!function(){var t,n,e,i,o=window.location,a=window.document,t=a.currentScript,r={};function d(t,n,e){window.fetch&&fetch(t,{method:"POST",headers:{"Content-Type":"text/plain"},keepalive:!0,body:JSON.stringify(n)}).then(function(t){e&&e.callback&&e.callback({status:t.status})}).catch(function(){})}var c=!1,l=location.href,s={},u=-1,w=0,p=0;function v(){var t=h();if(!n&&(u=3e3)){u=i;var o={n:"engagement",sd:Math.round(i/e*100),d:r.domain,u:l,p:s,e:t,v:19};w=0,p=0,d(r.endpoint,o)}}function f(){"visible"===document.visibilityState&&document.hasFocus()&&0===w?w=Date.now():"hidden"!==document.visibilityState&&document.hasFocus()||(p=h(),w=0,v())}function h(){return w?p+(Date.now()-w):p}function g(){var t=document.body||{},n=document.documentElement||{};return Math.max(t.scrollHeight||0,t.offsetHeight||0,t.clientHeight||0,n.scrollHeight||0,n.offsetHeight||0,n.clientHeight||0)}function m(){var t=document.body||{},n=document.documentElement||{},i=window.innerHeight||n.clientHeight||0,o=window.scrollY||n.scrollTop||t.scrollTop||0;return e<=i?e:o+i}function b(t,h){var b="pageview"===t;if(b&&c&&(v(),e=g(),i=m()),/^localhost$|^127(\.[0-9]+){0,2}\.[0-9]+$|^\[::1?\]$/.test(o.hostname)||"file:"===o.protocol)return y(t,h,"localhost");if((window._phantom||window.__nightmare||window.navigator.webdriver||window.Cypress)&&!window.__plausible)return y(t,h);try{if("true"===window.localStorage.plausible_ignore)return y(t,h,"localStorage flag")}catch(t){}var S={};S.n=t,S.v=19,S.u=o.href,S.d=r.domain,S.r=a.referrer||null,h&&h.meta&&(S.m=JSON.stringify(h.meta)),h&&h.props&&(S.p=h.props),h&&!1===h.interactive&&(S.i=!1),b&&(n=!1,l=S.u,s=S.p,u=-1,p=0,w=Date.now(),c||(document.addEventListener("visibilitychange",f),window.addEventListener("blur",f),window.addEventListener("focus",f),c=!0)),d(r.endpoint,S,h)}function y(t,e,i){i&&console.warn("Ignoring Event: "+i),e&&e.callback&&e.callback(),"pageview"===t&&(n=!0)}!function n(d){r.endpoint=t.getAttribute("data-api")||new URL(t.src).origin+"/api/event",r.domain=t.getAttribute("data-domain"),e=g(),i=m(),window.addEventListener("load",function(){e=g();var t=0,n=setInterval(function(){e=g(),15==++t&&clearInterval(n)},200)}),document.addEventListener("scroll",function(){e=g();var t=m();t>i&&(i=t)}),function(t){function n(n){n&&e===o.pathname||(e=o.pathname,t("pageview"))}var e,i=function(){n(!0)},r=window.history;if(r.pushState){var d=r.pushState;r.pushState=function(){d.apply(this,arguments),i()},window.addEventListener("popstate",i)}"hidden"===a.visibilityState||"prerender"===a.visibilityState?a.addEventListener("visibilitychange",function(){e||"visible"!==a.visibilityState||n()}):n(),window.addEventListener("pageshow",function(t){t.persisted&&n()})}(b);for(var c=window.plausible&&window.plausible.q||[],l=0;l