!function(){var a,l=window.location,o=window.document,t=o.currentScript,r=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 u=l.href,d={},p=-1,w=!1,h=null,v=0;function f(){var t=o.body||{},e=o.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=o.body||{},e=o.documentElement||{},n=window.innerHeight||e.clientHeight||0,e=window.scrollY||e.scrollTop||t.scrollTop||0;return b<=n?b:e+n}function e(){return h?v+(Date.now()-h):v}var b=f(),m=g();function y(){var t=e();!a&&(p<m||3e3<=t)&&(p=m,t={n:"engagement",sd:Math.round(m/b*100),d:s,u:u,p:d,e:t,v:6},h=null,v=0,E(r,t))}function S(){"visible"===o.visibilityState&&o.hasFocus()&&null===h?h=Date.now():"hidden"!==o.visibilityState&&o.hasFocus()||(v=e(),h=null,y())}function n(t,e){var n="pageview"===t;if(n&&w&&(y(),b=f(),m=g()),/^localhost$|^127(\.[0-9]+){0,2}\.[0-9]+$|^\[::1?\]$/.test(l.hostname)||"file:"===l.protocol)return c(t,"localhost",e);if((window._phantom||window.__nightmare||window.navigator.webdriver||window.Cypress)&&!window.__plausible)return c(t,null,e);try{if("true"===window.localStorage.plausible_ignore)return c(t,"localStorage flag",e)}catch(t){}var i={};i.n=t,i.v=6,i.u=l.href,i.d=s,i.r=o.referrer||null,e&&e.meta&&(i.m=JSON.stringify(e.meta)),e&&e.props&&(i.p=e.props),e&&!1===e.interactive&&(i.i=!1),n&&(a=!1,u=i.u,d=i.p,p=-1,v=0,h=Date.now(),w||(o.addEventListener("visibilitychange",S),window.addEventListener("blur",S),window.addEventListener("focus",S),w=!0)),E(r,i,e)}function E(t,e,n){window.fetch&&fetch(t,{method:"POST",headers:{"Content-Type":"text/plain"},keepalive:!0,body:JSON.stringify(e)}).then(function(t){n&&n.callback&&n.callback({status:t.status})}).catch(function(){})}window.addEventListener("load",function(){b=f();var t=0,e=setInterval(function(){b=f(),15==++t&&clearInterval(e)},200)}),o.addEventListener("scroll",function(){b=f();var t=g();m<t&&(m=t)});var i=window.plausible&&window.plausible.q||[];window.plausible=n;for(var L,k=0;k<i.length;k++)n.apply(this,i[k]);function H(t){t&&L===l.pathname||(L=l.pathname,n("pageview"))}function _(){H(!0)}var N,t=window.history;t.pushState&&(N=t.pushState,t.pushState=function(){N.apply(this,arguments),_()},window.addEventListener("popstate",_)),"hidden"===o.visibilityState||"prerender"===o.visibilityState?o.addEventListener("visibilitychange",function(){L||"visible"!==o.visibilityState||H()}):H(),window.addEventListener("pageshow",function(t){t.persisted&&H()});var T=1;function x(t){var e,n,i,a,o;function r(){a||(a=!0,window.location=n.href)}"auxclick"===t.type&&t.button!==T||((e=(t=>{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))&&e.href&&e.href.split("?")[0],(o=e)&&o.href&&o.host&&o.host!==l.host&&(o=t,t={name:"Outbound Link: Click",props:{url:(n=e).href}},a=!1,((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)(o,n)?(i={props:t.props,callback:r},plausible(t.name,i),setTimeout(r,5e3),o.preventDefault()):(i={props:t.props},plausible(t.name,i))))}o.addEventListener("click",x),o.addEventListener("auxclick",x)}();