@swisspost/design-system-components 8.10.1 → 8.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{index-72b9122e.js → index-e1f32cce.js} +14 -1
- package/dist/cjs/index.cjs.js +17 -17
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{package-075febd4.js → package-9bc01277.js} +1 -1
- package/dist/cjs/{post-accordion-75e6eb65.js → post-accordion-fef31969.js} +2 -2
- package/dist/cjs/{post-accordion-item-3d532e1c.js → post-accordion-item-0a83b859.js} +2 -2
- package/dist/cjs/post-accordion-item.cjs.entry.js +3 -3
- package/dist/cjs/post-accordion.cjs.entry.js +3 -3
- package/dist/cjs/{post-alert-6ca91c9a.js → post-alert-a640f334.js} +2 -2
- package/dist/cjs/post-alert.cjs.entry.js +3 -3
- package/dist/cjs/{post-card-control-cf7f8a7b.js → post-card-control-564cdba0.js} +2 -2
- package/dist/cjs/post-card-control.cjs.entry.js +3 -3
- package/dist/cjs/{post-collapsible-trigger-72f69145.js → post-collapsible-trigger-8e06c01e.js} +11 -4
- package/dist/cjs/post-collapsible_2.cjs.entry.js +3 -3
- package/dist/cjs/post-components.cjs.js +2 -2
- package/dist/cjs/{post-icon-31237866.js → post-icon-383657e4.js} +37 -44
- package/dist/cjs/post-icon.cjs.entry.js +3 -3
- package/dist/cjs/{post-logo-d5b56fdf.js → post-logo-9125ad57.js} +2 -2
- package/dist/cjs/post-logo.cjs.entry.js +3 -3
- package/dist/cjs/{post-popover-9341e98d.js → post-popover-72e012fc.js} +2 -2
- package/dist/cjs/post-popover.cjs.entry.js +3 -3
- package/dist/cjs/{post-popovercontainer-d1e24031.js → post-popovercontainer-e18ce2bd.js} +2 -2
- package/dist/cjs/post-popovercontainer.cjs.entry.js +3 -3
- package/dist/cjs/{post-rating-f28e9669.js → post-rating-31ba1f49.js} +2 -2
- package/dist/cjs/post-rating.cjs.entry.js +3 -3
- package/dist/cjs/{post-tab-header-88a5a2e8.js → post-tab-header-4fa6467e.js} +2 -2
- package/dist/cjs/post-tab-header.cjs.entry.js +3 -3
- package/dist/cjs/{post-tab-panel-a8081393.js → post-tab-panel-99d69461.js} +2 -2
- package/dist/cjs/post-tab-panel.cjs.entry.js +3 -3
- package/dist/cjs/{post-tabs-58f46013.js → post-tabs-852cdc65.js} +2 -2
- package/dist/cjs/post-tabs.cjs.entry.js +3 -3
- package/dist/cjs/{post-tag-7c39768f.js → post-tag-1c914425.js} +2 -2
- package/dist/cjs/post-tag.cjs.entry.js +3 -3
- package/dist/cjs/{post-tooltip-0b8746e4.js → post-tooltip-b82db6c9.js} +2 -2
- package/dist/cjs/post-tooltip.cjs.entry.js +3 -3
- package/dist/collection/animations/collapse.js +1 -1
- package/dist/collection/components/post-collapsible/post-collapsible.js +10 -3
- package/dist/collection/components/post-icon/post-icon.js +36 -43
- package/dist/components/package.js +1 -1
- package/dist/components/post-collapsible2.js +9 -2
- package/dist/components/post-icon2.js +36 -43
- package/dist/docs.json +2 -2
- package/dist/esm/{index-61528ac5.js → index-e1b64755.js} +14 -1
- package/dist/esm/index.js +17 -17
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{package-27c9b485.js → package-2a9c7583.js} +1 -1
- package/dist/esm/{post-accordion-c751c053.js → post-accordion-f2127bd3.js} +2 -2
- package/dist/esm/{post-accordion-item-d78c2d45.js → post-accordion-item-8cd6cfa9.js} +2 -2
- package/dist/esm/post-accordion-item.entry.js +3 -3
- package/dist/esm/post-accordion.entry.js +3 -3
- package/dist/esm/{post-alert-e12042a7.js → post-alert-fab25f63.js} +2 -2
- package/dist/esm/post-alert.entry.js +3 -3
- package/dist/esm/{post-card-control-6fbe8710.js → post-card-control-9a79639b.js} +2 -2
- package/dist/esm/post-card-control.entry.js +3 -3
- package/dist/esm/{post-collapsible-trigger-09c613c5.js → post-collapsible-trigger-4e333783.js} +11 -4
- package/dist/esm/post-collapsible_2.entry.js +3 -3
- package/dist/esm/post-components.js +3 -3
- package/dist/esm/{post-icon-a3077af9.js → post-icon-0de761b5.js} +37 -44
- package/dist/esm/post-icon.entry.js +3 -3
- package/dist/esm/{post-logo-0af50626.js → post-logo-c28b9103.js} +2 -2
- package/dist/esm/post-logo.entry.js +3 -3
- package/dist/esm/{post-popover-8717cc25.js → post-popover-dbfb758b.js} +2 -2
- package/dist/esm/post-popover.entry.js +3 -3
- package/dist/esm/{post-popovercontainer-88ca79d7.js → post-popovercontainer-5cf88201.js} +2 -2
- package/dist/esm/post-popovercontainer.entry.js +3 -3
- package/dist/esm/{post-rating-b93b4be6.js → post-rating-05c81017.js} +2 -2
- package/dist/esm/post-rating.entry.js +3 -3
- package/dist/esm/{post-tab-header-5cb9ceb2.js → post-tab-header-69189898.js} +2 -2
- package/dist/esm/post-tab-header.entry.js +3 -3
- package/dist/esm/{post-tab-panel-8274ad47.js → post-tab-panel-e15d5761.js} +2 -2
- package/dist/esm/post-tab-panel.entry.js +3 -3
- package/dist/esm/{post-tabs-5a5ad6d8.js → post-tabs-53f401e9.js} +2 -2
- package/dist/esm/post-tabs.entry.js +3 -3
- package/dist/esm/{post-tag-f1b66323.js → post-tag-63563364.js} +2 -2
- package/dist/esm/post-tag.entry.js +3 -3
- package/dist/esm/{post-tooltip-e3cc07ce.js → post-tooltip-b3f7a763.js} +2 -2
- package/dist/esm/post-tooltip.entry.js +3 -3
- package/dist/post-components/index.esm.js +1 -1
- package/dist/post-components/{p-87c12206.js → p-045bf43b.js} +1 -1
- package/dist/post-components/p-1267f81d.entry.js +1 -0
- package/dist/post-components/p-1c7e3473.entry.js +1 -0
- package/dist/post-components/p-1d9b4f7f.js +1 -0
- package/dist/post-components/{p-c5ced99b.js → p-2c4d0ab3.js} +1 -1
- package/dist/post-components/p-380c9fa7.entry.js +1 -0
- package/dist/post-components/p-3c260ef9.entry.js +1 -0
- package/dist/post-components/{p-343f6de1.js → p-3eab790d.js} +2 -2
- package/dist/post-components/{p-fbb37b73.js → p-41d0fd43.js} +1 -1
- package/dist/post-components/p-45b22858.js +1 -0
- package/dist/post-components/p-4c049179.entry.js +1 -0
- package/dist/post-components/p-4d1a9ee0.entry.js +1 -0
- package/dist/post-components/{p-aef5acbc.js → p-52ff62eb.js} +1 -1
- package/dist/post-components/{p-8de5fb0c.js → p-56c1bdd8.js} +1 -1
- package/dist/post-components/{p-6d694626.js → p-58a13d03.js} +1 -1
- package/dist/post-components/p-64e4b53c.entry.js +1 -0
- package/dist/post-components/p-70b45369.entry.js +1 -0
- package/dist/post-components/{p-2f2e2480.js → p-7461d6e1.js} +1 -1
- package/dist/post-components/{p-c9fed82f.js → p-7fa8c413.js} +1 -1
- package/dist/post-components/p-85e99edb.entry.js +1 -0
- package/dist/post-components/p-95a93869.entry.js +1 -0
- package/dist/post-components/p-973c8787.js +1 -0
- package/dist/post-components/{p-2e84ed24.js → p-a31f914a.js} +1 -1
- package/dist/post-components/p-a45ad972.js +1 -0
- package/dist/post-components/p-a88b1f0a.entry.js +1 -0
- package/dist/post-components/p-bea5ccca.entry.js +1 -0
- package/dist/post-components/{p-41ce2017.js → p-d9fa6470.js} +1 -1
- package/dist/post-components/p-ed34850c.entry.js +1 -0
- package/dist/post-components/p-eeac5ba6.entry.js +1 -0
- package/dist/post-components/{p-624edd79.js → p-f1f1c477.js} +1 -1
- package/dist/post-components/{p-d6a6a17e.js → p-f76e1642.js} +1 -1
- package/dist/post-components/{p-82687973.entry.js → p-ff443800.entry.js} +1 -1
- package/dist/post-components/post-components.esm.js +1 -1
- package/dist/types/animations/collapse.d.ts +1 -0
- package/loaders/package.js +1 -1
- package/loaders/post-collapsible2.js +9 -2
- package/loaders/post-icon2.js +36 -43
- package/package.json +2 -2
- package/dist/post-components/p-0114ebad.entry.js +0 -1
- package/dist/post-components/p-0d5caecd.entry.js +0 -1
- package/dist/post-components/p-1116dd9c.js +0 -1
- package/dist/post-components/p-17a0403b.entry.js +0 -1
- package/dist/post-components/p-1817b8af.entry.js +0 -1
- package/dist/post-components/p-1ce84d68.js +0 -1
- package/dist/post-components/p-2a040a47.entry.js +0 -1
- package/dist/post-components/p-30964d83.entry.js +0 -1
- package/dist/post-components/p-33c4caca.entry.js +0 -1
- package/dist/post-components/p-41c22c08.js +0 -1
- package/dist/post-components/p-58f4ce1d.entry.js +0 -1
- package/dist/post-components/p-6b2cae0d.js +0 -1
- package/dist/post-components/p-905d12b1.entry.js +0 -1
- package/dist/post-components/p-abf90293.entry.js +0 -1
- package/dist/post-components/p-c54bb204.entry.js +0 -1
- package/dist/post-components/p-cadfb16a.entry.js +0 -1
- package/dist/post-components/p-da233a1c.entry.js +0 -1
- package/dist/post-components/p-ee42e275.entry.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host, g as getElement } from './index-
|
|
2
|
-
import { v as version } from './package-
|
|
1
|
+
import { r as registerInstance, h, H as Host, g as getElement } from './index-e1b64755.js';
|
|
2
|
+
import { v as version } from './package-2a9c7583.js';
|
|
3
3
|
import { c as checkNonEmpty } from './check-non-empty-58bd6b17.js';
|
|
4
4
|
|
|
5
5
|
const postTabHeaderCss = ".tab-title[role=tab]{display:inline-block;cursor:pointer;position:relative;box-sizing:border-box;padding:1rem;transition:background-color 100ms;border-right:1px solid rgba(0,0,0,0);border-left:1px solid rgba(0,0,0,0);outline-color:currentColor;opacity:.7;color:var(--post-contrast-color);text-decoration:none;background-color:rgba(0,0,0,0)}.tab-title[role=tab]:focus{background-color:unset;color:var(--post-contrast-color)}.tab-title[role=tab]:hover{opacity:1;background-color:rgba(var(--post-contrast-color-rgb), 0.6);color:var(--post-contrast-color-inverted)}.tab-title[role=tab]:focus-visible{outline:rgba(0,0,0,0);opacity:1;background-color:rgba(var(--post-contrast-color-rgb), 0.6);color:var(--post-contrast-color-inverted);box-shadow:none}.tab-title[role=tab]:focus-visible::after{content:\"\";display:block;position:absolute;top:2px;right:1px;bottom:0;left:1px;box-shadow:0 0 0 1px #fff,0 0 0 2px #333}.tab-title[role=tab].active{z-index:1;border-right-color:#ccc;border-left-color:#ccc;opacity:1;background-color:var(--post-contrast-color-inverted);color:var(--post-contrast-color);font-weight:700}.tab-title[role=tab].active::before{content:\"\";display:block;position:absolute;top:0;right:-1px;left:-1px;height:.25rem;background-color:#fc0}:where(.bg-dark,.bg-black,.bg-primary,.bg-secondary,.bg-success,.bg-error,.bg-nightblue,.bg-nightblue-bright,.bg-petrol,.bg-coral,.bg-olive,.bg-purple,.bg-purple-bright,.bg-aubergine,.bg-aubergine-bright,.alert-primary,post-alert[type=primary],.alert-success,post-alert[type=success],.alert-danger,post-alert[type=danger],.alert-notification,post-alert[type=notification],.alert-error,post-alert[type=error]) .tab-title[role=tab]:hover{background-color:rgba(255,255,255,.2)}:where(.bg-dark,.bg-black,.bg-primary,.bg-secondary,.bg-success,.bg-error,.bg-nightblue,.bg-nightblue-bright,.bg-petrol,.bg-coral,.bg-olive,.bg-purple,.bg-purple-bright,.bg-aubergine,.bg-aubergine-bright,.alert-primary,post-alert[type=primary],.alert-success,post-alert[type=success],.alert-danger,post-alert[type=danger],.alert-notification,post-alert[type=notification],.alert-error,post-alert[type=error]) .tab-title[role=tab]:focus-visible{background-color:rgba(255,255,255,.2)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.tab-title[role=tab]{opacity:1;border-left-color:Canvas;border-right-color:Canvas;color:LinkText}.tab-title[role=tab]:hover,.tab-title[role=tab]:focus,.tab-title[role=tab]:focus-within,.tab-title[role=tab]:focus-visible{outline:2px solid Highlight;outline-offset:-0.25rem}.tab-title[role=tab].active{border-left-color:ButtonText;border-right-color:ButtonText;color:Highlight}.tab-title[role=tab].active::before{background-color:Highlight}}.bg-yellow .tab-title{background-color:#fc0}.bg-yellow .tab-title.active{background-color:#fc0}.bg-yellow .nav-item{background-color:#fc0}.bg-white .tab-title{background-color:#fff}.bg-white .tab-title.active{background-color:#fff}.bg-white .nav-item{background-color:#fff}.bg-light .tab-title{background-color:#faf9f8}.bg-light .tab-title.active{background-color:#faf9f8}.bg-light .nav-item{background-color:#faf9f8}.bg-gray .tab-title{background-color:#f4f3f1}.bg-gray .tab-title.active{background-color:#f4f3f1}.bg-gray .nav-item{background-color:#f4f3f1}.bg-dark .tab-title{background-color:#333}.bg-dark .tab-title.active{background-color:#333}.bg-dark .nav-item{background-color:#333}.bg-black .tab-title{background-color:#000}.bg-black .tab-title.active{background-color:#000}.bg-black .nav-item{background-color:#000}.bg-primary .tab-title{background-color:#333}.bg-primary .tab-title.active{background-color:#333}.bg-primary .nav-item{background-color:#333}.bg-secondary .tab-title{background-color:#666}.bg-secondary .tab-title.active{background-color:#666}.bg-secondary .nav-item{background-color:#666}.bg-success .tab-title{background-color:#2c871d}.bg-success .tab-title.active{background-color:#2c871d}.bg-success .nav-item{background-color:#2c871d}.bg-warning .tab-title{background-color:#f49e00}.bg-warning .tab-title.active{background-color:#f49e00}.bg-warning .nav-item{background-color:#f49e00}.bg-error .tab-title{background-color:#a51728}.bg-error .tab-title.active{background-color:#a51728}.bg-error .nav-item{background-color:#a51728}.bg-info .tab-title{background-color:#cce4ee}.bg-info .tab-title.active{background-color:#cce4ee}.bg-info .nav-item{background-color:#cce4ee}.bg-success-background .tab-title{background-color:#c0debb}.bg-success-background .tab-title.active{background-color:#c0debb}.bg-success-background .nav-item{background-color:#c0debb}.bg-warning-background .tab-title{background-color:#fce2b2}.bg-warning-background .tab-title.active{background-color:#fce2b2}.bg-warning-background .nav-item{background-color:#fce2b2}.bg-error-background .tab-title{background-color:#ffdade}.bg-error-background .tab-title.active{background-color:#ffdade}.bg-error-background .nav-item{background-color:#ffdade}.bg-nightblue .tab-title{background-color:#004976}.bg-nightblue .tab-title.active{background-color:#004976}.bg-nightblue .nav-item{background-color:#004976}.bg-nightblue-bright .tab-title{background-color:#0076a8}.bg-nightblue-bright .tab-title.active{background-color:#0076a8}.bg-nightblue-bright .nav-item{background-color:#0076a8}.bg-petrol .tab-title{background-color:#006d68}.bg-petrol .tab-title.active{background-color:#006d68}.bg-petrol .nav-item{background-color:#006d68}.bg-petrol-bright .tab-title{background-color:#00968f}.bg-petrol-bright .tab-title.active{background-color:#00968f}.bg-petrol-bright .nav-item{background-color:#00968f}.bg-coral .tab-title{background-color:#9e2a2f}.bg-coral .tab-title.active{background-color:#9e2a2f}.bg-coral .nav-item{background-color:#9e2a2f}.bg-coral-bright .tab-title{background-color:#e03c31}.bg-coral-bright .tab-title.active{background-color:#e03c31}.bg-coral-bright .nav-item{background-color:#e03c31}.bg-olive .tab-title{background-color:#716135}.bg-olive .tab-title.active{background-color:#716135}.bg-olive .nav-item{background-color:#716135}.bg-olive-bright .tab-title{background-color:#aa9d2e}.bg-olive-bright .tab-title.active{background-color:#aa9d2e}.bg-olive-bright .nav-item{background-color:#aa9d2e}.bg-purple .tab-title{background-color:#80276c}.bg-purple .tab-title.active{background-color:#80276c}.bg-purple .nav-item{background-color:#80276c}.bg-purple-bright .tab-title{background-color:#c5299b}.bg-purple-bright .tab-title.active{background-color:#c5299b}.bg-purple-bright .nav-item{background-color:#c5299b}.bg-aubergine .tab-title{background-color:#523178}.bg-aubergine .tab-title.active{background-color:#523178}.bg-aubergine .nav-item{background-color:#523178}.bg-aubergine-bright .tab-title{background-color:#7566a0}.bg-aubergine-bright .tab-title.active{background-color:#7566a0}.bg-aubergine-bright .nav-item{background-color:#7566a0}[class*=bg-] .tab-title.active:focus::after{background-color:rgba(255,255,255,.2)}@supports selector(*:focus-visible){[class*=bg-] .tab-title.active:focus::after{background-color:unset}[class*=bg-] .tab-title.active:focus-visible::after{background-color:rgba(255,255,255,.2)}}/*!\n * Bootstrap Utilities v5.1.3 (https://getbootstrap.com/)\n * Copyright 2011-2021 The Bootstrap Authors\n * Copyright 2011-2021 Twitter, Inc.\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n\n * The MIT License (MIT)\n\n * Copyright (c) 2011-2020 Twitter, Inc.\n * Copyright (c) 2011-2020 The Bootstrap Authors\n\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n *//*!\n * Copyright 2021 by Swiss Post, Information Technology\n */:host{display:block}.tab-title{padding:0;overflow:visible;border:0;background:none;color:inherit;font:inherit;-webkit-user-select:none;user-select:none;appearance:button}";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { P as post_tab_header } from './post-tab-header-
|
|
2
|
-
import './index-
|
|
3
|
-
import './package-
|
|
1
|
+
export { P as post_tab_header } from './post-tab-header-69189898.js';
|
|
2
|
+
import './index-e1b64755.js';
|
|
3
|
+
import './package-2a9c7583.js';
|
|
4
4
|
import './check-non-empty-58bd6b17.js';
|
|
5
5
|
import './constants-8d548297.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host, g as getElement } from './index-
|
|
2
|
-
import { v as version } from './package-
|
|
1
|
+
import { r as registerInstance, h, H as Host, g as getElement } from './index-e1b64755.js';
|
|
2
|
+
import { v as version } from './package-2a9c7583.js';
|
|
3
3
|
|
|
4
4
|
const postTabPanelCss = ":host{display:none}";
|
|
5
5
|
const PostTabPanelStyle0 = postTabPanelCss;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { P as post_tab_panel } from './post-tab-panel-
|
|
2
|
-
import './index-
|
|
3
|
-
import './package-
|
|
1
|
+
export { P as post_tab_panel } from './post-tab-panel-e15d5761.js';
|
|
2
|
+
import './index-e1b64755.js';
|
|
3
|
+
import './package-2a9c7583.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
|
2
|
-
import { v as version } from './package-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-e1b64755.js';
|
|
2
|
+
import { v as version } from './package-2a9c7583.js';
|
|
3
3
|
import { f as fadeOut, a as fadeIn } from './fade-7fd71785.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { P as post_tabs } from './post-tabs-
|
|
2
|
-
import './index-
|
|
3
|
-
import './package-
|
|
1
|
+
export { P as post_tabs } from './post-tabs-53f401e9.js';
|
|
2
|
+
import './index-e1b64755.js';
|
|
3
|
+
import './package-2a9c7583.js';
|
|
4
4
|
import './fade-7fd71785.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host, g as getElement } from './index-
|
|
2
|
-
import { v as version } from './package-
|
|
1
|
+
import { r as registerInstance, h, H as Host, g as getElement } from './index-e1b64755.js';
|
|
2
|
+
import { v as version } from './package-2a9c7583.js';
|
|
3
3
|
|
|
4
4
|
const postTagCss = "/*!\n * Bootstrap Utilities v5.1.3 (https://getbootstrap.com/)\n * Copyright 2011-2021 The Bootstrap Authors\n * Copyright 2011-2021 Twitter, Inc.\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n\n * The MIT License (MIT)\n\n * Copyright (c) 2011-2020 Twitter, Inc.\n * Copyright (c) 2011-2020 The Bootstrap Authors\n\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n *//*!\n * Copyright 2021 by Swiss Post, Information Technology\n */.tag,.tag:where(:has(:not(pre))){--post-tag-bg:hsl(0, 0%, 90%);--post-tag-fg:#000;display:inline-flex;align-items:center;gap:.25rem;padding:0 .5rem;max-width:100%;background-color:var(--post-tag-bg);border:1px solid rgba(0,0,0,0);border-radius:.25rem;font-size:1rem;line-height:1.875rem;white-space:nowrap;color:var(--post-tag-fg)}.tag post-icon,.tag:where(:has(:not(pre))) post-icon{flex:0 0 auto;width:1.25rem;height:1.25rem}.tag .tag-text,.tag:where(:has(:not(pre))) .tag-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tag .tag-text svg,.tag .tag-text img,.tag:where(:has(:not(pre))) .tag-text svg,.tag:where(:has(:not(pre))) .tag-text img{display:inline-block;height:1.25rem !important;vertical-align:text-top}.tag.tag-sm,.tag:where(:has(:not(pre))).tag-sm{line-height:1.5rem}.tag.tag-sm .tag-icon,.tag:where(:has(:not(pre))).tag-sm .tag-icon{width:1rem;height:1rem}.tag.tag-white,.tag:where(:has(:not(pre))).tag-white{--post-tag-bg:#fff;--post-tag-fg:#000}.tag.tag-yellow,.tag:where(:has(:not(pre))).tag-yellow{--post-tag-bg:#fc0;--post-tag-fg:#000}.tag.tag-success,.tag:where(:has(:not(pre))).tag-success{--post-tag-bg:#2c871d;--post-tag-fg:#fff}.tag.tag-warning,.tag:where(:has(:not(pre))).tag-warning{--post-tag-bg:#f49e00;--post-tag-fg:#000}.tag.tag-danger,.tag:where(:has(:not(pre))).tag-danger{--post-tag-bg:#a51728;--post-tag-fg:#fff}.tag.tag-info,.tag:where(:has(:not(pre))).tag-info{--post-tag-bg:#cce4ee;--post-tag-fg:#000}.tag.tag-white,.tag:where(:has(:not(pre))).tag-white{border-color:var(--post-contrast-color)}pre .tag,pre .tag:where(:has(:not(pre))){display:inline;padding:initial;max-width:initial;background:initial;border:initial;border-radius:initial;font-size:inherit;line-height:inherit;white-space:unset}*,*:before,*:after{box-sizing:border-box}.tag-text ::slotted(svg),.tag-text ::slotted(img){display:inline-block !important;height:1.25rem !important;vertical-align:text-top !important}";
|
|
5
5
|
const PostTagStyle0 = postTagCss;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { P as post_tag } from './post-tag-
|
|
2
|
-
import './index-
|
|
3
|
-
import './package-
|
|
1
|
+
export { P as post_tag } from './post-tag-63563364.js';
|
|
2
|
+
import './index-e1b64755.js';
|
|
3
|
+
import './package-2a9c7583.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host, g as getElement } from './index-
|
|
2
|
-
import { v as version$1 } from './package-
|
|
1
|
+
import { r as registerInstance, h, H as Host, g as getElement } from './index-e1b64755.js';
|
|
2
|
+
import { v as version$1 } from './package-2a9c7583.js';
|
|
3
3
|
import { g as getAttributeObserver } from './attribute-observer-37fa950a.js';
|
|
4
4
|
import { d as checkEmptyOrType } from './index-f41b763f.js';
|
|
5
5
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { P as post_tooltip } from './post-tooltip-
|
|
2
|
-
import './index-
|
|
3
|
-
import './package-
|
|
1
|
+
export { P as post_tooltip } from './post-tooltip-b3f7a763.js';
|
|
2
|
+
import './index-e1b64755.js';
|
|
3
|
+
import './package-2a9c7583.js';
|
|
4
4
|
import './attribute-observer-37fa950a.js';
|
|
5
5
|
import './index-f41b763f.js';
|
|
6
6
|
import './constants-8d548297.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{P as PostAccordion}from"./p-
|
|
1
|
+
export{P as PostAccordion}from"./p-1d9b4f7f.js";export{P as PostAccordionItem}from"./p-7fa8c413.js";export{P as PostAlert}from"./p-56c1bdd8.js";export{P as PostCardControl}from"./p-f76e1642.js";export{P as PostCollapsible,a as PostCollapsibleTrigger}from"./p-973c8787.js";export{P as PostIcon}from"./p-a45ad972.js";export{P as PostLogo}from"./p-d9fa6470.js";export{P as PostPopover}from"./p-7461d6e1.js";export{P as PostPopovercontainer}from"./p-41d0fd43.js";export{P as PostRating}from"./p-f1f1c477.js";export{P as PostTabs}from"./p-045bf43b.js";export{P as PostTabHeader}from"./p-2c4d0ab3.js";export{P as PostTabPanel}from"./p-52ff62eb.js";export{P as PostTooltip}from"./p-58a13d03.js";export{P as PostTag}from"./p-a31f914a.js";import"./p-3eab790d.js";import"./p-45b22858.js";import"./p-247a1668.js";import"./p-611b3c41.js";import"./p-deb4131c.js";import"./p-440193f4.js";import"./p-2737eaf5.js";import"./p-b095519d.js";import"./p-6adeaa6c.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as a,c as r,h as t,H as o,g as s}from"./p-
|
|
1
|
+
import{r as a,c as r,h as t,H as o,g as s}from"./p-3eab790d.js";import{v as e}from"./p-45b22858.js";import{f as b,a as i}from"./p-2737eaf5.js";const c=class{constructor(t){a(this,t),this.postChange=r(this,"postChange",7),this.isLoaded=!1,this.activePanel=void 0}get tabs(){return Array.from(this.host.querySelectorAll(":scope > post-tab-header"))}componentDidLoad(){var a;this.moveMisplacedTabs(),this.enableTabs();const r=this.activePanel||(null===(a=this.tabs[0])||void 0===a?void 0:a.panel);this.show(r),this.isLoaded=!0}async show(a){var r;if(a===(null===(r=this.activeTab)||void 0===r?void 0:r.panel))return;const t=this.activeTab,o=this.host.querySelector(`post-tab-header[panel=${a}]`);this.activateTab(o),this.showing&&(this.showing.effect.target.style.display="none",this.showing.finish()),!t||this.showing||this.hiding||this.hidePanel(t.panel),this.hiding&&await this.hiding.finished,this.showSelectedPanel(),this.showing&&await this.showing.finished,this.isLoaded&&this.postChange.emit(this.activeTab.panel)}moveMisplacedTabs(){this.tabs&&this.tabs.forEach((a=>{"tabs"!==a.getAttribute("slot")&&a.setAttribute("slot","tabs")}))}enableTabs(){var a;this.tabs&&(this.tabs.forEach((async a=>{var r;if(await(r=a,"function"==typeof r.componentOnReady?r.componentOnReady():new Promise((a=>{return t=()=>{a(r)},"function"==typeof requestAnimationFrame?requestAnimationFrame(t):setTimeout(t);var t}))),a.getAttribute("aria-controls"))return;const t=this.getPanel(a.panel);a.setAttribute("aria-controls",t.id),t.setAttribute("aria-labelledby",a.id),a.addEventListener("click",(()=>{this.show(a.panel)})),a.addEventListener("keydown",(r=>{"Enter"!==r.key&&" "!==r.key||(r.preventDefault(),this.show(a.panel))})),a.addEventListener("keydown",(r=>{"ArrowRight"!==r.key&&"ArrowLeft"!==r.key||this.navigateTabs(a,r.key)}))})),this.activeTab&&!this.activeTab.isConnected&&this.show(null===(a=this.tabs[0])||void 0===a?void 0:a.panel))}activateTab(a){this.activeTab&&(this.activeTab.setAttribute("aria-selected","false"),this.activeTab.setAttribute("tabindex","-1"),this.activeTab.classList.remove("active")),a.setAttribute("aria-selected","true"),a.setAttribute("tabindex","0"),a.classList.add("active"),this.activeTab=a}hidePanel(a){const r=this.getPanel(a);r&&(this.hiding=b(r),this.hiding.onfinish=()=>{r.style.display="none",this.hiding=null})}showSelectedPanel(){const a=this.getPanel(this.activeTab.panel);a.style.display="block",this.isLoaded&&(this.showing=i(a),this.showing.onfinish=()=>{this.showing=null})}getPanel(a){return this.host.querySelector(`post-tab-panel[name=${a}]`)}navigateTabs(a,r){const t=Array.from(this.tabs).indexOf(a);let o;o="ArrowRight"===r?this.tabs[t+1]||this.tabs[0]:this.tabs[t-1]||this.tabs[this.tabs.length-1],o&&o.focus()}render(){return t(o,{key:"8a75146842b2d4d1418f886560f689515aa70f55","data-version":e},t("div",{key:"104511ac9629220381fb4f51765160c722b7ad73",class:"tabs-wrapper",part:"tabs"},t("div",{key:"396918ce1bbdcd181241d6b78f4d2cadc81b18ad",class:"tabs",role:"tablist"},t("slot",{key:"d5098b3cbbb1fa11369c010d2fdc17ec9af30ea3",name:"tabs",onSlotchange:()=>this.enableTabs()}))),t("div",{key:"b021fe6f55b5f70601a2cf7800e90554926704b9",class:"tab-content",part:"content"},t("slot",{key:"4c8df45fc295211e64bf900452df9e0f1b879bdf",onSlotchange:()=>this.moveMisplacedTabs()})))}get host(){return s(this)}};c.style='.tabs-wrapper{position:relative;padding-top:1rem;border:0;background-color:rgba(var(--post-contrast-color-rgb), 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{margin:0;padding:0;list-style:none;display:flex;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;white-space:nowrap}.tabs::after{content:"";display:block;flex:1 0 auto;width:1rem}.tab-content{padding-top:1rem}.bg-yellow .tabs-wrapper{background-color:#fc0}.bg-white .tabs-wrapper{background-color:#fff}.bg-light .tabs-wrapper{background-color:#faf9f8}.bg-gray .tabs-wrapper{background-color:#f4f3f1}.bg-dark .tabs-wrapper{background-color:#333}.bg-black .tabs-wrapper{background-color:#000}.bg-primary .tabs-wrapper{background-color:#333}.bg-secondary .tabs-wrapper{background-color:#666}.bg-success .tabs-wrapper{background-color:#2c871d}.bg-warning .tabs-wrapper{background-color:#f49e00}.bg-error .tabs-wrapper{background-color:#a51728}.bg-info .tabs-wrapper{background-color:#cce4ee}.bg-success-background .tabs-wrapper{background-color:#c0debb}.bg-warning-background .tabs-wrapper{background-color:#fce2b2}.bg-error-background .tabs-wrapper{background-color:#ffdade}.bg-nightblue .tabs-wrapper{background-color:#004976}.bg-nightblue-bright .tabs-wrapper{background-color:#0076a8}.bg-petrol .tabs-wrapper{background-color:#006d68}.bg-petrol-bright .tabs-wrapper{background-color:#00968f}.bg-coral .tabs-wrapper{background-color:#9e2a2f}.bg-coral-bright .tabs-wrapper{background-color:#e03c31}.bg-olive .tabs-wrapper{background-color:#716135}.bg-olive-bright .tabs-wrapper{background-color:#aa9d2e}.bg-purple .tabs-wrapper{background-color:#80276c}.bg-purple-bright .tabs-wrapper{background-color:#c5299b}.bg-aubergine .tabs-wrapper{background-color:#523178}.bg-aubergine-bright .tabs-wrapper{background-color:#7566a0}:host{display:block}';export{c as P}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{P as post_rating}from"./p-f1f1c477.js";import"./p-3eab790d.js";import"./p-45b22858.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{P as post_tab_panel}from"./p-52ff62eb.js";import"./p-3eab790d.js";import"./p-45b22858.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,h as s,H as e,g as i}from"./p-3eab790d.js";import{v as a}from"./p-45b22858.js";import{H as o}from"./p-247a1668.js";import{c as r}from"./p-611b3c41.js";const c=class{constructor(s){t(this,s),this.expandedItems=new Set,this.headingLevel=void 0,this.multiple=!1}validateHeadingLevel(t=this.headingLevel){t&&(r(t,o,"The `heading-level` property of the `post-accordion` must be a number between 1 and 6."),this.accordionItems.forEach((s=>{s.setAttribute("heading-level",String(t))})))}componentWillLoad(){this.registerAccordionItems(),this.validateHeadingLevel()}collapseToggleHandler(t){t.stopPropagation();const s=t.target;if(s.closest("post-accordion")===this.host&&"post-accordion-item"===s.localName){const s=t.target,e=this.expandedItems.has(s);if(e?this.expandedItems.delete(s):this.expandedItems.add(s),this.multiple||e)return;Array.from(this.expandedItems.values()).filter((t=>t!==s)).forEach((t=>{t.toggle(!1)}))}}async toggle(t){const s=this.accordionItems.find((s=>s.id===t));if(!s)throw new Error(`No post-accordion-item found with id #${t}.`);await s.toggle()}async expandAll(){this.multiple?await Promise.all(this.accordionItems.map((t=>t.toggle(!0)))):this.expandedItems.size||await this.accordionItems[0].toggle(!0)}async collapseAll(){await Promise.all(this.accordionItems.map((t=>t.toggle(!1))))}registerAccordionItems(){this.accordionItems=Array.from(this.host.querySelectorAll("post-accordion-item")),this.accordionItems.filter((t=>!t.collapsed||this.expandedItems.has(t))).forEach(((t,s)=>{this.multiple||0===s?this.expandedItems.add(t):t.setAttribute("collapsed","")}))}render(){return s(e,{key:"cfc6280e052937f50bc481fe73cf25ede6e40314","data-version":a},s("div",{key:"090539a2ebe9d216609a7e56597c5f379d439fb8",class:"accordion"},s("slot",{key:"4ae4095b14b6b9233f1d66c8543d625a77a77e09",onSlotchange:()=>this.registerAccordionItems()})))}get host(){return i(this)}static get watchers(){return{headingLevel:["validateHeadingLevel"]}}};c.style=":host{display:block}";export{c as P}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as o,h as t,H as r,g as e}from"./p-
|
|
1
|
+
import{r as o,h as t,H as r,g as e}from"./p-3eab790d.js";import{v as a}from"./p-45b22858.js";import{c as b}from"./p-b095519d.js";const c=class{constructor(t){o(this,t),this.tabId=void 0,this.panel=void 0}validateFor(o){b(o,'The "panel" prop is required for the post-tab-header.')}componentWillLoad(){this.tabId=`tab-${this.host.id||crypto.randomUUID()}`}render(){return t(r,{key:"35077e5514ffd19a4fb27bc3a4c1d9d19072768b",id:this.tabId,role:"tab","data-version":a,"aria-selected":"false",tabindex:"-1",class:"tab-title",slot:"tabs"},t("slot",{key:"67b09864a209c00c677e1c279240d9b4ca289faa"}))}get host(){return e(this)}static get watchers(){return{panel:["validateFor"]}}};c.style='.tab-title[role=tab]{display:inline-block;cursor:pointer;position:relative;box-sizing:border-box;padding:1rem;transition:background-color 100ms;border-right:1px solid rgba(0,0,0,0);border-left:1px solid rgba(0,0,0,0);outline-color:currentColor;opacity:.7;color:var(--post-contrast-color);text-decoration:none;background-color:rgba(0,0,0,0)}.tab-title[role=tab]:focus{background-color:unset;color:var(--post-contrast-color)}.tab-title[role=tab]:hover{opacity:1;background-color:rgba(var(--post-contrast-color-rgb), 0.6);color:var(--post-contrast-color-inverted)}.tab-title[role=tab]:focus-visible{outline:rgba(0,0,0,0);opacity:1;background-color:rgba(var(--post-contrast-color-rgb), 0.6);color:var(--post-contrast-color-inverted);box-shadow:none}.tab-title[role=tab]:focus-visible::after{content:"";display:block;position:absolute;top:2px;right:1px;bottom:0;left:1px;box-shadow:0 0 0 1px #fff,0 0 0 2px #333}.tab-title[role=tab].active{z-index:1;border-right-color:#ccc;border-left-color:#ccc;opacity:1;background-color:var(--post-contrast-color-inverted);color:var(--post-contrast-color);font-weight:700}.tab-title[role=tab].active::before{content:"";display:block;position:absolute;top:0;right:-1px;left:-1px;height:.25rem;background-color:#fc0}:where(.bg-dark,.bg-black,.bg-primary,.bg-secondary,.bg-success,.bg-error,.bg-nightblue,.bg-nightblue-bright,.bg-petrol,.bg-coral,.bg-olive,.bg-purple,.bg-purple-bright,.bg-aubergine,.bg-aubergine-bright,.alert-primary,post-alert[type=primary],.alert-success,post-alert[type=success],.alert-danger,post-alert[type=danger],.alert-notification,post-alert[type=notification],.alert-error,post-alert[type=error]) .tab-title[role=tab]:hover{background-color:rgba(255,255,255,.2)}:where(.bg-dark,.bg-black,.bg-primary,.bg-secondary,.bg-success,.bg-error,.bg-nightblue,.bg-nightblue-bright,.bg-petrol,.bg-coral,.bg-olive,.bg-purple,.bg-purple-bright,.bg-aubergine,.bg-aubergine-bright,.alert-primary,post-alert[type=primary],.alert-success,post-alert[type=success],.alert-danger,post-alert[type=danger],.alert-notification,post-alert[type=notification],.alert-error,post-alert[type=error]) .tab-title[role=tab]:focus-visible{background-color:rgba(255,255,255,.2)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.tab-title[role=tab]{opacity:1;border-left-color:Canvas;border-right-color:Canvas;color:LinkText}.tab-title[role=tab]:hover,.tab-title[role=tab]:focus,.tab-title[role=tab]:focus-within,.tab-title[role=tab]:focus-visible{outline:2px solid Highlight;outline-offset:-0.25rem}.tab-title[role=tab].active{border-left-color:ButtonText;border-right-color:ButtonText;color:Highlight}.tab-title[role=tab].active::before{background-color:Highlight}}.bg-yellow .tab-title{background-color:#fc0}.bg-yellow .tab-title.active{background-color:#fc0}.bg-yellow .nav-item{background-color:#fc0}.bg-white .tab-title{background-color:#fff}.bg-white .tab-title.active{background-color:#fff}.bg-white .nav-item{background-color:#fff}.bg-light .tab-title{background-color:#faf9f8}.bg-light .tab-title.active{background-color:#faf9f8}.bg-light .nav-item{background-color:#faf9f8}.bg-gray .tab-title{background-color:#f4f3f1}.bg-gray .tab-title.active{background-color:#f4f3f1}.bg-gray .nav-item{background-color:#f4f3f1}.bg-dark .tab-title{background-color:#333}.bg-dark .tab-title.active{background-color:#333}.bg-dark .nav-item{background-color:#333}.bg-black .tab-title{background-color:#000}.bg-black .tab-title.active{background-color:#000}.bg-black .nav-item{background-color:#000}.bg-primary .tab-title{background-color:#333}.bg-primary .tab-title.active{background-color:#333}.bg-primary .nav-item{background-color:#333}.bg-secondary .tab-title{background-color:#666}.bg-secondary .tab-title.active{background-color:#666}.bg-secondary .nav-item{background-color:#666}.bg-success .tab-title{background-color:#2c871d}.bg-success .tab-title.active{background-color:#2c871d}.bg-success .nav-item{background-color:#2c871d}.bg-warning .tab-title{background-color:#f49e00}.bg-warning .tab-title.active{background-color:#f49e00}.bg-warning .nav-item{background-color:#f49e00}.bg-error .tab-title{background-color:#a51728}.bg-error .tab-title.active{background-color:#a51728}.bg-error .nav-item{background-color:#a51728}.bg-info .tab-title{background-color:#cce4ee}.bg-info .tab-title.active{background-color:#cce4ee}.bg-info .nav-item{background-color:#cce4ee}.bg-success-background .tab-title{background-color:#c0debb}.bg-success-background .tab-title.active{background-color:#c0debb}.bg-success-background .nav-item{background-color:#c0debb}.bg-warning-background .tab-title{background-color:#fce2b2}.bg-warning-background .tab-title.active{background-color:#fce2b2}.bg-warning-background .nav-item{background-color:#fce2b2}.bg-error-background .tab-title{background-color:#ffdade}.bg-error-background .tab-title.active{background-color:#ffdade}.bg-error-background .nav-item{background-color:#ffdade}.bg-nightblue .tab-title{background-color:#004976}.bg-nightblue .tab-title.active{background-color:#004976}.bg-nightblue .nav-item{background-color:#004976}.bg-nightblue-bright .tab-title{background-color:#0076a8}.bg-nightblue-bright .tab-title.active{background-color:#0076a8}.bg-nightblue-bright .nav-item{background-color:#0076a8}.bg-petrol .tab-title{background-color:#006d68}.bg-petrol .tab-title.active{background-color:#006d68}.bg-petrol .nav-item{background-color:#006d68}.bg-petrol-bright .tab-title{background-color:#00968f}.bg-petrol-bright .tab-title.active{background-color:#00968f}.bg-petrol-bright .nav-item{background-color:#00968f}.bg-coral .tab-title{background-color:#9e2a2f}.bg-coral .tab-title.active{background-color:#9e2a2f}.bg-coral .nav-item{background-color:#9e2a2f}.bg-coral-bright .tab-title{background-color:#e03c31}.bg-coral-bright .tab-title.active{background-color:#e03c31}.bg-coral-bright .nav-item{background-color:#e03c31}.bg-olive .tab-title{background-color:#716135}.bg-olive .tab-title.active{background-color:#716135}.bg-olive .nav-item{background-color:#716135}.bg-olive-bright .tab-title{background-color:#aa9d2e}.bg-olive-bright .tab-title.active{background-color:#aa9d2e}.bg-olive-bright .nav-item{background-color:#aa9d2e}.bg-purple .tab-title{background-color:#80276c}.bg-purple .tab-title.active{background-color:#80276c}.bg-purple .nav-item{background-color:#80276c}.bg-purple-bright .tab-title{background-color:#c5299b}.bg-purple-bright .tab-title.active{background-color:#c5299b}.bg-purple-bright .nav-item{background-color:#c5299b}.bg-aubergine .tab-title{background-color:#523178}.bg-aubergine .tab-title.active{background-color:#523178}.bg-aubergine .nav-item{background-color:#523178}.bg-aubergine-bright .tab-title{background-color:#7566a0}.bg-aubergine-bright .tab-title.active{background-color:#7566a0}.bg-aubergine-bright .nav-item{background-color:#7566a0}[class*=bg-] .tab-title.active:focus::after{background-color:rgba(255,255,255,.2)}@supports selector(*:focus-visible){[class*=bg-] .tab-title.active:focus::after{background-color:unset}[class*=bg-] .tab-title.active:focus-visible::after{background-color:rgba(255,255,255,.2)}}/*!\n * Bootstrap Utilities v5.1.3 (https://getbootstrap.com/)\n * Copyright 2011-2021 The Bootstrap Authors\n * Copyright 2011-2021 Twitter, Inc.\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n\n * The MIT License (MIT)\n\n * Copyright (c) 2011-2020 Twitter, Inc.\n * Copyright (c) 2011-2020 The Bootstrap Authors\n\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the "Software"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n\n * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n *//*!\n * Copyright 2021 by Swiss Post, Information Technology\n */:host{display:block}.tab-title{padding:0;overflow:visible;border:0;background:none;color:inherit;font:inherit;-webkit-user-select:none;user-select:none;appearance:button}';export{c as P}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{P as post_tag}from"./p-a31f914a.js";import"./p-3eab790d.js";import"./p-45b22858.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{P as post_popover}from"./p-7461d6e1.js";import"./p-3eab790d.js";import"./p-45b22858.js";import"./p-6adeaa6c.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var t=Object.defineProperty,e=new WeakMap,n=t=>e.get(t),o=(t,n)=>e.set(n.t=t,n),l=(t,e)=>e in t,s=(t,e)=>(0,console.error)(t,e),r=new Map,i=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",a="http://www.w3.org/1999/xlink",f=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"],u="undefined"!=typeof window?window:{},d=u.document||{head:{}},h={o:0,l:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,o)=>t.addEventListener(e,n,o),rel:(t,e,n,o)=>t.removeEventListener(e,n,o),ce:(t,e)=>new CustomEvent(t,e)},p=t=>Promise.resolve(t),m=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),v=!1,y=[],b=[],w=(t,e)=>n=>{t.push(n),v||(v=!0,e&&4&h.o?k(g):h.raf(g))},$=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){s(t)}t.length=0},g=()=>{$(y),$(b),(v=y.length>0)&&h.raf(g)},k=t=>p().then(t),S=w(b,!0),j={},O=t=>"object"==(t=typeof t)||"function"===t;function C(t){var e,n,o;return null!=(o=null==(n=null==(e=t.head)?void 0:e.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}((e,n)=>{for(var o in n)t(e,o,{get:n[o],enumerable:!0})})({},{err:()=>x,map:()=>R,ok:()=>E,unwrap:()=>A,unwrapErr:()=>D});var E=t=>({isOk:!0,isErr:!1,value:t}),x=t=>({isOk:!1,isErr:!0,value:t});function R(t,e){if(t.isOk){const n=e(t.value);return n instanceof Promise?n.then((t=>E(t))):E(n)}if(t.isErr)return x(t.value);throw"should never get here"}var M,P,T,A=t=>{if(t.isOk)return t.value;throw t.value},D=t=>{if(t.isErr)return t.value;throw t.value},L=(t,e,...n)=>{let o=null,l=null,s=null,r=!1,i=!1;const c=[],a=e=>{for(let n=0;n<e.length;n++)o=e[n],Array.isArray(o)?a(o):null!=o&&"boolean"!=typeof o&&((r="function"!=typeof t&&!O(o))&&(o+=""),r&&i?c[c.length-1].i+=o:c.push(r?N(null,o):o),i=r)};if(a(n),e){e.key&&(l=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,c,F);const f=N(t,null);return f.u=e,c.length>0&&(f.h=c),f.p=l,f.m=s,f},N=(t,e)=>({o:0,v:t,i:e,$:null,h:null,u:null,p:null,m:null}),W={},F={forEach:(t,e)=>t.map(H).forEach(e),map:(t,e)=>t.map(H).map(e).map(U)},H=t=>({vattrs:t.u,vchildren:t.h,vkey:t.p,vname:t.m,vtag:t.v,vtext:t.i}),U=t=>{if("function"==typeof t.vtag){const e={...t.vattrs};return t.vkey&&(e.key=t.vkey),t.vname&&(e.name=t.vname),L(t.vtag,e,...t.vchildren||[])}const e=N(t.vtag,t.vtext);return e.u=t.vattrs,e.h=t.vchildren,e.p=t.vkey,e.m=t.vname,e},q=t=>n(t).$hostElement$,G=(t,e,n)=>{const o=q(t);return{emit:t=>V(o,e,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:t})}},V=(t,e,n)=>{const o=h.ce(e,n);return t.dispatchEvent(o),o},_=new WeakMap,z=t=>"sc-"+t.k,B=(t,e,n,o,s,r)=>{if(n!==o){let i=l(t,e),c=e.toLowerCase();if("class"===e){const e=t.classList,l=J(n),s=J(o);e.remove(...l.filter((t=>t&&!s.includes(t)))),e.add(...s.filter((t=>t&&!l.includes(t))))}else if("style"===e){for(const e in n)o&&null!=o[e]||(e.includes("-")?t.style.removeProperty(e):t.style[e]="");for(const e in o)n&&o[e]===n[e]||(e.includes("-")?t.style.setProperty(e,o[e]):t.style[e]=o[e])}else if("key"===e);else if("ref"===e)o&&o(t);else if(i||"o"!==e[0]||"n"!==e[1]){const l=O(o);if((i||l&&null!==o)&&!s)try{if(t.tagName.includes("-"))t[e]=o;else{const l=null==o?"":o;"list"===e?i=!1:null!=n&&t[e]==l||(t[e]=l)}}catch(t){}let f=!1;c!==(c=c.replace(/^xlink\:?/,""))&&(e=c,f=!0),null==o||!1===o?!1===o&&""!==t.getAttribute(e)||(f?t.removeAttributeNS(a,e):t.removeAttribute(e)):(!i||4&r||s)&&!l&&(o=!0===o?"":o,f?t.setAttributeNS(a,e,o):t.setAttribute(e,o))}else if(e="-"===e[2]?e.slice(3):l(u,c)?c.slice(2):c[2]+e.slice(3),n||o){const l=e.endsWith(K);e=e.replace(Q,""),n&&h.rel(t,e,n,l),o&&h.ael(t,e,o,l)}}},I=/\s/,J=t=>t?t.split(I):[],K="Capture",Q=RegExp(K+"$"),X=(t,e,n)=>{const o=11===e.$.nodeType&&e.$.host?e.$.host:e.$,l=t&&t.u||j,s=e.u||j;for(const t of Y(Object.keys(l)))t in s||B(o,t,l[t],void 0,n,e.o);for(const t of Y(Object.keys(s)))B(o,t,l[t],s[t],n,e.o)};function Y(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var Z=!1,tt=!1,et=!1,nt=!1,ot=(t,e,n,o)=>{var l;const s=e.h[n];let r,i,c,a=0;if(Z||(et=!0,"slot"===s.v&&(M&&o.classList.add(M+"-s"),s.o|=s.h?2:1)),null!==s.i)r=s.$=d.createTextNode(s.i);else if(1&s.o)r=s.$=d.createTextNode("");else{if(nt||(nt="svg"===s.v),r=s.$=d.createElementNS(nt?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!Z&&2&s.o?"slot-fb":s.v),nt&&"foreignObject"===s.v&&(nt=!1),X(null,s,nt),null!=M&&r["s-si"]!==M&&r.classList.add(r["s-si"]=M),s.h)for(a=0;a<s.h.length;++a)i=ot(t,s,a,r),i&&r.appendChild(i);"svg"===s.v?nt=!1:"foreignObject"===r.tagName&&(nt=!0)}return r["s-hn"]=T,3&s.o&&(r["s-sr"]=!0,r["s-cr"]=P,r["s-sn"]=s.m||"",r["s-rf"]=null==(l=s.u)?void 0:l.ref,c=t&&t.h&&t.h[n],c&&c.v===s.v&&t.$&<(t.$,!1)),r},lt=(t,e)=>{h.o|=1;const n=Array.from(t.childNodes);for(let t=n.length-1;t>=0;t--){const o=n[t];o["s-hn"]!==T&&o["s-ol"]&&(vt(at(o),o,ct(o)),o["s-ol"].remove(),o["s-ol"]=void 0,o["s-sh"]=void 0,et=!0),e&<(o,e)}h.o&=-2},st=(t,e,n,o,l,s)=>{let r,i=t["s-cr"]&&t["s-cr"].parentNode||t;for(i.shadowRoot&&i.tagName===T&&(i=i.shadowRoot);l<=s;++l)o[l]&&(r=ot(null,n,l,t),r&&(o[l].$=r,vt(i,r,ct(e))))},rt=(t,e,n)=>{for(let o=e;o<=n;++o){const e=t[o];if(e){const t=e.$;mt(e),t&&(tt=!0,t["s-ol"]?t["s-ol"].remove():lt(t,!0),t.remove())}}},it=(t,e,n=!1)=>t.v===e.v&&("slot"===t.v?t.m===e.m:!!n||t.p===e.p),ct=t=>t&&t["s-ol"]||t,at=t=>(t["s-ol"]?t["s-ol"]:t).parentNode,ft=(t,e,n=!1)=>{const o=e.$=t.$,l=t.h,s=e.h,r=e.v,i=e.i;let c;null===i?(nt="svg"===r||"foreignObject"!==r&&nt,("slot"!==r||Z)&&X(t,e,nt),null!==l&&null!==s?((t,e,n,o,l=!1)=>{let s,r,i=0,c=0,a=0,f=0,u=e.length-1,d=e[0],h=e[u],p=o.length-1,m=o[0],v=o[p];for(;i<=u&&c<=p;)if(null==d)d=e[++i];else if(null==h)h=e[--u];else if(null==m)m=o[++c];else if(null==v)v=o[--p];else if(it(d,m,l))ft(d,m,l),d=e[++i],m=o[++c];else if(it(h,v,l))ft(h,v,l),h=e[--u],v=o[--p];else if(it(d,v,l))"slot"!==d.v&&"slot"!==v.v||lt(d.$.parentNode,!1),ft(d,v,l),vt(t,d.$,h.$.nextSibling),d=e[++i],v=o[--p];else if(it(h,m,l))"slot"!==d.v&&"slot"!==v.v||lt(h.$.parentNode,!1),ft(h,m,l),vt(t,h.$,d.$),h=e[--u],m=o[++c];else{for(a=-1,f=i;f<=u;++f)if(e[f]&&null!==e[f].p&&e[f].p===m.p){a=f;break}a>=0?(r=e[a],r.v!==m.v?s=ot(e&&e[c],n,a,t):(ft(r,m,l),e[a]=void 0,s=r.$),m=o[++c]):(s=ot(e&&e[c],n,c,t),m=o[++c]),s&&vt(at(d.$),s,ct(d.$))}i>u?st(t,null==o[p+1]?null:o[p+1].$,n,o,c,p):c>p&&rt(e,i,u)})(o,l,e,s,n):null!==s?(null!==t.i&&(o.textContent=""),st(o,null,e,s,0,s.length-1)):null!==l&&rt(l,0,l.length-1),nt&&"svg"===r&&(nt=!1)):(c=o["s-cr"])?c.parentNode.textContent=i:t.i!==i&&(o.data=i)},ut=t=>{const e=t.childNodes;for(const t of e)if(1===t.nodeType){if(t["s-sr"]){const n=t["s-sn"];t.hidden=!1;for(const o of e)if(o!==t)if(o["s-hn"]!==t["s-hn"]||""!==n){if(1===o.nodeType&&(n===o.getAttribute("slot")||n===o["s-sn"])||3===o.nodeType&&n===o["s-sn"]){t.hidden=!0;break}}else if(1===o.nodeType||3===o.nodeType&&""!==o.textContent.trim()){t.hidden=!0;break}}ut(t)}},dt=[],ht=t=>{let e,n,o;for(const l of t.childNodes){if(l["s-sr"]&&(e=l["s-cr"])&&e.parentNode){n=e.parentNode.childNodes;const t=l["s-sn"];for(o=n.length-1;o>=0;o--)if(e=n[o],!e["s-cn"]&&!e["s-nr"]&&e["s-hn"]!==l["s-hn"])if(pt(e,t)){let n=dt.find((t=>t.S===e));tt=!0,e["s-sn"]=e["s-sn"]||t,n?(n.S["s-sh"]=l["s-hn"],n.j=l):(e["s-sh"]=l["s-hn"],dt.push({j:l,S:e})),e["s-sr"]&&dt.map((t=>{pt(t.S,e["s-sn"])&&(n=dt.find((t=>t.S===e)),n&&!t.j&&(t.j=n.j))}))}else dt.some((t=>t.S===e))||dt.push({S:e})}1===l.nodeType&&ht(l)}},pt=(t,e)=>1===t.nodeType?null===t.getAttribute("slot")&&""===e||t.getAttribute("slot")===e:t["s-sn"]===e||""===e,mt=t=>{t.u&&t.u.ref&&t.u.ref(null),t.h&&t.h.map(mt)},vt=(t,e,n)=>null==t?void 0:t.insertBefore(e,n),yt=(t,e)=>{e&&!t.O&&e["s-p"]&&e["s-p"].push(new Promise((e=>t.O=e)))},bt=(t,e)=>{if(t.o|=16,!(4&t.o))return yt(t,t.C),S((()=>wt(t,e)));t.o|=512},wt=(t,e)=>{const n=t.t;if(!n)throw Error(`Can't render component <${t.$hostElement$.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 e&&(t.o|=256,t.R&&(t.R.map((([t,e])=>Ct(n,t,e))),t.R=void 0),o=Ct(n,"componentWillLoad")),o=$t(o,(()=>Ct(n,"componentWillRender"))),$t(o,(()=>kt(t,n,e)))},$t=(t,e)=>gt(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),gt=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,kt=async(t,e,n)=>{var o;const l=t.$hostElement$,s=l["s-rc"];n&&(t=>{const e=t.M,n=t.$hostElement$,o=e.o,l=((t,e)=>{var n;const o=z(e),l=i.get(o);if(t=11===t.nodeType?t:d,l)if("string"==typeof l){let s,r=_.get(t=t.head||t);if(r||_.set(t,r=new Set),!r.has(o)){{s=d.createElement("style"),s.innerHTML=l;const e=null!=(n=h.P)?n:C(d);null!=e&&s.setAttribute("nonce",e),t.insertBefore(s,t.querySelector("link"))}4&e.o&&(s.innerHTML+=c),r&&r.add(o)}}else t.adoptedStyleSheets.includes(l)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,l]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&o&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(t);St(t,e,l,n),s&&(s.map((t=>t())),l["s-rc"]=void 0);{const e=null!=(o=l["s-p"])?o:[],n=()=>jt(t);0===e.length?n():(Promise.all(e).then(n),t.o|=4,e.length=0)}},St=(t,e,n,o)=>{try{e=e.render&&e.render(),t.o&=-17,t.o|=2,((t,e,n=!1)=>{var o,l,s,r;const i=t.$hostElement$,c=t.M,a=t.T||N(null,null),f=(t=>t&&t.v===W)(e)?e:L(null,null,e);if(T=i.tagName,n&&f.u)for(const t of Object.keys(f.u))i.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(f.u[t]=i[t]);if(f.v=null,f.o|=4,t.T=f,f.$=a.$=i.shadowRoot||i,M=i["s-sc"],Z=!!(1&c.o),P=i["s-cr"],tt=!1,ft(a,f,n),h.o|=1,et){ht(f.$);for(const t of dt){const e=t.S;if(!e["s-ol"]){const t=d.createTextNode("");t["s-nr"]=e,vt(e.parentNode,e["s-ol"]=t,e)}}for(const t of dt){const e=t.S,i=t.j;if(i){const t=i.parentNode;let n=i.nextSibling;{let s=null==(o=e["s-ol"])?void 0:o.previousSibling;for(;s;){let o=null!=(l=s["s-nr"])?l:null;if(o&&o["s-sn"]===e["s-sn"]&&t===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"]){n=o;break}}s=s.previousSibling}}(!n&&t!==e.parentNode||e.nextSibling!==n)&&e!==n&&(!e["s-hn"]&&e["s-ol"]&&(e["s-hn"]=e["s-ol"].parentNode.nodeName),vt(t,e,n),1===e.nodeType&&(e.hidden=null!=(s=e["s-ih"])&&s)),e&&"function"==typeof i["s-rf"]&&i["s-rf"](e)}else 1===e.nodeType&&(n&&(e["s-ih"]=null!=(r=e.hidden)&&r),e.hidden=!0)}}tt&&ut(f.$),h.o&=-2,dt.length=0,P=void 0})(t,e,o)}catch(e){s(e,t.$hostElement$)}return null},jt=t=>{const e=t.$hostElement$,n=t.t,o=t.C;Ct(n,"componentDidRender"),64&t.o||(t.o|=64,Et(e),Ct(n,"componentDidLoad"),t.A(e),o||Ot()),t.D(e),t.O&&(t.O(),t.O=void 0),512&t.o&&k((()=>bt(t,!1))),t.o&=-517},Ot=()=>{Et(d.documentElement),k((()=>V(u,"appload",{detail:{namespace:"post-components"}})))},Ct=(t,e,n)=>{if(t&&t[e])try{return t[e](n)}catch(t){s(t)}},Et=t=>t.setAttribute(null!="data-hydrated"?"data-hydrated":"hydrated",""),xt=(t,e,o)=>{var l,r;const i=t.prototype;if(64&e.o&&1&o&&f.forEach((t=>Object.defineProperty(i,t,{value(...e){const o=n(this),l=o.t;if(l){const n=l[t];"function"==typeof n&&n.call(l,...e)}else o.L.then((n=>{const o=n[t];"function"==typeof o&&o.call(n,...e)}))}}))),e.N||e.W||t.watchers){t.watchers&&!e.W&&(e.W=t.watchers);const c=Object.entries(null!=(l=e.N)?l:{});if(c.map((([t,[l]])=>{31&l||2&o&&32&l?Object.defineProperty(i,t,{get(){return((t,e)=>n(this).F.get(e))(0,t)},set(o){((t,e,o,l)=>{const r=n(t);if(!r)throw Error(`Couldn't find host element for "${l.k}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const i=r.$hostElement$,c=r.F.get(e),a=r.o,f=r.t;if(o=((t,e)=>null==t||O(t)?t:4&e?"false"!==t&&(""===t||!!t):2&e?parseFloat(t):1&e?t+"":t)(o,l.N[e][0]),(!(8&a)||void 0===c)&&o!==c&&(!Number.isNaN(c)||!Number.isNaN(o))&&(r.F.set(e,o),f)){if(l.W&&128&a){const t=l.W[e];t&&t.map((t=>{try{f[t](o,c,e)}catch(t){s(t,i)}}))}2==(18&a)&&bt(r,!1)}})(this,t,o,e)},configurable:!0,enumerable:!0}):1&o&&64&l&&Object.defineProperty(i,t,{value(...e){var o;const l=n(this);return null==(o=null==l?void 0:l.H)?void 0:o.then((()=>{var n;return null==(n=l.t)?void 0:n[t](...e)}))}})})),1&o){const o=new Map;i.attributeChangedCallback=function(t,l,s){h.jmp((()=>{var r;const c=o.get(t);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const o=n(this),i=null==o?void 0:o.o;if(i&&!(8&i)&&128&i&&s!==l){const n=o.t,i=null==(r=e.W)?void 0:r[t];null==i||i.forEach((e=>{null!=n[e]&&n[e].call(n,s,l,t)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(r=e.W)?r:{}),...c.filter((([t,e])=>15&e[0])).map((([t,e])=>{const n=e[1]||t;return o.set(n,t),n}))]))}}return t},Rt=t=>{Ct(t,"connectedCallback")},Mt=t=>{Ct(t,"disconnectedCallback")},Pt=(t,o={})=>{var l;const a=[],f=o.exclude||[],p=u.customElements,v=d.head,y=v.querySelector("meta[charset]"),b=d.createElement("style"),w=[];let $,g=!0;Object.assign(h,o),h.l=new URL(o.resourcesUrl||"./",d.baseURI).href;let k=!1;if(t.map((t=>{t[1].map((o=>{var l;const c={o:o[0],k:o[1],N:o[2],U:o[3]};4&c.o&&(k=!0),c.N=o[2],c.U=o[3],c.W=null!=(l=o[4])?l:{};const u=c.k,v=class extends HTMLElement{constructor(t){if(super(t),this.hasRegisteredEventListeners=!1,((t,n)=>{const o={o:0,$hostElement$:t,M:n,F:new Map};o.H=new Promise((t=>o.D=t)),o.L=new Promise((t=>o.A=t)),t["s-p"]=[],t["s-rc"]=[],e.set(t,o)})(t=this,c),1&c.o)if(t.shadowRoot){if("open"!==t.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${c.k}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else t.attachShadow({mode:"open"})}connectedCallback(){const t=n(this);this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,Tt(this,t,c.U)),$&&(clearTimeout($),$=null),g?w.push(this):h.jmp((()=>(t=>{if(!(1&h.o)){const e=n(t),o=e.M,l=()=>{};if(1&e.o)Tt(t,e,o.U),(null==e?void 0:e.t)?Rt(e.t):(null==e?void 0:e.L)&&e.L.then((()=>Rt(e.t)));else{e.o|=1,12&o.o&&(t=>{const e=t["s-cr"]=d.createComment("");e["s-cn"]=!0,vt(t,e,t.firstChild)})(t);{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){yt(e,e.C=n);break}}o.N&&Object.entries(o.N).map((([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n)=>{let o;if(!(32&e.o)){if(e.o|=32,n.q){const t=(t=>{const e=t.k.replace(/-/g,"_"),n=t.q;if(!n)return;const o=r.get(n);return o?o[e]:import(`./${n}.entry.js`).then((t=>(r.set(n,t),t[e])),s)
|
|
2
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(t&&"then"in t){const e=()=>{};o=await t,e()}else o=t;if(!o)throw Error(`Constructor for "${n.k}#${e.
|
|
1
|
+
var t=Object.defineProperty,e=new WeakMap,n=t=>e.get(t),o=(t,n)=>e.set(n.t=t,n),l=(t,e)=>e in t,s=(t,e)=>(0,console.error)(t,e),r=new Map,i=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",a="http://www.w3.org/1999/xlink",f=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"],u="undefined"!=typeof window?window:{},d=u.document||{head:{}},h={o:0,l:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,o)=>t.addEventListener(e,n,o),rel:(t,e,n,o)=>t.removeEventListener(e,n,o),ce:(t,e)=>new CustomEvent(t,e)},p=t=>Promise.resolve(t),m=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),v=!1,y=[],b=[],w=(t,e)=>n=>{t.push(n),v||(v=!0,e&&4&h.o?k(g):h.raf(g))},$=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){s(t)}t.length=0},g=()=>{$(y),$(b),(v=y.length>0)&&h.raf(g)},k=t=>p().then(t),S=w(b,!0),j={},O=t=>"object"==(t=typeof t)||"function"===t;function C(t){var e,n,o;return null!=(o=null==(n=null==(e=t.head)?void 0:e.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}((e,n)=>{for(var o in n)t(e,o,{get:n[o],enumerable:!0})})({},{err:()=>x,map:()=>R,ok:()=>E,unwrap:()=>A,unwrapErr:()=>D});var E=t=>({isOk:!0,isErr:!1,value:t}),x=t=>({isOk:!1,isErr:!0,value:t});function R(t,e){if(t.isOk){const n=e(t.value);return n instanceof Promise?n.then((t=>E(t))):E(n)}if(t.isErr)return x(t.value);throw"should never get here"}var M,P,T,A=t=>{if(t.isOk)return t.value;throw t.value},D=t=>{if(t.isErr)return t.value;throw t.value},L=(t,e,...n)=>{let o=null,l=null,s=null,r=!1,i=!1;const c=[],a=e=>{for(let n=0;n<e.length;n++)o=e[n],Array.isArray(o)?a(o):null!=o&&"boolean"!=typeof o&&((r="function"!=typeof t&&!O(o))&&(o+=""),r&&i?c[c.length-1].i+=o:c.push(r?N(null,o):o),i=r)};if(a(n),e){e.key&&(l=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,c,F);const f=N(t,null);return f.u=e,c.length>0&&(f.h=c),f.p=l,f.m=s,f},N=(t,e)=>({o:0,v:t,i:e,$:null,h:null,u:null,p:null,m:null}),W={},F={forEach:(t,e)=>t.map(H).forEach(e),map:(t,e)=>t.map(H).map(e).map(U)},H=t=>({vattrs:t.u,vchildren:t.h,vkey:t.p,vname:t.m,vtag:t.v,vtext:t.i}),U=t=>{if("function"==typeof t.vtag){const e={...t.vattrs};return t.vkey&&(e.key=t.vkey),t.vname&&(e.name=t.vname),L(t.vtag,e,...t.vchildren||[])}const e=N(t.vtag,t.vtext);return e.u=t.vattrs,e.h=t.vchildren,e.p=t.vkey,e.m=t.vname,e},q=t=>n(t).$hostElement$,G=(t,e,n)=>{const o=q(t);return{emit:t=>V(o,e,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:t})}},V=(t,e,n)=>{const o=h.ce(e,n);return t.dispatchEvent(o),o},_=new WeakMap,z=t=>"sc-"+t.k,B=(t,e,n,o,s,r)=>{if(n!==o){let i=l(t,e),c=e.toLowerCase();if("class"===e){const e=t.classList,l=J(n),s=J(o);e.remove(...l.filter((t=>t&&!s.includes(t)))),e.add(...s.filter((t=>t&&!l.includes(t))))}else if("style"===e){for(const e in n)o&&null!=o[e]||(e.includes("-")?t.style.removeProperty(e):t.style[e]="");for(const e in o)n&&o[e]===n[e]||(e.includes("-")?t.style.setProperty(e,o[e]):t.style[e]=o[e])}else if("key"===e);else if("ref"===e)o&&o(t);else if(i||"o"!==e[0]||"n"!==e[1]){const l=O(o);if((i||l&&null!==o)&&!s)try{if(t.tagName.includes("-"))t[e]=o;else{const l=null==o?"":o;"list"===e?i=!1:null!=n&&t[e]==l||(t[e]=l)}}catch(t){}let f=!1;c!==(c=c.replace(/^xlink\:?/,""))&&(e=c,f=!0),null==o||!1===o?!1===o&&""!==t.getAttribute(e)||(f?t.removeAttributeNS(a,e):t.removeAttribute(e)):(!i||4&r||s)&&!l&&(o=!0===o?"":o,f?t.setAttributeNS(a,e,o):t.setAttribute(e,o))}else if(e="-"===e[2]?e.slice(3):l(u,c)?c.slice(2):c[2]+e.slice(3),n||o){const l=e.endsWith(K);e=e.replace(Q,""),n&&h.rel(t,e,n,l),o&&h.ael(t,e,o,l)}}},I=/\s/,J=t=>t?t.split(I):[],K="Capture",Q=RegExp(K+"$"),X=(t,e,n)=>{const o=11===e.$.nodeType&&e.$.host?e.$.host:e.$,l=t&&t.u||j,s=e.u||j;for(const t of Y(Object.keys(l)))t in s||B(o,t,l[t],void 0,n,e.o);for(const t of Y(Object.keys(s)))B(o,t,l[t],s[t],n,e.o)};function Y(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var Z=!1,tt=!1,et=!1,nt=!1,ot=(t,e,n,o)=>{var l;const s=e.h[n];let r,i,c,a=0;if(Z||(et=!0,"slot"===s.v&&(M&&o.classList.add(M+"-s"),s.o|=s.h?2:1)),null!==s.i)r=s.$=d.createTextNode(s.i);else if(1&s.o)r=s.$=d.createTextNode("");else{if(nt||(nt="svg"===s.v),r=s.$=d.createElementNS(nt?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!Z&&2&s.o?"slot-fb":s.v),nt&&"foreignObject"===s.v&&(nt=!1),X(null,s,nt),null!=M&&r["s-si"]!==M&&r.classList.add(r["s-si"]=M),s.h)for(a=0;a<s.h.length;++a)i=ot(t,s,a,r),i&&r.appendChild(i);"svg"===s.v?nt=!1:"foreignObject"===r.tagName&&(nt=!0)}return r["s-hn"]=T,3&s.o&&(r["s-sr"]=!0,r["s-cr"]=P,r["s-sn"]=s.m||"",r["s-rf"]=null==(l=s.u)?void 0:l.ref,c=t&&t.h&&t.h[n],c&&c.v===s.v&&t.$&<(t.$,!1)),r},lt=(t,e)=>{h.o|=1;const n=Array.from(t.childNodes);for(let t=n.length-1;t>=0;t--){const o=n[t];o["s-hn"]!==T&&o["s-ol"]&&(vt(at(o),o,ct(o)),o["s-ol"].remove(),o["s-ol"]=void 0,o["s-sh"]=void 0,et=!0),e&<(o,e)}h.o&=-2},st=(t,e,n,o,l,s)=>{let r,i=t["s-cr"]&&t["s-cr"].parentNode||t;for(i.shadowRoot&&i.tagName===T&&(i=i.shadowRoot);l<=s;++l)o[l]&&(r=ot(null,n,l,t),r&&(o[l].$=r,vt(i,r,ct(e))))},rt=(t,e,n)=>{for(let o=e;o<=n;++o){const e=t[o];if(e){const t=e.$;mt(e),t&&(tt=!0,t["s-ol"]?t["s-ol"].remove():lt(t,!0),t.remove())}}},it=(t,e,n=!1)=>t.v===e.v&&("slot"===t.v?t.m===e.m:!!n||t.p===e.p),ct=t=>t&&t["s-ol"]||t,at=t=>(t["s-ol"]?t["s-ol"]:t).parentNode,ft=(t,e,n=!1)=>{const o=e.$=t.$,l=t.h,s=e.h,r=e.v,i=e.i;let c;null===i?(nt="svg"===r||"foreignObject"!==r&&nt,("slot"!==r||Z)&&X(t,e,nt),null!==l&&null!==s?((t,e,n,o,l=!1)=>{let s,r,i=0,c=0,a=0,f=0,u=e.length-1,d=e[0],h=e[u],p=o.length-1,m=o[0],v=o[p];for(;i<=u&&c<=p;)if(null==d)d=e[++i];else if(null==h)h=e[--u];else if(null==m)m=o[++c];else if(null==v)v=o[--p];else if(it(d,m,l))ft(d,m,l),d=e[++i],m=o[++c];else if(it(h,v,l))ft(h,v,l),h=e[--u],v=o[--p];else if(it(d,v,l))"slot"!==d.v&&"slot"!==v.v||lt(d.$.parentNode,!1),ft(d,v,l),vt(t,d.$,h.$.nextSibling),d=e[++i],v=o[--p];else if(it(h,m,l))"slot"!==d.v&&"slot"!==v.v||lt(h.$.parentNode,!1),ft(h,m,l),vt(t,h.$,d.$),h=e[--u],m=o[++c];else{for(a=-1,f=i;f<=u;++f)if(e[f]&&null!==e[f].p&&e[f].p===m.p){a=f;break}a>=0?(r=e[a],r.v!==m.v?s=ot(e&&e[c],n,a,t):(ft(r,m,l),e[a]=void 0,s=r.$),m=o[++c]):(s=ot(e&&e[c],n,c,t),m=o[++c]),s&&vt(at(d.$),s,ct(d.$))}i>u?st(t,null==o[p+1]?null:o[p+1].$,n,o,c,p):c>p&&rt(e,i,u)})(o,l,e,s,n):null!==s?(null!==t.i&&(o.textContent=""),st(o,null,e,s,0,s.length-1)):null!==l&&rt(l,0,l.length-1),nt&&"svg"===r&&(nt=!1)):(c=o["s-cr"])?c.parentNode.textContent=i:t.i!==i&&(o.data=i)},ut=t=>{const e=t.childNodes;for(const t of e)if(1===t.nodeType){if(t["s-sr"]){const n=t["s-sn"];t.hidden=!1;for(const o of e)if(o!==t)if(o["s-hn"]!==t["s-hn"]||""!==n){if(1===o.nodeType&&(n===o.getAttribute("slot")||n===o["s-sn"])||3===o.nodeType&&n===o["s-sn"]){t.hidden=!0;break}}else if(1===o.nodeType||3===o.nodeType&&""!==o.textContent.trim()){t.hidden=!0;break}}ut(t)}},dt=[],ht=t=>{let e,n,o;for(const l of t.childNodes){if(l["s-sr"]&&(e=l["s-cr"])&&e.parentNode){n=e.parentNode.childNodes;const t=l["s-sn"];for(o=n.length-1;o>=0;o--)if(e=n[o],!e["s-cn"]&&!e["s-nr"]&&e["s-hn"]!==l["s-hn"])if(pt(e,t)){let n=dt.find((t=>t.S===e));tt=!0,e["s-sn"]=e["s-sn"]||t,n?(n.S["s-sh"]=l["s-hn"],n.j=l):(e["s-sh"]=l["s-hn"],dt.push({j:l,S:e})),e["s-sr"]&&dt.map((t=>{pt(t.S,e["s-sn"])&&(n=dt.find((t=>t.S===e)),n&&!t.j&&(t.j=n.j))}))}else dt.some((t=>t.S===e))||dt.push({S:e})}1===l.nodeType&&ht(l)}},pt=(t,e)=>1===t.nodeType?null===t.getAttribute("slot")&&""===e||t.getAttribute("slot")===e:t["s-sn"]===e||""===e,mt=t=>{t.u&&t.u.ref&&t.u.ref(null),t.h&&t.h.map(mt)},vt=(t,e,n)=>null==t?void 0:t.insertBefore(e,n),yt=(t,e)=>{e&&!t.O&&e["s-p"]&&e["s-p"].push(new Promise((e=>t.O=e)))},bt=(t,e)=>{if(t.o|=16,!(4&t.o))return yt(t,t.C),S((()=>wt(t,e)));t.o|=512},wt=(t,e)=>{const n=t.t;if(!n)throw Error(`Can't render component <${t.$hostElement$.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 e&&(t.o|=256,t.R&&(t.R.map((([t,e])=>Ct(n,t,e))),t.R=void 0),o=Ct(n,"componentWillLoad")),o=$t(o,(()=>Ct(n,"componentWillRender"))),$t(o,(()=>kt(t,n,e)))},$t=(t,e)=>gt(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),gt=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,kt=async(t,e,n)=>{var o;const l=t.$hostElement$,s=l["s-rc"];n&&(t=>{const e=t.M,n=t.$hostElement$,o=e.o,l=((t,e)=>{var n;const o=z(e),l=i.get(o);if(t=11===t.nodeType?t:d,l)if("string"==typeof l){let s,r=_.get(t=t.head||t);if(r||_.set(t,r=new Set),!r.has(o)){{s=d.createElement("style"),s.innerHTML=l;const e=null!=(n=h.P)?n:C(d);null!=e&&s.setAttribute("nonce",e),t.insertBefore(s,t.querySelector("link"))}4&e.o&&(s.innerHTML+=c),r&&r.add(o)}}else t.adoptedStyleSheets.includes(l)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,l]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&o&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(t);St(t,e,l,n),s&&(s.map((t=>t())),l["s-rc"]=void 0);{const e=null!=(o=l["s-p"])?o:[],n=()=>jt(t);0===e.length?n():(Promise.all(e).then(n),t.o|=4,e.length=0)}},St=(t,e,n,o)=>{try{e=e.render&&e.render(),t.o&=-17,t.o|=2,((t,e,n=!1)=>{var o,l,s,r;const i=t.$hostElement$,c=t.M,a=t.T||N(null,null),f=(t=>t&&t.v===W)(e)?e:L(null,null,e);if(T=i.tagName,c.A&&(f.u=f.u||{},c.A.map((([t,e])=>f.u[e]=i[t]))),n&&f.u)for(const t of Object.keys(f.u))i.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(f.u[t]=i[t]);if(f.v=null,f.o|=4,t.T=f,f.$=a.$=i.shadowRoot||i,M=i["s-sc"],Z=!!(1&c.o),P=i["s-cr"],tt=!1,ft(a,f,n),h.o|=1,et){ht(f.$);for(const t of dt){const e=t.S;if(!e["s-ol"]){const t=d.createTextNode("");t["s-nr"]=e,vt(e.parentNode,e["s-ol"]=t,e)}}for(const t of dt){const e=t.S,i=t.j;if(i){const t=i.parentNode;let n=i.nextSibling;{let s=null==(o=e["s-ol"])?void 0:o.previousSibling;for(;s;){let o=null!=(l=s["s-nr"])?l:null;if(o&&o["s-sn"]===e["s-sn"]&&t===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"]){n=o;break}}s=s.previousSibling}}(!n&&t!==e.parentNode||e.nextSibling!==n)&&e!==n&&(!e["s-hn"]&&e["s-ol"]&&(e["s-hn"]=e["s-ol"].parentNode.nodeName),vt(t,e,n),1===e.nodeType&&(e.hidden=null!=(s=e["s-ih"])&&s)),e&&"function"==typeof i["s-rf"]&&i["s-rf"](e)}else 1===e.nodeType&&(n&&(e["s-ih"]=null!=(r=e.hidden)&&r),e.hidden=!0)}}tt&&ut(f.$),h.o&=-2,dt.length=0,P=void 0})(t,e,o)}catch(e){s(e,t.$hostElement$)}return null},jt=t=>{const e=t.$hostElement$,n=t.t,o=t.C;Ct(n,"componentDidRender"),64&t.o||(t.o|=64,Et(e),Ct(n,"componentDidLoad"),t.D(e),o||Ot()),t.L(e),t.O&&(t.O(),t.O=void 0),512&t.o&&k((()=>bt(t,!1))),t.o&=-517},Ot=()=>{Et(d.documentElement),k((()=>V(u,"appload",{detail:{namespace:"post-components"}})))},Ct=(t,e,n)=>{if(t&&t[e])try{return t[e](n)}catch(t){s(t)}},Et=t=>t.setAttribute(null!="data-hydrated"?"data-hydrated":"hydrated",""),xt=(t,e,o)=>{var l,r;const i=t.prototype;if(64&e.o&&1&o&&f.forEach((t=>Object.defineProperty(i,t,{value(...e){const o=n(this),l=o.t;if(l){const n=l[t];"function"==typeof n&&n.call(l,...e)}else o.N.then((n=>{const o=n[t];"function"==typeof o&&o.call(n,...e)}))}}))),e.W||e.F||t.watchers){t.watchers&&!e.F&&(e.F=t.watchers);const c=Object.entries(null!=(l=e.W)?l:{});if(c.map((([t,[l]])=>{31&l||2&o&&32&l?Object.defineProperty(i,t,{get(){return((t,e)=>n(this).H.get(e))(0,t)},set(o){((t,e,o,l)=>{const r=n(t);if(!r)throw Error(`Couldn't find host element for "${l.k}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const i=r.$hostElement$,c=r.H.get(e),a=r.o,f=r.t;if(o=((t,e)=>null==t||O(t)?t:4&e?"false"!==t&&(""===t||!!t):2&e?parseFloat(t):1&e?t+"":t)(o,l.W[e][0]),(!(8&a)||void 0===c)&&o!==c&&(!Number.isNaN(c)||!Number.isNaN(o))&&(r.H.set(e,o),f)){if(l.F&&128&a){const t=l.F[e];t&&t.map((t=>{try{f[t](o,c,e)}catch(t){s(t,i)}}))}2==(18&a)&&bt(r,!1)}})(this,t,o,e)},configurable:!0,enumerable:!0}):1&o&&64&l&&Object.defineProperty(i,t,{value(...e){var o;const l=n(this);return null==(o=null==l?void 0:l.U)?void 0:o.then((()=>{var n;return null==(n=l.t)?void 0:n[t](...e)}))}})})),1&o){const o=new Map;i.attributeChangedCallback=function(t,l,s){h.jmp((()=>{var r;const c=o.get(t);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const o=n(this),i=null==o?void 0:o.o;if(i&&!(8&i)&&128&i&&s!==l){const n=o.t,i=null==(r=e.F)?void 0:r[t];null==i||i.forEach((e=>{null!=n[e]&&n[e].call(n,s,l,t)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(r=e.F)?r:{}),...c.filter((([t,e])=>15&e[0])).map((([t,n])=>{var l;const s=n[1]||t;return o.set(s,t),512&n[0]&&(null==(l=e.A)||l.push([t,s])),s}))]))}}return t},Rt=t=>{Ct(t,"connectedCallback")},Mt=t=>{Ct(t,"disconnectedCallback")},Pt=(t,o={})=>{var l;const a=[],f=o.exclude||[],p=u.customElements,v=d.head,y=v.querySelector("meta[charset]"),b=d.createElement("style"),w=[];let $,g=!0;Object.assign(h,o),h.l=new URL(o.resourcesUrl||"./",d.baseURI).href;let k=!1;if(t.map((t=>{t[1].map((o=>{var l;const c={o:o[0],k:o[1],W:o[2],q:o[3]};4&c.o&&(k=!0),c.W=o[2],c.q=o[3],c.A=[],c.F=null!=(l=o[4])?l:{};const u=c.k,v=class extends HTMLElement{constructor(t){if(super(t),this.hasRegisteredEventListeners=!1,((t,n)=>{const o={o:0,$hostElement$:t,M:n,H:new Map};o.U=new Promise((t=>o.L=t)),o.N=new Promise((t=>o.D=t)),t["s-p"]=[],t["s-rc"]=[],e.set(t,o)})(t=this,c),1&c.o)if(t.shadowRoot){if("open"!==t.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${c.k}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else t.attachShadow({mode:"open"})}connectedCallback(){const t=n(this);this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,Tt(this,t,c.q)),$&&(clearTimeout($),$=null),g?w.push(this):h.jmp((()=>(t=>{if(!(1&h.o)){const e=n(t),o=e.M,l=()=>{};if(1&e.o)Tt(t,e,o.q),(null==e?void 0:e.t)?Rt(e.t):(null==e?void 0:e.N)&&e.N.then((()=>Rt(e.t)));else{e.o|=1,12&o.o&&(t=>{const e=t["s-cr"]=d.createComment("");e["s-cn"]=!0,vt(t,e,t.firstChild)})(t);{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){yt(e,e.C=n);break}}o.W&&Object.entries(o.W).map((([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n)=>{let o;if(!(32&e.o)){if(e.o|=32,n.G){const t=(t=>{const e=t.k.replace(/-/g,"_"),n=t.G;if(!n)return;const o=r.get(n);return o?o[e]:import(`./${n}.entry.js`).then((t=>(r.set(n,t),t[e])),s)
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(t&&"then"in t){const e=()=>{};o=await t,e()}else o=t;if(!o)throw Error(`Constructor for "${n.k}#${e.V}" was not found`);o.isProxied||(n.F=o.watchers,xt(o,n,2),o.isProxied=!0);const l=()=>{};e.o|=8;try{new o(e)}catch(t){s(t)}e.o&=-9,e.o|=128,l(),Rt(e.t)}else o=t.constructor,customElements.whenDefined(t.localName).then((()=>e.o|=128));if(o&&o.style){let t;"string"==typeof o.style&&(t=o.style);const e=z(n);if(!i.has(e)){const o=()=>{};((t,e,n)=>{let o=i.get(t);m&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=e:o.replaceSync(e)):o=e,i.set(t,o)})(e,t,!!(1&n.o)),o()}}}const l=e.C,c=()=>bt(e,!0);l&&l["s-rc"]?l["s-rc"].push(c):c()})(t,e,o)}l()}})(this)))}disconnectedCallback(){h.jmp((()=>(async()=>{if(!(1&h.o)){const t=n(this);t._&&(t._.map((t=>t())),t._=void 0),(null==t?void 0:t.t)?Mt(t.t):(null==t?void 0:t.N)&&t.N.then((()=>Mt(t.t)))}})()))}componentOnReady(){return n(this).N}};64&c.o&&(v.formAssociated=!0),c.G=t[0],f.includes(u)||p.get(u)||(a.push(u),p.define(u,xt(v,c,1)))}))})),a.length>0&&(k&&(b.textContent+=c),b.textContent+=a.sort()+"{visibility:hidden}[data-hydrated]{visibility:inherit}",b.innerHTML.length)){b.setAttribute("data-styles","");const t=null!=(l=h.P)?l:C(d);null!=t&&b.setAttribute("nonce",t),v.insertBefore(b,y?y.nextSibling:v.firstChild)}g=!1,w.length?w.map((t=>t.connectedCallback())):h.jmp((()=>$=setTimeout(Ot,30)))},Tt=(t,e,n)=>{n&&n.map((([n,o,l])=>{const s=t,r=At(e,l),i=Dt(n);h.ael(s,o,r,i),(e._=e._||[]).push((()=>h.rel(s,o,r,i)))}))},At=(t,e)=>n=>{var o;try{256&t.o?null==(o=t.t)||o[e](n):(t.R=t.R||[]).push([e,n])}catch(t){s(t)}},Dt=t=>({passive:!!(1&t),capture:!!(2&t)}),Lt=t=>h.P=t;export{W as H,Pt as b,G as c,q as g,L as h,p,o as r,Lt as s}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as e,h as n,H as o,g as r}from"./p-343f6de1.js";import{v as i}from"./p-6b2cae0d.js";const a=Math.min,l=Math.max,s=Math.round,c=Math.floor,u=t=>({x:t,y:t}),f={left:"right",right:"left",bottom:"top",top:"bottom"},p={start:"end",end:"start"};function h(t,e,n){return l(t,a(e,n))}function d(t,e){return"function"==typeof t?t(e):t}function m(t){return t.split("-")[0]}function g(t){return t.split("-")[1]}function w(t){return"x"===t?"y":"x"}function x(t){return"y"===t?"height":"width"}function b(t){return["top","bottom"].includes(m(t))?"y":"x"}function v(t){return w(b(t))}function y(t){return t.replace(/start|end/g,(t=>p[t]))}function S(t){return t.replace(/left|right|bottom|top/g,(t=>f[t]))}function T(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 E(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 A(t,e,n){let{reference:o,floating:r}=t;const i=b(e),a=v(e),l=x(a),s=m(e),c="y"===i,u=o.x+o.width/2-r.width/2,f=o.y+o.height/2-r.height/2,p=o[l]/2-r[l]/2;let h;switch(s){case"top":h={x:u,y:o.y-r.height};break;case"bottom":h={x:u,y:o.y+o.height};break;case"right":h={x:o.x+o.width,y:f};break;case"left":h={x:o.x-r.width,y:f};break;default:h={x:o.x,y:o.y}}switch(g(e)){case"start":h[a]-=p*(n&&c?-1:1);break;case"end":h[a]+=p*(n&&c?-1:1)}return h}async function M(t,e){var n;void 0===e&&(e={});const{x:o,y:r,platform:i,rects:a,elements:l,strategy:s}=t,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:p=!1,padding:h=0}=d(e,t),m=T(h),g=l[p?"floating"===f?"reference":"floating":f],w=E(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(g)))||n?g:g.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(l.floating)),boundary:c,rootBoundary:u,strategy:s})),x="floating"===f?{...a.floating,x:o,y:r}:a.reference,b=await(null==i.getOffsetParent?void 0:i.getOffsetParent(l.floating)),v=await(null==i.isElement?void 0:i.isElement(b))&&await(null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},y=E(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:x,offsetParent:b,strategy:s}):x);return{top:(w.top-y.top+m.top)/v.y,bottom:(y.bottom-w.bottom+m.bottom)/v.y,left:(w.left-y.left+m.left)/v.x,right:(y.right-w.right+m.right)/v.x}}function k(t){const e=a(...t.map((t=>t.left))),n=a(...t.map((t=>t.top)));return{x:e,y:n,width:l(...t.map((t=>t.right)))-e,height:l(...t.map((t=>t.bottom)))-n}}function L(t){return O(t)?(t.nodeName||"").toLowerCase():"#document"}function H(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function D(t){var e;return null==(e=(O(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function O(t){return t instanceof Node||t instanceof H(t).Node}function F(t){return t instanceof Element||t instanceof H(t).Element}function R(t){return t instanceof HTMLElement||t instanceof H(t).HTMLElement}function z(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof H(t).ShadowRoot)}function P(t){const{overflow:e,overflowX:n,overflowY:o,display:r}=I(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(r)}function W(t){return["table","td","th"].includes(L(t))}function j(t){return[":popover-open",":modal"].some((e=>{try{return t.matches(e)}catch(t){return!1}}))}function C(t){const e=q(),n=F(t)?I(t):t;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!e&&!!n.backdropFilter&&"none"!==n.backdropFilter||!e&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((t=>(n.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(n.contain||"").includes(t)))}function q(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function B(t){return["html","body","#document"].includes(L(t))}function I(t){return H(t).getComputedStyle(t)}function $(t){return F(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function N(t){if("html"===L(t))return t;const e=t.assignedSlot||t.parentNode||z(t)&&t.host||D(t);return z(e)?e.host:e}function G(t){const e=N(t);return B(e)?t.ownerDocument?t.ownerDocument.body:t.body:R(e)&&P(e)?e:G(e)}function V(t,e,n){var o;void 0===e&&(e=[]),void 0===n&&(n=!0);const r=G(t),i=r===(null==(o=t.ownerDocument)?void 0:o.body),a=H(r);return i?e.concat(a,a.visualViewport||[],P(r)?r:[],a.frameElement&&n?V(a.frameElement):[]):e.concat(r,V(r,[],n))}function X(t){const e=I(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const r=R(t),i=r?t.offsetWidth:n,a=r?t.offsetHeight:o,l=s(n)!==i||s(o)!==a;return l&&(n=i,o=a),{width:n,height:o,$:l}}function Y(t){return F(t)?t:t.contextElement}function _(t){const e=Y(t);if(!R(e))return u(1);const n=e.getBoundingClientRect(),{width:o,height:r,$:i}=X(e);let a=(i?s(n.width):n.width)/o,l=(i?s(n.height):n.height)/r;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}const J=u(0);function K(t){const e=H(t);return q()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:J}function Q(t,e,n,o){void 0===e&&(e=!1),void 0===n&&(n=!1);const r=t.getBoundingClientRect(),i=Y(t);let a=u(1);e&&(o?F(o)&&(a=_(o)):a=_(t));const l=function(t,e,n){return void 0===e&&(e=!1),!(!n||e&&n!==H(t))&&e}(i,n,o)?K(i):u(0);let s=(r.left+l.x)/a.x,c=(r.top+l.y)/a.y,f=r.width/a.x,p=r.height/a.y;if(i){const t=H(i),e=o&&F(o)?H(o):o;let n=t,r=n.frameElement;for(;r&&o&&e!==n;){const t=_(r),e=r.getBoundingClientRect(),o=I(r),i=e.left+(r.clientLeft+parseFloat(o.paddingLeft))*t.x,a=e.top+(r.clientTop+parseFloat(o.paddingTop))*t.y;s*=t.x,c*=t.y,f*=t.x,p*=t.y,s+=i,c+=a,n=H(r),r=n.frameElement}}return E({width:f,height:p,x:s,y:c})}function U(t){return Q(D(t)).left+$(t).scrollLeft}function Z(t,e,n){let o;if("viewport"===e)o=function(t,e){const n=H(t),o=D(t),r=n.visualViewport;let i=o.clientWidth,a=o.clientHeight,l=0,s=0;if(r){i=r.width,a=r.height;const t=q();(!t||t&&"fixed"===e)&&(l=r.offsetLeft,s=r.offsetTop)}return{width:i,height:a,x:l,y:s}}(t,n);else if("document"===e)o=function(t){const e=D(t),n=$(t),o=t.ownerDocument.body,r=l(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),i=l(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let a=-n.scrollLeft+U(t);const s=-n.scrollTop;return"rtl"===I(o).direction&&(a+=l(e.clientWidth,o.clientWidth)-r),{width:r,height:i,x:a,y:s}}(D(t));else if(F(e))o=function(t,e){const n=Q(t,!0,"fixed"===e),o=n.top+t.clientTop,r=n.left+t.clientLeft,i=R(t)?_(t):u(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=K(t);o={...e,x:e.x-n.x,y:e.y-n.y}}return E(o)}function tt(t,e){const n=N(t);return!(n===e||!F(n)||B(n))&&("fixed"===I(n).position||tt(n,e))}function et(t,e,n){const o=R(e),r=D(e),i="fixed"===n,a=Q(t,!0,i,e);let l={scrollLeft:0,scrollTop:0};const s=u(0);if(o||!o&&!i)if(("body"!==L(e)||P(r))&&(l=$(e)),o){const t=Q(e,!0,i,e);s.x=t.x+e.clientLeft,s.y=t.y+e.clientTop}else r&&(s.x=U(r));return{x:a.left+l.scrollLeft-s.x,y:a.top+l.scrollTop-s.y,width:a.width,height:a.height}}function nt(t){return"static"===I(t).position}function ot(t,e){return R(t)&&"fixed"!==I(t).position?e?e(t):t.offsetParent:null}function rt(t,e){const n=H(t);if(j(t))return n;if(!R(t)){let e=N(t);for(;e&&!B(e);){if(F(e)&&!nt(e))return e;e=N(e)}return n}let o=ot(t,e);for(;o&&W(o)&&nt(o);)o=ot(o,e);return o&&B(o)&&nt(o)&&!C(o)?n:o||function(t){let e=N(t);for(;R(e)&&!B(e);){if(C(e))return e;if(j(e))return null;e=N(e)}return null}(t)||n}const it={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:n,offsetParent:o,strategy:r}=t;const i="fixed"===r,a=D(o),l=!!e&&j(e.floating);if(o===a||l&&i)return n;let s={scrollLeft:0,scrollTop:0},c=u(1);const f=u(0),p=R(o);if((p||!p&&!i)&&(("body"!==L(o)||P(a))&&(s=$(o)),R(o))){const t=Q(o);c=_(o),f.x=t.x+o.clientLeft,f.y=t.y+o.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-s.scrollLeft*c.x+f.x,y:n.y*c.y-s.scrollTop*c.y+f.y}},getDocumentElement:D,getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:o,strategy:r}=t;const i=[..."clippingAncestors"===n?j(e)?[]:function(t,e){const n=e.get(t);if(n)return n;let o=V(t,[],!1).filter((t=>F(t)&&"body"!==L(t))),r=null;const i="fixed"===I(t).position;let a=i?N(t):t;for(;F(a)&&!B(a);){const e=I(a),n=C(a);n||"fixed"!==e.position||(r=null),(i?!n&&!r:!n&&"static"===e.position&&r&&["absolute","fixed"].includes(r.position)||P(a)&&!n&&tt(t,a))?o=o.filter((t=>t!==a)):r=e,a=N(a)}return e.set(t,o),o}(e,this._c):[].concat(n),o],s=i.reduce(((t,n)=>{const o=Z(e,n,r);return t.top=l(o.top,t.top),t.right=a(o.right,t.right),t.bottom=a(o.bottom,t.bottom),t.left=l(o.left,t.left),t}),Z(e,i[0],r));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:rt,getElementRects:async function(t){const e=this.getOffsetParent||rt,n=this.getDimensions,o=await n(t.floating);return{reference:et(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}=X(t);return{width:e,height:n}},getScale:_,isElement:F,isRTL:function(t){return"rtl"===I(t).direction}};const at=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:r,y:i,placement:a,middlewareData:l}=e,s=await async function(t,e){const{placement:n,platform:o,elements:r}=t,i=await(null==o.isRTL?void 0:o.isRTL(r.floating)),a=m(n),l=g(n),s="y"===b(n),c=["left","top"].includes(a)?-1:1,u=i&&s?-1:1,f=d(e,t);let{mainAxis:p,crossAxis:h,alignmentAxis:w}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return l&&"number"==typeof w&&(h="end"===l?-1*w:w),s?{x:h*u,y:p*c}:{x:p*c,y:h*u}}(e,t);return a===(null==(n=l.offset)?void 0:n.placement)&&null!=(o=l.arrow)&&o.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},lt=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:r}=e,{mainAxis:i=!0,crossAxis:a=!1,limiter:l={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...s}=d(t,e),c={x:n,y:o},u=await M(e,s),f=b(m(r)),p=w(f);let g=c[p],x=c[f];i&&(g=h(g+u["y"===p?"top":"left"],g,g-u["y"===p?"bottom":"right"])),a&&(x=h(x+u["y"===f?"top":"left"],x,x-u["y"===f?"bottom":"right"]));const v=l.fn({...e,[p]:g,[f]:x});return{...v,data:{x:v.x-n,y:v.y-o}}}}},st=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:r,middlewareData:i,rects:a,initialPlacement:l,platform:s,elements:c}=e,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:b=!0,...T}=d(t,e);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const E=m(r),A=m(l)===l,k=await(null==s.isRTL?void 0:s.isRTL(c.floating)),L=p||(A||!b?[S(l)]:function(t){const e=S(t);return[y(t),e,y(e)]}(l));p||"none"===w||L.push(...function(t,e,n,o){const r=g(t);let i=function(t,e,n){const o=["left","right"],r=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(t){case"top":case"bottom":return n?e?r:o:e?o:r;case"left":case"right":return e?i:a;default:return[]}}(m(t),"start"===n,o);return r&&(i=i.map((t=>t+"-"+r)),e&&(i=i.concat(i.map(y)))),i}(l,b,w,k));const H=[l,...L],D=await M(e,T),O=[];let F=(null==(o=i.flip)?void 0:o.overflows)||[];if(u&&O.push(D[E]),f){const t=function(t,e,n){void 0===n&&(n=!1);const o=g(t),r=v(t),i=x(r);let a="x"===r?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return e.reference[i]>e.floating[i]&&(a=S(a)),[a,S(a)]}(r,a,k);O.push(D[t[0]],D[t[1]])}if(F=[...F,{placement:r,overflows:O}],!O.every((t=>t<=0))){var R,z;const t=((null==(R=i.flip)?void 0:R.index)||0)+1,e=H[t];if(e)return{data:{index:t,overflows:F},reset:{placement:e}};let n=null==(z=F.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:z.placement;if(!n)switch(h){case"bestFit":{var P;const t=null==(P=F.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:P[0];t&&(n=t);break}case"initialPlacement":n=l}if(r!==n)return{reset:{placement:n}}}return{}}}},ct=function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(e){const{placement:n,rects:o,platform:r,elements:i}=e,{apply:s=(()=>{}),...c}=d(t,e),u=await M(e,c),f=m(n),p=g(n),h="y"===b(n),{width:w,height:x}=o.floating;let v,y;"top"===f||"bottom"===f?(v=f,y=p===(await(null==r.isRTL?void 0:r.isRTL(i.floating))?"start":"end")?"left":"right"):(y=f,v="end"===p?"top":"bottom");const S=x-u[v],T=w-u[y],E=!e.middlewareData.shift;let A=S,k=T;if(h){const t=w-u.left-u.right;k=p||E?a(T,t):t}else{const t=x-u.top-u.bottom;A=p||E?a(S,t):t}if(E&&!p){const t=l(u.left,0),e=l(u.right,0),n=l(u.top,0),o=l(u.bottom,0);h?k=w-2*(0!==t||0!==e?t+e:l(u.left,u.right)):A=x-2*(0!==n||0!==o?n+o:l(u.top,u.bottom))}await s({...e,availableWidth:k,availableHeight:A});const L=await r.getDimensions(i.floating);return w!==L.width||x!==L.height?{reset:{rects:!0}}:{}}}},ut=function(t){return void 0===t&&(t={}),{options:t,fn(e){const{x:n,y:o,placement:r,rects:i,middlewareData:a}=e,{offset:l=0,mainAxis:s=!0,crossAxis:c=!0}=d(t,e),u={x:n,y:o},f=b(r),p=w(f);let h=u[p],g=u[f];const x=d(l,e),v="number"==typeof x?{mainAxis:x,crossAxis:0}:{mainAxis:0,crossAxis:0,...x};if(s){const t="y"===p?"height":"width",e=i.reference[p]-i.floating[t]+v.mainAxis,n=i.reference[p]+i.reference[t]-v.mainAxis;h<e?h=e:h>n&&(h=n)}if(c){var y,S;const t="y"===p?"width":"height",e=["top","left"].includes(m(r)),n=i.reference[f]-i.floating[t]+(e&&(null==(y=a.offset)?void 0:y[f])||0)+(e?0:v.crossAxis),o=i.reference[f]+i.reference[t]+(e?0:(null==(S=a.offset)?void 0:S[f])||0)-(e?v.crossAxis:0);g<n?g=n:g>o&&(g=o)}return{[p]:h,[f]:g}}}};(()=>{var t=class extends Event{oldState;newState;constructor(t,{oldState:e="",newState:n="",...o}={}){super(t,o),this.oldState=String(e||""),this.newState=String(n||"")}},e=new WeakMap;function n(n,o,r){e.set(n,setTimeout((()=>{e.has(n)&&n.dispatchEvent(new t("toggle",{cancelable:!1,oldState:o,newState:r}))}),0))}var o=globalThis.ShadowRoot||function(){},r=globalThis.HTMLDialogElement||function(){},i=new WeakMap,a=new WeakMap,l=new WeakMap;function s(t){return l.get(t)||"hidden"}var c=new WeakMap;function u(t,e){return!("auto"!==t.popover&&"manual"!==t.popover||!t.isConnected||e&&"showing"!==s(t)||!e&&"hidden"!==s(t)||t instanceof r&&t.hasAttribute("open")||document.fullscreenElement===t)}function f(t){return t?Array.from(a.get(t.ownerDocument)||[]).indexOf(t)+1:0}function p(t){let e=a.get(t);for(let t of e||[]){if(t.isConnected)return t;e.delete(t)}return null}function h(t){return"function"==typeof t.getRootNode?t.getRootNode():t.parentNode?h(t.parentNode):t}function d(t){for(;t;){if(t instanceof HTMLElement&&"auto"===t.popover&&"showing"===l.get(t))return t;if((t=t.parentElement||h(t))instanceof o&&(t=t.host),t instanceof Document)return}}function m(t){return!(t.hidden||t instanceof o||(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 g=new WeakMap;function w(e){if(!u(e,!1))return;let o=e.ownerDocument;if(!e.dispatchEvent(new t("beforetoggle",{cancelable:!0,oldState:"closed",newState:"open"}))||!u(e,!1))return;let r=!1;if("auto"===e.popover){let t=e.getAttribute("popover"),n=function(t){let e=new Map,n=0,o=t.ownerDocument;for(let t of a.get(o)||[])e.set(t,n),n+=1;e.set(t,n),n+=1;let r=null;return function(t){let n=d(t);if(null===n)return null;let o=e.get(n);(null===r||e.get(r)<o)&&(r=n)}(t?.parentElement),r}(e)||o;if(v(n,!1,!0),t!==e.getAttribute("popover")||!u(e,!1))return}p(o)||(r=!0),g.delete(e);let s=o.activeElement;e.classList.add(":popover-open"),l.set(e,"showing"),i.has(o)||i.set(o,new Set),i.get(o).add(e),function(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;{let t=e.querySelectorAll("slot");for(let e of t){let t=e.assignedElements({flatten:!0});for(let e of t){if(e.hasAttribute("autofocus"))return e;if(n=e.querySelector("[autofocus]"),n)return n}}}let o=t.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_ELEMENT),r=o.currentNode;for(;r;){if(m(r))return r;r=o.nextNode()}})(t)?.focus()}(e),"auto"===e.popover&&(a.has(o)||a.set(o,new Set),a.get(o).add(e),E(c.get(e),!0)),r&&s&&"auto"===e.popover&&g.set(e,s),n(e,"closed","open")}function x(e,o=!1,r=!1){if(!u(e,!0))return;let s=e.ownerDocument;if("auto"===e.popover&&(v(e,o,r),!u(e,!0))||(E(c.get(e),!1),c.delete(e),r&&(e.dispatchEvent(new t("beforetoggle",{oldState:"open",newState:"closed"})),!u(e,!0))))return;i.get(s)?.delete(e),a.get(s)?.delete(e),e.classList.remove(":popover-open"),l.set(e,"hidden"),r&&n(e,"open","closed");let f=g.get(e);f&&(g.delete(e),o&&f.focus())}function b(t,e=!1,n=!1){let o=p(t);for(;o;)x(o,e,n),o=p(t)}function v(t,e,n){let o=t.ownerDocument||t;if(t instanceof Document)return b(o,e,n);let r=null,i=!1;for(let e of a.get(o)||[])if(e===t)i=!0;else if(i){r=e;break}if(!i)return b(o,e,n);for(;r&&"showing"===s(r)&&a.get(o)?.size;)x(r,e,n)}var y=new WeakMap;function S(t){if(!t.isTrusted)return;let e=t.composedPath()[0];if(!e)return;let n=e.ownerDocument;if(!p(n))return;let r=function(t){let e=d(t),n=function(t){for(;t;){let e=t.popoverTargetElement;if(e instanceof HTMLElement)return e;if((t=t.parentElement||h(t))instanceof o&&(t=t.host),t instanceof Document)return}}(t);return f(e)>f(n)?e:n}(e);if(r&&"pointerdown"===t.type)y.set(n,r);else if("pointerup"===t.type){let t=y.get(n)===r;y.delete(n),t&&v(r||n,!1,!0)}}var T=new WeakMap;function E(t,e=!1){if(!t)return;T.has(t)||T.set(t,t.getAttribute("aria-expanded"));let n=t.popoverTargetElement;if(n instanceof HTMLElement&&"auto"===n.popover)t.setAttribute("aria-expanded",String(e));else{let e=T.get(t);e?t.setAttribute("aria-expanded",e):t.removeAttribute("aria-expanded")}}var A=globalThis.ShadowRoot||function(){};function M(t,e,n){let o=t[e];Object.defineProperty(t,e,{value(t){return o.call(this,n(t))}})}var k=/(^|[^\\]):popover-open\b/g,L="\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(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\n :where([popover]:not(.\\:popover-open)) {\n display: none;\n }\n",H=null;function D(t){if(null===H)try{(H=new CSSStyleSheet).replaceSync(L)}catch{H=!1}if(!1===H){let e=document.createElement("style");e.textContent=L,t instanceof Document?t.head.prepend(e):t.prepend(e)}else t.adoptedStyleSheets=[H,...t.adoptedStyleSheets]}typeof HTMLElement<"u"&&"object"==typeof HTMLElement.prototype&&"popover"in HTMLElement.prototype||function(){function e(t){return t?.includes(":popover-open")&&(t=t.replace(k,"$1.\\:popover-open")),t}window.ToggleEvent=window.ToggleEvent||t,M(Document.prototype,"querySelector",e),M(Document.prototype,"querySelectorAll",e),M(Element.prototype,"querySelector",e),M(Element.prototype,"querySelectorAll",e),M(Element.prototype,"matches",e),M(Element.prototype,"closest",e),M(DocumentFragment.prototype,"querySelectorAll",e),M(DocumentFragment.prototype,"querySelectorAll",e),Object.defineProperties(HTMLElement.prototype,{popover:{enumerable:!0,configurable:!0,get(){if(!this.hasAttribute("popover"))return null;let t=(this.getAttribute("popover")||"").toLowerCase();return""===t||"auto"==t?"auto":"manual"},set(t){this.setAttribute("popover",t)}},showPopover:{enumerable:!0,configurable:!0,value(){w(this)}},hidePopover:{enumerable:!0,configurable:!0,value(){x(this,!0,!0)}},togglePopover:{enumerable:!0,configurable:!0,value(t){"showing"===l.get(this)&&void 0===t||!1===t?x(this,!0,!0):(void 0===t||!0===t)&&w(this)}}});let n=Element.prototype.attachShadow;n&&Object.defineProperties(Element.prototype,{attachShadow:{enumerable:!0,configurable:!0,writable:!0,value(t){let e=n.call(this,t);return D(e),e}}});let o=HTMLElement.prototype.attachInternals;o&&Object.defineProperties(HTMLElement.prototype,{attachInternals:{enumerable:!0,configurable:!0,writable:!0,value(){let t=o.call(this);return t.shadowRoot&&D(t.shadowRoot),t}}});let r=new WeakMap;function i(t){Object.defineProperties(t.prototype,{popoverTargetElement:{enumerable:!0,configurable:!0,set(t){if(null===t)this.removeAttribute("popovertarget"),r.delete(this);else{if(!(t instanceof Element))throw new TypeError("popoverTargetElement must be an element or null");this.setAttribute("popovertarget",""),r.set(this,t)}},get(){if("button"!==this.localName&&"input"!==this.localName||"input"===this.localName&&"reset"!==this.type&&"image"!==this.type&&"button"!==this.type||this.disabled||this.form&&"submit"===this.type)return null;let t=r.get(this);if(t&&t.isConnected)return t;if(t&&!t.isConnected)return r.delete(this),null;let e=h(this),n=this.getAttribute("popovertarget");return(e instanceof Document||e instanceof A)&&n&&e.getElementById(n)||null}},popoverTargetAction:{enumerable:!0,configurable:!0,get(){let t=(this.getAttribute("popovertargetaction")||"").toLowerCase();return"show"===t||"hide"===t?t:"toggle"},set(t){this.setAttribute("popovertargetaction",t)}}})}i(HTMLButtonElement),i(HTMLInputElement);var a;(a=document).addEventListener("click",(t=>{if(!t.isTrusted)return;let e=t.composedPath()[0];if(!(e instanceof Element)||e?.shadowRoot)return;let n=h(e);if(!(n instanceof A||n instanceof Document))return;let o=e.closest("[popovertargetaction],[popovertarget]");return o?(function(t){let e=t.popoverTargetElement;if(!(e instanceof HTMLElement))return;let n=s(e);"show"===t.popoverTargetAction&&"showing"===n||"hide"===t.popoverTargetAction&&"hidden"===n||("showing"===n?x(e,!0,!0):u(e,!1)&&(c.set(e,t),w(e)))}(o),void t.preventDefault()):void 0})),a.addEventListener("keydown",(t=>{let e=t.key,n=t.target;!t.defaultPrevented&&n&&("Escape"===e||"Esc"===e)&&v(n.ownerDocument,!0,!0)})),a.addEventListener("pointerdown",S),a.addEventListener("pointerup",S),D(document)}()})();const ft={top:"bottom",right:"left",bottom:"top",left:"right"},pt=class{constructor(n){t(this,n),this.postToggle=e(this,"postToggle",7),this.placement="top",this.arrow=!1}componentDidLoad(){this.host.setAttribute("popover",""),this.host.addEventListener("beforetoggle",this.handleToggle.bind(this))}disconnectedCallback(){"function"==typeof this.clearAutoUpdate&&this.clearAutoUpdate()}async show(t){this.toggleTimeoutId||(this.eventTarget=t,this.calculatePosition(),this.host.showPopover())}async hide(){this.toggleTimeoutId||(this.eventTarget=null,this.host.hidePopover())}async toggle(t,e){return this.toggleTimeoutId||(this.eventTarget=t,this.calculatePosition(),this.host.togglePopover(e),this.toggleTimeoutId=null),this.host.matches(":where(:popover-open, .popover-open")}handleToggle(t){this.toggleTimeoutId=window.setTimeout((()=>this.toggleTimeoutId=null),10);const e="open"===t.newState;e?this.startAutoupdates():"function"==typeof this.clearAutoUpdate&&this.clearAutoUpdate(),this.postToggle.emit(e)}startAutoupdates(){this.clearAutoUpdate=function(t,e,n,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:u="function"==typeof IntersectionObserver,animationFrame:f=!1}=o,p=Y(t),h=r||i?[...p?V(p):[],...V(e)]:[];h.forEach((t=>{r&&t.addEventListener("scroll",n,{passive:!0}),i&&t.addEventListener("resize",n)}));const d=p&&u?function(t,e){let n,o=null;const r=D(t);function i(){var t;clearTimeout(n),null==(t=o)||t.disconnect(),o=null}return function s(u,f){void 0===u&&(u=!1),void 0===f&&(f=1),i();const{left:p,top:h,width:d,height:m}=t.getBoundingClientRect();if(u||e(),!d||!m)return;const g={rootMargin:-c(h)+"px "+-c(r.clientWidth-(p+d))+"px "+-c(r.clientHeight-(h+m))+"px "+-c(p)+"px",threshold:l(0,a(1,f))||1};let w=!0;function x(t){const e=t[0].intersectionRatio;if(e!==f){if(!w)return s();e?s(!1,e):n=setTimeout((()=>{s(!1,1e-7)}),1e3)}w=!1}try{o=new IntersectionObserver(x,{...g,root:r.ownerDocument})}catch(t){o=new IntersectionObserver(x,g)}o.observe(t)}(!0),i}(p,n):null;let m,g=-1,w=null;s&&(w=new ResizeObserver((t=>{let[o]=t;o&&o.target===p&&w&&(w.unobserve(e),cancelAnimationFrame(g),g=requestAnimationFrame((()=>{var t;null==(t=w)||t.observe(e)}))),n()})),p&&!f&&w.observe(p),w.observe(e));let x=f?Q(t):null;return f&&function e(){const o=Q(t);!x||o.x===x.x&&o.y===x.y&&o.width===x.width&&o.height===x.height||n(),x=o,m=requestAnimationFrame(e)}(),n(),()=>{var t;h.forEach((t=>{r&&t.removeEventListener("scroll",n),i&&t.removeEventListener("resize",n)})),null==d||d(),null==(t=w)||t.disconnect(),w=null,f&&cancelAnimationFrame(m)}}(this.eventTarget,this.host,this.calculatePosition.bind(this))}async calculatePosition(){const t=[st(),(void 0===e&&(e={}),{name:"inline",options:e,async fn(t){const{placement:n,elements:o,rects:r,platform:i,strategy:s}=t,{padding:c=2,x:u,y:f}=d(e,t),p=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=>E(k(t))))}(p),g=E(k(p)),w=T(c),x=await i.getElementRects({reference:{getBoundingClientRect:function(){if(2===h.length&&h[0].left>h[1].right&&null!=u&&null!=f)return h.find((t=>u>t.left-w.left&&u<t.right+w.right&&f>t.top-w.top&&f<t.bottom+w.bottom))||g;if(h.length>=2){if("y"===b(n)){const t=h[0],e=h[h.length-1],o="top"===m(n),r=t.top,i=e.bottom,a=o?t.left:e.left,l=o?t.right:e.right;return{top:r,bottom:i,left:a,right:l,width:l-a,height:i-r,x:a,y:r}}const t="left"===m(n),e=l(...h.map((t=>t.right))),o=a(...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 g}},floating:o.floating,strategy:s});return r.reference.x!==x.reference.x||r.reference.y!==x.reference.y||r.reference.width!==x.reference.width||r.reference.height!==x.reference.height?{reset:{rects:x}}:{}}}),lt({padding:8,limiter:ut({offset:32})}),ct({apply({availableWidth:t,elements:e}){Object.assign(e.floating.style,{maxWidth:t-16+"px"})}}),at(this.arrow?12:8)];var e;this.arrow&&t.push((t=>({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:r,rects:i,platform:l,elements:s,middlewareData:c}=e,{element:u,padding:f=0}=d(t,e)||{};if(null==u)return{};const p=T(f),m={x:n,y:o},w=v(r),b=x(w),y=await l.getDimensions(u),S="y"===w,E=S?"top":"left",A=S?"bottom":"right",M=S?"clientHeight":"clientWidth",k=i.reference[b]+i.reference[w]-m[w]-i.floating[b],L=m[w]-i.reference[w],H=await(null==l.getOffsetParent?void 0:l.getOffsetParent(u));let D=H?H[M]:0;D&&await(null==l.isElement?void 0:l.isElement(H))||(D=s.floating[M]||i.floating[b]);const O=k/2-L/2,F=D/2-y[b]/2-1,R=a(p[E],F),z=a(p[A],F),P=R,W=D-y[b]-z,j=D/2-y[b]/2+O,C=h(P,j,W),q=!c.arrow&&null!=g(r)&&j!==C&&i.reference[b]/2-(j<P?R:z)-y[b]/2<0,B=q?j<P?j-P:j-W:0;return{[w]:m[w]+B,data:{[w]:C,centerOffset:j-C-B,...q&&{alignmentOffset:B}},reset:q}}}))({element:this.arrowRef,padding:8}));const{x:n,y:o,middlewareData:r,placement:i}=await((t,e,n)=>{const o=new Map,r={platform:it,...n},i={...r.platform,_c:o};return(async(t,e,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:a}=n,l=i.filter(Boolean),s=await(null==a.isRTL?void 0:a.isRTL(e));let c=await a.getElementRects({reference:t,floating:e,strategy:r}),{x:u,y:f}=A(c,o,s),p=o,h={},d=0;for(let n=0;n<l.length;n++){const{name:i,fn:m}=l[n],{x:g,y:w,data:x,reset:b}=await m({x:u,y:f,initialPlacement:o,placement:p,strategy:r,middlewareData:h,rects:c,platform:a,elements:{reference:t,floating:e}});u=null!=g?g:u,f=null!=w?w:f,h={...h,[i]:{...h[i],...x}},b&&d<=50&&(d++,"object"==typeof b&&(b.placement&&(p=b.placement),b.rects&&(c=!0===b.rects?await a.getElementRects({reference:t,floating:e,strategy:r}):b.rects),({x:u,y:f}=A(c,p,s))),n=-1)}return{x:u,y:f,placement:p,strategy:r,middlewareData:h}})(t,e,{...r,platform:i})})(this.eventTarget,this.host,{placement:this.placement||"top",strategy:"fixed",middleware:t});if(this.host.style.left=`${n}px`,this.host.style.top=`${o}px`,this.arrow){const t=i.split("-")[0],{x:e,y:n}=r.arrow,o=ft[t],a=2;Object.assign(this.arrowRef.style,{top:n?`${n}px`:"",left:e?`${e}px`:"",[o]:-this.arrowRef.offsetWidth/2-a+"px"}),this.arrowRef.classList.remove(...Object.values(ft)),this.arrowRef.classList.add(o)}}render(){return n(o,{key:"daf21d119057a14c2c2f68b8068901ab698beae3","data-version":i},this.arrow&&n("span",{key:"4f5cfb1422217f9ef71732cdfc0c97b6b29e4809",class:"arrow",ref:t=>{this.arrowRef=t}}),n("slot",{key:"f6e4beefb8e365dbf20a0a5019cceaac4ecb73a4"}))}get host(){return r(this)}};pt.style="@layer polyfill{@supports not selector(:popover-open){[popover]:not(.\\:popover-open){display:none}}}:where(post-popovercontainer){box-shadow:.5px 3px 4px rgba(0,0,0,.1),2px 4px 10px 4px rgba(0,0,0,.12);position:fixed;z-index:1060;width:max-content;margin:0;padding:0;box-sizing:border-box;color:var(--post-contrast-color);background-color:rgb(var(--post-bg-rgb));border:2px solid rgba(0,0,0,0);border-radius:4px;overflow:visible}:where(post-popovercontainer):not(:has(.arrow)){box-shadow:.5px 3px 4px rgba(0,0,0,.1),2px 4px 10px 4px rgba(0,0,0,.12)}:where(post-popovercontainer):has(.arrow){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))}:where(post-popovercontainer):has(.arrow.top){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))}:where(post-popovercontainer):has(.arrow.left){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))}:where(post-popovercontainer):has(.arrow.right){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))}:where(post-popovercontainer) .arrow{position:absolute;width:.5825rem;height:.5825rem;background-color:inherit;rotate:45deg;pointer-events:none;z-index:-1}:where(post-popovercontainer) .arrow.top{border-left:2px solid rgba(0,0,0,0);border-top:2px solid rgba(0,0,0,0)}:where(post-popovercontainer) .arrow.right{border-right:2px solid rgba(0,0,0,0);border-top:2px solid rgba(0,0,0,0)}:where(post-popovercontainer) .arrow.left{border-left:2px solid rgba(0,0,0,0);border-bottom:2px solid rgba(0,0,0,0)}:where(post-popovercontainer) .arrow.bottom{border-right:2px solid rgba(0,0,0,0);border-bottom:2px solid rgba(0,0,0,0)}";export{pt as P}
|
|
1
|
+
import{r as t,c as e,h as n,H as o,g as r}from"./p-3eab790d.js";import{v as i}from"./p-45b22858.js";const a=Math.min,l=Math.max,s=Math.round,c=Math.floor,u=t=>({x:t,y:t}),f={left:"right",right:"left",bottom:"top",top:"bottom"},p={start:"end",end:"start"};function h(t,e,n){return l(t,a(e,n))}function d(t,e){return"function"==typeof t?t(e):t}function m(t){return t.split("-")[0]}function g(t){return t.split("-")[1]}function w(t){return"x"===t?"y":"x"}function x(t){return"y"===t?"height":"width"}function b(t){return["top","bottom"].includes(m(t))?"y":"x"}function v(t){return w(b(t))}function y(t){return t.replace(/start|end/g,(t=>p[t]))}function S(t){return t.replace(/left|right|bottom|top/g,(t=>f[t]))}function T(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 E(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 A(t,e,n){let{reference:o,floating:r}=t;const i=b(e),a=v(e),l=x(a),s=m(e),c="y"===i,u=o.x+o.width/2-r.width/2,f=o.y+o.height/2-r.height/2,p=o[l]/2-r[l]/2;let h;switch(s){case"top":h={x:u,y:o.y-r.height};break;case"bottom":h={x:u,y:o.y+o.height};break;case"right":h={x:o.x+o.width,y:f};break;case"left":h={x:o.x-r.width,y:f};break;default:h={x:o.x,y:o.y}}switch(g(e)){case"start":h[a]-=p*(n&&c?-1:1);break;case"end":h[a]+=p*(n&&c?-1:1)}return h}async function M(t,e){var n;void 0===e&&(e={});const{x:o,y:r,platform:i,rects:a,elements:l,strategy:s}=t,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:p=!1,padding:h=0}=d(e,t),m=T(h),g=l[p?"floating"===f?"reference":"floating":f],w=E(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(g)))||n?g:g.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(l.floating)),boundary:c,rootBoundary:u,strategy:s})),x="floating"===f?{...a.floating,x:o,y:r}:a.reference,b=await(null==i.getOffsetParent?void 0:i.getOffsetParent(l.floating)),v=await(null==i.isElement?void 0:i.isElement(b))&&await(null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},y=E(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:x,offsetParent:b,strategy:s}):x);return{top:(w.top-y.top+m.top)/v.y,bottom:(y.bottom-w.bottom+m.bottom)/v.y,left:(w.left-y.left+m.left)/v.x,right:(y.right-w.right+m.right)/v.x}}function k(t){const e=a(...t.map((t=>t.left))),n=a(...t.map((t=>t.top)));return{x:e,y:n,width:l(...t.map((t=>t.right)))-e,height:l(...t.map((t=>t.bottom)))-n}}function L(t){return O(t)?(t.nodeName||"").toLowerCase():"#document"}function H(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function D(t){var e;return null==(e=(O(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function O(t){return t instanceof Node||t instanceof H(t).Node}function F(t){return t instanceof Element||t instanceof H(t).Element}function R(t){return t instanceof HTMLElement||t instanceof H(t).HTMLElement}function z(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof H(t).ShadowRoot)}function P(t){const{overflow:e,overflowX:n,overflowY:o,display:r}=I(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(r)}function W(t){return["table","td","th"].includes(L(t))}function j(t){return[":popover-open",":modal"].some((e=>{try{return t.matches(e)}catch(t){return!1}}))}function C(t){const e=q(),n=F(t)?I(t):t;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!e&&!!n.backdropFilter&&"none"!==n.backdropFilter||!e&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((t=>(n.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(n.contain||"").includes(t)))}function q(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function B(t){return["html","body","#document"].includes(L(t))}function I(t){return H(t).getComputedStyle(t)}function $(t){return F(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function N(t){if("html"===L(t))return t;const e=t.assignedSlot||t.parentNode||z(t)&&t.host||D(t);return z(e)?e.host:e}function G(t){const e=N(t);return B(e)?t.ownerDocument?t.ownerDocument.body:t.body:R(e)&&P(e)?e:G(e)}function V(t,e,n){var o;void 0===e&&(e=[]),void 0===n&&(n=!0);const r=G(t),i=r===(null==(o=t.ownerDocument)?void 0:o.body),a=H(r);return i?e.concat(a,a.visualViewport||[],P(r)?r:[],a.frameElement&&n?V(a.frameElement):[]):e.concat(r,V(r,[],n))}function X(t){const e=I(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const r=R(t),i=r?t.offsetWidth:n,a=r?t.offsetHeight:o,l=s(n)!==i||s(o)!==a;return l&&(n=i,o=a),{width:n,height:o,$:l}}function Y(t){return F(t)?t:t.contextElement}function _(t){const e=Y(t);if(!R(e))return u(1);const n=e.getBoundingClientRect(),{width:o,height:r,$:i}=X(e);let a=(i?s(n.width):n.width)/o,l=(i?s(n.height):n.height)/r;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}const J=u(0);function K(t){const e=H(t);return q()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:J}function Q(t,e,n,o){void 0===e&&(e=!1),void 0===n&&(n=!1);const r=t.getBoundingClientRect(),i=Y(t);let a=u(1);e&&(o?F(o)&&(a=_(o)):a=_(t));const l=function(t,e,n){return void 0===e&&(e=!1),!(!n||e&&n!==H(t))&&e}(i,n,o)?K(i):u(0);let s=(r.left+l.x)/a.x,c=(r.top+l.y)/a.y,f=r.width/a.x,p=r.height/a.y;if(i){const t=H(i),e=o&&F(o)?H(o):o;let n=t,r=n.frameElement;for(;r&&o&&e!==n;){const t=_(r),e=r.getBoundingClientRect(),o=I(r),i=e.left+(r.clientLeft+parseFloat(o.paddingLeft))*t.x,a=e.top+(r.clientTop+parseFloat(o.paddingTop))*t.y;s*=t.x,c*=t.y,f*=t.x,p*=t.y,s+=i,c+=a,n=H(r),r=n.frameElement}}return E({width:f,height:p,x:s,y:c})}function U(t){return Q(D(t)).left+$(t).scrollLeft}function Z(t,e,n){let o;if("viewport"===e)o=function(t,e){const n=H(t),o=D(t),r=n.visualViewport;let i=o.clientWidth,a=o.clientHeight,l=0,s=0;if(r){i=r.width,a=r.height;const t=q();(!t||t&&"fixed"===e)&&(l=r.offsetLeft,s=r.offsetTop)}return{width:i,height:a,x:l,y:s}}(t,n);else if("document"===e)o=function(t){const e=D(t),n=$(t),o=t.ownerDocument.body,r=l(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),i=l(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let a=-n.scrollLeft+U(t);const s=-n.scrollTop;return"rtl"===I(o).direction&&(a+=l(e.clientWidth,o.clientWidth)-r),{width:r,height:i,x:a,y:s}}(D(t));else if(F(e))o=function(t,e){const n=Q(t,!0,"fixed"===e),o=n.top+t.clientTop,r=n.left+t.clientLeft,i=R(t)?_(t):u(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=K(t);o={...e,x:e.x-n.x,y:e.y-n.y}}return E(o)}function tt(t,e){const n=N(t);return!(n===e||!F(n)||B(n))&&("fixed"===I(n).position||tt(n,e))}function et(t,e,n){const o=R(e),r=D(e),i="fixed"===n,a=Q(t,!0,i,e);let l={scrollLeft:0,scrollTop:0};const s=u(0);if(o||!o&&!i)if(("body"!==L(e)||P(r))&&(l=$(e)),o){const t=Q(e,!0,i,e);s.x=t.x+e.clientLeft,s.y=t.y+e.clientTop}else r&&(s.x=U(r));return{x:a.left+l.scrollLeft-s.x,y:a.top+l.scrollTop-s.y,width:a.width,height:a.height}}function nt(t){return"static"===I(t).position}function ot(t,e){return R(t)&&"fixed"!==I(t).position?e?e(t):t.offsetParent:null}function rt(t,e){const n=H(t);if(j(t))return n;if(!R(t)){let e=N(t);for(;e&&!B(e);){if(F(e)&&!nt(e))return e;e=N(e)}return n}let o=ot(t,e);for(;o&&W(o)&&nt(o);)o=ot(o,e);return o&&B(o)&&nt(o)&&!C(o)?n:o||function(t){let e=N(t);for(;R(e)&&!B(e);){if(C(e))return e;if(j(e))return null;e=N(e)}return null}(t)||n}const it={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:n,offsetParent:o,strategy:r}=t;const i="fixed"===r,a=D(o),l=!!e&&j(e.floating);if(o===a||l&&i)return n;let s={scrollLeft:0,scrollTop:0},c=u(1);const f=u(0),p=R(o);if((p||!p&&!i)&&(("body"!==L(o)||P(a))&&(s=$(o)),R(o))){const t=Q(o);c=_(o),f.x=t.x+o.clientLeft,f.y=t.y+o.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-s.scrollLeft*c.x+f.x,y:n.y*c.y-s.scrollTop*c.y+f.y}},getDocumentElement:D,getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:o,strategy:r}=t;const i=[..."clippingAncestors"===n?j(e)?[]:function(t,e){const n=e.get(t);if(n)return n;let o=V(t,[],!1).filter((t=>F(t)&&"body"!==L(t))),r=null;const i="fixed"===I(t).position;let a=i?N(t):t;for(;F(a)&&!B(a);){const e=I(a),n=C(a);n||"fixed"!==e.position||(r=null),(i?!n&&!r:!n&&"static"===e.position&&r&&["absolute","fixed"].includes(r.position)||P(a)&&!n&&tt(t,a))?o=o.filter((t=>t!==a)):r=e,a=N(a)}return e.set(t,o),o}(e,this._c):[].concat(n),o],s=i.reduce(((t,n)=>{const o=Z(e,n,r);return t.top=l(o.top,t.top),t.right=a(o.right,t.right),t.bottom=a(o.bottom,t.bottom),t.left=l(o.left,t.left),t}),Z(e,i[0],r));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:rt,getElementRects:async function(t){const e=this.getOffsetParent||rt,n=this.getDimensions,o=await n(t.floating);return{reference:et(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}=X(t);return{width:e,height:n}},getScale:_,isElement:F,isRTL:function(t){return"rtl"===I(t).direction}};const at=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:r,y:i,placement:a,middlewareData:l}=e,s=await async function(t,e){const{placement:n,platform:o,elements:r}=t,i=await(null==o.isRTL?void 0:o.isRTL(r.floating)),a=m(n),l=g(n),s="y"===b(n),c=["left","top"].includes(a)?-1:1,u=i&&s?-1:1,f=d(e,t);let{mainAxis:p,crossAxis:h,alignmentAxis:w}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return l&&"number"==typeof w&&(h="end"===l?-1*w:w),s?{x:h*u,y:p*c}:{x:p*c,y:h*u}}(e,t);return a===(null==(n=l.offset)?void 0:n.placement)&&null!=(o=l.arrow)&&o.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},lt=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:r}=e,{mainAxis:i=!0,crossAxis:a=!1,limiter:l={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...s}=d(t,e),c={x:n,y:o},u=await M(e,s),f=b(m(r)),p=w(f);let g=c[p],x=c[f];i&&(g=h(g+u["y"===p?"top":"left"],g,g-u["y"===p?"bottom":"right"])),a&&(x=h(x+u["y"===f?"top":"left"],x,x-u["y"===f?"bottom":"right"]));const v=l.fn({...e,[p]:g,[f]:x});return{...v,data:{x:v.x-n,y:v.y-o}}}}},st=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:r,middlewareData:i,rects:a,initialPlacement:l,platform:s,elements:c}=e,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:b=!0,...T}=d(t,e);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const E=m(r),A=m(l)===l,k=await(null==s.isRTL?void 0:s.isRTL(c.floating)),L=p||(A||!b?[S(l)]:function(t){const e=S(t);return[y(t),e,y(e)]}(l));p||"none"===w||L.push(...function(t,e,n,o){const r=g(t);let i=function(t,e,n){const o=["left","right"],r=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(t){case"top":case"bottom":return n?e?r:o:e?o:r;case"left":case"right":return e?i:a;default:return[]}}(m(t),"start"===n,o);return r&&(i=i.map((t=>t+"-"+r)),e&&(i=i.concat(i.map(y)))),i}(l,b,w,k));const H=[l,...L],D=await M(e,T),O=[];let F=(null==(o=i.flip)?void 0:o.overflows)||[];if(u&&O.push(D[E]),f){const t=function(t,e,n){void 0===n&&(n=!1);const o=g(t),r=v(t),i=x(r);let a="x"===r?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return e.reference[i]>e.floating[i]&&(a=S(a)),[a,S(a)]}(r,a,k);O.push(D[t[0]],D[t[1]])}if(F=[...F,{placement:r,overflows:O}],!O.every((t=>t<=0))){var R,z;const t=((null==(R=i.flip)?void 0:R.index)||0)+1,e=H[t];if(e)return{data:{index:t,overflows:F},reset:{placement:e}};let n=null==(z=F.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:z.placement;if(!n)switch(h){case"bestFit":{var P;const t=null==(P=F.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:P[0];t&&(n=t);break}case"initialPlacement":n=l}if(r!==n)return{reset:{placement:n}}}return{}}}},ct=function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(e){const{placement:n,rects:o,platform:r,elements:i}=e,{apply:s=(()=>{}),...c}=d(t,e),u=await M(e,c),f=m(n),p=g(n),h="y"===b(n),{width:w,height:x}=o.floating;let v,y;"top"===f||"bottom"===f?(v=f,y=p===(await(null==r.isRTL?void 0:r.isRTL(i.floating))?"start":"end")?"left":"right"):(y=f,v="end"===p?"top":"bottom");const S=x-u[v],T=w-u[y],E=!e.middlewareData.shift;let A=S,k=T;if(h){const t=w-u.left-u.right;k=p||E?a(T,t):t}else{const t=x-u.top-u.bottom;A=p||E?a(S,t):t}if(E&&!p){const t=l(u.left,0),e=l(u.right,0),n=l(u.top,0),o=l(u.bottom,0);h?k=w-2*(0!==t||0!==e?t+e:l(u.left,u.right)):A=x-2*(0!==n||0!==o?n+o:l(u.top,u.bottom))}await s({...e,availableWidth:k,availableHeight:A});const L=await r.getDimensions(i.floating);return w!==L.width||x!==L.height?{reset:{rects:!0}}:{}}}},ut=function(t){return void 0===t&&(t={}),{options:t,fn(e){const{x:n,y:o,placement:r,rects:i,middlewareData:a}=e,{offset:l=0,mainAxis:s=!0,crossAxis:c=!0}=d(t,e),u={x:n,y:o},f=b(r),p=w(f);let h=u[p],g=u[f];const x=d(l,e),v="number"==typeof x?{mainAxis:x,crossAxis:0}:{mainAxis:0,crossAxis:0,...x};if(s){const t="y"===p?"height":"width",e=i.reference[p]-i.floating[t]+v.mainAxis,n=i.reference[p]+i.reference[t]-v.mainAxis;h<e?h=e:h>n&&(h=n)}if(c){var y,S;const t="y"===p?"width":"height",e=["top","left"].includes(m(r)),n=i.reference[f]-i.floating[t]+(e&&(null==(y=a.offset)?void 0:y[f])||0)+(e?0:v.crossAxis),o=i.reference[f]+i.reference[t]+(e?0:(null==(S=a.offset)?void 0:S[f])||0)-(e?v.crossAxis:0);g<n?g=n:g>o&&(g=o)}return{[p]:h,[f]:g}}}};(()=>{var t=class extends Event{oldState;newState;constructor(t,{oldState:e="",newState:n="",...o}={}){super(t,o),this.oldState=String(e||""),this.newState=String(n||"")}},e=new WeakMap;function n(n,o,r){e.set(n,setTimeout((()=>{e.has(n)&&n.dispatchEvent(new t("toggle",{cancelable:!1,oldState:o,newState:r}))}),0))}var o=globalThis.ShadowRoot||function(){},r=globalThis.HTMLDialogElement||function(){},i=new WeakMap,a=new WeakMap,l=new WeakMap;function s(t){return l.get(t)||"hidden"}var c=new WeakMap;function u(t,e){return!("auto"!==t.popover&&"manual"!==t.popover||!t.isConnected||e&&"showing"!==s(t)||!e&&"hidden"!==s(t)||t instanceof r&&t.hasAttribute("open")||document.fullscreenElement===t)}function f(t){return t?Array.from(a.get(t.ownerDocument)||[]).indexOf(t)+1:0}function p(t){let e=a.get(t);for(let t of e||[]){if(t.isConnected)return t;e.delete(t)}return null}function h(t){return"function"==typeof t.getRootNode?t.getRootNode():t.parentNode?h(t.parentNode):t}function d(t){for(;t;){if(t instanceof HTMLElement&&"auto"===t.popover&&"showing"===l.get(t))return t;if((t=t.parentElement||h(t))instanceof o&&(t=t.host),t instanceof Document)return}}function m(t){return!(t.hidden||t instanceof o||(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 g=new WeakMap;function w(e){if(!u(e,!1))return;let o=e.ownerDocument;if(!e.dispatchEvent(new t("beforetoggle",{cancelable:!0,oldState:"closed",newState:"open"}))||!u(e,!1))return;let r=!1;if("auto"===e.popover){let t=e.getAttribute("popover"),n=function(t){let e=new Map,n=0,o=t.ownerDocument;for(let t of a.get(o)||[])e.set(t,n),n+=1;e.set(t,n),n+=1;let r=null;return function(t){let n=d(t);if(null===n)return null;let o=e.get(n);(null===r||e.get(r)<o)&&(r=n)}(t?.parentElement),r}(e)||o;if(v(n,!1,!0),t!==e.getAttribute("popover")||!u(e,!1))return}p(o)||(r=!0),g.delete(e);let s=o.activeElement;e.classList.add(":popover-open"),l.set(e,"showing"),i.has(o)||i.set(o,new Set),i.get(o).add(e),function(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;{let t=e.querySelectorAll("slot");for(let e of t){let t=e.assignedElements({flatten:!0});for(let e of t){if(e.hasAttribute("autofocus"))return e;if(n=e.querySelector("[autofocus]"),n)return n}}}let o=t.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_ELEMENT),r=o.currentNode;for(;r;){if(m(r))return r;r=o.nextNode()}})(t)?.focus()}(e),"auto"===e.popover&&(a.has(o)||a.set(o,new Set),a.get(o).add(e),E(c.get(e),!0)),r&&s&&"auto"===e.popover&&g.set(e,s),n(e,"closed","open")}function x(e,o=!1,r=!1){if(!u(e,!0))return;let s=e.ownerDocument;if("auto"===e.popover&&(v(e,o,r),!u(e,!0))||(E(c.get(e),!1),c.delete(e),r&&(e.dispatchEvent(new t("beforetoggle",{oldState:"open",newState:"closed"})),!u(e,!0))))return;i.get(s)?.delete(e),a.get(s)?.delete(e),e.classList.remove(":popover-open"),l.set(e,"hidden"),r&&n(e,"open","closed");let f=g.get(e);f&&(g.delete(e),o&&f.focus())}function b(t,e=!1,n=!1){let o=p(t);for(;o;)x(o,e,n),o=p(t)}function v(t,e,n){let o=t.ownerDocument||t;if(t instanceof Document)return b(o,e,n);let r=null,i=!1;for(let e of a.get(o)||[])if(e===t)i=!0;else if(i){r=e;break}if(!i)return b(o,e,n);for(;r&&"showing"===s(r)&&a.get(o)?.size;)x(r,e,n)}var y=new WeakMap;function S(t){if(!t.isTrusted)return;let e=t.composedPath()[0];if(!e)return;let n=e.ownerDocument;if(!p(n))return;let r=function(t){let e=d(t),n=function(t){for(;t;){let e=t.popoverTargetElement;if(e instanceof HTMLElement)return e;if((t=t.parentElement||h(t))instanceof o&&(t=t.host),t instanceof Document)return}}(t);return f(e)>f(n)?e:n}(e);if(r&&"pointerdown"===t.type)y.set(n,r);else if("pointerup"===t.type){let t=y.get(n)===r;y.delete(n),t&&v(r||n,!1,!0)}}var T=new WeakMap;function E(t,e=!1){if(!t)return;T.has(t)||T.set(t,t.getAttribute("aria-expanded"));let n=t.popoverTargetElement;if(n instanceof HTMLElement&&"auto"===n.popover)t.setAttribute("aria-expanded",String(e));else{let e=T.get(t);e?t.setAttribute("aria-expanded",e):t.removeAttribute("aria-expanded")}}var A=globalThis.ShadowRoot||function(){};function M(t,e,n){let o=t[e];Object.defineProperty(t,e,{value(t){return o.call(this,n(t))}})}var k=/(^|[^\\]):popover-open\b/g,L="\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(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\n :where([popover]:not(.\\:popover-open)) {\n display: none;\n }\n",H=null;function D(t){if(null===H)try{(H=new CSSStyleSheet).replaceSync(L)}catch{H=!1}if(!1===H){let e=document.createElement("style");e.textContent=L,t instanceof Document?t.head.prepend(e):t.prepend(e)}else t.adoptedStyleSheets=[H,...t.adoptedStyleSheets]}typeof HTMLElement<"u"&&"object"==typeof HTMLElement.prototype&&"popover"in HTMLElement.prototype||function(){function e(t){return t?.includes(":popover-open")&&(t=t.replace(k,"$1.\\:popover-open")),t}window.ToggleEvent=window.ToggleEvent||t,M(Document.prototype,"querySelector",e),M(Document.prototype,"querySelectorAll",e),M(Element.prototype,"querySelector",e),M(Element.prototype,"querySelectorAll",e),M(Element.prototype,"matches",e),M(Element.prototype,"closest",e),M(DocumentFragment.prototype,"querySelectorAll",e),M(DocumentFragment.prototype,"querySelectorAll",e),Object.defineProperties(HTMLElement.prototype,{popover:{enumerable:!0,configurable:!0,get(){if(!this.hasAttribute("popover"))return null;let t=(this.getAttribute("popover")||"").toLowerCase();return""===t||"auto"==t?"auto":"manual"},set(t){this.setAttribute("popover",t)}},showPopover:{enumerable:!0,configurable:!0,value(){w(this)}},hidePopover:{enumerable:!0,configurable:!0,value(){x(this,!0,!0)}},togglePopover:{enumerable:!0,configurable:!0,value(t){"showing"===l.get(this)&&void 0===t||!1===t?x(this,!0,!0):(void 0===t||!0===t)&&w(this)}}});let n=Element.prototype.attachShadow;n&&Object.defineProperties(Element.prototype,{attachShadow:{enumerable:!0,configurable:!0,writable:!0,value(t){let e=n.call(this,t);return D(e),e}}});let o=HTMLElement.prototype.attachInternals;o&&Object.defineProperties(HTMLElement.prototype,{attachInternals:{enumerable:!0,configurable:!0,writable:!0,value(){let t=o.call(this);return t.shadowRoot&&D(t.shadowRoot),t}}});let r=new WeakMap;function i(t){Object.defineProperties(t.prototype,{popoverTargetElement:{enumerable:!0,configurable:!0,set(t){if(null===t)this.removeAttribute("popovertarget"),r.delete(this);else{if(!(t instanceof Element))throw new TypeError("popoverTargetElement must be an element or null");this.setAttribute("popovertarget",""),r.set(this,t)}},get(){if("button"!==this.localName&&"input"!==this.localName||"input"===this.localName&&"reset"!==this.type&&"image"!==this.type&&"button"!==this.type||this.disabled||this.form&&"submit"===this.type)return null;let t=r.get(this);if(t&&t.isConnected)return t;if(t&&!t.isConnected)return r.delete(this),null;let e=h(this),n=this.getAttribute("popovertarget");return(e instanceof Document||e instanceof A)&&n&&e.getElementById(n)||null}},popoverTargetAction:{enumerable:!0,configurable:!0,get(){let t=(this.getAttribute("popovertargetaction")||"").toLowerCase();return"show"===t||"hide"===t?t:"toggle"},set(t){this.setAttribute("popovertargetaction",t)}}})}i(HTMLButtonElement),i(HTMLInputElement);var a;(a=document).addEventListener("click",(t=>{if(!t.isTrusted)return;let e=t.composedPath()[0];if(!(e instanceof Element)||e?.shadowRoot)return;let n=h(e);if(!(n instanceof A||n instanceof Document))return;let o=e.closest("[popovertargetaction],[popovertarget]");return o?(function(t){let e=t.popoverTargetElement;if(!(e instanceof HTMLElement))return;let n=s(e);"show"===t.popoverTargetAction&&"showing"===n||"hide"===t.popoverTargetAction&&"hidden"===n||("showing"===n?x(e,!0,!0):u(e,!1)&&(c.set(e,t),w(e)))}(o),void t.preventDefault()):void 0})),a.addEventListener("keydown",(t=>{let e=t.key,n=t.target;!t.defaultPrevented&&n&&("Escape"===e||"Esc"===e)&&v(n.ownerDocument,!0,!0)})),a.addEventListener("pointerdown",S),a.addEventListener("pointerup",S),D(document)}()})();const ft={top:"bottom",right:"left",bottom:"top",left:"right"},pt=class{constructor(n){t(this,n),this.postToggle=e(this,"postToggle",7),this.placement="top",this.arrow=!1}componentDidLoad(){this.host.setAttribute("popover",""),this.host.addEventListener("beforetoggle",this.handleToggle.bind(this))}disconnectedCallback(){"function"==typeof this.clearAutoUpdate&&this.clearAutoUpdate()}async show(t){this.toggleTimeoutId||(this.eventTarget=t,this.calculatePosition(),this.host.showPopover())}async hide(){this.toggleTimeoutId||(this.eventTarget=null,this.host.hidePopover())}async toggle(t,e){return this.toggleTimeoutId||(this.eventTarget=t,this.calculatePosition(),this.host.togglePopover(e),this.toggleTimeoutId=null),this.host.matches(":where(:popover-open, .popover-open")}handleToggle(t){this.toggleTimeoutId=window.setTimeout((()=>this.toggleTimeoutId=null),10);const e="open"===t.newState;e?this.startAutoupdates():"function"==typeof this.clearAutoUpdate&&this.clearAutoUpdate(),this.postToggle.emit(e)}startAutoupdates(){this.clearAutoUpdate=function(t,e,n,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:u="function"==typeof IntersectionObserver,animationFrame:f=!1}=o,p=Y(t),h=r||i?[...p?V(p):[],...V(e)]:[];h.forEach((t=>{r&&t.addEventListener("scroll",n,{passive:!0}),i&&t.addEventListener("resize",n)}));const d=p&&u?function(t,e){let n,o=null;const r=D(t);function i(){var t;clearTimeout(n),null==(t=o)||t.disconnect(),o=null}return function s(u,f){void 0===u&&(u=!1),void 0===f&&(f=1),i();const{left:p,top:h,width:d,height:m}=t.getBoundingClientRect();if(u||e(),!d||!m)return;const g={rootMargin:-c(h)+"px "+-c(r.clientWidth-(p+d))+"px "+-c(r.clientHeight-(h+m))+"px "+-c(p)+"px",threshold:l(0,a(1,f))||1};let w=!0;function x(t){const e=t[0].intersectionRatio;if(e!==f){if(!w)return s();e?s(!1,e):n=setTimeout((()=>{s(!1,1e-7)}),1e3)}w=!1}try{o=new IntersectionObserver(x,{...g,root:r.ownerDocument})}catch(t){o=new IntersectionObserver(x,g)}o.observe(t)}(!0),i}(p,n):null;let m,g=-1,w=null;s&&(w=new ResizeObserver((t=>{let[o]=t;o&&o.target===p&&w&&(w.unobserve(e),cancelAnimationFrame(g),g=requestAnimationFrame((()=>{var t;null==(t=w)||t.observe(e)}))),n()})),p&&!f&&w.observe(p),w.observe(e));let x=f?Q(t):null;return f&&function e(){const o=Q(t);!x||o.x===x.x&&o.y===x.y&&o.width===x.width&&o.height===x.height||n(),x=o,m=requestAnimationFrame(e)}(),n(),()=>{var t;h.forEach((t=>{r&&t.removeEventListener("scroll",n),i&&t.removeEventListener("resize",n)})),null==d||d(),null==(t=w)||t.disconnect(),w=null,f&&cancelAnimationFrame(m)}}(this.eventTarget,this.host,this.calculatePosition.bind(this))}async calculatePosition(){const t=[st(),(void 0===e&&(e={}),{name:"inline",options:e,async fn(t){const{placement:n,elements:o,rects:r,platform:i,strategy:s}=t,{padding:c=2,x:u,y:f}=d(e,t),p=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=>E(k(t))))}(p),g=E(k(p)),w=T(c),x=await i.getElementRects({reference:{getBoundingClientRect:function(){if(2===h.length&&h[0].left>h[1].right&&null!=u&&null!=f)return h.find((t=>u>t.left-w.left&&u<t.right+w.right&&f>t.top-w.top&&f<t.bottom+w.bottom))||g;if(h.length>=2){if("y"===b(n)){const t=h[0],e=h[h.length-1],o="top"===m(n),r=t.top,i=e.bottom,a=o?t.left:e.left,l=o?t.right:e.right;return{top:r,bottom:i,left:a,right:l,width:l-a,height:i-r,x:a,y:r}}const t="left"===m(n),e=l(...h.map((t=>t.right))),o=a(...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 g}},floating:o.floating,strategy:s});return r.reference.x!==x.reference.x||r.reference.y!==x.reference.y||r.reference.width!==x.reference.width||r.reference.height!==x.reference.height?{reset:{rects:x}}:{}}}),lt({padding:8,limiter:ut({offset:32})}),ct({apply({availableWidth:t,elements:e}){Object.assign(e.floating.style,{maxWidth:t-16+"px"})}}),at(this.arrow?12:8)];var e;this.arrow&&t.push((t=>({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:r,rects:i,platform:l,elements:s,middlewareData:c}=e,{element:u,padding:f=0}=d(t,e)||{};if(null==u)return{};const p=T(f),m={x:n,y:o},w=v(r),b=x(w),y=await l.getDimensions(u),S="y"===w,E=S?"top":"left",A=S?"bottom":"right",M=S?"clientHeight":"clientWidth",k=i.reference[b]+i.reference[w]-m[w]-i.floating[b],L=m[w]-i.reference[w],H=await(null==l.getOffsetParent?void 0:l.getOffsetParent(u));let D=H?H[M]:0;D&&await(null==l.isElement?void 0:l.isElement(H))||(D=s.floating[M]||i.floating[b]);const O=k/2-L/2,F=D/2-y[b]/2-1,R=a(p[E],F),z=a(p[A],F),P=R,W=D-y[b]-z,j=D/2-y[b]/2+O,C=h(P,j,W),q=!c.arrow&&null!=g(r)&&j!==C&&i.reference[b]/2-(j<P?R:z)-y[b]/2<0,B=q?j<P?j-P:j-W:0;return{[w]:m[w]+B,data:{[w]:C,centerOffset:j-C-B,...q&&{alignmentOffset:B}},reset:q}}}))({element:this.arrowRef,padding:8}));const{x:n,y:o,middlewareData:r,placement:i}=await((t,e,n)=>{const o=new Map,r={platform:it,...n},i={...r.platform,_c:o};return(async(t,e,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:a}=n,l=i.filter(Boolean),s=await(null==a.isRTL?void 0:a.isRTL(e));let c=await a.getElementRects({reference:t,floating:e,strategy:r}),{x:u,y:f}=A(c,o,s),p=o,h={},d=0;for(let n=0;n<l.length;n++){const{name:i,fn:m}=l[n],{x:g,y:w,data:x,reset:b}=await m({x:u,y:f,initialPlacement:o,placement:p,strategy:r,middlewareData:h,rects:c,platform:a,elements:{reference:t,floating:e}});u=null!=g?g:u,f=null!=w?w:f,h={...h,[i]:{...h[i],...x}},b&&d<=50&&(d++,"object"==typeof b&&(b.placement&&(p=b.placement),b.rects&&(c=!0===b.rects?await a.getElementRects({reference:t,floating:e,strategy:r}):b.rects),({x:u,y:f}=A(c,p,s))),n=-1)}return{x:u,y:f,placement:p,strategy:r,middlewareData:h}})(t,e,{...r,platform:i})})(this.eventTarget,this.host,{placement:this.placement||"top",strategy:"fixed",middleware:t});if(this.host.style.left=`${n}px`,this.host.style.top=`${o}px`,this.arrow){const t=i.split("-")[0],{x:e,y:n}=r.arrow,o=ft[t],a=2;Object.assign(this.arrowRef.style,{top:n?`${n}px`:"",left:e?`${e}px`:"",[o]:-this.arrowRef.offsetWidth/2-a+"px"}),this.arrowRef.classList.remove(...Object.values(ft)),this.arrowRef.classList.add(o)}}render(){return n(o,{key:"daf21d119057a14c2c2f68b8068901ab698beae3","data-version":i},this.arrow&&n("span",{key:"4f5cfb1422217f9ef71732cdfc0c97b6b29e4809",class:"arrow",ref:t=>{this.arrowRef=t}}),n("slot",{key:"f6e4beefb8e365dbf20a0a5019cceaac4ecb73a4"}))}get host(){return r(this)}};pt.style="@layer polyfill{@supports not selector(:popover-open){[popover]:not(.\\:popover-open){display:none}}}:where(post-popovercontainer){box-shadow:.5px 3px 4px rgba(0,0,0,.1),2px 4px 10px 4px rgba(0,0,0,.12);position:fixed;z-index:1060;width:max-content;margin:0;padding:0;box-sizing:border-box;color:var(--post-contrast-color);background-color:rgb(var(--post-bg-rgb));border:2px solid rgba(0,0,0,0);border-radius:4px;overflow:visible}:where(post-popovercontainer):not(:has(.arrow)){box-shadow:.5px 3px 4px rgba(0,0,0,.1),2px 4px 10px 4px rgba(0,0,0,.12)}:where(post-popovercontainer):has(.arrow){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))}:where(post-popovercontainer):has(.arrow.top){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))}:where(post-popovercontainer):has(.arrow.left){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))}:where(post-popovercontainer):has(.arrow.right){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))}:where(post-popovercontainer) .arrow{position:absolute;width:.5825rem;height:.5825rem;background-color:inherit;rotate:45deg;pointer-events:none;z-index:-1}:where(post-popovercontainer) .arrow.top{border-left:2px solid rgba(0,0,0,0);border-top:2px solid rgba(0,0,0,0)}:where(post-popovercontainer) .arrow.right{border-right:2px solid rgba(0,0,0,0);border-top:2px solid rgba(0,0,0,0)}:where(post-popovercontainer) .arrow.left{border-left:2px solid rgba(0,0,0,0);border-bottom:2px solid rgba(0,0,0,0)}:where(post-popovercontainer) .arrow.bottom{border-right:2px solid rgba(0,0,0,0);border-bottom:2px solid rgba(0,0,0,0)}";export{pt as P}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const o="8.12.0";export{o as v}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{P as post_accordion}from"./p-1d9b4f7f.js";import"./p-3eab790d.js";import"./p-45b22858.js";import"./p-247a1668.js";import"./p-611b3c41.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{P as post_tab_header}from"./p-2c4d0ab3.js";import"./p-3eab790d.js";import"./p-45b22858.js";import"./p-b095519d.js";import"./p-440193f4.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,h as s,H as t,g as o}from"./p-
|
|
1
|
+
import{r as e,h as s,H as t,g as o}from"./p-3eab790d.js";import{v as a}from"./p-45b22858.js";const r=class{constructor(s){e(this,s),this.panelId=void 0,this.name=void 0}componentWillLoad(){this.panelId=`panel-${this.host.id||crypto.randomUUID()}`}render(){return s(t,{key:"2d01a8e7f06e45b4750e63584a3c52232dee4dd5","data-version":a,id:this.panelId,role:"tabpanel"},s("slot",{key:"b51e2f112791ac22df43ebb537208c65aebe3d03"}))}get host(){return o(this)}};r.style=":host{display:none}";export{r as P}
|