!function(r,a){"use strict";functiono(e){console.warn("[Plausible] Ignoring event because "+e)}functionl(){vare,i,t=JSON.parse((e="plausible_user",(i=document.cookie.match(newRegExp("(?:^|; )"+e.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,"\\$1")+"=([^;]*)")))?decodeURIComponent(i[1]):null));returnt?{initial_referrer:t.initial_referrer&&decodeURIComponent(t.initial_referrer),initial_source:t.initial_source&&decodeURIComponent(t.initial_source)}:(t={initial_referrer:r.document.referrer||null,initial_source:getSourceFromQueryParam()},function(e,i){vart=newDate;t.setTime(t.getTime()+94608e6);varn="; expires="+t.toUTCString();document.cookie=e+"="+(i||"")+n+"; samesite=strict; path=/"}("plausible_user",JSON.stringify({initial_referrer:t.initial_referrer&&encodeURIComponent(t.initial_referrer),initial_source:t.initial_source&&encodeURIComponent(t.initial_source)})),t)}functioni(e,i){if(/^localhost$|^127(?:\.[0-9]+){0,2}\.[0-9]+$|^(?:0*\:)*?:?0*1$/.test(r.location.hostname))returno("website is running locally");if("file:"===r.location.protocol)returno("website is running locally");if("prerender"===r.document.visibilityState)returno("document is prerendering");vart=s.trackAcquisition?l():{};t.n=e,t.u=r.location.href,t.d=s.domain,t.r=r.document.referrer||null,t.w=r.innerWidth;varn=newXMLHttpRequest;n.open("POST",a+"/api/event",!0),n.setRequestHeader("Content-Type","text/plain"),n.send(JSON.stringify(t)),n.onreadystatechange=function(){n.readyState==XMLHttpRequest.DONE&&i&&i.callback&&i.callback()}}functiont(e){i("pageview",e)}try{vars={domain:r.location.hostname},n={page:t,trigger:i,trackPushState:function(){vare,i=r.history;i.pushState&&(e=i.pushState,i.pushState=function(){e.apply(this,arguments),t()}),r.addEventListener("popstate",t)},configure:function(e,i){s[e]=i}},e=r.plausible.q||[];r.plausible=function(){vare=[].slice.call(arguments),i=e.shift();n[i].apply(this,e)};for(varc=0;c<e.length;c++)r.plausible.apply(this,e[c])}catch(e){(newImage).src=a+"/api/error?message="+encodeURIComponent(e.message)}}(window,"<%= base_url %>");