bootstrap-italia 2.12.0 → 2.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.EN.md +1 -1
- package/README.md +1 -1
- package/dist/bootstrap-italia.esm.js +1 -1
- package/dist/css/bootstrap-italia.min.css +9 -1
- package/dist/css/bootstrap-italia.min.css.map +1 -1
- package/dist/js/bootstrap-italia.bundle.min.js +19 -23
- package/dist/js/bootstrap-italia.min.js +18 -2
- package/dist/plugins/accept-overlay.js +19 -9
- package/dist/plugins/accept-overlay.js.map +1 -1
- package/dist/plugins/accordion.js +19 -24
- package/dist/plugins/accordion.js.map +1 -1
- package/dist/plugins/alert.js +67 -2
- package/dist/plugins/alert.js.map +1 -1
- package/dist/plugins/{backToTop.js → back-to-top.js} +14 -5
- package/dist/plugins/back-to-top.js.map +1 -0
- package/dist/plugins/base-component.js +91 -0
- package/dist/plugins/base-component.js.map +1 -0
- package/dist/plugins/button.js +58 -2
- package/dist/plugins/button.js.map +1 -1
- package/dist/plugins/carousel-bi.js +19 -9
- package/dist/plugins/carousel-bi.js.map +1 -1
- package/dist/plugins/carousel.js +445 -2
- package/dist/plugins/carousel.js.map +1 -1
- package/dist/plugins/collapse.js +273 -2
- package/dist/plugins/collapse.js.map +1 -1
- package/dist/plugins/cookiebar.js +39 -52
- package/dist/plugins/cookiebar.js.map +1 -1
- package/dist/plugins/dimmer.js +19 -8
- package/dist/plugins/dimmer.js.map +1 -1
- package/dist/plugins/dom/data.js +61 -0
- package/dist/plugins/dom/data.js.map +1 -0
- package/dist/plugins/dom/event-handler.js +296 -0
- package/dist/plugins/dom/event-handler.js.map +1 -0
- package/dist/plugins/dom/manipulator.js +76 -0
- package/dist/plugins/dom/manipulator.js.map +1 -0
- package/dist/plugins/dom/selector-engine.js +82 -0
- package/dist/plugins/dom/selector-engine.js.map +1 -0
- package/dist/plugins/dropdown.js +433 -2
- package/dist/plugins/dropdown.js.map +1 -1
- package/dist/plugins/fonts-loader.js +9 -1
- package/dist/plugins/fonts-loader.js.map +1 -1
- package/dist/plugins/form-validate.js +22 -8
- package/dist/plugins/form-validate.js.map +1 -1
- package/dist/plugins/forward.js +21 -18
- package/dist/plugins/forward.js.map +1 -1
- package/dist/plugins/header-sticky.js +11 -2
- package/dist/plugins/header-sticky.js.map +1 -1
- package/dist/plugins/history-back.js +17 -17
- package/dist/plugins/history-back.js.map +1 -1
- package/dist/plugins/init.js +9 -0
- package/dist/plugins/init.js.map +1 -1
- package/dist/plugins/input-label.js +14 -3
- package/dist/plugins/input-label.js.map +1 -1
- package/dist/plugins/input-number.js +13 -4
- package/dist/plugins/input-number.js.map +1 -1
- package/dist/plugins/input-password.js +48 -37
- package/dist/plugins/input-password.js.map +1 -1
- package/dist/plugins/input-search-autocomplete.js +9 -11
- package/dist/plugins/input-search-autocomplete.js.map +1 -1
- package/dist/plugins/input.js +12 -3
- package/dist/plugins/input.js.map +1 -1
- package/dist/plugins/list.js +23 -12
- package/dist/plugins/list.js.map +1 -1
- package/dist/plugins/masonry.js +29 -29
- package/dist/plugins/masonry.js.map +1 -1
- package/dist/plugins/modal.js +358 -2
- package/dist/plugins/modal.js.map +1 -1
- package/dist/plugins/navbar-collapsible.js +55 -45
- package/dist/plugins/navbar-collapsible.js.map +1 -1
- package/dist/plugins/navscroll.js +16 -23
- package/dist/plugins/navscroll.js.map +1 -1
- package/dist/plugins/notification.js +34 -23
- package/dist/plugins/notification.js.map +1 -1
- package/dist/plugins/offcanvas.js +259 -2
- package/dist/plugins/offcanvas.js.map +1 -1
- package/dist/plugins/popover.js +76 -2
- package/dist/plugins/popover.js.map +1 -1
- package/dist/plugins/progress-donut.js +19 -12
- package/dist/plugins/progress-donut.js.map +1 -1
- package/dist/plugins/scrollspy.js +273 -2
- package/dist/plugins/scrollspy.js.map +1 -1
- package/dist/plugins/select-autocomplete.js +10 -1
- package/dist/plugins/select-autocomplete.js.map +1 -1
- package/dist/plugins/sticky.js +21 -18
- package/dist/plugins/sticky.js.map +1 -1
- package/dist/plugins/tab.js +244 -27
- package/dist/plugins/tab.js.map +1 -1
- package/dist/plugins/toast.js +203 -2
- package/dist/plugins/toast.js.map +1 -1
- package/dist/plugins/tooltip.js +602 -2
- package/dist/plugins/tooltip.js.map +1 -1
- package/dist/plugins/track-focus.js +8 -0
- package/dist/plugins/track-focus.js.map +1 -1
- package/dist/plugins/transfer.js +11 -16
- package/dist/plugins/transfer.js.map +1 -1
- package/dist/plugins/upload-dragdrop.js +13 -4
- package/dist/plugins/upload-dragdrop.js.map +1 -1
- package/dist/plugins/util/backdrop.js +155 -0
- package/dist/plugins/util/backdrop.js.map +1 -0
- package/dist/plugins/util/component-functions.js +38 -0
- package/dist/plugins/util/component-functions.js.map +1 -0
- package/dist/plugins/util/config.js +70 -0
- package/dist/plugins/util/config.js.map +1 -0
- package/dist/plugins/util/cookies.js +8 -0
- package/dist/plugins/util/cookies.js.map +1 -1
- package/dist/plugins/util/device.js +0 -3
- package/dist/plugins/util/device.js.map +1 -1
- package/dist/plugins/util/dom.js +8 -0
- package/dist/plugins/util/dom.js.map +1 -1
- package/dist/plugins/util/focustrap.js +121 -0
- package/dist/plugins/util/focustrap.js.map +1 -0
- package/dist/plugins/util/index.js +280 -0
- package/dist/plugins/util/index.js.map +1 -0
- package/dist/plugins/util/observer.js +8 -0
- package/dist/plugins/util/observer.js.map +1 -1
- package/dist/plugins/util/on-document-scroll.js +20 -9
- package/dist/plugins/util/on-document-scroll.js.map +1 -1
- package/dist/plugins/util/pageScroll.js +8 -0
- package/dist/plugins/util/pageScroll.js.map +1 -1
- package/dist/plugins/util/sanitizer.js +115 -0
- package/dist/plugins/util/sanitizer.js.map +1 -0
- package/dist/plugins/util/scrollbar.js +120 -0
- package/dist/plugins/util/scrollbar.js.map +1 -0
- package/dist/plugins/util/swipe.js +150 -0
- package/dist/plugins/util/swipe.js.map +1 -0
- package/dist/plugins/util/template-factory.js +166 -0
- package/dist/plugins/util/template-factory.js.map +1 -0
- package/dist/plugins/util/tween.js +10 -1
- package/dist/plugins/util/tween.js.map +1 -1
- package/dist/plugins/util/youtube-video.js +12 -21
- package/dist/plugins/util/youtube-video.js.map +1 -1
- package/dist/plugins/videoplayer.js +19 -8
- package/dist/plugins/videoplayer.js.map +1 -1
- package/dist/version.js +10 -3
- package/dist/version.js.map +1 -1
- package/package.json +6 -7
- package/src/js/bootstrap-italia.entry.js +8 -0
- package/src/js/bootstrap-italia.esm.js +9 -1
- package/src/js/icons.js +8 -0
- package/src/js/load-plugin.js +8 -0
- package/src/js/plugins/accept-overlay.js +18 -10
- package/src/js/plugins/accordion.js +16 -22
- package/src/js/plugins/alert.js +66 -2
- package/src/js/plugins/{backToTop.js → back-to-top.js} +12 -4
- package/src/js/plugins/base-component.js +89 -0
- package/src/js/plugins/button.js +57 -2
- package/src/js/plugins/carousel-bi.js +18 -9
- package/src/js/plugins/carousel.js +444 -2
- package/src/js/plugins/collapse.js +272 -2
- package/src/js/plugins/cookiebar.js +37 -60
- package/src/js/plugins/dimmer.js +18 -8
- package/src/js/plugins/dom/data.js +58 -0
- package/src/js/plugins/dom/event-handler.js +301 -0
- package/src/js/plugins/dom/manipulator.js +75 -0
- package/src/js/plugins/dom/selector-engine.js +80 -0
- package/src/js/plugins/dropdown.js +432 -2
- package/src/js/plugins/fonts-loader.js +9 -1
- package/src/js/plugins/form-validate.js +21 -8
- package/src/js/plugins/form.js +11 -3
- package/src/js/plugins/forward.js +18 -16
- package/src/js/plugins/header-sticky.js +10 -2
- package/src/js/plugins/history-back.js +14 -14
- package/src/js/plugins/init.js +8 -0
- package/src/js/plugins/input-label.js +13 -3
- package/src/js/plugins/input-number.js +12 -4
- package/src/js/plugins/input-password.js +46 -36
- package/src/js/plugins/input-search-autocomplete.js +9 -13
- package/src/js/plugins/input.js +11 -3
- package/src/js/plugins/list.js +22 -12
- package/src/js/plugins/masonry.js +26 -27
- package/src/js/plugins/modal.js +357 -2
- package/src/js/plugins/navbar-collapsible.js +55 -53
- package/src/js/plugins/navscroll.js +16 -23
- package/src/js/plugins/notification.js +33 -23
- package/src/js/plugins/offcanvas.js +258 -2
- package/src/js/plugins/popover.js +75 -2
- package/src/js/plugins/progress-donut.js +17 -13
- package/src/js/plugins/scrollspy.js +272 -2
- package/src/js/plugins/select-autocomplete.js +9 -1
- package/src/js/plugins/sticky.js +21 -23
- package/src/js/plugins/tab.js +243 -27
- package/src/js/plugins/toast.js +206 -2
- package/src/js/plugins/tooltip.js +601 -2
- package/src/js/plugins/track-focus.js +8 -0
- package/src/js/plugins/transfer.js +12 -24
- package/src/js/plugins/upload-dragdrop.js +12 -4
- package/src/js/plugins/util/backdrop.js +153 -0
- package/src/js/plugins/util/component-functions.js +36 -0
- package/src/js/plugins/util/config.js +68 -0
- package/src/js/plugins/util/cookies.js +8 -0
- package/src/js/plugins/util/device.js +0 -3
- package/src/js/plugins/util/dom.js +8 -0
- package/src/js/plugins/util/focustrap.js +119 -0
- package/src/js/plugins/util/index.js +317 -0
- package/src/js/plugins/util/observer.js +8 -0
- package/src/js/plugins/util/on-document-scroll.js +19 -9
- package/src/js/plugins/util/pageScroll.js +8 -0
- package/src/js/plugins/util/sanitizer.js +112 -0
- package/src/js/plugins/util/scrollbar.js +118 -0
- package/src/js/plugins/util/swipe.js +148 -0
- package/src/js/plugins/util/template-factory.js +164 -0
- package/src/js/plugins/util/tween.js +9 -1
- package/src/js/plugins/util/youtube-video.js +12 -21
- package/src/js/plugins/videoplayer.js +18 -8
- package/src/js/version.js +10 -3
- package/src/scss/base/_containers.scss +41 -0
- package/src/scss/base/_functions.scss +373 -0
- package/src/scss/base/_helpers.scss +10 -0
- package/src/scss/base/_maps.scss +54 -0
- package/src/scss/base/_mixins.scss +44 -0
- package/src/scss/base/_reboot.scss +590 -0
- package/src/scss/base/_root.scss +73 -0
- package/src/scss/base/_transitions.scss +27 -0
- package/src/scss/base/_utilities.scss +742 -0
- package/src/scss/base/_variables.scss +2123 -0
- package/src/scss/base/_version.scss +3 -0
- package/src/scss/base/helpers/_clearfix.scss +3 -0
- package/src/scss/base/helpers/_color-bg.scss +10 -0
- package/src/scss/base/helpers/_colored-links.scss +16 -0
- package/src/scss/base/helpers/_position.scss +36 -0
- package/src/scss/base/helpers/_ratio.scss +26 -0
- package/src/scss/base/helpers/_stacks.scss +15 -0
- package/src/scss/base/helpers/_stretched-link.scss +15 -0
- package/src/scss/base/helpers/_text-truncation.scss +7 -0
- package/src/scss/base/helpers/_visually-hidden.scss +8 -0
- package/src/scss/base/helpers/_vr.scss +8 -0
- package/src/scss/base/mixins/_alert.scss +15 -0
- package/src/scss/base/mixins/_backdrop.scss +18 -0
- package/src/scss/base/mixins/_banner.scss +11 -0
- package/src/scss/base/mixins/_border-radius.scss +77 -0
- package/src/scss/base/mixins/_box-shadow.scss +18 -0
- package/src/scss/base/mixins/_breakpoints.scss +127 -0
- package/src/scss/base/mixins/_buttons.scss +141 -0
- package/src/scss/base/mixins/_caret.scss +64 -0
- package/src/scss/base/mixins/_clearfix.scss +9 -0
- package/src/scss/base/mixins/_color-scheme.scss +7 -0
- package/src/scss/base/mixins/_container.scss +11 -0
- package/src/scss/base/mixins/_deprecate.scss +10 -0
- package/src/scss/base/mixins/_forms.scss +152 -0
- package/src/scss/base/mixins/_gradients.scss +47 -0
- package/src/scss/base/mixins/_grid.scss +151 -0
- package/src/scss/base/mixins/_image.scss +15 -0
- package/src/scss/base/mixins/_list-group.scss +24 -0
- package/src/scss/base/mixins/_lists.scss +7 -0
- package/src/scss/base/mixins/_pagination.scss +10 -0
- package/src/scss/base/mixins/_reset-text.scss +17 -0
- package/src/scss/base/mixins/_resize.scss +6 -0
- package/src/scss/base/mixins/_table-variants.scss +24 -0
- package/src/scss/base/mixins/_text-truncate.scss +8 -0
- package/src/scss/base/mixins/_transition.scss +26 -0
- package/src/scss/base/mixins/_utilities.scss +96 -0
- package/src/scss/base/mixins/_visually-hidden.scss +29 -0
- package/src/scss/base/utilities/_api.scss +45 -0
- package/src/scss/base/vendor/_rfs.scss +337 -0
- package/src/scss/bootstrap-italia.scss +137 -156
- package/src/scss/components/_accordion.scss +297 -0
- package/src/scss/{custom → components}/_avatar.scss +75 -35
- package/src/scss/components/_badge.scss +60 -0
- package/src/scss/components/_breadcrumb.scss +95 -0
- package/src/scss/components/_button-group.scss +143 -0
- package/src/scss/components/_buttons.scss +467 -0
- package/src/scss/{custom → components}/_card.scss +228 -0
- package/src/scss/{custom → components}/_carousel.scss +225 -3
- package/src/scss/components/_dropdown.scss +480 -0
- package/src/scss/{custom → components}/_grid.scss +33 -0
- package/src/scss/{custom → components}/_gridlist.scss +7 -0
- package/src/scss/{custom → components}/_hero.scss +23 -57
- package/src/scss/components/_images.scss +48 -0
- package/src/scss/{custom → components}/_linklist.scss +0 -1
- package/src/scss/components/_list-group.scss +190 -0
- package/src/scss/components/_modal.scss +475 -0
- package/src/scss/components/_nav.scss +169 -0
- package/src/scss/components/_navbar.scss +273 -0
- package/src/scss/components/_offcanvas.scss +144 -0
- package/src/scss/components/_pagination.scss +108 -0
- package/src/scss/components/_placeholders.scss +51 -0
- package/src/scss/components/_popover.scss +298 -0
- package/src/scss/components/_progress-bars.scss +126 -0
- package/src/scss/{custom → components}/_steppers.scss +2 -2
- package/src/scss/{custom → components}/_tab.scss +3 -7
- package/src/scss/components/_tables.scss +171 -0
- package/src/scss/components/_toasts.scss +73 -0
- package/src/scss/{custom → components}/_toolbar.scss +19 -12
- package/src/scss/components/_tooltip.scss +139 -0
- package/src/scss/{custom → components}/_type.scss +92 -0
- package/src/scss/forms/_accessible-autocomplete.scss +188 -0
- package/src/scss/forms/_floating-labels.scss +75 -0
- package/src/scss/forms/_form-check.scss +175 -0
- package/src/scss/forms/_form-control.scss +201 -0
- package/src/scss/forms/_form-range.scss +95 -0
- package/src/scss/{custom → forms}/_form-select.scss +72 -0
- package/src/scss/forms/_form-text.scss +11 -0
- package/src/scss/{custom → forms}/_forms.scss +8 -12
- package/src/scss/forms/_input-group.scss +129 -0
- package/src/scss/forms/_labels.scss +36 -0
- package/src/scss/forms/_validation.scss +12 -0
- package/src/scss/utilities/icons.scss +5 -5
- package/types/index.d.ts +4 -1
- package/types/plugins/video.ts +33 -0
- package/dist/plugins/backToTop.js.map +0 -1
- package/src/scss/_functions.scss +0 -38
- package/src/scss/_variables.scss +0 -639
- package/src/scss/custom/_accessible-autocomplete.scss +0 -30
- package/src/scss/custom/_accordion.scss +0 -176
- package/src/scss/custom/_badge.scss +0 -29
- package/src/scss/custom/_breadcrumb.scss +0 -51
- package/src/scss/custom/_buttons.scss +0 -235
- package/src/scss/custom/_componente-base.scss +0 -6
- package/src/scss/custom/_dropdown.scss +0 -248
- package/src/scss/custom/_form-datepicker.scss +0 -604
- package/src/scss/custom/_images.scss +0 -10
- package/src/scss/custom/_modal.scss +0 -248
- package/src/scss/custom/_popover.scss +0 -106
- package/src/scss/custom/_progress-bars.scss +0 -70
- package/src/scss/custom/_tables.scss +0 -11
- package/src/scss/custom/_timepicker.scss +0 -252
- package/src/scss/custom/_tooltip.scss +0 -33
- package/src/scss/custom/_version.scss +0 -3
- package/src/scss/custom/mixins/_buttons.scss +0 -67
- package/src/scss/utilities/colors_vars.scss +0 -426
- /package/src/scss/{custom → base}/mixins/_text-emphasis.scss +0 -0
- /package/src/scss/{custom → components}/_accept-overlay.scss +0 -0
- /package/src/scss/{custom → components}/_affix.scss +0 -0
- /package/src/scss/{custom → components}/_alert.scss +0 -0
- /package/src/scss/{custom → components}/_anchor.scss +0 -0
- /package/src/scss/{custom → components}/_back-to-top.scss +0 -0
- /package/src/scss/{custom → components}/_bottomnav.scss +0 -0
- /package/src/scss/{custom → components}/_calendar.scss +0 -0
- /package/src/scss/{custom → components}/_callout.scss +0 -0
- /package/src/scss/{custom → components}/_chips.scss +0 -0
- /package/src/scss/{custom → components}/_code.scss +0 -0
- /package/src/scss/{custom → components}/_cookiebar.scss +0 -0
- /package/src/scss/{custom → components}/_dimmer.scss +0 -0
- /package/src/scss/{custom → components}/_figcaption.scss +0 -0
- /package/src/scss/{custom → components}/_font.scss +0 -0
- /package/src/scss/{custom → components}/_footer.scss +0 -0
- /package/src/scss/{custom → components}/_forward.scss +0 -0
- /package/src/scss/{custom → components}/_header.scss +0 -0
- /package/src/scss/{custom → components}/_headercenter.scss +0 -0
- /package/src/scss/{custom → components}/_headercentertheme.scss +0 -0
- /package/src/scss/{custom → components}/_headernavbar.scss +0 -0
- /package/src/scss/{custom → components}/_headernavbartheme.scss +0 -0
- /package/src/scss/{custom → components}/_headerslim.scss +0 -0
- /package/src/scss/{custom → components}/_headerslimtheme.scss +0 -0
- /package/src/scss/{custom → components}/_imgresponsive.scss +0 -0
- /package/src/scss/{custom → components}/_list.scss +0 -0
- /package/src/scss/{custom → components}/_map.scss +0 -0
- /package/src/scss/{custom → components}/_masonry-loader.scss +0 -0
- /package/src/scss/{custom → components}/_megamenu.scss +0 -0
- /package/src/scss/{custom → components}/_navigation.scss +0 -0
- /package/src/scss/{custom → components}/_navigationtheme.scss +0 -0
- /package/src/scss/{custom → components}/_navscroll.scss +0 -0
- /package/src/scss/{custom → components}/_navscrolltheme.scss +0 -0
- /package/src/scss/{custom → components}/_notifications.scss +0 -0
- /package/src/scss/{custom → components}/_overlay-panel.scss +0 -0
- /package/src/scss/{custom → components}/_page-scroll.scss +0 -0
- /package/src/scss/{custom → components}/_pager.scss +0 -0
- /package/src/scss/{custom → components}/_point-list.scss +0 -0
- /package/src/scss/{custom → components}/_print.scss +0 -0
- /package/src/scss/{custom → components}/_progress-donuts.scss +0 -0
- /package/src/scss/{custom → components}/_progress-spinners.scss +0 -0
- /package/src/scss/{custom → components}/_rating-list.scss +0 -0
- /package/src/scss/{custom → components}/_rating.scss +0 -0
- /package/src/scss/{custom → components}/_sections.scss +0 -0
- /package/src/scss/{custom → components}/_sidebar.scss +0 -0
- /package/src/scss/{custom → components}/_sidebarthemes.scss +0 -0
- /package/src/scss/{custom → components}/_skiplinks.scss +0 -0
- /package/src/scss/{custom → components}/_sticky.scss +0 -0
- /package/src/scss/{custom → components}/_thumbnav.scss +0 -0
- /package/src/scss/{custom → components}/_timeline.scss +0 -0
- /package/src/scss/{custom → components}/_videoplayer.scss +0 -0
- /package/src/scss/{custom → forms}/_autocomplete.scss +0 -0
- /package/src/scss/{custom → forms}/_form-input-file.scss +0 -0
- /package/src/scss/{custom → forms}/_form-input-number.scss +0 -0
- /package/src/scss/{custom → forms}/_form-input-upload.scss +0 -0
- /package/src/scss/{custom → forms}/_form-password.scss +0 -0
- /package/src/scss/{custom → forms}/_form-toggles.scss +0 -0
- /package/src/scss/{custom → forms}/_form-transfer.scss +0 -0
- /package/src/scss/{custom → forms}/_just-validate.scss +0 -0
- /package/types/plugins/{backToTop.d.ts → back-to-top.d.ts} +0 -0
|
@@ -1,3 +1,19 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("@popperjs/core"),require("video.js"),require("animejs/lib/anime.es.js"),require("@splidejs/splide"),require("masonry-layout"),require("accessible-autocomplete")):"function"==typeof define&&define.amd?define(["@popperjs/core","video.js","animejs/lib/anime.es.js","@splidejs/splide","masonry-layout","accessible-autocomplete"],e):(t="undefined"!=typeof globalThis?globalThis:t||self).bootstrap=e(t.Popper,t.videojs,t.anime,t.Splide,t.MasonryPlugin,t.accessibleAutocomplete)}(this,(function(t,e,i,s,n,o){"use strict";function r(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t)for(const i in t)if("default"!==i){const s=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(e,i,s.get?s:{enumerable:!0,get:()=>t[i]})}return e.default=t,Object.freeze(e)}const a=r(t);!function(){const t={NODE_ENV:"production"};try{if(process)return process.env=Object.assign({},process.env),void Object.assign(process.env,t)}catch(t){}globalThis.process={env:t}}();const l="data-focus-mouse",c="focus--mouse";class h{constructor(){this._usingMouse=!1,this._bindEvents()}_bindEvents(){if("undefined"==typeof document)return;["keydown","mousedown"].forEach((t=>{document.addEventListener(t,(t=>{this._usingMouse="mousedown"===t.type}))})),document.addEventListener("focusin",(t=>{this._usingMouse&&t.target&&(t.target.classList.add(c),t.target.setAttribute(l,!0))})),document.addEventListener("focusout",(t=>{t.target&&(t.target.classList.remove(c),t.target.setAttribute(l,!1))}))}}new h;const u=()=>{"undefined"==typeof window||window.BOOTSTRAP_ITALIA_VERSION||(new h,window.BOOTSTRAP_ITALIA_VERSION="2.12.0")};u();const d={ck3:{}},f={rememberChoice:(t,e)=>{d.ck3[t]=e,localStorage.setItem("bs-ck3",JSON.stringify(d.ck3))},isChoiceRemembered:t=>(d.ck3=JSON.parse(localStorage.getItem("bs-ck3")||"{}"),d.ck3[t]||!1),clearAllRememberedChoices:()=>{localStorage.removeItem("bs-ck3")}},p=new Map,g={set(t,e,i){p.has(t)||p.set(t,new Map);const s=p.get(t);s.has(e)||0===s.size?s.set(e,i):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(s.keys())[0]}.`)},get:(t,e)=>p.has(t)&&p.get(t).get(e)||null,remove(t,e){if(!p.has(t))return;const i=p.get(t);i.delete(e),0===i.size&&p.delete(t)}},m="transitionend",_=t=>{let e=t.getAttribute("data-bs-target");if(!e||"#"===e){let i=t.getAttribute("href");if(!i||!i.includes("#")&&!i.startsWith("."))return null;i.includes("#")&&!i.startsWith("#")&&(i=`#${i.split("#")[1]}`),e=i&&"#"!==i?i.trim():null}return e},b=t=>{const e=_(t);return e&&document.querySelector(e)?e:null},v=t=>{const e=_(t);return e?document.querySelector(e):null},y=t=>{t.dispatchEvent(new Event(m))},w=t=>!(!t||"object"!=typeof t)&&(void 0!==t.jquery&&(t=t[0]),void 0!==t.nodeType),E=t=>w(t)?t.jquery?t[0]:t:"string"==typeof t&&t.length>0?document.querySelector(t):null,k=t=>{if(!w(t)||0===t.getClientRects().length)return!1;const e="visible"===getComputedStyle(t).getPropertyValue("visibility"),i=t.closest("details:not([open])");if(!i)return e;if(i!==t){const e=t.closest("summary");if(e&&e.parentNode!==i)return!1;if(null===e)return!1}return e},S=t=>!t||t.nodeType!==Node.ELEMENT_NODE||(!!t.classList.contains("disabled")||(void 0!==t.disabled?t.disabled:t.hasAttribute("disabled")&&"false"!==t.getAttribute("disabled"))),C=t=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?C(t.parentNode):null},T=()=>{},A=t=>{t.offsetHeight},L=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,x=[],O=()=>"rtl"===document.documentElement.dir,I=t=>{var e;e=()=>{const e=L();if(e){const i=t.NAME,s=e.fn[i];e.fn[i]=t.jQueryInterface,e.fn[i].Constructor=t,e.fn[i].noConflict=()=>(e.fn[i]=s,t.jQueryInterface)}},"loading"===document.readyState?(x.length||document.addEventListener("DOMContentLoaded",(()=>{for(const t of x)t()})),x.push(e)):e()},P=t=>{"function"==typeof t&&t()},$=(t,e,i=!0)=>{if(!i)return void P(t);const s=(t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:i}=window.getComputedStyle(t);const s=Number.parseFloat(e),n=Number.parseFloat(i);return s||n?(e=e.split(",")[0],i=i.split(",")[0],1e3*(Number.parseFloat(e)+Number.parseFloat(i))):0})(e)+5;let n=!1;const o=({target:i})=>{i===e&&(n=!0,e.removeEventListener(m,o),P(t))};e.addEventListener(m,o),setTimeout((()=>{n||y(e)}),s)},M=(t,e,i,s)=>{const n=t.length;let o=t.indexOf(e);return-1===o?!i&&s?t[n-1]:t[0]:(o+=i?1:-1,s&&(o=(o+n)%n),t[Math.max(0,Math.min(o,n-1))])},F=/[^.]*(?=\..*)\.|.*/,j=/\..*/,N=/::\d+$/,D={};let R=1;const B={mouseenter:"mouseover",mouseleave:"mouseout"},W=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function V(t,e){return e&&`${e}::${R++}`||t.uidEvent||R++}function z(t){const e=V(t);return t.uidEvent=e,D[e]=D[e]||{},D[e]}function q(t,e,i=null){return Object.values(t).find((t=>t.callable===e&&t.delegationSelector===i))}function H(t,e,i){const s="string"==typeof e,n=s?i:e||i;let o=K(t);return W.has(o)||(o=t),[s,n,o]}function U(t,e,i,s,n){if("string"!=typeof e||!t)return;let[o,r,a]=H(e,i,s);if(e in B){const t=t=>function(e){if(!e.relatedTarget||e.relatedTarget!==e.delegateTarget&&!e.delegateTarget.contains(e.relatedTarget))return t.call(this,e)};r=t(r)}const l=z(t),c=l[a]||(l[a]={}),h=q(c,r,o?i:null);if(h)return void(h.oneOff=h.oneOff&&n);const u=V(r,e.replace(F,"")),d=o?function(t,e,i){return function s(n){const o=t.querySelectorAll(e);for(let{target:r}=n;r&&r!==this;r=r.parentNode)for(const a of o)if(a===r)return X(n,{delegateTarget:r}),s.oneOff&&G.off(t,n.type,e,i),i.apply(r,[n])}}(t,i,r):function(t,e){return function i(s){return X(s,{delegateTarget:t}),i.oneOff&&G.off(t,s.type,e),e.apply(t,[s])}}(t,r);d.delegationSelector=o?i:null,d.callable=r,d.oneOff=n,d.uidEvent=u,c[u]=d,t.addEventListener(a,d,o)}function Q(t,e,i,s,n){const o=q(e[i],s,n);o&&(t.removeEventListener(i,o,Boolean(n)),delete e[i][o.uidEvent])}function Y(t,e,i,s){const n=e[i]||{};for(const o of Object.keys(n))if(o.includes(s)){const s=n[o];Q(t,e,i,s.callable,s.delegationSelector)}}function K(t){return t=t.replace(j,""),B[t]||t}const G={on(t,e,i,s){U(t,e,i,s,!1)},one(t,e,i,s){U(t,e,i,s,!0)},off(t,e,i,s){if("string"!=typeof e||!t)return;const[n,o,r]=H(e,i,s),a=r!==e,l=z(t),c=l[r]||{},h=e.startsWith(".");if(void 0===o){if(h)for(const i of Object.keys(l))Y(t,l,i,e.slice(1));for(const i of Object.keys(c)){const s=i.replace(N,"");if(!a||e.includes(s)){const e=c[i];Q(t,l,r,e.callable,e.delegationSelector)}}}else{if(!Object.keys(c).length)return;Q(t,l,r,o,n?i:null)}},trigger(t,e,i){if("string"!=typeof e||!t)return null;const s=L();let n=null,o=!0,r=!0,a=!1;e!==K(e)&&s&&(n=s.Event(e,i),s(t).trigger(n),o=!n.isPropagationStopped(),r=!n.isImmediatePropagationStopped(),a=n.isDefaultPrevented());let l=new Event(e,{bubbles:o,cancelable:!0});return l=X(l,i),a&&l.preventDefault(),r&&t.dispatchEvent(l),l.defaultPrevented&&n&&n.preventDefault(),l}};function X(t,e){for(const[i,s]of Object.entries(e||{}))try{t[i]=s}catch{Object.defineProperty(t,i,{configurable:!0,get:()=>s})}return t}function Z(t){if("true"===t)return!0;if("false"===t)return!1;if(t===Number(t).toString())return Number(t);if(""===t||"null"===t)return null;if("string"!=typeof t)return t;try{return JSON.parse(decodeURIComponent(t))}catch{return t}}function J(t){return t.replace(/[A-Z]/g,(t=>`-${t.toLowerCase()}`))}const tt={setDataAttribute(t,e,i){t.setAttribute(`data-bs-${J(e)}`,i)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${J(e)}`)},getDataAttributes(t){if(!t)return{};const e={},i=Object.keys(t.dataset).filter((t=>t.startsWith("bs")&&!t.startsWith("bsConfig")));for(const s of i){let i=s.replace(/^bs/,"");i=i.charAt(0).toLowerCase()+i.slice(1,i.length),e[i]=Z(t.dataset[s])}return e},getDataAttribute:(t,e)=>Z(t.getAttribute(`data-bs-${J(e)}`))};class et{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(t){return t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t}_mergeConfigObj(t,e){const i=w(e)?tt.getDataAttribute(e,"config"):{};return{...this.constructor.Default,..."object"==typeof i?i:{},...w(e)?tt.getDataAttributes(e):{},..."object"==typeof t?t:{}}}_typeCheckConfig(t,e=this.constructor.DefaultType){for(const s of Object.keys(e)){const n=e[s],o=t[s],r=w(o)?"element":null==(i=o)?`${i}`:Object.prototype.toString.call(i).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(n).test(r))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${s}" provided type "${r}" but expected type "${n}".`)}var i}}class it extends et{constructor(t,e){super(),(t=E(t))&&(this._element=t,this._config=this._getConfig(e),g.set(this._element,this.constructor.DATA_KEY,this))}dispose(){g.remove(this._element,this.constructor.DATA_KEY),G.off(this._element,this.constructor.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,e,i=!0){$(t,e,i)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return g.get(E(t),this.DATA_KEY)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,"object"==typeof e?e:null)}static get VERSION(){return"5.2.3"}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(t){return`${t}${this.EVENT_KEY}`}}const st={find:(t,e=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(e,t)),findOne:(t,e=document.documentElement)=>Element.prototype.querySelector.call(e,t),children:(t,e)=>[].concat(...t.children).filter((t=>t.matches(e))),parents(t,e){const i=[];let s=t.parentNode.closest(e);for(;s;)i.push(s),s=s.parentNode.closest(e);return i},prev(t,e){let i=t.previousElementSibling;for(;i;){if(i.matches(e))return[i];i=i.previousElementSibling}return[]},next(t,e){let i=t.nextElementSibling;for(;i;){if(i.matches(e))return[i];i=i.nextElementSibling}return[]},focusableChildren(t){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map((t=>`${t}:not([tabindex^="-"])`)).join(",");return this.find(e,t).filter((t=>!S(t)&&k(t)))}},nt={slideFocus:!0,i18n:{prev:"Slide precedente",next:"Slide successiva",first:"Vai alla prima slide",last:"Vai all’ultima slide",slideX:"Vai alla slide %s",pageX:"Vai a pagina %s",play:"Attiva autoplay",pause:"Pausa autoplay"}},ot={"it-carousel-landscape-abstract-three-cols":{type:"slide",perPage:3,gap:24,padding:{left:0,right:0},arrows:!1,breakpoints:{768:{perPage:1,gap:24,padding:{left:0,right:0},arrows:!1},992:{perPage:2,gap:24,padding:{left:40,right:40},arrows:!1}}},"it-carousel-landscape-abstract-three-cols-arrow-visible":{type:"slide",perPage:3,gap:24,padding:{left:0,right:0},arrows:!0,breakpoints:{768:{perPage:1,gap:24,padding:{left:40,right:40},arrows:!0},992:{perPage:2,gap:24,padding:{left:40,right:40},arrows:!0}}},"it-big-img":{type:"loop",perPage:1,gap:48,padding:{left:320,right:320},arrows:!1,breakpoints:{768:{perPage:1,gap:0,padding:{left:0,right:0},arrows:!1},992:{perPage:1,gap:24,padding:{left:160,right:160},arrows:!1}}},"it-standard-image":{type:"loop",perPage:3,gap:24,padding:{left:48,right:48},arrows:!1,breakpoints:{768:{perPage:1,gap:24,padding:{left:40,right:40},arrows:!1},992:{perPage:2,gap:24,padding:{left:48,right:48},arrows:!1}}},"it-carousel-landscape-abstract":{type:"slide",perPage:1,gap:24,padding:{left:0,right:0},arrows:!1,breakpoints:{768:{perPage:1,gap:24,padding:{left:0,right:0},arrows:!1},992:{perPage:1,gap:24,padding:{left:24,right:24},arrows:!1}}},"it-calendar-wrapper":{type:"slide",perPage:4,gap:0,padding:{left:0,right:0},arrows:!1,breakpoints:{560:{perPage:1,gap:0,padding:{left:24,right:24},arrows:!1},768:{perPage:2,gap:0,padding:{left:0,right:0},arrows:!1},992:{perPage:3,gap:0,padding:{left:0,right:0},arrows:!1}}}};class rt extends it{constructor(t){super(t),this._config=this._getConfig(),this._splide=new s(this._element,this._config),this._init()}dispose(){this._splide.destroy(),super.dispose()}static get NAME(){return"carousel"}_init(){this._splide.mount()}_getConfig(){let t=Object.assign({},nt);return Object.keys(ot).forEach((e=>{this._element.classList.contains(e)&&(t=Object.assign({},t,ot[e]))})),t}}G.on(window,"load.bs.carousel.data-api",(()=>{st.find("[data-bs-carousel-splide]").forEach((t=>{rt.getOrCreateInstance(t)}))}));const at=".bs.inputlabel",lt=`focus${at}`,ct=`blur${at}`,ht=`change${at}`,ut="active";class dt{constructor(t){this._element=t,this._init()}static get NAME(){return"inputlabel"}static getInputFromLabel=t=>document.querySelector("#"+CSS.escape(t.getAttribute("for")));_init(){const t=this._getLabel();t&&!t.classList.contains(ut)&&(this._labelOut(),this._labelOver()),t&&null===t.getAttribute("it-bs-static")&&this._bindEvents()}_bindEvents(){["date","time"].includes(this._element.getAttribute("type"))||("file"===this._element.getAttribute("type")?G.on(this._element,ct,(()=>{this._labelOut()})):(G.on(this._element,lt,(()=>{this._labelOut()})),G.on(this._element,ct,(()=>{this._labelOver()})),G.on(this._element,ht,(()=>{this._labelToggle()}))))}_getLabel(){return st.findOne('label[for="'+this._element.getAttribute("id")+'"]')}_isEmpty(){return!this._element.value&&!this._element.getAttribute("placeholder")}_labelOut(){const t=this._getLabel();t&&t.classList.add(ut)}_labelOver(){if(this._isEmpty()){const t=this._getLabel();t&&t.classList.remove(ut)}}_labelToggle(){this._isEmpty()?this._labelOver():this._labelOut()}}const ft=".bs.inputnumber",pt=`click${ft}`,gt=`change${ft}`,mt=`click${ft}.data-api`,_t=".input-number",bt='input[data-bs-input][type="number"]',vt='button[class^="input-number-"]';class yt extends it{constructor(t){super(t),this._wrapperElement=this._element.closest(_t),this._label=new dt(t),this._init(),this._bindEvents()}static get NAME(){return"inputnumber"}_init(){this._wrapperElement&&this._inputResize()}_bindEvents(){this._wrapperElement&&(st.find(vt,this._wrapperElement).forEach((t=>{G.on(t,pt,(e=>{e.preventDefault(),this._incrDecr(t.classList.contains("input-number-sub")),this._label._labelOut()}))})),G.on(this._element,gt,(()=>this._checkLimit())))}_inputResize(){if(this._wrapperElement.classList.contains("input-number-adaptive")){let t=null;t="calc(70px + "+this._element.value.length+"ch)",t&&(this._element.style.width=t)}}_incrDecr(t){var e=0;if(""!==this._element.value&&(e=parseFloat(this._element.value)),!isNaN(e)){let i=parseFloat(this._element.getAttribute("step"));i||(i=1),this._element.value=e+i*(t?-1:1),G.trigger(this._element,gt),G.trigger(this._element,"input")}}_checkLimit(){const t=parseFloat(this._element.value);if(!isNaN(t)){let e=t;const i=parseFloat(this._element.getAttribute("max")),s=parseFloat(this._element.getAttribute("min"));s&&t<s&&(e=s),i&&t>i&&(e=i),this._element.value=e}this._inputResize()}}"undefined"!=typeof document&&(document.addEventListener("DOMContentLoaded",(function(){document.querySelectorAll(bt+", label").forEach((function(t){const e=dt.getInputFromLabel(t)||t;var i;(i=e)&&i.matches(bt)&&i.parentNode.querySelector(vt)&&yt.getOrCreateInstance(i)}))})),G.on(document,mt,vt,(function(){const t=this.closest(_t);if(t){const e=st.findOne(bt,t);e&&yt.getOrCreateInstance(e)}})));const wt="show";class Et extends it{constructor(t){super(t),this._isShown=!t.matches("[aria-hidden=true]"),this._isTransitioning=!1}static get NAME(){return"dimmer"}show(){this._isShown||this._isTransitioning||(this._isShown=!0,this._isAnimated()&&(this._isTransitioning=!0),this._showElement())}hide(){if(!this._isShown||this._isTransitioning)return;this._isShown=!1;const t=this._isAnimated();t&&(this._isTransitioning=!0),this._element.classList.remove(wt),this._queueCallback((()=>this._hideElement()),this._element,t)}_isAnimated(){return this._element.classList.contains("fade")}_showElement(){const t=this._isAnimated();this._element.removeAttribute("aria-hidden"),t&&A(this._element),this._element.classList.add(wt);this._queueCallback((()=>{this._isTransitioning=!1}),this._element,t)}_hideElement(){this._element.setAttribute("aria-hidden",!0),this._isTransitioning=!1}}G.on(document,"click.bs.dimmer.data-api",'[data-bs-toggle="dimmer"]',(function(){const t=v(this),e=Et.getOrCreateInstance(t);this.checked?e.show():e.hide()}));const kt=(t,e="hide")=>{const i=`click.dismiss${t.EVENT_KEY}`,s=t.NAME;G.on(document,i,`[data-bs-dismiss="${s}"]`,(function(i){if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),S(this))return;const n=v(this)||this.closest(`.${s}`);t.getOrCreateInstance(n)[e]()}))},St=".bs.notification",Ct=`click${St}.data-api`,Tt=`hidden${St}`,At=`show${St}`,Lt={timeout:0},xt="show";class Ot extends it{constructor(t,e){super(t),this._config=this._getConfig(e),this._isShown=this._element.classList.contains(xt),this._isTransitioning=!1,this._toId=null}static get NAME(){return"notification"}show(t,e){if(this._isShown||this._isTransitioning)return;const i=t||this._getElementTimeout(e);this._isShown=!0,this._isAnimated()&&(this._isTransitioning=!0),this._showElement(i)}hide(){if(!this._isShown||this._isTransitioning)return;this._isShown=!1;const t=this._isAnimated();t&&(this._isTransitioning=!0),this._element.classList.remove(xt),this._queueCallback((()=>this._hideElement()),this._element,t)}toggle(t){this._isShown?this.hide():this.show(null,t)}_isAnimated(){return this._element.classList.contains("fade")}_showElement(t){const e=this._isAnimated();this._element.style.display="block",this._element.removeAttribute("aria-hidden"),e&&A(this._element),this._element.classList.add(xt);this._queueCallback((()=>{this._isTransitioning=!1,t&&this._setTimeout(t,(()=>this.hide()))}),this._element,e)}_hideElement(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._isTransitioning=!1}_getConfig(t){return t={...Lt,...tt.getDataAttributes(this._element),..."object"==typeof t?t:{}}}_getElementTimeout(t){const e=t?parseInt(t.getAttribute("data-bs-timeout")):null;return e>0?e:this._config.timeout}_setTimeout(t,e){this._clearTimeout(),setTimeout(e,t)}_clearTimeout(){this._toId&&(clearTimeout(this._toId),this._toId=null)}}G.on(document,Ct,'[data-bs-toggle="notification"]',(function(t){const e=v(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),G.one(e,At,(t=>{t.defaultPrevented||G.one(e,Tt,(()=>{k(this)&&this.focus()}))}));Ot.getOrCreateInstance(e).toggle(this)})),kt(Ot);const It="cookiebar",Pt=".bs.cookiebar",$t=".data-api",Mt="cookies_consent",Ft=`close${Pt}`,jt=`closed${Pt}`,Nt=`load${Pt}${$t}`,Dt=`click${Pt}${$t}`,Rt="show";class Bt extends it{constructor(t){super(t),this._isShown=this._element.classList.contains(Rt),this._isTransitioning=!1}static get NAME(){return It}static get VERSION(){return"5.0.0"}show(){this._isShown||this._isTransitioning||(this._isShown=!0,this._isAnimated()&&(this._isTransitioning=!0),this._showElement())}hide(){if(!this._isShown||this._isTransitioning)return;this._isShown=!1;const t=this._isAnimated();t&&(this._isTransitioning=!0),this._element.classList.remove(Rt),this._queueCallback((()=>this._hideElement()),this._element,t)}accept(t){t=t||this._element;const e=this._getRootElement(t);this._triggerCloseEvent(e).defaultPrevented||(this._setCookieEU(),this.hide())}static clearCookie(){"undefined"!=typeof document&&(document.cookie=Mt+"=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;")}_isAnimated(){return this._element.classList.contains("fade")}_showElement(){const t=this._isAnimated();this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-live","polite"),t&&A(this._element),this._element.classList.add(Rt);this._queueCallback((()=>{this._isTransitioning=!1}),this._element,t)}_hideElement(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-live"),this._isTransitioning=!1}_setCookieEU(){var t=new Date;t.setDate(t.getDate()+30);var e=escape("true")+"; expires="+t.toUTCString();"undefined"!=typeof document&&(document.cookie=Mt+"="+e+"; path=/; SameSite=Strict")}_getRootElement(t){const e=v(t);let i=null;return e&&(i=e),i||(i=t.closest(".cookiebar")),i}_triggerCloseEvent(t){return G.trigger(t,Ft)}_removeElement(t){t.classList.remove(Rt),t.setAttribute("aria-hidden","true"),t.setAttribute("aria-live","off"),G.trigger(t,jt),this.dispose()}static _handleAccept(t){return function(e){e&&e.preventDefault(),t.close(this)}}static _handleConsent(t){return function(e){e&&e.preventDefault(),t.close(this)}}static _getCookieEU(){if("undefined"!=typeof document){var t,e,i,s=document.cookie.split(";");for(t=0;t<s.length;t++)if(e=s[t].substring(0,s[t].indexOf("=")),i=s[t].substring(s[t].indexOf("=")+1),(e=e.replace(/^\s+|\s+$/g,""))==Mt)return unescape(i)}}}G.on(document,Dt,'[data-bs-accept="cookiebar"]',(function(t){if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),S(this))return;const e=v(this)||this.closest(`.${It}`);Bt.getOrCreateInstance(e).accept()})),G.on(window,Nt,(function(){if(!Bt._getCookieEU()){if("undefined"==typeof document)return;document.querySelectorAll(".cookiebar").forEach((t=>{Bt.getOrCreateInstance(t).show()}))}}));const Wt=()=>{if("undefined"!=typeof window)return window.matchMedia("(max-width: 991px)").matches},Vt=(t,e)=>{let i=null;return e.forEach(((e,s)=>{e===t&&(i=s)})),i},zt=(t,e,i)=>{i={isDirectionTop:!1,isLimit:!1,loop:!1,..."object"==typeof i?i:{}};const s=Vt(t,e);let n=null;if(i.isLimit&&i.isDirectionTop&&s>0)n=e[0];else if(i.isLimit&&s<e.length-1)n=e[e.length-1];else if(i.isDirectionTop){if(!i.loop&&0===s)return;n=e[0===s?e.length-1:s-1]}else{if(!i.loop&&s===e.length-1)return;n=e[s===e.length-1?0:s+1]}n&&n.focus()},qt="pagescroll-scroll-disabled";let Ht=!1,Ut="undefined"==typeof document?0:document.scrollingElement.scrollTop;const Qt="undefined"==typeof document?null:document.querySelector("html");"undefined"!=typeof document&&document.addEventListener("scroll",(()=>{Ht&&(document.scrollingElement.scrollTop=Ut)}));const Yt=".bs.navbarcollapsible",Kt=`click${Yt}.data-api`,Gt=`click${Yt}`,Xt=`keyup${Yt}`,Zt=`keydown${Yt}`,Jt=`hide${Yt}`,te=`hidden${Yt}`,ee=`show${Yt}`,ie=`shown${Yt}`,se=`resize${Yt}`,ne="show",oe="expanded",re=".close-menu",ae=".nav-link",le=".nav-item .list-item",ce=".it-heading-link",he=".it-footer-link";class ue extends it{constructor(t){super(t),this._isShown=this._element.classList.contains(oe),this._isTransitioning=!1,this._isMobile=Wt(),this._isKeyShift=!1,this._currItemIdx=0,this._btnClose=st.findOne(".close-div button",this._element),this._btnBack=st.findOne(".it-back-button",this._element),this._menuWrapper=st.findOne(".menu-wrapper",this._element),this._overlay=null,this._setOverlay(),this._menuItems=st.find([ae,le,ce,he,re].join(","),this._element),this._bindEvents()}static get NAME(){return"navbarcollapsible"}show(t){if(this._isShown||this._isTransitioning)return;G.trigger(this._element,ee,{relatedTarget:t}).defaultPrevented||(this._btnBack&&this._btnBack.classList.add(ne),this._isShown=!0,"undefined"!=typeof document&&(Ht=!0,Ut=document.scrollingElement.scrollTop,Qt.classList.add(qt)),this._showElement())}hide(){if(!this._isShown||this._isTransitioning)return;if(G.trigger(this._element,Jt).defaultPrevented)return;this._isShown=!1;const t=this._isAnimated();t&&(this._isTransitioning=!0),this._btnBack&&this._btnBack.classList.remove(ne),this._overlay&&this._overlay.classList.remove(ne),this._element.classList.remove(oe),"undefined"!=typeof document&&(Ht=!1,Qt.classList.remove(qt)),this._queueCallback((()=>this._hideElement()),this._menuWrapper,t)}toggle(t){this._isShown?this.hide():this.show(t)}dispose(){G.off(window,se),super.dispose()}_bindEvents(){G.on(window,se,(()=>this._onResize())),this._overlay&&G.on(this._overlay,Gt,(()=>this.hide())),G.on(this._btnClose,Gt,(t=>{t.preventDefault(),this.hide()})),G.on(this._btnBack,Gt,(t=>{t.preventDefault(),this.hide()})),this._menuItems.forEach((t=>{G.on(t,Zt,(t=>this._isMobile&&this._onMenuItemKeyDown(t))),G.on(t,Xt,(t=>this._isMobile&&this._onMenuItemKeyUp(t))),G.on(t,Gt,(t=>this._isMobile&&this._onMenuItemClick(t)))}))}_onResize(){this._isMobile=Wt()}_onMenuItemKeyUp(t){"Shift"===t.key&&(this._isKeyShift=!1)}_onMenuItemKeyDown(t){"Shift"===t.key&&(this._isKeyShift=!0),"Tab"===t.key&&(t.preventDefault(),this._focusNext())}_onMenuItemClick(t){this.currItemIdx=Vt(t.currentTarget,this._menuItems)}_isAnimated(){return!0}_isElementHidden(t){return null===t.offsetParent}_showElement(){const t=this._isAnimated();this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-expanded",!0),this._overlay&&(this._overlay.style.display="block"),t&&A(this._element),this._element.classList.add(oe),this._overlay&&this._overlay.classList.add(ne);this._queueCallback((()=>{this._isTransitioning=!1;const t=this._getNextVisibleItem(0);t.item&&(t.item.focus(),this._currItemIdx=t.index),G.trigger(this._element,ie)}),this._menuWrapper,t)}_hideElement(){this._overlay&&(this._overlay.style.display="none"),this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-expanded"),this._isTransitioning=!1,G.trigger(this._element,te)}_setOverlay(){this._overlay=st.findOne(".overlay",this._element),this._isAnimated&&this._overlay.classList.add("fade")}_focusNext(){let t=this._currItemIdx+(this._isKeyShift?-1:1);t<0?t=this._menuItems.length-1:t>=this._menuItems.length&&(t=0);const e=this._getNextVisibleItem(t,this._isKeyShift);e.item&&(e.item.focus(),this._currItemIdx=e.index)}_getNextVisibleItem(t,e){let i=null,s=null,n=t,o=e?-1:1,r=!1;for(;!(i||n==t&&r);)n==t&&(r=!0),this._isElementHidden(this._menuItems[n])||(i=this._menuItems[n],s=n),n+=o,n<0?n=this._menuItems.length-1:n>=this._menuItems.length&&(n=0);return{item:i,index:s}}}G.on(document,Kt,'[data-bs-toggle="navbarcollapsible"]',(function(t){const e=v(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),G.one(e,ee,(t=>{t.defaultPrevented||G.one(e,te,(()=>{k(this)&&this.focus()}))}));ue.getOrCreateInstance(e).toggle(this)}));const de=".bs.accordion",fe=`keydown${de}`,pe=`keydown${de}.data-api`,ge='.accordion-item > .accordion-header [data-bs-toggle="collapse"]';class me extends it{constructor(t){super(t),this._bindEvents()}static get NAME(){return"accordion"}handleKeyDown(t,e,i){const s={ArrowDown:t=>this._focusNext(t),ArrowUp:t=>this._focusPrev(t),Home:t=>this._focusFirst(t),End:t=>this._focusLast(t)};"function"==typeof s[t]&&(i&&i.preventDefault(),s[t](e))}_bindEvents(){st.find(ge,this._element).forEach((t=>{G.on(t,fe,(t=>{this.handleKeyDown(t.key,t.currentTarget,t)}))}))}_getHeadButtons(){return st.find(":scope > "+ge,this._element)}_focusNext(t){zt(t,this._getHeadButtons(),{loop:!0})}_focusPrev(t){zt(t,this._getHeadButtons(),{isDirectionTop:!0,loop:!0})}_focusFirst(t){zt(t,this._getHeadButtons(),{isDirectionTop:!0,isLimit:!0})}_focusLast(t){zt(t,this._getHeadButtons(),{isLimit:!0})}}var _e;G.on(document,pe,ge,(function(t){const e=this.closest(".accordion");if(e){me.getOrCreateInstance(e).handleKeyDown(t.key,this,t)}}));var be=new Uint8Array(16);function ve(){if(!_e&&!(_e="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return _e(be)}const ye=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var we=[],Ee=0;Ee<256;++Ee)we.push((Ee+256).toString(16).substr(1));function ke(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=(we[t[e+0]]+we[t[e+1]]+we[t[e+2]]+we[t[e+3]]+"-"+we[t[e+4]]+we[t[e+5]]+"-"+we[t[e+6]]+we[t[e+7]]+"-"+we[t[e+8]]+we[t[e+9]]+"-"+we[t[e+10]]+we[t[e+11]]+we[t[e+12]]+we[t[e+13]]+we[t[e+14]]+we[t[e+15]]).toLowerCase();if(!function(t){return"string"==typeof t&&ye.test(t)}(i))throw TypeError("Stringified UUID is invalid");return i}function Se(t,e,i){var s=(t=t||{}).random||(t.rng||ve)();return s[6]=15&s[6]|64,s[8]=63&s[8]|128,ke(s)}let Ce=!1,Te=[];class Ae{constructor(t,e){this.id=t,this._callback=e}dispose(){Le(this.id)}_execute(t){this._callback(t)}}const Le=t=>{Te=Te.filter((e=>e.id!==t))},xe=t=>{if("undefined"!=typeof document){if(Te.length||document.addEventListener("scroll",(t=>{Ce||(window.requestAnimationFrame((()=>{Te.forEach((e=>e.cb._execute(t))),Ce=!1})),Ce=!0)})),"function"==typeof t){const e=new Ae(Se(),t);return Te.push({id:e.id,cb:e}),e}return console.error("[onDocumentScroll] the provided data has to be of type function"),null}},Oe={duration:800,easing:"easeInOutSine"},Ie=(t,e)=>{if("undefined"==typeof document)return;const s=("object"==typeof e?e:{}).complete,n=window.document.scrollingElement||window.document.body||window.document.documentElement,o=n.style.scrollBehavior;e={scrollTop:t||0,...Oe,..."object"==typeof e?e:{}},n.style.scrollBehavior="auto",e.complete=t=>{n.style.scrollBehavior=o,"function"==typeof s&&s(t)},i({targets:n,...e})},Pe="active",$e="ul.link-list",Me="a.nav-link",Fe=`${Me}.${Pe}`,je=`${Me}[href^="#"]`,Ne={scrollPadding:10,duration:800,easing:"easeInOutSine"};class De extends it{constructor(t,e){super(t),this._config=this._getConfig(e),this._togglerElement=st.findOne(".custom-navbar-toggler",this._element),this._sectionContainer=st.findOne(".it-page-sections-container"),this._collapsible=this._getCollapsible(),this._isCollapseOpened=!1,this._callbackQueue=[],this._scrollCb=null,this._bindEvents()}static get NAME(){return"navscroll"}setScrollPadding(t){this._config.scrollPadding=t}dispose(){this._scrollCb&&this._scrollCb.dispose(),super.dispose()}_getConfig(t){return t={...Ne,...tt.getDataAttributes(this._element),..."object"==typeof t?t:{}}}_bindEvents(){this._scrollCb=xe((()=>this._onScroll())),this._collapsible&&(G.on(this._collapsible._element,"shown.bs.navbarcollapsible",(()=>this._onCollapseOpened())),G.on(this._collapsible._element,"hidden.bs.navbarcollapsible",(()=>this._onCollapseClosed()))),st.find(je,this._element).forEach((t=>{t.addEventListener("click",(()=>{const e=()=>this._scrollToHash(t.hash);this._isCollapseOpened?(this._callbackQueue.push(e),this._collapsible.hide()):e()}))})),G.on(window,"load",(()=>{setTimeout((()=>this._onScroll()),150)}))}_onCollapseOpened(){this._isCollapseOpened=!0}_onCollapseClosed(){for(;this._callbackQueue.length>0;){const t=this._callbackQueue.shift();"function"==typeof t&&t()}this._isCollapseOpened=!1}_getParentLinks(t){const e=[];let i=t.closest($e),s=null,n=!1;for(;i&&!n;){const t=i.closest("li.nav-link, li.nav-item");if(t){const i=t.querySelector(Me);i&&e.push(i)}s=i,i=(i.parentElement||i).closest($e),i===s&&(n=!0)}return e}_decorateToggler(t){if(this._togglerElement){const e=st.findOne(".it-list",this._togglerElement);this._togglerElement.innerText="",this._togglerElement.textContent="",this._togglerElement.append(e),this._togglerElement.append(t)}}_scrollToHash(t){const e=st.findOne(t,this._sectionContainer);e&&(Ie(e.offsetTop-this._getScrollPadding(),{duration:this._config.duration,easing:this._config.easing}),history.pushState?history.pushState(null,null,t):location.hash=t)}_updateProgress(t){if(!t)return;const e=st.find(".it-navscroll-progressbar");if(e){const i=Math.abs(t.getBoundingClientRect().top)/t.getBoundingClientRect().height*100,s=Math.min(100,Math.max(0,i));e.forEach((e=>{t.getBoundingClientRect().top<=0?(e.style.width=s+"%",e.setAttribute("aria-valuenow",s)):(e.style.width="0%",e.setAttribute("aria-valuenow",0))}))}}_onScroll(){const t=this._sectionContainer?this._sectionContainer.offsetTop:0;if("undefined"==typeof document)return;const e=document.scrollingElement.scrollTop-t,i=st.find(Me,this._element),s=this._getScrollPadding();st.find(".it-page-section").forEach(((n,o)=>{if(n.offsetTop-t<=e+s&&(st.find(Fe,this._element).forEach((t=>{t.classList.remove(Pe)})),o<i.length)){const t=i[o];this._getParentLinks(t).forEach((t=>{t.classList.add(Pe)})),t.classList.add(Pe),this._decorateToggler(t.innerText)}})),this._updateProgress(this._sectionContainer)}_getCollapsible(){const t=st.findOne(".navbar-collapsable",this._element);return t?ue.getOrCreateInstance(t):null}_getScrollPadding(){return"function"==typeof this._config.scrollPadding?this._config.scrollPadding():this._config.scrollPadding}}st.find("[data-bs-navscroll]").map((t=>{De.getOrCreateInstance(t)}));const Re=".bs.sticky",Be=`resize${Re}`,We=`on${Re}`,Ve=`off${Re}`,ze="bs-is-sticky",qe="bs-is-fixed",He='[data-bs-toggle="sticky"]',Ue={positionType:"sticky",stickyClassName:"",stackable:!1,paddingTop:0};class Qe extends it{constructor(t,e){super(t),this._config=this._getConfig(e),this._isSticky=!1,this._wrapper=null,this._stickyTarget=st.findOne(b(this._element),this._element)||this._element,this._stickyTargetMobile=st.findOne(this._element.getAttribute("data-bs-target-mobile"),this._element)||this._stickyTarget,this._stickyLimit=0,this._stickyLimitMobile=0,this._setLimit(),this._scrollCb=null,this._isMobile=Wt(),this._prevTop=0,this._onScroll(),this._bindEvents()}dispose(){G.off(window,Be),this._scrollCb.dispose(),super.dispose()}static get NAME(){return"sticky"}_getConfig(t){return t={...Ue,...tt.getDataAttributes(this._element),..."object"==typeof t?t:{}}}_bindEvents(){G.on(window,Be,(()=>this._onResize())),this._scrollCb=xe((()=>this._onScroll()))}_onResize(){this._isMobile=Wt(),this._setLimit()}_onScroll(){this._checkSticky()}_setLimit(){this._stickyLimit=this._cumulativeOffset(this._stickyTarget).top,this._stickyLimitMobile=this._cumulativeOffset(this._stickyTargetMobile).top}_getLimit(){let t=this._isMobile?this._stickyLimitMobile:this._stickyLimit;return this._config.stackable&&this._getStickySimblings().forEach(((e,i)=>{const s=e.getBoundingClientRect();t-=s.height+(0===i?parseFloat(e.style.top):0)})),t>0?t:0}_cumulativeOffset(t){let e=0,i=0;do{e+=t.offsetTop||0,i+=t.offsetLeft||0,t=t.offsetParent}while(t);return{top:e,left:i}}_isTypeSticky(){return"sticky"===this._config.positionType}_checkSticky(){this._isSticky||this._setLimit();const t=this._getLimit();"undefined"!=typeof window&&window.pageYOffset>t?this._setSticky():this._unsetSticky()}_setSticky(){if(!this._isSticky){this._isSticky=!0;let t=ze;this._isTypeSticky()||(t=qe,this._wrapper=this._createWrapper()),this._element.classList.add(t),this._config.stickyClassName&&this._element.classList.add(this._config.stickyClassName),this._prevTop=this._element.style.top,this._element.style.top=this._getPositionTop()+"px",G.trigger(this._element,We)}}_unsetSticky(){if(this._isSticky){let t=ze;this._isTypeSticky()||(t=qe,this._destroyWrapper()),this._element.classList.remove(t),this._config.stickyClassName&&this._element.classList.remove(this._config.stickyClassName),this._element.style.top=this._prevTop,this._isSticky=!1,G.trigger(this._element,Ve)}}_createWrapper(){if("undefined"==typeof document)return;const t=document.createElement("div");return t.classList.add("bs-it-sticky-wrapper"),t.style.width="100%",t.style.height=this._element.getBoundingClientRect().height+"px",t.style.overflow="hidden",this._element.parentNode.insertBefore(t,this._element),t.appendChild(this._element),t}_destroyWrapper(){this._wrapper&&(this._wrapper.parentNode.insertBefore(this._element,this._wrapper),this._wrapper.remove())}_getStickySimblings(){return st.find(He).filter((t=>{const e=Qe.getInstance(t);return!(!e||!e._isSticky||t===this._element)}))}_getPositionTop(){let t=0;return this._config.stackable?(this._getStickySimblings().forEach(((e,i)=>{const s=e.getBoundingClientRect();t+=s.height+(0===i?parseFloat(e.style.top):0)})),t):t+this._config.paddingTop}}xe((()=>{st.find(He).map((t=>{Qe.getOrCreateInstance(t)}))}));const Ye="cloned-element",Ke=`.${Ye}`,Ge=new Map;class Xe{constructor(t){if(Ge.get(t))return null;this._element=t,this._elementObj=Qe.getOrCreateInstance(t),Ge.set(t,this._elementObj),this._bindEvents(),this._toggleClonedElement(this._element.classList.contains("is-sticky"))}static getOrCreateInstance(t){return Ge.get(t)||new this(t)}_bindEvents(){this._element.addEventListener("on.bs.sticky",(()=>this._toggleClonedElement(!0))),this._element.addEventListener("off.bs.sticky",(()=>this._toggleClonedElement(!1)))}_toggleClonedElement(t=!0){if(!k(st.findOne(".custom-navbar-toggler",this._element))){const e=st.findOne(".menu-wrapper",this._element);if(t){const t=st.findOne(".it-brand-wrapper",this._element),i=st.findOne(".it-search-wrapper",this._element),s=st.findOne(".it-user-wrapper",this._element),n=t?t.cloneNode(!0):null,o=i?i.cloneNode(!0):null,r=s?s.cloneNode(!0):null;n&&e.insertBefore(n,e.childNodes[0]).classList.add(Ye),o&&e.appendChild(o).classList.add(Ye),r&&(e.appendChild(r).classList.add(Ye),e.appendChild(r).classList.remove("show"))}else st.find(Ke,this._element).forEach((t=>{t.parentElement.removeChild(t)}))}}}xe((()=>{st.find(".it-header-sticky").map((t=>{Xe.getOrCreateInstance(t)}))}));var Ze=Object.defineProperty,Je=(t,e,i)=>(((t,e,i)=>{e in t?Ze(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i})(t,"symbol"!=typeof e?e+"":e,i),i);const ti=/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,ei=/^[0-9]+$/,ii=/^(?=.*[A-Za-z])(?=.*\d).{8,}$/,si=/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/;var ni=(t=>(t.Required="required",t.Email="email",t.MinLength="minLength",t.MaxLength="maxLength",t.Password="password",t.Number="number",t.MaxNumber="maxNumber",t.MinNumber="minNumber",t.StrongPassword="strongPassword",t.CustomRegexp="customRegexp",t.MinFilesCount="minFilesCount",t.MaxFilesCount="maxFilesCount",t.Files="files",t))(ni||{}),oi=(t=>(t.Required="required",t))(oi||{}),ri=(t=>(t.Label="label",t.LabelArrow="labelArrow",t))(ri||{});const ai=[{key:ni.Required,dict:{en:"The field is required"}},{key:ni.Email,dict:{en:"Email has invalid format"}},{key:ni.MaxLength,dict:{en:"The field must contain a maximum of :value characters"}},{key:ni.MinLength,dict:{en:"The field must contain a minimum of :value characters"}},{key:ni.Password,dict:{en:"Password must contain minimum eight characters, at least one letter and one number"}},{key:ni.StrongPassword,dict:{en:"Password should contain minimum eight characters, at least one uppercase letter, one lowercase letter, one number and one special character"}},{key:ni.Number,dict:{en:"Value should be a number"}},{key:ni.MaxNumber,dict:{en:"Number should be less or equal than :value"}},{key:ni.MinNumber,dict:{en:"Number should be more or equal than :value"}},{key:ni.MinFilesCount,dict:{en:"Files count should be more or equal than :value"}},{key:ni.MaxFilesCount,dict:{en:"Files count should be less or equal than :value"}},{key:ni.Files,dict:{en:"Uploaded files have one or several invalid properties (extension/size/type etc)."}}],li=t=>"object"==typeof t&&null!==t&&"then"in t&&"function"==typeof t.then,ci=t=>Array.isArray(t)?t.filter((t=>t.length>0)):"string"==typeof t&&t.trim()?[...t.split(" ").filter((t=>t.length>0))]:[],hi=t=>t instanceof Element||t instanceof HTMLDocument,ui={errorFieldStyle:{color:"#b81111",border:"1px solid #B81111"},errorFieldCssClass:"just-validate-error-field",successFieldCssClass:"just-validate-success-field",errorLabelStyle:{color:"#b81111"},errorLabelCssClass:"just-validate-error-label",successLabelCssClass:"just-validate-success-label",focusInvalidField:!0,lockForm:!0,testingMode:!1,validateBeforeSubmitting:!1};class di{constructor(t,e,i){Je(this,"form",null),Je(this,"fields",{}),Je(this,"groupFields",{}),Je(this,"errors",{}),Je(this,"isValid",!1),Je(this,"isSubmitted",!1),Je(this,"globalConfig",ui),Je(this,"errorLabels",{}),Je(this,"successLabels",{}),Je(this,"eventListeners",[]),Je(this,"dictLocale",ai),Je(this,"currentLocale","en"),Je(this,"customStyleTags",{}),Je(this,"onSuccessCallback"),Je(this,"onFailCallback"),Je(this,"tooltips",[]),Je(this,"lastScrollPosition"),Je(this,"isScrollTick"),Je(this,"fieldIds",new Map),Je(this,"getKeyByFieldSelector",(t=>this.fieldIds.get(t))),Je(this,"getFieldSelectorByKey",(t=>{for(const[e,i]of this.fieldIds)if(t===i)return e})),Je(this,"setKeyByFieldSelector",(t=>{if(this.fieldIds.has(t))return this.fieldIds.get(t);const e=String(this.fieldIds.size+1);return this.fieldIds.set(t,e),e})),Je(this,"refreshAllTooltips",(()=>{this.tooltips.forEach((t=>{t.refresh()}))})),Je(this,"handleDocumentScroll",(()=>{this.lastScrollPosition=window.scrollY,this.isScrollTick||(window.requestAnimationFrame((()=>{this.refreshAllTooltips(),this.isScrollTick=!1})),this.isScrollTick=!0)})),Je(this,"formSubmitHandler",(t=>{t.preventDefault(),this.isSubmitted=!0,this.validateHandler(t)})),Je(this,"handleFieldChange",(t=>{let e;for(const i in this.fields){if(this.fields[i].elem===t){e=i;break}}e&&this.validateField(e,!0)})),Je(this,"handleGroupChange",(t=>{let e,i;for(const s in this.groupFields){const n=this.groupFields[s];if(n.elems.find((e=>e===t))){e=n,i=s;break}}e&&i&&this.validateGroup(i,e)})),Je(this,"handlerChange",(t=>{t.target&&(this.handleFieldChange(t.target),this.handleGroupChange(t.target),this.renderErrors())})),this.initialize(t,e,i)}initialize(t,e,i){if(this.form=null,this.errors={},this.isValid=!1,this.isSubmitted=!1,this.globalConfig=ui,this.errorLabels={},this.successLabels={},this.eventListeners=[],this.customStyleTags={},this.tooltips=[],this.currentLocale="en","string"==typeof t){const e=document.querySelector(t);if(!e)throw Error(`Form with ${t} selector not found! Please check the form selector`);this.setForm(e)}else{if(!(t instanceof HTMLFormElement))throw Error("Form selector is not valid. Please specify a string selector or a DOM element.");this.setForm(t)}if(this.globalConfig={...ui,...e},i&&(this.dictLocale=[...i,...ai]),this.isTooltip()){const t=document.createElement("style");t.textContent=".just-validate-error-label[data-tooltip=true]{position:fixed;padding:4px 8px;background:#423f3f;color:#fff;white-space:nowrap;z-index:10;border-radius:4px;transform:translateY(-5px)}.just-validate-error-label[data-tooltip=true]:before{content:'';width:0;height:0;border-left:solid 5px transparent;border-right:solid 5px transparent;border-bottom:solid 5px #423f3f;position:absolute;z-index:3;display:block;bottom:-5px;transform:rotate(180deg);left:calc(50% - 5px)}.just-validate-error-label[data-tooltip=true][data-direction=left]{transform:translateX(-5px)}.just-validate-error-label[data-tooltip=true][data-direction=left]:before{right:-7px;bottom:auto;left:auto;top:calc(50% - 2px);transform:rotate(90deg)}.just-validate-error-label[data-tooltip=true][data-direction=right]{transform:translateX(5px)}.just-validate-error-label[data-tooltip=true][data-direction=right]:before{right:auto;bottom:auto;left:-7px;top:calc(50% - 2px);transform:rotate(-90deg)}.just-validate-error-label[data-tooltip=true][data-direction=bottom]{transform:translateY(5px)}.just-validate-error-label[data-tooltip=true][data-direction=bottom]:before{right:auto;bottom:auto;left:calc(50% - 5px);top:-5px;transform:rotate(0)}",this.customStyleTags[ri.Label]=document.head.appendChild(t),this.addListener("scroll",document,this.handleDocumentScroll)}}getLocalisedString(t,e,i){var s;const n=null!=i?i:t;let o=null==(s=this.dictLocale.find((t=>t.key===n)))?void 0:s.dict[this.currentLocale];if(o||i&&(o=i),o&&void 0!==e)switch(t){case ni.MaxLength:case ni.MinLength:case ni.MaxNumber:case ni.MinNumber:case ni.MinFilesCount:case ni.MaxFilesCount:o=o.replace(":value",String(e))}return o||i||"Value is incorrect"}getFieldErrorMessage(t,e){const i="function"==typeof t.errorMessage?t.errorMessage(this.getElemValue(e),this.fields):t.errorMessage;return this.getLocalisedString(t.rule,t.value,i)}getFieldSuccessMessage(t,e){const i="function"==typeof t?t(this.getElemValue(e),this.fields):t;return this.getLocalisedString(void 0,void 0,i)}getGroupErrorMessage(t){return this.getLocalisedString(t.rule,void 0,t.errorMessage)}getGroupSuccessMessage(t){if(t.successMessage)return this.getLocalisedString(void 0,void 0,t.successMessage)}setFieldInvalid(t,e){this.fields[t].isValid=!1,this.fields[t].errorMessage=this.getFieldErrorMessage(e,this.fields[t].elem)}setFieldValid(t,e){this.fields[t].isValid=!0,void 0!==e&&(this.fields[t].successMessage=this.getFieldSuccessMessage(e,this.fields[t].elem))}setGroupInvalid(t,e){this.groupFields[t].isValid=!1,this.groupFields[t].errorMessage=this.getGroupErrorMessage(e)}setGroupValid(t,e){this.groupFields[t].isValid=!0,this.groupFields[t].successMessage=this.getGroupSuccessMessage(e)}getElemValue(t){switch(t.type){case"checkbox":return t.checked;case"file":return t.files;default:return t.value}}validateGroupRule(t,e,i){if(i.rule===oi.Required)e.every((t=>!t.checked))?this.setGroupInvalid(t,i):this.setGroupValid(t,i)}validateFieldRule(t,e,i,s=!1){const n=i.value,o=this.getElemValue(e);if(i.plugin){i.plugin(o,this.fields)||this.setFieldInvalid(t,i)}else{switch(i.rule){case ni.Required:(t=>{let e=t;return"string"==typeof t&&(e=t.trim()),!e})(o)&&this.setFieldInvalid(t,i);break;case ni.Email:if("string"!=typeof o){this.setFieldInvalid(t,i);break}r=o,ti.test(r)||this.setFieldInvalid(t,i);break;case ni.MaxLength:if(void 0===n){console.error(`Value for ${i.rule} rule for [${t}] field is not defined. The field will be always invalid.`),this.setFieldInvalid(t,i);break}if("number"!=typeof n){console.error(`Value for ${i.rule} rule for [${t}] should be a number. The field will be always invalid.`),this.setFieldInvalid(t,i);break}if("string"!=typeof o){this.setFieldInvalid(t,i);break}if(""===o)break;((t,e)=>t.length>e)(o,n)&&this.setFieldInvalid(t,i);break;case ni.MinLength:if(void 0===n){console.error(`Value for ${i.rule} rule for [${t}] field is not defined. The field will be always invalid.`),this.setFieldInvalid(t,i);break}if("number"!=typeof n){console.error(`Value for ${i.rule} rule for [${t}] should be a number. The field will be always invalid.`),this.setFieldInvalid(t,i);break}if("string"!=typeof o){this.setFieldInvalid(t,i);break}if(""===o)break;((t,e)=>t.length<e)(o,n)&&this.setFieldInvalid(t,i);break;case ni.Password:if("string"!=typeof o){this.setFieldInvalid(t,i);break}if(""===o)break;(t=>ii.test(t))(o)||this.setFieldInvalid(t,i);break;case ni.StrongPassword:if("string"!=typeof o){this.setFieldInvalid(t,i);break}if(""===o)break;(t=>si.test(t))(o)||this.setFieldInvalid(t,i);break;case ni.Number:if("string"!=typeof o){this.setFieldInvalid(t,i);break}if(""===o)break;(t=>ei.test(t))(o)||this.setFieldInvalid(t,i);break;case ni.MaxNumber:{if(void 0===n){console.error(`Value for ${i.rule} rule for [${t}] field is not defined. The field will be always invalid.`),this.setFieldInvalid(t,i);break}if("number"!=typeof n){console.error(`Value for ${i.rule} rule for [${t}] field should be a number. The field will be always invalid.`),this.setFieldInvalid(t,i);break}if("string"!=typeof o){this.setFieldInvalid(t,i);break}if(""===o)break;const e=+o;(Number.isNaN(e)||((t,e)=>t>e)(e,n))&&this.setFieldInvalid(t,i);break}case ni.MinNumber:{if(void 0===n){console.error(`Value for ${i.rule} rule for [${t}] field is not defined. The field will be always invalid.`),this.setFieldInvalid(t,i);break}if("number"!=typeof n){console.error(`Value for ${i.rule} rule for [${t}] field should be a number. The field will be always invalid.`),this.setFieldInvalid(t,i);break}if("string"!=typeof o){this.setFieldInvalid(t,i);break}if(""===o)break;const e=+o;(Number.isNaN(e)||((t,e)=>t<e)(e,n))&&this.setFieldInvalid(t,i);break}case ni.CustomRegexp:{if(void 0===n)return console.error(`Value for ${i.rule} rule for [${t}] field is not defined. This field will be always invalid.`),void this.setFieldInvalid(t,i);let e;try{e=new RegExp(n)}catch(e){console.error(`Value for ${i.rule} rule for [${t}] should be a valid regexp. This field will be always invalid.`),this.setFieldInvalid(t,i);break}const s=String(o);""===s||e.test(s)||this.setFieldInvalid(t,i);break}case ni.MinFilesCount:if(void 0===n){console.error(`Value for ${i.rule} rule for [${t}] field is not defined. This field will be always invalid.`),this.setFieldInvalid(t,i);break}if("number"!=typeof n){console.error(`Value for ${i.rule} rule for [${t}] field should be a number. The field will be always invalid.`),this.setFieldInvalid(t,i);break}if(Number.isFinite(null==o?void 0:o.length)&&o.length<n){this.setFieldInvalid(t,i);break}break;case ni.MaxFilesCount:if(void 0===n){console.error(`Value for ${i.rule} rule for [${t}] field is not defined. This field will be always invalid.`),this.setFieldInvalid(t,i);break}if("number"!=typeof n){console.error(`Value for ${i.rule} rule for [${t}] field should be a number. The field will be always invalid.`),this.setFieldInvalid(t,i);break}if(Number.isFinite(null==o?void 0:o.length)&&o.length>n){this.setFieldInvalid(t,i);break}break;case ni.Files:{if(void 0===n)return console.error(`Value for ${i.rule} rule for [${t}] field is not defined. This field will be always invalid.`),void this.setFieldInvalid(t,i);if("object"!=typeof n)return console.error(`Value for ${i.rule} rule for [${t}] field should be an object. This field will be always invalid.`),void this.setFieldInvalid(t,i);const e=n.files;if("object"!=typeof e)return console.error(`Value for ${i.rule} rule for [${t}] field should be an object with files array. This field will be always invalid.`),void this.setFieldInvalid(t,i);const s=(t,e)=>{const i=Number.isFinite(e.minSize)&&t.size<e.minSize,s=Number.isFinite(e.maxSize)&&t.size>e.maxSize,n=Array.isArray(e.names)&&!e.names.includes(t.name),o=Array.isArray(e.extensions)&&!e.extensions.includes(t.name.split(".")[t.name.split(".").length-1]),r=Array.isArray(e.types)&&!e.types.includes(t.type);return i||s||n||o||r};if("object"==typeof o&&null!==o)for(let n=0,r=o.length;n<r;++n){const r=o.item(n);if(!r){this.setFieldInvalid(t,i);break}if(s(r,e)){this.setFieldInvalid(t,i);break}}break}default:{if("function"!=typeof i.validator)return console.error(`Validator for custom rule for [${t}] field should be a function. This field will be always invalid.`),void this.setFieldInvalid(t,i);const e=i.validator(o,this.fields);if("boolean"!=typeof e&&"function"!=typeof e&&console.error(`Validator return value for [${t}] field should be boolean or function. It will be cast to boolean.`),"function"==typeof e){if(!s){this.fields[t].asyncCheckPending=!1;const s=e();return li(s)?s.then((e=>{e||this.setFieldInvalid(t,i)})).catch((()=>{this.setFieldInvalid(t,i)})):(console.error(`Validator function for custom rule for [${t}] field should return a Promise. This field will be always invalid.`),void this.setFieldInvalid(t,i))}this.fields[t].asyncCheckPending=!0}e||this.setFieldInvalid(t,i)}}var r}}validateField(t,e=!1){var i;const s=this.fields[t];s.isValid=!0;const n=[];return[...s.rules].reverse().forEach((i=>{const o=this.validateFieldRule(t,s.elem,i,e);li(o)&&n.push(o)})),s.isValid&&this.setFieldValid(t,null==(i=s.config)?void 0:i.successMessage),Promise.allSettled(n)}revalidateField(t){if("string"!=typeof t&&!hi(t))throw Error("Field selector is not valid. Please specify a string selector or a valid DOM element.");const e=this.getKeyByFieldSelector(t);return e&&this.fields[e]?new Promise((t=>{this.validateField(e,!0).finally((()=>{this.clearFieldStyle(e),this.clearFieldLabel(e),this.renderFieldError(e),t(!!this.fields[e].isValid)}))})):(console.error("Field not found. Check the field selector."),Promise.reject())}validateGroup(t,e){const i=[];return[...e.rules].reverse().forEach((s=>{const n=this.validateGroupRule(t,e.elems,s);li(n)&&i.push(n)})),Promise.allSettled(i)}focusInvalidField(){for(const t in this.fields){const e=this.fields[t];if(!e.isValid){setTimeout((()=>e.elem.focus()),0);break}}}afterSubmitValidation(t=!1){this.renderErrors(t),this.globalConfig.focusInvalidField&&this.focusInvalidField()}validate(t=!1){return new Promise((e=>{const i=[];Object.keys(this.fields).forEach((t=>{const e=this.validateField(t);li(e)&&i.push(e)})),Object.keys(this.groupFields).forEach((t=>{const e=this.groupFields[t],s=this.validateGroup(t,e);li(s)&&i.push(s)})),i.length?Promise.allSettled(i).then((()=>{this.afterSubmitValidation(t),e(!0)})):(this.afterSubmitValidation(t),e(!1))}))}revalidate(){return new Promise((t=>{this.validateHandler(void 0,!0).finally((()=>{this.globalConfig.focusInvalidField&&this.focusInvalidField(),t(this.isValid)}))}))}validateHandler(t,e=!1){return this.globalConfig.lockForm&&this.lockForm(),this.validate(e).finally((()=>{var e,i;this.globalConfig.lockForm&&this.unlockForm(),this.isValid?null==(e=this.onSuccessCallback)||e.call(this,t):null==(i=this.onFailCallback)||i.call(this,this.fields,this.groupFields)}))}setForm(t){this.form=t,this.form.setAttribute("novalidate","novalidate"),this.removeListener("submit",this.form,this.formSubmitHandler),this.addListener("submit",this.form,this.formSubmitHandler)}addListener(t,e,i){e.addEventListener(t,i),this.eventListeners.push({type:t,elem:e,func:i})}removeListener(t,e,i){e.removeEventListener(t,i),this.eventListeners=this.eventListeners.filter((i=>i.type!==t||i.elem!==e))}addField(t,e,i){if("string"!=typeof t&&!hi(t))throw Error("Field selector is not valid. Please specify a string selector or a valid DOM element.");let s;if(s="string"==typeof t?this.form.querySelector(t):t,!s)throw Error("Field doesn't exist in the DOM! Please check the field selector.");if(!Array.isArray(e)||!e.length)throw Error("Rules argument should be an array and should contain at least 1 element.");e.forEach((t=>{if(!("rule"in t||"validator"in t||"plugin"in t))throw Error("Rules argument must contain at least one rule or validator property.");if(!(t.validator||t.plugin||t.rule&&Object.values(ni).includes(t.rule)))throw Error(`Rule should be one of these types: ${Object.values(ni).join(", ")}. Provided value: ${t.rule}`)}));const n=this.setKeyByFieldSelector(t);return this.fields[n]={elem:s,rules:e,isValid:void 0,config:i},this.setListeners(s),this.isSubmitted&&this.validate(),this}removeField(t){if("string"!=typeof t&&!hi(t))throw Error("Field selector is not valid. Please specify a string selector or a valid DOM element.");const e=this.getKeyByFieldSelector(t);if(!e||!this.fields[e])return console.error("Field not found. Check the field selector."),this;const i=this.getListenerType(this.fields[e].elem.type);return this.removeListener(i,this.fields[e].elem,this.handlerChange),this.clearErrors(),delete this.fields[e],this}removeGroup(t){if("string"!=typeof t)throw Error("Group selector is not valid. Please specify a string selector.");const e=this.getKeyByFieldSelector(t);return e&&this.groupFields[e]?(this.groupFields[e].elems.forEach((t=>{const e=this.getListenerType(t.type);this.removeListener(e,t,this.handlerChange)})),this.clearErrors(),delete this.groupFields[e],this):(console.error("Group not found. Check the group selector."),this)}addRequiredGroup(t,e,i,s){if("string"!=typeof t)throw Error("Group selector is not valid. Please specify a string selector.");const n=this.form.querySelector(t);if(!n)throw Error(`Group with ${t} selector not found! Please check the group selector.`);const o=n.querySelectorAll("input"),r=Array.from(o).filter((t=>{const e=((t,e)=>{const i=[...e].reverse();for(let e=0,s=i.length;e<s;++e){const s=i[e];for(const e in t){const i=t[e];if(i.groupElem===s)return[e,i]}}return null})(this.groupFields,(t=>{let e=t;const i=[];for(;e;)i.unshift(e),e=e.parentNode;return i})(t));return!e||e[1].elems.find((e=>e!==t))})),a=this.setKeyByFieldSelector(t);return this.groupFields[a]={rules:[{rule:oi.Required,errorMessage:e,successMessage:s}],groupElem:n,elems:r,isDirty:!1,isValid:void 0,config:i},o.forEach((t=>{this.setListeners(t)})),this}getListenerType(t){switch(t){case"checkbox":case"select-one":case"file":case"radio":return"change";default:return"input"}}setListeners(t){const e=this.getListenerType(t.type);this.removeListener(e,t,this.handlerChange),this.addListener(e,t,this.handlerChange)}clearFieldLabel(t){var e,i;null==(e=this.errorLabels[t])||e.remove(),null==(i=this.successLabels[t])||i.remove()}clearFieldStyle(t){var e,i,s,n;const o=this.fields[t],r=(null==(e=o.config)?void 0:e.errorFieldStyle)||this.globalConfig.errorFieldStyle;Object.keys(r).forEach((t=>{o.elem.style[t]=""}));const a=(null==(i=o.config)?void 0:i.successFieldStyle)||this.globalConfig.successFieldStyle||{};Object.keys(a).forEach((t=>{o.elem.style[t]=""})),o.elem.classList.remove(...ci((null==(s=o.config)?void 0:s.errorFieldCssClass)||this.globalConfig.errorFieldCssClass),...ci((null==(n=o.config)?void 0:n.successFieldCssClass)||this.globalConfig.successFieldCssClass))}clearErrors(){var t,e;Object.keys(this.errorLabels).forEach((t=>this.errorLabels[t].remove())),Object.keys(this.successLabels).forEach((t=>this.successLabels[t].remove()));for(const t in this.fields)this.clearFieldStyle(t);for(const i in this.groupFields){const s=this.groupFields[i],n=(null==(t=s.config)?void 0:t.errorFieldStyle)||this.globalConfig.errorFieldStyle;Object.keys(n).forEach((t=>{s.elems.forEach((e=>{var i;e.style[t]="",e.classList.remove(...ci((null==(i=s.config)?void 0:i.errorFieldCssClass)||this.globalConfig.errorFieldCssClass))}))}));const o=(null==(e=s.config)?void 0:e.successFieldStyle)||this.globalConfig.successFieldStyle||{};Object.keys(o).forEach((t=>{s.elems.forEach((e=>{var i;e.style[t]="",e.classList.remove(...ci((null==(i=s.config)?void 0:i.successFieldCssClass)||this.globalConfig.successFieldCssClass))}))}))}this.tooltips=[]}isTooltip(){return!!this.globalConfig.tooltip}lockForm(){const t=this.form.querySelectorAll("input, textarea, button, select");for(let e=0,i=t.length;e<i;++e)t[e].setAttribute("data-just-validate-fallback-disabled",t[e].disabled?"true":"false"),t[e].setAttribute("disabled","disabled"),t[e].style.pointerEvents="none",t[e].style.webkitFilter="grayscale(100%)",t[e].style.filter="grayscale(100%)"}unlockForm(){const t=this.form.querySelectorAll("input, textarea, button, select");for(let e=0,i=t.length;e<i;++e)"true"!==t[e].getAttribute("data-just-validate-fallback-disabled")&&t[e].removeAttribute("disabled"),t[e].style.pointerEvents="",t[e].style.webkitFilter="",t[e].style.filter=""}renderTooltip(t,e,i){var s;const{top:n,left:o,width:r,height:a}=t.getBoundingClientRect(),l=e.getBoundingClientRect(),c=i||(null==(s=this.globalConfig.tooltip)?void 0:s.position);switch(c){case"left":e.style.top=n+a/2-l.height/2+"px",e.style.left=o-l.width-5+"px";break;case"top":e.style.top=n-l.height-5+"px",e.style.left=o+r/2-l.width/2+"px";break;case"right":e.style.top=n+a/2-l.height/2+"px",e.style.left=`${o+r+5}px`;break;case"bottom":e.style.top=`${n+a+5}px`,e.style.left=o+r/2-l.width/2+"px"}e.dataset.direction=c;return{refresh:()=>{this.renderTooltip(t,e,i)}}}createErrorLabelElem(t,e,i){const s=document.createElement("div");s.innerHTML=e;const n=this.isTooltip()?null==i?void 0:i.errorLabelStyle:(null==i?void 0:i.errorLabelStyle)||this.globalConfig.errorLabelStyle;return Object.assign(s.style,n),s.classList.add(...ci((null==i?void 0:i.errorLabelCssClass)||this.globalConfig.errorLabelCssClass),"just-validate-error-label"),this.isTooltip()&&(s.dataset.tooltip="true"),this.globalConfig.testingMode&&(s.dataset.testId=`error-label-${t}`),this.errorLabels[t]=s,s}createSuccessLabelElem(t,e,i){if(void 0===e)return null;const s=document.createElement("div");s.innerHTML=e;const n=(null==i?void 0:i.successLabelStyle)||this.globalConfig.successLabelStyle;return Object.assign(s.style,n),s.classList.add(...ci((null==i?void 0:i.successLabelCssClass)||this.globalConfig.successLabelCssClass),"just-validate-success-label"),this.globalConfig.testingMode&&(s.dataset.testId=`success-label-${t}`),this.successLabels[t]=s,s}renderErrorsContainer(t,e){const i=e||this.globalConfig.errorsContainer;if("string"==typeof i){const e=this.form.querySelector(i);if(e)return e.appendChild(t),!0;console.error(`Error container with ${i} selector not found. Errors will be rendered as usual`)}return i instanceof Element?(i.appendChild(t),!0):(void 0!==i&&console.error("Error container not found. It should be a string or existing Element. Errors will be rendered as usual"),!1)}renderGroupLabel(t,e,i,s){if(!s){if(this.renderErrorsContainer(e,i))return}t.appendChild(e)}renderFieldLabel(t,e,i,s){var n,o,r,a,l,c,h;if(!s){if(this.renderErrorsContainer(e,i))return}if("checkbox"===t.type||"radio"===t.type){const i=document.querySelector(`label[for="${t.getAttribute("id")}"]`);"label"===(null==(o=null==(n=t.parentElement)?void 0:n.tagName)?void 0:o.toLowerCase())?null==(a=null==(r=t.parentElement)?void 0:r.parentElement)||a.appendChild(e):i?null==(l=i.parentElement)||l.appendChild(e):null==(c=t.parentElement)||c.appendChild(e)}else null==(h=t.parentElement)||h.appendChild(e)}showLabels(t,e){Object.keys(t).forEach(((i,s)=>{const n=t[i],o=this.getKeyByFieldSelector(i);if(!o||!this.fields[o])return void console.error("Field not found. Check the field selector.");const r=this.fields[o];r.isValid=!e,this.clearFieldStyle(o),this.clearFieldLabel(o),this.renderFieldError(o,n),0===s&&this.globalConfig.focusInvalidField&&setTimeout((()=>r.elem.focus()),0)}))}showErrors(t){if("object"!=typeof t)throw Error("[showErrors]: Errors should be an object with key: value format");this.showLabels(t,!0)}showSuccessLabels(t){if("object"!=typeof t)throw Error("[showSuccessLabels]: Labels should be an object with key: value format");this.showLabels(t,!1)}renderFieldError(t,e){var i,s,n,o,r,a;const l=this.fields[t];if(void 0===l.isValid)return;if(l.isValid){if(!l.asyncCheckPending){const n=this.createSuccessLabelElem(t,void 0!==e?e:l.successMessage,l.config);n&&this.renderFieldLabel(l.elem,n,null==(i=l.config)?void 0:i.errorsContainer,!0),l.elem.classList.add(...ci((null==(s=l.config)?void 0:s.successFieldCssClass)||this.globalConfig.successFieldCssClass))}return}this.isValid=!1,l.elem.classList.add(...ci((null==(n=l.config)?void 0:n.errorFieldCssClass)||this.globalConfig.errorFieldCssClass));const c=this.createErrorLabelElem(t,void 0!==e?e:l.errorMessage,l.config);this.renderFieldLabel(l.elem,c,null==(o=l.config)?void 0:o.errorsContainer),this.isTooltip()&&this.tooltips.push(this.renderTooltip(l.elem,c,null==(a=null==(r=l.config)?void 0:r.tooltip)?void 0:a.position))}renderGroupError(t){var e,i,s,n;const o=this.groupFields[t];if(void 0===o.isValid)return;if(o.isValid){o.elems.forEach((t=>{var e,i;Object.assign(t.style,(null==(e=o.config)?void 0:e.successFieldStyle)||this.globalConfig.successFieldStyle),t.classList.add(...ci((null==(i=o.config)?void 0:i.successFieldCssClass)||this.globalConfig.successFieldCssClass))}));const i=this.createSuccessLabelElem(t,o.successMessage,o.config);return void(i&&this.renderGroupLabel(o.groupElem,i,null==(e=o.config)?void 0:e.errorsContainer,!0))}this.isValid=!1,o.elems.forEach((t=>{var e,i;Object.assign(t.style,(null==(e=o.config)?void 0:e.errorFieldStyle)||this.globalConfig.errorFieldStyle),t.classList.add(...ci((null==(i=o.config)?void 0:i.errorFieldCssClass)||this.globalConfig.errorFieldCssClass))}));const r=this.createErrorLabelElem(t,o.errorMessage,o.config);this.renderGroupLabel(o.groupElem,r,null==(i=o.config)?void 0:i.errorsContainer),this.isTooltip()&&this.tooltips.push(this.renderTooltip(o.groupElem,r,null==(n=null==(s=o.config)?void 0:s.tooltip)?void 0:n.position))}renderErrors(t=!1){if(this.isSubmitted||t||this.globalConfig.validateBeforeSubmitting){this.clearErrors(),this.isValid=!0;for(const t in this.groupFields)this.renderGroupError(t);for(const t in this.fields)this.renderFieldError(t)}}destroy(){this.eventListeners.forEach((t=>{this.removeListener(t.type,t.elem,t.func)})),Object.keys(this.customStyleTags).forEach((t=>{this.customStyleTags[t].remove()})),this.clearErrors(),this.globalConfig.lockForm&&this.unlockForm()}refresh(){this.destroy(),this.form?(this.initialize(this.form,this.globalConfig),Object.keys(this.fields).forEach((t=>{const e=this.getFieldSelectorByKey(t);e&&this.addField(e,[...this.fields[t].rules],this.fields[t].config)}))):console.error("Cannot initialize the library! Form is not defined")}setCurrentLocale(t){"string"==typeof t||void 0===t?(this.currentLocale=t,this.isSubmitted&&this.validate()):console.error("Current locale should be a string")}onSuccess(t){return this.onSuccessCallback=t,this}onFail(t){return this.onFailCallback=t,this}}class fi{constructor(t,e,i,s,n){this.targetNode=t,this.classToWatch=e,this.classAddedCallback=i,this.classRemovedCallback=s,this.observer=null,this.lastClassState=t.classList.contains(this.classToWatch),this.ignoreToggle=!!n,this.init()}init(){this.observer=new MutationObserver((t=>this.mutationCallback(t))),this.observe()}observe(){this.observer.observe(this.targetNode,{attributes:!0})}disconnect(){this.observer.disconnect()}mutationCallback(t){for(let e of t)if("attributes"===e.type&&"class"===e.attributeName){let t=e.target.classList.contains(this.classToWatch);(this.ignoreToggle||this.lastClassState!==t)&&(this.lastClassState=t,t?"function"==typeof this.classAddedCallback&&this.classAddedCallback():"function"==typeof this.classRemovedCallback&&this.classRemovedCallback())}}}class pi{constructor(t,e,i,s){this.targetNode=t,this.contentSelector=e,this.contentAddedCallback=i,this.contentRemovedCallback=s,this.observer=null,this.init()}init(){this.observer=new MutationObserver((t=>this.mutationCallback(t))),this.observe()}observe(){this.observer.observe(this.targetNode,{childList:!0,subtree:!0})}disconnect(){this.observer.disconnect()}mutationCallback(t){for(let e of t)"childList"===e.type&&(e.addedNodes.forEach((t=>{this._callbackExec(t)})),e.removedNodes.forEach((t=>{this._callbackExec(t,!0)})))}_callbackExec(t,e){const i=t.matches&&t.matches(this.contentSelector)?[t]:t.querySelectorAll?t.querySelectorAll(this.contentSelector):null,s=e&&"function"==typeof this.contentRemovedCallback?this.contentRemovedCallback:"function"==typeof this.contentAddedCallback?this.contentAddedCallback:null;i&&s&&i.forEach((t=>s(t)))}}const gi={errorFieldCssClass:"is-invalid",errorLabelCssClass:"just-validate-error-label"},mi="justvalidatebi";class _i extends it{constructor(t){super(t),this._label=new dt(t),this._bindEvents()}static get NAME(){return"input"}_bindEvents(){"file"===this._element.getAttribute("type")&&G.on(this._element,"change.bs.input",(()=>{this._handleFileDescription()}))}_handleFileDescription(){const t=[];let e="";Array.from(this._element.files).forEach((e=>{const i=Math.round(parseInt(e.size,10)/1024);t.push(e.name+" ("+i+"kb)")})),this._element.files.length>1&&(e=this._element.files.length+" file da caricare: ");const i=st.findOne('label[for="'+this._element.getAttribute("id")+'"] label.form-file-name',this._element);i&&(i.innerText=e+t.join("; "))}}const bi=["select",'input[data-bs-input][type="password"]',"input.input-password[data-bs-input]",'input[data-bs-autocomplete][type="search"]','input[type="time"]','input[type="radio"]','input[type="checkbox"]'];"undefined"!=typeof document&&document.addEventListener("DOMContentLoaded",(function(){document.querySelectorAll("input, textarea, label").forEach((function(t){(t=>{const e=!!bi.find((e=>t.matches(e))),i=!("number"!==t.getAttribute("type")||!t.parentNode.querySelector('button[class^="input-number-"]'));e||i||_i.getOrCreateInstance(t)})(dt.getInputFromLabel(t)||t)}))}));const vi={autocomplete:[]},yi="autocomplete-list-show",wi="data-bs-autocomplete",Ei="input["+wi+'][type="search"]';class ki extends it{constructor(t,e){super(t),this._config=this._getConfig(e),this._items=[],this._autocompleteElement=null,this._label=new dt(t),this._init(),this._bindEvents()}static get NAME(){return"inputsearchautocomplete"}search(){const t=this._element.value;
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("@popperjs/core"),require("video.js"),require("animejs/lib/anime.es.js"),require("@splidejs/splide"),require("accessible-autocomplete")):"function"==typeof define&&define.amd?define(["@popperjs/core","video.js","animejs/lib/anime.es.js","@splidejs/splide","accessible-autocomplete"],e):(t="undefined"!=typeof globalThis?globalThis:t||self).bootstrap=e(t.Popper,t.videojs,t.anime,t.Splide,t.accessibleAutocomplete)}(this,(function(t,e,i,s,n){"use strict";function o(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t)for(const i in t)if("default"!==i){const s=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(e,i,s.get?s:{enumerable:!0,get:()=>t[i]})}return e.default=t,Object.freeze(e)}const r=o(t);!function(){const t={NODE_ENV:"production"};try{if(process)return process.env=Object.assign({},process.env),void Object.assign(process.env,t)}catch(t){}globalThis.process={env:t}}();const a="data-focus-mouse",l="focus--mouse";class c{constructor(){this._usingMouse=!1,this._bindEvents()}_bindEvents(){if("undefined"==typeof document)return;["keydown","mousedown"].forEach((t=>{document.addEventListener(t,(t=>{this._usingMouse="mousedown"===t.type}))})),document.addEventListener("focusin",(t=>{this._usingMouse&&t.target&&(t.target.classList.add(l),t.target.setAttribute(a,!0))})),document.addEventListener("focusout",(t=>{t.target&&(t.target.classList.remove(l),t.target.setAttribute(a,!1))}))}}new c;const h=()=>{"undefined"==typeof window||window.BOOTSTRAP_ITALIA_VERSION||(new c,window.BOOTSTRAP_ITALIA_VERSION="2.13.0")};h();const u={ck3:{}},d={rememberChoice:(t,e)=>{u.ck3[t]=e,localStorage.setItem("bs-ck3",JSON.stringify(u.ck3))},isChoiceRemembered:t=>(u.ck3=JSON.parse(localStorage.getItem("bs-ck3")||"{}"),u.ck3[t]||!1),clearAllRememberedChoices:()=>{localStorage.removeItem("bs-ck3")}},f=new Map,p={set(t,e,i){f.has(t)||f.set(t,new Map);const s=f.get(t);s.has(e)||0===s.size?s.set(e,i):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(s.keys())[0]}.`)},get:(t,e)=>f.has(t)&&f.get(t).get(e)||null,remove(t,e){if(!f.has(t))return;const i=f.get(t);i.delete(e),0===i.size&&f.delete(t)}},m="transitionend",g=t=>{let e=t.getAttribute("data-bs-target");if(!e||"#"===e){let i=t.getAttribute("href");if(!i||!i.includes("#")&&!i.startsWith("."))return null;i.includes("#")&&!i.startsWith("#")&&(i=`#${i.split("#")[1]}`),e=i&&"#"!==i?i.trim():null}return e},_=t=>{const e=g(t);return e&&document.querySelector(e)?e:null},b=t=>{const e=g(t);return e?document.querySelector(e):null},v=t=>{t.dispatchEvent(new Event(m))},y=t=>!(!t||"object"!=typeof t)&&void 0!==t.nodeType,w=t=>y(t)?t:"string"==typeof t&&t.length>0?document.querySelector(t):null,E=t=>{if(!y(t)||0===t.getClientRects().length)return!1;const e="visible"===getComputedStyle(t).getPropertyValue("visibility"),i=t.closest("details:not([open])");if(!i)return e;if(i!==t){const e=t.closest("summary");if(e&&e.parentNode!==i)return!1;if(null===e)return!1}return e},C=t=>!t||t.nodeType!==Node.ELEMENT_NODE||(!!t.classList.contains("disabled")||(void 0!==t.disabled?t.disabled:t.hasAttribute("disabled")&&"false"!==t.getAttribute("disabled"))),S=t=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?S(t.parentNode):null},k=()=>{},T=t=>{t.offsetHeight},A=()=>"undefined"!=typeof window&&"undefined"!=typeof document&&"rtl"===document.documentElement.dir,L=t=>{"function"==typeof t&&t()},x=(t,e,i=!0)=>{if(!i)return void L(t);const s=(t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:i}=window.getComputedStyle(t);const s=Number.parseFloat(e),n=Number.parseFloat(i);return s||n?(e=e.split(",")[0],i=i.split(",")[0],1e3*(Number.parseFloat(e)+Number.parseFloat(i))):0})(e)+5;let n=!1;const o=({target:i})=>{i===e&&(n=!0,e.removeEventListener(m,o),L(t))};e.addEventListener(m,o),setTimeout((()=>{n||v(e)}),s)},O=(t,e,i,s)=>{const n=t.length;let o=t.indexOf(e);return-1===o?!i&&s?t[n-1]:t[0]:(o+=i?1:-1,s&&(o=(o+n)%n),t[Math.max(0,Math.min(o,n-1))])},I=/[^.]*(?=\..*)\.|.*/,P=/\..*/,M=/::\d+$/,$={};let F=1;const j={mouseenter:"mouseover",mouseleave:"mouseout"},N=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function D(t,e){return e&&`${e}::${F++}`||t.uidEvent||F++}function R(t){const e=D(t);return t.uidEvent=e,$[e]=$[e]||{},$[e]}function B(t,e,i=null){return Object.values(t).find((t=>t.callable===e&&t.delegationSelector===i))}function V(t,e,i){const s="string"==typeof e,n=s?i:e||i;let o=(r=(r=t).replace(P,""),j[r]||r);var r;return N.has(o)||(o=t),[s,n,o]}function z(t,e,i,s,n){if("string"!=typeof e||!t)return;let[o,r,a]=V(e,i,s);if(e in j){const t=t=>function(e){if(!e.relatedTarget||e.relatedTarget!==e.delegateTarget&&!e.delegateTarget.contains(e.relatedTarget))return t.call(this,e)};r=t(r)}const l=R(t),c=l[a]||(l[a]={}),h=B(c,r,o?i:null);if(h)return void(h.oneOff=h.oneOff&&n);const u=D(r,e.replace(I,"")),d=o?function(t,e,i){return function s(n){const o=t.querySelectorAll(e);for(let{target:r}=n;r&&r!==this;r=r.parentNode)for(const a of o)if(a===r)return G(n,{delegateTarget:r}),s.oneOff&&H.off(t,n.type,e,i),i.apply(r,[n])}}(t,i,r):function(t,e){return function i(s){return G(s,{delegateTarget:t}),i.oneOff&&H.off(t,s.type,e),e.apply(t,[s])}}(t,r);d.delegationSelector=o?i:null,d.callable=r,d.oneOff=n,d.uidEvent=u,c[u]=d,t.addEventListener(a,d,o)}function W(t,e,i,s,n){const o=B(e[i],s,n);o&&(t.removeEventListener(i,o,Boolean(n)),delete e[i][o.uidEvent])}function q(t,e,i,s){const n=e[i]||{};for(const o of Object.keys(n))if(o.includes(s)){const s=n[o];W(t,e,i,s.callable,s.delegationSelector)}}const H={on(t,e,i,s){z(t,e,i,s,!1)},one(t,e,i,s){z(t,e,i,s,!0)},off(t,e,i,s){if("string"!=typeof e||!t)return;const[n,o,r]=V(e,i,s),a=r!==e,l=R(t),c=l[r]||{},h=e.startsWith(".");if(void 0===o){if(h)for(const i of Object.keys(l))q(t,l,i,e.slice(1));for(const i of Object.keys(c)){const s=i.replace(M,"");if(!a||e.includes(s)){const e=c[i];W(t,l,r,e.callable,e.delegationSelector)}}}else{if(!Object.keys(c).length)return;W(t,l,r,o,n?i:null)}},trigger(t,e,i){if("string"!=typeof e||!t)return null;let s=new Event(e,{bubbles:!0,cancelable:!0});return s=G(s,i),t.dispatchEvent(s),s}};function G(t,e){for(const[i,s]of Object.entries(e||{}))try{t[i]=s}catch{Object.defineProperty(t,i,{configurable:!0,get:()=>s})}return t}function U(t){if("true"===t)return!0;if("false"===t)return!1;if(t===Number(t).toString())return Number(t);if(""===t||"null"===t)return null;if("string"!=typeof t)return t;try{return JSON.parse(decodeURIComponent(t))}catch{return t}}function Y(t){return t.replace(/[A-Z]/g,(t=>`-${t.toLowerCase()}`))}const X={setDataAttribute(t,e,i){t.setAttribute(`data-bs-${Y(e)}`,i)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${Y(e)}`)},getDataAttributes(t){if(!t)return{};const e={},i=Object.keys(t.dataset).filter((t=>t.startsWith("bs")&&!t.startsWith("bsConfig")));for(const s of i){let i=s.replace(/^bs/,"");i=i.charAt(0).toLowerCase()+i.slice(1,i.length),e[i]=U(t.dataset[s])}return e},getDataAttribute:(t,e)=>U(t.getAttribute(`data-bs-${Y(e)}`))};class K{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(t){return t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t}_mergeConfigObj(t,e){const i=y(e)?X.getDataAttribute(e,"config"):{};return{...this.constructor.Default,..."object"==typeof i?i:{},...y(e)?X.getDataAttributes(e):{},..."object"==typeof t?t:{}}}_typeCheckConfig(t,e=this.constructor.DefaultType){for(const s of Object.keys(e)){const n=e[s],o=t[s],r=y(o)?"element":null==(i=o)?`${i}`:Object.prototype.toString.call(i).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(n).test(r))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${s}" provided type "${r}" but expected type "${n}".`)}var i}}class Q extends K{constructor(t,e){super(),(t=w(t))&&(this._element=t,this._config=this._getConfig(e),p.set(this._element,this.constructor.DATA_KEY,this))}dispose(){p.remove(this._element,this.constructor.DATA_KEY),H.off(this._element,this.constructor.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,e,i=!0){x(t,e,i)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return p.get(w(t),this.DATA_KEY)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,"object"==typeof e?e:null)}static get VERSION(){return"5.2.3"}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(t){return`${t}${this.EVENT_KEY}`}}const Z={find:(t,e=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(e,t)),findOne:(t,e=document.documentElement)=>Element.prototype.querySelector.call(e,t),children:(t,e)=>[].concat(...t.children).filter((t=>t.matches(e))),parents(t,e){const i=[];let s=t.parentNode.closest(e);for(;s;)i.push(s),s=s.parentNode.closest(e);return i},prev(t,e){let i=t.previousElementSibling;for(;i;){if(i.matches(e))return[i];i=i.previousElementSibling}return[]},next(t,e){let i=t.nextElementSibling;for(;i;){if(i.matches(e))return[i];i=i.nextElementSibling}return[]},focusableChildren(t){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map((t=>`${t}:not([tabindex^="-"])`)).join(",");return this.find(e,t).filter((t=>!C(t)&&E(t)))}},J={slideFocus:!0,i18n:{prev:"Slide precedente",next:"Slide successiva",first:"Vai alla prima slide",last:"Vai all’ultima slide",slideX:"Vai alla slide %s",pageX:"Vai a pagina %s",play:"Attiva autoplay",pause:"Pausa autoplay"}},tt={"it-carousel-landscape-abstract-three-cols":{type:"slide",perPage:3,gap:24,padding:{left:0,right:0},arrows:!1,breakpoints:{768:{perPage:1,gap:24,padding:{left:0,right:0},arrows:!1},992:{perPage:2,gap:24,padding:{left:40,right:40},arrows:!1}}},"it-carousel-landscape-abstract-three-cols-arrow-visible":{type:"slide",perPage:3,gap:24,padding:{left:0,right:0},arrows:!0,breakpoints:{768:{perPage:1,gap:24,padding:{left:40,right:40},arrows:!0},992:{perPage:2,gap:24,padding:{left:40,right:40},arrows:!0}}},"it-big-img":{type:"loop",perPage:1,gap:48,padding:{left:320,right:320},arrows:!1,breakpoints:{768:{perPage:1,gap:0,padding:{left:0,right:0},arrows:!1},992:{perPage:1,gap:24,padding:{left:160,right:160},arrows:!1}}},"it-standard-image":{type:"loop",perPage:3,gap:24,padding:{left:48,right:48},arrows:!1,breakpoints:{768:{perPage:1,gap:24,padding:{left:40,right:40},arrows:!1},992:{perPage:2,gap:24,padding:{left:48,right:48},arrows:!1}}},"it-carousel-landscape-abstract":{type:"slide",perPage:1,gap:24,padding:{left:0,right:0},arrows:!1,breakpoints:{768:{perPage:1,gap:24,padding:{left:0,right:0},arrows:!1},992:{perPage:1,gap:24,padding:{left:24,right:24},arrows:!1}}},"it-calendar-wrapper":{type:"slide",perPage:4,gap:0,padding:{left:0,right:0},arrows:!1,breakpoints:{560:{perPage:1,gap:0,padding:{left:24,right:24},arrows:!1},768:{perPage:2,gap:0,padding:{left:0,right:0},arrows:!1},992:{perPage:3,gap:0,padding:{left:0,right:0},arrows:!1}}}};class et extends Q{constructor(t){super(t),this._config=this._getConfig(),this._splide=new s(this._element,this._config),this._init()}dispose(){this._splide.destroy(),super.dispose()}static get NAME(){return"carousel"}_init(){this._splide.mount()}_getConfig(){let t=Object.assign({},J);return Object.keys(tt).forEach((e=>{this._element.classList.contains(e)&&(t=Object.assign({},t,tt[e]))})),t}}"undefined"!=typeof window&&"undefined"!=typeof document&&H.on(window,"load.bs.carousel.data-api",(()=>{Z.find("[data-bs-carousel-splide]").forEach((t=>{et.getOrCreateInstance(t)}))}));const it=".bs.inputlabel",st=`focus${it}`,nt=`blur${it}`,ot=`change${it}`,rt="active";class at{constructor(t){this._element=t,this._init()}static get NAME(){return"inputlabel"}static getInputFromLabel=t=>{if("undefined"!=typeof window&&"undefined"!=typeof document)return document.querySelector("#"+CSS.escape(t.getAttribute("for")))};_init(){const t=this._getLabel();t&&!t.classList.contains(rt)&&(this._labelOut(),this._labelOver()),t&&null===t.getAttribute("it-bs-static")&&this._bindEvents()}_bindEvents(){["date","time"].includes(this._element.getAttribute("type"))||("file"===this._element.getAttribute("type")?H.on(this._element,nt,(()=>{this._labelOut()})):(H.on(this._element,st,(()=>{this._labelOut()})),H.on(this._element,nt,(()=>{this._labelOver()})),H.on(this._element,ot,(()=>{this._labelToggle()}))))}_getLabel(){return Z.findOne('label[for="'+this._element.getAttribute("id")+'"]')}_isEmpty(){return!this._element.value&&!this._element.getAttribute("placeholder")}_labelOut(){const t=this._getLabel();t&&t.classList.add(rt)}_labelOver(){if(this._isEmpty()){const t=this._getLabel();t&&t.classList.remove(rt)}}_labelToggle(){this._isEmpty()?this._labelOver():this._labelOut()}}const lt=".bs.inputnumber",ct=`click${lt}`,ht=`change${lt}`,ut=`click${lt}.data-api`,dt=".input-number",ft='input[data-bs-input][type="number"]',pt='button[class^="input-number-"]';class mt extends Q{constructor(t){super(t),this._wrapperElement=this._element.closest(dt),this._label=new at(t),this._init(),this._bindEvents()}static get NAME(){return"inputnumber"}_init(){this._wrapperElement&&this._inputResize()}_bindEvents(){this._wrapperElement&&(Z.find(pt,this._wrapperElement).forEach((t=>{H.on(t,ct,(e=>{e.preventDefault(),this._incrDecr(t.classList.contains("input-number-sub")),this._label._labelOut()}))})),H.on(this._element,ht,(()=>this._checkLimit())))}_inputResize(){if(this._wrapperElement.classList.contains("input-number-adaptive")){let t=null;t="calc(70px + "+this._element.value.length+"ch)",t&&(this._element.style.width=t)}}_incrDecr(t){var e=0;if(""!==this._element.value&&(e=parseFloat(this._element.value)),!isNaN(e)){let i=parseFloat(this._element.getAttribute("step"));i||(i=1),this._element.value=e+i*(t?-1:1),H.trigger(this._element,ht),H.trigger(this._element,"input")}}_checkLimit(){const t=parseFloat(this._element.value);if(!isNaN(t)){let e=t;const i=parseFloat(this._element.getAttribute("max")),s=parseFloat(this._element.getAttribute("min"));s&&t<s&&(e=s),i&&t>i&&(e=i),this._element.value=e}this._inputResize()}}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("DOMContentLoaded",(function(){document.querySelectorAll(ft+", label").forEach((function(t){const e=at.getInputFromLabel(t)||t;var i;(i=e)&&i.matches(ft)&&i.parentNode.querySelector(pt)&&mt.getOrCreateInstance(i)}))})),H.on(document,ut,pt,(function(){const t=this.closest(dt);if(t){const e=Z.findOne(ft,t);e&&mt.getOrCreateInstance(e)}})));const gt="show";class _t extends Q{constructor(t){super(t),this._isShown=!t.matches("[aria-hidden=true]"),this._isTransitioning=!1}static get NAME(){return"dimmer"}show(){this._isShown||this._isTransitioning||(this._isShown=!0,this._isAnimated()&&(this._isTransitioning=!0),this._showElement())}hide(){if(!this._isShown||this._isTransitioning)return;this._isShown=!1;const t=this._isAnimated();t&&(this._isTransitioning=!0),this._element.classList.remove(gt),this._queueCallback((()=>this._hideElement()),this._element,t)}_isAnimated(){return this._element.classList.contains("fade")}_showElement(){const t=this._isAnimated();this._element.removeAttribute("aria-hidden"),t&&T(this._element),this._element.classList.add(gt);this._queueCallback((()=>{this._isTransitioning=!1}),this._element,t)}_hideElement(){this._element.setAttribute("aria-hidden",!0),this._isTransitioning=!1}}"undefined"!=typeof window&&"undefined"!=typeof document&&H.on(document,"click.bs.dimmer.data-api",'[data-bs-toggle="dimmer"]',(function(){const t=b(this),e=_t.getOrCreateInstance(t);this.checked?e.show():e.hide()}));const bt=(t,e="hide")=>{const i=`click.dismiss${t.EVENT_KEY}`,s=t.NAME;H.on(document,i,`[data-bs-dismiss="${s}"]`,(function(i){if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),C(this))return;const n=b(this)||this.closest(`.${s}`);t.getOrCreateInstance(n)[e]()}))},vt=".bs.notification",yt=`click${vt}.data-api`,wt=`hidden${vt}`,Et=`show${vt}`,Ct={timeout:0},St="show";class kt extends Q{constructor(t,e){super(t),this._config=this._getConfig(e),this._isShown=this._element.classList.contains(St),this._isTransitioning=!1,this._toId=null}static get NAME(){return"notification"}show(t,e){if(this._isShown||this._isTransitioning)return;const i=t||this._getElementTimeout(e);this._isShown=!0,this._isAnimated()&&(this._isTransitioning=!0),this._showElement(i)}hide(){if(!this._isShown||this._isTransitioning)return;this._isShown=!1;const t=this._isAnimated();t&&(this._isTransitioning=!0),this._element.classList.remove(St),this._queueCallback((()=>this._hideElement()),this._element,t)}toggle(t){this._isShown?this.hide():this.show(null,t)}_isAnimated(){return this._element.classList.contains("fade")}_showElement(t){const e=this._isAnimated();this._element.style.display="block",this._element.removeAttribute("aria-hidden"),e&&T(this._element),this._element.classList.add(St);this._queueCallback((()=>{this._isTransitioning=!1,t&&this._setTimeout(t,(()=>this.hide()))}),this._element,e)}_hideElement(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._isTransitioning=!1}_getConfig(t){return t={...Ct,...X.getDataAttributes(this._element),..."object"==typeof t?t:{}}}_getElementTimeout(t){const e=t?parseInt(t.getAttribute("data-bs-timeout")):null;return e>0?e:this._config.timeout}_setTimeout(t,e){this._clearTimeout(),setTimeout(e,t)}_clearTimeout(){this._toId&&(clearTimeout(this._toId),this._toId=null)}}"undefined"!=typeof window&&"undefined"!=typeof document&&(H.on(document,yt,'[data-bs-toggle="notification"]',(function(t){const e=b(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),H.one(e,Et,(t=>{t.defaultPrevented||H.one(e,wt,(()=>{E(this)&&this.focus()}))}));kt.getOrCreateInstance(e).toggle(this)})),bt(kt));const Tt="cookiebar",At=".bs.cookiebar",Lt=".data-api",xt="cookies_consent",Ot=`close${At}`,It=`closed${At}`,Pt=`load${At}${Lt}`,Mt=`click${At}${Lt}`,$t="show";class Ft extends Q{constructor(t){super(t),this._isShown=this._element.classList.contains($t),this._isTransitioning=!1}static get NAME(){return Tt}static get VERSION(){return"5.0.0"}show(){this._isShown||this._isTransitioning||(this._isShown=!0,this._isAnimated()&&(this._isTransitioning=!0),this._showElement())}hide(){if(!this._isShown||this._isTransitioning)return;this._isShown=!1;const t=this._isAnimated();t&&(this._isTransitioning=!0),this._element.classList.remove($t),this._queueCallback((()=>this._hideElement()),this._element,t)}accept(t){t=t||this._element;const e=this._getRootElement(t);this._triggerCloseEvent(e).defaultPrevented||(this._setCookieEU(),this.hide())}static clearCookie(){"undefined"!=typeof document&&(document.cookie=xt+"=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;")}_isAnimated(){return this._element.classList.contains("fade")}_showElement(){const t=this._isAnimated();this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-live","polite"),t&&T(this._element),this._element.classList.add($t);this._queueCallback((()=>{this._isTransitioning=!1}),this._element,t)}_hideElement(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-live"),this._isTransitioning=!1}_setCookieEU(){var t=new Date;t.setDate(t.getDate()+30);var e=escape("true")+"; expires="+t.toUTCString();"undefined"!=typeof document&&(document.cookie=xt+"="+e+"; path=/; SameSite=Strict")}_getRootElement(t){const e=b(t);let i=null;return e&&(i=e),i||(i=t.closest(".cookiebar")),i}_triggerCloseEvent(t){return H.trigger(t,Ot)}_removeElement(t){t.classList.remove($t),t.setAttribute("aria-hidden","true"),t.setAttribute("aria-live","off"),H.trigger(t,It),this.dispose()}static _handleAccept(t){return function(e){e&&e.preventDefault(),t.close(this)}}static _handleConsent(t){return function(e){e&&e.preventDefault(),t.close(this)}}static _getCookieEU(){if("undefined"!=typeof document){var t,e,i,s=document.cookie.split(";");for(t=0;t<s.length;t++)if(e=s[t].substring(0,s[t].indexOf("=")),i=s[t].substring(s[t].indexOf("=")+1),(e=e.replace(/^\s+|\s+$/g,""))==xt)return unescape(i)}}}"undefined"!=typeof window&&"undefined"!=typeof document&&(H.on(document,Mt,'[data-bs-accept="cookiebar"]',(function(t){if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),C(this))return;const e=b(this)||this.closest(`.${Tt}`);Ft.getOrCreateInstance(e).accept()})),H.on(window,Pt,(function(){if(!Ft._getCookieEU()){if("undefined"==typeof document)return;document.querySelectorAll(".cookiebar").forEach((t=>{Ft.getOrCreateInstance(t).show()}))}})));const jt=()=>{if("undefined"!=typeof window)return window.matchMedia("(max-width: 991px)").matches},Nt=(t,e)=>{let i=null;return e.forEach(((e,s)=>{e===t&&(i=s)})),i},Dt=(t,e,i)=>{i={isDirectionTop:!1,isLimit:!1,loop:!1,..."object"==typeof i?i:{}};const s=Nt(t,e);let n=null;if(i.isLimit&&i.isDirectionTop&&s>0)n=e[0];else if(i.isLimit&&s<e.length-1)n=e[e.length-1];else if(i.isDirectionTop){if(!i.loop&&0===s)return;n=e[0===s?e.length-1:s-1]}else{if(!i.loop&&s===e.length-1)return;n=e[s===e.length-1?0:s+1]}n&&n.focus()},Rt="pagescroll-scroll-disabled";let Bt=!1,Vt="undefined"==typeof document?0:document.scrollingElement.scrollTop;const zt="undefined"==typeof document?null:document.querySelector("html");"undefined"!=typeof document&&document.addEventListener("scroll",(()=>{Bt&&(document.scrollingElement.scrollTop=Vt)}));const Wt=".bs.navbarcollapsible",qt=`click${Wt}.data-api`,Ht=`click${Wt}`,Gt=`keyup${Wt}`,Ut=`keydown${Wt}`,Yt=`hide${Wt}`,Xt=`hidden${Wt}`,Kt=`show${Wt}`,Qt=`shown${Wt}`,Zt=`resize${Wt}`,Jt="show",te="expanded",ee=".close-menu",ie=".nav-link",se=".nav-item .list-item",ne=".it-heading-link",oe=".it-footer-link";class re extends Q{constructor(t){super(t),this._isShown=this._element.classList.contains(te),this._isTransitioning=!1,this._isMobile=jt(),this._isKeyShift=!1,this._currItemIdx=0,this._btnClose=Z.findOne(".close-div button",this._element),this._btnBack=Z.findOne(".it-back-button",this._element),this._menuWrapper=Z.findOne(".menu-wrapper",this._element),this._overlay=null,this._setOverlay(),this._menuItems=Z.find([ie,se,ne,oe,ee].join(","),this._element),this._bindEvents()}static get NAME(){return"navbarcollapsible"}show(t){if(this._isShown||this._isTransitioning)return;H.trigger(this._element,Kt,{relatedTarget:t}).defaultPrevented||(this._btnBack&&this._btnBack.classList.add(Jt),this._isShown=!0,"undefined"!=typeof document&&(Bt=!0,Vt=document.scrollingElement.scrollTop,zt.classList.add(Rt)),this._showElement())}hide(){if(!this._isShown||this._isTransitioning)return;if(H.trigger(this._element,Yt).defaultPrevented)return;this._isShown=!1;const t=this._isAnimated();t&&(this._isTransitioning=!0),this._btnBack&&this._btnBack.classList.remove(Jt),this._overlay&&this._overlay.classList.remove(Jt),this._element.classList.remove(te),"undefined"!=typeof document&&(Bt=!1,zt.classList.remove(Rt)),this._queueCallback((()=>this._hideElement()),this._menuWrapper,t)}toggle(t){this._isShown?this.hide():this.show(t)}dispose(){"undefined"!=typeof window&&"undefined"!=typeof document&&(H.off(window,Zt),super.dispose())}_bindEvents(){"undefined"!=typeof window&&"undefined"!=typeof document&&(H.on(window,Zt,(()=>this._onResize())),this._overlay&&H.on(this._overlay,Ht,(()=>this.hide())),H.on(this._btnClose,Ht,(t=>{t.preventDefault(),this.hide()})),H.on(this._btnBack,Ht,(t=>{t.preventDefault(),this.hide()})),this._menuItems.forEach((t=>{H.on(t,Ut,(t=>this._isMobile&&this._onMenuItemKeyDown(t))),H.on(t,Gt,(t=>this._isMobile&&this._onMenuItemKeyUp(t))),H.on(t,Ht,(t=>this._isMobile&&this._onMenuItemClick(t)))})))}_onResize(){this._isMobile=jt()}_onMenuItemKeyUp(t){"Shift"===t.key&&(this._isKeyShift=!1)}_onMenuItemKeyDown(t){"Shift"===t.key&&(this._isKeyShift=!0),"Tab"===t.key&&(t.preventDefault(),this._focusNext())}_onMenuItemClick(t){this.currItemIdx=Nt(t.currentTarget,this._menuItems)}_isAnimated(){return!0}_isElementHidden(t){return null===t.offsetParent}_showElement(){const t=this._isAnimated();this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-expanded",!0),this._overlay&&(this._overlay.style.display="block"),t&&T(this._element),this._element.classList.add(te),this._overlay&&this._overlay.classList.add(Jt);this._queueCallback((()=>{this._isTransitioning=!1;const t=this._getNextVisibleItem(0);t.item&&(t.item.focus(),this._currItemIdx=t.index),H.trigger(this._element,Qt)}),this._menuWrapper,t)}_hideElement(){this._overlay&&(this._overlay.style.display="none"),this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-expanded"),this._isTransitioning=!1,H.trigger(this._element,Xt)}_setOverlay(){this._overlay=Z.findOne(".overlay",this._element),this._isAnimated&&this._overlay.classList.add("fade")}_focusNext(){let t=this._currItemIdx+(this._isKeyShift?-1:1);t<0?t=this._menuItems.length-1:t>=this._menuItems.length&&(t=0);const e=this._getNextVisibleItem(t,this._isKeyShift);e.item&&(e.item.focus(),this._currItemIdx=e.index)}_getNextVisibleItem(t,e){let i=null,s=null,n=t,o=e?-1:1,r=!1;for(;!(i||n==t&&r);)n==t&&(r=!0),this._isElementHidden(this._menuItems[n])||(i=this._menuItems[n],s=n),n+=o,n<0?n=this._menuItems.length-1:n>=this._menuItems.length&&(n=0);return{item:i,index:s}}}"undefined"!=typeof window&&"undefined"!=typeof document&&H.on(document,qt,'[data-bs-toggle="navbarcollapsible"]',(function(t){const e=b(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),H.one(e,Kt,(t=>{t.defaultPrevented||H.one(e,Xt,(()=>{E(this)&&this.focus()}))}));re.getOrCreateInstance(e).toggle(this)}));const ae=".bs.accordion",le=`keydown${ae}`,ce=`keydown${ae}.data-api`,he='.accordion-item > .accordion-header [data-bs-toggle="collapse"]';class ue extends Q{constructor(t){super(t),this._bindEvents()}static get NAME(){return"accordion"}handleKeyDown(t,e,i){const s={ArrowDown:t=>this._focusNext(t),ArrowUp:t=>this._focusPrev(t),Home:t=>this._focusFirst(t),End:t=>this._focusLast(t)};"function"==typeof s[t]&&(i&&i.preventDefault(),s[t](e))}_bindEvents(){Z.find(he,this._element).forEach((t=>{H.on(t,le,(t=>{this.handleKeyDown(t.key,t.currentTarget,t)}))}))}_getHeadButtons(){return Z.find(":scope > "+he,this._element)}_focusNext(t){Dt(t,this._getHeadButtons(),{loop:!0})}_focusPrev(t){Dt(t,this._getHeadButtons(),{isDirectionTop:!0,loop:!0})}_focusFirst(t){Dt(t,this._getHeadButtons(),{isDirectionTop:!0,isLimit:!0})}_focusLast(t){Dt(t,this._getHeadButtons(),{isLimit:!0})}}var de;"undefined"!=typeof window&&"undefined"!=typeof document&&H.on(document,ce,he,(function(t){const e=this.closest(".accordion");if(e){ue.getOrCreateInstance(e).handleKeyDown(t.key,this,t)}}));var fe=new Uint8Array(16);function pe(){if(!de&&!(de="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return de(fe)}const me=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var ge=[],_e=0;_e<256;++_e)ge.push((_e+256).toString(16).substr(1));function be(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=(ge[t[e+0]]+ge[t[e+1]]+ge[t[e+2]]+ge[t[e+3]]+"-"+ge[t[e+4]]+ge[t[e+5]]+"-"+ge[t[e+6]]+ge[t[e+7]]+"-"+ge[t[e+8]]+ge[t[e+9]]+"-"+ge[t[e+10]]+ge[t[e+11]]+ge[t[e+12]]+ge[t[e+13]]+ge[t[e+14]]+ge[t[e+15]]).toLowerCase();if(!function(t){return"string"==typeof t&&me.test(t)}(i))throw TypeError("Stringified UUID is invalid");return i}function ve(t,e,i){var s=(t=t||{}).random||(t.rng||pe)();return s[6]=15&s[6]|64,s[8]=63&s[8]|128,be(s)}let ye=!1,we=[];class Ee{constructor(t,e){this.id=t,this._callback=e}dispose(){Ce(this.id)}_execute(t){this._callback(t)}}const Ce=t=>{we=we.filter((e=>e.id!==t))},Se=t=>{if("undefined"!=typeof document){if(we.length||"undefined"!=typeof window&&"undefined"!=typeof document&&document.addEventListener("scroll",(t=>{ye||(window.requestAnimationFrame((()=>{we.forEach((e=>e.cb._execute(t))),ye=!1})),ye=!0)})),"function"==typeof t){const e=new Ee(ve(),t);return we.push({id:e.id,cb:e}),e}return console.error("[onDocumentScroll] the provided data has to be of type function"),null}},ke={duration:800,easing:"easeInOutSine"},Te=(t,e)=>{if("undefined"==typeof window||"undefined"==typeof document)return;const s=("object"==typeof e?e:{}).complete,n=window.document.scrollingElement||window.document.body||window.document.documentElement,o=n.style.scrollBehavior;e={scrollTop:t||0,...ke,..."object"==typeof e?e:{}},n.style.scrollBehavior="auto",e.complete=t=>{n.style.scrollBehavior=o,"function"==typeof s&&s(t)},i({targets:n,...e})},Ae="active",Le="ul.link-list",xe="a.nav-link",Oe=`${xe}.${Ae}`,Ie=`${xe}[href^="#"]`,Pe={scrollPadding:10,duration:800,easing:"easeInOutSine"};class Me extends Q{constructor(t,e){super(t),this._config=this._getConfig(e),this._togglerElement=Z.findOne(".custom-navbar-toggler",this._element),this._sectionContainer=Z.findOne(".it-page-sections-container"),this._collapsible=this._getCollapsible(),this._isCollapseOpened=!1,this._callbackQueue=[],this._scrollCb=null,this._bindEvents()}static get NAME(){return"navscroll"}setScrollPadding(t){this._config.scrollPadding=t}dispose(){this._scrollCb&&this._scrollCb.dispose(),super.dispose()}_getConfig(t){return t={...Pe,...X.getDataAttributes(this._element),..."object"==typeof t?t:{}}}_bindEvents(){this._scrollCb=Se((()=>this._onScroll())),this._collapsible&&(H.on(this._collapsible._element,"shown.bs.navbarcollapsible",(()=>this._onCollapseOpened())),H.on(this._collapsible._element,"hidden.bs.navbarcollapsible",(()=>this._onCollapseClosed()))),Z.find(Ie,this._element).forEach((t=>{t.addEventListener("click",(()=>{const e=()=>this._scrollToHash(t.hash);this._isCollapseOpened?(this._callbackQueue.push(e),this._collapsible.hide()):e()}))})),"undefined"!=typeof window&&"undefined"!=typeof document&&H.on(window,"load",(()=>{setTimeout((()=>this._onScroll()),150)}))}_onCollapseOpened(){this._isCollapseOpened=!0}_onCollapseClosed(){for(;this._callbackQueue.length>0;){const t=this._callbackQueue.shift();"function"==typeof t&&t()}this._isCollapseOpened=!1}_getParentLinks(t){const e=[];let i=t.closest(Le),s=null,n=!1;for(;i&&!n;){const t=i.closest("li.nav-link, li.nav-item");if(t){const i=t.querySelector(xe);i&&e.push(i)}s=i,i=(i.parentElement||i).closest(Le),i===s&&(n=!0)}return e}_decorateToggler(t){if(this._togglerElement){const e=Z.findOne(".it-list",this._togglerElement);this._togglerElement.innerText="",this._togglerElement.textContent="",this._togglerElement.append(e),this._togglerElement.append(t)}}_scrollToHash(t){const e=Z.findOne(t,this._sectionContainer);e&&(Te(e.offsetTop-this._getScrollPadding(),{duration:this._config.duration,easing:this._config.easing}),history.pushState?history.pushState(null,null,t):location.hash=t)}_updateProgress(t){if(!t)return;const e=Z.find(".it-navscroll-progressbar");if(e){const i=Math.abs(t.getBoundingClientRect().top)/t.getBoundingClientRect().height*100,s=Math.min(100,Math.max(0,i));e.forEach((e=>{t.getBoundingClientRect().top<=0?(e.style.width=s+"%",e.setAttribute("aria-valuenow",s)):(e.style.width="0%",e.setAttribute("aria-valuenow",0))}))}}_onScroll(){const t=this._sectionContainer?this._sectionContainer.offsetTop:0;if("undefined"==typeof document)return;const e=document.scrollingElement.scrollTop-t,i=Z.find(xe,this._element),s=this._getScrollPadding();Z.find(".it-page-section").forEach(((n,o)=>{if(n.offsetTop-t<=e+s&&(Z.find(Oe,this._element).forEach((t=>{t.classList.remove(Ae)})),o<i.length)){const t=i[o];this._getParentLinks(t).forEach((t=>{t.classList.add(Ae)})),t.classList.add(Ae),this._decorateToggler(t.innerText)}})),this._updateProgress(this._sectionContainer)}_getCollapsible(){const t=Z.findOne(".navbar-collapsable",this._element);return t?re.getOrCreateInstance(t):null}_getScrollPadding(){return"function"==typeof this._config.scrollPadding?this._config.scrollPadding():this._config.scrollPadding}}if("undefined"!=typeof window&&"undefined"!=typeof document){Z.find("[data-bs-navscroll]").map((t=>{Me.getOrCreateInstance(t)}))}const $e=".bs.sticky",Fe=`resize${$e}`,je=`on${$e}`,Ne=`off${$e}`,De="bs-is-sticky",Re="bs-is-fixed",Be='[data-bs-toggle="sticky"]',Ve={positionType:"sticky",stickyClassName:"",stackable:!1,paddingTop:0};class ze extends Q{constructor(t,e){super(t),this._config=this._getConfig(e),this._isSticky=!1,this._wrapper=null,this._stickyTarget=Z.findOne(_(this._element),this._element)||this._element,this._stickyTargetMobile=Z.findOne(this._element.getAttribute("data-bs-target-mobile"),this._element)||this._stickyTarget,this._stickyLimit=0,this._stickyLimitMobile=0,this._setLimit(),this._scrollCb=null,this._isMobile=jt(),this._prevTop=0,this._onScroll(),this._bindEvents()}dispose(){"undefined"!=typeof window&&"undefined"!=typeof document&&(H.off(window,Fe),this._scrollCb.dispose(),super.dispose())}static get NAME(){return"sticky"}_getConfig(t){return t={...Ve,...X.getDataAttributes(this._element),..."object"==typeof t?t:{}}}_bindEvents(){"undefined"!=typeof window&&"undefined"!=typeof document&&(H.on(window,Fe,(()=>this._onResize())),this._scrollCb=Se((()=>this._onScroll())))}_onResize(){this._isMobile=jt(),this._setLimit()}_onScroll(){this._checkSticky()}_setLimit(){this._stickyLimit=this._cumulativeOffset(this._stickyTarget).top,this._stickyLimitMobile=this._cumulativeOffset(this._stickyTargetMobile).top}_getLimit(){let t=this._isMobile?this._stickyLimitMobile:this._stickyLimit;return this._config.stackable&&this._getStickySimblings().forEach(((e,i)=>{const s=e.getBoundingClientRect();t-=s.height+(0===i?parseFloat(e.style.top):0)})),t>0?t:0}_cumulativeOffset(t){let e=0,i=0;do{e+=t.offsetTop||0,i+=t.offsetLeft||0,t=t.offsetParent}while(t);return{top:e,left:i}}_isTypeSticky(){return"sticky"===this._config.positionType}_checkSticky(){this._isSticky||this._setLimit();const t=this._getLimit();"undefined"!=typeof window&&window.pageYOffset>t?this._setSticky():this._unsetSticky()}_setSticky(){if(!this._isSticky){this._isSticky=!0;let t=De;this._isTypeSticky()||(t=Re,this._wrapper=this._createWrapper()),this._element.classList.add(t),this._config.stickyClassName&&this._element.classList.add(this._config.stickyClassName),this._prevTop=this._element.style.top,this._element.style.top=this._getPositionTop()+"px",H.trigger(this._element,je)}}_unsetSticky(){if(this._isSticky){let t=De;this._isTypeSticky()||(t=Re,this._destroyWrapper()),this._element.classList.remove(t),this._config.stickyClassName&&this._element.classList.remove(this._config.stickyClassName),this._element.style.top=this._prevTop,this._isSticky=!1,H.trigger(this._element,Ne)}}_createWrapper(){if("undefined"==typeof document)return;const t=document.createElement("div");return t.classList.add("bs-it-sticky-wrapper"),t.style.width="100%",t.style.height=this._element.getBoundingClientRect().height+"px",t.style.overflow="hidden",this._element.parentNode.insertBefore(t,this._element),t.appendChild(this._element),t}_destroyWrapper(){this._wrapper&&(this._wrapper.parentNode.insertBefore(this._element,this._wrapper),this._wrapper.remove())}_getStickySimblings(){return Z.find(Be).filter((t=>{const e=ze.getInstance(t);return!(!e||!e._isSticky||t===this._element)}))}_getPositionTop(){let t=0;return this._config.stackable?(this._getStickySimblings().forEach(((e,i)=>{const s=e.getBoundingClientRect();t+=s.height+(0===i?parseFloat(e.style.top):0)})),t):t+this._config.paddingTop}}"undefined"!=typeof window&&"undefined"!=typeof document&&Se((()=>{Z.find(Be).map((t=>{ze.getOrCreateInstance(t)}))}));const We="cloned-element",qe=`.${We}`,He=new Map;class Ge{constructor(t){if(He.get(t))return null;this._element=t,this._elementObj=ze.getOrCreateInstance(t),He.set(t,this._elementObj),this._bindEvents(),this._toggleClonedElement(this._element.classList.contains("is-sticky"))}static getOrCreateInstance(t){return He.get(t)||new this(t)}_bindEvents(){this._element.addEventListener("on.bs.sticky",(()=>this._toggleClonedElement(!0))),this._element.addEventListener("off.bs.sticky",(()=>this._toggleClonedElement(!1)))}_toggleClonedElement(t=!0){if(!E(Z.findOne(".custom-navbar-toggler",this._element))){const e=Z.findOne(".menu-wrapper",this._element);if(t){const t=Z.findOne(".it-brand-wrapper",this._element),i=Z.findOne(".it-search-wrapper",this._element),s=Z.findOne(".it-user-wrapper",this._element),n=t?t.cloneNode(!0):null,o=i?i.cloneNode(!0):null,r=s?s.cloneNode(!0):null;n&&e.insertBefore(n,e.childNodes[0]).classList.add(We),o&&e.appendChild(o).classList.add(We),r&&(e.appendChild(r).classList.add(We),e.appendChild(r).classList.remove("show"))}else Z.find(qe,this._element).forEach((t=>{t.parentElement.removeChild(t)}))}}}Se((()=>{Z.find(".it-header-sticky").map((t=>{Ge.getOrCreateInstance(t)}))}));var Ue=Object.defineProperty,Ye=(t,e,i)=>(((t,e,i)=>{e in t?Ue(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i})(t,"symbol"!=typeof e?e+"":e,i),i);const Xe=/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,Ke=/^-?[0-9]\d*$/,Qe=/^(?=.*[A-Za-z])(?=.*\d).{8,}$/,Ze=/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/,Je=t=>"string"!=typeof t||""===t;var ti=(t=>(t.Required="required",t.Email="email",t.MinLength="minLength",t.MaxLength="maxLength",t.Password="password",t.Number="number",t.Integer="integer",t.MaxNumber="maxNumber",t.MinNumber="minNumber",t.StrongPassword="strongPassword",t.CustomRegexp="customRegexp",t.MinFilesCount="minFilesCount",t.MaxFilesCount="maxFilesCount",t.Files="files",t))(ti||{}),ei=(t=>(t.Required="required",t))(ei||{}),ii=(t=>(t.Label="label",t.LabelArrow="labelArrow",t))(ii||{});const si=[{key:ti.Required,dict:{en:"The field is required"}},{key:ti.Email,dict:{en:"Email has invalid format"}},{key:ti.MaxLength,dict:{en:"The field must contain a maximum of :value characters"}},{key:ti.MinLength,dict:{en:"The field must contain a minimum of :value characters"}},{key:ti.Password,dict:{en:"Password must contain minimum eight characters, at least one letter and one number"}},{key:ti.StrongPassword,dict:{en:"Password should contain minimum eight characters, at least one uppercase letter, one lowercase letter, one number and one special character"}},{key:ti.Number,dict:{en:"Value should be a number"}},{key:ti.MaxNumber,dict:{en:"Number should be less or equal than :value"}},{key:ti.MinNumber,dict:{en:"Number should be more or equal than :value"}},{key:ti.MinFilesCount,dict:{en:"Files count should be more or equal than :value"}},{key:ti.MaxFilesCount,dict:{en:"Files count should be less or equal than :value"}},{key:ti.Files,dict:{en:"Uploaded files have one or several invalid properties (extension/size/type etc)."}}],ni=t=>"object"==typeof t&&null!==t&&"then"in t&&"function"==typeof t.then,oi=t=>Array.isArray(t)?t.filter((t=>t.length>0)):"string"==typeof t&&t.trim()?[...t.split(" ").filter((t=>t.length>0))]:[],ri=t=>t instanceof Element||t instanceof HTMLDocument,ai={errorFieldStyle:{color:"#b81111",border:"1px solid #B81111"},errorFieldCssClass:"just-validate-error-field",successFieldCssClass:"just-validate-success-field",errorLabelStyle:{color:"#b81111"},errorLabelCssClass:"just-validate-error-label",successLabelCssClass:"just-validate-success-label",focusInvalidField:!0,lockForm:!0,testingMode:!1,validateBeforeSubmitting:!1,submitFormAutomatically:!1};class li{constructor(t,e,i){Ye(this,"form",null),Ye(this,"fields",{}),Ye(this,"groupFields",{}),Ye(this,"errors",{}),Ye(this,"isValid",!1),Ye(this,"isSubmitted",!1),Ye(this,"globalConfig",ai),Ye(this,"errorLabels",{}),Ye(this,"successLabels",{}),Ye(this,"eventListeners",[]),Ye(this,"dictLocale",si),Ye(this,"currentLocale","en"),Ye(this,"customStyleTags",{}),Ye(this,"onSuccessCallback"),Ye(this,"onFailCallback"),Ye(this,"onValidateCallback"),Ye(this,"tooltips",[]),Ye(this,"lastScrollPosition"),Ye(this,"isScrollTick"),Ye(this,"fieldIds",new Map),Ye(this,"getKeyByFieldSelector",(t=>this.fieldIds.get(t))),Ye(this,"getFieldSelectorByKey",(t=>{for(const[e,i]of this.fieldIds)if(t===i)return e})),Ye(this,"getCompatibleFields",(()=>{const t={};return Object.keys(this.fields).forEach((e=>{let i=e;const s=this.getFieldSelectorByKey(e);"string"==typeof s&&(i=s),t[i]={...this.fields[e]}})),t})),Ye(this,"setKeyByFieldSelector",(t=>{if(this.fieldIds.has(t))return this.fieldIds.get(t);const e=String(this.fieldIds.size+1);return this.fieldIds.set(t,e),e})),Ye(this,"refreshAllTooltips",(()=>{this.tooltips.forEach((t=>{t.refresh()}))})),Ye(this,"handleDocumentScroll",(()=>{this.lastScrollPosition=window.scrollY,this.isScrollTick||(window.requestAnimationFrame((()=>{this.refreshAllTooltips(),this.isScrollTick=!1})),this.isScrollTick=!0)})),Ye(this,"formSubmitHandler",(t=>{t.preventDefault(),this.isSubmitted=!0,this.validateHandler(t)})),Ye(this,"handleFieldChange",(t=>{let e;for(const i in this.fields){if(this.fields[i].elem===t){e=i;break}}e&&(this.fields[e].touched=!0,this.validateField(e,!0))})),Ye(this,"handleGroupChange",(t=>{let e;for(const i in this.groupFields){if(this.groupFields[i].elems.find((e=>e===t))){e=i;break}}e&&(this.groupFields[e].touched=!0,this.validateGroup(e,!0))})),Ye(this,"handlerChange",(t=>{t.target&&(this.handleFieldChange(t.target),this.handleGroupChange(t.target),this.renderErrors())})),this.initialize(t,e,i)}initialize(t,e,i){if(this.form=null,this.errors={},this.isValid=!1,this.isSubmitted=!1,this.globalConfig=ai,this.errorLabels={},this.successLabels={},this.eventListeners=[],this.customStyleTags={},this.tooltips=[],this.currentLocale="en","string"==typeof t){const e=document.querySelector(t);if(!e)throw Error(`Form with ${t} selector not found! Please check the form selector`);this.setForm(e)}else{if(!(t instanceof HTMLFormElement))throw Error("Form selector is not valid. Please specify a string selector or a DOM element.");this.setForm(t)}if(this.globalConfig={...ai,...e},i&&(this.dictLocale=[...i,...si]),this.isTooltip()){const t=document.createElement("style");t.textContent=".just-validate-error-label[data-tooltip=true]{position:fixed;padding:4px 8px;background:#423f3f;color:#fff;white-space:nowrap;z-index:10;border-radius:4px;transform:translateY(-5px)}.just-validate-error-label[data-tooltip=true]:before{content:'';width:0;height:0;border-left:solid 5px transparent;border-right:solid 5px transparent;border-bottom:solid 5px #423f3f;position:absolute;z-index:3;display:block;bottom:-5px;transform:rotate(180deg);left:calc(50% - 5px)}.just-validate-error-label[data-tooltip=true][data-direction=left]{transform:translateX(-5px)}.just-validate-error-label[data-tooltip=true][data-direction=left]:before{right:-7px;bottom:auto;left:auto;top:calc(50% - 2px);transform:rotate(90deg)}.just-validate-error-label[data-tooltip=true][data-direction=right]{transform:translateX(5px)}.just-validate-error-label[data-tooltip=true][data-direction=right]:before{right:auto;bottom:auto;left:-7px;top:calc(50% - 2px);transform:rotate(-90deg)}.just-validate-error-label[data-tooltip=true][data-direction=bottom]{transform:translateY(5px)}.just-validate-error-label[data-tooltip=true][data-direction=bottom]:before{right:auto;bottom:auto;left:calc(50% - 5px);top:-5px;transform:rotate(0)}",this.customStyleTags[ii.Label]=document.head.appendChild(t),this.addListener("scroll",document,this.handleDocumentScroll)}}getLocalisedString(t,e,i){var s;const n=null!=i?i:t;let o=null==(s=this.dictLocale.find((t=>t.key===n)))?void 0:s.dict[this.currentLocale];if(o||i&&(o=i),o&&void 0!==e)switch(t){case ti.MaxLength:case ti.MinLength:case ti.MaxNumber:case ti.MinNumber:case ti.MinFilesCount:case ti.MaxFilesCount:o=o.replace(":value",String(e))}return o||i||"Value is incorrect"}getFieldErrorMessage(t,e){const i="function"==typeof t.errorMessage?t.errorMessage(this.getElemValue(e),this.fields):t.errorMessage;return this.getLocalisedString(t.rule,t.value,i)}getFieldSuccessMessage(t,e){const i="function"==typeof t?t(this.getElemValue(e),this.fields):t;return this.getLocalisedString(void 0,void 0,i)}getGroupErrorMessage(t){return this.getLocalisedString(t.rule,void 0,t.errorMessage)}getGroupSuccessMessage(t){if(t.successMessage)return this.getLocalisedString(void 0,void 0,t.successMessage)}setFieldInvalid(t,e){this.fields[t].isValid=!1,this.fields[t].errorMessage=this.getFieldErrorMessage(e,this.fields[t].elem)}setFieldValid(t,e){this.fields[t].isValid=!0,void 0!==e&&(this.fields[t].successMessage=this.getFieldSuccessMessage(e,this.fields[t].elem))}setGroupInvalid(t,e){this.groupFields[t].isValid=!1,this.groupFields[t].errorMessage=this.getGroupErrorMessage(e)}setGroupValid(t,e){this.groupFields[t].isValid=!0,this.groupFields[t].successMessage=this.getGroupSuccessMessage(e)}getElemValue(t){switch(t.type){case"checkbox":return t.checked;case"file":return t.files;default:return t.value}}validateGroupRule(t,e,i){if(i.rule===ei.Required)e.every((t=>!t.checked))?this.setGroupInvalid(t,i):this.setGroupValid(t,i)}validateFieldRule(t,e,i,s=!1){const n=i.value,o=this.getElemValue(e);if(i.plugin){i.plugin(o,this.getCompatibleFields())||this.setFieldInvalid(t,i)}else{switch(i.rule){case ti.Required:(t=>{let e=t;return"string"==typeof t&&(e=t.trim()),!e})(o)&&this.setFieldInvalid(t,i);break;case ti.Email:if(Je(o))break;r=o,Xe.test(r)||this.setFieldInvalid(t,i);break;case ti.MaxLength:if(void 0===n){console.error(`Value for ${i.rule} rule for [${t}] field is not defined. The field will be always invalid.`),this.setFieldInvalid(t,i);break}if("number"!=typeof n){console.error(`Value for ${i.rule} rule for [${t}] should be a number. The field will be always invalid.`),this.setFieldInvalid(t,i);break}if(Je(o))break;((t,e)=>t.length>e)(o,n)&&this.setFieldInvalid(t,i);break;case ti.MinLength:if(void 0===n){console.error(`Value for ${i.rule} rule for [${t}] field is not defined. The field will be always invalid.`),this.setFieldInvalid(t,i);break}if("number"!=typeof n){console.error(`Value for ${i.rule} rule for [${t}] should be a number. The field will be always invalid.`),this.setFieldInvalid(t,i);break}if(Je(o))break;((t,e)=>t.length<e)(o,n)&&this.setFieldInvalid(t,i);break;case ti.Password:if(Je(o))break;(t=>Qe.test(t))(o)||this.setFieldInvalid(t,i);break;case ti.StrongPassword:if(Je(o))break;(t=>Ze.test(t))(o)||this.setFieldInvalid(t,i);break;case ti.Number:if(Je(o))break;(t=>"string"==typeof t&&!isNaN(+t)&&!isNaN(parseFloat(t)))(o)||this.setFieldInvalid(t,i);break;case ti.Integer:if(Je(o))break;(t=>Ke.test(t))(o)||this.setFieldInvalid(t,i);break;case ti.MaxNumber:{if(void 0===n){console.error(`Value for ${i.rule} rule for [${t}] field is not defined. The field will be always invalid.`),this.setFieldInvalid(t,i);break}if("number"!=typeof n){console.error(`Value for ${i.rule} rule for [${t}] field should be a number. The field will be always invalid.`),this.setFieldInvalid(t,i);break}if(Je(o))break;const e=+o;(Number.isNaN(e)||((t,e)=>t>e)(e,n))&&this.setFieldInvalid(t,i);break}case ti.MinNumber:{if(void 0===n){console.error(`Value for ${i.rule} rule for [${t}] field is not defined. The field will be always invalid.`),this.setFieldInvalid(t,i);break}if("number"!=typeof n){console.error(`Value for ${i.rule} rule for [${t}] field should be a number. The field will be always invalid.`),this.setFieldInvalid(t,i);break}if(Je(o))break;const e=+o;(Number.isNaN(e)||((t,e)=>t<e)(e,n))&&this.setFieldInvalid(t,i);break}case ti.CustomRegexp:{if(void 0===n)return console.error(`Value for ${i.rule} rule for [${t}] field is not defined. This field will be always invalid.`),void this.setFieldInvalid(t,i);let e;try{e=new RegExp(n)}catch(e){console.error(`Value for ${i.rule} rule for [${t}] should be a valid regexp. This field will be always invalid.`),this.setFieldInvalid(t,i);break}const s=String(o);""===s||e.test(s)||this.setFieldInvalid(t,i);break}case ti.MinFilesCount:if(void 0===n){console.error(`Value for ${i.rule} rule for [${t}] field is not defined. This field will be always invalid.`),this.setFieldInvalid(t,i);break}if("number"!=typeof n){console.error(`Value for ${i.rule} rule for [${t}] field should be a number. The field will be always invalid.`),this.setFieldInvalid(t,i);break}if(Number.isFinite(null==o?void 0:o.length)&&o.length<n){this.setFieldInvalid(t,i);break}break;case ti.MaxFilesCount:if(void 0===n){console.error(`Value for ${i.rule} rule for [${t}] field is not defined. This field will be always invalid.`),this.setFieldInvalid(t,i);break}if("number"!=typeof n){console.error(`Value for ${i.rule} rule for [${t}] field should be a number. The field will be always invalid.`),this.setFieldInvalid(t,i);break}if(Number.isFinite(null==o?void 0:o.length)&&o.length>n){this.setFieldInvalid(t,i);break}break;case ti.Files:{if(void 0===n)return console.error(`Value for ${i.rule} rule for [${t}] field is not defined. This field will be always invalid.`),void this.setFieldInvalid(t,i);if("object"!=typeof n)return console.error(`Value for ${i.rule} rule for [${t}] field should be an object. This field will be always invalid.`),void this.setFieldInvalid(t,i);const e=n.files;if("object"!=typeof e)return console.error(`Value for ${i.rule} rule for [${t}] field should be an object with files array. This field will be always invalid.`),void this.setFieldInvalid(t,i);const s=(t,e)=>{const i=Number.isFinite(e.minSize)&&t.size<e.minSize,s=Number.isFinite(e.maxSize)&&t.size>e.maxSize,n=Array.isArray(e.names)&&!e.names.includes(t.name),o=Array.isArray(e.extensions)&&!e.extensions.includes(t.name.split(".")[t.name.split(".").length-1]),r=Array.isArray(e.types)&&!e.types.includes(t.type);return i||s||n||o||r};if("object"==typeof o&&null!==o)for(let n=0,r=o.length;n<r;++n){const r=o.item(n);if(!r){this.setFieldInvalid(t,i);break}if(s(r,e)){this.setFieldInvalid(t,i);break}}break}default:{if("function"!=typeof i.validator)return console.error(`Validator for custom rule for [${t}] field should be a function. This field will be always invalid.`),void this.setFieldInvalid(t,i);const e=i.validator(o,this.getCompatibleFields());if("boolean"!=typeof e&&"function"!=typeof e&&console.error(`Validator return value for [${t}] field should be boolean or function. It will be cast to boolean.`),"function"==typeof e){if(!s){this.fields[t].asyncCheckPending=!1;const s=e();return ni(s)?s.then((e=>{e||this.setFieldInvalid(t,i)})).catch((()=>{this.setFieldInvalid(t,i)})):(console.error(`Validator function for custom rule for [${t}] field should return a Promise. This field will be always invalid.`),void this.setFieldInvalid(t,i))}this.fields[t].asyncCheckPending=!0}e||this.setFieldInvalid(t,i)}}var r}}isFormValid(){let t=!0;for(let e=0,i=Object.values(this.fields).length;e<i;++e){const i=Object.values(this.fields)[e];if(void 0===i.isValid){t=void 0;break}if(!1===i.isValid){t=!1;break}}for(let e=0,i=Object.values(this.groupFields).length;e<i;++e){const i=Object.values(this.groupFields)[e];if(void 0===i.isValid){t=void 0;break}if(!1===i.isValid){t=!1;break}}return t}validateField(t,e=!1){var i;const s=this.fields[t];s.isValid=!0;const n=[];return[...s.rules].reverse().forEach((i=>{const o=this.validateFieldRule(t,s.elem,i,e);ni(o)&&n.push(o)})),s.isValid&&this.setFieldValid(t,null==(i=s.config)?void 0:i.successMessage),Promise.allSettled(n).finally((()=>{var t;e&&(null==(t=this.onValidateCallback)||t.call(this,{isValid:this.isFormValid(),isSubmitted:this.isSubmitted,fields:this.getCompatibleFields(),groups:{...this.groupFields}}))}))}revalidateField(t){if("string"!=typeof t&&!ri(t))throw Error("Field selector is not valid. Please specify a string selector or a valid DOM element.");const e=this.getKeyByFieldSelector(t);return e&&this.fields[e]?new Promise((t=>{this.validateField(e,!0).finally((()=>{this.clearFieldStyle(e),this.clearFieldLabel(e),this.renderFieldError(e,!0),t(!!this.fields[e].isValid)}))})):(console.error("Field not found. Check the field selector."),Promise.reject())}revalidateGroup(t){if("string"!=typeof t&&!ri(t))throw Error("Group selector is not valid. Please specify a string selector or a valid DOM element.");const e=this.getKeyByFieldSelector(t);return e&&this.groupFields[e]?new Promise((t=>{this.validateGroup(e).finally((()=>{this.clearFieldLabel(e),this.renderGroupError(e,!0),t(!!this.groupFields[e].isValid)}))})):(console.error("Group not found. Check the group selector."),Promise.reject())}validateGroup(t,e=!1){const i=this.groupFields[t],s=[];return[...i.rules].reverse().forEach((e=>{const n=this.validateGroupRule(t,i.elems,e);ni(n)&&s.push(n)})),Promise.allSettled(s).finally((()=>{var t;e&&(null==(t=this.onValidateCallback)||t.call(this,{isValid:this.isFormValid(),isSubmitted:this.isSubmitted,fields:this.getCompatibleFields(),groups:{...this.groupFields}}))}))}focusInvalidField(){for(const t in this.fields){const e=this.fields[t];if(!e.isValid){setTimeout((()=>e.elem.focus()),0);break}}}afterSubmitValidation(t=!1){this.renderErrors(t),this.globalConfig.focusInvalidField&&this.focusInvalidField()}validate(t=!1){return new Promise((e=>{const i=[];Object.keys(this.fields).forEach((t=>{const e=this.validateField(t);ni(e)&&i.push(e)})),Object.keys(this.groupFields).forEach((t=>{const e=this.validateGroup(t);ni(e)&&i.push(e)})),Promise.allSettled(i).then((()=>{var s;this.afterSubmitValidation(t),null==(s=this.onValidateCallback)||s.call(this,{isValid:this.isFormValid(),isSubmitted:this.isSubmitted,fields:this.getCompatibleFields(),groups:{...this.groupFields}}),e(!!i.length)}))}))}revalidate(){return new Promise((t=>{this.validateHandler(void 0,!0).finally((()=>{this.globalConfig.focusInvalidField&&this.focusInvalidField(),t(this.isValid)}))}))}validateHandler(t,e=!1){return this.globalConfig.lockForm&&this.lockForm(),this.validate(e).finally((()=>{var e,i,s;this.globalConfig.lockForm&&this.unlockForm(),this.isValid?(null==(e=this.onSuccessCallback)||e.call(this,t),this.globalConfig.submitFormAutomatically&&(null==(i=null==t?void 0:t.currentTarget)||i.submit())):null==(s=this.onFailCallback)||s.call(this,this.getCompatibleFields(),this.groupFields)}))}setForm(t){this.form=t,this.form.setAttribute("novalidate","novalidate"),this.removeListener("submit",this.form,this.formSubmitHandler),this.addListener("submit",this.form,this.formSubmitHandler)}addListener(t,e,i){e.addEventListener(t,i),this.eventListeners.push({type:t,elem:e,func:i})}removeListener(t,e,i){e.removeEventListener(t,i),this.eventListeners=this.eventListeners.filter((i=>i.type!==t||i.elem!==e))}addField(t,e,i){if("string"!=typeof t&&!ri(t))throw Error("Field selector is not valid. Please specify a string selector or a valid DOM element.");let s;if(s="string"==typeof t?this.form.querySelector(t):t,!s)throw Error("Field doesn't exist in the DOM! Please check the field selector.");if(!Array.isArray(e)||!e.length)throw Error("Rules argument should be an array and should contain at least 1 element.");e.forEach((t=>{if(!("rule"in t||"validator"in t||"plugin"in t))throw Error("Rules argument must contain at least one rule or validator property.");if(!(t.validator||t.plugin||t.rule&&Object.values(ti).includes(t.rule)))throw Error(`Rule should be one of these types: ${Object.values(ti).join(", ")}. Provided value: ${t.rule}`)}));const n=this.setKeyByFieldSelector(t);return this.fields[n]={elem:s,rules:e,isValid:void 0,touched:!1,config:i},this.setListeners(s),(this.isSubmitted||this.globalConfig.validateBeforeSubmitting)&&this.validateField(n),this}removeField(t){if("string"!=typeof t&&!ri(t))throw Error("Field selector is not valid. Please specify a string selector or a valid DOM element.");const e=this.getKeyByFieldSelector(t);if(!e||!this.fields[e])return console.error("Field not found. Check the field selector."),this;const i=this.getListenerType(this.fields[e].elem.type);return this.removeListener(i,this.fields[e].elem,this.handlerChange),this.clearErrors(),delete this.fields[e],this}removeGroup(t){if("string"!=typeof t)throw Error("Group selector is not valid. Please specify a string selector.");const e=this.getKeyByFieldSelector(t);return e&&this.groupFields[e]?(this.groupFields[e].elems.forEach((t=>{const e=this.getListenerType(t.type);this.removeListener(e,t,this.handlerChange)})),this.clearErrors(),delete this.groupFields[e],this):(console.error("Group not found. Check the group selector."),this)}addRequiredGroup(t,e,i,s){if("string"!=typeof t&&!ri(t))throw Error("Group selector is not valid. Please specify a string selector or a valid DOM element.");let n;if(n="string"==typeof t?this.form.querySelector(t):t,!n)throw Error("Group selector not found! Please check the group selector.");const o=n.querySelectorAll("input"),r=Array.from(o).filter((t=>{const e=((t,e)=>{const i=[...e].reverse();for(let e=0,s=i.length;e<s;++e){const s=i[e];for(const e in t){const i=t[e];if(i.groupElem===s)return[e,i]}}return null})(this.groupFields,(t=>{let e=t;const i=[];for(;e;)i.unshift(e),e=e.parentNode;return i})(t));return!e||e[1].elems.find((e=>e!==t))})),a=this.setKeyByFieldSelector(t);return this.groupFields[a]={rules:[{rule:ei.Required,errorMessage:e,successMessage:s}],groupElem:n,elems:r,touched:!1,isValid:void 0,config:i},o.forEach((t=>{this.setListeners(t)})),this}getListenerType(t){switch(t){case"checkbox":case"select-one":case"file":case"radio":return"change";default:return"input"}}setListeners(t){const e=this.getListenerType(t.type);this.removeListener(e,t,this.handlerChange),this.addListener(e,t,this.handlerChange)}clearFieldLabel(t){var e,i;null==(e=this.errorLabels[t])||e.remove(),null==(i=this.successLabels[t])||i.remove()}clearFieldStyle(t){var e,i,s,n;const o=this.fields[t],r=(null==(e=o.config)?void 0:e.errorFieldStyle)||this.globalConfig.errorFieldStyle;Object.keys(r).forEach((t=>{o.elem.style[t]=""}));const a=(null==(i=o.config)?void 0:i.successFieldStyle)||this.globalConfig.successFieldStyle||{};Object.keys(a).forEach((t=>{o.elem.style[t]=""})),o.elem.classList.remove(...oi((null==(s=o.config)?void 0:s.errorFieldCssClass)||this.globalConfig.errorFieldCssClass),...oi((null==(n=o.config)?void 0:n.successFieldCssClass)||this.globalConfig.successFieldCssClass))}clearErrors(){var t,e;Object.keys(this.errorLabels).forEach((t=>this.errorLabels[t].remove())),Object.keys(this.successLabels).forEach((t=>this.successLabels[t].remove()));for(const t in this.fields)this.clearFieldStyle(t);for(const i in this.groupFields){const s=this.groupFields[i],n=(null==(t=s.config)?void 0:t.errorFieldStyle)||this.globalConfig.errorFieldStyle;Object.keys(n).forEach((t=>{s.elems.forEach((e=>{var i;e.style[t]="",e.classList.remove(...oi((null==(i=s.config)?void 0:i.errorFieldCssClass)||this.globalConfig.errorFieldCssClass))}))}));const o=(null==(e=s.config)?void 0:e.successFieldStyle)||this.globalConfig.successFieldStyle||{};Object.keys(o).forEach((t=>{s.elems.forEach((e=>{var i;e.style[t]="",e.classList.remove(...oi((null==(i=s.config)?void 0:i.successFieldCssClass)||this.globalConfig.successFieldCssClass))}))}))}this.tooltips=[]}isTooltip(){return!!this.globalConfig.tooltip}lockForm(){const t=this.form.querySelectorAll("input, textarea, button, select");for(let e=0,i=t.length;e<i;++e)t[e].setAttribute("data-just-validate-fallback-disabled",t[e].disabled?"true":"false"),t[e].setAttribute("disabled","disabled"),t[e].style.pointerEvents="none",t[e].style.webkitFilter="grayscale(100%)",t[e].style.filter="grayscale(100%)"}unlockForm(){const t=this.form.querySelectorAll("input, textarea, button, select");for(let e=0,i=t.length;e<i;++e)"true"!==t[e].getAttribute("data-just-validate-fallback-disabled")&&t[e].removeAttribute("disabled"),t[e].style.pointerEvents="",t[e].style.webkitFilter="",t[e].style.filter=""}renderTooltip(t,e,i){var s;const{top:n,left:o,width:r,height:a}=t.getBoundingClientRect(),l=e.getBoundingClientRect(),c=i||(null==(s=this.globalConfig.tooltip)?void 0:s.position);switch(c){case"left":e.style.top=n+a/2-l.height/2+"px",e.style.left=o-l.width-5+"px";break;case"top":e.style.top=n-l.height-5+"px",e.style.left=o+r/2-l.width/2+"px";break;case"right":e.style.top=n+a/2-l.height/2+"px",e.style.left=`${o+r+5}px`;break;case"bottom":e.style.top=`${n+a+5}px`,e.style.left=o+r/2-l.width/2+"px"}e.dataset.direction=c;return{refresh:()=>{this.renderTooltip(t,e,i)}}}createErrorLabelElem(t,e,i){const s=document.createElement("div");s.innerHTML=e;const n=this.isTooltip()?null==i?void 0:i.errorLabelStyle:(null==i?void 0:i.errorLabelStyle)||this.globalConfig.errorLabelStyle;return Object.assign(s.style,n),s.classList.add(...oi((null==i?void 0:i.errorLabelCssClass)||this.globalConfig.errorLabelCssClass),"just-validate-error-label"),this.isTooltip()&&(s.dataset.tooltip="true"),this.globalConfig.testingMode&&(s.dataset.testId=`error-label-${t}`),this.errorLabels[t]=s,s}createSuccessLabelElem(t,e,i){if(void 0===e)return null;const s=document.createElement("div");s.innerHTML=e;const n=(null==i?void 0:i.successLabelStyle)||this.globalConfig.successLabelStyle;return Object.assign(s.style,n),s.classList.add(...oi((null==i?void 0:i.successLabelCssClass)||this.globalConfig.successLabelCssClass),"just-validate-success-label"),this.globalConfig.testingMode&&(s.dataset.testId=`success-label-${t}`),this.successLabels[t]=s,s}renderErrorsContainer(t,e){const i=e||this.globalConfig.errorsContainer;if("string"==typeof i){const e=this.form.querySelector(i);if(e)return e.appendChild(t),!0;console.error(`Error container with ${i} selector not found. Errors will be rendered as usual`)}return i instanceof Element?(i.appendChild(t),!0):(void 0!==i&&console.error("Error container not found. It should be a string or existing Element. Errors will be rendered as usual"),!1)}renderGroupLabel(t,e,i,s){if(!s){if(this.renderErrorsContainer(e,i))return}t.appendChild(e)}renderFieldLabel(t,e,i,s){var n,o,r,a,l,c,h;if(!s){if(this.renderErrorsContainer(e,i))return}if("checkbox"===t.type||"radio"===t.type){const i=document.querySelector(`label[for="${t.getAttribute("id")}"]`);"label"===(null==(o=null==(n=t.parentElement)?void 0:n.tagName)?void 0:o.toLowerCase())?null==(a=null==(r=t.parentElement)?void 0:r.parentElement)||a.appendChild(e):i?null==(l=i.parentElement)||l.appendChild(e):null==(c=t.parentElement)||c.appendChild(e)}else null==(h=t.parentElement)||h.appendChild(e)}showLabels(t,e){Object.keys(t).forEach(((i,s)=>{const n=t[i],o=this.getKeyByFieldSelector(i);if(!o||!this.fields[o])return void console.error("Field not found. Check the field selector.");const r=this.fields[o];r.isValid=!e,this.clearFieldStyle(o),this.clearFieldLabel(o),this.renderFieldError(o,!1,n),0===s&&this.globalConfig.focusInvalidField&&setTimeout((()=>r.elem.focus()),0)}))}showErrors(t){if("object"!=typeof t)throw Error("[showErrors]: Errors should be an object with key: value format");this.showLabels(t,!0)}showSuccessLabels(t){if("object"!=typeof t)throw Error("[showSuccessLabels]: Labels should be an object with key: value format");this.showLabels(t,!1)}renderFieldError(t,e=!1,i){var s,n,o,r,a,l;const c=this.fields[t];if(!1===c.isValid&&(this.isValid=!1),void 0===c.isValid||!e&&!this.isSubmitted&&!c.touched&&void 0===i)return;if(c.isValid){if(!c.asyncCheckPending){const e=this.createSuccessLabelElem(t,void 0!==i?i:c.successMessage,c.config);e&&this.renderFieldLabel(c.elem,e,null==(s=c.config)?void 0:s.errorsContainer,!0),c.elem.classList.add(...oi((null==(n=c.config)?void 0:n.successFieldCssClass)||this.globalConfig.successFieldCssClass))}return}c.elem.classList.add(...oi((null==(o=c.config)?void 0:o.errorFieldCssClass)||this.globalConfig.errorFieldCssClass));const h=this.createErrorLabelElem(t,void 0!==i?i:c.errorMessage,c.config);this.renderFieldLabel(c.elem,h,null==(r=c.config)?void 0:r.errorsContainer),this.isTooltip()&&this.tooltips.push(this.renderTooltip(c.elem,h,null==(l=null==(a=c.config)?void 0:a.tooltip)?void 0:l.position))}renderGroupError(t,e=!0){var i,s,n,o;const r=this.groupFields[t];if(!1===r.isValid&&(this.isValid=!1),void 0===r.isValid||!e&&!this.isSubmitted&&!r.touched)return;if(r.isValid){r.elems.forEach((t=>{var e,i;Object.assign(t.style,(null==(e=r.config)?void 0:e.successFieldStyle)||this.globalConfig.successFieldStyle),t.classList.add(...oi((null==(i=r.config)?void 0:i.successFieldCssClass)||this.globalConfig.successFieldCssClass))}));const e=this.createSuccessLabelElem(t,r.successMessage,r.config);return void(e&&this.renderGroupLabel(r.groupElem,e,null==(i=r.config)?void 0:i.errorsContainer,!0))}this.isValid=!1,r.elems.forEach((t=>{var e,i;Object.assign(t.style,(null==(e=r.config)?void 0:e.errorFieldStyle)||this.globalConfig.errorFieldStyle),t.classList.add(...oi((null==(i=r.config)?void 0:i.errorFieldCssClass)||this.globalConfig.errorFieldCssClass))}));const a=this.createErrorLabelElem(t,r.errorMessage,r.config);this.renderGroupLabel(r.groupElem,a,null==(s=r.config)?void 0:s.errorsContainer),this.isTooltip()&&this.tooltips.push(this.renderTooltip(r.groupElem,a,null==(o=null==(n=r.config)?void 0:n.tooltip)?void 0:o.position))}renderErrors(t=!1){if(this.isSubmitted||t||this.globalConfig.validateBeforeSubmitting){this.clearErrors(),this.isValid=!0;for(const t in this.groupFields)this.renderGroupError(t);for(const t in this.fields)this.renderFieldError(t)}}destroy(){this.eventListeners.forEach((t=>{this.removeListener(t.type,t.elem,t.func)})),Object.keys(this.customStyleTags).forEach((t=>{this.customStyleTags[t].remove()})),this.clearErrors(),this.globalConfig.lockForm&&this.unlockForm()}refresh(){this.destroy(),this.form?(this.initialize(this.form,this.globalConfig),Object.keys(this.fields).forEach((t=>{const e=this.getFieldSelectorByKey(t);e&&this.addField(e,[...this.fields[t].rules],this.fields[t].config)}))):console.error("Cannot initialize the library! Form is not defined")}setCurrentLocale(t){"string"==typeof t||void 0===t?(this.currentLocale=t,this.isSubmitted&&this.validate()):console.error("Current locale should be a string")}onSuccess(t){return this.onSuccessCallback=t,this}onFail(t){return this.onFailCallback=t,this}onValidate(t){return this.onValidateCallback=t,this}}class ci{constructor(t,e,i,s,n){this.targetNode=t,this.classToWatch=e,this.classAddedCallback=i,this.classRemovedCallback=s,this.observer=null,this.lastClassState=t.classList.contains(this.classToWatch),this.ignoreToggle=!!n,this.init()}init(){this.observer=new MutationObserver((t=>this.mutationCallback(t))),this.observe()}observe(){this.observer.observe(this.targetNode,{attributes:!0})}disconnect(){this.observer.disconnect()}mutationCallback(t){for(let e of t)if("attributes"===e.type&&"class"===e.attributeName){let t=e.target.classList.contains(this.classToWatch);(this.ignoreToggle||this.lastClassState!==t)&&(this.lastClassState=t,t?"function"==typeof this.classAddedCallback&&this.classAddedCallback():"function"==typeof this.classRemovedCallback&&this.classRemovedCallback())}}}class hi{constructor(t,e,i,s){this.targetNode=t,this.contentSelector=e,this.contentAddedCallback=i,this.contentRemovedCallback=s,this.observer=null,this.init()}init(){this.observer=new MutationObserver((t=>this.mutationCallback(t))),this.observe()}observe(){this.observer.observe(this.targetNode,{childList:!0,subtree:!0})}disconnect(){this.observer.disconnect()}mutationCallback(t){for(let e of t)"childList"===e.type&&(e.addedNodes.forEach((t=>{this._callbackExec(t)})),e.removedNodes.forEach((t=>{this._callbackExec(t,!0)})))}_callbackExec(t,e){const i=t.matches&&t.matches(this.contentSelector)?[t]:t.querySelectorAll?t.querySelectorAll(this.contentSelector):null,s=e&&"function"==typeof this.contentRemovedCallback?this.contentRemovedCallback:"function"==typeof this.contentAddedCallback?this.contentAddedCallback:null;i&&s&&i.forEach((t=>s(t)))}}const ui={errorFieldCssClass:"is-invalid",errorLabelCssClass:"just-validate-error-label"},di="justvalidatebi";class fi extends Q{constructor(t){super(t),this._label=new at(t),this._bindEvents()}static get NAME(){return"input"}_bindEvents(){"file"===this._element.getAttribute("type")&&H.on(this._element,"change.bs.input",(()=>{this._handleFileDescription()}))}_handleFileDescription(){const t=[];let e="";Array.from(this._element.files).forEach((e=>{const i=Math.round(parseInt(e.size,10)/1024);t.push(e.name+" ("+i+"kb)")})),this._element.files.length>1&&(e=this._element.files.length+" file da caricare: ");const i=Z.findOne('label[for="'+this._element.getAttribute("id")+'"] label.form-file-name',this._element);i&&(i.innerText=e+t.join("; "))}}const pi=["select",'input[data-bs-input][type="password"]',"input.input-password[data-bs-input]",'input[data-bs-autocomplete][type="search"]','input[type="time"]','input[type="radio"]','input[type="checkbox"]'];"undefined"!=typeof document&&document.addEventListener("DOMContentLoaded",(function(){document.querySelectorAll("input, textarea, label").forEach((function(t){(t=>{const e=!!pi.find((e=>t.matches(e))),i=!("number"!==t.getAttribute("type")||!t.parentNode.querySelector('button[class^="input-number-"]'));e||i||fi.getOrCreateInstance(t)})(at.getInputFromLabel(t)||t)}))}));const mi={autocomplete:[]},gi="autocomplete-list-show",_i="data-bs-autocomplete",bi="input["+_i+'][type="search"]';class vi extends Q{constructor(t,e){super(t),this._config=this._getConfig(e),this._items=[],this._autocompleteElement=null,this._label=new at(t),this._init(),this._bindEvents()}static get NAME(){return"inputsearchautocomplete"}search(){const t=this._element.value;
|
|
2
2
|
//!!! $autocomplete.empty()
|
|
3
|
-
this._autocompleteElement.innerHTML="",t?this._items.forEach((e=>{let i=new RegExp("("+t+")","gi"),s=e.text.replace(i,"<mark>$1</mark>"),n=e.label?"<em>"+e.label+"</em>":"",o=e.icon?e.icon:"",r=e.link?e.link:"#";-1!==s.toLowerCase().indexOf(t.toLowerCase())&&(this._autocompleteElement.classList.add(yi),this._autocompleteElement.appendChild(this._createOption(r,s,n,o)))})):this._autocompleteElement.classList.remove(yi)}_getConfig(t){return t={...vi,..."object"==typeof t?t:{}}}_getItems(){try{return JSON.parse(this._element.getAttribute(wi))}catch(t){return console.error("[InputSearchAutocomplete] invalid data provided for "+wi+" attribute",t),[]}}_init(){if(this._element.classList.contains("autocomplete")){if("undefined"==typeof document)return;this._items=this._getItems(),this._autocompleteElement=document.createElement("ul"),this._autocompleteElement.classList.add("autocomplete-list"),this._element.parentNode.insertBefore(this._autocompleteElement,this._element.nextSibling)}}_bindEvents(){G.on(this._element,"keyup.bs.inputsearchautocomplete",(()=>this.search()))}_createOption(t,e,i,s){if("undefined"==typeof document)return;const n=document.createElement("li");return n.innerHTML=`<a href="${t}">\n ${s}\n <span class="autocomplete-list-text">\n <span>${e}</span>\n ${i}\n </span>\n </a>`,n}}"undefined"!=typeof document&&document.addEventListener("DOMContentLoaded",(function(){document.querySelectorAll(Ei+", label").forEach((function(t){const e=dt.getInputFromLabel(t)||t;var i;(i=e)&&i.matches(Ei)&&ki.getOrCreateInstance(i)}))}));const Si=".bs.inputpassword",Ci=".data-api",Ti={shortPass:"Password troppo breve",badPass:"Password debole.",goodPass:"Password abbastanza sicura.",strongPass:"Password sicura.",minimumLength:8,suggestionsLabel:"Suggerimenti per una buona password:",suggestionFollowed:"suggerimenti seguito",suggestionFollowedPlural:"suggerimenti seguiti",suggestionOf:"di",suggestionMetLabel:"Soddisfatto: ",suggestionMetIconPath:"\n M9.6 16.9 4 11.4l.8-.7 4.8 4.8 8.5-8.4.7.7-9.2 9.1z\n ",suggestionLength:"Almeno {minLength} caratteri.",suggestionUppercase:"Una o più maiuscole.",suggestionLowercase:"Una o più minuscole.",suggestionNumber:"Uno o più numeri.",suggestionSpecial:"Uno o più caratteri speciali."},Ai=`click${Si}`,Li=`keyup${Si}`,xi=`score${Si}`,Oi=`text${Si}`,Ii=`suggs${Si}`,Pi=`click${Si}${Ci}`,$i=`mousedown${Si}${Ci}`,Mi=`keyup${Si}${Ci}`,Fi='input[data-bs-input][type="password"]',ji=".password-icon";class Ni extends it{constructor(t,e){super(t),this._config=this._getConfig(e),this._isCustom=this._element.classList.contains("input-password"),this._meter=this._element.parentNode.querySelector(".password-strength-meter"),this._grayBarElement=null,this._colorBarElement=null,this._textElement=null,this._suggsElement=null,this._showPwdElement=null,this._text={},this._label=new dt(t),this._suggestions=[{key:"length",text:t=>t.suggestionLength.replace("{minLength}",t.minimumLength.toString()),test:(t,e)=>t.length>=e.minimumLength},{key:"uppercase",text:t=>t.suggestionUppercase,test:t=>/[A-Z]/.test(t)},{key:"lowercase",text:t=>t.suggestionLowercase,test:t=>/[a-z]/.test(t)},{key:"number",text:t=>t.suggestionNumber,test:t=>/[0-9]/.test(t)},{key:"special",text:t=>t.suggestionSpecial,test:t=>/[^A-Za-z0-9]/.test(t)}],this._init(),this._bindEvents()}static get NAME(){return"inputpassword"}_getConfig(t){return t={...Ti,...tt.getDataAttributes(this._element),..."object"==typeof t?t:{}}}_init(){this._isCustom&&(this._handleAutofill(),this._showPwdElement=st.findOne(ji,this._element.parentNode),this._meter&&(this._grayBarElement=this._meter.querySelector(".password-meter"),this._colorBarElement=this._meter.querySelector(".progress-bar"),this._textElement=this._meter.querySelector(".strength-meter-info"),this._suggsElement=this._meter.querySelector(".strenght-meter-suggestions"),this._textElement&&(this._config=Object.assign({},this._config,{...tt.getDataAttributes(this._textElement)})),this._suggsElement&&this._createsuggestionsList()))}_bindEvents(){this._isCustom&&(this._showPwdElement&&G.on(this._showPwdElement,Ai,(()=>this._toggleShowPassword())),this._meter&&(G.on(this._element,Li,(()=>this._checkPassword())),G.on(this._element,"input",(()=>this._checkPassword()))))}_handleAutofill(){const t=()=>{""!==this._element.value&&(this._label._labelOut(),this._checkPassword())};t(),setTimeout(t,100),G.on(this._element,"animationstart",(e=>{"onAutoFillStart"===e.animationName&&t()}))}_toggleShowPassword(){const t="password"===this._element.getAttribute("type");st.find('[class^="password-icon"]',this._showPwdElement).forEach((t=>t.classList.toggle("d-none"))),this._element.setAttribute("type",t?"text":"password"),this._showPwdElement.setAttribute("aria-checked",t.toString())}_checkPassword(){const t=this._element.value,e=this._calculateScore(t);this._updateMeter(e),this._updateText(e,t),this._updateSuggestions(t)}_updateMeter(t){const e=t<0?0:t;this._colorBarElement&&(this._colorBarElement.classList.forEach((t=>{t.match(/(^|\s)bg-\S+/g)&&this._colorBarElement.classList.remove(t)})),this._colorBarElement.classList.add(`bg-${this._scoreColor(t)}`),this._colorBarElement.style.width=`${e}%`,this._colorBarElement.setAttribute("aria-valuenow",e)),G.trigger(this._element,xi)}_updateText(t,e){if(this._textElement){let i=this._scoreText(t);if(this._suggsElement){const{completedCount:t,totalCount:s}=this._getCompletedSuggestions(e),n=1===t?this._config.suggestionFollowed:this._config.suggestionFollowedPlural;i+=` ${t} ${this._config.suggestionOf} ${s} ${n}.`}this._textElement.textContent!==i&&(this._textElement.textContent=i,this._textElement.classList.forEach((t=>{t.match(/(^|\s)text-\S+/g)&&this._textElement.classList.remove(t)})),this._textElement.classList.add(`text-${this._scoreColor(t)}`),G.trigger(this._element,Oi))}}_updateSuggestions(t){this._suggsElement&&(this._updateSuggestionsList(t),G.trigger(this._element,Ii))}_getCompletedSuggestions(t){let e=0;const i=this._suggestions.length;return this._suggestions.forEach((i=>{i.test(t,this._config)&&e++})),{completedCount:e,totalCount:i}}_createsuggestionsList(){if(this._suggsElement.querySelector(".password-suggestions"))return;const t=document.createElement("label");t.className="visually-hidden",t.htmlFor="suggestions",t.textContent=Ti.suggestionsLabel;const e=document.createElement("div");e.id="suggestions",e.className="password-suggestions",this._suggestions.forEach((t=>{const i=document.createElement("div");i.className="suggestion",i.dataset.suggestion=t.key;const s=this._createIconCheck(),n=document.createElement("span");n.textContent=t.text(this._config),i.appendChild(s),i.appendChild(n),e.appendChild(i)})),this._suggsElement.appendChild(t),this._suggsElement.appendChild(e)}_createIconCheck(){const t=document.createElementNS("http://www.w3.org/2000/svg","svg");t.setAttribute("class","icon icon-xs me-1 d-none"),t.setAttribute("aria-label",this._config.suggestionMetLabel),t.setAttribute("viewBox","0 0 24 24"),t.style.width="1em",t.style.height="1em";const e=document.createElementNS("http://www.w3.org/2000/svg","path");return e.setAttribute("d",this._config.suggestionMetIconPath.trim()),t.appendChild(e),t}_updateSuggestionsList(t){this._suggsElement&&this._suggestions.forEach((e=>{const i=this._suggsElement.querySelector(`[data-suggestion="${e.key}"]`);if(i){const s=e.test(t,this._config),n=i.querySelector(".icon");n&&n.classList.toggle("d-none",!s)}}))}_scoreText(t){return-1===t?this._config.shortPass:-2===t?"":(t=t<0?0:t)<26||t<51?this._config.badPass:t<76?this._config.goodPass:this._config.strongPass}_scoreColor(t){return-1===t||-2===t||t<26?"danger":t<51?"warning":"success"}_calculateScore(t){var e=0;if(0===t.trim().length)return-2;if(t.length<this._config.minimumLength)return-1;e+=4*t.length,e+=this._checkRepetition(1,t).length-t.length,e+=this._checkRepetition(2,t).length-t.length,e+=this._checkRepetition(3,t).length-t.length,e+=this._checkRepetition(4,t).length-t.length,t.match(/(.*[0-9].*[0-9].*[0-9])/)&&(e+=5);var i=".*[!,@,#,$,%,^,&,*,?,_,~]";return i=new RegExp("("+i+i+")"),t.match(i)&&(e+=5),t.match(/([a-z].*[A-Z])|([A-Z].*[a-z])/)&&(e+=10),t.match(/([a-zA-Z])/)&&t.match(/([0-9])/)&&(e+=15),t.match(/([!,@,#,$,%,^,&,*,?,_,~])/)&&t.match(/([0-9])/)&&(e+=15),t.match(/([!,@,#,$,%,^,&,*,?,_,~])/)&&t.match(/([a-zA-Z])/)&&(e+=15),(t.match(/^\w+$/)||t.match(/^\d+$/))&&(e-=10),e>100&&(e=100),e<0&&(e=0),e}_checkRepetition(t,e){for(var i="",s=!1,n=0;n<e.length;n++){s=!0;for(var o=0;o<t&&o+n+t<e.length;o++)s=s&&e.charAt(o+n)===e.charAt(o+n+t);o<t&&(s=!1),s?(n+=t-1,s=!1):i+=e.charAt(n)}return i}}const Di=t=>t&&t.matches(Fi)?Ni.getOrCreateInstance(t):null,Ri=()=>{const t=st.findOne(Fi);t&&Ni.getOrCreateInstance(t)};"loading"!==document.readyState?Ri():document.addEventListener("DOMContentLoaded",Ri),G.on(document,$i,Fi+", label",(function(){const t=dt.getInputFromLabel(this)||this;Di(t)})),G.on(document,Mi,Fi+", label",(function(){const t=dt.getInputFromLabel(this)||this,e=Di(t);e&&e._label&&e._label._labelOut()})),G.on(document,Pi,ji,(function(){const t=this.parentNode&&this.parentNode.querySelector(Fi);t&&Ni.getOrCreateInstance(t)}));var Bi="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Wi(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}var Vi=function(t,e){return t(e={exports:{}},e.exports),e.exports}((function(t,e){t.exports=function(){function t(e,i,s){function n(r,a){if(!i[r]){if(!e[r]){if(!a&&Wi)return Wi();if(o)return o(r,!0);var l=new Error("Cannot find module '"+r+"'");throw l.code="MODULE_NOT_FOUND",l}var c=i[r]={exports:{}};e[r][0].call(c.exports,(function(t){return n(e[r][1][t]||t)}),c,c.exports,t,e,i,s)}return i[r].exports}for(var o=Wi,r=0;r<s.length;r++)n(s[r]);return n}return t}()({1:[function(t,e,i){(function(t){(function(){var s=200,n="__lodash_hash_undefined__",o=800,r=16,a=9007199254740991,l="[object Arguments]",c="[object Array]",h="[object AsyncFunction]",u="[object Boolean]",d="[object Date]",f="[object Error]",p="[object Function]",g="[object GeneratorFunction]",m="[object Map]",_="[object Number]",b="[object Null]",v="[object Object]",y="[object Proxy]",w="[object RegExp]",E="[object Set]",k="[object String]",S="[object Undefined]",C="[object WeakMap]",T="[object ArrayBuffer]",A="[object DataView]",L="[object Float64Array]",x="[object Int8Array]",O="[object Int16Array]",I="[object Int32Array]",P="[object Uint8Array]",$="[object Uint8ClampedArray]",M="[object Uint16Array]",F="[object Uint32Array]",j=/[\\^$.*+?()[\]{}|]/g,N=/^\[object .+?Constructor\]$/,D=/^(?:0|[1-9]\d*)$/,R={};R["[object Float32Array]"]=R[L]=R[x]=R[O]=R[I]=R[P]=R[$]=R[M]=R[F]=!0,R[l]=R[c]=R[T]=R[u]=R[A]=R[d]=R[f]=R[p]=R[m]=R[_]=R[v]=R[w]=R[E]=R[k]=R[C]=!1;var B="object"==typeof t&&t&&t.Object===Object&&t,W="object"==typeof self&&self&&self.Object===Object&&self,V=B||W||Function("return this")(),z="object"==typeof i&&i&&!i.nodeType&&i,q=z&&"object"==typeof e&&e&&!e.nodeType&&e,H=q&&q.exports===z,U=H&&B.process,Q=function(){try{var t=q&&q.require&&q.require("util").types;return t||U&&U.binding&&U.binding("util")}catch(t){}}(),Y=Q&&Q.isTypedArray;function K(t,e,i){switch(i.length){case 0:return t.call(e);case 1:return t.call(e,i[0]);case 2:return t.call(e,i[0],i[1]);case 3:return t.call(e,i[0],i[1],i[2])}return t.apply(e,i)}function G(t,e){for(var i=-1,s=Array(t);++i<t;)s[i]=e(i);return s}function X(t){return function(e){return t(e)}}function Z(t,e){return null==t?void 0:t[e]}function J(t,e){return function(i){return t(e(i))}}var tt,et=Array.prototype,it=Function.prototype,st=Object.prototype,nt=V["__core-js_shared__"],ot=it.toString,rt=st.hasOwnProperty,at=(tt=/[^.]+$/.exec(nt&&nt.keys&&nt.keys.IE_PROTO||""))?"Symbol(src)_1."+tt:"",lt=st.toString,ct=ot.call(Object),ht=RegExp("^"+ot.call(rt).replace(j,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ut=H?V.Buffer:void 0,dt=V.Symbol,ft=V.Uint8Array;ut&&ut.allocUnsafe;var pt=J(Object.getPrototypeOf,Object),gt=Object.create,mt=st.propertyIsEnumerable,_t=et.splice,bt=dt?dt.toStringTag:void 0,vt=function(){try{var t=be(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),yt=ut?ut.isBuffer:void 0,wt=Math.max,Et=Date.now,kt=be(V,"Map"),St=be(Object,"create"),Ct=function(){function t(){}return function(e){if(!We(e))return{};if(gt)return gt(e);t.prototype=e;var i=new t;return t.prototype=void 0,i}}();function Tt(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var s=t[e];this.set(s[0],s[1])}}function At(){this.__data__=St?St(null):{},this.size=0}function Lt(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}function xt(t){var e=this.__data__;if(St){var i=e[t];return i===n?void 0:i}return rt.call(e,t)?e[t]:void 0}function Ot(t){var e=this.__data__;return St?void 0!==e[t]:rt.call(e,t)}function It(t,e){var i=this.__data__;return this.size+=this.has(t)?0:1,i[t]=St&&void 0===e?n:e,this}function Pt(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var s=t[e];this.set(s[0],s[1])}}function $t(){this.__data__=[],this.size=0}function Mt(t){var e=this.__data__,i=Jt(e,t);return!(i<0||(i==e.length-1?e.pop():_t.call(e,i,1),--this.size,0))}function Ft(t){var e=this.__data__,i=Jt(e,t);return i<0?void 0:e[i][1]}function jt(t){return Jt(this.__data__,t)>-1}function Nt(t,e){var i=this.__data__,s=Jt(i,t);return s<0?(++this.size,i.push([t,e])):i[s][1]=e,this}function Dt(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var s=t[e];this.set(s[0],s[1])}}function Rt(){this.size=0,this.__data__={hash:new Tt,map:new(kt||Pt),string:new Tt}}function Bt(t){var e=_e(this,t).delete(t);return this.size-=e?1:0,e}function Wt(t){return _e(this,t).get(t)}function Vt(t){return _e(this,t).has(t)}function zt(t,e){var i=_e(this,t),s=i.size;return i.set(t,e),this.size+=i.size==s?0:1,this}function qt(t){var e=this.__data__=new Pt(t);this.size=e.size}function Ht(){this.__data__=new Pt,this.size=0}function Ut(t){var e=this.__data__,i=e.delete(t);return this.size=e.size,i}function Qt(t){return this.__data__.get(t)}function Yt(t){return this.__data__.has(t)}function Kt(t,e){var i=this.__data__;if(i instanceof Pt){var n=i.__data__;if(!kt||n.length<s-1)return n.push([t,e]),this.size=++i.size,this;i=this.__data__=new Dt(n)}return i.set(t,e),this.size=i.size,this}function Gt(t,e){var i=Fe(t),s=!i&&Me(t),n=!i&&!s&&De(t),o=!i&&!s&&!n&&qe(t),r=i||s||n||o,a=r?G(t.length,String):[],l=a.length;for(var c in t)r&&("length"==c||n&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||we(c,l))||a.push(c);return a}function Xt(t,e,i){(void 0!==i&&!$e(t[e],i)||void 0===i&&!(e in t))&&te(t,e,i)}function Zt(t,e,i){var s=t[e];rt.call(t,e)&&$e(s,i)&&(void 0!==i||e in t)||te(t,e,i)}function Jt(t,e){for(var i=t.length;i--;)if($e(t[i][0],e))return i;return-1}function te(t,e,i){"__proto__"==e&&vt?vt(t,e,{configurable:!0,enumerable:!0,value:i,writable:!0}):t[e]=i}Tt.prototype.clear=At,Tt.prototype.delete=Lt,Tt.prototype.get=xt,Tt.prototype.has=Ot,Tt.prototype.set=It,Pt.prototype.clear=$t,Pt.prototype.delete=Mt,Pt.prototype.get=Ft,Pt.prototype.has=jt,Pt.prototype.set=Nt,Dt.prototype.clear=Rt,Dt.prototype.delete=Bt,Dt.prototype.get=Wt,Dt.prototype.has=Vt,Dt.prototype.set=zt,qt.prototype.clear=Ht,qt.prototype.delete=Ut,qt.prototype.get=Qt,qt.prototype.has=Yt,qt.prototype.set=Kt;var ee=me();function ie(t){return null==t?void 0===t?S:b:bt&&bt in Object(t)?ve(t):Ae(t)}function se(t){return Ve(t)&&ie(t)==l}function ne(t){return!(!We(t)||Se(t))&&(Re(t)?ht:N).test(Pe(t))}function oe(t){return Ve(t)&&Be(t.length)&&!!R[ie(t)]}function re(t){if(!We(t))return Te(t);var e=Ce(t),i=[];for(var s in t)("constructor"!=s||!e&&rt.call(t,s))&&i.push(s);return i}function ae(t,e,i,s,n){t!==e&&ee(e,(function(o,r){if(n||(n=new qt),We(o))le(t,e,r,i,ae,s,n);else{var a=s?s(xe(t,r),o,r+"",t,e,n):void 0;void 0===a&&(a=o),Xt(t,r,a)}}),Ue)}function le(t,e,i,s,n,o,r){var a=xe(t,i),l=xe(e,i),c=r.get(l);if(c)Xt(t,i,c);else{var h=o?o(a,l,i+"",t,e,r):void 0,u=void 0===h;if(u){var d=Fe(l),f=!d&&De(l),p=!d&&!f&&qe(l);h=l,d||f||p?Fe(a)?h=a:Ne(a)?h=fe(a):f?(u=!1,h=he(l)):p?(u=!1,h=de(l)):h=[]:ze(l)||Me(l)?(h=a,Me(a)?h=He(a):We(a)&&!Re(a)||(h=ye(l))):u=!1}u&&(r.set(l,h),n(h,l,s,o,r),r.delete(l)),Xt(t,i,h)}}function ce(t,e){return Oe(Le(t,e,Ke),t+"")}function he(t,e){return t.slice()}function ue(t){var e=new t.constructor(t.byteLength);return new ft(e).set(new ft(t)),e}function de(t,e){var i=ue(t.buffer);return new t.constructor(i,t.byteOffset,t.length)}function fe(t,e){var i=-1,s=t.length;for(e||(e=Array(s));++i<s;)e[i]=t[i];return e}function pe(t,e,i,s){var n=!i;i||(i={});for(var o=-1,r=e.length;++o<r;){var a=e[o],l=void 0;void 0===l&&(l=t[a]),n?te(i,a,l):Zt(i,a,l)}return i}function ge(t){return ce((function(e,i){var s=-1,n=i.length,o=n>1?i[n-1]:void 0,r=n>2?i[2]:void 0;for(o=t.length>3&&"function"==typeof o?(n--,o):void 0,r&&Ee(i[0],i[1],r)&&(o=n<3?void 0:o,n=1),e=Object(e);++s<n;){var a=i[s];a&&t(e,a,s,o)}return e}))}function me(t){return function(t,e,i){for(var s=-1,n=Object(t),o=i(t),r=o.length;r--;){var a=o[++s];if(!1===e(n[a],a,n))break}return t}}function _e(t,e){var i=t.__data__;return ke(e)?i["string"==typeof e?"string":"hash"]:i.map}function be(t,e){var i=Z(t,e);return ne(i)?i:void 0}function ve(t){var e=rt.call(t,bt),i=t[bt];try{t[bt]=void 0;var s=!0}catch(t){}var n=lt.call(t);return s&&(e?t[bt]=i:delete t[bt]),n}function ye(t){return"function"!=typeof t.constructor||Ce(t)?{}:Ct(pt(t))}function we(t,e){var i=typeof t;return!!(e=null==e?a:e)&&("number"==i||"symbol"!=i&&D.test(t))&&t>-1&&t%1==0&&t<e}function Ee(t,e,i){if(!We(i))return!1;var s=typeof e;return!!("number"==s?je(i)&&we(e,i.length):"string"==s&&e in i)&&$e(i[e],t)}function ke(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}function Se(t){return!!at&&at in t}function Ce(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||st)}function Te(t){var e=[];if(null!=t)for(var i in Object(t))e.push(i);return e}function Ae(t){return lt.call(t)}function Le(t,e,i){return e=wt(void 0===e?t.length-1:e,0),function(){for(var s=arguments,n=-1,o=wt(s.length-e,0),r=Array(o);++n<o;)r[n]=s[e+n];n=-1;for(var a=Array(e+1);++n<e;)a[n]=s[n];return a[e]=i(r),K(t,this,a)}}function xe(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}var Oe=Ie(vt?function(t,e){return vt(t,"toString",{configurable:!0,enumerable:!1,value:Ye(e),writable:!0})}:Ke);function Ie(t){var e=0,i=0;return function(){var s=Et(),n=r-(s-i);if(i=s,n>0){if(++e>=o)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function Pe(t){if(null!=t){try{return ot.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function $e(t,e){return t===e||t!=t&&e!=e}var Me=se(function(){return arguments}())?se:function(t){return Ve(t)&&rt.call(t,"callee")&&!mt.call(t,"callee")},Fe=Array.isArray;function je(t){return null!=t&&Be(t.length)&&!Re(t)}function Ne(t){return Ve(t)&&je(t)}var De=yt||Ge;function Re(t){if(!We(t))return!1;var e=ie(t);return e==p||e==g||e==h||e==y}function Be(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=a}function We(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Ve(t){return null!=t&&"object"==typeof t}function ze(t){if(!Ve(t)||ie(t)!=v)return!1;var e=pt(t);if(null===e)return!0;var i=rt.call(e,"constructor")&&e.constructor;return"function"==typeof i&&i instanceof i&&ot.call(i)==ct}var qe=Y?X(Y):oe;function He(t){return pe(t,Ue(t))}function Ue(t){return je(t)?Gt(t):re(t)}var Qe=ge((function(t,e,i){ae(t,e,i)}));function Ye(t){return function(){return t}}function Ke(t){return t}function Ge(){return!1}e.exports=Qe}).call(this)}).call(this,void 0!==Bi?Bi:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],2:[function(t,e,i){var s,n;s=self,n=function(){return function(){var t={720:function(t,e,i){i.r(e),i.d(e,{Scene:function(){return ae},Tweenable:function(){return Ct},interpolate:function(){return ee},processTweens:function(){return _t},setBezierFunction:function(){return z},shouldScheduleUpdate:function(){return yt},tween:function(){return Tt},unsetBezierFunction:function(){return q}});var s={};i.r(s),i.d(s,{bounce:function(){return F},bouncePast:function(){return j},easeFrom:function(){return D},easeFromTo:function(){return N},easeInBack:function(){return L},easeInCirc:function(){return S},easeInCubic:function(){return c},easeInExpo:function(){return w},easeInOutBack:function(){return O},easeInOutCirc:function(){return T},easeInOutCubic:function(){return u},easeInOutExpo:function(){return k},easeInOutQuad:function(){return l},easeInOutQuart:function(){return p},easeInOutQuint:function(){return _},easeInOutSine:function(){return y},easeInQuad:function(){return r},easeInQuart:function(){return d},easeInQuint:function(){return g},easeInSine:function(){return b},easeOutBack:function(){return x},easeOutBounce:function(){return A},easeOutCirc:function(){return C},easeOutCubic:function(){return h},easeOutExpo:function(){return E},easeOutQuad:function(){return a},easeOutQuart:function(){return f},easeOutQuint:function(){return m},easeOutSine:function(){return v},easeTo:function(){return R},elastic:function(){return I},linear:function(){return o},swingFrom:function(){return $},swingFromTo:function(){return P},swingTo:function(){return M}});var n={};i.r(n),i.d(n,{afterTween:function(){return Kt},beforeTween:function(){return Yt},doesApply:function(){return Ut},tweenCreated:function(){return Qt}});var o=function(t){return t},r=function(t){return Math.pow(t,2)},a=function(t){return-(Math.pow(t-1,2)-1)},l=function(t){return(t/=.5)<1?.5*Math.pow(t,2):-.5*((t-=2)*t-2)},c=function(t){return Math.pow(t,3)},h=function(t){return Math.pow(t-1,3)+1},u=function(t){return(t/=.5)<1?.5*Math.pow(t,3):.5*(Math.pow(t-2,3)+2)},d=function(t){return Math.pow(t,4)},f=function(t){return-(Math.pow(t-1,4)-1)},p=function(t){return(t/=.5)<1?.5*Math.pow(t,4):-.5*((t-=2)*Math.pow(t,3)-2)},g=function(t){return Math.pow(t,5)},m=function(t){return Math.pow(t-1,5)+1},_=function(t){return(t/=.5)<1?.5*Math.pow(t,5):.5*(Math.pow(t-2,5)+2)},b=function(t){return 1-Math.cos(t*(Math.PI/2))},v=function(t){return Math.sin(t*(Math.PI/2))},y=function(t){return-.5*(Math.cos(Math.PI*t)-1)},w=function(t){return 0===t?0:Math.pow(2,10*(t-1))},E=function(t){return 1===t?1:1-Math.pow(2,-10*t)},k=function(t){return 0===t?0:1===t?1:(t/=.5)<1?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*--t))},S=function(t){return-(Math.sqrt(1-t*t)-1)},C=function(t){return Math.sqrt(1-Math.pow(t-1,2))},T=function(t){return(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},A=function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},L=function(t){var e=1.70158;return t*t*((e+1)*t-e)},x=function(t){var e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},O=function(t){var e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},I=function(t){return-1*Math.pow(4,-8*t)*Math.sin((6*t-1)*(2*Math.PI)/2)+1},P=function(t){var e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},$=function(t){var e=1.70158;return t*t*((e+1)*t-e)},M=function(t){var e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},F=function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},j=function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?2-(7.5625*(t-=1.5/2.75)*t+.75):t<2.5/2.75?2-(7.5625*(t-=2.25/2.75)*t+.9375):2-(7.5625*(t-=2.625/2.75)*t+.984375)},N=function(t){return(t/=.5)<1?.5*Math.pow(t,4):-.5*((t-=2)*Math.pow(t,3)-2)},D=function(t){return Math.pow(t,4)},R=function(t){return Math.pow(t,.25)};function B(t,e,i,s,n,o){var r,a,l,c,h,u=0,d=0,f=0,p=function(t){return((u*t+d)*t+f)*t},g=function(t){return(3*u*t+2*d)*t+f},m=function(t){return t>=0?t:0-t};return u=1-(f=3*e)-(d=3*(s-e)-f),l=1-(h=3*i)-(c=3*(n-i)-h),r=t,a=function(t){return 1/(200*t)}(o),function(t){return((l*t+c)*t+h)*t}(function(t,e){var i,s,n,o,r,a;for(n=t,a=0;a<8;a++){if(o=p(n)-t,m(o)<e)return n;if(r=g(n),m(r)<1e-6)break;n-=o/r}if((n=t)<(i=0))return i;if(n>(s=1))return s;for(;i<s;){if(o=p(n),m(o-t)<e)return n;t>o?i=n:s=n,n=.5*(s-i)+i}return n}(r,a))}var W,V=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.25,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.25,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.75,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.75;return function(n){return B(n,t,e,i,s,1)}},z=function(t,e,i,s,n){var o=V(e,i,s,n);return o.displayName=t,o.x1=e,o.y1=i,o.x2=s,o.y2=n,Ct.formulas[t]=o},q=function(t){return delete Ct.formulas[t]};function H(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function U(t,e){for(var i=0;i<e.length;i++){var s=e[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,s.key,s)}}function Q(t){return Q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Q(t)}function Y(t){return function(t){if(Array.isArray(t))return K(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return K(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?K(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function K(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,s=new Array(e);i<e;i++)s[i]=t[i];return s}function G(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,s)}return i}function X(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?G(Object(i),!0).forEach((function(e){Z(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):G(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function Z(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var J,tt,et,it="linear",st="undefined"!=typeof window?window:i.g,nt="afterTween",ot="afterTweenEnd",rt="beforeTween",at="tweenCreated",lt="function",ct="string",ht=st.requestAnimationFrame||st.webkitRequestAnimationFrame||st.oRequestAnimationFrame||st.msRequestAnimationFrame||st.mozCancelRequestAnimationFrame&&st.mozRequestAnimationFrame||setTimeout,ut=function(){},dt=null,ft=null,pt=X({},s),gt=function(t,e,i,s,n,o,r){var a,l,c,h=t<o?0:(t-o)/n,u=!1;for(var d in r&&r.call&&(u=!0,a=r(h)),e)u||(a=((l=r[d]).call?l:pt[l])(h)),c=i[d],e[d]=c+(s[d]-c)*a;return e},mt=function(t,e){var i=t._timestamp,s=t._currentState,n=t._delay;if(!(e<i+n)){var o=t._duration,r=t._targetState,a=i+n+o,l=e>a?a:e;t._hasEnded=l>=a;var c=o-(a-l),h=t._filters.length>0;if(t._hasEnded)return t._render(r,t._data,c),t.stop(!0);h&&t._applyFilter(rt),l<i+n?i=o=l=1:i+=n,gt(l,s,t._originalState,r,o,i,t._easing),h&&t._applyFilter(nt),t._render(s,t._data,c)}},_t=function(){for(var t,e=Ct.now(),i=dt;i;)t=i._next,mt(i,e),i=t},bt=Date.now||function(){return+new Date},vt=!1,yt=function(t){t&&vt||(vt=t,t&&wt())},wt=function t(){J=bt(),vt&&ht.call(st,t,16.666666666666668),_t()},Et=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:it,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(Array.isArray(e))return V.apply(void 0,Y(e));var s=Q(e);if(pt[e])return pt[e];if(s===ct||s===lt)for(var n in t)i[n]=e;else for(var o in t)i[o]=e[o]||it;return i},kt=function(t){t===dt?(dt=t._next)?dt._previous=null:ft=null:t===ft?(ft=t._previous)?ft._next=null:dt=null:(tt=t._previous,et=t._next,tt._next=et,et._previous=tt),t._previous=t._next=null},St="function"==typeof Promise?Promise:null;W=Symbol.toStringTag;var Ct=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;H(this,t),Z(this,W,"Promise"),this._config={},this._data={},this._delay=0,this._filters=[],this._next=null,this._previous=null,this._timestamp=null,this._hasEnded=!1,this._resolve=null,this._reject=null,this._currentState=e||{},this._originalState={},this._targetState={},this._start=ut,this._render=ut,this._promiseCtor=St,i&&this.setConfig(i)}var e;return e=[{key:"_applyFilter",value:function(t){for(var e=this._filters.length;e>0;e--){var i=this._filters[e-e][t];i&&i(this)}}},{key:"tween",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;return this._isPlaying&&this.stop(),!e&&this._config||this.setConfig(e),this._pausedAtTime=null,this._timestamp=t.now(),this._start(this.get(),this._data),this._delay&&this._render(this._currentState,this._data,0),this._resume(this._timestamp)}},{key:"setConfig",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=this._config;for(var s in e)i[s]=e[s];var n=i.promise,o=void 0===n?this._promiseCtor:n,r=i.start,a=void 0===r?ut:r,l=i.finish,c=i.render,h=void 0===c?this._config.step||ut:c,u=i.step,d=void 0===u?ut:u;this._data=i.data||i.attachment||this._data,this._isPlaying=!1,this._pausedAtTime=null,this._scheduleId=null,this._delay=e.delay||0,this._start=a,this._render=h||d,this._duration=i.duration||500,this._promiseCtor=o,l&&(this._resolve=l);var f=e.from,p=e.to,g=void 0===p?{}:p,m=this._currentState,_=this._originalState,b=this._targetState;for(var v in f)m[v]=f[v];var y=!1;for(var w in m){var E=m[w];y||Q(E)!==ct||(y=!0),_[w]=E,b[w]=g.hasOwnProperty(w)?g[w]:E}if(this._easing=Et(this._currentState,i.easing,this._easing),this._filters.length=0,y){for(var k in t.filters)t.filters[k].doesApply(this)&&this._filters.push(t.filters[k]);this._applyFilter(at)}return this}},{key:"then",value:function(t,e){var i=this;return this._promise=new this._promiseCtor((function(t,e){i._resolve=t,i._reject=e})),this._promise.then(t,e)}},{key:"catch",value:function(t){return this.then().catch(t)}},{key:"finally",value:function(t){return this.then().finally(t)}},{key:"get",value:function(){return X({},this._currentState)}},{key:"set",value:function(t){this._currentState=t}},{key:"pause",value:function(){if(this._isPlaying)return this._pausedAtTime=t.now(),this._isPlaying=!1,kt(this),this}},{key:"resume",value:function(){return this._resume()}},{key:"_resume",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t.now();return null===this._timestamp?this.tween():this._isPlaying?this._promise:(this._pausedAtTime&&(this._timestamp+=e-this._pausedAtTime,this._pausedAtTime=null),this._isPlaying=!0,null===dt?(dt=this,ft=this):(this._previous=ft,ft._next=this,ft=this),this)}},{key:"seek",value:function(e){e=Math.max(e,0);var i=t.now();return this._timestamp+e===0||(this._timestamp=i-e,mt(this,i)),this}},{key:"stop",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this._isPlaying)return this;this._isPlaying=!1,kt(this);var e=this._filters.length>0;return t&&(e&&this._applyFilter(rt),gt(1,this._currentState,this._originalState,this._targetState,1,0,this._easing),e&&(this._applyFilter(nt),this._applyFilter(ot))),this._resolve&&this._resolve({data:this._data,state:this._currentState,tweenable:this}),this._resolve=null,this._reject=null,this}},{key:"cancel",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this._currentState,i=this._data;return this._isPlaying?(this._reject&&this._reject({data:i,state:e,tweenable:this}),this._resolve=null,this._reject=null,this.stop(t)):this}},{key:"isPlaying",value:function(){return this._isPlaying}},{key:"hasEnded",value:function(){return this._hasEnded}},{key:"setScheduleFunction",value:function(e){t.setScheduleFunction(e)}},{key:"data",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return t&&(this._data=X({},t)),this._data}},{key:"dispose",value:function(){for(var t in this)delete this[t]}}],e&&U(t.prototype,e),t}();function Tt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=new Ct;return e.tween(t),e.tweenable=e,e}Z(Ct,"now",(function(){return J})),Z(Ct,"setScheduleFunction",(function(t){return ht=t})),Z(Ct,"filters",{}),Z(Ct,"formulas",pt),yt(!0);var At,Lt,xt=/(\d|-|\.)/,Ot=/([^\-0-9.]+)/g,It=/[0-9.-]+/g,Pt=(At=It.source,Lt=/,\s*/.source,new RegExp("rgba?\\(".concat(At).concat(Lt).concat(At).concat(Lt).concat(At,"(").concat(Lt).concat(At,")?\\)"),"g")),$t=/^.*\(/,Mt=/#([0-9]|[a-f]){3,6}/gi,Ft="VAL",jt=function(t,e){return t.map((function(t,i){return"_".concat(e,"_").concat(i)}))};function Nt(t){return parseInt(t,16)}var Dt=function(t){return"rgb(".concat((e=t,3===(e=e.replace(/#/,"")).length&&(e=(e=e.split(""))[0]+e[0]+e[1]+e[1]+e[2]+e[2]),[Nt(e.substr(0,2)),Nt(e.substr(2,2)),Nt(e.substr(4,2))]).join(","),")");var e},Rt=function(t,e,i){var s=e.match(t),n=e.replace(t,Ft);return s&&s.forEach((function(t){return n=n.replace(Ft,i(t))})),n},Bt=function(t){for(var e in t){var i=t[e];"string"==typeof i&&i.match(Mt)&&(t[e]=Rt(Mt,i,Dt))}},Wt=function(t){var e=t.match(It),i=e.slice(0,3).map(Math.floor),s=t.match($t)[0];if(3===e.length)return"".concat(s).concat(i.join(","),")");if(4===e.length)return"".concat(s).concat(i.join(","),",").concat(e[3],")");throw new Error("Invalid rgbChunk: ".concat(t))},Vt=function(t){return t.match(It)},zt=function(t,e){var i={};return e.forEach((function(e){i[e]=t[e],delete t[e]})),i},qt=function(t,e){return e.map((function(e){return t[e]}))},Ht=function(t,e){return e.forEach((function(e){return t=t.replace(Ft,+e.toFixed(4))})),t},Ut=function(t){for(var e in t._currentState)if("string"==typeof t._currentState[e])return!0;return!1};function Qt(t){var e=t._currentState;[e,t._originalState,t._targetState].forEach(Bt),t._tokenData=function(t){var e,i,s={};for(var n in t){var o=t[n];"string"==typeof o&&(s[n]={formatString:(e=o,i=void 0,i=e.match(Ot),i?(1===i.length||e.charAt(0).match(xt))&&i.unshift(""):i=["",""],i.join(Ft)),chunkNames:jt(Vt(o),n)})}return s}(e)}function Yt(t){var e=t._currentState,i=t._originalState,s=t._targetState,n=t._easing,o=t._tokenData;!function(t,e){var i=function(i){var s=e[i].chunkNames,n=t[i];if("string"==typeof n){var o=n.split(" "),r=o[o.length-1];s.forEach((function(e,i){return t[e]=o[i]||r}))}else s.forEach((function(e){return t[e]=n}));delete t[i]};for(var s in e)i(s)}(n,o),[e,i,s].forEach((function(t){return function(t,e){var i=function(i){Vt(t[i]).forEach((function(s,n){return t[e[i].chunkNames[n]]=+s})),delete t[i]};for(var s in e)i(s)}(t,o)}))}function Kt(t){var e=t._currentState,i=t._originalState,s=t._targetState,n=t._easing,o=t._tokenData;[e,i,s].forEach((function(t){return function(t,e){for(var i in e){var s=e[i],n=s.chunkNames,o=s.formatString,r=Ht(o,qt(zt(t,n),n));t[i]=Rt(Pt,r,Wt)}}(t,o)})),function(t,e){for(var i in e){var s=e[i].chunkNames,n=t[s[0]];t[i]="string"==typeof n?s.map((function(e){var i=t[e];return delete t[e],i})).join(" "):n}}(n,o)}function Gt(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,s)}return i}function Xt(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Gt(Object(i),!0).forEach((function(e){Zt(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Gt(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function Zt(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var Jt=new Ct,te=Ct.filters,ee=function(t,e,i,s){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=Xt({},t),r=Et(t,s);for(var a in Jt._filters.length=0,Jt.set({}),Jt._currentState=o,Jt._originalState=t,Jt._targetState=e,Jt._easing=r,te)te[a].doesApply(Jt)&&Jt._filters.push(te[a]);Jt._applyFilter("tweenCreated"),Jt._applyFilter("beforeTween");var l=gt(i,o,t,e,1,n,r);return Jt._applyFilter("afterTween"),l};function ie(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,s=new Array(e);i<e;i++)s[i]=t[i];return s}function se(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ne(t,e){for(var i=0;i<e.length;i++){var s=e[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,s.key,s)}}function oe(t,e){var i=e.get(t);if(!i)throw new TypeError("attempted to get private field on non-instance");return i.get?i.get.call(t):i.value}var re=new WeakMap,ae=function(){function t(){se(this,t),re.set(this,{writable:!0,value:[]});for(var e=arguments.length,i=new Array(e),s=0;s<e;s++)i[s]=arguments[s];i.forEach(this.add.bind(this))}var e;return(e=[{key:"add",value:function(t){return oe(this,re).push(t),t}},{key:"remove",value:function(t){var e=oe(this,re).indexOf(t);return~e&&oe(this,re).splice(e,1),t}},{key:"empty",value:function(){return this.tweenables.map(this.remove.bind(this))}},{key:"isPlaying",value:function(){return oe(this,re).some((function(t){return t.isPlaying()}))}},{key:"play",value:function(){return oe(this,re).forEach((function(t){return t.tween()})),this}},{key:"pause",value:function(){return oe(this,re).forEach((function(t){return t.pause()})),this}},{key:"resume",value:function(){return this.playingTweenables.forEach((function(t){return t.resume()})),this}},{key:"stop",value:function(t){return oe(this,re).forEach((function(e){return e.stop(t)})),this}},{key:"tweenables",get:function(){return function(t){if(Array.isArray(t))return ie(t)}(t=oe(this,re))||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return ie(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?ie(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();var t}},{key:"playingTweenables",get:function(){return oe(this,re).filter((function(t){return!t.hasEnded()}))}},{key:"promises",get:function(){return oe(this,re).map((function(t){return t.then()}))}}])&&ne(t.prototype,e),t}();Ct.filters.token=n}},e={};function i(s){if(e[s])return e[s].exports;var n=e[s]={exports:{}};return t[s](n,n.exports,i),n.exports}return i.d=function(t,e){for(var s in e)i.o(e,s)&&!i.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:e[s]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i(720)}()},"object"==typeof i&&"object"==typeof e?e.exports=n():"object"==typeof i?i.shifty=n():s.shifty=n()},{}],3:[function(t,e,i){var s=t("./shape"),n=t("./utils"),o=function(t,e){this._pathTemplate="M 50,50 m 0,-{radius} a {radius},{radius} 0 1 1 0,{2radius} a {radius},{radius} 0 1 1 0,-{2radius}",this.containerAspectRatio=1,s.apply(this,arguments)};o.prototype=new s,o.prototype.constructor=o,o.prototype._pathString=function(t){var e=t.strokeWidth;t.trailWidth&&t.trailWidth>t.strokeWidth&&(e=t.trailWidth);var i=50-e/2;return n.render(this._pathTemplate,{radius:i,"2radius":2*i})},o.prototype._trailString=function(t){return this._pathString(t)},e.exports=o},{"./shape":8,"./utils":10}],4:[function(t,e,i){var s=t("./shape"),n=t("./utils"),o=function(t,e){this._pathTemplate=e.vertical?"M {center},100 L {center},0":"M 0,{center} L 100,{center}",s.apply(this,arguments)};o.prototype=new s,o.prototype.constructor=o,o.prototype._initializeSvg=function(t,e){var i=e.vertical?"0 0 "+e.strokeWidth+" 100":"0 0 100 "+e.strokeWidth;t.setAttribute("viewBox",i),t.setAttribute("preserveAspectRatio","none")},o.prototype._pathString=function(t){return n.render(this._pathTemplate,{center:t.strokeWidth/2})},o.prototype._trailString=function(t){return this._pathString(t)},e.exports=o},{"./shape":8,"./utils":10}],5:[function(t,e,i){e.exports={Line:t("./line"),Circle:t("./circle"),SemiCircle:t("./semicircle"),Square:t("./square"),Path:t("./path"),Shape:t("./shape"),utils:t("./utils")}},{"./circle":3,"./line":4,"./path":6,"./semicircle":7,"./shape":8,"./square":9,"./utils":10}],6:[function(t,e,i){var s=t("shifty"),n=t("./utils"),o=s.Tweenable,r={easeIn:"easeInCubic",easeOut:"easeOutCubic",easeInOut:"easeInOutCubic"},a=function t(e,i){if(!(this instanceof t))throw new Error("Constructor was called without new keyword");var s;i=n.extend({delay:0,duration:800,easing:"linear",from:{},to:{},step:function(){}},i),s=n.isString(e)?document.querySelector(e):e,this.path=s,this._opts=i,this._tweenable=null;var o=this.path.getTotalLength();this.path.style.strokeDasharray=o+" "+o,this.set(0)};a.prototype.value=function(){var t=this._getComputedDashOffset(),e=this.path.getTotalLength();return parseFloat((1-t/e).toFixed(6),10)},a.prototype.set=function(t){this.stop(),this.path.style.strokeDashoffset=this._progressToOffset(t);var e=this._opts.step;if(n.isFunction(e)){var i=this._easing(this._opts.easing);e(this._calculateTo(t,i),this._opts.shape||this,this._opts.attachment)}},a.prototype.stop=function(){this._stopTween(),this.path.style.strokeDashoffset=this._getComputedDashOffset()},a.prototype.animate=function(t,e,i){e=e||{},n.isFunction(e)&&(i=e,e={});var s=n.extend({},e),r=n.extend({},this._opts);e=n.extend(r,e);var a=this._easing(e.easing),l=this._resolveFromAndTo(t,a,s);this.stop(),this.path.getBoundingClientRect();var c=this._getComputedDashOffset(),h=this._progressToOffset(t),u=this;this._tweenable=new o,this._tweenable.tween({from:n.extend({offset:c},l.from),to:n.extend({offset:h},l.to),duration:e.duration,delay:e.delay,easing:a,step:function(t){u.path.style.strokeDashoffset=t.offset;var i=e.shape||u;e.step(t,i,e.attachment)}}).then((function(t){n.isFunction(i)&&i()})).catch((function(t){throw console.error("Error in tweening:",t),t}))},a.prototype._getComputedDashOffset=function(){var t=window.getComputedStyle(this.path,null);return parseFloat(t.getPropertyValue("stroke-dashoffset"),10)},a.prototype._progressToOffset=function(t){var e=this.path.getTotalLength();return e-t*e},a.prototype._resolveFromAndTo=function(t,e,i){return i.from&&i.to?{from:i.from,to:i.to}:{from:this._calculateFrom(e),to:this._calculateTo(t,e)}},a.prototype._calculateFrom=function(t){return s.interpolate(this._opts.from,this._opts.to,this.value(),t)},a.prototype._calculateTo=function(t,e){return s.interpolate(this._opts.from,this._opts.to,t,e)},a.prototype._stopTween=function(){null!==this._tweenable&&(this._tweenable.stop(!0),this._tweenable=null)},a.prototype._easing=function(t){return r.hasOwnProperty(t)?r[t]:t},e.exports=a},{"./utils":10,shifty:2}],7:[function(t,e,i){var s=t("./shape"),n=t("./circle"),o=t("./utils"),r=function(t,e){this._pathTemplate="M 50,50 m -{radius},0 a {radius},{radius} 0 1 1 {2radius},0",this.containerAspectRatio=2,s.apply(this,arguments)};r.prototype=new s,r.prototype.constructor=r,r.prototype._initializeSvg=function(t,e){t.setAttribute("viewBox","0 0 100 50")},r.prototype._initializeTextContainer=function(t,e,i){t.text.style&&(i.style.top="auto",i.style.bottom="0",t.text.alignToBottom?o.setStyle(i,"transform","translate(-50%, 0)"):o.setStyle(i,"transform","translate(-50%, 50%)"))},r.prototype._pathString=n.prototype._pathString,r.prototype._trailString=n.prototype._trailString,e.exports=r},{"./circle":3,"./shape":8,"./utils":10}],8:[function(t,e,i){var s=t("./path"),n=t("./utils"),o="Object is destroyed",r=function t(e,i){if(!(this instanceof t))throw new Error("Constructor was called without new keyword");if(0!==arguments.length){this._opts=n.extend({color:"#555",strokeWidth:1,trailColor:null,trailWidth:null,fill:null,text:{style:{color:null,position:"absolute",left:"50%",top:"50%",padding:0,margin:0,transform:{prefix:!0,value:"translate(-50%, -50%)"}},autoStyleContainer:!0,alignToBottom:!0,value:null,className:"progressbar-text"},svgStyle:{display:"block",width:"100%"},warnings:!1},i,!0),n.isObject(i)&&void 0!==i.svgStyle&&(this._opts.svgStyle=i.svgStyle),n.isObject(i)&&n.isObject(i.text)&&void 0!==i.text.style&&(this._opts.text.style=i.text.style);var o,r=this._createSvgView(this._opts);if(!(o=n.isString(e)?document.querySelector(e):e))throw new Error("Container does not exist: "+e);this._container=o,this._container.appendChild(r.svg),this._opts.warnings&&this._warnContainerAspectRatio(this._container),this._opts.svgStyle&&n.setStyles(r.svg,this._opts.svgStyle),this.svg=r.svg,this.path=r.path,this.trail=r.trail,this.text=null;var a=n.extend({attachment:void 0,shape:this},this._opts);this._progressPath=new s(r.path,a),n.isObject(this._opts.text)&&null!==this._opts.text.value&&this.setText(this._opts.text.value)}};r.prototype.animate=function(t,e,i){if(null===this._progressPath)throw new Error(o);this._progressPath.animate(t,e,i)},r.prototype.stop=function(){if(null===this._progressPath)throw new Error(o);void 0!==this._progressPath&&this._progressPath.stop()},r.prototype.pause=function(){if(null===this._progressPath)throw new Error(o);void 0!==this._progressPath&&this._progressPath._tweenable&&this._progressPath._tweenable.pause()},r.prototype.resume=function(){if(null===this._progressPath)throw new Error(o);void 0!==this._progressPath&&this._progressPath._tweenable&&this._progressPath._tweenable.resume()},r.prototype.destroy=function(){if(null===this._progressPath)throw new Error(o);this.stop(),this.svg.parentNode.removeChild(this.svg),this.svg=null,this.path=null,this.trail=null,this._progressPath=null,null!==this.text&&(this.text.parentNode.removeChild(this.text),this.text=null)},r.prototype.set=function(t){if(null===this._progressPath)throw new Error(o);this._progressPath.set(t)},r.prototype.value=function(){if(null===this._progressPath)throw new Error(o);return void 0===this._progressPath?0:this._progressPath.value()},r.prototype.setText=function(t){if(null===this._progressPath)throw new Error(o);null===this.text&&(this.text=this._createTextContainer(this._opts,this._container),this._container.appendChild(this.text)),n.isObject(t)?(n.removeChildren(this.text),this.text.appendChild(t)):this.text.innerHTML=t},r.prototype._createSvgView=function(t){var e=document.createElementNS("http://www.w3.org/2000/svg","svg");this._initializeSvg(e,t);var i=null;(t.trailColor||t.trailWidth)&&(i=this._createTrail(t),e.appendChild(i));var s=this._createPath(t);return e.appendChild(s),{svg:e,path:s,trail:i}},r.prototype._initializeSvg=function(t,e){t.setAttribute("viewBox","0 0 100 100")},r.prototype._createPath=function(t){var e=this._pathString(t);return this._createPathElement(e,t)},r.prototype._createTrail=function(t){var e=this._trailString(t),i=n.extend({},t);return i.trailColor||(i.trailColor="#eee"),i.trailWidth||(i.trailWidth=i.strokeWidth),i.color=i.trailColor,i.strokeWidth=i.trailWidth,i.fill=null,this._createPathElement(e,i)},r.prototype._createPathElement=function(t,e){var i=document.createElementNS("http://www.w3.org/2000/svg","path");return i.setAttribute("d",t),i.setAttribute("stroke",e.color),i.setAttribute("stroke-width",e.strokeWidth),e.fill?i.setAttribute("fill",e.fill):i.setAttribute("fill-opacity","0"),i},r.prototype._createTextContainer=function(t,e){var i=document.createElement("div");i.className=t.text.className;var s=t.text.style;return s&&(t.text.autoStyleContainer&&(e.style.position="relative"),n.setStyles(i,s),s.color||(i.style.color=t.color)),this._initializeTextContainer(t,e,i),i},r.prototype._initializeTextContainer=function(t,e,i){},r.prototype._pathString=function(t){throw new Error("Override this function for each progress bar")},r.prototype._trailString=function(t){throw new Error("Override this function for each progress bar")},r.prototype._warnContainerAspectRatio=function(t){if(this.containerAspectRatio){var e=window.getComputedStyle(t,null),i=parseFloat(e.getPropertyValue("width"),10),s=parseFloat(e.getPropertyValue("height"),10);n.floatEquals(this.containerAspectRatio,i/s)||(console.warn("Incorrect aspect ratio of container","#"+t.id,"detected:",e.getPropertyValue("width")+"(width)","/",e.getPropertyValue("height")+"(height)","=",i/s),console.warn("Aspect ratio of should be",this.containerAspectRatio))}},e.exports=r},{"./path":6,"./utils":10}],9:[function(t,e,i){var s=t("./shape"),n=t("./utils"),o=function(t,e){this._pathTemplate="M 0,{halfOfStrokeWidth} L {width},{halfOfStrokeWidth} L {width},{width} L {halfOfStrokeWidth},{width} L {halfOfStrokeWidth},{strokeWidth}",this._trailTemplate="M {startMargin},{halfOfStrokeWidth} L {width},{halfOfStrokeWidth} L {width},{width} L {halfOfStrokeWidth},{width} L {halfOfStrokeWidth},{halfOfStrokeWidth}",s.apply(this,arguments)};o.prototype=new s,o.prototype.constructor=o,o.prototype._pathString=function(t){var e=100-t.strokeWidth/2;return n.render(this._pathTemplate,{width:e,strokeWidth:t.strokeWidth,halfOfStrokeWidth:t.strokeWidth/2})},o.prototype._trailString=function(t){var e=100-t.strokeWidth/2;return n.render(this._trailTemplate,{width:e,strokeWidth:t.strokeWidth,halfOfStrokeWidth:t.strokeWidth/2,startMargin:t.strokeWidth/2-t.trailWidth/2})},e.exports=o},{"./shape":8,"./utils":10}],10:[function(t,e,i){var s=t("lodash.merge"),n="Webkit Moz O ms".split(" "),o=.001;function r(t,e){var i=t;for(var s in e)if(e.hasOwnProperty(s)){var n=e[s],o=new RegExp("\\{"+s+"\\}","g");i=i.replace(o,n)}return i}function a(t,e,i){for(var s=t.style,o=0;o<n.length;++o)s[n[o]+c(e)]=i;s[e]=i}function l(t,e){p(e,(function(e,i){null!=e&&(f(e)&&!0===e.prefix?a(t,i,e.value):t.style[i]=e)}))}function c(t){return t.charAt(0).toUpperCase()+t.slice(1)}function h(t){return"string"==typeof t||t instanceof String}function u(t){return"function"==typeof t}function d(t){return"[object Array]"===Object.prototype.toString.call(t)}function f(t){return!d(t)&&"object"==typeof t&&!!t}function p(t,e){for(var i in t)t.hasOwnProperty(i)&&e(t[i],i)}function g(t,e){return Math.abs(t-e)<o}function m(t){for(;t.firstChild;)t.removeChild(t.firstChild)}e.exports={extend:s,render:r,setStyle:a,setStyles:l,capitalize:c,isString:h,isFunction:u,isObject:f,forEachObject:p,floatEquals:g,removeChildren:m}},{"lodash.merge":1}]},{},[5])(5)}));const zi=(qi=Vi)&&qi.__esModule&&Object.prototype.hasOwnProperty.call(qi,"default")?qi.default:qi;var qi;const Hi={color:"#5C6F82",trailColor:"#D9DADB",strokeWidth:24,trailWidth:12,easing:"easeInOut",duration:1400,text:{autoStyleContainer:!1},animate:!0,value:0};class Ui extends it{constructor(t,e){super(t),this._config=this._getConfig(e),this._bar=null,this._init()}static get NAME(){return"progressdonut"}set(t){this._config.animate?this._bar.animate(t):this._bar.set(t)}dispose(){this._bar.destroy(),super.dispose()}_getConfig(t){return t={...Hi,step:this._getStepCallback(),...tt.getDataAttributes(this._element),..."object"==typeof t?t:{}}}_getStepCallback(){return(t,e)=>{const i=Math.round(100*e.value());e.setText(i+"%")}}_init(){this._bar=new zi.Circle(this._element,this._config),this._config.value>0&&this.set(this._config.value)}}st.find("[data-bs-progress-donut]").forEach((t=>{Ui.getOrCreateInstance(t)}));const Qi="dragend",Yi="dragover",Ki="dragenter",Gi="dragleave",Xi="drop",Zi="success",Ji="dragover",ts="loading",es="[data-bs-upload-dragdrop]";class is extends it{constructor(t){super(t);const e=st.findOne("[data-bs-progress-donut]",this._element);e&&(this._donut=Ui.getOrCreateInstance(e)),this._bindEvents()}static get NAME(){return"upload"}progress(t){this._donut.set(t)}start(){this.reset(),this._element.classList.add(ts)}success(){this._element.classList.remove(ts),this._element.classList.add(Zi)}reset(){this._element.classList.remove(ts),this._element.classList.remove(Zi),this._donut.set(0)}dispose(){this._donut.dispose(),super.dispose()}_bindEvents(){G.on(this._element,"drag",(t=>this._preventEvent(t))),G.on(this._element,"dragstart",(t=>this._preventEvent(t))),G.on(this._element,Qi,(t=>this._preventEvent(t))),G.on(this._element,Yi,(t=>this._preventEvent(t))),G.on(this._element,Ki,(t=>this._preventEvent(t))),G.on(this._element,Gi,(t=>this._preventEvent(t))),G.on(this._element,Xi,(t=>this._preventEvent(t))),G.on(this._element,Yi,(()=>this._dropIn())),G.on(this._element,Ki,(()=>this._dropIn())),G.on(this._element,Gi,(()=>this._dropOut())),G.on(this._element,Qi,(()=>this._dropOut())),G.on(this._element,Xi,(()=>this._dropOut())),G.on(this._element,Xi,(()=>this._drop()))}_preventEvent(t){t.preventDefault(),t.stopPropagation()}_dropIn(){this._isSuccess()||this._element.classList.add(Ji)}_dropOut(){this._isSuccess()||this._element.classList.remove(Ji)}_drop(){this._isSuccess()||this.start()}_isSuccess(){return this._element.classList.contains(Zi)}}const ss=t=>{let e=t.matches&&t.matches(es)?t:t.closest?t.closest(es):null;return e&&is.getOrCreateInstance(e),null};"undefined"!=typeof document&&(document.addEventListener("dragenter",(function(t){ss(t.target)})),G.on(document,"click.bs.upload.data-api",es+" label",(function(){ss(this)})));const ns="back-to-top-show",os={positionTop:0,scrollLimit:100,duration:800,easing:"easeInOutSine"};class rs extends it{constructor(t,e){super(t),this._config=this._getConfig(e),this._scrollCb=null,this._isAnim=!1,this._prevScrollBehavior="",this._bindEvents()}static get NAME(){return"backtotop"}show(){this._element.classList.contains(ns)||this._element.classList.add(ns)}hide(){this._element.classList.contains(ns)&&this._element.classList.remove(ns)}toggleShow(){"undefined"!=typeof document&&document.scrollingElement.scrollTop>this._config.scrollLimit?this.show():this.hide()}scrollToTop(){this._isAnim||(this._isAnim=!0,Ie(this._config.positionTop,{duration:this._config.duration,easing:this._config.easing,complete:()=>{this._isAnim=!1}}))}dispose(){this._scrollCb&&this._scrollCb.dispose(),super.dispose()}_getConfig(t){return t={...os,...tt.getDataAttributes(this._element),..."object"==typeof t?t:{}}}_bindEvents(){this._scrollCb=xe((()=>this.toggleShow())),G.on(this._element,"click.bs.backtotop",(t=>{t.preventDefault(),this.scrollToTop()}))}}xe((()=>{st.find('[data-bs-toggle="backtotop"]').map((t=>{rs.getOrCreateInstance(t)}))}));const as=".bs.historyback",ls=`click${as}`,cs=`click${as}.data-api`;class hs extends it{constructor(t){super(t),this._bindEvents()}static get NAME(){return"historyback"}back(){"undefined"!=typeof window&&window.history.back()}_bindEvents(){G.on(this._element,ls,(t=>{t.preventDefault(),this.back()}))}}G.on(document,cs,'[data-bs-toggle="historyback"]',(function(t){t.preventDefault();hs.getOrCreateInstance(this).back()}));const us=".bs.historyback",ds=`click${us}`,fs=`click${us}.data-api`,ps={duration:800,easing:"easeInOutSine"};class gs extends it{constructor(t,e){super(t),this._config=this._getConfig(e),this._bindEvents()}static get NAME(){return"historyback"}goToTarget(){const t=v(this._element);t&&Ie(t.offsetTop,{duration:this._config.duration,easing:this._config.easing})}_getConfig(t){return t={...ps,...tt.getDataAttributes(this._element),..."object"==typeof t?t:{}}}_bindEvents(){G.on(this._element,ds,(t=>{t.preventDefault(),this.goToTarget()}))}}G.on(document,fs,'[data-bs-toggle="forward"]',(function(t){t.preventDefault();gs.getOrCreateInstance(this).goToTarget()}));const ms="masonry-loader",_s=`.${ms}`,bs={percentPosition:!0};class vs extends it{constructor(t,e){super(t),this._config=this._getConfig(e),this._masonry=null,this._images=st.find("img",this._element),this._loadCounter=0,this._init()}static get NAME(){return"masonry"}dispose(){this._masonry&&(this._masonry.destroy(),this._masonry=null),super.dispose()}_getConfig(t){return t={...bs,...tt.getDataAttributes(this._element),..."object"==typeof t?t:{}}}_init(){this._images.length>0?this._images.forEach((t=>{const e=new Image;e.onload=()=>this._onLoadEnd(),e.src=t.src})):this._initMasonry()}_onLoadEnd(){this._loadCounter++,this._loadCounter>=this._images.length&&this._initMasonry()}_initMasonry(){this._masonry=new n(this._element,this._config)}_createLoader(){if("undefined"==typeof document)return;const t=document.createElement("div");return t.classList.add(ms,"fade","d-flex","justify-content-center","align-items-center"),t.innerHTML='<div class="progress-spinner progress-spinner-active"><span class="visually-hidden">Caricamento...</span></div>',this._element.appendChild(t),t}_getOrCreateLoader(){const t=st.findOne(_s,this._element);return t||this._createLoader()}_destroyLoader(){const t=st.findOne(_s,this._element);t&&t.remove()}_showLoader(){this._getOrCreateLoader().classList.add("show")}_hideLoader(){this._destroyLoader()}}const ys=st.find('[data-bs-toggle="masonry"]');ys.length>0&&ys.forEach((t=>{vs.getOrCreateInstance(t)}));const ws=".bs.list",Es=`click${ws}`,ks=`click${ws}.data-api`,Ss="active",Cs="input[type=checkbox]";class Ts extends it{constructor(t){super(t),this._init()}static get NAME(){return"list"}toggleCheckbox(t){const e=st.findOne("input",t);e&&(e.checked?(e.checked=!1,t.classList.remove(Ss)):(e.checked=!0,t.classList.add(Ss)))}_init(){this._initCheckbox()}_initCheckbox(){st.find(Cs,this._element).forEach((t=>{G.on(t.closest("a"),Es,(e=>{e.preventDefault(),this.toggleCheckbox(t.closest("a"))}))}))}}st.find("[data-bs-list-checkbox]").forEach((t=>{st.find(Cs,t).forEach((e=>{G.one(e.closest("a"),ks,(e=>{if(!Ts.getInstance(t)){e.preventDefault();Ts.getOrCreateInstance(t).toggleCheckbox(e.currentTarget)}}))}))}));const As=".bs.transfer",Ls=".data-api",xs=`click${As}${Ls}`,Os=`keyup${As}${Ls}`,Is=`click${As}`,Ps="active",$s="source",Ms="semi-checked",Fs="[data-bs-transfer]",js=".transfer-header input",Ns=".transfer-group input",Ds=".it-transfer-wrapper",Rs=".transfer-group",Bs=`${Ds}.source`,Ws=`${Ds}.target`,Vs=".form-check";class zs extends it{constructor(t){super(t),this._addBtnElement=st.findOne("a.transfer",this._element),this._invBtnElement=st.findOne("a.backtransfer",this._element),this._resetBtnElement=st.findOne("a.reset",this._element),this._listDefault={source:st.find(Bs+" "+Rs+" "+Vs,this._element),target:st.find(Ws+" "+Rs+" "+Vs,this._element)},this._bindEvents()}static get NAME(){return"transfer"}_bindEvents(){st.find(js,this._element).forEach((t=>{G.on(t,Is,(()=>{this._checkListHeader(t.closest(Ds))}))})),st.find(Ns,this._element).forEach((t=>{G.on(t,Is,(()=>{this._checkList(t.closest(Ds))}))})),G.on(this._addBtnElement,Is,(t=>{t.preventDefault(),this._disableElement(this._addBtnElement),this._addItems()})),G.on(this._invBtnElement,Is,(t=>{t.preventDefault(),this._disableElement(this._invBtnElement),this._addItems(!0)})),G.on(this._resetBtnElement,Is,(t=>{t.preventDefault(),this._disableElement(this._addBtnElement),this._disableElement(this._invBtnElement),this._disableElement(this._resetBtnElement),this._resetAll()}))}_disableElement(t){t.classList.remove(Ps),t.setAttribute("disabled","disabled"),t.setAttribute("aria-disabled","true")}_enableElement(t){t.classList.add(Ps),t.removeAttribute("disabled"),t.removeAttribute("aria-disabled")}_getScopeData(t){return{scope:t,list:st.find(Ns,t),listChecked:st.find(Ns+":checked",t),head:st.findOne(".transfer-header",t),inputHead:st.findOne(js,t),labelNumHead:st.findOne(".transfer-header span.num",t),group:st.findOne(Rs,t)}}_checkList(t){const e=this._getScopeData(t);0==e.listChecked.length?(e.inputHead.classList.remove(Ms),e.inputHead.checked=!0,t.classList.contains($s)?this._disableElement(this._addBtnElement):this._disableElement(this._invBtnElement)):(e.listChecked.length==e.list.length?(e.inputHead.classList.remove(Ms),e.inputHead.checked=!0):(e.inputHead.classList.add(Ms),e.inputHead.checked=!1),t.classList.contains($s)?this._enableElement(this._addBtnElement):this._enableElement(this._invBtnElement))}_checkListHeader(t){const e=this._getScopeData(t);e.listChecked.length>0?(e.list.forEach((t=>{t.checked=!1})),e.inputHead.classList.remove(Ms),e.inputHead.checked=!1,t.classList.contains($s)?this._disableElement(this._addBtnElement):this._disableElement(this._invBtnElement)):(e.list.forEach((t=>{t.checked=!0})),t.classList.contains($s)?this._enableElement(this._addBtnElement):this._enableElement(this._invBtnElement))}_addItems(t){const e=this._getScopeData(st.findOne(t?Ws:Bs,this._element)),i=this._getScopeData(st.findOne(t?Bs:Ws,this._element)),s=e.listChecked,n=e.inputHead,o=e.labelNumHead,r=s.length,a=e.list.length,l=i.group,c=i.list.length+r,h=i.labelNumHead,u=i.inputHead;s.forEach((t=>{const e=t.closest(Vs);e.remove(),l.appendChild(e),t.checked=!1}));const d=a-r,f=c;o.innerText=d,h.innerText=f,0==d&&n.setAttribute("disabled",!0),f>0&&u.removeAttribute("disabled"),n.classList.remove(Ms),n.checked=!1,this._enableElement(this._resetBtnElement)}_resetAll(){const t={source:this._getScopeData(st.findOne(Bs,this._element)),target:this._getScopeData(st.findOne(Ws,this._element))};Object.keys(t).forEach((e=>{t[e].list.forEach((t=>t.closest(Vs).remove()))})),Object.keys(t).forEach((e=>{this._listDefault[e].forEach((i=>{i.checked=!1,t[e].group.appendChild(i)})),t[e].labelNumHead.innerText=this._listDefault[e].length,t[e].inputHead.removeAttribute("disabled"),t[e].inputHead.classList.remove(Ms),t[e].inputHead.checked=!1}))}}G.on(document,xs,Fs+" .form-check label",(function(){zs.getOrCreateInstance(this.closest(Fs))})),G.on(document,Os,Fs+" .form-check label",(function(){zs.getOrCreateInstance(this.closest(Fs))}));const qs=".bs.alert",Hs=`close${qs}`,Us=`closed${qs}`;let Qs=class t extends it{static get NAME(){return"alert"}close(){if(G.trigger(this._element,Hs).defaultPrevented)return;this._element.classList.remove("show");const t=this._element.classList.contains("fade");this._queueCallback((()=>this._destroyElement()),this._element,t)}_destroyElement(){this._element.remove(),G.trigger(this._element,Us),this.dispose()}static jQueryInterface(e){return this.each((function(){const i=t.getOrCreateInstance(this);if("string"==typeof e){if(void 0===i[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);i[e](this)}}))}};kt(Qs,"close"),I(Qs);const Ys='[data-bs-toggle="button"]';let Ks=class t extends it{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(e){return this.each((function(){const i=t.getOrCreateInstance(this);"toggle"===e&&i[e]()}))}};G.on(document,"click.bs.button.data-api",Ys,(t=>{t.preventDefault();const e=t.target.closest(Ys);Ks.getOrCreateInstance(e).toggle()})),I(Ks);const Gs=".bs.swipe",Xs=`touchstart${Gs}`,Zs=`touchmove${Gs}`,Js=`touchend${Gs}`,tn=`pointerdown${Gs}`,en=`pointerup${Gs}`,sn={endCallback:null,leftCallback:null,rightCallback:null},nn={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class on extends et{constructor(t,e){super(),this._element=t,t&&on.isSupported()&&(this._config=this._getConfig(e),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return sn}static get DefaultType(){return nn}static get NAME(){return"swipe"}dispose(){G.off(this._element,Gs)}_start(t){this._supportPointerEvents?this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX):this._deltaX=t.touches[0].clientX}_end(t){this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX-this._deltaX),this._handleSwipe(),P(this._config.endCallback)}_move(t){this._deltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-this._deltaX}_handleSwipe(){const t=Math.abs(this._deltaX);if(t<=40)return;const e=t/this._deltaX;this._deltaX=0,e&&P(e>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(G.on(this._element,tn,(t=>this._start(t))),G.on(this._element,en,(t=>this._end(t))),this._element.classList.add("pointer-event")):(G.on(this._element,Xs,(t=>this._start(t))),G.on(this._element,Zs,(t=>this._move(t))),G.on(this._element,Js,(t=>this._end(t))))}_eventIsPointerPenTouch(t){return this._supportPointerEvents&&("pen"===t.pointerType||"touch"===t.pointerType)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const rn=".bs.carousel",an=".data-api",ln="ArrowLeft",cn="ArrowRight",hn="next",un="prev",dn="left",fn="right",pn=`slide${rn}`,gn=`slid${rn}`,mn=`keydown${rn}`,_n=`mouseenter${rn}`,bn=`mouseleave${rn}`,vn=`dragstart${rn}`,yn=`load${rn}${an}`,wn=`click${rn}${an}`,En="carousel",kn="active",Sn=".active",Cn=".carousel-item",Tn=Sn+Cn,An={[ln]:fn,[cn]:dn},Ln={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},xn={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};let On=class t extends it{constructor(t,e){super(t,e),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=st.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===En&&this.cycle()}static get Default(){return Ln}static get DefaultType(){return xn}static get NAME(){return"carousel"}next(){this._slide(hn)}nextWhenVisible(){!document.hidden&&k(this._element)&&this.next()}prev(){this._slide(un)}pause(){this._isSliding&&y(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval((()=>this.nextWhenVisible()),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?G.one(this._element,gn,(()=>this.cycle())):this.cycle())}to(t){const e=this._getItems();if(t>e.length-1||t<0)return;if(this._isSliding)return void G.one(this._element,gn,(()=>this.to(t)));const i=this._getItemIndex(this._getActive());if(i===t)return;const s=t>i?hn:un;this._slide(s,e[t])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(t){return t.defaultInterval=t.interval,t}_addEventListeners(){this._config.keyboard&&G.on(this._element,mn,(t=>this._keydown(t))),"hover"===this._config.pause&&(G.on(this._element,_n,(()=>this.pause())),G.on(this._element,bn,(()=>this._maybeEnableCycle()))),this._config.touch&&on.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const t of st.find(".carousel-item img",this._element))G.on(t,vn,(t=>t.preventDefault()));const t={leftCallback:()=>this._slide(this._directionToOrder(dn)),rightCallback:()=>this._slide(this._directionToOrder(fn)),endCallback:()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout((()=>this._maybeEnableCycle()),500+this._config.interval))}};this._swipeHelper=new on(this._element,t)}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const e=An[t.key];e&&(t.preventDefault(),this._slide(this._directionToOrder(e)))}_getItemIndex(t){return this._getItems().indexOf(t)}_setActiveIndicatorElement(t){if(!this._indicatorsElement)return;const e=st.findOne(Sn,this._indicatorsElement);e.classList.remove(kn),e.removeAttribute("aria-current");const i=st.findOne(`[data-bs-slide-to="${t}"]`,this._indicatorsElement);i&&(i.classList.add(kn),i.setAttribute("aria-current","true"))}_updateInterval(){const t=this._activeElement||this._getActive();if(!t)return;const e=Number.parseInt(t.getAttribute("data-bs-interval"),10);this._config.interval=e||this._config.defaultInterval}_slide(t,e=null){if(this._isSliding)return;const i=this._getActive(),s=t===hn,n=e||M(this._getItems(),i,s,this._config.wrap);if(n===i)return;const o=this._getItemIndex(n),r=e=>G.trigger(this._element,e,{relatedTarget:n,direction:this._orderToDirection(t),from:this._getItemIndex(i),to:o});if(r(pn).defaultPrevented)return;if(!i||!n)return;const a=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(o),this._activeElement=n;const l=s?"carousel-item-start":"carousel-item-end",c=s?"carousel-item-next":"carousel-item-prev";n.classList.add(c),A(n),i.classList.add(l),n.classList.add(l);this._queueCallback((()=>{n.classList.remove(l,c),n.classList.add(kn),i.classList.remove(kn,c,l),this._isSliding=!1,r(gn)}),i,this._isAnimated()),a&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return st.findOne(Tn,this._element)}_getItems(){return st.find(Cn,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(t){return O()?t===dn?un:hn:t===dn?hn:un}_orderToDirection(t){return O()?t===un?dn:fn:t===un?fn:dn}static jQueryInterface(e){return this.each((function(){const i=t.getOrCreateInstance(this,e);if("number"!=typeof e){if("string"==typeof e){if(void 0===i[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);i[e]()}}else i.to(e)}))}};G.on(document,wn,"[data-bs-slide], [data-bs-slide-to]",(function(t){const e=v(this);if(!e||!e.classList.contains(En))return;t.preventDefault();const i=On.getOrCreateInstance(e),s=this.getAttribute("data-bs-slide-to");return s?(i.to(s),void i._maybeEnableCycle()):"next"===tt.getDataAttribute(this,"slide")?(i.next(),void i._maybeEnableCycle()):(i.prev(),void i._maybeEnableCycle())})),G.on(window,yn,(()=>{const t=st.find('[data-bs-ride="carousel"]');for(const e of t)On.getOrCreateInstance(e)})),I(On);const In=".bs.collapse",Pn=`show${In}`,$n=`shown${In}`,Mn=`hide${In}`,Fn=`hidden${In}`,jn=`click${In}.data-api`,Nn="show",Dn="collapse",Rn="collapsing",Bn=`:scope .${Dn} .${Dn}`,Wn='[data-bs-toggle="collapse"]',Vn={parent:null,toggle:!0},zn={parent:"(null|element)",toggle:"boolean"};let qn=class t extends it{constructor(t,e){super(t,e),this._isTransitioning=!1,this._triggerArray=[];const i=st.find(Wn);for(const t of i){const e=b(t),i=st.find(e).filter((t=>t===this._element));null!==e&&i.length&&this._triggerArray.push(t)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return Vn}static get DefaultType(){return zn}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter((t=>t!==this._element)).map((e=>t.getOrCreateInstance(e,{toggle:!1})))),e.length&&e[0]._isTransitioning)return;if(G.trigger(this._element,Pn).defaultPrevented)return;for(const t of e)t.hide();const i=this._getDimension();this._element.classList.remove(Dn),this._element.classList.add(Rn),this._element.style[i]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const s=`scroll${i[0].toUpperCase()+i.slice(1)}`;this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(Rn),this._element.classList.add(Dn,Nn),this._element.style[i]="",G.trigger(this._element,$n)}),this._element,!0),this._element.style[i]=`${this._element[s]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(G.trigger(this._element,Mn).defaultPrevented)return;const t=this._getDimension();this._element.style[t]=`${this._element.getBoundingClientRect()[t]}px`,A(this._element),this._element.classList.add(Rn),this._element.classList.remove(Dn,Nn);for(const t of this._triggerArray){const e=v(t);e&&!this._isShown(e)&&this._addAriaAndCollapsedClass([t],!1)}this._isTransitioning=!0;this._element.style[t]="",this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(Rn),this._element.classList.add(Dn),G.trigger(this._element,Fn)}),this._element,!0)}_isShown(t=this._element){return t.classList.contains(Nn)}_configAfterMerge(t){return t.toggle=Boolean(t.toggle),t.parent=E(t.parent),t}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const t=this._getFirstLevelChildren(Wn);for(const e of t){const t=v(e);t&&this._addAriaAndCollapsedClass([e],this._isShown(t))}}_getFirstLevelChildren(t){const e=st.find(Bn,this._config.parent);return st.find(t,this._config.parent).filter((t=>!e.includes(t)))}_addAriaAndCollapsedClass(t,e){if(t.length)for(const i of t)i.classList.toggle("collapsed",!e),i.setAttribute("aria-expanded",e)}static jQueryInterface(e){const i={};return"string"==typeof e&&/show|hide/.test(e)&&(i.toggle=!1),this.each((function(){const s=t.getOrCreateInstance(this,i);if("string"==typeof e){if(void 0===s[e])throw new TypeError(`No method named "${e}"`);s[e]()}}))}};G.on(document,jn,Wn,(function(t){("A"===t.target.tagName||t.delegateTarget&&"A"===t.delegateTarget.tagName)&&t.preventDefault();const e=b(this),i=st.find(e);for(const t of i)qn.getOrCreateInstance(t,{toggle:!1}).toggle()})),I(qn);const Hn="dropdown",Un=".bs.dropdown",Qn=".data-api",Yn="ArrowUp",Kn="ArrowDown",Gn=`hide${Un}`,Xn=`hidden${Un}`,Zn=`show${Un}`,Jn=`shown${Un}`,to=`click${Un}${Qn}`,eo=`keydown${Un}${Qn}`,io=`keyup${Un}${Qn}`,so="show",no='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',oo=`${no}.${so}`,ro=".dropdown-menu",ao=O()?"top-end":"top-start",lo=O()?"top-start":"top-end",co=O()?"bottom-end":"bottom-start",ho=O()?"bottom-start":"bottom-end",uo=O()?"left-start":"right-start",fo=O()?"right-start":"left-start",po={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},go={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};let mo=class t extends it{constructor(t,e){super(t,e),this._popper=null,this._parent=this._element.parentNode,this._menu=st.next(this._element,ro)[0]||st.prev(this._element,ro)[0]||st.findOne(ro,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return po}static get DefaultType(){return go}static get NAME(){return Hn}toggle(){return this._isShown()?this.hide():this.show()}show(){if(S(this._element)||this._isShown())return;const t={relatedTarget:this._element};if(!G.trigger(this._element,Zn,t).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".navbar-nav"))for(const t of[].concat(...document.body.children))G.on(t,"mouseover",T);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(so),this._element.classList.add(so),G.trigger(this._element,Jn,t)}}hide(){if(S(this._element)||!this._isShown())return;const t={relatedTarget:this._element};this._completeHide(t)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(t){if(!G.trigger(this._element,Gn,t).defaultPrevented){if("ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))G.off(t,"mouseover",T);this._popper&&this._popper.destroy(),this._menu.classList.remove(so),this._element.classList.remove(so),this._element.setAttribute("aria-expanded","false"),tt.removeDataAttribute(this._menu,"popper"),G.trigger(this._element,Xn,t)}}_getConfig(t){if("object"==typeof(t=super._getConfig(t)).reference&&!w(t.reference)&&"function"!=typeof t.reference.getBoundingClientRect)throw new TypeError(`${Hn.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(){if(void 0===a)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let t=this._element;"parent"===this._config.reference?t=this._parent:w(this._config.reference)?t=E(this._config.reference):"object"==typeof this._config.reference&&(t=this._config.reference);const e=this._getPopperConfig();this._popper=a.createPopper(t,this._menu,e)}_isShown(){return this._menu.classList.contains(so)}_getPlacement(){const t=this._parent;if(t.classList.contains("dropend"))return uo;if(t.classList.contains("dropstart"))return fo;if(t.classList.contains("dropup-center"))return"top";if(t.classList.contains("dropdown-center"))return"bottom";const e="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return t.classList.contains("dropup")?e?lo:ao:e?ho:co}_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map((t=>Number.parseInt(t,10))):"function"==typeof t?e=>t(e,this._element):t}_getPopperConfig(){const t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||"static"===this._config.display)&&(tt.setDataAttribute(this._menu,"popper","static"),t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,..."function"==typeof this._config.popperConfig?this._config.popperConfig(t):this._config.popperConfig}}_selectMenuItem({key:t,target:e}){const i=st.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter((t=>k(t)));i.length&&M(i,e,t===Kn,!i.includes(e)).focus()}static jQueryInterface(e){return this.each((function(){const i=t.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===i[e])throw new TypeError(`No method named "${e}"`);i[e]()}}))}static clearMenus(e){if(2===e.button||"keyup"===e.type&&"Tab"!==e.key)return;const i=st.find(oo);for(const s of i){const i=t.getInstance(s);if(!i||!1===i._config.autoClose)continue;const n=e.composedPath(),o=n.includes(i._menu);if(n.includes(i._element)||"inside"===i._config.autoClose&&!o||"outside"===i._config.autoClose&&o)continue;if(i._menu.contains(e.target)&&("keyup"===e.type&&"Tab"===e.key||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;const r={relatedTarget:i._element};"click"===e.type&&(r.clickEvent=e),i._completeHide(r)}}static dataApiKeydownHandler(e){const i=/input|textarea/i.test(e.target.tagName),s="Escape"===e.key,n=[Yn,Kn].includes(e.key);if(!n&&!s)return;if(i&&!s)return;e.preventDefault();const o=this.matches(no)?this:st.prev(this,no)[0]||st.next(this,no)[0]||st.findOne(no,e.delegateTarget.parentNode),r=t.getOrCreateInstance(o);if(n)return e.stopPropagation(),r.show(),void r._selectMenuItem(e);r._isShown()&&(e.stopPropagation(),r.hide(),o.focus())}};G.on(document,eo,no,mo.dataApiKeydownHandler),G.on(document,eo,ro,mo.dataApiKeydownHandler),G.on(document,to,mo.clearMenus),G.on(document,io,mo.clearMenus),G.on(document,to,no,(function(t){t.preventDefault(),mo.getOrCreateInstance(this).toggle()})),I(mo);const _o=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",bo=".sticky-top",vo="padding-right",yo="margin-right";class wo{constructor(){this._element=document.body}getWidth(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}hide(){const t=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,vo,(e=>e+t)),this._setElementAttributes(_o,vo,(e=>e+t)),this._setElementAttributes(bo,yo,(e=>e-t))}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,vo),this._resetElementAttributes(_o,vo),this._resetElementAttributes(bo,yo)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,e,i){const s=this.getWidth();this._applyManipulationCallback(t,(t=>{if(t!==this._element&&window.innerWidth>t.clientWidth+s)return;this._saveInitialAttribute(t,e);const n=window.getComputedStyle(t).getPropertyValue(e);t.style.setProperty(e,`${i(Number.parseFloat(n))}px`)}))}_saveInitialAttribute(t,e){const i=t.style.getPropertyValue(e);i&&tt.setDataAttribute(t,e,i)}_resetElementAttributes(t,e){this._applyManipulationCallback(t,(t=>{const i=tt.getDataAttribute(t,e);null!==i?(tt.removeDataAttribute(t,e),t.style.setProperty(e,i)):t.style.removeProperty(e)}))}_applyManipulationCallback(t,e){if(w(t))e(t);else for(const i of st.find(t,this._element))e(i)}}const Eo="backdrop",ko="show",So=`mousedown.bs.${Eo}`,Co={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},To={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Ao extends et{constructor(t){super(),this._config=this._getConfig(t),this._isAppended=!1,this._element=null}static get Default(){return Co}static get DefaultType(){return To}static get NAME(){return Eo}show(t){if(!this._config.isVisible)return void P(t);this._append();const e=this._getElement();this._config.isAnimated&&A(e),e.classList.add(ko),this._emulateAnimation((()=>{P(t)}))}hide(t){this._config.isVisible?(this._getElement().classList.remove(ko),this._emulateAnimation((()=>{this.dispose(),P(t)}))):P(t)}dispose(){this._isAppended&&(G.off(this._element,So),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const t=document.createElement("div");t.className=this._config.className,this._config.isAnimated&&t.classList.add("fade"),this._element=t}return this._element}_configAfterMerge(t){return t.rootElement=E(t.rootElement),t}_append(){if(this._isAppended)return;const t=this._getElement();this._config.rootElement.append(t),G.on(t,So,(()=>{P(this._config.clickCallback)})),this._isAppended=!0}_emulateAnimation(t){$(t,this._getElement(),this._config.isAnimated)}}const Lo=".bs.focustrap",xo=`focusin${Lo}`,Oo=`keydown.tab${Lo}`,Io="backward",Po={autofocus:!0,trapElement:null},$o={autofocus:"boolean",trapElement:"element"};class Mo extends et{constructor(t){super(),this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return Po}static get DefaultType(){return $o}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),G.off(document,Lo),G.on(document,xo,(t=>this._handleFocusin(t))),G.on(document,Oo,(t=>this._handleKeydown(t))),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,G.off(document,Lo))}_handleFocusin(t){const{trapElement:e}=this._config;if(t.target===document||t.target===e||e.contains(t.target))return;const i=st.focusableChildren(e);0===i.length?e.focus():this._lastTabNavDirection===Io?i[i.length-1].focus():i[0].focus()}_handleKeydown(t){"Tab"===t.key&&(this._lastTabNavDirection=t.shiftKey?Io:"forward")}}const Fo=".bs.modal",jo=`hide${Fo}`,No=`hidePrevented${Fo}`,Do=`hidden${Fo}`,Ro=`show${Fo}`,Bo=`shown${Fo}`,Wo=`resize${Fo}`,Vo=`click.dismiss${Fo}`,zo=`mousedown.dismiss${Fo}`,qo=`keydown.dismiss${Fo}`,Ho=`click${Fo}.data-api`,Uo="modal-open",Qo="show",Yo="modal-static",Ko={backdrop:!0,focus:!0,keyboard:!0},Go={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};let Xo=class t extends it{constructor(t,e){super(t,e),this._dialog=st.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new wo,this._addEventListeners()}static get Default(){return Ko}static get DefaultType(){return Go}static get NAME(){return"modal"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown||this._isTransitioning)return;G.trigger(this._element,Ro,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Uo),this._adjustDialog(),this._backdrop.show((()=>this._showElement(t))))}hide(){if(!this._isShown||this._isTransitioning)return;G.trigger(this._element,jo).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(Qo),this._queueCallback((()=>this._hideModal()),this._element,this._isAnimated()))}dispose(){for(const t of[window,this._dialog])G.off(t,Fo);this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Ao({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Mo({trapElement:this._element})}_showElement(t){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const e=st.findOne(".modal-body",this._dialog);e&&(e.scrollTop=0),A(this._element),this._element.classList.add(Qo);this._queueCallback((()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,G.trigger(this._element,Bo,{relatedTarget:t})}),this._dialog,this._isAnimated())}_addEventListeners(){G.on(this._element,qo,(t=>{if("Escape"===t.key)return this._config.keyboard?(t.preventDefault(),void this.hide()):void this._triggerBackdropTransition()})),G.on(window,Wo,(()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()})),G.on(this._element,zo,(t=>{G.one(this._element,Vo,(e=>{this._element===t.target&&this._element===e.target&&("static"!==this._config.backdrop?this._config.backdrop&&this.hide():this._triggerBackdropTransition())}))}))}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide((()=>{document.body.classList.remove(Uo),this._resetAdjustments(),this._scrollBar.reset(),G.trigger(this._element,Do)}))}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(G.trigger(this._element,No).defaultPrevented)return;const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._element.style.overflowY;"hidden"===e||this._element.classList.contains(Yo)||(t||(this._element.style.overflowY="hidden"),this._element.classList.add(Yo),this._queueCallback((()=>{this._element.classList.remove(Yo),this._queueCallback((()=>{this._element.style.overflowY=e}),this._dialog)}),this._dialog),this._element.focus())}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._scrollBar.getWidth(),i=e>0;if(i&&!t){const t=O()?"paddingLeft":"paddingRight";this._element.style[t]=`${e}px`}if(!i&&t){const t=O()?"paddingRight":"paddingLeft";this._element.style[t]=`${e}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,i){return this.each((function(){const s=t.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===s[e])throw new TypeError(`No method named "${e}"`);s[e](i)}}))}};G.on(document,Ho,'[data-bs-toggle="modal"]',(function(t){const e=v(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),G.one(e,Ro,(t=>{t.defaultPrevented||G.one(e,Do,(()=>{k(this)&&this.focus()}))}));const i=st.findOne(".modal.show");i&&Xo.getInstance(i).hide();Xo.getOrCreateInstance(e).toggle(this)})),kt(Xo),I(Xo);const Zo=".bs.offcanvas",Jo=".data-api",tr=`load${Zo}${Jo}`,er="show",ir="showing",sr="hiding",nr=".offcanvas.show",or=`show${Zo}`,rr=`shown${Zo}`,ar=`hide${Zo}`,lr=`hidePrevented${Zo}`,cr=`hidden${Zo}`,hr=`resize${Zo}`,ur=`click${Zo}${Jo}`,dr=`keydown.dismiss${Zo}`,fr={backdrop:!0,keyboard:!0,scroll:!1},pr={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};let gr=class t extends it{constructor(t,e){super(t,e),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return fr}static get DefaultType(){return pr}static get NAME(){return"offcanvas"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown)return;if(G.trigger(this._element,or,{relatedTarget:t}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||(new wo).hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(ir);this._queueCallback((()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(er),this._element.classList.remove(ir),G.trigger(this._element,rr,{relatedTarget:t})}),this._element,!0)}hide(){if(!this._isShown)return;if(G.trigger(this._element,ar).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(sr),this._backdrop.hide();this._queueCallback((()=>{this._element.classList.remove(er,sr),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||(new wo).reset(),G.trigger(this._element,cr)}),this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const t=Boolean(this._config.backdrop);return new Ao({className:"offcanvas-backdrop",isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?()=>{"static"!==this._config.backdrop?this.hide():G.trigger(this._element,lr)}:null})}_initializeFocusTrap(){return new Mo({trapElement:this._element})}_addEventListeners(){G.on(this._element,dr,(t=>{"Escape"===t.key&&(this._config.keyboard?this.hide():G.trigger(this._element,lr))}))}static jQueryInterface(e){return this.each((function(){const i=t.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===i[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);i[e](this)}}))}};G.on(document,ur,'[data-bs-toggle="offcanvas"]',(function(t){const e=v(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),S(this))return;G.one(e,cr,(()=>{k(this)&&this.focus()}));const i=st.findOne(nr);i&&i!==e&&gr.getInstance(i).hide();gr.getOrCreateInstance(e).toggle(this)})),G.on(window,tr,(()=>{for(const t of st.find(nr))gr.getOrCreateInstance(t).show()})),G.on(window,hr,(()=>{for(const t of st.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(t).position&&gr.getOrCreateInstance(t).hide()})),kt(gr),I(gr);const mr=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),_r=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i,br=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i,vr=(t,e)=>{const i=t.nodeName.toLowerCase();return e.includes(i)?!mr.has(i)||Boolean(_r.test(t.nodeValue)||br.test(t.nodeValue)):e.filter((t=>t instanceof RegExp)).some((t=>t.test(i)))},yr={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]};const wr={allowList:yr,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},Er={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},kr={entry:"(string|element|function|null)",selector:"(string|element)"};class Sr extends et{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return wr}static get DefaultType(){return Er}static get NAME(){return"TemplateFactory"}getContent(){return Object.values(this._config.content).map((t=>this._resolvePossibleFunction(t))).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(t){return this._checkContent(t),this._config.content={...this._config.content,...t},this}toHtml(){const t=document.createElement("div");t.innerHTML=this._maybeSanitize(this._config.template);for(const[e,i]of Object.entries(this._config.content))this._setContent(t,i,e);const e=t.children[0],i=this._resolvePossibleFunction(this._config.extraClass);return i&&e.classList.add(...i.split(" ")),e}_typeCheckConfig(t){super._typeCheckConfig(t),this._checkContent(t.content)}_checkContent(t){for(const[e,i]of Object.entries(t))super._typeCheckConfig({selector:e,entry:i},kr)}_setContent(t,e,i){const s=st.findOne(i,t);s&&((e=this._resolvePossibleFunction(e))?w(e)?this._putElementInTemplate(E(e),s):this._config.html?s.innerHTML=this._maybeSanitize(e):s.textContent=e:s.remove())}_maybeSanitize(t){return this._config.sanitize?function(t,e,i){if(!t.length)return t;if(i&&"function"==typeof i)return i(t);const s=(new window.DOMParser).parseFromString(t,"text/html"),n=[].concat(...s.body.querySelectorAll("*"));for(const t of n){const i=t.nodeName.toLowerCase();if(!Object.keys(e).includes(i)){t.remove();continue}const s=[].concat(...t.attributes),n=[].concat(e["*"]||[],e[i]||[]);for(const e of s)vr(e,n)||t.removeAttribute(e.nodeName)}return s.body.innerHTML}(t,this._config.allowList,this._config.sanitizeFn):t}_resolvePossibleFunction(t){return"function"==typeof t?t(this):t}_putElementInTemplate(t,e){if(this._config.html)return e.innerHTML="",void e.append(t);e.textContent=t.textContent}}const Cr=new Set(["sanitize","allowList","sanitizeFn"]),Tr="fade",Ar="show",Lr=".tooltip-inner",xr=".modal",Or="hide.bs.modal",Ir="hover",Pr="focus",$r={AUTO:"auto",TOP:"top",RIGHT:O()?"left":"right",BOTTOM:"bottom",LEFT:O()?"right":"left"},Mr={allowList:yr,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,0],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},Fr={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};let jr=class t extends it{constructor(t,e){if(void 0===a)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(t,e),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return Mr}static get DefaultType(){return Fr}static get NAME(){return"tooltip"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&&(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),G.off(this._element.closest(xr),Or,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(!this._isWithContent()||!this._isEnabled)return;const t=G.trigger(this._element,this.constructor.eventName("show")),e=(C(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(t.defaultPrevented||!e)return;this._disposePopper();const i=this._getTipElement();this._element.setAttribute("aria-describedby",i.getAttribute("id"));const{container:s}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(s.append(i),G.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(i),i.classList.add(Ar),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))G.on(t,"mouseover",T);this._queueCallback((()=>{G.trigger(this._element,this.constructor.eventName("shown")),!1===this._isHovered&&this._leave(),this._isHovered=!1}),this.tip,this._isAnimated())}hide(){if(!this._isShown())return;if(G.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented)return;if(this._getTipElement().classList.remove(Ar),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))G.off(t,"mouseover",T);this._activeTrigger.click=!1,this._activeTrigger[Pr]=!1,this._activeTrigger[Ir]=!1,this._isHovered=null;this._queueCallback((()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),G.trigger(this._element,this.constructor.eventName("hidden")))}),this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return Boolean(this._getTitle())}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(t){const e=this._getTemplateFactory(t).toHtml();if(!e)return null;e.classList.remove(Tr,Ar),e.classList.add(`bs-${this.constructor.NAME}-auto`);const i=(t=>{do{t+=Math.floor(1e6*Math.random())}while(document.getElementById(t));return t})(this.constructor.NAME).toString();return e.setAttribute("id",i),this._isAnimated()&&e.classList.add(Tr),e}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new Sr({...this._config,content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[Lr]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(t){return this.constructor.getOrCreateInstance(t.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(Tr)}_isShown(){return this.tip&&this.tip.classList.contains(Ar)}_createPopper(t){const e="function"==typeof this._config.placement?this._config.placement.call(this,t,this._element):this._config.placement,i=$r[e.toUpperCase()];return a.createPopper(this._element,t,this._getPopperConfig(i))}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map((t=>Number.parseInt(t,10))):"function"==typeof t?e=>t(e,this._element):t}_resolvePossibleFunction(t){return"function"==typeof t?t.call(this._element):t}_getPopperConfig(t){const e={placement:t,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:t=>{this._getTipElement().setAttribute("data-popper-placement",t.state.placement)}}]};return{...e,..."function"==typeof this._config.popperConfig?this._config.popperConfig(e):this._config.popperConfig}}_setListeners(){const t=this._config.trigger.split(" ");for(const e of t)if("click"===e)G.on(this._element,this.constructor.eventName("click"),this._config.selector,(t=>{this._initializeOnDelegatedTarget(t).toggle()}));else if("manual"!==e){const t=e===Ir?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),i=e===Ir?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");G.on(this._element,t,this._config.selector,(t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusin"===t.type?Pr:Ir]=!0,e._enter()})),G.on(this._element,i,this._config.selector,(t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusout"===t.type?Pr:Ir]=e._element.contains(t.relatedTarget),e._leave()}))}this._hideModalHandler=()=>{this._element&&this.hide()},G.on(this._element.closest(xr),Or,this._hideModalHandler)}_fixTitle(){const t=this._element.getAttribute("title");t&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",t),this._element.setAttribute("data-bs-original-title",t),this._element.removeAttribute("title"))}_enter(){this._isShown()||this._isHovered?this._isHovered=!0:(this._isHovered=!0,this._setTimeout((()=>{this._isHovered&&this.show()}),this._config.delay.show))}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout((()=>{this._isHovered||this.hide()}),this._config.delay.hide))}_setTimeout(t,e){clearTimeout(this._timeout),this._timeout=setTimeout(t,e)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(t){const e=tt.getDataAttributes(this._element);for(const t of Object.keys(e))Cr.has(t)&&delete e[t];return t={...e,..."object"==typeof t&&t?t:{}},t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t.container=!1===t.container?document.body:E(t.container),"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),t}_getDelegateConfig(){const t={};for(const e in this._config)this.constructor.Default[e]!==this._config[e]&&(t[e]=this._config[e]);return t.selector=!1,t.trigger="manual",t}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(e){return this.each((function(){const i=t.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===i[e])throw new TypeError(`No method named "${e}"`);i[e]()}}))}};I(jr);const Nr=".popover-header",Dr=".popover-body",Rr={...jr.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},Br={...jr.DefaultType,content:"(null|string|element|function)"};let Wr=class t extends jr{static get Default(){return Rr}static get DefaultType(){return Br}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[Nr]:this._getTitle(),[Dr]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each((function(){const i=t.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===i[e])throw new TypeError(`No method named "${e}"`);i[e]()}}))}};I(Wr);const Vr=".bs.scrollspy",zr=`activate${Vr}`,qr=`click${Vr}`,Hr=`load${Vr}.data-api`,Ur="active",Qr="[href]",Yr=".nav-link",Kr=`${Yr}, .nav-item > ${Yr}, .list-group-item`,Gr={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},Xr={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};let Zr=class t extends it{constructor(t,e){super(t,e),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement="visible"===getComputedStyle(this._element).overflowY?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return Gr}static get DefaultType(){return Xr}static get NAME(){return"scrollspy"}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const t of this._observableSections.values())this._observer.observe(t)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(t){return t.target=E(t.target)||document.body,t.rootMargin=t.offset?`${t.offset}px 0px -30%`:t.rootMargin,"string"==typeof t.threshold&&(t.threshold=t.threshold.split(",").map((t=>Number.parseFloat(t)))),t}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(G.off(this._config.target,qr),G.on(this._config.target,qr,Qr,(t=>{const e=this._observableSections.get(t.target.hash);if(e){t.preventDefault();const i=this._rootElement||window,s=e.offsetTop-this._element.offsetTop;if(i.scrollTo)return void i.scrollTo({top:s,behavior:"smooth"});i.scrollTop=s}})))}_getNewObserver(){const t={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver((t=>this._observerCallback(t)),t)}_observerCallback(t){const e=t=>this._targetLinks.get(`#${t.target.id}`),i=t=>{this._previousScrollData.visibleEntryTop=t.target.offsetTop,this._process(e(t))},s=(this._rootElement||document.documentElement).scrollTop,n=s>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=s;for(const o of t){if(!o.isIntersecting){this._activeTarget=null,this._clearActiveClass(e(o));continue}const t=o.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(n&&t){if(i(o),!s)return}else n||t||i(o)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const t=st.find(Qr,this._config.target);for(const e of t){if(!e.hash||S(e))continue;const t=st.findOne(e.hash,this._element);k(t)&&(this._targetLinks.set(e.hash,e),this._observableSections.set(e.hash,t))}}_process(t){this._activeTarget!==t&&(this._clearActiveClass(this._config.target),this._activeTarget=t,t.classList.add(Ur),this._activateParents(t),G.trigger(this._element,zr,{relatedTarget:t}))}_activateParents(t){if(t.classList.contains("dropdown-item"))st.findOne(".dropdown-toggle",t.closest(".dropdown")).classList.add(Ur);else for(const e of st.parents(t,".nav, .list-group"))for(const t of st.prev(e,Kr))t.classList.add(Ur)}_clearActiveClass(t){t.classList.remove(Ur);const e=st.find(`${Qr}.${Ur}`,t);for(const t of e)t.classList.remove(Ur)}static jQueryInterface(e){return this.each((function(){const i=t.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===i[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);i[e]()}}))}};G.on(window,Hr,(()=>{for(const t of st.find('[data-bs-spy="scroll"]'))Zr.getOrCreateInstance(t)})),I(Zr);const Jr=".bs.tab",ta=`hide${Jr}`,ea=`hidden${Jr}`,ia=`show${Jr}`,sa=`shown${Jr}`,na=`click${Jr}`,oa=`keydown${Jr}`,ra=`load${Jr}`,aa="ArrowLeft",la="ArrowRight",ca="ArrowUp",ha="ArrowDown",ua="active",da="fade",fa="show",pa=":not(.dropdown-toggle)",ga='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',ma=`${`.nav-link${pa}, .list-group-item${pa}, [role="tab"]${pa}`}, ${ga}`,_a=`.${ua}[data-bs-toggle="tab"], .${ua}[data-bs-toggle="pill"], .${ua}[data-bs-toggle="list"]`;let ba=class t extends it{constructor(t){super(t),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),G.on(this._element,oa,(t=>this._keydown(t))))}static get NAME(){return"tab"}show(){const t=this._element;if(this._elemIsActive(t))return;const e=this._getActiveElem(),i=e?G.trigger(e,ta,{relatedTarget:t}):null;G.trigger(t,ia,{relatedTarget:e}).defaultPrevented||i&&i.defaultPrevented||(this._deactivate(e,t),this._activate(t,e))}_activate(t,e){if(!t)return;t.classList.add(ua),this._activate(v(t));this._queueCallback((()=>{"tab"===t.getAttribute("role")?(t.removeAttribute("tabindex"),t.setAttribute("aria-selected",!0),this._toggleDropDown(t,!0),G.trigger(t,sa,{relatedTarget:e})):t.classList.add(fa)}),t,t.classList.contains(da))}_deactivate(t,e){if(!t)return;t.classList.remove(ua),t.blur(),this._deactivate(v(t));this._queueCallback((()=>{"tab"===t.getAttribute("role")?(t.setAttribute("aria-selected",!1),t.setAttribute("tabindex","-1"),this._toggleDropDown(t,!1),G.trigger(t,ea,{relatedTarget:e})):t.classList.remove(fa)}),t,t.classList.contains(da))}_keydown(e){if(![aa,la,ca,ha].includes(e.key))return;e.stopPropagation(),e.preventDefault();const i=[la,ha].includes(e.key),s=M(this._getChildren().filter((t=>!S(t))),e.target,i,!0);s&&(s.focus({preventScroll:!0}),t.getOrCreateInstance(s).show())}_getChildren(){return st.find(ma,this._parent)}_getActiveElem(){return this._getChildren().find((t=>this._elemIsActive(t)))||null}_setInitialAttributes(t,e){this._setAttributeIfNotExists(t,"role","tablist");for(const t of e)this._setInitialAttributesOnChild(t)}_setInitialAttributesOnChild(t){t=this._getInnerElement(t);const e=this._elemIsActive(t),i=this._getOuterElement(t);t.setAttribute("aria-selected",e),i!==t&&this._setAttributeIfNotExists(i,"role","presentation"),e||t.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(t,"role","tab"),this._setInitialAttributesOnTargetPanel(t)}_setInitialAttributesOnTargetPanel(t){const e=v(t);e&&(this._setAttributeIfNotExists(e,"role","tabpanel"),t.id&&this._setAttributeIfNotExists(e,"aria-labelledby",`#${t.id}`))}_toggleDropDown(t,e){const i=this._getOuterElement(t);if(!i.classList.contains("dropdown"))return;const s=(t,s)=>{const n=st.findOne(t,i);n&&n.classList.toggle(s,e)};s(".dropdown-toggle",ua),s(".dropdown-menu",fa),i.setAttribute("aria-expanded",e)}_setAttributeIfNotExists(t,e,i){t.hasAttribute(e)||t.setAttribute(e,i)}_elemIsActive(t){return t.classList.contains(ua)}_getInnerElement(t){return t.matches(ma)?t:st.findOne(ma,t)}_getOuterElement(t){return t.closest(".nav-item, .list-group-item")||t}static jQueryInterface(e){return this.each((function(){const i=t.getOrCreateInstance(this);if("string"==typeof e){if(void 0===i[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);i[e]()}}))}};G.on(document,na,ga,(function(t){["A","AREA"].includes(this.tagName)&&t.preventDefault(),S(this)||ba.getOrCreateInstance(this).show()})),G.on(window,ra,(()=>{for(const t of st.find(_a))ba.getOrCreateInstance(t)})),I(ba);const va=".bs.tab",ya=`click${va}`,wa=`load${va}`,Ea="ArrowLeft",ka="ArrowRight",Sa="ArrowUp",Ca="ArrowDown",Ta="Enter",Aa=" ",La="active",xa=`.${La}[data-bs-toggle="tab"], .${La}[data-bs-toggle="pill"], .${La}[data-bs-toggle="list"]`;class Oa extends ba{constructor(t){super(t)}_keydown(t){if(![Ea,ka,Sa,Ca,Ta,Aa].includes(t.key))return;if(t.stopPropagation(),t.preventDefault(),t.key===Ta||t.key===Aa)return void Oa.getOrCreateInstance(t.target).show();const e=[ka,Ca].includes(t.key),i=M(this._getChildren().filter((t=>!S(t))),t.target,e,!0);i&&i.focus({preventScroll:!0})}}G.on(document,ya,'[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',(function(t){if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),S(this))return;Oa.getOrCreateInstance(this).dispose(),Oa.getOrCreateInstance(this).show()})),G.on(window,wa,(()=>{for(const t of st.find(xa)){Oa.getOrCreateInstance(t).dispose(),Oa.getOrCreateInstance(t)}})),I(Oa);const Ia=".bs.toast",Pa=`mouseover${Ia}`,$a=`mouseout${Ia}`,Ma=`focusin${Ia}`,Fa=`focusout${Ia}`,ja=`hide${Ia}`,Na=`hidden${Ia}`,Da=`show${Ia}`,Ra=`shown${Ia}`,Ba="hide",Wa="show",Va="showing",za={animation:"boolean",autohide:"boolean",delay:"number"},qa={animation:!0,autohide:!0,delay:5e3};let Ha=class t extends it{constructor(t,e){super(t,e),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return qa}static get DefaultType(){return za}static get NAME(){return"toast"}show(){if(G.trigger(this._element,Da).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add("fade");this._element.classList.remove(Ba),A(this._element),this._element.classList.add(Wa,Va),this._queueCallback((()=>{this._element.classList.remove(Va),G.trigger(this._element,Ra),this._maybeScheduleHide()}),this._element,this._config.animation)}hide(){if(!this.isShown())return;if(G.trigger(this._element,ja).defaultPrevented)return;this._element.classList.add(Va),this._queueCallback((()=>{this._element.classList.add(Ba),this._element.classList.remove(Va,Wa),G.trigger(this._element,Na)}),this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(Wa),super.dispose()}isShown(){return this._element.classList.contains(Wa)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout((()=>{this.hide()}),this._config.delay)))}_onInteraction(t,e){switch(t.type){case"mouseover":case"mouseout":this._hasMouseInteraction=e;break;case"focusin":case"focusout":this._hasKeyboardInteraction=e}if(e)return void this._clearTimeout();const i=t.relatedTarget;this._element===i||this._element.contains(i)||this._maybeScheduleHide()}_setListeners(){G.on(this._element,Pa,(t=>this._onInteraction(t,!0))),G.on(this._element,$a,(t=>this._onInteraction(t,!1))),G.on(this._element,Ma,(t=>this._onInteraction(t,!0))),G.on(this._element,Fa,(t=>this._onInteraction(t,!1)))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each((function(){const i=t.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===i[e])throw new TypeError(`No method named "${e}"`);i[e](this)}}))}};kt(Ha),I(Ha);const Ua=t=>{const e=t.browser.IS_IOS||t.browser.IS_NATIVE_ANDROID,i=t.getTech("Tech");class s extends i{constructor(t,i){super(t,i),this.setPoster(t.poster),this.setSrc(this.options_.source,!0),this.setTimeout(function(){this.el_&&(this.el_.parentNode.className+=" vjs-youtube",e&&(this.el_.parentNode.className+=" vjs-youtube-mobile"),s.isApiReady?this.initYTPlayer():s.apiReadyQueue.push(this))}.bind(this))}dispose(){if(this.ytPlayer)this.ytPlayer.stopVideo&&this.ytPlayer.stopVideo(),this.ytPlayer.destroy&&this.ytPlayer.destroy();else{var t=s.apiReadyQueue.indexOf(this);-1!==t&&s.apiReadyQueue.splice(t,1)}this.ytPlayer=null,this.el_.parentNode.className=this.el_.parentNode.className.replace(" vjs-youtube","").replace(" vjs-youtube-mobile",""),this.el_.parentNode.removeChild(this.el_),i.prototype.dispose.call(this)}createEl(){if("undefined"!=typeof document){var t=document.createElement("div");t.setAttribute("id",this.options_.techId),t.setAttribute("style","width:100%;height:100%;top:0;left:0;position:absolute"),t.setAttribute("class","vjs-tech");var i=document.createElement("div");if(i.appendChild(t),!e&&!this.options_.ytControls){var s=document.createElement("div");s.setAttribute("class","vjs-iframe-blocker"),s.setAttribute("style","position:absolute;top:0;left:0;width:100%;height:100%"),s.onclick=function(){this.pause()}.bind(this),i.appendChild(s)}return i}}initYTPlayer(){var t={controls:0,modestbranding:1,rel:0,showinfo:0,loop:this.options_.loop?1:0};if(void 0!==this.options_.autohide&&(t.autohide=this.options_.autohide),void 0!==this.options_.cc_load_policy&&(t.cc_load_policy=this.options_.cc_load_policy),void 0!==this.options_.ytControls&&(t.controls=this.options_.ytControls),void 0!==this.options_.disablekb&&(t.disablekb=this.options_.disablekb),void 0!==this.options_.color&&(t.color=this.options_.color),t.controls?void 0!==this.options_.fs&&(t.fs=this.options_.fs):t.fs=0,-1!==this.options_.source.src.indexOf("end=")){var e=this.options_.source.src.match(/end=([0-9]*)/);this.options_.end=parseInt(e[1])}if(void 0!==this.options_.end&&(t.end=this.options_.end),void 0!==this.options_.hl?t.hl=this.options_.hl:void 0!==this.options_.language&&(t.hl=this.options_.language.substr(0,2)),void 0!==this.options_.iv_load_policy&&(t.iv_load_policy=this.options_.iv_load_policy),void 0!==this.options_.list?t.list=this.options_.list:this.url&&void 0!==this.url.listId&&(t.list=this.url.listId),void 0!==this.options_.listType&&(t.listType=this.options_.listType),void 0!==this.options_.modestbranding&&(t.modestbranding=this.options_.modestbranding),void 0!==this.options_.playlist&&(t.playlist=this.options_.playlist),void 0!==this.options_.playsinline&&(t.playsinline=this.options_.playsinline),void 0!==this.options_.rel&&(t.rel=this.options_.rel),void 0!==this.options_.showinfo&&(t.showinfo=this.options_.showinfo),-1!==this.options_.source.src.indexOf("start=")){var i=this.options_.source.src.match(/start=([0-9]*)/);this.options_.start=parseInt(i[1])}if(void 0!==this.options_.start&&(t.start=this.options_.start),void 0!==this.options_.theme&&(t.theme=this.options_.theme),void 0!==this.options_.customVars){var s=this.options_.customVars;Object.keys(s).forEach((function(e){t[e]=s[e]}))}this.activeVideoId=this.url?this.url.videoId:null,this.activeList=t.list;var n={videoId:this.activeVideoId,playerVars:t,events:{onReady:this.onPlayerReady.bind(this),onPlaybackQualityChange:this.onPlayerPlaybackQualityChange.bind(this),onPlaybackRateChange:this.onPlayerPlaybackRateChange.bind(this),onStateChange:this.onPlayerStateChange.bind(this),onVolumeChange:this.onPlayerVolumeChange.bind(this),onError:this.onPlayerError.bind(this)}};void 0!==this.options_.enablePrivacyEnhancedMode&&this.options_.enablePrivacyEnhancedMode&&(n.host="https://www.youtube-nocookie.com"),this.ytPlayer=new YT.Player(this.options_.techId,n)}onPlayerReady(){this.options_.muted&&this.ytPlayer.mute(),this.ytPlayer.getAvailablePlaybackRates().length>1&&(this.featuresPlaybackRate=!0),this.playerReady_=!0,this.triggerReady(),this.playOnReady?this.play():this.cueOnReady&&(this.cueVideoById_(this.url.videoId),this.activeVideoId=this.url.videoId)}onPlayerPlaybackQualityChange(){}onPlayerPlaybackRateChange(){this.trigger("ratechange")}onPlayerStateChange(t){var e=t.data;if(e!==this.lastState&&!this.errorNumber)switch(this.lastState=e,e){case-1:this.trigger("loadstart"),this.trigger("loadedmetadata"),this.trigger("durationchange"),this.trigger("ratechange");break;case YT.PlayerState.ENDED:this.trigger("ended");break;case YT.PlayerState.PLAYING:this.trigger("timeupdate"),this.trigger("durationchange"),this.trigger("playing"),this.trigger("play"),this.isSeeking&&this.onSeeked();break;case YT.PlayerState.PAUSED:this.trigger("canplay"),this.isSeeking?this.onSeeked():this.trigger("pause");break;case YT.PlayerState.BUFFERING:this.player_.trigger("timeupdate"),this.player_.trigger("waiting")}}onPlayerVolumeChange(){this.trigger("volumechange")}onPlayerError(t){this.errorNumber=t.data,this.trigger("pause"),this.trigger("error")}error(){var t=1e3+this.errorNumber;switch(this.errorNumber){case 5:return{code:t,message:"Error while trying to play the video"};case 2:case 100:return{code:t,message:"Unable to find the video"};case 101:case 150:return{code:t,message:"Playback on other Websites has been disabled by the video owner."}}return{code:t,message:"YouTube unknown error ("+this.errorNumber+")"}}loadVideoById_(t){var e={videoId:t};this.options_.start&&(e.startSeconds=this.options_.start),this.options_.end&&(e.endSeconds=this.options_.end),this.ytPlayer.loadVideoById(e)}cueVideoById_(t){var e={videoId:t};this.options_.start&&(e.startSeconds=this.options_.start),this.options_.end&&(e.endSeconds=this.options_.end),this.ytPlayer.cueVideoById(e)}src(t){return t&&this.setSrc({src:t}),this.source}poster(){return e?null:this.poster_}setPoster(t){this.poster_=t}setSrc(t){t&&t.src&&(delete this.errorNumber,this.source=t,this.url=s.parseUrl(t.src),this.options_.poster||this.url.videoId&&(this.poster_="https://img.youtube.com/vi/"+this.url.videoId+"/0.jpg",this.trigger("posterchange"),this.checkHighResPoster()),this.options_.autoplay&&!e?this.isReady_?this.play():this.playOnReady=!0:this.activeVideoId!==this.url.videoId&&(this.isReady_?(this.cueVideoById_(this.url.videoId),this.activeVideoId=this.url.videoId):this.cueOnReady=!0))}autoplay(){return this.options_.autoplay}setAutoplay(t){this.options_.autoplay=t}loop(){return this.options_.loop}setLoop(t){this.options_.loop=t}play(){this.url&&this.url.videoId&&(this.wasPausedBeforeSeek=!1,this.isReady_?(this.url.listId&&(this.activeList===this.url.listId?this.ytPlayer.playVideo():(this.ytPlayer.loadPlaylist(this.url.listId),this.activeList=this.url.listId)),this.activeVideoId===this.url.videoId?this.ytPlayer.playVideo():(this.loadVideoById_(this.url.videoId),this.activeVideoId=this.url.videoId)):(this.trigger("waiting"),this.playOnReady=!0))}pause(){this.ytPlayer&&this.ytPlayer.pauseVideo()}paused(){return!this.ytPlayer||this.lastState!==YT.PlayerState.PLAYING&&this.lastState!==YT.PlayerState.BUFFERING}currentTime(){return this.ytPlayer?this.ytPlayer.getCurrentTime():0}setCurrentTime(t){this.lastState===YT.PlayerState.PAUSED&&(this.timeBeforeSeek=this.currentTime()),this.isSeeking||(this.wasPausedBeforeSeek=this.paused()),this.ytPlayer.seekTo(t,!0),this.trigger("timeupdate"),this.trigger("seeking"),this.isSeeking=!0,this.lastState===YT.PlayerState.PAUSED&&this.timeBeforeSeek!==t&&(clearInterval(this.checkSeekedInPauseInterval),this.checkSeekedInPauseInterval=setInterval(function(){this.lastState===YT.PlayerState.PAUSED&&this.isSeeking?this.currentTime()!==this.timeBeforeSeek&&(this.trigger("timeupdate"),this.onSeeked()):clearInterval(this.checkSeekedInPauseInterval)}.bind(this),250))}seeking(){return this.isSeeking}seekable(){return this.ytPlayer?t.createTimeRange(0,this.ytPlayer.getDuration()):t.createTimeRange()}onSeeked(){clearInterval(this.checkSeekedInPauseInterval),this.isSeeking=!1,this.wasPausedBeforeSeek&&this.pause(),this.trigger("seeked")}playbackRate(){return this.ytPlayer?this.ytPlayer.getPlaybackRate():1}setPlaybackRate(t){this.ytPlayer&&this.ytPlayer.setPlaybackRate(t)}duration(){return this.ytPlayer?this.ytPlayer.getDuration():0}currentSrc(){return this.source&&this.source.src}ended(){return!!this.ytPlayer&&this.lastState===YT.PlayerState.ENDED}volume(){return this.ytPlayer?this.ytPlayer.getVolume()/100:1}setVolume(t){this.ytPlayer&&this.ytPlayer.setVolume(100*t)}muted(){return!!this.ytPlayer&&this.ytPlayer.isMuted()}setMuted(t){this.ytPlayer&&(this.muted(!0),t?this.ytPlayer.mute():this.ytPlayer.unMute(),this.setTimeout((function(){this.trigger("volumechange")}),50))}buffered(){if(!this.ytPlayer||!this.ytPlayer.getVideoLoadedFraction)return t.createTimeRange();var e=this.ytPlayer.getVideoLoadedFraction()*this.ytPlayer.getDuration();return t.createTimeRange(0,e)}preload(){}load(){}reset(){}networkState(){if(!this.ytPlayer)return 0;switch(this.ytPlayer.getPlayerState()){case-1:return 0;case 3:return 2;default:return 1}}readyState(){if(!this.ytPlayer)return 0;switch(this.ytPlayer.getPlayerState()){case-1:return 0;case 5:return 1;case 3:return 2;default:return 4}}supportsFullScreen(){if("undefined"!=typeof document)return document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled}checkHighResPoster(){var t="https://img.youtube.com/vi/"+this.url.videoId+"/maxresdefault.jpg";try{var e=new Image;e.onload=function(){if("naturalHeight"in e){if(e.naturalHeight<=90||e.naturalWidth<=120)return}else if(e.height<=90||e.width<=120)return;this.poster_=t,this.trigger("posterchange")}.bind(this),e.onerror=function(){},e.src=t}catch(t){}}}s.isSupported=function(){return!0},s.canPlaySource=function(t){return s.canPlayType(t.type)},s.canPlayType=function(t){return"video/youtube"===t},s.parseUrl=function(t){var e={videoId:null},i=t.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/);i&&11===i[2].length&&(e.videoId=i[2]);return(i=t.match(/[?&]list=([^#\&\?]+)/))&&i[1]&&(e.listId=i[1]),e},s.apiReadyQueue=[],"undefined"!=typeof document&&(function(t,e){if("undefined"!=typeof document){var i=!1,s=document.createElement("script"),n=document.getElementsByTagName("script")[0];n&&(n.parentNode.insertBefore(s,n),s.onload=function(){i||(i=!0,e())},s.onreadystatechange=function(){i||"complete"!==this.readyState&&"loaded"!==this.readyState||(i=!0,e())},s.src=t)}}("https://www.youtube.com/iframe_api",(function(){YT.ready((function(){s.isApiReady=!0;for(var t=0;t<s.apiReadyQueue.length;++t)s.apiReadyQueue[t].initYTPlayer()}))})),function(){if("undefined"!=typeof document){var t=".vjs-youtube .vjs-iframe-blocker { display: none; }.vjs-youtube.vjs-user-inactive .vjs-iframe-blocker { display: block; }.vjs-youtube .vjs-poster { background-size: cover; }.vjs-youtube-mobile .vjs-big-play-button { display: none; }",e=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css",i.styleSheet?i.styleSheet.cssText=t:i.appendChild(document.createTextNode(t)),e.appendChild(i)}}()),void 0!==t.registerTech?t.registerTech("Youtube",s):t.registerComponent("Youtube",s)},Qa={languages:{it:{"Audio Player":"Lettore audio","Video Player":"Lettore video",Play:"Play",Pause:"Pausa",Replay:"Replay","Current Time":"Orario attuale",Duration:"Durata","Remaining Time":"Tempo rimanente","Stream Type":"Tipo di streaming",LIVE:"LIVE",Loaded:"Caricato",Progress:"Stato","Progress Bar":"Barra di avanzamento","progress bar timing: currentTime={1} duration={2}":"{1} di {2}",Fullscreen:"Schermo intero","Exit Fullscreen":"Chiudi Schermo intero",Mute:"Disattiva l’audio",Unmute:"Attiva l’audio","Playback Rate":"Velocità di riproduzione",Subtitles:"Sottotitoli","subtitles off":"Senza sottotitoli",Captions:"Sottotitoli non udenti","captions off":"Senza sottotitoli non udenti",Chapters:"Capitolo",Descriptions:"Descrizioni","descriptions off":"Descrizioni disattivate","Audio Track":"Traccia audio","Volume Level":"Livello del volume","You aborted the media playback":"La riproduzione del filmato è stata interrotta.","A network error caused the media download to fail part-way.":"Il download del filmato è stato interrotto a causa di un problema rete.","The media could not be loaded, either because the server or network failed or because the format is not supported.":"Il filmato non può essere caricato a causa di un errore nel server o nella rete o perché il formato non viene supportato.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"La riproduzione del filmato è stata interrotta a causa di un file danneggiato o per l’utilizzo di impostazioni non supportate dal browser.","No compatible source was found for this media.":"Non ci sono fonti compatibili per questo filmato.","The media is encrypted and we do not have the keys to decrypt it.":"Il contenuto multimediale è criptato e non disponiamo delle chiavi per decifrarlo.","Play Video":"Riproduci il video",Close:"Chiudi","Close Modal Dialog":"Chiudi la finestra di dialogo","Modal Window":"Finestra di dialogo","This is a modal window":"Questa è una finestra di dialogo","This modal can be closed by pressing the Escape key or activating the close button.":"Questa finestra di dialogo può essere chiusa premendo sul tasto Esc o attivando il pulsante di chiusura.",", opens captions settings dialog":", aprire i parametri della trascrizione dei sottotitoli",", opens subtitles settings dialog":", aprire i parametri dei sottotitoli",", opens descriptions settings dialog":", aprire i parametri delle descrizioni",", selected":", selezionato","captions settings":"Parametri sottotitoli non udenti","subtitles settings":"Parametri sottotitoli","descriptions settings":"Parametri descrizioni",Text:"Testo",White:"Bianco",Black:"Nero",Red:"Rosso",Green:"Verde",Blue:"Blu",Yellow:"Giallo",Magenta:"Magenta",Cyan:"Ciano",Background:"Sfondo",Window:"Finestra",Transparent:"Trasparente","Semi-Transparent":"Semi-Trasparente",Opaque:"Opaco","Font Size":"Dimensione dei caratteri","Text Edge Style":"Stile dei bordi del testo",None:"Nessuno",Uniform:"Uniforme","Drop shadow":"Ombra","Font Family":"Carattere","Proportional Sans-Serif":"Sans-Serif proporzionale","Monospace Sans-Serif":"Sans-Serif monospaziato","Proportional Serif":"Serif proporzionale","Monospace Serif":"Serif monospaziato","Small Caps":"Maiuscoletto",Reset:"Reinizializza","restore all settings to the default values":"Ripristina i valori predefiniti per tutti i parametri",Done:"Fatto","Caption Settings Dialog":"Finestra di dialogo dei parametri della trascrizione dei sottotitoli","Beginning of dialog window. Escape will cancel and close the window.":"Inizio della finestra di dialogo. Il tasto Esc annullerà l’operazione e chiuderà la finestra.","End of dialog window.":"Fine della finestra di dialogo.","{1} is loading.":"{1} in fase di caricamento.","Exit Picture-in-Picture":"Esci dalla modalità Picture-in-Picture","Picture-in-Picture":"Picture-in-Picture",Color:"Colore",Opacity:"Opacità","Text Background":"Sfondo testo","Caption Area Background":"Sfondo area sottotitoli","Skip forward {1} seconds":"Avanti {1} secondi","Skip backward {1} seconds":"Indietro {1} secondi"}},language:"it"},Ya={};"undefined"!=typeof window&&(window.videojs=e);class Ka extends it{constructor(t,i){super(t),t.classList.add("video-js","vjs-theme-bootstrap-italia","vjs-fluid","vjs-big-play-centered"),this._config=this._getConfig(i),this.player=e(t,Qa)}setYouTubeVideo(t){Ua(e),this.player.tech("youtube"),this.player.src({type:"video/youtube",src:t})}static get NAME(){return"videoplayer"}_getConfig(t){return t={...Ya,...tt.getDataAttributes(this._element),..."object"==typeof t?t:{}}}}const Ga=st.find("[data-bs-video]");Ga.length>0&&Ga.forEach((t=>{Ka.getOrCreateInstance(t)}));const Xa="show";class Za extends it{constructor(t,e){super(t.closest(".acceptoverlay")),this._overlayable=t.closest(".acceptoverlayable");const i=f.isChoiceRemembered(e.service);if(this._isShown=!0,this._toggleElement=t,this._element.classList.contains(Xa)&&this._overlayable.classList.add(Xa),i)return this.hide(),void setTimeout((()=>{this._toggleElement.dispatchEvent(new Event("click"))}),100);this._toggleElement.addEventListener("click",(()=>{this.hide(),this._remember=this._toggleElement.parentElement.querySelector("[data-bs-accept-remember]").checked,f.rememberChoice(e.service,this._remember)}))}static get NAME(){return"acceptoverlay"}show(){this._isShown||this._isTransitioning||(this._isShown=!0,this._isAnimated()&&(this._isTransitioning=!0),this._showElement())}hide(){if(!this._isShown||this._isTransitioning)return;this._isShown=!1;const t=this._isAnimated();t&&(this._isTransitioning=!0),this._element.classList.remove(Xa),this._overlayable.classList.remove(Xa),this._queueCallback((()=>this._hideElement()),this._element,t)}_isAnimated(){return this._element.classList.contains("fade")}_showElement(){const t=this._isAnimated();this._element.removeAttribute("aria-hidden"),t&&A(this._element),this._element.classList.add(Xa),this._overlayable.add(Xa);this._queueCallback((()=>{this._isTransitioning=!1}),this._element,t)}_hideElement(){this._element.setAttribute("aria-hidden",!0),this._isTransitioning=!1}}const Ja=st.find("[data-bs-accept-from]");Ja.length>0&&Ja.forEach((t=>{Za.getOrCreateInstance(t,{service:t.dataset.bsAcceptFrom})})),u();return{Alert:class extends Qs{},Button:class extends Ks{},Carousel:class extends On{},Collapse:class extends qn{},Dropdown:class extends mo{},Modal:class extends Xo{},Offcanvas:class extends gr{},Popover:class extends Wr{},ScrollSpy:class extends Zr{},Tab:Oa,Toast:class extends Ha{},Tooltip:class extends jr{},VideoPlayer:Ka,AcceptOverlay:Za,Accordion:me,BackToTop:rs,CarouselBI:rt,Cookiebar:Bt,Dimmer:Et,FormValidate:class{constructor(t,e,i){return this.formSelector=t,this.target=document.querySelector(t),this.validate=null!=i?new di(t,e,i):new di(t,e),this.config=Object.assign({},gi,this.validate.globalConfig),this.formItems=[],this.init(),this.validate}init(){this.target.querySelectorAll("input, select").forEach((t=>{const e=new fi(t,this.config.errorFieldCssClass,(()=>this.onInputError(t)),(()=>this.onInputErrorRemove(t)),!0);t.id||t.setAttribute("id",mi+"-input-"+Math.random()),this.formItems.push({item:t,watcher:e})}));this.target.querySelectorAll("fieldset").forEach((t=>{if(t.querySelectorAll("input[type=radio],input[type=checkbox]").length>0){const e=new pi(t,"."+this.config.errorLabelCssClass,(()=>this.onFieldsetError(t)),(()=>this.onFieldsetErrorRemove(t)));t.id||t.setAttribute("id",mi+"-fieldset-"+Math.random()),this.formItems.push({item:t,watcher:e})}}))}onInputError(t){const e=this.getErrorMessages(t),i=[];e.forEach(((e,s)=>{const n=t.id+"-error-"+s;e.setAttribute("id",n),i.push(n)})),i.length>0&&(t.setAttribute("aria-describedby",i.join(" ")),t.setAttribute("aria-invalid","true"))}onInputErrorRemove(t){t.removeAttribute("aria-describedby"),t.setAttribute("aria-invalid","false")}onFieldsetError(t){const e=this.getErrorMessages(t),i=[],s=[];if(e.forEach(((e,n)=>{const o=t.id+"-error-"+n;e.setAttribute("id",o),i.push(o),s.push(e.textContent)})),i.length>0){const e=t.querySelector("legend");e&&(e.setAttribute("aria-describedby",i.join(" ")),e.setAttribute("aria-invalid","true"))}}onFieldsetErrorRemove(t){const e=t.querySelector("legend");if(e){e.removeAttribute("aria-describedby"),e.setAttribute("aria-invalid","false");const t=e.querySelector(".sr-only-justvalidate-bi");t&&t.remove()}}getErrorMessages(t){let e=t,i=e.querySelectorAll("."+this.config.errorLabelCssClass);for(;null!=e&&0===i.length;)e=e.parentNode,i=e.querySelectorAll("."+this.config.errorLabelCssClass);return i}},Forward:gs,HistoryBack:hs,Input:_i,InputNumber:yt,InputPassword:Ni,InputSearchAutocomplete:ki,List:Ts,Masonry:vs,NavBarCollapsible:ue,NavScroll:De,Notification:Ot,ProgressDonut:Ui,SelectAutocomplete:class extends it{constructor(t,e){super(t),this._hasFormControl=t.classList.contains("form-control"),this.element_original_id=this._element.id,this._config=e,this._config.tAssistiveHint||(this._config.tAssistiveHint=()=>"Quando i risultati del completamento automatico sono disponibili, usa le frecce su e giù per rivedere e Invio per selezionare. Utenti di dispositivi touch, esplora tramite tocco o con gesti di scorrimento"),this._config.tNoResults||(this._config.tNoResults=()=>"Nessun risultato trovato"),this._config.tStatusQueryTooShort||(this._config.tStatusQueryTooShort=t=>`Digita ${t} o più caratteri per mostrare le opzioni di ricerca`),this._config.tStatusNoResults||(this._config.tStatusNoResults=()=>"Nessun risultato di ricerca"),this._config.tStatusSelectedOption||(this._config.tStatusSelectedOption=(t,e,i)=>`${t} ${i+1} di ${e} è sottolineato`),this._config.tStatusResults||(this._config.tStatusResults=(t,e)=>`${t} ${1===t?"risultato":"risultati"} ${1===t?"è":"sono"} ${1===t?"disponibile":"disponibili"}. ${e}`),this._enhance()}static get NAME(){return"selectautocomplete"}_enhance(){o.enhanceSelectElement(Object.assign({},{selectElement:this._element},this._config)),setTimeout((()=>{if(this._hasFormControl){if("undefined"==typeof document)return;const t=document.getElementById(this.element_original_id);t.classList.add("form-control"),function(t,e){const i=new MutationObserver((t=>{t.forEach((t=>{"attributes"===t.type&&"class"===t.attributeName&&e(t.target)}))}));i.observe(t,{attributes:!0}),i.disconnect}(t,(t=>{t.classList.contains("form-control")||t.classList.add("form-control")}))}}),100)}},Sticky:Qe,HeaderSticky:Xe,Transfer:zs,UploadDragDrop:is,ValidatorSelectAutocomplete:(t,e={})=>(i,s)=>{let n=!1;const o=s[t];if(!o)throw new Error("ValidatorSelectAutocomplete: "+t+" not found as form field");return e.required||i?document.querySelector("#"+o.elem.id+"-select").querySelectorAll("option").forEach((t=>{t.text===i&&(n=!0)})):n=!0,n},loadFonts:(t="/node_modules/bootstrap-italia/dist/fonts")=>{if("undefined"==typeof document)return;const e=document.createElement("style"),i=window.__PUBLIC_PATH__?window.__PUBLIC_PATH__:t;e.innerHTML=`\n /* Titillium+Web:300,400,600,700 */\n\n /* titillium-web-300 - latin-ext_latin */\n @font-face {\n font-family: 'Titillium Web';\n font-style: normal;\n font-weight: 300;\n font-display: swap;\n src: url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-300.eot'); /* IE9 Compat Modes */\n src: local(''),\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-300.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-300.woff2') format('woff2'), /* Super Modern Browsers */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-300.woff') format('woff'), /* Modern Browsers */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-300.ttf') format('truetype'), /* Safari, Android, iOS */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-300.svg#TitilliumWeb') format('svg'); /* Legacy iOS */\n }\n\n /* titillium-web-300italic - latin-ext_latin */\n @font-face {\n font-family: 'Titillium Web';\n font-style: italic;\n font-weight: 300;\n font-display: swap;\n src: url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-300italic.eot'); /* IE9 Compat Modes */\n src: local(''),\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-300italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-300italic.woff2') format('woff2'), /* Super Modern Browsers */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-300italic.woff') format('woff'), /* Modern Browsers */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-300italic.ttf') format('truetype'), /* Safari, Android, iOS */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-300italic.svg#TitilliumWeb') format('svg'); /* Legacy iOS */\n }\n\n /* titillium-web-regular - latin-ext_latin */\n @font-face {\n font-family: 'Titillium Web';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-regular.eot'); /* IE9 Compat Modes */\n src: local(''),\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-regular.woff2') format('woff2'), /* Super Modern Browsers */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-regular.woff') format('woff'), /* Modern Browsers */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-regular.svg#TitilliumWeb') format('svg'); /* Legacy iOS */\n }\n\n /* titillium-web-italic - latin-ext_latin */\n @font-face {\n font-family: 'Titillium Web';\n font-style: italic;\n font-weight: 400;\n font-display: swap;\n src: url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-italic.eot'); /* IE9 Compat Modes */\n src: local(''),\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-italic.woff2') format('woff2'), /* Super Modern Browsers */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-italic.woff') format('woff'), /* Modern Browsers */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-italic.ttf') format('truetype'), /* Safari, Android, iOS */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-italic.svg#TitilliumWeb') format('svg'); /* Legacy iOS */\n }\n\n /* titillium-web-700 - latin-ext_latin */\n @font-face {\n font-family: 'Titillium Web';\n font-style: normal;\n font-weight: 700;\n font-display: swap;\n src: url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-700.eot'); /* IE9 Compat Modes */\n src: local(''),\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-700.woff2') format('woff2'), /* Super Modern Browsers */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-700.woff') format('woff'), /* Modern Browsers */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-700.ttf') format('truetype'), /* Safari, Android, iOS */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-700.svg#TitilliumWeb') format('svg'); /* Legacy iOS */\n }\n\n /* titillium-web-700italic - latin-ext_latin */\n @font-face {\n font-family: 'Titillium Web';\n font-style: italic;\n font-weight: 700;\n font-display: swap;\n src: url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-700italic.eot'); /* IE9 Compat Modes */\n src: local(''),\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-700italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-700italic.woff2') format('woff2'), /* Super Modern Browsers */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-700italic.woff') format('woff'), /* Modern Browsers */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-700italic.ttf') format('truetype'), /* Safari, Android, iOS */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-700italic.svg#TitilliumWeb') format('svg'); /* Legacy iOS */\n }\n /* titillium-web-600 - latin-ext_latin */\n @font-face {\n font-family: 'Titillium Web';\n font-style: normal;\n font-weight: 600;\n font-display: swap;\n src: url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-600.eot'); /* IE9 Compat Modes */\n src: local(''),\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-600.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-600.woff2') format('woff2'), /* Super Modern Browsers */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-600.woff') format('woff'), /* Modern Browsers */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-600.ttf') format('truetype'), /* Safari, Android, iOS */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-600.svg#TitilliumWeb') format('svg'); /* Legacy iOS */\n }\n\n /* titillium-web-600italic - latin-ext_latin */\n @font-face {\n font-family: 'Titillium Web';\n font-style: italic;\n font-weight: 600;\n font-display: swap;\n src: url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-600italic.eot'); /* IE9 Compat Modes */\n src: local(''),\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-600italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-600italic.woff2') format('woff2'), /* Super Modern Browsers */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-600italic.woff') format('woff'), /* Modern Browsers */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-600italic.ttf') format('truetype'), /* Safari, Android, iOS */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-600italic.svg#TitilliumWeb') format('svg'); /* Legacy iOS */\n }\n\n /* Lora:400,700 */\n\n /* lora-regular - latin-ext_latin */\n @font-face {\n font-family: 'Lora';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url('${i}/Lora/lora-v20-latin-ext_latin-regular.eot'); /* IE9 Compat Modes */\n src: local(''),\n url('${i}/Lora/lora-v20-latin-ext_latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */\n url('${i}/Lora/lora-v20-latin-ext_latin-regular.woff2') format('woff2'), /* Super Modern Browsers */\n url('${i}/Lora/lora-v20-latin-ext_latin-regular.woff') format('woff'), /* Modern Browsers */\n url('${i}/Lora/lora-v20-latin-ext_latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */\n url('${i}/Lora/lora-v20-latin-ext_latin-regular.svg#Lora') format('svg'); /* Legacy iOS */\n }\n\n /* lora-700 - latin-ext_latin */\n @font-face {\n font-family: 'Lora';\n font-style: normal;\n font-weight: 700;\n font-display: swap;\n src: url('${i}/Lora/lora-v20-latin-ext_latin-700.eot'); /* IE9 Compat Modes */\n src: local(''),\n url('${i}/Lora/lora-v20-latin-ext_latin-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */\n url('${i}/Lora/lora-v20-latin-ext_latin-700.woff2') format('woff2'), /* Super Modern Browsers */\n url('${i}/Lora/lora-v20-latin-ext_latin-700.woff') format('woff'), /* Modern Browsers */\n url('${i}/Lora/lora-v20-latin-ext_latin-700.ttf') format('truetype'), /* Safari, Android, iOS */\n url('${i}/Lora/lora-v20-latin-ext_latin-700.svg#Lora') format('svg'); /* Legacy iOS */\n }\n\n /* lora-italic - latin-ext_latin */\n @font-face {\n font-family: 'Lora';\n font-style: italic;\n font-weight: 400;\n font-display: swap;\n src: url('${i}/Lora/lora-v20-latin-ext_latin-italic.eot'); /* IE9 Compat Modes */\n src: local(''),\n url('${i}/Lora/lora-v20-latin-ext_latin-italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */\n url('${i}/Lora/lora-v20-latin-ext_latin-italic.woff2') format('woff2'), /* Super Modern Browsers */\n url('${i}/Lora/lora-v20-latin-ext_latin-italic.woff') format('woff'), /* Modern Browsers */\n url('${i}/Lora/lora-v20-latin-ext_latin-italic.ttf') format('truetype'), /* Safari, Android, iOS */\n url('${i}/Lora/lora-v20-latin-ext_latin-italic.svg#Lora') format('svg'); /* Legacy iOS */\n }\n\n /* lora-700italic - latin-ext_latin */\n @font-face {\n font-family: 'Lora';\n font-style: italic;\n font-weight: 700;\n font-display: swap;\n src: url('${i}/Lora/lora-v20-latin-ext_latin-700italic.eot'); /* IE9 Compat Modes */\n src: local(''),\n url('${i}/Lora/lora-v20-latin-ext_latin-700italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */\n url('${i}/Lora/lora-v20-latin-ext_latin-700italic.woff2') format('woff2'), /* Super Modern Browsers */\n url('${i}/Lora/lora-v20-latin-ext_latin-700italic.woff') format('woff'), /* Modern Browsers */\n url('${i}/Lora/lora-v20-latin-ext_latin-700italic.ttf') format('truetype'), /* Safari, Android, iOS */\n url('${i}/Lora/lora-v20-latin-ext_latin-700italic.svg#Lora') format('svg'); /* Legacy iOS */\n }\n\n /* Roboto+Mono:400,700 */\n\n /* roboto-mono-regular - latin-ext_latin */\n @font-face {\n font-family: 'Roboto Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-regular.eot'); /* IE9 Compat Modes */\n src: local(''),\n url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */\n url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-regular.woff2') format('woff2'), /* Super Modern Browsers */\n url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-regular.woff') format('woff'), /* Modern Browsers */\n url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */\n url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-regular.svg#RobotoMono') format('svg'); /* Legacy iOS */\n }\n\n /* roboto-mono-700 - latin-ext_latin */\n @font-face {\n font-family: 'Roboto Mono';\n font-style: normal;\n font-weight: 700;\n font-display: swap;\n src: url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-700.eot'); /* IE9 Compat Modes */\n src: local(''),\n url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */\n url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-700.woff2') format('woff2'), /* Super Modern Browsers */\n url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-700.woff') format('woff'), /* Modern Browsers */\n url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-700.ttf') format('truetype'), /* Safari, Android, iOS */\n url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-700.svg#RobotoMono') format('svg'); /* Legacy iOS */\n }\n\n /* roboto-mono-italic - latin-ext_latin */\n @font-face {\n font-family: 'Roboto Mono';\n font-style: italic;\n font-weight: 400;\n font-display: swap;\n src: url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-italic.eot'); /* IE9 Compat Modes */\n src: local(''),\n url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */\n url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-italic.woff2') format('woff2'), /* Super Modern Browsers */\n url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-italic.woff') format('woff'), /* Modern Browsers */\n url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-italic.ttf') format('truetype'), /* Safari, Android, iOS */\n url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-italic.svg#RobotoMono') format('svg'); /* Legacy iOS */\n }\n\n /* roboto-mono-700italic - latin-ext_latin */\n @font-face {\n font-family: 'Roboto Mono';\n font-style: italic;\n font-weight: 700;\n font-display: swap;\n src: url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-700italic.eot'); /* IE9 Compat Modes */\n src: local(''),\n url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-700italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */\n url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-700italic.woff2') format('woff2'), /* Super Modern Browsers */\n url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-700italic.woff') format('woff'), /* Modern Browsers */\n url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-700italic.ttf') format('truetype'), /* Safari, Android, iOS */\n url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-700italic.svg#RobotoMono') format('svg'); /* Legacy iOS */\n }\n `,document.getElementsByTagName("head")[0].appendChild(e)},cookies:f}}));
|
|
3
|
+
this._autocompleteElement.innerHTML="",t?this._items.forEach((e=>{let i=new RegExp("("+t+")","gi"),s=e.text.replace(i,"<mark>$1</mark>"),n=e.label?"<em>"+e.label+"</em>":"",o=e.icon?e.icon:"",r=e.link?e.link:"#";-1!==s.toLowerCase().indexOf(t.toLowerCase())&&(this._autocompleteElement.classList.add(gi),this._autocompleteElement.appendChild(this._createOption(r,s,n,o)))})):this._autocompleteElement.classList.remove(gi)}_getConfig(t){return t={...mi,..."object"==typeof t?t:{}}}_getItems(){try{return JSON.parse(this._element.getAttribute(_i))}catch(t){return console.error("[InputSearchAutocomplete] invalid data provided for "+_i+" attribute",t),[]}}_init(){if(this._element.classList.contains("autocomplete")){if("undefined"==typeof document)return;this._items=this._getItems(),this._autocompleteElement=document.createElement("ul"),this._autocompleteElement.classList.add("autocomplete-list"),this._element.parentNode.insertBefore(this._autocompleteElement,this._element.nextSibling)}}_bindEvents(){H.on(this._element,"keyup.bs.inputsearchautocomplete",(()=>this.search()))}_createOption(t,e,i,s){if("undefined"==typeof document)return;const n=document.createElement("li");return n.innerHTML=`<a href="${t}">\n ${s}\n <span class="autocomplete-list-text">\n <span>${e}</span>\n ${i}\n </span>\n </a>`,n}}"undefined"!=typeof document&&document.addEventListener("DOMContentLoaded",(function(){document.querySelectorAll(bi+", label").forEach((function(t){const e=at.getInputFromLabel(t)||t;var i;(i=e)&&i.matches(bi)&&vi.getOrCreateInstance(i)}))}));const yi=".bs.inputpassword",wi=".data-api",Ei={shortPass:"Password troppo breve",badPass:"Password debole.",goodPass:"Password abbastanza sicura.",strongPass:"Password sicura.",minimumLength:8,suggestionsLabel:"Suggerimenti per una buona password:",suggestionFollowed:"suggerimenti seguito",suggestionFollowedPlural:"suggerimenti seguiti",suggestionOf:"di",suggestionMetLabel:"Soddisfatto: ",suggestionMetIconPath:"\n M9.6 16.9 4 11.4l.8-.7 4.8 4.8 8.5-8.4.7.7-9.2 9.1z\n ",suggestionLength:"Almeno {minLength} caratteri.",suggestionUppercase:"Una o più maiuscole.",suggestionLowercase:"Una o più minuscole.",suggestionNumber:"Uno o più numeri.",suggestionSpecial:"Uno o più caratteri speciali."},Ci=`click${yi}`,Si=`keyup${yi}`,ki=`score${yi}`,Ti=`text${yi}`,Ai=`suggs${yi}`,Li=`click${yi}${wi}`,xi=`mousedown${yi}${wi}`,Oi=`keyup${yi}${wi}`,Ii='input[data-bs-input][type="password"]',Pi=".password-icon";class Mi extends Q{constructor(t,e){super(t),this._config=this._getConfig(e),this._isCustom=this._element.classList.contains("input-password"),this._meter=this._element.parentNode.querySelector(".password-strength-meter"),this._grayBarElement=null,this._colorBarElement=null,this._textElement=null,this._suggsElement=null,this._showPwdElement=null,this._text={},this._label=new at(t),this._suggestions=[{key:"length",text:t=>t.suggestionLength.replace("{minLength}",t.minimumLength.toString()),test:(t,e)=>t.length>=e.minimumLength},{key:"uppercase",text:t=>t.suggestionUppercase,test:t=>/[A-Z]/.test(t)},{key:"lowercase",text:t=>t.suggestionLowercase,test:t=>/[a-z]/.test(t)},{key:"number",text:t=>t.suggestionNumber,test:t=>/[0-9]/.test(t)},{key:"special",text:t=>t.suggestionSpecial,test:t=>/[^A-Za-z0-9]/.test(t)}],this._init(),this._bindEvents()}static get NAME(){return"inputpassword"}_getConfig(t){return t={...Ei,...X.getDataAttributes(this._element),..."object"==typeof t?t:{}}}_init(){this._isCustom&&(this._handleAutofill(),this._showPwdElement=Z.findOne(Pi,this._element.parentNode),this._meter&&(this._grayBarElement=this._meter.querySelector(".password-meter"),this._colorBarElement=this._meter.querySelector(".progress-bar"),this._textElement=this._meter.querySelector(".strength-meter-info"),this._suggsElement=this._meter.querySelector(".strenght-meter-suggestions"),this._textElement&&(this._config=Object.assign({},this._config,{...X.getDataAttributes(this._textElement)})),this._suggsElement&&this._createsuggestionsList()))}_bindEvents(){this._isCustom&&(this._showPwdElement&&H.on(this._showPwdElement,Ci,(()=>this._toggleShowPassword())),this._meter&&(H.on(this._element,Si,(()=>this._checkPassword())),H.on(this._element,"input",(()=>this._checkPassword()))))}_handleAutofill(){const t=()=>{""!==this._element.value&&(this._label._labelOut(),this._checkPassword())};t(),setTimeout(t,100),H.on(this._element,"animationstart",(e=>{"onAutoFillStart"===e.animationName&&t()}))}_toggleShowPassword(){const t="password"===this._element.getAttribute("type");Z.find('[class^="password-icon"]',this._showPwdElement).forEach((t=>t.classList.toggle("d-none"))),this._element.setAttribute("type",t?"text":"password"),this._showPwdElement.setAttribute("aria-checked",t.toString())}_checkPassword(){const t=this._element.value,e=this._calculateScore(t);this._updateMeter(e),this._updateText(e,t),this._updateSuggestions(t)}_updateMeter(t){const e=t<0?0:t;this._colorBarElement&&(this._colorBarElement.classList.forEach((t=>{t.match(/(^|\s)bg-\S+/g)&&this._colorBarElement.classList.remove(t)})),this._colorBarElement.classList.add(`bg-${this._scoreColor(t)}`),this._colorBarElement.style.width=`${e}%`,this._colorBarElement.setAttribute("aria-valuenow",e)),H.trigger(this._element,ki)}_updateText(t,e){if(this._textElement){let i=this._scoreText(t);if(this._suggsElement){const{completedCount:t,totalCount:s}=this._getCompletedSuggestions(e),n=1===t?this._config.suggestionFollowed:this._config.suggestionFollowedPlural;i+=` ${t} ${this._config.suggestionOf} ${s} ${n}.`}this._textElement.textContent!==i&&(this._textElement.textContent=i,this._textElement.classList.forEach((t=>{t.match(/(^|\s)text-\S+/g)&&this._textElement.classList.remove(t)})),this._textElement.classList.add(`text-${this._scoreColor(t)}`),H.trigger(this._element,Ti))}}_updateSuggestions(t){this._suggsElement&&(this._updateSuggestionsList(t),H.trigger(this._element,Ai))}_getCompletedSuggestions(t){let e=0;const i=this._suggestions.length;return this._suggestions.forEach((i=>{i.test(t,this._config)&&e++})),{completedCount:e,totalCount:i}}_createsuggestionsList(){if(this._suggsElement.querySelector(".password-suggestions"))return;const t=document.createElement("label");t.className="visually-hidden",t.htmlFor="suggestions",t.textContent=Ei.suggestionsLabel;const e=document.createElement("div");e.id="suggestions",e.className="password-suggestions",this._suggestions.forEach((t=>{const i=document.createElement("div");i.className="suggestion",i.dataset.suggestion=t.key;const s=this._createIconCheck(),n=document.createElement("span");n.textContent=t.text(this._config),i.appendChild(s),i.appendChild(n),e.appendChild(i)})),this._suggsElement.appendChild(t),this._suggsElement.appendChild(e)}_createIconCheck(){const t=document.createElementNS("http://www.w3.org/2000/svg","svg");t.setAttribute("class","icon icon-xs me-1 d-none"),t.setAttribute("aria-label",this._config.suggestionMetLabel),t.setAttribute("viewBox","0 0 24 24"),t.style.width="1em",t.style.height="1em";const e=document.createElementNS("http://www.w3.org/2000/svg","path");return e.setAttribute("d",this._config.suggestionMetIconPath.trim()),t.appendChild(e),t}_updateSuggestionsList(t){this._suggsElement&&this._suggestions.forEach((e=>{const i=this._suggsElement.querySelector(`[data-suggestion="${e.key}"]`);if(i){const s=e.test(t,this._config),n=i.querySelector(".icon");n&&n.classList.toggle("d-none",!s)}}))}_scoreText(t){return-1===t?this._config.shortPass:-2===t?"":(t=t<0?0:t)<26||t<51?this._config.badPass:t<76?this._config.goodPass:this._config.strongPass}_scoreColor(t){return-1===t||-2===t||t<26?"danger":t<51?"warning":"success"}_calculateScore(t){var e=0;if(0===t.trim().length)return-2;if(t.length<this._config.minimumLength)return-1;e+=4*t.length,e+=this._checkRepetition(1,t).length-t.length,e+=this._checkRepetition(2,t).length-t.length,e+=this._checkRepetition(3,t).length-t.length,e+=this._checkRepetition(4,t).length-t.length,t.match(/(.*[0-9].*[0-9].*[0-9])/)&&(e+=5);var i=".*[!,@,#,$,%,^,&,*,?,_,~]";return i=new RegExp("("+i+i+")"),t.match(i)&&(e+=5),t.match(/([a-z].*[A-Z])|([A-Z].*[a-z])/)&&(e+=10),t.match(/([a-zA-Z])/)&&t.match(/([0-9])/)&&(e+=15),t.match(/([!,@,#,$,%,^,&,*,?,_,~])/)&&t.match(/([0-9])/)&&(e+=15),t.match(/([!,@,#,$,%,^,&,*,?,_,~])/)&&t.match(/([a-zA-Z])/)&&(e+=15),(t.match(/^\w+$/)||t.match(/^\d+$/))&&(e-=10),e>100&&(e=100),e<0&&(e=0),e}_checkRepetition(t,e){for(var i="",s=!1,n=0;n<e.length;n++){s=!0;for(var o=0;o<t&&o+n+t<e.length;o++)s=s&&e.charAt(o+n)===e.charAt(o+n+t);o<t&&(s=!1),s?(n+=t-1,s=!1):i+=e.charAt(n)}return i}}if("undefined"!=typeof window&&"undefined"!=typeof document){const t=t=>t&&t.matches(Ii)?Mi.getOrCreateInstance(t):null,e=()=>{const t=Z.findOne(Ii);t&&Mi.getOrCreateInstance(t)};"loading"!==document.readyState?e():document.addEventListener("DOMContentLoaded",e),H.on(document,xi,Ii+", label",(function(){const e=at.getInputFromLabel(this)||this;t(e)})),H.on(document,Oi,Ii+", label",(function(){const e=at.getInputFromLabel(this)||this,i=t(e);i&&i._label&&i._label._labelOut()})),H.on(document,Li,Pi,(function(){const t=this.parentNode&&this.parentNode.querySelector(Ii);t&&Mi.getOrCreateInstance(t)}))}var $i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Fi(t,e){return t(e={exports:{}},e.exports),e.exports}var ji,Ni=Fi((function(t,e){
|
|
4
|
+
/*! Shifty 2.20.4 - https://github.com/jeremyckahn/shifty */
|
|
5
|
+
var i;i=function(){return(()=>{var t={720:(t,e,i)=>{i.r(e),i.d(e,{Scene:()=>le,Tweenable:()=>Et,interpolate:()=>ie,processTweens:()=>pt,setBezierFunction:()=>W,shouldScheduleUpdate:()=>_t,tween:()=>Ct,unsetBezierFunction:()=>q});var s={};i.r(s),i.d(s,{bounce:()=>F,bouncePast:()=>j,easeFrom:()=>D,easeFromTo:()=>N,easeInBack:()=>L,easeInCirc:()=>S,easeInCubic:()=>c,easeInExpo:()=>w,easeInOutBack:()=>O,easeInOutCirc:()=>T,easeInOutCubic:()=>u,easeInOutExpo:()=>C,easeInOutQuad:()=>l,easeInOutQuart:()=>p,easeInOutQuint:()=>_,easeInOutSine:()=>y,easeInQuad:()=>r,easeInQuart:()=>d,easeInQuint:()=>m,easeInSine:()=>b,easeOutBack:()=>x,easeOutBounce:()=>A,easeOutCirc:()=>k,easeOutCubic:()=>h,easeOutExpo:()=>E,easeOutQuad:()=>a,easeOutQuart:()=>f,easeOutQuint:()=>g,easeOutSine:()=>v,easeTo:()=>R,elastic:()=>I,linear:()=>o,swingFrom:()=>M,swingFromTo:()=>P,swingTo:()=>$});var n={};i.r(n),i.d(n,{afterTween:()=>Qt,beforeTween:()=>Kt,doesApply:()=>Yt,tweenCreated:()=>Xt});
|
|
6
|
+
/*!
|
|
7
|
+
* All equations are adapted from Thomas Fuchs'
|
|
8
|
+
* [Scripty2](https://github.com/madrobby/scripty2/blob/master/src/effects/transitions/penner.js).
|
|
9
|
+
*
|
|
10
|
+
* Based on Easing Equations (c) 2003 [Robert
|
|
11
|
+
* Penner](http://www.robertpenner.com/), all rights reserved. This work is
|
|
12
|
+
* [subject to terms](http://www.robertpenner.com/easing_terms_of_use.html).
|
|
13
|
+
*/
|
|
14
|
+
/*!
|
|
15
|
+
* TERMS OF USE - EASING EQUATIONS
|
|
16
|
+
* Open source under the BSD License.
|
|
17
|
+
* Easing Equations (c) 2003 Robert Penner, all rights reserved.
|
|
18
|
+
*/
|
|
19
|
+
var o=function(t){return t},r=function(t){return Math.pow(t,2)},a=function(t){return-(Math.pow(t-1,2)-1)},l=function(t){return(t/=.5)<1?.5*Math.pow(t,2):-.5*((t-=2)*t-2)},c=function(t){return Math.pow(t,3)},h=function(t){return Math.pow(t-1,3)+1},u=function(t){return(t/=.5)<1?.5*Math.pow(t,3):.5*(Math.pow(t-2,3)+2)},d=function(t){return Math.pow(t,4)},f=function(t){return-(Math.pow(t-1,4)-1)},p=function(t){return(t/=.5)<1?.5*Math.pow(t,4):-.5*((t-=2)*Math.pow(t,3)-2)},m=function(t){return Math.pow(t,5)},g=function(t){return Math.pow(t-1,5)+1},_=function(t){return(t/=.5)<1?.5*Math.pow(t,5):.5*(Math.pow(t-2,5)+2)},b=function(t){return 1-Math.cos(t*(Math.PI/2))},v=function(t){return Math.sin(t*(Math.PI/2))},y=function(t){return-.5*(Math.cos(Math.PI*t)-1)},w=function(t){return 0===t?0:Math.pow(2,10*(t-1))},E=function(t){return 1===t?1:1-Math.pow(2,-10*t)},C=function(t){return 0===t?0:1===t?1:(t/=.5)<1?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*--t))},S=function(t){return-(Math.sqrt(1-t*t)-1)},k=function(t){return Math.sqrt(1-Math.pow(t-1,2))},T=function(t){return(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},A=function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},L=function(t){var e=1.70158;return t*t*((e+1)*t-e)},x=function(t){var e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},O=function(t){var e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},I=function(t){return-1*Math.pow(4,-8*t)*Math.sin((6*t-1)*(2*Math.PI)/2)+1},P=function(t){var e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},M=function(t){var e=1.70158;return t*t*((e+1)*t-e)},$=function(t){var e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},F=function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},j=function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?2-(7.5625*(t-=1.5/2.75)*t+.75):t<2.5/2.75?2-(7.5625*(t-=2.25/2.75)*t+.9375):2-(7.5625*(t-=2.625/2.75)*t+.984375)},N=function(t){return(t/=.5)<1?.5*Math.pow(t,4):-.5*((t-=2)*Math.pow(t,3)-2)},D=function(t){return Math.pow(t,4)},R=function(t){return Math.pow(t,.25)};function B(t,e,i,s,n,o){var r,a,l=0,c=0,h=0,u=0,d=0,f=0,p=function(t){return((l*t+c)*t+h)*t},m=function(t){return(3*l*t+2*c)*t+h},g=function(t){return t>=0?t:0-t};return l=1-(h=3*e)-(c=3*(s-e)-h),u=1-(f=3*i)-(d=3*(n-i)-f),r=t,a=function(t){return 1/(200*t)}(o),function(t){return((u*t+d)*t+f)*t}(function(t,e){var i,s,n,o,r,a;for(n=t,a=0;a<8;a++){if(o=p(n)-t,g(o)<e)return n;if(r=m(n),g(r)<1e-6)break;n-=o/r}if((n=t)<(i=0))return i;if(n>(s=1))return s;for(;i<s;){if(o=p(n),g(o-t)<e)return n;t>o?i=n:s=n,n=.5*(s-i)+i}return n}(r,a))}var V,z=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.25,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.25,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.75,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.75;return function(n){return B(n,t,e,i,s,1)}},W=function(t,e,i,s,n){var o=z(e,i,s,n);return o.displayName=t,o.x1=e,o.y1=i,o.x2=s,o.y2=n,Et.formulas[t]=o},q=function(t){return delete Et.formulas[t]};function H(t,e,i){return e&&function(t,e){for(var i=0;i<e.length;i++){var s=e[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,s.key,s)}}(t.prototype,e),t}function G(t){return G="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},G(t)}function U(t){return function(t){if(Array.isArray(t))return Y(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return Y(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Y(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Y(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,s=new Array(e);i<e;i++)s[i]=t[i];return s}function X(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,s)}return i}function K(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?X(Object(i),!0).forEach((function(e){Q(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):X(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function Q(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var Z,J,tt,et="linear",it=1e3/60,st="undefined"!=typeof window?window:$i,nt="afterTween",ot="beforeTween",rt="string",at=st.requestAnimationFrame||st.webkitRequestAnimationFrame||st.oRequestAnimationFrame||st.msRequestAnimationFrame||st.mozCancelRequestAnimationFrame&&st.mozRequestAnimationFrame||setTimeout,lt=function(){},ct=null,ht=null,ut=K({},s),dt=function(t,e,i,s,n,o,r){var a,l,c,h=t<o?0:(t-o)/n,u=!1;for(var d in r&&r.call&&(u=!0,a=r(h)),e)u||(a=((l=r[d]).call?l:ut[l])(h)),c=i[d],e[d]=c+(s[d]-c)*a;return e},ft=function(t,e){var i=t._timestamp,s=t._currentState,n=t._delay;if(!(e<i+n)){var o=t._duration,r=t._targetState,a=i+n+o,l=e>a?a:e;t._hasEnded=l>=a;var c=o-(a-l),h=t._filters.length>0;if(t._hasEnded)return t._render(r,t._data,c),t.stop(!0);h&&t._applyFilter(ot),l<i+n?i=o=l=1:i+=n,dt(l,s,t._originalState,r,o,i,t._easing),h&&t._applyFilter(nt),t._render(s,t._data,c)}},pt=function(){for(var t,e=Et.now(),i=ct;i;)t=i._next,ft(i,e),i=t},mt=Date.now||function(){return+new Date},gt=!1,_t=function(t){t&>||(gt=t,t&&bt())},bt=function t(){Z=mt(),gt&&at.call(st,t,it),pt()},vt=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:et,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(Array.isArray(e))return z.apply(void 0,U(e));var s=G(e);if(ut[e])return ut[e];if(s===rt||"function"===s)for(var n in t)i[n]=e;else for(var o in t)i[o]=e[o]||et;return i},yt=function(t){t===ct?(ct=t._next)?ct._previous=null:ht=null:t===ht?(ht=t._previous)?ht._next=null:ct=null:(J=t._previous,tt=t._next,J._next=tt,tt._previous=J),t._previous=t._next=null},wt="function"==typeof Promise?Promise:null;V=Symbol.toStringTag;var Et=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),Q(this,V,"Promise"),this._config={},this._data={},this._delay=0,this._filters=[],this._next=null,this._previous=null,this._timestamp=null,this._hasEnded=!1,this._resolve=null,this._reject=null,this._currentState=e||{},this._originalState={},this._targetState={},this._start=lt,this._render=lt,this._promiseCtor=wt,i&&this.setConfig(i)}return H(t,[{key:"_applyFilter",value:function(t){for(var e=this._filters.length;e>0;e--){var i=this._filters[e-e][t];i&&i(this)}}},{key:"tween",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;return this._isPlaying&&this.stop(),!e&&this._config||this.setConfig(e),this._pausedAtTime=null,this._timestamp=t.now(),this._start(this.get(),this._data),this._delay&&this._render(this._currentState,this._data,0),this._resume(this._timestamp)}},{key:"setConfig",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=this._config;for(var s in e)i[s]=e[s];var n=i.promise,o=void 0===n?this._promiseCtor:n,r=i.start,a=void 0===r?lt:r,l=i.finish,c=i.render,h=void 0===c?this._config.step||lt:c,u=i.step,d=void 0===u?lt:u;this._data=i.data||i.attachment||this._data,this._isPlaying=!1,this._pausedAtTime=null,this._scheduleId=null,this._delay=e.delay||0,this._start=a,this._render=h||d,this._duration=i.duration||500,this._promiseCtor=o,l&&(this._resolve=l);var f=e.from,p=e.to,m=void 0===p?{}:p,g=this._currentState,_=this._originalState,b=this._targetState;for(var v in f)g[v]=f[v];var y=!1;for(var w in g){var E=g[w];y||G(E)!==rt||(y=!0),_[w]=E,b[w]=m.hasOwnProperty(w)?m[w]:E}if(this._easing=vt(this._currentState,i.easing,this._easing),this._filters.length=0,y){for(var C in t.filters)t.filters[C].doesApply(this)&&this._filters.push(t.filters[C]);this._applyFilter("tweenCreated")}return this}},{key:"then",value:function(t,e){var i=this;return this._promise=new this._promiseCtor((function(t,e){i._resolve=t,i._reject=e})),this._promise.then(t,e)}},{key:"catch",value:function(t){return this.then().catch(t)}},{key:"finally",value:function(t){return this.then().finally(t)}},{key:"get",value:function(){return K({},this._currentState)}},{key:"set",value:function(t){this._currentState=t}},{key:"pause",value:function(){if(this._isPlaying)return this._pausedAtTime=t.now(),this._isPlaying=!1,yt(this),this}},{key:"resume",value:function(){return this._resume()}},{key:"_resume",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t.now();return null===this._timestamp?this.tween():this._isPlaying?this._promise:(this._pausedAtTime&&(this._timestamp+=e-this._pausedAtTime,this._pausedAtTime=null),this._isPlaying=!0,null===ct?(ct=this,ht=this):(this._previous=ht,ht._next=this,ht=this),this)}},{key:"seek",value:function(e){e=Math.max(e,0);var i=t.now();return this._timestamp+e===0||(this._timestamp=i-e,ft(this,i)),this}},{key:"stop",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this._isPlaying)return this;this._isPlaying=!1,yt(this);var e=this._filters.length>0;return t&&(e&&this._applyFilter(ot),dt(1,this._currentState,this._originalState,this._targetState,1,0,this._easing),e&&(this._applyFilter(nt),this._applyFilter("afterTweenEnd"))),this._resolve&&this._resolve({data:this._data,state:this._currentState,tweenable:this}),this._resolve=null,this._reject=null,this}},{key:"cancel",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this._currentState,i=this._data;return this._isPlaying?(this._reject&&this._reject({data:i,state:e,tweenable:this}),this._resolve=null,this._reject=null,this.stop(t)):this}},{key:"isPlaying",value:function(){return this._isPlaying}},{key:"hasEnded",value:function(){return this._hasEnded}},{key:"setScheduleFunction",value:function(e){t.setScheduleFunction(e)}},{key:"data",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return t&&(this._data=K({},t)),this._data}},{key:"dispose",value:function(){for(var t in this)delete this[t]}}]),t}();function Ct(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=new Et;return e.tween(t),e.tweenable=e,e}Q(Et,"now",(function(){return Z})),Q(Et,"setScheduleFunction",(function(t){return at=t})),Q(Et,"filters",{}),Q(Et,"formulas",ut),_t(!0);var St,kt,Tt=/(\d|-|\.)/,At=/([^\-0-9.]+)/g,Lt=/[0-9.-]+/g,xt=(St=Lt.source,kt=/,\s*/.source,new RegExp("rgba?\\(".concat(St).concat(kt).concat(St).concat(kt).concat(St,"(").concat(kt).concat(St,")?\\)"),"g")),Ot=/^.*\(/,It=/#([0-9]|[a-f]){3,6}/gi,Pt="VAL",Mt=function(t,e){return t.map((function(t,i){return"_".concat(e,"_").concat(i)}))};function $t(t){return parseInt(t,16)}var Ft=function(t){return"rgb(".concat((e=t,3===(e=e.replace(/#/,"")).length&&(e=(e=e.split(""))[0]+e[0]+e[1]+e[1]+e[2]+e[2]),[$t(e.substr(0,2)),$t(e.substr(2,2)),$t(e.substr(4,2))]).join(","),")");var e},jt=function(t,e,i){var s=e.match(t),n=e.replace(t,Pt);return s&&s.forEach((function(t){return n=n.replace(Pt,i(t))})),n},Nt=function(t){for(var e in t){var i=t[e];"string"==typeof i&&i.match(It)&&(t[e]=jt(It,i,Ft))}},Dt=function(t){var e=t.match(Lt),i=e.slice(0,3).map(Math.floor),s=t.match(Ot)[0];if(3===e.length)return"".concat(s).concat(i.join(","),")");if(4===e.length)return"".concat(s).concat(i.join(","),",").concat(e[3],")");throw new Error("Invalid rgbChunk: ".concat(t))},Rt=function(t){return t.match(Lt)},Bt=function(t){var e,i,s={};for(var n in t){var o=t[n];"string"==typeof o&&(s[n]={formatString:(e=o,i=void 0,i=e.match(At),i?(1===i.length||e.charAt(0).match(Tt))&&i.unshift(""):i=["",""],i.join(Pt)),chunkNames:Mt(Rt(o),n)})}return s},Vt=function(t,e){var i=function(i){Rt(t[i]).forEach((function(s,n){return t[e[i].chunkNames[n]]=+s})),delete t[i]};for(var s in e)i(s)},zt=function(t,e){var i={};return e.forEach((function(e){i[e]=t[e],delete t[e]})),i},Wt=function(t,e){return e.map((function(e){return t[e]}))},qt=function(t,e){return e.forEach((function(e){return t=t.replace(Pt,+e.toFixed(4))})),t},Ht=function(t,e){for(var i in e){var s=e[i],n=s.chunkNames,o=s.formatString,r=qt(o,Wt(zt(t,n),n));t[i]=jt(xt,r,Dt)}},Gt=function(t,e){var i=function(i){var s=e[i].chunkNames,n=t[i];if("string"==typeof n){var o=n.split(" "),r=o[o.length-1];s.forEach((function(e,i){return t[e]=o[i]||r}))}else s.forEach((function(e){return t[e]=n}));delete t[i]};for(var s in e)i(s)},Ut=function(t,e){for(var i in e){var s=e[i].chunkNames,n=t[s[0]];t[i]="string"==typeof n?s.map((function(e){var i=t[e];return delete t[e],i})).join(" "):n}},Yt=function(t){for(var e in t._currentState)if("string"==typeof t._currentState[e])return!0;return!1};function Xt(t){var e=t._currentState;[e,t._originalState,t._targetState].forEach(Nt),t._tokenData=Bt(e)}function Kt(t){var e=t._currentState,i=t._originalState,s=t._targetState,n=t._easing,o=t._tokenData;Gt(n,o),[e,i,s].forEach((function(t){return Vt(t,o)}))}function Qt(t){var e=t._currentState,i=t._originalState,s=t._targetState,n=t._easing,o=t._tokenData;[e,i,s].forEach((function(t){return Ht(t,o)})),Ut(n,o)}function Zt(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,s)}return i}function Jt(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var te=new Et,ee=Et.filters,ie=function(t,e,i,s){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=function(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Zt(Object(i),!0).forEach((function(e){Jt(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Zt(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}({},t),r=vt(t,s);for(var a in te._filters.length=0,te.set({}),te._currentState=o,te._originalState=t,te._targetState=e,te._easing=r,ee)ee[a].doesApply(te)&&te._filters.push(ee[a]);te._applyFilter("tweenCreated"),te._applyFilter("beforeTween");var l=dt(i,o,t,e,1,n,r);return te._applyFilter("afterTween"),l};function se(t){return function(t){if(Array.isArray(t))return ne(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return ne(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?ne(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ne(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,s=new Array(e);i<e;i++)s[i]=t[i];return s}function oe(t,e,i){return e&&function(t,e){for(var i=0;i<e.length;i++){var s=e[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,s.key,s)}}(t.prototype,e),t}function re(t,e){var i=e.get(t);if(!i)throw new TypeError("attempted to get private field on non-instance");return i.get?i.get.call(t):i.value}var ae=new WeakMap,le=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),ae.set(this,{writable:!0,value:[]});for(var e=arguments.length,i=new Array(e),s=0;s<e;s++)i[s]=arguments[s];i.forEach(this.add.bind(this))}return oe(t,[{key:"add",value:function(t){return re(this,ae).push(t),t}},{key:"remove",value:function(t){var e=re(this,ae).indexOf(t);return~e&&re(this,ae).splice(e,1),t}},{key:"empty",value:function(){return this.tweenables.map(this.remove.bind(this))}},{key:"isPlaying",value:function(){return re(this,ae).some((function(t){return t.isPlaying()}))}},{key:"play",value:function(){return re(this,ae).forEach((function(t){return t.tween()})),this}},{key:"pause",value:function(){return re(this,ae).forEach((function(t){return t.pause()})),this}},{key:"resume",value:function(){return this.playingTweenables.forEach((function(t){return t.resume()})),this}},{key:"stop",value:function(t){return re(this,ae).forEach((function(e){return e.stop(t)})),this}},{key:"tweenables",get:function(){return se(re(this,ae))}},{key:"playingTweenables",get:function(){return re(this,ae).filter((function(t){return!t.hasEnded()}))}},{key:"promises",get:function(){return re(this,ae).map((function(t){return t.then()}))}}]),t}();Et.filters.token=n}},e={};function i(s){if(e[s])return e[s].exports;var n=e[s]={exports:{}};return t[s](n,n.exports,i),n.exports}return i.d=(t,e)=>{for(var s in e)i.o(e,s)&&!i.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:e[s]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i(720)})()},t.exports=i()}));(ji=Ni)&&ji.__esModule&&Object.prototype.hasOwnProperty.call(ji,"default")&&ji.default;var Di=Fi((function(t,e){var i="__lodash_hash_undefined__",s=9007199254740991,n="[object Arguments]",o="[object Function]",r="[object Object]",a=/^\[object .+?Constructor\]$/,l=/^(?:0|[1-9]\d*)$/,c={};c["[object Float32Array]"]=c["[object Float64Array]"]=c["[object Int8Array]"]=c["[object Int16Array]"]=c["[object Int32Array]"]=c["[object Uint8Array]"]=c["[object Uint8ClampedArray]"]=c["[object Uint16Array]"]=c["[object Uint32Array]"]=!0,c[n]=c["[object Array]"]=c["[object ArrayBuffer]"]=c["[object Boolean]"]=c["[object DataView]"]=c["[object Date]"]=c["[object Error]"]=c[o]=c["[object Map]"]=c["[object Number]"]=c[r]=c["[object RegExp]"]=c["[object Set]"]=c["[object String]"]=c["[object WeakMap]"]=!1;var h="object"==typeof $i&&$i&&$i.Object===Object&&$i,u="object"==typeof self&&self&&self.Object===Object&&self,d=h||u||Function("return this")(),f=e&&!e.nodeType&&e,p=f&&t&&!t.nodeType&&t,m=p&&p.exports===f,g=m&&h.process,_=function(){try{var t=p&&p.require&&p.require("util").types;return t||g&&g.binding&&g.binding("util")}catch(t){}}(),b=_&&_.isTypedArray;var v,y=Array.prototype,w=Function.prototype,E=Object.prototype,C=d["__core-js_shared__"],S=w.toString,k=E.hasOwnProperty,T=(v=/[^.]+$/.exec(C&&C.keys&&C.keys.IE_PROTO||""))?"Symbol(src)_1."+v:"",A=E.toString,L=S.call(Object),x=RegExp("^"+S.call(k).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),O=m?d.Buffer:void 0,I=d.Symbol,P=d.Uint8Array;O&&O.allocUnsafe;var M,$,F=(M=Object.getPrototypeOf,$=Object,function(t){return M($(t))}),j=Object.create,N=E.propertyIsEnumerable,D=y.splice,R=I?I.toStringTag:void 0,B=function(){try{var t=ut(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),V=O?O.isBuffer:void 0,z=Math.max,W=Date.now,q=ut(d,"Map"),H=ut(Object,"create"),G=function(){function t(){}return function(e){if(!Ct(e))return{};if(j)return j(e);t.prototype=e;var i=new t;return t.prototype=void 0,i}}();function U(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var s=t[e];this.set(s[0],s[1])}}function Y(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var s=t[e];this.set(s[0],s[1])}}function X(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var s=t[e];this.set(s[0],s[1])}}function K(t){var e=this.__data__=new Y(t);this.size=e.size}function Q(t,e){var i=bt(t),s=!i&&_t(t),n=!i&&!s&&yt(t),o=!i&&!s&&!n&&kt(t),r=i||s||n||o,a=r?function(t,e){for(var i=-1,s=Array(t);++i<t;)s[i]=e(i);return s}(t.length,String):[],l=a.length;for(var c in t)r&&("length"==c||n&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||dt(c,l))||a.push(c);return a}function Z(t,e,i){(void 0!==i&&!gt(t[e],i)||void 0===i&&!(e in t))&&et(t,e,i)}function J(t,e,i){var s=t[e];k.call(t,e)&>(s,i)&&(void 0!==i||e in t)||et(t,e,i)}function tt(t,e){for(var i=t.length;i--;)if(gt(t[i][0],e))return i;return-1}function et(t,e,i){"__proto__"==e&&B?B(t,e,{configurable:!0,enumerable:!0,value:i,writable:!0}):t[e]=i}U.prototype.clear=function(){this.__data__=H?H(null):{},this.size=0},U.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},U.prototype.get=function(t){var e=this.__data__;if(H){var s=e[t];return s===i?void 0:s}return k.call(e,t)?e[t]:void 0},U.prototype.has=function(t){var e=this.__data__;return H?void 0!==e[t]:k.call(e,t)},U.prototype.set=function(t,e){var s=this.__data__;return this.size+=this.has(t)?0:1,s[t]=H&&void 0===e?i:e,this},Y.prototype.clear=function(){this.__data__=[],this.size=0},Y.prototype.delete=function(t){var e=this.__data__,i=tt(e,t);return!(i<0)&&(i==e.length-1?e.pop():D.call(e,i,1),--this.size,!0)},Y.prototype.get=function(t){var e=this.__data__,i=tt(e,t);return i<0?void 0:e[i][1]},Y.prototype.has=function(t){return tt(this.__data__,t)>-1},Y.prototype.set=function(t,e){var i=this.__data__,s=tt(i,t);return s<0?(++this.size,i.push([t,e])):i[s][1]=e,this},X.prototype.clear=function(){this.size=0,this.__data__={hash:new U,map:new(q||Y),string:new U}},X.prototype.delete=function(t){var e=ht(this,t).delete(t);return this.size-=e?1:0,e},X.prototype.get=function(t){return ht(this,t).get(t)},X.prototype.has=function(t){return ht(this,t).has(t)},X.prototype.set=function(t,e){var i=ht(this,t),s=i.size;return i.set(t,e),this.size+=i.size==s?0:1,this},K.prototype.clear=function(){this.__data__=new Y,this.size=0},K.prototype.delete=function(t){var e=this.__data__,i=e.delete(t);return this.size=e.size,i},K.prototype.get=function(t){return this.__data__.get(t)},K.prototype.has=function(t){return this.__data__.has(t)},K.prototype.set=function(t,e){var i=this.__data__;if(i instanceof Y){var s=i.__data__;if(!q||s.length<199)return s.push([t,e]),this.size=++i.size,this;i=this.__data__=new X(s)}return i.set(t,e),this.size=i.size,this};var it=function(t,e,i){for(var s=-1,n=Object(t),o=i(t),r=o.length;r--;){var a=o[++s];if(!1===e(n[a],a,n))break}return t};function st(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":R&&R in Object(t)?function(t){var e=k.call(t,R),i=t[R];try{t[R]=void 0;var s=!0}catch(t){}var n=A.call(t);s&&(e?t[R]=i:delete t[R]);return n}(t):function(t){return A.call(t)}(t)}function nt(t){return St(t)&&st(t)==n}function ot(t){return!(!Ct(t)||function(t){return!!T&&T in t}(t))&&(wt(t)?x:a).test(function(t){if(null!=t){try{return S.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t))}function rt(t){if(!Ct(t))return function(t){var e=[];if(null!=t)for(var i in Object(t))e.push(i);return e}(t);var e=ft(t),i=[];for(var s in t)("constructor"!=s||!e&&k.call(t,s))&&i.push(s);return i}function at(t,e,i,s,n){t!==e&&it(e,(function(o,a){if(n||(n=new K),Ct(o))!function(t,e,i,s,n,o,a){var l=pt(t,i),c=pt(e,i),h=a.get(c);if(h)return void Z(t,i,h);var u=o?o(l,c,i+"",t,e,a):void 0,d=void 0===u;if(d){var f=bt(c),p=!f&&yt(c),m=!f&&!p&&kt(c);u=c,f||p||m?bt(l)?u=l:St(g=l)&&vt(g)?u=function(t,e){var i=-1,s=t.length;e||(e=Array(s));for(;++i<s;)e[i]=t[i];return e}(l):p?(d=!1,u=c.slice()):m?(d=!1,u=function(t){var e=(i=t.buffer,s=new i.constructor(i.byteLength),new P(s).set(new P(i)),s);var i,s;return new t.constructor(e,t.byteOffset,t.length)}(c)):u=[]:function(t){if(!St(t)||st(t)!=r)return!1;var e=F(t);if(null===e)return!0;var i=k.call(e,"constructor")&&e.constructor;return"function"==typeof i&&i instanceof i&&S.call(i)==L}(c)||_t(c)?(u=l,_t(l)?u=function(t){return function(t,e,i){var s=!i;i||(i={});var n=-1,o=e.length;for(;++n<o;){var r=e[n],a=void 0;void 0===a&&(a=t[r]),s?et(i,r,a):J(i,r,a)}return i}(t,Tt(t))}(l):Ct(l)&&!wt(l)||(u=function(t){return"function"!=typeof t.constructor||ft(t)?{}:G(F(t))}(c))):d=!1}var g;d&&(a.set(c,u),n(u,c,s,o,a),a.delete(c));Z(t,i,u)}(t,e,a,i,at,s,n);else{var l=s?s(pt(t,a),o,a+"",t,e,n):void 0;void 0===l&&(l=o),Z(t,a,l)}}),Tt)}function lt(t,e){return mt(function(t,e,i){return e=z(void 0===e?t.length-1:e,0),function(){for(var s=arguments,n=-1,o=z(s.length-e,0),r=Array(o);++n<o;)r[n]=s[e+n];n=-1;for(var a=Array(e+1);++n<e;)a[n]=s[n];return a[e]=i(r),function(t,e,i){switch(i.length){case 0:return t.call(e);case 1:return t.call(e,i[0]);case 2:return t.call(e,i[0],i[1]);case 3:return t.call(e,i[0],i[1],i[2])}return t.apply(e,i)}(t,this,a)}}(t,e,xt),t+"")}var ct=B?function(t,e){return B(t,"toString",{configurable:!0,enumerable:!1,value:(i=e,function(){return i}),writable:!0});var i}:xt;function ht(t,e){var i,s,n=t.__data__;return("string"==(s=typeof(i=e))||"number"==s||"symbol"==s||"boolean"==s?"__proto__"!==i:null===i)?n["string"==typeof e?"string":"hash"]:n.map}function ut(t,e){var i=function(t,e){return null==t?void 0:t[e]}(t,e);return ot(i)?i:void 0}function dt(t,e){var i=typeof t;return!!(e=null==e?s:e)&&("number"==i||"symbol"!=i&&l.test(t))&&t>-1&&t%1==0&&t<e}function ft(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||E)}function pt(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}var mt=function(t){var e=0,i=0;return function(){var s=W(),n=16-(s-i);if(i=s,n>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(ct);function gt(t,e){return t===e||t!=t&&e!=e}var _t=nt(function(){return arguments}())?nt:function(t){return St(t)&&k.call(t,"callee")&&!N.call(t,"callee")},bt=Array.isArray;function vt(t){return null!=t&&Et(t.length)&&!wt(t)}var yt=V||function(){return!1};function wt(t){if(!Ct(t))return!1;var e=st(t);return e==o||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Et(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=s}function Ct(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function St(t){return null!=t&&"object"==typeof t}var kt=b?function(t){return function(e){return t(e)}}(b):function(t){return St(t)&&Et(t.length)&&!!c[st(t)]};function Tt(t){return vt(t)?Q(t):rt(t)}var At,Lt=(At=function(t,e,i){at(t,e,i)},lt((function(t,e){var i=-1,s=e.length,n=s>1?e[s-1]:void 0,o=s>2?e[2]:void 0;for(n=At.length>3&&"function"==typeof n?(s--,n):void 0,o&&function(t,e,i){if(!Ct(i))return!1;var s=typeof e;return!!("number"==s?vt(i)&&dt(e,i.length):"string"==s&&e in i)&>(i[e],t)}(e[0],e[1],o)&&(n=s<3?void 0:n,s=1),t=Object(t);++i<s;){var r=e[i];r&&At(t,r,i,n)}return t})));function xt(t){return t}t.exports=Lt})),Ri="Webkit Moz O ms".split(" ");function Bi(t,e,i){for(var s=t.style,n=0;n<Ri.length;++n){s[Ri[n]+Vi(e)]=i}s[e]=i}function Vi(t){return t.charAt(0).toUpperCase()+t.slice(1)}function zi(t){return!function(t){return"[object Array]"===Object.prototype.toString.call(t)}(t)&&("object"===typeof t&&!!t)}function Wi(t,e){for(var i in t){if(t.hasOwnProperty(i))e(t[i],i)}}var qi={extend:Di,render:function(t,e){var i=t;for(var s in e)if(e.hasOwnProperty(s)){var n=e[s],o=new RegExp("\\{"+s+"\\}","g");i=i.replace(o,n)}return i},setStyle:Bi,setStyles:function(t,e){Wi(e,(function(e,i){null!=e&&(zi(e)&&!0===e.prefix?Bi(t,i,e.value):t.style[i]=e)}))},capitalize:Vi,isString:function(t){return"string"==typeof t||t instanceof String},isFunction:function(t){return"function"==typeof t},isObject:zi,forEachObject:Wi,floatEquals:function(t,e){return Math.abs(t-e)<.001},removeChildren:function(t){for(;t.firstChild;)t.removeChild(t.firstChild)}};qi.extend,qi.render,qi.setStyle,qi.setStyles,qi.capitalize,qi.isString,qi.isFunction,qi.isObject,qi.forEachObject,qi.floatEquals,qi.removeChildren;var Hi=Ni.Tweenable,Gi={easeIn:"easeInCubic",easeOut:"easeOutCubic",easeInOut:"easeInOutCubic"},Ui=function t(e,i){if(!(this instanceof t))throw new Error("Constructor was called without new keyword");var s;i=qi.extend({delay:0,duration:800,easing:"linear",from:{},to:{},step:function(){}},i),s=qi.isString(e)?document.querySelector(e):e,this.path=s,this._opts=i,this._tweenable=null;var n=this.path.getTotalLength();this.path.style.strokeDasharray=n+" "+n,this.set(0)};Ui.prototype.value=function(){var t=this._getComputedDashOffset(),e=this.path.getTotalLength();return parseFloat((1-t/e).toFixed(6),10)},Ui.prototype.set=function(t){this.stop(),this.path.style.strokeDashoffset=this._progressToOffset(t);var e=this._opts.step;if(qi.isFunction(e)){var i=this._easing(this._opts.easing);e(this._calculateTo(t,i),this._opts.shape||this,this._opts.attachment)}},Ui.prototype.stop=function(){this._stopTween(),this.path.style.strokeDashoffset=this._getComputedDashOffset()},Ui.prototype.animate=function(t,e,i){e=e||{},qi.isFunction(e)&&(i=e,e={});var s=qi.extend({},e),n=qi.extend({},this._opts);e=qi.extend(n,e);var o=this._easing(e.easing),r=this._resolveFromAndTo(t,o,s);this.stop(),this.path.getBoundingClientRect();var a=this._getComputedDashOffset(),l=this._progressToOffset(t),c=this;this._tweenable=new Hi,this._tweenable.tween({from:qi.extend({offset:a},r.from),to:qi.extend({offset:l},r.to),duration:e.duration,delay:e.delay,easing:o,step:function(t){c.path.style.strokeDashoffset=t.offset;var i=e.shape||c;e.step(t,i,e.attachment)}}).then((function(t){qi.isFunction(i)&&i()})).catch((function(t){throw console.error("Error in tweening:",t),t}))},Ui.prototype._getComputedDashOffset=function(){var t=window.getComputedStyle(this.path,null);return parseFloat(t.getPropertyValue("stroke-dashoffset"),10)},Ui.prototype._progressToOffset=function(t){var e=this.path.getTotalLength();return e-t*e},Ui.prototype._resolveFromAndTo=function(t,e,i){return i.from&&i.to?{from:i.from,to:i.to}:{from:this._calculateFrom(e),to:this._calculateTo(t,e)}},Ui.prototype._calculateFrom=function(t){return Ni.interpolate(this._opts.from,this._opts.to,this.value(),t)},Ui.prototype._calculateTo=function(t,e){return Ni.interpolate(this._opts.from,this._opts.to,t,e)},Ui.prototype._stopTween=function(){null!==this._tweenable&&(this._tweenable.stop(!0),this._tweenable=null)},Ui.prototype._easing=function(t){return Gi.hasOwnProperty(t)?Gi[t]:t};var Yi=Ui,Xi="Object is destroyed",Ki=function t(e,i){if(!(this instanceof t))throw new Error("Constructor was called without new keyword");if(0!==arguments.length){this._opts=qi.extend({color:"#555",strokeWidth:1,trailColor:null,trailWidth:null,fill:null,text:{style:{color:null,position:"absolute",left:"50%",top:"50%",padding:0,margin:0,transform:{prefix:!0,value:"translate(-50%, -50%)"}},autoStyleContainer:!0,alignToBottom:!0,value:null,className:"progressbar-text"},svgStyle:{display:"block",width:"100%"},warnings:!1},i,!0),qi.isObject(i)&&void 0!==i.svgStyle&&(this._opts.svgStyle=i.svgStyle),qi.isObject(i)&&qi.isObject(i.text)&&void 0!==i.text.style&&(this._opts.text.style=i.text.style);var s,n=this._createSvgView(this._opts);if(!(s=qi.isString(e)?document.querySelector(e):e))throw new Error("Container does not exist: "+e);this._container=s,this._container.appendChild(n.svg),this._opts.warnings&&this._warnContainerAspectRatio(this._container),this._opts.svgStyle&&qi.setStyles(n.svg,this._opts.svgStyle),this.svg=n.svg,this.path=n.path,this.trail=n.trail,this.text=null;var o=qi.extend({attachment:void 0,shape:this},this._opts);this._progressPath=new Yi(n.path,o),qi.isObject(this._opts.text)&&null!==this._opts.text.value&&this.setText(this._opts.text.value)}};Ki.prototype.animate=function(t,e,i){if(null===this._progressPath)throw new Error(Xi);this._progressPath.animate(t,e,i)},Ki.prototype.stop=function(){if(null===this._progressPath)throw new Error(Xi);void 0!==this._progressPath&&this._progressPath.stop()},Ki.prototype.pause=function(){if(null===this._progressPath)throw new Error(Xi);void 0!==this._progressPath&&this._progressPath._tweenable&&this._progressPath._tweenable.pause()},Ki.prototype.resume=function(){if(null===this._progressPath)throw new Error(Xi);void 0!==this._progressPath&&this._progressPath._tweenable&&this._progressPath._tweenable.resume()},Ki.prototype.destroy=function(){if(null===this._progressPath)throw new Error(Xi);this.stop(),this.svg.parentNode.removeChild(this.svg),this.svg=null,this.path=null,this.trail=null,this._progressPath=null,null!==this.text&&(this.text.parentNode.removeChild(this.text),this.text=null)},Ki.prototype.set=function(t){if(null===this._progressPath)throw new Error(Xi);this._progressPath.set(t)},Ki.prototype.value=function(){if(null===this._progressPath)throw new Error(Xi);return void 0===this._progressPath?0:this._progressPath.value()},Ki.prototype.setText=function(t){if(null===this._progressPath)throw new Error(Xi);null===this.text&&(this.text=this._createTextContainer(this._opts,this._container),this._container.appendChild(this.text)),qi.isObject(t)?(qi.removeChildren(this.text),this.text.appendChild(t)):this.text.innerHTML=t},Ki.prototype._createSvgView=function(t){var e=document.createElementNS("http://www.w3.org/2000/svg","svg");this._initializeSvg(e,t);var i=null;(t.trailColor||t.trailWidth)&&(i=this._createTrail(t),e.appendChild(i));var s=this._createPath(t);return e.appendChild(s),{svg:e,path:s,trail:i}},Ki.prototype._initializeSvg=function(t,e){t.setAttribute("viewBox","0 0 100 100")},Ki.prototype._createPath=function(t){var e=this._pathString(t);return this._createPathElement(e,t)},Ki.prototype._createTrail=function(t){var e=this._trailString(t),i=qi.extend({},t);return i.trailColor||(i.trailColor="#eee"),i.trailWidth||(i.trailWidth=i.strokeWidth),i.color=i.trailColor,i.strokeWidth=i.trailWidth,i.fill=null,this._createPathElement(e,i)},Ki.prototype._createPathElement=function(t,e){var i=document.createElementNS("http://www.w3.org/2000/svg","path");return i.setAttribute("d",t),i.setAttribute("stroke",e.color),i.setAttribute("stroke-width",e.strokeWidth),e.fill?i.setAttribute("fill",e.fill):i.setAttribute("fill-opacity","0"),i},Ki.prototype._createTextContainer=function(t,e){var i=document.createElement("div");i.className=t.text.className;var s=t.text.style;return s&&(t.text.autoStyleContainer&&(e.style.position="relative"),qi.setStyles(i,s),s.color||(i.style.color=t.color)),this._initializeTextContainer(t,e,i),i},Ki.prototype._initializeTextContainer=function(t,e,i){},Ki.prototype._pathString=function(t){throw new Error("Override this function for each progress bar")},Ki.prototype._trailString=function(t){throw new Error("Override this function for each progress bar")},Ki.prototype._warnContainerAspectRatio=function(t){if(this.containerAspectRatio){var e=window.getComputedStyle(t,null),i=parseFloat(e.getPropertyValue("width"),10),s=parseFloat(e.getPropertyValue("height"),10);qi.floatEquals(this.containerAspectRatio,i/s)||(console.warn("Incorrect aspect ratio of container","#"+t.id,"detected:",e.getPropertyValue("width")+"(width)","/",e.getPropertyValue("height")+"(height)","=",i/s),console.warn("Aspect ratio of should be",this.containerAspectRatio))}};var Qi=Ki,Zi=function(t,e){this._pathTemplate="M 50,50 m 0,-{radius} a {radius},{radius} 0 1 1 0,{2radius} a {radius},{radius} 0 1 1 0,-{2radius}",this.containerAspectRatio=1,Qi.apply(this,arguments)};(Zi.prototype=new Qi).constructor=Zi,Zi.prototype._pathString=function(t){var e=t.strokeWidth;t.trailWidth&&t.trailWidth>t.strokeWidth&&(e=t.trailWidth);var i=50-e/2;return qi.render(this._pathTemplate,{radius:i,"2radius":2*i})},Zi.prototype._trailString=function(t){return this._pathString(t)};var Ji=Zi;const ts={color:"#5C6F82",trailColor:"#D9DADB",strokeWidth:24,trailWidth:12,easing:"easeInOut",duration:1400,text:{autoStyleContainer:!1},animate:!0,value:0};class es extends Q{constructor(t,e){super(t),this._config=this._getConfig(e),this._bar=null,this._init()}static get NAME(){return"progressdonut"}set(t){this._config.animate?this._bar.animate(t):this._bar.set(t)}dispose(){this._bar.destroy(),super.dispose()}_getConfig(t){return t={...ts,step:this._getStepCallback(),...X.getDataAttributes(this._element),..."object"==typeof t?t:{}}}_getStepCallback(){return(t,e)=>{const i=Math.round(100*e.value());e.setText(i+"%")}}_init(){this._bar=new Ji(this._element,this._config),this._config.value>0&&this.set(this._config.value)}}"undefined"!=typeof window&&"undefined"!=typeof document&&Z.find("[data-bs-progress-donut]").forEach((t=>{es.getOrCreateInstance(t)}));const is="dragend",ss="dragover",ns="dragenter",os="dragleave",rs="drop",as="success",ls="dragover",cs="loading",hs="[data-bs-upload-dragdrop]";class us extends Q{constructor(t){super(t);const e=Z.findOne("[data-bs-progress-donut]",this._element);e&&(this._donut=es.getOrCreateInstance(e)),this._bindEvents()}static get NAME(){return"upload"}progress(t){this._donut.set(t)}start(){this.reset(),this._element.classList.add(cs)}success(){this._element.classList.remove(cs),this._element.classList.add(as)}reset(){this._element.classList.remove(cs),this._element.classList.remove(as),this._donut.set(0)}dispose(){this._donut.dispose(),super.dispose()}_bindEvents(){H.on(this._element,"drag",(t=>this._preventEvent(t))),H.on(this._element,"dragstart",(t=>this._preventEvent(t))),H.on(this._element,is,(t=>this._preventEvent(t))),H.on(this._element,ss,(t=>this._preventEvent(t))),H.on(this._element,ns,(t=>this._preventEvent(t))),H.on(this._element,os,(t=>this._preventEvent(t))),H.on(this._element,rs,(t=>this._preventEvent(t))),H.on(this._element,ss,(()=>this._dropIn())),H.on(this._element,ns,(()=>this._dropIn())),H.on(this._element,os,(()=>this._dropOut())),H.on(this._element,is,(()=>this._dropOut())),H.on(this._element,rs,(()=>this._dropOut())),H.on(this._element,rs,(()=>this._drop()))}_preventEvent(t){t.preventDefault(),t.stopPropagation()}_dropIn(){this._isSuccess()||this._element.classList.add(ls)}_dropOut(){this._isSuccess()||this._element.classList.remove(ls)}_drop(){this._isSuccess()||this.start()}_isSuccess(){return this._element.classList.contains(as)}}const ds=t=>{let e=t.matches&&t.matches(hs)?t:t.closest?t.closest(hs):null;return e&&us.getOrCreateInstance(e),null};"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("dragenter",(function(t){ds(t.target)})),H.on(document,"click.bs.upload.data-api",hs+" label",(function(){ds(this)})));const fs="back-to-top-show",ps={positionTop:0,scrollLimit:100,duration:800,easing:"easeInOutSine"};class ms extends Q{constructor(t,e){super(t),this._config=this._getConfig(e),this._scrollCb=null,this._isAnim=!1,this._prevScrollBehavior="",this._bindEvents()}static get NAME(){return"backtotop"}show(){this._element.classList.contains(fs)||this._element.classList.add(fs)}hide(){this._element.classList.contains(fs)&&this._element.classList.remove(fs)}toggleShow(){"undefined"!=typeof document&&document.scrollingElement.scrollTop>this._config.scrollLimit?this.show():this.hide()}scrollToTop(){this._isAnim||(this._isAnim=!0,Te(this._config.positionTop,{duration:this._config.duration,easing:this._config.easing,complete:()=>{this._isAnim=!1}}))}dispose(){this._scrollCb&&this._scrollCb.dispose(),super.dispose()}_getConfig(t){return t={...ps,...X.getDataAttributes(this._element),..."object"==typeof t?t:{}}}_bindEvents(){this._scrollCb=Se((()=>this.toggleShow())),H.on(this._element,"click.bs.backtotop",(t=>{t.preventDefault(),this.scrollToTop()}))}}Se((()=>{Z.find('[data-bs-toggle="backtotop"]').map((t=>{ms.getOrCreateInstance(t)}))}));const gs=".bs.historyback",_s=`click${gs}`,bs=`click${gs}.data-api`;class vs extends Q{constructor(t){super(t),this._bindEvents()}static get NAME(){return"historyback"}back(){"undefined"!=typeof window&&window.history.back()}_bindEvents(){H.on(this._element,_s,(t=>{t.preventDefault(),this.back()}))}}"undefined"!=typeof window&&"undefined"!=typeof document&&H.on(document,bs,'[data-bs-toggle="historyback"]',(function(t){t.preventDefault();vs.getOrCreateInstance(this).back()}));const ys=".bs.historyback",ws=`click${ys}`,Es=`click${ys}.data-api`,Cs={duration:800,easing:"easeInOutSine"};class Ss extends Q{constructor(t,e){super(t),this._config=this._getConfig(e),this._bindEvents()}static get NAME(){return"historyback"}goToTarget(){const t=b(this._element);t&&Te(t.offsetTop,{duration:this._config.duration,easing:this._config.easing})}_getConfig(t){return t={...Cs,...X.getDataAttributes(this._element),..."object"==typeof t?t:{}}}_bindEvents(){H.on(this._element,ws,(t=>{t.preventDefault(),this.goToTarget()}))}}"undefined"!=typeof window&&"undefined"!=typeof document&&H.on(document,Es,'[data-bs-toggle="forward"]',(function(t){t.preventDefault();Ss.getOrCreateInstance(this).goToTarget()}));var ks=function(t){return this._sizes=[],this._columns=[],this._container=null,this._count=null,this._width=0,this._removeListener=null,this._currentGutterX=null,this._currentGutterY=null,this._resizeTimeout=null,this.conf={baseWidth:255,gutterX:null,gutterY:null,gutter:10,container:null,minify:!0,ultimateGutter:5,surroundingGutter:!0,direction:"ltr",wedge:!1},this.init(t),this};ks.prototype.init=function(t){for(var e in this.conf)null!=t[e]&&(this.conf[e]=t[e]);if(null!=this.conf.gutterX&&null!=this.conf.gutterY||(this.conf.gutterX=this.conf.gutterY=this.conf.gutter),this._currentGutterX=this.conf.gutterX,this._currentGutterY=this.conf.gutterY,this._container="object"==typeof this.conf.container&&this.conf.container.nodeName?this.conf.container:document.querySelector(this.conf.container),!this._container)throw new Error("Container not found or missing");var i=this.resizeThrottler.bind(this);window.addEventListener("resize",i),this._removeListener=function(){window.removeEventListener("resize",i),null!=this._resizeTimeout&&(window.clearTimeout(this._resizeTimeout),this._resizeTimeout=null)},this.layout()},ks.prototype.reset=function(){this._sizes=[],this._columns=[],this._count=null,this._width=this._container.clientWidth;var t=this.conf.baseWidth;this._width<t&&(this._width=t,this._container.style.minWidth=t+"px"),1==this.getCount()?(this._currentGutterX=this.conf.ultimateGutter,this._count=1):this._width<this.conf.baseWidth+2*this._currentGutterX?this._currentGutterX=0:this._currentGutterX=this.conf.gutterX},ks.prototype.getCount=function(){return this.conf.surroundingGutter?Math.floor((this._width-this._currentGutterX)/(this.conf.baseWidth+this._currentGutterX)):Math.floor((this._width+this._currentGutterX)/(this.conf.baseWidth+this._currentGutterX))},ks.prototype.computeWidth=function(){var t;return t=this.conf.surroundingGutter?(this._width-this._currentGutterX)/this._count-this._currentGutterX:(this._width+this._currentGutterX)/this._count-this._currentGutterX,t=Number.parseFloat(t.toFixed(2))},ks.prototype.layout=function(){if(this._container){this.reset(),null==this._count&&(this._count=this.getCount());for(var t=this.computeWidth(),e=0;e<this._count;e++)this._columns[e]=0;for(var i,s=this._container.children,n=0;n<s.length;n++)s[n].style.width=t+"px",this._sizes[n]=s[n].clientHeight;if(i="ltr"==this.conf.direction?this.conf.surroundingGutter?this._currentGutterX:0:this._width-(this.conf.surroundingGutter?this._currentGutterX:0),this._count>this._sizes.length){var o=this._sizes.length*(t+this._currentGutterX)-this._currentGutterX;!1===this.conf.wedge?i="ltr"==this.conf.direction?(this._width-o)/2:this._width-(this._width-o)/2:"ltr"==this.conf.direction||(i=this._width-this._currentGutterX)}for(var r=0;r<s.length;r++){var a,l=this.conf.minify?this.getShortest():this.getNextColumn(r),c=0;(this.conf.surroundingGutter||l!=this._columns.length)&&(c=this._currentGutterX),a="ltr"==this.conf.direction?i+(t+c)*l:i-(t+c)*l-t;var h=this._columns[l];s[r].style.transform="translate3d("+Math.round(a)+"px,"+Math.round(h)+"px,0)",this._columns[l]+=this._sizes[r]+(this._count>1?this.conf.gutterY:this.conf.ultimateGutter)}this._container.style.height=this._columns[this.getLongest()]-this._currentGutterY+"px"}else console.error("Container not found")},ks.prototype.getNextColumn=function(t){return t%this._columns.length},ks.prototype.getShortest=function(){for(var t=0,e=0;e<this._count;e++)this._columns[e]<this._columns[t]&&(t=e);return t},ks.prototype.getLongest=function(){for(var t=0,e=0;e<this._count;e++)this._columns[e]>this._columns[t]&&(t=e);return t},ks.prototype.resizeThrottler=function(){this._resizeTimeout||(this._resizeTimeout=setTimeout(function(){this._resizeTimeout=null,this._container.clientWidth!=this._width&&this.layout()}.bind(this),33))},ks.prototype.destroy=function(){"function"==typeof this._removeListener&&this._removeListener();for(var t=this._container.children,e=0;e<t.length;e++)t[e].style.removeProperty("width"),t[e].style.removeProperty("transform");this._container.style.removeProperty("height"),this._container.style.removeProperty("min-width")};const Ts="masonry-loader",As=`.${Ts}`,Ls={percentPosition:!0};class xs extends Q{constructor(t,e){super(t),"undefined"!=typeof window&&"undefined"!=typeof document&&(this._config=this._getConfig(e),this._masonry=null,this._images=Z.find("img",this._element),this._loadCounter=0,this._init())}static get NAME(){return"masonry"}dispose(){this._masonry&&(this._masonry.destroy(),this._masonry=null),super.dispose()}_getConfig(t){return t={...Ls,...X.getDataAttributes(this._element),..."object"==typeof t?t:{}}}_init(){this._images.length>0?this._images.forEach((t=>{const e=new Image;e.onload=()=>this._onLoadEnd(),e.src=t.src})):this._initMasonry()}_onLoadEnd(){this._loadCounter++,this._loadCounter>=this._images.length&&this._initMasonry()}_initMasonry(){const t=this._config;t.container=this._element,this._masonry=new ks(t)}_createLoader(){if("undefined"==typeof document)return;const t=document.createElement("div");return t.classList.add(Ts,"fade","d-flex","justify-content-center","align-items-center"),t.innerHTML='<div class="progress-spinner progress-spinner-active"><span class="visually-hidden">Caricamento...</span></div>',this._element.appendChild(t),t}_getOrCreateLoader(){const t=Z.findOne(As,this._element);return t||this._createLoader()}_destroyLoader(){const t=Z.findOne(As,this._element);t&&t.remove()}_showLoader(){this._getOrCreateLoader().classList.add("show")}_hideLoader(){this._destroyLoader()}}if("undefined"!=typeof window&&"undefined"!=typeof document){const t=Z.find('[data-bs-toggle="masonry"]');t.length>0&&t.forEach((t=>{xs.getOrCreateInstance(t)}))}const Os=".bs.list",Is=`click${Os}`,Ps=`click${Os}.data-api`,Ms="active",$s="input[type=checkbox]";class Fs extends Q{constructor(t){super(t),this._init()}static get NAME(){return"list"}toggleCheckbox(t){const e=Z.findOne("input",t);e&&(e.checked?(e.checked=!1,t.classList.remove(Ms)):(e.checked=!0,t.classList.add(Ms)))}_init(){this._initCheckbox()}_initCheckbox(){Z.find($s,this._element).forEach((t=>{H.on(t.closest("a"),Is,(e=>{e.preventDefault(),this.toggleCheckbox(t.closest("a"))}))}))}}"undefined"!=typeof window&&"undefined"!=typeof document&&Z.find("[data-bs-list-checkbox]").forEach((t=>{Z.find($s,t).forEach((e=>{H.one(e.closest("a"),Ps,(e=>{if(!Fs.getInstance(t)){e.preventDefault();Fs.getOrCreateInstance(t).toggleCheckbox(e.currentTarget)}}))}))}));const js=".bs.transfer",Ns=".data-api",Ds=`click${js}${Ns}`,Rs=`keyup${js}${Ns}`,Bs=`click${js}`,Vs="active",zs="source",Ws="semi-checked",qs="[data-bs-transfer]",Hs=".transfer-header input",Gs=".transfer-group input",Us=".it-transfer-wrapper",Ys=".transfer-group",Xs=`${Us}.source`,Ks=`${Us}.target`,Qs=".form-check";class Zs extends Q{constructor(t){super(t),this._addBtnElement=Z.findOne("a.transfer",this._element),this._invBtnElement=Z.findOne("a.backtransfer",this._element),this._resetBtnElement=Z.findOne("a.reset",this._element),this._listDefault={source:Z.find(Xs+" "+Ys+" "+Qs,this._element),target:Z.find(Ks+" "+Ys+" "+Qs,this._element)},this._bindEvents()}static get NAME(){return"transfer"}_bindEvents(){Z.find(Hs,this._element).forEach((t=>{H.on(t,Bs,(()=>{this._checkListHeader(t.closest(Us))}))})),Z.find(Gs,this._element).forEach((t=>{H.on(t,Bs,(()=>{this._checkList(t.closest(Us))}))})),H.on(this._addBtnElement,Bs,(t=>{t.preventDefault(),this._disableElement(this._addBtnElement),this._addItems()})),H.on(this._invBtnElement,Bs,(t=>{t.preventDefault(),this._disableElement(this._invBtnElement),this._addItems(!0)})),H.on(this._resetBtnElement,Bs,(t=>{t.preventDefault(),this._disableElement(this._addBtnElement),this._disableElement(this._invBtnElement),this._disableElement(this._resetBtnElement),this._resetAll()}))}_disableElement(t){t.classList.remove(Vs),t.setAttribute("disabled","disabled"),t.setAttribute("aria-disabled","true")}_enableElement(t){t.classList.add(Vs),t.removeAttribute("disabled"),t.removeAttribute("aria-disabled")}_getScopeData(t){return{scope:t,list:Z.find(Gs,t),listChecked:Z.find(Gs+":checked",t),head:Z.findOne(".transfer-header",t),inputHead:Z.findOne(Hs,t),labelNumHead:Z.findOne(".transfer-header span.num",t),group:Z.findOne(Ys,t)}}_checkList(t){const e=this._getScopeData(t);0==e.listChecked.length?(e.inputHead.classList.remove(Ws),e.inputHead.checked=!0,t.classList.contains(zs)?this._disableElement(this._addBtnElement):this._disableElement(this._invBtnElement)):(e.listChecked.length==e.list.length?(e.inputHead.classList.remove(Ws),e.inputHead.checked=!0):(e.inputHead.classList.add(Ws),e.inputHead.checked=!1),t.classList.contains(zs)?this._enableElement(this._addBtnElement):this._enableElement(this._invBtnElement))}_checkListHeader(t){const e=this._getScopeData(t);e.listChecked.length>0?(e.list.forEach((t=>{t.checked=!1})),e.inputHead.classList.remove(Ws),e.inputHead.checked=!1,t.classList.contains(zs)?this._disableElement(this._addBtnElement):this._disableElement(this._invBtnElement)):(e.list.forEach((t=>{t.checked=!0})),t.classList.contains(zs)?this._enableElement(this._addBtnElement):this._enableElement(this._invBtnElement))}_addItems(t){const e=this._getScopeData(Z.findOne(t?Ks:Xs,this._element)),i=this._getScopeData(Z.findOne(t?Xs:Ks,this._element)),s=e.listChecked,n=e.inputHead,o=e.labelNumHead,r=s.length,a=e.list.length,l=i.group,c=i.list.length+r,h=i.labelNumHead,u=i.inputHead;s.forEach((t=>{const e=t.closest(Qs);e.remove(),l.appendChild(e),t.checked=!1}));const d=a-r,f=c;o.innerText=d,h.innerText=f,0==d&&n.setAttribute("disabled",!0),f>0&&u.removeAttribute("disabled"),n.classList.remove(Ws),n.checked=!1,this._enableElement(this._resetBtnElement)}_resetAll(){const t={source:this._getScopeData(Z.findOne(Xs,this._element)),target:this._getScopeData(Z.findOne(Ks,this._element))};Object.keys(t).forEach((e=>{t[e].list.forEach((t=>t.closest(Qs).remove()))})),Object.keys(t).forEach((e=>{this._listDefault[e].forEach((i=>{i.checked=!1,t[e].group.appendChild(i)})),t[e].labelNumHead.innerText=this._listDefault[e].length,t[e].inputHead.removeAttribute("disabled"),t[e].inputHead.classList.remove(Ws),t[e].inputHead.checked=!1}))}}"undefined"!=typeof window&&"undefined"!=typeof document&&(H.on(document,Ds,qs+" .form-check label",(function(){Zs.getOrCreateInstance(this.closest(qs))})),H.on(document,Rs,qs+" .form-check label",(function(){Zs.getOrCreateInstance(this.closest(qs))})));const Js=".bs.alert",tn=`close${Js}`,en=`closed${Js}`;class sn extends Q{static get NAME(){return"alert"}close(){if(H.trigger(this._element,tn).defaultPrevented)return;this._element.classList.remove("show");const t=this._element.classList.contains("fade");this._queueCallback((()=>this._destroyElement()),this._element,t)}_destroyElement(){this._element.remove(),H.trigger(this._element,en),this.dispose()}}"undefined"!=typeof window&&"undefined"!=typeof document&&bt(sn,"close");const nn='[data-bs-toggle="button"]';class on extends Q{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}}"undefined"!=typeof window&&"undefined"!=typeof document&&H.on(document,"click.bs.button.data-api",nn,(t=>{t.preventDefault();const e=t.target.closest(nn);on.getOrCreateInstance(e).toggle()}));const rn=".bs.swipe",an=`touchstart${rn}`,ln=`touchmove${rn}`,cn=`touchend${rn}`,hn=`pointerdown${rn}`,un=`pointerup${rn}`,dn={endCallback:null,leftCallback:null,rightCallback:null},fn={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class pn extends K{constructor(t,e){super(),this._element=t,t&&pn.isSupported()&&(this._config=this._getConfig(e),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return dn}static get DefaultType(){return fn}static get NAME(){return"swipe"}dispose(){H.off(this._element,rn)}_start(t){this._supportPointerEvents?this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX):this._deltaX=t.touches[0].clientX}_end(t){this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX-this._deltaX),this._handleSwipe(),L(this._config.endCallback)}_move(t){this._deltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-this._deltaX}_handleSwipe(){const t=Math.abs(this._deltaX);if(t<=40)return;const e=t/this._deltaX;this._deltaX=0,e&&L(e>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(H.on(this._element,hn,(t=>this._start(t))),H.on(this._element,un,(t=>this._end(t))),this._element.classList.add("pointer-event")):(H.on(this._element,an,(t=>this._start(t))),H.on(this._element,ln,(t=>this._move(t))),H.on(this._element,cn,(t=>this._end(t))))}_eventIsPointerPenTouch(t){return this._supportPointerEvents&&("pen"===t.pointerType||"touch"===t.pointerType)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const mn=".bs.carousel",gn=".data-api",_n="ArrowLeft",bn="ArrowRight",vn="next",yn="prev",wn="left",En="right",Cn=`slide${mn}`,Sn=`slid${mn}`,kn=`keydown${mn}`,Tn=`mouseenter${mn}`,An=`mouseleave${mn}`,Ln=`dragstart${mn}`,xn=`load${mn}${gn}`,On=`click${mn}${gn}`,In="carousel",Pn="active",Mn=".active",$n=".carousel-item",Fn=Mn+$n,jn={[_n]:En,[bn]:wn},Nn={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},Dn={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class Rn extends Q{constructor(t,e){super(t,e),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=Z.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===In&&this.cycle()}static get Default(){return Nn}static get DefaultType(){return Dn}static get NAME(){return"carousel"}next(){this._slide(vn)}nextWhenVisible(){!document.hidden&&E(this._element)&&this.next()}prev(){this._slide(yn)}pause(){this._isSliding&&v(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval((()=>this.nextWhenVisible()),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?H.one(this._element,Sn,(()=>this.cycle())):this.cycle())}to(t){const e=this._getItems();if(t>e.length-1||t<0)return;if(this._isSliding)return void H.one(this._element,Sn,(()=>this.to(t)));const i=this._getItemIndex(this._getActive());if(i===t)return;const s=t>i?vn:yn;this._slide(s,e[t])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(t){return t.defaultInterval=t.interval,t}_addEventListeners(){this._config.keyboard&&H.on(this._element,kn,(t=>this._keydown(t))),"hover"===this._config.pause&&(H.on(this._element,Tn,(()=>this.pause())),H.on(this._element,An,(()=>this._maybeEnableCycle()))),this._config.touch&&pn.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const t of Z.find(".carousel-item img",this._element))H.on(t,Ln,(t=>t.preventDefault()));const t={leftCallback:()=>this._slide(this._directionToOrder(wn)),rightCallback:()=>this._slide(this._directionToOrder(En)),endCallback:()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout((()=>this._maybeEnableCycle()),500+this._config.interval))}};this._swipeHelper=new pn(this._element,t)}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const e=jn[t.key];e&&(t.preventDefault(),this._slide(this._directionToOrder(e)))}_getItemIndex(t){return this._getItems().indexOf(t)}_setActiveIndicatorElement(t){if(!this._indicatorsElement)return;const e=Z.findOne(Mn,this._indicatorsElement);e.classList.remove(Pn),e.removeAttribute("aria-current");const i=Z.findOne(`[data-bs-slide-to="${t}"]`,this._indicatorsElement);i&&(i.classList.add(Pn),i.setAttribute("aria-current","true"))}_updateInterval(){const t=this._activeElement||this._getActive();if(!t)return;const e=Number.parseInt(t.getAttribute("data-bs-interval"),10);this._config.interval=e||this._config.defaultInterval}_slide(t,e=null){if(this._isSliding)return;const i=this._getActive(),s=t===vn,n=e||O(this._getItems(),i,s,this._config.wrap);if(n===i)return;const o=this._getItemIndex(n),r=e=>H.trigger(this._element,e,{relatedTarget:n,direction:this._orderToDirection(t),from:this._getItemIndex(i),to:o});if(r(Cn).defaultPrevented)return;if(!i||!n)return;const a=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(o),this._activeElement=n;const l=s?"carousel-item-start":"carousel-item-end",c=s?"carousel-item-next":"carousel-item-prev";n.classList.add(c),T(n),i.classList.add(l),n.classList.add(l);this._queueCallback((()=>{n.classList.remove(l,c),n.classList.add(Pn),i.classList.remove(Pn,c,l),this._isSliding=!1,r(Sn)}),i,this._isAnimated()),a&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return Z.findOne(Fn,this._element)}_getItems(){return Z.find($n,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(t){return A()?t===wn?yn:vn:t===wn?vn:yn}_orderToDirection(t){return A()?t===yn?wn:En:t===yn?En:wn}}"undefined"!=typeof window&&"undefined"!=typeof document&&(H.on(document,On,"[data-bs-slide], [data-bs-slide-to]",(function(t){const e=b(this);if(!e||!e.classList.contains(In))return;t.preventDefault();const i=Rn.getOrCreateInstance(e),s=this.getAttribute("data-bs-slide-to");return s?(i.to(s),void i._maybeEnableCycle()):"next"===X.getDataAttribute(this,"slide")?(i.next(),void i._maybeEnableCycle()):(i.prev(),void i._maybeEnableCycle())})),H.on(window,xn,(()=>{const t=Z.find('[data-bs-ride="carousel"]');for(const e of t)Rn.getOrCreateInstance(e)})));const Bn=".bs.collapse",Vn=`show${Bn}`,zn=`shown${Bn}`,Wn=`hide${Bn}`,qn=`hidden${Bn}`,Hn=`click${Bn}.data-api`,Gn="show",Un="collapse",Yn="collapsing",Xn=`:scope .${Un} .${Un}`,Kn='[data-bs-toggle="collapse"]',Qn={parent:null,toggle:!0},Zn={parent:"(null|element)",toggle:"boolean"};class Jn extends Q{constructor(t,e){super(t,e),this._isTransitioning=!1,this._triggerArray=[];const i=Z.find(Kn);for(const t of i){const e=_(t),i=Z.find(e).filter((t=>t===this._element));null!==e&&i.length&&this._triggerArray.push(t)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return Qn}static get DefaultType(){return Zn}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter((t=>t!==this._element)).map((t=>Jn.getOrCreateInstance(t,{toggle:!1})))),t.length&&t[0]._isTransitioning)return;if(H.trigger(this._element,Vn).defaultPrevented)return;for(const e of t)e.hide();const e=this._getDimension();this._element.classList.remove(Un),this._element.classList.add(Yn),this._element.style[e]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const i=`scroll${e[0].toUpperCase()+e.slice(1)}`;this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(Yn),this._element.classList.add(Un,Gn),this._element.style[e]="",H.trigger(this._element,zn)}),this._element,!0),this._element.style[e]=`${this._element[i]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(H.trigger(this._element,Wn).defaultPrevented)return;const t=this._getDimension();this._element.style[t]=`${this._element.getBoundingClientRect()[t]}px`,T(this._element),this._element.classList.add(Yn),this._element.classList.remove(Un,Gn);for(const t of this._triggerArray){const e=b(t);e&&!this._isShown(e)&&this._addAriaAndCollapsedClass([t],!1)}this._isTransitioning=!0;this._element.style[t]="",this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(Yn),this._element.classList.add(Un),H.trigger(this._element,qn)}),this._element,!0)}_isShown(t=this._element){return t.classList.contains(Gn)}_configAfterMerge(t){return t.toggle=Boolean(t.toggle),t.parent=w(t.parent),t}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const t=this._getFirstLevelChildren(Kn);for(const e of t){const t=b(e);t&&this._addAriaAndCollapsedClass([e],this._isShown(t))}}_getFirstLevelChildren(t){const e=Z.find(Xn,this._config.parent);return Z.find(t,this._config.parent).filter((t=>!e.includes(t)))}_addAriaAndCollapsedClass(t,e){if(t.length)for(const i of t)i.classList.toggle("collapsed",!e),i.setAttribute("aria-expanded",e)}}"undefined"!=typeof window&&"undefined"!=typeof document&&H.on(document,Hn,Kn,(function(t){("A"===t.target.tagName||t.delegateTarget&&"A"===t.delegateTarget.tagName)&&t.preventDefault();const e=_(this),i=Z.find(e);for(const t of i)Jn.getOrCreateInstance(t,{toggle:!1}).toggle()}));const to="dropdown",eo=".bs.dropdown",io=".data-api",so="ArrowUp",no="ArrowDown",oo=`hide${eo}`,ro=`hidden${eo}`,ao=`show${eo}`,lo=`shown${eo}`,co=`click${eo}${io}`,ho=`keydown${eo}${io}`,uo=`keyup${eo}${io}`,fo="show",po='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',mo=`${po}.${fo}`,go=".dropdown-menu",_o=A()?"top-end":"top-start",bo=A()?"top-start":"top-end",vo=A()?"bottom-end":"bottom-start",yo=A()?"bottom-start":"bottom-end",wo=A()?"left-start":"right-start",Eo=A()?"right-start":"left-start",Co={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},So={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class ko extends Q{constructor(t,e){super(t,e),this._popper=null,this._parent=this._element.parentNode,this._menu=Z.next(this._element,go)[0]||Z.prev(this._element,go)[0]||Z.findOne(go,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return Co}static get DefaultType(){return So}static get NAME(){return to}toggle(){return this._isShown()?this.hide():this.show()}show(){if(C(this._element)||this._isShown())return;const t={relatedTarget:this._element};if(!H.trigger(this._element,ao,t).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".navbar-nav"))for(const t of[].concat(...document.body.children))H.on(t,"mouseover",k);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(fo),this._element.classList.add(fo),H.trigger(this._element,lo,t)}}hide(){if(C(this._element)||!this._isShown())return;const t={relatedTarget:this._element};this._completeHide(t)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(t){if(!H.trigger(this._element,oo,t).defaultPrevented){if("ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))H.off(t,"mouseover",k);this._popper&&this._popper.destroy(),this._menu.classList.remove(fo),this._element.classList.remove(fo),this._element.setAttribute("aria-expanded","false"),X.removeDataAttribute(this._menu,"popper"),H.trigger(this._element,ro,t)}}_getConfig(t){if("object"==typeof(t=super._getConfig(t)).reference&&!y(t.reference)&&"function"!=typeof t.reference.getBoundingClientRect)throw new TypeError(`${to.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(){if(void 0===r)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let t=this._element;"parent"===this._config.reference?t=this._parent:y(this._config.reference)?t=w(this._config.reference):"object"==typeof this._config.reference&&(t=this._config.reference);const e=this._getPopperConfig();this._popper=r.createPopper(t,this._menu,e)}_isShown(){return this._menu.classList.contains(fo)}_getPlacement(){const t=this._parent;if(t.classList.contains("dropend"))return wo;if(t.classList.contains("dropstart"))return Eo;if(t.classList.contains("dropup-center"))return"top";if(t.classList.contains("dropdown-center"))return"bottom";const e="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return t.classList.contains("dropup")?e?bo:_o:e?yo:vo}_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map((t=>Number.parseInt(t,10))):"function"==typeof t?e=>t(e,this._element):t}_getPopperConfig(){const t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||"static"===this._config.display)&&(X.setDataAttribute(this._menu,"popper","static"),t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,..."function"==typeof this._config.popperConfig?this._config.popperConfig(t):this._config.popperConfig}}_selectMenuItem({key:t,target:e}){const i=Z.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter((t=>E(t)));i.length&&O(i,e,t===no,!i.includes(e)).focus()}static clearMenus(t){if(2===t.button||"keyup"===t.type&&"Tab"!==t.key)return;const e=Z.find(mo);for(const i of e){const e=ko.getInstance(i);if(!e||!1===e._config.autoClose)continue;const s=t.composedPath(),n=s.includes(e._menu);if(s.includes(e._element)||"inside"===e._config.autoClose&&!n||"outside"===e._config.autoClose&&n)continue;if(e._menu.contains(t.target)&&("keyup"===t.type&&"Tab"===t.key||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;const o={relatedTarget:e._element};"click"===t.type&&(o.clickEvent=t),e._completeHide(o)}}static dataApiKeydownHandler(t){const e=/input|textarea/i.test(t.target.tagName),i="Escape"===t.key,s=[so,no].includes(t.key);if(!s&&!i)return;if(e&&!i)return;t.preventDefault();const n=this.matches(po)?this:Z.prev(this,po)[0]||Z.next(this,po)[0]||Z.findOne(po,t.delegateTarget.parentNode),o=ko.getOrCreateInstance(n);if(s)return t.stopPropagation(),o.show(),void o._selectMenuItem(t);o._isShown()&&(t.stopPropagation(),o.hide(),n.focus())}}"undefined"!=typeof window&&"undefined"!=typeof document&&(H.on(document,ho,po,ko.dataApiKeydownHandler),H.on(document,ho,go,ko.dataApiKeydownHandler),H.on(document,co,ko.clearMenus),H.on(document,uo,ko.clearMenus),H.on(document,co,po,(function(t){t.preventDefault(),ko.getOrCreateInstance(this).toggle()})));const To=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Ao=".sticky-top",Lo="padding-right",xo="margin-right";class Oo{constructor(){this._element=document.body}getWidth(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}hide(){const t=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,Lo,(e=>e+t)),this._setElementAttributes(To,Lo,(e=>e+t)),this._setElementAttributes(Ao,xo,(e=>e-t))}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,Lo),this._resetElementAttributes(To,Lo),this._resetElementAttributes(Ao,xo)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,e,i){const s=this.getWidth();this._applyManipulationCallback(t,(t=>{if(t!==this._element&&window.innerWidth>t.clientWidth+s)return;this._saveInitialAttribute(t,e);const n=window.getComputedStyle(t).getPropertyValue(e);t.style.setProperty(e,`${i(Number.parseFloat(n))}px`)}))}_saveInitialAttribute(t,e){const i=t.style.getPropertyValue(e);i&&X.setDataAttribute(t,e,i)}_resetElementAttributes(t,e){this._applyManipulationCallback(t,(t=>{const i=X.getDataAttribute(t,e);null!==i?(X.removeDataAttribute(t,e),t.style.setProperty(e,i)):t.style.removeProperty(e)}))}_applyManipulationCallback(t,e){if(y(t))e(t);else for(const i of Z.find(t,this._element))e(i)}}const Io="backdrop",Po="show",Mo=`mousedown.bs.${Io}`,$o={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},Fo={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class jo extends K{constructor(t){super(),this._config=this._getConfig(t),this._isAppended=!1,this._element=null}static get Default(){return $o}static get DefaultType(){return Fo}static get NAME(){return Io}show(t){if(!this._config.isVisible)return void L(t);this._append();const e=this._getElement();this._config.isAnimated&&T(e),e.classList.add(Po),this._emulateAnimation((()=>{L(t)}))}hide(t){this._config.isVisible?(this._getElement().classList.remove(Po),this._emulateAnimation((()=>{this.dispose(),L(t)}))):L(t)}dispose(){this._isAppended&&(H.off(this._element,Mo),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const t=document.createElement("div");t.className=this._config.className,this._config.isAnimated&&t.classList.add("fade"),this._element=t}return this._element}_configAfterMerge(t){return t.rootElement=w(t.rootElement),t}_append(){if(this._isAppended)return;const t=this._getElement();this._config.rootElement.append(t),H.on(t,Mo,(()=>{L(this._config.clickCallback)})),this._isAppended=!0}_emulateAnimation(t){x(t,this._getElement(),this._config.isAnimated)}}const No=".bs.focustrap",Do=`focusin${No}`,Ro=`keydown.tab${No}`,Bo="backward",Vo={autofocus:!0,trapElement:null},zo={autofocus:"boolean",trapElement:"element"};class Wo extends K{constructor(t){super(),this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return Vo}static get DefaultType(){return zo}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),H.off(document,No),H.on(document,Do,(t=>this._handleFocusin(t))),H.on(document,Ro,(t=>this._handleKeydown(t))),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,H.off(document,No))}_handleFocusin(t){const{trapElement:e}=this._config;if(t.target===document||t.target===e||e.contains(t.target))return;const i=Z.focusableChildren(e);0===i.length?e.focus():this._lastTabNavDirection===Bo?i[i.length-1].focus():i[0].focus()}_handleKeydown(t){"Tab"===t.key&&(this._lastTabNavDirection=t.shiftKey?Bo:"forward")}}const qo=".bs.modal",Ho=`hide${qo}`,Go=`hidePrevented${qo}`,Uo=`hidden${qo}`,Yo=`show${qo}`,Xo=`shown${qo}`,Ko=`resize${qo}`,Qo=`click.dismiss${qo}`,Zo=`mousedown.dismiss${qo}`,Jo=`keydown.dismiss${qo}`,tr=`click${qo}.data-api`,er="modal-open",ir="show",sr="modal-static",nr={backdrop:!0,focus:!0,keyboard:!0},or={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class rr extends Q{constructor(t,e){super(t,e),this._dialog=Z.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new Oo,this._addEventListeners()}static get Default(){return nr}static get DefaultType(){return or}static get NAME(){return"modal"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown||this._isTransitioning)return;H.trigger(this._element,Yo,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(er),this._adjustDialog(),this._backdrop.show((()=>this._showElement(t))))}hide(){if(!this._isShown||this._isTransitioning)return;H.trigger(this._element,Ho).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(ir),this._queueCallback((()=>this._hideModal()),this._element,this._isAnimated()))}dispose(){for(const t of[window,this._dialog])H.off(t,qo);this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new jo({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Wo({trapElement:this._element})}_showElement(t){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const e=Z.findOne(".modal-body",this._dialog);e&&(e.scrollTop=0),T(this._element),this._element.classList.add(ir);this._queueCallback((()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,H.trigger(this._element,Xo,{relatedTarget:t})}),this._dialog,this._isAnimated())}_addEventListeners(){H.on(this._element,Jo,(t=>{if("Escape"===t.key)return this._config.keyboard?(t.preventDefault(),void this.hide()):void this._triggerBackdropTransition()})),H.on(window,Ko,(()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()})),H.on(this._element,Zo,(t=>{H.one(this._element,Qo,(e=>{this._element===t.target&&this._element===e.target&&("static"!==this._config.backdrop?this._config.backdrop&&this.hide():this._triggerBackdropTransition())}))}))}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide((()=>{document.body.classList.remove(er),this._resetAdjustments(),this._scrollBar.reset(),H.trigger(this._element,Uo)}))}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(H.trigger(this._element,Go).defaultPrevented)return;const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._element.style.overflowY;"hidden"===e||this._element.classList.contains(sr)||(t||(this._element.style.overflowY="hidden"),this._element.classList.add(sr),this._queueCallback((()=>{this._element.classList.remove(sr),this._queueCallback((()=>{this._element.style.overflowY=e}),this._dialog)}),this._dialog),this._element.focus())}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._scrollBar.getWidth(),i=e>0;if(i&&!t){const t=A()?"paddingLeft":"paddingRight";this._element.style[t]=`${e}px`}if(!i&&t){const t=A()?"paddingRight":"paddingLeft";this._element.style[t]=`${e}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}}"undefined"!=typeof window&&"undefined"!=typeof document&&(H.on(document,tr,'[data-bs-toggle="modal"]',(function(t){const e=b(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),H.one(e,Yo,(t=>{t.defaultPrevented||H.one(e,Uo,(()=>{E(this)&&this.focus()}))}));const i=Z.findOne(".modal.show");i&&rr.getInstance(i).hide();rr.getOrCreateInstance(e).toggle(this)})),bt(rr));const ar=".bs.offcanvas",lr=".data-api",cr=`load${ar}${lr}`,hr="show",ur="showing",dr="hiding",fr=".offcanvas.show",pr=`show${ar}`,mr=`shown${ar}`,gr=`hide${ar}`,_r=`hidePrevented${ar}`,br=`hidden${ar}`,vr=`resize${ar}`,yr=`click${ar}${lr}`,wr=`keydown.dismiss${ar}`,Er={backdrop:!0,keyboard:!0,scroll:!1},Cr={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class Sr extends Q{constructor(t,e){super(t,e),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Er}static get DefaultType(){return Cr}static get NAME(){return"offcanvas"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown)return;if(H.trigger(this._element,pr,{relatedTarget:t}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||(new Oo).hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(ur);this._queueCallback((()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(hr),this._element.classList.remove(ur),H.trigger(this._element,mr,{relatedTarget:t})}),this._element,!0)}hide(){if(!this._isShown)return;if(H.trigger(this._element,gr).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(dr),this._backdrop.hide();this._queueCallback((()=>{this._element.classList.remove(hr,dr),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||(new Oo).reset(),H.trigger(this._element,br)}),this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const t=Boolean(this._config.backdrop);return new jo({className:"offcanvas-backdrop",isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?()=>{"static"!==this._config.backdrop?this.hide():H.trigger(this._element,_r)}:null})}_initializeFocusTrap(){return new Wo({trapElement:this._element})}_addEventListeners(){H.on(this._element,wr,(t=>{"Escape"===t.key&&(this._config.keyboard?this.hide():H.trigger(this._element,_r))}))}}"undefined"!=typeof window&&"undefined"!=typeof document&&(H.on(document,yr,'[data-bs-toggle="offcanvas"]',(function(t){const e=b(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),C(this))return;H.one(e,br,(()=>{E(this)&&this.focus()}));const i=Z.findOne(fr);i&&i!==e&&Sr.getInstance(i).hide();Sr.getOrCreateInstance(e).toggle(this)})),H.on(window,cr,(()=>{for(const t of Z.find(fr))Sr.getOrCreateInstance(t).show()})),H.on(window,vr,(()=>{for(const t of Z.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(t).position&&Sr.getOrCreateInstance(t).hide()})),bt(Sr));const kr=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Tr=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i,Ar=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i,Lr=(t,e)=>{const i=t.nodeName.toLowerCase();return e.includes(i)?!kr.has(i)||Boolean(Tr.test(t.nodeValue)||Ar.test(t.nodeValue)):e.filter((t=>t instanceof RegExp)).some((t=>t.test(i)))},xr={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]};const Or={allowList:xr,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},Ir={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},Pr={entry:"(string|element|function|null)",selector:"(string|element)"};class Mr extends K{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return Or}static get DefaultType(){return Ir}static get NAME(){return"TemplateFactory"}getContent(){return Object.values(this._config.content).map((t=>this._resolvePossibleFunction(t))).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(t){return this._checkContent(t),this._config.content={...this._config.content,...t},this}toHtml(){const t=document.createElement("div");t.innerHTML=this._maybeSanitize(this._config.template);for(const[e,i]of Object.entries(this._config.content))this._setContent(t,i,e);const e=t.children[0],i=this._resolvePossibleFunction(this._config.extraClass);return i&&e.classList.add(...i.split(" ")),e}_typeCheckConfig(t){super._typeCheckConfig(t),this._checkContent(t.content)}_checkContent(t){for(const[e,i]of Object.entries(t))super._typeCheckConfig({selector:e,entry:i},Pr)}_setContent(t,e,i){const s=Z.findOne(i,t);s&&((e=this._resolvePossibleFunction(e))?y(e)?this._putElementInTemplate(w(e),s):this._config.html?s.innerHTML=this._maybeSanitize(e):s.textContent=e:s.remove())}_maybeSanitize(t){return this._config.sanitize?function(t,e,i){if(!t.length)return t;if(i&&"function"==typeof i)return i(t);const s=(new window.DOMParser).parseFromString(t,"text/html"),n=[].concat(...s.body.querySelectorAll("*"));for(const t of n){const i=t.nodeName.toLowerCase();if(!Object.keys(e).includes(i)){t.remove();continue}const s=[].concat(...t.attributes),n=[].concat(e["*"]||[],e[i]||[]);for(const e of s)Lr(e,n)||t.removeAttribute(e.nodeName)}return s.body.innerHTML}(t,this._config.allowList,this._config.sanitizeFn):t}_resolvePossibleFunction(t){return"function"==typeof t?t(this):t}_putElementInTemplate(t,e){if(this._config.html)return e.innerHTML="",void e.append(t);e.textContent=t.textContent}}const $r=new Set(["sanitize","allowList","sanitizeFn"]),Fr="fade",jr="show",Nr=".tooltip-inner",Dr=".modal",Rr="hide.bs.modal",Br="hover",Vr="focus",zr={AUTO:"auto",TOP:"top",RIGHT:A()?"left":"right",BOTTOM:"bottom",LEFT:A()?"right":"left"},Wr={allowList:xr,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,0],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},qr={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class Hr extends Q{constructor(t,e){if(void 0===r)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(t,e),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return Wr}static get DefaultType(){return qr}static get NAME(){return"tooltip"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&&(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),H.off(this._element.closest(Dr),Rr,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(!this._isWithContent()||!this._isEnabled)return;const t=H.trigger(this._element,this.constructor.eventName("show")),e=(S(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(t.defaultPrevented||!e)return;this._disposePopper();const i=this._getTipElement();this._element.setAttribute("aria-describedby",i.getAttribute("id"));const{container:s}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(s.append(i),H.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(i),i.classList.add(jr),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))H.on(t,"mouseover",k);this._queueCallback((()=>{H.trigger(this._element,this.constructor.eventName("shown")),!1===this._isHovered&&this._leave(),this._isHovered=!1}),this.tip,this._isAnimated())}hide(){if(!this._isShown())return;if(H.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented)return;if(this._getTipElement().classList.remove(jr),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))H.off(t,"mouseover",k);this._activeTrigger.click=!1,this._activeTrigger[Vr]=!1,this._activeTrigger[Br]=!1,this._isHovered=null;this._queueCallback((()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),H.trigger(this._element,this.constructor.eventName("hidden")))}),this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return Boolean(this._getTitle())}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(t){const e=this._getTemplateFactory(t).toHtml();if(!e)return null;e.classList.remove(Fr,jr),e.classList.add(`bs-${this.constructor.NAME}-auto`);const i=(t=>{do{t+=Math.floor(1e6*Math.random())}while(document.getElementById(t));return t})(this.constructor.NAME).toString();return e.setAttribute("id",i),this._isAnimated()&&e.classList.add(Fr),e}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new Mr({...this._config,content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[Nr]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(t){return this.constructor.getOrCreateInstance(t.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(Fr)}_isShown(){return this.tip&&this.tip.classList.contains(jr)}_createPopper(t){const e="function"==typeof this._config.placement?this._config.placement.call(this,t,this._element):this._config.placement,i=zr[e.toUpperCase()];return r.createPopper(this._element,t,this._getPopperConfig(i))}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map((t=>Number.parseInt(t,10))):"function"==typeof t?e=>t(e,this._element):t}_resolvePossibleFunction(t){return"function"==typeof t?t.call(this._element):t}_getPopperConfig(t){const e={placement:t,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:t=>{this._getTipElement().setAttribute("data-popper-placement",t.state.placement)}}]};return{...e,..."function"==typeof this._config.popperConfig?this._config.popperConfig(e):this._config.popperConfig}}_setListeners(){const t=this._config.trigger.split(" ");for(const e of t)if("click"===e)H.on(this._element,this.constructor.eventName("click"),this._config.selector,(t=>{this._initializeOnDelegatedTarget(t).toggle()}));else if("manual"!==e){const t=e===Br?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),i=e===Br?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");H.on(this._element,t,this._config.selector,(t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusin"===t.type?Vr:Br]=!0,e._enter()})),H.on(this._element,i,this._config.selector,(t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusout"===t.type?Vr:Br]=e._element.contains(t.relatedTarget),e._leave()}))}this._hideModalHandler=()=>{this._element&&this.hide()},H.on(this._element.closest(Dr),Rr,this._hideModalHandler)}_fixTitle(){const t=this._element.getAttribute("title");t&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",t),this._element.setAttribute("data-bs-original-title",t),this._element.removeAttribute("title"))}_enter(){this._isShown()||this._isHovered?this._isHovered=!0:(this._isHovered=!0,this._setTimeout((()=>{this._isHovered&&this.show()}),this._config.delay.show))}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout((()=>{this._isHovered||this.hide()}),this._config.delay.hide))}_setTimeout(t,e){clearTimeout(this._timeout),this._timeout=setTimeout(t,e)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(t){const e=X.getDataAttributes(this._element);for(const t of Object.keys(e))$r.has(t)&&delete e[t];return t={...e,..."object"==typeof t&&t?t:{}},t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t.container=!1===t.container?document.body:w(t.container),"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),t}_getDelegateConfig(){const t={};for(const e in this._config)this.constructor.Default[e]!==this._config[e]&&(t[e]=this._config[e]);return t.selector=!1,t.trigger="manual",t}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}}const Gr=".popover-header",Ur=".popover-body",Yr={...Hr.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},Xr={...Hr.DefaultType,content:"(null|string|element|function)"};const Kr=".bs.scrollspy",Qr=`activate${Kr}`,Zr=`click${Kr}`,Jr=`load${Kr}.data-api`,ta="active",ea="[href]",ia=".nav-link",sa=`${ia}, .nav-item > ${ia}, .list-group-item`,na={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},oa={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class ra extends Q{constructor(t,e){super(t,e),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement="visible"===getComputedStyle(this._element).overflowY?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return na}static get DefaultType(){return oa}static get NAME(){return"scrollspy"}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const t of this._observableSections.values())this._observer.observe(t)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(t){return t.target=w(t.target)||document.body,t.rootMargin=t.offset?`${t.offset}px 0px -30%`:t.rootMargin,"string"==typeof t.threshold&&(t.threshold=t.threshold.split(",").map((t=>Number.parseFloat(t)))),t}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(H.off(this._config.target,Zr),H.on(this._config.target,Zr,ea,(t=>{const e=this._observableSections.get(t.target.hash);if(e){t.preventDefault();const i=this._rootElement||window,s=e.offsetTop-this._element.offsetTop;if(i.scrollTo)return void i.scrollTo({top:s,behavior:"smooth"});i.scrollTop=s}})))}_getNewObserver(){const t={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver((t=>this._observerCallback(t)),t)}_observerCallback(t){const e=t=>this._targetLinks.get(`#${t.target.id}`),i=t=>{this._previousScrollData.visibleEntryTop=t.target.offsetTop,this._process(e(t))},s=(this._rootElement||document.documentElement).scrollTop,n=s>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=s;for(const o of t){if(!o.isIntersecting){this._activeTarget=null,this._clearActiveClass(e(o));continue}const t=o.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(n&&t){if(i(o),!s)return}else n||t||i(o)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const t=Z.find(ea,this._config.target);for(const e of t){if(!e.hash||C(e))continue;const t=Z.findOne(e.hash,this._element);E(t)&&(this._targetLinks.set(e.hash,e),this._observableSections.set(e.hash,t))}}_process(t){this._activeTarget!==t&&(this._clearActiveClass(this._config.target),this._activeTarget=t,t.classList.add(ta),this._activateParents(t),H.trigger(this._element,Qr,{relatedTarget:t}))}_activateParents(t){if(t.classList.contains("dropdown-item"))Z.findOne(".dropdown-toggle",t.closest(".dropdown")).classList.add(ta);else for(const e of Z.parents(t,".nav, .list-group"))for(const t of Z.prev(e,sa))t.classList.add(ta)}_clearActiveClass(t){t.classList.remove(ta);const e=Z.find(`${ea}.${ta}`,t);for(const t of e)t.classList.remove(ta)}}"undefined"!=typeof window&&"undefined"!=typeof document&&H.on(window,Jr,(()=>{for(const t of Z.find('[data-bs-spy="scroll"]'))ra.getOrCreateInstance(t)}));const aa=".bs.tab",la=`hide${aa}`,ca=`hidden${aa}`,ha=`show${aa}`,ua=`shown${aa}`,da=`click${aa}`,fa=`keydown${aa}`,pa=`load${aa}`,ma="ArrowLeft",ga="ArrowRight",_a="ArrowUp",ba="ArrowDown",va="Enter",ya=" ",wa="active",Ea="fade",Ca="show",Sa=":not(.dropdown-toggle)",ka='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Ta=`${`.nav-link${Sa}, .list-group-item${Sa}, [role="tab"]${Sa}`}, ${ka}`;class Aa extends Q{constructor(t){super(t),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),H.on(this._element,fa,(t=>this._keydown(t))))}static get NAME(){return"tab"}show(){const t=this._element;if(this._elemIsActive(t))return;const e=this._getActiveElem(),i=e?H.trigger(e,la,{relatedTarget:t}):null;H.trigger(t,ha,{relatedTarget:e}).defaultPrevented||i&&i.defaultPrevented||(this._deactivate(e,t),this._activate(t,e))}_activate(t,e){if(!t)return;t.classList.add(wa),this._activate(b(t));this._queueCallback((()=>{"tab"===t.getAttribute("role")?(t.removeAttribute("tabindex"),t.setAttribute("aria-selected",!0),this._toggleDropDown(t,!0),H.trigger(t,ua,{relatedTarget:e})):t.classList.add(Ca)}),t,t.classList.contains(Ea))}_deactivate(t,e){if(!t)return;t.classList.remove(wa),t.blur(),this._deactivate(b(t));this._queueCallback((()=>{"tab"===t.getAttribute("role")?(t.setAttribute("aria-selected",!1),t.setAttribute("tabindex","-1"),this._toggleDropDown(t,!1),H.trigger(t,ca,{relatedTarget:e})):t.classList.remove(Ca)}),t,t.classList.contains(Ea))}_keydown(t){if(![ma,ga,_a,ba,va,ya].includes(t.key))return;if(t.stopPropagation(),t.preventDefault(),t.key===va||t.key===ya)return void Aa.getOrCreateInstance(t.target).show();const e=[ga,ba].includes(t.key),i=O(this._getChildren().filter((t=>!C(t))),t.target,e,!0);i&&i.focus({preventScroll:!0})}_getChildren(){return Z.find(Ta,this._parent)}_getActiveElem(){return this._getChildren().find((t=>this._elemIsActive(t)))||null}_setInitialAttributes(t,e){this._setAttributeIfNotExists(t,"role","tablist");for(const t of e)this._setInitialAttributesOnChild(t)}_setInitialAttributesOnChild(t){t=this._getInnerElement(t);const e=this._elemIsActive(t),i=this._getOuterElement(t);t.setAttribute("aria-selected",e),i!==t&&this._setAttributeIfNotExists(i,"role","presentation"),e||t.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(t,"role","tab"),this._setInitialAttributesOnTargetPanel(t)}_setInitialAttributesOnTargetPanel(t){const e=b(t);e&&(this._setAttributeIfNotExists(e,"role","tabpanel"),t.id&&this._setAttributeIfNotExists(e,"aria-labelledby",`#${t.id}`))}_toggleDropDown(t,e){const i=this._getOuterElement(t);if(!i.classList.contains("dropdown"))return;const s=(t,s)=>{const n=Z.findOne(t,i);n&&n.classList.toggle(s,e)};s(".dropdown-toggle",wa),s(".dropdown-menu",Ca),i.setAttribute("aria-expanded",e)}_setAttributeIfNotExists(t,e,i){t.hasAttribute(e)||t.setAttribute(e,i)}_elemIsActive(t){return t.classList.contains(wa)}_getInnerElement(t){return t.matches(Ta)?t:Z.findOne(Ta,t)}_getOuterElement(t){return t.closest(".nav-item, .list-group-item")||t}}"undefined"!=typeof window&&"undefined"!=typeof document&&(H.on(document,da,ka,(function(t){if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),C(this))return;Aa.getOrCreateInstance(this).dispose(),Aa.getOrCreateInstance(this).show()})),H.on(window,pa,(()=>{for(const t of Z.find(ka)){Aa.getOrCreateInstance(t).dispose(),Aa.getOrCreateInstance(t)}})));const La=".bs.toast",xa=`mouseover${La}`,Oa=`mouseout${La}`,Ia=`focusin${La}`,Pa=`focusout${La}`,Ma=`hide${La}`,$a=`hidden${La}`,Fa=`show${La}`,ja=`shown${La}`,Na="hide",Da="show",Ra="showing",Ba={animation:"boolean",autohide:"boolean",delay:"number"},Va={animation:!0,autohide:!0,delay:5e3};class za extends Q{constructor(t,e){super(t,e),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return Va}static get DefaultType(){return Ba}static get NAME(){return"toast"}show(){if(H.trigger(this._element,Fa).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add("fade");this._element.classList.remove(Na),T(this._element),this._element.classList.add(Da,Ra),this._queueCallback((()=>{this._element.classList.remove(Ra),H.trigger(this._element,ja),this._maybeScheduleHide()}),this._element,this._config.animation)}hide(){if(!this.isShown())return;if(H.trigger(this._element,Ma).defaultPrevented)return;this._element.classList.add(Ra),this._queueCallback((()=>{this._element.classList.add(Na),this._element.classList.remove(Ra,Da),H.trigger(this._element,$a)}),this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(Da),super.dispose()}isShown(){return this._element.classList.contains(Da)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout((()=>{this.hide()}),this._config.delay)))}_onInteraction(t,e){switch(t.type){case"mouseover":case"mouseout":this._hasMouseInteraction=e;break;case"focusin":case"focusout":this._hasKeyboardInteraction=e}if(e)return void this._clearTimeout();const i=t.relatedTarget;this._element===i||this._element.contains(i)||this._maybeScheduleHide()}_setListeners(){H.on(this._element,xa,(t=>this._onInteraction(t,!0))),H.on(this._element,Oa,(t=>this._onInteraction(t,!1))),H.on(this._element,Ia,(t=>this._onInteraction(t,!0))),H.on(this._element,Pa,(t=>this._onInteraction(t,!1)))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}}"undefined"!=typeof window&&"undefined"!=typeof document&&bt(za);const Wa=t=>{const e=t.browser.IS_IOS||t.browser.IS_NATIVE_ANDROID,i=t.getTech("Tech");class s extends i{constructor(t,i){super(t,i),this.setPoster(t.poster),this.setSrc(this.options_.source,!0),this.setTimeout(function(){this.el_&&(this.el_.parentNode.className+=" vjs-youtube",e&&(this.el_.parentNode.className+=" vjs-youtube-mobile"),s.isApiReady?this.initYTPlayer():s.apiReadyQueue.push(this))}.bind(this))}dispose(){if(this.ytPlayer)this.ytPlayer.stopVideo&&this.ytPlayer.stopVideo(),this.ytPlayer.destroy&&this.ytPlayer.destroy();else{var t=s.apiReadyQueue.indexOf(this);-1!==t&&s.apiReadyQueue.splice(t,1)}this.ytPlayer=null,this.el_.parentNode.className=this.el_.parentNode.className.replace(" vjs-youtube","").replace(" vjs-youtube-mobile",""),this.el_.parentNode.removeChild(this.el_),i.prototype.dispose.call(this)}createEl(){if("undefined"!=typeof document){var t=document.createElement("div");t.setAttribute("id",this.options_.techId),t.setAttribute("style","width:100%;height:100%;top:0;left:0;position:absolute"),t.setAttribute("class","vjs-tech");var i=document.createElement("div");if(i.appendChild(t),!e&&!this.options_.ytControls){var s=document.createElement("div");s.setAttribute("class","vjs-iframe-blocker"),s.setAttribute("style","position:absolute;top:0;left:0;width:100%;height:100%"),s.onclick=function(){this.pause()}.bind(this),i.appendChild(s)}return i}}initYTPlayer(){var t={controls:0,modestbranding:1,rel:0,showinfo:0,loop:this.options_.loop?1:0};if(void 0!==this.options_.autohide&&(t.autohide=this.options_.autohide),void 0!==this.options_.cc_load_policy&&(t.cc_load_policy=this.options_.cc_load_policy),void 0!==this.options_.ytControls&&(t.controls=this.options_.ytControls),void 0!==this.options_.disablekb&&(t.disablekb=this.options_.disablekb),void 0!==this.options_.color&&(t.color=this.options_.color),t.controls?void 0!==this.options_.fs&&(t.fs=this.options_.fs):t.fs=0,-1!==this.options_.source.src.indexOf("end=")){var e=this.options_.source.src.match(/end=([0-9]*)/);this.options_.end=parseInt(e[1])}if(void 0!==this.options_.end&&(t.end=this.options_.end),void 0!==this.options_.hl?t.hl=this.options_.hl:void 0!==this.options_.language&&(t.hl=this.options_.language.substr(0,2)),void 0!==this.options_.iv_load_policy&&(t.iv_load_policy=this.options_.iv_load_policy),void 0!==this.options_.list?t.list=this.options_.list:this.url&&void 0!==this.url.listId&&(t.list=this.url.listId),void 0!==this.options_.listType&&(t.listType=this.options_.listType),void 0!==this.options_.modestbranding&&(t.modestbranding=this.options_.modestbranding),void 0!==this.options_.playlist&&(t.playlist=this.options_.playlist),void 0!==this.options_.playsinline&&(t.playsinline=this.options_.playsinline),void 0!==this.options_.rel&&(t.rel=this.options_.rel),void 0!==this.options_.showinfo&&(t.showinfo=this.options_.showinfo),-1!==this.options_.source.src.indexOf("start=")){var i=this.options_.source.src.match(/start=([0-9]*)/);this.options_.start=parseInt(i[1])}if(void 0!==this.options_.start&&(t.start=this.options_.start),void 0!==this.options_.theme&&(t.theme=this.options_.theme),void 0!==this.options_.customVars){var s=this.options_.customVars;Object.keys(s).forEach((function(e){t[e]=s[e]}))}this.activeVideoId=this.url?this.url.videoId:null,this.activeList=t.list;var n={videoId:this.activeVideoId,playerVars:t,events:{onReady:this.onPlayerReady.bind(this),onPlaybackQualityChange:this.onPlayerPlaybackQualityChange.bind(this),onPlaybackRateChange:this.onPlayerPlaybackRateChange.bind(this),onStateChange:this.onPlayerStateChange.bind(this),onVolumeChange:this.onPlayerVolumeChange.bind(this),onError:this.onPlayerError.bind(this)}};void 0!==this.options_.enablePrivacyEnhancedMode&&this.options_.enablePrivacyEnhancedMode&&(n.host="https://www.youtube-nocookie.com"),this.ytPlayer=new YT.Player(this.options_.techId,n)}onPlayerReady(){this.options_.muted&&this.ytPlayer.mute(),this.ytPlayer.getAvailablePlaybackRates().length>1&&(this.featuresPlaybackRate=!0),this.playerReady_=!0,this.triggerReady(),this.playOnReady?this.play():this.cueOnReady&&(this.cueVideoById_(this.url.videoId),this.activeVideoId=this.url.videoId)}onPlayerPlaybackQualityChange(){}onPlayerPlaybackRateChange(){this.trigger("ratechange")}onPlayerStateChange(t){var e=t.data;if(e!==this.lastState&&!this.errorNumber)switch(this.lastState=e,e){case-1:this.trigger("loadstart"),this.trigger("loadedmetadata"),this.trigger("durationchange"),this.trigger("ratechange");break;case YT.PlayerState.ENDED:this.trigger("ended");break;case YT.PlayerState.PLAYING:this.trigger("timeupdate"),this.trigger("durationchange"),this.trigger("playing"),this.trigger("play"),this.isSeeking&&this.onSeeked();break;case YT.PlayerState.PAUSED:this.trigger("canplay"),this.isSeeking?this.onSeeked():this.trigger("pause");break;case YT.PlayerState.BUFFERING:this.player_.trigger("timeupdate"),this.player_.trigger("waiting")}}onPlayerVolumeChange(){this.trigger("volumechange")}onPlayerError(t){this.errorNumber=t.data,this.trigger("pause"),this.trigger("error")}error(){var t=1e3+this.errorNumber;switch(this.errorNumber){case 5:return{code:t,message:"Error while trying to play the video"};case 2:case 100:return{code:t,message:"Unable to find the video"};case 101:case 150:return{code:t,message:"Playback on other Websites has been disabled by the video owner."}}return{code:t,message:"YouTube unknown error ("+this.errorNumber+")"}}loadVideoById_(t){var e={videoId:t};this.options_.start&&(e.startSeconds=this.options_.start),this.options_.end&&(e.endSeconds=this.options_.end),this.ytPlayer.loadVideoById(e)}cueVideoById_(t){var e={videoId:t};this.options_.start&&(e.startSeconds=this.options_.start),this.options_.end&&(e.endSeconds=this.options_.end),this.ytPlayer.cueVideoById(e)}src(t){return t&&this.setSrc({src:t}),this.source}poster(){return e?null:this.poster_}setPoster(t){this.poster_=t}setSrc(t){t&&t.src&&(delete this.errorNumber,this.source=t,this.url=s.parseUrl(t.src),this.options_.poster||this.url.videoId&&(this.poster_="https://img.youtube.com/vi/"+this.url.videoId+"/0.jpg",this.trigger("posterchange"),this.checkHighResPoster()),this.options_.autoplay&&!e?this.isReady_?this.play():this.playOnReady=!0:this.activeVideoId!==this.url.videoId&&(this.isReady_?(this.cueVideoById_(this.url.videoId),this.activeVideoId=this.url.videoId):this.cueOnReady=!0))}autoplay(){return this.options_.autoplay}setAutoplay(t){this.options_.autoplay=t}loop(){return this.options_.loop}setLoop(t){this.options_.loop=t}play(){this.url&&this.url.videoId&&(this.wasPausedBeforeSeek=!1,this.isReady_?(this.url.listId&&(this.activeList===this.url.listId?this.ytPlayer.playVideo():(this.ytPlayer.loadPlaylist(this.url.listId),this.activeList=this.url.listId)),this.activeVideoId===this.url.videoId?this.ytPlayer.playVideo():(this.loadVideoById_(this.url.videoId),this.activeVideoId=this.url.videoId)):(this.trigger("waiting"),this.playOnReady=!0))}pause(){this.ytPlayer&&this.ytPlayer.pauseVideo()}paused(){return!this.ytPlayer||this.lastState!==YT.PlayerState.PLAYING&&this.lastState!==YT.PlayerState.BUFFERING}currentTime(){return this.ytPlayer?this.ytPlayer.getCurrentTime():0}setCurrentTime(t){this.lastState===YT.PlayerState.PAUSED&&(this.timeBeforeSeek=this.currentTime()),this.isSeeking||(this.wasPausedBeforeSeek=this.paused()),this.ytPlayer.seekTo(t,!0),this.trigger("timeupdate"),this.trigger("seeking"),this.isSeeking=!0,this.lastState===YT.PlayerState.PAUSED&&this.timeBeforeSeek!==t&&(clearInterval(this.checkSeekedInPauseInterval),this.checkSeekedInPauseInterval=setInterval(function(){this.lastState===YT.PlayerState.PAUSED&&this.isSeeking?this.currentTime()!==this.timeBeforeSeek&&(this.trigger("timeupdate"),this.onSeeked()):clearInterval(this.checkSeekedInPauseInterval)}.bind(this),250))}seeking(){return this.isSeeking}seekable(){return this.ytPlayer?t.createTimeRange(0,this.ytPlayer.getDuration()):t.createTimeRange()}onSeeked(){clearInterval(this.checkSeekedInPauseInterval),this.isSeeking=!1,this.wasPausedBeforeSeek&&this.pause(),this.trigger("seeked")}playbackRate(){return this.ytPlayer?this.ytPlayer.getPlaybackRate():1}setPlaybackRate(t){this.ytPlayer&&this.ytPlayer.setPlaybackRate(t)}duration(){return this.ytPlayer?this.ytPlayer.getDuration():0}currentSrc(){return this.source&&this.source.src}ended(){return!!this.ytPlayer&&this.lastState===YT.PlayerState.ENDED}volume(){return this.ytPlayer?this.ytPlayer.getVolume()/100:1}setVolume(t){this.ytPlayer&&this.ytPlayer.setVolume(100*t)}muted(){return!!this.ytPlayer&&this.ytPlayer.isMuted()}setMuted(t){this.ytPlayer&&(this.muted(!0),t?this.ytPlayer.mute():this.ytPlayer.unMute(),this.setTimeout((function(){this.trigger("volumechange")}),50))}buffered(){if(!this.ytPlayer||!this.ytPlayer.getVideoLoadedFraction)return t.createTimeRange();var e=this.ytPlayer.getVideoLoadedFraction()*this.ytPlayer.getDuration();return t.createTimeRange(0,e)}preload(){}load(){}reset(){}networkState(){if(!this.ytPlayer)return 0;switch(this.ytPlayer.getPlayerState()){case-1:return 0;case 3:return 2;default:return 1}}readyState(){if(!this.ytPlayer)return 0;switch(this.ytPlayer.getPlayerState()){case-1:return 0;case 5:return 1;case 3:return 2;default:return 4}}supportsFullScreen(){if("undefined"!=typeof document)return document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled}checkHighResPoster(){var t="https://img.youtube.com/vi/"+this.url.videoId+"/maxresdefault.jpg";try{var e=new Image;e.onload=function(){if("naturalHeight"in e){if(e.naturalHeight<=90||e.naturalWidth<=120)return}else if(e.height<=90||e.width<=120)return;this.poster_=t,this.trigger("posterchange")}.bind(this),e.onerror=function(){},e.src=t}catch(t){}}}s.isSupported=function(){return!0},s.canPlaySource=function(t){return s.canPlayType(t.type)},s.canPlayType=function(t){return"video/youtube"===t},s.parseUrl=function(t){var e={videoId:null},i=t.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/);i&&11===i[2].length&&(e.videoId=i[2]);return(i=t.match(/[?&]list=([^#\&\?]+)/))&&i[1]&&(e.listId=i[1]),e},s.apiReadyQueue=[],"undefined"!=typeof document&&(function(t,e){if("undefined"!=typeof document){var i=!1,s=document.createElement("script"),n=document.getElementsByTagName("script")[0];n&&(n.parentNode.insertBefore(s,n),s.onload=function(){i||(i=!0,e())},s.onreadystatechange=function(){i||"complete"!==this.readyState&&"loaded"!==this.readyState||(i=!0,e())},s.src=t)}}("https://www.youtube.com/iframe_api",(function(){YT.ready((function(){s.isApiReady=!0;for(var t=0;t<s.apiReadyQueue.length;++t)s.apiReadyQueue[t].initYTPlayer()}))})),function(){if("undefined"!=typeof document){var t=".vjs-youtube .vjs-iframe-blocker { display: none; }.vjs-youtube.vjs-user-inactive .vjs-iframe-blocker { display: block; }.vjs-youtube .vjs-poster { background-size: cover; }.vjs-youtube-mobile .vjs-big-play-button { display: none; }",e=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css",i.styleSheet?i.styleSheet.cssText=t:i.appendChild(document.createTextNode(t)),e.appendChild(i)}}()),void 0!==t.registerTech?t.registerTech("Youtube",s):t.registerComponent("Youtube",s)},qa={languages:{it:{"Audio Player":"Lettore audio","Video Player":"Lettore video",Play:"Play",Pause:"Pausa",Replay:"Replay","Current Time":"Orario attuale",Duration:"Durata","Remaining Time":"Tempo rimanente","Stream Type":"Tipo di streaming",LIVE:"LIVE",Loaded:"Caricato",Progress:"Stato","Progress Bar":"Barra di avanzamento","progress bar timing: currentTime={1} duration={2}":"{1} di {2}",Fullscreen:"Schermo intero","Exit Fullscreen":"Chiudi Schermo intero",Mute:"Disattiva l’audio",Unmute:"Attiva l’audio","Playback Rate":"Velocità di riproduzione",Subtitles:"Sottotitoli","subtitles off":"Senza sottotitoli",Captions:"Sottotitoli non udenti","captions off":"Senza sottotitoli non udenti",Chapters:"Capitolo",Descriptions:"Descrizioni","descriptions off":"Descrizioni disattivate","Audio Track":"Traccia audio","Volume Level":"Livello del volume","You aborted the media playback":"La riproduzione del filmato è stata interrotta.","A network error caused the media download to fail part-way.":"Il download del filmato è stato interrotto a causa di un problema rete.","The media could not be loaded, either because the server or network failed or because the format is not supported.":"Il filmato non può essere caricato a causa di un errore nel server o nella rete o perché il formato non viene supportato.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"La riproduzione del filmato è stata interrotta a causa di un file danneggiato o per l’utilizzo di impostazioni non supportate dal browser.","No compatible source was found for this media.":"Non ci sono fonti compatibili per questo filmato.","The media is encrypted and we do not have the keys to decrypt it.":"Il contenuto multimediale è criptato e non disponiamo delle chiavi per decifrarlo.","Play Video":"Riproduci il video",Close:"Chiudi","Close Modal Dialog":"Chiudi la finestra di dialogo","Modal Window":"Finestra di dialogo","This is a modal window":"Questa è una finestra di dialogo","This modal can be closed by pressing the Escape key or activating the close button.":"Questa finestra di dialogo può essere chiusa premendo sul tasto Esc o attivando il pulsante di chiusura.",", opens captions settings dialog":", aprire i parametri della trascrizione dei sottotitoli",", opens subtitles settings dialog":", aprire i parametri dei sottotitoli",", opens descriptions settings dialog":", aprire i parametri delle descrizioni",", selected":", selezionato","captions settings":"Parametri sottotitoli non udenti","subtitles settings":"Parametri sottotitoli","descriptions settings":"Parametri descrizioni",Text:"Testo",White:"Bianco",Black:"Nero",Red:"Rosso",Green:"Verde",Blue:"Blu",Yellow:"Giallo",Magenta:"Magenta",Cyan:"Ciano",Background:"Sfondo",Window:"Finestra",Transparent:"Trasparente","Semi-Transparent":"Semi-Trasparente",Opaque:"Opaco","Font Size":"Dimensione dei caratteri","Text Edge Style":"Stile dei bordi del testo",None:"Nessuno",Uniform:"Uniforme","Drop shadow":"Ombra","Font Family":"Carattere","Proportional Sans-Serif":"Sans-Serif proporzionale","Monospace Sans-Serif":"Sans-Serif monospaziato","Proportional Serif":"Serif proporzionale","Monospace Serif":"Serif monospaziato","Small Caps":"Maiuscoletto",Reset:"Reinizializza","restore all settings to the default values":"Ripristina i valori predefiniti per tutti i parametri",Done:"Fatto","Caption Settings Dialog":"Finestra di dialogo dei parametri della trascrizione dei sottotitoli","Beginning of dialog window. Escape will cancel and close the window.":"Inizio della finestra di dialogo. Il tasto Esc annullerà l’operazione e chiuderà la finestra.","End of dialog window.":"Fine della finestra di dialogo.","{1} is loading.":"{1} in fase di caricamento.","Exit Picture-in-Picture":"Esci dalla modalità Picture-in-Picture","Picture-in-Picture":"Picture-in-Picture",Color:"Colore",Opacity:"Opacità","Text Background":"Sfondo testo","Caption Area Background":"Sfondo area sottotitoli","Skip forward {1} seconds":"Avanti {1} secondi","Skip backward {1} seconds":"Indietro {1} secondi"}},language:"it"},Ha={};"undefined"!=typeof window&&(window.videojs=e);class Ga extends Q{constructor(t,i){super(t),t.classList.add("video-js","vjs-theme-bootstrap-italia","vjs-fluid","vjs-big-play-centered"),this._config=this._getConfig(i),this.player=e(t,qa)}setYouTubeVideo(t){Wa(e),this.player.tech("youtube"),this.player.src({type:"video/youtube",src:t})}static get NAME(){return"videoplayer"}_getConfig(t){return t={...Ha,...X.getDataAttributes(this._element),..."object"==typeof t?t:{}}}}if("undefined"!=typeof window&&"undefined"!=typeof document){const t=Z.find("[data-bs-video]");t.length>0&&t.forEach((t=>{Ga.getOrCreateInstance(t)}))}const Ua="show";class Ya extends Q{constructor(t,e){super(t.closest(".acceptoverlay")),this._overlayable=t.closest(".acceptoverlayable");const i=d.isChoiceRemembered(e.service);if(this._isShown=!0,this._toggleElement=t,this._element.classList.contains(Ua)&&this._overlayable.classList.add(Ua),i)return this.hide(),void setTimeout((()=>{this._toggleElement.dispatchEvent(new Event("click"))}),100);this._toggleElement.addEventListener("click",(()=>{this.hide(),this._remember=this._toggleElement.parentElement.querySelector("[data-bs-accept-remember]").checked,d.rememberChoice(e.service,this._remember)}))}static get NAME(){return"acceptoverlay"}show(){this._isShown||this._isTransitioning||(this._isShown=!0,this._isAnimated()&&(this._isTransitioning=!0),this._showElement())}hide(){if(!this._isShown||this._isTransitioning)return;this._isShown=!1;const t=this._isAnimated();t&&(this._isTransitioning=!0),this._element.classList.remove(Ua),this._overlayable.classList.remove(Ua),this._queueCallback((()=>this._hideElement()),this._element,t)}_isAnimated(){return this._element.classList.contains("fade")}_showElement(){const t=this._isAnimated();this._element.removeAttribute("aria-hidden"),t&&T(this._element),this._element.classList.add(Ua),this._overlayable.add(Ua);this._queueCallback((()=>{this._isTransitioning=!1}),this._element,t)}_hideElement(){this._element.setAttribute("aria-hidden",!0),this._isTransitioning=!1}}if("undefined"!=typeof window&&"undefined"!=typeof document){const t=Z.find("[data-bs-accept-from]");t.length>0&&t.forEach((t=>{Ya.getOrCreateInstance(t,{service:t.dataset.bsAcceptFrom})}))}h();const Xa={Alert:sn,Button:on,Carousel:Rn,Collapse:Jn,Dropdown:ko,Modal:rr,Offcanvas:Sr,Popover:class extends Hr{static get Default(){return Yr}static get DefaultType(){return Xr}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[Gr]:this._getTitle(),[Ur]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}},ScrollSpy:ra,Tab:Aa,Toast:za,Tooltip:Hr,VideoPlayer:Ga,AcceptOverlay:Ya,Accordion:ue,BackToTop:ms,CarouselBI:et,Cookiebar:Ft,Dimmer:_t,FormValidate:class{constructor(t,e,i){if(this.formSelector=t,"undefined"!=typeof window&&"undefined"!=typeof document)return this.target=document.querySelector(t),this.validate=null!=i?new li(t,e,i):new li(t,e),this.config=Object.assign({},ui,this.validate.globalConfig),this.formItems=[],this.init(),this.validate}init(){this.target.querySelectorAll("input, select").forEach((t=>{const e=new ci(t,this.config.errorFieldCssClass,(()=>this.onInputError(t)),(()=>this.onInputErrorRemove(t)),!0);t.id||t.setAttribute("id",di+"-input-"+Math.random()),this.formItems.push({item:t,watcher:e})}));this.target.querySelectorAll("fieldset").forEach((t=>{if(t.querySelectorAll("input[type=radio],input[type=checkbox]").length>0){const e=new hi(t,"."+this.config.errorLabelCssClass,(()=>this.onFieldsetError(t)),(()=>this.onFieldsetErrorRemove(t)));t.id||t.setAttribute("id",di+"-fieldset-"+Math.random()),this.formItems.push({item:t,watcher:e})}}))}onInputError(t){const e=this.getErrorMessages(t),i=[];e.forEach(((e,s)=>{const n=t.id+"-error-"+s;e.setAttribute("id",n),i.push(n)})),i.length>0&&(t.setAttribute("aria-describedby",i.join(" ")),t.setAttribute("aria-invalid","true"))}onInputErrorRemove(t){t.removeAttribute("aria-describedby"),t.setAttribute("aria-invalid","false")}onFieldsetError(t){const e=this.getErrorMessages(t),i=[],s=[];if(e.forEach(((e,n)=>{const o=t.id+"-error-"+n;e.setAttribute("id",o),i.push(o),s.push(e.textContent)})),i.length>0){const e=t.querySelector("legend");e&&(e.setAttribute("aria-describedby",i.join(" ")),e.setAttribute("aria-invalid","true"))}}onFieldsetErrorRemove(t){const e=t.querySelector("legend");if(e){e.removeAttribute("aria-describedby"),e.setAttribute("aria-invalid","false");const t=e.querySelector(".sr-only-justvalidate-bi");t&&t.remove()}}getErrorMessages(t){let e=t,i=e.querySelectorAll("."+this.config.errorLabelCssClass);for(;null!=e&&0===i.length;)e=e.parentNode,i=e.querySelectorAll("."+this.config.errorLabelCssClass);return i}},Forward:Ss,HistoryBack:vs,Input:fi,InputNumber:mt,InputPassword:Mi,InputSearchAutocomplete:vi,List:Fs,Masonry:xs,NavBarCollapsible:re,NavScroll:Me,Notification:kt,ProgressDonut:es,SelectAutocomplete:class extends Q{constructor(t,e){super(t),this._hasFormControl=t.classList.contains("form-control"),this.element_original_id=this._element.id,this._config=e,this._config.tAssistiveHint||(this._config.tAssistiveHint=()=>"Quando i risultati del completamento automatico sono disponibili, usa le frecce su e giù per rivedere e Invio per selezionare. Utenti di dispositivi touch, esplora tramite tocco o con gesti di scorrimento"),this._config.tNoResults||(this._config.tNoResults=()=>"Nessun risultato trovato"),this._config.tStatusQueryTooShort||(this._config.tStatusQueryTooShort=t=>`Digita ${t} o più caratteri per mostrare le opzioni di ricerca`),this._config.tStatusNoResults||(this._config.tStatusNoResults=()=>"Nessun risultato di ricerca"),this._config.tStatusSelectedOption||(this._config.tStatusSelectedOption=(t,e,i)=>`${t} ${i+1} di ${e} è sottolineato`),this._config.tStatusResults||(this._config.tStatusResults=(t,e)=>`${t} ${1===t?"risultato":"risultati"} ${1===t?"è":"sono"} ${1===t?"disponibile":"disponibili"}. ${e}`),this._enhance()}static get NAME(){return"selectautocomplete"}_enhance(){n.enhanceSelectElement(Object.assign({},{selectElement:this._element},this._config)),setTimeout((()=>{if(this._hasFormControl){if("undefined"==typeof document)return;const t=document.getElementById(this.element_original_id);t.classList.add("form-control"),function(t,e){const i=new MutationObserver((t=>{t.forEach((t=>{"attributes"===t.type&&"class"===t.attributeName&&e(t.target)}))}));i.observe(t,{attributes:!0}),i.disconnect}(t,(t=>{t.classList.contains("form-control")||t.classList.add("form-control")}))}}),100)}},Sticky:ze,HeaderSticky:Ge,Transfer:Zs,UploadDragDrop:us,ValidatorSelectAutocomplete:(t,e={})=>(i,s)=>{let n=!1;const o=s[t];if(!o)throw new Error("ValidatorSelectAutocomplete: "+t+" not found as form field");return e.required||i?"undefined"!=typeof window&&"undefined"!=typeof document&&document.querySelector("#"+o.elem.id+"-select").querySelectorAll("option").forEach((t=>{t.text===i&&(n=!0)})):n=!0,n},loadFonts:(t="/node_modules/bootstrap-italia/dist/fonts")=>{if("undefined"==typeof window||"undefined"==typeof document)return;const e=document.createElement("style"),i=window.__PUBLIC_PATH__?window.__PUBLIC_PATH__:t;e.innerHTML=`\n /* Titillium+Web:300,400,600,700 */\n\n /* titillium-web-300 - latin-ext_latin */\n @font-face {\n font-family: 'Titillium Web';\n font-style: normal;\n font-weight: 300;\n font-display: swap;\n src: url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-300.eot'); /* IE9 Compat Modes */\n src: local(''),\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-300.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-300.woff2') format('woff2'), /* Super Modern Browsers */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-300.woff') format('woff'), /* Modern Browsers */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-300.ttf') format('truetype'), /* Safari, Android, iOS */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-300.svg#TitilliumWeb') format('svg'); /* Legacy iOS */\n }\n\n /* titillium-web-300italic - latin-ext_latin */\n @font-face {\n font-family: 'Titillium Web';\n font-style: italic;\n font-weight: 300;\n font-display: swap;\n src: url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-300italic.eot'); /* IE9 Compat Modes */\n src: local(''),\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-300italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-300italic.woff2') format('woff2'), /* Super Modern Browsers */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-300italic.woff') format('woff'), /* Modern Browsers */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-300italic.ttf') format('truetype'), /* Safari, Android, iOS */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-300italic.svg#TitilliumWeb') format('svg'); /* Legacy iOS */\n }\n\n /* titillium-web-regular - latin-ext_latin */\n @font-face {\n font-family: 'Titillium Web';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-regular.eot'); /* IE9 Compat Modes */\n src: local(''),\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-regular.woff2') format('woff2'), /* Super Modern Browsers */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-regular.woff') format('woff'), /* Modern Browsers */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-regular.svg#TitilliumWeb') format('svg'); /* Legacy iOS */\n }\n\n /* titillium-web-italic - latin-ext_latin */\n @font-face {\n font-family: 'Titillium Web';\n font-style: italic;\n font-weight: 400;\n font-display: swap;\n src: url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-italic.eot'); /* IE9 Compat Modes */\n src: local(''),\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-italic.woff2') format('woff2'), /* Super Modern Browsers */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-italic.woff') format('woff'), /* Modern Browsers */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-italic.ttf') format('truetype'), /* Safari, Android, iOS */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-italic.svg#TitilliumWeb') format('svg'); /* Legacy iOS */\n }\n\n /* titillium-web-700 - latin-ext_latin */\n @font-face {\n font-family: 'Titillium Web';\n font-style: normal;\n font-weight: 700;\n font-display: swap;\n src: url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-700.eot'); /* IE9 Compat Modes */\n src: local(''),\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-700.woff2') format('woff2'), /* Super Modern Browsers */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-700.woff') format('woff'), /* Modern Browsers */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-700.ttf') format('truetype'), /* Safari, Android, iOS */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-700.svg#TitilliumWeb') format('svg'); /* Legacy iOS */\n }\n\n /* titillium-web-700italic - latin-ext_latin */\n @font-face {\n font-family: 'Titillium Web';\n font-style: italic;\n font-weight: 700;\n font-display: swap;\n src: url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-700italic.eot'); /* IE9 Compat Modes */\n src: local(''),\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-700italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-700italic.woff2') format('woff2'), /* Super Modern Browsers */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-700italic.woff') format('woff'), /* Modern Browsers */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-700italic.ttf') format('truetype'), /* Safari, Android, iOS */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-700italic.svg#TitilliumWeb') format('svg'); /* Legacy iOS */\n }\n /* titillium-web-600 - latin-ext_latin */\n @font-face {\n font-family: 'Titillium Web';\n font-style: normal;\n font-weight: 600;\n font-display: swap;\n src: url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-600.eot'); /* IE9 Compat Modes */\n src: local(''),\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-600.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-600.woff2') format('woff2'), /* Super Modern Browsers */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-600.woff') format('woff'), /* Modern Browsers */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-600.ttf') format('truetype'), /* Safari, Android, iOS */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-600.svg#TitilliumWeb') format('svg'); /* Legacy iOS */\n }\n\n /* titillium-web-600italic - latin-ext_latin */\n @font-face {\n font-family: 'Titillium Web';\n font-style: italic;\n font-weight: 600;\n font-display: swap;\n src: url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-600italic.eot'); /* IE9 Compat Modes */\n src: local(''),\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-600italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-600italic.woff2') format('woff2'), /* Super Modern Browsers */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-600italic.woff') format('woff'), /* Modern Browsers */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-600italic.ttf') format('truetype'), /* Safari, Android, iOS */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-600italic.svg#TitilliumWeb') format('svg'); /* Legacy iOS */\n }\n\n /* Lora:400,700 */\n\n /* lora-regular - latin-ext_latin */\n @font-face {\n font-family: 'Lora';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url('${i}/Lora/lora-v20-latin-ext_latin-regular.eot'); /* IE9 Compat Modes */\n src: local(''),\n url('${i}/Lora/lora-v20-latin-ext_latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */\n url('${i}/Lora/lora-v20-latin-ext_latin-regular.woff2') format('woff2'), /* Super Modern Browsers */\n url('${i}/Lora/lora-v20-latin-ext_latin-regular.woff') format('woff'), /* Modern Browsers */\n url('${i}/Lora/lora-v20-latin-ext_latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */\n url('${i}/Lora/lora-v20-latin-ext_latin-regular.svg#Lora') format('svg'); /* Legacy iOS */\n }\n\n /* lora-700 - latin-ext_latin */\n @font-face {\n font-family: 'Lora';\n font-style: normal;\n font-weight: 700;\n font-display: swap;\n src: url('${i}/Lora/lora-v20-latin-ext_latin-700.eot'); /* IE9 Compat Modes */\n src: local(''),\n url('${i}/Lora/lora-v20-latin-ext_latin-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */\n url('${i}/Lora/lora-v20-latin-ext_latin-700.woff2') format('woff2'), /* Super Modern Browsers */\n url('${i}/Lora/lora-v20-latin-ext_latin-700.woff') format('woff'), /* Modern Browsers */\n url('${i}/Lora/lora-v20-latin-ext_latin-700.ttf') format('truetype'), /* Safari, Android, iOS */\n url('${i}/Lora/lora-v20-latin-ext_latin-700.svg#Lora') format('svg'); /* Legacy iOS */\n }\n\n /* lora-italic - latin-ext_latin */\n @font-face {\n font-family: 'Lora';\n font-style: italic;\n font-weight: 400;\n font-display: swap;\n src: url('${i}/Lora/lora-v20-latin-ext_latin-italic.eot'); /* IE9 Compat Modes */\n src: local(''),\n url('${i}/Lora/lora-v20-latin-ext_latin-italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */\n url('${i}/Lora/lora-v20-latin-ext_latin-italic.woff2') format('woff2'), /* Super Modern Browsers */\n url('${i}/Lora/lora-v20-latin-ext_latin-italic.woff') format('woff'), /* Modern Browsers */\n url('${i}/Lora/lora-v20-latin-ext_latin-italic.ttf') format('truetype'), /* Safari, Android, iOS */\n url('${i}/Lora/lora-v20-latin-ext_latin-italic.svg#Lora') format('svg'); /* Legacy iOS */\n }\n\n /* lora-700italic - latin-ext_latin */\n @font-face {\n font-family: 'Lora';\n font-style: italic;\n font-weight: 700;\n font-display: swap;\n src: url('${i}/Lora/lora-v20-latin-ext_latin-700italic.eot'); /* IE9 Compat Modes */\n src: local(''),\n url('${i}/Lora/lora-v20-latin-ext_latin-700italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */\n url('${i}/Lora/lora-v20-latin-ext_latin-700italic.woff2') format('woff2'), /* Super Modern Browsers */\n url('${i}/Lora/lora-v20-latin-ext_latin-700italic.woff') format('woff'), /* Modern Browsers */\n url('${i}/Lora/lora-v20-latin-ext_latin-700italic.ttf') format('truetype'), /* Safari, Android, iOS */\n url('${i}/Lora/lora-v20-latin-ext_latin-700italic.svg#Lora') format('svg'); /* Legacy iOS */\n }\n\n /* Roboto+Mono:400,700 */\n\n /* roboto-mono-regular - latin-ext_latin */\n @font-face {\n font-family: 'Roboto Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-regular.eot'); /* IE9 Compat Modes */\n src: local(''),\n url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */\n url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-regular.woff2') format('woff2'), /* Super Modern Browsers */\n url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-regular.woff') format('woff'), /* Modern Browsers */\n url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */\n url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-regular.svg#RobotoMono') format('svg'); /* Legacy iOS */\n }\n\n /* roboto-mono-700 - latin-ext_latin */\n @font-face {\n font-family: 'Roboto Mono';\n font-style: normal;\n font-weight: 700;\n font-display: swap;\n src: url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-700.eot'); /* IE9 Compat Modes */\n src: local(''),\n url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */\n url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-700.woff2') format('woff2'), /* Super Modern Browsers */\n url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-700.woff') format('woff'), /* Modern Browsers */\n url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-700.ttf') format('truetype'), /* Safari, Android, iOS */\n url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-700.svg#RobotoMono') format('svg'); /* Legacy iOS */\n }\n\n /* roboto-mono-italic - latin-ext_latin */\n @font-face {\n font-family: 'Roboto Mono';\n font-style: italic;\n font-weight: 400;\n font-display: swap;\n src: url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-italic.eot'); /* IE9 Compat Modes */\n src: local(''),\n url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */\n url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-italic.woff2') format('woff2'), /* Super Modern Browsers */\n url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-italic.woff') format('woff'), /* Modern Browsers */\n url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-italic.ttf') format('truetype'), /* Safari, Android, iOS */\n url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-italic.svg#RobotoMono') format('svg'); /* Legacy iOS */\n }\n\n /* roboto-mono-700italic - latin-ext_latin */\n @font-face {\n font-family: 'Roboto Mono';\n font-style: italic;\n font-weight: 700;\n font-display: swap;\n src: url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-700italic.eot'); /* IE9 Compat Modes */\n src: local(''),\n url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-700italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */\n url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-700italic.woff2') format('woff2'), /* Super Modern Browsers */\n url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-700italic.woff') format('woff'), /* Modern Browsers */\n url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-700italic.ttf') format('truetype'), /* Safari, Android, iOS */\n url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-700italic.svg#RobotoMono') format('svg'); /* Legacy iOS */\n }\n `,document.getElementsByTagName("head")[0].appendChild(e)},cookies:d};return Xa}));
|