var Pixel=function(host,anchor){function calculateScrollPercent(){var scrollTop=document.body||{},html=document.documentElement||{},scrollDown=(scrollDown=pageHeight=0,pageHeight=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)},$pixel.initMAT=function(){"undefined"!=typeof Mat&&window.__mat_data&&($pixel.mat=new Mat($pixel,window.__mat_data))},$pixel.getMAT=function(endpoint,styles,script,$xandr){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']"),styles=styles||"https://mat.socy.es/mat/css/"+$pixel.token+"?mat_token="+matToken,script=script||"https://mat.socy.es/mat/js/"+$pixel.token+"?mat_token="+matToken,$pixel.loadData={matToken:matToken,metaKeywords:metaKeywords,endpoint:endpoint=endpoint||"https://mat.socy.es/mat.json",styles:styles,script:script,noCacheEndpoint:$xandr,consent:""},$pixel.getCookie("euconsent-v2")?$pixel.loadData.consent=$pixel.getCookie("euconsent-v2"):$pixel.getCookie("eupubconsent-v2")&&($pixel.loadData.consent=$pixel.getCookie("eupubconsent-v2")),$pixel.getCookie("_MAT_XUM_")?($pixel.xandrUserMapping={pixel_uid:$pixel.browserId,xandr_uid:$pixel.getCookie("_MAT_XUM_")},$pixel.loadMat()):(($xandr=document.createElement("script")).src="https://secure.adnxs.com/getuid?https://mat.socy.es/mat.php/api/xandr_usermapping?pxl_id="+$pixel.browserId+"&consent="+$pixel.loadData.consent+"&user_id=$UID",document.body.appendChild($xandr)))},$pixel.loadMat=function(){var link,matScript,loadData=$pixel.loadData;$pixel.xandrUserMapping&&($pixel.xandrUserMapping.consent=loadData.consent),document.querySelector("link#mat-styles")||(matScript=document.getElementsByTagName("link")[0],(link=document.createElement("link")).id="mat-styles",link.rel="stylesheet",link.href=loadData.styles,matScript.parentNode.insertBefore(link,matScript)),document.querySelector("script#mat-scripts")||((matScript=document.createElement("script")).setAttribute("id","mat-scripts"),matScript.setAttribute("crossorigin","anonymous"),matScript.setAttribute("async","1"),matScript.onload=$pixel.initMAT,zzzPixelScript.parentNode.insertBefore(matScript,zzzPixelScript),matScript.src=loadData.script),$pixel.getJSON(loadData.endpoint,{media:$pixel.medio.id,matToken:loadData.matToken,_ga:$pixel._uid,matSession:sessionStorage.getItem("matSessionID")?sessionStorage.getItem("matSessionID"):"",_:loadData.noCacheEndpoint?(new Date).getTime():"",adsocyTest:sessionStorage.getItem("adsocy_test")?sessionStorage.getItem("adsocy_test"):"",geoip:JSON.stringify($pixel.geoip),matR:document.location.href||$pixel.referrer,xandrData:$pixel.xandrUserMapping?JSON.stringify($pixel.xandrUserMapping):""},function(data){data.mat?((window.__mat_data=data).session&&$pixel.setCookie("matSessionID",data.session,1),$pixel.initMAT()):$pixel.setCookie("_MAT_TK_","void_1_notengoelementomatdata",0)},function(data){$pixel.setCookie("_MAT_TK_","void_2_loadfail",0)})},checkOptions=null,!$pixel.getCookie("_MAT_TK_")&&$pixel.medio.id&&2==$pixel.medio.phase?checkOptions={media:$pixel.medio.id,t:1e3*Math.round(Date.now()/1e6)}:$pixel.getCookie("_MAT_TK_")&&"void"!==$pixel.getCookie("_MAT_TK_").substring(0,4)&&$pixel.medio.id&&(checkOptions={media:$pixel.medio.id,matToken:$pixel.getCookie("_MAT_TK_"),t:10*Math.round(Date.now()/1e4)}),checkOptions&&$pixel.getJSON("https://mat.socy.es/mat.php/check",checkOptions,function(matCheck){var endpoint,noCache;"success"==matCheck.result&&matCheck.data&&matCheck.data.token?($pixel.setCookie("_MAT_TK_",matCheck.data.token,1),endpoint=null,noCache=!1,$pixel.getCookie("__MAT_REGENERATE__")&&"void"!=$pixel.getCookie("__MAT_REGENERATE__").substring(0,4)?($pixel.setCookie("__MAT_REGENERATE__","void_3",1),endpoint=matCheck.endpointRegenerate,noCache=!0):endpoint=matCheck.endpoint,$pixel.getMAT(endpoint,matCheck.styles,matCheck.script,noCache)):"pass"!=matCheck.result&&$pixel.setCookie("_MAT_TK_","void_4_noencontramosuntoken",.1)},function(){$pixel.setCookie("_MAT_TK_","void_5_checkfail",.1)})))}))};!function(){window.zzzPixelScript=document.currentScript||document.getElementById("dogtrack-pixel")||document.getElementById("dogtrack-app")||document.getElementById("besocy_spixel");var t=document.createElement("a");t.href=zzzPixelScript.src,zzzPixelScript.dataset.h||(zzzPixelScript.dataset.h=zzzPixelScript.h||t.hostname),zzzPixelScript.dataset.t||("string"==typeof(t=zzzPixelScript.t||t.pathname.replace("/pixel/js/","").replace("pixel/js/",""))&&-1