!function(n){
var i={
};
function r(e){
if(i[e])return i[e].exports;
var t=i[e]={
i:e,l:!1,exports:{
}
};
return n[e].call(t.exports,t,t.exports,r),t.l=!0,t.exports
}
r.m=n,r.c=i,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(t,e){
if(1&e&&(t=r(t)),8&e)return t;
if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;
var n=Object.create(null);
if(r.r(n),Object.defineProperty(n,"default",{
enumerable:!0,value:t
}
),2&e&&"string"!=typeof t)for(var i in t)r.d(n,i,function(e){
return t[e]
}
.bind(null,i));
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=331)
}
({
331:function(module,exports,__webpack_require__){
"use strict";
var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){
return typeof e
}
:function(e){
return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e
}
,_sha=__webpack_require__(332);
!function(e){
var t=new function(){
this.setEnvironmentVar=function(e){
var t="c";
""==n("wm_env")&&""==sessionStorage.wm_env||(t=n("wm_env")||sessionStorage.wm_env),-1===["c","i","d"].indexOf(t)?t="c":sessionStorage.wm_env=t,"c"!==t&&console.log("Entorno de "+e+": "+t)
}
,this.setDebugMode=function(e){
var t=n(e);
""!==t&&("on"!==t?sessionStorage.removeItem(e):sessionStorage.setItem(e,t))
}
,this.getDebugMode=function(e){
return"on"===sessionStorage.getItem(e)
};
var n=function(e){
for(var t,n=window.location.search.split("?")[1],i=n?n.split("&"):[],r=0;
r<i.length;
r++)if((t=i[r].split("="))[0]==e&&""!==t[1])return t[1];
return""
}
}
,n=new function(){
this.checkTestScript=function(){
for(var e=document.querySelectorAll('script[src*="w.js"]'),t=0;
t<e.length;
t++)if(-1!==e[t].src.indexOf("/test/"))return!0;
return!1
}
,this.loadScript=function(e){
var t=document.createElement("script");
t.src=e,t.async=!0,t.type="application/javascript",document.body.appendChild(t)
}
}
,i=new function(){
var t={
test_param:"debugPiwik",test_url:"//t.womtp.com/js/test/w.js"
};
this.get=function(e){
return t[e]?t[e]:(console.error("El parmetro "+e+" no est definido en la configuracin"),!1)
}
}
,r=new function(){
this.shouldCheck=!0,this.checkAMP=function(){
return!("undefined"==typeof DFI||!this.shouldCheck)&&(DFI.global&&DFI.global.amp&&DFI.global.amp.check||DFI.DFI_configuration&&DFI.DFI_configuration.amp&&DFI.DFI_configuration.amp.check)
}
,this.loadAMPIframe=function(e){
var t=DFI.global.amp||DFI.DFI_configuration.amp,n=document.createElement("iframe");
n.addEventListener("load",e),n.src=t.url,n.style.display="none",document.getElementsByTagName("head")[0].appendChild(n)
}
,this.replaceIdVisitor=function(e){
if(this.checkAMP()){
var t=DFI.global.amp||DFI.DFI_configuration.amp,n=DFI.getCookie(t.cookie);
n?e=(0,_sha.sha1)(n):(-1!=window.location.href.indexOf("debugPiwik")&&console.error("ERROR PIWIK AMP: esta landing debera de estar recuperando un id obtenido por AMP, pero no lo encuentra. En su lugar se usar el generado por Piwik: "+e),this.shouldCheck=!1)
}
return"da39a3ee5e6b4b0d3255bfef95601890afd80709"!==e&&e
}
};
t.setEnvironmentVar("piwik");
var o=function(){
t.setDebugMode(i.get("test_param")),!t.getDebugMode(i.get("test_param"))||n.checkTestScript()?e(r):n.loadScript(i.get("test_url"))
};
r.checkAMP()?r.loadAMPIframe(o):o()
}
(function(amp){
if("object"!==(void 0===JSON2?"undefined":_typeof(JSON2)))var JSON2={
};
!function(){
function f(e){
return e<10?"0"+e:e
}
function objectToJSON(e,t){
var n=Object.prototype.toString.apply(e);
return"[object Date]"===n?isFinite(e.valueOf())?e.getUTCFullYear()+"-"+f(e.getUTCMonth()+1)+"-"+f(e.getUTCDate())+"T"+f(e.getUTCHours())+":"+f(e.getUTCMinutes())+":"+f(e.getUTCSeconds())+"Z":null:"[object String]"===n||"[object Number]"===n||"[object Boolean]"===n?e.valueOf():"[object Array]"!==n&&"function"==typeof e.toJSON?e.toJSON(t):e
}
var cx=new RegExp("[\0-឴឵-
- --]","g"),pattern='\\\\\\"\0---឴឵-
- --]',escapable=new RegExp("["+pattern,"g"),gap,indent,meta={
"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"
}
,rep;
function quote(e){
return escapable.lastIndex=0,escapable.test(e)?'"'+e.replace(escapable,function(e){
var t=meta[e];
return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)
}
)+'"':'"'+e+'"'
}
function str(e,t){
var n,i,r,o,a,s=gap,c=t[e];
switch(c&&"object"===(void 0===c?"undefined":_typeof(c))&&(c=objectToJSON(c,e)),"function"==typeof rep&&(c=rep.call(t,e,c)),void 0===c?"undefined":_typeof(c)){
case"string":return quote(c);
case"number":return isFinite(c)?String(c):"null";
case"boolean":case"null":return String(c);
case"object":if(!c)return"null";
if(gap+=indent,a=[],"[object Array]"===Object.prototype.toString.apply(c)){
for(o=c.length,n=0;
n<o;
n+=1)a[n]=str(n,c)||"null";
return r=0===a.length?"[]":gap?"[\n"+gap+a.join(",\n"+gap)+"\n"+s+"]":"["+a.join(",")+"]",gap=s,r
}
if(rep&&"object"===(void 0===rep?"undefined":_typeof(rep)))for(o=rep.length,n=0;
n<o;
n+=1)"string"==typeof rep[n]&&(r=str(i=rep[n],c))&&a.push(quote(i)+(gap?": ":":")+r);
else for(i in c)Object.prototype.hasOwnProperty.call(c,i)&&(r=str(i,c))&&a.push(quote(i)+(gap?": ":":")+r);
return r=0===a.length?"{
}
":gap?"{
\n"+gap+a.join(",\n"+gap)+"\n"+s+"
}
":"{
"+a.join(",")+"
}
",gap=s,r
}
}
"function"!=typeof JSON2.stringify&&(JSON2.stringify=function(e,t,n){
var i;
if(indent=gap="","number"==typeof n)for(i=0;
i<n;
i+=1)indent+=" ";
else"string"==typeof n&&(indent=n);
if((rep=t)&&"function"!=typeof t&&("object"!==(void 0===t?"undefined":_typeof(t))||"number"!=typeof t.length))throw new Error("JSON2.stringify");
return str("",{
"":e
}
)
}
),"function"!=typeof JSON2.parse&&(JSON2.parse=function(text,reviver){
var j;
function walk(e,t){
var n,i,r=e[t];
if(r&&"object"===(void 0===r?"undefined":_typeof(r)))for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&(void 0!==(i=walk(r,n))?r[n]=i:delete r[n]);
return reviver.call(e,t,r)
}
if(text=String(text),cx.lastIndex=0,cx.test(text)&&(text=text.replace(cx,function(e){
return"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)
}
)),new RegExp("^[\\],:{
}
\\s]*$").test(text.replace(new RegExp('\\\\(?:["\\\\/bfnrt]|u[0-9a-fA-F]{
4
}
)',"g"),"@").replace(new RegExp('"[^"\\\\\n\r]*"|true|false|null|-?\\d+(?:\\.\\d*)?(?:[eE][+\\-]?\\d+)?',"g"),"]").replace(new RegExp("(?:^|:|,)(?:\\s*\\[)+","g"),"")))return j=eval("("+text+")"),"function"==typeof reviver?walk({
"":j
}
,""):j;
throw new SyntaxError("JSON2.parse")
}
)
}
(),"object"!==("undefined"==typeof _paq?"undefined":_typeof(_paq))&&(_paq=[]),"object"!==("undefined"==typeof Piwik?"undefined":_typeof(Piwik))&&(window.Piwik=function(){
var expireDateTime,plugins={
}
,documentAlias=document,navigatorAlias=navigator,screenAlias=screen,windowAlias=window,performanceAlias=windowAlias.performance||windowAlias.mozPerformance||windowAlias.msPerformance||windowAlias.webkitPerformance,hasLoaded=!1,registeredOnLoadHandlers=[],encodeWrapper=windowAlias.encodeURIComponent,decodeWrapper=windowAlias.decodeURIComponent,urldecode=unescape,asyncTracker,iterator,Piwik;
function isDefined(e){
return"undefined"!==(void 0===e?"undefined":_typeof(e))
}
function isFunction(e){
return"function"==typeof e
}
function isObject(e){
return"object"===(void 0===e?"undefined":_typeof(e))
}
function isString(e){
return"string"==typeof e||e instanceof String
}
function apply(){
var e,t,n;
for(e=0;
e<arguments.length;
e+=1)isString(t=(n=arguments[e]).shift())?asyncTracker[t].apply(asyncTracker,n):t.apply(asyncTracker,n)
}
function addEventListener(e,t,n,i){
return e.addEventListener?(e.addEventListener(t,n,i),!0):e.attachEvent?e.attachEvent("on"+t,n):void(e["on"+t]=n)
}
function executePluginMethod(e,t){
var n,i,r="";
for(n in plugins)Object.prototype.hasOwnProperty.call(plugins,n)&&isFunction(i=plugins[n][e])&&(r+=i(t));
return r
}
function beforeUnloadHandler(){
if(executePluginMethod("unload"),expireDateTime)for(;
(new Date).getTimeAlias()<expireDateTime;
);
}
function loadHandler(){
var e;
if(!hasLoaded)for(hasLoaded=!0,executePluginMethod("load"),e=0;
e<registeredOnLoadHandlers.length;
e++)registeredOnLoadHandlers[e]();
return!0
}
function addReadyListener(){
var e;
documentAlias.addEventListener?addEventListener(documentAlias,"DOMContentLoaded",function e(){
documentAlias.removeEventListener("DOMContentLoaded",e,!1),loadHandler()
}
):documentAlias.attachEvent&&(documentAlias.attachEvent("onreadystatechange",function e(){
"complete"===documentAlias.readyState&&(documentAlias.detachEvent("onreadystatechange",e),loadHandler())
}
),documentAlias.documentElement.doScroll&&windowAlias===windowAlias.top&&function t(){
if(!hasLoaded){
try{
documentAlias.documentElement.doScroll("left")
}
catch(e){
return void setTimeout(t,0)
}
loadHandler()
}
}
()),new RegExp("WebKit").test(navigatorAlias.userAgent)&&(e=setInterval(function(){
(hasLoaded||/loaded|complete/.test(documentAlias.readyState))&&(clearInterval(e),loadHandler())
}
,10)),addEventListener(windowAlias,"load",loadHandler,!1)
}
function loadScript(e,t){
var n=documentAlias.createElement("script");
n.type="application/javascript",n.src=e,n.readyState?n.onreadystatechange=function(){
var e=this.readyState;
"loaded"!==e&&"complete"!==e||(n.onreadystatechange=null,t())
}
:n.onload=t,documentAlias.getElementsByTagName("head")[0].appendChild(n)
}
function getReferrer(){
var t="";
try{
t=windowAlias.top.document.referrer
}
catch(e){
if(windowAlias.parent)try{
t=windowAlias.parent.document.referrer
}
catch(e){
t=""
}
}
return""===t&&(t=documentAlias.referrer),t
}
function getProtocolScheme(e){
var t=new RegExp("^([a-z]+):").exec(e);
return t?t[1]:null
}
function getHostName(e){
var t=new RegExp("^(?:(?:https?|ftp):)/*(?:[^@]+@)?([^:/#]+)").exec(e);
return t?t[1]:e
}
function getParameter(e,t){
var n=new RegExp("[\\?&#]"+t+"=([^&#]*)").exec(e);
return n?decodeWrapper(n[1]):""
}
function utf8_encode(e){
return urldecode(encodeWrapper(e))
}
function sha1(e){
var t,n,i,r,o,a,s,c,u,l,f=function(e,t){
return e<<t|e>>>32-t
}
,d=function(e){
var t,n="";
for(t=7;
0<=t;
t--)n+=(e>>>4*t&15).toString(16);
return n
}
,g=[],p=1732584193,m=4023233417,h=2562383102,k=271733878,C=3285377520,T=[];
for(l=(e=utf8_encode(e)).length,n=0;
n<l-3;
n+=4)i=e.charCodeAt(n)<<24|e.charCodeAt(n+1)<<16|e.charCodeAt(n+2)<<8|e.charCodeAt(n+3),T.push(i);
switch(3&l){
case 0:n=2147483648;
break;
case 1:n=e.charCodeAt(l-1)<<24|8388608;
break;
case 2:n=e.charCodeAt(l-2)<<24|e.charCodeAt(l-1)<<16|32768;
break;
case 3:n=e.charCodeAt(l-3)<<24|e.charCodeAt(l-2)<<16|e.charCodeAt(l-1)<<8|128
}
for(T.push(n);
14!=(15&T.length);
)T.push(0);
for(T.push(l>>>29),T.push(l<<3&4294967295),t=0;
t<T.length;
t+=16){
for(n=0;
n<16;
n++)g[n]=T[t+n];
for(n=16;
n<=79;
n++)g[n]=f(g[n-3]^g[n-8]^g[n-14]^g[n-16],1);
for(r=p,o=m,a=h,s=k,c=C,n=0;
n<=19;
n++)u=f(r,5)+(o&a|~o&s)+c+g[n]+1518500249&4294967295,c=s,s=a,a=f(o,30),o=r,r=u;
for(n=20;
n<=39;
n++)u=f(r,5)+(o^a^s)+c+g[n]+1859775393&4294967295,c=s,s=a,a=f(o,30),o=r,r=u;
for(n=40;
n<=59;
n++)u=f(r,5)+(o&a|o&s|a&s)+c+g[n]+2400959708&4294967295,c=s,s=a,a=f(o,30),o=r,r=u;
for(n=60;
n<=79;
n++)u=f(r,5)+(o^a^s)+c+g[n]+3395469782&4294967295,c=s,s=a,a=f(o,30),o=r,r=u;
p=p+r&4294967295,m=m+o&4294967295,h=h+a&4294967295,k=k+s&4294967295,C=C+c&4294967295
}
return(u=d(p)+d(m)+d(h)+d(k)+d(C)).toLowerCase()
}
function urlFixup(e,t,n){
return"translate.googleusercontent.com"===e?(""===n&&(n=t),e=getHostName(t=getParameter(t,"u"))):"cc.bingj.com"!==e&&"webcache.googleusercontent.com"!==e&&"74.6."!==e.slice(0,5)||(e=getHostName(t=documentAlias.links[0].href)),[e,t,n]
}
function domainFixup(e){
var t=e.length;
return===e.charAt(--t)&&(e=e.slice(0,t)),"*."===e.slice(0,2)&&(e=e.slice(1)),e
}
function titleFixup(e){
if(!isString(e=e&&e.text?e.text:e)){
var t=documentAlias.getElementsByTagName("title");
t&&isDefined(t[0])&&(e=t[0].text)
}
return e
}
function getChildrenFromNode(e){
return e?!isDefined(e.children)&&isDefined(e.childNodes)?e.children:isDefined(e.children)?e.children:[]:[]
}
function containsNodeElement(e,t){
return!(!e||!t)&&(e.contains?e.contains(t):e===t||!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t)))
}
function indexOfArray(e,t){
if(e&&e.indexOf)return e.indexOf(t);
if(!isDefined(e)||null===e)return-1;
if(!e.length)return-1;
var n=e.length;
if(0===n)return-1;
for(var i=0;
i<n;
){
if(e[i]===t)return i;
i++
}
return-1
}
function isVisible(u){
if(!u)return!1;
function l(e,t){
return windowAlias.getComputedStyle?documentAlias.defaultView.getComputedStyle(e,null)[t]:e.currentStyle?e.currentStyle[t]:void 0
}
return function e(t,n,i,r,o,a,s){
var c=t.parentNode;
return!!function(e){
for(e=e.parentNode;
e;
){
if(e===documentAlias)return!0;
e=e.parentNode
}
return!1
}
(t)&&(9===c.nodeType||"0"!==l(t,"opacity")&&"none"!==l(t,"display")&&"hidden"!==l(t,"visibility")&&(isDefined(n)&&isDefined(i)&&isDefined(r)&&isDefined(o)&&isDefined(a)&&isDefined(s)||(n=t.offsetTop,o=t.offsetLeft,r=n+t.offsetHeight,i=o+t.offsetWidth,a=t.offsetWidth,s=t.offsetHeight),(u!==t||0!==s&&0!==a||"hidden"!==l(t,"overflow"))&&(!c||("hidden"!==l(c,"overflow")&&"scroll"!==l(c,"overflow")||!(o+1>c.offsetWidth+c.scrollLeft||o+a-1<c.scrollLeft||n+1>c.offsetHeight+c.scrollTop||n+s-1<c.scrollTop))&&(t.offsetParent===c&&(o+=c.offsetLeft,n+=c.offsetTop),e(c,n,i,r,o,a,s)))))
}
(u)
}
var query={
htmlCollectionToArray:function(e){
var t,n=[];
if(!e||!e.length)return n;
for(t=0;
t<e.length;
t++)n.push(e[t]);
return n
}
,find:function(e){
if(!document.querySelectorAll||!e)return[];
var t=document.querySelectorAll(e);
return this.htmlCollectionToArray(t)
}
,findMultiple:function(e){
if(!e||!e.length)return[];
var t,n,i=[];
for(t=0;
t<e.length;
t++)n=this.find(e[t]),i=i.concat(n);
return i=this.makeNodesUnique(i)
}
,findNodesByTagName:function(e,t){
if(!e||!t||!e.getElementsByTagName)return[];
var n=e.getElementsByTagName(t);
return this.htmlCollectionToArray(n)
}
,makeNodesUnique:function(e){
var r=[].concat(e);
if(e.sort(function(e,t){
if(e===t)return 0;
var n=indexOfArray(r,e),i=indexOfArray(r,t);
return n===i?0:i<n?-1:1
}
),e.length<=1)return e;
var t,n=0,i=0,o=[];
for(t=e[n++];
t;
)t===e[n]&&(i=o.push(n)),t=e[n++]||null;
for(;
i--;
)e.splice(o[i],1);
return e
}
,getAttributeValueFromNode:function(e,t){
if(this.hasNodeAttribute(e,t)){
if(e&&e.getAttribute)return e.getAttribute(t);
if(e&&e.attributes)if("undefined"!==_typeof(e.attributes[t])){
if(e.attributes[t].value)return e.attributes[t].value;
if(e.attributes[t].nodeValue)return e.attributes[t].nodeValue;
var n,i=e.attributes;
if(i){
for(n=0;
n<i.length;
n++)if(i[n].nodeName===t)return i[n].nodeValue;
return null
}
}
}
}
,hasNodeAttributeWithValue:function(e,t){
return!!this.getAttributeValueFromNode(e,t)
}
,hasNodeAttribute:function(e,t){
return e&&e.hasAttribute?e.hasAttribute(t):!(!e||!e.attributes)&&"undefined"!==_typeof(e.attributes[t])
}
,hasNodeCssClass:function(e,t){
if(e&&t&&e.className&&-1!==indexOfArray(e.className.split(" "),t))return!0;
return!1
}
,findNodesHavingAttribute:function(e,t,n){
if(n||(n=[]),!e||!t)return n;
var i,r,o=getChildrenFromNode(e);
if(!o||!o.length)return n;
for(i=0;
i<o.length;
i++)r=o[i],this.hasNodeAttribute(r,t)&&n.push(r),n=this.findNodesHavingAttribute(r,t,n);
return n
}
,findFirstNodeHavingAttribute:function(e,t){
if(e&&t){
if(this.hasNodeAttribute(e,t))return e;
var n=this.findNodesHavingAttribute(e,t);
return n&&n.length?n[0]:void 0
}
}
,findFirstNodeHavingAttributeWithValue:function(e,t){
if(e&&t){
if(this.hasNodeAttributeWithValue(e,t))return e;
var n,i=this.findNodesHavingAttribute(e,t);
if(i&&i.length)for(n=0;
n<i.length;
n++)if(this.getAttributeValueFromNode(i[n],t))return i[n]
}
}
,findNodesHavingCssClass:function(e,t,n){
if(n||(n=[]),!e||!t)return n;
if(e.getElementsByClassName){
var i=e.getElementsByClassName(t);
return this.htmlCollectionToArray(i)
}
var r,o,a=getChildrenFromNode(e);
if(!a||!a.length)return[];
for(r=0;
r<a.length;
r++)o=a[r],this.hasNodeCssClass(o,t)&&n.push(o),n=this.findNodesHavingCssClass(o,t,n);
return n
}
,findFirstNodeHavingClass:function(e,t){
if(e&&t){
if(this.hasNodeCssClass(e,t))return e;
var n=this.findNodesHavingCssClass(e,t);
return n&&n.length?n[0]:void 0
}
}
,isLinkElement:function(e){
if(!e)return!1;
return-1!==indexOfArray(["a","area"],String(e.nodeName).toLowerCase())
}
,setAnyAttribute:function(e,t,n){
e&&t&&(e.setAttribute?e.setAttribute(t,n):e[t]=n)
}
}
,content={
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 e=+this.CONTENT_CLASS,t="["+this.CONTENT_ATTR+"]";
return query.findMultiple([e,t])
}
,findContentNodesWithinNode:function(e){
if(!e)return[];
var t,n=query.findNodesHavingCssClass(e,this.CONTENT_CLASS),i=query.findNodesHavingAttribute(e,this.CONTENT_ATTR);
if(i&&i.length)for(t=0;
t<i.length;
t++)n.push(i[t]);
return query.hasNodeAttribute(e,this.CONTENT_ATTR)?n.push(e):query.hasNodeCssClass(e,this.CONTENT_CLASS)&&n.push(e),n=query.makeNodesUnique(n)
}
,findParentContentNode:function(e){
if(e)for(var t=e,n=0;
t&&t!==documentAlias&&t.parentNode;
){
if(query.hasNodeAttribute(t,this.CONTENT_ATTR))return t;
if(query.hasNodeCssClass(t,this.CONTENT_CLASS))return t;
if(t=t.parentNode,1e3<n)break;
n++
}
}
,findPieceNode:function(e){
var t;
return(t=query.findFirstNodeHavingAttribute(e,this.CONTENT_PIECE_ATTR))||(t=query.findFirstNodeHavingClass(e,this.CONTENT_PIECE_CLASS)),t||e
}
,findTargetNodeNoDefault:function(e){
if(e){
var t=query.findFirstNodeHavingAttributeWithValue(e,this.CONTENT_TARGET_ATTR);
return t||((t=query.findFirstNodeHavingAttribute(e,this.CONTENT_TARGET_ATTR))?t:(t=query.findFirstNodeHavingClass(e,this.CONTENT_TARGET_CLASS))||void 0)
}
}
,findTargetNode:function(e){
var t=this.findTargetNodeNoDefault(e);
return t||e
}
,findContentName:function(e){
if(e){
var t=query.findFirstNodeHavingAttributeWithValue(e,this.CONTENT_NAME_ATTR);
if(t)return query.getAttributeValueFromNode(t,this.CONTENT_NAME_ATTR);
var n=this.findContentPiece(e);
if(n)return this.removeDomainIfIsInLink(n);
if(query.hasNodeAttributeWithValue(e,"title"))return query.getAttributeValueFromNode(e,"title");
var i=this.findPieceNode(e);
if(query.hasNodeAttributeWithValue(i,"title"))return query.getAttributeValueFromNode(i,"title");
var r=this.findTargetNode(e);
return query.hasNodeAttributeWithValue(r,"title")?query.getAttributeValueFromNode(r,"title"):void 0
}
}
,findContentPiece:function(e){
if(e){
var t=query.findFirstNodeHavingAttributeWithValue(e,this.CONTENT_PIECE_ATTR);
if(t)return query.getAttributeValueFromNode(t,this.CONTENT_PIECE_ATTR);
var n=this.findPieceNode(e),i=this.findMediaUrlInNode(n);
return i?this.toAbsoluteUrl(i):void 0
}
}
,findContentTarget:function(e){
if(e){
var t,n=this.findTargetNode(e);
if(query.hasNodeAttributeWithValue(n,this.CONTENT_TARGET_ATTR))return query.getAttributeValueFromNode(n,this.CONTENT_TARGET_ATTR);
if(query.hasNodeAttributeWithValue(n,"href"))return t=query.getAttributeValueFromNode(n,"href"),this.toAbsoluteUrl(t);
var i=this.findPieceNode(e);
return query.hasNodeAttributeWithValue(i,"href")?(t=query.getAttributeValueFromNode(i,"href"),this.toAbsoluteUrl(t)):void 0
}
}
,isSameDomain:function(e){
if(!e||!e.indexOf)return!1;
if(0===e.indexOf(this.getLocation().origin))return!0;
var t=e.indexOf(this.getLocation().host);
return t<=8&&0<=t
}
,removeDomainIfIsInLink:function(e){
return e&&e.search&&-1!==e.search(new RegExp("^https?://[^/]+"))&&this.isSameDomain(e)&&((e=e.replace(new RegExp("^.*//[^/]+"),""))||(e="/")),e
}
,findMediaUrlInNode:function(e){
if(e){
var t=e.nodeName.toLowerCase();
if(-1!==indexOfArray(["img","embed","video","audio"],t)&&query.findFirstNodeHavingAttributeWithValue(e,"src")){
var n=query.findFirstNodeHavingAttributeWithValue(e,"src");
return query.getAttributeValueFromNode(n,"src")
}
if("object"===t&&query.hasNodeAttributeWithValue(e,"data"))return query.getAttributeValueFromNode(e,"data");
if("object"===t){
var i,r=query.findNodesByTagName(e,"param");
if(r&&r.length)for(i=0;
i<r.length;
i++)if("movie"===query.getAttributeValueFromNode(r[i],"name")&&query.hasNodeAttributeWithValue(r[i],"value"))return query.getAttributeValueFromNode(r[i],"value");
var o=query.findNodesByTagName(e,"embed");
if(o&&o.length)return this.findMediaUrlInNode(o[0])
}
}
}
,trim:function(e){
return e&&String(e)===e?e.replace(/^\s+|\s+$/g,""):e
}
,isOrWasNodeInViewport:function(e){
if(!e||!e.getBoundingClientRect||1!==e.nodeType)return!0;
var t=e.getBoundingClientRect(),n=documentAlias.documentElement||{
}
,i=t.top<0;
i&&e.offsetTop&&(i=0<e.offsetTop+t.height);
var r=n.clientWidth;
windowAlias.innerWidth&&r>windowAlias.innerWidth&&(r=windowAlias.innerWidth);
var o=n.clientHeight;
return windowAlias.innerHeight&&o>windowAlias.innerHeight&&(o=windowAlias.innerHeight),(0<t.bottom||i)&&0<t.right&&t.left<r&&(t.top<o||i)
}
,isNodeVisible:function(e){
var t=isVisible(e),n=this.isOrWasNodeInViewport(e);
return t&&n
}
,buildInteractionRequestParams:function(e,t,n,i){
var r="";
return e&&(r+="c_i="+encodeWrapper(e)),t&&(r&&(r+="&"),r+="c_n="+encodeWrapper(t)),n&&(r&&(r+="&"),r+="c_p="+encodeWrapper(n)),i&&(r&&(r+="&"),r+="c_t="+encodeWrapper(i)),r
}
,buildImpressionRequestParams:function(e,t,n){
var i="c_n="+encodeWrapper(e)+"&c_p="+encodeWrapper(t);
return n&&(i+="&c_t="+encodeWrapper(n)),i
}
,buildContentBlock:function(e){
if(e){
var t=this.findContentName(e),n=this.findContentPiece(e),i=this.findContentTarget(e);
return{
name:(t=this.trim(t))||"Unknown",piece:(n=this.trim(n))||"Unknown",target:(i=this.trim(i))||""
}
}
}
,collectContent:function(e){
if(!e||!e.length)return[];
var t,n,i=[];
for(t=0;
t<e.length;
t++)isDefined(n=this.buildContentBlock(e[t]))&&i.push(n);
return i
}
,setLocation:function(e){
this.location=e
}
,getLocation:function(){
var e=this.location||windowAlias.location;
return e.origin||(e.origin=e.protocol+"//"+e.hostname+(e.port?":"+e.port:"")),e
}
,toAbsoluteUrl:function(e){
if((!e||String(e)!==e)&&""!==e)return e;
if(""===e)return this.getLocation().href;
if(-1!==e.search(/^\/\//))return this.getLocation().protocol+e;
if(-1!==e.search(/:\/\//))return e;
if(0===e.indexOf("#"))return this.getLocation().origin+this.getLocation().pathname+e;
if(0===e.indexOf("?"))return this.getLocation().origin+this.getLocation().pathname+e;
if(0===e.search("^[a-zA-Z]{
2,11
}
:"))return e;
if(-1!==e.search(/^\//))return this.getLocation().origin+e;
return this.getLocation().origin+this.getLocation().pathname.match(new RegExp("(.*/)"))[0]+e
}
,isUrlToCurrentDomain:function(e){
var t=this.toAbsoluteUrl(e);
if(!t)return!1;
var n=this.getLocation().origin;
return n===t||0===String(t).indexOf(n)&&":"!==String(t).substr(n.length,1)
}
,setHrefAttribute:function(e,t){
e&&t&&query.setAnyAttribute(e,"href",t)
}
,shouldIgnoreInteraction:function(e){
var t=query.hasNodeAttribute(e,this.CONTENT_IGNOREINTERACTION_ATTR),n=query.hasNodeCssClass(e,this.CONTENT_IGNOREINTERACTION_CLASS);
return t||n
}
};
function getPiwikUrlForOverlay(e,t){
return t||("piwik.php"===e.slice(-9)&&(e=e.slice(0,e.length-9)),e)
}
function isOverlaySession(e){
var t="Piwik_Overlay",n=new RegExp("index\\.php\\?module=Overlay&action=startOverlaySession&idSite=([0-9]+)&period=([^&]+)&date=([^&]+)$").exec(documentAlias.referrer);
if(n){
if(n[1]!==String(e))return!1;
var i=n[2],r=n[3];
windowAlias.name=t+"###"+i+"###"+r
}
var o=windowAlias.name.split("###");
return 3===o.length&&o[0]===t
}
function injectOverlayScripts(e,t,n){
var i=windowAlias.name.split("###"),r=i[1],o=i[2],a=getPiwikUrlForOverlay(e,t);
loadScript(a+"plugins/Overlay/client/client.js?v=1",function(){
Piwik_Overlay_Client.initialize(a,n,r,o)
}
)
}
function Tracker(trackerUrl,siteId,uuid){
var registeredHooks={
}
,locationArray=urlFixup(documentAlias.domain,windowAlias.location.href,getReferrer()),domainAlias=domainFixup(locationArray[0]),locationHrefAlias=locationArray[1],configReferrerUrl=locationArray[2],_enableJSErrorTracking=!1,defaultRequestMethod="GET",configRequestMethod=defaultRequestMethod,defaultRequestContentType="application/x-www-form-urlencoded;
charset=UTF-8",configRequestContentType=defaultRequestContentType,configTrackerUrl=trackerUrl||"",configApiUrl="",configAppendToTrackingUrl="",configTrackerSiteId=siteId||"",configUserId="",configCustomUrl,configTitle=documentAlias.title,configDownloadExtensions="7z|aac|apk|ar[cj]|as[fx]|avi|azw3|bin|csv|deb|dmg|docx?|epub|exe|flv|gif|gz|gzip|hqx|jar|jpe?g|js|mobi|mp(2|3|4|e?g)|mov(ie)?|ms[ip]|od[bfgpst]|og[gv]|pdf|phps|png|pptx?|qtm?|ra[mr]?|rpm|sea|sit|tar|t?bz2?|tgz|torrent|txt|wav|wm[av]|wpd||xlsx?|xml|z|zip",configHostsAlias=[domainAlias],configIgnoreClasses=[],configDownloadClasses=[],configLinkClasses=[],configTrackerPause=500,configMinimumVisitTime,configHeartBeatTimer,configDiscardHashTag,configCustomData,configCampaignNameParameters=["pk_campaign","piwik_campaign","utm_campaign","utm_source","utm_medium"],configCampaignKeywordParameters=["pk_kwd","piwik_kwd","utm_term"],configCookieNamePrefix="_womtp_",configCookieDomain,configCookiePath,configCookiesDisabled=!1,configDoNotTrack=!1,configCountPreRendered,configConversionAttributionFirstReferrer,configVisitorCookieTimeout=63072e6,configSessionCookieTimeout=18e5,configReferralCookieTimeout=15768e6,configPerformanceTrackingEnabled=!0,configPerformanceGenerationTime=0,configStoreCustomVariablesInCookie=!1,customVariables=!1,configCustomRequestContentProcessing,customVariablesPage={
}
,customVariablesEvent={
}
,customVariableMaximumLength=200,ecommerceItems={
}
,browserFeatures={
}
,trackedContentImpressions=[],isTrackOnlyVisibleContentEnabled=!1,timeNextTrackingRequestCanBeExecutedImmediately=!1,linkTrackingInstalled=!1,linkTrackingEnabled=!1,activityTrackingInstalled=!1,lastActivityTime,lastButton,lastTarget,hash=sha1,domainHash,visitorUUID=uuid,sesUUID;
function setCookie(e,t,n,i,r,o){
var a;
configCookiesDisabled||(n&&(a=new Date).setTime(a.getTime()+n),"https:"==location.protocol?documentAlias.cookie=e+"="+encodeWrapper(t)+(n?";
expires="+a.toGMTString():"")+";
path="+(i||"/")+(r?";
domain="+r:"")+";
SameSite=none;
secure":documentAlias.cookie=e+"="+encodeWrapper(t)+(n?";
expires="+a.toGMTString():"")+";
path="+(i||"/")+(r?";
domain="+r:"")+(o?";
secure":""))
}
function getCookie(e){
if(configCookiesDisabled)return 0;
var t=new RegExp("(^|;
)[ ]*"+e+"=([^;
]*)").exec(documentAlias.cookie);
return t?decodeWrapper(t[2]):0
}
function purify(e){
var t;
return configDiscardHashTag?(t=new RegExp("#.*"),e.replace(t,"")):e
}
function resolveRelativeReference(e,t){
var n;
return getProtocolScheme(t)?t:"/"===t.slice(0,1)?getProtocolScheme(e)+"://"+getHostName(e)+t:(0<=(n=(e=purify(e)).indexOf("?"))&&(e=e.slice(0,n)),(n=e.lastIndexOf("/"))!==e.length-1&&(e=e.slice(0,n+1)),e+t)
}
function isSiteHostName(e){
var t,n,i;
for(t=0;
t<configHostsAlias.length;
t++){
if(e===(n=domainFixup(configHostsAlias[t].toLowerCase())))return!0;
if(===n.slice(0,1)){
if(e===n.slice(1))return!0;
if(0<(i=e.length-n.length)&&e.slice(i)===n)return!0
}
}
return!1
}
function getImage(e,t){
var n=new Image(1,1);
n.onload=function(){
iterator=0,"function"==typeof t&&t()
};
n.src=configTrackerUrl+(configTrackerUrl.indexOf("?")<0?"?":"&")+e+"&mime=image/jpeg"
}
function sendXmlHttpRequest(t,n,i){
isDefined(i)&&null!==i||(i=!0);
try{
var e=windowAlias.XMLHttpRequest?new windowAlias.XMLHttpRequest:windowAlias.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):null;
e.open("POST",configTrackerUrl,!0),e.onreadystatechange=function(){
4!==this.readyState||200<=this.status&&this.status<300||!i?"function"==typeof n&&n():getImage(t,n)
}
,e.setRequestHeader("Content-Type",configRequestContentType),e.send(t)
}
catch(e){
i&&getImage(t,n)
}
}
function setExpireDateTime(e){
var t=(new Date).getTime()+e;
(!expireDateTime||expireDateTime<t)&&(expireDateTime=t)
}
function makeSureThereIsAGapAfterFirstTrackingRequestToPreventMultipleVisitorCreation(e){
var t=(new Date).getTime();
if(timeNextTrackingRequestCanBeExecutedImmediately&&t<timeNextTrackingRequestCanBeExecutedImmediately){
var n=timeNextTrackingRequestCanBeExecutedImmediately-t;
return setTimeout(e,n),setExpireDateTime(n+50),void(timeNextTrackingRequestCanBeExecutedImmediately+=50)
}
if(!1===timeNextTrackingRequestCanBeExecutedImmediately){
timeNextTrackingRequestCanBeExecutedImmediately=t+800
}
e()
}
function sendRequest(e,t,n){
!configDoNotTrack&&e&&makeSureThereIsAGapAfterFirstTrackingRequestToPreventMultipleVisitorCreation(function(){
"POST"===configRequestMethod?sendXmlHttpRequest(e,n):getImage(e,n),setExpireDateTime(t)
}
)
}
function canSendBulkRequest(e){
return!configDoNotTrack&&(e&&e.length)
}
function sendBulkRequest(e,t){
if(canSendBulkRequest(e)){
var n='{
"requests":["?'+e.join('","?')+'"]
}
';
makeSureThereIsAGapAfterFirstTrackingRequestToPreventMultipleVisitorCreation(function(){
sendXmlHttpRequest(n,null,!1),setExpireDateTime(t)
}
)
}
}
function getCookieName(e){
return configCookieNamePrefix+e++configTrackerSiteId++domainHash
}
function hasCookies(){
if(configCookiesDisabled)return"0";
if(isDefined(navigatorAlias.cookieEnabled))return navigatorAlias.cookieEnabled?"1":"0";
var e=getCookieName("testcookie");
return setCookie(e,"1"),"1"===getCookie(e)?"1":"0"
}
function updateDomainHash(){
domainHash=hash((configCookieDomain||domainAlias)+(configCookiePath||"/")).slice(0,4)
}
function getCustomVariablesFromCookie(){
var e=getCookie(getCookieName("cvar"));
return e.length&&isObject(e=JSON2.parse(e))?e:{
}
}
function loadCustomVariables(){
!1===customVariables&&(customVariables=getCustomVariablesFromCookie())
}
function activityHandler(){
var e=new Date;
lastActivityTime=e.getTime()
}
function loadVisitorIdCookie(){
var e,t=new Date,n=Math.round(t.getTime()/1e3),i=getCookie(getCookieName("id")),r=getParameter(documentAlias.location,"dlidl");
return r&&(-1<r.indexOf("?")&&(r=r.split("?")[0]),visitorUUID=r),i?(e=i.split()).unshift("0"):(visitorUUID||(visitorUUID=generateNewVisitorId()),e=["1",visitorUUID,n,0,n,"",""]),e[1]=amp.replaceIdVisitor(e[1])||generateNewVisitorId(),e
}
function getRemainingVisitorCookieTimeout(){
var e=(new Date).getTime(),t=loadVisitorIdCookie();
return 1e3*parseInt(t[2],10)+configVisitorCookieTimeout-e
}
function generateNewVisitorId(){
var e=new Date;
return hash((navigatorAlias.userAgent||"")+(navigatorAlias.platform||"")+JSON2.stringify(browserFeatures)+e.getTime()+Math.random())
}
function setVisitorIdCookie(e,t,n,i,r,o){
var a=getRemainingVisitorCookieTimeout();
setCookie(getCookieName("id"),(amp.replaceIdVisitor(e)||e)++t++n++i++r++o,a,configCookiePath,configCookieDomain)
}
function loadReferrerAttributionCookie(){
var e=getCookie(getCookieName("ref"));
if(e.length)try{
if(isObject(e=JSON2.parse(e)))return e
}
catch(e){
}
return["","",0,""]
}
function _deleteCookies(){
var e=configCookiesDisabled;
configCookiesDisabled=!1,setCookie(getCookieName("id"),"",-86400,configCookiePath,configCookieDomain),setCookie(getCookieName("ses"),"",-86400,configCookiePath,configCookieDomain),setCookie(getCookieName("cvar"),"",-86400,configCookiePath,configCookieDomain),setCookie(getCookieName("ref"),"",-86400,configCookiePath,configCookieDomain),configCookiesDisabled=e
}
function sortObjectByKeys(e){
if(e&&isObject(e)){
var t,n=[];
for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.push(t);
var i={
};
n.sort();
var r,o=n.length;
for(r=0;
r<o;
r++)i[n[r]]=e[n[r]];
return i
}
}
function _getRequest(e,t,n,i){
var r,o,a,s,c,u,l,f,d,g,p,m,h,k,C=new Date,T=Math.round(C.getTime()/1e3),b=customVariables,v=getCookieName("ses"),y=getCookieName("ref"),A=getCookieName("cvar"),w=loadVisitorIdCookie(),N=getCookie(v),_=loadReferrerAttributionCookie(),E=configCustomUrl||locationHrefAlias;
if(configCookiesDisabled&&_deleteCookies(),configDoNotTrack)return"";
o=w[0],a=w[1],c=w[2],s=w[3],u=w[4],l=w[5],isDefined(w[6])||(w[6]=""),f=w[6],isDefined(i)||(i="");
var I=documentAlias.characterSet||documentAlias.charset;
if(I&&"utf-8"!==I.toLowerCase()||(I=null),h=_[0],k=_[1],d=_[2],g=_[3],!N){
if((!l||configSessionCookieTimeout/1e3<T-l)&&(s++,l=u),!configConversionAttributionFirstReferrer||!h.length){
for(r in configCampaignNameParameters)if(Object.prototype.hasOwnProperty.call(configCampaignNameParameters,r)&&(h=getParameter(E,configCampaignNameParameters[r])).length)break;
for(r in configCampaignKeywordParameters)if(Object.prototype.hasOwnProperty.call(configCampaignKeywordParameters,r)&&(k=getParameter(E,configCampaignKeywordParameters[r])).length)break
}
p=getHostName(configReferrerUrl),m=g.length?getHostName(g):"",!p.length||isSiteHostName(p)||configConversionAttributionFirstReferrer&&m.length&&!isSiteHostName(m)||(g=configReferrerUrl),(g.length||h.length)&&(_=[h,k,d=T,purify(g.slice(0,1024))],setCookie(y,JSON2.stringify(_),configReferralCookieTimeout,configCookiePath,configCookieDomain))
}
for(r in N?sesUUID=N:N=sesUUID=hash((navigatorAlias.userAgent||"")+(navigatorAlias.platform||"")+JSON2.stringify(browserFeatures)+T),e+="&idsite="+configTrackerSiteId+"&rec=1&r="+String(Math.random()).slice(2,8)+"&h="+C.getHours()+"&m="+C.getMinutes()+"&s="+C.getSeconds()+"&url="+encodeWrapper(purify(E))+(configReferrerUrl.length?"&urlref="+encodeWrapper(purify(configReferrerUrl)):"")+(configUserId.length?"&uid="+encodeWrapper(configUserId):"")+"&_id="+a+"&_idts="+c+"&_idvc="+s+"&_idn="+o+"&_ses="+N+(h.length?"&_rcn="+encodeWrapper(h):"")+(k.length?"&_rck="+encodeWrapper(k):"")+"&_refts="+d+"&_viewts="+l+(String(f).length?"&_ects="+f:"")+(String(g).length?"&_ref="+encodeWrapper(purify(g.slice(0,1024))):"")+(I?"&cs="+encodeWrapper(I):"")+"&send_image=0",browserFeatures.cookie||(browserFeatures.cookie=hasCookies()),browserFeatures)Object.prototype.hasOwnProperty.call(browserFeatures,r)&&(e+="&"+r+"="+browserFeatures[r]);
function S(e,t){
var n=JSON2.stringify(e);
return 2<n.length?"&"+t+"="+encodeWrapper(n):""
}
t?e+="&data="+encodeWrapper(JSON2.stringify(t)):configCustomData&&(e+="&data="+encodeWrapper(JSON2.stringify(configCustomData)));
var R=sortObjectByKeys(customVariablesPage),O=sortObjectByKeys(customVariablesEvent);
if(e+=S(R,"cvar"),e+=S(O,"e_cvar"),customVariables){
for(r in e+=S(customVariables,"_cvar"),b)Object.prototype.hasOwnProperty.call(b,r)&&(""!==customVariables[r][0]&&""!==customVariables[r][1]||delete customVariables[r]);
configStoreCustomVariablesInCookie&&setCookie(A,JSON2.stringify(customVariables),configSessionCookieTimeout,configCookiePath,configCookieDomain)
}
return configPerformanceTrackingEnabled&&(configPerformanceGenerationTime?e+=">_ms="+configPerformanceGenerationTime:performanceAlias&&performanceAlias.timing&&performanceAlias.timing.requestStart&&performanceAlias.timing.responseEnd&&(e+=">_ms="+(performanceAlias.timing.responseEnd-performanceAlias.timing.requestStart))),setVisitorIdCookie(a,c,s,T,l,isDefined(i)&&String(i).length?i:f),setCookie(v,sesUUID,configSessionCookieTimeout,configCookiePath,configCookieDomain),e+=executePluginMethod(n),configAppendToTrackingUrl.length&&(e+="&"+configAppendToTrackingUrl),isFunction(configCustomRequestContentProcessing)&&(e=configCustomRequestContentProcessing(e)),e
}
function logEcommerce(e,t,n,i,r,o){
var a,s,c="idgoal=0",u=new Date,l=[];
if(String(e).length&&(c+="&ec_id="+encodeWrapper(e),a=Math.round(u.getTime()/1e3)),c+="&revenue="+t,String(n).length&&(c+="&ec_st="+n),String(i).length&&(c+="&ec_tx="+i),String(r).length&&(c+="&ec_sh="+r),String(o).length&&(c+="&ec_dt="+o),ecommerceItems){
for(s in ecommerceItems)Object.prototype.hasOwnProperty.call(ecommerceItems,s)&&(isDefined(ecommerceItems[s][1])||(ecommerceItems[s][1]=""),isDefined(ecommerceItems[s][2])||(ecommerceItems[s][2]=""),isDefined(ecommerceItems[s][3])&&0!==String(ecommerceItems[s][3]).length||(ecommerceItems[s][3]=0),isDefined(ecommerceItems[s][4])&&0!==String(ecommerceItems[s][4]).length||(ecommerceItems[s][4]=1),l.push(ecommerceItems[s]));
c+="&ec_items="+encodeWrapper(JSON2.stringify(l))
}
sendRequest(c=_getRequest(c,configCustomData,"ecommerce",a),configTrackerPause)
}
function logEcommerceOrder(e,t,n,i,r,o){
String(e).length&&isDefined(t)&&logEcommerce(e,t,n,i,r,o)
}
function logEcommerceCartUpdate(e){
isDefined(e)&&logEcommerce("",e,"","","","")
}
function logPageView(e,t){
var n=new Date;
sendRequest(_getRequest("action_name="+encodeWrapper(titleFixup(e||configTitle)),t,"log"),configTrackerPause),configMinimumVisitTime&&configHeartBeatTimer&&!activityTrackingInstalled&&(activityTrackingInstalled=!0,addEventListener(documentAlias,"click",activityHandler),addEventListener(documentAlias,"mouseup",activityHandler),addEventListener(documentAlias,"mousedown",activityHandler),addEventListener(documentAlias,"mousemove",activityHandler),addEventListener(documentAlias,"mousewheel",activityHandler),addEventListener(windowAlias,"DOMMouseScroll",activityHandler),addEventListener(windowAlias,"scroll",activityHandler),addEventListener(documentAlias,"keypress",activityHandler),addEventListener(documentAlias,"keydown",activityHandler),addEventListener(documentAlias,"keyup",activityHandler),addEventListener(windowAlias,"resize",activityHandler),addEventListener(windowAlias,"focus",activityHandler),addEventListener(windowAlias,"blur",activityHandler),lastActivityTime=n.getTime(),setTimeout(function e(){
n=new Date,lastActivityTime+configHeartBeatTimer>n.getTime()&&(configMinimumVisitTime<n.getTime()&&sendRequest(_getRequest("ping=1",t,"ping"),configTrackerPause),setTimeout(e,configHeartBeatTimer))
}
,configHeartBeatTimer))
}
function getClassesRegExp(e,t){
var n,i="(^| )(piwik[_-]"+t;
if(e)for(n=0;
n<e.length;
n++)i+="|"+e[n];
return i+=")( |$)",new RegExp(i)
}
function startsUrlWithTrackerUrl(e){
return configTrackerUrl&&e&&0===String(e).indexOf(configTrackerUrl)
}
function getLinkType(e,t,n){
if(startsUrlWithTrackerUrl(t))return 0;
var i=getClassesRegExp(configDownloadClasses,"download"),r=getClassesRegExp(configLinkClasses,"link"),o=new RegExp("\\.("+configDownloadExtensions+")([?&#]|$)","i");
return r.test(e)?"link":i.test(e)||o.test(t)?"download":n?0:"link"
}
function getSourceElement(e){
var t;
for(t=e.parentNode;
null!==t&&isDefined(t)&&!query.isLinkElement(e);
)t=(e=t).parentNode;
return e
}
function getLinkIfShouldBeProcessed(e){
if((e=getSourceElement(e),query.hasNodeAttribute(e,"href"))&&(isDefined(e.href)&&!startsUrlWithTrackerUrl(query.getAttributeValueFromNode(e,"href")))){
var t=e.hostname||getHostName(e.href),n=t.toLowerCase(),i=e.href.replace(t,n);
if(!new RegExp("^(javascript|vbscript|jscript|mocha|livescript|ecmascript|mailto):","i").test(i)){
var r=getLinkType(e.className,i,isSiteHostName(n));
if(r)return{
type:r,href:i
}
}
}
}
function buildContentInteractionRequest(e,t,n,i){
var r=content.buildInteractionRequestParams(e,t,n,i);
if(r)return _getRequest(r,null,"contentInteraction")
}
function buildContentInteractionTrackingRedirectUrl(e,t,n,i,r){
if(isDefined(e)){
if(startsUrlWithTrackerUrl(e))return e;
var o=content.toAbsoluteUrl(e),a="redirecturl="+encodeWrapper(o)+"&";
a+=buildContentInteractionRequest(t,n,i,r||e);
var s="&";
return configTrackerUrl.indexOf("?")<0&&(s="?"),configTrackerUrl+s+a
}
}
function isNodeAuthorizedToTriggerInteraction(e,t){
if(!e||!t)return!1;
var n=content.findTargetNode(e);
return!content.shouldIgnoreInteraction(n)&&!((n=content.findTargetNodeNoDefault(e))&&!containsNodeElement(n,t))
}
function getContentInteractionToRequestIfPossible(e,t,n){
if(e){
var i=content.findParentContentNode(e);
if(i&&isNodeAuthorizedToTriggerInteraction(i,e)){
var r=content.buildContentBlock(i);
if(r)return!r.target&&n&&(r.target=n),content.buildInteractionRequestParams(t,r.name,r.piece,r.target)
}
}
}
function wasContentImpressionAlreadyTracked(e){
if(!trackedContentImpressions||!trackedContentImpressions.length)return!1;
var t,n;
for(t=0;
t<trackedContentImpressions.length;
t++)if((n=trackedContentImpressions[t])&&n.name===e.name&&n.piece===e.piece&&n.target===e.target)return!0;
return!1
}
function replaceHrefIfInternalLink(e){
if(!e)return!1;
var t=content.findTargetNode(e);
if(!t||content.shouldIgnoreInteraction(t))return!1;
var n=getLinkIfShouldBeProcessed(t);
if(linkTrackingEnabled&&n&&n.type)return!1;
if(query.isLinkElement(t)&&query.hasNodeAttributeWithValue(t,"href")){
var i=String(query.getAttributeValueFromNode(t,"href"));
if(0===i.indexOf("#"))return!1;
if(startsUrlWithTrackerUrl(i))return!0;
if(!content.isUrlToCurrentDomain(i))return!1;
var r=content.buildContentBlock(e);
if(!r)return;
var o=r.name,a=r.piece,s=r.target;
query.hasNodeAttributeWithValue(t,content.CONTENT_TARGET_ATTR)&&!t.wasContentTargetAttrReplaced||(t.wasContentTargetAttrReplaced=!0,s=content.toAbsoluteUrl(i),query.setAnyAttribute(t,content.CONTENT_TARGET_ATTR,s));
var c=buildContentInteractionTrackingRedirectUrl(i,"click",o,a,s);
return content.setHrefAttribute(t,c),!0
}
return!1
}
function replaceHrefsIfInternalLink(e){
var t;
if(e&&e.length)for(t=0;
t<e.length;
t++)replaceHrefIfInternalLink(e[t])
}
function trackContentImpressionClickInteraction(a){
return function(e){
if(a){
var t,n=content.findParentContentNode(a);
if(e&&(t=e.target||e.srcElement),t||(t=a),isNodeAuthorizedToTriggerInteraction(n,t)){
if(setExpireDateTime(configTrackerPause),query.isLinkElement(a)&&query.hasNodeAttributeWithValue(a,"href")&&query.hasNodeAttributeWithValue(a,content.CONTENT_TARGET_ATTR))!startsUrlWithTrackerUrl(query.getAttributeValueFromNode(a,"href"))&&a.wasContentTargetAttrReplaced&&query.setAnyAttribute(a,content.CONTENT_TARGET_ATTR,"");
var i=getLinkIfShouldBeProcessed(a);
if(linkTrackingInstalled&&i&&i.type)return i.type;
if(replaceHrefIfInternalLink(n))return"href";
var r=content.buildContentBlock(n);
if(r){
var o=buildContentInteractionRequest("click",r.name,r.piece,r.target);
return sendRequest(o,configTrackerPause),o
}
}
}
}
}
function setupInteractionsTracking(e){
var t,n;
if(e&&e.length)for(t=0;
t<e.length;
t++)(n=content.findTargetNode(e[t]))&&!n.contentInteractionTrackingSetupDone&&(n.contentInteractionTrackingSetupDone=!0,addEventListener(n,"click",trackContentImpressionClickInteraction(n)))
}
function buildContentImpressionsRequests(e,t){
if(!e||!e.length)return[];
var n,i;
for(n=0;
n<e.length;
n++)wasContentImpressionAlreadyTracked(e[n])?(e.splice(n,1),n--):trackedContentImpressions.push(e[n]);
if(!e||!e.length)return[];
replaceHrefsIfInternalLink(t),setupInteractionsTracking(t);
var r=[];
for(n=0;
n<e.length;
n++)i=_getRequest(content.buildImpressionRequestParams(e[n].name,e[n].piece,e[n].target),void 0,"contentImpressions"),r.push(i);
return r
}
function getContentImpressionsRequestsFromNodes(e){
return buildContentImpressionsRequests(content.collectContent(e),e)
}
function getCurrentlyVisibleContentImpressionsRequestsIfNotTrackedYet(e){
if(!e||!e.length)return[];
var t;
for(t=0;
t<e.length;
t++)content.isNodeVisible(e[t])||(e.splice(t,1),t--);
return e&&e.length?getContentImpressionsRequestsFromNodes(e):[]
}
function buildContentImpressionRequest(e,t,n){
return _getRequest(content.buildImpressionRequestParams(e,t,n),null,"contentImpression")
}
function buildContentInteractionRequestNode(e,t){
if(e){
var n=content.findParentContentNode(e),i=content.buildContentBlock(n);
if(i)return t||(t="Unknown"),buildContentInteractionRequest(t,i.name,i.piece,i.target)
}
}
function buildEventRequest(e,t,n,i){
return"e_c="+encodeWrapper(e)+"&e_a="+encodeWrapper(t)+(isDefined(n)?"&e_n="+encodeWrapper(n):"")+(isDefined(i)?"&e_v="+encodeWrapper(i):"")
}
function logEvent(e,t,n,i,r){
if(0===String(e).length||0===String(t).length)return!1;
sendRequest(_getRequest(buildEventRequest(e,t,n,i),r,"event"),configTrackerPause)
}
function logSiteSearch(e,t,n,i){
sendRequest(_getRequest("search="+encodeWrapper(e)+(t?"&search_cat="+encodeWrapper(t):"")+(isDefined(n)?"&search_count="+n:""),i,"sitesearch"),configTrackerPause)
}
function logGoal(e,t,n){
sendRequest(_getRequest("idgoal="+e+(t?"&revenue="+t:""),n,"goal"),configTrackerPause)
}
function logLink(e,t,n,i,r){
var o=t+"="+encodeWrapper(purify(e)),a=getContentInteractionToRequestIfPossible(r,"click",e);
a&&(o+="&"+a),sendRequest(_getRequest(o,n,"link"),i?0:configTrackerPause,i)
}
function prefixPropertyName(e,t){
return""!==e?e+t.charAt(0).toUpperCase()+t.slice(1):t
}
function trackCallback(t){
var e,n,i,r=["","webkit","ms","moz"];
if(!configCountPreRendered)for(n=0;
n<r.length;
n++)if(i=r[n],Object.prototype.hasOwnProperty.call(documentAlias,prefixPropertyName(i,"hidden"))){
"prerender"===documentAlias[prefixPropertyName(i,"visibilityState")]&&(e=!0);
break
}
e?addEventListener(documentAlias,i+"visibilitychange",function e(){
documentAlias.removeEventListener(i+"visibilitychange",e,!1),t()
}
):t()
}
function trackCallbackOnLoad(e){
"complete"===documentAlias.readyState?e():windowAlias.addEventListener?windowAlias.addEventListener("load",e):windowAlias.attachEvent&&windowAlias.attachEvent("onLoad",e)
}
function trackCallbackOnReady(e){
(documentAlias.attachEvent?"complete"===documentAlias.readyState:"loading"!==documentAlias.readyState)?e():documentAlias.addEventListener?documentAlias.addEventListener("DOMContentLoaded",e):documentAlias.attachEvent&&documentAlias.attachEvent("onreadystatechange",e)
}
function processClick(e){
var t=getLinkIfShouldBeProcessed(e);
t&&t.type&&(t.href=urldecode(t.href),logLink(t.href,t.type,void 0,null,e))
}
function clickHandler(e){
var t,n;
t=(e=e||windowAlias.event).which||e.button,n=e.target||e.srcElement,"click"===e.type?n&&processClick(n):"mousedown"===e.type?1!==t&&2!==t||!n?lastButton=lastTarget=null:(lastButton=t,lastTarget=n):"mouseup"===e.type&&(t===lastButton&&n===lastTarget&&processClick(n),lastButton=lastTarget=null)
}
function addClickListener(e,t){
if(t)addEventListener(e,"mouseup",clickHandler,!1),addEventListener(e,"mousedown",clickHandler,!1);
else{
if(-1<window.location.href.indexOf("segurcaixaadeslas")&&null!=e&&-1<e.classList.toString().indexOf("c-gtm-menu"))return!1;
addEventListener(e,"click",clickHandler,!1)
}
}
function addClickListeners(e){
if(!linkTrackingInstalled){
linkTrackingInstalled=!0;
var t,n=getClassesRegExp(configIgnoreClasses,"ignore"),i=documentAlias.links;
if(i)for(t=0;
t<i.length;
t++)n.test(i[t].className)||addClickListener(i[t],e)
}
}
function _enableTrackOnlyVisibleContent(e,t,n){
if(isTrackOnlyVisibleContentEnabled)return!0;
var i,r,o=!(isTrackOnlyVisibleContentEnabled=!0);
function a(){
o=!0
}
trackCallbackOnLoad(function(){
if(e){
for(i=["scroll","resize"],r=0;
r<i.length;
r++)documentAlias.addEventListener?documentAlias.addEventListener(i[r],a):windowAlias.attachEvent("on"+i[r],a);
!function e(t){
setTimeout(function(){
isTrackOnlyVisibleContentEnabled&&(o&&(o=!1,n.trackVisibleContentImpressions()),e(t))
}
,t)
}
(100)
}
t&&0<t&&function e(t){
setTimeout(function(){
isTrackOnlyVisibleContentEnabled&&(o=!1,n.trackVisibleContentImpressions(),e(t))
}
,t)
}
(t=parseInt(t,10))
}
)
}
function detectBrowserFeatures(){
var e,t,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"
}
,i=new RegExp("Mac OS X.*Safari/").test(navigatorAlias.userAgent)&&windowAlias.devicePixelRatio||1;
if(!new RegExp("MSIE").test(navigatorAlias.userAgent)){
if(navigatorAlias.mimeTypes&&navigatorAlias.mimeTypes.length)for(e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t=navigatorAlias.mimeTypes[n[e]],browserFeatures[e]=t&&t.enabledPlugin?"1":"0");
"unknown"!=typeof navigator.javaEnabled&&isDefined(navigatorAlias.javaEnabled)&&navigatorAlias.javaEnabled()&&(browserFeatures.java="1"),isFunction(windowAlias.GearsFactory)&&(browserFeatures.gears="1")
}
browserFeatures.cookie=hasCookies(),browserFeatures.res=screenAlias.width*i+"x"+screenAlias.height*i
}
function registerHook(hookName,userHook){
var hookObj=null;
if(isString(hookName)&&!isDefined(registeredHooks[hookName])&&userHook){
if(isObject(userHook))hookObj=userHook;
else if(isString(userHook))try{
eval("hookObj ="+userHook)
}
catch(e){
}
registeredHooks[hookName]=hookObj
}
return hookObj
}
return detectBrowserFeatures(),updateDomainHash(),executePluginMethod("run",registerHook),{
hook:registeredHooks,getHook:function(e){
return registeredHooks[e]
}
,getQuery:function(){
return query
}
,getContent:function(){
return content
}
,buildContentImpressionRequest:buildContentImpressionRequest,buildContentInteractionRequest:buildContentInteractionRequest,buildContentInteractionRequestNode:buildContentInteractionRequestNode,buildContentInteractionTrackingRedirectUrl:buildContentInteractionTrackingRedirectUrl,getContentImpressionsRequestsFromNodes:getContentImpressionsRequestsFromNodes,getCurrentlyVisibleContentImpressionsRequestsIfNotTrackedYet:getCurrentlyVisibleContentImpressionsRequestsIfNotTrackedYet,trackCallbackOnLoad:trackCallbackOnLoad,trackCallbackOnReady:trackCallbackOnReady,buildContentImpressionsRequests:buildContentImpressionsRequests,wasContentImpressionAlreadyTracked:wasContentImpressionAlreadyTracked,appendContentInteractionToRequestIfPossible:getContentInteractionToRequestIfPossible,setupInteractionsTracking:setupInteractionsTracking,trackContentImpressionClickInteraction:trackContentImpressionClickInteraction,internalIsNodeVisible:isVisible,isNodeAuthorizedToTriggerInteraction:isNodeAuthorizedToTriggerInteraction,replaceHrefIfInternalLink:replaceHrefIfInternalLink,getConfigDownloadExtensions:function(){
return configDownloadExtensions
}
,enableTrackOnlyVisibleContent:function(e,t){
return _enableTrackOnlyVisibleContent(e,t,this)
}
,clearTrackedContentImpressions:function(){
trackedContentImpressions=[]
}
,getTrackedContentImpressions:function(){
return trackedContentImpressions
}
,getTrackerUrl:function(){
return configTrackerUrl
}
,clearEnableTrackOnlyVisibleContent:function(){
isTrackOnlyVisibleContentEnabled=!1
}
,disableLinkTracking:function(){
linkTrackingEnabled=linkTrackingInstalled=!1
}
,getConfigVisitorCookieTimeout:function(){
return configVisitorCookieTimeout
}
,getRemainingVisitorCookieTimeout:getRemainingVisitorCookieTimeout,getVisitorId:function(){
return loadVisitorIdCookie()[1]
}
,getVisitorInfo:function(){
return loadVisitorIdCookie()
}
,getAttributionInfo:function(){
return loadReferrerAttributionCookie()
}
,getAttributionCampaignName:function(){
return loadReferrerAttributionCookie()[0]
}
,getAttributionCampaignKeyword:function(){
return loadReferrerAttributionCookie()[1]
}
,getAttributionReferrerTimestamp:function(){
return loadReferrerAttributionCookie()[2]
}
,getAttributionReferrerUrl:function(){
return loadReferrerAttributionCookie()[3]
}
,setTrackerUrl:function(e){
configTrackerUrl=e
}
,getSiteId:function(){
return configTrackerSiteId
}
,setSiteId:function(e){
configTrackerSiteId=e
}
,setUserId:function(e){
configUserId=e
}
,getUserId:function(){
return configUserId
}
,setCustomData:function(e,t){
isObject(e)?configCustomData=e:(configCustomData||(configCustomData={
}
),configCustomData[e]=t)
}
,getCustomData:function(){
return configCustomData
}
,setCustomRequestProcessing:function(e){
configCustomRequestContentProcessing=e
}
,appendToTrackingUrl:function(e){
configAppendToTrackingUrl=e
}
,getRequest:function(e){
return _getRequest(e)
}
,addPlugin:function(e,t){
plugins[e]=t
}
,setCustomVariable:function(e,t,n,i){
var r;
isDefined(i)||(i="visit"),isDefined(t)&&(isDefined(n)||(n=""),("number"==typeof e||"string"==typeof e&&!Number.isNaN(parseInt(e)))&&-1<e&&(t=isString(t)?t:String(t),n=isString(n)?n:String(n),r=[t.slice(0,customVariableMaximumLength),n.slice(0,customVariableMaximumLength)],"visit"===i||2===i?(loadCustomVariables(),customVariables[e]=r):"page"===i||3===i?customVariablesPage[e]=r:"event"===i&&(customVariablesEvent[e]=r)))
}
,getCustomVariable:function(e,t){
var n;
return isDefined(t)||(t="visit"),"page"===t||3===t?n=customVariablesPage[e]:"event"===t?n=customVariablesEvent[e]:"visit"!==t&&2!==t||(loadCustomVariables(),n=customVariables[e]),!(!isDefined(n)||n&&""===n[0])&&n
}
,deleteCustomVariable:function(e,t){
this.getCustomVariable(e,t)&&this.setCustomVariable(e,"","",t)
}
,storeCustomVariablesInCookie:function(){
configStoreCustomVariablesInCookie=!0
}
,setLinkTrackingTimer:function(e){
configTrackerPause=e
}
,setDownloadExtensions:function(e){
configDownloadExtensions=e
}
,addDownloadExtensions:function(e){
configDownloadExtensions+="|"+e
}
,setDomains:function(e){
(configHostsAlias=isString(e)?[e]:e).push(domainAlias)
}
,setIgnoreClasses:function(e){
configIgnoreClasses=isString(e)?[e]:e
}
,setRequestMethod:function(e){
configRequestMethod=e||defaultRequestMethod
}
,setRequestContentType:function(e){
configRequestContentType=e||defaultRequestContentType
}
,setReferrerUrl:function(e){
configReferrerUrl=e
}
,setCustomUrl:function(e){
configCustomUrl=resolveRelativeReference(locationHrefAlias,e)
}
,setDocumentTitle:function(e){
configTitle=e
}
,setAPIUrl:function(e){
configApiUrl=e
}
,setDownloadClasses:function(e){
configDownloadClasses=isString(e)?[e]:e
}
,setLinkClasses:function(e){
configLinkClasses=isString(e)?[e]:e
}
,setCampaignNameKey:function(e){
configCampaignNameParameters=isString(e)?[e]:e
}
,setCampaignKeywordKey:function(e){
configCampaignKeywordParameters=isString(e)?[e]:e
}
,discardHashTag:function(e){
configDiscardHashTag=e
}
,setCookieNamePrefix:function(e){
configCookieNamePrefix=e,customVariables=getCustomVariablesFromCookie()
}
,setCookieDomain:function(e){
configCookieDomain=domainFixup(e),updateDomainHash()
}
,setCookiePath:function(e){
configCookiePath=e,updateDomainHash()
}
,setVisitorCookieTimeout:function(e){
configVisitorCookieTimeout=1e3*e
}
,setSessionCookieTimeout:function(e){
configSessionCookieTimeout=1e3*e
}
,setReferralCookieTimeout:function(e){
configReferralCookieTimeout=1e3*e
}
,setConversionAttributionFirstReferrer:function(e){
configConversionAttributionFirstReferrer=e
}
,disableCookies:function(){
configCookiesDisabled=!0,browserFeatures.cookie="0"
}
,deleteCookies:function(){
_deleteCookies()
}
,setDoNotTrack:function(e){
var t=navigatorAlias.doNotTrack||navigatorAlias.msDoNotTrack;
(configDoNotTrack=e&&("yes"===t||"1"===t))&&this.disableCookies()
}
,addListener:function(e,t){
addClickListener(e,t)
}
,enableLinkTracking:function(e){
linkTrackingEnabled=!0,hasLoaded?addClickListeners(e):registeredOnLoadHandlers.push(function(){
addClickListeners(e)
}
)
}
,enableJSErrorTracking:function(){
if(!_enableJSErrorTracking){
_enableJSErrorTracking=!0;
var o=windowAlias.onerror;
windowAlias.onerror=function(t,n,i,r,e){
return trackCallback(function(){
var e=n+":"+i;
r&&(e+=":"+r),logEvent("JavaScript Errors",e,t)
}
),!!o&&o(t,n,i,r,e)
}
}
}
,disablePerformanceTracking:function(){
configPerformanceTrackingEnabled=!1
}
,setGenerationTimeMs:function(e){
configPerformanceGenerationTime=parseInt(e,10)
}
,setHeartBeatTimer:function(e,t){
var n=new Date;
configMinimumVisitTime=n.getTime()+1e3*e,configHeartBeatTimer=1e3*t
}
,killFrame:function(){
windowAlias.location!==windowAlias.top.location&&(windowAlias.top.location=windowAlias.location)
}
,redirectFile:function(e){
"file:"===windowAlias.location.protocol&&(windowAlias.location=e)
}
,setCountPreRendered:function(e){
configCountPreRendered=e
}
,trackGoal:function(e,t,n){
trackCallback(function(){
logGoal(e,t,n)
}
)
}
,trackLink:function(e,t,n,i){
trackCallback(function(){
logLink(e,t,n,i)
}
)
}
,trackPageView:function(e,t){
trackedContentImpressions=[],isOverlaySession(configTrackerSiteId)?trackCallback(function(){
injectOverlayScripts(configTrackerUrl,configApiUrl,configTrackerSiteId)
}
):trackCallback(function(){
logPageView(e,t)
}
)
}
,trackAllContentImpressions:function(){
isOverlaySession(configTrackerSiteId)||trackCallback(function(){
trackCallbackOnReady(function(){
sendBulkRequest(getContentImpressionsRequestsFromNodes(content.findContentNodes()),configTrackerPause)
}
)
}
)
}
,trackVisibleContentImpressions:function(e,t){
isOverlaySession(configTrackerSiteId)||(isDefined(e)||(e=!0),isDefined(t)||(t=750),_enableTrackOnlyVisibleContent(e,t,this),trackCallback(function(){
trackCallbackOnLoad(function(){
sendBulkRequest(getCurrentlyVisibleContentImpressionsRequestsIfNotTrackedYet(content.findContentNodes()),configTrackerPause)
}
)
}
))
}
,trackContentImpression:function(e,t,n){
isOverlaySession(configTrackerSiteId)||e&&(t=t||"Unknown",trackCallback(function(){
sendRequest(buildContentImpressionRequest(e,t,n),configTrackerPause)
}
))
}
,trackContentImpressionsWithinNode:function(e){
!isOverlaySession(configTrackerSiteId)&&e&&trackCallback(function(){
isTrackOnlyVisibleContentEnabled?trackCallbackOnLoad(function(){
sendBulkRequest(getCurrentlyVisibleContentImpressionsRequestsIfNotTrackedYet(content.findContentNodesWithinNode(e)),configTrackerPause)
}
):trackCallbackOnReady(function(){
sendBulkRequest(getContentImpressionsRequestsFromNodes(content.findContentNodesWithinNode(e)),configTrackerPause)
}
)
}
)
}
,trackContentInteraction:function(e,t,n,i){
isOverlaySession(configTrackerSiteId)||e&&t&&(n=n||"Unknown",trackCallback(function(){
sendRequest(buildContentInteractionRequest(e,t,n,i),configTrackerPause)
}
))
}
,trackContentInteractionNode:function(e,t){
!isOverlaySession(configTrackerSiteId)&&e&&trackCallback(function(){
sendRequest(buildContentInteractionRequestNode(e,t),configTrackerPause)
}
)
}
,trackEvent:function(e,t,n,i){
trackCallback(function(){
logEvent(e,t,n,i)
}
)
}
,trackSiteSearch:function(e,t,n){
trackCallback(function(){
logSiteSearch(e,t,n)
}
)
}
,setEcommerceView:function(e,t,n,i){
isDefined(n)&&n.length?n instanceof Array&&(n=JSON2.stringify(n)):n="",customVariablesPage[5]=["_pkc",n],isDefined(i)&&String(i).length&&(customVariablesPage[2]=["_pkp",i]),(isDefined(e)&&e.length||isDefined(t)&&t.length)&&(isDefined(e)&&e.length&&(customVariablesPage[3]=["_pks",e]),isDefined(t)&&t.length||(t=""),customVariablesPage[4]=["_pkn",t])
}
,addEcommerceItem:function(e,t,n,i,r){
e.length&&(ecommerceItems[e]=[e,t,n,i,r])
}
,trackEcommerceOrder:function(e,t,n,i,r,o){
logEcommerceOrder(e,t,n,i,r,o)
}
,trackEcommerceCartUpdate:function(e){
logEcommerceCartUpdate(e)
}
}
}
function TrackerProxy(){
return{
push:apply
}
}
addEventListener(windowAlias,"beforeunload",beforeUnloadHandler,!1),addReadyListener(),Date.prototype.getTimeAlias=Date.prototype.getTime,asyncTracker=new Tracker;
var applyFirst={
setTrackerUrl:1,setAPIUrl:1,setSiteId:1,disableCookies:1,enableLinkTracking:1
}
,methodName;
for(iterator=0;
iterator<_paq.length;
iterator++)methodName=_paq[iterator][0],applyFirst[methodName]&&(apply(_paq[iterator]),delete _paq[iterator],1<applyFirst[methodName]&&void 0!==console&&console&&console.error&&console.error("The method "+methodName+' 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: http://developer.piwik.org/api-reference/tracking-javascript#multiple-piwik-trackers'),applyFirst[methodName]++);
for(iterator=0;
iterator<_paq.length;
iterator++)_paq[iterator]&&apply(_paq[iterator]);
return _paq=new TrackerProxy,Piwik={
addPlugin:function(e,t){
plugins[e]=t
}
,getTracker:function(e,t){
return new Tracker(e,t,asyncTracker.getVisitorId())
}
,getAsyncTracker:function(){
return asyncTracker
}
,isDelio:!0
}
,__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){
return Piwik
}
.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),Piwik
}
()),window&&window.piwikAsyncInit&&window.piwikAsyncInit(),"undefined"===("undefined"==typeof AnalyticsTracker?"undefined":_typeof(AnalyticsTracker))&&(window.AnalyticsTracker=Piwik),"function"!=typeof piwik_log&&(window.piwik_log=function(documentTitle,siteId,piwikUrl,customData){
function getOption(optionName){
try{
return eval("piwik_"+optionName)
}
catch(e){
}
}
var option,piwikTracker=Piwik.getTracker(piwikUrl,siteId);
piwikTracker.setDocumentTitle(documentTitle),piwikTracker.setCustomData(customData),option=getOption("tracker_pause"),option&&piwikTracker.setLinkTrackingTimer(option),option=getOption("download_extensions"),option&&piwikTracker.setDownloadExtensions(option),option=getOption("hosts_alias"),option&&piwikTracker.setDomains(option),option=getOption("ignore_classes"),option&&piwikTracker.setIgnoreClasses(option),piwikTracker.trackPageView(),getOption("install_tracker")&&(piwik_track=function(e,t,n,i){
piwikTracker.setSiteId(t),piwikTracker.setTrackerUrl(n),piwikTracker.trackLink(e,i)
}
,piwikTracker.enableLinkTracking())
}
)
}
)
}
,332:function(module,exports,__webpack_require__){
"use strict";
(function(process,global,module){
Object.defineProperty(exports,"__esModule",{
value:!0
}
);
var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){
return typeof e
}
:function(e){
return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e
}
,sha1=exports.sha1=function(){
var root="object"===("undefined"==typeof window?"undefined":_typeof(window))?window:{
}
,NODE_JS=!root.JS_SHA1_NO_NODE_JS&&"object"===(void 0===process?"undefined":_typeof(process))&&process.versions&&process.versions.node;
NODE_JS&&(root=global);
var COMMON_JS=!root.JS_SHA1_NO_COMMON_JS&&"object"===_typeof(module)&&module.exports,AMD=__webpack_require__(335),HEX_CHARS="0123456789abcdef".split(""),EXTRA=[-2147483648,8388608,32768,128],SHIFT=[24,16,8,0],OUTPUT_TYPES=["hex","array","digest","arrayBuffer"],blocks=[],createOutputMethod=function(t){
return function(e){
return new Sha1(!0).update(e)[t]()
}
}
,createMethod=function(){
var t=createOutputMethod("hex");
NODE_JS&&(t=nodeWrap(t)),t.create=function(){
return new Sha1
}
,t.update=function(e){
return t.create().update(e)
};
for(var e=0;
e<OUTPUT_TYPES.length;
++e){
var n=OUTPUT_TYPES[e];
t[n]=createOutputMethod(n)
}
return t
}
,nodeWrap=function nodeWrap(method){
var crypto=eval("require('crypto')"),Buffer=eval("require('buffer').Buffer"),nodeMethod=function(e){
if("string"==typeof e)return crypto.createHash("sha1").update(e,"utf8").digest("hex");
if(e.constructor===ArrayBuffer)e=new Uint8Array(e);
else if(void 0===e.length)return method(e);
return crypto.createHash("sha1").update(new Buffer(e)).digest("hex")
};
return nodeMethod
};
function Sha1(e){
this.blocks=e?(blocks[0]=blocks[16]=blocks[1]=blocks[2]=blocks[3]=blocks[4]=blocks[5]=blocks[6]=blocks[7]=blocks[8]=blocks[9]=blocks[10]=blocks[11]=blocks[12]=blocks[13]=blocks[14]=blocks[15]=0,blocks):[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.h0=1732584193,this.h1=4023233417,this.h2=2562383102,this.h3=271733878,this.h4=3285377520,this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0
}
Sha1.prototype.update=function(e){
if(!this.finalized){
var t="string"!=typeof e;
t&&e.constructor===root.ArrayBuffer&&(e=new Uint8Array(e));
for(var n,i,r=0,o=e.length||0,a=this.blocks;
r<o;
){
if(this.hashed&&(this.hashed=!1,a[0]=this.block,a[16]=a[1]=a[2]=a[3]=a[4]=a[5]=a[6]=a[7]=a[8]=a[9]=a[10]=a[11]=a[12]=a[13]=a[14]=a[15]=0),t)for(i=this.start;
r<o&&i<64;
++r)a[i>>2]|=e[r]<<SHIFT[3&i++];
else for(i=this.start;
r<o&&i<64;
++r)(n=e.charCodeAt(r))<128?a[i>>2]|=n<<SHIFT[3&i++]:(n<2048?a[i>>2]|=(192|n>>6)<<SHIFT[3&i++]:(n<55296||57344<=n?a[i>>2]|=(224|n>>12)<<SHIFT[3&i++]:(n=65536+((1023&n)<<10|1023&e.charCodeAt(++r)),a[i>>2]|=(240|n>>18)<<SHIFT[3&i++],a[i>>2]|=(128|n>>12&63)<<SHIFT[3&i++]),a[i>>2]|=(128|n>>6&63)<<SHIFT[3&i++]),a[i>>2]|=(128|63&n)<<SHIFT[3&i++]);
this.lastByteIndex=i,this.bytes+=i-this.start,64<=i?(this.block=a[16],this.start=i-64,this.hash(),this.hashed=!0):this.start=i
}
return 4294967295<this.bytes&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this
}
}
,Sha1.prototype.finalize=function(){
if(!this.finalized){
this.finalized=!0;
var e=this.blocks,t=this.lastByteIndex;
e[16]=this.block,e[t>>2]|=EXTRA[3&t],this.block=e[16],56<=t&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()
}
}
,Sha1.prototype.hash=function(){
var e,t,n=this.h0,i=this.h1,r=this.h2,o=this.h3,a=this.h4,s=this.blocks;
for(e=16;
e<80;
++e)t=s[e-3]^s[e-8]^s[e-14]^s[e-16],s[e]=t<<1|t>>>31;
for(e=0;
e<20;
e+=5)n=(t=(i=(t=(r=(t=(o=(t=(a=(t=n<<5|n>>>27)+(i&r|~i&o)+a+1518500249+s[e]<<0)<<5|a>>>27)+(n&(i=i<<30|i>>>2)|~n&r)+o+1518500249+s[e+1]<<0)<<5|o>>>27)+(a&(n=n<<30|n>>>2)|~a&i)+r+1518500249+s[e+2]<<0)<<5|r>>>27)+(o&(a=a<<30|a>>>2)|~o&n)+i+1518500249+s[e+3]<<0)<<5|i>>>27)+(r&(o=o<<30|o>>>2)|~r&a)+n+1518500249+s[e+4]<<0,r=r<<30|r>>>2;
for(;
e<40;
e+=5)n=(t=(i=(t=(r=(t=(o=(t=(a=(t=n<<5|n>>>27)+(i^r^o)+a+1859775393+s[e]<<0)<<5|a>>>27)+(n^(i=i<<30|i>>>2)^r)+o+1859775393+s[e+1]<<0)<<5|o>>>27)+(a^(n=n<<30|n>>>2)^i)+r+1859775393+s[e+2]<<0)<<5|r>>>27)+(o^(a=a<<30|a>>>2)^n)+i+1859775393+s[e+3]<<0)<<5|i>>>27)+(r^(o=o<<30|o>>>2)^a)+n+1859775393+s[e+4]<<0,r=r<<30|r>>>2;
for(;
e<60;
e+=5)n=(t=(i=(t=(r=(t=(o=(t=(a=(t=n<<5|n>>>27)+(i&r|i&o|r&o)+a-1894007588+s[e]<<0)<<5|a>>>27)+(n&(i=i<<30|i>>>2)|n&r|i&r)+o-1894007588+s[e+1]<<0)<<5|o>>>27)+(a&(n=n<<30|n>>>2)|a&i|n&i)+r-1894007588+s[e+2]<<0)<<5|r>>>27)+(o&(a=a<<30|a>>>2)|o&n|a&n)+i-1894007588+s[e+3]<<0)<<5|i>>>27)+(r&(o=o<<30|o>>>2)|r&a|o&a)+n-1894007588+s[e+4]<<0,r=r<<30|r>>>2;
for(;
e<80;
e+=5)n=(t=(i=(t=(r=(t=(o=(t=(a=(t=n<<5|n>>>27)+(i^r^o)+a-899497514+s[e]<<0)<<5|a>>>27)+(n^(i=i<<30|i>>>2)^r)+o-899497514+s[e+1]<<0)<<5|o>>>27)+(a^(n=n<<30|n>>>2)^i)+r-899497514+s[e+2]<<0)<<5|r>>>27)+(o^(a=a<<30|a>>>2)^n)+i-899497514+s[e+3]<<0)<<5|i>>>27)+(r^(o=o<<30|o>>>2)^a)+n-899497514+s[e+4]<<0,r=r<<30|r>>>2;
this.h0=this.h0+n<<0,this.h1=this.h1+i<<0,this.h2=this.h2+r<<0,this.h3=this.h3+o<<0,this.h4=this.h4+a<<0
}
,Sha1.prototype.hex=function(){
this.finalize();
var e=this.h0,t=this.h1,n=this.h2,i=this.h3,r=this.h4;
return HEX_CHARS[e>>28&15]+HEX_CHARS[e>>24&15]+HEX_CHARS[e>>20&15]+HEX_CHARS[e>>16&15]+HEX_CHARS[e>>12&15]+HEX_CHARS[e>>8&15]+HEX_CHARS[e>>4&15]+HEX_CHARS[15&e]+HEX_CHARS[t>>28&15]+HEX_CHARS[t>>24&15]+HEX_CHARS[t>>20&15]+HEX_CHARS[t>>16&15]+HEX_CHARS[t>>12&15]+HEX_CHARS[t>>8&15]+HEX_CHARS[t>>4&15]+HEX_CHARS[15&t]+HEX_CHARS[n>>28&15]+HEX_CHARS[n>>24&15]+HEX_CHARS[n>>20&15]+HEX_CHARS[n>>16&15]+HEX_CHARS[n>>12&15]+HEX_CHARS[n>>8&15]+HEX_CHARS[n>>4&15]+HEX_CHARS[15&n]+HEX_CHARS[i>>28&15]+HEX_CHARS[i>>24&15]+HEX_CHARS[i>>20&15]+HEX_CHARS[i>>16&15]+HEX_CHARS[i>>12&15]+HEX_CHARS[i>>8&15]+HEX_CHARS[i>>4&15]+HEX_CHARS[15&i]+HEX_CHARS[r>>28&15]+HEX_CHARS[r>>24&15]+HEX_CHARS[r>>20&15]+HEX_CHARS[r>>16&15]+HEX_CHARS[r>>12&15]+HEX_CHARS[r>>8&15]+HEX_CHARS[r>>4&15]+HEX_CHARS[15&r]
}
,Sha1.prototype.toString=Sha1.prototype.hex,Sha1.prototype.digest=function(){
this.finalize();
var e=this.h0,t=this.h1,n=this.h2,i=this.h3,r=this.h4;
return[e>>24&255,e>>16&255,e>>8&255,255&e,t>>24&255,t>>16&255,t>>8&255,255&t,n>>24&255,n>>16&255,n>>8&255,255&n,i>>24&255,i>>16&255,i>>8&255,255&i,r>>24&255,r>>16&255,r>>8&255,255&r]
}
,Sha1.prototype.array=Sha1.prototype.digest,Sha1.prototype.arrayBuffer=function(){
this.finalize();
var e=new ArrayBuffer(20),t=new DataView(e);
return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),e
};
var exports=createMethod();
return exports
}
()
}
).call(this,__webpack_require__(333),__webpack_require__(51),__webpack_require__(334)(module))
}
,333:function(e,t){
var n,i,r=e.exports={
};
function o(){
throw new Error("setTimeout has not been defined")
}
function a(){
throw new Error("clearTimeout has not been defined")
}
function s(t){
if(n===setTimeout)return setTimeout(t,0);
if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);
try{
return n(t,0)
}
catch(e){
try{
return n.call(null,t,0)
}
catch(e){
return n.call(this,t,0)
}
}
}
!function(){
try{
n="function"==typeof setTimeout?setTimeout:o
}
catch(e){
n=o
}
try{
i="function"==typeof clearTimeout?clearTimeout:a
}
catch(e){
i=a
}
}
();
var c,u=[],l=!1,f=-1;
function d(){
l&&c&&(l=!1,c.length?u=c.concat(u):f=-1,u.length&&g())
}
function g(){
if(!l){
var e=s(d);
l=!0;
for(var t=u.length;
t;
){
for(c=u,u=[];
++f<t;
)c&&c[f].run();
f=-1,t=u.length
}
c=null,l=!1,function(t){
if(i===clearTimeout)return clearTimeout(t);
if((i===a||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(t);
try{
i(t)
}
catch(e){
try{
return i.call(null,t)
}
catch(e){
return i.call(this,t)
}
}
}
(e)
}
}
function p(e,t){
this.fun=e,this.array=t
}
function m(){
}
r.nextTick=function(e){
var t=new Array(arguments.length-1);
if(1<arguments.length)for(var n=1;
n<arguments.length;
n++)t[n-1]=arguments[n];
u.push(new p(e,t)),1!==u.length||l||s(g)
}
,p.prototype.run=function(){
this.fun.apply(null,this.array)
}
,r.title="browser",r.browser=!0,r.env={
}
,r.argv=[],r.version="",r.versions={
}
,r.on=m,r.addListener=m,r.once=m,r.off=m,r.removeListener=m,r.removeAllListeners=m,r.emit=m,r.prependListener=m,r.prependOnceListener=m,r.listeners=function(e){
return[]
}
,r.binding=function(e){
throw new Error("process.binding is not supported")
}
,r.cwd=function(){
return"/"
}
,r.chdir=function(e){
throw new Error("process.chdir is not supported")
}
,r.umask=function(){
return 0
}
}
,334:function(e,t){
e.exports=function(e){
return e.webpackPolyfill||(e.deprecate=function(){
}
,e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{
enumerable:!0,get:function(){
return e.l
}
}
),Object.defineProperty(e,"id",{
enumerable:!0,get:function(){
return e.i
}
}
),e.webpackPolyfill=1),e
}
}
,335:function(t,e){
(function(e){
t.exports=e
}
).call(this,{
}
)
}
,51:function(e,t){
var n;
n=function(){
return this
}
();
try{
n=n||new Function("return this")()
}
catch(e){
"object"==typeof window&&(n=window)
}
e.exports=n
}
}
);
© 2023 Quttera Ltd. All rights reserved.