@simplybusiness/services 0.14.0 → 0.14.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.14.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 63b659c: Export a singleton instance of Snowplow
8
+ - 63b659c: Change snowplow context shape
9
+
3
10
  ## 0.14.0
4
11
 
5
12
  ### Minor Changes
@@ -105,6 +105,12 @@ class Snowplow {
105
105
  }
106
106
  return this;
107
107
  }
108
+ static getInstance(props) {
109
+ if (!Snowplow.instance) {
110
+ Snowplow.instance = new Snowplow(props);
111
+ }
112
+ return Snowplow.instance;
113
+ }
108
114
  constructor(props){
109
115
  var _props_pageViewContext;
110
116
  _define_property(this, "avalancheTrackerName", "sb-ava");
@@ -143,7 +149,10 @@ class Snowplow {
143
149
  if (uid) {
144
150
  (0, _browsertracker.setUserId)(uid);
145
151
  }
152
+ // Create a singleton instance
153
+ Snowplow.instance = this;
146
154
  }
147
155
  }
156
+ _define_property(Snowplow, "instance", void 0);
148
157
 
149
158
  //# sourceMappingURL=Snowplow.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/snowplow/Snowplow.ts"],"sourcesContent":["import {\n SelfDescribingJson,\n StructuredEvent,\n TrackerConfiguration,\n newTracker,\n setCookiePath,\n setUserId,\n trackPageView,\n trackSelfDescribingEvent,\n trackStructEvent,\n} from \"@snowplow/browser-tracker\";\nimport { EventDefinition, TrackingProps } from \"./types\";\n\nexport type FrontOfficeStructuredEvent = StructuredEvent & {\n serviceChannelIdentifier: string;\n};\n\n/**\n * This class is an abstraction which wraps Snowplow\n * and exposes common methods with other services:\n * - trackEvent : sends a standard payload\n * - trackUnstructEvent : sends a payload for custom schema\n */\nexport class Snowplow {\n avalancheTrackerName = \"sb-ava\";\n\n bronzeAvalancheTrackerName = \"sb-ava-br\";\n\n pvAvalancheTrackerName = \"sb-ava-pv\";\n\n uid: unknown = \"\";\n\n trackPageView: boolean = false;\n\n contexts: SelfDescribingJson<Record<string, unknown>>[] = [];\n\n serverData: Record<string, unknown> = {};\n\n eventHandlers: Record<string, (params?: Record<string, unknown>) => void> =\n {};\n\n constructor(props?: TrackingProps) {\n if (!props) return;\n\n const {\n appId,\n cookieDomain,\n avalancheCollector,\n eventMethod,\n uid,\n postPath,\n // includeGAContext,\n // trackActivity,\n trackPageView: tpv,\n } = props;\n this.uid = uid;\n this.trackPageView = tpv;\n this.serverData = props?.pageViewContext?.data || {};\n\n // Set options\n const stateStorageStrategy = \"cookieAndLocalStorage\";\n const baseOptions: TrackerConfiguration = {\n appId,\n cookieDomain,\n eventMethod,\n stateStorageStrategy,\n postPath,\n };\n // Initialize trackers\n newTracker(this.avalancheTrackerName, avalancheCollector, baseOptions);\n\n newTracker(\n this.bronzeAvalancheTrackerName,\n avalancheCollector,\n baseOptions,\n );\n\n // Page view tracker\n newTracker(this.pvAvalancheTrackerName, avalancheCollector, {\n ...baseOptions,\n eventMethod: eventMethod === \"post\" ? \"beacon\" : eventMethod,\n });\n\n setCookiePath(\"/\");\n if (uid) {\n setUserId(uid);\n }\n }\n\n setContexts(contexts: SelfDescribingJson<Record<string, unknown>>[]) {\n this.contexts = contexts;\n // Update identity context\n const index = this.contexts?.findIndex(ctx =>\n ctx.schema?.includes(\"identity_context\"),\n );\n if (index > -1) {\n this.contexts[index].data.domain_userid = this.uid;\n }\n return this;\n }\n\n // Send a page view event\n trackView() {\n if (this.trackPageView) {\n trackPageView({ context: this.contexts });\n }\n return this;\n }\n\n // Send a structured event with contexts\n async trackEvent(event: StructuredEvent) {\n await trackStructEvent({ ...event, context: this.contexts }, [\n this.bronzeAvalancheTrackerName,\n ]);\n return this;\n }\n\n // Send a custom event with defined schema and optional contexts\n async trackUnstructEvent(event: SelfDescribingJson<Record<string, unknown>>) {\n if (!event) {\n return this;\n }\n await trackSelfDescribingEvent({ event, context: this.contexts }, [\n this.avalancheTrackerName,\n ]);\n return this;\n }\n\n addEventHandlers(eventDefinitions: EventDefinition[]) {\n // Add server context to makePayload functions\n const context = this.serverData;\n\n eventDefinitions.forEach(({ name, type, makePayload }) => {\n // Convert type into relevant function\n if (type === \"structured\") {\n this.addEventHandler(name, (params?: Record<string, unknown>) => {\n this.trackEvent(\n makePayload({\n ...params,\n context,\n }) as StructuredEvent,\n );\n });\n } else {\n this.addEventHandler(name, (params?: Record<string, unknown>) => {\n this.trackUnstructEvent(\n makePayload({\n ...params,\n context,\n }) as SelfDescribingJson<Record<string, unknown>>,\n );\n });\n }\n });\n return this;\n }\n\n private addEventHandler(\n name: string,\n handler: (params?: Record<string, unknown>) => void,\n ) {\n this.eventHandlers[name] = handler;\n return this;\n }\n\n private removeEventHandler(name: string) {\n delete this.eventHandlers[name];\n return this;\n }\n\n trigger(name: string, params?: Record<string, unknown>) {\n if (this.eventHandlers[name]) {\n this.eventHandlers[name](params);\n }\n return this;\n }\n}\n"],"names":["Snowplow","setContexts","contexts","index","findIndex","ctx","schema","includes","data","domain_userid","uid","trackView","trackPageView","context","trackEvent","event","trackStructEvent","bronzeAvalancheTrackerName","trackUnstructEvent","trackSelfDescribingEvent","avalancheTrackerName","addEventHandlers","eventDefinitions","serverData","forEach","name","type","makePayload","addEventHandler","params","handler","eventHandlers","removeEventHandler","trigger","constructor","props","pvAvalancheTrackerName","appId","cookieDomain","avalancheCollector","eventMethod","postPath","tpv","pageViewContext","stateStorageStrategy","baseOptions","newTracker","setCookiePath","setUserId"],"mappings":";;;;+BAuBaA;;;eAAAA;;;gCAbN;;;;;;;;;;;;;;AAaA,MAAMA;IAkEXC,YAAYC,QAAuD,EAAE;YAGrD;QAFd,IAAI,CAACA,QAAQ,GAAGA;QAChB,0BAA0B;QAC1B,MAAMC,SAAQ,iBAAA,IAAI,CAACD,QAAQ,cAAb,qCAAA,eAAeE,SAAS,CAACC,CAAAA;gBACrCA;oBAAAA,cAAAA,IAAIC,MAAM,cAAVD,kC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CAAC7B,0BAA0B,EAC/BsB,oBACAM;QAGF,oBAAoB;QACpBC,IAAAA,0BAAU,EAAC,IAAI,CAACV,sBAAsB,EAAEG,oBAAoB;YAC1D,GAAGM,WAAW;YACdL,aAAaA,gBAAgB,SAAS,WAAWA;QACnD;QAEAO,IAAAA,6BAAa,EAAC;QACd,IAAIrC,KAAK;YACPsC,IAAAA,yBAAS,EAACtC;QACZ;IACF;AAyFF"}
1
+ {"version":3,"sources":["../../../src/snowplow/Snowplow.ts"],"sourcesContent":["import {\n SelfDescribingJson,\n StructuredEvent,\n TrackerConfiguration,\n newTracker,\n setCookiePath,\n setUserId,\n trackPageView,\n trackSelfDescribingEvent,\n trackStructEvent,\n} from \"@snowplow/browser-tracker\";\nimport { EventDefinition, TrackingProps } from \"./types\";\n\nexport type FrontOfficeStructuredEvent = StructuredEvent & {\n serviceChannelIdentifier: string;\n};\n\n/**\n * This class is an abstraction which wraps Snowplow\n * and exposes common methods with other services:\n * - trackEvent : sends a standard payload\n * - trackUnstructEvent : sends a payload for custom schema\n */\nexport class Snowplow {\n avalancheTrackerName = \"sb-ava\";\n\n bronzeAvalancheTrackerName = \"sb-ava-br\";\n\n pvAvalancheTrackerName = \"sb-ava-pv\";\n\n uid: unknown = \"\";\n\n trackPageView: boolean = false;\n\n contexts: SelfDescribingJson<Record<string, unknown>>[] = [];\n\n serverData: Record<string, unknown> = {};\n\n eventHandlers: Record<string, (params?: Record<string, unknown>) => void> =\n {};\n\n static instance: Snowplow | undefined;\n\n constructor(props?: TrackingProps) {\n if (!props) return;\n\n const {\n appId,\n cookieDomain,\n avalancheCollector,\n eventMethod,\n uid,\n postPath,\n // includeGAContext,\n // trackActivity,\n trackPageView: tpv,\n } = props;\n this.uid = uid;\n this.trackPageView = tpv;\n this.serverData = props?.pageViewContext?.data || {};\n\n // Set options\n const stateStorageStrategy = \"cookieAndLocalStorage\";\n const baseOptions: TrackerConfiguration = {\n appId,\n cookieDomain,\n eventMethod,\n stateStorageStrategy,\n postPath,\n };\n // Initialize trackers\n newTracker(this.avalancheTrackerName, avalancheCollector, baseOptions);\n\n newTracker(\n this.bronzeAvalancheTrackerName,\n avalancheCollector,\n baseOptions,\n );\n\n // Page view tracker\n newTracker(this.pvAvalancheTrackerName, avalancheCollector, {\n ...baseOptions,\n eventMethod: eventMethod === \"post\" ? \"beacon\" : eventMethod,\n });\n\n setCookiePath(\"/\");\n if (uid) {\n setUserId(uid);\n }\n // Create a singleton instance\n Snowplow.instance = this;\n }\n\n setContexts(contexts: SelfDescribingJson<Record<string, unknown>>[]) {\n this.contexts = contexts;\n // Update identity context\n const index = this.contexts?.findIndex(ctx =>\n ctx.schema?.includes(\"identity_context\"),\n );\n if (index > -1) {\n this.contexts[index].data.domain_userid = this.uid;\n }\n return this;\n }\n\n // Send a page view event\n trackView() {\n if (this.trackPageView) {\n trackPageView({ context: this.contexts });\n }\n return this;\n }\n\n // Send a structured event with contexts\n async trackEvent(event: StructuredEvent) {\n await trackStructEvent({ ...event, context: this.contexts }, [\n this.bronzeAvalancheTrackerName,\n ]);\n return this;\n }\n\n // Send a custom event with defined schema and optional contexts\n async trackUnstructEvent(event: SelfDescribingJson<Record<string, unknown>>) {\n if (!event) {\n return this;\n }\n await trackSelfDescribingEvent({ event, context: this.contexts }, [\n this.avalancheTrackerName,\n ]);\n return this;\n }\n\n addEventHandlers(eventDefinitions: EventDefinition[]) {\n // Add server context to makePayload functions\n const context = this.serverData;\n\n eventDefinitions.forEach(({ name, type, makePayload }) => {\n // Convert type into relevant function\n if (type === \"structured\") {\n this.addEventHandler(name, (params?: Record<string, unknown>) => {\n this.trackEvent(\n makePayload({\n ...params,\n context,\n }) as StructuredEvent,\n );\n });\n } else {\n this.addEventHandler(name, (params?: Record<string, unknown>) => {\n this.trackUnstructEvent(\n makePayload({\n ...params,\n context,\n }) as SelfDescribingJson<Record<string, unknown>>,\n );\n });\n }\n });\n return this;\n }\n\n private addEventHandler(\n name: string,\n handler: (params?: Record<string, unknown>) => void,\n ) {\n this.eventHandlers[name] = handler;\n return this;\n }\n\n private removeEventHandler(name: string) {\n delete this.eventHandlers[name];\n return this;\n }\n\n trigger(name: string, params?: Record<string, unknown>) {\n if (this.eventHandlers[name]) {\n this.eventHandlers[name](params);\n }\n return this;\n }\n\n static getInstance(props?: TrackingProps) {\n if (!Snowplow.instance) {\n Snowplow.instance = new Snowplow(props);\n }\n return Snowplow.instance;\n }\n}\n"],"names":["Snowplow","setContexts","contexts","index","findIndex","ctx","schema","includes","data","domain_userid","uid","trackView","trackPageView","context","trackEvent","event","trackStructEvent","bronzeAvalancheTrackerName","trackUnstructEvent","trackSelfDescribingEvent","avalancheTrackerName","addEventHandlers","eventDefinitions","serverData","forEach","name","type","makePayload","addEventHandler","params","handler","eventHandlers","removeEventHandler","trigger","getInstance","props","instance","constructor","pvAvalancheTrackerName","appId","cookieDomain","avalancheCollector","eventMethod","postPath","tpv","pageViewContext","stateStorageStrategy","baseOptions","newTracker","setCookiePath","setUserId"],"mappings":";;;;+BAuBaA;;;eAAAA;;;gCAbN;;;;;;;;;;;;;;AAaA,MAAMA;IAsEXC,YAAYC,QAAuD,EAAE;YAGrD;QAFd,IAAI,CAACA,QAAQ,GAAGA;QAChB,0BAA0B;QAC1B,MAAMC,SAAQ,iBAAA,IAAI,CAACD,QAAQ,cAAb,qCAAA,eAAeE,SAAS,CAACC,CAAAA;gBACrCA;oBAAAA,cAAAA,IAAIC,MAAM,cAAVD,kCAAAA,YAAYE,QAAQ,CAAC;;QAEvB,IAAIJ,QAAQ,CAAC,GAAG;YACd,IAAI,CAACD,QAAQ,CAACC,MAAM,CAACK,IAAI,CAACC,aAAa,GAAG,IAAI,CAACC,GAAG;QACpD;QACA,OAAO,IAAI;IACb;IAEA,yBAAyB;IACzBC,YAAY;QACV,IAAI,IAAI,CAACC,aAAa,EAAE;YACtBA,IAAAA,6BAAa,EAAC;gBAAEC,SAAS,IAAI,CAACX,QAAQ;YAAC;QACzC;QACA,OAAO,IAAI;IACb;IAEA,w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AAA,6BAAa,EAAC;QACd,IAAIvC,KAAK;YACPwC,IAAAA,yBAAS,EAACxC;QACZ;QACA,8BAA8B;QAC9BV,SAASoC,QAAQ,GAAG,IAAI;IAC1B;AAgGF;AAlJE,iBAlBWpC,UAkBJoC,YAAP,KAAA"}
@@ -24,14 +24,14 @@ const _Snowplow = require("./Snowplow");
24
24
  const SnowplowContext = /*#__PURE__*/ (0, _react.createContext)(null);
25
25
  const SnowplowProvider = ({ scripts, children })=>{
26
26
  const [config, _setConfig] = (0, _react.useState)(scripts);
27
- const [snowplow, setSnowplow] = (0, _react.useState)(new _Snowplow.Snowplow(config));
27
+ const snowplow = (0, _react.useRef)(_Snowplow.Snowplow.getInstance(config));
28
28
  // Attach event handlers and set contexts
29
29
  (0, _react.useEffect)(()=>{
30
- if (snowplow && scripts) {
30
+ if (snowplow.current && scripts) {
31
31
  const contexts = (0, _contexts.getContexts)(config);
32
- snowplow.setContexts(contexts).addEventHandlers(_eventdefinitions.eventDefinitions);
32
+ snowplow.current.setContexts(contexts).addEventHandlers(_eventdefinitions.eventDefinitions);
33
33
  // Send page view event
34
- if (config.trackPageView) snowplow.trackView();
34
+ if (config.trackPageView) snowplow.current.trackView();
35
35
  }
36
36
  }, [
37
37
  config,
@@ -40,7 +40,7 @@ const SnowplowProvider = ({ scripts, children })=>{
40
40
  ]);
41
41
  const value = (0, _react.useMemo)(()=>({
42
42
  config,
43
- snowplow
43
+ snowplow: snowplow.current
44
44
  }), [
45
45
  config,
46
46
  snowplow
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/snowplow/SnowplowContext.tsx"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-unused-vars */\nimport {\n createContext,\n useContext,\n useEffect,\n useMemo,\n useState,\n type ReactNode,\n} from \"react\";\nimport { getContexts } from \"./contexts\";\nimport { eventDefinitions } from \"./event-definitions\";\nimport { Snowplow } from \"./Snowplow\";\nimport { EventDefinition, TrackingProps } from \"./types\";\n\nexport interface SnowplowContextInterface {\n config: TrackingProps;\n snowplow?: Snowplow;\n}\n\nconst SnowplowContext = createContext<SnowplowContextInterface | null>(null);\n\ntype ProviderProps = {\n scripts: TrackingProps;\n children: ReactNode;\n};\n\nexport const SnowplowProvider = ({ scripts, children }: ProviderProps) => {\n const [config, _setConfig] = useState<TrackingProps>(scripts);\n const [snowplow, setSnowplow] = useState<Snowplow>(new Snowplow(config));\n\n // Attach event handlers and set contexts\n useEffect(() => {\n if (snowplow && scripts) {\n const contexts = getContexts(config);\n\n snowplow\n .setContexts(contexts)\n .addEventHandlers(eventDefinitions as EventDefinition[]);\n // Send page view event\n if (config.trackPageView) snowplow.trackView();\n }\n }, [config, snowplow, scripts]);\n\n const value: SnowplowContextInterface = useMemo(\n () => ({\n config,\n snowplow,\n }),\n [config, snowplow],\n );\n\n return (\n <SnowplowContext.Provider value={value}>\n {children}\n </SnowplowContext.Provider>\n );\n};\n\nexport function useSnowplowContext() {\n const context = useContext(SnowplowContext);\n\n if (!context) {\n throw new Error(\n \"useSnowplowContext must be used inside a `SnowplowProvider`\",\n );\n }\n return context;\n}\n"],"names":["SnowplowProvider","useSnowplowContext","SnowplowContext","createContext","scripts","children","config","_setConfig","useState","snowplow","setSnowplow","Snowplow","useEffect","contexts","getContexts","setContexts","addEventHandlers","eventDefinitions","trackPageView","trackView","value","useMemo","Provider","context","useContext","Error"],"mappings":"AAAA,oDAAoD;;;;;;;;;;;IA0BvCA,gBAAgB;eAAhBA;;IAgCGC,kBAAkB;eAAlBA;;;;uBAlDT;0BACqB;kCACK;0BACR;AAQzB,MAAMC,gCAAkBC,IAAAA,oBAAa,EAAkC;AAOhE,MAAMH,mBAAmB,CAAC,EAAEI,OAAO,EAAEC,QAAQ,EAAiB;IACnE,MAAM,CAACC,QAAQC,WAAW,GAAGC,IAAAA,eAAQ,EAAgBJ;IACrD,MAAM,CAACK,UAAUC,YAAY,GAAGF,IAAAA,eAAQ,EAAW,IAAIG,kBAAQ,CAACL;IAEhE,yCAAyC;IACzCM,IAAAA,gBAAS,EAAC;QACR,IAAIH,YAAYL,SAAS;YACvB,MAAMS,WAAWC,IAAAA,qBAAW,EAACR;YAE7BG,SACGM,WAAW,CAACF,UACZG,gBAAgB,CAACC,kCAAgB;YACpC,uBAAuB;YACvB,IAAIX,OAAOY,aAAa,EAAET,SAASU,SAAS;QAC9C;IACF,GAAG;QAACb;QAAQG;QAAUL;KAAQ;IAE9B,MAAMgB,QAAkCC,IAAAA,cAAO,EAC7C,IAAO,CAAA;YACLf;YACAG;QACF,CAAA,GACA;QAACH;QAAQG;KAAS;IAGpB,qBACE,qBAACP,gBAAgBoB,QAAQ;QAACF,OAAOA;kBAC9Bf;;AAGP;AAEO,SAASJ;IACd,MAAMsB,UAAUC,IAAAA,iBAAU,EAACtB;IAE3B,IAAI,CAACqB,SAAS;QACZ,MAAM,IAAIE,MACR;IAEJ;IACA,OAAOF;AACT"}
1
+ {"version":3,"sources":["../../../src/snowplow/SnowplowContext.tsx"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-unused-vars */\nimport {\n createContext,\n useContext,\n useEffect,\n useMemo,\n useRef,\n useState,\n type ReactNode,\n} from \"react\";\nimport { getContexts } from \"./contexts\";\nimport { eventDefinitions } from \"./event-definitions\";\nimport { Snowplow } from \"./Snowplow\";\nimport { EventDefinition, TrackingProps } from \"./types\";\n\nexport interface SnowplowContextInterface {\n config: TrackingProps;\n snowplow?: Snowplow;\n}\n\nconst SnowplowContext = createContext<SnowplowContextInterface | null>(null);\n\ntype ProviderProps = {\n scripts: TrackingProps;\n children: ReactNode;\n};\n\nexport const SnowplowProvider = ({ scripts, children }: ProviderProps) => {\n const [config, _setConfig] = useState<TrackingProps>(scripts);\n const snowplow = useRef<Snowplow>(Snowplow.getInstance(config));\n\n // Attach event handlers and set contexts\n useEffect(() => {\n if (snowplow.current && scripts) {\n const contexts = getContexts(config);\n\n snowplow.current\n .setContexts(contexts)\n .addEventHandlers(eventDefinitions as EventDefinition[]);\n // Send page view event\n if (config.trackPageView) snowplow.current.trackView();\n }\n }, [config, snowplow, scripts]);\n\n const value: SnowplowContextInterface = useMemo(\n () => ({\n config,\n snowplow: snowplow.current,\n }),\n [config, snowplow],\n );\n\n return (\n <SnowplowContext.Provider value={value}>\n {children}\n </SnowplowContext.Provider>\n );\n};\n\nexport function useSnowplowContext() {\n const context = useContext(SnowplowContext);\n\n if (!context) {\n throw new Error(\n \"useSnowplowContext must be used inside a `SnowplowProvider`\",\n );\n }\n return context;\n}\n"],"names":["SnowplowProvider","useSnowplowContext","SnowplowContext","createContext","scripts","children","config","_setConfig","useState","snowplow","useRef","Snowplow","getInstance","useEffect","current","contexts","getContexts","setContexts","addEventHandlers","eventDefinitions","trackPageView","trackView","value","useMemo","Provider","context","useContext","Error"],"mappings":"AAAA,oDAAoD;;;;;;;;;;;IA2BvCA,gBAAgB;eAAhBA;;IAgCGC,kBAAkB;eAAlBA;;;;uBAlDT;0BACqB;kCACK;0BACR;AAQzB,MAAMC,gCAAkBC,IAAAA,oBAAa,EAAkC;AAOhE,MAAMH,mBAAmB,CAAC,EAAEI,OAAO,EAAEC,QAAQ,EAAiB;IACnE,MAAM,CAACC,QAAQC,WAAW,GAAGC,IAAAA,eAAQ,EAAgBJ;IACrD,MAAMK,WAAWC,IAAAA,aAAM,EAAWC,kBAAQ,CAACC,WAAW,CAACN;IAEvD,yCAAyC;IACzCO,IAAAA,gBAAS,EAAC;QACR,IAAIJ,SAASK,OAAO,IAAIV,SAAS;YAC/B,MAAMW,WAAWC,IAAAA,qBAAW,EAACV;YAE7BG,SAASK,OAAO,CACbG,WAAW,CAACF,UACZG,gBAAgB,CAACC,kCAAgB;YACpC,uBAAuB;YACvB,IAAIb,OAAOc,aAAa,EAAEX,SAASK,OAAO,CAACO,SAAS;QACtD;IACF,GAAG;QAACf;QAAQG;QAAUL;KAAQ;IAE9B,MAAMkB,QAAkCC,IAAAA,cAAO,EAC7C,IAAO,CAAA;YACLjB;YACAG,UAAUA,SAASK,OAAO;QAC5B,CAAA,GACA;QAACR;QAAQG;KAAS;IAGpB,qBACE,qBAACP,gBAAgBsB,QAAQ;QAACF,OAAOA;kBAC9BjB;;AAGP;AAEO,SAASJ;IACd,MAAMwB,UAAUC,IAAAA,iBAAU,EAACxB;IAE3B,IAAI,CAACuB,SAAS;QACZ,MAAM,IAAIE,MACR;IAEJ;IACA,OAAOF;AACT"}
@@ -1 +1 @@
1
- {"fileNames":["../../../../node_modules/typescript/lib/lib.es5.d.ts","../../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../../node_modules/typescript/lib/lib.es2020.d.ts","../../../../node_modules/typescript/lib/lib.es2021.d.ts","../../../../node_modules/typescript/lib/lib.es2022.d.ts","../../../../node_modules/typescript/lib/lib.dom.d.ts","../../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../../node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../../node_modules/typescript/lib/lib.es2017.date.d.ts","../../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../../../node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2021.string.d.ts","../../../../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../../node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2022.array.d.ts","../../../../node_modules/typescript/lib/lib.es2022.error.d.ts","../../../../node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2022.object.d.ts","../../../../node_modules/typescript/lib/lib.es2022.string.d.ts","../../../../node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../../node_modules/typescript/lib/lib.decorators.d.ts","../../../../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../../node_modules/@types/react/global.d.ts","../../../../node_modules/csstype/index.d.ts","../../../../node_modules/@types/prop-types/index.d.ts","../../../../node_modules/@types/react/index.d.ts","../../../../node_modules/@types/react/jsx-runtime.d.ts","../../src/address-lookup/types.ts","../../src/address-lookup/index.ts","../../src/address-lookup/index.test.ts","../../../../node_modules/@types/promise-polyfill/index.d.ts","../../../../node_modules/@airbrake/browser/dist/func_wrapper.d.ts","../../../../node_modules/@airbrake/browser/dist/notice.d.ts","../../../../node_modules/@airbrake/browser/dist/metrics.d.ts","../../../../node_modules/@airbrake/browser/dist/scope.d.ts","../../../../node_modules/@airbrake/browser/dist/processor/processor.d.ts","../../../../node_modules/@airbrake/browser/dist/filter/filter.d.ts","../../../../node_modules/@types/node/compatibility/disposable.d.ts","../../../../node_modules/@types/node/compatibility/indexable.d.ts","../../../../node_modules/@types/node/compatibility/iterators.d.ts","../../../../node_modules/@types/node/compatibility/index.d.ts","../../../../node_modules/@types/node/globals.typedarray.d.ts","../../../../node_modules/@types/node/buffer.buffer.d.ts","../../../../node_modules/buffer/index.d.ts","../../../../node_modules/@types/node/node_modules/undici-types/header.d.ts","../../../../node_modules/@types/node/node_modules/undici-types/readable.d.ts","../../../../node_modules/@types/node/node_modules/undici-types/file.d.ts","../../../../node_modules/@types/node/node_modules/undici-types/fetch.d.ts","../../../../node_modules/@types/node/node_modules/undici-types/formdata.d.ts","../../../../node_modules/@types/node/node_modules/undici-types/connector.d.ts","../../../../node_modules/@types/node/node_modules/undici-types/client.d.ts","../../../../node_modules/@types/node/node_modules/undici-types/errors.d.ts","../../../../node_modules/@types/node/node_modules/undici-types/dispatcher.d.ts","../../../../node_modules/@types/node/node_modules/undici-types/global-dispatcher.d.ts","../../../../node_modules/@types/node/node_modules/undici-types/global-origin.d.ts","../../../../node_modules/@types/node/node_modules/undici-types/pool-stats.d.ts","../../../../node_modules/@types/node/node_modules/undici-types/pool.d.ts","../../../../node_modules/@types/node/node_modules/undici-types/handlers.d.ts","../../../../node_modules/@types/node/node_modules/undici-types/balanced-pool.d.ts","../../../../node_modules/@types/node/node_modules/undici-types/agent.d.ts","../../../../node_modules/@types/node/node_modules/undici-types/mock-interceptor.d.ts","../../../../node_modules/@types/node/node_modules/undici-types/mock-agent.d.ts","../../../../node_modules/@types/node/node_modules/undici-types/mock-client.d.ts","../../../../node_modules/@types/node/node_modules/undici-types/mock-pool.d.ts","../../../../node_modules/@types/node/node_modules/undici-types/mock-errors.d.ts","../../../../node_modules/@types/node/node_modules/undici-types/proxy-agent.d.ts","../../../../node_modules/@types/node/node_modules/undici-types/env-http-proxy-agent.d.ts","../../../../node_modules/@types/node/node_modules/undici-types/retry-handler.d.ts","../../../../node_modules/@types/node/node_modules/undici-types/retry-agent.d.ts","../../../../node_modules/@types/node/node_modules/undici-types/api.d.ts","../../../../node_modules/@types/node/node_modules/undici-types/interceptors.d.ts","../../../../node_modules/@types/node/node_modules/undici-types/util.d.ts","../../../../node_modules/@types/node/node_modules/undici-types/cookies.d.ts","../../../../node_modules/@types/node/node_modules/undici-types/patch.d.ts","../../../../node_modules/@types/node/node_modules/undici-types/websocket.d.ts","../../../../node_modules/@types/node/node_modules/undici-types/eventsource.d.ts","../../../../node_modules/@types/node/node_modules/undici-types/filereader.d.ts","../../../../node_modules/@types/node/node_modules/undici-types/diagnostics-channel.d.ts","../../../../node_modules/@types/node/node_modules/undici-types/content-type.d.ts","../../../../node_modules/@types/node/node_modules/undici-types/cache.d.ts","../../../../node_modules/@types/node/node_modules/undici-types/index.d.ts","../../../../node_modules/@types/node/globals.d.ts","../../../../node_modules/@types/node/assert.d.ts","../../../../node_modules/@types/node/assert/strict.d.ts","../../../../node_modules/@types/node/async_hooks.d.ts","../../../../node_modules/@types/node/buffer.d.ts","../../../../node_modules/@types/node/child_process.d.ts","../../../../node_modules/@types/node/cluster.d.ts","../../../../node_modules/@types/node/console.d.ts","../../../../node_modules/@types/node/constants.d.ts","../../../../node_modules/@types/node/crypto.d.ts","../../../../node_modules/@types/node/dgram.d.ts","../../../../node_modules/@types/node/diagnostics_channel.d.ts","../../../../node_modules/@types/node/dns.d.ts","../../../../node_modules/@types/node/dns/promises.d.ts","../../../../node_modules/@types/node/domain.d.ts","../../../../node_modules/@types/node/dom-events.d.ts","../../../../node_modules/@types/node/events.d.ts","../../../../node_modules/@types/node/fs.d.ts","../../../../node_modules/@types/node/fs/promises.d.ts","../../../../node_modules/@types/node/http.d.ts","../../../../node_modules/@types/node/http2.d.ts","../../../../node_modules/@types/node/https.d.ts","../../../../node_modules/@types/node/inspector.d.ts","../../../../node_modules/@types/node/module.d.ts","../../../../node_modules/@types/node/net.d.ts","../../../../node_modules/@types/node/os.d.ts","../../../../node_modules/@types/node/path.d.ts","../../../../node_modules/@types/node/perf_hooks.d.ts","../../../../node_modules/@types/node/process.d.ts","../../../../node_modules/@types/node/punycode.d.ts","../../../../node_modules/@types/node/querystring.d.ts","../../../../node_modules/@types/node/readline.d.ts","../../../../node_modules/@types/node/readline/promises.d.ts","../../../../node_modules/@types/node/repl.d.ts","../../../../node_modules/@types/node/sea.d.ts","../../../../node_modules/@types/node/stream.d.ts","../../../../node_modules/@types/node/stream/promises.d.ts","../../../../node_modules/@types/node/stream/consumers.d.ts","../../../../node_modules/@types/node/stream/web.d.ts","../../../../node_modules/@types/node/string_decoder.d.ts","../../../../node_modules/@types/node/test.d.ts","../../../../node_modules/@types/node/timers.d.ts","../../../../node_modules/@types/node/timers/promises.d.ts","../../../../node_modules/@types/node/tls.d.ts","../../../../node_modules/@types/node/trace_events.d.ts","../../../../node_modules/@types/node/tty.d.ts","../../../../node_modules/@types/node/url.d.ts","../../../../node_modules/@types/node/util.d.ts","../../../../node_modules/@types/node/v8.d.ts","../../../../node_modules/@types/node/vm.d.ts","../../../../node_modules/@types/node/wasi.d.ts","../../../../node_modules/@types/node/worker_threads.d.ts","../../../../node_modules/@types/node/zlib.d.ts","../../../../node_modules/@types/node/index.d.ts","../../../../node_modules/@types/caseless/index.d.ts","../../../../node_modules/@types/request/node_modules/form-data/index.d.ts","../../../../node_modules/@types/tough-cookie/index.d.ts","../../../../node_modules/@types/request/index.d.ts","../../../../node_modules/@airbrake/browser/dist/options.d.ts","../../../../node_modules/@airbrake/browser/dist/http_req/api.d.ts","../../../../node_modules/@airbrake/browser/dist/http_req/index.d.ts","../../../../node_modules/@airbrake/browser/dist/tdshared.d.ts","../../../../node_modules/@airbrake/browser/dist/queries.d.ts","../../../../node_modules/@airbrake/browser/dist/queues.d.ts","../../../../node_modules/@airbrake/browser/dist/routes.d.ts","../../../../node_modules/@airbrake/browser/dist/filter/performance_filter.d.ts","../../../../node_modules/@airbrake/browser/dist/base_notifier.d.ts","../../../../node_modules/@airbrake/browser/dist/notifier.d.ts","../../../../node_modules/@airbrake/browser/dist/index.d.ts","../../src/airbrake/index.ts","../../../../node_modules/@snowplow/tracker-core/dist/index.module.d.ts","../../../../node_modules/@snowplow/browser-tracker-core/dist/index.module.d.ts","../../../../node_modules/@snowplow/browser-tracker/dist/index.module.d.ts","../../src/snowplow/types.ts","../../src/snowplow/contexts.ts","../../src/snowplow/event-definitions/base.ts","../../src/utils/text.ts","../../src/utils/index.ts","../../src/snowplow/event-definitions/qcp.ts","../../src/snowplow/event-definitions/referral.ts","../../src/snowplow/event-definitions/intervention.ts","../../src/snowplow/event-definitions/redaction.ts","../../src/snowplow/event-definitions/questionnaire.ts","../../src/snowplow/event-definitions/index.ts","../../src/snowplow/getSnowplowConfig.ts","../../src/snowplow/Snowplow.ts","../../src/snowplow/SnowplowContext.tsx","../../src/snowplow/index.ts","../../src/mocks/eventDefinitions.ts","../../src/mocks/scripts-mock.ts","../../src/snowplow/contexts.test.ts","../../../../node_modules/@types/aria-query/index.d.ts","../../../../node_modules/@testing-library/dom/types/matches.d.ts","../../../../node_modules/@testing-library/dom/types/wait-for.d.ts","../../../../node_modules/@testing-library/dom/types/query-helpers.d.ts","../../../../node_modules/@testing-library/dom/types/queries.d.ts","../../../../node_modules/@testing-library/dom/types/get-queries-for-element.d.ts","../../../../node_modules/@testing-library/dom/node_modules/pretty-format/build/types.d.ts","../../../../node_modules/@testing-library/dom/node_modules/pretty-format/build/index.d.ts","../../../../node_modules/@testing-library/dom/types/screen.d.ts","../../../../node_modules/@testing-library/dom/types/wait-for-element-to-be-removed.d.ts","../../../../node_modules/@testing-library/dom/types/get-node-text.d.ts","../../../../node_modules/@testing-library/dom/types/events.d.ts","../../../../node_modules/@testing-library/dom/types/pretty-dom.d.ts","../../../../node_modules/@testing-library/dom/types/role-helpers.d.ts","../../../../node_modules/@testing-library/dom/types/config.d.ts","../../../../node_modules/@testing-library/dom/types/suggestions.d.ts","../../../../node_modules/@testing-library/dom/types/index.d.ts","../../src/snowplow/index.test.ts","../../src/utils/text.test.ts","../../src/index.tsx","../../../../node_modules/@types/react-dom/client.d.ts","../../../../node_modules/@types/react-dom/test-utils/index.d.ts","../../../../node_modules/@testing-library/react/types/index.d.ts","../../src/snowplow/SnowplowContext.test.tsx","../../src/utils/testUtils.tsx","../../../../node_modules/@jest/expect-utils/build/index.d.ts","../../../../node_modules/chalk/index.d.ts","../../../../node_modules/@sinclair/typebox/typebox.d.ts","../../../../node_modules/@jest/schemas/build/index.d.ts","../../../../node_modules/pretty-format/build/index.d.ts","../../../../node_modules/jest-diff/build/index.d.ts","../../../../node_modules/jest-matcher-utils/build/index.d.ts","../../../../node_modules/expect/build/index.d.ts","../../../../node_modules/@types/jest/index.d.ts","../../../../node_modules/@testing-library/jest-dom/types/matchers.d.ts","../../../../node_modules/@testing-library/jest-dom/types/jest.d.ts","../../../../node_modules/@testing-library/jest-dom/types/index.d.ts"],"fileIdsList":[[67,68,69,71,72,73,79,122,176,178,180,181,182,183],[69,79,122],[79,122,182],[79,122],[79,122,176,177],[69,71,79,122,176,180,184,185],[67,69,79,122,176,184],[69,72,79,122,175],[79,122,176,178,179],[70,79,122,176,178,179],[70,79,122],[79,122,236],[79,122,188],[79,122,188,189],[79,122,215],[79,122,213],[79,122,210,211,212,213,214,217,218,219,220,221,222,223,224],[79,122,209],[79,122,216],[79,122,210,211,212],[79,122,210,211],[79,122,213,214,216],[79,122,211],[79,122,244],[79,122,242,243],[62,79,122,225,229,230],[79,122,238,241],[79,119,122],[79,121,122],[122],[79,122,127,156],[79,122,123,128,134,135,142,153,164],[79,122,123,124,134,142],[74,75,76,79,122],[79,122,125,165],[79,122,126,127,135,143],[79,122,127,153,161],[79,122,128,130,134,142],[79,121,122,129],[79,122,130,131],[79,122,134],[79,122,132,134],[79,121,122,134],[79,122,134,135,136,153,164],[79,122,134,135,136,149,153,156],[79,117,122,169],[79,122,130,134,137,142,153,164],[79,122,134,135,137,138,142,153,161,164],[79,122,137,139,153,161,164],[77,78,79,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170],[79,122,134,140],[79,122,141,164,169],[79,122,130,134,142,153],[79,89,93,122,164],[79,89,122,153,164],[79,84,122],[79,86,89,122,161,164],[79,122,142,161],[79,122,171],[79,84,122,171],[79,86,89,122,142,164],[79,81,82,85,88,122,134,153,164],[79,89,96,122],[79,81,87,122],[79,89,110,111,122],[79,85,89,122,156,164,171],[79,110,122,171],[79,83,84,122,171],[79,89,122],[79,83,84,85,86,87,88,89,90,91,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,111,112,113,114,115,116,122],[79,89,104,122],[79,89,96,97,122],[79,87,89,97,98,122],[79,88,122],[79,81,84,89,122],[79,89,93,97,98,122],[79,93,122],[79,87,89,92,122,164],[79,81,86,89,96,122],[79,122,153],[79,84,89,110,122,169,171],[79,122,143],[79,122,144],[79,121,122,145],[79,119,120,121,122,123,124,125,126,127,128,129,130,131,132,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170],[79,122,147],[79,122,148],[79,122,134,149,150],[79,122,149,151,165,167],[79,122,134,153,154,155,156],[79,122,153,155],[79,122,153,154],[79,122,156],[79,122,157],[79,119,122,153],[79,122,134,159,160],[79,122,159,160],[79,122,127,142,153,161],[79,122,162],[79,122,142,163],[79,122,137,148,164],[79,122,127,165],[79,122,153,166],[79,122,141,167],[79,122,168],[79,122,127,134,136,145,153,164,167,169],[79,122,153,170],[62,79,122],[62,79,122,230],[59,60,61,79,122],[79,122,135,137,139,142,153,164,171,172,173,174],[79,122,137,153,171],[79,122,234,240],[79,122,238],[79,122,235,239],[79,122,237],[63,64,65,79,122],[63,64,79,122],[63,79,122],[63,79,122,186],[63,65,79,122,187,205],[63,79,122,199,205],[63,79,122,190,191],[63,79,122,191,202,204,207,231],[62,63,79,122,191,192,201,203],[63,79,122,191,192,202,207],[63,79,122,191],[63,79,122,193,196,197,198,200],[63,79,122,191,195],[63,79,122,191,199],[63,79,122,190,191,192,202,203,206,207,225],[63,79,122,191,192,201,202,203,204],[63,79,122,190],[63,79,122,194],[62,63,79,122,191,202,204,207,231]],"fileInfos":[{"version":"e41c290ef7dd7dab3493e6cbe5909e0148edf4a8dad0271be08edec368a0f7b9","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"ee7bad0c15b58988daa84371e0b89d313b762ab83cb5b31b8a2d1162e8eb41c2","impliedFormat":1},{"version":"4fd3f3422b2d2a3dfd5cdd0f387b3a8ec45f006c6ea896a4cb41264c2100bb2c","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"62bb211266ee48b2d0edf0d8d1b191f0c24fc379a82bd4c1692a082c540bc6b1","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"936e80ad36a2ee83fc3caf008e7c4c5afe45b3cf3d5c24408f039c1d47bdc1df","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"fef8cfad2e2dc5f5b3d97a6f4f2e92848eb1b88e897bb7318cef0e2820bceaab","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"f1e2a172204962276504466a6393426d2ca9c54894b1ad0a6c9dad867a65f876","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"959d36cddf5e7d572a65045b876f2956c973a586da58e5d26cde519184fd9b8a","affectsGlobalScope":true,"impliedFormat":1},{"version":"965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d","affectsGlobalScope":true,"impliedFormat":1},{"version":"3925a6c820dcb1a06506c90b1577db1fdbf7705d65b62b99dce4be75c637e26b","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a3d63ef2b853447ec4f749d3f368ce642264246e02911fcb1590d8c161b8005","affectsGlobalScope":true,"impliedFormat":1},{"version":"b5ce7a470bc3628408429040c4e3a53a27755022a32fd05e2cb694e7015386c7","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"36a2e4c9a67439aca5f91bb304611d5ae6e20d420503e96c230cf8fcdc948d94","affectsGlobalScope":true,"impliedFormat":1},{"version":"8a8eb4ebffd85e589a1cc7c178e291626c359543403d58c9cd22b81fab5b1fb9","impliedFormat":1},{"version":"6a386ff939f180ae8ef064699d8b7b6e62bc2731a62d7fbf5e02589383838dea","impliedFormat":1},{"version":"aa17748c522bd586f8712b1a308ea23af59c309b2fd278f6d4f406647c72e659","affectsGlobalScope":true,"impliedFormat":1},{"version":"42c169fb8c2d42f4f668c624a9a11e719d5d07dacbebb63cbcf7ef365b0a75b3","impliedFormat":1},{"version":"186fe557229b5bbcf91b3cb58b861516c27bb82d5b0a3a1f76e6ab36a3a75d33","signature":"db95736b8827957663b545882d775daa5194b438bf48c91474cc6c4184744afc"},{"version":"dd06fd7ef33c016acad29ff90f4e17e17d4ff9a885347dc81329ac8a766be951","signature":"f3cae4c97d6b3c85b989b92c61719a991508e7091ccdfe9e9f253732ca4c4098"},{"version":"feeae420b8b430b966e5ac3b0b6d9a60618884c3566419a329e279cb902eb0e7","signature":"8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881"},{"version":"a067ccda3dc15f1ad9724407078558a9755ee8cc452c1918329404541f291bf4","impliedFormat":1},{"version":"e06df6a63913f26f0c6bc2c9f54b9b3aad8af438d329658ef1b8e5c732fc64c6","impliedFormat":1},{"version":"d3de7febd1f6434e2c9c19ed5d54733b38828e1265803fc1bbb02143498367d9","impliedFormat":1},{"version":"2809fffac4424ce19f981032c238957df8967deb6f5f5a66d3668f7b5cf9099a","impliedFormat":1},{"version":"66eb6e055b9efe4eb830e6cdad9a74c87ebc56c9a229d1d6d88ac9c1ed9e2824","impliedFormat":1},{"version":"6558f318b59858e4706dbcb4dd034ea3b3faea3582ede27c8db7d5ea18b2d763","impliedFormat":1},{"version":"12d9ddb49893722ecea2d283784ad873ece0545ed783c9bbf61f98a31011084d","impliedFormat":1},{"version":"70521b6ab0dcba37539e5303104f29b721bfb2940b2776da4cc818c07e1fefc1","affectsGlobalScope":true,"impliedFormat":1},{"version":"ab41ef1f2cdafb8df48be20cd969d875602483859dc194e9c97c8a576892c052","affectsGlobalScope":true,"impliedFormat":1},{"version":"d153a11543fd884b596587ccd97aebbeed950b26933ee000f94009f1ab142848","affectsGlobalScope":true,"impliedFormat":1},{"version":"21d819c173c0cf7cc3ce57c3276e77fd9a8a01d35a06ad87158781515c9a438a","impliedFormat":1},{"version":"a79e62f1e20467e11a904399b8b18b18c0c6eea6b50c1168bf215356d5bebfaf","affectsGlobalScope":true,"impliedFormat":1},{"version":"0fd06258805d26c72f5997e07a23155d322d5f05387adb3744a791fe6a0b042d","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e9c23ba78aabc2e0a27033f18737a6df754067731e69dc5f52823957d60a4b6","impliedFormat":1},{"version":"5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","impliedFormat":1},{"version":"24bd580b5743dc56402c440dc7f9a4f5d592ad7a419f25414d37a7bfe11e342b","impliedFormat":1},{"version":"25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","impliedFormat":1},{"version":"c464d66b20788266e5353b48dc4aa6bc0dc4a707276df1e7152ab0c9ae21fad8","impliedFormat":1},{"version":"78d0d27c130d35c60b5e5566c9f1e5be77caf39804636bc1a40133919a949f21","impliedFormat":1},{"version":"c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","impliedFormat":1},{"version":"1d6e127068ea8e104a912e42fc0a110e2aa5a66a356a917a163e8cf9a65e4a75","impliedFormat":1},{"version":"5ded6427296cdf3b9542de4471d2aa8d3983671d4cac0f4bf9c637208d1ced43","impliedFormat":1},{"version":"6bdc71028db658243775263e93a7db2fd2abfce3ca569c3cca5aee6ed5eb186d","impliedFormat":1},{"version":"cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","impliedFormat":1},{"version":"385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","impliedFormat":1},{"version":"9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","impliedFormat":1},{"version":"0b8a9268adaf4da35e7fa830c8981cfa22adbbe5b3f6f5ab91f6658899e657a7","impliedFormat":1},{"version":"11396ed8a44c02ab9798b7dca436009f866e8dae3c9c25e8c1fbc396880bf1bb","impliedFormat":1},{"version":"ba7bc87d01492633cb5a0e5da8a4a42a1c86270e7b3d2dea5d156828a84e4882","impliedFormat":1},{"version":"4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","impliedFormat":1},{"version":"c21dc52e277bcfc75fac0436ccb75c204f9e1b3fa5e12729670910639f27343e","impliedFormat":1},{"version":"13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","impliedFormat":1},{"version":"9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","impliedFormat":1},{"version":"4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","impliedFormat":1},{"version":"24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","impliedFormat":1},{"version":"ea0148f897b45a76544ae179784c95af1bd6721b8610af9ffa467a518a086a43","impliedFormat":1},{"version":"24c6a117721e606c9984335f71711877293a9651e44f59f3d21c1ea0856f9cc9","impliedFormat":1},{"version":"dd3273ead9fbde62a72949c97dbec2247ea08e0c6952e701a483d74ef92d6a17","impliedFormat":1},{"version":"405822be75ad3e4d162e07439bac80c6bcc6dbae1929e179cf467ec0b9ee4e2e","impliedFormat":1},{"version":"0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","impliedFormat":1},{"version":"4d2b0eb911816f66abe4970898f97a2cfc902bcd743cbfa5017fad79f7ef90d8","impliedFormat":1},{"version":"bd0532fd6556073727d28da0edfd1736417a3f9f394877b6d5ef6ad88fba1d1a","impliedFormat":1},{"version":"89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","impliedFormat":1},{"version":"e53a3c2a9f624d90f24bf4588aacd223e7bec1b9d0d479b68d2f4a9e6011147f","impliedFormat":1},{"version":"24b8685c62562f5d98615c5a0c1d05f297cf5065f15246edfe99e81ec4c0e011","impliedFormat":1},{"version":"93507c745e8f29090efb99399c3f77bec07db17acd75634249dc92f961573387","impliedFormat":1},{"version":"339dc5265ee5ed92e536a93a04c4ebbc2128f45eeec6ed29f379e0085283542c","impliedFormat":1},{"version":"4732aec92b20fb28c5fe9ad99521fb59974289ed1e45aecb282616202184064f","impliedFormat":1},{"version":"2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","impliedFormat":1},{"version":"c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","impliedFormat":1},{"version":"bf67d53d168abc1298888693338cb82854bdb2e69ef83f8a0092093c2d562107","impliedFormat":1},{"version":"ca6d304b929748ea15c33f28c1f159df18a94470b424ab78c52d68d40a41e1e9","affectsGlobalScope":true,"impliedFormat":1},{"version":"a72ffc815104fb5c075106ebca459b2d55d07862a773768fce89efc621b3964b","impliedFormat":1},{"version":"7394959e5a741b185456e1ef5d64599c36c60a323207450991e7a42e08911419","impliedFormat":1},{"version":"3d77c73be94570813f8cadd1f05ebc3dc5e2e4fdefe4d340ca20cd018724ee36","impliedFormat":1},{"version":"d674383111e06b6741c4ad2db962131b5b0fa4d0294b998566c635e86195a453","affectsGlobalScope":true,"impliedFormat":1},{"version":"f3e58c4c18a031cbb17abec7a4ad0bd5ae9fc70c1f4ba1e7fb921ad87c504aca","impliedFormat":1},{"version":"a3e8bafb2af8e850c644f4be7f5156cf7d23b7bfdc3b786bd4d10ed40329649c","impliedFormat":1},{"version":"35ec8b6760fd7138bbf5809b84551e31028fb2ba7b6dc91d95d098bf212ca8b4","affectsGlobalScope":true,"impliedFormat":1},{"version":"a40826e8476694e90da94aa008283a7de50d1dafd37beada623863f1901cb7fb","impliedFormat":1},{"version":"f77d9188e41291acf14f476e931972460a303e1952538f9546e7b370cb8d0d20","affectsGlobalScope":true,"impliedFormat":1},{"version":"b0c0d1d13be149f790a75b381b413490f98558649428bb916fd2d71a3f47a134","impliedFormat":1},{"version":"3c884d9d9ec454bdf0d5a0b8465bf8297d2caa4d853851d92cc417ac6f30b969","impliedFormat":1},{"version":"5a369483ac4cfbdf0331c248deeb36140e6907db5e1daed241546b4a2055f82c","impliedFormat":1},{"version":"e8f5b5cc36615c17d330eaf8eebbc0d6bdd942c25991f96ef122f246f4ff722f","impliedFormat":1},{"version":"f0bd7e6d931657b59605c44112eaf8b980ba7f957a5051ed21cb93d978cf2f45","impliedFormat":1},{"version":"ee1ee365d88c4c6c0c0a5a5701d66ebc27ccd0bcfcfaa482c6e2e7fe7b98edf7","affectsGlobalScope":true,"impliedFormat":1},{"version":"4d7da7075068195f8f127f41c61e304cdca5aafb1be2d0f4fb67c6b4c3e98d50","affectsGlobalScope":true,"impliedFormat":1},{"version":"a4bdde4e601e9554a844e1e0d0ccfa05e183ef9d82ab3ac25f17c1709033d360","impliedFormat":1},{"version":"ad23fd126ff06e72728dd7bfc84326a8ca8cec2b9d2dac0193d42a777df0e7d8","impliedFormat":1},{"version":"c60db41f7bee80fb80c0b12819f5e465c8c8b465578da43e36d04f4a4646f57d","impliedFormat":1},{"version":"93bd413918fa921c8729cef45302b24d8b6c7855d72d5bf82d3972595ae8dcbf","impliedFormat":1},{"version":"4ff41188773cbf465807dd2f7059c7494cbee5115608efc297383832a1150c43","impliedFormat":1},{"version":"dccdf1677e531e33f8ac961a68bc537418c9a414797c1ea7e91307501cdc3f5e","impliedFormat":1},{"version":"1f4fc6905c4c3ae701838f89484f477b8d9b3ef39270e016b5488600d247d9a5","affectsGlobalScope":true,"impliedFormat":1},{"version":"d206b4baf4ddcc15d9d69a9a2f4999a72a2c6adeaa8af20fa7a9960816287555","impliedFormat":1},{"version":"93f437e1398a4f06a984f441f7fa7a9f0535c04399619b5c22e0b87bdee182cb","impliedFormat":1},{"version":"afbe24ab0d74694372baa632ecb28bb375be53f3be53f9b07ecd7fc994907de5","impliedFormat":1},{"version":"70731d10d5311bd4cf710ef7f6539b62660f4b0bfdbb3f9fbe1d25fe6366a7fa","affectsGlobalScope":true,"impliedFormat":1},{"version":"a20f1e119615bf7632729fd89b6c0b5ffdc2df3b512d6304146294528e3ebe19","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e043a1bc8fbf2a255bccf9bf27e0f1caf916c3b0518ea34aa72357c0afd42ec","impliedFormat":1},{"version":"137c2894e8f3e9672d401cc0a305dc7b1db7c69511cf6d3970fb53302f9eae09","impliedFormat":1},{"version":"3bc2f1e2c95c04048212c569ed38e338873f6a8593930cf5a7ef24ffb38fc3b6","impliedFormat":1},{"version":"8145e07aad6da5f23f2fcd8c8e4c5c13fb26ee986a79d03b0829b8fce152d8b2","impliedFormat":1},{"version":"f9d9d753d430ed050dc1bf2667a1bab711ccbb1c1507183d794cc195a5b085cc","impliedFormat":1},{"version":"9eece5e586312581ccd106d4853e861aaaa1a39f8e3ea672b8c3847eedd12f6e","impliedFormat":1},{"version":"235bfb54b4869c26f7e98e3d1f68dbfc85acf4cf5c38a4444a006fbf74a8a43d","impliedFormat":1},{"version":"37ba7b45141a45ce6e80e66f2a96c8a5ab1bcef0fc2d0f56bb58df96ec67e972","impliedFormat":1},{"version":"93452d394fdd1dc551ec62f5042366f011a00d342d36d50793b3529bfc9bd633","impliedFormat":1},{"version":"bb715efb4857eb94539eafb420352105a0cff40746837c5140bf6b035dd220ba","affectsGlobalScope":true,"impliedFormat":1},{"version":"1851a3b4db78664f83901bb9cac9e45e03a37bb5933cc5bf37e10bb7e91ab4eb","impliedFormat":1},{"version":"fdedf82878e4c744bc2a1c1e802ae407d63474da51f14a54babe039018e53d8f","affectsGlobalScope":true,"impliedFormat":1},{"version":"08353b04a3501d84fc8d7b49de99f6c1cc26026e6d9d697a18315f3bfe92ed03","affectsGlobalScope":true,"impliedFormat":1},{"version":"578d8bb6dcb2a1c03c4c3f8eb71abc9677e1a5c788b7f24848e3138ce17f3400","impliedFormat":1},{"version":"4f029899f9bae07e225c43aef893590541b2b43267383bf5e32e3a884d219ed5","impliedFormat":1},{"version":"ae56f65caf3be91108707bd8dfbccc2a57a91feb5daabf7165a06a945545ed26","impliedFormat":1},{"version":"a136d5de521da20f31631a0a96bf712370779d1c05b7015d7019a9b2a0446ca9","impliedFormat":1},{"version":"5b566927cad2ed2139655d55d690ffa87df378b956e7fe1c96024c4d9f75c4cf","affectsGlobalScope":true,"impliedFormat":1},{"version":"bce947017cb7a2deebcc4f5ba04cead891ce6ad1602a4438ae45ed9aa1f39104","affectsGlobalScope":true,"impliedFormat":1},{"version":"d3dffd70e6375b872f0b4e152de4ae682d762c61a24881ecc5eb9f04c5caf76f","impliedFormat":1},{"version":"e2c72c065a36bc9ab2a00ac6a6f51e71501619a72c0609defd304d46610487a4","impliedFormat":1},{"version":"d91a7d8b5655c42986f1bdfe2105c4408f472831c8f20cf11a8c3345b6b56c8c","impliedFormat":1},{"version":"616075a6ac578cf5a013ee12964188b4412823796ce0b202c6f1d2e4ca8480d7","affectsGlobalScope":true,"impliedFormat":1},{"version":"e8a979b8af001c9fc2e774e7809d233c8ca955a28756f52ee5dee88ccb0611d2","impliedFormat":1},{"version":"cac793cc47c29e26e4ac3601dcb00b4435ebed26203485790e44f2ad8b6ad847","impliedFormat":1},{"version":"2174e20517788d2a1379fc0aaacd87899a70f9e0197b4295edabfe75c4db03d8","impliedFormat":1},{"version":"e91ad231af87f864b3f07cd0e39b1cf6c133988156f087c1c3ccb0a5491c9115","impliedFormat":1},{"version":"cc256fd958b33576ed32c7338c64adb0d08fc0c2c6525010202fab83f32745da","impliedFormat":1},{"version":"bf0b1297461549a0e32cd57dffb992c63d7c7134fe0f9e15d359abcc88dbd28c","impliedFormat":1},{"version":"33ccf641b87b632dab4465dff17be9942223a60d4c00cf9bf4b475ebf4fe3fe0","impliedFormat":1},{"version":"e669c7d86a6b7cd23efc2c03d6653a4e83216cc35abf08fa3b1f4bb0559832b7","impliedFormat":1},{"version":"edbf61fe4fea39b48cbfd9ad2f835322d2a6f6bc9a13b83d7065c4f96dffb1ae","impliedFormat":1},{"version":"1c397c0621217834c42e628ccdf49fa99e30b1badc61e38db4512d696e6cc32c","impliedFormat":1},{"version":"4c92855f6a274786a259a14f88442d03ca59da72f6c3ee8fe1bd3c1189e1562b","impliedFormat":1},{"version":"db2c970dc8c91a5ad1c0b1c83287e21571aafa1075c43758516e2f3db0d05591","impliedFormat":1},{"version":"8f8d42a5461135c39d19565b0520447c0cc74fa565aa236952c53e58fc99321c","impliedFormat":1},{"version":"6fbd2e62fbfaf00ade8db0c3e2af9e07c713172752840fa002b50e454a427d5b","impliedFormat":1},{"version":"c874e71ac504fbe9fe754d2211ace82d109101b4bac5e15375a00f175485050d","impliedFormat":1},{"version":"8a0fc837db8dd8d44ea3cd1196b5567b6d56c22c732d3c3f997e166db9a38ec7","impliedFormat":1},{"version":"b747b5be93fb1b63b55f304d955a0a38a3bf30638bd68838ba1a5273cb953335","impliedFormat":1},{"version":"11ce8c263fe510574f6f67963ddec61770453611882423a89bbb7cee2e8be2a9","signature":"66cf19da37f1fca92f9db4e9545f6ac2d01ae7a0a3aa003f1251605b6c251b46"},{"version":"8332b21b24b12b239f3c83ec0aedc36416d5bd6f337ea6b9a185f17a8b7d0f4c","impliedFormat":1},{"version":"5798f678b5eec1de83d58ad59e57d80abdd299199b2c6e3fe02b9259cfb871a8","affectsGlobalScope":true,"impliedFormat":1},{"version":"4efa8d48c4818eaba8bd3e18ddd111ae90bd6a4e7d8ecaf2dcf1576ed91bf549","impliedFormat":1},{"version":"7c5aa54c08530be9a062dd379163c2d3efc2c3f530836696b56e43122d4fe361","signature":"e002ae8e2a90e7c6dd06d850676725e7a6b698bc793fc0c08def913e0ca7329a"},{"version":"898f0a37f4ac6cf1cc79174191b432da87a80c5aa411eaec476367ee8b912623","signature":"c13bcff17df5b48714d97100a31836962cd1c5bba9791e388737dace0979980a"},{"version":"d09f35c7cf34b10c26d913361bbabb2f9805cc5b81576d20b21821493f23b2bf","signature":"cbc150f16dde91de0f9d8ddc1dc310e15a17aede5d1c789d2c8569c99dfc3aa4"},{"version":"73d70be81c92f312b151676926282eb3dc7b0876c4e82758023e183e53b06fb3","signature":"fdf2945e4a6cbca9e802f48c3f99ab1de69fef0029ca9baaac04f63a89d011aa"},"469c22b78e01c8337d6dc1a02fe2103e14b5a9267131fed4b0fc2f699b934a8b",{"version":"5b08187652363d1e9d1e03721e9359769b8219bd07a5f2bd5e7cdabf27a5bb8e","signature":"697615a5bcfad16aa7742f31355e97664b2d4c4cac6c7998cbcf0003df715ec8"},{"version":"420b3b95c86bdb6374aa7205ddab56d40a073f3dfc779d1a946c9b0338fb0576","signature":"19a180977e06c2712b5a24cbff9569ea037990f4ca35131d5f262b74cc5006ef"},{"version":"81fb674b464b9947694b6227b141734aa4b8987d5a6415edf86c19f96a1dc414","signature":"bc004f4d3358a1e660f61b6782c259d0b6ab05c83477ef95151d4f075ae87cf3"},{"version":"1592747a8020452a3d3c88e42a54ccebcfa05e81e7d318ab890ad0515c9b0189","signature":"554d91357f193c18a51e7731b7b9e76dbb700f7e7ede95ab2632d077e9d5b668"},{"version":"1d32cdf5f7d4e7d590c7c21270d18e596630d49487e9c34e50a4cc8008b8f31c","signature":"a92fc1936201b655aa30179cddf4f103047eff740b8b5dd81fbd43ce03d12010"},{"version":"6b8046fb026459970084cce93a4287cc07ed7efd3f9e3748edf529f0c526350f","signature":"0133e36a86aa1c07bfdb7fe1b8dad0428c6b93ca348c216959148c4ee1c588a1"},{"version":"0828a10710df5c0f14cb3a6168c3986341118496d4383967acda1717c6899efe","signature":"cc186e2b74cf13a20cfe3a4555f9e892116fabd4bc3c25b0dfb72a67535ce789"},{"version":"9619b49e8ec7989fbcdc6f4a054d92ab1c1b04e99d9a97b8362c78b5276eae0b","signature":"f0dcd1c1029a46b176c00d81b155fa09e258c65941f3fc9377ade260e51cb290"},{"version":"456b6f1b0f7ca6d684629ac2f89da6dbe2ab878b86d997cab44f5e76b15470d4","signature":"aeeff1448b63b7f65190efda8b542f8b9e4418d5950891403aec0b2b5516b9d3"},"a268fcefacc00bf1df92313a4023546bda199aa3270fd8a8a65d9648aafc3680",{"version":"5b51b1d7887d9cb7d2c7a1e9ea284720c6df3eeb5676fbe6dc120bdcdb65cf40","signature":"c7bf20625b8963b85a28cda9c1735d2543c8a992abb5a6811e89aa4a75251674"},{"version":"836e67c561ccb58c8e8ecc90b22aada64f8fafc91f4c50d3c30937a62585551d","signature":"67210e50b584d55030788bebcd2efc3a1ecbf8c7c9a3d562d5753f068da04fc9"},{"version":"6d89dabf27ed0683ee298279025b2e515c3518b04524d86d651eb526f2f9ee12","signature":"8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881"},{"version":"21522c0f405e58c8dd89cd97eb3d1aa9865ba017fde102d01f86ab50b44e5610","impliedFormat":1},{"version":"3cfb7c0c642b19fb75132154040bb7cd840f0002f9955b14154e69611b9b3f81","impliedFormat":1},{"version":"8387ec1601cf6b8948672537cf8d430431ba0d87b1f9537b4597c1ab8d3ade5b","impliedFormat":1},{"version":"d16f1c460b1ca9158e030fdf3641e1de11135e0c7169d3e8cf17cc4cc35d5e64","impliedFormat":1},{"version":"a934063af84f8117b8ce51851c1af2b76efe960aa4c7b48d0343a1b15c01aedf","impliedFormat":1},{"version":"e3c5ad476eb2fca8505aee5bdfdf9bf11760df5d0f9545db23f12a5c4d72a718","impliedFormat":1},{"version":"462bccdf75fcafc1ae8c30400c9425e1a4681db5d605d1a0edb4f990a54d8094","impliedFormat":1},{"version":"5923d8facbac6ecf7c84739a5c701a57af94a6f6648d6229a6c768cf28f0f8cb","impliedFormat":1},{"version":"d0570ce419fb38287e7b39c910b468becb5b2278cf33b1000a3d3e82a46ecae2","impliedFormat":1},{"version":"3aca7f4260dad9dcc0a0333654cb3cde6664d34a553ec06c953bce11151764d7","impliedFormat":1},{"version":"a0a6f0095f25f08a7129bc4d7cb8438039ec422dc341218d274e1e5131115988","impliedFormat":1},{"version":"b58f396fe4cfe5a0e4d594996bc8c1bfe25496fbc66cf169d41ac3c139418c77","impliedFormat":1},{"version":"45785e608b3d380c79e21957a6d1467e1206ac0281644e43e8ed6498808ace72","impliedFormat":1},{"version":"bece27602416508ba946868ad34d09997911016dbd6893fb884633017f74e2c5","impliedFormat":1},{"version":"2a90177ebaef25de89351de964c2c601ab54d6e3a157cba60d9cd3eaf5a5ee1a","impliedFormat":1},{"version":"82200e963d3c767976a5a9f41ecf8c65eca14a6b33dcbe00214fcbe959698c46","impliedFormat":1},{"version":"b4966c503c08bbd9e834037a8ab60e5f53c5fd1092e8873c4a1c344806acdab2","impliedFormat":1},{"version":"010cfc820d1fc001fd6099eaeb5a5d111b72dc60cc9e19bde0e9d6a4c4709324","signature":"8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881"},{"version":"4c47f7c0390ec339389630a6a1324671bf76a24e7f72ae4fef18a26a9ab582a2","signature":"8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881"},"bf27fd88498119d31ef85c74da617d77b9ca82360950a1a48e31032b58b16b70",{"version":"05321b823dd3781d0b6aac8700bfdc0c9181d56479fe52ba6a40c9196fd661a8","impliedFormat":1},{"version":"b598deb1da203a2b58c76cf8d91cfc2ca172d785dacd8466c0a11e400ff6ab2d","impliedFormat":1},{"version":"2a440f32bf83a8ef4bac939a6a3b8b59e8b14a060032444c9bb3ba7605a4c403","impliedFormat":1},{"version":"814dcbbfca3e72bfd69442288ffa48aee79e9ab4f758e059a91793be25653cce","signature":"8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881"},{"version":"4c39fc376c72e39f807fa025d08818a443b72398b04e9c02dc9fc632950da13d","signature":"7f259a9059d28a11c6de95e3242f89864375fc3b1d00b0e7922474def6886ffb"},{"version":"cdcc132f207d097d7d3aa75615ab9a2e71d6a478162dde8b67f88ea19f3e54de","impliedFormat":1},{"version":"0d14fa22c41fdc7277e6f71473b20ebc07f40f00e38875142335d5b63cdfc9d2","impliedFormat":1},{"version":"c085e9aa62d1ae1375794c1fb927a445fa105fed891a7e24edbb1c3300f7384a","impliedFormat":1},{"version":"f315e1e65a1f80992f0509e84e4ae2df15ecd9ef73df975f7c98813b71e4c8da","impliedFormat":1},{"version":"5b9586e9b0b6322e5bfbd2c29bd3b8e21ab9d871f82346cb71020e3d84bae73e","impliedFormat":1},{"version":"3e70a7e67c2cb16f8cd49097360c0309fe9d1e3210ff9222e9dac1f8df9d4fb6","impliedFormat":1},{"version":"ab68d2a3e3e8767c3fba8f80de099a1cfc18c0de79e42cb02ae66e22dfe14a66","impliedFormat":1},{"version":"d96cc6598148bf1a98fb2e8dcf01c63a4b3558bdaec6ef35e087fd0562eb40ec","impliedFormat":1},{"version":"f8db4fea512ab759b2223b90ecbbe7dae919c02f8ce95ec03f7fb1cf757cfbeb","affectsGlobalScope":true,"impliedFormat":1},{"version":"72e9425f1ba1eb7fd8122d08f48848a0d56de1cd4c7b51f26dc2612bd26c7241","impliedFormat":1},{"version":"841784cfa9046a2b3e453d638ea5c3e53680eb8225a45db1c13813f6ea4095e5","affectsGlobalScope":true,"impliedFormat":1},{"version":"646ef1cff0ec3cf8e96adb1848357788f244b217345944c2be2942a62764b771","impliedFormat":1}],"root":[[64,66],187,[191,208],[226,228],232,233],"options":{"allowSyntheticDefaultImports":true,"declaration":true,"declarationDir":"../types","emitDeclarationOnly":true,"esModuleInterop":true,"jsx":4,"module":1,"outDir":"./","sourceMap":true,"strict":true,"target":4},"referencedMap":[[184,1],[73,2],[183,3],[68,4],[177,4],[178,5],[186,6],[70,4],[69,4],[185,7],[176,8],[72,2],[180,9],[181,10],[182,10],[71,11],[179,4],[234,4],[237,12],[236,4],[189,13],[190,14],[188,4],[216,15],[215,4],[223,4],[220,4],[219,4],[214,16],[225,17],[210,18],[221,19],[213,20],[212,21],[222,4],[217,22],[224,4],[218,23],[211,4],[245,24],[244,25],[243,18],[231,26],[209,4],[172,4],[242,27],[119,28],[120,28],[121,29],[79,30],[122,31],[123,32],[124,33],[74,4],[77,34],[75,4],[76,4],[125,35],[126,36],[127,37],[128,38],[129,39],[130,40],[131,40],[133,41],[132,42],[134,43],[135,44],[136,45],[118,46],[78,4],[137,47],[138,48],[139,49],[171,50],[140,51],[141,52],[142,53],[96,54],[106,55],[95,54],[116,56],[87,57],[86,58],[115,59],[109,60],[114,61],[89,62],[103,63],[88,64],[112,65],[84,66],[83,59],[113,67],[85,68],[90,69],[91,4],[94,69],[81,4],[117,70],[107,71],[98,72],[99,73],[101,74],[97,75],[100,76],[110,59],[92,77],[93,78],[102,79],[82,80],[105,71],[104,69],[108,4],[111,81],[143,82],[144,83],[145,84],[146,85],[147,86],[148,87],[149,88],[150,88],[151,89],[152,4],[153,90],[155,91],[154,92],[156,93],[157,94],[158,95],[159,96],[160,97],[161,98],[162,99],[163,100],[164,101],[165,102],[166,103],[167,104],[168,105],[169,106],[170,107],[67,4],[61,4],[229,108],[230,109],[59,4],[62,110],[63,108],[175,111],[173,112],[174,4],[80,4],[235,4],[60,4],[241,113],[239,114],[240,115],[238,116],[57,4],[58,4],[10,4],[12,4],[11,4],[2,4],[13,4],[14,4],[15,4],[16,4],[17,4],[18,4],[19,4],[20,4],[3,4],[21,4],[22,4],[4,4],[23,4],[27,4],[24,4],[25,4],[26,4],[28,4],[29,4],[30,4],[5,4],[31,4],[32,4],[33,4],[34,4],[6,4],[38,4],[35,4],[36,4],[37,4],[39,4],[7,4],[40,4],[45,4],[46,4],[41,4],[42,4],[43,4],[44,4],[8,4],[50,4],[47,4],[48,4],[49,4],[51,4],[9,4],[52,4],[53,4],[54,4],[56,4],[55,4],[1,4],[66,117],[65,118],[64,119],[187,120],[228,121],[206,122],[207,119],[203,123],[232,124],[204,125],[208,126],[192,123],[193,127],[201,128],[198,127],[196,129],[200,130],[199,127],[197,127],[202,127],[226,131],[205,132],[191,133],[195,134],[233,135],[227,134],[194,119]],"version":"5.7.2"}
1
+ {"fileNames":["../../../../node_modules/typescript/lib/lib.es5.d.ts","../../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../../node_modules/typescript/lib/lib.es2020.d.ts","../../../../node_modules/typescript/lib/lib.es2021.d.ts","../../../../node_modules/typescript/lib/lib.es2022.d.ts","../../../../node_modules/typescript/lib/lib.dom.d.ts","../../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../../node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../../node_modules/typescript/lib/lib.es2017.date.d.ts","../../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../../../node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2021.string.d.ts","../../../../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../../node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2022.array.d.ts","../../../../node_modules/typescript/lib/lib.es2022.error.d.ts","../../../../node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2022.object.d.ts","../../../../node_modules/typescript/lib/lib.es2022.string.d.ts","../../../../node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../../node_modules/typescript/lib/lib.decorators.d.ts","../../../../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../../node_modules/@types/react/global.d.ts","../../../../node_modules/csstype/index.d.ts","../../../../node_modules/@types/prop-types/index.d.ts","../../../../node_modules/@types/react/index.d.ts","../../../../node_modules/@types/react/jsx-runtime.d.ts","../../src/address-lookup/types.ts","../../src/address-lookup/index.ts","../../src/address-lookup/index.test.ts","../../../../node_modules/@types/promise-polyfill/index.d.ts","../../../../node_modules/@airbrake/browser/dist/func_wrapper.d.ts","../../../../node_modules/@airbrake/browser/dist/notice.d.ts","../../../../node_modules/@airbrake/browser/dist/metrics.d.ts","../../../../node_modules/@airbrake/browser/dist/scope.d.ts","../../../../node_modules/@airbrake/browser/dist/processor/processor.d.ts","../../../../node_modules/@airbrake/browser/dist/filter/filter.d.ts","../../../../node_modules/@types/node/compatibility/disposable.d.ts","../../../../node_modules/@types/node/compatibility/indexable.d.ts","../../../../node_modules/@types/node/compatibility/iterators.d.ts","../../../../node_modules/@types/node/compatibility/index.d.ts","../../../../node_modules/@types/node/globals.typedarray.d.ts","../../../../node_modules/@types/node/buffer.buffer.d.ts","../../../../node_modules/buffer/index.d.ts","../../../../node_modules/@types/node/node_modules/undici-types/header.d.ts","../../../../node_modules/@types/node/node_modules/undici-types/readable.d.ts","../../../../node_modules/@types/node/node_modules/undici-types/file.d.ts","../../../../node_modules/@types/node/node_modules/undici-types/fetch.d.ts","../../../../node_modules/@types/node/node_modules/undici-types/formdata.d.ts","../../../../node_modules/@types/node/node_modules/undici-types/connector.d.ts","../../../../node_modules/@types/node/node_modules/undici-types/client.d.ts","../../../../node_modules/@types/node/node_modules/undici-types/errors.d.ts","../../../../node_modules/@types/node/node_modules/undici-types/dispatcher.d.ts","../../../../node_modules/@types/node/node_modules/undici-types/global-dispatcher.d.ts","../../../../node_modules/@types/node/node_modules/undici-types/global-origin.d.ts","../../../../node_modules/@types/node/node_modules/undici-types/pool-stats.d.ts","../../../../node_modules/@types/node/node_modules/undici-types/pool.d.ts","../../../../node_modules/@types/node/node_modules/undici-types/handlers.d.ts","../../../../node_modules/@types/node/node_modules/undici-types/balanced-pool.d.ts","../../../../node_modules/@types/node/node_modules/undici-types/agent.d.ts","../../../../node_modules/@types/node/node_modules/undici-types/mock-interceptor.d.ts","../../../../node_modules/@types/node/node_modules/undici-types/mock-agent.d.ts","../../../../node_modules/@types/node/node_modules/undici-types/mock-client.d.ts","../../../../node_modules/@types/node/node_modules/undici-types/mock-pool.d.ts","../../../../node_modules/@types/node/node_modules/undici-types/mock-errors.d.ts","../../../../node_modules/@types/node/node_modules/undici-types/proxy-agent.d.ts","../../../../node_modules/@types/node/node_modules/undici-types/env-http-proxy-agent.d.ts","../../../../node_modules/@types/node/node_modules/undici-types/retry-handler.d.ts","../../../../node_modules/@types/node/node_modules/undici-types/retry-agent.d.ts","../../../../node_modules/@types/node/node_modules/undici-types/api.d.ts","../../../../node_modules/@types/node/node_modules/undici-types/interceptors.d.ts","../../../../node_modules/@types/node/node_modules/undici-types/util.d.ts","../../../../node_modules/@types/node/node_modules/undici-types/cookies.d.ts","../../../../node_modules/@types/node/node_modules/undici-types/patch.d.ts","../../../../node_modules/@types/node/node_modules/undici-types/websocket.d.ts","../../../../node_modules/@types/node/node_modules/undici-types/eventsource.d.ts","../../../../node_modules/@types/node/node_modules/undici-types/filereader.d.ts","../../../../node_modules/@types/node/node_modules/undici-types/diagnostics-channel.d.ts","../../../../node_modules/@types/node/node_modules/undici-types/content-type.d.ts","../../../../node_modules/@types/node/node_modules/undici-types/cache.d.ts","../../../../node_modules/@types/node/node_modules/undici-types/index.d.ts","../../../../node_modules/@types/node/globals.d.ts","../../../../node_modules/@types/node/assert.d.ts","../../../../node_modules/@types/node/assert/strict.d.ts","../../../../node_modules/@types/node/async_hooks.d.ts","../../../../node_modules/@types/node/buffer.d.ts","../../../../node_modules/@types/node/child_process.d.ts","../../../../node_modules/@types/node/cluster.d.ts","../../../../node_modules/@types/node/console.d.ts","../../../../node_modules/@types/node/constants.d.ts","../../../../node_modules/@types/node/crypto.d.ts","../../../../node_modules/@types/node/dgram.d.ts","../../../../node_modules/@types/node/diagnostics_channel.d.ts","../../../../node_modules/@types/node/dns.d.ts","../../../../node_modules/@types/node/dns/promises.d.ts","../../../../node_modules/@types/node/domain.d.ts","../../../../node_modules/@types/node/dom-events.d.ts","../../../../node_modules/@types/node/events.d.ts","../../../../node_modules/@types/node/fs.d.ts","../../../../node_modules/@types/node/fs/promises.d.ts","../../../../node_modules/@types/node/http.d.ts","../../../../node_modules/@types/node/http2.d.ts","../../../../node_modules/@types/node/https.d.ts","../../../../node_modules/@types/node/inspector.d.ts","../../../../node_modules/@types/node/module.d.ts","../../../../node_modules/@types/node/net.d.ts","../../../../node_modules/@types/node/os.d.ts","../../../../node_modules/@types/node/path.d.ts","../../../../node_modules/@types/node/perf_hooks.d.ts","../../../../node_modules/@types/node/process.d.ts","../../../../node_modules/@types/node/punycode.d.ts","../../../../node_modules/@types/node/querystring.d.ts","../../../../node_modules/@types/node/readline.d.ts","../../../../node_modules/@types/node/readline/promises.d.ts","../../../../node_modules/@types/node/repl.d.ts","../../../../node_modules/@types/node/sea.d.ts","../../../../node_modules/@types/node/stream.d.ts","../../../../node_modules/@types/node/stream/promises.d.ts","../../../../node_modules/@types/node/stream/consumers.d.ts","../../../../node_modules/@types/node/stream/web.d.ts","../../../../node_modules/@types/node/string_decoder.d.ts","../../../../node_modules/@types/node/test.d.ts","../../../../node_modules/@types/node/timers.d.ts","../../../../node_modules/@types/node/timers/promises.d.ts","../../../../node_modules/@types/node/tls.d.ts","../../../../node_modules/@types/node/trace_events.d.ts","../../../../node_modules/@types/node/tty.d.ts","../../../../node_modules/@types/node/url.d.ts","../../../../node_modules/@types/node/util.d.ts","../../../../node_modules/@types/node/v8.d.ts","../../../../node_modules/@types/node/vm.d.ts","../../../../node_modules/@types/node/wasi.d.ts","../../../../node_modules/@types/node/worker_threads.d.ts","../../../../node_modules/@types/node/zlib.d.ts","../../../../node_modules/@types/node/index.d.ts","../../../../node_modules/@types/caseless/index.d.ts","../../../../node_modules/@types/request/node_modules/form-data/index.d.ts","../../../../node_modules/@types/tough-cookie/index.d.ts","../../../../node_modules/@types/request/index.d.ts","../../../../node_modules/@airbrake/browser/dist/options.d.ts","../../../../node_modules/@airbrake/browser/dist/http_req/api.d.ts","../../../../node_modules/@airbrake/browser/dist/http_req/index.d.ts","../../../../node_modules/@airbrake/browser/dist/tdshared.d.ts","../../../../node_modules/@airbrake/browser/dist/queries.d.ts","../../../../node_modules/@airbrake/browser/dist/queues.d.ts","../../../../node_modules/@airbrake/browser/dist/routes.d.ts","../../../../node_modules/@airbrake/browser/dist/filter/performance_filter.d.ts","../../../../node_modules/@airbrake/browser/dist/base_notifier.d.ts","../../../../node_modules/@airbrake/browser/dist/notifier.d.ts","../../../../node_modules/@airbrake/browser/dist/index.d.ts","../../src/airbrake/index.ts","../../../../node_modules/@snowplow/tracker-core/dist/index.module.d.ts","../../../../node_modules/@snowplow/browser-tracker-core/dist/index.module.d.ts","../../../../node_modules/@snowplow/browser-tracker/dist/index.module.d.ts","../../src/snowplow/types.ts","../../src/snowplow/contexts.ts","../../src/snowplow/event-definitions/base.ts","../../src/utils/text.ts","../../src/utils/index.ts","../../src/snowplow/event-definitions/qcp.ts","../../src/snowplow/event-definitions/referral.ts","../../src/snowplow/event-definitions/intervention.ts","../../src/snowplow/event-definitions/redaction.ts","../../src/snowplow/event-definitions/questionnaire.ts","../../src/snowplow/event-definitions/index.ts","../../src/snowplow/getSnowplowConfig.ts","../../src/snowplow/Snowplow.ts","../../src/snowplow/SnowplowContext.tsx","../../src/snowplow/index.ts","../../src/mocks/eventDefinitions.ts","../../src/mocks/scripts-mock.ts","../../src/snowplow/contexts.test.ts","../../../../node_modules/@types/aria-query/index.d.ts","../../../../node_modules/@testing-library/dom/types/matches.d.ts","../../../../node_modules/@testing-library/dom/types/wait-for.d.ts","../../../../node_modules/@testing-library/dom/types/query-helpers.d.ts","../../../../node_modules/@testing-library/dom/types/queries.d.ts","../../../../node_modules/@testing-library/dom/types/get-queries-for-element.d.ts","../../../../node_modules/@testing-library/dom/node_modules/pretty-format/build/types.d.ts","../../../../node_modules/@testing-library/dom/node_modules/pretty-format/build/index.d.ts","../../../../node_modules/@testing-library/dom/types/screen.d.ts","../../../../node_modules/@testing-library/dom/types/wait-for-element-to-be-removed.d.ts","../../../../node_modules/@testing-library/dom/types/get-node-text.d.ts","../../../../node_modules/@testing-library/dom/types/events.d.ts","../../../../node_modules/@testing-library/dom/types/pretty-dom.d.ts","../../../../node_modules/@testing-library/dom/types/role-helpers.d.ts","../../../../node_modules/@testing-library/dom/types/config.d.ts","../../../../node_modules/@testing-library/dom/types/suggestions.d.ts","../../../../node_modules/@testing-library/dom/types/index.d.ts","../../src/snowplow/index.test.ts","../../src/utils/text.test.ts","../../src/index.tsx","../../../../node_modules/@types/react-dom/client.d.ts","../../../../node_modules/@types/react-dom/test-utils/index.d.ts","../../../../node_modules/@testing-library/react/types/index.d.ts","../../src/snowplow/SnowplowContext.test.tsx","../../src/utils/testUtils.tsx","../../../../node_modules/@jest/expect-utils/build/index.d.ts","../../../../node_modules/chalk/index.d.ts","../../../../node_modules/@sinclair/typebox/typebox.d.ts","../../../../node_modules/@jest/schemas/build/index.d.ts","../../../../node_modules/pretty-format/build/index.d.ts","../../../../node_modules/jest-diff/build/index.d.ts","../../../../node_modules/jest-matcher-utils/build/index.d.ts","../../../../node_modules/expect/build/index.d.ts","../../../../node_modules/@types/jest/index.d.ts","../../../../node_modules/@testing-library/jest-dom/types/matchers.d.ts","../../../../node_modules/@testing-library/jest-dom/types/jest.d.ts","../../../../node_modules/@testing-library/jest-dom/types/index.d.ts"],"fileIdsList":[[67,68,69,71,72,73,79,122,176,178,180,181,182,183],[69,79,122],[79,122,182],[79,122],[79,122,176,177],[69,71,79,122,176,180,184,185],[67,69,79,122,176,184],[69,72,79,122,175],[79,122,176,178,179],[70,79,122,176,178,179],[70,79,122],[79,122,236],[79,122,188],[79,122,188,189],[79,122,215],[79,122,213],[79,122,210,211,212,213,214,217,218,219,220,221,222,223,224],[79,122,209],[79,122,216],[79,122,210,211,212],[79,122,210,211],[79,122,213,214,216],[79,122,211],[79,122,244],[79,122,242,243],[62,79,122,225,229,230],[79,122,238,241],[79,119,122],[79,121,122],[122],[79,122,127,156],[79,122,123,128,134,135,142,153,164],[79,122,123,124,134,142],[74,75,76,79,122],[79,122,125,165],[79,122,126,127,135,143],[79,122,127,153,161],[79,122,128,130,134,142],[79,121,122,129],[79,122,130,131],[79,122,134],[79,122,132,134],[79,121,122,134],[79,122,134,135,136,153,164],[79,122,134,135,136,149,153,156],[79,117,122,169],[79,122,130,134,137,142,153,164],[79,122,134,135,137,138,142,153,161,164],[79,122,137,139,153,161,164],[77,78,79,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170],[79,122,134,140],[79,122,141,164,169],[79,122,130,134,142,153],[79,89,93,122,164],[79,89,122,153,164],[79,84,122],[79,86,89,122,161,164],[79,122,142,161],[79,122,171],[79,84,122,171],[79,86,89,122,142,164],[79,81,82,85,88,122,134,153,164],[79,89,96,122],[79,81,87,122],[79,89,110,111,122],[79,85,89,122,156,164,171],[79,110,122,171],[79,83,84,122,171],[79,89,122],[79,83,84,85,86,87,88,89,90,91,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,111,112,113,114,115,116,122],[79,89,104,122],[79,89,96,97,122],[79,87,89,97,98,122],[79,88,122],[79,81,84,89,122],[79,89,93,97,98,122],[79,93,122],[79,87,89,92,122,164],[79,81,86,89,96,122],[79,122,153],[79,84,89,110,122,169,171],[79,122,143],[79,122,144],[79,121,122,145],[79,119,120,121,122,123,124,125,126,127,128,129,130,131,132,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170],[79,122,147],[79,122,148],[79,122,134,149,150],[79,122,149,151,165,167],[79,122,134,153,154,155,156],[79,122,153,155],[79,122,153,154],[79,122,156],[79,122,157],[79,119,122,153],[79,122,134,159,160],[79,122,159,160],[79,122,127,142,153,161],[79,122,162],[79,122,142,163],[79,122,137,148,164],[79,122,127,165],[79,122,153,166],[79,122,141,167],[79,122,168],[79,122,127,134,136,145,153,164,167,169],[79,122,153,170],[62,79,122],[62,79,122,230],[59,60,61,79,122],[79,122,135,137,139,142,153,164,171,172,173,174],[79,122,137,153,171],[79,122,234,240],[79,122,238],[79,122,235,239],[79,122,237],[63,64,65,79,122],[63,64,79,122],[63,79,122],[63,79,122,186],[63,65,79,122,187,205],[63,79,122,199,205],[63,79,122,190,191],[63,79,122,191,202,204,207,231],[62,63,79,122,191,192,201,203],[63,79,122,191,192,202,207],[63,79,122,191],[63,79,122,193,196,197,198,200],[63,79,122,191,195],[63,79,122,191,199],[63,79,122,190,191,192,202,203,206,207,225],[63,79,122,191,192,201,202,203,204],[63,79,122,190],[63,79,122,194],[62,63,79,122,191,202,204,207,231]],"fileInfos":[{"version":"e41c290ef7dd7dab3493e6cbe5909e0148edf4a8dad0271be08edec368a0f7b9","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"ee7bad0c15b58988daa84371e0b89d313b762ab83cb5b31b8a2d1162e8eb41c2","impliedFormat":1},{"version":"4fd3f3422b2d2a3dfd5cdd0f387b3a8ec45f006c6ea896a4cb41264c2100bb2c","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"62bb211266ee48b2d0edf0d8d1b191f0c24fc379a82bd4c1692a082c540bc6b1","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"936e80ad36a2ee83fc3caf008e7c4c5afe45b3cf3d5c24408f039c1d47bdc1df","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"fef8cfad2e2dc5f5b3d97a6f4f2e92848eb1b88e897bb7318cef0e2820bceaab","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"f1e2a172204962276504466a6393426d2ca9c54894b1ad0a6c9dad867a65f876","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"959d36cddf5e7d572a65045b876f2956c973a586da58e5d26cde519184fd9b8a","affectsGlobalScope":true,"impliedFormat":1},{"version":"965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d","affectsGlobalScope":true,"impliedFormat":1},{"version":"3925a6c820dcb1a06506c90b1577db1fdbf7705d65b62b99dce4be75c637e26b","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a3d63ef2b853447ec4f749d3f368ce642264246e02911fcb1590d8c161b8005","affectsGlobalScope":true,"impliedFormat":1},{"version":"b5ce7a470bc3628408429040c4e3a53a27755022a32fd05e2cb694e7015386c7","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"36a2e4c9a67439aca5f91bb304611d5ae6e20d420503e96c230cf8fcdc948d94","affectsGlobalScope":true,"impliedFormat":1},{"version":"8a8eb4ebffd85e589a1cc7c178e291626c359543403d58c9cd22b81fab5b1fb9","impliedFormat":1},{"version":"6a386ff939f180ae8ef064699d8b7b6e62bc2731a62d7fbf5e02589383838dea","impliedFormat":1},{"version":"aa17748c522bd586f8712b1a308ea23af59c309b2fd278f6d4f406647c72e659","affectsGlobalScope":true,"impliedFormat":1},{"version":"42c169fb8c2d42f4f668c624a9a11e719d5d07dacbebb63cbcf7ef365b0a75b3","impliedFormat":1},"186fe557229b5bbcf91b3cb58b861516c27bb82d5b0a3a1f76e6ab36a3a75d33","dd06fd7ef33c016acad29ff90f4e17e17d4ff9a885347dc81329ac8a766be951","feeae420b8b430b966e5ac3b0b6d9a60618884c3566419a329e279cb902eb0e7",{"version":"a067ccda3dc15f1ad9724407078558a9755ee8cc452c1918329404541f291bf4","impliedFormat":1},{"version":"e06df6a63913f26f0c6bc2c9f54b9b3aad8af438d329658ef1b8e5c732fc64c6","impliedFormat":1},{"version":"d3de7febd1f6434e2c9c19ed5d54733b38828e1265803fc1bbb02143498367d9","impliedFormat":1},{"version":"2809fffac4424ce19f981032c238957df8967deb6f5f5a66d3668f7b5cf9099a","impliedFormat":1},{"version":"66eb6e055b9efe4eb830e6cdad9a74c87ebc56c9a229d1d6d88ac9c1ed9e2824","impliedFormat":1},{"version":"6558f318b59858e4706dbcb4dd034ea3b3faea3582ede27c8db7d5ea18b2d763","impliedFormat":1},{"version":"12d9ddb49893722ecea2d283784ad873ece0545ed783c9bbf61f98a31011084d","impliedFormat":1},{"version":"70521b6ab0dcba37539e5303104f29b721bfb2940b2776da4cc818c07e1fefc1","affectsGlobalScope":true,"impliedFormat":1},{"version":"ab41ef1f2cdafb8df48be20cd969d875602483859dc194e9c97c8a576892c052","affectsGlobalScope":true,"impliedFormat":1},{"version":"d153a11543fd884b596587ccd97aebbeed950b26933ee000f94009f1ab142848","affectsGlobalScope":true,"impliedFormat":1},{"version":"21d819c173c0cf7cc3ce57c3276e77fd9a8a01d35a06ad87158781515c9a438a","impliedFormat":1},{"version":"a79e62f1e20467e11a904399b8b18b18c0c6eea6b50c1168bf215356d5bebfaf","affectsGlobalScope":true,"impliedFormat":1},{"version":"0fd06258805d26c72f5997e07a23155d322d5f05387adb3744a791fe6a0b042d","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e9c23ba78aabc2e0a27033f18737a6df754067731e69dc5f52823957d60a4b6","impliedFormat":1},{"version":"5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","impliedFormat":1},{"version":"24bd580b5743dc56402c440dc7f9a4f5d592ad7a419f25414d37a7bfe11e342b","impliedFormat":1},{"version":"25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","impliedFormat":1},{"version":"c464d66b20788266e5353b48dc4aa6bc0dc4a707276df1e7152ab0c9ae21fad8","impliedFormat":1},{"version":"78d0d27c130d35c60b5e5566c9f1e5be77caf39804636bc1a40133919a949f21","impliedFormat":1},{"version":"c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","impliedFormat":1},{"version":"1d6e127068ea8e104a912e42fc0a110e2aa5a66a356a917a163e8cf9a65e4a75","impliedFormat":1},{"version":"5ded6427296cdf3b9542de4471d2aa8d3983671d4cac0f4bf9c637208d1ced43","impliedFormat":1},{"version":"6bdc71028db658243775263e93a7db2fd2abfce3ca569c3cca5aee6ed5eb186d","impliedFormat":1},{"version":"cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","impliedFormat":1},{"version":"385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","impliedFormat":1},{"version":"9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","impliedFormat":1},{"version":"0b8a9268adaf4da35e7fa830c8981cfa22adbbe5b3f6f5ab91f6658899e657a7","impliedFormat":1},{"version":"11396ed8a44c02ab9798b7dca436009f866e8dae3c9c25e8c1fbc396880bf1bb","impliedFormat":1},{"version":"ba7bc87d01492633cb5a0e5da8a4a42a1c86270e7b3d2dea5d156828a84e4882","impliedFormat":1},{"version":"4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","impliedFormat":1},{"version":"c21dc52e277bcfc75fac0436ccb75c204f9e1b3fa5e12729670910639f27343e","impliedFormat":1},{"version":"13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","impliedFormat":1},{"version":"9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","impliedFormat":1},{"version":"4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","impliedFormat":1},{"version":"24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","impliedFormat":1},{"version":"ea0148f897b45a76544ae179784c95af1bd6721b8610af9ffa467a518a086a43","impliedFormat":1},{"version":"24c6a117721e606c9984335f71711877293a9651e44f59f3d21c1ea0856f9cc9","impliedFormat":1},{"version":"dd3273ead9fbde62a72949c97dbec2247ea08e0c6952e701a483d74ef92d6a17","impliedFormat":1},{"version":"405822be75ad3e4d162e07439bac80c6bcc6dbae1929e179cf467ec0b9ee4e2e","impliedFormat":1},{"version":"0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","impliedFormat":1},{"version":"4d2b0eb911816f66abe4970898f97a2cfc902bcd743cbfa5017fad79f7ef90d8","impliedFormat":1},{"version":"bd0532fd6556073727d28da0edfd1736417a3f9f394877b6d5ef6ad88fba1d1a","impliedFormat":1},{"version":"89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","impliedFormat":1},{"version":"e53a3c2a9f624d90f24bf4588aacd223e7bec1b9d0d479b68d2f4a9e6011147f","impliedFormat":1},{"version":"24b8685c62562f5d98615c5a0c1d05f297cf5065f15246edfe99e81ec4c0e011","impliedFormat":1},{"version":"93507c745e8f29090efb99399c3f77bec07db17acd75634249dc92f961573387","impliedFormat":1},{"version":"339dc5265ee5ed92e536a93a04c4ebbc2128f45eeec6ed29f379e0085283542c","impliedFormat":1},{"version":"4732aec92b20fb28c5fe9ad99521fb59974289ed1e45aecb282616202184064f","impliedFormat":1},{"version":"2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","impliedFormat":1},{"version":"c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","impliedFormat":1},{"version":"bf67d53d168abc1298888693338cb82854bdb2e69ef83f8a0092093c2d562107","impliedFormat":1},{"version":"ca6d304b929748ea15c33f28c1f159df18a94470b424ab78c52d68d40a41e1e9","affectsGlobalScope":true,"impliedFormat":1},{"version":"a72ffc815104fb5c075106ebca459b2d55d07862a773768fce89efc621b3964b","impliedFormat":1},{"version":"7394959e5a741b185456e1ef5d64599c36c60a323207450991e7a42e08911419","impliedFormat":1},{"version":"3d77c73be94570813f8cadd1f05ebc3dc5e2e4fdefe4d340ca20cd018724ee36","impliedFormat":1},{"version":"d674383111e06b6741c4ad2db962131b5b0fa4d0294b998566c635e86195a453","affectsGlobalScope":true,"impliedFormat":1},{"version":"f3e58c4c18a031cbb17abec7a4ad0bd5ae9fc70c1f4ba1e7fb921ad87c504aca","impliedFormat":1},{"version":"a3e8bafb2af8e850c644f4be7f5156cf7d23b7bfdc3b786bd4d10ed40329649c","impliedFormat":1},{"version":"35ec8b6760fd7138bbf5809b84551e31028fb2ba7b6dc91d95d098bf212ca8b4","affectsGlobalScope":true,"impliedFormat":1},{"version":"a40826e8476694e90da94aa008283a7de50d1dafd37beada623863f1901cb7fb","impliedFormat":1},{"version":"f77d9188e41291acf14f476e931972460a303e1952538f9546e7b370cb8d0d20","affectsGlobalScope":true,"impliedFormat":1},{"version":"b0c0d1d13be149f790a75b381b413490f98558649428bb916fd2d71a3f47a134","impliedFormat":1},{"version":"3c884d9d9ec454bdf0d5a0b8465bf8297d2caa4d853851d92cc417ac6f30b969","impliedFormat":1},{"version":"5a369483ac4cfbdf0331c248deeb36140e6907db5e1daed241546b4a2055f82c","impliedFormat":1},{"version":"e8f5b5cc36615c17d330eaf8eebbc0d6bdd942c25991f96ef122f246f4ff722f","impliedFormat":1},{"version":"f0bd7e6d931657b59605c44112eaf8b980ba7f957a5051ed21cb93d978cf2f45","impliedFormat":1},{"version":"ee1ee365d88c4c6c0c0a5a5701d66ebc27ccd0bcfcfaa482c6e2e7fe7b98edf7","affectsGlobalScope":true,"impliedFormat":1},{"version":"4d7da7075068195f8f127f41c61e304cdca5aafb1be2d0f4fb67c6b4c3e98d50","affectsGlobalScope":true,"impliedFormat":1},{"version":"a4bdde4e601e9554a844e1e0d0ccfa05e183ef9d82ab3ac25f17c1709033d360","impliedFormat":1},{"version":"ad23fd126ff06e72728dd7bfc84326a8ca8cec2b9d2dac0193d42a777df0e7d8","impliedFormat":1},{"version":"c60db41f7bee80fb80c0b12819f5e465c8c8b465578da43e36d04f4a4646f57d","impliedFormat":1},{"version":"93bd413918fa921c8729cef45302b24d8b6c7855d72d5bf82d3972595ae8dcbf","impliedFormat":1},{"version":"4ff41188773cbf465807dd2f7059c7494cbee5115608efc297383832a1150c43","impliedFormat":1},{"version":"dccdf1677e531e33f8ac961a68bc537418c9a414797c1ea7e91307501cdc3f5e","impliedFormat":1},{"version":"1f4fc6905c4c3ae701838f89484f477b8d9b3ef39270e016b5488600d247d9a5","affectsGlobalScope":true,"impliedFormat":1},{"version":"d206b4baf4ddcc15d9d69a9a2f4999a72a2c6adeaa8af20fa7a9960816287555","impliedFormat":1},{"version":"93f437e1398a4f06a984f441f7fa7a9f0535c04399619b5c22e0b87bdee182cb","impliedFormat":1},{"version":"afbe24ab0d74694372baa632ecb28bb375be53f3be53f9b07ecd7fc994907de5","impliedFormat":1},{"version":"70731d10d5311bd4cf710ef7f6539b62660f4b0bfdbb3f9fbe1d25fe6366a7fa","affectsGlobalScope":true,"impliedFormat":1},{"version":"a20f1e119615bf7632729fd89b6c0b5ffdc2df3b512d6304146294528e3ebe19","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e043a1bc8fbf2a255bccf9bf27e0f1caf916c3b0518ea34aa72357c0afd42ec","impliedFormat":1},{"version":"137c2894e8f3e9672d401cc0a305dc7b1db7c69511cf6d3970fb53302f9eae09","impliedFormat":1},{"version":"3bc2f1e2c95c04048212c569ed38e338873f6a8593930cf5a7ef24ffb38fc3b6","impliedFormat":1},{"version":"8145e07aad6da5f23f2fcd8c8e4c5c13fb26ee986a79d03b0829b8fce152d8b2","impliedFormat":1},{"version":"f9d9d753d430ed050dc1bf2667a1bab711ccbb1c1507183d794cc195a5b085cc","impliedFormat":1},{"version":"9eece5e586312581ccd106d4853e861aaaa1a39f8e3ea672b8c3847eedd12f6e","impliedFormat":1},{"version":"235bfb54b4869c26f7e98e3d1f68dbfc85acf4cf5c38a4444a006fbf74a8a43d","impliedFormat":1},{"version":"37ba7b45141a45ce6e80e66f2a96c8a5ab1bcef0fc2d0f56bb58df96ec67e972","impliedFormat":1},{"version":"93452d394fdd1dc551ec62f5042366f011a00d342d36d50793b3529bfc9bd633","impliedFormat":1},{"version":"bb715efb4857eb94539eafb420352105a0cff40746837c5140bf6b035dd220ba","affectsGlobalScope":true,"impliedFormat":1},{"version":"1851a3b4db78664f83901bb9cac9e45e03a37bb5933cc5bf37e10bb7e91ab4eb","impliedFormat":1},{"version":"fdedf82878e4c744bc2a1c1e802ae407d63474da51f14a54babe039018e53d8f","affectsGlobalScope":true,"impliedFormat":1},{"version":"08353b04a3501d84fc8d7b49de99f6c1cc26026e6d9d697a18315f3bfe92ed03","affectsGlobalScope":true,"impliedFormat":1},{"version":"578d8bb6dcb2a1c03c4c3f8eb71abc9677e1a5c788b7f24848e3138ce17f3400","impliedFormat":1},{"version":"4f029899f9bae07e225c43aef893590541b2b43267383bf5e32e3a884d219ed5","impliedFormat":1},{"version":"ae56f65caf3be91108707bd8dfbccc2a57a91feb5daabf7165a06a945545ed26","impliedFormat":1},{"version":"a136d5de521da20f31631a0a96bf712370779d1c05b7015d7019a9b2a0446ca9","impliedFormat":1},{"version":"5b566927cad2ed2139655d55d690ffa87df378b956e7fe1c96024c4d9f75c4cf","affectsGlobalScope":true,"impliedFormat":1},{"version":"bce947017cb7a2deebcc4f5ba04cead891ce6ad1602a4438ae45ed9aa1f39104","affectsGlobalScope":true,"impliedFormat":1},{"version":"d3dffd70e6375b872f0b4e152de4ae682d762c61a24881ecc5eb9f04c5caf76f","impliedFormat":1},{"version":"e2c72c065a36bc9ab2a00ac6a6f51e71501619a72c0609defd304d46610487a4","impliedFormat":1},{"version":"d91a7d8b5655c42986f1bdfe2105c4408f472831c8f20cf11a8c3345b6b56c8c","impliedFormat":1},{"version":"616075a6ac578cf5a013ee12964188b4412823796ce0b202c6f1d2e4ca8480d7","affectsGlobalScope":true,"impliedFormat":1},{"version":"e8a979b8af001c9fc2e774e7809d233c8ca955a28756f52ee5dee88ccb0611d2","impliedFormat":1},{"version":"cac793cc47c29e26e4ac3601dcb00b4435ebed26203485790e44f2ad8b6ad847","impliedFormat":1},{"version":"2174e20517788d2a1379fc0aaacd87899a70f9e0197b4295edabfe75c4db03d8","impliedFormat":1},{"version":"e91ad231af87f864b3f07cd0e39b1cf6c133988156f087c1c3ccb0a5491c9115","impliedFormat":1},{"version":"cc256fd958b33576ed32c7338c64adb0d08fc0c2c6525010202fab83f32745da","impliedFormat":1},{"version":"bf0b1297461549a0e32cd57dffb992c63d7c7134fe0f9e15d359abcc88dbd28c","impliedFormat":1},{"version":"33ccf641b87b632dab4465dff17be9942223a60d4c00cf9bf4b475ebf4fe3fe0","impliedFormat":1},{"version":"e669c7d86a6b7cd23efc2c03d6653a4e83216cc35abf08fa3b1f4bb0559832b7","impliedFormat":1},{"version":"edbf61fe4fea39b48cbfd9ad2f835322d2a6f6bc9a13b83d7065c4f96dffb1ae","impliedFormat":1},{"version":"1c397c0621217834c42e628ccdf49fa99e30b1badc61e38db4512d696e6cc32c","impliedFormat":1},{"version":"4c92855f6a274786a259a14f88442d03ca59da72f6c3ee8fe1bd3c1189e1562b","impliedFormat":1},{"version":"db2c970dc8c91a5ad1c0b1c83287e21571aafa1075c43758516e2f3db0d05591","impliedFormat":1},{"version":"8f8d42a5461135c39d19565b0520447c0cc74fa565aa236952c53e58fc99321c","impliedFormat":1},{"version":"6fbd2e62fbfaf00ade8db0c3e2af9e07c713172752840fa002b50e454a427d5b","impliedFormat":1},{"version":"c874e71ac504fbe9fe754d2211ace82d109101b4bac5e15375a00f175485050d","impliedFormat":1},{"version":"8a0fc837db8dd8d44ea3cd1196b5567b6d56c22c732d3c3f997e166db9a38ec7","impliedFormat":1},{"version":"b747b5be93fb1b63b55f304d955a0a38a3bf30638bd68838ba1a5273cb953335","impliedFormat":1},"11ce8c263fe510574f6f67963ddec61770453611882423a89bbb7cee2e8be2a9",{"version":"8332b21b24b12b239f3c83ec0aedc36416d5bd6f337ea6b9a185f17a8b7d0f4c","impliedFormat":1},{"version":"5798f678b5eec1de83d58ad59e57d80abdd299199b2c6e3fe02b9259cfb871a8","affectsGlobalScope":true,"impliedFormat":1},{"version":"4efa8d48c4818eaba8bd3e18ddd111ae90bd6a4e7d8ecaf2dcf1576ed91bf549","impliedFormat":1},"7c5aa54c08530be9a062dd379163c2d3efc2c3f530836696b56e43122d4fe361","898f0a37f4ac6cf1cc79174191b432da87a80c5aa411eaec476367ee8b912623","d09f35c7cf34b10c26d913361bbabb2f9805cc5b81576d20b21821493f23b2bf","73d70be81c92f312b151676926282eb3dc7b0876c4e82758023e183e53b06fb3","469c22b78e01c8337d6dc1a02fe2103e14b5a9267131fed4b0fc2f699b934a8b","5b08187652363d1e9d1e03721e9359769b8219bd07a5f2bd5e7cdabf27a5bb8e","420b3b95c86bdb6374aa7205ddab56d40a073f3dfc779d1a946c9b0338fb0576","81fb674b464b9947694b6227b141734aa4b8987d5a6415edf86c19f96a1dc414","1592747a8020452a3d3c88e42a54ccebcfa05e81e7d318ab890ad0515c9b0189","1d32cdf5f7d4e7d590c7c21270d18e596630d49487e9c34e50a4cc8008b8f31c","6b8046fb026459970084cce93a4287cc07ed7efd3f9e3748edf529f0c526350f","0828a10710df5c0f14cb3a6168c3986341118496d4383967acda1717c6899efe","f5b3edf7347cecdff324e87d247f94cdc8dab7147cfd8754963d7b7e55276a7e","30974cb8c0d98f38c3e47ca0493b92486af2a2d4dc182a59868a790782137e7d","a268fcefacc00bf1df92313a4023546bda199aa3270fd8a8a65d9648aafc3680","5b51b1d7887d9cb7d2c7a1e9ea284720c6df3eeb5676fbe6dc120bdcdb65cf40","836e67c561ccb58c8e8ecc90b22aada64f8fafc91f4c50d3c30937a62585551d","6d89dabf27ed0683ee298279025b2e515c3518b04524d86d651eb526f2f9ee12",{"version":"21522c0f405e58c8dd89cd97eb3d1aa9865ba017fde102d01f86ab50b44e5610","impliedFormat":1},{"version":"3cfb7c0c642b19fb75132154040bb7cd840f0002f9955b14154e69611b9b3f81","impliedFormat":1},{"version":"8387ec1601cf6b8948672537cf8d430431ba0d87b1f9537b4597c1ab8d3ade5b","impliedFormat":1},{"version":"d16f1c460b1ca9158e030fdf3641e1de11135e0c7169d3e8cf17cc4cc35d5e64","impliedFormat":1},{"version":"a934063af84f8117b8ce51851c1af2b76efe960aa4c7b48d0343a1b15c01aedf","impliedFormat":1},{"version":"e3c5ad476eb2fca8505aee5bdfdf9bf11760df5d0f9545db23f12a5c4d72a718","impliedFormat":1},{"version":"462bccdf75fcafc1ae8c30400c9425e1a4681db5d605d1a0edb4f990a54d8094","impliedFormat":1},{"version":"5923d8facbac6ecf7c84739a5c701a57af94a6f6648d6229a6c768cf28f0f8cb","impliedFormat":1},{"version":"d0570ce419fb38287e7b39c910b468becb5b2278cf33b1000a3d3e82a46ecae2","impliedFormat":1},{"version":"3aca7f4260dad9dcc0a0333654cb3cde6664d34a553ec06c953bce11151764d7","impliedFormat":1},{"version":"a0a6f0095f25f08a7129bc4d7cb8438039ec422dc341218d274e1e5131115988","impliedFormat":1},{"version":"b58f396fe4cfe5a0e4d594996bc8c1bfe25496fbc66cf169d41ac3c139418c77","impliedFormat":1},{"version":"45785e608b3d380c79e21957a6d1467e1206ac0281644e43e8ed6498808ace72","impliedFormat":1},{"version":"bece27602416508ba946868ad34d09997911016dbd6893fb884633017f74e2c5","impliedFormat":1},{"version":"2a90177ebaef25de89351de964c2c601ab54d6e3a157cba60d9cd3eaf5a5ee1a","impliedFormat":1},{"version":"82200e963d3c767976a5a9f41ecf8c65eca14a6b33dcbe00214fcbe959698c46","impliedFormat":1},{"version":"b4966c503c08bbd9e834037a8ab60e5f53c5fd1092e8873c4a1c344806acdab2","impliedFormat":1},"010cfc820d1fc001fd6099eaeb5a5d111b72dc60cc9e19bde0e9d6a4c4709324","4c47f7c0390ec339389630a6a1324671bf76a24e7f72ae4fef18a26a9ab582a2","bf27fd88498119d31ef85c74da617d77b9ca82360950a1a48e31032b58b16b70",{"version":"05321b823dd3781d0b6aac8700bfdc0c9181d56479fe52ba6a40c9196fd661a8","impliedFormat":1},{"version":"b598deb1da203a2b58c76cf8d91cfc2ca172d785dacd8466c0a11e400ff6ab2d","impliedFormat":1},{"version":"2a440f32bf83a8ef4bac939a6a3b8b59e8b14a060032444c9bb3ba7605a4c403","impliedFormat":1},"814dcbbfca3e72bfd69442288ffa48aee79e9ab4f758e059a91793be25653cce","4c39fc376c72e39f807fa025d08818a443b72398b04e9c02dc9fc632950da13d",{"version":"cdcc132f207d097d7d3aa75615ab9a2e71d6a478162dde8b67f88ea19f3e54de","impliedFormat":1},{"version":"0d14fa22c41fdc7277e6f71473b20ebc07f40f00e38875142335d5b63cdfc9d2","impliedFormat":1},{"version":"c085e9aa62d1ae1375794c1fb927a445fa105fed891a7e24edbb1c3300f7384a","impliedFormat":1},{"version":"f315e1e65a1f80992f0509e84e4ae2df15ecd9ef73df975f7c98813b71e4c8da","impliedFormat":1},{"version":"5b9586e9b0b6322e5bfbd2c29bd3b8e21ab9d871f82346cb71020e3d84bae73e","impliedFormat":1},{"version":"3e70a7e67c2cb16f8cd49097360c0309fe9d1e3210ff9222e9dac1f8df9d4fb6","impliedFormat":1},{"version":"ab68d2a3e3e8767c3fba8f80de099a1cfc18c0de79e42cb02ae66e22dfe14a66","impliedFormat":1},{"version":"d96cc6598148bf1a98fb2e8dcf01c63a4b3558bdaec6ef35e087fd0562eb40ec","impliedFormat":1},{"version":"f8db4fea512ab759b2223b90ecbbe7dae919c02f8ce95ec03f7fb1cf757cfbeb","affectsGlobalScope":true,"impliedFormat":1},{"version":"72e9425f1ba1eb7fd8122d08f48848a0d56de1cd4c7b51f26dc2612bd26c7241","impliedFormat":1},{"version":"841784cfa9046a2b3e453d638ea5c3e53680eb8225a45db1c13813f6ea4095e5","affectsGlobalScope":true,"impliedFormat":1},{"version":"646ef1cff0ec3cf8e96adb1848357788f244b217345944c2be2942a62764b771","impliedFormat":1}],"root":[[64,66],187,[191,208],[226,228],232,233],"options":{"allowSyntheticDefaultImports":true,"declaration":true,"declarationDir":"../types","emitDeclarationOnly":false,"esModuleInterop":true,"jsx":4,"module":1,"outDir":"./","sourceMap":true,"strict":true,"target":4},"referencedMap":[[184,1],[73,2],[183,3],[68,4],[177,4],[178,5],[186,6],[70,4],[69,4],[185,7],[176,8],[72,2],[180,9],[181,10],[182,10],[71,11],[179,4],[234,4],[237,12],[236,4],[189,13],[190,14],[188,4],[216,15],[215,4],[223,4],[220,4],[219,4],[214,16],[225,17],[210,18],[221,19],[213,20],[212,21],[222,4],[217,22],[224,4],[218,23],[211,4],[245,24],[244,25],[243,18],[231,26],[209,4],[172,4],[242,27],[119,28],[120,28],[121,29],[79,30],[122,31],[123,32],[124,33],[74,4],[77,34],[75,4],[76,4],[125,35],[126,36],[127,37],[128,38],[129,39],[130,40],[131,40],[133,41],[132,42],[134,43],[135,44],[136,45],[118,46],[78,4],[137,47],[138,48],[139,49],[171,50],[140,51],[141,52],[142,53],[96,54],[106,55],[95,54],[116,56],[87,57],[86,58],[115,59],[109,60],[114,61],[89,62],[103,63],[88,64],[112,65],[84,66],[83,59],[113,67],[85,68],[90,69],[91,4],[94,69],[81,4],[117,70],[107,71],[98,72],[99,73],[101,74],[97,75],[100,76],[110,59],[92,77],[93,78],[102,79],[82,80],[105,71],[104,69],[108,4],[111,81],[143,82],[144,83],[145,84],[146,85],[147,86],[148,87],[149,88],[150,88],[151,89],[152,4],[153,90],[155,91],[154,92],[156,93],[157,94],[158,95],[159,96],[160,97],[161,98],[162,99],[163,100],[164,101],[165,102],[166,103],[167,104],[168,105],[169,106],[170,107],[67,4],[61,4],[229,108],[230,109],[59,4],[62,110],[63,108],[175,111],[173,112],[174,4],[80,4],[235,4],[60,4],[241,113],[239,114],[240,115],[238,116],[57,4],[58,4],[10,4],[12,4],[11,4],[2,4],[13,4],[14,4],[15,4],[16,4],[17,4],[18,4],[19,4],[20,4],[3,4],[21,4],[22,4],[4,4],[23,4],[27,4],[24,4],[25,4],[26,4],[28,4],[29,4],[30,4],[5,4],[31,4],[32,4],[33,4],[34,4],[6,4],[38,4],[35,4],[36,4],[37,4],[39,4],[7,4],[40,4],[45,4],[46,4],[41,4],[42,4],[43,4],[44,4],[8,4],[50,4],[47,4],[48,4],[49,4],[51,4],[9,4],[52,4],[53,4],[54,4],[56,4],[55,4],[1,4],[66,117],[65,118],[64,119],[187,120],[228,121],[206,122],[207,119],[203,123],[232,124],[204,125],[208,126],[192,123],[193,127],[201,128],[198,127],[196,129],[200,130],[199,127],[197,127],[202,127],[226,131],[205,132],[191,133],[195,134],[233,135],[227,134],[194,119]],"affectedFilesPendingEmit":[[66,19],[65,19],[64,19],[187,19],[228,19],[206,19],[207,19],[203,19],[232,19],[204,19],[208,19],[192,19],[193,19],[201,19],[198,19],[196,19],[200,19],[199,19],[197,19],[202,19],[226,19],[205,19],[191,19],[195,19],[233,19],[227,19],[194,19]],"version":"5.7.2"}
@@ -100,6 +100,12 @@ import { newTracker, setCookiePath, setUserId, trackPageView, trackSelfDescribin
100
100
  }
101
101
  return this;
102
102
  }
103
+ static getInstance(props) {
104
+ if (!Snowplow.instance) {
105
+ Snowplow.instance = new Snowplow(props);
106
+ }
107
+ return Snowplow.instance;
108
+ }
103
109
  constructor(props){
104
110
  var _props_pageViewContext;
105
111
  _define_property(this, "avalancheTrackerName", "sb-ava");
@@ -138,7 +144,10 @@ import { newTracker, setCookiePath, setUserId, trackPageView, trackSelfDescribin
138
144
  if (uid) {
139
145
  setUserId(uid);
140
146
  }
147
+ // Create a singleton instance
148
+ Snowplow.instance = this;
141
149
  }
142
150
  }
151
+ _define_property(Snowplow, "instance", void 0);
143
152
 
144
153
  //# sourceMappingURL=Snowplow.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/snowplow/Snowplow.ts"],"sourcesContent":["import {\n SelfDescribingJson,\n StructuredEvent,\n TrackerConfiguration,\n newTracker,\n setCookiePath,\n setUserId,\n trackPageView,\n trackSelfDescribingEvent,\n trackStructEvent,\n} from \"@snowplow/browser-tracker\";\nimport { EventDefinition, TrackingProps } from \"./types\";\n\nexport type FrontOfficeStructuredEvent = StructuredEvent & {\n serviceChannelIdentifier: string;\n};\n\n/**\n * This class is an abstraction which wraps Snowplow\n * and exposes common methods with other services:\n * - trackEvent : sends a standard payload\n * - trackUnstructEvent : sends a payload for custom schema\n */\nexport class Snowplow {\n avalancheTrackerName = \"sb-ava\";\n\n bronzeAvalancheTrackerName = \"sb-ava-br\";\n\n pvAvalancheTrackerName = \"sb-ava-pv\";\n\n uid: unknown = \"\";\n\n trackPageView: boolean = false;\n\n contexts: SelfDescribingJson<Record<string, unknown>>[] = [];\n\n serverData: Record<string, unknown> = {};\n\n eventHandlers: Record<string, (params?: Record<string, unknown>) => void> =\n {};\n\n constructor(props?: TrackingProps) {\n if (!props) return;\n\n const {\n appId,\n cookieDomain,\n avalancheCollector,\n eventMethod,\n uid,\n postPath,\n // includeGAContext,\n // trackActivity,\n trackPageView: tpv,\n } = props;\n this.uid = uid;\n this.trackPageView = tpv;\n this.serverData = props?.pageViewContext?.data || {};\n\n // Set options\n const stateStorageStrategy = \"cookieAndLocalStorage\";\n const baseOptions: TrackerConfiguration = {\n appId,\n cookieDomain,\n eventMethod,\n stateStorageStrategy,\n postPath,\n };\n // Initialize trackers\n newTracker(this.avalancheTrackerName, avalancheCollector, baseOptions);\n\n newTracker(\n this.bronzeAvalancheTrackerName,\n avalancheCollector,\n baseOptions,\n );\n\n // Page view tracker\n newTracker(this.pvAvalancheTrackerName, avalancheCollector, {\n ...baseOptions,\n eventMethod: eventMethod === \"post\" ? \"beacon\" : eventMethod,\n });\n\n setCookiePath(\"/\");\n if (uid) {\n setUserId(uid);\n }\n }\n\n setContexts(contexts: SelfDescribingJson<Record<string, unknown>>[]) {\n this.contexts = contexts;\n // Update identity context\n const index = this.contexts?.findIndex(ctx =>\n ctx.schema?.includes(\"identity_context\"),\n );\n if (index > -1) {\n this.contexts[index].data.domain_userid = this.uid;\n }\n return this;\n }\n\n // Send a page view event\n trackView() {\n if (this.trackPageView) {\n trackPageView({ context: this.contexts });\n }\n return this;\n }\n\n // Send a structured event with contexts\n async trackEvent(event: StructuredEvent) {\n await trackStructEvent({ ...event, context: this.contexts }, [\n this.bronzeAvalancheTrackerName,\n ]);\n return this;\n }\n\n // Send a custom event with defined schema and optional contexts\n async trackUnstructEvent(event: SelfDescribingJson<Record<string, unknown>>) {\n if (!event) {\n return this;\n }\n await trackSelfDescribingEvent({ event, context: this.contexts }, [\n this.avalancheTrackerName,\n ]);\n return this;\n }\n\n addEventHandlers(eventDefinitions: EventDefinition[]) {\n // Add server context to makePayload functions\n const context = this.serverData;\n\n eventDefinitions.forEach(({ name, type, makePayload }) => {\n // Convert type into relevant function\n if (type === \"structured\") {\n this.addEventHandler(name, (params?: Record<string, unknown>) => {\n this.trackEvent(\n makePayload({\n ...params,\n context,\n }) as StructuredEvent,\n );\n });\n } else {\n this.addEventHandler(name, (params?: Record<string, unknown>) => {\n this.trackUnstructEvent(\n makePayload({\n ...params,\n context,\n }) as SelfDescribingJson<Record<string, unknown>>,\n );\n });\n }\n });\n return this;\n }\n\n private addEventHandler(\n name: string,\n handler: (params?: Record<string, unknown>) => void,\n ) {\n this.eventHandlers[name] = handler;\n return this;\n }\n\n private removeEventHandler(name: string) {\n delete this.eventHandlers[name];\n return this;\n }\n\n trigger(name: string, params?: Record<string, unknown>) {\n if (this.eventHandlers[name]) {\n this.eventHandlers[name](params);\n }\n return this;\n }\n}\n"],"names":["newTracker","setCookiePath","setUserId","trackPageView","trackSelfDescribingEvent","trackStructEvent","Snowplow","setContexts","contexts","index","findIndex","ctx","schema","includes","data","domain_userid","uid","trackView","context","trackEvent","event","bronzeAvalancheTrackerName","trackUnstructEvent","avalancheTrackerName","addEventHandlers","eventDefinitions","serverData","forEach","name","type","makePayload","addEventHandler","params","handler","eventHandlers","removeEventHandler","trigger","constructor","props","pvAvalancheTrackerName","appId","cookieDomain","avalancheCollector","eventMethod","postPath","tpv","pageViewContext","stateStorageStrategy","baseOptions"],"mappings":";;;;;;;;;;;;;AAAA,SAIEA,UAAU,EACVC,aAAa,EACbC,SAAS,EACTC,aAAa,EACbC,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cAAtBR,6CAAAA,uBAAwBxB,IAAI,KAAI,CAAC;QAEnD,cAAc;QACd,MAAMiC,uBAAuB;QAC7B,MAAMC,cAAoC;YACxCR;YACAC;YACAE;YACAI;YACAH;QACF;QACA,sBAAsB;QACtB5C,WAAW,IAAI,CAACuB,oBAAoB,EAAEmB,oBAAoBM;QAE1DhD,WACE,IAAI,CAACqB,0BAA0B,EAC/BqB,oBACAM;QAGF,oBAAoB;QACpBhD,WAAW,IAAI,CAACuC,sBAAsB,EAAEG,oBAAoB;YAC1D,GAAGM,WAAW;YACdL,aAAaA,gBAAgB,SAAS,WAAWA;QACnD;QAEA1C,cAAc;QACd,IAAIe,KAAK;YACPd,UAAUc;QACZ;IACF;AAyFF"}
1
+ {"version":3,"sources":["../../../src/snowplow/Snowplow.ts"],"sourcesContent":["import {\n SelfDescribingJson,\n StructuredEvent,\n TrackerConfiguration,\n newTracker,\n setCookiePath,\n setUserId,\n trackPageView,\n trackSelfDescribingEvent,\n trackStructEvent,\n} from \"@snowplow/browser-tracker\";\nimport { EventDefinition, TrackingProps } from \"./types\";\n\nexport type FrontOfficeStructuredEvent = StructuredEvent & {\n serviceChannelIdentifier: string;\n};\n\n/**\n * This class is an abstraction which wraps Snowplow\n * and exposes common methods with other services:\n * - trackEvent : sends a standard payload\n * - trackUnstructEvent : sends a payload for custom schema\n */\nexport class Snowplow {\n avalancheTrackerName = \"sb-ava\";\n\n bronzeAvalancheTrackerName = \"sb-ava-br\";\n\n pvAvalancheTrackerName = \"sb-ava-pv\";\n\n uid: unknown = \"\";\n\n trackPageView: boolean = false;\n\n contexts: SelfDescribingJson<Record<string, unknown>>[] = [];\n\n serverData: Record<string, unknown> = {};\n\n eventHandlers: Record<string, (params?: Record<string, unknown>) => void> =\n {};\n\n static instance: Snowplow | undefined;\n\n constructor(props?: TrackingProps) {\n if (!props) return;\n\n const {\n appId,\n cookieDomain,\n avalancheCollector,\n eventMethod,\n uid,\n postPath,\n // includeGAContext,\n // trackActivity,\n trackPageView: tpv,\n } = props;\n this.uid = uid;\n this.trackPageView = tpv;\n this.serverData = props?.pageViewContext?.data || {};\n\n // Set options\n const stateStorageStrategy = \"cookieAndLocalStorage\";\n const baseOptions: TrackerConfiguration = {\n appId,\n cookieDomain,\n eventMethod,\n stateStorageStrategy,\n postPath,\n };\n // Initialize trackers\n newTracker(this.avalancheTrackerName, avalancheCollector, baseOptions);\n\n newTracker(\n this.bronzeAvalancheTrackerName,\n avalancheCollector,\n baseOptions,\n );\n\n // Page view tracker\n newTracker(this.pvAvalancheTrackerName, avalancheCollector, {\n ...baseOptions,\n eventMethod: eventMethod === \"post\" ? \"beacon\" : eventMethod,\n });\n\n setCookiePath(\"/\");\n if (uid) {\n setUserId(uid);\n }\n // Create a singleton instance\n Snowplow.instance = this;\n }\n\n setContexts(contexts: SelfDescribingJson<Record<string, unknown>>[]) {\n this.contexts = contexts;\n // Update identity context\n const index = this.contexts?.findIndex(ctx =>\n ctx.schema?.includes(\"identity_context\"),\n );\n if (index > -1) {\n this.contexts[index].data.domain_userid = this.uid;\n }\n return this;\n }\n\n // Send a page view event\n trackView() {\n if (this.trackPageView) {\n trackPageView({ context: this.contexts });\n }\n return this;\n }\n\n // Send a structured event with contexts\n async trackEvent(event: StructuredEvent) {\n await trackStructEvent({ ...event, context: this.contexts }, [\n this.bronzeAvalancheTrackerName,\n ]);\n return this;\n }\n\n // Send a custom event with defined schema and optional contexts\n async trackUnstructEvent(event: SelfDescribingJson<Record<string, unknown>>) {\n if (!event) {\n return this;\n }\n await trackSelfDescribingEvent({ event, context: this.contexts }, [\n this.avalancheTrackerName,\n ]);\n return this;\n }\n\n addEventHandlers(eventDefinitions: EventDefinition[]) {\n // Add server context to makePayload functions\n const context = this.serverData;\n\n eventDefinitions.forEach(({ name, type, makePayload }) => {\n // Convert type into relevant function\n if (type === \"structured\") {\n this.addEventHandler(name, (params?: Record<string, unknown>) => {\n this.trackEvent(\n makePayload({\n ...params,\n context,\n }) as StructuredEvent,\n );\n });\n } else {\n this.addEventHandler(name, (params?: Record<string, unknown>) => {\n this.trackUnstructEvent(\n makePayload({\n ...params,\n context,\n }) as SelfDescribingJson<Record<string, unknown>>,\n );\n });\n }\n });\n return this;\n }\n\n private addEventHandler(\n name: string,\n handler: (params?: Record<string, unknown>) => void,\n ) {\n this.eventHandlers[name] = handler;\n return this;\n }\n\n private removeEventHandler(name: string) {\n delete this.eventHandlers[name];\n return this;\n }\n\n trigger(name: string, params?: Record<string, unknown>) {\n if (this.eventHandlers[name]) {\n this.eventHandlers[name](params);\n }\n return this;\n }\n\n static getInstance(props?: TrackingProps) {\n if (!Snowplow.instance) {\n Snowplow.instance = new Snowplow(props);\n }\n return Snowplow.instance;\n }\n}\n"],"names":["newTracker","setCookiePath","setUserId","trackPageView","trackSelfDescribingEvent","trackStructEvent","Snowplow","setContexts","contexts","index","findIndex","ctx","schema","includes","data","domain_userid","uid","trackView","context","trackEvent","event","bronzeAvalancheTrackerName","trackUnstructEvent","avalancheTrackerName","addEventHandlers","eventDefinitions","serverData","forEach","name","type","makePayload","addEventHandler","params","handler","eventHandlers","removeEventHandler","trigger","getInstance","props","instance","constructor","pvAvalancheTrackerName","appId","cookieDomain","avalancheCollector","eventMethod","postPath","tpv","pageViewContext","stateStorageStrategy","baseOptions"],"mappings":";;;;;;;;;;;;;AAAA,SAIEA,UAAU,EACVC,aAAa,EACbC,SAAS,EACTC,aAAa,EACbC,wBAAwB,EACxBC,gBAAgB,QACX,4BAA4B;AAOnC;;;;;CAKC,GACD,OAAO,MAAMC;IAsEXC,YAAYC,QAAuD,EAAE;YAGrD;QAFd,IAAI,CAACA,QAAQ,GAAGA;QAChB,0BAA0B;QAC1B,MAAMC,SAAQ,iBAAA,IAAI,CAACD,QAAQ,cAAb,qCAAA,eAAeE,SAAS,CAACC,CAAAA;gBACrCA;oBAAAA,cAAAA,IAAIC,MAAM,cAAVD,kCAAAA,YAAYE,QAAQ,CAAC;;QAEvB,IAAIJ,QAAQ,CAAC,GAAG;YACd,I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BM;QAE1DlD,WACE,IAAI,CAACqB,0BAA0B,EAC/BuB,oBACAM;QAGF,oBAAoB;QACpBlD,WAAW,IAAI,CAACyC,sBAAsB,EAAEG,oBAAoB;YAC1D,GAAGM,WAAW;YACdL,aAAaA,gBAAgB,SAAS,WAAWA;QACnD;QAEA5C,cAAc;QACd,IAAIe,KAAK;YACPd,UAAUc;QACZ;QACA,8BAA8B;QAC9BV,SAASiC,QAAQ,GAAG,IAAI;IAC1B;AAgGF;AAlJE,iBAlBWjC,UAkBJiC,YAAP,KAAA"}
@@ -1,19 +1,19 @@
1
1
  /* eslint-disable @typescript-eslint/no-unused-vars */ import { jsx as _jsx } from "react/jsx-runtime";
2
- import { createContext, useContext, useEffect, useMemo, useState } from "react";
2
+ import { createContext, useContext, useEffect, useMemo, useRef, useState } from "react";
3
3
  import { getContexts } from "./contexts";
4
4
  import { eventDefinitions } from "./event-definitions";
5
5
  import { Snowplow } from "./Snowplow";
6
6
  const SnowplowContext = /*#__PURE__*/ createContext(null);
7
7
  export const SnowplowProvider = ({ scripts, children })=>{
8
8
  const [config, _setConfig] = useState(scripts);
9
- const [snowplow, setSnowplow] = useState(new Snowplow(config));
9
+ const snowplow = useRef(Snowplow.getInstance(config));
10
10
  // Attach event handlers and set contexts
11
11
  useEffect(()=>{
12
- if (snowplow && scripts) {
12
+ if (snowplow.current && scripts) {
13
13
  const contexts = getContexts(config);
14
- snowplow.setContexts(contexts).addEventHandlers(eventDefinitions);
14
+ snowplow.current.setContexts(contexts).addEventHandlers(eventDefinitions);
15
15
  // Send page view event
16
- if (config.trackPageView) snowplow.trackView();
16
+ if (config.trackPageView) snowplow.current.trackView();
17
17
  }
18
18
  }, [
19
19
  config,
@@ -22,7 +22,7 @@ export const SnowplowProvider = ({ scripts, children })=>{
22
22
  ]);
23
23
  const value = useMemo(()=>({
24
24
  config,
25
- snowplow
25
+ snowplow: snowplow.current
26
26
  }), [
27
27
  config,
28
28
  snowplow
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/snowplow/SnowplowContext.tsx"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-unused-vars */\nimport {\n createContext,\n useContext,\n useEffect,\n useMemo,\n useState,\n type ReactNode,\n} from \"react\";\nimport { getContexts } from \"./contexts\";\nimport { eventDefinitions } from \"./event-definitions\";\nimport { Snowplow } from \"./Snowplow\";\nimport { EventDefinition, TrackingProps } from \"./types\";\n\nexport interface SnowplowContextInterface {\n config: TrackingProps;\n snowplow?: Snowplow;\n}\n\nconst SnowplowContext = createContext<SnowplowContextInterface | null>(null);\n\ntype ProviderProps = {\n scripts: TrackingProps;\n children: ReactNode;\n};\n\nexport const SnowplowProvider = ({ scripts, children }: ProviderProps) => {\n const [config, _setConfig] = useState<TrackingProps>(scripts);\n const [snowplow, setSnowplow] = useState<Snowplow>(new Snowplow(config));\n\n // Attach event handlers and set contexts\n useEffect(() => {\n if (snowplow && scripts) {\n const contexts = getContexts(config);\n\n snowplow\n .setContexts(contexts)\n .addEventHandlers(eventDefinitions as EventDefinition[]);\n // Send page view event\n if (config.trackPageView) snowplow.trackView();\n }\n }, [config, snowplow, scripts]);\n\n const value: SnowplowContextInterface = useMemo(\n () => ({\n config,\n snowplow,\n }),\n [config, snowplow],\n );\n\n return (\n <SnowplowContext.Provider value={value}>\n {children}\n </SnowplowContext.Provider>\n );\n};\n\nexport function useSnowplowContext() {\n const context = useContext(SnowplowContext);\n\n if (!context) {\n throw new Error(\n \"useSnowplowContext must be used inside a `SnowplowProvider`\",\n );\n }\n return context;\n}\n"],"names":["createContext","useContext","useEffect","useMemo","useState","getContexts","eventDefinitions","Snowplow","SnowplowContext","SnowplowProvider","scripts","children","config","_setConfig","snowplow","setSnowplow","contexts","setContexts","addEventHandlers","trackPageView","trackView","value","Provider","useSnowplowContext","context","Error"],"mappings":"AAAA,oDAAoD;AACpD,SACEA,aAAa,EACbC,UAAU,EACVC,SAAS,EACTC,OAAO,EACPC,QAAQ,QAEH,QAAQ;AACf,SAASC,WAAW,QAAQ,aAAa;AACzC,SAASC,gBAAgB,QAAQ,sBAAsB;AACvD,SAASC,QAAQ,QAAQ,aAAa;AAQtC,MAAMC,gCAAkBR,cAA+C;AAOvE,OAAO,MAAMS,mBAAmB,CAAC,EAAEC,OAAO,EAAEC,QAAQ,EAAiB;IACnE,MAAM,CAACC,QAAQC,WAAW,GAAGT,SAAwBM;IACrD,MAAM,CAACI,UAAUC,YAAY,GAAGX,SAAmB,IAAIG,SAASK;IAEhE,yCAAyC;IACzCV,UAAU;QACR,IAAIY,YAAYJ,SAAS;YACvB,MAAMM,WAAWX,YAAYO;YAE7BE,SACGG,WAAW,CAACD,UACZE,gBAAgB,CAACZ;YACpB,uBAAuB;YACvB,IAAIM,OAAOO,aAAa,EAAEL,SAASM,SAAS;QAC9C;IACF,GAAG;QAACR;QAAQE;QAAUJ;KAAQ;IAE9B,MAAMW,QAAkClB,QACtC,IAAO,CAAA;YACLS;YACAE;QACF,CAAA,GACA;QAACF;QAAQE;KAAS;IAGpB,qBACE,KAACN,gBAAgBc,QAAQ;QAACD,OAAOA;kBAC9BV;;AAGP,EAAE;AAEF,OAAO,SAASY;IACd,MAAMC,UAAUvB,WAAWO;IAE3B,IAAI,CAACgB,SAAS;QACZ,MAAM,IAAIC,MACR;IAEJ;IACA,OAAOD;AACT"}
1
+ {"version":3,"sources":["../../../src/snowplow/SnowplowContext.tsx"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-unused-vars */\nimport {\n createContext,\n useContext,\n useEffect,\n useMemo,\n useRef,\n useState,\n type ReactNode,\n} from \"react\";\nimport { getContexts } from \"./contexts\";\nimport { eventDefinitions } from \"./event-definitions\";\nimport { Snowplow } from \"./Snowplow\";\nimport { EventDefinition, TrackingProps } from \"./types\";\n\nexport interface SnowplowContextInterface {\n config: TrackingProps;\n snowplow?: Snowplow;\n}\n\nconst SnowplowContext = createContext<SnowplowContextInterface | null>(null);\n\ntype ProviderProps = {\n scripts: TrackingProps;\n children: ReactNode;\n};\n\nexport const SnowplowProvider = ({ scripts, children }: ProviderProps) => {\n const [config, _setConfig] = useState<TrackingProps>(scripts);\n const snowplow = useRef<Snowplow>(Snowplow.getInstance(config));\n\n // Attach event handlers and set contexts\n useEffect(() => {\n if (snowplow.current && scripts) {\n const contexts = getContexts(config);\n\n snowplow.current\n .setContexts(contexts)\n .addEventHandlers(eventDefinitions as EventDefinition[]);\n // Send page view event\n if (config.trackPageView) snowplow.current.trackView();\n }\n }, [config, snowplow, scripts]);\n\n const value: SnowplowContextInterface = useMemo(\n () => ({\n config,\n snowplow: snowplow.current,\n }),\n [config, snowplow],\n );\n\n return (\n <SnowplowContext.Provider value={value}>\n {children}\n </SnowplowContext.Provider>\n );\n};\n\nexport function useSnowplowContext() {\n const context = useContext(SnowplowContext);\n\n if (!context) {\n throw new Error(\n \"useSnowplowContext must be used inside a `SnowplowProvider`\",\n );\n }\n return context;\n}\n"],"names":["createContext","useContext","useEffect","useMemo","useRef","useState","getContexts","eventDefinitions","Snowplow","SnowplowContext","SnowplowProvider","scripts","children","config","_setConfig","snowplow","getInstance","current","contexts","setContexts","addEventHandlers","trackPageView","trackView","value","Provider","useSnowplowContext","context","Error"],"mappings":"AAAA,oDAAoD;AACpD,SACEA,aAAa,EACbC,UAAU,EACVC,SAAS,EACTC,OAAO,EACPC,MAAM,EACNC,QAAQ,QAEH,QAAQ;AACf,SAASC,WAAW,QAAQ,aAAa;AACzC,SAASC,gBAAgB,QAAQ,sBAAsB;AACvD,SAASC,QAAQ,QAAQ,aAAa;AAQtC,MAAMC,gCAAkBT,cAA+C;AAOvE,OAAO,MAAMU,mBAAmB,CAAC,EAAEC,OAAO,EAAEC,QAAQ,EAAiB;IACnE,MAAM,CAACC,QAAQC,WAAW,GAAGT,SAAwBM;IACrD,MAAMI,WAAWX,OAAiBI,SAASQ,WAAW,CAACH;IAEvD,yCAAyC;IACzCX,UAAU;QACR,IAAIa,SAASE,OAAO,IAAIN,SAAS;YAC/B,MAAMO,WAAWZ,YAAYO;YAE7BE,SAASE,OAAO,CACbE,WAAW,CAACD,UACZE,gBAAgB,CAACb;YACpB,uBAAuB;YACvB,IAAIM,OAAOQ,aAAa,EAAEN,SAASE,OAAO,CAACK,SAAS;QACtD;IACF,GAAG;QAACT;QAAQE;QAAUJ;KAAQ;IAE9B,MAAMY,QAAkCpB,QACtC,IAAO,CAAA;YACLU;YACAE,UAAUA,SAASE,OAAO;QAC5B,CAAA,GACA;QAACJ;QAAQE;KAAS;IAGpB,qBACE,KAACN,gBAAgBe,QAAQ;QAACD,OAAOA;kBAC9BX;;AAGP,EAAE;AAEF,OAAO,SAASa;IACd,MAAMC,UAAUzB,WAAWQ;IAE3B,IAAI,CAACiB,SAAS;QACZ,MAAM,IAAIC,MACR;IAEJ;IACA,OAAOD;AACT"}
@@ -18,6 +18,7 @@ export declare class Snowplow {
18
18
  contexts: SelfDescribingJson<Record<string, unknown>>[];
19
19
  serverData: Record<string, unknown>;
20
20
  eventHandlers: Record<string, (params?: Record<string, unknown>) => void>;
21
+ static instance: Snowplow | undefined;
21
22
  constructor(props?: TrackingProps);
22
23
  setContexts(contexts: SelfDescribingJson<Record<string, unknown>>[]): this;
23
24
  trackView(): this;
@@ -27,4 +28,5 @@ export declare class Snowplow {
27
28
  private addEventHandler;
28
29
  private removeEventHandler;
29
30
  trigger(name: string, params?: Record<string, unknown>): this;
31
+ static getInstance(props?: TrackingProps): Snowplow;
30
32
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@simplybusiness/services",
3
3
  "license": "UNLICENSED",
4
- "version": "0.14.0",
4
+ "version": "0.14.1",
5
5
  "description": "Internal library for services",
6
6
  "repository": {
7
7
  "type": "git",
@@ -39,6 +39,8 @@ export class Snowplow {
39
39
  eventHandlers: Record<string, (params?: Record<string, unknown>) => void> =
40
40
  {};
41
41
 
42
+ static instance: Snowplow | undefined;
43
+
42
44
  constructor(props?: TrackingProps) {
43
45
  if (!props) return;
44
46
 
@@ -85,6 +87,8 @@ export class Snowplow {
85
87
  if (uid) {
86
88
  setUserId(uid);
87
89
  }
90
+ // Create a singleton instance
91
+ Snowplow.instance = this;
88
92
  }
89
93
 
90
94
  setContexts(contexts: SelfDescribingJson<Record<string, unknown>>[]) {
@@ -174,4 +178,11 @@ export class Snowplow {
174
178
  }
175
179
  return this;
176
180
  }
181
+
182
+ static getInstance(props?: TrackingProps) {
183
+ if (!Snowplow.instance) {
184
+ Snowplow.instance = new Snowplow(props);
185
+ }
186
+ return Snowplow.instance;
187
+ }
177
188
  }
@@ -4,6 +4,7 @@ import {
4
4
  useContext,
5
5
  useEffect,
6
6
  useMemo,
7
+ useRef,
7
8
  useState,
8
9
  type ReactNode,
9
10
  } from "react";
@@ -26,25 +27,25 @@ type ProviderProps = {
26
27
 
27
28
  export const SnowplowProvider = ({ scripts, children }: ProviderProps) => {
28
29
  const [config, _setConfig] = useState<TrackingProps>(scripts);
29
- const [snowplow, setSnowplow] = useState<Snowplow>(new Snowplow(config));
30
+ const snowplow = useRef<Snowplow>(Snowplow.getInstance(config));
30
31
 
31
32
  // Attach event handlers and set contexts
32
33
  useEffect(() => {
33
- if (snowplow && scripts) {
34
+ if (snowplow.current && scripts) {
34
35
  const contexts = getContexts(config);
35
36
 
36
- snowplow
37
+ snowplow.current
37
38
  .setContexts(contexts)
38
39
  .addEventHandlers(eventDefinitions as EventDefinition[]);
39
40
  // Send page view event
40
- if (config.trackPageView) snowplow.trackView();
41
+ if (config.trackPageView) snowplow.current.trackView();
41
42
  }
42
43
  }, [config, snowplow, scripts]);
43
44
 
44
45
  const value: SnowplowContextInterface = useMemo(
45
46
  () => ({
46
47
  config,
47
- snowplow,
48
+ snowplow: snowplow.current,
48
49
  }),
49
50
  [config, snowplow],
50
51
  );