vrembem 1.41.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dev/scripts.esm.js +1298 -625
- package/dev/scripts.esm.js.map +1 -1
- package/dev/scripts.js +1298 -625
- package/dev/scripts.js.map +1 -1
- package/dev/scripts.modern.js +836 -541
- package/dev/scripts.modern.js.map +1 -1
- package/dev/scripts.umd.js +1298 -625
- package/dev/scripts.umd.js.map +1 -1
- package/dev/styles.css +10 -11
- package/dev/styles.css.map +1 -1
- package/dist/scripts.esm.js +1 -1
- package/dist/scripts.esm.js.map +1 -1
- package/dist/scripts.js +1 -1
- package/dist/scripts.js.map +1 -1
- package/dist/scripts.modern.js +1 -1
- package/dist/scripts.modern.js.map +1 -1
- package/dist/scripts.umd.js +1 -1
- package/dist/scripts.umd.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/styles.css.map +1 -1
- package/package.json +26 -26
package/dist/scripts.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var t=function(t,e){e&&document.querySelectorAll(e).forEach(function(e){t?(e.inert=!0,e.setAttribute("aria-hidden",!0)):(e.inert=null,e.removeAttribute("aria-hidden"))})},e=function(t,e){e&&document.querySelectorAll(e).forEach(function(e){t?e.style.overflow="hidden":e.style.removeProperty("overflow")})},n=function(t){t&&document.querySelectorAll(t).forEach(function(t){t.setAttribute("tabindex","-1")})},r=function(t){var e=arguments;(t=t.forEach?t:[t]).forEach(function(t){var n;(n=t.classList).add.apply(n,[].slice.call(e,1))})},i=['a[href]:not([tabindex^="-"])','area[href]:not([tabindex^="-"])','input:not([type="hidden"]):not([type="radio"]):not([disabled]):not([tabindex^="-"])','input[type="radio"]:not([disabled]):not([tabindex^="-"])','select:not([disabled]):not([tabindex^="-"])','textarea:not([disabled]):not([tabindex^="-"])','button:not([disabled]):not([tabindex^="-"])','iframe:not([tabindex^="-"])','audio[controls]:not([tabindex^="-"])','video[controls]:not([tabindex^="-"])','[contenteditable]:not([tabindex^="-"])','[tabindex]:not([tabindex^="-"])'],s=function(t,e){var n=t.querySelector("[data-"+e.dataFocus+"]");if(n)n.focus();else{var r=t.querySelector('[tabindex="-1"]');r&&r.focus()}},o=function(t){void 0===t&&(t=null),t&&t.memory&&t.memory.trigger&&(t.memory.trigger.focus(),t.memory.trigger=null)},a=/*#__PURE__*/function(){function t(){this.target=null,this.__handlerFocusTrap=this.handlerFocusTrap.bind(this)}var e=t.prototype;return e.init=function(t){this.target=t,this.inner=this.target.querySelector('[tabindex="-1"]'),this.focusable=this.getFocusable(),this.focusable.length?(this.focusableFirst=this.focusable[0],this.focusableLast=this.focusable[this.focusable.length-1],this.target.addEventListener("keydown",this.__handlerFocusTrap)):this.target.addEventListener("keydown",this.handlerFocusLock)},e.destroy=function(){this.target&&(this.inner=null,this.focusable=null,this.focusableFirst=null,this.focusableLast=null,this.target.removeEventListener("keydown",this.__handlerFocusTrap),this.target.removeEventListener("keydown",this.handlerFocusLock),this.target=null)},e.refresh=function(){this.target&&(this.target.removeEventListener("keydown",this.__handlerFocusTrap),this.target.removeEventListener("keydown",this.handlerFocusLock),this.focusable=this.getFocusable(),this.focusable.length?(this.focusableFirst=this.focusable[0],this.focusableLast=this.focusable[this.focusable.length-1],this.target.addEventListener("keydown",this.__handlerFocusTrap)):(this.focusableFirst=null,this.focusableLast=null,this.target.addEventListener("keydown",this.handlerFocusLock)))},e.handlerFocusTrap=function(t){("Tab"===t.key||9===t.keyCode)&&(t.shiftKey?document.activeElement!==this.focusableFirst&&document.activeElement!==this.inner||(this.focusableLast.focus(),t.preventDefault()):document.activeElement!==this.focusableLast&&document.activeElement!==this.inner||(this.focusableFirst.focus(),t.preventDefault()))},e.handlerFocusLock=function(t){("Tab"===t.key||9===t.keyCode)&&t.preventDefault()},e.getFocusable=function(){var t=[],e=document.activeElement,n=this.inner?this.inner.scrollTop:0;return this.target.querySelectorAll(i.join(",")).forEach(function(e){e.focus(),e===document.activeElement&&t.push(e)}),this.inner&&(this.inner.scrollTop=n),e.focus(),t},t}(),c=function(t,e){return void 0===e&&(e=0),"string"!=typeof t?t:e?document.querySelector(t):document.querySelectorAll(t)},l=function(t){return t=[].slice.call(t=t.forEach?t:[t]),[].slice.call(arguments,1).some(function(e){return t.some(function(t){if(t.classList.contains(e))return!0})})};function u(t,e,n){if(void 0===n&&(n=!1),n){var r=c(t);if(!r.length)throw new Error('Move target element "'+t+'" not found!');var i=c(n,1);if(!i)throw new Error('Move reference element "'+n+'" not found!');r.forEach(function(t){switch(e){case"after":return i.after(t),{ref:i,el:t,type:e};case"before":return i.before(t),{ref:i,el:t,type:e};case"append":return i.append(t),{ref:i,el:t,type:e};case"prepend":return i.prepend(t),{ref:i,el:t,type:e};default:throw new Error('Move type "'+e+'" does not exist!')}})}}var d=function(t){var e=arguments;(t=t.forEach?t:[t]).forEach(function(t){var n;(n=t.classList).remove.apply(n,[].slice.call(e,1))})},f=function(t,e){return new Promise(function(n){e.transition?(t.classList.remove(e.stateClosed),t.classList.add(e.stateOpening),t.addEventListener("transitionend",function r(){t.classList.add(e.stateOpened),t.classList.remove(e.stateOpening),n(t),this.removeEventListener("transitionend",r)})):(t.classList.add(e.stateOpened),t.classList.remove(e.stateClosed),n(t))})},h=function(t,e){return new Promise(function(n){e.transition?(t.classList.add(e.stateClosing),t.classList.remove(e.stateOpened),t.addEventListener("transitionend",function r(){t.classList.remove(e.stateClosing),t.classList.add(e.stateClosed),n(t),this.removeEventListener("transitionend",r)})):(t.classList.add(e.stateClosed),t.classList.remove(e.stateOpened),n(t))})},p={__proto__:null,setInert:t,setOverflowHidden:e,setTabindex:n,addClass:r,camelCase:function(t){return t.replace(/-([a-z])/g,function(t){return t[1].toUpperCase()})},focusTarget:s,focusTrigger:o,FocusTrap:a,getElement:c,hasClass:l,hyphenCase:function(t){return t.replace(/([a-z][A-Z])/g,function(t){return t[0]+"-"+t[1].toLowerCase()})},moveElement:u,removeClass:d,toggleClass:function(t){var e=arguments;(t=t.forEach?t:[t]).forEach(function(t){[].slice.call(e,1).forEach(function(e){t.classList.toggle(e)})})},openTransition:f,closeTransition:h};function g(){return(g=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function v(t,e){return(v=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var m={autoInit:!1,stateAttr:"aria-checked",stateValue:"mixed"},y=/*#__PURE__*/function(){function t(t){this.defaults=m,this.settings=g({},this.defaults,t),this.__handlerClick=this.handlerClick.bind(this),this.settings.autoInit&&this.init()}var e=t.prototype;return e.init=function(t){void 0===t&&(t=null),t&&(this.settings=g({},this.settings,t));var e=document.querySelectorAll("["+this.settings.stateAttr+'="'+this.settings.stateValue+'"]');this.setIndeterminate(e),document.addEventListener("click",this.__handlerClick,!1)},e.destroy=function(){document.removeEventListener("click",this.__handlerClick,!1)},e.handlerClick=function(t){var e=t.target.closest("["+this.settings.stateAttr+'="'+this.settings.stateValue+'"]');e&&(this.removeAriaState(e),this.setIndeterminate(e))},e.setAriaState=function(t,e){var n=this;void 0===e&&(e=this.settings.stateValue),(t=t.forEach?t:[t]).forEach(function(t){t.setAttribute(n.settings.stateAttr,e)})},e.removeAriaState=function(t){var e=this;(t=t.forEach?t:[t]).forEach(function(t){t.removeAttribute(e.settings.stateAttr)})},e.setIndeterminate=function(t){var e=this;(t=t.forEach?t:[t]).forEach(function(t){t.indeterminate=!!t.hasAttribute(e.settings.stateAttr)})},t}(),b={autoInit:!1,dataDrawer:"drawer",dataDialog:"drawer-dialog",dataToggle:"drawer-toggle",dataOpen:"drawer-open",dataClose:"drawer-close",dataBreakpoint:"drawer-breakpoint",dataFocus:"drawer-focus",stateOpened:"is-opened",stateOpening:"is-opening",stateClosing:"is-closing",stateClosed:"is-closed",classModal:"drawer_modal",selectorInert:null,selectorOverflow:null,breakpoints:null,customEventPrefix:"drawer:",eventListeners:!0,stateSave:!0,stateKey:"DrawerState",setTabindex:!0,transition:!0},w=/*#__PURE__*/function(){function t(t){this.mediaQueryLists=[],this.parent=t,this.prefix=this.getVariablePrefix(),this.__check=this.check.bind(this)}var e=t.prototype;return e.init=function(){var t=this;document.querySelectorAll("[data-"+this.parent.settings.dataBreakpoint+"]").forEach(function(e){var n=e.getAttribute("data-"+t.parent.settings.dataDrawer),r=e.getAttribute("data-"+t.parent.settings.dataBreakpoint),i=t.getBreakpoint(r),s=window.matchMedia("(min-width:"+i+")");t.match(s,e),"function"==typeof s.addEventListener?s.addEventListener("change",t.__check):s.addListener(t.__check),t.mediaQueryLists.push({mql:s,drawer:n})})},e.destroy=function(){var t=this;this.mediaQueryLists&&this.mediaQueryLists.length&&this.mediaQueryLists.forEach(function(e){e.mql.removeListener(t.__check)}),this.mediaQueryLists=null},e.check=function(t){var e=this;void 0===t&&(t=null),this.mediaQueryLists&&this.mediaQueryLists.length&&(this.mediaQueryLists.forEach(function(n){if(!t||t.media==n.mql.media){var r=document.querySelector("[data-"+e.parent.settings.dataDrawer+'="'+n.drawer+'"]');r&&e.match(n.mql,r)}}),document.dispatchEvent(new CustomEvent(this.parent.settings.customEventPrefix+"breakpoint",{bubbles:!0})))},e.match=function(t,e){t.matches?this.parent.switchToDefault(e):this.parent.switchToModal(e)},e.getBreakpoint=function(t){var e=t;return this.parent.settings.breakpoints&&this.parent.settings.breakpoints[t]?e=this.parent.settings.breakpoints[t]:getComputedStyle(document.body).getPropertyValue(this.prefix+t)&&(e=getComputedStyle(document.body).getPropertyValue(this.prefix+t)),e},e.getVariablePrefix=function(){var t="--";return(t+=getComputedStyle(document.body).getPropertyValue("--vrembem-variable-prefix"))+"breakpoint-"},t}();function E(t){return"string"!=typeof t?t:document.querySelector("[data-"+this.settings.dataDrawer+'="'+t+'"]')}function x(t){return Promise.reject(new Error('Did not find drawer with key: "'+t+'"'))}var O=function(n){try{var r=this,i=r.getDrawer(n);return i?l(i,r.settings.stateOpened)?(r.working=!0,l(i,r.settings.classModal)&&(t(!1,r.settings.selectorInert),e(!1,r.settings.selectorOverflow)),Promise.resolve(h(i,r.settings)).then(function(){return r.stateSave(i),o(r),r.focusTrap.destroy(),i.dispatchEvent(new CustomEvent(r.settings.customEventPrefix+"closed",{detail:r,bubbles:!0})),r.working=!1,i})):Promise.resolve(i):Promise.resolve(x(n))}catch(t){return Promise.reject(t)}};function L(t){if(!this.working){var e=t.target.closest("[data-"+this.settings.dataToggle+"]");if(e){var n=e.getAttribute("data-"+this.settings.dataToggle);return this.memory.trigger=e,this.toggle(n),void t.preventDefault()}if(e=t.target.closest("[data-"+this.settings.dataOpen+"]")){var r=e.getAttribute("data-"+this.settings.dataOpen);return this.memory.trigger=e,this.open(r),void t.preventDefault()}if(e=t.target.closest("[data-"+this.settings.dataClose+"]")){var i=e.getAttribute("data-"+this.settings.dataClose);if(i)this.memory.trigger=e,this.close(i);else{var s=t.target.closest("[data-"+this.settings.dataDrawer+"]");s&&this.close(s)}t.preventDefault()}else t.target.hasAttribute("data-"+this.settings.dataDrawer)&&this.close(t.target)}}function k(t){if(!this.working&&"Escape"===t.key){var e=document.querySelector("."+this.settings.classModal+"."+this.settings.stateOpened);e&&this.close(e)}}var _=function(n){try{var r=this,i=r.getDrawer(n);if(!i)return Promise.resolve(x(n));if(l(i,r.settings.stateOpened))return s(i,r.settings),Promise.resolve(i);r.working=!0;var o=l(i,r.settings.classModal);return o&&e(!0,r.settings.selectorOverflow),Promise.resolve(f(i,r.settings)).then(function(){return r.stateSave(i),o&&(r.focusTrap.init(i),t(!0,r.settings.selectorInert)),s(i,r.settings),i.dispatchEvent(new CustomEvent(r.settings.customEventPrefix+"opened",{detail:r,bubbles:!0})),r.working=!1,i})}catch(t){return Promise.reject(t)}};function A(t,e){if(!e.stateSave)return P(e);var n=localStorage.getItem(e.stateKey)?JSON.parse(localStorage.getItem(e.stateKey)):{};return(t?[t]:document.querySelectorAll("[data-"+e.dataDrawer+"]")).forEach(function(t){if(!l(t,e.classModal)){var r=t.getAttribute("data-"+e.dataDrawer);n[r]=l(t,e.stateOpened)?e.stateOpened:e.stateClosed}}),localStorage.setItem(e.stateKey,JSON.stringify(n)),n}function P(t){return localStorage.getItem(t.stateKey)&&localStorage.removeItem(t.stateKey),{}}var C=function(n){try{var i=this,s=i.getDrawer(n);return s?l(s,i.settings.classModal)?(t(!1,i.settings.selectorInert),e(!1,i.settings.selectorOverflow),d(s,i.settings.classModal),i.focusTrap.destroy(),n=s.getAttribute("data-"+i.settings.dataDrawer),i.state[n]==i.settings.stateOpened&&(r(s,i.settings.stateOpened),d(s,i.settings.stateClosed)),s.dispatchEvent(new CustomEvent(i.settings.customEventPrefix+"toDefault",{bubbles:!0})),Promise.resolve(s)):Promise.resolve():Promise.resolve(x(n))}catch(t){return Promise.reject(t)}},D=function(t){try{var e=this,n=e.getDrawer(t);return n?l(n,e.settings.classModal)?Promise.resolve():(r(n,e.settings.classModal),r(n,e.settings.stateClosed),d(n,e.settings.stateOpened),n.dispatchEvent(new CustomEvent(e.settings.customEventPrefix+"toModal",{bubbles:!0})),Promise.resolve(n)):Promise.resolve(x(t))}catch(t){return Promise.reject(t)}},S=function(t){try{var e=this,n=e.getDrawer(t);if(!n)return Promise.resolve(x(t));var r=!l(n,e.settings.stateOpened);return Promise.resolve(r?e.open(n):e.close(n))}catch(t){return Promise.reject(t)}},T=/*#__PURE__*/function(){function t(t){this.defaults=b,this.settings=g({},this.defaults,t),this.working=!1,this.memory={},this.state={},this.focusTrap=new a,this.breakpoint=new w(this),this.__handlerClick=L.bind(this),this.__handlerKeydown=k.bind(this),this.settings.autoInit&&this.init()}var e=t.prototype;return e.init=function(t){void 0===t&&(t=null),t&&(this.settings=g({},this.settings,t)),this.stateSet(),this.settings.setTabindex&&this.setTabindex(),this.breakpoint.init(),this.settings.eventListeners&&this.initEventListeners()},e.destroy=function(){this.breakpoint.destroy(),this.memory={},this.state={},localStorage.removeItem(this.settings.stateKey),this.settings.eventListeners&&this.destroyEventListeners()},e.initEventListeners=function(){document.addEventListener("click",this.__handlerClick,!1),document.addEventListener("touchend",this.__handlerClick,!1),document.addEventListener("keydown",this.__handlerKeydown,!1)},e.destroyEventListeners=function(){document.removeEventListener("click",this.__handlerClick,!1),document.removeEventListener("touchend",this.__handlerClick,!1),document.removeEventListener("keydown",this.__handlerKeydown,!1)},e.getDrawer=function(t){return E.call(this,t)},e.setTabindex=function(){return n("\n [data-"+this.settings.dataDrawer+"]\n [data-"+this.settings.dataDialog+"]\n ")},e.stateSet=function(){this.state=function(t){if(!t.stateSave)return P(t);var e=localStorage.getItem(t.stateKey);if(!e||e&&0===Object.keys(JSON.parse(e)).length)return A(null,t);var n=JSON.parse(localStorage.getItem(t.stateKey));return Object.keys(n).forEach(function(e){var i=document.querySelector("[data-"+t.dataDrawer+'="'+e+'"]');i&&(n[e]==t.stateOpened?r(i,t.stateOpened):d(i,t.stateOpened))}),n}(this.settings)},e.stateSave=function(t){void 0===t&&(t=null),this.state=A(t,this.settings)},e.stateClear=function(){this.state=P(this.settings)},e.switchToDefault=function(t){return C.call(this,t)},e.switchToModal=function(t){return D.call(this,t)},e.toggle=function(t){return S.call(this,t)},e.open=function(t){return _.call(this,t)},e.close=function(t){return O.call(this,t)},t}(),j={autoInit:!1,dataModal:"modal",dataDialog:"modal-dialog",dataOpen:"modal-open",dataClose:"modal-close",dataFocus:"modal-focus",dataRequired:"modal-required",stateOpened:"is-opened",stateOpening:"is-opening",stateClosing:"is-closing",stateClosed:"is-closed",selectorInert:null,selectorOverflow:"body",customEventPrefix:"modal:",eventListeners:!0,moveModals:{ref:null,type:null},setTabindex:!0,transition:!0},M=function(n){void 0===n&&(n=!0);try{var r=this,i=document.querySelector("[data-"+r.settings.dataModal+"]."+r.settings.stateOpened);return i?(r.working=!0,t(!1,r.settings.selectorInert),e(!1,r.settings.selectorOverflow),Promise.resolve(h(i,r.settings)).then(function(){return n&&o(r),r.focusTrap.destroy(),i.dispatchEvent(new CustomEvent(r.settings.customEventPrefix+"closed",{detail:r,bubbles:!0})),r.working=!1,i})):Promise.resolve(i)}catch(t){return Promise.reject(t)}},q=function(t){try{var e,n=function(n){return e?n:t.target.closest("[data-"+r.settings.dataClose+"]")?(t.preventDefault(),void r.close()):void(t.target.hasAttribute("data-"+r.settings.dataModal)&&!t.target.hasAttribute("data-"+r.settings.dataRequired)&&r.close())},r=this;if(r.working)return Promise.resolve();var i=t.target.closest("[data-"+r.settings.dataOpen+"]"),s=function(){if(i){t.preventDefault();var n=i.getAttribute("data-"+r.settings.dataOpen),s=t.target.closest("[data-"+r.settings.dataModal+"]");return s||(r.memory.trigger=i),Promise.resolve(r.close(!s)).then(function(){r.open(n),e=1})}}();return Promise.resolve(s&&s.then?s.then(n):n(s))}catch(t){return Promise.reject(t)}};function I(t){if(!this.working&&"Escape"===t.key){var e=document.querySelector("[data-"+this.settings.dataModal+"]."+this.settings.stateOpened);e&&!e.hasAttribute("data-"+this.settings.dataRequired)&&this.close()}}function F(t){return"string"!=typeof t?t:document.querySelector("[data-"+this.settings.dataModal+'="'+t+'"]')}function B(t,e){void 0===t&&(t=this.settings.moveModals.type),void 0===e&&(e=this.settings.moveModals.ref);var n=document.querySelectorAll("[data-"+this.settings.dataModal+"]");n.length&&u(n,t,e)}function V(){var n=this;document.querySelectorAll("[data-"+this.settings.dataModal+"]").forEach(function(i){i.classList.contains(n.settings.stateOpened)&&(t(!1,n.settings.selectorInert),e(!1,n.settings.selectorOverflow),o(n),n.focusTrap.destroy()),d(i,n.settings.stateOpened,n.settings.stateOpening,n.settings.stateClosing),r(i,n.settings.stateClosed)})}var K=function(n){try{var r=this,i=F.call(r,n);return i?l(i,r.settings.stateClosed)?(r.working=!0,e(!0,r.settings.selectorOverflow),Promise.resolve(f(i,r.settings)).then(function(){return r.focusTrap.init(i),s(i,r.settings),t(!0,r.settings.selectorInert),i.dispatchEvent(new CustomEvent(r.settings.customEventPrefix+"opened",{detail:r,bubbles:!0})),r.working=!1,i})):Promise.resolve(i):Promise.resolve(Promise.reject(new Error('Did not find modal with key: "'+n+'"')))}catch(t){return Promise.reject(t)}},R=/*#__PURE__*/function(){function t(t){this.defaults=j,this.settings=g({},this.defaults,t),this.working=!1,this.memory={},this.focusTrap=new a,this.__handlerClick=q.bind(this),this.__handlerKeydown=I.bind(this),this.settings.autoInit&&this.init()}var e=t.prototype;return e.init=function(t){void 0===t&&(t=null),t&&(this.settings=g({},this.settings,t)),this.moveModals(),this.setInitialState(),this.settings.setTabindex&&this.setTabindex(),this.settings.eventListeners&&this.initEventListeners()},e.destroy=function(){this.memory={},this.settings.eventListeners&&this.destroyEventListeners()},e.initEventListeners=function(){document.addEventListener("click",this.__handlerClick,!1),document.addEventListener("touchend",this.__handlerClick,!1),document.addEventListener("keydown",this.__handlerKeydown,!1)},e.destroyEventListeners=function(){document.removeEventListener("click",this.__handlerClick,!1),document.removeEventListener("touchend",this.__handlerClick,!1),document.removeEventListener("keydown",this.__handlerKeydown,!1)},e.getModal=function(t){return F.call(this,t)},e.setTabindex=function(){return n("\n [data-"+this.settings.dataModal+"]\n [data-"+this.settings.dataDialog+"]\n ")},e.setInitialState=function(){return V.call(this)},e.moveModals=function(t,e){return B.call(this,t,e)},e.open=function(t){return K.call(this,t)},e.close=function(t){return M.call(this,t)},t}(),W=/*#__PURE__*/function(){function t(){this.collection=[]}var e=t.prototype;return e.register=function(t){return this.deregister(t),this.collection.push(t),this.collection},e.deregister=function(t){var e=this.collection.findIndex(function(e){return e===t});if(e>=0){var n=this.collection[e];Object.getOwnPropertyNames(n).forEach(function(t){delete n[t]}),this.collection.splice(e,1)}return this.collection},e.registerCollection=function(t){var e=this;return t.forEach(function(t){e.register(t)}),this.collection},e.deregisterCollection=function(){for(;this.collection.length>0;)this.deregister(this.collection[0]);return this.collection},e.get=function(t,e){return void 0===e&&(e="id"),this.collection.find(function(n){return n[e]===t})||null},t}(),H={autoInit:!1,selectorPopover:".popover",selectorArrow:".popover__arrow",stateActive:"is-active",eventListeners:!0,eventType:"click",placement:"bottom"};function N(t){return t.target.classList.remove(this.settings.stateActive),t.trigger.setAttribute("aria-expanded","false"),t.popper.setOptions({modifiers:[{name:"eventListeners",enabled:!1}]}),t.state="closed",t.trigger===this.memory.trigger&&(this.memory.trigger=null),t}function Q(){return this.collection.forEach(function(t){"opened"===t.state&&t.close()}),this.collection}function z(t){"opened"==t.state&&setTimeout(function(){var e=t.target.closest(":hover")===t.target||t.trigger.closest(":hover")===t.trigger,n=document.activeElement.closest("#"+t.id+', [aria-controls="'+t.id+'"]');return e||n||t.close(),t},1)}function U(t){t.target.classList.contains(this.settings.stateActive)?t.close():(this.memory.trigger=t.trigger,t.open(),X.call(this,t))}function J(t){var e=this;switch(t.key){case"Escape":return this.memory.trigger&&this.memory.trigger.focus(),void Q.call(this);case"Tab":return void this.collection.forEach(function(t){z.call(e,t)});default:return}}function X(t){var e=this;document.addEventListener("click",function n(r){r.target.closest("#"+t.id+', [aria-controls="'+t.id+'"]')?t.target&&!t.target.classList.contains(e.settings.stateActive)&&this.removeEventListener("click",n):(t.target&&t.target.classList.contains(e.settings.stateActive)&&t.close(),this.removeEventListener("click",n))})}function Y(t,e){var n=getComputedStyle(t),r={placement:e.placement,event:e.eventType,offset:0,"overflow-padding":0,"flip-padding":0,"arrow-element":e.selectorArrow,"arrow-padding":0};for(var i in r){var s=getComputedStyle(document.body).getPropertyValue("--vrembem-variable-prefix"),o=n.getPropertyValue("--"+s+"popover-"+i).trim();o&&(r[i]=o)}return r}function Z(t){var e,n="string"==typeof t?t.trim().split(" "):[t];switch(n.forEach(function(t,e){n[e]=parseInt(t,10)}),n.length){case 1:e=n[0];break;case 2:e={top:n[0],right:n[1],bottom:n[0],left:n[1]};break;case 3:e={top:n[0],right:n[1],bottom:n[2],left:n[1]};break;case 4:e={top:n[0],right:n[1],bottom:n[2],left:n[3]};break;default:e=!1}return e}function G(t){return"string"==typeof t?t:"function"==typeof t.hasAttribute?t.hasAttribute("aria-controls")?t.getAttribute("aria-controls"):!!t.closest(this.settings.selectorPopover)&&t.id:!!t.id&&t.id}function $(t){var e=G.call(this,t);if(e){var n=document.querySelector('[aria-controls="'+e+'"]'),r=document.querySelector("#"+e);return n||r?n?r||console.error("No popover associated with the provided popover trigger:",n):console.error("No popover trigger associated with the provided popover:",r):console.error("No popover elements found using the provided ID:",e),!(!n||!r)&&{trigger:n,target:r}}return console.error("Could not resolve the popover ID:",t),!1}var tt="top",et="bottom",nt="right",rt="left",it=[tt,et,nt,rt],st=/*#__PURE__*/it.reduce(function(t,e){return t.concat([e+"-start",e+"-end"])},[]),ot=/*#__PURE__*/[].concat(it,["auto"]).reduce(function(t,e){return t.concat([e,e+"-start",e+"-end"])},[]),at=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function ct(t){return t?(t.nodeName||"").toLowerCase():null}function lt(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function ut(t){return t instanceof lt(t).Element||t instanceof Element}function dt(t){return t instanceof lt(t).HTMLElement||t instanceof HTMLElement}function ft(t){return"undefined"!=typeof ShadowRoot&&(t instanceof lt(t).ShadowRoot||t instanceof ShadowRoot)}function ht(t){return t.split("-")[0]}var pt=Math.max,gt=Math.min,vt=Math.round;function mt(t,e){void 0===e&&(e=!1);var n=t.getBoundingClientRect(),r=1,i=1;if(dt(t)&&e){var s=t.offsetHeight,o=t.offsetWidth;o>0&&(r=vt(n.width)/o||1),s>0&&(i=vt(n.height)/s||1)}return{width:n.width/r,height:n.height/i,top:n.top/i,right:n.right/r,bottom:n.bottom/i,left:n.left/r,x:n.left/r,y:n.top/i}}function yt(t){var e=mt(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function bt(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&ft(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function wt(t){return lt(t).getComputedStyle(t)}function Et(t){return["table","td","th"].indexOf(ct(t))>=0}function xt(t){return((ut(t)?t.ownerDocument:t.document)||window.document).documentElement}function Ot(t){return"html"===ct(t)?t:t.assignedSlot||t.parentNode||(ft(t)?t.host:null)||xt(t)}function Lt(t){return dt(t)&&"fixed"!==wt(t).position?t.offsetParent:null}function kt(t){for(var e=lt(t),n=Lt(t);n&&Et(n)&&"static"===wt(n).position;)n=Lt(n);return n&&("html"===ct(n)||"body"===ct(n)&&"static"===wt(n).position)?e:n||function(t){var e=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&dt(t)&&"fixed"===wt(t).position)return null;for(var n=Ot(t);dt(n)&&["html","body"].indexOf(ct(n))<0;){var r=wt(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||e&&"filter"===r.willChange||e&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(t)||e}function _t(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function At(t,e,n){return pt(t,gt(e,n))}function Pt(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function Ct(t,e){return e.reduce(function(e,n){return e[n]=t,e},{})}function Dt(t){return t.split("-")[1]}var St={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Tt(t){var e,n=t.popper,r=t.popperRect,i=t.placement,s=t.variation,o=t.offsets,a=t.position,c=t.gpuAcceleration,l=t.adaptive,u=t.roundOffsets,d=t.isFixed,f=o.x,h=void 0===f?0:f,p=o.y,g=void 0===p?0:p,v="function"==typeof u?u({x:h,y:g}):{x:h,y:g};h=v.x,g=v.y;var m=o.hasOwnProperty("x"),y=o.hasOwnProperty("y"),b=rt,w=tt,E=window;if(l){var x=kt(n),O="clientHeight",L="clientWidth";x===lt(n)&&"static"!==wt(x=xt(n)).position&&"absolute"===a&&(O="scrollHeight",L="scrollWidth"),x=x,(i===tt||(i===rt||i===nt)&&"end"===s)&&(w=et,g-=(d&&E.visualViewport?E.visualViewport.height:x[O])-r.height,g*=c?1:-1),i!==rt&&(i!==tt&&i!==et||"end"!==s)||(b=nt,h-=(d&&E.visualViewport?E.visualViewport.width:x[L])-r.width,h*=c?1:-1)}var k,_=Object.assign({position:a},l&&St),A=!0===u?function(t){var e=t.y,n=window.devicePixelRatio||1;return{x:vt(t.x*n)/n||0,y:vt(e*n)/n||0}}({x:h,y:g}):{x:h,y:g};return h=A.x,g=A.y,Object.assign({},_,c?((k={})[w]=y?"0":"",k[b]=m?"0":"",k.transform=(E.devicePixelRatio||1)<=1?"translate("+h+"px, "+g+"px)":"translate3d("+h+"px, "+g+"px, 0)",k):((e={})[w]=y?g+"px":"",e[b]=m?h+"px":"",e.transform="",e))}var jt={passive:!0},Mt={left:"right",right:"left",bottom:"top",top:"bottom"};function qt(t){return t.replace(/left|right|bottom|top/g,function(t){return Mt[t]})}var It={start:"end",end:"start"};function Ft(t){return t.replace(/start|end/g,function(t){return It[t]})}function Bt(t){var e=lt(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Vt(t){return mt(xt(t)).left+Bt(t).scrollLeft}function Kt(t){var e=wt(t);return/auto|scroll|overlay|hidden/.test(e.overflow+e.overflowY+e.overflowX)}function Rt(t){return["html","body","#document"].indexOf(ct(t))>=0?t.ownerDocument.body:dt(t)&&Kt(t)?t:Rt(Ot(t))}function Wt(t,e){var n;void 0===e&&(e=[]);var r=Rt(t),i=r===(null==(n=t.ownerDocument)?void 0:n.body),s=lt(r),o=i?[s].concat(s.visualViewport||[],Kt(r)?r:[]):r,a=e.concat(o);return i?a:a.concat(Wt(Ot(o)))}function Ht(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Nt(t,e){return"viewport"===e?Ht(function(t){var e=lt(t),n=xt(t),r=e.visualViewport,i=n.clientWidth,s=n.clientHeight,o=0,a=0;return r&&(i=r.width,s=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(o=r.offsetLeft,a=r.offsetTop)),{width:i,height:s,x:o+Vt(t),y:a}}(t)):ut(e)?function(t){var e=mt(t);return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e}(e):Ht(function(t){var e,n=xt(t),r=Bt(t),i=null==(e=t.ownerDocument)?void 0:e.body,s=pt(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=pt(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-r.scrollLeft+Vt(t),c=-r.scrollTop;return"rtl"===wt(i||n).direction&&(a+=pt(n.clientWidth,i?i.clientWidth:0)-s),{width:s,height:o,x:a,y:c}}(xt(t)))}function Qt(t){var e,n=t.reference,r=t.element,i=t.placement,s=i?ht(i):null,o=i?Dt(i):null,a=n.x+n.width/2-r.width/2,c=n.y+n.height/2-r.height/2;switch(s){case tt:e={x:a,y:n.y-r.height};break;case et:e={x:a,y:n.y+n.height};break;case nt:e={x:n.x+n.width,y:c};break;case rt:e={x:n.x-r.width,y:c};break;default:e={x:n.x,y:n.y}}var l=s?_t(s):null;if(null!=l){var u="y"===l?"height":"width";switch(o){case"start":e[l]=e[l]-(n[u]/2-r[u]/2);break;case"end":e[l]=e[l]+(n[u]/2-r[u]/2)}}return e}function zt(t,e){void 0===e&&(e={});var n=e.placement,r=void 0===n?t.placement:n,i=e.boundary,s=void 0===i?"clippingParents":i,o=e.rootBoundary,a=void 0===o?"viewport":o,c=e.elementContext,l=void 0===c?"popper":c,u=e.altBoundary,d=void 0!==u&&u,f=e.padding,h=void 0===f?0:f,p=Pt("number"!=typeof h?h:Ct(h,it)),g=t.rects.popper,v=t.elements[d?"popper"===l?"reference":"popper":l],m=function(t,e,n){var r="clippingParents"===e?function(t){var e=Wt(Ot(t)),n=["absolute","fixed"].indexOf(wt(t).position)>=0&&dt(t)?kt(t):t;return ut(n)?e.filter(function(t){return ut(t)&&bt(t,n)&&"body"!==ct(t)}):[]}(t):[].concat(e),i=[].concat(r,[n]),s=i.reduce(function(e,n){var r=Nt(t,n);return e.top=pt(r.top,e.top),e.right=gt(r.right,e.right),e.bottom=gt(r.bottom,e.bottom),e.left=pt(r.left,e.left),e},Nt(t,i[0]));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}(ut(v)?v:v.contextElement||xt(t.elements.popper),s,a),y=mt(t.elements.reference),b=Qt({reference:y,element:g,strategy:"absolute",placement:r}),w=Ht(Object.assign({},g,b)),E="popper"===l?w:y,x={top:m.top-E.top+p.top,bottom:E.bottom-m.bottom+p.bottom,left:m.left-E.left+p.left,right:E.right-m.right+p.right},O=t.modifiersData.offset;if("popper"===l&&O){var L=O[r];Object.keys(x).forEach(function(t){var e=[nt,et].indexOf(t)>=0?1:-1,n=[tt,et].indexOf(t)>=0?"y":"x";x[t]+=L[n]*e})}return x}function Ut(t,e){void 0===e&&(e={});var n=e.boundary,r=e.rootBoundary,i=e.padding,s=e.flipVariations,o=e.allowedAutoPlacements,a=void 0===o?ot:o,c=Dt(e.placement),l=c?s?st:st.filter(function(t){return Dt(t)===c}):it,u=l.filter(function(t){return a.indexOf(t)>=0});0===u.length&&(u=l);var d=u.reduce(function(e,s){return e[s]=zt(t,{placement:s,boundary:n,rootBoundary:r,padding:i})[ht(s)],e},{});return Object.keys(d).sort(function(t,e){return d[t]-d[e]})}function Jt(t,e,n){return void 0===n&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function Xt(t){return[tt,nt,et,rt].some(function(e){return t[e]>=0})}function Yt(t,e,n){void 0===n&&(n=!1);var r,i,s=dt(e),o=dt(e)&&function(t){var e=t.getBoundingClientRect(),n=vt(e.width)/t.offsetWidth||1,r=vt(e.height)/t.offsetHeight||1;return 1!==n||1!==r}(e),a=xt(e),c=mt(t,o),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(s||!s&&!n)&&(("body"!==ct(e)||Kt(a))&&(l=(r=e)!==lt(r)&&dt(r)?{scrollLeft:(i=r).scrollLeft,scrollTop:i.scrollTop}:Bt(r)),dt(e)?((u=mt(e,!0)).x+=e.clientLeft,u.y+=e.clientTop):a&&(u.x=Vt(a))),{x:c.left+l.scrollLeft-u.x,y:c.top+l.scrollTop-u.y,width:c.width,height:c.height}}function Zt(t){var e=new Map,n=new Set,r=[];function i(t){n.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach(function(t){if(!n.has(t)){var r=e.get(t);r&&i(r)}}),r.push(t)}return t.forEach(function(t){e.set(t.name,t)}),t.forEach(function(t){n.has(t.name)||i(t)}),r}var Gt={placement:"bottom",modifiers:[],strategy:"absolute"};function $t(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some(function(t){return!(t&&"function"==typeof t.getBoundingClientRect)})}function te(t){void 0===t&&(t={});var e=t.defaultModifiers,n=void 0===e?[]:e,r=t.defaultOptions,i=void 0===r?Gt:r;return function(t,e,r){void 0===r&&(r=i);var s,o,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},Gt,i),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},c=[],l=!1,u={state:a,setOptions:function(r){var s="function"==typeof r?r(a.options):r;d(),a.options=Object.assign({},i,a.options,s),a.scrollParents={reference:ut(t)?Wt(t):t.contextElement?Wt(t.contextElement):[],popper:Wt(e)};var o,l,f=function(t){var e=Zt(t);return at.reduce(function(t,n){return t.concat(e.filter(function(t){return t.phase===n}))},[])}((o=[].concat(n,a.options.modifiers),l=o.reduce(function(t,e){var n=t[e.name];return t[e.name]=n?Object.assign({},n,e,{options:Object.assign({},n.options,e.options),data:Object.assign({},n.data,e.data)}):e,t},{}),Object.keys(l).map(function(t){return l[t]})));return a.orderedModifiers=f.filter(function(t){return t.enabled}),a.orderedModifiers.forEach(function(t){var e=t.options,n=t.effect;if("function"==typeof n){var r=n({state:a,name:t.name,instance:u,options:void 0===e?{}:e});c.push(r||function(){})}}),u.update()},forceUpdate:function(){if(!l){var t=a.elements,e=t.reference,n=t.popper;if($t(e,n)){a.rects={reference:Yt(e,kt(n),"fixed"===a.options.strategy),popper:yt(n)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach(function(t){return a.modifiersData[t.name]=Object.assign({},t.data)});for(var r=0;r<a.orderedModifiers.length;r++)if(!0!==a.reset){var i=a.orderedModifiers[r],s=i.fn,o=i.options;"function"==typeof s&&(a=s({state:a,options:void 0===o?{}:o,name:i.name,instance:u})||a)}else a.reset=!1,r=-1}}},update:(s=function(){return new Promise(function(t){u.forceUpdate(),t(a)})},function(){return o||(o=new Promise(function(t){Promise.resolve().then(function(){o=void 0,t(s())})})),o}),destroy:function(){d(),l=!0}};if(!$t(t,e))return u;function d(){c.forEach(function(t){return t()}),c=[]}return u.setOptions(r).then(function(t){!l&&r.onFirstUpdate&&r.onFirstUpdate(t)}),u}}var ee=/*#__PURE__*/te({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,n=t.instance,r=t.options,i=r.scroll,s=void 0===i||i,o=r.resize,a=void 0===o||o,c=lt(e.elements.popper),l=[].concat(e.scrollParents.reference,e.scrollParents.popper);return s&&l.forEach(function(t){t.addEventListener("scroll",n.update,jt)}),a&&c.addEventListener("resize",n.update,jt),function(){s&&l.forEach(function(t){t.removeEventListener("scroll",n.update,jt)}),a&&c.removeEventListener("resize",n.update,jt)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state;e.modifiersData[t.name]=Qt({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,n=t.options,r=n.gpuAcceleration,i=void 0===r||r,s=n.adaptive,o=void 0===s||s,a=n.roundOffsets,c=void 0===a||a,l={placement:ht(e.placement),variation:Dt(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:i,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,Tt(Object.assign({},l,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:o,roundOffsets:c})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,Tt(Object.assign({},l,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach(function(t){var n=e.styles[t]||{},r=e.attributes[t]||{},i=e.elements[t];dt(i)&&ct(i)&&(Object.assign(i.style,n),Object.keys(r).forEach(function(t){var e=r[t];!1===e?i.removeAttribute(t):i.setAttribute(t,!0===e?"":e)}))})},effect:function(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(t){var r=e.elements[t],i=e.attributes[t]||{},s=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:n[t]).reduce(function(t,e){return t[e]="",t},{});dt(r)&&ct(r)&&(Object.assign(r.style,s),Object.keys(i).forEach(function(t){r.removeAttribute(t)}))})}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,n=t.name,r=t.options.offset,i=void 0===r?[0,0]:r,s=ot.reduce(function(t,n){return t[n]=function(t,e,n){var r=ht(t),i=[rt,tt].indexOf(r)>=0?-1:1,s="function"==typeof n?n(Object.assign({},e,{placement:t})):n,o=s[0],a=s[1];return o=o||0,a=(a||0)*i,[rt,nt].indexOf(r)>=0?{x:a,y:o}:{x:o,y:a}}(n,e.rects,i),t},{}),o=s[e.placement],a=o.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=o.x,e.modifiersData.popperOffsets.y+=a),e.modifiersData[n]=s}},{name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var i=n.mainAxis,s=void 0===i||i,o=n.altAxis,a=void 0===o||o,c=n.fallbackPlacements,l=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,h=n.flipVariations,p=void 0===h||h,g=n.allowedAutoPlacements,v=e.options.placement,m=ht(v),y=c||(m!==v&&p?function(t){if("auto"===ht(t))return[];var e=qt(t);return[Ft(t),e,Ft(e)]}(v):[qt(v)]),b=[v].concat(y).reduce(function(t,n){return t.concat("auto"===ht(n)?Ut(e,{placement:n,boundary:u,rootBoundary:d,padding:l,flipVariations:p,allowedAutoPlacements:g}):n)},[]),w=e.rects.reference,E=e.rects.popper,x=new Map,O=!0,L=b[0],k=0;k<b.length;k++){var _=b[k],A=ht(_),P="start"===Dt(_),C=[tt,et].indexOf(A)>=0,D=C?"width":"height",S=zt(e,{placement:_,boundary:u,rootBoundary:d,altBoundary:f,padding:l}),T=C?P?nt:rt:P?et:tt;w[D]>E[D]&&(T=qt(T));var j=qt(T),M=[];if(s&&M.push(S[A]<=0),a&&M.push(S[T]<=0,S[j]<=0),M.every(function(t){return t})){L=_,O=!1;break}x.set(_,M)}if(O)for(var q=function(t){var e=b.find(function(e){var n=x.get(e);if(n)return n.slice(0,t).every(function(t){return t})});if(e)return L=e,"break"},I=p?3:1;I>0&&"break"!==q(I);I--);e.placement!==L&&(e.modifiersData[r]._skip=!0,e.placement=L,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,r=t.name,i=n.mainAxis,s=void 0===i||i,o=n.altAxis,a=void 0!==o&&o,c=n.tether,l=void 0===c||c,u=n.tetherOffset,d=void 0===u?0:u,f=zt(e,{boundary:n.boundary,rootBoundary:n.rootBoundary,padding:n.padding,altBoundary:n.altBoundary}),h=ht(e.placement),p=Dt(e.placement),g=!p,v=_t(h),m="x"===v?"y":"x",y=e.modifiersData.popperOffsets,b=e.rects.reference,w=e.rects.popper,E="function"==typeof d?d(Object.assign({},e.rects,{placement:e.placement})):d,x="number"==typeof E?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),O=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,L={x:0,y:0};if(y){if(s){var k,_="y"===v?tt:rt,A="y"===v?et:nt,P="y"===v?"height":"width",C=y[v],D=C+f[_],S=C-f[A],T=l?-w[P]/2:0,j="start"===p?b[P]:w[P],M="start"===p?-w[P]:-b[P],q=e.elements.arrow,I=l&&q?yt(q):{width:0,height:0},F=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},B=F[_],V=F[A],K=At(0,b[P],I[P]),R=g?b[P]/2-T-K-B-x.mainAxis:j-K-B-x.mainAxis,W=g?-b[P]/2+T+K+V+x.mainAxis:M+K+V+x.mainAxis,H=e.elements.arrow&&kt(e.elements.arrow),N=null!=(k=null==O?void 0:O[v])?k:0,Q=C+W-N,z=At(l?gt(D,C+R-N-(H?"y"===v?H.clientTop||0:H.clientLeft||0:0)):D,C,l?pt(S,Q):S);y[v]=z,L[v]=z-C}if(a){var U,J=y[m],X="y"===m?"height":"width",Y=J+f["x"===v?tt:rt],Z=J-f["x"===v?et:nt],G=-1!==[tt,rt].indexOf(h),$=null!=(U=null==O?void 0:O[m])?U:0,it=G?Y:J-b[X]-w[X]-$+x.altAxis,st=G?J+b[X]+w[X]-$-x.altAxis:Z,ot=l&&G?function(t,e,n){var r=At(t,e,n);return r>n?n:r}(it,J,st):At(l?it:Y,J,l?st:Z);y[m]=ot,L[m]=ot-J}e.modifiersData[r]=L}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,n=t.state,r=t.name,i=t.options,s=n.elements.arrow,o=n.modifiersData.popperOffsets,a=ht(n.placement),c=_t(a),l=[rt,nt].indexOf(a)>=0?"height":"width";if(s&&o){var u=function(t,e){return Pt("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:Ct(t,it))}(i.padding,n),d=yt(s),f="y"===c?tt:rt,h="y"===c?et:nt,p=n.rects.reference[l]+n.rects.reference[c]-o[c]-n.rects.popper[l],g=o[c]-n.rects.reference[c],v=kt(s),m=v?"y"===c?v.clientHeight||0:v.clientWidth||0:0,y=m/2-d[l]/2+(p/2-g/2),b=At(u[f],y,m-d[l]-u[h]);n.modifiersData[r]=((e={})[c]=b,e.centerOffset=b-y,e)}},effect:function(t){var e=t.state,n=t.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=e.elements.popper.querySelector(r)))&&bt(e.elements.popper,r)&&(e.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,n=t.name,r=e.rects.reference,i=e.rects.popper,s=e.modifiersData.preventOverflow,o=zt(e,{elementContext:"reference"}),a=zt(e,{altBoundary:!0}),c=Jt(o,r),l=Jt(a,i,s),u=Xt(c),d=Xt(l);e.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]});function ne(t){var e;return t.target.classList.add(this.settings.stateActive),t.trigger.setAttribute("aria-expanded","true"),t.config=Y(t.target,this.settings),t.popper.setOptions({placement:t.config.placement,modifiers:[{name:"eventListeners",enabled:!0}].concat((e=t.config,[{name:"offset",options:{offset:[0,parseInt(e.offset,10)]}},{name:"preventOverflow",options:{padding:Z(e["overflow-padding"])}},{name:"flip",options:{padding:Z(e["flip-padding"])}},{name:"arrow",options:{element:e["arrow-element"],padding:Z(e["arrow-padding"])}}]))}),t.popper.update(),t.state="opened",t}function re(t,e){this.deregister(e.id);var n=ee(t,e),r=this,i={open:function(){ne.call(r,this)},close:function(){N.call(r,this)},deregister:function(){ie.call(r,this)}},s=g({id:e.id,state:"closed",trigger:t,target:e,popper:n,config:Y(e,this.settings)},i);return se.call(this,s),s.target.classList.contains(this.settings.stateActive)?(s.open(),X.call(this,s)):s.close(),this.collection.push(s),s}function ie(t){var e=this.collection.findIndex(function(e){return e.id===t.id});if(e>=0){var n=this.collection[e];"opened"===n.state&&n.close(),n.popper.destroy(),oe(n),Object.getOwnPropertyNames(n).forEach(function(t){delete n[t]}),this.collection.splice(e,1)}return this.collection}function se(t){return t.__eventListeners||("hover"===t.config.event?(t.__eventListeners=[{el:["trigger"],type:["mouseenter","focus"],listener:ne.bind(this,t)},{el:["trigger","target"],type:["mouseleave","focusout"],listener:z.bind(this,t)}],t.__eventListeners.forEach(function(e){e.el.forEach(function(n){e.type.forEach(function(r){t[n].addEventListener(r,e.listener,!1)})})})):(t.__eventListeners=[{el:["trigger"],type:["click"],listener:U.bind(this,t)}],t.__eventListeners.forEach(function(e){e.el.forEach(function(n){e.type.forEach(function(r){t[n].addEventListener(r,e.listener,!1)})})}))),t}function oe(t){return t.__eventListeners&&(t.__eventListeners.forEach(function(e){e.el.forEach(function(n){e.type.forEach(function(r){t[n].removeEventListener(r,e.listener,!1)})})}),delete t.__eventListeners),t}var ae=/*#__PURE__*/function(t){var e,n;function r(e){var n;return(n=t.call(this)||this).defaults=H,n.settings=g({},n.defaults,e),n.memory={trigger:null},n.__handlerKeydown=J.bind(function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(n)),n.settings.autoInit&&n.init(),n}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,v(e,n);var i=r.prototype;return i.init=function(t){void 0===t&&(t=null),t&&(this.settings=g({},this.settings,t));var e=document.querySelectorAll(this.settings.selectorPopover);this.registerCollection(e),this.settings.eventListeners&&this.initEventListeners(!1)},i.destroy=function(){this.deregisterCollection(),this.settings.eventListeners&&this.destroyEventListeners(!1)},i.initEventListeners=function(t){var e=this;void 0===t&&(t=!0),t&&this.collection.forEach(function(t){se.call(e,t)}),document.addEventListener("keydown",this.__handlerKeydown,!1)},i.destroyEventListeners=function(t){void 0===t&&(t=!0),t&&this.collection.forEach(function(t){oe(t)}),document.removeEventListener("keydown",this.__handlerKeydown,!1)},i.register=function(t){var e=$.call(this,t);return!!e&&re.call(this,e.trigger,e.target)},i.deregister=function(t){var e=this.get(G(t));return!!e&&ie.call(this,e)},i.open=function(t){var e=this.get(t);return!!e&&e.open()},i.close=function(t){if(t){var e=this.get(t);return!!e&&e.close()}return Q.call(this)},r}(W);exports.Checkbox=y,exports.Drawer=T,exports.Modal=R,exports.Popover=ae,exports.core=p;
|
|
1
|
+
var t=function(t,e){e&&document.querySelectorAll(e).forEach(function(e){t?(e.inert=!0,e.setAttribute("aria-hidden",!0)):(e.inert=null,e.removeAttribute("aria-hidden"))})},e=function(t,e){e&&document.querySelectorAll(e).forEach(function(e){t?e.style.overflow="hidden":e.style.removeProperty("overflow")})},n=function(t){t&&document.querySelectorAll(t).forEach(function(t){t.setAttribute("tabindex","-1")})},r=function(t){var e=arguments;(t=t.forEach?t:[t]).forEach(function(t){var n;(n=t.classList).add.apply(n,[].slice.call(e,1))})};function i(t,e,n){if(!t.s){if(n instanceof o){if(!n.s)return void(n.o=i.bind(null,t,e));1&e&&(e=n.s),n=n.v}if(n&&n.then)return void n.then(i.bind(null,t,e),i.bind(null,t,2));t.s=e,t.v=n;var r=t.o;r&&r(t)}}var o=/*#__PURE__*/function(){function t(){}return t.prototype.then=function(e,n){var r=new t,o=this.s;if(o){var s=1&o?e:n;if(s){try{i(r,1,s(this.v))}catch(t){i(r,2,t)}return r}return this}return this.o=function(t){try{var o=t.v;1&t.s?i(r,1,e?e(o):o):n?i(r,1,n(o)):i(r,2,o)}catch(t){i(r,2,t)}},r},t}();function s(t){return t instanceof o&&1&t.s}var a=/*#__PURE__*/function(){function t(){this.collection=[]}var e=t.prototype;return e.register=function(t){try{var e=this;return Promise.resolve(e.deregister(t)).then(function(){return e.collection.push(t),e.collection})}catch(t){return Promise.reject(t)}},e.deregister=function(t){try{var e=this,n=e.collection.findIndex(function(e){return e===t});if(n>=0){var r=e.collection[n];Object.getOwnPropertyNames(r).forEach(function(t){delete r[t]}),e.collection.splice(n,1)}return Promise.resolve(e.collection)}catch(t){return Promise.reject(t)}},e.registerCollection=function(t){try{var e=this;return Promise.resolve(Promise.all(Array.from(t,function(t){e.register(t)}))).then(function(){return e.collection})}catch(t){return Promise.reject(t)}},e.deregisterCollection=function(){try{var t=function(){return e.collection},e=this,n=function(t,e,n){for(var r;;){var a=t();if(s(a)&&(a=a.v),!a)return c;if(a.then){r=0;break}var c=n();if(c&&c.then){if(!s(c)){r=1;break}c=c.s}}var l=new o,u=i.bind(null,l,2);return(0===r?a.then(f):1===r?c.then(d):(void 0).then(function(){(a=t())?a.then?a.then(f).then(void 0,u):f(a):i(l,1,c)})).then(void 0,u),l;function d(e){c=e;do{if(!(a=t())||s(a)&&!a.v)return void i(l,1,c);if(a.then)return void a.then(f).then(void 0,u);s(c=n())&&(c=c.v)}while(!c||!c.then);c.then(d).then(void 0,u)}function f(t){t?(c=n())&&c.then?c.then(d).then(void 0,u):d(c):i(l,1,c)}}(function(){return e.collection.length>0},0,function(){return Promise.resolve(e.deregister(e.collection[0])).then(function(){})});return Promise.resolve(n&&n.then?n.then(t):t())}catch(t){return Promise.reject(t)}},e.get=function(t,e){return void 0===e&&(e="id"),this.collection.find(function(n){return n[e]===t})},t}(),c=['a[href]:not([tabindex^="-"])','area[href]:not([tabindex^="-"])','input:not([type="hidden"]):not([type="radio"]):not([disabled]):not([tabindex^="-"])','input[type="radio"]:not([disabled]):not([tabindex^="-"])','select:not([disabled]):not([tabindex^="-"])','textarea:not([disabled]):not([tabindex^="-"])','button:not([disabled]):not([tabindex^="-"])','iframe:not([tabindex^="-"])','audio[controls]:not([tabindex^="-"])','video[controls]:not([tabindex^="-"])','[contenteditable]:not([tabindex^="-"])','[tabindex]:not([tabindex^="-"])'],l=function(t,e){var n=t.querySelector(e.selectorFocus);if(n)n.focus();else{var r=t.querySelector('[tabindex="-1"]');r&&r.focus()}},u=function(t){t&&t.memory&&t.memory.trigger&&(t.memory.trigger.focus(),t.memory.trigger=null)},d=/*#__PURE__*/function(){function t(){this.target=null,this.__handlerFocusTrap=this.handlerFocusTrap.bind(this)}var e=t.prototype;return e.init=function(t){this.destroy(),this.target=t,this.inner=this.target.querySelector('[tabindex="-1"]'),this.focusable=this.getFocusable(),this.focusable.length?(this.focusableFirst=this.focusable[0],this.focusableLast=this.focusable[this.focusable.length-1],this.target.addEventListener("keydown",this.__handlerFocusTrap)):this.target.addEventListener("keydown",this.handlerFocusLock)},e.destroy=function(){this.target&&(this.inner=null,this.focusable=null,this.focusableFirst=null,this.focusableLast=null,this.target.removeEventListener("keydown",this.__handlerFocusTrap),this.target.removeEventListener("keydown",this.handlerFocusLock),this.target=null)},e.refresh=function(){this.target&&(this.target.removeEventListener("keydown",this.__handlerFocusTrap),this.target.removeEventListener("keydown",this.handlerFocusLock),this.focusable=this.getFocusable(),this.focusable.length?(this.focusableFirst=this.focusable[0],this.focusableLast=this.focusable[this.focusable.length-1],this.target.addEventListener("keydown",this.__handlerFocusTrap)):(this.focusableFirst=null,this.focusableLast=null,this.target.addEventListener("keydown",this.handlerFocusLock)))},e.handlerFocusTrap=function(t){("Tab"===t.key||9===t.keyCode)&&(t.shiftKey?document.activeElement!==this.focusableFirst&&document.activeElement!==this.inner||(this.focusableLast.focus(),t.preventDefault()):document.activeElement!==this.focusableLast&&document.activeElement!==this.inner||(this.focusableFirst.focus(),t.preventDefault()))},e.handlerFocusLock=function(t){("Tab"===t.key||9===t.keyCode)&&t.preventDefault()},e.getFocusable=function(){var t=[],e=document.activeElement,n=this.inner?this.inner.scrollTop:0;return this.target.querySelectorAll(c.join(",")).forEach(function(e){e.focus(),e===document.activeElement&&t.push(e)}),this.inner&&(this.inner.scrollTop=n),e.focus(),t},t}(),f=function(t){return t=[].slice.call(t=t.forEach?t:[t]),[].slice.call(arguments,1).some(function(e){return t.some(function(t){if(t.classList.contains(e))return!0})})},h=function(t){var e=arguments;(t=t.forEach?t:[t]).forEach(function(t){var n;(n=t.classList).remove.apply(n,[].slice.call(e,1))})};function p(t,e,n){var r=e.nodeType===Node.COMMENT_NODE,i=e.nodeType===Node.ELEMENT_NODE;if(r&&(n="after"),!(e=r||i?e:document.querySelector(e)))throw new Error("Not a valid teleport reference: '"+e+"'");if("function"!=typeof e[n])throw new Error("Not a valid teleport method: '"+n+"'");var o=null;return r||(o=document.createComment("teleported #"+t.id),t.before(o)),e[n](t),r&&e.remove(),o}var v=function(t,e){return new Promise(function(n){e.transition?(t.classList.remove(e.stateClosed),t.classList.add(e.stateOpening),t.addEventListener("transitionend",function r(){t.classList.add(e.stateOpened),t.classList.remove(e.stateOpening),n(t),this.removeEventListener("transitionend",r)})):(t.classList.add(e.stateOpened),t.classList.remove(e.stateClosed),n(t))})},g=function(t,e){return new Promise(function(n){e.transition?(t.classList.add(e.stateClosing),t.classList.remove(e.stateOpened),t.addEventListener("transitionend",function r(){t.classList.remove(e.stateClosing),t.classList.add(e.stateClosed),n(t),this.removeEventListener("transitionend",r)})):(t.classList.add(e.stateClosed),t.classList.remove(e.stateOpened),n(t))})},m={__proto__:null,setInert:t,setOverflowHidden:e,setTabindex:n,addClass:r,camelCase:function(t){return t.replace(/-([a-z])/g,function(t){return t[1].toUpperCase()})},Collection:a,focusTarget:l,focusTrigger:u,FocusTrap:d,hasClass:f,hyphenCase:function(t){return t.replace(/([a-z][A-Z])/g,function(t){return t[0]+"-"+t[1].toLowerCase()})},removeClass:h,teleport:p,toggleClass:function(t){var e=arguments;(t=t.forEach?t:[t]).forEach(function(t){[].slice.call(e,1).forEach(function(e){t.classList.toggle(e)})})},openTransition:v,closeTransition:g};function y(){return(y=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function b(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,w(t,e)}function w(t,e){return(w=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function E(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var x={autoInit:!1,stateAttr:"aria-checked",stateValue:"mixed"},O=/*#__PURE__*/function(){function t(t){this.defaults=x,this.settings=y({},this.defaults,t),this.__handlerClick=this.handlerClick.bind(this),this.settings.autoInit&&this.init()}var e=t.prototype;return e.init=function(t){void 0===t&&(t=null),t&&(this.settings=y({},this.settings,t));var e=document.querySelectorAll("["+this.settings.stateAttr+'="'+this.settings.stateValue+'"]');this.setIndeterminate(e),document.addEventListener("click",this.__handlerClick,!1)},e.destroy=function(){document.removeEventListener("click",this.__handlerClick,!1)},e.handlerClick=function(t){var e=t.target.closest("["+this.settings.stateAttr+'="'+this.settings.stateValue+'"]');e&&(this.removeAriaState(e),this.setIndeterminate(e))},e.setAriaState=function(t,e){var n=this;void 0===e&&(e=this.settings.stateValue),(t=t.forEach?t:[t]).forEach(function(t){t.setAttribute(n.settings.stateAttr,e)})},e.removeAriaState=function(t){var e=this;(t=t.forEach?t:[t]).forEach(function(t){t.removeAttribute(e.settings.stateAttr)})},e.setIndeterminate=function(t){var e=this;(t=t.forEach?t:[t]).forEach(function(t){t.indeterminate=!!t.hasAttribute(e.settings.stateAttr)})},t}(),P={autoInit:!1,dataDrawer:"drawer",dataDialog:"drawer-dialog",dataToggle:"drawer-toggle",dataOpen:"drawer-open",dataClose:"drawer-close",dataBreakpoint:"drawer-breakpoint",selectorFocus:"[data-focus]",selectorInert:null,selectorOverflow:null,stateOpened:"is-opened",stateOpening:"is-opening",stateClosing:"is-closing",stateClosed:"is-closed",classModal:"drawer_modal",breakpoints:null,customEventPrefix:"drawer:",eventListeners:!0,stateSave:!0,stateKey:"DrawerState",setTabindex:!0,transition:!0},L=/*#__PURE__*/function(){function t(t){this.mediaQueryLists=[],this.parent=t,this.prefix=this.getVariablePrefix(),this.__check=this.check.bind(this)}var e=t.prototype;return e.init=function(){var t=this;document.querySelectorAll("[data-"+this.parent.settings.dataBreakpoint+"]").forEach(function(e){var n=e.getAttribute("data-"+t.parent.settings.dataDrawer),r=e.getAttribute("data-"+t.parent.settings.dataBreakpoint),i=t.getBreakpoint(r),o=window.matchMedia("(min-width:"+i+")");t.match(o,e),"function"==typeof o.addEventListener?o.addEventListener("change",t.__check):o.addListener(t.__check),t.mediaQueryLists.push({mql:o,drawer:n})})},e.destroy=function(){var t=this;this.mediaQueryLists&&this.mediaQueryLists.length&&this.mediaQueryLists.forEach(function(e){e.mql.removeListener(t.__check)}),this.mediaQueryLists=null},e.check=function(t){var e=this;void 0===t&&(t=null),this.mediaQueryLists&&this.mediaQueryLists.length&&(this.mediaQueryLists.forEach(function(n){if(!t||t.media==n.mql.media){var r=document.querySelector("[data-"+e.parent.settings.dataDrawer+'="'+n.drawer+'"]');r&&e.match(n.mql,r)}}),document.dispatchEvent(new CustomEvent(this.parent.settings.customEventPrefix+"breakpoint",{bubbles:!0})))},e.match=function(t,e){t.matches?this.parent.switchToDefault(e):this.parent.switchToModal(e)},e.getBreakpoint=function(t){var e=t;return this.parent.settings.breakpoints&&this.parent.settings.breakpoints[t]?e=this.parent.settings.breakpoints[t]:getComputedStyle(document.body).getPropertyValue(this.prefix+t)&&(e=getComputedStyle(document.body).getPropertyValue(this.prefix+t)),e},e.getVariablePrefix=function(){var t="--";return(t+=getComputedStyle(document.body).getPropertyValue("--vrembem-variable-prefix"))+"breakpoint-"},t}();function k(t){return"string"!=typeof t?t:document.querySelector("[data-"+this.settings.dataDrawer+'="'+t+'"]')}function _(t){return Promise.reject(new Error('Did not find drawer with key: "'+t+'"'))}var A=function(n){try{var r=this,i=r.getDrawer(n);return i?f(i,r.settings.stateOpened)?(r.working=!0,f(i,r.settings.classModal)&&(t(!1,r.settings.selectorInert),e(!1,r.settings.selectorOverflow)),Promise.resolve(g(i,r.settings)).then(function(){return r.stateSave(i),u(r),r.focusTrap.destroy(),i.dispatchEvent(new CustomEvent(r.settings.customEventPrefix+"closed",{detail:r,bubbles:!0})),r.working=!1,i})):Promise.resolve(i):Promise.resolve(_(n))}catch(t){return Promise.reject(t)}};function C(t){if(!this.working){var e=t.target.closest("[data-"+this.settings.dataToggle+"]");if(e){var n=e.getAttribute("data-"+this.settings.dataToggle);return this.memory.trigger=e,this.toggle(n),void t.preventDefault()}if(e=t.target.closest("[data-"+this.settings.dataOpen+"]")){var r=e.getAttribute("data-"+this.settings.dataOpen);return this.memory.trigger=e,this.open(r),void t.preventDefault()}if(e=t.target.closest("[data-"+this.settings.dataClose+"]")){var i=e.getAttribute("data-"+this.settings.dataClose);if(i)this.memory.trigger=e,this.close(i);else{var o=t.target.closest("[data-"+this.settings.dataDrawer+"]");o&&this.close(o)}t.preventDefault()}else t.target.hasAttribute("data-"+this.settings.dataDrawer)&&this.close(t.target)}}function j(t){if(!this.working&&"Escape"===t.key){var e=document.querySelector("."+this.settings.classModal+"."+this.settings.stateOpened);e&&this.close(e)}}var S=function(n){try{var r=this,i=r.getDrawer(n);if(!i)return Promise.resolve(_(n));if(f(i,r.settings.stateOpened))return l(i,r.settings),Promise.resolve(i);r.working=!0;var o=f(i,r.settings.classModal);return o&&e(!0,r.settings.selectorOverflow),Promise.resolve(v(i,r.settings)).then(function(){return r.stateSave(i),o&&(r.focusTrap.init(i),t(!0,r.settings.selectorInert)),l(i,r.settings),i.dispatchEvent(new CustomEvent(r.settings.customEventPrefix+"opened",{detail:r,bubbles:!0})),r.working=!1,i})}catch(t){return Promise.reject(t)}};function D(t,e){if(!e.stateSave)return T(e);var n=localStorage.getItem(e.stateKey)?JSON.parse(localStorage.getItem(e.stateKey)):{};return(t?[t]:document.querySelectorAll("[data-"+e.dataDrawer+"]")).forEach(function(t){if(!f(t,e.classModal)){var r=t.getAttribute("data-"+e.dataDrawer);n[r]=f(t,e.stateOpened)?e.stateOpened:e.stateClosed}}),localStorage.setItem(e.stateKey,JSON.stringify(n)),n}function T(t){return localStorage.getItem(t.stateKey)&&localStorage.removeItem(t.stateKey),{}}var I=function(n){try{var i=this,o=i.getDrawer(n);return o?f(o,i.settings.classModal)?(t(!1,i.settings.selectorInert),e(!1,i.settings.selectorOverflow),h(o,i.settings.classModal),i.focusTrap.destroy(),n=o.getAttribute("data-"+i.settings.dataDrawer),i.state[n]==i.settings.stateOpened&&(r(o,i.settings.stateOpened),h(o,i.settings.stateClosed)),o.dispatchEvent(new CustomEvent(i.settings.customEventPrefix+"toDefault",{bubbles:!0})),Promise.resolve(o)):Promise.resolve():Promise.resolve(_(n))}catch(t){return Promise.reject(t)}},M=function(t){try{var e=this,n=e.getDrawer(t);return n?f(n,e.settings.classModal)?Promise.resolve():(r(n,e.settings.classModal),r(n,e.settings.stateClosed),h(n,e.settings.stateOpened),n.dispatchEvent(new CustomEvent(e.settings.customEventPrefix+"toModal",{bubbles:!0})),Promise.resolve(n)):Promise.resolve(_(t))}catch(t){return Promise.reject(t)}},q=function(t){try{var e=this,n=e.getDrawer(t);if(!n)return Promise.resolve(_(t));var r=!f(n,e.settings.stateOpened);return Promise.resolve(r?e.open(n):e.close(n))}catch(t){return Promise.reject(t)}},R=/*#__PURE__*/function(){function t(t){this.defaults=P,this.settings=y({},this.defaults,t),this.working=!1,this.memory={},this.state={},this.focusTrap=new d,this.breakpoint=new L(this),this.__handlerClick=C.bind(this),this.__handlerKeydown=j.bind(this),this.settings.autoInit&&this.init()}var e=t.prototype;return e.init=function(t){void 0===t&&(t=null),t&&(this.settings=y({},this.settings,t)),this.stateSet(),this.settings.setTabindex&&this.setTabindex(),this.breakpoint.init(),this.settings.eventListeners&&this.initEventListeners()},e.destroy=function(){this.breakpoint.destroy(),this.memory={},this.state={},localStorage.removeItem(this.settings.stateKey),this.settings.eventListeners&&this.destroyEventListeners()},e.initEventListeners=function(){document.addEventListener("click",this.__handlerClick,!1),document.addEventListener("touchend",this.__handlerClick,!1),document.addEventListener("keydown",this.__handlerKeydown,!1)},e.destroyEventListeners=function(){document.removeEventListener("click",this.__handlerClick,!1),document.removeEventListener("touchend",this.__handlerClick,!1),document.removeEventListener("keydown",this.__handlerKeydown,!1)},e.getDrawer=function(t){return k.call(this,t)},e.setTabindex=function(){return n("\n [data-"+this.settings.dataDrawer+"]\n [data-"+this.settings.dataDialog+"]\n ")},e.stateSet=function(){this.state=function(t){if(!t.stateSave)return T(t);var e=localStorage.getItem(t.stateKey);if(!e||e&&0===Object.keys(JSON.parse(e)).length)return D(null,t);var n=JSON.parse(localStorage.getItem(t.stateKey));return Object.keys(n).forEach(function(e){var i=document.querySelector("[data-"+t.dataDrawer+'="'+e+'"]');i&&(n[e]==t.stateOpened?r(i,t.stateOpened):h(i,t.stateOpened))}),n}(this.settings)},e.stateSave=function(t){void 0===t&&(t=null),this.state=D(t,this.settings)},e.stateClear=function(){this.state=T(this.settings)},e.switchToDefault=function(t){return I.call(this,t)},e.switchToModal=function(t){return M.call(this,t)},e.toggle=function(t){return q.call(this,t)},e.open=function(t){return S.call(this,t)},e.close=function(t){return A.call(this,t)},t}(),F={autoInit:!1,dataOpen:"modal-open",dataClose:"modal-close",dataReplace:"modal-replace",dataConfig:"modal-config",selectorModal:".modal",selectorDialog:".modal__dialog",selectorRequired:'[role="alertdialog"]',selectorFocus:"[data-focus]",selectorInert:null,selectorOverflow:"body",stateOpened:"is-opened",stateOpening:"is-opening",stateClosing:"is-closing",stateClosed:"is-closed",customEventPrefix:"modal:",eventListeners:!0,teleport:null,teleportMethod:"append",setTabindex:!0,transition:!0};function N(){t(!!this.active,this.settings.selectorInert),e(!!this.active,this.settings.selectorOverflow),this.stack.forEach(function(t,e){t.target.style.zIndex=null;var n=getComputedStyle(t.target)["z-index"];t.target.style.zIndex=parseInt(n)+e+1})}function B(){this.active?(l(this.active.target,this.settings),this.focusTrap.init(this.active.target)):(u(this),this.focusTrap.destroy())}function V(t){var e=(t.getAttribute("data-"+this.settings.dataConfig)||"").replace(/'/g,'"');return e?JSON.parse(e):{}}function K(t){var e=this.get("string"==typeof t?t:t.id);if(e)return e;throw new Error('Modal not found in collection with id of "'+t+'".')}function W(t){return"string"==typeof t?t:"function"==typeof t.hasAttribute?t.hasAttribute("data-"+this.settings.dataOpen)?t.getAttribute("data-"+this.settings.dataOpen):t.hasAttribute("data-"+this.settings.dataClose)?t.getAttribute("data-"+this.settings.dataClose)||!1:t.hasAttribute("data-"+this.settings.dataReplace)?t.getAttribute("data-"+this.settings.dataReplace):t.closest(this.settings.selectorModal)&&(t=t.closest(this.settings.selectorModal)).id||!1:!!t.id&&t.id}function H(t){var e=W.call(this,t);if(e){var n=document.querySelector("#"+e),r=n?n.querySelector(this.settings.selectorDialog):null;return n||r?r?{target:n,dialog:r}:{error:new Error("Modal is missing dialog element.")}:{error:new Error('No modal elements found using the ID: "'+e+'".')}}return{error:new Error("Could not resolve the modal ID.")}}var z=function(t){try{var e=this,n=t.target.closest("[data-"+e.settings.dataOpen+"], [data-"+e.settings.dataReplace+"]");if(n){t.preventDefault(),t.target.closest(e.settings.selectorModal)||(e.memory.trigger=n);var r=e.get(W.call(e,n));return Promise.resolve(n.matches("[data-"+e.settings.dataOpen+"]")?r.open():r.replace())}if(n=t.target.closest("[data-"+e.settings.dataClose+"]")){t.preventDefault();var i=n.getAttribute("data-"+e.settings.dataClose);return Promise.resolve("*"===i?e.closeAll():e.close(i))}return t.target.matches(e.settings.selectorModal)&&!t.target.querySelector(e.settings.selectorRequired)?Promise.resolve(e.close(W.call(e,t.target))):Promise.resolve()}catch(t){return Promise.reject(t)}};function Q(t){if("Escape"===t.key&&this.active&&!this.active.dialog.matches(this.settings.selectorRequired))return this.close()}var J=function(t,e){void 0===e&&(e=!0);try{var n=function(){return r.collection},r=this;if(!t)return Promise.resolve(r.collection);var i=r.collection.findIndex(function(e){return e.id===t.id}),o=function(){if(i>=0){var t=function(){n.getSetting("teleport")&&n.teleportReturn(),Object.getOwnPropertyNames(n).forEach(function(t){delete n[t]}),r.collection.splice(i,1)},n=r.collection[i],o=function(){if(e&&"opened"===n.state)return Promise.resolve(n.close(!1)).then(function(){});var t=r.stack.findIndex(function(t){return t.id===n.id});t>=0&&r.stack.splice(t,1)}();return o&&o.then?o.then(t):t()}}();return Promise.resolve(o&&o.then?o.then(n):n())}catch(t){return Promise.reject(t)}},U=function(t,e,n){void 0===n&&(n=!1);try{var r=function(){return n||B.call(i),o.target.dispatchEvent(new CustomEvent(s.customEventPrefix+"opened",{detail:i,bubbles:!0})),o},i=this,o=K.call(i,t),s=y({},i.settings,o.settings);void 0!==e&&(s.transition=e);var a=i.stack.findIndex(function(t){return t.id===o.id});a>=0&&(i.stack.splice(a,1),i.stack.push(o));var c=function(){if("closed"===o.state){o.state="opening",o.target.style.zIndex=null;var t=getComputedStyle(o.target)["z-index"];return o.target.style.zIndex=parseInt(t)+i.stack.length+1,i.stack.push(o),Promise.resolve(v(o.target,s)).then(function(){o.state="opened"})}}();return Promise.resolve(c&&c.then?c.then(r):r())}catch(t){return Promise.reject(t)}},X=function(t,e,n){void 0===n&&(n=!1);try{var r=this,i=t?K.call(r,t):r.active,o=function(){if(i&&"opened"===i.state){i.state="closing";var t=y({},r.settings,i.settings);return void 0!==e&&(t.transition=e),document.activeElement.blur(),Promise.resolve(g(i.target,t)).then(function(){i.target.style.zIndex=null;var e=r.stack.findIndex(function(t){return t.id===i.id});r.stack.splice(e,1),n||B.call(r),i.state="closed",i.target.dispatchEvent(new CustomEvent(t.customEventPrefix+"closed",{detail:r,bubbles:!0}))})}}();return Promise.resolve(o&&o.then?o.then(function(){return i}):i)}catch(t){return Promise.reject(t)}},Y=function(t,e){try{var n=this,r=[];return Promise.resolve(Promise.all(n.stack.map(function(i){try{var o=function(){i.trigger=null},s=function(){if(!t||t!==i.id){var o=r.push;return Promise.resolve(X.call(n,i,e,!0)).then(function(t){o.call(r,t)})}Promise.resolve()}();return Promise.resolve(s&&s.then?s.then(o):o())}catch(t){return Promise.reject(t)}}))).then(function(){return r})}catch(t){return Promise.reject(t)}},Z=function(t,e){try{var n,r,i=function(){return B.call(o),{opened:n,closed:r}},o=this,s=K.call(o,t),a="opened"===s.state?(n=s,Promise.resolve(Y.call(o,s.id,e)).then(function(t){r=t})):(n=U.call(o,s,e,!0),r=Y.call(o,!1,e),Promise.resolve(Promise.all([n,r])).then(function(){}));return Promise.resolve(a&&a.then?a.then(i):i())}catch(t){return Promise.reject(t)}},G=function(t,e){try{var n=this;return Promise.resolve(J.call(n,t,!1)).then(function(){var r=n,i={open:function(t){return U.call(r,this,t)},close:function(t){return X.call(r,this,t)},replace:function(t){return Z.call(r,this,t)},deregister:function(){return J.call(r,this)},teleport:function(t,e){return void 0===t&&(t=this.getSetting("teleport")),void 0===e&&(e=this.getSetting("teleportMethod")),this.returnRef?(console.error("Element has already been teleported:",this.target),!1):(this.returnRef=p(this.target,t,e),this.target)},teleportReturn:function(){return this.returnRef?(this.returnRef=p(this.target,this.returnRef),this.target):(console.error("No return reference found:",this.target),!1)},getSetting:function(t){return t in this.settings?this.settings[t]:r.settings[t]}},o=y({id:t.id,state:"closed",settings:V.call(n,t),target:t,dialog:e,returnRef:null},i);return o.dialog.setAttribute("aria-modal","true"),o.dialog.hasAttribute("role")||o.dialog.setAttribute("role","dialog"),o.getSetting("setTabindex")&&o.dialog.setAttribute("tabindex","-1"),o.getSetting("teleport")&&o.teleport(),n.collection.push(o),o.target.classList.contains(n.settings.stateOpened)?o.open(!1):(o.target.classList.remove(n.settings.stateOpening),o.target.classList.remove(n.settings.stateClosing),o.target.classList.add(n.settings.stateClosed)),o})}catch(t){return Promise.reject(t)}},$=/*#__PURE__*/function(t){function e(e){var n;return(n=t.call(this)||this).defaults=F,n.settings=y({},n.defaults,e),n.memory={},n.focusTrap=new d,n.stack=new Proxy([],{set:function(t,e,r){return t[e]=r,"length"===e&&N.call(E(n)),!0}}),n.__handleClick=z.bind(E(n)),n.__handleKeydown=Q.bind(E(n)),n.settings.autoInit&&n.init(),n}b(e,t);var n,r,i=e.prototype;return i.init=function(t){try{var e=this;t&&(e.settings=y({},e.settings,t));var n=document.querySelectorAll(e.settings.selectorModal);return Promise.resolve(e.registerCollection(n)).then(function(){e.settings.eventListeners&&e.initEventListeners()})}catch(t){return Promise.reject(t)}},i.destroy=function(){try{var t=this;return t.memory={},Promise.resolve(t.deregisterCollection()).then(function(){t.settings.eventListeners&&t.destroyEventListeners()})}catch(t){return Promise.reject(t)}},i.initEventListeners=function(){document.addEventListener("click",this.__handleClick,!1),document.addEventListener("touchend",this.__handleClick,!1),document.addEventListener("keydown",this.__handleKeydown,!1)},i.destroyEventListeners=function(){document.removeEventListener("click",this.__handleClick,!1),document.removeEventListener("touchend",this.__handleClick,!1),document.removeEventListener("keydown",this.__handleKeydown,!1)},i.register=function(t){var e=H.call(this,t);return e.error?Promise.reject(e.error):G.call(this,e.target,e.dialog)},i.deregister=function(t){var e=this.get(W.call(this,t));return J.call(this,e)},i.open=function(t,e){return U.call(this,t,e)},i.close=function(t,e){return X.call(this,t,e)},i.replace=function(t,e){return Z.call(this,t,e)},i.closeAll=function(t,e){void 0===t&&(t=!1);try{var n=this;return Promise.resolve(Y.call(n,t,e)).then(function(t){return B.call(n),t})}catch(t){return Promise.reject(t)}},n=e,(r=[{key:"active",get:function(){return this.stack[this.stack.length-1]}}])&&function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(a),tt={autoInit:!1,selectorPopover:".popover",selectorArrow:".popover__arrow",stateActive:"is-active",eventListeners:!0,eventType:"click",placement:"bottom"};function et(t,e){var n=getComputedStyle(t),r={placement:e.placement,event:e.eventType,offset:0,"overflow-padding":0,"flip-padding":0,"arrow-element":e.selectorArrow,"arrow-padding":0};for(var i in r){var o=getComputedStyle(document.body).getPropertyValue("--vrembem-variable-prefix"),s=n.getPropertyValue("--"+o+"popover-"+i).trim();s&&(r[i]=s)}return r}function nt(t){var e,n="string"==typeof t?t.trim().split(" "):[t];switch(n.forEach(function(t,e){n[e]=parseInt(t,10)}),n.length){case 1:e=n[0];break;case 2:e={top:n[0],right:n[1],bottom:n[0],left:n[1]};break;case 3:e={top:n[0],right:n[1],bottom:n[2],left:n[1]};break;case 4:e={top:n[0],right:n[1],bottom:n[2],left:n[3]};break;default:e=!1}return e}function rt(t){var e=this.get("string"==typeof t?t:t.id);if(e)return e;throw new Error('Popover not found in collection with id of "'+t+'".')}function it(t){return"string"==typeof t?t:"function"==typeof t.hasAttribute?t.closest(this.settings.selectorPopover)?(t=t.closest(this.settings.selectorPopover)).id:t.hasAttribute("aria-controls")?t.getAttribute("aria-controls"):!!t.hasAttribute("aria-describedby")&&t.getAttribute("aria-describedby"):!!t.id&&t.id}function ot(t){var e=it.call(this,t);if(e){var n=document.querySelector('[aria-controls="'+e+'"]')||document.querySelector('[aria-describedby="'+e+'"]'),r=document.querySelector("#"+e);return n||r?n?r?{trigger:n,target:r}:{error:new Error("No popover associated with the provided popover trigger.")}:{error:new Error("No popover trigger associated with the provided popover.")}:{error:new Error('No popover elements found using the ID: "'+e+'".')}}return{error:new Error("Could not resolve the popover ID.")}}var st=function(){try{var t=this,e=[];return Promise.resolve(Promise.all(t.collection.map(function(n){try{var r=function(){if("opened"===n.state){var r=e.push;return Promise.resolve(at.call(t,n)).then(function(t){r.call(e,t)})}}();return Promise.resolve(r&&r.then?r.then(function(){}):void 0)}catch(t){return Promise.reject(t)}}))).then(function(){return e})}catch(t){return Promise.reject(t)}},at=function(t){try{var e=function(t){return t&&"opened"===t.state&&(t.target.classList.remove(n.settings.stateActive),t.trigger.hasAttribute("aria-controls")&&t.trigger.setAttribute("aria-expanded","false"),t.popper.setOptions({modifiers:[{name:"eventListeners",enabled:!1}]}),t.state="closed",t.trigger===n.memory.trigger&&(n.memory.trigger=null)),t},n=this;return Promise.resolve(t?e(rt.call(n,t)):Promise.resolve(st.call(n)).then(e))}catch(t){return Promise.reject(t)}};function ct(t){"opened"==t.state&&setTimeout(function(){var e=t.target.closest(":hover")===t.target||t.trigger.closest(":hover")===t.trigger,n=document.activeElement.closest("#"+t.id+', [aria-controls="'+t.id+'"]');return e||n||t.close(),t},1)}function lt(t){"opened"===t.state?t.close():(this.memory.trigger=t.trigger,t.open(),dt.call(this,t))}function ut(t){var e=this;switch(t.key){case"Escape":return this.memory.trigger&&this.memory.trigger.focus(),void st.call(this);case"Tab":return void this.collection.forEach(function(t){ct.call(e,t)});default:return}}function dt(t){var e=this;document.addEventListener("click",function n(r){r.target.closest("#"+t.id+', [aria-controls="'+t.id+'"]')?t.target&&!t.target.classList.contains(e.settings.stateActive)&&this.removeEventListener("click",n):(t.target&&t.target.classList.contains(e.settings.stateActive)&&t.close(),this.removeEventListener("click",n))})}var ft="top",ht="bottom",pt="right",vt="left",gt=[ft,ht,pt,vt],mt=/*#__PURE__*/gt.reduce(function(t,e){return t.concat([e+"-start",e+"-end"])},[]),yt=/*#__PURE__*/[].concat(gt,["auto"]).reduce(function(t,e){return t.concat([e,e+"-start",e+"-end"])},[]),bt=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function wt(t){return t?(t.nodeName||"").toLowerCase():null}function Et(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function xt(t){return t instanceof Et(t).Element||t instanceof Element}function Ot(t){return t instanceof Et(t).HTMLElement||t instanceof HTMLElement}function Pt(t){return"undefined"!=typeof ShadowRoot&&(t instanceof Et(t).ShadowRoot||t instanceof ShadowRoot)}function Lt(t){return t.split("-")[0]}var kt=Math.max,_t=Math.min,At=Math.round;function Ct(t,e){void 0===e&&(e=!1);var n=t.getBoundingClientRect(),r=1,i=1;if(Ot(t)&&e){var o=t.offsetHeight,s=t.offsetWidth;s>0&&(r=At(n.width)/s||1),o>0&&(i=At(n.height)/o||1)}return{width:n.width/r,height:n.height/i,top:n.top/i,right:n.right/r,bottom:n.bottom/i,left:n.left/r,x:n.left/r,y:n.top/i}}function jt(t){var e=Ct(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function St(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&Pt(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Dt(t){return Et(t).getComputedStyle(t)}function Tt(t){return["table","td","th"].indexOf(wt(t))>=0}function It(t){return((xt(t)?t.ownerDocument:t.document)||window.document).documentElement}function Mt(t){return"html"===wt(t)?t:t.assignedSlot||t.parentNode||(Pt(t)?t.host:null)||It(t)}function qt(t){return Ot(t)&&"fixed"!==Dt(t).position?t.offsetParent:null}function Rt(t){for(var e=Et(t),n=qt(t);n&&Tt(n)&&"static"===Dt(n).position;)n=qt(n);return n&&("html"===wt(n)||"body"===wt(n)&&"static"===Dt(n).position)?e:n||function(t){var e=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&Ot(t)&&"fixed"===Dt(t).position)return null;var n=Mt(t);for(Pt(n)&&(n=n.host);Ot(n)&&["html","body"].indexOf(wt(n))<0;){var r=Dt(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||e&&"filter"===r.willChange||e&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(t)||e}function Ft(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Nt(t,e,n){return kt(t,_t(e,n))}function Bt(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function Vt(t,e){return e.reduce(function(e,n){return e[n]=t,e},{})}function Kt(t){return t.split("-")[1]}var Wt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ht(t){var e,n=t.popper,r=t.popperRect,i=t.placement,o=t.variation,s=t.offsets,a=t.position,c=t.gpuAcceleration,l=t.adaptive,u=t.roundOffsets,d=t.isFixed,f=s.x,h=void 0===f?0:f,p=s.y,v=void 0===p?0:p,g="function"==typeof u?u({x:h,y:v}):{x:h,y:v};h=g.x,v=g.y;var m=s.hasOwnProperty("x"),y=s.hasOwnProperty("y"),b=vt,w=ft,E=window;if(l){var x=Rt(n),O="clientHeight",P="clientWidth";x===Et(n)&&"static"!==Dt(x=It(n)).position&&"absolute"===a&&(O="scrollHeight",P="scrollWidth"),x=x,(i===ft||(i===vt||i===pt)&&"end"===o)&&(w=ht,v-=(d&&x===E&&E.visualViewport?E.visualViewport.height:x[O])-r.height,v*=c?1:-1),i!==vt&&(i!==ft&&i!==ht||"end"!==o)||(b=pt,h-=(d&&x===E&&E.visualViewport?E.visualViewport.width:x[P])-r.width,h*=c?1:-1)}var L,k=Object.assign({position:a},l&&Wt),_=!0===u?function(t){var e=t.y,n=window.devicePixelRatio||1;return{x:At(t.x*n)/n||0,y:At(e*n)/n||0}}({x:h,y:v}):{x:h,y:v};return h=_.x,v=_.y,Object.assign({},k,c?((L={})[w]=y?"0":"",L[b]=m?"0":"",L.transform=(E.devicePixelRatio||1)<=1?"translate("+h+"px, "+v+"px)":"translate3d("+h+"px, "+v+"px, 0)",L):((e={})[w]=y?v+"px":"",e[b]=m?h+"px":"",e.transform="",e))}var zt={passive:!0},Qt={left:"right",right:"left",bottom:"top",top:"bottom"};function Jt(t){return t.replace(/left|right|bottom|top/g,function(t){return Qt[t]})}var Ut={start:"end",end:"start"};function Xt(t){return t.replace(/start|end/g,function(t){return Ut[t]})}function Yt(t){var e=Et(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Zt(t){return Ct(It(t)).left+Yt(t).scrollLeft}function Gt(t){var e=Dt(t);return/auto|scroll|overlay|hidden/.test(e.overflow+e.overflowY+e.overflowX)}function $t(t){return["html","body","#document"].indexOf(wt(t))>=0?t.ownerDocument.body:Ot(t)&&Gt(t)?t:$t(Mt(t))}function te(t,e){var n;void 0===e&&(e=[]);var r=$t(t),i=r===(null==(n=t.ownerDocument)?void 0:n.body),o=Et(r),s=i?[o].concat(o.visualViewport||[],Gt(r)?r:[]):r,a=e.concat(s);return i?a:a.concat(te(Mt(s)))}function ee(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function ne(t,e){return"viewport"===e?ee(function(t){var e=Et(t),n=It(t),r=e.visualViewport,i=n.clientWidth,o=n.clientHeight,s=0,a=0;return r&&(i=r.width,o=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(s=r.offsetLeft,a=r.offsetTop)),{width:i,height:o,x:s+Zt(t),y:a}}(t)):xt(e)?function(t){var e=Ct(t);return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e}(e):ee(function(t){var e,n=It(t),r=Yt(t),i=null==(e=t.ownerDocument)?void 0:e.body,o=kt(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=kt(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-r.scrollLeft+Zt(t),c=-r.scrollTop;return"rtl"===Dt(i||n).direction&&(a+=kt(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:s,x:a,y:c}}(It(t)))}function re(t){var e,n=t.reference,r=t.element,i=t.placement,o=i?Lt(i):null,s=i?Kt(i):null,a=n.x+n.width/2-r.width/2,c=n.y+n.height/2-r.height/2;switch(o){case ft:e={x:a,y:n.y-r.height};break;case ht:e={x:a,y:n.y+n.height};break;case pt:e={x:n.x+n.width,y:c};break;case vt:e={x:n.x-r.width,y:c};break;default:e={x:n.x,y:n.y}}var l=o?Ft(o):null;if(null!=l){var u="y"===l?"height":"width";switch(s){case"start":e[l]=e[l]-(n[u]/2-r[u]/2);break;case"end":e[l]=e[l]+(n[u]/2-r[u]/2)}}return e}function ie(t,e){void 0===e&&(e={});var n=e.placement,r=void 0===n?t.placement:n,i=e.boundary,o=void 0===i?"clippingParents":i,s=e.rootBoundary,a=void 0===s?"viewport":s,c=e.elementContext,l=void 0===c?"popper":c,u=e.altBoundary,d=void 0!==u&&u,f=e.padding,h=void 0===f?0:f,p=Bt("number"!=typeof h?h:Vt(h,gt)),v=t.rects.popper,g=t.elements[d?"popper"===l?"reference":"popper":l],m=function(t,e,n){var r="clippingParents"===e?function(t){var e=te(Mt(t)),n=["absolute","fixed"].indexOf(Dt(t).position)>=0&&Ot(t)?Rt(t):t;return xt(n)?e.filter(function(t){return xt(t)&&St(t,n)&&"body"!==wt(t)}):[]}(t):[].concat(e),i=[].concat(r,[n]),o=i.reduce(function(e,n){var r=ne(t,n);return e.top=kt(r.top,e.top),e.right=_t(r.right,e.right),e.bottom=_t(r.bottom,e.bottom),e.left=kt(r.left,e.left),e},ne(t,i[0]));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}(xt(g)?g:g.contextElement||It(t.elements.popper),o,a),y=Ct(t.elements.reference),b=re({reference:y,element:v,strategy:"absolute",placement:r}),w=ee(Object.assign({},v,b)),E="popper"===l?w:y,x={top:m.top-E.top+p.top,bottom:E.bottom-m.bottom+p.bottom,left:m.left-E.left+p.left,right:E.right-m.right+p.right},O=t.modifiersData.offset;if("popper"===l&&O){var P=O[r];Object.keys(x).forEach(function(t){var e=[pt,ht].indexOf(t)>=0?1:-1,n=[ft,ht].indexOf(t)>=0?"y":"x";x[t]+=P[n]*e})}return x}function oe(t,e){void 0===e&&(e={});var n=e.boundary,r=e.rootBoundary,i=e.padding,o=e.flipVariations,s=e.allowedAutoPlacements,a=void 0===s?yt:s,c=Kt(e.placement),l=c?o?mt:mt.filter(function(t){return Kt(t)===c}):gt,u=l.filter(function(t){return a.indexOf(t)>=0});0===u.length&&(u=l);var d=u.reduce(function(e,o){return e[o]=ie(t,{placement:o,boundary:n,rootBoundary:r,padding:i})[Lt(o)],e},{});return Object.keys(d).sort(function(t,e){return d[t]-d[e]})}function se(t,e,n){return void 0===n&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function ae(t){return[ft,pt,ht,vt].some(function(e){return t[e]>=0})}function ce(t,e,n){void 0===n&&(n=!1);var r,i,o=Ot(e),s=Ot(e)&&function(t){var e=t.getBoundingClientRect(),n=At(e.width)/t.offsetWidth||1,r=At(e.height)/t.offsetHeight||1;return 1!==n||1!==r}(e),a=It(e),c=Ct(t,s),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(o||!o&&!n)&&(("body"!==wt(e)||Gt(a))&&(l=(r=e)!==Et(r)&&Ot(r)?{scrollLeft:(i=r).scrollLeft,scrollTop:i.scrollTop}:Yt(r)),Ot(e)?((u=Ct(e,!0)).x+=e.clientLeft,u.y+=e.clientTop):a&&(u.x=Zt(a))),{x:c.left+l.scrollLeft-u.x,y:c.top+l.scrollTop-u.y,width:c.width,height:c.height}}function le(t){var e=new Map,n=new Set,r=[];function i(t){n.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach(function(t){if(!n.has(t)){var r=e.get(t);r&&i(r)}}),r.push(t)}return t.forEach(function(t){e.set(t.name,t)}),t.forEach(function(t){n.has(t.name)||i(t)}),r}var ue={placement:"bottom",modifiers:[],strategy:"absolute"};function de(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some(function(t){return!(t&&"function"==typeof t.getBoundingClientRect)})}function fe(t){void 0===t&&(t={});var e=t.defaultModifiers,n=void 0===e?[]:e,r=t.defaultOptions,i=void 0===r?ue:r;return function(t,e,r){void 0===r&&(r=i);var o,s,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},ue,i),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},c=[],l=!1,u={state:a,setOptions:function(r){var o="function"==typeof r?r(a.options):r;d(),a.options=Object.assign({},i,a.options,o),a.scrollParents={reference:xt(t)?te(t):t.contextElement?te(t.contextElement):[],popper:te(e)};var s,l,f=function(t){var e=le(t);return bt.reduce(function(t,n){return t.concat(e.filter(function(t){return t.phase===n}))},[])}((s=[].concat(n,a.options.modifiers),l=s.reduce(function(t,e){var n=t[e.name];return t[e.name]=n?Object.assign({},n,e,{options:Object.assign({},n.options,e.options),data:Object.assign({},n.data,e.data)}):e,t},{}),Object.keys(l).map(function(t){return l[t]})));return a.orderedModifiers=f.filter(function(t){return t.enabled}),a.orderedModifiers.forEach(function(t){var e=t.options,n=t.effect;if("function"==typeof n){var r=n({state:a,name:t.name,instance:u,options:void 0===e?{}:e});c.push(r||function(){})}}),u.update()},forceUpdate:function(){if(!l){var t=a.elements,e=t.reference,n=t.popper;if(de(e,n)){a.rects={reference:ce(e,Rt(n),"fixed"===a.options.strategy),popper:jt(n)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach(function(t){return a.modifiersData[t.name]=Object.assign({},t.data)});for(var r=0;r<a.orderedModifiers.length;r++)if(!0!==a.reset){var i=a.orderedModifiers[r],o=i.fn,s=i.options;"function"==typeof o&&(a=o({state:a,options:void 0===s?{}:s,name:i.name,instance:u})||a)}else a.reset=!1,r=-1}}},update:(o=function(){return new Promise(function(t){u.forceUpdate(),t(a)})},function(){return s||(s=new Promise(function(t){Promise.resolve().then(function(){s=void 0,t(o())})})),s}),destroy:function(){d(),l=!0}};if(!de(t,e))return u;function d(){c.forEach(function(t){return t()}),c=[]}return u.setOptions(r).then(function(t){!l&&r.onFirstUpdate&&r.onFirstUpdate(t)}),u}}var he=/*#__PURE__*/fe({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,n=t.instance,r=t.options,i=r.scroll,o=void 0===i||i,s=r.resize,a=void 0===s||s,c=Et(e.elements.popper),l=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&l.forEach(function(t){t.addEventListener("scroll",n.update,zt)}),a&&c.addEventListener("resize",n.update,zt),function(){o&&l.forEach(function(t){t.removeEventListener("scroll",n.update,zt)}),a&&c.removeEventListener("resize",n.update,zt)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state;e.modifiersData[t.name]=re({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,n=t.options,r=n.gpuAcceleration,i=void 0===r||r,o=n.adaptive,s=void 0===o||o,a=n.roundOffsets,c=void 0===a||a,l={placement:Lt(e.placement),variation:Kt(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:i,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,Ht(Object.assign({},l,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:c})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,Ht(Object.assign({},l,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach(function(t){var n=e.styles[t]||{},r=e.attributes[t]||{},i=e.elements[t];Ot(i)&&wt(i)&&(Object.assign(i.style,n),Object.keys(r).forEach(function(t){var e=r[t];!1===e?i.removeAttribute(t):i.setAttribute(t,!0===e?"":e)}))})},effect:function(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(t){var r=e.elements[t],i=e.attributes[t]||{},o=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:n[t]).reduce(function(t,e){return t[e]="",t},{});Ot(r)&&wt(r)&&(Object.assign(r.style,o),Object.keys(i).forEach(function(t){r.removeAttribute(t)}))})}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,n=t.name,r=t.options.offset,i=void 0===r?[0,0]:r,o=yt.reduce(function(t,n){return t[n]=function(t,e,n){var r=Lt(t),i=[vt,ft].indexOf(r)>=0?-1:1,o="function"==typeof n?n(Object.assign({},e,{placement:t})):n,s=o[0],a=o[1];return s=s||0,a=(a||0)*i,[vt,pt].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}(n,e.rects,i),t},{}),s=o[e.placement],a=s.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=s.x,e.modifiersData.popperOffsets.y+=a),e.modifiersData[n]=o}},{name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var i=n.mainAxis,o=void 0===i||i,s=n.altAxis,a=void 0===s||s,c=n.fallbackPlacements,l=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,h=n.flipVariations,p=void 0===h||h,v=n.allowedAutoPlacements,g=e.options.placement,m=Lt(g),y=c||(m!==g&&p?function(t){if("auto"===Lt(t))return[];var e=Jt(t);return[Xt(t),e,Xt(e)]}(g):[Jt(g)]),b=[g].concat(y).reduce(function(t,n){return t.concat("auto"===Lt(n)?oe(e,{placement:n,boundary:u,rootBoundary:d,padding:l,flipVariations:p,allowedAutoPlacements:v}):n)},[]),w=e.rects.reference,E=e.rects.popper,x=new Map,O=!0,P=b[0],L=0;L<b.length;L++){var k=b[L],_=Lt(k),A="start"===Kt(k),C=[ft,ht].indexOf(_)>=0,j=C?"width":"height",S=ie(e,{placement:k,boundary:u,rootBoundary:d,altBoundary:f,padding:l}),D=C?A?pt:vt:A?ht:ft;w[j]>E[j]&&(D=Jt(D));var T=Jt(D),I=[];if(o&&I.push(S[_]<=0),a&&I.push(S[D]<=0,S[T]<=0),I.every(function(t){return t})){P=k,O=!1;break}x.set(k,I)}if(O)for(var M=function(t){var e=b.find(function(e){var n=x.get(e);if(n)return n.slice(0,t).every(function(t){return t})});if(e)return P=e,"break"},q=p?3:1;q>0&&"break"!==M(q);q--);e.placement!==P&&(e.modifiersData[r]._skip=!0,e.placement=P,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,r=t.name,i=n.mainAxis,o=void 0===i||i,s=n.altAxis,a=void 0!==s&&s,c=n.tether,l=void 0===c||c,u=n.tetherOffset,d=void 0===u?0:u,f=ie(e,{boundary:n.boundary,rootBoundary:n.rootBoundary,padding:n.padding,altBoundary:n.altBoundary}),h=Lt(e.placement),p=Kt(e.placement),v=!p,g=Ft(h),m="x"===g?"y":"x",y=e.modifiersData.popperOffsets,b=e.rects.reference,w=e.rects.popper,E="function"==typeof d?d(Object.assign({},e.rects,{placement:e.placement})):d,x="number"==typeof E?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),O=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,P={x:0,y:0};if(y){if(o){var L,k="y"===g?ft:vt,_="y"===g?ht:pt,A="y"===g?"height":"width",C=y[g],j=C+f[k],S=C-f[_],D=l?-w[A]/2:0,T="start"===p?b[A]:w[A],I="start"===p?-w[A]:-b[A],M=e.elements.arrow,q=l&&M?jt(M):{width:0,height:0},R=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},F=R[k],N=R[_],B=Nt(0,b[A],q[A]),V=v?b[A]/2-D-B-F-x.mainAxis:T-B-F-x.mainAxis,K=v?-b[A]/2+D+B+N+x.mainAxis:I+B+N+x.mainAxis,W=e.elements.arrow&&Rt(e.elements.arrow),H=null!=(L=null==O?void 0:O[g])?L:0,z=C+K-H,Q=Nt(l?_t(j,C+V-H-(W?"y"===g?W.clientTop||0:W.clientLeft||0:0)):j,C,l?kt(S,z):S);y[g]=Q,P[g]=Q-C}if(a){var J,U=y[m],X="y"===m?"height":"width",Y=U+f["x"===g?ft:vt],Z=U-f["x"===g?ht:pt],G=-1!==[ft,vt].indexOf(h),$=null!=(J=null==O?void 0:O[m])?J:0,tt=G?Y:U-b[X]-w[X]-$+x.altAxis,et=G?U+b[X]+w[X]-$-x.altAxis:Z,nt=l&&G?function(t,e,n){var r=Nt(t,e,n);return r>n?n:r}(tt,U,et):Nt(l?tt:Y,U,l?et:Z);y[m]=nt,P[m]=nt-U}e.modifiersData[r]=P}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,n=t.state,r=t.name,i=t.options,o=n.elements.arrow,s=n.modifiersData.popperOffsets,a=Lt(n.placement),c=Ft(a),l=[vt,pt].indexOf(a)>=0?"height":"width";if(o&&s){var u=function(t,e){return Bt("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:Vt(t,gt))}(i.padding,n),d=jt(o),f="y"===c?ft:vt,h="y"===c?ht:pt,p=n.rects.reference[l]+n.rects.reference[c]-s[c]-n.rects.popper[l],v=s[c]-n.rects.reference[c],g=Rt(o),m=g?"y"===c?g.clientHeight||0:g.clientWidth||0:0,y=m/2-d[l]/2+(p/2-v/2),b=Nt(u[f],y,m-d[l]-u[h]);n.modifiersData[r]=((e={})[c]=b,e.centerOffset=b-y,e)}},effect:function(t){var e=t.state,n=t.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=e.elements.popper.querySelector(r)))&&St(e.elements.popper,r)&&(e.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,n=t.name,r=e.rects.reference,i=e.rects.popper,o=e.modifiersData.preventOverflow,s=ie(e,{elementContext:"reference"}),a=ie(e,{altBoundary:!0}),c=se(s,r),l=se(a,i,o),u=ae(c),d=ae(l);e.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]}),pe=function(t){try{var e=this;if(!t)return Promise.resolve(e.collection);var n=e.collection.findIndex(function(e){return e.id===t.id});if(n>=0){var r=e.collection[n];"opened"===r.state&&r.close(),r.popper.destroy(),ve(r),Object.getOwnPropertyNames(r).forEach(function(t){delete r[t]}),e.collection.splice(n,1)}return Promise.resolve(e.collection)}catch(t){return Promise.reject(t)}};function ve(t){return t.__eventListeners&&(t.__eventListeners.forEach(function(e){e.el.forEach(function(n){e.type.forEach(function(r){t[n].removeEventListener(r,e.listener,!1)})})}),delete t.__eventListeners),t}var ge=function(t){try{var e=this,n=rt.call(e,t);return n.target.classList.add(e.settings.stateActive),n.trigger.hasAttribute("aria-controls")&&n.trigger.setAttribute("aria-expanded","true"),n.config=et(n.target,e.settings),n.popper.setOptions({placement:n.config.placement,modifiers:[{name:"eventListeners",enabled:!0}].concat((r=n.config,[{name:"offset",options:{offset:[0,parseInt(r.offset,10)]}},{name:"preventOverflow",options:{padding:nt(r["overflow-padding"])}},{name:"flip",options:{padding:nt(r["flip-padding"])}},{name:"arrow",options:{element:r["arrow-element"],padding:nt(r["arrow-padding"])}}]))}),n.popper.update(),n.state="opened",Promise.resolve(n)}catch(t){return Promise.reject(t)}var r},me=function(t,e){try{var n=this;pe.call(n,e);var r=n,i={open:function(){return ge.call(r,this)},close:function(){return at.call(r,this)},deregister:function(){return pe.call(r,this)}},o=y({id:e.id,state:"closed",trigger:t,target:e,popper:he(t,e),config:et(e,n.settings)},i);o.trigger.hasAttribute("aria-controls")&&o.trigger.setAttribute("aria-expanded","false"),ye.call(n,o),n.collection.push(o);var s=function(){if(o.target.classList.contains(n.settings.stateActive))return Promise.resolve(o.open()).then(function(){dt.call(n,o)})}();return Promise.resolve(s&&s.then?s.then(function(){return o}):o)}catch(t){return Promise.reject(t)}};function ye(t){return t.__eventListeners||("hover"===t.config.event?(t.__eventListeners=[{el:["trigger"],type:["mouseenter","focus"],listener:ge.bind(this,t)},{el:["trigger","target"],type:["mouseleave","focusout"],listener:ct.bind(this,t)}],t.__eventListeners.forEach(function(e){e.el.forEach(function(n){e.type.forEach(function(r){t[n].addEventListener(r,e.listener,!1)})})})):(t.__eventListeners=[{el:["trigger"],type:["click"],listener:lt.bind(this,t)}],t.__eventListeners.forEach(function(e){e.el.forEach(function(n){e.type.forEach(function(r){t[n].addEventListener(r,e.listener,!1)})})}))),t}var be=/*#__PURE__*/function(t){function e(e){var n;return(n=t.call(this)||this).defaults=tt,n.settings=y({},n.defaults,e),n.memory={},n.__handlerKeydown=ut.bind(E(n)),n.settings.autoInit&&n.init(),n}b(e,t);var n=e.prototype;return n.init=function(t){try{var e=this;t&&(e.settings=y({},e.settings,t));var n=document.querySelectorAll(e.settings.selectorPopover);return Promise.resolve(e.registerCollection(n)).then(function(){e.settings.eventListeners&&e.initEventListeners(!1)})}catch(t){return Promise.reject(t)}},n.destroy=function(){try{var t=this;return t.memory={},Promise.resolve(t.deregisterCollection()).then(function(){t.settings.eventListeners&&t.destroyEventListeners(!1)})}catch(t){return Promise.reject(t)}},n.initEventListeners=function(t){var e=this;void 0===t&&(t=!0),t&&this.collection.forEach(function(t){ye.call(e,t)}),document.addEventListener("keydown",this.__handlerKeydown,!1)},n.destroyEventListeners=function(t){void 0===t&&(t=!0),t&&this.collection.forEach(function(t){ve(t)}),document.removeEventListener("keydown",this.__handlerKeydown,!1)},n.register=function(t){var e=ot.call(this,t);return e.error?Promise.reject(e.error):me.call(this,e.trigger,e.target)},n.deregister=function(t){var e=this.get(it.call(this,t));return pe.call(this,e)},n.open=function(t){return ge.call(this,t)},n.close=function(t){return at.call(this,t)},e}(a);exports.Checkbox=O,exports.Drawer=R,exports.Modal=$,exports.Popover=be,exports.core=m;
|
|
2
2
|
//# sourceMappingURL=scripts.js.map
|