var Pixel=function(host,token){function calculateScrollPercent(){var body=document.body||{},html=document.documentElement||{},height=(height=width=0,width=window.screen.availWidth&&window.screen.width?window.screen.availWidth>window.screen.width?window.screen.width:window.screen.availWidth:window.screen.availWidth||window.screen.width,window.innerWidth&&window.innerWidthwindow.screen.height?window.screen.height:window.screen.availHeight:window.screen.availHeight||window.screen.height,window.innerHeight&&window.innerHeight$pixel.maxScroll&&($pixel.maxScroll=actualScroll)},window.onblur=function(){$pixel.is_blur=!0},window.onfocus=function(){$pixel.is_blur?($pixel.time_init=Date.now()/1e3,$pixel.is_blur=!1,$pixel.medio&&$pixel.medio.ping&&0<$pixel.medio.ping&&$pixel.ping(parseInt($pixel.medio.ping),parseInt($pixel.medio.id))):$pixel.is_blur=!1},$pixel.initMAT=function(){"undefined"!=typeof Mat&&window.__mat_data&&($pixel.mat=new Mat($pixel,window.__mat_data))},$pixel.getMAT=function(getData){var matToken,metaKeywords;$pixel.getCookie("_MAT_TK_")&&"void"!==$pixel.getCookie("_MAT_TK_").substring(0,4)&&$pixel.medio.id&&!window.frameElement&&(matToken=$pixel.getCookie("_MAT_TK_"),metaKeywords=document.querySelector("meta[name='keywords']"),getData.endpoint||(getData.endpoint="https://"+matHost+"/mat.json"),getData.styles||(getData.styles="https://"+matHost+"/mat/css/"+$pixel.token+"?mat_token="+matToken),getData.script||(getData.script="https://"+matHost+"/mat/js/"+$pixel.token+"?mat_token="+matToken),$pixel.loadData={matToken:matToken,metaKeywords:metaKeywords,endpoint:getData.endpoint,styles:getData.styles,stylesContent:getData.stylesContent||"",script:getData.script,scriptContent:getData.scriptContent||"",noCacheEndpoint:getData.noCacheEndpoint,consent:"",sendMatR:getData.sendMatR||!1},matToken="",$pixel.medio.consent_name&&$pixel.getCookie($pixel.medio.consent_name)?matToken=$pixel.getCookie($pixel.medio.consent_name):$pixel.getCookie("euconsent-v2")?matToken=$pixel.getCookie("euconsent-v2"):$pixel.getCookie("eupubconsent-v2")&&(matToken=$pixel.getCookie("eupubconsent-v2")),$pixel.medio.sconsent&&"1"===$pixel.medio.sconsent&&""!==matToken&&150