Socket
Socket
Sign inDemoInstall

vue-matomo

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-matomo - npm Package Compare versions

Comparing version 3.9.1-2 to 3.12.0

4

demo/src/main.js

@@ -9,4 +9,2 @@ // The Vue build version to load with the `import` command

console.log(VueMatomo)
Vue.use(VueMatomo, {

@@ -38,3 +36,3 @@ host: 'https://demo.matomo.org',

// Default: undefined
trackerUrl: 'https://example.com/whataweirdendpoint',
trackerUrl: undefined,

@@ -41,0 +39,0 @@ // Whether or not to log debug information

@@ -1,18 +0,1 @@

!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n=e();for(var r in n)("object"==typeof exports?exports:t)[r]=n[r]}}(window,function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=1)}([function(t,e,n){(function(t,r){var i;function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}
/*!!
* Piwik - free/libre analytics platform
*
* JavaScript tracking client
*
* @link https://piwik.org
* @source https://github.com/matomo-org/matomo/blob/master/js/piwik.js
* @license https://piwik.org/free-software/bsd/ BSD-3 Clause (also in js/LICENSE.txt)
* @license magnet:?xt=urn:btih:c80d50af7d3db9be66a4d0a86db0286e4fd33292&dn=bsd-3-clause.txt BSD-3-Clause
*/"object"!==("undefined"==typeof JSON_PIWIK?"undefined":o(JSON_PIWIK))&&"object"===o(window.JSON)&&window.JSON.stringify&&window.JSON.parse?JSON_PIWIK=window.JSON:function(){var a={};
/*!! JSON v3.3.2 | http://bestiejs.github.io/json3 | Copyright 2012-2014, Kit Cambridge | http://kit.mit-license.org */
/*!! JSON v3.3.2 | http://bestiejs.github.io/json3 | Copyright 2012-2014, Kit Cambridge | http://kit.mit-license.org */
(function(){var s=n(4),u={function:!0,object:!0},c=u[o(a)]&&a&&!a.nodeType&&a,f=u["undefined"==typeof window?"undefined":o(window)]&&window||this,l=c&&u[o(t)]&&t&&!t.nodeType&&"object"==(void 0===r?"undefined":o(r))&&r;function d(t,e){t||(t=f.Object()),e||(e=f.Object());var n=t.Number||f.Number,r=t.String||f.String,i=t.Object||f.Object,a=t.Date||f.Date,s=t.SyntaxError||f.SyntaxError,c=t.TypeError||f.TypeError,l=t.Math||f.Math,h=t.JSON||f.JSON;"object"==o(h)&&h&&(e.stringify=h.stringify,e.parse=h.parse);var g,p,m,v=i.prototype,T=v.toString,b=new a(-0xc782b5b800cec);try{b=-109252==b.getUTCFullYear()&&0===b.getUTCMonth()&&1===b.getUTCDate()&&10==b.getUTCHours()&&37==b.getUTCMinutes()&&6==b.getUTCSeconds()&&708==b.getUTCMilliseconds()}catch(t){}function C(t){if(C[t]!==m)return C[t];var i;if("bug-string-char-index"==t)i="a"!="a"[0];else if("json"==t)i=C("json-stringify")&&C("json-parse");else{var o,s='{"a":[1,true,false,null,"\\u0000\\b\\n\\f\\r\\t"]}';if("json-stringify"==t){var u=e.stringify,c="function"==typeof u&&b;if(c){(o=function(){return 1}).toJSON=o;try{c="0"===u(0)&&"0"===u(new n)&&'""'==u(new r)&&u(T)===m&&u(m)===m&&u()===m&&"1"===u(o)&&"[1]"==u([o])&&"[null]"==u([m])&&"null"==u(null)&&"[null,null,null]"==u([m,T,null])&&u({a:[o,!0,!1,null,"\0\b\n\f\r\t"]})==s&&"1"===u(null,o)&&"[\n 1,\n 2\n]"==u([1,2],null,1)&&'"-271821-04-20T00:00:00.000Z"'==u(new a(-864e13))&&'"+275760-09-13T00:00:00.000Z"'==u(new a(864e13))&&'"-000001-01-01T00:00:00.000Z"'==u(new a(-621987552e5))&&'"1969-12-31T23:59:59.999Z"'==u(new a(-1))}catch(t){c=!1}}i=c}if("json-parse"==t){var f=e.parse;if("function"==typeof f)try{if(0===f("0")&&!f(!1)){var l=5==(o=f(s)).a.length&&1===o.a[0];if(l){try{l=!f('"\t"')}catch(t){}if(l)try{l=1!==f("01")}catch(t){}if(l)try{l=1!==f("1.")}catch(t){}}}}catch(t){l=!1}i=l}}return C[t]=!!i}if(!C("json")){var N="[object Function]",w="[object Number]",k="[object String]",y="[object Array]",A=C("bug-string-char-index");if(!b)var O=l.floor,_=[0,31,59,90,120,151,181,212,243,273,304,334],S=function(t,e){return _[e]+365*(t-1970)+O((t-1969+(e=+(e>1)))/4)-O((t-1901+e)/100)+O((t-1601+e)/400)};if((g=v.hasOwnProperty)||(g=function(t){var e,n={};return(n.__proto__=null,n.__proto__={toString:1},n).toString!=T?g=function(t){var e=this.__proto__,n=t in(this.__proto__=null,this);return this.__proto__=e,n}:(e=n.constructor,g=function(t){var n=(this.constructor||e).prototype;return t in this&&!(t in n&&this[t]===n[t])}),n=null,g.call(this,t)}),p=function(t,e){var n,r,i,a=0;for(i in(n=function(){this.valueOf=0}).prototype.valueOf=0,r=new n)g.call(r,i)&&a++;return n=r=null,a?p=2==a?function(t,e){var n,r={},i=T.call(t)==N;for(n in t)i&&"prototype"==n||g.call(r,n)||!(r[n]=1)||!g.call(t,n)||e(n)}:function(t,e){var n,r,i=T.call(t)==N;for(n in t)i&&"prototype"==n||!g.call(t,n)||(r="constructor"===n)||e(n);(r||g.call(t,n="constructor"))&&e(n)}:(r=["valueOf","toString","toLocaleString","propertyIsEnumerable","isPrototypeOf","hasOwnProperty","constructor"],p=function(t,e){var n,i,a=T.call(t)==N,s=!a&&"function"!=typeof t.constructor&&u[o(t.hasOwnProperty)]&&t.hasOwnProperty||g;for(n in t)a&&"prototype"==n||!s.call(t,n)||e(n);for(i=r.length;n=r[--i];s.call(t,n)&&e(n));}),p(t,e)},!C("json-stringify")){var E={92:"\\\\",34:'\\"',8:"\\b",12:"\\f",10:"\\n",13:"\\r",9:"\\t"},I=function(t,e){return("000000"+(e||0)).slice(-t)},x=function(t){for(var e='"',n=0,r=t.length,i=!A||r>10,o=i&&(A?t.split(""):t);n<r;n++){var a=t.charCodeAt(n);switch(a){case 8:case 9:case 10:case 12:case 13:case 34:case 92:e+=E[a];break;default:if(a<32){e+="\\u00"+I(2,a.toString(16));break}e+=i?o[n]:t.charAt(n)}}return e+'"'};e.stringify=function(t,e,n){var r,i,a,s;if(u[o(e)]&&e)if((s=T.call(e))==N)i=e;else if(s==y){a={};for(var f,l=0,d=e.length;l<d;f=e[l++],((s=T.call(f))==k||s==w)&&(a[f]=1));}if(n)if((s=T.call(n))==w){if((n-=n%1)>0)for(r="",n>10&&(n=10);r.length<n;r+=" ");}else s==k&&(r=n.length<=10?n:n.slice(0,10));return function t(e,n,r,i,a,s,u){var f,l,d,h,v,b,C,N,A,_,E,P,j,R,L,V;try{f=n[e]}catch(t){}if("object"==o(f)&&f)if("[object Date]"!=(l=T.call(f))||g.call(f,"toJSON"))"function"==typeof f.toJSON&&(l!=w&&l!=k&&l!=y||g.call(f,"toJSON"))&&(f=f.toJSON(e));else if(f>-1/0&&f<1/0){if(S){for(v=O(f/864e5),d=O(v/365.2425)+1970-1;S(d+1,0)<=v;d++);for(h=O((v-S(d,0))/30.42);S(d,h+1)<=v;h++);v=1+v-S(d,h),C=O((b=(f%864e5+864e5)%864e5)/36e5)%24,N=O(b/6e4)%60,A=O(b/1e3)%60,_=b%1e3}else d=f.getUTCFullYear(),h=f.getUTCMonth(),v=f.getUTCDate(),C=f.getUTCHours(),N=f.getUTCMinutes(),A=f.getUTCSeconds(),_=f.getUTCMilliseconds();f=(d<=0||d>=1e4?(d<0?"-":"+")+I(6,d<0?-d:d):I(4,d))+"-"+I(2,h+1)+"-"+I(2,v)+"T"+I(2,C)+":"+I(2,N)+":"+I(2,A)+"."+I(3,_)+"Z"}else f=null;if(r&&(f=r.call(n,e,f)),null===f)return"null";if("[object Boolean]"==(l=T.call(f)))return""+f;if(l==w)return f>-1/0&&f<1/0?""+f:"null";if(l==k)return x(""+f);if("object"==o(f)){for(R=u.length;R--;)if(u[R]===f)throw c();if(u.push(f),E=[],L=s,s+=a,l==y){for(j=0,R=f.length;j<R;j++)P=t(j,f,r,i,a,s,u),E.push(P===m?"null":P);V=E.length?a?"[\n"+s+E.join(",\n"+s)+"\n"+L+"]":"["+E.join(",")+"]":"[]"}else p(i||f,function(e){var n=t(e,f,r,i,a,s,u);n!==m&&E.push(x(e)+":"+(a?" ":"")+n)}),V=E.length?a?"{\n"+s+E.join(",\n"+s)+"\n"+L+"}":"{"+E.join(",")+"}":"{}";return u.pop(),V}}("",((f={})[""]=t,f),i,a,r,"",[])}}if(!C("json-parse")){var P,j,R=r.fromCharCode,L={92:"\\",34:'"',47:"/",98:"\b",116:"\t",110:"\n",102:"\f",114:"\r"},V=function(){throw P=j=null,s()},U=function(){for(var t,e,n,r,i,o=j,a=o.length;P<a;)switch(i=o.charCodeAt(P)){case 9:case 10:case 13:case 32:P++;break;case 123:case 125:case 91:case 93:case 58:case 44:return t=A?o.charAt(P):o[P],P++,t;case 34:for(t="@",P++;P<a;)if((i=o.charCodeAt(P))<32)V();else if(92==i)switch(i=o.charCodeAt(++P)){case 92:case 34:case 47:case 98:case 116:case 110:case 102:case 114:t+=L[i],P++;break;case 117:for(e=++P,n=P+4;P<n;P++)(i=o.charCodeAt(P))>=48&&i<=57||i>=97&&i<=102||i>=65&&i<=70||V();t+=R("0x"+o.slice(e,P));break;default:V()}else{if(34==i)break;for(i=o.charCodeAt(P),e=P;i>=32&&92!=i&&34!=i;)i=o.charCodeAt(++P);t+=o.slice(e,P)}if(34==o.charCodeAt(P))return P++,t;V();default:if(e=P,45==i&&(r=!0,i=o.charCodeAt(++P)),i>=48&&i<=57){for(48==i&&((i=o.charCodeAt(P+1))>=48&&i<=57)&&V(),r=!1;P<a&&((i=o.charCodeAt(P))>=48&&i<=57);P++);if(46==o.charCodeAt(P)){for(n=++P;n<a&&((i=o.charCodeAt(n))>=48&&i<=57);n++);n==P&&V(),P=n}if(101==(i=o.charCodeAt(P))||69==i){for(43!=(i=o.charCodeAt(++P))&&45!=i||P++,n=P;n<a&&((i=o.charCodeAt(n))>=48&&i<=57);n++);n==P&&V(),P=n}return+o.slice(e,P)}if(r&&V(),"true"==o.slice(P,P+4))return P+=4,!0;if("false"==o.slice(P,P+5))return P+=5,!1;if("null"==o.slice(P,P+4))return P+=4,null;V()}return"$"},q=function(t,e,n){var r=D(t,e,n);r===m?delete t[e]:t[e]=r},D=function(t,e,n){var r,i=t[e];if("object"==o(i)&&i)if(T.call(i)==y)for(r=i.length;r--;)q(i,r,n);else p(i,function(t){q(i,t,n)});return n.call(t,e,i)};e.parse=function(t,e){var n,r;return P=0,j=""+t,n=function t(e){var n,r;if("$"==e&&V(),"string"==typeof e){if("@"==(A?e.charAt(0):e[0]))return e.slice(1);if("["==e){for(n=[];"]"!=(e=U());r||(r=!0))r&&(","==e?"]"==(e=U())&&V():V()),","==e&&V(),n.push(t(e));return n}if("{"==e){for(n={};"}"!=(e=U());r||(r=!0))r&&(","==e?"}"==(e=U())&&V():V()),","!=e&&"string"==typeof e&&"@"==(A?e.charAt(0):e[0])&&":"==U()||V(),n[e.slice(1)]=t(U());return n}V()}return e}(U()),"$"!=U()&&V(),P=j=null,e&&T.call(e)==N?D(((r={})[""]=n,r),"",e):n}}}return e.runInContext=d,e}if(!l||l.global!==l&&l.window!==l&&l.self!==l||(f=l),c&&!s)d(f,c);else{var h=f.JSON,g=f.JSON3,p=!1,m=d(f,f.JSON3={noConflict:function(){return p||(p=!0,f.JSON=h,f.JSON3=g,h=g=null),m}});f.JSON={parse:m.parse,stringify:m.stringify}}s&&(void 0===(i=function(){return m}.call(e,n,e,t))||(t.exports=i))}).call(this),JSON_PIWIK=a}(),"object"!==("undefined"==typeof _paq?"undefined":o(_paq))&&(_paq=[]),"object"!==o(window.Piwik)&&(window.Matomo=window.Piwik=function(){var n,r,a,s={},u={},c=document,f=navigator,l=screen,d=window,h=d.performance||d.mozPerformance||d.msPerformance||d.webkitPerformance,g=d.encodeURIComponent,p=d.decodeURIComponent,m=(unescape,[]),v=[],T=0,b=0,C=!1;function N(t){try{return p(t)}catch(e){return unescape(t)}}function w(t){return"undefined"!==o(t)}function k(t){return"function"==typeof t}function y(t){return"object"===o(t)}function A(t){return"string"==typeof t||t instanceof String}function O(t){"undefined"!==("undefined"==typeof console?"undefined":o(console))&&console&&console.error&&console.error(t)}function _(){var t,e,n,r,i;for(t=0;t<arguments.length;t+=1){var s,u;if(i=null,arguments[t]&&arguments[t].slice&&(i=arguments[t].slice()),A(n=(r=arguments[t]).shift())&&n.indexOf("::")>0)u=(s=n.split("::"))[0],n=s[1],"object"===o(a[u])&&"function"==typeof a[u][n]?a[u][n].apply(a[u],r):i&&v.push(i);else for(e=0;e<m.length;e++)if(A(n)){u=m[e];var c=n.indexOf(".")>0;if(c)if(s=n.split("."),u&&"object"===o(u[s[0]]))u=u[s[0]],n=s[1];else if(i){v.push(i);break}if(u[n])u[n].apply(u,r);else{var f="The method '"+n+'\' was not found in "_paq" variable. Please have a look at the Piwik tracker documentation: https://developer.piwik.org/api-reference/tracking-javascript';if(O(f),!c)throw new TypeError(f)}if("addTracker"===n)break;if("setTrackerUrl"===n||"setSiteId"===n)break}else n.apply(m[e],r)}}function S(t,e,n,r){return t.addEventListener?(t.addEventListener(e,n,r),!0):t.attachEvent?t.attachEvent("on"+e,n):void(t["on"+e]=n)}function E(t){"complete"===c.readyState?t():d.addEventListener?d.addEventListener("load",t,!1):d.attachEvent&&d.attachEvent("onload",t)}function I(t){var e=!1;(e=c.attachEvent?"complete"===c.readyState:"loading"!==c.readyState)?t():(c.addEventListener?S(c,"DOMContentLoaded",function n(){c.removeEventListener("DOMContentLoaded",n,!1),e||(e=!0,t())}):c.attachEvent&&(c.attachEvent("onreadystatechange",function n(){"complete"===c.readyState&&(c.detachEvent("onreadystatechange",n),e||(e=!0,t()))}),c.documentElement.doScroll&&d===d.top&&function n(){if(!e){try{c.documentElement.doScroll("left")}catch(t){return void setTimeout(n,0)}e=!0,t()}}()),S(d,"load",function(){e||(e=!0,t())},!1))}function x(t,e,n){if(!t)return"";var r,i,o="";for(r in s)Object.prototype.hasOwnProperty.call(s,r)&&(s[r]&&"function"==typeof s[r][t])&&(i=(0,s[r][t])(e||{},n))&&(o+=i);return o}function P(t){var e=new RegExp("^([a-z]+):").exec(t);return e?e[1]:null}function j(t){var e=new RegExp("^(?:(?:https?|ftp):)/*(?:[^@]+@)?([^:/#]+)").exec(t);return e?e[1]:t}function R(t,e){return 0===(t=String(t)).lastIndexOf(e,0)}function L(t,e){return-1!==(t=String(t)).indexOf(e,t.length-e.length)}function V(t,e){return(t=String(t)).substr(0,t.length-e)}function U(t,e){if(-1===(t=String(t)).indexOf("?"+e+"=")&&-1===t.indexOf("&"+e+"="))return t;var n=t.indexOf("?");if(-1===n)return t;var r=t.substr(n+1),i=t.substr(0,n);if(r){var o="",a=r.indexOf("#");-1!==a&&(o=r.substr(a+1),r=r.substr(0,a));for(var s=r.split("&"),u=s.length-1;u>=0;u--)s[u].split("=")[0]===e&&s.splice(u,1);var c=s.join("&");c&&(i=i+"?"+c),o&&(i+="#"+o)}return i}function q(t,e){var n=new RegExp("[\\?&#]"+e+"=([^&#]*)").exec(t);return n?p(n[1]):""}function D(t){return t&&String(t)===t?t.replace(/^\s+|\s+$/g,""):t}function W(t){var e,n,r,i,o,a,s,u,c,f,l=function(t,e){return t<<e|t>>>32-e},d=function(t){var e,n="";for(e=7;e>=0;e--)n+=(t>>>4*e&15).toString(16);return n},h=[],p=1732584193,m=4023233417,v=2562383102,T=271733878,b=3285377520,C=[];for(f=(t=function(t){return unescape(g(t))}(t)).length,n=0;n<f-3;n+=4)r=t.charCodeAt(n)<<24|t.charCodeAt(n+1)<<16|t.charCodeAt(n+2)<<8|t.charCodeAt(n+3),C.push(r);switch(3&f){case 0:n=2147483648;break;case 1:n=t.charCodeAt(f-1)<<24|8388608;break;case 2:n=t.charCodeAt(f-2)<<24|t.charCodeAt(f-1)<<16|32768;break;case 3:n=t.charCodeAt(f-3)<<24|t.charCodeAt(f-2)<<16|t.charCodeAt(f-1)<<8|128}for(C.push(n);14!=(15&C.length);)C.push(0);for(C.push(f>>>29),C.push(f<<3&4294967295),e=0;e<C.length;e+=16){for(n=0;n<16;n++)h[n]=C[e+n];for(n=16;n<=79;n++)h[n]=l(h[n-3]^h[n-8]^h[n-14]^h[n-16],1);for(i=p,o=m,a=v,s=T,u=b,n=0;n<=19;n++)c=l(i,5)+(o&a|~o&s)+u+h[n]+1518500249&4294967295,u=s,s=a,a=l(o,30),o=i,i=c;for(n=20;n<=39;n++)c=l(i,5)+(o^a^s)+u+h[n]+1859775393&4294967295,u=s,s=a,a=l(o,30),o=i,i=c;for(n=40;n<=59;n++)c=l(i,5)+(o&a|o&s|a&s)+u+h[n]+2400959708&4294967295,u=s,s=a,a=l(o,30),o=i,i=c;for(n=60;n<=79;n++)c=l(i,5)+(o^a^s)+u+h[n]+3395469782&4294967295,u=s,s=a,a=l(o,30),o=i,i=c;p=p+i&4294967295,m=m+o&4294967295,v=v+a&4294967295,T=T+s&4294967295,b=b+u&4294967295}return(c=d(p)+d(m)+d(v)+d(T)+d(b)).toLowerCase()}function M(t){var e=t.length;return"."===t.charAt(--e)&&(t=t.slice(0,e)),"*."===t.slice(0,2)&&(t=t.slice(1)),-1!==t.indexOf("/")&&(t=t.substr(0,t.indexOf("/"))),t}function F(t){return t?!w(t.children)&&w(t.childNodes)?t.children:w(t.children)?t.children:[]:[]}function H(t,e){if(t&&t.indexOf)return t.indexOf(e);if(!w(t)||null===t)return-1;if(!t.length)return-1;var n=t.length;if(0===n)return-1;for(var r=0;r<n;){if(t[r]===e)return r;r++}return-1}function J(t){if(!t)return!1;function e(t,e){return d.getComputedStyle?c.defaultView.getComputedStyle(t,null)[e]:t.currentStyle?t.currentStyle[e]:void 0}return function n(r,i,o,a,s,u,f){var l=r.parentNode;return!!function(t){for(t=t.parentNode;t;){if(t===c)return!0;t=t.parentNode}return!1}(r)&&(9===l.nodeType||"0"!==e(r,"opacity")&&"none"!==e(r,"display")&&"hidden"!==e(r,"visibility")&&(w(i)&&w(o)&&w(a)&&w(s)&&w(u)&&w(f)||(i=r.offsetTop,s=r.offsetLeft,a=i+r.offsetHeight,o=s+r.offsetWidth,u=r.offsetWidth,f=r.offsetHeight),(t!==r||0!==f&&0!==u||"hidden"!==e(r,"overflow"))&&(!l||("hidden"!==e(l,"overflow")&&"scroll"!==e(l,"overflow")||!(s+1>l.offsetWidth+l.scrollLeft||s+u-1<l.scrollLeft||i+1>l.offsetHeight+l.scrollTop||i+f-1<l.scrollTop))&&(r.offsetParent===l&&(s+=l.offsetLeft,i+=l.offsetTop),n(l,i,o,a,s,u,f)))))}(t)}var G={htmlCollectionToArray:function(t){var e,n=[];if(!t||!t.length)return n;for(e=0;e<t.length;e++)n.push(t[e]);return n},find:function(t){if(!document.querySelectorAll||!t)return[];var e=document.querySelectorAll(t);return this.htmlCollectionToArray(e)},findMultiple:function(t){if(!t||!t.length)return[];var e,n,r=[];for(e=0;e<t.length;e++)n=this.find(t[e]),r=r.concat(n);return r=this.makeNodesUnique(r)},findNodesByTagName:function(t,e){if(!t||!e||!t.getElementsByTagName)return[];var n=t.getElementsByTagName(e);return this.htmlCollectionToArray(n)},makeNodesUnique:function(t){var e=[].concat(t);if(t.sort(function(t,n){if(t===n)return 0;var r=H(e,t),i=H(e,n);return r===i?0:r>i?-1:1}),t.length<=1)return t;var n,r=0,i=0,o=[];for(n=t[r++];n;)n===t[r]&&(i=o.push(r)),n=t[r++]||null;for(;i--;)t.splice(o[i],1);return t},getAttributeValueFromNode:function(t,e){if(this.hasNodeAttribute(t,e)){if(t&&t.getAttribute)return t.getAttribute(e);if(t&&t.attributes)if("undefined"!==o(t.attributes[e])){if(t.attributes[e].value)return t.attributes[e].value;if(t.attributes[e].nodeValue)return t.attributes[e].nodeValue;var n,r=t.attributes;if(r){for(n=0;n<r.length;n++)if(r[n].nodeName===e)return r[n].nodeValue;return null}}}},hasNodeAttributeWithValue:function(t,e){return!!this.getAttributeValueFromNode(t,e)},hasNodeAttribute:function(t,e){return t&&t.hasAttribute?t.hasAttribute(e):!(!t||!t.attributes)&&"undefined"!==o(t.attributes[e])},hasNodeCssClass:function(t,e){if(t&&e&&t.className&&-1!==H("string"==typeof t.className?t.className.split(" "):[],e))return!0;return!1},findNodesHavingAttribute:function(t,e,n){if(n||(n=[]),!t||!e)return n;var r,i,o=F(t);if(!o||!o.length)return n;for(r=0;r<o.length;r++)i=o[r],this.hasNodeAttribute(i,e)&&n.push(i),n=this.findNodesHavingAttribute(i,e,n);return n},findFirstNodeHavingAttribute:function(t,e){if(t&&e){if(this.hasNodeAttribute(t,e))return t;var n=this.findNodesHavingAttribute(t,e);return n&&n.length?n[0]:void 0}},findFirstNodeHavingAttributeWithValue:function(t,e){if(t&&e){if(this.hasNodeAttributeWithValue(t,e))return t;var n,r=this.findNodesHavingAttribute(t,e);if(r&&r.length)for(n=0;n<r.length;n++)if(this.getAttributeValueFromNode(r[n],e))return r[n]}},findNodesHavingCssClass:function(t,e,n){if(n||(n=[]),!t||!e)return n;if(t.getElementsByClassName){var r=t.getElementsByClassName(e);return this.htmlCollectionToArray(r)}var i,o,a=F(t);if(!a||!a.length)return[];for(i=0;i<a.length;i++)o=a[i],this.hasNodeCssClass(o,e)&&n.push(o),n=this.findNodesHavingCssClass(o,e,n);return n},findFirstNodeHavingClass:function(t,e){if(t&&e){if(this.hasNodeCssClass(t,e))return t;var n=this.findNodesHavingCssClass(t,e);return n&&n.length?n[0]:void 0}},isLinkElement:function(t){if(!t)return!1;return-1!==H(["a","area"],String(t.nodeName).toLowerCase())},setAnyAttribute:function(t,e,n){t&&e&&(t.setAttribute?t.setAttribute(e,n):t[e]=n)}},B={CONTENT_ATTR:"data-track-content",CONTENT_CLASS:"piwikTrackContent",CONTENT_NAME_ATTR:"data-content-name",CONTENT_PIECE_ATTR:"data-content-piece",CONTENT_PIECE_CLASS:"piwikContentPiece",CONTENT_TARGET_ATTR:"data-content-target",CONTENT_TARGET_CLASS:"piwikContentTarget",CONTENT_IGNOREINTERACTION_ATTR:"data-content-ignoreinteraction",CONTENT_IGNOREINTERACTION_CLASS:"piwikContentIgnoreInteraction",location:void 0,findContentNodes:function(){var t="."+this.CONTENT_CLASS,e="["+this.CONTENT_ATTR+"]";return G.findMultiple([t,e])},findContentNodesWithinNode:function(t){if(!t)return[];var e,n=G.findNodesHavingCssClass(t,this.CONTENT_CLASS),r=G.findNodesHavingAttribute(t,this.CONTENT_ATTR);if(r&&r.length)for(e=0;e<r.length;e++)n.push(r[e]);return G.hasNodeAttribute(t,this.CONTENT_ATTR)?n.push(t):G.hasNodeCssClass(t,this.CONTENT_CLASS)&&n.push(t),n=G.makeNodesUnique(n)},findParentContentNode:function(t){if(t)for(var e=t,n=0;e&&e!==c&&e.parentNode;){if(G.hasNodeAttribute(e,this.CONTENT_ATTR))return e;if(G.hasNodeCssClass(e,this.CONTENT_CLASS))return e;if(e=e.parentNode,n>1e3)break;n++}},findPieceNode:function(t){var e;return(e=G.findFirstNodeHavingAttribute(t,this.CONTENT_PIECE_ATTR))||(e=G.findFirstNodeHavingClass(t,this.CONTENT_PIECE_CLASS)),e||t},findTargetNodeNoDefault:function(t){if(t){var e=G.findFirstNodeHavingAttributeWithValue(t,this.CONTENT_TARGET_ATTR);return e||((e=G.findFirstNodeHavingAttribute(t,this.CONTENT_TARGET_ATTR))?e:(e=G.findFirstNodeHavingClass(t,this.CONTENT_TARGET_CLASS))||void 0)}},findTargetNode:function(t){var e=this.findTargetNodeNoDefault(t);return e||t},findContentName:function(t){if(t){var e=G.findFirstNodeHavingAttributeWithValue(t,this.CONTENT_NAME_ATTR);if(e)return G.getAttributeValueFromNode(e,this.CONTENT_NAME_ATTR);var n=this.findContentPiece(t);if(n)return this.removeDomainIfIsInLink(n);if(G.hasNodeAttributeWithValue(t,"title"))return G.getAttributeValueFromNode(t,"title");var r=this.findPieceNode(t);if(G.hasNodeAttributeWithValue(r,"title"))return G.getAttributeValueFromNode(r,"title");var i=this.findTargetNode(t);return G.hasNodeAttributeWithValue(i,"title")?G.getAttributeValueFromNode(i,"title"):void 0}},findContentPiece:function(t){if(t){var e=G.findFirstNodeHavingAttributeWithValue(t,this.CONTENT_PIECE_ATTR);if(e)return G.getAttributeValueFromNode(e,this.CONTENT_PIECE_ATTR);var n=this.findPieceNode(t),r=this.findMediaUrlInNode(n);return r?this.toAbsoluteUrl(r):void 0}},findContentTarget:function(t){if(t){var e,n=this.findTargetNode(t);if(G.hasNodeAttributeWithValue(n,this.CONTENT_TARGET_ATTR))return G.getAttributeValueFromNode(n,this.CONTENT_TARGET_ATTR);if(G.hasNodeAttributeWithValue(n,"href"))return e=G.getAttributeValueFromNode(n,"href"),this.toAbsoluteUrl(e);var r=this.findPieceNode(t);return G.hasNodeAttributeWithValue(r,"href")?(e=G.getAttributeValueFromNode(r,"href"),this.toAbsoluteUrl(e)):void 0}},isSameDomain:function(t){if(!t||!t.indexOf)return!1;if(0===t.indexOf(this.getLocation().origin))return!0;var e=t.indexOf(this.getLocation().host);return 8>=e&&0<=e},removeDomainIfIsInLink:function(t){return t&&t.search&&-1!==t.search(new RegExp("^https?://[^/]+"))&&this.isSameDomain(t)&&((t=t.replace(new RegExp("^.*//[^/]+"),""))||(t="/")),t},findMediaUrlInNode:function(t){if(t){var e=t.nodeName.toLowerCase();if(-1!==H(["img","embed","video","audio"],e)&&G.findFirstNodeHavingAttributeWithValue(t,"src")){var n=G.findFirstNodeHavingAttributeWithValue(t,"src");return G.getAttributeValueFromNode(n,"src")}if("object"===e&&G.hasNodeAttributeWithValue(t,"data"))return G.getAttributeValueFromNode(t,"data");if("object"===e){var r,i=G.findNodesByTagName(t,"param");if(i&&i.length)for(r=0;r<i.length;r++)if("movie"===G.getAttributeValueFromNode(i[r],"name")&&G.hasNodeAttributeWithValue(i[r],"value"))return G.getAttributeValueFromNode(i[r],"value");var o=G.findNodesByTagName(t,"embed");if(o&&o.length)return this.findMediaUrlInNode(o[0])}}},trim:function(t){return D(t)},isOrWasNodeInViewport:function(t){if(!t||!t.getBoundingClientRect||1!==t.nodeType)return!0;var e=t.getBoundingClientRect(),n=c.documentElement||{},r=e.top<0;r&&t.offsetTop&&(r=t.offsetTop+e.height>0);var i=n.clientWidth;d.innerWidth&&i>d.innerWidth&&(i=d.innerWidth);var o=n.clientHeight;return d.innerHeight&&o>d.innerHeight&&(o=d.innerHeight),(e.bottom>0||r)&&e.right>0&&e.left<i&&(e.top<o||r)},isNodeVisible:function(t){var e=J(t),n=this.isOrWasNodeInViewport(t);return e&&n},buildInteractionRequestParams:function(t,e,n,r){var i="";return t&&(i+="c_i="+g(t)),e&&(i&&(i+="&"),i+="c_n="+g(e)),n&&(i&&(i+="&"),i+="c_p="+g(n)),r&&(i&&(i+="&"),i+="c_t="+g(r)),i},buildImpressionRequestParams:function(t,e,n){var r="c_n="+g(t)+"&c_p="+g(e);return n&&(r+="&c_t="+g(n)),r},buildContentBlock:function(t){if(t){var e=this.findContentName(t),n=this.findContentPiece(t),r=this.findContentTarget(t);return{name:(e=this.trim(e))||"Unknown",piece:(n=this.trim(n))||"Unknown",target:(r=this.trim(r))||""}}},collectContent:function(t){if(!t||!t.length)return[];var e,n,r=[];for(e=0;e<t.length;e++)w(n=this.buildContentBlock(t[e]))&&r.push(n);return r},setLocation:function(t){this.location=t},getLocation:function(){var t=this.location||d.location;return t.origin||(t.origin=t.protocol+"//"+t.hostname+(t.port?":"+t.port:"")),t},toAbsoluteUrl:function(t){if((!t||String(t)!==t)&&""!==t)return t;if(""===t)return this.getLocation().href;if(-1!==t.search(/^\/\//))return this.getLocation().protocol+t;if(-1!==t.search(/:\/\//))return t;if(0===t.indexOf("#"))return this.getLocation().origin+this.getLocation().pathname+t;if(0===t.indexOf("?"))return this.getLocation().origin+this.getLocation().pathname+t;if(0===t.search("^[a-zA-Z]{2,11}:"))return t;if(-1!==t.search(/^\//))return this.getLocation().origin+t;return this.getLocation().origin+this.getLocation().pathname.match(new RegExp("(.*/)"))[0]+t},isUrlToCurrentDomain:function(t){var e=this.toAbsoluteUrl(t);if(!e)return!1;var n=this.getLocation().origin;return n===e||0===String(e).indexOf(n)&&":"!==String(e).substr(n.length,1)},setHrefAttribute:function(t,e){t&&e&&G.setAnyAttribute(t,"href",e)},shouldIgnoreInteraction:function(t){var e=G.hasNodeAttribute(t,this.CONTENT_IGNOREINTERACTION_ATTR),n=G.hasNodeCssClass(t,this.CONTENT_IGNOREINTERACTION_CLASS);return e||n}};function z(t,e){if(e)return e;if(function(t,e){return-1!==(t=String(t)).indexOf(e)}(t=B.toAbsoluteUrl(t),"?")){var n=t.indexOf("?");t=t.slice(0,n)}if(L(t,"matomo.php"))t=V(t,"matomo.php".length);else if(L(t,"piwik.php"))t=V(t,"piwik.php".length);else if(L(t,".php")){var r=t.lastIndexOf("/");t=t.slice(0,r+1)}return L(t,"/js/")&&(t=V(t,"js/".length)),t}function K(t){var e="Piwik_Overlay",n=new RegExp("index\\.php\\?module=Overlay&action=startOverlaySession&idSite=([0-9]+)&period=([^&]+)&date=([^&]+)(&segment=.*)?$").exec(c.referrer);if(n){if(n[1]!==String(t))return!1;var r=n[2],i=n[3],o=n[4];o?0===o.indexOf("&segment=")&&(o=o.substr("&segment=".length)):o="",d.name=e+"###"+r+"###"+i+"###"+o}var a=d.name.split("###");return 4===a.length&&a[0]===e}function $(t,e,n){var r=d.name.split("###"),i=r[1],o=r[2],a=r[3],s=z(t,e);!function(t,e){var n=c.createElement("script");n.type="text/javascript",n.src=t,n.readyState?n.onreadystatechange=function(){var t=this.readyState;"loaded"!==t&&"complete"!==t||(n.onreadystatechange=null,e())}:n.onload=e,c.getElementsByTagName("head")[0].appendChild(n)}(s+"plugins/Overlay/client/client.js?v=1",function(){Piwik_Overlay_Client.initialize(s,n,i,o,a)})}function Z(t,e){var i,u,v,_,V,F,J,X,Q,Y,tt,et,nt,rt,it,ot,at=this,st="mtm_consent",ut="mtm_consent_removed",ct=function(t,e,n){return t||(t=""),e||(e=""),"translate.googleusercontent.com"===t?(""===n&&(n=e),t=j(e=q(e,"u"))):"cc.bingj.com"!==t&&"webcache.googleusercontent.com"!==t&&"74.6."!==t.slice(0,5)||(t=j(e=c.links[0].href)),[t,e,n]}(c.domain,d.location.href,function(){var t="";try{t=d.top.document.referrer}catch(e){if(d.parent)try{t=d.parent.document.referrer}catch(e){t=""}}return""===t&&(t=c.referrer),t}()),ft=M(ct[0]),lt=N(ct[1]),dt=N(ct[2]),ht=!1,gt="GET",pt="application/x-www-form-urlencoded; charset=UTF-8",mt=pt,vt=t||"",Tt="",bt="",Ct=e||"",Nt="",wt="",kt="",yt=["7z","aac","apk","arc","arj","asf","asx","avi","azw3","bin","csv","deb","dmg","doc","docx","epub","exe","flv","gif","gz","gzip","hqx","ibooks","jar","jpg","jpeg","js","mobi","mp2","mp3","mp4","mpg","mpeg","mov","movie","msi","msp","odb","odf","odg","ods","odt","ogg","ogv","pdf","phps","png","ppt","pptx","qt","qtm","ra","ram","rar","rpm","sea","sit","tar","tbz","tbz2","bz","bz2","tgz","torrent","txt","wav","wma","wmv","wpd","xls","xlsx","xml","z","zip"],At=[ft],Ot=[],_t=[],St=[],Et=500,It=!1,xt=["pk_campaign","piwik_campaign","utm_campaign","utm_source","utm_medium"],Pt=["pk_kwd","piwik_kwd","utm_term"],jt="_pk_",Rt="pk_vid",Lt=180,Vt=!1,Ut=!1,qt=339552e5,Dt=18e5,Wt=15768e6,Mt=!0,Ft=0,Ht=!1,Jt=!1,Gt={},Bt={},zt={},Kt={},$t={},Zt=[],Xt=!1,Qt=!1,Yt=!1,te=!1,ee=!1,ne=!1,re=function(){var t;try{t=d.frameElement}catch(t){return!0}if(w(t))return!(!t||"iframe"!==String(t.nodeName).toLowerCase());try{return d.self!==d.top}catch(t){return!0}}(),ie=null,oe=W,ae=0,se=["id","ses","cvar","ref"],ue=!1,ce=null,fe=[],le=b++;try{kt=c.title}catch(t){kt=""}function de(t,e,n,r,i,o){var a;Ut||(n&&(a=new Date).setTime(a.getTime()+n),c.cookie=t+"="+g(e)+(n?";expires="+a.toGMTString():"")+";path="+(r||"/")+(i?";domain="+i:"")+(o?";secure":""))}function he(t){if(Ut)return 0;var e=new RegExp("(^|;)[ ]*"+t+"=([^;]*)").exec(c.cookie);return e?p(e[2]):0}function ge(t){var e;return t=U(t,Rt),_?(e=new RegExp("#.*"),t.replace(e,"")):t}function pe(t,e){var n;if((t=String(t).toLowerCase())===(e=String(e).toLowerCase()))return!0;if("."===e.slice(0,1)){if(t===e.slice(1))return!0;if((n=t.length-e.length)>0&&t.slice(n)===e)return!0}return!1}function me(t){var e=document.createElement("a");return 0!==t.indexOf("//")&&0!==t.indexOf("http")&&(0===t.indexOf("*")&&(t=t.substr(1)),0===t.indexOf(".")&&(t=t.substr(1)),t="http://"+t),e.href=B.toAbsoluteUrl(t),e.pathname?e.pathname:""}function ve(t,e){R(e,"/")||(e="/"+e),R(t,"/")||(t="/"+t);var n="/"===e||"/*"===e;return!!n||(t===e||(e=String(e).toLowerCase(),t=String(t).toLowerCase(),L(e,"*")?!!(n=!(e=e.slice(0,-1))||"/"===e)||(t===e||0===t.indexOf(e)):(L(t,"/")||(t+="/"),L(e,"/")||(e+="/"),0===t.indexOf(e))))}function Te(t,e){var n,r,i;for(n=0;n<At.length;n++)if(r=M(At[n]),i=me(At[n]),pe(t,r)&&ve(e,i))return!0;return!1}function be(t){var e,n,r;for(e=0;e<At.length;e++){if(t===(n=M(At[e].toLowerCase())))return!0;if("."===n.slice(0,1)){if(t===n.slice(1))return!0;if((r=t.length-n.length)>0&&t.slice(r)===n)return!0}}return!1}function Ce(t,e){t=t.replace("send_image=0","send_image=1");var n=new Image(1,1);n.onload=function(){r=0,"function"==typeof e&&e({request:t,trackerUrl:vt,success:!0})},n.onerror=function(){"function"==typeof e&&e({request:t,trackerUrl:vt,success:!1})},n.src=vt+(vt.indexOf("?")<0?"?":"&")+t}function Ne(t,e){if(!("object"===o(f)&&"function"==typeof f.sendBeacon&&"function"==typeof Blob))return!1;var n={type:"application/x-www-form-urlencoded; charset=UTF-8"},r=!1,i=vt;try{var a=new Blob([t],n);t.length<=2e3&&(a=new Blob([],n),i=i+(i.indexOf("?")<0?"?":"&")+t),r=f.sendBeacon(i,a)}catch(t){return!1}return r&&"function"==typeof e&&e({request:t,trackerUrl:vt,success:!0,isSendBeacon:!0}),r}function we(t,e,n){w(n)&&null!==n||(n=!0),C&&Ne(t,e)||setTimeout(function(){if(!C||!Ne(t,e))try{var r=d.XMLHttpRequest?new d.XMLHttpRequest:d.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):null;r.open("POST",vt,!0),r.onreadystatechange=function(){4!==this.readyState||this.status>=200&&this.status<300?4===this.readyState&&"function"==typeof e&&e({request:t,trackerUrl:vt,success:!0,xhr:this}):!(C&&Ne(t,e))&&n?Ce(t,e):"function"==typeof e&&e({request:t,trackerUrl:vt,success:!1,xhr:this})},r.setRequestHeader("Content-Type",mt),r.send(t)}catch(r){!(C&&Ne(t,e))&&n?Ce(t,e):"function"==typeof e&&e({request:t,trackerUrl:vt,success:!1})}},50)}function ke(t){var e=(new Date).getTime()+t;(!n||e>n)&&(n=e)}function ye(t){!et&&u&&ce&&(et=setTimeout(function(){if(et=null,re||(re=!c.hasFocus||c.hasFocus()),re){if(!v()){var t=new Date,e=u-(t.getTime()-ie);ye(e=Math.min(u,e))}}else ye(u)},t||u))}function Ae(){et&&(clearTimeout(et),et=null)}function Oe(){re=!0,v()||ye()}function _e(){Ae()}function Se(){!ne&&u&&(ne=!0,S(d,"focus",Oe),S(d,"blur",_e),ye())}function Ee(t){var e=(new Date).getTime();if(ie=e,Qt&&e<Qt){var n=Qt-e;return setTimeout(t,n),ke(n+50),void(Qt+=50)}if(!1===Qt){Qt=e+800}t()}function Ie(t,e,n){ce?(!X&&t&&(ue&&ce&&(t+="&consent=1"),Ee(function(){It&&Ne(t,n)?ke(100):("POST"===gt||String(t).length>2e3?we(t,n):Ce(t,n),ke(e))})),ne?ye():Se()):fe.push(t)}function xe(t,e){(function(t){return!X&&t&&t.length})(t)&&(ce?Ee(function(){for(var n=function(t,e){if(!e||e>=t.length)return[t];for(var n=0,r=t.length,i=[];n<r;n+=e)i.push(t.slice(n,n+e));return i}(t,50),r=0;r<n.length;r++)we('{"requests":["?'+n[r].join('","?')+'"]}',null,!1);ke(e)}):fe.push(t))}function Pe(t){return jt+t+"."+Ct+"."+it}function je(){if(Ut)return"0";if(!w(f.cookieEnabled)){var t=Pe("testcookie");return de(t,"1"),"1"===he(t)?"1":"0"}return f.cookieEnabled?"1":"0"}function Re(){it=oe((F||ft)+(J||"/")).slice(0,4)}function Le(){var t=he(Pe("cvar"));return t.length&&y(t=JSON_PIWIK.parse(t))?t:{}}function Ve(){!1===Jt&&(Jt=Le())}function Ue(){return oe((f.userAgent||"")+(f.platform||"")+JSON_PIWIK.stringify($t)).slice(0,6)}function qe(){return Math.floor((new Date).getTime()/1e3)}function De(t){if(!ee)return"";var e=q(t,Rt);if(!e)return"";e=String(e);var n=new RegExp("^[a-zA-Z0-9]+$");if(32===e.length&&n.test(e)&&function(t){t=String(t);var e=Ue(),n=e.length,r=t.substr(-1*n,n),i=parseInt(t.substr(0,t.length-n),10);if(i&&r&&r===e){var o=qe();if(Lt<=0)return!0;if(o>=i&&o<=i+Lt)return!0}return!1}(e.substr(16,32)))return e.substr(0,16);return""}function We(){wt||(wt=De(lt));var t,e=new Date,n=Math.round(e.getTime()/1e3),r=he(Pe("id"));return r?((t=r.split(".")).unshift("0"),wt.length&&(t[1]=wt),t):t=["1",wt.length?wt:"0"===je()?"":oe((f.userAgent||"")+(f.platform||"")+JSON_PIWIK.stringify($t)+(new Date).getTime()+Math.random()).slice(0,16),n,0,n,"",""]}function Me(){var t=We(),e=t[0],n=t[1],r=t[2],i=t[3],o=t[4],a=t[5];return w(t[6])||(t[6]=""),{newVisitor:e,uuid:n,createTs:r,visitCount:i,currentVisitTs:o,lastVisitTs:a,lastEcommerceOrderTs:t[6]}}function Fe(t){if(Ct){var e=new Date,n=Math.round(e.getTime()/1e3);w(t)||(t=Me());var r=t.uuid+"."+t.createTs+"."+t.visitCount+"."+n+"."+t.lastVisitTs+"."+t.lastEcommerceOrderTs;de(Pe("id"),r,function(){var t=(new Date).getTime(),e=Me().createTs;return 1e3*parseInt(e,10)+qt-t}(),J,F,Vt)}}function He(){var t=he(Pe("ref"));if(t.length)try{if(y(t=JSON_PIWIK.parse(t)))return t}catch(t){}return["","",0,""]}function Je(t,e,n){de(t,"",-86400,e,n)}function Ge(){var t,e,n=Ut;for(Ut=!1,t=0;t<se.length;t++)(e=Pe(se[t]))!==ut&&e!==st&&0!==he(e)&&Je(e,J,F);Ut=n}function Be(t){if(t&&y(t)){var e,n=[];for(e in t)Object.prototype.hasOwnProperty.call(t,e)&&n.push(e);var r={};n.sort();var i,o=n.length;for(i=0;i<o;i++)r[n[i]]=t[n[i]];return r}}function ze(t,e,n,r){var o,a,s,u,f,l,d,p=new Date,m=Math.round(p.getTime()/1e3),v=Jt,T=Pe("ses"),b=Pe("ref"),C=Pe("cvar"),N=he(T),y=He(),A=i||lt;if(Ut&&Ge(),X)return"";var O=Me();w(r)||(r="");var _=c.characterSet||c.charset;if(_&&"utf-8"!==_.toLowerCase()||(_=null),l=y[0],d=y[1],a=y[2],s=y[3],!N){var S=Dt/1e3;if((!O.lastVisitTs||m-O.lastVisitTs>S)&&(O.visitCount++,O.lastVisitTs=O.currentVisitTs),!Y||!l.length){for(o in xt)if(Object.prototype.hasOwnProperty.call(xt,o)&&(l=q(A,xt[o])).length)break;for(o in Pt)if(Object.prototype.hasOwnProperty.call(Pt,o)&&(d=q(A,Pt[o])).length)break}u=j(dt),f=s.length?j(s):"",!u.length||be(u)||Y&&f.length&&!be(f)||(s=dt),(s.length||l.length)&&(y=[l,d,a=m,ge(s.slice(0,1024))],de(b,JSON_PIWIK.stringify(y),Wt,J,F))}for(o in t+="&idsite="+Ct+"&rec=1&r="+String(Math.random()).slice(2,8)+"&h="+p.getHours()+"&m="+p.getMinutes()+"&s="+p.getSeconds()+"&url="+g(ge(A))+(dt.length?"&urlref="+g(ge(dt)):"")+(Nt&&Nt.length?"&uid="+g(Nt):"")+"&_id="+O.uuid+"&_idts="+O.createTs+"&_idvc="+O.visitCount+"&_idn="+O.newVisitor+(l.length?"&_rcn="+g(l):"")+(d.length?"&_rck="+g(d):"")+"&_refts="+a+"&_viewts="+O.lastVisitTs+(String(O.lastEcommerceOrderTs).length?"&_ects="+O.lastEcommerceOrderTs:"")+(String(s).length?"&_ref="+g(ge(s.slice(0,1024))):"")+(_?"&cs="+g(_):"")+"&send_image=0",$t)Object.prototype.hasOwnProperty.call($t,o)&&(t+="&"+o+"="+$t[o]);var E=[];if(e)for(o in e)if(Object.prototype.hasOwnProperty.call(e,o)&&/^dimension\d+$/.test(o)){var I=o.replace("dimension","");E.push(parseInt(I,10)),E.push(String(I)),t+="&"+o+"="+e[o],delete e[o]}for(o in e&&function(t){if(!t)return!0;var e,n=!0;for(e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n=!1);return n}(e)&&(e=null),zt){if(Object.prototype.hasOwnProperty.call(zt,o))-1===H(E,o)&&(t+="&dimension"+o+"="+zt[o])}function P(t,e){var n=JSON_PIWIK.stringify(t);return n.length>2?"&"+e+"="+g(n):""}e?t+="&data="+g(JSON_PIWIK.stringify(e)):V&&(t+="&data="+g(JSON_PIWIK.stringify(V)));var R=Be(Gt),L=Be(Bt);if(t+=P(R,"cvar"),t+=P(L,"e_cvar"),Jt){for(o in t+=P(Jt,"_cvar"),v)Object.prototype.hasOwnProperty.call(v,o)&&(""!==Jt[o][0]&&""!==Jt[o][1]||delete Jt[o]);Ht&&de(C,JSON_PIWIK.stringify(Jt),Dt,J,F)}return Mt&&(Ft?t+="&gt_ms="+Ft:h&&h.timing&&h.timing.requestStart&&h.timing.responseEnd&&(t+="&gt_ms="+(h.timing.responseEnd-h.timing.requestStart))),ot&&(t+="&pv_id="+ot),O.lastEcommerceOrderTs=w(r)&&String(r).length?r:O.lastEcommerceOrderTs,Fe(O),de(Pe("ses"),"1",Dt,J,F,Vt),t+=x(n,{tracker:at,request:t}),bt.length&&(t+="&"+bt),k(tt)&&(t=tt(t)),t}function Ke(t,e,n,r,i,o){var a,s,u="idgoal=0",c=new Date,f=[],l=String(t).length;if(l&&(u+="&ec_id="+g(t),a=Math.round(c.getTime()/1e3)),u+="&revenue="+e,String(n).length&&(u+="&ec_st="+n),String(r).length&&(u+="&ec_tx="+r),String(i).length&&(u+="&ec_sh="+i),String(o).length&&(u+="&ec_dt="+o),Kt){for(s in Kt)Object.prototype.hasOwnProperty.call(Kt,s)&&(w(Kt[s][1])||(Kt[s][1]=""),w(Kt[s][2])||(Kt[s][2]=""),w(Kt[s][3])&&0!==String(Kt[s][3]).length||(Kt[s][3]=0),w(Kt[s][4])&&0!==String(Kt[s][4]).length||(Kt[s][4]=1),f.push(Kt[s]));u+="&ec_items="+g(JSON_PIWIK.stringify(f))}Ie(u=ze(u,V,"ecommerce",a),Et),l&&(Kt={})}function $e(t,e,n){ot=function(){var t,e="",n="abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ",r=n.length;for(t=0;t<6;t++)e+=n.charAt(Math.floor(Math.random()*r));return e}(),Ie(ze("action_name="+g(function(t){if(!A(t=t&&t.text?t.text:t)){var e=c.getElementsByTagName("title");e&&w(e[0])&&(t=e[0].text)}return t}(t||kt)),e,"log"),Et,n)}function Ze(t,e){var n,r="(^| )(piwik[_-]"+e;if(t)for(n=0;n<t.length;n++)r+="|"+t[n];return r+=")( |$)",new RegExp(r)}function Xe(t){return vt&&t&&0===String(t).indexOf(vt)}function Qe(t){var e;for(e=t.parentNode;null!==e&&w(e)&&!G.isLinkElement(t);)e=(t=e).parentNode;return t}function Ye(t){if((t=Qe(t),G.hasNodeAttribute(t,"href"))&&(w(t.href)&&!Xe(G.getAttributeValueFromNode(t,"href")))){var e=t.pathname||me(t.href),n=t.hostname||j(t.href),r=n.toLowerCase(),i=t.href.replace(n,r);if(!new RegExp("^(javascript|vbscript|jscript|mocha|livescript|ecmascript|mailto|tel):","i").test(i)){var o=function(t,e,n,r){if(Xe(e))return 0;var i=Ze(_t,"download"),o=Ze(St,"link"),a=new RegExp("\\.("+yt.join("|")+")([?&#]|$)","i");return o.test(t)?"link":r||i.test(t)||a.test(e)?"download":n?0:"link"}(t.className,i,Te(r,e),G.hasNodeAttribute(t,"download"));if(o)return{type:o,href:i}}}}function tn(t,e,n,r){var i=B.buildInteractionRequestParams(t,e,n,r);if(i)return ze(i,null,"contentInteraction")}function en(t,e){if(!t||!e)return!1;var n,r,i=B.findTargetNode(t);return!B.shouldIgnoreInteraction(i)&&!((i=B.findTargetNodeNoDefault(t))&&(n=i,r=e,!(n&&r&&(n.contains?n.contains(r):n===r||n.compareDocumentPosition&&16&n.compareDocumentPosition(r)))))}function nn(t){if(!Zt||!Zt.length)return!1;var e,n;for(e=0;e<Zt.length;e++)if((n=Zt[e])&&n.name===t.name&&n.piece===t.piece&&n.target===t.target)return!0;return!1}function rn(t){if(!t)return!1;var e=B.findTargetNode(t);if(!e||B.shouldIgnoreInteraction(e))return!1;var n=Ye(e);if(te&&n&&n.type)return!1;if(G.isLinkElement(e)&&G.hasNodeAttributeWithValue(e,"href")){var r=String(G.getAttributeValueFromNode(e,"href"));if(0===r.indexOf("#"))return!1;if(Xe(r))return!0;if(!B.isUrlToCurrentDomain(r))return!1;var i=B.buildContentBlock(t);if(!i)return;var o=i.name,a=i.piece,s=i.target;G.hasNodeAttributeWithValue(e,B.CONTENT_TARGET_ATTR)&&!e.wasContentTargetAttrReplaced||(e.wasContentTargetAttrReplaced=!0,s=B.toAbsoluteUrl(r),G.setAnyAttribute(e,B.CONTENT_TARGET_ATTR,s));var u=function(t,e,n,r,i){if(w(t)){if(Xe(t))return t;var o=B.toAbsoluteUrl(t),a="redirecturl="+g(o)+"&";a+=tn(e,n,r,i||t);var s="&";return vt.indexOf("?")<0&&(s="?"),vt+s+a}}(r,"click",o,a,s);return B.setHrefAttribute(e,u),!0}return!1}function on(t){return function(e){if(t){var n,r=B.findParentContentNode(t);if(e&&(n=e.target||e.srcElement),n||(n=t),en(r,n)){if(ke(Et),G.isLinkElement(t)&&G.hasNodeAttributeWithValue(t,"href")&&G.hasNodeAttributeWithValue(t,B.CONTENT_TARGET_ATTR))!Xe(G.getAttributeValueFromNode(t,"href"))&&t.wasContentTargetAttrReplaced&&G.setAnyAttribute(t,B.CONTENT_TARGET_ATTR,"");var i=Ye(t);if(Yt&&i&&i.type)return i.type;if(rn(r))return"href";var o=B.buildContentBlock(r);if(o){var a=tn("click",o.name,o.piece,o.target);return Ie(a,Et),a}}}}}function an(t,e){if(!t||!t.length)return[];var n,r;for(n=0;n<t.length;n++)nn(t[n])?(t.splice(n,1),n--):Zt.push(t[n]);if(!t||!t.length)return[];!function(t){var e;if(t&&t.length)for(e=0;e<t.length;e++)rn(t[e])}(e),function(t){var e,n;if(t&&t.length)for(e=0;e<t.length;e++)(n=B.findTargetNode(t[e]))&&!n.contentInteractionTrackingSetupDone&&(n.contentInteractionTrackingSetupDone=!0,S(n,"click",on(n)))}(e);var i=[];for(n=0;n<t.length;n++)(r=ze(B.buildImpressionRequestParams(t[n].name,t[n].piece,t[n].target),void 0,"contentImpressions"))&&i.push(r);return i}function sn(t){return an(B.collectContent(t),t)}function un(t){if(!t||!t.length)return[];var e;for(e=0;e<t.length;e++)B.isNodeVisible(t[e])||(t.splice(e,1),e--);return t&&t.length?sn(t):[]}function cn(t,e,n,r,i,o){if(0===D(String(t)).length||0===D(String(e)).length)return O("Error while logging event: Parameters `category` and `action` must not be empty or filled with whitespaces"),!1;Ie(ze(function(t,e,n,r){return"e_c="+g(t)+"&e_a="+g(e)+(w(n)?"&e_n="+g(n):"")+(w(r)?"&e_v="+g(r):"")}(t,e,n,r),i,"event"),Et,o)}function fn(t,e,n,r,i){var o=e+"="+g(ge(t)),a=function(t,e,n){if(t){var r=B.findParentContentNode(t);if(r&&en(r,t)){var i=B.buildContentBlock(r);if(i)return!i.target&&n&&(i.target=n),B.buildInteractionRequestParams(e,i.name,i.piece,i.target)}}}(i,"click",t);a&&(o+="&"+a),Ie(ze(o,n,"link"),Et,r)}function ln(t,e){return""!==t?t+e.charAt(0).toUpperCase()+e.slice(1):e}function dn(t){var e,n,r,i=["","webkit","ms","moz"];if(!Q)for(n=0;n<i.length;n++)if(r=i[n],Object.prototype.hasOwnProperty.call(c,ln(r,"hidden"))){"prerender"===c[ln(r,"visibilityState")]&&(e=!0);break}e?S(c,r+"visibilitychange",function e(){c.removeEventListener(r+"visibilitychange",e,!1),t()}):t()}function hn(){return Me().uuid+function(){var t=qe(),e=Ue();return String(t)+e}()}function gn(t){if(t&&G.hasNodeAttribute(t,"href")){var e=G.getAttributeValueFromNode(t,"href");if(e&&!Xe(e)){(e=U(e,Rt)).indexOf("?")>0?e+="&":e+="?";var n=hn();e=function(t,e,n){n||(n="");var r=(t=String(t)).indexOf("#"),i=t.length;-1===r&&(r=i);var o=t.substr(0,r),a=t.substr(r,i-r);return-1===o.indexOf("?")?o+="?":L(o,"?")||(o+="&"),o+g(e)+"="+g(n)+a}(e,Rt,n),G.setAnyAttribute(t,"href",e)}}}function pn(t){var e=Ye(t);if(e&&e.type)return e.href=N(e.href),void fn(e.href,e.type,void 0,null,t);ee&&function(t){var e=G.getAttributeValueFromNode(t,"href");if(!e)return!1;if(0!==(e=String(e)).indexOf("//")&&0!==e.indexOf("http://")&&0!==e.indexOf("https://"))return!1;var n=t.pathname||me(t.href),r=(t.hostname||j(t.href)).toLowerCase();return!!Te(r,n)&&!pe(ft,M(r))}(t=Qe(t))&&gn(t)}function mn(t){var e=t.which,n=o(t.button);return e||"undefined"===n||(c.all&&!c.addEventListener?1&t.button?e=1:2&t.button?e=3:4&t.button&&(e=2):0===t.button||"0"===t.button?e=1:1&t.button?e=2:2&t.button&&(e=3)),e}function vn(t){return function(e){var n=function(t){switch(mn(t)){case 1:return"left";case 2:return"middle";case 3:return"right"}}(e=e||d.event),r=function(t){return t.target||t.srcElement}(e);if("click"===e.type){var i=!1;t&&"middle"===n&&(i=!0),r&&!i&&pn(r)}else"mousedown"===e.type?"middle"===n&&r?(nt=n,rt=r):nt=rt=null:"mouseup"===e.type?(n===nt&&r===rt&&pn(r),nt=rt=null):"contextmenu"===e.type&&pn(r)}}function Tn(t,e){"undefined"===o(e)&&(e=!0),S(t,"click",vn(e),!1),e&&(S(t,"mouseup",vn(e),!1),S(t,"mousedown",vn(e),!1),S(t,"contextmenu",vn(e),!1))}ce=!he(ut),v=function(){var t=new Date;return ie+u<=t.getTime()&&(Ie(ze("ping=1",null,"ping"),Et),!0)};var bn={enabled:!0,requests:[],timeout:null,sendRequests:function(){var t=this.requests;this.requests=[],1===t.length?Ie(t[0],Et):xe(t,Et)},push:function(t){if(t)if(!C&&this.enabled){bn.requests.push(t),this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.timeout=setTimeout(function(){bn.timeout=null,bn.sendRequests()},1750);var e="RequestQueue"+le;Object.prototype.hasOwnProperty.call(s,e)||(s[e]={unload:function(){bn.timeout&&clearTimeout(bn.timeout),bn.sendRequests()}})}else Ie(t,Et)}};!function(){var t,e,n={pdf:"application/pdf",qt:"video/quicktime",realp:"audio/x-pn-realaudio-plugin",wma:"application/x-mplayer2",dir:"application/x-director",fla:"application/x-shockwave-flash",java:"application/x-java-vm",gears:"application/x-googlegears",ag:"application/x-silverlight"};if(!new RegExp("MSIE").test(f.userAgent)){if(f.mimeTypes&&f.mimeTypes.length)for(t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e=f.mimeTypes[n[t]],$t[t]=e&&e.enabledPlugin?"1":"0");!new RegExp("Edge[ /](\\d+[\\.\\d]+)").test(f.userAgent)&&"unknown"!=typeof navigator.javaEnabled&&w(f.javaEnabled)&&f.javaEnabled()&&($t.java="1"),k(d.GearsFactory)&&($t.gears="1"),$t.cookie=je()}var r=parseInt(l.width,10),i=parseInt(l.height,10);$t.res=parseInt(r,10)+"x"+parseInt(i,10)}(),Re(),Fe(),this.getVisitorId=function(){return Me().uuid},this.getVisitorInfo=function(){return We()},this.getAttributionInfo=function(){return He()},this.getAttributionCampaignName=function(){return He()[0]},this.getAttributionCampaignKeyword=function(){return He()[1]},this.getAttributionReferrerTimestamp=function(){return He()[2]},this.getAttributionReferrerUrl=function(){return He()[3]},this.setTrackerUrl=function(t){vt=t},this.getTrackerUrl=function(){return vt},this.getPiwikUrl=function(){return z(this.getTrackerUrl(),Tt)},this.addTracker=function(t,e){if(!e)throw new Error("A siteId must be given to add a new tracker");w(t)&&null!==t||(t=this.getTrackerUrl());var n=new Z(t,e);return m.push(n),a.trigger("TrackerAdded",[this]),n},this.getSiteId=function(){return Ct},this.setSiteId=function(t){!function(t){Ct=t,Fe()}(t)},this.resetUserId=function(){Nt=""},this.setUserId=function(t){w(t)&&t.length&&(Nt=t)},this.getUserId=function(){return Nt},this.setCustomData=function(t,e){y(t)?V=t:(V||(V={}),V[t]=e)},this.getCustomData=function(){return V},this.setCustomRequestProcessing=function(t){tt=t},this.appendToTrackingUrl=function(t){bt=t},this.getRequest=function(t){return ze(t)},this.addPlugin=function(t,e){s[t]=e},this.setCustomDimension=function(t,e){(t=parseInt(t,10))>0&&(w(e)||(e=""),A(e)||(e=String(e)),zt[t]=e)},this.getCustomDimension=function(t){if((t=parseInt(t,10))>0&&Object.prototype.hasOwnProperty.call(zt,t))return zt[t]},this.deleteCustomDimension=function(t){(t=parseInt(t,10))>0&&delete zt[t]},this.setCustomVariable=function(t,e,n,r){var i;w(r)||(r="visit"),w(e)&&(w(n)||(n=""),t>0&&(e=A(e)?e:String(e),n=A(n)?n:String(n),i=[e.slice(0,200),n.slice(0,200)],"visit"===r||2===r?(Ve(),Jt[t]=i):"page"===r||3===r?Gt[t]=i:"event"===r&&(Bt[t]=i)))},this.getCustomVariable=function(t,e){var n;return w(e)||(e="visit"),"page"===e||3===e?n=Gt[t]:"event"===e?n=Bt[t]:"visit"!==e&&2!==e||(Ve(),n=Jt[t]),!(!w(n)||n&&""===n[0])&&n},this.deleteCustomVariable=function(t,e){this.getCustomVariable(t,e)&&this.setCustomVariable(t,"","",e)},this.deleteCustomVariables=function(t){"page"===t||3===t?Gt={}:"event"===t?Bt={}:"visit"!==t&&2!==t||(Jt={})},this.storeCustomVariablesInCookie=function(){Ht=!0},this.setLinkTrackingTimer=function(t){Et=t},this.getLinkTrackingTimer=function(){return Et},this.setDownloadExtensions=function(t){A(t)&&(t=t.split("|")),yt=t},this.addDownloadExtensions=function(t){var e;for(A(t)&&(t=t.split("|")),e=0;e<t.length;e++)yt.push(t[e])},this.removeDownloadExtensions=function(t){var e,n=[];for(A(t)&&(t=t.split("|")),e=0;e<yt.length;e++)-1===H(t,yt[e])&&n.push(yt[e]);yt=n},this.setDomains=function(t){At=A(t)?[t]:t;for(var e,n=!1,r=0;r<At.length;r++){if(e=String(At[r]),pe(ft,M(e))){n=!0;break}var i=me(e);if(i&&"/"!==i&&"/*"!==i){n=!0;break}}n||At.push(ft)},this.enableCrossDomainLinking=function(){ee=!0},this.disableCrossDomainLinking=function(){ee=!1},this.isCrossDomainLinkingEnabled=function(){return ee},this.setCrossDomainLinkingTimeout=function(t){Lt=t},this.getCrossDomainLinkingUrlParameter=function(){return g(Rt)+"="+g(hn())},this.setIgnoreClasses=function(t){Ot=A(t)?[t]:t},this.setRequestMethod=function(t){gt=t||"GET"},this.setRequestContentType=function(t){mt=t||pt},this.setReferrerUrl=function(t){dt=t},this.setCustomUrl=function(t){i=function(t,e){var n;return P(e)?e:"/"===e.slice(0,1)?P(t)+"://"+j(t)+e:((n=(t=ge(t)).indexOf("?"))>=0&&(t=t.slice(0,n)),(n=t.lastIndexOf("/"))!==t.length-1&&(t=t.slice(0,n+1)),t+e)}(lt,t)},this.getCurrentUrl=function(){return i||lt},this.setDocumentTitle=function(t){kt=t},this.setAPIUrl=function(t){Tt=t},this.setDownloadClasses=function(t){_t=A(t)?[t]:t},this.setLinkClasses=function(t){St=A(t)?[t]:t},this.setCampaignNameKey=function(t){xt=A(t)?[t]:t},this.setCampaignKeywordKey=function(t){Pt=A(t)?[t]:t},this.discardHashTag=function(t){_=t},this.setCookieNamePrefix=function(t){jt=t,Jt=Le()},this.setCookieDomain=function(t){var e=M(t);(function(t){var e="testvalue";return de("test",e,1e4,null,t),he("test")===e&&(Je("test",null,t),!0)})(e)&&(F=e,Re())},this.getCookieDomain=function(){return F},this.hasCookies=function(){return"1"===je()},this.setSessionCookie=function(t,e,n){if(!t)throw new Error("Missing cookie name");w(n)||(n=Dt),se.push(t),de(Pe(t),e,n,J,F)},this.getCookie=function(t){var e=he(Pe(t));return 0===e?null:e},this.setCookiePath=function(t){J=t,Re()},this.getCookiePath=function(t){return J},this.setVisitorCookieTimeout=function(t){qt=1e3*t},this.setSessionCookieTimeout=function(t){Dt=1e3*t},this.getSessionCookieTimeout=function(){return Dt},this.setReferralCookieTimeout=function(t){Wt=1e3*t},this.setConversionAttributionFirstReferrer=function(t){Y=t},this.setSecureCookie=function(t){Vt=t},this.disableCookies=function(){Ut=!0,$t.cookie="0",Ct&&Ge()},this.deleteCookies=function(){Ge()},this.setDoNotTrack=function(t){var e=f.doNotTrack||f.msDoNotTrack;(X=t&&("yes"===e||"1"===e))&&this.disableCookies()},this.alwaysUseSendBeacon=function(){It=!0},this.addListener=function(t,e){Tn(t,e)},this.enableLinkTracking=function(t){te=!0;var e=this;dn(function(){I(function(){!function(t,e){Yt=!0;var n,r=Ze(Ot,"ignore"),i=c.links,a=null;if(i)for(n=0;n<i.length;n++)a=i[n],r.test(a.className)||("undefined"===o(a.piwikTrackers)&&(a.piwikTrackers=[]),-1===H(a.piwikTrackers,e)&&(a.piwikTrackers.push(e),Tn(a,t)))}(t,e)})})},this.enableJSErrorTracking=function(){if(!ht){ht=!0;var t=d.onerror;d.onerror=function(e,n,r,i,o){return dn(function(){var t=n+":"+r;i&&(t+=":"+i),cn("JavaScript Errors",t,e)}),!!t&&t(e,n,r,i,o)}}},this.disablePerformanceTracking=function(){Mt=!1},this.setGenerationTimeMs=function(t){Ft=parseInt(t,10)},this.enableHeartBeatTimer=function(t){t=Math.max(t,1),u=1e3*(t||15),null!==ie&&Se()},this.disableHeartBeatTimer=function(){Ae(),(u||ne)&&(d.removeEventListener?(d.removeEventListener("focus",Oe,!0),d.removeEventListener("blur",_e,!0)):d.detachEvent&&(d.detachEvent("onfocus",Oe),d.detachEvent("onblur",_e))),u=null,ne=!1},this.killFrame=function(){d.location!==d.top.location&&(d.top.location=d.location)},this.redirectFile=function(t){"file:"===d.location.protocol&&(d.location=t)},this.setCountPreRendered=function(t){Q=t},this.trackGoal=function(t,e,n,r){dn(function(){!function(t,e,n,r){Ie(ze("idgoal="+t+(e?"&revenue="+e:""),n,"goal"),Et,r)}(t,e,n,r)})},this.trackLink=function(t,e,n,r){dn(function(){fn(t,e,n,r)})},this.getNumTrackedPageViews=function(){return ae},this.trackPageView=function(t,e,n){Zt=[],fe=[],K(Ct)?dn(function(){$(vt,Tt,Ct)}):dn(function(){ae++,$e(t,e,n)})},this.trackAllContentImpressions=function(){K(Ct)||dn(function(){I(function(){xe(sn(B.findContentNodes()),Et)})})},this.trackVisibleContentImpressions=function(t,e){K(Ct)||(w(t)||(t=!0),w(e)||(e=750),function(t,e,n){if(Xt)return!0;Xt=!0;var r,i,o=!1;function a(){o=!0}E(function(){if(t){for(r=["scroll","resize"],i=0;i<r.length;i++)c.addEventListener?c.addEventListener(r[i],a,!1):d.attachEvent("on"+r[i],a);!function t(e){setTimeout(function(){Xt&&(o&&(o=!1,n.trackVisibleContentImpressions()),t(e))},e)}(100)}e&&e>0&&function t(e){setTimeout(function(){Xt&&(o=!1,n.trackVisibleContentImpressions(),t(e))},e)}(e=parseInt(e,10))})}(t,e,this),dn(function(){E(function(){xe(un(B.findContentNodes()),Et)})}))},this.trackContentImpression=function(t,e,n){K(Ct)||(t=D(t),e=D(e),n=D(n),t&&(e=e||"Unknown",dn(function(){Ie(function(t,e,n){return ze(B.buildImpressionRequestParams(t,e,n),null,"contentImpression")}(t,e,n),Et)})))},this.trackContentImpressionsWithinNode=function(t){!K(Ct)&&t&&dn(function(){Xt?E(function(){xe(un(B.findContentNodesWithinNode(t)),Et)}):I(function(){xe(sn(B.findContentNodesWithinNode(t)),Et)})})},this.trackContentInteraction=function(t,e,n,r){K(Ct)||(t=D(t),e=D(e),n=D(n),r=D(r),t&&e&&(n=n||"Unknown",dn(function(){Ie(tn(t,e,n,r),Et)})))},this.trackContentInteractionNode=function(t,e){!K(Ct)&&t&&dn(function(){Ie(function(t,e){if(t){var n=B.findParentContentNode(t),r=B.buildContentBlock(n);if(r)return e||(e="Unknown"),tn(e,r.name,r.piece,r.target)}}(t,e),Et)})},this.logAllContentBlocksOnPage=function(){var t=B.findContentNodes(),e=B.collectContent(t);"undefined"!==("undefined"==typeof console?"undefined":o(console))&&console&&console.log&&console.log(e)},this.trackEvent=function(t,e,n,r,i,o){dn(function(){cn(t,e,n,r,i,o)})},this.trackSiteSearch=function(t,e,n,r){dn(function(){!function(t,e,n,r){Ie(ze("search="+g(t)+(e?"&search_cat="+g(e):"")+(w(n)?"&search_count="+n:""),r,"sitesearch"),Et)}(t,e,n,r)})},this.setEcommerceView=function(t,e,n,r){w(n)&&n.length?n instanceof Array&&(n=JSON_PIWIK.stringify(n)):n="",Gt[5]=["_pkc",n],w(r)&&String(r).length&&(Gt[2]=["_pkp",r]),(w(t)&&t.length||w(e)&&e.length)&&(w(t)&&t.length&&(Gt[3]=["_pks",t]),w(e)&&e.length||(e=""),Gt[4]=["_pkn",e])},this.getEcommerceItems=function(){return JSON.parse(JSON.stringify(Kt))},this.addEcommerceItem=function(t,e,n,r,i){t.length&&(Kt[t]=[t,e,n,r,i])},this.removeEcommerceItem=function(t){t.length&&delete Kt[t]},this.clearEcommerceCart=function(){Kt={}},this.trackEcommerceOrder=function(t,e,n,r,i,o){!function(t,e,n,r,i,o){String(t).length&&w(e)&&Ke(t,e,n,r,i,o)}(t,e,n,r,i,o)},this.trackEcommerceCartUpdate=function(t){!function(t){w(t)&&Ke("",t,"","","","")}(t)},this.trackRequest=function(t,e,n,r){dn(function(){Ie(ze(t,e,r),Et,n)})},this.disableQueueRequest=function(){bn.enabled=!1},this.queueRequest=function(t){dn(function(){var e=ze(t);bn.push(e)})},this.getRememberedConsent=function(){var t=he(st);return he(ut)?(t&&Je(st,J,F),null):t&&0!==t?t:null},this.hasRememberedConsent=function(){return!!this.getRememberedConsent()},this.requireConsent=function(){ue=!0,ce=this.hasRememberedConsent(),s["CoreConsent"+ ++T]={unload:function(){ce||Ge()}}},this.setConsentGiven=function(){var t,e;for(ce=!0,Je(ut,J,F),t=0;t<fe.length;t++)"string"===(e=o(fe[t]))?Ie(fe[t],Et):"object"===e&&xe(fe[t],Et);fe=[]},this.rememberConsentGiven=function(t){if(Ut)O("rememberConsentGiven is called but cookies are disabled, consent will not be remembered");else{t&&(t=60*t*60*1e3),this.setConsentGiven();var e=(new Date).getTime();de(st,e,t,J,F,Vt)}},this.forgetConsentGiven=function(){Ut?O("forgetConsentGiven is called but cookies are disabled, consent will not be forgotten"):(Je(st,J,F),de(ut,(new Date).getTime(),0,J,F,Vt),this.requireConsent())},this.isUserOptedOut=function(){return!ce},this.optUserOut=this.forgetConsentGiven,this.forgetUserOptOut=this.rememberConsentGiven,a.trigger("TrackerSetup",[this])}function X(){return{push:_}}var Q=["addTracker","disableCookies","setTrackerUrl","setAPIUrl","enableCrossDomainLinking","setCrossDomainLinkingTimeout","setSecureCookie","setCookiePath","setCookieDomain","setDomains","setUserId","setSiteId","alwaysUseSendBeacon","enableLinkTracking","requireConsent","setConsentGiven"];function Y(t,e){var n=new Z(t,e);for(m.push(n),_paq=function(t,e){var n,r,i={};for(n=0;n<e.length;n++){var o=e[n];for(i[o]=1,r=0;r<t.length;r++)if(t[r]&&t[r][0]){var a=t[r][0];o===a&&(_(t[r]),delete t[r],i[a]>1&&"addTracker"!==a&&O("The method "+a+' is registered more than once in "_paq" variable. Only the last call has an effect. Please have a look at the multiple Piwik trackers documentation: https://developer.piwik.org/guides/tracking-javascript-guide#multiple-piwik-trackers'),i[a]++)}}return t}(_paq,Q),r=0;r<_paq.length;r++)_paq[r]&&_(_paq[r]);return _paq=new X,a.trigger("TrackerAdded",[n]),n}return S(d,"beforeunload",function(){var t;if(C=!0,x("unload"),n)do{t=new Date}while(t.getTimeAlias()<n)},!1),Date.prototype.getTimeAlias=Date.prototype.getTime,a={initialized:!1,JSON:JSON_PIWIK,DOM:{addEventListener:function(t,e,n,r){"undefined"===o(r)&&(r=!1),S(t,e,n,r)},onLoad:E,onReady:I,isNodeVisible:J,isOrWasNodeVisible:B.isNodeVisible},on:function(t,e){u[t]||(u[t]=[]),u[t].push(e)},off:function(t,e){if(u[t])for(var n=0;n<u[t].length;n++)u[t][n]===e&&u[t].splice(n,1)},trigger:function(t,e,n){if(u[t])for(var r=0;r<u[t].length;r++)u[t][r].apply(n||d,e)},addPlugin:function(t,e){s[t]=e},getTracker:function(t,e){return w(e)||(e=this.getAsyncTracker().getSiteId()),w(t)||(t=this.getAsyncTracker().getTrackerUrl()),new Z(t,e)},getAsyncTrackers:function(){return m},addTracker:function(t,e){return m.length?m[0].addTracker(t,e):Y(t,e)},getAsyncTracker:function(t,e){var n;if(!(m&&m.length&&m[0]))return Y(t,e);if(n=m[0],!e&&!t)return n;w(e)&&null!==e||!n||(e=n.getSiteId()),w(t)&&null!==t||!n||(t=n.getTrackerUrl());for(var r,i=0;i<m.length;i++)if((r=m[i])&&String(r.getSiteId())===String(e)&&r.getTrackerUrl()===t)return r},retryMissedPluginCalls:function(){var t=v;v=[];for(var e=0;e<t.length;e++)_(t[e])}},void 0===(i=function(){return a}.apply(e,[]))||(t.exports=i),void 0===(i=function(){return a}.apply(e,[]))||(t.exports=i),a}())
/*!!! pluginTrackerHook */,
/*!!! pluginTrackerHook */
function(){if(window&&"object"===o(window.piwikPluginAsyncInit)&&window.piwikPluginAsyncInit.length)for(var t=0;t<window.piwikPluginAsyncInit.length;t++)"function"==typeof window.piwikPluginAsyncInit[t]&&window.piwikPluginAsyncInit[t]();window&&window.piwikAsyncInit&&window.piwikAsyncInit(),window.Piwik.getAsyncTrackers().length||("object"===("undefined"==typeof _paq?"undefined":o(_paq))&&"undefined"!==o(_paq.length)&&_paq.length?window.Piwik.addTracker():_paq={push:function(t){"undefined"!==("undefined"==typeof console?"undefined":o(console))&&console&&console.error&&console.error("_paq.push() was used but Matomo tracker was not initialized before the matomo.js file was loaded. Make sure to configure the tracker via _paq.push before loading matomo.js. Alternatively, you can create a tracker via Matomo.addTracker() manually and then use _paq.push but it may not fully work as tracker methods may not be executed in the correct order.",t)}}),window.Piwik.trigger("PiwikInitialized",[]),window.Piwik.initialized=!0}(),"undefined"===("undefined"==typeof AnalyticsTracker?"undefined":o(AnalyticsTracker))&&(AnalyticsTracker=window.Piwik),"function"!=typeof piwik_log&&(piwik_log=function(t,e,n,r){function i(t){try{if(window["piwik_"+t])return window["piwik_"+t]}catch(t){}}var o,a=window.Piwik.getTracker(n,e);a.setDocumentTitle(t),a.setCustomData(r),(o=i("tracker_pause"))&&a.setLinkTrackingTimer(o),(o=i("download_extensions"))&&a.setDownloadExtensions(o),(o=i("hosts_alias"))&&a.setDomains(o),(o=i("ignore_classes"))&&a.setIgnoreClasses(o),a.trackPageView(),i("install_tracker")&&(piwik_track=function(t,e,n,r){a.setSiteId(e),a.setTrackerUrl(n),a.trackLink(t,r)},a.enableLinkTracking())})
/*!! @license-end */}).call(this,n(2)(t),n(3))},function(t,e,n){"use strict";n.r(e),n.d(e,"default",function(){return a});var r=n(0),i=n.n(r),o={debug:!1,enableLinkTracking:!0,requireConsent:!1,trackInitialView:!0,trackerFileName:"piwik"};function a(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object.assign({},o,e),r=n.host,a=n.siteId,s=n.trackerFileName,u=n.trackerUrl||"".concat(r,"/").concat(s,".php"),c=i.a.getTracker(u,a);t.prototype.$piwik=c,t.prototype.$matomo=c,n.requireConsent&&c.requireConsent(),n.trackInitialView&&c.trackPageView(),n.enableLinkTracking&&c.enableLinkTracking(),n.router&&n.router.afterEach(function(t,e){var r=window.location,i=r.protocol;":"!==i.slice(-1)&&(i+=":");var o="hash"===n.router.mode?"/#":"",a=i+"//"+r.host+o+t.path;t.meta.analyticsIgnore?n.debug&&console.debug("[vue-matomo] Ignoring "+a):(n.debug&&console.debug("[vue-matomo] Tracking "+a),c.setCustomUrl(a),c.trackPageView())})}},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e){(function(e){t.exports=e}).call(this,{})}])});
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var r=t();for(var n in r)("object"==typeof exports?exports:e)[n]=r[n]}}(window,function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=0)}([function(e,t,r){"use strict";r.r(t),r.d(t,"default",function(){return o});var n={debug:!1,enableLinkTracking:!0,requireConsent:!1,trackInitialView:!0,trackerFileName:"piwik"};function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=Object.assign({},n,t),o=r.host,a=r.trackerFileName;(function(e){var t=new Promise(function(t,r){var n=document.createElement("script");n.async=!0,n.defer=!0,n.src=e,(document.head||document.getElementsByTagName("head")[0]).appendChild(n),n.onload=t,n.onerror=r});return t.catch(function(e){var t="[vue-matomo] An error occurred trying to load "+e.target.src+". If the file exists you may have an ad- or trackingblocker enabled.";console.error(t)}),t})("".concat(o,"/").concat(a,".js")).then(function(){return function(e,t){var r=t.host,n=t.siteId,o=t.trackerFileName,a=t.trackerUrl||"".concat(r,"/").concat(o,".php"),i=window.Piwik.getTracker(a,n);e.prototype.$piwik=i,e.prototype.$matomo=i,t.requireConsent&&i.requireConsent(),t.trackInitialView&&i.trackPageView(),t.enableLinkTracking&&i.enableLinkTracking(),t.router&&t.router.afterEach(function(e,r){var n=window.location,o=n.protocol;":"!==o.slice(-1)&&(o+=":");var a="hash"===t.router.mode?"/#":"",c=o+"//"+n.host+a+e.path;e.meta.analyticsIgnore?t.debug&&console.debug("[vue-matomo] Ignoring "+c):(t.debug&&console.debug("[vue-matomo] Tracking "+c),i.setCustomUrl(c),i.trackPageView())})}(e,r)})}}])});
{
"name": "vue-matomo",
"version": "3.9.1-2",
"version": "3.12.0",
"description": "Link your Piwik/Matomo installation",

@@ -17,5 +17,5 @@ "author": "Dennis Ruhe <dennis@amazingsystems.nl>",

"devDependencies": {
"@babel/core": "^7.4.3",
"@babel/preset-env": "^7.4.3",
"babel-loader": "^8.0.5",
"@babel/core": "^7.6.4",
"@babel/preset-env": "^7.6.3",
"babel-loader": "^8.0.6",
"babel-plugin-transform-runtime": "^6.23.0",

@@ -25,4 +25,4 @@ "compression-webpack-plugin": "^2.0.0",

"ora": "^3.4.0",
"webpack": "^4.30.0",
"webpack-merge": "^4.1.0"
"webpack": "^4.41.0",
"webpack-merge": "^4.2.2"
},

@@ -29,0 +29,0 @@ "engines": {

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

import MatomoJS from './matomo'
const defaultOptions = {

@@ -11,9 +9,31 @@ debug: false,

export default function install (Vue, setupOptions = {}) {
const options = Object.assign({}, defaultOptions, setupOptions)
function loadScript (trackerScript) {
const scriptPromise = new Promise((resolve, reject) => {
const script = document.createElement('script')
script.async = true
script.defer = true
script.src = trackerScript
const head = document.head || document.getElementsByTagName('head')[0]
head.appendChild(script)
script.onload = resolve
script.onerror = reject
})
scriptPromise.catch((error) => {
const msg = '[vue-matomo] An error occurred trying to load ' + error.target.src + '. ' +
'If the file exists you may have an ad- or trackingblocker enabled.'
console.error(msg)
})
return scriptPromise
}
function initMatomo(Vue, options) {
const { host, siteId, trackerFileName, trackerUrl } = options
const trackerEndpoint = trackerUrl || `${host}/${trackerFileName}.php`;
const Matomo = MatomoJS.getTracker(trackerEndpoint, siteId)
const Matomo = window.Piwik.getTracker(trackerEndpoint, siteId)

@@ -48,3 +68,3 @@ // Assign matomo to Vue

if (protocol.slice(-1) !== ':') {
protocol += ':'
protocol += ':'
}

@@ -67,1 +87,11 @@

}
export default function install (Vue, setupOptions = {}) {
const options = Object.assign({}, defaultOptions, setupOptions)
const { host, trackerFileName } = options
const trackerScript = `${host}/${trackerFileName}.js`
loadScript(trackerScript)
.then(() => initMatomo(Vue, options))
}
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