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