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
76
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.18.0 to 3.19.0

4

dist/index.module.d.ts

@@ -1,2 +0,2 @@

import { TrackerConfiguration, BrowserTracker, CookieSameSite, Platform, EventMethod, StateStorageStrategy, ClientSession, ActivityTrackingConfiguration, ActivityTrackingConfigurationCallback, ActivityCallback, ActivityCallbackData, BrowserPlugin, BrowserPluginConfiguration, BuiltInContexts, DisableAnonymousTrackingConfiguration, EnableAnonymousTrackingConfiguration, AnonymousTrackingOptions, FlushBufferConfiguration, PageViewEvent, ClearUserDataConfiguration } from '@snowplow/browser-tracker-core';
import { TrackerConfiguration, BrowserTracker, CookieSameSite, Platform, EventMethod, StateStorageStrategy, ClientSession, RequestFailure, EventBatch, GetBatch, PostBatch, ActivityTrackingConfiguration, ActivityTrackingConfigurationCallback, ActivityCallback, ActivityCallbackData, BrowserPlugin, BrowserPluginConfiguration, BuiltInContexts, DisableAnonymousTrackingConfiguration, EnableAnonymousTrackingConfiguration, AnonymousTrackingOptions, FlushBufferConfiguration, PageViewEvent, ClearUserDataConfiguration } from '@snowplow/browser-tracker-core';
import { version, CommonEventProperties, ConditionalContextProvider, ContextPrimitive, ContextGenerator, FilterProvider, RuleSetProvider, SelfDescribingEvent, SelfDescribingJson, StructuredEvent, ContextEvent, ContextFilter, RuleSet } from '@snowplow/tracker-core';

@@ -253,2 +253,2 @@ /**

declare function addPlugin(configuration: BrowserPluginConfiguration, trackers?: Array<string>): void;
export { newTracker, BrowserTracker, TrackerConfiguration, CookieSameSite, Platform, EventMethod, StateStorageStrategy, ClientSession, version, ActivityTrackingConfiguration, ActivityTrackingConfigurationCallback, ActivityCallback, ActivityCallbackData, BrowserPlugin, BrowserPluginConfiguration, BuiltInContexts, FlushBufferConfiguration, PageViewEvent, EnableAnonymousTrackingConfiguration, DisableAnonymousTrackingConfiguration, AnonymousTrackingOptions, ClearUserDataConfiguration, ConditionalContextProvider, ContextPrimitive, SelfDescribingEvent, SelfDescribingJson, CommonEventProperties, StructuredEvent, ContextGenerator, FilterProvider, RuleSetProvider, ContextEvent, ContextFilter, RuleSet, newSession, setReferrerUrl, setCustomUrl, setDocumentTitle, discardHashTag, discardBrace, setCookiePath, setVisitorCookieTimeout, crossDomainLinker, enableActivityTracking, enableActivityTrackingCallback, disableActivityTracking, disableActivityTrackingCallback, updatePageActivity, setOptOutCookie, setUserId, setUserIdFromLocation, setUserIdFromReferrer, setUserIdFromCookie, setCollectorUrl, setBufferSize, flushBuffer, trackPageView, trackStructEvent, trackSelfDescribingEvent, addGlobalContexts, removeGlobalContexts, clearGlobalContexts, preservePageViewId, disableAnonymousTracking, enableAnonymousTracking, clearUserData, addPlugin };
export { newTracker, BrowserTracker, TrackerConfiguration, CookieSameSite, Platform, EventMethod, StateStorageStrategy, ClientSession, RequestFailure, EventBatch, GetBatch, PostBatch, version, ActivityTrackingConfiguration, ActivityTrackingConfigurationCallback, ActivityCallback, ActivityCallbackData, BrowserPlugin, BrowserPluginConfiguration, BuiltInContexts, FlushBufferConfiguration, PageViewEvent, EnableAnonymousTrackingConfiguration, DisableAnonymousTrackingConfiguration, AnonymousTrackingOptions, ClearUserDataConfiguration, ConditionalContextProvider, ContextPrimitive, SelfDescribingEvent, SelfDescribingJson, CommonEventProperties, StructuredEvent, ContextGenerator, FilterProvider, RuleSetProvider, ContextEvent, ContextFilter, RuleSet, newSession, setReferrerUrl, setCustomUrl, setDocumentTitle, discardHashTag, discardBrace, setCookiePath, setVisitorCookieTimeout, crossDomainLinker, enableActivityTracking, enableActivityTrackingCallback, disableActivityTracking, disableActivityTrackingCallback, updatePageActivity, setOptOutCookie, setUserId, setUserIdFromLocation, setUserIdFromReferrer, setUserIdFromCookie, setCollectorUrl, setBufferSize, flushBuffer, trackPageView, trackStructEvent, trackSelfDescribingEvent, addGlobalContexts, removeGlobalContexts, clearGlobalContexts, preservePageViewId, disableAnonymousTracking, enableAnonymousTracking, clearUserData, addPlugin };
/*!
* Browser tracker for Snowplow v3.18.0 (http://bit.ly/sp-js)
* Browser tracker for Snowplow v3.19.0 (http://bit.ly/sp-js)
* Copyright 2022 Snowplow Analytics Ltd, 2010 Anthon Pang

@@ -4,0 +4,0 @@ * Licensed under BSD-3-Clause

@@ -1,2 +0,2 @@

import { TrackerConfiguration, BrowserTracker, CookieSameSite, Platform, EventMethod, StateStorageStrategy, ClientSession, ActivityTrackingConfiguration, ActivityTrackingConfigurationCallback, ActivityCallback, ActivityCallbackData, BrowserPlugin, BrowserPluginConfiguration, BuiltInContexts, DisableAnonymousTrackingConfiguration, EnableAnonymousTrackingConfiguration, AnonymousTrackingOptions, FlushBufferConfiguration, PageViewEvent, ClearUserDataConfiguration } from '@snowplow/browser-tracker-core';
import { TrackerConfiguration, BrowserTracker, CookieSameSite, Platform, EventMethod, StateStorageStrategy, ClientSession, RequestFailure, EventBatch, GetBatch, PostBatch, ActivityTrackingConfiguration, ActivityTrackingConfigurationCallback, ActivityCallback, ActivityCallbackData, BrowserPlugin, BrowserPluginConfiguration, BuiltInContexts, DisableAnonymousTrackingConfiguration, EnableAnonymousTrackingConfiguration, AnonymousTrackingOptions, FlushBufferConfiguration, PageViewEvent, ClearUserDataConfiguration } from '@snowplow/browser-tracker-core';
import { version, CommonEventProperties, ConditionalContextProvider, ContextPrimitive, ContextGenerator, FilterProvider, RuleSetProvider, SelfDescribingEvent, SelfDescribingJson, StructuredEvent, ContextEvent, ContextFilter, RuleSet } from '@snowplow/tracker-core';

@@ -253,2 +253,2 @@ /**

declare function addPlugin(configuration: BrowserPluginConfiguration, trackers?: Array<string>): void;
export { newTracker, BrowserTracker, TrackerConfiguration, CookieSameSite, Platform, EventMethod, StateStorageStrategy, ClientSession, version, ActivityTrackingConfiguration, ActivityTrackingConfigurationCallback, ActivityCallback, ActivityCallbackData, BrowserPlugin, BrowserPluginConfiguration, BuiltInContexts, FlushBufferConfiguration, PageViewEvent, EnableAnonymousTrackingConfiguration, DisableAnonymousTrackingConfiguration, AnonymousTrackingOptions, ClearUserDataConfiguration, ConditionalContextProvider, ContextPrimitive, SelfDescribingEvent, SelfDescribingJson, CommonEventProperties, StructuredEvent, ContextGenerator, FilterProvider, RuleSetProvider, ContextEvent, ContextFilter, RuleSet, newSession, setReferrerUrl, setCustomUrl, setDocumentTitle, discardHashTag, discardBrace, setCookiePath, setVisitorCookieTimeout, crossDomainLinker, enableActivityTracking, enableActivityTrackingCallback, disableActivityTracking, disableActivityTrackingCallback, updatePageActivity, setOptOutCookie, setUserId, setUserIdFromLocation, setUserIdFromReferrer, setUserIdFromCookie, setCollectorUrl, setBufferSize, flushBuffer, trackPageView, trackStructEvent, trackSelfDescribingEvent, addGlobalContexts, removeGlobalContexts, clearGlobalContexts, preservePageViewId, disableAnonymousTracking, enableAnonymousTracking, clearUserData, addPlugin };
export { newTracker, BrowserTracker, TrackerConfiguration, CookieSameSite, Platform, EventMethod, StateStorageStrategy, ClientSession, RequestFailure, EventBatch, GetBatch, PostBatch, version, ActivityTrackingConfiguration, ActivityTrackingConfigurationCallback, ActivityCallback, ActivityCallbackData, BrowserPlugin, BrowserPluginConfiguration, BuiltInContexts, FlushBufferConfiguration, PageViewEvent, EnableAnonymousTrackingConfiguration, DisableAnonymousTrackingConfiguration, AnonymousTrackingOptions, ClearUserDataConfiguration, ConditionalContextProvider, ContextPrimitive, SelfDescribingEvent, SelfDescribingJson, CommonEventProperties, StructuredEvent, ContextGenerator, FilterProvider, RuleSetProvider, ContextEvent, ContextFilter, RuleSet, newSession, setReferrerUrl, setCustomUrl, setDocumentTitle, discardHashTag, discardBrace, setCookiePath, setVisitorCookieTimeout, crossDomainLinker, enableActivityTracking, enableActivityTrackingCallback, disableActivityTracking, disableActivityTrackingCallback, updatePageActivity, setOptOutCookie, setUserId, setUserIdFromLocation, setUserIdFromReferrer, setUserIdFromCookie, setCollectorUrl, setBufferSize, flushBuffer, trackPageView, trackStructEvent, trackSelfDescribingEvent, addGlobalContexts, removeGlobalContexts, clearGlobalContexts, preservePageViewId, disableAnonymousTracking, enableAnonymousTracking, clearUserData, addPlugin };

@@ -1,2 +0,2 @@

import { TrackerConfiguration, BrowserTracker, CookieSameSite, Platform, EventMethod, StateStorageStrategy, ClientSession, ActivityTrackingConfiguration, ActivityTrackingConfigurationCallback, ActivityCallback, ActivityCallbackData, BrowserPlugin, BrowserPluginConfiguration, BuiltInContexts, DisableAnonymousTrackingConfiguration, EnableAnonymousTrackingConfiguration, AnonymousTrackingOptions, FlushBufferConfiguration, PageViewEvent, ClearUserDataConfiguration } from '@snowplow/browser-tracker-core';
import { TrackerConfiguration, BrowserTracker, CookieSameSite, Platform, EventMethod, StateStorageStrategy, ClientSession, RequestFailure, EventBatch, GetBatch, PostBatch, ActivityTrackingConfiguration, ActivityTrackingConfigurationCallback, ActivityCallback, ActivityCallbackData, BrowserPlugin, BrowserPluginConfiguration, BuiltInContexts, DisableAnonymousTrackingConfiguration, EnableAnonymousTrackingConfiguration, AnonymousTrackingOptions, FlushBufferConfiguration, PageViewEvent, ClearUserDataConfiguration } from '@snowplow/browser-tracker-core';
import { version, CommonEventProperties, ConditionalContextProvider, ContextPrimitive, ContextGenerator, FilterProvider, RuleSetProvider, SelfDescribingEvent, SelfDescribingJson, StructuredEvent, ContextEvent, ContextFilter, RuleSet } from '@snowplow/tracker-core';

@@ -253,2 +253,2 @@ /**

declare function addPlugin(configuration: BrowserPluginConfiguration, trackers?: Array<string>): void;
export { newTracker, BrowserTracker, TrackerConfiguration, CookieSameSite, Platform, EventMethod, StateStorageStrategy, ClientSession, version, ActivityTrackingConfiguration, ActivityTrackingConfigurationCallback, ActivityCallback, ActivityCallbackData, BrowserPlugin, BrowserPluginConfiguration, BuiltInContexts, FlushBufferConfiguration, PageViewEvent, EnableAnonymousTrackingConfiguration, DisableAnonymousTrackingConfiguration, AnonymousTrackingOptions, ClearUserDataConfiguration, ConditionalContextProvider, ContextPrimitive, SelfDescribingEvent, SelfDescribingJson, CommonEventProperties, StructuredEvent, ContextGenerator, FilterProvider, RuleSetProvider, ContextEvent, ContextFilter, RuleSet, newSession, setReferrerUrl, setCustomUrl, setDocumentTitle, discardHashTag, discardBrace, setCookiePath, setVisitorCookieTimeout, crossDomainLinker, enableActivityTracking, enableActivityTrackingCallback, disableActivityTracking, disableActivityTrackingCallback, updatePageActivity, setOptOutCookie, setUserId, setUserIdFromLocation, setUserIdFromReferrer, setUserIdFromCookie, setCollectorUrl, setBufferSize, flushBuffer, trackPageView, trackStructEvent, trackSelfDescribingEvent, addGlobalContexts, removeGlobalContexts, clearGlobalContexts, preservePageViewId, disableAnonymousTracking, enableAnonymousTracking, clearUserData, addPlugin };
export { newTracker, BrowserTracker, TrackerConfiguration, CookieSameSite, Platform, EventMethod, StateStorageStrategy, ClientSession, RequestFailure, EventBatch, GetBatch, PostBatch, version, ActivityTrackingConfiguration, ActivityTrackingConfigurationCallback, ActivityCallback, ActivityCallbackData, BrowserPlugin, BrowserPluginConfiguration, BuiltInContexts, FlushBufferConfiguration, PageViewEvent, EnableAnonymousTrackingConfiguration, DisableAnonymousTrackingConfiguration, AnonymousTrackingOptions, ClearUserDataConfiguration, ConditionalContextProvider, ContextPrimitive, SelfDescribingEvent, SelfDescribingJson, CommonEventProperties, StructuredEvent, ContextGenerator, FilterProvider, RuleSetProvider, ContextEvent, ContextFilter, RuleSet, newSession, setReferrerUrl, setCustomUrl, setDocumentTitle, discardHashTag, discardBrace, setCookiePath, setVisitorCookieTimeout, crossDomainLinker, enableActivityTracking, enableActivityTrackingCallback, disableActivityTracking, disableActivityTrackingCallback, updatePageActivity, setOptOutCookie, setUserId, setUserIdFromLocation, setUserIdFromReferrer, setUserIdFromCookie, setCollectorUrl, setBufferSize, flushBuffer, trackPageView, trackStructEvent, trackSelfDescribingEvent, addGlobalContexts, removeGlobalContexts, clearGlobalContexts, preservePageViewId, disableAnonymousTracking, enableAnonymousTracking, clearUserData, addPlugin };
/*!
* Browser tracker for Snowplow v3.18.0 (http://bit.ly/sp-js)
* Browser tracker for Snowplow v3.19.0 (http://bit.ly/sp-js)
* Copyright 2022 Snowplow Analytics Ltd, 2010 Anthon Pang

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

'use strict';(function(w,T){"object"===typeof exports&&"undefined"!==typeof module?T(exports):"function"===typeof define&&define.amd?define(["exports"],T):(w="undefined"!==typeof globalThis?globalThis:w||self,T(w.snowplowBrowserTracking={}))})(this,function(w){function T(a,b,c){if(c||2===arguments.length)for(var e=0,f=b.length,g;e<f;e++)!g&&e in b||(g||(g=Array.prototype.slice.call(b,0,e)),g[e]=b[e]);return a.concat(g||Array.prototype.slice.call(b))}function Kc(a){var b=0,c=0;var e="";var f=[];if(!a)return a;
a+="";do{var g=la.indexOf(a.charAt(b++));var h=la.indexOf(a.charAt(b++));e=la.indexOf(a.charAt(b++));var n=la.indexOf(a.charAt(b++));var r=g<<18|h<<12|e<<6|n;g=r>>16&255;h=r>>8&255;r&=255;64===e?f[c++]=String.fromCharCode(g):64===n?f[c++]=String.fromCharCode(g,h):f[c++]=String.fromCharCode(g,h,r)}while(b<a.length);e=f.join("");return function(p){return decodeURIComponent(p.split("").map(function(B){return"%"+("00"+B.charCodeAt(0).toString(16)).slice(-2)}).join(""))}(e.replace(/\0+$/,""))}function $a(){var a=
'use strict';(function(w,S){"object"===typeof exports&&"undefined"!==typeof module?S(exports):"function"===typeof define&&define.amd?define(["exports"],S):(w="undefined"!==typeof globalThis?globalThis:w||self,S(w.snowplowBrowserTracking={}))})(this,function(w){function S(a,b,c){if(c||2===arguments.length)for(var e=0,f=b.length,g;e<f;e++)!g&&e in b||(g||(g=Array.prototype.slice.call(b,0,e)),g[e]=b[e]);return a.concat(g||Array.prototype.slice.call(b))}function Kc(a){var b=0,c=0;var e="";var f=[];if(!a)return a;
a+="";do{var g=la.indexOf(a.charAt(b++));var h=la.indexOf(a.charAt(b++));e=la.indexOf(a.charAt(b++));var n=la.indexOf(a.charAt(b++));var r=g<<18|h<<12|e<<6|n;g=r>>16&255;h=r>>8&255;r&=255;64===e?f[c++]=String.fromCharCode(g):64===n?f[c++]=String.fromCharCode(g,h):f[c++]=String.fromCharCode(g,h,r)}while(b<a.length);e=f.join("");return function(q){return decodeURIComponent(q.split("").map(function(B){return"%"+("00"+B.charCodeAt(0).toString(16)).slice(-2)}).join(""))}(e.replace(/\0+$/,""))}function $a(){var a=
{},b=[],c=[],e=[],f,g=function(h,n){null!=n&&""!==n&&(a[h]=n)};return{add:g,addDict:function(h){for(var n in h)Object.prototype.hasOwnProperty.call(h,n)&&g(n,h[n])},addJson:function(h,n,r){r&&Yb(r)&&(h={keyIfEncoded:h,keyIfNotEncoded:n,json:r},c.push(h),b.push(h))},addContextEntity:function(h){e.push(h)},getPayload:function(){return a},getJson:function(){return b},withJsonProcessor:function(h){f=h},build:function(){null===f||void 0===f?void 0:f(this,c,e);return a}}}function Lc(a){return function(b,
c,e){for(var f=function(p,B,y){p=JSON.stringify(p);if(a){y=b.add;if(p){var u=0,k=0,z=[];if(p){p=unescape(encodeURIComponent(p));do{var K=p.charCodeAt(u++);var P=p.charCodeAt(u++);var H=p.charCodeAt(u++);var I=K<<16|P<<8|H;K=I>>18&63;P=I>>12&63;H=I>>6&63;I&=63;z[k++]=la.charAt(K)+la.charAt(P)+la.charAt(H)+la.charAt(I)}while(u<p.length);u=z.join("");p=p.length%3;p=(p?u.slice(0,p-3):u)+"===".slice(p||3)}p=p.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}y.call(b,B,p)}else b.add(y,p)},g=function(p,
B){if(!p){var y=b.getPayload();if(a?y.cx:y.co){p=JSON;var u=p.parse;if(a){if(y=y.cx){switch(4-y.length%4){case 2:y+="==";break;case 3:y+="="}y=y.replace(/-/g,"+").replace(/_/g,"/");y=Kc(y)}}else y=y.co;p=u.call(p,y)}else p=void 0}p?p.data=p.data.concat(B.data):p=B;return p},h=void 0,n=0;n<c.length;n++){var r=c[n];"cx"===r.keyIfEncoded?h=g(h,r.json):f(r.json,r.keyIfEncoded,r.keyIfNotEncoded)}c.length=0;e.length&&(c={schema:"iglu:com.snowplowanalytics.snowplow/contexts/jsonschema/1-0-0",data:T([],e,
c,e){for(var f=function(q,B,y){q=JSON.stringify(q);if(a){y=b.add;if(q){var u=0,k=0,z=[];if(q){q=unescape(encodeURIComponent(q));do{var K=q.charCodeAt(u++);var P=q.charCodeAt(u++);var H=q.charCodeAt(u++);var I=K<<16|P<<8|H;K=I>>18&63;P=I>>12&63;H=I>>6&63;I&=63;z[k++]=la.charAt(K)+la.charAt(P)+la.charAt(H)+la.charAt(I)}while(u<q.length);u=z.join("");q=q.length%3;q=(q?u.slice(0,q-3):u)+"===".slice(q||3)}q=q.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}y.call(b,B,q)}else b.add(y,q)},g=function(q,
B){if(!q){var y=b.getPayload();if(a?y.cx:y.co){q=JSON;var u=q.parse;if(a){if(y=y.cx){switch(4-y.length%4){case 2:y+="==";break;case 3:y+="="}y=y.replace(/-/g,"+").replace(/_/g,"/");y=Kc(y)}}else y=y.co;q=u.call(q,y)}else q=void 0}q?q.data=q.data.concat(B.data):q=B;return q},h=void 0,n=0;n<c.length;n++){var r=c[n];"cx"===r.keyIfEncoded?h=g(h,r.json):f(r.json,r.keyIfEncoded,r.keyIfNotEncoded)}c.length=0;e.length&&(c={schema:"iglu:com.snowplowanalytics.snowplow/contexts/jsonschema/1-0-0",data:S([],e,
!0)},h=g(h,c),e.length=0);h&&f(h,"cx","co")}}function Yb(a){if(!Zb(a))return!1;for(var b in a)if(Object.prototype.hasOwnProperty.call(a,b))return!0;return!1}function Zb(a){return"undefined"!==typeof a&&null!==a&&(a.constructor==={}.constructor||a.constructor===[].constructor)}function Mc(){var a=[],b=[];return{getGlobalPrimitives:function(){return a},getConditionalProviders:function(){return b},addGlobalContexts:function(c){for(var e=[],f=[],g=0;g<c.length;g++){var h=c[g];$b(h)?e.push(h):Ba(h)&&f.push(h)}a=
a.concat(f);b=b.concat(e)},clearGlobalContexts:function(){b=[];a=[]},removeGlobalContexts:function(c){for(var e=function(g){$b(g)?b=b.filter(function(h){return JSON.stringify(h)!==JSON.stringify(g)}):Ba(g)&&(a=a.filter(function(h){return JSON.stringify(h)!==JSON.stringify(g)}))},f=0;f<c.length;f++)e(c[f])},getApplicableContexts:function(c){a:{var e=0;for(var f=c.getJson();e<f.length;e++){var g=f[e];if("ue_px"===g.keyIfEncoded&&"object"===typeof g.json.data&&(g=g.json.data.schema,"string"==typeof g)){e=
g;break a}}e=""}f=c.getPayload().e;g="string"===typeof f?f:"";f=[];var h=qb(a,c,g,e);f.push.apply(f,h);c=Nc(b,c,g,e);f.push.apply(f,c);return f}}}function Oc(a){return{addPluginContexts:function(b){var c=b?T([],b,!0):[];a.forEach(function(e){try{e.contexts&&c.push.apply(c,e.contexts())}catch(f){Z.error("Error adding plugin contexts",f)}});return c}}}function Pc(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;
g;break a}}e=""}f=c.getPayload().e;g="string"===typeof f?f:"";f=[];var h=qb(a,c,g,e);f.push.apply(f,h);c=Nc(b,c,g,e);f.push.apply(f,c);return f}}}function Oc(a){return{addPluginContexts:function(b){var c=b?S([],b,!0):[];a.forEach(function(e){try{e.contexts&&c.push.apply(c,e.contexts())}catch(f){Z.error("Error adding plugin contexts",f)}});return c}}}function Pc(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 ac(a){return(a=a.split("."))&&1<a.length?Pc(a):!1}function bc(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&&ac(a[1]))return a.slice(1,6)}function rb(a){if(a=bc(a)){var b=a[0];return 5===a.length&&ac(b)}return!1}function Qc(a){return Array.isArray(a)&&a.every(function(b){return"string"===typeof b})}function cc(a){return Qc(a)?a.every(function(b){return rb(b)}):

@@ -20,5 +20,5 @@ "string"===typeof a?rb(a):!1}function Oa(a){return Yb(a)&&"schema"in a&&"data"in a?"string"===typeof a.schema&&"object"===typeof a.data:!1}function Rc(a){var b=0;if(null!=a&&"object"===typeof a&&!Array.isArray(a)){if(Object.prototype.hasOwnProperty.call(a,"accept"))if(cc(a.accept))b+=1;else return!1;if(Object.prototype.hasOwnProperty.call(a,"reject"))if(cc(a.reject))b+=1;else return!1;return 0<b&&2>=b}return!1}function ab(a){return"function"===typeof a&&1>=a.length}function Ba(a){return ab(a)||Oa(a)}

bb(f,b)&&c++;return 0<e&&0===c?!0:!1}function bb(a,b){if(!rb(a))return!1;a=bc(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(!Tc(a[0],b[0]))return!1;for(var c=1;5>c;c++)if(!fc(a[c],b[c]))return!1;return!0}return!1}function Tc(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(!fc(b[c],a[c]))return!1;return!0}return!1}function fc(a,
b){return a&&b&&"*"===a||a===b}function gc(a){return Array.isArray(a)?a:[a]}function qb(a,b,c,e){var f;a=gc(a).map(function(g){a:if(Oa(g))g=[g];else{if(ab(g)){b:{var h=void 0;try{var n={event:b.getPayload(),eventType:c,eventSchema:e};h=g(n);if(Array.isArray(h)&&h.every(Oa)||Oa(h)){var r=h;break b}r=void 0;break b}catch(p){}r=void 0}if(Oa(r)){g=[r];break a}else if(Array.isArray(r)){g=r;break a}}g=void 0}if(g&&0!==g.length)return g});return(f=[]).concat.apply(f,a.filter(function(g){return null!=g&&
g.filter(Boolean)}))}function Nc(a,b,c,e){var f;a=gc(a).map(function(g){a:{if(dc(g)){var h=g[0],n=!1;try{var r={event:b.getPayload(),eventType:c,eventSchema:e};n=h(r)}catch(p){n=!1}if(!0===n){g=qb(g[1],b,c,e);break a}}else if(ec(g)&&Sc(g[0],e)){g=qb(g[1],b,c,e);break a}g=[]}if(g&&0!==g.length)return g});return(f=[]).concat.apply(f,a.filter(function(g){return null!=g&&g.filter(Boolean)}))}function Uc(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 Vc(a){void 0===a&&(a={});var b=a.base64,c=a.corePlugins,e=null!==c&&void 0!==c?c:[];a=function(g,h,n){function r(k,z){k=B.getApplicableContexts(k);var K=[];z&&z.length&&K.push.apply(K,z);k&&k.length&&K.push.apply(K,k);return K}var p=Oc(h),B=Mc(),y=g,u={};return{track:function(k,z,K){k.withJsonProcessor(Lc(y));k.add("eid",fa.v4());k.addDict(u);K=Uc(K);k.add(K.type,K.value.toString());z=r(k,p.addPluginContexts(z));
b){return a&&b&&"*"===a||a===b}function gc(a){return Array.isArray(a)?a:[a]}function qb(a,b,c,e){var f;a=gc(a).map(function(g){a:if(Oa(g))g=[g];else{if(ab(g)){b:{var h=void 0;try{var n={event:b.getPayload(),eventType:c,eventSchema:e};h=g(n);if(Array.isArray(h)&&h.every(Oa)||Oa(h)){var r=h;break b}r=void 0;break b}catch(q){}r=void 0}if(Oa(r)){g=[r];break a}else if(Array.isArray(r)){g=r;break a}}g=void 0}if(g&&0!==g.length)return g});return(f=[]).concat.apply(f,a.filter(function(g){return null!=g&&
g.filter(Boolean)}))}function Nc(a,b,c,e){var f;a=gc(a).map(function(g){a:{if(dc(g)){var h=g[0],n=!1;try{var r={event:b.getPayload(),eventType:c,eventSchema:e};n=h(r)}catch(q){n=!1}if(!0===n){g=qb(g[1],b,c,e);break a}}else if(ec(g)&&Sc(g[0],e)){g=qb(g[1],b,c,e);break a}g=[]}if(g&&0!==g.length)return g});return(f=[]).concat.apply(f,a.filter(function(g){return null!=g&&g.filter(Boolean)}))}function Uc(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 Vc(a){void 0===a&&(a={});var b=a.base64,c=a.corePlugins,e=null!==c&&void 0!==c?c:[];a=function(g,h,n){function r(k,z){k=B.getApplicableContexts(k);var K=[];z&&z.length&&K.push.apply(K,z);k&&k.length&&K.push.apply(K,k);return K}var q=Oc(h),B=Mc(),y=g,u={};return{track:function(k,z,K){k.withJsonProcessor(Lc(y));k.add("eid",fa.v4());k.addDict(u);K=Uc(K);k.add(K.type,K.value.toString());z=r(k,q.addPluginContexts(z));
z=z&&z.length?{schema:"iglu:com.snowplowanalytics.snowplow/contexts/jsonschema/1-0-0",data:z}:void 0;void 0!==z&&k.addJson("cx","co",z);h.forEach(function(H){try{H.beforeTrack&&H.beforeTrack(k)}catch(I){Z.error("Plugin beforeTrack",I)}});"function"===typeof n&&n(k);var P=k.build();h.forEach(function(H){try{H.afterTrack&&H.afterTrack(P)}catch(I){Z.error("Plugin afterTrack",I)}});return P},addPayloadPair:function(k,z){u[k]=z},getBase64Encoding:function(){return y},setBase64Encoding:function(k){y=k},

@@ -32,12 +32,12 @@ addPayloadDict:function(k){for(var z in k)Object.prototype.hasOwnProperty.call(k,z)&&(u[z]=k[z])},resetPayloadPairs:function(k){u=Zb(k)?k:{}},setTrackerVersion:function(k){u.tv=k},setTrackerNamespace:function(k){u.tna=k},setAppId:function(k){u.aid=k},setPlatform:function(k){u.p=k},setUserId:function(k){u.uid=k},setScreenResolution:function(k,z){u.res=k+"x"+z},setViewport:function(k,z){u.vp=k+"x"+z},setColorDepth:function(k){u.cd=k},setTimezone:function(k){u.tz=k},setLang:function(k){u.lang=k},setIpAddress:function(k){u.ip=

b,c,e,f,g,h){return 1<arguments.length?document.cookie=a+"="+encodeURIComponent(null!==b&&void 0!==b?b:"")+(c?"; Expires="+(new Date(+new Date+1E3*c)).toUTCString():"")+(e?"; Path="+e:"")+(f?"; Domain="+f:"")+(g?"; SameSite="+g:"")+(h?"; Secure":""):decodeURIComponent((("; "+document.cookie).split("; "+a+"=")[1]||"").split(";")[0])}function Yc(){try{var a=!!window.localStorage}catch(c){a=!0}if(!a)return!1;try{var b=window.localStorage;b.setItem("modernizr","modernizr");b.removeItem("modernizr");return!0}catch(c){return!1}}
function Zc(a,b,c,e,f,g,h,n,r,p,B,y,u,k,z,K,P,H,I,E){function da(m){var x=Object.keys(m).map(function(v){return[v,m[v]]}).reduce(function(v,t){v[t[0]]=t[1].toString();return v},{});return{evt:x,bytes:na(JSON.stringify(x))}}function na(m){for(var x=0,v=0;v<m.length;v++){var t=m.charCodeAt(v);127>=t?x+=1:2047>=t?x+=2:55296<=t&&57343>=t?(x+=4,v++):x=65535>t?x+3:x+4}return x}function db(m,x){var v=sa(x,!0,!1),t=Ca([m.evt]);v.onreadystatechange=function(){4===v.readyState&&(ta(v.status)?null===I||void 0===
I?void 0:I(t):null===E||void 0===E?void 0:E({status:v.status,message:v.statusText,events:t,willRetry:!1}))};v.send(Da(t))}function ua(m){for(var x=0;x<m;x++)F.shift();c&&cb(Ea,JSON.stringify(F.slice(0,p)))}function Qa(m,x,v){m.onreadystatechange=function(){if(4===m.readyState)if(clearTimeout(t),ta(m.status))ua(x),null===I||void 0===I?void 0:I(v),V();else{var A=m.status;A=ta(A)||!H?!1:z.includes(A)?!0:!K.includes(A);A||(Z.error("Status ".concat(m.status,", will not retry.")),ua(x));null===E||void 0===
E?void 0:E({status:m.status,message:m.statusText,events:v,willRetry:A});R=!1}};var t=setTimeout(function(){m.abort();H||ua(x);null===E||void 0===E?void 0:E({status:0,message:"timeout",events:v,willRetry:H});R=!1},B)}function V(m){for(void 0===m&&(m=!1);F.length&&"string"!==typeof F[0]&&"object"!==typeof F[0];)F.shift();if(F.length){if(!aa||"string"!==typeof aa.valueOf())throw"No collector configured";R=!0;if(P&&!Ra){var x=sa(P,!1,m);Ra=!0;x.timeout=B;x.onreadystatechange=function(){4===x.readyState&&
function Zc(a,b,c,e,f,g,h,n,r,q,B,y,u,k,z,K,P,H,I,E){function da(m){var x=Object.keys(m).map(function(v){return[v,m[v]]}).reduce(function(v,t){v[t[0]]=t[1].toString();return v},{});return{evt:x,bytes:na(JSON.stringify(x))}}function na(m){for(var x=0,v=0;v<m.length;v++){var t=m.charCodeAt(v);127>=t?x+=1:2047>=t?x+=2:55296<=t&&57343>=t?(x+=4,v++):x=65535>t?x+3:x+4}return x}function db(m,x){var v=sa(x,!0,!1),t=Ca([m.evt]);v.onreadystatechange=function(){4===v.readyState&&(ta(v.status)?null===I||void 0===
I?void 0:I(t):null===E||void 0===E?void 0:E({status:v.status,message:v.statusText,events:t,willRetry:!1}))};v.send(Da(t))}function ua(m){for(var x=0;x<m;x++)F.shift();c&&cb(Ea,JSON.stringify(F.slice(0,q)))}function Qa(m,x,v){m.onreadystatechange=function(){if(4===m.readyState)if(clearTimeout(t),ta(m.status))ua(x),null===I||void 0===I?void 0:I(v),V();else{var A=m.status;A=ta(A)||!H?!1:z.includes(A)?!0:!K.includes(A);A||(Z.error("Status ".concat(m.status,", will not retry.")),ua(x));null===E||void 0===
E?void 0:E({status:m.status,message:m.statusText,events:v,willRetry:A});T=!1}};var t=setTimeout(function(){m.abort();H||ua(x);null===E||void 0===E?void 0:E({status:0,message:"timeout",events:v,willRetry:H});T=!1},B)}function V(m){for(void 0===m&&(m=!1);F.length&&"string"!==typeof F[0]&&"object"!==typeof F[0];)F.shift();if(F.length){if(!aa||"string"!==typeof aa.valueOf())throw"No collector configured";T=!0;if(P&&!Ra){var x=sa(P,!1,m);Ra=!0;x.timeout=B;x.onreadystatechange=function(){4===x.readyState&&
V()};x.send()}else if(Fa){var v=function(ha){for(var oa=0,Ga=0;oa<ha.length&&!(Ga+=ha[oa].bytes,Ga>=h);)oa+=1;return oa},t=void 0,A=void 0,J=void 0;va(F)?(t=aa,A=sa(t,!0,m),J=v(F)):(t=Ha(F[0]),A=sa(t,!1,m),J=1);if(va(F)){if(m=F.slice(0,J),0<m.length){v=!1;var ba=m.map(function(ha){return ha.evt});if(ub){var Sa=new Blob([Da(Ca(ba))],{type:"application/json"});try{v=navigator.sendBeacon(t,Sa)}catch(ha){v=!1}}!0===v?(ua(J),null===I||void 0===I?void 0:I(m),V()):(t=Ca(ba),Qa(A,J,t),A.send(Da(t)))}}else Qa(A,
J,[t]),A.send()}else if(y||va(F))R=!1;else{A=new Image(1,1);var ea=!0;A.onload=function(){ea&&(ea=!1,F.shift(),c&&cb(Ea,JSON.stringify(F.slice(0,p))),V())};A.onerror=function(){ea&&(R=ea=!1)};A.src=Ha(F[0]);setTimeout(function(){ea&&R&&(ea=!1,V())},B)}}else R=!1}function ta(m){return 200<=m&&300>m}function sa(m,x,v){var t=new XMLHttpRequest;x?(t.open("POST",m,!v),t.setRequestHeader("Content-Type","application/json; charset=UTF-8")):t.open("GET",m,!v);t.withCredentials=k;y&&t.setRequestHeader("SP-Anonymous",
J,[t]),A.send()}else if(y||va(F))T=!1;else{A=new Image(1,1);var ea=!0;A.onload=function(){ea&&(ea=!1,F.shift(),c&&cb(Ea,JSON.stringify(F.slice(0,q))),V())};A.onerror=function(){ea&&(T=ea=!1)};A.src=Ha(F[0]);setTimeout(function(){ea&&T&&(ea=!1,V())},B)}}else T=!1}function ta(m){return 200<=m&&300>m}function sa(m,x,v){var t=new XMLHttpRequest;x?(t.open("POST",m,!v),t.setRequestHeader("Content-Type","application/json; charset=UTF-8")):t.open("GET",m,!v);t.withCredentials=k;y&&t.setRequestHeader("SP-Anonymous",
"*");for(var A in u)Object.prototype.hasOwnProperty.call(u,A)&&t.setRequestHeader(A,u[A]);return t}function Da(m){return JSON.stringify({schema:"iglu:com.snowplowanalytics.snowplow/payload_data/jsonschema/1-0-4",data:m})}function Ca(m){for(var x=(new Date).getTime().toString(),v=0;v<m.length;v++)m[v].stm=x;return m}function Ha(m){return r?aa+m.replace("?","?stm="+(new Date).getTime()+"&"):aa+m}function wa(m){function x(t,A,J){return(J=J.match("(Macintosh;.*Mac OS X (d+)_(d+)[_d]*.*) AppleWebKit/"))&&
J.length?parseInt(J[0])<=t||parseInt(J[0])===t&&parseInt(J[1])<=A:!1}function v(t){return t.match("Version/.* Safari/")&&!t.match("Chrom(e|ium)")}return function(t,A){return(A=A.match("(iP.+; CPU .*OS (d+)[_d]*.*) AppleWebKit/"))&&A.length?parseInt(A[0])<=t:!1}(13,m)||x(10,15,m)&&v(m)}void 0===H&&(H=!0);var R=!1,aa,F=[],Ra=!1;e="string"===typeof e?e.toLowerCase():e;var Ia=!0===e||"beacon"===e||"true"===e,ub=!(!(Ia&&window.navigator&&window.navigator.sendBeacon)||wa(window.navigator.userAgent))&&Ia,
Fa=!!(window.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest),Ja="get"!==e&&Fa&&("post"===e||Ia),Ta=Ja?f:"/i",Ea="snowplowOutQueue_".concat(a,"_").concat(Ja?"post2":"get");Ia&&(u={});g=c&&Yc()&&Ja&&g||1;if(c)try{var Ua=window.localStorage.getItem(Ea);F=Ua?JSON.parse(Ua):[]}catch(m){}Array.isArray(F)||(F=[]);b.outQueues.push(F);Fa&&1<g&&b.bufferFlushers.push(function(m){R||V(m)});var va=function(m){return"object"===typeof m[0]&&"evt"in m[0]};return{enqueueRequest:function(m,x){aa=x+Ta;if(Ja){m=
J.length?parseInt(J[0])<=t||parseInt(J[0])===t&&parseInt(J[1])<=A:!1}function v(t){return t.match("Version/.* Safari/")&&!t.match("Chrom(e|ium)")}return function(t,A){return(A=A.match("(iP.+; CPU .*OS (d+)[_d]*.*) AppleWebKit/"))&&A.length?parseInt(A[0])<=t:!1}(13,m)||x(10,15,m)&&v(m)}void 0===H&&(H=!0);var T=!1,aa,F=[],Ra=!1;e="string"===typeof e?e.toLowerCase():e;var Ia=!0===e||"beacon"===e||"true"===e,ub=!(!(Ia&&window.navigator&&window.navigator.sendBeacon)||wa(window.navigator.userAgent))&&Ia,
Fa=!!(window.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest),Ja="get"!==e&&Fa&&("post"===e||Ia),Ta=Ja?f:"/i",Ea="snowplowOutQueue_".concat(a,"_").concat(Ja?"post2":"get");Ia&&(u={});g=c&&Yc()&&Ja&&g||1;if(c)try{var Ua=window.localStorage.getItem(Ea);F=Ua?JSON.parse(Ua):[]}catch(m){}Array.isArray(F)||(F=[]);b.outQueues.push(F);Fa&&1<g&&b.bufferFlushers.push(function(m){T||V(m)});var va=function(m){return"object"===typeof m[0]&&"evt"in m[0]};return{enqueueRequest:function(m,x){aa=x+Ta;if(Ja){m=
da(m);if(m.bytes>=h){Z.warn("Event ("+m.bytes+"B) too big, max is "+h);db(m,aa);return}F.push(m)}else{var v="?";var t={co:!0,cx:!0},A=!0,J;for(J in m)m.hasOwnProperty(J)&&!t.hasOwnProperty(J)&&(A?A=!1:v+="&",v+=encodeURIComponent(J)+"="+encodeURIComponent(m[J]));for(var ba in t)m.hasOwnProperty(ba)&&t.hasOwnProperty(ba)&&(v+="&"+ba+"="+encodeURIComponent(m[ba]));if(0<n&&(t=Ha(v),t=na(t),t>=n)){Z.warn("Event ("+t+"B) too big, max is "+n);Fa&&(m=da(m),db(m,x+f));return}F.push(v)}x=!1;c&&(x=cb(Ea,JSON.stringify(F.slice(0,
p))));R||x&&!(F.length>=g)||V()},executeQueue:function(){R||V()},setUseLocalStorage:function(m){c=m},setAnonymousTracking:function(m){y=m},setCollectorUrl:function(m){aa=m+Ta},setBufferSize:function(m){g=m}}}function mc(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)?Pa("u",a[1]):null,b=null!==a&&void 0!==a?a:"",a=sb(b);else if("cc.bingj.com"===a||"webcache.googleusercontent.com"===a)b=
q))));T||x&&!(F.length>=g)||V()},executeQueue:function(){T||V()},setUseLocalStorage:function(m){c=m},setAnonymousTracking:function(m){y=m},setCollectorUrl:function(m){aa=m+Ta},setBufferSize:function(m){g=m}}}function mc(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)?Pa("u",a[1]):null,b=null!==a&&void 0!==a?a:"",a=sb(b);else if("cc.bingj.com"===a||"webcache.googleusercontent.com"===a)b=
document.links[0].href,a=sb(b);return[a,b,c]}function $c(a,b,c,e){var f=Math.round((new Date).getTime()/1E3);a?(a=a.split("."),a.unshift("0")):a=["1",b,f,e,f,"",c];a[6]&&"undefined"!==a[6]||(a[6]=fa.v4());a[7]&&"undefined"!==a[7]||(a[7]="");a[8]&&"undefined"!==a[8]||(a[8]="");a[9]&&"undefined"!==a[9]||(a[9]="");a[10]&&"undefined"!==a[10]||(a[10]=0);var g=function(h,n){h=parseInt(h);return isNaN(h)?n:h};b=function(h){return h?g(h,void 0):void 0};return[a[0],a[1],g(a[2],f),g(a[3],e),g(a[4],f),b(a[5]),

@@ -47,47 +47,47 @@ a[6],a[7],a[8],b(a[9]),g(a[10],0)]}function Va(a,b){void 0===b&&(b={memorizedVisitCount:1});b=b.memorizedVisitCount;"0"===a[0]?(a[7]=a[6],a[5]=a[4],a[3]++):a[3]=b;b=fa.v4();a[6]=b;a[10]=0;a[8]="";a[9]=void 0;return b}function vb(a){a[4]=Math.round((new Date).getTime()/1E3)}function nc(a,b,c){var e=a[9];return{userId:c?"00000000-0000-0000-0000-000000000000":a[1],sessionId:a[6],eventIndex:a[10],sessionIndex:a[3],previousSessionId:c?null:a[7]||null,storageMechanism:"localStorage"==b?"LOCAL_STORAGE":

0);c=isNaN(c)||isNaN(e)?"":c+"x"+e;return{viewport:a,documentSize:b(c),resolution:xb(screen.width+"x"+screen.height),colorDepth:screen.colorDepth,devicePixelRatio:window.devicePixelRatio,cookiesEnabled:window.navigator.cookieEnabled,online:window.navigator.onLine,browserLanguage:navigator.language||navigator.userLanguage,documentLanguage:document.documentElement.lang,webdriver:window.navigator.webdriver,deviceMemory:window.navigator.deviceMemory,hardwareConcurrency:window.navigator.hardwareConcurrency}}
function xb(a){return a&&a.split("x").map(function(b){return Math.floor(Number(b))}).join("x")}function ad(a,b,c,e,f,g){void 0===g&&(g={});var h=[];a=function(r,p,B,y,u,k){function z(){xa=mc(window.location.hostname,window.location.href,tb());xa[1]!==pa&&(Wa=tb(pa));oc=lc(xa[0]);pa=xa[1]}function K(d){var l=(new Date).getTime();d=d.currentTarget;if(null===d||void 0===d?0:d.href){l="_sp="+(eb+"."+l);var q=d.href.split("#"),D=q[0].split("?"),G=D.shift();if(D=D.join("?")){for(var M=!0,W=D.split("&"),
O=0;O<W.length;O++)if("_sp="===W[O].substr(0,4)){M=!1;W[O]=l;D=W.join("&");break}M&&(D=l+"&"+D)}else D=l;q[0]=G+"?"+D;l=q.join("#");d.href=l}}function P(d){for(var l=0;l<document.links.length;l++){var q=document.links[l];!q.spDecorationEnabled&&d(q)&&(ma(q,"click",K,!0),ma(q,"mousedown",K,!0),q.spDecorationEnabled=!0)}}function H(d){if(pc){var l=/#.*/;d=d.replace(l,"")}qc&&(l=/[{}]/g,d=d.replace(l,""));return d}function I(d){return(d=/^([a-z]+):/.exec(d))?d[1]:null}function E(d){d=Ka+d+"."+ya;if("localStorage"==
L){try{var l=window.localStorage,q=l.getItem(d+".expires");if(null===q||+q>Date.now())var D=l.getItem(d);else l.removeItem(d),l.removeItem(d+".expires"),D=void 0}catch(G){D=void 0}return D}if("cookie"==L||"cookieAndLocalStorage"==L)return ca(d)}function da(){z();ya=bd((Xa||oc)+(yb||"/")).slice(0,4)}function na(){fb=(new Date).getTime()}function db(){var d=ua(),l=d[0];l<gb?gb=l:l>hb&&(hb=l);d=d[1];d<ib?ib=d:d>jb&&(jb=d);na()}function ua(){var d=document.documentElement;return d?[d.scrollLeft||window.pageXOffset,
d.scrollTop||window.pageYOffset]:[0,0]}function Qa(){var d=ua(),l=d[0];hb=gb=l;jb=ib=d=d[1]}function V(){return sa(Ka+"ses."+ya,"*",rc)}function ta(d){var l=Ka+"id."+ya;d.shift();d=d.join(".");return sa(l,d,sc)}function sa(d,l,q){return S&&!za?!1:"localStorage"==L?cb(d,l,q):"cookie"==L||"cookieAndLocalStorage"==L?(ca(d,l,q,yb,Xa,kb,lb),-1!==document.cookie.indexOf("".concat(d,"="))?!0:!1):!1}function Da(d){var l=Ka+"id."+ya,q=Ka+"ses."+ya;hc(l);hc(q);ca(l,"",-1,"/",Xa,kb,lb);ca(q,"",-1,"/",Xa,kb,
lb);null!==d&&void 0!==d&&d.preserveSession||(ia=fa.v4(),X=1);null!==d&&void 0!==d&&d.preserveUser||(eb=S?"":fa.v4(),Aa=null)}function Ca(d){d&&d.stateStorageStrategy&&(k.stateStorageStrategy=d.stateStorageStrategy,L=tc(k));S=!!k.anonymousTracking;za=uc(k);zb=vc(k);qa.setUseLocalStorage("localStorage"==L||"cookieAndLocalStorage"==L);qa.setAnonymousTracking(zb)}function Ha(){if(!S||za){var d="none"!=L&&!!E("ses"),l=wa();if(l[1])var q=l[1];else q=S?"":fa.v4(),l[1]=q;eb=q;ia=d?l[6]:Va(l);X=l[3];"none"!=
L&&(V(),vb(l),ta(l))}}function wa(){if("none"==L)return["1","",0,0,0,void 0,"","","",void 0,0];var d=E("id")||void 0;return $c(d,eb,ia,X)}function R(d){return 0===d.indexOf("http")?d:("https:"===document.location.protocol?"https":"http")+"://"+d}function aa(){wc&&null!=u.pageViewId||(u.pageViewId=fa.v4())}function F(){null==u.pageViewId&&(u.pageViewId=fa.v4());return u.pageViewId}function Ra(){if("none"===L||S||!xc)return null;var d=ic("_sp_tab_id");if(!d){d=fa.v4();try{window.sessionStorage.setItem("_sp_tab_id",
d)}catch(l){}d=ic("_sp_tab_id")}return d||null}function Ia(){return{contexts:function(){return[{schema:"iglu:com.snowplowanalytics.snowplow/web_page/jsonschema/1-0-0",data:{id:F()}}]}}}function ub(){return{contexts:function(){return[{schema:"iglu:com.snowplowanalytics.snowplow/browser_context/jsonschema/2-0-0",data:U(U({},wb()),{tabId:Ra()})}]}}}function Fa(d){var l=d.title,q=d.context,D=d.timestamp;d=d.contextCallback;z();yc&&aa();yc=!0;La=document.title;Ya=l;l=kc(Ya||La);Y.track(Wc({pageUrl:H(Ma||
pa),pageTitle:l,referrer:H(mb||Wa)}),(q||[]).concat(d?d():[]),D);D=new Date;l=!1;if(Q.enabled&&!Q.installed){l=Q.installed=!0;var G={update:function(){if("undefined"!==typeof window&&"function"===typeof window.addEventListener){var W=!1,O=Object.defineProperty({},"passive",{get:function(){W=!0},set:function(){}}),Na=function(){};window.addEventListener("testPassiveEventSupport",Na,O);window.removeEventListener("testPassiveEventSupport",Na,O);G.hasSupport=W}}};G.update();var M="onwheel"in document.createElement("div")?
"wheel":void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll";Object.prototype.hasOwnProperty.call(G,"hasSupport")?ma(document,M,na,{passive:!0}):ma(document,M,na);Qa();M=function(W,O){void 0===O&&(O=na);return function(Na){return ma(document,Na,O)}};"click mouseup mousedown mousemove keypress keydown keyup touchend touchstart".split(" ").forEach(M(document));["resize","focus","blur"].forEach(M(window));M(window,db)("scroll")}if(Q.enabled&&(cd||l))for(D in fb=D.getTime(),D=void 0,Q.configurations)if(l=
Q.configurations[D])window.clearInterval(l.activityInterval),Ja(l,q,d)}function Ja(d,l,q){var D=function(W,O){z();W({context:O,pageViewId:F(),minXOffset:gb,minYOffset:ib,maxXOffset:hb,maxYOffset:jb});Qa()},G=function(){fb+d.configMinimumVisitLength>(new Date).getTime()&&D(d.callback,(l||[]).concat(q?q():[]));d.activityInterval=window.setInterval(M,d.configHeartBeatTimer)},M=function(){fb+d.configHeartBeatTimer>(new Date).getTime()&&D(d.callback,(l||[]).concat(q?q():[]))};d.activityInterval=0===d.configMinimumVisitLength?
window.setInterval(M,d.configHeartBeatTimer):window.setTimeout(G,d.configMinimumVisitLength)}function Ta(d){var l=d.minimumVisitLength,q=d.heartbeatDelay;d=d.callback;if(jc(l)&&jc(q))return{configMinimumVisitLength:1E3*l,configHeartBeatTimer:1E3*q,callback:d};Z.error("Activity tracking minimumVisitLength & heartbeatDelay must be integers")}function Ea(d){var l=d.context,q=d.minXOffset,D=d.minYOffset,G=d.maxXOffset,M=d.maxYOffset;d=document.title;d!==La&&(La=d,Ya=void 0);d=Y;var W=d.track,O=H(Ma||
pa),Na=kc(Ya||La),dd=H(mb||Wa);q=Math.round(q);G=Math.round(G);D=Math.round(D);M=Math.round(M);var ja=$a();ja.add("e","pp");ja.add("url",O);ja.add("page",Na);ja.add("refr",dd);q&&!isNaN(Number(q))&&ja.add("pp_mix",q.toString());G&&!isNaN(Number(G))&&ja.add("pp_max",G.toString());D&&!isNaN(Number(D))&&ja.add("pp_miy",D.toString());M&&!isNaN(Number(M))&&ja.add("pp_may",M.toString());W.call(d,ja,l)}function Ua(d){var l=Q.configurations[d];0===(null===l||void 0===l?void 0:l.configMinimumVisitLength)?
window.clearTimeout(null===l||void 0===l?void 0:l.activityInterval):window.clearInterval(null===l||void 0===l?void 0:l.activityInterval);Q.configurations[d]=void 0}var va,m,x,v,t,A,J,ba,Sa,ea,ha,oa,Ga,Ab,Bb,Cb,Db,Eb,Fb,Gb,Hb,Ib,Jb,Kb,Lb,Mb,Nb,Ob;k.eventMethod=null!==(va=k.eventMethod)&&void 0!==va?va:"post";var tc=function(d){var l;return null!==(l=d.stateStorageStrategy)&&void 0!==l?l:"cookieAndLocalStorage"},uc=function(d){var l,q;return"boolean"===typeof d.anonymousTracking?!1:null!==(q=!0===(null===
(l=d.anonymousTracking)||void 0===l?void 0:l.withSessionTracking))&&void 0!==q?q:!1},vc=function(d){var l,q;return"boolean"===typeof d.anonymousTracking?!1:null!==(q=!0===(null===(l=d.anonymousTracking)||void 0===l?void 0:l.withServerAnonymisation))&&void 0!==q?q:!1},ed=null!==(x=null===(m=null===k||void 0===k?void 0:k.contexts)||void 0===m?void 0:m.browser)&&void 0!==x?x:!1,xc=null!==(t=null===(v=null===k||void 0===k?void 0:k.contexts)||void 0===v?void 0:v.webPage)&&void 0!==t?t:!0;h.push(function(){return{beforeTrack:function(d){var l=
E("ses"),q=wa(),D=0===q[10];Pb=Qb?!!ca(Qb):!1;if(zc||Pb)Da();else{"0"===q[0]?(ia=l||"none"==L?q[6]:Va(q),X=q[3]):(new Date).getTime()-Rb>1E3*rc&&(X++,ia=Va(q,{memorizedVisitCount:X}));vb(q);if(0===q[10]){var G=d.build();q[8]=G.eid;G=G.dtm||G.ttm;q[9]=G?parseInt(G):void 0}q[10]+=1;G=wb();var M=G.documentSize;d.add("vp",G.viewport);d.add("ds",M);d.add("vid",za?X:S?null:X);d.add("sid",za?ia:S?null:ia);d.add("duid",S?null:q[1]);d.add("uid",S?null:Aa);z();d.add("refr",H(mb||Wa));d.add("url",H(Ma||pa));
G=nc(q,L,S);!fd||S&&!za||d.addContextEntity({schema:"iglu:com.snowplowanalytics.snowplow/client_session/jsonschema/1-0-2",data:G});"none"!=L&&(ta(q),d=V(),l&&!D||!d||!nb||Sb||(nb(G),Sb=!1));Rb=(new Date).getTime()}}}}());xc&&h.push(Ia());ed&&h.push(ub());h.push.apply(h,null!==(A=k.plugins)&&void 0!==A?A:[]);var Y=Vc({base64:k.encodeBase64,corePlugins:h,callback:function(d){zc||Pb||qa.enqueueRequest(d.build(),Tb)}}),gd=document.characterSet||document.charset,xa=mc(window.location.hostname,window.location.href,
tb()),oc=lc(xa[0]),pa=xa[1],Wa=xa[2],mb,hd=null!==(J=k.platform)&&void 0!==J?J:"web",Tb=R(y),id=null!==(ba=k.postPath)&&void 0!==ba?ba:"/com.snowplowanalytics.snowplow/tp2",jd=null!==(Sa=k.appId)&&void 0!==Sa?Sa:"",Ma,La=document.title,Ya,cd=null!==(ea=k.resetActivityTrackingOnPageView)&&void 0!==ea?ea:!0,pc,qc,Ka=null!==(ha=k.cookieName)&&void 0!==ha?ha:"_sp_",Xa=null!==(oa=k.cookieDomain)&&void 0!==oa?oa:void 0,yb="/",kb=null!==(Ga=k.cookieSameSite)&&void 0!==Ga?Ga:"None",lb=null!==(Ab=k.cookieSecure)&&
void 0!==Ab?Ab:!0,Ac=navigator.doNotTrack||navigator.msDoNotTrack||window.doNotTrack,zc="undefined"!==typeof k.respectDoNotTrack?k.respectDoNotTrack&&("yes"===Ac||"1"===Ac):!1,Qb,sc=null!==(Bb=k.cookieLifetime)&&void 0!==Bb?Bb:63072E3,rc=null!==(Cb=k.sessionCookieTimeout)&&void 0!==Cb?Cb:1800,za=uc(k),zb=vc(k),S=!!k.anonymousTracking,L=tc(k),fb,Rb=(new Date).getTime(),gb,hb,ib,jb,ya,eb,ia,X=1,Aa,qa=Zc(r,u,"localStorage"==L||"cookieAndLocalStorage"==L,k.eventMethod,id,null!==(Db=k.bufferSize)&&void 0!==
Db?Db:1,null!==(Eb=k.maxPostBytes)&&void 0!==Eb?Eb:4E4,null!==(Fb=k.maxGetBytes)&&void 0!==Fb?Fb:0,null!==(Gb=k.useStm)&&void 0!==Gb?Gb:!0,null!==(Hb=k.maxLocalStorageQueueSize)&&void 0!==Hb?Hb:1E3,null!==(Ib=k.connectionTimeout)&&void 0!==Ib?Ib:5E3,zb,null!==(Jb=k.customHeaders)&&void 0!==Jb?Jb:{},null!==(Kb=k.withCredentials)&&void 0!==Kb?Kb:!0,null!==(Lb=k.retryStatusCodes)&&void 0!==Lb?Lb:[],(null!==(Mb=k.dontRetryStatusCodes)&&void 0!==Mb?Mb:[]).concat([400,401,403,410,422]),k.idService,k.retryFailedRequests),
wc=!1,yc=!1,Q={enabled:!1,installed:!1,configurations:{}},fd=null!==(Ob=null===(Nb=k.contexts)||void 0===Nb?void 0:Nb.session)&&void 0!==Ob?Ob:!1,Pb,nb=k.onSessionUpdateCallback,Sb=!1;k.hasOwnProperty("discoverRootDomain")&&k.discoverRootDomain&&(Xa=Xc(kb,lb));var ob=wb(),kd=ob.browserLanguage,ld=ob.resolution,md=ob.colorDepth,nd=ob.cookiesEnabled;Y.setTrackerVersion(B);Y.setTrackerNamespace(p);Y.setAppId(jd);Y.setPlatform(hd);Y.addPayloadPair("cookie",nd?"1":"0");Y.addPayloadPair("cs",gd);Y.addPayloadPair("lang",
kd);Y.addPayloadPair("res",ld);Y.addPayloadPair("cd",md);da();Ha();k.crossDomainLinker&&P(k.crossDomainLinker);return U(U({},{getDomainSessionIndex:function(){return X},getPageViewId:F,getTabId:Ra,newSession:function(){var d=wa();"0"===d[0]?(ia="none"!=L?Va(d):d[6],X=d[3]):(X++,ia=Va(d,{memorizedVisitCount:X}));vb(d);if("none"!=L){var l=nc(d,L,S);ta(d);V()&&nb&&(Sb=!0,nb(l))}Rb=(new Date).getTime()},getCookieName:function(d){return Ka+d+"."+ya},getUserId:function(){return Aa},getDomainUserId:function(){return wa()[1]},
getDomainUserInfo:function(){return wa()},setReferrerUrl:function(d){mb=d},setCustomUrl:function(d){z();var l=pa,q;I(d)?Ma=d:"/"===d.slice(0,1)?Ma=I(l)+"://"+sb(l)+d:(l=H(l),0<=(q=l.indexOf("?"))&&(l=l.slice(0,q)),(q=l.lastIndexOf("/"))!==l.length-1&&(l=l.slice(0,q+1)),Ma=l+d)},setDocumentTitle:function(d){La=document.title;Ya=d},discardHashTag:function(d){pc=d},discardBrace:function(d){qc=d},setCookiePath:function(d){yb=d;da()},setVisitorCookieTimeout:function(d){sc=d},crossDomainLinker:function(d){P(d)},
enableActivityTracking:function(d){Q.configurations.pagePing||(Q.enabled=!0,Q.configurations.pagePing=Ta(U(U({},d),{callback:Ea})))},enableActivityTrackingCallback:function(d){Q.configurations.callback||(Q.enabled=!0,Q.configurations.callback=Ta(d))},disableActivityTracking:function(){Ua("pagePing")},disableActivityTrackingCallback:function(){Ua("callback")},updatePageActivity:function(){na()},setOptOutCookie:function(d){Qb=d},setUserId:function(d){Aa=d},setUserIdFromLocation:function(d){z();Aa=Pa(d,
pa)},setUserIdFromReferrer:function(d){z();Aa=Pa(d,Wa)},setUserIdFromCookie:function(d){Aa=ca(d)},setCollectorUrl:function(d){Tb=R(d);qa.setCollectorUrl(Tb)},setBufferSize:function(d){qa.setBufferSize(d)},flushBuffer:function(d){void 0===d&&(d={});qa.executeQueue();d.newBufferSize&&qa.setBufferSize(d.newBufferSize)},trackPageView:function(d){void 0===d&&(d={});Fa(d)},preservePageViewId:function(){wc=!0},disableAnonymousTracking:function(d){k.anonymousTracking=!1;Ca(d);Ha();qa.executeQueue()},enableAnonymousTracking:function(d){var l;
k.anonymousTracking=null!==(l=d&&(null===d||void 0===d?void 0:d.options))&&void 0!==l?l:!0;Ca(d);za||aa()},clearUserData:Da}),{id:r,namespace:p,core:Y,sharedState:u})}(a,b,c,e,f,g);var n=U(U({},a),{addPlugin:function(r){var p,B;n.core.addPlugin(r);null===(B=(p=r.plugin).activateBrowserPlugin)||void 0===B?void 0:B.call(p,n)}});h.forEach(function(r){var p;null===(p=r.activateBrowserPlugin)||void 0===p?void 0:p.call(r,n)});return n}function C(a,b){try{var c=null!==a&&void 0!==a?a:Object.keys(Za);a=Za;
for(var e=[],f=0;f<c.length;f++){var g=c[f];a.hasOwnProperty(g)?e.push(a[g]):Z.warn(g+" not configured")}e.forEach(b)}catch(h){Z.error("Function failed",h)}}function od(){function a(){"hidden"==f.visibilityState&&e.bufferFlushers.forEach(function(h){h(!1)})}function b(){var h;if(!e.hasLoaded)for(e.hasLoaded=!0,h=0;h<e.registeredOnLoadHandlers.length;h++)e.registeredOnLoadHandlers[h]();return!0}function c(){f.addEventListener?f.addEventListener("DOMContentLoaded",function n(){f.removeEventListener("DOMContentLoaded",
n,!1);b()}):f.attachEvent&&f.attachEvent("onreadystatechange",function r(){"complete"===f.readyState&&(f.detachEvent("onreadystatechange",r),b())});ma(g,"load",b,!1)}var e=new pd,f=document,g=window;f.visibilityState&&ma(f,"visibilitychange",a,!1);ma(g,"beforeunload",function(){e.bufferFlushers.forEach(function(h){h(!1)})},!1);"loading"===document.readyState?c():b();return e}var U=function(){U=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 U.apply(this,arguments)},ra={},Bc="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(Bc){var Cc=new Uint8Array(16);ra=function(){Bc(Cc);return Cc}}else{var Dc=Array(16);ra=function(){for(var a=0,b;16>a;a++)0===(a&3)&&(b=4294967296*Math.random()),Dc[a]=b>>>((a&3)<<3)&255;return Dc}}for(var N=[],pb=0;256>pb;++pb)N[pb]=
(pb+256).toString(16).substr(1);var Ec=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("")},qd=ra,Fc,Ub,Vb=0,Wb=0,rd=ra;ra=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||rd)();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||Ec(a)};ra.v1=function(a,
b,c){c=b&&c||0;var e=b||[];a=a||{};var f=a.node||Fc,g=void 0!==a.clockseq?a.clockseq:Ub;if(null==f||null==g){var h=qd();null==f&&(f=Fc=[h[0]|1,h[1],h[2],h[3],h[4],h[5]]);null==g&&(g=Ub=(h[6]<<8|h[7])&16383)}h=void 0!==a.msecs?a.msecs:(new Date).getTime();var n=void 0!==a.nsecs?a.nsecs:Wb+1,r=h-Vb+(n-Wb)/1E4;0>r&&void 0===a.clockseq&&(g=g+1&16383);(0>r||h>Vb)&&void 0===a.nsecs&&(n=0);if(1E4<=n)throw Error("uuid.v1(): Can't create more than 10M uuids/sec");Vb=h;Wb=n;Ub=g;h+=122192928E5;a=(1E4*(h&268435455)+
n)%4294967296;e[c++]=a>>>24&255;e[c++]=a>>>16&255;e[c++]=a>>>8&255;e[c++]=a&255;a=h/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++]=g>>>8|128;e[c++]=g&255;for(g=0;6>g;++g)e[c+g]=f[g];return b?b:Ec(e)};var fa=ra.v4=ra,la="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",ka;(function(a){a[a.none=0]="none";a[a.error=1]="error";a[a.warn=2]="warn";a[a.debug=3]="debug";a[a.info=4]="info"})(ka||(ka={}));var Z=function(a){void 0===a&&(a=
ka.warn);return{setLogLevel:function(b){a=ka[b]?b:ka.warn},warn:function(b,c){for(var e=[],f=2;f<arguments.length;f++)e[f-2]=arguments[f];a>=ka.warn&&"undefined"!==typeof console&&(f="Snowplow: "+b,c?console.warn.apply(console,T([f+"\n",c],e,!1)):console.warn.apply(console,T([f],e,!1)))},error:function(b,c){for(var e=[],f=2;f<arguments.length;f++)e[f-2]=arguments[f];a>=ka.error&&"undefined"!==typeof console&&(f="Snowplow: "+b+"\n",c?console.error.apply(console,T([f+"\n",c],e,!1)):console.error.apply(console,
T([f],e,!1)))},debug:function(b){for(var c=[],e=1;e<arguments.length;e++)c[e-1]=arguments[e];a>=ka.debug&&"undefined"!==typeof console&&console.debug.apply(console,T(["Snowplow: "+b],c,!1))},info:function(b){for(var c=[],e=1;e<arguments.length;e++)c[e-1]=arguments[e];a>=ka.info&&"undefined"!==typeof console&&console.info.apply(console,T(["Snowplow: "+b],c,!1))}}}(),Gc={},Hc={};(function(){var a={rotl:function(b,c){return b<<c|b>>>32-c},rotr:function(b,c){return b<<32-c|b>>>c},endian:function(b){if(b.constructor==
Number)return a.rotl(b,8)&16711935|a.rotl(b,24)&4278255360;for(var c=0;c<b.length;c++)b[c]=a.endian(b[c]);return b},randomBytes:function(b){for(var c=[];0<b;b--)c.push(Math.floor(256*Math.random()));return c},bytesToWords:function(b){for(var c=[],e=0,f=0;e<b.length;e++,f+=8)c[f>>>5]|=b[e]<<24-f%32;return c},wordsToBytes:function(b){for(var c=[],e=0;e<32*b.length;e+=8)c.push(b[e>>>5]>>>24-e%32&255);return c},bytesToHex:function(b){for(var c=[],e=0;e<b.length;e++)c.push((b[e]>>>4).toString(16)),c.push((b[e]&
15).toString(16));return c.join("")},hexToBytes:function(b){for(var c=[],e=0;e<b.length;e+=2)c.push(parseInt(b.substr(e,2),16));return c},bytesToBase64:function(b){for(var c=[],e=0;e<b.length;e+=3)for(var f=b[e]<<16|b[e+1]<<8|b[e+2],g=0;4>g;g++)8*e+6*g<=8*b.length?c.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(f>>>6*(3-g)&63)):c.push("=");return c.join("")},base64ToBytes:function(b){b=b.replace(/[^A-Z0-9+\/]/ig,"");for(var c=[],e=0,f=0;e<b.length;f=++e%4)0!=f&&c.push(("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(b.charAt(e-
1))&Math.pow(2,-2*f+8)-1)<<2*f|"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(b.charAt(e))>>>6-2*f);return c}};Hc=a})();var Xb={utf8:{stringToBytes:function(a){return Xb.bin.stringToBytes(unescape(encodeURIComponent(a)))},bytesToString:function(a){return decodeURIComponent(escape(Xb.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("")}}},Ic=Xb;(function(){var a=Hc,b=Ic.utf8,c=Ic.bin,e=function(f,g){var h=a.wordsToBytes,n=f;n.constructor==String?n=b.stringToBytes(n):"undefined"!==typeof Buffer&&"function"==typeof Buffer.isBuffer&&Buffer.isBuffer(n)?n=Array.prototype.slice.call(n,0):Array.isArray(n)||(n=n.toString());f=a.bytesToWords(n);var r=8*n.length;n=[];var p=1732584193,B=-271733879,y=-1732584194,u=271733878,k=-1009589776;f[r>>5]|=128<<24-r%32;f[(r+64>>>9<<4)+15]=r;for(r=0;r<f.length;r+=16){for(var z=p,K=B,
P=y,H=u,I=k,E=0;80>E;E++){if(16>E)n[E]=f[r+E];else{var da=n[E-3]^n[E-8]^n[E-14]^n[E-16];n[E]=da<<1|da>>>31}da=(p<<5|p>>>27)+k+(n[E]>>>0)+(20>E?(B&y|~B&u)+1518500249:40>E?(B^y^u)+1859775393:60>E?(B&y|B&u|y&u)-1894007588:(B^y^u)-899497514);k=u;u=y;y=B<<30|B>>>2;B=p;p=da}p+=z;B+=K;y+=P;u+=H;k+=I}h=h.call(a,[p,B,y,u,k]);return g&&g.asBytes?h:g&&g.asString?c.bytesToString(h):a.bytesToHex(h)};e._blocksize=16;e._digestsize=20;Gc=e})();var bd=Gc,Za={},pd=function(){return function(){this.outQueues=[];this.bufferFlushers=
[];this.hasLoaded=!1;this.registeredOnLoadHandlers=[]}}(),Jc="undefined"!==typeof window?od():void 0;w.addGlobalContexts=function(a,b){C(b,function(c){c.core.addGlobalContexts(a)})};w.addPlugin=function(a,b){C(b,function(c){c.addPlugin(a)})};w.clearGlobalContexts=function(a){C(a,function(b){b.core.clearGlobalContexts()})};w.clearUserData=function(a,b){C(b,function(c){c.clearUserData(a)})};w.crossDomainLinker=function(a,b){C(b,function(c){c.crossDomainLinker(a)})};w.disableActivityTracking=function(a){C(a,
function(b){b.disableActivityTracking()})};w.disableActivityTrackingCallback=function(a){C(a,function(b){b.disableActivityTrackingCallback()})};w.disableAnonymousTracking=function(a,b){C(b,function(c){c.disableAnonymousTracking(a)})};w.discardBrace=function(a,b){C(b,function(c){c.discardBrace(a)})};w.discardHashTag=function(a,b){C(b,function(c){c.discardHashTag(a)})};w.enableActivityTracking=function(a,b){C(b,function(c){c.enableActivityTracking(a)})};w.enableActivityTrackingCallback=function(a,b){C(b,
function(c){c.enableActivityTrackingCallback(a)})};w.enableAnonymousTracking=function(a,b){C(b,function(c){c.enableAnonymousTracking(a)})};w.flushBuffer=function(a,b){C(b,function(c){c.flushBuffer(a)})};w.newSession=function(a){C(a,function(b){b.newSession()})};w.newTracker=function(a,b,c){void 0===c&&(c={});if(Jc){var e="js-".concat("3.18.0");Za.hasOwnProperty(a)?a=null:(Za[a]=ad(a,a,e,b,Jc,c),a=Za[a]);return a}};w.preservePageViewId=function(a){C(a,function(b){b.preservePageViewId()})};w.removeGlobalContexts=
function(a,b){C(b,function(c){c.core.removeGlobalContexts(a)})};w.setBufferSize=function(a,b){C(b,function(c){c.setBufferSize(a)})};w.setCollectorUrl=function(a,b){C(b,function(c){c.setCollectorUrl(a)})};w.setCookiePath=function(a,b){C(b,function(c){c.setCookiePath(a)})};w.setCustomUrl=function(a,b){C(b,function(c){c.setCustomUrl(a)})};w.setDocumentTitle=function(a,b){C(b,function(c){c.setDocumentTitle(a)})};w.setOptOutCookie=function(a,b){C(b,function(c){c.setOptOutCookie(a)})};w.setReferrerUrl=
function(a,b){C(b,function(c){c.setReferrerUrl(a)})};w.setUserId=function(a,b){C(b,function(c){c.setUserId(a)})};w.setUserIdFromCookie=function(a,b){C(b,function(c){c.setUserIdFromCookie(a)})};w.setUserIdFromLocation=function(a,b){C(b,function(c){c.setUserIdFromLocation(a)})};w.setUserIdFromReferrer=function(a,b){C(b,function(c){c.setUserIdFromReferrer(a)})};w.setVisitorCookieTimeout=function(a,b){C(b,function(c){c.setVisitorCookieTimeout(a)})};w.trackPageView=function(a,b){C(b,function(c){c.trackPageView(a)})};
w.trackSelfDescribingEvent=function(a,b){C(b,function(c){c=c.core;var e=c.track,f=a.event,g=f.schema,h=f.data;f=$a();g={schema:"iglu:com.snowplowanalytics.snowplow/unstruct_event/jsonschema/1-0-0",data:{schema:g,data:h}};f.add("e","ue");f.addJson("ue_px","ue_pr",g);e.call(c,f,a.context,a.timestamp)})};w.trackStructEvent=function(a,b){C(b,function(c){c=c.core;var e=c.track,f=a.category,g=a.action,h=a.label,n=a.property,r=a.value,p=$a();p.add("e","se");p.add("se_ca",f);p.add("se_ac",g);p.add("se_la",
h);p.add("se_pr",n);p.add("se_va",null==r?void 0:r.toString());e.call(c,p,a.context,a.timestamp)})};w.updatePageActivity=function(a){C(a,function(b){b.updatePageActivity()})};w.version="3.18.0";Object.defineProperty(w,"__esModule",{value:!0})})
function xb(a){return a&&a.split("x").map(function(b){return Math.floor(Number(b))}).join("x")}function ad(a,b,c,e,f,g){void 0===g&&(g={});var h=[];a=function(r,q,B,y,u,k){function z(){xa=mc(window.location.hostname,window.location.href,tb());xa[1]!==pa&&(Wa=tb(pa));oc=lc(xa[0]);pa=xa[1]}function K(d){var l=(new Date).getTime();d=d.currentTarget;if(null===d||void 0===d?0:d.href){l="_sp="+(eb+"."+l);var p=d.href.split("#"),D=p[0].split("?"),G=D.shift();if(D=D.join("?")){for(var M=!0,W=D.split("&"),
O=0;O<W.length;O++)if("_sp="===W[O].substr(0,4)){M=!1;W[O]=l;D=W.join("&");break}M&&(D=l+"&"+D)}else D=l;p[0]=G+"?"+D;l=p.join("#");d.href=l}}function P(d){for(var l=0;l<document.links.length;l++){var p=document.links[l];!p.spDecorationEnabled&&d(p)&&(ma(p,"click",K,!0),ma(p,"mousedown",K,!0),p.spDecorationEnabled=!0)}}function H(d){if(pc){var l=/#.*/;d=d.replace(l,"")}qc&&(l=/[{}]/g,d=d.replace(l,""));return d}function I(d){return(d=/^([a-z]+):/.exec(d))?d[1]:null}function E(d){d=Ka+d+"."+ya;if("localStorage"==
L){try{var l=window.localStorage,p=l.getItem(d+".expires");if(null===p||+p>Date.now())var D=l.getItem(d);else l.removeItem(d),l.removeItem(d+".expires"),D=void 0}catch(G){D=void 0}return D}if("cookie"==L||"cookieAndLocalStorage"==L)return ca(d)}function da(){z();ya=bd((Xa||oc)+(yb||"/")).slice(0,4)}function na(){fb=(new Date).getTime()}function db(){var d=ua(),l=d[0];l<gb?gb=l:l>hb&&(hb=l);d=d[1];d<ib?ib=d:d>jb&&(jb=d);na()}function ua(){var d=document.documentElement;return d?[d.scrollLeft||window.pageXOffset,
d.scrollTop||window.pageYOffset]:[0,0]}function Qa(){var d=ua(),l=d[0];hb=gb=l;jb=ib=d=d[1]}function V(){return sa(Ka+"ses."+ya,"*",rc)}function ta(d){var l=Ka+"id."+ya;var p=Q;d=S([],d,!0);p&&(d[1]="",d[7]="");d.shift();p=d.join(".");return sa(l,p,sc)}function sa(d,l,p){return Q&&!za?!1:"localStorage"==L?cb(d,l,p):"cookie"==L||"cookieAndLocalStorage"==L?(ca(d,l,p,yb,Xa,kb,lb),-1!==document.cookie.indexOf("".concat(d,"="))?!0:!1):!1}function Da(d){var l=Ka+"id."+ya,p=Ka+"ses."+ya;hc(l);hc(p);ca(l,
"",-1,"/",Xa,kb,lb);ca(p,"",-1,"/",Xa,kb,lb);null!==d&&void 0!==d&&d.preserveSession||(ia=fa.v4(),X=1);null!==d&&void 0!==d&&d.preserveUser||(eb=Q?"":fa.v4(),Aa=null)}function Ca(d){d&&d.stateStorageStrategy&&(k.stateStorageStrategy=d.stateStorageStrategy,L=tc(k));Q=!!k.anonymousTracking;za=uc(k);zb=vc(k);qa.setUseLocalStorage("localStorage"==L||"cookieAndLocalStorage"==L);qa.setAnonymousTracking(zb)}function Ha(){if(!Q||za){var d="none"!=L&&!!E("ses"),l=wa();if(l[1])var p=l[1];else p=Q?"":fa.v4(),
l[1]=p;eb=p;ia=d?l[6]:Va(l);X=l[3];"none"!=L&&(V(),vb(l),ta(l))}}function wa(){if("none"==L)return["1","",0,0,0,void 0,"","","",void 0,0];var d=E("id")||void 0;return $c(d,eb,ia,X)}function T(d){return 0===d.indexOf("http")?d:("https:"===document.location.protocol?"https":"http")+"://"+d}function aa(){wc&&null!=u.pageViewId||(u.pageViewId=fa.v4())}function F(){null==u.pageViewId&&(u.pageViewId=fa.v4());return u.pageViewId}function Ra(){if("none"===L||Q||!xc)return null;var d=ic("_sp_tab_id");if(!d){d=
fa.v4();try{window.sessionStorage.setItem("_sp_tab_id",d)}catch(l){}d=ic("_sp_tab_id")}return d||null}function Ia(){return{contexts:function(){return[{schema:"iglu:com.snowplowanalytics.snowplow/web_page/jsonschema/1-0-0",data:{id:F()}}]}}}function ub(){return{contexts:function(){return[{schema:"iglu:com.snowplowanalytics.snowplow/browser_context/jsonschema/2-0-0",data:U(U({},wb()),{tabId:Ra()})}]}}}function Fa(d){var l=d.title,p=d.context,D=d.timestamp;d=d.contextCallback;z();yc&&aa();yc=!0;La=document.title;
Ya=l;l=kc(Ya||La);Y.track(Wc({pageUrl:H(Ma||pa),pageTitle:l,referrer:H(mb||Wa)}),(p||[]).concat(d?d():[]),D);D=new Date;l=!1;if(R.enabled&&!R.installed){l=R.installed=!0;var G={update:function(){if("undefined"!==typeof window&&"function"===typeof window.addEventListener){var W=!1,O=Object.defineProperty({},"passive",{get:function(){W=!0},set:function(){}}),Na=function(){};window.addEventListener("testPassiveEventSupport",Na,O);window.removeEventListener("testPassiveEventSupport",Na,O);G.hasSupport=
W}}};G.update();var M="onwheel"in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll";Object.prototype.hasOwnProperty.call(G,"hasSupport")?ma(document,M,na,{passive:!0}):ma(document,M,na);Qa();M=function(W,O){void 0===O&&(O=na);return function(Na){return ma(document,Na,O)}};"click mouseup mousedown mousemove keypress keydown keyup touchend touchstart".split(" ").forEach(M(document));["resize","focus","blur"].forEach(M(window));M(window,db)("scroll")}if(R.enabled&&
(cd||l))for(D in fb=D.getTime(),D=void 0,R.configurations)if(l=R.configurations[D])window.clearInterval(l.activityInterval),Ja(l,p,d)}function Ja(d,l,p){var D=function(W,O){z();W({context:O,pageViewId:F(),minXOffset:gb,minYOffset:ib,maxXOffset:hb,maxYOffset:jb});Qa()},G=function(){fb+d.configMinimumVisitLength>(new Date).getTime()&&D(d.callback,(l||[]).concat(p?p():[]));d.activityInterval=window.setInterval(M,d.configHeartBeatTimer)},M=function(){fb+d.configHeartBeatTimer>(new Date).getTime()&&D(d.callback,
(l||[]).concat(p?p():[]))};d.activityInterval=0===d.configMinimumVisitLength?window.setInterval(M,d.configHeartBeatTimer):window.setTimeout(G,d.configMinimumVisitLength)}function Ta(d){var l=d.minimumVisitLength,p=d.heartbeatDelay;d=d.callback;if(jc(l)&&jc(p))return{configMinimumVisitLength:1E3*l,configHeartBeatTimer:1E3*p,callback:d};Z.error("Activity tracking minimumVisitLength & heartbeatDelay must be integers")}function Ea(d){var l=d.context,p=d.minXOffset,D=d.minYOffset,G=d.maxXOffset,M=d.maxYOffset;
d=document.title;d!==La&&(La=d,Ya=void 0);d=Y;var W=d.track,O=H(Ma||pa),Na=kc(Ya||La),dd=H(mb||Wa);p=Math.round(p);G=Math.round(G);D=Math.round(D);M=Math.round(M);var ja=$a();ja.add("e","pp");ja.add("url",O);ja.add("page",Na);ja.add("refr",dd);p&&!isNaN(Number(p))&&ja.add("pp_mix",p.toString());G&&!isNaN(Number(G))&&ja.add("pp_max",G.toString());D&&!isNaN(Number(D))&&ja.add("pp_miy",D.toString());M&&!isNaN(Number(M))&&ja.add("pp_may",M.toString());W.call(d,ja,l)}function Ua(d){var l=R.configurations[d];
0===(null===l||void 0===l?void 0:l.configMinimumVisitLength)?window.clearTimeout(null===l||void 0===l?void 0:l.activityInterval):window.clearInterval(null===l||void 0===l?void 0:l.activityInterval);R.configurations[d]=void 0}var va,m,x,v,t,A,J,ba,Sa,ea,ha,oa,Ga,Ab,Bb,Cb,Db,Eb,Fb,Gb,Hb,Ib,Jb,Kb,Lb,Mb,Nb,Ob;k.eventMethod=null!==(va=k.eventMethod)&&void 0!==va?va:"post";var tc=function(d){var l;return null!==(l=d.stateStorageStrategy)&&void 0!==l?l:"cookieAndLocalStorage"},uc=function(d){var l,p;return"boolean"===
typeof d.anonymousTracking?!1:null!==(p=!0===(null===(l=d.anonymousTracking)||void 0===l?void 0:l.withSessionTracking))&&void 0!==p?p:!1},vc=function(d){var l,p;return"boolean"===typeof d.anonymousTracking?!1:null!==(p=!0===(null===(l=d.anonymousTracking)||void 0===l?void 0:l.withServerAnonymisation))&&void 0!==p?p:!1},ed=null!==(x=null===(m=null===k||void 0===k?void 0:k.contexts)||void 0===m?void 0:m.browser)&&void 0!==x?x:!1,xc=null!==(t=null===(v=null===k||void 0===k?void 0:k.contexts)||void 0===
v?void 0:v.webPage)&&void 0!==t?t:!0;h.push(function(){return{beforeTrack:function(d){var l=E("ses"),p=wa(),D=0===p[10];Pb=Qb?!!ca(Qb):!1;if(zc||Pb)Da();else{"0"===p[0]?(ia=l||"none"==L?p[6]:Va(p),X=p[3]):(new Date).getTime()-Rb>1E3*rc&&(X++,ia=Va(p,{memorizedVisitCount:X}));vb(p);if(0===p[10]){var G=d.build();p[8]=G.eid;G=G.dtm||G.ttm;p[9]=G?parseInt(G):void 0}p[10]+=1;G=wb();var M=G.documentSize;d.add("vp",G.viewport);d.add("ds",M);d.add("vid",za?X:Q?null:X);d.add("sid",za?ia:Q?null:ia);d.add("duid",
Q?null:p[1]);d.add("uid",Q?null:Aa);z();d.add("refr",H(mb||Wa));d.add("url",H(Ma||pa));G=nc(p,L,Q);!fd||Q&&!za||d.addContextEntity({schema:"iglu:com.snowplowanalytics.snowplow/client_session/jsonschema/1-0-2",data:G});"none"!=L&&(ta(p),d=V(),l&&!D||!d||!nb||Sb||(nb(G),Sb=!1));Rb=(new Date).getTime()}}}}());xc&&h.push(Ia());ed&&h.push(ub());h.push.apply(h,null!==(A=k.plugins)&&void 0!==A?A:[]);var Y=Vc({base64:k.encodeBase64,corePlugins:h,callback:function(d){zc||Pb||qa.enqueueRequest(d.build(),Tb)}}),
gd=document.characterSet||document.charset,xa=mc(window.location.hostname,window.location.href,tb()),oc=lc(xa[0]),pa=xa[1],Wa=xa[2],mb,hd=null!==(J=k.platform)&&void 0!==J?J:"web",Tb=T(y),id=null!==(ba=k.postPath)&&void 0!==ba?ba:"/com.snowplowanalytics.snowplow/tp2",jd=null!==(Sa=k.appId)&&void 0!==Sa?Sa:"",Ma,La=document.title,Ya,cd=null!==(ea=k.resetActivityTrackingOnPageView)&&void 0!==ea?ea:!0,pc,qc,Ka=null!==(ha=k.cookieName)&&void 0!==ha?ha:"_sp_",Xa=null!==(oa=k.cookieDomain)&&void 0!==oa?
oa:void 0,yb="/",kb=null!==(Ga=k.cookieSameSite)&&void 0!==Ga?Ga:"None",lb=null!==(Ab=k.cookieSecure)&&void 0!==Ab?Ab:!0,Ac=navigator.doNotTrack||navigator.msDoNotTrack||window.doNotTrack,zc="undefined"!==typeof k.respectDoNotTrack?k.respectDoNotTrack&&("yes"===Ac||"1"===Ac):!1,Qb,sc=null!==(Bb=k.cookieLifetime)&&void 0!==Bb?Bb:63072E3,rc=null!==(Cb=k.sessionCookieTimeout)&&void 0!==Cb?Cb:1800,za=uc(k),zb=vc(k),Q=!!k.anonymousTracking,L=tc(k),fb,Rb=(new Date).getTime(),gb,hb,ib,jb,ya,eb,ia,X=1,Aa,
qa=Zc(r,u,"localStorage"==L||"cookieAndLocalStorage"==L,k.eventMethod,id,null!==(Db=k.bufferSize)&&void 0!==Db?Db:1,null!==(Eb=k.maxPostBytes)&&void 0!==Eb?Eb:4E4,null!==(Fb=k.maxGetBytes)&&void 0!==Fb?Fb:0,null!==(Gb=k.useStm)&&void 0!==Gb?Gb:!0,null!==(Hb=k.maxLocalStorageQueueSize)&&void 0!==Hb?Hb:1E3,null!==(Ib=k.connectionTimeout)&&void 0!==Ib?Ib:5E3,zb,null!==(Jb=k.customHeaders)&&void 0!==Jb?Jb:{},null!==(Kb=k.withCredentials)&&void 0!==Kb?Kb:!0,null!==(Lb=k.retryStatusCodes)&&void 0!==Lb?
Lb:[],(null!==(Mb=k.dontRetryStatusCodes)&&void 0!==Mb?Mb:[]).concat([400,401,403,410,422]),k.idService,k.retryFailedRequests,k.onRequestSuccess,k.onRequestFailure),wc=!1,yc=!1,R={enabled:!1,installed:!1,configurations:{}},fd=null!==(Ob=null===(Nb=k.contexts)||void 0===Nb?void 0:Nb.session)&&void 0!==Ob?Ob:!1,Pb,nb=k.onSessionUpdateCallback,Sb=!1;k.hasOwnProperty("discoverRootDomain")&&k.discoverRootDomain&&(Xa=Xc(kb,lb));var ob=wb(),kd=ob.browserLanguage,ld=ob.resolution,md=ob.colorDepth,nd=ob.cookiesEnabled;
Y.setTrackerVersion(B);Y.setTrackerNamespace(q);Y.setAppId(jd);Y.setPlatform(hd);Y.addPayloadPair("cookie",nd?"1":"0");Y.addPayloadPair("cs",gd);Y.addPayloadPair("lang",kd);Y.addPayloadPair("res",ld);Y.addPayloadPair("cd",md);da();Ha();k.crossDomainLinker&&P(k.crossDomainLinker);return U(U({},{getDomainSessionIndex:function(){return X},getPageViewId:F,getTabId:Ra,newSession:function(){var d=wa();"0"===d[0]?(ia="none"!=L?Va(d):d[6],X=d[3]):(X++,ia=Va(d,{memorizedVisitCount:X}));vb(d);if("none"!=L){var l=
nc(d,L,Q);ta(d);V()&&nb&&(Sb=!0,nb(l))}Rb=(new Date).getTime()},getCookieName:function(d){return Ka+d+"."+ya},getUserId:function(){return Aa},getDomainUserId:function(){return wa()[1]},getDomainUserInfo:function(){return wa()},setReferrerUrl:function(d){mb=d},setCustomUrl:function(d){z();var l=pa,p;I(d)?Ma=d:"/"===d.slice(0,1)?Ma=I(l)+"://"+sb(l)+d:(l=H(l),0<=(p=l.indexOf("?"))&&(l=l.slice(0,p)),(p=l.lastIndexOf("/"))!==l.length-1&&(l=l.slice(0,p+1)),Ma=l+d)},setDocumentTitle:function(d){La=document.title;
Ya=d},discardHashTag:function(d){pc=d},discardBrace:function(d){qc=d},setCookiePath:function(d){yb=d;da()},setVisitorCookieTimeout:function(d){sc=d},crossDomainLinker:function(d){P(d)},enableActivityTracking:function(d){R.configurations.pagePing||(R.enabled=!0,R.configurations.pagePing=Ta(U(U({},d),{callback:Ea})))},enableActivityTrackingCallback:function(d){R.configurations.callback||(R.enabled=!0,R.configurations.callback=Ta(d))},disableActivityTracking:function(){Ua("pagePing")},disableActivityTrackingCallback:function(){Ua("callback")},
updatePageActivity:function(){na()},setOptOutCookie:function(d){Qb=d},setUserId:function(d){Aa=d},setUserIdFromLocation:function(d){z();Aa=Pa(d,pa)},setUserIdFromReferrer:function(d){z();Aa=Pa(d,Wa)},setUserIdFromCookie:function(d){Aa=ca(d)},setCollectorUrl:function(d){Tb=T(d);qa.setCollectorUrl(Tb)},setBufferSize:function(d){qa.setBufferSize(d)},flushBuffer:function(d){void 0===d&&(d={});qa.executeQueue();d.newBufferSize&&qa.setBufferSize(d.newBufferSize)},trackPageView:function(d){void 0===d&&(d=
{});Fa(d)},preservePageViewId:function(){wc=!0},disableAnonymousTracking:function(d){k.anonymousTracking=!1;Ca(d);Ha();qa.executeQueue()},enableAnonymousTracking:function(d){var l;k.anonymousTracking=null!==(l=d&&(null===d||void 0===d?void 0:d.options))&&void 0!==l?l:!0;Ca(d);za||aa()},clearUserData:Da}),{id:r,namespace:q,core:Y,sharedState:u})}(a,b,c,e,f,g);var n=U(U({},a),{addPlugin:function(r){var q,B;n.core.addPlugin(r);null===(B=(q=r.plugin).activateBrowserPlugin)||void 0===B?void 0:B.call(q,
n)}});h.forEach(function(r){var q;null===(q=r.activateBrowserPlugin)||void 0===q?void 0:q.call(r,n)});return n}function C(a,b){try{var c=null!==a&&void 0!==a?a:Object.keys(Za);a=Za;for(var e=[],f=0;f<c.length;f++){var g=c[f];a.hasOwnProperty(g)?e.push(a[g]):Z.warn(g+" not configured")}e.forEach(b)}catch(h){Z.error("Function failed",h)}}function od(){function a(){"hidden"==f.visibilityState&&e.bufferFlushers.forEach(function(h){h(!1)})}function b(){var h;if(!e.hasLoaded)for(e.hasLoaded=!0,h=0;h<e.registeredOnLoadHandlers.length;h++)e.registeredOnLoadHandlers[h]();
return!0}function c(){f.addEventListener?f.addEventListener("DOMContentLoaded",function n(){f.removeEventListener("DOMContentLoaded",n,!1);b()}):f.attachEvent&&f.attachEvent("onreadystatechange",function r(){"complete"===f.readyState&&(f.detachEvent("onreadystatechange",r),b())});ma(g,"load",b,!1)}var e=new pd,f=document,g=window;f.visibilityState&&ma(f,"visibilitychange",a,!1);ma(g,"beforeunload",function(){e.bufferFlushers.forEach(function(h){h(!1)})},!1);"loading"===document.readyState?c():b();
return e}var U=function(){U=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 U.apply(this,arguments)},ra={},Bc="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(Bc){var Cc=new Uint8Array(16);ra=function(){Bc(Cc);return Cc}}else{var Dc=
Array(16);ra=function(){for(var a=0,b;16>a;a++)0===(a&3)&&(b=4294967296*Math.random()),Dc[a]=b>>>((a&3)<<3)&255;return Dc}}for(var N=[],pb=0;256>pb;++pb)N[pb]=(pb+256).toString(16).substr(1);var Ec=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("")},qd=ra,Fc,Ub,Vb=0,Wb=0,rd=ra;ra=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||rd)();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||Ec(a)};ra.v1=function(a,b,c){c=b&&c||0;var e=b||[];a=a||{};var f=a.node||Fc,g=void 0!==a.clockseq?a.clockseq:Ub;if(null==f||null==g){var h=qd();null==f&&(f=Fc=[h[0]|1,h[1],h[2],h[3],h[4],h[5]]);null==g&&(g=Ub=(h[6]<<8|h[7])&16383)}h=void 0!==a.msecs?a.msecs:(new Date).getTime();var n=void 0!==a.nsecs?a.nsecs:Wb+1,r=h-Vb+(n-Wb)/1E4;0>r&&void 0===a.clockseq&&(g=
g+1&16383);(0>r||h>Vb)&&void 0===a.nsecs&&(n=0);if(1E4<=n)throw Error("uuid.v1(): Can't create more than 10M uuids/sec");Vb=h;Wb=n;Ub=g;h+=122192928E5;a=(1E4*(h&268435455)+n)%4294967296;e[c++]=a>>>24&255;e[c++]=a>>>16&255;e[c++]=a>>>8&255;e[c++]=a&255;a=h/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++]=g>>>8|128;e[c++]=g&255;for(g=0;6>g;++g)e[c+g]=f[g];return b?b:Ec(e)};var fa=ra.v4=ra,la="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",
ka;(function(a){a[a.none=0]="none";a[a.error=1]="error";a[a.warn=2]="warn";a[a.debug=3]="debug";a[a.info=4]="info"})(ka||(ka={}));var Z=function(a){void 0===a&&(a=ka.warn);return{setLogLevel:function(b){a=ka[b]?b:ka.warn},warn:function(b,c){for(var e=[],f=2;f<arguments.length;f++)e[f-2]=arguments[f];a>=ka.warn&&"undefined"!==typeof console&&(f="Snowplow: "+b,c?console.warn.apply(console,S([f+"\n",c],e,!1)):console.warn.apply(console,S([f],e,!1)))},error:function(b,c){for(var e=[],f=2;f<arguments.length;f++)e[f-
2]=arguments[f];a>=ka.error&&"undefined"!==typeof console&&(f="Snowplow: "+b+"\n",c?console.error.apply(console,S([f+"\n",c],e,!1)):console.error.apply(console,S([f],e,!1)))},debug:function(b){for(var c=[],e=1;e<arguments.length;e++)c[e-1]=arguments[e];a>=ka.debug&&"undefined"!==typeof console&&console.debug.apply(console,S(["Snowplow: "+b],c,!1))},info:function(b){for(var c=[],e=1;e<arguments.length;e++)c[e-1]=arguments[e];a>=ka.info&&"undefined"!==typeof console&&console.info.apply(console,S(["Snowplow: "+
b],c,!1))}}}(),Gc={},Hc={};(function(){var a={rotl:function(b,c){return b<<c|b>>>32-c},rotr:function(b,c){return b<<32-c|b>>>c},endian:function(b){if(b.constructor==Number)return a.rotl(b,8)&16711935|a.rotl(b,24)&4278255360;for(var c=0;c<b.length;c++)b[c]=a.endian(b[c]);return b},randomBytes:function(b){for(var c=[];0<b;b--)c.push(Math.floor(256*Math.random()));return c},bytesToWords:function(b){for(var c=[],e=0,f=0;e<b.length;e++,f+=8)c[f>>>5]|=b[e]<<24-f%32;return c},wordsToBytes:function(b){for(var c=
[],e=0;e<32*b.length;e+=8)c.push(b[e>>>5]>>>24-e%32&255);return c},bytesToHex:function(b){for(var c=[],e=0;e<b.length;e++)c.push((b[e]>>>4).toString(16)),c.push((b[e]&15).toString(16));return c.join("")},hexToBytes:function(b){for(var c=[],e=0;e<b.length;e+=2)c.push(parseInt(b.substr(e,2),16));return c},bytesToBase64:function(b){for(var c=[],e=0;e<b.length;e+=3)for(var f=b[e]<<16|b[e+1]<<8|b[e+2],g=0;4>g;g++)8*e+6*g<=8*b.length?c.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(f>>>
6*(3-g)&63)):c.push("=");return c.join("")},base64ToBytes:function(b){b=b.replace(/[^A-Z0-9+\/]/ig,"");for(var c=[],e=0,f=0;e<b.length;f=++e%4)0!=f&&c.push(("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(b.charAt(e-1))&Math.pow(2,-2*f+8)-1)<<2*f|"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(b.charAt(e))>>>6-2*f);return c}};Hc=a})();var Xb={utf8:{stringToBytes:function(a){return Xb.bin.stringToBytes(unescape(encodeURIComponent(a)))},bytesToString:function(a){return decodeURIComponent(escape(Xb.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("")}}},Ic=Xb;(function(){var a=Hc,b=Ic.utf8,c=Ic.bin,e=function(f,g){var h=a.wordsToBytes,n=f;n.constructor==String?n=b.stringToBytes(n):"undefined"!==typeof Buffer&&"function"==typeof Buffer.isBuffer&&Buffer.isBuffer(n)?n=Array.prototype.slice.call(n,0):Array.isArray(n)||(n=n.toString());f=a.bytesToWords(n);
var r=8*n.length;n=[];var q=1732584193,B=-271733879,y=-1732584194,u=271733878,k=-1009589776;f[r>>5]|=128<<24-r%32;f[(r+64>>>9<<4)+15]=r;for(r=0;r<f.length;r+=16){for(var z=q,K=B,P=y,H=u,I=k,E=0;80>E;E++){if(16>E)n[E]=f[r+E];else{var da=n[E-3]^n[E-8]^n[E-14]^n[E-16];n[E]=da<<1|da>>>31}da=(q<<5|q>>>27)+k+(n[E]>>>0)+(20>E?(B&y|~B&u)+1518500249:40>E?(B^y^u)+1859775393:60>E?(B&y|B&u|y&u)-1894007588:(B^y^u)-899497514);k=u;u=y;y=B<<30|B>>>2;B=q;q=da}q+=z;B+=K;y+=P;u+=H;k+=I}h=h.call(a,[q,B,y,u,k]);return g&&
g.asBytes?h:g&&g.asString?c.bytesToString(h):a.bytesToHex(h)};e._blocksize=16;e._digestsize=20;Gc=e})();var bd=Gc,Za={},pd=function(){return function(){this.outQueues=[];this.bufferFlushers=[];this.hasLoaded=!1;this.registeredOnLoadHandlers=[]}}(),Jc="undefined"!==typeof window?od():void 0;w.addGlobalContexts=function(a,b){C(b,function(c){c.core.addGlobalContexts(a)})};w.addPlugin=function(a,b){C(b,function(c){c.addPlugin(a)})};w.clearGlobalContexts=function(a){C(a,function(b){b.core.clearGlobalContexts()})};
w.clearUserData=function(a,b){C(b,function(c){c.clearUserData(a)})};w.crossDomainLinker=function(a,b){C(b,function(c){c.crossDomainLinker(a)})};w.disableActivityTracking=function(a){C(a,function(b){b.disableActivityTracking()})};w.disableActivityTrackingCallback=function(a){C(a,function(b){b.disableActivityTrackingCallback()})};w.disableAnonymousTracking=function(a,b){C(b,function(c){c.disableAnonymousTracking(a)})};w.discardBrace=function(a,b){C(b,function(c){c.discardBrace(a)})};w.discardHashTag=
function(a,b){C(b,function(c){c.discardHashTag(a)})};w.enableActivityTracking=function(a,b){C(b,function(c){c.enableActivityTracking(a)})};w.enableActivityTrackingCallback=function(a,b){C(b,function(c){c.enableActivityTrackingCallback(a)})};w.enableAnonymousTracking=function(a,b){C(b,function(c){c.enableAnonymousTracking(a)})};w.flushBuffer=function(a,b){C(b,function(c){c.flushBuffer(a)})};w.newSession=function(a){C(a,function(b){b.newSession()})};w.newTracker=function(a,b,c){void 0===c&&(c={});if(Jc){var e=
"js-".concat("3.19.0");Za.hasOwnProperty(a)?a=null:(Za[a]=ad(a,a,e,b,Jc,c),a=Za[a]);return a}};w.preservePageViewId=function(a){C(a,function(b){b.preservePageViewId()})};w.removeGlobalContexts=function(a,b){C(b,function(c){c.core.removeGlobalContexts(a)})};w.setBufferSize=function(a,b){C(b,function(c){c.setBufferSize(a)})};w.setCollectorUrl=function(a,b){C(b,function(c){c.setCollectorUrl(a)})};w.setCookiePath=function(a,b){C(b,function(c){c.setCookiePath(a)})};w.setCustomUrl=function(a,b){C(b,function(c){c.setCustomUrl(a)})};
w.setDocumentTitle=function(a,b){C(b,function(c){c.setDocumentTitle(a)})};w.setOptOutCookie=function(a,b){C(b,function(c){c.setOptOutCookie(a)})};w.setReferrerUrl=function(a,b){C(b,function(c){c.setReferrerUrl(a)})};w.setUserId=function(a,b){C(b,function(c){c.setUserId(a)})};w.setUserIdFromCookie=function(a,b){C(b,function(c){c.setUserIdFromCookie(a)})};w.setUserIdFromLocation=function(a,b){C(b,function(c){c.setUserIdFromLocation(a)})};w.setUserIdFromReferrer=function(a,b){C(b,function(c){c.setUserIdFromReferrer(a)})};
w.setVisitorCookieTimeout=function(a,b){C(b,function(c){c.setVisitorCookieTimeout(a)})};w.trackPageView=function(a,b){C(b,function(c){c.trackPageView(a)})};w.trackSelfDescribingEvent=function(a,b){C(b,function(c){c=c.core;var e=c.track,f=a.event,g=f.schema,h=f.data;f=$a();g={schema:"iglu:com.snowplowanalytics.snowplow/unstruct_event/jsonschema/1-0-0",data:{schema:g,data:h}};f.add("e","ue");f.addJson("ue_px","ue_pr",g);e.call(c,f,a.context,a.timestamp)})};w.trackStructEvent=function(a,b){C(b,function(c){c=
c.core;var e=c.track,f=a.category,g=a.action,h=a.label,n=a.property,r=a.value,q=$a();q.add("e","se");q.add("se_ca",f);q.add("se_ac",g);q.add("se_la",h);q.add("se_pr",n);q.add("se_va",null==r?void 0:r.toString());e.call(c,q,a.context,a.timestamp)})};w.updatePageActivity=function(a){C(a,function(b){b.updatePageActivity()})};w.version="3.19.0";Object.defineProperty(w,"__esModule",{value:!0})})
//# sourceMappingURL=index.umd.min.js.map
{
"name": "@snowplow/browser-tracker",
"version": "3.18.0",
"version": "3.19.0",
"description": "Browser tracker for Snowplow",

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

"dependencies": {
"@snowplow/browser-tracker-core": "3.18.0",
"@snowplow/tracker-core": "3.18.0",
"@snowplow/browser-tracker-core": "3.19.0",
"@snowplow/tracker-core": "3.19.0",
"tslib": "^2.3.1"

@@ -39,0 +39,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