/*! chic-lite 1.1.5 2024-02-08 10:21:05 AM */ var chiclite=chiclite||{};function chicliteDomReady(e){if("function"==typeof e)return"interactive"===document.readyState||"complete"===document.readyState?e():void document.addEventListener("DOMContentLoaded",e,!1)}function chicliteToggleAttribute(e,t,o,n){void 0===o&&(o=!0),void 0===n&&(n=!1),e.getAttribute(t)!==o?e.setAttribute(t,o):e.setAttribute(t,n)}function chicliteFindParents(e,o){var n=[];return function e(t){t=t.parentNode;t instanceof HTMLElement&&(t.matches(o)&&n.push(t),e(t))}(e),n}chiclite.createEvent=function(e){var t;return"function"==typeof window.Event?t=new Event(e):(t=document.createEvent("Event")).initEvent(e,!0,!1),t},chiclite.coverModals={init:function(){document.querySelector(".cover-modal")&&(this.onToggle(),this.closeOnEscape(),this.hideAndShowModals(),this.keepFocusInModal())},onToggle:function(){document.querySelectorAll(".cover-modal").forEach(function(e){e.addEventListener("toggled",function(e){var e=e.target,t=document.body;e.classList.contains("active")?t.classList.add("showing-modal"):(t.classList.remove("showing-modal"),t.classList.add("hiding-modal"),setTimeout(function(){t.classList.remove("hiding-modal")},500))})})},closeOnEscape:function(){document.addEventListener("keydown",function(e){27===e.keyCode&&(e.preventDefault(),document.querySelectorAll(".cover-modal.active").forEach(function(e){this.untoggleModal(e)}.bind(this)))}.bind(this))},hideAndShowModals:function(){var l=document,a=window,e=l.querySelectorAll(".cover-modal"),r=l.documentElement.style,s=l.querySelector("#wpadminbar");function d(e){var t,o=a.pageYOffset;return s?(t=o+s.getBoundingClientRect().height,e?-t:t):0===o?0:-o}function u(){return{"overflow-y":a.innerHeight>l.documentElement.getBoundingClientRect().height?"hidden":"scroll",position:"fixed",width:"100%",top:d(!0)+"px",left:0}}e.forEach(function(c){c.addEventListener("toggle-target-before-inactive",function(e){var t=u(),o=a.pageYOffset,n=Math.abs(d())-o+"px",i=a.matchMedia("(max-width: 600px)");e.target===c&&(Object.keys(t).forEach(function(e){r.setProperty(e,t[e])}),a.chiclite.scrolled=parseInt(t.top,10),s&&(l.body.style.setProperty("padding-top",n),i.matches)&&(o>=d()?c.style.setProperty("top",0):c.style.setProperty("top",d()-o+"px")),c.classList.add("show-modal"))}),c.addEventListener("toggle-target-after-inactive",function(e){e.target===c&&setTimeout(function(){var e=chiclite.toggles.clickedEl;c.classList.remove("show-modal"),Object.keys(u()).forEach(function(e){r.removeProperty(e)}),s&&(l.body.style.removeProperty("padding-top"),c.style.removeProperty("top")),!1!==e&&(e.focus(),e=!1),a.scrollTo(0,Math.abs(a.chiclite.scrolled+d())),a.chiclite.scrolled=0},500)})})},untoggleModal:function(e){var t,o=!1;e.dataset.modalTargetString&&(t=e.dataset.modalTargetString,o=document.querySelector('*[data-toggle-target="'+t+'"]')),o?o.click():e.classList.remove("active")},keepFocusInModal:function(){var r=document;r.addEventListener("keydown",function(e){var t,o,n,i,c,l,a=chiclite.toggles.clickedEl;a&&r.body.classList.contains("showing-modal")&&(a=a.dataset.toggleTarget,c="input, a, button",i=r.querySelector(a),t=i.querySelectorAll(c),t=Array.prototype.slice.call(t),".menu-modal"===a&&(o=(o=window.matchMedia("(min-width: 9999px)").matches)?".expanded-menu":".mobile-menu",(t=t.filter(function(e){return null!==e.closest(o)&&null!==e.offsetParent})).unshift(r.querySelector(".close-nav-toggle")),n=r.querySelector(".menu-bottom > nav"))&&n.querySelectorAll(c).forEach(function(e){t.push(e)}),".main-menu-modal"===a&&(o=(o=window.matchMedia("(min-width: 1025px)").matches)?".expanded-menu":".mobile-menu",(t=t.filter(function(e){return null!==e.closest(o)&&null!==e.offsetParent})).unshift(r.querySelector(".close-main-nav-toggle")),n=r.querySelector(".menu-bottom > nav"))&&n.querySelectorAll(c).forEach(function(e){t.push(e)}),i=t[t.length-1],a=t[0],n=r.activeElement,c=9===e.keyCode,!(l=e.shiftKey)&&c&&i===n&&(e.preventDefault(),a.focus()),l)&&c&&a===n&&(e.preventDefault(),i.focus())})}},chiclite.modalMenu={init:function(){this.expandLevel()},expandLevel:function(){document.querySelectorAll(".modal-menu").forEach(function(e){e=e.querySelector(".current-menu-item");e&&chicliteFindParents(e,"li").forEach(function(e){e=e.querySelector(".submenu-toggle");e&&chiclite.toggles.performToggle(e,!0)})})}},chiclite.toggles={clickedEl:!1,init:function(){this.toggle()},performToggle:function(e,o){var n,i,c=this,l=document,a=e,r=a.dataset.toggleTarget,s="active";l.querySelectorAll(".show-modal").length||(c.clickedEl=l.activeElement),(n="next"===r?a.nextSibling:l.querySelector(r)).classList.contains(s)?n.dispatchEvent(chiclite.createEvent("toggle-target-before-active")):n.dispatchEvent(chiclite.createEvent("toggle-target-before-inactive")),i=a.dataset.classToToggle||s,e=0,n.classList.contains("cover-modal")&&(e=10),setTimeout(function(){var e=n.classList.contains("sub-menu")?a.closest(".menu-item").querySelector(".sub-menu"):n,t=a.dataset.toggleDuration;"slidetoggle"!==a.dataset.toggleType||o||"0"===t?e.classList.toggle(i):chicliteMenuToggle(e,t),("next"===r||n.classList.contains("sub-menu")?a:l.querySelector('*[data-toggle-target="'+r+'"]')).classList.toggle(s),chicliteToggleAttribute(a,"aria-expanded","true","false"),c.clickedEl&&-1!==a.getAttribute("class").indexOf("close-")&&chicliteToggleAttribute(c.clickedEl,"aria-expanded","true","false"),a.dataset.toggleBodyClass&&l.body.classList.toggle(a.dataset.toggleBodyClass),a.dataset.setFocus&&(e=l.querySelector(a.dataset.setFocus))&&(n.classList.contains(s)?e.focus():e.blur()),n.dispatchEvent(chiclite.createEvent("toggled")),n.classList.contains(s)?n.dispatchEvent(chiclite.createEvent("toggle-target-after-active")):n.dispatchEvent(chiclite.createEvent("toggle-target-after-inactive"))},e)},toggle:function(){var o=this;document.querySelectorAll("*[data-toggle-target]").forEach(function(t){t.addEventListener("click",function(e){e.preventDefault(),o.performToggle(t)})})}},chicliteDomReady(function(){chiclite.toggles.init(),chiclite.coverModals.init()});