@snowplow/browser-tracker
Advanced tools
Comparing version 3.3.1 to 3.4.0
/*! | ||
* Browser tracker for Snowplow v3.3.1 (http://bit.ly/sp-js) | ||
* Browser tracker for Snowplow v3.4.0 (http://bit.ly/sp-js) | ||
* Copyright 2022 Snowplow Analytics Ltd, 2010 Anthon Pang | ||
@@ -428,3 +428,3 @@ * Licensed under BSD-3-Clause | ||
if (state) { | ||
return addTracker(trackerId, trackerId, "js-" + version, endpoint, state, configuration); | ||
return addTracker(trackerId, trackerId, "js-".concat(version), endpoint, state, configuration); | ||
} | ||
@@ -431,0 +431,0 @@ else { |
/*! | ||
* Browser tracker for Snowplow v3.3.1 (http://bit.ly/sp-js) | ||
* Browser tracker for Snowplow v3.4.0 (http://bit.ly/sp-js) | ||
* Copyright 2022 Snowplow Analytics Ltd, 2010 Anthon Pang | ||
@@ -7,74 +7,74 @@ * Licensed under BSD-3-Clause | ||
'use strict';(function(w,W){"object"===typeof exports&&"undefined"!==typeof module?W(exports):"function"===typeof define&&define.amd?define(["exports"],W):(w="undefined"!==typeof globalThis?globalThis:w||self,W(w.snowplowBrowserTracking={}))})(this,function(w){function W(a,b,c){if(c||2===arguments.length)for(var e=0,g=b.length,f;e<g;e++)!f&&e in b||(f||(f=Array.prototype.slice.call(b,0,e)),f[e]=b[e]);return a.concat(f||b)}function eb(a){var b={exports:{}};return a(b,b.exports),b.exports}function Qa(){var a= | ||
{},b=[],c=[],e,g=function(f,l){null!=l&&""!==l&&(a[f]=l)};return{add:g,addDict:function(f){for(var l in f)Object.prototype.hasOwnProperty.call(f,l)&&g(l,f[l])},addJson:function(f,l,m){m&&Ib(m)&&(f={keyIfEncoded:f,keyIfNotEncoded:l,json:m},c.push(f),b.push(f))},getPayload:function(){return a},getJson:function(){return b},withJsonProcessor:function(f){e=f},build:function(){null===e||void 0===e?void 0:e(this,c);return a}}}function nc(a){return function(b,c){for(var e=0;e<c.length;e++){var g=c[e],f=JSON.stringify(g.json); | ||
if(a){var l=b,m=l.add;g=g.keyIfEncoded;if(f){var q=0,z=0,D=[];if(f){f=unescape(encodeURIComponent(f));do{var F=f.charCodeAt(q++);var u=f.charCodeAt(q++);var h=f.charCodeAt(q++);var v=F<<16|u<<8|h;F=v>>18&63;u=v>>12&63;h=v>>6&63;v&=63;D[z++]=Ra.charAt(F)+Ra.charAt(u)+Ra.charAt(h)+Ra.charAt(v)}while(q<f.length);q=D.join("");f=f.length%3;f=(f?q.slice(0,f-3):q)+"===".slice(f||3)}f=f.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}m.call(l,g,f)}else b.add(g.keyIfNotEncoded,f)}c.length=0}}function Ib(a){if(!Jb(a))return!1; | ||
for(var b in a)if(Object.prototype.hasOwnProperty.call(a,b))return!0;return!1}function Jb(a){return"undefined"!==typeof a&&null!==a&&(a.constructor==={}.constructor||a.constructor===[].constructor)}function oc(){var a=[],b=[];return{getGlobalPrimitives:function(){return a},getConditionalProviders:function(){return b},addGlobalContexts:function(c){for(var e=[],g=[],f=0;f<c.length;f++){var l=c[f];Kb(l)?e.push(l):za(l)&&g.push(l)}a=a.concat(g);b=b.concat(e)},clearGlobalContexts:function(){b=[];a=[]}, | ||
'use strict';(function(w,X){"object"===typeof exports&&"undefined"!==typeof module?X(exports):"function"===typeof define&&define.amd?define(["exports"],X):(w="undefined"!==typeof globalThis?globalThis:w||self,X(w.snowplowBrowserTracking={}))})(this,function(w){function X(a,b,c){if(c||2===arguments.length)for(var e=0,g=b.length,f;e<g;e++)!f&&e in b||(f||(f=Array.prototype.slice.call(b,0,e)),f[e]=b[e]);return a.concat(f||Array.prototype.slice.call(b))}function Ra(){var a={},b=[],c=[],e,g=function(f, | ||
l){null!=l&&""!==l&&(a[f]=l)};return{add:g,addDict:function(f){for(var l in f)Object.prototype.hasOwnProperty.call(f,l)&&g(l,f[l])},addJson:function(f,l,m){m&&Ib(m)&&(f={keyIfEncoded:f,keyIfNotEncoded:l,json:m},c.push(f),b.push(f))},getPayload:function(){return a},getJson:function(){return b},withJsonProcessor:function(f){e=f},build:function(){null===e||void 0===e?void 0:e(this,c);return a}}}function rc(a){return function(b,c){for(var e=0;e<c.length;e++){var g=c[e],f=JSON.stringify(g.json);if(a){var l= | ||
b,m=l.add;g=g.keyIfEncoded;if(f){var q=0,z=0,D=[];if(f){f=unescape(encodeURIComponent(f));do{var F=f.charCodeAt(q++);var t=f.charCodeAt(q++);var h=f.charCodeAt(q++);var v=F<<16|t<<8|h;F=v>>18&63;t=v>>12&63;h=v>>6&63;v&=63;D[z++]=Sa.charAt(F)+Sa.charAt(t)+Sa.charAt(h)+Sa.charAt(v)}while(q<f.length);q=D.join("");f=f.length%3;f=(f?q.slice(0,f-3):q)+"===".slice(f||3)}f=f.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}m.call(l,g,f)}else b.add(g.keyIfNotEncoded,f)}c.length=0}}function Ib(a){if(!Jb(a))return!1; | ||
for(var b in a)if(Object.prototype.hasOwnProperty.call(a,b))return!0;return!1}function Jb(a){return"undefined"!==typeof a&&null!==a&&(a.constructor==={}.constructor||a.constructor===[].constructor)}function sc(){var a=[],b=[];return{getGlobalPrimitives:function(){return a},getConditionalProviders:function(){return b},addGlobalContexts:function(c){for(var e=[],g=[],f=0;f<c.length;f++){var l=c[f];Kb(l)?e.push(l):za(l)&&g.push(l)}a=a.concat(g);b=b.concat(e)},clearGlobalContexts:function(){b=[];a=[]}, | ||
removeGlobalContexts:function(c){for(var e=function(f){Kb(f)?b=b.filter(function(l){return JSON.stringify(l)!==JSON.stringify(f)}):za(f)&&(a=a.filter(function(l){return JSON.stringify(l)!==JSON.stringify(f)}))},g=0;g<c.length;g++)e(c[g])},getApplicableContexts:function(c){a:{var e=0;for(var g=c.getJson();e<g.length;e++){var f=g[e];if("ue_px"===f.keyIfEncoded&&"object"===typeof f.json.data&&(f=f.json.data.schema,"string"==typeof f)){e=f;break a}}e=""}g=c.getPayload().e;f="string"===typeof g?g:"";g= | ||
[];var l=fb(a,c,f,e);g.push.apply(g,l);c=pc(b,c,f,e);g.push.apply(g,c);return g}}}function qc(a){return{addPluginContexts:function(b){var c=b?W([],b):[];a.forEach(function(e){try{e.contexts&&c.push.apply(c,e.contexts())}catch(g){ia.error("Error adding plugin contexts",g)}});return c}}}function rc(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 Lb(a){return(a= | ||
a.split("."))&&1<a.length?rc(a):!1}function Mb(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&&Lb(a[1]))return a.slice(1,6)}function gb(a){if(a=Mb(a)){var b=a[0];return 5===a.length&&Lb(b)}return!1}function sc(a){return Array.isArray(a)&&a.every(function(b){return"string"===typeof b})}function Nb(a){return sc(a)?a.every(function(b){return gb(b)}):"string"===typeof a?gb(a): | ||
!1}function Ha(a){return Ib(a)&&"schema"in a&&"data"in a?"string"===typeof a.schema&&"object"===typeof a.data:!1}function tc(a){var b=0;if(null!=a&&"object"===typeof a&&!Array.isArray(a)){if(Object.prototype.hasOwnProperty.call(a,"accept"))if(Nb(a.accept))b+=1;else return!1;if(Object.prototype.hasOwnProperty.call(a,"reject"))if(Nb(a.reject))b+=1;else return!1;return 0<b&&2>=b}return!1}function Sa(a){return"function"===typeof a&&1>=a.length}function za(a){return Sa(a)||Ha(a)}function Ob(a){return Array.isArray(a)&& | ||
2===a.length?Array.isArray(a[1])?Sa(a[0])&&a[1].every(za):Sa(a[0])&&za(a[1]):!1}function Pb(a){return Array.isArray(a)&&2===a.length?tc(a[0])?Array.isArray(a[1])?a[1].every(za):za(a[1]):!1:!1}function Kb(a){return Ob(a)||Pb(a)}function uc(a,b){var c=0,e=0,g=a.accept;Array.isArray(g)?a.accept.some(function(f){return Ta(f,b)})&&e++:"string"===typeof g&&Ta(g,b)&&e++;g=a.reject;Array.isArray(g)?a.reject.some(function(f){return Ta(f,b)})&&c++:"string"===typeof g&&Ta(g,b)&&c++;return 0<e&&0===c?!0:!1}function Ta(a, | ||
b){if(!gb(a))return!1;a=Mb(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(!vc(a[0],b[0]))return!1;for(var c=1;5>c;c++)if(!Qb(a[c],b[c]))return!1;return!0}return!1}function vc(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(!Qb(b[c],a[c]))return!1;return!0}return!1}function Qb(a,b){return a&&b&&"*"===a||a===b}function Rb(a){return Array.isArray(a)? | ||
a:[a]}function fb(a,b,c,e){var g;a=Rb(a).map(function(f){a:if(Ha(f))f=[f];else{if(Sa(f)){b:{var l=void 0;try{var m={event:b.getPayload(),eventType:c,eventSchema:e};l=f(m);if(Array.isArray(l)&&l.every(Ha)||Ha(l)){var q=l;break b}q=void 0;break b}catch(z){}q=void 0}if(Ha(q)){f=[q];break a}else if(Array.isArray(q)){f=q;break a}}f=void 0}if(f&&0!==f.length)return f});return(g=[]).concat.apply(g,a.filter(function(f){return null!=f&&f.filter(Boolean)}))}function pc(a,b,c,e){var g;a=Rb(a).map(function(f){a:{if(Ob(f)){var l= | ||
f[0],m=!1;try{var q={event:b.getPayload(),eventType:c,eventSchema:e};m=l(q)}catch(z){m=!1}if(!0===m){f=fb(f[1],b,c,e);break a}}else if(Pb(f)&&uc(f[0],e)){f=fb(f[1],b,c,e);break a}f=[]}if(f&&0!==f.length)return f});return(g=[]).concat.apply(g,a.filter(function(f){return null!=f&&f.filter(Boolean)}))}function wc(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 xc(a){void 0===a&&(a={});var b=a.base64,c=a.corePlugins,e=null!==c&&void 0!==c?c:[];a=function(f,l,m){function q(h,v){h=D.getApplicableContexts(h);var H=[];v&&v.length&&H.push.apply(H,v);h&&h.length&&H.push.apply(H,h);return H}var z=qc(l),D=oc(),F=f,u={};return{track:function(h,v,H){h.withJsonProcessor(nc(F));h.add("eid",R.v4());h.addDict(u);H=wc(H);h.add(H.type,H.value.toString());v=q(h,z.addPluginContexts(v));v=v&&v.length?{schema:"iglu:com.snowplowanalytics.snowplow/contexts/jsonschema/1-0-0", | ||
data:v}:void 0;void 0!==v&&h.addJson("cx","co",v);l.forEach(function(K){try{K.beforeTrack&&K.beforeTrack(h)}catch(S){ia.error("Plugin beforeTrack",S)}});"function"===typeof m&&m(h);var X=h.build();l.forEach(function(K){try{K.afterTrack&&K.afterTrack(X)}catch(S){ia.error("Plugin afterTrack",S)}});return X},addPayloadPair:function(h,v){u[h]=v},getBase64Encoding:function(){return F},setBase64Encoding:function(h){F=h},addPayloadDict:function(h){for(var v in h)Object.prototype.hasOwnProperty.call(h,v)&& | ||
(u[v]=h[v])},resetPayloadPairs:function(h){u=Jb(h)?h:{}},setTrackerVersion:function(h){u.tv=h},setTrackerNamespace:function(h){u.tna=h},setAppId:function(h){u.aid=h},setPlatform:function(h){u.p=h},setUserId:function(h){u.uid=h},setScreenResolution:function(h,v){u.res=h+"x"+v},setViewport:function(h,v){u.vp=h+"x"+v},setColorDepth:function(h){u.cd=h},setTimezone:function(h){u.tz=h},setLang:function(h){u.lang=h},setIpAddress:function(h){u.ip=h},setUseragent:function(h){u.ua=h},addGlobalContexts:function(h){D.addGlobalContexts(h)}, | ||
clearGlobalContexts:function(){D.clearGlobalContexts()},removeGlobalContexts:function(h){D.removeGlobalContexts(h)}}}(null!==b&&void 0!==b?b:!0,e,a.callback);var g=da(da({},a),{addPlugin:function(f){var l,m;f=f.plugin;e.push(f);null===(l=f.logger)||void 0===l?void 0:l.call(f,ia);null===(m=f.activateCorePlugin)||void 0===m?void 0:m.call(f,g)}});null===e||void 0===e?void 0:e.forEach(function(f){var l,m;null===(l=f.logger)||void 0===l?void 0:l.call(f,ia);null===(m=f.activateCorePlugin)||void 0===m?void 0: | ||
m.call(f,g)});return g}function yc(a){var b=a.pageUrl,c=a.pageTitle;a=a.referrer;var e=Qa();e.add("e","pv");e.add("url",b);e.add("page",c);e.add("refr",a);return e}function zc(){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 Sb(a){return Number.isInteger&&Number.isInteger(a)||"number"===typeof a&&isFinite(a)&&Math.floor(a)===a}function Tb(a){if(!a||"string"!== | ||
typeof a.valueOf()){a=a.text||"";var b=document.getElementsByTagName("title");b&&null!=b[0]&&(a=b[0].text)}return a}function hb(a){var b=/^(?:(?:https?|ftp):)\/*(?:[^@]+@)?([^:/#]+)/.exec(a);return b?b[1]:a}function Ub(a){var b=a.length;"."===a.charAt(--b)&&(a=a.slice(0,b));"*."===a.slice(0,2)&&(a=a.slice(1));return a}function ib(a){var b=window,c="",e=Ia("referrer",b.location.href)||Ia("referer",b.location.href);if(e)return e;if(a)return a;try{c=b.top.document.referrer}catch(g){if(b.parent)try{c= | ||
b.parent.document.referrer}catch(f){c=""}}""===c&&(c=document.referrer);return c}function ma(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 Ia(a,b){return(a=(new RegExp("^[^#]*[?&]"+a+"=([^&#]*)")).exec(b))?decodeURIComponent(a[1].replace(/\+/g," ")):null}function Ua(a,b,c){void 0===c&&(c=63072E3);try{var e=window.localStorage,g=Date.now()+1E3*c;e.setItem(a+".expires",g.toString());e.setItem(a,b);return!0}catch(f){return!1}} | ||
function Vb(a){try{var b=window.localStorage;b.removeItem(a);b.removeItem(a+".expires");return!0}catch(c){return!1}}function Ac(a,b){for(var c=window.location.hostname,e="_sp_root_domain_test_"+(new Date).getTime(),g="_test_value_"+(new Date).getTime(),f=c.split("."),l=f.length-1;0<=l;){var m=f.slice(l,f.length).join(".");Y(e,g,0,"/",m,a,b);if(Y(e)===g){Y(e,"",-1,"/",m,a,b);c=document.cookie.split("; ");e=[];for(g=0;g<c.length;g++)"_sp_root_domain_test_"===c[g].substring(0,21)&&e.push(c[g]);c=e;for(e= | ||
0;e<c.length;e++)Y(c[e],"",-1,"/",m,a,b);return m}--l}return c}function Y(a,b,c,e,g,f,l){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:"")+(g?"; Domain="+g:"")+(f?"; SameSite="+f:"")+(l?"; Secure":""):decodeURIComponent((("; "+document.cookie).split("; "+a+"=")[1]||"").split(";")[0])}function Bc(a,b,c,e,g,f,l,m,q,z,D,F,u){function h(n){var A=Object.keys(n).map(function(x){return[x, | ||
n[x]]}).reduce(function(x,t){x[t[0]]=t[1].toString();return x},{});return{evt:A,bytes:v(JSON.stringify(A))}}function v(n){for(var A=0,x=0;x<n.length;x++){var t=n.charCodeAt(x);127>=t?A+=1:2047>=t?A+=2:55296<=t&&57343>=t?(A+=4,x++):A=65535>t?A+3:A+4}return A}function H(n){for(void 0===n&&(n=!1);E.length&&"string"!==typeof E[0]&&"object"!==typeof E[0];)E.shift();if(1>E.length)O=!1;else{if(!ea||"string"!==typeof ea.valueOf())throw"No collector configured";O=!0;if(sa){var A=function(Z){for(var aa=0,Aa= | ||
0;aa<Z.length&&!(Aa+=Z[aa].bytes,Aa>=l);)aa+=1;return aa},x=void 0;if(ja(E)){x=ea;var t=X(x,!0,n);var I=A(E)}else x=J(E[0]),t=X(x,!1,n),I=1;var P=setTimeout(function(){t.abort();O=!1},z),ba=function(Z){for(var aa=0;aa<Z;aa++)E.shift();c&&Ua(ta,JSON.stringify(E.slice(0,q)));H()};t.onreadystatechange=function(){4===t.readyState&&200<=t.status&&400>t.status?(clearTimeout(P),ba(I)):4===t.readyState&&400<=t.status&&(clearTimeout(P),O=!1)};if(ja(E)){if(A=E.slice(0,I),0<A.length){n=!1;A=A.map(function(Z){return Z.evt}); | ||
if(Ba){var na=new Blob([K(S(A))],{type:"application/json"});try{n=navigator.sendBeacon(x,na)}catch(Z){n=!1}}!0===n?ba(I):t.send(K(S(A)))}}else t.send()}else if(D||ja(E))O=!1;else{x=new Image(1,1);var fa=!0;x.onload=function(){fa&&(fa=!1,E.shift(),c&&Ua(ta,JSON.stringify(E.slice(0,q))),H())};x.onerror=function(){fa&&(O=fa=!1)};x.src=J(E[0]);setTimeout(function(){fa&&O&&(fa=!1,H())},z)}}}function X(n,A,x){var t=new XMLHttpRequest;A?(t.open("POST",n,!x),t.setRequestHeader("Content-Type","application/json; charset=UTF-8")): | ||
t.open("GET",n,!x);t.withCredentials=u;D&&t.setRequestHeader("SP-Anonymous","*");for(var I in F)Object.prototype.hasOwnProperty.call(F,I)&&t.setRequestHeader(I,F[I]);return t}function K(n){return JSON.stringify({schema:"iglu:com.snowplowanalytics.snowplow/payload_data/jsonschema/1-0-4",data:n})}function S(n){for(var A=(new Date).getTime().toString(),x=0;x<n.length;x++)n[x].stm=A;return n}function J(n){return m?ea+n.replace("?","?stm="+(new Date).getTime()+"&"):ea+n}function ka(n){function A(t,I,P){return(P= | ||
P.match("(Macintosh;.*Mac OS X (d+)_(d+)[_d]*.*) AppleWebKit/"))&&P.length?parseInt(P[0])<=t||parseInt(P[0])===t&&parseInt(P[1])<=I:!1}function x(t){return t.match("Version/.* Safari/")&&!t.match("Chrom(e|ium)")}return function(t,I){return(I=I.match("(iP.+; CPU .*OS (d+)[_d]*.*) AppleWebKit/"))&&I.length?parseInt(I[0])<=t:!1}(13,n)||A(10,15,n)&&x(n)}var O=!1,ea,E=[];e="string"===typeof e?e.toLowerCase():e;var ua=!0===e||"beacon"===e||"true"===e,Ba=!(!(ua&&window.navigator&&window.navigator.sendBeacon)|| | ||
ka(window.navigator.userAgent))&&ua,sa=!!(window.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest),va="get"!==e&&sa&&("post"===e||ua),Ja=va?g:"/i",ta="snowplowOutQueue_"+a+"_"+(va?"post2":"get");ua&&(F={});f=c&&zc()&&va&&f||1;if(c)try{var Ka=window.localStorage.getItem(ta);E=Ka?JSON.parse(Ka):[]}catch(n){}Array.isArray(E)||(E=[]);b.outQueues.push(E);sa&&1<f&&b.bufferFlushers.push(function(n){O||H(n)});var ja=function(n){return"object"===typeof n[0]};return{enqueueRequest:function(n,A){ea=A+ | ||
Ja;if(va){n=h(n);if(n.bytes>=l){ia.warn("Event ("+n.bytes+"B) too big, max is "+l);X(ea,!0,!1).send(K(S([n.evt])));return}E.push(n)}else{A=E;var x=A.push,t="?",I={co:!0,cx:!0},P=!0,ba;for(ba in n)n.hasOwnProperty(ba)&&!I.hasOwnProperty(ba)&&(P?P=!1:t+="&",t+=encodeURIComponent(ba)+"="+encodeURIComponent(n[ba]));for(var na in I)n.hasOwnProperty(na)&&I.hasOwnProperty(na)&&(t+="&"+na+"="+encodeURIComponent(n[na]));x.call(A,t)}n=!1;c&&(n=Ua(ta,JSON.stringify(E.slice(0,q))));O||n&&!(E.length>=f)||H()}, | ||
executeQueue:function(){O||H()},setUseLocalStorage:function(n){c=n},setAnonymousTracking:function(n){D=n},setCollectorUrl:function(n){ea=n+Ja},setBufferSize:function(n){f=n}}}function Wb(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)?Ia("u",a[1]):null,b=null!==a&&void 0!==a?a:"",a=hb(b);else if("cc.bingj.com"===a||"webcache.googleusercontent.com"===a)b=document.links[0].href,a=hb(b); | ||
return[a,b,c]}function Cc(a,b,c,e,g,f){void 0===f&&(f={});var l=[];a=function(q,z,D,F,u,h){function v(){wa=Wb(window.location.hostname,window.location.href,ib());wa[1]!==oa&&(La=ib(oa));Xb=Ub(wa[0]);oa=wa[1]}function H(d){var k=(new Date).getTime();d=d.currentTarget;if(null===d||void 0===d?0:d.href){k="_sp="+(Ca+"."+k);var p=d.href.split("#"),r=p[0].split("?"),B=r.shift();if(r=r.join("?")){for(var G=!0,M=r.split("&"),y=0;y<M.length;y++)if("_sp="===M[y].substr(0,4)){G=!1;M[y]=k;r=M.join("&");break}G&& | ||
(r=k+"&"+r)}else r=k;p[0]=B+"?"+r;k=p.join("#");d.href=k}}function X(d){for(var k=0;k<document.links.length;k++){var p=document.links[k];!p.spDecorationEnabled&&d(p)&&(ma(p,"click",H,!0),ma(p,"mousedown",H,!0),p.spDecorationEnabled=!0)}}function K(d){if(Yb){var k=/#.*/;d=d.replace(k,"")}Zb&&(k=/[{}]/g,d=d.replace(k,""));return d}function S(d){return(d=/^([a-z]+):/.exec(d))?d[1]:null}function J(d){d=Da+d+"."+xa;if("localStorage"==L){try{var k=window.localStorage,p=k.getItem(d+".expires");if(null=== | ||
p||+p>Date.now())var r=k.getItem(d);else k.removeItem(d),k.removeItem(d+".expires"),r=void 0}catch(B){r=void 0}return r}if("cookie"==L||"cookieAndLocalStorage"==L)return Y(d)}function ka(){v();xa=Dc((Ma||Xb)+(jb||"/")).slice(0,4)}function O(){Va=(new Date).getTime()}function ea(){var d=E(),k=d[0];k<Wa?Wa=k:k>Xa&&(Xa=k);d=d[1];d<Ya?Ya=d:d>Za&&(Za=d);O()}function E(){var d=document.documentElement;return d?[d.scrollLeft||window.pageXOffset,d.scrollTop||window.pageYOffset]:[0,0]}function ua(){var d= | ||
E(),k=d[0];Xa=Wa=k;Za=Ya=d=d[1]}function Ba(){va(Da+"ses."+xa,"*",$b)}function sa(d,k,p,r,B,G){va(Da+"id."+xa,d+"."+k+"."+p+"."+r+"."+B+"."+G,ac)}function va(d,k,p){if(!pa||Ea)"localStorage"==L?Ua(d,k,p):("cookie"==L||"cookieAndLocalStorage"==L)&&Y(d,k,p,jb,Ma,$a,ab)}function Ja(d){var k=Da+"id."+xa,p=Da+"ses."+xa;Vb(k);Vb(p);Y(k,"",-1,"/",Ma,$a,ab);Y(p,"",-1,"/",Ma,$a,ab);null!==d&&void 0!==d&&d.preserveSession||(Q=R.v4(),ha=0);null!==d&&void 0!==d&&d.preserveUser||(Ca=R.v4(),ya=null)}function ta(d){d&& | ||
d.stateStorageStrategy&&(h.stateStorageStrategy=d.stateStorageStrategy,L=bc(h));pa=!!h.anonymousTracking;Ea=cc(h);kb=dc(h);qa.setUseLocalStorage("localStorage"==L||"cookieAndLocalStorage"==L);qa.setAnonymousTracking(kb)}function Ka(){if(!pa||Ea){var d="none"!=L&&!!J("ses"),k=ja();k[1]?Ca=k[1]:(Ca=pa?"":R.v4(),k[1]=Ca);Q=k[6];d||(k[3]++,Q=R.v4(),k[6]=Q,k[5]=k[4]);"none"!=L&&(Ba(),k[4]=Math.round((new Date).getTime()/1E3),k.shift(),sa.apply(null,k))}}function ja(){if("none"==L)return[];var d=Math.round((new Date).getTime()/ | ||
1E3),k=J("id");k?(d=k.split("."),d.unshift("0")):d=["1",Ca,d,0,d,""];d[6]&&"undefined"!==d[6]||(d[6]=R.v4());return d}function n(d){return 0===d.indexOf("http")?d:("https:"===document.location.protocol?"https":"http")+"://"+d}function A(){ec&&null!=u.pageViewId||(u.pageViewId=R.v4())}function x(){null==u.pageViewId&&(u.pageViewId=R.v4());return u.pageViewId}function t(){return{contexts:function(){return[{schema:"iglu:com.snowplowanalytics.snowplow/web_page/jsonschema/1-0-0",data:{id:x()}}]}}}function I(d){var k= | ||
d.title,p=d.context,r=d.timestamp;d=d.contextCallback;v();fc&&A();fc=!0;Fa=document.title;Na=k;k=Tb(Na||Fa);T.track(yc({pageUrl:K(Ga||oa),pageTitle:k,referrer:K(bb||La)}),(p||[]).concat(d?d():[]),r);r=new Date;k=!1;if(U.enabled&&!U.installed){k=U.installed=!0;var B={update:function(){if("undefined"!==typeof window&&"function"===typeof window.addEventListener){var M=!1,y=Object.defineProperty({},"passive",{get:function(){M=!0},set:function(){}}),V=function(){};window.addEventListener("testPassiveEventSupport", | ||
V,y);window.removeEventListener("testPassiveEventSupport",V,y);B.hasSupport=M}}};B.update();var G="onwheel"in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll";Object.prototype.hasOwnProperty.call(B,"hasSupport")?ma(document,G,O,{passive:!0}):ma(document,G,O);ua();G=function(M,y){void 0===y&&(y=O);return function(V){return ma(document,V,y)}};"click mouseup mousedown mousemove keypress keydown keyup".split(" ").forEach(G(document));["resize","focus", | ||
"blur"].forEach(G(window));G(window,ea)("scroll")}if(U.enabled&&(Ec||k))for(r in Va=r.getTime(),r=void 0,U.configurations)if(k=U.configurations[r])window.clearInterval(k.activityInterval),P(k,p,d)}function P(d,k,p){var r=function(G,M){v();G({context:M,pageViewId:x(),minXOffset:Wa,minYOffset:Ya,maxXOffset:Xa,maxYOffset:Za});ua()},B=function(){Va+d.configHeartBeatTimer>(new Date).getTime()&&r(d.callback,(k||[]).concat(p?p():[]))};d.activityInterval=0!=d.configMinimumVisitLength?window.setTimeout(function(){Va+ | ||
d.configMinimumVisitLength>(new Date).getTime()&&r(d.callback,(k||[]).concat(p?p():[]));d.activityInterval=window.setInterval(B,d.configHeartBeatTimer)},d.configMinimumVisitLength):window.setInterval(B,d.configHeartBeatTimer)}function ba(d){var k=d.minimumVisitLength,p=d.heartbeatDelay;d=d.callback;if(Sb(k)&&Sb(p))return{configMinimumVisitLength:1E3*k,configHeartBeatTimer:1E3*p,callback:d};ia.error("Activity tracking minimumVisitLength & heartbeatDelay must be integers")}function na(d){var k=d.context, | ||
p=d.minXOffset,r=d.minYOffset,B=d.maxXOffset,G=d.maxYOffset;d=document.title;d!==Fa&&(Fa=d,Na=void 0);d=T;var M=d.track,y=K(Ga||oa),V=Tb(Na||Fa),cb=K(bb||La);p=Math.round(p);B=Math.round(B);r=Math.round(r);G=Math.round(G);var ca=Qa();ca.add("e","pp");ca.add("url",y);ca.add("page",V);ca.add("refr",cb);p&&!isNaN(Number(p))&&ca.add("pp_mix",p.toString());B&&!isNaN(Number(B))&&ca.add("pp_max",B.toString());r&&!isNaN(Number(r))&&ca.add("pp_miy",r.toString());G&&!isNaN(Number(G))&&ca.add("pp_may",G.toString()); | ||
M.call(d,ca,k)}var fa,Z,aa,Aa,lb,mb,nb,ob,pb,qb,rb,sb,tb,ub,vb,wb,xb,yb,zb,Ab,Bb;h.eventMethod=null!==(fa=h.eventMethod)&&void 0!==fa?fa:"post";var bc=function(d){var k;return null!==(k=d.stateStorageStrategy)&&void 0!==k?k:"cookieAndLocalStorage"},cc=function(d){var k,p;return"boolean"===typeof d.anonymousTracking?!1:null!==(p=!0===(null===(k=d.anonymousTracking)||void 0===k?void 0:k.withSessionTracking))&&void 0!==p?p:!1},dc=function(d){var k,p;return"boolean"===typeof d.anonymousTracking?!1:null!== | ||
(p=!0===(null===(k=d.anonymousTracking)||void 0===k?void 0:k.withServerAnonymisation))&&void 0!==p?p:!1};l.push(function(){return{beforeTrack:function(d){var k=Math.round((new Date).getTime()/1E3),p=J("ses"),r=ja(),B=r[0],G=r[1],M=r[2],y=r[3],V=r[4],cb=r[5];r=r[6];var ca=Oa?!!Y(Oa):!1;gc||ca?Ja():("0"===B?(Q=r,p||"none"==L||(y++,cb=V,Q=R.v4()),ha=y):(new Date).getTime()-Cb>1E3*$b&&(Q=R.v4(),ha++),p=d.add,"innerWidth"in window?(B=window.innerWidth,y=window.innerHeight):(y=document.documentElement|| | ||
document.body,B=y.clientWidth,y=y.clientHeight),p.call(d,"vp",0<=B&&0<=y?B+"x"+y:null),p=d.add,y=document.documentElement,V=document.body,B=Math.max(y.clientWidth,y.offsetWidth,y.scrollWidth),y=Math.max(y.clientHeight,y.offsetHeight,y.scrollHeight,V?Math.max(V.offsetHeight,V.scrollHeight):0),B=isNaN(B)||isNaN(y)?"":B+"x"+y,p.call(d,"ds",B),d.add("vid",Ea?ha:pa?null:ha),d.add("sid",Ea?Q:pa?null:Q),d.add("duid",pa?null:G),d.add("uid",pa?null:ya),v(),d.add("refr",K(bb||La)),d.add("url",K(Ga||oa)),"none"!= | ||
L&&(sa(G,M,ha,k,cb,Q),Ba()),Cb=(new Date).getTime())}}}());(null!==(aa=null===(Z=null===h||void 0===h?void 0:h.contexts)||void 0===Z?void 0:Z.webPage)&&void 0!==aa?aa:1)&&l.push(t());l.push.apply(l,null!==(Aa=h.plugins)&&void 0!==Aa?Aa:[]);var T=xc({base64:h.encodeBase64,corePlugins:l,callback:function(d){var k=Oa?!!Y(Oa):!1;gc||k||qa.enqueueRequest(d.build(),Db)}}),Fc=navigator.userLanguage||navigator.language,Gc=document.characterSet||document.charset,wa=Wb(window.location.hostname,window.location.href, | ||
ib()),Xb=Ub(wa[0]),oa=wa[1],La=wa[2],bb,Hc=null!==(lb=h.platform)&&void 0!==lb?lb:"web",Db=n(F),Ic=null!==(mb=h.postPath)&&void 0!==mb?mb:"/com.snowplowanalytics.snowplow/tp2",Jc=null!==(nb=h.appId)&&void 0!==nb?nb:"",Ga,Fa=document.title,Na,Ec=null!==(ob=h.resetActivityTrackingOnPageView)&&void 0!==ob?ob:!0,Yb,Zb,Da=null!==(pb=h.cookieName)&&void 0!==pb?pb:"_sp_",Ma=null!==(qb=h.cookieDomain)&&void 0!==qb?qb:void 0,jb="/",$a=null!==(rb=h.cookieSameSite)&&void 0!==rb?rb:"None",ab=null!==(sb=h.cookieSecure)&& | ||
void 0!==sb?sb:!0,hc=navigator.doNotTrack||navigator.msDoNotTrack||window.doNotTrack,gc="undefined"!==typeof h.respectDoNotTrack?h.respectDoNotTrack&&("yes"===hc||"1"===hc):!1,Oa,ac=null!==(tb=h.cookieLifetime)&&void 0!==tb?tb:63072E3,$b=null!==(ub=h.sessionCookieTimeout)&&void 0!==ub?ub:1800,Ea=cc(h),kb=dc(h),pa=!!h.anonymousTracking,L=bc(h),Va,Cb=(new Date).getTime(),Wa,Xa,Ya,Za,xa,Ca,Q,ha=1,ya,qa=Bc(q,u,"localStorage"==L||"cookieAndLocalStorage"==L,h.eventMethod,Ic,null!==(vb=h.bufferSize)&&void 0!== | ||
vb?vb:1,null!==(wb=h.maxPostBytes)&&void 0!==wb?wb:4E4,null!==(xb=h.useStm)&&void 0!==xb?xb:!0,null!==(yb=h.maxLocalStorageQueueSize)&&void 0!==yb?yb:1E3,null!==(zb=h.connectionTimeout)&&void 0!==zb?zb:5E3,kb,null!==(Ab=h.customHeaders)&&void 0!==Ab?Ab:{},null!==(Bb=h.withCredentials)&&void 0!==Bb?Bb:!0),ec=!1,fc=!1,U={enabled:!1,installed:!1,configurations:{}};h.hasOwnProperty("discoverRootDomain")&&h.discoverRootDomain&&(Ma=Ac($a,ab));T.setTrackerVersion(D);T.setTrackerNamespace(z);T.setAppId(Jc); | ||
T.setPlatform(Hc);T.addPayloadPair("cookie",navigator.cookieEnabled?"1":"0");T.addPayloadPair("cs",Gc);T.addPayloadPair("lang",Fc);T.addPayloadPair("res",screen.width+"x"+screen.height);T.addPayloadPair("cd",screen.colorDepth);ka();Ka();h.crossDomainLinker&&X(h.crossDomainLinker);return da(da({},{getDomainSessionIndex:function(){return ha},getPageViewId:function(){return x()},newSession:function(){var d=Math.round((new Date).getTime()/1E3),k=ja(),p=k[1],r=k[2],B=k[3],G=k[4],M=k[5],y=k[6];"0"===k[0]? | ||
(Q=y,"none"!=L&&(B++,M=G,Q=R.v4()),ha=B,Ba()):(Q=R.v4(),ha++);"none"!=L&&(sa(p,r,ha,d,M,Q),Ba());Cb=(new Date).getTime()},getCookieName:function(d){return Da+d+"."+xa},getUserId:function(){return ya},getDomainUserId:function(){return ja()[1]},getDomainUserInfo:function(){return ja()},setReferrerUrl:function(d){bb=d},setCustomUrl:function(d){v();var k=oa,p;S(d)?Ga=d:"/"===d.slice(0,1)?Ga=S(k)+"://"+hb(k)+d:(k=K(k),0<=(p=k.indexOf("?"))&&(k=k.slice(0,p)),(p=k.lastIndexOf("/"))!==k.length-1&&(k=k.slice(0, | ||
p+1)),Ga=k+d)},setDocumentTitle:function(d){Fa=document.title;Na=d},discardHashTag:function(d){Yb=d},discardBrace:function(d){Zb=d},setCookiePath:function(d){jb=d;ka()},setVisitorCookieTimeout:function(d){ac=d},crossDomainLinker:function(d){X(d)},enableActivityTracking:function(d){U.configurations.pagePing||(U.enabled=!0,U.configurations.pagePing=ba(da(da({},d),{callback:na})))},enableActivityTrackingCallback:function(d){U.configurations.callback||(U.enabled=!0,U.configurations.callback=ba(d))},updatePageActivity:function(){O()}, | ||
setOptOutCookie:function(d){Oa=d},setUserId:function(d){ya=d},setUserIdFromLocation:function(d){v();ya=Ia(d,oa)},setUserIdFromReferrer:function(d){v();ya=Ia(d,La)},setUserIdFromCookie:function(d){ya=Y(d)},setCollectorUrl:function(d){Db=n(d);qa.setCollectorUrl(Db)},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={});I(d)},preservePageViewId:function(){ec= | ||
!0},disableAnonymousTracking:function(d){h.anonymousTracking=!1;ta(d);Ka();qa.executeQueue()},enableAnonymousTracking:function(d){var k;h.anonymousTracking=null!==(k=d&&(null===d||void 0===d?void 0:d.options))&&void 0!==k?k:!0;ta(d);Ea||A()},clearUserData:Ja}),{id:q,namespace:z,core:T,sharedState:u})}(a,b,c,e,g,f);var m=da(da({},a),{addPlugin:function(q){var z,D;m.core.addPlugin(q);null===(D=(z=q.plugin).activateBrowserPlugin)||void 0===D?void 0:D.call(z,m)}});l.forEach(function(q){var z;null===(z= | ||
q.activateBrowserPlugin)||void 0===z?void 0:z.call(q,m)});return m}function C(a,b){try{var c=null!==a&&void 0!==a?a:Object.keys(Pa);a=Pa;for(var e=[],g=0;g<c.length;g++){var f=c[g];a.hasOwnProperty(f)?e.push(a[f]):ia.warn(f+" not configured")}e.forEach(b)}catch(l){ia.error("Function failed",l)}}function Kc(){function a(){"hidden"==g.visibilityState&&e.bufferFlushers.forEach(function(l){l(!1)})}function b(){var l;if(!e.hasLoaded)for(e.hasLoaded=!0,l=0;l<e.registeredOnLoadHandlers.length;l++)e.registeredOnLoadHandlers[l](); | ||
return!0}function c(){g.addEventListener?g.addEventListener("DOMContentLoaded",function m(){g.removeEventListener("DOMContentLoaded",m,!1);b()}):g.attachEvent&&g.attachEvent("onreadystatechange",function q(){"complete"===g.readyState&&(g.detachEvent("onreadystatechange",q),b())});ma(f,"load",b,!1)}var e=new Lc,g=document,f=window;g.visibilityState&&ma(g,"visibilitychange",a,!1);ma(f,"beforeunload",function(){e.bufferFlushers.forEach(function(l){l(!1)})},!1);"loading"===document.readyState?c():b(); | ||
return e}for(var da=function(){da=Object.assign||function(a){for(var b,c=1,e=arguments.length;c<e;c++){b=arguments[c];for(var g in b)Object.prototype.hasOwnProperty.call(b,g)&&(a[g]=b[g])}return a};return da.apply(this,arguments)},ic=eb(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 g=0,f;16>g;g++)0===(g&3)&&(f=4294967296*Math.random()),e[g]=f>>>((g&3)<<3)&255;return e}}}),N=[],ra=0;256>ra;++ra)N[ra]=(ra+256).toString(16).substr(1);var jc=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("")},kc,Eb,Fb=0,Gb=0;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||ic)();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||jc(a)};ra.v1=function(a,b,c){c=b&&c||0;var e=b||[];a=a||{};var g=a.node||kc,f=void 0!==a.clockseq?a.clockseq:Eb;if(null==g||null==f){var l=ic();null==g&&(g=kc=[l[0]|1,l[1],l[2],l[3],l[4],l[5]]);null==f&&(f=Eb=(l[6]<<8|l[7])&16383)}l=void 0!==a.msecs?a.msecs:(new Date).getTime();var m=void 0!==a.nsecs?a.nsecs:Gb+1,q=l-Fb+(m-Gb)/1E4;0>q&& | ||
void 0===a.clockseq&&(f=f+1&16383);(0>q||l>Fb)&&void 0===a.nsecs&&(m=0);if(1E4<=m)throw Error("uuid.v1(): Can't create more than 10M uuids/sec");Fb=l;Gb=m;Eb=f;l+=122192928E5;a=(1E4*(l&268435455)+m)%4294967296;e[c++]=a>>>24&255;e[c++]=a>>>16&255;e[c++]=a>>>8&255;e[c++]=a&255;a=l/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++]=f>>>8|128;e[c++]=f&255;for(f=0;6>f;++f)e[c+f]=g[f];return b?b:jc(e)};var R=ra.v4=ra,Ra="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", | ||
la;(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"})(la||(la={}));var ia=function(a){void 0===a&&(a=la.warn);return{setLogLevel:function(b){a=la[b]?b:la.warn},warn:function(b,c){for(var e=[],g=2;g<arguments.length;g++)e[g-2]=arguments[g];a>=la.warn&&"undefined"!==typeof console&&(g="Snowplow: "+b,c?console.warn.apply(console,W([g+"\n",c],e)):console.warn.apply(console,W([g],e)))},error:function(b,c){for(var e=[],g=2;g<arguments.length;g++)e[g- | ||
2]=arguments[g];a>=la.error&&"undefined"!==typeof console&&(g="Snowplow: "+b+"\n",c?console.error.apply(console,W([g+"\n",c],e)):console.error.apply(console,W([g],e)))},debug:function(b){for(var c=[],e=1;e<arguments.length;e++)c[e-1]=arguments[e];a>=la.debug&&"undefined"!==typeof console&&console.debug.apply(console,W(["Snowplow: "+b],c))},info:function(b){for(var c=[],e=1;e<arguments.length;e++)c[e-1]=arguments[e];a>=la.info&&"undefined"!==typeof console&&console.info.apply(console,W(["Snowplow: "+ | ||
b],c))}}}(),db=eb(function(a){(function(){var b={rotl:function(c,e){return c<<e|c>>>32-e},rotr:function(c,e){return c<<32-e|c>>>e},endian:function(c){if(c.constructor==Number)return b.rotl(c,8)&16711935|b.rotl(c,24)&4278255360;for(var e=0;e<c.length;e++)c[e]=b.endian(c[e]);return c},randomBytes:function(c){for(var e=[];0<c;c--)e.push(Math.floor(256*Math.random()));return e},bytesToWords:function(c){for(var e=[],g=0,f=0;g<c.length;g++,f+=8)e[f>>>5]|=c[g]<<24-f%32;return e},wordsToBytes:function(c){for(var e= | ||
[],g=0;g<32*c.length;g+=8)e.push(c[g>>>5]>>>24-g%32&255);return e},bytesToHex:function(c){for(var e=[],g=0;g<c.length;g++)e.push((c[g]>>>4).toString(16)),e.push((c[g]&15).toString(16));return e.join("")},hexToBytes:function(c){for(var e=[],g=0;g<c.length;g+=2)e.push(parseInt(c.substr(g,2),16));return e},bytesToBase64:function(c){for(var e=[],g=0;g<c.length;g+=3)for(var f=c[g]<<16|c[g+1]<<8|c[g+2],l=0;4>l;l++)8*g+6*l<=8*c.length?e.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(f>>> | ||
6*(3-l)&63)):e.push("=");return e.join("")},base64ToBytes:function(c){c=c.replace(/[^A-Z0-9+\/]/ig,"");for(var e=[],g=0,f=0;g<c.length;f=++g%4)0!=f&&e.push(("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(c.charAt(g-1))&Math.pow(2,-2*f+8)-1)<<2*f|"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(c.charAt(g))>>>6-2*f);return e}};a.exports=b})()}),Hb={utf8:{stringToBytes:function(a){return Hb.bin.stringToBytes(unescape(encodeURIComponent(a)))},bytesToString:function(a){return decodeURIComponent(escape(Hb.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("")}}},lc=Hb,Dc=eb(function(a){(function(){var b=lc.utf8,c=lc.bin,e=function(g,f){var l=db.wordsToBytes,m=g;m.constructor==String?m=b.stringToBytes(m):"undefined"!==typeof Buffer&&"function"==typeof Buffer.isBuffer&&Buffer.isBuffer(m)?m=Array.prototype.slice.call(m,0):Array.isArray(m)||(m=m.toString()); | ||
g=db.bytesToWords(m);var q=8*m.length;m=[];var z=1732584193,D=-271733879,F=-1732584194,u=271733878,h=-1009589776;g[q>>5]|=128<<24-q%32;g[(q+64>>>9<<4)+15]=q;for(q=0;q<g.length;q+=16){for(var v=z,H=D,X=F,K=u,S=h,J=0;80>J;J++){if(16>J)m[J]=g[q+J];else{var ka=m[J-3]^m[J-8]^m[J-14]^m[J-16];m[J]=ka<<1|ka>>>31}ka=(z<<5|z>>>27)+h+(m[J]>>>0)+(20>J?(D&F|~D&u)+1518500249:40>J?(D^F^u)+1859775393:60>J?(D&F|D&u|F&u)-1894007588:(D^F^u)-899497514);h=u;u=F;F=D<<30|D>>>2;D=z;z=ka}z+=v;D+=H;F+=X;u+=K;h+=S}l=l.call(db, | ||
[z,D,F,u,h]);return f&&f.asBytes?l:f&&f.asString?c.bytesToString(l):db.bytesToHex(l)};e._blocksize=16;e._digestsize=20;a.exports=e})()}),Pa={},Lc=function(){return function(){this.outQueues=[];this.bufferFlushers=[];this.hasLoaded=!1;this.registeredOnLoadHandlers=[]}}(),mc="undefined"!==typeof window?Kc():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.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(mc)return Pa.hasOwnProperty(a)?a=null:(Pa[a]=Cc(a,a,"js-3.3.1",b,mc,c),a=Pa[a]),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,g=a.event,f=g.schema,l=g.data;g=Qa();f={schema:"iglu:com.snowplowanalytics.snowplow/unstruct_event/jsonschema/1-0-0",data:{schema:f,data:l}};g.add("e","ue");g.addJson("ue_px","ue_pr",f);e.call(c,g,a.context,a.timestamp)})};w.trackStructEvent=function(a,b){C(b,function(c){c=c.core;var e=c.track,g=a.category,f=a.action,l=a.label,m=a.property,q=a.value,z=Qa();z.add("e","se");z.add("se_ca",g);z.add("se_ac",f);z.add("se_la", | ||
l);z.add("se_pr",m);z.add("se_va",null==q?void 0:q.toString());e.call(c,z,a.context,a.timestamp)})};w.updatePageActivity=function(a){C(a,function(b){b.updatePageActivity()})};w.version="3.3.1";Object.defineProperty(w,"__esModule",{value:!0})}) | ||
[];var l=fb(a,c,f,e);g.push.apply(g,l);c=tc(b,c,f,e);g.push.apply(g,c);return g}}}function uc(a){return{addPluginContexts:function(b){var c=b?X([],b,!0):[];a.forEach(function(e){try{e.contexts&&c.push.apply(c,e.contexts())}catch(g){ea.error("Error adding plugin contexts",g)}});return c}}}function vc(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 Lb(a){return(a= | ||
a.split("."))&&1<a.length?vc(a):!1}function Mb(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&&Lb(a[1]))return a.slice(1,6)}function gb(a){if(a=Mb(a)){var b=a[0];return 5===a.length&&Lb(b)}return!1}function wc(a){return Array.isArray(a)&&a.every(function(b){return"string"===typeof b})}function Nb(a){return wc(a)?a.every(function(b){return gb(b)}):"string"===typeof a?gb(a): | ||
!1}function Ha(a){return Ib(a)&&"schema"in a&&"data"in a?"string"===typeof a.schema&&"object"===typeof a.data:!1}function xc(a){var b=0;if(null!=a&&"object"===typeof a&&!Array.isArray(a)){if(Object.prototype.hasOwnProperty.call(a,"accept"))if(Nb(a.accept))b+=1;else return!1;if(Object.prototype.hasOwnProperty.call(a,"reject"))if(Nb(a.reject))b+=1;else return!1;return 0<b&&2>=b}return!1}function Ta(a){return"function"===typeof a&&1>=a.length}function za(a){return Ta(a)||Ha(a)}function Ob(a){return Array.isArray(a)&& | ||
2===a.length?Array.isArray(a[1])?Ta(a[0])&&a[1].every(za):Ta(a[0])&&za(a[1]):!1}function Pb(a){return Array.isArray(a)&&2===a.length?xc(a[0])?Array.isArray(a[1])?a[1].every(za):za(a[1]):!1:!1}function Kb(a){return Ob(a)||Pb(a)}function yc(a,b){var c=0,e=0,g=a.accept;Array.isArray(g)?a.accept.some(function(f){return Ua(f,b)})&&e++:"string"===typeof g&&Ua(g,b)&&e++;g=a.reject;Array.isArray(g)?a.reject.some(function(f){return Ua(f,b)})&&c++:"string"===typeof g&&Ua(g,b)&&c++;return 0<e&&0===c?!0:!1}function Ua(a, | ||
b){if(!gb(a))return!1;a=Mb(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(!zc(a[0],b[0]))return!1;for(var c=1;5>c;c++)if(!Qb(a[c],b[c]))return!1;return!0}return!1}function zc(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(!Qb(b[c],a[c]))return!1;return!0}return!1}function Qb(a,b){return a&&b&&"*"===a||a===b}function Rb(a){return Array.isArray(a)? | ||
a:[a]}function fb(a,b,c,e){var g;a=Rb(a).map(function(f){a:if(Ha(f))f=[f];else{if(Ta(f)){b:{var l=void 0;try{var m={event:b.getPayload(),eventType:c,eventSchema:e};l=f(m);if(Array.isArray(l)&&l.every(Ha)||Ha(l)){var q=l;break b}q=void 0;break b}catch(z){}q=void 0}if(Ha(q)){f=[q];break a}else if(Array.isArray(q)){f=q;break a}}f=void 0}if(f&&0!==f.length)return f});return(g=[]).concat.apply(g,a.filter(function(f){return null!=f&&f.filter(Boolean)}))}function tc(a,b,c,e){var g;a=Rb(a).map(function(f){a:{if(Ob(f)){var l= | ||
f[0],m=!1;try{var q={event:b.getPayload(),eventType:c,eventSchema:e};m=l(q)}catch(z){m=!1}if(!0===m){f=fb(f[1],b,c,e);break a}}else if(Pb(f)&&yc(f[0],e)){f=fb(f[1],b,c,e);break a}f=[]}if(f&&0!==f.length)return f});return(g=[]).concat.apply(g,a.filter(function(f){return null!=f&&f.filter(Boolean)}))}function Ac(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 Bc(a){void 0===a&&(a={});var b=a.base64,c=a.corePlugins,e=null!==c&&void 0!==c?c:[];a=function(f,l,m){function q(h,v){h=D.getApplicableContexts(h);var K=[];v&&v.length&&K.push.apply(K,v);h&&h.length&&K.push.apply(K,h);return K}var z=uc(l),D=sc(),F=f,t={};return{track:function(h,v,K){h.withJsonProcessor(rc(F));h.add("eid",S.v4());h.addDict(t);K=Ac(K);h.add(K.type,K.value.toString());v=q(h,z.addPluginContexts(v));v=v&&v.length?{schema:"iglu:com.snowplowanalytics.snowplow/contexts/jsonschema/1-0-0", | ||
data:v}:void 0;void 0!==v&&h.addJson("cx","co",v);l.forEach(function(I){try{I.beforeTrack&&I.beforeTrack(h)}catch(R){ea.error("Plugin beforeTrack",R)}});"function"===typeof m&&m(h);var P=h.build();l.forEach(function(I){try{I.afterTrack&&I.afterTrack(P)}catch(R){ea.error("Plugin afterTrack",R)}});return P},addPayloadPair:function(h,v){t[h]=v},getBase64Encoding:function(){return F},setBase64Encoding:function(h){F=h},addPayloadDict:function(h){for(var v in h)Object.prototype.hasOwnProperty.call(h,v)&& | ||
(t[v]=h[v])},resetPayloadPairs:function(h){t=Jb(h)?h:{}},setTrackerVersion:function(h){t.tv=h},setTrackerNamespace:function(h){t.tna=h},setAppId:function(h){t.aid=h},setPlatform:function(h){t.p=h},setUserId:function(h){t.uid=h},setScreenResolution:function(h,v){t.res=h+"x"+v},setViewport:function(h,v){t.vp=h+"x"+v},setColorDepth:function(h){t.cd=h},setTimezone:function(h){t.tz=h},setLang:function(h){t.lang=h},setIpAddress:function(h){t.ip=h},setUseragent:function(h){t.ua=h},addGlobalContexts:function(h){D.addGlobalContexts(h)}, | ||
clearGlobalContexts:function(){D.clearGlobalContexts()},removeGlobalContexts:function(h){D.removeGlobalContexts(h)}}}(null!==b&&void 0!==b?b:!0,e,a.callback);var g=fa(fa({},a),{addPlugin:function(f){var l,m;f=f.plugin;e.push(f);null===(l=f.logger)||void 0===l?void 0:l.call(f,ea);null===(m=f.activateCorePlugin)||void 0===m?void 0:m.call(f,g)}});null===e||void 0===e?void 0:e.forEach(function(f){var l,m;null===(l=f.logger)||void 0===l?void 0:l.call(f,ea);null===(m=f.activateCorePlugin)||void 0===m?void 0: | ||
m.call(f,g)});return g}function Cc(a){var b=a.pageUrl,c=a.pageTitle;a=a.referrer;var e=Ra();e.add("e","pv");e.add("url",b);e.add("page",c);e.add("refr",a);return e}function Dc(){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 Sb(a){return Number.isInteger&&Number.isInteger(a)||"number"===typeof a&&isFinite(a)&&Math.floor(a)===a}function Tb(a){if(!a||"string"!== | ||
typeof a.valueOf()){a=a.text||"";var b=document.getElementsByTagName("title");b&&null!=b[0]&&(a=b[0].text)}return a}function hb(a){var b=/^(?:(?:https?|ftp):)\/*(?:[^@]+@)?([^:/#]+)/.exec(a);return b?b[1]:a}function Ub(a){var b=a.length;"."===a.charAt(--b)&&(a=a.slice(0,b));"*."===a.slice(0,2)&&(a=a.slice(1));return a}function ib(a){var b=window,c=Ia("referrer",b.location.href)||Ia("referer",b.location.href);if(c)return c;if(a)return a;try{if(b.top)return b.top.document.referrer;if(b.parent)return b.parent.document.referrer}catch(e){}return document.referrer} | ||
function ma(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 Ia(a,b){return(a=(new RegExp("^[^#]*[?&]"+a+"=([^&#]*)")).exec(b))?decodeURIComponent(a[1].replace(/\+/g," ")):null}function Va(a,b,c){void 0===c&&(c=63072E3);try{var e=window.localStorage,g=Date.now()+1E3*c;e.setItem("".concat(a,".expires"),g.toString());e.setItem(a,b);return!0}catch(f){return!1}}function Vb(a){try{var b=window.localStorage;b.removeItem(a); | ||
b.removeItem(a+".expires");return!0}catch(c){return!1}}function Ec(a,b){for(var c=window.location.hostname,e="_sp_root_domain_test_"+(new Date).getTime(),g="_test_value_"+(new Date).getTime(),f=c.split("."),l=f.length-1;0<=l;){var m=f.slice(l,f.length).join(".");Y(e,g,0,"/",m,a,b);if(Y(e)===g){Y(e,"",-1,"/",m,a,b);c=document.cookie.split("; ");e=[];for(g=0;g<c.length;g++)"_sp_root_domain_test_"===c[g].substring(0,21)&&e.push(c[g]);c=e;for(e=0;e<c.length;e++)Y(c[e],"",-1,"/",m,a,b);return m}--l}return c} | ||
function Y(a,b,c,e,g,f,l){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:"")+(g?"; Domain="+g:"")+(f?"; SameSite="+f:"")+(l?"; Secure":""):decodeURIComponent((("; "+document.cookie).split("; "+a+"=")[1]||"").split(";")[0])}function Fc(a,b,c,e,g,f,l,m,q,z,D,F,t,h){function v(n){var y=Object.keys(n).map(function(x){return[x,n[x]]}).reduce(function(x,r){x[r[0]]=r[1].toString(); | ||
return x},{});return{evt:y,bytes:K(JSON.stringify(y))}}function K(n){for(var y=0,x=0;x<n.length;x++){var r=n.charCodeAt(x);127>=r?y+=1:2047>=r?y+=2:55296<=r&&57343>=r?(y+=4,x++):y=65535>r?y+3:y+4}return y}function P(n){for(void 0===n&&(n=!1);E.length&&"string"!==typeof E[0]&&"object"!==typeof E[0];)E.shift();if(1>E.length)T=!1;else{if(!Z||"string"!==typeof Z.valueOf())throw"No collector configured";T=!0;if(sa){var y=function(aa){for(var ba=0,Aa=0;ba<aa.length&&!(Aa+=aa[ba].bytes,Aa>=l);)ba+=1;return ba}, | ||
x=void 0;if(Ba(E)){x=Z;var r=I(x,!0,n);var J=y(E)}else x=ca(E[0]),r=I(x,!1,n),J=1;var L=setTimeout(function(){r.abort();T=!1},D),ja=function(aa){for(var ba=0;ba<aa;ba++)E.shift();c&&Va(ta,JSON.stringify(E.slice(0,z)));P()};r.onreadystatechange=function(){4===r.readyState&&200<=r.status&&400>r.status?(clearTimeout(L),ja(J)):4===r.readyState&&400<=r.status&&(clearTimeout(L),T=!1)};if(Ba(E)){if(y=E.slice(0,J),0<y.length){n=!1;y=y.map(function(aa){return aa.evt});if(Ja){var Ka=new Blob([R(H(y))],{type:"application/json"}); | ||
try{n=navigator.sendBeacon(x,Ka)}catch(aa){n=!1}}!0===n?ja(J):r.send(R(H(y)))}}else r.send()}else if(F||Ba(E))T=!1;else{x=new Image(1,1);var ha=!0;x.onload=function(){ha&&(ha=!1,E.shift(),c&&Va(ta,JSON.stringify(E.slice(0,z))),P())};x.onerror=function(){ha&&(T=ha=!1)};x.src=ca(E[0]);setTimeout(function(){ha&&T&&(ha=!1,P())},D)}}}function I(n,y,x){var r=new XMLHttpRequest;y?(r.open("POST",n,!x),r.setRequestHeader("Content-Type","application/json; charset=UTF-8")):r.open("GET",n,!x);r.withCredentials= | ||
h;F&&r.setRequestHeader("SP-Anonymous","*");for(var J in t)Object.prototype.hasOwnProperty.call(t,J)&&r.setRequestHeader(J,t[J]);return r}function R(n){return JSON.stringify({schema:"iglu:com.snowplowanalytics.snowplow/payload_data/jsonschema/1-0-4",data:n})}function H(n){for(var y=(new Date).getTime().toString(),x=0;x<n.length;x++)n[x].stm=y;return n}function ca(n){return q?Z+n.replace("?","?stm="+(new Date).getTime()+"&"):Z+n}function ua(n){function y(r,J,L){return(L=L.match("(Macintosh;.*Mac OS X (d+)_(d+)[_d]*.*) AppleWebKit/"))&& | ||
L.length?parseInt(L[0])<=r||parseInt(L[0])===r&&parseInt(L[1])<=J:!1}function x(r){return r.match("Version/.* Safari/")&&!r.match("Chrom(e|ium)")}return function(r,J){return(J=J.match("(iP.+; CPU .*OS (d+)[_d]*.*) AppleWebKit/"))&&J.length?parseInt(J[0])<=r:!1}(13,n)||y(10,15,n)&&x(n)}var T=!1,Z,E=[];e="string"===typeof e?e.toLowerCase():e;var ka=!0===e||"beacon"===e||"true"===e,Ja=!(!(ka&&window.navigator&&window.navigator.sendBeacon)||ua(window.navigator.userAgent))&&ka,sa=!!(window.XMLHttpRequest&& | ||
"withCredentials"in new XMLHttpRequest),va="get"!==e&&sa&&("post"===e||ka),La=va?g:"/i",ta="snowplowOutQueue_".concat(a,"_").concat(va?"post2":"get");ka&&(t={});f=c&&Dc()&&va&&f||1;if(c)try{var na=window.localStorage.getItem(ta);E=na?JSON.parse(na):[]}catch(n){}Array.isArray(E)||(E=[]);b.outQueues.push(E);sa&&1<f&&b.bufferFlushers.push(function(n){T||P(n)});var Ba=function(n){return"object"===typeof n[0]};return{enqueueRequest:function(n,y){Z=y+La;if(va){n=v(n);if(n.bytes>=l){ea.warn("Event ("+n.bytes+ | ||
"B) too big, max is "+l);y=n;I(Z,!0,!1).send(R(H([y.evt])));return}E.push(n)}else{var x="?";var r={co:!0,cx:!0},J=!0,L;for(L in n)n.hasOwnProperty(L)&&!r.hasOwnProperty(L)&&(J?J=!1:x+="&",x+=encodeURIComponent(L)+"="+encodeURIComponent(n[L]));for(var ja in r)n.hasOwnProperty(ja)&&r.hasOwnProperty(ja)&&(x+="&"+ja+"="+encodeURIComponent(n[ja]));if(0<m&&(r=ca(x),r=K(r),r>=m)){ea.warn("Event ("+r+"B) too big, max is "+m);sa&&(n=v(n),I(y+g,!0,!1).send(R(H([n.evt]))));return}E.push(x)}y=!1;c&&(y=Va(ta, | ||
JSON.stringify(E.slice(0,z))));T||y&&!(E.length>=f)||P()},executeQueue:function(){T||P()},setUseLocalStorage:function(n){c=n},setAnonymousTracking:function(n){F=n},setCollectorUrl:function(n){Z=n+La},setBufferSize:function(n){f=n}}}function Wb(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)?Ia("u",a[1]):null,b=null!==a&&void 0!==a?a:"",a=hb(b);else if("cc.bingj.com"===a||"webcache.googleusercontent.com"=== | ||
a)b=document.links[0].href,a=hb(b);return[a,b,c]}function Gc(a,b,c,e,g,f){void 0===f&&(f={});var l=[];a=function(q,z,D,F,t,h){function v(){wa=Wb(window.location.hostname,window.location.href,ib());wa[1]!==oa&&(Ma=ib(oa));Xb=Ub(wa[0]);oa=wa[1]}function K(d){var k=(new Date).getTime();d=d.currentTarget;if(null===d||void 0===d?0:d.href){k="_sp="+(Ca+"."+k);var p=d.href.split("#"),u=p[0].split("?"),B=u.shift();if(u=u.join("?")){for(var G=!0,N=u.split("&"),A=0;A<N.length;A++)if("_sp="===N[A].substr(0, | ||
4)){G=!1;N[A]=k;u=N.join("&");break}G&&(u=k+"&"+u)}else u=k;p[0]=B+"?"+u;k=p.join("#");d.href=k}}function P(d){for(var k=0;k<document.links.length;k++){var p=document.links[k];!p.spDecorationEnabled&&d(p)&&(ma(p,"click",K,!0),ma(p,"mousedown",K,!0),p.spDecorationEnabled=!0)}}function I(d){if(Yb){var k=/#.*/;d=d.replace(k,"")}Zb&&(k=/[{}]/g,d=d.replace(k,""));return d}function R(d){return(d=/^([a-z]+):/.exec(d))?d[1]:null}function H(d){d=Da+d+"."+xa;if("localStorage"==M){try{var k=window.localStorage, | ||
p=k.getItem(d+".expires");if(null===p||+p>Date.now())var u=k.getItem(d);else k.removeItem(d),k.removeItem(d+".expires"),u=void 0}catch(B){u=void 0}return u}if("cookie"==M||"cookieAndLocalStorage"==M)return Y(d)}function ca(){v();xa=Hc((Na||Xb)+(jb||"/")).slice(0,4)}function ua(){Wa=(new Date).getTime()}function T(){var d=Z(),k=d[0];k<Xa?Xa=k:k>Ya&&(Ya=k);d=d[1];d<Za?Za=d:d>$a&&($a=d);ua()}function Z(){var d=document.documentElement;return d?[d.scrollLeft||window.pageXOffset,d.scrollTop||window.pageYOffset]: | ||
[0,0]}function E(){var d=Z(),k=d[0];Ya=Xa=k;$a=Za=d=d[1]}function ka(){sa(Da+"ses."+xa,"*",$b)}function Ja(d,k,p,u,B,G){sa(Da+"id."+xa,d+"."+k+"."+p+"."+u+"."+B+"."+G,ac)}function sa(d,k,p){if(!pa||Ea)"localStorage"==M?Va(d,k,p):("cookie"==M||"cookieAndLocalStorage"==M)&&Y(d,k,p,jb,Na,ab,bb)}function va(d){var k=Da+"id."+xa,p=Da+"ses."+xa;Vb(k);Vb(p);Y(k,"",-1,"/",Na,ab,bb);Y(p,"",-1,"/",Na,ab,bb);null!==d&&void 0!==d&&d.preserveSession||(Q=S.v4(),ia=0);null!==d&&void 0!==d&&d.preserveUser||(Ca=S.v4(), | ||
ya=null)}function La(d){d&&d.stateStorageStrategy&&(h.stateStorageStrategy=d.stateStorageStrategy,M=bc(h));pa=!!h.anonymousTracking;Ea=cc(h);kb=dc(h);qa.setUseLocalStorage("localStorage"==M||"cookieAndLocalStorage"==M);qa.setAnonymousTracking(kb)}function ta(){if(!pa||Ea){var d="none"!=M&&!!H("ses"),k=na();k[1]?Ca=k[1]:(Ca=pa?"":S.v4(),k[1]=Ca);Q=k[6];d||(k[3]++,Q=S.v4(),k[6]=Q,k[5]=k[4]);"none"!=M&&(ka(),k[4]=Math.round((new Date).getTime()/1E3),k.shift(),Ja.apply(null,k))}}function na(){if("none"== | ||
M)return[];var d=Math.round((new Date).getTime()/1E3),k=H("id");k?(d=k.split("."),d.unshift("0")):d=["1",Ca,d,0,d,""];d[6]&&"undefined"!==d[6]||(d[6]=S.v4());return d}function Ba(d){return 0===d.indexOf("http")?d:("https:"===document.location.protocol?"https":"http")+"://"+d}function n(){ec&&null!=t.pageViewId||(t.pageViewId=S.v4())}function y(){null==t.pageViewId&&(t.pageViewId=S.v4());return t.pageViewId}function x(){return{contexts:function(){return[{schema:"iglu:com.snowplowanalytics.snowplow/web_page/jsonschema/1-0-0", | ||
data:{id:y()}}]}}}function r(d){var k=d.title,p=d.context,u=d.timestamp;d=d.contextCallback;v();fc&&n();fc=!0;Fa=document.title;Oa=k;k=Tb(Oa||Fa);U.track(Cc({pageUrl:I(Ga||oa),pageTitle:k,referrer:I(cb||Ma)}),(p||[]).concat(d?d():[]),u);u=new Date;k=!1;if(V.enabled&&!V.installed){k=V.installed=!0;var B={update:function(){if("undefined"!==typeof window&&"function"===typeof window.addEventListener){var N=!1,A=Object.defineProperty({},"passive",{get:function(){N=!0},set:function(){}}),W=function(){}; | ||
window.addEventListener("testPassiveEventSupport",W,A);window.removeEventListener("testPassiveEventSupport",W,A);B.hasSupport=N}}};B.update();var G="onwheel"in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll";Object.prototype.hasOwnProperty.call(B,"hasSupport")?ma(document,G,ua,{passive:!0}):ma(document,G,ua);E();G=function(N,A){void 0===A&&(A=ua);return function(W){return ma(document,W,A)}};"click mouseup mousedown mousemove keypress keydown keyup".split(" ").forEach(G(document)); | ||
["resize","focus","blur"].forEach(G(window));G(window,T)("scroll")}if(V.enabled&&(Ic||k))for(u in Wa=u.getTime(),u=void 0,V.configurations)if(k=V.configurations[u])window.clearInterval(k.activityInterval),J(k,p,d)}function J(d,k,p){var u=function(G,N){v();G({context:N,pageViewId:y(),minXOffset:Xa,minYOffset:Za,maxXOffset:Ya,maxYOffset:$a});E()},B=function(){Wa+d.configHeartBeatTimer>(new Date).getTime()&&u(d.callback,(k||[]).concat(p?p():[]))};d.activityInterval=0!=d.configMinimumVisitLength?window.setTimeout(function(){Wa+ | ||
d.configMinimumVisitLength>(new Date).getTime()&&u(d.callback,(k||[]).concat(p?p():[]));d.activityInterval=window.setInterval(B,d.configHeartBeatTimer)},d.configMinimumVisitLength):window.setInterval(B,d.configHeartBeatTimer)}function L(d){var k=d.minimumVisitLength,p=d.heartbeatDelay;d=d.callback;if(Sb(k)&&Sb(p))return{configMinimumVisitLength:1E3*k,configHeartBeatTimer:1E3*p,callback:d};ea.error("Activity tracking minimumVisitLength & heartbeatDelay must be integers")}function ja(d){var k=d.context, | ||
p=d.minXOffset,u=d.minYOffset,B=d.maxXOffset,G=d.maxYOffset;d=document.title;d!==Fa&&(Fa=d,Oa=void 0);d=U;var N=d.track,A=I(Ga||oa),W=Tb(Oa||Fa),db=I(cb||Ma);p=Math.round(p);B=Math.round(B);u=Math.round(u);G=Math.round(G);var da=Ra();da.add("e","pp");da.add("url",A);da.add("page",W);da.add("refr",db);p&&!isNaN(Number(p))&&da.add("pp_mix",p.toString());B&&!isNaN(Number(B))&&da.add("pp_max",B.toString());u&&!isNaN(Number(u))&&da.add("pp_miy",u.toString());G&&!isNaN(Number(G))&&da.add("pp_may",G.toString()); | ||
N.call(d,da,k)}var Ka,ha,aa,ba,Aa,lb,mb,nb,ob,pb,qb,rb,sb,tb,ub,vb,wb,xb,yb,zb,Ab,Bb;h.eventMethod=null!==(Ka=h.eventMethod)&&void 0!==Ka?Ka:"post";var bc=function(d){var k;return null!==(k=d.stateStorageStrategy)&&void 0!==k?k:"cookieAndLocalStorage"},cc=function(d){var k,p;return"boolean"===typeof d.anonymousTracking?!1:null!==(p=!0===(null===(k=d.anonymousTracking)||void 0===k?void 0:k.withSessionTracking))&&void 0!==p?p:!1},dc=function(d){var k,p;return"boolean"===typeof d.anonymousTracking?!1: | ||
null!==(p=!0===(null===(k=d.anonymousTracking)||void 0===k?void 0:k.withServerAnonymisation))&&void 0!==p?p:!1};l.push(function(){return{beforeTrack:function(d){var k=Math.round((new Date).getTime()/1E3),p=H("ses"),u=na(),B=u[0],G=u[1],N=u[2],A=u[3],W=u[4],db=u[5];u=u[6];var da=Pa?!!Y(Pa):!1;gc||da?va():("0"===B?(Q=u,p||"none"==M||(A++,db=W,Q=S.v4()),ia=A):(new Date).getTime()-Cb>1E3*$b&&(Q=S.v4(),ia++),p=d.add,"innerWidth"in window?(B=window.innerWidth,A=window.innerHeight):(A=document.documentElement|| | ||
document.body,B=A.clientWidth,A=A.clientHeight),p.call(d,"vp",0<=B&&0<=A?B+"x"+A:null),p=d.add,A=document.documentElement,W=document.body,B=Math.max(A.clientWidth,A.offsetWidth,A.scrollWidth),A=Math.max(A.clientHeight,A.offsetHeight,A.scrollHeight,W?Math.max(W.offsetHeight,W.scrollHeight):0),B=isNaN(B)||isNaN(A)?"":B+"x"+A,p.call(d,"ds",B),d.add("vid",Ea?ia:pa?null:ia),d.add("sid",Ea?Q:pa?null:Q),d.add("duid",pa?null:G),d.add("uid",pa?null:ya),v(),d.add("refr",I(cb||Ma)),d.add("url",I(Ga||oa)),"none"!= | ||
M&&(Ja(G,N,ia,k,db,Q),ka()),Cb=(new Date).getTime())}}}());(null!==(aa=null===(ha=null===h||void 0===h?void 0:h.contexts)||void 0===ha?void 0:ha.webPage)&&void 0!==aa?aa:1)&&l.push(x());l.push.apply(l,null!==(ba=h.plugins)&&void 0!==ba?ba:[]);var U=Bc({base64:h.encodeBase64,corePlugins:l,callback:function(d){var k=Pa?!!Y(Pa):!1;gc||k||qa.enqueueRequest(d.build(),Db)}}),Jc=navigator.userLanguage||navigator.language,Kc=document.characterSet||document.charset,wa=Wb(window.location.hostname,window.location.href, | ||
ib()),Xb=Ub(wa[0]),oa=wa[1],Ma=wa[2],cb,Lc=null!==(Aa=h.platform)&&void 0!==Aa?Aa:"web",Db=Ba(F),Mc=null!==(lb=h.postPath)&&void 0!==lb?lb:"/com.snowplowanalytics.snowplow/tp2",Nc=null!==(mb=h.appId)&&void 0!==mb?mb:"",Ga,Fa=document.title,Oa,Ic=null!==(nb=h.resetActivityTrackingOnPageView)&&void 0!==nb?nb:!0,Yb,Zb,Da=null!==(ob=h.cookieName)&&void 0!==ob?ob:"_sp_",Na=null!==(pb=h.cookieDomain)&&void 0!==pb?pb:void 0,jb="/",ab=null!==(qb=h.cookieSameSite)&&void 0!==qb?qb:"None",bb=null!==(rb=h.cookieSecure)&& | ||
void 0!==rb?rb:!0,hc=navigator.doNotTrack||navigator.msDoNotTrack||window.doNotTrack,gc="undefined"!==typeof h.respectDoNotTrack?h.respectDoNotTrack&&("yes"===hc||"1"===hc):!1,Pa,ac=null!==(sb=h.cookieLifetime)&&void 0!==sb?sb:63072E3,$b=null!==(tb=h.sessionCookieTimeout)&&void 0!==tb?tb:1800,Ea=cc(h),kb=dc(h),pa=!!h.anonymousTracking,M=bc(h),Wa,Cb=(new Date).getTime(),Xa,Ya,Za,$a,xa,Ca,Q,ia=1,ya,qa=Fc(q,t,"localStorage"==M||"cookieAndLocalStorage"==M,h.eventMethod,Mc,null!==(ub=h.bufferSize)&&void 0!== | ||
ub?ub:1,null!==(vb=h.maxPostBytes)&&void 0!==vb?vb:4E4,null!==(wb=h.maxGetBytes)&&void 0!==wb?wb:0,null!==(xb=h.useStm)&&void 0!==xb?xb:!0,null!==(yb=h.maxLocalStorageQueueSize)&&void 0!==yb?yb:1E3,null!==(zb=h.connectionTimeout)&&void 0!==zb?zb:5E3,kb,null!==(Ab=h.customHeaders)&&void 0!==Ab?Ab:{},null!==(Bb=h.withCredentials)&&void 0!==Bb?Bb:!0),ec=!1,fc=!1,V={enabled:!1,installed:!1,configurations:{}};h.hasOwnProperty("discoverRootDomain")&&h.discoverRootDomain&&(Na=Ec(ab,bb));U.setTrackerVersion(D); | ||
U.setTrackerNamespace(z);U.setAppId(Nc);U.setPlatform(Lc);U.addPayloadPair("cookie",navigator.cookieEnabled?"1":"0");U.addPayloadPair("cs",Kc);U.addPayloadPair("lang",Jc);U.addPayloadPair("res",screen.width+"x"+screen.height);U.addPayloadPair("cd",screen.colorDepth);ca();ta();h.crossDomainLinker&&P(h.crossDomainLinker);return fa(fa({},{getDomainSessionIndex:function(){return ia},getPageViewId:function(){return y()},newSession:function(){var d=Math.round((new Date).getTime()/1E3),k=na(),p=k[1],u=k[2], | ||
B=k[3],G=k[4],N=k[5],A=k[6];"0"===k[0]?(Q=A,"none"!=M&&(B++,N=G,Q=S.v4()),ia=B,ka()):(Q=S.v4(),ia++);"none"!=M&&(Ja(p,u,ia,d,N,Q),ka());Cb=(new Date).getTime()},getCookieName:function(d){return Da+d+"."+xa},getUserId:function(){return ya},getDomainUserId:function(){return na()[1]},getDomainUserInfo:function(){return na()},setReferrerUrl:function(d){cb=d},setCustomUrl:function(d){v();var k=oa,p;R(d)?Ga=d:"/"===d.slice(0,1)?Ga=R(k)+"://"+hb(k)+d:(k=I(k),0<=(p=k.indexOf("?"))&&(k=k.slice(0,p)),(p=k.lastIndexOf("/"))!== | ||
k.length-1&&(k=k.slice(0,p+1)),Ga=k+d)},setDocumentTitle:function(d){Fa=document.title;Oa=d},discardHashTag:function(d){Yb=d},discardBrace:function(d){Zb=d},setCookiePath:function(d){jb=d;ca()},setVisitorCookieTimeout:function(d){ac=d},crossDomainLinker:function(d){P(d)},enableActivityTracking:function(d){V.configurations.pagePing||(V.enabled=!0,V.configurations.pagePing=L(fa(fa({},d),{callback:ja})))},enableActivityTrackingCallback:function(d){V.configurations.callback||(V.enabled=!0,V.configurations.callback= | ||
L(d))},updatePageActivity:function(){ua()},setOptOutCookie:function(d){Pa=d},setUserId:function(d){ya=d},setUserIdFromLocation:function(d){v();ya=Ia(d,oa)},setUserIdFromReferrer:function(d){v();ya=Ia(d,Ma)},setUserIdFromCookie:function(d){ya=Y(d)},setCollectorUrl:function(d){Db=Ba(d);qa.setCollectorUrl(Db)},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={});r(d)},preservePageViewId:function(){ec=!0},disableAnonymousTracking:function(d){h.anonymousTracking=!1;La(d);ta();qa.executeQueue()},enableAnonymousTracking:function(d){var k;h.anonymousTracking=null!==(k=d&&(null===d||void 0===d?void 0:d.options))&&void 0!==k?k:!0;La(d);Ea||n()},clearUserData:va}),{id:q,namespace:z,core:U,sharedState:t})}(a,b,c,e,g,f);var m=fa(fa({},a),{addPlugin:function(q){var z,D;m.core.addPlugin(q);null===(D=(z=q.plugin).activateBrowserPlugin)||void 0===D?void 0:D.call(z, | ||
m)}});l.forEach(function(q){var z;null===(z=q.activateBrowserPlugin)||void 0===z?void 0:z.call(q,m)});return m}function C(a,b){try{var c=null!==a&&void 0!==a?a:Object.keys(Qa);a=Qa;for(var e=[],g=0;g<c.length;g++){var f=c[g];a.hasOwnProperty(f)?e.push(a[f]):ea.warn(f+" not configured")}e.forEach(b)}catch(l){ea.error("Function failed",l)}}function Oc(){function a(){"hidden"==g.visibilityState&&e.bufferFlushers.forEach(function(l){l(!1)})}function b(){var l;if(!e.hasLoaded)for(e.hasLoaded=!0,l=0;l< | ||
e.registeredOnLoadHandlers.length;l++)e.registeredOnLoadHandlers[l]();return!0}function c(){g.addEventListener?g.addEventListener("DOMContentLoaded",function m(){g.removeEventListener("DOMContentLoaded",m,!1);b()}):g.attachEvent&&g.attachEvent("onreadystatechange",function q(){"complete"===g.readyState&&(g.detachEvent("onreadystatechange",q),b())});ma(f,"load",b,!1)}var e=new Pc,g=document,f=window;g.visibilityState&&ma(g,"visibilitychange",a,!1);ma(f,"beforeunload",function(){e.bufferFlushers.forEach(function(l){l(!1)})}, | ||
!1);"loading"===document.readyState?c():b();return e}var fa=function(){fa=Object.assign||function(a){for(var b,c=1,e=arguments.length;c<e;c++){b=arguments[c];for(var g in b)Object.prototype.hasOwnProperty.call(b,g)&&(a[g]=b[g])}return a};return fa.apply(this,arguments)},ra={},ic="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(ic){var jc= | ||
new Uint8Array(16);ra=function(){ic(jc);return jc}}else{var kc=Array(16);ra=function(){for(var a=0,b;16>a;a++)0===(a&3)&&(b=4294967296*Math.random()),kc[a]=b>>>((a&3)<<3)&255;return kc}}for(var O=[],eb=0;256>eb;++eb)O[eb]=(eb+256).toString(16).substr(1);var lc=function(a,b){b=b||0;return[O[a[b++]],O[a[b++]],O[a[b++]],O[a[b++]],"-",O[a[b++]],O[a[b++]],"-",O[a[b++]],O[a[b++]],"-",O[a[b++]],O[a[b++]],"-",O[a[b++]],O[a[b++]],O[a[b++]],O[a[b++]],O[a[b++]],O[a[b++]]].join("")},Qc=ra,mc,Eb,Fb=0,Gb=0,Rc= | ||
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||Rc)();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||lc(a)};ra.v1=function(a,b,c){c=b&&c||0;var e=b||[];a=a||{};var g=a.node||mc,f=void 0!==a.clockseq?a.clockseq:Eb;if(null==g||null==f){var l=Qc();null==g&&(g=mc=[l[0]|1,l[1],l[2],l[3],l[4],l[5]]);null==f&&(f=Eb=(l[6]<<8|l[7])&16383)}l=void 0!==a.msecs?a.msecs:(new Date).getTime();var m=void 0!==a.nsecs? | ||
a.nsecs:Gb+1,q=l-Fb+(m-Gb)/1E4;0>q&&void 0===a.clockseq&&(f=f+1&16383);(0>q||l>Fb)&&void 0===a.nsecs&&(m=0);if(1E4<=m)throw Error("uuid.v1(): Can't create more than 10M uuids/sec");Fb=l;Gb=m;Eb=f;l+=122192928E5;a=(1E4*(l&268435455)+m)%4294967296;e[c++]=a>>>24&255;e[c++]=a>>>16&255;e[c++]=a>>>8&255;e[c++]=a&255;a=l/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++]=f>>>8|128;e[c++]=f&255;for(f=0;6>f;++f)e[c+f]=g[f];return b?b:lc(e)};var S=ra.v4=ra,Sa= | ||
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",la;(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"})(la||(la={}));var ea=function(a){void 0===a&&(a=la.warn);return{setLogLevel:function(b){a=la[b]?b:la.warn},warn:function(b,c){for(var e=[],g=2;g<arguments.length;g++)e[g-2]=arguments[g];a>=la.warn&&"undefined"!==typeof console&&(g="Snowplow: "+b,c?console.warn.apply(console,X([g+"\n",c],e,!1)):console.warn.apply(console, | ||
X([g],e,!1)))},error:function(b,c){for(var e=[],g=2;g<arguments.length;g++)e[g-2]=arguments[g];a>=la.error&&"undefined"!==typeof console&&(g="Snowplow: "+b+"\n",c?console.error.apply(console,X([g+"\n",c],e,!1)):console.error.apply(console,X([g],e,!1)))},debug:function(b){for(var c=[],e=1;e<arguments.length;e++)c[e-1]=arguments[e];a>=la.debug&&"undefined"!==typeof console&&console.debug.apply(console,X(["Snowplow: "+b],c,!1))},info:function(b){for(var c=[],e=1;e<arguments.length;e++)c[e-1]=arguments[e]; | ||
a>=la.info&&"undefined"!==typeof console&&console.info.apply(console,X(["Snowplow: "+b],c,!1))}}}(),nc={},oc={};(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, | ||
g=0;e<b.length;e++,g+=8)c[g>>>5]|=b[e]<<24-g%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 g=b[e]<<16|b[e+1]<<8|b[e+2],f=0;4>f;f++)8* | ||
e+6*f<=8*b.length?c.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(g>>>6*(3-f)&63)):c.push("=");return c.join("")},base64ToBytes:function(b){b=b.replace(/[^A-Z0-9+\/]/ig,"");for(var c=[],e=0,g=0;e<b.length;g=++e%4)0!=g&&c.push(("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(b.charAt(e-1))&Math.pow(2,-2*g+8)-1)<<2*g|"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(b.charAt(e))>>>6-2*g);return c}};oc=a})();var Hb= | ||
{utf8:{stringToBytes:function(a){return Hb.bin.stringToBytes(unescape(encodeURIComponent(a)))},bytesToString:function(a){return decodeURIComponent(escape(Hb.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("")}}},pc=Hb;(function(){var a=oc,b=pc.utf8,c=pc.bin,e=function(g,f){var l=a.wordsToBytes,m=g;m.constructor==String? | ||
m=b.stringToBytes(m):"undefined"!==typeof Buffer&&"function"==typeof Buffer.isBuffer&&Buffer.isBuffer(m)?m=Array.prototype.slice.call(m,0):Array.isArray(m)||(m=m.toString());g=a.bytesToWords(m);var q=8*m.length;m=[];var z=1732584193,D=-271733879,F=-1732584194,t=271733878,h=-1009589776;g[q>>5]|=128<<24-q%32;g[(q+64>>>9<<4)+15]=q;for(q=0;q<g.length;q+=16){for(var v=z,K=D,P=F,I=t,R=h,H=0;80>H;H++){if(16>H)m[H]=g[q+H];else{var ca=m[H-3]^m[H-8]^m[H-14]^m[H-16];m[H]=ca<<1|ca>>>31}ca=(z<<5|z>>>27)+h+(m[H]>>> | ||
0)+(20>H?(D&F|~D&t)+1518500249:40>H?(D^F^t)+1859775393:60>H?(D&F|D&t|F&t)-1894007588:(D^F^t)-899497514);h=t;t=F;F=D<<30|D>>>2;D=z;z=ca}z+=v;D+=K;F+=P;t+=I;h+=R}l=l.call(a,[z,D,F,t,h]);return f&&f.asBytes?l:f&&f.asString?c.bytesToString(l):a.bytesToHex(l)};e._blocksize=16;e._digestsize=20;nc=e})();var Hc=nc,Qa={},Pc=function(){return function(){this.outQueues=[];this.bufferFlushers=[];this.hasLoaded=!1;this.registeredOnLoadHandlers=[]}}(),qc="undefined"!==typeof window?Oc():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.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(qc){var e="js-".concat("3.4.0");Qa.hasOwnProperty(a)?a=null:(Qa[a]=Gc(a,a,e,b,qc,c),a=Qa[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,g=a.event,f=g.schema,l=g.data;g=Ra();f={schema:"iglu:com.snowplowanalytics.snowplow/unstruct_event/jsonschema/1-0-0",data:{schema:f,data:l}};g.add("e","ue");g.addJson("ue_px","ue_pr",f);e.call(c,g,a.context, | ||
a.timestamp)})};w.trackStructEvent=function(a,b){C(b,function(c){c=c.core;var e=c.track,g=a.category,f=a.action,l=a.label,m=a.property,q=a.value,z=Ra();z.add("e","se");z.add("se_ca",g);z.add("se_ac",f);z.add("se_la",l);z.add("se_pr",m);z.add("se_va",null==q?void 0:q.toString());e.call(c,z,a.context,a.timestamp)})};w.updatePageActivity=function(a){C(a,function(b){b.updatePageActivity()})};w.version="3.4.0";Object.defineProperty(w,"__esModule",{value:!0})}) | ||
//# sourceMappingURL=index.umd.min.js.map |
{ | ||
"name": "@snowplow/browser-tracker", | ||
"version": "3.3.1", | ||
"version": "3.4.0", | ||
"description": "Browser tracker for Snowplow", | ||
@@ -35,33 +35,34 @@ "keywords": [ | ||
"dependencies": { | ||
"@snowplow/browser-tracker-core": "3.3.1", | ||
"@snowplow/tracker-core": "3.3.1", | ||
"tslib": "^2.3.0" | ||
"@snowplow/browser-tracker-core": "3.4.0", | ||
"@snowplow/tracker-core": "3.4.0", | ||
"tslib": "^2.3.1" | ||
}, | ||
"devDependencies": { | ||
"@ampproject/rollup-plugin-closure-compiler": "^0.27.0", | ||
"@rollup/plugin-commonjs": "^17.1.0", | ||
"@rollup/plugin-node-resolve": "^11.2.0", | ||
"@types/jest": "^26.0.20", | ||
"@types/jsdom": "^16.2.6", | ||
"@types/lodash": "^4.14.168", | ||
"@typescript-eslint/eslint-plugin": "^4.9.0", | ||
"@typescript-eslint/parser": "^4.9.0", | ||
"rollup-plugin-ts": "^1.4.0", | ||
"eslint": "^7.7.0", | ||
"jest": "^26.6.3", | ||
"jest-environment-jsdom": "^26.6.2", | ||
"jest-environment-jsdom-global": "^2.0.4", | ||
"jest-standard-reporter": "^2.0.0", | ||
"lodash": "^4.17.21", | ||
"rollup": "^2.41.1", | ||
"rollup-plugin-cleanup": "^3.2.1", | ||
"rollup-plugin-license": "^2.2.0", | ||
"rollup-plugin-terser": "^7.0.2", | ||
"ts-jest": "^26.5.0", | ||
"typescript": "^4.3.5" | ||
"@ampproject/rollup-plugin-closure-compiler": "~0.27.0", | ||
"@rollup/plugin-commonjs": "~21.0.2", | ||
"@rollup/plugin-node-resolve": "~13.1.3", | ||
"@types/jest": "~27.4.1", | ||
"@types/jsdom": "~16.2.14", | ||
"@types/lodash": "~4.14.180", | ||
"@typescript-eslint/eslint-plugin": "~5.15.0", | ||
"@typescript-eslint/parser": "~5.15.0", | ||
"eslint": "~8.11.0", | ||
"jest": "~27.5.1", | ||
"jest-environment-jsdom": "~27.5.1", | ||
"jest-environment-jsdom-global": "~3.0.0", | ||
"jest-standard-reporter": "~2.0.0", | ||
"lodash": "~4.17.21", | ||
"rollup": "~2.70.1", | ||
"rollup-plugin-cleanup": "~3.2.1", | ||
"rollup-plugin-license": "~2.6.1", | ||
"rollup-plugin-terser": "~7.0.2", | ||
"rollup-plugin-ts": "~2.0.5", | ||
"ts-jest": "~27.1.3", | ||
"typescript": "~4.6.2" | ||
}, | ||
"scripts": { | ||
"build": "rollup -c --silent --failAfterWarnings", | ||
"test": "jest --no-cache" | ||
} | ||
"test": "jest" | ||
}, | ||
"readme": "# Snowplow Browser Tracker\n\n[![npm version][npm-image]][npm-url]\n[![License][license-image]](LICENSE)\n\nAdd Snowplow Tracking to your Web Application with `@snowplow/browser-tracker`. \n\n## Maintainer quick start\n\nPart of the Snowplow JavaScript Tracker monorepo. \nBuild with [Node.js](https://nodejs.org/en/) (12 LTS or 14 LTS) and [Rush](https://rushjs.io/).\n\n### Setup repository\n\n```bash\nnpm install -g @microsoft/rush \ngit clone https://github.com/snowplow/snowplow-javascript-tracker.git\nrush update\n```\n\n## Package Installation\n\nWith npm:\n\n```bash\nnpm install @snowplow/browser-tracker\n```\n\n## Usage\n\nInitialize your tracker with your desired configuration and optional plugins:\n\n```js\nimport { newTracker } from '@snowplow/browser-tracker';\nimport { SiteTrackingPlugin } from '@snowplow/browser-plugin-site-tracking';\nimport { PerformanceTimingPlugin } from '@snowplow/browser-plugin-performance-timing';\nimport { ClientHintsPlugin } from '@snowplow/browser-plugin-client-hints';\nimport { FormTrackingPlugin, enableFormTracking } from '@snowplow/browser-plugin-form-tracking';\n\nnewTracker('sp1', '{{collector}}', { plugins: [ PerformanceTimingPlugin(), SiteTrackingPlugin(), ClientHintsPlugin(), FormTrackingPlugin() ] }); // Also stores reference at module level\nnewTracker('sp2', '{{collector}}', { plugins: [ PerformanceTimingPlugin(), SiteTrackingPlugin() ] }); // You can have multiple trackers with different configs!\n\nenableFormTracking() // Switch on form tracking\n\n```\n\nThen use the `trackX` functions from this package and your plugins to track to all trackers which have been initialized, or select just some trackers:\n\n```js\nimport { trackPageView } from '@snowplow/browser-tracker';\nimport { trackSocialInteraction } from '@snowplow/browser-plugin-site-tracking';\n\ntrackPageView({}, ['sp1']); // Just to `sp1`\n\n// OR to all trackers with some extra context!\ntrackPageView({\n title: 'My Title',\n context: [\n {\n schema: 'iglu:org.schema/WebPage/jsonschema/1-0-0',\n data: {\n keywords: ['tester'],\n },\n },\n ],\n});\n\n// Use your plugin track methods too\ntrackSocialInteraction({\n action: 'retweet',\n network: 'twitter',\n target: '1234',\n});\n\n\n```\n\n## Copyright and license\n\nLicensed and distributed under the [BSD 3-Clause License](LICENSE) ([An OSI Approved License][osi]).\n\nCopyright (c) 2022 Snowplow Analytics Ltd, 2010 Anthon Pang.\n\nAll rights reserved.\n\n[npm-url]: https://www.npmjs.com/package/@snowplow/browser-tracker\n[npm-image]: https://img.shields.io/npm/v/@snowplow/browser-tracker\n[docs]: https://docs.snowplowanalytics.com/docs/collecting-data/collecting-from-own-applications/javascript-tracker/\n[osi]: https://opensource.org/licenses/BSD-3-Clause\n[license-image]: https://img.shields.io/npm/l/@snowplow/browser-tracker\n" | ||
} |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1727065
5438
+ Added@snowplow/browser-tracker-core@3.4.0(transitive)
+ Added@snowplow/tracker-core@3.4.0(transitive)
- Removed@snowplow/browser-tracker-core@3.3.1(transitive)
- Removed@snowplow/tracker-core@3.3.1(transitive)
Updated@snowplow/tracker-core@3.4.0
Updatedtslib@^2.3.1