!function(){try{var t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},e=(new t.Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="27ab80ec-d027-4588-9736-759a12bb0796",t._sentryDebugIdIdentifier="sentry-dbid-27ab80ec-d027-4588-9736-759a12bb0796")}catch(t){}}();var _global="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};_global.SENTRY_RELEASE={id:"d422ce2331ff96843ff0d5950a5823013ab19d3d"},function(){"use strict";class t{constructor(t,e){this._storageKey=t,this._lastNotifiedKey=e;try{this._visitsForDay=JSON.parse(localStorage.getItem(this._storageKey))}catch{this._visitsForDay={}}null===this._visitsForDay&&(this._visitsForDay={}),this._storageKey,this._visitsForDay}persist(){localStorage.setItem(this._storageKey,JSON.stringify(this._visitsForDay))}countToday(){let t=(new Date).toISOString().slice(0,10);Object.prototype.hasOwnProperty.call(this._visitsForDay,t)||(this._visitsForDay[t]=0),this._visitsForDay[t]=this._visitsForDay[t]+1}prune(t){var e=new Date;e.setDate(e.getDate()-t);var s={};for(var o in this._visitsForDay)new Date(o)>=e&&(s[o]=this._visitsForDay[o]);this._visitsForDay=s}visits(){var t=0;for(var e in this._visitsForDay)t+=Math.max(0,this._visitsForDay[e]);return t}markNotified(){let t=new Date;localStorage.setItem(this._lastNotifiedKey,t.toISOString())}lastNotified(){return new Date(localStorage.getItem(this._lastNotifiedKey))}daysSinceLastNotified(){let t=new Date-this.lastNotified();return Math.floor(t/864e5)}}function e(t){let s=document.getElementsByClassName(t);0!==s.length?Array.from(s).forEach((t=>{t.hidden=!0})):setTimeout((()=>e(t)),100)}function s(t,e,s){window.ga&&window.ga("send",{hitType:"event",eventCategory:t,eventAction:e,eventValue:s}),window.gtag&&window.gtag("event",t,{action:e,value:s})}const o=AbortSignal.timeout||function(t){const e=new AbortController;return setTimeout((()=>e.abort(new Error("TimeoutError"))),t),e.signal};class i extends Error{constructor(t,e,s){super(t),this.name="AjaxError",this.statusCode=e,this.jsonContent=s}toString(){let t=`${this.name}: ${this.message} (Status ${this.statusCode})`;return this.jsonContent&&(t+=`\nJSON Content: ${JSON.stringify(this.jsonContent,null,2)}`),t}}function n(t){return t.ok?204===t.status?{}:t.json():t.text().then((e=>{let s=null;try{s=JSON.parse(e)}catch{}throw new i(t.statusText,t.status,s)}))}function r(t,e={}){const s={name:t,...e},i="/api/v1/event/";var r;navigator.sendBeacon&&navigator.sendBeacon(i,JSON.stringify(s))||function(t,e,s){fetch(t,{...e,headers:{Accept:"application/json",...e.headers},credentials:"same-origin",signal:o(s.timeout||3e4)}).then(n).then((t=>{s.onSuccess&&s.onSuccess(t)})).catch((t=>{s.onError&&s.onError(t)}))}((r={url:i,data:s,onError:t=>{},onSuccess:()=>{}}).url,{method:"POST",headers:{"Content-Type":"application/json","X-CSRFToken":function(t){var e=null;if(document.cookie&&""!==document.cookie)for(var s=document.cookie.split(";"),o=0;o{let o=new t("rprw","rprw-lastnotified");o.countToday(),o.prune(30),o.persist();let i=o.visits();i>=5&&(s("rprw","wouldshow",i),o.daysSinceLastNotified()>=0&&(o.markNotified(),$("#rprw").modal({backdrop:"static",keyboard:!1}),e("addthis-smartlayers"),e("drip-tab-container"),s("rprw","didshow",i),r("regwall_did_show",{visits:i})))},"complete"===document.readyState||"loading"!==document.readyState&&!document.documentElement.doScroll?a():document.addEventListener("DOMContentLoaded",a)}();