Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@snowplow/browser-tracker

Package Overview
Dependencies
Maintainers
3
Versions
77
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@snowplow/browser-tracker - npm Package Compare versions

Comparing version 3.0.0-alpha.2 to 3.0.0-alpha.3

21

dist/index.module.d.ts

@@ -1,3 +0,3 @@

import { TrackerConfiguration, BrowserTracker, ActivityTrackingConfiguration, ActivityTrackingConfigurationCallback, DisableAnonymousTrackingConfiguration, EnableAnonymousTrackingConfiguration, PageViewEvent } from '@snowplow/browser-tracker-core';
import { CommonEventProperties, ConditionalContextProvider, ContextPrimitive, SelfDescribingEvent, StructuredEvent } from "@snowplow/tracker-core";
import { TrackerConfiguration, BrowserTracker, ActivityTrackingConfiguration, ActivityTrackingConfigurationCallback, DisableAnonymousTrackingConfiguration, EnableAnonymousTrackingConfiguration, FlushBufferConfiguration, PageViewEvent } from '@snowplow/browser-tracker-core';
import { CommonEventProperties, ConditionalContextProvider, ContextPrimitive, SelfDescribingEvent, SelfDescribingJson, StructuredEvent } from "@snowplow/tracker-core";
/**

@@ -147,7 +147,18 @@ * Initialise a new tracker

/**
* Set the buffer size
* Can be useful if you want to stop batching requests to ensure events start
* sending closer to event creation
*
* @param newBufferSize The value with which to update the bufferSize to
* @param trackers The tracker identifiers which will be flushed
*/
declare function setBufferSize(newBufferSize: number, trackers?: Array<string>): void;
/**
* Send all events in the outQueue
* Use only when sending POSTs with a bufferSize of at least 2
* Only need to use this when sending events with a bufferSize of at least 2
*
* @param configuration The configuration to use following flushing the buffer
* @param trackers The tracker identifiers which will be flushed
*/
declare function flushBuffer(trackers?: Array<string>): void;
declare function flushBuffer(configuration?: FlushBufferConfiguration, trackers?: Array<string>): void;
/**

@@ -227,2 +238,2 @@ * Track a visit to a web page

declare function clearUserData(trackers?: Array<string>): void;
export { newTracker, version, newSession, setReferrerUrl, setCustomUrl, setDocumentTitle, discardHashTag, discardBrace, setCookiePath, setVisitorCookieTimeout, crossDomainLinker, enableActivityTracking, enableActivityTrackingCallback, updatePageActivity, setOptOutCookie, setUserId, setUserIdFromLocation, setUserIdFromReferrer, setUserIdFromCookie, setCollectorUrl, flushBuffer, trackPageView, trackStructEvent, trackSelfDescribingEvent, addGlobalContexts, removeGlobalContexts, clearGlobalContexts, preservePageViewId, disableAnonymousTracking, enableAnonymousTracking, clearUserData };
export { newTracker, version, ActivityTrackingConfiguration, ActivityTrackingConfigurationCallback, FlushBufferConfiguration, PageViewEvent, EnableAnonymousTrackingConfiguration, DisableAnonymousTrackingConfiguration, ConditionalContextProvider, ContextPrimitive, SelfDescribingEvent, SelfDescribingJson, CommonEventProperties, StructuredEvent, newSession, setReferrerUrl, setCustomUrl, setDocumentTitle, discardHashTag, discardBrace, setCookiePath, setVisitorCookieTimeout, crossDomainLinker, enableActivityTracking, enableActivityTrackingCallback, updatePageActivity, setOptOutCookie, setUserId, setUserIdFromLocation, setUserIdFromReferrer, setUserIdFromCookie, setCollectorUrl, setBufferSize, flushBuffer, trackPageView, trackStructEvent, trackSelfDescribingEvent, addGlobalContexts, removeGlobalContexts, clearGlobalContexts, preservePageViewId, disableAnonymousTracking, enableAnonymousTracking, clearUserData };
/*!
* Browser tracker for Snowplow v3.0.0-alpha.2 (http://bit.ly/sp-js)
* Browser tracker for Snowplow v3.0.0-alpha.3 (http://bit.ly/sp-js)
* Copyright 2021 Snowplow Analytics Ltd, 2010 Anthon Pang

@@ -10,3 +10,3 @@ * Licensed under BSD-3-Clause

var version = "3.0.0-alpha.2";
var version = "3.0.0-alpha.3";

@@ -277,9 +277,24 @@ /*

/**
* Set the buffer size
* Can be useful if you want to stop batching requests to ensure events start
* sending closer to event creation
*
* @param newBufferSize The value with which to update the bufferSize to
* @param trackers The tracker identifiers which will be flushed
*/
function setBufferSize(newBufferSize, trackers) {
dispatch(trackers, function (t) {
t.setBufferSize(newBufferSize);
});
}
/**
* Send all events in the outQueue
* Use only when sending POSTs with a bufferSize of at least 2
* Only need to use this when sending events with a bufferSize of at least 2
*
* @param configuration The configuration to use following flushing the buffer
* @param trackers The tracker identifiers which will be flushed
*/
function flushBuffer(trackers) {
function flushBuffer(configuration, trackers) {
dispatch(trackers, function (t) {
t.flushBuffer();
t.flushBuffer(configuration);
});

@@ -444,3 +459,3 @@ }

export { addGlobalContexts, clearGlobalContexts, clearUserData, crossDomainLinker, disableAnonymousTracking, discardBrace, discardHashTag, enableActivityTracking, enableActivityTrackingCallback, enableAnonymousTracking, flushBuffer, newSession, newTracker, preservePageViewId, removeGlobalContexts, setCollectorUrl, setCookiePath, setCustomUrl, setDocumentTitle, setOptOutCookie, setReferrerUrl, setUserId, setUserIdFromCookie, setUserIdFromLocation, setUserIdFromReferrer, setVisitorCookieTimeout, trackPageView, trackSelfDescribingEvent, trackStructEvent, updatePageActivity, version$1 as version };
export { addGlobalContexts, clearGlobalContexts, clearUserData, crossDomainLinker, disableAnonymousTracking, discardBrace, discardHashTag, enableActivityTracking, enableActivityTrackingCallback, enableAnonymousTracking, flushBuffer, newSession, newTracker, preservePageViewId, removeGlobalContexts, setBufferSize, setCollectorUrl, setCookiePath, setCustomUrl, setDocumentTitle, setOptOutCookie, setReferrerUrl, setUserId, setUserIdFromCookie, setUserIdFromLocation, setUserIdFromReferrer, setVisitorCookieTimeout, trackPageView, trackSelfDescribingEvent, trackStructEvent, updatePageActivity, version$1 as version };
//# sourceMappingURL=index.module.js.map

@@ -1,3 +0,3 @@

import { TrackerConfiguration, BrowserTracker, ActivityTrackingConfiguration, ActivityTrackingConfigurationCallback, DisableAnonymousTrackingConfiguration, EnableAnonymousTrackingConfiguration, PageViewEvent } from '@snowplow/browser-tracker-core';
import { CommonEventProperties, ConditionalContextProvider, ContextPrimitive, SelfDescribingEvent, StructuredEvent } from "@snowplow/tracker-core";
import { TrackerConfiguration, BrowserTracker, ActivityTrackingConfiguration, ActivityTrackingConfigurationCallback, DisableAnonymousTrackingConfiguration, EnableAnonymousTrackingConfiguration, FlushBufferConfiguration, PageViewEvent } from '@snowplow/browser-tracker-core';
import { CommonEventProperties, ConditionalContextProvider, ContextPrimitive, SelfDescribingEvent, SelfDescribingJson, StructuredEvent } from "@snowplow/tracker-core";
/**

@@ -147,7 +147,18 @@ * Initialise a new tracker

/**
* Set the buffer size
* Can be useful if you want to stop batching requests to ensure events start
* sending closer to event creation
*
* @param newBufferSize The value with which to update the bufferSize to
* @param trackers The tracker identifiers which will be flushed
*/
declare function setBufferSize(newBufferSize: number, trackers?: Array<string>): void;
/**
* Send all events in the outQueue
* Use only when sending POSTs with a bufferSize of at least 2
* Only need to use this when sending events with a bufferSize of at least 2
*
* @param configuration The configuration to use following flushing the buffer
* @param trackers The tracker identifiers which will be flushed
*/
declare function flushBuffer(trackers?: Array<string>): void;
declare function flushBuffer(configuration?: FlushBufferConfiguration, trackers?: Array<string>): void;
/**

@@ -227,2 +238,2 @@ * Track a visit to a web page

declare function clearUserData(trackers?: Array<string>): void;
export { newTracker, version, newSession, setReferrerUrl, setCustomUrl, setDocumentTitle, discardHashTag, discardBrace, setCookiePath, setVisitorCookieTimeout, crossDomainLinker, enableActivityTracking, enableActivityTrackingCallback, updatePageActivity, setOptOutCookie, setUserId, setUserIdFromLocation, setUserIdFromReferrer, setUserIdFromCookie, setCollectorUrl, flushBuffer, trackPageView, trackStructEvent, trackSelfDescribingEvent, addGlobalContexts, removeGlobalContexts, clearGlobalContexts, preservePageViewId, disableAnonymousTracking, enableAnonymousTracking, clearUserData };
export { newTracker, version, ActivityTrackingConfiguration, ActivityTrackingConfigurationCallback, FlushBufferConfiguration, PageViewEvent, EnableAnonymousTrackingConfiguration, DisableAnonymousTrackingConfiguration, ConditionalContextProvider, ContextPrimitive, SelfDescribingEvent, SelfDescribingJson, CommonEventProperties, StructuredEvent, newSession, setReferrerUrl, setCustomUrl, setDocumentTitle, discardHashTag, discardBrace, setCookiePath, setVisitorCookieTimeout, crossDomainLinker, enableActivityTracking, enableActivityTrackingCallback, updatePageActivity, setOptOutCookie, setUserId, setUserIdFromLocation, setUserIdFromReferrer, setUserIdFromCookie, setCollectorUrl, setBufferSize, flushBuffer, trackPageView, trackStructEvent, trackSelfDescribingEvent, addGlobalContexts, removeGlobalContexts, clearGlobalContexts, preservePageViewId, disableAnonymousTracking, enableAnonymousTracking, clearUserData };

@@ -1,3 +0,3 @@

import { TrackerConfiguration, BrowserTracker, ActivityTrackingConfiguration, ActivityTrackingConfigurationCallback, DisableAnonymousTrackingConfiguration, EnableAnonymousTrackingConfiguration, PageViewEvent } from '@snowplow/browser-tracker-core';
import { CommonEventProperties, ConditionalContextProvider, ContextPrimitive, SelfDescribingEvent, StructuredEvent } from "@snowplow/tracker-core";
import { TrackerConfiguration, BrowserTracker, ActivityTrackingConfiguration, ActivityTrackingConfigurationCallback, DisableAnonymousTrackingConfiguration, EnableAnonymousTrackingConfiguration, FlushBufferConfiguration, PageViewEvent } from '@snowplow/browser-tracker-core';
import { CommonEventProperties, ConditionalContextProvider, ContextPrimitive, SelfDescribingEvent, SelfDescribingJson, StructuredEvent } from "@snowplow/tracker-core";
/**

@@ -147,7 +147,18 @@ * Initialise a new tracker

/**
* Set the buffer size
* Can be useful if you want to stop batching requests to ensure events start
* sending closer to event creation
*
* @param newBufferSize The value with which to update the bufferSize to
* @param trackers The tracker identifiers which will be flushed
*/
declare function setBufferSize(newBufferSize: number, trackers?: Array<string>): void;
/**
* Send all events in the outQueue
* Use only when sending POSTs with a bufferSize of at least 2
* Only need to use this when sending events with a bufferSize of at least 2
*
* @param configuration The configuration to use following flushing the buffer
* @param trackers The tracker identifiers which will be flushed
*/
declare function flushBuffer(trackers?: Array<string>): void;
declare function flushBuffer(configuration?: FlushBufferConfiguration, trackers?: Array<string>): void;
/**

@@ -227,2 +238,2 @@ * Track a visit to a web page

declare function clearUserData(trackers?: Array<string>): void;
export { newTracker, version, newSession, setReferrerUrl, setCustomUrl, setDocumentTitle, discardHashTag, discardBrace, setCookiePath, setVisitorCookieTimeout, crossDomainLinker, enableActivityTracking, enableActivityTrackingCallback, updatePageActivity, setOptOutCookie, setUserId, setUserIdFromLocation, setUserIdFromReferrer, setUserIdFromCookie, setCollectorUrl, flushBuffer, trackPageView, trackStructEvent, trackSelfDescribingEvent, addGlobalContexts, removeGlobalContexts, clearGlobalContexts, preservePageViewId, disableAnonymousTracking, enableAnonymousTracking, clearUserData };
export { newTracker, version, ActivityTrackingConfiguration, ActivityTrackingConfigurationCallback, FlushBufferConfiguration, PageViewEvent, EnableAnonymousTrackingConfiguration, DisableAnonymousTrackingConfiguration, ConditionalContextProvider, ContextPrimitive, SelfDescribingEvent, SelfDescribingJson, CommonEventProperties, StructuredEvent, newSession, setReferrerUrl, setCustomUrl, setDocumentTitle, discardHashTag, discardBrace, setCookiePath, setVisitorCookieTimeout, crossDomainLinker, enableActivityTracking, enableActivityTrackingCallback, updatePageActivity, setOptOutCookie, setUserId, setUserIdFromLocation, setUserIdFromReferrer, setUserIdFromCookie, setCollectorUrl, setBufferSize, flushBuffer, trackPageView, trackStructEvent, trackSelfDescribingEvent, addGlobalContexts, removeGlobalContexts, clearGlobalContexts, preservePageViewId, disableAnonymousTracking, enableAnonymousTracking, clearUserData };
/*!
* Browser tracker for Snowplow v3.0.0-alpha.2 (http://bit.ly/sp-js)
* Browser tracker for Snowplow v3.0.0-alpha.3 (http://bit.ly/sp-js)
* Copyright 2021 Snowplow Analytics Ltd, 2010 Anthon Pang

@@ -7,72 +7,73 @@ * Licensed under BSD-3-Clause

'use strict';(function(h,R){"object"===typeof exports&&"undefined"!==typeof module?R(exports):"function"===typeof define&&define.amd?define(["exports"],R):(h="undefined"!==typeof globalThis?globalThis:h||self,R(h.snowplowBrowserTracking={}))})(this,function(h){function R(a,b){var c={},d;for(d in a)Object.prototype.hasOwnProperty.call(a,d)&&0>b.indexOf(d)&&(c[d]=a[d]);if(null!=a&&"function"===typeof Object.getOwnPropertySymbols){var e=0;for(d=Object.getOwnPropertySymbols(a);e<d.length;e++)0>b.indexOf(d[e])&&
Object.prototype.propertyIsEnumerable.call(a,d[e])&&(c[d[e]]=a[d[e]])}return c}function V(a){var b={exports:{}};return a(b,b.exports),b.exports}function $a(a){if(!a)return a;switch(4-a.length%4){case 2:a+="==";break;case 3:a+="="}a=a.replace(/-/g,"+").replace(/_/g,"/");return Jb(a)}function Jb(a){var b=0,c=0;var d="";var e=[];if(!a)return a;a+="";do{var f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a.charAt(b++));var g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a.charAt(b++));
d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a.charAt(b++));var m="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a.charAt(b++));var n=f<<18|g<<12|d<<6|m;f=n>>16&255;g=n>>8&255;n&=255;64===d?e[c++]=String.fromCharCode(f):64===m?e[c++]=String.fromCharCode(f,g):e[c++]=String.fromCharCode(f,g,n)}while(b<a.length);d=e.join("");return function(a){return decodeURIComponent(a.split("").map(function(a){return"%"+("00"+a.charCodeAt(0).toString(16)).slice(-2)}).join(""))}(d.replace(/\0+$/,
""))}function W(a){if(!ua(a))return!1;for(var b in a)if(Object.prototype.hasOwnProperty.call(a,b))return!0;return!1}function ua(a){return"undefined"!==typeof a&&null!==a&&(a.constructor==={}.constructor||a.constructor===[].constructor)}function ma(){var a={},b=[],c=!0,d=function(b,c){null!=c&&""!==c&&(a[b]=c)};return{setBase64Encoding:function(a){c=a},add:d,addDict:function(a){for(var b in a)Object.prototype.hasOwnProperty.call(a,b)&&d(b,a[b])},addJson:function(a,c,d){d&&W(d)&&b.push([a,c,d])},build:function(){for(var e=
0;e<b.length;e++){var f=b[e],g=JSON.stringify(f[2]);if(c){f=f[0];if(g){var m=0,n=0,v=[];if(g){g=unescape(encodeURIComponent(g));do{var u=g.charCodeAt(m++);var D=g.charCodeAt(m++);var h=g.charCodeAt(m++);var q=u<<16|D<<8|h;u=q>>18&63;D=q>>12&63;h=q>>6&63;q&=63;v[n++]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(u)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(D)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(h)+
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(q)}while(m<g.length);m=v.join("");g=g.length%3;g=(g?m.slice(0,g-3):m)+"===".slice(g||3)}g=g.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}d(f,g)}else d(f[1],g)}b.length=0;return a}}}function Kb(){var a=[],b=[];return{getGlobalPrimitives:function(){return a},getConditionalProviders:function(){return b},addGlobalContexts:function(c){for(var d=[],e=[],f=0;f<c.length;f++){var g=c[f];Ia(g)?d.push(g):w(g)&&e.push(g)}a=a.concat(e);
b=b.concat(d)},clearGlobalContexts:function(){b=[];a=[]},removeGlobalContexts:function(c){for(var d=function(c){Ia(c)?b=b.filter(function(a){return JSON.stringify(a)===JSON.stringify(c)}):w(c)&&(a=a.filter(function(a){return JSON.stringify(a)===JSON.stringify(c)}))},e=0;e<c.length;e++)d(c[e])},getApplicableContexts:function(c){c=c.build();var d=W(c)&&"e"in c?"string"===typeof c.e:!1;if(d){c=L({},c);try{Object.prototype.hasOwnProperty.call(c,"ue_px")&&(c.ue_px=JSON.parse($a(c.ue_px)));var e=c}catch(gc){e=
c}var f,g,m,n,v,u,h,k;c="string"===typeof(null===(g=null===(f=e.ue_px)||void 0===f?void 0:f.data)||void 0===g?void 0:g.schema)?null===(n=null===(m=e.ue_px)||void 0===m?void 0:m.data)||void 0===n?void 0:n.schema:"string"===typeof(null===(u=null===(v=e.ue_pr)||void 0===v?void 0:v.data)||void 0===u?void 0:u.schema)?null===(k=null===(h=e.ue_pr)||void 0===h?void 0:h.data)||void 0===k?void 0:k.schema:"string"===typeof(null===e||void 0===e?void 0:e.schema)?null===e||void 0===e?void 0:e.schema:"";var q;f=
null!==(q=null===e||void 0===e?void 0:e.e)&&void 0!==q?q:"";q=[];g=X(a,e,f,c);q.push.apply(q,g);f=Lb(b,e,f,c);q.push.apply(q,f);return q}return[]}}}function Mb(a){return{addPluginContexts:function(b){var c=null!==b&&void 0!==b?b:[];a.forEach(function(a){try{a.contexts&&c.push.apply(c,a.contexts())}catch(e){console.warn("Snowplow: error with plugin context",e)}});return c}}}function Nb(a){if("*"===a[0]||"*"===a[1])return!1;if(0<a.slice(2).length){var b=!1,c=0;for(a=a.slice(2);c<a.length;c++)if("*"===
a[c])b=!0;else if(b)return!1;return!0}return 2==a.length?!0:!1}function Ja(a){return(a=a.split("."))&&1<a.length?Nb(a):!1}function Ka(a){a=/^iglu:((?:(?:[a-zA-Z0-9-_]+|\*).)+(?:[a-zA-Z0-9-_]+|\*))\/([a-zA-Z0-9-_.]+|\*)\/jsonschema\/([1-9][0-9]*|\*)-(0|[1-9][0-9]*|\*)-(0|[1-9][0-9]*|\*)$/.exec(a);if(null!==a&&Ja(a[1]))return a.slice(1,6)}function Y(a){if(a=Ka(a)){var b=a[0];return 5===a.length&&Ja(b)}return!1}function Ob(a){return Array.isArray(a)&&a.every(function(a){return"string"===typeof a})}function va(a){return Ob(a)?
a.every(function(a){return Y(a)}):"string"===typeof a?Y(a):!1}function S(a){return W(a)&&"schema"in a&&"data"in a?"string"===typeof a.schema&&"object"===typeof a.data:!1}function Pb(a){var b=0;if(null!=a&&"object"===typeof a&&!Array.isArray(a)){if(Object.prototype.hasOwnProperty.call(a,"accept"))if(va(a.accept))b+=1;else return!1;if(Object.prototype.hasOwnProperty.call(a,"reject"))if(va(a.reject))b+=1;else return!1;return 0<b&&2>=b}return!1}function na(a){return"function"===typeof a&&1>=a.length}
function w(a){return na(a)||S(a)}function La(a){return Array.isArray(a)&&2===a.length?Array.isArray(a[1])?na(a[0])&&a[1].every(w):na(a[0])&&w(a[1]):!1}function wa(a){return Array.isArray(a)&&2===a.length?Pb(a[0])?Array.isArray(a[1])?a[1].every(w):w(a[1]):!1:!1}function Ia(a){return La(a)||wa(a)}function Qb(a,b){var c=0,d=0,e=a.accept;Array.isArray(e)?a.accept.some(function(a){return Z(a,b)})&&d++:"string"===typeof e&&Z(e,b)&&d++;e=a.reject;Array.isArray(e)?a.reject.some(function(a){return Z(a,b)})&&
c++:"string"===typeof e&&Z(e,b)&&c++;return 0<d&&0===c?!0:!1}function Z(a,b){if(!Y(a))return!1;a=Ka(a);b=/^iglu:([a-zA-Z0-9-_.]+)\/([a-zA-Z0-9-_]+)\/jsonschema\/([1-9][0-9]*)-(0|[1-9][0-9]*)-(0|[1-9][0-9]*)$/.exec(b);b=null!==b?b.slice(1,6):void 0;if(a&&b){if(!Rb(a[0],b[0]))return!1;for(var c=1;5>c;c++)if(!Ma(a[c],b[c]))return!1;return!0}return!1}function Rb(a,b){b=b.split(".");a=a.split(".");if(b&&a){if(b.length!==a.length)return!1;for(var c=0;c<a.length;c++)if(!Ma(b[c],a[c]))return!1;return!0}return!1}
function Ma(a,b){return a&&b&&"*"===a||a===b}function Na(a){return Array.isArray(a)?a:[a]}function X(a,b,c,d){var e;a=Na(a).map(function(a){a:if(S(a))a=[a];else{if(na(a)){b:{var e=void 0;try{e=a({event:b,eventType:c,eventSchema:d});if(Array.isArray(e)&&e.every(S)||S(e)){var f=e;break b}f=void 0;break b}catch(n){}f=void 0}if(S(f)){a=[f];break a}else if(Array.isArray(f)){a=f;break a}}a=void 0}if(a&&0!==a.length)return a});return(e=[]).concat.apply(e,a.filter(function(a){return null!=a&&a.filter(Boolean)}))}
function Lb(a,b,c,d){var e;a=Na(a).map(function(a){a:{if(La(a)){var e=a[0],f=!1;try{f=e({event:b,eventType:c,eventSchema:d})}catch(n){f=!1}if(!0===f){a=X(a[1],b,c,d);break a}}else if(wa(a)&&Qb(a[0],d)){a=X(a[1],b,c,d);break a}a=[]}if(a&&0!==a.length)return a});return(e=[]).concat.apply(e,a.filter(function(a){return null!=a&&a.filter(Boolean)}))}function Sb(a){return null==a?{type:"dtm",value:(new Date).getTime()}:"number"===typeof a?{type:"dtm",value:a}:"ttm"===a.type?{type:"ttm",value:a.value}:{type:"dtm",
value:a.value||(new Date).getTime()}}function Tb(a,b,c){function d(a,b){a=g.getApplicableContexts(a);var c=[];b&&b.length&&c.push.apply(c,b);a&&a.length&&c.push.apply(c,a);return c}var e=null!==b&&void 0!==b?b:[],f=Mb(e),g=Kb(),m=null!==a&&void 0!==a?a:!0,n={};return{track:function(a,b,g){a.setBase64Encoding(m);a.addDict(n);a.add("eid",t.v4());g=Sb(g);a.add(g.type,g.value.toString());b=d(a,f.addPluginContexts(b));b=b&&b.length?{schema:"iglu:com.snowplowanalytics.snowplow/contexts/jsonschema/1-0-0",
data:b}:void 0;void 0!==b&&a.addJson("cx","co",b);e.forEach(function(b){try{b.beforeTrack&&b.beforeTrack(a)}catch(q){console.warn("Snowplow: error with plugin beforeTrack",q)}});"function"===typeof c&&c(a);e.forEach(function(b){try{b.afterTrack&&b.afterTrack(a.build())}catch(q){console.warn("Snowplow: error with plugin ",q)}});return a},addPayloadPair:function(a,b){n[a]=b},getBase64Encoding:function(){return m},setBase64Encoding:function(a){m=a},addPayloadDict:function(a){for(var b in a)Object.prototype.hasOwnProperty.call(a,
b)&&(n[b]=a[b])},resetPayloadPairs:function(a){n=ua(a)?a:{}},setTrackerVersion:function(a){n.tv=a},setTrackerNamespace:function(a){n.tna=a},setAppId:function(a){n.aid=a},setPlatform:function(a){n.p=a},setUserId:function(a){n.uid=a},setScreenResolution:function(a,b){n.res=a+"x"+b},setViewport:function(a,b){n.vp=a+"x"+b},setColorDepth:function(a){n.cd=a},setTimezone:function(a){n.tz=a},setLang:function(a){n.lang=a},setIpAddress:function(a){n.ip=a},setUseragent:function(a){n.ua=a},addGlobalContexts:function(a){g.addGlobalContexts(a)},
clearGlobalContexts:function(){g.clearGlobalContexts()},removeGlobalContexts:function(a){g.removeGlobalContexts(a)}}}function Ub(a){var b=a.event;a=b.schema;var c=b.data;b=ma();a={schema:"iglu:com.snowplowanalytics.snowplow/unstruct_event/jsonschema/1-0-0",data:{schema:a,data:c}};b.add("e","ue");b.addJson("ue_px","ue_pr",a);return b}function Vb(a){var b=a.pageUrl,c=a.pageTitle;a=a.referrer;var d=ma();d.add("e","pv");d.add("url",b);d.add("page",c);d.add("refr",a);return d}function Wb(a){var b=a.pageUrl,
c=a.pageTitle,d=a.referrer,e=a.minXOffset,f=a.maxXOffset,g=a.minYOffset;a=a.maxYOffset;var m=ma();m.add("e","pp");m.add("url",b);m.add("page",c);m.add("refr",d);e&&!isNaN(Number(e))&&m.add("pp_mix",e.toString());f&&!isNaN(Number(f))&&m.add("pp_max",f.toString());g&&!isNaN(Number(g))&&m.add("pp_miy",g.toString());a&&!isNaN(Number(a))&&m.add("pp_may",a.toString());return m}function Xb(a){var b=a.category,c=a.action,d=a.label,e=a.property;a=a.value;var f=ma();f.add("e","se");f.add("se_ca",b);f.add("se_ac",
c);f.add("se_la",d);f.add("se_pr",e);f.add("se_va",null==a?void 0:a.toString());return f}function zb(a){return Number.isInteger&&Number.isInteger(a)||"number"===typeof a&&isFinite(a)&&Math.floor(a)===a}function Ab(a){if(!a||"string"!==typeof a.valueOf()){a=a.text||"";var b=aa.getElementsByTagName("title");b&&null!=b[0]&&(a=b[0].text)}return a}function ab(a){var b=/^(?:(?:https?|ftp):)\/*(?:[^@]+@)?([^:/#]+)/.exec(a);return b?b[1]:a}function Bb(a){var b=a.length;"."===a.charAt(--b)&&(a=a.slice(0,b));
"*."===a.slice(0,2)&&(a=a.slice(1));return a}function bb(a){var b="",c=xa("referrer",x.location.href)||xa("referer",x.location.href);if(c)return c;if(a)return a;try{b=x.top.document.referrer}catch(d){if(x.parent)try{b=x.parent.document.referrer}catch(e){b=""}}""===b&&(b=aa.referrer);return b}function G(a,b,c,d){if(a.addEventListener)return a.addEventListener(b,c,d),!0;if(a.attachEvent)return a.attachEvent("on"+b,c);a["on"+b]=c}function xa(a,b){return(a=(new RegExp("^[^#]*[?&]"+a+"=([^&#]*)")).exec(b))?
decodeURIComponent(a[1].replace(/\+/g," ")):null}function cb(a){"undefined"!==typeof console&&console.warn("Snowplow: "+a)}function Oa(a,b,c){void 0===c&&(c=63072E3);try{var d=Date.now()+1E3*c;E.setItem(a+".expires",d.toString());E.setItem(a,b);return!0}catch(e){return!1}}function Cb(a){try{return E.removeItem(a),E.removeItem(a+".expires"),!0}catch(b){return!1}}function Yb(a,b){for(var c="_sp_root_domain_test_"+(new Date).getTime(),d="_test_value_"+(new Date).getTime(),e=x.location.hostname.split("."),
f=e.length-1;0<=f;){var g=e.slice(f,e.length).join(".");z(c,d,0,"/",g,a,b);if(z(c)===d){z(c,"",-1,"/",g,a,b);c=aa.cookie.split("; ");d=[];for(e=0;e<c.length;e++)"_sp_root_domain_test_"===c[e].substring(0,21)&&d.push(c[e]);c=d;for(d=0;d<c.length;d++)z(c[d],"",-1,"/",g,a,b);return g}--f}return x.location.hostname}function z(a,b,c,d,e,f,g){return 1<arguments.length?aa.cookie=a+"="+encodeURIComponent(null!==b&&void 0!==b?b:"")+(c?"; Expires="+(new Date(+new Date+1E3*c)).toUTCString():"")+(d?"; Path="+
d:"")+(e?"; Domain="+e:"")+(f?"; SameSite="+f:"")+(g?"; Secure":""):decodeURIComponent((("; "+aa.cookie).split("; "+a+"=")[1]||"").split(";")[0])}function Zb(){try{var a=!!H.localStorage}catch(b){a=!0}if(!a)return!1;try{return H.localStorage.setItem("modernizr","modernizr"),H.localStorage.removeItem("modernizr"),!0}catch(b){return!1}}function $b(){if("innerWidth"in H){var a=H.innerWidth;var b=H.innerHeight}else b=oa.documentElement||oa.body,a=b.clientWidth,b=b.clientHeight;return 0<=a&&0<=b?a+"x"+
b:null}function ac(){var a=oa.documentElement,b=oa.body,c=Math.max(a.clientWidth,a.offsetWidth,a.scrollWidth);a=Math.max(a.clientHeight,a.offsetHeight,a.scrollHeight,b?Math.max(b.offsetHeight,b.scrollHeight):0);return isNaN(c)||isNaN(a)?"":c+"x"+a}function bc(a,b,c,d,e,f,g,m,n,h,k){function D(a){var b="?",c={co:!0,cx:!0},d=!0,e;for(e in a)a.hasOwnProperty(e)&&!c.hasOwnProperty(e)&&(d?d=!1:b+="&",b+=encodeURIComponent(e)+"="+encodeURIComponent(a[e]));for(var f in c)a.hasOwnProperty(f)&&c.hasOwnProperty(f)&&
(b+="&"+f+"="+encodeURIComponent(a[f]));return b}function v(a){var b=Object.keys(a).map(function(b){return[b,a[b]]}).reduce(function(a,b){a[b[0]]=b[1].toString();return a},{});return{evt:b,bytes:q(JSON.stringify(b))}}function q(a){for(var b=0,c=0;c<a.length;c++){var d=a.charCodeAt(c);127>=d?b+=1:2047>=d?b+=2:55296<=d&&57343>=d?(b+=4,c++):b=65535>d?b+3:b+4}return b}function u(){for(;r.length&&"string"!==typeof r[0]&&"object"!==typeof r[0];)r.shift();if(1>r.length)M=!1;else{if(!T||"string"!==typeof T.valueOf())throw"No collector configured";
M=!0;if(x){var a=function(a){for(var b=0,c=0;b<a.length&&!(c+=a[b].bytes,c>=g);)b+=1;return b},b=void 0;if(ba(r)){b=T;var d=p(b,!0);var e=a(r)}else b=A(r[0]),d=p(b,!1),e=1;var f=setTimeout(function(){d.abort();M=!1},h),m=function(a){for(var b=0;b<a;b++)r.shift();c&&Oa(N,JSON.stringify(r.slice(0,n)));u()};d.onreadystatechange=function(){if(4===d.readyState&&200<=d.status&&400>d.status){clearTimeout(f);if(L&&!E)try{Pa.setItem(H,"*")}catch(pa){}m(e)}else 4===d.readyState&&400<=d.status&&(clearTimeout(f),
M=!1)};if(ba(r)){var q=r.slice(0,e);if(0<q.length){a=!1;var D;if(!(D=E)&&(D=L)){try{var v=Pa.getItem(H)}catch(pa){v=void 0}D=!!v}E=D;v=q.map(function(a){return a.evt});if(E){q=new Blob([db(z(v))],{type:"application/json"});try{a=navigator.sendBeacon(b,q)}catch(pa){a=!1}}!0===a&&m(e);L&&a||d.send(db(z(v)))}}else d.send()}else if(k||ba(r))M=!1;else{b=new Image(1,1);var t=!0;b.onload=function(){t&&(t=!1,r.shift(),c&&Oa(N,JSON.stringify(r.slice(0,n))),u())};b.onerror=function(){t&&(M=t=!1)};b.src=A(r[0]);
setTimeout(function(){t&&M&&(t=!1,u())},h)}}}function p(a,b){var c=new XMLHttpRequest;b?(c.open("POST",a,!0),c.setRequestHeader("Content-Type","application/json; charset=UTF-8")):c.open("GET",a,!0);c.withCredentials=!0;k&&c.setRequestHeader("SP-Anonymous","*");return c}function db(a){return JSON.stringify({schema:"iglu:com.snowplowanalytics.snowplow/payload_data/jsonschema/1-0-4",data:a})}function z(a){for(var b=(new Date).getTime().toString(),c=0;c<a.length;c++)a[c].stm=b;return a}function A(a){return m?
T+a.replace("?","?stm="+(new Date).getTime()+"&"):T+a}var t=window.localStorage,M=!1,T,r=[],E;d="string"===typeof d?d.toLowerCase():d;var C=null===d||!0===d||"beacon"===d||"true"===d,L=!!(C&&navigator&&navigator.sendBeacon)&&C,x=!!(window.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest),G="get"!==d&&x&&("post"===d||C),w=G?e:"/i";f=Zb()&&c&&G&&f||1;var N="snowplowOutQueue_"+a+"_"+(G?"post2":"get");var H="spBeaconPreflight_"+a;if(c)try{var K=t.getItem(N);r=K?JSON.parse(K):[]}catch(hc){}Array.isArray(r)||
(r=[]);b.outQueues.push(r);x&&1<f&&b.bufferFlushers.push(function(){M||u()});var ba=function(a){return"object"===typeof a[0]};return{enqueueRequest:function(a,b){T=b+w;if(G){a=v(a);if(a.bytes>=g){cb("Event ("+a.bytes+"B) too big, max is "+g);p(T,!0).send(db(z([a.evt])));return}r.push(a)}else r.push(D(a));a=!1;c&&(a=Oa(N,JSON.stringify(r.slice(0,n))));M||a&&!(r.length>=f)||u()},executeQueue:function(){M||u()},setUseLocalStorage:function(a){c=a},setAnonymousTracking:function(a){k=a},setCollectorUrl:function(a){T=
a+w}}}function Db(a,b,c){if("translate.googleusercontent.com"===a)""===c&&(c=b),a=(a=/^(?:https?|ftp)(?::\/*(?:[^?]+))([?][^#]+)/.exec(b))&&1<(null===a||void 0===a?void 0:a.length)?xa("u",a[1]):null,b=null!==a&&void 0!==a?a:"",a=ab(b);else if("cc.bingj.com"===a||"webcache.googleusercontent.com"===a)b=document.links[0].href,a=ab(b);return[a,b,c]}function cc(a,b,c,d,e,f){a=function(a,b,c,d,e,f){function g(){ca=Db(I.location.hostname,I.location.href,bb());ca[1]!==U&&(ya=bb(U));va=Bb(ca[0]);U=ca[1]}function m(a){var b=
(new Date).getTime();a=a.target;if(null===a||void 0===a?0:a.href){b="_sp="+(za+"."+b);var c=a.href.split("#"),d=c[0].split("?"),e=d.shift();if(d=d.join("?")){for(var Qa=!0,f=d.split("&"),g=0;g<f.length;g++)if("_sp="===f[g].substr(0,4)){Qa=!1;f[g]=b;d=f.join("&");break}Qa&&(d=b+"&"+d)}else d=b;c[0]=e+"?"+d;b=c.join("#");a.href=b}}function n(a){for(var b=0;b<B.links.length;b++){var c=B.links[b];!c.spDecorationEnabled&&a(c)&&(G(c,"click",m,!0),G(c,"mousedown",m,!0),c.spDecorationEnabled=!0)}}function h(a){if(Fa){var b=
/#.*/;a=a.replace(b,"")}Ga&&(b=/[{}]/g,a=a.replace(b,""));return a}function k(a){return(a=/^([a-z]+):/.exec(a))?a[1]:null}function v(a){a=qa+a+"."+da;if("localStorage"==y){try{var b=E.getItem(a+".expires");if(null===b||+b>Date.now())var c=E.getItem(a);else E.removeItem(a),E.removeItem(a+".expires"),c=void 0}catch(ic){c=void 0}return c}if("cookie"==y||"cookieAndLocalStorage"==y)return z(a)}function u(){g();da=$a((Aa||va)+(eb||"/")).slice(0,4)}function D(){Ra=(new Date).getTime()}function p(){var a=
r(),b=a[0];b<Sa?Sa=b:b>Ta&&(Ta=b);a=a[1];a<Ua?Ua=a:a>Va&&(Va=a);D()}function r(){var a=B.compatMode&&"BackCompat"!==B.compatMode?B.documentElement:B.body;return[a.scrollLeft||I.pageXOffset,a.scrollTop||I.pageYOffset]}function C(){var a=r(),b=a[0];Ta=Sa=b;Va=Ua=a=a[1]}function x(){H(qa+"ses."+da,"*",Eb)}function w(a,b,c,d,e,f){H(qa+"id."+da,a+"."+b+"."+c+"."+d+"."+e+"."+f,Fb)}function H(a,b,c){if(!P||ea)"localStorage"==y?Oa(a,b,c):("cookie"==y||"cookieAndLocalStorage"==y)&&z(a,b,c,eb,Aa,Wa,Xa)}function K(){var a=
qa+"id."+da,b=qa+"ses."+da;Cb(a);Cb(b);z(a,"",-1,"/",Aa,Wa,Xa);z(b,"",-1,"/",Aa,Wa,Xa)}function R(){if(!P||ea){var a="none"!=y&&!!v("ses"),b=N();b[1]?za=b[1]:(za=P?"":t.v4(),b[1]=za);F=b[6];a||(b[3]++,F=t.v4(),b[6]=F,b[5]=b[4]);"none"!=y&&(x(),b[4]=Math.round((new Date).getTime()/1E3),b.shift(),w.apply(null,b))}}function N(){if("none"==y)return[];var a=Math.round((new Date).getTime()/1E3),b=v("id");b?(a=b.split("."),a.unshift("0")):a=["1",za,a,0,a,""];a[6]||(a[6]=t.v4());return a}function yb(a){return wa?
"https://"+a:Ma?"http://"+a:("https:"===B.location.protocol?"https":"http")+"://"+a}function S(){Gb&&null!=e.pageViewId||(e.pageViewId=t.v4())}function ba(){null==e.pageViewId&&(e.pageViewId=t.v4());return e.pageViewId}function aa(){return{contexts:function(){return[{schema:"iglu:com.snowplowanalytics.snowplow/web_page/jsonschema/1-0-0",data:{id:ba()}}]}}}function ma(a){var b=a.title,c=a.context,d=a.timestamp;a=a.contextCallback;g();Hb&&S();Hb=!0;ra=B.title;Ba=b;b=Ab(Ba||ra);J.track(Vb({pageUrl:h(sa||
U),pageTitle:b,referrer:h(Ya||ya)}),(c||[]).concat(a?a():[]),d);d=new Date;b=!1;if(O.enabled&&!O.installed){b=O.installed=!0;var e={update:function(){if("undefined"!==typeof window&&"function"===typeof window.addEventListener){var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}}),c=function(){};window.addEventListener("testPassiveEventSupport",c,b);window.removeEventListener("testPassiveEventSupport",c,b);e.hasSupport=a}}};e.update();var f="onwheel"in document.createElement("div")?
"wheel":void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll";Object.prototype.hasOwnProperty.call(e,"hasSupport")?G(B,f,D,{passive:!0}):G(B,f,D);C();f=function(a,b){void 0===b&&(b=D);return function(a){return G(B,a,b)}};"click mouseup mousedown mousemove keypress keydown keyup".split(" ").forEach(f(B));["resize","focus","blur"].forEach(f(I));f(I,p)("scroll")}if(O.enabled&&(Za||b))for(d in Ra=d.getTime(),d=void 0,O.configurations)if(b=O.configurations[d])window.clearInterval(b.activityInterval),
na(b,c,a)}function na(a,b,c){var d=function(a,b){g();a({context:b,pageViewId:ba(),minXOffset:Sa,minYOffset:Ua,maxXOffset:Ta,maxYOffset:Va});C()},e=function(){Ra+a.configHeartBeatTimer>(new Date).getTime()&&d(a.callback,(b||[]).concat(c?c():[]))};a.activityInterval=0!=a.configMinimumVisitLength?I.setTimeout(function(){Ra+a.configMinimumVisitLength>(new Date).getTime()&&d(a.callback,(b||[]).concat(c?c():[]));a.activityInterval=I.setInterval(e,a.configHeartBeatTimer)},a.configMinimumVisitLength):I.setInterval(e,
a.configHeartBeatTimer)}function Z(a){var b=a.minimumVisitLength,c=a.heartbeatDelay;a=a.callback;if(zb(b)&&zb(c))return{configMinimumVisitLength:1E3*b,configHeartBeatTimer:1E3*c,callback:a};cb("Activity tracking not enabled, please provide integer values for minimumVisitLength and heartbeatDelay.")}function oa(a){var b=a.context,c=a.minXOffset,d=a.minYOffset,e=a.maxXOffset;a=a.maxYOffset;var f=B.title;f!==ra&&(ra=f,Ba=void 0);J.track(Wb({pageUrl:h(sa||U),pageTitle:Ab(Ba||ra),referrer:h(Ya||ya),minXOffset:Math.round(c),
maxXOffset:Math.round(e),minYOffset:Math.round(d),maxYOffset:Math.round(a)}),b)}var V,W,X,Y,ha,pa,ia,ja,ka,la,fb,gb,hb,ib,jb,kb,lb,mb,nb,ob,pb,qb,rb,l=null!==f&&void 0!==f?f:{};l.eventMethod=null!==(V=l.eventMethod)&&void 0!==V?V:"post";var ua=function(a){var b;return null!==(b=a.stateStorageStrategy)&&void 0!==b?b:"cookieAndLocalStorage"},sb=function(a){var b,c;return"boolean"===typeof a.anonymousTracking?!1:null!==(c=!0===(null===(b=a.anonymousTracking)||void 0===b?void 0:b.withSessionTracking))&&
void 0!==c?c:!1},tb=function(a){var b,c;return"boolean"===typeof a.anonymousTracking?!1:null!==(c=!0===(null===(b=a.anonymousTracking)||void 0===b?void 0:b.withServerAnonymisation))&&void 0!==c?c:!1},Ia=null!==(W=l.pageUnloadTimer)&&void 0!==W?W:500,ub=null!==(X=l.plugins)&&void 0!==X?X:[];(null!==(ha=null===(Y=null===l||void 0===l?void 0:l.contexts)||void 0===Y?void 0:Y.webPage)&&void 0!==ha?ha:1)&&ub.push(aa());var J=Tb(null!==(pa=l.encodeBase64)&&void 0!==pa?pa:!0,ub,function(a){var b=Math.round((new Date).getTime()/
1E3),c=v("ses"),d=N(),f=d[0],m=d[1],Qa=d[2],n=d[3],l=d[4],k=d[5];d=d[6];var u=Ca?!!z(Ca):!1;Ib||u?K():("0"===f?(F=d,c||"none"==y||(n++,k=l,F=t.v4()),Q=n):(new Date).getTime()-vb>1E3*Eb&&(F=t.v4(),Q++),a.add("vp",$b()),a.add("ds",ac()),a.add("vid",ea?Q:P?null:Q),a.add("sid",ea?F:P?null:F),a.add("duid",P?null:m),a.add("uid",P?null:ta),g(),a.add("refr",h(Ya||ya)),a.add("url",h(sa||U)),"none"!=y&&(w(m,Qa,Q,b,k,F),x()),vb=(new Date).getTime());b=new Date;c=Ca?!!z(Ca):!1;Ib||c||(fa.enqueueRequest(a.build(),
wb),e.expireDateTime=b.getTime()+Ia)}),B=document,I=window,Da=navigator,xb=screen,Ja=Da.userLanguage||Da.language,Ka=B.characterSet||B.charset,ca=Db(I.location.hostname,I.location.href,bb()),va=Bb(ca[0]),U=ca[1],ya=ca[2],Ya,La=null!==(ia=l.platform)&&void 0!==ia?ia:"web",wa=null!==(ja=l.forceSecureTracker)&&void 0!==ja?ja:!1,Ma=!wa&&(null!==(ka=l.forceUnsecureTracker)&&void 0!==ka?ka:!1),wb=yb(d),Na=null!==(la=l.postPath)&&void 0!==la?la:"/com.snowplowanalytics.snowplow/tp2",Pa=null!==(fb=l.appId)&&
void 0!==fb?fb:"",sa,ra=B.title,Ba,Za=null!==(gb=l.resetActivityTrackingOnPageView)&&void 0!==gb?gb:!0,Fa,Ga,qa=null!==(hb=l.cookieName)&&void 0!==hb?hb:"_sp_",Aa=null!==(ib=l.cookieDomain)&&void 0!==ib?ib:void 0,eb="/",Wa=null!==(jb=l.cookieSameSite)&&void 0!==jb?jb:"None",Xa=null!==(kb=l.cookieSecure)&&void 0!==kb?kb:!0,Ha=Da.doNotTrack||Da.msDoNotTrack||I.doNotTrack,Ib="undefined"!==typeof l.respectDoNotTrack?l.respectDoNotTrack&&("yes"===Ha||"1"===Ha):!1,Ca,Fb=null!==(lb=l.cookieLifetime)&&void 0!==
lb?lb:63072E3,Eb=null!==(mb=l.sessionCookieTimeout)&&void 0!==mb?mb:1800,ea=sb(l),Ea=tb(l),P=!!l.anonymousTracking,y=ua(l),Ra,vb=(new Date).getTime(),Sa,Ta,Ua,Va,$a=dc,da,za,F,Q=1,ta,fa=bc(a,e,"localStorage"==y||"cookieAndLocalStorage"==y,l.eventMethod,Na,null!==(nb=l.bufferSize)&&void 0!==nb?nb:1,null!==(ob=l.maxPostBytes)&&void 0!==ob?ob:4E4,null!==(pb=l.useStm)&&void 0!==pb?pb:!0,null!==(qb=l.maxLocalStorageQueueSize)&&void 0!==qb?qb:1E3,null!==(rb=l.connectionTimeout)&&void 0!==rb?rb:5E3,Ea),
Gb=!1,Hb=!1,O={enabled:!1,installed:!1,configurations:{}};l.hasOwnProperty("discoverRootDomain")&&l.discoverRootDomain&&(Aa=Yb(Wa,Xa));J.setTrackerVersion(c);J.setTrackerNamespace(b);J.setAppId(Pa);J.setPlatform(La);J.addPayloadPair("cookie",Da.cookieEnabled?"1":"0");J.addPayloadPair("cs",Ka);J.addPayloadPair("lang",Ja);J.addPayloadPair("res",xb.width+"x"+xb.height);J.addPayloadPair("cd",xb.colorDepth);u();R();l.crossDomainLinker&&n(l.crossDomainLinker);return L(L({},{getDomainSessionIndex:function(){return Q},
getPageViewId:function(){return ba()},newSession:function(){var a=Math.round((new Date).getTime()/1E3),b=N(),c=b[1],d=b[2],e=b[3],f=b[4],g=b[5],m=b[6];"0"===b[0]?(F=m,"none"!=y&&(e++,g=f,F=t.v4()),Q=e,x()):(F=t.v4(),Q++);"none"!=y&&(w(c,d,Q,a,g,F),x());vb=(new Date).getTime()},getCookieName:function(a){return qa+a+"."+da},getUserId:function(){return ta},getDomainUserId:function(){return N()[1]},getDomainUserInfo:function(){return N()},setReferrerUrl:function(a){Ya=a},setCustomUrl:function(a){g();
var b=U,c;k(a)?sa=a:"/"===a.slice(0,1)?sa=k(b)+"://"+ab(b)+a:(b=h(b),0<=(c=b.indexOf("?"))&&(b=b.slice(0,c)),(c=b.lastIndexOf("/"))!==b.length-1&&(b=b.slice(0,c+1)),sa=b+a)},setDocumentTitle:function(a){ra=B.title;Ba=a},discardHashTag:function(a){Fa=a},discardBrace:function(a){Ga=a},setCookiePath:function(a){eb=a;u()},setVisitorCookieTimeout:function(a){Fb=a},crossDomainLinker:function(a){n(a)},enableActivityTracking:function(a){O.enabled=!0;O.configurations.pagePing=Z(L(L({},a),{callback:oa}))},
enableActivityTrackingCallback:function(a){O.enabled=!0;O.configurations.callback=Z(a)},updatePageActivity:function(){D()},setOptOutCookie:function(a){Ca=a},setUserId:function(a){ta=a},setUserIdFromLocation:function(a){g();ta=xa(a,U)},setUserIdFromReferrer:function(a){g();ta=xa(a,ya)},setUserIdFromCookie:function(a){ta=z(a)},setCollectorUrl:function(a){wb=yb(a);fa.setCollectorUrl(wb)},flushBuffer:function(){fa.executeQueue()},trackPageView:function(a){void 0===a&&(a={});ma(a)},preservePageViewId:function(){Gb=
!0},disableAnonymousTracking:function(a){a&&a.stateStorageStrategy?(l.stateStorageStrategy=a.stateStorageStrategy,l.anonymousTracking=!1,y=ua(l)):l.anonymousTracking=!1;P=!!l.anonymousTracking;ea=sb(l);Ea=tb(l);fa.setUseLocalStorage("localStorage"==y||"cookieAndLocalStorage"==y);fa.setAnonymousTracking(Ea);R();fa.executeQueue()},enableAnonymousTracking:function(a){l.anonymousTracking=a&&(null===a||void 0===a?void 0:a.options)||!0;P=!!l.anonymousTracking;ea=sb(l);Ea=tb(l);ea||S();fa.setAnonymousTracking(Ea)},
clearUserData:K}),{id:a,core:J,sharedState:e,plugins:ub})}(a,b,c,d,e,f);b=a.plugins;var g=R(a,["plugins"]);b.forEach(function(a){var b;null===(b=a.activateBrowserPlugin)||void 0===b?void 0:b.call(a,g)});return g}for(var L=function(){L=Object.assign||function(a){for(var b,c=1,d=arguments.length;c<d;c++){b=arguments[c];for(var e in b)Object.prototype.hasOwnProperty.call(b,e)&&(a[e]=b[e])}return a};return L.apply(this,arguments)},Za=V(function(a){var b="undefined"!=typeof crypto&&crypto.getRandomValues&&
crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(b){var c=new Uint8Array(16);a.exports=function(){b(c);return c}}else{var d=Array(16);a.exports=function(){for(var a=0,b;16>a;a++)0===(a&3)&&(b=4294967296*Math.random()),d[a]=b>>>((a&3)<<3)&255;return d}}}),p=[],C=0;256>C;++C)p[C]=(C+256).toString(16).substr(1);var Fa=function(a,b){b=b||0;return[p[a[b++]],p[a[b++]],p[a[b++]],p[a[b++]],"-",
p[a[b++]],p[a[b++]],"-",p[a[b++]],p[a[b++]],"-",p[a[b++]],p[a[b++]],"-",p[a[b++]],p[a[b++]],p[a[b++]],p[a[b++]],p[a[b++]],p[a[b++]]].join("")},Ga,ha,ia=0,ja=0;C=function(a,b,c){c=b&&c||0;"string"==typeof a&&(b="binary"===a?Array(16):null,a=null);a=a||{};a=a.random||(a.rng||Za)();a[6]=a[6]&15|64;a[8]=a[8]&63|128;if(b)for(var d=0;16>d;++d)b[c+d]=a[d];return b||Fa(a)};C.v1=function(a,b,c){c=b&&c||0;var d=b||[];a=a||{};var e=a.node||Ga,f=void 0!==a.clockseq?a.clockseq:ha;if(null==e||null==f){var g=Za();
null==e&&(e=Ga=[g[0]|1,g[1],g[2],g[3],g[4],g[5]]);null==f&&(f=ha=(g[6]<<8|g[7])&16383)}g=void 0!==a.msecs?a.msecs:(new Date).getTime();var m=void 0!==a.nsecs?a.nsecs:ja+1,h=g-ia+(m-ja)/1E4;0>h&&void 0===a.clockseq&&(f=f+1&16383);(0>h||g>ia)&&void 0===a.nsecs&&(m=0);if(1E4<=m)throw Error("uuid.v1(): Can't create more than 10M uuids/sec");ia=g;ja=m;ha=f;g+=122192928E5;a=(1E4*(g&268435455)+m)%4294967296;d[c++]=a>>>24&255;d[c++]=a>>>16&255;d[c++]=a>>>8&255;d[c++]=a&255;a=g/4294967296*1E4&268435455;d[c++]=
a>>>8&255;d[c++]=a&255;d[c++]=a>>>24&15|16;d[c++]=a>>>16&255;d[c++]=f>>>8|128;d[c++]=f&255;for(f=0;6>f;++f)d[c+f]=e[f];return b?b:Fa(d)};var t=C.v4=C,ka=V(function(a){(function(){var b={rotl:function(a,b){return a<<b|a>>>32-b},rotr:function(a,b){return a<<32-b|a>>>b},endian:function(a){if(a.constructor==Number)return b.rotl(a,8)&16711935|b.rotl(a,24)&4278255360;for(var c=0;c<a.length;c++)a[c]=b.endian(a[c]);return a},randomBytes:function(a){for(var b=[];0<a;a--)b.push(Math.floor(256*Math.random()));
return b},bytesToWords:function(a){for(var b=[],c=0,f=0;c<a.length;c++,f+=8)b[f>>>5]|=a[c]<<24-f%32;return b},wordsToBytes:function(a){for(var b=[],c=0;c<32*a.length;c+=8)b.push(a[c>>>5]>>>24-c%32&255);return b},bytesToHex:function(a){for(var b=[],c=0;c<a.length;c++)b.push((a[c]>>>4).toString(16)),b.push((a[c]&15).toString(16));return b.join("")},hexToBytes:function(a){for(var b=[],c=0;c<a.length;c+=2)b.push(parseInt(a.substr(c,2),16));return b},bytesToBase64:function(a){for(var b=[],c=0;c<a.length;c+=
3)for(var f=a[c]<<16|a[c+1]<<8|a[c+2],g=0;4>g;g++)8*c+6*g<=8*a.length?b.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(f>>>6*(3-g)&63)):b.push("=");return b.join("")},base64ToBytes:function(a){a=a.replace(/[^A-Z0-9+\/]/ig,"");for(var b=[],c=0,f=0;c<a.length;f=++c%4)0!=f&&b.push(("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(a.charAt(c-1))&Math.pow(2,-2*f+8)-1)<<2*f|"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(a.charAt(c))>>>
6-2*f);return b}};a.exports=b})()}),la={utf8:{stringToBytes:function(a){return la.bin.stringToBytes(unescape(encodeURIComponent(a)))},bytesToString:function(a){return decodeURIComponent(escape(la.bin.bytesToString(a)))}},bin:{stringToBytes:function(a){for(var b=[],c=0;c<a.length;c++)b.push(a.charCodeAt(c)&255);return b},bytesToString:function(a){for(var b=[],c=0;c<a.length;c++)b.push(String.fromCharCode(a[c]));return b.join("")}}},Ha=la,dc=V(function(a){(function(){var b=Ha.utf8,c=Ha.bin,d=function(a){a.constructor==
String?a=b.stringToBytes(a):"undefined"!==typeof Buffer&&"function"==typeof Buffer.isBuffer&&Buffer.isBuffer(a)?a=Array.prototype.slice.call(a,0):Array.isArray(a)||(a=a.toString());var c=ka.bytesToWords(a),d=8*a.length;a=[];var e=1732584193,f=-271733879,h=-1732584194,k=271733878,p=-1009589776;c[d>>5]|=128<<24-d%32;c[(d+64>>>9<<4)+15]=d;for(d=0;d<c.length;d+=16){for(var q=e,t=f,x=h,z=k,C=p,A=0;80>A;A++){if(16>A)a[A]=c[d+A];else{var w=a[A-3]^a[A-8]^a[A-14]^a[A-16];a[A]=w<<1|w>>>31}w=(e<<5|e>>>27)+p+
(a[A]>>>0)+(20>A?(f&h|~f&k)+1518500249:40>A?(f^h^k)+1859775393:60>A?(f&h|f&k|h&k)-1894007588:(f^h^k)-899497514);p=k;k=h;h=f<<30|f>>>2;f=e;e=w}e+=q;f+=t;h+=x;k+=z;p+=C}return[e,f,h,k,p]},e=function(a,b){a=ka.wordsToBytes(d(a));return b&&b.asBytes?a:b&&b.asString?c.bytesToString(a):ka.bytesToHex(a)};e._blocksize=16;e._digestsize=20;a.exports=e})()}),x=window,aa=document,E=window.localStorage,Pa=window.sessionStorage,H=window,oa=document,K={},ec=function(){return function(){this.outQueues=[];this.bufferFlushers=
[];this.hasLoaded=!1;this.registeredOnLoadHandlers=[]}}(),k=function(a,b){void 0===a&&(a=Object.keys(K));for(var c=[],d=0;d<a.length;d++){var e=a[d];K.hasOwnProperty(e)?c.push(K[e]):cb(e+" not configured")}c.forEach(b)},fc=function(){function a(){var a;if(!d.hasLoaded)for(d.hasLoaded=!0,a=0;a<d.registeredOnLoadHandlers.length;a++)d.registeredOnLoadHandlers[a]();return!0}var b=document,c=window,d=new ec;G(c,"beforeunload",function(){d.bufferFlushers.forEach(function(a){a()});if(d.expireDateTime){do{var a=
new Date;if(0===Array.prototype.filter.call(d.outQueues,function(a){return 0<a.length}).length)break}while(a.getTime()<d.expireDateTime)}},!1);(function(){b.addEventListener?b.addEventListener("DOMContentLoaded",function f(){b.removeEventListener("DOMContentLoaded",f,!1);a()}):b.attachEvent&&b.attachEvent("onreadystatechange",function g(){"complete"===b.readyState&&(b.detachEvent("onreadystatechange",g),a())});G(c,"load",a,!1)})();return d}();h.addGlobalContexts=function(a,b){k(b,function(b){b.core.addGlobalContexts(a)})};
h.clearGlobalContexts=function(a){k(a,function(a){a.core.clearGlobalContexts()})};h.clearUserData=function(a){k(a,function(a){a.clearUserData()})};h.crossDomainLinker=function(a,b){k(b,function(b){b.crossDomainLinker(a)})};h.disableAnonymousTracking=function(a,b){k(b,function(b){b.disableAnonymousTracking(a)})};h.discardBrace=function(a,b){k(b,function(b){b.discardBrace(a)})};h.discardHashTag=function(a,b){k(b,function(b){b.discardHashTag(a)})};h.enableActivityTracking=function(a,b){k(b,function(b){b.enableActivityTracking(a)})};
h.enableActivityTrackingCallback=function(a,b){k(b,function(b){b.enableActivityTrackingCallback(a)})};h.enableAnonymousTracking=function(a,b){k(b,function(b){b.enableAnonymousTracking(a)})};h.flushBuffer=function(a){k(a,function(a){a.flushBuffer()})};h.newSession=function(a){k(a,function(a){a.newSession()})};h.newTracker=function(a,b,c){void 0===c&&(c={});K.hasOwnProperty(a)?a=null:(K[a]=cc(a,a,"js-3.0.0-alpha.2",b,fc,c),a=K[a]);return a};h.preservePageViewId=function(a){k(a,function(a){a.preservePageViewId()})};
h.removeGlobalContexts=function(a,b){k(b,function(b){b.core.removeGlobalContexts(a)})};h.setCollectorUrl=function(a,b){k(b,function(b){b.setCollectorUrl(a)})};h.setCookiePath=function(a,b){k(b,function(b){b.setCookiePath(a)})};h.setCustomUrl=function(a,b){k(b,function(b){b.setCustomUrl(a)})};h.setDocumentTitle=function(a,b){k(b,function(b){b.setDocumentTitle(a)})};h.setOptOutCookie=function(a,b){k(b,function(b){b.setOptOutCookie(a)})};h.setReferrerUrl=function(a,b){k(b,function(b){b.setReferrerUrl(a)})};
h.setUserId=function(a,b){k(b,function(b){b.setUserId(a)})};h.setUserIdFromCookie=function(a,b){k(b,function(b){b.setUserIdFromCookie(a)})};h.setUserIdFromLocation=function(a,b){k(b,function(b){b.setUserIdFromLocation(a)})};h.setUserIdFromReferrer=function(a,b){k(b,function(b){b.setUserIdFromReferrer(a)})};h.setVisitorCookieTimeout=function(a,b){k(b,function(b){b.setVisitorCookieTimeout(a)})};h.trackPageView=function(a,b){k(b,function(b){b.trackPageView(a)})};h.trackSelfDescribingEvent=function(a,
b){k(b,function(b){b.core.track(Ub({event:a.event}),a.context,a.timestamp)})};h.trackStructEvent=function(a,b){k(b,function(b){b.core.track(Xb(a),a.context,a.timestamp)})};h.updatePageActivity=function(a){k(a,function(a){a.updatePageActivity()})};h.version="js-3.0.0-alpha.2";Object.defineProperty(h,"__esModule",{value:!0})})
'use strict';(function(h,V){"object"===typeof exports&&"undefined"!==typeof module?V(exports):"function"===typeof define&&define.amd?define(["exports"],V):(h="undefined"!==typeof globalThis?globalThis:h||self,V(h.snowplowBrowserTracking={}))})(this,function(h){function V(a,b){var c={},e;for(e in a)Object.prototype.hasOwnProperty.call(a,e)&&0>b.indexOf(e)&&(c[e]=a[e]);if(null!=a&&"function"===typeof Object.getOwnPropertySymbols){var f=0;for(e=Object.getOwnPropertySymbols(a);f<e.length;f++)0>b.indexOf(e[f])&&
Object.prototype.propertyIsEnumerable.call(a,e[f])&&(c[e[f]]=a[e[f]])}return c}function W(a){var b={exports:{}};return a(b,b.exports),b.exports}function $a(a){if(!a)return a;switch(4-a.length%4){case 2:a+="==";break;case 3:a+="="}a=a.replace(/-/g,"+").replace(/_/g,"/");return Hb(a)}function Hb(a){var b=0,c=0;var e="";var f=[];if(!a)return a;a+="";do{var d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a.charAt(b++));var g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a.charAt(b++));
e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a.charAt(b++));var l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a.charAt(b++));var m=d<<18|g<<12|e<<6|l;d=m>>16&255;g=m>>8&255;m&=255;64===e?f[c++]=String.fromCharCode(d):64===l?f[c++]=String.fromCharCode(d,g):f[c++]=String.fromCharCode(d,g,m)}while(b<a.length);e=f.join("");return function(a){return decodeURIComponent(a.split("").map(function(a){return"%"+("00"+a.charCodeAt(0).toString(16)).slice(-2)}).join(""))}(e.replace(/\0+$/,
""))}function X(a){if(!va(a))return!1;for(var b in a)if(Object.prototype.hasOwnProperty.call(a,b))return!0;return!1}function va(a){return"undefined"!==typeof a&&null!==a&&(a.constructor==={}.constructor||a.constructor===[].constructor)}function Y(){var a={},b=[],c=!0,e=function(b,c){null!=c&&""!==c&&(a[b]=c)};return{setBase64Encoding:function(a){c=a},add:e,addDict:function(a){for(var b in a)Object.prototype.hasOwnProperty.call(a,b)&&e(b,a[b])},addJson:function(a,c,e){e&&X(e)&&b.push([a,c,e])},build:function(){for(var f=
0;f<b.length;f++){var d=b[f],g=JSON.stringify(d[2]);if(c){d=d[0];if(g){var l=0,m=0,z=[];if(g){g=unescape(encodeURIComponent(g));do{var r=g.charCodeAt(l++);var A=g.charCodeAt(l++);var B=g.charCodeAt(l++);var h=r<<16|A<<8|B;r=h>>18&63;A=h>>12&63;B=h>>6&63;h&=63;z[m++]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(r)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(A)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(B)+
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(h)}while(l<g.length);l=z.join("");g=g.length%3;g=(g?l.slice(0,g-3):l)+"===".slice(g||3)}g=g.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}e(d,g)}else e(d[1],g)}b.length=0;return a}}}function Ib(){var a=[],b=[];return{getGlobalPrimitives:function(){return a},getConditionalProviders:function(){return b},addGlobalContexts:function(c){for(var e=[],f=[],d=0;d<c.length;d++){var g=c[d];Ja(g)?e.push(g):C(g)&&f.push(g)}a=a.concat(f);
b=b.concat(e)},clearGlobalContexts:function(){b=[];a=[]},removeGlobalContexts:function(c){for(var e=function(c){Ja(c)?b=b.filter(function(a){return JSON.stringify(a)===JSON.stringify(c)}):C(c)&&(a=a.filter(function(a){return JSON.stringify(a)===JSON.stringify(c)}))},f=0;f<c.length;f++)e(c[f])},getApplicableContexts:function(c){c=c.build();var e=X(c)&&"e"in c?"string"===typeof c.e:!1;if(e){c=K({},c);try{Object.prototype.hasOwnProperty.call(c,"ue_px")&&(c.ue_px=JSON.parse($a(c.ue_px)));var f=c}catch(ec){f=
c}var d,g,l,m,z,r,h,B;c="string"===typeof(null===(g=null===(d=f.ue_px)||void 0===d?void 0:d.data)||void 0===g?void 0:g.schema)?null===(m=null===(l=f.ue_px)||void 0===l?void 0:l.data)||void 0===m?void 0:m.schema:"string"===typeof(null===(r=null===(z=f.ue_pr)||void 0===z?void 0:z.data)||void 0===r?void 0:r.schema)?null===(B=null===(h=f.ue_pr)||void 0===h?void 0:h.data)||void 0===B?void 0:B.schema:"string"===typeof(null===f||void 0===f?void 0:f.schema)?null===f||void 0===f?void 0:f.schema:"";var k;d=
null!==(k=null===f||void 0===f?void 0:f.e)&&void 0!==k?k:"";k=[];g=Z(a,f,d,c);k.push.apply(k,g);d=Jb(b,f,d,c);k.push.apply(k,d);return k}return[]}}}function Kb(a){return{addPluginContexts:function(b){var c=null!==b&&void 0!==b?b:[];a.forEach(function(a){try{a.contexts&&c.push.apply(c,a.contexts())}catch(f){console.warn("Snowplow: error with plugin context",f)}});return c}}}function Lb(a){if("*"===a[0]||"*"===a[1])return!1;if(0<a.slice(2).length){var b=!1,c=0;for(a=a.slice(2);c<a.length;c++)if("*"===
a[c])b=!0;else if(b)return!1;return!0}return 2==a.length?!0:!1}function Ka(a){return(a=a.split("."))&&1<a.length?Lb(a):!1}function wa(a){a=/^iglu:((?:(?:[a-zA-Z0-9-_]+|\*).)+(?:[a-zA-Z0-9-_]+|\*))\/([a-zA-Z0-9-_.]+|\*)\/jsonschema\/([1-9][0-9]*|\*)-(0|[1-9][0-9]*|\*)-(0|[1-9][0-9]*|\*)$/.exec(a);if(null!==a&&Ka(a[1]))return a.slice(1,6)}function aa(a){if(a=wa(a)){var b=a[0];return 5===a.length&&Ka(b)}return!1}function Mb(a){return Array.isArray(a)&&a.every(function(a){return"string"===typeof a})}
function La(a){return Mb(a)?a.every(function(a){return aa(a)}):"string"===typeof a?aa(a):!1}function ba(a){return X(a)&&"schema"in a&&"data"in a?"string"===typeof a.schema&&"object"===typeof a.data:!1}function Nb(a){var b=0;if(null!=a&&"object"===typeof a&&!Array.isArray(a)){if(Object.prototype.hasOwnProperty.call(a,"accept"))if(La(a.accept))b+=1;else return!1;if(Object.prototype.hasOwnProperty.call(a,"reject"))if(La(a.reject))b+=1;else return!1;return 0<b&&2>=b}return!1}function pa(a){return"function"===
typeof a&&1>=a.length}function C(a){return pa(a)||ba(a)}function xa(a){return Array.isArray(a)&&2===a.length?Array.isArray(a[1])?pa(a[0])&&a[1].every(C):pa(a[0])&&C(a[1]):!1}function Ma(a){return Array.isArray(a)&&2===a.length?Nb(a[0])?Array.isArray(a[1])?a[1].every(C):C(a[1]):!1:!1}function Ja(a){return xa(a)||Ma(a)}function Ob(a,b){var c=0,e=0,f=a.accept;Array.isArray(f)?a.accept.some(function(a){return Q(a,b)})&&e++:"string"===typeof f&&Q(f,b)&&e++;f=a.reject;Array.isArray(f)?a.reject.some(function(a){return Q(a,
b)})&&c++:"string"===typeof f&&Q(f,b)&&c++;return 0<e&&0===c?!0:!1}function Q(a,b){if(!aa(a))return!1;a=wa(a);b=/^iglu:([a-zA-Z0-9-_.]+)\/([a-zA-Z0-9-_]+)\/jsonschema\/([1-9][0-9]*)-(0|[1-9][0-9]*)-(0|[1-9][0-9]*)$/.exec(b);b=null!==b?b.slice(1,6):void 0;if(a&&b){if(!Pb(a[0],b[0]))return!1;for(var c=1;5>c;c++)if(!Na(a[c],b[c]))return!1;return!0}return!1}function Pb(a,b){b=b.split(".");a=a.split(".");if(b&&a){if(b.length!==a.length)return!1;for(var c=0;c<a.length;c++)if(!Na(b[c],a[c]))return!1;return!0}return!1}
function Na(a,b){return a&&b&&"*"===a||a===b}function Oa(a){return Array.isArray(a)?a:[a]}function Z(a,b,c,e){var f;a=Oa(a).map(function(a){a:if(ba(a))a=[a];else{if(pa(a)){b:{var f=void 0;try{f=a({event:b,eventType:c,eventSchema:e});if(Array.isArray(f)&&f.every(ba)||ba(f)){var d=f;break b}d=void 0;break b}catch(m){}d=void 0}if(ba(d)){a=[d];break a}else if(Array.isArray(d)){a=d;break a}}a=void 0}if(a&&0!==a.length)return a});return(f=[]).concat.apply(f,a.filter(function(a){return null!=a&&a.filter(Boolean)}))}
function Jb(a,b,c,e){var f;a=Oa(a).map(function(a){a:{if(xa(a)){var f=a[0],d=!1;try{d=f({event:b,eventType:c,eventSchema:e})}catch(m){d=!1}if(!0===d){a=Z(a[1],b,c,e);break a}}else if(Ma(a)&&Ob(a[0],e)){a=Z(a[1],b,c,e);break a}a=[]}if(a&&0!==a.length)return a});return(f=[]).concat.apply(f,a.filter(function(a){return null!=a&&a.filter(Boolean)}))}function Qb(a){return null==a?{type:"dtm",value:(new Date).getTime()}:"number"===typeof a?{type:"dtm",value:a}:"ttm"===a.type?{type:"ttm",value:a.value}:{type:"dtm",
value:a.value||(new Date).getTime()}}function Rb(a,b,c){function e(a,b){a=g.getApplicableContexts(a);var c=[];b&&b.length&&c.push.apply(c,b);a&&a.length&&c.push.apply(c,a);return c}var f=null!==b&&void 0!==b?b:[],d=Kb(f),g=Ib(),l=null!==a&&void 0!==a?a:!0,m={};return{track:function(a,b,g){a.setBase64Encoding(l);a.add("eid",D.v4());a.addDict(m);g=Qb(g);a.add(g.type,g.value.toString());b=e(a,d.addPluginContexts(b));b=b&&b.length?{schema:"iglu:com.snowplowanalytics.snowplow/contexts/jsonschema/1-0-0",
data:b}:void 0;void 0!==b&&a.addJson("cx","co",b);f.forEach(function(b){try{b.beforeTrack&&b.beforeTrack(a)}catch(ab){console.warn("Snowplow: error with plugin beforeTrack",ab)}});"function"===typeof c&&c(a);f.forEach(function(b){try{b.afterTrack&&b.afterTrack(a.build())}catch(ab){console.warn("Snowplow: error with plugin ",ab)}});return a},addPayloadPair:function(a,b){m[a]=b},getBase64Encoding:function(){return l},setBase64Encoding:function(a){l=a},addPayloadDict:function(a){for(var b in a)Object.prototype.hasOwnProperty.call(a,
b)&&(m[b]=a[b])},resetPayloadPairs:function(a){m=va(a)?a:{}},setTrackerVersion:function(a){m.tv=a},setTrackerNamespace:function(a){m.tna=a},setAppId:function(a){m.aid=a},setPlatform:function(a){m.p=a},setUserId:function(a){m.uid=a},setScreenResolution:function(a,b){m.res=a+"x"+b},setViewport:function(a,b){m.vp=a+"x"+b},setColorDepth:function(a){m.cd=a},setTimezone:function(a){m.tz=a},setLang:function(a){m.lang=a},setIpAddress:function(a){m.ip=a},setUseragent:function(a){m.ua=a},addGlobalContexts:function(a){g.addGlobalContexts(a)},
clearGlobalContexts:function(){g.clearGlobalContexts()},removeGlobalContexts:function(a){g.removeGlobalContexts(a)}}}function Sb(a){var b=a.event;a=b.schema;var c=b.data;b=Y();a={schema:"iglu:com.snowplowanalytics.snowplow/unstruct_event/jsonschema/1-0-0",data:{schema:a,data:c}};b.add("e","ue");b.addJson("ue_px","ue_pr",a);return b}function Tb(a){var b=a.pageUrl,c=a.pageTitle;a=a.referrer;var e=Y();e.add("e","pv");e.add("url",b);e.add("page",c);e.add("refr",a);return e}function Ub(a){var b=a.pageUrl,
c=a.pageTitle,e=a.referrer,f=a.minXOffset,d=a.maxXOffset,g=a.minYOffset;a=a.maxYOffset;var l=Y();l.add("e","pp");l.add("url",b);l.add("page",c);l.add("refr",e);f&&!isNaN(Number(f))&&l.add("pp_mix",f.toString());d&&!isNaN(Number(d))&&l.add("pp_max",d.toString());g&&!isNaN(Number(g))&&l.add("pp_miy",g.toString());a&&!isNaN(Number(a))&&l.add("pp_may",a.toString());return l}function Vb(a){var b=a.category,c=a.action,e=a.label,f=a.property;a=a.value;var d=Y();d.add("e","se");d.add("se_ca",b);d.add("se_ac",
c);d.add("se_la",e);d.add("se_pr",f);d.add("se_va",null==a?void 0:a.toString());return d}function wb(a){return Number.isInteger&&Number.isInteger(a)||"number"===typeof a&&isFinite(a)&&Math.floor(a)===a}function xb(a){if(!a||"string"!==typeof a.valueOf()){a=a.text||"";var b=ca.getElementsByTagName("title");b&&null!=b[0]&&(a=b[0].text)}return a}function bb(a){var b=/^(?:(?:https?|ftp):)\/*(?:[^@]+@)?([^:/#]+)/.exec(a);return b?b[1]:a}function yb(a){var b=a.length;"."===a.charAt(--b)&&(a=a.slice(0,b));
"*."===a.slice(0,2)&&(a=a.slice(1));return a}function cb(a){var b="",c=ya("referrer",u.location.href)||ya("referer",u.location.href);if(c)return c;if(a)return a;try{b=u.top.document.referrer}catch(e){if(u.parent)try{b=u.parent.document.referrer}catch(f){b=""}}""===b&&(b=ca.referrer);return b}function H(a,b,c,e){if(a.addEventListener)return a.addEventListener(b,c,e),!0;if(a.attachEvent)return a.attachEvent("on"+b,c);a["on"+b]=c}function ya(a,b){return(a=(new RegExp("^[^#]*[?&]"+a+"=([^&#]*)")).exec(b))?
decodeURIComponent(a[1].replace(/\+/g," ")):null}function db(a){"undefined"!==typeof console&&console.warn("Snowplow: "+a)}function Pa(a,b,c){void 0===c&&(c=63072E3);try{var e=Date.now()+1E3*c;v.setItem(a+".expires",e.toString());v.setItem(a,b);return!0}catch(f){return!1}}function zb(a){try{return v.removeItem(a),v.removeItem(a+".expires"),!0}catch(b){return!1}}function Wb(a,b){for(var c="_sp_root_domain_test_"+(new Date).getTime(),e="_test_value_"+(new Date).getTime(),f=u.location.hostname.split("."),
d=f.length-1;0<=d;){var g=f.slice(d,f.length).join(".");w(c,e,0,"/",g,a,b);if(w(c)===e){w(c,"",-1,"/",g,a,b);c=ca.cookie.split("; ");e=[];for(f=0;f<c.length;f++)"_sp_root_domain_test_"===c[f].substring(0,21)&&e.push(c[f]);c=e;for(e=0;e<c.length;e++)w(c[e],"",-1,"/",g,a,b);return g}--d}return u.location.hostname}function w(a,b,c,e,f,d,g){return 1<arguments.length?ca.cookie=a+"="+encodeURIComponent(null!==b&&void 0!==b?b:"")+(c?"; Expires="+(new Date(+new Date+1E3*c)).toUTCString():"")+(e?"; Path="+
e:"")+(f?"; Domain="+f:"")+(d?"; SameSite="+d:"")+(g?"; Secure":""):decodeURIComponent((("; "+ca.cookie).split("; "+a+"=")[1]||"").split(";")[0])}function Xb(){try{var a=!!L.localStorage}catch(b){a=!0}if(!a)return!1;try{return L.localStorage.setItem("modernizr","modernizr"),L.localStorage.removeItem("modernizr"),!0}catch(b){return!1}}function Yb(){if("innerWidth"in L){var a=L.innerWidth;var b=L.innerHeight}else b=R.documentElement||R.body,a=b.clientWidth,b=b.clientHeight;return 0<=a&&0<=b?a+"x"+b:
null}function Zb(){var a=R.documentElement,b=R.body,c=Math.max(a.clientWidth,a.offsetWidth,a.scrollWidth);a=Math.max(a.clientHeight,a.offsetHeight,a.scrollHeight,b?Math.max(b.offsetHeight,b.scrollHeight):0);return isNaN(c)||isNaN(a)?"":c+"x"+a}function $b(a,b,c,e,f,d,g,l,m,h,k){function A(a){var b="?",c={co:!0,cx:!0},e=!0,f;for(f in a)a.hasOwnProperty(f)&&!c.hasOwnProperty(f)&&(e?e=!1:b+="&",b+=encodeURIComponent(f)+"="+encodeURIComponent(a[f]));for(var d in c)a.hasOwnProperty(d)&&c.hasOwnProperty(d)&&
(b+="&"+d+"="+encodeURIComponent(a[d]));return b}function B(a){var b=Object.keys(a).map(function(b){return[b,a[b]]}).reduce(function(a,b){a[b[0]]=b[1].toString();return a},{});return{evt:b,bytes:z(JSON.stringify(b))}}function z(a){for(var b=0,c=0;c<a.length;c++){var f=a.charCodeAt(c);127>=f?b+=1:2047>=f?b+=2:55296<=f&&57343>=f?(b+=4,c++):b=65535>f?b+3:b+4}return b}function r(a){for(void 0===a&&(a=!1);p.length&&"string"!==typeof p[0]&&"object"!==typeof p[0];)p.shift();if(1>p.length)I=!1;else{if(!S||
"string"!==typeof S.valueOf())throw"No collector configured";I=!0;if(u){var b=function(a){for(var b=0,c=0;b<a.length&&!(c+=a[b].bytes,c>=g);)b+=1;return b},f=void 0;if(da(p)){f=S;var e=n(f,!0,a);var d=b(p)}else f=x(p[0]),e=n(f,!1,a),d=1;var B=setTimeout(function(){e.abort();I=!1},h),l=function(a){for(var b=0;b<a;b++)p.shift();c&&Pa(ea,JSON.stringify(p.slice(0,m)));r()};e.onreadystatechange=function(){4===e.readyState&&200<=e.status&&400>e.status?(clearTimeout(B),l(d)):4===e.readyState&&400<=e.status&&
(clearTimeout(B),I=!1)};if(da(p)){if(b=p.slice(0,d),0<b.length){a=!1;b=b.map(function(a){return a.evt});if(K){var Ab=new Blob([eb(w(b))],{type:"application/json"});try{a=navigator.sendBeacon(f,Ab)}catch(Qa){a=!1}}!0===a?l(d):e.send(eb(w(b)))}}else e.send()}else if(k||da(p))I=!1;else{f=new Image(1,1);var A=!0;f.onload=function(){A&&(A=!1,p.shift(),c&&Pa(ea,JSON.stringify(p.slice(0,m))),r())};f.onerror=function(){A&&(I=A=!1)};f.src=x(p[0]);setTimeout(function(){A&&I&&(A=!1,r())},h)}}}function n(a,b,
c){var f=new XMLHttpRequest;b?(f.open("POST",a,!c),f.setRequestHeader("Content-Type","application/json; charset=UTF-8")):f.open("GET",a,!c);f.withCredentials=!0;k&&f.setRequestHeader("SP-Anonymous","*");return f}function eb(a){return JSON.stringify({schema:"iglu:com.snowplowanalytics.snowplow/payload_data/jsonschema/1-0-4",data:a})}function w(a){for(var b=(new Date).getTime().toString(),c=0;c<a.length;c++)a[c].stm=b;return a}function x(a){return l?S+a.replace("?","?stm="+(new Date).getTime()+"&"):
S+a}function D(a){function b(a,b,c){return(c=c.match("(Macintosh;.*Mac OS X (d+)_(d+)[_d]*.*) AppleWebKit/"))&&c.length?parseInt(c[0])<=a||parseInt(c[0])===a&&parseInt(c[1])<=b:!1}function c(a){return a.match("Version/.* Safari/")&&!a.match("Chrom(e|ium)")}return function(a,b){return(b=b.match("(iP.+; CPU .*OS (d+)[_d]*.*) AppleWebKit/"))&&b.length?parseInt(b[0])<=a:!1}(13,a)||b(10,15,a)&&c(a)}var I=!1,S,p=[];e="string"===typeof e?e.toLowerCase():e;var H=window.localStorage,v=window.navigator,q=null===
e||!0===e||"beacon"===e||"true"===e,K=!(!(q&&v&&v.sendBeacon)||D(v.userAgent))&&q,u=!!(window.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest),fa="get"!==e&&u&&("post"===e||q),T=fa?f:"/i",ea="snowplowOutQueue_"+a+"_"+(fa?"post2":"get");d=Xb()&&c&&fa&&d||1;if(c)try{var C=H.getItem(ea);p=C?JSON.parse(C):[]}catch(Ab){}Array.isArray(p)||(p=[]);b.outQueues.push(p);u&&1<d&&b.bufferFlushers.push(function(a){I||r(a)});var da=function(a){return"object"===typeof a[0]};return{enqueueRequest:function(a,
b){S=b+T;if(fa){a=B(a);if(a.bytes>=g){db("Event ("+a.bytes+"B) too big, max is "+g);n(S,!0,!1).send(eb(w([a.evt])));return}p.push(a)}else p.push(A(a));a=!1;c&&(a=Pa(ea,JSON.stringify(p.slice(0,m))));I||a&&!(p.length>=d)||r()},executeQueue:function(){I||r()},setUseLocalStorage:function(a){c=a},setAnonymousTracking:function(a){k=a},setCollectorUrl:function(a){S=a+T},setBufferSize:function(a){d=a}}}function Bb(a,b,c){if("translate.googleusercontent.com"===a)""===c&&(c=b),a=(a=/^(?:https?|ftp)(?::\/*(?:[^?]+))([?][^#]+)/.exec(b))&&
1<(null===a||void 0===a?void 0:a.length)?ya("u",a[1]):null,b=null!==a&&void 0!==a?a:"",a=bb(b);else if("cc.bingj.com"===a||"webcache.googleusercontent.com"===a)b=document.links[0].href,a=bb(b);return[a,b,c]}function ac(a,b,c,e,f,d){a=function(a,b,c,f,e,d){function g(){ha=Bb(F.location.hostname,F.location.href,cb());ha[1]!==U&&(za=cb(U));wa=yb(ha[0]);U=ha[1]}function l(a){var b=(new Date).getTime();a=a.target;if(null===a||void 0===a?0:a.href){b="_sp="+(Aa+"."+b);var c=a.href.split("#"),d=c[0].split("?"),
f=d.shift();if(d=d.join("?")){for(var e=!0,qa=d.split("&"),g=0;g<qa.length;g++)if("_sp="===qa[g].substr(0,4)){e=!1;qa[g]=b;d=qa.join("&");break}e&&(d=b+"&"+d)}else d=b;c[0]=f+"?"+d;b=c.join("#");a.href=b}}function h(a){for(var b=0;b<y.links.length;b++){var c=y.links[b];!c.spDecorationEnabled&&a(c)&&(H(c,"click",l,!0),H(c,"mousedown",l,!0),c.spDecorationEnabled=!0)}}function m(a){if(Ga){var b=/#.*/;a=a.replace(b,"")}Ha&&(b=/[{}]/g,a=a.replace(b,""));return a}function k(a){return(a=/^([a-z]+):/.exec(a))?
a[1]:null}function r(a){a=ra+a+"."+ia;if("localStorage"==t){try{var b=v.getItem(a+".expires");if(null===b||+b>Date.now())var c=v.getItem(a);else v.removeItem(a),v.removeItem(a+".expires"),c=void 0}catch(fc){c=void 0}return c}if("cookie"==t||"cookieAndLocalStorage"==t)return w(a)}function A(){g();ia=$a((Ba||wa)+(fb||"/")).slice(0,4)}function z(){Ra=(new Date).getTime()}function n(){var a=p(),b=a[0];b<Sa?Sa=b:b>Ta&&(Ta=b);a=a[1];a<Ua?Ua=a:a>Va&&(Va=a);z()}function p(){var a=y.compatMode&&"BackCompat"!==
y.compatMode?y.documentElement:y.body;return[a.scrollLeft||F.pageXOffset,a.scrollTop||F.pageYOffset]}function B(){var a=p(),b=a[0];Ta=Sa=b;Va=Ua=a=a[1]}function q(){C(ra+"ses."+ia,"*",Cb)}function u(a,b,c,d,f,e){C(ra+"id."+ia,a+"."+b+"."+c+"."+d+"."+f+"."+e,Db)}function C(a,b,c){if(!M||ja)"localStorage"==t?Pa(a,b,c):("cookie"==t||"cookieAndLocalStorage"==t)&&w(a,b,c,fb,Ba,Wa,Xa)}function L(){var a=ra+"id."+ia,b=ra+"ses."+ia;zb(a);zb(b);w(a,"",-1,"/",Ba,Wa,Xa);w(b,"",-1,"/",Ba,Wa,Xa)}function fa(){if(!M||
ja){var a="none"!=t&&!!r("ses"),b=T();b[1]?Aa=b[1]:(Aa=M?"":D.v4(),b[1]=Aa);E=b[6];a||(b[3]++,E=D.v4(),b[6]=E,b[5]=b[4]);"none"!=t&&(q(),b[4]=Math.round((new Date).getTime()/1E3),b.shift(),u.apply(null,b))}}function T(){if("none"==t)return[];var a=Math.round((new Date).getTime()/1E3),b=r("id");b?(a=b.split("."),a.unshift("0")):a=["1",Aa,a,0,a,""];a[6]||(a[6]=D.v4());return a}function ea(a){return xa?"https://"+a:Ma?"http://"+a:("https:"===y.location.protocol?"https":"http")+"://"+a}function P(){Eb&&
null!=e.pageViewId||(e.pageViewId=D.v4())}function da(){null==e.pageViewId&&(e.pageViewId=D.v4());return e.pageViewId}function V(){return{contexts:function(){return[{schema:"iglu:com.snowplowanalytics.snowplow/web_page/jsonschema/1-0-0",data:{id:da()}}]}}}function ba(a){var b=a.title,c=a.context,d=a.timestamp;a=a.contextCallback;g();Fb&&P();Fb=!0;sa=y.title;Ca=b;b=xb(Ca||sa);G.track(Tb({pageUrl:m(ta||U),pageTitle:b,referrer:m(Ya||za)}),(c||[]).concat(a?a():[]),d);d=new Date;b=!1;if(J.enabled&&!J.installed){b=
J.installed=!0;var f={update:function(){if("undefined"!==typeof window&&"function"===typeof window.addEventListener){var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}}),c=function(){};window.addEventListener("testPassiveEventSupport",c,b);window.removeEventListener("testPassiveEventSupport",c,b);f.hasSupport=a}}};f.update();var e="onwheel"in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll";Object.prototype.hasOwnProperty.call(f,"hasSupport")?
H(y,e,z,{passive:!0}):H(y,e,z);B();e=function(a,b){void 0===b&&(b=z);return function(a){return H(y,a,b)}};"click mouseup mousedown mousemove keypress keydown keyup".split(" ").forEach(e(y));["resize","focus","blur"].forEach(e(F));e(F,n)("scroll")}if(J.enabled&&(Za||b))for(d in Ra=d.getTime(),d=void 0,J.configurations)if(b=J.configurations[d])window.clearInterval(b.activityInterval),ca(b,c,a)}function ca(a,b,c){var d=function(a,b){g();a({context:b,pageViewId:da(),minXOffset:Sa,minYOffset:Ua,maxXOffset:Ta,
maxYOffset:Va});B()},f=function(){Ra+a.configHeartBeatTimer>(new Date).getTime()&&d(a.callback,(b||[]).concat(c?c():[]))};a.activityInterval=0!=a.configMinimumVisitLength?F.setTimeout(function(){Ra+a.configMinimumVisitLength>(new Date).getTime()&&d(a.callback,(b||[]).concat(c?c():[]));a.activityInterval=F.setInterval(f,a.configHeartBeatTimer)},a.configMinimumVisitLength):F.setInterval(f,a.configHeartBeatTimer)}function Y(a){var b=a.minimumVisitLength,c=a.heartbeatDelay;a=a.callback;if(wb(b)&&wb(c))return{configMinimumVisitLength:1E3*
b,configHeartBeatTimer:1E3*c,callback:a};db("Activity tracking not enabled, please provide integer values for minimumVisitLength and heartbeatDelay.")}function pa(a){var b=a.context,c=a.minXOffset,d=a.minYOffset,f=a.maxXOffset;a=a.maxYOffset;var e=y.title;e!==sa&&(sa=e,Ca=void 0);G.track(Ub({pageUrl:m(ta||U),pageTitle:xb(Ca||sa),referrer:m(Ya||za),minXOffset:Math.round(c),maxXOffset:Math.round(f),minYOffset:Math.round(d),maxYOffset:Math.round(a)}),b)}var Q,R,W,X,Qa,Z,aa,ka,la,ma,na,oa,gb,hb,ib,jb,
kb,lb,mb,nb,ob,pb;void 0===d&&(d={});d.eventMethod=null!==(Q=d.eventMethod)&&void 0!==Q?Q:"post";var va=function(a){var b;return null!==(b=a.stateStorageStrategy)&&void 0!==b?b:"cookieAndLocalStorage"},qb=function(a){var b,c;return"boolean"===typeof a.anonymousTracking?!1:null!==(c=!0===(null===(b=a.anonymousTracking)||void 0===b?void 0:b.withSessionTracking))&&void 0!==c?c:!1},rb=function(a){var b,c;return"boolean"===typeof a.anonymousTracking?!1:null!==(c=!0===(null===(b=a.anonymousTracking)||void 0===
b?void 0:b.withServerAnonymisation))&&void 0!==c?c:!1},sb=null!==(R=d.plugins)&&void 0!==R?R:[];(null!==(X=null===(W=null===d||void 0===d?void 0:d.contexts)||void 0===W?void 0:W.webPage)&&void 0!==X?X:1)&&sb.push(V());var G=Rb(null!==(Qa=d.encodeBase64)&&void 0!==Qa?Qa:!0,sb,function(a){var b=Math.round((new Date).getTime()/1E3),c=r("ses"),d=T(),f=d[0],e=d[1],qa=d[2],l=d[3],h=d[4],k=d[5];d=d[6];var z=Da?!!w(Da):!1;Gb||z?L():("0"===f?(E=d,c||"none"==t||(l++,k=h,E=D.v4()),N=l):(new Date).getTime()-
tb>1E3*Cb&&(E=D.v4(),N++),a.add("vp",Yb()),a.add("ds",Zb()),a.add("vid",ja?N:M?null:N),a.add("sid",ja?E:M?null:E),a.add("duid",M?null:e),a.add("uid",M?null:ua),g(),a.add("refr",m(Ya||za)),a.add("url",m(ta||U)),"none"!=t&&(u(e,qa,N,b,k,E),q()),tb=(new Date).getTime());b=Da?!!w(Da):!1;Gb||b||O.enqueueRequest(a.build(),ub)}),y=document,F=window,Ea=navigator,vb=screen,Ja=Ea.userLanguage||Ea.language,Ka=y.characterSet||y.charset,ha=Bb(F.location.hostname,F.location.href,cb()),wa=yb(ha[0]),U=ha[1],za=ha[2],
Ya,La=null!==(Z=d.platform)&&void 0!==Z?Z:"web",xa=null!==(aa=d.forceSecureTracker)&&void 0!==aa?aa:!1,Ma=!xa&&(null!==(ka=d.forceUnsecureTracker)&&void 0!==ka?ka:!1),ub=ea(f),Na=null!==(la=d.postPath)&&void 0!==la?la:"/com.snowplowanalytics.snowplow/tp2",Oa=null!==(ma=d.appId)&&void 0!==ma?ma:"",ta,sa=y.title,Ca,Za=null!==(na=d.resetActivityTrackingOnPageView)&&void 0!==na?na:!0,Ga,Ha,ra=null!==(oa=d.cookieName)&&void 0!==oa?oa:"_sp_",Ba=null!==(gb=d.cookieDomain)&&void 0!==gb?gb:void 0,fb="/",Wa=
null!==(hb=d.cookieSameSite)&&void 0!==hb?hb:"None",Xa=null!==(ib=d.cookieSecure)&&void 0!==ib?ib:!0,Ia=Ea.doNotTrack||Ea.msDoNotTrack||F.doNotTrack,Gb="undefined"!==typeof d.respectDoNotTrack?d.respectDoNotTrack&&("yes"===Ia||"1"===Ia):!1,Da,Db=null!==(jb=d.cookieLifetime)&&void 0!==jb?jb:63072E3,Cb=null!==(kb=d.sessionCookieTimeout)&&void 0!==kb?kb:1800,ja=qb(d),Fa=rb(d),M=!!d.anonymousTracking,t=va(d),Ra,tb=(new Date).getTime(),Sa,Ta,Ua,Va,$a=bc,ia,Aa,E,N=1,ua,O=$b(a,e,"localStorage"==t||"cookieAndLocalStorage"==
t,d.eventMethod,Na,null!==(lb=d.bufferSize)&&void 0!==lb?lb:1,null!==(mb=d.maxPostBytes)&&void 0!==mb?mb:4E4,null!==(nb=d.useStm)&&void 0!==nb?nb:!0,null!==(ob=d.maxLocalStorageQueueSize)&&void 0!==ob?ob:1E3,null!==(pb=d.connectionTimeout)&&void 0!==pb?pb:5E3,Fa),Eb=!1,Fb=!1,J={enabled:!1,installed:!1,configurations:{}};d.hasOwnProperty("discoverRootDomain")&&d.discoverRootDomain&&(Ba=Wb(Wa,Xa));G.setTrackerVersion(c);G.setTrackerNamespace(b);G.setAppId(Oa);G.setPlatform(La);G.addPayloadPair("cookie",
Ea.cookieEnabled?"1":"0");G.addPayloadPair("cs",Ka);G.addPayloadPair("lang",Ja);G.addPayloadPair("res",vb.width+"x"+vb.height);G.addPayloadPair("cd",vb.colorDepth);A();fa();d.crossDomainLinker&&h(d.crossDomainLinker);return K(K({},{getDomainSessionIndex:function(){return N},getPageViewId:function(){return da()},newSession:function(){var a=Math.round((new Date).getTime()/1E3),b=T(),c=b[1],d=b[2],f=b[3],e=b[4],g=b[5],l=b[6];"0"===b[0]?(E=l,"none"!=t&&(f++,g=e,E=D.v4()),N=f,q()):(E=D.v4(),N++);"none"!=
t&&(u(c,d,N,a,g,E),q());tb=(new Date).getTime()},getCookieName:function(a){return ra+a+"."+ia},getUserId:function(){return ua},getDomainUserId:function(){return T()[1]},getDomainUserInfo:function(){return T()},setReferrerUrl:function(a){Ya=a},setCustomUrl:function(a){g();var b=U,c;k(a)?ta=a:"/"===a.slice(0,1)?ta=k(b)+"://"+bb(b)+a:(b=m(b),0<=(c=b.indexOf("?"))&&(b=b.slice(0,c)),(c=b.lastIndexOf("/"))!==b.length-1&&(b=b.slice(0,c+1)),ta=b+a)},setDocumentTitle:function(a){sa=y.title;Ca=a},discardHashTag:function(a){Ga=
a},discardBrace:function(a){Ha=a},setCookiePath:function(a){fb=a;A()},setVisitorCookieTimeout:function(a){Db=a},crossDomainLinker:function(a){h(a)},enableActivityTracking:function(a){J.enabled=!0;J.configurations.pagePing=Y(K(K({},a),{callback:pa}))},enableActivityTrackingCallback:function(a){J.enabled=!0;J.configurations.callback=Y(a)},updatePageActivity:function(){z()},setOptOutCookie:function(a){Da=a},setUserId:function(a){ua=a},setUserIdFromLocation:function(a){g();ua=ya(a,U)},setUserIdFromReferrer:function(a){g();
ua=ya(a,za)},setUserIdFromCookie:function(a){ua=w(a)},setCollectorUrl:function(a){ub=ea(a);O.setCollectorUrl(ub)},setBufferSize:function(a){O.setBufferSize(a)},flushBuffer:function(a){void 0===a&&(a={});O.executeQueue();a.newBufferSize&&O.setBufferSize(a.newBufferSize)},trackPageView:function(a){void 0===a&&(a={});ba(a)},preservePageViewId:function(){Eb=!0},disableAnonymousTracking:function(a){a&&a.stateStorageStrategy?(d.stateStorageStrategy=a.stateStorageStrategy,d.anonymousTracking=!1,t=va(d)):
d.anonymousTracking=!1;M=!!d.anonymousTracking;ja=qb(d);Fa=rb(d);O.setUseLocalStorage("localStorage"==t||"cookieAndLocalStorage"==t);O.setAnonymousTracking(Fa);fa();O.executeQueue()},enableAnonymousTracking:function(a){d.anonymousTracking=a&&(null===a||void 0===a?void 0:a.options)||!0;M=!!d.anonymousTracking;ja=qb(d);Fa=rb(d);ja||P();O.setAnonymousTracking(Fa)},clearUserData:L}),{id:a,core:G,sharedState:e,plugins:sb})}(a,b,c,e,f,d);b=a.plugins;var g=V(a,["plugins"]);b.forEach(function(a){var b;null===
(b=a.activateBrowserPlugin)||void 0===b?void 0:b.call(a,g)});return g}for(var K=function(){K=Object.assign||function(a){for(var b,c=1,e=arguments.length;c<e;c++){b=arguments[c];for(var f in b)Object.prototype.hasOwnProperty.call(b,f)&&(a[f]=b[f])}return a};return K.apply(this,arguments)},Za=W(function(a){var b="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);
if(b){var c=new Uint8Array(16);a.exports=function(){b(c);return c}}else{var e=Array(16);a.exports=function(){for(var a=0,b;16>a;a++)0===(a&3)&&(b=4294967296*Math.random()),e[a]=b>>>((a&3)<<3)&255;return e}}}),n=[],q=0;256>q;++q)n[q]=(q+256).toString(16).substr(1);var Ga=function(a,b){b=b||0;return[n[a[b++]],n[a[b++]],n[a[b++]],n[a[b++]],"-",n[a[b++]],n[a[b++]],"-",n[a[b++]],n[a[b++]],"-",n[a[b++]],n[a[b++]],"-",n[a[b++]],n[a[b++]],n[a[b++]],n[a[b++]],n[a[b++]],n[a[b++]]].join("")},Ha,ka,la=0,ma=0;
q=function(a,b,c){c=b&&c||0;"string"==typeof a&&(b="binary"===a?Array(16):null,a=null);a=a||{};a=a.random||(a.rng||Za)();a[6]=a[6]&15|64;a[8]=a[8]&63|128;if(b)for(var e=0;16>e;++e)b[c+e]=a[e];return b||Ga(a)};q.v1=function(a,b,c){c=b&&c||0;var e=b||[];a=a||{};var f=a.node||Ha,d=void 0!==a.clockseq?a.clockseq:ka;if(null==f||null==d){var g=Za();null==f&&(f=Ha=[g[0]|1,g[1],g[2],g[3],g[4],g[5]]);null==d&&(d=ka=(g[6]<<8|g[7])&16383)}g=void 0!==a.msecs?a.msecs:(new Date).getTime();var l=void 0!==a.nsecs?
a.nsecs:ma+1,h=g-la+(l-ma)/1E4;0>h&&void 0===a.clockseq&&(d=d+1&16383);(0>h||g>la)&&void 0===a.nsecs&&(l=0);if(1E4<=l)throw Error("uuid.v1(): Can't create more than 10M uuids/sec");la=g;ma=l;ka=d;g+=122192928E5;a=(1E4*(g&268435455)+l)%4294967296;e[c++]=a>>>24&255;e[c++]=a>>>16&255;e[c++]=a>>>8&255;e[c++]=a&255;a=g/4294967296*1E4&268435455;e[c++]=a>>>8&255;e[c++]=a&255;e[c++]=a>>>24&15|16;e[c++]=a>>>16&255;e[c++]=d>>>8|128;e[c++]=d&255;for(d=0;6>d;++d)e[c+d]=f[d];return b?b:Ga(e)};var D=q.v4=q,na=
W(function(a){(function(){var b={rotl:function(a,b){return a<<b|a>>>32-b},rotr:function(a,b){return a<<32-b|a>>>b},endian:function(a){if(a.constructor==Number)return b.rotl(a,8)&16711935|b.rotl(a,24)&4278255360;for(var c=0;c<a.length;c++)a[c]=b.endian(a[c]);return a},randomBytes:function(a){for(var b=[];0<a;a--)b.push(Math.floor(256*Math.random()));return b},bytesToWords:function(a){for(var b=[],c=0,d=0;c<a.length;c++,d+=8)b[d>>>5]|=a[c]<<24-d%32;return b},wordsToBytes:function(a){for(var b=[],c=
0;c<32*a.length;c+=8)b.push(a[c>>>5]>>>24-c%32&255);return b},bytesToHex:function(a){for(var b=[],c=0;c<a.length;c++)b.push((a[c]>>>4).toString(16)),b.push((a[c]&15).toString(16));return b.join("")},hexToBytes:function(a){for(var b=[],c=0;c<a.length;c+=2)b.push(parseInt(a.substr(c,2),16));return b},bytesToBase64:function(a){for(var b=[],c=0;c<a.length;c+=3)for(var d=a[c]<<16|a[c+1]<<8|a[c+2],g=0;4>g;g++)8*c+6*g<=8*a.length?b.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(d>>>
6*(3-g)&63)):b.push("=");return b.join("")},base64ToBytes:function(a){a=a.replace(/[^A-Z0-9+\/]/ig,"");for(var b=[],c=0,d=0;c<a.length;d=++c%4)0!=d&&b.push(("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(a.charAt(c-1))&Math.pow(2,-2*d+8)-1)<<2*d|"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(a.charAt(c))>>>6-2*d);return b}};a.exports=b})()}),oa={utf8:{stringToBytes:function(a){return oa.bin.stringToBytes(unescape(encodeURIComponent(a)))},bytesToString:function(a){return decodeURIComponent(escape(oa.bin.bytesToString(a)))}},
bin:{stringToBytes:function(a){for(var b=[],c=0;c<a.length;c++)b.push(a.charCodeAt(c)&255);return b},bytesToString:function(a){for(var b=[],c=0;c<a.length;c++)b.push(String.fromCharCode(a[c]));return b.join("")}}},Ia=oa,bc=W(function(a){(function(){var b=Ia.utf8,c=Ia.bin,e=function(a){a.constructor==String?a=b.stringToBytes(a):"undefined"!==typeof Buffer&&"function"==typeof Buffer.isBuffer&&Buffer.isBuffer(a)?a=Array.prototype.slice.call(a,0):Array.isArray(a)||(a=a.toString());var c=na.bytesToWords(a),
d=8*a.length;a=[];var f=1732584193,e=-271733879,h=-1732584194,k=271733878,n=-1009589776;c[d>>5]|=128<<24-d%32;c[(d+64>>>9<<4)+15]=d;for(d=0;d<c.length;d+=16){for(var q=f,u=e,w=h,C=k,D=n,x=0;80>x;x++){if(16>x)a[x]=c[d+x];else{var v=a[x-3]^a[x-8]^a[x-14]^a[x-16];a[x]=v<<1|v>>>31}v=(f<<5|f>>>27)+n+(a[x]>>>0)+(20>x?(e&h|~e&k)+1518500249:40>x?(e^h^k)+1859775393:60>x?(e&h|e&k|h&k)-1894007588:(e^h^k)-899497514);n=k;k=h;h=e<<30|e>>>2;e=f;f=v}f+=q;e+=u;h+=w;k+=C;n+=D}return[f,e,h,k,n]},f=function(a,b){a=na.wordsToBytes(e(a));
return b&&b.asBytes?a:b&&b.asString?c.bytesToString(a):na.bytesToHex(a)};f._blocksize=16;f._digestsize=20;a.exports=f})()}),u=window,ca=document,v=window.localStorage,L=window,R=document,P={},cc=function(){return function(){this.outQueues=[];this.bufferFlushers=[];this.hasLoaded=!1;this.registeredOnLoadHandlers=[]}}(),k=function(a,b){void 0===a&&(a=Object.keys(P));for(var c=[],e=0;e<a.length;e++){var f=a[e];P.hasOwnProperty(f)?c.push(P[f]):db(f+" not configured")}c.forEach(b)},dc=function(){function a(){"hidden"==
c.visibilityState&&f.bufferFlushers.forEach(function(a){a(!1)})}function b(){var a;if(!f.hasLoaded)for(f.hasLoaded=!0,a=0;a<f.registeredOnLoadHandlers.length;a++)f.registeredOnLoadHandlers[a]();return!0}var c=document,e=window,f=new cc;document.visibilityState&&H(c,"visibilitychange",a,!1);H(e,"beforeunload",function(){f.bufferFlushers.forEach(function(a){a(!1)})},!1);(function(){c.addEventListener?c.addEventListener("DOMContentLoaded",function g(){c.removeEventListener("DOMContentLoaded",g,!1);b()}):
c.attachEvent&&c.attachEvent("onreadystatechange",function l(){"complete"===c.readyState&&(c.detachEvent("onreadystatechange",l),b())});H(e,"load",b,!1)})();return f}();h.addGlobalContexts=function(a,b){k(b,function(b){b.core.addGlobalContexts(a)})};h.clearGlobalContexts=function(a){k(a,function(a){a.core.clearGlobalContexts()})};h.clearUserData=function(a){k(a,function(a){a.clearUserData()})};h.crossDomainLinker=function(a,b){k(b,function(b){b.crossDomainLinker(a)})};h.disableAnonymousTracking=function(a,
b){k(b,function(b){b.disableAnonymousTracking(a)})};h.discardBrace=function(a,b){k(b,function(b){b.discardBrace(a)})};h.discardHashTag=function(a,b){k(b,function(b){b.discardHashTag(a)})};h.enableActivityTracking=function(a,b){k(b,function(b){b.enableActivityTracking(a)})};h.enableActivityTrackingCallback=function(a,b){k(b,function(b){b.enableActivityTrackingCallback(a)})};h.enableAnonymousTracking=function(a,b){k(b,function(b){b.enableAnonymousTracking(a)})};h.flushBuffer=function(a,b){k(b,function(b){b.flushBuffer(a)})};
h.newSession=function(a){k(a,function(a){a.newSession()})};h.newTracker=function(a,b,c){void 0===c&&(c={});P.hasOwnProperty(a)?a=null:(P[a]=ac(a,a,"js-3.0.0-alpha.3",b,dc,c),a=P[a]);return a};h.preservePageViewId=function(a){k(a,function(a){a.preservePageViewId()})};h.removeGlobalContexts=function(a,b){k(b,function(b){b.core.removeGlobalContexts(a)})};h.setBufferSize=function(a,b){k(b,function(b){b.setBufferSize(a)})};h.setCollectorUrl=function(a,b){k(b,function(b){b.setCollectorUrl(a)})};h.setCookiePath=
function(a,b){k(b,function(b){b.setCookiePath(a)})};h.setCustomUrl=function(a,b){k(b,function(b){b.setCustomUrl(a)})};h.setDocumentTitle=function(a,b){k(b,function(b){b.setDocumentTitle(a)})};h.setOptOutCookie=function(a,b){k(b,function(b){b.setOptOutCookie(a)})};h.setReferrerUrl=function(a,b){k(b,function(b){b.setReferrerUrl(a)})};h.setUserId=function(a,b){k(b,function(b){b.setUserId(a)})};h.setUserIdFromCookie=function(a,b){k(b,function(b){b.setUserIdFromCookie(a)})};h.setUserIdFromLocation=function(a,
b){k(b,function(b){b.setUserIdFromLocation(a)})};h.setUserIdFromReferrer=function(a,b){k(b,function(b){b.setUserIdFromReferrer(a)})};h.setVisitorCookieTimeout=function(a,b){k(b,function(b){b.setVisitorCookieTimeout(a)})};h.trackPageView=function(a,b){k(b,function(b){b.trackPageView(a)})};h.trackSelfDescribingEvent=function(a,b){k(b,function(b){b.core.track(Sb({event:a.event}),a.context,a.timestamp)})};h.trackStructEvent=function(a,b){k(b,function(b){b.core.track(Vb(a),a.context,a.timestamp)})};h.updatePageActivity=
function(a){k(a,function(a){a.updatePageActivity()})};h.version="js-3.0.0-alpha.3";Object.defineProperty(h,"__esModule",{value:!0})})
//# sourceMappingURL=index.umd.min.js.map
{
"name": "@snowplow/browser-tracker",
"version": "3.0.0-alpha.2",
"version": "3.0.0-alpha.3",
"description": "Browser tracker for Snowplow",

@@ -38,4 +38,4 @@ "keywords": [

"dependencies": {
"@snowplow/browser-tracker-core": "3.0.0-alpha.2",
"@snowplow/tracker-core": "3.0.0-alpha.2",
"@snowplow/browser-tracker-core": "3.0.0-alpha.3",
"@snowplow/tracker-core": "3.0.0-alpha.3",
"tslib": "^2.0.3"

@@ -42,0 +42,0 @@ },

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc