@swisspost/design-system-components 9.0.0-next.11 → 9.0.0-next.12
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.cjs.js +19 -19
- package/dist/cjs/{package-5fdfea90.js → package-0bd6fb0d.js} +1 -1
- package/dist/cjs/{post-accordion-dabc9271.js → post-accordion-7aadd881.js} +1 -1
- package/dist/cjs/{post-accordion-item-9dadc543.js → post-accordion-item-bd033c7f.js} +1 -1
- package/dist/cjs/post-accordion-item.cjs.entry.js +2 -2
- package/dist/cjs/post-accordion.cjs.entry.js +2 -2
- package/dist/cjs/{post-avatar-fddda407.js → post-avatar-5dbdf70d.js} +1 -1
- package/dist/cjs/post-avatar.cjs.entry.js +2 -2
- package/dist/cjs/{post-back-to-top-6dfbcd1b.js → post-back-to-top-71bc912c.js} +1 -1
- package/dist/cjs/post-back-to-top.cjs.entry.js +2 -2
- package/dist/cjs/{post-banner-6df79142.js → post-banner-d4e0c73c.js} +1 -1
- package/dist/cjs/post-banner.cjs.entry.js +2 -2
- package/dist/cjs/{post-breadcrumb-b05fb572.js → post-breadcrumb-531c4f79.js} +1 -1
- package/dist/cjs/post-breadcrumb-item_2.cjs.entry.js +2 -2
- package/dist/cjs/post-breadcrumb.cjs.entry.js +2 -2
- package/dist/cjs/{post-card-control-97ed732c.js → post-card-control-332f6f1f.js} +1 -1
- package/dist/cjs/post-card-control.cjs.entry.js +2 -2
- package/dist/cjs/post-closebutton_15.cjs.entry.js +2 -2
- package/dist/cjs/{post-collapsible-trigger-94f1bbd9.js → post-collapsible-trigger-02924200.js} +2 -2
- package/dist/cjs/post-collapsible_2.cjs.entry.js +2 -2
- package/dist/cjs/{post-footer-f95510e4.js → post-footer-96d7bd47.js} +1 -1
- package/dist/cjs/post-footer.cjs.entry.js +2 -2
- package/dist/cjs/{post-menu-item-106036fa.js → post-menu-item-3f73fb4d.js} +1 -1
- package/dist/cjs/{post-popover-cc55d371.js → post-popover-64195ffd.js} +1 -1
- package/dist/cjs/post-popover.cjs.entry.js +2 -2
- package/dist/cjs/{post-rating-4aa3fabb.js → post-rating-bd27ebfc.js} +1 -1
- package/dist/cjs/post-rating.cjs.entry.js +2 -2
- package/dist/cjs/{post-tab-header-1eee4cbf.js → post-tab-header-1f057694.js} +1 -1
- package/dist/cjs/post-tab-header.cjs.entry.js +2 -2
- package/dist/cjs/{post-tab-panel-77162d5b.js → post-tab-panel-3eedcd19.js} +1 -1
- package/dist/cjs/post-tab-panel.cjs.entry.js +2 -2
- package/dist/cjs/{post-tabs-ee832221.js → post-tabs-ea94b243.js} +1 -1
- package/dist/cjs/post-tabs.cjs.entry.js +2 -2
- package/dist/cjs/{post-tag-8778a125.js → post-tag-1d75024b.js} +1 -1
- package/dist/cjs/post-tag.cjs.entry.js +2 -2
- package/dist/cjs/{post-togglebutton-00632399.js → post-togglebutton-876f7892.js} +1 -1
- package/dist/cjs/{post-tooltip-d3dd17b2.js → post-tooltip-e4ef3c7e.js} +1 -1
- package/dist/cjs/post-tooltip.cjs.entry.js +2 -2
- package/dist/collection/components/post-collapsible/post-collapsible.css +1 -1
- package/dist/components/package.js +1 -1
- package/dist/components/post-collapsible2.js +1 -1
- package/dist/docs.json +1 -1
- package/dist/esm/index.js +19 -19
- package/dist/esm/package-f8f7bb40.js +3 -0
- package/dist/esm/{post-accordion-25df8744.js → post-accordion-ca48eb18.js} +1 -1
- package/dist/esm/{post-accordion-item-33fb36df.js → post-accordion-item-a461f2a7.js} +1 -1
- package/dist/esm/post-accordion-item.entry.js +2 -2
- package/dist/esm/post-accordion.entry.js +2 -2
- package/dist/esm/{post-avatar-731aafd6.js → post-avatar-0da1a2e8.js} +1 -1
- package/dist/esm/post-avatar.entry.js +2 -2
- package/dist/esm/{post-back-to-top-3a6b6203.js → post-back-to-top-77471a90.js} +1 -1
- package/dist/esm/post-back-to-top.entry.js +2 -2
- package/dist/esm/{post-banner-b2eb796c.js → post-banner-b0af5bd3.js} +1 -1
- package/dist/esm/post-banner.entry.js +2 -2
- package/dist/esm/{post-breadcrumb-0a99384c.js → post-breadcrumb-85ffd02f.js} +1 -1
- package/dist/esm/post-breadcrumb-item_2.entry.js +2 -2
- package/dist/esm/post-breadcrumb.entry.js +2 -2
- package/dist/esm/{post-card-control-ff272e38.js → post-card-control-3225eb57.js} +1 -1
- package/dist/esm/post-card-control.entry.js +2 -2
- package/dist/esm/post-closebutton_15.entry.js +2 -2
- package/dist/esm/{post-collapsible-trigger-7fc4d61c.js → post-collapsible-trigger-883db3bf.js} +2 -2
- package/dist/esm/post-collapsible_2.entry.js +2 -2
- package/dist/esm/{post-footer-97bbd770.js → post-footer-7b0eb067.js} +1 -1
- package/dist/esm/post-footer.entry.js +2 -2
- package/dist/esm/{post-menu-item-ae066299.js → post-menu-item-37f637a3.js} +1 -1
- package/dist/esm/{post-popover-62e33068.js → post-popover-c24ecd38.js} +1 -1
- package/dist/esm/post-popover.entry.js +2 -2
- package/dist/esm/{post-rating-ee73a51b.js → post-rating-e1c66e5c.js} +1 -1
- package/dist/esm/post-rating.entry.js +2 -2
- package/dist/esm/{post-tab-header-dac84177.js → post-tab-header-6a9b0153.js} +1 -1
- package/dist/esm/post-tab-header.entry.js +2 -2
- package/dist/esm/{post-tab-panel-5e35e7df.js → post-tab-panel-73b56a16.js} +1 -1
- package/dist/esm/post-tab-panel.entry.js +2 -2
- package/dist/esm/{post-tabs-b614a577.js → post-tabs-02e523b8.js} +1 -1
- package/dist/esm/post-tabs.entry.js +2 -2
- package/dist/esm/{post-tag-413626e4.js → post-tag-43aba068.js} +1 -1
- package/dist/esm/post-tag.entry.js +2 -2
- package/dist/esm/{post-togglebutton-caf0000b.js → post-togglebutton-c2231709.js} +1 -1
- package/dist/esm/{post-tooltip-b0f1b147.js → post-tooltip-8271950c.js} +1 -1
- package/dist/esm/post-tooltip.entry.js +2 -2
- package/dist/post-components/index.esm.js +1 -1
- package/dist/post-components/{p-c4139fb9.js → p-025688e5.js} +1 -1
- package/dist/post-components/p-08b51b35.entry.js +1 -0
- package/dist/post-components/{p-012a39b8.js → p-24c92608.js} +1 -1
- package/dist/post-components/{p-32165625.js → p-25a57971.js} +1 -1
- package/dist/post-components/{p-761723b6.js → p-2cb4a8f1.js} +1 -1
- package/dist/post-components/{p-cc55b611.js → p-33b64e0c.js} +1 -1
- package/dist/post-components/{p-990db73a.js → p-34d70cd5.js} +1 -1
- package/dist/post-components/p-350f3900.entry.js +1 -0
- package/dist/post-components/{p-60ea48ce.js → p-35bc4554.js} +1 -1
- package/dist/post-components/p-38b259a4.entry.js +1 -0
- package/dist/post-components/p-3c6cef1e.entry.js +1 -0
- package/dist/post-components/{p-df9ea014.js → p-4a713cf8.js} +1 -1
- package/dist/post-components/{p-a43a3cdb.js → p-4b5e2b24.js} +1 -1
- package/dist/post-components/p-54e58fc2.entry.js +1 -0
- package/dist/post-components/{p-128b11b3.js → p-637759d6.js} +1 -1
- package/dist/post-components/{p-e533625e.js → p-7589a19f.js} +1 -1
- package/dist/post-components/p-7cce7342.entry.js +1 -0
- package/dist/post-components/{p-15173f46.js → p-819e19de.js} +1 -1
- package/dist/post-components/p-82d48128.js +1 -0
- package/dist/post-components/{p-f380a026.entry.js → p-85171893.entry.js} +1 -1
- package/dist/post-components/p-882fdd0c.entry.js +1 -0
- package/dist/post-components/{p-2747a945.js → p-94399c69.js} +1 -1
- package/dist/post-components/p-9a02b162.entry.js +1 -0
- package/dist/post-components/{p-7c966321.js → p-b1f5bc26.js} +1 -1
- package/dist/post-components/p-b2f239a1.entry.js +1 -0
- package/dist/post-components/{p-73863597.js → p-b571e5c8.js} +1 -1
- package/dist/post-components/{p-8e808ae6.js → p-ba530822.js} +1 -1
- package/dist/post-components/p-bae1c85f.entry.js +1 -0
- package/dist/post-components/p-bdabdec5.js +1 -0
- package/dist/post-components/p-c1225174.entry.js +1 -0
- package/dist/post-components/p-c372a141.entry.js +1 -0
- package/dist/post-components/{p-189a07cf.entry.js → p-c510d968.entry.js} +1 -1
- package/dist/post-components/p-c87c5d59.entry.js +1 -0
- package/dist/post-components/p-d04c1b7f.entry.js +1 -0
- package/dist/post-components/p-da300843.entry.js +1 -0
- package/dist/post-components/{p-d45f8861.js → p-e2f886ab.js} +1 -1
- package/dist/post-components/p-fec04a15.entry.js +1 -0
- package/dist/post-components/post-components.esm.js +1 -1
- package/loaders/package.js +1 -1
- package/loaders/post-collapsible2.js +1 -1
- package/package.json +3 -3
- package/dist/esm/package-cf78d928.js +0 -3
- package/dist/post-components/p-0a74bc53.js +0 -1
- package/dist/post-components/p-0addae0c.entry.js +0 -1
- package/dist/post-components/p-13ae0f4d.entry.js +0 -1
- package/dist/post-components/p-18b84db7.entry.js +0 -1
- package/dist/post-components/p-2571a1be.entry.js +0 -1
- package/dist/post-components/p-42ef1d9f.entry.js +0 -1
- package/dist/post-components/p-465e9eee.entry.js +0 -1
- package/dist/post-components/p-61cff5d9.entry.js +0 -1
- package/dist/post-components/p-723ad003.entry.js +0 -1
- package/dist/post-components/p-92611da2.entry.js +0 -1
- package/dist/post-components/p-99b12d43.entry.js +0 -1
- package/dist/post-components/p-9fbb33c2.entry.js +0 -1
- package/dist/post-components/p-ad770600.entry.js +0 -1
- package/dist/post-components/p-af48ed67.entry.js +0 -1
- package/dist/post-components/p-dc11a5d5.entry.js +0 -1
- package/dist/post-components/p-e1dc7f01.entry.js +0 -1
- package/dist/post-components/p-f0da081f.entry.js +0 -1
- package/dist/post-components/p-fbcc89be.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as e,H as o,g as i,c as n}from"./p-0e216cc4.js";import{v as a}from"./p-0a74bc53.js";import{s,a as r}from"./p-515e0f96.js";import{c as l,d as c,b as d}from"./p-5467b223.js";import{c as p}from"./p-b095519d.js";import{c as h}from"./p-4a3f67ab.js";import{n as u}from"./p-5959f2bd.js";import{g as f}from"./p-fc91cbc2.js";const g=class{constructor(e){t(this,e)}render(){return e(o,{key:"cb5be35247053b1227c32f7949baca51ccc31081","data-version":a},e("button",{key:"ece4ca00fedfd0ee76a971ca2a9cf0cf9a1e7f0c",class:"btn btn-icon-close",type:"button"},e("post-icon",{key:"c14a15906a1f229d642c2a8aea456f7a4acc5619","aria-hidden":"true",name:"closex"}),e("span",{key:"94757c5e870f57ec8ba0c52fc5bb2a1f6eed91c2",class:"visually-hidden"},e("slot",{key:"a76c388cceca0b7d4da01b8e737e65f24d11df23"}))))}get host(){return i(this)}},m=class{constructor(e){t(this,e),this.scrollParent=null,this.throttledScroll=()=>this.handleScrollEvent(),this.throttledResize=function(t,e){var o,i={},n=i.noTrailing,a=void 0!==n&&n,s=i.noLeading,r=void 0!==s&&s,l=i.debounceMode,c=void 0===l?void 0:l,d=!1,p=0;function h(){o&&clearTimeout(o)}function u(){for(var t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];var s=this,l=Date.now()-p;function u(){p=Date.now(),e.apply(s,i)}function f(){o=void 0}d||(r||!c||o||u(),h(),void 0===c&&l>50?r?(p=Date.now(),a||(o=setTimeout(c?f:u,50))):u():!0!==a&&(o=setTimeout(c?f:u,void 0===c?50-l:50)))}return u.cancel=function(t){var e=(t||{}).upcomingOnly,o=void 0!==e&&e;h(),d=!o},u}(0,(()=>this.handleResize())),this.device=null,this.mobileMenuExtended=!1}componentWillRender(){this.scrollParent=this.getScrollParent(this.host),this.scrollParent.addEventListener("scroll",this.throttledScroll,{passive:!0}),window.addEventListener("resize",this.throttledResize,{passive:!0}),this.handleResize(),this.handleScrollEvent()}frozeBody(t){document.body.style.overflow=t?"hidden":""}async toggleMobileMenu(){"desktop"!==this.device&&(this.mobileMenuAnimation=this.mobileMenuExtended?s(this.mobileMenu):r(this.mobileMenu),this.host.querySelector("post-togglebutton").toggled=!this.mobileMenuExtended,this.mobileMenuExtended&&await this.mobileMenuAnimation.finished,this.mobileMenuExtended=!this.mobileMenuExtended,this.mobileMenuExtended||await this.mobileMenuAnimation.finished)}handleScrollEvent(){const t=Math.max(0,this.scrollParent instanceof Document?this.scrollParent.documentElement.scrollTop:this.scrollParent.scrollTop);this.host.style.setProperty("--header-scroll-top",`${t}px`)}getScrollParent(t){let e=t.parentElement;for(;e;){if("BODY"===e.nodeName)return document;if(this.isScrollable(e))return e;e=e.parentElement}return document}isScrollable(t){if(!(t instanceof HTMLElement||t instanceof SVGElement))return!1;const e=getComputedStyle(t);return["overflow","overflow-x","overflow-y"].some((t=>{const o=e.getPropertyValue(t);return"auto"===o||"scroll"===o}))}handleResize(){var t;const e=this.device;let o;const i=null===window||void 0===window?void 0:window.innerWidth;o=i>=1024?"desktop":i>=600?"tablet":"mobile","desktop"===o&&this.mobileMenuExtended&&(this.toggleMobileMenu(),this.mobileMenuAnimation.finish());const n=null===(t=this.host.shadowRoot.querySelector(".title-header"))||void 0===t?void 0:t.clientHeight;this.host.style.setProperty("--main-header-height",`${n}px`),o!==e&&(this.device=o,window.requestAnimationFrame((()=>{this.switchLanguageSwitchMode()})))}switchLanguageSwitchMode(){var t;const e="desktop"===this.device?"menu":"list";null===(t=this.host.querySelector("post-language-switch"))||void 0===t||t.setAttribute("variant",e)}render(){const t=["navigation"];return this.mobileMenuExtended&&t.push("extended"),e(o,{key:"008e84568ce41249365d93169b2f94cd988601d0",version:a},e("div",{key:"f6415c30b3bfacd01a65166c7f0a3afc37676cc8",class:"global-header"},e("div",{key:"dc1465a3a68ce8c66c7da644d992c37d8d09ccc4",class:"global-sub"},e("div",{key:"490b4afe502465bc20ccc41149533929987f2fab",class:"logo"},e("slot",{key:"28ee1cdb2804f6315fffa2c319a1e2fa1e54ad08",name:"post-logo"}))),e("div",{key:"777d715f4718bb6738665f3d65c9ee4729a977de",class:"global-sub"},"desktop"===this.device&&e("slot",{key:"c1ddbfdecc96fe3a6efb930d8475ee880059d372",name:"meta-navigation"}),e("slot",{key:"df1ccf5c36ea4a05812c3983961389c42c42ddb9",name:"global-controls"}),"desktop"===this.device&&e("slot",{key:"ace2dda9a3f3d898934c7d47c84e2475fb555e5d",name:"post-language-switch"}),e("div",{key:"3e8d94d9534d5daaa2f8e6ca5cc0833e78a49224",onClick:()=>this.toggleMobileMenu(),class:"mobile-toggle"},e("slot",{key:"58e3637f103411f5e577dba931caf884f46a6e47",name:"post-togglebutton"})))),e("div",{key:"f90ff065ed795fc780c90768e5c0ab5a431bec8d",class:"title-header "+(this.mobileMenuExtended?"title-header-mobile-extended":"")},e("slot",{key:"a1aaaf02da073b9e7de82e84c93745afa6a8c4e9",name:"title"}),e("div",{key:"84ae2f8b846536130967362de160e054049c8489",class:"global-sub"},e("slot",{key:"8a845cd7f87b3a2c2fba7ffc1ace31e87f6329d9",name:"local-controls"}),e("slot",{key:"f3822b883fc88436a84d3ca7f840946af992417e"}))),e("div",{key:"8e0390c6c2b9a71488eea73c9207d0c336c9b75d",ref:t=>this.mobileMenu=t,class:t.join(" ")},e("slot",{key:"5fc2db060eb962c313fc4c9ab67032e990ff54c6",name:"post-mainnavigation"}),("mobile"===this.device||"tablet"===this.device)&&e("div",{key:"7b9147dcf5de01865785d417c8d1966efb891ace",class:"navigation-footer"},e("slot",{key:"6e163a7dad7b0b0fc02493cd15152179d4242980",name:"meta-navigation"}),e("slot",{key:"e8fd19eeed8a99d69ccd8635e36cd0256ed4424b",name:"post-language-switch"}))))}get host(){return i(this)}static get watchers(){return{mobileMenuExtended:["frozeBody"]}}};m.style="*,::before,::after{box-sizing:border-box}:host{--global-header-height:72px;--global-header-minimal-height:24px;--main-header-height:56px;--main-header-min-height:56px;--header-height:calc(var(--global-header-height) + var(--main-header-height))}@media screen and (min-width: 1024px){:host{display:block;position:sticky;inset-inline:0;inset-block-start:calc(-1*(var(--global-header-height) + var(--main-header-height) - var(--global-header-minimal-height)));box-shadow:var(--post-core-elevation-3)}}@media screen and (max-width: 1023.99px){:host{--global-header-height:64px;--main-header-height:48px;--main-header-min-height:48px}}.d-flex{display:flex}.space-between{justify-content:space-between}.global-header{background-color:#fc0;display:flex;justify-content:space-between;align-items:center;position:sticky;padding-inline:var(--post-core-dimension-4);height:var(--global-header-height);z-index:1}@media screen and (max-width: 1023.99px){.global-header{inset-block-start:0}}@media screen and (min-width: 1024px){.global-header{padding-inline-end:var(--post-core-dimension-12);top:calc((var(--global-header-height) - var(--global-header-minimal-height))*-1)}}slot[name=post-logo]{align-self:flex-end}.global-sub{display:flex;align-items:center;gap:var(--post-core-dimension-24)}.align-end{align-items:flex-end}.logo{flex:1 0 auto;height:var(--global-header-height);width:var(--global-header-height);min-height:var(--global-header-minimal-height);align-self:flex-end}@media screen and (min-width: 1024px){.logo{height:calc(var(--global-header-height) - var(--header-scroll-top))}}::slotted(ul){margin-block:0;list-style:none;display:flex;padding-left:0;gap:1rem;flex-shrink:0 !important}.title-header{display:flex;align-items:center;gap:var(--post-core-dimension-8);min-height:var(--main-header-min-height);justify-content:space-between;background:var(--post-core-color-brand-white)}@media screen and (min-width: 1024px){.title-header{padding:var(--post-core-dimension-18) var(--post-core-dimension-16) var(--post-core-dimension-4) var(--post-core-dimension-12)}}@media screen and (max-width: 1023.99px){.title-header{position:sticky;z-index:1;inset-block-start:var(--global-header-height);padding-inline:var(--post-core-dimension-8) var(--post-core-dimension-16);padding-block:var(--post-core-dimension-9);flex-wrap:wrap}.title-header.title-header-mobile-extended{border-bottom:1px solid var(--post-core-color-sandgrey-012)}}:host(:not(:has([slot=title]))) .title-header{display:none}::slotted(h1){margin:0 !important;flex-shrink:10}@media screen and (min-width: 1024px){::slotted(h1){font-size:var(--post-core-font-size-28) !important}}@media screen and (max-width: 1023.99px){::slotted(h1){font-size:var(--post-core-font-size-20) !important;max-width:calc(100vw - var(--post-core-dimension-8) - var(--post-core-dimension-16))}}@media screen and (min-width: 1024px){.mobile-toggle{display:none}}.navigation{background:var(--post-core-color-brand-white)}@media screen and (min-width: 1024px){.navigation{position:sticky;z-index:1;inset-block-start:var(--global-header-minimal-height)}}@media screen and (max-width: 1023.99px){.navigation{position:fixed;inset-inline:0;inset-block-end:calc(100vh - var(--header-height));box-shadow:var(--post-core-elevation-3);min-height:var(--post-core-dimension-10);max-height:calc(100vh - var(--header-height));overflow:auto}::slotted(post-mainnavigation),.navigation-footer{display:none;flex-direction:column;padding-block:var(--post-core-dimension-16) var(--post-core-dimension-24);padding-inline:var(--post-core-dimension-32)}.navigation.extended ::slotted(post-mainnavigation),.navigation.extended .navigation-footer{display:flex}::slotted(post-mainnavigation){background-color:var(--post-core-color-sandgrey-002);gap:var(--post-core-dimension-32)}.navigation-footer{background-color:var(--post-core-color-sandgrey-006);gap:var(--post-core-dimension-24)}}";const b=["cylon","cylon-vertical","spin","spin-reverse","fade","throb"],v=class{constructor(e){t(this,e),this.animation=null,this.base=null,this.flipH=!1,this.flipV=!1,this.name=void 0,this.rotate=null,this.scale=null}validateAnimation(t=this.animation){void 0!==t&&l(t,b,`The post-icon "animation" prop requires one of the following values: ${b.join(", ")}.`)}validateBase(t=this.base){c(t,"string",'The post-icon "base" prop should be a string.')}validateFlipH(t=this.flipH){c(t,"boolean",'The post-icon "flipH" prop should be a boolean.')}validateFlipV(t=this.flipV){c(t,"boolean",'The post-icon "flipV" prop should be a boolean.')}validateName(t=this.name){p(t,'The post-icon "name" prop is required!.'),h(t,"string",'The post-icon "name" prop should be a string.')}validateRotate(t=this.rotate){c(t,"number",'The post-icon "rotate" prop should be a number.')}validateScale(t=this.scale){c(t,"number",'The post-icon "scale" prop should be a number.')}getPath(){var t,e,o,i,n,a;const s=null!==(e=null===(t=document.head.querySelector('meta[name="design-system-settings"][data-post-icon-base]'))||void 0===t?void 0:t.getAttribute("data-post-icon-base"))&&void 0!==e?e:null,r=null===(o=document.getElementsByTagName("base")[0])||void 0===o?void 0:o.href,l=`${null!==(a=null!==(n=null!==(i=this.base)&&void 0!==i?i:s)&&void 0!==n?n:r)&&void 0!==a?a:"https://unpkg.com/@swisspost/design-system-icons/public/post-icons"}/`.replace(/\/\/$/,"/");return new URL(`${l}${this.name}.svg`,window.location.origin).toString()}getStyles(){const t=this.getPath();return Object.entries({"-webkit-mask-image":`url(${t})`,"mask-image":`url('${t}')`,transform:(this.scale&&!isNaN(Number(this.scale))?"scale("+this.scale+")":"")+(this.rotate&&!isNaN(Number(this.rotate))?" rotate("+this.rotate+"deg)":"")}).filter((([t,e])=>null!==e)).reduce(((t,[e,o])=>Object.assign(t,{[e]:o})),{})}componentDidLoad(){this.validateBase(),this.validateName(),this.validateFlipH(),this.validateFlipV(),this.validateScale(),this.validateRotate(),this.validateAnimation()}render(){return e(o,{key:"70e13e357929d2601de3b61f46f9a717ba491fd5","data-version":a},e("span",{key:"a0c40175bfa6bd06f3498dc056685c8396b6e706",style:this.getStyles()}))}get host(){return i(this)}static get watchers(){return{animation:["validateAnimation"],base:["validateBase"],flipH:["validateFlipH"],flipV:["validateFlipV"],name:["validateName"],rotate:["validateRotate"],scale:["validateScale"]}}};v.style=":host{display:inline-block;width:1em;height:1em;vertical-align:-0.15em}span{display:block;width:100%;height:100%;fill:currentColor;forced-color-adjust:preserve-parent-color;background-color:currentColor;-webkit-mask-position:center center;mask-position:center center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100%;mask-size:100%}:host([flip-h]:not([flip-h=false])){scale:-1 1}:host([flip-v]:not([flip-v=false])){scale:1 -1}:host([flip-h][flip-v]:not([flip-h=false],[flip-v=false])){scale:-1}:host([animation]){transform-origin:center}:host([animation=cylon]){animation:icon-animation-cylon .75s ease-in-out infinite alternate}:host([animation=cylon-vertical]){animation:icon-animation-cylon-vertical .75s ease-in-out infinite alternate}:host([animation=spin]){animation:icon-animation-spin 2s linear infinite normal}:host([animation=spin-reverse]){animation:icon-animation-spin 2s linear infinite reverse}:host([animation=fade]){animation:icon-animation-fade .75s ease-in-out infinite alternate}:host([animation=throb]){animation:icon-animation-throb .75s ease-in-out infinite alternate}@keyframes icon-animation-cylon{from{transform:translateX(-25%)}to{transform:translateX(25%)}}@keyframes icon-animation-cylon-vertical{from{transform:translateY(25%)}to{transform:translateY(-25%)}}@keyframes icon-animation-fade{from{opacity:.1}to{opacity:1}}@keyframes icon-animation-spin{from{transform:rotate(0deg)}to{transform:rotate(359deg)}}@keyframes icon-animation-throb{from{opacity:.5;transform:scale(0.5)}to{opacity:1;transform:scale(1)}}";const w=class{constructor(e){t(this,e),this.postChange=n(this,"postChange",7),this.code=void 0,this.active=void 0,this.variant=void 0,this.name=void 0,this.url=void 0}validateCode(t=this.code){h(t,"string",'The "code" property of the post-language-option component must be a string.')}validateActiveProp(t=this.active){c(t,"boolean",'The "active" property of the post-language-option component must be a boolean value.')}validateName(t=this.name){c(t,"string",'The "name" property of the post-language-option component must be a string.')}validateUrl(t=this.url){c(t,"string",'The "url" property of the post-language-option component must be a valid URL.')}componentDidLoad(){if(this.validateCode(),this.validateActiveProp(),this.validateName(),this.validateUrl(),!this.name&&this.isNameRequired())throw new Error('The "name" property of the post-language-option component is required when the full language name is not displayed.')}async select(){this.active=!0,this.emitChange()}emitChange(){this.postChange.emit(this.code)}isNameRequired(){return this.host.textContent.toLowerCase()===this.code.toLowerCase()}render(){const t=this.code.toLowerCase(),i=t=>{"Enter"!==t.key&&" "!==t.key||this.emitChange()};return e(o,{key:"6a7c4af5ab0a953cc2c70621efc6fff905638900","data-version":a,role:this.variant?`${this.variant}item`:null},this.url?e("a",{"aria-current":this.active?"page":void 0,"aria-label":this.name,href:this.url,hrefLang:t,lang:t,onClick:()=>this.emitChange(),onKeyDown:i},e("slot",null)):e("button",{"aria-current":this.active?"true":void 0,"aria-label":this.name,lang:t,onClick:()=>this.emitChange(),onKeyDown:i},e("slot",null)))}get host(){return i(this)}static get watchers(){return{code:["validateCode"],active:["validateActiveProp"],name:["validateName"],url:["validateUrl"]}}};w.style='/*!\n * Copyright 2021 by Swiss Post, Information Technology\n */post-language-option{display:inline-block}post-language-option button{padding:0;overflow:visible;border:0;background:none;color:inherit;font:inherit;-webkit-user-select:none;user-select:none;appearance:button}post-language-option a{color:inherit;text-decoration:none}post-language-option :is(a,button){cursor:pointer;display:flex;align-items:center;justify-content:center;height:100%;width:100%;padding:var(--post-language-option-padding);border-radius:2px}post-language-option :is(a,button){outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}post-language-option :is(a,button):is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){post-language-option :is(a,button):is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){post-language-option :is(a,button):is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){post-language-option :is(a,button):is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}post-language-option:where([variant=list]) :is(a,button){width:40px;height:40px}post-language-option:where([variant=list]) :is(a,button):hover{color:#504f4b}post-language-option:where([variant=list]) :is(a,button)[aria-current=true],post-language-option:where([variant=list]) :is(a,button)[aria-current=page]{background-color:#050400;color:#fff}post-language-option:where([variant=list]) :is(a,button)[aria-current=true]:hover,post-language-option:where([variant=list]) :is(a,button)[aria-current=page]:hover{background-color:#504f4b}post-language-option:where([variant=menu]){width:100%}post-language-option:where([variant=menu]) :is(a,button){padding-block:13px;padding-inline:24px;box-sizing:border-box;position:relative;left:-1px;width:calc(100% + 2px)}post-language-option:where([variant=menu]) :is(a,button)[aria-current=true]::after,post-language-option:where([variant=menu]) :is(a,button)[aria-current=page]::after{content:"";left:0;height:3px;background-color:#050400;width:100%;display:block;position:absolute;bottom:3px}post-language-option:where([variant=menu]) :is(a,button)[aria-current=true]:hover::after,post-language-option:where([variant=menu]) :is(a,button)[aria-current=page]:hover::after{background-color:#504f4b}post-language-option:where([variant=menu]) :is(a,button):hover{color:#504f4b}';const y=["list","menu"],x=class{constructor(e){t(this,e),this.menuId=`p${u(11)}`,this.caption=void 0,this.description=void 0,this.variant="list",this.activeLang=void 0}validateCaption(t=this.caption){h(t,"string",'The "caption" property of the post-language-switch component must be a string.')}validateDescription(t=this.description){h(t,"string",'The "description" property of the post-language-switch component must be a string.')}validateVariant(t=this.variant){l(t,y,`The "variant" property of the post-language-switch component must be: ${y.join(", ")}`)}connectedCallback(){this.updateChildrenVariant(),this.activeLang=Array.from(this.host.querySelectorAll("post-language-option")).find((t=>"true"==t.getAttribute("active"))).getAttribute("code")}updateChildrenVariant(){this.host.querySelectorAll("post-language-option").forEach((t=>{t.setAttribute("variant",this.variant)}))}componentWillUpdate(){this.updateChildrenVariant()}componentDidLoad(){this.validateCaption(),this.validateDescription(),this.validateVariant(),this.host.addEventListener("postChange",(t=>{if(this.activeLang=t.detail,this.host.querySelectorAll("post-language-option").forEach((t=>{t.setAttribute("active",t.code&&t.code===this.activeLang?"true":"false")})),"menu"===this.variant){const t=this.host.shadowRoot.querySelector("post-menu");t.toggle(t)}}))}renderList(){return e(o,{"data-version":a,"aria-label":`${this.caption}, ${this.description}`,"aria-role":"list"},e("slot",null))}renderDropdown(){return e(o,{"data-version":a},e("post-menu-trigger",{for:this.menuId},e("button",{class:"post-language-switch-trigger","aria-label":`${this.caption}, ${this.description}`},this.activeLang.toUpperCase(),e("post-icon",{"aria-hidden":"true",name:"chevrondown"}))),e("post-menu",{id:this.menuId,class:"post-language-switch-dropdown-container"},e("slot",null)))}render(){return"list"===this.variant?this.renderList():this.renderDropdown()}get host(){return i(this)}static get watchers(){return{caption:["validateCaption"],description:["validateDescription"],variant:["validateVariant"]}}};x.style=":host{display:block}@media screen and (max-width: 1023.99px){:host{display:flex !important;gap:.5rem}}.post-language-switch-dropdown-container{display:flex;flex-direction:column}.post-language-switch-dropdown-container>*{width:100%}.post-language-switch-trigger{cursor:pointer;padding:0;overflow:visible;border:0;background:none;color:inherit;font:inherit;-webkit-user-select:none;user-select:none;appearance:button;text-decoration:none;display:inline-flex;align-items:center;gap:var(--post-core-dimension-6);border-radius:var(--post-core-dimension-24);font-size:var(--post-core-font-size-16);padding:var(--post-core-dimension-3) var(--post-core-dimension-10)}.post-language-switch-trigger{outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}.post-language-switch-trigger:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.post-language-switch-trigger:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.post-language-switch-trigger:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.post-language-switch-trigger:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}.post-language-switch-trigger:not(:disabled):hover,.post-language-switch-trigger.pretend-hover{border-color:var(--post-scheme-color-interactive-button-tertiary-hover-stroke);background-color:var(--post-scheme-color-interactive-button-tertiary-hover-bg);color:var(--post-scheme-color-interactive-button-tertiary-hover-fg)}.post-language-switch-trigger post-icon{height:var(--post-core-dimension-16);width:var(--post-core-dimension-16)}";const k=class{constructor(e){t(this,e),this.titleId=void 0,this.titleHidden=!1,this.horizontal=!1}componentWillLoad(){this.titleId=`title-${this.host.id||u(6)}`}componentDidLoad(){this.checkTitle()}checkTitle(){if(!this.titleEl.textContent.trim())throw new Error("Please provide a title to the list component. Title is mandatory for accessibility purposes.")}render(){return e(o,{key:"70594af566e1fe34ce0b9ebe1a8cbbc868dab973","data-version":a},e("div",{key:"27b6c4af3d51a0d83f968ec751b6bcf46feb7d05",ref:t=>this.titleEl=t,id:this.titleId,class:"list-title"+(this.titleHidden?" visually-hidden":"")},e("slot",{key:"a913bd018199bb031e3d96d487bd528831453387"})),e("div",{key:"e1a3ddecc643a78f57b91cc9ccb0de6b02302a47",role:"list","aria-labelledby":this.titleId},e("slot",{key:"bd7c6df300d28fe0b9f1dd3135eb42da00e731b9",name:"post-list-item"})))}get host(){return i(this)}};k.style="/*!\n * Copyright 2021 by Swiss Post, Information Technology\n */post-list{display:flex;flex-direction:column;gap:var(--post-list-title-gap, 0)}post-list>[role=list]{display:flex;flex-direction:column;gap:var(--post-list-item-gap, 0)}post-list:where([horizontal]:not([horizontal=false])){flex-direction:row;align-items:center}post-list:where([horizontal]:not([horizontal=false]))>[role=list]{flex-direction:row;align-items:center}post-list>.list-title.visually-hidden{width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}post-list>.list-title.visually-hidden:not(caption){position:absolute !important}";const T=class{constructor(e){t(this,e)}connectedCallback(){this.host.setAttribute("slot","post-list-item")}render(){return e(o,{key:"f7b26e05f1fa8bab9909dcee305dbf74960671eb",role:"listitem",slot:"post-list-item"},e("slot",{key:"3d75b0acf3f4a89c64c447e8d182bbc9a4f930a0"}))}get host(){return i(this)}};T.style=":host{display:flex}";const E=class{constructor(e){t(this,e),this.url=void 0}validateUrl(){d(this.url,'The "url" property of the post-logo is invalid')}componentDidLoad(){this.validateUrl(),this.checkDescription()}checkDescription(){this.host.textContent||console.warn("Be sure to add descriptive text in the post-logo to ensure good accessibility of the component.")}render(){const t=this.url&&("string"==typeof this.url?this.url:this.url.href);return e(o,{key:"c20cf7b8d3684d33cf9b85448a560a93cd4df118","data-version":a},e(t?"a":"span",Object.assign({key:"16f5f647935c87124d7bf1be5dd5fb4c6d56a76f",class:"logo "+(t?"logo-link":"")},t?{href:t}:{}),e("span",{key:"1373265c0c2271069c1ee540fb6d5576e67dd923",class:"description"},e("slot",{key:"d52c8c0d28e8292f7a30733dc195e1e1e32edf2a",onSlotchange:()=>this.checkDescription()})),e("svg",{key:"ad1c0ff356325415a1f99c4bc941895d1448801a",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 72 72","aria-hidden":"true"},e("g",{key:"ca8015671b16c192d44a1b48699e45ff7adc6123",id:"Logo"},e("rect",{key:"e862e2ea34630326ca6f6eea164f227b138d44c1",fill:"#ffcc00",x:"0",y:"0",width:"72",height:"72"}),e("polygon",{key:"d25e571bd67524c33c343312826e37dafedf918c",fill:"#ff0000",points:"34,32.3 34,19 19.7,19 19.7,29.1 10,29.1 10,42.9 19.7,42.9 19.7,53 34,53 34,39.7 30.6,39.7 30.6,49.8 23.1,49.8 23.1,39.7 13.4,39.7 13.4,32.3 23.1,32.3 23.1,22.2 30.6,22.2 30.6,32.3"}),e("path",{key:"a053c52cf9de963d52bc6a0f078a986c836b6038",d:"M53.56234,31.10526c0,2.41272-1.99154,4.29475-4.51723,4.29475H45.2v-8.3h3.84511C51.66802,27.1,53.56234,28.78889,53.56234,31.10526z M50.69666,19H36v34h9.2V42.9h5.49666c6.75131,0,11.9971-5.15137,11.9971-11.8057C62.69376,24.39136,57.35099,19,50.69666,19z"})))))}get host(){return i(this)}static get watchers(){return{url:["validateUrl"]}}};E.style=":host,.logo{display:inline-block}:host,:host .logo>svg,.logo,.logo .logo>svg{height:100%}.description{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}.logo-link{outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}.logo-link:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.logo-link:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.logo-link:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.logo-link:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}.logo-link :focus,:focus-visible{border-radius:2px}";const C=class{constructor(e){t(this,e),this.postToggle=n(this,"postToggle",7)}connectedCallback(){this.header=this.host.closest("post-header")}disconnectedCallback(){this.header=null}handleBackButtonClick(){this.header&&this.header.toggleMobileMenu()}render(){return e(o,{key:"23d1cc3919d15543bf409e8fa25be02973532a12",slot:"post-mainnavigation"},e("div",{key:"8d35b8b7715fbac387361706a03a10e4af481301",onClick:()=>this.handleBackButtonClick(),class:"back-button"},e("slot",{key:"01899ddef2cdc321ff7383eec310877335e951a7",name:"back-button"})),e("nav",{key:"3237225f2608b28355e669e11189ba1ccc9c593a"},e("slot",{key:"32105f3acf726a590631896c707a2149706a90d5"})))}get host(){return i(this)}};C.style="post-mainnavigation post-list-item>a{text-decoration:none;border-radius:0}post-mainnavigation post-list-item post-megadropdown-trigger button{padding:0;overflow:visible;border:0;background:none;color:inherit;font:inherit;-webkit-user-select:none;user-select:none;appearance:button;text-align:start}post-mainnavigation post-list-item post-megadropdown-trigger button{outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}post-mainnavigation post-list-item post-megadropdown-trigger button:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){post-mainnavigation post-list-item post-megadropdown-trigger button:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){post-mainnavigation post-list-item post-megadropdown-trigger button:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){post-mainnavigation post-list-item post-megadropdown-trigger button:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}post-mainnavigation post-list-item>a,post-mainnavigation post-list-item>button,post-mainnavigation post-list-item post-megadropdown-trigger button{display:flex;align-items:center;justify-content:space-between}post-mainnavigation post-list-item>a:hover,post-mainnavigation post-list-item>button:hover,post-mainnavigation post-list-item post-megadropdown-trigger button:hover{color:var(--post-scheme-color-interactive-primary-hover-fg1)}post-mainnavigation post-list-item>a:focus-visible,post-mainnavigation post-list-item>button:focus-visible,post-mainnavigation post-list-item post-megadropdown-trigger button:focus-visible{border-radius:var(--post-core-dimension-4);z-index:1}@media screen and (min-width: 1024px){post-mainnavigation nav{position:relative;max-width:100vw;max-height:var(--post-core-dimension-56);user-select:none}post-mainnavigation post-list{margin-inline:var(--post-core-dimension-4)}post-mainnavigation post-list>[role=list]{flex-direction:row;max-width:100vw;transition:transform 250ms cubic-bezier(0.4, 0, 0.2, 1)}post-mainnavigation post-list-item>a,post-mainnavigation post-list-item>button,post-mainnavigation post-list-item post-megadropdown-trigger button{padding-inline:var(--post-core-dimension-12);height:var(--post-core-dimension-56);gap:var(--post-core-dimension-4);font-size:var(--post-core-font-size-16);border-block:0 solid rgba(0,0,0,0);border-block-end-color:currentColor}post-mainnavigation post-list-item>a:hover,post-mainnavigation post-list-item>button:hover,post-mainnavigation post-list-item post-megadropdown-trigger button:hover{border-block-width:var(--post-core-dimension-2)}post-mainnavigation post-list-item>a.selected,post-mainnavigation post-list-item>a[aria-expanded=true],post-mainnavigation post-list-item>button.selected,post-mainnavigation post-list-item>button[aria-expanded=true],post-mainnavigation post-list-item post-megadropdown-trigger button.selected,post-mainnavigation post-list-item post-megadropdown-trigger button[aria-expanded=true]{border-block-width:var(--post-core-dimension-4);font-weight:var(--post-core-font-weight-700)}post-mainnavigation post-list-item>button,post-mainnavigation post-list-item post-megadropdown-trigger button{padding-inline-end:var(--post-core-dimension-12);transition:border-block-end-color 250ms cubic-bezier(0.4, 0, 0.2, 1)}post-mainnavigation post-list-item>button::after,post-mainnavigation post-list-item post-megadropdown-trigger button::after{content:\"\";mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m23.6 13.2-7.5 7.6-7.6-7.6.9-.9 6.6 6.6 6.6-6.6z'/%3E%3C/svg%3E\");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color;height:var(--post-core-dimension-24);width:var(--post-core-dimension-24);transition:transform 250ms cubic-bezier(0.4, 0, 0.2, 1)}post-mainnavigation post-list-item>button.selected::after,post-mainnavigation post-list-item>button[aria-expanded=true]::after,post-mainnavigation post-list-item post-megadropdown-trigger button.selected::after,post-mainnavigation post-list-item post-megadropdown-trigger button[aria-expanded=true]::after{transform:rotate(180deg)}post-mainnavigation [slot=back-button]{display:none}}@media screen and (max-width: 1023.99px){post-mainnavigation post-list>[role=list]{transform:none !important}post-mainnavigation post-list-item>a,post-mainnavigation post-list-item>button,post-mainnavigation post-list-item post-megadropdown-trigger button{width:100%;height:var(--post-core-dimension-48);padding-inline-end:var(--post-core-dimension-6);gap:var(--post-core-dimension-16);border-block:var(--post-core-dimension-1) solid rgba(0,0,0,0);border-block-end-color:currentColor;font-weight:var(--post-core-font-weight-700)}post-mainnavigation post-list-item>a:hover,post-mainnavigation post-list-item>a.selected,post-mainnavigation post-list-item>button:hover,post-mainnavigation post-list-item>button.selected,post-mainnavigation post-list-item post-megadropdown-trigger button:hover,post-mainnavigation post-list-item post-megadropdown-trigger button.selected{border-block-width:var(--post-core-dimension-3)}post-mainnavigation post-list-item>a:hover::after,post-mainnavigation post-list-item>button:hover::after,post-mainnavigation post-list-item post-megadropdown-trigger button:hover::after{content:\"\";display:block;mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20.667 5.333H18.8L29.467 16H0v1.333h29.467L18.8 28h1.867L32 16.667z'/%3E%3C/svg%3E\");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color;width:var(--post-core-dimension-24);height:var(--post-core-dimension-24)}}post-mainnavigation .back-button .btn{padding-inline:0}";const S=class{constructor(e){t(this,e),this.postToggleMegadropdown=n(this,"postToggleMegadropdown",7),this.isVisible=!1,this.animationClass=null}componentDidLoad(){this.popoverRef.addEventListener("postToggle",(t=>{this.isVisible=t.detail,this.postToggleMegadropdown.emit(this.isVisible)})),this.popoverRef.addEventListener("animationend",(()=>{"slide-out"===this.animationClass&&this.hide()}))}async toggle(t){this.isVisible?this.hide():await this.show(t)}async show(t){this.popoverRef?(await this.popoverRef.show(t),this.animationClass="slide-in"):console.error("show: popoverRef is null or undefined")}hide(){this.popoverRef?this.popoverRef.hide():console.error("hide: popoverRef is null or undefined")}handleBackButtonClick(){this.animationClass="slide-out"}handleCloseButtonClick(){this.popoverRef.hide()}handleFocusout(t){const e=t.relatedTarget;this.popoverRef.querySelector(".megadropdown").contains(e)||this.hide()}render(){return e(o,{key:"cb7df3441b1c064045c6d27cd7e20376a62de57c"},e("post-popovercontainer",{key:"8c2de3df3d1dd59187f463d751654958326dde02",class:this.animationClass,placement:"bottom","edge-gap":"0",ref:t=>this.popoverRef=t},e("div",{key:"392182e1d6206c969fc64b1758d121e1ab6361f3",class:"megadropdown",onFocusout:t=>this.handleFocusout(t)},e("div",{key:"45742e41d227d0481436bd49de065044a2ce5e35",onClick:()=>this.handleBackButtonClick(),class:"back-button"},e("slot",{key:"5607a569924faba3be599b6e1f53f4a8704b2f05",name:"back-button"})),e("div",{key:"c1a99e2d25af71fc3122e1173549ad7fe1d920b7",onClick:()=>this.handleCloseButtonClick(),class:"close-button"},e("slot",{key:"82059d749600e18e63c836d5ab6697eb50ec91cf",name:"close-button"})),e("slot",{key:"eea5e876c1ae5558a3c5c6301b298e564d8b75b0",name:"megadropdown-title"}),e("div",{key:"16b0f351786aef2827ce08163a554e49c40f224b",class:"megadropdown-content"},e("slot",{key:"97e5230769b01070e488f71704740ec27de9f2d4"})))))}get host(){return i(this)}};S.style="@keyframes slide-in{0%{transform:translateX(100%)}100%{transform:translateX(0%)}}@keyframes slide-out{from{transform:translateX(0%)}to{transform:translateX(100%)}}*,::before,::after{box-sizing:border-box}post-popovercontainer{background-color:#fafafa;border:none;border-top:1px solid #e1e0dc;width:100%;border-radius:0;box-shadow:0 8px 6px rgba(0,0,0,.16)}@media screen and (max-width: 1023.99px){post-popovercontainer{position:absolute;top:var(--header-height) !important;bottom:0;left:0;width:100%;height:auto;border-top:unset}post-popovercontainer.slide-in{animation:slide-in;animation-duration:350ms;animation-fill-mode:forwards}post-popovercontainer.slide-out{animation:slide-out;animation-duration:350ms;animation-fill-mode:forwards}}.megadropdown{padding:31px 40px 40px}@media screen and (max-width: 1023.99px){.megadropdown{padding:16px 32px 24px}}.megadropdown .megadropdown-content{gap:1.5rem;display:grid;grid-template-columns:repeat(auto-fit, minmax(min(15vw, 100%), 1fr));grid-auto-rows:1fr auto;grid-auto-flow:dense}@media screen and (max-width: 1023.99px){.megadropdown .megadropdown-content{grid-template-columns:repeat(auto-fit, minmax(min(35vw, 100%), 1fr))}}@media screen and (max-width: 599.99px){.megadropdown .megadropdown-content{grid-template-columns:1fr}}.megadropdown h2{display:none;margin-top:0;margin-bottom:8px;font-weight:900}.megadropdown h2 a{text-decoration:none;font-weight:inherit;border-bottom:0;border-top:0}@media screen and (max-width: 1023.99px){.megadropdown h2{display:block;font-size:20px}}.megadropdown a:hover{border-block-width:0}.megadropdown a:hover::after{content:unset}.megadropdown post-list{display:grid;grid-row:span 2;grid-template-rows:subgrid;row-gap:0px}.megadropdown post-list>[role=list]{flex-direction:unset;display:unset}.megadropdown post-list>*{width:100%}.megadropdown post-list .list-title{display:flex;flex-direction:column-reverse;height:100%}.megadropdown post-list .list-title h3{font-size:20px;border-bottom:1px solid #050400;padding:15px 12px 14px 0;display:block;font-weight:900}.megadropdown post-list .list-title h3 a{text-decoration:none;width:100%;font-size:inherit;display:inline-block;font-weight:inherit;height:unset;padding:0;border:0}@media screen and (max-width: 1023.99px){.megadropdown post-list .list-title h3{font-size:16px;padding:12px 12px 11px 0}}.megadropdown post-list-item{border-bottom:1px solid #050400}.megadropdown post-list-item>a{padding:13px 12px 12px 0;display:block;text-decoration:none;width:100%;border-bottom:0;height:auto;border-top:0}@media screen and (max-width: 1023.99px){.megadropdown post-list-item>a{padding:12px 12px 11px 0}}.megadropdown .back-button{display:none;margin-bottom:2rem}.megadropdown .back-button .btn{width:auto}.megadropdown .back-button post-icon{transform:rotate(180deg)}@media screen and (max-width: 1023.99px){.megadropdown .back-button{display:block}}.megadropdown .close-button{position:absolute;top:1rem;right:1rem}@media screen and (max-width: 1023.99px){.megadropdown .close-button{display:none}}";const A=class{constructor(e){t(this,e),this.slottedButton=null,this.for=void 0,this.ariaExpanded=!1}validateControlFor(t=this.for){h(t,"string",'The "for" property is required and should be a string.')}get megadropdown(){const t=document.getElementById(this.for);return t&&"post-megadropdown"===t.localName?t:null}handleToggle(){this.megadropdown?this.megadropdown.toggle(this.host):console.warn(`No post-megadropdown found with ID: ${this.for}`)}componentDidLoad(){this.validateControlFor(),document.addEventListener("postToggleMegadropdown",(t=>{t.target.id===this.for&&(this.ariaExpanded=t.detail,this.slottedButton&&this.slottedButton.setAttribute("aria-expanded",this.ariaExpanded.toString()))})),this.slottedButton=this.host.querySelector("button"),this.slottedButton?(this.slottedButton.setAttribute("aria-haspopup","menu"),this.slottedButton.addEventListener("click",(()=>{this.handleToggle()}))):console.warn("No button found within post-megadropdown-trigger")}render(){return e(o,{key:"ba9b6922d4f4eac596f7d1310a5a1bf534b156d8","data-version":a,"tab-index":"-1"},e("button",{key:"5fe4ea7f385897606f472ea72be84399e76550e2"},e("slot",{key:"333f583f0db191599c4be9be9647789b2ea1ecaf"})))}get host(){return i(this)}static get watchers(){return{for:["validateControlFor"]}}};A.style="post-megadropdown-trigger{width:100%}";const M=`:where(${["button",'input:not([type="hidden"])',"[tabindex]","select","textarea","[contenteditable]","a[href]","iframe","audio[controls]","video[controls]","area[href]","details > summary:first-of-type"].join(",")})`,L=`:where(${["[inert]","[inert] *",":disabled","dialog:not([open]) *","[popover]:not(:popover-open) *","details:not([open]) > *:not(details > summary:first-of-type)","details:not([open]) > *:not(details > summary:first-of-type) *",'[tabindex^="-"]'].join(",")})`,z=class{constructor(e){t(this,e),this.toggleMenu=n(this,"toggleMenu",7),this.lastFocusedElement=null,this.KEYCODES={SPACE:" ",ENTER:"Enter",UP:"ArrowUp",DOWN:"ArrowDown",TAB:"Tab",HOME:"Home",END:"End",ESCAPE:"Escape"},this.handleKeyDown=t=>{t.stopPropagation(),t.key!==this.KEYCODES.ESCAPE?Object.values(this.KEYCODES).includes(t.key)&&this.controlKeyDownHandler(t):this.toggle(this.host)},this.handleClick=t=>{["BUTTON","A","INPUT","SELECT","TEXTAREA"].includes(t.target.tagName)&&this.toggle(this.host)},this.placement="bottom",this.isVisible=!1}connectedCallback(){this.root=f(this.host),this.host.addEventListener("keydown",this.handleKeyDown),this.host.addEventListener("click",this.handleClick)}disconnectedCallback(){this.host.removeEventListener("keydown",this.handleKeyDown),this.host.removeEventListener("click",this.handleClick)}componentDidLoad(){this.popoverRef.addEventListener("postToggle",(t=>{this.isVisible=t.detail,this.toggleMenu.emit(this.isVisible)}))}async toggle(t){this.isVisible?await this.hide():await this.show(t)}async show(t){if(this.popoverRef){await this.popoverRef.show(t),this.lastFocusedElement=this.root.activeElement;const e=this.getSlottedItems();e.length>0&&e[0].focus()}else console.error("show: popoverRef is null or undefined")}async hide(){this.popoverRef?(await this.popoverRef.hide(),this.lastFocusedElement&&this.lastFocusedElement.focus()):console.error("hide: popoverRef is null or undefined")}controlKeyDownHandler(t){const e=this.getSlottedItems();if(!e.length)return;let o=e.findIndex((t=>t===f(t).activeElement));switch(t.key){case this.KEYCODES.UP:t.preventDefault(),o=(o-1+e.length)%e.length;break;case this.KEYCODES.DOWN:t.preventDefault(),o=(o+1)%e.length;break;case this.KEYCODES.HOME:o=0;break;case this.KEYCODES.END:o=e.length-1;break;case this.KEYCODES.SPACE:case this.KEYCODES.ENTER:return void this.toggle(this.host);case this.KEYCODES.TAB:this.toggle(this.host)}e[o]&&e[o].focus()}getSlottedItems(){const t=this.host.shadowRoot.querySelector("slot");return(t?t.assignedElements():[]).flatMap((t=>t instanceof HTMLSlotElement?t.assignedElements():t)).filter((t=>"menuitem"===t.getAttribute("role"))).flatMap((t=>Array.from(t.querySelectorAll(`& > ${M}:not(${L})`))))}render(){return e(o,{key:"68c4661d3ab9256dadbbe3243247456c090b728e","data-version":a},e("post-popovercontainer",{key:"b6cb0624239e0ed5aeadac63ffb1b1f7fb0e873e",placement:this.placement,ref:t=>this.popoverRef=t},e("div",{key:"608f677ae715eb09ed46fde9912241dc35673e06",class:"popover-container",part:"popover-container"},e("slot",{key:"83f84b7b29b4d7c9d4e0924026ca7469c1f0cfb0"}))))}get host(){return i(this)}};z.style="/*!\n * Copyright 2021 by Swiss Post, Information Technology\n */:host{display:block}post-popovercontainer{padding:var(--post-menu-padding);background-color:var(--post-menu-bg, #ffffff);border-color:var(--post-menu-bg, #ffffff)}.popover-container{display:flex;flex-direction:column}";const D=class{constructor(e){t(this,e),this.slottedButton=null,this.handleKeyDown=t=>{"ArrowUp"!==t.key&&"ArrowDown"!==t.key||(t.preventDefault(),this.handleToggle())},this.for=void 0,this.ariaExpanded=!1}validateControlFor(t=this.for){h(t,"string",'The "for" property is required and should be a string.')}get menu(){const t=this.root.getElementById(this.for);return t&&"post-menu"===t.localName?t:null}handleToggle(){const t=this.menu;t&&this.slottedButton?(this.ariaExpanded=!this.ariaExpanded,this.slottedButton.setAttribute("aria-expanded",this.ariaExpanded.toString()),t.toggle(this.host)):console.warn(`No post-menu found with ID: ${this.for}`)}componentDidLoad(){if(this.root=f(this.host),this.validateControlFor(),this.slottedButton=this.host.querySelector("button"),!this.slottedButton){const t=this.host.querySelector(".menu-trigger-webc");if(t.shadowRoot){const e=t.shadowRoot.querySelector("button");e&&(this.slottedButton=e)}}this.slottedButton?(this.slottedButton.setAttribute("aria-haspopup","menu"),this.slottedButton.addEventListener("click",(()=>{this.handleToggle()})),this.slottedButton.addEventListener("keydown",this.handleKeyDown)):console.warn("No button found within post-menu-trigger")}render(){return e(o,{key:"5bdaebd0c1f46fda5804c0e8d39ab3e714b523c5","data-version":a,"tab-index":"-1"},e("slot",{key:"ffee26535991d712f44cb1859a5976ec89ad772a"}))}get host(){return i(this)}static get watchers(){return{for:["validateControlFor"]}}};D.style=":host{display:inline-block}";const H=Math.min,j=Math.max,$=Math.round,O=Math.floor,R=t=>({x:t,y:t}),F={left:"right",right:"left",bottom:"top",top:"bottom"},P={start:"end",end:"start"};function B(t,e,o){return j(t,H(e,o))}function N(t,e){return"function"==typeof t?t(e):t}function W(t){return t.split("-")[0]}function q(t){return t.split("-")[1]}function I(t){return"x"===t?"y":"x"}function U(t){return"y"===t?"height":"width"}function V(t){return["top","bottom"].includes(W(t))?"y":"x"}function X(t){return I(V(t))}function Y(t){return t.replace(/start|end/g,(t=>P[t]))}function K(t){return t.replace(/left|right|bottom|top/g,(t=>F[t]))}function G(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function _(t){const{x:e,y:o,width:i,height:n}=t;return{width:i,height:n,top:o,left:e,right:e+i,bottom:o+n,x:e,y:o}}function J(t,e,o){let{reference:i,floating:n}=t;const a=V(e),s=X(e),r=U(s),l=W(e),c="y"===a,d=i.x+i.width/2-n.width/2,p=i.y+i.height/2-n.height/2,h=i[r]/2-n[r]/2;let u;switch(l){case"top":u={x:d,y:i.y-n.height};break;case"bottom":u={x:d,y:i.y+i.height};break;case"right":u={x:i.x+i.width,y:p};break;case"left":u={x:i.x-n.width,y:p};break;default:u={x:i.x,y:i.y}}switch(q(e)){case"start":u[s]-=h*(o&&c?-1:1);break;case"end":u[s]+=h*(o&&c?-1:1)}return u}async function Q(t,e){var o;void 0===e&&(e={});const{x:i,y:n,platform:a,rects:s,elements:r,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:p="floating",altBoundary:h=!1,padding:u=0}=N(e,t),f=G(u),g=r[h?"floating"===p?"reference":"floating":p],m=_(await a.getClippingRect({element:null==(o=await(null==a.isElement?void 0:a.isElement(g)))||o?g:g.contextElement||await(null==a.getDocumentElement?void 0:a.getDocumentElement(r.floating)),boundary:c,rootBoundary:d,strategy:l})),b="floating"===p?{...s.floating,x:i,y:n}:s.reference,v=await(null==a.getOffsetParent?void 0:a.getOffsetParent(r.floating)),w=await(null==a.isElement?void 0:a.isElement(v))&&await(null==a.getScale?void 0:a.getScale(v))||{x:1,y:1},y=_(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:r,rect:b,offsetParent:v,strategy:l}):b);return{top:(m.top-y.top+f.top)/w.y,bottom:(y.bottom-m.bottom+f.bottom)/w.y,left:(m.left-y.left+f.left)/w.x,right:(y.right-m.right+f.right)/w.x}}function Z(t){const e=H(...t.map((t=>t.left))),o=H(...t.map((t=>t.top)));return{x:e,y:o,width:j(...t.map((t=>t.right)))-e,height:j(...t.map((t=>t.bottom)))-o}}function tt(){return"undefined"!=typeof window}function et(t){return nt(t)?(t.nodeName||"").toLowerCase():"#document"}function ot(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function it(t){var e;return null==(e=(nt(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function nt(t){return!!tt()&&(t instanceof Node||t instanceof ot(t).Node)}function at(t){return!!tt()&&(t instanceof Element||t instanceof ot(t).Element)}function st(t){return!!tt()&&(t instanceof HTMLElement||t instanceof ot(t).HTMLElement)}function rt(t){return!(!tt()||"undefined"==typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof ot(t).ShadowRoot)}function lt(t){const{overflow:e,overflowX:o,overflowY:i,display:n}=ft(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+o)&&!["inline","contents"].includes(n)}function ct(t){return["table","td","th"].includes(et(t))}function dt(t){return[":popover-open",":modal"].some((e=>{try{return t.matches(e)}catch(t){return!1}}))}function pt(t){const e=ht(),o=at(t)?ft(t):t;return["transform","translate","scale","rotate","perspective"].some((t=>!!o[t]&&"none"!==o[t]))||!!o.containerType&&"normal"!==o.containerType||!e&&!!o.backdropFilter&&"none"!==o.backdropFilter||!e&&!!o.filter&&"none"!==o.filter||["transform","translate","scale","rotate","perspective","filter"].some((t=>(o.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(o.contain||"").includes(t)))}function ht(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function ut(t){return["html","body","#document"].includes(et(t))}function ft(t){return ot(t).getComputedStyle(t)}function gt(t){return at(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function mt(t){if("html"===et(t))return t;const e=t.assignedSlot||t.parentNode||rt(t)&&t.host||it(t);return rt(e)?e.host:e}function bt(t){const e=mt(t);return ut(e)?t.ownerDocument?t.ownerDocument.body:t.body:st(e)&<(e)?e:bt(e)}function vt(t,e,o){var i;void 0===e&&(e=[]),void 0===o&&(o=!0);const n=bt(t),a=n===(null==(i=t.ownerDocument)?void 0:i.body),s=ot(n);if(a){const t=wt(s);return e.concat(s,s.visualViewport||[],lt(n)?n:[],t&&o?vt(t):[])}return e.concat(n,vt(n,[],o))}function wt(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function yt(t){const e=ft(t);let o=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const n=st(t),a=n?t.offsetWidth:o,s=n?t.offsetHeight:i,r=$(o)!==a||$(i)!==s;return r&&(o=a,i=s),{width:o,height:i,$:r}}function xt(t){return at(t)?t:t.contextElement}function kt(t){const e=xt(t);if(!st(e))return R(1);const o=e.getBoundingClientRect(),{width:i,height:n,$:a}=yt(e);let s=(a?$(o.width):o.width)/i,r=(a?$(o.height):o.height)/n;return s&&Number.isFinite(s)||(s=1),r&&Number.isFinite(r)||(r=1),{x:s,y:r}}const Tt=R(0);function Et(t){const e=ot(t);return ht()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:Tt}function Ct(t,e,o,i){void 0===e&&(e=!1),void 0===o&&(o=!1);const n=t.getBoundingClientRect(),a=xt(t);let s=R(1);e&&(i?at(i)&&(s=kt(i)):s=kt(t));const r=function(t,e,o){return void 0===e&&(e=!1),!(!o||e&&o!==ot(t))&&e}(a,o,i)?Et(a):R(0);let l=(n.left+r.x)/s.x,c=(n.top+r.y)/s.y,d=n.width/s.x,p=n.height/s.y;if(a){const t=ot(a),e=i&&at(i)?ot(i):i;let o=t,n=wt(o);for(;n&&i&&e!==o;){const t=kt(n),e=n.getBoundingClientRect(),i=ft(n),a=e.left+(n.clientLeft+parseFloat(i.paddingLeft))*t.x,s=e.top+(n.clientTop+parseFloat(i.paddingTop))*t.y;l*=t.x,c*=t.y,d*=t.x,p*=t.y,l+=a,c+=s,o=ot(n),n=wt(o)}}return _({width:d,height:p,x:l,y:c})}function St(t,e){const o=gt(t).scrollLeft;return e?e.left+o:Ct(it(t)).left+o}function At(t,e,o){void 0===o&&(o=!1);const i=t.getBoundingClientRect();return{x:i.left+e.scrollLeft-(o?0:St(t,i)),y:i.top+e.scrollTop}}function Mt(t,e,o){let i;if("viewport"===e)i=function(t,e){const o=ot(t),i=it(t),n=o.visualViewport;let a=i.clientWidth,s=i.clientHeight,r=0,l=0;if(n){a=n.width,s=n.height;const t=ht();(!t||t&&"fixed"===e)&&(r=n.offsetLeft,l=n.offsetTop)}return{width:a,height:s,x:r,y:l}}(t,o);else if("document"===e)i=function(t){const e=it(t),o=gt(t),i=t.ownerDocument.body,n=j(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),a=j(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let s=-o.scrollLeft+St(t);const r=-o.scrollTop;return"rtl"===ft(i).direction&&(s+=j(e.clientWidth,i.clientWidth)-n),{width:n,height:a,x:s,y:r}}(it(t));else if(at(e))i=function(t,e){const o=Ct(t,!0,"fixed"===e),i=o.top+t.clientTop,n=o.left+t.clientLeft,a=st(t)?kt(t):R(1);return{width:t.clientWidth*a.x,height:t.clientHeight*a.y,x:n*a.x,y:i*a.y}}(e,o);else{const o=Et(t);i={x:e.x-o.x,y:e.y-o.y,width:e.width,height:e.height}}return _(i)}function Lt(t,e){const o=mt(t);return!(o===e||!at(o)||ut(o))&&("fixed"===ft(o).position||Lt(o,e))}function zt(t,e,o){const i=st(e),n=it(e),a="fixed"===o,s=Ct(t,!0,a,e);let r={scrollLeft:0,scrollTop:0};const l=R(0);if(i||!i&&!a)if(("body"!==et(e)||lt(n))&&(r=gt(e)),i){const t=Ct(e,!0,a,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else n&&(l.x=St(n));const c=!n||i||a?R(0):At(n,r);return{x:s.left+r.scrollLeft-l.x-c.x,y:s.top+r.scrollTop-l.y-c.y,width:s.width,height:s.height}}function Dt(t){return"static"===ft(t).position}function Ht(t,e){if(!st(t)||"fixed"===ft(t).position)return null;if(e)return e(t);let o=t.offsetParent;return it(t)===o&&(o=o.ownerDocument.body),o}function jt(t,e){const o=ot(t);if(dt(t))return o;if(!st(t)){let e=mt(t);for(;e&&!ut(e);){if(at(e)&&!Dt(e))return e;e=mt(e)}return o}let i=Ht(t,e);for(;i&&ct(i)&&Dt(i);)i=Ht(i,e);return i&&ut(i)&&Dt(i)&&!pt(i)?o:i||function(t){let e=mt(t);for(;st(e)&&!ut(e);){if(pt(e))return e;if(dt(e))return null;e=mt(e)}return null}(t)||o}const $t={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:o,offsetParent:i,strategy:n}=t;const a="fixed"===n,s=it(i),r=!!e&&dt(e.floating);if(i===s||r&&a)return o;let l={scrollLeft:0,scrollTop:0},c=R(1);const d=R(0),p=st(i);if((p||!p&&!a)&&(("body"!==et(i)||lt(s))&&(l=gt(i)),st(i))){const t=Ct(i);c=kt(i),d.x=t.x+i.clientLeft,d.y=t.y+i.clientTop}const h=!s||p||a?R(0):At(s,l,!0);return{width:o.width*c.x,height:o.height*c.y,x:o.x*c.x-l.scrollLeft*c.x+d.x+h.x,y:o.y*c.y-l.scrollTop*c.y+d.y+h.y}},getDocumentElement:it,getClippingRect:function(t){let{element:e,boundary:o,rootBoundary:i,strategy:n}=t;const a=[..."clippingAncestors"===o?dt(e)?[]:function(t,e){const o=e.get(t);if(o)return o;let i=vt(t,[],!1).filter((t=>at(t)&&"body"!==et(t))),n=null;const a="fixed"===ft(t).position;let s=a?mt(t):t;for(;at(s)&&!ut(s);){const e=ft(s),o=pt(s);o||"fixed"!==e.position||(n=null),(a?!o&&!n:!o&&"static"===e.position&&n&&["absolute","fixed"].includes(n.position)||lt(s)&&!o&&Lt(t,s))?i=i.filter((t=>t!==s)):n=e,s=mt(s)}return e.set(t,i),i}(e,this._c):[].concat(o),i],s=a.reduce(((t,o)=>{const i=Mt(e,o,n);return t.top=j(i.top,t.top),t.right=H(i.right,t.right),t.bottom=H(i.bottom,t.bottom),t.left=j(i.left,t.left),t}),Mt(e,a[0],n));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:jt,getElementRects:async function(t){const e=this.getOffsetParent||jt,o=this.getDimensions,i=await o(t.floating);return{reference:zt(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:e,height:o}=yt(t);return{width:e,height:o}},getScale:kt,isElement:at,isRTL:function(t){return"rtl"===ft(t).direction}};function Ot(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}const Rt=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var o,i;const{x:n,y:a,placement:s,middlewareData:r}=e,l=await async function(t,e){const{placement:o,platform:i,elements:n}=t,a=await(null==i.isRTL?void 0:i.isRTL(n.floating)),s=W(o),r=q(o),l="y"===V(o),c=["left","top"].includes(s)?-1:1,d=a&&l?-1:1,p=N(e,t);let{mainAxis:h,crossAxis:u,alignmentAxis:f}="number"==typeof p?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...p};return r&&"number"==typeof f&&(u="end"===r?-1*f:f),l?{x:u*d,y:h*c}:{x:h*c,y:u*d}}(e,t);return s===(null==(o=r.offset)?void 0:o.placement)&&null!=(i=r.arrow)&&i.alignmentOffset?{}:{x:n+l.x,y:a+l.y,data:{...l,placement:s}}}}},Ft=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:o,y:i,placement:n}=e,{mainAxis:a=!0,crossAxis:s=!1,limiter:r={fn:t=>{let{x:e,y:o}=t;return{x:e,y:o}}},...l}=N(t,e),c={x:o,y:i},d=await Q(e,l),p=V(W(n)),h=I(p);let u=c[h],f=c[p];a&&(u=B(u+d["y"===h?"top":"left"],u,u-d["y"===h?"bottom":"right"])),s&&(f=B(f+d["y"===p?"top":"left"],f,f-d["y"===p?"bottom":"right"]));const g=r.fn({...e,[h]:u,[p]:f});return{...g,data:{x:g.x-o,y:g.y-i}}}}},Pt=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var o,i;const{placement:n,middlewareData:a,rects:s,initialPlacement:r,platform:l,elements:c}=e,{mainAxis:d=!0,crossAxis:p=!0,fallbackPlacements:h,fallbackStrategy:u="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:g=!0,...m}=N(t,e);if(null!=(o=a.arrow)&&o.alignmentOffset)return{};const b=W(n),v=W(r)===r,w=await(null==l.isRTL?void 0:l.isRTL(c.floating)),y=h||(v||!g?[K(r)]:function(t){const e=K(t);return[Y(t),e,Y(e)]}(r));h||"none"===f||y.push(...function(t,e,o,i){const n=q(t);let a=function(t,e,o){const i=["left","right"],n=["right","left"],a=["top","bottom"],s=["bottom","top"];switch(t){case"top":case"bottom":return o?e?n:i:e?i:n;case"left":case"right":return e?a:s;default:return[]}}(W(t),"start"===o,i);return n&&(a=a.map((t=>t+"-"+n)),e&&(a=a.concat(a.map(Y)))),a}(r,g,f,w));const x=[r,...y],k=await Q(e,m),T=[];let E=(null==(i=a.flip)?void 0:i.overflows)||[];if(d&&T.push(k[b]),p){const t=function(t,e,o){void 0===o&&(o=!1);const i=q(t),n=X(t),a=U(n);let s="x"===n?i===(o?"end":"start")?"right":"left":"start"===i?"bottom":"top";return e.reference[a]>e.floating[a]&&(s=K(s)),[s,K(s)]}(n,s,w);T.push(k[t[0]],k[t[1]])}if(E=[...E,{placement:n,overflows:T}],!T.every((t=>t<=0))){var C,S;const t=((null==(C=a.flip)?void 0:C.index)||0)+1,e=x[t];if(e)return{data:{index:t,overflows:E},reset:{placement:e}};let o=null==(S=E.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:S.placement;if(!o)switch(u){case"bestFit":{var A;const t=null==(A=E.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:A[0];t&&(o=t);break}case"initialPlacement":o=r}if(n!==o)return{reset:{placement:o}}}return{}}}},Bt=function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(e){const{placement:o,rects:i,platform:n,elements:a}=e,{apply:s=(()=>{}),...r}=N(t,e),l=await Q(e,r),c=W(o),d=q(o),p="y"===V(o),{width:h,height:u}=i.floating;let f,g;"top"===c||"bottom"===c?(f=c,g=d===(await(null==n.isRTL?void 0:n.isRTL(a.floating))?"start":"end")?"left":"right"):(g=c,f="end"===d?"top":"bottom");const m=u-l[f],b=h-l[g],v=!e.middlewareData.shift;let w=m,y=b;if(p){const t=h-l.left-l.right;y=d||v?H(b,t):t}else{const t=u-l.top-l.bottom;w=d||v?H(m,t):t}if(v&&!d){const t=j(l.left,0),e=j(l.right,0),o=j(l.top,0),i=j(l.bottom,0);p?y=h-2*(0!==t||0!==e?t+e:j(l.left,l.right)):w=u-2*(0!==o||0!==i?o+i:j(l.top,l.bottom))}await s({...e,availableWidth:y,availableHeight:w});const x=await n.getDimensions(a.floating);return h!==x.width||u!==x.height?{reset:{rects:!0}}:{}}}},Nt=function(t){return void 0===t&&(t={}),{options:t,fn(e){const{x:o,y:i,placement:n,rects:a,middlewareData:s}=e,{offset:r=0,mainAxis:l=!0,crossAxis:c=!0}=N(t,e),d={x:o,y:i},p=V(n),h=I(p);let u=d[h],f=d[p];const g=N(r,e),m="number"==typeof g?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){const t="y"===h?"height":"width",e=a.reference[h]-a.floating[t]+m.mainAxis,o=a.reference[h]+a.reference[t]-m.mainAxis;u<e?u=e:u>o&&(u=o)}if(c){var b,v;const t="y"===h?"width":"height",e=["top","left"].includes(W(n)),o=a.reference[p]-a.floating[t]+(e&&(null==(b=s.offset)?void 0:b[p])||0)+(e?0:m.crossAxis),i=a.reference[p]+a.reference[t]+(e?0:(null==(v=s.offset)?void 0:v[p])||0)-(e?m.crossAxis:0);f<o?f=o:f>i&&(f=i)}return{[h]:u,[p]:f}}}};(()=>{var t=class extends Event{oldState;newState;constructor(t,{oldState:e="",newState:o="",...i}={}){super(t,i),this.oldState=String(e||""),this.newState=String(o||"")}},e=new WeakMap;function o(o,i,n){e.set(o,setTimeout((()=>{e.has(o)&&o.dispatchEvent(new t("toggle",{cancelable:!1,oldState:i,newState:n}))}),0))}var i=globalThis.ShadowRoot||function(){},n=globalThis.HTMLDialogElement||function(){},a=new WeakMap,s=new WeakMap,r=new WeakMap;function l(t){return r.get(t)||"hidden"}var c=new WeakMap;function d(t,e){return!("auto"!==t.popover&&"manual"!==t.popover||!t.isConnected||e&&"showing"!==l(t)||!e&&"hidden"!==l(t)||t instanceof n&&t.hasAttribute("open")||document.fullscreenElement===t)}function p(t){return t?Array.from(s.get(t.ownerDocument)||[]).indexOf(t)+1:0}function h(t){let e=s.get(t);for(let t of e||[]){if(t.isConnected)return t;e.delete(t)}return null}function u(t){return"function"==typeof t.getRootNode?t.getRootNode():t.parentNode?u(t.parentNode):t}function f(t){for(;t;){if(t instanceof HTMLElement&&"auto"===t.popover&&"showing"===r.get(t))return t;if((t=t.parentElement||u(t))instanceof i&&(t=t.host),t instanceof Document)return}}function g(t){return!(t.hidden||t instanceof i||(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 m=new WeakMap;function b(e){if(!d(e,!1))return;let i=e.ownerDocument;if(!e.dispatchEvent(new t("beforetoggle",{cancelable:!0,oldState:"closed",newState:"open"}))||!d(e,!1))return;let n=!1;if("auto"===e.popover){let t=e.getAttribute("popover"),o=function(t){let e=new Map,o=0,i=t.ownerDocument;for(let t of s.get(i)||[])e.set(t,o),o+=1;e.set(t,o),o+=1;let n=null;return function(t){let o=f(t);if(null===o)return null;let i=e.get(o);(null===n||e.get(n)<i)&&(n=o)}(t?.parentElement),n}(e)||i;if(y(o,!1,!0),t!==e.getAttribute("popover")||!d(e,!1))return}h(i)||(n=!0),m.delete(e);let l=i.activeElement;e.classList.add(":popover-open"),r.set(e,"showing"),a.has(i)||a.set(i,new Set),a.get(i).add(e),function(t){(function(t){if(t.shadowRoot&&!0!==t.shadowRoot.delegatesFocus)return null;let e=t;e.shadowRoot&&(e=e.shadowRoot);let o=e.querySelector("[autofocus]");if(o)return o;{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(o=e.querySelector("[autofocus]"),o)return o}}}let i=t.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_ELEMENT),n=i.currentNode;for(;n;){if(g(n))return n;n=i.nextNode()}})(t)?.focus()}(e),"auto"===e.popover&&(s.has(i)||s.set(i,new Set),s.get(i).add(e),E(c.get(e),!0)),n&&l&&"auto"===e.popover&&m.set(e,l),o(e,"closed","open")}function v(e,i=!1,n=!1){if(!d(e,!0))return;let l=e.ownerDocument;if("auto"===e.popover&&(y(e,i,n),!d(e,!0))||(E(c.get(e),!1),c.delete(e),n&&(e.dispatchEvent(new t("beforetoggle",{oldState:"open",newState:"closed"})),!d(e,!0))))return;a.get(l)?.delete(e),s.get(l)?.delete(e),e.classList.remove(":popover-open"),r.set(e,"hidden"),n&&o(e,"open","closed");let p=m.get(e);p&&(m.delete(e),i&&p.focus())}function w(t,e=!1,o=!1){let i=h(t);for(;i;)v(i,e,o),i=h(t)}function y(t,e,o){let i=t.ownerDocument||t;if(t instanceof Document)return w(i,e,o);let n=null,a=!1;for(let e of s.get(i)||[])if(e===t)a=!0;else if(a){n=e;break}if(!a)return w(i,e,o);for(;n&&"showing"===l(n)&&s.get(i)?.size;)v(n,e,o)}var x=new WeakMap;function k(t){if(!t.isTrusted)return;let e=t.composedPath()[0];if(!e)return;let o=e.ownerDocument;if(!h(o))return;let n=function(t){let e=f(t),o=function(t){for(;t;){let e=t.popoverTargetElement;if(e instanceof HTMLElement)return e;if((t=t.parentElement||u(t))instanceof i&&(t=t.host),t instanceof Document)return}}(t);return p(e)>p(o)?e:o}(e);if(n&&"pointerdown"===t.type)x.set(o,n);else if("pointerup"===t.type){let t=x.get(o)===n;x.delete(o),t&&y(n||o,!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 o=t.popoverTargetElement;if(o instanceof HTMLElement&&"auto"===o.popover)t.setAttribute("aria-expanded",String(e));else{let e=T.get(t);e?t.setAttribute("aria-expanded",e):t.removeAttribute("aria-expanded")}}var C=globalThis.ShadowRoot||function(){};function S(t,e,o){let i=t[e];Object.defineProperty(t,e,{value(t){return i.call(this,o(t))}})}var A=/(^|[^\\]):popover-open\b/g,M="\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",L=null;function z(t){if(null===L)try{(L=new CSSStyleSheet).replaceSync(M)}catch{L=!1}if(!1===L){let e=document.createElement("style");e.textContent=M,t instanceof Document?t.head.prepend(e):t.prepend(e)}else t.adoptedStyleSheets=[L,...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(A,"$1.\\:popover-open")),t}window.ToggleEvent=window.ToggleEvent||t,S(Document.prototype,"querySelector",e),S(Document.prototype,"querySelectorAll",e),S(Element.prototype,"querySelector",e),S(Element.prototype,"querySelectorAll",e),S(Element.prototype,"matches",e),S(Element.prototype,"closest",e),S(DocumentFragment.prototype,"querySelectorAll",e),S(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(){b(this)}},hidePopover:{enumerable:!0,configurable:!0,value(){v(this,!0,!0)}},togglePopover:{enumerable:!0,configurable:!0,value(t){"showing"===r.get(this)&&void 0===t||!1===t?v(this,!0,!0):(void 0===t||!0===t)&&b(this)}}});let o=Element.prototype.attachShadow;o&&Object.defineProperties(Element.prototype,{attachShadow:{enumerable:!0,configurable:!0,writable:!0,value(t){let e=o.call(this,t);return z(e),e}}});let i=HTMLElement.prototype.attachInternals;i&&Object.defineProperties(HTMLElement.prototype,{attachInternals:{enumerable:!0,configurable:!0,writable:!0,value(){let t=i.call(this);return t.shadowRoot&&z(t.shadowRoot),t}}});let n=new WeakMap;function a(t){Object.defineProperties(t.prototype,{popoverTargetElement:{enumerable:!0,configurable:!0,set(t){if(null===t)this.removeAttribute("popovertarget"),n.delete(this);else{if(!(t instanceof Element))throw new TypeError("popoverTargetElement must be an element or null");this.setAttribute("popovertarget",""),n.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=n.get(this);if(t&&t.isConnected)return t;if(t&&!t.isConnected)return n.delete(this),null;let e=u(this),o=this.getAttribute("popovertarget");return(e instanceof Document||e instanceof C)&&o&&e.getElementById(o)||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)}}})}a(HTMLButtonElement),a(HTMLInputElement);var s;(s=document).addEventListener("click",(t=>{if(!t.isTrusted)return;let e=t.composedPath()[0];if(!(e instanceof Element)||e?.shadowRoot)return;let o=u(e);if(!(o instanceof C||o instanceof Document))return;let i=e.closest("[popovertargetaction],[popovertarget]");return i?(function(t){let e=t.popoverTargetElement;if(!(e instanceof HTMLElement))return;let o=l(e);"show"===t.popoverTargetAction&&"showing"===o||"hide"===t.popoverTargetAction&&"hidden"===o||("showing"===o?v(e,!0,!0):d(e,!1)&&(c.set(e,t),b(e)))}(i),void t.preventDefault()):void 0})),s.addEventListener("keydown",(t=>{let e=t.key,o=t.target;!t.defaultPrevented&&o&&("Escape"===e||"Esc"===e)&&y(o.ownerDocument,!0,!0)})),s.addEventListener("pointerdown",k),s.addEventListener("pointerup",k),z(document)}()})();const Wt={top:"bottom",right:"left",bottom:"top",left:"right"},qt=class{constructor(e){t(this,e),this.postToggle=n(this,"postToggle",7),this.placement="top",this.edgeGap=8,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,o,i){void 0===i&&(i={});const{ancestorScroll:n=!0,ancestorResize:a=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:r="function"==typeof IntersectionObserver,animationFrame:l=!1}=i,c=xt(t),d=n||a?[...c?vt(c):[],...vt(e)]:[];d.forEach((t=>{n&&t.addEventListener("scroll",o,{passive:!0}),a&&t.addEventListener("resize",o)}));const p=c&&r?function(t,e){let o,i=null;const n=it(t);function a(){var t;clearTimeout(o),null==(t=i)||t.disconnect(),i=null}return function s(r,l){void 0===r&&(r=!1),void 0===l&&(l=1),a();const c=t.getBoundingClientRect(),{left:d,top:p,width:h,height:u}=c;if(r||e(),!h||!u)return;const f={rootMargin:-O(p)+"px "+-O(n.clientWidth-(d+h))+"px "+-O(n.clientHeight-(p+u))+"px "+-O(d)+"px",threshold:j(0,H(1,l))||1};let g=!0;function m(e){const i=e[0].intersectionRatio;if(i!==l){if(!g)return s();i?s(!1,i):o=setTimeout((()=>{s(!1,1e-7)}),1e3)}1!==i||Ot(c,t.getBoundingClientRect())||s(),g=!1}try{i=new IntersectionObserver(m,{...f,root:n.ownerDocument})}catch(t){i=new IntersectionObserver(m,f)}i.observe(t)}(!0),a}(c,o):null;let h,u=-1,f=null;s&&(f=new ResizeObserver((t=>{let[i]=t;i&&i.target===c&&f&&(f.unobserve(e),cancelAnimationFrame(u),u=requestAnimationFrame((()=>{var t;null==(t=f)||t.observe(e)}))),o()})),c&&!l&&f.observe(c),f.observe(e));let g=l?Ct(t):null;return l&&function e(){const i=Ct(t);g&&!Ot(g,i)&&o(),g=i,h=requestAnimationFrame(e)}(),o(),()=>{var t;d.forEach((t=>{n&&t.removeEventListener("scroll",o),a&&t.removeEventListener("resize",o)})),null==p||p(),null==(t=f)||t.disconnect(),f=null,l&&cancelAnimationFrame(h)}}(this.eventTarget,this.host,this.calculatePosition.bind(this))}async calculatePosition(){const t=this.edgeGap,e=[Pt(),(void 0===o&&(o={}),{name:"inline",options:o,async fn(t){const{placement:e,elements:i,rects:n,platform:a,strategy:s}=t,{padding:r=2,x:l,y:c}=N(o,t),d=Array.from(await(null==a.getClientRects?void 0:a.getClientRects(i.reference))||[]),p=function(t){const e=t.slice().sort(((t,e)=>t.y-e.y)),o=[];let i=null;for(let t=0;t<e.length;t++){const n=e[t];!i||n.y-i.y>i.height/2?o.push([n]):o[o.length-1].push(n),i=n}return o.map((t=>_(Z(t))))}(d),h=_(Z(d)),u=G(r),f=await a.getElementRects({reference:{getBoundingClientRect:function(){if(2===p.length&&p[0].left>p[1].right&&null!=l&&null!=c)return p.find((t=>l>t.left-u.left&&l<t.right+u.right&&c>t.top-u.top&&c<t.bottom+u.bottom))||h;if(p.length>=2){if("y"===V(e)){const t=p[0],o=p[p.length-1],i="top"===W(e),n=t.top,a=o.bottom,s=i?t.left:o.left,r=i?t.right:o.right;return{top:n,bottom:a,left:s,right:r,width:r-s,height:a-n,x:s,y:n}}const t="left"===W(e),o=j(...p.map((t=>t.right))),i=H(...p.map((t=>t.left))),n=p.filter((e=>t?e.left===i:e.right===o)),a=n[0].top,s=n[n.length-1].bottom;return{top:a,bottom:s,left:i,right:o,width:o-i,height:s-a,x:i,y:a}}return h}},floating:i.floating,strategy:s});return n.reference.x!==f.reference.x||n.reference.y!==f.reference.y||n.reference.width!==f.reference.width||n.reference.height!==f.reference.height?{reset:{rects:f}}:{}}}),Ft({padding:t,limiter:Nt({offset:32})}),Bt({apply({availableWidth:e,elements:o}){Object.assign(o.floating.style,{maxWidth:e-2*t+"px"})}}),Rt(this.arrow?t+4:t)];var o;this.arrow&&e.push((t=>({name:"arrow",options:t,async fn(e){const{x:o,y:i,placement:n,rects:a,platform:s,elements:r,middlewareData:l}=e,{element:c,padding:d=0}=N(t,e)||{};if(null==c)return{};const p=G(d),h={x:o,y:i},u=X(n),f=U(u),g=await s.getDimensions(c),m="y"===u,b=m?"top":"left",v=m?"bottom":"right",w=m?"clientHeight":"clientWidth",y=a.reference[f]+a.reference[u]-h[u]-a.floating[f],x=h[u]-a.reference[u],k=await(null==s.getOffsetParent?void 0:s.getOffsetParent(c));let T=k?k[w]:0;T&&await(null==s.isElement?void 0:s.isElement(k))||(T=r.floating[w]||a.floating[f]);const E=y/2-x/2,C=T/2-g[f]/2-1,S=H(p[b],C),A=H(p[v],C),M=S,L=T-g[f]-A,z=T/2-g[f]/2+E,D=B(M,z,L),j=!l.arrow&&null!=q(n)&&z!==D&&a.reference[f]/2-(z<M?S:A)-g[f]/2<0,$=j?z<M?z-M:z-L:0;return{[u]:h[u]+$,data:{[u]:D,centerOffset:z-D-$,...j&&{alignmentOffset:$}},reset:j}}}))({element:this.arrowRef,padding:t}));const{x:i,y:n,middlewareData:a,placement:s}=await((t,e,o)=>{const i=new Map,n={platform:$t,...o},a={...n.platform,_c:i};return(async(t,e,o)=>{const{placement:i="bottom",strategy:n="absolute",middleware:a=[],platform:s}=o,r=a.filter(Boolean),l=await(null==s.isRTL?void 0:s.isRTL(e));let c=await s.getElementRects({reference:t,floating:e,strategy:n}),{x:d,y:p}=J(c,i,l),h=i,u={},f=0;for(let o=0;o<r.length;o++){const{name:a,fn:g}=r[o],{x:m,y:b,data:v,reset:w}=await g({x:d,y:p,initialPlacement:i,placement:h,strategy:n,middlewareData:u,rects:c,platform:s,elements:{reference:t,floating:e}});d=null!=m?m:d,p=null!=b?b:p,u={...u,[a]:{...u[a],...v}},w&&f<=50&&(f++,"object"==typeof w&&(w.placement&&(h=w.placement),w.rects&&(c=!0===w.rects?await s.getElementRects({reference:t,floating:e,strategy:n}):w.rects),({x:d,y:p}=J(c,h,l))),o=-1)}return{x:d,y:p,placement:h,strategy:n,middlewareData:u}})(t,e,{...n,platform:a})})(this.eventTarget,this.host,{placement:this.placement||"top",strategy:"fixed",middleware:e});if(this.host.style.left=`${i}px`,this.host.style.top=`${n}px`,this.arrow){const t=s.split("-")[0],{x:e,y:o}=a.arrow,i=Wt[t],n=2;Object.assign(this.arrowRef.style,{top:o?`${o}px`:"",left:e?`${e}px`:"",[i]:-this.arrowRef.offsetWidth/2-n+"px"}),this.arrowRef.classList.remove(...Object.values(Wt)),this.arrowRef.classList.add(i)}}render(){return e(o,{key:"844302edb3852f99229d4f4ccacf82cd78588435","data-version":a},this.arrow&&e("span",{key:"ae293d24ef24282bfcaeb7f545653a563e5246d5",class:"arrow",ref:t=>{this.arrowRef=t}}),e("slot",{key:"61dd3072a5217099028e3dd4b22fa845ea2f5970"}))}get host(){return i(this)}};qt.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);background:var(--post-current-palette-bg);color:var(--post-current-palette-fg);position:fixed;z-index:1060;width:max-content;margin:0;padding:0;box-sizing:border-box;border:2px solid rgba(0,0,0,0);border-radius:4px;overflow:visible}:where(post-popovercontainer)[tooltip]{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}: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)}";const It=class{constructor(e){t(this,e),this.handleClick=()=>{this.toggled=!this.toggled},this.handleKeydown=t=>{"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),this.host.click())},this.toggled=!1}validateToggled(t=this.toggled){h(t,"boolean",'The "toggled" property of the post-togglebutton must be a boolean.')}componentWillLoad(){this.validateToggled(),this.host.addEventListener("click",(()=>this.handleClick())),this.host.addEventListener("keydown",(t=>this.handleKeydown(t)))}render(){return e(o,{key:"461f72ebada75a99921b7a166f67f2547aa6465e","data-version":a,role:"button",tabindex:"0","aria-pressed":this.toggled.toString()},e("slot",{key:"cd5f4cc4df687cceacb3ea6c125b7b62f01b2712"}))}get host(){return i(this)}static get watchers(){return{toggled:["validateToggled"]}}};It.style=":host{cursor:pointer;outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}:host(:focus-visible){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host(:focus-visible){outline-color:Highlight !important}}:host([aria-pressed=true]) ::slotted([data-showwhen=untoggled]){display:none}:host([aria-pressed=false]) ::slotted([data-showwhen=toggled]){display:none}";export{g as P,m as a,v as b,w as c,x as d,k as e,T as f,E as g,C as h,S as i,A as j,z as k,D as l,qt as m,It as n}
|
|
1
|
+
import{r as t,h as e,H as o,g as i,c as n}from"./p-0e216cc4.js";import{v as a}from"./p-82d48128.js";import{s,a as r}from"./p-515e0f96.js";import{c as l,d as c,b as d}from"./p-5467b223.js";import{c as p}from"./p-b095519d.js";import{c as h}from"./p-4a3f67ab.js";import{n as u}from"./p-5959f2bd.js";import{g as f}from"./p-fc91cbc2.js";const g=class{constructor(e){t(this,e)}render(){return e(o,{key:"cb5be35247053b1227c32f7949baca51ccc31081","data-version":a},e("button",{key:"ece4ca00fedfd0ee76a971ca2a9cf0cf9a1e7f0c",class:"btn btn-icon-close",type:"button"},e("post-icon",{key:"c14a15906a1f229d642c2a8aea456f7a4acc5619","aria-hidden":"true",name:"closex"}),e("span",{key:"94757c5e870f57ec8ba0c52fc5bb2a1f6eed91c2",class:"visually-hidden"},e("slot",{key:"a76c388cceca0b7d4da01b8e737e65f24d11df23"}))))}get host(){return i(this)}},m=class{constructor(e){t(this,e),this.scrollParent=null,this.throttledScroll=()=>this.handleScrollEvent(),this.throttledResize=function(t,e){var o,i={},n=i.noTrailing,a=void 0!==n&&n,s=i.noLeading,r=void 0!==s&&s,l=i.debounceMode,c=void 0===l?void 0:l,d=!1,p=0;function h(){o&&clearTimeout(o)}function u(){for(var t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];var s=this,l=Date.now()-p;function u(){p=Date.now(),e.apply(s,i)}function f(){o=void 0}d||(r||!c||o||u(),h(),void 0===c&&l>50?r?(p=Date.now(),a||(o=setTimeout(c?f:u,50))):u():!0!==a&&(o=setTimeout(c?f:u,void 0===c?50-l:50)))}return u.cancel=function(t){var e=(t||{}).upcomingOnly,o=void 0!==e&&e;h(),d=!o},u}(0,(()=>this.handleResize())),this.device=null,this.mobileMenuExtended=!1}componentWillRender(){this.scrollParent=this.getScrollParent(this.host),this.scrollParent.addEventListener("scroll",this.throttledScroll,{passive:!0}),window.addEventListener("resize",this.throttledResize,{passive:!0}),this.handleResize(),this.handleScrollEvent()}frozeBody(t){document.body.style.overflow=t?"hidden":""}async toggleMobileMenu(){"desktop"!==this.device&&(this.mobileMenuAnimation=this.mobileMenuExtended?s(this.mobileMenu):r(this.mobileMenu),this.host.querySelector("post-togglebutton").toggled=!this.mobileMenuExtended,this.mobileMenuExtended&&await this.mobileMenuAnimation.finished,this.mobileMenuExtended=!this.mobileMenuExtended,this.mobileMenuExtended||await this.mobileMenuAnimation.finished)}handleScrollEvent(){const t=Math.max(0,this.scrollParent instanceof Document?this.scrollParent.documentElement.scrollTop:this.scrollParent.scrollTop);this.host.style.setProperty("--header-scroll-top",`${t}px`)}getScrollParent(t){let e=t.parentElement;for(;e;){if("BODY"===e.nodeName)return document;if(this.isScrollable(e))return e;e=e.parentElement}return document}isScrollable(t){if(!(t instanceof HTMLElement||t instanceof SVGElement))return!1;const e=getComputedStyle(t);return["overflow","overflow-x","overflow-y"].some((t=>{const o=e.getPropertyValue(t);return"auto"===o||"scroll"===o}))}handleResize(){var t;const e=this.device;let o;const i=null===window||void 0===window?void 0:window.innerWidth;o=i>=1024?"desktop":i>=600?"tablet":"mobile","desktop"===o&&this.mobileMenuExtended&&(this.toggleMobileMenu(),this.mobileMenuAnimation.finish());const n=null===(t=this.host.shadowRoot.querySelector(".title-header"))||void 0===t?void 0:t.clientHeight;this.host.style.setProperty("--main-header-height",`${n}px`),o!==e&&(this.device=o,window.requestAnimationFrame((()=>{this.switchLanguageSwitchMode()})))}switchLanguageSwitchMode(){var t;const e="desktop"===this.device?"menu":"list";null===(t=this.host.querySelector("post-language-switch"))||void 0===t||t.setAttribute("variant",e)}render(){const t=["navigation"];return this.mobileMenuExtended&&t.push("extended"),e(o,{key:"008e84568ce41249365d93169b2f94cd988601d0",version:a},e("div",{key:"f6415c30b3bfacd01a65166c7f0a3afc37676cc8",class:"global-header"},e("div",{key:"dc1465a3a68ce8c66c7da644d992c37d8d09ccc4",class:"global-sub"},e("div",{key:"490b4afe502465bc20ccc41149533929987f2fab",class:"logo"},e("slot",{key:"28ee1cdb2804f6315fffa2c319a1e2fa1e54ad08",name:"post-logo"}))),e("div",{key:"777d715f4718bb6738665f3d65c9ee4729a977de",class:"global-sub"},"desktop"===this.device&&e("slot",{key:"c1ddbfdecc96fe3a6efb930d8475ee880059d372",name:"meta-navigation"}),e("slot",{key:"df1ccf5c36ea4a05812c3983961389c42c42ddb9",name:"global-controls"}),"desktop"===this.device&&e("slot",{key:"ace2dda9a3f3d898934c7d47c84e2475fb555e5d",name:"post-language-switch"}),e("div",{key:"3e8d94d9534d5daaa2f8e6ca5cc0833e78a49224",onClick:()=>this.toggleMobileMenu(),class:"mobile-toggle"},e("slot",{key:"58e3637f103411f5e577dba931caf884f46a6e47",name:"post-togglebutton"})))),e("div",{key:"f90ff065ed795fc780c90768e5c0ab5a431bec8d",class:"title-header "+(this.mobileMenuExtended?"title-header-mobile-extended":"")},e("slot",{key:"a1aaaf02da073b9e7de82e84c93745afa6a8c4e9",name:"title"}),e("div",{key:"84ae2f8b846536130967362de160e054049c8489",class:"global-sub"},e("slot",{key:"8a845cd7f87b3a2c2fba7ffc1ace31e87f6329d9",name:"local-controls"}),e("slot",{key:"f3822b883fc88436a84d3ca7f840946af992417e"}))),e("div",{key:"8e0390c6c2b9a71488eea73c9207d0c336c9b75d",ref:t=>this.mobileMenu=t,class:t.join(" ")},e("slot",{key:"5fc2db060eb962c313fc4c9ab67032e990ff54c6",name:"post-mainnavigation"}),("mobile"===this.device||"tablet"===this.device)&&e("div",{key:"7b9147dcf5de01865785d417c8d1966efb891ace",class:"navigation-footer"},e("slot",{key:"6e163a7dad7b0b0fc02493cd15152179d4242980",name:"meta-navigation"}),e("slot",{key:"e8fd19eeed8a99d69ccd8635e36cd0256ed4424b",name:"post-language-switch"}))))}get host(){return i(this)}static get watchers(){return{mobileMenuExtended:["frozeBody"]}}};m.style="*,::before,::after{box-sizing:border-box}:host{--global-header-height:72px;--global-header-minimal-height:24px;--main-header-height:56px;--main-header-min-height:56px;--header-height:calc(var(--global-header-height) + var(--main-header-height))}@media screen and (min-width: 1024px){:host{display:block;position:sticky;inset-inline:0;inset-block-start:calc(-1*(var(--global-header-height) + var(--main-header-height) - var(--global-header-minimal-height)));box-shadow:var(--post-core-elevation-3)}}@media screen and (max-width: 1023.99px){:host{--global-header-height:64px;--main-header-height:48px;--main-header-min-height:48px}}.d-flex{display:flex}.space-between{justify-content:space-between}.global-header{background-color:#fc0;display:flex;justify-content:space-between;align-items:center;position:sticky;padding-inline:var(--post-core-dimension-4);height:var(--global-header-height);z-index:1}@media screen and (max-width: 1023.99px){.global-header{inset-block-start:0}}@media screen and (min-width: 1024px){.global-header{padding-inline-end:var(--post-core-dimension-12);top:calc((var(--global-header-height) - var(--global-header-minimal-height))*-1)}}slot[name=post-logo]{align-self:flex-end}.global-sub{display:flex;align-items:center;gap:var(--post-core-dimension-24)}.align-end{align-items:flex-end}.logo{flex:1 0 auto;height:var(--global-header-height);width:var(--global-header-height);min-height:var(--global-header-minimal-height);align-self:flex-end}@media screen and (min-width: 1024px){.logo{height:calc(var(--global-header-height) - var(--header-scroll-top))}}::slotted(ul){margin-block:0;list-style:none;display:flex;padding-left:0;gap:1rem;flex-shrink:0 !important}.title-header{display:flex;align-items:center;gap:var(--post-core-dimension-8);min-height:var(--main-header-min-height);justify-content:space-between;background:var(--post-core-color-brand-white)}@media screen and (min-width: 1024px){.title-header{padding:var(--post-core-dimension-18) var(--post-core-dimension-16) var(--post-core-dimension-4) var(--post-core-dimension-12)}}@media screen and (max-width: 1023.99px){.title-header{position:sticky;z-index:1;inset-block-start:var(--global-header-height);padding-inline:var(--post-core-dimension-8) var(--post-core-dimension-16);padding-block:var(--post-core-dimension-9);flex-wrap:wrap}.title-header.title-header-mobile-extended{border-bottom:1px solid var(--post-core-color-sandgrey-012)}}:host(:not(:has([slot=title]))) .title-header{display:none}::slotted(h1){margin:0 !important;flex-shrink:10}@media screen and (min-width: 1024px){::slotted(h1){font-size:var(--post-core-font-size-28) !important}}@media screen and (max-width: 1023.99px){::slotted(h1){font-size:var(--post-core-font-size-20) !important;max-width:calc(100vw - var(--post-core-dimension-8) - var(--post-core-dimension-16))}}@media screen and (min-width: 1024px){.mobile-toggle{display:none}}.navigation{background:var(--post-core-color-brand-white)}@media screen and (min-width: 1024px){.navigation{position:sticky;z-index:1;inset-block-start:var(--global-header-minimal-height)}}@media screen and (max-width: 1023.99px){.navigation{position:fixed;inset-inline:0;inset-block-end:calc(100vh - var(--header-height));box-shadow:var(--post-core-elevation-3);min-height:var(--post-core-dimension-10);max-height:calc(100vh - var(--header-height));overflow:auto}::slotted(post-mainnavigation),.navigation-footer{display:none;flex-direction:column;padding-block:var(--post-core-dimension-16) var(--post-core-dimension-24);padding-inline:var(--post-core-dimension-32)}.navigation.extended ::slotted(post-mainnavigation),.navigation.extended .navigation-footer{display:flex}::slotted(post-mainnavigation){background-color:var(--post-core-color-sandgrey-002);gap:var(--post-core-dimension-32)}.navigation-footer{background-color:var(--post-core-color-sandgrey-006);gap:var(--post-core-dimension-24)}}";const b=["cylon","cylon-vertical","spin","spin-reverse","fade","throb"],v=class{constructor(e){t(this,e),this.animation=null,this.base=null,this.flipH=!1,this.flipV=!1,this.name=void 0,this.rotate=null,this.scale=null}validateAnimation(t=this.animation){void 0!==t&&l(t,b,`The post-icon "animation" prop requires one of the following values: ${b.join(", ")}.`)}validateBase(t=this.base){c(t,"string",'The post-icon "base" prop should be a string.')}validateFlipH(t=this.flipH){c(t,"boolean",'The post-icon "flipH" prop should be a boolean.')}validateFlipV(t=this.flipV){c(t,"boolean",'The post-icon "flipV" prop should be a boolean.')}validateName(t=this.name){p(t,'The post-icon "name" prop is required!.'),h(t,"string",'The post-icon "name" prop should be a string.')}validateRotate(t=this.rotate){c(t,"number",'The post-icon "rotate" prop should be a number.')}validateScale(t=this.scale){c(t,"number",'The post-icon "scale" prop should be a number.')}getPath(){var t,e,o,i,n,a;const s=null!==(e=null===(t=document.head.querySelector('meta[name="design-system-settings"][data-post-icon-base]'))||void 0===t?void 0:t.getAttribute("data-post-icon-base"))&&void 0!==e?e:null,r=null===(o=document.getElementsByTagName("base")[0])||void 0===o?void 0:o.href,l=`${null!==(a=null!==(n=null!==(i=this.base)&&void 0!==i?i:s)&&void 0!==n?n:r)&&void 0!==a?a:"https://unpkg.com/@swisspost/design-system-icons/public/post-icons"}/`.replace(/\/\/$/,"/");return new URL(`${l}${this.name}.svg`,window.location.origin).toString()}getStyles(){const t=this.getPath();return Object.entries({"-webkit-mask-image":`url(${t})`,"mask-image":`url('${t}')`,transform:(this.scale&&!isNaN(Number(this.scale))?"scale("+this.scale+")":"")+(this.rotate&&!isNaN(Number(this.rotate))?" rotate("+this.rotate+"deg)":"")}).filter((([t,e])=>null!==e)).reduce(((t,[e,o])=>Object.assign(t,{[e]:o})),{})}componentDidLoad(){this.validateBase(),this.validateName(),this.validateFlipH(),this.validateFlipV(),this.validateScale(),this.validateRotate(),this.validateAnimation()}render(){return e(o,{key:"70e13e357929d2601de3b61f46f9a717ba491fd5","data-version":a},e("span",{key:"a0c40175bfa6bd06f3498dc056685c8396b6e706",style:this.getStyles()}))}get host(){return i(this)}static get watchers(){return{animation:["validateAnimation"],base:["validateBase"],flipH:["validateFlipH"],flipV:["validateFlipV"],name:["validateName"],rotate:["validateRotate"],scale:["validateScale"]}}};v.style=":host{display:inline-block;width:1em;height:1em;vertical-align:-0.15em}span{display:block;width:100%;height:100%;fill:currentColor;forced-color-adjust:preserve-parent-color;background-color:currentColor;-webkit-mask-position:center center;mask-position:center center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100%;mask-size:100%}:host([flip-h]:not([flip-h=false])){scale:-1 1}:host([flip-v]:not([flip-v=false])){scale:1 -1}:host([flip-h][flip-v]:not([flip-h=false],[flip-v=false])){scale:-1}:host([animation]){transform-origin:center}:host([animation=cylon]){animation:icon-animation-cylon .75s ease-in-out infinite alternate}:host([animation=cylon-vertical]){animation:icon-animation-cylon-vertical .75s ease-in-out infinite alternate}:host([animation=spin]){animation:icon-animation-spin 2s linear infinite normal}:host([animation=spin-reverse]){animation:icon-animation-spin 2s linear infinite reverse}:host([animation=fade]){animation:icon-animation-fade .75s ease-in-out infinite alternate}:host([animation=throb]){animation:icon-animation-throb .75s ease-in-out infinite alternate}@keyframes icon-animation-cylon{from{transform:translateX(-25%)}to{transform:translateX(25%)}}@keyframes icon-animation-cylon-vertical{from{transform:translateY(25%)}to{transform:translateY(-25%)}}@keyframes icon-animation-fade{from{opacity:.1}to{opacity:1}}@keyframes icon-animation-spin{from{transform:rotate(0deg)}to{transform:rotate(359deg)}}@keyframes icon-animation-throb{from{opacity:.5;transform:scale(0.5)}to{opacity:1;transform:scale(1)}}";const w=class{constructor(e){t(this,e),this.postChange=n(this,"postChange",7),this.code=void 0,this.active=void 0,this.variant=void 0,this.name=void 0,this.url=void 0}validateCode(t=this.code){h(t,"string",'The "code" property of the post-language-option component must be a string.')}validateActiveProp(t=this.active){c(t,"boolean",'The "active" property of the post-language-option component must be a boolean value.')}validateName(t=this.name){c(t,"string",'The "name" property of the post-language-option component must be a string.')}validateUrl(t=this.url){c(t,"string",'The "url" property of the post-language-option component must be a valid URL.')}componentDidLoad(){if(this.validateCode(),this.validateActiveProp(),this.validateName(),this.validateUrl(),!this.name&&this.isNameRequired())throw new Error('The "name" property of the post-language-option component is required when the full language name is not displayed.')}async select(){this.active=!0,this.emitChange()}emitChange(){this.postChange.emit(this.code)}isNameRequired(){return this.host.textContent.toLowerCase()===this.code.toLowerCase()}render(){const t=this.code.toLowerCase(),i=t=>{"Enter"!==t.key&&" "!==t.key||this.emitChange()};return e(o,{key:"6a7c4af5ab0a953cc2c70621efc6fff905638900","data-version":a,role:this.variant?`${this.variant}item`:null},this.url?e("a",{"aria-current":this.active?"page":void 0,"aria-label":this.name,href:this.url,hrefLang:t,lang:t,onClick:()=>this.emitChange(),onKeyDown:i},e("slot",null)):e("button",{"aria-current":this.active?"true":void 0,"aria-label":this.name,lang:t,onClick:()=>this.emitChange(),onKeyDown:i},e("slot",null)))}get host(){return i(this)}static get watchers(){return{code:["validateCode"],active:["validateActiveProp"],name:["validateName"],url:["validateUrl"]}}};w.style='/*!\n * Copyright 2021 by Swiss Post, Information Technology\n */post-language-option{display:inline-block}post-language-option button{padding:0;overflow:visible;border:0;background:none;color:inherit;font:inherit;-webkit-user-select:none;user-select:none;appearance:button}post-language-option a{color:inherit;text-decoration:none}post-language-option :is(a,button){cursor:pointer;display:flex;align-items:center;justify-content:center;height:100%;width:100%;padding:var(--post-language-option-padding);border-radius:2px}post-language-option :is(a,button){outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}post-language-option :is(a,button):is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){post-language-option :is(a,button):is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){post-language-option :is(a,button):is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){post-language-option :is(a,button):is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}post-language-option:where([variant=list]) :is(a,button){width:40px;height:40px}post-language-option:where([variant=list]) :is(a,button):hover{color:#504f4b}post-language-option:where([variant=list]) :is(a,button)[aria-current=true],post-language-option:where([variant=list]) :is(a,button)[aria-current=page]{background-color:#050400;color:#fff}post-language-option:where([variant=list]) :is(a,button)[aria-current=true]:hover,post-language-option:where([variant=list]) :is(a,button)[aria-current=page]:hover{background-color:#504f4b}post-language-option:where([variant=menu]){width:100%}post-language-option:where([variant=menu]) :is(a,button){padding-block:13px;padding-inline:24px;box-sizing:border-box;position:relative;left:-1px;width:calc(100% + 2px)}post-language-option:where([variant=menu]) :is(a,button)[aria-current=true]::after,post-language-option:where([variant=menu]) :is(a,button)[aria-current=page]::after{content:"";left:0;height:3px;background-color:#050400;width:100%;display:block;position:absolute;bottom:3px}post-language-option:where([variant=menu]) :is(a,button)[aria-current=true]:hover::after,post-language-option:where([variant=menu]) :is(a,button)[aria-current=page]:hover::after{background-color:#504f4b}post-language-option:where([variant=menu]) :is(a,button):hover{color:#504f4b}';const y=["list","menu"],x=class{constructor(e){t(this,e),this.menuId=`p${u(11)}`,this.caption=void 0,this.description=void 0,this.variant="list",this.activeLang=void 0}validateCaption(t=this.caption){h(t,"string",'The "caption" property of the post-language-switch component must be a string.')}validateDescription(t=this.description){h(t,"string",'The "description" property of the post-language-switch component must be a string.')}validateVariant(t=this.variant){l(t,y,`The "variant" property of the post-language-switch component must be: ${y.join(", ")}`)}connectedCallback(){this.updateChildrenVariant(),this.activeLang=Array.from(this.host.querySelectorAll("post-language-option")).find((t=>"true"==t.getAttribute("active"))).getAttribute("code")}updateChildrenVariant(){this.host.querySelectorAll("post-language-option").forEach((t=>{t.setAttribute("variant",this.variant)}))}componentWillUpdate(){this.updateChildrenVariant()}componentDidLoad(){this.validateCaption(),this.validateDescription(),this.validateVariant(),this.host.addEventListener("postChange",(t=>{if(this.activeLang=t.detail,this.host.querySelectorAll("post-language-option").forEach((t=>{t.setAttribute("active",t.code&&t.code===this.activeLang?"true":"false")})),"menu"===this.variant){const t=this.host.shadowRoot.querySelector("post-menu");t.toggle(t)}}))}renderList(){return e(o,{"data-version":a,"aria-label":`${this.caption}, ${this.description}`,"aria-role":"list"},e("slot",null))}renderDropdown(){return e(o,{"data-version":a},e("post-menu-trigger",{for:this.menuId},e("button",{class:"post-language-switch-trigger","aria-label":`${this.caption}, ${this.description}`},this.activeLang.toUpperCase(),e("post-icon",{"aria-hidden":"true",name:"chevrondown"}))),e("post-menu",{id:this.menuId,class:"post-language-switch-dropdown-container"},e("slot",null)))}render(){return"list"===this.variant?this.renderList():this.renderDropdown()}get host(){return i(this)}static get watchers(){return{caption:["validateCaption"],description:["validateDescription"],variant:["validateVariant"]}}};x.style=":host{display:block}@media screen and (max-width: 1023.99px){:host{display:flex !important;gap:.5rem}}.post-language-switch-dropdown-container{display:flex;flex-direction:column}.post-language-switch-dropdown-container>*{width:100%}.post-language-switch-trigger{cursor:pointer;padding:0;overflow:visible;border:0;background:none;color:inherit;font:inherit;-webkit-user-select:none;user-select:none;appearance:button;text-decoration:none;display:inline-flex;align-items:center;gap:var(--post-core-dimension-6);border-radius:var(--post-core-dimension-24);font-size:var(--post-core-font-size-16);padding:var(--post-core-dimension-3) var(--post-core-dimension-10)}.post-language-switch-trigger{outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}.post-language-switch-trigger:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.post-language-switch-trigger:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.post-language-switch-trigger:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.post-language-switch-trigger:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}.post-language-switch-trigger:not(:disabled):hover,.post-language-switch-trigger.pretend-hover{border-color:var(--post-scheme-color-interactive-button-tertiary-hover-stroke);background-color:var(--post-scheme-color-interactive-button-tertiary-hover-bg);color:var(--post-scheme-color-interactive-button-tertiary-hover-fg)}.post-language-switch-trigger post-icon{height:var(--post-core-dimension-16);width:var(--post-core-dimension-16)}";const k=class{constructor(e){t(this,e),this.titleId=void 0,this.titleHidden=!1,this.horizontal=!1}componentWillLoad(){this.titleId=`title-${this.host.id||u(6)}`}componentDidLoad(){this.checkTitle()}checkTitle(){if(!this.titleEl.textContent.trim())throw new Error("Please provide a title to the list component. Title is mandatory for accessibility purposes.")}render(){return e(o,{key:"70594af566e1fe34ce0b9ebe1a8cbbc868dab973","data-version":a},e("div",{key:"27b6c4af3d51a0d83f968ec751b6bcf46feb7d05",ref:t=>this.titleEl=t,id:this.titleId,class:"list-title"+(this.titleHidden?" visually-hidden":"")},e("slot",{key:"a913bd018199bb031e3d96d487bd528831453387"})),e("div",{key:"e1a3ddecc643a78f57b91cc9ccb0de6b02302a47",role:"list","aria-labelledby":this.titleId},e("slot",{key:"bd7c6df300d28fe0b9f1dd3135eb42da00e731b9",name:"post-list-item"})))}get host(){return i(this)}};k.style="/*!\n * Copyright 2021 by Swiss Post, Information Technology\n */post-list{display:flex;flex-direction:column;gap:var(--post-list-title-gap, 0)}post-list>[role=list]{display:flex;flex-direction:column;gap:var(--post-list-item-gap, 0)}post-list:where([horizontal]:not([horizontal=false])){flex-direction:row;align-items:center}post-list:where([horizontal]:not([horizontal=false]))>[role=list]{flex-direction:row;align-items:center}post-list>.list-title.visually-hidden{width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}post-list>.list-title.visually-hidden:not(caption){position:absolute !important}";const T=class{constructor(e){t(this,e)}connectedCallback(){this.host.setAttribute("slot","post-list-item")}render(){return e(o,{key:"f7b26e05f1fa8bab9909dcee305dbf74960671eb",role:"listitem",slot:"post-list-item"},e("slot",{key:"3d75b0acf3f4a89c64c447e8d182bbc9a4f930a0"}))}get host(){return i(this)}};T.style=":host{display:flex}";const E=class{constructor(e){t(this,e),this.url=void 0}validateUrl(){d(this.url,'The "url" property of the post-logo is invalid')}componentDidLoad(){this.validateUrl(),this.checkDescription()}checkDescription(){this.host.textContent||console.warn("Be sure to add descriptive text in the post-logo to ensure good accessibility of the component.")}render(){const t=this.url&&("string"==typeof this.url?this.url:this.url.href);return e(o,{key:"c20cf7b8d3684d33cf9b85448a560a93cd4df118","data-version":a},e(t?"a":"span",Object.assign({key:"16f5f647935c87124d7bf1be5dd5fb4c6d56a76f",class:"logo "+(t?"logo-link":"")},t?{href:t}:{}),e("span",{key:"1373265c0c2271069c1ee540fb6d5576e67dd923",class:"description"},e("slot",{key:"d52c8c0d28e8292f7a30733dc195e1e1e32edf2a",onSlotchange:()=>this.checkDescription()})),e("svg",{key:"ad1c0ff356325415a1f99c4bc941895d1448801a",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 72 72","aria-hidden":"true"},e("g",{key:"ca8015671b16c192d44a1b48699e45ff7adc6123",id:"Logo"},e("rect",{key:"e862e2ea34630326ca6f6eea164f227b138d44c1",fill:"#ffcc00",x:"0",y:"0",width:"72",height:"72"}),e("polygon",{key:"d25e571bd67524c33c343312826e37dafedf918c",fill:"#ff0000",points:"34,32.3 34,19 19.7,19 19.7,29.1 10,29.1 10,42.9 19.7,42.9 19.7,53 34,53 34,39.7 30.6,39.7 30.6,49.8 23.1,49.8 23.1,39.7 13.4,39.7 13.4,32.3 23.1,32.3 23.1,22.2 30.6,22.2 30.6,32.3"}),e("path",{key:"a053c52cf9de963d52bc6a0f078a986c836b6038",d:"M53.56234,31.10526c0,2.41272-1.99154,4.29475-4.51723,4.29475H45.2v-8.3h3.84511C51.66802,27.1,53.56234,28.78889,53.56234,31.10526z M50.69666,19H36v34h9.2V42.9h5.49666c6.75131,0,11.9971-5.15137,11.9971-11.8057C62.69376,24.39136,57.35099,19,50.69666,19z"})))))}get host(){return i(this)}static get watchers(){return{url:["validateUrl"]}}};E.style=":host,.logo{display:inline-block}:host,:host .logo>svg,.logo,.logo .logo>svg{height:100%}.description{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}.logo-link{outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}.logo-link:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.logo-link:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.logo-link:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.logo-link:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}.logo-link :focus,:focus-visible{border-radius:2px}";const C=class{constructor(e){t(this,e),this.postToggle=n(this,"postToggle",7)}connectedCallback(){this.header=this.host.closest("post-header")}disconnectedCallback(){this.header=null}handleBackButtonClick(){this.header&&this.header.toggleMobileMenu()}render(){return e(o,{key:"23d1cc3919d15543bf409e8fa25be02973532a12",slot:"post-mainnavigation"},e("div",{key:"8d35b8b7715fbac387361706a03a10e4af481301",onClick:()=>this.handleBackButtonClick(),class:"back-button"},e("slot",{key:"01899ddef2cdc321ff7383eec310877335e951a7",name:"back-button"})),e("nav",{key:"3237225f2608b28355e669e11189ba1ccc9c593a"},e("slot",{key:"32105f3acf726a590631896c707a2149706a90d5"})))}get host(){return i(this)}};C.style="post-mainnavigation post-list-item>a{text-decoration:none;border-radius:0}post-mainnavigation post-list-item post-megadropdown-trigger button{padding:0;overflow:visible;border:0;background:none;color:inherit;font:inherit;-webkit-user-select:none;user-select:none;appearance:button;text-align:start}post-mainnavigation post-list-item post-megadropdown-trigger button{outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}post-mainnavigation post-list-item post-megadropdown-trigger button:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){post-mainnavigation post-list-item post-megadropdown-trigger button:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){post-mainnavigation post-list-item post-megadropdown-trigger button:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){post-mainnavigation post-list-item post-megadropdown-trigger button:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}post-mainnavigation post-list-item>a,post-mainnavigation post-list-item>button,post-mainnavigation post-list-item post-megadropdown-trigger button{display:flex;align-items:center;justify-content:space-between}post-mainnavigation post-list-item>a:hover,post-mainnavigation post-list-item>button:hover,post-mainnavigation post-list-item post-megadropdown-trigger button:hover{color:var(--post-scheme-color-interactive-primary-hover-fg1)}post-mainnavigation post-list-item>a:focus-visible,post-mainnavigation post-list-item>button:focus-visible,post-mainnavigation post-list-item post-megadropdown-trigger button:focus-visible{border-radius:var(--post-core-dimension-4);z-index:1}@media screen and (min-width: 1024px){post-mainnavigation nav{position:relative;max-width:100vw;max-height:var(--post-core-dimension-56);user-select:none}post-mainnavigation post-list{margin-inline:var(--post-core-dimension-4)}post-mainnavigation post-list>[role=list]{flex-direction:row;max-width:100vw;transition:transform 250ms cubic-bezier(0.4, 0, 0.2, 1)}post-mainnavigation post-list-item>a,post-mainnavigation post-list-item>button,post-mainnavigation post-list-item post-megadropdown-trigger button{padding-inline:var(--post-core-dimension-12);height:var(--post-core-dimension-56);gap:var(--post-core-dimension-4);font-size:var(--post-core-font-size-16);border-block:0 solid rgba(0,0,0,0);border-block-end-color:currentColor}post-mainnavigation post-list-item>a:hover,post-mainnavigation post-list-item>button:hover,post-mainnavigation post-list-item post-megadropdown-trigger button:hover{border-block-width:var(--post-core-dimension-2)}post-mainnavigation post-list-item>a.selected,post-mainnavigation post-list-item>a[aria-expanded=true],post-mainnavigation post-list-item>button.selected,post-mainnavigation post-list-item>button[aria-expanded=true],post-mainnavigation post-list-item post-megadropdown-trigger button.selected,post-mainnavigation post-list-item post-megadropdown-trigger button[aria-expanded=true]{border-block-width:var(--post-core-dimension-4);font-weight:var(--post-core-font-weight-700)}post-mainnavigation post-list-item>button,post-mainnavigation post-list-item post-megadropdown-trigger button{padding-inline-end:var(--post-core-dimension-12);transition:border-block-end-color 250ms cubic-bezier(0.4, 0, 0.2, 1)}post-mainnavigation post-list-item>button::after,post-mainnavigation post-list-item post-megadropdown-trigger button::after{content:\"\";mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m23.6 13.2-7.5 7.6-7.6-7.6.9-.9 6.6 6.6 6.6-6.6z'/%3E%3C/svg%3E\");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color;height:var(--post-core-dimension-24);width:var(--post-core-dimension-24);transition:transform 250ms cubic-bezier(0.4, 0, 0.2, 1)}post-mainnavigation post-list-item>button.selected::after,post-mainnavigation post-list-item>button[aria-expanded=true]::after,post-mainnavigation post-list-item post-megadropdown-trigger button.selected::after,post-mainnavigation post-list-item post-megadropdown-trigger button[aria-expanded=true]::after{transform:rotate(180deg)}post-mainnavigation [slot=back-button]{display:none}}@media screen and (max-width: 1023.99px){post-mainnavigation post-list>[role=list]{transform:none !important}post-mainnavigation post-list-item>a,post-mainnavigation post-list-item>button,post-mainnavigation post-list-item post-megadropdown-trigger button{width:100%;height:var(--post-core-dimension-48);padding-inline-end:var(--post-core-dimension-6);gap:var(--post-core-dimension-16);border-block:var(--post-core-dimension-1) solid rgba(0,0,0,0);border-block-end-color:currentColor;font-weight:var(--post-core-font-weight-700)}post-mainnavigation post-list-item>a:hover,post-mainnavigation post-list-item>a.selected,post-mainnavigation post-list-item>button:hover,post-mainnavigation post-list-item>button.selected,post-mainnavigation post-list-item post-megadropdown-trigger button:hover,post-mainnavigation post-list-item post-megadropdown-trigger button.selected{border-block-width:var(--post-core-dimension-3)}post-mainnavigation post-list-item>a:hover::after,post-mainnavigation post-list-item>button:hover::after,post-mainnavigation post-list-item post-megadropdown-trigger button:hover::after{content:\"\";display:block;mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20.667 5.333H18.8L29.467 16H0v1.333h29.467L18.8 28h1.867L32 16.667z'/%3E%3C/svg%3E\");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color;width:var(--post-core-dimension-24);height:var(--post-core-dimension-24)}}post-mainnavigation .back-button .btn{padding-inline:0}";const S=class{constructor(e){t(this,e),this.postToggleMegadropdown=n(this,"postToggleMegadropdown",7),this.isVisible=!1,this.animationClass=null}componentDidLoad(){this.popoverRef.addEventListener("postToggle",(t=>{this.isVisible=t.detail,this.postToggleMegadropdown.emit(this.isVisible)})),this.popoverRef.addEventListener("animationend",(()=>{"slide-out"===this.animationClass&&this.hide()}))}async toggle(t){this.isVisible?this.hide():await this.show(t)}async show(t){this.popoverRef?(await this.popoverRef.show(t),this.animationClass="slide-in"):console.error("show: popoverRef is null or undefined")}hide(){this.popoverRef?this.popoverRef.hide():console.error("hide: popoverRef is null or undefined")}handleBackButtonClick(){this.animationClass="slide-out"}handleCloseButtonClick(){this.popoverRef.hide()}handleFocusout(t){const e=t.relatedTarget;this.popoverRef.querySelector(".megadropdown").contains(e)||this.hide()}render(){return e(o,{key:"cb7df3441b1c064045c6d27cd7e20376a62de57c"},e("post-popovercontainer",{key:"8c2de3df3d1dd59187f463d751654958326dde02",class:this.animationClass,placement:"bottom","edge-gap":"0",ref:t=>this.popoverRef=t},e("div",{key:"392182e1d6206c969fc64b1758d121e1ab6361f3",class:"megadropdown",onFocusout:t=>this.handleFocusout(t)},e("div",{key:"45742e41d227d0481436bd49de065044a2ce5e35",onClick:()=>this.handleBackButtonClick(),class:"back-button"},e("slot",{key:"5607a569924faba3be599b6e1f53f4a8704b2f05",name:"back-button"})),e("div",{key:"c1a99e2d25af71fc3122e1173549ad7fe1d920b7",onClick:()=>this.handleCloseButtonClick(),class:"close-button"},e("slot",{key:"82059d749600e18e63c836d5ab6697eb50ec91cf",name:"close-button"})),e("slot",{key:"eea5e876c1ae5558a3c5c6301b298e564d8b75b0",name:"megadropdown-title"}),e("div",{key:"16b0f351786aef2827ce08163a554e49c40f224b",class:"megadropdown-content"},e("slot",{key:"97e5230769b01070e488f71704740ec27de9f2d4"})))))}get host(){return i(this)}};S.style="@keyframes slide-in{0%{transform:translateX(100%)}100%{transform:translateX(0%)}}@keyframes slide-out{from{transform:translateX(0%)}to{transform:translateX(100%)}}*,::before,::after{box-sizing:border-box}post-popovercontainer{background-color:#fafafa;border:none;border-top:1px solid #e1e0dc;width:100%;border-radius:0;box-shadow:0 8px 6px rgba(0,0,0,.16)}@media screen and (max-width: 1023.99px){post-popovercontainer{position:absolute;top:var(--header-height) !important;bottom:0;left:0;width:100%;height:auto;border-top:unset}post-popovercontainer.slide-in{animation:slide-in;animation-duration:350ms;animation-fill-mode:forwards}post-popovercontainer.slide-out{animation:slide-out;animation-duration:350ms;animation-fill-mode:forwards}}.megadropdown{padding:31px 40px 40px}@media screen and (max-width: 1023.99px){.megadropdown{padding:16px 32px 24px}}.megadropdown .megadropdown-content{gap:1.5rem;display:grid;grid-template-columns:repeat(auto-fit, minmax(min(15vw, 100%), 1fr));grid-auto-rows:1fr auto;grid-auto-flow:dense}@media screen and (max-width: 1023.99px){.megadropdown .megadropdown-content{grid-template-columns:repeat(auto-fit, minmax(min(35vw, 100%), 1fr))}}@media screen and (max-width: 599.99px){.megadropdown .megadropdown-content{grid-template-columns:1fr}}.megadropdown h2{display:none;margin-top:0;margin-bottom:8px;font-weight:900}.megadropdown h2 a{text-decoration:none;font-weight:inherit;border-bottom:0;border-top:0}@media screen and (max-width: 1023.99px){.megadropdown h2{display:block;font-size:20px}}.megadropdown a:hover{border-block-width:0}.megadropdown a:hover::after{content:unset}.megadropdown post-list{display:grid;grid-row:span 2;grid-template-rows:subgrid;row-gap:0px}.megadropdown post-list>[role=list]{flex-direction:unset;display:unset}.megadropdown post-list>*{width:100%}.megadropdown post-list .list-title{display:flex;flex-direction:column-reverse;height:100%}.megadropdown post-list .list-title h3{font-size:20px;border-bottom:1px solid #050400;padding:15px 12px 14px 0;display:block;font-weight:900}.megadropdown post-list .list-title h3 a{text-decoration:none;width:100%;font-size:inherit;display:inline-block;font-weight:inherit;height:unset;padding:0;border:0}@media screen and (max-width: 1023.99px){.megadropdown post-list .list-title h3{font-size:16px;padding:12px 12px 11px 0}}.megadropdown post-list-item{border-bottom:1px solid #050400}.megadropdown post-list-item>a{padding:13px 12px 12px 0;display:block;text-decoration:none;width:100%;border-bottom:0;height:auto;border-top:0}@media screen and (max-width: 1023.99px){.megadropdown post-list-item>a{padding:12px 12px 11px 0}}.megadropdown .back-button{display:none;margin-bottom:2rem}.megadropdown .back-button .btn{width:auto}.megadropdown .back-button post-icon{transform:rotate(180deg)}@media screen and (max-width: 1023.99px){.megadropdown .back-button{display:block}}.megadropdown .close-button{position:absolute;top:1rem;right:1rem}@media screen and (max-width: 1023.99px){.megadropdown .close-button{display:none}}";const A=class{constructor(e){t(this,e),this.slottedButton=null,this.for=void 0,this.ariaExpanded=!1}validateControlFor(t=this.for){h(t,"string",'The "for" property is required and should be a string.')}get megadropdown(){const t=document.getElementById(this.for);return t&&"post-megadropdown"===t.localName?t:null}handleToggle(){this.megadropdown?this.megadropdown.toggle(this.host):console.warn(`No post-megadropdown found with ID: ${this.for}`)}componentDidLoad(){this.validateControlFor(),document.addEventListener("postToggleMegadropdown",(t=>{t.target.id===this.for&&(this.ariaExpanded=t.detail,this.slottedButton&&this.slottedButton.setAttribute("aria-expanded",this.ariaExpanded.toString()))})),this.slottedButton=this.host.querySelector("button"),this.slottedButton?(this.slottedButton.setAttribute("aria-haspopup","menu"),this.slottedButton.addEventListener("click",(()=>{this.handleToggle()}))):console.warn("No button found within post-megadropdown-trigger")}render(){return e(o,{key:"ba9b6922d4f4eac596f7d1310a5a1bf534b156d8","data-version":a,"tab-index":"-1"},e("button",{key:"5fe4ea7f385897606f472ea72be84399e76550e2"},e("slot",{key:"333f583f0db191599c4be9be9647789b2ea1ecaf"})))}get host(){return i(this)}static get watchers(){return{for:["validateControlFor"]}}};A.style="post-megadropdown-trigger{width:100%}";const M=`:where(${["button",'input:not([type="hidden"])',"[tabindex]","select","textarea","[contenteditable]","a[href]","iframe","audio[controls]","video[controls]","area[href]","details > summary:first-of-type"].join(",")})`,L=`:where(${["[inert]","[inert] *",":disabled","dialog:not([open]) *","[popover]:not(:popover-open) *","details:not([open]) > *:not(details > summary:first-of-type)","details:not([open]) > *:not(details > summary:first-of-type) *",'[tabindex^="-"]'].join(",")})`,z=class{constructor(e){t(this,e),this.toggleMenu=n(this,"toggleMenu",7),this.lastFocusedElement=null,this.KEYCODES={SPACE:" ",ENTER:"Enter",UP:"ArrowUp",DOWN:"ArrowDown",TAB:"Tab",HOME:"Home",END:"End",ESCAPE:"Escape"},this.handleKeyDown=t=>{t.stopPropagation(),t.key!==this.KEYCODES.ESCAPE?Object.values(this.KEYCODES).includes(t.key)&&this.controlKeyDownHandler(t):this.toggle(this.host)},this.handleClick=t=>{["BUTTON","A","INPUT","SELECT","TEXTAREA"].includes(t.target.tagName)&&this.toggle(this.host)},this.placement="bottom",this.isVisible=!1}connectedCallback(){this.root=f(this.host),this.host.addEventListener("keydown",this.handleKeyDown),this.host.addEventListener("click",this.handleClick)}disconnectedCallback(){this.host.removeEventListener("keydown",this.handleKeyDown),this.host.removeEventListener("click",this.handleClick)}componentDidLoad(){this.popoverRef.addEventListener("postToggle",(t=>{this.isVisible=t.detail,this.toggleMenu.emit(this.isVisible)}))}async toggle(t){this.isVisible?await this.hide():await this.show(t)}async show(t){if(this.popoverRef){await this.popoverRef.show(t),this.lastFocusedElement=this.root.activeElement;const e=this.getSlottedItems();e.length>0&&e[0].focus()}else console.error("show: popoverRef is null or undefined")}async hide(){this.popoverRef?(await this.popoverRef.hide(),this.lastFocusedElement&&this.lastFocusedElement.focus()):console.error("hide: popoverRef is null or undefined")}controlKeyDownHandler(t){const e=this.getSlottedItems();if(!e.length)return;let o=e.findIndex((t=>t===f(t).activeElement));switch(t.key){case this.KEYCODES.UP:t.preventDefault(),o=(o-1+e.length)%e.length;break;case this.KEYCODES.DOWN:t.preventDefault(),o=(o+1)%e.length;break;case this.KEYCODES.HOME:o=0;break;case this.KEYCODES.END:o=e.length-1;break;case this.KEYCODES.SPACE:case this.KEYCODES.ENTER:return void this.toggle(this.host);case this.KEYCODES.TAB:this.toggle(this.host)}e[o]&&e[o].focus()}getSlottedItems(){const t=this.host.shadowRoot.querySelector("slot");return(t?t.assignedElements():[]).flatMap((t=>t instanceof HTMLSlotElement?t.assignedElements():t)).filter((t=>"menuitem"===t.getAttribute("role"))).flatMap((t=>Array.from(t.querySelectorAll(`& > ${M}:not(${L})`))))}render(){return e(o,{key:"68c4661d3ab9256dadbbe3243247456c090b728e","data-version":a},e("post-popovercontainer",{key:"b6cb0624239e0ed5aeadac63ffb1b1f7fb0e873e",placement:this.placement,ref:t=>this.popoverRef=t},e("div",{key:"608f677ae715eb09ed46fde9912241dc35673e06",class:"popover-container",part:"popover-container"},e("slot",{key:"83f84b7b29b4d7c9d4e0924026ca7469c1f0cfb0"}))))}get host(){return i(this)}};z.style="/*!\n * Copyright 2021 by Swiss Post, Information Technology\n */:host{display:block}post-popovercontainer{padding:var(--post-menu-padding);background-color:var(--post-menu-bg, #ffffff);border-color:var(--post-menu-bg, #ffffff)}.popover-container{display:flex;flex-direction:column}";const D=class{constructor(e){t(this,e),this.slottedButton=null,this.handleKeyDown=t=>{"ArrowUp"!==t.key&&"ArrowDown"!==t.key||(t.preventDefault(),this.handleToggle())},this.for=void 0,this.ariaExpanded=!1}validateControlFor(t=this.for){h(t,"string",'The "for" property is required and should be a string.')}get menu(){const t=this.root.getElementById(this.for);return t&&"post-menu"===t.localName?t:null}handleToggle(){const t=this.menu;t&&this.slottedButton?(this.ariaExpanded=!this.ariaExpanded,this.slottedButton.setAttribute("aria-expanded",this.ariaExpanded.toString()),t.toggle(this.host)):console.warn(`No post-menu found with ID: ${this.for}`)}componentDidLoad(){if(this.root=f(this.host),this.validateControlFor(),this.slottedButton=this.host.querySelector("button"),!this.slottedButton){const t=this.host.querySelector(".menu-trigger-webc");if(t.shadowRoot){const e=t.shadowRoot.querySelector("button");e&&(this.slottedButton=e)}}this.slottedButton?(this.slottedButton.setAttribute("aria-haspopup","menu"),this.slottedButton.addEventListener("click",(()=>{this.handleToggle()})),this.slottedButton.addEventListener("keydown",this.handleKeyDown)):console.warn("No button found within post-menu-trigger")}render(){return e(o,{key:"5bdaebd0c1f46fda5804c0e8d39ab3e714b523c5","data-version":a,"tab-index":"-1"},e("slot",{key:"ffee26535991d712f44cb1859a5976ec89ad772a"}))}get host(){return i(this)}static get watchers(){return{for:["validateControlFor"]}}};D.style=":host{display:inline-block}";const H=Math.min,j=Math.max,$=Math.round,O=Math.floor,R=t=>({x:t,y:t}),F={left:"right",right:"left",bottom:"top",top:"bottom"},P={start:"end",end:"start"};function B(t,e,o){return j(t,H(e,o))}function N(t,e){return"function"==typeof t?t(e):t}function W(t){return t.split("-")[0]}function q(t){return t.split("-")[1]}function I(t){return"x"===t?"y":"x"}function U(t){return"y"===t?"height":"width"}function V(t){return["top","bottom"].includes(W(t))?"y":"x"}function X(t){return I(V(t))}function Y(t){return t.replace(/start|end/g,(t=>P[t]))}function K(t){return t.replace(/left|right|bottom|top/g,(t=>F[t]))}function G(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function _(t){const{x:e,y:o,width:i,height:n}=t;return{width:i,height:n,top:o,left:e,right:e+i,bottom:o+n,x:e,y:o}}function J(t,e,o){let{reference:i,floating:n}=t;const a=V(e),s=X(e),r=U(s),l=W(e),c="y"===a,d=i.x+i.width/2-n.width/2,p=i.y+i.height/2-n.height/2,h=i[r]/2-n[r]/2;let u;switch(l){case"top":u={x:d,y:i.y-n.height};break;case"bottom":u={x:d,y:i.y+i.height};break;case"right":u={x:i.x+i.width,y:p};break;case"left":u={x:i.x-n.width,y:p};break;default:u={x:i.x,y:i.y}}switch(q(e)){case"start":u[s]-=h*(o&&c?-1:1);break;case"end":u[s]+=h*(o&&c?-1:1)}return u}async function Q(t,e){var o;void 0===e&&(e={});const{x:i,y:n,platform:a,rects:s,elements:r,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:p="floating",altBoundary:h=!1,padding:u=0}=N(e,t),f=G(u),g=r[h?"floating"===p?"reference":"floating":p],m=_(await a.getClippingRect({element:null==(o=await(null==a.isElement?void 0:a.isElement(g)))||o?g:g.contextElement||await(null==a.getDocumentElement?void 0:a.getDocumentElement(r.floating)),boundary:c,rootBoundary:d,strategy:l})),b="floating"===p?{...s.floating,x:i,y:n}:s.reference,v=await(null==a.getOffsetParent?void 0:a.getOffsetParent(r.floating)),w=await(null==a.isElement?void 0:a.isElement(v))&&await(null==a.getScale?void 0:a.getScale(v))||{x:1,y:1},y=_(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:r,rect:b,offsetParent:v,strategy:l}):b);return{top:(m.top-y.top+f.top)/w.y,bottom:(y.bottom-m.bottom+f.bottom)/w.y,left:(m.left-y.left+f.left)/w.x,right:(y.right-m.right+f.right)/w.x}}function Z(t){const e=H(...t.map((t=>t.left))),o=H(...t.map((t=>t.top)));return{x:e,y:o,width:j(...t.map((t=>t.right)))-e,height:j(...t.map((t=>t.bottom)))-o}}function tt(){return"undefined"!=typeof window}function et(t){return nt(t)?(t.nodeName||"").toLowerCase():"#document"}function ot(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function it(t){var e;return null==(e=(nt(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function nt(t){return!!tt()&&(t instanceof Node||t instanceof ot(t).Node)}function at(t){return!!tt()&&(t instanceof Element||t instanceof ot(t).Element)}function st(t){return!!tt()&&(t instanceof HTMLElement||t instanceof ot(t).HTMLElement)}function rt(t){return!(!tt()||"undefined"==typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof ot(t).ShadowRoot)}function lt(t){const{overflow:e,overflowX:o,overflowY:i,display:n}=ft(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+o)&&!["inline","contents"].includes(n)}function ct(t){return["table","td","th"].includes(et(t))}function dt(t){return[":popover-open",":modal"].some((e=>{try{return t.matches(e)}catch(t){return!1}}))}function pt(t){const e=ht(),o=at(t)?ft(t):t;return["transform","translate","scale","rotate","perspective"].some((t=>!!o[t]&&"none"!==o[t]))||!!o.containerType&&"normal"!==o.containerType||!e&&!!o.backdropFilter&&"none"!==o.backdropFilter||!e&&!!o.filter&&"none"!==o.filter||["transform","translate","scale","rotate","perspective","filter"].some((t=>(o.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(o.contain||"").includes(t)))}function ht(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function ut(t){return["html","body","#document"].includes(et(t))}function ft(t){return ot(t).getComputedStyle(t)}function gt(t){return at(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function mt(t){if("html"===et(t))return t;const e=t.assignedSlot||t.parentNode||rt(t)&&t.host||it(t);return rt(e)?e.host:e}function bt(t){const e=mt(t);return ut(e)?t.ownerDocument?t.ownerDocument.body:t.body:st(e)&<(e)?e:bt(e)}function vt(t,e,o){var i;void 0===e&&(e=[]),void 0===o&&(o=!0);const n=bt(t),a=n===(null==(i=t.ownerDocument)?void 0:i.body),s=ot(n);if(a){const t=wt(s);return e.concat(s,s.visualViewport||[],lt(n)?n:[],t&&o?vt(t):[])}return e.concat(n,vt(n,[],o))}function wt(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function yt(t){const e=ft(t);let o=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const n=st(t),a=n?t.offsetWidth:o,s=n?t.offsetHeight:i,r=$(o)!==a||$(i)!==s;return r&&(o=a,i=s),{width:o,height:i,$:r}}function xt(t){return at(t)?t:t.contextElement}function kt(t){const e=xt(t);if(!st(e))return R(1);const o=e.getBoundingClientRect(),{width:i,height:n,$:a}=yt(e);let s=(a?$(o.width):o.width)/i,r=(a?$(o.height):o.height)/n;return s&&Number.isFinite(s)||(s=1),r&&Number.isFinite(r)||(r=1),{x:s,y:r}}const Tt=R(0);function Et(t){const e=ot(t);return ht()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:Tt}function Ct(t,e,o,i){void 0===e&&(e=!1),void 0===o&&(o=!1);const n=t.getBoundingClientRect(),a=xt(t);let s=R(1);e&&(i?at(i)&&(s=kt(i)):s=kt(t));const r=function(t,e,o){return void 0===e&&(e=!1),!(!o||e&&o!==ot(t))&&e}(a,o,i)?Et(a):R(0);let l=(n.left+r.x)/s.x,c=(n.top+r.y)/s.y,d=n.width/s.x,p=n.height/s.y;if(a){const t=ot(a),e=i&&at(i)?ot(i):i;let o=t,n=wt(o);for(;n&&i&&e!==o;){const t=kt(n),e=n.getBoundingClientRect(),i=ft(n),a=e.left+(n.clientLeft+parseFloat(i.paddingLeft))*t.x,s=e.top+(n.clientTop+parseFloat(i.paddingTop))*t.y;l*=t.x,c*=t.y,d*=t.x,p*=t.y,l+=a,c+=s,o=ot(n),n=wt(o)}}return _({width:d,height:p,x:l,y:c})}function St(t,e){const o=gt(t).scrollLeft;return e?e.left+o:Ct(it(t)).left+o}function At(t,e,o){void 0===o&&(o=!1);const i=t.getBoundingClientRect();return{x:i.left+e.scrollLeft-(o?0:St(t,i)),y:i.top+e.scrollTop}}function Mt(t,e,o){let i;if("viewport"===e)i=function(t,e){const o=ot(t),i=it(t),n=o.visualViewport;let a=i.clientWidth,s=i.clientHeight,r=0,l=0;if(n){a=n.width,s=n.height;const t=ht();(!t||t&&"fixed"===e)&&(r=n.offsetLeft,l=n.offsetTop)}return{width:a,height:s,x:r,y:l}}(t,o);else if("document"===e)i=function(t){const e=it(t),o=gt(t),i=t.ownerDocument.body,n=j(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),a=j(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let s=-o.scrollLeft+St(t);const r=-o.scrollTop;return"rtl"===ft(i).direction&&(s+=j(e.clientWidth,i.clientWidth)-n),{width:n,height:a,x:s,y:r}}(it(t));else if(at(e))i=function(t,e){const o=Ct(t,!0,"fixed"===e),i=o.top+t.clientTop,n=o.left+t.clientLeft,a=st(t)?kt(t):R(1);return{width:t.clientWidth*a.x,height:t.clientHeight*a.y,x:n*a.x,y:i*a.y}}(e,o);else{const o=Et(t);i={x:e.x-o.x,y:e.y-o.y,width:e.width,height:e.height}}return _(i)}function Lt(t,e){const o=mt(t);return!(o===e||!at(o)||ut(o))&&("fixed"===ft(o).position||Lt(o,e))}function zt(t,e,o){const i=st(e),n=it(e),a="fixed"===o,s=Ct(t,!0,a,e);let r={scrollLeft:0,scrollTop:0};const l=R(0);if(i||!i&&!a)if(("body"!==et(e)||lt(n))&&(r=gt(e)),i){const t=Ct(e,!0,a,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else n&&(l.x=St(n));const c=!n||i||a?R(0):At(n,r);return{x:s.left+r.scrollLeft-l.x-c.x,y:s.top+r.scrollTop-l.y-c.y,width:s.width,height:s.height}}function Dt(t){return"static"===ft(t).position}function Ht(t,e){if(!st(t)||"fixed"===ft(t).position)return null;if(e)return e(t);let o=t.offsetParent;return it(t)===o&&(o=o.ownerDocument.body),o}function jt(t,e){const o=ot(t);if(dt(t))return o;if(!st(t)){let e=mt(t);for(;e&&!ut(e);){if(at(e)&&!Dt(e))return e;e=mt(e)}return o}let i=Ht(t,e);for(;i&&ct(i)&&Dt(i);)i=Ht(i,e);return i&&ut(i)&&Dt(i)&&!pt(i)?o:i||function(t){let e=mt(t);for(;st(e)&&!ut(e);){if(pt(e))return e;if(dt(e))return null;e=mt(e)}return null}(t)||o}const $t={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:o,offsetParent:i,strategy:n}=t;const a="fixed"===n,s=it(i),r=!!e&&dt(e.floating);if(i===s||r&&a)return o;let l={scrollLeft:0,scrollTop:0},c=R(1);const d=R(0),p=st(i);if((p||!p&&!a)&&(("body"!==et(i)||lt(s))&&(l=gt(i)),st(i))){const t=Ct(i);c=kt(i),d.x=t.x+i.clientLeft,d.y=t.y+i.clientTop}const h=!s||p||a?R(0):At(s,l,!0);return{width:o.width*c.x,height:o.height*c.y,x:o.x*c.x-l.scrollLeft*c.x+d.x+h.x,y:o.y*c.y-l.scrollTop*c.y+d.y+h.y}},getDocumentElement:it,getClippingRect:function(t){let{element:e,boundary:o,rootBoundary:i,strategy:n}=t;const a=[..."clippingAncestors"===o?dt(e)?[]:function(t,e){const o=e.get(t);if(o)return o;let i=vt(t,[],!1).filter((t=>at(t)&&"body"!==et(t))),n=null;const a="fixed"===ft(t).position;let s=a?mt(t):t;for(;at(s)&&!ut(s);){const e=ft(s),o=pt(s);o||"fixed"!==e.position||(n=null),(a?!o&&!n:!o&&"static"===e.position&&n&&["absolute","fixed"].includes(n.position)||lt(s)&&!o&&Lt(t,s))?i=i.filter((t=>t!==s)):n=e,s=mt(s)}return e.set(t,i),i}(e,this._c):[].concat(o),i],s=a.reduce(((t,o)=>{const i=Mt(e,o,n);return t.top=j(i.top,t.top),t.right=H(i.right,t.right),t.bottom=H(i.bottom,t.bottom),t.left=j(i.left,t.left),t}),Mt(e,a[0],n));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:jt,getElementRects:async function(t){const e=this.getOffsetParent||jt,o=this.getDimensions,i=await o(t.floating);return{reference:zt(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:e,height:o}=yt(t);return{width:e,height:o}},getScale:kt,isElement:at,isRTL:function(t){return"rtl"===ft(t).direction}};function Ot(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}const Rt=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var o,i;const{x:n,y:a,placement:s,middlewareData:r}=e,l=await async function(t,e){const{placement:o,platform:i,elements:n}=t,a=await(null==i.isRTL?void 0:i.isRTL(n.floating)),s=W(o),r=q(o),l="y"===V(o),c=["left","top"].includes(s)?-1:1,d=a&&l?-1:1,p=N(e,t);let{mainAxis:h,crossAxis:u,alignmentAxis:f}="number"==typeof p?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...p};return r&&"number"==typeof f&&(u="end"===r?-1*f:f),l?{x:u*d,y:h*c}:{x:h*c,y:u*d}}(e,t);return s===(null==(o=r.offset)?void 0:o.placement)&&null!=(i=r.arrow)&&i.alignmentOffset?{}:{x:n+l.x,y:a+l.y,data:{...l,placement:s}}}}},Ft=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:o,y:i,placement:n}=e,{mainAxis:a=!0,crossAxis:s=!1,limiter:r={fn:t=>{let{x:e,y:o}=t;return{x:e,y:o}}},...l}=N(t,e),c={x:o,y:i},d=await Q(e,l),p=V(W(n)),h=I(p);let u=c[h],f=c[p];a&&(u=B(u+d["y"===h?"top":"left"],u,u-d["y"===h?"bottom":"right"])),s&&(f=B(f+d["y"===p?"top":"left"],f,f-d["y"===p?"bottom":"right"]));const g=r.fn({...e,[h]:u,[p]:f});return{...g,data:{x:g.x-o,y:g.y-i}}}}},Pt=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var o,i;const{placement:n,middlewareData:a,rects:s,initialPlacement:r,platform:l,elements:c}=e,{mainAxis:d=!0,crossAxis:p=!0,fallbackPlacements:h,fallbackStrategy:u="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:g=!0,...m}=N(t,e);if(null!=(o=a.arrow)&&o.alignmentOffset)return{};const b=W(n),v=W(r)===r,w=await(null==l.isRTL?void 0:l.isRTL(c.floating)),y=h||(v||!g?[K(r)]:function(t){const e=K(t);return[Y(t),e,Y(e)]}(r));h||"none"===f||y.push(...function(t,e,o,i){const n=q(t);let a=function(t,e,o){const i=["left","right"],n=["right","left"],a=["top","bottom"],s=["bottom","top"];switch(t){case"top":case"bottom":return o?e?n:i:e?i:n;case"left":case"right":return e?a:s;default:return[]}}(W(t),"start"===o,i);return n&&(a=a.map((t=>t+"-"+n)),e&&(a=a.concat(a.map(Y)))),a}(r,g,f,w));const x=[r,...y],k=await Q(e,m),T=[];let E=(null==(i=a.flip)?void 0:i.overflows)||[];if(d&&T.push(k[b]),p){const t=function(t,e,o){void 0===o&&(o=!1);const i=q(t),n=X(t),a=U(n);let s="x"===n?i===(o?"end":"start")?"right":"left":"start"===i?"bottom":"top";return e.reference[a]>e.floating[a]&&(s=K(s)),[s,K(s)]}(n,s,w);T.push(k[t[0]],k[t[1]])}if(E=[...E,{placement:n,overflows:T}],!T.every((t=>t<=0))){var C,S;const t=((null==(C=a.flip)?void 0:C.index)||0)+1,e=x[t];if(e)return{data:{index:t,overflows:E},reset:{placement:e}};let o=null==(S=E.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:S.placement;if(!o)switch(u){case"bestFit":{var A;const t=null==(A=E.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:A[0];t&&(o=t);break}case"initialPlacement":o=r}if(n!==o)return{reset:{placement:o}}}return{}}}},Bt=function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(e){const{placement:o,rects:i,platform:n,elements:a}=e,{apply:s=(()=>{}),...r}=N(t,e),l=await Q(e,r),c=W(o),d=q(o),p="y"===V(o),{width:h,height:u}=i.floating;let f,g;"top"===c||"bottom"===c?(f=c,g=d===(await(null==n.isRTL?void 0:n.isRTL(a.floating))?"start":"end")?"left":"right"):(g=c,f="end"===d?"top":"bottom");const m=u-l[f],b=h-l[g],v=!e.middlewareData.shift;let w=m,y=b;if(p){const t=h-l.left-l.right;y=d||v?H(b,t):t}else{const t=u-l.top-l.bottom;w=d||v?H(m,t):t}if(v&&!d){const t=j(l.left,0),e=j(l.right,0),o=j(l.top,0),i=j(l.bottom,0);p?y=h-2*(0!==t||0!==e?t+e:j(l.left,l.right)):w=u-2*(0!==o||0!==i?o+i:j(l.top,l.bottom))}await s({...e,availableWidth:y,availableHeight:w});const x=await n.getDimensions(a.floating);return h!==x.width||u!==x.height?{reset:{rects:!0}}:{}}}},Nt=function(t){return void 0===t&&(t={}),{options:t,fn(e){const{x:o,y:i,placement:n,rects:a,middlewareData:s}=e,{offset:r=0,mainAxis:l=!0,crossAxis:c=!0}=N(t,e),d={x:o,y:i},p=V(n),h=I(p);let u=d[h],f=d[p];const g=N(r,e),m="number"==typeof g?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){const t="y"===h?"height":"width",e=a.reference[h]-a.floating[t]+m.mainAxis,o=a.reference[h]+a.reference[t]-m.mainAxis;u<e?u=e:u>o&&(u=o)}if(c){var b,v;const t="y"===h?"width":"height",e=["top","left"].includes(W(n)),o=a.reference[p]-a.floating[t]+(e&&(null==(b=s.offset)?void 0:b[p])||0)+(e?0:m.crossAxis),i=a.reference[p]+a.reference[t]+(e?0:(null==(v=s.offset)?void 0:v[p])||0)-(e?m.crossAxis:0);f<o?f=o:f>i&&(f=i)}return{[h]:u,[p]:f}}}};(()=>{var t=class extends Event{oldState;newState;constructor(t,{oldState:e="",newState:o="",...i}={}){super(t,i),this.oldState=String(e||""),this.newState=String(o||"")}},e=new WeakMap;function o(o,i,n){e.set(o,setTimeout((()=>{e.has(o)&&o.dispatchEvent(new t("toggle",{cancelable:!1,oldState:i,newState:n}))}),0))}var i=globalThis.ShadowRoot||function(){},n=globalThis.HTMLDialogElement||function(){},a=new WeakMap,s=new WeakMap,r=new WeakMap;function l(t){return r.get(t)||"hidden"}var c=new WeakMap;function d(t,e){return!("auto"!==t.popover&&"manual"!==t.popover||!t.isConnected||e&&"showing"!==l(t)||!e&&"hidden"!==l(t)||t instanceof n&&t.hasAttribute("open")||document.fullscreenElement===t)}function p(t){return t?Array.from(s.get(t.ownerDocument)||[]).indexOf(t)+1:0}function h(t){let e=s.get(t);for(let t of e||[]){if(t.isConnected)return t;e.delete(t)}return null}function u(t){return"function"==typeof t.getRootNode?t.getRootNode():t.parentNode?u(t.parentNode):t}function f(t){for(;t;){if(t instanceof HTMLElement&&"auto"===t.popover&&"showing"===r.get(t))return t;if((t=t.parentElement||u(t))instanceof i&&(t=t.host),t instanceof Document)return}}function g(t){return!(t.hidden||t instanceof i||(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 m=new WeakMap;function b(e){if(!d(e,!1))return;let i=e.ownerDocument;if(!e.dispatchEvent(new t("beforetoggle",{cancelable:!0,oldState:"closed",newState:"open"}))||!d(e,!1))return;let n=!1;if("auto"===e.popover){let t=e.getAttribute("popover"),o=function(t){let e=new Map,o=0,i=t.ownerDocument;for(let t of s.get(i)||[])e.set(t,o),o+=1;e.set(t,o),o+=1;let n=null;return function(t){let o=f(t);if(null===o)return null;let i=e.get(o);(null===n||e.get(n)<i)&&(n=o)}(t?.parentElement),n}(e)||i;if(y(o,!1,!0),t!==e.getAttribute("popover")||!d(e,!1))return}h(i)||(n=!0),m.delete(e);let l=i.activeElement;e.classList.add(":popover-open"),r.set(e,"showing"),a.has(i)||a.set(i,new Set),a.get(i).add(e),function(t){(function(t){if(t.shadowRoot&&!0!==t.shadowRoot.delegatesFocus)return null;let e=t;e.shadowRoot&&(e=e.shadowRoot);let o=e.querySelector("[autofocus]");if(o)return o;{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(o=e.querySelector("[autofocus]"),o)return o}}}let i=t.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_ELEMENT),n=i.currentNode;for(;n;){if(g(n))return n;n=i.nextNode()}})(t)?.focus()}(e),"auto"===e.popover&&(s.has(i)||s.set(i,new Set),s.get(i).add(e),E(c.get(e),!0)),n&&l&&"auto"===e.popover&&m.set(e,l),o(e,"closed","open")}function v(e,i=!1,n=!1){if(!d(e,!0))return;let l=e.ownerDocument;if("auto"===e.popover&&(y(e,i,n),!d(e,!0))||(E(c.get(e),!1),c.delete(e),n&&(e.dispatchEvent(new t("beforetoggle",{oldState:"open",newState:"closed"})),!d(e,!0))))return;a.get(l)?.delete(e),s.get(l)?.delete(e),e.classList.remove(":popover-open"),r.set(e,"hidden"),n&&o(e,"open","closed");let p=m.get(e);p&&(m.delete(e),i&&p.focus())}function w(t,e=!1,o=!1){let i=h(t);for(;i;)v(i,e,o),i=h(t)}function y(t,e,o){let i=t.ownerDocument||t;if(t instanceof Document)return w(i,e,o);let n=null,a=!1;for(let e of s.get(i)||[])if(e===t)a=!0;else if(a){n=e;break}if(!a)return w(i,e,o);for(;n&&"showing"===l(n)&&s.get(i)?.size;)v(n,e,o)}var x=new WeakMap;function k(t){if(!t.isTrusted)return;let e=t.composedPath()[0];if(!e)return;let o=e.ownerDocument;if(!h(o))return;let n=function(t){let e=f(t),o=function(t){for(;t;){let e=t.popoverTargetElement;if(e instanceof HTMLElement)return e;if((t=t.parentElement||u(t))instanceof i&&(t=t.host),t instanceof Document)return}}(t);return p(e)>p(o)?e:o}(e);if(n&&"pointerdown"===t.type)x.set(o,n);else if("pointerup"===t.type){let t=x.get(o)===n;x.delete(o),t&&y(n||o,!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 o=t.popoverTargetElement;if(o instanceof HTMLElement&&"auto"===o.popover)t.setAttribute("aria-expanded",String(e));else{let e=T.get(t);e?t.setAttribute("aria-expanded",e):t.removeAttribute("aria-expanded")}}var C=globalThis.ShadowRoot||function(){};function S(t,e,o){let i=t[e];Object.defineProperty(t,e,{value(t){return i.call(this,o(t))}})}var A=/(^|[^\\]):popover-open\b/g,M="\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",L=null;function z(t){if(null===L)try{(L=new CSSStyleSheet).replaceSync(M)}catch{L=!1}if(!1===L){let e=document.createElement("style");e.textContent=M,t instanceof Document?t.head.prepend(e):t.prepend(e)}else t.adoptedStyleSheets=[L,...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(A,"$1.\\:popover-open")),t}window.ToggleEvent=window.ToggleEvent||t,S(Document.prototype,"querySelector",e),S(Document.prototype,"querySelectorAll",e),S(Element.prototype,"querySelector",e),S(Element.prototype,"querySelectorAll",e),S(Element.prototype,"matches",e),S(Element.prototype,"closest",e),S(DocumentFragment.prototype,"querySelectorAll",e),S(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(){b(this)}},hidePopover:{enumerable:!0,configurable:!0,value(){v(this,!0,!0)}},togglePopover:{enumerable:!0,configurable:!0,value(t){"showing"===r.get(this)&&void 0===t||!1===t?v(this,!0,!0):(void 0===t||!0===t)&&b(this)}}});let o=Element.prototype.attachShadow;o&&Object.defineProperties(Element.prototype,{attachShadow:{enumerable:!0,configurable:!0,writable:!0,value(t){let e=o.call(this,t);return z(e),e}}});let i=HTMLElement.prototype.attachInternals;i&&Object.defineProperties(HTMLElement.prototype,{attachInternals:{enumerable:!0,configurable:!0,writable:!0,value(){let t=i.call(this);return t.shadowRoot&&z(t.shadowRoot),t}}});let n=new WeakMap;function a(t){Object.defineProperties(t.prototype,{popoverTargetElement:{enumerable:!0,configurable:!0,set(t){if(null===t)this.removeAttribute("popovertarget"),n.delete(this);else{if(!(t instanceof Element))throw new TypeError("popoverTargetElement must be an element or null");this.setAttribute("popovertarget",""),n.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=n.get(this);if(t&&t.isConnected)return t;if(t&&!t.isConnected)return n.delete(this),null;let e=u(this),o=this.getAttribute("popovertarget");return(e instanceof Document||e instanceof C)&&o&&e.getElementById(o)||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)}}})}a(HTMLButtonElement),a(HTMLInputElement);var s;(s=document).addEventListener("click",(t=>{if(!t.isTrusted)return;let e=t.composedPath()[0];if(!(e instanceof Element)||e?.shadowRoot)return;let o=u(e);if(!(o instanceof C||o instanceof Document))return;let i=e.closest("[popovertargetaction],[popovertarget]");return i?(function(t){let e=t.popoverTargetElement;if(!(e instanceof HTMLElement))return;let o=l(e);"show"===t.popoverTargetAction&&"showing"===o||"hide"===t.popoverTargetAction&&"hidden"===o||("showing"===o?v(e,!0,!0):d(e,!1)&&(c.set(e,t),b(e)))}(i),void t.preventDefault()):void 0})),s.addEventListener("keydown",(t=>{let e=t.key,o=t.target;!t.defaultPrevented&&o&&("Escape"===e||"Esc"===e)&&y(o.ownerDocument,!0,!0)})),s.addEventListener("pointerdown",k),s.addEventListener("pointerup",k),z(document)}()})();const Wt={top:"bottom",right:"left",bottom:"top",left:"right"},qt=class{constructor(e){t(this,e),this.postToggle=n(this,"postToggle",7),this.placement="top",this.edgeGap=8,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,o,i){void 0===i&&(i={});const{ancestorScroll:n=!0,ancestorResize:a=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:r="function"==typeof IntersectionObserver,animationFrame:l=!1}=i,c=xt(t),d=n||a?[...c?vt(c):[],...vt(e)]:[];d.forEach((t=>{n&&t.addEventListener("scroll",o,{passive:!0}),a&&t.addEventListener("resize",o)}));const p=c&&r?function(t,e){let o,i=null;const n=it(t);function a(){var t;clearTimeout(o),null==(t=i)||t.disconnect(),i=null}return function s(r,l){void 0===r&&(r=!1),void 0===l&&(l=1),a();const c=t.getBoundingClientRect(),{left:d,top:p,width:h,height:u}=c;if(r||e(),!h||!u)return;const f={rootMargin:-O(p)+"px "+-O(n.clientWidth-(d+h))+"px "+-O(n.clientHeight-(p+u))+"px "+-O(d)+"px",threshold:j(0,H(1,l))||1};let g=!0;function m(e){const i=e[0].intersectionRatio;if(i!==l){if(!g)return s();i?s(!1,i):o=setTimeout((()=>{s(!1,1e-7)}),1e3)}1!==i||Ot(c,t.getBoundingClientRect())||s(),g=!1}try{i=new IntersectionObserver(m,{...f,root:n.ownerDocument})}catch(t){i=new IntersectionObserver(m,f)}i.observe(t)}(!0),a}(c,o):null;let h,u=-1,f=null;s&&(f=new ResizeObserver((t=>{let[i]=t;i&&i.target===c&&f&&(f.unobserve(e),cancelAnimationFrame(u),u=requestAnimationFrame((()=>{var t;null==(t=f)||t.observe(e)}))),o()})),c&&!l&&f.observe(c),f.observe(e));let g=l?Ct(t):null;return l&&function e(){const i=Ct(t);g&&!Ot(g,i)&&o(),g=i,h=requestAnimationFrame(e)}(),o(),()=>{var t;d.forEach((t=>{n&&t.removeEventListener("scroll",o),a&&t.removeEventListener("resize",o)})),null==p||p(),null==(t=f)||t.disconnect(),f=null,l&&cancelAnimationFrame(h)}}(this.eventTarget,this.host,this.calculatePosition.bind(this))}async calculatePosition(){const t=this.edgeGap,e=[Pt(),(void 0===o&&(o={}),{name:"inline",options:o,async fn(t){const{placement:e,elements:i,rects:n,platform:a,strategy:s}=t,{padding:r=2,x:l,y:c}=N(o,t),d=Array.from(await(null==a.getClientRects?void 0:a.getClientRects(i.reference))||[]),p=function(t){const e=t.slice().sort(((t,e)=>t.y-e.y)),o=[];let i=null;for(let t=0;t<e.length;t++){const n=e[t];!i||n.y-i.y>i.height/2?o.push([n]):o[o.length-1].push(n),i=n}return o.map((t=>_(Z(t))))}(d),h=_(Z(d)),u=G(r),f=await a.getElementRects({reference:{getBoundingClientRect:function(){if(2===p.length&&p[0].left>p[1].right&&null!=l&&null!=c)return p.find((t=>l>t.left-u.left&&l<t.right+u.right&&c>t.top-u.top&&c<t.bottom+u.bottom))||h;if(p.length>=2){if("y"===V(e)){const t=p[0],o=p[p.length-1],i="top"===W(e),n=t.top,a=o.bottom,s=i?t.left:o.left,r=i?t.right:o.right;return{top:n,bottom:a,left:s,right:r,width:r-s,height:a-n,x:s,y:n}}const t="left"===W(e),o=j(...p.map((t=>t.right))),i=H(...p.map((t=>t.left))),n=p.filter((e=>t?e.left===i:e.right===o)),a=n[0].top,s=n[n.length-1].bottom;return{top:a,bottom:s,left:i,right:o,width:o-i,height:s-a,x:i,y:a}}return h}},floating:i.floating,strategy:s});return n.reference.x!==f.reference.x||n.reference.y!==f.reference.y||n.reference.width!==f.reference.width||n.reference.height!==f.reference.height?{reset:{rects:f}}:{}}}),Ft({padding:t,limiter:Nt({offset:32})}),Bt({apply({availableWidth:e,elements:o}){Object.assign(o.floating.style,{maxWidth:e-2*t+"px"})}}),Rt(this.arrow?t+4:t)];var o;this.arrow&&e.push((t=>({name:"arrow",options:t,async fn(e){const{x:o,y:i,placement:n,rects:a,platform:s,elements:r,middlewareData:l}=e,{element:c,padding:d=0}=N(t,e)||{};if(null==c)return{};const p=G(d),h={x:o,y:i},u=X(n),f=U(u),g=await s.getDimensions(c),m="y"===u,b=m?"top":"left",v=m?"bottom":"right",w=m?"clientHeight":"clientWidth",y=a.reference[f]+a.reference[u]-h[u]-a.floating[f],x=h[u]-a.reference[u],k=await(null==s.getOffsetParent?void 0:s.getOffsetParent(c));let T=k?k[w]:0;T&&await(null==s.isElement?void 0:s.isElement(k))||(T=r.floating[w]||a.floating[f]);const E=y/2-x/2,C=T/2-g[f]/2-1,S=H(p[b],C),A=H(p[v],C),M=S,L=T-g[f]-A,z=T/2-g[f]/2+E,D=B(M,z,L),j=!l.arrow&&null!=q(n)&&z!==D&&a.reference[f]/2-(z<M?S:A)-g[f]/2<0,$=j?z<M?z-M:z-L:0;return{[u]:h[u]+$,data:{[u]:D,centerOffset:z-D-$,...j&&{alignmentOffset:$}},reset:j}}}))({element:this.arrowRef,padding:t}));const{x:i,y:n,middlewareData:a,placement:s}=await((t,e,o)=>{const i=new Map,n={platform:$t,...o},a={...n.platform,_c:i};return(async(t,e,o)=>{const{placement:i="bottom",strategy:n="absolute",middleware:a=[],platform:s}=o,r=a.filter(Boolean),l=await(null==s.isRTL?void 0:s.isRTL(e));let c=await s.getElementRects({reference:t,floating:e,strategy:n}),{x:d,y:p}=J(c,i,l),h=i,u={},f=0;for(let o=0;o<r.length;o++){const{name:a,fn:g}=r[o],{x:m,y:b,data:v,reset:w}=await g({x:d,y:p,initialPlacement:i,placement:h,strategy:n,middlewareData:u,rects:c,platform:s,elements:{reference:t,floating:e}});d=null!=m?m:d,p=null!=b?b:p,u={...u,[a]:{...u[a],...v}},w&&f<=50&&(f++,"object"==typeof w&&(w.placement&&(h=w.placement),w.rects&&(c=!0===w.rects?await s.getElementRects({reference:t,floating:e,strategy:n}):w.rects),({x:d,y:p}=J(c,h,l))),o=-1)}return{x:d,y:p,placement:h,strategy:n,middlewareData:u}})(t,e,{...n,platform:a})})(this.eventTarget,this.host,{placement:this.placement||"top",strategy:"fixed",middleware:e});if(this.host.style.left=`${i}px`,this.host.style.top=`${n}px`,this.arrow){const t=s.split("-")[0],{x:e,y:o}=a.arrow,i=Wt[t],n=2;Object.assign(this.arrowRef.style,{top:o?`${o}px`:"",left:e?`${e}px`:"",[i]:-this.arrowRef.offsetWidth/2-n+"px"}),this.arrowRef.classList.remove(...Object.values(Wt)),this.arrowRef.classList.add(i)}}render(){return e(o,{key:"844302edb3852f99229d4f4ccacf82cd78588435","data-version":a},this.arrow&&e("span",{key:"ae293d24ef24282bfcaeb7f545653a563e5246d5",class:"arrow",ref:t=>{this.arrowRef=t}}),e("slot",{key:"61dd3072a5217099028e3dd4b22fa845ea2f5970"}))}get host(){return i(this)}};qt.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);background:var(--post-current-palette-bg);color:var(--post-current-palette-fg);position:fixed;z-index:1060;width:max-content;margin:0;padding:0;box-sizing:border-box;border:2px solid rgba(0,0,0,0);border-radius:4px;overflow:visible}:where(post-popovercontainer)[tooltip]{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}: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)}";const It=class{constructor(e){t(this,e),this.handleClick=()=>{this.toggled=!this.toggled},this.handleKeydown=t=>{"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),this.host.click())},this.toggled=!1}validateToggled(t=this.toggled){h(t,"boolean",'The "toggled" property of the post-togglebutton must be a boolean.')}componentWillLoad(){this.validateToggled(),this.host.addEventListener("click",(()=>this.handleClick())),this.host.addEventListener("keydown",(t=>this.handleKeydown(t)))}render(){return e(o,{key:"461f72ebada75a99921b7a166f67f2547aa6465e","data-version":a,role:"button",tabindex:"0","aria-pressed":this.toggled.toString()},e("slot",{key:"cd5f4cc4df687cceacb3ea6c125b7b62f01b2712"}))}get host(){return i(this)}static get watchers(){return{toggled:["validateToggled"]}}};It.style=":host{cursor:pointer;outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}:host(:focus-visible){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host(:focus-visible){outline-color:Highlight !important}}:host([aria-pressed=true]) ::slotted([data-showwhen=untoggled]){display:none}:host([aria-pressed=false]) ::slotted([data-showwhen=toggled]){display:none}";export{g as P,m as a,v as b,w as c,x as d,k as e,T as f,E as g,C as h,S as i,A as j,z as k,D as l,qt as m,It as n}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{P as post_tab_panel}from"./p-025688e5.js";import"./p-0e216cc4.js";import"./p-82d48128.js";import"./p-5959f2bd.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as o,h as e,H as t,g as i}from"./p-0e216cc4.js";import{v as a}from"./p-
|
|
1
|
+
import{r as o,h as e,H as t,g as i}from"./p-0e216cc4.js";import{v as a}from"./p-82d48128.js";import{H as c}from"./p-247a1668.js";import{c as r}from"./p-5467b223.js";import{n as s}from"./p-5959f2bd.js";const d=class{constructor(e){o(this,e),this.id=void 0,this.slottedLogo=void 0,this.collapsed=!1,this.headingLevel=void 0}validateHeadingLevel(o=this.headingLevel){r(o,c,"The `heading-level` property of the `post-accordion-item` must be a number between 1 and 6.")}componentWillLoad(){this.id=this.host.id||`p${s(6)}`}componentDidLoad(){this.validateHeadingLevel()}onCollapseToggle(o){o.target===this.host&&"post-accordion-item"===o.target.localName&&(this.collapsed=!o.detail)}async toggle(o){return this.collapsible.toggle(o)}onSlotLogoChange(){this.slottedLogo=this.host.querySelector('img[slot="logo"]')}componentWillRender(){this.slottedLogo=this.host.querySelector('img[slot="logo"]')}render(){var o,i;const c=null===(o=this.host.closest("post-accordion"))||void 0===o?void 0:o.getAttribute("heading-level"),r=`h${null!==(i=null!=c?c:this.headingLevel)&&void 0!==i?i:2}`;return e(t,{key:"77851385edd1910f539ce61f1bf90bcebdeaa9ee",id:this.id,"data-version":a},e("div",{key:"0d7ab4f69e350658908ac54aa1bdbdf07003f0e1",part:"accordion-item",class:"accordion-item"},e("post-collapsible-trigger",{key:"b0cc3c14a98575e1db7093a668557ee021fd7f8e",for:`${this.id}--collapse`},e(r,{key:"33f3066f1a866b519084012517d548dd9abd8093",class:"accordion-header",id:`${this.id}--header`},e("button",{key:"1c29d71ea84789427c4bb4ca6f75f56ef0bc242e",type:"button",class:"accordion-button"+(this.collapsed?" collapsed":""),part:"button"},e("span",{key:"0324ff7aa3e48a4b7964f043ae99cb5e136fbb54",class:{"logo-container":!0,"has-image":!!this.slottedLogo}},e("slot",{key:"a2a07235808a847097d78610d22efc8eb73bd2f0",name:"logo",onSlotchange:this.onSlotLogoChange.bind(this)})),e("slot",{key:"2f6cf7287b910b211e8ba646a8431eb634d89768",name:"header"}),e("post-icon",{key:"38f599c957e70027ebe84939f6146618a5a4b2f0",name:"2051"})))),e("post-collapsible",{key:"a9fefff65fb48ac5a81c8fef3486dc84937de3a8",id:`${this.id}--collapse`,collapsed:this.collapsed,ref:o=>this.collapsible=o},e("div",{key:"eddd1a7e8a583409908b7b0a91482cbdfd9e7c99",class:"accordion-body",part:"body"},e("slot",{key:"1e82e00b05c16bd917e640738c5100689d2e7edf"})))))}get host(){return i(this)}static get watchers(){return{headingLevel:["validateHeadingLevel"]}}};d.style=':host::after{display:block;content:"";margin-top:calc(var(--post-device-border-width-default)*-1);border-bottom:var(--post-device-border-width-default) var(--post-core-border-style-solid) var(--post-scheme-color-interactive-primary-enabled-stroke)}:host:has(.accordion-button:hover)::after{border-color:var(--post-scheme-color-interactive-primary-hover-stroke)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host:has(.accordion-button:hover)::after{border-color:Highlight}}.accordion-header{color:var(--post-scheme-color-interactive-primary-enabled-fg1);font-size:var(--post-device-font-size-5);margin:0;line-height:var(--post-device-line-height-heading);font-weight:var(--post-device-font-weight-black)}.accordion-button{padding:0;overflow:visible;border:0;background:none;color:inherit;font:inherit;-webkit-user-select:none;user-select:none;appearance:button;display:flex;position:relative;width:100%;align-items:center;text-align:start;gap:var(--post-device-spacing-gap-7);padding:calc(var(--post-device-spacing-padding-19) + var(--post-device-border-width-default)) calc(var(--post-device-spacing-padding-5) + var(--post-device-border-width-default));cursor:pointer}.accordion-button::before{display:block;position:absolute;content:"";inset:0;bottom:auto;border-top:var(--post-accordion-button-border-top)}.accordion-button{outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}.accordion-button:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important;border-radius:var(--post-device-border-radius-focus)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.accordion-button:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.accordion-button:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important;border-radius:var(--post-device-border-radius-focus)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.accordion-button:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}.accordion-button slot::slotted(span[slot=header]){flex-grow:1}.accordion-button post-icon{flex:none;width:var(--post-core-dimension-24);aspect-ratio:1;transition:transform 250ms cubic-bezier(0.4, 0, 0.2, 1)}.accordion-button.collapsed{padding-block-start:calc(var(--post-device-spacing-padding-19) + var(--post-device-border-width-default));padding-block-end:calc(var(--post-device-spacing-padding-19) + var(--post-device-border-width-default))}.accordion-button.collapsed post-icon{transform:rotate(-180deg)}.accordion-button:hover{color:var(--post-scheme-color-interactive-primary-hover-fg1)}.accordion-button>::slotted(.text-truncate){display:block}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.accordion-button:hover,.accordion-button:focus-visible{color:Highlight}}.accordion-body{padding-block-start:var(--post-device-spacing-padding-15);padding-block-end:calc(var(--post-device-spacing-padding-block-25) + var(--post-device-border-width-default));padding-inline:var(--post-device-spacing-padding-5)}.logo-container{display:none;width:var(--post-device-sizing-logo-1);aspect-ratio:1}.logo-container.has-image{display:block}.logo-container slot::slotted(img){display:block;width:100%;height:100%;object-fit:cover}.accordion-button>::slotted(:first-child),.accordion-body>::slotted(:first-child){margin-block-start:0 !important}.accordion-button>::slotted(:last-child),.accordion-body>::slotted(:last-child){margin-block-end:0 !important}';export{d as P}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,h as o,H as t,g as s}from"./p-0e216cc4.js";import{v as i}from"./p-
|
|
1
|
+
import{r as e,h as o,H as t,g as s}from"./p-0e216cc4.js";import{v as i}from"./p-82d48128.js";import{g as r}from"./p-6adeaa6c.js";let a=0;const n="data-popover-target",c=e=>{const o=e.target;if(!o||!("getAttribute"in o))return;const t=o.getAttribute(n);if(!t||"key"in e&&"Enter"!==e.key)return;const s=document.getElementById(t);null==s||s.toggle(o)},d=r(n,(e=>{const o=e.hasAttribute(n);e.setAttribute("aria-expanded",o?"false":null)})),l=class{constructor(o){e(this,o),this.placement="top",this.closeButtonCaption=void 0,this.arrow=!0,this.localBeforeToggleHandler=this.beforeToggleHandler.bind(this)}connectedCallback(){0===a&&(window.addEventListener("pointerup",c),window.addEventListener("keydown",c),d.observe(document.body,{subtree:!0,childList:!0,attributeFilter:[n]})),a++,this.triggers.forEach((e=>e.setAttribute("aria-expanded","false")))}componentDidLoad(){this.popoverRef.addEventListener("beforetoggle",this.localBeforeToggleHandler)}disconnectedCallback(){a--,0===a&&(window.removeEventListener("click",c),window.removeEventListener("keydown",c),d.disconnect()),this.popoverRef.removeEventListener("beforetoggle",this.localBeforeToggleHandler),this.triggers.forEach((e=>e.removeAttribute("aria-expanded")))}async show(e){this.popoverRef.show(e),e.setAttribute("aria-expanded","true")}async hide(){this.popoverRef.hide(),this.triggers.forEach((e=>e.setAttribute("aria-expanded","false")))}async toggle(e,o){const t=await this.popoverRef.toggle(e,o);this.triggers.forEach((e=>e.setAttribute("aria-expanded","false"))),e.setAttribute("aria-expanded",`${t}`)}get triggers(){return document.querySelectorAll(`[${n}="${this.host.id}"]`)}beforeToggleHandler(){this.triggers.forEach((e=>e.setAttribute("aria-expanded","false")))}render(){return o(t,{key:"c2f53a7ac9d6bbcca8c220d9b8a5ed0dda360cf9","data-version":i},o("post-popovercontainer",{key:"fa5a32cfd4263fcabed5405f2b6bb2ab0ca93c9a",arrow:this.arrow,placement:this.placement,ref:e=>this.popoverRef=e},o("div",{key:"4799da001d006a47d93be1393618744a0b393841",class:"popover-container"},o("div",{key:"7a28ea59e07591c8b835dd10157bc5e9b85793c6",class:"popover-content"},o("slot",{key:"1ba6533577817d1fc2b7762654b5639596b16422"})),o("button",{key:"f1446964325e49b79bc0fe26a05bb4f12a140c61",class:"btn-close",onClick:()=>this.hide()},o("span",{key:"dd056bb988df548e8cae61ba226c1d9e124bc32b",class:"visually-hidden"},this.closeButtonCaption)))))}get host(){return s(this)}};l.style="/*!\n * Copyright 2021 by Swiss Post, Information Technology\n */.btn-close{padding:0;overflow:visible;border:0;background:none;color:inherit;font:inherit;-webkit-user-select:none;user-select:none;appearance:button;border-radius:var(--post-device-border-radius-round);color:#000;transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;cursor:pointer}.btn-close{outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}.btn-close:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important;border-radius:4px}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn-close:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.btn-close:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important;border-radius:4px}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn-close:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}.btn-close::before{mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m16.267 16.667 6.667-6.533-.933-1.067-6.667 6.667-6.667-6.667-.933 1.067 6.667 6.533-6.667 6.667 1.067.933 6.533-6.667 6.667 6.667.933-1.067z'/%3E%3C/svg%3E\");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color;content:\"\";display:block;height:var(--post-core-dimension-24);width:var(--post-core-dimension-24)}.btn-close:focus,.btn-close:not(:disabled):hover,.pretend-hover.btn-close{color:#000}.btn-close:disabled{color:var(--post-gray-40)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn-close{color:CanvasText;forced-color-adjust:none}.btn-close:focus,.btn-close:not(:disabled):hover,.pretend-hover.btn-close{color:Highlight}}.btn-close-white{color:#e6e6e6}.btn-close-white:focus,.btn-close-white:not(:disabled):hover,.btn-close-white.pretend-hover{color:#fff}.btn-close-white:disabled{color:#999}*{box-sizing:border-box}:host{display:block}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}.popover-container{display:flex;align-items:self-start;padding:.5em;min-width:160px;max-width:280px;max-width:100%}.popover-content{padding:.5em;flex-grow:1}.btn-close{color:inherit}";export{l as P}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{P as post_footer}from"./p-94399c69.js";import"./p-0e216cc4.js";import"./p-82d48128.js";
|