/*!! * Matomo - free/libre analytics platform * * Matomo Tag Manager * * @link https://matomo.org * @source https://github.com/matomo-org/tag-manager/blob/master/js/piwik.js * @license https://matomo.org/free-software/bsd/ BSD-3 Clause (also in js/LICENSE.txt) */ (function(){var b=document;var a=window; /*!!! previewModeHook */ ;if(typeof window.MatomoTagManager!=="object"){if(typeof window._mtm!=="object"){window._mtm=[]}window.MatomoTagManager=(function(){var k=new Date().getTime();function j(){if(window.mtmPreviewWindow&&"object"===typeof window.mtmPreviewWindow.mtmLogs){var G=new Date();var I=[];for(var H=0;HG;case"greater_than_or_equals":return J>=G;case"contains":return String(J).indexOf(G)!==-1;case"match_css_selector":if(!G||!J){return false}var i=A.bySelector(G);return B.indexOfArray(i,J)!==-1;case"starts_with":return String(J).indexOf(G)===0;case"ends_with":return String(J).substring(J.length-G.length,J.length)===G}return false},compare:function(J,G,H){var I=String(H).indexOf("not_")===0;if(I){H=String(H).substr("not_".length)}var i=this._compare(J,G,H);if(I){return !i}return i},trim:function(i){if(i&&String(i)===i){return i.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}return i},isDefined:function(G){var i=typeof G;return i!=="undefined"},isFunction:function(i){return typeof i==="function"},isObject:function(i){return typeof i==="object"&&i!==null},isString:function(i){return typeof i==="string"},isNumber:function(i){return typeof i==="number"},isArray:function(G){if(!B.isObject(G)){return false }if("function"===typeof Array.isArray&&Array.isArray){return Array.isArray(G)}var H=Object.prototype.toString;var i=H.call([]);return H.call(G)===i},hasProperty:function(i,G){return Object.prototype.hasOwnProperty.call(i,G)},indexOfArray:function(I,H){if(!I){return -1}if("function"===typeof I.indexOf&&I.indexOf){return I.indexOf(H)}if(!this.isArray(I)){return -1}for(var G=0;Gi.getTime()){return false}return true},convertStringToDate:function(i){var G=(i&&i.split(" ").length>2);i=i+(i&&i.toLowerCase()!=="invalid date"&&!G?" UTC":"");return new Date(i)}};var r={parseUrl:function(i,J){try{var K=document.createElement("a");K.href=i;var G=K.href;K=document.createElement("a");K.href=G;if(J&&J in K){if("hash"===J){return String(K[J]).replace("#","")}else{if("protocol"===J){return String(K[J]).replace(":","")}else{if("search"===J){return String(K[J]).replace("?","")}else{if("port"===J&&!K[J]){if(K.protocol==="https:"){return"443"}else{if(K.protocol==="http:"){return"80"}}}}}}if("pathname"===J&&K[J]&&String(K[J]).substr(0,1)!=="/"){return"/"+K[J]}if("port"===J&&K[J]){return String(K[J])}return K[J]}if("origin"===J&&"protocol" in K&&K.protocol){return K.protocol+"//"+K.hostname+(K.port?":"+K.port:"") }return}catch(I){if("function"===typeof URL){var H=new URL(i);if(J&&J in H){if("hash"===J){return String(H[J]).replace("#","")}else{if("protocol"===J){return String(H[J]).replace(":","")}else{if("search"===J){return String(H[J]).replace("?","")}else{if("port"===J&&!H[J]){if(H.protocol==="https:"){return"443"}else{if(H.protocol==="http:"){return"80"}}}}}}return H[J]}return}}},decodeSafe:function(G){try{return a.decodeURIComponent(G)}catch(i){return a.unescape(G)}},getQueryParameter:function(K,G){if(!B.isDefined(G)){G=a.location.search}if(!G||!B.isDefined(K)||K===null||K===false||K===""){return null}var i=G.substr(0,1);if(G!=="?"&&G!=="&"){G="?"+G}K=K.replace("[","\\[");K=K.replace("]","\\]");var J=new RegExp("[?&]"+K+"(=([^&#]*)|&|#|$)");var I=J.exec(G);if(!I){return null}if(!I[2]){return""}var H=I[2].replace(/\+/g," ");return this.decodeSafe(H)}};var c;var D={hasSetupScroll:false,scrollCallbacks:[],scrollListenEvents:["scroll","resize"],offScroll:function(G){if(G in this.scrollCallbacks){this.scrollCallbacks[G]=null }var I=0,H=0;for(I in this.scrollCallbacks){if(this.scrollCallbacks[I]){H++}}if(!H){for(I=0;I"))},isAttributeContext:function(M,K){if(!M||!K){return false}M=String(M).replace(/([\s\uFEFF\xA0]*=[\s\uFEFF\xA0]*)/g,"=");var H=M.lastIndexOf("<");if(H===-1){return false}var O=M.substring(H);var G=O.indexOf(">");if(G!==-1){return false}var N=O.lastIndexOf("=");if(N===-1){return false}var J=O.lastIndexOf(" ",N);var L=O.substring(J,N);L=B.trim(L);if(L.toLowerCase()!==K.toLowerCase()){return false}var I=O.substring(N).replace("=","");var i=I.substring(0,1);if('"'===i){return -1===I.substring(1).indexOf('"')}else{if("'"===i){return -1===I.substring(1).indexOf("'")}}return -1===I.indexOf(" ")},onLoad:function(i){if(b.readyState==="complete"){i() }else{if(a.addEventListener){a.addEventListener("load",i)}else{if(a.attachEvent){a.attachEvent("onload",i)}}}},onReady:function(H){var i=false;if(b.attachEvent){i=b.readyState==="complete"}else{i=b.readyState!=="loading"}if(i){H();return}if(b.addEventListener){this.addEventListener(b,"DOMContentLoaded",function G(){b.removeEventListener("DOMContentLoaded",G,false);if(!i){i=true;H()}})}else{if(b.attachEvent){b.attachEvent("onreadystatechange",function G(){if(b.readyState==="complete"){b.detachEvent("onreadystatechange",G);if(!i){i=true;H()}}})}}this.onLoad(function(){if(!i){i=true;H()}})},onClick:function(G,i){if(typeof i==="undefined"){i=b.body}l.dom.addEventListener(i,"click",function(H){var I=(H.which?H.which:1);if(I===1){G(H,"left")}},true);l.dom.addEventListener(i,"auxclick",function(H){var I=(H.which?H.which:2);if(I===2){G(H,"middle")}},true);l.dom.addEventListener(i,"contextmenu",function(H){var I=(H.which?H.which:3);if(I===3){G(H,"right")}},true)},shouldElementBeMasked:function(G){if(typeof G==="undefined"){return false }if(G.hasAttribute("data-matomo-mask")||G.hasAttribute("data-piwik-mask")){return true}if(G.hasAttribute("data-matomo-unmask")||G.hasAttribute("data-piwik-unmask")){return false}var i=G.parentElement;while(i){if(i.hasAttribute("data-matomo-mask")||i.hasAttribute("data-piwik-mask")){return true}if(i.hasAttribute("data-matomo-unmask")||i.hasAttribute("data-piwik-unmask")){return false}i=i.parentElement}return false},elementHasMaskedChild:function(i){if(typeof i==="undefined"){return false}if(i.children.length===0){return false}if(i.hasAttribute("data-matomo-mask")||i.hasAttribute("data-piwik-mask")||l.dom.shouldElementBeMasked(i)){return true}return i.querySelector("[data-matomo-mask],[data-piwik-mask]")!==null},getElementTextWithMaskedChildren:function(H){var K="";var J=H.children;for(var G=0;G0;if(L){var G,J;G=H.split("::");J=G[0];H=G[1];if("object"===typeof l[J]&&B.isFunction(l[J][H])){l[J][H].apply(l[J],M)}}else{if(H&&H in l&&B.isFunction(l[H])){l[H].apply(l,M)}else{y.error("method "+H+" is not valid")}}}}B.setMethodWrapIfNeeded(a._mtm,"push",g);var v;for(v=0;v