var unexpectedJsErrorCaptured=!1;window.onerror=function(n,t,i,r,u){var f,e;unexpectedJsErrorCaptured===!1&&(f=new XMLHttpRequest,f.open("POST","/error/UnexpectedJsError"),f.setRequestHeader("Content-Type","application/json"),f.onreadystatechange=function(){var n,t;f.readyState==XMLHttpRequest.DONE&&(n=document.getElementById("errorBar"),n.style.display="block",t=document.createElement("span"),t.innerHTML=f.responseText,n.appendChild(t))},e=JSON.stringify({message:n,source:t,lineno:i,colno:r,error:u}),f.send(e),unexpectedJsErrorCaptured=!0)}