",""+FIX);
var n=document.createElement("iframe");n.id="av-f";n.title=fr.title;n.srcdoc=src;
fr.parentNode.replaceChild(n,fr);fr=n}
function vacia(){try{var d=fr.contentDocument,a=d&&d.getElementById("app");return !a||!a.children.length}catch(e){return false}}
function avOpen(){return av.classList.contains("on")}
function abrir(){
if(!ready){ready=true;build()}
else if(vacia())build();
setTimeout(function(){if(avOpen()&&vacia())build()},1500);
document.body.classList.add("av-lock");av.setAttribute("aria-hidden","false");
requestAnimationFrame(function(){av.classList.add("on")});
}
function cerrar(){av.classList.remove("on");av.setAttribute("aria-hidden","true");document.body.classList.remove("av-lock");setTimeout(function(){if(ready&&vacia())build()},900)}
document.addEventListener("click",function(e){
var t=e.target.closest&&e.target.closest("[data-aves]");
if(t){e.preventDefault();abrir()}
});
document.getElementById("av-x").addEventListener("click",cerrar);
})();