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qF,OAAOmxF,SAAS,CAAEjpF,IAAK,EAAGkpF,SAAU,UACrC,EAGAz0F,SAASsD,KAAKqrC,YAAY4lD,GAG1B,MAAMG,EAAgB,IAAIt0C,QAAQm0C,EAAiB,CAClDzvD,UAAW,aACXsa,eAAgB,WAChBa,iBAAiB,EACjBX,QAASA,KACRi1C,EAAgBzxF,UAAUmJ,OAAO,SAAU,gBAAgB,IAG7DyoF,EAAc/iD,OAGd,MAAMgjD,EAAgB,IAAIv0C,QAAQm0C,EAAiB,CAClDzvD,UAAW,gBACXsa,eAAgB,WAChBa,iBAAiB,EACjBX,QAASA,KACRi1C,EAAgBzxF,UAAUmJ,OAAO,aAAa,IAGhD0oF,EAAchjD,OAGd,IAAIijD,GAA8B,EAElC50F,SAAS0D,iBAAiB,UAAU,KAEnC,MAAMmxF,EAAexxF,OAAOgqD,QAI3BwnC,GAAgBP,KAChB,IAAUM,GAEVF,EAAcj0C,iBACdm0C,GAA8B,GAE9BC,EAAeP,KACf,IAASM,IAETD,EAAcl0C,iBACdm0C,GAA8B,EAC/B,GAEF","sources":["webpack://BSUwp/../../src/js/mdb/dom/data.js","webpack://BSUwp/../../src/js/mdb/util/index.js","webpack://BSUwp/../../src/js/mdb/dom/event-handler.js","webpack://BSUwp/../../src/js/mdb/dom/manipulator.js","webpack://BSUwp/../../src/js/mdb/dom/selector-engine.js","webpack://BSUwp/../../src/js/bootstrap/mdb-prefix/dom/data.js","webpack://BSUwp/../../src/js/bootstrap/mdb-prefix/util/index.js","webpack://BSUwp/../../src/js/bootstrap/mdb-prefix/dom/event-handler.js","webpack://BSUwp/../../src/js/bootstrap/mdb-prefix/dom/manipulator.js","webpack://BSUwp/../../src/js/bootstrap/mdb-prefix/util/config.js","webpack://BSUwp/../../src/js/bootstrap/mdb-prefix/base-component.js","webpack://BSUwp/../../src/js/bootstrap/mdb-prefix/button.js","webpack://BSUwp/../../src/js/autoinit/init.js","webpack://BSUwp/../../src/js/free/button.js","webpack://BSUwp/../../src/js/bootstrap/mdb-prefix/dom/selector-engine.js","webpack://BSUwp/../../src/js/bootstrap/mdb-prefix/util/backdrop.js","webpack://BSUwp/../../src/js/bootstrap/mdb-prefix/util/component-functions.js","webpack://BSUwp/../../src/js/bootstrap/mdb-prefix/util/focustrap.js","webpack://BSUwp/../../src/js/bootstrap/mdb-prefix/util/scrollbar.js","webpack://BSUwp/../../src/js/bootstrap/mdb-prefix/offcanvas.js","webpack://BSUwp/../../src/js/bootstrap/mdb-prefix/util/swipe.js","webpack://BSUwp/../../src/js/bootstrap/mdb-prefix/carousel.js","webpack://BSUwp/../../src/js/free/carousel.js","webpack://BSUwp/../../node_modules/@popperjs/core/lib/enums.js","webpack://BSUwp/../../node_modules/@popperjs/core/lib/dom-utils/getNodeName.js","webpack://BSUwp/../../node_modules/@popperjs/core/lib/dom-utils/getWindow.js","webpack://BSUwp/../../node_modules/@popperjs/core/lib/dom-utils/instanceOf.js","webpack://BSUwp/../../node_modules/@popperjs/core/lib/modifiers/applyStyles.js","webpack://BSUwp/../../node_modules/@popperjs/core/lib/utils/getBasePlacement.js","webpack://BSUwp/../../node_modules/@popperjs/core/lib/utils/math.js","webpack://BSUwp/../../node_modules/@popperjs/core/lib/utils/userAgent.js","webpack://BSUwp/../../node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js","webpack://BSUwp/../../node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js","webpack://BSUwp/../../node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js","webpack://BSUwp/../../node_modules/@popperjs/core/lib/dom-utils/contains.js","webpack://BSUwp/../../node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js","webpack://BSUwp/../../node_modules/@popperjs/core/lib/dom-utils/isTableElement.js","webpack://BSUwp/../../node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js","webpack://BSUwp/../../node_modules/@popperjs/core/lib/dom-utils/getParentNode.js","webpack://BSUwp/../../node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js","webpack://BSUwp/../../node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js","webpack://BSUwp/../../node_modules/@popperjs/core/lib/utils/within.js","webpack://BSUwp/../../node_modules/@popperjs/core/lib/utils/mergePaddingObject.js","webpack://BSUwp/../../node_modules/@popperjs/core/lib/utils/getFreshSideObject.js","webpack://BSUwp/../../node_modules/@popperjs/core/lib/utils/expandToHashMap.js","webpack://BSUwp/../../node_modules/@popperjs/core/lib/modifiers/arrow.js","webpack://BSUwp/../../node_modules/@popperjs/core/lib/utils/getVariation.js","webpack://BSUwp/../../node_modules/@popperjs/core/lib/modifiers/computeStyles.js","webpack://BSUwp/../../node_modules/@popperjs/core/lib/modifiers/eventListeners.js","webpack://BSUwp/../../node_modules/@popperjs/core/lib/utils/getOppositePlacement.js","webpack://BSUwp/../../node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js","webpack://BSUwp/../../node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js","webpack://BSUwp/../../node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js","webpack://BSUwp/../../node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js","webpack://BSUwp/../../node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js","webpack://BSUwp/../../node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js","webpack://BSUwp/../../node_modules/@popperjs/core/lib/utils/rectToClientRect.js","webpack://BSUwp/../../node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js","webpack://BSUwp/../../node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js","webpack://BSUwp/../../node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js","webpack://BSUwp/../../node_modules/@popperjs/core/lib/utils/computeOffsets.js","webpack://BSUwp/../../node_modules/@popperjs/core/lib/utils/detectOverflow.js","webpack://BSUwp/../../node_modules/@popperjs/core/lib/modifiers/flip.js","webpack://BSUwp/../../node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js","webpack://BSUwp/../../node_modules/@popperjs/core/lib/modifiers/hide.js","webpack://BSUwp/../../node_modules/@popperjs/core/lib/modifiers/offset.js","webpack://BSUwp/../../node_modules/@popperjs/core/lib/modifiers/popperOffsets.js","webpack://BSUwp/../../node_modules/@popperjs/core/lib/modifiers/preventOverflow.js","webpack://BSUwp/../../node_modules/@popperjs/core/lib/utils/getAltAxis.js","webpack://BSUwp/../../node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js","webpack://BSUwp/../../node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js","webpack://BSUwp/../../node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js","webpack://BSUwp/../../node_modules/@popperjs/core/lib/utils/orderModifiers.js","webpack://BSUwp/../../node_modules/@popperjs/core/lib/createPopper.js","webpack://BSUwp/../../node_modules/@popperjs/core/lib/utils/debounce.js","webpack://BSUwp/../../node_modules/@popperjs/core/lib/utils/mergeByName.js","webpack://BSUwp/../../node_modules/@popperjs/core/lib/popper-lite.js","webpack://BSUwp/../../node_modules/@popperjs/core/lib/popper.js","webpack://BSUwp/../../src/js/bootstrap/mdb-prefix/util/sanitizer.js","webpack://BSUwp/../../src/js/bootstrap/mdb-prefix/util/template-factory.js","webpack://BSUwp/../../src/js/bootstrap/mdb-prefix/tooltip.js","webpack://BSUwp/../../src/js/bootstrap/mdb-prefix/tab.js","webpack://BSUwp/../../src/js/free/tab.js","webpack://BSUwp/../../src/js/free/tooltip.js","webpack://BSUwp/../../node_modules/detect-autofill/dist/detect-autofill.js","webpack://BSUwp/../../src/js/free/base-component.js","webpack://BSUwp/../../src/js/free/input.js","webpack://BSUwp/../../src/js/bootstrap/mdb-prefix/collapse.js","webpack://BSUwp/../../src/js/free/collapse.js","webpack://BSUwp/../../src/js/bootstrap/mdb-prefix/dropdown.js","webpack://BSUwp/../../src/js/free/dropdown.js","webpack://BSUwp/../../src/js/free/ripple.js","webpack://BSUwp/../../src/js/pro/animate.js","webpack://BSUwp/../../src/js/mdb/perfect-scrollbar/lib/css.js","webpack://BSUwp/../../src/js/mdb/perfect-scrollbar/lib/dom.js","webpack://BSUwp/../../src/js/mdb/perfect-scrollbar/lib/class-names.js","webpack://BSUwp/../../src/js/mdb/perfect-scrollbar/lib/event-manager.js","webpack://BSUwp/../../src/js/mdb/perfect-scrollbar/process-scroll-diff.js","webpack://BSUwp/../../src/js/mdb/perfect-scrollbar/lib/util.js","webpack://BSUwp/../../src/js/mdb/perfect-scrollbar/update-geometry.js","webpack://BSUwp/../../src/js/mdb/perfect-scrollbar/handlers/drag-thumb.js","webpack://BSUwp/../../src/js/mdb/perfect-scrollbar/index.js","webpack://BSUwp/../../src/js/mdb/perfect-scrollbar/handlers/click-rail.js","webpack://BSUwp/../../src/js/mdb/perfect-scrollbar/handlers/keyboard.js","webpack://BSUwp/../../src/js/mdb/perfect-scrollbar/handlers/mouse-wheel.js","webpack://BSUwp/../../src/js/mdb/perfect-scrollbar/handlers/touch.js","webpack://BSUwp/../../src/js/mdb/util/focusTrap.js","webpack://BSUwp/../../src/js/mdb/util/keycodes.js","webpack://BSUwp/../../src/js/mdb/util/touch/swipe.js","webpack://BSUwp/../../src/js/mdb/util/touch/index.js","webpack://BSUwp/../../src/js/pro/sidenav.js","webpack://BSUwp/../../src/js/bootstrap/mdb-prefix/alert.js","webpack://BSUwp/../../src/js/mdb/util/stack.js","webpack://BSUwp/../../src/js/pro/alert.js","webpack://BSUwp/../../src/js/pro/navbar.js","webpack://BSUwp/../../src/js/pro/datatable/html/pagination.js","webpack://BSUwp/../../src/js/pro/select/select-option.js","webpack://BSUwp/../../src/js/pro/select/selection-model.js","webpack://BSUwp/../../src/js/pro/select/util.js","webpack://BSUwp/../../src/js/pro/select/templates.js","webpack://BSUwp/../../src/js/pro/select/index.js","webpack://BSUwp/../../node_modules/perfect-scrollbar/dist/perfect-scrollbar.esm.js","webpack://BSUwp/../../src/js/pro/perfect-scrollbar.js","webpack://BSUwp/../../src/js/pro/loading-management/index.js","webpack://BSUwp/../../src/js/pro/loading-management/templates.js","webpack://BSUwp/../../src/js/mdb/util/sanitizer.js","webpack://BSUwp/../../src/js/pro/autocomplete/templates.js","webpack://BSUwp/../../src/js/pro/autocomplete/index.js","webpack://BSUwp/../../src/js/bootstrap/mdb-prefix/modal.js","webpack://BSUwp/../../src/js/mdb/util/scrollbar.js","webpack://BSUwp/../../src/js/pro/modal.js","webpack://BSUwp/../../src/js/pro/clipboard.js","webpack://BSUwp/../../src/js/pro/chips/templates.js","webpack://BSUwp/../../src/js/pro/chips/chip.js","webpack://BSUwp/../../src/js/pro/chips/index.js","webpack://BSUwp/../../src/js/pro/date-time-picker/index.js","webpack://BSUwp/../../src/js/autoinit/callbacks/free.js","webpack://BSUwp/../../src/js/autoinit/callbacks/pro.js","webpack://BSUwp/../../src/js/autoinit/initSelectors/free.js","webpack://BSUwp/../../src/js/pro/charts/chartsDefaults.js","webpack://BSUwp/../../src/js/autoinit/initSelectors/pro.js","webpack://BSUwp/../../src/js/autoinit/callbacks/charts.js","webpack://BSUwp/../../src/js/autoinit/index.pro.js","webpack://BSUwp/./node_modules/bigpicture/src/BigPicture.js","webpack://BSUwp/./assets/src/js/frontend/frontend.js"],"sourcesContent":["/**\n * --------------------------------------------------------------------------\n * Bootstrap (v5.0.0-beta2): dom/data.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\n * --------------------------------------------------------------------------\n */\n\n/**\n * ------------------------------------------------------------------------\n * Constants\n * ------------------------------------------------------------------------\n */\n\nconst mapData = (() => {\n const storeData = {};\n let id = 1;\n return {\n set(element, key, data) {\n if (typeof element[key] === 'undefined') {\n element[key] = {\n key,\n id,\n };\n id++;\n }\n\n storeData[element[key].id] = data;\n },\n get(element, key) {\n if (!element || typeof element[key] === 'undefined') {\n return null;\n }\n\n const keyProperties = element[key];\n if (keyProperties.key === key) {\n return storeData[keyProperties.id];\n }\n\n return null;\n },\n delete(element, key) {\n if (typeof element[key] === 'undefined') {\n return;\n }\n\n const keyProperties = element[key];\n if (keyProperties.key === key) {\n delete storeData[keyProperties.id];\n delete element[key];\n }\n },\n };\n})();\n\nconst Data = {\n setData(instance, key, data) {\n mapData.set(instance, key, data);\n },\n getData(instance, key) {\n return mapData.get(instance, key);\n },\n removeData(instance, key) {\n mapData.delete(instance, key);\n },\n};\n\nexport default Data;\n","/**\n * --------------------------------------------------------------------------\n * Bootstrap (v5.0.0-beta2): util/index.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nconst MAX_UID = 1000000;\nconst MILLISECONDS_MULTIPLIER = 1000;\nconst TRANSITION_END = 'transitionend';\n\n// Shoutout AngusCroll (https://goo.gl/pxwQGp)\nconst toType = (obj) => {\n if (obj === null || obj === undefined) {\n return `${obj}`;\n }\n\n return {}.toString\n .call(obj)\n .match(/\\s([a-z]+)/i)[1]\n .toLowerCase();\n};\n\n/**\n * --------------------------------------------------------------------------\n * Public Util Api\n * --------------------------------------------------------------------------\n */\n\nconst getUID = (prefix) => {\n do {\n prefix += Math.floor(Math.random() * MAX_UID);\n } while (document.getElementById(prefix));\n\n return prefix;\n};\n\nconst getSelector = (element) => {\n let selector = element.getAttribute('data-mdb-target');\n\n if (!selector || selector === '#') {\n const hrefAttr = element.getAttribute('href');\n\n selector = hrefAttr && hrefAttr !== '#' ? hrefAttr.trim() : null;\n }\n\n return selector;\n};\n\nconst getSelectorFromElement = (element) => {\n const selector = getSelector(element);\n\n if (selector) {\n return document.querySelector(selector) ? selector : null;\n }\n\n return null;\n};\n\nconst getElementFromSelector = (element) => {\n const selector = getSelector(element);\n\n return selector ? document.querySelector(selector) : null;\n};\n\nconst getTransitionDurationFromElement = (element) => {\n if (!element) {\n return 0;\n }\n\n // Get transition-duration of the element\n let { transitionDuration, transitionDelay } = window.getComputedStyle(element);\n\n const floatTransitionDuration = Number.parseFloat(transitionDuration);\n const floatTransitionDelay = Number.parseFloat(transitionDelay);\n\n // Return 0 if element or transition duration is not found\n if (!floatTransitionDuration && !floatTransitionDelay) {\n return 0;\n }\n\n // If multiple durations are defined, take the first\n transitionDuration = transitionDuration.split(',')[0];\n transitionDelay = transitionDelay.split(',')[0];\n\n return (\n (Number.parseFloat(transitionDuration) + Number.parseFloat(transitionDelay)) *\n MILLISECONDS_MULTIPLIER\n );\n};\n\nconst triggerTransitionEnd = (element) => {\n element.dispatchEvent(new Event(TRANSITION_END));\n};\n\nconst isElement = (obj) => {\n if (!obj || typeof obj !== 'object') {\n return false;\n }\n\n if (typeof obj.jquery !== 'undefined') {\n obj = obj[0];\n }\n\n return typeof obj.nodeType !== 'undefined';\n};\n\nconst getElement = (obj) => {\n if (isElement(obj)) {\n // it's a jQuery object or a node element\n return obj.jquery ? obj[0] : obj;\n }\n\n if (typeof obj === 'string' && obj.length > 0) {\n return document.querySelector(obj);\n }\n\n return null;\n};\n\nconst emulateTransitionEnd = (element, duration) => {\n let called = false;\n const durationPadding = 5;\n const emulatedDuration = duration + durationPadding;\n\n function listener() {\n called = true;\n element.removeEventListener(TRANSITION_END, listener);\n }\n\n element.addEventListener(TRANSITION_END, listener);\n setTimeout(() => {\n if (!called) {\n triggerTransitionEnd(element);\n }\n }, emulatedDuration);\n};\n\nconst typeCheckConfig = (componentName, config, configTypes) => {\n Object.keys(configTypes).forEach((property) => {\n const expectedTypes = configTypes[property];\n const value = config[property];\n const valueType = value && isElement(value) ? 'element' : toType(value);\n\n if (!new RegExp(expectedTypes).test(valueType)) {\n throw new Error(\n `${componentName.toUpperCase()}: ` +\n `Option \"${property}\" provided type \"${valueType}\" ` +\n `but expected type \"${expectedTypes}\".`\n );\n }\n });\n};\n\nconst isVisible = (element) => {\n if (!element) {\n return false;\n }\n\n if (element.style && element.parentNode && element.parentNode.style) {\n const elementStyle = getComputedStyle(element);\n const parentNodeStyle = getComputedStyle(element.parentNode);\n\n return (\n elementStyle.display !== 'none' &&\n parentNodeStyle.display !== 'none' &&\n elementStyle.visibility !== 'hidden'\n );\n }\n\n return false;\n};\n\nconst isDisabled = (element) => {\n if (!element || element.nodeType !== Node.ELEMENT_NODE) {\n return true;\n }\n\n if (element.classList.contains('disabled')) {\n return true;\n }\n\n if (typeof element.disabled !== 'undefined') {\n return element.disabled;\n }\n\n return element.hasAttribute('disabled') && element.getAttribute('disabled') !== 'false';\n};\n\nconst findShadowRoot = (element) => {\n if (!document.documentElement.attachShadow) {\n return null;\n }\n\n // Can find the shadow root otherwise it'll return the document\n if (typeof element.getRootNode === 'function') {\n const root = element.getRootNode();\n return root instanceof ShadowRoot ? root : null;\n }\n\n if (element instanceof ShadowRoot) {\n return element;\n }\n\n // when we don't find a shadow root\n if (!element.parentNode) {\n return null;\n }\n\n return findShadowRoot(element.parentNode);\n};\n\nconst noop = () => function () {};\n\nconst reflow = (element) => element.offsetHeight;\n\nconst getjQuery = () => {\n const { jQuery } = window;\n\n if (jQuery && !document.body.hasAttribute('data-mdb-no-jquery')) {\n return jQuery;\n }\n\n return null;\n};\n\nconst onDOMContentLoaded = (callback) => {\n if (document.readyState === 'loading') {\n document.addEventListener('DOMContentLoaded', callback);\n } else {\n callback();\n }\n};\n\nconst isRTL = document.documentElement.dir === 'rtl';\n\nconst array = (collection) => {\n return Array.from(collection);\n};\n\nconst element = (tag) => {\n return document.createElement(tag);\n};\n\nconst defineJQueryPlugin = (plugin) => {\n onDOMContentLoaded(() => {\n const $ = getjQuery();\n\n /* istanbul ignore if */\n if ($) {\n const name = plugin.NAME;\n const JQUERY_NO_CONFLICT = $.fn[name];\n $.fn[name] = plugin.jQueryInterface;\n $.fn[name].Constructor = plugin;\n $.fn[name].noConflict = () => {\n $.fn[name] = JQUERY_NO_CONFLICT;\n return plugin.jQueryInterface;\n };\n }\n });\n};\n\nexport {\n getjQuery,\n TRANSITION_END,\n getUID,\n getSelectorFromElement,\n getElementFromSelector,\n getTransitionDurationFromElement,\n triggerTransitionEnd,\n isElement,\n getElement,\n emulateTransitionEnd,\n typeCheckConfig,\n isVisible,\n isDisabled,\n findShadowRoot,\n noop,\n reflow,\n array,\n element,\n onDOMContentLoaded,\n isRTL,\n defineJQueryPlugin,\n};\n","/**\n * --------------------------------------------------------------------------\n * Bootstrap (v5.0.0-beta2): dom/event-handler.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nimport { getjQuery } from '../util/index';\n\n/**\n * ------------------------------------------------------------------------\n * Constants\n * ------------------------------------------------------------------------\n */\n\nconst $ = getjQuery();\nconst namespaceRegex = /[^.]*(?=\\..*)\\.|.*/;\nconst stripNameRegex = /\\..*/;\nconst stripUidRegex = /::\\d+$/;\nconst eventRegistry = {}; // Events storage\nlet uidEvent = 1;\nconst customEvents = {\n mouseenter: 'mouseover',\n mouseleave: 'mouseout',\n};\nconst nativeEvents = [\n 'click',\n 'dblclick',\n 'mouseup',\n 'mousedown',\n 'contextmenu',\n 'mousewheel',\n 'DOMMouseScroll',\n 'mouseover',\n 'mouseout',\n 'mousemove',\n 'selectstart',\n 'selectend',\n 'keydown',\n 'keypress',\n 'keyup',\n 'orientationchange',\n 'touchstart',\n 'touchmove',\n 'touchend',\n 'touchcancel',\n 'pointerdown',\n 'pointermove',\n 'pointerup',\n 'pointerleave',\n 'pointercancel',\n 'gesturestart',\n 'gesturechange',\n 'gestureend',\n 'focus',\n 'blur',\n 'change',\n 'reset',\n 'select',\n 'submit',\n 'focusin',\n 'focusout',\n 'load',\n 'unload',\n 'beforeunload',\n 'resize',\n 'move',\n 'DOMContentLoaded',\n 'readystatechange',\n 'error',\n 'abort',\n 'scroll',\n];\n\n/**\n * ------------------------------------------------------------------------\n * Private methods\n * ------------------------------------------------------------------------\n */\n\nfunction getUidEvent(element, uid) {\n return (uid && `${uid}::${uidEvent++}`) || element.uidEvent || uidEvent++;\n}\n\nfunction getEvent(element) {\n const uid = getUidEvent(element);\n\n element.uidEvent = uid;\n eventRegistry[uid] = eventRegistry[uid] || {};\n\n return eventRegistry[uid];\n}\n\nfunction bootstrapHandler(element, fn) {\n return function handler(event) {\n event.delegateTarget = element;\n\n if (handler.oneOff) {\n EventHandler.off(element, event.type, fn);\n }\n\n return fn.apply(element, [event]);\n };\n}\n\nfunction bootstrapDelegationHandler(element, selector, fn) {\n return function handler(event) {\n const domElements = element.querySelectorAll(selector);\n\n for (let { target } = event; target && target !== this; target = target.parentNode) {\n for (let i = domElements.length; i--; '') {\n if (domElements[i] === target) {\n event.delegateTarget = target;\n\n if (handler.oneOff) {\n EventHandler.off(element, event.type, fn);\n }\n\n return fn.apply(target, [event]);\n }\n }\n }\n\n // To please ESLint\n return null;\n };\n}\n\nfunction findHandler(events, handler, delegationSelector = null) {\n const uidEventList = Object.keys(events);\n\n for (let i = 0, len = uidEventList.length; i < len; i++) {\n const event = events[uidEventList[i]];\n\n if (event.originalHandler === handler && event.delegationSelector === delegationSelector) {\n return event;\n }\n }\n\n return null;\n}\n\nfunction normalizeParams(originalTypeEvent, handler, delegationFn) {\n const delegation = typeof handler === 'string';\n const originalHandler = delegation ? delegationFn : handler;\n\n // allow to get the native events from namespaced events ('click.bs.button' --> 'click')\n let typeEvent = originalTypeEvent.replace(stripNameRegex, '');\n const custom = customEvents[typeEvent];\n\n if (custom) {\n typeEvent = custom;\n }\n\n const isNative = nativeEvents.indexOf(typeEvent) > -1;\n\n if (!isNative) {\n typeEvent = originalTypeEvent;\n }\n\n return [delegation, originalHandler, typeEvent];\n}\n\nfunction addHandler(element, originalTypeEvent, handler, delegationFn, oneOff) {\n if (typeof originalTypeEvent !== 'string' || !element) {\n return;\n }\n\n if (!handler) {\n handler = delegationFn;\n delegationFn = null;\n }\n\n const [delegation, originalHandler, typeEvent] = normalizeParams(\n originalTypeEvent,\n handler,\n delegationFn\n );\n const events = getEvent(element);\n const handlers = events[typeEvent] || (events[typeEvent] = {});\n const previousFn = findHandler(handlers, originalHandler, delegation ? handler : null);\n\n if (previousFn) {\n previousFn.oneOff = previousFn.oneOff && oneOff;\n\n return;\n }\n\n const uid = getUidEvent(originalHandler, originalTypeEvent.replace(namespaceRegex, ''));\n const fn = delegation\n ? bootstrapDelegationHandler(element, handler, delegationFn)\n : bootstrapHandler(element, handler);\n\n fn.delegationSelector = delegation ? handler : null;\n fn.originalHandler = originalHandler;\n fn.oneOff = oneOff;\n fn.uidEvent = uid;\n handlers[uid] = fn;\n\n element.addEventListener(typeEvent, fn, delegation);\n}\n\nfunction removeHandler(element, events, typeEvent, handler, delegationSelector) {\n const fn = findHandler(events[typeEvent], handler, delegationSelector);\n\n if (!fn) {\n return;\n }\n\n element.removeEventListener(typeEvent, fn, Boolean(delegationSelector));\n delete events[typeEvent][fn.uidEvent];\n}\n\nfunction removeNamespacedHandlers(element, events, typeEvent, namespace) {\n const storeElementEvent = events[typeEvent] || {};\n\n Object.keys(storeElementEvent).forEach((handlerKey) => {\n if (handlerKey.indexOf(namespace) > -1) {\n const event = storeElementEvent[handlerKey];\n\n removeHandler(element, events, typeEvent, event.originalHandler, event.delegationSelector);\n }\n });\n}\n\nconst EventHandler = {\n on(element, event, handler, delegationFn) {\n addHandler(element, event, handler, delegationFn, false);\n },\n\n one(element, event, handler, delegationFn) {\n addHandler(element, event, handler, delegationFn, true);\n },\n\n extend(element, events, componentName) {\n events.forEach((event) => {\n EventHandler.on(element, `${event.name}.bs.${componentName}`, (e) => {\n const eventParameters = {};\n if (event.parametersToCopy) {\n event.parametersToCopy.forEach((param) => {\n eventParameters[param] = e[param];\n });\n }\n\n const mdbEvent = EventHandler.trigger(\n element,\n `${event.name}.mdb.${componentName}`,\n eventParameters\n );\n\n if (mdbEvent.defaultPrevented) {\n e.preventDefault();\n }\n });\n });\n },\n\n off(element, originalTypeEvent, handler, delegationFn) {\n if (typeof originalTypeEvent !== 'string' || !element) {\n return;\n }\n\n const [delegation, originalHandler, typeEvent] = normalizeParams(\n originalTypeEvent,\n handler,\n delegationFn\n );\n const inNamespace = typeEvent !== originalTypeEvent;\n const events = getEvent(element);\n const isNamespace = originalTypeEvent.charAt(0) === '.';\n\n if (typeof originalHandler !== 'undefined') {\n // Simplest case: handler is passed, remove that listener ONLY.\n if (!events || !events[typeEvent]) {\n return;\n }\n\n removeHandler(element, events, typeEvent, originalHandler, delegation ? handler : null);\n return;\n }\n\n if (isNamespace) {\n Object.keys(events).forEach((elementEvent) => {\n removeNamespacedHandlers(element, events, elementEvent, originalTypeEvent.slice(1));\n });\n }\n\n const storeElementEvent = events[typeEvent] || {};\n Object.keys(storeElementEvent).forEach((keyHandlers) => {\n const handlerKey = keyHandlers.replace(stripUidRegex, '');\n\n if (!inNamespace || originalTypeEvent.indexOf(handlerKey) > -1) {\n const event = storeElementEvent[keyHandlers];\n\n removeHandler(element, events, typeEvent, event.originalHandler, event.delegationSelector);\n }\n });\n },\n\n trigger(element, event, args) {\n if (typeof event !== 'string' || !element) {\n return null;\n }\n\n const typeEvent = event.replace(stripNameRegex, '');\n const inNamespace = event !== typeEvent;\n const isNative = nativeEvents.indexOf(typeEvent) > -1;\n\n let jQueryEvent;\n let bubbles = true;\n let nativeDispatch = true;\n let defaultPrevented = false;\n let evt = null;\n\n if (inNamespace && $) {\n jQueryEvent = $.Event(event, args);\n\n $(element).trigger(jQueryEvent);\n bubbles = !jQueryEvent.isPropagationStopped();\n nativeDispatch = !jQueryEvent.isImmediatePropagationStopped();\n defaultPrevented = jQueryEvent.isDefaultPrevented();\n }\n\n if (isNative) {\n evt = document.createEvent('HTMLEvents');\n evt.initEvent(typeEvent, bubbles, true);\n } else {\n evt = new CustomEvent(event, {\n bubbles,\n cancelable: true,\n });\n }\n\n // merge custom informations in our event\n if (typeof args !== 'undefined') {\n Object.keys(args).forEach((key) => {\n Object.defineProperty(evt, key, {\n get() {\n return args[key];\n },\n });\n });\n }\n\n if (defaultPrevented) {\n evt.preventDefault();\n }\n\n if (nativeDispatch) {\n element.dispatchEvent(evt);\n }\n\n if (evt.defaultPrevented && typeof jQueryEvent !== 'undefined') {\n jQueryEvent.preventDefault();\n }\n\n return evt;\n },\n};\n\nexport const EventHandlerMulti = {\n on(element, eventsName, handler, delegationFn) {\n const events = eventsName.split(' ');\n\n for (let i = 0; i < events.length; i++) {\n EventHandler.on(element, events[i], handler, delegationFn);\n }\n },\n off(element, originalTypeEvent, handler, delegationFn) {\n const events = originalTypeEvent.split(' ');\n\n for (let i = 0; i < events.length; i++) {\n EventHandler.off(element, events[i], handler, delegationFn);\n }\n },\n};\n\nexport default EventHandler;\n","/**\n * --------------------------------------------------------------------------\n * Bootstrap (v5.0.0-beta2): dom/manipulator.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nfunction normalizeData(val) {\n if (val === 'true') {\n return true;\n }\n\n if (val === 'false') {\n return false;\n }\n\n if (val === Number(val).toString()) {\n return Number(val);\n }\n\n if (val === '' || val === 'null') {\n return null;\n }\n\n return val;\n}\n\nfunction normalizeDataKey(key) {\n return key.replace(/[A-Z]/g, (chr) => `-${chr.toLowerCase()}`);\n}\n\nconst Manipulator = {\n setDataAttribute(element, key, value) {\n element.setAttribute(`data-mdb-${normalizeDataKey(key)}`, value);\n },\n\n removeDataAttribute(element, key) {\n element.removeAttribute(`data-mdb-${normalizeDataKey(key)}`);\n },\n\n getDataAttributes(element) {\n if (!element) {\n return {};\n }\n\n const attributes = {\n ...element.dataset,\n };\n\n Object.keys(attributes)\n .filter((key) => key.startsWith('mdb'))\n .forEach((key) => {\n let pureKey = key.replace(/^mdb/, '');\n pureKey = pureKey.charAt(0).toLowerCase() + pureKey.slice(1, pureKey.length);\n attributes[pureKey] = normalizeData(attributes[key]);\n });\n\n return attributes;\n },\n\n getDataAttribute(element, key) {\n return normalizeData(element.getAttribute(`data-mdb-${normalizeDataKey(key)}`));\n },\n\n offset(element) {\n const rect = element.getBoundingClientRect();\n\n return {\n top: rect.top + document.body.scrollTop,\n left: rect.left + document.body.scrollLeft,\n };\n },\n\n position(element) {\n return {\n top: element.offsetTop,\n left: element.offsetLeft,\n };\n },\n\n style(element, style) {\n Object.assign(element.style, style);\n },\n\n toggleClass(element, className) {\n if (!element) {\n return;\n }\n\n if (element.classList.contains(className)) {\n element.classList.remove(className);\n } else {\n element.classList.add(className);\n }\n },\n\n addClass(element, className) {\n if (element.classList.contains(className)) return;\n element.classList.add(className);\n },\n\n addStyle(element, style) {\n Object.keys(style).forEach((property) => {\n element.style[property] = style[property];\n });\n },\n\n removeClass(element, className) {\n if (!element.classList.contains(className)) return;\n element.classList.remove(className);\n },\n\n hasClass(element, className) {\n return element.classList.contains(className);\n },\n};\n\nexport default Manipulator;\n","/**\n * --------------------------------------------------------------------------\n * Bootstrap (v5.0.0-beta2): dom/selector-engine.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\n * --------------------------------------------------------------------------\n */\n\n/**\n * ------------------------------------------------------------------------\n * Constants\n * ------------------------------------------------------------------------\n */\n\nconst NODE_TEXT = 3;\n\nconst SelectorEngine = {\n closest(element, selector) {\n return element.closest(selector);\n },\n\n matches(element, selector) {\n return element.matches(selector);\n },\n\n find(selector, element = document.documentElement) {\n return [].concat(...Element.prototype.querySelectorAll.call(element, selector));\n },\n\n findOne(selector, element = document.documentElement) {\n return Element.prototype.querySelector.call(element, selector);\n },\n\n children(element, selector) {\n const children = [].concat(...element.children);\n\n return children.filter((child) => child.matches(selector));\n },\n\n parents(element, selector) {\n const parents = [];\n\n let ancestor = element.parentNode;\n\n while (ancestor && ancestor.nodeType === Node.ELEMENT_NODE && ancestor.nodeType !== NODE_TEXT) {\n if (this.matches(ancestor, selector)) {\n parents.push(ancestor);\n }\n\n ancestor = ancestor.parentNode;\n }\n\n return parents;\n },\n\n prev(element, selector) {\n let previous = element.previousElementSibling;\n\n while (previous) {\n if (previous.matches(selector)) {\n return [previous];\n }\n\n previous = previous.previousElementSibling;\n }\n\n return [];\n },\n\n next(element, selector) {\n let next = element.nextElementSibling;\n\n while (next) {\n if (this.matches(next, selector)) {\n return [next];\n }\n\n next = next.nextElementSibling;\n }\n\n return [];\n },\n};\n\nexport default SelectorEngine;\n","/**\n * --------------------------------------------------------------------------\n * Bootstrap dom/data.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\n/**\n * Constants\n */\n\nconst elementMap = new Map();\n\nexport default {\n set(element, key, instance) {\n if (!elementMap.has(element)) {\n elementMap.set(element, new Map());\n }\n\n const instanceMap = elementMap.get(element);\n\n // make it clear we only want one instance per element\n // can be removed later when multiple key/instances are fine to be used\n if (!instanceMap.has(key) && instanceMap.size !== 0) {\n // eslint-disable-next-line no-console\n console.error(\n `Bootstrap doesn't allow more than one instance per element. Bound instance: ${\n Array.from(instanceMap.keys())[0]\n }.`\n );\n return;\n }\n\n instanceMap.set(key, instance);\n },\n\n get(element, key) {\n if (elementMap.has(element)) {\n return elementMap.get(element).get(key) || null;\n }\n\n return null;\n },\n\n remove(element, key) {\n if (!elementMap.has(element)) {\n return;\n }\n\n const instanceMap = elementMap.get(element);\n\n instanceMap.delete(key);\n\n // free up element references if there are no instances left for an element\n if (instanceMap.size === 0) {\n elementMap.delete(element);\n }\n },\n};\n","/**\n * --------------------------------------------------------------------------\n * Bootstrap util/index.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nconst MAX_UID = 1_000_000;\nconst MILLISECONDS_MULTIPLIER = 1000;\nconst TRANSITION_END = 'transitionend';\n\n/**\n * Properly escape IDs selectors to handle weird IDs\n * @param {string} selector\n * @returns {string}\n */\nconst parseSelector = (selector) => {\n if (selector && window.CSS && window.CSS.escape) {\n // document.querySelector needs escaping to handle IDs (html5+) containing for instance /\n selector = selector.replace(/#([^\\s\"#']+)/g, (match, id) => `#${CSS.escape(id)}`);\n }\n\n return selector;\n};\n\n// Shout-out Angus Croll (https://goo.gl/pxwQGp)\nconst toType = (object) => {\n if (object === null || object === undefined) {\n return `${object}`;\n }\n\n return Object.prototype.toString\n .call(object)\n .match(/\\s([a-z]+)/i)[1]\n .toLowerCase();\n};\n\n/**\n * Public Util API\n */\n\nconst getUID = (prefix) => {\n do {\n prefix += Math.floor(Math.random() * MAX_UID);\n } while (document.getElementById(prefix));\n\n return prefix;\n};\n\nconst getTransitionDurationFromElement = (element) => {\n if (!element) {\n return 0;\n }\n\n // Get transition-duration of the element\n let { transitionDuration, transitionDelay } = window.getComputedStyle(element);\n\n const floatTransitionDuration = Number.parseFloat(transitionDuration);\n const floatTransitionDelay = Number.parseFloat(transitionDelay);\n\n // Return 0 if element or transition duration is not found\n if (!floatTransitionDuration && !floatTransitionDelay) {\n return 0;\n }\n\n // If multiple durations are defined, take the first\n transitionDuration = transitionDuration.split(',')[0];\n transitionDelay = transitionDelay.split(',')[0];\n\n return (\n (Number.parseFloat(transitionDuration) + Number.parseFloat(transitionDelay)) *\n MILLISECONDS_MULTIPLIER\n );\n};\n\nconst triggerTransitionEnd = (element) => {\n element.dispatchEvent(new Event(TRANSITION_END));\n};\n\nconst isElement = (object) => {\n if (!object || typeof object !== 'object') {\n return false;\n }\n\n if (typeof object.jquery !== 'undefined') {\n object = object[0];\n }\n\n return typeof object.nodeType !== 'undefined';\n};\n\nconst getElement = (object) => {\n // it's a jQuery object or a node element\n if (isElement(object)) {\n return object.jquery ? object[0] : object;\n }\n\n if (typeof object === 'string' && object.length > 0) {\n return document.querySelector(parseSelector(object));\n }\n\n return null;\n};\n\nconst isVisible = (element) => {\n if (!isElement(element) || element.getClientRects().length === 0) {\n return false;\n }\n\n const elementIsVisible = getComputedStyle(element).getPropertyValue('visibility') === 'visible';\n // Handle `details` element as its content may falsie appear visible when it is closed\n const closedDetails = element.closest('details:not([open])');\n\n if (!closedDetails) {\n return elementIsVisible;\n }\n\n if (closedDetails !== element) {\n const summary = element.closest('summary');\n if (summary && summary.parentNode !== closedDetails) {\n return false;\n }\n\n if (summary === null) {\n return false;\n }\n }\n\n return elementIsVisible;\n};\n\nconst isDisabled = (element) => {\n if (!element || element.nodeType !== Node.ELEMENT_NODE) {\n return true;\n }\n\n if (element.classList.contains('disabled')) {\n return true;\n }\n\n if (typeof element.disabled !== 'undefined') {\n return element.disabled;\n }\n\n return element.hasAttribute('disabled') && element.getAttribute('disabled') !== 'false';\n};\n\nconst findShadowRoot = (element) => {\n if (!document.documentElement.attachShadow) {\n return null;\n }\n\n // Can find the shadow root otherwise it'll return the document\n if (typeof element.getRootNode === 'function') {\n const root = element.getRootNode();\n return root instanceof ShadowRoot ? root : null;\n }\n\n if (element instanceof ShadowRoot) {\n return element;\n }\n\n // when we don't find a shadow root\n if (!element.parentNode) {\n return null;\n }\n\n return findShadowRoot(element.parentNode);\n};\n\nconst noop = () => {};\n\n/**\n * Trick to restart an element's animation\n *\n * @param {HTMLElement} element\n * @return void\n *\n * @see https://www.charistheo.io/blog/2021/02/restart-a-css-animation-with-javascript/#restarting-a-css-animation\n */\nconst reflow = (element) => {\n element.offsetHeight; // eslint-disable-line no-unused-expressions\n};\n\nconst getjQuery = () => {\n if (window.jQuery && !document.body.hasAttribute('data-mdb-no-jquery')) {\n return window.jQuery;\n }\n\n return null;\n};\n\nconst DOMContentLoadedCallbacks = [];\n\nconst onDOMContentLoaded = (callback) => {\n if (document.readyState === 'loading') {\n // add listener on the first call when the document is in loading state\n if (!DOMContentLoadedCallbacks.length) {\n document.addEventListener('DOMContentLoaded', () => {\n for (const callback of DOMContentLoadedCallbacks) {\n callback();\n }\n });\n }\n\n DOMContentLoadedCallbacks.push(callback);\n } else {\n callback();\n }\n};\n\nconst isRTL = () => document.documentElement.dir === 'rtl';\n\nconst defineJQueryPlugin = (plugin) => {\n onDOMContentLoaded(() => {\n const $ = getjQuery();\n /* istanbul ignore if */\n if ($) {\n const name = plugin.NAME;\n const JQUERY_NO_CONFLICT = $.fn[name];\n $.fn[name] = plugin.jQueryInterface;\n $.fn[name].Constructor = plugin;\n $.fn[name].noConflict = () => {\n $.fn[name] = JQUERY_NO_CONFLICT;\n return plugin.jQueryInterface;\n };\n }\n });\n};\n\nconst execute = (possibleCallback, args = [], defaultValue = possibleCallback) => {\n return typeof possibleCallback === 'function' ? possibleCallback(...args) : defaultValue;\n};\n\nconst executeAfterTransition = (callback, transitionElement, waitForTransition = true) => {\n if (!waitForTransition) {\n execute(callback);\n return;\n }\n\n const durationPadding = 5;\n const emulatedDuration = getTransitionDurationFromElement(transitionElement) + durationPadding;\n\n let called = false;\n\n const handler = ({ target }) => {\n if (target !== transitionElement) {\n return;\n }\n\n called = true;\n transitionElement.removeEventListener(TRANSITION_END, handler);\n execute(callback);\n };\n\n transitionElement.addEventListener(TRANSITION_END, handler);\n setTimeout(() => {\n if (!called) {\n triggerTransitionEnd(transitionElement);\n }\n }, emulatedDuration);\n};\n\n/**\n * Return the previous/next element of a list.\n *\n * @param {array} list The list of elements\n * @param activeElement The active element\n * @param shouldGetNext Choose to get next or previous element\n * @param isCycleAllowed\n * @return {Element|elem} The proper element\n */\nconst getNextActiveElement = (list, activeElement, shouldGetNext, isCycleAllowed) => {\n const listLength = list.length;\n let index = list.indexOf(activeElement);\n\n // if the element does not exist in the list return an element\n // depending on the direction and if cycle is allowed\n if (index === -1) {\n return !shouldGetNext && isCycleAllowed ? list[listLength - 1] : list[0];\n }\n\n index += shouldGetNext ? 1 : -1;\n\n if (isCycleAllowed) {\n index = (index + listLength) % listLength;\n }\n\n return list[Math.max(0, Math.min(index, listLength - 1))];\n};\n\nexport {\n defineJQueryPlugin,\n execute,\n executeAfterTransition,\n findShadowRoot,\n getElement,\n getjQuery,\n getNextActiveElement,\n getTransitionDurationFromElement,\n getUID,\n isDisabled,\n isElement,\n isRTL,\n isVisible,\n noop,\n onDOMContentLoaded,\n parseSelector,\n reflow,\n triggerTransitionEnd,\n toType,\n};\n","/**\n * --------------------------------------------------------------------------\n * Bootstrap dom/event-handler.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nimport { getjQuery } from '../util/index.js';\n\n/**\n * Constants\n */\n\nconst namespaceRegex = /[^.]*(?=\\..*)\\.|.*/;\nconst stripNameRegex = /\\..*/;\nconst stripUidRegex = /::\\d+$/;\nconst eventRegistry = {}; // Events storage\nlet uidEvent = 1;\nconst customEvents = {\n mouseenter: 'mouseover',\n mouseleave: 'mouseout',\n};\n\nconst nativeEvents = new Set([\n 'click',\n 'dblclick',\n 'mouseup',\n 'mousedown',\n 'contextmenu',\n 'mousewheel',\n 'DOMMouseScroll',\n 'mouseover',\n 'mouseout',\n 'mousemove',\n 'selectstart',\n 'selectend',\n 'keydown',\n 'keypress',\n 'keyup',\n 'orientationchange',\n 'touchstart',\n 'touchmove',\n 'touchend',\n 'touchcancel',\n 'pointerdown',\n 'pointermove',\n 'pointerup',\n 'pointerleave',\n 'pointercancel',\n 'gesturestart',\n 'gesturechange',\n 'gestureend',\n 'focus',\n 'blur',\n 'change',\n 'reset',\n 'select',\n 'submit',\n 'focusin',\n 'focusout',\n 'load',\n 'unload',\n 'beforeunload',\n 'resize',\n 'move',\n 'DOMContentLoaded',\n 'readystatechange',\n 'error',\n 'abort',\n 'scroll',\n]);\n\n/**\n * Private methods\n */\n\nfunction makeEventUid(element, uid) {\n return (uid && `${uid}::${uidEvent++}`) || element.uidEvent || uidEvent++;\n}\n\nfunction getElementEvents(element) {\n const uid = makeEventUid(element);\n\n element.uidEvent = uid;\n eventRegistry[uid] = eventRegistry[uid] || {};\n\n return eventRegistry[uid];\n}\n\nfunction bootstrapHandler(element, fn) {\n return function handler(event) {\n hydrateObj(event, { delegateTarget: element });\n\n if (handler.oneOff) {\n EventHandler.off(element, event.type, fn);\n }\n\n return fn.apply(element, [event]);\n };\n}\n\nfunction bootstrapDelegationHandler(element, selector, fn) {\n return function handler(event) {\n const domElements = element.querySelectorAll(selector);\n\n for (let { target } = event; target && target !== this; target = target.parentNode) {\n for (const domElement of domElements) {\n if (domElement !== target) {\n continue;\n }\n\n hydrateObj(event, { delegateTarget: target });\n\n if (handler.oneOff) {\n EventHandler.off(element, event.type, selector, fn);\n }\n\n return fn.apply(target, [event]);\n }\n }\n };\n}\n\nfunction findHandler(events, callable, delegationSelector = null) {\n return Object.values(events).find(\n (event) => event.callable === callable && event.delegationSelector === delegationSelector\n );\n}\n\nfunction normalizeParameters(originalTypeEvent, handler, delegationFunction) {\n const isDelegated = typeof handler === 'string';\n // TODO: tooltip passes `false` instead of selector, so we need to check\n const callable = isDelegated ? delegationFunction : handler || delegationFunction;\n let typeEvent = getTypeEvent(originalTypeEvent);\n\n if (!nativeEvents.has(typeEvent)) {\n typeEvent = originalTypeEvent;\n }\n\n return [isDelegated, callable, typeEvent];\n}\n\nfunction addHandler(element, originalTypeEvent, handler, delegationFunction, oneOff) {\n if (typeof originalTypeEvent !== 'string' || !element) {\n return;\n }\n\n let [isDelegated, callable, typeEvent] = normalizeParameters(\n originalTypeEvent,\n handler,\n delegationFunction\n );\n\n // in case of mouseenter or mouseleave wrap the handler within a function that checks for its DOM position\n // this prevents the handler from being dispatched the same way as mouseover or mouseout does\n if (originalTypeEvent in customEvents) {\n const wrapFunction = (fn) => {\n return function (event) {\n if (\n !event.relatedTarget ||\n (event.relatedTarget !== event.delegateTarget &&\n !event.delegateTarget.contains(event.relatedTarget))\n ) {\n return fn.call(this, event);\n }\n };\n };\n\n callable = wrapFunction(callable);\n }\n\n const events = getElementEvents(element);\n const handlers = events[typeEvent] || (events[typeEvent] = {});\n const previousFunction = findHandler(handlers, callable, isDelegated ? handler : null);\n\n if (previousFunction) {\n previousFunction.oneOff = previousFunction.oneOff && oneOff;\n\n return;\n }\n\n const uid = makeEventUid(callable, originalTypeEvent.replace(namespaceRegex, ''));\n const fn = isDelegated\n ? bootstrapDelegationHandler(element, handler, callable)\n : bootstrapHandler(element, callable);\n\n fn.delegationSelector = isDelegated ? handler : null;\n fn.callable = callable;\n fn.oneOff = oneOff;\n fn.uidEvent = uid;\n handlers[uid] = fn;\n\n element.addEventListener(typeEvent, fn, isDelegated);\n}\n\nfunction removeHandler(element, events, typeEvent, handler, delegationSelector) {\n const fn = findHandler(events[typeEvent], handler, delegationSelector);\n\n if (!fn) {\n return;\n }\n\n element.removeEventListener(typeEvent, fn, Boolean(delegationSelector));\n delete events[typeEvent][fn.uidEvent];\n}\n\nfunction removeNamespacedHandlers(element, events, typeEvent, namespace) {\n const storeElementEvent = events[typeEvent] || {};\n\n for (const [handlerKey, event] of Object.entries(storeElementEvent)) {\n if (handlerKey.includes(namespace)) {\n removeHandler(element, events, typeEvent, event.callable, event.delegationSelector);\n }\n }\n}\n\nfunction getTypeEvent(event) {\n // allow to get the native events from namespaced events ('click.bs.button' --> 'click')\n event = event.replace(stripNameRegex, '');\n return customEvents[event] || event;\n}\n\nconst EventHandler = {\n on(element, event, handler, delegationFunction) {\n addHandler(element, event, handler, delegationFunction, false);\n },\n\n one(element, event, handler, delegationFunction) {\n addHandler(element, event, handler, delegationFunction, true);\n },\n\n off(element, originalTypeEvent, handler, delegationFunction) {\n if (typeof originalTypeEvent !== 'string' || !element) {\n return;\n }\n\n const [isDelegated, callable, typeEvent] = normalizeParameters(\n originalTypeEvent,\n handler,\n delegationFunction\n );\n const inNamespace = typeEvent !== originalTypeEvent;\n const events = getElementEvents(element);\n const storeElementEvent = events[typeEvent] || {};\n const isNamespace = originalTypeEvent.startsWith('.');\n\n if (typeof callable !== 'undefined') {\n // Simplest case: handler is passed, remove that listener ONLY.\n if (!Object.keys(storeElementEvent).length) {\n return;\n }\n\n removeHandler(element, events, typeEvent, callable, isDelegated ? handler : null);\n return;\n }\n\n if (isNamespace) {\n for (const elementEvent of Object.keys(events)) {\n removeNamespacedHandlers(element, events, elementEvent, originalTypeEvent.slice(1));\n }\n }\n\n for (const [keyHandlers, event] of Object.entries(storeElementEvent)) {\n const handlerKey = keyHandlers.replace(stripUidRegex, '');\n\n if (!inNamespace || originalTypeEvent.includes(handlerKey)) {\n removeHandler(element, events, typeEvent, event.callable, event.delegationSelector);\n }\n }\n },\n\n trigger(element, event, args) {\n if (typeof event !== 'string' || !element) {\n return null;\n }\n\n const $ = getjQuery();\n const typeEvent = getTypeEvent(event);\n const inNamespace = event !== typeEvent;\n\n let jQueryEvent = null;\n let bubbles = true;\n let nativeDispatch = true;\n let defaultPrevented = false;\n\n if (inNamespace && $) {\n jQueryEvent = $.Event(event, args);\n\n $(element).trigger(jQueryEvent);\n bubbles = !jQueryEvent.isPropagationStopped();\n nativeDispatch = !jQueryEvent.isImmediatePropagationStopped();\n defaultPrevented = jQueryEvent.isDefaultPrevented();\n }\n\n const evt = hydrateObj(new Event(event, { bubbles, cancelable: true }), args);\n\n if (defaultPrevented) {\n evt.preventDefault();\n }\n\n if (nativeDispatch) {\n element.dispatchEvent(evt);\n }\n\n if (evt.defaultPrevented && jQueryEvent) {\n jQueryEvent.preventDefault();\n }\n\n return evt;\n },\n};\n\nfunction hydrateObj(obj, meta = {}) {\n for (const [key, value] of Object.entries(meta)) {\n try {\n obj[key] = value;\n } catch {\n Object.defineProperty(obj, key, {\n configurable: true,\n get() {\n return value;\n },\n });\n }\n }\n\n return obj;\n}\n\nexport default EventHandler;\n","/**\n * --------------------------------------------------------------------------\n * Bootstrap dom/manipulator.js\n * Licensed under MIT (https://github.com/twmdb/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nfunction normalizeData(value) {\n if (value === 'true') {\n return true;\n }\n\n if (value === 'false') {\n return false;\n }\n\n if (value === Number(value).toString()) {\n return Number(value);\n }\n\n if (value === '' || value === 'null') {\n return null;\n }\n\n if (typeof value !== 'string') {\n return value;\n }\n\n try {\n return JSON.parse(decodeURIComponent(value));\n } catch {\n return value;\n }\n}\n\nfunction normalizeDataKey(key) {\n return key.replace(/[A-Z]/g, (chr) => `-${chr.toLowerCase()}`);\n}\n\nconst Manipulator = {\n setDataAttribute(element, key, value) {\n element.setAttribute(`data-mdb-${normalizeDataKey(key)}`, value);\n },\n\n removeDataAttribute(element, key) {\n element.removeAttribute(`data-mdb-${normalizeDataKey(key)}`);\n },\n\n getDataAttributes(element) {\n if (!element) {\n return {};\n }\n\n const attributes = {};\n const mdbKeys = Object.keys(element.dataset).filter(\n (key) => key.startsWith('mdb') && !key.startsWith('mdbConfig')\n );\n\n for (const key of mdbKeys) {\n let pureKey = key.replace(/^mdb/, '');\n pureKey = pureKey.charAt(0).toLowerCase() + pureKey.slice(1, pureKey.length);\n attributes[pureKey] = normalizeData(element.dataset[key]);\n }\n\n return attributes;\n },\n\n getDataAttribute(element, key) {\n return normalizeData(element.getAttribute(`data-mdb-${normalizeDataKey(key)}`));\n },\n};\n\nexport default Manipulator;\n","/**\n * --------------------------------------------------------------------------\n * Bootstrap util/config.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nimport Manipulator from '../dom/manipulator.js';\nimport { isElement, toType } from './index.js';\n\n/**\n * Class definition\n */\n\nclass Config {\n // Getters\n static get Default() {\n return {};\n }\n\n static get DefaultType() {\n return {};\n }\n\n static get NAME() {\n throw new Error('You have to implement the static method \"NAME\", for each component!');\n }\n\n _getConfig(config) {\n config = this._mergeConfigObj(config);\n config = this._configAfterMerge(config);\n this._typeCheckConfig(config);\n return config;\n }\n\n _configAfterMerge(config) {\n return config;\n }\n\n _mergeConfigObj(config, element) {\n const jsonConfig = isElement(element) ? Manipulator.getDataAttribute(element, 'config') : {}; // try to parse\n\n return {\n ...this.constructor.Default,\n ...(typeof jsonConfig === 'object' ? jsonConfig : {}),\n ...(isElement(element) ? Manipulator.getDataAttributes(element) : {}),\n ...(typeof config === 'object' ? config : {}),\n };\n }\n\n _typeCheckConfig(config, configTypes = this.constructor.DefaultType) {\n for (const [property, expectedTypes] of Object.entries(configTypes)) {\n const value = config[property];\n const valueType = isElement(value) ? 'element' : toType(value);\n\n if (!new RegExp(expectedTypes).test(valueType)) {\n throw new TypeError(\n `${this.constructor.NAME.toUpperCase()}: Option \"${property}\" provided type \"${valueType}\" but expected type \"${expectedTypes}\".`\n );\n }\n }\n }\n}\n\nexport default Config;\n","/**\n * --------------------------------------------------------------------------\n * Bootstrap base-component.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nimport Data from './dom/data.js';\nimport EventHandler from './dom/event-handler.js';\nimport Config from './util/config.js';\nimport { executeAfterTransition, getElement } from './util/index.js';\n\n/**\n * Constants\n */\n\nconst VERSION = '5.3.3';\n\n/**\n * Class definition\n */\n\nclass BaseComponent extends Config {\n constructor(element, config) {\n super();\n\n element = getElement(element);\n if (!element) {\n return;\n }\n\n this._element = element;\n this._config = this._getConfig(config);\n\n Data.set(this._element, this.constructor.DATA_KEY, this);\n }\n\n // Public\n dispose() {\n Data.remove(this._element, this.constructor.DATA_KEY);\n EventHandler.off(this._element, this.constructor.EVENT_KEY);\n\n for (const propertyName of Object.getOwnPropertyNames(this)) {\n this[propertyName] = null;\n }\n }\n\n _queueCallback(callback, element, isAnimated = true) {\n executeAfterTransition(callback, element, isAnimated);\n }\n\n _getConfig(config) {\n config = this._mergeConfigObj(config, this._element);\n config = this._configAfterMerge(config);\n this._typeCheckConfig(config);\n return config;\n }\n\n // Static\n static getInstance(element) {\n return Data.get(getElement(element), this.DATA_KEY);\n }\n\n static getOrCreateInstance(element, config = {}) {\n return (\n this.getInstance(element) || new this(element, typeof config === 'object' ? config : null)\n );\n }\n\n static get VERSION() {\n return VERSION;\n }\n\n static get DATA_KEY() {\n return `bs.${this.NAME}`;\n }\n\n static get EVENT_KEY() {\n return `.${this.DATA_KEY}`;\n }\n\n static eventName(name) {\n return `${name}${this.EVENT_KEY}`;\n }\n}\n\nexport default BaseComponent;\n","/**\n * --------------------------------------------------------------------------\n * Bootstrap button.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nimport BaseComponent from './base-component.js';\nimport EventHandler from './dom/event-handler.js';\nimport { defineJQueryPlugin } from './util/index.js';\n\n/**\n * Constants\n */\n\nconst NAME = 'button';\nconst DATA_KEY = 'bs.button';\nconst EVENT_KEY = `.${DATA_KEY}`;\nconst DATA_API_KEY = '.data-api';\n\nconst CLASS_NAME_ACTIVE = 'active';\nconst SELECTOR_DATA_TOGGLE = '[data-mdb-toggle=\"button\"]';\nconst EVENT_CLICK_DATA_API = `click${EVENT_KEY}${DATA_API_KEY}`;\n\n/**\n * Class definition\n */\n\nclass Button extends BaseComponent {\n // Getters\n static get NAME() {\n return NAME;\n }\n\n // Public\n toggle() {\n // Toggle class and sync the `aria-pressed` attribute with the return value of the `.toggle()` method\n this._element.setAttribute('aria-pressed', this._element.classList.toggle(CLASS_NAME_ACTIVE));\n }\n\n // Static\n static jQueryInterface(config) {\n return this.each(function () {\n const data = Button.getOrCreateInstance(this);\n\n if (config === 'toggle') {\n data[config]();\n }\n });\n }\n}\n\n/**\n * Data API implementation\n */\n\n// EventHandler.on(document, EVENT_CLICK_DATA_API, SELECTOR_DATA_TOGGLE, event => {\n// event.preventDefault()\n\n// const button = event.target.closest(SELECTOR_DATA_TOGGLE)\n// const data = Button.getOrCreateInstance(button)\n\n// data.toggle()\n// })\n\n/**\n * jQuery\n */\n\n// defineJQueryPlugin(Button)\n\nexport default Button;\n","import SelectorEngine from '../mdb/dom/selector-engine';\nimport { defineJQueryPlugin } from '../mdb/util/index';\n\nconst mapComponentsData = (() => {\n const componentsData = [];\n return {\n set(componentName) {\n componentsData.push(componentName);\n },\n get(componentName) {\n return componentsData.includes(componentName);\n },\n };\n})();\n\nexport const InitializedComponents = {\n set(componentName) {\n mapComponentsData.set(componentName);\n },\n get(componentName) {\n return mapComponentsData.get(componentName);\n },\n};\n\nconst isInitialized = (componentName) => {\n return InitializedComponents.get(componentName);\n};\n\nexport const bindCallbackEventsIfNeeded = (component) => {\n if (!isInitialized(component.NAME)) {\n const manualInit = true;\n initComponent(component, manualInit);\n }\n};\n\nconst initComponent = (component, manualInit = false) => {\n if (!component || InitializedComponents.get(component.NAME)) {\n return;\n }\n\n if (!manualInit) {\n InitializedComponents.set(component.NAME);\n }\n\n const thisComponent = _defaultInitSelectors[component.NAME] || null;\n const isToggler = thisComponent?.isToggler || false;\n\n defineJQueryPlugin(component);\n if (thisComponent?.advanced) {\n thisComponent.advanced(component, thisComponent?.selector);\n return;\n }\n\n if (isToggler) {\n thisComponent.callback(component, thisComponent?.selector);\n\n return;\n }\n\n if (manualInit) {\n return;\n }\n\n SelectorEngine.find(thisComponent?.selector).forEach((element) => {\n let instance = component.getInstance(element);\n if (!instance) {\n instance = new component(element); // eslint-disable-line\n if (thisComponent?.onInit) {\n instance[thisComponent.onInit]();\n }\n }\n });\n};\n\nlet _defaultInitSelectors;\nexport class InitMDB {\n constructor(defaultInitSelectors) {\n _defaultInitSelectors = defaultInitSelectors;\n }\n\n init = (components) => {\n components.forEach((component) => initComponent(component));\n };\n\n initMDB = (components, checkOtherImports = false) => {\n const componentList = Object.keys(_defaultInitSelectors).map((element) => {\n const requireAutoInit = Boolean(\n document.querySelector(_defaultInitSelectors[element].selector)\n );\n\n if (requireAutoInit) {\n const component = components[_defaultInitSelectors[element].name];\n if (!component && !InitializedComponents.get(element) && checkOtherImports) {\n // eslint-disable-next-line no-console\n console.warn(\n `Please import ${_defaultInitSelectors[element].name} from \"MDB\" package and add it to a object parameter inside \"initMDB\" function`\n );\n }\n return component;\n }\n\n return null;\n });\n\n this.init(componentList);\n };\n}\n","import Data from '../mdb/dom/data';\nimport EventHandler from '../mdb/dom/event-handler';\nimport Manipulator from '../mdb/dom/manipulator';\nimport SelectorEngine from '../mdb/dom/selector-engine';\n\nimport BSButton from '../bootstrap/mdb-prefix/button';\nimport { bindCallbackEventsIfNeeded } from '../autoinit/init';\n\nconst NAME = 'button';\nconst DATA_KEY = `mdb.${NAME}`;\nconst EVENT_KEY = `.${DATA_KEY}`;\n\nconst EVENT_CLICK = `click${EVENT_KEY}`;\nconst EVENT_TRANSITIONEND = 'transitionend';\nconst EVENT_MOUSEENTER = 'mouseenter';\nconst EVENT_MOUSELEAVE = 'mouseleave';\nconst EVENT_HIDE = `hide${EVENT_KEY}`;\nconst EVENT_HIDDEN = `hidden${EVENT_KEY}`;\nconst EVENT_SHOW = `show${EVENT_KEY}`;\nconst EVENT_SHOWN = `shown${EVENT_KEY}`;\n\nconst CLASS_NAME_ACTIVE = 'active';\nconst CLASS_NAME_SHOWN = 'shown';\nconst CLASS_NAME_FIXED_ACTION_BTN = 'fixed-action-btn';\n\nconst SELECTOR_ACTION_BUTTON = '.fixed-action-btn:not(.smooth-scroll) > .btn-floating';\nconst SELECTOR_LIST_ELEMENT = 'ul .btn';\nconst SELECTOR_LIST = 'ul';\n\nclass Button extends BSButton {\n constructor(element) {\n super(element);\n this._fn = {};\n\n if (this._element) {\n Data.setData(this._element, DATA_KEY, this);\n this._init();\n Manipulator.setDataAttribute(this._element, `${this.constructor.NAME}-initialized`, true);\n bindCallbackEventsIfNeeded(this.constructor);\n }\n }\n\n // Static\n static get NAME() {\n return NAME;\n }\n\n static jQueryInterface(config, options) {\n return this.each(function () {\n let data = Data.getData(this, DATA_KEY);\n const _config = typeof config === 'object' && config;\n if (!data && /dispose/.test(config)) {\n return;\n }\n\n if (!data) {\n data = new Button(this, _config);\n }\n if (typeof config === 'string') {\n if (typeof data[config] === 'undefined') {\n throw new TypeError(`No method named \"${config}\"`);\n }\n data[config](options);\n }\n });\n }\n\n // Getters\n get _actionButton() {\n return SelectorEngine.findOne(SELECTOR_ACTION_BUTTON, this._element);\n }\n\n get _buttonListElements() {\n return SelectorEngine.find(SELECTOR_LIST_ELEMENT, this._element);\n }\n\n get _buttonList() {\n return SelectorEngine.findOne(SELECTOR_LIST, this._element);\n }\n\n get _isTouchDevice() {\n return 'ontouchstart' in document.documentElement;\n }\n\n // Public\n show() {\n if (Manipulator.hasClass(this._element, CLASS_NAME_FIXED_ACTION_BTN)) {\n EventHandler.off(this._buttonList, EVENT_TRANSITIONEND);\n EventHandler.trigger(this._element, EVENT_SHOW);\n // EventHandler.on(this._buttonList, EVENT_TRANSITIONEND, this._bindListOpenTransitionEnd);\n this._bindListOpenTransitionEnd();\n Manipulator.addStyle(this._element, { height: `${this._fullContainerHeight}px` });\n this._toggleVisibility(true);\n }\n }\n\n hide() {\n if (Manipulator.hasClass(this._element, CLASS_NAME_FIXED_ACTION_BTN)) {\n EventHandler.off(this._buttonList, EVENT_TRANSITIONEND);\n EventHandler.trigger(this._element, EVENT_HIDE);\n // EventHandler.on(this._buttonList, EVENT_TRANSITIONEND, this._bindListHideTransitionEnd);\n this._bindListHideTransitionEnd();\n this._toggleVisibility(false);\n }\n }\n\n dispose() {\n if (Manipulator.hasClass(this._element, CLASS_NAME_FIXED_ACTION_BTN)) {\n EventHandler.off(this._actionButton, EVENT_CLICK);\n this._actionButton.removeEventListener(EVENT_MOUSEENTER, this._fn.mouseenter);\n this._element.removeEventListener(EVENT_MOUSELEAVE, this._fn.mouseleave);\n }\n Manipulator.removeDataAttribute(this._element, `${this.constructor.NAME}-initialized`);\n\n super.dispose();\n }\n\n // Private\n _init() {\n if (Manipulator.hasClass(this._element, CLASS_NAME_FIXED_ACTION_BTN)) {\n this._saveInitialHeights();\n this._setInitialStyles();\n this._bindInitialEvents();\n }\n }\n\n _bindMouseEnter() {\n this._actionButton.addEventListener(\n EVENT_MOUSEENTER,\n // prettier-ignore\n this._fn.mouseenter = () => {\n if (!this._isTouchDevice) {\n this.show();\n }\n }\n // prettier-ignore\n );\n }\n\n _bindMouseLeave() {\n this._element.addEventListener(\n EVENT_MOUSELEAVE,\n // prettier-ignore\n this._fn.mouseleave = () => {\n this.hide();\n }\n // prettier-ignore\n );\n }\n\n _bindClick() {\n EventHandler.on(this._actionButton, EVENT_CLICK, () => {\n if (Manipulator.hasClass(this._element, CLASS_NAME_ACTIVE)) {\n this.hide();\n } else {\n this.show();\n }\n });\n }\n\n _bindListHideTransitionEnd() {\n EventHandler.on(this._buttonList, EVENT_TRANSITIONEND, (event) => {\n if (event.propertyName === 'transform') {\n EventHandler.off(this._buttonList, EVENT_TRANSITIONEND);\n this._element.style.height = `${this._initialContainerHeight}px`;\n EventHandler.trigger(this._element, EVENT_HIDDEN);\n }\n });\n }\n\n _bindListOpenTransitionEnd() {\n EventHandler.on(this._buttonList, EVENT_TRANSITIONEND, (event) => {\n if (event.propertyName === 'transform') {\n EventHandler.off(this._buttonList, EVENT_TRANSITIONEND);\n EventHandler.trigger(this._element, EVENT_SHOWN);\n }\n });\n }\n\n _toggleVisibility(isVisible) {\n const action = isVisible ? 'addClass' : 'removeClass';\n const listTranslate = isVisible ? 'translate(0)' : `translateY(${this._fullContainerHeight}px)`;\n Manipulator.addStyle(this._buttonList, { transform: listTranslate });\n\n if (this._buttonListElements) {\n this._buttonListElements.forEach((el) => Manipulator[action](el, CLASS_NAME_SHOWN));\n }\n Manipulator[action](this._element, CLASS_NAME_ACTIVE);\n }\n\n _getHeight(element) {\n const computed = window.getComputedStyle(element);\n const height = parseFloat(computed.getPropertyValue('height'));\n return height;\n }\n\n _saveInitialHeights() {\n this._initialContainerHeight = this._getHeight(this._element);\n this._initialListHeight = this._getHeight(this._buttonList);\n this._fullContainerHeight = this._initialContainerHeight + this._initialListHeight;\n }\n\n _bindInitialEvents() {\n this._bindClick();\n this._bindMouseEnter();\n this._bindMouseLeave();\n }\n\n _setInitialStyles() {\n this._buttonList.style.marginBottom = `${this._initialContainerHeight}px`;\n this._buttonList.style.transform = `translateY(${this._fullContainerHeight}px)`;\n\n this._element.style.height = `${this._initialContainerHeight}px`;\n }\n}\n\nexport default Button;\n","/**\n * --------------------------------------------------------------------------\n * Bootstrap dom/selector-engine.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nimport { isDisabled, isVisible, parseSelector } from '../util/index.js';\n\nconst getSelector = (element) => {\n let selector = element.getAttribute('data-mdb-target');\n\n if (!selector || selector === '#') {\n let hrefAttribute = element.getAttribute('href');\n\n // The only valid content that could double as a selector are IDs or classes,\n // so everything starting with `#` or `.`. If a \"real\" URL is used as the selector,\n // `document.querySelector` will rightfully complain it is invalid.\n // See https://github.com/twbs/bootstrap/issues/32273\n if (!hrefAttribute || (!hrefAttribute.includes('#') && !hrefAttribute.startsWith('.'))) {\n return null;\n }\n\n // Just in case some CMS puts out a full URL with the anchor appended\n if (hrefAttribute.includes('#') && !hrefAttribute.startsWith('#')) {\n hrefAttribute = `#${hrefAttribute.split('#')[1]}`;\n }\n\n selector = hrefAttribute && hrefAttribute !== '#' ? hrefAttribute.trim() : null;\n }\n\n return selector\n ? selector\n .split(',')\n .map((sel) => parseSelector(sel))\n .join(',')\n : null;\n};\n\nconst SelectorEngine = {\n find(selector, element = document.documentElement) {\n return [].concat(...Element.prototype.querySelectorAll.call(element, selector));\n },\n\n findOne(selector, element = document.documentElement) {\n return Element.prototype.querySelector.call(element, selector);\n },\n\n children(element, selector) {\n return [].concat(...element.children).filter((child) => child.matches(selector));\n },\n\n parents(element, selector) {\n const parents = [];\n let ancestor = element.parentNode.closest(selector);\n\n while (ancestor) {\n parents.push(ancestor);\n ancestor = ancestor.parentNode.closest(selector);\n }\n\n return parents;\n },\n\n prev(element, selector) {\n let previous = element.previousElementSibling;\n\n while (previous) {\n if (previous.matches(selector)) {\n return [previous];\n }\n\n previous = previous.previousElementSibling;\n }\n\n return [];\n },\n // TODO: this is now unused; remove later along with prev()\n next(element, selector) {\n let next = element.nextElementSibling;\n\n while (next) {\n if (next.matches(selector)) {\n return [next];\n }\n\n next = next.nextElementSibling;\n }\n\n return [];\n },\n\n focusableChildren(element) {\n const focusables = [\n 'a',\n 'button',\n 'input',\n 'textarea',\n 'select',\n 'details',\n '[tabindex]',\n '[contenteditable=\"true\"]',\n ]\n .map((selector) => `${selector}:not([tabindex^=\"-\"])`)\n .join(',');\n\n return this.find(focusables, element).filter((el) => !isDisabled(el) && isVisible(el));\n },\n\n getSelectorFromElement(element) {\n const selector = getSelector(element);\n\n if (selector) {\n return SelectorEngine.findOne(selector) ? selector : null;\n }\n\n return null;\n },\n\n getElementFromSelector(element) {\n const selector = getSelector(element);\n\n return selector ? SelectorEngine.findOne(selector) : null;\n },\n\n getMultipleElementsFromSelector(element) {\n const selector = getSelector(element);\n\n return selector ? SelectorEngine.find(selector) : [];\n },\n};\n\nexport default SelectorEngine;\n","/**\n * --------------------------------------------------------------------------\n * Bootstrap util/backdrop.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nimport EventHandler from '../dom/event-handler.js';\nimport Config from './config.js';\nimport { execute, executeAfterTransition, getElement, reflow } from './index.js';\n\n/**\n * Constants\n */\n\nconst NAME = 'backdrop';\nconst CLASS_NAME_FADE = 'fade';\nconst CLASS_NAME_SHOW = 'show';\nconst EVENT_MOUSEDOWN = `mousedown.bs.${NAME}`;\n\nconst Default = {\n className: 'modal-backdrop',\n clickCallback: null,\n isAnimated: false,\n isVisible: true, // if false, we use the backdrop helper without adding any element to the dom\n rootElement: 'body', // give the choice to place backdrop under different elements\n};\n\nconst DefaultType = {\n className: 'string',\n clickCallback: '(function|null)',\n isAnimated: 'boolean',\n isVisible: 'boolean',\n rootElement: '(element|string)',\n};\n\n/**\n * Class definition\n */\n\nclass Backdrop extends Config {\n constructor(config) {\n super();\n this._config = this._getConfig(config);\n this._isAppended = false;\n this._element = null;\n }\n\n // Getters\n static get Default() {\n return Default;\n }\n\n static get DefaultType() {\n return DefaultType;\n }\n\n static get NAME() {\n return NAME;\n }\n\n // Public\n show(callback) {\n if (!this._config.isVisible) {\n execute(callback);\n return;\n }\n\n this._append();\n\n const element = this._getElement();\n if (this._config.isAnimated) {\n reflow(element);\n }\n\n element.classList.add(CLASS_NAME_SHOW);\n\n this._emulateAnimation(() => {\n execute(callback);\n });\n }\n\n hide(callback) {\n if (!this._config.isVisible) {\n execute(callback);\n return;\n }\n\n this._getElement().classList.remove(CLASS_NAME_SHOW);\n\n this._emulateAnimation(() => {\n this.dispose();\n execute(callback);\n });\n }\n\n dispose() {\n if (!this._isAppended) {\n return;\n }\n\n EventHandler.off(this._element, EVENT_MOUSEDOWN);\n\n this._element.remove();\n this._isAppended = false;\n }\n\n // Private\n _getElement() {\n if (!this._element) {\n const backdrop = document.createElement('div');\n backdrop.className = this._config.className;\n if (this._config.isAnimated) {\n backdrop.classList.add(CLASS_NAME_FADE);\n }\n\n this._element = backdrop;\n }\n\n return this._element;\n }\n\n _configAfterMerge(config) {\n // use getElement() with the default \"body\" to get a fresh Element on each instantiation\n config.rootElement = getElement(config.rootElement);\n return config;\n }\n\n _append() {\n if (this._isAppended) {\n return;\n }\n\n const element = this._getElement();\n this._config.rootElement.append(element);\n\n EventHandler.on(element, EVENT_MOUSEDOWN, () => {\n execute(this._config.clickCallback);\n });\n\n this._isAppended = true;\n }\n\n _emulateAnimation(callback) {\n executeAfterTransition(callback, this._getElement(), this._config.isAnimated);\n }\n}\n\nexport default Backdrop;\n","/**\n * --------------------------------------------------------------------------\n * Bootstrap util/component-functions.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nimport EventHandler from '../dom/event-handler.js';\nimport SelectorEngine from '../dom/selector-engine.js';\nimport { isDisabled } from './index.js';\n\nconst enableDismissTrigger = (component, method = 'hide') => {\n const clickEvent = `click.dismiss${component.EVENT_KEY}`;\n const name = component.NAME;\n\n EventHandler.on(document, clickEvent, `[data-mdb-dismiss=\"${name}\"]`, function (event) {\n if (['A', 'AREA'].includes(this.tagName)) {\n event.preventDefault();\n }\n\n if (isDisabled(this)) {\n return;\n }\n\n const target = SelectorEngine.getElementFromSelector(this) || this.closest(`.${name}`);\n const instance = component.getOrCreateInstance(target);\n\n // Method argument is left, for Alert and only, as it doesn't implement the 'hide' method\n instance[method]();\n });\n};\n\nexport { enableDismissTrigger };\n","/**\n * --------------------------------------------------------------------------\n * Bootstrap util/focustrap.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nimport EventHandler from '../dom/event-handler.js';\nimport SelectorEngine from '../dom/selector-engine.js';\nimport Config from './config.js';\n\n/**\n * Constants\n */\n\nconst NAME = 'focustrap';\nconst DATA_KEY = 'bs.focustrap';\nconst EVENT_KEY = `.${DATA_KEY}`;\nconst EVENT_FOCUSIN = `focusin${EVENT_KEY}`;\nconst EVENT_KEYDOWN_TAB = `keydown.tab${EVENT_KEY}`;\n\nconst TAB_KEY = 'Tab';\nconst TAB_NAV_FORWARD = 'forward';\nconst TAB_NAV_BACKWARD = 'backward';\n\nconst Default = {\n autofocus: true,\n trapElement: null, // The element to trap focus inside of\n};\n\nconst DefaultType = {\n autofocus: 'boolean',\n trapElement: 'element',\n};\n\n/**\n * Class definition\n */\n\nclass FocusTrap extends Config {\n constructor(config) {\n super();\n this._config = this._getConfig(config);\n this._isActive = false;\n this._lastTabNavDirection = null;\n }\n\n // Getters\n static get Default() {\n return Default;\n }\n\n static get DefaultType() {\n return DefaultType;\n }\n\n static get NAME() {\n return NAME;\n }\n\n // Public\n activate() {\n if (this._isActive) {\n return;\n }\n\n if (this._config.autofocus) {\n this._config.trapElement.focus();\n }\n\n EventHandler.off(document, EVENT_KEY); // guard against infinite focus loop\n EventHandler.on(document, EVENT_FOCUSIN, (event) => this._handleFocusin(event));\n EventHandler.on(document, EVENT_KEYDOWN_TAB, (event) => this._handleKeydown(event));\n\n this._isActive = true;\n }\n\n deactivate() {\n if (!this._isActive) {\n return;\n }\n\n this._isActive = false;\n EventHandler.off(document, EVENT_KEY);\n }\n\n // Private\n _handleFocusin(event) {\n const { trapElement } = this._config;\n\n if (\n event.target === document ||\n event.target === trapElement ||\n trapElement.contains(event.target)\n ) {\n return;\n }\n\n const elements = SelectorEngine.focusableChildren(trapElement);\n\n if (elements.length === 0) {\n trapElement.focus();\n } else if (this._lastTabNavDirection === TAB_NAV_BACKWARD) {\n elements[elements.length - 1].focus();\n } else {\n elements[0].focus();\n }\n }\n\n _handleKeydown(event) {\n if (event.key !== TAB_KEY) {\n return;\n }\n\n this._lastTabNavDirection = event.shiftKey ? TAB_NAV_BACKWARD : TAB_NAV_FORWARD;\n }\n}\n\nexport default FocusTrap;\n","/**\n * --------------------------------------------------------------------------\n * Bootstrap util/scrollBar.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nimport Manipulator from '../dom/manipulator.js';\nimport SelectorEngine from '../dom/selector-engine.js';\nimport { isElement } from './index.js';\n\n/**\n * Constants\n */\n\nconst SELECTOR_FIXED_CONTENT = '.fixed-top, .fixed-bottom, .is-fixed, .sticky-top';\nconst SELECTOR_STICKY_CONTENT = '.sticky-top';\nconst PROPERTY_PADDING = 'padding-right';\nconst PROPERTY_MARGIN = 'margin-right';\n\n/**\n * Class definition\n */\n\nclass ScrollBarHelper {\n constructor() {\n this._element = document.body;\n }\n\n // Public\n getWidth() {\n // https://developer.mozilla.org/en-US/docs/Web/API/Window/innerWidth#usage_notes\n const documentWidth = document.documentElement.clientWidth;\n return Math.abs(window.innerWidth - documentWidth);\n }\n\n hide() {\n const width = this.getWidth();\n this._disableOverFlow();\n // give padding to element to balance the hidden scrollbar width\n this._setElementAttributes(\n this._element,\n PROPERTY_PADDING,\n (calculatedValue) => calculatedValue + width\n );\n // trick: We adjust positive paddingRight and negative marginRight to sticky-top elements to keep showing fullwidth\n this._setElementAttributes(\n SELECTOR_FIXED_CONTENT,\n PROPERTY_PADDING,\n (calculatedValue) => calculatedValue + width\n );\n this._setElementAttributes(\n SELECTOR_STICKY_CONTENT,\n PROPERTY_MARGIN,\n (calculatedValue) => calculatedValue - width\n );\n }\n\n reset() {\n this._resetElementAttributes(this._element, 'overflow');\n this._resetElementAttributes(this._element, PROPERTY_PADDING);\n this._resetElementAttributes(SELECTOR_FIXED_CONTENT, PROPERTY_PADDING);\n this._resetElementAttributes(SELECTOR_STICKY_CONTENT, PROPERTY_MARGIN);\n }\n\n isOverflowing() {\n return this.getWidth() > 0;\n }\n\n // Private\n _disableOverFlow() {\n this._saveInitialAttribute(this._element, 'overflow');\n this._element.style.overflow = 'hidden';\n }\n\n _setElementAttributes(selector, styleProperty, callback) {\n const scrollbarWidth = this.getWidth();\n const manipulationCallBack = (element) => {\n if (element !== this._element && window.innerWidth > element.clientWidth + scrollbarWidth) {\n return;\n }\n\n this._saveInitialAttribute(element, styleProperty);\n const calculatedValue = window.getComputedStyle(element).getPropertyValue(styleProperty);\n element.style.setProperty(styleProperty, `${callback(Number.parseFloat(calculatedValue))}px`);\n };\n\n this._applyManipulationCallback(selector, manipulationCallBack);\n }\n\n _saveInitialAttribute(element, styleProperty) {\n const actualValue = element.style.getPropertyValue(styleProperty);\n if (actualValue) {\n Manipulator.setDataAttribute(element, styleProperty, actualValue);\n }\n }\n\n _resetElementAttributes(selector, styleProperty) {\n const manipulationCallBack = (element) => {\n const value = Manipulator.getDataAttribute(element, styleProperty);\n // We only want to remove the property if the value is `null`; the value can also be zero\n if (value === null) {\n element.style.removeProperty(styleProperty);\n return;\n }\n\n Manipulator.removeDataAttribute(element, styleProperty);\n element.style.setProperty(styleProperty, value);\n };\n\n this._applyManipulationCallback(selector, manipulationCallBack);\n }\n\n _applyManipulationCallback(selector, callBack) {\n if (isElement(selector)) {\n callBack(selector);\n return;\n }\n\n for (const sel of SelectorEngine.find(selector, this._element)) {\n callBack(sel);\n }\n }\n}\n\nexport default ScrollBarHelper;\n","/**\n * --------------------------------------------------------------------------\n * Bootstrap offcanvas.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nimport BaseComponent from './base-component.js';\nimport EventHandler from './dom/event-handler.js';\nimport SelectorEngine from './dom/selector-engine.js';\nimport Backdrop from './util/backdrop.js';\nimport { enableDismissTrigger } from './util/component-functions.js';\nimport FocusTrap from './util/focustrap.js';\nimport { defineJQueryPlugin, isDisabled, isVisible } from './util/index.js';\nimport ScrollBarHelper from './util/scrollbar.js';\n\n/**\n * Constants\n */\n\nconst NAME = 'offcanvas';\nconst DATA_KEY = 'bs.offcanvas';\nconst EVENT_KEY = `.${DATA_KEY}`;\nconst DATA_API_KEY = '.data-api';\nconst EVENT_LOAD_DATA_API = `load${EVENT_KEY}${DATA_API_KEY}`;\nconst ESCAPE_KEY = 'Escape';\n\nconst CLASS_NAME_SHOW = 'show';\nconst CLASS_NAME_SHOWING = 'showing';\nconst CLASS_NAME_HIDING = 'hiding';\nconst CLASS_NAME_BACKDROP = 'offcanvas-backdrop';\nconst OPEN_SELECTOR = '.offcanvas.show';\n\nconst EVENT_SHOW = `show${EVENT_KEY}`;\nconst EVENT_SHOWN = `shown${EVENT_KEY}`;\nconst EVENT_HIDE = `hide${EVENT_KEY}`;\nconst EVENT_HIDE_PREVENTED = `hidePrevented${EVENT_KEY}`;\nconst EVENT_HIDDEN = `hidden${EVENT_KEY}`;\nconst EVENT_RESIZE = `resize${EVENT_KEY}`;\nconst EVENT_CLICK_DATA_API = `click${EVENT_KEY}${DATA_API_KEY}`;\nconst EVENT_KEYDOWN_DISMISS = `keydown.dismiss${EVENT_KEY}`;\n\nconst SELECTOR_DATA_TOGGLE = '[data-mdb-toggle=\"offcanvas\"]';\n\nconst Default = {\n backdrop: true,\n keyboard: true,\n scroll: false,\n};\n\nconst DefaultType = {\n backdrop: '(boolean|string)',\n keyboard: 'boolean',\n scroll: 'boolean',\n};\n\n/**\n * Class definition\n */\n\nclass Offcanvas extends BaseComponent {\n constructor(element, config) {\n super(element, config);\n\n this._isShown = false;\n this._backdrop = this._initializeBackDrop();\n this._focustrap = this._initializeFocusTrap();\n this._addEventListeners();\n }\n\n // Getters\n static get Default() {\n return Default;\n }\n\n static get DefaultType() {\n return DefaultType;\n }\n\n static get NAME() {\n return NAME;\n }\n\n // Public\n toggle(relatedTarget) {\n return this._isShown ? this.hide() : this.show(relatedTarget);\n }\n\n show(relatedTarget) {\n if (this._isShown) {\n return;\n }\n\n const showEvent = EventHandler.trigger(this._element, EVENT_SHOW, { relatedTarget });\n\n if (showEvent.defaultPrevented) {\n return;\n }\n\n this._isShown = true;\n this._backdrop.show();\n\n if (!this._config.scroll) {\n new ScrollBarHelper().hide();\n }\n\n this._element.setAttribute('aria-modal', true);\n this._element.setAttribute('role', 'dialog');\n this._element.classList.add(CLASS_NAME_SHOWING);\n\n const completeCallBack = () => {\n if (!this._config.scroll || this._config.backdrop) {\n this._focustrap.activate();\n }\n\n this._element.classList.add(CLASS_NAME_SHOW);\n this._element.classList.remove(CLASS_NAME_SHOWING);\n EventHandler.trigger(this._element, EVENT_SHOWN, { relatedTarget });\n };\n\n this._queueCallback(completeCallBack, this._element, true);\n }\n\n hide() {\n if (!this._isShown) {\n return;\n }\n\n const hideEvent = EventHandler.trigger(this._element, EVENT_HIDE);\n\n if (hideEvent.defaultPrevented) {\n return;\n }\n\n this._focustrap.deactivate();\n this._element.blur();\n this._isShown = false;\n this._element.classList.add(CLASS_NAME_HIDING);\n this._backdrop.hide();\n\n const completeCallback = () => {\n this._element.classList.remove(CLASS_NAME_SHOW, CLASS_NAME_HIDING);\n this._element.removeAttribute('aria-modal');\n this._element.removeAttribute('role');\n\n if (!this._config.scroll) {\n new ScrollBarHelper().reset();\n }\n\n EventHandler.trigger(this._element, EVENT_HIDDEN);\n };\n\n this._queueCallback(completeCallback, this._element, true);\n }\n\n dispose() {\n this._backdrop.dispose();\n this._focustrap.deactivate();\n super.dispose();\n }\n\n // Private\n _initializeBackDrop() {\n const clickCallback = () => {\n if (this._config.backdrop === 'static') {\n EventHandler.trigger(this._element, EVENT_HIDE_PREVENTED);\n return;\n }\n\n this.hide();\n };\n\n // 'static' option will be translated to true, and booleans will keep their value\n const isVisible = Boolean(this._config.backdrop);\n\n return new Backdrop({\n className: CLASS_NAME_BACKDROP,\n isVisible,\n isAnimated: true,\n rootElement: this._element.parentNode,\n clickCallback: isVisible ? clickCallback : null,\n });\n }\n\n _initializeFocusTrap() {\n return new FocusTrap({\n trapElement: this._element,\n });\n }\n\n _addEventListeners() {\n EventHandler.on(this._element, EVENT_KEYDOWN_DISMISS, (event) => {\n if (event.key !== ESCAPE_KEY) {\n return;\n }\n\n if (this._config.keyboard) {\n this.hide();\n return;\n }\n\n EventHandler.trigger(this._element, EVENT_HIDE_PREVENTED);\n });\n }\n\n // Static\n static jQueryInterface(config) {\n return this.each(function () {\n const data = Offcanvas.getOrCreateInstance(this, config);\n\n if (typeof config !== 'string') {\n return;\n }\n\n if (data[config] === undefined || config.startsWith('_') || config === 'constructor') {\n throw new TypeError(`No method named \"${config}\"`);\n }\n\n data[config](this);\n });\n }\n}\n\n/**\n * Data API implementation\n */\n\n// EventHandler.on(document, EVENT_CLICK_DATA_API, SELECTOR_DATA_TOGGLE, function (event) {\n// const target = SelectorEngine.getElementFromSelector(this)\n\n// if (['A', 'AREA'].includes(this.tagName)) {\n// event.preventDefault()\n// }\n\n// if (isDisabled(this)) {\n// return\n// }\n\n// EventHandler.one(target, EVENT_HIDDEN, () => {\n// // focus on trigger when it is closed\n// if (isVisible(this)) {\n// this.focus()\n// }\n// })\n\n// // avoid conflict when clicking a toggler of an offcanvas, while another is open\n// const alreadyOpen = SelectorEngine.findOne(OPEN_SELECTOR)\n// if (alreadyOpen && alreadyOpen !== target) {\n// Offcanvas.getInstance(alreadyOpen).hide()\n// }\n\n// const data = Offcanvas.getOrCreateInstance(target)\n// data.toggle(this)\n// })\n\n// EventHandler.on(window, EVENT_LOAD_DATA_API, () => {\n// for (const selector of SelectorEngine.find(OPEN_SELECTOR)) {\n// Offcanvas.getOrCreateInstance(selector).show()\n// }\n// })\n\n// EventHandler.on(window, EVENT_RESIZE, () => {\n// for (const element of SelectorEngine.find('[aria-modal][class*=show][class*=offcanvas-]')) {\n// if (getComputedStyle(element).position !== 'fixed') {\n// Offcanvas.getOrCreateInstance(element).hide()\n// }\n// }\n// })\n\n// enableDismissTrigger(Offcanvas)\n\n/**\n * jQuery\n */\n\n// defineJQueryPlugin(Offcanvas)\n\nexport default Offcanvas;\n","/**\n * --------------------------------------------------------------------------\n * Bootstrap util/swipe.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nimport EventHandler from '../dom/event-handler.js';\nimport Config from './config.js';\nimport { execute } from './index.js';\n\n/**\n * Constants\n */\n\nconst NAME = 'swipe';\nconst EVENT_KEY = '.bs.swipe';\nconst EVENT_TOUCHSTART = `touchstart${EVENT_KEY}`;\nconst EVENT_TOUCHMOVE = `touchmove${EVENT_KEY}`;\nconst EVENT_TOUCHEND = `touchend${EVENT_KEY}`;\nconst EVENT_POINTERDOWN = `pointerdown${EVENT_KEY}`;\nconst EVENT_POINTERUP = `pointerup${EVENT_KEY}`;\nconst POINTER_TYPE_TOUCH = 'touch';\nconst POINTER_TYPE_PEN = 'pen';\nconst CLASS_NAME_POINTER_EVENT = 'pointer-event';\nconst SWIPE_THRESHOLD = 40;\n\nconst Default = {\n endCallback: null,\n leftCallback: null,\n rightCallback: null,\n};\n\nconst DefaultType = {\n endCallback: '(function|null)',\n leftCallback: '(function|null)',\n rightCallback: '(function|null)',\n};\n\n/**\n * Class definition\n */\n\nclass Swipe extends Config {\n constructor(element, config) {\n super();\n this._element = element;\n\n if (!element || !Swipe.isSupported()) {\n return;\n }\n\n this._config = this._getConfig(config);\n this._deltaX = 0;\n this._supportPointerEvents = Boolean(window.PointerEvent);\n this._initEvents();\n }\n\n // Getters\n static get Default() {\n return Default;\n }\n\n static get DefaultType() {\n return DefaultType;\n }\n\n static get NAME() {\n return NAME;\n }\n\n // Public\n dispose() {\n EventHandler.off(this._element, EVENT_KEY);\n }\n\n // Private\n _start(event) {\n if (!this._supportPointerEvents) {\n this._deltaX = event.touches[0].clientX;\n\n return;\n }\n\n if (this._eventIsPointerPenTouch(event)) {\n this._deltaX = event.clientX;\n }\n }\n\n _end(event) {\n if (this._eventIsPointerPenTouch(event)) {\n this._deltaX = event.clientX - this._deltaX;\n }\n\n this._handleSwipe();\n execute(this._config.endCallback);\n }\n\n _move(event) {\n this._deltaX =\n event.touches && event.touches.length > 1 ? 0 : event.touches[0].clientX - this._deltaX;\n }\n\n _handleSwipe() {\n const absDeltaX = Math.abs(this._deltaX);\n\n if (absDeltaX <= SWIPE_THRESHOLD) {\n return;\n }\n\n const direction = absDeltaX / this._deltaX;\n\n this._deltaX = 0;\n\n if (!direction) {\n return;\n }\n\n execute(direction > 0 ? this._config.rightCallback : this._config.leftCallback);\n }\n\n _initEvents() {\n if (this._supportPointerEvents) {\n EventHandler.on(this._element, EVENT_POINTERDOWN, (event) => this._start(event));\n EventHandler.on(this._element, EVENT_POINTERUP, (event) => this._end(event));\n\n this._element.classList.add(CLASS_NAME_POINTER_EVENT);\n } else {\n EventHandler.on(this._element, EVENT_TOUCHSTART, (event) => this._start(event));\n EventHandler.on(this._element, EVENT_TOUCHMOVE, (event) => this._move(event));\n EventHandler.on(this._element, EVENT_TOUCHEND, (event) => this._end(event));\n }\n }\n\n _eventIsPointerPenTouch(event) {\n return (\n this._supportPointerEvents &&\n (event.pointerType === POINTER_TYPE_PEN || event.pointerType === POINTER_TYPE_TOUCH)\n );\n }\n\n // Static\n static isSupported() {\n return 'ontouchstart' in document.documentElement || navigator.maxTouchPoints > 0;\n }\n}\n\nexport default Swipe;\n","/**\n * --------------------------------------------------------------------------\n * Bootstrap carousel.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nimport BaseComponent from './base-component.js';\nimport EventHandler from './dom/event-handler.js';\nimport Manipulator from './dom/manipulator.js';\nimport SelectorEngine from './dom/selector-engine.js';\nimport {\n defineJQueryPlugin,\n getNextActiveElement,\n isRTL,\n isVisible,\n reflow,\n triggerTransitionEnd,\n} from './util/index.js';\nimport Swipe from './util/swipe.js';\n\n/**\n * Constants\n */\n\nconst NAME = 'carousel';\nconst DATA_KEY = 'bs.carousel';\nconst EVENT_KEY = `.${DATA_KEY}`;\nconst DATA_API_KEY = '.data-api';\n\nconst ARROW_LEFT_KEY = 'ArrowLeft';\nconst ARROW_RIGHT_KEY = 'ArrowRight';\nconst TOUCHEVENT_COMPAT_WAIT = 500; // Time for mouse compat events to fire after touch\n\nconst ORDER_NEXT = 'next';\nconst ORDER_PREV = 'prev';\nconst DIRECTION_LEFT = 'left';\nconst DIRECTION_RIGHT = 'right';\n\nconst EVENT_SLIDE = `slide${EVENT_KEY}`;\nconst EVENT_SLID = `slid${EVENT_KEY}`;\nconst EVENT_KEYDOWN = `keydown${EVENT_KEY}`;\nconst EVENT_MOUSEENTER = `mouseenter${EVENT_KEY}`;\nconst EVENT_MOUSELEAVE = `mouseleave${EVENT_KEY}`;\nconst EVENT_DRAG_START = `dragstart${EVENT_KEY}`;\nconst EVENT_LOAD_DATA_API = `load${EVENT_KEY}${DATA_API_KEY}`;\nconst EVENT_CLICK_DATA_API = `click${EVENT_KEY}${DATA_API_KEY}`;\n\nconst CLASS_NAME_CAROUSEL = 'carousel';\nconst CLASS_NAME_ACTIVE = 'active';\nconst CLASS_NAME_SLIDE = 'slide';\nconst CLASS_NAME_END = 'carousel-item-end';\nconst CLASS_NAME_START = 'carousel-item-start';\nconst CLASS_NAME_NEXT = 'carousel-item-next';\nconst CLASS_NAME_PREV = 'carousel-item-prev';\n\nconst SELECTOR_ACTIVE = '.active';\nconst SELECTOR_ITEM = '.carousel-item';\nconst SELECTOR_ACTIVE_ITEM = SELECTOR_ACTIVE + SELECTOR_ITEM;\nconst SELECTOR_ITEM_IMG = '.carousel-item img';\nconst SELECTOR_INDICATORS = '.carousel-indicators';\nconst SELECTOR_DATA_SLIDE = '[data-mdb-slide], [data-mdb-slide-to]';\nconst SELECTOR_DATA_RIDE = '[data-mdb-ride=\"carousel\"]';\n\nconst KEY_TO_DIRECTION = {\n [ARROW_LEFT_KEY]: DIRECTION_RIGHT,\n [ARROW_RIGHT_KEY]: DIRECTION_LEFT,\n};\n\nconst Default = {\n interval: 5000,\n keyboard: true,\n pause: 'hover',\n ride: false,\n touch: true,\n wrap: true,\n};\n\nconst DefaultType = {\n interval: '(number|boolean)', // TODO:v6 remove boolean support\n keyboard: 'boolean',\n pause: '(string|boolean)',\n ride: '(boolean|string)',\n touch: 'boolean',\n wrap: 'boolean',\n};\n\n/**\n * Class definition\n */\n\nclass Carousel extends BaseComponent {\n constructor(element, config) {\n super(element, config);\n\n this._interval = null;\n this._activeElement = null;\n this._isSliding = false;\n this.touchTimeout = null;\n this._swipeHelper = null;\n\n this._indicatorsElement = SelectorEngine.findOne(SELECTOR_INDICATORS, this._element);\n this._addEventListeners();\n\n if (this._config.ride === CLASS_NAME_CAROUSEL) {\n this.cycle();\n }\n }\n\n // Getters\n static get Default() {\n return Default;\n }\n\n static get DefaultType() {\n return DefaultType;\n }\n\n static get NAME() {\n return NAME;\n }\n\n // Public\n next() {\n this._slide(ORDER_NEXT);\n }\n\n nextWhenVisible() {\n // FIXME TODO use `document.visibilityState`\n // Don't call next when the page isn't visible\n // or the carousel or its parent isn't visible\n if (!document.hidden && isVisible(this._element)) {\n this.next();\n }\n }\n\n prev() {\n this._slide(ORDER_PREV);\n }\n\n pause() {\n if (this._isSliding) {\n triggerTransitionEnd(this._element);\n }\n\n this._clearInterval();\n }\n\n cycle() {\n this._clearInterval();\n this._updateInterval();\n\n this._interval = setInterval(() => this.nextWhenVisible(), this._config.interval);\n }\n\n _maybeEnableCycle() {\n if (!this._config.ride) {\n return;\n }\n\n if (this._isSliding) {\n EventHandler.one(this._element, EVENT_SLID, () => this.cycle());\n return;\n }\n\n this.cycle();\n }\n\n to(index) {\n const items = this._getItems();\n if (index > items.length - 1 || index < 0) {\n return;\n }\n\n if (this._isSliding) {\n EventHandler.one(this._element, EVENT_SLID, () => this.to(index));\n return;\n }\n\n const activeIndex = this._getItemIndex(this._getActive());\n if (activeIndex === index) {\n return;\n }\n\n const order = index > activeIndex ? ORDER_NEXT : ORDER_PREV;\n\n this._slide(order, items[index]);\n }\n\n dispose() {\n if (this._swipeHelper) {\n this._swipeHelper.dispose();\n }\n\n super.dispose();\n }\n\n // Private\n _configAfterMerge(config) {\n config.defaultInterval = config.interval;\n return config;\n }\n\n _addEventListeners() {\n if (this._config.keyboard) {\n EventHandler.on(this._element, EVENT_KEYDOWN, (event) => this._keydown(event));\n }\n\n if (this._config.pause === 'hover') {\n EventHandler.on(this._element, EVENT_MOUSEENTER, () => this.pause());\n EventHandler.on(this._element, EVENT_MOUSELEAVE, () => this._maybeEnableCycle());\n }\n\n if (this._config.touch && Swipe.isSupported()) {\n this._addTouchEventListeners();\n }\n }\n\n _addTouchEventListeners() {\n for (const img of SelectorEngine.find(SELECTOR_ITEM_IMG, this._element)) {\n EventHandler.on(img, EVENT_DRAG_START, (event) => event.preventDefault());\n }\n\n const endCallBack = () => {\n if (this._config.pause !== 'hover') {\n return;\n }\n\n // If it's a touch-enabled device, mouseenter/leave are fired as\n // part of the mouse compatibility events on first tap - the carousel\n // would stop cycling until user tapped out of it;\n // here, we listen for touchend, explicitly pause the carousel\n // (as if it's the second time we tap on it, mouseenter compat event\n // is NOT fired) and after a timeout (to allow for mouse compatibility\n // events to fire) we explicitly restart cycling\n\n this.pause();\n if (this.touchTimeout) {\n clearTimeout(this.touchTimeout);\n }\n\n this.touchTimeout = setTimeout(\n () => this._maybeEnableCycle(),\n TOUCHEVENT_COMPAT_WAIT + this._config.interval\n );\n };\n\n const swipeConfig = {\n leftCallback: () => this._slide(this._directionToOrder(DIRECTION_LEFT)),\n rightCallback: () => this._slide(this._directionToOrder(DIRECTION_RIGHT)),\n endCallback: endCallBack,\n };\n\n this._swipeHelper = new Swipe(this._element, swipeConfig);\n }\n\n _keydown(event) {\n if (/input|textarea/i.test(event.target.tagName)) {\n return;\n }\n\n const direction = KEY_TO_DIRECTION[event.key];\n if (direction) {\n event.preventDefault();\n this._slide(this._directionToOrder(direction));\n }\n }\n\n _getItemIndex(element) {\n return this._getItems().indexOf(element);\n }\n\n _setActiveIndicatorElement(index) {\n if (!this._indicatorsElement) {\n return;\n }\n\n const activeIndicator = SelectorEngine.findOne(SELECTOR_ACTIVE, this._indicatorsElement);\n\n activeIndicator.classList.remove(CLASS_NAME_ACTIVE);\n activeIndicator.removeAttribute('aria-current');\n\n const newActiveIndicator = SelectorEngine.findOne(\n `[data-mdb-slide-to=\"${index}\"]`,\n this._indicatorsElement\n );\n\n if (newActiveIndicator) {\n newActiveIndicator.classList.add(CLASS_NAME_ACTIVE);\n newActiveIndicator.setAttribute('aria-current', 'true');\n }\n }\n\n _updateInterval() {\n const element = this._activeElement || this._getActive();\n\n if (!element) {\n return;\n }\n\n const elementInterval = Number.parseInt(element.getAttribute('data-mdb-interval'), 10);\n\n this._config.interval = elementInterval || this._config.defaultInterval;\n }\n\n _slide(order, element = null) {\n if (this._isSliding) {\n return;\n }\n\n const activeElement = this._getActive();\n const isNext = order === ORDER_NEXT;\n const nextElement =\n element || getNextActiveElement(this._getItems(), activeElement, isNext, this._config.wrap);\n\n if (nextElement === activeElement) {\n return;\n }\n\n const nextElementIndex = this._getItemIndex(nextElement);\n\n const triggerEvent = (eventName) => {\n return EventHandler.trigger(this._element, eventName, {\n relatedTarget: nextElement,\n direction: this._orderToDirection(order),\n from: this._getItemIndex(activeElement),\n to: nextElementIndex,\n });\n };\n\n const slideEvent = triggerEvent(EVENT_SLIDE);\n\n if (slideEvent.defaultPrevented) {\n return;\n }\n\n if (!activeElement || !nextElement) {\n // Some weirdness is happening, so we bail\n // TODO: change tests that use empty divs to avoid this check\n return;\n }\n\n const isCycling = Boolean(this._interval);\n this.pause();\n\n this._isSliding = true;\n\n this._setActiveIndicatorElement(nextElementIndex);\n this._activeElement = nextElement;\n\n const directionalClassName = isNext ? CLASS_NAME_START : CLASS_NAME_END;\n const orderClassName = isNext ? CLASS_NAME_NEXT : CLASS_NAME_PREV;\n\n nextElement.classList.add(orderClassName);\n\n reflow(nextElement);\n\n activeElement.classList.add(directionalClassName);\n nextElement.classList.add(directionalClassName);\n\n const completeCallBack = () => {\n nextElement.classList.remove(directionalClassName, orderClassName);\n nextElement.classList.add(CLASS_NAME_ACTIVE);\n\n activeElement.classList.remove(CLASS_NAME_ACTIVE, orderClassName, directionalClassName);\n\n this._isSliding = false;\n\n triggerEvent(EVENT_SLID);\n };\n\n this._queueCallback(completeCallBack, activeElement, this._isAnimated());\n\n if (isCycling) {\n this.cycle();\n }\n }\n\n _isAnimated() {\n return this._element.classList.contains(CLASS_NAME_SLIDE);\n }\n\n _getActive() {\n return SelectorEngine.findOne(SELECTOR_ACTIVE_ITEM, this._element);\n }\n\n _getItems() {\n return SelectorEngine.find(SELECTOR_ITEM, this._element);\n }\n\n _clearInterval() {\n if (this._interval) {\n clearInterval(this._interval);\n this._interval = null;\n }\n }\n\n _directionToOrder(direction) {\n if (isRTL()) {\n return direction === DIRECTION_LEFT ? ORDER_PREV : ORDER_NEXT;\n }\n\n return direction === DIRECTION_LEFT ? ORDER_NEXT : ORDER_PREV;\n }\n\n _orderToDirection(order) {\n if (isRTL()) {\n return order === ORDER_PREV ? DIRECTION_LEFT : DIRECTION_RIGHT;\n }\n\n return order === ORDER_PREV ? DIRECTION_RIGHT : DIRECTION_LEFT;\n }\n\n // Static\n static jQueryInterface(config) {\n return this.each(function () {\n const data = Carousel.getOrCreateInstance(this, config);\n\n if (typeof config === 'number') {\n data.to(config);\n return;\n }\n\n if (typeof config === 'string') {\n if (data[config] === undefined || config.startsWith('_') || config === 'constructor') {\n throw new TypeError(`No method named \"${config}\"`);\n }\n\n data[config]();\n }\n });\n }\n}\n\n/**\n * Data API implementation\n */\n\n// EventHandler.on(document, EVENT_CLICK_DATA_API, SELECTOR_DATA_SLIDE, function (event) {\n// const target = SelectorEngine.getElementFromSelector(this)\n\n// if (!target || !target.classList.contains(CLASS_NAME_CAROUSEL)) {\n// return\n// }\n\n// event.preventDefault()\n\n// const carousel = Carousel.getOrCreateInstance(target)\n// const slideIndex = this.getAttribute('data-mdb-slide-to')\n\n// if (slideIndex) {\n// carousel.to(slideIndex)\n// carousel._maybeEnableCycle()\n// return\n// }\n\n// if (Manipulator.getDataAttribute(this, 'slide') === 'next') {\n// carousel.next()\n// carousel._maybeEnableCycle()\n// return\n// }\n\n// carousel.prev()\n// carousel._maybeEnableCycle()\n// })\n\n// EventHandler.on(window, EVENT_LOAD_DATA_API, () => {\n// const carousels = SelectorEngine.find(SELECTOR_DATA_RIDE)\n\n// for (const carousel of carousels) {\n// Carousel.getOrCreateInstance(carousel)\n// }\n// })\n\n/**\n * jQuery\n */\n\n// defineJQueryPlugin(Carousel)\n\nexport default Carousel;\n","import EventHandler from '../mdb/dom/event-handler';\nimport BSCarousel from '../bootstrap/mdb-prefix/carousel';\nimport Manipulator from '../mdb/dom/manipulator';\nimport { bindCallbackEventsIfNeeded } from '../autoinit/init';\n\n/**\n * ------------------------------------------------------------------------\n * Constants\n * ------------------------------------------------------------------------\n */\n\nconst NAME = 'carousel';\n\nconst EVENT_SLIDE_BS = 'slide.bs.carousel';\nconst EVENT_SLID_BS = 'slid.bs.carousel';\n\nconst EXTENDED_EVENTS = [\n { name: 'slide', parametersToCopy: ['relatedTarget', 'direction', 'from', 'to'] },\n { name: 'slid', parametersToCopy: ['relatedTarget', 'direction', 'from', 'to'] },\n];\n\nclass Carousel extends BSCarousel {\n constructor(element, data) {\n super(element, data);\n\n this._init();\n Manipulator.setDataAttribute(this._element, `${this.constructor.NAME}-initialized`, true);\n bindCallbackEventsIfNeeded(this.constructor);\n }\n\n dispose() {\n EventHandler.off(this._element, EVENT_SLIDE_BS);\n EventHandler.off(this._element, EVENT_SLID_BS);\n Manipulator.removeDataAttribute(this._element, `${this.constructor.NAME}-initialized`);\n\n super.dispose();\n }\n\n // Getters\n static get NAME() {\n return NAME;\n }\n\n // Private\n _init() {\n this._bindMdbEvents();\n }\n\n _bindMdbEvents() {\n EventHandler.extend(this._element, EXTENDED_EVENTS, NAME);\n }\n}\n\nexport default Carousel;\n","export var top = 'top';\nexport var bottom = 'bottom';\nexport var right = 'right';\nexport var left = 'left';\nexport var auto = 'auto';\nexport var basePlacements = [top, bottom, right, left];\nexport var start = 'start';\nexport var end = 'end';\nexport var clippingParents = 'clippingParents';\nexport var viewport = 'viewport';\nexport var popper = 'popper';\nexport var reference = 'reference';\nexport var variationPlacements = /*#__PURE__*/basePlacements.reduce(function (acc, placement) {\n return acc.concat([placement + \"-\" + start, placement + \"-\" + end]);\n}, []);\nexport var placements = /*#__PURE__*/[].concat(basePlacements, [auto]).reduce(function (acc, placement) {\n return acc.concat([placement, placement + \"-\" + start, placement + \"-\" + end]);\n}, []); // modifiers that need to read the DOM\n\nexport var beforeRead = 'beforeRead';\nexport var read = 'read';\nexport var afterRead = 'afterRead'; // pure-logic modifiers\n\nexport var beforeMain = 'beforeMain';\nexport var main = 'main';\nexport var afterMain = 'afterMain'; // modifier with the purpose to write to the DOM (or write into a framework state)\n\nexport var beforeWrite = 'beforeWrite';\nexport var write = 'write';\nexport var afterWrite = 'afterWrite';\nexport var modifierPhases = [beforeRead, read, afterRead, beforeMain, main, afterMain, beforeWrite, write, afterWrite];","export default function getNodeName(element) {\n return element ? (element.nodeName || '').toLowerCase() : null;\n}","export default function getWindow(node) {\n if (node == null) {\n return window;\n }\n\n if (node.toString() !== '[object Window]') {\n var ownerDocument = node.ownerDocument;\n return ownerDocument ? ownerDocument.defaultView || window : window;\n }\n\n return node;\n}","import getWindow from \"./getWindow.js\";\n\nfunction isElement(node) {\n var OwnElement = getWindow(node).Element;\n return node instanceof OwnElement || node instanceof Element;\n}\n\nfunction isHTMLElement(node) {\n var OwnElement = getWindow(node).HTMLElement;\n return node instanceof OwnElement || node instanceof HTMLElement;\n}\n\nfunction isShadowRoot(node) {\n // IE 11 has no ShadowRoot\n if (typeof ShadowRoot === 'undefined') {\n return false;\n }\n\n var OwnElement = getWindow(node).ShadowRoot;\n return node instanceof OwnElement || node instanceof ShadowRoot;\n}\n\nexport { isElement, isHTMLElement, isShadowRoot };","import getNodeName from \"../dom-utils/getNodeName.js\";\nimport { isHTMLElement } from \"../dom-utils/instanceOf.js\"; // This modifier takes the styles prepared by the `computeStyles` modifier\n// and applies them to the HTMLElements such as popper and arrow\n\nfunction applyStyles(_ref) {\n var state = _ref.state;\n Object.keys(state.elements).forEach(function (name) {\n var style = state.styles[name] || {};\n var attributes = state.attributes[name] || {};\n var element = state.elements[name]; // arrow is optional + virtual elements\n\n if (!isHTMLElement(element) || !getNodeName(element)) {\n return;\n } // Flow doesn't support to extend this property, but it's the most\n // effective way to apply styles to an HTMLElement\n // $FlowFixMe[cannot-write]\n\n\n Object.assign(element.style, style);\n Object.keys(attributes).forEach(function (name) {\n var value = attributes[name];\n\n if (value === false) {\n element.removeAttribute(name);\n } else {\n element.setAttribute(name, value === true ? '' : value);\n }\n });\n });\n}\n\nfunction effect(_ref2) {\n var state = _ref2.state;\n var initialStyles = {\n popper: {\n position: state.options.strategy,\n left: '0',\n top: '0',\n margin: '0'\n },\n arrow: {\n position: 'absolute'\n },\n reference: {}\n };\n Object.assign(state.elements.popper.style, initialStyles.popper);\n state.styles = initialStyles;\n\n if (state.elements.arrow) {\n Object.assign(state.elements.arrow.style, initialStyles.arrow);\n }\n\n return function () {\n Object.keys(state.elements).forEach(function (name) {\n var element = state.elements[name];\n var attributes = state.attributes[name] || {};\n var styleProperties = Object.keys(state.styles.hasOwnProperty(name) ? state.styles[name] : initialStyles[name]); // Set all values to an empty string to unset them\n\n var style = styleProperties.reduce(function (style, property) {\n style[property] = '';\n return style;\n }, {}); // arrow is optional + virtual elements\n\n if (!isHTMLElement(element) || !getNodeName(element)) {\n return;\n }\n\n Object.assign(element.style, style);\n Object.keys(attributes).forEach(function (attribute) {\n element.removeAttribute(attribute);\n });\n });\n };\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'applyStyles',\n enabled: true,\n phase: 'write',\n fn: applyStyles,\n effect: effect,\n requires: ['computeStyles']\n};","import { auto } from \"../enums.js\";\nexport default function getBasePlacement(placement) {\n return placement.split('-')[0];\n}","export var max = Math.max;\nexport var min = Math.min;\nexport var round = Math.round;","export default function getUAString() {\n var uaData = navigator.userAgentData;\n\n if (uaData != null && uaData.brands && Array.isArray(uaData.brands)) {\n return uaData.brands.map(function (item) {\n return item.brand + \"/\" + item.version;\n }).join(' ');\n }\n\n return navigator.userAgent;\n}","import getUAString from \"../utils/userAgent.js\";\nexport default function isLayoutViewport() {\n return !/^((?!chrome|android).)*safari/i.test(getUAString());\n}","import { isElement, isHTMLElement } from \"./instanceOf.js\";\nimport { round } from \"../utils/math.js\";\nimport getWindow from \"./getWindow.js\";\nimport isLayoutViewport from \"./isLayoutViewport.js\";\nexport default function getBoundingClientRect(element, includeScale, isFixedStrategy) {\n if (includeScale === void 0) {\n includeScale = false;\n }\n\n if (isFixedStrategy === void 0) {\n isFixedStrategy = false;\n }\n\n var clientRect = element.getBoundingClientRect();\n var scaleX = 1;\n var scaleY = 1;\n\n if (includeScale && isHTMLElement(element)) {\n scaleX = element.offsetWidth > 0 ? round(clientRect.width) / element.offsetWidth || 1 : 1;\n scaleY = element.offsetHeight > 0 ? round(clientRect.height) / element.offsetHeight || 1 : 1;\n }\n\n var _ref = isElement(element) ? getWindow(element) : window,\n visualViewport = _ref.visualViewport;\n\n var addVisualOffsets = !isLayoutViewport() && isFixedStrategy;\n var x = (clientRect.left + (addVisualOffsets && visualViewport ? visualViewport.offsetLeft : 0)) / scaleX;\n var y = (clientRect.top + (addVisualOffsets && visualViewport ? visualViewport.offsetTop : 0)) / scaleY;\n var width = clientRect.width / scaleX;\n var height = clientRect.height / scaleY;\n return {\n width: width,\n height: height,\n top: y,\n right: x + width,\n bottom: y + height,\n left: x,\n x: x,\n y: y\n };\n}","import getBoundingClientRect from \"./getBoundingClientRect.js\"; // Returns the layout rect of an element relative to its offsetParent. Layout\n// means it doesn't take into account transforms.\n\nexport default function getLayoutRect(element) {\n var clientRect = getBoundingClientRect(element); // Use the clientRect sizes if it's not been transformed.\n // Fixes https://github.com/popperjs/popper-core/issues/1223\n\n var width = element.offsetWidth;\n var height = element.offsetHeight;\n\n if (Math.abs(clientRect.width - width) <= 1) {\n width = clientRect.width;\n }\n\n if (Math.abs(clientRect.height - height) <= 1) {\n height = clientRect.height;\n }\n\n return {\n x: element.offsetLeft,\n y: element.offsetTop,\n width: width,\n height: height\n };\n}","import { isShadowRoot } from \"./instanceOf.js\";\nexport default function contains(parent, child) {\n var rootNode = child.getRootNode && child.getRootNode(); // First, attempt with faster native method\n\n if (parent.contains(child)) {\n return true;\n } // then fallback to custom implementation with Shadow DOM support\n else if (rootNode && isShadowRoot(rootNode)) {\n var next = child;\n\n do {\n if (next && parent.isSameNode(next)) {\n return true;\n } // $FlowFixMe[prop-missing]: need a better way to handle this...\n\n\n next = next.parentNode || next.host;\n } while (next);\n } // Give up, the result is false\n\n\n return false;\n}","import getWindow from \"./getWindow.js\";\nexport default function getComputedStyle(element) {\n return getWindow(element).getComputedStyle(element);\n}","import getNodeName from \"./getNodeName.js\";\nexport default function isTableElement(element) {\n return ['table', 'td', 'th'].indexOf(getNodeName(element)) >= 0;\n}","import { isElement } from \"./instanceOf.js\";\nexport default function getDocumentElement(element) {\n // $FlowFixMe[incompatible-return]: assume body is always available\n return ((isElement(element) ? element.ownerDocument : // $FlowFixMe[prop-missing]\n element.document) || window.document).documentElement;\n}","import getNodeName from \"./getNodeName.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport { isShadowRoot } from \"./instanceOf.js\";\nexport default function getParentNode(element) {\n if (getNodeName(element) === 'html') {\n return element;\n }\n\n return (// this is a quicker (but less type safe) way to save quite some bytes from the bundle\n // $FlowFixMe[incompatible-return]\n // $FlowFixMe[prop-missing]\n element.assignedSlot || // step into the shadow DOM of the parent of a slotted node\n element.parentNode || ( // DOM Element detected\n isShadowRoot(element) ? element.host : null) || // ShadowRoot detected\n // $FlowFixMe[incompatible-call]: HTMLElement is a Node\n getDocumentElement(element) // fallback\n\n );\n}","import getWindow from \"./getWindow.js\";\nimport getNodeName from \"./getNodeName.js\";\nimport getComputedStyle from \"./getComputedStyle.js\";\nimport { isHTMLElement, isShadowRoot } from \"./instanceOf.js\";\nimport isTableElement from \"./isTableElement.js\";\nimport getParentNode from \"./getParentNode.js\";\nimport getUAString from \"../utils/userAgent.js\";\n\nfunction getTrueOffsetParent(element) {\n if (!isHTMLElement(element) || // https://github.com/popperjs/popper-core/issues/837\n getComputedStyle(element).position === 'fixed') {\n return null;\n }\n\n return element.offsetParent;\n} // `.offsetParent` reports `null` for fixed elements, while absolute elements\n// return the containing block\n\n\nfunction getContainingBlock(element) {\n var isFirefox = /firefox/i.test(getUAString());\n var isIE = /Trident/i.test(getUAString());\n\n if (isIE && isHTMLElement(element)) {\n // In IE 9, 10 and 11 fixed elements containing block is always established by the viewport\n var elementCss = getComputedStyle(element);\n\n if (elementCss.position === 'fixed') {\n return null;\n }\n }\n\n var currentNode = getParentNode(element);\n\n if (isShadowRoot(currentNode)) {\n currentNode = currentNode.host;\n }\n\n while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {\n var css = getComputedStyle(currentNode); // This is non-exhaustive but covers the most common CSS properties that\n // create a containing block.\n // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block\n\n if (css.transform !== 'none' || css.perspective !== 'none' || css.contain === 'paint' || ['transform', 'perspective'].indexOf(css.willChange) !== -1 || isFirefox && css.willChange === 'filter' || isFirefox && css.filter && css.filter !== 'none') {\n return currentNode;\n } else {\n currentNode = currentNode.parentNode;\n }\n }\n\n return null;\n} // Gets the closest ancestor positioned element. Handles some edge cases,\n// such as table ancestors and cross browser bugs.\n\n\nexport default function getOffsetParent(element) {\n var window = getWindow(element);\n var offsetParent = getTrueOffsetParent(element);\n\n while (offsetParent && isTableElement(offsetParent) && getComputedStyle(offsetParent).position === 'static') {\n offsetParent = getTrueOffsetParent(offsetParent);\n }\n\n if (offsetParent && (getNodeName(offsetParent) === 'html' || getNodeName(offsetParent) === 'body' && getComputedStyle(offsetParent).position === 'static')) {\n return window;\n }\n\n return offsetParent || getContainingBlock(element) || window;\n}","export default function getMainAxisFromPlacement(placement) {\n return ['top', 'bottom'].indexOf(placement) >= 0 ? 'x' : 'y';\n}","import { max as mathMax, min as mathMin } from \"./math.js\";\nexport function within(min, value, max) {\n return mathMax(min, mathMin(value, max));\n}\nexport function withinMaxClamp(min, value, max) {\n var v = within(min, value, max);\n return v > max ? max : v;\n}","import getFreshSideObject from \"./getFreshSideObject.js\";\nexport default function mergePaddingObject(paddingObject) {\n return Object.assign({}, getFreshSideObject(), paddingObject);\n}","export default function getFreshSideObject() {\n return {\n top: 0,\n right: 0,\n bottom: 0,\n left: 0\n };\n}","export default function expandToHashMap(value, keys) {\n return keys.reduce(function (hashMap, key) {\n hashMap[key] = value;\n return hashMap;\n }, {});\n}","import getBasePlacement from \"../utils/getBasePlacement.js\";\nimport getLayoutRect from \"../dom-utils/getLayoutRect.js\";\nimport contains from \"../dom-utils/contains.js\";\nimport getOffsetParent from \"../dom-utils/getOffsetParent.js\";\nimport getMainAxisFromPlacement from \"../utils/getMainAxisFromPlacement.js\";\nimport { within } from \"../utils/within.js\";\nimport mergePaddingObject from \"../utils/mergePaddingObject.js\";\nimport expandToHashMap from \"../utils/expandToHashMap.js\";\nimport { left, right, basePlacements, top, bottom } from \"../enums.js\"; // eslint-disable-next-line import/no-unused-modules\n\nvar toPaddingObject = function toPaddingObject(padding, state) {\n padding = typeof padding === 'function' ? padding(Object.assign({}, state.rects, {\n placement: state.placement\n })) : padding;\n return mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));\n};\n\nfunction arrow(_ref) {\n var _state$modifiersData$;\n\n var state = _ref.state,\n name = _ref.name,\n options = _ref.options;\n var arrowElement = state.elements.arrow;\n var popperOffsets = state.modifiersData.popperOffsets;\n var basePlacement = getBasePlacement(state.placement);\n var axis = getMainAxisFromPlacement(basePlacement);\n var isVertical = [left, right].indexOf(basePlacement) >= 0;\n var len = isVertical ? 'height' : 'width';\n\n if (!arrowElement || !popperOffsets) {\n return;\n }\n\n var paddingObject = toPaddingObject(options.padding, state);\n var arrowRect = getLayoutRect(arrowElement);\n var minProp = axis === 'y' ? top : left;\n var maxProp = axis === 'y' ? bottom : right;\n var endDiff = state.rects.reference[len] + state.rects.reference[axis] - popperOffsets[axis] - state.rects.popper[len];\n var startDiff = popperOffsets[axis] - state.rects.reference[axis];\n var arrowOffsetParent = getOffsetParent(arrowElement);\n var clientSize = arrowOffsetParent ? axis === 'y' ? arrowOffsetParent.clientHeight || 0 : arrowOffsetParent.clientWidth || 0 : 0;\n var centerToReference = endDiff / 2 - startDiff / 2; // Make sure the arrow doesn't overflow the popper if the center point is\n // outside of the popper bounds\n\n var min = paddingObject[minProp];\n var max = clientSize - arrowRect[len] - paddingObject[maxProp];\n var center = clientSize / 2 - arrowRect[len] / 2 + centerToReference;\n var offset = within(min, center, max); // Prevents breaking syntax highlighting...\n\n var axisProp = axis;\n state.modifiersData[name] = (_state$modifiersData$ = {}, _state$modifiersData$[axisProp] = offset, _state$modifiersData$.centerOffset = offset - center, _state$modifiersData$);\n}\n\nfunction effect(_ref2) {\n var state = _ref2.state,\n options = _ref2.options;\n var _options$element = options.element,\n arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element;\n\n if (arrowElement == null) {\n return;\n } // CSS selector\n\n\n if (typeof arrowElement === 'string') {\n arrowElement = state.elements.popper.querySelector(arrowElement);\n\n if (!arrowElement) {\n return;\n }\n }\n\n if (!contains(state.elements.popper, arrowElement)) {\n return;\n }\n\n state.elements.arrow = arrowElement;\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'arrow',\n enabled: true,\n phase: 'main',\n fn: arrow,\n effect: effect,\n requires: ['popperOffsets'],\n requiresIfExists: ['preventOverflow']\n};","export default function getVariation(placement) {\n return placement.split('-')[1];\n}","import { top, left, right, bottom, end } from \"../enums.js\";\nimport getOffsetParent from \"../dom-utils/getOffsetParent.js\";\nimport getWindow from \"../dom-utils/getWindow.js\";\nimport getDocumentElement from \"../dom-utils/getDocumentElement.js\";\nimport getComputedStyle from \"../dom-utils/getComputedStyle.js\";\nimport getBasePlacement from \"../utils/getBasePlacement.js\";\nimport getVariation from \"../utils/getVariation.js\";\nimport { round } from \"../utils/math.js\"; // eslint-disable-next-line import/no-unused-modules\n\nvar unsetSides = {\n top: 'auto',\n right: 'auto',\n bottom: 'auto',\n left: 'auto'\n}; // Round the offsets to the nearest suitable subpixel based on the DPR.\n// Zooming can change the DPR, but it seems to report a value that will\n// cleanly divide the values into the appropriate subpixels.\n\nfunction roundOffsetsByDPR(_ref, win) {\n var x = _ref.x,\n y = _ref.y;\n var dpr = win.devicePixelRatio || 1;\n return {\n x: round(x * dpr) / dpr || 0,\n y: round(y * dpr) / dpr || 0\n };\n}\n\nexport function mapToStyles(_ref2) {\n var _Object$assign2;\n\n var popper = _ref2.popper,\n popperRect = _ref2.popperRect,\n placement = _ref2.placement,\n variation = _ref2.variation,\n offsets = _ref2.offsets,\n position = _ref2.position,\n gpuAcceleration = _ref2.gpuAcceleration,\n adaptive = _ref2.adaptive,\n roundOffsets = _ref2.roundOffsets,\n isFixed = _ref2.isFixed;\n var _offsets$x = offsets.x,\n x = _offsets$x === void 0 ? 0 : _offsets$x,\n _offsets$y = offsets.y,\n y = _offsets$y === void 0 ? 0 : _offsets$y;\n\n var _ref3 = typeof roundOffsets === 'function' ? roundOffsets({\n x: x,\n y: y\n }) : {\n x: x,\n y: y\n };\n\n x = _ref3.x;\n y = _ref3.y;\n var hasX = offsets.hasOwnProperty('x');\n var hasY = offsets.hasOwnProperty('y');\n var sideX = left;\n var sideY = top;\n var win = window;\n\n if (adaptive) {\n var offsetParent = getOffsetParent(popper);\n var heightProp = 'clientHeight';\n var widthProp = 'clientWidth';\n\n if (offsetParent === getWindow(popper)) {\n offsetParent = getDocumentElement(popper);\n\n if (getComputedStyle(offsetParent).position !== 'static' && position === 'absolute') {\n heightProp = 'scrollHeight';\n widthProp = 'scrollWidth';\n }\n } // $FlowFixMe[incompatible-cast]: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it\n\n\n offsetParent = offsetParent;\n\n if (placement === top || (placement === left || placement === right) && variation === end) {\n sideY = bottom;\n var offsetY = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.height : // $FlowFixMe[prop-missing]\n offsetParent[heightProp];\n y -= offsetY - popperRect.height;\n y *= gpuAcceleration ? 1 : -1;\n }\n\n if (placement === left || (placement === top || placement === bottom) && variation === end) {\n sideX = right;\n var offsetX = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.width : // $FlowFixMe[prop-missing]\n offsetParent[widthProp];\n x -= offsetX - popperRect.width;\n x *= gpuAcceleration ? 1 : -1;\n }\n }\n\n var commonStyles = Object.assign({\n position: position\n }, adaptive && unsetSides);\n\n var _ref4 = roundOffsets === true ? roundOffsetsByDPR({\n x: x,\n y: y\n }, getWindow(popper)) : {\n x: x,\n y: y\n };\n\n x = _ref4.x;\n y = _ref4.y;\n\n if (gpuAcceleration) {\n var _Object$assign;\n\n return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? '0' : '', _Object$assign[sideX] = hasX ? '0' : '', _Object$assign.transform = (win.devicePixelRatio || 1) <= 1 ? \"translate(\" + x + \"px, \" + y + \"px)\" : \"translate3d(\" + x + \"px, \" + y + \"px, 0)\", _Object$assign));\n }\n\n return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + \"px\" : '', _Object$assign2[sideX] = hasX ? x + \"px\" : '', _Object$assign2.transform = '', _Object$assign2));\n}\n\nfunction computeStyles(_ref5) {\n var state = _ref5.state,\n options = _ref5.options;\n var _options$gpuAccelerat = options.gpuAcceleration,\n gpuAcceleration = _options$gpuAccelerat === void 0 ? true : _options$gpuAccelerat,\n _options$adaptive = options.adaptive,\n adaptive = _options$adaptive === void 0 ? true : _options$adaptive,\n _options$roundOffsets = options.roundOffsets,\n roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;\n var commonStyles = {\n placement: getBasePlacement(state.placement),\n variation: getVariation(state.placement),\n popper: state.elements.popper,\n popperRect: state.rects.popper,\n gpuAcceleration: gpuAcceleration,\n isFixed: state.options.strategy === 'fixed'\n };\n\n if (state.modifiersData.popperOffsets != null) {\n state.styles.popper = Object.assign({}, state.styles.popper, mapToStyles(Object.assign({}, commonStyles, {\n offsets: state.modifiersData.popperOffsets,\n position: state.options.strategy,\n adaptive: adaptive,\n roundOffsets: roundOffsets\n })));\n }\n\n if (state.modifiersData.arrow != null) {\n state.styles.arrow = Object.assign({}, state.styles.arrow, mapToStyles(Object.assign({}, commonStyles, {\n offsets: state.modifiersData.arrow,\n position: 'absolute',\n adaptive: false,\n roundOffsets: roundOffsets\n })));\n }\n\n state.attributes.popper = Object.assign({}, state.attributes.popper, {\n 'data-popper-placement': state.placement\n });\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'computeStyles',\n enabled: true,\n phase: 'beforeWrite',\n fn: computeStyles,\n data: {}\n};","import getWindow from \"../dom-utils/getWindow.js\"; // eslint-disable-next-line import/no-unused-modules\n\nvar passive = {\n passive: true\n};\n\nfunction effect(_ref) {\n var state = _ref.state,\n instance = _ref.instance,\n options = _ref.options;\n var _options$scroll = options.scroll,\n scroll = _options$scroll === void 0 ? true : _options$scroll,\n _options$resize = options.resize,\n resize = _options$resize === void 0 ? true : _options$resize;\n var window = getWindow(state.elements.popper);\n var scrollParents = [].concat(state.scrollParents.reference, state.scrollParents.popper);\n\n if (scroll) {\n scrollParents.forEach(function (scrollParent) {\n scrollParent.addEventListener('scroll', instance.update, passive);\n });\n }\n\n if (resize) {\n window.addEventListener('resize', instance.update, passive);\n }\n\n return function () {\n if (scroll) {\n scrollParents.forEach(function (scrollParent) {\n scrollParent.removeEventListener('scroll', instance.update, passive);\n });\n }\n\n if (resize) {\n window.removeEventListener('resize', instance.update, passive);\n }\n };\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'eventListeners',\n enabled: true,\n phase: 'write',\n fn: function fn() {},\n effect: effect,\n data: {}\n};","var hash = {\n left: 'right',\n right: 'left',\n bottom: 'top',\n top: 'bottom'\n};\nexport default function getOppositePlacement(placement) {\n return placement.replace(/left|right|bottom|top/g, function (matched) {\n return hash[matched];\n });\n}","var hash = {\n start: 'end',\n end: 'start'\n};\nexport default function getOppositeVariationPlacement(placement) {\n return placement.replace(/start|end/g, function (matched) {\n return hash[matched];\n });\n}","import getWindow from \"./getWindow.js\";\nexport default function getWindowScroll(node) {\n var win = getWindow(node);\n var scrollLeft = win.pageXOffset;\n var scrollTop = win.pageYOffset;\n return {\n scrollLeft: scrollLeft,\n scrollTop: scrollTop\n };\n}","import getBoundingClientRect from \"./getBoundingClientRect.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport getWindowScroll from \"./getWindowScroll.js\";\nexport default function getWindowScrollBarX(element) {\n // If has a CSS width greater than the viewport, then this will be\n // incorrect for RTL.\n // Popper 1 is broken in this case and never had a bug report so let's assume\n // it's not an issue. I don't think anyone ever specifies width on \n // anyway.\n // Browsers where the left scrollbar doesn't cause an issue report `0` for\n // this (e.g. Edge 2019, IE11, Safari)\n return getBoundingClientRect(getDocumentElement(element)).left + getWindowScroll(element).scrollLeft;\n}","import getComputedStyle from \"./getComputedStyle.js\";\nexport default function isScrollParent(element) {\n // Firefox wants us to check `-x` and `-y` variations as well\n var _getComputedStyle = getComputedStyle(element),\n overflow = _getComputedStyle.overflow,\n overflowX = _getComputedStyle.overflowX,\n overflowY = _getComputedStyle.overflowY;\n\n return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX);\n}","import getParentNode from \"./getParentNode.js\";\nimport isScrollParent from \"./isScrollParent.js\";\nimport getNodeName from \"./getNodeName.js\";\nimport { isHTMLElement } from \"./instanceOf.js\";\nexport default function getScrollParent(node) {\n if (['html', 'body', '#document'].indexOf(getNodeName(node)) >= 0) {\n // $FlowFixMe[incompatible-return]: assume body is always available\n return node.ownerDocument.body;\n }\n\n if (isHTMLElement(node) && isScrollParent(node)) {\n return node;\n }\n\n return getScrollParent(getParentNode(node));\n}","import getScrollParent from \"./getScrollParent.js\";\nimport getParentNode from \"./getParentNode.js\";\nimport getWindow from \"./getWindow.js\";\nimport isScrollParent from \"./isScrollParent.js\";\n/*\ngiven a DOM element, return the list of all scroll parents, up the list of ancesors\nuntil we get to the top window object. This list is what we attach scroll listeners\nto, because if any of these parent elements scroll, we'll need to re-calculate the\nreference element's position.\n*/\n\nexport default function listScrollParents(element, list) {\n var _element$ownerDocumen;\n\n if (list === void 0) {\n list = [];\n }\n\n var scrollParent = getScrollParent(element);\n var isBody = scrollParent === ((_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body);\n var win = getWindow(scrollParent);\n var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;\n var updatedList = list.concat(target);\n return isBody ? updatedList : // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here\n updatedList.concat(listScrollParents(getParentNode(target)));\n}","export default function rectToClientRect(rect) {\n return Object.assign({}, rect, {\n left: rect.x,\n top: rect.y,\n right: rect.x + rect.width,\n bottom: rect.y + rect.height\n });\n}","import { viewport } from \"../enums.js\";\nimport getViewportRect from \"./getViewportRect.js\";\nimport getDocumentRect from \"./getDocumentRect.js\";\nimport listScrollParents from \"./listScrollParents.js\";\nimport getOffsetParent from \"./getOffsetParent.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport getComputedStyle from \"./getComputedStyle.js\";\nimport { isElement, isHTMLElement } from \"./instanceOf.js\";\nimport getBoundingClientRect from \"./getBoundingClientRect.js\";\nimport getParentNode from \"./getParentNode.js\";\nimport contains from \"./contains.js\";\nimport getNodeName from \"./getNodeName.js\";\nimport rectToClientRect from \"../utils/rectToClientRect.js\";\nimport { max, min } from \"../utils/math.js\";\n\nfunction getInnerBoundingClientRect(element, strategy) {\n var rect = getBoundingClientRect(element, false, strategy === 'fixed');\n rect.top = rect.top + element.clientTop;\n rect.left = rect.left + element.clientLeft;\n rect.bottom = rect.top + element.clientHeight;\n rect.right = rect.left + element.clientWidth;\n rect.width = element.clientWidth;\n rect.height = element.clientHeight;\n rect.x = rect.left;\n rect.y = rect.top;\n return rect;\n}\n\nfunction getClientRectFromMixedType(element, clippingParent, strategy) {\n return clippingParent === viewport ? rectToClientRect(getViewportRect(element, strategy)) : isElement(clippingParent) ? getInnerBoundingClientRect(clippingParent, strategy) : rectToClientRect(getDocumentRect(getDocumentElement(element)));\n} // A \"clipping parent\" is an overflowable container with the characteristic of\n// clipping (or hiding) overflowing elements with a position different from\n// `initial`\n\n\nfunction getClippingParents(element) {\n var clippingParents = listScrollParents(getParentNode(element));\n var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle(element).position) >= 0;\n var clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;\n\n if (!isElement(clipperElement)) {\n return [];\n } // $FlowFixMe[incompatible-return]: https://github.com/facebook/flow/issues/1414\n\n\n return clippingParents.filter(function (clippingParent) {\n return isElement(clippingParent) && contains(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body';\n });\n} // Gets the maximum area that the element is visible in due to any number of\n// clipping parents\n\n\nexport default function getClippingRect(element, boundary, rootBoundary, strategy) {\n var mainClippingParents = boundary === 'clippingParents' ? getClippingParents(element) : [].concat(boundary);\n var clippingParents = [].concat(mainClippingParents, [rootBoundary]);\n var firstClippingParent = clippingParents[0];\n var clippingRect = clippingParents.reduce(function (accRect, clippingParent) {\n var rect = getClientRectFromMixedType(element, clippingParent, strategy);\n accRect.top = max(rect.top, accRect.top);\n accRect.right = min(rect.right, accRect.right);\n accRect.bottom = min(rect.bottom, accRect.bottom);\n accRect.left = max(rect.left, accRect.left);\n return accRect;\n }, getClientRectFromMixedType(element, firstClippingParent, strategy));\n clippingRect.width = clippingRect.right - clippingRect.left;\n clippingRect.height = clippingRect.bottom - clippingRect.top;\n clippingRect.x = clippingRect.left;\n clippingRect.y = clippingRect.top;\n return clippingRect;\n}","import getWindow from \"./getWindow.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport getWindowScrollBarX from \"./getWindowScrollBarX.js\";\nimport isLayoutViewport from \"./isLayoutViewport.js\";\nexport default function getViewportRect(element, strategy) {\n var win = getWindow(element);\n var html = getDocumentElement(element);\n var visualViewport = win.visualViewport;\n var width = html.clientWidth;\n var height = html.clientHeight;\n var x = 0;\n var y = 0;\n\n if (visualViewport) {\n width = visualViewport.width;\n height = visualViewport.height;\n var layoutViewport = isLayoutViewport();\n\n if (layoutViewport || !layoutViewport && strategy === 'fixed') {\n x = visualViewport.offsetLeft;\n y = visualViewport.offsetTop;\n }\n }\n\n return {\n width: width,\n height: height,\n x: x + getWindowScrollBarX(element),\n y: y\n };\n}","import getDocumentElement from \"./getDocumentElement.js\";\nimport getComputedStyle from \"./getComputedStyle.js\";\nimport getWindowScrollBarX from \"./getWindowScrollBarX.js\";\nimport getWindowScroll from \"./getWindowScroll.js\";\nimport { max } from \"../utils/math.js\"; // Gets the entire size of the scrollable document area, even extending outside\n// of the `` and `

±¬ÁϹ«Éç

` rect bounds if horizontally scrollable\n\nexport default function getDocumentRect(element) {\n var _element$ownerDocumen;\n\n var html = getDocumentElement(element);\n var winScroll = getWindowScroll(element);\n var body = (_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body;\n var width = max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);\n var height = max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);\n var x = -winScroll.scrollLeft + getWindowScrollBarX(element);\n var y = -winScroll.scrollTop;\n\n if (getComputedStyle(body || html).direction === 'rtl') {\n x += max(html.clientWidth, body ? body.clientWidth : 0) - width;\n }\n\n return {\n width: width,\n height: height,\n x: x,\n y: y\n };\n}","import getBasePlacement from \"./getBasePlacement.js\";\nimport getVariation from \"./getVariation.js\";\nimport getMainAxisFromPlacement from \"./getMainAxisFromPlacement.js\";\nimport { top, right, bottom, left, start, end } from \"../enums.js\";\nexport default function computeOffsets(_ref) {\n var reference = _ref.reference,\n element = _ref.element,\n placement = _ref.placement;\n var basePlacement = placement ? getBasePlacement(placement) : null;\n var variation = placement ? getVariation(placement) : null;\n var commonX = reference.x + reference.width / 2 - element.width / 2;\n var commonY = reference.y + reference.height / 2 - element.height / 2;\n var offsets;\n\n switch (basePlacement) {\n case top:\n offsets = {\n x: commonX,\n y: reference.y - element.height\n };\n break;\n\n case bottom:\n offsets = {\n x: commonX,\n y: reference.y + reference.height\n };\n break;\n\n case right:\n offsets = {\n x: reference.x + reference.width,\n y: commonY\n };\n break;\n\n case left:\n offsets = {\n x: reference.x - element.width,\n y: commonY\n };\n break;\n\n default:\n offsets = {\n x: reference.x,\n y: reference.y\n };\n }\n\n var mainAxis = basePlacement ? getMainAxisFromPlacement(basePlacement) : null;\n\n if (mainAxis != null) {\n var len = mainAxis === 'y' ? 'height' : 'width';\n\n switch (variation) {\n case start:\n offsets[mainAxis] = offsets[mainAxis] - (reference[len] / 2 - element[len] / 2);\n break;\n\n case end:\n offsets[mainAxis] = offsets[mainAxis] + (reference[len] / 2 - element[len] / 2);\n break;\n\n default:\n }\n }\n\n return offsets;\n}","import getClippingRect from \"../dom-utils/getClippingRect.js\";\nimport getDocumentElement from \"../dom-utils/getDocumentElement.js\";\nimport getBoundingClientRect from \"../dom-utils/getBoundingClientRect.js\";\nimport computeOffsets from \"./computeOffsets.js\";\nimport rectToClientRect from \"./rectToClientRect.js\";\nimport { clippingParents, reference, popper, bottom, top, right, basePlacements, viewport } from \"../enums.js\";\nimport { isElement } from \"../dom-utils/instanceOf.js\";\nimport mergePaddingObject from \"./mergePaddingObject.js\";\nimport expandToHashMap from \"./expandToHashMap.js\"; // eslint-disable-next-line import/no-unused-modules\n\nexport default function detectOverflow(state, options) {\n if (options === void 0) {\n options = {};\n }\n\n var _options = options,\n _options$placement = _options.placement,\n placement = _options$placement === void 0 ? state.placement : _options$placement,\n _options$strategy = _options.strategy,\n strategy = _options$strategy === void 0 ? state.strategy : _options$strategy,\n _options$boundary = _options.boundary,\n boundary = _options$boundary === void 0 ? clippingParents : _options$boundary,\n _options$rootBoundary = _options.rootBoundary,\n rootBoundary = _options$rootBoundary === void 0 ? viewport : _options$rootBoundary,\n _options$elementConte = _options.elementContext,\n elementContext = _options$elementConte === void 0 ? popper : _options$elementConte,\n _options$altBoundary = _options.altBoundary,\n altBoundary = _options$altBoundary === void 0 ? false : _options$altBoundary,\n _options$padding = _options.padding,\n padding = _options$padding === void 0 ? 0 : _options$padding;\n var paddingObject = mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));\n var altContext = elementContext === popper ? reference : popper;\n var popperRect = state.rects.popper;\n var element = state.elements[altBoundary ? altContext : elementContext];\n var clippingClientRect = getClippingRect(isElement(element) ? element : element.contextElement || getDocumentElement(state.elements.popper), boundary, rootBoundary, strategy);\n var referenceClientRect = getBoundingClientRect(state.elements.reference);\n var popperOffsets = computeOffsets({\n reference: referenceClientRect,\n element: popperRect,\n strategy: 'absolute',\n placement: placement\n });\n var popperClientRect = rectToClientRect(Object.assign({}, popperRect, popperOffsets));\n var elementClientRect = elementContext === popper ? popperClientRect : referenceClientRect; // positive = overflowing the clipping rect\n // 0 or negative = within the clipping rect\n\n var overflowOffsets = {\n top: clippingClientRect.top - elementClientRect.top + paddingObject.top,\n bottom: elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom,\n left: clippingClientRect.left - elementClientRect.left + paddingObject.left,\n right: elementClientRect.right - clippingClientRect.right + paddingObject.right\n };\n var offsetData = state.modifiersData.offset; // Offsets can be applied only to the popper element\n\n if (elementContext === popper && offsetData) {\n var offset = offsetData[placement];\n Object.keys(overflowOffsets).forEach(function (key) {\n var multiply = [right, bottom].indexOf(key) >= 0 ? 1 : -1;\n var axis = [top, bottom].indexOf(key) >= 0 ? 'y' : 'x';\n overflowOffsets[key] += offset[axis] * multiply;\n });\n }\n\n return overflowOffsets;\n}","import getOppositePlacement from \"../utils/getOppositePlacement.js\";\nimport getBasePlacement from \"../utils/getBasePlacement.js\";\nimport getOppositeVariationPlacement from \"../utils/getOppositeVariationPlacement.js\";\nimport detectOverflow from \"../utils/detectOverflow.js\";\nimport computeAutoPlacement from \"../utils/computeAutoPlacement.js\";\nimport { bottom, top, start, right, left, auto } from \"../enums.js\";\nimport getVariation from \"../utils/getVariation.js\"; // eslint-disable-next-line import/no-unused-modules\n\nfunction getExpandedFallbackPlacements(placement) {\n if (getBasePlacement(placement) === auto) {\n return [];\n }\n\n var oppositePlacement = getOppositePlacement(placement);\n return [getOppositeVariationPlacement(placement), oppositePlacement, getOppositeVariationPlacement(oppositePlacement)];\n}\n\nfunction flip(_ref) {\n var state = _ref.state,\n options = _ref.options,\n name = _ref.name;\n\n if (state.modifiersData[name]._skip) {\n return;\n }\n\n var _options$mainAxis = options.mainAxis,\n checkMainAxis = _options$mainAxis === void 0 ? true : _options$mainAxis,\n _options$altAxis = options.altAxis,\n checkAltAxis = _options$altAxis === void 0 ? true : _options$altAxis,\n specifiedFallbackPlacements = options.fallbackPlacements,\n padding = options.padding,\n boundary = options.boundary,\n rootBoundary = options.rootBoundary,\n altBoundary = options.altBoundary,\n _options$flipVariatio = options.flipVariations,\n flipVariations = _options$flipVariatio === void 0 ? true : _options$flipVariatio,\n allowedAutoPlacements = options.allowedAutoPlacements;\n var preferredPlacement = state.options.placement;\n var basePlacement = getBasePlacement(preferredPlacement);\n var isBasePlacement = basePlacement === preferredPlacement;\n var fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipVariations ? [getOppositePlacement(preferredPlacement)] : getExpandedFallbackPlacements(preferredPlacement));\n var placements = [preferredPlacement].concat(fallbackPlacements).reduce(function (acc, placement) {\n return acc.concat(getBasePlacement(placement) === auto ? computeAutoPlacement(state, {\n placement: placement,\n boundary: boundary,\n rootBoundary: rootBoundary,\n padding: padding,\n flipVariations: flipVariations,\n allowedAutoPlacements: allowedAutoPlacements\n }) : placement);\n }, []);\n var referenceRect = state.rects.reference;\n var popperRect = state.rects.popper;\n var checksMap = new Map();\n var makeFallbackChecks = true;\n var firstFittingPlacement = placements[0];\n\n for (var i = 0; i < placements.length; i++) {\n var placement = placements[i];\n\n var _basePlacement = getBasePlacement(placement);\n\n var isStartVariation = getVariation(placement) === start;\n var isVertical = [top, bottom].indexOf(_basePlacement) >= 0;\n var len = isVertical ? 'width' : 'height';\n var overflow = detectOverflow(state, {\n placement: placement,\n boundary: boundary,\n rootBoundary: rootBoundary,\n altBoundary: altBoundary,\n padding: padding\n });\n var mainVariationSide = isVertical ? isStartVariation ? right : left : isStartVariation ? bottom : top;\n\n if (referenceRect[len] > popperRect[len]) {\n mainVariationSide = getOppositePlacement(mainVariationSide);\n }\n\n var altVariationSide = getOppositePlacement(mainVariationSide);\n var checks = [];\n\n if (checkMainAxis) {\n checks.push(overflow[_basePlacement] <= 0);\n }\n\n if (checkAltAxis) {\n checks.push(overflow[mainVariationSide] <= 0, overflow[altVariationSide] <= 0);\n }\n\n if (checks.every(function (check) {\n return check;\n })) {\n firstFittingPlacement = placement;\n makeFallbackChecks = false;\n break;\n }\n\n checksMap.set(placement, checks);\n }\n\n if (makeFallbackChecks) {\n // `2` may be desired in some cases – research later\n var numberOfChecks = flipVariations ? 3 : 1;\n\n var _loop = function _loop(_i) {\n var fittingPlacement = placements.find(function (placement) {\n var checks = checksMap.get(placement);\n\n if (checks) {\n return checks.slice(0, _i).every(function (check) {\n return check;\n });\n }\n });\n\n if (fittingPlacement) {\n firstFittingPlacement = fittingPlacement;\n return \"break\";\n }\n };\n\n for (var _i = numberOfChecks; _i > 0; _i--) {\n var _ret = _loop(_i);\n\n if (_ret === \"break\") break;\n }\n }\n\n if (state.placement !== firstFittingPlacement) {\n state.modifiersData[name]._skip = true;\n state.placement = firstFittingPlacement;\n state.reset = true;\n }\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'flip',\n enabled: true,\n phase: 'main',\n fn: flip,\n requiresIfExists: ['offset'],\n data: {\n _skip: false\n }\n};","import getVariation from \"./getVariation.js\";\nimport { variationPlacements, basePlacements, placements as allPlacements } from \"../enums.js\";\nimport detectOverflow from \"./detectOverflow.js\";\nimport getBasePlacement from \"./getBasePlacement.js\";\nexport default function computeAutoPlacement(state, options) {\n if (options === void 0) {\n options = {};\n }\n\n var _options = options,\n placement = _options.placement,\n boundary = _options.boundary,\n rootBoundary = _options.rootBoundary,\n padding = _options.padding,\n flipVariations = _options.flipVariations,\n _options$allowedAutoP = _options.allowedAutoPlacements,\n allowedAutoPlacements = _options$allowedAutoP === void 0 ? allPlacements : _options$allowedAutoP;\n var variation = getVariation(placement);\n var placements = variation ? flipVariations ? variationPlacements : variationPlacements.filter(function (placement) {\n return getVariation(placement) === variation;\n }) : basePlacements;\n var allowedPlacements = placements.filter(function (placement) {\n return allowedAutoPlacements.indexOf(placement) >= 0;\n });\n\n if (allowedPlacements.length === 0) {\n allowedPlacements = placements;\n } // $FlowFixMe[incompatible-type]: Flow seems to have problems with two array unions...\n\n\n var overflows = allowedPlacements.reduce(function (acc, placement) {\n acc[placement] = detectOverflow(state, {\n placement: placement,\n boundary: boundary,\n rootBoundary: rootBoundary,\n padding: padding\n })[getBasePlacement(placement)];\n return acc;\n }, {});\n return Object.keys(overflows).sort(function (a, b) {\n return overflows[a] - overflows[b];\n });\n}","import { top, bottom, left, right } from \"../enums.js\";\nimport detectOverflow from \"../utils/detectOverflow.js\";\n\nfunction getSideOffsets(overflow, rect, preventedOffsets) {\n if (preventedOffsets === void 0) {\n preventedOffsets = {\n x: 0,\n y: 0\n };\n }\n\n return {\n top: overflow.top - rect.height - preventedOffsets.y,\n right: overflow.right - rect.width + preventedOffsets.x,\n bottom: overflow.bottom - rect.height + preventedOffsets.y,\n left: overflow.left - rect.width - preventedOffsets.x\n };\n}\n\nfunction isAnySideFullyClipped(overflow) {\n return [top, right, bottom, left].some(function (side) {\n return overflow[side] >= 0;\n });\n}\n\nfunction hide(_ref) {\n var state = _ref.state,\n name = _ref.name;\n var referenceRect = state.rects.reference;\n var popperRect = state.rects.popper;\n var preventedOffsets = state.modifiersData.preventOverflow;\n var referenceOverflow = detectOverflow(state, {\n elementContext: 'reference'\n });\n var popperAltOverflow = detectOverflow(state, {\n altBoundary: true\n });\n var referenceClippingOffsets = getSideOffsets(referenceOverflow, referenceRect);\n var popperEscapeOffsets = getSideOffsets(popperAltOverflow, popperRect, preventedOffsets);\n var isReferenceHidden = isAnySideFullyClipped(referenceClippingOffsets);\n var hasPopperEscaped = isAnySideFullyClipped(popperEscapeOffsets);\n state.modifiersData[name] = {\n referenceClippingOffsets: referenceClippingOffsets,\n popperEscapeOffsets: popperEscapeOffsets,\n isReferenceHidden: isReferenceHidden,\n hasPopperEscaped: hasPopperEscaped\n };\n state.attributes.popper = Object.assign({}, state.attributes.popper, {\n 'data-popper-reference-hidden': isReferenceHidden,\n 'data-popper-escaped': hasPopperEscaped\n });\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'hide',\n enabled: true,\n phase: 'main',\n requiresIfExists: ['preventOverflow'],\n fn: hide\n};","import getBasePlacement from \"../utils/getBasePlacement.js\";\nimport { top, left, right, placements } from \"../enums.js\"; // eslint-disable-next-line import/no-unused-modules\n\nexport function distanceAndSkiddingToXY(placement, rects, offset) {\n var basePlacement = getBasePlacement(placement);\n var invertDistance = [left, top].indexOf(basePlacement) >= 0 ? -1 : 1;\n\n var _ref = typeof offset === 'function' ? offset(Object.assign({}, rects, {\n placement: placement\n })) : offset,\n skidding = _ref[0],\n distance = _ref[1];\n\n skidding = skidding || 0;\n distance = (distance || 0) * invertDistance;\n return [left, right].indexOf(basePlacement) >= 0 ? {\n x: distance,\n y: skidding\n } : {\n x: skidding,\n y: distance\n };\n}\n\nfunction offset(_ref2) {\n var state = _ref2.state,\n options = _ref2.options,\n name = _ref2.name;\n var _options$offset = options.offset,\n offset = _options$offset === void 0 ? [0, 0] : _options$offset;\n var data = placements.reduce(function (acc, placement) {\n acc[placement] = distanceAndSkiddingToXY(placement, state.rects, offset);\n return acc;\n }, {});\n var _data$state$placement = data[state.placement],\n x = _data$state$placement.x,\n y = _data$state$placement.y;\n\n if (state.modifiersData.popperOffsets != null) {\n state.modifiersData.popperOffsets.x += x;\n state.modifiersData.popperOffsets.y += y;\n }\n\n state.modifiersData[name] = data;\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'offset',\n enabled: true,\n phase: 'main',\n requires: ['popperOffsets'],\n fn: offset\n};","import computeOffsets from \"../utils/computeOffsets.js\";\n\nfunction popperOffsets(_ref) {\n var state = _ref.state,\n name = _ref.name;\n // Offsets are the actual position the popper needs to have to be\n // properly positioned near its reference element\n // This is the most basic placement, and will be adjusted by\n // the modifiers in the next step\n state.modifiersData[name] = computeOffsets({\n reference: state.rects.reference,\n element: state.rects.popper,\n strategy: 'absolute',\n placement: state.placement\n });\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'popperOffsets',\n enabled: true,\n phase: 'read',\n fn: popperOffsets,\n data: {}\n};","import { top, left, right, bottom, start } from \"../enums.js\";\nimport getBasePlacement from \"../utils/getBasePlacement.js\";\nimport getMainAxisFromPlacement from \"../utils/getMainAxisFromPlacement.js\";\nimport getAltAxis from \"../utils/getAltAxis.js\";\nimport { within, withinMaxClamp } from \"../utils/within.js\";\nimport getLayoutRect from \"../dom-utils/getLayoutRect.js\";\nimport getOffsetParent from \"../dom-utils/getOffsetParent.js\";\nimport detectOverflow from \"../utils/detectOverflow.js\";\nimport getVariation from \"../utils/getVariation.js\";\nimport getFreshSideObject from \"../utils/getFreshSideObject.js\";\nimport { min as mathMin, max as mathMax } from \"../utils/math.js\";\n\nfunction preventOverflow(_ref) {\n var state = _ref.state,\n options = _ref.options,\n name = _ref.name;\n var _options$mainAxis = options.mainAxis,\n checkMainAxis = _options$mainAxis === void 0 ? true : _options$mainAxis,\n _options$altAxis = options.altAxis,\n checkAltAxis = _options$altAxis === void 0 ? false : _options$altAxis,\n boundary = options.boundary,\n rootBoundary = options.rootBoundary,\n altBoundary = options.altBoundary,\n padding = options.padding,\n _options$tether = options.tether,\n tether = _options$tether === void 0 ? true : _options$tether,\n _options$tetherOffset = options.tetherOffset,\n tetherOffset = _options$tetherOffset === void 0 ? 0 : _options$tetherOffset;\n var overflow = detectOverflow(state, {\n boundary: boundary,\n rootBoundary: rootBoundary,\n padding: padding,\n altBoundary: altBoundary\n });\n var basePlacement = getBasePlacement(state.placement);\n var variation = getVariation(state.placement);\n var isBasePlacement = !variation;\n var mainAxis = getMainAxisFromPlacement(basePlacement);\n var altAxis = getAltAxis(mainAxis);\n var popperOffsets = state.modifiersData.popperOffsets;\n var referenceRect = state.rects.reference;\n var popperRect = state.rects.popper;\n var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign({}, state.rects, {\n placement: state.placement\n })) : tetherOffset;\n var normalizedTetherOffsetValue = typeof tetherOffsetValue === 'number' ? {\n mainAxis: tetherOffsetValue,\n altAxis: tetherOffsetValue\n } : Object.assign({\n mainAxis: 0,\n altAxis: 0\n }, tetherOffsetValue);\n var offsetModifierState = state.modifiersData.offset ? state.modifiersData.offset[state.placement] : null;\n var data = {\n x: 0,\n y: 0\n };\n\n if (!popperOffsets) {\n return;\n }\n\n if (checkMainAxis) {\n var _offsetModifierState$;\n\n var mainSide = mainAxis === 'y' ? top : left;\n var altSide = mainAxis === 'y' ? bottom : right;\n var len = mainAxis === 'y' ? 'height' : 'width';\n var offset = popperOffsets[mainAxis];\n var min = offset + overflow[mainSide];\n var max = offset - overflow[altSide];\n var additive = tether ? -popperRect[len] / 2 : 0;\n var minLen = variation === start ? referenceRect[len] : popperRect[len];\n var maxLen = variation === start ? -popperRect[len] : -referenceRect[len]; // We need to include the arrow in the calculation so the arrow doesn't go\n // outside the reference bounds\n\n var arrowElement = state.elements.arrow;\n var arrowRect = tether && arrowElement ? getLayoutRect(arrowElement) : {\n width: 0,\n height: 0\n };\n var arrowPaddingObject = state.modifiersData['arrow#persistent'] ? state.modifiersData['arrow#persistent'].padding : getFreshSideObject();\n var arrowPaddingMin = arrowPaddingObject[mainSide];\n var arrowPaddingMax = arrowPaddingObject[altSide]; // If the reference length is smaller than the arrow length, we don't want\n // to include its full size in the calculation. If the reference is small\n // and near the edge of a boundary, the popper can overflow even if the\n // reference is not overflowing as well (e.g. virtual elements with no\n // width or height)\n\n var arrowLen = within(0, referenceRect[len], arrowRect[len]);\n var minOffset = isBasePlacement ? referenceRect[len] / 2 - additive - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis : minLen - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis;\n var maxOffset = isBasePlacement ? -referenceRect[len] / 2 + additive + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis : maxLen + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis;\n var arrowOffsetParent = state.elements.arrow && getOffsetParent(state.elements.arrow);\n var clientOffset = arrowOffsetParent ? mainAxis === 'y' ? arrowOffsetParent.clientTop || 0 : arrowOffsetParent.clientLeft || 0 : 0;\n var offsetModifierValue = (_offsetModifierState$ = offsetModifierState == null ? void 0 : offsetModifierState[mainAxis]) != null ? _offsetModifierState$ : 0;\n var tetherMin = offset + minOffset - offsetModifierValue - clientOffset;\n var tetherMax = offset + maxOffset - offsetModifierValue;\n var preventedOffset = within(tether ? mathMin(min, tetherMin) : min, offset, tether ? mathMax(max, tetherMax) : max);\n popperOffsets[mainAxis] = preventedOffset;\n data[mainAxis] = preventedOffset - offset;\n }\n\n if (checkAltAxis) {\n var _offsetModifierState$2;\n\n var _mainSide = mainAxis === 'x' ? top : left;\n\n var _altSide = mainAxis === 'x' ? bottom : right;\n\n var _offset = popperOffsets[altAxis];\n\n var _len = altAxis === 'y' ? 'height' : 'width';\n\n var _min = _offset + overflow[_mainSide];\n\n var _max = _offset - overflow[_altSide];\n\n var isOriginSide = [top, left].indexOf(basePlacement) !== -1;\n\n var _offsetModifierValue = (_offsetModifierState$2 = offsetModifierState == null ? void 0 : offsetModifierState[altAxis]) != null ? _offsetModifierState$2 : 0;\n\n var _tetherMin = isOriginSide ? _min : _offset - referenceRect[_len] - popperRect[_len] - _offsetModifierValue + normalizedTetherOffsetValue.altAxis;\n\n var _tetherMax = isOriginSide ? _offset + referenceRect[_len] + popperRect[_len] - _offsetModifierValue - normalizedTetherOffsetValue.altAxis : _max;\n\n var _preventedOffset = tether && isOriginSide ? withinMaxClamp(_tetherMin, _offset, _tetherMax) : within(tether ? _tetherMin : _min, _offset, tether ? _tetherMax : _max);\n\n popperOffsets[altAxis] = _preventedOffset;\n data[altAxis] = _preventedOffset - _offset;\n }\n\n state.modifiersData[name] = data;\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'preventOverflow',\n enabled: true,\n phase: 'main',\n fn: preventOverflow,\n requiresIfExists: ['offset']\n};","export default function getAltAxis(axis) {\n return axis === 'x' ? 'y' : 'x';\n}","import getBoundingClientRect from \"./getBoundingClientRect.js\";\nimport getNodeScroll from \"./getNodeScroll.js\";\nimport getNodeName from \"./getNodeName.js\";\nimport { isHTMLElement } from \"./instanceOf.js\";\nimport getWindowScrollBarX from \"./getWindowScrollBarX.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport isScrollParent from \"./isScrollParent.js\";\nimport { round } from \"../utils/math.js\";\n\nfunction isElementScaled(element) {\n var rect = element.getBoundingClientRect();\n var scaleX = round(rect.width) / element.offsetWidth || 1;\n var scaleY = round(rect.height) / element.offsetHeight || 1;\n return scaleX !== 1 || scaleY !== 1;\n} // Returns the composite rect of an element relative to its offsetParent.\n// Composite means it takes into account transforms as well as layout.\n\n\nexport default function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {\n if (isFixed === void 0) {\n isFixed = false;\n }\n\n var isOffsetParentAnElement = isHTMLElement(offsetParent);\n var offsetParentIsScaled = isHTMLElement(offsetParent) && isElementScaled(offsetParent);\n var documentElement = getDocumentElement(offsetParent);\n var rect = getBoundingClientRect(elementOrVirtualElement, offsetParentIsScaled, isFixed);\n var scroll = {\n scrollLeft: 0,\n scrollTop: 0\n };\n var offsets = {\n x: 0,\n y: 0\n };\n\n if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {\n if (getNodeName(offsetParent) !== 'body' || // https://github.com/popperjs/popper-core/issues/1078\n isScrollParent(documentElement)) {\n scroll = getNodeScroll(offsetParent);\n }\n\n if (isHTMLElement(offsetParent)) {\n offsets = getBoundingClientRect(offsetParent, true);\n offsets.x += offsetParent.clientLeft;\n offsets.y += offsetParent.clientTop;\n } else if (documentElement) {\n offsets.x = getWindowScrollBarX(documentElement);\n }\n }\n\n return {\n x: rect.left + scroll.scrollLeft - offsets.x,\n y: rect.top + scroll.scrollTop - offsets.y,\n width: rect.width,\n height: rect.height\n };\n}","import getWindowScroll from \"./getWindowScroll.js\";\nimport getWindow from \"./getWindow.js\";\nimport { isHTMLElement } from \"./instanceOf.js\";\nimport getHTMLElementScroll from \"./getHTMLElementScroll.js\";\nexport default function getNodeScroll(node) {\n if (node === getWindow(node) || !isHTMLElement(node)) {\n return getWindowScroll(node);\n } else {\n return getHTMLElementScroll(node);\n }\n}","export default function getHTMLElementScroll(element) {\n return {\n scrollLeft: element.scrollLeft,\n scrollTop: element.scrollTop\n };\n}","import { modifierPhases } from \"../enums.js\"; // source: https://stackoverflow.com/questions/49875255\n\nfunction order(modifiers) {\n var map = new Map();\n var visited = new Set();\n var result = [];\n modifiers.forEach(function (modifier) {\n map.set(modifier.name, modifier);\n }); // On visiting object, check for its dependencies and visit them recursively\n\n function sort(modifier) {\n visited.add(modifier.name);\n var requires = [].concat(modifier.requires || [], modifier.requiresIfExists || []);\n requires.forEach(function (dep) {\n if (!visited.has(dep)) {\n var depModifier = map.get(dep);\n\n if (depModifier) {\n sort(depModifier);\n }\n }\n });\n result.push(modifier);\n }\n\n modifiers.forEach(function (modifier) {\n if (!visited.has(modifier.name)) {\n // check for visited object\n sort(modifier);\n }\n });\n return result;\n}\n\nexport default function orderModifiers(modifiers) {\n // order based on dependencies\n var orderedModifiers = order(modifiers); // order based on phase\n\n return modifierPhases.reduce(function (acc, phase) {\n return acc.concat(orderedModifiers.filter(function (modifier) {\n return modifier.phase === phase;\n }));\n }, []);\n}","import getCompositeRect from \"./dom-utils/getCompositeRect.js\";\nimport getLayoutRect from \"./dom-utils/getLayoutRect.js\";\nimport listScrollParents from \"./dom-utils/listScrollParents.js\";\nimport getOffsetParent from \"./dom-utils/getOffsetParent.js\";\nimport orderModifiers from \"./utils/orderModifiers.js\";\nimport debounce from \"./utils/debounce.js\";\nimport mergeByName from \"./utils/mergeByName.js\";\nimport detectOverflow from \"./utils/detectOverflow.js\";\nimport { isElement } from \"./dom-utils/instanceOf.js\";\nvar DEFAULT_OPTIONS = {\n placement: 'bottom',\n modifiers: [],\n strategy: 'absolute'\n};\n\nfunction areValidElements() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return !args.some(function (element) {\n return !(element && typeof element.getBoundingClientRect === 'function');\n });\n}\n\nexport function popperGenerator(generatorOptions) {\n if (generatorOptions === void 0) {\n generatorOptions = {};\n }\n\n var _generatorOptions = generatorOptions,\n _generatorOptions$def = _generatorOptions.defaultModifiers,\n defaultModifiers = _generatorOptions$def === void 0 ? [] : _generatorOptions$def,\n _generatorOptions$def2 = _generatorOptions.defaultOptions,\n defaultOptions = _generatorOptions$def2 === void 0 ? DEFAULT_OPTIONS : _generatorOptions$def2;\n return function createPopper(reference, popper, options) {\n if (options === void 0) {\n options = defaultOptions;\n }\n\n var state = {\n placement: 'bottom',\n orderedModifiers: [],\n options: Object.assign({}, DEFAULT_OPTIONS, defaultOptions),\n modifiersData: {},\n elements: {\n reference: reference,\n popper: popper\n },\n attributes: {},\n styles: {}\n };\n var effectCleanupFns = [];\n var isDestroyed = false;\n var instance = {\n state: state,\n setOptions: function setOptions(setOptionsAction) {\n var options = typeof setOptionsAction === 'function' ? setOptionsAction(state.options) : setOptionsAction;\n cleanupModifierEffects();\n state.options = Object.assign({}, defaultOptions, state.options, options);\n state.scrollParents = {\n reference: isElement(reference) ? listScrollParents(reference) : reference.contextElement ? listScrollParents(reference.contextElement) : [],\n popper: listScrollParents(popper)\n }; // Orders the modifiers based on their dependencies and `phase`\n // properties\n\n var orderedModifiers = orderModifiers(mergeByName([].concat(defaultModifiers, state.options.modifiers))); // Strip out disabled modifiers\n\n state.orderedModifiers = orderedModifiers.filter(function (m) {\n return m.enabled;\n });\n runModifierEffects();\n return instance.update();\n },\n // Sync update – it will always be executed, even if not necessary. This\n // is useful for low frequency updates where sync behavior simplifies the\n // logic.\n // For high frequency updates (e.g. `resize` and `scroll` events), always\n // prefer the async Popper#update method\n forceUpdate: function forceUpdate() {\n if (isDestroyed) {\n return;\n }\n\n var _state$elements = state.elements,\n reference = _state$elements.reference,\n popper = _state$elements.popper; // Don't proceed if `reference` or `popper` are not valid elements\n // anymore\n\n if (!areValidElements(reference, popper)) {\n return;\n } // Store the reference and popper rects to be read by modifiers\n\n\n state.rects = {\n reference: getCompositeRect(reference, getOffsetParent(popper), state.options.strategy === 'fixed'),\n popper: getLayoutRect(popper)\n }; // Modifiers have the ability to reset the current update cycle. The\n // most common use case for this is the `flip` modifier changing the\n // placement, which then needs to re-run all the modifiers, because the\n // logic was previously ran for the previous placement and is therefore\n // stale/incorrect\n\n state.reset = false;\n state.placement = state.options.placement; // On each update cycle, the `modifiersData` property for each modifier\n // is filled with the initial data specified by the modifier. This means\n // it doesn't persist and is fresh on each update.\n // To ensure persistent data, use `${name}#persistent`\n\n state.orderedModifiers.forEach(function (modifier) {\n return state.modifiersData[modifier.name] = Object.assign({}, modifier.data);\n });\n\n for (var index = 0; index < state.orderedModifiers.length; index++) {\n if (state.reset === true) {\n state.reset = false;\n index = -1;\n continue;\n }\n\n var _state$orderedModifie = state.orderedModifiers[index],\n fn = _state$orderedModifie.fn,\n _state$orderedModifie2 = _state$orderedModifie.options,\n _options = _state$orderedModifie2 === void 0 ? {} : _state$orderedModifie2,\n name = _state$orderedModifie.name;\n\n if (typeof fn === 'function') {\n state = fn({\n state: state,\n options: _options,\n name: name,\n instance: instance\n }) || state;\n }\n }\n },\n // Async and optimistically optimized update – it will not be executed if\n // not necessary (debounced to run at most once-per-tick)\n update: debounce(function () {\n return new Promise(function (resolve) {\n instance.forceUpdate();\n resolve(state);\n });\n }),\n destroy: function destroy() {\n cleanupModifierEffects();\n isDestroyed = true;\n }\n };\n\n if (!areValidElements(reference, popper)) {\n return instance;\n }\n\n instance.setOptions(options).then(function (state) {\n if (!isDestroyed && options.onFirstUpdate) {\n options.onFirstUpdate(state);\n }\n }); // Modifiers have the ability to execute arbitrary code before the first\n // update cycle runs. They will be executed in the same order as the update\n // cycle. This is useful when a modifier adds some persistent data that\n // other modifiers need to use, but the modifier is run after the dependent\n // one.\n\n function runModifierEffects() {\n state.orderedModifiers.forEach(function (_ref) {\n var name = _ref.name,\n _ref$options = _ref.options,\n options = _ref$options === void 0 ? {} : _ref$options,\n effect = _ref.effect;\n\n if (typeof effect === 'function') {\n var cleanupFn = effect({\n state: state,\n name: name,\n instance: instance,\n options: options\n });\n\n var noopFn = function noopFn() {};\n\n effectCleanupFns.push(cleanupFn || noopFn);\n }\n });\n }\n\n function cleanupModifierEffects() {\n effectCleanupFns.forEach(function (fn) {\n return fn();\n });\n effectCleanupFns = [];\n }\n\n return instance;\n };\n}\nexport var createPopper = /*#__PURE__*/popperGenerator(); // eslint-disable-next-line import/no-unused-modules\n\nexport { detectOverflow };","export default function debounce(fn) {\n var pending;\n return function () {\n if (!pending) {\n pending = new Promise(function (resolve) {\n Promise.resolve().then(function () {\n pending = undefined;\n resolve(fn());\n });\n });\n }\n\n return pending;\n };\n}","export default function mergeByName(modifiers) {\n var merged = modifiers.reduce(function (merged, current) {\n var existing = merged[current.name];\n merged[current.name] = existing ? Object.assign({}, existing, current, {\n options: Object.assign({}, existing.options, current.options),\n data: Object.assign({}, existing.data, current.data)\n }) : current;\n return merged;\n }, {}); // IE11 does not support Object.values\n\n return Object.keys(merged).map(function (key) {\n return merged[key];\n });\n}","import { popperGenerator, detectOverflow } from \"./createPopper.js\";\nimport eventListeners from \"./modifiers/eventListeners.js\";\nimport popperOffsets from \"./modifiers/popperOffsets.js\";\nimport computeStyles from \"./modifiers/computeStyles.js\";\nimport applyStyles from \"./modifiers/applyStyles.js\";\nvar defaultModifiers = [eventListeners, popperOffsets, computeStyles, applyStyles];\nvar createPopper = /*#__PURE__*/popperGenerator({\n defaultModifiers: defaultModifiers\n}); // eslint-disable-next-line import/no-unused-modules\n\nexport { createPopper, popperGenerator, defaultModifiers, detectOverflow };","import { popperGenerator, detectOverflow } from \"./createPopper.js\";\nimport eventListeners from \"./modifiers/eventListeners.js\";\nimport popperOffsets from \"./modifiers/popperOffsets.js\";\nimport computeStyles from \"./modifiers/computeStyles.js\";\nimport applyStyles from \"./modifiers/applyStyles.js\";\nimport offset from \"./modifiers/offset.js\";\nimport flip from \"./modifiers/flip.js\";\nimport preventOverflow from \"./modifiers/preventOverflow.js\";\nimport arrow from \"./modifiers/arrow.js\";\nimport hide from \"./modifiers/hide.js\";\nvar defaultModifiers = [eventListeners, popperOffsets, computeStyles, applyStyles, offset, flip, preventOverflow, arrow, hide];\nvar createPopper = /*#__PURE__*/popperGenerator({\n defaultModifiers: defaultModifiers\n}); // eslint-disable-next-line import/no-unused-modules\n\nexport { createPopper, popperGenerator, defaultModifiers, detectOverflow }; // eslint-disable-next-line import/no-unused-modules\n\nexport { createPopper as createPopperLite } from \"./popper-lite.js\"; // eslint-disable-next-line import/no-unused-modules\n\nexport * from \"./modifiers/index.js\";","/**\n * --------------------------------------------------------------------------\n * Bootstrap util/sanitizer.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\n// js-docs-start allow-list\nconst ARIA_ATTRIBUTE_PATTERN = /^aria-[\\w-]*$/i;\n\nexport const DefaultAllowlist = {\n // Global attributes allowed on any supplied element below.\n '*': ['class', 'dir', 'id', 'lang', 'role', ARIA_ATTRIBUTE_PATTERN],\n a: ['target', 'href', 'title', 'rel'],\n area: [],\n b: [],\n br: [],\n col: [],\n code: [],\n dd: [],\n div: [],\n dl: [],\n dt: [],\n em: [],\n hr: [],\n h1: [],\n h2: [],\n h3: [],\n h4: [],\n h5: [],\n h6: [],\n i: [],\n img: ['src', 'srcset', 'alt', 'title', 'width', 'height'],\n li: [],\n ol: [],\n p: [],\n pre: [],\n s: [],\n small: [],\n span: [],\n sub: [],\n sup: [],\n strong: [],\n u: [],\n ul: [],\n};\n// js-docs-end allow-list\n\nconst uriAttributes = new Set([\n 'background',\n 'cite',\n 'href',\n 'itemtype',\n 'longdesc',\n 'poster',\n 'src',\n 'xlink:href',\n]);\n\n/**\n * A pattern that recognizes URLs that are safe wrt. XSS in URL navigation\n * contexts.\n *\n * Shout-out to Angular https://github.com/angular/angular/blob/15.2.8/packages/core/src/sanitization/url_sanitizer.ts#L38\n */\n// eslint-disable-next-line unicorn/better-regex\nconst SAFE_URL_PATTERN = /^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i;\n\nconst allowedAttribute = (attribute, allowedAttributeList) => {\n const attributeName = attribute.nodeName.toLowerCase();\n\n if (allowedAttributeList.includes(attributeName)) {\n if (uriAttributes.has(attributeName)) {\n return Boolean(SAFE_URL_PATTERN.test(attribute.nodeValue));\n }\n\n return true;\n }\n\n // Check if a regular expression validates the attribute.\n return allowedAttributeList\n .filter((attributeRegex) => attributeRegex instanceof RegExp)\n .some((regex) => regex.test(attributeName));\n};\n\nexport function sanitizeHtml(unsafeHtml, allowList, sanitizeFunction) {\n if (!unsafeHtml.length) {\n return unsafeHtml;\n }\n\n if (sanitizeFunction && typeof sanitizeFunction === 'function') {\n return sanitizeFunction(unsafeHtml);\n }\n\n const domParser = new window.DOMParser();\n const createdDocument = domParser.parseFromString(unsafeHtml, 'text/html');\n const elements = [].concat(...createdDocument.body.querySelectorAll('*'));\n\n for (const element of elements) {\n const elementName = element.nodeName.toLowerCase();\n\n if (!Object.keys(allowList).includes(elementName)) {\n element.remove();\n continue;\n }\n\n const attributeList = [].concat(...element.attributes);\n const allowedAttributes = [].concat(allowList['*'] || [], allowList[elementName] || []);\n\n for (const attribute of attributeList) {\n if (!allowedAttribute(attribute, allowedAttributes)) {\n element.removeAttribute(attribute.nodeName);\n }\n }\n }\n\n return createdDocument.body.innerHTML;\n}\n","/**\n * --------------------------------------------------------------------------\n * Bootstrap util/template-factory.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nimport SelectorEngine from '../dom/selector-engine.js';\nimport Config from './config.js';\nimport { DefaultAllowlist, sanitizeHtml } from './sanitizer.js';\nimport { execute, getElement, isElement } from './index.js';\n\n/**\n * Constants\n */\n\nconst NAME = 'TemplateFactory';\n\nconst Default = {\n allowList: DefaultAllowlist,\n content: {}, // { selector : text , selector2 : text2 , }\n extraClass: '',\n html: false,\n sanitize: true,\n sanitizeFn: null,\n template: '
',\n};\n\nconst DefaultType = {\n allowList: 'object',\n content: 'object',\n extraClass: '(string|function)',\n html: 'boolean',\n sanitize: 'boolean',\n sanitizeFn: '(null|function)',\n template: 'string',\n};\n\nconst DefaultContentType = {\n entry: '(string|element|function|null)',\n selector: '(string|element)',\n};\n\n/**\n * Class definition\n */\n\nclass TemplateFactory extends Config {\n constructor(config) {\n super();\n this._config = this._getConfig(config);\n }\n\n // Getters\n static get Default() {\n return Default;\n }\n\n static get DefaultType() {\n return DefaultType;\n }\n\n static get NAME() {\n return NAME;\n }\n\n // Public\n getContent() {\n return Object.values(this._config.content)\n .map((config) => this._resolvePossibleFunction(config))\n .filter(Boolean);\n }\n\n hasContent() {\n return this.getContent().length > 0;\n }\n\n changeContent(content) {\n this._checkContent(content);\n this._config.content = { ...this._config.content, ...content };\n return this;\n }\n\n toHtml() {\n const templateWrapper = document.createElement('div');\n templateWrapper.innerHTML = this._maybeSanitize(this._config.template);\n\n for (const [selector, text] of Object.entries(this._config.content)) {\n this._setContent(templateWrapper, text, selector);\n }\n\n const template = templateWrapper.children[0];\n const extraClass = this._resolvePossibleFunction(this._config.extraClass);\n\n if (extraClass) {\n template.classList.add(...extraClass.split(' '));\n }\n\n return template;\n }\n\n // Private\n _typeCheckConfig(config) {\n super._typeCheckConfig(config);\n this._checkContent(config.content);\n }\n\n _checkContent(arg) {\n for (const [selector, content] of Object.entries(arg)) {\n super._typeCheckConfig({ selector, entry: content }, DefaultContentType);\n }\n }\n\n _setContent(template, content, selector) {\n const templateElement = SelectorEngine.findOne(selector, template);\n\n if (!templateElement) {\n return;\n }\n\n content = this._resolvePossibleFunction(content);\n\n if (!content) {\n templateElement.remove();\n return;\n }\n\n if (isElement(content)) {\n this._putElementInTemplate(getElement(content), templateElement);\n return;\n }\n\n if (this._config.html) {\n templateElement.innerHTML = this._maybeSanitize(content);\n return;\n }\n\n templateElement.textContent = content;\n }\n\n _maybeSanitize(arg) {\n return this._config.sanitize\n ? sanitizeHtml(arg, this._config.allowList, this._config.sanitizeFn)\n : arg;\n }\n\n _resolvePossibleFunction(arg) {\n return execute(arg, [this]);\n }\n\n _putElementInTemplate(element, templateElement) {\n if (this._config.html) {\n templateElement.innerHTML = '';\n templateElement.append(element);\n return;\n }\n\n templateElement.textContent = element.textContent;\n }\n}\n\nexport default TemplateFactory;\n","/**\n * --------------------------------------------------------------------------\n * Bootstrap tooltip.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nimport * as Popper from '@popperjs/core';\nimport BaseComponent from './base-component.js';\nimport EventHandler from './dom/event-handler.js';\nimport Manipulator from './dom/manipulator.js';\nimport {\n defineJQueryPlugin,\n execute,\n findShadowRoot,\n getElement,\n getUID,\n isRTL,\n noop,\n} from './util/index.js';\nimport { DefaultAllowlist } from './util/sanitizer.js';\nimport TemplateFactory from './util/template-factory.js';\n\n/**\n * Constants\n */\n\nconst NAME = 'tooltip';\nconst DISALLOWED_ATTRIBUTES = new Set(['sanitize', 'allowList', 'sanitizeFn']);\n\nconst CLASS_NAME_FADE = 'fade';\nconst CLASS_NAME_MODAL = 'modal';\nconst CLASS_NAME_SHOW = 'show';\n\nconst SELECTOR_TOOLTIP_INNER = '.tooltip-inner';\nconst SELECTOR_MODAL = `.${CLASS_NAME_MODAL}`;\n\nconst EVENT_MODAL_HIDE = 'hide.bs.modal';\n\nconst TRIGGER_HOVER = 'hover';\nconst TRIGGER_FOCUS = 'focus';\nconst TRIGGER_CLICK = 'click';\nconst TRIGGER_MANUAL = 'manual';\n\nconst EVENT_HIDE = 'hide';\nconst EVENT_HIDDEN = 'hidden';\nconst EVENT_SHOW = 'show';\nconst EVENT_SHOWN = 'shown';\nconst EVENT_INSERTED = 'inserted';\nconst EVENT_CLICK = 'click';\nconst EVENT_FOCUSIN = 'focusin';\nconst EVENT_FOCUSOUT = 'focusout';\nconst EVENT_MOUSEENTER = 'mouseenter';\nconst EVENT_MOUSELEAVE = 'mouseleave';\n\nconst AttachmentMap = {\n AUTO: 'auto',\n TOP: 'top',\n RIGHT: isRTL() ? 'left' : 'right',\n BOTTOM: 'bottom',\n LEFT: isRTL() ? 'right' : 'left',\n};\n\nconst Default = {\n allowList: DefaultAllowlist,\n animation: true,\n boundary: 'clippingParents',\n container: false,\n customClass: '',\n delay: 0,\n fallbackPlacements: ['top', 'right', 'bottom', 'left'],\n html: false,\n offset: [0, 6],\n placement: 'top',\n popperConfig: null,\n sanitize: true,\n sanitizeFn: null,\n selector: false,\n template:\n '
' +\n '
' +\n '
' +\n '
',\n title: '',\n trigger: 'hover focus',\n};\n\nconst DefaultType = {\n allowList: 'object',\n animation: 'boolean',\n boundary: '(string|element)',\n container: '(string|element|boolean)',\n customClass: '(string|function)',\n delay: '(number|object)',\n fallbackPlacements: 'array',\n html: 'boolean',\n offset: '(array|string|function)',\n placement: '(string|function)',\n popperConfig: '(null|object|function)',\n sanitize: 'boolean',\n sanitizeFn: '(null|function)',\n selector: '(string|boolean)',\n template: 'string',\n title: '(string|element|function)',\n trigger: 'string',\n};\n\n/**\n * Class definition\n */\n\nclass Tooltip extends BaseComponent {\n constructor(element, config) {\n if (typeof Popper === 'undefined') {\n throw new TypeError(\"Bootstrap's tooltips require Popper (https://popper.js.org)\");\n }\n\n super(element, config);\n\n // Private\n this._isEnabled = true;\n this._timeout = 0;\n this._isHovered = null;\n this._activeTrigger = {};\n this._popper = null;\n this._templateFactory = null;\n this._newContent = null;\n\n // Protected\n this.tip = null;\n\n this._setListeners();\n\n if (!this._config.selector) {\n this._fixTitle();\n }\n }\n\n // Getters\n static get Default() {\n return Default;\n }\n\n static get DefaultType() {\n return DefaultType;\n }\n\n static get NAME() {\n return NAME;\n }\n\n // Public\n enable() {\n this._isEnabled = true;\n }\n\n disable() {\n this._isEnabled = false;\n }\n\n toggleEnabled() {\n this._isEnabled = !this._isEnabled;\n }\n\n toggle() {\n if (!this._isEnabled) {\n return;\n }\n\n this._activeTrigger.click = !this._activeTrigger.click;\n if (this._isShown()) {\n this._leave();\n return;\n }\n\n this._enter();\n }\n\n dispose() {\n clearTimeout(this._timeout);\n\n EventHandler.off(\n this._element.closest(SELECTOR_MODAL),\n EVENT_MODAL_HIDE,\n this._hideModalHandler\n );\n\n if (this._element.getAttribute('data-mdb-original-title')) {\n this._element.setAttribute('title', this._element.getAttribute('data-mdb-original-title'));\n }\n\n this._disposePopper();\n super.dispose();\n }\n\n show() {\n if (this._element.style.display === 'none') {\n throw new Error('Please use show on visible elements');\n }\n\n if (!(this._isWithContent() && this._isEnabled)) {\n return;\n }\n\n const showEvent = EventHandler.trigger(this._element, this.constructor.eventName(EVENT_SHOW));\n const shadowRoot = findShadowRoot(this._element);\n const isInTheDom = (shadowRoot || this._element.ownerDocument.documentElement).contains(\n this._element\n );\n\n if (showEvent.defaultPrevented || !isInTheDom) {\n return;\n }\n\n // TODO: v6 remove this or make it optional\n this._disposePopper();\n\n const tip = this._getTipElement();\n\n this._element.setAttribute('aria-describedby', tip.getAttribute('id'));\n\n const { container } = this._config;\n\n if (!this._element.ownerDocument.documentElement.contains(this.tip)) {\n container.append(tip);\n EventHandler.trigger(this._element, this.constructor.eventName(EVENT_INSERTED));\n }\n\n this._popper = this._createPopper(tip);\n\n tip.classList.add(CLASS_NAME_SHOW);\n\n // If this is a touch-enabled device we add extra\n // empty mouseover listeners to the body's immediate children;\n // only needed because of broken event delegation on iOS\n // https://www.quirksmode.org/blog/archives/2014/02/mouse_event_bub.html\n if ('ontouchstart' in document.documentElement) {\n for (const element of [].concat(...document.body.children)) {\n EventHandler.on(element, 'mouseover', noop);\n }\n }\n\n const complete = () => {\n EventHandler.trigger(this._element, this.constructor.eventName(EVENT_SHOWN));\n\n if (this._isHovered === false) {\n this._leave();\n }\n\n this._isHovered = false;\n };\n\n this._queueCallback(complete, this.tip, this._isAnimated());\n }\n\n hide() {\n if (!this._isShown()) {\n return;\n }\n\n const hideEvent = EventHandler.trigger(this._element, this.constructor.eventName(EVENT_HIDE));\n if (hideEvent.defaultPrevented) {\n return;\n }\n\n const tip = this._getTipElement();\n tip.classList.remove(CLASS_NAME_SHOW);\n\n // If this is a touch-enabled device we remove the extra\n // empty mouseover listeners we added for iOS support\n if ('ontouchstart' in document.documentElement) {\n for (const element of [].concat(...document.body.children)) {\n EventHandler.off(element, 'mouseover', noop);\n }\n }\n\n this._activeTrigger[TRIGGER_CLICK] = false;\n this._activeTrigger[TRIGGER_FOCUS] = false;\n this._activeTrigger[TRIGGER_HOVER] = false;\n this._isHovered = null; // it is a trick to support manual triggering\n\n const complete = () => {\n if (this._isWithActiveTrigger()) {\n return;\n }\n\n if (!this._isHovered) {\n this._disposePopper();\n }\n\n this._element.removeAttribute('aria-describedby');\n EventHandler.trigger(this._element, this.constructor.eventName(EVENT_HIDDEN));\n };\n\n this._queueCallback(complete, this.tip, this._isAnimated());\n }\n\n update() {\n if (this._popper) {\n this._popper.update();\n }\n }\n\n // Protected\n _isWithContent() {\n return Boolean(this._getTitle());\n }\n\n _getTipElement() {\n if (!this.tip) {\n this.tip = this._createTipElement(this._newContent || this._getContentForTemplate());\n }\n\n return this.tip;\n }\n\n _createTipElement(content) {\n const tip = this._getTemplateFactory(content).toHtml();\n\n // TODO: remove this check in v6\n if (!tip) {\n return null;\n }\n\n tip.classList.remove(CLASS_NAME_FADE, CLASS_NAME_SHOW);\n // TODO: v6 the following can be achieved with CSS only\n tip.classList.add(`bs-${this.constructor.NAME}-auto`);\n\n const tipId = getUID(this.constructor.NAME).toString();\n\n tip.setAttribute('id', tipId);\n\n if (this._isAnimated()) {\n tip.classList.add(CLASS_NAME_FADE);\n }\n\n return tip;\n }\n\n setContent(content) {\n this._newContent = content;\n if (this._isShown()) {\n this._disposePopper();\n this.show();\n }\n }\n\n _getTemplateFactory(content) {\n if (this._templateFactory) {\n this._templateFactory.changeContent(content);\n } else {\n this._templateFactory = new TemplateFactory({\n ...this._config,\n // the `content` var has to be after `this._config`\n // to override config.content in case of popover\n content,\n extraClass: this._resolvePossibleFunction(this._config.customClass),\n });\n }\n\n return this._templateFactory;\n }\n\n _getContentForTemplate() {\n return {\n [SELECTOR_TOOLTIP_INNER]: this._getTitle(),\n };\n }\n\n _getTitle() {\n return (\n this._resolvePossibleFunction(this._config.title) ||\n this._element.getAttribute('data-mdb-original-title')\n );\n }\n\n // Private\n _initializeOnDelegatedTarget(event) {\n return this.constructor.getOrCreateInstance(event.delegateTarget, this._getDelegateConfig());\n }\n\n _isAnimated() {\n return this._config.animation || (this.tip && this.tip.classList.contains(CLASS_NAME_FADE));\n }\n\n _isShown() {\n return this.tip && this.tip.classList.contains(CLASS_NAME_SHOW);\n }\n\n _createPopper(tip) {\n const placement = execute(this._config.placement, [this, tip, this._element]);\n const attachment = AttachmentMap[placement.toUpperCase()];\n return Popper.createPopper(this._element, tip, this._getPopperConfig(attachment));\n }\n\n _getOffset() {\n const { offset } = this._config;\n\n if (typeof offset === 'string') {\n return offset.split(',').map((value) => Number.parseInt(value, 10));\n }\n\n if (typeof offset === 'function') {\n return (popperData) => offset(popperData, this._element);\n }\n\n return offset;\n }\n\n _resolvePossibleFunction(arg) {\n return execute(arg, [this._element]);\n }\n\n _getPopperConfig(attachment) {\n const defaultBsPopperConfig = {\n placement: attachment,\n modifiers: [\n {\n name: 'flip',\n options: {\n fallbackPlacements: this._config.fallbackPlacements,\n },\n },\n {\n name: 'offset',\n options: {\n offset: this._getOffset(),\n },\n },\n {\n name: 'preventOverflow',\n options: {\n boundary: this._config.boundary,\n },\n },\n {\n name: 'arrow',\n options: {\n element: `.${this.constructor.NAME}-arrow`,\n },\n },\n {\n name: 'preSetPlacement',\n enabled: true,\n phase: 'beforeMain',\n fn: (data) => {\n // Pre-set Popper's placement attribute in order to read the arrow sizes properly.\n // Otherwise, Popper mixes up the width and height dimensions since the initial arrow style is for top placement\n this._getTipElement().setAttribute('data-popper-placement', data.state.placement);\n },\n },\n ],\n };\n\n return {\n ...defaultBsPopperConfig,\n ...execute(this._config.popperConfig, [defaultBsPopperConfig]),\n };\n }\n\n _setListeners() {\n const triggers = this._config.trigger.split(' ');\n\n for (const trigger of triggers) {\n if (trigger === 'click') {\n EventHandler.on(\n this._element,\n this.constructor.eventName(EVENT_CLICK),\n this._config.selector,\n (event) => {\n const context = this._initializeOnDelegatedTarget(event);\n context.toggle();\n }\n );\n } else if (trigger !== TRIGGER_MANUAL) {\n const eventIn =\n trigger === TRIGGER_HOVER\n ? this.constructor.eventName(EVENT_MOUSEENTER)\n : this.constructor.eventName(EVENT_FOCUSIN);\n const eventOut =\n trigger === TRIGGER_HOVER\n ? this.constructor.eventName(EVENT_MOUSELEAVE)\n : this.constructor.eventName(EVENT_FOCUSOUT);\n\n EventHandler.on(this._element, eventIn, this._config.selector, (event) => {\n const context = this._initializeOnDelegatedTarget(event);\n context._activeTrigger[event.type === 'focusin' ? TRIGGER_FOCUS : TRIGGER_HOVER] = true;\n context._enter();\n });\n EventHandler.on(this._element, eventOut, this._config.selector, (event) => {\n const context = this._initializeOnDelegatedTarget(event);\n context._activeTrigger[event.type === 'focusout' ? TRIGGER_FOCUS : TRIGGER_HOVER] =\n context._element.contains(event.relatedTarget);\n\n context._leave();\n });\n }\n }\n\n this._hideModalHandler = () => {\n if (this._element) {\n this.hide();\n }\n };\n\n EventHandler.on(\n this._element.closest(SELECTOR_MODAL),\n EVENT_MODAL_HIDE,\n this._hideModalHandler\n );\n }\n\n _fixTitle() {\n const title = this._element.getAttribute('title');\n\n if (!title) {\n return;\n }\n\n if (!this._element.getAttribute('aria-label') && !this._element.textContent.trim()) {\n this._element.setAttribute('aria-label', title);\n }\n\n this._element.setAttribute('data-mdb-original-title', title); // DO NOT USE IT. Is only for backwards compatibility\n this._element.removeAttribute('title');\n }\n\n _enter() {\n if (this._isShown() || this._isHovered) {\n this._isHovered = true;\n return;\n }\n\n this._isHovered = true;\n\n this._setTimeout(() => {\n if (this._isHovered) {\n this.show();\n }\n }, this._config.delay.show);\n }\n\n _leave() {\n if (this._isWithActiveTrigger()) {\n return;\n }\n\n this._isHovered = false;\n\n this._setTimeout(() => {\n if (!this._isHovered) {\n this.hide();\n }\n }, this._config.delay.hide);\n }\n\n _setTimeout(handler, timeout) {\n clearTimeout(this._timeout);\n this._timeout = setTimeout(handler, timeout);\n }\n\n _isWithActiveTrigger() {\n return Object.values(this._activeTrigger).includes(true);\n }\n\n _getConfig(config) {\n const dataAttributes = Manipulator.getDataAttributes(this._element);\n\n for (const dataAttribute of Object.keys(dataAttributes)) {\n if (DISALLOWED_ATTRIBUTES.has(dataAttribute)) {\n delete dataAttributes[dataAttribute];\n }\n }\n\n config = {\n ...dataAttributes,\n ...(typeof config === 'object' && config ? config : {}),\n };\n config = this._mergeConfigObj(config);\n config = this._configAfterMerge(config);\n this._typeCheckConfig(config);\n return config;\n }\n\n _configAfterMerge(config) {\n config.container = config.container === false ? document.body : getElement(config.container);\n\n if (typeof config.delay === 'number') {\n config.delay = {\n show: config.delay,\n hide: config.delay,\n };\n }\n\n if (typeof config.title === 'number') {\n config.title = config.title.toString();\n }\n\n if (typeof config.content === 'number') {\n config.content = config.content.toString();\n }\n\n return config;\n }\n\n _getDelegateConfig() {\n const config = {};\n\n for (const [key, value] of Object.entries(this._config)) {\n if (this.constructor.Default[key] !== value) {\n config[key] = value;\n }\n }\n\n config.selector = false;\n config.trigger = 'manual';\n\n // In the future can be replaced with:\n // const keysWithDifferentValues = Object.entries(this._config).filter(entry => this.constructor.Default[entry[0]] !== this._config[entry[0]])\n // `Object.fromEntries(keysWithDifferentValues)`\n return config;\n }\n\n _disposePopper() {\n if (this._popper) {\n this._popper.destroy();\n this._popper = null;\n }\n\n if (this.tip) {\n this.tip.remove();\n this.tip = null;\n }\n }\n\n // Static\n static jQueryInterface(config) {\n return this.each(function () {\n const data = Tooltip.getOrCreateInstance(this, config);\n\n if (typeof config !== 'string') {\n return;\n }\n\n if (typeof data[config] === 'undefined') {\n throw new TypeError(`No method named \"${config}\"`);\n }\n\n data[config]();\n });\n }\n}\n\n/**\n * jQuery\n */\n\n// defineJQueryPlugin(Tooltip)\n\nexport default Tooltip;\n","/**\n * --------------------------------------------------------------------------\n * Bootstrap tab.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nimport BaseComponent from './base-component.js';\nimport EventHandler from './dom/event-handler.js';\nimport SelectorEngine from './dom/selector-engine.js';\nimport { defineJQueryPlugin, getNextActiveElement, isDisabled } from './util/index.js';\n\n/**\n * Constants\n */\n\nconst NAME = 'tab';\nconst DATA_KEY = 'bs.tab';\nconst EVENT_KEY = `.${DATA_KEY}`;\n\nconst EVENT_HIDE = `hide${EVENT_KEY}`;\nconst EVENT_HIDDEN = `hidden${EVENT_KEY}`;\nconst EVENT_SHOW = `show${EVENT_KEY}`;\nconst EVENT_SHOWN = `shown${EVENT_KEY}`;\nconst EVENT_CLICK_DATA_API = `click${EVENT_KEY}`;\nconst EVENT_KEYDOWN = `keydown${EVENT_KEY}`;\nconst EVENT_LOAD_DATA_API = `load${EVENT_KEY}`;\n\nconst ARROW_LEFT_KEY = 'ArrowLeft';\nconst ARROW_RIGHT_KEY = 'ArrowRight';\nconst ARROW_UP_KEY = 'ArrowUp';\nconst ARROW_DOWN_KEY = 'ArrowDown';\nconst HOME_KEY = 'Home';\nconst END_KEY = 'End';\n\nconst CLASS_NAME_ACTIVE = 'active';\nconst CLASS_NAME_FADE = 'fade';\nconst CLASS_NAME_SHOW = 'show';\nconst CLASS_DROPDOWN = 'dropdown';\n\nconst SELECTOR_DROPDOWN_TOGGLE = '.dropdown-toggle';\nconst SELECTOR_DROPDOWN_MENU = '.dropdown-menu';\nconst NOT_SELECTOR_DROPDOWN_TOGGLE = `:not(${SELECTOR_DROPDOWN_TOGGLE})`;\n\nconst SELECTOR_TAB_PANEL = '.list-group, .nav, [role=\"tablist\"]';\nconst SELECTOR_OUTER = '.nav-item, .list-group-item';\nconst SELECTOR_INNER = `.nav-link${NOT_SELECTOR_DROPDOWN_TOGGLE}, .list-group-item${NOT_SELECTOR_DROPDOWN_TOGGLE}, [role=\"tab\"]${NOT_SELECTOR_DROPDOWN_TOGGLE}`;\nconst SELECTOR_DATA_TOGGLE = '[data-mdb-tab-initialized]'; // todo:v6: could be only `tab`\nconst SELECTOR_INNER_ELEM = `${SELECTOR_INNER}, ${SELECTOR_DATA_TOGGLE}`;\n\nconst SELECTOR_DATA_TOGGLE_ACTIVE = `.${CLASS_NAME_ACTIVE}[data-mdb-toggle=\"tab\"], .${CLASS_NAME_ACTIVE}[data-mdb-toggle=\"pill\"], .${CLASS_NAME_ACTIVE}[data-mdb-toggle=\"list\"]`;\n\n/**\n * Class definition\n */\n\nclass Tab extends BaseComponent {\n constructor(element) {\n super(element);\n this._parent = this._element.closest(SELECTOR_TAB_PANEL);\n\n if (!this._parent) {\n return;\n // TODO: should throw exception in v6\n // throw new TypeError(`${element.outerHTML} has not a valid parent ${SELECTOR_INNER_ELEM}`)\n }\n\n // Set up initial aria attributes\n this._setInitialAttributes(this._parent, this._getChildren());\n\n EventHandler.on(this._element, EVENT_KEYDOWN, (event) => this._keydown(event));\n }\n\n // Getters\n static get NAME() {\n return NAME;\n }\n\n // Public\n show() {\n // Shows this elem and deactivate the active sibling if exists\n const innerElem = this._element;\n if (this._elemIsActive(innerElem)) {\n return;\n }\n\n // Search for active tab on same parent to deactivate it\n const active = this._getActiveElem();\n\n const hideEvent = active\n ? EventHandler.trigger(active, EVENT_HIDE, { relatedTarget: innerElem })\n : null;\n\n const showEvent = EventHandler.trigger(innerElem, EVENT_SHOW, { relatedTarget: active });\n\n if (showEvent.defaultPrevented || (hideEvent && hideEvent.defaultPrevented)) {\n return;\n }\n\n this._deactivate(active, innerElem);\n this._activate(innerElem, active);\n }\n\n // Private\n _activate(element, relatedElem) {\n if (!element) {\n return;\n }\n\n element.classList.add(CLASS_NAME_ACTIVE);\n\n this._activate(SelectorEngine.getElementFromSelector(element)); // Search and activate/show the proper section\n\n const complete = () => {\n if (element.getAttribute('role') !== 'tab') {\n element.classList.add(CLASS_NAME_SHOW);\n return;\n }\n\n element.removeAttribute('tabindex');\n element.setAttribute('aria-selected', true);\n this._toggleDropDown(element, true);\n EventHandler.trigger(element, EVENT_SHOWN, {\n relatedTarget: relatedElem,\n });\n };\n\n this._queueCallback(complete, element, element.classList.contains(CLASS_NAME_FADE));\n }\n\n _deactivate(element, relatedElem) {\n if (!element) {\n return;\n }\n\n element.classList.remove(CLASS_NAME_ACTIVE);\n element.blur();\n\n this._deactivate(SelectorEngine.getElementFromSelector(element)); // Search and deactivate the shown section too\n\n const complete = () => {\n if (element.getAttribute('role') !== 'tab') {\n element.classList.remove(CLASS_NAME_SHOW);\n return;\n }\n\n element.setAttribute('aria-selected', false);\n element.setAttribute('tabindex', '-1');\n this._toggleDropDown(element, false);\n EventHandler.trigger(element, EVENT_HIDDEN, { relatedTarget: relatedElem });\n };\n\n this._queueCallback(complete, element, element.classList.contains(CLASS_NAME_FADE));\n }\n\n _keydown(event) {\n if (\n ![ARROW_LEFT_KEY, ARROW_RIGHT_KEY, ARROW_UP_KEY, ARROW_DOWN_KEY, HOME_KEY, END_KEY].includes(\n event.key\n )\n ) {\n return;\n }\n\n event.stopPropagation(); // stopPropagation/preventDefault both added to support up/down keys without scrolling the page\n event.preventDefault();\n\n const children = this._getChildren().filter((element) => !isDisabled(element));\n let nextActiveElement;\n\n if ([HOME_KEY, END_KEY].includes(event.key)) {\n nextActiveElement = children[event.key === HOME_KEY ? 0 : children.length - 1];\n } else {\n const isNext = [ARROW_RIGHT_KEY, ARROW_DOWN_KEY].includes(event.key);\n nextActiveElement = getNextActiveElement(children, event.target, isNext, true);\n }\n\n if (nextActiveElement) {\n nextActiveElement.focus({ preventScroll: true });\n Tab.getOrCreateInstance(nextActiveElement).show();\n }\n }\n\n _getChildren() {\n // collection of inner elements\n return SelectorEngine.find(SELECTOR_INNER_ELEM, this._parent);\n }\n\n _getActiveElem() {\n return this._getChildren().find((child) => this._elemIsActive(child)) || null;\n }\n\n _setInitialAttributes(parent, children) {\n this._setAttributeIfNotExists(parent, 'role', 'tablist');\n\n for (const child of children) {\n this._setInitialAttributesOnChild(child);\n }\n }\n\n _setInitialAttributesOnChild(child) {\n child = this._getInnerElement(child);\n const isActive = this._elemIsActive(child);\n const outerElem = this._getOuterElement(child);\n child.setAttribute('aria-selected', isActive);\n\n if (outerElem !== child) {\n this._setAttributeIfNotExists(outerElem, 'role', 'presentation');\n }\n\n if (!isActive) {\n child.setAttribute('tabindex', '-1');\n }\n\n this._setAttributeIfNotExists(child, 'role', 'tab');\n\n // set attributes to the related panel too\n this._setInitialAttributesOnTargetPanel(child);\n }\n\n _setInitialAttributesOnTargetPanel(child) {\n const target = SelectorEngine.getElementFromSelector(child);\n\n if (!target) {\n return;\n }\n\n this._setAttributeIfNotExists(target, 'role', 'tabpanel');\n\n if (child.id) {\n this._setAttributeIfNotExists(target, 'aria-labelledby', `${child.id}`);\n }\n }\n\n _toggleDropDown(element, open) {\n const outerElem = this._getOuterElement(element);\n if (!outerElem.classList.contains(CLASS_DROPDOWN)) {\n return;\n }\n\n const toggle = (selector, className) => {\n const element = SelectorEngine.findOne(selector, outerElem);\n if (element) {\n element.classList.toggle(className, open);\n }\n };\n\n toggle(SELECTOR_DROPDOWN_TOGGLE, CLASS_NAME_ACTIVE);\n toggle(SELECTOR_DROPDOWN_MENU, CLASS_NAME_SHOW);\n outerElem.setAttribute('aria-expanded', open);\n }\n\n _setAttributeIfNotExists(element, attribute, value) {\n if (!element.hasAttribute(attribute)) {\n element.setAttribute(attribute, value);\n }\n }\n\n _elemIsActive(elem) {\n return elem.classList.contains(CLASS_NAME_ACTIVE);\n }\n\n // Try to get the inner element (usually the .nav-link)\n _getInnerElement(elem) {\n return elem.matches(SELECTOR_INNER_ELEM)\n ? elem\n : SelectorEngine.findOne(SELECTOR_INNER_ELEM, elem);\n }\n\n // Try to get the outer element (usually the .nav-item)\n _getOuterElement(elem) {\n return elem.closest(SELECTOR_OUTER) || elem;\n }\n\n // Static\n static jQueryInterface(config) {\n return this.each(function () {\n const data = Tab.getOrCreateInstance(this);\n\n if (typeof config !== 'string') {\n return;\n }\n\n if (data[config] === undefined || config.startsWith('_') || config === 'constructor') {\n throw new TypeError(`No method named \"${config}\"`);\n }\n\n data[config]();\n });\n }\n}\n\n/**\n * Data API implementation\n */\n\n// EventHandler.on(document, EVENT_CLICK_DATA_API, SELECTOR_DATA_TOGGLE, function (event) {\n// if (['A', 'AREA'].includes(this.tagName)) {\n// event.preventDefault()\n// }\n\n// if (isDisabled(this)) {\n// return\n// }\n\n// Tab.getOrCreateInstance(this).show()\n// })\n\n/**\n * Initialize on focus\n */\n// EventHandler.on(window, EVENT_LOAD_DATA_API, () => {\n// for (const element of SelectorEngine.find(SELECTOR_DATA_TOGGLE_ACTIVE)) {\n// Tab.getOrCreateInstance(element)\n// }\n// })\n/**\n * jQuery\n */\n\n// defineJQueryPlugin(Tab)\n\nexport default Tab;\n","import { getElementFromSelector } from '../mdb/util/index';\nimport EventHandler from '../mdb/dom/event-handler';\nimport BSTab from '../bootstrap/mdb-prefix/tab';\nimport Manipulator from '../mdb/dom/manipulator';\nimport { bindCallbackEventsIfNeeded } from '../autoinit/init';\n/**\n * ------------------------------------------------------------------------\n * Constants\n * ------------------------------------------------------------------------\n */\n\nconst NAME = 'tab';\nconst DATA_KEY = `mdb.${NAME}`;\nconst EVENT_KEY = `.${DATA_KEY}`;\n\nconst EVENT_SHOW_BS = 'show.bs.tab';\nconst EVENT_SHOWN_BS = 'shown.bs.tab';\nconst EVENT_HIDE_BS = 'hide.bs.tab';\nconst EVENT_HIDDEN_BS = 'hidden.bs.tab';\n\nconst EVENT_SHOW = `show${EVENT_KEY}`;\nconst EVENT_SHOWN = `shown${EVENT_KEY}`;\nconst EVENT_HIDE = `hide${EVENT_KEY}`;\nconst EVENT_HIDDEN = `hidden${EVENT_KEY}`;\n\nconst CLASS_NAME_ACTIVE = 'active';\nconst CLASS_NAME_FADE = 'fade';\nconst CLASS_NAME_SHOW = 'show';\n\nclass Tab extends BSTab {\n constructor(element) {\n super(element);\n\n Manipulator.setDataAttribute(this._element, `${this.constructor.NAME}-initialized`, true);\n bindCallbackEventsIfNeeded(this.constructor);\n }\n\n dispose() {\n EventHandler.off(this._element, EVENT_SHOW_BS);\n EventHandler.off(this._element, EVENT_SHOWN_BS);\n Manipulator.removeDataAttribute(this._element, `${this.constructor.NAME}-initialized`);\n\n super.dispose();\n }\n\n // Getters\n static get NAME() {\n return NAME;\n }\n\n // Override\n show() {\n // Shows this elem and deactivate the active sibling if exists\n const innerElem = this._element;\n if (this._elemIsActive(innerElem)) {\n return;\n }\n\n // Search for active tab on same parent to deactivate it\n const active = this._getActiveElem();\n\n let hideEvent = null;\n let hideEventMdb = null;\n\n if (active) {\n hideEvent = EventHandler.trigger(active, EVENT_HIDE_BS, { relatedTarget: innerElem });\n hideEventMdb = EventHandler.trigger(active, EVENT_HIDE, { relatedTarget: innerElem });\n }\n\n const showEvent = EventHandler.trigger(innerElem, EVENT_SHOW_BS, { relatedTarget: active });\n const showEventMdb = EventHandler.trigger(innerElem, EVENT_SHOW, { relatedTarget: active });\n\n if (\n showEvent.defaultPrevented ||\n showEventMdb.defaultPrevented ||\n (hideEvent && hideEvent.defaultPrevented) ||\n (hideEventMdb && hideEventMdb.defaultPrevented)\n ) {\n return;\n }\n\n this._deactivate(active, innerElem);\n this._activate(innerElem, active);\n }\n\n _activate(element, relatedElem) {\n if (!element) {\n return;\n }\n\n element.classList.add(CLASS_NAME_ACTIVE);\n\n this._activate(getElementFromSelector(element)); // Search and activate/show the proper section\n\n const complete = () => {\n if (element.getAttribute('role') !== 'tab') {\n element.classList.add(CLASS_NAME_SHOW);\n return;\n }\n\n element.focus();\n element.removeAttribute('tabindex');\n element.setAttribute('aria-selected', true);\n this._toggleDropDown(element, true);\n EventHandler.trigger(element, EVENT_SHOWN_BS, {\n relatedTarget: relatedElem,\n });\n EventHandler.trigger(element, EVENT_SHOWN, {\n relatedTarget: relatedElem,\n });\n };\n\n this._queueCallback(complete, element, element.classList.contains(CLASS_NAME_FADE));\n }\n\n _deactivate(element, relatedElem) {\n if (!element) {\n return;\n }\n\n element.classList.remove(CLASS_NAME_ACTIVE);\n element.blur();\n\n this._deactivate(getElementFromSelector(element)); // Search and deactivate the shown section too\n\n const complete = () => {\n if (element.getAttribute('role') !== 'tab') {\n element.classList.remove(CLASS_NAME_SHOW);\n return;\n }\n\n element.setAttribute('aria-selected', false);\n element.setAttribute('tabindex', '-1');\n this._toggleDropDown(element, false);\n EventHandler.trigger(element, EVENT_HIDDEN_BS, { relatedTarget: relatedElem });\n EventHandler.trigger(element, EVENT_HIDDEN, { relatedTarget: relatedElem });\n };\n\n this._queueCallback(complete, element, element.classList.contains(CLASS_NAME_FADE));\n }\n}\n\nexport default Tab;\n","import EventHandler from '../mdb/dom/event-handler';\nimport BSTooltip from '../bootstrap/mdb-prefix/tooltip';\nimport Manipulator from '../mdb/dom/manipulator';\nimport { bindCallbackEventsIfNeeded } from '../autoinit/init';\n\n/**\n * ------------------------------------------------------------------------\n * Constants\n * ------------------------------------------------------------------------\n */\n\nconst NAME = 'tooltip';\n\nconst EVENT_HIDE_BS = 'hide.bs.tooltip';\nconst EVENT_HIDDEN_BS = 'hidden.bs.tooltip';\nconst EVENT_SHOW_BS = 'show.bs.tooltip';\nconst EVENT_SHOWN_BS = 'shown.bs.tooltip';\nconst EVENT_INSERTED_BS = 'inserted.bs.tooltip';\n\nconst EXTENDED_EVENTS = [\n { name: 'show' },\n { name: 'shown' },\n { name: 'hide' },\n { name: 'hidden' },\n { name: 'inserted' },\n];\n\nclass Tooltip extends BSTooltip {\n constructor(element, data) {\n super(element, data);\n\n this._init();\n Manipulator.setDataAttribute(this._element, `${this.constructor.NAME}-initialized`, true);\n bindCallbackEventsIfNeeded(this.constructor);\n }\n\n dispose() {\n EventHandler.off(this._element, EVENT_SHOW_BS);\n EventHandler.off(this._element, EVENT_SHOWN_BS);\n EventHandler.off(this._element, EVENT_HIDE_BS);\n EventHandler.off(this._element, EVENT_HIDDEN_BS);\n EventHandler.off(this._element, EVENT_INSERTED_BS);\n Manipulator.removeDataAttribute(this._element, `${this.constructor.NAME}-initialized`);\n\n super.dispose();\n }\n\n // Getters\n static get NAME() {\n return NAME;\n }\n\n // Private\n _init() {\n this._bindMdbEvents();\n }\n\n _bindMdbEvents() {\n EventHandler.extend(this._element, EXTENDED_EVENTS, NAME);\n }\n}\n\nexport default Tooltip;\n","(()=>{var e={454:(e,t,n)=>{\"use strict\";n.d(t,{Z:()=>a});var r=n(645),o=n.n(r)()((function(e){return e[1]}));o.push([e.id,\"INPUT:-webkit-autofill,SELECT:-webkit-autofill,TEXTAREA:-webkit-autofill{animation-name:onautofillstart}INPUT:not(:-webkit-autofill),SELECT:not(:-webkit-autofill),TEXTAREA:not(:-webkit-autofill){animation-name:onautofillcancel}@keyframes onautofillstart{}@keyframes onautofillcancel{}\",\"\"]);const a=o},645:e=>{\"use strict\";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=e(t);return t[2]?\"@media \".concat(t[2],\" {\").concat(n,\"}\"):n})).join(\"\")},t.i=function(e,n,r){\"string\"==typeof e&&(e=[[null,e,\"\"]]);var o={};if(r)for(var a=0;a{!function(){if(\"undefined\"!=typeof window)try{var e=new window.CustomEvent(\"test\",{cancelable:!0});if(e.preventDefault(),!0!==e.defaultPrevented)throw new Error(\"Could not prevent default\")}catch(e){var t=function(e,t){var n,r;return(t=t||{}).bubbles=!!t.bubbles,t.cancelable=!!t.cancelable,(n=document.createEvent(\"CustomEvent\")).initCustomEvent(e,t.bubbles,t.cancelable,t.detail),r=n.preventDefault,n.preventDefault=function(){r.call(this);try{Object.defineProperty(this,\"defaultPrevented\",{get:function(){return!0}})}catch(e){this.defaultPrevented=!0}},n};t.prototype=window.Event.prototype,window.CustomEvent=t}}()},379:(e,t,n)=>{\"use strict\";var r,o=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),a=[];function i(e){for(var t=-1,n=0;n{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{\"use strict\";var e=n(379),t=n.n(e),r=n(454);function o(e){if(!e.hasAttribute(\"autocompleted\")){e.setAttribute(\"autocompleted\",\"\");var t=new window.CustomEvent(\"onautocomplete\",{bubbles:!0,cancelable:!0,detail:null});e.dispatchEvent(t)||(e.value=\"\")}}function a(e){e.hasAttribute(\"autocompleted\")&&(e.removeAttribute(\"autocompleted\"),e.dispatchEvent(new window.CustomEvent(\"onautocomplete\",{bubbles:!0,cancelable:!1,detail:null})))}t()(r.Z,{insert:\"head\",singleton:!1}),r.Z.locals,n(810),document.addEventListener(\"animationstart\",(function(e){\"onautofillstart\"===e.animationName?o(e.target):a(e.target)}),!0),document.addEventListener(\"input\",(function(e){\"insertReplacementText\"!==e.inputType&&\"data\"in e?a(e.target):o(e.target)}),!0)})()})();","/**\n * --------------------------------------------------------------------------\n * Bootstrap (v5.1.3): base-component.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nimport Data from '../mdb/dom/data';\nimport { getElement } from '../mdb/util/index';\nimport EventHandler from '../mdb/dom/event-handler';\n\n/**\n * ------------------------------------------------------------------------\n * Constants\n * ------------------------------------------------------------------------\n */\n\n// const VERSION = '5.1.3';\n\nclass BaseComponent {\n constructor(element) {\n element = getElement(element);\n\n if (!element) {\n return;\n }\n\n this._element = element;\n Data.setData(this._element, this.constructor.DATA_KEY, this);\n }\n\n dispose() {\n Data.removeData(this._element, this.constructor.DATA_KEY);\n EventHandler.off(this._element, this.constructor.EVENT_KEY);\n\n Object.getOwnPropertyNames(this).forEach((propertyName) => {\n this[propertyName] = null;\n });\n }\n\n /** Static */\n\n static getInstance(element) {\n return Data.getData(getElement(element), this.DATA_KEY);\n }\n\n static getOrCreateInstance(element, config = {}) {\n return (\n this.getInstance(element) || new this(element, typeof config === 'object' ? config : null)\n );\n }\n\n static get NAME() {\n throw new Error('You have to implement the static method \"NAME\", for each component!');\n }\n\n static get DATA_KEY() {\n return `mdb.${this.NAME}`;\n }\n\n static get EVENT_KEY() {\n return `.${this.DATA_KEY}`;\n }\n}\n\nexport default BaseComponent;\n","import { element, onDOMContentLoaded } from '../mdb/util/index';\nimport Data from '../mdb/dom/data';\nimport EventHandler from '../mdb/dom/event-handler';\nimport Manipulator from '../mdb/dom/manipulator';\nimport SelectorEngine from '../mdb/dom/selector-engine';\nimport 'detect-autofill';\nimport BaseComponent from './base-component';\nimport { bindCallbackEventsIfNeeded } from '../autoinit/init';\n\n/**\n * ------------------------------------------------------------------------\n * Constants\n * ------------------------------------------------------------------------\n */\n\nconst NAME = 'input';\nconst DATA_KEY = 'mdb.input';\nconst CLASSNAME_ACTIVE = 'active';\nconst CLASSNAME_NOTCH = 'form-notch';\nconst CLASSNAME_NOTCH_LEADING = 'form-notch-leading';\nconst CLASSNAME_NOTCH_MIDDLE = 'form-notch-middle';\nconst CLASSNAME_NOTCH_TRAILING = 'form-notch-trailing';\nconst CLASSNAME_PLACEHOLDER_ACTIVE = 'placeholder-active';\nconst CLASSNAME_HELPER = 'form-helper';\nconst CLASSNAME_COUNTER = 'form-counter';\n\nconst SELECTOR_NOTCH = `.${CLASSNAME_NOTCH}`;\nconst SELECTOR_NOTCH_LEADING = `.${CLASSNAME_NOTCH_LEADING}`;\nconst SELECTOR_NOTCH_MIDDLE = `.${CLASSNAME_NOTCH_MIDDLE}`;\nconst SELECTOR_HELPER = `.${CLASSNAME_HELPER}`;\n\n/**\n * ------------------------------------------------------------------------\n * Class Definition\n * ------------------------------------------------------------------------\n */\n\nclass Input extends BaseComponent {\n constructor(element) {\n super(element);\n\n this._label = null;\n this._labelWidth = 0;\n this._labelMarginLeft = 0;\n this._notchLeading = null;\n this._notchMiddle = null;\n this._notchTrailing = null;\n this._initiated = false;\n this._helper = null;\n this._counter = false;\n this._counterElement = null;\n this._maxLength = 0;\n this._leadingIcon = null;\n if (this._element) {\n this.init();\n Manipulator.setDataAttribute(this._element, `${this.constructor.NAME}-initialized`, true);\n bindCallbackEventsIfNeeded(this.constructor);\n }\n }\n\n // Getters\n static get NAME() {\n return NAME;\n }\n\n get input() {\n const inputElement =\n SelectorEngine.findOne('input', this._element) ||\n SelectorEngine.findOne('textarea', this._element);\n return inputElement;\n }\n\n // Public\n init() {\n if (this._initiated) {\n return;\n }\n this._getLabelData();\n this._applyDivs();\n this._applyNotch();\n this._activate();\n this._getHelper();\n this._getCounter();\n this._initiated = true;\n }\n\n update() {\n this._getLabelData();\n this._getNotchData();\n this._applyNotch();\n this._activate();\n this._getHelper();\n this._getCounter();\n }\n\n forceActive() {\n Manipulator.addClass(this.input, CLASSNAME_ACTIVE);\n }\n\n forceInactive() {\n Manipulator.removeClass(this.input, CLASSNAME_ACTIVE);\n }\n\n dispose() {\n this._removeBorder();\n Manipulator.removeDataAttribute(this._element, `${this.constructor.NAME}-initialized`);\n\n super.dispose();\n }\n\n // Private\n\n /*\n _getIcons() {\n this._leadingIcon = SelectorEngine.findOne('i.leading', this._element);\n\n if (this._leadingIcon !== null) {\n this._applyLeadingIcon();\n }\n }\n\n _applyLeadingIcon() {\n this._label.innerHTML = ` ${this._label.innerHTML}`;\n this._label.insertBefore(this._leadingIcon, this._label.firstChild);\n }\n */\n\n _getLabelData() {\n this._label = SelectorEngine.findOne('label', this._element);\n if (this._label === null) {\n this._showPlaceholder();\n } else {\n this._getLabelWidth();\n this._getLabelPositionInInputGroup();\n this._toggleDefaultDatePlaceholder();\n }\n }\n\n _getHelper() {\n this._helper = SelectorEngine.findOne(SELECTOR_HELPER, this._element);\n }\n\n _getCounter() {\n this._counter = Manipulator.getDataAttribute(this.input, 'showcounter');\n if (this._counter) {\n this._maxLength = this.input.maxLength;\n this._showCounter();\n }\n }\n\n _showCounter() {\n const counters = SelectorEngine.find('.form-counter', this._element);\n if (counters.length > 0) {\n return;\n }\n this._counterElement = document.createElement('div');\n Manipulator.addClass(this._counterElement, CLASSNAME_COUNTER);\n const actualLength = this.input.value.length;\n this._counterElement.innerHTML = `${actualLength} / ${this._maxLength}`;\n this._helper.appendChild(this._counterElement);\n this._bindCounter();\n }\n\n _bindCounter() {\n EventHandler.on(this.input, 'input', () => {\n const actualLength = this.input.value.length;\n this._counterElement.innerHTML = `${actualLength} / ${this._maxLength}`;\n });\n }\n\n _toggleDefaultDatePlaceholder(input = this.input) {\n const type = input.getAttribute('type');\n const typesWithPlaceholder = ['date', 'time', 'datetime-local', 'month', 'week'];\n\n if (!typesWithPlaceholder.includes(type)) {\n return;\n }\n\n const isInputFocused = document.activeElement === input;\n\n if (!isInputFocused && !input.value) {\n input.style.opacity = 0;\n } else {\n input.style.opacity = 1;\n }\n }\n\n _showPlaceholder() {\n Manipulator.addClass(this.input, CLASSNAME_PLACEHOLDER_ACTIVE);\n }\n\n _getNotchData() {\n this._notchMiddle = SelectorEngine.findOne(SELECTOR_NOTCH_MIDDLE, this._element);\n this._notchLeading = SelectorEngine.findOne(SELECTOR_NOTCH_LEADING, this._element);\n }\n\n _getLabelWidth() {\n this._labelWidth = this._label.clientWidth * 0.8 + 8;\n }\n\n _getLabelPositionInInputGroup() {\n this._labelMarginLeft = 0;\n\n if (!this._element.classList.contains('input-group')) return;\n const input = this.input;\n const prefix = SelectorEngine.prev(input, '.input-group-text')[0];\n if (prefix === undefined) {\n this._labelMarginLeft = 0;\n } else {\n this._labelMarginLeft = prefix.offsetWidth - 1;\n }\n }\n\n _applyDivs() {\n const allNotchWrappers = SelectorEngine.find(SELECTOR_NOTCH, this._element);\n const notchWrapper = element('div');\n Manipulator.addClass(notchWrapper, CLASSNAME_NOTCH);\n this._notchLeading = element('div');\n Manipulator.addClass(this._notchLeading, CLASSNAME_NOTCH_LEADING);\n this._notchMiddle = element('div');\n Manipulator.addClass(this._notchMiddle, CLASSNAME_NOTCH_MIDDLE);\n this._notchTrailing = element('div');\n Manipulator.addClass(this._notchTrailing, CLASSNAME_NOTCH_TRAILING);\n if (allNotchWrappers.length >= 1) {\n return;\n }\n notchWrapper.append(this._notchLeading);\n notchWrapper.append(this._notchMiddle);\n notchWrapper.append(this._notchTrailing);\n this._element.append(notchWrapper);\n }\n\n _applyNotch() {\n this._notchMiddle.style.width = `${this._labelWidth}px`;\n this._notchLeading.style.width = `${this._labelMarginLeft + 9}px`;\n\n if (this._label === null) return;\n this._label.style.marginLeft = `${this._labelMarginLeft}px`;\n }\n\n _removeBorder() {\n const border = SelectorEngine.findOne(SELECTOR_NOTCH, this._element);\n if (border) border.remove();\n }\n\n _activate(event) {\n onDOMContentLoaded(() => {\n this._getElements(event);\n\n if (!this._element) {\n return;\n }\n\n const input = event ? event.target : this.input;\n\n if (input.value !== '') {\n Manipulator.addClass(input, CLASSNAME_ACTIVE);\n }\n this._toggleDefaultDatePlaceholder(input);\n });\n }\n\n _getElements(event) {\n let initialized;\n if (event) {\n this._element = event.target.parentNode;\n this._label = SelectorEngine.findOne('label', this._element);\n\n initialized = Manipulator.getDataAttribute(\n this._element,\n `${this.constructor.NAME}-initialized`\n );\n }\n\n if (!initialized) {\n return;\n }\n\n if (event && this._label) {\n const prevLabelWidth = this._labelWidth;\n this._getLabelData();\n\n if (prevLabelWidth !== this._labelWidth) {\n this._notchMiddle = SelectorEngine.findOne('.form-notch-middle', event.target.parentNode);\n this._notchLeading = SelectorEngine.findOne(\n SELECTOR_NOTCH_LEADING,\n event.target.parentNode\n );\n this._applyNotch();\n }\n }\n }\n\n _deactivate(event) {\n const input = event ? event.target : this.input;\n\n if (input.value === '') {\n input.classList.remove(CLASSNAME_ACTIVE);\n }\n this._toggleDefaultDatePlaceholder(input);\n }\n\n static activate(instance) {\n return function (event) {\n instance._activate(event);\n };\n }\n\n static deactivate(instance) {\n return function (event) {\n instance._deactivate(event);\n };\n }\n\n static jQueryInterface(config, options) {\n return this.each(function () {\n let data = Data.getData(this, DATA_KEY);\n const _config = typeof config === 'object' && config;\n if (!data && /dispose/.test(config)) {\n return;\n }\n if (!data) {\n data = new Input(this, _config);\n }\n if (typeof config === 'string') {\n if (typeof data[config] === 'undefined') {\n throw new TypeError(`No method named \"${config}\"`);\n }\n data[config](options);\n }\n });\n }\n}\n\nexport default Input;\n","/**\n * --------------------------------------------------------------------------\n * Bootstrap collapse.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nimport BaseComponent from './base-component.js';\nimport EventHandler from './dom/event-handler.js';\nimport SelectorEngine from './dom/selector-engine.js';\nimport { defineJQueryPlugin, getElement, reflow } from './util/index.js';\n\n/**\n * Constants\n */\n\nconst NAME = 'collapse';\nconst DATA_KEY = 'bs.collapse';\nconst EVENT_KEY = `.${DATA_KEY}`;\nconst DATA_API_KEY = '.data-api';\n\nconst EVENT_SHOW = `show${EVENT_KEY}`;\nconst EVENT_SHOWN = `shown${EVENT_KEY}`;\nconst EVENT_HIDE = `hide${EVENT_KEY}`;\nconst EVENT_HIDDEN = `hidden${EVENT_KEY}`;\nconst EVENT_CLICK_DATA_API = `click${EVENT_KEY}${DATA_API_KEY}`;\n\nconst CLASS_NAME_SHOW = 'show';\nconst CLASS_NAME_COLLAPSE = 'collapse';\nconst CLASS_NAME_COLLAPSING = 'collapsing';\nconst CLASS_NAME_COLLAPSED = 'collapsed';\nconst CLASS_NAME_DEEPER_CHILDREN = `:scope .${CLASS_NAME_COLLAPSE} .${CLASS_NAME_COLLAPSE}`;\nconst CLASS_NAME_HORIZONTAL = 'collapse-horizontal';\n\nconst WIDTH = 'width';\nconst HEIGHT = 'height';\n\nconst SELECTOR_ACTIVES = '.collapse.show, .collapse.collapsing';\nconst SELECTOR_DATA_TOGGLE = '[data-mdb-collapse-init]';\n\nconst Default = {\n parent: null,\n toggle: true,\n};\n\nconst DefaultType = {\n parent: '(null|element)',\n toggle: 'boolean',\n};\n\n/**\n * Class definition\n */\n\nclass Collapse extends BaseComponent {\n constructor(element, config) {\n super(element, config);\n\n this._isTransitioning = false;\n this._triggerArray = [];\n\n const toggleList = SelectorEngine.find(SELECTOR_DATA_TOGGLE);\n\n for (const elem of toggleList) {\n const selector = SelectorEngine.getSelectorFromElement(elem);\n const filterElement = SelectorEngine.find(selector).filter(\n (foundElement) => foundElement === this._element\n );\n\n if (selector !== null && filterElement.length) {\n this._triggerArray.push(elem);\n }\n }\n\n this._initializeChildren();\n\n if (!this._config.parent) {\n this._addAriaAndCollapsedClass(this._triggerArray, this._isShown());\n }\n\n if (this._config.toggle) {\n this.toggle();\n }\n }\n\n // Getters\n static get Default() {\n return Default;\n }\n\n static get DefaultType() {\n return DefaultType;\n }\n\n static get NAME() {\n return NAME;\n }\n\n // Public\n toggle() {\n if (this._isShown()) {\n this.hide();\n } else {\n this.show();\n }\n }\n\n show() {\n if (this._isTransitioning || this._isShown()) {\n return;\n }\n\n let activeChildren = [];\n\n // find active children\n if (this._config.parent) {\n activeChildren = this._getFirstLevelChildren(SELECTOR_ACTIVES)\n .filter((element) => element !== this._element)\n .map((element) => Collapse.getOrCreateInstance(element, { toggle: false }));\n }\n\n if (activeChildren.length && activeChildren[0]._isTransitioning) {\n return;\n }\n\n const startEvent = EventHandler.trigger(this._element, EVENT_SHOW);\n if (startEvent.defaultPrevented) {\n return;\n }\n\n for (const activeInstance of activeChildren) {\n activeInstance.hide();\n }\n\n const dimension = this._getDimension();\n\n this._element.classList.remove(CLASS_NAME_COLLAPSE);\n this._element.classList.add(CLASS_NAME_COLLAPSING);\n\n this._element.style[dimension] = 0;\n\n this._addAriaAndCollapsedClass(this._triggerArray, true);\n this._isTransitioning = true;\n\n const complete = () => {\n this._isTransitioning = false;\n\n this._element.classList.remove(CLASS_NAME_COLLAPSING);\n this._element.classList.add(CLASS_NAME_COLLAPSE, CLASS_NAME_SHOW);\n\n this._element.style[dimension] = '';\n\n EventHandler.trigger(this._element, EVENT_SHOWN);\n };\n\n const capitalizedDimension = dimension[0].toUpperCase() + dimension.slice(1);\n const scrollSize = `scroll${capitalizedDimension}`;\n\n this._queueCallback(complete, this._element, true);\n this._element.style[dimension] = `${this._element[scrollSize]}px`;\n }\n\n hide() {\n if (this._isTransitioning || !this._isShown()) {\n return;\n }\n\n const startEvent = EventHandler.trigger(this._element, EVENT_HIDE);\n if (startEvent.defaultPrevented) {\n return;\n }\n\n const dimension = this._getDimension();\n\n this._element.style[dimension] = `${this._element.getBoundingClientRect()[dimension]}px`;\n\n reflow(this._element);\n\n this._element.classList.add(CLASS_NAME_COLLAPSING);\n this._element.classList.remove(CLASS_NAME_COLLAPSE, CLASS_NAME_SHOW);\n\n for (const trigger of this._triggerArray) {\n const element = SelectorEngine.getElementFromSelector(trigger);\n\n if (element && !this._isShown(element)) {\n this._addAriaAndCollapsedClass([trigger], false);\n }\n }\n\n this._isTransitioning = true;\n\n const complete = () => {\n this._isTransitioning = false;\n this._element.classList.remove(CLASS_NAME_COLLAPSING);\n this._element.classList.add(CLASS_NAME_COLLAPSE);\n EventHandler.trigger(this._element, EVENT_HIDDEN);\n };\n\n this._element.style[dimension] = '';\n\n this._queueCallback(complete, this._element, true);\n }\n\n _isShown(element = this._element) {\n return element.classList.contains(CLASS_NAME_SHOW);\n }\n\n // Private\n _configAfterMerge(config) {\n config.toggle = Boolean(config.toggle); // Coerce string values\n config.parent = getElement(config.parent);\n return config;\n }\n\n _getDimension() {\n return this._element.classList.contains(CLASS_NAME_HORIZONTAL) ? WIDTH : HEIGHT;\n }\n\n _initializeChildren() {\n if (!this._config.parent) {\n return;\n }\n\n const children = this._getFirstLevelChildren(SELECTOR_DATA_TOGGLE);\n\n for (const element of children) {\n const selected = SelectorEngine.getElementFromSelector(element);\n\n if (selected) {\n this._addAriaAndCollapsedClass([element], this._isShown(selected));\n }\n }\n }\n\n _getFirstLevelChildren(selector) {\n const children = SelectorEngine.find(CLASS_NAME_DEEPER_CHILDREN, this._config.parent);\n // remove children if greater depth\n return SelectorEngine.find(selector, this._config.parent).filter(\n (element) => !children.includes(element)\n );\n }\n\n _addAriaAndCollapsedClass(triggerArray, isOpen) {\n if (!triggerArray.length) {\n return;\n }\n\n for (const element of triggerArray) {\n element.classList.toggle(CLASS_NAME_COLLAPSED, !isOpen);\n element.setAttribute('aria-expanded', isOpen);\n }\n }\n\n // Static\n static jQueryInterface(config) {\n const _config = {};\n if (typeof config === 'string' && /show|hide/.test(config)) {\n _config.toggle = false;\n }\n\n return this.each(function () {\n const data = Collapse.getOrCreateInstance(this, _config);\n\n if (typeof config === 'string') {\n if (typeof data[config] === 'undefined') {\n throw new TypeError(`No method named \"${config}\"`);\n }\n\n data[config]();\n }\n });\n }\n}\n\n/**\n * Data API implementation\n */\n\n// EventHandler.on(document, EVENT_CLICK_DATA_API, SELECTOR_DATA_TOGGLE, function (event) {\n// // preventDefault only for elements (which change the URL) not inside the collapsible element\n// if (event.target.tagName === 'A' || (event.delegateTarget && event.delegateTarget.tagName === 'A')) {\n// event.preventDefault()\n// }\n\n// for (const element of SelectorEngine.getMultipleElementsFromSelector(this)) {\n// Collapse.getOrCreateInstance(element, { toggle: false }).toggle()\n// }\n// })\n\n/**\n * jQuery\n */\n\n// defineJQueryPlugin(Collapse)\n\nexport default Collapse;\n","import EventHandler from '../mdb/dom/event-handler';\nimport BSCollapse from '../bootstrap/mdb-prefix/collapse';\nimport Manipulator from '../mdb/dom/manipulator';\nimport { bindCallbackEventsIfNeeded } from '../autoinit/init';\n\n/**\n * ------------------------------------------------------------------------\n * Constants\n * ------------------------------------------------------------------------\n */\n\nconst NAME = 'collapse';\n\nconst EVENT_SHOW_BS = 'show.bs.collapse';\nconst EVENT_SHOWN_BS = 'shown.bs.collapse';\nconst EVENT_HIDE_BS = 'hide.bs.collapse';\nconst EVENT_HIDDEN_BS = 'hidden.bs.collapse';\n\nconst EXTENDED_EVENTS = [{ name: 'show' }, { name: 'shown' }, { name: 'hide' }, { name: 'hidden' }];\n\nclass Collapse extends BSCollapse {\n constructor(element, data = {}) {\n super(element, data);\n\n this._init();\n Manipulator.setDataAttribute(this._element, `${this.constructor.NAME}-initialized`, true);\n bindCallbackEventsIfNeeded(this.constructor);\n }\n\n dispose() {\n EventHandler.off(this._element, EVENT_SHOW_BS);\n EventHandler.off(this._element, EVENT_SHOWN_BS);\n EventHandler.off(this._element, EVENT_HIDE_BS);\n EventHandler.off(this._element, EVENT_HIDDEN_BS);\n Manipulator.removeDataAttribute(this._element, `${this.constructor.NAME}-initialized`);\n\n super.dispose();\n }\n\n // Getters\n static get NAME() {\n return NAME;\n }\n\n // Private\n _init() {\n this._bindMdbEvents();\n }\n\n _bindMdbEvents() {\n EventHandler.extend(this._element, EXTENDED_EVENTS, NAME);\n }\n}\n\nexport default Collapse;\n","/**\n * --------------------------------------------------------------------------\n * Bootstrap dropdown.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nimport * as Popper from '@popperjs/core';\nimport BaseComponent from './base-component.js';\nimport EventHandler from './dom/event-handler.js';\nimport Manipulator from './dom/manipulator.js';\nimport SelectorEngine from './dom/selector-engine.js';\nimport {\n defineJQueryPlugin,\n execute,\n getElement,\n getNextActiveElement,\n isDisabled,\n isElement,\n isRTL,\n isVisible,\n noop,\n} from './util/index.js';\n\n/**\n * Constants\n */\n\nconst NAME = 'dropdown';\nconst DATA_KEY = 'bs.dropdown';\nconst EVENT_KEY = `.${DATA_KEY}`;\nconst DATA_API_KEY = '.data-api';\n\nconst ESCAPE_KEY = 'Escape';\nconst TAB_KEY = 'Tab';\nconst ARROW_UP_KEY = 'ArrowUp';\nconst ARROW_DOWN_KEY = 'ArrowDown';\nconst RIGHT_MOUSE_BUTTON = 2; // MouseEvent.button value for the secondary button, usually the right button\n\nconst EVENT_HIDE = `hide${EVENT_KEY}`;\nconst EVENT_HIDDEN = `hidden${EVENT_KEY}`;\nconst EVENT_SHOW = `show${EVENT_KEY}`;\nconst EVENT_SHOWN = `shown${EVENT_KEY}`;\nconst EVENT_CLICK_DATA_API = `click${EVENT_KEY}${DATA_API_KEY}`;\nconst EVENT_KEYDOWN_DATA_API = `keydown${EVENT_KEY}${DATA_API_KEY}`;\nconst EVENT_KEYUP_DATA_API = `keyup${EVENT_KEY}${DATA_API_KEY}`;\n\nconst CLASS_NAME_SHOW = 'show';\nconst CLASS_NAME_DROPUP = 'dropup';\nconst CLASS_NAME_DROPEND = 'dropend';\nconst CLASS_NAME_DROPSTART = 'dropstart';\nconst CLASS_NAME_DROPUP_CENTER = 'dropup-center';\nconst CLASS_NAME_DROPDOWN_CENTER = 'dropdown-center';\n\nconst SELECTOR_DATA_TOGGLE = '[data-mdb-dropdown-initialized]:not(.disabled):not(:disabled)';\nconst SELECTOR_DATA_TOGGLE_SHOWN = `${SELECTOR_DATA_TOGGLE}.${CLASS_NAME_SHOW}`;\nconst SELECTOR_MENU = '.dropdown-menu';\nconst SELECTOR_NAVBAR = '.navbar';\nconst SELECTOR_NAVBAR_NAV = '.navbar-nav';\nconst SELECTOR_VISIBLE_ITEMS = '.dropdown-menu .dropdown-item:not(.disabled):not(:disabled)';\n\nconst PLACEMENT_TOP = isRTL() ? 'top-end' : 'top-start';\nconst PLACEMENT_TOPEND = isRTL() ? 'top-start' : 'top-end';\nconst PLACEMENT_BOTTOM = isRTL() ? 'bottom-end' : 'bottom-start';\nconst PLACEMENT_BOTTOMEND = isRTL() ? 'bottom-start' : 'bottom-end';\nconst PLACEMENT_RIGHT = isRTL() ? 'left-start' : 'right-start';\nconst PLACEMENT_LEFT = isRTL() ? 'right-start' : 'left-start';\nconst PLACEMENT_TOPCENTER = 'top';\nconst PLACEMENT_BOTTOMCENTER = 'bottom';\n\nconst Default = {\n autoClose: true,\n boundary: 'clippingParents',\n display: 'dynamic',\n offset: [0, 2],\n popperConfig: null,\n reference: 'toggle',\n};\n\nconst DefaultType = {\n autoClose: '(boolean|string)',\n boundary: '(string|element)',\n display: 'string',\n offset: '(array|string|function)',\n popperConfig: '(null|object|function)',\n reference: '(string|element|object)',\n};\n\n/**\n * Class definition\n */\n\nclass Dropdown extends BaseComponent {\n constructor(element, config) {\n super(element, config);\n\n this._popper = null;\n this._parent = this._element.parentNode; // dropdown wrapper\n // TODO: v6 revert #37011 & change markup https://getbootstrap.com/docs/5.3/forms/input-group/\n this._menu =\n SelectorEngine.next(this._element, SELECTOR_MENU)[0] ||\n SelectorEngine.prev(this._element, SELECTOR_MENU)[0] ||\n SelectorEngine.findOne(SELECTOR_MENU, this._parent);\n this._inNavbar = this._detectNavbar();\n }\n\n // Getters\n static get Default() {\n return Default;\n }\n\n static get DefaultType() {\n return DefaultType;\n }\n\n static get NAME() {\n return NAME;\n }\n\n // Public\n toggle() {\n return this._isShown() ? this.hide() : this.show();\n }\n\n show() {\n if (isDisabled(this._element) || this._isShown()) {\n return;\n }\n\n const relatedTarget = {\n relatedTarget: this._element,\n };\n\n const showEvent = EventHandler.trigger(this._element, EVENT_SHOW, relatedTarget);\n\n if (showEvent.defaultPrevented) {\n return;\n }\n\n this._createPopper();\n\n // If this is a touch-enabled device we add extra\n // empty mouseover listeners to the body's immediate children;\n // only needed because of broken event delegation on iOS\n // https://www.quirksmode.org/blog/archives/2014/02/mouse_event_bub.html\n if ('ontouchstart' in document.documentElement && !this._parent.closest(SELECTOR_NAVBAR_NAV)) {\n for (const element of [].concat(...document.body.children)) {\n EventHandler.on(element, 'mouseover', noop);\n }\n }\n\n this._element.focus();\n this._element.setAttribute('aria-expanded', true);\n\n this._menu.classList.add(CLASS_NAME_SHOW);\n this._element.classList.add(CLASS_NAME_SHOW);\n EventHandler.trigger(this._element, EVENT_SHOWN, relatedTarget);\n }\n\n hide() {\n if (isDisabled(this._element) || !this._isShown()) {\n return;\n }\n\n const relatedTarget = {\n relatedTarget: this._element,\n };\n\n this._completeHide(relatedTarget);\n }\n\n dispose() {\n if (this._popper) {\n this._popper.destroy();\n }\n\n super.dispose();\n }\n\n update() {\n this._inNavbar = this._detectNavbar();\n if (this._popper) {\n this._popper.update();\n }\n }\n\n // Private\n _completeHide(relatedTarget) {\n const hideEvent = EventHandler.trigger(this._element, EVENT_HIDE, relatedTarget);\n if (hideEvent.defaultPrevented) {\n return;\n }\n\n // If this is a touch-enabled device we remove the extra\n // empty mouseover listeners we added for iOS support\n if ('ontouchstart' in document.documentElement) {\n for (const element of [].concat(...document.body.children)) {\n EventHandler.off(element, 'mouseover', noop);\n }\n }\n\n if (this._popper) {\n this._popper.destroy();\n }\n\n this._menu.classList.remove(CLASS_NAME_SHOW);\n this._element.classList.remove(CLASS_NAME_SHOW);\n this._element.setAttribute('aria-expanded', 'false');\n Manipulator.removeDataAttribute(this._menu, 'popper');\n EventHandler.trigger(this._element, EVENT_HIDDEN, relatedTarget);\n }\n\n _getConfig(config) {\n config = super._getConfig(config);\n\n if (\n typeof config.reference === 'object' &&\n !isElement(config.reference) &&\n typeof config.reference.getBoundingClientRect !== 'function'\n ) {\n // Popper virtual elements require a getBoundingClientRect method\n throw new TypeError(\n `${NAME.toUpperCase()}: Option \"reference\" provided type \"object\" without a required \"getBoundingClientRect\" method.`\n );\n }\n\n return config;\n }\n\n _createPopper() {\n if (typeof Popper === 'undefined') {\n throw new TypeError(\"Bootstrap's dropdowns require Popper (https://popper.js.org)\");\n }\n\n let referenceElement = this._element;\n\n if (this._config.reference === 'parent') {\n referenceElement = this._parent;\n } else if (isElement(this._config.reference)) {\n referenceElement = getElement(this._config.reference);\n } else if (typeof this._config.reference === 'object') {\n referenceElement = this._config.reference;\n }\n\n const popperConfig = this._getPopperConfig();\n this._popper = Popper.createPopper(referenceElement, this._menu, popperConfig);\n }\n\n _isShown() {\n return this._menu.classList.contains(CLASS_NAME_SHOW);\n }\n\n _getPlacement() {\n const parentDropdown = this._parent;\n\n if (parentDropdown.classList.contains(CLASS_NAME_DROPEND)) {\n return PLACEMENT_RIGHT;\n }\n\n if (parentDropdown.classList.contains(CLASS_NAME_DROPSTART)) {\n return PLACEMENT_LEFT;\n }\n\n if (parentDropdown.classList.contains(CLASS_NAME_DROPUP_CENTER)) {\n return PLACEMENT_TOPCENTER;\n }\n\n if (parentDropdown.classList.contains(CLASS_NAME_DROPDOWN_CENTER)) {\n return PLACEMENT_BOTTOMCENTER;\n }\n\n // We need to trim the value because custom properties can also include spaces\n const isEnd = getComputedStyle(this._menu).getPropertyValue('--mdb-position').trim() === 'end';\n\n if (parentDropdown.classList.contains(CLASS_NAME_DROPUP)) {\n return isEnd ? PLACEMENT_TOPEND : PLACEMENT_TOP;\n }\n\n return isEnd ? PLACEMENT_BOTTOMEND : PLACEMENT_BOTTOM;\n }\n\n _detectNavbar() {\n return this._element.closest(SELECTOR_NAVBAR) !== null;\n }\n\n _getOffset() {\n const { offset } = this._config;\n\n if (typeof offset === 'string') {\n return offset.split(',').map((value) => Number.parseInt(value, 10));\n }\n\n if (typeof offset === 'function') {\n return (popperData) => offset(popperData, this._element);\n }\n\n return offset;\n }\n\n _getPopperConfig() {\n const defaultBsPopperConfig = {\n placement: this._getPlacement(),\n modifiers: [\n {\n name: 'preventOverflow',\n options: {\n boundary: this._config.boundary,\n },\n },\n {\n name: 'offset',\n options: {\n offset: this._getOffset(),\n },\n },\n ],\n };\n\n // Disable Popper if we have a static display or Dropdown is in Navbar\n if (this._inNavbar || this._config.display === 'static') {\n Manipulator.setDataAttribute(this._menu, 'popper', 'static'); // TODO: v6 remove\n defaultBsPopperConfig.modifiers = [\n {\n name: 'applyStyles',\n enabled: false,\n },\n ];\n }\n\n return {\n ...defaultBsPopperConfig,\n ...execute(this._config.popperConfig, [defaultBsPopperConfig]),\n };\n }\n\n _selectMenuItem({ key, target }) {\n const items = SelectorEngine.find(SELECTOR_VISIBLE_ITEMS, this._menu).filter((element) =>\n isVisible(element)\n );\n\n if (!items.length) {\n return;\n }\n\n // if target isn't included in items (e.g. when expanding the dropdown)\n // allow cycling to get the last item in case key equals ARROW_UP_KEY\n getNextActiveElement(items, target, key === ARROW_DOWN_KEY, !items.includes(target)).focus();\n }\n\n // Static\n static jQueryInterface(config) {\n return this.each(function () {\n const data = Dropdown.getOrCreateInstance(this, config);\n\n if (typeof config !== 'string') {\n return;\n }\n\n if (typeof data[config] === 'undefined') {\n throw new TypeError(`No method named \"${config}\"`);\n }\n\n data[config]();\n });\n }\n\n static clearMenus(event) {\n if (event.button === RIGHT_MOUSE_BUTTON || (event.type === 'keyup' && event.key !== TAB_KEY)) {\n return;\n }\n\n const openToggles = SelectorEngine.find(SELECTOR_DATA_TOGGLE_SHOWN);\n\n for (const toggle of openToggles) {\n const context = Dropdown.getInstance(toggle);\n if (!context || context._config.autoClose === false) {\n continue;\n }\n\n const composedPath = event.composedPath();\n const isMenuTarget = composedPath.includes(context._menu);\n if (\n composedPath.includes(context._element) ||\n (context._config.autoClose === 'inside' && !isMenuTarget) ||\n (context._config.autoClose === 'outside' && isMenuTarget)\n ) {\n continue;\n }\n\n // Tab navigation through the dropdown menu or events from contained inputs shouldn't close the menu\n if (\n context._menu.contains(event.target) &&\n ((event.type === 'keyup' && event.key === TAB_KEY) ||\n /input|select|option|textarea|form/i.test(event.target.tagName))\n ) {\n continue;\n }\n\n const relatedTarget = { relatedTarget: context._element };\n\n if (event.type === 'click') {\n relatedTarget.clickEvent = event;\n }\n\n context._completeHide(relatedTarget);\n }\n }\n\n static dataApiKeydownHandler(event) {\n // If not an UP | DOWN | ESCAPE key => not a dropdown command\n // If input/textarea && if key is other than ESCAPE => not a dropdown command\n\n const isInput = /input|textarea/i.test(event.target.tagName);\n const isEscapeEvent = event.key === ESCAPE_KEY;\n const isUpOrDownEvent = [ARROW_UP_KEY, ARROW_DOWN_KEY].includes(event.key);\n\n if (!isUpOrDownEvent && !isEscapeEvent) {\n return;\n }\n\n if (isInput && !isEscapeEvent) {\n return;\n }\n\n event.preventDefault();\n\n // TODO: v6 revert #37011 & change markup https://getbootstrap.com/docs/5.3/forms/input-group/\n const getToggleButton = this.matches(SELECTOR_DATA_TOGGLE)\n ? this\n : SelectorEngine.prev(this, SELECTOR_DATA_TOGGLE)[0] ||\n SelectorEngine.next(this, SELECTOR_DATA_TOGGLE)[0] ||\n SelectorEngine.findOne(SELECTOR_DATA_TOGGLE, event.delegateTarget.parentNode);\n\n const instance = Dropdown.getOrCreateInstance(getToggleButton);\n\n if (isUpOrDownEvent) {\n event.stopPropagation();\n instance.show();\n instance._selectMenuItem(event);\n return;\n }\n\n if (instance._isShown()) {\n // else is escape and we check if it is shown\n event.stopPropagation();\n instance.hide();\n getToggleButton.focus();\n }\n }\n}\n\n/**\n * Data API implementation\n */\n\n// EventHandler.on(document, EVENT_KEYDOWN_DATA_API, SELECTOR_DATA_TOGGLE, Dropdown.dataApiKeydownHandler)\n// EventHandler.on(document, EVENT_KEYDOWN_DATA_API, SELECTOR_MENU, Dropdown.dataApiKeydownHandler)\n// EventHandler.on(document, EVENT_CLICK_DATA_API, Dropdown.clearMenus)\n// EventHandler.on(document, EVENT_KEYUP_DATA_API, Dropdown.clearMenus)\n// EventHandler.on(document, EVENT_CLICK_DATA_API, SELECTOR_DATA_TOGGLE, function (event) {\n// event.preventDefault()\n// Dropdown.getOrCreateInstance(this).toggle()\n// })\n\n/**\n * jQuery\n */\n\n// defineJQueryPlugin(Dropdown)\n\nexport default Dropdown;\n","import { typeCheckConfig } from '../mdb/util/index';\nimport EventHandler from '../mdb/dom/event-handler';\nimport Manipulator from '../mdb/dom/manipulator';\nimport BSDropdown from '../bootstrap/mdb-prefix/dropdown';\nimport { bindCallbackEventsIfNeeded } from '../autoinit/init';\n\n/**\n * ------------------------------------------------------------------------\n * Constants\n * ------------------------------------------------------------------------\n */\n\nconst NAME = 'dropdown';\nconst DATA_KEY = `mdb.${NAME}`;\nconst EVENT_KEY = `.${DATA_KEY}`;\n\nconst Default = {\n offset: [0, 2],\n flip: true,\n boundary: 'clippingParents',\n reference: 'toggle',\n display: 'dynamic',\n popperConfig: null,\n dropdownAnimation: 'on',\n};\n\nconst DefaultType = {\n offset: '(array|string|function)',\n flip: 'boolean',\n boundary: '(string|element)',\n reference: '(string|element|object)',\n display: 'string',\n popperConfig: '(null|object|function)',\n dropdownAnimation: 'string',\n};\n\nconst EVENT_HIDE = 'hide.bs.dropdown';\nconst EVENT_HIDDEN = 'hidden.bs.dropdown';\nconst EVENT_SHOW = 'show.bs.dropdown';\nconst EVENT_SHOWN = 'shown.bs.dropdown';\n\nconst EVENT_HIDE_MDB = `hide${EVENT_KEY}`;\nconst EVENT_HIDDEN_MDB = `hidden${EVENT_KEY}`;\nconst EVENT_SHOW_MDB = `show${EVENT_KEY}`;\nconst EVENT_SHOWN_MDB = `shown${EVENT_KEY}`;\n\nconst ANIMATION_CLASS = 'animation';\nconst ANIMATION_SHOW_CLASS = 'fade-in';\nconst ANIMATION_HIDE_CLASS = 'fade-out';\n\nclass Dropdown extends BSDropdown {\n constructor(element, data) {\n super(element, data);\n this._config = this._getConfig(data);\n this._menuStyle = '';\n this._popperPlacement = '';\n this._mdbPopperConfig = '';\n\n //* prevents dropdown close issue when system animation is turned off\n const isPrefersReducedMotionSet = window.matchMedia('(prefers-reduced-motion: reduce)').matches;\n\n if (this._config.dropdownAnimation === 'on' && !isPrefersReducedMotionSet) {\n this._init();\n }\n Manipulator.setDataAttribute(this._element, `${this.constructor.NAME}-initialized`, true);\n bindCallbackEventsIfNeeded(this.constructor);\n }\n\n dispose() {\n EventHandler.off(this._element, EVENT_SHOW);\n EventHandler.off(this._parent, EVENT_SHOWN);\n EventHandler.off(this._parent, EVENT_HIDE);\n EventHandler.off(this._parent, EVENT_HIDDEN);\n\n Manipulator.removeDataAttribute(this._element, `${this.constructor.NAME}-initialized`);\n\n super.dispose();\n }\n\n // Getters\n static get NAME() {\n return NAME;\n }\n\n // Private\n _init() {\n this._bindShowEvent();\n this._bindShownEvent();\n this._bindHideEvent();\n this._bindHiddenEvent();\n }\n\n _getConfig(options) {\n const config = {\n ...Default,\n ...Manipulator.getDataAttributes(this._element),\n ...options,\n };\n typeCheckConfig(NAME, config, DefaultType);\n return config;\n }\n\n _getOffset() {\n const { offset } = this._config;\n\n if (typeof offset === 'string') {\n return offset.split(',').map((val) => Number.parseInt(val, 10));\n }\n\n if (typeof offset === 'function') {\n return (popperData) => offset(popperData, this._element);\n }\n\n return offset;\n }\n\n _getPopperConfig() {\n const popperConfig = {\n placement: this._getPlacement(),\n modifiers: [\n {\n name: 'preventOverflow',\n options: {\n altBoundary: this._config.flip,\n boundary: this._config.boundary,\n },\n },\n {\n name: 'offset',\n options: {\n offset: this._getOffset(),\n },\n },\n ],\n };\n\n // Disable Popper if we have a static display\n if (this._config.display === 'static') {\n Manipulator.setDataAttribute(this._menu, 'popper', 'static');\n popperConfig.modifiers = [\n {\n name: 'applyStyles',\n enabled: false,\n },\n ];\n }\n\n return {\n ...popperConfig,\n /* eslint no-extra-parens: \"off\" */\n ...(typeof this._config.popperConfig === 'function'\n ? this._config.popperConfig(popperConfig)\n : this._config.popperConfig),\n };\n }\n\n _bindShowEvent() {\n EventHandler.on(this._element, EVENT_SHOW, (e) => {\n const showEvent = EventHandler.trigger(this._element, EVENT_SHOW_MDB, {\n relatedTarget: e.relatedTarget,\n });\n\n if (showEvent.defaultPrevented) {\n e.preventDefault();\n return;\n }\n\n this._dropdownAnimationStart('show');\n });\n }\n\n _bindShownEvent() {\n EventHandler.on(this._parent, EVENT_SHOWN, (e) => {\n const shownEvent = EventHandler.trigger(this._parent, EVENT_SHOWN_MDB, {\n relatedTarget: e.relatedTarget,\n });\n\n if (shownEvent.defaultPrevented) {\n e.preventDefault();\n return;\n }\n });\n }\n\n _bindHideEvent() {\n EventHandler.on(this._parent, EVENT_HIDE, (e) => {\n const hideEvent = EventHandler.trigger(this._parent, EVENT_HIDE_MDB, {\n relatedTarget: e.relatedTarget,\n });\n\n if (hideEvent.defaultPrevented) {\n e.preventDefault();\n return;\n }\n\n this._menuStyle = this._menu.style.cssText;\n this._popperPlacement = this._menu.getAttribute('data-popper-placement');\n this._mdbPopperConfig = this._menu.getAttribute('data-mdb-popper');\n });\n }\n\n _bindHiddenEvent() {\n EventHandler.on(this._parent, EVENT_HIDDEN, (e) => {\n const hiddenEvent = EventHandler.trigger(this._parent, EVENT_HIDDEN_MDB, {\n relatedTarget: e.relatedTarget,\n });\n\n if (hiddenEvent.defaultPrevented) {\n e.preventDefault();\n return;\n }\n\n if (this._config.display !== 'static' && this._menuStyle !== '') {\n this._menu.style.cssText = this._menuStyle;\n }\n\n this._menu.setAttribute('data-popper-placement', this._popperPlacement);\n this._menu.setAttribute('data-mdb-popper', this._mdbPopperConfig);\n\n this._dropdownAnimationStart('hide');\n });\n }\n\n _dropdownAnimationStart(action) {\n switch (action) {\n case 'show':\n this._menu.classList.add(ANIMATION_CLASS, ANIMATION_SHOW_CLASS);\n this._menu.classList.remove(ANIMATION_HIDE_CLASS);\n break;\n default:\n // hide\n this._menu.classList.add(ANIMATION_CLASS, ANIMATION_HIDE_CLASS);\n this._menu.classList.remove(ANIMATION_SHOW_CLASS);\n break;\n }\n\n this._bindAnimationEnd();\n }\n\n _bindAnimationEnd() {\n EventHandler.one(this._menu, 'animationend', () => {\n this._menu.classList.remove(ANIMATION_CLASS, ANIMATION_HIDE_CLASS, ANIMATION_SHOW_CLASS);\n });\n }\n}\n\nexport default Dropdown;\n","import { element, typeCheckConfig } from '../mdb/util/index';\nimport Data from '../mdb/dom/data';\nimport EventHandler from '../mdb/dom/event-handler';\nimport Manipulator from '../mdb/dom/manipulator';\nimport SelectorEngine from '../mdb/dom/selector-engine';\nimport BaseComponent from './base-component';\nimport { bindCallbackEventsIfNeeded } from '../autoinit/init';\n\n/**\n * ------------------------------------------------------------------------\n * Constants\n * ------------------------------------------------------------------------\n */\n\nconst NAME = 'ripple';\nconst DATA_KEY = 'mdb.ripple';\nconst CLASSNAME_RIPPLE = 'ripple-surface';\nconst CLASSNAME_RIPPLE_WAVE = 'ripple-wave';\nconst CLASSNAME_RIPPLE_WRAPPER = 'input-wrapper';\nconst SELECTOR_BTN = '.btn';\nconst SELECTOR_COMPONENT = [SELECTOR_BTN, `[data-mdb-${NAME}-init]`];\n\nconst CLASSNAME_UNBOUND = 'ripple-surface-unbound';\nconst GRADIENT =\n 'rgba({{color}}, 0.2) 0, rgba({{color}}, 0.3) 40%, rgba({{color}}, 0.4) 50%, rgba({{color}}, 0.5) 60%, rgba({{color}}, 0) 70%';\nconst DEFAULT_RIPPLE_COLOR = [0, 0, 0];\nconst BOOTSTRAP_COLORS = [\n 'primary',\n 'secondary',\n 'success',\n 'danger',\n 'warning',\n 'info',\n 'light',\n 'dark',\n];\n\n// Sets value when run opacity transition\n// Hide element after 50% (0.5) time of animation and finish on 100%\nconst TRANSITION_BREAK_OPACITY = 0.5;\n\nconst Default = {\n rippleCentered: false,\n rippleColor: '',\n rippleDuration: '500ms',\n rippleRadius: 0,\n rippleUnbound: false,\n};\n\nconst DefaultType = {\n rippleCentered: 'boolean',\n rippleColor: 'string',\n rippleDuration: 'string',\n rippleRadius: 'number',\n rippleUnbound: 'boolean',\n};\n\n/**\n * ------------------------------------------------------------------------\n * Class Definition\n * ------------------------------------------------------------------------\n */\n\nclass Ripple extends BaseComponent {\n constructor(element, options) {\n super(element);\n this._options = this._getConfig(options);\n\n if (this._element) {\n Manipulator.addClass(this._element, CLASSNAME_RIPPLE);\n Manipulator.setDataAttribute(this._element, `${this.constructor.NAME}-initialized`, true);\n bindCallbackEventsIfNeeded(this.constructor);\n }\n\n this._clickHandler = this._createRipple.bind(this);\n this._rippleTimer = null;\n this._isMinWidthSet = false;\n this._rippleInSpan = false;\n\n this.init();\n }\n\n // Getters\n\n static get NAME() {\n return NAME;\n }\n\n // Public\n\n init() {\n this._addClickEvent(this._element);\n }\n\n dispose() {\n EventHandler.off(this._element, 'mousedown', this._clickHandler);\n Manipulator.removeDataAttribute(this._element, `${this.constructor.NAME}-initialized`);\n\n super.dispose();\n }\n\n // Private\n\n _autoInit(event) {\n SELECTOR_COMPONENT.forEach((selector) => {\n const target = SelectorEngine.closest(event.target, selector);\n if (target) {\n this._element = SelectorEngine.closest(event.target, selector);\n }\n });\n\n const dataAttributes = Manipulator.getDataAttributes(this._element);\n if (this._element.classList.contains('btn') && dataAttributes.rippleInit === false) {\n return;\n }\n\n this._options = this._getConfig();\n\n if (this._element.tagName.toLowerCase() === 'input') {\n const parent = this._element.parentNode;\n\n this._rippleInSpan = true;\n\n if (parent.tagName.toLowerCase() === 'span' && parent.classList.contains(CLASSNAME_RIPPLE)) {\n this._element = parent;\n } else {\n const shadow = getComputedStyle(this._element).boxShadow;\n const btn = this._element;\n const wrapper = document.createElement('span');\n\n if (btn.classList.contains('btn-block')) {\n wrapper.style.display = 'block';\n }\n\n EventHandler.one(wrapper, 'mouseup', (e) => {\n // prevent submit on click other than LMB, ripple still triggered, but submit is blocked\n if (e.button === 0) {\n btn.click();\n }\n });\n\n wrapper.classList.add(CLASSNAME_RIPPLE, CLASSNAME_RIPPLE_WRAPPER);\n\n Manipulator.addStyle(wrapper, {\n border: 0,\n 'box-shadow': shadow,\n });\n\n // Put element as child\n parent.replaceChild(wrapper, this._element);\n wrapper.appendChild(this._element);\n this._element = wrapper;\n }\n this._element.focus();\n }\n\n if (!this._element.style.minWidth) {\n Manipulator.style(this._element, { 'min-width': `${getComputedStyle(this._element).width}` });\n this._isMinWidthSet = true;\n }\n\n Manipulator.addClass(this._element, CLASSNAME_RIPPLE);\n this._createRipple(event);\n }\n\n _addClickEvent(target) {\n EventHandler.on(target, 'mousedown', this._clickHandler);\n }\n\n _getEventLayer(event) {\n const x = Math.round(event.clientX - event.target.getBoundingClientRect().x);\n const y = Math.round(event.clientY - event.target.getBoundingClientRect().y);\n return { layerX: x, layerY: y };\n }\n\n _createRipple(event) {\n if (this._element === null) {\n return;\n }\n\n if (!Manipulator.hasClass(this._element, CLASSNAME_RIPPLE)) {\n Manipulator.addClass(this._element, CLASSNAME_RIPPLE);\n }\n\n const { layerX, layerY } = this._getEventLayer(event);\n const offsetX = layerX;\n const offsetY = layerY;\n const height = this._element.offsetHeight;\n const width = this._element.offsetWidth;\n const duration = this._durationToMsNumber(this._options.rippleDuration);\n const diameterOptions = {\n offsetX: this._options.rippleCentered ? height / 2 : offsetX,\n offsetY: this._options.rippleCentered ? width / 2 : offsetY,\n height,\n width,\n };\n const diameter = this._getDiameter(diameterOptions);\n const radiusValue = this._options.rippleRadius || diameter / 2;\n\n const opacity = {\n delay: duration * TRANSITION_BREAK_OPACITY,\n duration: duration - duration * TRANSITION_BREAK_OPACITY,\n };\n\n const styles = {\n left: this._options.rippleCentered\n ? `${width / 2 - radiusValue}px`\n : `${offsetX - radiusValue}px`,\n top: this._options.rippleCentered\n ? `${height / 2 - radiusValue}px`\n : `${offsetY - radiusValue}px`,\n height: `${this._options.rippleRadius * 2 || diameter}px`,\n width: `${this._options.rippleRadius * 2 || diameter}px`,\n transitionDelay: `0s, ${opacity.delay}ms`,\n transitionDuration: `${duration}ms, ${opacity.duration}ms`,\n };\n\n const rippleHTML = element('div');\n\n this._createHTMLRipple({ wrapper: this._element, ripple: rippleHTML, styles });\n this._removeHTMLRipple({ ripple: rippleHTML, duration });\n }\n\n _createHTMLRipple({ wrapper, ripple, styles }) {\n Object.keys(styles).forEach((property) => (ripple.style[property] = styles[property]));\n ripple.classList.add(CLASSNAME_RIPPLE_WAVE);\n if (this._options.rippleColor !== '') {\n this._removeOldColorClasses(wrapper);\n this._addColor(ripple, wrapper);\n }\n\n this._toggleUnbound(wrapper);\n this._appendRipple(ripple, wrapper);\n }\n\n _removeHTMLRipple({ ripple, duration }) {\n if (this._rippleTimer) {\n clearTimeout(this._rippleTimer);\n this._rippleTimer = null;\n }\n this._rippleTimer = setTimeout(() => {\n if (ripple) {\n ripple.remove();\n if (this._element) {\n SelectorEngine.find(`.${CLASSNAME_RIPPLE_WAVE}`, this._element).forEach((rippleEl) => {\n rippleEl.remove();\n });\n if (this._isMinWidthSet) {\n Manipulator.style(this._element, { 'min-width': '' });\n this._isMinWidthSet = false;\n }\n if (this._rippleInSpan && this._element.classList.contains(CLASSNAME_RIPPLE_WRAPPER)) {\n this._removeWrapperSpan();\n } else {\n Manipulator.removeClass(this._element, CLASSNAME_RIPPLE);\n }\n }\n }\n }, duration);\n }\n\n _removeWrapperSpan() {\n const child = this._element.firstChild;\n\n this._element.replaceWith(child);\n this._element = child;\n this._element.focus();\n this._rippleInSpan = false;\n }\n\n _durationToMsNumber(time) {\n return Number(time.replace('ms', '').replace('s', '000'));\n }\n\n _getConfig(config = {}) {\n const dataAttributes = Manipulator.getDataAttributes(this._element);\n\n config = {\n ...Default,\n ...dataAttributes,\n ...config,\n };\n\n typeCheckConfig(NAME, config, DefaultType);\n return config;\n }\n\n _getDiameter({ offsetX, offsetY, height, width }) {\n const top = offsetY <= height / 2;\n const left = offsetX <= width / 2;\n const pythagorean = (sideA, sideB) => Math.sqrt(sideA ** 2 + sideB ** 2);\n\n const positionCenter = offsetY === height / 2 && offsetX === width / 2;\n // mouse position on the quadrants of the coordinate system\n const quadrant = {\n first: top === true && left === false,\n second: top === true && left === true,\n third: top === false && left === true,\n fourth: top === false && left === false,\n };\n\n const getCorner = {\n topLeft: pythagorean(offsetX, offsetY),\n topRight: pythagorean(width - offsetX, offsetY),\n bottomLeft: pythagorean(offsetX, height - offsetY),\n bottomRight: pythagorean(width - offsetX, height - offsetY),\n };\n\n let diameter = 0;\n\n if (positionCenter || quadrant.fourth) {\n diameter = getCorner.topLeft;\n } else if (quadrant.third) {\n diameter = getCorner.topRight;\n } else if (quadrant.second) {\n diameter = getCorner.bottomRight;\n } else if (quadrant.first) {\n diameter = getCorner.bottomLeft;\n }\n return diameter * 2;\n }\n\n _appendRipple(target, parent) {\n const FIX_ADD_RIPPLE_EFFECT = 50; // delay for active animations\n parent.appendChild(target);\n setTimeout(() => {\n Manipulator.addClass(target, 'active');\n }, FIX_ADD_RIPPLE_EFFECT);\n }\n\n _toggleUnbound(target) {\n if (this._options.rippleUnbound === true) {\n Manipulator.addClass(target, CLASSNAME_UNBOUND);\n } else {\n target.classList.remove(CLASSNAME_UNBOUND);\n }\n }\n\n _addColor(target, parent) {\n const IS_BOOTSTRAP_COLOR = BOOTSTRAP_COLORS.find(\n (color) => color === this._options.rippleColor.toLowerCase()\n );\n\n if (IS_BOOTSTRAP_COLOR) {\n Manipulator.addClass(\n parent,\n `${CLASSNAME_RIPPLE}-${this._options.rippleColor.toLowerCase()}`\n );\n } else {\n const rgbValue = this._colorToRGB(this._options.rippleColor).join(',');\n const gradientImage = GRADIENT.split('{{color}}').join(`${rgbValue}`);\n target.style.backgroundImage = `radial-gradient(circle, ${gradientImage})`;\n }\n }\n\n _removeOldColorClasses(target) {\n const REGEXP_CLASS_COLOR = new RegExp(`${CLASSNAME_RIPPLE}-[a-z]+`, 'gi');\n const PARENT_CLASSS_COLOR = target.classList.value.match(REGEXP_CLASS_COLOR) || [];\n PARENT_CLASSS_COLOR.forEach((className) => {\n target.classList.remove(className);\n });\n }\n\n _colorToRGB(color) {\n function hexToRgb(color) {\n const HEX_COLOR_LENGTH = 7;\n const IS_SHORT_HEX = color.length < HEX_COLOR_LENGTH;\n if (IS_SHORT_HEX) {\n color = `#${color[1]}${color[1]}${color[2]}${color[2]}${color[3]}${color[3]}`;\n }\n return [\n parseInt(color.substr(1, 2), 16),\n parseInt(color.substr(3, 2), 16),\n parseInt(color.substr(5, 2), 16),\n ];\n }\n\n function namedColorsToRgba(color) {\n const tempElem = document.body.appendChild(document.createElement('fictum'));\n const flag = 'rgb(1, 2, 3)';\n tempElem.style.color = flag;\n if (tempElem.style.color !== flag) {\n return DEFAULT_RIPPLE_COLOR;\n }\n tempElem.style.color = color;\n if (tempElem.style.color === flag || tempElem.style.color === '') {\n return DEFAULT_RIPPLE_COLOR;\n } // color parse failed\n color = getComputedStyle(tempElem).color;\n document.body.removeChild(tempElem);\n return color;\n }\n\n function rgbaToRgb(color) {\n color = color.match(/[.\\d]+/g).map((a) => +Number(a));\n color.length = 3;\n return color;\n }\n\n if (color.toLowerCase() === 'transparent') {\n return DEFAULT_RIPPLE_COLOR;\n }\n if (color[0] === '#') {\n return hexToRgb(color);\n }\n if (color.indexOf('rgb') === -1) {\n color = namedColorsToRgba(color);\n }\n if (color.indexOf('rgb') === 0) {\n return rgbaToRgb(color);\n }\n\n return DEFAULT_RIPPLE_COLOR;\n }\n\n // Static\n static autoInitial(instance) {\n return function (event) {\n instance._autoInit(event);\n };\n }\n\n static jQueryInterface(options) {\n return this.each(function () {\n const data = Data.getData(this, DATA_KEY);\n if (!data) {\n return new Ripple(this, options);\n }\n\n return null;\n });\n }\n}\n\nexport default Ripple;\n","import { typeCheckConfig } from '../mdb/util/index';\nimport Manipulator from '../mdb/dom/manipulator';\nimport SelectorEngine from '../mdb/dom/selector-engine';\nimport EventHandler from '../mdb/dom/event-handler';\nimport BaseComponent from '../free/base-component';\nimport { bindCallbackEventsIfNeeded } from '../autoinit/init';\n\n/**\n * ------------------------------------------------------------------------\n * Constants\n * ------------------------------------------------------------------------\n */\n\nconst NAME = 'animation';\n\nconst DefaultType = {\n animation: 'string',\n animationStart: 'string',\n animationShowOnLoad: 'boolean',\n onStart: '(null|function)',\n onEnd: '(null|function)',\n onHide: '(null|function)',\n onShow: '(null|function)',\n animationOnScroll: '(string)',\n animationWindowHeight: 'number',\n animationOffset: '(number|string)',\n animationDelay: '(number|string)',\n animationDuration: '(number|string)',\n animationReverse: 'boolean',\n animationInterval: '(number|string)',\n animationRepeat: '(number|boolean)',\n animationReset: 'boolean',\n};\n\nconst Default = {\n animation: 'fade',\n animationStart: 'onClick',\n animationShowOnLoad: true,\n onStart: null,\n onEnd: null,\n onHide: null,\n onShow: null,\n animationOnScroll: 'once',\n animationWindowHeight: 0,\n animationOffset: 0,\n animationDelay: 0,\n animationDuration: 500,\n animationReverse: false,\n animationInterval: 0,\n animationRepeat: false,\n animationReset: false,\n};\n\n/**\n * ------------------------------------------------------------------------\n * Class Definition\n * ------------------------------------------------------------------------\n */\n\nclass Animate extends BaseComponent {\n constructor(element, options) {\n super(element);\n\n this._animateElement = this._getAnimateElement();\n this._isFirstScroll = true;\n this._repeatAnimateOnScroll = true;\n this._options = this._getConfig(options);\n Manipulator.setDataAttribute(this._element, `${this.constructor.NAME}-initialized`, true);\n bindCallbackEventsIfNeeded(this.constructor);\n }\n\n // Getters\n static get NAME() {\n return NAME;\n }\n\n // Public\n init() {\n this._init();\n }\n\n startAnimation() {\n this._startAnimation();\n }\n\n stopAnimation() {\n this._clearAnimationClass();\n }\n\n changeAnimationType(animation) {\n this._options.animation = animation;\n }\n\n dispose() {\n EventHandler.off(this._element, 'mousedown');\n EventHandler.off(this._animateElement, 'animationend');\n EventHandler.off(window, 'scroll');\n EventHandler.off(this._element, 'mouseover');\n Manipulator.removeDataAttribute(this._element, `${this.constructor.NAME}-initialized`);\n\n super.dispose();\n }\n\n // Private\n _init() {\n switch (this._options.animationStart) {\n case 'onHover':\n this._bindHoverEvents();\n break;\n case 'onLoad':\n this._startAnimation();\n break;\n case 'onScroll':\n this._bindScrollEvents();\n break;\n case 'onClick':\n this._bindClickEvents();\n break;\n default:\n break;\n }\n\n this._bindTriggerOnEndCallback();\n\n if (this._options.animationReset) {\n this._bindResetAnimationAfterFinish();\n }\n }\n\n _getAnimateElement() {\n const targetId = Manipulator.getDataAttribute(this._element, 'animation-target');\n return targetId ? SelectorEngine.find(targetId)[0] : this._element;\n }\n\n _getConfig(config) {\n const dataAttributes = Manipulator.getDataAttributes(this._animateElement);\n\n config = {\n ...Default,\n ...dataAttributes,\n ...config,\n };\n\n typeCheckConfig(NAME, config, DefaultType);\n\n return config;\n }\n\n _animateOnScroll() {\n const elementOffsetTop = Manipulator.offset(this._animateElement).top;\n const elementHeight = this._animateElement.offsetHeight;\n const windowHeight = window.innerHeight;\n const shouldBeVisible =\n elementOffsetTop + this._options.animationOffset <= windowHeight &&\n elementOffsetTop + this._options.animationOffset + elementHeight >= 0;\n const isElementVisible = this._animateElement.style.visibility === 'visible';\n\n switch (true) {\n case shouldBeVisible && this._isFirstScroll:\n this._isFirstScroll = false;\n this._startAnimation();\n break;\n case !shouldBeVisible && this._isFirstScroll:\n this._isFirstScroll = false;\n this._hideAnimateElement();\n break;\n case shouldBeVisible && !isElementVisible && this._repeatAnimateOnScroll:\n if (this._options.animationOnScroll !== 'repeat') {\n this._repeatAnimateOnScroll = false;\n }\n this._callback(this._options.onShow);\n this._showAnimateElement();\n this._startAnimation();\n break;\n case !shouldBeVisible && isElementVisible && this._repeatAnimateOnScroll:\n this._hideAnimateElement();\n this._clearAnimationClass();\n this._callback(this._options.onHide);\n break;\n default:\n break;\n }\n }\n\n _addAnimatedClass() {\n Manipulator.addClass(this._animateElement, 'animation');\n Manipulator.addClass(this._animateElement, this._options.animation);\n }\n\n _clearAnimationClass() {\n this._animateElement.classList.remove(this._options.animation, 'animation');\n }\n\n _removeInvisibleClass() {\n Manipulator.removeClass(this._animateElement, 'invisible');\n }\n\n _startAnimation() {\n this._callback(this._options.onStart);\n\n this._removeInvisibleClass();\n this._addAnimatedClass();\n\n if (this._options.animationRepeat && !this._options.animationInterval) {\n this._setAnimationRepeat();\n }\n\n if (this._options.animationReverse) {\n this._setAnimationReverse();\n }\n\n if (this._options.animationDelay) {\n this._setAnimationDelay();\n }\n\n if (this._options.animationDuration) {\n this._setAnimationDuration();\n }\n\n if (this._options.animationInterval) {\n this._setAnimationInterval();\n }\n }\n\n _setAnimationReverse() {\n Manipulator.style(this._animateElement, {\n animationIterationCount: this._options.animationRepeat === true ? 'infinite' : '2',\n animationDirection: 'alternate',\n });\n }\n\n _setAnimationDuration() {\n Manipulator.style(this._animateElement, {\n animationDuration: `${this._options.animationDuration}ms`,\n });\n }\n\n _setAnimationDelay() {\n Manipulator.style(this._animateElement, {\n animationDelay: `${this._options.animationDelay}ms`,\n });\n }\n\n _setAnimationRepeat() {\n Manipulator.style(this._animateElement, {\n animationIterationCount:\n this._options.animationRepeat === true ? 'infinite' : this._options.animationRepeat,\n });\n }\n\n _setAnimationInterval() {\n EventHandler.on(this._animateElement, 'animationend', () => {\n this._clearAnimationClass();\n setTimeout(() => {\n this._addAnimatedClass();\n }, this._options.animationInterval);\n });\n }\n\n _hideAnimateElement() {\n Manipulator.style(this._animateElement, { visibility: 'hidden' });\n }\n\n _showAnimateElement() {\n Manipulator.style(this._animateElement, { visibility: 'visible' });\n }\n\n _bindResetAnimationAfterFinish() {\n EventHandler.on(this._animateElement, 'animationend', () => {\n this._clearAnimationClass();\n });\n }\n\n _bindTriggerOnEndCallback() {\n EventHandler.on(this._animateElement, 'animationend', () => {\n this._callback(this._options.onEnd);\n });\n }\n\n _bindScrollEvents() {\n if (!this._options.animationShowOnLoad) {\n this._animateOnScroll();\n }\n\n EventHandler.on(window, 'scroll', () => {\n this._animateOnScroll();\n });\n }\n\n _bindClickEvents() {\n EventHandler.on(this._element, 'mousedown', () => {\n this._startAnimation();\n });\n }\n\n _bindHoverEvents() {\n EventHandler.one(this._element, 'mouseover', () => {\n this._startAnimation();\n });\n EventHandler.one(this._animateElement, 'animationend', () => {\n // wait after bind hoverEvents to prevent animation looping\n setTimeout(() => {\n this._bindHoverEvents();\n }, 100);\n });\n }\n\n _callback(fn) {\n if (fn instanceof Function) {\n fn();\n }\n }\n\n // Static\n static autoInit(instance) {\n instance._init();\n }\n\n static jQueryInterface(options) {\n const animate = new Animate(this[0], options);\n animate.init();\n }\n}\n\nexport default Animate;\n","/* eslint-disable */\n\nexport function get(element) {\n return getComputedStyle(element);\n}\n\nexport function set(element, obj) {\n for (const key in obj) {\n let val = obj[key];\n if (typeof val === 'number') {\n val = `${val}px`;\n }\n element.style[key] = val;\n }\n return element;\n}\n","/* eslint-disable */\n\nexport function div(className) {\n const div = document.createElement('div');\n div.className = className;\n return div;\n}\n\nconst elMatches =\n typeof Element !== 'undefined' &&\n (Element.prototype.matches ||\n Element.prototype.webkitMatchesSelector ||\n Element.prototype.mozMatchesSelector ||\n Element.prototype.msMatchesSelector);\n\nexport function matches(element, query) {\n if (!elMatches) {\n throw new Error('No element matching method supported');\n }\n\n return elMatches.call(element, query);\n}\n\nexport function remove(element) {\n if (element.remove) {\n element.remove();\n } else {\n if (element.parentNode) {\n element.parentNode.removeChild(element);\n }\n }\n}\n\nexport function queryChildren(element, selector) {\n return Array.prototype.filter.call(element.children, (child) => matches(child, selector));\n}\n","/* eslint-disable */\n\nconst cls = {\n main: 'ps',\n rtl: 'ps__rtl',\n element: {\n thumb: (x) => `ps__thumb-${x}`,\n rail: (x) => `ps__rail-${x}`,\n consuming: 'ps__child--consume',\n },\n state: {\n focus: 'ps--focus',\n clicking: 'ps--clicking',\n active: (x) => `ps--active-${x}`,\n scrolling: (x) => `ps--scrolling-${x}`,\n },\n};\n\nexport default cls;\n\n/*\n * Helper methods\n */\nconst scrollingClassTimeout = { x: null, y: null };\n\nexport function addScrollingClass(i, x) {\n const classList = i.element.classList;\n const className = cls.state.scrolling(x);\n\n if (classList.contains(className)) {\n clearTimeout(scrollingClassTimeout[x]);\n } else {\n classList.add(className);\n }\n}\n\nexport function removeScrollingClass(i, x) {\n scrollingClassTimeout[x] = setTimeout(\n () => i.isAlive && i.element.classList.remove(cls.state.scrolling(x)),\n i.settings.scrollingThreshold\n );\n}\n\nexport function setScrollingClassInstantly(i, x) {\n addScrollingClass(i, x);\n removeScrollingClass(i, x);\n}\n","/* eslint-disable */\nclass EventElement {\n constructor(element) {\n this.element = element;\n this.handlers = {};\n }\n\n bind(eventName, handler) {\n if (typeof this.handlers[eventName] === 'undefined') {\n this.handlers[eventName] = [];\n }\n this.handlers[eventName].push(handler);\n this.element.addEventListener(eventName, handler, false);\n }\n\n unbind(eventName, target) {\n this.handlers[eventName] = this.handlers[eventName].filter((handler) => {\n if (target && handler !== target) {\n return true;\n }\n this.element.removeEventListener(eventName, handler, false);\n return false;\n });\n }\n\n unbindAll() {\n for (const name in this.handlers) {\n this.unbind(name);\n }\n }\n\n get isEmpty() {\n return Object.keys(this.handlers).every((key) => this.handlers[key].length === 0);\n }\n}\n\nexport default class EventManager {\n constructor() {\n this.eventElements = [];\n }\n\n eventElement(element) {\n let ee = this.eventElements.filter((ee) => ee.element === element)[0];\n if (!ee) {\n ee = new EventElement(element);\n this.eventElements.push(ee);\n }\n return ee;\n }\n\n bind(element, eventName, handler) {\n this.eventElement(element).bind(eventName, handler);\n }\n\n unbind(element, eventName, handler) {\n const ee = this.eventElement(element);\n ee.unbind(eventName, handler);\n\n if (ee.isEmpty) {\n // remove\n this.eventElements.splice(this.eventElements.indexOf(ee), 1);\n }\n }\n\n unbindAll() {\n this.eventElements.forEach((e) => e.unbindAll());\n this.eventElements = [];\n }\n\n once(element, eventName, handler) {\n const ee = this.eventElement(element);\n const onceHandler = (evt) => {\n ee.unbind(eventName, onceHandler);\n handler(evt);\n };\n ee.bind(eventName, onceHandler);\n }\n}\n","import { setScrollingClassInstantly } from './lib/class-names';\n\nfunction createEvent(name) {\n if (typeof window.CustomEvent === 'function') {\n return new CustomEvent(name);\n }\n\n const evt = document.createEvent('CustomEvent');\n evt.initCustomEvent(name, false, false, undefined);\n return evt;\n}\n\nexport default function (i, axis, diff, useScrollingClass = true, forceFireReachEvent = false) {\n let fields;\n if (axis === 'top') {\n fields = ['contentHeight', 'containerHeight', 'scrollTop', 'y', 'up', 'down'];\n } else if (axis === 'left') {\n fields = ['contentWidth', 'containerWidth', 'scrollLeft', 'x', 'left', 'right'];\n } else {\n throw new Error('A proper axis should be provided');\n }\n\n processScrollDiff(i, diff, fields, useScrollingClass, forceFireReachEvent);\n}\n\nfunction processScrollDiff(\n i,\n diff,\n [contentHeight, containerHeight, scrollTop, y, up, down],\n useScrollingClass = true,\n forceFireReachEvent = false\n) {\n const element = i.element;\n\n // reset reach\n i.reach[y] = null;\n\n // 1 for subpixel rounding\n if (element[scrollTop] < 1) {\n i.reach[y] = 'start';\n }\n\n // 1 for subpixel rounding\n if (element[scrollTop] > i[contentHeight] - i[containerHeight] - 1) {\n i.reach[y] = 'end';\n }\n\n if (diff) {\n element.dispatchEvent(createEvent(`ps-scroll-${y}`));\n\n if (diff < 0) {\n element.dispatchEvent(createEvent(`ps-scroll-${up}`));\n } else if (diff > 0) {\n element.dispatchEvent(createEvent(`ps-scroll-${down}`));\n }\n\n if (useScrollingClass) {\n setScrollingClassInstantly(i, y);\n }\n }\n\n if (i.reach[y] && (diff || forceFireReachEvent)) {\n element.dispatchEvent(createEvent(`ps-${y}-reach-${i.reach[y]}`));\n }\n}\n","/* eslint-disable */\n\nimport * as CSS from './css';\nimport * as DOM from './dom';\n\nexport function toInt(x) {\n return parseInt(x, 10) || 0;\n}\n\nexport function isEditable(el) {\n return (\n DOM.matches(el, 'input,[contenteditable]') ||\n DOM.matches(el, 'select,[contenteditable]') ||\n DOM.matches(el, 'textarea,[contenteditable]') ||\n DOM.matches(el, 'button,[contenteditable]')\n );\n}\n\nexport function outerWidth(element) {\n const styles = CSS.get(element);\n return (\n toInt(styles.width) +\n toInt(styles.paddingLeft) +\n toInt(styles.paddingRight) +\n toInt(styles.borderLeftWidth) +\n toInt(styles.borderRightWidth)\n );\n}\n\nexport const env = {\n isWebKit: typeof document !== 'undefined' && 'WebkitAppearance' in document.documentElement.style,\n supportsTouch:\n typeof window !== 'undefined' &&\n ('ontouchstart' in window ||\n ('maxTouchPoints' in window.navigator && window.navigator.maxTouchPoints > 0) ||\n (window.DocumentTouch && document instanceof window.DocumentTouch)),\n supportsIePointer: typeof navigator !== 'undefined' && navigator.msMaxTouchPoints,\n isChrome: typeof navigator !== 'undefined' && /Chrome/i.test(navigator && navigator.userAgent),\n};\n","import * as CSS from './lib/css';\nimport * as DOM from './lib/dom';\nimport cls from './lib/class-names';\nimport { toInt } from './lib/util';\n\n/* eslint-disable no-lonely-if */\n\nexport default function (i) {\n const element = i.element;\n const roundedScrollTop = Math.floor(element.scrollTop);\n const rect = element.getBoundingClientRect();\n\n i.containerWidth = Math.floor(rect.width);\n i.containerHeight = Math.floor(rect.height);\n\n i.contentWidth = element.scrollWidth;\n i.contentHeight = element.scrollHeight;\n\n if (!element.contains(i.scrollbarXRail)) {\n // clean up and append\n DOM.queryChildren(element, cls.element.rail('x')).forEach((el) => DOM.remove(el));\n element.appendChild(i.scrollbarXRail);\n }\n if (!element.contains(i.scrollbarYRail)) {\n // clean up and append\n DOM.queryChildren(element, cls.element.rail('y')).forEach((el) => DOM.remove(el));\n element.appendChild(i.scrollbarYRail);\n }\n\n if (\n !i.settings.suppressScrollX &&\n i.containerWidth + i.settings.scrollXMarginOffset < i.contentWidth\n ) {\n i.scrollbarXActive = true;\n i.railXWidth = i.containerWidth - i.railXMarginWidth;\n i.railXRatio = i.containerWidth / i.railXWidth;\n i.scrollbarXWidth = getThumbSize(i, toInt((i.railXWidth * i.containerWidth) / i.contentWidth));\n i.scrollbarXLeft = toInt(\n ((i.negativeScrollAdjustment + element.scrollLeft) * (i.railXWidth - i.scrollbarXWidth)) /\n (i.contentWidth - i.containerWidth)\n );\n } else {\n i.scrollbarXActive = false;\n }\n\n if (\n !i.settings.suppressScrollY &&\n i.containerHeight + i.settings.scrollYMarginOffset < i.contentHeight\n ) {\n i.scrollbarYActive = true;\n i.railYHeight = i.containerHeight - i.railYMarginHeight;\n i.railYRatio = i.containerHeight / i.railYHeight;\n i.scrollbarYHeight = getThumbSize(\n i,\n toInt((i.railYHeight * i.containerHeight) / i.contentHeight)\n );\n i.scrollbarYTop = toInt(\n (roundedScrollTop * (i.railYHeight - i.scrollbarYHeight)) /\n (i.contentHeight - i.containerHeight)\n );\n } else {\n i.scrollbarYActive = false;\n }\n\n if (i.scrollbarXLeft >= i.railXWidth - i.scrollbarXWidth) {\n i.scrollbarXLeft = i.railXWidth - i.scrollbarXWidth;\n }\n if (i.scrollbarYTop >= i.railYHeight - i.scrollbarYHeight) {\n i.scrollbarYTop = i.railYHeight - i.scrollbarYHeight;\n }\n\n updateCss(element, i);\n\n if (i.scrollbarXActive) {\n element.classList.add(cls.state.active('x'));\n } else {\n element.classList.remove(cls.state.active('x'));\n i.scrollbarXWidth = 0;\n i.scrollbarXLeft = 0;\n element.scrollLeft = i.isRtl === true ? i.contentWidth : 0;\n }\n if (i.scrollbarYActive) {\n element.classList.add(cls.state.active('y'));\n } else {\n element.classList.remove(cls.state.active('y'));\n i.scrollbarYHeight = 0;\n i.scrollbarYTop = 0;\n element.scrollTop = 0;\n }\n}\n\nfunction getThumbSize(i, thumbSize) {\n if (i.settings.minScrollbarLength) {\n thumbSize = Math.max(thumbSize, i.settings.minScrollbarLength);\n }\n if (i.settings.maxScrollbarLength) {\n thumbSize = Math.min(thumbSize, i.settings.maxScrollbarLength);\n }\n return thumbSize;\n}\n\nfunction updateCss(element, i) {\n const xRailOffset = { width: i.railXWidth };\n const roundedScrollTop = Math.floor(element.scrollTop);\n\n if (i.isRtl) {\n xRailOffset.left =\n i.negativeScrollAdjustment + element.scrollLeft + i.containerWidth - i.contentWidth;\n } else {\n xRailOffset.left = element.scrollLeft;\n }\n if (i.isScrollbarXUsingBottom) {\n xRailOffset.bottom = i.scrollbarXBottom - roundedScrollTop;\n } else {\n xRailOffset.top = i.scrollbarXTop + roundedScrollTop;\n }\n CSS.set(i.scrollbarXRail, xRailOffset);\n\n const yRailOffset = { top: roundedScrollTop, height: i.railYHeight };\n if (i.isScrollbarYUsingRight) {\n if (i.isRtl) {\n yRailOffset.right =\n i.contentWidth -\n (i.negativeScrollAdjustment + element.scrollLeft) -\n i.scrollbarYRight -\n i.scrollbarYOuterWidth -\n 9;\n } else {\n yRailOffset.right = i.scrollbarYRight - element.scrollLeft;\n }\n } else {\n if (i.isRtl) {\n yRailOffset.left =\n i.negativeScrollAdjustment +\n element.scrollLeft +\n i.containerWidth * 2 -\n i.contentWidth -\n i.scrollbarYLeft -\n i.scrollbarYOuterWidth;\n } else {\n yRailOffset.left = i.scrollbarYLeft + element.scrollLeft;\n }\n }\n CSS.set(i.scrollbarYRail, yRailOffset);\n\n CSS.set(i.scrollbarX, {\n left: i.scrollbarXLeft,\n width: i.scrollbarXWidth - i.railBorderXWidth,\n });\n CSS.set(i.scrollbarY, {\n top: i.scrollbarYTop,\n height: i.scrollbarYHeight - i.railBorderYWidth,\n });\n}\n","/* eslint-disable */\n\nimport * as CSS from '../lib/css';\nimport * as DOM from '../lib/dom';\nimport cls, { addScrollingClass, removeScrollingClass } from '../lib/class-names';\nimport updateGeometry from '../update-geometry';\nimport { toInt } from '../lib/util';\n\nexport default function (i) {\n bindMouseScrollHandler(i, [\n 'containerWidth',\n 'contentWidth',\n 'pageX',\n 'railXWidth',\n 'scrollbarX',\n 'scrollbarXWidth',\n 'scrollLeft',\n 'x',\n 'scrollbarXRail',\n ]);\n bindMouseScrollHandler(i, [\n 'containerHeight',\n 'contentHeight',\n 'pageY',\n 'railYHeight',\n 'scrollbarY',\n 'scrollbarYHeight',\n 'scrollTop',\n 'y',\n 'scrollbarYRail',\n ]);\n}\n\nfunction bindMouseScrollHandler(\n i,\n [\n containerHeight,\n contentHeight,\n pageY,\n railYHeight,\n scrollbarY,\n scrollbarYHeight,\n scrollTop,\n y,\n scrollbarYRail,\n ]\n) {\n const element = i.element;\n\n let startingScrollTop = null;\n let startingMousePageY = null;\n let scrollBy = null;\n\n function mouseMoveHandler(e) {\n if (e.touches && e.touches[0]) {\n e[pageY] = e.touches[0].pageY;\n }\n element[scrollTop] = startingScrollTop + scrollBy * (e[pageY] - startingMousePageY);\n addScrollingClass(i, y);\n updateGeometry(i);\n\n e.stopPropagation();\n e.preventDefault();\n }\n\n function mouseUpHandler() {\n removeScrollingClass(i, y);\n i[scrollbarYRail].classList.remove(cls.state.clicking);\n i.event.unbind(i.ownerDocument, 'mousemove', mouseMoveHandler);\n }\n\n function bindMoves(e, touchMode) {\n startingScrollTop = element[scrollTop];\n if (touchMode && e.touches) {\n e[pageY] = e.touches[0].pageY;\n }\n startingMousePageY = e[pageY];\n scrollBy = (i[contentHeight] - i[containerHeight]) / (i[railYHeight] - i[scrollbarYHeight]);\n if (!touchMode) {\n i.event.bind(i.ownerDocument, 'mousemove', mouseMoveHandler);\n i.event.once(i.ownerDocument, 'mouseup', mouseUpHandler);\n e.preventDefault();\n } else {\n i.event.bind(i.ownerDocument, 'touchmove', mouseMoveHandler);\n }\n\n i[scrollbarYRail].classList.add(cls.state.clicking);\n\n e.stopPropagation();\n }\n\n i.event.bind(i[scrollbarY], 'mousedown', (e) => {\n bindMoves(e);\n });\n i.event.bind(i[scrollbarY], 'touchstart', (e) => {\n bindMoves(e, true);\n });\n}\n","/* eslint-disable */\n\nimport * as CSS from './lib/css';\nimport * as DOM from './lib/dom';\nimport cls from './lib/class-names';\nimport EventManager from './lib/event-manager';\nimport processScrollDiff from './process-scroll-diff';\nimport updateGeometry from './update-geometry';\nimport { toInt, outerWidth } from './lib/util';\n\nimport clickRail from './handlers/click-rail';\nimport dragThumb from './handlers/drag-thumb';\nimport keyboard from './handlers/keyboard';\nimport wheel from './handlers/mouse-wheel';\nimport touch from './handlers/touch';\n\nconst defaultSettings = () => ({\n handlers: ['click-rail', 'drag-thumb', 'keyboard', 'wheel', 'touch'],\n maxScrollbarLength: null,\n minScrollbarLength: null,\n scrollingThreshold: 1000,\n scrollXMarginOffset: 0,\n scrollYMarginOffset: 0,\n suppressScrollX: false,\n suppressScrollY: false,\n swipeEasing: true,\n useBothWheelAxes: false,\n wheelPropagation: true,\n wheelSpeed: 1,\n});\n\nconst handlers = {\n 'click-rail': clickRail,\n 'drag-thumb': dragThumb,\n keyboard,\n wheel,\n touch,\n};\n\nexport default class PerfectScrollbar {\n constructor(element, userSettings = {}) {\n if (typeof element === 'string') {\n element = document.querySelector(element);\n }\n\n if (!element || !element.nodeName) {\n throw new Error('no element is specified to initialize PerfectScrollbar');\n }\n\n this.element = element;\n\n element.classList.add(cls.main);\n\n this.settings = defaultSettings();\n for (const key in userSettings) {\n this.settings[key] = userSettings[key];\n }\n\n this.containerWidth = null;\n this.containerHeight = null;\n this.contentWidth = null;\n this.contentHeight = null;\n\n const focus = () => element.classList.add(cls.state.focus);\n const blur = () => element.classList.remove(cls.state.focus);\n\n this.isRtl = CSS.get(element).direction === 'rtl';\n if (this.isRtl === true) {\n element.classList.add(cls.rtl);\n }\n this.isNegativeScroll = (() => {\n const originalScrollLeft = element.scrollLeft;\n let result = null;\n element.scrollLeft = -1;\n result = element.scrollLeft < 0;\n element.scrollLeft = originalScrollLeft;\n return result;\n })();\n this.negativeScrollAdjustment = this.isNegativeScroll\n ? element.scrollWidth - element.clientWidth\n : 0;\n this.event = new EventManager();\n this.ownerDocument = element.ownerDocument || document;\n\n this.scrollbarXRail = DOM.div(cls.element.rail('x'));\n element.appendChild(this.scrollbarXRail);\n this.scrollbarX = DOM.div(cls.element.thumb('x'));\n this.scrollbarXRail.appendChild(this.scrollbarX);\n this.scrollbarX.setAttribute('tabindex', 0);\n this.event.bind(this.scrollbarX, 'focus', focus);\n this.event.bind(this.scrollbarX, 'blur', blur);\n this.scrollbarXActive = null;\n this.scrollbarXWidth = null;\n this.scrollbarXLeft = null;\n const railXStyle = CSS.get(this.scrollbarXRail);\n this.scrollbarXBottom = parseInt(railXStyle.bottom, 10);\n if (isNaN(this.scrollbarXBottom)) {\n this.isScrollbarXUsingBottom = false;\n this.scrollbarXTop = toInt(railXStyle.top);\n } else {\n this.isScrollbarXUsingBottom = true;\n }\n this.railBorderXWidth = toInt(railXStyle.borderLeftWidth) + toInt(railXStyle.borderRightWidth);\n // Set rail to display:block to calculate margins\n CSS.set(this.scrollbarXRail, { display: 'block' });\n this.railXMarginWidth = toInt(railXStyle.marginLeft) + toInt(railXStyle.marginRight);\n CSS.set(this.scrollbarXRail, { display: '' });\n this.railXWidth = null;\n this.railXRatio = null;\n\n this.scrollbarYRail = DOM.div(cls.element.rail('y'));\n element.appendChild(this.scrollbarYRail);\n this.scrollbarY = DOM.div(cls.element.thumb('y'));\n this.scrollbarYRail.appendChild(this.scrollbarY);\n this.scrollbarY.setAttribute('tabindex', 0);\n this.event.bind(this.scrollbarY, 'focus', focus);\n this.event.bind(this.scrollbarY, 'blur', blur);\n this.scrollbarYActive = null;\n this.scrollbarYHeight = null;\n this.scrollbarYTop = null;\n const railYStyle = CSS.get(this.scrollbarYRail);\n this.scrollbarYRight = parseInt(railYStyle.right, 10);\n if (isNaN(this.scrollbarYRight)) {\n this.isScrollbarYUsingRight = false;\n this.scrollbarYLeft = toInt(railYStyle.left);\n } else {\n this.isScrollbarYUsingRight = true;\n }\n this.scrollbarYOuterWidth = this.isRtl ? outerWidth(this.scrollbarY) : null;\n this.railBorderYWidth = toInt(railYStyle.borderTopWidth) + toInt(railYStyle.borderBottomWidth);\n CSS.set(this.scrollbarYRail, { display: 'block' });\n this.railYMarginHeight = toInt(railYStyle.marginTop) + toInt(railYStyle.marginBottom);\n CSS.set(this.scrollbarYRail, { display: '' });\n this.railYHeight = null;\n this.railYRatio = null;\n\n this.reach = {\n x:\n element.scrollLeft <= 0\n ? 'start'\n : element.scrollLeft >= this.contentWidth - this.containerWidth\n ? 'end'\n : null,\n y:\n element.scrollTop <= 0\n ? 'start'\n : element.scrollTop >= this.contentHeight - this.containerHeight\n ? 'end'\n : null,\n };\n\n this.isAlive = true;\n\n this.settings.handlers.forEach((handlerName) => handlers[handlerName](this));\n\n this.lastScrollTop = Math.floor(element.scrollTop); // for onScroll only\n this.lastScrollLeft = element.scrollLeft; // for onScroll only\n this.event.bind(this.element, 'scroll', (e) => this.onScroll(e));\n updateGeometry(this);\n }\n\n update() {\n if (!this.isAlive) {\n return;\n }\n\n // Recalcuate negative scrollLeft adjustment\n this.negativeScrollAdjustment = this.isNegativeScroll\n ? this.element.scrollWidth - this.element.clientWidth\n : 0;\n\n // Recalculate rail margins\n CSS.set(this.scrollbarXRail, { display: 'block' });\n CSS.set(this.scrollbarYRail, { display: 'block' });\n this.railXMarginWidth =\n toInt(CSS.get(this.scrollbarXRail).marginLeft) +\n toInt(CSS.get(this.scrollbarXRail).marginRight);\n this.railYMarginHeight =\n toInt(CSS.get(this.scrollbarYRail).marginTop) +\n toInt(CSS.get(this.scrollbarYRail).marginBottom);\n\n // Hide scrollbars not to affect scrollWidth and scrollHeight\n CSS.set(this.scrollbarXRail, { display: 'none' });\n CSS.set(this.scrollbarYRail, { display: 'none' });\n\n updateGeometry(this);\n\n processScrollDiff(this, 'top', 0, false, true);\n processScrollDiff(this, 'left', 0, false, true);\n\n CSS.set(this.scrollbarXRail, { display: '' });\n CSS.set(this.scrollbarYRail, { display: '' });\n }\n\n onScroll(e) {\n if (!this.isAlive) {\n return;\n }\n\n updateGeometry(this);\n processScrollDiff(this, 'top', this.element.scrollTop - this.lastScrollTop);\n processScrollDiff(this, 'left', this.element.scrollLeft - this.lastScrollLeft);\n\n this.lastScrollTop = Math.floor(this.element.scrollTop);\n this.lastScrollLeft = this.element.scrollLeft;\n }\n\n destroy() {\n if (!this.isAlive) {\n return;\n }\n\n this.event.unbindAll();\n DOM.remove(this.scrollbarX);\n DOM.remove(this.scrollbarY);\n DOM.remove(this.scrollbarXRail);\n DOM.remove(this.scrollbarYRail);\n this.removePsClasses();\n\n // unset elements\n this.element = null;\n this.scrollbarX = null;\n this.scrollbarY = null;\n this.scrollbarXRail = null;\n this.scrollbarYRail = null;\n\n this.isAlive = false;\n }\n\n removePsClasses() {\n this.element.className = this.element.className\n .split(' ')\n .filter((name) => !name.match(/^ps([-_].+|)$/))\n .join(' ');\n }\n}\n","/* eslint-disable */\n\nimport updateGeometry from '../update-geometry';\n\nexport default function (i) {\n // const element = i.element;\n\n i.event.bind(i.scrollbarY, 'mousedown', (e) => e.stopPropagation());\n i.event.bind(i.scrollbarYRail, 'mousedown', (e) => {\n const positionTop = e.pageY - window.pageYOffset - i.scrollbarYRail.getBoundingClientRect().top;\n const direction = positionTop > i.scrollbarYTop ? 1 : -1;\n\n i.element.scrollTop += direction * i.containerHeight;\n updateGeometry(i);\n\n e.stopPropagation();\n });\n\n i.event.bind(i.scrollbarX, 'mousedown', (e) => e.stopPropagation());\n i.event.bind(i.scrollbarXRail, 'mousedown', (e) => {\n const positionLeft =\n e.pageX - window.pageXOffset - i.scrollbarXRail.getBoundingClientRect().left;\n const direction = positionLeft > i.scrollbarXLeft ? 1 : -1;\n\n i.element.scrollLeft += direction * i.containerWidth;\n updateGeometry(i);\n\n e.stopPropagation();\n });\n}\n","/* eslint-disable */\n\nimport * as DOM from '../lib/dom';\nimport updateGeometry from '../update-geometry';\nimport { isEditable } from '../lib/util';\n\nexport default function (i) {\n const element = i.element;\n\n const elementHovered = () => DOM.matches(element, ':hover');\n const scrollbarFocused = () =>\n DOM.matches(i.scrollbarX, ':focus') || DOM.matches(i.scrollbarY, ':focus');\n\n function shouldPreventDefault(deltaX, deltaY) {\n const scrollTop = Math.floor(element.scrollTop);\n if (deltaX === 0) {\n if (!i.scrollbarYActive) {\n return false;\n }\n if (\n (scrollTop === 0 && deltaY > 0) ||\n (scrollTop >= i.contentHeight - i.containerHeight && deltaY < 0)\n ) {\n return !i.settings.wheelPropagation;\n }\n }\n\n const scrollLeft = element.scrollLeft;\n if (deltaY === 0) {\n if (!i.scrollbarXActive) {\n return false;\n }\n if (\n (scrollLeft === 0 && deltaX < 0) ||\n (scrollLeft >= i.contentWidth - i.containerWidth && deltaX > 0)\n ) {\n return !i.settings.wheelPropagation;\n }\n }\n return true;\n }\n\n i.event.bind(i.ownerDocument, 'keydown', (e) => {\n if ((e.isDefaultPrevented && e.isDefaultPrevented()) || e.defaultPrevented) {\n return;\n }\n\n if (!elementHovered() && !scrollbarFocused()) {\n return;\n }\n\n let activeElement = document.activeElement\n ? document.activeElement\n : i.ownerDocument.activeElement;\n if (activeElement) {\n if (activeElement.tagName === 'IFRAME') {\n activeElement = activeElement.contentDocument.activeElement;\n } else {\n // go deeper if element is a webcomponent\n while (activeElement.shadowRoot) {\n activeElement = activeElement.shadowRoot.activeElement;\n }\n }\n if (isEditable(activeElement)) {\n return;\n }\n }\n\n let deltaX = 0;\n let deltaY = 0;\n\n switch (e.which) {\n case 37: // left\n if (e.metaKey) {\n deltaX = -i.contentWidth;\n } else if (e.altKey) {\n deltaX = -i.containerWidth;\n } else {\n deltaX = -30;\n }\n break;\n case 38: // up\n if (e.metaKey) {\n deltaY = i.contentHeight;\n } else if (e.altKey) {\n deltaY = i.containerHeight;\n } else {\n deltaY = 30;\n }\n break;\n case 39: // right\n if (e.metaKey) {\n deltaX = i.contentWidth;\n } else if (e.altKey) {\n deltaX = i.containerWidth;\n } else {\n deltaX = 30;\n }\n break;\n case 40: // down\n if (e.metaKey) {\n deltaY = -i.contentHeight;\n } else if (e.altKey) {\n deltaY = -i.containerHeight;\n } else {\n deltaY = -30;\n }\n break;\n case 32: // space bar\n if (e.shiftKey) {\n deltaY = i.containerHeight;\n } else {\n deltaY = -i.containerHeight;\n }\n break;\n case 33: // page up\n deltaY = i.containerHeight;\n break;\n case 34: // page down\n deltaY = -i.containerHeight;\n break;\n case 36: // home\n deltaY = i.contentHeight;\n break;\n case 35: // end\n deltaY = -i.contentHeight;\n break;\n default:\n return;\n }\n\n if (i.settings.suppressScrollX && deltaX !== 0) {\n return;\n }\n if (i.settings.suppressScrollY && deltaY !== 0) {\n return;\n }\n\n element.scrollTop -= deltaY;\n element.scrollLeft += deltaX;\n updateGeometry(i);\n\n if (shouldPreventDefault(deltaX, deltaY)) {\n e.preventDefault();\n }\n });\n}\n","/* eslint-disable */\n\nimport * as CSS from '../lib/css';\nimport cls from '../lib/class-names';\nimport updateGeometry from '../update-geometry';\nimport { env } from '../lib/util';\n\nexport default function (i) {\n const element = i.element;\n\n let shouldPrevent = false;\n\n function shouldPreventDefault(deltaX, deltaY) {\n const roundedScrollTop = Math.floor(element.scrollTop);\n const isTop = element.scrollTop === 0;\n const isBottom = roundedScrollTop + element.offsetHeight === element.scrollHeight;\n const isLeft = element.scrollLeft === 0;\n const isRight = element.scrollLeft + element.offsetWidth === element.scrollWidth;\n\n let hitsBound;\n\n // pick axis with primary direction\n if (Math.abs(deltaY) > Math.abs(deltaX)) {\n hitsBound = isTop || isBottom;\n } else {\n hitsBound = isLeft || isRight;\n }\n\n return hitsBound ? !i.settings.wheelPropagation : true;\n }\n\n function getDeltaFromEvent(e) {\n let deltaX = e.deltaX;\n let deltaY = -1 * e.deltaY;\n\n if (typeof deltaX === 'undefined' || typeof deltaY === 'undefined') {\n // OS X Safari\n deltaX = (-1 * e.wheelDeltaX) / 6;\n deltaY = e.wheelDeltaY / 6;\n }\n\n if (e.deltaMode && e.deltaMode === 1) {\n // Firefox in deltaMode 1: Line scrolling\n deltaX *= 10;\n deltaY *= 10;\n }\n\n if (deltaX !== deltaX && deltaY !== deltaY /* NaN checks */) {\n // IE in some mouse drivers\n deltaX = 0;\n deltaY = e.wheelDelta;\n }\n\n if (e.shiftKey) {\n // reverse axis with shift key\n return [-deltaY, -deltaX];\n }\n return [deltaX, deltaY];\n }\n\n function shouldBeConsumedByChild(target, deltaX, deltaY) {\n // FIXME: this is a workaround for \n ${options}\n \n \n
\n ${text}\n
\n
\n ${\n fullPagination\n ? ''\n : ''\n }\n \n \n ${\n fullPagination\n ? ''\n : ''\n }\n
\n\n`;\n};\n\nexport default pagination;\n","import SelectorEngine from '../../mdb/dom/selector-engine';\nimport Manipulator from '../../mdb/dom/manipulator';\n\nconst SELECTOR_FORM_CHECK_INPUT = '.form-check-input';\n\nconst CLASS_NAME_SELECTED = 'selected';\nconst CLASS_NAME_ACITVE = 'active';\n\nclass SelectOption {\n constructor(\n id,\n nativeOption,\n multiple,\n value,\n label,\n selected,\n disabled,\n hidden,\n secondaryText,\n groupId,\n icon\n ) {\n this.id = id;\n this.nativeOption = nativeOption;\n this.multiple = multiple;\n this.value = value;\n this.label = label;\n this.selected = selected;\n this.disabled = disabled;\n this.hidden = hidden;\n this.secondaryText = secondaryText;\n this.groupId = groupId;\n this.icon = icon;\n this.node = null;\n this.active = false;\n }\n\n select() {\n if (this.multiple) {\n this._selectMultiple();\n } else {\n this._selectSingle();\n }\n }\n\n _selectSingle() {\n if (!this.selected) {\n Manipulator.addClass(this.node, CLASS_NAME_SELECTED);\n this.node.setAttribute('aria-selected', true);\n this.selected = true;\n\n if (this.nativeOption) {\n this.nativeOption.selected = true;\n }\n }\n }\n\n _selectMultiple() {\n if (!this.selected) {\n const checkbox = SelectorEngine.findOne(SELECTOR_FORM_CHECK_INPUT, this.node);\n checkbox.checked = true;\n Manipulator.addClass(this.node, CLASS_NAME_SELECTED);\n this.node.setAttribute('aria-selected', true);\n this.selected = true;\n\n if (this.nativeOption) {\n this.nativeOption.selected = true;\n }\n }\n }\n\n deselect() {\n if (this.multiple) {\n this._deselectMultiple();\n } else {\n this._deselectSingle();\n }\n }\n\n _deselectSingle() {\n if (this.selected) {\n Manipulator.removeClass(this.node, CLASS_NAME_SELECTED);\n this.node.setAttribute('aria-selected', false);\n this.selected = false;\n\n if (this.nativeOption) {\n this.nativeOption.selected = false;\n }\n }\n }\n\n _deselectMultiple() {\n if (this.selected) {\n const checkbox = SelectorEngine.findOne(SELECTOR_FORM_CHECK_INPUT, this.node);\n checkbox.checked = false;\n Manipulator.removeClass(this.node, CLASS_NAME_SELECTED);\n this.node.setAttribute('aria-selected', false);\n this.selected = false;\n\n if (this.nativeOption) {\n this.nativeOption.selected = false;\n }\n }\n }\n\n setNode(node) {\n this.node = node;\n }\n\n setActiveStyles() {\n if (!this.active) {\n this.active = true;\n Manipulator.addClass(this.node, CLASS_NAME_ACITVE);\n }\n }\n\n removeActiveStyles() {\n if (this.active) {\n this.active = false;\n Manipulator.removeClass(this.node, CLASS_NAME_ACITVE);\n }\n }\n}\n\nexport default SelectOption;\n","class SelectionModel {\n constructor(multiple = false) {\n this._multiple = multiple;\n this._selections = [];\n }\n\n select(option) {\n if (this._multiple) {\n this._selections.push(option);\n } else {\n this._selections = [option];\n }\n }\n\n deselect(option) {\n if (this._multiple) {\n const optionIndex = this._selections.findIndex((selection) => option === selection);\n this._selections.splice(optionIndex, 1);\n } else {\n this._selections = [];\n }\n }\n\n clear() {\n this._selections = [];\n }\n\n get selection() {\n return this._selections[0];\n }\n\n get selections() {\n return this._selections;\n }\n\n get label() {\n return this._selections[0] && this.selection.label;\n }\n\n get labels() {\n return this._selections.map((selection) => selection.label).join(', ');\n }\n\n get value() {\n return this.selections[0] && this.selection.value;\n }\n\n get values() {\n return this._selections.map((selection) => selection.value);\n }\n}\n\nexport default SelectionModel;\n","export default function allOptionsSelected(options) {\n return options\n .filter((option) => !option.disabled)\n .every((option) => {\n return option.selected;\n });\n}\n","import { element } from '../../mdb/util/index';\nimport Manipulator from '../../mdb/dom/manipulator';\nimport allOptionsSelected from './util';\n\nconst preventKeydown = (event) => {\n if (event.code === 'Tab' || event.code === 'Esc') {\n return;\n }\n\n event.preventDefault();\n};\n\nexport function getWrapperTemplate(id, config, label) {\n const wrapper = document.createElement('div');\n wrapper.setAttribute('id', id);\n wrapper.classList.add('select-wrapper');\n\n const formOutline = element('div');\n Manipulator.addClass(formOutline, 'form-outline');\n formOutline.setAttribute('data-mdb-input-init', '');\n\n if (config.formWhite) {\n Manipulator.addClass(formOutline, 'form-white');\n }\n\n const input = element('input');\n const role = config.filter ? 'combobox' : 'listbox';\n const multiselectable = config.multiple ? 'true' : 'false';\n const disabled = config.disabled ? 'true' : 'false';\n Manipulator.addClass(input, 'form-control');\n Manipulator.addClass(input, 'select-input');\n\n if (config.size === 'sm') {\n Manipulator.addClass(input, 'form-control-sm');\n }\n\n if (config.size === 'lg') {\n Manipulator.addClass(input, 'form-control-lg');\n }\n\n input.setAttribute('type', 'text');\n input.setAttribute('role', role);\n input.setAttribute('aria-multiselectable', multiselectable);\n input.setAttribute('aria-disabled', disabled);\n input.setAttribute('aria-haspopup', 'true');\n input.setAttribute('aria-expanded', false);\n\n if (config.tabIndex) {\n input.setAttribute('tabIndex', config.tabIndex);\n }\n\n if (config.disabled) {\n input.setAttribute('disabled', '');\n }\n\n if (config.placeholder !== '') {\n input.setAttribute('placeholder', config.placeholder);\n }\n\n if (config.validation) {\n Manipulator.addStyle(input, { 'pointer-events': 'none', 'caret-color': 'transparent' });\n Manipulator.addStyle(formOutline, { cursor: 'pointer' });\n } else {\n input.setAttribute('readonly', 'true');\n }\n\n if (config.validation) {\n input.setAttribute('required', 'true');\n input.setAttribute('aria-required', 'true');\n input.addEventListener('keydown', preventKeydown);\n }\n\n const validFeedback = element('div');\n Manipulator.addClass(validFeedback, 'valid-feedback');\n const validFeedBackText = document.createTextNode(`${config.validFeedback}`);\n validFeedback.appendChild(validFeedBackText);\n\n const invalidFeedback = element('div');\n Manipulator.addClass(invalidFeedback, 'invalid-feedback');\n const invalidFeedBackText = document.createTextNode(`${config.invalidFeedback}`);\n invalidFeedback.appendChild(invalidFeedBackText);\n\n const clearBtn = element('span');\n Manipulator.addClass(clearBtn, 'select-clear-btn');\n const clearBtnText = document.createTextNode('\\u2715');\n clearBtn.appendChild(clearBtnText);\n clearBtn.setAttribute('tabindex', '0');\n\n const arrow = element('span');\n Manipulator.addClass(arrow, 'select-arrow');\n\n formOutline.appendChild(input);\n\n if (label) {\n formOutline.appendChild(label);\n }\n\n if (config.validation) {\n formOutline.appendChild(validFeedback);\n formOutline.appendChild(invalidFeedback);\n }\n\n if (config.clearButton) {\n formOutline.appendChild(clearBtn);\n }\n\n formOutline.appendChild(arrow);\n\n wrapper.appendChild(formOutline);\n return wrapper;\n}\n\nexport function getDropdownTemplate(\n id,\n config,\n width,\n height,\n selectAllOption,\n options,\n customContent\n) {\n const dropdownContainer = document.createElement('div');\n dropdownContainer.classList.add('select-dropdown-container');\n\n dropdownContainer.setAttribute('id', `${id}`);\n dropdownContainer.style.width = `${width}px`;\n\n const dropdown = document.createElement('div');\n dropdown.setAttribute('tabindex', 0);\n dropdown.classList.add('select-dropdown');\n\n const optionsWrapper = element('div');\n Manipulator.addClass(optionsWrapper, 'select-options-wrapper');\n optionsWrapper.style.maxHeight = `${height}px`;\n\n const optionsList = getOptionsListTemplate(options, selectAllOption, config);\n\n optionsWrapper.appendChild(optionsList);\n\n if (config.filter) {\n dropdown.appendChild(getFilterTemplate(config.searchPlaceholder));\n }\n\n dropdown.appendChild(optionsWrapper);\n\n if (customContent) {\n dropdown.appendChild(customContent);\n }\n\n dropdownContainer.appendChild(dropdown);\n\n return dropdownContainer;\n}\n\nexport function getOptionsListTemplate(options, selectAllOption, config) {\n const optionsList = element('div');\n Manipulator.addClass(optionsList, 'select-options-list');\n\n let optionsNodes;\n\n if (config.multiple) {\n optionsNodes = getMultipleOptionsNodes(options, selectAllOption, config);\n } else {\n optionsNodes = getSingleOptionsNodes(options, config);\n }\n\n optionsNodes.forEach((node) => {\n optionsList.appendChild(node);\n });\n\n return optionsList;\n}\n\nexport function getFilterTemplate(placeholder) {\n const inputGroup = element('div');\n Manipulator.addClass(inputGroup, 'input-group');\n const input = element('input');\n Manipulator.addClass(input, 'form-control');\n Manipulator.addClass(input, 'select-filter-input');\n input.placeholder = placeholder;\n input.setAttribute('role', 'searchbox');\n input.setAttribute('type', 'text');\n\n inputGroup.appendChild(input);\n\n return inputGroup;\n}\n\nfunction getSingleOptionsNodes(options, config) {\n const nodes = getOptionsNodes(options, config);\n return nodes;\n}\n\nfunction getMultipleOptionsNodes(options, selectAllOption, config) {\n let selectAllNode = null;\n\n if (config.selectAll) {\n selectAllNode = createSelectAllNode(selectAllOption, options, config);\n }\n const optionsNodes = getOptionsNodes(options, config);\n const nodes = selectAllNode ? [selectAllNode, ...optionsNodes] : optionsNodes;\n return nodes;\n}\n\nfunction getOptionsNodes(options, config) {\n const nodes = [];\n\n options.forEach((option) => {\n const isOptionGroup = option.hasOwnProperty('options');\n if (isOptionGroup) {\n const group = createOptionGroupTemplate(option, config);\n nodes.push(group);\n } else {\n nodes.push(createOptionTemplate(option, config));\n }\n });\n\n return nodes;\n}\n\nfunction createSelectAllNode(option, options, config) {\n const isSelected = allOptionsSelected(options);\n const optionNode = element('div');\n Manipulator.addClass(optionNode, 'select-option');\n Manipulator.addClass(optionNode, 'select-all-option');\n Manipulator.addStyle(optionNode, { height: `${config.optionHeight}px` });\n optionNode.setAttribute('role', 'option');\n optionNode.setAttribute('aria-selected', isSelected);\n\n if (isSelected) {\n Manipulator.addClass(optionNode, 'selected');\n }\n\n optionNode.appendChild(getOptionContentTemplate(option, config));\n option.setNode(optionNode);\n\n return optionNode;\n}\n\nfunction createOptionTemplate(option, config) {\n if (option.node) {\n return option.node;\n }\n\n const optionNode = element('div');\n Manipulator.addClass(optionNode, 'select-option');\n Manipulator.addStyle(optionNode, { height: `${config.optionHeight}px` });\n Manipulator.setDataAttribute(optionNode, 'id', option.id);\n optionNode.setAttribute('role', 'option');\n optionNode.setAttribute('aria-selected', option.selected);\n optionNode.setAttribute('aria-disabled', option.disabled);\n\n if (option.selected) {\n Manipulator.addClass(optionNode, 'selected');\n }\n\n if (option.disabled) {\n Manipulator.addClass(optionNode, 'disabled');\n }\n\n if (option.hidden) {\n Manipulator.addClass(optionNode, 'd-none');\n }\n\n optionNode.appendChild(getOptionContentTemplate(option, config));\n\n if (option.icon) {\n optionNode.appendChild(getOptionIconTemplate(option));\n }\n\n option.setNode(optionNode);\n\n return optionNode;\n}\n\nfunction getOptionContentTemplate(option, config) {\n const content = element('span');\n Manipulator.addClass(content, 'select-option-text');\n\n const label = document.createTextNode(option.label);\n\n if (config.multiple) {\n content.appendChild(getCheckboxTemplate(option));\n }\n\n content.appendChild(label);\n\n if (option.secondaryText || typeof option.secondaryText === 'number') {\n content.appendChild(getSecondaryTextTemplate(option.secondaryText));\n }\n\n return content;\n}\n\nfunction getSecondaryTextTemplate(text) {\n const span = element('span');\n Manipulator.addClass(span, 'select-option-secondary-text');\n const textContent = document.createTextNode(text);\n span.appendChild(textContent);\n return span;\n}\n\nfunction getCheckboxTemplate(option) {\n const checkbox = element('input');\n checkbox.setAttribute('type', 'checkbox');\n Manipulator.addClass(checkbox, 'form-check-input');\n\n const label = element('label');\n\n if (option.selected) {\n checkbox.setAttribute('checked', true);\n }\n\n if (option.disabled) {\n checkbox.setAttribute('disabled', true);\n }\n\n checkbox.appendChild(label);\n return checkbox;\n}\n\nfunction getOptionIconTemplate(option) {\n const container = element('span');\n Manipulator.addClass(container, 'select-option-icon-container');\n const image = element('img');\n Manipulator.addClass(image, 'select-option-icon');\n Manipulator.addClass(image, 'rounded-circle');\n image.src = option.icon;\n\n container.appendChild(image);\n return container;\n}\n\nfunction createOptionGroupTemplate(optionGroup, config) {\n const group = element('div');\n Manipulator.addClass(group, 'select-option-group');\n group.setAttribute('role', 'group');\n group.setAttribute('id', optionGroup.id);\n\n if (optionGroup.hidden) {\n Manipulator.addClass(group, 'd-none');\n }\n\n const label = element('label');\n Manipulator.addClass(label, 'select-option-group-label');\n Manipulator.addStyle(label, { height: `${config.optionHeight}px` });\n label.setAttribute('for', optionGroup.id);\n label.textContent = optionGroup.label;\n\n group.appendChild(label);\n\n optionGroup.options.forEach((option) => {\n group.appendChild(createOptionTemplate(option, config));\n });\n\n return group;\n}\n\nexport function getFakeValueTemplate(value) {\n const fakeValue = element('div');\n fakeValue.textContent = value;\n Manipulator.addClass(fakeValue, 'form-label');\n Manipulator.addClass(fakeValue, 'select-fake-value');\n\n return fakeValue;\n}\n","import { createPopper } from '@popperjs/core';\nimport Data from '../../mdb/dom/data';\nimport EventHandler from '../../mdb/dom/event-handler';\nimport Manipulator from '../../mdb/dom/manipulator';\nimport SelectorEngine from '../../mdb/dom/selector-engine';\nimport { typeCheckConfig, getUID } from '../../mdb/util/index';\nimport Input from '../../free/input';\nimport SelectOption from './select-option';\nimport SelectionModel from './selection-model';\nimport { ESCAPE, ENTER, DOWN_ARROW, UP_ARROW, HOME, END, TAB } from '../../mdb/util/keycodes';\nimport allOptionsSelected from './util';\nimport {\n getWrapperTemplate,\n getDropdownTemplate,\n getOptionsListTemplate,\n getFakeValueTemplate,\n} from './templates';\nimport BaseComponent from '../../free/base-component';\nimport { bindCallbackEventsIfNeeded } from '../../autoinit/init';\n\nconst Default = {\n autoSelect: false,\n container: 'body',\n clearButton: false,\n disabled: false,\n displayedLabels: 5,\n formWhite: false,\n multiple: false,\n optionsSelectedLabel: 'options selected',\n optionHeight: 38,\n selectAll: true,\n selectAllLabel: 'Select all',\n searchPlaceholder: 'Search...',\n size: 'default',\n visibleOptions: 5,\n filter: false,\n filterDebounce: 300,\n noResultText: 'No results',\n validation: false,\n validFeedback: 'Valid',\n invalidFeedback: 'Invalid',\n placeholder: '',\n filterFn: null,\n};\n\nconst DefaultType = {\n autoSelect: 'boolean',\n container: 'string',\n clearButton: 'boolean',\n disabled: 'boolean',\n displayedLabels: 'number',\n formWhite: 'boolean',\n multiple: 'boolean',\n optionsSelectedLabel: 'string',\n optionHeight: 'number',\n selectAll: 'boolean',\n selectAllLabel: 'string',\n searchPlaceholder: 'string',\n size: 'string',\n visibleOptions: 'number',\n filter: 'boolean',\n filterDebounce: 'number',\n noResultText: 'string',\n validation: 'boolean',\n validFeedback: 'string',\n invalidFeedback: 'string',\n placeholder: '',\n filterFn: '(function|null)',\n};\n\nconst NAME = 'select';\nconst DATA_KEY = 'mdb.select';\n\nconst EVENT_KEY = `.${DATA_KEY}`;\nconst EVENT_CLOSE = `close${EVENT_KEY}`;\nconst EVENT_OPEN = `open${EVENT_KEY}`;\nconst EVENT_SELECTED = `optionSelected${EVENT_KEY}`;\nconst EVENT_DESELECTED = `optionDeselected${EVENT_KEY}`;\nconst EVENT_VALUE_CHANGED = `valueChanged${EVENT_KEY}`;\nconst EVENT_CHANGE_NATIVE = 'change';\nconst EVENT_OPENED = `opened${EVENT_KEY}`;\nconst EVENT_CLOSED = `closed${EVENT_KEY}`;\nconst EVENT_SEARCH = `search${EVENT_KEY}`;\n\nconst SELECTOR_LABEL = '.select-label';\nconst SELECTOR_INPUT = '.select-input';\nconst SELECTOR_FILTER_INPUT = '.select-filter-input';\nconst SELECTOR_DROPDOWN = '.select-dropdown';\nconst SELECTOR_OPTIONS_WRAPPER = '.select-options-wrapper';\nconst SELECTOR_OPTIONS_LIST = '.select-options-list';\nconst SELECTOR_OPTION = '.select-option';\nconst SELECTOR_CLEAR_BUTTON = '.select-clear-btn';\nconst SELECTOR_CUSTOM_CONTENT = '.select-custom-content';\nconst SELECTOR_NO_RESULTS = '.select-no-results';\nconst SELECTOR_FORM_OUTLINE = '.form-outline';\nconst SELECTOR_TOGGLE = '[data-mdb-toggle]';\n\nconst CLASS_NAME_INITIALIZED = 'select-initialized';\nconst CLASS_NAME_OPEN = 'open';\nconst CLASS_NAME_ACTIVE = 'active';\nconst CLASS_NAME_FOCUSED = 'focused';\nconst CLASS_NAME_OPTION_GROUP_LABEL = 'select-option-group-label';\nconst CLASS_NAME_SELECT_ALL_OPTION = 'select-all-option';\n\nconst ANIMATION_TRANSITION_TIME = 200;\n\nclass Select extends BaseComponent {\n constructor(element, config) {\n super(element);\n\n this._config = this._getConfig(config);\n this._optionsToRender = this._getOptionsToRender(element);\n\n // optionsToRender may contain option groups and nested options, in this case\n // we need a list of plain options to manage selections and keyboard navigation\n this._plainOptions = this._getPlainOptions(this._optionsToRender);\n this._filteredOptionsList = null;\n\n this._selectionModel = new SelectionModel(this.multiple);\n\n this._activeOptionIndex = -1;\n this._activeOption = null;\n\n this._wrapperId = this._element.id\n ? `select-wrapper-${this._element.id}`\n : getUID('select-wrapper-');\n this._dropdownContainerId = this._element.id\n ? `select-dropdown-container-${this._element.id}`\n : getUID('select-dropdown-container-');\n this._selectAllId = this._element.id ? `select-all-${this._element.id}` : getUID('select-all-');\n this._debounceTimeoutId = null;\n\n this._dropdownHeight = this._config.optionHeight * this._config.visibleOptions;\n\n this._popper = null;\n this._input = null;\n this._label = SelectorEngine.next(this._element, SELECTOR_LABEL)[0];\n this._fakeValue = null;\n this._isFakeValueActive = false;\n this._customContent = SelectorEngine.next(element, SELECTOR_CUSTOM_CONTENT)[0];\n this._toggleButton = null;\n this._elementToggle = null;\n\n this._wrapper = null;\n this._inputEl = null;\n this._dropdownContainer = null;\n this._container = null;\n this._selectAllOption = null;\n\n this._init();\n\n this._mutationObserver = null;\n this._isOpen = false;\n\n this._addMutationObserver();\n Manipulator.setDataAttribute(this._element, `${this.constructor.NAME}-initialized`, true);\n bindCallbackEventsIfNeeded(this.constructor);\n }\n\n static get NAME() {\n return NAME;\n }\n\n get filterInput() {\n return SelectorEngine.findOne(SELECTOR_FILTER_INPUT, this._dropdownContainer);\n }\n\n get dropdown() {\n return SelectorEngine.findOne(SELECTOR_DROPDOWN, this._dropdownContainer);\n }\n\n get optionsList() {\n return SelectorEngine.findOne(SELECTOR_OPTIONS_LIST, this._dropdownContainer);\n }\n\n get optionsWrapper() {\n return SelectorEngine.findOne(SELECTOR_OPTIONS_WRAPPER, this._dropdownContainer);\n }\n\n get clearButton() {\n return SelectorEngine.findOne(SELECTOR_CLEAR_BUTTON, this._wrapper);\n }\n\n get options() {\n return this._filteredOptionsList ? this._filteredOptionsList : this._plainOptions;\n }\n\n get value() {\n return this.multiple ? this._selectionModel.values : this._selectionModel.value;\n }\n\n get multiple() {\n return this._config.multiple;\n }\n\n get hasSelectAll() {\n return this.multiple && this._config.selectAll;\n }\n\n get hasSelection() {\n return this._selectionModel.selection || this._selectionModel.selections.length > 0;\n }\n\n _getConfig(config) {\n const dataAttributes = Manipulator.getDataAttributes(this._element);\n\n config = {\n ...Default,\n ...dataAttributes,\n ...config,\n };\n\n if (this._element.hasAttribute('multiple')) {\n config.multiple = true;\n }\n\n if (this._element.hasAttribute('disabled')) {\n config.disabled = true;\n }\n\n if (this._element.tabIndex) {\n config.tabIndex = this._element.getAttribute('tabIndex');\n }\n\n typeCheckConfig(NAME, config, DefaultType);\n\n return config;\n }\n\n _getOptionsToRender(select) {\n const options = [];\n\n const nodes = select.childNodes;\n\n nodes.forEach((node) => {\n if (node.nodeName === 'OPTGROUP') {\n const optionGroup = {\n id: node.id ? `group-${node.id}` : getUID('group-'),\n label: node.label,\n disabled: node.hasAttribute('disabled'),\n hidden: node.hasAttribute('hidden'),\n options: [],\n };\n const groupOptions = node.childNodes;\n groupOptions.forEach((option) => {\n if (option.nodeName === 'OPTION') {\n optionGroup.options.push(this._createOptionObject(option, optionGroup));\n }\n });\n options.push(optionGroup);\n } else if (node.nodeName === 'OPTION') {\n options.push(this._createOptionObject(node));\n }\n });\n return options;\n }\n\n _getPlainOptions(optionsToRender) {\n const hasOptionGroup = SelectorEngine.findOne('optgroup', this._element);\n\n if (!hasOptionGroup) {\n return optionsToRender;\n }\n\n const options = [];\n\n optionsToRender.forEach((option) => {\n const isOptionGroup = option.hasOwnProperty('options');\n if (isOptionGroup) {\n option.options.forEach((nestedOption) => {\n options.push(nestedOption);\n });\n } else {\n options.push(option);\n }\n });\n\n return options;\n }\n\n _createOptionObject(nativeOption, group = {}) {\n const id = nativeOption.id ? `option-${nativeOption.id}` : getUID('option-');\n const groupId = group.id ? group.id : null;\n const groupDisabled = group.disabled ? group.disabled : false;\n const selected = nativeOption.selected || nativeOption.hasAttribute('selected');\n const disabled = nativeOption.hasAttribute('disabled') || groupDisabled;\n const hidden = nativeOption.hasAttribute('hidden') || (group && group.hidden);\n const multiple = this.multiple;\n const value = nativeOption.value;\n const label = nativeOption.label;\n const secondaryText = Manipulator.getDataAttribute(nativeOption, 'secondaryText');\n const icon = Manipulator.getDataAttribute(nativeOption, 'icon');\n return new SelectOption(\n id,\n nativeOption,\n multiple,\n value,\n label,\n selected,\n disabled,\n hidden,\n secondaryText,\n groupId,\n icon\n );\n }\n\n _getNavigationOptions() {\n const availableOptions = this.options.filter((option) => !option.hidden);\n\n return this.hasSelectAll ? [this._selectAllOption, ...availableOptions] : availableOptions;\n }\n\n _init() {\n this._renderMaterialWrapper();\n\n this._wrapper = SelectorEngine.findOne(`#${this._wrapperId}`);\n this._input = SelectorEngine.findOne(SELECTOR_INPUT, this._wrapper);\n\n if (this._element.getAttribute('autocomplete') === 'off') {\n this._input.setAttribute('autocomplete', 'off');\n }\n const containerSelector = this._config.container;\n\n if (containerSelector === 'body') {\n this._container = document.body;\n } else {\n this._container = SelectorEngine.findOne(containerSelector);\n }\n\n this._initOutlineInput();\n this._setDefaultSelections();\n this._updateInputValue();\n this._appendFakeValue();\n this._updateFakeLabelPosition();\n this._updateLabelPosition();\n this._updateClearButtonVisibility();\n\n this._bindComponentEvents();\n\n if (this.hasSelectAll) {\n this._selectAllOption = this._createSelectAllOption();\n }\n\n this._dropdownContainer = getDropdownTemplate(\n this._dropdownContainerId,\n this._config,\n this._input.offsetWidth,\n this._dropdownHeight,\n this._selectAllOption,\n this._optionsToRender,\n this._customContent\n );\n\n this._setFirstActiveOption();\n }\n\n _renderMaterialWrapper() {\n const template = getWrapperTemplate(this._wrapperId, this._config, this._label);\n this._element.parentNode.insertBefore(template, this._element);\n Manipulator.addClass(this._element, CLASS_NAME_INITIALIZED);\n template.appendChild(this._element);\n }\n\n _initOutlineInput() {\n const inputWrapper = SelectorEngine.findOne(SELECTOR_FORM_OUTLINE, this._wrapper);\n const outlineInput = new Input(inputWrapper);\n outlineInput.init();\n }\n\n _updateOutlineInput() {\n const inputWrapper = SelectorEngine.findOne(SELECTOR_FORM_OUTLINE, this._wrapper);\n Input.getInstance(inputWrapper).update();\n }\n\n _bindComponentEvents() {\n this._listenToComponentKeydown();\n this._listenToWrapperClick();\n if (!this._config.disabled) {\n this._listenToClearBtnClick();\n this._listenToClearBtnKeydown();\n }\n }\n\n _setDefaultSelections() {\n this.options.forEach((option) => {\n if (option.selected) {\n this._selectionModel.select(option);\n }\n });\n }\n\n _listenToComponentKeydown() {\n this._wrapperKeydownHandler = this._handleKeydown.bind(this);\n\n EventHandler.on(this._wrapper, 'keydown', this._wrapperKeydownHandler);\n }\n\n _handleKeydown(event) {\n if (this._isOpen && !this._config.filter) {\n this._handleOpenKeydown(event);\n } else {\n this._handleClosedKeydown(event);\n }\n }\n\n _handleOpenKeydown(event) {\n const key = event.keyCode;\n const isCloseKey =\n key === ESCAPE || ((key === UP_ARROW || key === DOWN_ARROW) && event.altKey) || key === TAB;\n\n if (key === TAB && this._config.autoSelect && !this.multiple) {\n this._handleAutoSelection(this._activeOption);\n }\n\n if (isCloseKey) {\n this.close();\n this._input.focus();\n return;\n }\n\n switch (key) {\n case DOWN_ARROW:\n this._setNextOptionActive();\n this._scrollToOption(this._activeOption);\n break;\n case UP_ARROW:\n this._setPreviousOptionActive();\n this._scrollToOption(this._activeOption);\n break;\n case HOME:\n this._setFirstOptionActive();\n this._scrollToOption(this._activeOption);\n break;\n case END:\n this._setLastOptionActive();\n this._scrollToOption(this._activeOption);\n break;\n case ENTER:\n event.preventDefault();\n if (this._activeOption) {\n if (this.hasSelectAll && this._activeOptionIndex === 0) {\n this._handleSelectAll();\n } else {\n this._handleSelection(this._activeOption);\n }\n }\n return;\n default:\n return;\n }\n\n event.preventDefault();\n }\n\n _handleClosedKeydown(event) {\n const key = event.keyCode;\n if (key === ENTER) {\n event.preventDefault();\n }\n const isOpenKey =\n key === ENTER ||\n ((key === DOWN_ARROW || key === UP_ARROW) && event.altKey) ||\n (key === DOWN_ARROW && this.multiple);\n\n if (isOpenKey) {\n this.open();\n }\n\n if (!this.multiple) {\n switch (key) {\n case DOWN_ARROW:\n if (event.altKey) return;\n this._setNextOptionActive();\n this._handleSelection(this._activeOption);\n break;\n case UP_ARROW:\n if (event.altKey) return;\n this._setPreviousOptionActive();\n this._handleSelection(this._activeOption);\n break;\n case HOME:\n this._setFirstOptionActive();\n this._handleSelection(this._activeOption);\n break;\n case END:\n this._setLastOptionActive();\n this._handleSelection(this._activeOption);\n break;\n default:\n return;\n }\n } else {\n switch (key) {\n case DOWN_ARROW:\n this.open();\n break;\n case UP_ARROW:\n this.open();\n break;\n default:\n return;\n }\n }\n\n event.preventDefault();\n }\n\n _scrollToOption(option) {\n if (!option) {\n return;\n }\n\n let optionIndex;\n\n const visibleOptions = this.options.filter((option) => !option.hidden);\n\n if (this.hasSelectAll) {\n optionIndex = visibleOptions.indexOf(option) + 1;\n } else {\n optionIndex = visibleOptions.indexOf(option);\n }\n\n const groupsNumber = this._getNumberOfGroupsBeforeOption(optionIndex);\n\n const scrollToIndex = optionIndex + groupsNumber;\n\n const list = this.optionsWrapper;\n const listHeight = list.offsetHeight;\n const optionHeight = this._config.optionHeight;\n const scrollTop = list.scrollTop;\n\n if (optionIndex > -1) {\n const optionOffset = scrollToIndex * optionHeight;\n const isBelow = optionOffset + optionHeight > scrollTop + listHeight;\n const isAbove = optionOffset < scrollTop;\n\n if (isAbove) {\n list.scrollTop = optionOffset;\n } else if (isBelow) {\n list.scrollTop = optionOffset - listHeight + optionHeight;\n } else {\n list.scrollTop = scrollTop;\n }\n }\n }\n\n _getNumberOfGroupsBeforeOption(optionIndex) {\n const optionsList = this.options.filter((option) => !option.hidden);\n const groupsList = this._optionsToRender.filter((group) => !group.hidden);\n const index = this.hasSelectAll ? optionIndex - 1 : optionIndex;\n let groupsNumber = 0;\n\n for (let i = 0; i <= index; i++) {\n if (\n optionsList[i].groupId &&\n groupsList[groupsNumber] &&\n groupsList[groupsNumber].id &&\n optionsList[i].groupId === groupsList[groupsNumber].id\n ) {\n groupsNumber++;\n }\n }\n\n return groupsNumber;\n }\n\n _setNextOptionActive() {\n let index = this._activeOptionIndex + 1;\n const options = this._getNavigationOptions();\n\n if (!options[index]) {\n return;\n }\n\n while (options[index].disabled) {\n index += 1;\n\n if (!options[index]) {\n return;\n }\n }\n\n this._updateActiveOption(options[index], index);\n }\n\n _setPreviousOptionActive() {\n let index = this._activeOptionIndex - 1;\n const options = this._getNavigationOptions();\n\n if (!options[index]) {\n return;\n }\n\n while (options[index].disabled) {\n index -= 1;\n\n if (!options[index]) {\n return;\n }\n }\n\n this._updateActiveOption(options[index], index);\n }\n\n _setFirstOptionActive() {\n const index = 0;\n const options = this._getNavigationOptions();\n\n this._updateActiveOption(options[index], index);\n }\n\n _setLastOptionActive() {\n const options = this._getNavigationOptions();\n const index = options.length - 1;\n\n this._updateActiveOption(options[index], index);\n }\n\n _updateActiveOption(newActiveOption, index) {\n const currentActiveOption = this._activeOption;\n\n if (currentActiveOption) {\n currentActiveOption.removeActiveStyles();\n }\n\n newActiveOption.setActiveStyles();\n this._activeOptionIndex = index;\n this._activeOption = newActiveOption;\n }\n\n _listenToWrapperClick() {\n EventHandler.on(this._wrapper, 'click', () => {\n this.toggle();\n });\n }\n\n _listenToClearBtnClick() {\n EventHandler.on(this.clearButton, 'click', (event) => {\n event.preventDefault();\n event.stopPropagation();\n this._handleClear();\n });\n }\n\n _listenToClearBtnKeydown() {\n EventHandler.on(this.clearButton, 'keydown', (event) => {\n if (event.keyCode === ENTER) {\n this._handleClear();\n event.preventDefault();\n event.stopPropagation();\n }\n });\n }\n\n _handleClear() {\n if (this.multiple) {\n this._selectionModel.clear();\n this._deselectAllOptions(this.options);\n\n if (this.hasSelectAll) {\n this._updateSelectAllState();\n }\n } else {\n const selected = this._selectionModel.selection;\n this._selectionModel.clear();\n selected.deselect();\n }\n\n if (this._optionsToRender[0].hidden === true) {\n this._singleOptionSelect(this._optionsToRender[0]);\n } else {\n this._emitValueChangeEvent(null);\n this._emitNativeChangeEvent();\n }\n\n this._updateInputValue();\n this._updateFakeLabelPosition();\n this._updateLabelPosition();\n this._updateClearButtonVisibility();\n }\n\n _listenToOptionsClick() {\n EventHandler.on(this.optionsWrapper, 'click', (event) => {\n const optionGroupLabel = event.target.classList.contains(CLASS_NAME_OPTION_GROUP_LABEL);\n\n if (optionGroupLabel) {\n return;\n }\n\n const target =\n event.target.nodeName === 'DIV'\n ? event.target\n : SelectorEngine.closest(event.target, SELECTOR_OPTION);\n const selectAllOption = target.classList.contains(CLASS_NAME_SELECT_ALL_OPTION);\n\n if (selectAllOption) {\n this._handleSelectAll();\n return;\n }\n\n const id = target.dataset.mdbId;\n const option = this.options.find((option) => option.id === id);\n\n if (option && !option.disabled) {\n this._handleSelection(option);\n }\n });\n }\n\n _handleSelectAll() {\n const selected = this._selectAllOption.selected;\n\n if (selected) {\n this._deselectAllOptions(this.options);\n this._selectAllOption.deselect();\n } else {\n this._selectAllOptions(this.options);\n this._selectAllOption.select();\n }\n\n this._updateInputValue();\n this._updateFakeLabelPosition();\n this._updateLabelPosition();\n this._updateClearButtonVisibility();\n\n this._emitValueChangeEvent(this.value);\n this._emitNativeChangeEvent();\n }\n\n _selectAllOptions(options) {\n options.forEach((option) => {\n if (!option.selected && !option.disabled) {\n this._selectionModel.select(option);\n option.select();\n }\n });\n }\n\n _deselectAllOptions(options) {\n options.forEach((option) => {\n if (option.selected && !option.disabled) {\n this._selectionModel.deselect(option);\n option.deselect();\n }\n });\n }\n\n _handleSelection(option) {\n if (this.multiple) {\n this._handleMultiSelection(option);\n\n if (this.hasSelectAll) {\n this._updateSelectAllState();\n }\n } else {\n this._handleSingleSelection(option);\n }\n\n this._updateInputValue();\n this._updateFakeLabelPosition();\n this._updateLabelPosition();\n this._updateClearButtonVisibility();\n this._updateOutlineInput();\n }\n\n _handleAutoSelection(option) {\n this._singleOptionSelect(option);\n this._updateInputValue();\n this._updateFakeLabelPosition();\n this._updateLabelPosition();\n this._updateClearButtonVisibility();\n this._updateOutlineInput();\n }\n\n _handleSingleSelection(option) {\n this._singleOptionSelect(option);\n this.close();\n this._input.focus();\n }\n\n _singleOptionSelect(option) {\n const currentSelected = this._selectionModel.selections[0];\n\n if (currentSelected && currentSelected !== option) {\n this._selectionModel.deselect(currentSelected);\n currentSelected.deselect();\n currentSelected.node.setAttribute('selected', false);\n EventHandler.trigger(this._element, EVENT_DESELECTED, { value: currentSelected.value });\n }\n\n if (!currentSelected || (currentSelected && option !== currentSelected)) {\n this._selectionModel.select(option);\n option.select();\n option.node.setAttribute('selected', true);\n EventHandler.trigger(this._element, EVENT_SELECTED, { value: option.value });\n this._emitValueChangeEvent(this.value);\n this._emitNativeChangeEvent();\n }\n }\n\n _handleMultiSelection(option) {\n if (option.selected) {\n this._selectionModel.deselect(option);\n option.deselect();\n option.node.setAttribute('selected', false);\n EventHandler.trigger(this._element, EVENT_DESELECTED, { value: option.value });\n } else {\n this._selectionModel.select(option);\n option.select();\n option.node.setAttribute('selected', true);\n EventHandler.trigger(this._element, EVENT_SELECTED, { value: option.value });\n }\n\n this._emitValueChangeEvent(this.value);\n this._emitNativeChangeEvent();\n }\n\n _emitValueChangeEvent(value) {\n EventHandler.trigger(this._element, EVENT_VALUE_CHANGED, { value });\n }\n\n _emitNativeChangeEvent() {\n EventHandler.trigger(this._element, EVENT_CHANGE_NATIVE);\n }\n\n _updateInputValue() {\n const labels = this.multiple ? this._selectionModel.labels : this._selectionModel.label;\n let value;\n\n if (\n this.multiple &&\n this._config.displayedLabels !== -1 &&\n this._selectionModel.selections.length > this._config.displayedLabels\n ) {\n value = `${this._selectionModel.selections.length} ${this._config.optionsSelectedLabel}`;\n } else {\n value = labels;\n }\n\n if (!this.multiple && !this._isSelectionValid(this._selectionModel.selection)) {\n this._input.value = '';\n } else if (this._isLabelEmpty(this._selectionModel.selection)) {\n this._input.value = ' ';\n } else if (value) {\n this._input.value = value;\n } else {\n // prettier-ignore\n // eslint-disable-next-line\n this.multiple || !this._optionsToRender[0] || this._config.placeholder ? (this._input.value = '') : (this._input.value = this._optionsToRender[0].label);\n }\n }\n\n _isSelectionValid(selection) {\n if (selection && (selection.disabled || selection.value === '')) {\n return false;\n }\n\n return true;\n }\n\n _isLabelEmpty(selection) {\n if (selection && selection.label === '') {\n return true;\n }\n\n return false;\n }\n\n _appendFakeValue() {\n if (\n !this._selectionModel.selection ||\n this._selectionModel._multiple ||\n this._config.placeholder\n ) {\n return;\n }\n\n const value = this._selectionModel.selection.label;\n this._fakeValue = getFakeValueTemplate(value);\n const inputWrapper = SelectorEngine.findOne(SELECTOR_FORM_OUTLINE, this._wrapper);\n inputWrapper.appendChild(this._fakeValue);\n }\n\n _updateLabelPosition() {\n const isInitialized = Manipulator.hasClass(this._element, CLASS_NAME_INITIALIZED);\n const isValueEmpty = this._input.value !== '';\n if (!this._label) {\n return;\n }\n\n if (isInitialized && (isValueEmpty || this._isOpen || this._isFakeValueActive)) {\n Manipulator.addClass(this._label, CLASS_NAME_ACTIVE);\n } else {\n Manipulator.removeClass(this._label, CLASS_NAME_ACTIVE);\n }\n }\n\n _updateLabelPositionWhileClosing() {\n if (!this._label) {\n return;\n }\n\n if (this._input.value !== '' || this._isFakeValueActive) {\n Manipulator.addClass(this._label, CLASS_NAME_ACTIVE);\n } else {\n Manipulator.removeClass(this._label, CLASS_NAME_ACTIVE);\n }\n }\n\n _updateFakeLabelPosition() {\n if (!this._fakeValue) {\n return;\n }\n\n if (this.hasSelection) {\n this._fakeValue.textContent = this.hasSelection.label;\n }\n\n if (this._input.value === '' && this._fakeValue.innerHTML !== '') {\n this._isFakeValueActive = true;\n Manipulator.addClass(this._fakeValue, CLASS_NAME_ACTIVE);\n } else {\n this._isFakeValueActive = false;\n Manipulator.removeClass(this._fakeValue, CLASS_NAME_ACTIVE);\n }\n }\n\n _updateClearButtonVisibility() {\n if (!this.clearButton) {\n return;\n }\n\n if (\n (this._optionsToRender[0].hidden && this._optionsToRender[0].selected) ||\n !this.hasSelection\n ) {\n Manipulator.addStyle(this.clearButton, { display: 'none' });\n } else {\n Manipulator.addStyle(this.clearButton, { display: 'block' });\n }\n }\n\n _updateSelectAllState() {\n const selectAllSelected = this._selectAllOption.selected;\n const allSelected = allOptionsSelected(this.options);\n if (!allSelected && selectAllSelected) {\n this._selectAllOption.deselect();\n } else if (allSelected && !selectAllSelected) {\n this._selectAllOption.select();\n }\n }\n\n toggle() {\n if (this._isOpen) {\n this.close();\n } else {\n this.open();\n }\n }\n\n open() {\n const isDisabled = this._config.disabled;\n const openEvent = EventHandler.trigger(this._element, EVENT_OPEN);\n\n if (this._isOpen || isDisabled || openEvent.defaultPrevented) {\n return;\n }\n\n this._openDropdown();\n this._updateDropdownWidth();\n this._setFirstActiveOption();\n this._scrollToOption(this._activeOption);\n\n if (this._config.filter) {\n // We need to wait for popper initialization, otherwise\n // dates container will be focused before popper position\n // update which can change the scroll position on the page\n setTimeout(() => {\n this.filterInput.focus();\n this._filterOptions(this.filterInput.value);\n }, 0);\n\n this._listenToSelectSearch();\n\n // New listener for dropdown navigation is needed, because\n // we focus search input inside dropdown template, which is\n // appended to the body. In this case listener attached to the\n // select wrapper won't work\n this._listenToDropdownKeydown();\n }\n\n this._listenToOptionsClick();\n this._listenToOutsideClick();\n this._listenToWindowResize();\n\n this._isOpen = true;\n this._input.setAttribute('aria-expanded', true);\n EventHandler.trigger(this._element, EVENT_OPENED);\n\n this._updateLabelPosition();\n this._setInputActiveStyles();\n }\n\n _openDropdown() {\n this._popper = createPopper(this._input, this._dropdownContainer, {\n placement: 'bottom-start',\n modifiers: [\n {\n name: 'offset',\n options: {\n offset: [0, 1],\n },\n },\n ],\n });\n this._container.appendChild(this._dropdownContainer);\n\n // We need to add delay to wait for the popper initialization\n // and position update\n setTimeout(() => {\n Manipulator.addClass(this.dropdown, CLASS_NAME_OPEN);\n }, 0);\n }\n\n _updateDropdownWidth() {\n const inputWidth = this._input.offsetWidth;\n Manipulator.addStyle(this._dropdownContainer, { width: `${inputWidth}px` });\n }\n\n _setFirstActiveOption() {\n const options = this._getNavigationOptions();\n const currentActive = this._activeOption;\n\n if (currentActive) {\n currentActive.removeActiveStyles();\n }\n\n const firstSelected = this.multiple\n ? this._selectionModel.selections[0]\n : this._selectionModel.selection;\n\n if (firstSelected) {\n this._activeOption = firstSelected;\n firstSelected.setActiveStyles();\n this._activeOptionIndex = options.findIndex((option) => option === firstSelected);\n } else {\n this._activeOption = null;\n this._activeOptionIndex = -1;\n }\n }\n\n _setInputActiveStyles() {\n Manipulator.addClass(this._input, CLASS_NAME_FOCUSED);\n }\n\n _listenToWindowResize() {\n this._windowResizeHandler = this._handleWindowResize.bind(this);\n\n EventHandler.on(window, 'resize', this._windowResizeHandler);\n }\n\n _handleWindowResize() {\n if (this._dropdownContainer) {\n this._updateDropdownWidth();\n }\n }\n\n _listenToSelectSearch() {\n this.filterInput.addEventListener('input', (event) => {\n const searchTerm = event.target.value;\n const debounceTime = this._config.filterDebounce;\n const searchEvent = EventHandler.trigger(this._element, EVENT_SEARCH, { value: searchTerm });\n\n if (searchEvent.defaultPrevented) {\n return;\n }\n\n this._debounceFilter(searchTerm, debounceTime);\n });\n }\n\n _debounceFilter(searchTerm, debounceTime) {\n if (this._debounceTimeoutId) {\n clearTimeout(this._debounceTimeoutId);\n }\n\n this._debounceTimeoutId = setTimeout(() => {\n this._filterOptions(searchTerm);\n }, debounceTime);\n }\n\n _filterOptions(searchTerm) {\n const filtered = [];\n const filterFn = this._config.filterFn;\n\n this._optionsToRender.forEach((option) => {\n const isOptionGroup = option.hasOwnProperty('options');\n const isValidOption =\n !isOptionGroup && option.label.toLowerCase().includes(searchTerm.toLowerCase());\n const group = {};\n\n if (isOptionGroup) {\n group.label = option.label;\n group.options = this._filter(searchTerm, option.options);\n\n if (group.options.length > 0) {\n filtered.push(group);\n }\n }\n\n if (filterFn && !isOptionGroup) {\n const customSearchResult = filterFn(searchTerm, option);\n if (customSearchResult) {\n filtered.push(option);\n }\n } else if (isValidOption) {\n filtered.push(option);\n }\n });\n\n const hasNoResultsText = this._config.noResultText !== '';\n const hasFilteredOptions = filtered.length !== 0;\n\n if (hasFilteredOptions) {\n this._updateOptionsListTemplate(filtered);\n this._popper.forceUpdate();\n this._filteredOptionsList = this._getPlainOptions(filtered);\n\n if (this.hasSelectAll) {\n this._updateSelectAllState();\n }\n\n this._setFirstActiveOption();\n } else if (!hasFilteredOptions && hasNoResultsText) {\n const noResultsTemplate = this._getNoResultTemplate();\n this.optionsWrapper.innerHTML = noResultsTemplate;\n }\n }\n\n _updateOptionsListTemplate(optionsToRender) {\n const optionsWrapperContent =\n SelectorEngine.findOne(SELECTOR_OPTIONS_LIST, this._dropdownContainer) ||\n SelectorEngine.findOne(SELECTOR_NO_RESULTS, this._dropdownContainer);\n\n const optionsListTemplate = getOptionsListTemplate(\n optionsToRender,\n this._selectAllOption,\n this._config\n );\n this.optionsWrapper.removeChild(optionsWrapperContent);\n this.optionsWrapper.appendChild(optionsListTemplate);\n }\n\n _getNoResultTemplate() {\n return `
${this._config.noResultText}
`;\n }\n\n _filter(value, options) {\n const filterFn = this._config.filterFn;\n if (filterFn) {\n return options.filter((option) => filterFn(value, option) && !option.hidden);\n }\n const filterValue = value.toLowerCase();\n return options.filter(\n (option) => option.label.toLowerCase().includes(filterValue) && !option.hidden\n );\n }\n\n _listenToDropdownKeydown() {\n this._dropdownKeydownHandler = this._handleOpenKeydown.bind(this);\n\n EventHandler.on(this.dropdown, 'keydown', this._dropdownKeydownHandler);\n }\n\n _listenToOutsideClick() {\n this._outsideClickHandler = this._handleOutSideClick.bind(this);\n\n EventHandler.on(document, 'click', this._outsideClickHandler);\n }\n\n _handleOutSideClick(event) {\n const isSelectContent = this._wrapper && this._wrapper.contains(event.target);\n const isDropdown = event.target === this._dropdownContainer;\n const isDropdownContent =\n this._dropdownContainer && this._dropdownContainer.contains(event.target);\n\n let isButton;\n if (!this._toggleButton) {\n this._elementToggle = SelectorEngine.find(SELECTOR_TOGGLE);\n }\n if (this._elementToggle) {\n this._elementToggle.forEach((button) => {\n const attributes = Manipulator.getDataAttribute(button, 'toggle');\n if (attributes === this._element.id || this._element.classList.contains(attributes)) {\n this._toggleButton = button;\n isButton = this._toggleButton.contains(event.target);\n }\n });\n }\n\n if (!isSelectContent && !isDropdown && !isDropdownContent && !isButton) {\n this.close();\n }\n }\n\n close() {\n const closeEvent = EventHandler.trigger(this._element, EVENT_CLOSE);\n\n if (!this._isOpen || closeEvent.defaultPrevented) {\n return;\n }\n\n if (this._config.filter && this.hasSelectAll) {\n this._resetFilterState();\n this._updateOptionsListTemplate(this._optionsToRender);\n if (this._config.multiple) {\n this._updateSelectAllState();\n }\n }\n\n this._removeDropdownEvents();\n\n Manipulator.removeClass(this.dropdown, CLASS_NAME_OPEN);\n\n setTimeout(() => {\n Manipulator.removeClass(this._input, CLASS_NAME_FOCUSED);\n if (this._label && !this.hasSelection) {\n Manipulator.removeClass(this._label, CLASS_NAME_ACTIVE);\n Manipulator.removeClass(this._input, CLASS_NAME_ACTIVE);\n }\n this._updateLabelPositionWhileClosing();\n }, 0);\n\n setTimeout(() => {\n if (this._container && this._dropdownContainer.parentNode === this._container) {\n this._container.removeChild(this._dropdownContainer);\n }\n this._popper.destroy();\n this._isOpen = false;\n this._input.setAttribute('aria-expanded', false);\n EventHandler.off(this.dropdown, 'transitionend');\n EventHandler.trigger(this._element, EVENT_CLOSED);\n }, ANIMATION_TRANSITION_TIME);\n }\n\n _resetFilterState() {\n this.filterInput.value = '';\n this._filteredOptionsList = null;\n }\n\n _removeDropdownEvents() {\n EventHandler.off(document, 'click', this._outsideClickHandler);\n\n if (this._config.filter) {\n EventHandler.off(this.dropdown, 'keydown');\n }\n\n EventHandler.off(this.optionsWrapper, 'click');\n }\n\n _addMutationObserver() {\n this._mutationObserver = new MutationObserver(() => {\n if (this._wrapper) {\n this._updateSelections();\n this._updateDisabledState();\n }\n });\n\n this._observeMutationObserver();\n }\n\n _updateSelections() {\n this._optionsToRender = this._getOptionsToRender(this._element);\n this._plainOptions = this._getPlainOptions(this._optionsToRender);\n this._selectionModel.clear();\n this._setDefaultSelections();\n this._updateInputValue();\n this._updateFakeLabelPosition();\n this._updateLabelPosition();\n this._updateClearButtonVisibility();\n\n if (this.hasSelectAll) {\n this._updateSelectAllState();\n }\n\n const hasFilterValue = this._config.filter && this.filterInput && this.filterInput.value;\n\n if (this._isOpen && !hasFilterValue) {\n this._updateOptionsListTemplate(this._optionsToRender);\n this._setFirstActiveOption();\n } else if (this._isOpen && hasFilterValue) {\n this._filterOptions(this.filterInput.value);\n this._setFirstActiveOption();\n } else {\n this._dropdownContainer = getDropdownTemplate(\n this._dropdownContainerId,\n this._config,\n this._input.offsetWidth,\n this._dropdownHeight,\n this._selectAllOption,\n this._optionsToRender,\n this._customContent\n );\n }\n }\n\n _updateDisabledState() {\n const input = SelectorEngine.findOne(SELECTOR_INPUT, this._wrapper);\n\n if (this._element.hasAttribute('disabled')) {\n this._config.disabled = true;\n input.setAttribute('disabled', '');\n } else {\n this._config.disabled = false;\n input.removeAttribute('disabled');\n }\n }\n\n _observeMutationObserver() {\n if (!this._mutationObserver) {\n return;\n }\n\n this._mutationObserver.observe(this._element, {\n attributes: true,\n childList: true,\n characterData: true,\n subtree: true,\n });\n }\n\n _disconnectMutationObserver() {\n if (this._mutationObserver) {\n this._mutationObserver.disconnect();\n this._mutationObserver = null;\n }\n }\n\n _createSelectAllOption() {\n const id = this._selectAllId;\n const nativeOption = null;\n const multiple = true;\n const value = 'select-all';\n const label = this._config.selectAllLabel;\n const selected = allOptionsSelected(this.options);\n const disabled = false;\n const hidden = false;\n const secondaryText = null;\n const groupId = null;\n const icon = null;\n\n return new SelectOption(\n id,\n nativeOption,\n multiple,\n value,\n label,\n selected,\n disabled,\n hidden,\n secondaryText,\n groupId,\n icon\n );\n }\n\n dispose() {\n this._disconnectMutationObserver();\n this._removeComponentEvents();\n\n this._disconnectMutationObserver();\n\n this._destroyMaterialSelect();\n Manipulator.removeDataAttribute(this._element, `${this.constructor.NAME}-initialized`);\n\n super.dispose();\n }\n\n _removeComponentEvents() {\n EventHandler.off(this.input, 'click');\n EventHandler.off(this.wrapper, this._wrapperKeydownHandler);\n EventHandler.off(this.clearButton, 'click');\n EventHandler.off(this.clearButton, 'keydown');\n EventHandler.off(window, 'resize', this._windowResizeHandler);\n }\n\n _destroyMaterialSelect() {\n if (this._isOpen) {\n this.close();\n }\n\n this._destroyMaterialTemplate();\n }\n\n _destroyMaterialTemplate() {\n const wrapperParent = this._wrapper.parentNode;\n const labels = SelectorEngine.find('label', this._wrapper);\n\n wrapperParent.appendChild(this._element);\n labels.forEach((label) => {\n wrapperParent.appendChild(label);\n });\n\n labels.forEach((label) => {\n Manipulator.removeClass(label, CLASS_NAME_ACTIVE);\n });\n Manipulator.removeClass(this._element, CLASS_NAME_INITIALIZED);\n\n // restore custom content removed on init\n if (this._customContent) {\n wrapperParent.appendChild(this._customContent);\n }\n\n wrapperParent.removeChild(this._wrapper);\n }\n\n setValue(value) {\n this.options\n .filter((option) => option.selected)\n .forEach((selection) => (selection.nativeOption.selected = false));\n\n const isMultipleValue = Array.isArray(value);\n\n if (isMultipleValue) {\n value.forEach((selectionValue) => {\n this._selectByValue(selectionValue);\n });\n } else {\n this._selectByValue(value);\n }\n\n this._updateSelections();\n this._emitValueChangeEvent(value);\n this._updateOutlineInput();\n }\n\n _selectByValue(value) {\n const correspondingOption = this.options.find((option) => option.value === value);\n if (!correspondingOption) {\n return false;\n }\n correspondingOption.nativeOption.selected = true;\n return true;\n }\n\n static jQueryInterface(config, options) {\n return this.each(function () {\n let data = Data.getData(this, DATA_KEY);\n const _config = typeof config === 'object' && config;\n\n if (!data && /dispose/.test(config)) {\n return;\n }\n\n if (!data) {\n data = new Select(this, _config);\n }\n\n if (typeof config === 'string') {\n if (typeof data[config] === 'undefined') {\n throw new TypeError(`No method named \"${config}\"`);\n }\n\n data[config](options);\n }\n });\n }\n}\n\nexport default Select;\n","/*!\n * perfect-scrollbar v1.5.3\n * Copyright 2021 Hyunje Jun, MDBootstrap and Contributors\n * Licensed under MIT\n */\n\nfunction get(element) {\n return getComputedStyle(element);\n}\n\nfunction set(element, obj) {\n for (var key in obj) {\n var val = obj[key];\n if (typeof val === 'number') {\n val = val + \"px\";\n }\n element.style[key] = val;\n }\n return element;\n}\n\nfunction div(className) {\n var div = document.createElement('div');\n div.className = className;\n return div;\n}\n\nvar elMatches =\n typeof Element !== 'undefined' &&\n (Element.prototype.matches ||\n Element.prototype.webkitMatchesSelector ||\n Element.prototype.mozMatchesSelector ||\n Element.prototype.msMatchesSelector);\n\nfunction matches(element, query) {\n if (!elMatches) {\n throw new Error('No element matching method supported');\n }\n\n return elMatches.call(element, query);\n}\n\nfunction remove(element) {\n if (element.remove) {\n element.remove();\n } else {\n if (element.parentNode) {\n element.parentNode.removeChild(element);\n }\n }\n}\n\nfunction queryChildren(element, selector) {\n return Array.prototype.filter.call(element.children, function (child) { return matches(child, selector); }\n );\n}\n\nvar cls = {\n main: 'ps',\n rtl: 'ps__rtl',\n element: {\n thumb: function (x) { return (\"ps__thumb-\" + x); },\n rail: function (x) { return (\"ps__rail-\" + x); },\n consuming: 'ps__child--consume',\n },\n state: {\n focus: 'ps--focus',\n clicking: 'ps--clicking',\n active: function (x) { return (\"ps--active-\" + x); },\n scrolling: function (x) { return (\"ps--scrolling-\" + x); },\n },\n};\n\n/*\n * Helper methods\n */\nvar scrollingClassTimeout = { x: null, y: null };\n\nfunction addScrollingClass(i, x) {\n var classList = i.element.classList;\n var className = cls.state.scrolling(x);\n\n if (classList.contains(className)) {\n clearTimeout(scrollingClassTimeout[x]);\n } else {\n classList.add(className);\n }\n}\n\nfunction removeScrollingClass(i, x) {\n scrollingClassTimeout[x] = setTimeout(\n function () { return i.isAlive && i.element.classList.remove(cls.state.scrolling(x)); },\n i.settings.scrollingThreshold\n );\n}\n\nfunction setScrollingClassInstantly(i, x) {\n addScrollingClass(i, x);\n removeScrollingClass(i, x);\n}\n\nvar EventElement = function EventElement(element) {\n this.element = element;\n this.handlers = {};\n};\n\nvar prototypeAccessors = { isEmpty: { configurable: true } };\n\nEventElement.prototype.bind = function bind (eventName, handler) {\n if (typeof this.handlers[eventName] === 'undefined') {\n this.handlers[eventName] = [];\n }\n this.handlers[eventName].push(handler);\n this.element.addEventListener(eventName, handler, false);\n};\n\nEventElement.prototype.unbind = function unbind (eventName, target) {\n var this$1 = this;\n\n this.handlers[eventName] = this.handlers[eventName].filter(function (handler) {\n if (target && handler !== target) {\n return true;\n }\n this$1.element.removeEventListener(eventName, handler, false);\n return false;\n });\n};\n\nEventElement.prototype.unbindAll = function unbindAll () {\n for (var name in this.handlers) {\n this.unbind(name);\n }\n};\n\nprototypeAccessors.isEmpty.get = function () {\n var this$1 = this;\n\n return Object.keys(this.handlers).every(\n function (key) { return this$1.handlers[key].length === 0; }\n );\n};\n\nObject.defineProperties( EventElement.prototype, prototypeAccessors );\n\nvar EventManager = function EventManager() {\n this.eventElements = [];\n};\n\nEventManager.prototype.eventElement = function eventElement (element) {\n var ee = this.eventElements.filter(function (ee) { return ee.element === element; })[0];\n if (!ee) {\n ee = new EventElement(element);\n this.eventElements.push(ee);\n }\n return ee;\n};\n\nEventManager.prototype.bind = function bind (element, eventName, handler) {\n this.eventElement(element).bind(eventName, handler);\n};\n\nEventManager.prototype.unbind = function unbind (element, eventName, handler) {\n var ee = this.eventElement(element);\n ee.unbind(eventName, handler);\n\n if (ee.isEmpty) {\n // remove\n this.eventElements.splice(this.eventElements.indexOf(ee), 1);\n }\n};\n\nEventManager.prototype.unbindAll = function unbindAll () {\n this.eventElements.forEach(function (e) { return e.unbindAll(); });\n this.eventElements = [];\n};\n\nEventManager.prototype.once = function once (element, eventName, handler) {\n var ee = this.eventElement(element);\n var onceHandler = function (evt) {\n ee.unbind(eventName, onceHandler);\n handler(evt);\n };\n ee.bind(eventName, onceHandler);\n};\n\nfunction createEvent(name) {\n if (typeof window.CustomEvent === 'function') {\n return new CustomEvent(name);\n } else {\n var evt = document.createEvent('CustomEvent');\n evt.initCustomEvent(name, false, false, undefined);\n return evt;\n }\n}\n\nfunction processScrollDiff(\n i,\n axis,\n diff,\n useScrollingClass,\n forceFireReachEvent\n) {\n if ( useScrollingClass === void 0 ) useScrollingClass = true;\n if ( forceFireReachEvent === void 0 ) forceFireReachEvent = false;\n\n var fields;\n if (axis === 'top') {\n fields = [\n 'contentHeight',\n 'containerHeight',\n 'scrollTop',\n 'y',\n 'up',\n 'down' ];\n } else if (axis === 'left') {\n fields = [\n 'contentWidth',\n 'containerWidth',\n 'scrollLeft',\n 'x',\n 'left',\n 'right' ];\n } else {\n throw new Error('A proper axis should be provided');\n }\n\n processScrollDiff$1(i, diff, fields, useScrollingClass, forceFireReachEvent);\n}\n\nfunction processScrollDiff$1(\n i,\n diff,\n ref,\n useScrollingClass,\n forceFireReachEvent\n) {\n var contentHeight = ref[0];\n var containerHeight = ref[1];\n var scrollTop = ref[2];\n var y = ref[3];\n var up = ref[4];\n var down = ref[5];\n if ( useScrollingClass === void 0 ) useScrollingClass = true;\n if ( forceFireReachEvent === void 0 ) forceFireReachEvent = false;\n\n var element = i.element;\n\n // reset reach\n i.reach[y] = null;\n\n // 1 for subpixel rounding\n if (element[scrollTop] < 1) {\n i.reach[y] = 'start';\n }\n\n // 1 for subpixel rounding\n if (element[scrollTop] > i[contentHeight] - i[containerHeight] - 1) {\n i.reach[y] = 'end';\n }\n\n if (diff) {\n element.dispatchEvent(createEvent((\"ps-scroll-\" + y)));\n\n if (diff < 0) {\n element.dispatchEvent(createEvent((\"ps-scroll-\" + up)));\n } else if (diff > 0) {\n element.dispatchEvent(createEvent((\"ps-scroll-\" + down)));\n }\n\n if (useScrollingClass) {\n setScrollingClassInstantly(i, y);\n }\n }\n\n if (i.reach[y] && (diff || forceFireReachEvent)) {\n element.dispatchEvent(createEvent((\"ps-\" + y + \"-reach-\" + (i.reach[y]))));\n }\n}\n\nfunction toInt(x) {\n return parseInt(x, 10) || 0;\n}\n\nfunction isEditable(el) {\n return (\n matches(el, 'input,[contenteditable]') ||\n matches(el, 'select,[contenteditable]') ||\n matches(el, 'textarea,[contenteditable]') ||\n matches(el, 'button,[contenteditable]')\n );\n}\n\nfunction outerWidth(element) {\n var styles = get(element);\n return (\n toInt(styles.width) +\n toInt(styles.paddingLeft) +\n toInt(styles.paddingRight) +\n toInt(styles.borderLeftWidth) +\n toInt(styles.borderRightWidth)\n );\n}\n\nvar env = {\n isWebKit:\n typeof document !== 'undefined' &&\n 'WebkitAppearance' in document.documentElement.style,\n supportsTouch:\n typeof window !== 'undefined' &&\n ('ontouchstart' in window ||\n ('maxTouchPoints' in window.navigator &&\n window.navigator.maxTouchPoints > 0) ||\n (window.DocumentTouch && document instanceof window.DocumentTouch)),\n supportsIePointer:\n typeof navigator !== 'undefined' && navigator.msMaxTouchPoints,\n isChrome:\n typeof navigator !== 'undefined' &&\n /Chrome/i.test(navigator && navigator.userAgent),\n};\n\nfunction updateGeometry(i) {\n var element = i.element;\n var roundedScrollTop = Math.floor(element.scrollTop);\n var rect = element.getBoundingClientRect();\n\n i.containerWidth = Math.round(rect.width);\n i.containerHeight = Math.round(rect.height);\n\n i.contentWidth = element.scrollWidth;\n i.contentHeight = element.scrollHeight;\n\n if (!element.contains(i.scrollbarXRail)) {\n // clean up and append\n queryChildren(element, cls.element.rail('x')).forEach(function (el) { return remove(el); }\n );\n element.appendChild(i.scrollbarXRail);\n }\n if (!element.contains(i.scrollbarYRail)) {\n // clean up and append\n queryChildren(element, cls.element.rail('y')).forEach(function (el) { return remove(el); }\n );\n element.appendChild(i.scrollbarYRail);\n }\n\n if (\n !i.settings.suppressScrollX &&\n i.containerWidth + i.settings.scrollXMarginOffset < i.contentWidth\n ) {\n i.scrollbarXActive = true;\n i.railXWidth = i.containerWidth - i.railXMarginWidth;\n i.railXRatio = i.containerWidth / i.railXWidth;\n i.scrollbarXWidth = getThumbSize(\n i,\n toInt((i.railXWidth * i.containerWidth) / i.contentWidth)\n );\n i.scrollbarXLeft = toInt(\n ((i.negativeScrollAdjustment + element.scrollLeft) *\n (i.railXWidth - i.scrollbarXWidth)) /\n (i.contentWidth - i.containerWidth)\n );\n } else {\n i.scrollbarXActive = false;\n }\n\n if (\n !i.settings.suppressScrollY &&\n i.containerHeight + i.settings.scrollYMarginOffset < i.contentHeight\n ) {\n i.scrollbarYActive = true;\n i.railYHeight = i.containerHeight - i.railYMarginHeight;\n i.railYRatio = i.containerHeight / i.railYHeight;\n i.scrollbarYHeight = getThumbSize(\n i,\n toInt((i.railYHeight * i.containerHeight) / i.contentHeight)\n );\n i.scrollbarYTop = toInt(\n (roundedScrollTop * (i.railYHeight - i.scrollbarYHeight)) /\n (i.contentHeight - i.containerHeight)\n );\n } else {\n i.scrollbarYActive = false;\n }\n\n if (i.scrollbarXLeft >= i.railXWidth - i.scrollbarXWidth) {\n i.scrollbarXLeft = i.railXWidth - i.scrollbarXWidth;\n }\n if (i.scrollbarYTop >= i.railYHeight - i.scrollbarYHeight) {\n i.scrollbarYTop = i.railYHeight - i.scrollbarYHeight;\n }\n\n updateCss(element, i);\n\n if (i.scrollbarXActive) {\n element.classList.add(cls.state.active('x'));\n } else {\n element.classList.remove(cls.state.active('x'));\n i.scrollbarXWidth = 0;\n i.scrollbarXLeft = 0;\n element.scrollLeft = i.isRtl === true ? i.contentWidth : 0;\n }\n if (i.scrollbarYActive) {\n element.classList.add(cls.state.active('y'));\n } else {\n element.classList.remove(cls.state.active('y'));\n i.scrollbarYHeight = 0;\n i.scrollbarYTop = 0;\n element.scrollTop = 0;\n }\n}\n\nfunction getThumbSize(i, thumbSize) {\n if (i.settings.minScrollbarLength) {\n thumbSize = Math.max(thumbSize, i.settings.minScrollbarLength);\n }\n if (i.settings.maxScrollbarLength) {\n thumbSize = Math.min(thumbSize, i.settings.maxScrollbarLength);\n }\n return thumbSize;\n}\n\nfunction updateCss(element, i) {\n var xRailOffset = { width: i.railXWidth };\n var roundedScrollTop = Math.floor(element.scrollTop);\n\n if (i.isRtl) {\n xRailOffset.left =\n i.negativeScrollAdjustment +\n element.scrollLeft +\n i.containerWidth -\n i.contentWidth;\n } else {\n xRailOffset.left = element.scrollLeft;\n }\n if (i.isScrollbarXUsingBottom) {\n xRailOffset.bottom = i.scrollbarXBottom - roundedScrollTop;\n } else {\n xRailOffset.top = i.scrollbarXTop + roundedScrollTop;\n }\n set(i.scrollbarXRail, xRailOffset);\n\n var yRailOffset = { top: roundedScrollTop, height: i.railYHeight };\n if (i.isScrollbarYUsingRight) {\n if (i.isRtl) {\n yRailOffset.right =\n i.contentWidth -\n (i.negativeScrollAdjustment + element.scrollLeft) -\n i.scrollbarYRight -\n i.scrollbarYOuterWidth -\n 9;\n } else {\n yRailOffset.right = i.scrollbarYRight - element.scrollLeft;\n }\n } else {\n if (i.isRtl) {\n yRailOffset.left =\n i.negativeScrollAdjustment +\n element.scrollLeft +\n i.containerWidth * 2 -\n i.contentWidth -\n i.scrollbarYLeft -\n i.scrollbarYOuterWidth;\n } else {\n yRailOffset.left = i.scrollbarYLeft + element.scrollLeft;\n }\n }\n set(i.scrollbarYRail, yRailOffset);\n\n set(i.scrollbarX, {\n left: i.scrollbarXLeft,\n width: i.scrollbarXWidth - i.railBorderXWidth,\n });\n set(i.scrollbarY, {\n top: i.scrollbarYTop,\n height: i.scrollbarYHeight - i.railBorderYWidth,\n });\n}\n\nfunction clickRail(i) {\n var element = i.element;\n\n i.event.bind(i.scrollbarY, 'mousedown', function (e) { return e.stopPropagation(); });\n i.event.bind(i.scrollbarYRail, 'mousedown', function (e) {\n var positionTop =\n e.pageY -\n window.pageYOffset -\n i.scrollbarYRail.getBoundingClientRect().top;\n var direction = positionTop > i.scrollbarYTop ? 1 : -1;\n\n i.element.scrollTop += direction * i.containerHeight;\n updateGeometry(i);\n\n e.stopPropagation();\n });\n\n i.event.bind(i.scrollbarX, 'mousedown', function (e) { return e.stopPropagation(); });\n i.event.bind(i.scrollbarXRail, 'mousedown', function (e) {\n var positionLeft =\n e.pageX -\n window.pageXOffset -\n i.scrollbarXRail.getBoundingClientRect().left;\n var direction = positionLeft > i.scrollbarXLeft ? 1 : -1;\n\n i.element.scrollLeft += direction * i.containerWidth;\n updateGeometry(i);\n\n e.stopPropagation();\n });\n}\n\nfunction dragThumb(i) {\n bindMouseScrollHandler(i, [\n 'containerWidth',\n 'contentWidth',\n 'pageX',\n 'railXWidth',\n 'scrollbarX',\n 'scrollbarXWidth',\n 'scrollLeft',\n 'x',\n 'scrollbarXRail' ]);\n bindMouseScrollHandler(i, [\n 'containerHeight',\n 'contentHeight',\n 'pageY',\n 'railYHeight',\n 'scrollbarY',\n 'scrollbarYHeight',\n 'scrollTop',\n 'y',\n 'scrollbarYRail' ]);\n}\n\nfunction bindMouseScrollHandler(\n i,\n ref\n) {\n var containerHeight = ref[0];\n var contentHeight = ref[1];\n var pageY = ref[2];\n var railYHeight = ref[3];\n var scrollbarY = ref[4];\n var scrollbarYHeight = ref[5];\n var scrollTop = ref[6];\n var y = ref[7];\n var scrollbarYRail = ref[8];\n\n var element = i.element;\n\n var startingScrollTop = null;\n var startingMousePageY = null;\n var scrollBy = null;\n\n function mouseMoveHandler(e) {\n if (e.touches && e.touches[0]) {\n e[pageY] = e.touches[0].pageY;\n }\n element[scrollTop] =\n startingScrollTop + scrollBy * (e[pageY] - startingMousePageY);\n addScrollingClass(i, y);\n updateGeometry(i);\n\n e.stopPropagation();\n if (e.type.startsWith('touch') && e.changedTouches.length > 1) {\n e.preventDefault();\n }\n }\n\n function mouseUpHandler() {\n removeScrollingClass(i, y);\n i[scrollbarYRail].classList.remove(cls.state.clicking);\n i.event.unbind(i.ownerDocument, 'mousemove', mouseMoveHandler);\n }\n\n function bindMoves(e, touchMode) {\n startingScrollTop = element[scrollTop];\n if (touchMode && e.touches) {\n e[pageY] = e.touches[0].pageY;\n }\n startingMousePageY = e[pageY];\n scrollBy =\n (i[contentHeight] - i[containerHeight]) /\n (i[railYHeight] - i[scrollbarYHeight]);\n if (!touchMode) {\n i.event.bind(i.ownerDocument, 'mousemove', mouseMoveHandler);\n i.event.once(i.ownerDocument, 'mouseup', mouseUpHandler);\n e.preventDefault();\n } else {\n i.event.bind(i.ownerDocument, 'touchmove', mouseMoveHandler);\n }\n\n i[scrollbarYRail].classList.add(cls.state.clicking);\n\n e.stopPropagation();\n }\n\n i.event.bind(i[scrollbarY], 'mousedown', function (e) {\n bindMoves(e);\n });\n i.event.bind(i[scrollbarY], 'touchstart', function (e) {\n bindMoves(e, true);\n });\n}\n\nfunction keyboard(i) {\n var element = i.element;\n\n var elementHovered = function () { return matches(element, ':hover'); };\n var scrollbarFocused = function () { return matches(i.scrollbarX, ':focus') || matches(i.scrollbarY, ':focus'); };\n\n function shouldPreventDefault(deltaX, deltaY) {\n var scrollTop = Math.floor(element.scrollTop);\n if (deltaX === 0) {\n if (!i.scrollbarYActive) {\n return false;\n }\n if (\n (scrollTop === 0 && deltaY > 0) ||\n (scrollTop >= i.contentHeight - i.containerHeight && deltaY < 0)\n ) {\n return !i.settings.wheelPropagation;\n }\n }\n\n var scrollLeft = element.scrollLeft;\n if (deltaY === 0) {\n if (!i.scrollbarXActive) {\n return false;\n }\n if (\n (scrollLeft === 0 && deltaX < 0) ||\n (scrollLeft >= i.contentWidth - i.containerWidth && deltaX > 0)\n ) {\n return !i.settings.wheelPropagation;\n }\n }\n return true;\n }\n\n i.event.bind(i.ownerDocument, 'keydown', function (e) {\n if (\n (e.isDefaultPrevented && e.isDefaultPrevented()) ||\n e.defaultPrevented\n ) {\n return;\n }\n\n if (!elementHovered() && !scrollbarFocused()) {\n return;\n }\n\n var activeElement = document.activeElement\n ? document.activeElement\n : i.ownerDocument.activeElement;\n if (activeElement) {\n if (activeElement.tagName === 'IFRAME') {\n activeElement = activeElement.contentDocument.activeElement;\n } else {\n // go deeper if element is a webcomponent\n while (activeElement.shadowRoot) {\n activeElement = activeElement.shadowRoot.activeElement;\n }\n }\n if (isEditable(activeElement)) {\n return;\n }\n }\n\n var deltaX = 0;\n var deltaY = 0;\n\n switch (e.which) {\n case 37: // left\n if (e.metaKey) {\n deltaX = -i.contentWidth;\n } else if (e.altKey) {\n deltaX = -i.containerWidth;\n } else {\n deltaX = -30;\n }\n break;\n case 38: // up\n if (e.metaKey) {\n deltaY = i.contentHeight;\n } else if (e.altKey) {\n deltaY = i.containerHeight;\n } else {\n deltaY = 30;\n }\n break;\n case 39: // right\n if (e.metaKey) {\n deltaX = i.contentWidth;\n } else if (e.altKey) {\n deltaX = i.containerWidth;\n } else {\n deltaX = 30;\n }\n break;\n case 40: // down\n if (e.metaKey) {\n deltaY = -i.contentHeight;\n } else if (e.altKey) {\n deltaY = -i.containerHeight;\n } else {\n deltaY = -30;\n }\n break;\n case 32: // space bar\n if (e.shiftKey) {\n deltaY = i.containerHeight;\n } else {\n deltaY = -i.containerHeight;\n }\n break;\n case 33: // page up\n deltaY = i.containerHeight;\n break;\n case 34: // page down\n deltaY = -i.containerHeight;\n break;\n case 36: // home\n deltaY = i.contentHeight;\n break;\n case 35: // end\n deltaY = -i.contentHeight;\n break;\n default:\n return;\n }\n\n if (i.settings.suppressScrollX && deltaX !== 0) {\n return;\n }\n if (i.settings.suppressScrollY && deltaY !== 0) {\n return;\n }\n\n element.scrollTop -= deltaY;\n element.scrollLeft += deltaX;\n updateGeometry(i);\n\n if (shouldPreventDefault(deltaX, deltaY)) {\n e.preventDefault();\n }\n });\n}\n\nfunction wheel(i) {\n var element = i.element;\n\n function shouldPreventDefault(deltaX, deltaY) {\n var roundedScrollTop = Math.floor(element.scrollTop);\n var isTop = element.scrollTop === 0;\n var isBottom =\n roundedScrollTop + element.offsetHeight === element.scrollHeight;\n var isLeft = element.scrollLeft === 0;\n var isRight =\n element.scrollLeft + element.offsetWidth === element.scrollWidth;\n\n var hitsBound;\n\n // pick axis with primary direction\n if (Math.abs(deltaY) > Math.abs(deltaX)) {\n hitsBound = isTop || isBottom;\n } else {\n hitsBound = isLeft || isRight;\n }\n\n return hitsBound ? !i.settings.wheelPropagation : true;\n }\n\n function getDeltaFromEvent(e) {\n var deltaX = e.deltaX;\n var deltaY = -1 * e.deltaY;\n\n if (typeof deltaX === 'undefined' || typeof deltaY === 'undefined') {\n // OS X Safari\n deltaX = (-1 * e.wheelDeltaX) / 6;\n deltaY = e.wheelDeltaY / 6;\n }\n\n if (e.deltaMode && e.deltaMode === 1) {\n // Firefox in deltaMode 1: Line scrolling\n deltaX *= 10;\n deltaY *= 10;\n }\n\n if (deltaX !== deltaX && deltaY !== deltaY /* NaN checks */) {\n // IE in some mouse drivers\n deltaX = 0;\n deltaY = e.wheelDelta;\n }\n\n if (e.shiftKey) {\n // reverse axis with shift key\n return [-deltaY, -deltaX];\n }\n return [deltaX, deltaY];\n }\n\n function shouldBeConsumedByChild(target, deltaX, deltaY) {\n // FIXME: this is a workaround for \n \n `;\n};\n\nexport const getChip = ({ text }) => {\n return `
${text}
`;\n};\n","import { element, typeCheckConfig } from '../../mdb/util/index';\nimport Manipulator from '../../mdb/dom/manipulator';\nimport SelectorEngine from '../../mdb/dom/selector-engine';\nimport Data from '../../mdb/dom/data';\nimport EventHandler from '../../mdb/dom/event-handler';\nimport { getChip } from './templates';\nimport BaseComponent from '../../free/base-component';\nimport { bindCallbackEventsIfNeeded } from '../../autoinit/init';\n\n/**\n *\n * ------------------------------------------------------------------------\n * Constants\n * ------------------------------------------------------------------------\n */\n\nconst NAME = 'chip';\nconst DATA_KEY = `mdb.${NAME}`;\nconst SELECTOR_CLOSE = '.close';\nconst EVENT_DELETE = 'delete.mdb.chips';\nconst EVENT_SELECT = 'select.mdb.chip';\n\nconst DefaultType = { text: 'string', closeIcon: 'boolean', img: 'object' };\n\nconst Default = { text: '', closeIcon: false, img: { path: '', alt: '' } };\n\nclass Chip extends BaseComponent {\n constructor(element, data = {}) {\n super(element, data);\n this._options = this._getConfig(data);\n\n if (this._element) {\n Data.setData(element, DATA_KEY, this);\n }\n\n Manipulator.setDataAttribute(this._element, `${this.constructor.NAME}-initialized`, true);\n bindCallbackEventsIfNeeded(this.constructor);\n }\n\n // Getters\n\n static get NAME() {\n return NAME;\n }\n\n // Public\n\n init() {\n this._appendCloseIcon();\n this._handleDelete();\n this._handleTextChip();\n this._handleClickOnChip();\n }\n\n dispose() {\n EventHandler.off(this._element, 'click');\n Manipulator.removeDataAttribute(this._element, `${this.constructor.NAME}-initialized`);\n\n super.dispose();\n }\n\n appendChip() {\n const { text, closeIcon } = this._options;\n const chip = getChip({ text, closeIcon });\n\n return chip;\n }\n\n // Private\n\n _appendCloseIcon(el = this._element) {\n if (SelectorEngine.find(SELECTOR_CLOSE, this._element).length > 0) return;\n\n if (this._options.closeIcon) {\n const createIcon = element('i');\n createIcon.classList = 'close fas fa-times';\n\n el.insertAdjacentElement('beforeend', createIcon);\n }\n }\n\n _handleClickOnChip() {\n EventHandler.on(this._element, 'click', (event) => {\n const { textContent } = event.target;\n const obj = {};\n\n obj.tag = textContent.trim();\n\n EventHandler.trigger(EVENT_SELECT, { event, obj });\n });\n }\n\n _handleDelete() {\n const deleteElement = SelectorEngine.find(SELECTOR_CLOSE, this._element);\n if (deleteElement.length === 0) return;\n\n EventHandler.on(this._element, 'click', SELECTOR_CLOSE, () => {\n EventHandler.trigger(this._element, EVENT_DELETE);\n this._element.remove();\n });\n }\n\n _handleTextChip() {\n if (this._element.innerText !== '') return;\n\n this._element.innerText = this._options.text;\n }\n\n _getConfig(options) {\n const config = {\n ...Default,\n ...Manipulator.getDataAttributes(this._element),\n ...options,\n };\n typeCheckConfig(NAME, config, DefaultType);\n return config;\n }\n\n static jQueryInterface(config) {\n return this.each(function () {\n let data = Data.getData(this, DATA_KEY);\n const _config = typeof config === 'object' && config;\n\n if (!data && /dispose|hide/.test(config)) {\n return;\n }\n\n if (!data) {\n data = new Chip(this, _config);\n }\n\n if (typeof config === 'string') {\n if (typeof data[config] === 'undefined') {\n throw new TypeError(`No method named \"${config}\"`);\n }\n\n data[config]();\n }\n });\n }\n}\n\nexport default Chip;\n","import { typeCheckConfig, element } from '../../mdb/util/index';\nimport Manipulator from '../../mdb/dom/manipulator';\nimport SelectorEngine from '../../mdb/dom/selector-engine';\nimport Chip from './chip';\nimport Input from '../../free/input';\nimport Data from '../../mdb/dom/data';\nimport { getInputField } from './templates';\nimport EventHandler from '../../mdb/dom/event-handler';\nimport {\n LEFT_ARROW,\n RIGHT_ARROW,\n ENTER,\n BACKSPACE,\n UP_ARROW,\n DOWN_ARROW,\n DELETE,\n} from '../../mdb/util/keycodes';\nimport { bindCallbackEventsIfNeeded } from '../../autoinit/init';\n\n// import FocusTrap from '../../mdb/util/focusTrap';\n\n/**\n * ------------------------------------------------------------------------\n * Constants\n * ------------------------------------------------------------------------\n */\n\nconst NAME = 'chips';\n\nconst DATA_KEY = `mdb.${NAME}`;\n\nconst CLASSNAME_ACTIVE = 'active';\nconst CLASSNAME_CHIPS_INITIAL = `${NAME}-initial`;\nconst CLASSNAME_CHIPS_PLACEHOLDER = `${NAME}-placeholder`;\nconst CLASSNAME_CLOSE_OPACITY = 'close-opacity';\nconst CLASSNAME_CHIP_OPACITY = 'chip-opacity';\nconst CLASSNAME_CHIPS_PADDING = `${NAME}-padding`;\nconst CLASSNAME_CHIPS_TANSITION = `${NAME}-transition`;\nconst CLASSNAME_CHIPS_WRAPPER = `${NAME}-input-wrapper`;\n\nconst SELECTOR_CHIP = '.chip';\nconst SELECTOR_CHIP_ACTIVE = `${SELECTOR_CHIP}.${CLASSNAME_ACTIVE}`;\nconst SELECTOR_CLOSE = '.close';\n\nconst EVENT_ADD = 'add.mdb.chips';\nconst EVENT_ADDED = 'added.mdb.chips';\nconst EVENT_ARROW_DOWN = 'arrowDown.mdb.chips';\nconst EVENT_ARROW_LEFT = 'arrowLeft.mdb.chips';\nconst EVENT_ARROW_RIGHT = 'arrowRight.mdb.chips';\nconst EVENT_ARROW_UP = 'arrowUp.mdb.chips';\nconst EVENT_DELETE = 'delete.mdb.chips';\nconst EVENT_SELECT = 'select.mdb.chips';\n\nconst DefaultType = {\n inputID: 'string',\n parentSelector: 'string',\n initialValues: 'array',\n editable: 'boolean',\n labelText: 'string',\n};\n\nconst Default = {\n inputID: '',\n parentSelector: '',\n initialValues: [{ tag: 'init1' }, { tag: 'init2' }],\n editable: false,\n labelText: 'Example label',\n};\n\nclass ChipsInput extends Chip {\n constructor(element, data = {}) {\n super(element, data);\n this._options = this._getConfig(data);\n this.numberClicks = 0;\n this._inputInstance = null;\n\n this.init();\n Manipulator.setDataAttribute(this._element, `${this.constructor.NAME}-initialized`, true);\n bindCallbackEventsIfNeeded(this.constructor);\n }\n\n // Getters\n\n static get NAME() {\n return NAME;\n }\n\n get activeChip() {\n return SelectorEngine.findOne(SELECTOR_CHIP_ACTIVE, this._element);\n }\n\n get input() {\n return SelectorEngine.findOne('input', this._element);\n }\n\n get allChips() {\n return SelectorEngine.find(SELECTOR_CHIP, this._element);\n }\n\n get chipsInputWrapper() {\n return SelectorEngine.findOne(`.${CLASSNAME_CHIPS_WRAPPER}`, this._element);\n }\n\n // Public\n\n init() {\n this._setChipsClass();\n this._appendInputToElement(CLASSNAME_CHIPS_PLACEHOLDER);\n this._handleInitialValue();\n this._initializeInput();\n this._handleInputText();\n this._handleKeyboard();\n this._handleChipsOnSelect();\n this._handleEditable();\n this._handleChipsFocus();\n this._handleClicksOnChips();\n }\n\n dispose() {\n Manipulator.removeClass(this._element, 'chips');\n this.allChips.forEach((chip) => {\n const instance = Chip.getInstance(chip);\n if (instance) {\n chip.remove();\n EventHandler.off(chip, 'dblclick');\n instance.dispose();\n }\n });\n if (this._inputInstance) {\n this._inputInstance.dispose();\n }\n this.chipsInputWrapper.remove();\n EventHandler.off(this._element, 'click');\n EventHandler.off(this._element, 'keypress');\n Manipulator.removeDataAttribute(this._element, `${this.constructor.NAME}-initialized`);\n\n super.dispose();\n }\n\n // Private\n\n _initializeInput() {\n const formOutline = this._element.querySelector('.form-outline');\n\n this._inputInstance = new Input(formOutline).init();\n }\n\n _setChipsClass() {\n Manipulator.addClass(this._element, 'chips');\n }\n\n _handleDeleteEvents(event) {\n const [last] = this.allChips.slice(-1);\n\n if (this.activeChip === null) {\n last.remove();\n\n this._handleEvents(event, EVENT_DELETE);\n } else {\n const index = this.allChips.findIndex((chip) => chip === this.activeChip);\n const activeChipAfter = this._handleActiveChipAfterRemove(index);\n const arr = [];\n\n if (this.activeChip === null) return;\n\n this.activeChip.remove();\n this._handleEvents(event, EVENT_DELETE);\n\n this.numberClicks = index;\n\n Manipulator.addClass(activeChipAfter, CLASSNAME_ACTIVE);\n\n this.allChips.forEach((chip) => {\n if (Manipulator.hasClass(chip, CLASSNAME_ACTIVE)) {\n arr.push(chip);\n\n if (arr.length > 1) {\n this.allChips.forEach((chip) => chip.remove());\n }\n }\n });\n }\n }\n\n _handleUpEvents(event) {\n this.numberClicks += 1;\n\n if (this.numberClicks === this.allChips.length + 1) this.numberClicks = 0;\n\n this._handleRightKeyboardArrow(this.numberClicks);\n\n this._handleEvents(event, EVENT_ARROW_RIGHT);\n this._handleEvents(event, EVENT_ARROW_UP);\n }\n\n _handleDownEvents(event) {\n this.numberClicks -= 1;\n\n if (this.numberClicks <= 0) this.numberClicks = this.allChips.length;\n\n this._handleLeftKeyboardArrow(this.numberClicks);\n\n this._handleEvents(event, EVENT_ARROW_LEFT);\n this._handleEvents(event, EVENT_ARROW_DOWN);\n }\n\n _keyboardEvents(event) {\n const { target, keyCode, ctrlKey } = event;\n\n if (target.value.length > 0 || this.allChips.length === 0) return;\n\n if (keyCode === BACKSPACE || keyCode === DELETE) {\n this._handleDeleteEvents(event);\n } else if (keyCode === RIGHT_ARROW || keyCode === UP_ARROW) {\n this._handleUpEvents(event);\n } else if (keyCode === LEFT_ARROW || keyCode === DOWN_ARROW) {\n this._handleDownEvents(event);\n } else if (keyCode === 65 && ctrlKey) {\n this._handleAddActiveClass();\n }\n }\n\n _handleKeyboard() {\n EventHandler.on(this.input, 'keydown', (event) => this._keyboardEvents(event));\n }\n\n _handleEditable() {\n const { editable } = this._options;\n\n if (!editable) return;\n\n this.allChips.forEach((chip) => {\n EventHandler.on(chip, 'dblclick', (e) => {\n const close = SelectorEngine.findOne('.close', chip);\n\n chip.contentEditable = true;\n chip.focus();\n\n setTimeout(() => {\n Manipulator.addStyle(close, { display: 'none' });\n }, 200);\n Manipulator.addClass(close, 'close-opacity');\n\n const obj = {};\n\n obj.tag = e.target.textContent;\n\n EventHandler.trigger(chip, EVENT_SELECT, { event: e, allChips: this.allChips });\n });\n\n EventHandler.on(document, 'click', ({ target }) => {\n const close = SelectorEngine.findOne('.close', chip);\n const chipText = SelectorEngine.findOne('.text-chip', chip);\n\n const isContainer = target === chip;\n const isContainerContent = chip && chip.contains(target);\n\n if (!isContainer && !isContainerContent) {\n chip.contentEditable = false;\n if (chipText.textContent !== '') {\n setTimeout(() => {\n Manipulator.addStyle(close, { display: 'block' });\n Manipulator.removeClass(close, 'close-opacity');\n }, 160);\n }\n }\n\n if (chipText.textContent === '') {\n setTimeout(() => {\n Manipulator.addClass(chip, CLASSNAME_CHIP_OPACITY);\n }, 200);\n\n setTimeout(() => {\n chip.remove();\n }, 300);\n }\n });\n });\n }\n\n _handleRemoveActiveClass() {\n this.allChips.forEach((chip) => Manipulator.removeClass(chip, CLASSNAME_ACTIVE));\n }\n\n _handleAddActiveClass() {\n this.allChips.forEach((chip) => Manipulator.addClass(chip, CLASSNAME_ACTIVE));\n }\n\n _handleRightKeyboardArrow(num) {\n this._handleRemoveActiveClass();\n\n if (num === 0) num = 1;\n\n this._handleAddActiveClassWithKeyboard(num);\n }\n\n _handleLeftKeyboardArrow(num) {\n this._handleRemoveActiveClass();\n this._handleAddActiveClassWithKeyboard(num);\n }\n\n _handleActiveChipAfterRemove(index) {\n const chipIndex = index === 0 ? 1 : index - 1;\n\n return this.allChips[chipIndex];\n }\n\n _handleClicksOnChips() {\n EventHandler.on(this._element, 'click', () => {\n if (this.allChips.length === 0) {\n Manipulator.removeClass(this.chipsInputWrapper, CLASSNAME_CHIPS_PADDING);\n Manipulator.removeClass(this.input, CLASSNAME_ACTIVE);\n }\n });\n }\n\n _handleTextContent() {\n const arr = [];\n\n this.allChips.forEach((chip) => arr.push({ tag: chip.textContent.trim() }));\n\n return arr;\n }\n\n _handleEvents(event, eventName) {\n const arr = this._handleTextContent();\n\n const filterActive = this.allChips.filter(\n (chip) => Manipulator.hasClass(chip, CLASSNAME_ACTIVE) && chip\n );\n\n EventHandler.trigger(this._element, eventName, {\n event,\n allChips: this.allChips,\n arrOfObjects: arr,\n active: filterActive,\n activeObj: {\n tag: filterActive.length <= 0 ? '' : filterActive[0].textContent.trim(),\n },\n });\n }\n\n _handleChipsFocus() {\n EventHandler.on(this._element, 'click', ({ target: { classList } }) => {\n if (\n classList.contains('chip') ||\n classList.contains('close') ||\n classList.contains('text-chip')\n ) {\n return;\n }\n\n this.input.focus();\n });\n }\n\n _handleInitialValue() {\n this._appendInputToElement(CLASSNAME_CHIPS_INITIAL);\n\n if (Manipulator.hasClass(this._element, CLASSNAME_CHIPS_INITIAL)) {\n const { initialValues } = this._options;\n\n initialValues.forEach(({ tag }) => this._handleCreateChip(this.input, tag));\n\n Manipulator.addClass(this.input, CLASSNAME_ACTIVE);\n }\n\n if (this.allChips.length > 0) {\n Manipulator.addClass(this.chipsInputWrapper, CLASSNAME_CHIPS_PADDING);\n Manipulator.addClass(this.chipsInputWrapper, CLASSNAME_CHIPS_TANSITION);\n }\n }\n\n _handleKeysInputToElement(event) {\n const { keyCode, target } = event;\n\n if (Manipulator.hasClass(target, 'chip')) {\n const close = SelectorEngine.findOne(SELECTOR_CLOSE, target);\n\n if (keyCode === ENTER) {\n target.contentEditable = false;\n\n if (target.textContent !== '') {\n setTimeout(() => {\n Manipulator.addStyle(close, { display: 'block' });\n Manipulator.removeClass(close, CLASSNAME_CLOSE_OPACITY);\n }, 160);\n } else if (target.textContent === '') {\n setTimeout(() => {\n Manipulator.addClass(target, CLASSNAME_CHIP_OPACITY);\n }, 200);\n\n setTimeout(() => {\n target.remove();\n }, 300);\n }\n }\n\n return;\n }\n\n if (keyCode === ENTER) {\n if (target.value === '') return;\n event.preventDefault();\n\n this._handleCreateChip(target, target.value);\n\n this._handleRemoveActiveClass();\n this.numberClicks = this.allChips.length + 1;\n }\n\n if (this.allChips.length > 0) {\n Manipulator.addClass(this.chipsInputWrapper, CLASSNAME_CHIPS_PADDING);\n Manipulator.addClass(this.chipsInputWrapper, CLASSNAME_CHIPS_TANSITION);\n } else {\n Manipulator.removeClass(this.chipsInputWrapper, CLASSNAME_CHIPS_PADDING);\n }\n }\n\n _handleBlurInput(event) {\n const { target } = event;\n if (target.value.length > 0) {\n this._handleCreateChip(target, target.value);\n }\n\n if (this.allChips.length > 0) {\n Manipulator.addClass(target, CLASSNAME_ACTIVE);\n Manipulator.addClass(this.chipsInputWrapper, CLASSNAME_CHIPS_PADDING);\n } else {\n Manipulator.removeClass(target, CLASSNAME_ACTIVE);\n Manipulator.removeClass(this.chipsInputWrapper, CLASSNAME_CHIPS_PADDING);\n }\n\n this.allChips.forEach((chip) => Manipulator.removeClass(chip, CLASSNAME_ACTIVE));\n }\n\n _handleInputText() {\n const placeholder = SelectorEngine.findOne(CLASSNAME_CHIPS_PLACEHOLDER, this._element);\n\n EventHandler.on(this._element, 'keypress', placeholder, (e) =>\n this._handleKeysInputToElement(e)\n );\n EventHandler.on(this.input, 'blur', (e) => this._handleBlurInput(e));\n }\n\n _appendInputToElement(selector) {\n if (!Manipulator.hasClass(this._element, selector)) return;\n\n const inputField = getInputField(this._options);\n\n this._element.insertAdjacentHTML('beforeend', inputField);\n }\n\n _handleCreateChip(target, value) {\n const addEvent = EventHandler.trigger(this._element, EVENT_ADD, { value });\n\n if (addEvent.defaultPrevented) {\n return;\n }\n\n const divElement = element('div');\n const divWithChips = new Chip(divElement, { text: value });\n\n let chipsContainer;\n\n if (this._options.parentSelector !== '') {\n const parent = document.querySelector(this._options.parentSelector);\n parent.insertAdjacentHTML('beforeend', divWithChips.appendChip());\n chipsContainer = parent;\n } else {\n target.insertAdjacentHTML('beforebegin', divWithChips.appendChip());\n chipsContainer = target.parentNode;\n }\n\n target.value = '';\n\n SelectorEngine.find(SELECTOR_CHIP, chipsContainer).forEach((chip) => {\n let instance = Chip.getInstance(chip);\n if (!instance) {\n instance = new Chip(chip);\n instance.init();\n }\n });\n\n this._handleEditable();\n\n EventHandler.trigger(this._element, EVENT_ADDED, { value });\n }\n\n _handleChipsOnSelect() {\n this.allChips.forEach((chip) => {\n EventHandler.on(this._element, 'click', (e) => {\n EventHandler.trigger(chip, EVENT_SELECT, { event: e, allChips: this.allChips });\n });\n });\n }\n\n _handleAddActiveClassWithKeyboard(num) {\n let chip;\n\n if (this.allChips[num - 1] === undefined) {\n chip = this.allChips[num - 2];\n } else {\n chip = this.allChips[num - 1];\n }\n\n Manipulator.addClass(chip, CLASSNAME_ACTIVE);\n }\n\n _getConfig(options) {\n const config = {\n ...Default,\n ...Manipulator.getDataAttributes(this._element),\n ...options,\n };\n typeCheckConfig(NAME, config, DefaultType);\n return config;\n }\n\n static jQueryInterface(config) {\n return this.each(function () {\n let data = Data.getData(this, DATA_KEY);\n const _config = typeof config === 'object' && config;\n\n if (!data && /dispose|hide/.test(config)) {\n return;\n }\n\n if (!data) {\n data = new ChipsInput(this, _config);\n }\n\n if (typeof config === 'string') {\n if (typeof data[config] === 'undefined') {\n throw new TypeError(`No method named \"${config}\"`);\n }\n\n data[config]();\n }\n });\n }\n}\n\nexport default ChipsInput;\n","import { element, getUID, typeCheckConfig } from '../../mdb/util/index';\nimport { getDelimeters, parseDate, getMonth, getYear, isValidDate, isValidTime } from './utils';\nimport { ICON_BUTTONS, TOGGLE_BUTTON } from './templates';\nimport ScrollBarHelper from '../../bootstrap/mdb-prefix/util/scrollbar';\nimport Data from '../../mdb/dom/data';\nimport EventHandler from '../../mdb/dom/event-handler';\nimport Manipulator from '../../mdb/dom/manipulator';\nimport SelectorEngine from '../../mdb/dom/selector-engine';\nimport Datepicker from '../datepicker/index';\nimport Timepicker from '../timepicker';\nimport BaseComponent from '../../free/base-component';\nimport { bindCallbackEventsIfNeeded } from '../../autoinit/init';\n\nconst NAME = 'datetimepicker';\nconst DATA_KEY = `mdb.${NAME}`;\n\nconst CLASSNAME_DATEPICKER = 'datepicker';\nconst CLASSNAME_TIMEPICKER = 'timepicker';\nconst CLASSNAME_TOGGLE_BUTTON = `${NAME}-toggle-button`;\nconst CLASSNAME_INVALID_FEEDBACK = 'invalid-feedback';\nconst CLASSNAME_IS_INVALID = 'is-invalid';\n\nconst SELECTOR_TIMEPICKER = `.${CLASSNAME_TIMEPICKER}`;\nconst SELECTOR_DATEPICKER = `.${CLASSNAME_DATEPICKER}`;\nconst SELECTOR_DATA_TOGGLE = `[data-mdb-toggle=\"${NAME}\"]`;\nconst SELECTOR_TOGGLE_BUTTON = `.${CLASSNAME_TOGGLE_BUTTON}`;\nconst SELECTOR_INVALID_FEEDBACK = `.${CLASSNAME_INVALID_FEEDBACK}`;\n\nconst EVENT_KEY = `.${DATA_KEY}`;\nconst EVENT_OPEN = `open${EVENT_KEY}`;\nconst EVENT_CLOSE = `close${EVENT_KEY}`;\nconst EVENT_VALUE_CHANGED = `valueChanged${EVENT_KEY}`;\n\nconst EVENT_CLOSE_DATEPICKER = 'close.mdb.datepicker';\nconst EVENT_VALUE_CHANGED_TIMEPICKER = 'valueChanged.mdb.timepicker';\n\nconst BUTTONS_WRAPPER = element('div');\n\nconst Default = {\n appendValidationInfo: true,\n inline: false,\n toggleButton: true,\n container: 'body',\n disabled: false,\n disablePast: false,\n disableFuture: false,\n defaultTime: '',\n defaultDate: '',\n timepicker: {},\n datepicker: {},\n invalidLabel: 'Invalid Date or Time Format',\n showFormat: false,\n};\n\nconst DefaultType = {\n appendValidationInfo: 'boolean',\n inline: 'boolean',\n toggleButton: 'boolean',\n container: 'string',\n disabled: 'boolean',\n disablePast: 'boolean',\n disableFuture: 'boolean',\n defaultTime: '(string|date|number)',\n defaultDate: '(string|date|number)',\n timepicker: 'object',\n datepicker: 'object',\n invalidLabel: 'string',\n showFormat: 'boolean',\n};\n\nclass Datetimepicker extends BaseComponent {\n constructor(element, options) {\n super(element);\n\n this._input = SelectorEngine.findOne('input', this._element);\n this._options = this._getConfig(options);\n this._timepicker = null;\n this._datepicker = null;\n this._dateValue = this._options.defaultDate ? this._options.defaultDate : '';\n this._timeValue = this._options.defaultTime ? this._options.defaultTime : '';\n this._isInvalidTimeFormat = false;\n this._validationInfo = null;\n this._format = this._options.datepicker.format ? this._options.datepicker.format : 'dd/mm/yyyy';\n this._cancel = false;\n\n this._scrollBar = new ScrollBarHelper();\n\n this._init();\n Manipulator.setDataAttribute(this._element, `${this.constructor.NAME}-initialized`, true);\n bindCallbackEventsIfNeeded(this.constructor);\n }\n\n // Getters\n\n static get NAME() {\n return NAME;\n }\n\n get toggleButton() {\n return SelectorEngine.findOne(SELECTOR_TOGGLE_BUTTON, this._element);\n }\n\n dispose() {\n EventHandler.off(this._element, 'click', this._openDatePicker);\n EventHandler.off(this._input, 'input', this._handleInput);\n EventHandler.off(this._element, 'click');\n\n this._removeTimePicker();\n this._removeDatepicker();\n const toggleButton = this.toggleButton;\n if (toggleButton) {\n this.toggleButton.remove();\n }\n Manipulator.removeDataAttribute(this._element, `${this.constructor.NAME}-initialized`);\n\n super.dispose();\n }\n\n update(options = {}) {\n const tempOptions = this._getConfig({ ...this._options, ...options });\n\n EventHandler.off(this._element, 'click', this._openDatePicker);\n EventHandler.off(this._input, 'input', this._handleInput);\n EventHandler.off(this._element, 'click');\n\n this._removeTimePicker();\n this._removeDatepicker();\n const toggleButton = this.toggleButton;\n if (toggleButton) {\n this.toggleButton.remove();\n }\n\n this._options = Default;\n this._timepicker = null;\n this._datepicker = null;\n this._dateValue = null;\n this._timeValue = null;\n this._isInvalidTimeFormat = null;\n this._validationInfo = null;\n\n this._options = tempOptions;\n\n this._init();\n }\n\n // Private\n\n _init() {\n this._addDatepicker();\n this._addTimePicker();\n this._appendToggleButton();\n this._listenToToggleClick();\n this._listenToUserInput();\n this._disableInput();\n this._setInitialDefaultInput();\n this._appendValidationInfo();\n this._applyFormatPlaceholder();\n\n if (this._options.disablePast) {\n this._handleTimepickerDisablePast();\n }\n if (this._options.disableFuture) {\n this._handleTimepickerDisableFuture();\n }\n\n if (this._input.value) {\n this._handleInput(this._input.value);\n }\n }\n\n _removeDatepicker() {\n const datepicker = this._element.querySelector('.datepicker');\n if (datepicker) {\n datepicker.remove();\n }\n }\n\n _addDatepicker() {\n const DATEPICKER_WRAPPER = element('div');\n DATEPICKER_WRAPPER.id = this._element.id\n ? `datepicker-${this._element.id}`\n : getUID('datepicker-');\n\n const DATEPICKER_INPUT = '';\n DATEPICKER_WRAPPER.innerHTML = DATEPICKER_INPUT;\n\n Manipulator.addClass(DATEPICKER_WRAPPER, CLASSNAME_DATEPICKER);\n this._element.appendChild(DATEPICKER_WRAPPER);\n Manipulator.style(DATEPICKER_WRAPPER, { display: 'none' });\n\n let datepickerOptions = {\n ...this._options.datepicker,\n ...{\n container: this._options.container,\n disablePast: this._options.disablePast,\n disableFuture: this._options.disableFuture,\n },\n };\n\n if (this._options.inline || this._options.datepicker.inline) {\n datepickerOptions = { ...datepickerOptions, inline: true };\n }\n this._datepicker = new Datepicker(DATEPICKER_WRAPPER, datepickerOptions);\n this._datepicker._input.value = this._dateValue;\n }\n\n _removeTimePicker() {\n const timepicker = this._element.querySelector('.timepicker');\n if (timepicker) {\n timepicker.remove();\n this._scrollBar.reset();\n }\n }\n\n _addTimePicker() {\n const TIMEPICKER_WRAPPER = element('div');\n TIMEPICKER_WRAPPER.id = this._element.id\n ? `timepicker-${this._element.id}`\n : getUID('timepicker-');\n\n const TIMEPICKER_INPUT = '';\n TIMEPICKER_WRAPPER.innerHTML = TIMEPICKER_INPUT;\n\n Manipulator.addClass(TIMEPICKER_WRAPPER, CLASSNAME_TIMEPICKER);\n this._element.appendChild(TIMEPICKER_WRAPPER);\n Manipulator.style(TIMEPICKER_WRAPPER, { display: 'none' });\n\n let timepickerOptions = {\n ...this._options.timepicker,\n ...{ container: this._options.container },\n };\n\n if (this._options.inline || this._options.timepicker.inline) {\n timepickerOptions = { ...timepickerOptions, inline: true };\n }\n\n this._timepicker = new Timepicker(TIMEPICKER_WRAPPER, timepickerOptions);\n this._timepicker.input.value = this._timeValue;\n }\n\n _addIconButtons() {\n Manipulator.addClass(BUTTONS_WRAPPER, 'buttons-container');\n BUTTONS_WRAPPER.innerHTML = ICON_BUTTONS;\n\n if (this._options.inline || this._options.datepicker.inline) {\n return;\n }\n\n this._scrollBar.hide();\n\n if (this._datepicker._isOpen) {\n const headerDate = SelectorEngine.findOne(`${SELECTOR_DATEPICKER}-header`, document.body);\n headerDate.appendChild(BUTTONS_WRAPPER);\n } else if (this._timepicker._modal && !this._options.timepicker.inline) {\n const header = SelectorEngine.findOne(`${SELECTOR_TIMEPICKER}-elements`, document.body);\n const headerTime = SelectorEngine.findOne(\n `${SELECTOR_TIMEPICKER}-clock-wrapper`,\n document.body\n );\n header.insertBefore(BUTTONS_WRAPPER, headerTime);\n }\n }\n\n _enableOrDisableToggleButton() {\n if (this._options.disabled) {\n this.toggleButton.disabled = true;\n this.toggleButton.style.pointerEvents = 'none';\n } else {\n this.toggleButton.disabled = false;\n this.toggleButton.style.pointerEvents = 'pointer';\n }\n }\n\n _appendToggleButton() {\n if (!this._options.toggleButton) {\n return;\n }\n this._element.insertAdjacentHTML('beforeend', TOGGLE_BUTTON);\n\n this._enableOrDisableToggleButton();\n }\n\n _appendValidationInfo() {\n const { invalidLabel, appendValidationInfo } = this._options;\n\n if (appendValidationInfo) {\n this._validationInfo = element('div');\n Manipulator.addClass(this._validationInfo, CLASSNAME_INVALID_FEEDBACK);\n this._validationInfo.innerHTML = invalidLabel;\n\n Manipulator.addStyle(this._input, { marginBottom: 0 });\n Manipulator.addStyle(this._validationInfo, { bottom: '-23px' });\n }\n }\n\n _applyFormatPlaceholder() {\n if (this._options.showFormat) {\n this._input.placeholder = this._format;\n }\n }\n\n _listenToCancelClick() {\n const DATEPICKER_CANCEL_BTN = SelectorEngine.findOne(\n `${SELECTOR_DATEPICKER}-cancel-btn`,\n document.body\n );\n\n EventHandler.one(DATEPICKER_CANCEL_BTN, 'mousedown', () => {\n this._cancel = true;\n this._scrollBar.reset();\n EventHandler.off(DATEPICKER_CANCEL_BTN, 'mousedown');\n });\n }\n\n _listenToToggleClick() {\n EventHandler.on(this._element, 'click', SELECTOR_DATA_TOGGLE, (event) => {\n event.preventDefault();\n this._openDatePicker();\n });\n }\n\n _listenToUserInput() {\n EventHandler.on(this._input, 'input', (event) => {\n this._handleInput(event.target.value);\n });\n }\n\n _disableInput() {\n if (this._options.disabled) {\n this._input.disabled = 'true';\n }\n }\n\n _getConfig(config) {\n const dataAttributes = Manipulator.getDataAttributes(this._element);\n\n config = {\n ...Default,\n ...dataAttributes,\n ...config,\n };\n\n typeCheckConfig(NAME, config, DefaultType);\n return config;\n }\n\n _handleInput(input) {\n const dateTimeSplited = input.split(', ');\n const dateDelimeters = getDelimeters(this._format);\n\n const inputFirstValue = dateTimeSplited[0];\n const inputSecondValue = dateTimeSplited[1] || '';\n\n const date = parseDate(\n inputFirstValue,\n this._format,\n dateDelimeters,\n this._datepicker._options\n );\n\n if (!inputFirstValue) {\n this._removeInvalidClass(this._input);\n } else if (dateTimeSplited.length === 2) {\n const isInputValid = isValidDate(date) && isValidTime(inputSecondValue);\n\n if (isInputValid) {\n this._dateValue = inputFirstValue;\n this._timeValue = inputSecondValue;\n this._removeInvalidClass(this._input);\n this._datepicker._input.value = this._dateValue;\n this._datepicker._activeDate = this._dateValue;\n this._datepicker._selectedYear = getYear(date);\n this._datepicker._selectedMonth = getMonth(date);\n this._datepicker._headerDate = date;\n this._timepicker.input.value = this._timeValue;\n this._timepicker._isInvalidTimeFormat = false;\n } else {\n this._datepicker._activeDate = new Date();\n this._datepicker._selectedDate = null;\n this._datepicker._selectedMonth = null;\n this._datepicker._selectedYear = null;\n this._datepicker._headerDate = null;\n this._datepicker._headerMonth = null;\n this._datepicker._headerYear = null;\n this._timepicker._isInvalidTimeFormat = true;\n this._addInvalidClass(this._input, this._validationInfo);\n }\n } else {\n this._addInvalidClass(this._input, this._validationInfo);\n }\n }\n\n _addInvalidClass() {\n const { appendValidationInfo } = this._options;\n if (appendValidationInfo) {\n Manipulator.addClass(this._input, CLASSNAME_IS_INVALID);\n\n if (!SelectorEngine.findOne(SELECTOR_INVALID_FEEDBACK)) {\n this._input.parentNode.insertBefore(this._validationInfo, this._input.nextSibling);\n }\n }\n }\n\n _removeInvalidClass(input) {\n Manipulator.removeClass(input, CLASSNAME_IS_INVALID);\n this._isInvalidTimeFormat = false;\n const allInvalid = SelectorEngine.findOne(SELECTOR_INVALID_FEEDBACK);\n\n if (allInvalid === null) {\n return;\n }\n allInvalid.remove();\n }\n\n _openDatePicker() {\n const openEvent = EventHandler.trigger(this._element, EVENT_OPEN);\n\n if (openEvent.defaultPrevented) {\n return;\n }\n\n this._datepicker.open();\n\n if (!this._options.inline) {\n this._scrollBar.hide();\n }\n\n if (this._options.inline || this._options.datepicker.inline) {\n this._openDropdownDate();\n }\n this._addIconButtons();\n\n this._listenToCancelClick();\n\n if (this._options.inline && this._datepicker._isOpen) {\n this.toggleButton.style.pointerEvents = 'none';\n }\n\n EventHandler.one(this._datepicker._element, EVENT_CLOSE_DATEPICKER, () => {\n this._dateValue = this._datepicker._input.value;\n this._updateInputValue();\n\n if (this._cancel) {\n this._cancel = false;\n return;\n }\n\n EventHandler.on(this._datepicker.container, 'click', (e) => {\n if (!this._datepicker._selectedDate && e.target.classList.contains('datepicker-ok-btn')) {\n return;\n }\n this._openTimePicker();\n });\n setTimeout(() => {\n const timepicker = SelectorEngine.findOne(`${SELECTOR_TIMEPICKER}-wrapper`, document.body);\n if (!timepicker) {\n this._scrollBar.reset();\n }\n }, 10);\n if (this._options.inline) {\n this.toggleButton.style.pointerEvents = 'auto';\n }\n });\n\n const CLOCK_BTN = SelectorEngine.findOne(`${SELECTOR_TIMEPICKER}-button-toggle`, document.body);\n EventHandler.on(CLOCK_BTN, 'click', () => {\n this._datepicker._confirmSelection(this._datepicker._headerDate);\n this._datepicker.close();\n this._scrollBar.hide();\n EventHandler.trigger(this._datepicker._element, EVENT_CLOSE_DATEPICKER);\n });\n }\n\n _handleTimepickerDisablePast() {\n const currentDate = new Date();\n currentDate.setHours(0, 0, 0, 0);\n\n EventHandler.on(this._datepicker._element, 'dateChange.mdb.datepicker', () => {\n if (this._datepicker._selectedDate.getTime() === currentDate.getTime()) {\n this._timepicker.update({ disablePast: true });\n } else {\n this._timepicker.update({ disablePast: false });\n }\n });\n }\n\n _handleTimepickerDisableFuture() {\n const currentDate = new Date();\n currentDate.setHours(0, 0, 0, 0);\n\n EventHandler.on(this._datepicker._element, 'dateChange.mdb.datepicker', () => {\n if (this._datepicker._selectedDate.getTime() === currentDate.getTime()) {\n this._timepicker.update({ disableFuture: true });\n } else {\n this._timepicker.update({ disableFuture: false });\n }\n });\n }\n\n _handleEscapeKey() {\n EventHandler.one(document.body, 'keyup', () => {\n setTimeout(() => {\n const timepicker = SelectorEngine.findOne(`${SELECTOR_TIMEPICKER}-wrapper`, document.body);\n if (!timepicker) {\n this._scrollBar.reset();\n }\n }, 250);\n });\n }\n\n _handleCancelButton() {\n const CANCEL_BTN = SelectorEngine.findOne(`${SELECTOR_TIMEPICKER}-cancel`, document.body);\n EventHandler.one(CANCEL_BTN, 'mousedown', () => {\n this._scrollBar.reset();\n });\n }\n\n _openDropdownDate() {\n const datePopper = this._datepicker._popper;\n datePopper.state.elements.reference = this._input;\n this._scrollBar.reset();\n }\n\n _openTimePicker() {\n EventHandler.trigger(this._timepicker.elementToggle, 'click');\n setTimeout(() => {\n this._addIconButtons();\n\n if (this._options.inline || this._options.timepicker.inline) {\n this._openDropdownTime();\n }\n if (this._timepicker._modal) {\n const CANCEL_BTN = SelectorEngine.findOne(`${SELECTOR_TIMEPICKER}-cancel`, document.body);\n this._handleEscapeKey();\n this._handleCancelButton();\n EventHandler.on(this._timepicker._modal, 'click', (e) => {\n if (\n e.target.classList.contains(`${CLASSNAME_TIMEPICKER}-wrapper`) ||\n e.target.classList.contains(`${CLASSNAME_TIMEPICKER}-submit`)\n ) {\n setTimeout(() => {\n this._scrollBar.reset();\n }, 200);\n }\n if (e.target.classList.contains(`${CLASSNAME_TIMEPICKER}-clear`)) {\n EventHandler.trigger(this._timepicker._element, EVENT_VALUE_CHANGED_TIMEPICKER);\n }\n if (e.target.classList.contains(`${CLASSNAME_DATEPICKER}-button-toggle`)) {\n EventHandler.trigger(CANCEL_BTN, 'click');\n setTimeout(() => {\n this._openDatePicker();\n this._scrollBar.hide();\n }, 200);\n }\n });\n }\n });\n\n EventHandler.one(this._timepicker._element, EVENT_VALUE_CHANGED_TIMEPICKER, () => {\n this._timeValue = this._timepicker.input.value;\n this._updateInputValue();\n EventHandler.trigger(this._element, EVENT_CLOSE);\n });\n }\n\n _openDropdownTime() {\n const timePopper = this._timepicker._popper;\n timePopper.state.elements.reference = this._input;\n timePopper.update();\n this._scrollBar.reset();\n }\n\n _setInitialDefaultInput() {\n const shouldUpdate = this._options.defaultDate || this._options.defaultTime;\n\n if (shouldUpdate) {\n this._updateInputValue();\n }\n }\n\n _updateInputValue() {\n const isDateTimeFilled = this._timeValue && this._dateValue;\n\n if (isDateTimeFilled) {\n this._input.value = `${this._dateValue}, ${this._timeValue}`;\n this._removeInvalidClass(this._input);\n\n const changeEvent = EventHandler.trigger(this._element, EVENT_VALUE_CHANGED, {\n value: this._input.value,\n });\n\n if (changeEvent.defaultPrevented) {\n return;\n }\n }\n\n EventHandler.trigger(this._input, 'focus');\n }\n\n // static\n\n static jQueryInterface(config, options) {\n return this.each(function () {\n let data = Data.getData(this, DATA_KEY);\n const _config = typeof config === 'object' && config;\n\n if (!data && /dispose/.test(config)) {\n return;\n }\n\n if (!data) {\n data = new Datetimepicker(this, _config);\n }\n\n if (typeof config === 'string') {\n if (typeof data[config] === 'undefined') {\n throw new TypeError(`No method named \"${config}\"`);\n }\n\n data[config](options);\n }\n });\n }\n}\n\nexport default Datetimepicker;\n","import EventHandler from '../../mdb/dom/event-handler';\nimport SelectorEngine from '../../mdb/dom/selector-engine';\nimport Manipulator from '../../mdb/dom/manipulator';\nimport {\n isDisabled,\n getElementFromSelector,\n isVisible,\n getSelectorFromElement,\n} from '../../mdb/util';\nimport { enableDismissTrigger } from '../../bootstrap/mdb-prefix/util/component-functions';\n\nconst callbackInitState = new Map();\n\nconst alertCallback = (component, initSelector) => {\n const Alert = component;\n\n if (!callbackInitState.has(component.name)) {\n enableDismissTrigger(Alert);\n callbackInitState.set(component.name, true);\n }\n\n // MDB init\n SelectorEngine.find(initSelector).forEach((element) => {\n return Alert.getOrCreateInstance(element);\n });\n};\n\nconst buttonCallback = (component, initSelector) => {\n const Button = component;\n const EVENT_CLICK_DATA_API = `click.bs.${component.name}.data-api`;\n\n if (!callbackInitState.has(component.name)) {\n // BS init\n EventHandler.on(document, EVENT_CLICK_DATA_API, initSelector, (event) => {\n event.preventDefault();\n\n const button = event.target.closest(initSelector);\n const data = Button.getOrCreateInstance(button);\n\n data.toggle();\n });\n callbackInitState.set(component.name, true);\n }\n\n // MDB init\n SelectorEngine.find(initSelector).forEach((element) => {\n return Button.getOrCreateInstance(element);\n });\n};\n\nconst carouselCallback = (component, initSelector) => {\n if (callbackInitState.has(component.name)) {\n return;\n }\n\n const EVENT_CLICK_DATA_API = `click.bs.${component.name}.data-api`;\n const SELECTOR_DATA_SLIDE = '[data-mdb-slide], [data-mdb-slide-to]';\n const CLASS_NAME_CAROUSEL = 'carousel';\n const Carousel = component;\n const EVENT_LOAD_DATA_API = `load.bs.${component.name}.data-api`;\n const SELECTOR_DATA_RIDE = initSelector;\n\n EventHandler.on(document, EVENT_CLICK_DATA_API, SELECTOR_DATA_SLIDE, function (event) {\n const target = getElementFromSelector(this);\n\n if (!target || !target.classList.contains(CLASS_NAME_CAROUSEL)) {\n return;\n }\n\n event.preventDefault();\n\n const carousel = Carousel.getOrCreateInstance(target);\n const slideIndex = this.getAttribute('data-mdb-slide-to');\n\n if (slideIndex) {\n carousel.to(slideIndex);\n carousel._maybeEnableCycle();\n return;\n }\n\n if (Manipulator.getDataAttribute(this, 'slide') === 'next') {\n carousel.next();\n carousel._maybeEnableCycle();\n return;\n }\n\n carousel.prev();\n carousel._maybeEnableCycle();\n });\n\n EventHandler.on(window, EVENT_LOAD_DATA_API, () => {\n const carousels = SelectorEngine.find(SELECTOR_DATA_RIDE);\n\n carousels.forEach((carousel) => {\n Carousel.getOrCreateInstance(carousel);\n });\n });\n\n callbackInitState.set(component.name, true);\n};\n\nconst collapseCallback = (component, initSelector) => {\n const EVENT_CLICK_DATA_API = `click.bs.${component.name}.data-api`;\n const SELECTOR_DATA_TOGGLE = initSelector;\n const Collapse = component;\n\n if (!callbackInitState.has(component.name)) {\n EventHandler.on(document, EVENT_CLICK_DATA_API, SELECTOR_DATA_TOGGLE, function (event) {\n // preventDefault only for
elements (which change the URL) not inside the collapsible element\n if (\n event.target.tagName === 'A' ||\n (event.delegateTarget && event.delegateTarget.tagName === 'A')\n ) {\n event.preventDefault();\n }\n\n const selector = getSelectorFromElement(this);\n const selectorElements = SelectorEngine.find(selector);\n\n selectorElements.forEach((element) => {\n Collapse.getOrCreateInstance(element, { toggle: false }).toggle();\n });\n });\n\n callbackInitState.set(component.name, true);\n }\n\n SelectorEngine.find(SELECTOR_DATA_TOGGLE).forEach((el) => {\n const selector = getSelectorFromElement(el);\n const selectorElements = SelectorEngine.find(selector);\n\n selectorElements.forEach((element) => {\n Collapse.getOrCreateInstance(element, { toggle: false });\n });\n });\n};\n\nconst dropdownCallback = (component, initSelector) => {\n const EVENT_CLICK_DATA_API = `click.bs.${component.name}.data-api`;\n const EVENT_KEYDOWN_DATA_API = `keydown.bs.${component.name}.data-api`;\n const EVENT_KEYUP_DATA_API = `keyup.bs.${component.name}.data-api`;\n const SELECTOR_MENU = '.dropdown-menu';\n const SELECTOR_DATA_TOGGLE = `[data-mdb-${component.NAME}-initialized]`;\n const Dropdown = component;\n\n if (!callbackInitState.has(component.name)) {\n EventHandler.on(\n document,\n EVENT_KEYDOWN_DATA_API,\n SELECTOR_DATA_TOGGLE,\n Dropdown.dataApiKeydownHandler\n );\n EventHandler.on(\n document,\n EVENT_KEYDOWN_DATA_API,\n SELECTOR_MENU,\n Dropdown.dataApiKeydownHandler\n );\n EventHandler.on(document, EVENT_CLICK_DATA_API, Dropdown.clearMenus);\n EventHandler.on(document, EVENT_KEYUP_DATA_API, Dropdown.clearMenus);\n EventHandler.on(document, EVENT_CLICK_DATA_API, SELECTOR_DATA_TOGGLE, function (event) {\n event.preventDefault();\n Dropdown.getOrCreateInstance(this).toggle();\n });\n }\n\n callbackInitState.set(component.name, true);\n\n SelectorEngine.find(initSelector).forEach((el) => {\n Dropdown.getOrCreateInstance(el);\n });\n};\n\nconst inputCallback = (component, initSelector) => {\n const SELECTOR_DATA_INIT = initSelector;\n const SELECTOR_OUTLINE_INPUT = `${SELECTOR_DATA_INIT} input`;\n const SELECTOR_OUTLINE_TEXTAREA = `${SELECTOR_DATA_INIT} textarea`;\n const Input = component;\n\n if (!callbackInitState.has(component.name)) {\n EventHandler.on(document, 'focus', SELECTOR_OUTLINE_INPUT, Input.activate(new Input()));\n EventHandler.on(document, 'input', SELECTOR_OUTLINE_INPUT, Input.activate(new Input()));\n EventHandler.on(document, 'blur', SELECTOR_OUTLINE_INPUT, Input.deactivate(new Input()));\n\n EventHandler.on(document, 'focus', SELECTOR_OUTLINE_TEXTAREA, Input.activate(new Input()));\n EventHandler.on(document, 'input', SELECTOR_OUTLINE_TEXTAREA, Input.activate(new Input()));\n EventHandler.on(document, 'blur', SELECTOR_OUTLINE_TEXTAREA, Input.deactivate(new Input()));\n\n EventHandler.on(window, 'shown.bs.modal', (e) => {\n SelectorEngine.find(SELECTOR_OUTLINE_INPUT, e.target).forEach((element) => {\n const instance = Input.getInstance(element.parentNode);\n if (!instance) {\n return;\n }\n instance.update();\n });\n SelectorEngine.find(SELECTOR_OUTLINE_TEXTAREA, e.target).forEach((element) => {\n const instance = Input.getInstance(element.parentNode);\n if (!instance) {\n return;\n }\n instance.update();\n });\n });\n\n EventHandler.on(window, 'shown.bs.dropdown', (e) => {\n const target = e.target.parentNode.querySelector('.dropdown-menu');\n if (target) {\n SelectorEngine.find(SELECTOR_OUTLINE_INPUT, target).forEach((element) => {\n const instance = Input.getInstance(element.parentNode);\n if (!instance) {\n return;\n }\n instance.update();\n });\n SelectorEngine.find(SELECTOR_OUTLINE_TEXTAREA, target).forEach((element) => {\n const instance = Input.getInstance(element.parentNode);\n if (!instance) {\n return;\n }\n instance.update();\n });\n }\n });\n\n EventHandler.on(window, 'shown.bs.tab', (e) => {\n let targetId;\n\n if (e.target.href) {\n targetId = e.target.href.split('#')[1];\n } else {\n targetId = Manipulator.getDataAttribute(e.target, 'target').split('#')[1];\n }\n\n const target = SelectorEngine.findOne(`#${targetId}`);\n SelectorEngine.find(SELECTOR_OUTLINE_INPUT, target).forEach((element) => {\n const instance = Input.getInstance(element.parentNode);\n if (!instance) {\n return;\n }\n instance.update();\n });\n SelectorEngine.find(SELECTOR_OUTLINE_TEXTAREA, target).forEach((element) => {\n const instance = Input.getInstance(element.parentNode);\n if (!instance) {\n return;\n }\n instance.update();\n });\n });\n\n // form reset handler\n EventHandler.on(window, 'reset', (e) => {\n SelectorEngine.find(SELECTOR_OUTLINE_INPUT, e.target).forEach((element) => {\n const instance = Input.getInstance(element.parentNode);\n if (!instance) {\n return;\n }\n instance.forceInactive();\n });\n SelectorEngine.find(SELECTOR_OUTLINE_TEXTAREA, e.target).forEach((element) => {\n const instance = Input.getInstance(element.parentNode);\n if (!instance) {\n return;\n }\n instance.forceInactive();\n });\n });\n\n // auto-fill\n EventHandler.on(window, 'onautocomplete', (e) => {\n const instance = Input.getInstance(e.target.parentNode);\n if (!instance || !e.cancelable) {\n return;\n }\n instance.forceActive();\n });\n\n callbackInitState.set(component.name, true);\n }\n\n // auto-init\n SelectorEngine.find(SELECTOR_DATA_INIT).map((element) => Input.getOrCreateInstance(element));\n};\n\nconst modalCallback = (component, initSelector) => {\n const EVENT_CLICK_DATA_API = `click.bs.${component.name}.data-api`;\n const OPEN_SELECTOR = '.modal.show';\n const Modal = component;\n const EVENT_SHOW = `show.bs.${component.name}`;\n const EVENT_HIDDEN = `hidden.bs.${component.name}`;\n\n if (!callbackInitState.has(component.name)) {\n EventHandler.on(document, EVENT_CLICK_DATA_API, initSelector, function (event) {\n const target = getElementFromSelector(this);\n\n if (['A', 'AREA'].includes(this.tagName)) {\n event.preventDefault();\n }\n\n EventHandler.one(target, EVENT_SHOW, (showEvent) => {\n if (showEvent.defaultPrevented) {\n // only register focus restorer if modal will actually get shown\n return;\n }\n\n EventHandler.one(target, EVENT_HIDDEN, () => {\n if (isVisible(this)) {\n this.focus();\n }\n });\n });\n\n // avoid conflict when clicking modal toggler while another one is open\n const alreadyOpenedModals = SelectorEngine.find(OPEN_SELECTOR);\n alreadyOpenedModals.forEach((modal) => {\n if (!modal.classList.contains('modal-non-invasive-show')) {\n Modal.getInstance(modal).hide();\n }\n });\n\n const data = Modal.getOrCreateInstance(target);\n\n data.toggle(this);\n });\n\n enableDismissTrigger(Modal);\n callbackInitState.set(component.name, true);\n }\n\n SelectorEngine.find(initSelector).forEach((el) => {\n const selector = getSelectorFromElement(el);\n const selectorElement = SelectorEngine.findOne(selector);\n\n Modal.getOrCreateInstance(selectorElement);\n });\n};\n\nconst popoverCallback = (component, initSelector) => {\n const Popover = component;\n const SELECTOR_DATA_TOGGLE = initSelector;\n\n SelectorEngine.find(SELECTOR_DATA_TOGGLE).forEach((el) => {\n Popover.getOrCreateInstance(el);\n });\n};\n\nconst offcanvasCallback = (component, initSelector) => {\n if (callbackInitState.has(component.name)) {\n return;\n }\n\n const EVENT_CLICK_DATA_API = `click.bs.${component.name}.data-api`;\n const OPEN_SELECTOR = '.offcanvas.show';\n const Offcanvas = component;\n const EVENT_HIDDEN = `hidden.bs.${component.name}`;\n const EVENT_LOAD_DATA_API = `load.bs.${component.name}.data-api`;\n const EVENT_RESIZE = `resize.bs.${component.name}`;\n\n EventHandler.on(document, EVENT_CLICK_DATA_API, initSelector, function (event) {\n const target = getElementFromSelector(this);\n\n if (['A', 'AREA'].includes(this.tagName)) {\n event.preventDefault();\n }\n\n if (isDisabled(this)) {\n return;\n }\n\n EventHandler.one(target, EVENT_HIDDEN, () => {\n // focus on trigger when it is closed\n if (isVisible(this)) {\n this.focus();\n }\n });\n\n // avoid conflict when clicking a toggler of an offcanvas, while another is open\n const alreadyOpen = SelectorEngine.findOne(OPEN_SELECTOR);\n if (alreadyOpen && alreadyOpen !== target) {\n Offcanvas.getInstance(alreadyOpen).hide();\n }\n\n const data = Offcanvas.getOrCreateInstance(target);\n data.toggle(this);\n });\n\n EventHandler.on(window, EVENT_LOAD_DATA_API, () => {\n SelectorEngine.find(OPEN_SELECTOR).forEach((selector) => {\n Offcanvas.getOrCreateInstance(selector).show();\n });\n });\n\n EventHandler.on(window, EVENT_RESIZE, () => {\n SelectorEngine.find('[aria-modal][class*=show][class*=offcanvas-]').forEach((element) => {\n if (getComputedStyle(element).position !== 'fixed') {\n Offcanvas.getOrCreateInstance(element).hide();\n }\n });\n });\n\n enableDismissTrigger(Offcanvas);\n callbackInitState.set(component.name, true);\n};\n\nconst scrollspyCallback = (component, initSelector) => {\n if (callbackInitState.has(component.name)) {\n return;\n }\n\n const EVENT_LOAD_DATA_API = `load.bs.${component.name}.data-api`;\n const ScrollSpy = component;\n\n EventHandler.on(window, EVENT_LOAD_DATA_API, () => {\n SelectorEngine.find(initSelector).forEach((el) => {\n ScrollSpy.getOrCreateInstance(el);\n });\n });\n\n callbackInitState.set(component.name, true);\n};\n\nconst tabCallback = (component, initSelector) => {\n const EVENT_LOAD_DATA_API = `load.bs.${component.name}.data-api`;\n const EVENT_CLICK_DATA_API = `click.bs.${component.name}.data-api`;\n const CLASS_NAME_ACTIVE = 'active';\n const SELECTOR_DATA_TOGGLE_ACTIVE = `.${CLASS_NAME_ACTIVE}[data-mdb-tab-init], .${CLASS_NAME_ACTIVE}[data-mdb-pill-init], .${CLASS_NAME_ACTIVE}[data-mdb-toggle=\"list\"]`;\n const Tab = component;\n\n if (!callbackInitState.has(component.name)) {\n EventHandler.on(document, EVENT_CLICK_DATA_API, initSelector, function (event) {\n if (['A', 'AREA'].includes(this.tagName)) {\n event.preventDefault();\n }\n\n if (isDisabled(this)) {\n return;\n }\n\n Tab.getOrCreateInstance(this).show();\n });\n\n EventHandler.on(window, EVENT_LOAD_DATA_API, () => {\n SelectorEngine.find(SELECTOR_DATA_TOGGLE_ACTIVE).forEach((element) => {\n Tab.getOrCreateInstance(element);\n });\n });\n\n callbackInitState.set(component.name, true);\n }\n};\n\nconst toastCallback = (component, initSelector) => {\n const Toast = component;\n\n if (!callbackInitState.has(component.name)) {\n enableDismissTrigger(Toast);\n callbackInitState.set(component.name, true);\n }\n\n // MDB init\n SelectorEngine.find(initSelector).forEach((element) => {\n return Toast.getOrCreateInstance(element);\n });\n};\n\nconst rippleCallback = (component, initSelector) => {\n const Ripple = component;\n\n if (!callbackInitState.has(component.name)) {\n EventHandler.one(document, 'mousedown', initSelector, Ripple.autoInitial(new Ripple()));\n callbackInitState.set(component.name, true);\n }\n};\n\nexport {\n alertCallback,\n buttonCallback,\n carouselCallback,\n collapseCallback,\n dropdownCallback,\n inputCallback,\n modalCallback,\n offcanvasCallback,\n tabCallback,\n toastCallback,\n popoverCallback,\n rippleCallback,\n scrollspyCallback,\n};\n","import EventHandler from '../../mdb/dom/event-handler';\nimport SelectorEngine from '../../mdb/dom/selector-engine';\nimport { getElementFromSelector, isVisible, getSelectorFromElement } from '../../mdb/util';\nimport { enableDismissTrigger } from '../../bootstrap/mdb-prefix/util/component-functions';\nimport {\n buttonCallback,\n carouselCallback,\n collapseCallback,\n dropdownCallback,\n offcanvasCallback,\n scrollspyCallback,\n tabCallback,\n} from './free';\n\nconst callbackInitState = new Map();\n\nconst alertCallback = (component, initSelector) => {\n const Alert = component;\n\n if (!callbackInitState.has(component.name)) {\n enableDismissTrigger(Alert);\n callbackInitState.set(component.name, true);\n }\n // MDB init\n SelectorEngine.find(initSelector).forEach((element) => {\n return Alert.getOrCreateInstance(element);\n });\n};\n\nconst lightboxCallback = (component, initSelector) => {\n const EVENT_CLICK_DATA_API = `click.mdb.${component.name}.data-api`;\n const SELECTOR_DATA_INIT = initSelector;\n const SELECTOR_TOGGLE = `${SELECTOR_DATA_INIT} img:not(.lightbox-disabled)`;\n const Lightbox = component;\n\n SelectorEngine.find(SELECTOR_DATA_INIT).forEach((el) => new Lightbox(el));\n\n if (callbackInitState.has(component.name)) {\n return;\n }\n\n EventHandler.on(document, EVENT_CLICK_DATA_API, SELECTOR_TOGGLE, Lightbox.toggle());\n callbackInitState.set(component.name, true);\n};\n\nconst modalCallback = (component, initSelector) => {\n const EVENT_CLICK_DATA_API = `click.bs.${component.name}.data-api`;\n const OPEN_SELECTOR = '.modal.show';\n const Modal = component;\n const EVENT_SHOW = `show.bs.${component.name}`;\n const EVENT_HIDDEN = `hidden.bs.${component.name}`;\n\n if (!callbackInitState.has(component.name)) {\n EventHandler.on(document, EVENT_CLICK_DATA_API, initSelector, function (event) {\n const target = getElementFromSelector(this);\n\n if (['A', 'AREA'].includes(this.tagName)) {\n event.preventDefault();\n }\n\n EventHandler.one(target, EVENT_SHOW, (showEvent) => {\n if (showEvent.defaultPrevented) {\n // only register focus restorer if modal will actually get shown\n return;\n }\n\n EventHandler.one(target, EVENT_HIDDEN, () => {\n if (isVisible(this)) {\n this.focus();\n }\n });\n });\n\n // avoid conflict when clicking modal toggler while another one is open\n const alreadyOpenedModals = SelectorEngine.find(OPEN_SELECTOR);\n alreadyOpenedModals.forEach((modal) => {\n if (!modal.classList.contains('modal-non-invasive-show')) {\n Modal.getInstance(modal).hide();\n }\n });\n\n const data = Modal.getOrCreateInstance(target);\n\n data.toggle(this);\n });\n\n enableDismissTrigger(Modal);\n\n callbackInitState.set(component.name, true);\n }\n\n SelectorEngine.find(initSelector).forEach((el) => {\n const selector = getSelectorFromElement(el);\n const selectorElement = SelectorEngine.findOne(selector);\n\n Modal.getOrCreateInstance(selectorElement);\n });\n};\n\nconst sidenavCallback = (component, initSelector) => {\n const SELECTOR_DATA_INIT = initSelector;\n const SELECTOR_TOGGLE = '[data-mdb-toggle=\"sidenav\"]';\n const Sidenav = component;\n\n if (!callbackInitState.has(component.name)) {\n EventHandler.on(document, 'click', SELECTOR_TOGGLE, Sidenav.toggleSidenav());\n callbackInitState.set(component.name, true);\n }\n\n SelectorEngine.find(SELECTOR_DATA_INIT).forEach((sidenav) => {\n return Sidenav.getOrCreateInstance(sidenav);\n });\n};\n\nconst toastCallback = (component, initSelector) => {\n const SELECTOR_DATA_INIT = initSelector;\n const Toast = component;\n\n if (!callbackInitState.has(component.name)) {\n enableDismissTrigger(Toast);\n callbackInitState.set(component.name, true);\n }\n\n SelectorEngine.find(SELECTOR_DATA_INIT).forEach((toast) => {\n return Toast.getOrCreateInstance(toast);\n });\n};\n\nexport {\n alertCallback,\n lightboxCallback,\n buttonCallback,\n carouselCallback,\n collapseCallback,\n dropdownCallback,\n modalCallback,\n offcanvasCallback,\n scrollspyCallback,\n sidenavCallback,\n tabCallback,\n toastCallback,\n};\n","import {\n alertCallback,\n dropdownCallback,\n offcanvasCallback,\n tabCallback,\n buttonCallback,\n modalCallback,\n rippleCallback,\n collapseCallback,\n carouselCallback,\n scrollspyCallback,\n toastCallback,\n inputCallback,\n} from '../callbacks/free';\n\nconst defaultInitSelectors = {\n // Bootstrap Components\n alert: {\n name: 'Alert',\n selector: '[data-mdb-alert-init]',\n isToggler: true,\n callback: alertCallback,\n },\n button: {\n name: 'Button',\n selector: '[data-mdb-button-init]',\n isToggler: true,\n callback: buttonCallback,\n },\n carousel: {\n name: 'Carousel',\n selector: '[data-mdb-carousel-init]',\n isToggler: true,\n callback: carouselCallback,\n },\n collapse: {\n name: 'Collapse',\n selector: '[data-mdb-collapse-init]',\n isToggler: true,\n callback: collapseCallback,\n },\n dropdown: {\n name: 'Dropdown',\n selector: '[data-mdb-dropdown-init]',\n isToggler: true,\n callback: dropdownCallback,\n },\n modal: {\n name: 'Modal',\n selector: '[data-mdb-modal-init]',\n isToggler: true,\n callback: modalCallback,\n },\n offcanvas: {\n name: 'Offcanvas',\n selector: '[data-mdb-offcanvas-init]',\n isToggler: true,\n callback: offcanvasCallback,\n },\n scrollspy: {\n name: 'ScrollSpy',\n selector: '[data-mdb-scrollspy-init]',\n isToggler: true,\n callback: scrollspyCallback,\n },\n tab: {\n name: 'Tab',\n selector: '[data-mdb-tab-init], [data-mdb-pill-init], [data-mdb-list-init]',\n isToggler: true,\n callback: tabCallback,\n },\n toast: {\n name: 'Toast',\n selector: '[data-mdb-toast-init]',\n isToggler: true,\n callback: toastCallback,\n },\n tooltip: {\n name: 'Tooltip',\n selector: '[data-mdb-tooltip-init]',\n isToggler: false,\n },\n input: {\n name: 'Input',\n selector: '[data-mdb-input-init]',\n isToggler: true,\n callback: inputCallback,\n },\n range: {\n name: 'Range',\n selector: '[data-mdb-range-init]',\n isToggler: false,\n },\n ripple: {\n name: 'Ripple',\n selector: '[data-mdb-ripple-init]',\n isToggler: true,\n callback: rippleCallback,\n },\n popover: {\n name: 'Popover',\n selector: '[data-mdb-popover-init]',\n isToggler: false,\n callback: rippleCallback,\n },\n};\n\nexport default defaultInitSelectors;\n","const DEFAULT_LEGEND_COLOR = {\n plugins: {\n legend: {\n labels: {\n color: 'rgb(102,102,102)',\n },\n },\n },\n};\n\n// Default options\nconst DEFAULT_OPTIONS = {\n line: {\n options: {\n ...DEFAULT_LEGEND_COLOR,\n elements: {\n line: {\n backgroundColor: 'rgba(59, 112, 202, 0.0)',\n borderColor: 'rgb(59, 112, 202)',\n borderWidth: 2,\n tension: 0.0,\n },\n point: {\n borderColor: 'rgb(59, 112, 202)',\n backgroundColor: 'rgb(59, 112, 202)',\n },\n },\n responsive: true,\n legend: {\n display: true,\n },\n tooltips: {\n intersect: false,\n mode: 'index',\n },\n datasets: {\n borderColor: 'red',\n },\n scales: {\n x: {\n stacked: true,\n grid: {\n display: false,\n },\n ticks: {\n fontColor: 'rgba(0,0,0, 0.5)',\n },\n },\n y: {\n stacked: false,\n grid: {\n borderDash: [2],\n drawBorder: false,\n zeroLineColor: 'rgba(0,0,0,0)',\n zeroLineBorderDash: [2],\n zeroLineBorderDashOffset: [2],\n },\n ticks: {\n fontColor: 'rgba(0,0,0, 0.5)',\n },\n },\n },\n },\n },\n bar: {\n options: {\n ...DEFAULT_LEGEND_COLOR,\n backgroundColor: 'rgb(59, 112, 202)',\n borderWidth: 0,\n responsive: true,\n legend: {\n display: true,\n },\n tooltips: {\n intersect: false,\n mode: 'index',\n },\n scales: {\n x: {\n stacked: true,\n grid: {\n display: false,\n },\n ticks: {\n fontColor: 'rgba(0,0,0, 0.5)',\n },\n },\n y: {\n stacked: true,\n grid: {\n borderDash: [2],\n drawBorder: false,\n zeroLineColor: 'rgba(0,0,0,0)',\n zeroLineBorderDash: [2],\n zeroLineBorderDashOffset: [2],\n },\n ticks: {\n fontColor: 'rgba(0,0,0, 0.5)',\n },\n },\n },\n },\n },\n pie: {\n options: {\n ...DEFAULT_LEGEND_COLOR,\n elements: {\n arc: { backgroundColor: 'rgb(59, 112, 202)' },\n },\n responsive: true,\n legend: {\n display: true,\n },\n },\n },\n doughnut: {\n options: {\n ...DEFAULT_LEGEND_COLOR,\n elements: {\n arc: { backgroundColor: 'rgb(59, 112, 202)' },\n },\n responsive: true,\n legend: {\n display: true,\n },\n },\n },\n polarArea: {\n options: {\n ...DEFAULT_LEGEND_COLOR,\n elements: {\n arc: { backgroundColor: 'rgba(59, 112, 202, 0.5)' },\n },\n responsive: true,\n legend: {\n display: true,\n },\n },\n },\n radar: {\n options: {\n ...DEFAULT_LEGEND_COLOR,\n elements: {\n line: {\n backgroundColor: 'rgba(59, 112, 202, 0.5)',\n borderColor: 'rgb(59, 112, 202)',\n borderWidth: 2,\n },\n point: {\n borderColor: 'rgb(59, 112, 202)',\n backgroundColor: 'rgb(59, 112, 202)',\n },\n },\n responsive: true,\n legend: {\n display: true,\n },\n },\n },\n scatter: {\n options: {\n ...DEFAULT_LEGEND_COLOR,\n elements: {\n line: {\n backgroundColor: 'rgba(59, 112, 202, 0.5)',\n borderColor: 'rgb(59, 112, 202)',\n borderWidth: 2,\n tension: 0.0,\n },\n point: {\n borderColor: 'rgb(59, 112, 202)',\n backgroundColor: 'rgba(59, 112, 202, 0.5)',\n },\n },\n responsive: true,\n legend: {\n display: true,\n },\n tooltips: {\n intersect: false,\n mode: 'index',\n },\n datasets: {\n borderColor: 'red',\n },\n scales: {\n x: {\n stacked: true,\n grid: {\n display: false,\n },\n ticks: {\n fontColor: 'rgba(0,0,0, 0.5)',\n },\n },\n y: {\n stacked: false,\n grid: {\n borderDash: [2],\n drawBorder: false,\n zeroLineColor: 'rgba(0,0,0,0)',\n zeroLineBorderDash: [2],\n zeroLineBorderDashOffset: [2],\n },\n ticks: {\n fontColor: 'rgba(0,0,0, 0.5)',\n },\n },\n },\n },\n },\n bubble: {\n options: {\n ...DEFAULT_LEGEND_COLOR,\n elements: {\n point: {\n borderColor: 'rgb(59, 112, 202)',\n backgroundColor: 'rgba(59, 112, 202, 0.5)',\n },\n },\n responsive: true,\n legend: {\n display: true,\n },\n scales: {\n x: {\n grid: {\n display: false,\n },\n ticks: {\n fontColor: 'rgba(0,0,0, 0.5)',\n },\n },\n y: {\n grid: {\n borderDash: [2],\n drawBorder: false,\n zeroLineColor: 'rgba(0,0,0,0)',\n zeroLineBorderDash: [2],\n zeroLineBorderDashOffset: [2],\n },\n ticks: {\n fontColor: 'rgba(0,0,0, 0.5)',\n },\n },\n },\n },\n },\n};\n\nexport default DEFAULT_OPTIONS;\n","import {\n alertCallback,\n lightboxCallback,\n sidenavCallback,\n modalCallback,\n toastCallback,\n} from '../callbacks/pro';\nimport * as freeSelectors from './free';\nimport chartsCallback from '../callbacks/charts';\n\nconst defaultInitSelectors = {\n ...freeSelectors.default,\n chart: {\n name: 'Chart',\n selector: '[data-mdb-chart-init]',\n isToggler: false,\n advanced: chartsCallback,\n },\n chips: {\n name: 'ChipsInput',\n selector: '[data-mdb-chips-input-init]',\n isToggler: false,\n },\n chip: {\n name: 'Chip',\n selector: '[data-mdb-chip-init]',\n isToggler: false,\n onInit: 'init',\n },\n datatable: {\n name: 'Datatable',\n selector: '[data-mdb-datatable-init]',\n isToggler: false,\n },\n select: {\n name: 'Select',\n selector: '[data-mdb-select-init]',\n isToggler: false,\n },\n datetimepicker: {\n name: 'Datetimepicker',\n selector: '[data-mdb-datetimepicker-init]',\n isToggler: false,\n },\n datepicker: {\n name: 'Datepicker',\n selector: '[data-mdb-datepicker-init]',\n isToggler: false,\n },\n loading: {\n name: 'Loading',\n selector: '[data-mdb-loading-init]',\n isToggler: false,\n },\n multiRangeSlider: {\n name: 'MultiRangeSlider',\n selector: '[data-mdb-multi-range-slider-init]',\n isToggler: false,\n },\n timepicker: {\n name: 'Timepicker',\n selector: '[data-mdb-timepicker-init]',\n isToggler: false,\n },\n touch: {\n name: 'Touch',\n selector: '[data-mdb-touch-init]',\n isToggler: false,\n },\n alert: {\n name: 'Alert',\n selector: '[data-mdb-alert-init]',\n isToggler: true,\n callback: alertCallback,\n },\n animation: {\n name: 'Animate',\n selector: '[data-mdb-animation-init]',\n isToggler: false,\n onInit: 'init',\n },\n clipboard: {\n name: 'Clipboard',\n selector: '[data-mdb-clipboard-init]',\n isToggler: false,\n },\n infiniteScroll: {\n name: 'InfiniteScroll',\n selector: '[data-mdb-infinite-scroll-init]',\n isToggler: false,\n },\n lazyLoad: {\n name: 'LazyLoad',\n selector: '[data-mdb-lazy-load-init]',\n isToggler: false,\n },\n lightbox: {\n name: 'Lightbox',\n selector: '[data-mdb-lightbox-init]',\n isToggler: true,\n callback: lightboxCallback,\n },\n modal: {\n name: 'Modal',\n selector: '[data-mdb-modal-init]',\n isToggler: true,\n callback: modalCallback,\n },\n navbar: {\n name: 'Navbar',\n selector: '[data-mdb-navbar-init]',\n isToggler: false,\n onInit: 'init',\n },\n perfectScrollbar: {\n name: 'PerfectScrollbar',\n selector: '[data-mdb-perfect-scrollbar-init]',\n isToggler: false,\n },\n popconfirm: {\n name: 'Popconfirm',\n selector: '[data-mdb-popconfirm-init]',\n isToggler: false,\n },\n rating: {\n name: 'Rating',\n selector: '[data-mdb-rating-init]',\n isToggler: false,\n },\n sidenav: {\n name: 'Sidenav',\n selector: '[data-mdb-sidenav-init]',\n isToggler: true,\n callback: sidenavCallback,\n },\n smoothScroll: {\n name: 'SmoothScroll',\n selector: '[data-mdb-smooth-scroll-init]',\n isToggler: false,\n },\n stepper: {\n name: 'Stepper',\n selector: '[data-mdb-stepper-init]',\n isToggler: false,\n },\n sticky: {\n name: 'Sticky',\n selector: '[data-mdb-sticky-init]',\n isToggler: false,\n },\n toast: {\n name: 'Toast',\n selector: '[data-mdb-toast-init]',\n isToggler: true,\n callback: toastCallback,\n },\n};\n\nexport default defaultInitSelectors;\n","import Manipulator from '../../mdb/dom/manipulator';\nimport SelectorEngine from '../../mdb/dom/selector-engine';\nimport DEFAULT_OPTIONS from '../../pro/charts/chartsDefaults';\n\nconst chartsCallback = (Component, initSelector) => {\n // eslint-disable-next-line consistent-return\n const IS_COMPLEX = (data) => {\n return (\n (data[0] === '{' && data[data.length - 1] === '}') ||\n (data[0] === '[' && data[data.length - 1] === ']')\n );\n };\n\n const CONVERT_DATA_TYPE = (data) => {\n if (typeof data !== 'string') return data;\n if (IS_COMPLEX(data)) {\n return JSON.parse(data.replace(/'/g, '\"'));\n }\n return data;\n };\n\n const PARSE_DATA = (data) => {\n const dataset = {};\n Object.keys(data).forEach((property) => {\n if (property.match(/dataset.*/)) {\n const chartProperty = property.slice(7, 8).toLowerCase().concat(property.slice(8));\n dataset[chartProperty] = CONVERT_DATA_TYPE(data[property]);\n }\n });\n return dataset;\n };\n\n SelectorEngine.find(initSelector).forEach((el) => {\n if (\n !Component.getInstance(el) &&\n Manipulator.getDataAttribute(el, 'chart') !== 'bubble' &&\n Manipulator.getDataAttribute(el, 'chart') !== 'scatter'\n ) {\n const dataSet = Manipulator.getDataAttributes(el);\n const dataAttr = {\n data: {\n datasets: [PARSE_DATA(dataSet)],\n },\n };\n if (dataSet.chart) {\n dataAttr.type = dataSet.chart;\n }\n if (dataSet.labels) {\n dataAttr.data.labels = JSON.parse(dataSet.labels.replace(/'/g, '\"'));\n }\n\n return new Component(el, {\n ...dataAttr,\n ...DEFAULT_OPTIONS[dataAttr.type],\n });\n }\n return null;\n });\n};\n\nexport default chartsCallback;\n","import defaultInitSelectors from './initSelectors/pro';\nimport { InitMDB } from './init';\n\nconst initMDBInstance = new InitMDB(defaultInitSelectors);\nconst initMDB = initMDBInstance.initMDB;\n\nexport default initMDB;\n","// BigPicture.js | license MIT | henrygd.me/bigpicture\n\n// trigger element used to open popup\nlet el\n\n// set to true after first interaction\nlet initialized\n\n// container element holding html needed for script\nlet container\n\n// currently active display element (image, video, youtube / vimeo iframe container)\nlet displayElement\n\n// popup image element\nlet displayImage\n\n// popup video element\nlet displayVideo\n\n// popup audio element\nlet displayAudio\n\n// container element to hold youtube / vimeo iframe\nlet iframeContainer\n\n// iframe to hold youtube / vimeo player\nlet iframeSiteVid\n\n// store requested image source\nlet imgSrc\n\n// button that closes the container\nlet closeButton\n\n// youtube / vimeo video id\nlet siteVidID\n\n// keeps track of loading icon display state\nlet isLoading\n\n// timeout to check video status while loading\nlet checkMediaTimeout\n\n// loading icon element\nlet loadingIcon\n\n// caption element\nlet caption\n\n// caption content element\nlet captionText\n\n// store caption content\nlet captionContent\n\n// hide caption button element\nlet captionHideButton\n\n// open state for container element\nlet isOpen\n\n// gallery open state\nlet galleryOpen\n\n// used during close animation to avoid triggering timeout twice\nlet isClosing\n\n// array of prev viewed image urls to check if cached before showing loading icon\nconst imgCache = []\n\n// store whether image requested is remote or local\nlet remoteImage\n\n// store animation opening callbacks\nlet animationStart\nlet animationEnd\n\n// store changeGalleryImage callback\nlet onChangeImage\n\n// gallery left / right icons\nlet rightArrowBtn\n\nlet leftArrowBtn\n\n// position of gallery\nlet galleryPosition\n\n// hold active gallery els / image src\nlet galleryEls\n\n// counter element\nlet galleryCounter\n\n// store images in gallery that are being loaded\nlet preloadedImages = {}\n\n// whether device supports touch events\nlet supportsTouch\n\n// options object\nlet opts\n\n// Save bytes in the minified version\nconst appendEl = 'appendChild'\nconst createEl = 'createElement'\nconst removeEl = 'removeChild'\n\nexport default (options) => {\n\t// initialize called on initial open to create elements / style / event handlers\n\tinitialized || initialize(options)\n\n\t// clear currently loading stuff\n\tif (isLoading) {\n\t\tclearTimeout(checkMediaTimeout)\n\t\tremoveContainer()\n\t}\n\n\topts = options\n\n\t// store video id if youtube / vimeo video is requested\n\tsiteVidID = options.ytSrc || options.vimeoSrc\n\n\t// store optional callbacks\n\tanimationStart = options.animationStart\n\tanimationEnd = options.animationEnd\n\tonChangeImage = options.onChangeImage\n\n\t// set trigger element\n\tel = options.el\n\n\t// wipe existing remoteImage state\n\tremoteImage = false\n\n\t// set caption if provided\n\tcaptionContent = el.getAttribute('data-caption')\n\n\tif (options.gallery) {\n\t\tmakeGallery(options.gallery, options.position)\n\t} else if (siteVidID || options.iframeSrc) {\n\t\t// if vimeo, youtube, or iframe video\n\t\t// toggleLoadingIcon(true)\n\t\tdisplayElement = iframeContainer\n\t\tcreateIframe()\n\t} else if (options.imgSrc) {\n\t\t// if remote image\n\t\tremoteImage = true\n\t\timgSrc = options.imgSrc\n\t\t!~imgCache.indexOf(imgSrc) && toggleLoadingIcon(true)\n\t\tdisplayElement = displayImage\n\t\tdisplayElement.src = imgSrc\n\t} else if (options.audio) {\n\t\t// if direct video link\n\t\ttoggleLoadingIcon(true)\n\t\tdisplayElement = displayAudio\n\t\tdisplayElement.src = options.audio\n\t\tcheckMedia('audio file')\n\t} else if (options.vidSrc) {\n\t\t// if direct video link\n\t\ttoggleLoadingIcon(true)\n\t\tif (options.dimensions) {\n\t\t\tchangeCSS(displayVideo, `width:${options.dimensions[0]}px`)\n\t\t}\n\t\tmakeVidSrc(options.vidSrc)\n\t\tcheckMedia('video')\n\t} else {\n\t\t// local image / background image already loaded on page\n\t\tdisplayElement = displayImage\n\t\t// get img source or element background image\n\t\tdisplayElement.src =\n\t\t\tel.tagName === 'IMG'\n\t\t\t\t? el.src\n\t\t\t\t: window\n\t\t\t\t\t\t.getComputedStyle(el)\n\t\t\t\t\t\t.backgroundImage.replace(/^url|[(|)|'|\"]/g, '')\n\t}\n\n\t// add container to page\n\tcontainer[appendEl](displayElement)\n\tdocument.body[appendEl](container)\n\treturn {\n\t\tclose,\n\t\topts,\n\t\tupdateDimensions,\n\t\tdisplay: displayElement,\n\t\tnext: () => updateGallery(1),\n\t\tprev: () => updateGallery(-1),\n\t}\n}\n\n// create all needed methods / store dom elements on first use\nfunction initialize(options) {\n\tlet startX, isPinch\n\t// return close button elements\n\tfunction createCloseButton(className) {\n\t\tconst el = document[createEl]('button')\n\t\tel.className = className\n\t\tel.innerHTML =\n\t\t\t''\n\t\treturn el\n\t}\n\n\tfunction createArrowSymbol(direction, style) {\n\t\tconst el = document[createEl]('button')\n\t\tel.className = 'bp-lr'\n\t\tel.innerHTML =\n\t\t\t''\n\t\tchangeCSS(el, style)\n\t\tel.onclick = (e) => {\n\t\t\te.stopPropagation()\n\t\t\tupdateGallery(direction)\n\t\t}\n\t\treturn el\n\t}\n\n\t// add style - if you want to tweak, run through beautifier\n\tconst style = document[createEl]('STYLE')\n\tconst containerColor = (options && options.overlayColor) ? options.overlayColor : 'rgba(0,0,0,.7)'\n\tstyle.innerHTML =\n\t\t`#bp_caption,#bp_container{bottom:0;left:0;right:0;position:fixed;opacity:0}#bp_container>*,#bp_loader{position:absolute;right:0;z-index:10}#bp_container,#bp_caption,#bp_container svg{pointer-events:none}#bp_container{top:0;z-index:9999;background:${containerColor};opacity:0;transition:opacity .35s}#bp_loader{top:0;left:0;bottom:0;display:flex;align-items:center;cursor:wait;background:0;z-index:9}#bp_loader svg{width:50%;max-width:300px;max-height:50%;margin:auto;animation:bpturn 1s infinite linear}#bp_aud,#bp_container img,#bp_sv,#bp_vid{user-select:none;max-height:96%;max-width:96%;top:0;bottom:0;left:0;margin:auto;box-shadow:0 0 3em rgba(0,0,0,.4);z-index:-1}#bp_sv{background:#111}#bp_sv svg{width:66px}#bp_caption{font-size:.9em;padding:1.3em;background:rgba(15,15,15,.94);color:#fff;text-align:center;transition:opacity .3s}#bp_aud{width:650px;top:calc(50% - 20px);bottom:auto;box-shadow:none}#bp_count{left:0;right:auto;padding:14px;color:rgba(255,255,255,.7);font-size:22px;cursor:default}#bp_container button{position:absolute;border:0;outline:0;background:0;cursor:pointer;transition:all .1s}#bp_container>.bp-x{padding:0;height:41px;width:41px;border-radius:100%;top:8px;right:14px;opacity:.8;line-height:1}#bp_container>.bp-x:focus,#bp_container>.bp-x:hover{background:rgba(255,255,255,.2)}.bp-x svg,.bp-xc svg{display:inline;height:21px;width:20px;fill:#fff;vertical-align:top;}.bp-xc svg{width:16px}#bp_container .bp-xc{left:2%;bottom:100%;padding:9px 20px 7px;background:#d04444;border-radius:2px 2px 0 0;opacity:.85}#bp_container .bp-xc:focus,#bp_container .bp-xc:hover{opacity:1}.bp-lr{top:50%;top:calc(50% - 130px);padding:99px 0;width:6%;background:0;border:0;opacity:.4;transition:opacity .1s}.bp-lr:focus,.bp-lr:hover{opacity:.8}@keyframes bpf{50%{transform:translatex(15px)}100%{transform:none}}@keyframes bpl{50%{transform:translatex(-15px)}100%{transform:none}}@keyframes bpfl{0%{opacity:0;transform:translatex(70px)}100%{opacity:1;transform:none}}@keyframes bpfr{0%{opacity:0;transform:translatex(-70px)}100%{opacity:1;transform:none}}@keyframes bpfol{0%{opacity:1;transform:none}100%{opacity:0;transform:translatex(-70px)}}@keyframes bpfor{0%{opacity:1;transform:none}100%{opacity:0;transform:translatex(70px)}}@keyframes bpturn{0%{transform:none}100%{transform:rotate(360deg)}}@media (max-width:600px){.bp-lr{font-size:15vw}}`\n\tdocument.head[appendEl](style)\n\n\t// create container element\n\tcontainer = document[createEl]('DIV')\n\tcontainer.id = 'bp_container'\n\tcontainer.onclick = close\n\tcloseButton = createCloseButton('bp-x')\n\tcontainer[appendEl](closeButton)\n\t// gallery touch listeners\n\tif ('ontouchend' in window && window.visualViewport) {\n\t\tsupportsTouch = true\n\t\tcontainer.ontouchstart = ({ touches, changedTouches }) => {\n\t\t\tisPinch = touches.length > 1\n\t\t\tstartX = changedTouches[0].pageX\n\t\t}\n\t\tcontainer.ontouchend = ({ changedTouches }) => {\n\t\t\tif (galleryOpen && !isPinch && window.visualViewport.scale <= 1) {\n\t\t\t\tlet distX = changedTouches[0].pageX - startX\n\t\t\t\t// swipe right\n\t\t\t\tdistX < -30 && updateGallery(1)\n\t\t\t\t// swipe left\n\t\t\t\tdistX > 30 && updateGallery(-1)\n\t\t\t}\n\t\t}\n\t}\n\n\t// create display image element\n\tdisplayImage = document[createEl]('IMG')\n\n\t// create display video element\n\tdisplayVideo = document[createEl]('VIDEO')\n\tdisplayVideo.id = 'bp_vid'\n\tdisplayVideo.setAttribute('playsinline', true)\n\tdisplayVideo.controls = true\n\tdisplayVideo.loop = true\n\n\t// create audio element\n\tdisplayAudio = document[createEl]('audio')\n\tdisplayAudio.id = 'bp_aud'\n\tdisplayAudio.controls = true\n\tdisplayAudio.loop = true\n\n\t// create gallery counter\n\tgalleryCounter = document[createEl]('span')\n\tgalleryCounter.id = 'bp_count'\n\n\t// create caption elements\n\tcaption = document[createEl]('DIV')\n\tcaption.id = 'bp_caption'\n\tcaptionHideButton = createCloseButton('bp-xc')\n\tcaptionHideButton.onclick = toggleCaption.bind(null, false)\n\tcaption[appendEl](captionHideButton)\n\tcaptionText = document[createEl]('SPAN')\n\tcaption[appendEl](captionText)\n\tcontainer[appendEl](caption)\n\n\t// left / right arrow icons\n\trightArrowBtn = createArrowSymbol(1, 'transform:scalex(-1)')\n\tleftArrowBtn = createArrowSymbol(-1, 'left:0;right:auto')\n\n\t// create loading icon element\n\tloadingIcon = document[createEl]('DIV')\n\tloadingIcon.id = 'bp_loader'\n\tloadingIcon.innerHTML =\n\t\t''\n\t// create youtube / vimeo container\n\tiframeContainer = document[createEl]('DIV')\n\tiframeContainer.id = 'bp_sv'\n\n\t// create iframe to hold youtube / vimeo player\n\tiframeSiteVid = document[createEl]('IFRAME')\n\tiframeSiteVid.setAttribute('allowfullscreen', true)\n\tiframeSiteVid.allow = 'autoplay; fullscreen'\n\tiframeSiteVid.onload = () => iframeContainer[removeEl](loadingIcon)\n\tchangeCSS(\n\t\tiframeSiteVid,\n\t\t'border:0;position:absolute;height:100%;width:100%;left:0;top:0'\n\t)\n\tiframeContainer[appendEl](iframeSiteVid)\n\n\t// display image bindings for image load and error\n\tdisplayImage.onload = open\n\tdisplayImage.onerror = open.bind(null, 'image')\n\n\twindow.addEventListener('resize', () => {\n\t\t// adjust loader position on window resize\n\t\tgalleryOpen || (isLoading && toggleLoadingIcon(true))\n\t\t// adjust iframe dimensions\n\t\tdisplayElement === iframeContainer && updateDimensions()\n\t})\n\n\t// close container on escape key press and arrow buttons for gallery\n\tdocument.addEventListener('keyup', ({ keyCode }) => {\n\t\tkeyCode === 27 && isOpen && close()\n\t\tif (galleryOpen) {\n\t\t\tkeyCode === 39 && updateGallery(1)\n\t\t\tkeyCode === 37 && updateGallery(-1)\n\t\t\tkeyCode === 38 && updateGallery(10)\n\t\t\tkeyCode === 40 && updateGallery(-10)\n\t\t}\n\t})\n\t// prevent scrolling with arrow keys if gallery open\n\tdocument.addEventListener('keydown', (e) => {\n\t\tconst usedKeys = [37, 38, 39, 40]\n\t\tif (galleryOpen && ~usedKeys.indexOf(e.keyCode)) {\n\t\t\te.preventDefault()\n\t\t}\n\t})\n\n\t// trap focus within conainer while open\n\tdocument.addEventListener(\n\t\t'focus',\n\t\t(e) => {\n\t\t\tif (isOpen && !container.contains(e.target)) {\n\t\t\t\te.stopPropagation()\n\t\t\t\tcloseButton.focus()\n\t\t\t}\n\t\t},\n\t\ttrue\n\t)\n\n\t// all done\n\tinitialized = true\n}\n\n// return transform style to make full size display el match trigger el size\nfunction getRect() {\n\tconst { top, left, width, height } = el.getBoundingClientRect()\n\tconst leftOffset = left - (container.clientWidth - width) / 2\n\tconst centerTop = top - (container.clientHeight - height) / 2\n\tconst scaleWidth = el.clientWidth / displayElement.clientWidth\n\tconst scaleHeight = el.clientHeight / displayElement.clientHeight\n\treturn `transform:translate3D(${leftOffset}px, ${centerTop}px, 0) scale3D(${scaleWidth}, ${scaleHeight}, 0)`\n}\n\nfunction makeVidSrc(source) {\n\tif (Array.isArray(source)) {\n\t\tdisplayElement = displayVideo.cloneNode()\n\t\tsource.forEach((src) => {\n\t\t\tconst source = document[createEl]('SOURCE')\n\t\t\tsource.src = src\n\t\t\tsource.type = `video/${src.match(/.(\\w+)$/)[1]}`\n\t\t\tdisplayElement[appendEl](source)\n\t\t})\n\t} else {\n\t\tdisplayElement = displayVideo\n\t\tdisplayElement.src = source\n\t}\n}\n\nfunction makeGallery(gallery, position) {\n\tlet galleryAttribute = opts.galleryAttribute || 'data-bp'\n\tif (Array.isArray(gallery)) {\n\t\t// is array of images\n\t\tgalleryPosition = position || 0\n\t\tgalleryEls = gallery\n\t\tcaptionContent = gallery[galleryPosition].caption\n\t} else {\n\t\t// is element selector or nodelist\n\t\tgalleryEls = [].slice.call(\n\t\t\ttypeof gallery === 'string'\n\t\t\t\t? document.querySelectorAll(`${gallery} [${galleryAttribute}]`)\n\t\t\t\t: gallery\n\t\t)\n\t\t// find initial gallery position\n\t\tconst elIndex = galleryEls.indexOf(el)\n\t\tgalleryPosition =\n\t\t\tposition === 0 || position ? position : elIndex !== -1 ? elIndex : 0\n\t\t// make gallery object w/ els / src / caption\n\t\tgalleryEls = galleryEls.map((el) => ({\n\t\t\tel,\n\t\t\tsrc: el.getAttribute(galleryAttribute),\n\t\t\tcaption: el.getAttribute('data-caption'),\n\t\t}))\n\t}\n\t// show loading icon if needed\n\tremoteImage = true\n\t// set initial src to imgSrc so it will be cached in open func\n\timgSrc = galleryEls[galleryPosition].src\n\t!~imgCache.indexOf(imgSrc) && toggleLoadingIcon(true)\n\tif (galleryEls.length > 1) {\n\t\t// if length is greater than one, add gallery stuff\n\t\tcontainer[appendEl](galleryCounter)\n\t\tgalleryCounter.innerHTML = `${galleryPosition + 1}/${galleryEls.length}`\n\t\tif (!supportsTouch) {\n\t\t\t// add arrows if device doesn't support touch\n\t\t\tcontainer[appendEl](rightArrowBtn)\n\t\t\tcontainer[appendEl](leftArrowBtn)\n\t\t}\n\t} else {\n\t\t// gallery is one, just show without clutter\n\t\tgalleryEls = false\n\t}\n\tdisplayElement = displayImage\n\t// set initial image src\n\tdisplayElement.src = imgSrc\n}\n\nfunction updateGallery(movement) {\n\tconst galleryLength = galleryEls.length - 1\n\n\t// only allow one change at a time\n\tif (isLoading) {\n\t\treturn\n\t}\n\n\t// return if requesting out of range image\n\tconst isEnd =\n\t\t(movement > 0 && galleryPosition === galleryLength) ||\n\t\t(movement < 0 && !galleryPosition)\n\tif (isEnd) {\n\t\t// if beginning or end of gallery, run end animation\n\t\tif (!opts.loop) {\n\t\t\tchangeCSS(displayImage, '')\n\t\t\tsetTimeout(\n\t\t\t\tchangeCSS,\n\t\t\t\t9,\n\t\t\t\tdisplayImage,\n\t\t\t\t`animation:${\n\t\t\t\t\tmovement > 0 ? 'bpl' : 'bpf'\n\t\t\t\t} .3s;transition:transform .35s`\n\t\t\t)\n\t\t\treturn\n\t\t}\n\t\t// if gallery is looped, adjust position to beginning / end\n\t\tgalleryPosition = movement > 0 ? -1 : galleryLength + 1\n\t}\n\n\t// normalize position\n\tgalleryPosition = Math.max(\n\t\t0,\n\t\tMath.min(galleryPosition + movement, galleryLength)\n\t)\n\n\t// load images before and after for quicker scrolling through pictures\n\t;[galleryPosition - 1, galleryPosition, galleryPosition + 1].forEach(\n\t\t(position) => {\n\t\t\t// normalize position\n\t\t\tposition = Math.max(0, Math.min(position, galleryLength))\n\t\t\t// cancel if image has already been preloaded\n\t\t\tif (preloadedImages[position]) return\n\t\t\tconst src = galleryEls[position].src\n\t\t\t// create image for preloadedImages\n\t\t\tconst img = document[createEl]('IMG')\n\t\t\timg.addEventListener('load', addToImgCache.bind(null, src))\n\t\t\timg.src = src\n\t\t\tpreloadedImages[position] = img\n\t\t}\n\t)\n\t// if image is loaded, show it\n\tif (preloadedImages[galleryPosition].complete) {\n\t\treturn changeGalleryImage(movement)\n\t}\n\t// if not, show loading icon and change when loaded\n\tisLoading = true\n\tchangeCSS(loadingIcon, 'opacity:.4;')\n\tcontainer[appendEl](loadingIcon)\n\tpreloadedImages[galleryPosition].onload = () => {\n\t\tgalleryOpen && changeGalleryImage(movement)\n\t}\n\t// if error, store error object in el array\n\tpreloadedImages[galleryPosition].onerror = () => {\n\t\tgalleryEls[galleryPosition] = {\n\t\t\terror: 'Error loading image',\n\t\t}\n\t\tgalleryOpen && changeGalleryImage(movement)\n\t}\n}\n\nfunction changeGalleryImage(movement) {\n\tif (isLoading) {\n\t\tcontainer[removeEl](loadingIcon)\n\t\tisLoading = false\n\t}\n\tconst activeEl = galleryEls[galleryPosition]\n\tif (activeEl.error) {\n\t\t// show alert if error\n\t\talert(activeEl.error)\n\t} else {\n\t\t// add new image, animate images in and out w/ css animation\n\t\tconst oldimg = container.querySelector('img:last-of-type')\n\t\tdisplayImage = displayElement = preloadedImages[galleryPosition]\n\t\tchangeCSS(\n\t\t\tdisplayImage,\n\t\t\t`animation:${\n\t\t\t\tmovement > 0 ? 'bpfl' : 'bpfr'\n\t\t\t} .35s;transition:transform .35s`\n\t\t)\n\t\tchangeCSS(oldimg, `animation:${movement > 0 ? 'bpfol' : 'bpfor'} .35s both`)\n\t\tcontainer[appendEl](displayImage)\n\t\t// update el for closing animation\n\t\tif (activeEl.el) {\n\t\t\tel = activeEl.el\n\t\t}\n\t}\n\t// update counter\n\tgalleryCounter.innerHTML = `${galleryPosition + 1}/${galleryEls.length}`\n\t// show / hide caption\n\ttoggleCaption(galleryEls[galleryPosition].caption)\n\t// execute onChangeImage callback\n\tonChangeImage && onChangeImage([displayImage, galleryEls[galleryPosition]])\n}\n\n// create video iframe\nfunction createIframe() {\n\tlet url\n\tconst prefix = 'https://'\n\tconst suffix = 'autoplay=1'\n\n\t// create appropriate url\n\tif (opts.ytSrc) {\n\t\turl = `${prefix}www.youtube${\n\t\t\topts.ytNoCookie ? '-nocookie' : ''\n\t\t}.com/embed/${siteVidID}?html5=1&rel=0&playsinline=1&${suffix}`\n\t} else if (opts.vimeoSrc) {\n\t\turl = `${prefix}player.vimeo.com/video/${siteVidID}?${suffix}`\n\t} else if (opts.iframeSrc) {\n\t\turl = opts.iframeSrc\n\t}\n\n\t// add loading spinner to iframe container\n\tchangeCSS(loadingIcon, '')\n\tiframeContainer[appendEl](loadingIcon)\n\n\t// set iframe src to url\n\tiframeSiteVid.src = url\n\n\tupdateDimensions()\n\n\tsetTimeout(open, 9)\n}\n\nfunction updateDimensions() {\n\tlet height\n\tlet width\n\n\t// handle height / width / aspect / max width for iframe\n\tconst windowHeight = window.innerHeight * 0.95\n\tconst windowWidth = window.innerWidth * 0.95\n\tconst windowAspect = windowHeight / windowWidth\n\n\tconst [dimensionWidth, dimensionHeight] = opts.dimensions || [1920, 1080]\n\n\tconst iframeAspect = dimensionHeight / dimensionWidth\n\n\tif (iframeAspect > windowAspect) {\n\t\theight = Math.min(dimensionHeight, windowHeight)\n\t\twidth = height / iframeAspect\n\t} else {\n\t\twidth = Math.min(dimensionWidth, windowWidth)\n\t\theight = width * iframeAspect\n\t}\n\n\tiframeContainer.style.cssText += `width:${width}px;height:${height}px;`\n}\n\n// timeout to check video status while loading\nfunction checkMedia(errMsg) {\n\tif (~[1, 4].indexOf(displayElement.readyState)) {\n\t\topen()\n\t\t// short timeout to to make sure controls show in safari 11\n\t\tsetTimeout(() => {\n\t\t\tdisplayElement.play()\n\t\t}, 99)\n\t} else if (displayElement.error) {\n\t\topen(errMsg)\n\t} else {\n\t\tcheckMediaTimeout = setTimeout(checkMedia, 35, errMsg)\n\t}\n}\n\n// hide / show loading icon\nfunction toggleLoadingIcon(bool) {\n\t// don't show loading icon if noLoader is specified\n\tif (opts.noLoader) {\n\t\treturn\n\t}\n\t// bool is true if we want to show icon, false if we want to remove\n\t// change style to match trigger element dimensions if we want to show\n\tbool &&\n\t\tchangeCSS(\n\t\t\tloadingIcon,\n\t\t\t`top:${el.offsetTop}px;left:${el.offsetLeft}px;height:${el.clientHeight}px;width:${el.clientWidth}px`\n\t\t)\n\t// add or remove loader from DOM\n\tel.parentElement[bool ? appendEl : removeEl](loadingIcon)\n\tisLoading = bool\n}\n\n// hide & show caption\nfunction toggleCaption(captionContent) {\n\tif (captionContent) {\n\t\tcaptionText.innerHTML = captionContent\n\t}\n\tchangeCSS(\n\t\tcaption,\n\t\t`opacity:${captionContent ? `1;pointer-events:auto` : '0'}`\n\t)\n}\n\nfunction addToImgCache(url) {\n\t!~imgCache.indexOf(url) && imgCache.push(url)\n}\n\n// animate open of image / video; display caption if needed\nfunction open(err) {\n\t// hide loading spinner\n\tisLoading && toggleLoadingIcon()\n\n\t// execute animationStart callback\n\tanimationStart && animationStart()\n\n\t// check if we have an error string instead of normal event\n\tif (typeof err === 'string') {\n\t\tremoveContainer()\n\t\treturn opts.onError\n\t\t\t? opts.onError()\n\t\t\t: alert(`Error: The requested ${err} could not be loaded.`)\n\t}\n\n\t// if remote image is loaded, add url to imgCache array\n\tremoteImage && addToImgCache(imgSrc)\n\n\t// transform displayEl to match trigger el\n\tdisplayElement.style.cssText += getRect()\n\n\t// fade in container\n\tchangeCSS(container, `opacity:1;pointer-events:auto`)\n\n\t// set animationEnd callback to run after animation ends (cleared if container closed)\n\tif (animationEnd) {\n\t\tanimationEnd = setTimeout(animationEnd, 410)\n\t}\n\n\tisOpen = true\n\n\tgalleryOpen = !!galleryEls\n\n\t// enlarge displayEl, fade in caption if hasCaption\n\tsetTimeout(() => {\n\t\tdisplayElement.style.cssText += 'transition:transform .35s;transform:none'\n\t\tcaptionContent && setTimeout(toggleCaption, 250, captionContent)\n\t}, 60)\n}\n\n// close active display element\nfunction close(e) {\n\tconst target = e ? e.target : container\n\tconst clickEls = [\n\t\tcaption,\n\t\tcaptionHideButton,\n\t\tdisplayVideo,\n\t\tdisplayAudio,\n\t\tcaptionText,\n\t\tleftArrowBtn,\n\t\trightArrowBtn,\n\t\tloadingIcon,\n\t]\n\n\t// blur to hide close button focus style\n\ttarget.blur()\n\n\t// don't close if one of the clickEls was clicked or container is already closing\n\tif (isClosing || ~clickEls.indexOf(target)) {\n\t\treturn\n\t}\n\n\t// animate closing\n\tdisplayElement.style.cssText += getRect()\n\tchangeCSS(container, 'pointer-events:auto')\n\n\t// timeout to remove els from dom; use variable to avoid calling more than once\n\tsetTimeout(removeContainer, 350)\n\n\t// clear animationEnd timeout\n\tclearTimeout(animationEnd)\n\n\tisOpen = false\n\tisClosing = true\n}\n\n// remove container / display element from the DOM\nfunction removeContainer() {\n\t// clear src of displayElement (or iframe if display el is iframe container)\n\t// needs to be done before removing container in IE\n\tlet srcEl =\n\t\tdisplayElement === iframeContainer ? iframeSiteVid : displayElement\n\tsrcEl.removeAttribute('src')\n\n\t// remove container from DOM & clear inline style\n\tdocument.body[removeEl](container)\n\tcontainer[removeEl](displayElement)\n\tchangeCSS(container, '')\n\tchangeCSS(displayElement, '')\n\n\t// remove caption\n\ttoggleCaption(false)\n\n\tif (galleryOpen) {\n\t\t// remove all gallery stuff\n\t\tconst images = container.querySelectorAll('img')\n\t\tfor (let i = 0; i < images.length; i++) {\n\t\t\tcontainer[removeEl](images[i])\n\t\t}\n\t\tisLoading && container[removeEl](loadingIcon)\n\t\tcontainer[removeEl](galleryCounter)\n\t\tgalleryOpen = galleryEls = false\n\t\tpreloadedImages = {}\n\t\tsupportsTouch || container[removeEl](rightArrowBtn)\n\t\tsupportsTouch || container[removeEl](leftArrowBtn)\n\t\t// in case displayimage changed, we need to update event listeners\n\t\tdisplayImage.onload = open\n\t\tdisplayImage.onerror = open.bind(null, 'image')\n\t}\n\n\t// run close callback\n\topts.onClose && opts.onClose()\n\n\tisClosing = isLoading = false\n}\n\n// style helper functions\nfunction changeCSS({ style }, newStyle) {\n\tstyle.cssText = newStyle\n}\n","/**\n * The Main Custom Frontend JS. Loads in footer.\n *\n * See the header JS for getting the responsive breakpoint, in get_responsive_breakpoint().\n *\n */\n\n/*\n * ***\n * Begin Global JS\n * ***\n */\n\n/*\n * ***\n * Begin Bootstrap / MDB Imports\n * ***\n */\n\n/**\n * The list of JS imports for fronend JS. If you change anything, MDB has multiple references to\n * adjust.\n *\n * This is done based on the instruction in MDB's docs of Migrating to MDB v7. There they explained\n * the difference between ES and UMD formats. We want to load things modularly so the instructions\n * to follow said to use ES. They gave an example of how to import and init. It seems redundant\n * since the same list is needed multiple times but I could not figure out how to import by looping\n * over an array or object. - 12/14/2023 JRav.\n *\n * @see https://mdbootstrap.com/docs/standard/getting-started/migration-guide/\n *\n * When using modules this way you do not use `new mdb.ModuleName`, you only use `new ModuleName`\n */\n/* eslint-disable no-unused-vars */\nimport {\n\t// BOOTSTRAP CORE COMPONENTS\n\tButton,\n\tOffcanvas,\n\tCarousel,\n\t// Popover,\n\t// Scrollspy,\n\tTab,\n\tTooltip,\n\n\t// MDB FREE COMPONENTS\n\tInput,\n\tCollapse,\n\tDropdown,\n\tRipple,\n\t// Range,\n\n\t// MDB PRO COMPONENTS\n\tAnimate,\n\t// Lightbox,\n\t// Rating,\n\tSidenav,\n\tAlert,\n\t// Toast,\n\t// Timepicker,\n\tNavbar,\n\t// InfiniteScroll,\n\t// LazyLoad,\n\t// Datepicker,\n\t// Popconfirm,\n\t// Datatable,\n\t// Stepper,\n\t// Sticky,\n\tSelect,\n\t// Touch,\n\t// SmoothScroll,\n\tPerfectScrollbar,\n\tLoading,\n\tAutocomplete,\n\tModal,\n\tClipboard,\n\tChipsInput,\n\tChip,\n\t// MultiRangeSlider,\n\t// Datetimepicker,\n\n\t// Auto init\n\tinitMDB,\n} from 'mdbootstrap-pro/js/mdb.es.min.js';\n\nwindow.Button = Button;\nwindow.Offcanvas = Offcanvas;\nwindow.Carousel = Carousel;\n// window.Popover = Popover;\n// window.Scrollspy = Scrollspy;\nwindow.Tab = Tab;\nwindow.Tooltip = Tooltip;\nwindow.Input = Input;\nwindow.Collapse = Collapse;\nwindow.Dropdown = Dropdown;\nwindow.Ripple = Ripple;\n// window.Range = Range;\nwindow.Animate = Animate;\n// window.Lightbox = Lightbox;\n// window.Rating = Rating;\nwindow.Sidenav = Sidenav;\nwindow.Alert = Alert;\n// window.Toast = Toast;\n// window.Timepicker = Timepicker;\nwindow.Navbar = Navbar;\n// window.InfiniteScroll = InfiniteScroll;\n// window.LazyLoad = LazyLoad;\n// window.Datepicker = Datepicker;\n// window.Popconfirm = Popconfirm;\n// window.Datatable = Datatable;\n// window.Stepper = Stepper;\n// window.Sticky = Sticky;\nwindow.Select = Select;\n// window.Touch = Touch;\n// window.SmoothScroll = SmoothScroll;\nwindow.PerfectScrollbar = PerfectScrollbar;\nwindow.Loading = Loading;\nwindow.Autocomplete = Autocomplete;\nwindow.Modal = Modal;\nwindow.Clipboard = Clipboard;\nwindow.ChipsInput = ChipsInput;\nwindow.Chip = Chip;\n// window.MultiRangeSlider = MultiRangeSlider;\n// window.Datetimepicker = Datetimepicker;\n\ninitMDB({\n\tButton,\n\tOffcanvas,\n\tCarousel,\n\t// Popover,\n\t// Scrollspy,\n\tTab,\n\tTooltip,\n\tInput,\n\tCollapse,\n\tDropdown,\n\tRipple,\n\t// Range,\n\tAnimate,\n\t// Lightbox,\n\t// Rating,\n\tSidenav,\n\tAlert,\n\t// Toast,\n\t// Timepicker,\n\tNavbar,\n\t// InfiniteScroll,\n\t// LazyLoad,\n\t// Datepicker,\n\t// Popconfirm,\n\t// Datatable,\n\t// Stepper,\n\t// Sticky,\n\tSelect,\n\t// Touch,\n\t// SmoothScroll,\n\tPerfectScrollbar,\n\tLoading,\n\tAutocomplete,\n\tModal,\n\tClipboard,\n\tChipsInput,\n\tChip,\n\t// MultiRangeSlider,\n\t// Datetimepicker,\n});\n\n/*\n * ***\n * End Bootstrap / MDB Imports\n * ***\n */\n\n/*\n * ***\n * Begin init / enable BigPicture lightbox.\n * ***\n */\n\n// Importing will cause the node_modules JS to be pulled in to this frontend script.\nimport BigPicture from 'bigpicture';\n\n/**\n * Galleries\n */\nconst galleries = document.querySelectorAll(\n\t'.bsu-body-content .gallery:not(.bsu-no-lightbox)'\n);\n\nfor (let x = 0; x < galleries.length; x++) {\n\tconst galleryId = galleries[x].id;\n\n\tgalleries[x].addEventListener('click', function (ev) {\n\t\t/**\n\t\t * We cannot just provide the wrapper since the IMGs are nested in other elements. We\n\t\t * need to key in on the exact images.\n\t\t */\n\t\tconst galleryItems = document.querySelectorAll(\n\t\t\t'#' + galleryId + ' .' + 'in-' + galleryId\n\t\t);\n\n\t\tev.preventDefault(); // Don't open links.\n\n\t\t// jshint -W117\n\t\t// Ignore jshint W117 because BigPicture is set in a script compiled in the build process.\n\t\tBigPicture({\n\t\t\tel: ev.target,\n\t\t\tgallery: galleryItems,\n\t\t\tgalleryAttribute: 'data-bp',\n\t\t});\n\t\t// jshint +W117\n\t});\n}\n\n/**\n * Individual images. Only in post/page content. Only images with a href to an image will get\n * lightbox treatement. This will allow images to be used as links to other content.\n */\nconst indivImg = document.querySelectorAll(\n\t'.bsu-body-content .img-fluid:not(.bsu-no-lightbox), .bsu-body-content .img-thumbnail:not(.bsu-no-lightbox)'\n);\n\nfor (const img of indivImg) {\n\tconst galleryWrapper = img.closest('.gallery');\n\tconst isIndivImg = !galleryWrapper;\n\n\tif (isIndivImg) {\n\t\timg.style.cursor = 'pointer';\n\n\t\timg.addEventListener('click', function (event) {\n\t\t\tconst imgTarget = event.target;\n\n\t\t\t/**\n\t\t\t * Attempt to get the full size, original image. BigPicture will use the img src\n\t\t\t * attribute if the imgSrc is null or not provided on individual images.\n\t\t\t */\n\t\t\tconst fullSizeImg = imgTarget.getAttribute('data-bp');\n\n\t\t\t/**\n\t\t\t * Check if the href is to the original image and determine if lightbox should be\n\t\t\t * applied. If the link is not to the original image, do not use lightbox.\n\t\t\t */\n\t\t\tif (\n\t\t\t\timgTarget.nodeName === 'IMG' &&\n\t\t\t\timgTarget.parentNode.nodeName === 'A'\n\t\t\t) {\n\t\t\t\tconst a = imgTarget.parentNode;\n\t\t\t\tconst imgFilenameAndExt = fullSizeImg.split('/').pop();\n\t\t\t\tconst imgFileExt = '.' + imgFilenameAndExt.split('.').pop();\n\t\t\t\tconst imgFilename = imgFilenameAndExt.replace(imgFileExt, '');\n\t\t\t\tconst aFilename = a.href.split('/').pop();\n\n\t\t\t\t/**\n\t\t\t\t * If these do not match then the link is not to the original image. WordPress\n\t\t\t\t * can possibly add -scaled at the end of the filename so we factor that in\n\t\t\t\t * with a regex match.\n\t\t\t\t */\n\t\t\t\tconst pattern = new RegExp(\n\t\t\t\t\timgFilename + '(-scaled)?(\\\\' + imgFileExt + ')',\n\t\t\t\t\t'g'\n\t\t\t\t);\n\t\t\t\tconst aIsToImgFile = pattern.test(aFilename);\n\n\t\t\t\tif (aIsToImgFile) {\n\t\t\t\t\tevent.preventDefault();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tBigPicture({\n\t\t\t\tel: imgTarget,\n\t\t\t\timgSrc: fullSizeImg,\n\t\t\t});\n\t\t});\n\t}\n}\n\n/*\n * ***\n * End init / enable BigPicture lightbox.\n * ***\n */\n\n/*\n * ***\n * Begin add compressed class to the #bsu-branding-main-nav header when scrolling.\n * ***\n */\nconst bsuBrandingMainNav = document.getElementById('bsu-branding-main-nav');\n\nif (!bsuBrandingMainNav.classList.contains('static')) {\n\tlet lastKnownScrollPosition = 0;\n\tlet scrolling = false;\n\n\tdocument.addEventListener('scroll', () => {\n\t\tlastKnownScrollPosition = window.scrollY;\n\n\t\tif (!scrolling) {\n\t\t\twindow.requestAnimationFrame(() => {\n\t\t\t\tif (lastKnownScrollPosition >= 60) {\n\t\t\t\t\tbsuBrandingMainNav.classList.add('compressed');\n\t\t\t\t\tbsuBrandingMainNav.classList.remove('bg-opacity-75');\n\t\t\t\t} else {\n\t\t\t\t\tbsuBrandingMainNav.classList.remove('compressed');\n\t\t\t\t\tbsuBrandingMainNav.classList.add('bg-opacity-75');\n\t\t\t\t}\n\n\t\t\t\tscrolling = false;\n\t\t\t});\n\n\t\t\tscrolling = true;\n\t\t}\n\t});\n}\n/*\n * ***\n * End add compressed class to the #bsu-branding-main-nav header when scrolling.\n * ***\n */\n\n/*\n * ***\n * Begin Footer Parallax\n * ***\n */\n\n/**\n * It seem like this should be effected by something like the Dichotomy paradox since the\n * moving element is moving and we are looking its position... but it just works so I am\n * leaving it here with more comments than last. -- JRav\n */\n\nconst bsuFooterParallaxMove = function () {\n\t// The element to look for.\n\tconst parallaxBack = document.getElementById('bsu-footer-parallax-back');\n\n\t// Determines how much parallax movement there is.\n\tconst parallaxStart = 11;\n\n\t// Get the element's top and bottom position within the window.\n\tconst movingElementTop =\n\t\tparallaxBack.getBoundingClientRect().top + window.scrollY;\n\tconst movingElementBottom =\n\t\tmovingElementTop + parallaxBack.getBoundingClientRect().height;\n\n\t// Get the current top and bottom positions of the viewport.\n\tconst viewportTop = window.scrollY;\n\tconst viewportBottom = viewportTop + window.innerHeight;\n\n\t// Check viewport position and element position to determine if the element is in view.\n\tconst inViewport =\n\t\tmovingElementBottom > viewportTop && movingElementTop < viewportBottom;\n\n\t// Init these vars so they can be set by calculations.\n\tlet percentageWithin;\n\tlet newPercentBottom;\n\n\tif (true === inViewport) {\n\t\t// Calculate the percentage of the viewportBottom that is within the moving parallax element.\n\t\tpercentageWithin =\n\t\t\t(viewportBottom - movingElementTop) /\n\t\t\t(movingElementBottom - movingElementTop);\n\n\t\t// Calculate the new margin-bottom of the moving parallax element.\n\t\tnewPercentBottom = parallaxStart / percentageWithin;\n\n\t\t// Set the margin-bottom of the moving parallax element.\n\t\tparallaxBack.style.marginBottom = newPercentBottom + 'rem';\n\t}\n};\n\n// Runs on load. Calculate the parallax in case we are on a short page.\nbsuFooterParallaxMove();\n\n// Calculate all positions on scroll.\ndocument.addEventListener('scroll', bsuFooterParallaxMove);\n\n/*\n * ***\n * End Footer Parallax\n * ***\n */\n\n/*\n * ***\n * End Global JS\n * ***\n */\n\n/*\n * ***\n * Begin Homepage JS\n * ***\n */\n\n/*\n * ***\n * Begin add CSS classes to the .bsu-cta-homepage call to action buttons when scrolling\n * ***\n */\n// Check the ready state otherwise the height of carousel may be calculated at 0.\ndocument.onreadystatechange = function () {\n\tif (document.readyState === 'complete') {\n\t\tconst ctaHomepageWrapper = document.querySelector(\n\t\t\t'div.bsu-cta-homepage'\n\t\t);\n\n\t\tconst ctaHomepageList = document.querySelector(\n\t\t\t'.bsu-cta-nav .navbar ul'\n\t\t);\n\n\t\tconst ctaHomepageButtons = document.querySelectorAll(\n\t\t\t'a.bsu-cta-homepage-button'\n\t\t);\n\n\t\tconst heroCarousel = document.getElementById('hero-carousel');\n\n\t\t/**\n\t\t * The classes variables below are named for classes that are added when the element is\n\t\t * in a specific location. These class lists are added and removed depending on where they\n\t\t * are being moved to during the scroll event.\n\t\t */\n\n\t\tconst ctaWrapperClassesInHeader = 'bg-secondary';\n\n\t\tconst ctaWrapperClassesDefault = 'mt-lg-n5';\n\n\t\tconst ctaUlClassesDefault = 'gap-lg-2';\n\n\t\t// Classes to add/remove from individual links (A tags) used as CTA buttons.\n\t\tconst ctaLinkClassesDefault = ['btn', 'btn-lg', 'btn-primary'];\n\n\t\t// Check if the ctaHomepageWrapper element was found.\n\t\tif (ctaHomepageWrapper) {\n\t\t\tconst bsuFixedTop = document.querySelector('.fixed-top');\n\n\t\t\t// The scroll height of when to move the CTA buttons.\n\t\t\tconst bsuCtaMove =\n\t\t\t\theroCarousel.offsetTop +\n\t\t\t\theroCarousel.offsetHeight -\n\t\t\t\tbsuFixedTop.offsetHeight +\n\t\t\t\tctaHomepageButtons[0].offsetHeight / 2;\n\n\t\t\t// The scroll height of when to\n\t\t\tconst bsuCtaMoveOff =\n\t\t\t\theroCarousel.offsetTop +\n\t\t\t\theroCarousel.offsetHeight -\n\t\t\t\tbsuFixedTop.offsetHeight;\n\n\t\t\tlet lastKnownScrollPosition = 0;\n\t\t\tlet scrolling = false;\n\n\t\t\tdocument.addEventListener('scroll', () => {\n\t\t\t\tlastKnownScrollPosition = window.scrollY;\n\n\t\t\t\tif (false === scrolling) {\n\t\t\t\t\twindow.requestAnimationFrame(() => {\n\t\t\t\t\t\tif (lastKnownScrollPosition > bsuCtaMove) {\n\t\t\t\t\t\t\t/**\n\t\t\t\t\t\t\t * The viewport is scrolled below the CTA buttons. Put them on the header.\n\t\t\t\t\t\t\t */\n\n\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\t!ctaHomepageWrapper.classList.contains(\n\t\t\t\t\t\t\t\t\t'bg-secondary'\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\t/**\n\t\t\t\t\t\t\t\t * When .bg-secondary is found, that means .bsu-cta-homepage is fixed to the top of the page.\n\t\t\t\t\t\t\t\t */\n\n\t\t\t\t\t\t\t\t// Put the CTA container in to the fixed top/nav container.\n\t\t\t\t\t\t\t\tbsuFixedTop.append(ctaHomepageWrapper);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tfor (const aTag of ctaHomepageButtons) {\n\t\t\t\t\t\t\t\t// Add each individual class in the array.\n\t\t\t\t\t\t\t\tfor (const individualClass of ctaLinkClassesDefault) {\n\t\t\t\t\t\t\t\t\taTag.classList.remove(individualClass);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tctaHomepageList.classList.remove(\n\t\t\t\t\t\t\t\tctaUlClassesDefault\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\tctaHomepageWrapper.classList.remove(\n\t\t\t\t\t\t\t\tctaWrapperClassesDefault\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\tctaHomepageWrapper.classList.add(\n\t\t\t\t\t\t\t\tctaWrapperClassesInHeader\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t} else if (\n\t\t\t\t\t\t\tlastKnownScrollPosition < bsuCtaMoveOff &&\n\t\t\t\t\t\t\tctaHomepageWrapper.classList.contains(\n\t\t\t\t\t\t\t\t'bg-secondary'\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t/**\n\t\t\t\t\t\t\t * The viewport is scrolled above the CTA buttons. Put them back on the carousel.\n\t\t\t\t\t\t\t */\n\n\t\t\t\t\t\t\t// Put the CTA container below the carousel.\n\t\t\t\t\t\t\theroCarousel.parentNode.insertBefore(\n\t\t\t\t\t\t\t\tctaHomepageWrapper,\n\t\t\t\t\t\t\t\theroCarousel.nextSibling\n\t\t\t\t\t\t\t);\n\n\t\t\t\t\t\t\tfor (const aTag of ctaHomepageButtons) {\n\t\t\t\t\t\t\t\t// Remove each individual class in the array.\n\t\t\t\t\t\t\t\tfor (const individualClass of ctaLinkClassesDefault) {\n\t\t\t\t\t\t\t\t\taTag.classList.add(individualClass);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tctaHomepageList.classList.add(ctaUlClassesDefault);\n\t\t\t\t\t\t\tctaHomepageWrapper.classList.remove(\n\t\t\t\t\t\t\t\tctaWrapperClassesInHeader\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\tctaHomepageWrapper.classList.add(\n\t\t\t\t\t\t\t\tctaWrapperClassesDefault\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tscrolling = false;\n\t\t\t\t\t});\n\n\t\t\t\t\tscrolling = true;\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}\n};\n/*\n * ***\n * End add CSS classes to the .bsu-cta-homepage call to action buttons when scrolling\n * ***\n */\n\n/*\n * ***\n * Begin functionality for back to floating action buttons (FABs) page top button and chat.\n * ***\n */\n\n/**\n * NOTE on COMPROMISE: Best practice is that there is only one FAB. The FAB for back to top is at\n * the bottom right which is also best practice. Since chat appears as a FAB, we are making it hide\n * after a user scrolls past one viewport height. The script for distance is in chat-distance-mn.js.\n */\n\n// JS is required for this feature. It is initially written to the page by JS.\nconst viewportHeight = window.innerHeight;\nconst docBodyHeight = document.body.scrollHeight;\nconst threasholdBackToTop = viewportHeight * 4;\n\n// Only create the back to top button if the body is large enough to make use of it.\nif (docBodyHeight >= threasholdBackToTop) {\n\tconst backToTopButton = document.createElement('a');\n\tbackToTopButton.id = 'bsu-back-to-top';\n\tbackToTopButton.setAttribute('title', 'Back to Top');\n\tbackToTopButton.setAttribute('aria-label', 'Back to Top');\n\tbackToTopButton.innerHTML = '';\n\tbackToTopButton.classList.add(\n\t\t'btn',\n\t\t'btn-primary',\n\t\t'btn-floating',\n\t\t'position-fixed',\n\t\t'bottom-0',\n\t\t'end-0',\n\t\t'm-4',\n\t\t'd-none'\n\t);\n\tbackToTopButton.onclick = function () {\n\t\twindow.scrollTo({ top: 0, behavior: 'smooth' });\n\t};\n\n\t// Place the button in the

±¬ÁϹ«Éç

after it has been setup above.\n\tdocument.body.appendChild(backToTopButton);\n\n\t// Use MDB's JS API for showing the button.\n\tconst backToTopShow = new Animate(backToTopButton, {\n\t\tanimation: 'fade-in-up',\n\t\tanimationStart: 'manually',\n\t\tanimationRepeat: false,\n\t\tonStart: () => {\n\t\t\tbackToTopButton.classList.remove('d-none', 'fade-out-down');\n\t\t},\n\t});\n\tbackToTopShow.init();\n\n\t// Use MDB's JS API for hiding the button.\n\tconst backToTopHide = new Animate(backToTopButton, {\n\t\tanimation: 'fade-out-down',\n\t\tanimationStart: 'manually',\n\t\tanimationRepeat: false,\n\t\tonStart: () => {\n\t\t\tbackToTopButton.classList.remove('fade-in-up');\n\t\t},\n\t});\n\tbackToTopHide.init();\n\n\t// Flag if the scroll amount is past the configured threshold.\n\tlet scrollAmountMetForBackToTop = false;\n\n\tdocument.addEventListener('scroll', () => {\n\t\t// Check how far down the page the user has scrolled.\n\t\tconst scrollAmount = window.scrollY;\n\n\t\t// Determine if scroll amount is enough to show the Back to Top button.\n\t\tif (\n\t\t\tscrollAmount >= threasholdBackToTop &&\n\t\t\tfalse === scrollAmountMetForBackToTop\n\t\t) {\n\t\t\tbackToTopShow.startAnimation();\n\t\t\tscrollAmountMetForBackToTop = true;\n\t\t} else if (\n\t\t\tscrollAmount < threasholdBackToTop &&\n\t\t\ttrue === scrollAmountMetForBackToTop\n\t\t) {\n\t\t\tbackToTopHide.startAnimation();\n\t\t\tscrollAmountMetForBackToTop = false;\n\t\t}\n\t});\n}\n\n/*\n * ***\n * End functionality for page top link.\n * ***\n */\n"],"names":["mapData","storeData","id","set","element2","key","data","get","keyProperties","delete","Data$1","setData","instance","getData","removeData","getUID$1","prefix","Math","floor","random","document","getElementById","getSelector$1","selector","getAttribute","hrefAttr","trim","getSelectorFromElement","querySelector","getElementFromSelector","isElement$2","obj","jquery","nodeType","getElement$1","length","typeCheckConfig","componentName","config","configTypes","Object","keys","forEach","property","expectedTypes","value","valueType","toString","call","match","toLowerCase","RegExp","test","Error","toUpperCase","isVisible$1","style","parentNode","elementStyle","getComputedStyle","parentNodeStyle","display","visibility","isDisabled$1","Node","ELEMENT_NODE","classList","contains","disabled","hasAttribute","getjQuery$1","getjQuery","jQuery","window","body","onDOMContentLoaded","callback","readyState","addEventListener","isRTL$1","documentElement","dir","element","tag","createElement","defineJQueryPlugin","plugin","$2","name","NAME","JQUERY_NO_CONFLICT","fn","jQueryInterface","Constructor","noConflict","$","namespaceRegex$1","stripNameRegex$1","stripUidRegex$1","eventRegistry$1","uidEvent$1","customEvents$1","mouseenter","mouseleave","nativeEvents$1","getUidEvent","uid","uidEvent","getEvent","findHandler$1","events","handler","delegationSelector","arguments","undefined","uidEventList","i","len","event","originalHandler","normalizeParams","originalTypeEvent","delegationFn","delegation","typeEvent","replace","custom","indexOf","addHandler$1","oneOff","handlers2","previousFn","fn2","bootstrapDelegationHandler$1","domElements","querySelectorAll","target","this","delegateTarget","EventHandler$1","off","type","apply","bootstrapHandler$1","removeHandler$1","removeEventListener","Boolean","on","one","extend","e","eventParameters","parametersToCopy","param","trigger","defaultPrevented","preventDefault","inNamespace","isNamespace","charAt","elementEvent","removeNamespacedHandlers$1","namespace","storeElementEvent","handlerKey","slice","keyHandlers","args","isNative","jQueryEvent","bubbles","nativeDispatch","evt","Event","isPropagationStopped","isImmediatePropagationStopped","isDefaultPrevented","createEvent","initEvent","CustomEvent","cancelable","defineProperty","dispatchEvent","normalizeData$1","val","Number","normalizeDataKey$1","chr","Manipulator$1","setDataAttribute","setAttribute","removeDataAttribute","removeAttribute","getDataAttributes","attributes","dataset","filter","startsWith","pureKey","getDataAttribute","offset","rect","getBoundingClientRect","top","scrollTop","left","scrollLeft","position","offsetTop","offsetLeft","assign","toggleClass","className","remove","add","addClass","addStyle","removeClass","hasClass","SelectorEngine$1","closest","matches","find","concat","Element","prototype","findOne","children","child","parents","ancestor","push","prev","previous","previousElementSibling","next","nextElementSibling","elementMap","Map","Data","has","instanceMap","size","console","error","Array","from","TRANSITION_END","parseSelector","CSS","escape","triggerTransitionEnd","isElement$1","object","getElement","isVisible","getClientRects","elementIsVisible","getPropertyValue","closedDetails","summary","isDisabled","findShadowRoot","attachShadow","getRootNode","root","ShadowRoot","noop","reflow","offsetHeight","isRTL","execute","possibleCallback","defaultValue","executeAfterTransition","transitionElement","emulatedDuration","transitionDuration","transitionDelay","floatTransitionDuration","parseFloat","floatTransitionDelay","split","getTransitionDurationFromElement","called","_ref6","setTimeout","getNextActiveElement","list","activeElement","shouldGetNext","isCycleAllowed","listLength","index","max","min","namespaceRegex","stripNameRegex","stripUidRegex","eventRegistry","customEvents","nativeEvents","Set","makeEventUid","getElementEvents","findHandler","callable","values","normalizeParameters","delegationFunction","isDelegated","getTypeEvent","addHandler","fn3","relatedTarget","wrapFunction","previousFunction","bootstrapDelegationHandler","domElement","hydrateObj","EventHandler","bootstrapHandler","removeHandler","removeNamespacedHandlers","entries","includes","meta","configurable","normalizeData","JSON","parse","decodeURIComponent","normalizeDataKey","Manipulator","mdbKeys","Config","Default","DefaultType","_getConfig","_mergeConfigObj","_configAfterMerge","_typeCheckConfig","jsonConfig","constructor","TypeError","BaseComponent","super","_element","_config","DATA_KEY","dispose","EVENT_KEY","propertyName","getOwnPropertyNames","_queueCallback","getInstance","getOrCreateInstance","VERSION","eventName","Button","BaseComponent$1","toggle","each","mapComponentsData","componentsData","InitializedComponents","bindCallbackEventsIfNeeded","component","initComponent","manualInit","thisComponent","_defaultInitSelectors","isToggler","advanced","onInit","NAME$W","DATA_KEY$D","EVENT_KEY$v","EVENT_CLICK$3","EVENT_TRANSITIONEND","EVENT_MOUSEENTER$2","EVENT_MOUSELEAVE$2","EVENT_HIDE$9","EVENT_HIDDEN$a","EVENT_SHOW$a","EVENT_SHOWN$9","CLASS_NAME_ACTIVE$6","CLASS_NAME_FIXED_ACTION_BTN","Button2","Button$1","_fn","_init","options","_actionButton","_buttonListElements","_buttonList","_isTouchDevice","show","_bindListOpenTransitionEnd","height","_fullContainerHeight","_toggleVisibility","hide","_bindListHideTransitionEnd","_saveInitialHeights","_setInitialStyles","_bindInitialEvents","_bindMouseEnter","_bindMouseLeave","_bindClick","_initialContainerHeight","isVisible2","action","listTranslate","transform","el","_getHeight","computed","_initialListHeight","marginBottom","getSelector","hrefAttribute","map","sel","join","SelectorEngine","focusableChildren","focusables","getMultipleElementsFromSelector","NAME$V","CLASS_NAME_SHOW$9","EVENT_MOUSEDOWN$2","Default$z","clickCallback","isAnimated","rootElement","DefaultType$z","Backdrop","_isAppended","_append","_getElement","_emulateAnimation","backdrop","append","enableDismissTrigger","method","clickEvent","tagName","EVENT_KEY$u","EVENT_FOCUSIN$2","EVENT_KEYDOWN_TAB","TAB_NAV_BACKWARD","Default$y","autofocus","trapElement","DefaultType$y","FocusTrap","_isActive","_lastTabNavDirection","activate","focus","_handleFocusin","_handleKeydown","deactivate","elements","shiftKey","SELECTOR_FIXED_CONTENT$1","SELECTOR_STICKY_CONTENT$1","PROPERTY_PADDING","PROPERTY_MARGIN","ScrollBarHelper","getWidth","documentWidth","clientWidth","abs","innerWidth","width","_disableOverFlow","_setElementAttributes","calculatedValue","reset","_resetElementAttributes","isOverflowing","_saveInitialAttribute","overflow","styleProperty","scrollbarWidth","_applyManipulationCallback","setProperty","actualValue","removeProperty","callBack","EVENT_KEY$t","CLASS_NAME_SHOW$8","CLASS_NAME_SHOWING$1","CLASS_NAME_HIDING","EVENT_SHOW$9","EVENT_SHOWN$8","EVENT_HIDE$8","EVENT_HIDE_PREVENTED$1","EVENT_HIDDEN$9","EVENT_KEYDOWN_DISMISS$1","Default$x","keyboard","scroll","DefaultType$x","Offcanvas","_isShown","_backdrop","_initializeBackDrop","_focustrap","_initializeFocusTrap","_addEventListeners","completeCallBack","blur","completeCallback","FocusTrap$1","EVENT_KEY$s","EVENT_TOUCHSTART","EVENT_TOUCHMOVE","EVENT_TOUCHEND","EVENT_POINTERDOWN","EVENT_POINTERUP","Default$w","endCallback","leftCallback","rightCallback","DefaultType$w","Swipe","isSupported","_deltaX","_supportPointerEvents","PointerEvent","_initEvents","_start","_eventIsPointerPenTouch","clientX","touches","_end","_handleSwipe","_move","absDeltaX","direction","pointerType","navigator","maxTouchPoints","EVENT_KEY$r","ARROW_LEFT_KEY$2","ARROW_RIGHT_KEY$2","ORDER_NEXT","ORDER_PREV","DIRECTION_LEFT","DIRECTION_RIGHT","EVENT_SLIDE","EVENT_SLID","EVENT_KEYDOWN$3","EVENT_MOUSEENTER$1","EVENT_MOUSELEAVE$1","EVENT_DRAG_START","CLASS_NAME_ACTIVE$5","SELECTOR_ACTIVE$2","SELECTOR_ITEM$1","SELECTOR_ACTIVE_ITEM","KEY_TO_DIRECTION","Default$v","interval","pause","ride","touch","wrap","DefaultType$v","Carousel","_interval","_activeElement","_isSliding","touchTimeout","_swipeHelper","_indicatorsElement","cycle","_slide","nextWhenVisible","hidden","_clearInterval","_updateInterval","setInterval","_maybeEnableCycle","to","items","_getItems","activeIndex","_getItemIndex","_getActive","order2","defaultInterval","_keydown","Swipe$2","_addTouchEventListeners","img","swipeConfig","_directionToOrder","endCallBack","clearTimeout","_setActiveIndicatorElement","activeIndicator","newActiveIndicator","elementInterval","parseInt","isNext","nextElement","nextElementIndex","triggerEvent","_orderToDirection","isCycling","directionalClassName","orderClassName","_isAnimated","clearInterval","NAME$Q","EXTENDED_EVENTS$6","Carousel2","Carousel$1","_bindMdbEvents","bottom","right","auto","basePlacements","start","end","clippingParents","viewport","popper","reference","variationPlacements","reduce","acc","placement","placements","beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite","modifierPhases","getNodeName","nodeName","getWindow","node","ownerDocument","defaultView","isElement","isHTMLElement","HTMLElement","isShadowRoot","applyStyles$1","enabled","phase","applyStyles","_ref","state","styles","name2","effect","effect$2","_ref2","initialStyles","strategy","margin","arrow","hasOwnProperty","style2","attribute","requires","getBasePlacement","round","getUAString","uaData","userAgentData","brands","isArray","item","brand","version","userAgent","isLayoutViewport","includeScale","isFixedStrategy","clientRect","scaleX","scaleY","offsetWidth","visualViewport","addVisualOffsets","x","y","getLayoutRect","parent","rootNode","isSameNode","host","getComputedStyle$1","isTableElement","getDocumentElement","getParentNode","assignedSlot","getTrueOffsetParent","offsetParent","getOffsetParent","window2","getContainingBlock","isFirefox","currentNode","css","perspective","contain","willChange","getMainAxisFromPlacement","within","min$1","max$1","mergePaddingObject","paddingObject","expandToHashMap","hashMap","arrow$1","_state$modifiersData$","arrowElement","popperOffsets2","modifiersData","popperOffsets","basePlacement","axis","toPaddingObject2","padding","rects","toPaddingObject","arrowRect","minProp","maxProp","endDiff","startDiff","arrowOffsetParent","clientSize","clientHeight","centerToReference","min2","max2","center","offset2","axisProp","centerOffset","effect$1","_options$element","requiresIfExists","getVariation","unsetSides","mapToStyles","_Object$assign2","popper2","popperRect","variation","offsets","gpuAcceleration","adaptive","roundOffsets","isFixed","_offsets$x","_offsets$y","_ref3","hasX","hasY","sideX","sideY","win","heightProp","widthProp","_Object$assign","commonStyles","_ref4","roundOffsetsByDPR","dpr","devicePixelRatio","computeStyles$1","computeStyles","_ref5","_options$gpuAccelerat","_options$adaptive","_options$roundOffsets","passive","eventListeners","_options$scroll","_options$resize","resize","scrollParents","scrollParent","update","hash$1","getOppositePlacement","matched","hash","getOppositeVariationPlacement","getWindowScroll","pageXOffset","pageYOffset","getWindowScrollBarX","isScrollParent","_getComputedStyle","overflowX","overflowY","getScrollParent","listScrollParents","_element$ownerDocumen","isBody","updatedList","rectToClientRect","getClientRectFromMixedType","clippingParent","getViewportRect","html","layoutViewport","getInnerBoundingClientRect","clientTop","clientLeft","getDocumentRect","winScroll","scrollWidth","scrollHeight","getClippingRect","boundary","rootBoundary","mainClippingParents","getClippingParents","clippingParents2","clipperElement","firstClippingParent","clippingRect","accRect","computeOffsets","reference2","commonX","commonY","mainAxis","detectOverflow","_options","_options$placement","_options$strategy","_options$boundary","_options$rootBoundary","_options$elementConte","elementContext","_options$altBoundary","altBoundary","_options$padding","altContext","clippingClientRect","contextElement","referenceClientRect","popperClientRect","elementClientRect","overflowOffsets","offsetData","multiply","flip$1","flip","_skip","_options$mainAxis","checkMainAxis","_options$altAxis","altAxis","checkAltAxis","specifiedFallbackPlacements","fallbackPlacements","_options$flipVariatio","flipVariations","allowedAutoPlacements","preferredPlacement","getExpandedFallbackPlacements","oppositePlacement","placements2","placement2","computeAutoPlacement","_options$allowedAutoP","placements$1","allowedPlacements","overflows","sort","a","b","referenceRect","checksMap","makeFallbackChecks","firstFittingPlacement","_basePlacement","isStartVariation","isVertical","mainVariationSide","altVariationSide","checks","every","check","_loop","_loop2","_i2","fittingPlacement","checks2","_i","getSideOffsets","preventedOffsets","isAnySideFullyClipped","some","side","hide$1","preventOverflow","referenceOverflow","popperAltOverflow","referenceClippingOffsets","popperEscapeOffsets","isReferenceHidden","hasPopperEscaped","offset$1","_options$offset","distanceAndSkiddingToXY","invertDistance","skidding","distance","_data$state$placement","popperOffsets$1","preventOverflow$1","_options$tether","tether","_options$tetherOffset","tetherOffset","isBasePlacement","getAltAxis","tetherOffsetValue","normalizedTetherOffsetValue","offsetModifierState","_offsetModifierState$","mainSide","altSide","additive","minLen","maxLen","arrowPaddingObject","arrowPaddingMin","arrowPaddingMax","arrowLen","minOffset","maxOffset","clientOffset","offsetModifierValue","tetherMax","preventedOffset","_offsetModifierState$2","_mainSide","_altSide","_offset","_len","_min","_max","isOriginSide","_offsetModifierValue","_tetherMin","_tetherMax","_preventedOffset","withinMaxClamp","v","getCompositeRect","elementOrVirtualElement","isOffsetParentAnElement","offsetParentIsScaled","isElementScaled","getNodeScroll","getHTMLElementScroll","order","modifiers","visited","result","sort2","modifier","dep","depModifier","DEFAULT_OPTIONS$d","areValidElements","_key","popperGenerator","generatorOptions","_generatorOptions","_generatorOptions$def","defaultModifiers","defaultModifiers2","_generatorOptions$def2","defaultOptions","createPopper2","pending","orderedModifiers","effectCleanupFns","isDestroyed","setOptions","setOptionsAction","options2","cleanupModifierEffects","orderModifiers","mergeByName","merged","merged2","current","existing","m","runModifierEffects","_ref$options","effect2","cleanupFn","noopFn","noopFn2","forceUpdate","_state$elements","reference3","popper3","_state$orderedModifie","_state$orderedModifie2","Promise","resolve","then","destroy","destroy2","state2","onFirstUpdate","createPopper$2","createPopper$1","createPopper","DefaultAllowlist","area","br","col","code","dd","div","dl","dt","em","hr","h1","h2","h3","h4","h5","h6","li","ol","p","pre","s","small","span","sub","sup","strong","u","ul","uriAttributes","SAFE_URL_PATTERN$1","allowedAttribute$1","allowedAttribute","allowedAttributeList","attributeName","nodeValue","attributeRegex","regex","Default$u","allowList","content","extraClass","sanitize","sanitizeFn","template","DefaultType$u","DefaultContentType","entry","TemplateFactory","getContent","_resolvePossibleFunction","hasContent","changeContent","_checkContent","toHtml","templateWrapper","innerHTML","_maybeSanitize","text","_setContent","arg","templateElement","_putElementInTemplate","textContent","sanitizeHtml$1","unsafeHtml","sanitizeFunction","createdDocument","DOMParser","parseFromString","elementName","attributeList","allowedAttributes","DISALLOWED_ATTRIBUTES","CLASS_NAME_FADE$5","CLASS_NAME_SHOW$7","SELECTOR_TOOLTIP_INNER","SELECTOR_MODAL","EVENT_MODAL_HIDE","TRIGGER_HOVER","TRIGGER_FOCUS","AttachmentMap","AUTO","TOP","RIGHT","BOTTOM","LEFT","Default$t","animation","container","customClass","delay","popperConfig","title","DefaultType$t","Tooltip","Popper","_isEnabled","_timeout","_isHovered","_activeTrigger","_popper","_templateFactory","_newContent","tip","_setListeners","_fixTitle","enable","disable","toggleEnabled","click","_leave","_enter","_hideModalHandler","_disposePopper","_isWithContent","showEvent","isInTheDom","_getTipElement","_createPopper","complete","_isWithActiveTrigger","_getTitle","_createTipElement","_getContentForTemplate","_getTemplateFactory","tipId","getUID","setContent","_initializeOnDelegatedTarget","_getDelegateConfig","attachment","_getPopperConfig","_getOffset","popperData","defaultBsPopperConfig","triggers","eventIn","eventOut","context","_setTimeout","timeout","dataAttributes","dataAttribute","EVENT_KEY$o","EVENT_HIDE$6","EVENT_HIDDEN$7","EVENT_SHOW$7","EVENT_SHOWN$6","EVENT_KEYDOWN$2","ARROW_LEFT_KEY$1","ARROW_RIGHT_KEY$1","ARROW_UP_KEY$1","ARROW_DOWN_KEY$1","HOME_KEY","END_KEY","CLASS_NAME_ACTIVE$3","CLASS_NAME_FADE$4","CLASS_NAME_SHOW$6","SELECTOR_DROPDOWN_TOGGLE","NOT_SELECTOR_DROPDOWN_TOGGLE","SELECTOR_INNER_ELEM","Tab","_parent","_setInitialAttributes","_getChildren","innerElem","_elemIsActive","active","_getActiveElem","hideEvent","_deactivate","_activate","relatedElem","_toggleDropDown","stopPropagation","nextActiveElement","preventScroll","_setAttributeIfNotExists","_setInitialAttributesOnChild","_getInnerElement","isActive","outerElem","_getOuterElement","_setInitialAttributesOnTargetPanel","open","element3","elem","EVENT_KEY$n","EVENT_SHOW_BS$3","EVENT_SHOWN_BS$3","EVENT_SHOW$6","EVENT_SHOWN$5","EVENT_HIDE$5","EVENT_HIDDEN$6","CLASS_NAME_ACTIVE$2","CLASS_NAME_FADE$3","CLASS_NAME_SHOW$5","Tab2","Tab$1","hideEventMdb","showEventMdb","NAME$H","EXTENDED_EVENTS$4","Tooltip2","Tooltip$1","e2","t2","n2","d","Z","r","o","n","e3","exports","t3","e4","c","initCustomEvent","detail","e5","n3","HTMLIFrameElement","contentDocument","head","identifier","r2","o2","u2","c2","base","l2","s2","d2","f2","media","sourceMap","references","updater","nonce","a2","nc","insert","i2","appendChild","l","styleSheet","cssText","createTextNode","childNodes","removeChild","insertBefore","f","btoa","unescape","encodeURIComponent","stringify","firstChild","singleton","bind","t4","all","atob","splice","t","__esModule","default","enumerable","locals","animationName","inputType","BaseComponent2","CLASSNAME_ACTIVE$2","CLASSNAME_NOTCH","CLASSNAME_NOTCH_LEADING","CLASSNAME_NOTCH_MIDDLE","SELECTOR_NOTCH","SELECTOR_NOTCH_LEADING","SELECTOR_NOTCH_MIDDLE","Input","_label","_labelWidth","_labelMarginLeft","_notchLeading","_notchMiddle","_notchTrailing","_initiated","_helper","_counter","_counterElement","_maxLength","_leadingIcon","init","input","_getLabelData","_applyDivs","_applyNotch","_getHelper","_getCounter","_getNotchData","forceActive","forceInactive","_removeBorder","_showPlaceholder","_getLabelWidth","_getLabelPositionInInputGroup","_toggleDefaultDatePlaceholder","maxLength","_showCounter","actualLength","_bindCounter","opacity","allNotchWrappers","notchWrapper","marginLeft","border","_getElements","initialized","prevLabelWidth","EVENT_KEY$m","EVENT_SHOW$5","EVENT_SHOWN$4","EVENT_HIDE$4","EVENT_HIDDEN$5","CLASS_NAME_SHOW$4","CLASS_NAME_COLLAPSE","CLASS_NAME_COLLAPSING","CLASS_NAME_DEEPER_CHILDREN","SELECTOR_DATA_TOGGLE$3","Default$q","DefaultType$q","Collapse","_isTransitioning","_triggerArray","toggleList","filterElement","foundElement","_initializeChildren","_addAriaAndCollapsedClass","activeChildren","_getFirstLevelChildren","activeInstance","dimension","_getDimension","scrollSize","selected","triggerArray","isOpen","NAME$E","EXTENDED_EVENTS$3","Collapse2","Collapse$1","NAME$D","EVENT_KEY$l","ARROW_UP_KEY","ARROW_DOWN_KEY","EVENT_HIDE$3","EVENT_HIDDEN$4","EVENT_SHOW$4","EVENT_SHOWN$3","CLASS_NAME_SHOW$3","SELECTOR_DATA_TOGGLE$2","SELECTOR_DATA_TOGGLE_SHOWN","SELECTOR_MENU","PLACEMENT_TOP","PLACEMENT_TOPEND","PLACEMENT_BOTTOM","PLACEMENT_BOTTOMEND","PLACEMENT_RIGHT","PLACEMENT_LEFT","Default$p","autoClose","DefaultType$p","Dropdown","_menu","_inNavbar","_detectNavbar","_completeHide","referenceElement","_getPlacement","parentDropdown","isEnd","_selectMenuItem","_ref7","clearMenus","button","openToggles","composedPath","isMenuTarget","dataApiKeydownHandler","isInput","isEscapeEvent","isUpOrDownEvent","getToggleButton","NAME$C","EVENT_KEY$k","Default$o","dropdownAnimation","DefaultType$o","EVENT_HIDE$2","EVENT_HIDDEN$3","EVENT_SHOW$3","EVENT_SHOWN$2","EVENT_HIDE_MDB","EVENT_HIDDEN_MDB","EVENT_SHOW_MDB","EVENT_SHOWN_MDB","ANIMATION_CLASS","ANIMATION_SHOW_CLASS","ANIMATION_HIDE_CLASS","Dropdown2","Dropdown$1","_menuStyle","_popperPlacement","_mdbPopperConfig","isPrefersReducedMotionSet","matchMedia","_bindShowEvent","_bindShownEvent","_bindHideEvent","_bindHiddenEvent","_dropdownAnimationStart","_bindAnimationEnd","NAME$B","CLASSNAME_RIPPLE","CLASSNAME_RIPPLE_WAVE","CLASSNAME_RIPPLE_WRAPPER","SELECTOR_COMPONENT","CLASSNAME_UNBOUND","DEFAULT_RIPPLE_COLOR","BOOTSTRAP_COLORS","Default$n","rippleCentered","rippleColor","rippleDuration","rippleRadius","rippleUnbound","DefaultType$n","Ripple","_clickHandler","_createRipple","_rippleTimer","_isMinWidthSet","_rippleInSpan","_addClickEvent","_autoInit","rippleInit","shadow","boxShadow","btn","wrapper","replaceChild","minWidth","_getEventLayer","layerX","layerY","clientY","offsetX","offsetY","duration","_durationToMsNumber","diameterOptions","diameter","_getDiameter","radiusValue","rippleHTML","_createHTMLRipple","ripple","_removeHTMLRipple","_ref8","_removeOldColorClasses","_addColor","_toggleUnbound","_appendRipple","_ref9","rippleEl","_removeWrapperSpan","replaceWith","time","_ref10","top2","left2","pythagorean","sideA","sideB","sqrt","positionCenter","quadrant","getCorner","topLeft","topRight","bottomLeft","bottomRight","color","rgbValue","_colorToRGB","gradientImage","backgroundImage","REGEXP_CLASS_COLOR","hexToRgb","color2","substr","namedColorsToRgba","tempElem","flag","rgbaToRgb","autoInitial","NAME$z","DefaultType$m","animationStart","animationShowOnLoad","onStart","onEnd","onHide","onShow","animationOnScroll","animationWindowHeight","animationOffset","animationDelay","animationDuration","animationReverse","animationInterval","animationRepeat","animationReset","Default$m","Animate","_animateElement","_getAnimateElement","_isFirstScroll","_repeatAnimateOnScroll","startAnimation","_startAnimation","stopAnimation","_clearAnimationClass","changeAnimationType","_bindHoverEvents","_bindScrollEvents","_bindClickEvents","_bindTriggerOnEndCallback","_bindResetAnimationAfterFinish","targetId","_animateOnScroll","elementOffsetTop","elementHeight","windowHeight","innerHeight","shouldBeVisible","isElementVisible","_hideAnimateElement","_callback","_showAnimateElement","_addAnimatedClass","_removeInvisibleClass","_setAnimationRepeat","_setAnimationReverse","_setAnimationDelay","_setAnimationDuration","_setAnimationInterval","animationIterationCount","animationDirection","Function","autoInit","get$1","set$1","div$1","div2","elMatches$1","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","matches$1","query","remove$1","queryChildren$1","cls$1","thumb","rail","consuming","clicking","scrolling","scrollingClassTimeout$1","addScrollingClass$1","removeScrollingClass$1","isAlive","settings","scrollingThreshold","EventElement$1","EventElement","handlers","unbind","unbindAll","isEmpty","EventManager$1","EventManager","eventElements","eventElement","ee","ee2","once","onceHandler","createEvent$1","processScrollDiff$2","diff","fields","useScrollingClass","forceFireReachEvent","processScrollDiff$3","_ref11","contentHeight","containerHeight","up","down","reach","setScrollingClassInstantly$1","toInt$1","env$1","isWebKit","supportsTouch","DocumentTouch","supportsIePointer","msMaxTouchPoints","isChrome","updateGeometry$1","roundedScrollTop","containerWidth","contentWidth","scrollbarXRail","scrollbarYRail","suppressScrollX","scrollXMarginOffset","scrollbarXActive","railXWidth","railXMarginWidth","railXRatio","scrollbarXWidth","getThumbSize$1","scrollbarXLeft","negativeScrollAdjustment","suppressScrollY","scrollYMarginOffset","scrollbarYActive","railYHeight","railYMarginHeight","railYRatio","scrollbarYHeight","scrollbarYTop","updateCss$1","xRailOffset","isRtl","isScrollbarXUsingBottom","scrollbarXBottom","scrollbarXTop","yRailOffset","isScrollbarYUsingRight","scrollbarYRight","scrollbarYOuterWidth","scrollbarYLeft","scrollbarX","railBorderXWidth","scrollbarY","railBorderYWidth","thumbSize","minScrollbarLength","maxScrollbarLength","bindMouseScrollHandler$1","_ref12","pageY","startingScrollTop","startingMousePageY","scrollBy","mouseMoveHandler","mouseUpHandler","bindMoves","touchMode","handlers$1","clickRail$1","pageX","dragThumb$1","keyboard$1","shadowRoot","isEditable$1","deltaX","deltaY","which","metaKey","altKey","shouldPreventDefault","wheelPropagation","wheel","wheel$1","mousewheelHandler","getDeltaFromEvent","wheelDeltaX","wheelDeltaY","deltaMode","wheelDelta","shouldBeConsumedByChild","cursor","maxScrollTop","maxScrollLeft","shouldPrevent","useBothWheelAxes","wheelSpeed","isTop","isBottom","isLeft","isRight","hitsBound","ctrlKey","onwheel","onmousewheel","touch$1","applyTouchMove","differenceX","differenceY","startOffset","startTime","speed","easingLoop","getTouch","targetTouches","shouldHandle","buttons","MSPOINTER_TYPE_MOUSE","touchStart","touch2","Date","getTime","touchMove","currentOffset","currentTime","timeGap","magnitudeX","magnitudeY","scrollY","touchEnd","swipeEasing","isInitialized","MSPointerEvent","PerfectScrollbar$1","PerfectScrollbar","userSettings","isNegativeScroll","originalScrollLeft","railXStyle","isNaN","borderLeftWidth","borderRightWidth","marginRight","railYStyle","outerWidth$1","paddingLeft","paddingRight","borderTopWidth","borderBottomWidth","marginTop","handlerName","lastScrollTop","lastScrollLeft","onScroll","removePsClasses","FocusTrap2","toggler","_toggler","_event","_condition","condition","_selector","_onlyVisible","onlyVisible","_focusableElements","_firstElement","_lastElement","trap","_setElements","_setFocusTrap","_filterVisible","ancestors","allElements","hasDisabledAttribute","LEFT_ARROW","UP_ARROW","RIGHT_ARROW","DOWN_ARROW","HOME","END","ENTER","ESCAPE","DEFAULT_OPTIONS$b","threshold","Swipe$1","Swipe2","_startPosition","handleTouchStart","_getCoordinates","handleTouchMove","displacement","swipe","_getDirection","handleTouchEnd","Touch$1","Touch","_touchStartHandler","_handleTouchStart","_touchMoveHandler","_handleTouchMove","_touchEndHandler","_handleTouchEnd","NAME$w","DATA_KEY$n","ARROW_CLASS","SELECTOR_TOGGLE$1","SELECTOR_COLLAPSE","SELECTOR_LINK","TRANSLATION_LEFT","TRANSLATION_RIGHT","instanceCount","OPTIONS_TYPE$1","accordion","backdropClass","closeOnEsc","expandable","expandOnHover","focusTrap","mode","scrollContainer","slim","slimCollapsed","slimWidth","DEFAULT_OPTIONS$a","Sidenav","_ID","_content","_initialContentStyle","_slimCollapsed","_activeNode","_tempSlim","_focusTrap","_perfectScrollbar","_touch","escHandler","keyCode","_update","hashHandler","_setActiveElements","_setup","findContainer","containerStart","containerEnd","boundry","scrollBarWidth","links","navigation","sidenavStyle","transitionProperty","transitionTimingFunction","translation","changeMode","_setMode","_removeBackdrop","_setVisibility","toggleSlim","_setSlim","_appendArrow","arrow2","_collapseItems","menu","_setupBackdrop","classes","transition","_getOffsetValue","_ref13","_getPxValue","_getProperty","_len2","_key2","inverseDirecion","link","href","trimmedLink","location","strippedRequests","URL","_isAllToBeCollapsed","collapsible","_isAllCollapsed","_setupTouch","_setupFocusTrap","_appendBackdrop","_setupCollapse","_setupSlim","_setupInitialStyling","_setupScrolling","_setupContent","_setupActiveState","_setupRippleEffect","_updateOffsets","menuIndex","_setupCollapseList","_generateCollpaseID","_ref14","ID","_rotateArrow","_toggleCategory","_setColor","siblings","collection","siblingsHeight","maxHeight","_toggleSlimDisplay","wave","_setActive","collapse","_setActiveCategory","category","collapseToggler","colors","optionColor","_setContentOffsets","initial","_triggerEvents","_setTabindex","tabIndex","angle","_toggleBackdrop","slimCollapsedElements","fullWidthElements","toggleElements","startEvent","completeEvent","_updateTogglerAria","_updateDisplay","_updateFocus","paddingPosition","marginPosition","toggleSidenav","elementSelector","EVENT_KEY$h","EVENT_CLOSE$4","EVENT_CLOSED$1","Alert","close","_destroyElement","DEFAULT_OPTIONS$9","refresh","TYPE_OPTIONS$1","Stack","stackableElements","_ref15","basicCondition","_getBoundryOffset","nextElements","parentTopOffset","parentBottomBoundry","parentRect","calculateOffset","previousElement","NAME$t","DefaultType$k","autohide","stacking","appendToBody","Default$k","EXTENDED_EVENTS$2","Alert2","Alert$1","verticalOffset","stackUtil","updatedData","_updateAlertStack","_setupAutohide","_setupAlignment","_setupStacking","_setupWidth","_appendToBody","_setupPosition","oppositeY","oppositeX","_updatePosition","Navbar","_onScroll","_addEvent","_removeEvent","SELECTOR_FORM_CHECK_INPUT","CLASS_NAME_SELECTED","CLASS_NAME_ACITVE","SelectOption","nativeOption","multiple","label","secondaryText","groupId","icon","select","_selectMultiple","_selectSingle","checked","deselect","_deselectMultiple","_deselectSingle","setNode","setActiveStyles","removeActiveStyles","SelectionModel","_multiple","_selections","option","optionIndex","findIndex","selection","clear","selections","labels","allOptionsSelected","preventKeydown","getDropdownTemplate$1","selectAllOption","customContent","dropdownContainer","dropdown","optionsWrapper","optionsList","getOptionsListTemplate","getFilterTemplate","placeholder","inputGroup","searchPlaceholder","optionsNodes","getMultipleOptionsNodes","selectAllNode","selectAll","createSelectAllNode","isSelected","optionNode","optionHeight","getOptionContentTemplate","getOptionsNodes","nodes","getSingleOptionsNodes","group","createOptionGroupTemplate","optionGroup","createOptionTemplate","getOptionIconTemplate","image","src","getCheckboxTemplate","checkbox","getSecondaryTextTemplate","Default$c","autoSelect","clearButton","displayedLabels","formWhite","optionsSelectedLabel","selectAllLabel","visibleOptions","filterDebounce","noResultText","validation","validFeedback","invalidFeedback","filterFn","DefaultType$c","NAME$k","DATA_KEY$f","EVENT_KEY$a","EVENT_CLOSE$2","EVENT_OPEN$2","EVENT_SELECTED$1","EVENT_DESELECTED","EVENT_VALUE_CHANGED$2","EVENT_OPENED","EVENT_CLOSED","EVENT_SEARCH","SELECTOR_INPUT$1","SELECTOR_OPTIONS_LIST","SELECTOR_FORM_OUTLINE","CLASS_NAME_INITIALIZED","CLASS_NAME_OPEN$2","CLASS_NAME_ACTIVE$1","CLASS_NAME_FOCUSED$1","Select","_optionsToRender","_getOptionsToRender","_plainOptions","_getPlainOptions","_filteredOptionsList","_selectionModel","_activeOptionIndex","_activeOption","_wrapperId","_dropdownContainerId","_selectAllId","_debounceTimeoutId","_dropdownHeight","_input","_fakeValue","_isFakeValueActive","_customContent","_toggleButton","_elementToggle","_wrapper","_inputEl","_dropdownContainer","_container","_selectAllOption","_mutationObserver","_isOpen","_addMutationObserver","filterInput","hasSelectAll","hasSelection","_createOptionObject","optionsToRender","nestedOption","groupDisabled","_getNavigationOptions","availableOptions","_renderMaterialWrapper","containerSelector","_initOutlineInput","_setDefaultSelections","_updateInputValue","_appendFakeValue","_updateFakeLabelPosition","_updateLabelPosition","_updateClearButtonVisibility","_bindComponentEvents","_createSelectAllOption","_setFirstActiveOption","getWrapperTemplate","formOutline","role","multiselectable","validFeedBackText","invalidFeedBackText","clearBtn","clearBtnText","inputWrapper","_updateOutlineInput","_listenToComponentKeydown","_listenToWrapperClick","_listenToClearBtnClick","_listenToClearBtnKeydown","_wrapperKeydownHandler","_handleOpenKeydown","_handleClosedKeydown","isCloseKey","_handleAutoSelection","_setNextOptionActive","_scrollToOption","_setPreviousOptionActive","_setFirstOptionActive","_setLastOptionActive","_handleSelectAll","_handleSelection","option2","scrollToIndex","_getNumberOfGroupsBeforeOption","listHeight","optionOffset","isBelow","isAbove","groupsList","groupsNumber","_updateActiveOption","newActiveOption","currentActiveOption","_handleClear","_deselectAllOptions","_updateSelectAllState","_singleOptionSelect","_emitValueChangeEvent","_emitNativeChangeEvent","_listenToOptionsClick","mdbId","_selectAllOptions","_handleMultiSelection","_handleSingleSelection","currentSelected","_isSelectionValid","_isLabelEmpty","getFakeValueTemplate","fakeValue","isInitialized2","isValueEmpty","_updateLabelPositionWhileClosing","selectAllSelected","allSelected","isDisabled2","openEvent","_openDropdown","_updateDropdownWidth","_filterOptions","_listenToSelectSearch","_listenToDropdownKeydown","_listenToOutsideClick","_listenToWindowResize","_setInputActiveStyles","inputWidth","currentActive","firstSelected","_windowResizeHandler","_handleWindowResize","searchTerm","debounceTime","_debounceFilter","filtered","isOptionGroup","isValidOption","_filter","hasNoResultsText","hasFilteredOptions","_updateOptionsListTemplate","noResultsTemplate","_getNoResultTemplate","optionsWrapperContent","optionsListTemplate","filterValue","_dropdownKeydownHandler","_outsideClickHandler","_handleOutSideClick","isSelectContent","isDropdown","isDropdownContent","isButton","closeEvent","_resetFilterState","_removeDropdownEvents","MutationObserver","_updateSelections","_updateDisabledState","_observeMutationObserver","hasFilterValue","observe","childList","characterData","subtree","_disconnectMutationObserver","disconnect","_removeComponentEvents","_destroyMaterialSelect","_destroyMaterialTemplate","wrapperParent","setValue","selectionValue","_selectByValue","correspondingOption","elMatches","queryChildren","cls","scrollingClassTimeout","addScrollingClass","removeScrollingClass","EventElement2","EventElement3","prototypeAccessors","this$1$1","defineProperties","EventManager2","EventManager3","processScrollDiff","processScrollDiff$1","ref","setScrollingClassInstantly","toInt","bind2","unbind2","unbindAll2","env","updateGeometry","getThumbSize","updateCss","bindMouseScrollHandler","changedTouches","clickRail","dragThumb","isEditable","PerfectScrollbar2","PerfectScrollbar3","outerWidth","NAME$9","MDB_NAME","PS_NAME","EVENTS","mdb","ps","Default$8","DefaultType$8","PerfectScrollbars","perfectScrollbar","removeEvent","_ref40","mdb2","_ref41","_ref42","NAME$8","CLASS_SPINNER","DefaultType$7","backdropColor","backdropOpacity","loader","loadingIcon","loadingText","Default$7","backdropID","parentSelector","Loading","_backdropElement","_parentElement","_loadingIcon","_loadingText","spinnerCloned","cloneNode","loadingCloned","_removeElementsOnStart","_setBackdrop","_setLoadingIcon","_setLoadingText","_setScrollOption","getBackdropTemplate","_ref43","backgroundColor","spinner","uriAttrs","SAFE_URL_PATTERN","DATA_URL_PATTERN","attr","attrName","regExp","attrRegex","DefaultWhitelist","sanitizeHtml","whiteList","whitelistKeys","elName","whitelistedAttributes","getItemsTemplate","displayValue","itemContent","Default$6","debounce","noResults","DefaultType$6","NAME$7","DATA_KEY$7","CLASS_NAME_ACTIVE","CLASS_NAME_FOCUSED","CLASS_NAME_FOCUSING","CLASS_NAME_OPEN$1","SELECTOR_ITEMS_LIST","SELECTOR_ITEM","EVENT_KEY$5","EVENT_CLOSE$1","EVENT_OPEN$1","EVENT_SELECT$2","EVENT_UPDATE","Autocomplete","_getContainer","_loader","getLoaderTemplate","_loaderTimeout","_activeItemIndex","_activeItem","_filteredResults","_lastQueryValue","_canOpenOnFocus","_handleOutsideClick","_inputFocusHandler","_handleInputFocus","_userInputHandler","_handleUserInput","_keydownHandler","itemsList","search","_filterResults","_initDropdown","_setInputAndLabelClasses","_setInputAriaAttributes","_listenToInputFocus","_listenToUserInput","_listenToKeydown","getDropdownTemplate","itemsListTemplate","sanitizedCustomContent","insertAdjacentHTML","_isPromise","_asyncUpdateResults","_updateResults","_resetActiveItem","_showLoader","_hideLoader","results","newTemplate","getNoResultsTemplate","message","_selectActiveItem","_setActiveItem","_scrollToItem","start2","end2","selectionStart","setSelectionRange","_updateActiveItem","newActiveItem","currentActiveItem","itemIndex","itemHeight","itemOffset","_listenToItemsClick","_handleItemsClick","targetIndex","_handleDropdownTransitionEnd","_removeInputAndElementEvents","EVENT_KEY$4","EVENT_HIDE","EVENT_HIDE_PREVENTED","EVENT_HIDDEN","EVENT_SHOW","EVENT_SHOWN","EVENT_RESIZE","EVENT_CLICK_DISMISS","EVENT_MOUSEDOWN_DISMISS","EVENT_KEYDOWN_DISMISS","CLASS_NAME_OPEN","CLASS_NAME_SHOW","CLASS_NAME_STATIC","Default$5","DefaultType$5","Modal","_dialog","_scrollBar","_adjustDialog","_showElement","_hideModal","handleUpdate","modalNonInvasive","modalBody","transitionComplete","_triggerBackdropTransition","event2","_resetAdjustments","isModalOverflowing","initialOverflowY","isBodyOverflowing","styleProp","NAME$5","DATA_KEY$5","EVENT_KEY$3","NON_INVASIVE_CLASS","NON_INVASIVE_SHOW_CLASS","SELECTOR_MODAL_CONTENT","EVENT_SHOW_BS_MODAL","EVENT_SHOWN_BS_MODAL","EVENT_HIDDEN_BS_MODAL","EXTENDED_EVENTS","Default$4","DefaultType$4","Modal2","Modal$1","_modalContentRect","_modalContentComputedStyles","_isNonInvasive","_isScrollable","_isBottomRight","_isBottomLeft","_isTopRight","_isTopLeft","_isSideTopModal","_isSideBottomModal","_isSideModal","_isModalBottom","_isBodyOverflowing","_onModalShow","_onModalShown","_onModalHidden","_addNonInvasiveClass","modalContent","_modalDialogComputedStyles","_topOffset","_leftOffset","_rightOffset","_bottomOffset","_addOpenClass","_setStyles","_resetStyles","sideOffset","topOffset","_showBackdrop","isNonInvasiveModalOpen","stopImmediatePropagation","_removeOpenClass","_removeNonInvasiveClass","leftOffset","isAboveBreakpoint","NAME$4","DATA_KEY$4","DEFAULT_OPTIONS$1","clipboardTarget","OPTIONS_TYPE","EVENT_COPIED","Clipboard","_initCopyHandler","_initCopy","copyText","clipboardTextExist","inputValue","targetText","inputToCopy","_createNewInput","_selectInput","newInput","execCommand","NAME$3","DATA_KEY$3","SELECTOR_CLOSE$1","DefaultType$3","closeIcon","Default$3","path","alt","Chip","_appendCloseIcon","_handleDelete","_handleTextChip","_handleClickOnChip","appendChip","chip","_ref45","getChip","createIcon","insertAdjacentElement","innerText","NAME$2","DATA_KEY$2","CLASSNAME_ACTIVE","CLASSNAME_CHIPS_INITIAL","CLASSNAME_CHIPS_PLACEHOLDER","CLASSNAME_CHIP_OPACITY","CLASSNAME_CHIPS_PADDING","CLASSNAME_CHIPS_TANSITION","CLASSNAME_CHIPS_WRAPPER","SELECTOR_CHIP","SELECTOR_CHIP_ACTIVE","EVENT_DELETE","EVENT_SELECT","DefaultType$2","inputID","initialValues","editable","labelText","Default$2","ChipsInput","numberClicks","_inputInstance","activeChip","allChips","chipsInputWrapper","_setChipsClass","_appendInputToElement","_handleInitialValue","_initializeInput","_handleInputText","_handleKeyboard","_handleChipsOnSelect","_handleEditable","_handleChipsFocus","_handleClicksOnChips","_handleDeleteEvents","last","_handleEvents","activeChipAfter","_handleActiveChipAfterRemove","arr","chip2","_handleUpEvents","_handleRightKeyboardArrow","_handleDownEvents","_handleLeftKeyboardArrow","_keyboardEvents","_handleAddActiveClass","contentEditable","_ref46","chipText","isContainer","isContainerContent","_handleRemoveActiveClass","num","_handleAddActiveClassWithKeyboard","chipIndex","_handleTextContent","filterActive","arrOfObjects","activeObj","_ref47","_ref48","_handleCreateChip","_handleKeysInputToElement","_handleBlurInput","inputField","_ref44","getInputField","divElement","divWithChips","chipsContainer","callbackInitState$1","rippleCallback","initSelector","Ripple2","callbackInitState","defaultInitSelectors$1","alert","alertCallback","Alert3","buttonCallback","Button3","EVENT_CLICK_DATA_API2","carousel","carouselCallback","Carousel3","EVENT_LOAD_DATA_API","SELECTOR_DATA_RIDE","slideIndex","collapseCallback","SELECTOR_DATA_TOGGLE2","Collapse3","dropdownCallback","EVENT_KEYDOWN_DATA_API2","EVENT_KEYUP_DATA_API","Dropdown3","modal","modalCallback","Modal3","EVENT_SHOW2","EVENT_HIDDEN2","selectorElement","offcanvas","offcanvasCallback","OPEN_SELECTOR","Offcanvas2","EVENT_RESIZE2","alreadyOpen","scrollspy","scrollspyCallback","ScrollSpy3","tab","tabCallback","CLASS_NAME_ACTIVE2","SELECTOR_DATA_TOGGLE_ACTIVE","Tab3","toast","toastCallback","Toast3","tooltip","inputCallback","SELECTOR_DATA_INIT","SELECTOR_OUTLINE_INPUT","SELECTOR_OUTLINE_TEXTAREA","Input2","range","popover","DEFAULT_LEGEND_COLOR","plugins","legend","DEFAULT_OPTIONS","line","borderColor","borderWidth","tension","point","responsive","tooltips","intersect","datasets","scales","stacked","grid","ticks","fontColor","borderDash","drawBorder","zeroLineColor","zeroLineBorderDash","zeroLineBorderDashOffset","bar","pie","arc","doughnut","polarArea","radar","scatter","bubble","defaultInitSelectors","chart","chartsCallback","Component","PARSE_DATA","chartProperty","IS_COMPLEX","CONVERT_DATA_TYPE","dataSet","dataAttr","chips","datatable","datetimepicker","datepicker","loading","multiRangeSlider","timepicker","clipboard","infiniteScroll","lazyLoad","lightbox","lightboxCallback","SELECTOR_TOGGLE2","Lightbox2","navbar","popconfirm","rating","sidenav","sidenavCallback","Sidenav2","smoothScroll","stepper","sticky","initMDBInstance","InitMDB","defaultInitSelectors2","_this","__publicField","components","checkOtherImports","componentList","warn","initMDB","displayElement","displayImage","displayVideo","displayAudio","iframeContainer","iframeSiteVid","imgSrc","closeButton","siteVidID","isLoading","checkMediaTimeout","caption","captionText","captionContent","captionHideButton","galleryOpen","isClosing","imgCache","remoteImage","animationEnd","onChangeImage","rightArrowBtn","leftArrowBtn","galleryPosition","galleryEls","galleryCounter","opts","preloadedImages","appendEl","createEl","removeEl","initialize","startX","isPinch","createCloseButton","createArrowSymbol","changeCSS","onclick","updateGallery","containerColor","overlayColor","ontouchstart","ontouchend","scale","distX","controls","loop","toggleCaption","allow","onload","onerror","toggleLoadingIcon","updateDimensions","removeContainer","ytSrc","vimeoSrc","gallery","makeGallery","galleryAttribute","elIndex","iframeSrc","createIframe","url","suffix","ytNoCookie","audio","checkMedia","vidSrc","dimensions","makeVidSrc","source","getRect","movement","galleryLength","addToImgCache","changeGalleryImage","activeEl","oldimg","windowWidth","windowAspect","dimensionWidth","dimensionHeight","iframeAspect","errMsg","play","bool","noLoader","parentElement","err","onError","clickEls","images","onClose","newStyle","galleries","galleryId","ev","galleryItems","BigPicture","indivImg","imgTarget","fullSizeImg","imgFilenameAndExt","pop","imgFileExt","imgFilename","aFilename","bsuBrandingMainNav","lastKnownScrollPosition","requestAnimationFrame","bsuFooterParallaxMove","parallaxBack","movingElementTop","movingElementBottom","viewportTop","viewportBottom","percentageWithin","newPercentBottom","onreadystatechange","ctaHomepageWrapper","ctaHomepageList","ctaHomepageButtons","heroCarousel","ctaWrapperClassesInHeader","ctaWrapperClassesDefault","ctaUlClassesDefault","ctaLinkClassesDefault","bsuFixedTop","bsuCtaMove","bsuCtaMoveOff","aTag","individualClass","nextSibling","viewportHeight","docBodyHeight","threasholdBackToTop","backToTopButton","scrollTo","behavior","backToTopShow","backToTopHide","scrollAmountMetForBackToTop","scrollAmount"],"sourceRoot":""}