!function(){var o,a=window.location,r=window.document,t=r.currentScript,l=t.getAttribute("data-api")||new URL(t.src).origin+"/api/event",c=t.getAttribute("data-domain");function u(t,n,e){n&&console.warn("Ignoring Event: "+n),e&&e.callback&&e.callback(),"pageview"===t&&(o=!0)}var s=a.href,d={},w=-1,v=!1,f=null,h=0;function g(){var t=r.body||{},n=r.documentElement||{};return Math.max(t.scrollHeight||0,t.offsetHeight||0,t.clientHeight||0,n.scrollHeight||0,n.offsetHeight||0,n.clientHeight||0)}function p(){var t=r.body||{},n=r.documentElement||{},e=window.innerHeight||n.clientHeight||0,n=window.scrollY||n.scrollTop||t.scrollTop||0;return b<=e?b:n+e}function n(){return f?h+(Date.now()-f):h}var b=g(),m=p();function y(){var t=n();!o&&(w