@nanoporetech-digital/components 8.23.11 → 8.24.1
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/dist/cjs/{algolia-data-BqpBVN89.js → algolia-data-YqTcrA7B.js} +1 -1
- package/dist/cjs/{component-store-C5eBOK0w.js → component-store-BsFgDzFM.js} +1 -1
- package/dist/cjs/{constructible-style-BsHBb9au.js → constructible-style-D0zEjr9J.js} +1 -1
- package/dist/cjs/{dom-Dxk5vXYq.js → dom-GglTcT7o.js} +1 -1
- package/dist/cjs/{fade-kpIGI6CJ.js → fade-CDGKmRbB.js} +3 -3
- package/dist/cjs/{form-control-Bq9Dlz-r.js → form-control-DKTdW_gr.js} +1 -1
- package/dist/cjs/{fullscreen-Cuh4s9g3.js → fullscreen-BmuHM8Mq.js} +3 -3
- package/dist/cjs/{index-CkLcAUj-.js → index-CeVPSufd.js} +1 -1
- package/dist/cjs/{index-DGttnXif.js → index-ap26V5bu.js} +11 -2
- package/dist/cjs/index.cjs.js +3 -3
- package/dist/cjs/{lazyload-tvpXnTYY.js → lazyload-CBgO3EAI.js} +3 -3
- package/dist/cjs/loader.cjs.js +3 -4
- package/dist/cjs/{modal-BlzeVZW4.js → modal-CjPWcL9B.js} +1 -1
- package/dist/cjs/nano-accordion.cjs.entry.js +3 -3
- package/dist/cjs/nano-alert.cjs.entry.js +8 -8
- package/dist/cjs/nano-algolia-filter.cjs.entry.js +4 -4
- package/dist/cjs/nano-algolia-pagination.cjs.entry.js +2 -2
- package/dist/cjs/nano-algolia-results.cjs.entry.js +3 -3
- package/dist/cjs/nano-algolia.cjs.entry.js +5 -5
- package/dist/cjs/nano-animation.cjs.entry.js +2 -2
- package/dist/cjs/nano-avatar_5.cjs.entry.js +12 -14
- package/dist/cjs/nano-breadcrumb.cjs.entry.js +2 -2
- package/dist/cjs/nano-card-carousel.cjs.entry.js +3 -3
- package/dist/cjs/nano-card.cjs.entry.js +1 -1
- package/dist/cjs/nano-checkbox-group.cjs.entry.js +3 -3
- package/dist/cjs/nano-checkbox.cjs.entry.js +3 -3
- package/dist/cjs/nano-collapsible-comparison.cjs.entry.js +3 -3
- package/dist/cjs/nano-components.cjs.js +3 -4
- package/dist/cjs/nano-content-links.cjs.entry.js +1 -1
- package/dist/cjs/nano-cta.cjs.entry.js +1 -1
- package/dist/cjs/{nano-data-table-BC1htsdm.js → nano-data-table-B3KUstGL.js} +6 -6
- package/dist/cjs/nano-data-table.cjs.entry.js +6 -6
- package/dist/cjs/nano-datalist_3.cjs.entry.js +5 -5
- package/dist/cjs/nano-date-input.cjs.entry.js +2 -2
- package/dist/cjs/nano-date-picker_2.cjs.entry.js +6 -6
- package/dist/cjs/nano-details.cjs.entry.js +4 -4
- package/dist/cjs/nano-dialog.cjs.entry.js +9 -9
- package/dist/cjs/nano-dropdown_2.cjs.entry.js +7 -7
- package/dist/cjs/nano-feature-box.cjs.entry.js +1 -1
- package/dist/cjs/nano-field-validator.cjs.entry.js +3 -3
- package/dist/cjs/nano-file-upload.cjs.entry.js +3 -3
- package/dist/cjs/nano-footer.cjs.entry.js +2 -2
- package/dist/cjs/nano-global-nav.cjs.entry.js +16 -16
- package/dist/cjs/nano-grid-item.cjs.entry.js +1 -1
- package/dist/cjs/nano-grid_2.cjs.entry.js +3 -3
- package/dist/cjs/nano-hero.cjs.entry.js +2 -2
- package/dist/cjs/nano-icon-button_2.cjs.entry.js +4 -4
- package/dist/cjs/nano-icon-item.cjs.entry.js +1 -1
- package/dist/cjs/nano-icon.cjs.entry.js +4 -8
- package/dist/cjs/nano-in-page-nav.cjs.entry.js +6 -6
- package/dist/cjs/nano-increment.cjs.entry.js +3 -3
- package/dist/cjs/nano-input-otp.cjs.entry.js +3 -3
- package/dist/cjs/nano-intersection-observe.cjs.entry.js +4 -4
- package/dist/cjs/nano-masked-overflow.cjs.entry.js +5 -5
- package/dist/cjs/nano-menu-drawer.cjs.entry.js +5 -5
- package/dist/cjs/nano-more-less.cjs.entry.js +2 -2
- package/dist/cjs/nano-nav-item.cjs.entry.js +5 -5
- package/dist/cjs/nano-option-box.cjs.entry.js +1 -1
- package/dist/cjs/nano-progress-bar.cjs.entry.js +2 -2
- package/dist/cjs/nano-range.cjs.entry.js +3 -3
- package/dist/cjs/nano-rating.cjs.entry.js +3 -3
- package/dist/cjs/nano-resize-observe.cjs.entry.js +2 -2
- package/dist/cjs/nano-search-result.cjs.entry.js +1 -1
- package/dist/cjs/nano-slide.cjs.entry.js +2 -2
- package/dist/cjs/{nano-slides-DcXrQQgs.js → nano-slides-BONrNv9H.js} +24 -11
- package/dist/cjs/nano-slides.cjs.entry.js +3 -3
- package/dist/cjs/nano-sortable.cjs.entry.js +2 -2
- package/dist/cjs/nano-spinner.cjs.entry.js +2 -2
- package/dist/cjs/nano-split-pane.cjs.entry.js +3 -3
- package/dist/cjs/nano-step-accordion.cjs.entry.js +3 -3
- package/dist/cjs/nano-step-breadcrumb.cjs.entry.js +4 -4
- package/dist/cjs/nano-sticker.cjs.entry.js +4 -4
- package/dist/cjs/nano-tab-content.cjs.entry.js +2 -2
- package/dist/cjs/nano-tab-group.cjs.entry.js +5 -5
- package/dist/cjs/nano-tab.cjs.entry.js +3 -3
- package/dist/cjs/nano-table.cjs.entry.js +2 -2
- package/dist/cjs/{renderer-jVpDRMfV.js → renderer-D1xFLJsH.js} +1 -1
- package/dist/cjs/{scroll-C6pO9RvO.js → scroll-C2cNPPnK.js} +1 -1
- package/dist/cjs/{slot-CfuOT0U4.js → slot-D0YPdT3s.js} +1 -1
- package/dist/cjs/{tabbable-C-YwPfjA.js → tabbable-D60VZB1O.js} +1 -1
- package/dist/cjs/{table.worker-BXs-g6xI.js → table.worker-ClLnKNqW.js} +6 -6
- package/dist/collection/components/alert/alert.css +15 -15
- package/dist/collection/components/badge/badge.js +0 -21
- package/dist/collection/components/breadcrumb/breadcrumb.css +12 -12
- package/dist/collection/components/breadcrumb/breadcrumb.js +1 -1
- package/dist/collection/components/card-carousel/card-carousel.css +5 -5
- package/dist/collection/components/checkbox/checkbox-group.css +6 -6
- package/dist/collection/components/checkbox/checkbox.css +21 -21
- package/dist/collection/components/collapsible-comparison/collapsible-comparison.css +4 -4
- package/dist/collection/components/content-links/content-links.css +4 -4
- package/dist/collection/components/cta/cta.js +8 -5
- package/dist/collection/components/data-table/table.css +12 -12
- package/dist/collection/components/datalist/datalist.css +2 -2
- package/dist/collection/components/date-picker/date-picker.css +7 -7
- package/dist/collection/components/details/details.css +7 -7
- package/dist/collection/components/dialog/dialog.css +11 -11
- package/dist/collection/components/drawer/drawer.css +13 -13
- package/dist/collection/components/dropdown/dropdown.css +2 -2
- package/dist/collection/components/file-upload/file-upload.css +18 -18
- package/dist/collection/components/footer/footer.css +3 -3
- package/dist/collection/components/global-nav/global-nav.css +26 -25
- package/dist/collection/components/global-nav/global-nav.js +13 -13
- package/dist/collection/components/global-search-results/global-search-results.css +24 -24
- package/dist/collection/components/icon/icon.css +1 -5
- package/dist/collection/components/icon/icon.js +1 -24
- package/dist/collection/components/icon-button/icon-button.css +4 -4
- package/dist/collection/components/in-page-nav/in-page-nav.css +9 -9
- package/dist/collection/components/increment/increment.css +5 -5
- package/dist/collection/components/input/input.css +20 -20
- package/dist/collection/components/input-otp/input-otp.css +7 -7
- package/dist/collection/components/masked-overflow/masked-overflow.css +5 -5
- package/dist/collection/components/menu/menu.css +3 -3
- package/dist/collection/components/menu-drawer/menu-drawer.css +6 -6
- package/dist/collection/components/option/option.css +12 -12
- package/dist/collection/components/progress-bar/progress-bar.css +5 -5
- package/dist/collection/components/range/range.css +15 -15
- package/dist/collection/components/rating/rating.css +5 -5
- package/dist/collection/components/select/select.css +20 -20
- package/dist/collection/components/slides/slides.css +11 -11
- package/dist/collection/components/slides/slides.js +20 -6
- package/dist/collection/components/spinner/spinner.css +5 -5
- package/dist/collection/components/split-pane/split-pane.css +4 -4
- package/dist/collection/components/step-accordion/step-accordion.css +10 -10
- package/dist/collection/components/step-breadcrumb/step-breadcrumb.css +17 -17
- package/dist/collection/components/table/table.css +3 -3
- package/dist/collection/components/tabs/tab-group.css +6 -6
- package/dist/collection/components/tabs/tab.css +15 -14
- package/dist/collection/components/tag/tag.css +4 -4
- package/dist/collection/components/tooltip/tooltip.css +4 -4
- package/dist/components/badge.js +0 -3
- package/dist/components/cta.js +1 -1
- package/dist/components/datalist.js +1 -1
- package/dist/components/date-picker.js +1 -1
- package/dist/components/details.js +1 -1
- package/dist/components/drawer.js +1 -1
- package/dist/components/dropdown.js +1 -1
- package/dist/components/global-search-results.js +1 -1
- package/dist/components/icon-button.js +1 -1
- package/dist/components/icon.js +2 -7
- package/dist/components/input.js +1 -1
- package/dist/components/masked-overflow.js +1 -1
- package/dist/components/menu.js +1 -1
- package/dist/components/nano-alert.js +1 -1
- package/dist/components/nano-breadcrumb.js +1 -1
- package/dist/components/nano-card-carousel.js +1 -1
- package/dist/components/nano-checkbox-group.js +1 -1
- package/dist/components/nano-checkbox.js +1 -1
- package/dist/components/nano-collapsible-comparison.js +1 -1
- package/dist/components/nano-data-table.js +1 -1
- package/dist/components/nano-dialog.js +1 -1
- package/dist/components/nano-file-upload.js +1 -1
- package/dist/components/nano-footer.js +1 -1
- package/dist/components/nano-global-nav.js +14 -14
- package/dist/components/nano-in-page-nav.js +1 -1
- package/dist/components/nano-increment.js +1 -1
- package/dist/components/nano-input-otp.js +1 -1
- package/dist/components/nano-menu-drawer.js +1 -1
- package/dist/components/nano-range.js +1 -1
- package/dist/components/nano-rating.js +1 -1
- package/dist/components/nano-split-pane.js +1 -1
- package/dist/components/nano-step-accordion.js +1 -1
- package/dist/components/nano-step-breadcrumb.js +1 -1
- package/dist/components/nano-tab-group.js +1 -1
- package/dist/components/nano-tab.js +1 -1
- package/dist/components/option.js +1 -1
- package/dist/components/progress-bar.js +1 -1
- package/dist/components/select.js +1 -1
- package/dist/components/slides.js +20 -6
- package/dist/components/spinner.js +1 -1
- package/dist/components/tooltip.js +1 -1
- package/dist/esm/{algolia-data-Kh0vPn3V.js → algolia-data-CrdfzSCx.js} +1 -1
- package/dist/esm/{component-store-JYVuxwvK.js → component-store-Dwo45Eol.js} +1 -1
- package/dist/esm/{constructible-style-B2_GfhhS.js → constructible-style-8ZZJwMaU.js} +1 -1
- package/dist/esm/{dom-dlicJTEJ.js → dom-QEz8hlsO.js} +1 -1
- package/dist/esm/{fade-Y5mYUwiO.js → fade-7nCfOc5y.js} +3 -3
- package/dist/esm/{form-control-BtblmnSm.js → form-control-8eh0RGNw.js} +1 -1
- package/dist/esm/{fullscreen-Ct2ACI6T.js → fullscreen-h77Lkspo.js} +3 -3
- package/dist/esm/{index-BlBZYxu4.js → index-CuC61-2g.js} +1 -1
- package/dist/esm/{index-BM3Om9WE.js → index-vpnVjPKQ.js} +11 -3
- package/dist/esm/index.js +4 -4
- package/dist/esm/{lazyload-ZYbHlu3K.js → lazyload-CGR82usu.js} +3 -3
- package/dist/esm/loader.js +3 -4
- package/dist/esm/{modal-CY_3_LJ7.js → modal-Dk_TZDiu.js} +1 -1
- package/dist/esm/nano-accordion.entry.js +3 -3
- package/dist/esm/nano-alert.entry.js +8 -8
- package/dist/esm/nano-algolia-filter.entry.js +4 -4
- package/dist/esm/nano-algolia-pagination.entry.js +2 -2
- package/dist/esm/nano-algolia-results.entry.js +3 -3
- package/dist/esm/nano-algolia.entry.js +5 -5
- package/dist/esm/nano-animation.entry.js +2 -2
- package/dist/esm/nano-avatar_5.entry.js +12 -14
- package/dist/esm/nano-breadcrumb.entry.js +2 -2
- package/dist/esm/nano-card-carousel.entry.js +3 -3
- package/dist/esm/nano-card.entry.js +1 -1
- package/dist/esm/nano-checkbox-group.entry.js +3 -3
- package/dist/esm/nano-checkbox.entry.js +3 -3
- package/dist/esm/nano-collapsible-comparison.entry.js +3 -3
- package/dist/esm/nano-components.js +3 -4
- package/dist/esm/nano-content-links.entry.js +1 -1
- package/dist/esm/nano-cta.entry.js +1 -1
- package/dist/esm/{nano-data-table-Bn4l0Q3q.js → nano-data-table-HQJQG0Sv.js} +6 -6
- package/dist/esm/nano-data-table.entry.js +6 -6
- package/dist/esm/nano-datalist_3.entry.js +5 -5
- package/dist/esm/nano-date-input.entry.js +2 -2
- package/dist/esm/nano-date-picker_2.entry.js +6 -6
- package/dist/esm/nano-details.entry.js +4 -4
- package/dist/esm/nano-dialog.entry.js +9 -9
- package/dist/esm/nano-dropdown_2.entry.js +7 -7
- package/dist/esm/nano-feature-box.entry.js +1 -1
- package/dist/esm/nano-field-validator.entry.js +3 -3
- package/dist/esm/nano-file-upload.entry.js +3 -3
- package/dist/esm/nano-footer.entry.js +2 -2
- package/dist/esm/nano-global-nav.entry.js +16 -16
- package/dist/esm/nano-grid-item.entry.js +1 -1
- package/dist/esm/nano-grid_2.entry.js +3 -3
- package/dist/esm/nano-hero.entry.js +2 -2
- package/dist/esm/nano-icon-button_2.entry.js +4 -4
- package/dist/esm/nano-icon-item.entry.js +1 -1
- package/dist/esm/nano-icon.entry.js +4 -8
- package/dist/esm/nano-in-page-nav.entry.js +6 -6
- package/dist/esm/nano-increment.entry.js +3 -3
- package/dist/esm/nano-input-otp.entry.js +3 -3
- package/dist/esm/nano-intersection-observe.entry.js +4 -4
- package/dist/esm/nano-masked-overflow.entry.js +5 -5
- package/dist/esm/nano-menu-drawer.entry.js +5 -5
- package/dist/esm/nano-more-less.entry.js +2 -2
- package/dist/esm/nano-nav-item.entry.js +5 -5
- package/dist/esm/nano-option-box.entry.js +1 -1
- package/dist/esm/nano-progress-bar.entry.js +2 -2
- package/dist/esm/nano-range.entry.js +3 -3
- package/dist/esm/nano-rating.entry.js +3 -3
- package/dist/esm/nano-resize-observe.entry.js +2 -2
- package/dist/esm/nano-search-result.entry.js +1 -1
- package/dist/esm/nano-slide.entry.js +2 -2
- package/dist/esm/{nano-slides-0qDi5Vv7.js → nano-slides-CMFKg_gU.js} +24 -11
- package/dist/esm/nano-slides.entry.js +3 -3
- package/dist/esm/nano-sortable.entry.js +2 -2
- package/dist/esm/nano-spinner.entry.js +2 -2
- package/dist/esm/nano-split-pane.entry.js +3 -3
- package/dist/esm/nano-step-accordion.entry.js +3 -3
- package/dist/esm/nano-step-breadcrumb.entry.js +4 -4
- package/dist/esm/nano-sticker.entry.js +4 -4
- package/dist/esm/nano-tab-content.entry.js +2 -2
- package/dist/esm/nano-tab-group.entry.js +5 -5
- package/dist/esm/nano-tab.entry.js +3 -3
- package/dist/esm/nano-table.entry.js +2 -2
- package/dist/esm/{renderer-DpNDfhNy.js → renderer-CTaemqrs.js} +1 -1
- package/dist/esm/{scroll-1nFw8CNk.js → scroll-Cpis33Lx.js} +1 -1
- package/dist/esm/{slot-Crs4khNK.js → slot-wHS7-PXA.js} +1 -1
- package/dist/esm/{tabbable-BgopY-vd.js → tabbable-CT4-pg7f.js} +1 -1
- package/dist/esm/{table.worker-BMDbprO8.js → table.worker--BAXV6ow.js} +6 -6
- package/dist/nano-components/{algolia-data-Kh0vPn3V.js → algolia-data-CrdfzSCx.js} +1 -1
- package/dist/nano-components/{component-store-JYVuxwvK.js → component-store-Dwo45Eol.js} +1 -1
- package/dist/nano-components/{constructible-style-B2_GfhhS.js → constructible-style-8ZZJwMaU.js} +1 -1
- package/dist/nano-components/dom-QEz8hlsO.js +4 -0
- package/dist/nano-components/{fade-Y5mYUwiO.js → fade-7nCfOc5y.js} +1 -1
- package/dist/nano-components/{form-control-BtblmnSm.js → form-control-8eh0RGNw.js} +1 -1
- package/dist/nano-components/{fullscreen-Ct2ACI6T.js → fullscreen-h77Lkspo.js} +1 -1
- package/dist/nano-components/index-CuC61-2g.js +4 -0
- package/dist/nano-components/index-vpnVjPKQ.js +5 -0
- package/dist/nano-components/index.esm.js +1 -1
- package/dist/nano-components/{lazyload-ZYbHlu3K.js → lazyload-CGR82usu.js} +1 -1
- package/dist/nano-components/{modal-CY_3_LJ7.js → modal-Dk_TZDiu.js} +1 -1
- package/dist/nano-components/nano-accordion.entry.js +1 -1
- package/dist/nano-components/nano-alert.entry.js +1 -1
- package/dist/nano-components/nano-algolia-filter.entry.js +1 -1
- package/dist/nano-components/nano-algolia-pagination.entry.js +1 -1
- package/dist/nano-components/nano-algolia-results.entry.js +1 -1
- package/dist/nano-components/nano-algolia.entry.js +1 -1
- package/dist/nano-components/nano-animation.entry.js +1 -1
- package/dist/nano-components/nano-avatar_5.entry.js +1 -1
- package/dist/nano-components/nano-breadcrumb.entry.js +1 -1
- package/dist/nano-components/nano-card-carousel.entry.js +1 -1
- package/dist/nano-components/nano-card.entry.js +1 -1
- package/dist/nano-components/nano-checkbox-group.entry.js +1 -1
- package/dist/nano-components/nano-checkbox.entry.js +1 -1
- package/dist/nano-components/nano-collapsible-comparison.entry.js +1 -1
- package/dist/nano-components/nano-components.css +121 -223
- package/dist/nano-components/nano-components.esm.js +1 -1
- package/dist/nano-components/nano-content-links.entry.js +1 -1
- package/dist/nano-components/nano-cta.entry.js +1 -1
- package/dist/nano-components/nano-data-table-HQJQG0Sv.js +4 -0
- package/dist/nano-components/nano-data-table.entry.js +1 -1
- package/dist/nano-components/nano-datalist_3.entry.js +1 -1
- package/dist/nano-components/nano-date-input.entry.js +1 -1
- package/dist/nano-components/nano-date-picker_2.entry.js +1 -1
- package/dist/nano-components/nano-details.entry.js +1 -1
- package/dist/nano-components/nano-dialog.entry.js +1 -1
- package/dist/nano-components/nano-dropdown_2.entry.js +1 -1
- package/dist/nano-components/nano-feature-box.entry.js +1 -1
- package/dist/nano-components/nano-field-validator.entry.js +1 -1
- package/dist/nano-components/nano-file-upload.entry.js +1 -1
- package/dist/nano-components/nano-footer.entry.js +1 -1
- package/dist/nano-components/nano-global-nav.entry.js +1 -1
- package/dist/nano-components/nano-grid-item.entry.js +1 -1
- package/dist/nano-components/nano-grid_2.entry.js +1 -1
- package/dist/nano-components/nano-hero.entry.js +1 -1
- package/dist/nano-components/nano-icon-button_2.entry.js +1 -1
- package/dist/nano-components/nano-icon-item.entry.js +1 -1
- package/dist/nano-components/nano-icon.entry.js +1 -1
- package/dist/nano-components/nano-in-page-nav.entry.js +1 -1
- package/dist/nano-components/nano-increment.entry.js +1 -1
- package/dist/nano-components/nano-input-otp.entry.js +1 -1
- package/dist/nano-components/nano-intersection-observe.entry.js +1 -1
- package/dist/nano-components/nano-masked-overflow.entry.js +1 -1
- package/dist/nano-components/nano-menu-drawer.entry.js +1 -1
- package/dist/nano-components/nano-more-less.entry.js +1 -1
- package/dist/nano-components/nano-nav-item.entry.js +1 -1
- package/dist/nano-components/nano-option-box.entry.js +1 -1
- package/dist/nano-components/nano-progress-bar.entry.js +1 -1
- package/dist/nano-components/nano-range.entry.js +1 -1
- package/dist/nano-components/nano-rating.entry.js +1 -1
- package/dist/nano-components/nano-resize-observe.entry.js +1 -1
- package/dist/nano-components/nano-search-result.entry.js +1 -1
- package/dist/nano-components/nano-slide.entry.js +1 -1
- package/dist/nano-components/nano-slides-CMFKg_gU.js +22 -0
- package/dist/nano-components/nano-slides.entry.js +1 -1
- package/dist/nano-components/nano-sortable.entry.js +1 -1
- package/dist/nano-components/nano-spinner.entry.js +1 -1
- package/dist/nano-components/nano-split-pane.entry.js +1 -1
- package/dist/nano-components/nano-step-accordion.entry.js +1 -1
- package/dist/nano-components/nano-step-breadcrumb.entry.js +1 -1
- package/dist/nano-components/nano-sticker.entry.js +1 -1
- package/dist/nano-components/nano-tab-content.entry.js +1 -1
- package/dist/nano-components/nano-tab-group.entry.js +1 -1
- package/dist/nano-components/nano-tab.entry.js +1 -1
- package/dist/nano-components/nano-table.entry.js +1 -1
- package/dist/nano-components/{renderer-DpNDfhNy.js → renderer-CTaemqrs.js} +1 -1
- package/dist/nano-components/{scroll-1nFw8CNk.js → scroll-Cpis33Lx.js} +1 -1
- package/dist/nano-components/{slot-Crs4khNK.js → slot-wHS7-PXA.js} +1 -1
- package/dist/nano-components/{tabbable-BgopY-vd.js → tabbable-CT4-pg7f.js} +1 -1
- package/dist/nano-components/{table.worker-BMDbprO8.js → table.worker--BAXV6ow.js} +1 -1
- package/dist/stencil.config.js +0 -1
- package/dist/style/components.css +1 -1
- package/dist/style/components.css.map +1 -1
- package/dist/style/core.css +1 -1
- package/dist/style/core.css.map +1 -1
- package/dist/style/dark.css +1 -1
- package/dist/style/dark.css.map +1 -1
- package/dist/style/light.css +1 -1
- package/dist/style/light.css.map +1 -1
- package/dist/style/nano.css +1 -1
- package/dist/style/nano.css.map +1 -1
- package/dist/types/builds/{sN_eAsgS/0/Digital → Digital}/nano-components/packages/components/.stencil/plugins/stencil/vue-output/generate-vue-component.d.ts +1 -1
- package/dist/types/builds/{sN_eAsgS/0/Digital → Digital}/nano-components/packages/components/.stencil/plugins/stencil/vue-output/output-vue.d.ts +1 -1
- package/dist/types/builds/{sN_eAsgS/0/Digital → Digital}/nano-components/packages/components/.stencil/plugins/stencil/vue-output/plugin.d.ts +1 -1
- package/dist/types/builds/Digital/nano-components/packages/components/.stencil/stencil.config.d.ts +2 -0
- package/dist/types/builds/Digital/nano-components/packages/components/.stencil/stencil.config.prod.d.ts +2 -0
- package/dist/types/components/badge/badge.d.ts +0 -2
- package/dist/types/components/cta/cta.d.ts +1 -1
- package/dist/types/components/icon/icon.d.ts +0 -4
- package/dist/types/components/slides/slides.d.ts +8 -0
- package/dist/types/components.d.ts +2 -18
- package/docs-json.json +151 -187
- package/docs-vscode.json +2 -41
- package/hydrate/index.js +75 -69
- package/hydrate/index.mjs +75 -69
- package/package.json +3 -3
- package/dist/cjs/app-globals-BRy5S0cS.js +0 -10
- package/dist/esm/app-globals-CWIH620u.js +0 -8
- package/dist/nano-components/app-globals-CWIH620u.js +0 -4
- package/dist/nano-components/dom-dlicJTEJ.js +0 -4
- package/dist/nano-components/index-BM3Om9WE.js +0 -5
- package/dist/nano-components/index-BlBZYxu4.js +0 -4
- package/dist/nano-components/nano-data-table-Bn4l0Q3q.js +0 -4
- package/dist/nano-components/nano-slides-0qDi5Vv7.js +0 -22
- package/dist/types/builds/sN_eAsgS/0/Digital/nano-components/packages/components/.stencil/stencil.config.d.ts +0 -2
- package/dist/types/builds/sN_eAsgS/0/Digital/nano-components/packages/components/.stencil/stencil.config.prod.d.ts +0 -2
- /package/dist/types/builds/{sN_eAsgS/0/Digital → Digital}/nano-components/packages/components/.stencil/plugins/stencil/vue-output/index.d.ts +0 -0
- /package/dist/types/builds/{sN_eAsgS/0/Digital → Digital}/nano-components/packages/components/.stencil/plugins/stencil/vue-output/types.d.ts +0 -0
- /package/dist/types/builds/{sN_eAsgS/0/Digital → Digital}/nano-components/packages/components/.stencil/plugins/stencil/vue-output/utils.d.ts +0 -0
- /package/dist/types/builds/{sN_eAsgS/0/Digital → Digital}/nano-components/packages/components/.stencil/testing/mocks/intersection-observer.d.ts +0 -0
- /package/dist/types/builds/{sN_eAsgS/0/Digital/nano-components/packages/components/.stencil/wdio.conf.d.ts → Digital/nano-components/packages/components/.stencil/wdio.config.d.ts} +0 -0
- /package/dist/{wdio.conf.js → wdio.config.js} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nanoporetech-digital/components",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.24.1",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"description": "A collection of Oxford Nanopore corporate / digital webcomponents",
|
|
6
6
|
"type": "module",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"smart-array-filter": "^4.0.2",
|
|
57
57
|
"stencil-wormhole": "3.2.1",
|
|
58
58
|
"tyqs": "^0.1.3",
|
|
59
|
-
"@nanoporetech-digital/style": "8.
|
|
59
|
+
"@nanoporetech-digital/style": "8.24.1"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"@algolia/client-search": "^4.22.1",
|
|
@@ -137,7 +137,7 @@
|
|
|
137
137
|
"prettier.test": "npm run prettier.base -- --check",
|
|
138
138
|
"prettier.base": "prettier \"./{src,jest}/**/*.{ts,tsx,js,jsx}\"",
|
|
139
139
|
"test": "pnpm run \"/^(test.spec|test.cmp)$/\" --parallel",
|
|
140
|
-
"test.cmp": "wdio run ./wdio.
|
|
140
|
+
"test.cmp": "wdio run ./wdio.config.ts",
|
|
141
141
|
"test.spec": "stencil test --spec --config='./stencil.config.test.ts'",
|
|
142
142
|
"style.sass": "sass --embed-sources --style=compressed --load-path=./node_modules ./src/style:style",
|
|
143
143
|
"style.assets": "node scripts/asset-path-replace.js",
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Custom elements for Nanopore-Digital Web applications
|
|
3
|
-
*/
|
|
4
|
-
import"./index-BM3Om9WE.js";var t;function e(t,e=this){return function e(n){if(!n||n===document||n===window)return null;n.assignedSlot&&(n=n.assignedSlot);return n.closest(t)||e(n.getRootNode().host)}(e)}function n(t,e,n=!0){if(!0===n)try{return e=":scope > "+e.split(",").join(", :scope >"),Array.from(t.querySelectorAll(e))}catch(t){console.error(t,"an error. sad")}const o=[];return Array.from(t.childNodes).forEach((t=>{t.matches&&t.matches(e)&&("SLOT"!==t.nodeName||"slot"!==n)?o.push(t):"SLOT"===t.nodeName?Array.from(t.assignedElements()).forEach((t=>{t.matches(e)&&o.push(t)})):n||o.push(t)})),o}function o(t,e){return e&&t?{top:t.getBoundingClientRect().top-e.getBoundingClientRect().top,left:t.getBoundingClientRect().left-e.getBoundingClientRect().left}:{top:0,left:0}}!function(t){t[t.ElementNode=1]="ElementNode",t[t.TextNode=3]="TextNode",t[t.CommentNode=8]="CommentNode",t[t.DocumentNode=9]="DocumentNode",t[t.DocumentTypeNode=10]="DocumentTypeNode",t[t.DocumentFragment=11]="DocumentFragment"}(t||(t={}));export{o as a,e as c,n as g}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Custom elements for Nanopore-Digital Web applications
|
|
3
|
-
*/
|
|
4
|
-
const t="nano-components";var n=Object.defineProperty,e={isServer:!1},o=(t=>(t.Undefined="undefined",t.Null="null",t.String="string",t.Number="number",t.SpecialNumber="number",t.Boolean="boolean",t.BigInt="bigint",t))(o||{}),l=(t=>(t.Array="array",t.Date="date",t.Map="map",t.Object="object",t.RegularExpression="regexp",t.Set="set",t.Channel="channel",t.Symbol="symbol",t))(l||{}),s="type",i="value",r="serialized:",c=(t,n)=>{var e;Object.entries(null!=(e=n.o.t)?e:{}).map((([e,[o]])=>{if(31&o||32&o){const o=t[e],l=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(t),e);Object.defineProperty(t,e,{get(){return l.get.call(this)},set(t){l.set.call(this,t)},configurable:!0,enumerable:!0}),t[e]=n.l.has(e)?n.l.get(e):o}}))},u=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},f=(t,n)=>{t.__stencil__getHostRef=()=>n,n.i=t,c(t,n)},a=(t,n)=>n in t,d=(t,n)=>(0,console.error)(t,n),h=new Map,p=new Map,v="s-id",b="sty-id",$="c-id",m="slot-fb{display:contents}slot-fb[hidden]{display:none}",y="http://www.w3.org/1999/xlink",g="undefined"!=typeof window?window:{},w=g.HTMLElement||class{},S={u:0,h:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,n,e,o)=>t.addEventListener(n,e,o),rel:(t,n,e,o)=>t.removeEventListener(n,e,o),ce:(t,n)=>new CustomEvent(t,n)},j=t=>Promise.resolve(t),O=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),N=!!O&&(()=>!!g.document&&Object.getOwnPropertyDescriptor(g.document.adoptedStyleSheets,"length").writable)(),x=!1,k=[],E=[],C=(t,n)=>e=>{t.push(e),x||(x=!0,n&&4&S.u?R(I):S.raf(I))},M=t=>{for(let n=0;n<t.length;n++)try{t[n](performance.now())}catch(t){d(t)}t.length=0},I=()=>{M(k),M(E),(x=k.length>0)&&S.raf(I)},R=t=>j().then(t),T=C(k,!1),A=C(E,!0),L=t=>{const n=new URL(t,S.h);return n.origin!==g.location.origin?n.href:n.pathname},B=t=>"object"==(t=typeof t)||"function"===t;function P(t){var n,e,o;return null!=(o=null==(e=null==(n=t.head)?void 0:n.querySelector('meta[name="csp-nonce"]'))?void 0:e.getAttribute("content"))?o:void 0}var F=class t{static fromLocalValue(n){const e=n[s],o=i in n?n[i]:void 0;switch(e){case"string":case"boolean":return o;case"bigint":return BigInt(o);case"undefined":return;case"null":return null;case"number":return"NaN"===o?NaN:"-0"===o?-0:"Infinity"===o?1/0:"-Infinity"===o?-1/0:o;case"array":return o.map((n=>t.fromLocalValue(n)));case"date":return new Date(o);case"map":const n=new Map;for(const[e,l]of o){const o="object"==typeof e&&null!==e?t.fromLocalValue(e):e,s=t.fromLocalValue(l);n.set(o,s)}return n;case"object":const l={};for(const[n,e]of o)l[n]=t.fromLocalValue(e);return l;case"regexp":const{pattern:s,flags:i}=o;return RegExp(s,i);case"set":const r=new Set;for(const n of o)r.add(t.fromLocalValue(n));return r;case"symbol":return Symbol(o);default:throw Error("Unsupported type: "+e)}}static fromLocalValueArray(n){return n.map((n=>t.fromLocalValue(n)))}static isLocalValueObject(t){if("object"!=typeof t||null===t)return!1;if(!t.hasOwnProperty(s))return!1;const n=t[s];return!!Object.values({...o,...l}).includes(n)&&("null"===n||"undefined"===n||t.hasOwnProperty(i))}};((t,e)=>{for(var o in e)n(t,o,{get:e[o],enumerable:!0})})({},{err:()=>_,map:()=>D,ok:()=>U,unwrap:()=>V,unwrapErr:()=>z});var U=t=>({isOk:!0,isErr:!1,value:t}),_=t=>({isOk:!1,isErr:!0,value:t});function D(t,n){if(t.isOk){const e=n(t.value);return e instanceof Promise?e.then((t=>U(t))):U(e)}if(t.isErr)return _(t.value);throw"should never get here"}var W,V=t=>{if(t.isOk)return t.value;throw t.value},z=t=>{if(t.isErr)return t.value;throw t.value};function H(){const t=this.attachShadow({mode:"open"});void 0===W&&(W=null),W&&(N?t.adoptedStyleSheets.push(W):t.adoptedStyleSheets=[...t.adoptedStyleSheets,W])}var q=t=>{const n=St(t,"childNodes");t.tagName&&t.tagName.includes("-")&&t["s-cr"]&&"SLOT-FB"!==t.tagName&&Y(n,t.tagName).forEach((t=>{1===t.nodeType&&"SLOT-FB"===t.tagName&&(t.hidden=!!G(t,X(t),!1).length)}));let e=0;for(e=0;e<n.length;e++){const t=n[e];1===t.nodeType&&St(t,"childNodes").length&&q(t)}},J=t=>{const n=[];for(let e=0;e<t.length;e++){const o=t[e]["s-nr"]||void 0;o&&o.isConnected&&n.push(o)}return n};function Y(t,n,e){let o,l=0,s=[];for(;l<t.length;l++){if(o=t[l],o["s-sr"]&&(!n||o["s-hn"]===n)&&(void 0===e||X(o)===e)&&(s.push(o),void 0!==e))return s;s=[...s,...Y(o.childNodes,n,e)]}return s}var G=(t,n,e=!0)=>{const o=[];(e&&t["s-sr"]||!t["s-sr"])&&o.push(t);let l=t;for(;l=l.nextSibling;)X(l)!==n||!e&&l["s-sr"]||o.push(l);return o},K=(t,n)=>1===t.nodeType?null===t.getAttribute("slot")&&""===n||t.getAttribute("slot")===n:t["s-sn"]===n||""===n,Q=(t,n,e,o)=>{if(t["s-ol"]&&t["s-ol"].isConnected)return;const l=document.createTextNode("");if(l["s-nr"]=t,!n["s-cr"]||!n["s-cr"].parentNode)return;const s=n["s-cr"].parentNode,i=St(s,e?"prepend":"appendChild");if(void 0!==o){l["s-oo"]=o;const t=St(s,"childNodes"),n=[l];t.forEach((t=>{t["s-nr"]&&n.push(t)})),n.sort(((t,n)=>!t["s-oo"]||t["s-oo"]<(n["s-oo"]||0)?-1:!n["s-oo"]||n["s-oo"]<t["s-oo"]?1:0)),n.forEach((t=>i.call(s,t)))}else i.call(s,l);t["s-ol"]=l,t["s-sh"]=n["s-hn"]},X=t=>"string"==typeof t["s-sn"]?t["s-sn"]:1===t.nodeType&&t.getAttribute("slot")||void 0;function Z(t){if(t.assignedElements||t.assignedNodes||!t["s-sr"])return;const n=n=>function(t){const e=[],o=this["s-sn"];(null==t?void 0:t.flatten)&&console.error("\n Flattening is not supported for Stencil non-shadow slots.\n You can use `.childNodes` to nested slot fallback content.\n If you have a particular use case, please open an issue on the Stencil repo.\n ");const l=this["s-cr"].parentElement;return(l.__childNodes?l.childNodes:J(l.childNodes)).forEach((t=>{o===X(t)&&e.push(t)})),n?e.filter((t=>1===t.nodeType)):e}.bind(t);t.assignedElements=n(!0),t.assignedNodes=n(!1)}function tt(t){t.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1}))}function nt(t,n){var e;if(!(n=n||(null==(e=t["s-ol"])?void 0:e.parentElement)))return{slotNode:null,slotName:""};const o=t["s-sn"]=X(t)||"";return{slotNode:Y(St(n,"childNodes"),n.tagName,o)[0],slotName:o}}var et=t=>{const n=t.cloneNode;t.cloneNode=function(t){const e=this.shadowRoot&&true,o=n.call(this,!!e&&t);if(!e&&t){let t,n,e=0;const l=["s-id","s-cr","s-lr","s-rc","s-sc","s-p","s-cn","s-sr","s-sn","s-hn","s-ol","s-nr","s-si","s-rf","s-scs"],s=this.__childNodes||this.childNodes;for(;e<s.length;e++)t=s[e]["s-nr"],n=l.every((t=>!s[e][t])),t&&(o.__appendChild?o.__appendChild(t.cloneNode(!0)):o.appendChild(t.cloneNode(!0))),n&&o.appendChild(s[e].cloneNode(!0))}return o}},ot=t=>{t.__appendChild=t.appendChild,t.appendChild=function(t){const{slotName:n,slotNode:e}=nt(t,this);if(e){Q(t,e);const o=G(e,n),l=o[o.length-1],s=St(l,"parentNode"),i=St(s,"insertBefore")(t,l.nextSibling);return tt(e),q(this),i}return this.__appendChild(t)}},lt=t=>{t.__removeChild=t.removeChild,t.removeChild=function(t){return t&&void 0!==t["s-sn"]&&Y(this.__childNodes||this.childNodes,this.tagName,t["s-sn"])&&t.isConnected?(t.remove(),void q(this)):this.__removeChild(t)}},st=t=>{t.__prepend=t.prepend,t.prepend=function(...n){n.forEach((n=>{"string"==typeof n&&(n=this.ownerDocument.createTextNode(n));const e=(n["s-sn"]=X(n))||"",o=Y(St(this,"childNodes"),this.tagName,e)[0];if(o){Q(n,o,!0);const t=G(o,e)[0],l=St(t,"parentNode"),s=St(l,"insertBefore")(n,St(t,"nextSibling"));return tt(o),s}return 1===n.nodeType&&n.getAttribute("slot")&&(n.hidden=!0),t.__prepend(n)}))}},it=t=>{t.__append=t.append,t.append=function(...t){t.forEach((t=>{"string"==typeof t&&(t=this.ownerDocument.createTextNode(t)),this.appendChild(t)}))}},rt=t=>{const n=t.insertAdjacentHTML;t.insertAdjacentHTML=function(t,e){if("afterbegin"!==t&&"beforeend"!==t)return n.call(this,t,e);const o=this.ownerDocument.createElement("_");let l;if(o.innerHTML=e,"afterbegin"===t)for(;l=o.firstChild;)this.prepend(l);else if("beforeend"===t)for(;l=o.firstChild;)this.append(l)}},ct=t=>{t.insertAdjacentText=function(t,n){this.insertAdjacentHTML(t,n)}},ut=t=>{t.__insertBefore||(t.__insertBefore=t.insertBefore,t.insertBefore=function(t,n){const{slotName:e,slotNode:o}=nt(t,this),l=this.__childNodes?this.childNodes:J(this.childNodes);if(o){let s=!1;if(l.forEach((l=>{if(l!==n&&null!==n);else{if(s=!0,null===n||e!==n["s-sn"])return void this.appendChild(t);if(e===n["s-sn"]){Q(t,o);const e=St(n,"parentNode");St(e,"insertBefore")(t,n),tt(o)}}})),s)return t}const s=null==n?void 0:n.__parentNode;return s&&!this.isSameNode(s)?this.appendChild(t):this.__insertBefore(t,n)})},ft=t=>{const n=t.insertAdjacentElement;t.insertAdjacentElement=function(t,e){return"afterbegin"!==t&&"beforeend"!==t?n.call(this,t,e):"afterbegin"===t?(this.prepend(e),e):"beforeend"===t?(this.append(e),e):e}},at=t=>{wt("textContent",t),Object.defineProperty(t,"textContent",{get:function(){let t="";return(this.__childNodes?this.childNodes:J(this.childNodes)).forEach((n=>t+=n.textContent||"")),t},set:function(t){(this.__childNodes?this.childNodes:J(this.childNodes)).forEach((t=>{t["s-ol"]&&t["s-ol"].remove(),t.remove()})),this.insertAdjacentHTML("beforeend",t)}})},dt=t=>{class n extends Array{item(t){return this[t]}}wt("children",t),Object.defineProperty(t,"children",{get(){return this.childNodes.filter((t=>1===t.nodeType))}}),Object.defineProperty(t,"childElementCount",{get(){return this.children.length}}),wt("firstChild",t),Object.defineProperty(t,"firstChild",{get(){return this.childNodes[0]}}),wt("lastChild",t),Object.defineProperty(t,"lastChild",{get(){return this.childNodes[this.childNodes.length-1]}}),wt("childNodes",t),Object.defineProperty(t,"childNodes",{get(){const t=new n;return t.push(...J(this.__childNodes)),t}})},ht=t=>{t&&void 0===t.__nextSibling&&globalThis.Node&&(pt(t),bt(t),mt(t),t.nodeType===Node.ELEMENT_NODE&&(vt(t),$t(t)))},pt=t=>{t&&!t.__nextSibling&&(wt("nextSibling",t),Object.defineProperty(t,"nextSibling",{get:function(){var t;const n=null==(t=this["s-ol"])?void 0:t.parentNode.childNodes,e=null==n?void 0:n.indexOf(this);return n&&e>-1?n[e+1]:this.__nextSibling}}))},vt=t=>{t&&!t.__nextElementSibling&&(wt("nextElementSibling",t),Object.defineProperty(t,"nextElementSibling",{get:function(){var t;const n=null==(t=this["s-ol"])?void 0:t.parentNode.children,e=null==n?void 0:n.indexOf(this);return n&&e>-1?n[e+1]:this.__nextElementSibling}}))},bt=t=>{t&&!t.__previousSibling&&(wt("previousSibling",t),Object.defineProperty(t,"previousSibling",{get:function(){var t;const n=null==(t=this["s-ol"])?void 0:t.parentNode.childNodes,e=null==n?void 0:n.indexOf(this);return n&&e>-1?n[e-1]:this.__previousSibling}}))},$t=t=>{t&&!t.__previousElementSibling&&(wt("previousElementSibling",t),Object.defineProperty(t,"previousElementSibling",{get:function(){var t;const n=null==(t=this["s-ol"])?void 0:t.parentNode.children,e=null==n?void 0:n.indexOf(this);return n&&e>-1?n[e-1]:this.__previousElementSibling}}))},mt=t=>{t&&!t.__parentNode&&(wt("parentNode",t),Object.defineProperty(t,"parentNode",{get:function(){var t;return(null==(t=this["s-ol"])?void 0:t.parentNode)||this.__parentNode},set:function(t){this.__parentNode=t}}))},yt=["children","nextElementSibling","previousElementSibling"],gt=["childNodes","firstChild","lastChild","nextSibling","previousSibling","textContent","parentNode"];function wt(t,n){if(!globalThis.Node||!globalThis.Element)return;let e;yt.includes(t)?e=Object.getOwnPropertyDescriptor(Element.prototype,t):gt.includes(t)&&(e=Object.getOwnPropertyDescriptor(Node.prototype,t)),e||(e=Object.getOwnPropertyDescriptor(n,t)),e&&Object.defineProperty(n,"__"+t,e)}function St(t,n){if("__"+n in t){const e=t["__"+n];return"function"!=typeof e?e:e.bind(t)}return"function"!=typeof t[n]?t[n]:t[n].bind(t)}var jt=new WeakMap,Ot=(t,n,e)=>{let o=p.get(t);O&&e?(o=o||new CSSStyleSheet,"string"==typeof o?o=n:o.replaceSync(n)):o=n,p.set(t,o)},Nt=(t,n)=>{var e;const o=xt(n),l=p.get(o);if(!g.document)return o;if(t=11===t.nodeType?t:g.document,l)if("string"==typeof l){let s,i=jt.get(t=t.head||t);if(i||jt.set(t,i=new Set),!i.has(o)){if(t.host&&(s=t.querySelector(`[${b}="${o}"]`)))s.innerHTML=l;else{s=g.document.createElement("style"),s.innerHTML=l;const o=null!=(e=S.p)?e:P(g.document);if(null!=o&&s.setAttribute("nonce",o),!(1&n.u))if("HEAD"===t.nodeName){const n=t.querySelectorAll("link[rel=preconnect]"),e=n.length>0?n[n.length-1].nextSibling:t.querySelector("style");t.insertBefore(s,(null==e?void 0:e.parentNode)===t?e:null)}else if("host"in t)if(O){const n=new CSSStyleSheet;n.replaceSync(l),N?t.adoptedStyleSheets.unshift(n):t.adoptedStyleSheets=[n,...t.adoptedStyleSheets]}else{const n=t.querySelector("style");n?n.innerHTML=l+n.innerHTML:t.prepend(s)}else t.append(s);1&n.u&&t.insertBefore(s,null)}4&n.u&&(s.innerHTML+=m),i&&i.add(o)}}else t.adoptedStyleSheets.includes(l)||(N?t.adoptedStyleSheets.push(l):t.adoptedStyleSheets=[...t.adoptedStyleSheets,l]);return o},xt=t=>"sc-"+t.v,kt=t=>t.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{"),Et=(t,n,...e)=>{let o=null,l=null,s=null,i=!1,r=!1;const c=[],u=n=>{for(let e=0;e<n.length;e++)o=n[e],Array.isArray(o)?u(o):null!=o&&"boolean"!=typeof o&&((i="function"!=typeof t&&!B(o))&&(o+=""),i&&r?c[c.length-1].$+=o:c.push(i?Ct(null,o):o),r=i)};if(u(e),n){n.key&&(l=n.key),n.name&&(s=n.name);{const t=n.className||n.class;t&&(n.class="object"!=typeof t?t:Object.keys(t).filter((n=>t[n])).join(" "))}}if("function"==typeof t)return t(null===n?{}:n,c,It);const f=Ct(t,null);return f.m=n,c.length>0&&(f.S=c),f.j=l,f.O=s,f},Ct=(t,n)=>({u:0,N:t,$:n,k:null,S:null,m:null,j:null,O:null}),Mt={},It={forEach:(t,n)=>t.map(Rt).forEach(n),map:(t,n)=>t.map(Rt).map(n).map(Tt)},Rt=t=>({vattrs:t.m,vchildren:t.S,vkey:t.j,vname:t.O,vtag:t.N,vtext:t.$}),Tt=t=>{if("function"==typeof t.vtag){const n={...t.vattrs};return t.vkey&&(n.key=t.vkey),t.vname&&(n.name=t.vname),Et(t.vtag,n,...t.vchildren||[])}const n=Ct(t.vtag,t.vtext);return n.m=t.vattrs,n.S=t.vchildren,n.j=t.vkey,n.O=t.vname,n},At=(t,n,e,o,l,s,i,r=[])=>{let c,u,f,a;const d=l["s-sc"];if(1===s.nodeType){if(c=s.getAttribute($),c&&(u=c.split("."),u[0]===i||"0"===u[0])){f=Bt({u:0,C:u[0],M:u[1],I:u[2],R:u[3],N:s.tagName.toLowerCase(),k:s,m:{class:s.className||""}}),n.push(f),s.removeAttribute($),t.S||(t.S=[]),d&&u[0]===i&&(s["s-si"]=d,f.m.class+=" "+d);const l=f.k.getAttribute("s-sn");"string"==typeof l&&("slot-fb"===f.N&&(Pt(l,u[2],f,s,t,n,e,o,r),d&&s.classList.add(d)),f.k["s-sn"]=l,f.k.removeAttribute("s-sn")),void 0!==f.R&&(t.S[f.R]=f),t=f,o&&"0"===f.I&&(o[f.R]=f.k)}if(s.shadowRoot)for(a=s.shadowRoot.childNodes.length-1;a>=0;a--)At(t,n,e,o,l,s.shadowRoot.childNodes[a],i,r);const h=s.__childNodes||s.childNodes;for(a=h.length-1;a>=0;a--)At(t,n,e,o,l,h[a],i,r)}else if(8===s.nodeType)u=s.nodeValue.split("."),(u[1]===i||"0"===u[1])&&(c=u[0],f=Bt({C:u[1],M:u[2],I:u[3],R:u[4]||"0",k:s,m:null,S:null,j:null,O:null,N:null,$:null}),"t"===c?(f.k=Ut(s,3),f.k&&3===f.k.nodeType&&(f.$=f.k.textContent,n.push(f),s.remove(),i===f.C&&(t.S||(t.S=[]),t.S[f.R]=f),o&&"0"===f.I&&(o[f.R]=f.k))):"c"===c?(f.k=Ut(s,8),f.k&&8===f.k.nodeType&&(n.push(f),s.remove())):f.C===i&&("s"===c?Pt(s["s-sn"]=u[5]||"",u[2],f,s,t,n,e,o,r):"r"===c&&(o?s.remove():(l["s-cr"]=s,s["s-cn"]=!0))));else if(t&&"style"===t.N){const n=Ct(null,s.textContent);n.k=s,n.R="0",t.S=[n]}else 3!==s.nodeType||s.wholeText.trim()||s["s-nr"]||s.remove();return t},Lt=(t,n)=>{if(1===t.nodeType){const e=t[v]||t.getAttribute(v);e&&n.set(e,t);let o=0;if(t.shadowRoot)for(;o<t.shadowRoot.childNodes.length;o++)Lt(t.shadowRoot.childNodes[o],n);const l=t.__childNodes||t.childNodes;for(o=0;o<l.length;o++)Lt(l[o],n)}else if(8===t.nodeType){const e=t.nodeValue.split(".");"o"===e[0]&&(n.set(e[1]+"."+e[2],t),t.nodeValue="",t["s-en"]=e[3])}},Bt=t=>({u:0,C:null,M:null,I:null,R:"0",k:null,m:null,S:null,j:null,O:null,N:null,$:null,...t});function Pt(t,n,e,o,l,s,i,r,c){o["s-sr"]=!0,e.O=t||null,e.N="slot";const u=(null==l?void 0:l.k)?l.k["s-id"]||l.k.getAttribute("s-id"):"";if(r&&g.document){const s=e.k=g.document.createElement(e.N);e.O&&e.k.setAttribute("name",t),l.k.shadowRoot&&u&&u!==e.C?St(l.k,"insertBefore")(s,St(l.k,"children")[0]):St(St(o,"parentNode"),"insertBefore")(s,o),Ft(c,n,t,o,e.C),o.remove(),"0"===e.I&&(r[e.R]=e.k)}else{const s=e.k,i=u&&u!==e.C&&l.k.shadowRoot;Ft(c,n,t,o,i?u:e.C),Z(o),i&&l.k.insertBefore(s,l.k.children[0])}s.push(e),i.push(e),l.S||(l.S=[]),l.S[e.R]=e}var Ft=(t,n,e,o,l)=>{var s,i;let r=o.nextSibling;if(t[n]=t[n]||[],r&&!(null==(s=r.nodeValue)?void 0:s.startsWith("s.")))do{!r||(r.getAttribute&&r.getAttribute("slot")||r["s-sn"])!==e&&(""!==e||r["s-sn"]||r.getAttribute&&r.getAttribute("slot")||8!==r.nodeType&&3!==r.nodeType)||(r["s-sn"]=e,t[n].push({slot:o,node:r,hostId:l})),r=null==r?void 0:r.nextSibling}while(r&&!(null==(i=r.nodeValue)?void 0:i.startsWith("s.")))},Ut=(t,n)=>{let e=t;do{e=e.nextSibling}while(e&&(e.nodeType!==n||!e.nodeValue));return e},_t=t=>{const n=(t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"))(t);return RegExp(`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${n}))(${n}\\b)`,"g")};_t("::slotted"),_t(":host"),_t(":host-context");var Dt,Wt,Vt,zt=(t,n)=>{if("string"==typeof t&&(t.startsWith("{")&&t.endsWith("}")||t.startsWith("[")&&t.endsWith("]")))try{return JSON.parse(t)}catch(t){}return"string"==typeof t&&t.startsWith(r)?t=function(t){return"string"==typeof t&&t.startsWith(r)?F.fromLocalValue(JSON.parse(atob(t.slice(11)))):t}(t):null==t||B(t)?t:4&n?"false"!==t&&(""===t||!!t):2&n?"string"==typeof t?parseFloat(t):"number"==typeof t?t:NaN:1&n?t+"":t},Ht=t=>{var n;return null==(n=u(t))?void 0:n.$hostElement$},qt=(t,n,e)=>{const o=Ht(t);return{emit:t=>Jt(o,n,{bubbles:!!(4&e),composed:!!(2&e),cancelable:!!(1&e),detail:t})}},Jt=(t,n,e)=>{const o=S.ce(n,e);return t.dispatchEvent(o),o},Yt=(t,n,e,o,l,s,i)=>{if(e===o)return;let r=a(t,n),c=n.toLowerCase();if("class"===n){const n=t.classList,l=Kt(e);let s=Kt(o);if((t["s-si"]||t["s-sc"])&&i){const e=t["s-sc"]||t["s-si"];s.push(e),l.forEach((t=>{t.startsWith(e)&&s.push(t)})),s=[...new Set(s)].filter((t=>t)),n.add(...s)}else n.remove(...l.filter((t=>t&&!s.includes(t)))),n.add(...s.filter((t=>t&&!l.includes(t))))}else if("style"===n){for(const n in e)o&&null!=o[n]||(n.includes("-")?t.style.removeProperty(n):t.style[n]="");for(const n in o)e&&o[n]===e[n]||(n.includes("-")?t.style.setProperty(n,o[n]):t.style[n]=o[n])}else if("key"===n);else if("ref"===n)o&&o(t);else if(r||"o"!==n[0]||"n"!==n[1]){const i=B(o);if(r||i&&null!==o)try{if(t.tagName.includes("-"))t[n]!==o&&(t[n]=o);else{const l=null==o?"":o;"list"===n?r=!1:null!=e&&t[n]==l||("function"==typeof t.__lookupSetter__(n)?t[n]=l:t.setAttribute(n,l))}}catch(t){}let u=!1;c!==(c=c.replace(/^xlink\:?/,""))&&(n=c,u=!0),null==o||!1===o?!1===o&&""!==t.getAttribute(n)||(u?t.removeAttributeNS(y,n):t.removeAttribute(n)):(!r||4&s||l)&&!i&&1===t.nodeType&&(o=!0===o?"":o,u?t.setAttributeNS(y,n,o):t.setAttribute(n,o))}else if(n="-"===n[2]?n.slice(3):a(g,c)?c.slice(2):c[2]+n.slice(3),e||o){const l=n.endsWith(Qt);n=n.replace(Xt,""),e&&S.rel(t,n,e,l),o&&S.ael(t,n,o,l)}},Gt=/\s/,Kt=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(Gt):[]),Qt="Capture",Xt=RegExp(Qt+"$"),Zt=(t,n,e,o)=>{const l=11===n.k.nodeType&&n.k.host?n.k.host:n.k,s=t&&t.m||{},i=n.m||{};for(const t of tn(Object.keys(s)))t in i||Yt(l,t,s[t],void 0,e,n.u,o);for(const t of tn(Object.keys(i)))Yt(l,t,s[t],i[t],e,n.u,o)};function tn(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var nn=!1,en=!1,on=!1,ln=!1,sn=(t,n,e)=>{var o;const l=n.S[e];let s,i,r,c=0;if(nn||(on=!0,"slot"===l.N&&(l.u|=l.S?2:1)),null!==l.$)s=l.k=g.document.createTextNode(l.$);else if(1&l.u)s=l.k=g.document.createTextNode(""),Zt(null,l,ln);else{if(!g.document)throw Error("You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component.");if(s=l.k=g.document.createElement(!nn&&2&l.u?"slot-fb":l.N),Zt(null,l,ln),null!=Dt&&void 0!==Dt&&s["s-si"]!==Dt&&s.classList.add(s["s-si"]=Dt),l.S)for(c=0;c<l.S.length;++c)i=sn(t,l,c),i&&s.appendChild(i)}return s["s-hn"]=Vt,3&l.u&&(s["s-sr"]=!0,s["s-cr"]=Wt,s["s-sn"]=l.O||"",s["s-rf"]=null==(o=l.m)?void 0:o.ref,Z(s),r=t&&t.S&&t.S[e],r&&r.N===l.N&&t.k&&rn(t.k),mn(Wt,s,n.k,null==t?void 0:t.k)),s},rn=t=>{S.u|=1;const n=t.closest(Vt.toLowerCase());if(null!=n){const e=Array.from(n.__childNodes||n.childNodes).find((t=>t["s-cr"])),o=Array.from(t.__childNodes||t.childNodes);for(const t of e?o.reverse():o)null!=t["s-sh"]&&($n(n,t,null!=e?e:null),t["s-sh"]=void 0,on=!0)}S.u&=-2},cn=(t,n)=>{S.u|=1;const e=Array.from(t.__childNodes||t.childNodes);if(t["s-sr"]){let n=t;for(;n=n.nextSibling;)n&&n["s-sn"]===t["s-sn"]&&n["s-sh"]===Vt&&e.push(n)}for(let t=e.length-1;t>=0;t--){const o=e[t];o["s-hn"]!==Vt&&o["s-ol"]&&($n(dn(o).parentNode,o,dn(o)),o["s-ol"].remove(),o["s-ol"]=void 0,o["s-sh"]=void 0,on=!0),n&&cn(o,n)}S.u&=-2},un=(t,n,e,o,l,s)=>{let i,r=t["s-cr"]&&t["s-cr"].parentNode||t;for(r.shadowRoot&&r.tagName===Vt&&(r=r.shadowRoot);l<=s;++l)o[l]&&(i=sn(null,e,l),i&&(o[l].k=i,$n(r,i,dn(n))))},fn=(t,n,e)=>{for(let o=n;o<=e;++o){const n=t[o];if(n){const t=n.k;bn(n),t&&(en=!0,t["s-ol"]?t["s-ol"].remove():cn(t,!0),t.remove())}}},an=(t,n,e=!1)=>t.N===n.N&&("slot"===t.N?t.O===n.O:e?(e&&!t.j&&n.j&&(t.j=n.j),!0):t.j===n.j),dn=t=>t&&t["s-ol"]||t,hn=(t,n,e=!1)=>{const o=n.k=t.k,l=t.S,s=n.S,i=n.$;let r;null===i?("slot"!==n.N||nn||t.O!==n.O&&(n.k["s-sn"]=n.O||"",rn(n.k.parentElement)),Zt(t,n,ln,e),null!==l&&null!==s?((t,n,e,o,l=!1)=>{let s,i,r=0,c=0,u=0,f=0,a=n.length-1,d=n[0],h=n[a],p=o.length-1,v=o[0],b=o[p];for(;r<=a&&c<=p;)if(null==d)d=n[++r];else if(null==h)h=n[--a];else if(null==v)v=o[++c];else if(null==b)b=o[--p];else if(an(d,v,l))hn(d,v,l),d=n[++r],v=o[++c];else if(an(h,b,l))hn(h,b,l),h=n[--a],b=o[--p];else if(an(d,b,l))"slot"!==d.N&&"slot"!==b.N||cn(d.k.parentNode,!1),hn(d,b,l),$n(t,d.k,h.k.nextSibling),d=n[++r],b=o[--p];else if(an(h,v,l))"slot"!==d.N&&"slot"!==b.N||cn(h.k.parentNode,!1),hn(h,v,l),$n(t,h.k,d.k),h=n[--a],v=o[++c];else{for(u=-1,f=r;f<=a;++f)if(n[f]&&null!==n[f].j&&n[f].j===v.j){u=f;break}u>=0?(i=n[u],i.N!==v.N?s=sn(n&&n[c],e,u):(hn(i,v,l),n[u]=void 0,s=i.k),v=o[++c]):(s=sn(n&&n[c],e,c),v=o[++c]),s&&$n(dn(d.k).parentNode,s,dn(d.k))}r>a?un(t,null==o[p+1]?null:o[p+1].k,e,o,c,p):c>p&&fn(n,r,a)})(o,l,n,s,e):null!==s?(null!==t.$&&(o.textContent=""),un(o,null,n,s,0,s.length-1)):e||null===l?e&&null!==l&&null===s&&(n.S=l):fn(l,0,l.length-1)):(r=o["s-cr"])?r.parentNode.textContent=i:t.$!==i&&(o.data=i)},pn=[],vn=t=>{let n,e,o;const l=t.__childNodes||t.childNodes;for(const t of l){if(t["s-sr"]&&(n=t["s-cr"])&&n.parentNode){e=n.parentNode.__childNodes||n.parentNode.childNodes;const l=t["s-sn"];for(o=e.length-1;o>=0;o--)if(n=e[o],!(n["s-cn"]||n["s-nr"]||n["s-hn"]===t["s-hn"]||n["s-sh"]&&n["s-sh"]===t["s-hn"]))if(K(n,l)){let e=pn.find((t=>t.T===n));en=!0,n["s-sn"]=n["s-sn"]||l,e?(e.T["s-sh"]=t["s-hn"],e.A=t):(n["s-sh"]=t["s-hn"],pn.push({A:t,T:n})),n["s-sr"]&&pn.map((t=>{K(t.T,n["s-sn"])&&(e=pn.find((t=>t.T===n)),e&&!t.A&&(t.A=e.A))}))}else pn.some((t=>t.T===n))||pn.push({T:n})}1===t.nodeType&&vn(t)}},bn=t=>{t.m&&t.m.ref&&t.m.ref(null),t.S&&t.S.map(bn)},$n=(t,n,e)=>{if("string"==typeof n["s-sn"]&&n["s-sr"]&&n["s-cr"])mn(n["s-cr"],n,t,n.parentElement);else if("string"==typeof n["s-sn"]){11!==t.getRootNode().nodeType&&mt(n),t.insertBefore(n,e);const{slotNode:o}=nt(n);return o&&tt(o),n}return t.__insertBefore?t.__insertBefore(n,e):null==t?void 0:t.insertBefore(n,e)};function mn(t,n,e,o){var l,s;let i;if(t&&"string"==typeof n["s-sn"]&&n["s-sr"]&&t.parentNode&&t.parentNode["s-sc"]&&(i=n["s-si"]||t.parentNode["s-sc"])){const t=n["s-sn"],r=n["s-hn"];if(null==(l=e.classList)||l.add(i+"-s"),o&&(null==(s=o.classList)?void 0:s.contains(i+"-s"))){let n=(o.__childNodes||o.childNodes)[0],e=!1;for(;n;){if(n["s-sn"]!==t&&n["s-hn"]===r&&n["s-sr"]){e=!0;break}n=n.nextSibling}e||o.classList.remove(i+"-s")}}}var yn=(t,n)=>{if(n&&!t.L&&n["s-p"]){const e=n["s-p"].push(new Promise((o=>t.L=()=>{n["s-p"].splice(e-1,1),o()})))}},gn=(t,n)=>{if(t.u|=16,4&t.u)return void(t.u|=512);yn(t,t.B);const e=()=>wn(t,n);if(!n)return A(e);queueMicrotask((()=>{e()}))},wn=(t,n)=>{const e=t.$hostElement$,o=t.i;if(!o)throw Error(`Can't render component <${e.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return n?(t.u|=256,t.P&&(t.P.map((([t,n])=>In(o,t,n,e))),t.P=void 0),l=In(o,"componentWillLoad",void 0,e)):l=In(o,"componentWillUpdate",void 0,e),l=Sn(l,(()=>In(o,"componentWillRender",void 0,e))),Sn(l,(()=>On(t,o,n)))},Sn=(t,n)=>jn(t)?t.then(n).catch((t=>{console.error(t),n()})):n(),jn=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,On=async(t,n,e)=>{var o;const l=t.$hostElement$,s=l["s-rc"];e&&(t=>{const n=t.o,e=t.$hostElement$,o=n.u,l=Nt(e.shadowRoot?e.shadowRoot:e.getRootNode(),n);10&o&&(e["s-sc"]=l,e.classList.add(l+"-h"))})(t);xn(t,n,l,e),s&&(s.map((t=>t())),l["s-rc"]=void 0);{const n=null!=(o=l["s-p"])?o:[],e=()=>En(t);0===n.length?e():(Promise.all(n).then(e),t.u|=4,n.length=0)}},Nn=null,xn=(t,n,e,o)=>{try{Nn=n,n=n.render&&n.render(),t.u&=-17,t.u|=2,((t,n,e=!1)=>{var o,l,s,i,r;const c=t.$hostElement$,u=t.o,f=t.F||Ct(null,null),a=(t=>t&&t.N===Mt)(n)?n:Et(null,null,n);if(Vt=c.tagName,u.U&&(a.m=a.m||{},u.U.map((([t,n])=>a.m[n]=c[t]))),e&&a.m)for(const t of Object.keys(a.m))c.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(a.m[t]=c[t]);if(a.N=null,a.u|=4,t.F=a,a.k=f.k=c.shadowRoot||c,Dt=c["s-sc"],nn=!(!(1&u.u)||128&u.u),Wt=c["s-cr"],en=!1,hn(f,a,e),S.u|=1,on){vn(a.k);for(const t of pn){const n=t.T;if(!n["s-ol"]&&g.document){const t=g.document.createTextNode("");t["s-nr"]=n,$n(n.parentNode,n["s-ol"]=t,n)}}for(const t of pn){const n=t.T,r=t.A;if(r){const t=r.parentNode;let e=r.nextSibling;if(e&&1===e.nodeType){let s=null==(o=n["s-ol"])?void 0:o.previousSibling;for(;s;){let o=null!=(l=s["s-nr"])?l:null;if(o&&o["s-sn"]===n["s-sn"]&&t===(o.__parentNode||o.parentNode)){for(o=o.nextSibling;o===n||(null==o?void 0:o["s-sr"]);)o=null==o?void 0:o.nextSibling;if(!o||!o["s-nr"]){e=o;break}}s=s.previousSibling}}(!e&&t!==(n.__parentNode||n.parentNode)||(n.__nextSibling||n.nextSibling)!==e)&&n!==e&&($n(t,n,e),1===n.nodeType&&"SLOT-FB"!==n.tagName&&(n.hidden=null!=(s=n["s-ih"])&&s)),n&&"function"==typeof r["s-rf"]&&r["s-rf"](r)}else 1===n.nodeType&&(e&&(n["s-ih"]=null!=(i=n.hidden)&&i),n.hidden=!0)}}if(en&&q(a.k),S.u&=-2,pn.length=0,2&u.u){const t=a.k.__childNodes||a.k.childNodes;for(const n of t)n["s-hn"]===Vt||n["s-sh"]||(e&&null==n["s-ih"]&&(n["s-ih"]=null!=(r=n.hidden)&&r),n.hidden=!0)}Wt=void 0})(t,n,o)}catch(n){d(n,t.$hostElement$)}return Nn=null,null},kn=()=>Nn,En=t=>{const n=t.$hostElement$,e=t.i,o=t.B;In(e,"componentDidRender",void 0,n),64&t.u?In(e,"componentDidUpdate",void 0,n):(t.u|=64,Rn(n),In(e,"componentDidLoad",void 0,n),t._(n),o||Mn()),t.D(n),t.L&&(t.L(),t.L=void 0),512&t.u&&R((()=>gn(t,!1))),t.u&=-517},Cn=t=>{var n;{const e=u(t),o=null==(n=null==e?void 0:e.$hostElement$)?void 0:n.isConnected;return o&&2==(18&e.u)&&gn(e,!1),o}},Mn=()=>{var n;R((()=>Jt(g,"appload",{detail:{namespace:t}}))),(null==(n=S.W)?void 0:n.size)&&S.W.clear()},In=(t,n,e,o)=>{if(t&&t[n])try{return t[n](e)}catch(t){d(t,o)}},Rn=t=>t.classList.add("hydrated"),Tn=(t,n,e,o)=>{const l=u(t);if(!l)return;if(!l)throw Error(`Couldn't find host element for "${o.v}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`);const s=l.$hostElement$,i=l.l.get(n),r=l.u,c=l.i;if(e=zt(e,o.t[n][0]),(!(8&r)||void 0===i)&&e!==i&&(!Number.isNaN(i)||!Number.isNaN(e))&&(l.l.set(n,e),c)){if(o.V&&128&r){const t=o.V[n];t&&t.map((t=>{try{c[t](e,i,n)}catch(t){d(t,s)}}))}if(2==(18&r)){if(c.componentShouldUpdate&&!1===c.componentShouldUpdate(e,i,n))return;gn(l,!1)}}},An=(t,n,e)=>{var o,l;const s=t.prototype;if(n.t||n.V||t.watchers){t.watchers&&!n.V&&(n.V=t.watchers);const i=Object.entries(null!=(o=n.t)?o:{});if(i.map((([t,[o]])=>{if(31&o||2&e&&32&o){const{get:l,set:i}=Object.getOwnPropertyDescriptor(s,t)||{};l&&(n.t[t][0]|=2048),i&&(n.t[t][0]|=4096),(1&e||!l)&&Object.defineProperty(s,t,{get(){{if(!(2048&n.t[t][0]))return((t,n)=>u(this).l.get(n))(0,t);const e=u(this),o=e?e.i:s;if(!o)return;return o[t]}},configurable:!0,enumerable:!0}),Object.defineProperty(s,t,{set(l){const s=u(this);if(s){if(i){const e=32&o?this[t]:s.$hostElement$[t];return void 0===e&&s.l.get(t)?l=s.l.get(t):!s.l.get(t)&&e&&s.l.set(t,e),i.call(this,zt(l,o)),void Tn(this,t,l=32&o?this[t]:s.$hostElement$[t],n)}{if(!(1&e&&4096&n.t[t][0]))return Tn(this,t,l,n),void(1&e&&!s.i&&s.H.then((()=>{4096&n.t[t][0]&&s.i[t]!==s.l.get(t)&&(s.i[t]=l)})));const i=()=>{const e=s.i[t];!s.l.get(t)&&e&&s.l.set(t,e),s.i[t]=zt(l,o),Tn(this,t,s.i[t],n)};s.i?i():s.H.then((()=>i()))}}}})}else 1&e&&64&o&&Object.defineProperty(s,t,{value(...n){var e;const o=u(this);return null==(e=null==o?void 0:o.q)?void 0:e.then((()=>{var e;return null==(e=o.i)?void 0:e[t](...n)}))}})})),1&e){const e=new Map;s.attributeChangedCallback=function(t,o,l){S.jmp((()=>{var i;const r=e.get(t);if(this.hasOwnProperty(r))l=this[r],delete this[r];else{if(s.hasOwnProperty(r)&&"number"==typeof this[r]&&this[r]==l)return;if(null==r){const e=u(this),s=null==e?void 0:e.u;if(e&&s&&!(8&s)&&128&s&&l!==o){const s=e.i,r=null==(i=n.V)?void 0:i[t];null==r||r.forEach((n=>{null!=s[n]&&s[n].call(s,l,o,t)}))}return}}const c=Object.getOwnPropertyDescriptor(s,r);(l=(null!==l||"boolean"!=typeof this[r])&&l)===this[r]||c.get&&!c.set||(this[r]=l)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(l=n.V)?l:{}),...i.filter((([t,n])=>15&n[0])).map((([t,o])=>{var l;const s=o[1]||t;return e.set(s,t),512&o[0]&&(null==(l=n.U)||l.push([t,s])),s}))]))}}return t},Ln=(t,n)=>{In(t,"connectedCallback",void 0,n)},Bn=t=>{if(!(1&S.u)){const n=u(t);if(!n)return;const e=n.o,o=()=>{};if(1&n.u)Dn(t,n,e.J),(null==n?void 0:n.i)?Ln(n.i,t):(null==n?void 0:n.H)&&n.H.then((()=>Ln(n.i,t)));else{let o;if(n.u|=1,o=t.getAttribute(v),o){if(1&e.u){const n=Nt(t.shadowRoot,e);t.classList.remove(n+"-h",n+"-s")}else if(2&e.u){const n=xt(e);t["s-sc"]=n}((t,n,e,o)=>{var l,s,i;const r=t.shadowRoot,c=[],f=[],a=[],d=r?[]:null,h=Ct(n,null);let p;h.k=t,Object.entries((null==(l=o.o)?void 0:l.t)||{}).forEach((([n,[e,l]])=>{var s;if(!(31&e))return;const i=t.getAttribute(l||n);if(null!==i){const t=zt(i,e);null==(s=null==o?void 0:o.l)||s.set(n,t)}}));{const n=o.o;n&&10&n.u&&t["s-sc"]?(p=t["s-sc"],t.classList.add(p+"-h")):t["s-sc"]&&delete t["s-sc"]}!g.document||S.W&&S.W.size||Lt(g.document.body,S.W=new Map),t[v]=e,t.removeAttribute(v),o.F=At(h,c,f,d,t,t,e,a);let b=0;const $=c.length;let m;for(;b<$;b++){m=c[b];const e=m.C+"."+m.M,o=S.W.get(e),l=m.k;if(r){if((null==(s=m.N)?void 0:(""+s).includes("-"))&&"slot-fb"!==m.N&&!m.k.shadowRoot){const n=u(m.k);if(n){const e=xt(n.o),o=g.document.querySelector(`style[sty-id="${e}"]`);o&&t.shadowRoot.append(o.cloneNode(!0))}}}else l["s-hn"]=n.toUpperCase(),"slot"===m.N&&(l["s-cr"]=t["s-cr"]);"slot"===m.N&&(m.O=m.k["s-sn"]||m.k.name||null,m.S?(m.u|=2,m.k.childNodes.length||m.S.forEach((t=>{m.k.appendChild(t.k)}))):m.u|=1),o&&o.isConnected&&(o.parentElement.shadowRoot&&""===o["s-en"]&&o.parentNode.insertBefore(l,o.nextSibling),o.parentNode.removeChild(o),r||(l["s-oo"]=parseInt(m.M))),o&&!o["s-id"]&&S.W.delete(e)}const y=[],w=a.length;let j,O,N,x,k=0;for(;k<w;k++)if(j=a[k],j&&j.length)for(N=j.length,O=0;O<N;O++){if(x=j[O],y[x.hostId]||(y[x.hostId]=S.W.get(x.hostId)),!y[x.hostId])continue;const t=y[x.hostId];t.shadowRoot&&x.node.parentElement!==t&&t.appendChild(x.node),t.shadowRoot&&r||(x.slot["s-cr"]||(x.slot["s-cr"]=t["s-cr"],x.slot["s-cr"]=!x.slot["s-cr"]&&t.shadowRoot?t:(t.__childNodes||t.childNodes)[0]),Q(x.node,x.slot,!1,x.node["s-oo"]),(null==(i=x.node.parentElement)?void 0:i.shadowRoot)&&x.node.getAttribute&&x.node.getAttribute("slot")&&x.node.removeAttribute("slot"),ht(x.node))}if(p&&f.length&&f.forEach((t=>{t.k.parentElement.classList.add(p+"-s")})),r){let n=0;const e=d.length;if(e){for(;n<e;n++){const t=d[n];t&&r.appendChild(t)}Array.from(t.childNodes).forEach((t=>{"string"!=typeof t["s-en"]&&"string"!=typeof t["s-sn"]&&(1===t.nodeType&&t.slot&&t.hidden?t.removeAttribute("hidden"):(8===t.nodeType&&!t.nodeValue||3===t.nodeType&&!t.wholeText.trim())&&t.parentNode.removeChild(t))}))}}o.$hostElement$=t})(t,e.v,o,n)}o||12&e.u&&Pn(t);{let e=t;for(;e=e.parentNode||e.host;)if(1===e.nodeType&&e.hasAttribute("s-id")&&e["s-p"]||e["s-p"]){yn(n,n.B=e);break}}e.t&&Object.entries(e.t).map((([n,[e]])=>{if(31&e&&t.hasOwnProperty(n)){const e=t[n];delete t[n],t[n]=e}})),(async(t,n,e)=>{let o;if(!(32&n.u)){if(n.u|=32,e.Y){const l=((t,n)=>{const e=t.v.replace(/-/g,"_"),o=t.Y;if(!o)return;const l=h.get(o);return l?l[e]:import(`./${o}.entry.js`).then((t=>(h.set(o,t),t[e])),(t=>{d(t,n.$hostElement$)}))
|
|
5
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(e,n);if(l&&"then"in l){const t=()=>{};o=await l,t()}else o=l;if(!o)throw Error(`Constructor for "${e.v}#${n.G}" was not found`);o.isProxied||(e.V=o.watchers,An(o,e,2),o.isProxied=!0);const s=()=>{};n.u|=8;try{new o(n)}catch(n){d(n,t)}n.u&=-9,n.u|=128,s(),Ln(n.i,t)}else o=t.constructor,customElements.whenDefined(t.localName).then((()=>n.u|=128));if(o&&o.style){let t;"string"==typeof o.style&&(t=o.style);const n=xt(e);if(!p.has(n)){const o=()=>{};Ot(n,t,!!(1&e.u)),o()}}}const l=n.B,s=()=>gn(n,!0);l&&l["s-rc"]?l["s-rc"].push(s):s()})(t,n,e)}o()}},Pn=t=>{if(!g.document)return;const n=t["s-cr"]=g.document.createComment("");n["s-cn"]=!0,$n(t,n,t.firstChild)},Fn=(t,n)=>{In(t,"disconnectedCallback",void 0,n||t)},Un=(t,n={})=>{var e;if(!g.document)return void console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");const o=[],l=n.exclude||[],s=g.customElements,i=g.document.head,r=i.querySelector("meta[charset]"),c=g.document.createElement("style"),f=[];let a,d=!0;Object.assign(S,n),S.h=new URL(n.resourcesUrl||"./",g.document.baseURI).href,S.u|=2,(()=>{if(!g.document)return;const t=g.document.querySelectorAll(`[${b}]`);let n=0;for(;n<t.length;n++)Ot(t[n].getAttribute(b),kt(t[n].innerHTML),!0)})();let h=!1;if(t.map((t=>{t[1].map((e=>{var i;const r={u:e[0],v:e[1],t:e[2],J:e[3]};4&r.u&&(h=!0),r.t=e[2],r.J=e[3],r.U=[],r.V=null!=(i=e[4])?i:{};const c=n.transformTagName?n.transformTagName(r.v):r.v,p=class extends HTMLElement{constructor(t){if(super(t),this.hasRegisteredEventListeners=!1,((t,n)=>{const e={u:0,$hostElement$:t,o:n,l:new Map};e.q=new Promise((t=>e.D=t)),e.H=new Promise((t=>e._=t)),t["s-p"]=[],t["s-rc"]=[];const o=e;t.__stencil__getHostRef=()=>o})(t=this,r),1&r.u)if(t.shadowRoot){if("open"!==t.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${r.v}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else H.call(t,r)}connectedCallback(){const t=u(this);t&&(this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,Dn(this,t,r.J)),a&&(clearTimeout(a),a=null),d?f.push(this):S.jmp((()=>Bn(this))))}disconnectedCallback(){S.jmp((()=>(async t=>{if(!(1&S.u)){const n=u(t);(null==n?void 0:n.K)&&(n.K.map((t=>t())),n.K=void 0),(null==n?void 0:n.i)?Fn(n.i,t):(null==n?void 0:n.H)&&n.H.then((()=>Fn(n.i,t)))}jt.has(t)&&jt.delete(t),t.shadowRoot&&jt.has(t.shadowRoot)&&jt.delete(t.shadowRoot)})(this))),S.raf((()=>{var t;const n=u(this);if(!n)return;const e=f.findIndex((t=>t===this));e>-1&&f.splice(e,1),(null==(t=null==n?void 0:n.F)?void 0:t.k)instanceof Node&&!n.F.k.isConnected&&delete n.F.k}))}componentOnReady(){var t;return null==(t=u(this))?void 0:t.H}};!(1&r.u)&&256&r.u&&(t=>{et(t),ot(t),it(t),st(t),ft(t),rt(t),ct(t),ut(t),at(t),dt(t),lt(t)})(p.prototype),r.Y=t[0],l.includes(c)||s.get(c)||(o.push(c),s.define(c,An(p,r,1)))}))})),o.length>0&&(h&&(c.textContent+=m),c.textContent+=o.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",c.innerHTML.length)){c.setAttribute("data-styles","");const t=null!=(e=S.p)?e:P(g.document);null!=t&&c.setAttribute("nonce",t),i.insertBefore(c,r?r.nextSibling:i.firstChild)}d=!1,f.length?f.map((t=>t.connectedCallback())):S.jmp((()=>a=setTimeout(Mn,30)))},_n=(t,n)=>n,Dn=(t,n,e)=>{e&&g.document&&e.map((([e,o,l])=>{const s=Vn(g.document,t,e),i=Wn(n,l),r=zn(e);S.ael(s,o,i,r),(n.K=n.K||[]).push((()=>S.rel(s,o,i,r)))}))},Wn=(t,n)=>e=>{var o;try{256&t.u?null==(o=t.i)||o[n](e):(t.P=t.P||[]).push([n,e])}catch(n){d(n,t.$hostElement$)}},Vn=(t,n,e)=>4&e?t:8&e?g:16&e?t.body:n,zn=t=>({passive:!!(1&t),capture:!!(2&t)}),Hn=t=>S.p=t;export{e as B,_n as F,w as H,t as N,Mt as a,Un as b,qt as c,A as d,T as e,d as f,Ht as g,Et as h,kn as i,Cn as j,L as k,j as p,f as r,Hn as s,g as w}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Custom elements for Nanopore-Digital Web applications
|
|
3
|
-
*/
|
|
4
|
-
import{i as e,j as t}from"./index-BM3Om9WE.js";const s=e=>!("isConnected"in e)||e.isConnected,n=(()=>{let e;return(...t)=>{e&&clearTimeout(e),e=setTimeout((()=>{e=0,(e=>{for(let t of e.keys())e.set(t,e.get(t).filter(s))})(...t)}),2e3)}})(),o=e=>"function"==typeof e?e():e,r=(e,t)=>{const s=e.indexOf(t);s>=0&&(e[s]=e[e.length-1],e.length--)},c=(s,c)=>{const a=((e,t=(e,t)=>e!==t)=>{const s=o(e);let n=new Map(Object.entries(s??{}));const c={dispose:[],get:[],set:[],reset:[]},a=new Map,i=()=>{n=new Map(Object.entries(o(e)??{})),c.reset.forEach((e=>e()))},p=e=>(c.get.forEach((t=>t(e))),n.get(e)),u=(e,s)=>{const o=n.get(e);t(s,o,e)&&(n.set(e,s),c.set.forEach((t=>t(e,s,o))))},f="undefined"==typeof Proxy?{}:new Proxy(s,{get:(e,t)=>p(t),ownKeys:()=>Array.from(n.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(e,t)=>n.has(t),set:(e,t,s)=>(u(t,s),!0)}),d=(e,t)=>(c[e].push(t),()=>{r(c[e],t)});return{state:f,get:p,set:u,on:d,onChange:(t,s)=>{const n=(e,n)=>{e===t&&s(n)},r=()=>s(o(e)[t]),c=d("set",n),i=d("reset",r);return a.set(s,{setHandler:n,resetHandler:r,propName:t}),()=>{c(),i(),a.delete(s)}},use:(...e)=>{const t=e.reduce(((e,t)=>(t.set&&e.push(d("set",t.set)),t.get&&e.push(d("get",t.get)),t.reset&&e.push(d("reset",t.reset)),t.dispose&&e.push(d("dispose",t.dispose)),e)),[]);return()=>t.forEach((e=>e()))},dispose:()=>{c.dispose.forEach((e=>e())),i()},reset:i,forceUpdate:e=>{const t=n.get(e);c.set.forEach((s=>s(e,t,t)))},removeListener:(e,t)=>{const s=a.get(t);s&&s.propName===e&&(r(c.set,s.setHandler),r(c.reset,s.resetHandler),a.delete(t))}}})(s,c);return a.use((()=>{if("function"!=typeof e)return{};const s=new Map;return{dispose:()=>s.clear(),get:t=>{const n=e();n&&((e,t,s)=>{const n=e.get(t);n?n.includes(s)||n.push(s):e.set(t,[s])})(s,t,n)},set:e=>{const o=s.get(e);o&&s.set(e,o.filter(t)),n(s)},reset:()=>{s.forEach((e=>e.forEach(t))),n(s)}}})()),a};export{c}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Custom elements for Nanopore-Digital Web applications
|
|
3
|
-
*/
|
|
4
|
-
import{f as t,h as n,F as e,g as o,i,d as s,e as a,r,c as l,a as h}from"./index-BM3Om9WE.js";import{h as c,t as d}from"./renderer-DpNDfhNy.js";import{c as p}from"./math-BEqsTfVK.js";import{d as b}from"./throttle-C93FMm2Z.js";import{i as _,f as u}from"./scroll-1nFw8CNk.js";import{c as f}from"./index-BlBZYxu4.js";const m="nano-tbl",w=(t,n)=>{const e=globalThis[n];return null!=e&&t instanceof e},y=t=>{if(null!=t){if(w(t,"ArrayBuffer")||w(t,"MessagePort")||w(t,"ImageBitmap")||w(t,"OffscreenCanvas"))return[t];if("object"==typeof t)return t.constructor===Object&&(t=Object.values(t)),Array.isArray(t)?t.flatMap(y):y(t.buffer)}return[]};let v=0,g=0;const x=new Map,k=new Map,$=(n,e,o)=>{const i=new Worker(n,{name:e});return i.addEventListener("message",(({data:n})=>{if(n){const e=n[0],i=n[1],s=n[2];if(e===o){const e=n[3],[o,a,r]=x.get(i);if(x.delete(i),e){const n=e.isError?Object.assign(new Error(e.value.message),e.value):e.value;t(n),a(n)}else r&&r.forEach((t=>k.delete(t))),o(s)}else if(e===o+".cb")try{k.get(i)(...s)}catch(n){t(n)}}})),i},z=(t,n,e)=>(...o)=>new Promise(((i,s)=>{let a=v++,r=0,l=o.length,h=[i,s];for(x.set(a,h);r<l;r++)if("function"==typeof o[r]){const t=g++;k.set(t,o[r]),o[r]=[n+".cb",t],(h[2]=h[2]||[]).push(t)}const c=t=>t.postMessage([n,a,e,o],y(o));t.then?t.then(c):c(t)})),C=import("./table.worker-BMDbprO8.js").then((t=>t.worker)),S=z(C,"stencil.table.worker","createWorkerStore"),T=z(C,"stencil.table.worker","syncConfigToWorker"),R=z(C,"stencil.table.worker","syncDataToWorker"),I=z(C,"stencil.table.worker","workerFilter"),B=z(C,"stencil.table.worker","workerSearch"),D=z(C,"stencil.table.worker","workerSort");function F(t){const n=JSON.parse(JSON.stringify(t));return t.forEach((t=>{t?.sortCompareFn&&(n.find((n=>n.prop===t.prop)).sortCompareFn=t.sortCompareFn.toString())})),n}const P=new WeakMap;function A(t,n){if(!t||null==n)return;const e=String(n);if(void 0!==t[e])return t[e];if(!e.includes("."))return t[n];const o=e.split(".");let i=t;for(const t of o){if(null==i)return;i=i[t]}return i}function E(t,n){const e=N(),o=e.config.state.columns,i=e.data.state.rows,s=o[n],a=s?.prop,r=i[t];return{prop:a,cellModel:r?A(r,o[n].prop):"",column:s,rowIndex:t,rowModel:r}}function M(t,n){if(!n)return t;const e={...n,...t};return n.class&&("object"==typeof n.class&&"object"==typeof e.class?e.class={...n.class,...e.class}:"string"==typeof n.class&&"object"==typeof e.class?e.class[n.class]=!0:"string"==typeof e.class&&"string"==typeof n.class&&(e.class+=" "+n.class)),n.style&&(e.style={...n.style,...e.style}),e}function N(){return t=o(i()),P.get(t);var t}function j(t){const o=t?.columnTemplate;return o?o(n,t):n(e,null,t.title)}function O(t,n,e=!1){const o={[`${m}__${t}`]:!0,[`${m}__pin`]:!!n,[`${m}__pin--top`]:"top"===n,[`${m}__pin--bottom`]:"bottom"===n};return e?W(o):o}function W(t){let n="";return Object.entries(t).forEach((([t,e])=>{e&&(n+=t+" ")})),n}const H=({column:t,onColumnSortClick:n,defaults:o})=>{if(t.hidden)return c(e,null);function i(){return!!o.sortable&&!1!==t.sortable||!o.sortable&&!0===t.sortable}let s={};t.columnProperties&&(s=t.columnProperties(t)||s);const a={class:{...O("th",t.pinned),[`${m}__pin--start`]:"start"===t.pinned,[`${m}__pin--end`]:"end"===t.pinned,[`${m}__ordered`]:!!t.order,[`${m}__filtered`]:null!=t.filter}};let r=s?M(a,s):a;if(!j(t))return c(e,null);if(r=Number(r.colSpan)>1?{...r,scope:"colgroup"}:{...r,scope:"col"},i()){const n=t.order?"asc"===t.order?"ascending":"descending":"none";r={...r,"aria-sort":n}}return c("th",{...r,key:t.prop},i()?c("button",{class:{[`${m}__order-btn`]:!0,[`${m}__cell-content`]:!0},onClick:function(e){let o;switch(t.order){case"asc":o="desc";break;case"desc":o=null;break;default:o="asc"}n(o,t.prop,e.target.closest("th"))}},j(t),null!=t.filter&&c("nano-icon",{name:"light/filter"}),!!t.order&&c("nano-icon","desc"===t.order?{name:"solid/arrow-down-long"}:{name:"solid/arrow-up-long"}),c("div",{class:`${m}__status-icons`},c("nano-icon",{name:"light/chevron-down"}))):c("div",{class:`${m}__cell-content`},j(t),null!=t.filter&&c("nano-icon",{name:"light/bars-filter"})))},L=(t,n=!1)=>{const e=N().config.state.columns[t],o={[`${m}__td`]:!0,[`${m}__ordered`]:!!e.order,[`${m}__pin`]:!!e.pinned,[`${m}__pin--start`]:"start"===e.pinned,[`${m}__pin--end`]:"end"===e.pinned};return n?W(o):o},Y=({rowIndex:t,colIndex:n,nestedContent:o})=>{const s=()=>o?o():function(t,n){const o=N().config.state.columns,s=o[n]?.cellTemplate,a=E(t,n),r=i();if(a.cellModel&&"date"===o[n].type){const t=new Date(a.cellModel);t instanceof Date&&!isNaN(t)&&(a.cellModel=s?t:`${new Date(a.cellModel).toLocaleDateString()} ${new Date(a.cellModel).toLocaleTimeString()}`)}let l=!1,h=s?s(((...t)=>(l=!0,c(...t))),a):void 0;if(h&&r.customRenderer&&void 0===h.t&&!(h instanceof Element)&&"string"!=typeof h&&!l){const t=document.createElement("template"),n=r.customRenderer(h,t.content);h=n&&n.then?n:t}return h||(null!=a.cellModel?c(e,null,a.cellModel?.toString()):"")}(t,n)||c("span",{class:"placeholder"}," ");let a="td";const r=N().config.state.columns[n];if(r.hidden)return c(e,null);let l=function(t,n,e){const o={...e},i=N().config.state.columns[n]?.cellProperties;if(!i)return o;const s=i(E(t,n));return s?M(o,s):o}(t,n,{class:L(n)});r.rowHeader&&(l=Number(l.rowSpan)>1?{...l,scope:"rowgroup"}:{...l,scope:"row"},a="th");const h=t=>{const n=s();return c("div",{ref:t=>{t&&(n instanceof Element?(t.replaceChildren(),t.append(n.content||n)):n.then&&n.then((n=>t.innerHTML=n)))},...t,class:{[`${m}__cell-content`]:!0,[`${m}__cell-content--wrap`]:!!r.wrap},innerHTML:"string"==typeof n&&n.includes("<")?n:void 0},("string"!=typeof n||!n.includes("<"))&&!n.then&&!(n instanceof Element)&&n)};return c(a,{...l},r.autoTooltip&&!r.wrap?c("nano-resize-observe",{notifyContentFit:"x",onNanoResizeContentFitChange:t=>t.target.firstElementChild.disabled=t.detail.x},c("nano-tooltip",{disabled:!0,placement:"top",onNanoShow:t=>t.target.closest(a).style.zIndex="100",onNanoHide:t=>t.target.closest(a).style.zIndex=""},c(h,null),c("span",{slot:"content"},c(s,null)))):c(h,null))},K=(t,n,e)=>{const o=c("div",{...t.wrapperProps,class:{[`${m}__cell-content`]:!0,[`${m}__cell-content--wrap`]:t.wrap}},n);return t.header?c("th",{scope:e,...t.cellProps},o):c("td",{...t.cellProps},o)},q=({rowRenderer:t,rowIndex:n,rowModel:e},o,i)=>{const s=({header:t,wrap:n,cellProps:e,wrapperProps:o},i)=>K({header:t,wrap:n,cellProps:e,wrapperProps:o},i,"row");let a,r={};if(!e){const t=function(t){return{rowModel:N().data.state.rows[t],rowIndex:t}}(n);e=t.rowModel}t?.rowProperties&&(r=t.rowProperties({rowModel:e,rowIndex:n})||r),t?.pinned&&"function"==typeof t.pinned&&(a=t.pinned({rowModel:e,rowIndex:n}));const l=M({class:O("tr",a,!0)},r),h=t?.template,d=t=>i.map(t,((t,n)=>(["td","th"].includes(t.vtag.toString())&&(t.vattrs=M({class:L(n,!0)},t.vattrs)),t)));if(h){let t=h(c,{renderedRow:c("tr",{...l,key:e.__uuid},o),rowModel:e,rowIndex:n},s);return Array.isArray(t)&&(t=i.map(t,((t,n)=>("tr"===t.vtag&&(t.vkey||(t.vkey=`${e.__uuid}_${n}`),t.vattrs=M({class:O("tr",a,!0)},t.vattrs),t.vchildren&&(t.vchildren=d(t.vchildren))),t)))),t}return c("tr",{...l,key:e.__uuid},d(o))},J=({rowRenderer:t},n,e)=>{let o={};t.rowProperties&&(o=t.rowProperties()||{});const i=({header:t,wrap:n,cellProps:e,wrapperProps:o},i)=>K({header:t,wrap:n,cellProps:e,wrapperProps:o},i,"col"),s=t.pinned||null,a={class:O("tr",s)},r=o?M(a,o):a,l=t?.template;if(l){let t=l(c,{renderedRow:c("tr",{...r},n)},i);return Array.isArray(t)&&(t=e.map(t,(t=>("tr"===t.vtag&&(t.vattrs=M({class:O("tr",s,!0)},t.vattrs),t.vchildren&&(t.vchildren=e.map(t.vchildren,(t=>(["td","th"].includes(t.vtag.toString())&&(t.vattrs=M({class:O(t.vtag.toString(),s,!0)},t.vattrs)),t))))),t)))),t}return c("tr",{...r},n)};class X{cachedColMeta=new WeakMap;tableId;tableEle;scrollElement;startColumns;endColumns;topRows;bottomRows;tableDims;constructor(t,n){this.tableEle=t,this.tableId=this.tableEle.id,this.scrollElement=n,this.startColumns=t.querySelector("thead").getElementsByClassName(`${m}__pin--start`),this.endColumns=t.querySelector("thead").getElementsByClassName(`${m}__pin--end`),this.topRows=t.getElementsByClassName(`${m}__pin--top`),this.bottomRows=t.getElementsByClassName(`${m}__pin--bottom`),this.onResize()}get pinnedStart(){return this._pinnedStart}set pinnedStart(t){this._pinnedStart=t,this.handlePinnedStartChange()}_pinnedStart=[];addStyleSheet(t,n){const e=this.tableEle.getRootNode(),o=e.getElementById(t)||document.createElement("style");o.id=t,o.innerHTML=n,o.isConnected||(e.head?e.head.append(o):e.append(o))}handlePinnedStartChange(){s((()=>{if(this.pinnedStart.length){this.tableEle.classList.add(`${m}__pinned--start`);const t=this.cachedColMeta.get(this.pinnedStart[this.pinnedStart.length-1]);this.addStyleSheet(`${this.tableId}-col-start-active-style`,`\n #${this.tableId} tr > :nth-child(${t.idx+1}) {\n --pin-start-active: 1;\n }\n `)}else this.tableEle.classList.remove(`${m}__pinned--start`),this.addStyleSheet(`${this.tableId}-col-start-active-style`,"")}))}get pinnedEnd(){return this._pinnedEnd}set pinnedEnd(t){this._pinnedEnd=t,this.handlePinnedEndChange()}_pinnedEnd=[];handlePinnedEndChange(){s((()=>{if(this.pinnedEnd.length){this.tableEle.classList.add(`${m}__pinned--end`);const t=this.cachedColMeta.get(this.pinnedEnd[0]);this.addStyleSheet(`${this.tableId}-col-end-active-style`,`\n #${this.tableId} tr > :nth-child(${t.idx+1}) { --pin-end-active: 1; }\n `)}else this.tableEle.classList.remove(`${m}__pinned--end`),this.addStyleSheet(`${this.tableId}-col-end-active-style`,"")}))}get cssColDimensionCacheKey(){return this._cssColDimensionCacheKey}set cssColDimensionCacheKey(t){t!==this._cssColDimensionCacheKey&&(this._cssColDimensionCacheKey=t,this.createPinnedColDimensionStyles())}_cssColDimensionCacheKey="";generateCssCacheKey(){let t="";for(const n of this.startColumns){const e=this.cachedColMeta.get(n);t+=`${e.idx}-start-${e.width}`}for(const n of this.endColumns){const e=this.cachedColMeta.get(n);t+=`${e.idx}-start-${e.width}`}this.cssColDimensionCacheKey=t}createPinnedColDimensionStyles(){let t=0,n=0;const e=Array.from(this.startColumns),o=Array.from(this.endColumns).reverse(),i=`\n ${e.map((n=>{const e=this.cachedColMeta.get(n);return t+=e.width-1||-1,`\n #${this.tableId} tr > :nth-child(${e.idx+1}) ~ td,\n #${this.tableId} tr > :nth-child(${e.idx+1}) ~ th {\n --pin-start: ${t-1}px;\n }\n `})).join("")}\n ${o.map((t=>{const e=this.cachedColMeta.get(t);return n+=e.width-1||-1,`\n #${this.tableId} tr > td:has(~ :nth-child(${e.idx+1})),\n #${this.tableId} tr > th:has(~ :nth-child(${e.idx+1})) {\n --pin-end: ${n-1}px;\n }\n `})).join("")}\n `;this.addStyleSheet(`${this.tableId}-dimension-style`,i)}getParentOffsets(){const{x:t,y:n}=this.scrollElement.getBoundingClientRect();let e=t,o=n;return this.scrollElement===document.documentElement&&(e=this.scrollElement.offsetLeft,o=this.scrollElement.offsetTop),{offsetX:e,offsetY:o}}assessRows(){if((this.topRows.length||this.bottomRows.length)&&(this.topRows.length&&a((async()=>{let t,n=0;const{offsetY:e}=this.getParentOffsets();for(const o of this.topRows){const{y:i,height:a}=o.getBoundingClientRect(),r=o.parentElement,l=getComputedStyle(o).getPropertyValue("--pin-top"),h=""!==l?parseFloat(l):n;s((()=>{i-e<=h?o.classList.add(`${m}__pinned`,`${m}__pinned--top`):o.classList.remove(`${m}__pinned`,`${m}__pinned--top`),t!==r&&(r.style.setProperty("--pin-top",n-1+"px"),n+=a-1,t=r)}))}})),this.bottomRows.length)){const t=Array.from(this.bottomRows).reverse();a((async()=>{let n,e=0;const{offsetY:o}=this.getParentOffsets();for(const i of t){if(!i.isConnected)continue;const{y:t,height:a}=i.getBoundingClientRect(),r=i.parentElement,l=getComputedStyle(i).getPropertyValue("--pin-bottom"),h=""!==l?parseFloat(l):e;await new Promise((l=>s((()=>{this.tableDims.height+o-(t+a)<=h?i.classList.add(`${m}__pinned`,`${m}__pinned--bottom`):i.classList.remove(`${m}__pinned`,`${m}__pinned--bottom`),n!==r&&(r.style.setProperty("--pin-bottom",e-1+"px"),e+=a-1,n=r),l()}))))}}))}}async assessCols(){if(!this.startColumns.length&&!this.endColumns.length)return;let t,n,e;const o=new Promise((o=>{this.startColumns.length&&a((()=>{const{offsetX:i}=this.getParentOffsets();let s=i;e=Array.from(this.startColumns[0].parentElement.children);for(const o of this.startColumns)t=o.getBoundingClientRect(),this.cachedColMeta.set(o,{width:t.width,idx:e.indexOf(o)}),n=this.pinnedStart.find((t=>t===o)),t.x<s?n||(this.pinnedStart=[...this.pinnedStart,o]):n&&(this.pinnedStart=this.pinnedStart.filter((t=>t!==o))),s+=t.width;this.endColumns.length||o()})),this.endColumns.length&&a((()=>{const i=Array.from(this.endColumns).reverse();e=Array.from(this.endColumns[0].parentElement.children);const{offsetX:s}=this.getParentOffsets();let a=0;for(const o of i)t=o.getBoundingClientRect(),this.cachedColMeta.set(o,{width:t.width,idx:e.indexOf(o)}),n=this.pinnedEnd.find((t=>t===o)),this.tableDims.width+s-t.right<=a?n||(this.pinnedEnd=[o,...this.pinnedEnd]):n&&(this.pinnedEnd=this.pinnedEnd.filter((t=>t!==o))),a+=t.width;o()}))}));await o,this.generateCssCacheKey()}cacheX=0;cacheY=0;onScroll(t){this.cacheX!==t.x&&(this.cacheX=t.x,this.assessCols()),this.cacheY!==t.y&&(this.cacheY=t.y,this.assessRows())}onResize(){this.tableDims={width:this.scrollElement.clientWidth,height:this.scrollElement.clientHeight},this.assessCols(),this.assessRows()}}let Z=0;const U=class{constructor(t){r(this,t),this.nanoTblReady=l(this,"nanoTblReady",7),this.nanoTblBlockRendered=l(this,"nanoTblBlockRendered",7),this.nanoTblBeforeSort=l(this,"nanoTblBeforeSort",7),this.nanoTblAfterSort=l(this,"nanoTblAfterSort",7),this.nanoTblBeforeFilter=l(this,"nanoTblBeforeFilter",7),this.nanoTblAfterFilter=l(this,"nanoTblAfterFilter",7),this.nanoTblBeforeSearch=l(this,"nanoTblBeforeSearch",7),this.nanoTblAfterSearch=l(this,"nanoTblAfterSearch",7),this.nanoTblBeforeEdit=l(this,"nanoTblBeforeEdit",7),this.debounceSetLoading=b(this.debounceSetLoading.bind(this),50)}customRenderer;scrollable=!1;caption;showCaption=!1;loading=void 0;get _loading(){return void 0!==this.loading?this.loading:this.internalLoading}set _loading(t){void 0===this.loading&&this.debounceSetLoading(t)}debounceSetLoading(t){this.internalLoading=t}internalLoading=!0;placeholderSize=10;rows;handleRowsChange(){this.rows?(this._loading=!0,Promise.resolve(this.rows).then((async t=>{await function(t,n){const e=P.get(t);if(!e)return;const o=e.config.state.columns,i=o.filter((t=>"date"===t.type)).reduce(((t,n)=>[...t,n.prop]),[]),s=o.filter((t=>!t.type));return n=n.map(((t,n)=>(s.length&&0===n&&(e.config.state.columns=o.map((n=>{const e=A(t,n.prop);var o;return s.includes(n)&&e&&!n.type&&(n.type=(o=e)instanceof Date?"date":["number","string","boolean"].includes(typeof o)?typeof o:"unknown","date"===n.type&&i.push(n.prop)),n}))),i.forEach((n=>{const e=A(t,n),o=new Date(e);o&&Number(o)&&(t[n]=Number(o))})),t.__index=n,t.__uuid=p(o.map((n=>A(t,n.prop))).join()),t))),e.data.state.rows=n,e.general.state.workerId?R(e.general.state.workerId,n):void 0}(this.host,t),this.customFilterApplied?this.customFilterApplied=!1:this.currentFilters="",this.currentSort="",await this.columnInit(),this.isReady||requestAnimationFrame((()=>this.setInitialBlockDimension())),this._loading=!1,this.tablePinnedService&&this.tablePinnedService.assessRows()}))):this._loading=!0}columns=[];async handleColsChange(){await function(t,n){const e=P.get(t);if(e)return e.config.state.columns=n,e.general.state.workerId?T(e.general.state.workerId,F(n)):void 0}(this.host,this.columns),this.isReady&&this.columnInit()}headRender={pinned:"top"};rowRender;footRender={pinned:"bottom"};showFooter=!1;perBlock=50;get blocksLength(){return this.blocks.length}searchTerm;customFilterFn;customSortFn;defaultSort=!0;handleSearchTermChange(){this.searchStart()}showPaginateSpinner=!1;virtualTotalItems=0;virtualTotalItemsChangeHandler(){this.setBlocks()}get appliedFilters(){return this.filters}nanoTblReady;nanoTblBlockRendered;nanoTblBeforeSort;nanoTblAfterSort;nanoTblBeforeFilter;nanoTblAfterFilter;nanoTblBeforeSearch;nanoTblAfterSearch;nanoTblBeforeEdit;async resetSorting(){const t=this.columns.find((t=>!!t.order));if(t)return this.sortStart(null,t.prop)}async addSort(t,n){const e=this.columns.find((n=>n.prop===t));if(!e)throw new Error("Cannot find column with "+t);return this.sortStart(n,e.prop)}async resetFilters(){return this.filters=[],this.filterStart()}async addFilters(t,n=!0){return n||(this.filters=[]),this.filterStart(t,n)}async removeFilters(t){return this.filters=this.filters.filter((n=>!t.includes(n.prop))),this.filterStart()}async updateRow(t,n){this.rows.splice(n,1,t),this.handleRowsChange()}get host(){return o(this)}renderId="tbl-"+Z++;store;filters=[];currentFilters="[]";currentSort="";tableEle;topAnchorEle;activeWatcherIo;tablePinnedService;customFilterApplied=!1;blocks=[];activeBlocks=[0,1];measureHeight=0;blockElements;blockHeights=[];set measureEle(t){if(!t)return;const n=t.getBoundingClientRect().height;this.measureHeight=Math.abs(this.measureHeight-n)<5?this.measureHeight:n,this.unitHeight=t.querySelector("tr")?.getBoundingClientRect().height||this.unitHeight}unitHeight=0;get scrollParent(){return this._scrollParent}set scrollParent(t){t!==this._scrollParent&&(this._scrollParent&&(this._scrollParent===document.documentElement?document:this._scrollParent).removeEventListener("scroll",this.scrollHandler),(t===document.documentElement?document:t).addEventListener("scroll",this.scrollHandler),this._scrollParent=t)}_scrollParent;get primaryBlockIndex(){return this._primaryBlockIndex}set primaryBlockIndex(t){this._primaryBlockIndex!==t&&(this._primaryBlockIndex=t,this.nanoTblBlockRendered.emit({block:t,totalBlocks:this.blockElements.length}))}_primaryBlockIndex;get isReady(){return this._isReady}set isReady(t){t!==this._isReady&&(this._isReady=t,this.isReady&&requestAnimationFrame((()=>this.handleReady())))}_isReady=!1;handleReady(){const t=window.location.hash;if(t.length>1)try{const n=document.querySelector(t);n&&n.scrollIntoView()}catch(t){}this.nanoTblReady.emit()}sortStart=async(t,n,e)=>{if(this.currentSort!==t+":"+n&&(this._loading=!0,!this.nanoTblBeforeSort.emit({column:n,order:t}).defaultPrevented)){if(this.currentSort=t+":"+n,this.scrollToTop(e),this.customSortFn)try{if(!0===await this.customSortFn(n,t))return this.sortComplete(t,n),void(this._loading=!1)}catch(t){return console.warn("custom sort failed",t),this.currentSort="",void(this._loading=!1)}try{await async function(t,n,e){const o=P.get(t);if(o&&o.general.state.workerId)try{o.data.state.rows=await D(o.general.state.workerId,n,e)}catch(t){console.warn(t)}}(this.host,n,t),this.sortComplete(t,n)}catch(t){console.warn("sort failed",t),this.currentSort=""}finally{this.blocks.length&&(this._loading=!1)}}};sortComplete(t,n){this.columns=this.columns.map((e=>e.prop===n?{...e,order:t}:{...e,order:null})),this.nanoTblAfterSort.emit({column:n,order:t})}async searchStart(){if(this._loading=!0,!this.nanoTblBeforeSearch.emit({term:this.searchTerm}).defaultPrevented){this.scrollToTop();try{await async function(t,n){const e=P.get(t);if(e&&e.general.state.workerId)try{e.data.state.rows=await B(e.general.state.workerId,n)}catch(t){console.warn(t)}}(this.host,this.searchTerm),this.nanoTblAfterSearch.emit({term:this.searchTerm})}catch(t){console.warn("search failed",t)}finally{this._loading=!1}}}async filterStart(t,n=!0){if(t&&(this.filters=n?[...this.filters.filter((n=>!t.find((t=>t.prop===n.prop)))),...t]:t),this.currentFilters!==JSON.stringify(this.filters)&&(this._loading=!0,!this.nanoTblBeforeFilter.emit({filters:this.filters}).defaultPrevented)){if(this.currentFilters=JSON.stringify(this.filters),this.scrollToTop(),this.customFilterFn)try{if(!0===await this.customFilterFn(this.filters))return this.customFilterApplied=!0,await this.filterComplete(),void(this._loading=!1)}catch(t){return console.warn("custom filter failed",t),this.currentFilters="",void(this._loading=!1)}try{await this.filterComplete()}catch(t){console.warn("filter failed",t)}finally{this._loading=!1}}}async filterComplete(){this.columns=this.columns.map((t=>{const n=this.filters.find((n=>n.prop===t.prop));return n&&("boolean"!=typeof n.filter&&n.filter.length||"boolean"==typeof n.filter)?t.filter=n.filter:(null!=t.filter||t.filter&&"boolean"!=typeof t.filter&&!t.filter.length)&&(t.filter=void 0),t})),await async function(t,n){const e=P.get(t);if(e&&e.general.state.workerId)try{e.data.state.rows=await I(e.general.state.workerId,n)}catch(t){console.warn(t)}}(this.host,this.filters),this.nanoTblAfterFilter.emit({filters:this.filters})}scrollToTop(t){if(!this.scrollParent)return;const n=this.scrollParent.style?.scrollBehavior,e=this.scrollParent.scrollLeft;this.scrollParent.style.scrollBehavior="auto",this.topAnchorEle&&!_(this.topAnchorEle,.1)&&this.host.scrollIntoView(),t&&!_(t,1)&&setTimeout((()=>t.scrollIntoView({block:"start"})),500),e&&(this.scrollParent.scrollLeft=e),n&&(this.scrollParent.style.scrollBehavior=n),this.scrollHandler()}setMeasureElement(){return new Promise((t=>{a((()=>{this.measureEle=this.blockElements.find((t=>!t?.classList?.contains(`${m}__inactive`))),t()}))}))}setInitialBlockDimension(){if(!this.blockElements?.length)return;const t=async()=>(await this.setMeasureElement(),!!this.unitHeight);new Promise((n=>{t().then((async e=>{if(e)n();else{const e=new IntersectionObserver((async()=>{await t()&&(n(),e.disconnect())}),{root:this.scrollParent});e.observe(this.tableEle)}}))})).then((()=>{requestAnimationFrame((()=>this.isReady=!0))}))}async columnInit(){this.filters=this.columns.filter((t=>null!=t.filter)).map((t=>{const{filter:n,prop:e}=t;return{prop:e,filter:n}})),this.searchTerm&&await this.searchStart(),this.filters.length&&await this.filterStart();const t=this.columns.find((t=>!!t.order));t&&await this.sortStart(t.order,t.prop),this.tablePinnedService&&this.tablePinnedService.assessCols()}setBlocks(){const t=this.store.data.state.rows;if(!t.length)return void(this.blocks=[]);let n=1;const e=this.virtualTotalItems>t.length?this.virtualTotalItems:t.length;let o=[];const i=[];for(;n<=e;n++)o.push(this.store.data.state.rows[n-1]||{__uuid:""}),n%this.perBlock==0&&(i.push({rows:o,__uuid:p(o.map((t=>t.__uuid)).join())}),o=[]);o.length&&i.push({rows:o,__uuid:p(o.map((t=>t.__uuid)).join())}),this.blocks=i}getBlockHeight(t){if(this.blockHeights.length){const n=this.blockHeights.find((n=>n.blockIndex===t));if(n&&n.height)return n.height}const n=this.blocks[t].rows.length;return n===this.perBlock&&this.measureHeight?this.measureHeight:this.unitHeight?this.unitHeight*n:100}setBlockHeight(){this.activeBlocks.forEach((t=>{const n=this.blockElements[t];n&&a((()=>{if(n.classList.contains(`${m}__inactive`))return;const e=n.getBoundingClientRect().height,o=this.blockHeights.findIndex((n=>n.blockIndex===t));o>-1?this.blockHeights[o]={height:e,blockIndex:t}:this.blockHeights.push({height:e,blockIndex:t})}))}))}scrollHandler=()=>{let t=0;this.store?.general.state.isActive&&this.rows&&(void 0===this.primaryBlockIndex&&(this.primaryBlockIndex=0),a((()=>{t=void 0!==this.scrollParent.scrollTop?this.scrollParent.scrollTop:window.scrollY,t+=this.host.offsetTop,this.tablePinnedService&&this.tablePinnedService.onScroll({x:void 0!==this.scrollParent.scrollLeft?this.scrollParent.scrollLeft:window.scrollX,y:t});let n=this.host.offsetTop,e=0;const o=this.blocks.length;for(;e<o&&t>=n;){if(n+=this.getBlockHeight(e),t<n){const t=[e,e+1];t.toString()!==this.activeBlocks.toString()&&(this.activeBlocks=t),this.primaryBlockIndex=e}e++}})))};processSlots(){this.caption||this.host.querySelector('[slot="caption"]')||console.error("For accessibility you must set a `caption` prop or use the `caption` slot")}setupActiveWatcher(){this.host&&this.scrollParent&&this.store&&(this.activeWatcherIo&&(this.activeWatcherIo.disconnect(),this.activeWatcherIo=void 0),(this.activeWatcherIo=new IntersectionObserver((([t])=>{this.store.general.state.isActive=!!t.isIntersecting}),{root:this.scrollParent,threshold:0})).observe(this.scrollable?this.tableEle:this.host))}async componentWillLoad(){this.store=await async function(t,n,e,o){const i={data:f({rows:[]}),config:f({columns:n}),general:f({workerId:null,scrollParent:e,host:t,isReady:o})},s=await S(i.data.state.rows,F(i.config.state.columns));return i.general.state.workerId=s,P.set(t,i),i.data.use({reset:()=>{i.general.state.workerId&&R(i.general.state.workerId,null)},dispose:()=>{i.general.state.workerId&&R(i.general.state.workerId,null)}}),i.config.use({reset:()=>{i.general.state.workerId&&T(i.general.state.workerId,null)},dispose:()=>{i.general.state.workerId&&T(i.general.state.workerId,null)}}),i}(this.host,this.columns,this.scrollParent,this.isReady),this.handleRowsChange(),this.store.general.onChange("isActive",(()=>{this.scrollHandler()})),this.store.data.onChange("rows",(()=>this.setBlocks())),this.processSlots(),this.setBlocks(),this.scrollable||(this.scrollParent=u(this.host),this.setupActiveWatcher())}connectedCallback(){this.scrollable||(this.scrollParent=u(this.host),this.setupActiveWatcher())}componentDidLoad(){this.setInitialBlockDimension(),this.scrollable&&(this.scrollParent=this.host.querySelector(d("nano-masked-overflow")).shadowRoot.querySelector(".onav__scroller"),this.setupActiveWatcher()),this.tablePinnedService||(this.tablePinnedService=new X(this.tableEle,this.scrollParent))}componentShouldUpdate(t,n,e){if(["rows","columns"].includes(e))return!1}componentWillRender(){}componentDidRender(){this.setMeasureElement().then((()=>this.setBlockHeight()))}disconnectedCallback(){this.activeWatcherIo&&(this.activeWatcherIo.disconnect(),this.activeWatcherIo=void 0,(this.scrollParent===document.documentElement?document:this.scrollParent).removeEventListener("scroll",this.scrollHandler))}render(){return this.blockElements=[],c(h,{class:"nano-data-table"},c("div",{class:`${m}__top-anchor`,ref:t=>this.topAnchorEle=t}," "),c("nano-resize-observe",{onNanoResize:()=>{this.tablePinnedService&&this.tablePinnedService.onResize()}}),(t=>this.scrollable?c("nano-masked-overflow",{hideScrollbars:!1,scrollControls:!1,label:this.caption},t):c("div",null,t))(c("div",{class:`${m}__wrap`},c("nano-progress-bar",{class:{[`${m}__progress-bar`]:!0,[`${m}__progress-bar--show`]:this._loading}},c("progress",null)),c("table",{"aria-rowcount":this.store.data.state.rows.length,"aria-colcount":this.store.config.state.columns.length,class:`${m}`,ref:t=>this.tableEle=t,id:"nano-data-table-"+this.renderId,"aria-busy":this._loading||void 0},c("caption",{class:{[`${m}__caption`]:!0,[`${m}__caption--hide`]:!this.showCaption}},c("slot",{name:"caption"},this.caption)),c("thead",null,c(J,{rowRenderer:this.headRender},this.store.config.state.columns.map((t=>[c(H,{column:t,headRenderer:this.headRender,onColumnSortClick:this.sortStart,defaults:{sortable:this.defaultSort}})])))),this._loading&&!this.blocks.length&&c("tbody",{class:`${m}__active ${m}__loading`},[...Array(this.placeholderSize).keys()].map((t=>c("tr",null,this.store.config.state.columns.map(((n,e)=>c(Y,{rowIndex:t,colIndex:e,nestedContent:()=>c("span",{class:"n-loader-skeleton"},c("span",null,"Content loading"))}))))))),c("tr",{hidden:!!this._loading||!!this.blocks.length},c("th",{class:`${m}__th`,colSpan:this.store.config.state.columns.length},c("div",{class:"nano-tbl__cell-content nano-tbl__cell-content--no-result"},c("slot",{name:"no-results"},"No results found")))),this.blocks.map(((t,n)=>c("tbody",{key:t.__uuid,id:`tbody-${this.renderId}-${n}`,ref:t=>{this.blockElements.push(t)},class:{[`${m}__inactive`]:!this.activeBlocks.includes(n),[`${m}__active`]:this.activeBlocks.includes(n)}},this.activeBlocks.includes(n)?t.rows.map(((t,e)=>{const o=n>0?n*this.perBlock+e:e;return c(q,{rowRenderer:this.rowRender,rowModel:t,rowIndex:o},this.store.config.state.columns.map(((t,n)=>c(Y,{rowIndex:o,colIndex:n}))))})):c("tr",{class:`${m}__tr--placeholder`},c("td",{colSpan:this.store.config.state.columns.length,style:{height:this.getBlockHeight(n)+"px"}}))))),this.showFooter&&c("tfoot",null,c(J,{rowRenderer:this.footRender},this.store.config.state.columns.map((t=>[c(H,{column:t,headRenderer:this.footRender,onColumnSortClick:this.sortStart,defaults:{sortable:this.defaultSort}})]))))),!!this.blocks.length&&this.showPaginateSpinner&&c("nano-spinner",{class:{[`${m}__spinner`]:!0,[`${m}__spinner--show`]:this._loading}}))))}static get watchers(){return{rows:["handleRowsChange"],columns:["handleColsChange"],searchTerm:["handleSearchTermChange"],virtualTotalItems:["virtualTotalItemsChangeHandler"]}}};U.style=':host,\n*,\n*::before,\n*::after {\n box-sizing: border-box;\n}\n[hidden] {\n display: none !important;\n}\n@media (prefers-reduced-motion: reduce) {\n :host,\n *,\n *::before,\n *::after {\n animation-duration: 0.01ms !important;\n animation-iteration-count: 1 !important;\n transition-duration: 0.01ms !important;\n scroll-behavior: auto !important;\n }\n }:host,\n*,\n*::before,\n*::after {\n box-sizing: border-box;\n}\n[hidden] {\n display: none !important;\n}\n@media (prefers-reduced-motion: reduce) {\n :host,\n *,\n *::before,\n *::after {\n animation-duration: 0.01ms !important;\n animation-iteration-count: 1 !important;\n transition-duration: 0.01ms !important;\n scroll-behavior: auto !important;\n }\n }.nano-data-table {\n /**\n * @prop --table-padding. The padding of the table cells. Defaults to `var(--table-compact-padding)`\n * @prop --table-border-color. The border color of the table cells. Defaults to `var(--nano-color-neutral-200)`\n * @prop --table-border-color-header. The border color of the table header and footer cells. Defaults to `var(--nano-color-primary-1000)`\n * @prop --table-background. The background color of the table cells. Defaults to `var(--nano-color-base-0)`\n * @prop --table-max-col-width. The maximum width of the table columns. Defaults to `clamp(200px, 500px, 50vw)`\n * @prop --table-ordered-bg. The background color of the ordered table rows. Defaults to `var(--nano-color-neutral-100)`\n * @prop --table-wrapper-max-height: maximum height of the table when table is scrollable. Defaults to 80vh;\n * @prop --table-wrapper-max-width: maximum width of the table when table is scrollable. Defaults to 100%;\n */\n --table-padding: var(--nano-spacing-sm) calc(var(--nano-spacing-md) - (var(--nano-spacing-md) / 3));\n --table-border-color: var(--nano-color-neutral-200);\n --table-border-color-header: var(--nano-color-primary-1000);\n --table-background: var(--nano-color-base-0);\n --table-max-col-width: clamp(200px, 500px, 50vw);\n --table-ordered-bg: var(--nano-color-neutral-100);\n --table-wrapper-max-height: 80vh;\n --table-wrapper-max-width: 100%;\n display: block;\n inline-size: 100%;\n color: var(--nano-color-neutral-1400);\n container-type: inline-size;\n --isLtR: 1;\n}\n.nano-data-table:dir(rtl) {\n --isLtR: -1;\n}\n.nano-data-table .nano-sortable__dragged {\n background: var(--nano-color-base-0);\n opacity: 0.9;\n box-shadow: var(--nano-shadow-l0);\n z-index: 10 !important;\n}\n\n.nano-tbl__wrap {\n display: table;\n min-inline-size: 100%;\n}\n.nano-data-table:not([scrollable=false]) .nano-tbl__wrap {\n max-inline-size: var(--table-wrapper-max-width);\n max-block-size: var(--table-wrapper-max-height);\n position: relative;\n display: block;\n}\n.nano-data-table:not([scrollable=false]) .nano-tbl__wrap table {\n margin-block-end: var(--nano-spacing-l);\n}\n\n.nano-data-table:not([scrollable=false]) .nano-masked-overflow {\n --fade-size: 30px;\n}\n.nano-data-table:not([scrollable=false]):has(.nano-tbl__pin--start, .nano-tbl__pin--end) .nano-masked-overflow {\n --fade-size: 0;\n}\n\n.nano-tbl {\n text-align: start;\n inline-size: 100%;\n border-spacing: 0 0;\n border-collapse: separate;\n border-inline-end: 1px solid transparent;\n border-block-start: 1px solid transparent;\n position: relative;\n z-index: 1;\n}\n.nano-tbl__top-anchor {\n clip-path: inset(50%);\n block-size: 1px;\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n inline-size: 1px;\n position: relative;\n}\n.nano-tbl__ordered {\n background-color: var(--table-ordered-bg);\n --table-border-color: var(--nano-color-neutral-300);\n}\n.nano-tbl__order-btn {\n padding: 0;\n border: none;\n outline: none;\n font: inherit;\n background: none;\n appearance: none;\n color: inherit;\n display: flex;\n gap: var(--nano-spacing-sm);\n align-items: center;\n inline-size: 100%;\n}\n.nano-tbl__order-btn:focus-visible {\n outline: var(--nano-focus-ring);\n outline-offset: var(--nano-focus-ring-offset);\n}\n.nano-tbl__status-icons {\n margin-inline: auto 10px;\n display: flex;\n gap: 10px;\n}\n.nano-tbl__progress-bar {\n --height: 0.2125rem;\n position: sticky;\n inset-block-start: 0;\n inset-inline: 0;\n z-index: 10;\n transition: transform 0.25s;\n transform: scale(0);\n inline-size: 100%;\n}\n.nano-tbl__progress-bar--show {\n transform: scale(1);\n}\n.nano-tbl__caption--hide {\n clip-path: inset(50%);\n block-size: 1px;\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n inline-size: 1px;\n}\n.nano-tbl__td, .nano-tbl__th {\n max-inline-size: var(--table-max-col-width);\n}\nthead .nano-tbl__td .nano-sortable__keyboard-handle, thead .nano-tbl__th .nano-sortable__keyboard-handle {\n position: absolute;\n inset-inline-end: 5px;\n inset-block-start: 50%;\n transform: translateY(-50%);\n background: white;\n z-index: 10;\n}\n.nano-tbl__td.nano-tbl__ordered, .nano-tbl__th.nano-tbl__ordered {\n background-color: var(--table-ordered-bg) !important;\n --table-border-color: var(--nano-color-neutral-300);\n}\n.nano-tbl__cell-content {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.nano-tbl__cell-content--no-result {\n padding-block: var(--nano-spacing-md);\n}\n.nano-tbl__cell-content--wrap {\n white-space: normal;\n overflow: visible;\n}\n.nano-tbl tbody {\n opacity: 1;\n transition: 0.1s ease opacity;\n}\n.nano-tbl tbody.nano-tbl__loading {\n z-index: -1;\n position: relative;\n}\n.nano-tbl tbody.nano-tbl__inactive {\n opacity: 0;\n}\n.nano-tbl tbody .nano-tbl__tr:has(~ .nano-tbl__tr--placeholder) {\n display: none;\n}\n.nano-tbl tbody .nano-tbl__tr--placeholder ~ .nano-tbl__tr {\n display: none;\n}\n.nano-tbl th[scope=row] {\n margin: 0;\n}\n.nano-tbl__tr {\n --base-z: 0;\n}\n.nano-tbl__pin {\n z-index: var(--z, var(--base-z, 0));\n}\n.nano-tbl__pin .nano-tbl__th, .nano-tbl__pin .nano-tbl__td {\n z-index: var(--z, var(--base-z, 0));\n}\n.nano-tbl__pin--start {\n position: sticky;\n inset-inline-start: var(--pin-start, -1px);\n}\n.nano-tbl__pin--start::after {\n content: "";\n position: absolute;\n inset: 0;\n box-shadow: calc(4px * var(--isLtR)) 0 4px -3px rgb(var(--nano-color-base-rgb-1000)/25%);\n opacity: var(--pin-start-active, 0);\n z-index: -1;\n}\n.nano-tbl__pinned--start .nano-tbl__pin--start {\n --z: calc(var(--base-z) + 3) !important;\n}\n.nano-tbl__pin--end {\n position: sticky;\n inset-inline-end: var(--pin-end, -1px);\n max-inline-size: min(50vw, 200px);\n}\n@container (width <= 500px) {\n .nano-tbl__pin--start ~ .nano-tbl__pin--end {\n --z: 0 !important;\n inset-inline-end: auto !important;\n }\n .nano-tbl__pin--start ~ .nano-tbl__pin--end::after {\n display: none !important;\n }\n}\n@media (width <= 500px) {\n .nano-tbl__pin--start ~ .nano-tbl__pin--end {\n --z: 0 !important;\n inset-inline-end: auto !important;\n }\n .nano-tbl__pin--start ~ .nano-tbl__pin--end::after {\n display: none !important;\n }\n}\n.nano-tbl__pin--end::after {\n display: block;\n content: "";\n position: absolute;\n inset: 0;\n box-shadow: calc(-4px * var(--isLtR)) 0 4px -3px rgb(var(--nano-color-base-rgb-1000)/25%);\n opacity: var(--pin-end-active, 0);\n z-index: -1;\n}\n.nano-tbl__pinned--end .nano-tbl__pin--end {\n --z: calc(var(--base-z) + 2);\n}\n.nano-tbl__pin--top .nano-tbl__th, .nano-tbl__pin--top .nano-tbl__td {\n position: sticky;\n inset-block-start: var(--pin-top, -1px);\n}\n.nano-tbl__pin--top .nano-tbl__pin--end, .nano-tbl__pin--top .nano-tbl__pin--start {\n --z: calc(var(--base-z) + 1);\n}\n.nano-tbl__pin--top.nano-tbl__pinned--top {\n --base-z: 4;\n}\ntbody .nano-tbl__pin--top.nano-tbl__pinned--top .nano-tbl__th, tbody .nano-tbl__pin--top.nano-tbl__pinned--top .nano-tbl__td {\n border-block-end: 1px solid var(--table-border-color-header);\n}\n.nano-tbl__pin--bottom .nano-tbl__th, .nano-tbl__pin--bottom .nano-tbl__td {\n position: sticky;\n inset-block-end: var(--pin-bottom, -1px);\n}\n.nano-tbl__pin--bottom .nano-tbl__pin--end, .nano-tbl__pin--bottom .nano-tbl__pin--start {\n --z: calc(var(--base-z) + 1);\n}\n.nano-tbl__pin--bottom.nano-tbl__pinned--bottom {\n --base-z: 5;\n}\n.nano-tbl__pin--bottom.nano-tbl__pinned--bottom:has(.nano-tbl__pin--bottom.nano-tbl__pinned--bottom) .nano-tbl__pin {\n --base-z: 6;\n}\ntbody .nano-tbl__pin--bottom.nano-tbl__pinned--bottom .nano-tbl__th, tbody .nano-tbl__pin--bottom.nano-tbl__pinned--bottom .nano-tbl__td {\n border-block-start: 1px solid var(--table-border-color-header);\n}\n.nano-tbl thead tr:last-of-type td,\n.nano-tbl thead tr:last-of-type th {\n border-block-end: 2px solid var(--table-border-color-header);\n}\n.nano-tbl tfoot tr:first-of-type td,\n.nano-tbl tfoot tr:first-of-type th {\n border-block-start: none;\n}\n.nano-tbl tfoot tr:last-of-type td,\n.nano-tbl tfoot tr:last-of-type th {\n border-block-end: 2px solid var(--table-border-color-header);\n border-block-start: 2px solid var(--table-border-color-header);\n}\n.nano-tbl .unlimited-width {\n max-inline-size: none;\n}\n.nano-tbl__spinner {\n font-size: 1.5rem;\n transition: scale 0.25s;\n scale: 0;\n padding: 0.5rem;\n position: absolute;\n inset-block-end: 0;\n inset-inline-start: calc(50% - 0.75rem);\n z-index: 0;\n}\n.nano-tbl__spinner--show {\n scale: 1;\n position: sticky;\n}';export{U as N,$ as c}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Custom elements for Nanopore-Digital Web applications
|
|
3
|
-
*/
|
|
4
|
-
import{r as t,c as i,g as n,e as s,d as e,a as o}from"./index-BM3Om9WE.js";import{t as h,h as c}from"./renderer-DpNDfhNy.js";function r(){}const a=r.prototype;
|
|
5
|
-
/*!
|
|
6
|
-
* getSize v2.0.3
|
|
7
|
-
* measure size of elements
|
|
8
|
-
* MIT license
|
|
9
|
-
*/
|
|
10
|
-
function l(t){const i=parseFloat(t);return-1==t?.indexOf("%")&&!isNaN(i)&&i}a.on=function(t,i){if(!t||!i)return;const n=this._events=this._events||{},s=n[t]=n[t]||[];return-1==s.indexOf(i)&&s.push(i),this},a.once=function(t,i){if(!t||!i)return;this.on(t,i);const n=this._onceEvents=this._onceEvents||{};return(n[t]=n[t]||{})[i]=!0,this},a.off=function(t,i){const n=this._events&&this._events[t];if(!n||!n.length)return;const s=n.indexOf(i);return-1!=s&&n.splice(s,1),this},a.emitEvent=function(t,i){let n=this._events&&this._events[t];if(!n||!n.length)return;n=n.slice(0),i=i||[];const s=this._onceEvents&&this._onceEvents[t];for(let e=0;e<n.length;e++){const o=n[e];s&&s[o]&&(this.off(t,o),delete s[o]),o.apply(this,i)}return this},a.allOff=function(){delete this._events,delete this._onceEvents};const u="undefined"==typeof console?function(){}:function(t){console.error(t)},f=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],d=f.length;function p(t){const i=getComputedStyle(t);return i||u("Style returned "+i+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),i}let b,y=!1;function g(t){if(function(){if(y)return;y=!0;const t=document.createElement("div");t.style.width="200px",t.style.padding="1px 2px 3px 4px",t.style.borderStyle="solid",t.style.borderWidth="1px 2px 3px 4px",t.style.boxSizing="border-box";const i=document.body||document.documentElement;i.appendChild(t);const n=p(t);b=200==Math.round(l(n.width)),g.isBoxSizeOuter=b,i.removeChild(t)}(),"string"==typeof t&&(t=document.querySelector(t)),!t||"object"!=typeof t||!t.nodeType)return;const i=p(t);if("none"==i.display)return function(){const t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0};for(let i=0;i<d;i++)t[f[i]]=0;return t}();const n={};n.width=t.offsetWidth,n.height=t.offsetHeight;const s=n.isBorderBox="border-box"==i.boxSizing;for(let t=0;t<d;t++){const s=f[t],e=parseFloat(i[s]);n[s]=isNaN(e)?0:e}const e=n.paddingLeft+n.paddingRight,o=n.paddingTop+n.paddingBottom,h=n.marginLeft+n.marginRight,c=n.marginTop+n.marginBottom,r=n.borderLeftWidth+n.borderRightWidth,a=n.borderTopWidth+n.borderBottomWidth,u=s&&b,v=l(i.width);!1!==v&&(n.width=v+(u?0:e+r));const m=l(i.height);return!1!==m&&(n.height=m+(u?0:o+a)),n.innerWidth=n.width-(e+r),n.innerHeight=n.height-(o+a),n.outerWidth=n.width+h,n.outerHeight=n.height+c,n}const v={extend:function(t,i){for(const n in i)t[n]=i[n];return t},docReady:function(t){const i=document.readyState;"complete"==i||"interactive"==i?setTimeout(t):document.addEventListener("DOMContentLoaded",t)},toDashed:function(t){return t.replace(/(.)([A-Z])/g,(function(t,i,n){return i+"-"+n})).toLowerCase()},modulo:function(t,i){return(t%i+i)%i}},m=Array.prototype.slice;v.makeArray=function(t){return Array.isArray(t)?t:null==t?[]:"object"==typeof t&&"number"==typeof t.length?m.call(t):[t]},v.getParent=function(t,i){for(;t.parentNode&&t!=document.body;)if((t=t.parentElement).matches(i))return t},v.getQueryElement=function(t){return"string"==typeof t?document.querySelector(t):t},v.handleEvent=function(t){const i="on"+t.type;this[i]&&this[i](t)},v.filterFindElements=function(t,i){t=v.makeArray(t);const n=[];return t.forEach((function(t){if(!(t instanceof HTMLElement))return;if(!i)return void n.push(t);t.matches(i)&&n.push(t);const s=t.querySelectorAll(i);for(let t=0;t<s.length;t++)n.push(s[t])})),n},v.debounceMethod=function(t,i,n){n=n||100;const s=t.prototype[i],e=i+"Timeout";t.prototype[i]=function(...t){clearTimeout(this[e]);const i=this;this[e]=setTimeout((function(){s.apply(i,t),delete i[e]}),n)}};const k=window.console;function w(t,i){this.element=t,this.parent=i,this.create()}v.htmlInit=function(t,i){v.docReady((function(){const n=v.toDashed(i),s="data-"+n,e=document.querySelectorAll("["+s+"]"),o=document.querySelectorAll(".js-"+n),h=v.makeArray(e).concat(v.makeArray(o)),c=s+"-options";h.forEach((function(i){const n=i.getAttribute(s)||i.getAttribute(c);let e;try{e=n&&JSON.parse(n)}catch(t){return void(k&&k.error("Error parsing "+s+" on "+i.className+": "+t))}new t(i,e)}))}))};const x=w.prototype;function S(t){this.parent=t,this.isOriginLeft="left"==t.originSide,this.cells=[],this.outerWidth=0,this.height=0}x.create=function(){this.element.style.position="absolute",this.element.setAttribute("aria-hidden","true"),this.x=0,this.shift=0,Array.from(this.element.querySelectorAll("*")).forEach((t=>{t.setAttribute("tabindex","-1")}))},x.destroy=function(){this.unselect(),this.element.style.position="",this.element.style[this.parent.originSide]=""},x.getSize=function(){this.size=g(this.element)},x.setPosition=function(t){this.x=t,this.updateTarget(),this.renderPosition(t)},x.updateTarget=x.setDefaultTarget=function(){this.target=this.x+this.size["left"==this.parent.originSide?"marginLeft":"marginRight"]+this.size.width*this.parent.cellAlign},x.renderPosition=function(t){this.element.style[this.parent.originSide]=this.parent.getPositionValue(t)},x.select=function(){this.element.classList.add("is-selected"),this.element.removeAttribute("aria-hidden"),Array.from(this.element.querySelectorAll("*")).forEach((t=>{t.removeAttribute("tabindex")}))},x.unselect=function(){this.element.classList.remove("is-selected"),this.element.setAttribute("aria-hidden","true"),Array.from(this.element.querySelectorAll("*")).forEach((t=>{t.setAttribute("tabindex","-1")}))},x.wrapShift=function(t){this.shift=t,this.renderPosition(this.x+this.parent.slideableWidth*t)},x.remove=function(){this.element.parentNode.removeChild(this.element)};const z=S.prototype;z.addCell=function(t){this.cells.push(t),this.outerWidth+=t.size.outerWidth,this.height=Math.max(t.size.outerHeight,this.height),1==this.cells.length&&(this.x=t.x,this.firstMargin=t.size[this.isOriginLeft?"marginLeft":"marginRight"])},z.updateTarget=function(){const t=this.isOriginLeft?"marginRight":"marginLeft",i=this.getLastCell();this.target=this.x+this.firstMargin+(this.outerWidth-(this.firstMargin+(i?i.size[t]:0)))*this.parent.cellAlign},z.getLastCell=function(){return this.cells[this.cells.length-1]},z.select=function(){this.cells.forEach((function(t){t.select()}))},z.unselect=function(){this.cells.forEach((function(t){t.unselect()}))},z.getCellElements=function(){return this.cells.map((function(t){return t.element}))};const C={startAnimation:function(){this.isAnimating||(this.isAnimating=!0,this.restingFrames=0,this.animate())},animate:function(){this.applyDragForce(),this.applySelectedAttraction();const t=this.x;if(this.integratePhysics(),this.positionSlider(),this.settle(t),this.isAnimating){const t=this;requestAnimationFrame((function(){t.animate()}))}},positionSlider:function(){let t=this.x;this.options.wrapAround&&this.cells.length>1&&(t=v.modulo(t,this.slideableWidth),t-=this.slideableWidth,this.shiftWrapCells(t)),this.setTranslateX(t,this.isAnimating),this.dispatchScrollEvent()},setTranslateX:function(t){t+=this.cursorPosition;const i=this.getPositionValue(t=this.options.rightToLeft?-t:t);this.slider.style.transform="translate3d("+i+",0,0)"},dispatchScrollEvent:function(){const t=this.slides[0];if(!t)return;const i=-this.x-t.target;this.dispatchEvent("scroll",null,[i/this.slidesWidth,i])},positionSliderAtSelected:function(){this.cells.length&&(this.x=-this.selectedSlide.target,this.velocity=0,this.positionSlider())},getPositionValue:function(t){return this.options.percentPosition?.01*Math.round(t/this.size.innerWidth*1e4)+"%":Math.round(t)+"px"},settle:function(t){this.isPointerDown||Math.round(100*this.x)!=Math.round(100*t)||this.restingFrames++,this.restingFrames>2&&(this.isAnimating=!1,delete this.isFreeScrolling,this.positionSlider(),this.dispatchEvent("settle",null,[this.selectedIndex]))},shiftWrapCells:function(t){this._shiftCells(this.beforeShiftCells,this.cursorPosition+t,-1),this._shiftCells(this.afterShiftCells,this.size.innerWidth-(t+this.slideableWidth+this.cursorPosition),1)},_shiftCells:function(t,i,n){for(let s=0;s<t.length;s++){const e=t[s];e.wrapShift(i>0?n:0),i-=e.size.outerWidth}},_unshiftCells:function(t){if(t&&t.length)for(let i=0;i<t.length;i++)t[i].wrapShift(0)},integratePhysics:function(){this.x+=this.velocity,this.velocity*=this.getFrictionFactor()},applyForce:function(t){this.velocity+=t},getFrictionFactor:function(){return 1-this.options[this.isFreeScrolling?"freeScrollFriction":"friction"]},getRestingPosition:function(){return this.x+this.velocity/(1-this.getFrictionFactor())},applyDragForce:function(){this.isDraggable&&this.isPointerDown&&this.applyForce(this.dragX-this.x-this.velocity)},applySelectedAttraction:function(){this.isDraggable&&this.isPointerDown||this.isFreeScrolling||!this.slides.length||this.applyForce((-1*this.selectedSlide.target-this.x)*this.options.selectedAttraction)}},M=window.getComputedStyle,T=window.console;function A(t,i){for(t=v.makeArray(t);t.length;)i.appendChild(t.shift())}let E=0;const P={};function F(t,i){const n=v.getQueryElement(t);if(n){if(this.element=n,this.element.flickityGUID){const t=P[this.element.flickityGUID];if(!P[this.element.flickityGUID])return;return t.option(i),t}this.options=v.extend({},this.constructor.defaults),this.option(i),this._create()}else T&&T.error("Bad element for Flickity: "+(n||t))}F.defaults={accessibility:!0,cellAlign:"center",freeScrollFriction:.075,friction:.28,namespaceJQueryEvents:!0,percentPosition:!0,resize:!0,selectedAttraction:.025,setGallerySize:!0},F.createMethods=[];const D=F.prototype;v.extend(D,r.prototype),D._create=function(){const t=this.guid=++E;this.element.flickityGUID=t,P[t]=this,this.selectedIndex=0,this.restingFrames=0,this.x=0,this.velocity=0,this.originSide=this.options.rightToLeft?"right":"left",this.viewport=document.createElement("div"),this.viewport.className="flickity-viewport",this.viewport.setAttribute("part","slide-viewport"),this._createSlider(),(this.options.resize||this.options.watchCSS)&&window.addEventListener("resize",this);for(const t in this.options.on)this.on(t,this.options.on[t]);F.createMethods.forEach((function(t){this[t]()}),this),this.options.watchCSS?this.watchCSS():this.activate()},D.option=function(t){v.extend(this.options,t)},D.activate=function(){this.isActive||(this.isActive=!0,this.element.classList.add("flickity-enabled"),this.options.rightToLeft&&this.element.classList.add("flickity-rtl"),this.getSize(),A(this.element.children,this.slider),this.viewport.appendChild(this.slider),this.element.appendChild(this.viewport),this.reloadCells(),this.options.accessibility&&(this.element.tabIndex=0,this.element.addEventListener("keydown",this)),this.emitEvent("activate"),this.selectInitialIndex(),this.isInitActivated=!0,this.dispatchEvent("ready"))},D._createSlider=function(){const t=document.createElement("div");t.className="flickity-slider",t.style[this.originSide]=0,this.slider=t},D._filterFindCellElements=function(t){return v.filterFindElements(t,this.options.cellSelector)},D.reloadCells=function(){let t=this.slider.children;if(this.slider.getRootNode().host){t=[];for(const i of this.slider.getRootNode().host.children)"assignedElements"in i?t=[...t,...i.assignedElements()]:t.push(i)}this.cells=this._makeCells(t),this.positionCells(),this._getWrapShiftCells(),this.setGallerySize()},D._makeCells=function(t){return this._filterFindCellElements(t).map((function(t){return new w(t,this)}),this)},D.getLastCell=function(){return this.cells[this.cells.length-1]},D.getLastSlide=function(){return this.slides[this.slides.length-1]},D.positionCells=function(){this._sizeCells(this.cells),this._positionCells(0)},D._positionCells=function(t){this.maxCellHeight=(t=t||0)&&this.maxCellHeight||0;let i=0;if(t>0){const n=this.cells[t-1];i=n.x+n.size.outerWidth}const n=this.cells.length;for(let s=t;s<n;s++){const t=this.cells[s];t.setPosition(i),i+=t.size.outerWidth,this.maxCellHeight=Math.max(t.size.outerHeight,this.maxCellHeight)}this.slideableWidth=i,this.updateSlides(),this._containSlides(),this.slidesWidth=n?this.getLastSlide().target-this.slides[0].target:0},D._sizeCells=function(t){t.forEach((function(t){t.getSize()}))},D.updateSlides=function(){if(this.slides=[],!this.cells.length)return;let t=new S(this);this.slides.push(t);const i="left"==this.originSide?"marginRight":"marginLeft",n=this._getCanCellFit();this.cells.forEach((function(s,e){t.cells.length?(n.call(this,e,t.outerWidth-t.firstMargin+(s.size.outerWidth-s.size[i]))||(t.updateTarget(),t=new S(this),this.slides.push(t)),t.addCell(s)):t.addCell(s)}),this),t.updateTarget(),this.updateSelectedSlide()},D._getCanCellFit=function(){const t=this.options.groupCells;if(!t)return function(){return!1};if("number"==typeof t){const i=parseInt(t,10);return function(t){return t%i!=0}}const i="string"==typeof t&&t.match(/^(\d+)%$/),n=i?parseInt(i[1],10)/100:1;return function(t,i){return i<=(this.size.innerWidth+1)*n}},D._init=D.reposition=function(){this.positionCells(),this.positionSliderAtSelected()},D.getSize=function(){this.size=g(this.element),this.setCellAlign(),this.cursorPosition=this.size.innerWidth*this.cellAlign};const R={center:{left:.5,right:.5},left:{left:0,right:1},right:{right:0,left:1}};function L(){}D.setCellAlign=function(){const t=R[this.options.cellAlign];this.cellAlign=t?t[this.originSide]:this.options.cellAlign},D.setGallerySize=function(){this.options.setGallerySize&&(this.viewport.style.height=(this.options.adaptiveHeight&&this.selectedSlide?this.selectedSlide.height:this.maxCellHeight)+"px")},D._getWrapShiftCells=function(){if(!this.options.wrapAround)return;this._unshiftCells(this.beforeShiftCells),this._unshiftCells(this.afterShiftCells);let t=this.cursorPosition;this.beforeShiftCells=this._getGapCells(t,this.cells.length-1,-1),t=this.size.innerWidth-this.cursorPosition,this.afterShiftCells=this._getGapCells(t,0,1)},D._getGapCells=function(t,i,n){const s=[];for(;t>0;){const e=this.cells[i];if(!e)break;s.push(e),i+=n,t-=e.size.outerWidth}return s},D._containSlides=function(){if(!this.options.contain||this.options.wrapAround||!this.cells.length)return;const t=this.options.rightToLeft,i=t?"marginRight":"marginLeft",n=t?"marginLeft":"marginRight",s=this.slideableWidth-this.getLastCell().size[n],e=s<this.size.innerWidth,o=this.cursorPosition+this.cells[0].size[i],h=s-this.size.innerWidth*(1-this.cellAlign);this.slides.forEach((function(t){e?t.target=s*this.cellAlign:(t.target=Math.max(t.target,o),t.target=Math.min(t.target,h))}),this)},D.dispatchEvent=function(t,i,n){const s=i?[i].concat(n):n;this.emitEvent(t,s)},D.select=function(t,i,n){if(!this.isActive)return;if(t=parseInt(t,10),this._wrapSelect(t),(this.options.wrapAround||i)&&(t=v.modulo(t,this.slides.length)),!this.slides[t])return;const s=this.selectedIndex;this.selectedIndex=t,this.updateSelectedSlide(),n?this.positionSliderAtSelected():this.startAnimation(),this.options.adaptiveHeight&&this.setGallerySize(),this.dispatchEvent("select",null,[t]),t!=s&&this.dispatchEvent("change",null,[t]),this.dispatchEvent("cellSelect")},D._wrapSelect=function(t){const i=this.slides.length;if(!(this.options.wrapAround&&i>1))return t;const n=v.modulo(t,i),s=Math.abs(n-this.selectedIndex),e=Math.abs(n+i-this.selectedIndex),o=Math.abs(n-i-this.selectedIndex);!this.isDragSelect&&e<s?t+=i:!this.isDragSelect&&o<s&&(t-=i),t<0?this.x-=this.slideableWidth:t>=i&&(this.x+=this.slideableWidth)},D.previous=function(t,i){this.select(this.selectedIndex-1,t,i)},D.next=function(t,i){this.select(this.selectedIndex+1,t,i)},D.updateSelectedSlide=function(){const t=this.slides[this.selectedIndex];t&&(this.unselectSelectedSlide(),this.selectedSlide=t,t.select(),this.selectedCells=t.cells,this.selectedElements=t.getCellElements(),this.selectedCell=t.cells[0],this.selectedElement=this.selectedElements[0])},D.unselectSelectedSlide=function(){this.selectedSlide&&this.selectedSlide.unselect()},D.selectInitialIndex=function(){const t=this.options.initialIndex;if(this.isInitActivated)return void this.select(this.selectedIndex,!1,!0);if(t&&"string"==typeof t&&this.queryCell(t))return void this.selectCell(t,!1,!0);let i=0;t&&this.slides[t]&&(i=t),this.select(i,!1,!0)},D.selectCell=function(t,i,n){const s=this.queryCell(t);if(!s)return;const e=this.getCellSlideIndex(s);this.select(e,i,n)},D.getCellSlideIndex=function(t){for(let i=0;i<this.slides.length;i++)if(-1!=this.slides[i].cells.indexOf(t))return i},D.getCell=function(t){for(let i=0;i<this.cells.length;i++){const n=this.cells[i];if(n.element==t)return n}},D.getCells=function(t){t=v.makeArray(t);const i=[];return t.forEach((function(t){const n=this.getCell(t);n&&i.push(n)}),this),i},D.getCellElements=function(){return this.cells.map((function(t){return t.element}))},D.getParentCell=function(t){return this.getCell(t)||(t=v.getParent(t,".flickity-slider > *"),this.getCell(t))},D.getAdjacentCellElements=function(t,i){if(!t)return this.selectedSlide.getCellElements();i=void 0===i?this.selectedIndex:i;const n=this.slides.length;if(1+2*t>=n)return this.getCellElements();let s=[];for(let e=i-t;e<=i+t;e++){const t=this.options.wrapAround?v.modulo(e,n):e,i=this.slides[t];i&&(s=s.concat(i.getCellElements()))}return s},D.queryCell=function(t){if("number"==typeof t)return this.cells[t];if("string"==typeof t){if(t.match(/^[#\.]?[\d\/]/))return;t=this.element.querySelector(t)}return this.getCell(t)},D.uiChange=function(){this.emitEvent("uiChange")},D.childUIPointerDown=function(t){"touchstart"!=t.type&&t.preventDefault(),this.focus()},D.onresize=function(){this.watchCSS(),this.resize()},v.debounceMethod(F,"onresize",150),D.resize=function(){this.isActive&&(this.getSize(),this.options.wrapAround&&(this.x=v.modulo(this.x,this.slideableWidth)),this.positionCells(),this._getWrapShiftCells(),this.setGallerySize(),this.emitEvent("resize"),this.selectCell(this.selectedElements&&this.selectedElements[0],!1,!0))},D.watchCSS=function(){this.options.watchCSS&&(-1!=M(this.element,":after").content.indexOf("flickity")?this.activate():this.deactivate())},D.onkeydown=function(t){const i=document.activeElement&&document.activeElement!=this.element;if(!this.options.accessibility||i)return;const n=F.keyboardHandlers[t.keyCode];n&&n.call(this)},F.keyboardHandlers={37:function(){const t=this.options.rightToLeft?"next":"previous";this.uiChange(),this[t]()},39:function(){const t=this.options.rightToLeft?"previous":"next";this.uiChange(),this[t]()}},D.focus=function(){const t=window.pageYOffset;this.element.focus({preventScroll:!0}),window.pageYOffset!=t&&window.scrollTo(window.pageXOffset,t)},D.deactivate=function(){this.isActive&&(this.element.classList.remove("flickity-enabled"),this.element.classList.remove("flickity-rtl"),this.unselectSelectedSlide(),this.cells.forEach((function(t){t.destroy()})),this.element.removeChild(this.viewport),A(this.slider.children,this.element),this.options.accessibility&&(this.element.removeAttribute("tabIndex"),this.element.removeEventListener("keydown",this)),this.isActive=!1,this.emitEvent("deactivate"))},D.destroy=function(){this.deactivate(),window.removeEventListener("resize",this),this.allOff(),this.emitEvent("destroy"),delete this.element.flickityGUID,delete P[this.guid]},v.extend(D,C),F.data=function(t){const i=(t=v.getQueryElement(t))&&t.flickityGUID;return i&&P[i]},v.htmlInit(F,"flickity"),F.Cell=w,F.Slide=S;const N=L.prototype=Object.create(r.prototype);N.bindStartEvent=function(t){this._bindStartEvent(t,!0)},N.unbindStartEvent=function(t){this._bindStartEvent(t,!1)},N._bindStartEvent=function(t,i){i=void 0===i||i;let n="mousedown";"ontouchstart"in window?n="touchstart":window.PointerEvent&&(n="pointerdown"),t[i?"addEventListener":"removeEventListener"](n,this)},N.handleEvent=function(t){const i="on"+t.type;this[i]&&this[i](t)},N.getTouch=function(t){for(let i=0;i<t.length;i++){const n=t[i];if(n.identifier==this.pointerIdentifier)return n}},N.onmousedown=function(t){const i=t.button;i&&0!==i&&1!==i||this._pointerDown(t,t)},N.ontouchstart=function(t){this._pointerDown(t,t.changedTouches[0])},N.onpointerdown=function(t){this._pointerDown(t,t)},N._pointerDown=function(t,i){t.button||this.isPointerDown||(this.isPointerDown=!0,this.pointerIdentifier=void 0!==i.pointerId?i.pointerId:i.identifier,this.pointerDown(t,i))},N.pointerDown=function(t,i){this._bindPostStartEvents(t),this.emitEvent("pointerDown",[t,i])};const O={mousedown:["mousemove","mouseup"],touchstart:["touchmove","touchend","touchcancel"],pointerdown:["pointermove","pointerup","pointercancel"]};
|
|
11
|
-
/*!
|
|
12
|
-
* Unidragger v2.4.0
|
|
13
|
-
* Draggable base class
|
|
14
|
-
* MIT license
|
|
15
|
-
*/
|
|
16
|
-
function j(){}N._bindPostStartEvents=function(t){if(!t)return;const i=O[t.type];i.forEach((function(t){window.addEventListener(t,this)}),this),this._boundPointerEvents=i},N._unbindPostStartEvents=function(){this._boundPointerEvents&&(this._boundPointerEvents.forEach((function(t){window.removeEventListener(t,this)}),this),delete this._boundPointerEvents)},N.onmousemove=function(t){this._pointerMove(t,t)},N.onpointermove=function(t){t.pointerId==this.pointerIdentifier&&this._pointerMove(t,t)},N.ontouchmove=function(t){const i=this.getTouch(t.changedTouches);i&&this._pointerMove(t,i)},N._pointerMove=function(t,i){this.pointerMove(t,i)},N.pointerMove=function(t,i){this.emitEvent("pointerMove",[t,i])},N.onmouseup=function(t){this._pointerUp(t,t)},N.onpointerup=function(t){t.pointerId==this.pointerIdentifier&&this._pointerUp(t,t)},N.ontouchend=function(t){const i=this.getTouch(t.changedTouches);i&&this._pointerUp(t,i)},N._pointerUp=function(t,i){this._pointerDone(),this.pointerUp(t,i)},N.pointerUp=function(t,i){this.emitEvent("pointerUp",[t,i])},N._pointerDone=function(){this._pointerReset(),this._unbindPostStartEvents(),this.pointerDone()},N._pointerReset=function(){this.isPointerDown=!1,delete this.pointerIdentifier},N.pointerDone=
|
|
17
|
-
/*!
|
|
18
|
-
* Unipointer v2.4.0
|
|
19
|
-
* base class for doing one thing with pointer event
|
|
20
|
-
* MIT license
|
|
21
|
-
*/
|
|
22
|
-
function(){},N.onpointercancel=function(t){t.pointerId==this.pointerIdentifier&&this._pointerCancel(t,t)},N.ontouchcancel=function(t){const i=this.getTouch(t.changedTouches);i&&this._pointerCancel(t,i)},N._pointerCancel=function(t,i){this._pointerDone(),this.pointerCancel(t,i)},N.pointerCancel=function(t,i){this.emitEvent("pointerCancel",[t,i])},L.getPointerPoint=function(t){return{x:t.pageX,y:t.pageY}};const I=j.prototype=Object.create(L.prototype);I.bindHandles=function(){this._bindHandles(!0)},I.unbindHandles=function(){this._bindHandles(!1)},I._bindHandles=function(t){const i=(t=void 0===t||t)?"addEventListener":"removeEventListener",n=t?this._touchActionValue:"";for(let s=0;s<this.handles.length;s++){const e=this.handles[s];this._bindStartEvent(e,t),e[i]("click",this),window.PointerEvent&&(e.style.touchAction=n)}},I._touchActionValue="none",I.pointerDown=function(t,i){this.okayPointerDown(t)&&(this.pointerDownPointer={pageX:i.pageX,pageY:i.pageY},t.preventDefault(),this.pointerDownBlur(),this._bindPostStartEvents(t),this.emitEvent("pointerDown",[t,i]))};const B={TEXTAREA:!0,INPUT:!0,SELECT:!0,OPTION:!0},W={radio:!0,checkbox:!0,button:!0,submit:!0,image:!0,file:!0};I.okayPointerDown=function(t){const i=!B[t.target.nodeName]||W[t.target.type];return i||this._pointerReset(),i},I.pointerDownBlur=function(){const t=document.activeElement;t&&t.blur&&t!=document.body&&t.blur()},I.pointerMove=function(t,i){const n=this._dragPointerMove(t,i);this.emitEvent("pointerMove",[t,i,n]),this._dragMove(t,i,n)},I._dragPointerMove=function(t,i){const n={x:i.pageX-this.pointerDownPointer.pageX,y:i.pageY-this.pointerDownPointer.pageY};return!this.isDragging&&this.hasDragStarted(n)&&this._dragStart(t,i),n},I.hasDragStarted=function(t){return Math.abs(t.x)>3||Math.abs(t.y)>3},I.pointerUp=function(t,i){this.emitEvent("pointerUp",[t,i]),this._dragPointerUp(t,i)},I._dragPointerUp=function(t,i){this.isDragging?this._dragEnd(t,i):this._staticClick(t,i)},I._dragStart=function(t,i){this.isDragging=!0,this.isPreventingClicks=!0,this.dragStart(t,i)},I.dragStart=function(t,i){this.emitEvent("dragStart",[t,i])},I._dragMove=function(t,i,n){this.isDragging&&this.dragMove(t,i,n)},I.dragMove=function(t,i,n){t.preventDefault(),this.emitEvent("dragMove",[t,i,n])},I._dragEnd=function(t,i){this.isDragging=!1,setTimeout(function(){delete this.isPreventingClicks}.bind(this)),this.dragEnd(t,i)},I.dragEnd=function(t,i){this.emitEvent("dragEnd",[t,i])},I.onclick=function(t){this.isPreventingClicks&&t.preventDefault()},I._staticClick=function(t,i){this.isIgnoringMouseUp&&"mouseup"==t.type||(this.staticClick(t,i),"mouseup"!=t.type&&(this.isIgnoringMouseUp=!0,setTimeout(function(){delete this.isIgnoringMouseUp}.bind(this),400)))},I.staticClick=function(t,i){this.emitEvent("staticClick",[t,i])},j.getPointerPoint=L.getPointerPoint;const _=F;(()=>{v.extend(F.defaults,{draggable:">1",dragThreshold:3}),F.createMethods.push("_createDrag");const t=F.prototype;v.extend(t,j.prototype),t._touchActionValue="pan-y";const i="createTouch"in document;let n=!1;t._createDrag=function(){this.on("activate",this.onActivateDrag),this.on("uiChange",this._uiChangeDrag),this.on("deactivate",this.onDeactivateDrag),this.on("cellChange",this.updateDraggable),i&&!n&&(window.addEventListener("touchmove",(function(){})),n=!0)},t.onActivateDrag=function(){this.handles=[this.viewport],this.bindHandles(),this.updateDraggable()},t.onDeactivateDrag=function(){this.unbindHandles(),this.element.classList.remove("is-draggable")},t.updateDraggable=function(){this.isDraggable=">1"==this.options.draggable?this.slides.length>1:this.options.draggable,this.isDraggable?this.element.classList.add("is-draggable"):this.element.classList.remove("is-draggable")},t.bindDrag=function(){this.options.draggable=!0,this.updateDraggable()},t.unbindDrag=function(){this.options.draggable=!1,this.updateDraggable()},t._uiChangeDrag=function(){delete this.isFreeScrolling},t.pointerDown=function(t,i){this.isDraggable?this.okayPointerDown(t)&&(this._pointerDownPreventDefault(t),this.pointerDownFocus(t),document.activeElement!=this.element&&this.pointerDownBlur(),this.dragX=this.x,this.viewport.classList.add("is-pointer-down"),this.pointerDownScroll=e(),window.addEventListener("scroll",this),this._pointerDownDefault(t,i)):this._pointerDownDefault(t,i)},t._pointerDownDefault=function(t,i){this.pointerDownPointer={pageX:i.pageX,pageY:i.pageY},this._bindPostStartEvents(t),this.dispatchEvent("pointerDown",t,[i])};const s={INPUT:!0,TEXTAREA:!0,SELECT:!0};function e(){return{x:window.scrollX,y:window.scrollY}}t.pointerDownFocus=function(t){s[t.target.nodeName]||this.focus()},t._pointerDownPreventDefault=function(t){"touchstart"==t.type||"touch"==t.pointerType||s[t.target.nodeName]||t.preventDefault()},t.hasDragStarted=function(t){return Math.abs(t.x)>this.options.dragThreshold},t.pointerUp=function(t,i){delete this.isTouchScrolling,this.viewport.classList.remove("is-pointer-down"),this.dispatchEvent("pointerUp",t,[i]),this._dragPointerUp(t,i)},t.pointerDone=function(){window.removeEventListener("scroll",this),delete this.pointerDownScroll},t.dragStart=function(t,i){this.isDraggable&&(this.dragStartPosition=this.x,this.startAnimation(),window.removeEventListener("scroll",this),this.dispatchEvent("dragStart",t,[i]))},t.pointerMove=function(t,i){const n=this._dragPointerMove(t,i);this.dispatchEvent("pointerMove",t,[i,n]),this._dragMove(t,i,n)},t.dragMove=function(t,i,n){if(!this.isDraggable)return;t.preventDefault(),this.previousDragX=this.dragX;const s=this.options.rightToLeft?-1:1;this.options.wrapAround&&(n.x=n.x%this.slideableWidth);let e=this.dragStartPosition+n.x*s;if(!this.options.wrapAround&&this.slides.length){const t=Math.max(-this.slides[0].target,this.dragStartPosition);e=e>t?.5*(e+t):e;const i=Math.min(-this.getLastSlide().target,this.dragStartPosition);e=e<i?.5*(e+i):e}this.dragX=e,this.dragMoveTime=new Date,this.dispatchEvent("dragMove",t,[i,n])},t.dragEnd=function(t,i){if(!this.isDraggable)return;this.options.freeScroll&&(this.isFreeScrolling=!0);let n=this.dragEndRestingSelect();if(this.options.freeScroll&&!this.options.wrapAround){const t=this.getRestingPosition();this.isFreeScrolling=-t>this.slides[0].target&&-t<this.getLastSlide().target}else this.options.freeScroll||n!=this.selectedIndex||(n+=this.dragEndBoostSelect());delete this.previousDragX,this.isDragSelect=this.options.wrapAround,this.select(n),delete this.isDragSelect,this.dispatchEvent("dragEnd",t,[i])},t.dragEndRestingSelect=function(){const t=this.getRestingPosition(),i=Math.abs(this.getSlideDistance(-t,this.selectedIndex)),n=this._getClosestResting(t,i,1),s=this._getClosestResting(t,i,-1);return n.distance<s.distance?n.index:s.index},t._getClosestResting=function(t,i,n){let s=this.selectedIndex,e=1/0;const o=this.options.contain&&!this.options.wrapAround?function(t,i){return t<=i}:function(t,i){return t<i};for(;o(i,e)&&(s+=n,e=i,null!==(i=this.getSlideDistance(-t,s)));)i=Math.abs(i);return{distance:e,index:s-n}},t.getSlideDistance=function(t,i){const n=this.slides.length,s=this.options.wrapAround&&n>1,e=s?v.modulo(i,n):i,o=this.slides[e];if(!o)return null;const h=s?this.slideableWidth*Math.floor(i/n):0;return t-(o.target+h)},t.dragEndBoostSelect=function(){if(void 0===this.previousDragX||!this.dragMoveTime||new Date-this.dragMoveTime>100)return 0;const t=this.getSlideDistance(-this.dragX,this.selectedIndex),i=this.previousDragX-this.dragX;return t>0&&i>0?1:t<0&&i<0?-1:0},t.staticClick=function(t,i){const n=this.getParentCell(t.target),s=n&&n.element,e=n&&this.cells.indexOf(n);this.dispatchEvent("staticClick",t,[i,s,e])},t.onscroll=function(){const t=e(),i=this.pointerDownScroll.y-t.y;(Math.abs(this.pointerDownScroll.x-t.x)>3||Math.abs(i)>3)&&this._pointerDone()}})(),(()=>{function t(t,i){this.direction=t,this.parent=i,this.parentElement=this.parent.element.shadowRoot||this.parent.element,this._create()}(t.prototype=Object.create(L.prototype))._create=function(){this.isEnabled=!0,this.isPrevious=-1==this.direction,this.isLeft=this.direction==(this.parent.options.rightToLeft?1:-1);const t=this.element=document.createElement("button");t.className="flickity-button flickity-prev-next-button",this.isPrevious?(t.classList.add("previous"),t.setAttribute("part","navigation-button navigation-button--previous")):(t.classList.add("next"),t.setAttribute("part","navigation-button navigation-button--next")),t.setAttribute("type","button"),this.disable(),t.setAttribute("aria-label",this.isPrevious?"Previous":"Next");const i=document.createElement("slot");i.name=this.isPrevious?"previous-icon":"next-icon",t.appendChild(i),i.addEventListener("slotchange",(()=>{i.assignedElements({flatten:!0}).forEach((t=>{t.removeAttribute("hidden")}))}));const n=document.createElement("span");n.className="button-icon "+(this.isPrevious?"button-icon--previous":"button-icon--next"),n.setAttribute("part","navigation-icon"),i.appendChild(n),this.parent.on("select",this.update.bind(this)),this.on("pointerDown",this.parent.childUIPointerDown.bind(this.parent))},t.prototype.activate=function(){this.bindStartEvent(this.element),this.element.addEventListener("click",this),this.parentElement.appendChild(this.element)},t.prototype.deactivate=function(){this.parentElement.removeChild(this.element),this.unbindStartEvent(this.element),this.element.removeEventListener("click",this)},t.prototype.handleEvent=v.handleEvent,t.prototype.onclick=function(){this.isEnabled&&(this.parent.uiChange(),this.parent[this.isPrevious?"previous":"next"]())},t.prototype.enable=function(){this.isEnabled||(this.element.disabled=!1,this.isEnabled=!0)},t.prototype.disable=function(){this.isEnabled&&(this.element.disabled=!0,this.isEnabled=!1)},t.prototype.update=function(){const t=this.parent.slides;this.parent.options.wrapAround&&t.length>1?this.enable():this[this.parent.selectedIndex==(this.isPrevious?0:t.length?t.length-1:0)?"disable":"enable"]()},t.prototype.destroy=function(){this.deactivate(),this.allOff()},v.extend(F.defaults,{prevNextButtons:!0,arrowShape:{x0:10,x1:60,y1:50,x2:70,y2:40,x3:30}}),F.createMethods.push("_createPrevNextButtons");const i=F.prototype;i._createPrevNextButtons=function(){this.options.prevNextButtons&&(this.prevButton=new t(-1,this),this.nextButton=new t(1,this),this.on("activate",this.activatePrevNextButtons))},i.activatePrevNextButtons=function(){this.prevButton.activate(),this.nextButton.activate(),this.on("deactivate",this.deactivatePrevNextButtons)},i.deactivatePrevNextButtons=function(){this.prevButton.deactivate(),this.nextButton.deactivate(),this.off("deactivate",this.deactivatePrevNextButtons)},F.PrevNextButton=t})(),(()=>{function t(t){this.parent=t,this.state="stopped",this.onVisibilityChange=this.visibilityChange.bind(this),this.onVisibilityPlay=this.visibilityPlay.bind(this)}(t.prototype=Object.create(r.prototype)).play=function(){"playing"!=this.state&&(document.hidden?document.addEventListener("visibilitychange",this.onVisibilityPlay):(this.state="playing",document.addEventListener("visibilitychange",this.onVisibilityChange),this.tick()))},t.prototype.tick=function(){if("playing"!=this.state)return;let t=this.parent.options.autoPlay;t="number"==typeof t?t:3e3;const i=this;this.clear(),this.timeout=setTimeout((function(){i.parent.next(!0),i.tick()}),t)},t.prototype.stop=function(){this.state="stopped",this.clear(),document.removeEventListener("visibilitychange",this.onVisibilityChange)},t.prototype.clear=function(){clearTimeout(this.timeout)},t.prototype.pause=function(){"playing"==this.state&&(this.state="paused",this.clear())},t.prototype.unpause=function(){"paused"==this.state&&this.play()},t.prototype.visibilityChange=function(){this[document.hidden?"pause":"unpause"]()},t.prototype.visibilityPlay=function(){this.play(),document.removeEventListener("visibilitychange",this.onVisibilityPlay)},v.extend(F.defaults,{pauseAutoPlayOnHover:!0}),F.createMethods.push("_createPlayer");const i=F.prototype;i._createPlayer=function(){this.player=new t(this),this.on("activate",this.activatePlayer),this.on("uiChange",this.stopPlayer),this.on("pointerDown",this.stopPlayer),this.on("deactivate",this.deactivatePlayer)},i.activatePlayer=function(){this.options.autoPlay&&(this.player.play(),this.element.addEventListener("mouseenter",this))},i.playPlayer=function(){this.player.play()},i.stopPlayer=function(){this.player.stop()},i.pausePlayer=function(){this.player.pause()},i.unpausePlayer=function(){this.player.unpause()},i.deactivatePlayer=function(){this.player.stop(),this.element.removeEventListener("mouseenter",this)},i.onmouseenter=function(){this.options.pauseAutoPlayOnHover&&(this.player.pause(),this.element.addEventListener("mouseleave",this))},i.onmouseleave=function(){this.player.unpause(),this.element.removeEventListener("mouseleave",this)},F.Player=t})();const U=class{constructor(n){t(this,n),this.nanoSlidesDidLoad=i(this,"nanoSlidesDidLoad",7),this.nanoSlidesReady=i(this,"nanoSlidesReady",7),this.nanoSlidesSelect=i(this,"nanoSlidesSelect",7),this.nanoSlidesChange=i(this,"nanoSlidesChange",7),this.nanoSlidesScroll=i(this,"nanoSlidesScroll",7),this.nanoSlidesTransitionEnd=i(this,"nanoSlidesTransitionEnd",7),this.nanoSlidesDragStart=i(this,"nanoSlidesDragStart",7),this.nanoSlidesDragMove=i(this,"nanoSlidesDragMove",7),this.nanoSlidesDragEnd=i(this,"nanoSlidesDragEnd",7),this.nanoSlidesTap=i(this,"nanoSlidesTap",7),this.nanoSlidesFullscreenChange=i(this,"nanoSlidesFullscreenChange",7)}flickityEl;flickityReady=!1;isReloading=!1;resizeO;readyflickity;flickity=new Promise((t=>{this.readyflickity=t}));syncflickity;childrenEles;hasFullScreenModule=!1;hasLazyLoadModule=!1;hasFadeModule=!1;iCurrentSlide;slidesReady;didInit=!1;slideCount=0;get host(){return n(this)}options={};async optionsChanged(t,i){JSON.stringify(t)!==JSON.stringify(i||{})&&this.flickityReady&&!this.isReloading&&(this.isReloading=!0,await this.reload())}navbtns=!1;pager=!1;fullscreenbtn=!1;async fullscreenBtnChanged(){const t=this._getRoot().querySelector(".flickity-fullscreen-button");t&&(t.hidden=!this.fullscreenbtn)}fullscreen=!1;async fullscreenChanged(t,i){const n=await this.getflickity();this.fullscreen?n.viewFullscreen():void 0!==i&&n.exitFullscreen()}animation="scroll";async animationChange(t,i){const[n,s]=await Promise.all([this.getflickity(),this.waitForSlides()]);if(s.forEach((t=>{t.style.left=void 0})),"parallax"===i&&(n.off("scroll",this.parallax),s.forEach(((t,i)=>{this.childrenEles&&this.childrenEles[i]&&(this.childrenEles[i].style.transform=void 0)})),this.update()),"function"==typeof i&&n.off("scroll",i),"function"==typeof this.animation)return this.updateOptions({fade:!1,percentPosition:!0}),void n.on("scroll",this.animation);switch(this.animation){case"fade":this.updateOptions({fade:!0,percentPosition:!0});break;case"parallax":this.updateOptions({fade:!1,percentPosition:!0}),n.on("scroll",this.parallax);break;default:this.updateOptions({fade:!1,percentPosition:!0})}}updateOptions(t){this.options={...this.options,...t}}currentSlide=0;currentSlideChange(){this.currentSlide!==this.iCurrentSlide&&this.slideTo(this.currentSlide)}internalSlideChange(){this.currentSlide=this.iCurrentSlide}autoplay=!1;async autoPlayChange(){await this.stopAutoplay(),this.autoplay&&("string"==typeof this.autoplay&&(this.autoplay=parseInt(this.autoplay)),this.autoplay>0&&this.startAutoplay(this.autoplay))}ready=!1;nanoSlidesDidLoad;nanoSlidesReady;nanoSlidesSelect;nanoSlidesChange;nanoSlidesScroll;nanoSlidesTransitionEnd;nanoSlidesDragStart;nanoSlidesDragMove;nanoSlidesDragEnd;nanoSlidesTap;nanoSlidesFullscreenChange;async update(){if(!this.didInit)return;const[t]=await Promise.all([this.getflickity(),this.waitForSlides()]);this.childrenEles=this.host.querySelectorAll(`${h("nano-slide")} > *`),t.reloadCells(),t.resize(),t.reposition()}async slideTo(t,i){(await this.getflickity()).select(t,i)}async slideNext(t,i){(await this.getflickity()).next(i,t)}async slidePrev(t,i){(await this.getflickity()).previous(t,i)}async getActiveIndex(){return(await this.getflickity()).selectedIndex}async length(){return(await this.getflickity()).slides.length}async isEnd(){const t=await this.getflickity();return t.selectedIndex===t.slides.length-1}async isBeginning(){return 0===(await this.getflickity()).selectedIndex}async startAutoplay(t){const i=await this.getflickity();t&&(this.options={autoPlay:t}),setTimeout((()=>i.playPlayer()))}async stopAutoplay(){(await this.getflickity()).stopPlayer()}async lockSwipes(t){const i=await this.getflickity();i.options.draggable=!t,i.updateDraggable()}async getflickity(){return this.flickity}async reload(){this.destroyflickity(),setTimeout((()=>this.initflickity()),20)}_getRoot(){return this.host.shadowRoot?this.host.shadowRoot:this.host}parallax=async()=>{const t=await this.flickity;t.cells.forEach((i=>{let n=t.x;var s;t.options.wrapAround&&t.cells.length>1&&(n=(n%(s=t.slideableWidth)+s)%s,n-=t.slideableWidth);let e=-1*(i.target+n)/3;i.shift<0?e=-1*(i.target-t.slideableWidth+n)/3:i.shift>0&&(e=-1*(i.target+(n+t.slideableWidth))/3),i.element.children[0].style.transform="translate3d("+e+"px, 0, 0)",i.element.style.setProperty("--animation-amount",(3*e/i.size.width*100).toString())}))};isActive(t){return t===this.currentSlide}handleFullscreen=t=>{this.fullscreen=t,this.nanoSlidesFullscreenChange.emit(t)};handleSlideSelect=t=>{this.iCurrentSlide=t,this.nanoSlidesSelect.emit(t)};destroyflickity(){const t=this.syncflickity;void 0!==t&&(t.destroy(),this.flickity=new Promise((t=>{this.readyflickity=t})),this.flickityReady=!1,this.syncflickity=void 0,this.ready=!1),this.didInit=!1}async loadFlickityModules(t){!this.hasFullScreenModule&&t.fullscreen&&(await import("./fullscreen-Ct2ACI6T.js"),this.hasFullScreenModule=!0),!this.hasLazyLoadModule&&t.lazyLoad&&(await import("./lazyload-ZYbHlu3K.js"),this.hasLazyLoadModule=!0),!this.hasFadeModule&&t.fade&&(await import("./fade-Y5mYUwiO.js"),this.hasFadeModule=!0)}async initflickity(){const t=this.normalizeOptions();await this.loadFlickityModules(t),await this.waitForSlides(),this.flickityEl=this.flickityEl||this._getRoot().querySelector(".flickity-container"),this.flickityEl&&(this.slidesReady=!0,this.flickityEl.classList.contains("flickity-enabled")&&this.destroyflickity(),this.flickityEl.style.height=this.flickityEl.getBoundingClientRect().height+"px",setTimeout((()=>{this.flickityEl.style.height="";const i=new _(this.flickityEl,t);this.flickityReady=!0,this.syncflickity=i,this.animationChange(),this.fullscreenChanged(),this.fullscreenBtnChanged(),this.readyflickity(i),this.ready=!0,this.isReloading=!1,window.ResizeObserver&&(this.resizeO&&(this.resizeO.disconnect(),this.resizeO=void 0),(this.resizeO=new ResizeObserver((()=>{s((()=>{const t=this.host.shadowRoot.querySelector(".flickity-viewport");e((()=>{t&&(t.style.height=""),i.resize()}))}))}))).observe(this.host))}),100))}normalizeOptions(){const t={cellSelector:h("nano-slide"),contain:!0,prevNextButtons:!1,fullscreen:this.fullscreen,accessibility:!0,imagesLoaded:!0};"fade"===this.animation&&(t.fade=!0),this.currentSlide>0&&(t.initialIndex=this.currentSlide),this.autoplay&&("string"==typeof this.autoplay&&(this.autoplay=parseInt(this.autoplay)),this.autoplay>0&&(t.autoPlay=this.autoplay));const i={on:{...this.options&&this.options.on?this.options.on:{},ready:()=>{setTimeout((()=>{this.nanoSlidesReady.emit()}),20)},select:this.handleSlideSelect,change:this.nanoSlidesChange.emit,scroll:this.nanoSlidesScroll.emit,settle:()=>requestAnimationFrame((()=>this.nanoSlidesTransitionEnd.emit())),dragStart:()=>requestAnimationFrame((()=>this.nanoSlidesDragStart.emit())),dragMove:()=>requestAnimationFrame((()=>this.nanoSlidesDragMove.emit())),dragEnd:()=>requestAnimationFrame((()=>this.nanoSlidesDragEnd.emit())),staticClick:this.nanoSlidesTap.emit,fullscreenChange:this.handleFullscreen}};return{...t,...i,...this.options}}waitForSlides=()=>{const t=Array.from(this.host.querySelectorAll(h("nano-slide")));this.slideCount=t.length;let i=t.filter((t=>!t.ready));return i.length?new Promise((n=>{const s=e=>{i=i.filter((t=>t!==e.target)),i.length||(n(t),this.host.removeEventListener("nanoSlideReady",s),this.host.removeEventListener("nano-slide-ready",s))};this.host.addEventListener("nanoSlideReady",s),this.host.addEventListener("nano-slide-ready",s)})):Promise.resolve(t)};componentDidLoad(){this.nanoSlidesDidLoad.emit(),this.didInit||(this.didInit=!0,this.initflickity())}disconnectedCallback(){this.resizeO&&(this.resizeO.disconnect(),this.resizeO=void 0),this.destroyflickity()}render(){return c(o,{key:"b6f08fc2b892fa03e5e5d1c6faa8c9ed5c96909f",class:"nano-slides"},c("div",{key:"31703829da5889f44e9918c813b71a9c12955881",class:{slideshow:!0,ready:this.ready,"not-ready":!this.ready},part:"base"},c("div",{key:"9f85e49dc9fc7e78fd73aabf81f21bcb4f7c9a29",ref:t=>this.flickityEl=t,class:{"flickity-container":!0,"slides-ready":this.slidesReady,"slides-not-ready":!this.slidesReady},part:"slide-container"},c("slot",{key:"df99653f152b14f4e06e2451a93e7517c82027d9",onSlotchange:()=>this.update()})),c("div",{key:"0f34a9196a369cadc93a7a678f318f036a4f8bc2",class:"ui-extras"},c("slot",{key:"6fee3e51010cbdd25ad74b59e86133a30501fe13",name:"ui"})),this.slideCount>1&&(this.pager||this.navbtns)&&c("div",{key:"54c54f41d109ea9ee44cad50dd8929046b8fabf0",class:"pagination",part:"pagination"},this.navbtns&&c("button",{key:"6c06cd8854f495dd8df48b94c98eb5cfa5767947",class:"flickity-button flickity-prev-next-button previous",part:"navigation-button navigation-button--previous","aria-label":"Previous slide",onClick:()=>this.slidePrev(),disabled:0===this.iCurrentSlide&&!this.options.wrapAround},c("span",{key:"a7a80501503e055217b546ef618f9665eee79ebc",class:"button-icon button-icon--previous",part:"navigation-icon"},c("slot",{key:"d43695afeecb25ba5ba5b0dc674ee4123b35540f",name:"previous-icon"}))),this.pager&&c("div",{key:"5e975ec703c51f361f654afac6bc03a7e4d03892",class:"flickity-page-dots"},Array.from({length:this.slideCount}).map(((t,i)=>c("button",{part:"pagination-item--active",key:i,class:{"pagination-btn":!0,"pagination-btn--active":this.isActive(i),"is-selected":this.isActive(i),dot:!0},"aria-current":this.isActive(i)?"step":void 0,onClick:()=>{this.isActive(i)||this.slideTo(i)}},c("span",{class:"pagination-btn__label"},"Go to slide ",i+1))))),this.navbtns&&c("button",{key:"7670270c71a6eb61e9a1de33f4a4214ed4a035f9",class:"flickity-button flickity-prev-next-button next",part:"navigation-button navigation-button--next","aria-label":"Next slide",onClick:()=>this.slideNext(),disabled:this.syncflickity?.slides.length===this.iCurrentSlide+1&&!this.options.wrapAround},c("span",{key:"7140891f079fc702044e6bd46aaaf996dbac02d7",class:"button-icon",part:"navigation-icon"},c("slot",{key:"ceed5fb13ebf410b999f7b4a10a0489b2162d4ed",name:"next-icon"}))))))}static get watchers(){return{options:["optionsChanged"],fullscreenbtn:["fullscreenBtnChanged"],fullscreen:["fullscreenChanged"],animation:["animationChange"],currentSlide:["currentSlideChange"],iCurrentSlide:["internalSlideChange"],autoplay:["autoPlayChange"]}}};U.style=':host,*,*::before,*::after{box-sizing:border-box}[hidden]{display:none !important}@media (prefers-reduced-motion: reduce){:host,*,*::before,*::after{animation-duration:0.01ms !important;animation-iteration-count:1 !important;transition-duration:0.01ms !important;scroll-behavior:auto !important}}:host,*,*::before,*::after{box-sizing:border-box}[hidden]{display:none !important}@media (prefers-reduced-motion: reduce){:host,*,*::before,*::after{animation-duration:0.01ms !important;animation-iteration-count:1 !important;transition-duration:0.01ms !important;scroll-behavior:auto !important}}:host{--dot-color:var(--nano-color-neutral-400);--dot-color-active:var(--nano-color-primary-1000);--navbtns-icon-color:var(--nano-color-neutral-700);--navbtns-icon-color-hover:var(--nano-color-primary-1000);--navbtns-bg-color:transparent;--navbtns-icon-color-disabled:var(--dot-color-active);--navbtns-bg-color-disabled:transparent;--navbtns-width:1.5rem;--navbtns-height:1rem;--fsbtn-icon-color:var(--dot-color-active);--fsbtn-bg-color:transparent;--flip-icon-ltr:0;--flip-icon-rtl:1;display:block;-webkit-user-select:none;user-select:none;transition:opacity 0.2s;opacity:0;max-inline-size:100vw}:host:dir(rtl){--flip-icon-ltr:1;--flip-icon-rtl:0}:host([ready]){opacity:1}.slideshow{max-block-size:100%;min-block-size:inherit;block-size:inherit;position:relative}.slideshow.not-ready{inline-size:100%;overflow:hidden}.flickity-container{opacity:0;transition:opacity 0.2s;display:flex;block-size:fit-content}.not-ready .flickity-container{block-size:fit-content}.flickity-container.slides-ready{min-block-size:inherit;max-block-size:inherit;block-size:inherit;inline-size:auto}[hidden]{display:none !important}.ui-extras{pointer-events:none;position:absolute;block-size:100%;inline-size:100%;inset-block-start:0;inset-inline-start:0}.ui-extras *{pointer-events:all}/*! Flickity v2.2.1\nhttps://flickity.metafizzy.co\n---------------------------------------------- */.flickity-enabled{position:relative;opacity:1}.flickity-enabled:focus{outline:none}.flickity-viewport{overflow:hidden;position:relative;min-block-size:100%;flex:1}.flickity-slider{position:absolute;inline-size:100%;block-size:100%}.flickity-enabled.is-draggable{-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none}.flickity-enabled.is-draggable .flickity-viewport{cursor:move;cursor:grab;cursor:grab}.flickity-enabled.is-draggable .flickity-viewport.is-pointer-down{cursor:grabbing}.pagination{display:flex}.flickity-button{background:var(--navbtns-bg-color);border:none;color:#333;opacity:1}.flickity-button:hover{opacity:1;cursor:pointer;--navbtns-icon-color:var(--navbtns-icon-color-hover)}.flickity-button:focus-visible{outline:var(--nano-focus-ring);outline-offset:var(--nano-focus-ring-offset)}.flickity-button:active{opacity:0.6}.flickity-button:disabled{opacity:0.3;cursor:auto;pointer-events:none;background:var(--navbtns-bg-color-disabled)}.button-icon{display:block}.button-icon::after{content:"";display:block;background-size:cover;inline-size:var(--navbtns-width);block-size:var(--navbtns-height);background-color:var(--navbtns-icon-color);-webkit-mask-image:var(--nano-component-icon-arrow);mask-image:var(--nano-component-icon-arrow);transition:color var(--nano-transition-fast) ease;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center;transform-origin:center;margin-inline-start:auto;rotate:calc(180deg * var(--flip-icon-ltr));-webkit-mask-size:cover;mask-size:cover}.button-icon--previous::after{rotate:calc(180deg * var(--flip-icon-rtl))}.flickity-button:disabled .button-icon::after{background-color:var(--navbtns-icon-color-disabled)}.flickity-prev-next-button.next{margin-inline-start:auto}.flickity-rtl .flickity-prev-next-button.previous{inset-inline:auto 10px}.flickity-rtl .flickity-prev-next-button.next{inset-inline:10px auto}.flickity-prev-next-button .flickity-button-icon{position:absolute;inset-inline-start:20%;inset-block-start:20%;inline-size:60%;block-size:60%}.flickity-page-dots{inline-size:100%;padding:0;margin:0;text-align:center;line-height:1;z-index:4;display:inline-flex;justify-content:center;inset-block-end:0}.flickity-rtl .flickity-page-dots{direction:rtl}.flickity-page-dots .dot{all:unset;text-indent:200%;white-space:nowrap;overflow:hidden;display:inline-block;display:inline-block;position:relative;inline-size:1.25rem;block-size:0.375rem;margin-block:0;cursor:pointer;padding:calc(var(--nano-spacing-md) / 2)}.flickity-page-dots .dot::after{content:"";position:absolute;inset:0;background:currentcolor;background:var(--dot-color);margin:calc(var(--nano-spacing-md) / 2)}.flickity-page-dots .dot:focus-visible{outline:var(--nano-focus-ring);outline-offset:var(--nano-focus-ring-offset);z-index:1}.flickity-page-dots .dot.is-selected::after{background:var(--dot-color-active)}.flickity-enabled.is-fullscreen{position:fixed;inset-inline-start:0;inset-block-start:0;inline-size:100%;block-size:100%;background:hsla(0, 0%, 0%, 0.9);padding-block-end:35px;z-index:100}.flickity-enabled.is-fullscreen .flickity-page-dots{inset-block-end:45px}html.is-flickity-fullscreen{overflow:hidden}.flickity-fullscreen-button{display:block;inset-inline-end:10px;inset-block-start:10px;inline-size:24px;block-size:24px;border-radius:4px;background:var(--fsbtn-bg-color);fill:var(--fsbtn-icon-color)}.flickity-rtl .flickity-fullscreen-button{inset-inline:10px auto}.flickity-fullscreen-button-exit{display:none}.flickity-enabled.is-fullscreen .flickity-fullscreen-button-exit{display:block}.flickity-enabled.is-fullscreen .flickity-fullscreen-button-view{display:none}.flickity-fullscreen-button .flickity-button-icon{position:absolute;inline-size:16px;block-size:16px;inset-inline-start:4px;inset-block-start:4px}.flickity-enabled.is-fade .flickity-slider>*{pointer-events:none;z-index:0}.flickity-enabled.is-fade .flickity-slider ::slotted(.is-selected){pointer-events:auto;z-index:1}';export{F,U as S,v as u}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|