@aquera/nile-elements 0.1.55-patch-1 → 0.1.55-patch-3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/dist/axe.min-2c0b27d0.esm.js +1 -0
- package/dist/axe.min-51d832fe.cjs.js +2 -0
- package/dist/axe.min-51d832fe.cjs.js.map +1 -0
- package/dist/fixture-28d63bc4.cjs.js +395 -0
- package/dist/fixture-28d63bc4.cjs.js.map +1 -0
- package/dist/{fixture-dbd66009.cjs.js → fixture-324a7ef9.cjs.js} +2 -2
- package/dist/{fixture-dbd66009.cjs.js.map → fixture-324a7ef9.cjs.js.map} +1 -1
- package/dist/fixture-4da0d7ba.cjs.js +395 -0
- package/dist/fixture-4da0d7ba.cjs.js.map +1 -0
- package/dist/fixture-78a015b8.esm.js +569 -0
- package/dist/fixture-aeed6660.esm.js +569 -0
- package/dist/{fixture-90b199c4.esm.js → fixture-ba65eb22.esm.js} +1 -1
- package/dist/flow-938d2713.esm.js +17 -0
- package/dist/flow-eb3cbb92.cjs.js +14 -0
- package/dist/flow-eb3cbb92.cjs.js.map +1 -0
- package/dist/index.js +2 -2
- package/dist/internal/resizable-table-styles.cjs.js +1 -1
- package/dist/internal/resizable-table-styles.cjs.js.map +1 -1
- package/dist/internal/resizable-table-styles.esm.js +15 -3
- package/dist/lit-html-39a6718c.esm.js +6 -0
- package/dist/lit-html-879bd16a.esm.js +7 -0
- package/dist/lit-html-9a84b336.cjs.js +6 -0
- package/dist/lit-html-9a84b336.cjs.js.map +1 -0
- package/dist/lit-html-9b3af046.cjs.js +6 -0
- package/dist/lit-html-9b3af046.cjs.js.map +1 -0
- package/dist/nile-accordion/nile-accordian.test.cjs.js +1 -1
- package/dist/nile-accordion/nile-accordian.test.esm.js +1 -1
- package/dist/nile-auto-complete/nile-auto-complete.test.cjs.js +1 -1
- package/dist/nile-auto-complete/nile-auto-complete.test.esm.js +1 -1
- package/dist/nile-avatar/nile-avatar.test.cjs.js +1 -1
- package/dist/nile-avatar/nile-avatar.test.esm.js +1 -1
- package/dist/nile-badge/nile-badge.test.cjs.js +1 -1
- package/dist/nile-badge/nile-badge.test.esm.js +1 -1
- package/dist/nile-button/nile-button.test.cjs.js +1 -1
- package/dist/nile-button/nile-button.test.esm.js +1 -1
- package/dist/nile-button-toggle-group/nile-button-toggle-group.test.cjs.js +1 -1
- package/dist/nile-button-toggle-group/nile-button-toggle-group.test.esm.js +1 -1
- package/dist/nile-calendar/nile-calendar.test.cjs.js +1 -1
- package/dist/nile-calendar/nile-calendar.test.esm.js +1 -1
- package/dist/nile-card/nile-card.test.cjs.js +1 -1
- package/dist/nile-card/nile-card.test.esm.js +1 -1
- package/dist/nile-checkbox/nile-checkbox.test.cjs.js +1 -1
- package/dist/nile-checkbox/nile-checkbox.test.esm.js +1 -1
- package/dist/nile-chip/nile-chip.test.cjs.js +1 -1
- package/dist/nile-chip/nile-chip.test.esm.js +1 -1
- package/dist/nile-code-editor/extensionSetup.cjs.js +3 -3
- package/dist/nile-code-editor/extensionSetup.cjs.js.map +1 -1
- package/dist/nile-code-editor/extensionSetup.esm.js +1 -1
- package/dist/nile-code-editor/nile-code-editor.cjs.js +2 -2
- package/dist/nile-code-editor/nile-code-editor.cjs.js.map +1 -1
- package/dist/nile-code-editor/nile-code-editor.esm.js +2 -2
- package/dist/nile-dialog/nile-dialog.test.cjs.js +1 -1
- package/dist/nile-dialog/nile-dialog.test.esm.js +1 -1
- package/dist/nile-drawer/nile-drawer.test.cjs.js +1 -1
- package/dist/nile-drawer/nile-drawer.test.esm.js +1 -1
- package/dist/nile-dropdown/nile-dropdown.test.cjs.js +1 -1
- package/dist/nile-dropdown/nile-dropdown.test.esm.js +1 -1
- package/dist/nile-empty-state/nile-empty-state.test.cjs.js +1 -1
- package/dist/nile-empty-state/nile-empty-state.test.esm.js +1 -1
- package/dist/nile-error-message/nile-error-message.test.cjs.js +1 -1
- package/dist/nile-error-message/nile-error-message.test.esm.js +1 -1
- package/dist/nile-file-preview/index.cjs.js +2 -0
- package/dist/nile-file-preview/index.cjs.js.map +1 -0
- package/dist/nile-file-preview/index.esm.js +1 -0
- package/dist/nile-file-preview/nile-file-preview.cjs.js +2 -0
- package/dist/nile-file-preview/nile-file-preview.cjs.js.map +1 -0
- package/dist/nile-file-preview/nile-file-preview.css.cjs.js +2 -0
- package/dist/nile-file-preview/nile-file-preview.css.cjs.js.map +1 -0
- package/dist/nile-file-preview/nile-file-preview.css.esm.js +575 -0
- package/dist/nile-file-preview/nile-file-preview.esm.js +1 -0
- package/dist/nile-file-preview/nile-file-preview.template.cjs.js +2 -0
- package/dist/nile-file-preview/nile-file-preview.template.cjs.js.map +1 -0
- package/dist/nile-file-preview/nile-file-preview.template.esm.js +176 -0
- package/dist/nile-file-preview/nile-file-preview.test.cjs.js +2 -0
- package/dist/nile-file-preview/nile-file-preview.test.cjs.js.map +1 -0
- package/dist/nile-file-preview/nile-file-preview.test.esm.js +1 -0
- package/dist/nile-file-preview/types/index.cjs.js +2 -0
- package/dist/nile-file-preview/types/index.cjs.js.map +1 -0
- package/dist/nile-file-preview/types/index.esm.js +1 -0
- package/dist/nile-file-preview/types/nile-file-preview.enums.cjs.js +2 -0
- package/dist/nile-file-preview/types/nile-file-preview.enums.cjs.js.map +1 -0
- package/dist/nile-file-preview/types/nile-file-preview.enums.esm.js +1 -0
- package/dist/nile-file-preview/types/nile-file-preview.interface.cjs.js +2 -0
- package/dist/nile-file-preview/types/nile-file-preview.interface.cjs.js.map +1 -0
- package/dist/nile-file-preview/types/nile-file-preview.interface.esm.js +1 -0
- package/dist/nile-file-preview/utils/index.cjs.js +2 -0
- package/dist/nile-file-preview/utils/index.cjs.js.map +1 -0
- package/dist/nile-file-preview/utils/index.esm.js +1 -0
- package/dist/nile-file-preview/utils/nile-file-preview.util.cjs.js +2 -0
- package/dist/nile-file-preview/utils/nile-file-preview.util.cjs.js.map +1 -0
- package/dist/nile-file-preview/utils/nile-file-preview.util.esm.js +1 -0
- package/dist/nile-file-upload/index.cjs.js +2 -0
- package/dist/nile-file-upload/index.cjs.js.map +1 -0
- package/dist/nile-file-upload/index.esm.js +1 -0
- package/dist/nile-file-upload/nile-file-upload.cjs.js +2 -0
- package/dist/nile-file-upload/nile-file-upload.cjs.js.map +1 -0
- package/dist/nile-file-upload/nile-file-upload.css.cjs.js +2 -0
- package/dist/nile-file-upload/nile-file-upload.css.cjs.js.map +1 -0
- package/dist/nile-file-upload/nile-file-upload.css.esm.js +610 -0
- package/dist/nile-file-upload/nile-file-upload.esm.js +3 -0
- package/dist/nile-file-upload/nile-file-upload.template.cjs.js +10 -0
- package/dist/nile-file-upload/nile-file-upload.template.cjs.js.map +1 -0
- package/dist/nile-file-upload/nile-file-upload.template.esm.js +109 -0
- package/dist/nile-file-upload/nile-file-upload.test.cjs.js +2 -0
- package/dist/nile-file-upload/nile-file-upload.test.cjs.js.map +1 -0
- package/dist/nile-file-upload/nile-file-upload.test.esm.js +1 -0
- package/dist/nile-file-upload/types/file-upload.enums.cjs.js +2 -0
- package/dist/nile-file-upload/types/file-upload.enums.cjs.js.map +1 -0
- package/dist/nile-file-upload/types/file-upload.enums.esm.js +1 -0
- package/dist/nile-file-upload/types/file-upload.type.cjs.js +2 -0
- package/dist/nile-file-upload/types/file-upload.type.cjs.js.map +1 -0
- package/dist/nile-file-upload/types/file-upload.type.esm.js +1 -0
- package/dist/nile-file-upload/types/index.cjs.js +2 -0
- package/dist/nile-file-upload/types/index.cjs.js.map +1 -0
- package/dist/nile-file-upload/types/index.esm.js +1 -0
- package/dist/nile-file-upload/utils/drag-drop.util.cjs.js +2 -0
- package/dist/nile-file-upload/utils/drag-drop.util.cjs.js.map +1 -0
- package/dist/nile-file-upload/utils/drag-drop.util.esm.js +1 -0
- package/dist/nile-file-upload/utils/file-validation.util.cjs.js +3 -0
- package/dist/nile-file-upload/utils/file-validation.util.cjs.js.map +1 -0
- package/dist/nile-file-upload/utils/file-validation.util.esm.js +1 -0
- package/dist/nile-filter-chip/nile-filter-chip.test.cjs.js +1 -1
- package/dist/nile-filter-chip/nile-filter-chip.test.esm.js +1 -1
- package/dist/nile-form-group/nile-form-group.test.cjs.js +1 -1
- package/dist/nile-form-group/nile-form-group.test.esm.js +1 -1
- package/dist/nile-form-help-text/nile-form-help-text.test.cjs.js +1 -1
- package/dist/nile-form-help-text/nile-form-help-text.test.esm.js +1 -1
- package/dist/nile-hero/nile-hero.test.cjs.js +1 -1
- package/dist/nile-hero/nile-hero.test.esm.js +1 -1
- package/dist/nile-icon/icons/svg/format_align_justify.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/format_align_justify.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/format_align_justify.esm.js +1 -0
- package/dist/nile-icon/icons/svg/format_align_left.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/format_align_left.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/format_align_left.esm.js +1 -0
- package/dist/nile-icon/icons/svg/format_align_middle.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/format_align_middle.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/format_align_middle.esm.js +1 -0
- package/dist/nile-icon/icons/svg/format_align_right.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/format_align_right.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/format_align_right.esm.js +1 -0
- package/dist/nile-icon/icons/svg/format_bold.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/format_bold.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/format_bold.esm.js +1 -0
- package/dist/nile-icon/icons/svg/format_clear.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/format_clear.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/format_clear.esm.js +1 -0
- package/dist/nile-icon/icons/svg/format_italic.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/format_italic.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/format_italic.esm.js +1 -0
- package/dist/nile-icon/icons/svg/format_list_bulleted.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/format_list_bulleted.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/format_list_bulleted.esm.js +1 -0
- package/dist/nile-icon/icons/svg/format_list_numbered.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/format_list_numbered.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/format_list_numbered.esm.js +1 -0
- package/dist/nile-icon/icons/svg/format_underline.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/format_underline.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/format_underline.esm.js +1 -0
- package/dist/nile-icon/icons/svg/image_2.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/image_2.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/image_2.esm.js +1 -0
- package/dist/nile-icon/icons/svg/link_2.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/link_2.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/link_2.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-action.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-action.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-action.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-activity.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-activity.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-activity.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-alert-circle.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-alert-circle.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-alert-circle.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-align-center.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-align-center.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-align-center.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-annotation-x.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-annotation-x.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-annotation-x.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-arrow-down.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-arrow-down.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-arrow-down.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-arrow-narrow-down.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-arrow-narrow-down.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-arrow-narrow-down.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-arrow-narrow-left.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-arrow-narrow-left.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-arrow-narrow-left.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-arrow-narrow-right.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-arrow-narrow-right.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-arrow-narrow-right.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-arrow-up.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-arrow-up.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-arrow-up.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-bar-chart-12.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-bar-chart-12.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-bar-chart-12.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-bell-01.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-bell-01.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-bell-01.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-bell-ringing-04.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-bell-ringing-04.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-bell-ringing-04.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-bold-01.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-bold-01.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-bold-01.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-building-01.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-building-01.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-building-01.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-building-05.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-building-05.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-building-05.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-button-loading-blue-animated.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-button-loading-blue-animated.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-button-loading-blue-animated.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-button-loading-blue.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-button-loading-blue.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-button-loading-blue.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-calendar-plus-02.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-calendar-plus-02.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-calendar-plus-02.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-calendar.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-calendar.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-calendar.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-check-circle-broken.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-check-circle-broken.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-check-circle-broken.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-check-circle.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-check-circle.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-check-circle.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-check-square-broken.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-check-square-broken.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-check-square-broken.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-check.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-check.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-check.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-chevron-down.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-chevron-down.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-chevron-down.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-chevron-left.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-chevron-left.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-chevron-left.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-chevron-right.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-chevron-right.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-chevron-right.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-chevron-selector-vertical.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-chevron-selector-vertical.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-chevron-selector-vertical.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-chevron-up-double.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-chevron-up-double.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-chevron-up-double.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-chevron-up.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-chevron-up.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-chevron-up.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-copy-03.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-copy-03.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-copy-03.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-dataflow-04.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-dataflow-04.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-dataflow-04.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-dots-grid.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-dots-grid.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-dots-grid.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-dots-vertical.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-dots-vertical.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-dots-vertical.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-download-01.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-download-01.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-download-01.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-dropdown.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-dropdown.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-dropdown.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-edit-02.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-edit-02.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-edit-02.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-edit-05.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-edit-05.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-edit-05.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-expand-06.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-expand-06.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-expand-06.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-eye-off.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-eye-off.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-eye-off.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-eye.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-eye.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-eye.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-file-02.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-file-02.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-file-02.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-file-06.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-file-06.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-file-06.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-file-check-02.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-file-check-02.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-file-check-02.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-file-question-03.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-file-question-03.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-file-question-03.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-filter-lines.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-filter-lines.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-filter-lines.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-grid-01.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-grid-01.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-grid-01.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-help-circle.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-help-circle.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-help-circle.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-image-03.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-image-03.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-image-03.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-image-user-left.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-image-user-left.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-image-user-left.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-info-circle.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-info-circle.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-info-circle.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-italic-01.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-italic-01.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-italic-01.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-layers-three-01.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-layers-three-01.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-layers-three-01.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-list.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-list.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-list.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-log-out-01.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-log-out-01.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-log-out-01.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-mail-01.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-mail-01.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-mail-01.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-mail-04.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-mail-04.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-mail-04.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-marker-pin-01.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-marker-pin-01.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-marker-pin-01.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-menu-05.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-menu-05.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-menu-05.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-message-text-square-01.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-message-text-square-01.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-message-text-square-01.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-minimize-02.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-minimize-02.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-minimize-02.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-minus.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-minus.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-minus.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-plus.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-plus.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-plus.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-refresh-cw-02.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-refresh-cw-02.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-refresh-cw-02.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-rocket-02.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-rocket-02.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-rocket-02.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-search-lg.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-search-lg.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-search-lg.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-send-01.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-send-01.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-send-01.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-settings-01.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-settings-01.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-settings-01.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-share-04.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-share-04.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-share-04.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-share-06.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-share-06.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-share-06.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-stars-02.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-stars-02.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-stars-02.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-trash-01.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-trash-01.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-trash-01.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-trash-03.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-trash-03.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-trash-03.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-trend-up-01.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-trend-up-01.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-trend-up-01.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-underline-01.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-underline-01.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-underline-01.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-upload-01.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-upload-01.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-upload-01.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-upload-cloud-02.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-upload-cloud-02.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-upload-cloud-02.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-user-01.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-user-01.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-user-01.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-user-check-02-1.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-user-check-02-1.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-user-check-02-1.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-user-check-02.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-user-check-02.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-user-check-02.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-user-plus-02.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-user-plus-02.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-user-plus-02.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-user-right-01.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-user-right-01.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-user-right-01.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-users-01.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-users-01.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-users-01.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-x-circle.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-x-circle.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-x-circle.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-x-close.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-x-close.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-x-close.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-x-square.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-x-square.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-x-square.esm.js +1 -0
- package/dist/nile-icon/nile-icon.test.cjs.js +1 -1
- package/dist/nile-icon/nile-icon.test.esm.js +1 -1
- package/dist/nile-input/nile-input.test.cjs.js +1 -1
- package/dist/nile-input/nile-input.test.esm.js +1 -1
- package/dist/nile-link/nile-link.test.cjs.js +1 -1
- package/dist/nile-link/nile-link.test.esm.js +1 -1
- package/dist/nile-loader/nile-loader.test.cjs.js +1 -1
- package/dist/nile-loader/nile-loader.test.esm.js +1 -1
- package/dist/nile-popover/nile-popover.test.cjs.js +1 -1
- package/dist/nile-popover/nile-popover.test.esm.js +1 -1
- package/dist/nile-popup/nile-popup.test.cjs.js +1 -1
- package/dist/nile-popup/nile-popup.test.esm.js +1 -1
- package/dist/nile-progress-bar/nile-progress-bar.test.cjs.js +1 -1
- package/dist/nile-progress-bar/nile-progress-bar.test.esm.js +1 -1
- package/dist/nile-radio/nile-radio.test.cjs.js +1 -1
- package/dist/nile-radio/nile-radio.test.esm.js +1 -1
- package/dist/nile-radio-group/nile-radio-group.test.cjs.js +1 -1
- package/dist/nile-radio-group/nile-radio-group.test.esm.js +1 -1
- package/dist/nile-rich-text-editor/index.cjs.js +2 -0
- package/dist/nile-rich-text-editor/index.cjs.js.map +1 -0
- package/dist/nile-rich-text-editor/index.esm.js +1 -0
- package/dist/nile-rich-text-editor/nile-rich-text-editor.cjs.js +2 -0
- package/dist/nile-rich-text-editor/nile-rich-text-editor.cjs.js.map +1 -0
- package/dist/nile-rich-text-editor/nile-rich-text-editor.css.cjs.js +2 -0
- package/dist/nile-rich-text-editor/nile-rich-text-editor.css.cjs.js.map +1 -0
- package/dist/nile-rich-text-editor/nile-rich-text-editor.css.esm.js +129 -0
- package/dist/nile-rich-text-editor/nile-rich-text-editor.esm.js +1 -0
- package/dist/nile-rich-text-editor/nile-rte-color.cjs.js +2 -0
- package/dist/nile-rich-text-editor/nile-rte-color.cjs.js.map +1 -0
- package/dist/nile-rich-text-editor/nile-rte-color.esm.js +53 -0
- package/dist/nile-rich-text-editor/nile-rte-divider.cjs.js +2 -0
- package/dist/nile-rich-text-editor/nile-rte-divider.cjs.js.map +1 -0
- package/dist/nile-rich-text-editor/nile-rte-divider.esm.js +1 -0
- package/dist/nile-rich-text-editor/nile-rte-link.cjs.js +2 -0
- package/dist/nile-rich-text-editor/nile-rte-link.cjs.js.map +1 -0
- package/dist/nile-rich-text-editor/nile-rte-link.esm.js +19 -0
- package/dist/nile-rich-text-editor/nile-rte-mentions-item.cjs.js +2 -0
- package/dist/nile-rich-text-editor/nile-rte-mentions-item.cjs.js.map +1 -0
- package/dist/nile-rich-text-editor/nile-rte-mentions-item.esm.js +1 -0
- package/dist/nile-rich-text-editor/nile-rte-mentions.cjs.js +3 -0
- package/dist/nile-rich-text-editor/nile-rte-mentions.cjs.js.map +1 -0
- package/dist/nile-rich-text-editor/nile-rte-mentions.esm.js +1 -0
- package/dist/nile-rich-text-editor/nile-rte-preview.cjs.js +2 -0
- package/dist/nile-rich-text-editor/nile-rte-preview.cjs.js.map +1 -0
- package/dist/nile-rich-text-editor/nile-rte-preview.esm.js +1 -0
- package/dist/nile-rich-text-editor/nile-rte-select.cjs.js +2 -0
- package/dist/nile-rich-text-editor/nile-rte-select.cjs.js.map +1 -0
- package/dist/nile-rich-text-editor/nile-rte-select.esm.js +54 -0
- package/dist/nile-rich-text-editor/nile-rte-toolbar-item.cjs.js +2 -0
- package/dist/nile-rich-text-editor/nile-rte-toolbar-item.cjs.js.map +1 -0
- package/dist/nile-rich-text-editor/nile-rte-toolbar-item.esm.js +1 -0
- package/dist/nile-rich-text-editor/nile-rte-toolbar.cjs.js +2 -0
- package/dist/nile-rich-text-editor/nile-rte-toolbar.cjs.js.map +1 -0
- package/dist/nile-rich-text-editor/nile-rte-toolbar.esm.js +1 -0
- package/dist/nile-rich-text-editor/utils.cjs.js +2 -0
- package/dist/nile-rich-text-editor/utils.cjs.js.map +1 -0
- package/dist/nile-rich-text-editor/utils.esm.js +1 -0
- package/dist/nile-select/nile-select.test.cjs.js +1 -1
- package/dist/nile-select/nile-select.test.esm.js +1 -1
- package/dist/nile-select/virtual-scroll-helper.cjs.js +2 -0
- package/dist/nile-select/virtual-scroll-helper.cjs.js.map +1 -0
- package/dist/nile-select/virtual-scroll-helper.esm.js +38 -0
- package/dist/nile-slide-toggle/nile-slide-toggle.test.cjs.js +1 -1
- package/dist/nile-slide-toggle/nile-slide-toggle.test.esm.js +1 -1
- package/dist/nile-tab-group/nile-tab-group.test.cjs.js +1 -1
- package/dist/nile-tab-group/nile-tab-group.test.esm.js +1 -1
- package/dist/nile-textarea/nile-textarea.test.cjs.js +1 -1
- package/dist/nile-textarea/nile-textarea.test.esm.js +1 -1
- package/dist/nile-virtual-select/index.cjs.js +2 -0
- package/dist/nile-virtual-select/index.cjs.js.map +1 -0
- package/dist/nile-virtual-select/index.esm.js +1 -0
- package/dist/nile-virtual-select/nile-virtual-select.cjs.js +2 -0
- package/dist/nile-virtual-select/nile-virtual-select.cjs.js.map +1 -0
- package/dist/nile-virtual-select/nile-virtual-select.css.cjs.js +2 -0
- package/dist/nile-virtual-select/nile-virtual-select.css.cjs.js.map +1 -0
- package/dist/nile-virtual-select/nile-virtual-select.css.esm.js +477 -0
- package/dist/nile-virtual-select/nile-virtual-select.esm.js +227 -0
- package/dist/nile-virtual-select/nile-virtual-select.test.cjs.js +2 -0
- package/dist/nile-virtual-select/nile-virtual-select.test.cjs.js.map +1 -0
- package/dist/nile-virtual-select/nile-virtual-select.test.esm.js +93 -0
- package/dist/nile-virtual-select/renderer.cjs.js +2 -0
- package/dist/nile-virtual-select/renderer.cjs.js.map +1 -0
- package/dist/nile-virtual-select/renderer.esm.js +28 -0
- package/dist/nile-virtual-select/search-manager.cjs.js +2 -0
- package/dist/nile-virtual-select/search-manager.cjs.js.map +1 -0
- package/dist/nile-virtual-select/search-manager.esm.js +1 -0
- package/dist/nile-virtual-select/selection-manager.cjs.js +2 -0
- package/dist/nile-virtual-select/selection-manager.cjs.js.map +1 -0
- package/dist/nile-virtual-select/selection-manager.esm.js +1 -0
- package/dist/nile-virtual-select/types.cjs.js +2 -0
- package/dist/nile-virtual-select/types.cjs.js.map +1 -0
- package/dist/nile-virtual-select/types.esm.js +1 -0
- package/dist/scopedElementsWrapper-24f32095.cjs.js +6 -0
- package/dist/scopedElementsWrapper-24f32095.cjs.js.map +1 -0
- package/dist/scopedElementsWrapper-7a509408.esm.js +7 -0
- package/dist/sinon-esm-69e51168.cjs.js +2 -0
- package/dist/sinon-esm-69e51168.cjs.js.map +1 -0
- package/dist/sinon-esm-73a0cd99.esm.js +1 -0
- package/dist/src/internal/resizable-table-styles.js +0 -12
- package/dist/src/internal/resizable-table-styles.js.map +1 -1
- package/dist/src/nile-calendar/test.d.ts +0 -0
- package/dist/src/nile-calendar/test.js +2 -0
- package/dist/src/nile-calendar/test.js.map +1 -0
- package/dist/src/nile-code-editor/nile-code-editor.d.ts +1 -3
- package/dist/src/nile-code-editor/nile-code-editor.js +16 -20
- package/dist/src/nile-code-editor/nile-code-editor.js.map +1 -1
- package/dist/src/nile-file-preview/nile-file-preview.css.js +201 -182
- package/dist/src/nile-file-preview/nile-file-preview.css.js.map +1 -1
- package/dist/src/nile-file-preview/nile-file-preview.d.ts +6 -2
- package/dist/src/nile-file-preview/nile-file-preview.js +49 -20
- package/dist/src/nile-file-preview/nile-file-preview.js.map +1 -1
- package/dist/src/nile-file-preview/nile-file-preview.template.d.ts +3 -2
- package/dist/src/nile-file-preview/nile-file-preview.template.js +51 -47
- package/dist/src/nile-file-preview/nile-file-preview.template.js.map +1 -1
- package/dist/src/nile-file-preview/types/nile-file-preview.enums.d.ts +4 -3
- package/dist/src/nile-file-preview/types/nile-file-preview.enums.js +3 -2
- package/dist/src/nile-file-preview/types/nile-file-preview.enums.js.map +1 -1
- package/dist/src/nile-file-preview/utils/nile-file-preview.util.d.ts +4 -0
- package/dist/src/nile-file-preview/utils/nile-file-preview.util.js +25 -0
- package/dist/src/nile-file-preview/utils/nile-file-preview.util.js.map +1 -1
- package/dist/src/nile-file-upload/nile-file-upload.css.js +140 -87
- package/dist/src/nile-file-upload/nile-file-upload.css.js.map +1 -1
- package/dist/src/nile-file-upload/nile-file-upload.d.ts +4 -1
- package/dist/src/nile-file-upload/nile-file-upload.js +30 -20
- package/dist/src/nile-file-upload/nile-file-upload.js.map +1 -1
- package/dist/src/nile-file-upload/nile-file-upload.template.d.ts +7 -5
- package/dist/src/nile-file-upload/nile-file-upload.template.js +63 -105
- package/dist/src/nile-file-upload/nile-file-upload.template.js.map +1 -1
- package/dist/src/nile-file-upload/types/file-upload.enums.d.ts +11 -4
- package/dist/src/nile-file-upload/types/file-upload.enums.js +8 -1
- package/dist/src/nile-file-upload/types/file-upload.enums.js.map +1 -1
- package/dist/src/nile-file-upload/utils/drag-drop.util.d.ts +2 -4
- package/dist/src/nile-file-upload/utils/drag-drop.util.js +18 -21
- package/dist/src/nile-file-upload/utils/drag-drop.util.js.map +1 -1
- package/dist/src/nile-file-upload/utils/file-validation.util.d.ts +3 -1
- package/dist/src/nile-file-upload/utils/file-validation.util.js +82 -32
- package/dist/src/nile-file-upload/utils/file-validation.util.js.map +1 -1
- package/dist/src/nile-icon/icons/svg/format_align_justify.d.ts +5 -0
- package/dist/src/nile-icon/icons/svg/format_align_justify.js +5 -0
- package/dist/src/nile-icon/icons/svg/format_align_justify.js.map +1 -0
- package/dist/src/nile-icon/icons/svg/format_align_left.d.ts +5 -0
- package/dist/src/nile-icon/icons/svg/format_align_left.js +5 -0
- package/dist/src/nile-icon/icons/svg/format_align_left.js.map +1 -0
- package/dist/src/nile-icon/icons/svg/format_align_middle.d.ts +5 -0
- package/dist/src/nile-icon/icons/svg/format_align_middle.js +5 -0
- package/dist/src/nile-icon/icons/svg/format_align_middle.js.map +1 -0
- package/dist/src/nile-icon/icons/svg/format_align_right.d.ts +5 -0
- package/dist/src/nile-icon/icons/svg/format_align_right.js +5 -0
- package/dist/src/nile-icon/icons/svg/format_align_right.js.map +1 -0
- package/dist/src/nile-icon/icons/svg/format_bold.d.ts +5 -0
- package/dist/src/nile-icon/icons/svg/format_bold.js +5 -0
- package/dist/src/nile-icon/icons/svg/format_bold.js.map +1 -0
- package/dist/src/nile-icon/icons/svg/format_clear.d.ts +5 -0
- package/dist/src/nile-icon/icons/svg/format_clear.js +5 -0
- package/dist/src/nile-icon/icons/svg/format_clear.js.map +1 -0
- package/dist/src/nile-icon/icons/svg/format_italic.d.ts +5 -0
- package/dist/src/nile-icon/icons/svg/format_italic.js +5 -0
- package/dist/src/nile-icon/icons/svg/format_italic.js.map +1 -0
- package/dist/src/nile-icon/icons/svg/format_list_bulleted.d.ts +5 -0
- package/dist/src/nile-icon/icons/svg/format_list_bulleted.js +5 -0
- package/dist/src/nile-icon/icons/svg/format_list_bulleted.js.map +1 -0
- package/dist/src/nile-icon/icons/svg/format_list_numbered.d.ts +5 -0
- package/dist/src/nile-icon/icons/svg/format_list_numbered.js +5 -0
- package/dist/src/nile-icon/icons/svg/format_list_numbered.js.map +1 -0
- package/dist/src/nile-icon/icons/svg/format_underline.d.ts +5 -0
- package/dist/src/nile-icon/icons/svg/format_underline.js +5 -0
- package/dist/src/nile-icon/icons/svg/format_underline.js.map +1 -0
- package/dist/src/nile-icon/icons/svg/image_2.d.ts +5 -0
- package/dist/src/nile-icon/icons/svg/image_2.js +5 -0
- package/dist/src/nile-icon/icons/svg/image_2.js.map +1 -0
- package/dist/src/nile-icon/icons/svg/link_2.d.ts +5 -0
- package/dist/src/nile-icon/icons/svg/link_2.js +5 -0
- package/dist/src/nile-icon/icons/svg/link_2.js.map +1 -0
- package/dist/src/nile-icon/icons/svg/ng-action.d.ts +5 -0
- package/dist/src/nile-icon/icons/svg/ng-action.js +5 -0
- package/dist/src/nile-icon/icons/svg/ng-action.js.map +1 -0
- package/dist/src/nile-icon/icons/svg/ng-alert-circle.d.ts +5 -0
- package/dist/src/nile-icon/icons/svg/ng-alert-circle.js +5 -0
- package/dist/src/nile-icon/icons/svg/ng-alert-circle.js.map +1 -0
- package/dist/src/nile-icon/icons/svg/ng-arrow-narrow-right.d.ts +5 -0
- package/dist/src/nile-icon/icons/svg/ng-arrow-narrow-right.js +5 -0
- package/dist/src/nile-icon/icons/svg/ng-arrow-narrow-right.js.map +1 -0
- package/dist/src/nile-icon/icons/svg/ng-button-loading-blue-animated.d.ts +5 -0
- package/dist/src/nile-icon/icons/svg/ng-button-loading-blue-animated.js +5 -0
- package/dist/src/nile-icon/icons/svg/ng-button-loading-blue-animated.js.map +1 -0
- package/dist/src/nile-icon/icons/svg/ng-button-loading-blue.d.ts +5 -0
- package/dist/src/nile-icon/icons/svg/ng-button-loading-blue.js +5 -0
- package/dist/src/nile-icon/icons/svg/ng-button-loading-blue.js.map +1 -0
- package/dist/src/nile-icon/icons/svg/ng-check-circle-broken.d.ts +5 -0
- package/dist/src/nile-icon/icons/svg/ng-check-circle-broken.js +5 -0
- package/dist/src/nile-icon/icons/svg/ng-check-circle-broken.js.map +1 -0
- package/dist/src/nile-icon/icons/svg/ng-check.d.ts +5 -0
- package/dist/src/nile-icon/icons/svg/ng-check.js +5 -0
- package/dist/src/nile-icon/icons/svg/ng-check.js.map +1 -0
- package/dist/src/nile-icon/icons/svg/ng-file-06.d.ts +5 -0
- package/dist/src/nile-icon/icons/svg/ng-file-06.js +5 -0
- package/dist/src/nile-icon/icons/svg/ng-file-06.js.map +1 -0
- package/dist/src/nile-icon/icons/svg/ng-image-03.d.ts +5 -0
- package/dist/src/nile-icon/icons/svg/ng-image-03.js +5 -0
- package/dist/src/nile-icon/icons/svg/ng-image-03.js.map +1 -0
- package/dist/src/nile-icon/icons/svg/ng-minus.d.ts +5 -0
- package/dist/src/nile-icon/icons/svg/ng-minus.js +5 -0
- package/dist/src/nile-icon/icons/svg/ng-minus.js.map +1 -0
- package/dist/src/nile-icon/icons/svg/ng-x-circle.d.ts +5 -0
- package/dist/src/nile-icon/icons/svg/ng-x-circle.js +5 -0
- package/dist/src/nile-icon/icons/svg/ng-x-circle.js.map +1 -0
- package/dist/src/nile-rich-text-editor/index.d.ts +1 -0
- package/dist/src/nile-rich-text-editor/index.js +2 -0
- package/dist/src/nile-rich-text-editor/index.js.map +1 -0
- package/dist/src/nile-rich-text-editor/nile-rich-text-editor.css.d.ts +3 -0
- package/dist/src/nile-rich-text-editor/nile-rich-text-editor.css.js +133 -0
- package/dist/src/nile-rich-text-editor/nile-rich-text-editor.css.js.map +1 -0
- package/dist/src/nile-rich-text-editor/nile-rich-text-editor.d.ts +63 -0
- package/dist/src/nile-rich-text-editor/nile-rich-text-editor.js +693 -0
- package/dist/src/nile-rich-text-editor/nile-rich-text-editor.js.map +1 -0
- package/dist/src/nile-rich-text-editor/nile-rte-color.d.ts +22 -0
- package/dist/src/nile-rich-text-editor/nile-rte-color.js +192 -0
- package/dist/src/nile-rich-text-editor/nile-rte-color.js.map +1 -0
- package/dist/src/nile-rich-text-editor/nile-rte-divider.d.ts +10 -0
- package/dist/src/nile-rich-text-editor/nile-rte-divider.js +12 -0
- package/dist/src/nile-rich-text-editor/nile-rte-divider.js.map +1 -0
- package/dist/src/nile-rich-text-editor/nile-rte-link.d.ts +19 -0
- package/dist/src/nile-rich-text-editor/nile-rte-link.js +172 -0
- package/dist/src/nile-rich-text-editor/nile-rte-link.js.map +1 -0
- package/dist/src/nile-rich-text-editor/nile-rte-mentions-item.d.ts +19 -0
- package/dist/src/nile-rich-text-editor/nile-rte-mentions-item.js +54 -0
- package/dist/src/nile-rich-text-editor/nile-rte-mentions-item.js.map +1 -0
- package/dist/src/nile-rich-text-editor/nile-rte-mentions.d.ts +66 -0
- package/dist/src/nile-rich-text-editor/nile-rte-mentions.js +552 -0
- package/dist/src/nile-rich-text-editor/nile-rte-mentions.js.map +1 -0
- package/dist/src/nile-rich-text-editor/nile-rte-preview.d.ts +10 -0
- package/dist/src/nile-rich-text-editor/nile-rte-preview.js +12 -0
- package/dist/src/nile-rich-text-editor/nile-rte-preview.js.map +1 -0
- package/dist/src/nile-rich-text-editor/nile-rte-select.d.ts +37 -0
- package/dist/src/nile-rich-text-editor/nile-rte-select.js +211 -0
- package/dist/src/nile-rich-text-editor/nile-rte-select.js.map +1 -0
- package/dist/src/nile-rich-text-editor/nile-rte-toolbar-item.d.ts +12 -0
- package/dist/src/nile-rich-text-editor/nile-rte-toolbar-item.js +23 -0
- package/dist/src/nile-rich-text-editor/nile-rte-toolbar-item.js.map +1 -0
- package/dist/src/nile-rich-text-editor/nile-rte-toolbar.d.ts +10 -0
- package/dist/src/nile-rich-text-editor/nile-rte-toolbar.js +12 -0
- package/dist/src/nile-rich-text-editor/nile-rte-toolbar.js.map +1 -0
- package/dist/src/nile-rich-text-editor/rte-utils/content.d.ts +2 -0
- package/dist/src/nile-rich-text-editor/rte-utils/content.js +25 -0
- package/dist/src/nile-rich-text-editor/rte-utils/content.js.map +1 -0
- package/dist/src/nile-rich-text-editor/rte-utils/css.d.ts +1 -0
- package/dist/src/nile-rich-text-editor/rte-utils/css.js +9 -0
- package/dist/src/nile-rich-text-editor/rte-utils/css.js.map +1 -0
- package/dist/src/nile-rich-text-editor/rte-utils/dom.d.ts +2 -0
- package/dist/src/nile-rich-text-editor/rte-utils/dom.js +48 -0
- package/dist/src/nile-rich-text-editor/rte-utils/dom.js.map +1 -0
- package/dist/src/nile-rich-text-editor/rte-utils/formatting.d.ts +2 -0
- package/dist/src/nile-rich-text-editor/rte-utils/formatting.js +69 -0
- package/dist/src/nile-rich-text-editor/rte-utils/formatting.js.map +1 -0
- package/dist/src/nile-rich-text-editor/rte-utils/keys.d.ts +2 -0
- package/dist/src/nile-rich-text-editor/rte-utils/keys.js +38 -0
- package/dist/src/nile-rich-text-editor/rte-utils/keys.js.map +1 -0
- package/dist/src/nile-rich-text-editor/rte-utils/lists.d.ts +2 -0
- package/dist/src/nile-rich-text-editor/rte-utils/lists.js +28 -0
- package/dist/src/nile-rich-text-editor/rte-utils/lists.js.map +1 -0
- package/dist/src/nile-rich-text-editor/rte-utils/selection.d.ts +17 -0
- package/dist/src/nile-rich-text-editor/rte-utils/selection.js +39 -0
- package/dist/src/nile-rich-text-editor/rte-utils/selection.js.map +1 -0
- package/dist/src/nile-rich-text-editor/rte-utils/toolbar.d.ts +28 -0
- package/dist/src/nile-rich-text-editor/rte-utils/toolbar.js +161 -0
- package/dist/src/nile-rich-text-editor/rte-utils/toolbar.js.map +1 -0
- package/dist/src/nile-rich-text-editor/rte-utils/toolbarState.d.ts +13 -0
- package/dist/src/nile-rich-text-editor/rte-utils/toolbarState.js +119 -0
- package/dist/src/nile-rich-text-editor/rte-utils/toolbarState.js.map +1 -0
- package/dist/src/nile-rich-text-editor/rte-utils/vars.d.ts +1 -0
- package/dist/src/nile-rich-text-editor/rte-utils/vars.js +14 -0
- package/dist/src/nile-rich-text-editor/rte-utils/vars.js.map +1 -0
- package/dist/src/nile-rich-text-editor/sanatize.d.ts +1 -0
- package/dist/src/nile-rich-text-editor/sanatize.js +40 -0
- package/dist/src/nile-rich-text-editor/sanatize.js.map +1 -0
- package/dist/src/nile-rich-text-editor/utils.d.ts +13 -0
- package/dist/src/nile-rich-text-editor/utils.js +415 -0
- package/dist/src/nile-rich-text-editor/utils.js.map +1 -0
- package/dist/src/nile-virtual-select/renderer.js +3 -0
- package/dist/src/nile-virtual-select/renderer.js.map +1 -1
- package/dist/src/version.d.ts +9 -0
- package/dist/src/version.js +7 -0
- package/dist/src/version.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/version.cjs.js +2 -0
- package/dist/version.cjs.js.map +1 -0
- package/dist/version.esm.js +1 -0
- package/dist/virtualize-3a6cec69.esm.js +22 -0
- package/dist/virtualize-72f549f4.cjs.js +18 -0
- package/dist/virtualize-72f549f4.cjs.js.map +1 -0
- package/dist/virtualize-a4a40d96.esm.js +22 -0
- package/dist/virtualize-b6a2fbe0.cjs.js +18 -0
- package/dist/virtualize-b6a2fbe0.cjs.js.map +1 -0
- package/package.json +4 -4
- package/src/nile-code-editor/nile-code-editor.ts +18 -18
- package/vscode-html-custom-data.json +1 -1
- package/dist/src/internal/resizable-helper.d.ts +0 -59
- package/dist/src/internal/resizable-helper.js +0 -115
- package/dist/src/internal/resizable-helper.js.map +0 -1
- package/dist/src/internal/resizable-styles.d.ts +0 -16
- package/dist/src/internal/resizable-styles.js +0 -144
- package/dist/src/internal/resizable-styles.js.map +0 -1
- package/dist/src/nile-badge/__snapshots__/nile-badge.test.snap.js +0 -17
- package/dist/src/nile-calendar/__snapshots__/nile-calendar.test.snap.js +0 -310
- package/dist/src/nile-card/__snapshots__/nile-card.test.snap.js +0 -34
- package/dist/src/nile-checkbox/__snapshots__/nile-checkbox.test.snap.js +0 -31
- package/dist/src/nile-hero/__snapshots__/nile-hero.test.snap.js +0 -47
- package/dist/src/nile-icon/__snapshots__/nile-icon.test.snap.js +0 -16
- package/dist/src/nile-input/__snapshots__/nile-input.test.snap.js +0 -75
- package/dist/src/nile-popover/__snapshots__/nile-popover.test.snap.js +0 -22
@@ -566,4 +566,4 @@ function d(t){if(function(t){return"undefined"!=typeof Symbol&&"object"==typeof
|
|
566
566
|
*
|
567
567
|
* @param {Object} target
|
568
568
|
* @returns {Array} an array of own and inherited enumerable keys from the target.
|
569
|
-
*/function w(t){var e=[];for(var n in t)e.push(n);return e}function b(t){return null===t||"object"!=typeof t}e.exports=c,e.exports.MemoizeMap=r},{"type-detect":39}],37:[function(t,e,n){var i=Function.prototype.toString,o=/\s*function(?:\s|\s*\/\*[^(?:*\/)]+\*\/\s*)*([^\s\(\/]+)/;e.exports=function(t){if("function"!=typeof t)return null;var e="";if(void 0===Function.prototype.name&&void 0===t.name){var n=i.call(t).match(o);n&&(e=n[1])}else e=t.name;return e}},{}],38:[function(t,e,n){function i(t,e){return null!=t&&e in Object(t)}function o(t){return t.replace(/([^\\])\[/g,"$1.[").match(/(\\\.|[^.]+?)+/g).map((function(t){if("constructor"===t||"__proto__"===t||"prototype"===t)return{};var e=/^\[(\d+)\]$/.exec(t);return e?{i:parseFloat(e[1])}:{p:t.replace(/\\([.[\]])/g,"$1")}}))}function r(t,e,n){var i=t,o=null;n=void 0===n?e.length:n;for(var r=0;r<n;r++){var a=e[r];i&&(i=void 0===a.p?i[a.i]:i[a.p],r===n-1&&(o=i))}return o}function a(t,e){var n=o(e),a=n[n.length-1],s={parent:n.length>1?r(t,n,n.length-1):t,name:a.p||a.i,value:r(t,n)};return s.exists=i(s.parent,s.name),s}e.exports={hasProperty:i,getPathInfo:a,getPathValue:function(t,e){return a(t,e).value},setPathValue:function(t,e,n){return function(t,e,n){for(var i=t,o=n.length,r=null,a=0;a<o;a++){var s=null,c=null;if(r=n[a],a===o-1)i[s=void 0===r.p?r.i:r.p]=e;else if(void 0!==r.p&&i[r.p])i=i[r.p];else if(void 0!==r.i&&i[r.i])i=i[r.i];else{var u=n[a+1];s=void 0===r.p?r.i:r.p,c=void 0===u.p?[]:{},i[s]=c,i=i[s]}}}(t,n,o(e)),t}}},{}],39:[function(t,e,n){!function(t,i){"object"==typeof n&&void 0!==e?e.exports=i():t.typeDetect=i()}(this,(function(){var t="function"==typeof Promise,e="object"==typeof self?self:o,n="undefined"!=typeof Symbol,i="undefined"!=typeof Map,r="undefined"!=typeof Set,a="undefined"!=typeof WeakMap,s="undefined"!=typeof WeakSet,c="undefined"!=typeof DataView,u=n&&void 0!==Symbol.iterator,f=n&&void 0!==Symbol.toStringTag,h=r&&"function"==typeof Set.prototype.entries,l=i&&"function"==typeof Map.prototype.entries,d=h&&Object.getPrototypeOf((new Set).entries()),p=l&&Object.getPrototypeOf((new Map).entries()),w=u&&"function"==typeof Array.prototype[Symbol.iterator],b=w&&Object.getPrototypeOf([][Symbol.iterator]()),v=u&&"function"==typeof String.prototype[Symbol.iterator],m=v&&Object.getPrototypeOf(""[Symbol.iterator]());return function(n){var o=typeof n;if("object"!==o)return o;if(null===n)return"null";if(n===e)return"global";if(Array.isArray(n)&&(!1===f||!(Symbol.toStringTag in n)))return"Array";if("object"==typeof window&&null!==window){if("object"==typeof window.location&&n===window.location)return"Location";if("object"==typeof window.document&&n===window.document)return"Document";if("object"==typeof window.navigator){if("object"==typeof window.navigator.mimeTypes&&n===window.navigator.mimeTypes)return"MimeTypeArray";if("object"==typeof window.navigator.plugins&&n===window.navigator.plugins)return"PluginArray"}if(("function"==typeof window.HTMLElement||"object"==typeof window.HTMLElement)&&n instanceof window.HTMLElement){if("BLOCKQUOTE"===n.tagName)return"HTMLQuoteElement";if("TD"===n.tagName)return"HTMLTableDataCellElement";if("TH"===n.tagName)return"HTMLTableHeaderCellElement"}}var u=f&&n[Symbol.toStringTag];if("string"==typeof u)return u;var h=Object.getPrototypeOf(n);return h===RegExp.prototype?"RegExp":h===Date.prototype?"Date":t&&h===Promise.prototype?"Promise":r&&h===Set.prototype?"Set":i&&h===Map.prototype?"Map":s&&h===WeakSet.prototype?"WeakSet":a&&h===WeakMap.prototype?"WeakMap":c&&h===DataView.prototype?"DataView":i&&h===p?"Map Iterator":r&&h===d?"Set Iterator":w&&h===b?"Array Iterator":v&&h===m?"String Iterator":null===h?"Object":Object.prototype.toString.call(n).slice(8,-1)}}))},{}]},{},[1])(1);a.version,a.AssertionError,a.use,a.util,a.config,a.Assertion;var s=a.expect;a.should,a.Should,a.assert;const c=["script","style","svg"],u=["class","id"],f=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"];function h(t,e={}){const n=e.ignoreAttributes?e.ignoreAttributes.filter((t=>"string"==typeof t)):[],i=e.ignoreAttributes?e.ignoreAttributes.filter((t=>"string"!=typeof t)):[],o=[...e.ignoreTags||[],...c],r=e.ignoreChildren||[],a=e.stripEmptyAttributes||u,s=/(&|")/g,h=t=>"&"===t?"&":""";let l="",d=-1;const p=new Set,w=new Set;function b(){return" ".repeat(d)}function v(t){return t instanceof Element?t.getAttribute("data-tag-name")||t.localName:t.nodeName.toLowerCase()}function m(t){const e=v(t);return!o.includes(e)&&!r.includes(e)&&!p.has(t)}function g({name:t,value:e}){return a.includes(t)&&""===e.trim()}function y(t,{name:e,value:n}){return g({name:e,value:n})?"":"class"===e?` class="${function(t){return[...t.classList.values()].sort().join(" ")}(t)}"`:` ${e}="${n.replace(s,h)}"`}const x=(t,e)=>t.name.localeCompare(e.name);function j(t){let e="";const o=Array.from(t.attributes).filter((r=function(t){return function(e){return!(!n.includes(e.name)&&!g(e)&&!i.find((n=>{if(!n.tags||!n.attributes)throw new Error("An object entry to ignoreAttributes should contain a 'tags' and an 'attributes' property.");return n.tags.includes(v(t))&&n.attributes.includes(e.name)})))}}(t),(...t)=>!r(...t))).sort(x);var r;if(1===o.length)e=y(t,o[0]);else if(o.length>1){for(let n=0;n<o.length;n+=1)e+=`\n${b()} ${y(t,o[n])}`;e+=`\n${b()}`}return e}function E(t,e){var n;if("diff-container"!==v(t)&&!o.includes(v(t))&&!w.has(t))if(w.add(t),t instanceof Text)!function(t,e){let n="",i=t;for(;i&&i instanceof Text;)n+=i.nodeValue,i=e.nextSibling();i&&e.previousSibling(),n=n.trim(),""!==n&&(l+=`${b()}${n}\n`)}(t,e);else{if(!(t instanceof Element))throw new Error(`Unknown node type: ${t}`);n=t,l+=`${b()}<${v(n)}${j(n)}>\n`}}function O(t){var e;o.includes(v(t))||t instanceof Element&&("diff-container"===v(e=t)||f.includes(v(e))||(l+=`${b()}</${v(e)}>\n`))}let S;if("string"==typeof t)S=document.createElement("diff-container"),S.innerHTML=t,d=-1;else{if(!(t instanceof Node))throw new Error(`Cannot create diffable HTML from: ${t}`);S=t,d=0}const k=document.createTreeWalker(S,NodeFilter.SHOW_TEXT+NodeFilter.SHOW_ELEMENT,null,!1);for(;k.currentNode;){const t=k.currentNode;if(E(t,k),m(t)&&k.firstChild())d+=1;else{O(t);if(!k.nextSibling()){d-=1;const t=k.parentNode();if(!t)break;p.add(t)}}}return l}const l=new URL(window.location.href).searchParams.get("wtr-session-id");function d(t){return null!=t&&"object"==typeof t}async function p(t,e,n){if("string"!=typeof l)throw new Error("Unable to execute server commands in a browser not controlled by the test runner. Use the debug option from the watch menu to debug in a controlled browser.");let i;try{const t=await import("../../../../../../../../../__web-dev-server__web-socket.js");({sendMessageWaitForResponse:i}=t)}catch(t){throw new Error("Could not setup web socket connection. Are you executing this test through Web Test Runner?")}try{const o=await i({type:"wtr-command",sessionId:l,command:t,payload:e});if(!o.executed){let e;throw e=n?`Unknown command ${t}. Add the ${n} to your config.`:`Unknown command ${t}. Did you install a plugin to handle this command?`,new Error(e)}return o.result}catch(n){throw new Error(`Error while executing command ${t}${e?` with payload ${JSON.stringify(e)}`:""}: ${n.message}`)}}let w,b;const v=/snapshots\[[^\]]+] = (\n)?(?<content>`[^`]*`)/gm;async function m({cache:t=!0}={}){if(t&&b)return b;const e=await p("get-snapshots",void 0,"snapshotPlugin from @web/test-runner-commands");if("string"!=typeof e?.content)throw new Error("Expected a result as string");const n=`${(t=>([...t.matchAll(v)].forEach((({groups:{content:e}})=>{t=t.replaceAll(e,encodeURIComponent(e))})),t))(e.content)}/* ${Math.random()} */`,i=await import(`data:text/javascript;charset=utf-8,${n}`);if(!i||!d(i.snapshots))throw new Error("Expected snapshot result to be a module that exports an object.");return b=i.snapshots,b}function g(t){const e=[];let n;for(n="hook"===t.type?t.ctx.currentTest:t;n&&n.parent;)n.title&&e.push(n.title),n=n.parent;return e.reverse()}function y(...t){switch(t.length){case 2:{const[e,n]=t;return{message:e,options:n}}case 1:{const[n]=t;return(e=n)&&null!==e&&"object"==typeof e&&("ignoreAttributes"in e||"ignoreTags"in e||"ignoreChildren"in e||"stripEmptyAttributes"in e)?{options:n}:{message:n}}default:return{}}var e}let x;async function j(t,e){return x||await async function(){if(window.axe)x=window.axe;else if("function"!=typeof require){if(await import("./axe.min-2720cd56.esm.js").then((function(t){return t.a})),!window.axe)throw new Error("Error importing axe-core/axe.min.js, are you using a bundler or build tool that doesnt handle es modules?");x=window.axe}else x=require("axe-core/axe.min.js")}(),new Promise(((n,i)=>{x.run(t,e,((t,e)=>{t?i(new Error(t)):n(e)}))}))}var E,O={};E={get exports(){return O},set exports(t){O=t}},function(t){E.exports=t}((function(t,e){var n=e.flag,i=function(t){var e;return a(t)?0===t.length?"empty NodeList":(e=Array.prototype.slice.call(t,0,5).map(i).join(", "),t.length>5?e+"... (+"+(t.length-5)+" more)":e):r(t)?(e=t.tagName.toLowerCase(),t.id&&(e+="#"+t.id),t.className&&(e+="."+String(t.className).replace(/\s+/g,".")),Array.prototype.forEach.call(t.attributes,(function(t){"class"!==t.name&&"id"!==t.name&&(e+="["+t.name+(t.value?'="'+t.value+'"]':"]"))})),e):String(t)},o=function(t,o){var r=n(this,"object"),a=r.getAttribute(t);n(this,"negate")&&void 0!==o||this.assert(!!r.attributes[t],"expected "+i(r)+" to have an attribute #{exp}","expected "+i(r)+" not to have an attribute #{exp}",t),void 0!==o&&this.assert(o===a,"expected "+i(r)+" to have an attribute "+e.inspect(t)+" with the value #{exp}, but the value was #{act}","expected "+i(r)+" not to have an attribute "+e.inspect(t)+" with the value #{act}",o,a),n(this,"object",a)},r=function(t){return 1===t.nodeType},a=function(t){return"[object NodeList]"===Object.prototype.toString.call(t)};e.elToString=i,t.Assertion.addMethod("attr",o),t.Assertion.addMethod("attribute",o),t.Assertion.addMethod("class",(function(t){var e=n(this,"object");if(t instanceof RegExp)return this.assert(Array.from(e.classList).some((function(e){return t.test(e)})),"expected "+i(e)+" to have class matching #{exp}","expected "+i(e)+" not to have class matching #{exp}",t);this.assert(e.classList.contains(t),"expected "+i(e)+" to have class #{exp}","expected "+i(e)+" not to have class #{exp}",t)})),t.Assertion.addMethod("id",(function(t){var e=n(this,"object");this.assert(e.id==t,"expected "+i(e)+" to have id #{exp}","expected "+i(e)+" not to have id #{exp}",t)})),t.Assertion.addMethod("html",(function(t){var e=n(this,"object"),o=n(this,"object").innerHTML;n(this,"contains")?this.assert(o.indexOf(t)>=0,"expected #{act} to contain HTML #{exp}","expected #{act} not to contain HTML #{exp}",t,o):this.assert(o===t,"expected "+i(e)+" to have HTML #{exp}, but the HTML was #{act}","expected "+i(e)+" not to have HTML #{exp}",t,o)})),t.Assertion.addChainableMethod("trimmed",null,(function(){n(this,"trim-text",!0)})),t.Assertion.addProperty("rendered",(function(){n(this,"rendered-text",!0)})),t.Assertion.addMethod("text",(function(t){var o,r,s=n(this,"object"),c=n(this,"contains"),u=n(this,"trim-text"),f=n(this,"rendered-text")?"innerText":"textContent";a(s)?(o=Array.prototype.map.call(s,(function(t){return u?t[f].trim():t[f]})),Array.isArray(t)?(r=c?t[n(this,"negate")?"some":"every"]((function(t){return Array.prototype.some.call(s,(function(e){return(u?e[f].trim():e[f])===t}))})):e.eql(o,t),o=o.join(),t=t.join()):(o=o.join(""),r=c?o.indexOf(t)>=0:o===t)):(o=u?s[f].trim():s[f],r=c?o.indexOf(t)>=0:o===t);var h=i(s),l="";u&&(l+="trimmed "),n(this,"rendered-text")&&(l+="rendered "),l+="text",c?this.assert(r,"expected "+h+" to contain #{exp}, but the "+l+" was #{act}","expected "+h+" not to contain #{exp}, but the "+l+" was #{act}",t,o):this.assert(r,"expected "+h+" to have "+l+" #{exp}, but the "+l+" was #{act}","expected "+h+" not to have "+l+" #{exp}",t,o)})),t.Assertion.addMethod("value",(function(t){var e=n(this,"object"),o=n(this,"object").value;this.assert(n(this,"object").value===t,"expected "+i(e)+" to have value #{exp}, but the value was #{act}","expected "+i(e)+" not to have value #{exp}",t,o)})),t.Assertion.overwriteProperty("exist",(function(t){return function(){var e=n(this,"object");a(e)?this.assert(e.length>0,"expected an empty NodeList to have nodes","expected "+i(e)+" to not exist"):t.apply(this,arguments)}})),t.Assertion.overwriteProperty("empty",(function(t){return function(){var e=n(this,"object");r(e)?this.assert(0===e.children.length,"expected "+i(e)+" to be empty","expected "+i(e)+" to not be empty"):a(e)?this.assert(0===e.length,"expected "+i(e)+" to be empty","expected "+i(e)+" to not be empty"):t.apply(this,arguments)}})),t.Assertion.overwriteChainableMethod("length",(function(t){return function(e){var o=n(this,"object");if(a(o)||r(o)){var s=o.children?o.children.length:o.length;this.assert(s===e,"expected "+i(o)+" to have #{exp} children but it had #{act} children","expected "+i(o)+" to not have #{exp} children",e,s)}else t.apply(this,arguments)}}),(function(t){return function(){t.call(this)}})),t.Assertion.overwriteMethod("match",(function(t){return function(e){var o=n(this,"object");r(o)?this.assert(o.matches(e),"expected "+i(o)+" to match #{exp}","expected "+i(o)+" to not match #{exp}",e):a(o)?this.assert(!!o.length&&Array.prototype.every.call(o,(function(t){return t.matches(e)})),"expected "+i(o)+" to match #{exp}","expected "+i(o)+" to not match #{exp}",e):t.apply(this,arguments)}})),t.Assertion.overwriteChainableMethod("contain",(function(t){return function(e){var o=n(this,"object");r(o)?"string"==typeof e?this.assert(!!o.querySelector(e),"expected "+i(o)+" to contain #{exp}","expected "+i(o)+" to not contain #{exp}",e):this.assert(o.contains(e),"expected "+i(o)+" to contain "+i(e),"expected "+i(o)+" to not contain "+i(e)):t.apply(this,arguments)}}),(function(t){return function(){t.call(this)}})),t.Assertion.addMethod("descendant",(function(t){var e=n(this,"object"),o=t;"string"==typeof t?(o=e.querySelector(t),this.assert(!!o,"expected "+i(e)+" to have descendant #{exp}","expected "+i(e)+" to not have descendant #{exp}",t)):this.assert(e.contains(t),"expected "+i(e)+" to contain "+i(t),"expected "+i(e)+" to not contain "+i(t)),n(this,"object",o)})),t.Assertion.addMethod("descendants",(function(t){var e=n(this,"object"),o=e.querySelectorAll(t);this.assert(!!o.length,"expected "+i(e)+" to have descendants #{exp}","expected "+i(e)+" to not have descendants #{exp}",t),n(this,"object",o)})),t.Assertion.addProperty("displayed",(function(){var t=n(this,"object"),e=document.body.contains(t)?window.getComputedStyle(t).display:t.style.display;this.assert("none"!==e,"expected "+i(t)+" to be displayed, but it was not","expected "+i(t)+" to not be displayed, but it was as "+e,e)})),t.Assertion.addProperty("visible",(function(){var t=n(this,"object"),e=document.body.contains(t)?window.getComputedStyle(t).visibility:t.style.visibility;this.assert("hidden"!==e&&"collapse"!==e,"expected "+i(t)+" to be visible, but it was "+("hidden"===e?"hidden":"collapsed"),"expected "+i(t)+" to not be visible, but it was",e)})),t.Assertion.addMethod("tagName",(function(t){var e=n(this,"object"),o=e.tagName;this.assert(o.toUpperCase()===t.toUpperCase(),"expected "+i(e)+" to have tagName "+t+", but it was "+o,"expected "+i(e)+" to not have tagName "+t+", but it was "+o,o)})),t.Assertion.addMethod("style",(function(t,e){var o=n(this,"object"),r=window.getComputedStyle(o).getPropertyValue(t).trim();this.assert(r===e,"expected "+i(o)+" to have style property "+t+" equal to "+e+", but it was equal to "+r,"expected "+i(o)+" to not have style property "+t+" equal to "+e+", but it was equal to "+r,r)})),t.Assertion.overwriteProperty("focus",(function(){return function(){var t=n(this,"object"),e=t.ownerDocument.activeElement;this.assert(t===t.ownerDocument.activeElement,"expected #{this} to have focus","expected #{this} not to have focus",t,e)}})),t.Assertion.overwriteProperty("checked",(function(){return function(){var t=n(this,"object");if(!(t instanceof HTMLInputElement)||"checkbox"!==t.type&&"radio"!==t.type)throw new TypeError(i(t)+" is not a checkbox or radio input");this.assert(t.checked,"expected "+i(t)+" to be checked","expected "+i(t)+" to not be checked")}}))}));var S=O;var k={};!function(t){!function(e){t.exports=e}((function(t,e){var n,i,o,r=Array.prototype.slice;function a(t){return"function"==typeof t&&"function"==typeof t.getCall&&"function"==typeof t.calledWithExactly}function s(t){switch(t){case 1:return"once";case 2:return"twice";case 3:return"thrice";default:return(t||0)+" times"}}function c(t){if(!a(t._obj)&&(!(n=t._obj)||!a(n.proxy)))throw new TypeError(e.inspect(t._obj)+" is not a spy or a call to a spy!");var n}function u(t,e,n,i,o){var r=i?"always have ":"have ";function s(e){return t.printf.apply(t,e)}return n=n||"",a(t.proxy)&&(t=t.proxy),{affirmative:function(){return s(["expected %n to "+r+e+n].concat(o))},negative:function(){return s(["expected %n to not "+r+e].concat(o))}}}function f(n,i,o){e.addProperty(t.Assertion.prototype,n,(function(){c(this);var t=u(this._obj,i,o,!1);this.assert(this._obj[n],t.affirmative,t.negative)}))}function h(t,n,i){return function(){c(this);var o="always"+t[0].toUpperCase()+t.substring(1),a=e.flag(this,"always")&&"function"==typeof this._obj[o],s=a?o:t,f=u(this._obj,n,i,a,r.call(arguments));this.assert(this._obj[s].apply(this._obj,arguments),f.affirmative,f.negative)}}function l(n,i,o,r){var a=h(i,o,r);e.addMethod(t.Assertion.prototype,n,a)}function d(t,e,n){l(t,t,e,n)}e.addProperty(t.Assertion.prototype,"always",(function(){e.flag(this,"always",!0)})),f("called","been called"," at least once, but it was never called"),n="callCount",i="been called exactly %1",o=", but it was called %c%C",e.addMethod(t.Assertion.prototype,n,(function(t){c(this);var e=u(this._obj,i,o,!1,[s(t)]);this.assert(this._obj[n]===t,e.affirmative,e.negative)})),f("calledOnce","been called exactly once",", but it was called %c%C"),f("calledTwice","been called exactly twice",", but it was called %c%C"),f("calledThrice","been called exactly thrice",", but it was called %c%C"),function(n,i,o){var r=h(n,i,o);e.addProperty(t.Assertion.prototype,n,r)}("calledWithNew","been called with new"),d("calledBefore","been called before %1"),d("calledAfter","been called after %1"),d("calledImmediatelyBefore","been called immediately before %1"),d("calledImmediatelyAfter","been called immediately after %1"),d("calledOn","been called with %1 as this",", but it was called with %t instead"),d("calledWith","been called with arguments %*","%D"),d("calledOnceWith","been called exactly once with arguments %*","%D"),d("calledWithExactly","been called with exact arguments %*","%D"),d("calledOnceWithExactly","been called exactly once with exact arguments %*","%D"),d("calledWithMatch","been called with arguments matching %*","%D"),d("returned","returned %1"),l("thrown","threw","thrown %1")}))}({get exports(){return k},set exports(t){k=t}});var A=k;function D(t){return new Promise((e=>{setTimeout(e,t)}))}function T(t,e){return new Promise((n=>{t.addEventListener(e,(function i(o){n(o),t.removeEventListener(e,i)}))}))}function M(t,e,n={}){const{interval:i=50,timeout:o=1e3}=n,{stack:r}=new Error;return new Promise(((n,a)=>{let s;setTimeout((()=>{clearTimeout(s);const t=new Error(e?`Timeout: ${e}`:`waitUntil timed out after ${o}ms`);t.stack=r,a(t)}),o),async function e(){try{await t()?n():s=setTimeout((()=>{e()}),i)}catch(t){a(t)}}()}))}a.use(((t,e)=>{t.Assertion.addProperty("lightDom",(function(){new t.Assertion(this._obj.nodeType).to.equal(1),e.flag(this,"lightDom",!0)})),t.Assertion.addProperty("shadowDom",(function(){new t.Assertion(this._obj.nodeType).to.equal(1),e.flag(this,"shadowDom",!0)})),t.Assertion.addProperty("dom",(function(){new t.Assertion(this._obj.nodeType).to.equal(1),e.flag(this,"dom",!0)}));const n=t=>(t=>{if(window.ShadyCSS&&!1===window.ShadyCSS.nativeShadow){const e=t.tagName.toLowerCase();let n=" ";return Array.prototype.slice.call(t.attributes).forEach((t=>{n+=`${t.name}="${t.value}" `})),n=n.slice(0,-1),`<${e}${n}>${t.innerHTML}</${e}>`}return t.outerHTML})(t),i=t=>t.innerHTML,o=t=>(t=>{if(window.ShadyCSS&&!1===window.ShadyCSS.nativeShadow){const e=t.tagName.toLowerCase(),n=new RegExp(e,"g");let i=t.shadowRoot.innerHTML;return i=i.replace(/style-scope/g,""),i=i.replace(n,""),i=i.replace(/(class=".*?)(\s)*"/g,'$1"'),i=i.replace(/ class="\w?"/g,""),i}return t.shadowRoot.innerHTML})(t),r=(e,n,i,...o)=>{const{message:r,options:a}=y(...o),s=new t.Assertion(h(e,a),r),c=h(n,a);i?s.not.equal(c,r):s.equal(c,r)},a=t=>function(a,...s){if(e.flag(this,"lightDom")||e.flag(this,"shadowDom")||e.flag(this,"dom")){let t;t=e.flag(this,"lightDom")?i(this._obj):e.flag(this,"shadowDom")?o(this._obj):n(this._obj),r(t,a,e.flag(this,"negate"),s[0])}else t.apply(this,[a,...s])};function s(e,n,...i){const o=window.__mocha_context__,r=window.__snapshot__,{message:a,options:s}=y(...i),{index:c}=o;o.index+=1;const u=g(o.runnable),f=h(e,s);if(r.update)r.set(u,c,f,"html");else{const e=r.get(u,c);if(e){const i=r.match(f,h(e.code,s));if(i&&n||!i&&!n)throw new t.AssertionError(a||`Received value does not match stored snapshot ${c}`,{actual:f,expected:e.code,showDiff:!0},t.util.flag(this,"ssfi"))}else r.set(u,c,f,"html")}}async function c(e,n,...i){const{message:o,options:r}=y(...i),a=g(window.__WTR_MOCHA_RUNNER__.test).join(" "),s=h(e,r),c=await async function(t){if(!d(t))throw new Error("You must provide a payload object");if("string"!=typeof t.name)throw new Error("You must provide a snapshot name");return(await m(t))[t.name]}({name:a}),u=await async function(){return w||(w=await p("get-snapshot-config",void 0,"snapshotPlugin from @web/test-runner-commands")),w}();if(c&&!u.updateSnapshots){if(n?c===s:c!==s)throw new t.AssertionError(o||`Snapshot ${a} does not match the saved snapshot on disk`,{actual:s,expected:c,showDiff:!0},t.util.flag(this,"ssfi"))}else c!==s&&await async function(t){if(!d(t))throw new Error("You must provide a payload object");if("string"!=typeof t.name)throw new Error("You must provide a snapshot name");if(void 0!==t.content&&"string"!=typeof t.content)throw new Error("You must provide a snapshot content");return(await m())[t.name]=t.content,p("save-snapshot",t,"snapshotPlugin from @web/test-runner-commands")}({name:a,content:s})}function u(t,e,...n){if(window.__mocha_context__&&window.__snapshot__)return s.call(this,t,e,...n);if(window.__WTR_MOCHA_RUNNER__)return c.call(this,t,e,...n);throw new Error("Could not detect test runner environment. Snapshots require either Web Test Runner with mocha, or Karma with mocha and karma mocha snapshot")}function f(n){const r=t.util.flag(this,"object");let a;return a=e.flag(this,"shadowDom")?o(r):e.flag(this,"lightDom")?i(r):r,u.call(this,a,e.flag(this,"negate"),n)}t.Assertion.overwriteMethod("equals",a),t.Assertion.overwriteMethod("equal",a),t.Assertion.overwriteMethod("eq",a),e.addMethod(t.Assertion.prototype,"equalSnapshot",f),e.addMethod(t.Assertion.prototype,"notEqualSnapshot",f),e.addMethod(t.assert,"equalSnapshot",u),e.addMethod(t.assert,"notEqualSnapshot",u),t.assert.dom={equal(t,e,...i){return r.call(this,n(t),e,!1,...i)},notEqual(t,e,...i){return r.call(this,n(t),e,!0,...i)},equalSnapshot(t,...e){return u.call(this,t,!1,...e)},notEqualSnapshot(t,...e){return u.call(this,t,!0,...e)}},t.assert.lightDom={equal(t,e,...n){return r.call(this,i(t),e,!1,...n)},notEqual(t,e,...n){return r.call(this,i(t),e,!0,...n)},equalSnapshot(t,...e){return u.call(this,i(t),!1,...e)},notEqualSnapshot(t,...e){return u.call(this,i(t),!0,...e)}},t.assert.shadowDom={equal(t,e,...n){return r.call(this,o(t),e,!1,...n)},notEqual(t,e,...n){return r.call(this,o(t),e,!0,...n)},equalSnapshot(t,...e){return u.call(this,o(t),!1,...e)},notEqualSnapshot(t,...e){return u.call(this,o(t),!0,...e)}}})),a.use(((t,e)=>{const{assert:n}=t;e.addMethod(t.Assertion.prototype,"accessible",(function(t){const n=this._obj,i=t||{},o=function(t){if(!t||!t.length)return;const e={};return t.forEach((t=>{e[t]={enabled:!1}})),e}(i.ignoredRules),r={resultTypes:["violations"]};o&&(r.rules=o);let a=i.done?i.done:void 0;if(a||(a=()=>{}),i.ignoredTags){n.parentNode.querySelectorAll(i.ignoredTags.toString()).forEach((t=>t.setAttribute("aria-hidden",!0)))}const s=j(n,r).then((t=>function(t,e,n){const{violations:i}=e;if(i.length&&t)return void n();if(!i.length&&!t)return void n();const o=[];i.length&&(o[o.length]="Accessibility Violations",o[o.length]="---",i.forEach((t=>{o[o.length]=`Rule: ${t.id}`,o[o.length]=`Impact: ${t.impact}`,o[o.length]=`${t.help} (${t.helpUrl})`,t.nodes.forEach((t=>{o[o.length]="",t.target&&(o[o.length]=`Issue target: ${t.target}`),o[o.length]=`Context: ${t.html}`,t.failureSummary&&(o[o.length]=`${t.failureSummary}`)})),o[o.length]="---"})));const r=new Error(o.join("\n"));throw n(r),r}(e.flag(this,"negate"),t,a)));return this.then=s.then.bind(s),this})),n.isAccessible=function(e,n){return new t.Assertion(e).to.be.accessible(n)},n.isNotAccessible=function(e,n){return new t.Assertion(e).not.to.be.accessible(n)}})),a.use(S),a.use(A);const q=t=>"object"==typeof t&&Promise.resolve(t)===t;async function $(t){let e=!1,n=t&&t.updateComplete;return q(n)&&(await n,e=!0),n=!(!t||!t.componentOnReady)&&t.componentOnReady(),q(n)&&(await n,e=!0),e||await new Promise((t=>{requestAnimationFrame((()=>t()))})),window.ShadyDOM&&"function"==typeof window.ShadyDOM.flush&&window.ShadyDOM.flush(),t}const P=[];function N(t=document.createElement("div")){return document.body.appendChild(t),P.push(t),t}function F(){P&&P.forEach((t=>{document.body.removeChild(t)})),P.length=0}function L(t){return i(t)||t instanceof Node||"number"==typeof t||"boolean"==typeof t||"string"==typeof t}function C(t){return null!=(e=t)&&"function"==typeof e[Symbol.iterator]?[...t].every(L):L(t);var e}const R=Object.freeze({ELEMENT_NODE:1,TEXT_NODE:3,COMMENT_NODE:8,DOCUMENT_FRAGMENT_NODE:11}),I=({nodeType:t,textContent:e})=>{switch(t){case R.COMMENT_NODE:return!1;case R.TEXT_NODE:return e.trim();default:return!0}};async function _(t,e={}){const o=function(t,e={},o){const r=N(e.parentNode);if((e.render??n)(e.scopedElements?o(t,e.scopedElements):t,r),i(t))return r.firstElementChild;const[a]=Array.from(r.childNodes).filter(I);return a}(t,e,e.scopedElements?await import("./scopedElementsWrapper-4c29be11.esm.js").then((t=>t.getScopedElementsTemplate)):void 0);if(await $(o),e.scopedElements){const[t]=Array.from(o.shadowRoot.childNodes).filter(I);return await $(t),t}return o}async function U(n,i={}){if(i.scopedElements)return _(t`${e(n)}`,i);const o=function(t,e={}){const n=N(e.parentNode);return n.innerHTML=t,n.children[0]}(n,i);return await $(o),o}async function W(t,e){if("string"==typeof t)return U(t,e);if(e?.render||C(t))return _(t,e);throw new Error("Invalid template provided - string or lit-html TemplateResult is supported")}try{"afterEach"in window&&afterEach((()=>{F()})),"teardown"in window&&teardown((()=>{F()}))}catch(t){}export{s as a,D as b,$ as e,W as f,T as o,M as w};
|
569
|
+
*/function w(t){var e=[];for(var n in t)e.push(n);return e}function b(t){return null===t||"object"!=typeof t}e.exports=c,e.exports.MemoizeMap=r},{"type-detect":39}],37:[function(t,e,n){var i=Function.prototype.toString,o=/\s*function(?:\s|\s*\/\*[^(?:*\/)]+\*\/\s*)*([^\s\(\/]+)/;e.exports=function(t){if("function"!=typeof t)return null;var e="";if(void 0===Function.prototype.name&&void 0===t.name){var n=i.call(t).match(o);n&&(e=n[1])}else e=t.name;return e}},{}],38:[function(t,e,n){function i(t,e){return null!=t&&e in Object(t)}function o(t){return t.replace(/([^\\])\[/g,"$1.[").match(/(\\\.|[^.]+?)+/g).map((function(t){if("constructor"===t||"__proto__"===t||"prototype"===t)return{};var e=/^\[(\d+)\]$/.exec(t);return e?{i:parseFloat(e[1])}:{p:t.replace(/\\([.[\]])/g,"$1")}}))}function r(t,e,n){var i=t,o=null;n=void 0===n?e.length:n;for(var r=0;r<n;r++){var a=e[r];i&&(i=void 0===a.p?i[a.i]:i[a.p],r===n-1&&(o=i))}return o}function a(t,e){var n=o(e),a=n[n.length-1],s={parent:n.length>1?r(t,n,n.length-1):t,name:a.p||a.i,value:r(t,n)};return s.exists=i(s.parent,s.name),s}e.exports={hasProperty:i,getPathInfo:a,getPathValue:function(t,e){return a(t,e).value},setPathValue:function(t,e,n){return function(t,e,n){for(var i=t,o=n.length,r=null,a=0;a<o;a++){var s=null,c=null;if(r=n[a],a===o-1)i[s=void 0===r.p?r.i:r.p]=e;else if(void 0!==r.p&&i[r.p])i=i[r.p];else if(void 0!==r.i&&i[r.i])i=i[r.i];else{var u=n[a+1];s=void 0===r.p?r.i:r.p,c=void 0===u.p?[]:{},i[s]=c,i=i[s]}}}(t,n,o(e)),t}}},{}],39:[function(t,e,n){!function(t,i){"object"==typeof n&&void 0!==e?e.exports=i():t.typeDetect=i()}(this,(function(){var t="function"==typeof Promise,e="object"==typeof self?self:o,n="undefined"!=typeof Symbol,i="undefined"!=typeof Map,r="undefined"!=typeof Set,a="undefined"!=typeof WeakMap,s="undefined"!=typeof WeakSet,c="undefined"!=typeof DataView,u=n&&void 0!==Symbol.iterator,f=n&&void 0!==Symbol.toStringTag,h=r&&"function"==typeof Set.prototype.entries,l=i&&"function"==typeof Map.prototype.entries,d=h&&Object.getPrototypeOf((new Set).entries()),p=l&&Object.getPrototypeOf((new Map).entries()),w=u&&"function"==typeof Array.prototype[Symbol.iterator],b=w&&Object.getPrototypeOf([][Symbol.iterator]()),v=u&&"function"==typeof String.prototype[Symbol.iterator],m=v&&Object.getPrototypeOf(""[Symbol.iterator]());return function(n){var o=typeof n;if("object"!==o)return o;if(null===n)return"null";if(n===e)return"global";if(Array.isArray(n)&&(!1===f||!(Symbol.toStringTag in n)))return"Array";if("object"==typeof window&&null!==window){if("object"==typeof window.location&&n===window.location)return"Location";if("object"==typeof window.document&&n===window.document)return"Document";if("object"==typeof window.navigator){if("object"==typeof window.navigator.mimeTypes&&n===window.navigator.mimeTypes)return"MimeTypeArray";if("object"==typeof window.navigator.plugins&&n===window.navigator.plugins)return"PluginArray"}if(("function"==typeof window.HTMLElement||"object"==typeof window.HTMLElement)&&n instanceof window.HTMLElement){if("BLOCKQUOTE"===n.tagName)return"HTMLQuoteElement";if("TD"===n.tagName)return"HTMLTableDataCellElement";if("TH"===n.tagName)return"HTMLTableHeaderCellElement"}}var u=f&&n[Symbol.toStringTag];if("string"==typeof u)return u;var h=Object.getPrototypeOf(n);return h===RegExp.prototype?"RegExp":h===Date.prototype?"Date":t&&h===Promise.prototype?"Promise":r&&h===Set.prototype?"Set":i&&h===Map.prototype?"Map":s&&h===WeakSet.prototype?"WeakSet":a&&h===WeakMap.prototype?"WeakMap":c&&h===DataView.prototype?"DataView":i&&h===p?"Map Iterator":r&&h===d?"Set Iterator":w&&h===b?"Array Iterator":v&&h===m?"String Iterator":null===h?"Object":Object.prototype.toString.call(n).slice(8,-1)}}))},{}]},{},[1])(1);a.version,a.AssertionError,a.use,a.util,a.config,a.Assertion;var s=a.expect;a.should,a.Should,a.assert;const c=["script","style","svg"],u=["class","id"],f=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"];function h(t,e={}){const n=e.ignoreAttributes?e.ignoreAttributes.filter((t=>"string"==typeof t)):[],i=e.ignoreAttributes?e.ignoreAttributes.filter((t=>"string"!=typeof t)):[],o=[...e.ignoreTags||[],...c],r=e.ignoreChildren||[],a=e.stripEmptyAttributes||u,s=/(&|")/g,h=t=>"&"===t?"&":""";let l="",d=-1;const p=new Set,w=new Set;function b(){return" ".repeat(d)}function v(t){return t instanceof Element?t.getAttribute("data-tag-name")||t.localName:t.nodeName.toLowerCase()}function m(t){const e=v(t);return!o.includes(e)&&!r.includes(e)&&!p.has(t)}function g({name:t,value:e}){return a.includes(t)&&""===e.trim()}function y(t,{name:e,value:n}){return g({name:e,value:n})?"":"class"===e?` class="${function(t){return[...t.classList.values()].sort().join(" ")}(t)}"`:` ${e}="${n.replace(s,h)}"`}const x=(t,e)=>t.name.localeCompare(e.name);function j(t){let e="";const o=Array.from(t.attributes).filter((r=function(t){return function(e){return!(!n.includes(e.name)&&!g(e)&&!i.find((n=>{if(!n.tags||!n.attributes)throw new Error("An object entry to ignoreAttributes should contain a 'tags' and an 'attributes' property.");return n.tags.includes(v(t))&&n.attributes.includes(e.name)})))}}(t),(...t)=>!r(...t))).sort(x);var r;if(1===o.length)e=y(t,o[0]);else if(o.length>1){for(let n=0;n<o.length;n+=1)e+=`\n${b()} ${y(t,o[n])}`;e+=`\n${b()}`}return e}function E(t,e){var n;if("diff-container"!==v(t)&&!o.includes(v(t))&&!w.has(t))if(w.add(t),t instanceof Text)!function(t,e){let n="",i=t;for(;i&&i instanceof Text;)n+=i.nodeValue,i=e.nextSibling();i&&e.previousSibling(),n=n.trim(),""!==n&&(l+=`${b()}${n}\n`)}(t,e);else{if(!(t instanceof Element))throw new Error(`Unknown node type: ${t}`);n=t,l+=`${b()}<${v(n)}${j(n)}>\n`}}function O(t){var e;o.includes(v(t))||t instanceof Element&&("diff-container"===v(e=t)||f.includes(v(e))||(l+=`${b()}</${v(e)}>\n`))}let S;if("string"==typeof t)S=document.createElement("diff-container"),S.innerHTML=t,d=-1;else{if(!(t instanceof Node))throw new Error(`Cannot create diffable HTML from: ${t}`);S=t,d=0}const k=document.createTreeWalker(S,NodeFilter.SHOW_TEXT+NodeFilter.SHOW_ELEMENT,null,!1);for(;k.currentNode;){const t=k.currentNode;if(E(t,k),m(t)&&k.firstChild())d+=1;else{O(t);if(!k.nextSibling()){d-=1;const t=k.parentNode();if(!t)break;p.add(t)}}}return l}const l=new URL(window.location.href).searchParams.get("wtr-session-id");function d(t){return null!=t&&"object"==typeof t}async function p(t,e,n){if("string"!=typeof l)throw new Error("Unable to execute server commands in a browser not controlled by the test runner. Use the debug option from the watch menu to debug in a controlled browser.");let i;try{const t=await import("../../../../../../__web-dev-server__web-socket.js");({sendMessageWaitForResponse:i}=t)}catch(t){throw new Error("Could not setup web socket connection. Are you executing this test through Web Test Runner?")}try{const o=await i({type:"wtr-command",sessionId:l,command:t,payload:e});if(!o.executed){let e;throw e=n?`Unknown command ${t}. Add the ${n} to your config.`:`Unknown command ${t}. Did you install a plugin to handle this command?`,new Error(e)}return o.result}catch(n){throw new Error(`Error while executing command ${t}${e?` with payload ${JSON.stringify(e)}`:""}: ${n.message}`)}}let w,b;const v=/snapshots\[[^\]]+] = (\n)?(?<content>`[^`]*`)/gm;async function m({cache:t=!0}={}){if(t&&b)return b;const e=await p("get-snapshots",void 0,"snapshotPlugin from @web/test-runner-commands");if("string"!=typeof e?.content)throw new Error("Expected a result as string");const n=`${(t=>([...t.matchAll(v)].forEach((({groups:{content:e}})=>{t=t.replaceAll(e,encodeURIComponent(e))})),t))(e.content)}/* ${Math.random()} */`,i=await import(`data:text/javascript;charset=utf-8,${n}`);if(!i||!d(i.snapshots))throw new Error("Expected snapshot result to be a module that exports an object.");return b=i.snapshots,b}function g(t){const e=[];let n;for(n="hook"===t.type?t.ctx.currentTest:t;n&&n.parent;)n.title&&e.push(n.title),n=n.parent;return e.reverse()}function y(...t){switch(t.length){case 2:{const[e,n]=t;return{message:e,options:n}}case 1:{const[n]=t;return(e=n)&&null!==e&&"object"==typeof e&&("ignoreAttributes"in e||"ignoreTags"in e||"ignoreChildren"in e||"stripEmptyAttributes"in e)?{options:n}:{message:n}}default:return{}}var e}let x;async function j(t,e){return x||await async function(){if(window.axe)x=window.axe;else if("function"!=typeof require){if(await import("./axe.min-2720cd56.esm.js").then((function(t){return t.a})),!window.axe)throw new Error("Error importing axe-core/axe.min.js, are you using a bundler or build tool that doesnt handle es modules?");x=window.axe}else x=require("axe-core/axe.min.js")}(),new Promise(((n,i)=>{x.run(t,e,((t,e)=>{t?i(new Error(t)):n(e)}))}))}var E,O={};E={get exports(){return O},set exports(t){O=t}},function(t){E.exports=t}((function(t,e){var n=e.flag,i=function(t){var e;return a(t)?0===t.length?"empty NodeList":(e=Array.prototype.slice.call(t,0,5).map(i).join(", "),t.length>5?e+"... (+"+(t.length-5)+" more)":e):r(t)?(e=t.tagName.toLowerCase(),t.id&&(e+="#"+t.id),t.className&&(e+="."+String(t.className).replace(/\s+/g,".")),Array.prototype.forEach.call(t.attributes,(function(t){"class"!==t.name&&"id"!==t.name&&(e+="["+t.name+(t.value?'="'+t.value+'"]':"]"))})),e):String(t)},o=function(t,o){var r=n(this,"object"),a=r.getAttribute(t);n(this,"negate")&&void 0!==o||this.assert(!!r.attributes[t],"expected "+i(r)+" to have an attribute #{exp}","expected "+i(r)+" not to have an attribute #{exp}",t),void 0!==o&&this.assert(o===a,"expected "+i(r)+" to have an attribute "+e.inspect(t)+" with the value #{exp}, but the value was #{act}","expected "+i(r)+" not to have an attribute "+e.inspect(t)+" with the value #{act}",o,a),n(this,"object",a)},r=function(t){return 1===t.nodeType},a=function(t){return"[object NodeList]"===Object.prototype.toString.call(t)};e.elToString=i,t.Assertion.addMethod("attr",o),t.Assertion.addMethod("attribute",o),t.Assertion.addMethod("class",(function(t){var e=n(this,"object");if(t instanceof RegExp)return this.assert(Array.from(e.classList).some((function(e){return t.test(e)})),"expected "+i(e)+" to have class matching #{exp}","expected "+i(e)+" not to have class matching #{exp}",t);this.assert(e.classList.contains(t),"expected "+i(e)+" to have class #{exp}","expected "+i(e)+" not to have class #{exp}",t)})),t.Assertion.addMethod("id",(function(t){var e=n(this,"object");this.assert(e.id==t,"expected "+i(e)+" to have id #{exp}","expected "+i(e)+" not to have id #{exp}",t)})),t.Assertion.addMethod("html",(function(t){var e=n(this,"object"),o=n(this,"object").innerHTML;n(this,"contains")?this.assert(o.indexOf(t)>=0,"expected #{act} to contain HTML #{exp}","expected #{act} not to contain HTML #{exp}",t,o):this.assert(o===t,"expected "+i(e)+" to have HTML #{exp}, but the HTML was #{act}","expected "+i(e)+" not to have HTML #{exp}",t,o)})),t.Assertion.addChainableMethod("trimmed",null,(function(){n(this,"trim-text",!0)})),t.Assertion.addProperty("rendered",(function(){n(this,"rendered-text",!0)})),t.Assertion.addMethod("text",(function(t){var o,r,s=n(this,"object"),c=n(this,"contains"),u=n(this,"trim-text"),f=n(this,"rendered-text")?"innerText":"textContent";a(s)?(o=Array.prototype.map.call(s,(function(t){return u?t[f].trim():t[f]})),Array.isArray(t)?(r=c?t[n(this,"negate")?"some":"every"]((function(t){return Array.prototype.some.call(s,(function(e){return(u?e[f].trim():e[f])===t}))})):e.eql(o,t),o=o.join(),t=t.join()):(o=o.join(""),r=c?o.indexOf(t)>=0:o===t)):(o=u?s[f].trim():s[f],r=c?o.indexOf(t)>=0:o===t);var h=i(s),l="";u&&(l+="trimmed "),n(this,"rendered-text")&&(l+="rendered "),l+="text",c?this.assert(r,"expected "+h+" to contain #{exp}, but the "+l+" was #{act}","expected "+h+" not to contain #{exp}, but the "+l+" was #{act}",t,o):this.assert(r,"expected "+h+" to have "+l+" #{exp}, but the "+l+" was #{act}","expected "+h+" not to have "+l+" #{exp}",t,o)})),t.Assertion.addMethod("value",(function(t){var e=n(this,"object"),o=n(this,"object").value;this.assert(n(this,"object").value===t,"expected "+i(e)+" to have value #{exp}, but the value was #{act}","expected "+i(e)+" not to have value #{exp}",t,o)})),t.Assertion.overwriteProperty("exist",(function(t){return function(){var e=n(this,"object");a(e)?this.assert(e.length>0,"expected an empty NodeList to have nodes","expected "+i(e)+" to not exist"):t.apply(this,arguments)}})),t.Assertion.overwriteProperty("empty",(function(t){return function(){var e=n(this,"object");r(e)?this.assert(0===e.children.length,"expected "+i(e)+" to be empty","expected "+i(e)+" to not be empty"):a(e)?this.assert(0===e.length,"expected "+i(e)+" to be empty","expected "+i(e)+" to not be empty"):t.apply(this,arguments)}})),t.Assertion.overwriteChainableMethod("length",(function(t){return function(e){var o=n(this,"object");if(a(o)||r(o)){var s=o.children?o.children.length:o.length;this.assert(s===e,"expected "+i(o)+" to have #{exp} children but it had #{act} children","expected "+i(o)+" to not have #{exp} children",e,s)}else t.apply(this,arguments)}}),(function(t){return function(){t.call(this)}})),t.Assertion.overwriteMethod("match",(function(t){return function(e){var o=n(this,"object");r(o)?this.assert(o.matches(e),"expected "+i(o)+" to match #{exp}","expected "+i(o)+" to not match #{exp}",e):a(o)?this.assert(!!o.length&&Array.prototype.every.call(o,(function(t){return t.matches(e)})),"expected "+i(o)+" to match #{exp}","expected "+i(o)+" to not match #{exp}",e):t.apply(this,arguments)}})),t.Assertion.overwriteChainableMethod("contain",(function(t){return function(e){var o=n(this,"object");r(o)?"string"==typeof e?this.assert(!!o.querySelector(e),"expected "+i(o)+" to contain #{exp}","expected "+i(o)+" to not contain #{exp}",e):this.assert(o.contains(e),"expected "+i(o)+" to contain "+i(e),"expected "+i(o)+" to not contain "+i(e)):t.apply(this,arguments)}}),(function(t){return function(){t.call(this)}})),t.Assertion.addMethod("descendant",(function(t){var e=n(this,"object"),o=t;"string"==typeof t?(o=e.querySelector(t),this.assert(!!o,"expected "+i(e)+" to have descendant #{exp}","expected "+i(e)+" to not have descendant #{exp}",t)):this.assert(e.contains(t),"expected "+i(e)+" to contain "+i(t),"expected "+i(e)+" to not contain "+i(t)),n(this,"object",o)})),t.Assertion.addMethod("descendants",(function(t){var e=n(this,"object"),o=e.querySelectorAll(t);this.assert(!!o.length,"expected "+i(e)+" to have descendants #{exp}","expected "+i(e)+" to not have descendants #{exp}",t),n(this,"object",o)})),t.Assertion.addProperty("displayed",(function(){var t=n(this,"object"),e=document.body.contains(t)?window.getComputedStyle(t).display:t.style.display;this.assert("none"!==e,"expected "+i(t)+" to be displayed, but it was not","expected "+i(t)+" to not be displayed, but it was as "+e,e)})),t.Assertion.addProperty("visible",(function(){var t=n(this,"object"),e=document.body.contains(t)?window.getComputedStyle(t).visibility:t.style.visibility;this.assert("hidden"!==e&&"collapse"!==e,"expected "+i(t)+" to be visible, but it was "+("hidden"===e?"hidden":"collapsed"),"expected "+i(t)+" to not be visible, but it was",e)})),t.Assertion.addMethod("tagName",(function(t){var e=n(this,"object"),o=e.tagName;this.assert(o.toUpperCase()===t.toUpperCase(),"expected "+i(e)+" to have tagName "+t+", but it was "+o,"expected "+i(e)+" to not have tagName "+t+", but it was "+o,o)})),t.Assertion.addMethod("style",(function(t,e){var o=n(this,"object"),r=window.getComputedStyle(o).getPropertyValue(t).trim();this.assert(r===e,"expected "+i(o)+" to have style property "+t+" equal to "+e+", but it was equal to "+r,"expected "+i(o)+" to not have style property "+t+" equal to "+e+", but it was equal to "+r,r)})),t.Assertion.overwriteProperty("focus",(function(){return function(){var t=n(this,"object"),e=t.ownerDocument.activeElement;this.assert(t===t.ownerDocument.activeElement,"expected #{this} to have focus","expected #{this} not to have focus",t,e)}})),t.Assertion.overwriteProperty("checked",(function(){return function(){var t=n(this,"object");if(!(t instanceof HTMLInputElement)||"checkbox"!==t.type&&"radio"!==t.type)throw new TypeError(i(t)+" is not a checkbox or radio input");this.assert(t.checked,"expected "+i(t)+" to be checked","expected "+i(t)+" to not be checked")}}))}));var S=O;var k={};!function(t){!function(e){t.exports=e}((function(t,e){var n,i,o,r=Array.prototype.slice;function a(t){return"function"==typeof t&&"function"==typeof t.getCall&&"function"==typeof t.calledWithExactly}function s(t){switch(t){case 1:return"once";case 2:return"twice";case 3:return"thrice";default:return(t||0)+" times"}}function c(t){if(!a(t._obj)&&(!(n=t._obj)||!a(n.proxy)))throw new TypeError(e.inspect(t._obj)+" is not a spy or a call to a spy!");var n}function u(t,e,n,i,o){var r=i?"always have ":"have ";function s(e){return t.printf.apply(t,e)}return n=n||"",a(t.proxy)&&(t=t.proxy),{affirmative:function(){return s(["expected %n to "+r+e+n].concat(o))},negative:function(){return s(["expected %n to not "+r+e].concat(o))}}}function f(n,i,o){e.addProperty(t.Assertion.prototype,n,(function(){c(this);var t=u(this._obj,i,o,!1);this.assert(this._obj[n],t.affirmative,t.negative)}))}function h(t,n,i){return function(){c(this);var o="always"+t[0].toUpperCase()+t.substring(1),a=e.flag(this,"always")&&"function"==typeof this._obj[o],s=a?o:t,f=u(this._obj,n,i,a,r.call(arguments));this.assert(this._obj[s].apply(this._obj,arguments),f.affirmative,f.negative)}}function l(n,i,o,r){var a=h(i,o,r);e.addMethod(t.Assertion.prototype,n,a)}function d(t,e,n){l(t,t,e,n)}e.addProperty(t.Assertion.prototype,"always",(function(){e.flag(this,"always",!0)})),f("called","been called"," at least once, but it was never called"),n="callCount",i="been called exactly %1",o=", but it was called %c%C",e.addMethod(t.Assertion.prototype,n,(function(t){c(this);var e=u(this._obj,i,o,!1,[s(t)]);this.assert(this._obj[n]===t,e.affirmative,e.negative)})),f("calledOnce","been called exactly once",", but it was called %c%C"),f("calledTwice","been called exactly twice",", but it was called %c%C"),f("calledThrice","been called exactly thrice",", but it was called %c%C"),function(n,i,o){var r=h(n,i,o);e.addProperty(t.Assertion.prototype,n,r)}("calledWithNew","been called with new"),d("calledBefore","been called before %1"),d("calledAfter","been called after %1"),d("calledImmediatelyBefore","been called immediately before %1"),d("calledImmediatelyAfter","been called immediately after %1"),d("calledOn","been called with %1 as this",", but it was called with %t instead"),d("calledWith","been called with arguments %*","%D"),d("calledOnceWith","been called exactly once with arguments %*","%D"),d("calledWithExactly","been called with exact arguments %*","%D"),d("calledOnceWithExactly","been called exactly once with exact arguments %*","%D"),d("calledWithMatch","been called with arguments matching %*","%D"),d("returned","returned %1"),l("thrown","threw","thrown %1")}))}({get exports(){return k},set exports(t){k=t}});var A=k;function D(t){return new Promise((e=>{setTimeout(e,t)}))}function T(t,e){return new Promise((n=>{t.addEventListener(e,(function i(o){n(o),t.removeEventListener(e,i)}))}))}function M(t,e,n={}){const{interval:i=50,timeout:o=1e3}=n,{stack:r}=new Error;return new Promise(((n,a)=>{let s;setTimeout((()=>{clearTimeout(s);const t=new Error(e?`Timeout: ${e}`:`waitUntil timed out after ${o}ms`);t.stack=r,a(t)}),o),async function e(){try{await t()?n():s=setTimeout((()=>{e()}),i)}catch(t){a(t)}}()}))}a.use(((t,e)=>{t.Assertion.addProperty("lightDom",(function(){new t.Assertion(this._obj.nodeType).to.equal(1),e.flag(this,"lightDom",!0)})),t.Assertion.addProperty("shadowDom",(function(){new t.Assertion(this._obj.nodeType).to.equal(1),e.flag(this,"shadowDom",!0)})),t.Assertion.addProperty("dom",(function(){new t.Assertion(this._obj.nodeType).to.equal(1),e.flag(this,"dom",!0)}));const n=t=>(t=>{if(window.ShadyCSS&&!1===window.ShadyCSS.nativeShadow){const e=t.tagName.toLowerCase();let n=" ";return Array.prototype.slice.call(t.attributes).forEach((t=>{n+=`${t.name}="${t.value}" `})),n=n.slice(0,-1),`<${e}${n}>${t.innerHTML}</${e}>`}return t.outerHTML})(t),i=t=>t.innerHTML,o=t=>(t=>{if(window.ShadyCSS&&!1===window.ShadyCSS.nativeShadow){const e=t.tagName.toLowerCase(),n=new RegExp(e,"g");let i=t.shadowRoot.innerHTML;return i=i.replace(/style-scope/g,""),i=i.replace(n,""),i=i.replace(/(class=".*?)(\s)*"/g,'$1"'),i=i.replace(/ class="\w?"/g,""),i}return t.shadowRoot.innerHTML})(t),r=(e,n,i,...o)=>{const{message:r,options:a}=y(...o),s=new t.Assertion(h(e,a),r),c=h(n,a);i?s.not.equal(c,r):s.equal(c,r)},a=t=>function(a,...s){if(e.flag(this,"lightDom")||e.flag(this,"shadowDom")||e.flag(this,"dom")){let t;t=e.flag(this,"lightDom")?i(this._obj):e.flag(this,"shadowDom")?o(this._obj):n(this._obj),r(t,a,e.flag(this,"negate"),s[0])}else t.apply(this,[a,...s])};function s(e,n,...i){const o=window.__mocha_context__,r=window.__snapshot__,{message:a,options:s}=y(...i),{index:c}=o;o.index+=1;const u=g(o.runnable),f=h(e,s);if(r.update)r.set(u,c,f,"html");else{const e=r.get(u,c);if(e){const i=r.match(f,h(e.code,s));if(i&&n||!i&&!n)throw new t.AssertionError(a||`Received value does not match stored snapshot ${c}`,{actual:f,expected:e.code,showDiff:!0},t.util.flag(this,"ssfi"))}else r.set(u,c,f,"html")}}async function c(e,n,...i){const{message:o,options:r}=y(...i),a=g(window.__WTR_MOCHA_RUNNER__.test).join(" "),s=h(e,r),c=await async function(t){if(!d(t))throw new Error("You must provide a payload object");if("string"!=typeof t.name)throw new Error("You must provide a snapshot name");return(await m(t))[t.name]}({name:a}),u=await async function(){return w||(w=await p("get-snapshot-config",void 0,"snapshotPlugin from @web/test-runner-commands")),w}();if(c&&!u.updateSnapshots){if(n?c===s:c!==s)throw new t.AssertionError(o||`Snapshot ${a} does not match the saved snapshot on disk`,{actual:s,expected:c,showDiff:!0},t.util.flag(this,"ssfi"))}else c!==s&&await async function(t){if(!d(t))throw new Error("You must provide a payload object");if("string"!=typeof t.name)throw new Error("You must provide a snapshot name");if(void 0!==t.content&&"string"!=typeof t.content)throw new Error("You must provide a snapshot content");return(await m())[t.name]=t.content,p("save-snapshot",t,"snapshotPlugin from @web/test-runner-commands")}({name:a,content:s})}function u(t,e,...n){if(window.__mocha_context__&&window.__snapshot__)return s.call(this,t,e,...n);if(window.__WTR_MOCHA_RUNNER__)return c.call(this,t,e,...n);throw new Error("Could not detect test runner environment. Snapshots require either Web Test Runner with mocha, or Karma with mocha and karma mocha snapshot")}function f(n){const r=t.util.flag(this,"object");let a;return a=e.flag(this,"shadowDom")?o(r):e.flag(this,"lightDom")?i(r):r,u.call(this,a,e.flag(this,"negate"),n)}t.Assertion.overwriteMethod("equals",a),t.Assertion.overwriteMethod("equal",a),t.Assertion.overwriteMethod("eq",a),e.addMethod(t.Assertion.prototype,"equalSnapshot",f),e.addMethod(t.Assertion.prototype,"notEqualSnapshot",f),e.addMethod(t.assert,"equalSnapshot",u),e.addMethod(t.assert,"notEqualSnapshot",u),t.assert.dom={equal(t,e,...i){return r.call(this,n(t),e,!1,...i)},notEqual(t,e,...i){return r.call(this,n(t),e,!0,...i)},equalSnapshot(t,...e){return u.call(this,t,!1,...e)},notEqualSnapshot(t,...e){return u.call(this,t,!0,...e)}},t.assert.lightDom={equal(t,e,...n){return r.call(this,i(t),e,!1,...n)},notEqual(t,e,...n){return r.call(this,i(t),e,!0,...n)},equalSnapshot(t,...e){return u.call(this,i(t),!1,...e)},notEqualSnapshot(t,...e){return u.call(this,i(t),!0,...e)}},t.assert.shadowDom={equal(t,e,...n){return r.call(this,o(t),e,!1,...n)},notEqual(t,e,...n){return r.call(this,o(t),e,!0,...n)},equalSnapshot(t,...e){return u.call(this,o(t),!1,...e)},notEqualSnapshot(t,...e){return u.call(this,o(t),!0,...e)}}})),a.use(((t,e)=>{const{assert:n}=t;e.addMethod(t.Assertion.prototype,"accessible",(function(t){const n=this._obj,i=t||{},o=function(t){if(!t||!t.length)return;const e={};return t.forEach((t=>{e[t]={enabled:!1}})),e}(i.ignoredRules),r={resultTypes:["violations"]};o&&(r.rules=o);let a=i.done?i.done:void 0;if(a||(a=()=>{}),i.ignoredTags){n.parentNode.querySelectorAll(i.ignoredTags.toString()).forEach((t=>t.setAttribute("aria-hidden",!0)))}const s=j(n,r).then((t=>function(t,e,n){const{violations:i}=e;if(i.length&&t)return void n();if(!i.length&&!t)return void n();const o=[];i.length&&(o[o.length]="Accessibility Violations",o[o.length]="---",i.forEach((t=>{o[o.length]=`Rule: ${t.id}`,o[o.length]=`Impact: ${t.impact}`,o[o.length]=`${t.help} (${t.helpUrl})`,t.nodes.forEach((t=>{o[o.length]="",t.target&&(o[o.length]=`Issue target: ${t.target}`),o[o.length]=`Context: ${t.html}`,t.failureSummary&&(o[o.length]=`${t.failureSummary}`)})),o[o.length]="---"})));const r=new Error(o.join("\n"));throw n(r),r}(e.flag(this,"negate"),t,a)));return this.then=s.then.bind(s),this})),n.isAccessible=function(e,n){return new t.Assertion(e).to.be.accessible(n)},n.isNotAccessible=function(e,n){return new t.Assertion(e).not.to.be.accessible(n)}})),a.use(S),a.use(A);const q=t=>"object"==typeof t&&Promise.resolve(t)===t;async function $(t){let e=!1,n=t&&t.updateComplete;return q(n)&&(await n,e=!0),n=!(!t||!t.componentOnReady)&&t.componentOnReady(),q(n)&&(await n,e=!0),e||await new Promise((t=>{requestAnimationFrame((()=>t()))})),window.ShadyDOM&&"function"==typeof window.ShadyDOM.flush&&window.ShadyDOM.flush(),t}const P=[];function N(t=document.createElement("div")){return document.body.appendChild(t),P.push(t),t}function F(){P&&P.forEach((t=>{document.body.removeChild(t)})),P.length=0}function L(t){return i(t)||t instanceof Node||"number"==typeof t||"boolean"==typeof t||"string"==typeof t}function C(t){return null!=(e=t)&&"function"==typeof e[Symbol.iterator]?[...t].every(L):L(t);var e}const R=Object.freeze({ELEMENT_NODE:1,TEXT_NODE:3,COMMENT_NODE:8,DOCUMENT_FRAGMENT_NODE:11}),I=({nodeType:t,textContent:e})=>{switch(t){case R.COMMENT_NODE:return!1;case R.TEXT_NODE:return e.trim();default:return!0}};async function _(t,e={}){const o=function(t,e={},o){const r=N(e.parentNode);if((e.render??n)(e.scopedElements?o(t,e.scopedElements):t,r),i(t))return r.firstElementChild;const[a]=Array.from(r.childNodes).filter(I);return a}(t,e,e.scopedElements?await import("./scopedElementsWrapper-4c29be11.esm.js").then((t=>t.getScopedElementsTemplate)):void 0);if(await $(o),e.scopedElements){const[t]=Array.from(o.shadowRoot.childNodes).filter(I);return await $(t),t}return o}async function U(n,i={}){if(i.scopedElements)return _(t`${e(n)}`,i);const o=function(t,e={}){const n=N(e.parentNode);return n.innerHTML=t,n.children[0]}(n,i);return await $(o),o}async function W(t,e){if("string"==typeof t)return U(t,e);if(e?.render||C(t))return _(t,e);throw new Error("Invalid template provided - string or lit-html TemplateResult is supported")}try{"afterEach"in window&&afterEach((()=>{F()})),"teardown"in window&&teardown((()=>{F()}))}catch(t){}export{s as a,D as b,$ as e,W as f,T as o,M as w};
|
@@ -0,0 +1,17 @@
|
|
1
|
+
(()=>{try{"undefined"!=typeof window&&(window.nile=window.nile||{},window.nile.version="0.1.64")}catch{}})();
|
2
|
+
/**
|
3
|
+
* @license
|
4
|
+
* Copyright 2021 Google LLC
|
5
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
6
|
+
*/
|
7
|
+
class t{constructor(t){this._map=new Map,this._roundAverageSize=!1,this.totalSize=0,!0===t?.roundAverageSize&&(this._roundAverageSize=!0)}set(t,i){const s=this._map.get(t)||0;this._map.set(t,i),this.totalSize+=i-s}get averageSize(){if(this._map.size>0){const t=this.totalSize/this._map.size;return this._roundAverageSize?Math.round(t):t}return 0}getSize(t){return this._map.get(t)}clear(){this._map.clear(),this.totalSize=0}}
|
8
|
+
/**
|
9
|
+
* @license
|
10
|
+
* Copyright 2021 Google LLC
|
11
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
12
|
+
*/function i(t){return"horizontal"===t?"width":"height"}class s{_getDefaultConfig(){return{direction:"vertical"}}constructor(t,i){this._latestCoords={left:0,top:0},this._direction=null,this._viewportSize={width:0,height:0},this.totalScrollSize={width:0,height:0},this.offsetWithinScroller={left:0,top:0},this._pendingReflow=!1,this._pendingLayoutUpdate=!1,this._pin=null,this._firstVisible=0,this._lastVisible=0,this._physicalMin=0,this._physicalMax=0,this._first=-1,this._last=-1,this._sizeDim="height",this._secondarySizeDim="width",this._positionDim="top",this._secondaryPositionDim="left",this._scrollPosition=0,this._scrollError=0,this._items=[],this._scrollSize=1,this._overhang=1e3,this._hostSink=t,Promise.resolve().then((()=>this.config=i||this._getDefaultConfig()))}set config(t){Object.assign(this,Object.assign({},this._getDefaultConfig(),t))}get config(){return{direction:this.direction}}get items(){return this._items}set items(t){this._setItems(t)}_setItems(t){t!==this._items&&(this._items=t,this._scheduleReflow())}get direction(){return this._direction}set direction(t){(t="horizontal"===t?t:"vertical")!==this._direction&&(this._direction=t,this._sizeDim="horizontal"===t?"width":"height",this._secondarySizeDim="horizontal"===t?"height":"width",this._positionDim="horizontal"===t?"left":"top",this._secondaryPositionDim="horizontal"===t?"top":"left",this._triggerReflow())}get viewportSize(){return this._viewportSize}set viewportSize(t){const{_viewDim1:i,_viewDim2:s}=this;Object.assign(this._viewportSize,t),s!==this._viewDim2?this._scheduleLayoutUpdate():i!==this._viewDim1&&this._checkThresholds()}get viewportScroll(){return this._latestCoords}set viewportScroll(t){Object.assign(this._latestCoords,t);const i=this._scrollPosition;this._scrollPosition=this._latestCoords[this._positionDim];Math.abs(i-this._scrollPosition)>=1&&this._checkThresholds()}reflowIfNeeded(t=!1){(t||this._pendingReflow)&&(this._pendingReflow=!1,this._reflow())}set pin(t){this._pin=t,this._triggerReflow()}get pin(){if(null!==this._pin){const{index:t,block:i}=this._pin;return{index:Math.max(0,Math.min(t,this.items.length-1)),block:i}}return null}_clampScrollPosition(t){return Math.max(-this.offsetWithinScroller[this._positionDim],Math.min(t,this.totalScrollSize[i(this.direction)]-this._viewDim1))}unpin(){null!==this._pin&&(this._sendUnpinnedMessage(),this._pin=null)}_updateLayout(){}get _viewDim1(){return this._viewportSize[this._sizeDim]}get _viewDim2(){return this._viewportSize[this._secondarySizeDim]}_scheduleReflow(){this._pendingReflow=!0}_scheduleLayoutUpdate(){this._pendingLayoutUpdate=!0,this._scheduleReflow()}_triggerReflow(){this._scheduleLayoutUpdate(),Promise.resolve().then((()=>this.reflowIfNeeded()))}_reflow(){this._pendingLayoutUpdate&&(this._updateLayout(),this._pendingLayoutUpdate=!1),this._updateScrollSize(),this._setPositionFromPin(),this._getActiveItems(),this._updateVisibleIndices(),this._sendStateChangedMessage()}_setPositionFromPin(){if(null!==this.pin){const t=this._scrollPosition,{index:i,block:s}=this.pin;this._scrollPosition=this._calculateScrollIntoViewPosition({index:i,block:s||"start"})-this.offsetWithinScroller[this._positionDim],this._scrollError=t-this._scrollPosition}}_calculateScrollIntoViewPosition(t){const{block:i}=t,s=Math.min(this.items.length,Math.max(0,t.index)),h=this._getItemPosition(s)[this._positionDim];let e=h;if("start"!==i){const t=this._getItemSize(s)[this._sizeDim];if("center"===i)e=h-.5*this._viewDim1+.5*t;else{const s=h-this._viewDim1+t;if("end"===i)e=s;else{const t=this._scrollPosition;e=Math.abs(t-h)<Math.abs(t-s)?h:s}}}return e+=this.offsetWithinScroller[this._positionDim],this._clampScrollPosition(e)}getScrollIntoViewCoordinates(t){return{[this._positionDim]:this._calculateScrollIntoViewPosition(t)}}_sendUnpinnedMessage(){this._hostSink({type:"unpinned"})}_sendVisibilityChangedMessage(){this._hostSink({type:"visibilityChanged",firstVisible:this._firstVisible,lastVisible:this._lastVisible})}_sendStateChangedMessage(){const t=new Map;if(-1!==this._first&&-1!==this._last)for(let i=this._first;i<=this._last;i++)t.set(i,this._getItemPosition(i));const i={type:"stateChanged",scrollSize:{[this._sizeDim]:this._scrollSize,[this._secondarySizeDim]:null},range:{first:this._first,last:this._last,firstVisible:this._firstVisible,lastVisible:this._lastVisible},childPositions:t};this._scrollError&&(i.scrollError={[this._positionDim]:this._scrollError,[this._secondaryPositionDim]:0},this._scrollError=0),this._hostSink(i)}get _num(){return-1===this._first||-1===this._last?0:this._last-this._first+1}_checkThresholds(){if(0===this._viewDim1&&this._num>0||null!==this._pin)this._scheduleReflow();else{const t=Math.max(0,this._scrollPosition-this._overhang),i=Math.min(this._scrollSize,this._scrollPosition+this._viewDim1+this._overhang);this._physicalMin>t||this._physicalMax<i?this._scheduleReflow():this._updateVisibleIndices({emit:!0})}}_updateVisibleIndices(t){if(-1===this._first||-1===this._last)return;let i=this._first;for(;i<this._last&&Math.round(this._getItemPosition(i)[this._positionDim]+this._getItemSize(i)[this._sizeDim])<=Math.round(this._scrollPosition);)i++;let s=this._last;for(;s>this._first&&Math.round(this._getItemPosition(s)[this._positionDim])>=Math.round(this._scrollPosition+this._viewDim1);)s--;i===this._firstVisible&&s===this._lastVisible||(this._firstVisible=i,this._lastVisible=s,t&&t.emit&&this._sendVisibilityChangedMessage())}}
|
13
|
+
/**
|
14
|
+
* @license
|
15
|
+
* Copyright 2021 Google LLC
|
16
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
17
|
+
*/function h(t){return"horizontal"===t?"marginLeft":"marginTop"}function e(t){return"horizontal"===t?"marginRight":"marginBottom"}function n(t){return"horizontal"===t?"xOffset":"yOffset"}function r(t,i){const s=[t,i].sort();return s[1]<=0?Math.min(...s):s[0]>=0?Math.max(...s):s[0]+s[1]}class o{constructor(){this._childSizeCache=new t,this._marginSizeCache=new t,this._metricsCache=new Map}update(t,s){const n=new Set;Object.keys(t).forEach((h=>{const e=Number(h);this._metricsCache.set(e,t[e]),this._childSizeCache.set(e,t[e][i(s)]),n.add(e),n.add(e+1)}));for(const t of n){const i=this._metricsCache.get(t)?.[h(s)]||0,n=this._metricsCache.get(t-1)?.[e(s)]||0;this._marginSizeCache.set(t,r(i,n))}}get averageChildSize(){return this._childSizeCache.averageSize}get totalChildSize(){return this._childSizeCache.totalSize}get averageMarginSize(){return this._marginSizeCache.averageSize}get totalMarginSize(){return this._marginSizeCache.totalSize}getLeadingMarginValue(t,i){return this._metricsCache.get(t)?.[h(i)]||0}getChildSize(t){return this._childSizeCache.getSize(t)}getMarginSize(t){return this._marginSizeCache.getSize(t)}clear(){this._childSizeCache.clear(),this._marginSizeCache.clear(),this._metricsCache.clear()}}class l extends s{constructor(){super(...arguments),this._itemSize={width:100,height:100},this._physicalItems=new Map,this._newPhysicalItems=new Map,this._metricsCache=new o,this._anchorIdx=null,this._anchorPos=null,this._stable=!0,this._measureChildren=!0,this._estimate=!0}get measureChildren(){return this._measureChildren}updateItemSizes(t){this._metricsCache.update(t,this.direction),this._scheduleReflow()}_getPhysicalItem(t){return this._newPhysicalItems.get(t)??this._physicalItems.get(t)}_getSize(t){return this._getPhysicalItem(t)&&this._metricsCache.getChildSize(t)}_getAverageSize(){return this._metricsCache.averageChildSize||this._itemSize[this._sizeDim]}_estimatePosition(t){const i=this._metricsCache;if(-1===this._first||-1===this._last)return i.averageMarginSize+t*(i.averageMarginSize+this._getAverageSize());if(t<this._first){const s=this._first-t;return this._getPhysicalItem(this._first).pos-(i.getMarginSize(this._first-1)||i.averageMarginSize)-(s*i.averageChildSize+(s-1)*i.averageMarginSize)}{const s=t-this._last;return this._getPhysicalItem(this._last).pos+(i.getChildSize(this._last)||i.averageChildSize)+(i.getMarginSize(this._last)||i.averageMarginSize)+s*(i.averageChildSize+i.averageMarginSize)}}_getPosition(t){const i=this._getPhysicalItem(t),{averageMarginSize:s}=this._metricsCache;return 0===t?this._metricsCache.getMarginSize(0)??s:i?i.pos:this._estimatePosition(t)}_calculateAnchor(t,i){return t<=0?0:i>this._scrollSize-this._viewDim1?this.items.length-1:Math.max(0,Math.min(this.items.length-1,Math.floor((t+i)/2/this._delta)))}_getAnchor(t,i){if(0===this._physicalItems.size)return this._calculateAnchor(t,i);if(this._first<0)return this._calculateAnchor(t,i);if(this._last<0)return this._calculateAnchor(t,i);const s=this._getPhysicalItem(this._first),h=this._getPhysicalItem(this._last),e=s.pos;if(h.pos+this._metricsCache.getChildSize(this._last)<t)return this._calculateAnchor(t,i);if(e>i)return this._calculateAnchor(t,i);let n=this._firstVisible-1,r=-1/0;for(;r<t;){r=this._getPhysicalItem(++n).pos+this._metricsCache.getChildSize(n)}return n}_getActiveItems(){0===this._viewDim1||0===this.items.length?this._clearItems():this._getItems()}_clearItems(){this._first=-1,this._last=-1,this._physicalMin=0,this._physicalMax=0;const t=this._newPhysicalItems;this._newPhysicalItems=this._physicalItems,this._newPhysicalItems.clear(),this._physicalItems=t,this._stable=!0}_getItems(){const t=this._newPhysicalItems;let i,s;if(this._stable=!0,null!==this.pin){const{index:t}=this.pin;this._anchorIdx=t,this._anchorPos=this._getPosition(t)}if(i=this._scrollPosition-this._overhang,s=this._scrollPosition+this._viewDim1+this._overhang,s<0||i>this._scrollSize)return void this._clearItems();null!==this._anchorIdx&&null!==this._anchorPos||(this._anchorIdx=this._getAnchor(i,s),this._anchorPos=this._getPosition(this._anchorIdx));let h=this._getSize(this._anchorIdx);void 0===h&&(this._stable=!1,h=this._getAverageSize());const e=this._metricsCache.getMarginSize(this._anchorIdx)??this._metricsCache.averageMarginSize,n=this._metricsCache.getMarginSize(this._anchorIdx+1)??this._metricsCache.averageMarginSize;0===this._anchorIdx&&(this._anchorPos=e),this._anchorIdx===this.items.length-1&&(this._anchorPos=this._scrollSize-n-h);let r=0;for(this._anchorPos+h+n<i&&(r=i-(this._anchorPos+h+n)),this._anchorPos-e>s&&(r=s-(this._anchorPos-e)),r&&(this._scrollPosition-=r,i-=r,s-=r,this._scrollError+=r),t.set(this._anchorIdx,{pos:this._anchorPos,size:h}),this._first=this._last=this._anchorIdx,this._physicalMin=this._anchorPos-e,this._physicalMax=this._anchorPos+h+n;this._physicalMin>i&&this._first>0;){let i=this._getSize(--this._first);void 0===i&&(this._stable=!1,i=this._getAverageSize());let s=this._metricsCache.getMarginSize(this._first);void 0===s&&(this._stable=!1,s=this._metricsCache.averageMarginSize),this._physicalMin-=i;const h=this._physicalMin;if(t.set(this._first,{pos:h,size:i}),this._physicalMin-=s,!1===this._stable&&!1===this._estimate)break}for(;this._physicalMax<s&&this._last<this.items.length-1;){let i=this._getSize(++this._last);void 0===i&&(this._stable=!1,i=this._getAverageSize());let s=this._metricsCache.getMarginSize(this._last);void 0===s&&(this._stable=!1,s=this._metricsCache.averageMarginSize);const h=this._physicalMax;if(t.set(this._last,{pos:h,size:i}),this._physicalMax+=i+s,!this._stable&&!this._estimate)break}const o=this._calculateError();o&&(this._physicalMin-=o,this._physicalMax-=o,this._anchorPos-=o,this._scrollPosition-=o,t.forEach((t=>t.pos-=o)),this._scrollError+=o),this._stable&&(this._newPhysicalItems=this._physicalItems,this._newPhysicalItems.clear(),this._physicalItems=t)}_calculateError(){return 0===this._first?this._physicalMin:this._physicalMin<=0?this._physicalMin-this._first*this._delta:this._last===this.items.length-1?this._physicalMax-this._scrollSize:this._physicalMax>=this._scrollSize?this._physicalMax-this._scrollSize+(this.items.length-1-this._last)*this._delta:0}_reflow(){const{_first:t,_last:i}=this;super._reflow(),(-1===this._first&&-1==this._last||this._first===t&&this._last===i)&&this._resetReflowState()}_resetReflowState(){this._anchorIdx=null,this._anchorPos=null,this._stable=!0}_updateScrollSize(){const{averageMarginSize:t}=this._metricsCache;this._scrollSize=Math.max(1,this.items.length*(t+this._getAverageSize())+t)}get _delta(){const{averageMarginSize:t}=this._metricsCache;return this._getAverageSize()+t}_getItemPosition(t){return{[this._positionDim]:this._getPosition(t),[this._secondaryPositionDim]:0,[n(this.direction)]:-(this._metricsCache.getLeadingMarginValue(t,this.direction)??this._metricsCache.averageMarginSize)}}_getItemSize(t){return{[this._sizeDim]:this._getSize(t)||this._getAverageSize(),[this._secondarySizeDim]:this._itemSize[this._secondarySizeDim]}}_viewDim2Changed(){this._metricsCache.clear(),this._scheduleReflow()}}export{l as FlowLayout};
|
@@ -0,0 +1,14 @@
|
|
1
|
+
System.register([],function(_export,_context){"use strict";var t,s,o,l;function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _superPropGet(t,o,e,r){var p=_get(_getPrototypeOf(1&r?t.prototype:t),o,e);return 2&r&&"function"==typeof p?function(t){return p.apply(e,t);}:p;}function _get(){return _get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var p=_superPropBase(e,t);if(p){var n=Object.getOwnPropertyDescriptor(p,t);return n.get?n.get.call(arguments.length<3?e:r):n.value;}},_get.apply(null,arguments);}function _superPropBase(t,o){for(;!{}.hasOwnProperty.call(t,o)&&null!==(t=_getPrototypeOf(t)););return t;}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}function _createForOfIteratorHelper(r,e){var t="undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=_unsupportedIterableToArray(r))||e&&r&&"number"==typeof r.length){t&&(r=t);var _n2=0,F=function F(){};return{s:F,n:function n(){return _n2>=r.length?{done:!0}:{done:!1,value:r[_n2++]};},e:function e(r){throw r;},f:F};}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var o,a=!0,u=!1;return{s:function s(){t=t.call(r);},n:function n(){var r=t.next();return a=r.done,r;},e:function e(r){u=!0,o=r;},f:function f(){try{a||null==t["return"]||t["return"]();}finally{if(u)throw o;}}};}function _toConsumableArray(r){return _arrayWithoutHoles(r)||_iterableToArray(r)||_unsupportedIterableToArray(r)||_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(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0;}}function _iterableToArray(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r);}function _arrayWithoutHoles(r){if(Array.isArray(r))return _arrayLikeToArray(r);}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}function _defineProperty(e,r,t){return(r=_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e;}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 _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}/**
|
2
|
+
* @license
|
3
|
+
* Copyright 2021 Google LLC
|
4
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
5
|
+
*/function i(t){return"horizontal"===t?"width":"height";}/**
|
6
|
+
* @license
|
7
|
+
* Copyright 2021 Google LLC
|
8
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
9
|
+
*/function h(t){return"horizontal"===t?"marginLeft":"marginTop";}function e(t){return"horizontal"===t?"marginRight":"marginBottom";}function n(t){return"horizontal"===t?"xOffset":"yOffset";}function r(t,i){var s=[t,i].sort();return s[1]<=0?Math.min.apply(Math,_toConsumableArray(s)):s[0]>=0?Math.max.apply(Math,_toConsumableArray(s)):s[0]+s[1];}return{setters:[],execute:function execute(){(function(){try{"undefined"!=typeof window&&(window.nile=window.nile||{},window.nile.version="0.1.64");}catch(_unused){}})();/**
|
10
|
+
* @license
|
11
|
+
* Copyright 2021 Google LLC
|
12
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
13
|
+
*/t=/*#__PURE__*/function(){function t(_t){_classCallCheck(this,t);this._map=new Map(),this._roundAverageSize=!1,this.totalSize=0,!0===(_t===null||_t===void 0?void 0:_t.roundAverageSize)&&(this._roundAverageSize=!0);}return _createClass(t,[{key:"set",value:function set(_t2,i){var s=this._map.get(_t2)||0;this._map.set(_t2,i),this.totalSize+=i-s;}},{key:"averageSize",get:function get(){if(this._map.size>0){var _t3=this.totalSize/this._map.size;return this._roundAverageSize?Math.round(_t3):_t3;}return 0;}},{key:"getSize",value:function getSize(_t4){return this._map.get(_t4);}},{key:"clear",value:function clear(){this._map.clear(),this.totalSize=0;}}]);}();s=/*#__PURE__*/function(){function s(t,i){var _this=this;_classCallCheck(this,s);this._latestCoords={left:0,top:0},this._direction=null,this._viewportSize={width:0,height:0},this.totalScrollSize={width:0,height:0},this.offsetWithinScroller={left:0,top:0},this._pendingReflow=!1,this._pendingLayoutUpdate=!1,this._pin=null,this._firstVisible=0,this._lastVisible=0,this._physicalMin=0,this._physicalMax=0,this._first=-1,this._last=-1,this._sizeDim="height",this._secondarySizeDim="width",this._positionDim="top",this._secondaryPositionDim="left",this._scrollPosition=0,this._scrollError=0,this._items=[],this._scrollSize=1,this._overhang=1e3,this._hostSink=t,Promise.resolve().then(function(){return _this.config=i||_this._getDefaultConfig();});}return _createClass(s,[{key:"_getDefaultConfig",value:function _getDefaultConfig(){return{direction:"vertical"};}},{key:"config",get:function get(){return{direction:this.direction};},set:function set(t){Object.assign(this,Object.assign({},this._getDefaultConfig(),t));}},{key:"items",get:function get(){return this._items;},set:function set(t){this._setItems(t);}},{key:"_setItems",value:function _setItems(t){t!==this._items&&(this._items=t,this._scheduleReflow());}},{key:"direction",get:function get(){return this._direction;},set:function set(t){(t="horizontal"===t?t:"vertical")!==this._direction&&(this._direction=t,this._sizeDim="horizontal"===t?"width":"height",this._secondarySizeDim="horizontal"===t?"height":"width",this._positionDim="horizontal"===t?"left":"top",this._secondaryPositionDim="horizontal"===t?"top":"left",this._triggerReflow());}},{key:"viewportSize",get:function get(){return this._viewportSize;},set:function set(t){var i=this._viewDim1,_s=this._viewDim2;Object.assign(this._viewportSize,t),_s!==this._viewDim2?this._scheduleLayoutUpdate():i!==this._viewDim1&&this._checkThresholds();}},{key:"viewportScroll",get:function get(){return this._latestCoords;},set:function set(t){Object.assign(this._latestCoords,t);var i=this._scrollPosition;this._scrollPosition=this._latestCoords[this._positionDim];Math.abs(i-this._scrollPosition)>=1&&this._checkThresholds();}},{key:"reflowIfNeeded",value:function reflowIfNeeded(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:!1;(t||this._pendingReflow)&&(this._pendingReflow=!1,this._reflow());}},{key:"pin",get:function get(){if(null!==this._pin){var _this$_pin=this._pin,_t5=_this$_pin.index,_i=_this$_pin.block;return{index:Math.max(0,Math.min(_t5,this.items.length-1)),block:_i};}return null;},set:function set(t){this._pin=t,this._triggerReflow();}},{key:"_clampScrollPosition",value:function _clampScrollPosition(t){return Math.max(-this.offsetWithinScroller[this._positionDim],Math.min(t,this.totalScrollSize[i(this.direction)]-this._viewDim1));}},{key:"unpin",value:function unpin(){null!==this._pin&&(this._sendUnpinnedMessage(),this._pin=null);}},{key:"_updateLayout",value:function _updateLayout(){}},{key:"_viewDim1",get:function get(){return this._viewportSize[this._sizeDim];}},{key:"_viewDim2",get:function get(){return this._viewportSize[this._secondarySizeDim];}},{key:"_scheduleReflow",value:function _scheduleReflow(){this._pendingReflow=!0;}},{key:"_scheduleLayoutUpdate",value:function _scheduleLayoutUpdate(){this._pendingLayoutUpdate=!0,this._scheduleReflow();}},{key:"_triggerReflow",value:function _triggerReflow(){var _this2=this;this._scheduleLayoutUpdate(),Promise.resolve().then(function(){return _this2.reflowIfNeeded();});}},{key:"_reflow",value:function _reflow(){this._pendingLayoutUpdate&&(this._updateLayout(),this._pendingLayoutUpdate=!1),this._updateScrollSize(),this._setPositionFromPin(),this._getActiveItems(),this._updateVisibleIndices(),this._sendStateChangedMessage();}},{key:"_setPositionFromPin",value:function _setPositionFromPin(){if(null!==this.pin){var _t6=this._scrollPosition,_this$pin=this.pin,_i2=_this$pin.index,_s2=_this$pin.block;this._scrollPosition=this._calculateScrollIntoViewPosition({index:_i2,block:_s2||"start"})-this.offsetWithinScroller[this._positionDim],this._scrollError=_t6-this._scrollPosition;}}},{key:"_calculateScrollIntoViewPosition",value:function _calculateScrollIntoViewPosition(t){var i=t.block,_s3=Math.min(this.items.length,Math.max(0,t.index)),h=this._getItemPosition(_s3)[this._positionDim];var e=h;if("start"!==i){var _t7=this._getItemSize(_s3)[this._sizeDim];if("center"===i)e=h-.5*this._viewDim1+.5*_t7;else{var _s4=h-this._viewDim1+_t7;if("end"===i)e=_s4;else{var _t8=this._scrollPosition;e=Math.abs(_t8-h)<Math.abs(_t8-_s4)?h:_s4;}}}return e+=this.offsetWithinScroller[this._positionDim],this._clampScrollPosition(e);}},{key:"getScrollIntoViewCoordinates",value:function getScrollIntoViewCoordinates(t){return _defineProperty({},this._positionDim,this._calculateScrollIntoViewPosition(t));}},{key:"_sendUnpinnedMessage",value:function _sendUnpinnedMessage(){this._hostSink({type:"unpinned"});}},{key:"_sendVisibilityChangedMessage",value:function _sendVisibilityChangedMessage(){this._hostSink({type:"visibilityChanged",firstVisible:this._firstVisible,lastVisible:this._lastVisible});}},{key:"_sendStateChangedMessage",value:function _sendStateChangedMessage(){var t=new Map();if(-1!==this._first&&-1!==this._last)for(var _i3=this._first;_i3<=this._last;_i3++)t.set(_i3,this._getItemPosition(_i3));var i={type:"stateChanged",scrollSize:_defineProperty(_defineProperty({},this._sizeDim,this._scrollSize),this._secondarySizeDim,null),range:{first:this._first,last:this._last,firstVisible:this._firstVisible,lastVisible:this._lastVisible},childPositions:t};this._scrollError&&(i.scrollError=_defineProperty(_defineProperty({},this._positionDim,this._scrollError),this._secondaryPositionDim,0),this._scrollError=0),this._hostSink(i);}},{key:"_num",get:function get(){return-1===this._first||-1===this._last?0:this._last-this._first+1;}},{key:"_checkThresholds",value:function _checkThresholds(){if(0===this._viewDim1&&this._num>0||null!==this._pin)this._scheduleReflow();else{var _t9=Math.max(0,this._scrollPosition-this._overhang),_i4=Math.min(this._scrollSize,this._scrollPosition+this._viewDim1+this._overhang);this._physicalMin>_t9||this._physicalMax<_i4?this._scheduleReflow():this._updateVisibleIndices({emit:!0});}}},{key:"_updateVisibleIndices",value:function _updateVisibleIndices(t){if(-1===this._first||-1===this._last)return;var i=this._first;for(;i<this._last&&Math.round(this._getItemPosition(i)[this._positionDim]+this._getItemSize(i)[this._sizeDim])<=Math.round(this._scrollPosition);)i++;var _s5=this._last;for(;_s5>this._first&&Math.round(this._getItemPosition(_s5)[this._positionDim])>=Math.round(this._scrollPosition+this._viewDim1);)_s5--;i===this._firstVisible&&_s5===this._lastVisible||(this._firstVisible=i,this._lastVisible=_s5,t&&t.emit&&this._sendVisibilityChangedMessage());}}]);}();o=/*#__PURE__*/function(){function o(){_classCallCheck(this,o);this._childSizeCache=new t(),this._marginSizeCache=new t(),this._metricsCache=new Map();}return _createClass(o,[{key:"update",value:function update(t,s){var _this3=this;var n=new Set();Object.keys(t).forEach(function(h){var e=Number(h);_this3._metricsCache.set(e,t[e]),_this3._childSizeCache.set(e,t[e][i(s)]),n.add(e),n.add(e+1);});var _iterator=_createForOfIteratorHelper(n),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var _this$_metricsCache$g,_this$_metricsCache$g2;var _t10=_step.value;var _i5=((_this$_metricsCache$g=this._metricsCache.get(_t10))===null||_this$_metricsCache$g===void 0?void 0:_this$_metricsCache$g[h(s)])||0,_n=((_this$_metricsCache$g2=this._metricsCache.get(_t10-1))===null||_this$_metricsCache$g2===void 0?void 0:_this$_metricsCache$g2[e(s)])||0;this._marginSizeCache.set(_t10,r(_i5,_n));}}catch(err){_iterator.e(err);}finally{_iterator.f();}}},{key:"averageChildSize",get:function get(){return this._childSizeCache.averageSize;}},{key:"totalChildSize",get:function get(){return this._childSizeCache.totalSize;}},{key:"averageMarginSize",get:function get(){return this._marginSizeCache.averageSize;}},{key:"totalMarginSize",get:function get(){return this._marginSizeCache.totalSize;}},{key:"getLeadingMarginValue",value:function getLeadingMarginValue(t,i){var _this$_metricsCache$g3;return((_this$_metricsCache$g3=this._metricsCache.get(t))===null||_this$_metricsCache$g3===void 0?void 0:_this$_metricsCache$g3[h(i)])||0;}},{key:"getChildSize",value:function getChildSize(t){return this._childSizeCache.getSize(t);}},{key:"getMarginSize",value:function getMarginSize(t){return this._marginSizeCache.getSize(t);}},{key:"clear",value:function clear(){this._childSizeCache.clear(),this._marginSizeCache.clear(),this._metricsCache.clear();}}]);}();_export("FlowLayout",l=/*#__PURE__*/function(_s6){function l(){var _this4;_classCallCheck(this,l);_this4=_callSuper(this,l,arguments),_this4._itemSize={width:100,height:100},_this4._physicalItems=new Map(),_this4._newPhysicalItems=new Map(),_this4._metricsCache=new o(),_this4._anchorIdx=null,_this4._anchorPos=null,_this4._stable=!0,_this4._measureChildren=!0,_this4._estimate=!0;return _this4;}_inherits(l,_s6);return _createClass(l,[{key:"measureChildren",get:function get(){return this._measureChildren;}},{key:"updateItemSizes",value:function updateItemSizes(t){this._metricsCache.update(t,this.direction),this._scheduleReflow();}},{key:"_getPhysicalItem",value:function _getPhysicalItem(t){var _this$_newPhysicalIte;return(_this$_newPhysicalIte=this._newPhysicalItems.get(t))!==null&&_this$_newPhysicalIte!==void 0?_this$_newPhysicalIte:this._physicalItems.get(t);}},{key:"_getSize",value:function _getSize(t){return this._getPhysicalItem(t)&&this._metricsCache.getChildSize(t);}},{key:"_getAverageSize",value:function _getAverageSize(){return this._metricsCache.averageChildSize||this._itemSize[this._sizeDim];}},{key:"_estimatePosition",value:function _estimatePosition(t){var i=this._metricsCache;if(-1===this._first||-1===this._last)return i.averageMarginSize+t*(i.averageMarginSize+this._getAverageSize());if(t<this._first){var _s7=this._first-t;return this._getPhysicalItem(this._first).pos-(i.getMarginSize(this._first-1)||i.averageMarginSize)-(_s7*i.averageChildSize+(_s7-1)*i.averageMarginSize);}{var _s8=t-this._last;return this._getPhysicalItem(this._last).pos+(i.getChildSize(this._last)||i.averageChildSize)+(i.getMarginSize(this._last)||i.averageMarginSize)+_s8*(i.averageChildSize+i.averageMarginSize);}}},{key:"_getPosition",value:function _getPosition(t){var _this$_metricsCache$g4;var i=this._getPhysicalItem(t),s=this._metricsCache.averageMarginSize;return 0===t?(_this$_metricsCache$g4=this._metricsCache.getMarginSize(0))!==null&&_this$_metricsCache$g4!==void 0?_this$_metricsCache$g4:s:i?i.pos:this._estimatePosition(t);}},{key:"_calculateAnchor",value:function _calculateAnchor(t,i){return t<=0?0:i>this._scrollSize-this._viewDim1?this.items.length-1:Math.max(0,Math.min(this.items.length-1,Math.floor((t+i)/2/this._delta)));}},{key:"_getAnchor",value:function _getAnchor(t,i){if(0===this._physicalItems.size)return this._calculateAnchor(t,i);if(this._first<0)return this._calculateAnchor(t,i);if(this._last<0)return this._calculateAnchor(t,i);var s=this._getPhysicalItem(this._first),h=this._getPhysicalItem(this._last),e=s.pos;if(h.pos+this._metricsCache.getChildSize(this._last)<t)return this._calculateAnchor(t,i);if(e>i)return this._calculateAnchor(t,i);var n=this._firstVisible-1,r=-1/0;for(;r<t;){r=this._getPhysicalItem(++n).pos+this._metricsCache.getChildSize(n);}return n;}},{key:"_getActiveItems",value:function _getActiveItems(){0===this._viewDim1||0===this.items.length?this._clearItems():this._getItems();}},{key:"_clearItems",value:function _clearItems(){this._first=-1,this._last=-1,this._physicalMin=0,this._physicalMax=0;var t=this._newPhysicalItems;this._newPhysicalItems=this._physicalItems,this._newPhysicalItems.clear(),this._physicalItems=t,this._stable=!0;}},{key:"_getItems",value:function _getItems(){var _this$_metricsCache$g5,_this$_metricsCache$g6;var t=this._newPhysicalItems;var i,s;if(this._stable=!0,null!==this.pin){var _t11=this.pin.index;this._anchorIdx=_t11,this._anchorPos=this._getPosition(_t11);}if(i=this._scrollPosition-this._overhang,s=this._scrollPosition+this._viewDim1+this._overhang,s<0||i>this._scrollSize)return void this._clearItems();null!==this._anchorIdx&&null!==this._anchorPos||(this._anchorIdx=this._getAnchor(i,s),this._anchorPos=this._getPosition(this._anchorIdx));var h=this._getSize(this._anchorIdx);void 0===h&&(this._stable=!1,h=this._getAverageSize());var e=(_this$_metricsCache$g5=this._metricsCache.getMarginSize(this._anchorIdx))!==null&&_this$_metricsCache$g5!==void 0?_this$_metricsCache$g5:this._metricsCache.averageMarginSize,n=(_this$_metricsCache$g6=this._metricsCache.getMarginSize(this._anchorIdx+1))!==null&&_this$_metricsCache$g6!==void 0?_this$_metricsCache$g6:this._metricsCache.averageMarginSize;0===this._anchorIdx&&(this._anchorPos=e),this._anchorIdx===this.items.length-1&&(this._anchorPos=this._scrollSize-n-h);var r=0;for(this._anchorPos+h+n<i&&(r=i-(this._anchorPos+h+n)),this._anchorPos-e>s&&(r=s-(this._anchorPos-e)),r&&(this._scrollPosition-=r,i-=r,s-=r,this._scrollError+=r),t.set(this._anchorIdx,{pos:this._anchorPos,size:h}),this._first=this._last=this._anchorIdx,this._physicalMin=this._anchorPos-e,this._physicalMax=this._anchorPos+h+n;this._physicalMin>i&&this._first>0;){var _i6=this._getSize(--this._first);void 0===_i6&&(this._stable=!1,_i6=this._getAverageSize());var _s9=this._metricsCache.getMarginSize(this._first);void 0===_s9&&(this._stable=!1,_s9=this._metricsCache.averageMarginSize),this._physicalMin-=_i6;var _h=this._physicalMin;if(t.set(this._first,{pos:_h,size:_i6}),this._physicalMin-=_s9,!1===this._stable&&!1===this._estimate)break;}for(;this._physicalMax<s&&this._last<this.items.length-1;){var _i7=this._getSize(++this._last);void 0===_i7&&(this._stable=!1,_i7=this._getAverageSize());var _s10=this._metricsCache.getMarginSize(this._last);void 0===_s10&&(this._stable=!1,_s10=this._metricsCache.averageMarginSize);var _h2=this._physicalMax;if(t.set(this._last,{pos:_h2,size:_i7}),this._physicalMax+=_i7+_s10,!this._stable&&!this._estimate)break;}var o=this._calculateError();o&&(this._physicalMin-=o,this._physicalMax-=o,this._anchorPos-=o,this._scrollPosition-=o,t.forEach(function(t){return t.pos-=o;}),this._scrollError+=o),this._stable&&(this._newPhysicalItems=this._physicalItems,this._newPhysicalItems.clear(),this._physicalItems=t);}},{key:"_calculateError",value:function _calculateError(){return 0===this._first?this._physicalMin:this._physicalMin<=0?this._physicalMin-this._first*this._delta:this._last===this.items.length-1?this._physicalMax-this._scrollSize:this._physicalMax>=this._scrollSize?this._physicalMax-this._scrollSize+(this.items.length-1-this._last)*this._delta:0;}},{key:"_reflow",value:function _reflow(){var t=this._first,i=this._last;_superPropGet(l,"_reflow",this,3)([]),(-1===this._first&&-1==this._last||this._first===t&&this._last===i)&&this._resetReflowState();}},{key:"_resetReflowState",value:function _resetReflowState(){this._anchorIdx=null,this._anchorPos=null,this._stable=!0;}},{key:"_updateScrollSize",value:function _updateScrollSize(){var t=this._metricsCache.averageMarginSize;this._scrollSize=Math.max(1,this.items.length*(t+this._getAverageSize())+t);}},{key:"_delta",get:function get(){var t=this._metricsCache.averageMarginSize;return this._getAverageSize()+t;}},{key:"_getItemPosition",value:function _getItemPosition(t){var _this$_metricsCache$g7;return _defineProperty(_defineProperty(_defineProperty({},this._positionDim,this._getPosition(t)),this._secondaryPositionDim,0),n(this.direction),-((_this$_metricsCache$g7=this._metricsCache.getLeadingMarginValue(t,this.direction))!==null&&_this$_metricsCache$g7!==void 0?_this$_metricsCache$g7:this._metricsCache.averageMarginSize));}},{key:"_getItemSize",value:function _getItemSize(t){return _defineProperty(_defineProperty({},this._sizeDim,this._getSize(t)||this._getAverageSize()),this._secondarySizeDim,this._itemSize[this._secondarySizeDim]);}},{key:"_viewDim2Changed",value:function _viewDim2Changed(){this._metricsCache.clear(),this._scheduleReflow();}}]);}(s));}};});
|
14
|
+
//# sourceMappingURL=flow-eb3cbb92.cjs.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"flow-eb3cbb92.cjs.js","sources":["../../../node_modules/@lit-labs/virtualizer/layouts/shared/BaseLayout.js","../../../node_modules/@lit-labs/virtualizer/layouts/flow.js","../../../node_modules/@lit-labs/virtualizer/layouts/shared/SizeCache.js"],"sourcesContent":["/**\n * @license\n * Copyright 2021 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nexport function dim1(direction) {\n return direction === 'horizontal' ? 'width' : 'height';\n}\nexport function dim2(direction) {\n return direction === 'horizontal' ? 'height' : 'width';\n}\nexport function pos1(direction) {\n return direction === 'horizontal' ? 'left' : 'top';\n}\nexport function pos2(direction) {\n return direction === 'horizontal' ? 'top' : 'left';\n}\nexport class BaseLayout {\n _getDefaultConfig() {\n return {\n direction: 'vertical',\n };\n }\n constructor(hostSink, config) {\n /**\n * The last set viewport scroll position.\n */\n this._latestCoords = { left: 0, top: 0 };\n /**\n * Scrolling direction.\n */\n this._direction = null;\n /**\n * Dimensions of the viewport.\n */\n this._viewportSize = { width: 0, height: 0 };\n this.totalScrollSize = { width: 0, height: 0 };\n this.offsetWithinScroller = { left: 0, top: 0 };\n /**\n * Flag for debouncing asynchronous reflow requests.\n */\n this._pendingReflow = false;\n this._pendingLayoutUpdate = false;\n this._pin = null;\n /**\n * The index of the first item intersecting the viewport.\n */\n this._firstVisible = 0;\n /**\n * The index of the last item intersecting the viewport.\n */\n this._lastVisible = 0;\n /**\n * Pixel offset in the scroll direction of the first child.\n */\n this._physicalMin = 0;\n /**\n * Pixel offset in the scroll direction of the last child.\n */\n this._physicalMax = 0;\n /**\n * Index of the first child.\n */\n this._first = -1;\n /**\n * Index of the last child.\n */\n this._last = -1;\n /**\n * Length in the scrolling direction.\n */\n this._sizeDim = 'height';\n /**\n * Length in the non-scrolling direction.\n */\n this._secondarySizeDim = 'width';\n /**\n * Position in the scrolling direction.\n */\n this._positionDim = 'top';\n /**\n * Position in the non-scrolling direction.\n */\n this._secondaryPositionDim = 'left';\n /**\n * Current scroll offset in pixels.\n */\n this._scrollPosition = 0;\n /**\n * Difference between current scroll offset and scroll offset calculated due\n * to a reflow.\n */\n this._scrollError = 0;\n /**\n * Total number of items that could possibly be displayed. Used to help\n * calculate the scroll size.\n */\n this._items = [];\n /**\n * The total (estimated) length of all items in the scrolling direction.\n */\n this._scrollSize = 1;\n /**\n * Number of pixels beyond the viewport to still include\n * in the active range of items.\n */\n // TODO (graynorton): Probably want to make this something we calculate based\n // on viewport size, item size, other factors, possibly still with a dial of some kind\n this._overhang = 1000;\n this._hostSink = hostSink;\n // Delay setting config so that subclasses do setup work first\n Promise.resolve().then(() => (this.config = config || this._getDefaultConfig()));\n }\n set config(config) {\n Object.assign(this, Object.assign({}, this._getDefaultConfig(), config));\n }\n get config() {\n return {\n direction: this.direction,\n };\n }\n /**\n * Maximum index of children + 1, to help estimate total height of the scroll\n * space.\n */\n get items() {\n return this._items;\n }\n set items(items) {\n this._setItems(items);\n }\n _setItems(items) {\n if (items !== this._items) {\n this._items = items;\n this._scheduleReflow();\n }\n }\n /**\n * Primary scrolling direction.\n */\n get direction() {\n return this._direction;\n }\n set direction(dir) {\n // Force it to be either horizontal or vertical.\n dir = dir === 'horizontal' ? dir : 'vertical';\n if (dir !== this._direction) {\n this._direction = dir;\n this._sizeDim = dir === 'horizontal' ? 'width' : 'height';\n this._secondarySizeDim = dir === 'horizontal' ? 'height' : 'width';\n this._positionDim = dir === 'horizontal' ? 'left' : 'top';\n this._secondaryPositionDim = dir === 'horizontal' ? 'top' : 'left';\n this._triggerReflow();\n }\n }\n /**\n * Height and width of the viewport.\n */\n get viewportSize() {\n return this._viewportSize;\n }\n set viewportSize(dims) {\n const { _viewDim1, _viewDim2 } = this;\n Object.assign(this._viewportSize, dims);\n if (_viewDim2 !== this._viewDim2) {\n // this._viewDim2Changed();\n this._scheduleLayoutUpdate();\n }\n else if (_viewDim1 !== this._viewDim1) {\n this._checkThresholds();\n }\n }\n /**\n * Scroll offset of the viewport.\n */\n get viewportScroll() {\n return this._latestCoords;\n }\n set viewportScroll(coords) {\n Object.assign(this._latestCoords, coords);\n const oldPos = this._scrollPosition;\n this._scrollPosition = this._latestCoords[this._positionDim];\n const change = Math.abs(oldPos - this._scrollPosition);\n if (change >= 1) {\n this._checkThresholds();\n }\n }\n /**\n * Perform a reflow if one has been scheduled.\n */\n reflowIfNeeded(force = false) {\n if (force || this._pendingReflow) {\n this._pendingReflow = false;\n this._reflow();\n }\n }\n set pin(options) {\n this._pin = options;\n this._triggerReflow();\n }\n get pin() {\n if (this._pin !== null) {\n const { index, block } = this._pin;\n return {\n index: Math.max(0, Math.min(index, this.items.length - 1)),\n block,\n };\n }\n return null;\n }\n _clampScrollPosition(val) {\n return Math.max(-this.offsetWithinScroller[this._positionDim], Math.min(val, this.totalScrollSize[dim1(this.direction)] - this._viewDim1));\n }\n unpin() {\n if (this._pin !== null) {\n this._sendUnpinnedMessage();\n this._pin = null;\n }\n }\n _updateLayout() {\n // Override\n }\n // protected _viewDim2Changed(): void {\n // this._scheduleLayoutUpdate();\n // }\n /**\n * The height or width of the viewport, whichever corresponds to the scrolling direction.\n */\n get _viewDim1() {\n return this._viewportSize[this._sizeDim];\n }\n /**\n * The height or width of the viewport, whichever does NOT correspond to the scrolling direction.\n */\n get _viewDim2() {\n return this._viewportSize[this._secondarySizeDim];\n }\n _scheduleReflow() {\n this._pendingReflow = true;\n }\n _scheduleLayoutUpdate() {\n this._pendingLayoutUpdate = true;\n this._scheduleReflow();\n }\n // For triggering a reflow based on incoming changes to\n // the layout config.\n _triggerReflow() {\n this._scheduleLayoutUpdate();\n // TODO graynorton@: reflowIfNeeded() isn't really supposed\n // to be called internally. Address in larger cleanup\n // of virtualizer / layout interaction pattern.\n // this.reflowIfNeeded(true);\n Promise.resolve().then(() => this.reflowIfNeeded());\n }\n _reflow() {\n if (this._pendingLayoutUpdate) {\n this._updateLayout();\n this._pendingLayoutUpdate = false;\n }\n this._updateScrollSize();\n this._setPositionFromPin();\n this._getActiveItems();\n this._updateVisibleIndices();\n this._sendStateChangedMessage();\n }\n /**\n * If we are supposed to be pinned to a particular\n * item or set of coordinates, we set `_scrollPosition`\n * accordingly and adjust `_scrollError` as needed\n * so that the virtualizer can keep the scroll\n * position in the DOM in sync\n */\n _setPositionFromPin() {\n if (this.pin !== null) {\n const lastScrollPosition = this._scrollPosition;\n const { index, block } = this.pin;\n this._scrollPosition =\n this._calculateScrollIntoViewPosition({\n index,\n block: block || 'start',\n }) - this.offsetWithinScroller[this._positionDim];\n this._scrollError = lastScrollPosition - this._scrollPosition;\n }\n }\n /**\n * Calculate the coordinates to scroll to, given\n * a request to scroll to the element at a specific\n * index.\n *\n * Supports the same positioning options (`start`,\n * `center`, `end`, `nearest`) as the standard\n * `Element.scrollIntoView()` method, but currently\n * only considers the provided value in the `block`\n * dimension, since we don't yet have any layouts\n * that support virtualization in two dimensions.\n */\n _calculateScrollIntoViewPosition(options) {\n const { block } = options;\n const index = Math.min(this.items.length, Math.max(0, options.index));\n const itemStartPosition = this._getItemPosition(index)[this._positionDim];\n let scrollPosition = itemStartPosition;\n if (block !== 'start') {\n const itemSize = this._getItemSize(index)[this._sizeDim];\n if (block === 'center') {\n scrollPosition =\n itemStartPosition - 0.5 * this._viewDim1 + 0.5 * itemSize;\n }\n else {\n const itemEndPosition = itemStartPosition - this._viewDim1 + itemSize;\n if (block === 'end') {\n scrollPosition = itemEndPosition;\n }\n else {\n // block === 'nearest'\n const currentScrollPosition = this._scrollPosition;\n scrollPosition =\n Math.abs(currentScrollPosition - itemStartPosition) <\n Math.abs(currentScrollPosition - itemEndPosition)\n ? itemStartPosition\n : itemEndPosition;\n }\n }\n }\n scrollPosition += this.offsetWithinScroller[this._positionDim];\n return this._clampScrollPosition(scrollPosition);\n }\n getScrollIntoViewCoordinates(options) {\n return {\n [this._positionDim]: this._calculateScrollIntoViewPosition(options),\n };\n }\n _sendUnpinnedMessage() {\n this._hostSink({\n type: 'unpinned',\n });\n }\n _sendVisibilityChangedMessage() {\n this._hostSink({\n type: 'visibilityChanged',\n firstVisible: this._firstVisible,\n lastVisible: this._lastVisible,\n });\n }\n _sendStateChangedMessage() {\n const childPositions = new Map();\n if (this._first !== -1 && this._last !== -1) {\n for (let idx = this._first; idx <= this._last; idx++) {\n childPositions.set(idx, this._getItemPosition(idx));\n }\n }\n const message = {\n type: 'stateChanged',\n scrollSize: {\n [this._sizeDim]: this._scrollSize,\n [this._secondarySizeDim]: null,\n },\n range: {\n first: this._first,\n last: this._last,\n firstVisible: this._firstVisible,\n lastVisible: this._lastVisible,\n },\n childPositions,\n };\n if (this._scrollError) {\n message.scrollError = {\n [this._positionDim]: this._scrollError,\n [this._secondaryPositionDim]: 0,\n };\n this._scrollError = 0;\n }\n this._hostSink(message);\n }\n /**\n * Number of items to display.\n */\n get _num() {\n if (this._first === -1 || this._last === -1) {\n return 0;\n }\n return this._last - this._first + 1;\n }\n _checkThresholds() {\n if ((this._viewDim1 === 0 && this._num > 0) || this._pin !== null) {\n this._scheduleReflow();\n }\n else {\n const min = Math.max(0, this._scrollPosition - this._overhang);\n const max = Math.min(this._scrollSize, this._scrollPosition + this._viewDim1 + this._overhang);\n if (this._physicalMin > min || this._physicalMax < max) {\n this._scheduleReflow();\n }\n else {\n this._updateVisibleIndices({ emit: true });\n }\n }\n }\n /**\n * Find the indices of the first and last items to intersect the viewport.\n * Emit a visibleindiceschange event when either index changes.\n */\n _updateVisibleIndices(options) {\n if (this._first === -1 || this._last === -1)\n return;\n let firstVisible = this._first;\n while (firstVisible < this._last &&\n Math.round(this._getItemPosition(firstVisible)[this._positionDim] +\n this._getItemSize(firstVisible)[this._sizeDim]) <= Math.round(this._scrollPosition)) {\n firstVisible++;\n }\n let lastVisible = this._last;\n while (lastVisible > this._first &&\n Math.round(this._getItemPosition(lastVisible)[this._positionDim]) >=\n Math.round(this._scrollPosition + this._viewDim1)) {\n lastVisible--;\n }\n if (firstVisible !== this._firstVisible ||\n lastVisible !== this._lastVisible) {\n this._firstVisible = firstVisible;\n this._lastVisible = lastVisible;\n if (options && options.emit) {\n this._sendVisibilityChangedMessage();\n }\n }\n }\n}\n//# sourceMappingURL=BaseLayout.js.map","/**\n * @license\n * Copyright 2021 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nimport { SizeCache } from './shared/SizeCache.js';\nimport { BaseLayout, dim1 } from './shared/BaseLayout.js';\nexport const flow = (config) => Object.assign({\n type: FlowLayout,\n}, config);\nfunction leadingMargin(direction) {\n return direction === 'horizontal' ? 'marginLeft' : 'marginTop';\n}\nfunction trailingMargin(direction) {\n return direction === 'horizontal' ? 'marginRight' : 'marginBottom';\n}\nfunction offset(direction) {\n return direction === 'horizontal' ? 'xOffset' : 'yOffset';\n}\nfunction collapseMargins(a, b) {\n const m = [a, b].sort();\n return m[1] <= 0 ? Math.min(...m) : m[0] >= 0 ? Math.max(...m) : m[0] + m[1];\n}\nclass MetricsCache {\n constructor() {\n this._childSizeCache = new SizeCache();\n this._marginSizeCache = new SizeCache();\n this._metricsCache = new Map();\n }\n update(metrics, direction) {\n const marginsToUpdate = new Set();\n Object.keys(metrics).forEach((key) => {\n const k = Number(key);\n this._metricsCache.set(k, metrics[k]);\n this._childSizeCache.set(k, metrics[k][dim1(direction)]);\n marginsToUpdate.add(k);\n marginsToUpdate.add(k + 1);\n });\n for (const k of marginsToUpdate) {\n const a = this._metricsCache.get(k)?.[leadingMargin(direction)] || 0;\n const b = this._metricsCache.get(k - 1)?.[trailingMargin(direction)] || 0;\n this._marginSizeCache.set(k, collapseMargins(a, b));\n }\n }\n get averageChildSize() {\n return this._childSizeCache.averageSize;\n }\n get totalChildSize() {\n return this._childSizeCache.totalSize;\n }\n get averageMarginSize() {\n return this._marginSizeCache.averageSize;\n }\n get totalMarginSize() {\n return this._marginSizeCache.totalSize;\n }\n getLeadingMarginValue(index, direction) {\n return this._metricsCache.get(index)?.[leadingMargin(direction)] || 0;\n }\n getChildSize(index) {\n return this._childSizeCache.getSize(index);\n }\n getMarginSize(index) {\n return this._marginSizeCache.getSize(index);\n }\n clear() {\n this._childSizeCache.clear();\n this._marginSizeCache.clear();\n this._metricsCache.clear();\n }\n}\nexport class FlowLayout extends BaseLayout {\n constructor() {\n super(...arguments);\n /**\n * Initial estimate of item size\n */\n this._itemSize = { width: 100, height: 100 };\n /**\n * Indices of children mapped to their (position and length) in the scrolling\n * direction. Used to keep track of children that are in range.\n */\n this._physicalItems = new Map();\n /**\n * Used in tandem with _physicalItems to track children in range across\n * reflows.\n */\n this._newPhysicalItems = new Map();\n /**\n * Width and height of children by their index.\n */\n this._metricsCache = new MetricsCache();\n /**\n * anchorIdx is the anchor around which we reflow. It is designed to allow\n * jumping to any point of the scroll size. We choose it once and stick with\n * it until stable. _first and _last are deduced around it.\n */\n this._anchorIdx = null;\n /**\n * Position in the scrolling direction of the anchor child.\n */\n this._anchorPos = null;\n /**\n * Whether all children in range were in range during the previous reflow.\n */\n this._stable = true;\n this._measureChildren = true;\n this._estimate = true;\n }\n // protected _defaultConfig: BaseLayoutConfig = Object.assign({}, super._defaultConfig, {\n // })\n // constructor(config: Layout1dConfig) {\n // super(config);\n // }\n get measureChildren() {\n return this._measureChildren;\n }\n /**\n * Determine the average size of all children represented in the sizes\n * argument.\n */\n updateItemSizes(sizes) {\n this._metricsCache.update(sizes, this.direction);\n // if (this._nMeasured) {\n // this._updateItemSize();\n this._scheduleReflow();\n // }\n }\n /**\n * Set the average item size based on the total length and number of children\n * in range.\n */\n // _updateItemSize() {\n // // Keep integer values.\n // this._itemSize[this._sizeDim] = this._metricsCache.averageChildSize;\n // }\n _getPhysicalItem(idx) {\n return this._newPhysicalItems.get(idx) ?? this._physicalItems.get(idx);\n }\n _getSize(idx) {\n const item = this._getPhysicalItem(idx);\n return item && this._metricsCache.getChildSize(idx);\n }\n _getAverageSize() {\n return this._metricsCache.averageChildSize || this._itemSize[this._sizeDim];\n }\n _estimatePosition(idx) {\n const c = this._metricsCache;\n if (this._first === -1 || this._last === -1) {\n return (c.averageMarginSize +\n idx * (c.averageMarginSize + this._getAverageSize()));\n }\n else {\n if (idx < this._first) {\n const delta = this._first - idx;\n const refItem = this._getPhysicalItem(this._first);\n return (refItem.pos -\n (c.getMarginSize(this._first - 1) || c.averageMarginSize) -\n (delta * c.averageChildSize + (delta - 1) * c.averageMarginSize));\n }\n else {\n const delta = idx - this._last;\n const refItem = this._getPhysicalItem(this._last);\n return (refItem.pos +\n (c.getChildSize(this._last) || c.averageChildSize) +\n (c.getMarginSize(this._last) || c.averageMarginSize) +\n delta * (c.averageChildSize + c.averageMarginSize));\n }\n }\n }\n /**\n * Returns the position in the scrolling direction of the item at idx.\n * Estimates it if the item at idx is not in the DOM.\n */\n _getPosition(idx) {\n const item = this._getPhysicalItem(idx);\n const { averageMarginSize } = this._metricsCache;\n return idx === 0\n ? this._metricsCache.getMarginSize(0) ?? averageMarginSize\n : item\n ? item.pos\n : this._estimatePosition(idx);\n }\n _calculateAnchor(lower, upper) {\n if (lower <= 0) {\n return 0;\n }\n if (upper > this._scrollSize - this._viewDim1) {\n return this.items.length - 1;\n }\n return Math.max(0, Math.min(this.items.length - 1, Math.floor((lower + upper) / 2 / this._delta)));\n }\n _getAnchor(lower, upper) {\n if (this._physicalItems.size === 0) {\n return this._calculateAnchor(lower, upper);\n }\n if (this._first < 0) {\n return this._calculateAnchor(lower, upper);\n }\n if (this._last < 0) {\n return this._calculateAnchor(lower, upper);\n }\n const firstItem = this._getPhysicalItem(this._first), lastItem = this._getPhysicalItem(this._last), firstMin = firstItem.pos, lastMin = lastItem.pos, lastMax = lastMin + this._metricsCache.getChildSize(this._last);\n if (lastMax < lower) {\n // Window is entirely past physical items, calculate new anchor\n return this._calculateAnchor(lower, upper);\n }\n if (firstMin > upper) {\n // Window is entirely before physical items, calculate new anchor\n return this._calculateAnchor(lower, upper);\n }\n // Window contains a physical item\n // Find one, starting with the one that was previously first visible\n let candidateIdx = this._firstVisible - 1;\n let cMax = -Infinity;\n while (cMax < lower) {\n const candidate = this._getPhysicalItem(++candidateIdx);\n cMax = candidate.pos + this._metricsCache.getChildSize(candidateIdx);\n }\n return candidateIdx;\n }\n /**\n * Updates _first and _last based on items that should be in the current\n * viewed range.\n */\n _getActiveItems() {\n if (this._viewDim1 === 0 || this.items.length === 0) {\n this._clearItems();\n }\n else {\n this._getItems();\n }\n }\n /**\n * Sets the range to empty.\n */\n _clearItems() {\n this._first = -1;\n this._last = -1;\n this._physicalMin = 0;\n this._physicalMax = 0;\n const items = this._newPhysicalItems;\n this._newPhysicalItems = this._physicalItems;\n this._newPhysicalItems.clear();\n this._physicalItems = items;\n this._stable = true;\n }\n /*\n * Updates _first and _last based on items that should be in the given range.\n */\n _getItems() {\n const items = this._newPhysicalItems;\n this._stable = true;\n let lower, upper;\n // The anchorIdx is the anchor around which we reflow. It is designed to\n // allow jumping to any point of the scroll size. We choose it once and\n // stick with it until stable. first and last are deduced around it.\n // If we have a pinned item, we anchor on it\n if (this.pin !== null) {\n const { index } = this.pin;\n this._anchorIdx = index;\n this._anchorPos = this._getPosition(index);\n }\n // Determine the lower and upper bounds of the region to be\n // rendered, relative to the viewport\n lower = this._scrollPosition - this._overhang; //leadingOverhang;\n upper = this._scrollPosition + this._viewDim1 + this._overhang; // trailingOverhang;\n if (upper < 0 || lower > this._scrollSize) {\n this._clearItems();\n return;\n }\n // If we are scrolling to a specific index or if we are doing another\n // pass to stabilize a previously started reflow, we will already\n // have an anchor. If not, establish an anchor now.\n if (this._anchorIdx === null || this._anchorPos === null) {\n this._anchorIdx = this._getAnchor(lower, upper);\n this._anchorPos = this._getPosition(this._anchorIdx);\n }\n let anchorSize = this._getSize(this._anchorIdx);\n if (anchorSize === undefined) {\n this._stable = false;\n anchorSize = this._getAverageSize();\n }\n const anchorLeadingMargin = this._metricsCache.getMarginSize(this._anchorIdx) ??\n this._metricsCache.averageMarginSize;\n const anchorTrailingMargin = this._metricsCache.getMarginSize(this._anchorIdx + 1) ??\n this._metricsCache.averageMarginSize;\n if (this._anchorIdx === 0) {\n this._anchorPos = anchorLeadingMargin;\n }\n if (this._anchorIdx === this.items.length - 1) {\n this._anchorPos = this._scrollSize - anchorTrailingMargin - anchorSize;\n }\n // Anchor might be outside bounds, so prefer correcting the error and keep\n // that anchorIdx.\n let anchorErr = 0;\n if (this._anchorPos + anchorSize + anchorTrailingMargin < lower) {\n anchorErr = lower - (this._anchorPos + anchorSize + anchorTrailingMargin);\n }\n if (this._anchorPos - anchorLeadingMargin > upper) {\n anchorErr = upper - (this._anchorPos - anchorLeadingMargin);\n }\n if (anchorErr) {\n this._scrollPosition -= anchorErr;\n lower -= anchorErr;\n upper -= anchorErr;\n this._scrollError += anchorErr;\n }\n items.set(this._anchorIdx, { pos: this._anchorPos, size: anchorSize });\n this._first = this._last = this._anchorIdx;\n this._physicalMin = this._anchorPos - anchorLeadingMargin;\n this._physicalMax = this._anchorPos + anchorSize + anchorTrailingMargin;\n while (this._physicalMin > lower && this._first > 0) {\n let size = this._getSize(--this._first);\n if (size === undefined) {\n this._stable = false;\n size = this._getAverageSize();\n }\n let margin = this._metricsCache.getMarginSize(this._first);\n if (margin === undefined) {\n this._stable = false;\n margin = this._metricsCache.averageMarginSize;\n }\n this._physicalMin -= size;\n const pos = this._physicalMin;\n items.set(this._first, { pos, size });\n this._physicalMin -= margin;\n if (this._stable === false && this._estimate === false) {\n break;\n }\n }\n while (this._physicalMax < upper && this._last < this.items.length - 1) {\n let size = this._getSize(++this._last);\n if (size === undefined) {\n this._stable = false;\n size = this._getAverageSize();\n }\n let margin = this._metricsCache.getMarginSize(this._last);\n if (margin === undefined) {\n this._stable = false;\n margin = this._metricsCache.averageMarginSize;\n }\n const pos = this._physicalMax;\n items.set(this._last, { pos, size });\n this._physicalMax += size + margin;\n if (!this._stable && !this._estimate) {\n break;\n }\n }\n // This handles the cases where we were relying on estimated sizes.\n const extentErr = this._calculateError();\n if (extentErr) {\n this._physicalMin -= extentErr;\n this._physicalMax -= extentErr;\n this._anchorPos -= extentErr;\n this._scrollPosition -= extentErr;\n items.forEach((item) => (item.pos -= extentErr));\n this._scrollError += extentErr;\n }\n if (this._stable) {\n this._newPhysicalItems = this._physicalItems;\n this._newPhysicalItems.clear();\n this._physicalItems = items;\n }\n }\n _calculateError() {\n if (this._first === 0) {\n return this._physicalMin;\n }\n else if (this._physicalMin <= 0) {\n return this._physicalMin - this._first * this._delta;\n }\n else if (this._last === this.items.length - 1) {\n return this._physicalMax - this._scrollSize;\n }\n else if (this._physicalMax >= this._scrollSize) {\n return (this._physicalMax -\n this._scrollSize +\n (this.items.length - 1 - this._last) * this._delta);\n }\n return 0;\n }\n _reflow() {\n const { _first, _last } = this;\n super._reflow();\n if ((this._first === -1 && this._last == -1) ||\n (this._first === _first && this._last === _last)) {\n this._resetReflowState();\n }\n }\n _resetReflowState() {\n this._anchorIdx = null;\n this._anchorPos = null;\n this._stable = true;\n }\n _updateScrollSize() {\n const { averageMarginSize } = this._metricsCache;\n this._scrollSize = Math.max(1, this.items.length * (averageMarginSize + this._getAverageSize()) +\n averageMarginSize);\n }\n /**\n * Returns the average size (precise or estimated) of an item in the scrolling direction,\n * including any surrounding space.\n */\n get _delta() {\n const { averageMarginSize } = this._metricsCache;\n return this._getAverageSize() + averageMarginSize;\n }\n /**\n * Returns the top and left positioning of the item at idx.\n */\n _getItemPosition(idx) {\n return {\n [this._positionDim]: this._getPosition(idx),\n [this._secondaryPositionDim]: 0,\n [offset(this.direction)]: -(this._metricsCache.getLeadingMarginValue(idx, this.direction) ??\n this._metricsCache.averageMarginSize),\n };\n }\n /**\n * Returns the height and width of the item at idx.\n */\n _getItemSize(idx) {\n return {\n [this._sizeDim]: this._getSize(idx) || this._getAverageSize(),\n [this._secondarySizeDim]: this._itemSize[this._secondarySizeDim],\n };\n }\n _viewDim2Changed() {\n this._metricsCache.clear();\n this._scheduleReflow();\n }\n}\n//# sourceMappingURL=flow.js.map","/**\n * @license\n * Copyright 2021 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nexport class SizeCache {\n constructor(config) {\n this._map = new Map();\n this._roundAverageSize = false;\n this.totalSize = 0;\n if (config?.roundAverageSize === true) {\n this._roundAverageSize = true;\n }\n }\n set(index, value) {\n const prev = this._map.get(index) || 0;\n this._map.set(index, value);\n this.totalSize += value - prev;\n }\n get averageSize() {\n if (this._map.size > 0) {\n const average = this.totalSize / this._map.size;\n return this._roundAverageSize ? Math.round(average) : average;\n }\n return 0;\n }\n getSize(index) {\n return this._map.get(index);\n }\n clear() {\n this._map.clear();\n this.totalSize = 0;\n }\n}\n//# sourceMappingURL=SizeCache.js.map"],"names":["dim1","direction","leadingMargin","trailingMargin","offset","collapseMargins","a","b","m","sort","Math","min","max","setters","execute","SizeCache","t","config","this","_map","Map","_roundAverageSize","totalSize","roundAverageSize","_createClass","key","value","set","index","prev","get","averageSize","size","average","round","getSize","clear","BaseLayout","s","hostSink","_latestCoords","left","top","_direction","_viewportSize","width","height","totalScrollSize","offsetWithinScroller","_pendingReflow","_pendingLayoutUpdate","_pin","_firstVisible","_lastVisible","_physicalMin","_physicalMax","_first","_last","_sizeDim","_secondarySizeDim","_positionDim","_secondaryPositionDim","_scrollPosition","_scrollError","_items","_scrollSize","_overhang","_hostSink","Promise","resolve","then","_getDefaultConfig","Object","assign","items","_setItems","_scheduleReflow","dir","_triggerReflow","dims","_viewDim1","_viewDim2","_scheduleLayoutUpdate","_checkThresholds","coords","oldPos","abs","reflowIfNeeded","force","_reflow","_this$_pin","block","length","options","_clampScrollPosition","val","unpin","_sendUnpinnedMessage","_updateLayout","_updateScrollSize","_setPositionFromPin","_getActiveItems","_updateVisibleIndices","_sendStateChangedMessage","pin","lastScrollPosition","_calculateScrollIntoViewPosition","itemStartPosition","_getItemPosition","scrollPosition","itemSize","_getItemSize","itemEndPosition","currentScrollPosition","getScrollIntoViewCoordinates","_defineProperty","type","_sendVisibilityChangedMessage","firstVisible","lastVisible","childPositions","idx","message","scrollSize","range","first","last","scrollError","_num","emit","MetricsCache","o","constructor","_childSizeCache","_marginSizeCache","_metricsCache","update","metrics","marginsToUpdate","Set","keys","forEach","k","Number","add","_iterator","_createForOfIteratorHelper","_step","n","done","_this$_metricsCache$g","_this$_metricsCache$g2","err","e","f","totalChildSize","averageMarginSize","totalMarginSize","getLeadingMarginValue","getChildSize","getMarginSize","_export","FlowLayout","l","super","arguments","_itemSize","_physicalItems","_newPhysicalItems","_anchorIdx","_anchorPos","_stable","_measureChildren","_estimate","_this4","_inherits","_s6","updateItemSizes","sizes","_getPhysicalItem","_this$_newPhysicalIte","_getSize","_getAverageSize","averageChildSize","_estimatePosition","c","delta","pos","_getPosition","item","_calculateAnchor","lower","upper","floor","_delta","_getAnchor","firstItem","lastItem","firstMin","candidateIdx","cMax","Infinity","_clearItems","_getItems","anchorSize","undefined","anchorLeadingMargin","anchorTrailingMargin","anchorErr","margin","extentErr","_calculateError","_resetReflowState","_viewDim2Changed"],"mappings":";;;;GAKO,QAASA,CAAAA,CAAAA,CAAKC,GACjB,MAAqB,YAAA,GAAdA,EAA6B,OAAU,CAAA,QAClD;;;;ACGA,GAAA,QAASC,CAAAA,CAAcD,CAAAA,CAAAA,CAAAA,CACnB,MAAqB,YAAA,GAAdA,CAA6B,CAAA,YAAA,CAAe,WACvD,EACA,QAASE,CAAAA,CAAAA,CAAeF,CACpB,C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