@swisspost/design-system-components 10.0.0-next.66 → 10.0.0-next.68
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/{breakpoints-B81j4H4_.js → breakpoints-B0Olgvgc.js} +8 -9
- package/dist/cjs/{get-focusable-children-SdEe5tt7.js → get-focusable-children-BGVgg7Te.js} +4 -4
- package/dist/cjs/{get-root-CUAv4k4C.js → get-root-B1FnQ50K.js} +1 -3
- package/dist/cjs/{index-YVR3WTTS.js → index-Du1lKw8D.js} +21 -9
- package/dist/cjs/{index-ChzLnSU8.js → index-qCzRmwgB.js} +2 -2
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{package-Cixsn1Ql.js → package-DB6yM9Rp.js} +1 -1
- package/dist/cjs/post-accordion_2.cjs.entry.js +6 -7
- package/dist/cjs/post-autocomplete.cjs.entry.js +181 -0
- package/dist/cjs/post-avatar.cjs.entry.js +6 -7
- package/dist/cjs/post-back-to-top.cjs.entry.js +8 -9
- package/dist/cjs/post-banner.cjs.entry.js +5 -6
- package/dist/cjs/{post-breadcrumb-item_2.cjs.entry.js → post-breadcrumb-item.cjs.entry.js} +7 -23
- package/dist/cjs/post-breadcrumbs.cjs.entry.js +13 -12
- package/dist/cjs/{post-closebutton_13.cjs.entry.js → post-closebutton_14.cjs.entry.js} +97 -70
- package/dist/cjs/post-collapsible_2.cjs.entry.js +18 -12
- package/dist/cjs/post-components.cjs.js +2 -2
- package/dist/cjs/post-date-picker.cjs.entry.js +12 -13
- package/dist/cjs/post-footer.cjs.entry.js +8 -9
- package/dist/cjs/post-linkarea.cjs.entry.js +3 -3
- package/dist/cjs/post-listbox-option.cjs.entry.js +26 -0
- package/dist/cjs/post-listbox.cjs.entry.js +151 -0
- package/dist/cjs/post-login-widget.cjs.entry.js +60 -0
- package/dist/cjs/post-number-input.cjs.entry.js +20 -14
- package/dist/cjs/post-pagination.cjs.entry.js +10 -11
- package/dist/cjs/post-popover-trigger.cjs.entry.js +5 -6
- package/dist/cjs/post-popover.cjs.entry.js +7 -8
- package/dist/cjs/post-rating.cjs.entry.js +5 -6
- package/dist/cjs/post-stepper-item.cjs.entry.js +3 -3
- package/dist/cjs/post-stepper.cjs.entry.js +6 -7
- package/dist/cjs/post-tab-item.cjs.entry.js +5 -6
- package/dist/cjs/post-tab-panel.cjs.entry.js +5 -6
- package/dist/cjs/post-tabs.cjs.entry.js +8 -9
- package/dist/cjs/post-tooltip-trigger.cjs.entry.js +7 -10
- package/dist/cjs/post-tooltip.cjs.entry.js +5 -6
- package/dist/collection/animations/collapse.js +10 -3
- package/dist/collection/collection-manifest.json +5 -2
- package/dist/collection/components/post-accordion/post-accordion.js +2 -2
- package/dist/collection/components/post-autocomplete/post-autocomplete.css +1 -0
- package/dist/collection/components/post-autocomplete/post-autocomplete.js +271 -0
- package/dist/collection/components/post-avatar/post-avatar.js +2 -2
- package/dist/collection/components/post-back-to-top/post-back-to-top.js +4 -4
- package/dist/collection/components/post-banner/post-banner.js +1 -1
- package/dist/collection/components/post-breadcrumb-item/post-breadcrumb-item.js +42 -5
- package/dist/collection/components/post-breadcrumbs/post-breadcrumbs.js +9 -7
- package/dist/collection/components/post-closebutton/post-closebutton.js +1 -1
- package/dist/collection/components/post-collapsible/post-collapsible.js +4 -4
- package/dist/collection/components/post-collapsible-trigger/post-collapsible-trigger.js +1 -1
- package/dist/collection/components/post-date-picker/post-date-picker.css +1 -1
- package/dist/collection/components/post-date-picker/post-date-picker.js +9 -9
- package/dist/collection/components/post-footer/post-footer.css +1 -1
- package/dist/collection/components/post-footer/post-footer.js +3 -3
- package/dist/collection/components/post-header/post-header.js +13 -13
- package/dist/collection/components/post-icon/post-icon.js +16 -13
- package/dist/collection/components/post-language-menu/post-language-menu.css +1 -1
- package/dist/collection/components/post-language-menu/post-language-menu.js +1 -1
- package/dist/collection/components/post-language-menu-item/post-language-menu-item.css +1 -1
- package/dist/collection/components/post-language-menu-item/post-language-menu-item.js +28 -1
- package/dist/collection/components/post-linkarea/post-linkarea.js +1 -1
- package/dist/collection/components/post-listbox/post-listbox.css +1 -0
- package/dist/collection/components/post-listbox/post-listbox.js +293 -0
- package/dist/collection/components/post-listbox-option/post-listbox-option.css +1 -0
- package/dist/collection/components/post-listbox-option/post-listbox-option.js +109 -0
- package/dist/collection/components/post-login-widget/post-login-widget.js +120 -0
- package/dist/collection/components/post-logo/post-logo.js +1 -1
- package/dist/collection/components/post-mainnavigation/post-mainnavigation.js +1 -1
- package/dist/collection/components/post-megadropdown/post-megadropdown.css +1 -1
- package/dist/collection/components/post-megadropdown/post-megadropdown.js +5 -5
- package/dist/collection/components/post-megadropdown-trigger/post-megadropdown-trigger.css +1 -1
- package/dist/collection/components/post-megadropdown-trigger/post-megadropdown-trigger.js +1 -1
- package/dist/collection/components/post-menu/post-menu.js +2 -2
- package/dist/collection/components/post-menu-item/post-menu-item.js +1 -1
- package/dist/collection/components/post-menu-trigger/post-menu-trigger.js +1 -1
- package/dist/collection/components/post-number-input/post-number-input.css +4 -1
- package/dist/collection/components/post-number-input/post-number-input.js +12 -3
- package/dist/collection/components/post-pagination/post-pagination.js +6 -6
- package/dist/collection/components/post-popover/post-popover.js +1 -1
- package/dist/collection/components/post-popover-trigger/post-popover-trigger.js +1 -1
- package/dist/collection/components/post-popovercontainer/post-popovercontainer.js +26 -19
- package/dist/collection/components/post-rating/post-rating.js +1 -1
- package/dist/collection/components/post-stepper/post-stepper.js +2 -2
- package/dist/collection/components/post-stepper-item/post-stepper-item.js +1 -1
- package/dist/collection/components/post-tab-item/post-tab-item.js +1 -1
- package/dist/collection/components/post-tab-panel/post-tab-panel.js +1 -1
- package/dist/collection/components/post-tabs/post-tabs.js +4 -4
- package/dist/collection/components/post-togglebutton/post-togglebutton.js +1 -1
- package/dist/collection/components/post-tooltip/post-tooltip.js +1 -1
- package/dist/collection/components/post-tooltip-trigger/post-tooltip-trigger.js +6 -6
- package/dist/collection/utils/attribute-observer.js +1 -2
- package/dist/collection/utils/breakpoints.js +8 -8
- package/dist/collection/utils/get-focusable-children.js +3 -3
- package/dist/collection/utils/get-root.js +1 -2
- package/dist/collection/utils/index.js +0 -1
- package/dist/collection/utils/is-iso-date.js +1 -1
- package/dist/collection/utils/is-motion-reduced.js +3 -2
- package/dist/collection/utils/property-checkers/check-date.js +1 -1
- package/dist/collection/utils/property-checkers/constants.js +1 -1
- package/dist/collection/utils/property-checkers/index.js +1 -2
- package/dist/collection/utils/repeat-on-long-press.js +6 -6
- package/dist/collection/utils/sass-export.js +1 -1
- package/dist/collection/utils/tests/helpers/mock-match-media.js +11 -0
- package/dist/collection/utils/tests/helpers/mock-stencil-constants.js +12 -0
- package/dist/component-names.json +4 -0
- package/dist/components/breakpoints.js +1 -1
- package/dist/components/get-focusable-children.js +1 -1
- package/dist/components/get-root.js +1 -1
- package/dist/components/index.d.ts +8 -2
- package/dist/components/index.js +1 -1
- package/dist/components/index2.js +1 -0
- package/dist/components/package.js +1 -1
- package/dist/components/post-accordion-item2.js +1 -1
- package/dist/components/post-accordion2.js +1 -1
- package/dist/components/post-autocomplete.d.ts +11 -0
- package/dist/components/post-autocomplete.js +1 -0
- package/dist/components/post-avatar.js +1 -1
- package/dist/components/post-back-to-top.js +1 -1
- package/dist/components/post-banner.js +1 -1
- package/dist/components/post-breadcrumb-item2.js +1 -1
- package/dist/components/post-breadcrumbs.js +1 -1
- package/dist/components/post-closebutton2.js +1 -1
- package/dist/components/post-collapsible-trigger2.js +1 -1
- package/dist/components/post-collapsible2.js +1 -1
- package/dist/components/post-date-picker.js +1 -1
- package/dist/components/post-footer.js +1 -1
- package/dist/components/post-header.js +1 -1
- package/dist/components/post-icon2.js +1 -1
- package/dist/components/post-language-menu-item.js +1 -1
- package/dist/components/post-language-menu.js +1 -1
- package/dist/components/post-linkarea.js +1 -1
- package/dist/components/post-listbox-option.d.ts +11 -0
- package/dist/components/post-listbox-option.js +1 -0
- package/dist/components/{post-env-test.d.ts → post-listbox.d.ts} +4 -4
- package/dist/components/post-listbox.js +1 -0
- package/dist/components/post-login-widget.d.ts +11 -0
- package/dist/components/post-login-widget.js +1 -0
- package/dist/components/post-logo.js +1 -1
- package/dist/components/post-mainnavigation.js +1 -1
- package/dist/components/post-megadropdown-trigger.js +1 -1
- package/dist/components/post-megadropdown.js +1 -1
- package/dist/components/post-menu-item2.js +1 -1
- package/dist/components/post-menu-trigger2.js +1 -1
- package/dist/components/post-menu2.js +1 -1
- package/dist/components/post-number-input.js +1 -1
- package/dist/components/post-pagination.js +1 -1
- package/dist/components/post-popover-trigger.js +1 -1
- package/dist/components/post-popover.js +1 -1
- package/dist/components/post-popovercontainer2.js +1 -1
- package/dist/components/post-rating.js +1 -1
- package/dist/components/post-stepper-item.js +1 -1
- package/dist/components/post-stepper.js +1 -1
- package/dist/components/post-tab-item.js +1 -1
- package/dist/components/post-tab-panel.js +1 -1
- package/dist/components/post-tabs.js +1 -1
- package/dist/components/post-togglebutton2.js +1 -1
- package/dist/components/post-tooltip-trigger.js +1 -1
- package/dist/components/post-tooltip.js +1 -1
- package/dist/components/react/index.js +1 -1
- package/dist/components/react/p-08F-DB-d.js +1 -0
- package/dist/components/react/p-B2BDAeHI.js +1 -0
- package/dist/components/react/p-BADyL6qQ.js +1 -0
- package/dist/components/react/p-BFAXoyMM.js +1 -0
- package/dist/components/react/p-BOqFllSV.js +1 -0
- package/dist/components/react/p-BQ3HlJPr.js +1 -0
- package/dist/components/react/p-ByN3t9FX.js +1 -0
- package/dist/components/react/{p-CmA91vH_.js → p-CmkOK7QT.js} +1 -1
- package/dist/components/react/p-CuiEdxy9.js +1 -0
- package/dist/components/react/p-DPFq3I2q.js +1 -0
- package/dist/components/react/p-DSw_A3Mh.js +1 -0
- package/dist/components/react/p-DsaGKkkf.js +1 -0
- package/dist/components/react/p-NDMNbu5d.js +1 -0
- package/dist/components/react/p-_AAbD0Gm.js +1 -0
- package/dist/components/react/p-aFH1oGSZ.js +1 -0
- package/dist/components/react/p-rEK_D60T.js +1 -0
- package/dist/components/react/p-wHDwT4JH.js +1 -0
- package/dist/components/react/post-accordion-item.js +1 -1
- package/dist/components/react/post-accordion.js +1 -1
- package/dist/components/react/post-autocomplete.d.ts +11 -0
- package/dist/components/react/post-autocomplete.js +1 -0
- package/dist/components/react/post-avatar.js +1 -1
- package/dist/components/react/post-back-to-top.js +1 -1
- package/dist/components/react/post-banner.js +1 -1
- package/dist/components/react/post-breadcrumb-item.js +1 -1
- package/dist/components/react/post-breadcrumbs.js +1 -1
- package/dist/components/react/post-closebutton.js +1 -1
- package/dist/components/react/post-collapsible-trigger.js +1 -1
- package/dist/components/react/post-collapsible.js +1 -1
- package/dist/components/react/post-date-picker.js +1 -1
- package/dist/components/react/post-footer.js +1 -1
- package/dist/components/react/post-header.js +1 -1
- package/dist/components/react/post-icon.js +1 -1
- package/dist/components/react/post-language-menu-item.js +1 -1
- package/dist/components/react/post-language-menu.js +1 -1
- package/dist/components/react/post-linkarea.js +1 -1
- package/dist/components/react/post-listbox-option.d.ts +11 -0
- package/dist/components/react/post-listbox-option.js +1 -0
- package/dist/components/react/{post-env-test.d.ts → post-listbox.d.ts} +4 -4
- package/dist/components/react/post-listbox.js +1 -0
- package/dist/components/react/post-login-widget.d.ts +11 -0
- package/dist/components/react/post-login-widget.js +1 -0
- package/dist/components/react/post-logo.js +1 -1
- package/dist/components/react/post-mainnavigation.js +1 -1
- package/dist/components/react/post-megadropdown-trigger.js +1 -1
- package/dist/components/react/post-megadropdown.js +1 -1
- package/dist/components/react/post-menu-item.js +1 -1
- package/dist/components/react/post-menu-trigger.js +1 -1
- package/dist/components/react/post-menu.js +1 -1
- package/dist/components/react/post-number-input.js +1 -1
- package/dist/components/react/post-pagination.js +1 -1
- package/dist/components/react/post-popover-trigger.js +1 -1
- package/dist/components/react/post-popover.js +1 -1
- package/dist/components/react/post-popovercontainer.js +1 -1
- package/dist/components/react/post-rating.js +1 -1
- package/dist/components/react/post-stepper-item.js +1 -1
- package/dist/components/react/post-stepper.js +1 -1
- package/dist/components/react/post-tab-item.js +1 -1
- package/dist/components/react/post-tab-panel.js +1 -1
- package/dist/components/react/post-tabs.js +1 -1
- package/dist/components/react/post-togglebutton.js +1 -1
- package/dist/components/react/post-tooltip-trigger.js +1 -1
- package/dist/components/react/post-tooltip.js +1 -1
- package/dist/docs.json +682 -56
- package/dist/esm/{breakpoints-_gmb7vUy.js → breakpoints-BQ3HlJPr.js} +8 -9
- package/dist/esm/{get-focusable-children-CFWKPWu9.js → get-focusable-children-DxYnH2ye.js} +4 -4
- package/dist/esm/{get-root-CXfAA093.js → get-root-08F-DB-d.js} +1 -3
- package/dist/esm/{index-Cj-Lzb7i.js → index-Ci4L1rzN.js} +21 -9
- package/dist/esm/{index-CCMeku7U.js → index-D9bU2pIE.js} +3 -3
- package/dist/esm/loader.js +3 -3
- package/dist/esm/package-NDMNbu5d.js +3 -0
- package/dist/esm/post-accordion_2.entry.js +6 -7
- package/dist/esm/post-autocomplete.entry.js +179 -0
- package/dist/esm/post-avatar.entry.js +6 -7
- package/dist/esm/post-back-to-top.entry.js +8 -9
- package/dist/esm/post-banner.entry.js +5 -6
- package/dist/esm/{post-breadcrumb-item_2.entry.js → post-breadcrumb-item.entry.js} +8 -23
- package/dist/esm/post-breadcrumbs.entry.js +13 -12
- package/dist/esm/{post-closebutton_13.entry.js → post-closebutton_14.entry.js} +97 -71
- package/dist/esm/post-collapsible_2.entry.js +18 -12
- package/dist/esm/post-components.js +3 -3
- package/dist/esm/post-date-picker.entry.js +12 -13
- package/dist/esm/post-footer.entry.js +8 -9
- package/dist/esm/post-linkarea.entry.js +3 -3
- package/dist/esm/post-listbox-option.entry.js +24 -0
- package/dist/esm/post-listbox.entry.js +149 -0
- package/dist/esm/post-login-widget.entry.js +58 -0
- package/dist/esm/post-number-input.entry.js +20 -14
- package/dist/esm/post-pagination.entry.js +10 -11
- package/dist/esm/post-popover-trigger.entry.js +5 -6
- package/dist/esm/post-popover.entry.js +7 -8
- package/dist/esm/post-rating.entry.js +5 -6
- package/dist/esm/post-stepper-item.entry.js +3 -3
- package/dist/esm/post-stepper.entry.js +6 -7
- package/dist/esm/post-tab-item.entry.js +5 -6
- package/dist/esm/post-tab-panel.entry.js +5 -6
- package/dist/esm/post-tabs.entry.js +8 -9
- package/dist/esm/post-tooltip-trigger.entry.js +7 -10
- package/dist/esm/post-tooltip.entry.js +5 -6
- package/dist/post-components/p-08F-DB-d.js +1 -0
- package/dist/post-components/p-1edd4d7c.entry.js +1 -0
- package/dist/post-components/p-319959ee.entry.js +1 -0
- package/dist/post-components/p-3364b421.entry.js +1 -0
- package/dist/post-components/p-38880c61.entry.js +1 -0
- package/dist/post-components/p-39b2b086.entry.js +1 -0
- package/dist/post-components/p-4ad6993e.entry.js +1 -0
- package/dist/post-components/p-4c021d5f.entry.js +1 -0
- package/dist/post-components/p-5c66d070.entry.js +1 -0
- package/dist/post-components/p-5f86479f.entry.js +1 -0
- package/dist/post-components/{p-fe35968d.entry.js → p-602960ff.entry.js} +1 -1
- package/dist/post-components/p-631f4bdd.entry.js +1 -0
- package/dist/post-components/p-6336ea0b.entry.js +1 -0
- package/dist/post-components/p-7ad4e293.entry.js +1 -0
- package/dist/post-components/p-82871134.entry.js +1 -0
- package/dist/post-components/p-8c91a9d8.entry.js +1 -0
- package/dist/post-components/p-9bdb92c0.entry.js +1 -0
- package/dist/post-components/p-BQ3HlJPr.js +1 -0
- package/dist/post-components/p-Ci4L1rzN.js +2 -0
- package/dist/post-components/p-D9bU2pIE.js +1 -0
- package/dist/post-components/p-DYYpZAAV.js +1 -0
- package/dist/post-components/p-NDMNbu5d.js +1 -0
- package/dist/post-components/p-cdc11592.entry.js +1 -0
- package/dist/post-components/p-df54677a.entry.js +1 -0
- package/dist/post-components/{p-46f30771.entry.js → p-e01ce660.entry.js} +1 -1
- package/dist/post-components/p-e331093d.entry.js +1 -0
- package/dist/post-components/p-e4fd234d.entry.js +1 -0
- package/dist/post-components/p-eb89eecb.entry.js +1 -0
- package/dist/post-components/p-ee03eed0.entry.js +1 -0
- package/dist/post-components/p-f1813327.entry.js +1 -0
- package/dist/post-components/p-f1bff988.entry.js +1 -0
- package/dist/post-components/p-f64c6491.entry.js +1 -0
- package/dist/post-components/p-fd10d5b9.entry.js +1 -0
- package/dist/post-components/post-components.css +6 -1
- package/dist/post-components/post-components.esm.js +1 -1
- package/dist/types/components/post-autocomplete/post-autocomplete.d.ts +34 -0
- package/dist/types/components/post-breadcrumb-item/post-breadcrumb-item.d.ts +8 -0
- package/dist/types/components/post-breadcrumbs/post-breadcrumbs.d.ts +8 -5
- package/dist/types/components/post-language-menu-item/post-language-menu-item.d.ts +5 -0
- package/dist/types/components/post-listbox/post-listbox.d.ts +37 -0
- package/dist/types/components/post-listbox-option/post-listbox-option.d.ts +13 -0
- package/dist/types/components/post-login-widget/post-login-widget.d.ts +30 -0
- package/dist/types/components/post-number-input/post-number-input.d.ts +2 -0
- package/dist/types/components/post-popovercontainer/post-popovercontainer.d.ts +2 -0
- package/dist/types/components.d.ts +240 -13
- package/dist/types/utils/breakpoints.d.ts +1 -0
- package/dist/types/utils/index.d.ts +0 -1
- package/dist/types/utils/property-checkers/index.d.ts +1 -2
- package/dist/types/utils/tests/helpers/mock-match-media.d.ts +4 -0
- package/dist/types/utils/tests/helpers/mock-stencil-constants.d.ts +0 -0
- package/hydrate/index.js +699 -1388
- package/hydrate/index.mjs +699 -1388
- package/package.json +9 -7
- package/dist/cjs/environment-BQE9Unf_.js +0 -52
- package/dist/cjs/post-env-test.cjs.entry.js +0 -15
- package/dist/collection/utils/environment.js +0 -47
- package/dist/collection/utils/tests/environment/hydrate-app-helper.js +0 -16
- package/dist/collection/utils/tests/environment/post-env-test.js +0 -9
- package/dist/components/environment.js +0 -1
- package/dist/components/post-env-test.js +0 -1
- package/dist/components/react/p-BVGcVycs.js +0 -1
- package/dist/components/react/p-Bb0ejJa3.js +0 -1
- package/dist/components/react/p-BbnDcq_W.js +0 -1
- package/dist/components/react/p-BcBg4WYn.js +0 -1
- package/dist/components/react/p-C1CrnSak.js +0 -1
- package/dist/components/react/p-C9bJM7_1.js +0 -1
- package/dist/components/react/p-CApN7QUn.js +0 -1
- package/dist/components/react/p-CGeIHu-8.js +0 -1
- package/dist/components/react/p-CVM28gRr.js +0 -1
- package/dist/components/react/p-CdMrnWjS.js +0 -1
- package/dist/components/react/p-CfXYLM9Y.js +0 -1
- package/dist/components/react/p-DH6JtVW9.js +0 -1
- package/dist/components/react/p-Dgo_BJCW.js +0 -1
- package/dist/components/react/p-Dne0jb7e.js +0 -1
- package/dist/components/react/p-FxUVQ4Tx.js +0 -1
- package/dist/components/react/p-htxkyM9X.js +0 -1
- package/dist/components/react/post-env-test.js +0 -1
- package/dist/esm/environment-CEmnRoA6.js +0 -49
- package/dist/esm/package-CApN7QUn.js +0 -3
- package/dist/esm/post-env-test.entry.js +0 -13
- package/dist/post-components/p-054c0046.entry.js +0 -1
- package/dist/post-components/p-102b69dd.entry.js +0 -1
- package/dist/post-components/p-1221cdd6.entry.js +0 -1
- package/dist/post-components/p-14ca5d65.entry.js +0 -1
- package/dist/post-components/p-38404768.entry.js +0 -1
- package/dist/post-components/p-388ac19f.entry.js +0 -1
- package/dist/post-components/p-5088354d.entry.js +0 -1
- package/dist/post-components/p-53c3195b.entry.js +0 -1
- package/dist/post-components/p-6e79a981.entry.js +0 -1
- package/dist/post-components/p-700c3e20.entry.js +0 -1
- package/dist/post-components/p-7fc1291f.entry.js +0 -1
- package/dist/post-components/p-84905b89.entry.js +0 -1
- package/dist/post-components/p-9127ee5c.entry.js +0 -1
- package/dist/post-components/p-91fbf90f.entry.js +0 -1
- package/dist/post-components/p-9e6b8aae.entry.js +0 -1
- package/dist/post-components/p-CApN7QUn.js +0 -1
- package/dist/post-components/p-CCMeku7U.js +0 -1
- package/dist/post-components/p-CEmnRoA6.js +0 -1
- package/dist/post-components/p-Cj-Lzb7i.js +0 -2
- package/dist/post-components/p-DI-h_mEL.js +0 -1
- package/dist/post-components/p-DppMBmK1.js +0 -1
- package/dist/post-components/p-Rr097A6n.js +0 -1
- package/dist/post-components/p-b7c02b48.entry.js +0 -1
- package/dist/post-components/p-bb2dc205.entry.js +0 -1
- package/dist/post-components/p-dd2d35fd.entry.js +0 -1
- package/dist/post-components/p-dde0c46e.entry.js +0 -1
- package/dist/post-components/p-e4978408.entry.js +0 -1
- package/dist/post-components/p-eb4eabe2.entry.js +0 -1
- package/dist/post-components/p-ece3d263.entry.js +0 -1
- package/dist/types/utils/environment.d.ts +0 -26
- package/dist/types/utils/tests/environment/hydrate-app-helper.d.ts +0 -5
- package/dist/types/utils/tests/environment/post-env-test.d.ts +0 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
import{proxyCustomElement as t,HTMLElement as e,h as s,Host as o,transformTag as a}from"@stencil/core/internal/client";import{v as r}from"./package.js";import{n}from"./index.browser.js";import{c as i}from"./breakpoints.js";const l=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow()}validateFor(){i(this,"for","string")}componentWillLoad(){this.validateFor(),this.panelId="panel-"+(this.host.id||n(6))}render(){return s(o,{key:"
|
|
1
|
+
import{proxyCustomElement as t,HTMLElement as e,h as s,Host as o,transformTag as a}from"@stencil/core/internal/client";import{v as r}from"./package.js";import{n}from"./index.browser.js";import{c as i}from"./index2.js";import"./breakpoints.js";const l=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow()}validateFor(){i(this,"for","string")}componentWillLoad(){this.validateFor(),this.panelId="panel-"+(this.host.id||n(6))}render(){return s(o,{key:"6feec1f002b3fadba76f8cb8f9ea76e455aa6ffe","data-version":r,id:this.panelId,role:"tabpanel",slot:"panels"},s("slot",{key:"073a78293c22557d7b628351bf1eac9882cd98b0"}))}get host(){return this}static get watchers(){return{for:[{validateFor:0}]}}static get style(){return":host{display:none}"}},[257,"post-tab-panel",{for:[513],panelId:[32]},void 0,{for:[{validateFor:0}]}]),c=l,p=function(){"undefined"!=typeof customElements&&["post-tab-panel"].forEach((t=>{"post-tab-panel"===t&&(customElements.get(a(t))||customElements.define(a(t),l))}))};export{c as PostTabPanel,p as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{proxyCustomElement as t,HTMLElement as s,createEvent as i,h as e,Host as a,transformTag as n}from"@stencil/core/internal/client";import{v as o}from"./package.js";import{f as h}from"./fade.js";import{c as r}from"./breakpoints.js";const l=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.postChange=i(this,"postChange",7),this.isLoaded=!1,this.isNavigationMode=!1,this.fullWidth=!1}get tabs(){return Array.from(this.host.querySelectorAll("post-tab-item")).filter((t=>t.closest("post-tabs")===this.host))}get panels(){return Array.from(this.host.querySelectorAll("post-tab-panel")).filter((t=>t.closest("post-tabs")===this.host))}validateLabel(){this.isNavigationMode&&r(this,"label","string")}componentWillRender(){this.detectMode()}componentDidLoad(){if(this.moveMisplacedTabs(),this.moveMisplacedPanels(),this.enableTabs(),this.setupContentObserver(),this.validateLabel(),this.isNavigationMode){const t=this.findActiveNavigationTab();t&&this.activateTab(t)}else{const t=this.activeTab||this.tabs[0]?.name;t&&this.show(t)}this.isLoaded=!0}disconnectedCallback(){this.showing&&(this.showing.cancel(),this.showing=null),this.hiding&&(this.hiding.cancel(),this.hiding=null),this.contentObserver&&this.contentObserver.disconnect()}setupContentObserver(){this.contentObserver=new MutationObserver(this.handleContentChange.bind(this)),this.contentObserver.observe(this.host,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-navigation-mode","aria-current"]})}handleContentChange(t){const s=this.shouldRedetectMode(t);this.hasAriaCurrentChanged(t)&&this.isNavigationMode&&this.updateActiveNavigationTab(),s&&this.handleModeChange()}shouldRedetectMode(t){return t.some((t=>"childList"===t.type?t.addedNodes.length>0||t.removedNodes.length>0:"attributes"===t.type&&"data-navigation-mode"===t.attributeName))}hasAriaCurrentChanged(t){return t.some((t=>"attributes"===t.type&&"aria-current"===t.attributeName))}updateActiveNavigationTab(){const t=this.findActiveNavigationTab();t&&t!==this.currentActiveTab&&this.activateTab(t)}handleModeChange(){const t=this.isNavigationMode;this.detectMode(),t!==this.isNavigationMode&&(this.enableTabs(),this.initializeActiveTab())}initializeActiveTab(){if(this.isNavigationMode){const t=this.findActiveNavigationTab();t&&this.activateTab(t)}else{const t=this.activeTab||this.tabs[0]?.name;t&&this.show(t)}}detectMode(){const t=this.tabs.some((t=>
|
|
1
|
+
import{proxyCustomElement as t,HTMLElement as s,createEvent as i,h as e,Host as a,transformTag as n}from"@stencil/core/internal/client";import{v as o}from"./package.js";import{f as h}from"./fade.js";import{c as r}from"./index2.js";import"./breakpoints.js";const l=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.postChange=i(this,"postChange",7),this.isLoaded=!1,this.isNavigationMode=!1,this.fullWidth=!1}get tabs(){return Array.from(this.host.querySelectorAll("post-tab-item")).filter((t=>t.closest("post-tabs")===this.host))}get panels(){return Array.from(this.host.querySelectorAll("post-tab-panel")).filter((t=>t.closest("post-tabs")===this.host))}validateLabel(){this.isNavigationMode&&r(this,"label","string")}componentWillRender(){this.detectMode()}componentDidLoad(){if(this.moveMisplacedTabs(),this.moveMisplacedPanels(),this.enableTabs(),this.setupContentObserver(),this.validateLabel(),this.isNavigationMode){const t=this.findActiveNavigationTab();t&&this.activateTab(t)}else{const t=this.activeTab||this.tabs[0]?.name;t&&this.show(t)}this.isLoaded=!0}disconnectedCallback(){this.showing&&(this.showing.cancel(),this.showing=null),this.hiding&&(this.hiding.cancel(),this.hiding=null),this.contentObserver&&this.contentObserver.disconnect()}setupContentObserver(){this.contentObserver=new MutationObserver(this.handleContentChange.bind(this)),this.contentObserver.observe(this.host,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-navigation-mode","aria-current"]})}handleContentChange(t){const s=this.shouldRedetectMode(t);this.hasAriaCurrentChanged(t)&&this.isNavigationMode&&this.updateActiveNavigationTab(),s&&this.handleModeChange()}shouldRedetectMode(t){return t.some((t=>"childList"===t.type?t.addedNodes.length>0||t.removedNodes.length>0:"attributes"===t.type&&"data-navigation-mode"===t.attributeName))}hasAriaCurrentChanged(t){return t.some((t=>"attributes"===t.type&&"aria-current"===t.attributeName))}updateActiveNavigationTab(){const t=this.findActiveNavigationTab();t&&t!==this.currentActiveTab&&this.activateTab(t)}handleModeChange(){const t=this.isNavigationMode;this.detectMode(),t!==this.isNavigationMode&&(this.enableTabs(),this.initializeActiveTab())}initializeActiveTab(){if(this.isNavigationMode){const t=this.findActiveNavigationTab();t&&this.activateTab(t)}else{const t=this.activeTab||this.tabs[0]?.name;t&&this.show(t)}}detectMode(){const t=this.tabs.some((t=>null!==t.querySelector("a")||"true"===t.dataset.navigationMode));if(t&&this.panels.length>0)throw Error("PostTabs: Mixed mode detected. Cannot use both navigation mode (anchor elements) and panel mode (post-tab-panel elements) at the same time.");this.isNavigationMode=t}findActiveNavigationTab(){return this.tabs.find((t=>null!==t.querySelector('a[aria-current="page"]')))||null}async show(t){if(t===this.currentActiveTab?.name)return;const s=this.currentActiveTab,i=this.host.querySelector(`post-tab-item[name=${t}]`);this.activateTab(i),this.showing&&(this.showing.finish(),this.showing=null),!s||this.showing||this.hiding||this.hidePanel(s.name),this.hiding&&await this.hiding.finished,this.showSelectedPanel(),this.showing&&await this.showing.finished,this.isLoaded&&this.postChange.emit(this.currentActiveTab.name)}moveMisplacedTabs(){this.tabs&&this.tabs.forEach((t=>{t.getAttribute("slot")&&t.removeAttribute("slot")}))}moveMisplacedPanels(){this.panels&&this.panels.forEach((t=>{"panels"!==t.getAttribute("slot")&&t.setAttribute("slot","panels")}))}enableTabs(){this.tabs&&(this.tabs.forEach((async t=>{if(await function(t){return"function"==typeof t.componentOnReady?t.componentOnReady():new Promise((s=>function(t){return"function"==typeof requestAnimationFrame?requestAnimationFrame(t):setTimeout(t)}((()=>{s(t)}))))}(t),this.isNavigationMode)return;if(t.getAttribute("aria-controls"))return;const s=this.getPanel(t.name);s&&(t.setAttribute("aria-controls",s.id),s.setAttribute("aria-labelledby",t.id)),t.addEventListener("click",(()=>{this.show(t.name)})),t.addEventListener("keydown",(s=>{"Enter"!==s.key&&" "!==s.key||(s.preventDefault(),this.show(t.name))})),t.addEventListener("keydown",(s=>{"ArrowRight"!==s.key&&"ArrowLeft"!==s.key||this.navigateTabs(t,s.key)}))})),this.currentActiveTab&&!this.currentActiveTab.isConnected&&this.show(this.tabs[0]?.name))}activateTab(t){this.currentActiveTab&&(this.currentActiveTab.classList.remove("active"),this.isNavigationMode||(this.currentActiveTab.setAttribute("aria-selected","false"),this.currentActiveTab.setAttribute("tabindex","-1"))),t.classList.add("active"),this.isNavigationMode||(t.setAttribute("aria-selected","true"),t.setAttribute("tabindex","0")),this.currentActiveTab=t}hidePanel(t){const s=this.getPanel(t);s&&(this.hiding=h(s,"out"),this.hiding.onfinish=()=>{s.style.display="none",this.hiding=null})}showSelectedPanel(){const t=this.getPanel(this.currentActiveTab.name);t&&(t.style.display="block",this.isLoaded&&(this.showing=h(t,"in"),this.showing.onfinish=()=>{this.showing=null}))}getPanel(t){return this.host.querySelector(`post-tab-panel[for=${t}]`)}navigateTabs(t,s){const i=Array.from(this.tabs).indexOf(t);let e;e="ArrowRight"===s?this.tabs[i+1]||this.tabs[0]:this.tabs[i-1]||this.tabs.at(-1),e&&(e.focus(),this.show(e.name))}render(){return e(a,{key:"edb1e06b1b1cdd23db32e42ff77dbc64a44905f0","data-version":o},e("div",{key:"d86eb9bb592aff23c38c92b12dfd72623d67f194",class:"tabs-wrapper",part:"post-tabs"},e(this.isNavigationMode?"nav":"div",{key:"6646284be80e647c96065b3c791f34c4b64627f3",class:"tabs",role:this.isNavigationMode?void 0:"tablist","aria-label":this.isNavigationMode?this.label:void 0},e("slot",{key:"c71ddf4391144b7cb71671e8f564e723c408e723",onSlotchange:()=>{this.moveMisplacedTabs(),this.enableTabs()}}))),!this.isNavigationMode&&e("div",{key:"625d5b7d8ab2e8cfacce0c2ac6fa94d6f6fc2953",class:"tab-content",part:"post-tabs-content"},e("slot",{key:"1ddaf37e585d3e9fbb9722e09829956e28dc7fd6",name:"panels",onSlotchange:()=>this.moveMisplacedPanels()})))}get host(){return this}static get watchers(){return{label:[{validateLabel:0}]}}static get style(){return'.tabs-wrapper{position:relative;padding-top:1rem;border:0;background-color:rgba(0,0,0,.02)}.tabs-wrapper::after{content:"";position:absolute;bottom:0;width:100%;height:1px;background-color:#ccc}.tabs-wrapper .tabs{background-color:rgba(0,0,0,0) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.tabs-wrapper::after{background-color:ButtonBorder}}.tabs{display:flex;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;white-space:nowrap;margin-block:0;padding-inline-start:0;list-style:none}.tabs::after{content:"";display:block;flex:1 0 auto;width:1rem}.tab-content{padding-top:1rem}:host{display:block}:host([full-width=true]) .tabs-wrapper{margin-inline:calc(-1*var(--post-container-offset))}:host([full-width=true]) .tabs-wrapper .tabs{padding-inline:var(--post-container-offset)}'}},[257,"post-tabs",{activeTab:[1,"active-tab"],fullWidth:[516,"full-width"],label:[513],isNavigationMode:[32],show:[64]},void 0,{label:[{validateLabel:0}]}]),c=l,d=function(){"undefined"!=typeof customElements&&["post-tabs"].forEach((t=>{"post-tabs"===t&&(customElements.get(n(t))||customElements.define(n(t),l))}))};export{c as PostTabs,d as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{proxyCustomElement as t,HTMLElement as e,h as o,Host as s,transformTag as i}from"@stencil/core/internal/client";import{v as r}from"./package.js";const n=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.toggled=!1,this.handleClick=()=>{this.toggled=!this.toggled},this.handleKeydown=t=>{"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),this.host.click())}}componentWillLoad(){this.host.addEventListener("click",(()=>this.handleClick()),{capture:!0}),this.host.addEventListener("keydown",(t=>this.handleKeydown(t)),{capture:!0})}render(){return o(s,{key:"
|
|
1
|
+
import{proxyCustomElement as t,HTMLElement as e,h as o,Host as s,transformTag as i}from"@stencil/core/internal/client";import{v as r}from"./package.js";const n=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.toggled=!1,this.handleClick=()=>{this.toggled=!this.toggled},this.handleKeydown=t=>{"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),this.host.click())}}componentWillLoad(){this.host.addEventListener("click",(()=>this.handleClick()),{capture:!0}),this.host.addEventListener("keydown",(t=>this.handleKeydown(t)),{capture:!0})}render(){return o(s,{key:"828f375bfd28dd8f46c2c233cef90abe6c27c488","data-version":r,role:"button",tabindex:"0","aria-pressed":this.toggled.toString()},o("slot",{key:"35325c8481638cf30593cda05a67ee74b38bb40c"}))}get host(){return this}static get style(){return":host{cursor:pointer;outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}:host(:focus-visible){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host(:focus-visible){outline-color:Highlight !important}}:host([aria-pressed=true]) ::slotted([data-showwhen=untoggled]){display:none}:host([aria-pressed=false]) ::slotted([data-showwhen=toggled]){display:none}"}},[257,"post-togglebutton",{toggled:[1028]}]);function a(){"undefined"!=typeof customElements&&["post-togglebutton"].forEach((t=>{"post-togglebutton"===t&&(customElements.get(i(t))||customElements.define(i(t),n))}))}export{n as P,a as d}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Build as t,proxyCustomElement as s,HTMLElement as i,h as e,Host as o,transformTag as r}from"@stencil/core/internal/client";import{g as n}from"./index2.js";import"./breakpoints.js";import{v as h}from"./package.js";import{i as a}from"./focusable.js";const l=["pointerenter","pointerleave","focusin","focusout","long-press"];t.isBrowser&&(async()=>{await import("./long-press-event.js")})();const c=s(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.delay=0,this.trigger=null,this.delayTimeout=null,this.boundTriggerHandler=this.handleTriggerEvent.bind(this),this.boundTooltipHandler=this.handleTooltipEvent.bind(this)}validateControlFor(){n(this,"for","string")}get tooltip(){if(t.isServer)return null;const s=document.getElementById(this.for);return"post-tooltip"===s?.localName?s:null}componentDidLoad(){this.setupTrigger(),this.attachListeners(),this.attachTooltipListeners()}disconnectedCallback(){this.removeListeners(),this.removeTooltipListeners(),this.cleanupTrigger(),this.delayTimeout&&(clearTimeout(this.delayTimeout),this.delayTimeout=null)}handleSlotChange(){this.cleanupTrigger(),this.setupTrigger()}cleanupTrigger(){if(this.trigger){const t=this.trigger.getAttribute("aria-describedby")||"";if(t.includes(this.for)){const s=t.split(" ").filter((t=>t!==this.for)).join(" ");s?this.trigger.setAttribute("aria-describedby",s):this.trigger.removeAttribute("aria-describedby")}this.trigger=null}}setupTrigger(){if(this.trigger=this.host.querySelector("*"),this.trigger){a(this.trigger)||this.trigger.setAttribute("tabindex","0");const t=this.trigger.getAttribute("aria-describedby")||"";t.includes(this.for)||this.trigger.setAttribute("aria-describedby",`${t} ${this.for}`.trim())}else console.warn("No content found in the post-tooltip-trigger slot. Please insert a focusable element or content that can receive focus.")}attachListeners(){l.forEach((t=>{this.host.addEventListener(t,this.boundTriggerHandler)}))}removeListeners(){l.forEach((t=>{this.host.removeEventListener(t,this.boundTriggerHandler)}))}attachTooltipListeners(){this.tooltip&&(this.tooltip.addEventListener("pointerenter",this.boundTooltipHandler),this.tooltip.addEventListener("pointerleave",this.boundTooltipHandler))}removeTooltipListeners(){this.tooltip&&(this.tooltip.removeEventListener("pointerenter",this.boundTooltipHandler),this.tooltip.removeEventListener("pointerleave",this.boundTooltipHandler))}handleTriggerEvent(t){switch(t.type){case"pointerenter":case"focusin":case"long-press":this.handleEnter();break;case"pointerleave":case"focusout":this.handleLeave(t)}}handleTooltipEvent(t){switch(t.type){case"pointerenter":this.handleEnter();break;case"pointerleave":this.handleLeave(t)}}handleEnter(){this.delayTimeout&&(clearTimeout(this.delayTimeout),this.delayTimeout=null),this.interestHandler()}handleLeave(t){const s=t.relatedTarget;this.tooltip&&s&&this.tooltip.contains(s)||s===this.trigger||this.interestLostHandler()}interestHandler(){this.trigger&&(this.delay>0?this.delayTimeout=globalThis.setTimeout((()=>{this.tooltip?.show(this.trigger),this.delayTimeout=null}),this.delay):this.tooltip?.show(this.trigger))}interestLostHandler(){this.delayTimeout&&(clearTimeout(this.delayTimeout),this.delayTimeout=null),this.tooltip?.hide()}render(){return e(o,{key:"67c7165030648b676b85c94cfe8a3d260c2ff9b5","data-version":h},e("slot",{key:"84013d1f82ccd926d70026055c5a5be441aad9bf",onSlotchange:()=>this.handleSlotChange()}))}get host(){return this}static get watchers(){return{for:[{validateControlFor:0}]}}static get style(){return"post-tooltip-trigger{vertical-align:top}:host{cursor:pointer}"}},[257,"post-tooltip-trigger",{for:[513],delay:[2]},void 0,{for:[{validateControlFor:0}]}]),p=c,d=function(){"undefined"!=typeof customElements&&["post-tooltip-trigger"].forEach((t=>{"post-tooltip-trigger"===t&&(customElements.get(r(t))||customElements.define(r(t),c))}))};export{p as PostTooltipTrigger,d as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{proxyCustomElement as t,HTMLElement as
|
|
1
|
+
import{proxyCustomElement as t,HTMLElement as o,h as e,Host as s,transformTag as a}from"@stencil/core/internal/client";import{v as i}from"./package.js";import{d as n}from"./index2.js";import"./breakpoints.js";import{a as r,d as p}from"./post-popovercontainer2.js";const c=t(class extends o{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.placement="top",this.arrow=!1,this.open=!1}validatePlacement(){n(this,"placement",r)}componentWillLoad(){this.validatePlacement()}componentDidLoad(){this.host.id||console.error("No id set: <post-tooltip> must have an id, linking it to it's target element with a <post-tooltip-trigger> element.")}async show(t){this.open||await this.popoverRef.show(t)}async hide(){this.popoverRef.hide()}async toggle(t,o){this.popoverRef.toggle(t,o)}handleBeforeToggle(t){this.open=t.detail.willOpen}render(){return e(s,{key:"ad87cc5be1949a6a5490c6630b30a5d1d8c5940d","data-version":i},e("post-popovercontainer",{key:"559478c129c495fa4189566957c22ad0ba3037a4",safeSpace:"trapezoid",class:this.arrow?"has-arrow":"",role:"tooltip",arrow:this.arrow,placement:this.placement,onPostBeforeToggle:t=>this.handleBeforeToggle(t),ref:t=>this.popoverRef=t},e("slot",{key:"d72e049da6b42839e8c3b6f8f79d2c6bcd108676"})))}get host(){return this}static get watchers(){return{placement:[{validatePlacement:0}]}}static get style(){return':host{display:none}:host([open]){display:contents}post-popovercontainer[arrow]::after{position:absolute;content:"";inset:-13px;z-index:-1}post-popovercontainer::part(post-popovercontainer-content){color:var(--post-current-fg);background-color:var(--post-current-bg);padding:var(--post-core-dimension-4) var(--post-core-dimension-8);max-width:var(--post-tooltip-max-width, 280px);width:inherit;min-height:32px;word-wrap:break-word;white-space:normal}'}},[257,"post-tooltip",{placement:[1],arrow:[4],open:[1540],show:[64],hide:[64],toggle:[64]},void 0,{placement:[{validatePlacement:0}]}]),l=c,d=function(){"undefined"!=typeof customElements&&["post-tooltip","post-popovercontainer"].forEach((t=>{switch(t){case"post-tooltip":customElements.get(a(t))||customElements.define(a(t),c);break;case"post-popovercontainer":customElements.get(a(t))||p()}}))};export{l as PostTooltip,d as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const t=":where(post-accordion,post-accordion-item,post-avatar,post-back-to-top,post-banner,post-breadcrumb-item,post-breadcrumbs,post-closebutton,post-collapsible,post-collapsible-trigger,post-date-picker,post-footer,post-header,post-icon,post-language-menu,post-language-menu-item,post-linkarea,post-logo,post-mainnavigation,post-megadropdown,post-megadropdown-trigger,post-menu,post-menu-item,post-menu-trigger,post-number-input,post-pagination,post-popover,post-popover-trigger,post-popovercontainer,post-rating,post-stepper,post-stepper-item,post-tab-item,post-tab-panel,post-tabs,post-togglebutton,post-tooltip,post-tooltip-trigger):not(:defined):not(.hydrated,[data-hydrated]){visibility:hidden}@media (scripting: none){:where(post-accordion,post-accordion-item,post-avatar,post-back-to-top,post-banner,post-breadcrumb-item,post-breadcrumbs,post-closebutton,post-collapsible,post-collapsible-trigger,post-date-picker,post-footer,post-header,post-icon,post-language-menu,post-language-menu-item,post-linkarea,post-logo,post-mainnavigation,post-megadropdown,post-megadropdown-trigger,post-menu,post-menu-item,post-menu-trigger,post-number-input,post-pagination,post-popover,post-popover-trigger,post-popovercontainer,post-rating,post-stepper,post-stepper-item,post-tab-item,post-tab-panel,post-tabs,post-togglebutton,post-tooltip,post-tooltip-trigger):not(:defined):not(.hydrated,[data-hydrated]){visibility:visible}}post-accordion:not([multiple]):not(:has([collapsed]))>post-accordion-item~post-accordion-item{--post-collapsible-initial-height:0;--post-collapsible-initial-overflow:hidden;--post-accordion-icon-initial-transform:rotate(-180deg)}post-number-input input[type=number]{appearance:textfield;border-radius:0;border-inline:unset}post-number-input input[type=number]::-webkit-inner-spin-button,post-number-input input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}";var e,n,s,o,i,r,l,c,a,u,f,h,p,d,v,b,g,m=Object.create,$=Object.defineProperty,w=Object.getOwnPropertyDescriptor,y=Object.getOwnPropertyNames,O=Object.getPrototypeOf,S=Object.prototype.hasOwnProperty,j=t=>{throw TypeError(t)},k=(t,e)=>function(){return e||(0,t[y(t)[0]])((e={exports:{}}).exports,e),e.exports},x=(t,e,n)=>e.has(t)||j("Cannot "+n),M=(t,e,n)=>(x(t,e,"read from private field"),n?n.call(t):e.get(t)),E=(t,e,n)=>e.has(t)?j("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),N=(t,e,n)=>(x(t,e,"write to private field"),e.set(t,n),n),R=(t,e,n)=>(x(t,e,"access private method"),n),A=k({"node_modules/balanced-match/index.js"(t,e){function n(t,e,n){t instanceof RegExp&&(t=s(t,n)),e instanceof RegExp&&(e=s(e,n));var i=o(t,e,n);return i&&{start:i[0],end:i[1],pre:n.slice(0,i[0]),body:n.slice(i[0]+t.length,i[1]),post:n.slice(i[1]+e.length)}}function s(t,e){var n=e.match(t);return n?n[0]:null}function o(t,e,n){var s,o,i,r,l,c=n.indexOf(t),a=n.indexOf(e,c+1),u=c;if(c>=0&&a>0){if(t===e)return[c,a];for(s=[],i=n.length;u>=0&&!l;)u==c?(s.push(u),c=n.indexOf(t,u+1)):1==s.length?l=[s.pop(),a]:((o=s.pop())<i&&(i=o,r=a),a=n.indexOf(e,u+1)),u=c<a&&c>=0?c:a;s.length&&(l=[i,r])}return l}e.exports=n,n.range=o}}),P=k({"node_modules/brace-expansion/index.js"(t,e){var n=A();e.exports=function(t){return t?("{}"===t.substr(0,2)&&(t="\\{\\}"+t.substr(2)),v(function(t){return t.split("\\\\").join(s).split("\\{").join(o).split("\\}").join(i).split("\\,").join(r).split("\\.").join(l)}(t),!0).map(a)):[]};var s="\0SLASH"+Math.random()+"\0",o="\0OPEN"+Math.random()+"\0",i="\0CLOSE"+Math.random()+"\0",r="\0COMMA"+Math.random()+"\0",l="\0PERIOD"+Math.random()+"\0";function c(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function a(t){return t.split(s).join("\\").split(o).join("{").split(i).join("}").split(r).join(",").split(l).join(".")}function u(t){if(!t)return[""];var e=[],s=n("{","}",t);if(!s)return t.split(",");var o=s.body,i=s.post,r=s.pre.split(",");r[r.length-1]+="{"+o+"}";var l=u(i);return i.length&&(r[r.length-1]+=l.shift(),r.push.apply(r,l)),e.push.apply(e,r),e}function f(t){return"{"+t+"}"}function h(t){return/^-?0\d/.test(t)}function p(t,e){return t<=e}function d(t,e){return t>=e}function v(t,e){var s=[],o=n("{","}",t);if(!o)return[t];var r=o.pre,l=o.post.length?v(o.post,!1):[""];if(/\$$/.test(o.pre))for(var a=0;a<l.length;a++)s.push(L=r+"{"+o.body+"}"+l[a]);else{var b,g,m=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(o.body),$=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(o.body),w=m||$,y=o.body.indexOf(",")>=0;if(!w&&!y)return o.post.match(/,(?!,).*\}/)?v(t=o.pre+"{"+o.body+i+o.post):[t];if(w)b=o.body.split(/\.\./);else if(1===(b=u(o.body)).length&&1===(b=v(b[0],!1).map(f)).length)return l.map((function(t){return o.pre+b[0]+t}));if(w){var O=c(b[0]),S=c(b[1]),j=Math.max(b[0].length,b[1].length),k=3==b.length?Math.abs(c(b[2])):1,x=p;S<O&&(k*=-1,x=d);var M=b.some(h);g=[];for(var E=O;x(E,S);E+=k){var N;if($)"\\"===(N=String.fromCharCode(E))&&(N="");else if(N=E+"",M){var R=j-N.length;if(R>0){var A=Array(R+1).join("0");N=E<0?"-"+A+N.slice(1):A+N}}g.push(N)}}else{g=[];for(var P=0;P<b.length;P++)g.push.apply(g,v(b[P],!1))}for(P=0;P<g.length;P++)for(a=0;a<l.length;a++){var L=r+g[P]+l[a];(!e||w||L)&&s.push(L)}}return s}}}),L=(t=>(t.Undefined="undefined",t.Null="null",t.String="string",t.Number="number",t.SpecialNumber="number",t.Boolean="boolean",t.BigInt="bigint",t))(L||{}),W=(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))(W||{}),C="type",I="value",z="serialized:",_=(t,e)=>{var n;Object.entries(null!=(n=e.o.t)?n:{}).map((([n,[s]])=>{if(31&s||32&s){const s=t[n],o=function(t,e){for(;t;){const n=Object.getOwnPropertyDescriptor(t,e);if(null==n?void 0:n.get)return n;t=Object.getPrototypeOf(t)}}(Object.getPrototypeOf(t),n)||Object.getOwnPropertyDescriptor(t,n);o&&Object.defineProperty(t,n,{get(){return o.get.call(this)},set(t){o.set.call(this,t)},configurable:!0,enumerable:!0}),t[n]=e.i.has(n)?e.i.get(n):s}}))},T=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},F=(t,e)=>e in t,B=(t,e)=>(0,console.error)(t,e),D=new Map,U="s-id",V="sty-id",G="c-id",Z="http://www.w3.org/1999/xlink",H="undefined"!=typeof window?window:{},q=H.HTMLElement||class{},J={l:0,u:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,s)=>t.addEventListener(e,n,s),rel:(t,e,n,s)=>t.removeEventListener(e,n,s),ce:(t,e)=>new CustomEvent(t,e)},Y=(()=>{try{return!!H.document.adoptedStyleSheets&&(new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync)}catch(t){}return!1})(),K=!!Y&&(()=>!!H.document&&Object.getOwnPropertyDescriptor(H.document.adoptedStyleSheets,"length").writable)(),Q=!1,X=[],tt=[],et=(t,e)=>n=>{t.push(n),Q||(Q=!0,e&&4&J.l?ot(st):J.raf(st))},nt=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){B(t)}t.length=0},st=()=>{nt(X),nt(tt),(Q=X.length>0)&&J.raf(st)},ot=t=>Promise.resolve(void 0).then(t),it=et(tt,!0),rt=t=>{const e=new URL(t,J.u);return e.origin!==H.location.origin?e.href:e.pathname},lt=t=>J.u=t,ct=t=>"object"==(t=typeof t)||"function"===t,at=((t,e,n)=>(n=null!=t?m(O(t)):{},((t,e,n,s)=>{if(e&&"object"==typeof e||"function"==typeof e)for(let n of y(e))S.call(t,n)||undefined===n||$(t,n,{get:()=>e[n],enumerable:!(s=w(e,n))||s.enumerable});return t})($(n,"default",{value:t,enumerable:!0}),t)))(P()),ut=t=>{if("string"!=typeof t)throw new TypeError("invalid pattern");if(t.length>65536)throw new TypeError("pattern is too long")},ft={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},ht=t=>t.replace(/[[\]\\-]/g,"\\$&"),pt=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),dt=t=>t.join(""),vt=(t,e)=>{const n=e;if("["!==t.charAt(n))throw Error("not in a brace expression");const s=[],o=[];let i=n+1,r=!1,l=!1,c=!1,a=!1,u=n,f="";t:for(;i<t.length;){const e=t.charAt(i);if("!"!==e&&"^"!==e||i!==n+1){if("]"===e&&r&&!c){u=i+1;break}if(r=!0,"\\"!==e||c){if("["===e&&!c)for(const[e,[r,c,a]]of Object.entries(ft))if(t.startsWith(e,i)){if(f)return["$.",!1,t.length-n,!0];i+=e.length,a?o.push(r):s.push(r),l=l||c;continue t}c=!1,f?(e>f?s.push(ht(f)+"-"+ht(e)):e===f&&s.push(ht(e)),f="",i++):t.startsWith("-]",i+1)?(s.push(ht(e+"-")),i+=2):t.startsWith("-",i+1)?(f=e,i+=2):(s.push(ht(e)),i++)}else c=!0,i++}else a=!0,i++}if(u<i)return["",!1,0,!1];if(!s.length&&!o.length)return["$.",!1,t.length-n,!0];if(0===o.length&&1===s.length&&/^\\?.$/.test(s[0])&&!a){const t=2===s[0].length?s[0].slice(-1):s[0];return[pt(t),!1,u-n,!1]}const h="["+(a?"^":"")+dt(s)+"]",p="["+(a?"":"^")+dt(o)+"]";return[s.length&&o.length?"("+h+"|"+p+")":s.length?h:p,l,u-n,!0]},bt=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/\[([^\/\\])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1"),gt=new Set(["!","?","+","*","@"]),mt=t=>gt.has(t),$t="(?!\\.)",wt=new Set(["[","."]),yt=new Set(["..","."]),Ot=new Set("().*{}+?[]^$\\!"),St=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),jt="[^/]",kt=jt+"*?",xt=jt+"+?",Mt=class t{constructor(t,p,d={}){E(this,h),((t,e,n)=>{((t,e,n)=>{e in t?$(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n})(t,e+"",n)})(this,"type"),E(this,e),E(this,n),E(this,s,!1),E(this,o,[]),E(this,i),E(this,r),E(this,l),E(this,c,!1),E(this,a),E(this,u),E(this,f,!1),this.type=t,t&&N(this,n,!0),N(this,i,p),N(this,e,M(this,i)?M(M(this,i),e):this),N(this,a,M(this,e)===this?d:M(M(this,e),a)),N(this,l,M(this,e)===this?[]:M(M(this,e),l)),"!"!==t||M(M(this,e),c)||M(this,l).push(this),N(this,r,M(this,i)?M(M(this,i),o).length:0)}get hasMagic(){if(void 0!==M(this,n))return M(this,n);for(const t of M(this,o))if("string"!=typeof t&&(t.type||t.hasMagic))return N(this,n,!0);return M(this,n)}toString(){return void 0!==M(this,u)?M(this,u):N(this,u,this.type?this.type+"("+M(this,o).map((t=>t+"")).join("|")+")":M(this,o).map((t=>t+"")).join(""))}push(...e){for(const n of e)if(""!==n){if("string"!=typeof n&&!(n instanceof t&&M(n,i)===this))throw Error("invalid part: "+n);M(this,o).push(n)}}toJSON(){var t;const n=null===this.type?M(this,o).slice().map((t=>"string"==typeof t?t:t.toJSON())):[this.type,...M(this,o).map((t=>t.toJSON()))];return this.isStart()&&!this.type&&n.unshift([]),this.isEnd()&&(this===M(this,e)||M(M(this,e),c)&&"!"===(null==(t=M(this,i))?void 0:t.type))&&n.push({}),n}isStart(){var n;if(M(this,e)===this)return!0;if(!(null==(n=M(this,i))?void 0:n.isStart()))return!1;if(0===M(this,r))return!0;const s=M(this,i);for(let e=0;e<M(this,r);e++){const n=M(s,o)[e];if(!(n instanceof t&&"!"===n.type))return!1}return!0}isEnd(){var t,n,s;if(M(this,e)===this)return!0;if("!"===(null==(t=M(this,i))?void 0:t.type))return!0;if(!(null==(n=M(this,i))?void 0:n.isEnd()))return!1;if(!this.type)return null==(s=M(this,i))?void 0:s.isEnd();const l=M(this,i)?M(M(this,i),o).length:0;return M(this,r)===l-1}copyIn(t){this.push("string"==typeof t?t:t.clone(this))}clone(e){const n=new t(this.type,e);for(const t of M(this,o))n.copyIn(t);return n}static fromGlob(e,n={}){var s;const o=new t(null,void 0,n);return R(s=t,d,v).call(s,e,o,0,n),o}toMMPattern(){if(this!==M(this,e))return M(this,e).toMMPattern();const t=""+this,[s,o,i,r]=this.toRegExpSource();if(!(i||M(this,n)||M(this,a).nocase&&!M(this,a).nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()))return o;const l=(M(this,a).nocase?"i":"")+(r?"u":"");return Object.assign(RegExp(`^${s}$`,l),{_src:s,_glob:t})}get options(){return M(this,a)}toRegExpSource(r){var l;const u=null!=r?r:!!M(this,a).dot;if(M(this,e)===this&&R(this,h,p).call(this),!this.type){const a=this.isStart()&&this.isEnd(),f=M(this,o).map((e=>{var o;const[i,l,c,u]="string"==typeof e?R(o=t,d,g).call(o,e,M(this,n),a):e.toRegExpSource(r);return N(this,n,M(this,n)||c),N(this,s,M(this,s)||u),i})).join("");let h="";if(this.isStart()&&"string"==typeof M(this,o)[0]&&(1!==M(this,o).length||!yt.has(M(this,o)[0]))){const t=wt,e=u&&t.has(f.charAt(0))||f.startsWith("\\.")&&t.has(f.charAt(2))||f.startsWith("\\.\\.")&&t.has(f.charAt(4)),n=!u&&!r&&t.has(f.charAt(0));h=e?"(?!(?:^|/)\\.\\.?(?:$|/))":n?$t:""}let p="";return this.isEnd()&&M(M(this,e),c)&&"!"===(null==(l=M(this,i))?void 0:l.type)&&(p="(?:$|\\/)"),[h+f+p,bt(f),N(this,n,!!M(this,n)),M(this,s)]}const v="*"===this.type||"+"===this.type,m="!"===this.type?"(?:(?!(?:":"(?:";let $=R(this,h,b).call(this,u);if(this.isStart()&&this.isEnd()&&!$&&"!"!==this.type){const t=""+this;return N(this,o,[t]),this.type=null,N(this,n,void 0),[t,bt(""+this),!1,!1]}let w=!v||r||u?"":R(this,h,b).call(this,!0);w===$&&(w=""),w&&($=`(?:${$})(?:${w})*?`);let y="";return y="!"===this.type&&M(this,f)?(this.isStart()&&!u?$t:"")+xt:m+$+("!"===this.type?"))"+(!this.isStart()||u||r?"":$t)+kt+")":"@"===this.type?")":"?"===this.type?")?":"+"===this.type&&w?")":"*"===this.type&&w?")?":")"+this.type),[y,bt($),N(this,n,!!M(this,n)),M(this,s)]}};e=new WeakMap,n=new WeakMap,s=new WeakMap,o=new WeakMap,i=new WeakMap,r=new WeakMap,l=new WeakMap,c=new WeakMap,a=new WeakMap,u=new WeakMap,f=new WeakMap,h=new WeakSet,p=function(){if(this!==M(this,e))throw Error("should only call on root");if(M(this,c))return this;let t;for(N(this,c,!0);t=M(this,l).pop();){if("!"!==t.type)continue;let e=t,n=M(e,i);for(;n;){for(let s=M(e,r)+1;!n.type&&s<M(n,o).length;s++)for(const e of M(t,o)){if("string"==typeof e)throw Error("string part in extglob AST??");e.copyIn(M(n,o)[s])}e=n,n=M(e,i)}}return this},d=new WeakSet,v=function(t,e,s,i){var r,l;let c=!1,a=!1,u=-1,h=!1;if(null===e.type){let n=s,o="";for(;n<t.length;){const s=t.charAt(n++);if(c||"\\"===s)c=!c,o+=s;else if(a)n===u+1?"^"!==s&&"!"!==s||(h=!0):"]"!==s||n===u+2&&h||(a=!1),o+=s;else if("["!==s)if(i.noext||!mt(s)||"("!==t.charAt(n))o+=s;else{e.push(o),o="";const l=new Mt(s,e);n=R(r=Mt,d,v).call(r,t,l,n,i),e.push(l)}else a=!0,u=n,h=!1,o+=s}return e.push(o),n}let p=s+1,b=new Mt(null,e);const g=[];let m="";for(;p<t.length;){const n=t.charAt(p++);if(c||"\\"===n)c=!c,m+=n;else if(a)p===u+1?"^"!==n&&"!"!==n||(h=!0):"]"!==n||p===u+2&&h||(a=!1),m+=n;else if("["!==n)if(mt(n)&&"("===t.charAt(p)){b.push(m),m="";const e=new Mt(n,b);b.push(e),p=R(l=Mt,d,v).call(l,t,e,p,i)}else if("|"!==n){if(")"===n)return""===m&&0===M(e,o).length&&N(e,f,!0),b.push(m),m="",e.push(...g,b),p;m+=n}else b.push(m),m="",g.push(b),b=new Mt(null,e);else a=!0,u=p,h=!1,m+=n}return e.type=null,N(e,n,void 0),N(e,o,[t.substring(s-1)]),p},b=function(t){return M(this,o).map((e=>{if("string"==typeof e)throw Error("string type in extglob ast??");const[n,o,i,r]=e.toRegExpSource(t);return N(this,s,M(this,s)||r),n})).filter((t=>!(this.isStart()&&this.isEnd()&&!t))).join("|")},g=function(t,e,n=!1){let s=!1,o="",i=!1;for(let r=0;r<t.length;r++){const l=t.charAt(r);if(s)s=!1,o+=(Ot.has(l)?"\\":"")+l;else if("\\"!==l){if("["===l){const[n,s,l,c]=vt(t,r);if(l){o+=n,i=i||s,r+=l-1,e=e||c;continue}}"*"!==l?"?"!==l?o+=St(l):(o+=jt,e=!0):(o+=n&&"*"===t?xt:kt,e=!0)}else r===t.length-1?o+="\\\\":s=!0}return[o,bt(t),!!e,i]},E(Mt,d);var Et=Mt,Nt=(t,e,n={})=>(ut(e),!(!n.nocomment&&"#"===e.charAt(0))&&new ee(e,n).match(t)),Rt=/^\*+([^+@!?\*\[\(]*)$/,At=t=>e=>!e.startsWith(".")&&e.endsWith(t),Pt=t=>e=>e.endsWith(t),Lt=t=>(t=t.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(t)),Wt=t=>(t=t.toLowerCase(),e=>e.toLowerCase().endsWith(t)),Ct=/^\*+\.\*+$/,It=t=>!t.startsWith(".")&&t.includes("."),zt=t=>"."!==t&&".."!==t&&t.includes("."),_t=/^\.\*+$/,Tt=t=>"."!==t&&".."!==t&&t.startsWith("."),Ft=/^\*+$/,Bt=t=>0!==t.length&&!t.startsWith("."),Dt=t=>0!==t.length&&"."!==t&&".."!==t,Ut=/^\?+([^+@!?\*\[\(]*)?$/,Vt=([t,e=""])=>{const n=qt([t]);return e?(e=e.toLowerCase(),t=>n(t)&&t.toLowerCase().endsWith(e)):n},Gt=([t,e=""])=>{const n=Jt([t]);return e?(e=e.toLowerCase(),t=>n(t)&&t.toLowerCase().endsWith(e)):n},Zt=([t,e=""])=>{const n=Jt([t]);return e?t=>n(t)&&t.endsWith(e):n},Ht=([t,e=""])=>{const n=qt([t]);return e?t=>n(t)&&t.endsWith(e):n},qt=([t])=>{const e=t.length;return t=>t.length===e&&!t.startsWith(".")},Jt=([t])=>{const e=t.length;return t=>t.length===e&&"."!==t&&".."!==t},Yt="object"==typeof process&&process?"object"==typeof process.env&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix";Nt.sep="win32"===Yt?"\\":"/";var Kt=Symbol("globstar **");Nt.GLOBSTAR=Kt,Nt.filter=(t,e={})=>n=>Nt(n,t,e);var Qt=(t,e={})=>Object.assign({},t,e);Nt.defaults=t=>{if(!t||"object"!=typeof t||!Object.keys(t).length)return Nt;const e=Nt;return Object.assign(((n,s,o={})=>e(n,s,Qt(t,o))),{Minimatch:class extends e.Minimatch{constructor(e,n={}){super(e,Qt(t,n))}static defaults(n){return e.defaults(Qt(t,n)).Minimatch}},AST:class extends e.AST{constructor(e,n,s={}){super(e,n,Qt(t,s))}static fromGlob(n,s={}){return e.AST.fromGlob(n,Qt(t,s))}},unescape:(n,s={})=>e.unescape(n,Qt(t,s)),escape:(n,s={})=>e.escape(n,Qt(t,s)),filter:(n,s={})=>e.filter(n,Qt(t,s)),defaults:n=>e.defaults(Qt(t,n)),makeRe:(n,s={})=>e.makeRe(n,Qt(t,s)),braceExpand:(n,s={})=>e.braceExpand(n,Qt(t,s)),match:(n,s,o={})=>e.match(n,s,Qt(t,o)),sep:e.sep,GLOBSTAR:Kt})};var Xt=(t,e={})=>(ut(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:(0,at.default)(t));Nt.braceExpand=Xt,Nt.makeRe=(t,e={})=>new ee(t,e).makeRe(),Nt.match=(t,e,n={})=>{const s=new ee(e,n);return t=t.filter((t=>s.match(t))),s.options.nonull&&!t.length&&t.push(e),t};var te=/[?*]|[+@!]\(.*?\)|\[|\]/,ee=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(t,e={}){ut(t),this.options=e=e||{},this.pattern=t,this.platform=e.platform||Yt,this.isWindows="win32"===this.platform,this.windowsPathsNoEscape=!!e.windowsPathsNoEscape||!1===e.allowWindowsEscape,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!e.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!e.nonegate,this.comment=!1,this.empty=!1,this.partial=!!e.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=void 0!==e.windowsNoMagicRoot?e.windowsNoMagicRoot:!(!this.isWindows||!this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(const t of this.set)for(const e of t)if("string"!=typeof e)return!0;return!1}debug(...t){}make(){const t=this.pattern,e=this.options;if(!e.nocomment&&"#"===t.charAt(0))return void(this.comment=!0);if(!t)return void(this.empty=!0);this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],e.debug&&(this.debug=(...t)=>console.error(...t)),this.debug(this.pattern,this.globSet);const n=this.globSet.map((t=>this.slashSplit(t)));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);let s=this.globParts.map((t=>{if(this.isWindows&&this.windowsNoMagicRoot){const e=!(""!==t[0]||""!==t[1]||"?"!==t[2]&&te.test(t[2])||te.test(t[3])),n=/^[a-z]:/i.test(t[0]);if(e)return[...t.slice(0,4),...t.slice(4).map((t=>this.parse(t)))];if(n)return[t[0],...t.slice(1).map((t=>this.parse(t)))]}return t.map((t=>this.parse(t)))}));if(this.debug(this.pattern,s),this.set=s.filter((t=>-1===t.indexOf(!1))),this.isWindows)for(let t=0;t<this.set.length;t++){const e=this.set[t];""===e[0]&&""===e[1]&&"?"===this.globParts[t][2]&&"string"==typeof e[3]&&/^[a-z]:$/i.test(e[3])&&(e[2]="?")}this.debug(this.pattern,this.set)}preprocess(t){if(this.options.noglobstar)for(let e=0;e<t.length;e++)for(let n=0;n<t[e].length;n++)"**"===t[e][n]&&(t[e][n]="*");const{optimizationLevel:e=1}=this.options;return e>=2?(t=this.firstPhasePreProcess(t),t=this.secondPhasePreProcess(t)):t=e>=1?this.levelOneOptimize(t):this.adjascentGlobstarOptimize(t),t}adjascentGlobstarOptimize(t){return t.map((t=>{let e=-1;for(;-1!==(e=t.indexOf("**",e+1));){let n=e;for(;"**"===t[n+1];)n++;n!==e&&t.splice(e,n-e)}return t}))}levelOneOptimize(t){return t.map((t=>0===(t=t.reduce(((t,e)=>{const n=t[t.length-1];return"**"===e&&"**"===n?t:".."===e&&n&&".."!==n&&"."!==n&&"**"!==n?(t.pop(),t):(t.push(e),t)}),[])).length?[""]:t))}levelTwoFileOptimize(t){Array.isArray(t)||(t=this.slashSplit(t));let e=!1;do{if(e=!1,!this.preserveMultipleSlashes){for(let n=1;n<t.length-1;n++){const s=t[n];1===n&&""===s&&""===t[0]||"."!==s&&""!==s||(e=!0,t.splice(n,1),n--)}"."!==t[0]||2!==t.length||"."!==t[1]&&""!==t[1]||(e=!0,t.pop())}let n=0;for(;-1!==(n=t.indexOf("..",n+1));){const s=t[n-1];s&&"."!==s&&".."!==s&&"**"!==s&&(e=!0,t.splice(n-1,2),n-=2)}}while(e);return 0===t.length?[""]:t}firstPhasePreProcess(t){let e=!1;do{e=!1;for(let n of t){let s=-1;for(;-1!==(s=n.indexOf("**",s+1));){let o=s;for(;"**"===n[o+1];)o++;o>s&&n.splice(s+1,o-s);const i=n[s+2],r=n[s+3];if(".."!==n[s+1])continue;if(!i||"."===i||".."===i||!r||"."===r||".."===r)continue;e=!0,n.splice(s,1);const l=n.slice(0);l[s]="**",t.push(l),s--}if(!this.preserveMultipleSlashes){for(let t=1;t<n.length-1;t++){const s=n[t];1===t&&""===s&&""===n[0]||"."!==s&&""!==s||(e=!0,n.splice(t,1),t--)}"."!==n[0]||2!==n.length||"."!==n[1]&&""!==n[1]||(e=!0,n.pop())}let o=0;for(;-1!==(o=n.indexOf("..",o+1));){const t=n[o-1];t&&"."!==t&&".."!==t&&"**"!==t&&(e=!0,n.splice(o-1,2,...1===o&&"**"===n[o+1]?["."]:[]),0===n.length&&n.push(""),o-=2)}}}while(e);return t}secondPhasePreProcess(t){for(let e=0;e<t.length-1;e++)for(let n=e+1;n<t.length;n++){const s=this.partsMatch(t[e],t[n],!this.preserveMultipleSlashes);s&&(t[e]=s,t[n]=[])}return t.filter((t=>t.length))}partsMatch(t,e,n=!1){let s=0,o=0,i=[],r="";for(;s<t.length&&o<e.length;)if(t[s]===e[o])i.push("b"===r?e[o]:t[s]),s++,o++;else if(n&&"**"===t[s]&&e[o]===t[s+1])i.push(t[s]),s++;else if(n&&"**"===e[o]&&t[s]===e[o+1])i.push(e[o]),o++;else if("*"!==t[s]||!e[o]||!this.options.dot&&e[o].startsWith(".")||"**"===e[o]){if("*"!==e[o]||!t[s]||!this.options.dot&&t[s].startsWith(".")||"**"===t[s])return!1;if("a"===r)return!1;r="b",i.push(e[o]),s++,o++}else{if("b"===r)return!1;r="a",i.push(t[s]),s++,o++}return t.length===e.length&&i}parseNegate(){if(this.nonegate)return;const t=this.pattern;let e=!1,n=0;for(let s=0;s<t.length&&"!"===t.charAt(s);s++)e=!e,n++;n&&(this.pattern=t.slice(n)),this.negate=e}matchOne(t,e,n=!1){const s=this.options;if(this.isWindows){const n="string"==typeof t[0]&&/^[a-z]:$/i.test(t[0]),s=!n&&""===t[0]&&""===t[1]&&"?"===t[2]&&/^[a-z]:$/i.test(t[3]),o="string"==typeof e[0]&&/^[a-z]:$/i.test(e[0]),i=s?3:n?0:void 0,r=!o&&""===e[0]&&""===e[1]&&"?"===e[2]&&"string"==typeof e[3]&&/^[a-z]:$/i.test(e[3])?3:o?0:void 0;if("number"==typeof i&&"number"==typeof r){const[n,s]=[t[i],e[r]];n.toLowerCase()===s.toLowerCase()&&(e[r]=n,r>i?e=e.slice(r):i>r&&(t=t.slice(i)))}}const{optimizationLevel:o=1}=this.options;o>=2&&(t=this.levelTwoFileOptimize(t)),this.debug("matchOne",this,{file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var i=0,r=0,l=t.length,c=e.length;i<l&&r<c;i++,r++){this.debug("matchOne loop");var a=e[r],u=t[i];if(this.debug(e,a,u),!1===a)return!1;if(a===Kt){this.debug("GLOBSTAR",[e,a,u]);var f=i,h=r+1;if(h===c){for(this.debug("** at the end");i<l;i++)if("."===t[i]||".."===t[i]||!s.dot&&"."===t[i].charAt(0))return!1;return!0}for(;f<l;){var p=t[f];if(this.debug("\nglobstar while",t,f,e,h,p),this.matchOne(t.slice(f),e.slice(h),n))return this.debug("globstar found match!",f,l,p),!0;if("."===p||".."===p||!s.dot&&"."===p.charAt(0)){this.debug("dot detected!",t,f,e,h);break}this.debug("globstar swallow a segment, and continue"),f++}return!(!n||(this.debug("\n>>> no match, partial?",t,f,e,h),f!==l))}let o;if("string"==typeof a?(o=u===a,this.debug("string match",a,u,o)):(o=a.test(u),this.debug("pattern match",a,u,o)),!o)return!1}if(i===l&&r===c)return!0;if(i===l)return n;if(r===c)return i===l-1&&""===t[i];throw Error("wtf?")}braceExpand(){return Xt(this.pattern,this.options)}parse(t){ut(t);const e=this.options;if("**"===t)return Kt;if(""===t)return"";let n,s=null;(n=t.match(Ft))?s=e.dot?Dt:Bt:(n=t.match(Rt))?s=(e.nocase?e.dot?Wt:Lt:e.dot?Pt:At)(n[1]):(n=t.match(Ut))?s=(e.nocase?e.dot?Gt:Vt:e.dot?Zt:Ht)(n):(n=t.match(Ct))?s=e.dot?zt:It:(n=t.match(_t))&&(s=Tt);const o=Et.fromGlob(t,this.options).toMMPattern();return s&&"object"==typeof o&&Reflect.defineProperty(o,"test",{value:s}),o}makeRe(){if(this.regexp||!1===this.regexp)return this.regexp;const t=this.set;if(!t.length)return this.regexp=!1,this.regexp;const e=this.options,n=e.noglobstar?"[^/]*?":e.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",s=new Set(e.nocase?["i"]:[]);let o=t.map((t=>{const e=t.map((t=>{if(t instanceof RegExp)for(const e of t.flags.split(""))s.add(e);return"string"==typeof t?(t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"))(t):t===Kt?Kt:t._src}));return e.forEach(((t,s)=>{const o=e[s+1],i=e[s-1];t===Kt&&i!==Kt&&(void 0===i?void 0!==o&&o!==Kt?e[s+1]="(?:\\/|"+n+"\\/)?"+o:e[s]=n:void 0===o?e[s-1]=i+"(?:\\/|"+n+")?":o!==Kt&&(e[s-1]=i+"(?:\\/|\\/"+n+"\\/)"+o,e[s+1]=Kt))})),e.filter((t=>t!==Kt)).join("/")})).join("|");const[i,r]=t.length>1?["(?:",")"]:["",""];o="^"+i+o+r+"$",this.negate&&(o="^(?!"+o+").+$");try{this.regexp=RegExp(o,[...s].join(""))}catch(t){this.regexp=!1}return this.regexp}slashSplit(t){return this.preserveMultipleSlashes?t.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(t)?["",...t.split(/\/+/)]:t.split(/\/+/)}match(t,e=this.partial){if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return""===t;if("/"===t&&e)return!0;const n=this.options;this.isWindows&&(t=t.split("\\").join("/"));const s=this.slashSplit(t);this.debug(this.pattern,"split",s);const o=this.set;this.debug(this.pattern,"set",o);let i=s[s.length-1];if(!i)for(let t=s.length-2;!i&&t>=0;t--)i=s[t];for(let t=0;t<o.length;t++){const r=o[t];let l=s;if(n.matchBase&&1===r.length&&(l=[i]),this.matchOne(l,r,e))return!!n.flipNegate||!this.negate}return!n.flipNegate&&this.negate}static defaults(t){return Nt.defaults(t).Minimatch}};Nt.AST=Et,Nt.Minimatch=ee,Nt.escape=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/[?*()[\]]/g,"[$&]"):t.replace(/[?*()[\]\\]/g,"\\$&"),Nt.unescape=bt;var ne=class t{static fromLocalValue(e){const n=e[C],s=I in e?e[I]:void 0;switch(n){case"string":case"boolean":return s;case"bigint":return BigInt(s);case"undefined":return;case"null":return null;case"number":return"NaN"===s?NaN:"-0"===s?-0:"Infinity"===s?1/0:"-Infinity"===s?-1/0:s;case"array":return s.map((e=>t.fromLocalValue(e)));case"date":return new Date(s);case"map":const e=new Map;for(const[n,o]of s){const s="object"==typeof n&&null!==n?t.fromLocalValue(n):n,i=t.fromLocalValue(o);e.set(s,i)}return e;case"object":const o={};for(const[e,n]of s)o[e]=t.fromLocalValue(n);return o;case"regexp":const{pattern:i,flags:r}=s;return RegExp(i,r);case"set":const l=new Set;for(const e of s)l.add(t.fromLocalValue(e));return l;case"symbol":return Symbol(s);default:throw Error("Unsupported type: "+n)}}static fromLocalValueArray(e){return e.map((e=>t.fromLocalValue(e)))}static isLocalValueObject(t){if("object"!=typeof t||null===t)return!1;if(!t.hasOwnProperty(C))return!1;const e=t[C];return!!Object.values({...L,...W}).includes(e)&&("null"===e||"undefined"===e||t.hasOwnProperty(I))}};((t,e)=>{for(var n in e)$(t,n,{get:e[n],enumerable:!0})})({},{err:()=>oe,map:()=>ie,ok:()=>se,unwrap:()=>le,unwrapErr:()=>ce});var se=t=>({isOk:!0,isErr:!1,value:t}),oe=t=>({isOk:!1,isErr:!0,value:t});function ie(t,e){if(t.isOk){const n=e(t.value);return n instanceof Promise?n.then((t=>se(t))):se(n)}if(t.isErr)return oe(t.value);throw"should never get here"}var re,le=t=>{if(t.isOk)return t.value;throw t.value},ce=t=>{if(t.isErr)return t.value;throw t.value};function ae(){var e;const n=this.attachShadow({mode:"open"});if(void 0===re&&(re=null!=(e=function(t){if(!Y)return;const e=new CSSStyleSheet;return e.replaceSync(t),e}(t))?e:null),re)K?n.adoptedStyleSheets.push(re):n.adoptedStyleSheets=[...n.adoptedStyleSheets,re];else if(!Y){const e=document.createElement("style");e.innerHTML=t,n.prepend(e)}}var ue=t=>{const e=ge(t,"childNodes");t.tagName&&t.tagName.includes("-")&&t["s-cr"]&&"SLOT-FB"!==t.tagName&&fe(e,t.tagName).forEach((t=>{1===t.nodeType&&"SLOT-FB"===t.tagName&&(t.hidden=!!he(t,ve(t),!1).length)}));let n=0;for(n=0;n<e.length;n++){const t=e[n];1===t.nodeType&&ge(t,"childNodes").length&&ue(t)}};function fe(t,e,n){let s,o=0,i=[];for(;o<t.length;o++){if(s=t[o],s["s-sr"]&&(!e||s["s-hn"]===e)&&(void 0===n||ve(s)===n)&&(i.push(s),void 0!==n))return i;i=[...i,...fe(s.childNodes,e,n)]}return i}var he=(t,e,n=!0)=>{const s=[];(n&&t["s-sr"]||!t["s-sr"])&&s.push(t);let o=t;for(;o=o.nextSibling;)ve(o)!==e||!n&&o["s-sr"]||s.push(o);return s},pe=(t,e)=>1===t.nodeType?null===t.getAttribute("slot")&&""===e||t.getAttribute("slot")===e:t["s-sn"]===e||""===e,de=(t,e,n,s)=>{if(t["s-ol"]&&t["s-ol"].isConnected)return;const o=document.createTextNode("");if(o["s-nr"]=t,!e["s-cr"]||!e["s-cr"].parentNode)return;const i=e["s-cr"].parentNode,r=ge(i,"appendChild");if(void 0!==s){o["s-oo"]=s;const t=ge(i,"childNodes"),e=[o];t.forEach((t=>{t["s-nr"]&&e.push(t)})),e.sort(((t,e)=>!t["s-oo"]||t["s-oo"]<(e["s-oo"]||0)?-1:!e["s-oo"]||e["s-oo"]<t["s-oo"]?1:0)),e.forEach((t=>r.call(i,t)))}else r.call(i,o);t["s-ol"]=o,t["s-sh"]=e["s-hn"]},ve=t=>"string"==typeof t["s-sn"]?t["s-sn"]:1===t.nodeType&&t.getAttribute("slot")||void 0;function be(t){if(t.assignedElements||t.assignedNodes||!t["s-sr"])return;const e=e=>function(t){const n=[],s=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 o=this["s-cr"].parentElement;return(o.__childNodes?o.childNodes:(t=>{const e=[];for(let n=0;n<t.length;n++){const s=t[n]["s-nr"]||void 0;s&&s.isConnected&&e.push(s)}return e})(o.childNodes)).forEach((t=>{s===ve(t)&&n.push(t)})),e?n.filter((t=>1===t.nodeType)):n}.bind(t);t.assignedElements=e(!0),t.assignedNodes=e(!1)}function ge(t,e){if("__"+e in t){const n=t["__"+e];return"function"!=typeof n?n:n.bind(t)}return"function"!=typeof t[e]?t[e]:t[e].bind(t)}var me=new WeakMap,$e=(t,e,n)=>{let s=D.get(t);Y&&n?(s=s||new CSSStyleSheet,"string"==typeof s?s=e:s.replaceSync(e)):s=e,D.set(t,s)},we=(t,e)=>{var n,s,o;const i=ye(e),r=D.get(i);if(!H.document)return i;if(t=11===t.nodeType?t:H.document,r)if("string"==typeof r){let o,l=me.get(t=t.head||t);l||me.set(t,l=new Set);const c=t.querySelector(`[${V}="${i}"]`);if(c)c.innerHTML=r;else if(!l.has(i)){o=H.document.createElement("style"),o.innerHTML=r;const c=null!=(n=J.h)?n:function(){var t,e,n;return null!=(n=null==(e=null==(t=H.document.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:e.getAttribute("content"))?n:void 0}();if(null!=c&&o.setAttribute("nonce",c),!(1&e.l))if("HEAD"===t.nodeName){const e=t.querySelectorAll("link[rel=preconnect]"),n=e.length>0?e[e.length-1].nextSibling:t.querySelector("style");t.insertBefore(o,(null==n?void 0:n.parentNode)===t?n:null)}else if("host"in t)if(Y){const e=new(null!=(s=t.defaultView)?s:t.ownerDocument.defaultView).CSSStyleSheet;e.replaceSync(r),K?t.adoptedStyleSheets.unshift(e):t.adoptedStyleSheets=[e,...t.adoptedStyleSheets]}else{const e=t.querySelector("style");e?e.innerHTML=r+e.innerHTML:t.prepend(o)}else t.append(o);1&e.l&&t.insertBefore(o,null),4&e.l&&(o.innerHTML+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),l&&l.add(i)}}else{let e=me.get(t);if(e||me.set(t,e=new Set),!e.has(i)){const n=null!=(o=t.defaultView)?o:t.ownerDocument.defaultView;let s;if(r.constructor===n.CSSStyleSheet)s=r;else{s=new n.CSSStyleSheet;for(let t=0;t<r.cssRules.length;t++)s.insertRule(r.cssRules[t].cssText,t)}K?t.adoptedStyleSheets.push(s):t.adoptedStyleSheets=[...t.adoptedStyleSheets,s],e.add(i)}}return i},ye=t=>"sc-"+t.p,Oe=t=>t.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{"),Se=(t,e,...n)=>{let s=null,o=null,i=null,r=!1,l=!1;const c=[],a=e=>{for(let n=0;n<e.length;n++)s=e[n],Array.isArray(s)?a(s):null!=s&&"boolean"!=typeof s&&((r="function"!=typeof t&&!ct(s))&&(s+=""),r&&l?c[c.length-1].v+=s:c.push(r?je(null,s):s),l=r)};if(a(n),e){e.key&&(o=e.key),e.name&&(i=e.name);{const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}}if("function"==typeof t)return t(null===e?{}:e,c,xe);const u=je(t,null);return u.m=e,c.length>0&&(u.$=c),u.O=o,u.S=i,u},je=(t,e)=>({l:0,j:t,v:e,k:null,$:null,m:null,O:null,S:null}),ke={},xe={forEach:(t,e)=>t.map(Me).forEach(e),map:(t,e)=>t.map(Me).map(e).map(Ee)},Me=t=>({vattrs:t.m,vchildren:t.$,vkey:t.O,vname:t.S,vtag:t.j,vtext:t.v}),Ee=t=>{if("function"==typeof t.vtag){const e={...t.vattrs};return t.vkey&&(e.key=t.vkey),t.vname&&(e.name=t.vname),Se(t.vtag,e,...t.vchildren||[])}const e=je(t.vtag,t.vtext);return e.m=t.vattrs,e.$=t.vchildren,e.O=t.vkey,e.S=t.vname,e},Ne=(t,e,n,s,o,i,r,l=[])=>{let c,a,u,f;if(1===i.nodeType){if(c=i.getAttribute(G),c&&(a=c.split("."),a[0]===r||"0"===a[0])){u=Ae({l:0,M:a[0],N:a[1],R:a[2],A:a[3],j:i.tagName.toLowerCase(),k:i,m:{class:i.className||""}}),e.push(u),i.removeAttribute(G),t.$||(t.$=[]);const o=u.k.getAttribute("s-sn");"string"==typeof o&&("slot-fb"===u.j&&Pe(o,a[2],u,i,t,e,n,s,l),u.k["s-sn"]=o,u.k.removeAttribute("s-sn")),void 0!==u.A&&(t.$[u.A]=u),t=u,s&&"0"===u.R&&(s[u.A]=u.k)}if(i.shadowRoot)for(f=i.shadowRoot.childNodes.length-1;f>=0;f--)Ne(t,e,n,s,o,i.shadowRoot.childNodes[f],r,l);const h=i.__childNodes||i.childNodes;for(f=h.length-1;f>=0;f--)Ne(t,e,n,s,o,h[f],r,l)}else if(8===i.nodeType)a=i.nodeValue.split("."),(a[1]===r||"0"===a[1])&&(c=a[0],u=Ae({M:a[1],N:a[2],R:a[3],A:a[4]||"0",k:i,m:null,$:null,O:null,S:null,j:null,v:null}),"t"===c?(u.k=We(i,3),u.k&&3===u.k.nodeType&&(u.v=u.k.textContent,e.push(u),i.remove(),r===u.M&&(t.$||(t.$=[]),t.$[u.A]=u),s&&"0"===u.R&&(s[u.A]=u.k))):"c"===c?(u.k=We(i,8),u.k&&8===u.k.nodeType&&(e.push(u),i.remove())):u.M===r&&("s"===c?Pe(i["s-sn"]=a[5]||"",a[2],u,i,t,e,n,s,l):"r"===c&&(s?i.remove():(o["s-cr"]=i,i["s-cn"]=!0))));else if(t&&"style"===t.j){const e=je(null,i.textContent);e.k=i,e.A="0",t.$=[e]}return t},Re=(t,e)=>{if(1===t.nodeType){const n=t[U]||t.getAttribute(U);n&&e.set(n,t);let s=0;if(t.shadowRoot)for(;s<t.shadowRoot.childNodes.length;s++)Re(t.shadowRoot.childNodes[s],e);const o=t.__childNodes||t.childNodes;for(s=0;s<o.length;s++)Re(o[s],e)}else if(8===t.nodeType){const n=t.nodeValue.split(".");"o"===n[0]&&(e.set(n[1]+"."+n[2],t),t.nodeValue="",t["s-en"]=n[3])}},Ae=t=>({l:0,M:null,N:null,R:null,A:"0",k:null,m:null,$:null,O:null,S:null,j:null,v:null,...t});function Pe(t,e,n,s,o,i,r,l,c){s["s-sr"]=!0,n.S=t||null,n.j="slot";const a=(null==o?void 0:o.k)?o.k["s-id"]||o.k.getAttribute("s-id"):"";if(l&&H.document){const i=n.k=H.document.createElement(n.j);n.S&&n.k.setAttribute("name",t),o.k.shadowRoot&&a&&a!==n.M?ge(o.k,"insertBefore")(i,ge(o.k,"children")[0]):ge(ge(s,"parentNode"),"insertBefore")(i,s),Le(c,e,t,s,n.M),s.remove(),"0"===n.R&&(l[n.A]=n.k)}else{const i=n.k,r=a&&a!==n.M&&o.k.shadowRoot;Le(c,e,t,s,r?a:n.M),be(s),r&&o.k.insertBefore(i,o.k.children[0])}i.push(n),r.push(n),o.$||(o.$=[]),o.$[n.A]=n}var Le=(t,e,n,s,o)=>{var i,r;let l=s.nextSibling;if(t[e]=t[e]||[],l&&!(null==(i=l.nodeValue)?void 0:i.startsWith("s.")))do{!l||(l.getAttribute&&l.getAttribute("slot")||l["s-sn"])!==n&&(""!==n||l["s-sn"]||l.getAttribute&&l.getAttribute("slot")||8!==l.nodeType&&3!==l.nodeType)||(l["s-sn"]=n,t[e].push({slot:s,node:l,hostId:o})),l=null==l?void 0:l.nextSibling}while(l&&!(null==(r=l.nodeValue)?void 0:r.startsWith("s.")))},We=(t,e)=>{let n=t;do{n=n.nextSibling}while(n&&(n.nodeType!==e||!n.nodeValue));return n},Ce=t=>{const e=(t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"))(t);return RegExp(`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${e}))(${e}\\b)`,"g")};Ce("::slotted"),Ce(":host"),Ce(":host-context");var Ie,ze,_e=(t,e)=>"string"==typeof t&&t.startsWith(z)?t=function(t){return"string"==typeof t&&t.startsWith(z)?ne.fromLocalValue(JSON.parse(atob(t.slice(11)))):t}(t):null==t||ct(t)?t:4&e?"false"!==t&&(""===t||!!t):2&e?"string"==typeof t?parseFloat(t):"number"==typeof t?t:NaN:1&e?t+"":t,Te=(t,e)=>{const n=t;return{emit:t=>Fe(n,e,{bubbles:!0,composed:!0,cancelable:!0,detail:t})}},Fe=(t,e,n)=>{const s=J.ce(e,n);return t.dispatchEvent(s),s},Be=(t,e,n,s,o,i,r)=>{if(n===s)return;let l=F(t,e),c=e.toLowerCase();if("class"===e){const e=t.classList,o=Ue(n);let i=Ue(s);if((t["s-si"]||t["s-sc"])&&r){const n=t["s-sc"]||t["s-si"];i.push(n),o.forEach((t=>{t.startsWith(n)&&i.push(t)})),i=[...new Set(i)].filter((t=>t)),e.add(...i)}else e.remove(...o.filter((t=>t&&!i.includes(t)))),e.add(...i.filter((t=>t&&!o.includes(t))))}else if("style"===e){for(const e in n)s&&null!=s[e]||(e.includes("-")?t.style.removeProperty(e):t.style[e]="");for(const e in s)n&&s[e]===n[e]||(e.includes("-")?t.style.setProperty(e,s[e]):t.style[e]=s[e])}else if("key"===e);else if("ref"===e)s&&s(t);else if(t.__lookupSetter__(e)||"o"!==e[0]||"n"!==e[1]){const r=ct(s);if((l||r&&null!==s)&&!o)try{if(t.tagName.includes("-"))t[e]!==s&&(t[e]=s);else{const o=null==s?"":s;"list"===e?l=!1:null!=n&&t[e]==o||("function"==typeof t.__lookupSetter__(e)?t[e]=o:t.setAttribute(e,o))}}catch(t){}let a=!1;c!==(c=c.replace(/^xlink\:?/,""))&&(e=c,a=!0),null==s||!1===s?!1===s&&""!==t.getAttribute(e)||(a?t.removeAttributeNS(Z,e):t.removeAttribute(e)):(!l||4&i||o)&&!r&&1===t.nodeType&&(s=!0===s?"":s,a?t.setAttributeNS(Z,e,s):t.setAttribute(e,s))}else if(e="-"===e[2]?e.slice(3):F(H,c)?c.slice(2):c[2]+e.slice(3),n||s){const o=e.endsWith(Ve);e=e.replace(Ge,""),n&&J.rel(t,e,n,o),s&&J.ael(t,e,s,o)}},De=/\s/,Ue=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(De):[]),Ve="Capture",Ge=RegExp(Ve+"$"),Ze=(t,e,n,s)=>{const o=11===e.k.nodeType&&e.k.host?e.k.host:e.k,i=t&&t.m||{},r=e.m||{};for(const t of He(Object.keys(i)))t in r||Be(o,t,i[t],void 0,n,e.l,s);for(const t of He(Object.keys(r)))Be(o,t,i[t],r[t],n,e.l,s)};function He(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var qe=!1,Je=!1,Ye=!1,Ke=!1,Qe=(t,e,n)=>{var s;const o=e.$[n];let i,r,l,c=0;if(qe||(Ye=!0,"slot"===o.j&&(o.l|=o.$?2:1)),null!==o.v)i=o.k=H.document.createTextNode(o.v);else if(1&o.l)i=o.k=H.document.createTextNode(""),Ze(null,o,Ke);else{if(Ke||(Ke="svg"===o.j),!H.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(i=o.k=H.document.createElementNS(Ke?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!qe&&2&o.l?"slot-fb":o.j),Ke&&"foreignObject"===o.j&&(Ke=!1),Ze(null,o,Ke),o.$){const e="template"===o.j?i.content:i;for(c=0;c<o.$.length;++c)r=Qe(t,o,c),r&&e.appendChild(r)}"svg"===o.j?Ke=!1:"foreignObject"===i.tagName&&(Ke=!0)}return i["s-hn"]=ze,3&o.l&&(i["s-sr"]=!0,i["s-cr"]=Ie,i["s-sn"]=o.S||"",i["s-rf"]=null==(s=o.m)?void 0:s.ref,be(i),l=t&&t.$&&t.$[n],l&&l.j===o.j&&t.k&&Xe(t.k)),i},Xe=t=>{J.l|=1;const e=t.closest(ze.toLowerCase());if(null!=e){const n=Array.from(e.__childNodes||e.childNodes).find((t=>t["s-cr"])),s=Array.from(t.__childNodes||t.childNodes);for(const t of n?s.reverse():s)null!=t["s-sh"]&&(un(e,t,null!=n?n:null),t["s-sh"]=void 0,Ye=!0)}J.l&=-2},tn=(t,e)=>{J.l|=1;const n=Array.from(t.__childNodes||t.childNodes);if(t["s-sr"]){let e=t;for(;e=e.nextSibling;)e&&e["s-sn"]===t["s-sn"]&&e["s-sh"]===ze&&n.push(e)}for(let t=n.length-1;t>=0;t--){const s=n[t];s["s-hn"]!==ze&&s["s-ol"]&&(un(on(s).parentNode,s,on(s)),s["s-ol"].remove(),s["s-ol"]=void 0,s["s-sh"]=void 0,Ye=!0),e&&tn(s,e)}J.l&=-2},en=(t,e,n,s,o,i)=>{let r,l=t["s-cr"]&&t["s-cr"].parentNode||t;for(l.shadowRoot&&l.tagName===ze&&(l=l.shadowRoot),"template"===n.j&&(l=l.content);o<=i;++o)s[o]&&(r=Qe(null,n,o),r&&(s[o].k=r,un(l,r,on(e))))},nn=(t,e,n)=>{for(let s=e;s<=n;++s){const e=t[s];if(e){const t=e.k;an(e),t&&(Je=!0,t["s-ol"]?t["s-ol"].remove():tn(t,!0),t.remove())}}},sn=(t,e,n=!1)=>t.j===e.j&&("slot"===t.j?t.S===e.S:n?(n&&!t.O&&e.O&&(t.O=e.O),!0):t.O===e.O),on=t=>t&&t["s-ol"]||t,rn=(t,e,n=!1)=>{const s=e.k=t.k,o=t.$,i=e.$,r=e.j,l=e.v;let c;null===l?(Ke="svg"===r||"foreignObject"!==r&&Ke,"slot"!==r||qe||t.S!==e.S&&(e.k["s-sn"]=e.S||"",Xe(e.k.parentElement)),Ze(t,e,Ke,n),null!==o&&null!==i?((t,e,n,s,o=!1)=>{let i,r,l=0,c=0,a=0,u=0,f=e.length-1,h=e[0],p=e[f],d=s.length-1,v=s[0],b=s[d];const g="template"===n.j?t.content:t;for(;l<=f&&c<=d;)if(null==h)h=e[++l];else if(null==p)p=e[--f];else if(null==v)v=s[++c];else if(null==b)b=s[--d];else if(sn(h,v,o))rn(h,v,o),h=e[++l],v=s[++c];else if(sn(p,b,o))rn(p,b,o),p=e[--f],b=s[--d];else if(sn(h,b,o))"slot"!==h.j&&"slot"!==b.j||tn(h.k.parentNode,!1),rn(h,b,o),un(g,h.k,p.k.nextSibling),h=e[++l],b=s[--d];else if(sn(p,v,o))"slot"!==h.j&&"slot"!==b.j||tn(p.k.parentNode,!1),rn(p,v,o),un(g,p.k,h.k),p=e[--f],v=s[++c];else{for(a=-1,u=l;u<=f;++u)if(e[u]&&null!==e[u].O&&e[u].O===v.O){a=u;break}a>=0?(r=e[a],r.j!==v.j?i=Qe(e&&e[c],n,a):(rn(r,v,o),e[a]=void 0,i=r.k),v=s[++c]):(i=Qe(e&&e[c],n,c),v=s[++c]),i&&un(on(h.k).parentNode,i,on(h.k))}l>f?en(t,null==s[d+1]?null:s[d+1].k,n,s,c,d):c>d&&nn(e,l,f)})(s,o,e,i,n):null!==i?(null!==t.v&&(s.textContent=""),en(s,null,e,i,0,i.length-1)):n||null===o?n&&null!==o&&null===i&&(e.$=o):nn(o,0,o.length-1),Ke&&"svg"===r&&(Ke=!1)):(c=s["s-cr"])?c.parentNode.textContent=l:t.v!==l&&(s.data=l)},ln=[],cn=t=>{let e,n,s;const o=t.__childNodes||t.childNodes;for(const t of o){if(t["s-sr"]&&(e=t["s-cr"])&&e.parentNode){n=e.parentNode.__childNodes||e.parentNode.childNodes;const o=t["s-sn"];for(s=n.length-1;s>=0;s--)if(e=n[s],!(e["s-cn"]||e["s-nr"]||e["s-hn"]===t["s-hn"]||e["s-sh"]&&e["s-sh"]===t["s-hn"]))if(pe(e,o)){let n=ln.find((t=>t.P===e));Je=!0,e["s-sn"]=e["s-sn"]||o,n?(n.P["s-sh"]=t["s-hn"],n.L=t):(e["s-sh"]=t["s-hn"],ln.push({L:t,P:e})),e["s-sr"]&&ln.map((t=>{pe(t.P,e["s-sn"])&&(n=ln.find((t=>t.P===e)),n&&!t.L&&(t.L=n.L))}))}else ln.some((t=>t.P===e))||ln.push({P:e})}1===t.nodeType&&cn(t)}},an=t=>{t.m&&t.m.ref&&t.m.ref(null),t.$&&t.$.map(an)},un=(t,e,n,s)=>{if("string"==typeof e["s-sn"]){t.insertBefore(e,n);const{slotNode:o}=function(t,e){var n;if(!(e=e||(null==(n=t["s-ol"])?void 0:n.parentElement)))return{slotNode:null,slotName:""};const s=t["s-sn"]=ve(t)||"";return{slotNode:fe(ge(e,"childNodes"),e.tagName,s)[0],slotName:s}}(e);return o&&!s&&function(t){t.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1}))}(o),e}return t.__insertBefore?t.__insertBefore(e,n):null==t?void 0:t.insertBefore(e,n)},fn=(t,e,n=!1)=>{var s,o,i,r,l;const c=t.$hostElement$,a=t.o,u=t.W||je(null,null),f=(t=>t&&t.j===ke)(e)?e:Se(null,null,e);if(ze=c.tagName,a.C&&(f.m=f.m||{},a.C.forEach((([t,e])=>{f.m[e]=c[t]}))),n&&f.m)for(const t of Object.keys(f.m))c.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(f.m[t]=c[t]);if(f.j=null,f.l|=4,t.W=f,f.k=u.k=c.shadowRoot||c,qe=!(!(1&a.l)||128&a.l),Ie=c["s-cr"],Je=!1,rn(u,f,n),J.l|=1,Ye){cn(f.k);for(const t of ln){const e=t.P;if(!e["s-ol"]&&H.document){const t=H.document.createTextNode("");t["s-nr"]=e,un(e.parentNode,e["s-ol"]=t,e,n)}}for(const t of ln){const e=t.P,l=t.L;if(1===e.nodeType&&n&&(e["s-ih"]=null!=(s=e.hidden)&&s),l){const t=l.parentNode;let s=l.nextSibling;if(s&&1===s.nodeType){let n=null==(o=e["s-ol"])?void 0:o.previousSibling;for(;n;){let o=null!=(i=n["s-nr"])?i:null;if(o&&o["s-sn"]===e["s-sn"]&&t===(o.__parentNode||o.parentNode)){for(o=o.nextSibling;o===e||(null==o?void 0:o["s-sr"]);)o=null==o?void 0:o.nextSibling;if(!o||!o["s-nr"]){s=o;break}}n=n.previousSibling}}if((!s&&t!==(e.__parentNode||e.parentNode)||(e.__nextSibling||e.nextSibling)!==s)&&e!==s){if(un(t,e,s,n),8===e.nodeType&&e.nodeValue.startsWith("s-nt-")){const t=H.document.createTextNode(e.nodeValue.replace(/^s-nt-/,""));t["s-hn"]=e["s-hn"],t["s-sn"]=e["s-sn"],t["s-sh"]=e["s-sh"],t["s-sr"]=e["s-sr"],t["s-ol"]=e["s-ol"],t["s-ol"]["s-nr"]=t,un(e.parentNode,t,e,n),e.parentNode.removeChild(e)}1===e.nodeType&&"SLOT-FB"!==e.tagName&&(e.hidden=null!=(r=e["s-ih"])&&r)}e&&"function"==typeof l["s-rf"]&&l["s-rf"](l)}else 1===e.nodeType&&(e.hidden=!0)}}if(Je&&ue(f.k),J.l&=-2,ln.length=0,!qe&&!(1&a.l)&&c["s-cr"]){const t=f.k.__childNodes||f.k.childNodes;for(const e of t)if(e["s-hn"]!==ze&&!e["s-sh"])if(n&&null==e["s-ih"]&&(e["s-ih"]=null!=(l=e.hidden)&&l),1===e.nodeType)e.hidden=!0;else if(3===e.nodeType&&e.nodeValue.trim()){const t=H.document.createComment("s-nt-"+e.nodeValue);t["s-sn"]=e["s-sn"],un(e.parentNode,t,e,n),e.parentNode.removeChild(e)}}Ie=void 0},hn=(t,e)=>{if(e&&!t.I&&e["s-p"]){const n=e["s-p"].push(new Promise((s=>t.I=()=>{e["s-p"].splice(n-1,1),s()})))}},pn=(t,e)=>{if(t.l|=16,4&t.l)return void(t.l|=512);hn(t,t._);const n=()=>dn(t,e);if(!e)return it(n);queueMicrotask((()=>{n()}))},dn=(t,e)=>{const n=t.$hostElement$,s=n;if(!s)throw Error(`Can't render component <${n.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 o;return o=yn(s,e?"componentWillLoad":"componentWillUpdate",void 0,n),o=vn(o,(()=>yn(s,"componentWillRender",void 0,n))),vn(o,(()=>gn(t,s,e)))},vn=(t,e)=>bn(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),bn=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,gn=async(t,e,n)=>{var s;const o=t.$hostElement$,i=o["s-rc"];n&&(t=>{const e=t.o,n=t.$hostElement$,s=e.l,o=we(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&s&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(t);mn(t,e,o,n),i&&(i.map((t=>t())),o["s-rc"]=void 0);{const e=null!=(s=o["s-p"])?s:[],n=()=>$n(t);0===e.length?n():(Promise.all(e).then(n),t.l|=4,e.length=0)}},mn=(t,e,n,s)=>{try{e=e.render&&e.render(),t.l&=-17,t.l|=2,fn(t,e,s)}catch(e){B(e,t.$hostElement$)}return null},$n=t=>{const e=t.$hostElement$,n=e,s=t._;yn(n,"componentDidRender",void 0,e),64&t.l?yn(n,"componentDidUpdate",void 0,e):(t.l|=64,On(e),yn(n,"componentDidLoad",void 0,e),t.T(e),s||wn()),t.I&&(t.I(),t.I=void 0),512&t.l&&ot((()=>pn(t,!1))),t.l&=-517},wn=()=>{var t;ot((()=>Fe(H,"appload",{detail:{namespace:"post-components"}}))),(null==(t=J.F)?void 0:t.size)&&J.F.clear()},yn=(t,e,n,s)=>{if(t&&t[e])try{return t[e](n)}catch(t){B(t,s)}},On=t=>t.setAttribute(null!="data-hydrated"?"data-hydrated":"hydrated",""),Sn=(t,e,n,s)=>{const o=T(t);if(!o)return;const i=t,r=o.i.get(e),l=o.l,c=i;if(!((n=_e(n,s.t[e][0]))===r||Number.isNaN(r)&&Number.isNaN(n))){if(o.i.set(e,n),s.B){const t=s.B[e];t&&t.map((t=>{try{const[[s,i]]=Object.entries(t);(128&l||1&i)&&(c?c[s](n,r,e):o.D.push((()=>{o.U[s](n,r,e)})))}catch(t){B(t,i)}}))}if(2==(18&l)){if(c.componentShouldUpdate&&!1===c.componentShouldUpdate(n,r,e))return;pn(o,!1)}}},jn=(t,e)=>{var n,s;const o=t.prototype;{t.watchers&&!e.B&&(e.B=t.watchers),t.deserializers&&!e.V&&(e.V=t.deserializers),t.serializers&&!e.G&&(e.G=t.serializers);const i=Object.entries(null!=(n=e.t)?n:{});i.map((([t,[n]])=>{if(31&n||32&n){const{get:s,set:i}=Object.getOwnPropertyDescriptor(o,t)||{};s&&(e.t[t][0]|=2048),i&&(e.t[t][0]|=4096),Object.defineProperty(o,t,{get(){return s?s.apply(this):((t,e)=>T(this).i.get(e))(0,t)},configurable:!0,enumerable:!0}),Object.defineProperty(o,t,{set(s){const o=T(this);if(o){if(i)return void 0===(32&n?this[t]:o.$hostElement$[t])&&o.i.get(t)&&(s=o.i.get(t)),i.call(this,_e(s,n)),void Sn(this,t,s=32&n?this[t]:o.$hostElement$[t],e);Sn(this,t,s,e)}}})}}));{const n=new Map;o.attributeChangedCallback=function(t,s,r){J.jmp((()=>{var l;const c=n.get(t),a=T(this);if(this.hasOwnProperty(c),o.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==r)return;if(null==c){const n=null==a?void 0:a.l;if(a&&n&&!(8&n)&&r!==s){const o=this,i=null==(l=e.B)?void 0:l[t];null==i||i.forEach((e=>{const[[i,l]]=Object.entries(e);null!=o[i]&&(128&n||1&l)&&o[i].call(o,r,s,t)}))}return}const u=i.find((([t])=>t===c));u&&4&u[1][0]&&(r=null!==r&&"false"!==r);const f=Object.getOwnPropertyDescriptor(o,c);r==this[c]||f.get&&!f.set||(this[c]=r)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=e.B)?s:{}),...i.filter((([t,e])=>31&e[0])).map((([t,s])=>{var o;const i=s[1]||t;return n.set(i,t),512&s[0]&&(null==(o=e.C)||o.push([t,i])),i}))]))}}return t},kn=t=>{if(!H.document)return;const e=t["s-cr"]=H.document.createComment("");e["s-cn"]=!0,un(t,e,t.firstChild)},xn=(t,e)=>{const n={l:e[0],p:e[1]};n.t=e[2],n.Z=e[3],n.B=t.B,n.V=t.V,n.G=t.G,n.C=[],(()=>{if(!H.document)return;const t=H.document.querySelectorAll(`[${V}]`);let e=0;for(;e<t.length;e++)$e(t[e].getAttribute(V),Oe(t[e].innerHTML),!0)})();const s=t.prototype.connectedCallback,o=t.prototype.disconnectedCallback;return Object.assign(t.prototype,{__hasHostListenerAttached:!1,__registerHost(){((t,e)=>{const n={l:0,$hostElement$:t,o:e,i:new Map,H:new Map};n.q=new Promise((t=>n.T=t)),t["s-p"]=[],t["s-rc"]=[];const s=n;t.__stencil__getHostRef=()=>s,512&e.l&&_(t,n)})(this,n)},connectedCallback(){if(!this.__hasHostListenerAttached){const t=T(this);if(!t)return;Mn(this,t,n.Z),this.__hasHostListenerAttached=!0}(t=>{if(!(1&J.l)){const e=T(t);if(!e)return;const n=e.o,s=()=>{};if(1&e.l)Mn(t,e,n.Z),(null==e?void 0:e.U)||(null==e?void 0:e.q)&&e.q.then((()=>{}));else{let s;if(e.l|=1,s=t.getAttribute(U),s){if(1&n.l){const e=we(t.shadowRoot,n);t.classList.remove(e+"-h",e+"-s")}((t,e,n,s)=>{var o,i,r,l;const c=t.shadowRoot,a=[],u=[],f=c?[]:null,h=je(e,null);h.k=t,!H.document||J.F&&J.F.size||Re(H.document.body,J.F=new Map),t[U]=n,t.removeAttribute(U),s.W=Ne(h,a,[],f,t,t,n,u);let p=0;const d=a.length;let v;for(;p<d;p++){v=a[p];const n=v.M+"."+v.N,s=J.F.get(n),i=v.k;if(c){if((null==(o=v.j)?void 0:(""+o).includes("-"))&&"slot-fb"!==v.j&&!v.k.shadowRoot){const e=T(v.k);if(e){const n=ye(e.o),s=H.document.querySelector(`style[sty-id="${n}"]`);s&&t.shadowRoot.append(s.cloneNode(!0))}}}else i["s-hn"]=e.toUpperCase(),"slot"===v.j&&(i["s-cr"]=t["s-cr"]);"slot"===v.j&&(v.S=v.k["s-sn"]||v.k.name||null,v.$?(v.l|=2,v.k.childNodes.length||v.$.forEach((t=>{v.k.appendChild(t.k)}))):v.l|=1),s&&s.isConnected&&(s.parentElement.shadowRoot&&""===s["s-en"]&&s.parentNode.insertBefore(i,s.nextSibling),s.parentNode.removeChild(s),c||(i["s-oo"]=parseInt(v.N))),s&&!s["s-id"]&&J.F.delete(n)}const b=[],g=u.length;let m,$,w,y,O=0,S=0;for(;O<g;O++)if(m=u[O],m&&m.length)for(w=m.length,$=0;$<w;$++){if(y=m[$],b[y.hostId]||(b[y.hostId]=J.F.get(y.hostId)),!b[y.hostId])continue;const t=b[y.hostId];t.shadowRoot&&y.node.parentElement!==t&&t.insertBefore(y.node,null==(r=null==(i=m[$-1])?void 0:i.node)?void 0:r.nextSibling),t.shadowRoot&&c||(y.slot["s-cr"]||(y.slot["s-cr"]=t["s-cr"],y.slot["s-cr"]=!y.slot["s-cr"]&&t.shadowRoot?t:(t.__childNodes||t.childNodes)[0]),de(y.node,y.slot,0,y.node["s-oo"]||S),(null==(l=y.node.parentElement)?void 0:l.shadowRoot)&&y.node.getAttribute&&y.node.getAttribute("slot")&&y.node.removeAttribute("slot")),S=(y.node["s-oo"]||S)+1}if(c){let e=0;const n=f.length;if(n){for(;e<n;e++){const t=f[e];t&&c.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||t.parentNode.removeChild(t))}))}}s.$hostElement$=t})(t,n.p,s,e)}s||12&n.l&&kn(t);{let n=t;for(;n=n.parentNode||n.host;)if(1===n.nodeType&&n.hasAttribute("s-id")&&n["s-p"]||n["s-p"]){hn(e,e._=n);break}}n.t&&Object.entries(n.t).map((([e,[n]])=>{if(31&n&&e in t&&t[e]!==Object.prototype[e]){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n)=>{let s;if(!(32&e.l)&&(e.l|=32,s=t.constructor,customElements.whenDefined(t.localName).then((()=>e.l|=128)),s&&s.style)){let t;"string"==typeof s.style&&(t=s.style);const e=ye(n);if(!D.has(e)){const s=()=>{};$e(e,t,!!(1&n.l)),s()}}const o=e._,i=()=>pn(e,!0);o&&o["s-rc"]?o["s-rc"].push(i):i()})(t,e,n)}s()}})(this),s&&s.call(this)},disconnectedCallback(){(async t=>{if(!(1&J.l)){const e=T(t);(null==e?void 0:e.J)&&(e.J.map((t=>t())),e.J=void 0)}me.has(t)&&me.delete(t),t.shadowRoot&&me.has(t.shadowRoot)&&me.delete(t.shadowRoot)})(this),o&&o.call(this)},__attachShadow(){if(this.shadowRoot){if("open"!==this.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${n.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else ae.call(this,n)}}),t.is=n.p,jn(t,n)},Mn=(t,e,n)=>{n&&H.document&&n.map((([n,s,o])=>{const i=Nn(H.document,t,n),r=En(e,o),l=Rn(n);J.ael(i,s,r,l),(e.J=e.J||[]).push((()=>J.rel(i,s,r,l)))}))},En=(t,e)=>n=>{try{t.$hostElement$[e](n)}catch(e){B(e,t.$hostElement$)}},Nn=(t,e,n)=>4&n?t:8&n?H:e,Rn=t=>({passive:!!(1&t),capture:!!(2&t)}),An=t=>J.h=t,Pn=t=>Object.assign(J,t);function Ln(t,e){fn({o:{l:0,p:e.tagName},$hostElement$:e},t)}function Wn(t){return t}export{q as H,ke as a,Te as c,rt as getAssetPath,Se as h,xn as p,Ln as render,lt as setAssetPath,An as setNonce,Pn as setPlatformOptions,Wn as t}
|
|
1
|
+
const t=":where(post-accordion,post-accordion-item,post-autocomplete,post-avatar,post-back-to-top,post-banner,post-breadcrumb-item,post-breadcrumbs,post-closebutton,post-collapsible,post-collapsible-trigger,post-date-picker,post-footer,post-header,post-icon,post-language-menu,post-language-menu-item,post-linkarea,post-listbox,post-listbox-option,post-login-widget,post-logo,post-mainnavigation,post-megadropdown,post-megadropdown-trigger,post-menu,post-menu-item,post-menu-trigger,post-number-input,post-pagination,post-popover,post-popover-trigger,post-popovercontainer,post-rating,post-stepper,post-stepper-item,post-tab-item,post-tab-panel,post-tabs,post-togglebutton,post-tooltip,post-tooltip-trigger):not(:defined):not(.hydrated,[data-hydrated]){visibility:hidden}@media (scripting: none){:where(post-accordion,post-accordion-item,post-autocomplete,post-avatar,post-back-to-top,post-banner,post-breadcrumb-item,post-breadcrumbs,post-closebutton,post-collapsible,post-collapsible-trigger,post-date-picker,post-footer,post-header,post-icon,post-language-menu,post-language-menu-item,post-linkarea,post-listbox,post-listbox-option,post-login-widget,post-logo,post-mainnavigation,post-megadropdown,post-megadropdown-trigger,post-menu,post-menu-item,post-menu-trigger,post-number-input,post-pagination,post-popover,post-popover-trigger,post-popovercontainer,post-rating,post-stepper,post-stepper-item,post-tab-item,post-tab-panel,post-tabs,post-togglebutton,post-tooltip,post-tooltip-trigger):not(:defined):not(.hydrated,[data-hydrated]){visibility:visible}}post-accordion:not([multiple]):not(:has([collapsed]))>post-accordion-item~post-accordion-item{--post-collapsible-initial-height:0;--post-collapsible-initial-overflow:hidden;--post-accordion-icon-initial-transform:rotate(-180deg)}.form-label:has(+post-number-input){display:block}.form-label:has(+post-number-input.number-input-sm){padding-inline:var(--post-device-spacing-padding-2);padding-block:var(--post-device-spacing-padding-30);font-weight:var(--post-device-font-weight-bold);font-size:var(--post-device-font-size-7)}.form-label:has(+post-number-input.disabled){color:var(--post-scheme-color-interactive-input-disabled-fg)}post-number-input.form-floating>input.form-control{padding:var(--post-device-spacing-padding-block-29) var(--post-device-spacing-padding-inline-1) var(--post-device-spacing-padding-block-3)}post-number-input.form-floating>input.form-control:focus~label,post-number-input.form-floating>input.form-control:not(:placeholder-shown)~label{padding-block-start:var(--post-device-spacing-padding-block-3);padding-inline:var(--post-device-spacing-padding-inline-1) var(--post-device-spacing-padding-15);font-size:var(--post-device-font-size-10)}post-number-input.form-floating::after{width:var(--post-device-sizing-notification-1);height:var(--post-device-sizing-notification-1)}post-number-input.form-floating:has(>input.form-control.is-valid:not(:disabled))::after,post-number-input.form-floating:has(>input.form-control:-webkit-autofill.is-valid)::after,post-number-input.form-floating:has(>input.form-control.is-invalid:not(:disabled))::after,post-number-input.form-floating:has(>input.form-control:-webkit-autofill.is-invalid)::after{top:calc(var(--post-device-sizing-interactive-button-height-6) / 2);right:calc(\n var(--post-device-spacing-padding-inline-1) +\n (var(--post-device-spacing-padding-23)* 2) +\n var(--post-device-sizing-interactive-icon-size6) +\n (var(--post-device-border-width-default) * 2)\n )}post-number-input input[type=number]{appearance:textfield}post-number-input input[type=number]::-webkit-inner-spin-button,post-number-input input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}post-login-widget>[slot=unauthenticated]{display:inline-flex;position:relative;align-items:center;justify-content:center;max-width:100%;overflow:hidden;transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;border-width:var(--post-device-border-width-default);border-style:solid;border-radius:var(--post-device-border-radius-round);background-color:rgba(0,0,0,0);box-shadow:none;font-family:inherit;font-weight:var(--post-device-font-weight-bold);text-decoration:none;white-space:nowrap;cursor:pointer;border:unset;font-weight:unset;display:flex;padding:.25rem .625rem;gap:.375rem;font-size:1rem;border-color:var(--post-scheme-color-interactive-button-tertiary-enabled-stroke);background-color:var(--post-scheme-color-interactive-button-tertiary-enabled-bg);color:var(--post-scheme-color-interactive-button-tertiary-enabled-fg)}post-login-widget>[slot=unauthenticated]:hover{text-decoration:none}post-login-widget>[slot=unauthenticated]:disabled{border-style:var(--post-core-border-style-dash)}post-login-widget>[slot=unauthenticated]{outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}post-login-widget>[slot=unauthenticated]:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){post-login-widget>[slot=unauthenticated]:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){post-login-widget>[slot=unauthenticated]:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){post-login-widget>[slot=unauthenticated]:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){post-login-widget>[slot=unauthenticated]:is(a){color:LinkText;border:unset}post-login-widget>[slot=unauthenticated]:is(button){background-color:ButtonFace !important;border:1px solid ButtonBorder !important}post-login-widget>[slot=unauthenticated]:not(:disabled,.disabled):is(button):hover{background-color:Highlight !important}post-login-widget>[slot=unauthenticated]:not(:disabled,.disabled):is(button):hover>post-icon{color:HighlightText !important}}post-login-widget>[slot=unauthenticated]:hover{border-color:var(--post-scheme-color-interactive-button-tertiary-hover-stroke);background-color:var(--post-scheme-color-interactive-button-tertiary-hover-bg);color:var(--post-scheme-color-interactive-button-tertiary-hover-fg)}post-login-widget>[slot=unauthenticated]:is([aria-current],[aria-pressed=true],[aria-expanded=true],.active){box-shadow:var(--post-device-elevation-100);border-color:var(--post-scheme-color-interactive-button-primary-enabled-stroke);background-color:var(--post-scheme-color-interactive-button-primary-enabled-bg);color:var(--post-scheme-color-interactive-button-primary-enabled-fg)}post-login-widget>[slot=unauthenticated]:is([aria-current],[aria-pressed=true],[aria-expanded=true],.active):hover{border-color:var(--post-scheme-color-interactive-button-primary-hover-stroke);background-color:var(--post-scheme-color-interactive-button-primary-hover-bg);color:var(--post-scheme-color-interactive-button-primary-hover-fg)}post-login-widget>[slot=unauthenticated]{width:fit-content}@media screen and (min-width: 0)and (max-width: 599.98px){post-login-widget>[slot=unauthenticated]>:not(post-icon){position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}post-login-widget>[slot=unauthenticated]>post-icon{font-size:1.5rem}}post-login-widget>[slot=authenticated]>post-menu-trigger>button{border-radius:var(--post-device-border-radius-round) !important}";var e,o,n,i,s,r,l,a,c,u,f,p,h,d,g,v,b,m=Object.create,w=Object.defineProperty,$=Object.getOwnPropertyDescriptor,y=Object.getOwnPropertyNames,k=Object.getPrototypeOf,x=Object.prototype.hasOwnProperty,O=t=>{throw TypeError(t)},j=(t,e)=>function(){return e||(0,t[y(t)[0]])((e={exports:{}}).exports,e),e.exports},S=(t,e,o)=>e.has(t)||O("Cannot "+o),M=(t,e,o)=>(S(t,e,"read from private field"),o?o.call(t):e.get(t)),E=(t,e,o)=>e.has(t)?O("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,o),N=(t,e,o)=>(S(t,e,"write to private field"),e.set(t,o),o),z=(t,e,o)=>(S(t,e,"access private method"),o),R=j({"node_modules/balanced-match/index.js"(t,e){function o(t,e,o){t instanceof RegExp&&(t=n(t,o)),e instanceof RegExp&&(e=n(e,o));var s=i(t,e,o);return s&&{start:s[0],end:s[1],pre:o.slice(0,s[0]),body:o.slice(s[0]+t.length,s[1]),post:o.slice(s[1]+e.length)}}function n(t,e){var o=e.match(t);return o?o[0]:null}function i(t,e,o){var n,i,s,r,l,a=o.indexOf(t),c=o.indexOf(e,a+1),u=a;if(a>=0&&c>0){if(t===e)return[a,c];for(n=[],s=o.length;u>=0&&!l;)u==a?(n.push(u),a=o.indexOf(t,u+1)):1==n.length?l=[n.pop(),c]:((i=n.pop())<s&&(s=i,r=c),c=o.indexOf(e,u+1)),u=a<c&&a>=0?a:c;n.length&&(l=[s,r])}return l}e.exports=o,o.range=i}}),A=j({"node_modules/brace-expansion/index.js"(t,e){var o=R();e.exports=function(t){return t?("{}"===t.substr(0,2)&&(t="\\{\\}"+t.substr(2)),g(function(t){return t.split("\\\\").join(n).split("\\{").join(i).split("\\}").join(s).split("\\,").join(r).split("\\.").join(l)}(t),!0).map(c)):[]};var n="\0SLASH"+Math.random()+"\0",i="\0OPEN"+Math.random()+"\0",s="\0CLOSE"+Math.random()+"\0",r="\0COMMA"+Math.random()+"\0",l="\0PERIOD"+Math.random()+"\0";function a(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function c(t){return t.split(n).join("\\").split(i).join("{").split(s).join("}").split(r).join(",").split(l).join(".")}function u(t){if(!t)return[""];var e=[],n=o("{","}",t);if(!n)return t.split(",");var i=n.body,s=n.post,r=n.pre.split(",");r[r.length-1]+="{"+i+"}";var l=u(s);return s.length&&(r[r.length-1]+=l.shift(),r.push.apply(r,l)),e.push.apply(e,r),e}function f(t){return"{"+t+"}"}function p(t){return/^-?0\d/.test(t)}function h(t,e){return t<=e}function d(t,e){return t>=e}function g(t,e){var n=[],i=o("{","}",t);if(!i)return[t];var r=i.pre,l=i.post.length?g(i.post,!1):[""];if(/\$$/.test(i.pre))for(var c=0;c<l.length;c++)n.push(L=r+"{"+i.body+"}"+l[c]);else{var v,b,m=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body),w=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body),$=m||w,y=i.body.indexOf(",")>=0;if(!$&&!y)return i.post.match(/,(?!,).*\}/)?g(t=i.pre+"{"+i.body+s+i.post):[t];if($)v=i.body.split(/\.\./);else if(1===(v=u(i.body)).length&&1===(v=g(v[0],!1).map(f)).length)return l.map((function(t){return i.pre+v[0]+t}));if($){var k=a(v[0]),x=a(v[1]),O=Math.max(v[0].length,v[1].length),j=3==v.length?Math.abs(a(v[2])):1,S=h;x<k&&(j*=-1,S=d);var M=v.some(p);b=[];for(var E=k;S(E,x);E+=j){var N;if(w)"\\"===(N=String.fromCharCode(E))&&(N="");else if(N=E+"",M){var z=O-N.length;if(z>0){var R=Array(z+1).join("0");N=E<0?"-"+R+N.slice(1):R+N}}b.push(N)}}else{b=[];for(var A=0;A<v.length;A++)b.push.apply(b,g(v[A],!1))}for(A=0;A<b.length;A++)for(c=0;c<l.length;c++){var L=r+b[A]+l[c];(!e||$||L)&&n.push(L)}}return n}}}),L=(t=>(t.Undefined="undefined",t.Null="null",t.String="string",t.Number="number",t.SpecialNumber="number",t.Boolean="boolean",t.BigInt="bigint",t))(L||{}),P=(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))(P||{}),W="type",C="value",I="serialized:",T=(t,e)=>{var o;Object.entries(null!=(o=e.o.t)?o:{}).map((([o,[n]])=>{if(31&n||32&n){const n=t[o],i=function(t,e){for(;t;){const o=Object.getOwnPropertyDescriptor(t,e);if(null==o?void 0:o.get)return o;t=Object.getPrototypeOf(t)}}(Object.getPrototypeOf(t),o)||Object.getOwnPropertyDescriptor(t,o);i&&Object.defineProperty(t,o,{get(){return i.get.call(this)},set(t){i.set.call(this,t)},configurable:!0,enumerable:!0}),t[o]=e.i.has(o)?e.i.get(o):n}}))},_=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},B=(t,e)=>e in t,F=(t,e)=>(0,console.error)(t,e),H=new Map,D="s-id",U="sty-id",V="c-id",G="http://www.w3.org/1999/xlink",Z="undefined"!=typeof window?window:{},q=Z.HTMLElement||class{},J={l:0,u:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,o,n)=>t.addEventListener(e,o,n),rel:(t,e,o,n)=>t.removeEventListener(e,o,n),ce:(t,e)=>new CustomEvent(t,e)},Y=(()=>{try{return!!Z.document.adoptedStyleSheets&&(new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync)}catch(t){}return!1})(),K=!!Y&&(()=>!!Z.document&&Object.getOwnPropertyDescriptor(Z.document.adoptedStyleSheets,"length").writable)(),Q=!1,X=[],tt=[],et=(t,e)=>o=>{t.push(o),Q||(Q=!0,e&&4&J.l?it(nt):J.raf(nt))},ot=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){F(t)}t.length=0},nt=()=>{ot(X),ot(tt),(Q=X.length>0)&&J.raf(nt)},it=t=>Promise.resolve(void 0).then(t),st=et(tt,!0),rt=t=>{const e=new URL(t,J.u);return e.origin!==Z.location.origin?e.href:e.pathname},lt=t=>J.u=t,at=t=>"object"==(t=typeof t)||"function"===t,ct=((t,e,o)=>(o=null!=t?m(k(t)):{},((t,e,o,n)=>{if(e&&"object"==typeof e||"function"==typeof e)for(let o of y(e))x.call(t,o)||undefined===o||w(t,o,{get:()=>e[o],enumerable:!(n=$(e,o))||n.enumerable});return t})(w(o,"default",{value:t,enumerable:!0}),t)))(A()),ut=t=>{if("string"!=typeof t)throw new TypeError("invalid pattern");if(t.length>65536)throw new TypeError("pattern is too long")},ft={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},pt=t=>t.replace(/[[\]\\-]/g,"\\$&"),ht=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),dt=t=>t.join(""),gt=(t,e)=>{const o=e;if("["!==t.charAt(o))throw Error("not in a brace expression");const n=[],i=[];let s=o+1,r=!1,l=!1,a=!1,c=!1,u=o,f="";t:for(;s<t.length;){const e=t.charAt(s);if("!"!==e&&"^"!==e||s!==o+1){if("]"===e&&r&&!a){u=s+1;break}if(r=!0,"\\"!==e||a){if("["===e&&!a)for(const[e,[r,a,c]]of Object.entries(ft))if(t.startsWith(e,s)){if(f)return["$.",!1,t.length-o,!0];s+=e.length,c?i.push(r):n.push(r),l=l||a;continue t}a=!1,f?(e>f?n.push(pt(f)+"-"+pt(e)):e===f&&n.push(pt(e)),f="",s++):t.startsWith("-]",s+1)?(n.push(pt(e+"-")),s+=2):t.startsWith("-",s+1)?(f=e,s+=2):(n.push(pt(e)),s++)}else a=!0,s++}else c=!0,s++}if(u<s)return["",!1,0,!1];if(!n.length&&!i.length)return["$.",!1,t.length-o,!0];if(0===i.length&&1===n.length&&/^\\?.$/.test(n[0])&&!c){const t=2===n[0].length?n[0].slice(-1):n[0];return[ht(t),!1,u-o,!1]}const p="["+(c?"^":"")+dt(n)+"]",h="["+(c?"":"^")+dt(i)+"]";return[n.length&&i.length?"("+p+"|"+h+")":n.length?p:h,l,u-o,!0]},vt=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/\[([^\/\\])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1"),bt=new Set(["!","?","+","*","@"]),mt=t=>bt.has(t),wt="(?!\\.)",$t=new Set(["[","."]),yt=new Set(["..","."]),kt=new Set("().*{}+?[]^$\\!"),xt=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Ot="[^/]",jt=Ot+"*?",St=Ot+"+?",Mt=class t{constructor(t,h,d={}){E(this,p),((t,e,o)=>{((t,e,o)=>{e in t?w(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o})(t,e+"",o)})(this,"type"),E(this,e),E(this,o),E(this,n,!1),E(this,i,[]),E(this,s),E(this,r),E(this,l),E(this,a,!1),E(this,c),E(this,u),E(this,f,!1),this.type=t,t&&N(this,o,!0),N(this,s,h),N(this,e,M(this,s)?M(M(this,s),e):this),N(this,c,M(this,e)===this?d:M(M(this,e),c)),N(this,l,M(this,e)===this?[]:M(M(this,e),l)),"!"!==t||M(M(this,e),a)||M(this,l).push(this),N(this,r,M(this,s)?M(M(this,s),i).length:0)}get hasMagic(){if(void 0!==M(this,o))return M(this,o);for(const t of M(this,i))if("string"!=typeof t&&(t.type||t.hasMagic))return N(this,o,!0);return M(this,o)}toString(){return void 0!==M(this,u)?M(this,u):N(this,u,this.type?this.type+"("+M(this,i).map((t=>t+"")).join("|")+")":M(this,i).map((t=>t+"")).join(""))}push(...e){for(const o of e)if(""!==o){if("string"!=typeof o&&!(o instanceof t&&M(o,s)===this))throw Error("invalid part: "+o);M(this,i).push(o)}}toJSON(){var t;const o=null===this.type?M(this,i).slice().map((t=>"string"==typeof t?t:t.toJSON())):[this.type,...M(this,i).map((t=>t.toJSON()))];return this.isStart()&&!this.type&&o.unshift([]),this.isEnd()&&(this===M(this,e)||M(M(this,e),a)&&"!"===(null==(t=M(this,s))?void 0:t.type))&&o.push({}),o}isStart(){var o;if(M(this,e)===this)return!0;if(!(null==(o=M(this,s))?void 0:o.isStart()))return!1;if(0===M(this,r))return!0;const n=M(this,s);for(let e=0;e<M(this,r);e++){const o=M(n,i)[e];if(!(o instanceof t&&"!"===o.type))return!1}return!0}isEnd(){var t,o,n;if(M(this,e)===this)return!0;if("!"===(null==(t=M(this,s))?void 0:t.type))return!0;if(!(null==(o=M(this,s))?void 0:o.isEnd()))return!1;if(!this.type)return null==(n=M(this,s))?void 0:n.isEnd();const l=M(this,s)?M(M(this,s),i).length:0;return M(this,r)===l-1}copyIn(t){this.push("string"==typeof t?t:t.clone(this))}clone(e){const o=new t(this.type,e);for(const t of M(this,i))o.copyIn(t);return o}static fromGlob(e,o={}){var n;const i=new t(null,void 0,o);return z(n=t,d,g).call(n,e,i,0,o),i}toMMPattern(){if(this!==M(this,e))return M(this,e).toMMPattern();const t=""+this,[n,i,s,r]=this.toRegExpSource();if(!(s||M(this,o)||M(this,c).nocase&&!M(this,c).nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()))return i;const l=(M(this,c).nocase?"i":"")+(r?"u":"");return Object.assign(RegExp(`^${n}$`,l),{_src:n,_glob:t})}get options(){return M(this,c)}toRegExpSource(r){var l;const u=null!=r?r:!!M(this,c).dot;if(M(this,e)===this&&z(this,p,h).call(this),!this.type){const c=this.isStart()&&this.isEnd(),f=M(this,i).map((e=>{var i;const[s,l,a,u]="string"==typeof e?z(i=t,d,b).call(i,e,M(this,o),c):e.toRegExpSource(r);return N(this,o,M(this,o)||a),N(this,n,M(this,n)||u),s})).join("");let p="";if(this.isStart()&&"string"==typeof M(this,i)[0]&&(1!==M(this,i).length||!yt.has(M(this,i)[0]))){const t=$t,e=u&&t.has(f.charAt(0))||f.startsWith("\\.")&&t.has(f.charAt(2))||f.startsWith("\\.\\.")&&t.has(f.charAt(4)),o=!u&&!r&&t.has(f.charAt(0));p=e?"(?!(?:^|/)\\.\\.?(?:$|/))":o?wt:""}let h="";return this.isEnd()&&M(M(this,e),a)&&"!"===(null==(l=M(this,s))?void 0:l.type)&&(h="(?:$|\\/)"),[p+f+h,vt(f),N(this,o,!!M(this,o)),M(this,n)]}const g="*"===this.type||"+"===this.type,m="!"===this.type?"(?:(?!(?:":"(?:";let w=z(this,p,v).call(this,u);if(this.isStart()&&this.isEnd()&&!w&&"!"!==this.type){const t=""+this;return N(this,i,[t]),this.type=null,N(this,o,void 0),[t,vt(""+this),!1,!1]}let $=!g||r||u?"":z(this,p,v).call(this,!0);$===w&&($=""),$&&(w=`(?:${w})(?:${$})*?`);let y="";return y="!"===this.type&&M(this,f)?(this.isStart()&&!u?wt:"")+St:m+w+("!"===this.type?"))"+(!this.isStart()||u||r?"":wt)+jt+")":"@"===this.type?")":"?"===this.type?")?":"+"===this.type&&$?")":"*"===this.type&&$?")?":")"+this.type),[y,vt(w),N(this,o,!!M(this,o)),M(this,n)]}};e=new WeakMap,o=new WeakMap,n=new WeakMap,i=new WeakMap,s=new WeakMap,r=new WeakMap,l=new WeakMap,a=new WeakMap,c=new WeakMap,u=new WeakMap,f=new WeakMap,p=new WeakSet,h=function(){if(this!==M(this,e))throw Error("should only call on root");if(M(this,a))return this;let t;for(N(this,a,!0);t=M(this,l).pop();){if("!"!==t.type)continue;let e=t,o=M(e,s);for(;o;){for(let n=M(e,r)+1;!o.type&&n<M(o,i).length;n++)for(const e of M(t,i)){if("string"==typeof e)throw Error("string part in extglob AST??");e.copyIn(M(o,i)[n])}e=o,o=M(e,s)}}return this},d=new WeakSet,g=function(t,e,n,s){var r,l;let a=!1,c=!1,u=-1,p=!1;if(null===e.type){let o=n,i="";for(;o<t.length;){const n=t.charAt(o++);if(a||"\\"===n)a=!a,i+=n;else if(c)o===u+1?"^"!==n&&"!"!==n||(p=!0):"]"!==n||o===u+2&&p||(c=!1),i+=n;else if("["!==n)if(s.noext||!mt(n)||"("!==t.charAt(o))i+=n;else{e.push(i),i="";const l=new Mt(n,e);o=z(r=Mt,d,g).call(r,t,l,o,s),e.push(l)}else c=!0,u=o,p=!1,i+=n}return e.push(i),o}let h=n+1,v=new Mt(null,e);const b=[];let m="";for(;h<t.length;){const o=t.charAt(h++);if(a||"\\"===o)a=!a,m+=o;else if(c)h===u+1?"^"!==o&&"!"!==o||(p=!0):"]"!==o||h===u+2&&p||(c=!1),m+=o;else if("["!==o)if(mt(o)&&"("===t.charAt(h)){v.push(m),m="";const e=new Mt(o,v);v.push(e),h=z(l=Mt,d,g).call(l,t,e,h,s)}else if("|"!==o){if(")"===o)return""===m&&0===M(e,i).length&&N(e,f,!0),v.push(m),m="",e.push(...b,v),h;m+=o}else v.push(m),m="",b.push(v),v=new Mt(null,e);else c=!0,u=h,p=!1,m+=o}return e.type=null,N(e,o,void 0),N(e,i,[t.substring(n-1)]),h},v=function(t){return M(this,i).map((e=>{if("string"==typeof e)throw Error("string type in extglob ast??");const[o,i,s,r]=e.toRegExpSource(t);return N(this,n,M(this,n)||r),o})).filter((t=>!(this.isStart()&&this.isEnd()&&!t))).join("|")},b=function(t,e,o=!1){let n=!1,i="",s=!1;for(let r=0;r<t.length;r++){const l=t.charAt(r);if(n)n=!1,i+=(kt.has(l)?"\\":"")+l;else if("\\"!==l){if("["===l){const[o,n,l,a]=gt(t,r);if(l){i+=o,s=s||n,r+=l-1,e=e||a;continue}}"*"!==l?"?"!==l?i+=xt(l):(i+=Ot,e=!0):(i+=o&&"*"===t?St:jt,e=!0)}else r===t.length-1?i+="\\\\":n=!0}return[i,vt(t),!!e,s]},E(Mt,d);var Et=Mt,Nt=(t,e,o={})=>(ut(e),!(!o.nocomment&&"#"===e.charAt(0))&&new ee(e,o).match(t)),zt=/^\*+([^+@!?\*\[\(]*)$/,Rt=t=>e=>!e.startsWith(".")&&e.endsWith(t),At=t=>e=>e.endsWith(t),Lt=t=>(t=t.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(t)),Pt=t=>(t=t.toLowerCase(),e=>e.toLowerCase().endsWith(t)),Wt=/^\*+\.\*+$/,Ct=t=>!t.startsWith(".")&&t.includes("."),It=t=>"."!==t&&".."!==t&&t.includes("."),Tt=/^\.\*+$/,_t=t=>"."!==t&&".."!==t&&t.startsWith("."),Bt=/^\*+$/,Ft=t=>0!==t.length&&!t.startsWith("."),Ht=t=>0!==t.length&&"."!==t&&".."!==t,Dt=/^\?+([^+@!?\*\[\(]*)?$/,Ut=([t,e=""])=>{const o=qt([t]);return e?(e=e.toLowerCase(),t=>o(t)&&t.toLowerCase().endsWith(e)):o},Vt=([t,e=""])=>{const o=Jt([t]);return e?(e=e.toLowerCase(),t=>o(t)&&t.toLowerCase().endsWith(e)):o},Gt=([t,e=""])=>{const o=Jt([t]);return e?t=>o(t)&&t.endsWith(e):o},Zt=([t,e=""])=>{const o=qt([t]);return e?t=>o(t)&&t.endsWith(e):o},qt=([t])=>{const e=t.length;return t=>t.length===e&&!t.startsWith(".")},Jt=([t])=>{const e=t.length;return t=>t.length===e&&"."!==t&&".."!==t},Yt="object"==typeof process&&process?"object"==typeof process.env&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix";Nt.sep="win32"===Yt?"\\":"/";var Kt=Symbol("globstar **");Nt.GLOBSTAR=Kt,Nt.filter=(t,e={})=>o=>Nt(o,t,e);var Qt=(t,e={})=>Object.assign({},t,e);Nt.defaults=t=>{if(!t||"object"!=typeof t||!Object.keys(t).length)return Nt;const e=Nt;return Object.assign(((o,n,i={})=>e(o,n,Qt(t,i))),{Minimatch:class extends e.Minimatch{constructor(e,o={}){super(e,Qt(t,o))}static defaults(o){return e.defaults(Qt(t,o)).Minimatch}},AST:class extends e.AST{constructor(e,o,n={}){super(e,o,Qt(t,n))}static fromGlob(o,n={}){return e.AST.fromGlob(o,Qt(t,n))}},unescape:(o,n={})=>e.unescape(o,Qt(t,n)),escape:(o,n={})=>e.escape(o,Qt(t,n)),filter:(o,n={})=>e.filter(o,Qt(t,n)),defaults:o=>e.defaults(Qt(t,o)),makeRe:(o,n={})=>e.makeRe(o,Qt(t,n)),braceExpand:(o,n={})=>e.braceExpand(o,Qt(t,n)),match:(o,n,i={})=>e.match(o,n,Qt(t,i)),sep:e.sep,GLOBSTAR:Kt})};var Xt=(t,e={})=>(ut(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:(0,ct.default)(t));Nt.braceExpand=Xt,Nt.makeRe=(t,e={})=>new ee(t,e).makeRe(),Nt.match=(t,e,o={})=>{const n=new ee(e,o);return t=t.filter((t=>n.match(t))),n.options.nonull&&!t.length&&t.push(e),t};var te=/[?*]|[+@!]\(.*?\)|\[|\]/,ee=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(t,e={}){ut(t),this.options=e=e||{},this.pattern=t,this.platform=e.platform||Yt,this.isWindows="win32"===this.platform,this.windowsPathsNoEscape=!!e.windowsPathsNoEscape||!1===e.allowWindowsEscape,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!e.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!e.nonegate,this.comment=!1,this.empty=!1,this.partial=!!e.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=void 0!==e.windowsNoMagicRoot?e.windowsNoMagicRoot:!(!this.isWindows||!this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(const t of this.set)for(const e of t)if("string"!=typeof e)return!0;return!1}debug(...t){}make(){const t=this.pattern,e=this.options;if(!e.nocomment&&"#"===t.charAt(0))return void(this.comment=!0);if(!t)return void(this.empty=!0);this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],e.debug&&(this.debug=(...t)=>console.error(...t)),this.debug(this.pattern,this.globSet);const o=this.globSet.map((t=>this.slashSplit(t)));this.globParts=this.preprocess(o),this.debug(this.pattern,this.globParts);let n=this.globParts.map((t=>{if(this.isWindows&&this.windowsNoMagicRoot){const e=!(""!==t[0]||""!==t[1]||"?"!==t[2]&&te.test(t[2])||te.test(t[3])),o=/^[a-z]:/i.test(t[0]);if(e)return[...t.slice(0,4),...t.slice(4).map((t=>this.parse(t)))];if(o)return[t[0],...t.slice(1).map((t=>this.parse(t)))]}return t.map((t=>this.parse(t)))}));if(this.debug(this.pattern,n),this.set=n.filter((t=>-1===t.indexOf(!1))),this.isWindows)for(let t=0;t<this.set.length;t++){const e=this.set[t];""===e[0]&&""===e[1]&&"?"===this.globParts[t][2]&&"string"==typeof e[3]&&/^[a-z]:$/i.test(e[3])&&(e[2]="?")}this.debug(this.pattern,this.set)}preprocess(t){if(this.options.noglobstar)for(let e=0;e<t.length;e++)for(let o=0;o<t[e].length;o++)"**"===t[e][o]&&(t[e][o]="*");const{optimizationLevel:e=1}=this.options;return e>=2?(t=this.firstPhasePreProcess(t),t=this.secondPhasePreProcess(t)):t=e>=1?this.levelOneOptimize(t):this.adjascentGlobstarOptimize(t),t}adjascentGlobstarOptimize(t){return t.map((t=>{let e=-1;for(;-1!==(e=t.indexOf("**",e+1));){let o=e;for(;"**"===t[o+1];)o++;o!==e&&t.splice(e,o-e)}return t}))}levelOneOptimize(t){return t.map((t=>0===(t=t.reduce(((t,e)=>{const o=t[t.length-1];return"**"===e&&"**"===o?t:".."===e&&o&&".."!==o&&"."!==o&&"**"!==o?(t.pop(),t):(t.push(e),t)}),[])).length?[""]:t))}levelTwoFileOptimize(t){Array.isArray(t)||(t=this.slashSplit(t));let e=!1;do{if(e=!1,!this.preserveMultipleSlashes){for(let o=1;o<t.length-1;o++){const n=t[o];1===o&&""===n&&""===t[0]||"."!==n&&""!==n||(e=!0,t.splice(o,1),o--)}"."!==t[0]||2!==t.length||"."!==t[1]&&""!==t[1]||(e=!0,t.pop())}let o=0;for(;-1!==(o=t.indexOf("..",o+1));){const n=t[o-1];n&&"."!==n&&".."!==n&&"**"!==n&&(e=!0,t.splice(o-1,2),o-=2)}}while(e);return 0===t.length?[""]:t}firstPhasePreProcess(t){let e=!1;do{e=!1;for(let o of t){let n=-1;for(;-1!==(n=o.indexOf("**",n+1));){let i=n;for(;"**"===o[i+1];)i++;i>n&&o.splice(n+1,i-n);const s=o[n+2],r=o[n+3];if(".."!==o[n+1])continue;if(!s||"."===s||".."===s||!r||"."===r||".."===r)continue;e=!0,o.splice(n,1);const l=o.slice(0);l[n]="**",t.push(l),n--}if(!this.preserveMultipleSlashes){for(let t=1;t<o.length-1;t++){const n=o[t];1===t&&""===n&&""===o[0]||"."!==n&&""!==n||(e=!0,o.splice(t,1),t--)}"."!==o[0]||2!==o.length||"."!==o[1]&&""!==o[1]||(e=!0,o.pop())}let i=0;for(;-1!==(i=o.indexOf("..",i+1));){const t=o[i-1];t&&"."!==t&&".."!==t&&"**"!==t&&(e=!0,o.splice(i-1,2,...1===i&&"**"===o[i+1]?["."]:[]),0===o.length&&o.push(""),i-=2)}}}while(e);return t}secondPhasePreProcess(t){for(let e=0;e<t.length-1;e++)for(let o=e+1;o<t.length;o++){const n=this.partsMatch(t[e],t[o],!this.preserveMultipleSlashes);n&&(t[e]=n,t[o]=[])}return t.filter((t=>t.length))}partsMatch(t,e,o=!1){let n=0,i=0,s=[],r="";for(;n<t.length&&i<e.length;)if(t[n]===e[i])s.push("b"===r?e[i]:t[n]),n++,i++;else if(o&&"**"===t[n]&&e[i]===t[n+1])s.push(t[n]),n++;else if(o&&"**"===e[i]&&t[n]===e[i+1])s.push(e[i]),i++;else if("*"!==t[n]||!e[i]||!this.options.dot&&e[i].startsWith(".")||"**"===e[i]){if("*"!==e[i]||!t[n]||!this.options.dot&&t[n].startsWith(".")||"**"===t[n])return!1;if("a"===r)return!1;r="b",s.push(e[i]),n++,i++}else{if("b"===r)return!1;r="a",s.push(t[n]),n++,i++}return t.length===e.length&&s}parseNegate(){if(this.nonegate)return;const t=this.pattern;let e=!1,o=0;for(let n=0;n<t.length&&"!"===t.charAt(n);n++)e=!e,o++;o&&(this.pattern=t.slice(o)),this.negate=e}matchOne(t,e,o=!1){const n=this.options;if(this.isWindows){const o="string"==typeof t[0]&&/^[a-z]:$/i.test(t[0]),n=!o&&""===t[0]&&""===t[1]&&"?"===t[2]&&/^[a-z]:$/i.test(t[3]),i="string"==typeof e[0]&&/^[a-z]:$/i.test(e[0]),s=n?3:o?0:void 0,r=!i&&""===e[0]&&""===e[1]&&"?"===e[2]&&"string"==typeof e[3]&&/^[a-z]:$/i.test(e[3])?3:i?0:void 0;if("number"==typeof s&&"number"==typeof r){const[o,n]=[t[s],e[r]];o.toLowerCase()===n.toLowerCase()&&(e[r]=o,r>s?e=e.slice(r):s>r&&(t=t.slice(s)))}}const{optimizationLevel:i=1}=this.options;i>=2&&(t=this.levelTwoFileOptimize(t)),this.debug("matchOne",this,{file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var s=0,r=0,l=t.length,a=e.length;s<l&&r<a;s++,r++){this.debug("matchOne loop");var c=e[r],u=t[s];if(this.debug(e,c,u),!1===c)return!1;if(c===Kt){this.debug("GLOBSTAR",[e,c,u]);var f=s,p=r+1;if(p===a){for(this.debug("** at the end");s<l;s++)if("."===t[s]||".."===t[s]||!n.dot&&"."===t[s].charAt(0))return!1;return!0}for(;f<l;){var h=t[f];if(this.debug("\nglobstar while",t,f,e,p,h),this.matchOne(t.slice(f),e.slice(p),o))return this.debug("globstar found match!",f,l,h),!0;if("."===h||".."===h||!n.dot&&"."===h.charAt(0)){this.debug("dot detected!",t,f,e,p);break}this.debug("globstar swallow a segment, and continue"),f++}return!(!o||(this.debug("\n>>> no match, partial?",t,f,e,p),f!==l))}let i;if("string"==typeof c?(i=u===c,this.debug("string match",c,u,i)):(i=c.test(u),this.debug("pattern match",c,u,i)),!i)return!1}if(s===l&&r===a)return!0;if(s===l)return o;if(r===a)return s===l-1&&""===t[s];throw Error("wtf?")}braceExpand(){return Xt(this.pattern,this.options)}parse(t){ut(t);const e=this.options;if("**"===t)return Kt;if(""===t)return"";let o,n=null;(o=t.match(Bt))?n=e.dot?Ht:Ft:(o=t.match(zt))?n=(e.nocase?e.dot?Pt:Lt:e.dot?At:Rt)(o[1]):(o=t.match(Dt))?n=(e.nocase?e.dot?Vt:Ut:e.dot?Gt:Zt)(o):(o=t.match(Wt))?n=e.dot?It:Ct:(o=t.match(Tt))&&(n=_t);const i=Et.fromGlob(t,this.options).toMMPattern();return n&&"object"==typeof i&&Reflect.defineProperty(i,"test",{value:n}),i}makeRe(){if(this.regexp||!1===this.regexp)return this.regexp;const t=this.set;if(!t.length)return this.regexp=!1,this.regexp;const e=this.options,o=e.noglobstar?"[^/]*?":e.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",n=new Set(e.nocase?["i"]:[]);let i=t.map((t=>{const e=t.map((t=>{if(t instanceof RegExp)for(const e of t.flags.split(""))n.add(e);return"string"==typeof t?(t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"))(t):t===Kt?Kt:t._src}));return e.forEach(((t,n)=>{const i=e[n+1],s=e[n-1];t===Kt&&s!==Kt&&(void 0===s?void 0!==i&&i!==Kt?e[n+1]="(?:\\/|"+o+"\\/)?"+i:e[n]=o:void 0===i?e[n-1]=s+"(?:\\/|"+o+")?":i!==Kt&&(e[n-1]=s+"(?:\\/|\\/"+o+"\\/)"+i,e[n+1]=Kt))})),e.filter((t=>t!==Kt)).join("/")})).join("|");const[s,r]=t.length>1?["(?:",")"]:["",""];i="^"+s+i+r+"$",this.negate&&(i="^(?!"+i+").+$");try{this.regexp=RegExp(i,[...n].join(""))}catch(t){this.regexp=!1}return this.regexp}slashSplit(t){return this.preserveMultipleSlashes?t.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(t)?["",...t.split(/\/+/)]:t.split(/\/+/)}match(t,e=this.partial){if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return""===t;if("/"===t&&e)return!0;const o=this.options;this.isWindows&&(t=t.split("\\").join("/"));const n=this.slashSplit(t);this.debug(this.pattern,"split",n);const i=this.set;this.debug(this.pattern,"set",i);let s=n[n.length-1];if(!s)for(let t=n.length-2;!s&&t>=0;t--)s=n[t];for(let t=0;t<i.length;t++){const r=i[t];let l=n;if(o.matchBase&&1===r.length&&(l=[s]),this.matchOne(l,r,e))return!!o.flipNegate||!this.negate}return!o.flipNegate&&this.negate}static defaults(t){return Nt.defaults(t).Minimatch}};Nt.AST=Et,Nt.Minimatch=ee,Nt.escape=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/[?*()[\]]/g,"[$&]"):t.replace(/[?*()[\]\\]/g,"\\$&"),Nt.unescape=vt;var oe=class t{static fromLocalValue(e){const o=e[W],n=C in e?e[C]:void 0;switch(o){case"string":case"boolean":return n;case"bigint":return BigInt(n);case"undefined":return;case"null":return null;case"number":return"NaN"===n?NaN:"-0"===n?-0:"Infinity"===n?1/0:"-Infinity"===n?-1/0:n;case"array":return n.map((e=>t.fromLocalValue(e)));case"date":return new Date(n);case"map":const e=new Map;for(const[o,i]of n){const n="object"==typeof o&&null!==o?t.fromLocalValue(o):o,s=t.fromLocalValue(i);e.set(n,s)}return e;case"object":const i={};for(const[e,o]of n)i[e]=t.fromLocalValue(o);return i;case"regexp":const{pattern:s,flags:r}=n;return RegExp(s,r);case"set":const l=new Set;for(const e of n)l.add(t.fromLocalValue(e));return l;case"symbol":return Symbol(n);default:throw Error("Unsupported type: "+o)}}static fromLocalValueArray(e){return e.map((e=>t.fromLocalValue(e)))}static isLocalValueObject(t){if("object"!=typeof t||null===t)return!1;if(!t.hasOwnProperty(W))return!1;const e=t[W];return!!Object.values({...L,...P}).includes(e)&&("null"===e||"undefined"===e||t.hasOwnProperty(C))}};((t,e)=>{for(var o in e)w(t,o,{get:e[o],enumerable:!0})})({},{err:()=>ie,map:()=>se,ok:()=>ne,unwrap:()=>le,unwrapErr:()=>ae});var ne=t=>({isOk:!0,isErr:!1,value:t}),ie=t=>({isOk:!1,isErr:!0,value:t});function se(t,e){if(t.isOk){const o=e(t.value);return o instanceof Promise?o.then((t=>ne(t))):ne(o)}if(t.isErr)return ie(t.value);throw"should never get here"}var re,le=t=>{if(t.isOk)return t.value;throw t.value},ae=t=>{if(t.isErr)return t.value;throw t.value};function ce(){var e;const o=this.attachShadow({mode:"open"});if(void 0===re&&(re=null!=(e=function(t){if(!Y)return;const e=new CSSStyleSheet;return e.replaceSync(t),e}(t))?e:null),re)K?o.adoptedStyleSheets.push(re):o.adoptedStyleSheets=[...o.adoptedStyleSheets,re];else if(!Y){const e=document.createElement("style");e.innerHTML=t,o.prepend(e)}}var ue=t=>{const e=be(t,"childNodes");t.tagName&&t.tagName.includes("-")&&t["s-cr"]&&"SLOT-FB"!==t.tagName&&fe(e,t.tagName).forEach((t=>{1===t.nodeType&&"SLOT-FB"===t.tagName&&(t.hidden=!!pe(t,ge(t),!1).length)}));let o=0;for(o=0;o<e.length;o++){const t=e[o];1===t.nodeType&&be(t,"childNodes").length&&ue(t)}};function fe(t,e,o){let n,i=0,s=[];for(;i<t.length;i++){if(n=t[i],n["s-sr"]&&(!e||n["s-hn"]===e)&&(void 0===o||ge(n)===o)&&(s.push(n),void 0!==o))return s;s=[...s,...fe(n.childNodes,e,o)]}return s}var pe=(t,e,o=!0)=>{const n=[];(o&&t["s-sr"]||!t["s-sr"])&&n.push(t);let i=t;for(;i=i.nextSibling;)ge(i)!==e||!o&&i["s-sr"]||n.push(i);return n},he=(t,e)=>1===t.nodeType?null===t.getAttribute("slot")&&""===e||t.getAttribute("slot")===e:t["s-sn"]===e||""===e,de=(t,e,o,n)=>{if(t["s-ol"]&&t["s-ol"].isConnected)return;const i=document.createTextNode("");if(i["s-nr"]=t,!e["s-cr"]||!e["s-cr"].parentNode)return;const s=e["s-cr"].parentNode,r=be(s,"appendChild");if(void 0!==n){i["s-oo"]=n;const t=be(s,"childNodes"),e=[i];t.forEach((t=>{t["s-nr"]&&e.push(t)})),e.sort(((t,e)=>!t["s-oo"]||t["s-oo"]<(e["s-oo"]||0)?-1:!e["s-oo"]||e["s-oo"]<t["s-oo"]?1:0)),e.forEach((t=>r.call(s,t)))}else r.call(s,i);t["s-ol"]=i,t["s-sh"]=e["s-hn"]},ge=t=>"string"==typeof t["s-sn"]?t["s-sn"]:1===t.nodeType&&t.getAttribute("slot")||void 0;function ve(t){if(t.assignedElements||t.assignedNodes||!t["s-sr"])return;const e=e=>function(t){const o=[],n=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 i=this["s-cr"].parentElement;return(i.__childNodes?i.childNodes:(t=>{const e=[];for(let o=0;o<t.length;o++){const n=t[o]["s-nr"]||void 0;n&&n.isConnected&&e.push(n)}return e})(i.childNodes)).forEach((t=>{n===ge(t)&&o.push(t)})),e?o.filter((t=>1===t.nodeType)):o}.bind(t);t.assignedElements=e(!0),t.assignedNodes=e(!1)}function be(t,e){if("__"+e in t){const o=t["__"+e];return"function"!=typeof o?o:o.bind(t)}return"function"!=typeof t[e]?t[e]:t[e].bind(t)}var me=new WeakMap,we=(t,e,o)=>{let n=H.get(t);Y&&o?(n=n||new CSSStyleSheet,"string"==typeof n?n=e:n.replaceSync(e)):n=e,H.set(t,n)},$e=(t,e)=>{var o,n,i;const s=ye(e),r=H.get(s);if(!Z.document)return s;if(t=11===t.nodeType?t:Z.document,r)if("string"==typeof r){let i,l=me.get(t=t.head||t);l||me.set(t,l=new Set);const a=t.querySelector(`[${U}="${s}"]`);if(a)a.innerHTML=r;else if(!l.has(s)){i=Z.document.createElement("style"),i.innerHTML=r;const a=null!=(o=J.p)?o:function(){var t,e,o;return null!=(o=null==(e=null==(t=Z.document.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:e.getAttribute("content"))?o:void 0}();if(null!=a&&i.setAttribute("nonce",a),!(1&e.l))if("HEAD"===t.nodeName){const e=t.querySelectorAll("link[rel=preconnect]"),o=e.length>0?e[e.length-1].nextSibling:t.querySelector("style");t.insertBefore(i,(null==o?void 0:o.parentNode)===t?o:null)}else if("host"in t)if(Y){const e=new(null!=(n=t.defaultView)?n:t.ownerDocument.defaultView).CSSStyleSheet;e.replaceSync(r),K?t.adoptedStyleSheets.unshift(e):t.adoptedStyleSheets=[e,...t.adoptedStyleSheets]}else{const e=t.querySelector("style");e?e.innerHTML=r+e.innerHTML:t.prepend(i)}else t.append(i);1&e.l&&t.insertBefore(i,null),4&e.l&&(i.innerHTML+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),l&&l.add(s)}}else{let e=me.get(t);if(e||me.set(t,e=new Set),!e.has(s)){const o=null!=(i=t.defaultView)?i:t.ownerDocument.defaultView;let n;if(r.constructor===o.CSSStyleSheet)n=r;else{n=new o.CSSStyleSheet;for(let t=0;t<r.cssRules.length;t++)n.insertRule(r.cssRules[t].cssText,t)}K?t.adoptedStyleSheets.push(n):t.adoptedStyleSheets=[...t.adoptedStyleSheets,n],e.add(s)}}return s},ye=t=>"sc-"+t.h,ke=t=>t.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{"),xe=(t,e,...o)=>{let n=null,i=null,s=null,r=!1,l=!1;const a=[],c=e=>{for(let o=0;o<e.length;o++)n=e[o],Array.isArray(n)?c(n):null!=n&&"boolean"!=typeof n&&((r="function"!=typeof t&&!at(n))&&(n+=""),r&&l?a[a.length-1].v+=n:a.push(r?Oe(null,n):n),l=r)};if(c(o),e){e.key&&(i=e.key),e.name&&(s=e.name);{const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}}if("function"==typeof t)return t(null===e?{}:e,a,Se);const u=Oe(t,null);return u.m=e,a.length>0&&(u.$=a),u.k=i,u.O=s,u},Oe=(t,e)=>({l:0,j:t,v:e,S:null,$:null,m:null,k:null,O:null}),je={},Se={forEach:(t,e)=>t.map(Me).forEach(e),map:(t,e)=>t.map(Me).map(e).map(Ee)},Me=t=>({vattrs:t.m,vchildren:t.$,vkey:t.k,vname:t.O,vtag:t.j,vtext:t.v}),Ee=t=>{if("function"==typeof t.vtag){const e={...t.vattrs};return t.vkey&&(e.key=t.vkey),t.vname&&(e.name=t.vname),xe(t.vtag,e,...t.vchildren||[])}const e=Oe(t.vtag,t.vtext);return e.m=t.vattrs,e.$=t.vchildren,e.k=t.vkey,e.O=t.vname,e},Ne=(t,e,o,n,i,s,r,l=[])=>{let a,c,u,f;if(1===s.nodeType){if(a=s.getAttribute(V),a&&(c=a.split("."),c[0]===r||"0"===c[0])){u=Re({l:0,M:c[0],N:c[1],R:c[2],A:c[3],j:s.tagName.toLowerCase(),S:s,m:{class:s.className||""}}),e.push(u),s.removeAttribute(V),t.$||(t.$=[]);const i=u.S.getAttribute("s-sn");"string"==typeof i&&("slot-fb"===u.j&&Ae(i,c[2],u,s,t,e,o,n,l),u.S["s-sn"]=i,u.S.removeAttribute("s-sn")),void 0!==u.A&&(t.$[u.A]=u),t=u,n&&"0"===u.R&&(n[u.A]=u.S)}if(s.shadowRoot)for(f=s.shadowRoot.childNodes.length-1;f>=0;f--)Ne(t,e,o,n,i,s.shadowRoot.childNodes[f],r,l);const p=s.__childNodes||s.childNodes;for(f=p.length-1;f>=0;f--)Ne(t,e,o,n,i,p[f],r,l)}else if(8===s.nodeType)c=s.nodeValue.split("."),(c[1]===r||"0"===c[1])&&(a=c[0],u=Re({M:c[1],N:c[2],R:c[3],A:c[4]||"0",S:s,m:null,$:null,k:null,O:null,j:null,v:null}),"t"===a?(u.S=Pe(s,3),u.S&&3===u.S.nodeType&&(u.v=u.S.textContent,e.push(u),s.remove(),r===u.M&&(t.$||(t.$=[]),t.$[u.A]=u),n&&"0"===u.R&&(n[u.A]=u.S))):"c"===a?(u.S=Pe(s,8),u.S&&8===u.S.nodeType&&(e.push(u),s.remove())):u.M===r&&("s"===a?Ae(s["s-sn"]=c[5]||"",c[2],u,s,t,e,o,n,l):"r"===a&&(n?s.remove():(i["s-cr"]=s,s["s-cn"]=!0))));else if(t&&"style"===t.j){const e=Oe(null,s.textContent);e.S=s,e.A="0",t.$=[e]}return t},ze=(t,e)=>{if(1===t.nodeType){const o=t[D]||t.getAttribute(D);o&&e.set(o,t);let n=0;if(t.shadowRoot)for(;n<t.shadowRoot.childNodes.length;n++)ze(t.shadowRoot.childNodes[n],e);const i=t.__childNodes||t.childNodes;for(n=0;n<i.length;n++)ze(i[n],e)}else if(8===t.nodeType){const o=t.nodeValue.split(".");"o"===o[0]&&(e.set(o[1]+"."+o[2],t),t.nodeValue="",t["s-en"]=o[3])}},Re=t=>({l:0,M:null,N:null,R:null,A:"0",S:null,m:null,$:null,k:null,O:null,j:null,v:null,...t});function Ae(t,e,o,n,i,s,r,l,a){n["s-sr"]=!0,o.O=t||null,o.j="slot";const c=(null==i?void 0:i.S)?i.S["s-id"]||i.S.getAttribute("s-id"):"";if(l&&Z.document){const s=o.S=Z.document.createElement(o.j);o.O&&o.S.setAttribute("name",t),i.S.shadowRoot&&c&&c!==o.M?be(i.S,"insertBefore")(s,be(i.S,"children")[0]):be(be(n,"parentNode"),"insertBefore")(s,n),Le(a,e,t,n,o.M),n.remove(),"0"===o.R&&(l[o.A]=o.S)}else{const s=o.S,r=c&&c!==o.M&&i.S.shadowRoot;Le(a,e,t,n,r?c:o.M),ve(n),r&&i.S.insertBefore(s,i.S.children[0])}s.push(o),r.push(o),i.$||(i.$=[]),i.$[o.A]=o}var Le=(t,e,o,n,i)=>{var s,r;let l=n.nextSibling;if(t[e]=t[e]||[],l&&!(null==(s=l.nodeValue)?void 0:s.startsWith("s.")))do{!l||(l.getAttribute&&l.getAttribute("slot")||l["s-sn"])!==o&&(""!==o||l["s-sn"]||l.getAttribute&&l.getAttribute("slot")||8!==l.nodeType&&3!==l.nodeType)||(l["s-sn"]=o,t[e].push({slot:n,node:l,hostId:i})),l=null==l?void 0:l.nextSibling}while(l&&!(null==(r=l.nodeValue)?void 0:r.startsWith("s.")))},Pe=(t,e)=>{let o=t;do{o=o.nextSibling}while(o&&(o.nodeType!==e||!o.nodeValue));return o},We=t=>{const e=(t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"))(t);return RegExp(`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${e}))(${e}\\b)`,"g")};We("::slotted"),We(":host"),We(":host-context");var Ce,Ie,Te=(t,e)=>"string"==typeof t&&t.startsWith(I)?t=function(t){return"string"==typeof t&&t.startsWith(I)?oe.fromLocalValue(JSON.parse(atob(t.slice(11)))):t}(t):null==t||at(t)?t:4&e?"false"!==t&&(""===t||!!t):2&e?"string"==typeof t?parseFloat(t):"number"==typeof t?t:NaN:1&e?t+"":t,_e=(t,e)=>{const o=t;return{emit:t=>Be(o,e,{bubbles:!0,composed:!0,cancelable:!0,detail:t})}},Be=(t,e,o)=>{const n=J.ce(e,o);return t.dispatchEvent(n),n},Fe=(t,e,o,n,i,s,r)=>{if(o===n)return;let l=B(t,e),a=e.toLowerCase();if("class"===e){const e=t.classList,i=De(o);let s=De(n);if((t["s-si"]||t["s-sc"])&&r){const o=t["s-sc"]||t["s-si"];s.push(o),i.forEach((t=>{t.startsWith(o)&&s.push(t)})),s=[...new Set(s)].filter((t=>t)),e.add(...s)}else e.remove(...i.filter((t=>t&&!s.includes(t)))),e.add(...s.filter((t=>t&&!i.includes(t))))}else if("style"===e){for(const e in o)n&&null!=n[e]||(e.includes("-")?t.style.removeProperty(e):t.style[e]="");for(const e in n)o&&n[e]===o[e]||(e.includes("-")?t.style.setProperty(e,n[e]):t.style[e]=n[e])}else if("key"===e);else if("ref"===e)n&&n(t);else if(t.__lookupSetter__(e)||"o"!==e[0]||"n"!==e[1]){const r=at(n);if((l||r&&null!==n)&&!i)try{if(t.tagName.includes("-"))t[e]!==n&&(t[e]=n);else{const i=null==n?"":n;"list"===e?l=!1:null!=o&&t[e]==i||("function"==typeof t.__lookupSetter__(e)?t[e]=i:t.setAttribute(e,i))}}catch(t){}let c=!1;a!==(a=a.replace(/^xlink\:?/,""))&&(e=a,c=!0),null==n||!1===n?!1===n&&""!==t.getAttribute(e)||(c?t.removeAttributeNS(G,e):t.removeAttribute(e)):(!l||4&s||i)&&!r&&1===t.nodeType&&(n=!0===n?"":n,c?t.setAttributeNS(G,e,n):t.setAttribute(e,n))}else if(e="-"===e[2]?e.slice(3):B(Z,a)?a.slice(2):a[2]+e.slice(3),o||n){const i=e.endsWith(Ue);e=e.replace(Ve,""),o&&J.rel(t,e,o,i),n&&J.ael(t,e,n,i)}},He=/\s/,De=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(He):[]),Ue="Capture",Ve=RegExp(Ue+"$"),Ge=(t,e,o,n)=>{const i=11===e.S.nodeType&&e.S.host?e.S.host:e.S,s=t&&t.m||{},r=e.m||{};for(const t of Ze(Object.keys(s)))t in r||Fe(i,t,s[t],void 0,o,e.l,n);for(const t of Ze(Object.keys(r)))Fe(i,t,s[t],r[t],o,e.l,n)};function Ze(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var qe=!1,Je=!1,Ye=!1,Ke=!1,Qe=(t,e,o)=>{var n;const i=e.$[o];let s,r,l,a=0;if(qe||(Ye=!0,"slot"===i.j&&(i.l|=i.$?2:1)),null!==i.v)s=i.S=Z.document.createTextNode(i.v);else if(1&i.l)s=i.S=Z.document.createTextNode(""),Ge(null,i,Ke);else{if(Ke||(Ke="svg"===i.j),!Z.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=i.S=Z.document.createElementNS(Ke?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!qe&&2&i.l?"slot-fb":i.j),Ke&&"foreignObject"===i.j&&(Ke=!1),Ge(null,i,Ke),i.$){const e="template"===i.j?s.content:s;for(a=0;a<i.$.length;++a)r=Qe(t,i,a),r&&e.appendChild(r)}"svg"===i.j?Ke=!1:"foreignObject"===s.tagName&&(Ke=!0)}return s["s-hn"]=Ie,3&i.l&&(s["s-sr"]=!0,s["s-cr"]=Ce,s["s-sn"]=i.O||"",s["s-rf"]=null==(n=i.m)?void 0:n.ref,ve(s),l=t&&t.$&&t.$[o],l&&l.j===i.j&&t.S&&Xe(t.S)),s},Xe=t=>{J.l|=1;const e=t.closest(Ie.toLowerCase());if(null!=e){const o=Array.from(e.__childNodes||e.childNodes).find((t=>t["s-cr"])),n=Array.from(t.__childNodes||t.childNodes);for(const t of o?n.reverse():n)null!=t["s-sh"]&&(co(e,t,null!=o?o:null),t["s-sh"]=void 0,Ye=!0)}J.l&=-2},to=(t,e)=>{J.l|=1;const o=Array.from(t.__childNodes||t.childNodes);if(t["s-sr"]){let e=t;for(;e=e.nextSibling;)e&&e["s-sn"]===t["s-sn"]&&e["s-sh"]===Ie&&o.push(e)}for(let t=o.length-1;t>=0;t--){const n=o[t];n["s-hn"]!==Ie&&n["s-ol"]&&(co(io(n).parentNode,n,io(n)),n["s-ol"].remove(),n["s-ol"]=void 0,n["s-sh"]=void 0,Ye=!0),e&&to(n,e)}J.l&=-2},eo=(t,e,o,n,i,s)=>{let r,l=t["s-cr"]&&t["s-cr"].parentNode||t;for(l.shadowRoot&&l.tagName===Ie&&(l=l.shadowRoot),"template"===o.j&&(l=l.content);i<=s;++i)n[i]&&(r=Qe(null,o,i),r&&(n[i].S=r,co(l,r,io(e))))},oo=(t,e,o)=>{for(let n=e;n<=o;++n){const e=t[n];if(e){const t=e.S;ao(e),t&&(Je=!0,t["s-ol"]?t["s-ol"].remove():to(t,!0),t.remove())}}},no=(t,e,o=!1)=>t.j===e.j&&("slot"===t.j?t.O===e.O:o?(o&&!t.k&&e.k&&(t.k=e.k),!0):t.k===e.k),io=t=>t&&t["s-ol"]||t,so=(t,e,o=!1)=>{const n=e.S=t.S,i=t.$,s=e.$,r=e.j,l=e.v;let a;null===l?(Ke="svg"===r||"foreignObject"!==r&&Ke,"slot"!==r||qe||t.O!==e.O&&(e.S["s-sn"]=e.O||"",Xe(e.S.parentElement)),Ge(t,e,Ke,o),null!==i&&null!==s?((t,e,o,n,i=!1)=>{let s,r,l=0,a=0,c=0,u=0,f=e.length-1,p=e[0],h=e[f],d=n.length-1,g=n[0],v=n[d];const b="template"===o.j?t.content:t;for(;l<=f&&a<=d;)if(null==p)p=e[++l];else if(null==h)h=e[--f];else if(null==g)g=n[++a];else if(null==v)v=n[--d];else if(no(p,g,i))so(p,g,i),p=e[++l],g=n[++a];else if(no(h,v,i))so(h,v,i),h=e[--f],v=n[--d];else if(no(p,v,i))"slot"!==p.j&&"slot"!==v.j||to(p.S.parentNode,!1),so(p,v,i),co(b,p.S,h.S.nextSibling),p=e[++l],v=n[--d];else if(no(h,g,i))"slot"!==p.j&&"slot"!==v.j||to(h.S.parentNode,!1),so(h,g,i),co(b,h.S,p.S),h=e[--f],g=n[++a];else{for(c=-1,u=l;u<=f;++u)if(e[u]&&null!==e[u].k&&e[u].k===g.k){c=u;break}c>=0?(r=e[c],r.j!==g.j?s=Qe(e&&e[a],o,c):(so(r,g,i),e[c]=void 0,s=r.S),g=n[++a]):(s=Qe(e&&e[a],o,a),g=n[++a]),s&&co(io(p.S).parentNode,s,io(p.S))}l>f?eo(t,null==n[d+1]?null:n[d+1].S,o,n,a,d):a>d&&oo(e,l,f)})(n,i,e,s,o):null!==s?(null!==t.v&&(n.textContent=""),eo(n,null,e,s,0,s.length-1)):o||null===i?o&&null!==i&&null===s&&(e.$=i):oo(i,0,i.length-1),Ke&&"svg"===r&&(Ke=!1)):(a=n["s-cr"])?a.parentNode.textContent=l:t.v!==l&&(n.data=l)},ro=[],lo=t=>{let e,o,n;const i=t.__childNodes||t.childNodes;for(const t of i){if(t["s-sr"]&&(e=t["s-cr"])&&e.parentNode){o=e.parentNode.__childNodes||e.parentNode.childNodes;const i=t["s-sn"];for(n=o.length-1;n>=0;n--)if(e=o[n],!(e["s-cn"]||e["s-nr"]||e["s-hn"]===t["s-hn"]||e["s-sh"]&&e["s-sh"]===t["s-hn"]))if(he(e,i)){let o=ro.find((t=>t.L===e));Je=!0,e["s-sn"]=e["s-sn"]||i,o?(o.L["s-sh"]=t["s-hn"],o.P=t):(e["s-sh"]=t["s-hn"],ro.push({P:t,L:e})),e["s-sr"]&&ro.map((t=>{he(t.L,e["s-sn"])&&(o=ro.find((t=>t.L===e)),o&&!t.P&&(t.P=o.P))}))}else ro.some((t=>t.L===e))||ro.push({L:e})}1===t.nodeType&&lo(t)}},ao=t=>{t.m&&t.m.ref&&t.m.ref(null),t.$&&t.$.map(ao)},co=(t,e,o,n)=>{if("string"==typeof e["s-sn"]){t.insertBefore(e,o);const{slotNode:i}=function(t,e){var o;if(!(e=e||(null==(o=t["s-ol"])?void 0:o.parentElement)))return{slotNode:null,slotName:""};const n=t["s-sn"]=ge(t)||"";return{slotNode:fe(be(e,"childNodes"),e.tagName,n)[0],slotName:n}}(e);return i&&!n&&function(t){t.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1}))}(i),e}return t.__insertBefore?t.__insertBefore(e,o):null==t?void 0:t.insertBefore(e,o)},uo=(t,e,o=!1)=>{var n,i,s,r,l;const a=t.$hostElement$,c=t.o,u=t.W||Oe(null,null),f=(t=>t&&t.j===je)(e)?e:xe(null,null,e);if(Ie=a.tagName,c.C&&(f.m=f.m||{},c.C.forEach((([t,e])=>{f.m[e]=a[t]}))),o&&f.m)for(const t of Object.keys(f.m))a.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(f.m[t]=a[t]);if(f.j=null,f.l|=4,t.W=f,f.S=u.S=a.shadowRoot||a,qe=!(!(1&c.l)||128&c.l),Ce=a["s-cr"],Je=!1,so(u,f,o),J.l|=1,Ye){lo(f.S);for(const t of ro){const e=t.L;if(!e["s-ol"]&&Z.document){const t=Z.document.createTextNode("");t["s-nr"]=e,co(e.parentNode,e["s-ol"]=t,e,o)}}for(const t of ro){const e=t.L,l=t.P;if(1===e.nodeType&&o&&(e["s-ih"]=null!=(n=e.hidden)&&n),l){const t=l.parentNode;let n=l.nextSibling;if(n&&1===n.nodeType){let o=null==(i=e["s-ol"])?void 0:i.previousSibling;for(;o;){let i=null!=(s=o["s-nr"])?s:null;if(i&&i["s-sn"]===e["s-sn"]&&t===(i.__parentNode||i.parentNode)){for(i=i.nextSibling;i===e||(null==i?void 0:i["s-sr"]);)i=null==i?void 0:i.nextSibling;if(!i||!i["s-nr"]){n=i;break}}o=o.previousSibling}}if((!n&&t!==(e.__parentNode||e.parentNode)||(e.__nextSibling||e.nextSibling)!==n)&&e!==n){if(co(t,e,n,o),8===e.nodeType&&e.nodeValue.startsWith("s-nt-")){const t=Z.document.createTextNode(e.nodeValue.replace(/^s-nt-/,""));t["s-hn"]=e["s-hn"],t["s-sn"]=e["s-sn"],t["s-sh"]=e["s-sh"],t["s-sr"]=e["s-sr"],t["s-ol"]=e["s-ol"],t["s-ol"]["s-nr"]=t,co(e.parentNode,t,e,o),e.parentNode.removeChild(e)}1===e.nodeType&&"SLOT-FB"!==e.tagName&&(e.hidden=null!=(r=e["s-ih"])&&r)}e&&"function"==typeof l["s-rf"]&&l["s-rf"](l)}else 1===e.nodeType&&(e.hidden=!0)}}if(Je&&ue(f.S),J.l&=-2,ro.length=0,!qe&&!(1&c.l)&&a["s-cr"]){const t=f.S.__childNodes||f.S.childNodes;for(const e of t)if(e["s-hn"]!==Ie&&!e["s-sh"])if(o&&null==e["s-ih"]&&(e["s-ih"]=null!=(l=e.hidden)&&l),1===e.nodeType)e.hidden=!0;else if(3===e.nodeType&&e.nodeValue.trim()){const t=Z.document.createComment("s-nt-"+e.nodeValue);t["s-sn"]=e["s-sn"],co(e.parentNode,t,e,o),e.parentNode.removeChild(e)}}Ce=void 0},fo=(t,e)=>{if(e&&!t.I&&e["s-p"]){const o=e["s-p"].push(new Promise((n=>t.I=()=>{e["s-p"].splice(o-1,1),n()})))}},po=(t,e)=>{if(t.l|=16,4&t.l)return void(t.l|=512);fo(t,t.T);const o=()=>ho(t,e);if(!e)return st(o);queueMicrotask((()=>{o()}))},ho=(t,e)=>{const o=t.$hostElement$,n=o;if(!n)throw Error(`Can't render component <${o.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 i;return i=yo(n,e?"componentWillLoad":"componentWillUpdate",void 0,o),i=go(i,(()=>yo(n,"componentWillRender",void 0,o))),go(i,(()=>bo(t,n,e)))},go=(t,e)=>vo(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),vo=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,bo=async(t,e,o)=>{var n;const i=t.$hostElement$,s=i["s-rc"];o&&(t=>{const e=t.o,o=t.$hostElement$,n=e.l,i=$e(o.shadowRoot?o.shadowRoot:o.getRootNode(),e);10&n&&(o["s-sc"]=i,o.classList.add(i+"-h"))})(t);mo(t,e,i,o),s&&(s.map((t=>t())),i["s-rc"]=void 0);{const e=null!=(n=i["s-p"])?n:[],o=()=>wo(t);0===e.length?o():(Promise.all(e).then(o),t.l|=4,e.length=0)}},mo=(t,e,o,n)=>{try{e=e.render&&e.render(),t.l&=-17,t.l|=2,uo(t,e,n)}catch(e){F(e,t.$hostElement$)}return null},wo=t=>{const e=t.$hostElement$,o=e,n=t.T;yo(o,"componentDidRender",void 0,e),64&t.l?yo(o,"componentDidUpdate",void 0,e):(t.l|=64,ko(e),yo(o,"componentDidLoad",void 0,e),t._(e),n||$o()),t.I&&(t.I(),t.I=void 0),512&t.l&&it((()=>po(t,!1))),t.l&=-517},$o=()=>{var t;it((()=>Be(Z,"appload",{detail:{namespace:"post-components"}}))),(null==(t=J.B)?void 0:t.size)&&J.B.clear()},yo=(t,e,o,n)=>{if(t&&t[e])try{return t[e](o)}catch(t){F(t,n)}},ko=t=>t.setAttribute(null!="data-hydrated"?"data-hydrated":"hydrated",""),xo=(t,e,o,n)=>{const i=_(t);if(!i)return;const s=t,r=i.i.get(e),l=i.l,a=s;if(!((o=Te(o,n.t[e][0]))===r||Number.isNaN(r)&&Number.isNaN(o))){if(i.i.set(e,o),n.F){const t=n.F[e];t&&t.map((t=>{try{const[[n,s]]=Object.entries(t);(128&l||1&s)&&(a?a[n](o,r,e):i.H.push((()=>{i.D[n](o,r,e)})))}catch(t){F(t,s)}}))}if(2==(18&l)){if(a.componentShouldUpdate&&!1===a.componentShouldUpdate(o,r,e))return;po(i,!1)}}},Oo=(t,e)=>{var o,n;const i=t.prototype;{t.watchers&&!e.F&&(e.F=t.watchers),t.deserializers&&!e.U&&(e.U=t.deserializers),t.serializers&&!e.V&&(e.V=t.serializers);const s=Object.entries(null!=(o=e.t)?o:{});s.map((([t,[o]])=>{if(31&o||32&o){const{get:n,set:s}=Object.getOwnPropertyDescriptor(i,t)||{};n&&(e.t[t][0]|=2048),s&&(e.t[t][0]|=4096),Object.defineProperty(i,t,{get(){return n?n.apply(this):((t,e)=>_(this).i.get(e))(0,t)},configurable:!0,enumerable:!0}),Object.defineProperty(i,t,{set(n){const i=_(this);if(i){if(s)return void 0===(32&o?this[t]:i.$hostElement$[t])&&i.i.get(t)&&(n=i.i.get(t)),s.call(this,Te(n,o)),void xo(this,t,n=32&o?this[t]:i.$hostElement$[t],e);xo(this,t,n,e)}}})}}));{const o=new Map;i.attributeChangedCallback=function(t,n,r){J.jmp((()=>{var l;const a=o.get(t),c=_(this);if(this.hasOwnProperty(a),i.hasOwnProperty(a)&&"number"==typeof this[a]&&this[a]==r)return;if(null==a){const o=null==c?void 0:c.l;if(c&&o&&!(8&o)&&r!==n){const i=this,s=null==(l=e.F)?void 0:l[t];null==s||s.forEach((e=>{const[[s,l]]=Object.entries(e);null!=i[s]&&(128&o||1&l)&&i[s].call(i,r,n,t)}))}return}const u=s.find((([t])=>t===a));u&&4&u[1][0]&&(r=null!==r&&"false"!==r);const f=Object.getOwnPropertyDescriptor(i,a);r==this[a]||f.get&&!f.set||(this[a]=r)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(n=e.F)?n:{}),...s.filter((([t,e])=>31&e[0])).map((([t,n])=>{var i;const s=n[1]||t;return o.set(s,t),512&n[0]&&(null==(i=e.C)||i.push([t,s])),s}))]))}}return t},jo=t=>{if(!Z.document)return;const e=t["s-cr"]=Z.document.createComment("");e["s-cn"]=!0,co(t,e,t.firstChild)},So=(t,e)=>{const o={l:e[0],h:e[1]};o.t=e[2],o.G=e[3],o.F=t.F,o.U=t.U,o.V=t.V,o.C=[],(()=>{if(!Z.document)return;const t=Z.document.querySelectorAll(`[${U}]`);let e=0;for(;e<t.length;e++)we(t[e].getAttribute(U),ke(t[e].innerHTML),!0)})();const n=t.prototype.connectedCallback,i=t.prototype.disconnectedCallback;return Object.assign(t.prototype,{__hasHostListenerAttached:!1,__registerHost(){((t,e)=>{const o={l:0,$hostElement$:t,o:e,i:new Map,Z:new Map};o.q=new Promise((t=>o._=t)),t["s-p"]=[],t["s-rc"]=[];const n=o;t.__stencil__getHostRef=()=>n,512&e.l&&T(t,o)})(this,o)},connectedCallback(){if(!this.__hasHostListenerAttached){const t=_(this);if(!t)return;Mo(this,t,o.G),this.__hasHostListenerAttached=!0}(t=>{if(!(1&J.l)){const e=_(t);if(!e)return;const o=e.o,n=()=>{};if(1&e.l)Mo(t,e,o.G),(null==e?void 0:e.D)||(null==e?void 0:e.q)&&e.q.then((()=>{}));else{let n;if(e.l|=1,n=t.getAttribute(D),n){if(1&o.l){const e=$e(t.shadowRoot,o);t.classList.remove(e+"-h",e+"-s")}((t,e,o,n)=>{var i,s,r,l;const a=t.shadowRoot,c=[],u=[],f=a?[]:null,p=Oe(e,null);p.S=t,!Z.document||J.B&&J.B.size||ze(Z.document.body,J.B=new Map),t[D]=o,t.removeAttribute(D),n.W=Ne(p,c,[],f,t,t,o,u);let h=0;const d=c.length;let g;for(;h<d;h++){g=c[h];const o=g.M+"."+g.N,n=J.B.get(o),s=g.S;if(a){if((null==(i=g.j)?void 0:(""+i).includes("-"))&&"slot-fb"!==g.j&&!g.S.shadowRoot){const e=_(g.S);if(e){const o=ye(e.o),n=Z.document.querySelector(`style[sty-id="${o}"]`);n&&t.shadowRoot.append(n.cloneNode(!0))}}}else s["s-hn"]=e.toUpperCase(),"slot"===g.j&&(s["s-cr"]=t["s-cr"]);"slot"===g.j&&(g.O=g.S["s-sn"]||g.S.name||null,g.$?(g.l|=2,g.S.childNodes.length||g.$.forEach((t=>{g.S.appendChild(t.S)}))):g.l|=1),n&&n.isConnected&&(n.parentElement.shadowRoot&&""===n["s-en"]&&n.parentNode.insertBefore(s,n.nextSibling),n.parentNode.removeChild(n),a||(s["s-oo"]=parseInt(g.N))),n&&!n["s-id"]&&J.B.delete(o)}const v=[],b=u.length;let m,w,$,y,k=0,x=0;for(;k<b;k++)if(m=u[k],m&&m.length)for($=m.length,w=0;w<$;w++){if(y=m[w],v[y.hostId]||(v[y.hostId]=J.B.get(y.hostId)),!v[y.hostId])continue;const t=v[y.hostId];t.shadowRoot&&y.node.parentElement!==t&&t.insertBefore(y.node,null==(r=null==(s=m[w-1])?void 0:s.node)?void 0:r.nextSibling),t.shadowRoot&&a||(y.slot["s-cr"]||(y.slot["s-cr"]=t["s-cr"],y.slot["s-cr"]=!y.slot["s-cr"]&&t.shadowRoot?t:(t.__childNodes||t.childNodes)[0]),de(y.node,y.slot,0,y.node["s-oo"]||x),(null==(l=y.node.parentElement)?void 0:l.shadowRoot)&&y.node.getAttribute&&y.node.getAttribute("slot")&&y.node.removeAttribute("slot")),x=(y.node["s-oo"]||x)+1}if(a){let e=0;const o=f.length;if(o){for(;e<o;e++){const t=f[e];t&&a.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||t.parentNode.removeChild(t))}))}}n.$hostElement$=t})(t,o.h,n,e)}n||12&o.l&&jo(t);{let o=t;for(;o=o.parentNode||o.host;)if(1===o.nodeType&&o.hasAttribute("s-id")&&o["s-p"]||o["s-p"]){fo(e,e.T=o);break}}o.t&&Object.entries(o.t).map((([e,[o]])=>{if(31&o&&e in t&&t[e]!==Object.prototype[e]){const o=t[e];delete t[e],t[e]=o}})),(async(t,e,o)=>{let n;if(!(32&e.l)&&(e.l|=32,n=t.constructor,customElements.whenDefined(t.localName).then((()=>e.l|=128)),n&&n.style)){let t;"string"==typeof n.style&&(t=n.style);const e=ye(o);if(!H.has(e)){const n=()=>{};we(e,t,!!(1&o.l)),n()}}const i=e.T,s=()=>po(e,!0);i&&i["s-rc"]?i["s-rc"].push(s):s()})(t,e,o)}n()}})(this),n&&n.call(this)},disconnectedCallback(){(async t=>{if(!(1&J.l)){const e=_(t);(null==e?void 0:e.J)&&(e.J.map((t=>t())),e.J=void 0)}me.has(t)&&me.delete(t),t.shadowRoot&&me.has(t.shadowRoot)&&me.delete(t.shadowRoot)})(this),i&&i.call(this)},__attachShadow(){if(this.shadowRoot){if("open"!==this.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${o.h}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else ce.call(this,o)}}),t.is=o.h,Oo(t,o)},Mo=(t,e,o)=>{o&&Z.document&&o.map((([o,n,i])=>{const s=No(Z.document,t,o),r=Eo(e,i),l=zo(o);J.ael(s,n,r,l),(e.J=e.J||[]).push((()=>J.rel(s,n,r,l)))}))},Eo=(t,e)=>o=>{try{t.$hostElement$[e](o)}catch(e){F(e,t.$hostElement$)}},No=(t,e,o)=>4&o?t:8&o?Z:e,zo=t=>({passive:!!(1&t),capture:!!(2&t)}),Ro=t=>J.p=t,Ao=t=>Object.assign(J,t);function Lo(t,e){uo({o:{l:0,h:e.tagName},$hostElement$:e},t)}function Po(t){return t}export{q as H,je as a,_e as c,rt as getAssetPath,xe as h,So as p,Lo as render,lt as setAssetPath,Ro as setNonce,Ao as setPlatformOptions,Po as t}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function t(t){const e=t.getRootNode?t.getRootNode():t;if(e instanceof Document||e instanceof ShadowRoot)return e;throw new Error("Attempting to access root node before the element is attached to the document or shadow tree.")}export{t as g}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const o=[void 0,null,"",Number.NaN];function n(n){return o.some((o=>Object.is(o,n)))}function t(o){return(t,e,...s)=>{const c=t.host.localName,r=t[e],i=`The prop \`${String(e)}\` of the \`${c}\` component is not defined.`;if(n(r))throw new Error(i);o(t,e,...s)}}function e(o,n,t){const e=o.host.localName,s=o[n],c=`The prop \`${String(n)}\` of the \`${e}\` component must be one of the following values: ${t.join(", ")}.`;t.includes(s)||console.error(c)}function s(o,n,t){const e=o.host.localName,s=o[n],c=`The prop \`${String(n)}\` of the \`${e}\` component must follow the format \`${t}\`.`;"string"==typeof s&&t.test(s)||console.error(c)}function c(o,n,t){const e=o.host.localName,s=o[n],c="array"===t,r=Array.isArray(s),i=`The prop \`${String(n)}\` of the \`${e}\` component must be of type \`${t}\`.`;c||r?r!==c&&console.error(i):typeof s!==t&&console.error(i)}function r(o,n){const t=o.host.localName,e=o[n],s=`The prop \`${String(n)}\` of the \`${t}\` component is invalid.`;if("string"==typeof e||e instanceof URL)try{new URL(e,"https://www.post.ch")}catch{console.error(s)}else console.error(s)}function i(o){return(t,e,...s)=>{n(t[e])||o(t,e,...s)}}const f=i(e),p=i(s),a=i(c),u=i(r),h=i((function(o,n){const t=o.host.localName,e=o[n],s=`The prop \`${String(n)}\` of the \`${t}\` component must be a valid date.`;if("string"!=typeof e)return void console.error(s);const c=new Date(e);Number.isNaN(c.getTime())&&console.error(s)})),l=t(e),$=t(s),m=t(c),g=t(r);export{u as a,l as b,m as c,f as d,g as e,$ as f,a as g,p as h,h as i}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{p as t,H as e,c as n,h as o,a as r,t as i}from"./index.js";import{d as s,g as a}from"./p-B2BDAeHI.js";import"./p-BQ3HlJPr.js";import{v as c}from"./p-NDMNbu5d.js";const l=["top","right","bottom","left","top-start","top-end","right-start","right-end","bottom-start","bottom-end","left-start","left-end"],p=Math.min,u=Math.max,f=Math.round,h=Math.floor,d=t=>({x:t,y:t}),m={left:"right",right:"left",bottom:"top",top:"bottom"};function g(t,e,n){return u(t,p(e,n))}function v(t,e){return"function"==typeof t?t(e):t}function w(t){return t.split("-")[0]}function y(t){return t.split("-")[1]}function x(t){return"x"===t?"y":"x"}function b(t){return"y"===t?"height":"width"}function S(t){const e=t[0];return"t"===e||"b"===e?"y":"x"}function E(t){return x(S(t))}function T(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}const k=["left","right"],M=["right","left"],A=["top","bottom"],O=["bottom","top"];function H(t){const e=w(t);return m[e]+t.slice(e.length)}function L(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function $(t){const{x:e,y:n,width:o,height:r}=t;return{width:o,height:r,top:n,left:e,right:e+o,bottom:n+r,x:e,y:n}}function D(t,e,n){let{reference:o,floating:r}=t;const i=S(e),s=E(e),a=b(s),c=w(e),l="y"===i,p=o.x+o.width/2-r.width/2,u=o.y+o.height/2-r.height/2,f=o[a]/2-r[a]/2;let h;switch(c){case"top":h={x:p,y:o.y-r.height};break;case"bottom":h={x:p,y:o.y+o.height};break;case"right":h={x:o.x+o.width,y:u};break;case"left":h={x:o.x-r.width,y:u};break;default:h={x:o.x,y:o.y}}switch(y(e)){case"start":h[s]-=f*(n&&l?-1:1);break;case"end":h[s]+=f*(n&&l?-1:1)}return h}async function P(t,e){var n;void 0===e&&(e={});const{x:o,y:r,platform:i,rects:s,elements:a,strategy:c}=t,{boundary:l="clippingAncestors",rootBoundary:p="viewport",elementContext:u="floating",altBoundary:f=!1,padding:h=0}=v(e,t),d=L(h),m=a[f?"floating"===u?"reference":"floating":u],g=$(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:l,rootBoundary:p,strategy:c})),w="floating"===u?{x:o,y:r,width:s.floating.width,height:s.floating.height}:s.reference,y=await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),x=await(null==i.isElement?void 0:i.isElement(y))&&await(null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},b=$(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:w,offsetParent:y,strategy:c}):w);return{top:(g.top-b.top+d.top)/x.y,bottom:(b.bottom-g.bottom+d.bottom)/x.y,left:(g.left-b.left+d.left)/x.x,right:(b.right-g.right+d.right)/x.x}}function z(t){const e=p(...t.map((t=>t.left))),n=p(...t.map((t=>t.top)));return{x:e,y:n,width:u(...t.map((t=>t.right)))-e,height:u(...t.map((t=>t.bottom)))-n}}const C=new Set(["left","top"]);function F(){return"undefined"!=typeof window}function R(t){return B(t)?(t.nodeName||"").toLowerCase():"#document"}function j(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function W(t){var e;return null==(e=(B(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function B(t){return!!F()&&(t instanceof Node||t instanceof j(t).Node)}function N(t){return!!F()&&(t instanceof Element||t instanceof j(t).Element)}function G(t){return!!F()&&(t instanceof HTMLElement||t instanceof j(t).HTMLElement)}function I(t){return!(!F()||"undefined"==typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof j(t).ShadowRoot)}function q(t){const{overflow:e,overflowX:n,overflowY:o,display:r}=tt(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&"inline"!==r&&"contents"!==r}function J(t){return/^(table|td|th)$/.test(R(t))}function Q(t){try{if(t.matches(":popover-open"))return!0}catch(t){}try{return t.matches(":modal")}catch(t){return!1}}const V=/transform|translate|scale|rotate|perspective|filter/,X=/paint|layout|strict|content/,Y=t=>!!t&&"none"!==t;let _;function K(t){const e=N(t)?tt(t):t;return Y(e.transform)||Y(e.translate)||Y(e.scale)||Y(e.rotate)||Y(e.perspective)||!U()&&(Y(e.backdropFilter)||Y(e.filter))||V.test(e.willChange||"")||X.test(e.contain||"")}function U(){return null==_&&(_="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),_}function Z(t){return/^(html|body|#document)$/.test(R(t))}function tt(t){return j(t).getComputedStyle(t)}function et(t){return N(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function nt(t){if("html"===R(t))return t;const e=t.assignedSlot||t.parentNode||I(t)&&t.host||W(t);return I(e)?e.host:e}function ot(t){const e=nt(t);return Z(e)?t.ownerDocument?t.ownerDocument.body:t.body:G(e)&&q(e)?e:ot(e)}function rt(t,e,n){var o;void 0===e&&(e=[]),void 0===n&&(n=!0);const r=ot(t),i=r===(null==(o=t.ownerDocument)?void 0:o.body),s=j(r);if(i){const t=it(s);return e.concat(s,s.visualViewport||[],q(r)?r:[],t&&n?rt(t):[])}return e.concat(r,rt(r,[],n))}function it(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function st(t){const e=tt(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const r=G(t),i=r?t.offsetWidth:n,s=r?t.offsetHeight:o,a=f(n)!==i||f(o)!==s;return a&&(n=i,o=s),{width:n,height:o,$:a}}function at(t){return N(t)?t:t.contextElement}function ct(t){const e=at(t);if(!G(e))return d(1);const n=e.getBoundingClientRect(),{width:o,height:r,$:i}=st(e);let s=(i?f(n.width):n.width)/o,a=(i?f(n.height):n.height)/r;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}const lt=d(0);function pt(t){const e=j(t);return U()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:lt}function ut(t,e,n,o){void 0===e&&(e=!1),void 0===n&&(n=!1);const r=t.getBoundingClientRect(),i=at(t);let s=d(1);e&&(o?N(o)&&(s=ct(o)):s=ct(t));const a=function(t,e,n){return void 0===e&&(e=!1),!(!n||e&&n!==j(t))&&e}(i,n,o)?pt(i):d(0);let c=(r.left+a.x)/s.x,l=(r.top+a.y)/s.y,p=r.width/s.x,u=r.height/s.y;if(i){const t=j(i),e=o&&N(o)?j(o):o;let n=t,r=it(n);for(;r&&o&&e!==n;){const t=ct(r),e=r.getBoundingClientRect(),o=tt(r),i=e.left+(r.clientLeft+parseFloat(o.paddingLeft))*t.x,s=e.top+(r.clientTop+parseFloat(o.paddingTop))*t.y;c*=t.x,l*=t.y,p*=t.x,u*=t.y,c+=i,l+=s,n=j(r),r=it(n)}}return $({width:p,height:u,x:c,y:l})}function ft(t,e){const n=et(t).scrollLeft;return e?e.left+n:ut(W(t)).left+n}function ht(t,e){const n=t.getBoundingClientRect();return{x:n.left+e.scrollLeft-ft(t,n),y:n.top+e.scrollTop}}const dt=new Set(["absolute","fixed"]);function mt(t,e,n){let o;if("viewport"===e)o=function(t,e){const n=j(t),o=W(t),r=n.visualViewport;let i=o.clientWidth,s=o.clientHeight,a=0,c=0;if(r){i=r.width,s=r.height;const t=U();(!t||t&&"fixed"===e)&&(a=r.offsetLeft,c=r.offsetTop)}const l=ft(o);if(l<=0){const t=o.ownerDocument,e=t.body,n=getComputedStyle(e),r="CSS1Compat"===t.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,s=Math.abs(o.clientWidth-e.clientWidth-r);s<=25&&(i-=s)}else l<=25&&(i+=l);return{width:i,height:s,x:a,y:c}}(t,n);else if("document"===e)o=function(t){const e=W(t),n=et(t),o=t.ownerDocument.body,r=u(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),i=u(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+ft(t);const a=-n.scrollTop;return"rtl"===tt(o).direction&&(s+=u(e.clientWidth,o.clientWidth)-r),{width:r,height:i,x:s,y:a}}(W(t));else if(N(e))o=function(t,e){const n=ut(t,!0,"fixed"===e),o=n.top+t.clientTop,r=n.left+t.clientLeft,i=G(t)?ct(t):d(1);return{width:t.clientWidth*i.x,height:t.clientHeight*i.y,x:r*i.x,y:o*i.y}}(e,n);else{const n=pt(t);o={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return $(o)}function gt(t,e){const n=nt(t);return!(n===e||!N(n)||Z(n))&&("fixed"===tt(n).position||gt(n,e))}function vt(t,e,n){const o=G(e),r=W(e),i="fixed"===n,s=ut(t,!0,i,e);let a={scrollLeft:0,scrollTop:0};const c=d(0);function l(){c.x=ft(r)}if(o||!o&&!i)if(("body"!==R(e)||q(r))&&(a=et(e)),o){const t=ut(e,!0,i,e);c.x=t.x+e.clientLeft,c.y=t.y+e.clientTop}else r&&l();i&&!o&&r&&l();const p=!r||o||i?d(0):ht(r,a);return{x:s.left+a.scrollLeft-c.x-p.x,y:s.top+a.scrollTop-c.y-p.y,width:s.width,height:s.height}}function wt(t){return"static"===tt(t).position}function yt(t,e){if(!G(t)||"fixed"===tt(t).position)return null;if(e)return e(t);let n=t.offsetParent;return W(t)===n&&(n=n.ownerDocument.body),n}function xt(t,e){const n=j(t);if(Q(t))return n;if(!G(t)){let e=nt(t);for(;e&&!Z(e);){if(N(e)&&!wt(e))return e;e=nt(e)}return n}let o=yt(t,e);for(;o&&J(o)&&wt(o);)o=yt(o,e);return o&&Z(o)&&wt(o)&&!K(o)?n:o||function(t){let e=nt(t);for(;G(e)&&!Z(e);){if(K(e))return e;if(Q(e))return null;e=nt(e)}return null}(t)||n}const bt={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:n,offsetParent:o,strategy:r}=t;const i="fixed"===r,s=W(o),a=!!e&&Q(e.floating);if(o===s||a&&i)return n;let c={scrollLeft:0,scrollTop:0},l=d(1);const p=d(0),u=G(o);if((u||!u&&!i)&&(("body"!==R(o)||q(s))&&(c=et(o)),G(o))){const t=ut(o);l=ct(o),p.x=t.x+o.clientLeft,p.y=t.y+o.clientTop}const f=!s||u||i?d(0):ht(s,c);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+p.x+f.x,y:n.y*l.y-c.scrollTop*l.y+p.y+f.y}},getDocumentElement:W,getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:o,strategy:r}=t;const i=[..."clippingAncestors"===n?Q(e)?[]:function(t,e){const n=e.get(t);if(n)return n;let o=rt(t,[],!1).filter((t=>N(t)&&"body"!==R(t))),r=null;const i="fixed"===tt(t).position;let s=i?nt(t):t;for(;N(s)&&!Z(s);){const e=tt(s),n=K(s);n||"fixed"!==e.position||(r=null),(i?!n&&!r:!n&&"static"===e.position&&r&&dt.has(r.position)||q(s)&&!n&>(t,s))?o=o.filter((t=>t!==s)):r=e,s=nt(s)}return e.set(t,o),o}(e,this._c):[].concat(n),o],s=i.reduce(((t,n)=>{const o=mt(e,n,r);return t.top=u(o.top,t.top),t.right=p(o.right,t.right),t.bottom=p(o.bottom,t.bottom),t.left=u(o.left,t.left),t}),mt(e,i[0],r));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:xt,getElementRects:async function(t){const e=this.getOffsetParent||xt,n=this.getDimensions,o=await n(t.floating);return{reference:vt(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:e,height:n}=st(t);return{width:e,height:n}},getScale:ct,isElement:N,isRTL:function(t){return"rtl"===tt(t).direction}};function St(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}const Et=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:r,y:i,placement:s,middlewareData:a}=e,c=await async function(t,e){const{placement:n,platform:o,elements:r}=t,i=await(null==o.isRTL?void 0:o.isRTL(r.floating)),s=w(n),a=y(n),c="y"===S(n),l=C.has(s)?-1:1,p=i&&c?-1:1,u=v(e,t);let{mainAxis:f,crossAxis:h,alignmentAxis:d}="number"==typeof u?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return a&&"number"==typeof d&&(h="end"===a?-1*d:d),c?{x:h*p,y:f*l}:{x:f*l,y:h*p}}(e,t);return s===(null==(n=a.offset)?void 0:n.placement)&&null!=(o=a.arrow)&&o.alignmentOffset?{}:{x:r+c.x,y:i+c.y,data:{...c,placement:s}}}}},Tt=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:r,middlewareData:i,rects:s,initialPlacement:a,platform:c,elements:l}=e,{mainAxis:p=!0,crossAxis:u=!0,fallbackPlacements:f,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:d="none",flipAlignment:m=!0,...g}=v(t,e);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const x=w(r),L=S(a),$=w(a)===a,D=await(null==c.isRTL?void 0:c.isRTL(l.floating)),P=f||($||!m?[H(a)]:function(t){const e=H(t);return[T(t),e,T(e)]}(a)),z="none"!==d;!f&&z&&P.push(...function(t,e,n,o){const r=y(t);let i=function(t,e,n){switch(t){case"top":case"bottom":return n?e?M:k:e?k:M;case"left":case"right":return e?A:O;default:return[]}}(w(t),"start"===n,o);return r&&(i=i.map((t=>t+"-"+r)),e&&(i=i.concat(i.map(T)))),i}(a,m,d,D));const C=[a,...P],F=await c.detectOverflow(e,g),R=[];let j=(null==(o=i.flip)?void 0:o.overflows)||[];if(p&&R.push(F[x]),u){const t=function(t,e,n){void 0===n&&(n=!1);const o=y(t),r=E(t),i=b(r);let s="x"===r?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return e.reference[i]>e.floating[i]&&(s=H(s)),[s,H(s)]}(r,s,D);R.push(F[t[0]],F[t[1]])}if(j=[...j,{placement:r,overflows:R}],!R.every((t=>t<=0))){var W,B;const t=((null==(W=i.flip)?void 0:W.index)||0)+1,e=C[t];if(e&&("alignment"!==u||L===S(e)||j.every((t=>S(t.placement)!==L||t.overflows[0]>0))))return{data:{index:t,overflows:j},reset:{placement:e}};let n=null==(B=j.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:B.placement;if(!n)switch(h){case"bestFit":{var N;const t=null==(N=j.filter((t=>{if(z){const e=S(t.placement);return e===L||"y"===e}return!0})).map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:N[0];t&&(n=t);break}case"initialPlacement":n=a}if(r!==n)return{reset:{placement:n}}}return{}}}},kt=function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(e){var n,o;const{placement:r,rects:i,platform:s,elements:a}=e,{apply:c=()=>{},...l}=v(t,e),f=await s.detectOverflow(e,l),h=w(r),d=y(r),m="y"===S(r),{width:g,height:x}=i.floating;let b,E;"top"===h||"bottom"===h?(b=h,E=d===(await(null==s.isRTL?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(E=h,b="end"===d?"top":"bottom");const T=x-f.top-f.bottom,k=g-f.left-f.right;let M=p(x-f[b],T),A=p(g-f[E],k);if(null!=(n=e.middlewareData.shift)&&n.enabled.x&&(A=k),null!=(o=e.middlewareData.shift)&&o.enabled.y&&(M=T),!e.middlewareData.shift&&!d){const t=u(f.left,0),e=u(f.right,0),n=u(f.top,0),o=u(f.bottom,0);m?A=g-2*(0!==t||0!==e?t+e:u(f.left,f.right)):M=x-2*(0!==n||0!==o?n+o:u(f.top,f.bottom))}await c({...e,availableWidth:A,availableHeight:M});const O=await s.getDimensions(a.floating);return g!==O.width||x!==O.height?{reset:{rects:!0}}:{}}}},Mt=function(t){return void 0===t&&(t={}),{name:"inline",options:t,async fn(e){const{placement:n,elements:o,rects:r,platform:i,strategy:s}=e,{padding:a=2,x:c,y:l}=v(t,e),f=Array.from(await(null==i.getClientRects?void 0:i.getClientRects(o.reference))||[]),h=function(t){const e=t.slice().sort(((t,e)=>t.y-e.y)),n=[];let o=null;for(let t=0;t<e.length;t++){const r=e[t];!o||r.y-o.y>o.height/2?n.push([r]):n[n.length-1].push(r),o=r}return n.map((t=>$(z(t))))}(f),d=$(z(f)),m=L(a),g=await i.getElementRects({reference:{getBoundingClientRect:function(){if(2===h.length&&h[0].left>h[1].right&&null!=c&&null!=l)return h.find((t=>c>t.left-m.left&&c<t.right+m.right&&l>t.top-m.top&&l<t.bottom+m.bottom))||d;if(h.length>=2){if("y"===S(n)){const t=h[0],e=h[h.length-1],o="top"===w(n),r=t.top,i=e.bottom,s=o?t.left:e.left,a=o?t.right:e.right;return{top:r,bottom:i,left:s,right:a,width:a-s,height:i-r,x:s,y:r}}const t="left"===w(n),e=u(...h.map((t=>t.right))),o=p(...h.map((t=>t.left))),r=h.filter((n=>t?n.left===o:n.right===e)),i=r[0].top,s=r[r.length-1].bottom;return{top:i,bottom:s,left:o,right:e,width:e-o,height:s-i,x:o,y:i}}return d}},floating:o.floating,strategy:s});return r.reference.x!==g.reference.x||r.reference.y!==g.reference.y||r.reference.width!==g.reference.width||r.reference.height!==g.reference.height?{reset:{rects:g}}:{}}}};var At=class extends Event{oldState;newState;constructor(t,{oldState:e="",newState:n="",...o}={}){super(t,o),this.oldState=String(e||""),this.newState=String(n||"")}},Ot=new WeakMap;function Ht(t,e,n){Ot.set(t,setTimeout((()=>{Ot.has(t)&&t.dispatchEvent(new At("toggle",{cancelable:!1,oldState:e,newState:n}))}),0))}var Lt=globalThis.ShadowRoot||function(){},$t=globalThis.HTMLDialogElement||function(){},Dt=new WeakMap,Pt=new WeakMap,zt=new WeakMap,Ct=new WeakMap;function Ft(t){return Ct.get(t)||"hidden"}var Rt=new WeakMap;function jt(t){return[...t].pop()}function Wt(t,e){return!("auto"!==t.popover&&"manual"!==t.popover&&"hint"!==t.popover||!t.isConnected||e&&"showing"!==Ft(t)||!e&&"hidden"!==Ft(t)||t instanceof $t&&t.hasAttribute("open")||document.fullscreenElement===t)}function Bt(t){if(!t)return 0;const e=Pt.get(document)||new Set,n=zt.get(document)||new Set;return n.has(t)?[...n].indexOf(t)+e.size+1:e.has(t)?[...e].indexOf(t)+1:0}function Nt(t){let e;const n=zt.get(t)||new Set,o=Pt.get(t)||new Set,r=n.size>0?n:o.size>0?o:null;return r?(e=jt(r),e.isConnected?e:(r.delete(e),Nt(t))):null}function Gt(t){for(const e of t||[]){if(e.isConnected)return e;t.delete(e)}return null}function It(t){return"function"==typeof t.getRootNode?t.getRootNode():t.parentNode?It(t.parentNode):t}function qt(t){for(;t;){if(t instanceof HTMLElement&&"auto"===t.popover&&"showing"===Ct.get(t))return t;if((t=t instanceof Element&&t.assignedSlot||t.parentElement||It(t))instanceof Lt&&(t=t.host),t instanceof Document)return}}function Jt(t,e){const n=new Map;let o=0;for(const t of e||[])n.set(t,o),o+=1;n.set(t,o),o+=1;let r=null;return function(e){if(!e)return;let o=!1,i=null,s=null;for(;!o;){if(i=qt(e)||null,null===i)return;if(!n.has(i))return;"hint"!==t.popover&&"auto"!==i.popover||(o=!0),o||(e=i.parentElement)}s=n.get(i),(null===r||n.get(r)<s)&&(r=i)}(t.parentElement||It(t)),r}function Qt(t){return!(t.hidden||t instanceof Lt||(t instanceof HTMLButtonElement||t instanceof HTMLInputElement||t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement||t instanceof HTMLOptGroupElement||t instanceof HTMLOptionElement||t instanceof HTMLFieldSetElement)&&t.disabled||t instanceof HTMLInputElement&&"hidden"===t.type||t instanceof HTMLAnchorElement&&""===t.href||"number"!=typeof t.tabIndex||-1===t.tabIndex)}var Vt=new WeakMap;function Xt(t){if(!Wt(t,!1))return;const e=t.ownerDocument;if(!t.dispatchEvent(new At("beforetoggle",{cancelable:!0,oldState:"closed",newState:"open"})))return;if(!Wt(t,!1))return;let n=!1;const o=t.popover;let r=null;const i=Jt(t,Pt.get(e)||new Set),s=Jt(t,zt.get(e)||new Set);if("auto"===o&&(_t(zt.get(e)||new Set,n,!0),Ut(i||e,n,!0),r="auto"),"hint"===o&&(s?(Ut(s,n,!0),r="hint"):(_t(zt.get(e)||new Set,n,!0),i?(Ut(i,n,!0),r="auto"):r="hint")),"auto"===o||"hint"===o){if(o!==t.popover||!Wt(t,!1))return;Nt(e)||(n=!0),"auto"===r?(Pt.has(e)||Pt.set(e,new Set),Pt.get(e).add(t)):"hint"===r&&(zt.has(e)||zt.set(e,new Set),zt.get(e).add(t))}Vt.delete(t);const a=e.activeElement;var c;t.classList.add(":popover-open"),Ct.set(t,"showing"),Dt.has(e)||Dt.set(e,new Set),Dt.get(e).add(t),ne(Rt.get(t),!0),c=t,function(t){if(t.shadowRoot&&!0!==t.shadowRoot.delegatesFocus)return null;let e=t;e.shadowRoot&&(e=e.shadowRoot);let n=e.querySelector("[autofocus]");if(n)return n;{const t=e.querySelectorAll("slot");for(const e of t){const t=e.assignedElements({flatten:!0});for(const e of t){if(e.hasAttribute("autofocus"))return e;if(n=e.querySelector("[autofocus]"),n)return n}}}const o=t.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_ELEMENT);let r=o.currentNode;for(;r;){if(Qt(r))return r;r=o.nextNode()}}(c)?.focus(),n&&a&&"auto"===t.popover&&Vt.set(t,a),Ht(t,"closed","open")}function Yt(t,e=!1,n=!1){if(!Wt(t,!0))return;const o=t.ownerDocument;if(["auto","hint"].includes(t.popover)&&(Ut(t,e,n),!Wt(t,!0)))return;const r=Pt.get(o)||new Set,i=r.has(t)&&jt(r)===t;if(ne(Rt.get(t),!1),Rt.delete(t),n&&(t.dispatchEvent(new At("beforetoggle",{oldState:"open",newState:"closed"})),i&&jt(r)!==t&&Ut(t,e,n),!Wt(t,!0)))return;Dt.get(o)?.delete(t),r.delete(t),zt.get(o)?.delete(t),t.classList.remove(":popover-open"),Ct.set(t,"hidden"),n&&Ht(t,"open","closed");const s=Vt.get(t);s&&(Vt.delete(t),e&&s.focus())}function _t(t,e=!1,n=!1){let o=Gt(t);for(;o;)Yt(o,e,n),o=Gt(t)}function Kt(t,e,n,o){let r=!1,i=!1;for(;r||!i;){i=!0;let s=null,a=!1;for(const n of e)if(n===t)a=!0;else if(a){s=n;break}if(!s)return;for(;"showing"===Ft(s)&&e.size;)Yt(jt(e),n,o);e.has(t)&&jt(e)!==t&&(r=!0),r&&(o=!1)}}function Ut(t,e,n){const o=t.ownerDocument||t;if(t instanceof Document)return function(t,e=!1,n=!1){let o=Nt(t);for(;o;)Yt(o,e,n),o=Nt(t)}(o,e,n);zt.get(o)?.has(t)?Kt(t,zt.get(o),e,n):(_t(zt.get(o)||new Set,e,n),Pt.get(o)?.has(t)&&Kt(t,Pt.get(o),e,n))}var Zt=new WeakMap;function te(t){if(!t.isTrusted)return;const e=t.composedPath()[0];if(!e)return;const n=e.ownerDocument;if(!Nt(n))return;const o=function(t){const e=qt(t),n=function(t){for(;t;){const e=t.popoverTargetElement;if(e instanceof HTMLElement)return e;if((t=t.parentElement||It(t))instanceof Lt&&(t=t.host),t instanceof Document)return}}(t);return Bt(e)>Bt(n)?e:n}(e);if(o&&"pointerdown"===t.type)Zt.set(n,o);else if("pointerup"===t.type){const t=Zt.get(n)===o;Zt.delete(n),t&&Ut(o||n,!1,!0)}}var ee=new WeakMap;function ne(t,e=!1){if(!t)return;ee.has(t)||ee.set(t,t.getAttribute("aria-expanded"));const n=t.popoverTargetElement;if(n instanceof HTMLElement&&"auto"===n.popover)t.setAttribute("aria-expanded",String(e));else{const e=ee.get(t);e?t.setAttribute("aria-expanded",e):t.removeAttribute("aria-expanded")}}var oe=globalThis.ShadowRoot||function(){};function re(t,e,n){const o=t[e];Object.defineProperty(t,e,{value(t){return o.call(this,n(t))}})}var ie=/(^|[^\\]):popover-open\b/g;var se=null;function ae(t){const e=function(){const t="function"==typeof globalThis.CSSLayerBlockRule;return`\n${t?"@layer popover-polyfill {":""}\n :where([popover]) {\n position: fixed;\n z-index: 2147483647;\n inset: 0;\n padding: 0.25em;\n width: fit-content;\n height: fit-content;\n border-width: initial;\n border-color: initial;\n border-image: initial;\n border-style: solid;\n background-color: canvas;\n color: canvastext;\n overflow: auto;\n margin: auto;\n }\n\n :where([popover]:not(.\\:popover-open)) {\n display: none;\n }\n\n :where(dialog[popover].\\:popover-open) {\n display: block;\n }\n\n :where(dialog[popover][open]) {\n display: revert;\n }\n\n :where([anchor].\\:popover-open) {\n inset: auto;\n }\n\n :where([anchor]:popover-open) {\n inset: auto;\n }\n\n @supports not (background-color: canvas) {\n :where([popover]) {\n background-color: white;\n color: black;\n }\n }\n\n @supports (width: -moz-fit-content) {\n :where([popover]) {\n width: -moz-fit-content;\n height: -moz-fit-content;\n }\n }\n\n @supports not (inset: 0) {\n :where([popover]) {\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n }\n }\n${t?"}":""}\n`}();if(null===se)try{(se=new CSSStyleSheet).replaceSync(e)}catch{se=!1}if(!1===se){const n=document.createElement("style");n.textContent=e,t instanceof Document?t.head.prepend(n):t.prepend(n)}else t.adoptedStyleSheets=[se,...t.adoptedStyleSheets]}const ce={"pop-in":function(t){if(t)return t.animate([{transform:"scale(0.9)",opacity:0},{transform:"scale(1)",opacity:1}],{duration:250,easing:"ease-out",fill:"forwards"})}},le=t(class t extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.postBeforeShow=n(this,"postBeforeShow"),this.postShow=n(this,"postShow"),this.postHide=n(this,"postHide"),this.postBeforeToggle=n(this,"postBeforeToggle"),this.postToggle=n(this,"postToggle"),this.toggleTimeoutId=null,this.hasOpenedOnce=!0,this.placement="top",this.edgeGap=8,this.arrow=!1,this.animation="pop-in",this.currentAnimation=null,this.boundMouseTrackingHandler=this.mouseTrackingHandler.bind(this)}validatePlacement(){s(this,"placement",l)}validateEdgeGap(){a(this,"edgeGap","number")}validateSafeSpace(){s(this,"safeSpace",["triangle","trapezoid"])}mouseTrackingHandler(t){this.host.style.setProperty("--post-safe-space-cursor-x",`${t.clientX}px`),this.host.style.setProperty("--post-safe-space-cursor-y",`${t.clientY}px`)}connectedCallback(){"undefined"!=typeof HTMLElement&&"object"==typeof HTMLElement.prototype&&"popover"in HTMLElement.prototype||function(){if("undefined"==typeof window)return;function t(t){return t?.includes(":popover-open")&&(t=t.replace(ie,"$1.\\:popover-open")),t}window.ToggleEvent=window.ToggleEvent||At,re(Document.prototype,"querySelector",t),re(Document.prototype,"querySelectorAll",t),re(Element.prototype,"querySelector",t),re(Element.prototype,"querySelectorAll",t),re(Element.prototype,"matches",t),re(Element.prototype,"closest",t),re(DocumentFragment.prototype,"querySelectorAll",t),Object.defineProperties(HTMLElement.prototype,{popover:{enumerable:!0,configurable:!0,get(){if(!this.hasAttribute("popover"))return null;const t=(this.getAttribute("popover")||"").toLowerCase();return""===t||"auto"==t?"auto":"hint"==t?"hint":"manual"},set(t){null===t?this.removeAttribute("popover"):this.setAttribute("popover",t)}},showPopover:{enumerable:!0,configurable:!0,value(t={}){Xt(this)}},hidePopover:{enumerable:!0,configurable:!0,value(){Yt(this,!0,!0)}},togglePopover:{enumerable:!0,configurable:!0,value(t={}){return"boolean"==typeof t&&(t={force:t}),"showing"===Ct.get(this)&&void 0===t.force||!1===t.force?Yt(this,!0,!0):void 0!==t.force&&!0!==t.force||Xt(this),"showing"===Ct.get(this)}}});const e=Element.prototype.attachShadow;e&&Object.defineProperties(Element.prototype,{attachShadow:{enumerable:!0,configurable:!0,writable:!0,value(t){const n=e.call(this,t);return ae(n),n}}});const n=HTMLElement.prototype.attachInternals;n&&Object.defineProperties(HTMLElement.prototype,{attachInternals:{enumerable:!0,configurable:!0,writable:!0,value(){const t=n.call(this);return t.shadowRoot&&ae(t.shadowRoot),t}}});const o=new WeakMap;function r(t){Object.defineProperties(t.prototype,{popoverTargetElement:{enumerable:!0,configurable:!0,set(t){if(null===t)this.removeAttribute("popovertarget"),o.delete(this);else{if(!(t instanceof Element))throw new TypeError("popoverTargetElement must be an element or null");this.setAttribute("popovertarget",""),o.set(this,t)}},get(){if("button"!==this.localName&&"input"!==this.localName)return null;if("input"===this.localName&&"reset"!==this.type&&"image"!==this.type&&"button"!==this.type)return null;if(this.disabled)return null;if(this.form&&"submit"===this.type)return null;const t=o.get(this);if(t&&t.isConnected)return t;if(t&&!t.isConnected)return o.delete(this),null;const e=It(this),n=this.getAttribute("popovertarget");return(e instanceof Document||e instanceof oe)&&n&&e.getElementById(n)||null}},popoverTargetAction:{enumerable:!0,configurable:!0,get(){const t=(this.getAttribute("popovertargetaction")||"").toLowerCase();return"show"===t||"hide"===t?t:"toggle"},set(t){this.setAttribute("popovertargetaction",t)}}})}var i;r(HTMLButtonElement),r(HTMLInputElement),(i=document).addEventListener("click",(t=>{const e=t.composedPath(),n=e[0];if(!(n instanceof Element)||n?.shadowRoot)return;const o=It(n);if(!(o instanceof oe||o instanceof Document))return;const r=e.find((t=>t.matches?.("[popovertargetaction],[popovertarget]")));return r?(function(t){const e=t.popoverTargetElement;if(!(e instanceof HTMLElement))return;const n=Ft(e);"show"===t.popoverTargetAction&&"showing"===n||"hide"===t.popoverTargetAction&&"hidden"===n||("showing"===n?Yt(e,!0,!0):Wt(e,!1)&&(Rt.set(e,t),Xt(e)))}(r),void t.preventDefault()):void 0})),i.addEventListener("keydown",(t=>{const e=t.key,n=t.target;t.defaultPrevented||!n||"Escape"!==e&&"Esc"!==e||Ut(n.ownerDocument,!0,!0)})),i.addEventListener("pointerdown",te),i.addEventListener("pointerup",te),ae(document)}()}componentDidLoad(){this.validatePlacement(),this.validateEdgeGap(),this.validateSafeSpace(),this.host.addEventListener("beforetoggle",this.handleToggle.bind(this))}disconnectedCallback(){"function"==typeof this.clearAutoUpdate&&this.clearAutoUpdate(),this.host.removeEventListener("beforetoggle",this.handleToggle.bind(this))}async show(t){this.toggleTimeoutId||(this.eventTarget=t,this.calculatePosition(),this.host.showPopover())}async hide(){this.toggleTimeoutId||(this.eventTarget=null,this.host.hidePopover(),this.postHide.emit())}async toggle(t,e){return this.eventTarget=t,this.toggleTimeoutId||(this.calculatePosition(),this.host.togglePopover(e),this.toggleTimeoutId=null),this.host.matches(":where(:popover-open, .popover-open)")}open(){const t=this.host.shadowRoot?.querySelector(".popover-content");if(this.startAutoupdates(),t){const e=ce[this.animation];"function"==typeof e?this.runOpenAnimation(e,t):(this.postBeforeToggle.emit({willOpen:!0}),this.postBeforeShow.emit({first:this.hasOpenedOnce}),this.postToggle.emit({isOpen:!0}),this.postShow.emit({first:this.hasOpenedOnce}),this.hasOpenedOnce&&(this.hasOpenedOnce=!1))}this.safeSpace&&globalThis.addEventListener("mousemove",this.boundMouseTrackingHandler)}close(){"function"==typeof this.clearAutoUpdate&&this.clearAutoUpdate(),this.safeSpace&&globalThis.removeEventListener("mousemove",this.boundMouseTrackingHandler),this.currentAnimation&&(this.currentAnimation.cancel(),this.currentAnimation=null),this.postBeforeToggle.emit({willOpen:!1}),this.postToggle.emit({isOpen:!1}),this.postHide.emit()}async runOpenAnimation(t,e){let n;try{if(n=t(e),!n)return this.postBeforeToggle.emit({willOpen:!0}),this.postBeforeShow.emit({first:this.hasOpenedOnce}),this.postToggle.emit({isOpen:!0}),void this.postShow.emit({first:this.hasOpenedOnce});this.currentAnimation=n,"running"===n.playState&&(this.postBeforeToggle.emit({willOpen:!0}),this.postBeforeShow.emit({first:this.hasOpenedOnce})),await n.finished,this.postToggle.emit({isOpen:!0}),this.postShow.emit({first:this.hasOpenedOnce}),this.hasOpenedOnce=!0}catch(t){console.warn("Animation failed or was interrupted:",t),this.postBeforeToggle.emit({willOpen:!1}),this.postBeforeShow.emit({first:this.hasOpenedOnce}),this.postToggle.emit({isOpen:!1})}finally{this.currentAnimation===n&&(this.currentAnimation=null)}}handleToggle(t){this.toggleTimeoutId=globalThis.setTimeout((()=>this.toggleTimeoutId=null),10),"open"===t.newState?this.open():this.close()}startAutoupdates(){this.eventTarget&&this.host&&(this.clearAutoUpdate=function(t,e,n,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:c=!1}=o,l=at(t),f=r||i?[...l?rt(l):[],...rt(e)]:[];f.forEach((t=>{r&&t.addEventListener("scroll",n,{passive:!0}),i&&t.addEventListener("resize",n)}));const d=l&&a?function(t,e){let n,o=null;const r=W(t);function i(){var t;clearTimeout(n),null==(t=o)||t.disconnect(),o=null}return function s(a,c){void 0===a&&(a=!1),void 0===c&&(c=1),i();const l=t.getBoundingClientRect(),{left:f,top:d,width:m,height:g}=l;if(a||e(),!m||!g)return;const v={rootMargin:-h(d)+"px "+-h(r.clientWidth-(f+m))+"px "+-h(r.clientHeight-(d+g))+"px "+-h(f)+"px",threshold:u(0,p(1,c))||1};let w=!0;function y(e){const o=e[0].intersectionRatio;if(o!==c){if(!w)return s();o?s(!1,o):n=setTimeout((()=>{s(!1,1e-7)}),1e3)}1!==o||St(l,t.getBoundingClientRect())||s(),w=!1}try{o=new IntersectionObserver(y,{...v,root:r.ownerDocument})}catch(t){o=new IntersectionObserver(y,v)}o.observe(t)}(!0),i}(l,n):null;let m,g=-1,v=null;s&&(v=new ResizeObserver((t=>{let[o]=t;o&&o.target===l&&v&&(v.unobserve(e),cancelAnimationFrame(g),g=requestAnimationFrame((()=>{var t;null==(t=v)||t.observe(e)}))),n()})),l&&!c&&v.observe(l),v.observe(e));let w=c?ut(t):null;return c&&function e(){const o=ut(t);w&&!St(w,o)&&n(),w=o,m=requestAnimationFrame(e)}(),n(),()=>{var t;f.forEach((t=>{r&&t.removeEventListener("scroll",n),i&&t.removeEventListener("resize",n)})),null==d||d(),null==(t=v)||t.disconnect(),v=null,c&&cancelAnimationFrame(m)}}(this.eventTarget,this.host,this.calculatePosition.bind(this)))}getHeaderHeight(){const t=document.querySelector("post-header");return t?Number.parseFloat(getComputedStyle(t).height):0}async calculatePosition(){const{x:e,y:n,middlewareData:o,placement:r}=await this.computeMainPosition(),i=r.split("-")[0];if(this.dynamicPlacement=i,this.host.style.left=`${e}px`,this.host.style.top=`${n}px`,this.arrow&&o.arrow){const{x:e,y:n}=o.arrow,r=t.STATIC_SIDES[i],s=Number.parseFloat(getComputedStyle(document.documentElement).fontSize),a=getComputedStyle(this.arrowRef).getPropertyValue("--arrow-size").trim(),c=-.5*(a.endsWith("rem")?Number.parseFloat(a)*s:Number.parseFloat(a));r&&Object.assign(this.arrowRef.style,{left:e?`${e}px`:"",top:n?`${n}px`:"",[r]:`${c}px`})}this.safeSpace&&this.eventTarget&&await this.updateSafeSpaceBoundaries(i)}async computeMainPosition(){const t=this.edgeGap,e=(this.placement||"top").includes("-"),n=Tt({padding:this.getHeaderHeight(),crossAxis:!1}),o=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:r,platform:i}=e,{mainAxis:s=!0,crossAxis:a=!1,limiter:c={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...l}=v(t,e),p={x:n,y:o},u=await i.detectOverflow(e,l),f=S(w(r)),h=x(f);let d=p[h],m=p[f];s&&(d=g(d+u["y"===h?"top":"left"],d,d-u["y"===h?"bottom":"right"])),a&&(m=g(m+u["y"===f?"top":"left"],m,m-u["y"===f?"bottom":"right"]));const y=c.fn({...e,[h]:d,[f]:m});return{...y,data:{x:y.x-n,y:y.y-o,enabled:{[h]:s,[f]:a}}}}}}({padding:t,limiter:(i={offset:32},void 0===i&&(i={}),{options:i,fn(t){const{x:e,y:n,placement:o,rects:r,middlewareData:s}=t,{offset:a=0,mainAxis:c=!0,crossAxis:l=!0}=v(i,t),p={x:e,y:n},u=S(o),f=x(u);let h=p[f],d=p[u];const m=v(a,t),g="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(c){const t="y"===f?"height":"width",e=r.reference[f]-r.floating[t]+g.mainAxis,n=r.reference[f]+r.reference[t]-g.mainAxis;h<e?h=e:h>n&&(h=n)}if(l){var y,b;const t="y"===f?"width":"height",e=C.has(w(o)),n=r.reference[u]-r.floating[t]+(e&&(null==(y=s.offset)?void 0:y[u])||0)+(e?0:g.crossAxis),i=r.reference[u]+r.reference[t]+(e?0:(null==(b=s.offset)?void 0:b[u])||0)-(e?g.crossAxis:0);d<n?d=n:d>i&&(d=i)}return{[f]:h,[u]:d}}})}),r=[Et(this.offset??(this.arrow?t+4:t)),Mt(),...e?[n,o]:[o,n],kt({apply({availableWidth:e,elements:n}){Object.assign(n.floating.style,{maxWidth:e-2*t+"px"})}})];var i;return this.arrow&&r.push((t=>({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:r,rects:i,platform:s,elements:a,middlewareData:c}=e,{element:l,padding:u=0}=v(t,e)||{};if(null==l)return{};const f=L(u),h={x:n,y:o},d=E(r),m=b(d),w=await s.getDimensions(l),x="y"===d,S=x?"top":"left",T=x?"bottom":"right",k=x?"clientHeight":"clientWidth",M=i.reference[m]+i.reference[d]-h[d]-i.floating[m],A=h[d]-i.reference[d],O=await(null==s.getOffsetParent?void 0:s.getOffsetParent(l));let H=O?O[k]:0;H&&await(null==s.isElement?void 0:s.isElement(O))||(H=a.floating[k]||i.floating[m]);const $=M/2-A/2,D=H/2-w[m]/2-1,P=p(f[S],D),z=p(f[T],D),C=P,F=H-w[m]-z,R=H/2-w[m]/2+$,j=g(C,R,F),W=!c.arrow&&null!=y(r)&&R!==j&&i.reference[m]/2-(R<C?P:z)-w[m]/2<0,B=W?R<C?R-C:R-F:0;return{[d]:h[d]+B,data:{[d]:j,centerOffset:R-j-B,...W&&{alignmentOffset:B}},reset:W}}}))({element:this.arrowRef,padding:t})),((t,e,n)=>{const o=new Map,r={platform:bt,...n},i={...r.platform,_c:o};return(async(t,e,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:s}=n,a=s.detectOverflow?s:{...s,detectOverflow:P},c=await(null==s.isRTL?void 0:s.isRTL(e));let l=await s.getElementRects({reference:t,floating:e,strategy:r}),{x:p,y:u}=D(l,o,c),f=o,h=0;const d={};for(let n=0;n<i.length;n++){const m=i[n];if(!m)continue;const{name:g,fn:v}=m,{x:w,y,data:x,reset:b}=await v({x:p,y:u,initialPlacement:o,placement:f,strategy:r,middlewareData:d,rects:l,platform:a,elements:{reference:t,floating:e}});p=null!=w?w:p,u=null!=y?y:u,d[g]={...d[g],...x},b&&h<50&&(h++,"object"==typeof b&&(b.placement&&(f=b.placement),b.rects&&(l=!0===b.rects?await s.getElementRects({reference:t,floating:e,strategy:r}):b.rects),({x:p,y:u}=D(l,f,c))),n=-1)}return{x:p,y:u,placement:f,strategy:r,middlewareData:d}})(t,e,{...r,platform:i})})(this.eventTarget,this.host,{placement:this.placement||"top",strategy:"fixed",middleware:r})}async updateSafeSpaceBoundaries(e){const n=this.eventTarget.getBoundingClientRect(),o="top"===e||"bottom"===e,r=((t,e,n)=>"top"===t||"bottom"===t?{popover:{y:"top"===t?e.bottom:e.top,xStart:e.left,xEnd:e.right},trigger:{y:"top"===t?n.top:n.bottom,xStart:n.left,xEnd:n.right}}:{popover:{x:"left"===t?e.right:e.left,yStart:e.top,yEnd:e.bottom},trigger:{x:"left"===t?n.left:n.right,yStart:n.top,yEnd:n.bottom}})(e,this.host.getBoundingClientRect(),n);t.PROPERTIES_TO_CLEAR.forEach((t=>{this.host.style.removeProperty(t)})),o?(this.host.style.setProperty("--post-safe-space-popover-y",`${r.popover.y}px`),this.host.style.setProperty("--post-safe-space-popover-x-start",`${r.popover.xStart}px`),this.host.style.setProperty("--post-safe-space-popover-x-end",`${r.popover.xEnd}px`),this.host.style.setProperty("--post-safe-space-trigger-y",`${r.trigger.y}px`),this.host.style.setProperty("--post-safe-space-trigger-x-start",`${r.trigger.xStart}px`),this.host.style.setProperty("--post-safe-space-trigger-x-end",`${r.trigger.xEnd}px`)):(this.host.style.setProperty("--post-safe-space-popover-x",`${r.popover.x}px`),this.host.style.setProperty("--post-safe-space-popover-y-start",`${r.popover.yStart}px`),this.host.style.setProperty("--post-safe-space-popover-y-end",`${r.popover.yEnd}px`),this.host.style.setProperty("--post-safe-space-trigger-x",`${r.trigger.x}px`),this.host.style.setProperty("--post-safe-space-trigger-y-start",`${r.trigger.yStart}px`),this.host.style.setProperty("--post-safe-space-trigger-y-end",`${r.trigger.yEnd}px`))}render(){return o(r,{key:"ef2247b951044fe3b26af9ab90e269812345c04b","data-version":c,popover:"auto"},o("div",{key:"81a28e7873922a830c193e31a14523245315f3e2",part:"post-popovercontainer-content",class:"popover-content"},this.arrow&&o("span",{key:"01bba4ef926779defb660d3d2b2d25c8cd030707","dynamic-placement":this.dynamicPlacement,class:"arrow",ref:t=>{this.arrowRef=t}}),o("slot",{key:"8fa288a638da1cfed3285b6605c64e3b3ff7bc07"})))}get host(){return this}static get watchers(){return{placement:[{validatePlacement:0}],edgeGap:[{validateEdgeGap:0}],safeSpace:[{validateSafeSpace:0}]}}static get style(){return'@layer polyfill{@supports not selector(:popover-open){:host([popover]:not(.\\:popover-open)){display:none}}}:host{background-color:rgba(0,0,0,0);border:rgba(0,0,0,0);position:fixed;margin:0;padding:0;overflow:visible}:host>div{box-shadow:var(--post-device-elevation-300);width:max-content;max-width:100%;color:var(--post-current-fg);background-color:var(--post-current-bg);border-radius:4px}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host>div{border:2px solid rgba(0,0,0,0)}}:host .arrow{--arrow-size: 0.5825rem;position:absolute;width:.5825rem;height:.5825rem;background-color:inherit;rotate:45deg;pointer-events:none;z-index:-1}:host .arrow[dynamic-placement=top]{border-bottom-right-radius:2px}:host .arrow[dynamic-placement=right]{border-bottom-left-radius:2px}:host .arrow[dynamic-placement=bottom]{border-top-left-radius:2px}:host .arrow[dynamic-placement=left]{border-top-right-radius:2px}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host .arrow[dynamic-placement=top]{border-block-end:2px solid rgba(0,0,0,0);border-inline-end:2px solid rgba(0,0,0,0);bottom:-0.3796735336rem !important}:host .arrow[dynamic-placement=left]{border-block-start:2px solid rgba(0,0,0,0);border-inline-end:2px solid rgba(0,0,0,0);right:-0.3796735336rem !important}:host .arrow[dynamic-placement=right]{border-block-end:2px solid rgba(0,0,0,0);border-inline-start:2px solid rgba(0,0,0,0);left:-0.3796735336rem !important}:host .arrow[dynamic-placement=bottom]{border-block-start:2px solid rgba(0,0,0,0);border-inline-start:2px solid rgba(0,0,0,0);top:-0.3796735336rem !important}}:host([tooltip]){position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}:host([safe-space])::after{content:"";position:fixed;inset:0;z-index:-1;pointer-events:auto}:host([safe-space=triangle])::after{clip-path:polygon(var(--post-safe-space-cursor-x, 0) var(--post-safe-space-cursor-y, 0), var(--post-safe-space-popover-x-start, var(--post-safe-space-popover-x, 0)) var(--post-safe-space-popover-y, var(--post-safe-space-popover-y-start, 0)), var(--post-safe-space-popover-x-end, var(--post-safe-space-popover-x, 0)) var(--post-safe-space-popover-y, var(--post-safe-space-popover-y-end, 0)))}:host([safe-space=trapezoid])::after{clip-path:polygon(var(--post-safe-space-trigger-x-start, var(--post-safe-space-trigger-x, 0)) var(--post-safe-space-trigger-y, var(--post-safe-space-trigger-y-start, 0)), var(--post-safe-space-trigger-x-end, var(--post-safe-space-trigger-x, 0)) var(--post-safe-space-trigger-y, var(--post-safe-space-trigger-y-end, 0)), var(--post-safe-space-popover-x-end, var(--post-safe-space-popover-x, 0)) var(--post-safe-space-popover-y, var(--post-safe-space-popover-y-end, 0)), var(--post-safe-space-popover-x-start, var(--post-safe-space-popover-x, 0)) var(--post-safe-space-popover-y, var(--post-safe-space-popover-y-start, 0)))}:host(:not(:has(.arrow)))>div{box-shadow:var(--post-device-elevation-300)}:host(:has(.arrow))>div{filter:drop-shadow(1px 2px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(2px 4px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(4px 8px 12px hsla(225, 7%, 11%, 0.15))}:host(:has(.arrow[dynamic-placement=top]))>div{filter:drop-shadow(0px -2px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(0px -4px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(0px -8px 12px hsla(225, 7%, 11%, 0.15))}:host(:has(.arrow[dynamic-placement=left]))>div{filter:drop-shadow(-2px 0px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(-4px 0px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(-8px 0px 12px hsla(225, 7%, 11%, 0.15))}:host(:has(.arrow[dynamic-placement=right]))>div{filter:drop-shadow(2px 0px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(4px 0px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(8px 0px 12px hsla(225, 7%, 11%, 0.15))}'}},[257,"post-popovercontainer",{placement:[1],edgeGap:[2,"edge-gap"],offset:[2],arrow:[4],safeSpace:[513,"safe-space"],dynamicPlacement:[32],show:[64],hide:[64],toggle:[64]},void 0,{placement:[{validatePlacement:0}],edgeGap:[{validateEdgeGap:0}],safeSpace:[{validateSafeSpace:0}]}]);function pe(){"undefined"!=typeof customElements&&["post-popovercontainer"].forEach((t=>{"post-popovercontainer"===t&&(customElements.get(i(t))||customElements.define(i(t),le))}))}le.STATIC_SIDES={top:"bottom",right:"left",bottom:"top",left:"right"},le.PROPERTIES_TO_CLEAR=["--post-safe-space-popover-x","--post-safe-space-popover-y","--post-safe-space-popover-x-start","--post-safe-space-popover-x-end","--post-safe-space-popover-y-start","--post-safe-space-popover-y-end","--post-safe-space-trigger-x","--post-safe-space-trigger-y","--post-safe-space-trigger-x-start","--post-safe-space-trigger-x-end","--post-safe-space-trigger-y-start","--post-safe-space-trigger-y-end"],pe();export{le as P,l as a,pe as d}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{p as e,H as t,c as s,h as i,a as o,t as a}from"./index.js";import{a as n,d as r}from"./p-BADyL6qQ.js";import{v as l}from"./p-NDMNbu5d.js";import{g as h}from"./p-DsaGKkkf.js";import{d as c,c as d}from"./p-B2BDAeHI.js";import"./p-BQ3HlJPr.js";import{E as p}from"./p-rEfV4v4a.js";import{g as m}from"./p-08F-DB-d.js";var f=function(e,t,s,i){var o,a=arguments.length,n=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,i);else for(var r=e.length-1;r>=0;r--)(o=e[r])&&(n=(a<3?o(n):a>3?o(t,s,n):o(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n};const b=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.toggleMenu=s(this,"toggleMenu"),this.lastFocusedElement=null,this.KEYCODES={SPACE:" ",ENTER:"Enter",UP:"ArrowUp",DOWN:"ArrowDown",TAB:"Tab",HOME:"Home",END:"End",ESCAPE:"Escape"},this.placement="bottom",this.isVisible=!1,this.handleKeyDown=e=>{e.stopPropagation(),e.key!==this.KEYCODES.ESCAPE?Object.values(this.KEYCODES).includes(e.key)&&this.controlKeyDownHandler(e):this.toggle(this.host)},this.handleClick=e=>{["BUTTON","A","INPUT","SELECT","TEXTAREA"].includes(e.target.tagName)&&this.toggle(this.host)}}validatePlacement(){c(this,"placement",n)}validateLabel(){d(this,"label","string")}connectedCallback(){this.root=m(this.host),this.host.addEventListener("keydown",this.handleKeyDown),this.host.addEventListener("click",this.handleClick)}disconnectedCallback(){this.host.removeEventListener("keydown",this.handleKeyDown),this.host.removeEventListener("click",this.handleClick)}componentDidLoad(){this.validatePlacement(),this.validateLabel()}async toggle(e){this.popoverRef?await this.popoverRef.toggle(e):console.error("toggle: popoverRef is null or undefined")}async show(e){this.popoverRef?await this.popoverRef.show(e):console.error("show: popoverRef is null or undefined")}async hide(){this.popoverRef?await this.popoverRef.hide():console.error("hide: popoverRef is null or undefined")}handlePostShown(e){if(e.detail.first){this.host.setAttribute("role","menu");const e=this.getSlottedItems();for(const t of e)t.setAttribute("role","menuitem");this.label&&this.host.setAttribute("aria-label",this.label)}}handlePostBeforeToggle(e){this.isVisible=e.detail.willOpen,this.toggleMenu.emit(this.isVisible),this.isVisible?(this.lastFocusedElement=this.root?.activeElement,requestAnimationFrame((()=>{const e=this.getSlottedItems();e.length>0&&e[0].focus()}))):this.lastFocusedElement&&this.lastFocusedElement.focus()}controlKeyDownHandler(e){const t=this.getSlottedItems();if(0===t.length)return;let s=t.findIndex((e=>e===m(e).activeElement));switch(e.key){case this.KEYCODES.UP:e.preventDefault(),s=(s-1+t.length)%t.length;break;case this.KEYCODES.DOWN:e.preventDefault(),s=(s+1)%t.length;break;case this.KEYCODES.HOME:s=0;break;case this.KEYCODES.END:e.preventDefault(),s=t.length-1;break;case this.KEYCODES.SPACE:return void this.toggle(this.host);case this.KEYCODES.TAB:this.toggle(this.host)}t[s]&&t[s].focus()}getSlottedItems(){const e=this.host.shadowRoot.querySelectorAll("slot"),t=[];return e.forEach((e=>t.push(...e.assignedElements()))),t.flatMap((e=>e instanceof HTMLSlotElement?e.assignedElements():e)).flatMap((e=>Array.from(h(e))))}render(){return i(o,{key:"6a7129370201b73724e51376165ce7ee038b5b86","data-version":l},i("post-popovercontainer",{key:"7cfae6f686abce9d6bcdf9667c9b0ef8926f3c2d",onPostShow:this.handlePostShown.bind(this),onPostBeforeToggle:this.handlePostBeforeToggle.bind(this),placement:this.placement,ref:e=>this.popoverRef=e},i("div",{key:"5676f467dcc64043b27fc9698feae24bbb7f2c97",part:"post-menu"},i("slot",{key:"e13b59b81063e52438209ac05f4414f19e2cb9d4",name:"header"}),i("slot",{key:"90e634aa424e18a1340559921db6aca4f8c2e1fd"}))))}get host(){return this}static get watchers(){return{placement:[{validatePlacement:0}],label:[{validateLabel:0}]}}static get style(){return":host{display:block}:where([part=post-menu]){display:flex;flex-direction:column;padding-block:.5rem}::slotted([slot=header]){margin-top:-0.5rem;padding:1rem;display:flex;align-items:center;gap:.5rem;border-block-end:1px solid #050400;font-weight:700}@media screen and (max-width: 1023.98px){::slotted([slot=header]){padding:.75rem 1rem}}@media screen and (max-width: 779.98px){::slotted([slot=header]){padding:.5rem 1rem}}"}},[257,"post-menu",{placement:[1],label:[513],isVisible:[32],toggle:[64],show:[64],hide:[64]},void 0,{placement:[{validatePlacement:0}],label:[{validateLabel:0}]}]);function u(){"undefined"!=typeof customElements&&["post-menu","post-popovercontainer"].forEach((e=>{switch(e){case"post-menu":customElements.get(a(e))||customElements.define(a(e),b);break;case"post-popovercontainer":customElements.get(a(e))||r()}}))}f([p("post-popovercontainer")],b.prototype,"handlePostShown",null),f([p("post-popovercontainer")],b.prototype,"handlePostBeforeToggle",null),u();export{b as P,u as d}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t,p as e,H as s,c as o,h as i,a as l}from"./index.js";import{v as a}from"./p-NDMNbu5d.js";import"./p-BQ3HlJPr.js";import{g as r}from"./p-B2BDAeHI.js";const h={height:"0",overflow:"hidden"},n={duration:!globalThis.matchMedia||globalThis.matchMedia("(prefers-reduced-motion: reduce)").matches?0:350,easing:"ease",fill:"forwards"},d=e(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.postToggle=o(this,"postToggle"),this.collapsed=!1}collapsedChange(){r(this,"collapsed","boolean")}get isExpanded(){return!this.collapsed}componentDidLoad(){this.collapsedChange(),this.updateTriggers()}async toggle(t=!this.isExpanded){if(t===this.isExpanded)return this.isExpanded;this.collapsed=!t;const e=this.isExpanded;{const t=e?(s=this.host).animate([h,{height:`${s.scrollHeight}px`,offset:1,overflow:"hidden"},{height:"auto",overflow:"visible"}],n):function(t){const e=globalThis.getComputedStyle(t).height;return t.animate([{height:e},h],n)}(this.host);this.postToggle.emit(e),await t.finished,t.commitStyles(),this.updateTriggers()}var s;return e}updateTriggers(){document.querySelectorAll(`post-collapsible-trigger[for="${this.host.id}"]`).forEach((t=>t.update()))}render(){return i(l,{key:"e20569112cd3c844cf9f5e274ef452592f295f3e","data-version":a,tabindex:this.collapsed?-1:void 0,style:this.collapsed?h:void 0},i("slot",{key:"af454694fd370de798c3cdf962b950efbbc7dad9"}))}get host(){return this}static get watchers(){return{collapsed:[{collapsedChange:0}]}}static get style(){return":host{display:block;position:relative;overflow:var(--post-collapsible-initial-overflow, hidden);height:var(--post-collapsible-initial-height, auto)}"}},[257,"post-collapsible",{collapsed:[1028],toggle:[64]},void 0,{collapsed:[{collapsedChange:0}]}]);function c(){"undefined"!=typeof customElements&&["post-collapsible"].forEach((e=>{"post-collapsible"===e&&(customElements.get(t(e))||customElements.define(t(e),d))}))}c();export{d as P,c as d}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function t(t,i,e){var s,n=e||{},o=n.noTrailing,d=void 0!==o&&o,h=n.noLeading,v=void 0!==h&&h,c=n.debounceMode,r=void 0===c?void 0:c,a=!1,u=0;function m(){s&&clearTimeout(s)}function l(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];var h=this,c=Date.now()-u;function l(){u=Date.now(),i.apply(h,n)}function b(){s=void 0}a||(v||!r||s||l(),m(),void 0===r&&c>t?v?(u=Date.now(),d||(s=setTimeout(r?b:l,t))):l():!0!==d&&(s=setTimeout(r?b:l,void 0===r?t-c:t)))}return l.cancel=function(t){var i=(t||{}).upcomingOnly,e=void 0!==i&&i;m(),a=!e},l}function i(i,e){var s={}.atBegin;return t(i,e,{debounceMode:!1!==(void 0!==s&&s)})}const e=new class{constructor(){this.breakpoints=[{key:"xl",device:"desktop",minWidth:1280},{key:"lg",device:"desktop",minWidth:1024},{key:"md",device:"tablet",minWidth:780},{key:"sm",device:"tablet",minWidth:600},{key:"xs",device:"mobile",minWidth:0}],this.resizeObserver=globalThis.ResizeObserver?new ResizeObserver((()=>this.updateCurrentBreakpoint())):null,this.updateCurrentBreakpoint=t(50,((t={emitEvents:!0})=>{const i=this.currentBreakpoint,e=this.breakpoints.find((t=>t.minWidth<=innerWidth));e&&(this.currentBreakpoint=e,t.emitEvents&&Object.keys(this.currentBreakpoint).filter((t=>!i||this.currentBreakpoint[t]!==i[t])).forEach((t=>this.dispatchEvent(t))))})),this.resizeObserver&&(this.updateCurrentBreakpoint({emitEvents:!1}),this.resizeObserver.observe(document.body))}dispatchEvent(t){globalThis.dispatchEvent(new CustomEvent(`postBreakpoint:${t}`,{detail:this.currentBreakpoint[t]}))}get(t){return this.updateCurrentBreakpoint({emitEvents:!1}),this.currentBreakpoint[t]}};export{e as b,i as d,t}
|