@aquera/nile-elements 0.0.4-1 → 0.0.4-2
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/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/internal/watch.d.ts +3 -3
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-auto-complete/nile-auto-complete.js.map +1 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-badge/index.js.map +1 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-button/nile-button.js.map +1 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-calendar/nile-calendar.js.map +1 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-checkbox/nile-checkbox.js.map +1 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-chip/nile-chip.js.map +1 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-date-picker/nile-date-picker.js.map +1 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-drawer/index.js.map +1 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-dropdown/nile-dropdown.js.map +1 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-error-message/nile-error-message.js.map +1 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-footer/index.js.map +1 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-form-error-message/nile-form-error-message.js.map +1 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-form-help-text/nile-form-help-text.js.map +1 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-heading/index.js.map +1 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-icon/index.js.map +1 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-icon-button/nile-icon-button.js.map +1 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-input/nile-input.js.map +1 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-loader/nile-loader.js +2 -2
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-loader/nile-loader.js.map +1 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-menu/nile-menu.js.map +1 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-menu-item/nile-menu-item.js.map +1 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-option/nile-option.js.map +1 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-popup/nile-popup.js.map +1 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-progress-bar/nile-progress-bar.js.map +1 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-radio/nile-radio.js.map +1 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-radio-group/nile-radio-group.js.map +1 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-select/nile-select.js.map +1 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-sidebar/index.js.map +1 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-slide-toggle/nile-slide-toggle.js.map +1 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-spinner/nile-spinner.js.map +1 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-tag/nile-tag.js.map +1 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-textarea/nile-textarea.js.map +1 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-toolbar/index.js.map +1 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-tooltip/nile-tooltip.js.map +1 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/watch.d.ts +3 -3
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/custom-element-fc8dd455.cjs.js.map +1 -1
- package/dist/index-cd2f9c12.esm.js +35 -0
- package/dist/index-cd83c5c8.cjs.js +22 -0
- package/dist/index-cd83c5c8.cjs.js.map +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.iife.js +199 -204
- package/dist/internal/animate.cjs.js +1 -1
- package/dist/internal/animate.cjs.js.map +1 -1
- package/dist/internal/default-value.cjs.js.map +1 -1
- package/dist/internal/event.cjs.js.map +1 -1
- package/dist/internal/form.cjs.js +1 -1
- package/dist/internal/form.cjs.js.map +1 -1
- package/dist/internal/nile-element.cjs.js.map +1 -1
- package/dist/internal/offset.cjs.js.map +1 -1
- package/dist/internal/scroll.cjs.js.map +1 -1
- package/dist/internal/slot.cjs.js +1 -1
- package/dist/internal/slot.cjs.js.map +1 -1
- package/dist/internal/tabbable.cjs.js.map +1 -1
- package/dist/internal/watch.cjs.js +1 -1
- package/dist/internal/watch.cjs.js.map +1 -1
- package/dist/nile-auto-complete/index.cjs.js +1 -1
- package/dist/nile-auto-complete/index.esm.js +1 -1
- package/dist/nile-auto-complete/nile-auto-complete.cjs.js +1 -1
- package/dist/nile-auto-complete/nile-auto-complete.cjs.js.map +1 -1
- package/dist/nile-auto-complete/nile-auto-complete.css.cjs.js +1 -1
- package/dist/nile-auto-complete/nile-auto-complete.css.cjs.js.map +1 -1
- package/dist/nile-auto-complete/nile-auto-complete.css.esm.js +1 -1
- package/dist/nile-auto-complete/nile-auto-complete.esm.js +2 -2
- package/dist/nile-badge/index.cjs.js.map +1 -1
- package/dist/nile-button/index.cjs.js +1 -1
- package/dist/nile-button/index.esm.js +1 -1
- package/dist/nile-button/nile-button.cjs.js +1 -1
- package/dist/nile-button/nile-button.cjs.js.map +1 -1
- package/dist/nile-button/nile-button.css.cjs.js +1 -1
- package/dist/nile-button/nile-button.css.cjs.js.map +1 -1
- package/dist/nile-button/nile-button.css.esm.js +1 -1
- package/dist/nile-button/nile-button.esm.js +2 -2
- package/dist/nile-calendar/index.cjs.js +1 -1
- package/dist/nile-calendar/index.esm.js +1 -1
- package/dist/nile-calendar/nile-calendar.cjs.js +1 -1
- package/dist/nile-calendar/nile-calendar.cjs.js.map +1 -1
- package/dist/nile-calendar/nile-calendar.css.cjs.js +1 -1
- package/dist/nile-calendar/nile-calendar.css.cjs.js.map +1 -1
- package/dist/nile-calendar/nile-calendar.css.esm.js +1 -1
- package/dist/nile-calendar/nile-calendar.esm.js +3 -3
- package/dist/nile-checkbox/index.cjs.js +1 -1
- package/dist/nile-checkbox/index.esm.js +1 -1
- package/dist/nile-checkbox/nile-checkbox.cjs.js +1 -1
- package/dist/nile-checkbox/nile-checkbox.cjs.js.map +1 -1
- package/dist/nile-checkbox/nile-checkbox.css.cjs.js +1 -1
- package/dist/nile-checkbox/nile-checkbox.css.cjs.js.map +1 -1
- package/dist/nile-checkbox/nile-checkbox.css.esm.js +1 -1
- package/dist/nile-checkbox/nile-checkbox.esm.js +2 -2
- package/dist/nile-chip/index.cjs.js +1 -1
- package/dist/nile-chip/index.esm.js +1 -1
- package/dist/nile-chip/nile-chip.cjs.js +1 -1
- package/dist/nile-chip/nile-chip.cjs.js.map +1 -1
- package/dist/nile-chip/nile-chip.css.cjs.js +1 -1
- package/dist/nile-chip/nile-chip.css.cjs.js.map +1 -1
- package/dist/nile-chip/nile-chip.css.esm.js +1 -1
- package/dist/nile-chip/nile-chip.esm.js +2 -2
- package/dist/nile-date-picker/index.cjs.js +1 -1
- package/dist/nile-date-picker/index.esm.js +1 -1
- package/dist/nile-date-picker/nile-date-picker.cjs.js +1 -1
- package/dist/nile-date-picker/nile-date-picker.cjs.js.map +1 -1
- package/dist/nile-date-picker/nile-date-picker.css.cjs.js +1 -1
- package/dist/nile-date-picker/nile-date-picker.css.cjs.js.map +1 -1
- package/dist/nile-date-picker/nile-date-picker.css.esm.js +1 -1
- package/dist/nile-date-picker/nile-date-picker.esm.js +2 -2
- package/dist/nile-drawer/index.cjs.js +1 -1
- package/dist/nile-drawer/index.cjs.js.map +1 -1
- package/dist/nile-drawer/index.esm.js +1 -1
- package/dist/nile-drawer/nile-drawer.css.cjs.js +1 -1
- package/dist/nile-drawer/nile-drawer.css.cjs.js.map +1 -1
- package/dist/nile-drawer/nile-drawer.css.esm.js +1 -1
- package/dist/nile-dropdown/index.cjs.js +1 -1
- package/dist/nile-dropdown/index.esm.js +1 -1
- package/dist/nile-dropdown/nile-dropdown.cjs.js +1 -1
- package/dist/nile-dropdown/nile-dropdown.cjs.js.map +1 -1
- package/dist/nile-dropdown/nile-dropdown.css.cjs.js +1 -1
- package/dist/nile-dropdown/nile-dropdown.css.cjs.js.map +1 -1
- package/dist/nile-dropdown/nile-dropdown.css.esm.js +1 -1
- package/dist/nile-dropdown/nile-dropdown.esm.js +2 -2
- package/dist/nile-error-message/index.cjs.js +1 -1
- package/dist/nile-error-message/index.esm.js +1 -1
- package/dist/nile-error-message/nile-error-message.cjs.js +1 -1
- package/dist/nile-error-message/nile-error-message.cjs.js.map +1 -1
- package/dist/nile-error-message/nile-error-message.css.cjs.js +1 -1
- package/dist/nile-error-message/nile-error-message.css.cjs.js.map +1 -1
- package/dist/nile-error-message/nile-error-message.css.esm.js +1 -1
- package/dist/nile-error-message/nile-error-message.esm.js +2 -2
- package/dist/nile-footer/index.cjs.js +1 -1
- package/dist/nile-footer/index.cjs.js.map +1 -1
- package/dist/nile-footer/index.esm.js +1 -1
- package/dist/nile-footer/nile-footer.css.cjs.js +1 -1
- package/dist/nile-footer/nile-footer.css.cjs.js.map +1 -1
- package/dist/nile-footer/nile-footer.css.esm.js +1 -1
- package/dist/nile-form-error-message/index.cjs.js +1 -1
- package/dist/nile-form-error-message/index.esm.js +1 -1
- package/dist/nile-form-error-message/nile-form-error-message.cjs.js +1 -1
- package/dist/nile-form-error-message/nile-form-error-message.cjs.js.map +1 -1
- package/dist/nile-form-error-message/nile-form-error-message.css.cjs.js +1 -1
- package/dist/nile-form-error-message/nile-form-error-message.css.cjs.js.map +1 -1
- package/dist/nile-form-error-message/nile-form-error-message.css.esm.js +1 -1
- package/dist/nile-form-error-message/nile-form-error-message.esm.js +2 -2
- package/dist/nile-form-help-text/index.cjs.js +1 -1
- package/dist/nile-form-help-text/index.esm.js +1 -1
- package/dist/nile-form-help-text/nile-form-help-text.cjs.js +1 -1
- package/dist/nile-form-help-text/nile-form-help-text.cjs.js.map +1 -1
- package/dist/nile-form-help-text/nile-form-help-text.css.cjs.js +1 -1
- package/dist/nile-form-help-text/nile-form-help-text.css.cjs.js.map +1 -1
- package/dist/nile-form-help-text/nile-form-help-text.css.esm.js +1 -1
- package/dist/nile-form-help-text/nile-form-help-text.esm.js +2 -2
- package/dist/nile-heading/index.cjs.js.map +1 -1
- package/dist/nile-icon/icons/svg/index.cjs.js +1 -1
- package/dist/nile-icon/icons/svg/index.esm.js +1 -1
- package/dist/nile-icon/index.cjs.js +1 -1
- package/dist/nile-icon/index.cjs.js.map +1 -1
- package/dist/nile-icon/index.esm.js +1 -1
- package/dist/nile-icon/utils.cjs.js.map +1 -1
- package/dist/nile-icon-button/index.cjs.js +1 -1
- package/dist/nile-icon-button/index.esm.js +1 -1
- package/dist/nile-icon-button/nile-icon-button.cjs.js +1 -1
- package/dist/nile-icon-button/nile-icon-button.cjs.js.map +1 -1
- package/dist/nile-icon-button/nile-icon-button.css.cjs.js +1 -1
- package/dist/nile-icon-button/nile-icon-button.css.cjs.js.map +1 -1
- package/dist/nile-icon-button/nile-icon-button.css.esm.js +1 -1
- package/dist/nile-icon-button/nile-icon-button.esm.js +2 -2
- package/dist/nile-input/index.cjs.js +1 -1
- package/dist/nile-input/index.esm.js +1 -1
- package/dist/nile-input/nile-input.cjs.js +1 -1
- package/dist/nile-input/nile-input.cjs.js.map +1 -1
- package/dist/nile-input/nile-input.css.cjs.js +1 -1
- package/dist/nile-input/nile-input.css.cjs.js.map +1 -1
- package/dist/nile-input/nile-input.css.esm.js +1 -1
- package/dist/nile-input/nile-input.esm.js +2 -2
- package/dist/nile-loader/index.cjs.js +1 -1
- package/dist/nile-loader/index.esm.js +1 -1
- package/dist/nile-loader/nile-loader.cjs.js +1 -1
- package/dist/nile-loader/nile-loader.cjs.js.map +1 -1
- package/dist/nile-loader/nile-loader.css.cjs.js.map +1 -1
- package/dist/nile-loader/nile-loader.esm.js +2 -2
- package/dist/nile-menu/index.cjs.js +1 -1
- package/dist/nile-menu/index.esm.js +1 -1
- package/dist/nile-menu/nile-menu.cjs.js +1 -1
- package/dist/nile-menu/nile-menu.cjs.js.map +1 -1
- package/dist/nile-menu/nile-menu.css.cjs.js +1 -1
- package/dist/nile-menu/nile-menu.css.cjs.js.map +1 -1
- package/dist/nile-menu/nile-menu.css.esm.js +1 -1
- package/dist/nile-menu/nile-menu.esm.js +2 -2
- package/dist/nile-menu-item/index.cjs.js +1 -1
- package/dist/nile-menu-item/index.esm.js +1 -1
- package/dist/nile-menu-item/nile-menu-item.cjs.js +1 -1
- package/dist/nile-menu-item/nile-menu-item.cjs.js.map +1 -1
- package/dist/nile-menu-item/nile-menu-item.css.cjs.js +1 -1
- package/dist/nile-menu-item/nile-menu-item.css.cjs.js.map +1 -1
- package/dist/nile-menu-item/nile-menu-item.css.esm.js +1 -1
- package/dist/nile-menu-item/nile-menu-item.esm.js +2 -2
- package/dist/nile-option/index.cjs.js +1 -1
- package/dist/nile-option/index.esm.js +1 -1
- package/dist/nile-option/nile-option.cjs.js +1 -1
- package/dist/nile-option/nile-option.cjs.js.map +1 -1
- package/dist/nile-option/nile-option.css.cjs.js +1 -1
- package/dist/nile-option/nile-option.css.cjs.js.map +1 -1
- package/dist/nile-option/nile-option.css.esm.js +1 -1
- package/dist/nile-option/nile-option.esm.js +2 -2
- package/dist/nile-popup/index.cjs.js +1 -1
- package/dist/nile-popup/index.esm.js +1 -1
- package/dist/nile-popup/nile-popup.cjs.js +1 -1
- package/dist/nile-popup/nile-popup.cjs.js.map +1 -1
- package/dist/nile-popup/nile-popup.css.cjs.js +1 -1
- package/dist/nile-popup/nile-popup.css.cjs.js.map +1 -1
- package/dist/nile-popup/nile-popup.css.esm.js +1 -1
- package/dist/nile-popup/nile-popup.esm.js +2 -2
- package/dist/nile-progress-bar/index.cjs.js +1 -1
- package/dist/nile-progress-bar/index.esm.js +1 -1
- package/dist/nile-progress-bar/nile-progress-bar.cjs.js +1 -1
- package/dist/nile-progress-bar/nile-progress-bar.cjs.js.map +1 -1
- package/dist/nile-progress-bar/nile-progress-bar.css.cjs.js.map +1 -1
- package/dist/nile-progress-bar/nile-progress-bar.esm.js +2 -2
- package/dist/nile-radio/index.cjs.js +1 -1
- package/dist/nile-radio/index.esm.js +1 -1
- package/dist/nile-radio/nile-radio.cjs.js +1 -1
- package/dist/nile-radio/nile-radio.cjs.js.map +1 -1
- package/dist/nile-radio/nile-radio.css.cjs.js +1 -1
- package/dist/nile-radio/nile-radio.css.cjs.js.map +1 -1
- package/dist/nile-radio/nile-radio.css.esm.js +1 -1
- package/dist/nile-radio/nile-radio.esm.js +2 -2
- package/dist/nile-radio-group/index.cjs.js +1 -1
- package/dist/nile-radio-group/index.esm.js +1 -1
- package/dist/nile-radio-group/nile-radio-group.cjs.js +1 -1
- package/dist/nile-radio-group/nile-radio-group.cjs.js.map +1 -1
- package/dist/nile-radio-group/nile-radio-group.css.cjs.js.map +1 -1
- package/dist/nile-radio-group/nile-radio-group.esm.js +1 -1
- package/dist/nile-select/index.cjs.js +1 -1
- package/dist/nile-select/index.esm.js +1 -1
- package/dist/nile-select/nile-select.cjs.js +1 -1
- package/dist/nile-select/nile-select.cjs.js.map +1 -1
- package/dist/nile-select/nile-select.css.cjs.js +1 -1
- package/dist/nile-select/nile-select.css.cjs.js.map +1 -1
- package/dist/nile-select/nile-select.css.esm.js +1 -1
- package/dist/nile-select/nile-select.esm.js +2 -2
- package/dist/nile-sidebar/index.cjs.js.map +1 -1
- package/dist/nile-slide-toggle/index.cjs.js +1 -1
- package/dist/nile-slide-toggle/index.esm.js +1 -1
- package/dist/nile-slide-toggle/nile-slide-toggle.cjs.js +1 -1
- package/dist/nile-slide-toggle/nile-slide-toggle.cjs.js.map +1 -1
- package/dist/nile-slide-toggle/nile-slide-toggle.css.cjs.js.map +1 -1
- package/dist/nile-slide-toggle/nile-slide-toggle.esm.js +2 -2
- package/dist/nile-spinner/index.cjs.js +1 -1
- package/dist/nile-spinner/index.esm.js +1 -1
- package/dist/nile-spinner/nile-spinner.cjs.js +1 -1
- package/dist/nile-spinner/nile-spinner.cjs.js.map +1 -1
- package/dist/nile-spinner/nile-spinner.css.cjs.js +1 -1
- package/dist/nile-spinner/nile-spinner.css.cjs.js.map +1 -1
- package/dist/nile-spinner/nile-spinner.css.esm.js +1 -1
- package/dist/nile-spinner/nile-spinner.esm.js +2 -2
- package/dist/nile-tag/index.cjs.js +1 -1
- package/dist/nile-tag/index.esm.js +1 -1
- package/dist/nile-tag/nile-tag.cjs.js +1 -1
- package/dist/nile-tag/nile-tag.cjs.js.map +1 -1
- package/dist/nile-tag/nile-tag.css.cjs.js +1 -1
- package/dist/nile-tag/nile-tag.css.cjs.js.map +1 -1
- package/dist/nile-tag/nile-tag.css.esm.js +1 -1
- package/dist/nile-tag/nile-tag.esm.js +2 -2
- package/dist/nile-textarea/index.cjs.js +1 -1
- package/dist/nile-textarea/index.esm.js +1 -1
- package/dist/nile-textarea/nile-textarea.cjs.js +1 -1
- package/dist/nile-textarea/nile-textarea.cjs.js.map +1 -1
- package/dist/nile-textarea/nile-textarea.css.cjs.js +1 -1
- package/dist/nile-textarea/nile-textarea.css.cjs.js.map +1 -1
- package/dist/nile-textarea/nile-textarea.css.esm.js +1 -1
- package/dist/nile-textarea/nile-textarea.esm.js +2 -2
- package/dist/nile-toolbar/index.cjs.js +1 -1
- package/dist/nile-toolbar/index.cjs.js.map +1 -1
- package/dist/nile-toolbar/index.esm.js +1 -1
- package/dist/nile-toolbar/nile-toolbar.css.cjs.js +1 -1
- package/dist/nile-toolbar/nile-toolbar.css.cjs.js.map +1 -1
- package/dist/nile-toolbar/nile-toolbar.css.esm.js +1 -1
- package/dist/nile-tooltip/index.cjs.js +1 -1
- package/dist/nile-tooltip/index.esm.js +1 -1
- package/dist/nile-tooltip/nile-tooltip.cjs.js +1 -1
- package/dist/nile-tooltip/nile-tooltip.cjs.js.map +1 -1
- package/dist/nile-tooltip/nile-tooltip.css.cjs.js +1 -1
- package/dist/nile-tooltip/nile-tooltip.css.cjs.js.map +1 -1
- package/dist/nile-tooltip/nile-tooltip.css.esm.js +1 -1
- package/dist/nile-tooltip/nile-tooltip.esm.js +2 -2
- package/dist/{property-bf6307e2.esm.js → property-09139d3c.esm.js} +1 -1
- package/dist/property-0f6a51ec.cjs.js +6 -0
- package/dist/property-0f6a51ec.cjs.js.map +1 -0
- package/dist/src/internal/watch.d.ts +3 -3
- package/dist/src/nile-auto-complete/nile-auto-complete.js.map +1 -1
- package/dist/src/nile-badge/index.js.map +1 -1
- package/dist/src/nile-button/nile-button.js.map +1 -1
- package/dist/src/nile-calendar/nile-calendar.js.map +1 -1
- package/dist/src/nile-checkbox/nile-checkbox.js.map +1 -1
- package/dist/src/nile-chip/nile-chip.js.map +1 -1
- package/dist/src/nile-date-picker/nile-date-picker.js.map +1 -1
- package/dist/src/nile-drawer/index.js.map +1 -1
- package/dist/src/nile-dropdown/nile-dropdown.js.map +1 -1
- package/dist/src/nile-error-message/nile-error-message.js.map +1 -1
- package/dist/src/nile-footer/index.js.map +1 -1
- package/dist/src/nile-form-error-message/nile-form-error-message.js.map +1 -1
- package/dist/src/nile-form-help-text/nile-form-help-text.js.map +1 -1
- package/dist/src/nile-heading/index.js.map +1 -1
- package/dist/src/nile-icon/index.js.map +1 -1
- package/dist/src/nile-icon-button/nile-icon-button.js.map +1 -1
- package/dist/src/nile-input/nile-input.js.map +1 -1
- package/dist/src/nile-loader/nile-loader.js +2 -2
- package/dist/src/nile-loader/nile-loader.js.map +1 -1
- package/dist/src/nile-menu/nile-menu.js.map +1 -1
- package/dist/src/nile-menu-item/nile-menu-item.js.map +1 -1
- package/dist/src/nile-option/nile-option.js.map +1 -1
- package/dist/src/nile-popup/nile-popup.js.map +1 -1
- package/dist/src/nile-progress-bar/nile-progress-bar.js.map +1 -1
- package/dist/src/nile-radio/nile-radio.js.map +1 -1
- package/dist/src/nile-radio-group/nile-radio-group.js.map +1 -1
- package/dist/src/nile-select/nile-select.js.map +1 -1
- package/dist/src/nile-sidebar/index.js.map +1 -1
- package/dist/src/nile-slide-toggle/nile-slide-toggle.js.map +1 -1
- package/dist/src/nile-spinner/nile-spinner.js.map +1 -1
- package/dist/src/nile-tag/nile-tag.js.map +1 -1
- package/dist/src/nile-textarea/nile-textarea.js.map +1 -1
- package/dist/src/nile-toolbar/index.js.map +1 -1
- package/dist/src/nile-tooltip/nile-tooltip.js.map +1 -1
- package/dist/src/watch.d.ts +3 -3
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/utilities/animation-registry.cjs.js.map +1 -1
- package/dist/watch.cjs.js +1 -1
- package/dist/watch.cjs.js.map +1 -1
- package/package.json +1 -1
- package/src/nile-loader/nile-loader.ts +2 -2
- package/dist/index-adad7634.cjs.js +0 -22
- package/dist/index-adad7634.cjs.js.map +0 -1
- package/dist/index-f1b94546.esm.js +0 -35
- package/dist/property-ec52a751.cjs.js +0 -6
- package/dist/property-ec52a751.cjs.js.map +0 -1
@@ -1,2 +1,2 @@
|
|
1
|
-
System.register(["tslib","lit/directives/class-map.js","lit/decorators.js","lit","../internal/nile-element.cjs.js","./nile-popup.css.cjs.js","../index-adad7634.cjs.js"],function(_export,_context){"use strict";var t,e,n,i,o,r,a,s,_templateObject,_templateObject2,_excluded,_excluded2,_excluded3,y,b,v,x,z,k,P,B,_,H,W,I,ot,rt,lt;function _taggedTemplateLiteral(strings,raw){if(!raw){raw=strings.slice(0);}return Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}));}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);Object.defineProperty(Constructor,"prototype",{writable:false});return Constructor;}function _get(){if(typeof Reflect!=="undefined"&&Reflect.get){_get=Reflect.get.bind();}else{_get=function _get(target,property,receiver){var base=_superPropBase(target,property);if(!base)return;var desc=Object.getOwnPropertyDescriptor(base,property);if(desc.get){return desc.get.call(arguments.length<3?target:receiver);}return desc.value;};}return _get.apply(this,arguments);}function _superPropBase(object,property){while(!Object.prototype.hasOwnProperty.call(object,property)){object=_getPrototypeOf(object);if(object===null)break;}return object;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function");}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:true,configurable:true}});Object.defineProperty(subClass,"prototype",{writable:false});if(superClass)_setPrototypeOf(subClass,superClass);}function _setPrototypeOf(o,p){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(o,p){o.__proto__=p;return o;};return _setPrototypeOf(o,p);}function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function _createSuperInternal(){var Super=_getPrototypeOf(Derived),result;if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget);}else{result=Super.apply(this,arguments);}return _possibleConstructorReturn(this,result);};}function _possibleConstructorReturn(self,call){if(call&&(typeof call==="object"||typeof call==="function")){return call;}else if(call!==void 0){throw new TypeError("Derived constructors may only return object or undefined");}return _assertThisInitialized(self);}function _assertThisInitialized(self){if(self===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return self;}function _isNativeReflectConstruct(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true;}catch(e){return false;}}function _getPrototypeOf(o){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o);};return _getPrototypeOf(o);}function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj;}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;},_typeof(obj);}function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function(){return exports;};var exports={},Op=Object.prototype,hasOwn=Op.hasOwnProperty,defineProperty=Object.defineProperty||function(obj,key,desc){obj[key]=desc.value;},$Symbol="function"==typeof Symbol?Symbol:{},iteratorSymbol=$Symbol.iterator||"@@iterator",asyncIteratorSymbol=$Symbol.asyncIterator||"@@asyncIterator",toStringTagSymbol=$Symbol.toStringTag||"@@toStringTag";function define(obj,key,value){return Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}),obj[key];}try{define({},"");}catch(err){define=function(obj,key,value){return obj[key]=value;};}function wrap(innerFn,outerFn,self,tryLocsList){var protoGenerator=outerFn&&outerFn.prototype instanceof Generator?outerFn:Generator,generator=Object.create(protoGenerator.prototype),context=new Context(tryLocsList||[]);return defineProperty(generator,"_invoke",{value:makeInvokeMethod(innerFn,self,context)}),generator;}function tryCatch(fn,obj,arg){try{return{type:"normal",arg:fn.call(obj,arg)};}catch(err){return{type:"throw",arg:err};}}exports.wrap=wrap;var ContinueSentinel={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var IteratorPrototype={};define(IteratorPrototype,iteratorSymbol,function(){return this;});var getProto=Object.getPrototypeOf,NativeIteratorPrototype=getProto&&getProto(getProto(values([])));NativeIteratorPrototype&&NativeIteratorPrototype!==Op&&hasOwn.call(NativeIteratorPrototype,iteratorSymbol)&&(IteratorPrototype=NativeIteratorPrototype);var Gp=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(IteratorPrototype);function defineIteratorMethods(prototype){["next","throw","return"].forEach(function(method){define(prototype,method,function(arg){return this._invoke(method,arg);});});}function AsyncIterator(generator,PromiseImpl){function invoke(method,arg,resolve,reject){var record=tryCatch(generator[method],generator,arg);if("throw"!==record.type){var result=record.arg,value=result.value;return value&&"object"==typeof value&&hasOwn.call(value,"__await")?PromiseImpl.resolve(value.__await).then(function(value){invoke("next",value,resolve,reject);},function(err){invoke("throw",err,resolve,reject);}):PromiseImpl.resolve(value).then(function(unwrapped){result.value=unwrapped,resolve(result);},function(error){return invoke("throw",error,resolve,reject);});}reject(record.arg);}var previousPromise;defineProperty(this,"_invoke",{value:function(method,arg){function callInvokeWithMethodAndArg(){return new PromiseImpl(function(resolve,reject){invoke(method,arg,resolve,reject);});}return previousPromise=previousPromise?previousPromise.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();}});}function makeInvokeMethod(innerFn,self,context){var state="suspendedStart";return function(method,arg){if("executing"===state)throw new Error("Generator is already running");if("completed"===state){if("throw"===method)throw arg;return doneResult();}for(context.method=method,context.arg=arg;;){var delegate=context.delegate;if(delegate){var delegateResult=maybeInvokeDelegate(delegate,context);if(delegateResult){if(delegateResult===ContinueSentinel)continue;return delegateResult;}}if("next"===context.method)context.sent=context._sent=context.arg;else if("throw"===context.method){if("suspendedStart"===state)throw state="completed",context.arg;context.dispatchException(context.arg);}else"return"===context.method&&context.abrupt("return",context.arg);state="executing";var record=tryCatch(innerFn,self,context);if("normal"===record.type){if(state=context.done?"completed":"suspendedYield",record.arg===ContinueSentinel)continue;return{value:record.arg,done:context.done};}"throw"===record.type&&(state="completed",context.method="throw",context.arg=record.arg);}};}function maybeInvokeDelegate(delegate,context){var methodName=context.method,method=delegate.iterator[methodName];if(undefined===method)return context.delegate=null,"throw"===methodName&&delegate.iterator.return&&(context.method="return",context.arg=undefined,maybeInvokeDelegate(delegate,context),"throw"===context.method)||"return"!==methodName&&(context.method="throw",context.arg=new TypeError("The iterator does not provide a '"+methodName+"' method")),ContinueSentinel;var record=tryCatch(method,delegate.iterator,context.arg);if("throw"===record.type)return context.method="throw",context.arg=record.arg,context.delegate=null,ContinueSentinel;var info=record.arg;return info?info.done?(context[delegate.resultName]=info.value,context.next=delegate.nextLoc,"return"!==context.method&&(context.method="next",context.arg=undefined),context.delegate=null,ContinueSentinel):info:(context.method="throw",context.arg=new TypeError("iterator result is not an object"),context.delegate=null,ContinueSentinel);}function pushTryEntry(locs){var entry={tryLoc:locs[0]};1 in locs&&(entry.catchLoc=locs[1]),2 in locs&&(entry.finallyLoc=locs[2],entry.afterLoc=locs[3]),this.tryEntries.push(entry);}function resetTryEntry(entry){var record=entry.completion||{};record.type="normal",delete record.arg,entry.completion=record;}function Context(tryLocsList){this.tryEntries=[{tryLoc:"root"}],tryLocsList.forEach(pushTryEntry,this),this.reset(!0);}function values(iterable){if(iterable){var iteratorMethod=iterable[iteratorSymbol];if(iteratorMethod)return iteratorMethod.call(iterable);if("function"==typeof iterable.next)return iterable;if(!isNaN(iterable.length)){var i=-1,next=function next(){for(;++i<iterable.length;)if(hasOwn.call(iterable,i))return next.value=iterable[i],next.done=!1,next;return next.value=undefined,next.done=!0,next;};return next.next=next;}}return{next:doneResult};}function doneResult(){return{value:undefined,done:!0};}return GeneratorFunction.prototype=GeneratorFunctionPrototype,defineProperty(Gp,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),defineProperty(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,toStringTagSymbol,"GeneratorFunction"),exports.isGeneratorFunction=function(genFun){var ctor="function"==typeof genFun&&genFun.constructor;return!!ctor&&(ctor===GeneratorFunction||"GeneratorFunction"===(ctor.displayName||ctor.name));},exports.mark=function(genFun){return Object.setPrototypeOf?Object.setPrototypeOf(genFun,GeneratorFunctionPrototype):(genFun.__proto__=GeneratorFunctionPrototype,define(genFun,toStringTagSymbol,"GeneratorFunction")),genFun.prototype=Object.create(Gp),genFun;},exports.awrap=function(arg){return{__await:arg};},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,asyncIteratorSymbol,function(){return this;}),exports.AsyncIterator=AsyncIterator,exports.async=function(innerFn,outerFn,self,tryLocsList,PromiseImpl){void 0===PromiseImpl&&(PromiseImpl=Promise);var iter=new AsyncIterator(wrap(innerFn,outerFn,self,tryLocsList),PromiseImpl);return exports.isGeneratorFunction(outerFn)?iter:iter.next().then(function(result){return result.done?result.value:iter.next();});},defineIteratorMethods(Gp),define(Gp,toStringTagSymbol,"Generator"),define(Gp,iteratorSymbol,function(){return this;}),define(Gp,"toString",function(){return"[object Generator]";}),exports.keys=function(val){var object=Object(val),keys=[];for(var key in object)keys.push(key);return keys.reverse(),function next(){for(;keys.length;){var key=keys.pop();if(key in object)return next.value=key,next.done=!1,next;}return next.done=!0,next;};},exports.values=values,Context.prototype={constructor:Context,reset:function(skipTempReset){if(this.prev=0,this.next=0,this.sent=this._sent=undefined,this.done=!1,this.delegate=null,this.method="next",this.arg=undefined,this.tryEntries.forEach(resetTryEntry),!skipTempReset)for(var name in this)"t"===name.charAt(0)&&hasOwn.call(this,name)&&!isNaN(+name.slice(1))&&(this[name]=undefined);},stop:function(){this.done=!0;var rootRecord=this.tryEntries[0].completion;if("throw"===rootRecord.type)throw rootRecord.arg;return this.rval;},dispatchException:function(exception){if(this.done)throw exception;var context=this;function handle(loc,caught){return record.type="throw",record.arg=exception,context.next=loc,caught&&(context.method="next",context.arg=undefined),!!caught;}for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i],record=entry.completion;if("root"===entry.tryLoc)return handle("end");if(entry.tryLoc<=this.prev){var hasCatch=hasOwn.call(entry,"catchLoc"),hasFinally=hasOwn.call(entry,"finallyLoc");if(hasCatch&&hasFinally){if(this.prev<entry.catchLoc)return handle(entry.catchLoc,!0);if(this.prev<entry.finallyLoc)return handle(entry.finallyLoc);}else if(hasCatch){if(this.prev<entry.catchLoc)return handle(entry.catchLoc,!0);}else{if(!hasFinally)throw new Error("try statement without catch or finally");if(this.prev<entry.finallyLoc)return handle(entry.finallyLoc);}}}},abrupt:function(type,arg){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.tryLoc<=this.prev&&hasOwn.call(entry,"finallyLoc")&&this.prev<entry.finallyLoc){var finallyEntry=entry;break;}}finallyEntry&&("break"===type||"continue"===type)&&finallyEntry.tryLoc<=arg&&arg<=finallyEntry.finallyLoc&&(finallyEntry=null);var record=finallyEntry?finallyEntry.completion:{};return record.type=type,record.arg=arg,finallyEntry?(this.method="next",this.next=finallyEntry.finallyLoc,ContinueSentinel):this.complete(record);},complete:function(record,afterLoc){if("throw"===record.type)throw record.arg;return"break"===record.type||"continue"===record.type?this.next=record.arg:"return"===record.type?(this.rval=this.arg=record.arg,this.method="return",this.next="end"):"normal"===record.type&&afterLoc&&(this.next=afterLoc),ContinueSentinel;},finish:function(finallyLoc){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.finallyLoc===finallyLoc)return this.complete(entry.completion,entry.afterLoc),resetTryEntry(entry),ContinueSentinel;}},catch:function(tryLoc){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.tryLoc===tryLoc){var record=entry.completion;if("throw"===record.type){var thrown=record.arg;resetTryEntry(entry);}return thrown;}}throw new Error("illegal catch attempt");},delegateYield:function(iterable,resultName,nextLoc){return this.delegate={iterator:values(iterable),resultName:resultName,nextLoc:nextLoc},"next"===this.method&&(this.arg=undefined),ContinueSentinel;}},exports;}function _toConsumableArray(arr){return _arrayWithoutHoles(arr)||_iterableToArray(arr)||_unsupportedIterableToArray(arr)||_nonIterableSpread();}function _nonIterableSpread(){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 _unsupportedIterableToArray(o,minLen){if(!o)return;if(typeof o==="string")return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor)n=o.constructor.name;if(n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen);}function _iterableToArray(iter){if(typeof Symbol!=="undefined"&&iter[Symbol.iterator]!=null||iter["@@iterator"]!=null)return Array.from(iter);}function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr);}function _arrayLikeToArray(arr,len){if(len==null||len>arr.length)len=arr.length;for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2;}function _objectWithoutProperties(source,excluded){if(source==null)return{};var target=_objectWithoutPropertiesLoose(source,excluded);var key,i;if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i<sourceSymbolKeys.length;i++){key=sourceSymbolKeys[i];if(excluded.indexOf(key)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(source,key))continue;target[key]=source[key];}}return target;}function _objectWithoutPropertiesLoose(source,excluded){if(source==null)return{};var target={};var sourceKeys=Object.keys(source);var key,i;for(i=0;i<sourceKeys.length;i++){key=sourceKeys[i];if(excluded.indexOf(key)>=0)continue;target[key]=source[key];}return target;}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg);var value=info.value;}catch(error){reject(error);return;}if(info.done){resolve(value);}else{Promise.resolve(value).then(_next,_throw);}}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value);}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err);}_next(undefined);});};}function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable;})),keys.push.apply(keys,symbols);}return keys;}function _objectSpread(target){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?ownKeys(Object(source),!0).forEach(function(key){_defineProperty(target,key,source[key]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(target,Object.getOwnPropertyDescriptors(source)):ownKeys(Object(source)).forEach(function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key));});}return target;}function _defineProperty(obj,key,value){key=_toPropertyKey(key);if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true});}else{obj[key]=value;}return obj;}function _toPropertyKey(arg){var key=_toPrimitive(arg,"string");return typeof key==="symbol"?key:String(key);}function _toPrimitive(input,hint){if(_typeof(input)!=="object"||input===null)return input;var prim=input[Symbol.toPrimitive];if(prim!==undefined){var res=prim.call(input,hint||"default");if(_typeof(res)!=="object")return res;throw new TypeError("@@toPrimitive must return a primitive value.");}return(hint==="string"?String:Number)(input);}function l(t){return t.split("-")[1];}function c(t){return"y"===t?"height":"width";}function u(t){return t.split("-")[0];}function f(t){return["top","bottom"].includes(u(t))?"x":"y";}function h(t,e,n){var i=t.reference,o=t.floating;var r=i.x+i.width/2-o.width/2,a=i.y+i.height/2-o.height/2,s=f(e),h=c(s),d=i[h]/2-o[h]/2,p="x"===s;var m;switch(u(e)){case"top":m={x:r,y:i.y-o.height};break;case"bottom":m={x:r,y:i.y+i.height};break;case"right":m={x:i.x+i.width,y:a};break;case"left":m={x:i.x-o.width,y:a};break;default:m={x:i.x,y:i.y};}switch(l(e)){case"start":m[s]-=d*(n&&p?-1:1);break;case"end":m[s]+=d*(n&&p?-1:1);}return m;}function d(t){return"number"!=typeof t?function(t){return _objectSpread({top:0,right:0,bottom:0,left:0},t);}(t):{top:t,right:t,bottom:t,left:t};}function p(t){return _objectSpread(_objectSpread({},t),{},{top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height});}function m(_x,_x2){return _m.apply(this,arguments);}function _m(){_m=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee13(t,e){var n,i,o,r,a,s,l,_e12,_e12$boundary,c,_e12$rootBoundary,u,_e12$elementContext,f,_e12$altBoundary,h,_e12$padding,m,y,b,g,v,w,x,A;return _regeneratorRuntime().wrap(function _callee13$(_context14){while(1)switch(_context14.prev=_context14.next){case 0:void 0===e&&(e={});i=t.x;o=t.y;r=t.platform;a=t.rects;s=t.elements;l=t.strategy;_e12=e;_e12$boundary=_e12.boundary;c=_e12$boundary===void 0?"clippingAncestors":_e12$boundary;_e12$rootBoundary=_e12.rootBoundary;u=_e12$rootBoundary===void 0?"viewport":_e12$rootBoundary;_e12$elementContext=_e12.elementContext;f=_e12$elementContext===void 0?"floating":_e12$elementContext;_e12$altBoundary=_e12.altBoundary;h=_e12$altBoundary===void 0?!1:_e12$altBoundary;_e12$padding=_e12.padding;m=_e12$padding===void 0?0:_e12$padding;y=d(m);b=s[h?"floating"===f?"reference":"floating":f];_context14.t0=p;_context14.t1=r;_context14.next=24;return null==r.isElement?void 0:r.isElement(b);case 24:_context14.t3=n=_context14.sent;_context14.t2=null==_context14.t3;if(_context14.t2){_context14.next=28;break;}_context14.t2=n;case 28:if(!_context14.t2){_context14.next=32;break;}_context14.t4=b;_context14.next=38;break;case 32:_context14.t5=b.contextElement;if(_context14.t5){_context14.next=37;break;}_context14.next=36;return null==r.getDocumentElement?void 0:r.getDocumentElement(s.floating);case 36:_context14.t5=_context14.sent;case 37:_context14.t4=_context14.t5;case 38:_context14.t6=_context14.t4;_context14.t7=c;_context14.t8=u;_context14.t9=l;_context14.t10={element:_context14.t6,boundary:_context14.t7,rootBoundary:_context14.t8,strategy:_context14.t9};_context14.next=45;return _context14.t1.getClippingRect.call(_context14.t1,_context14.t10);case 45:_context14.t11=_context14.sent;g=(0,_context14.t0)(_context14.t11);v="floating"===f?_objectSpread(_objectSpread({},a.floating),{},{x:i,y:o}):a.reference;_context14.next=50;return null==r.getOffsetParent?void 0:r.getOffsetParent(s.floating);case 50:w=_context14.sent;_context14.next=53;return null==r.isElement?void 0:r.isElement(w);case 53:_context14.t13=_context14.sent;if(!_context14.t13){_context14.next=58;break;}_context14.next=57;return null==r.getScale?void 0:r.getScale(w);case 57:_context14.t13=_context14.sent;case 58:_context14.t12=_context14.t13;if(_context14.t12){_context14.next=61;break;}_context14.t12={x:1,y:1};case 61:x=_context14.t12;_context14.t14=p;if(!r.convertOffsetParentRelativeRectToViewportRelativeRect){_context14.next=69;break;}_context14.next=66;return r.convertOffsetParentRelativeRectToViewportRelativeRect({rect:v,offsetParent:w,strategy:l});case 66:_context14.t15=_context14.sent;_context14.next=70;break;case 69:_context14.t15=v;case 70:_context14.t16=_context14.t15;A=(0,_context14.t14)(_context14.t16);return _context14.abrupt("return",{top:(g.top-A.top+y.top)/x.y,bottom:(A.bottom-g.bottom+y.bottom)/x.y,left:(g.left-A.left+y.left)/x.x,right:(A.right-g.right+y.right)/x.x});case 73:case"end":return _context14.stop();}},_callee13);}));return _m.apply(this,arguments);}function g(t,e,n){return b(t,y(e,n));}function w(t){return t.replace(/left|right|bottom|top/g,function(t){return v[t];});}function A(t){return t.replace(/start|end/g,function(t){return x[t];});}function S(t){var e;return(null==(e=t.ownerDocument)?void 0:e.defaultView)||window;}function $(t){return S(t).getComputedStyle(t);}function j(t){return t instanceof S(t).Node;}function R(t){return j(t)?(t.nodeName||"").toLowerCase():"";}function F(){if(B)return B;var t=navigator.userAgentData;return t&&Array.isArray(t.brands)?(B=t.brands.map(function(t){return t.brand+"/"+t.version;}).join(" "),B):navigator.userAgent;}function O(t){return t instanceof S(t).HTMLElement;}function C(t){return t instanceof S(t).Element;}function E(t){if("undefined"==typeof ShadowRoot)return!1;return t instanceof S(t).ShadowRoot||t instanceof ShadowRoot;}function N(t){var _$=$(t),e=_$.overflow,n=_$.overflowX,i=_$.overflowY,o=_$.display;return /auto|scroll|overlay|hidden|clip/.test(e+i+n)&&!["inline","contents"].includes(o);}function D(t){return["table","td","th"].includes(R(t));}function M(t){var e=/firefox/i.test(F()),n=$(t),i=n.backdropFilter||n.WebkitBackdropFilter;return"none"!==n.transform||"none"!==n.perspective||!!i&&"none"!==i||e&&"filter"===n.willChange||e&&!!n.filter&&"none"!==n.filter||["transform","perspective"].some(function(t){return n.willChange.includes(t);})||["paint","layout","strict","content"].some(function(t){var e=n.contain;return null!=e&&e.includes(t);});}function T(){return /^((?!chrome|android).)*safari/i.test(F());}function L(t){return["html","body","#document"].includes(R(t));}function q(t){var e=$(t);var n=parseFloat(e.width),i=parseFloat(e.height);var o=O(t),r=o?t.offsetWidth:n,a=o?t.offsetHeight:i,s=W(n)!==r||W(i)!==a;return s&&(n=r,i=a),{width:n,height:i,fallback:s};}function Y(t){return C(t)?t:t.contextElement;}function V(t){var e=Y(t);if(!O(e))return I;var n=e.getBoundingClientRect(),_q=q(e),i=_q.width,o=_q.height,r=_q.fallback;var a=(r?W(n.width):n.width)/i,s=(r?W(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s};}function X(t,e,n,i){var o,r;void 0===e&&(e=!1),void 0===n&&(n=!1);var a=t.getBoundingClientRect(),s=Y(t);var l=I;e&&(i?C(i)&&(l=V(i)):l=V(t));var c=s?S(s):window,u=T()&&n;var f=(a.left+(u&&(null==(o=c.visualViewport)?void 0:o.offsetLeft)||0))/l.x,h=(a.top+(u&&(null==(r=c.visualViewport)?void 0:r.offsetTop)||0))/l.y,d=a.width/l.x,m=a.height/l.y;if(s){var _t9=S(s),_e4=i&&C(i)?S(i):i;var _n3=_t9.frameElement;for(;_n3&&i&&_e4!==_t9;){var _t10=V(_n3),_e5=_n3.getBoundingClientRect(),_i2=getComputedStyle(_n3);_e5.x+=(_n3.clientLeft+parseFloat(_i2.paddingLeft))*_t10.x,_e5.y+=(_n3.clientTop+parseFloat(_i2.paddingTop))*_t10.y,f*=_t10.x,h*=_t10.y,d*=_t10.x,m*=_t10.y,f+=_e5.x,h+=_e5.y,_n3=S(_n3).frameElement;}}return p({width:d,height:m,x:f,y:h});}function G(t){return((j(t)?t.ownerDocument:t.document)||window.document).documentElement;}function J(t){return C(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset};}function K(t){return X(G(t)).left+J(t).scrollLeft;}function Q(t){if("html"===R(t))return t;var e=t.assignedSlot||t.parentNode||E(t)&&t.host||G(t);return E(e)?e.host:e;}function U(t){var e=Q(t);return L(e)?e.ownerDocument.body:O(e)&&N(e)?e:U(e);}function Z(t,e){var n;void 0===e&&(e=[]);var i=U(t),o=i===(null==(n=t.ownerDocument)?void 0:n.body),r=S(i);return o?e.concat(r,r.visualViewport||[],N(i)?i:[]):e.concat(i,Z(i));}function tt(t,e,n){var i;if("viewport"===e)i=function(t,e){var n=S(t),i=G(t),o=n.visualViewport;var r=i.clientWidth,a=i.clientHeight,s=0,l=0;if(o){r=o.width,a=o.height;var _t11=T();(!_t11||_t11&&"fixed"===e)&&(s=o.offsetLeft,l=o.offsetTop);}return{width:r,height:a,x:s,y:l};}(t,n);else if("document"===e)i=function(t){var e=G(t),n=J(t),i=t.ownerDocument.body,o=H(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),r=H(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);var a=-n.scrollLeft+K(t);var s=-n.scrollTop;return"rtl"===$(i).direction&&(a+=H(e.clientWidth,i.clientWidth)-o),{width:o,height:r,x:a,y:s};}(G(t));else if(C(e))i=function(t,e){var n=X(t,!0,"fixed"===e),i=n.top+t.clientTop,o=n.left+t.clientLeft,r=O(t)?V(t):{x:1,y:1};return{width:t.clientWidth*r.x,height:t.clientHeight*r.y,x:o*r.x,y:i*r.y};}(e,n);else{var _n4=_objectSpread({},e);if(T()){var o,r;var _e6=S(t);_n4.x-=(null==(o=_e6.visualViewport)?void 0:o.offsetLeft)||0,_n4.y-=(null==(r=_e6.visualViewport)?void 0:r.offsetTop)||0;}i=_n4;}return p(i);}function et(t,e){return O(t)&&"fixed"!==$(t).position?e?e(t):t.offsetParent:null;}function nt(t,e){var n=S(t);if(!O(t))return n;var i=et(t,e);for(;i&&D(i)&&"static"===$(i).position;)i=et(i,e);return i&&("html"===R(i)||"body"===R(i)&&"static"===$(i).position&&!M(i))?n:i||function(t){var e=Q(t);for(;O(e)&&!L(e);){if(M(e))return e;e=Q(e);}return null;}(t)||n;}function it(t,e,n){var i=O(e),o=G(e),r=X(t,!0,"fixed"===n,e);var a={scrollLeft:0,scrollTop:0};var s={x:0,y:0};if(i||!i&&"fixed"!==n)if(("body"!==R(e)||N(o))&&(a=J(e)),O(e)){var _t12=X(e,!0);s.x=_t12.x+e.clientLeft,s.y=_t12.y+e.clientTop;}else o&&(s.x=K(o));return{x:r.left+a.scrollLeft-s.x,y:r.top+a.scrollTop-s.y,width:r.width,height:r.height};}function at(t){return function(t){for(var _e8=t;_e8;_e8=st(_e8))if(_e8 instanceof Element&&"none"===getComputedStyle(_e8).display)return null;for(var _e9=st(t);_e9;_e9=st(_e9)){if(!(_e9 instanceof Element))continue;var _t15=getComputedStyle(_e9);if("contents"!==_t15.display){if("static"!==_t15.position||"none"!==_t15.filter)return _e9;if("BODY"===_e9.tagName)return _e9;}}return null;}(t);}function st(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode;}return{setters:[function(_tslib){t=_tslib.__decorate;},function(_litDirectivesClassMapJs){e=_litDirectivesClassMapJs.classMap;},function(_litDecoratorsJs){n=_litDecoratorsJs.query;i=_litDecoratorsJs.property;o=_litDecoratorsJs.customElement;},function(_lit){r=_lit.html;},function(_internalNileElementCjsJs){a=_internalNileElementCjsJs.N;},function(_nilePopupCssCjsJs){s=_nilePopupCssCjsJs.s;},function(_index001CjsJs){}],execute:function(){_excluded=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"];_excluded2=["apply"];_excluded3=["mainAxis","crossAxis","limiter"];y=Math.min;b=Math.max;v={left:"right",right:"left",bottom:"top",top:"bottom"};x={start:"end",end:"start"};z=function z(t){return void 0===t&&(t={}),{name:"flip",options:t,fn:function fn(e){return _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(){var n,i,o,r,a,s,h,_t,_t$mainAxis,d,_t$crossAxis,p,y,_t$fallbackStrategy,b,_t$fallbackAxisSideDi,g,_t$flipAlignment,v,x,z,k,P,S,$,j,R,B,_ref,_t2,_e,F,O,_t3,_e2,_n,C,_t4;return _regeneratorRuntime().wrap(function _callee$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:i=e.placement;o=e.middlewareData;r=e.rects;a=e.initialPlacement;s=e.platform;h=e.elements;_t=t;_t$mainAxis=_t.mainAxis;d=_t$mainAxis===void 0?!0:_t$mainAxis;_t$crossAxis=_t.crossAxis;p=_t$crossAxis===void 0?!0:_t$crossAxis;y=_t.fallbackPlacements;_t$fallbackStrategy=_t.fallbackStrategy;b=_t$fallbackStrategy===void 0?"bestFit":_t$fallbackStrategy;_t$fallbackAxisSideDi=_t.fallbackAxisSideDirection;g=_t$fallbackAxisSideDi===void 0?"none":_t$fallbackAxisSideDi;_t$flipAlignment=_t.flipAlignment;v=_t$flipAlignment===void 0?!0:_t$flipAlignment;x=_objectWithoutProperties(_t,_excluded);z=u(i);k=u(a)===a;_context2.next=23;return null==s.isRTL?void 0:s.isRTL(h.floating);case 23:P=_context2.sent;S=y||(k||!v?[w(a)]:function(t){var e=w(t);return[A(t),e,A(e)];}(a));y||"none"===g||S.push.apply(S,_toConsumableArray(function(t,e,n,i){var o=l(t);var r=function(t,e,n){var i=["left","right"],o=["right","left"],r=["top","bottom"],a=["bottom","top"];switch(t){case"top":case"bottom":return n?e?o:i:e?i:o;case"left":case"right":return e?r:a;default:return[];}}(u(t),"start"===n,i);return o&&(r=r.map(function(t){return t+"-"+o;}),e&&(r=r.concat(r.map(A)))),r;}(a,v,g,P)));$=[a].concat(_toConsumableArray(S));_context2.next=29;return m(e,x);case 29:j=_context2.sent;R=[];B=(null==(n=o.flip)?void 0:n.overflows)||[];if(d&&R.push(j[z]),p){_ref=function(t,e,n){void 0===n&&(n=!1);var i=l(t),o=f(t),r=c(o);var a="x"===o?i===(n?"end":"start")?"right":"left":"start"===i?"bottom":"top";return e.reference[r]>e.floating[r]&&(a=w(a)),{main:a,cross:w(a)};}(i,r,P),_t2=_ref.main,_e=_ref.cross;R.push(j[_t2],j[_e]);}if(!(B=[].concat(_toConsumableArray(B),[{placement:i,overflows:R}]),!R.every(function(t){return t<=0;}))){_context2.next=48;break;}_t3=((null==(F=o.flip)?void 0:F.index)||0)+1,_e2=$[_t3];if(!_e2){_context2.next=37;break;}return _context2.abrupt("return",{data:{index:_t3,overflows:B},reset:{placement:_e2}});case 37:_n=null==(O=B.filter(function(t){return t.overflows[0]<=0;}).sort(function(t,e){return t.overflows[1]-e.overflows[1];})[0])?void 0:O.placement;if(_n){_context2.next=46;break;}_context2.t0=b;_context2.next=_context2.t0==="bestFit"?42:_context2.t0==="initialPlacement"?45:46;break;case 42:_t4=null==(C=B.map(function(t){return[t.placement,t.overflows.filter(function(t){return t>0;}).reduce(function(t,e){return t+e;},0)];}).sort(function(t,e){return t[1]-e[1];})[0])?void 0:C[0];_t4&&(_n=_t4);return _context2.abrupt("break",46);case 45:_n=a;case 46:if(!(i!==_n)){_context2.next=48;break;}return _context2.abrupt("return",{reset:{placement:_n}});case 48:return _context2.abrupt("return",{});case 49:case"end":return _context2.stop();}},_callee);}))();}};};k=function k(t){return void 0===t&&(t=0),{name:"offset",options:t,fn:function fn(e){return _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(){var n,i,o;return _regeneratorRuntime().wrap(function _callee3$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:n=e.x;i=e.y;_context4.next=4;return function(){var _ref2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(t,e){var n,i,o,r,a,s,c,h,d,p,_ref3,m,y,b;return _regeneratorRuntime().wrap(function _callee2$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:n=t.placement;i=t.platform;o=t.elements;_context3.next=5;return null==i.isRTL?void 0:i.isRTL(o.floating);case 5:r=_context3.sent;a=u(n);s=l(n);c="x"===f(n);h=["left","top"].includes(a)?-1:1;d=r&&c?-1:1;p="function"==typeof e?e(t):e;_ref3="number"==typeof p?{mainAxis:p,crossAxis:0,alignmentAxis:null}:_objectSpread({mainAxis:0,crossAxis:0,alignmentAxis:null},p),m=_ref3.mainAxis,y=_ref3.crossAxis,b=_ref3.alignmentAxis;return _context3.abrupt("return",(s&&"number"==typeof b&&(y="end"===s?-1*b:b),c?{x:y*d,y:m*h}:{x:m*h,y:y*d}));case 14:case"end":return _context3.stop();}},_callee2);}));return function(_x3,_x4){return _ref2.apply(this,arguments);};}()(e,t);case 4:o=_context4.sent;return _context4.abrupt("return",{x:n+o.x,y:i+o.y,data:o});case 6:case"end":return _context4.stop();}},_callee3);}))();}};};P=function P(t){return void 0===t&&(t={}),{name:"size",options:t,fn:function fn(e){return _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(){var n,i,o,r,_t5,_t5$apply,a,s,c,h,d,p,_i$floating,g,v,w,x,A,z,k,P,S,_t6,_t7,_t8,_e3,_n2,_i,$;return _regeneratorRuntime().wrap(function _callee4$(_context5){while(1)switch(_context5.prev=_context5.next){case 0:n=e.placement;i=e.rects;o=e.platform;r=e.elements;_t5=t;_t5$apply=_t5.apply;a=_t5$apply===void 0?function(){}:_t5$apply;s=_objectWithoutProperties(_t5,_excluded2);_context5.next=10;return m(e,s);case 10:c=_context5.sent;h=u(n);d=l(n);p="x"===f(n);_i$floating=i.floating;g=_i$floating.width;v=_i$floating.height;if(!("top"===h||"bottom"===h)){_context5.next=36;break;}w=h;_context5.t0=d;_context5.next=22;return null==o.isRTL?void 0:o.isRTL(r.floating);case 22:if(!_context5.sent){_context5.next=26;break;}_context5.t1="start";_context5.next=27;break;case 26:_context5.t1="end";case 27:_context5.t2=_context5.t1;if(!(_context5.t0===_context5.t2)){_context5.next=32;break;}_context5.t3="left";_context5.next=33;break;case 32:_context5.t3="right";case 33:x=_context5.t3;_context5.next=37;break;case 36:x=h,w="end"===d?"top":"bottom";case 37:A=v-c[w],z=g-c[x],k=!e.middlewareData.shift;P=A,S=z;if(p){_t6=g-c.left-c.right;S=d||k?y(z,_t6):_t6;}else{_t7=v-c.top-c.bottom;P=d||k?y(A,_t7):_t7;}if(k&&!d){_t8=b(c.left,0),_e3=b(c.right,0),_n2=b(c.top,0),_i=b(c.bottom,0);p?S=g-2*(0!==_t8||0!==_e3?_t8+_e3:b(c.left,c.right)):P=v-2*(0!==_n2||0!==_i?_n2+_i:b(c.top,c.bottom));}_context5.next=43;return a(_objectSpread(_objectSpread({},e),{},{availableWidth:S,availableHeight:P}));case 43:_context5.next=45;return o.getDimensions(r.floating);case 45:$=_context5.sent;return _context5.abrupt("return",g!==$.width||v!==$.height?{reset:{rects:!0}}:{});case 47:case"end":return _context5.stop();}},_callee4);}))();}};};_=Math.min;H=Math.max;W=Math.round;I={x:1,y:1};ot={getClippingRect:function getClippingRect(t){var e=t.element,n=t.boundary,i=t.rootBoundary,o=t.strategy;var r=[].concat(_toConsumableArray("clippingAncestors"===n?function(t,e){var n=e.get(t);if(n)return n;var i=Z(t).filter(function(t){return C(t)&&"body"!==R(t);}),o=null;var r="fixed"===$(t).position;var a=r?Q(t):t;for(;C(a)&&!L(a);){var _t13=$(a),_e7=M(a);"fixed"===_t13.position&&(o=null),(r?_e7||o:_e7||"static"!==_t13.position||!o||!["absolute","fixed"].includes(o.position))?o=_t13:i=i.filter(function(t){return t!==a;}),a=Q(a);}return e.set(t,i),i;}(e,this._c):[].concat(n)),[i]),a=r[0],s=r.reduce(function(t,n){var i=tt(e,n,o);return t.top=H(i.top,t.top),t.right=_(i.right,t.right),t.bottom=_(i.bottom,t.bottom),t.left=H(i.left,t.left),t;},tt(e,a,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top};},convertOffsetParentRelativeRectToViewportRelativeRect:function convertOffsetParentRelativeRectToViewportRelativeRect(t){var e=t.rect,n=t.offsetParent,i=t.strategy;var o=O(n),r=G(n);if(n===r)return e;var a={scrollLeft:0,scrollTop:0},s={x:1,y:1};var l={x:0,y:0};if((o||!o&&"fixed"!==i)&&(("body"!==R(n)||N(r))&&(a=J(n)),O(n))){var _t14=X(n);s=V(n),l.x=_t14.x+n.clientLeft,l.y=_t14.y+n.clientTop;}return{width:e.width*s.x,height:e.height*s.y,x:e.x*s.x-a.scrollLeft*s.x+l.x,y:e.y*s.y-a.scrollTop*s.y+l.y};},isElement:C,getDimensions:function getDimensions(t){return q(t);},getOffsetParent:nt,getDocumentElement:G,getScale:V,getElementRects:function getElementRects(t){var _this=this;return _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(){var e,n,i,o,r;return _regeneratorRuntime().wrap(function _callee5$(_context6){while(1)switch(_context6.prev=_context6.next){case 0:e=t.reference,n=t.floating,i=t.strategy;o=_this.getOffsetParent||nt,r=_this.getDimensions;_context6.t0=it;_context6.t1=e;_context6.next=6;return o(n);case 6:_context6.t2=_context6.sent;_context6.t3=i;_context6.t4=(0,_context6.t0)(_context6.t1,_context6.t2,_context6.t3);_context6.t5=_objectSpread;_context6.t6={x:0,y:0};_context6.next=13;return r(n);case 13:_context6.t7=_context6.sent;_context6.t8=(0,_context6.t5)(_context6.t6,_context6.t7);return _context6.abrupt("return",{reference:_context6.t4,floating:_context6.t8});case 16:case"end":return _context6.stop();}},_callee5);}))();},getClientRects:function getClientRects(t){return Array.from(t.getClientRects());},isRTL:function isRTL(t){return"rtl"===$(t).direction;}};rt=function rt(t,e,n){var i=new Map(),o=_objectSpread({platform:ot},n),r=_objectSpread(_objectSpread({},o.platform),{},{_c:i});return function(){var _ref4=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(t,e,n){var _n$placement,i,_n$strategy,o,_n$middleware,r,a,s,l,c,_h,u,f,d,p,m,_n5,_h2,_s$_n,_r,_y,_yield$y,_b,_g,_v,w;return _regeneratorRuntime().wrap(function _callee6$(_context7){while(1)switch(_context7.prev=_context7.next){case 0:_n$placement=n.placement;i=_n$placement===void 0?"bottom":_n$placement;_n$strategy=n.strategy;o=_n$strategy===void 0?"absolute":_n$strategy;_n$middleware=n.middleware;r=_n$middleware===void 0?[]:_n$middleware;a=n.platform;s=r.filter(Boolean);_context7.next=10;return null==a.isRTL?void 0:a.isRTL(e);case 10:l=_context7.sent;_context7.next=13;return a.getElementRects({reference:t,floating:e,strategy:o});case 13:c=_context7.sent;_h=h(c,i,l);u=_h.x;f=_h.y;d=i;p={};m=0;_n5=0;case 21:if(!(_n5<s.length)){_context7.next=56;break;}_s$_n=s[_n5];_r=_s$_n.name;_y=_s$_n.fn;_context7.next=27;return _y({x:u,y:f,initialPlacement:i,placement:d,strategy:o,middlewareData:p,rects:c,platform:a,elements:{reference:t,floating:e}});case 27:_yield$y=_context7.sent;_b=_yield$y.x;_g=_yield$y.y;_v=_yield$y.data;w=_yield$y.reset;u=null!=_b?_b:u;f=null!=_g?_g:f;p=_objectSpread(_objectSpread({},p),{},_defineProperty({},_r,_objectSpread(_objectSpread({},p[_r]),_v)));_context7.t0=w&&m<=50;if(!_context7.t0){_context7.next=53;break;}m++;_context7.t1="object"==_typeof(w);if(!_context7.t1){_context7.next=52;break;}w.placement&&(d=w.placement);_context7.t2=w.rects;if(!_context7.t2){_context7.next=51;break;}if(!(!0===w.rects)){_context7.next=49;break;}_context7.next=46;return a.getElementRects({reference:t,floating:e,strategy:o});case 46:_context7.t3=_context7.sent;_context7.next=50;break;case 49:_context7.t3=w.rects;case 50:c=_context7.t3;case 51:_h2=h(c,d,l),u=_h2.x,f=_h2.y;case 52:_n5=-1;case 53:_n5++;_context7.next=21;break;case 56:return _context7.abrupt("return",{x:u,y:f,placement:d,strategy:o,middlewareData:p});case 57:case"end":return _context7.stop();}},_callee6);}));return function(_x5,_x6,_x7){return _ref4.apply(this,arguments);};}()(t,e,_objectSpread(_objectSpread({},o),{},{platform:r}));};lt=/*#__PURE__*/function(_a){_inherits(lt,_a);var _super=_createSuper(lt);function lt(){var _this2;_classCallCheck(this,lt);_this2=_super.apply(this,arguments),_this2.active=!1,_this2.placement="top",_this2.strategy="absolute",_this2.distance=0,_this2.skidding=0,_this2.arrow=!1,_this2.arrowPlacement="anchor",_this2.arrowPadding=10,_this2.flip=!1,_this2.flipFallbackPlacements="",_this2.flipFallbackStrategy="best-fit",_this2.flipPadding=0,_this2.shift=!1,_this2.shiftPadding=0,_this2.autoSizePadding=0;return _this2;}_createClass(lt,[{key:"connectedCallback",value:function(){var _connectedCallback=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7(){return _regeneratorRuntime().wrap(function _callee7$(_context8){while(1)switch(_context8.prev=_context8.next){case 0:_get(_getPrototypeOf(lt.prototype),"connectedCallback",this).call(this);_context8.next=3;return this.updateComplete;case 3:this.start();case 4:case"end":return _context8.stop();}},_callee7,this);}));function connectedCallback(){return _connectedCallback.apply(this,arguments);}return connectedCallback;}()},{key:"disconnectedCallback",value:function disconnectedCallback(){this.stop();}},{key:"updated",value:function(){var _updated=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee8(t){return _regeneratorRuntime().wrap(function _callee8$(_context9){while(1)switch(_context9.prev=_context9.next){case 0:_get(_getPrototypeOf(lt.prototype),"updated",this).call(this,t);t.has("active")&&(this.active?this.start():this.stop());t.has("anchor")&&this.handleAnchorChange();_context9.t0=this.active;if(!_context9.t0){_context9.next=8;break;}_context9.next=7;return this.updateComplete;case 7:this.reposition();case 8:case"end":return _context9.stop();}},_callee8,this);}));function updated(_x8){return _updated.apply(this,arguments);}return updated;}()},{key:"handleAnchorChange",value:function(){var _handleAnchorChange=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee9(){var _t16;return _regeneratorRuntime().wrap(function _callee9$(_context10){while(1)switch(_context10.prev=_context10.next){case 0:_context10.next=2;return this.stop();case 2:if(!(this.anchor&&"string"==typeof this.anchor)){_context10.next=7;break;}_t16=this.getRootNode();this.anchorEl=_t16.getElementById(this.anchor);_context10.next=8;break;case 7:this.anchor instanceof Element?this.anchorEl=this.anchor:this.anchorEl=this.querySelector('[slot="anchor"]');case 8:if(!(this.anchorEl instanceof HTMLSlotElement&&(this.anchorEl=this.anchorEl.assignedElements({flatten:!0})[0]),!this.anchorEl)){_context10.next=10;break;}throw new Error("Invalid anchor element: no anchor could be found using the anchor slot or the anchor attribute.");case 10:this.start();case 11:case"end":return _context10.stop();}},_callee9,this);}));function handleAnchorChange(){return _handleAnchorChange.apply(this,arguments);}return handleAnchorChange;}()},{key:"start",value:function start(){var _this3=this;this.anchorEl&&(this.cleanup=function(t,e,n,i){void 0===i&&(i={});var _i3=i,_i3$ancestorScroll=_i3.ancestorScroll,o=_i3$ancestorScroll===void 0?!0:_i3$ancestorScroll,_i3$ancestorResize=_i3.ancestorResize,r=_i3$ancestorResize===void 0?!0:_i3$ancestorResize,_i3$elementResize=_i3.elementResize,a=_i3$elementResize===void 0?!0:_i3$elementResize,_i3$animationFrame=_i3.animationFrame,s=_i3$animationFrame===void 0?!1:_i3$animationFrame,l=o&&!s,c=l||r?[].concat(_toConsumableArray(C(t)?Z(t):t.contextElement?Z(t.contextElement):[]),_toConsumableArray(Z(e))):[];c.forEach(function(t){l&&t.addEventListener("scroll",n,{passive:!0}),r&&t.addEventListener("resize",n);});var u,f=null;a&&(f=new ResizeObserver(function(){n();}),C(t)&&!s&&f.observe(t),C(t)||!t.contextElement||s||f.observe(t.contextElement),f.observe(e));var h=s?X(t):null;return s&&function e(){var i=X(t);!h||i.x===h.x&&i.y===h.y&&i.width===h.width&&i.height===h.height||n(),h=i,u=requestAnimationFrame(e);}(),n(),function(){var t;c.forEach(function(t){l&&t.removeEventListener("scroll",n),r&&t.removeEventListener("resize",n);}),null==(t=f)||t.disconnect(),f=null,s&&cancelAnimationFrame(u);};}(this.anchorEl,this.popup,function(){_this3.reposition();}));}},{key:"stop",value:function(){var _stop=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee10(){var _this4=this;return _regeneratorRuntime().wrap(function _callee10$(_context11){while(1)switch(_context11.prev=_context11.next){case 0:return _context11.abrupt("return",new Promise(function(t){_this4.cleanup?(_this4.cleanup(),_this4.cleanup=void 0,_this4.removeAttribute("data-current-placement"),_this4.style.removeProperty("--auto-size-available-width"),_this4.style.removeProperty("--auto-size-available-height"),requestAnimationFrame(function(){return t();})):t();}));case 1:case"end":return _context11.stop();}},_callee10);}));function stop(){return _stop.apply(this,arguments);}return stop;}()},{key:"reposition",value:function reposition(){var _this5=this;if(!this.active||!this.anchorEl)return;var t=[k({mainAxis:this.distance,crossAxis:this.skidding})];var e;this.sync?t.push(P({apply:function apply(_ref5){var t=_ref5.rects;var e="width"===_this5.sync||"both"===_this5.sync,n="height"===_this5.sync||"both"===_this5.sync;_this5.popup.style.width=e?"".concat(t.reference.width,"px"):"",_this5.popup.style.height=n?"".concat(t.reference.height,"px"):"";}})):(this.popup.style.width="",this.popup.style.height=""),this.flip&&t.push(z({boundary:this.flipBoundary,fallbackPlacements:this.flipFallbackPlacements,fallbackStrategy:"best-fit"===this.flipFallbackStrategy?"bestFit":"initialPlacement",padding:this.flipPadding})),this.shift&&t.push((void 0===(e={boundary:this.shiftBoundary,padding:this.shiftPadding})&&(e={}),{name:"shift",options:e,fn:function fn(t){return _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee11(){var _objectSpread3;var n,i,o,_e10,_e10$mainAxis,r,_e10$crossAxis,a,_e10$limiter,s,l,c,h,d,p,y,b,_t17,_t18,v;return _regeneratorRuntime().wrap(function _callee11$(_context12){while(1)switch(_context12.prev=_context12.next){case 0:n=t.x;i=t.y;o=t.placement;_e10=e;_e10$mainAxis=_e10.mainAxis;r=_e10$mainAxis===void 0?!0:_e10$mainAxis;_e10$crossAxis=_e10.crossAxis;a=_e10$crossAxis===void 0?!1:_e10$crossAxis;_e10$limiter=_e10.limiter;s=_e10$limiter===void 0?{fn:function fn(t){var e=t.x,n=t.y;return{x:e,y:n};}}:_e10$limiter;l=_objectWithoutProperties(_e10,_excluded3);c={x:n,y:i};_context12.next=14;return m(t,l);case 14:h=_context12.sent;d=f(u(o));p="x"===d?"y":"x";y=c[d],b=c[p];if(r){_t17="y"===d?"bottom":"right";y=g(y+h["y"===d?"top":"left"],y,y-h[_t17]);}if(a){_t18="y"===p?"bottom":"right";b=g(b+h["y"===p?"top":"left"],b,b-h[_t18]);}v=s.fn(_objectSpread(_objectSpread({},t),{},(_objectSpread3={},_defineProperty(_objectSpread3,d,y),_defineProperty(_objectSpread3,p,b),_objectSpread3)));return _context12.abrupt("return",_objectSpread(_objectSpread({},v),{},{data:{x:v.x-n,y:v.y-i}}));case 22:case"end":return _context12.stop();}},_callee11);}))();}})),this.autoSize?t.push(P({boundary:this.autoSizeBoundary,padding:this.autoSizePadding,apply:function apply(_ref6){var t=_ref6.availableWidth,e=_ref6.availableHeight;"vertical"===_this5.autoSize||"both"===_this5.autoSize?_this5.style.setProperty("--auto-size-available-height","".concat(e,"px")):_this5.style.removeProperty("--auto-size-available-height"),"horizontal"===_this5.autoSize||"both"===_this5.autoSize?_this5.style.setProperty("--auto-size-available-width","".concat(t,"px")):_this5.style.removeProperty("--auto-size-available-width");}})):(this.style.removeProperty("--auto-size-available-width"),this.style.removeProperty("--auto-size-available-height")),this.arrow&&t.push(function(t){return{name:"arrow",options:t,fn:function fn(e){return _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee12(){var _data,_ref8;var _ref7,n,_ref7$padding,i,o,r,a,s,u,h,p,m,y,b,v,w,x,A,z,k,P,S,$,j,R,B,F,O,C;return _regeneratorRuntime().wrap(function _callee12$(_context13){while(1)switch(_context13.prev=_context13.next){case 0:_ref7=t||{},n=_ref7.element,_ref7$padding=_ref7.padding,i=_ref7$padding===void 0?0:_ref7$padding,o=e.x,r=e.y,a=e.placement,s=e.rects,u=e.platform,h=e.elements;if(!(null==n)){_context13.next=3;break;}return _context13.abrupt("return",{});case 3:p=d(i);m={x:o,y:r};y=f(a);b=c(y);_context13.next=9;return u.getDimensions(n);case 9:v=_context13.sent;w="y"===y;x=w?"top":"left";A=w?"bottom":"right";z=w?"clientHeight":"clientWidth";k=s.reference[b]+s.reference[y]-m[y]-s.floating[b];P=m[y]-s.reference[y];_context13.next=18;return null==u.getOffsetParent?void 0:u.getOffsetParent(n);case 18:S=_context13.sent;$=S?S[z]:0;_context13.t0=$;if(!_context13.t0){_context13.next=25;break;}_context13.next=24;return null==u.isElement?void 0:u.isElement(S);case 24:_context13.t0=_context13.sent;case 25:_context13.t1=_context13.t0;if(_context13.t1){_context13.next=28;break;}$=h.floating[z]||s.floating[b];case 28:j=k/2-P/2,R=p[x],B=$-v[b]-p[A],F=$/2-v[b]/2+j,O=g(R,F,B),C=null!=l(a)&&F!=O&&s.reference[b]/2-(F<R?p[x]:p[A])-v[b]/2<0;return _context13.abrupt("return",(_ref8={},_defineProperty(_ref8,y,m[y]-(C?F<R?R-F:B-F:0)),_defineProperty(_ref8,"data",(_data={},_defineProperty(_data,y,O),_defineProperty(_data,"centerOffset",F-O),_data)),_ref8));case 30:case"end":return _context13.stop();}},_callee12);}))();}};}({element:this.arrowEl,padding:this.arrowPadding}));var n="absolute"===this.strategy?function(t){return ot.getOffsetParent(t,at);}:ot.getOffsetParent;rt(this.anchorEl,this.popup,{placement:this.placement,middleware:t,strategy:this.strategy,platform:_objectSpread(_objectSpread({},ot),{},{getOffsetParent:n})}).then(function(_ref9){var t=_ref9.x,e=_ref9.y,n=_ref9.middlewareData,i=_ref9.placement;var o="rtl"===getComputedStyle(_this5).direction,r={top:"bottom",right:"left",bottom:"top",left:"right"}[i.split("-")[0]];if(_this5.setAttribute("data-current-placement",i),Object.assign(_this5.popup.style,{left:"".concat(t,"px"),top:"".concat(e,"px")}),_this5.arrow){var _t19=n.arrow.x,_e11=n.arrow.y;var _i4="",_a2="",_s="",_l="";if("start"===_this5.arrowPlacement){var _n6="number"==typeof _t19?"calc(".concat(_this5.arrowPadding,"px - var(--arrow-padding-offset))"):"";_i4="number"==typeof _e11?"calc(".concat(_this5.arrowPadding,"px - var(--arrow-padding-offset))"):"",_a2=o?_n6:"",_l=o?"":_n6;}else if("end"===_this5.arrowPlacement){var _n7="number"==typeof _t19?"calc(".concat(_this5.arrowPadding,"px - var(--arrow-padding-offset))"):"";_a2=o?"":_n7,_l=o?_n7:"",_s="number"==typeof _e11?"calc(".concat(_this5.arrowPadding,"px - var(--arrow-padding-offset))"):"";}else"center"===_this5.arrowPlacement?(_l="number"==typeof _t19?"calc(50% - var(--arrow-size-diagonal))":"",_i4="number"==typeof _e11?"calc(50% - var(--arrow-size-diagonal))":""):(_l="number"==typeof _t19?"".concat(_t19,"px"):"",_i4="number"==typeof _e11?"".concat(_e11,"px"):"");Object.assign(_this5.arrowEl.style,_defineProperty({top:_i4,right:_a2,bottom:_s,left:_l},r,"calc(var(--arrow-size-diagonal) * -1)"));}}),this.emit("reposition");}},{key:"render",value:function render(){return r(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n <slot name=\"anchor\" @slotchange=","></slot>\n\n <div\n part=\"popup\"\n class=","\n >\n <slot></slot>\n ","\n </div>\n "])),this.handleAnchorChange,e({popup:!0,"popup--active":this.active,"popup--fixed":"fixed"===this.strategy,"popup--has-arrow":this.arrow}),this.arrow?r(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["<div part=\"arrow\" class=\"popup__arrow\" role=\"presentation\"></div>"]))):"");}}]);return lt;}(a);lt.styles=s,t([n(".popup")],lt.prototype,"popup",void 0),t([n(".popup__arrow")],lt.prototype,"arrowEl",void 0),t([i()],lt.prototype,"anchor",void 0),t([i({type:Boolean,reflect:!0})],lt.prototype,"active",void 0),t([i({reflect:!0})],lt.prototype,"placement",void 0),t([i({reflect:!0})],lt.prototype,"strategy",void 0),t([i({type:Number})],lt.prototype,"distance",void 0),t([i({type:Number})],lt.prototype,"skidding",void 0),t([i({type:Boolean})],lt.prototype,"arrow",void 0),t([i({attribute:"arrow-placement"})],lt.prototype,"arrowPlacement",void 0),t([i({attribute:"arrow-padding",type:Number})],lt.prototype,"arrowPadding",void 0),t([i({type:Boolean})],lt.prototype,"flip",void 0),t([i({attribute:"flip-fallback-placements",converter:{fromAttribute:function fromAttribute(t){return t.split(" ").map(function(t){return t.trim();}).filter(function(t){return""!==t;});},toAttribute:function toAttribute(t){return t.join(" ");}}})],lt.prototype,"flipFallbackPlacements",void 0),t([i({attribute:"flip-fallback-strategy"})],lt.prototype,"flipFallbackStrategy",void 0),t([i({type:Object})],lt.prototype,"flipBoundary",void 0),t([i({attribute:"flip-padding",type:Number})],lt.prototype,"flipPadding",void 0),t([i({type:Boolean})],lt.prototype,"shift",void 0),t([i({type:Object})],lt.prototype,"shiftBoundary",void 0),t([i({attribute:"shift-padding",type:Number})],lt.prototype,"shiftPadding",void 0),t([i({attribute:"auto-size"})],lt.prototype,"autoSize",void 0),t([i()],lt.prototype,"sync",void 0),t([i({type:Object})],lt.prototype,"autoSizeBoundary",void 0),t([i({attribute:"auto-size-padding",type:Number})],lt.prototype,"autoSizePadding",void 0),lt=t([o("nile-popup")],lt);}};});
|
1
|
+
System.register(["tslib","lit/directives/class-map.js","lit/decorators.js","lit","../internal/nile-element.cjs.js","./nile-popup.css.cjs.js","../index-cd83c5c8.cjs.js"],function(_export,_context){"use strict";var t,e,n,i,o,r,a,s,_templateObject,_templateObject2,_excluded,_excluded2,_excluded3,l,c,u,f,h,d,p,F,R,j,U,st,ct,ht;function _taggedTemplateLiteral(strings,raw){if(!raw){raw=strings.slice(0);}return Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}));}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);Object.defineProperty(Constructor,"prototype",{writable:false});return Constructor;}function _get(){if(typeof Reflect!=="undefined"&&Reflect.get){_get=Reflect.get.bind();}else{_get=function _get(target,property,receiver){var base=_superPropBase(target,property);if(!base)return;var desc=Object.getOwnPropertyDescriptor(base,property);if(desc.get){return desc.get.call(arguments.length<3?target:receiver);}return desc.value;};}return _get.apply(this,arguments);}function _superPropBase(object,property){while(!Object.prototype.hasOwnProperty.call(object,property)){object=_getPrototypeOf(object);if(object===null)break;}return object;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function");}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:true,configurable:true}});Object.defineProperty(subClass,"prototype",{writable:false});if(superClass)_setPrototypeOf(subClass,superClass);}function _setPrototypeOf(o,p){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(o,p){o.__proto__=p;return o;};return _setPrototypeOf(o,p);}function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function _createSuperInternal(){var Super=_getPrototypeOf(Derived),result;if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget);}else{result=Super.apply(this,arguments);}return _possibleConstructorReturn(this,result);};}function _possibleConstructorReturn(self,call){if(call&&(typeof call==="object"||typeof call==="function")){return call;}else if(call!==void 0){throw new TypeError("Derived constructors may only return object or undefined");}return _assertThisInitialized(self);}function _assertThisInitialized(self){if(self===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return self;}function _isNativeReflectConstruct(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true;}catch(e){return false;}}function _getPrototypeOf(o){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o);};return _getPrototypeOf(o);}function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}function _slicedToArray(arr,i){return _arrayWithHoles(arr)||_iterableToArrayLimit(arr,i)||_unsupportedIterableToArray(arr,i)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles(arr){if(Array.isArray(arr))return arr;}function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function(){return e;};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value;},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e];}try{define({},"");}catch(t){define=function(t,e,r){return t[e]=r;};}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a;}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)};}catch(t){return{type:"throw",arg:t};}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,function(){return this;});var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach(function(e){define(t,e,function(t){return this._invoke(e,t);});});}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==typeof h&&n.call(h,"__await")?e.resolve(h.__await).then(function(t){invoke("next",t,i,a);},function(t){invoke("throw",t,i,a);}):e.resolve(h).then(function(t){u.value=t,i(u);},function(t){return invoke("throw",t,i,a);});}a(c.arg);}var r;o(this,"_invoke",{value:function(t,n){function callInvokeWithMethodAndArg(){return new e(function(e,r){invoke(t,n,e,r);});}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();}});}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw new Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0};}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u;}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg);}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done};}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg);}};}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y);}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e);}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e;}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0);}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o<e.length;)if(n.call(e,o))return next.value=e[o],next.done=!1,next;return next.value=t,next.done=!0,next;};return i.next=i;}}throw new TypeError(typeof e+" is not iterable");}return GeneratorFunction.prototype=GeneratorFunctionPrototype,o(g,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),o(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===GeneratorFunction||"GeneratorFunction"===(e.displayName||e.name));},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t;},e.awrap=function(t){return{__await:t};},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,c,function(){return this;}),e.AsyncIterator=AsyncIterator,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new AsyncIterator(wrap(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next();});},defineIteratorMethods(g),define(g,u,"Generator"),define(g,a,function(){return this;}),define(g,"toString",function(){return"[object Generator]";}),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function next(){for(;r.length;){var t=r.pop();if(t in e)return next.value=t,next.done=!1,next;}return next.done=!0,next;};},e.values=values,Context.prototype={constructor:Context,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t);},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval;},dispatchException:function(e){if(this.done)throw e;var r=this;function handle(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o;}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}else if(c){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break;}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a);},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y;},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y;}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r);}return o;}}throw new Error("illegal catch attempt");},delegateYield:function(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y;}},e;}function _toConsumableArray(arr){return _arrayWithoutHoles(arr)||_iterableToArray(arr)||_unsupportedIterableToArray(arr)||_nonIterableSpread();}function _nonIterableSpread(){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 _unsupportedIterableToArray(o,minLen){if(!o)return;if(typeof o==="string")return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor)n=o.constructor.name;if(n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen);}function _iterableToArray(iter){if(typeof Symbol!=="undefined"&&iter[Symbol.iterator]!=null||iter["@@iterator"]!=null)return Array.from(iter);}function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr);}function _arrayLikeToArray(arr,len){if(len==null||len>arr.length)len=arr.length;for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2;}function _objectWithoutProperties(source,excluded){if(source==null)return{};var target=_objectWithoutPropertiesLoose(source,excluded);var key,i;if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i<sourceSymbolKeys.length;i++){key=sourceSymbolKeys[i];if(excluded.indexOf(key)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(source,key))continue;target[key]=source[key];}}return target;}function _objectWithoutPropertiesLoose(source,excluded){if(source==null)return{};var target={};var sourceKeys=Object.keys(source);var key,i;for(i=0;i<sourceKeys.length;i++){key=sourceKeys[i];if(excluded.indexOf(key)>=0)continue;target[key]=source[key];}return target;}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg);var value=info.value;}catch(error){reject(error);return;}if(info.done){resolve(value);}else{Promise.resolve(value).then(_next,_throw);}}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value);}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err);}_next(undefined);});};}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable;})),t.push.apply(t,o);}return t;}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach(function(r){_defineProperty(e,r,t[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));});}return e;}function _defineProperty(obj,key,value){key=_toPropertyKey(key);if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true});}else{obj[key]=value;}return obj;}function _toPropertyKey(arg){var key=_toPrimitive(arg,"string");return typeof key==="symbol"?key:String(key);}function _toPrimitive(input,hint){if(_typeof(input)!=="object"||input===null)return input;var prim=input[Symbol.toPrimitive];if(prim!==undefined){var res=prim.call(input,hint||"default");if(_typeof(res)!=="object")return res;throw new TypeError("@@toPrimitive must return a primitive value.");}return(hint==="string"?String:Number)(input);}function m(t,e,n){return c(t,l(e,n));}function y(t,e){return"function"==typeof t?t(e):t;}function b(t){return t.split("-")[0];}function g(t){return t.split("-")[1];}function v(t){return"x"===t?"y":"x";}function w(t){return"y"===t?"height":"width";}function x(t){return["top","bottom"].includes(b(t))?"y":"x";}function A(t){return v(x(t));}function z(t){return t.replace(/start|end/g,function(t){return p[t];});}function S(t){return t.replace(/left|right|bottom|top/g,function(t){return d[t];});}function k(t){return"number"!=typeof t?function(t){return _objectSpread({top:0,right:0,bottom:0,left:0},t);}(t):{top:t,right:t,bottom:t,left:t};}function P(t){return _objectSpread(_objectSpread({},t),{},{top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height});}function $(t,e,n){var i=t.reference,o=t.floating;var r=x(e),a=A(e),s=w(a),l=b(e),c="y"===r,u=i.x+i.width/2-o.width/2,f=i.y+i.height/2-o.height/2,h=i[s]/2-o[s]/2;var d;switch(l){case"top":d={x:u,y:i.y-o.height};break;case"bottom":d={x:u,y:i.y+i.height};break;case"right":d={x:i.x+i.width,y:f};break;case"left":d={x:i.x-o.width,y:f};break;default:d={x:i.x,y:i.y};}switch(g(e)){case"start":d[a]-=h*(n&&c?-1:1);break;case"end":d[a]+=h*(n&&c?-1:1);}return d;}function O(_x,_x2){return _O.apply(this,arguments);}function _O(){_O=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee13(t,e){var n,i,o,r,a,s,l,_y5,_y5$boundary,c,_y5$rootBoundary,u,_y5$elementContext,f,_y5$altBoundary,h,_y5$padding,d,p,m,b,g,v,w,x;return _regeneratorRuntime().wrap(function _callee13$(_context14){while(1)switch(_context14.prev=_context14.next){case 0:void 0===e&&(e={});i=t.x;o=t.y;r=t.platform;a=t.rects;s=t.elements;l=t.strategy;_y5=y(e,t);_y5$boundary=_y5.boundary;c=_y5$boundary===void 0?"clippingAncestors":_y5$boundary;_y5$rootBoundary=_y5.rootBoundary;u=_y5$rootBoundary===void 0?"viewport":_y5$rootBoundary;_y5$elementContext=_y5.elementContext;f=_y5$elementContext===void 0?"floating":_y5$elementContext;_y5$altBoundary=_y5.altBoundary;h=_y5$altBoundary===void 0?!1:_y5$altBoundary;_y5$padding=_y5.padding;d=_y5$padding===void 0?0:_y5$padding;p=k(d);m=s[h?"floating"===f?"reference":"floating":f];_context14.t0=P;_context14.t1=r;_context14.next=24;return null==r.isElement?void 0:r.isElement(m);case 24:_context14.t3=n=_context14.sent;_context14.t2=null==_context14.t3;if(_context14.t2){_context14.next=28;break;}_context14.t2=n;case 28:if(!_context14.t2){_context14.next=32;break;}_context14.t4=m;_context14.next=38;break;case 32:_context14.t5=m.contextElement;if(_context14.t5){_context14.next=37;break;}_context14.next=36;return null==r.getDocumentElement?void 0:r.getDocumentElement(s.floating);case 36:_context14.t5=_context14.sent;case 37:_context14.t4=_context14.t5;case 38:_context14.t6=_context14.t4;_context14.t7=c;_context14.t8=u;_context14.t9=l;_context14.t10={element:_context14.t6,boundary:_context14.t7,rootBoundary:_context14.t8,strategy:_context14.t9};_context14.next=45;return _context14.t1.getClippingRect.call(_context14.t1,_context14.t10);case 45:_context14.t11=_context14.sent;b=(0,_context14.t0)(_context14.t11);g="floating"===f?_objectSpread(_objectSpread({},a.floating),{},{x:i,y:o}):a.reference;_context14.next=50;return null==r.getOffsetParent?void 0:r.getOffsetParent(s.floating);case 50:v=_context14.sent;_context14.next=53;return null==r.isElement?void 0:r.isElement(v);case 53:_context14.t13=_context14.sent;if(!_context14.t13){_context14.next=58;break;}_context14.next=57;return null==r.getScale?void 0:r.getScale(v);case 57:_context14.t13=_context14.sent;case 58:_context14.t12=_context14.t13;if(_context14.t12){_context14.next=61;break;}_context14.t12={x:1,y:1};case 61:w=_context14.t12;_context14.t14=P;if(!r.convertOffsetParentRelativeRectToViewportRelativeRect){_context14.next=69;break;}_context14.next=66;return r.convertOffsetParentRelativeRectToViewportRelativeRect({rect:g,offsetParent:v,strategy:l});case 66:_context14.t15=_context14.sent;_context14.next=70;break;case 69:_context14.t15=g;case 70:_context14.t16=_context14.t15;x=(0,_context14.t14)(_context14.t16);return _context14.abrupt("return",{top:(b.top-x.top+p.top)/w.y,bottom:(x.bottom-b.bottom+p.bottom)/w.y,left:(b.left-x.left+p.left)/w.x,right:(x.right-b.right+p.right)/w.x});case 73:case"end":return _context14.stop();}},_callee13);}));return _O.apply(this,arguments);}function B(t){return N(t)?(t.nodeName||"").toLowerCase():"#document";}function C(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window;}function E(t){var e;return null==(e=(N(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement;}function N(t){return t instanceof Node||t instanceof C(t).Node;}function T(t){return t instanceof Element||t instanceof C(t).Element;}function D(t){return t instanceof HTMLElement||t instanceof C(t).HTMLElement;}function M(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof C(t).ShadowRoot);}function L(t){var _W=W(t),e=_W.overflow,n=_W.overflowX,i=_W.overflowY,o=_W.display;return /auto|scroll|overlay|hidden|clip/.test(e+i+n)&&!["inline","contents"].includes(o);}function H(t){return["table","td","th"].includes(B(t));}function _(t){var e=I(),n=W(t);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!e&&!!n.backdropFilter&&"none"!==n.backdropFilter||!e&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some(function(t){return(n.willChange||"").includes(t);})||["paint","layout","strict","content"].some(function(t){return(n.contain||"").includes(t);});}function I(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none");}function q(t){return["html","body","#document"].includes(B(t));}function W(t){return C(t).getComputedStyle(t);}function Y(t){return T(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset};}function V(t){if("html"===B(t))return t;var e=t.assignedSlot||t.parentNode||M(t)&&t.host||E(t);return M(e)?e.host:e;}function X(t){var e=V(t);return q(e)?t.ownerDocument?t.ownerDocument.body:t.body:D(e)&&L(e)?e:X(e);}function G(t,e,n){var i;void 0===e&&(e=[]),void 0===n&&(n=!0);var o=X(t),r=o===(null==(i=t.ownerDocument)?void 0:i.body),a=C(o);return r?e.concat(a,a.visualViewport||[],L(o)?o:[],a.frameElement&&n?G(a.frameElement):[]):e.concat(o,G(o,[],n));}function J(t){var e=W(t);var n=parseFloat(e.width)||0,i=parseFloat(e.height)||0;var o=D(t),r=o?t.offsetWidth:n,a=o?t.offsetHeight:i,s=u(n)!==r||u(i)!==a;return s&&(n=r,i=a),{width:n,height:i,$:s};}function K(t){return T(t)?t:t.contextElement;}function Q(t){var e=K(t);if(!D(e))return h(1);var n=e.getBoundingClientRect(),_J=J(e),i=_J.width,o=_J.height,r=_J.$;var a=(r?u(n.width):n.width)/i,s=(r?u(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s};}function Z(t){var e=C(t);return I()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:U;}function tt(t,e,n,i){void 0===e&&(e=!1),void 0===n&&(n=!1);var o=t.getBoundingClientRect(),r=K(t);var a=h(1);e&&(i?T(i)&&(a=Q(i)):a=Q(t));var s=function(t,e,n){return void 0===e&&(e=!1),!(!n||e&&n!==C(t))&&e;}(r,n,i)?Z(r):h(0);var l=(o.left+s.x)/a.x,c=(o.top+s.y)/a.y,u=o.width/a.x,f=o.height/a.y;if(r){var _t7=C(r),_e3=i&&T(i)?C(i):i;var _n3=_t7.frameElement;for(;_n3&&i&&_e3!==_t7;){var _t8=Q(_n3),_e4=_n3.getBoundingClientRect(),_i2=W(_n3),_o=_e4.left+(_n3.clientLeft+parseFloat(_i2.paddingLeft))*_t8.x,_r=_e4.top+(_n3.clientTop+parseFloat(_i2.paddingTop))*_t8.y;l*=_t8.x,c*=_t8.y,u*=_t8.x,f*=_t8.y,l+=_o,c+=_r,_n3=C(_n3).frameElement;}}return P({width:u,height:f,x:l,y:c});}function et(t){return tt(E(t)).left+Y(t).scrollLeft;}function nt(t,e,n){var i;if("viewport"===e)i=function(t,e){var n=C(t),i=E(t),o=n.visualViewport;var r=i.clientWidth,a=i.clientHeight,s=0,l=0;if(o){r=o.width,a=o.height;var _t9=I();(!_t9||_t9&&"fixed"===e)&&(s=o.offsetLeft,l=o.offsetTop);}return{width:r,height:a,x:s,y:l};}(t,n);else if("document"===e)i=function(t){var e=E(t),n=Y(t),i=t.ownerDocument.body,o=c(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),r=c(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);var a=-n.scrollLeft+et(t);var s=-n.scrollTop;return"rtl"===W(i).direction&&(a+=c(e.clientWidth,i.clientWidth)-o),{width:o,height:r,x:a,y:s};}(E(t));else if(T(e))i=function(t,e){var n=tt(t,!0,"fixed"===e),i=n.top+t.clientTop,o=n.left+t.clientLeft,r=D(t)?Q(t):h(1);return{width:t.clientWidth*r.x,height:t.clientHeight*r.y,x:o*r.x,y:i*r.y};}(e,n);else{var _n4=Z(t);i=_objectSpread(_objectSpread({},e),{},{x:e.x-_n4.x,y:e.y-_n4.y});}return P(i);}function it(t,e){var n=V(t);return!(n===e||!T(n)||q(n))&&("fixed"===W(n).position||it(n,e));}function ot(t,e,n){var i=D(e),o=E(e),r="fixed"===n,a=tt(t,!0,r,e);var s={scrollLeft:0,scrollTop:0};var l=h(0);if(i||!i&&!r)if(("body"!==B(e)||L(o))&&(s=Y(e)),i){var _t10=tt(e,!0,r,e);l.x=_t10.x+e.clientLeft,l.y=_t10.y+e.clientTop;}else o&&(l.x=et(o));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height};}function rt(t,e){return D(t)&&"fixed"!==W(t).position?e?e(t):t.offsetParent:null;}function at(t,e){var n=C(t);if(!D(t))return n;var i=rt(t,e);for(;i&&H(i)&&"static"===W(i).position;)i=rt(i,e);return i&&("html"===B(i)||"body"===B(i)&&"static"===W(i).position&&!_(i))?n:i||function(t){var e=V(t);for(;D(e)&&!q(e);){if(_(e))return e;e=V(e);}return null;}(t)||n;}function lt(t,e,n,i){void 0===i&&(i={});var _i3=i,_i3$ancestorScroll=_i3.ancestorScroll,o=_i3$ancestorScroll===void 0?!0:_i3$ancestorScroll,_i3$ancestorResize=_i3.ancestorResize,r=_i3$ancestorResize===void 0?!0:_i3$ancestorResize,_i3$elementResize=_i3.elementResize,a=_i3$elementResize===void 0?"function"==typeof ResizeObserver:_i3$elementResize,_i3$layoutShift=_i3.layoutShift,s=_i3$layoutShift===void 0?"function"==typeof IntersectionObserver:_i3$layoutShift,_i3$animationFrame=_i3.animationFrame,u=_i3$animationFrame===void 0?!1:_i3$animationFrame,h=K(t),d=o||r?[].concat(_toConsumableArray(h?G(h):[]),_toConsumableArray(G(e))):[];d.forEach(function(t){o&&t.addEventListener("scroll",n,{passive:!0}),r&&t.addEventListener("resize",n);});var p=h&&s?function(t,e){var n,i=null;var o=E(t);function r(){clearTimeout(n),i&&i.disconnect(),i=null;}return function a(s,u){void 0===s&&(s=!1),void 0===u&&(u=1),r();var _t$getBoundingClientR=t.getBoundingClientRect(),h=_t$getBoundingClientR.left,d=_t$getBoundingClientR.top,p=_t$getBoundingClientR.width,m=_t$getBoundingClientR.height;if(s||e(),!p||!m)return;var y={rootMargin:-f(d)+"px "+-f(o.clientWidth-(h+p))+"px "+-f(o.clientHeight-(d+m))+"px "+-f(h)+"px",threshold:c(0,l(1,u))||1};var b=!0;function g(t){var e=t[0].intersectionRatio;if(e!==u){if(!b)return a();e?a(!1,e):n=setTimeout(function(){a(!1,1e-7);},100);}b=!1;}try{i=new IntersectionObserver(g,_objectSpread(_objectSpread({},y),{},{root:o.ownerDocument}));}catch(t){i=new IntersectionObserver(g,y);}i.observe(t);}(!0),r;}(h,n):null;var m,y=-1,b=null;a&&(b=new ResizeObserver(function(t){var _t12=_slicedToArray(t,1),i=_t12[0];i&&i.target===h&&b&&(b.unobserve(e),cancelAnimationFrame(y),y=requestAnimationFrame(function(){b&&b.observe(e);})),n();}),h&&!u&&b.observe(h),b.observe(e));var g=u?tt(t):null;return u&&function e(){var i=tt(t);!g||i.x===g.x&&i.y===g.y&&i.width===g.width&&i.height===g.height||n();g=i,m=requestAnimationFrame(e);}(),n(),function(){d.forEach(function(t){o&&t.removeEventListener("scroll",n),r&&t.removeEventListener("resize",n);}),p&&p(),b&&b.disconnect(),b=null,u&&cancelAnimationFrame(m);};}function ut(t){return function(t){for(var _e6=t;_e6;_e6=ft(_e6))if(_e6 instanceof Element&&"none"===getComputedStyle(_e6).display)return null;for(var _e7=ft(t);_e7;_e7=ft(_e7)){if(!(_e7 instanceof Element))continue;var _t13=getComputedStyle(_e7);if("contents"!==_t13.display){if("static"!==_t13.position||"none"!==_t13.filter)return _e7;if("BODY"===_e7.tagName)return _e7;}}return null;}(t);}function ft(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode;}return{setters:[function(_tslib){t=_tslib.__decorate;},function(_litDirectivesClassMapJs){e=_litDirectivesClassMapJs.classMap;},function(_litDecoratorsJs){n=_litDecoratorsJs.query;i=_litDecoratorsJs.property;o=_litDecoratorsJs.customElement;},function(_lit){r=_lit.html;},function(_internalNileElementCjsJs){a=_internalNileElementCjsJs.N;},function(_nilePopupCssCjsJs){s=_nilePopupCssCjsJs.s;},function(_index001CjsJs){}],execute:function(){_excluded=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"];_excluded2=["apply"];_excluded3=["mainAxis","crossAxis","limiter"];l=Math.min;c=Math.max;u=Math.round;f=Math.floor;h=function h(t){return{x:t,y:t};};d={left:"right",right:"left",bottom:"top",top:"bottom"};p={start:"end",end:"start"};F=function F(t){return void 0===t&&(t={}),{name:"flip",options:t,fn:function fn(e){return _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(){var n,i,o,r,a,s,l,c,_y,_y$mainAxis,u,_y$crossAxis,f,h,_y$fallbackStrategy,d,_y$fallbackAxisSideDi,p,_y$flipAlignment,m,v,x,k,P,$,F,R,j,B,_t,C,E,_t2,_e,_n,N,_t3;return _regeneratorRuntime().wrap(function _callee$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:o=e.placement,r=e.middlewareData,a=e.rects,s=e.initialPlacement,l=e.platform,c=e.elements,_y=y(t,e),_y$mainAxis=_y.mainAxis,u=_y$mainAxis===void 0?!0:_y$mainAxis,_y$crossAxis=_y.crossAxis,f=_y$crossAxis===void 0?!0:_y$crossAxis,h=_y.fallbackPlacements,_y$fallbackStrategy=_y.fallbackStrategy,d=_y$fallbackStrategy===void 0?"bestFit":_y$fallbackStrategy,_y$fallbackAxisSideDi=_y.fallbackAxisSideDirection,p=_y$fallbackAxisSideDi===void 0?"none":_y$fallbackAxisSideDi,_y$flipAlignment=_y.flipAlignment,m=_y$flipAlignment===void 0?!0:_y$flipAlignment,v=_objectWithoutProperties(_y,_excluded);if(!(null!=(n=r.arrow)&&n.alignmentOffset)){_context2.next=3;break;}return _context2.abrupt("return",{});case 3:x=b(o);k=b(s)===s;_context2.next=7;return null==l.isRTL?void 0:l.isRTL(c.floating);case 7:P=_context2.sent;$=h||(k||!m?[S(s)]:function(t){var e=S(t);return[z(t),e,z(e)];}(s));h||"none"===p||$.push.apply($,_toConsumableArray(function(t,e,n,i){var o=g(t);var r=function(t,e,n){var i=["left","right"],o=["right","left"],r=["top","bottom"],a=["bottom","top"];switch(t){case"top":case"bottom":return n?e?o:i:e?i:o;case"left":case"right":return e?r:a;default:return[];}}(b(t),"start"===n,i);return o&&(r=r.map(function(t){return t+"-"+o;}),e&&(r=r.concat(r.map(z)))),r;}(s,m,p,P)));F=[s].concat(_toConsumableArray($));_context2.next=13;return O(e,v);case 13:R=_context2.sent;j=[];B=(null==(i=r.flip)?void 0:i.overflows)||[];if(u&&j.push(R[x]),f){_t=function(t,e,n){void 0===n&&(n=!1);var i=g(t),o=A(t),r=w(o);var a="x"===o?i===(n?"end":"start")?"right":"left":"start"===i?"bottom":"top";return e.reference[r]>e.floating[r]&&(a=S(a)),[a,S(a)];}(o,a,P);j.push(R[_t[0]],R[_t[1]]);}if(!(B=[].concat(_toConsumableArray(B),[{placement:o,overflows:j}]),!j.every(function(t){return t<=0;}))){_context2.next=32;break;}_t2=((null==(C=r.flip)?void 0:C.index)||0)+1,_e=F[_t2];if(!_e){_context2.next=21;break;}return _context2.abrupt("return",{data:{index:_t2,overflows:B},reset:{placement:_e}});case 21:_n=null==(E=B.filter(function(t){return t.overflows[0]<=0;}).sort(function(t,e){return t.overflows[1]-e.overflows[1];})[0])?void 0:E.placement;if(_n){_context2.next=30;break;}_context2.t0=d;_context2.next=_context2.t0==="bestFit"?26:_context2.t0==="initialPlacement"?29:30;break;case 26:_t3=null==(N=B.map(function(t){return[t.placement,t.overflows.filter(function(t){return t>0;}).reduce(function(t,e){return t+e;},0)];}).sort(function(t,e){return t[1]-e[1];})[0])?void 0:N[0];_t3&&(_n=_t3);return _context2.abrupt("break",30);case 29:_n=s;case 30:if(!(o!==_n)){_context2.next=32;break;}return _context2.abrupt("return",{reset:{placement:_n}});case 32:return _context2.abrupt("return",{});case 33:case"end":return _context2.stop();}},_callee);}))();}};};R=function R(t){return void 0===t&&(t=0),{name:"offset",options:t,fn:function fn(e){return _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(){var n,i,o;return _regeneratorRuntime().wrap(function _callee3$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:n=e.x;i=e.y;_context4.next=4;return function(){var _ref=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(t,e){var n,i,o,r,a,s,l,c,u,f,_ref2,h,d,p;return _regeneratorRuntime().wrap(function _callee2$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:n=t.placement;i=t.platform;o=t.elements;_context3.next=5;return null==i.isRTL?void 0:i.isRTL(o.floating);case 5:r=_context3.sent;a=b(n);s=g(n);l="y"===x(n);c=["left","top"].includes(a)?-1:1;u=r&&l?-1:1;f=y(e,t);_ref2="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:_objectSpread({mainAxis:0,crossAxis:0,alignmentAxis:null},f),h=_ref2.mainAxis,d=_ref2.crossAxis,p=_ref2.alignmentAxis;return _context3.abrupt("return",(s&&"number"==typeof p&&(d="end"===s?-1*p:p),l?{x:d*u,y:h*c}:{x:h*c,y:d*u}));case 14:case"end":return _context3.stop();}},_callee2);}));return function(_x3,_x4){return _ref.apply(this,arguments);};}()(e,t);case 4:o=_context4.sent;return _context4.abrupt("return",{x:n+o.x,y:i+o.y,data:o});case 6:case"end":return _context4.stop();}},_callee3);}))();}};};j=function j(t){return void 0===t&&(t={}),{name:"size",options:t,fn:function fn(e){return _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(){var n,i,o,r,_y2,_y2$apply,a,s,u,f,h,d,_i$floating,p,m,v,w,A,z,S,k,P,_t4,_t5,_t6,_e2,_n2,_i,$;return _regeneratorRuntime().wrap(function _callee4$(_context5){while(1)switch(_context5.prev=_context5.next){case 0:n=e.placement;i=e.rects;o=e.platform;r=e.elements;_y2=y(t,e);_y2$apply=_y2.apply;a=_y2$apply===void 0?function(){}:_y2$apply;s=_objectWithoutProperties(_y2,_excluded2);_context5.next=10;return O(e,s);case 10:u=_context5.sent;f=b(n);h=g(n);d="y"===x(n);_i$floating=i.floating;p=_i$floating.width;m=_i$floating.height;if(!("top"===f||"bottom"===f)){_context5.next=36;break;}v=f;_context5.t0=h;_context5.next=22;return null==o.isRTL?void 0:o.isRTL(r.floating);case 22:if(!_context5.sent){_context5.next=26;break;}_context5.t1="start";_context5.next=27;break;case 26:_context5.t1="end";case 27:_context5.t2=_context5.t1;if(!(_context5.t0===_context5.t2)){_context5.next=32;break;}_context5.t3="left";_context5.next=33;break;case 32:_context5.t3="right";case 33:w=_context5.t3;_context5.next=37;break;case 36:w=f,v="end"===h?"top":"bottom";case 37:A=m-u[v],z=p-u[w],S=!e.middlewareData.shift;k=A,P=z;if(d){_t4=p-u.left-u.right;P=h||S?l(z,_t4):_t4;}else{_t5=m-u.top-u.bottom;k=h||S?l(A,_t5):_t5;}if(S&&!h){_t6=c(u.left,0),_e2=c(u.right,0),_n2=c(u.top,0),_i=c(u.bottom,0);d?P=p-2*(0!==_t6||0!==_e2?_t6+_e2:c(u.left,u.right)):k=m-2*(0!==_n2||0!==_i?_n2+_i:c(u.top,u.bottom));}_context5.next=43;return a(_objectSpread(_objectSpread({},e),{},{availableWidth:P,availableHeight:k}));case 43:_context5.next=45;return o.getDimensions(r.floating);case 45:$=_context5.sent;return _context5.abrupt("return",p!==$.width||m!==$.height?{reset:{rects:!0}}:{});case 47:case"end":return _context5.stop();}},_callee4);}))();}};};U=h(0);st={convertOffsetParentRelativeRectToViewportRelativeRect:function convertOffsetParentRelativeRectToViewportRelativeRect(t){var e=t.rect,n=t.offsetParent,i=t.strategy;var o=D(n),r=E(n);if(n===r)return e;var a={scrollLeft:0,scrollTop:0},s=h(1);var l=h(0);if((o||!o&&"fixed"!==i)&&(("body"!==B(n)||L(r))&&(a=Y(n)),D(n))){var _t11=tt(n);s=Q(n),l.x=_t11.x+n.clientLeft,l.y=_t11.y+n.clientTop;}return{width:e.width*s.x,height:e.height*s.y,x:e.x*s.x-a.scrollLeft*s.x+l.x,y:e.y*s.y-a.scrollTop*s.y+l.y};},getDocumentElement:E,getClippingRect:function getClippingRect(t){var e=t.element,n=t.boundary,i=t.rootBoundary,o=t.strategy;var r=[].concat(_toConsumableArray("clippingAncestors"===n?function(t,e){var n=e.get(t);if(n)return n;var i=G(t,[],!1).filter(function(t){return T(t)&&"body"!==B(t);}),o=null;var r="fixed"===W(t).position;var a=r?V(t):t;for(;T(a)&&!q(a);){var _e5=W(a),_n5=_(a);_n5||"fixed"!==_e5.position||(o=null),(r?!_n5&&!o:!_n5&&"static"===_e5.position&&o&&["absolute","fixed"].includes(o.position)||L(a)&&!_n5&&it(t,a))?i=i.filter(function(t){return t!==a;}):o=_e5,a=V(a);}return e.set(t,i),i;}(e,this._c):[].concat(n)),[i]),a=r[0],s=r.reduce(function(t,n){var i=nt(e,n,o);return t.top=c(i.top,t.top),t.right=l(i.right,t.right),t.bottom=l(i.bottom,t.bottom),t.left=c(i.left,t.left),t;},nt(e,a,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top};},getOffsetParent:at,getElementRects:function(){var _getElementRects=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(t){var e,n,i,o,r;return _regeneratorRuntime().wrap(function _callee5$(_context6){while(1)switch(_context6.prev=_context6.next){case 0:e=t.reference,n=t.floating,i=t.strategy;o=this.getOffsetParent||at,r=this.getDimensions;_context6.t0=ot;_context6.t1=e;_context6.next=6;return o(n);case 6:_context6.t2=_context6.sent;_context6.t3=i;_context6.t4=(0,_context6.t0)(_context6.t1,_context6.t2,_context6.t3);_context6.t5=_objectSpread;_context6.t6={x:0,y:0};_context6.next=13;return r(n);case 13:_context6.t7=_context6.sent;_context6.t8=(0,_context6.t5)(_context6.t6,_context6.t7);return _context6.abrupt("return",{reference:_context6.t4,floating:_context6.t8});case 16:case"end":return _context6.stop();}},_callee5,this);}));function getElementRects(_x5){return _getElementRects.apply(this,arguments);}return getElementRects;}(),getClientRects:function getClientRects(t){return Array.from(t.getClientRects());},getDimensions:function getDimensions(t){return J(t);},getScale:Q,isElement:T,isRTL:function isRTL(t){return"rtl"===W(t).direction;}};ct=function ct(t,e,n){var i=new Map(),o=_objectSpread({platform:st},n),r=_objectSpread(_objectSpread({},o.platform),{},{_c:i});return function(){var _ref3=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(t,e,n){var _n$placement,i,_n$strategy,o,_n$middleware,r,a,s,l,c,_$,u,f,h,d,p,_n6,_$2,_s$_n,_r2,_m,_yield$m,_y3,_b,_g,v;return _regeneratorRuntime().wrap(function _callee6$(_context7){while(1)switch(_context7.prev=_context7.next){case 0:_n$placement=n.placement;i=_n$placement===void 0?"bottom":_n$placement;_n$strategy=n.strategy;o=_n$strategy===void 0?"absolute":_n$strategy;_n$middleware=n.middleware;r=_n$middleware===void 0?[]:_n$middleware;a=n.platform;s=r.filter(Boolean);_context7.next=10;return null==a.isRTL?void 0:a.isRTL(e);case 10:l=_context7.sent;_context7.next=13;return a.getElementRects({reference:t,floating:e,strategy:o});case 13:c=_context7.sent;_$=$(c,i,l);u=_$.x;f=_$.y;h=i;d={};p=0;_n6=0;case 21:if(!(_n6<s.length)){_context7.next=56;break;}_s$_n=s[_n6];_r2=_s$_n.name;_m=_s$_n.fn;_context7.next=27;return _m({x:u,y:f,initialPlacement:i,placement:h,strategy:o,middlewareData:d,rects:c,platform:a,elements:{reference:t,floating:e}});case 27:_yield$m=_context7.sent;_y3=_yield$m.x;_b=_yield$m.y;_g=_yield$m.data;v=_yield$m.reset;u=null!=_y3?_y3:u;f=null!=_b?_b:f;d=_objectSpread(_objectSpread({},d),{},_defineProperty({},_r2,_objectSpread(_objectSpread({},d[_r2]),_g)));_context7.t0=v&&p<=50;if(!_context7.t0){_context7.next=53;break;}p++;_context7.t1="object"==_typeof(v);if(!_context7.t1){_context7.next=52;break;}v.placement&&(h=v.placement);_context7.t2=v.rects;if(!_context7.t2){_context7.next=51;break;}if(!(!0===v.rects)){_context7.next=49;break;}_context7.next=46;return a.getElementRects({reference:t,floating:e,strategy:o});case 46:_context7.t3=_context7.sent;_context7.next=50;break;case 49:_context7.t3=v.rects;case 50:c=_context7.t3;case 51:_$2=$(c,h,l),u=_$2.x,f=_$2.y;case 52:_n6=-1;case 53:_n6++;_context7.next=21;break;case 56:return _context7.abrupt("return",{x:u,y:f,placement:h,strategy:o,middlewareData:d});case 57:case"end":return _context7.stop();}},_callee6);}));return function(_x6,_x7,_x8){return _ref3.apply(this,arguments);};}()(t,e,_objectSpread(_objectSpread({},o),{},{platform:r}));};_export("N",ht=/*#__PURE__*/function(_a){_inherits(ht,_a);var _super=_createSuper(ht);function ht(){var _this;_classCallCheck(this,ht);_this=_super.apply(this,arguments),_this.active=!1,_this.placement="top",_this.strategy="absolute",_this.distance=0,_this.skidding=0,_this.arrow=!1,_this.arrowPlacement="anchor",_this.arrowPadding=10,_this.flip=!1,_this.flipFallbackPlacements="",_this.flipFallbackStrategy="best-fit",_this.flipPadding=0,_this.shift=!1,_this.shiftPadding=0,_this.autoSizePadding=0;return _this;}_createClass(ht,[{key:"connectedCallback",value:function(){var _connectedCallback=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7(){return _regeneratorRuntime().wrap(function _callee7$(_context8){while(1)switch(_context8.prev=_context8.next){case 0:_get(_getPrototypeOf(ht.prototype),"connectedCallback",this).call(this);_context8.next=3;return this.updateComplete;case 3:this.start();case 4:case"end":return _context8.stop();}},_callee7,this);}));function connectedCallback(){return _connectedCallback.apply(this,arguments);}return connectedCallback;}()},{key:"disconnectedCallback",value:function disconnectedCallback(){this.stop();}},{key:"updated",value:function(){var _updated=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee8(t){return _regeneratorRuntime().wrap(function _callee8$(_context9){while(1)switch(_context9.prev=_context9.next){case 0:_get(_getPrototypeOf(ht.prototype),"updated",this).call(this,t);t.has("active")&&(this.active?this.start():this.stop());t.has("anchor")&&this.handleAnchorChange();_context9.t0=this.active;if(!_context9.t0){_context9.next=8;break;}_context9.next=7;return this.updateComplete;case 7:this.reposition();case 8:case"end":return _context9.stop();}},_callee8,this);}));function updated(_x9){return _updated.apply(this,arguments);}return updated;}()},{key:"handleAnchorChange",value:function(){var _handleAnchorChange=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee9(){var _t14;return _regeneratorRuntime().wrap(function _callee9$(_context10){while(1)switch(_context10.prev=_context10.next){case 0:_context10.next=2;return this.stop();case 2:if(!(this.anchor&&"string"==typeof this.anchor)){_context10.next=7;break;}_t14=this.getRootNode();this.anchorEl=_t14.getElementById(this.anchor);_context10.next=8;break;case 7:this.anchor instanceof Element?this.anchorEl=this.anchor:this.anchorEl=this.querySelector('[slot="anchor"]');case 8:if(!(this.anchorEl instanceof HTMLSlotElement&&(this.anchorEl=this.anchorEl.assignedElements({flatten:!0})[0]),!this.anchorEl)){_context10.next=10;break;}throw new Error("Invalid anchor element: no anchor could be found using the anchor slot or the anchor attribute.");case 10:this.start();case 11:case"end":return _context10.stop();}},_callee9,this);}));function handleAnchorChange(){return _handleAnchorChange.apply(this,arguments);}return handleAnchorChange;}()},{key:"start",value:function start(){var _this2=this;this.anchorEl&&(this.cleanup=lt(this.anchorEl,this.popup,function(){_this2.reposition();}));}},{key:"stop",value:function(){var _stop=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee10(){var _this3=this;return _regeneratorRuntime().wrap(function _callee10$(_context11){while(1)switch(_context11.prev=_context11.next){case 0:return _context11.abrupt("return",new Promise(function(t){_this3.cleanup?(_this3.cleanup(),_this3.cleanup=void 0,_this3.removeAttribute("data-current-placement"),_this3.style.removeProperty("--auto-size-available-width"),_this3.style.removeProperty("--auto-size-available-height"),requestAnimationFrame(function(){return t();})):t();}));case 1:case"end":return _context11.stop();}},_callee10);}));function stop(){return _stop.apply(this,arguments);}return stop;}()},{key:"reposition",value:function reposition(){var _this4=this;if(!this.active||!this.anchorEl)return;var t=[R({mainAxis:this.distance,crossAxis:this.skidding})];var e;this.sync?t.push(j({apply:function apply(_ref4){var t=_ref4.rects;var e="width"===_this4.sync||"both"===_this4.sync,n="height"===_this4.sync||"both"===_this4.sync;_this4.popup.style.width=e?"".concat(t.reference.width,"px"):"",_this4.popup.style.height=n?"".concat(t.reference.height,"px"):"";}})):(this.popup.style.width="",this.popup.style.height=""),this.flip&&t.push(F({boundary:this.flipBoundary,fallbackPlacements:this.flipFallbackPlacements,fallbackStrategy:"best-fit"===this.flipFallbackStrategy?"bestFit":"initialPlacement",padding:this.flipPadding})),this.shift&&t.push((void 0===(e={boundary:this.shiftBoundary,padding:this.shiftPadding})&&(e={}),{name:"shift",options:e,fn:function fn(t){return _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee11(){var _objectSpread3;var n,i,o,_y4,_y4$mainAxis,r,_y4$crossAxis,a,_y4$limiter,s,l,c,u,f,h,d,p,_t15,_t16,g;return _regeneratorRuntime().wrap(function _callee11$(_context12){while(1)switch(_context12.prev=_context12.next){case 0:n=t.x;i=t.y;o=t.placement;_y4=y(e,t);_y4$mainAxis=_y4.mainAxis;r=_y4$mainAxis===void 0?!0:_y4$mainAxis;_y4$crossAxis=_y4.crossAxis;a=_y4$crossAxis===void 0?!1:_y4$crossAxis;_y4$limiter=_y4.limiter;s=_y4$limiter===void 0?{fn:function fn(t){var e=t.x,n=t.y;return{x:e,y:n};}}:_y4$limiter;l=_objectWithoutProperties(_y4,_excluded3);c={x:n,y:i};_context12.next=14;return O(t,l);case 14:u=_context12.sent;f=x(b(o));h=v(f);d=c[h],p=c[f];if(r){_t15="y"===h?"bottom":"right";d=m(d+u["y"===h?"top":"left"],d,d-u[_t15]);}if(a){_t16="y"===f?"bottom":"right";p=m(p+u["y"===f?"top":"left"],p,p-u[_t16]);}g=s.fn(_objectSpread(_objectSpread({},t),{},(_objectSpread3={},_defineProperty(_objectSpread3,h,d),_defineProperty(_objectSpread3,f,p),_objectSpread3)));return _context12.abrupt("return",_objectSpread(_objectSpread({},g),{},{data:{x:g.x-n,y:g.y-i}}));case 22:case"end":return _context12.stop();}},_callee11);}))();}})),this.autoSize?t.push(j({boundary:this.autoSizeBoundary,padding:this.autoSizePadding,apply:function apply(_ref5){var t=_ref5.availableWidth,e=_ref5.availableHeight;"vertical"===_this4.autoSize||"both"===_this4.autoSize?_this4.style.setProperty("--auto-size-available-height","".concat(e,"px")):_this4.style.removeProperty("--auto-size-available-height"),"horizontal"===_this4.autoSize||"both"===_this4.autoSize?_this4.style.setProperty("--auto-size-available-width","".concat(t,"px")):_this4.style.removeProperty("--auto-size-available-width");}})):(this.style.removeProperty("--auto-size-available-width"),this.style.removeProperty("--auto-size-available-height")),this.arrow&&t.push(function(t){return{name:"arrow",options:t,fn:function fn(e){return _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee12(){var _objectSpread4,_ref7;var n,i,o,r,a,s,c,_ref6,u,_ref6$padding,f,h,d,p,b,v,x,z,S,P,$,O,F,R,j,B,C,E,N,T,D,M,L,H;return _regeneratorRuntime().wrap(function _callee12$(_context13){while(1)switch(_context13.prev=_context13.next){case 0:n=e.x,i=e.y,o=e.placement,r=e.rects,a=e.platform,s=e.elements,c=e.middlewareData,_ref6=y(t,e)||{},u=_ref6.element,_ref6$padding=_ref6.padding,f=_ref6$padding===void 0?0:_ref6$padding;if(!(null==u)){_context13.next=3;break;}return _context13.abrupt("return",{});case 3:h=k(f);d={x:n,y:i};p=A(o);b=w(p);_context13.next=9;return a.getDimensions(u);case 9:v=_context13.sent;x="y"===p;z=x?"top":"left";S=x?"bottom":"right";P=x?"clientHeight":"clientWidth";$=r.reference[b]+r.reference[p]-d[p]-r.floating[b];O=d[p]-r.reference[p];_context13.next=18;return null==a.getOffsetParent?void 0:a.getOffsetParent(u);case 18:F=_context13.sent;R=F?F[P]:0;_context13.t0=R;if(!_context13.t0){_context13.next=25;break;}_context13.next=24;return null==a.isElement?void 0:a.isElement(F);case 24:_context13.t0=_context13.sent;case 25:_context13.t1=_context13.t0;if(_context13.t1){_context13.next=28;break;}R=s.floating[P]||r.floating[b];case 28:j=$/2-O/2,B=R/2-v[b]/2-1,C=l(h[z],B),E=l(h[S],B),N=C,T=R-v[b]-E,D=R/2-v[b]/2+j,M=m(N,D,T),L=!c.arrow&&null!=g(o)&&D!=M&&r.reference[b]/2-(D<N?C:E)-v[b]/2<0,H=L?D<N?D-N:D-T:0;return _context13.abrupt("return",(_ref7={},_defineProperty(_ref7,p,d[p]+H),_defineProperty(_ref7,"data",_objectSpread((_objectSpread4={},_defineProperty(_objectSpread4,p,M),_defineProperty(_objectSpread4,"centerOffset",D-M-H),_objectSpread4),L&&{alignmentOffset:H})),_defineProperty(_ref7,"reset",L),_ref7));case 30:case"end":return _context13.stop();}},_callee12);}))();}};}({element:this.arrowEl,padding:this.arrowPadding}));var n="absolute"===this.strategy?function(t){return st.getOffsetParent(t,ut);}:st.getOffsetParent;ct(this.anchorEl,this.popup,{placement:this.placement,middleware:t,strategy:this.strategy,platform:_objectSpread(_objectSpread({},st),{},{getOffsetParent:n})}).then(function(_ref8){var t=_ref8.x,e=_ref8.y,n=_ref8.middlewareData,i=_ref8.placement;var o="rtl"===getComputedStyle(_this4).direction,r={top:"bottom",right:"left",bottom:"top",left:"right"}[i.split("-")[0]];if(_this4.setAttribute("data-current-placement",i),Object.assign(_this4.popup.style,{left:"".concat(t,"px"),top:"".concat(e,"px")}),_this4.arrow){var _t17=n.arrow.x,_e8=n.arrow.y;var _i4="",_a2="",_s="",_l="";if("start"===_this4.arrowPlacement){var _n7="number"==typeof _t17?"calc(".concat(_this4.arrowPadding,"px - var(--arrow-padding-offset))"):"";_i4="number"==typeof _e8?"calc(".concat(_this4.arrowPadding,"px - var(--arrow-padding-offset))"):"",_a2=o?_n7:"",_l=o?"":_n7;}else if("end"===_this4.arrowPlacement){var _n8="number"==typeof _t17?"calc(".concat(_this4.arrowPadding,"px - var(--arrow-padding-offset))"):"";_a2=o?"":_n8,_l=o?_n8:"",_s="number"==typeof _e8?"calc(".concat(_this4.arrowPadding,"px - var(--arrow-padding-offset))"):"";}else"center"===_this4.arrowPlacement?(_l="number"==typeof _t17?"calc(50% - var(--arrow-size-diagonal))":"",_i4="number"==typeof _e8?"calc(50% - var(--arrow-size-diagonal))":""):(_l="number"==typeof _t17?"".concat(_t17,"px"):"",_i4="number"==typeof _e8?"".concat(_e8,"px"):"");Object.assign(_this4.arrowEl.style,_defineProperty({top:_i4,right:_a2,bottom:_s,left:_l},r,"calc(var(--arrow-size-diagonal) * -1)"));}}),this.emit("reposition");}},{key:"render",value:function render(){return r(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n <slot name=\"anchor\" @slotchange=","></slot>\n\n <div\n part=\"popup\"\n class=","\n >\n <slot></slot>\n ","\n </div>\n "])),this.handleAnchorChange,e({popup:!0,"popup--active":this.active,"popup--fixed":"fixed"===this.strategy,"popup--has-arrow":this.arrow}),this.arrow?r(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["<div part=\"arrow\" class=\"popup__arrow\" role=\"presentation\"></div>"]))):"");}}]);return ht;}(a));ht.styles=s,t([n(".popup")],ht.prototype,"popup",void 0),t([n(".popup__arrow")],ht.prototype,"arrowEl",void 0),t([i()],ht.prototype,"anchor",void 0),t([i({type:Boolean,reflect:!0})],ht.prototype,"active",void 0),t([i({reflect:!0})],ht.prototype,"placement",void 0),t([i({reflect:!0})],ht.prototype,"strategy",void 0),t([i({type:Number})],ht.prototype,"distance",void 0),t([i({type:Number})],ht.prototype,"skidding",void 0),t([i({type:Boolean})],ht.prototype,"arrow",void 0),t([i({attribute:"arrow-placement"})],ht.prototype,"arrowPlacement",void 0),t([i({attribute:"arrow-padding",type:Number})],ht.prototype,"arrowPadding",void 0),t([i({type:Boolean})],ht.prototype,"flip",void 0),t([i({attribute:"flip-fallback-placements",converter:{fromAttribute:function fromAttribute(t){return t.split(" ").map(function(t){return t.trim();}).filter(function(t){return""!==t;});},toAttribute:function toAttribute(t){return t.join(" ");}}})],ht.prototype,"flipFallbackPlacements",void 0),t([i({attribute:"flip-fallback-strategy"})],ht.prototype,"flipFallbackStrategy",void 0),t([i({type:Object})],ht.prototype,"flipBoundary",void 0),t([i({attribute:"flip-padding",type:Number})],ht.prototype,"flipPadding",void 0),t([i({type:Boolean})],ht.prototype,"shift",void 0),t([i({type:Object})],ht.prototype,"shiftBoundary",void 0),t([i({attribute:"shift-padding",type:Number})],ht.prototype,"shiftPadding",void 0),t([i({attribute:"auto-size"})],ht.prototype,"autoSize",void 0),t([i()],ht.prototype,"sync",void 0),t([i({type:Object})],ht.prototype,"autoSizeBoundary",void 0),t([i({attribute:"auto-size-padding",type:Number})],ht.prototype,"autoSizePadding",void 0),_export("N",ht=t([o("nile-popup")],ht));}};});
|
2
2
|
//# sourceMappingURL=nile-popup.cjs.js.map
|