!function(e){"function"==typeof define&&define.amd?define("optInModal",e):e()}(function(){"use strict";var i={setCookie(e,t,n){var i=new Date,n=(i.setTime(i.getTime()+24*n*60*60*1e3),"expires="+i.toGMTString());document.cookie=e+"="+t+";"+n+";path=/"},getCookie(e){for(var t=e+"=",n=decodeURIComponent(document.cookie).split(";"),i=0;i<n.length;i++){for(var s=n[i];" "==s.charAt(0);)s=s.substring(1);if(0==s.indexOf(t))return s.substring(t.length,s.length)}return""}},s={isHidden(e){return"none"===window.getComputedStyle(e,null).display},toggleClass(e,t,n){if(e&&n&&t)switch(n){case"remove":e.classList.remove(t);break;case"add":e.classList.add(t);break;case"toggle":e.classList.toggle(t)}},scrollBasedClass(e,t,n,i=!1){window.scrollY;let s;window.addEventListener("scroll",function(){(s=window.scrollY)>=e?t.classList.add(n):i&&t.classList.remove(n)})},setModalsToFooter(){const e=document.querySelectorAll(".modal"),t=document.querySelector(".main-footer");e.forEach(e=>{e&&t.appendChild(e)})}};function e(e,t){return e(t={exports:{}},t.exports),t.exports}var o,r,n=e(function(e,t){e.exports=function(){const f=()=>{const{jQuery:e}=window;if(e&&!document.body.hasAttribute("data-bs-no-jquery"))return e;return null},p=/[^.]*(?=\..*)\.|.*/,t=/\..*/,d=/::\d+$/,n={};let i=1;const s={mouseenter:"mouseover",mouseleave:"mouseout"},m=/^(mouseenter|mouseleave)/i,h=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function g(e,t){return t&&`${t}::${i++}`||e.uidEvent||i++}function _(e){const t=g(e);e.uidEvent=t;n[t]=n[t]||{};return n[t]}function b(n,i){return function e(t){t.delegateTarget=n;if(e.oneOff)a.off(n,t.type,i);return i.apply(n,[t])}}function y(o,r,l){return function n(i){const s=o.querySelectorAll(r);for(let{target:t}=i;t&&t!==this;t=t.parentNode)for(let e=s.length;e--;)if(s[e]===t){i.delegateTarget=t;if(n.oneOff)a.off(o,i.type,r,l);return l.apply(t,[i])}return null}}function E(n,i,s=null){const o=Object.keys(n);for(let e=0,t=o.length;e<t;e++){const r=n[o[e]];if(r.originalHandler===i&&r.delegationSelector===s)return r}return null}function v(e,t,n){const i=typeof t==="string";const s=i?n:t;let o=k(e);const r=h.has(o);if(!r)o=e;return[i,s,o]}function o(e,t,n,i,s){if(typeof t!=="string"||!e)return;if(!n){n=i;i=null}if(m.test(t)){const h=t=>{return function(e){if(!e.relatedTarget||e.relatedTarget!==e.delegateTarget&&!e.delegateTarget.contains(e.relatedTarget))return t.call(this,e)}};if(i)i=h(i);else n=h(n)}const[o,r,l]=v(t,n,i);const a=_(e);const u=a[l]||(a[l]={});const c=E(u,r,o?n:null);if(c){c.oneOff=c.oneOff&&s;return}const d=g(r,t.replace(p,""));const f=o?y(e,n,i):b(e,n);f.delegationSelector=o?n:null;f.originalHandler=r;f.oneOff=s;f.uidEvent=d;u[d]=f;e.addEventListener(l,f,o)}function w(e,t,n,i,s){const o=E(t[n],i,s);if(!o)return;e.removeEventListener(n,o,Boolean(s));delete t[n][o.uidEvent]}function A(n,i,s,o){const r=i[s]||{};Object.keys(r).forEach(e=>{if(e.includes(o)){const t=r[e];w(n,i,s,t.originalHandler,t.delegationSelector)}})}function k(e){e=e.replace(t,"");return s[e]||e}const a={on(e,t,n,i){o(e,t,n,i,false)},one(e,t,n,i){o(e,t,n,i,true)},off(i,s,e,t){if(typeof s!=="string"||!i)return;const[n,o,r]=v(s,e,t);const l=r!==s;const a=_(i);const u=s.startsWith(".");if(typeof o!=="undefined"){if(!a||!a[r])return;w(i,a,r,o,n?e:null);return}if(u)Object.keys(a).forEach(e=>{A(i,a,e,s.slice(1))});const c=a[r]||{};Object.keys(c).forEach(e=>{const t=e.replace(d,"");if(!l||s.includes(t)){const n=c[e];w(i,a,r,n.originalHandler,n.delegationSelector)}})},trigger(e,t,n){if(typeof t!=="string"||!e)return null;const i=f();const s=k(t);const o=t!==s;const r=h.has(s);let l;let a=true;let u=true;let c=false;let d=null;if(o&&i){l=i.Event(t,n);i(e).trigger(l);a=!l.isPropagationStopped();u=!l.isImmediatePropagationStopped();c=l.isDefaultPrevented()}if(r){d=document.createEvent("HTMLEvents");d.initEvent(s,a,true)}else d=new CustomEvent(t,{bubbles:a,cancelable:true});if(typeof n!=="undefined")Object.keys(n).forEach(e=>{Object.defineProperty(d,e,{get(){return n[e]}})});if(c)d.preventDefault();if(u)e.dispatchEvent(d);if(d.defaultPrevented&&typeof l!=="undefined")l.preventDefault();return d}};return a}()}),l=e(function(e,t){e.exports=function(){function s(e){if(e==="true")return true;if(e==="false")return false;if(e===Number(e).toString())return Number(e);if(e===""||e==="null")return null;return e}function i(e){return e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}const e={setDataAttribute(e,t,n){e.setAttribute(`data-bs-${i(t)}`,n)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${i(t)}`)},getDataAttributes(n){if(!n)return{};const i={};Object.keys(n.dataset).filter(e=>e.startsWith("bs")).forEach(e=>{let t=e.replace(/^bs/,"");t=t.charAt(0).toLowerCase()+t.slice(1,t.length);i[t]=s(n.dataset[e])});return i},getDataAttribute(e,t){return s(e.getAttribute(`data-bs-${i(t)}`))},offset(e){const t=e.getBoundingClientRect();return{top:t.top+window.pageYOffset,left:t.left+window.pageXOffset}},position(e){return{top:e.offsetTop,left:e.offsetLeft}}};return e}()}),a=e(function(e,t){e.exports=function(){const t=e=>{if(!e||typeof e!=="object")return false;if(typeof e.jquery!=="undefined")e=e[0];return typeof e.nodeType!=="undefined"},n=e=>{if(!t(e)||e.getClientRects().length===0)return false;return getComputedStyle(e).getPropertyValue("visibility")==="visible"},i=e=>{if(!e||e.nodeType!==Node.ELEMENT_NODE)return true;if(e.classList.contains("disabled"))return true;if(typeof e.disabled!=="undefined")return e.disabled;return e.hasAttribute("disabled")&&e.getAttribute("disabled")!=="false"},s=3,e={find(e,t=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(t,e))},findOne(e,t=document.documentElement){return Element.prototype.querySelector.call(t,e)},children(e,t){return[].concat(...e.children).filter(e=>e.matches(t))},parents(e,t){const n=[];let i=e.parentNode;while(i&&i.nodeType===Node.ELEMENT_NODE&&i.nodeType!==s){if(i.matches(t))n.push(i);i=i.parentNode}return n},prev(e,t){let n=e.previousElementSibling;while(n){if(n.matches(t))return[n];n=n.previousElementSibling}return[]},next(e,t){let n=e.nextElementSibling;while(n){if(n.matches(t))return[n];n=n.nextElementSibling}return[]},focusableChildren(e){const t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(e=>`${e}:not([tabindex^="-"])`).join(", ");return this.find(t,e).filter(e=>!i(e)&&n(e))}};return e}()}),u=e(function(e,t){e.exports=function(){const s=new Map,e={set(e,t,n){if(!s.has(e))s.set(e,new Map);const i=s.get(e);if(!i.has(t)&&i.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(i.keys())[0]}.`);return}i.set(t,n)},get(e,t){if(s.has(e))return s.get(e).get(t)||null;return null},remove(e,t){if(!s.has(e))return;const n=s.get(e);n.delete(t);if(n.size===0)s.delete(e)}};return e}()}),c=e(function(e,t){e.exports=function(e,t){const n=e=>e&&typeof e==="object"&&"default"in e?e:{default:e},i=n(e),s=n(t),o=1e3,l="transitionend",a=e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:n}=window.getComputedStyle(e);const i=Number.parseFloat(t);const s=Number.parseFloat(n);if(!i&&!s)return 0;t=t.split(",")[0];n=n.split(",")[0];return(Number.parseFloat(t)+Number.parseFloat(n))*o},u=e=>{e.dispatchEvent(new Event(l))},r=e=>{if(!e||typeof e!=="object")return false;if(typeof e.jquery!=="undefined")e=e[0];return typeof e.nodeType!=="undefined"},c=e=>{if(r(e))return e.jquery?e[0]:e;if(typeof e==="string"&&e.length>0)return document.querySelector(e);return null},d=e=>{if(typeof e==="function")e()},f=(t,n,e=true)=>{if(!e){d(t);return}const i=5;const s=a(n)+i;let o=false;const r=({target:e})=>{if(e!==n)return;o=true;n.removeEventListener(l,r);d(t)};n.addEventListener(l,r);setTimeout(()=>{if(!o)u(n)},s)},h="5.1.3";class p{constructor(e){e=c(e);if(!e)return;this._element=e;i.default.set(this._element,this.constructor.DATA_KEY,this)}dispose(){i.default.remove(this._element,this.constructor.DATA_KEY);s.default.off(this._element,this.constructor.EVENT_KEY);Object.getOwnPropertyNames(this).forEach(e=>{this[e]=null})}_queueCallback(e,t,n=true){f(e,t,n)}static getInstance(e){return i.default.get(c(e),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,typeof t==="object"?t:null)}static get VERSION(){return h}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}}return p}(u,n)}),d=e(function(e,t){e.exports=function(e,t,n,M){const i=e=>e&&typeof e==="object"&&"default"in e?e:{default:e},r=i(e),s=i(t),o=i(n),B=i(M),R=1e3,l="transitionend",I=e=>{if(e===null||e===undefined)return`${e}`;return{}.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase()},Y=t=>{let n=t.getAttribute("data-bs-target");if(!n||n==="#"){let e=t.getAttribute("href");if(!e||!e.includes("#")&&!e.startsWith("."))return null;if(e.includes("#")&&!e.startsWith("#"))e=`#${e.split("#")[1]}`;n=e&&e!=="#"?e.trim():null}return n},a=e=>{const t=Y(e);return t?document.querySelector(t):null},F=e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:n}=window.getComputedStyle(e);const i=Number.parseFloat(t);const s=Number.parseFloat(n);if(!i&&!s)return 0;t=t.split(",")[0];n=n.split(",")[0];return(Number.parseFloat(t)+Number.parseFloat(n))*R},P=e=>{e.dispatchEvent(new Event(l))},u=e=>{if(!e||typeof e!=="object")return false;if(typeof e.jquery!=="undefined")e=e[0];return typeof e.nodeType!=="undefined"},W=e=>{if(u(e))return e.jquery?e[0]:e;if(typeof e==="string"&&e.length>0)return document.querySelector(e);return null},c=(s,o,r)=>{Object.keys(r).forEach(e=>{const t=r[e];const n=o[e];const i=n&&u(n)?"element":I(n);if(!new RegExp(t).test(i))throw new TypeError(`${s.toUpperCase()}: Option "${e}" provided type "${i}" but expected type "${t}".`)})},z=e=>{if(!u(e)||e.getClientRects().length===0)return false;return getComputedStyle(e).getPropertyValue("visibility")==="visible"},H=e=>{if(!e||e.nodeType!==Node.ELEMENT_NODE)return true;if(e.classList.contains("disabled"))return true;if(typeof e.disabled!=="undefined")return e.disabled;return e.hasAttribute("disabled")&&e.getAttribute("disabled")!=="false"},d=e=>{e.offsetHeight},K=()=>{const{jQuery:e}=window;if(e&&!document.body.hasAttribute("data-bs-no-jquery"))return e;return null},f=[],U=e=>{if(document.readyState==="loading"){if(!f.length)document.addEventListener("DOMContentLoaded",()=>{f.forEach(e=>e())});f.push(e)}else e()},h=()=>document.documentElement.dir==="rtl",V=i=>{U(()=>{const e=K();if(e){const t=i.NAME;const n=e.fn[t];e.fn[t]=i.jQueryInterface;e.fn[t].Constructor=i;e.fn[t].noConflict=()=>{e.fn[t]=n;return i.jQueryInterface}}})},p=e=>{if(typeof e==="function")e()},Q=(t,n,e=true)=>{if(!e){p(t);return}const i=5;const s=F(n)+i;let o=false;const r=({target:e})=>{if(e!==n)return;o=true;n.removeEventListener(l,r);p(t)};n.addEventListener(l,r);setTimeout(()=>{if(!o)P(n)},s)},m=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",g=".sticky-top";class G{constructor(){this._element=document.body}getWidth(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const t=this.getWidth();this._disableOverFlow();this._setElementAttributes(this._element,"paddingRight",e=>e+t);this._setElementAttributes(m,"paddingRight",e=>e+t);this._setElementAttributes(g,"marginRight",e=>e-t)}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow");this._element.style.overflow="hidden"}_setElementAttributes(e,n,i){const s=this.getWidth();const t=e=>{if(e!==this._element&&window.innerWidth>e.clientWidth+s)return;this._saveInitialAttribute(e,n);const t=window.getComputedStyle(e)[n];e.style[n]=`${i(Number.parseFloat(t))}px`};this._applyManipulationCallback(e,t)}reset(){this._resetElementAttributes(this._element,"overflow");this._resetElementAttributes(this._element,"paddingRight");this._resetElementAttributes(m,"paddingRight");this._resetElementAttributes(g,"marginRight")}_saveInitialAttribute(e,t){const n=e.style[t];if(n)s.default.setDataAttribute(e,t,n)}_resetElementAttributes(e,n){const t=e=>{const t=s.default.getDataAttribute(e,n);if(typeof t==="undefined")e.style.removeProperty(n);else{s.default.removeDataAttribute(e,n);e.style[n]=t}};this._applyManipulationCallback(e,t)}_applyManipulationCallback(e,t){if(u(e))t(e);else o.default.find(e,this._element).forEach(t)}isOverflowing(){return this.getWidth()>0}}const X={className:"modal-backdrop",isVisible:true,isAnimated:false,rootElement:"body",clickCallback:null},Z={className:"string",isVisible:"boolean",isAnimated:"boolean",rootElement:"(element|string)",clickCallback:"(function|null)"},_="backdrop",J="fade",b="show",y=`mousedown.bs.${_}`;class ee{constructor(e){this._config=this._getConfig(e);this._isAppended=false;this._element=null}show(e){if(!this._config.isVisible){p(e);return}this._append();if(this._config.isAnimated)d(this._getElement());this._getElement().classList.add(b);this._emulateAnimation(()=>{p(e)})}hide(e){if(!this._config.isVisible){p(e);return}this._getElement().classList.remove(b);this._emulateAnimation(()=>{this.dispose();p(e)})}_getElement(){if(!this._element){const e=document.createElement("div");e.className=this._config.className;if(this._config.isAnimated)e.classList.add(J);this._element=e}return this._element}_getConfig(e){e={...X,...typeof e==="object"?e:{}};e.rootElement=W(e.rootElement);c(_,e,Z);return e}_append(){if(this._isAppended)return;this._config.rootElement.append(this._getElement());r.default.on(this._getElement(),y,()=>{p(this._config.clickCallback)});this._isAppended=true}dispose(){if(!this._isAppended)return;r.default.off(this._element,y);this._element.remove();this._isAppended=false}_emulateAnimation(e){Q(e,this._getElement(),this._config.isAnimated)}}const te={trapElement:null,autofocus:true},ne={trapElement:"element",autofocus:"boolean"},ie="focustrap",se="bs.focustrap",E=`.${se}`,oe=`focusin${E}`,re=`keydown.tab${E}`,le="Tab",ae="forward",v="backward";class ue{constructor(e){this._config=this._getConfig(e);this._isActive=false;this._lastTabNavDirection=null}activate(){const{trapElement:e,autofocus:t}=this._config;if(this._isActive)return;if(t)e.focus();r.default.off(document,E);r.default.on(document,oe,e=>this._handleFocusin(e));r.default.on(document,re,e=>this._handleKeydown(e));this._isActive=true}deactivate(){if(!this._isActive)return;this._isActive=false;r.default.off(document,E)}_handleFocusin(e){const{target:t}=e;const{trapElement:n}=this._config;if(t===document||t===n||n.contains(t))return;const i=o.default.focusableChildren(n);if(i.length===0)n.focus();else if(this._lastTabNavDirection===v)i[i.length-1].focus();else i[0].focus()}_handleKeydown(e){if(e.key!==le)return;this._lastTabNavDirection=e.shiftKey?v:ae}_getConfig(e){e={...te,...typeof e==="object"?e:{}};c(ie,e,ne);return e}}const ce=(i,s="hide")=>{const e=`click.dismiss${i.EVENT_KEY}`;const o=i.NAME;r.default.on(document,e,`[data-bs-dismiss="${o}"]`,function(e){if(["A","AREA"].includes(this.tagName))e.preventDefault();if(H(this))return;const t=a(this)||this.closest(`.${o}`);const n=i.getOrCreateInstance(t);n[s]()})},w="modal",de="bs.modal",A=`.${de}`,fe=".data-api",k="Escape",T={backdrop:true,keyboard:true,focus:true},he={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean"},pe=`hide${A}`,me=`hidePrevented${A}`,C=`hidden${A}`,N=`show${A}`,ge=`shown${A}`,S=`resize${A}`,L=`click.dismiss${A}`,D=`keydown.dismiss${A}`,_e=`mouseup.dismiss${A}`,$=`mousedown.dismiss${A}`,be=`click${A}${fe}`,j="modal-open",ye="fade",O="show",q="modal-static",Ee=".modal.show",ve=".modal-dialog",we=".modal-body",Ae='[data-bs-toggle="modal"]';class x extends B.default{constructor(e,t){super(e);this._config=this._getConfig(t);this._dialog=o.default.findOne(ve,this._element);this._backdrop=this._initializeBackDrop();this._focustrap=this._initializeFocusTrap();this._isShown=false;this._ignoreBackdropClick=false;this._isTransitioning=false;this._scrollBar=new G}static get Default(){return T}static get NAME(){return w}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown||this._isTransitioning)return;const t=r.default.trigger(this._element,N,{relatedTarget:e});if(t.defaultPrevented)return;this._isShown=true;if(this._isAnimated())this._isTransitioning=true;this._scrollBar.hide();document.body.classList.add(j);this._adjustDialog();this._setEscapeEvent();this._setResizeEvent();r.default.on(this._dialog,$,()=>{r.default.one(this._element,_e,e=>{if(e.target===this._element)this._ignoreBackdropClick=true})});this._showBackdrop(()=>this._showElement(e))}hide(){if(!this._isShown||this._isTransitioning)return;const e=r.default.trigger(this._element,pe);if(e.defaultPrevented)return;this._isShown=false;const t=this._isAnimated();if(t)this._isTransitioning=true;this._setEscapeEvent();this._setResizeEvent();this._focustrap.deactivate();this._element.classList.remove(O);r.default.off(this._element,L);r.default.off(this._dialog,$);this._queueCallback(()=>this._hideModal(),this._element,t)}dispose(){[window,this._dialog].forEach(e=>r.default.off(e,A));this._backdrop.dispose();this._focustrap.deactivate();super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new ee({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new ue({trapElement:this._element})}_getConfig(e){e={...T,...s.default.getDataAttributes(this._element),...typeof e==="object"?e:{}};c(w,e,he);return e}_showElement(e){const t=this._isAnimated();const n=o.default.findOne(we,this._dialog);if(!this._element.parentNode||this._element.parentNode.nodeType!==Node.ELEMENT_NODE)document.body.append(this._element);this._element.style.display="block";this._element.removeAttribute("aria-hidden");this._element.setAttribute("aria-modal",true);this._element.setAttribute("role","dialog");this._element.scrollTop=0;if(n)n.scrollTop=0;if(t)d(this._element);this._element.classList.add(O);const i=()=>{if(this._config.focus)this._focustrap.activate();this._isTransitioning=false;r.default.trigger(this._element,ge,{relatedTarget:e})};this._queueCallback(i,this._dialog,t)}_setEscapeEvent(){if(this._isShown)r.default.on(this._element,D,e=>{if(this._config.keyboard&&e.key===k){e.preventDefault();this.hide()}else if(!this._config.keyboard&&e.key===k)this._triggerBackdropTransition()});else r.default.off(this._element,D)}_setResizeEvent(){if(this._isShown)r.default.on(window,S,()=>this._adjustDialog());else r.default.off(window,S)}_hideModal(){this._element.style.display="none";this._element.setAttribute("aria-hidden",true);this._element.removeAttribute("aria-modal");this._element.removeAttribute("role");this._isTransitioning=false;this._backdrop.hide(()=>{document.body.classList.remove(j);this._resetAdjustments();this._scrollBar.reset();r.default.trigger(this._element,C)})}_showBackdrop(e){r.default.on(this._element,L,e=>{if(this._ignoreBackdropClick){this._ignoreBackdropClick=false;return}if(e.target!==e.currentTarget)return;if(this._config.backdrop===true)this.hide();else if(this._config.backdrop==="static")this._triggerBackdropTransition()});this._backdrop.show(e)}_isAnimated(){return this._element.classList.contains(ye)}_triggerBackdropTransition(){const e=r.default.trigger(this._element,me);if(e.defaultPrevented)return;const{classList:t,scrollHeight:n,style:i}=this._element;const s=n>document.documentElement.clientHeight;if(!s&&i.overflowY==="hidden"||t.contains(q))return;if(!s)i.overflowY="hidden";t.add(q);this._queueCallback(()=>{t.remove(q);if(!s)this._queueCallback(()=>{i.overflowY=""},this._dialog)},this._dialog);this._element.focus()}_adjustDialog(){const e=this._element.scrollHeight>document.documentElement.clientHeight;const t=this._scrollBar.getWidth();const n=t>0;if(!n&&e&&!h()||n&&!e&&h())this._element.style.paddingLeft=`${t}px`;if(n&&!e&&!h()||!n&&e&&h())this._element.style.paddingRight=`${t}px`}_resetAdjustments(){this._element.style.paddingLeft="";this._element.style.paddingRight=""}static jQueryInterface(t,n){return this.each(function(){const e=x.getOrCreateInstance(this,t);if(typeof t!=="string")return;if(typeof e[t]==="undefined")throw new TypeError(`No method named "${t}"`);e[t](n)})}}return r.default.on(document,be,Ae,function(e){const t=a(this);if(["A","AREA"].includes(this.tagName))e.preventDefault();r.default.one(t,N,e=>{if(e.defaultPrevented)return;r.default.one(t,C,()=>{if(z(this))this.focus()})});const n=o.default.findOne(Ee);if(n)x.getInstance(n).hide();const i=x.getOrCreateInstance(t);i.toggle(this)}),ce(x),V(x),x}(n,l,a,c)});function f(e){var t=i.getCookie("poppedUp");if(document.querySelector(".sticky-popup-bar"),""===t||void 0===t){t=document.querySelector(".button-toggle-menu");if(s.isHidden(t))e.show(),i.setCookie("poppedUp","popUp",7);else{const n=document.querySelector(".sticky-popup-bar");0!==n.length&&n.classList.add("is-visible")}}}{const h=document.body,p=document.querySelector(".sticky-popup-bar"),m=document.querySelector(".js-close-sticky-bar"),g=document.querySelector(".js-trigger-modal"),_=document.getElementById("opt-in-modal"),b=new d(_);let t=!1,n=!1;if(g&&g.addEventListener("click",()=>{b.show(),s.toggleClass(p,"is-visible","remove"),i.setCookie("poppedUp","popUp",7)}),m&&m.addEventListener("click",()=>{s.toggleClass(p,"is-visible","remove"),i.setCookie("poppedUp","popUp",7)}),!h.classList.contains("logged-in")&&(b&&(d=document,o="mouseout",r=function(e){console.log("mouseout"),null!=e.toElement||null!=e.relatedTarget||t||(b.show(),t=!0)},d.addEventListener?d.addEventListener(o,r,!1):d.attachEvent&&d.attachEvent("on"+o,r)),!i.getCookie("poppedUp"))){window.scrollY;let e;window.addEventListener("scroll",function(){n||_.dataset.triggerBy||300<=(e=window.scrollY)&&f(b)})}const y=document.querySelectorAll(".toc-link");y.forEach(e=>{e.addEventListener("click",()=>{n=!0,setTimeout(()=>{n=!1},1e3)})})}});
