!function(){var a,o=window.location,r=window.document,t=r.currentScript,l=t.getAttribute("data-api")||new URL(t.src).origin+"/api/event",s=t.getAttribute("data-domain");function c(t,e,n){e&&console.warn("Ignoring Event: "+e),n&&n.callback&&n.callback(),"pageview"===t&&(a=!0)}var p=o.href,u={},d=-1,f=!1,v=null,w=0;function h(){var t=r.body||{},e=r.documentElement||{};return Math.max(t.scrollHeight||0,t.offsetHeight||0,t.clientHeight||0,e.scrollHeight||0,e.offsetHeight||0,e.clientHeight||0)}function g(){var t=r.body||{},e=r.documentElement||{},n=window.innerHeight||e.clientHeight||0,e=window.scrollY||e.scrollTop||t.scrollTop||0;return m<=n?m:e+n}function e(){return v?w+(Date.now()-v):w}var m=h(),b=g();function y(){var t=e();!a&&(d{for(;t&&(void 0===t.tagName||!(e=t)||!e.tagName||"a"!==e.tagName.toLowerCase()||!t.href);)t=t.parentNode;var e;return t})(t.target),n=e&&e.href&&e.href.split("?")[0],(i=e)&&i.href&&i.host&&i.host!==o.host?A(t,e,{name:"Outbound Link: Click",props:{url:e.href}}):(i=n)&&(a=i.split(".").pop(),O.some(function(t){return t===a}))?A(t,e,{name:"File Download",props:{url:n}}):void 0}function A(t,e,n){var i,a=!1;function o(){a||(a=!0,window.location=e.href)}((t,e)=>!t.defaultPrevented&&(e=!e.target||e.target.match(/^_(self|parent|top)$/i),t=!(t.ctrlKey||t.metaKey||t.shiftKey)&&"click"===t.type,e)&&t)(t,e)?(i={props:n.props,callback:o},plausible(n.name,i),setTimeout(o,5e3),t.preventDefault()):(i={props:n.props},plausible(n.name,i))}r.addEventListener("click",T),r.addEventListener("auxclick",T);var N=["pdf","xlsx","docx","txt","rtf","csv","exe","key","pps","ppt","pptx","7z","pkg","rar","gz","zip","avi","mov","mp4","mpeg","wmv","midi","mp3","wav","wma","dmg"],C=t.getAttribute("file-types"),t=t.getAttribute("add-file-types"),O=C&&C.split(",")||t&&t.split(",").concat(N)||N}();