var e,t,n,o=null,a=(e=function(){},t=!!HTMLElement.prototype.attachShadow,{get:function(t,o,a,l){n("GET",t,o,a="function"==typeof a?a:e,l)},post:function(t,o,a,l){n("POST",t,o,a="function"==typeof a?a:e,l)},ajax:n=function(e,t,n,o,a){var l=new XMLHttpRequest,i=t,r=n,p={"X-Requested-With":"XMLHttpRequest"};"POST"==(e=-1!=["GET","POST"].indexOf(e)?e:"GET")&&(p["Content-Type"]="application/x-www-form-urlencoded"),"object"==typeof a&&Object.keys(a).length&&(p=Object.assign({},p,a)),l.open(e,i+("GET"==e?"?"+r:""),!0);for(const e in p)p.hasOwnProperty(e)&&l.setRequestHeader(e,p[e]);l.onreadystatechange=function(){4===l.readyState&&200<=l.status&&300>l.status&&"function"==typeof o&&o.call(void 0,l.response)},l.send("POST"==e?r:null)},theme:function(e){if(t){let t=document.createElement("style"),n=document.createElement("ul");n.innerHTML='
',e.parentNode.appendChild(n);let o=getComputedStyle(n.querySelector("li")),a=getComputedStyle(n.querySelector("li a"));t.innerHTML=".wpp-list li {font-size: "+o.fontSize+"}",t.innerHTML+=".wpp-list li a {color: "+a.color+"}",e.parentNode.removeChild(n);let l=e.attachShadow({mode:"open"});for(l.append(t);e.firstElementChild;)l.append(e.firstElementChild)}}});!function(){try{var e=document.querySelector("script#wpp-json"),t=!0;if((o=JSON.parse(e.textContent)).ID){if("1"==o.sampling_active)t=1===Math.floor(Math.random()*o.sampling_rate)+1;t&&a.post(o.ajax_url,"_wpnonce="+o.token+"&wpp_id="+o.ID+"&sampling="+o.sampling_active+"&sampling_rate="+o.sampling_rate,(function(e){o.debug&&window.console&&window.console.log&&window.console.log(JSON.parse(e))}))}}catch(e){console.error("WPP: Couldn't read JSON data")}}(),document.addEventListener("DOMContentLoaded",(function(){for(var e=document.querySelectorAll(".wpp-widget-placeholder, .wpp-widget-block-placeholder"),t=0;t