!function(S,w,T){var l,M,O=!0,k=null,e=w.querySelector('[src*="t.ghostboard.io"]'),x="https://api.ghostboard.io/",E=e&&e.getAttribute("data-gbid");function q(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n}function A(e){(new Image).src=e}function L(e,t,n,r){if(r){var r=e,i=t,o=n,a=l,c=x+"v3/views/"+r+"/heartbeat",s=JSON.stringify({A:i,B:o,D:a}),u=!1;if(navigator.sendBeacon)try{u=navigator.sendBeacon(c,s)}catch(e){}u||A(x+"views/"+r+"/heartbeat?t="+i+"&e="+encodeURIComponent(o)+"&sp="+a)}else A(x+"views/"+e+"/heartbeat?t="+t+"&e="+encodeURIComponent(n)+"&sp="+l)}function t(){try{if(!O)return!1;O=!1;function t(e){if(k||m)return!1;m=!0,g.G=e,i=0;var r=function(){try{return new XMLHttpRequest}catch(e){}try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(e){}return A(x+"noscript/"+E+"/pixel.gif"),!1}();if(!r)return!1;r.open("POST",x+"v3/views/"+E,!0),r.setRequestHeader("Content-Type","application/json; charset=utf-8"),r.onreadystatechange=function(){if(m=!1,r.readyState===XMLHttpRequest.DONE&&200===r.status){var e=JSON.parse(r.responseText);if(k=e.id,e.tc)for(var t=w.querySelectorAll("a, img"),n=0;nq(S,e,()=>n(e))),["blur","focusout","pagehide"].forEach(e=>q(S,e,()=>r(e))),("function"==typeof w.hasFocus&&w.hasFocus()||"visible"===w.visibilityState)&&n("document-focus")}catch(e){}}E?(l=0,M=function(){try{return/Mobile|Tablet|iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle/i.test(S.navigator.userAgent)}catch(e){return!1}}(),q(w,"DOMContentLoaded",t),q(S,"load",t),q(S,"scroll",function(){var e=S.scrollY||w.documentElement.scrollTop,t=w.documentElement.scrollHeight-S.innerHeight;0