@ganpatiinfo/gids-core-web 22.0.0 → 24.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/css/index.css +111 -64
- package/dist/css/index.css.map +1 -1
- package/dist/gids-action-bar.js +1 -1
- package/dist/gids-activity-gauge.js +1 -1
- package/dist/gids-advanced-tooltip.js +1 -1
- package/dist/gids-bar-chart.js +1 -1
- package/dist/gids-bento-card.js +1 -1
- package/dist/gids-calendar-header-panel.js +1 -1
- package/dist/gids-calendar-month-list.js +1 -1
- package/dist/gids-calendar-picker.d.ts +11 -0
- package/dist/gids-calendar-picker.js +1 -0
- package/dist/gids-calendar-year-list.js +1 -1
- package/dist/gids-calendar.js +1 -1
- package/dist/gids-chart-legend-item.js +1 -1
- package/dist/gids-chart-legend.js +1 -1
- package/dist/gids-chart.js +1 -1
- package/dist/gids-chevron-button.js +1 -1
- package/dist/gids-date-picker-field.d.ts +11 -0
- package/dist/gids-date-picker-field.js +1 -0
- package/dist/gids-date-picker.d.ts +11 -0
- package/dist/gids-date-picker.js +1 -0
- package/dist/gids-day-dropdown-picker.d.ts +11 -0
- package/dist/gids-day-dropdown-picker.js +1 -0
- package/dist/gids-dot.js +1 -1
- package/dist/gids-dropdown-field.js +1 -1
- package/dist/gids-dropdown-picker.js +1 -1
- package/dist/gids-dropdown.js +1 -1
- package/dist/gids-expansion-body-list-item.js +1 -1
- package/dist/gids-expansion-body-list.js +1 -1
- package/dist/gids-expansion-group.js +1 -1
- package/dist/gids-expansion.js +1 -1
- package/dist/gids-field.js +1 -1
- package/dist/gids-filter.js +1 -1
- package/dist/gids-flyout-panel.js +1 -1
- package/dist/gids-form.js +1 -1
- package/dist/gids-header-navigation-item.js +1 -1
- package/dist/gids-header-navigation.js +1 -1
- package/dist/gids-icon.js +1 -1
- package/dist/gids-input.js +1 -1
- package/dist/gids-line-chart.js +1 -1
- package/dist/gids-md-table.js +1 -1
- package/dist/gids-month-dropdown-picker.d.ts +11 -0
- package/dist/gids-month-dropdown-picker.js +1 -0
- package/dist/gids-overflow-container.js +1 -1
- package/dist/gids-overlay-provider.js +1 -1
- package/dist/gids-password-field.js +1 -1
- package/dist/gids-pie-chart.js +1 -1
- package/dist/gids-popover.js +1 -1
- package/dist/gids-profile-menu-header.js +1 -1
- package/dist/gids-profile-menu.js +1 -1
- package/dist/gids-profile.js +1 -1
- package/dist/gids-scrim.js +1 -1
- package/dist/gids-sidebar-item.js +1 -1
- package/dist/gids-sidebar-menu.js +1 -1
- package/dist/gids-sidebar.js +1 -1
- package/dist/gids-skeleton.js +1 -1
- package/dist/gids-tab-item.js +1 -1
- package/dist/gids-tab.js +1 -1
- package/dist/gids-text-field.js +1 -1
- package/dist/gids-toggle-button.js +1 -1
- package/dist/gids-tooltip.js +1 -1
- package/dist/gids-transfer-list.js +1 -1
- package/dist/gids-year-dropdown-picker.d.ts +11 -0
- package/dist/gids-year-dropdown-picker.js +1 -0
- package/dist/{p-TfH966_e.js → p-3H10HA8U.js} +1 -1
- package/dist/{p-_W77iniK.js → p-5SNf54JN.js} +1 -1
- package/dist/p-69VXkSHc.js +1 -0
- package/dist/{p-B_FEFM5I.js → p-B2CvDGSE.js} +1 -1
- package/dist/{p-DLRj-mUX.js → p-B3AB3GQ0.js} +1 -1
- package/dist/p-BBlUduEr.js +1 -0
- package/dist/p-BGBsQSqM.js +1 -0
- package/dist/{p-BIxBMTG9.js → p-BWrCtA6O.js} +1 -1
- package/dist/{p-D0RJMGGj.js → p-BZdaC92p.js} +1 -1
- package/dist/p-Bbw1WCO7.js +1 -0
- package/dist/{p-CIjK3iHM.js → p-Bi-yBBYT.js} +1 -1
- package/dist/{p-DQQhGF5N.js → p-BwDi-0yS.js} +1 -1
- package/dist/{p-DKSnGphd.js → p-By0R-oJV.js} +1 -1
- package/dist/p-CCX8DA2Z.js +1 -0
- package/dist/{p-Ds5IzXj3.js → p-CJ1tQlEt.js} +1 -1
- package/dist/{p-DnRuhvRw.js → p-CL9pZVrx.js} +1 -1
- package/dist/p-CS2U2Mro.js +1 -0
- package/dist/p-Cf9ipNLT.js +1 -0
- package/dist/{p-B2flLE0s.js → p-Cs-QTqUM.js} +1 -1
- package/dist/{p-E13ycS5K.js → p-CytAVtIP.js} +1 -1
- package/dist/{p-CV1-78HB.js → p-D2VR17v2.js} +1 -1
- package/dist/p-D8vooi3L.js +1 -0
- package/dist/{p-DMxvWIj1.js → p-DB0ZJi5J.js} +1 -1
- package/dist/{p-BAqWcL0K.js → p-DHOvFnv4.js} +1 -1
- package/dist/{p--kh67-_Z.js → p-DIrAYgqX.js} +1 -1
- package/dist/p-DJH7wtiu.js +1 -0
- package/dist/{p-bfWlRsx_.js → p-DMN5PI18.js} +1 -1
- package/dist/p-DdJKIFk0.js +1 -0
- package/dist/{p-BCbovLBE.js → p-Dt270JVs.js} +1 -1
- package/dist/p-DuonIHDh.js +1 -0
- package/dist/{p-DzOOjiNH.js → p-_OVEnTXa.js} +1 -1
- package/dist/{p-DrxfD2yZ.js → p-cXOH6OAQ.js} +1 -1
- package/dist/p-lVcUFx2e.js +1 -0
- package/dist/{p-mv_7K1EM.js → p-peMqbYbz.js} +1 -1
- package/dist/p-piTNUZit.js +1 -0
- package/dist/types/components/webComponents/GidsCalendar/GidsCalendar.d.ts +4 -2
- package/dist/types/components/webComponents/GidsCalendarPicker/GidsCalendarPicker.d.ts +55 -0
- package/dist/types/components/webComponents/GidsDatePicker/GidsDatePicker.d.ts +74 -0
- package/dist/types/components/webComponents/GidsDatePickerField/GidsDatePickerField.d.ts +75 -0
- package/dist/types/components/webComponents/GidsDayDropdownPicker/GidsDayDropdownPicker.d.ts +40 -0
- package/dist/types/components/webComponents/GidsDropdown/GidsDropdown.d.ts +10 -8
- package/dist/types/components/webComponents/GidsDropdownField/GidsDropdownField.d.ts +5 -1
- package/dist/types/components/webComponents/GidsDropdownPicker/GidsDropdownPicker.d.ts +1 -0
- package/dist/types/components/webComponents/GidsFlyoutPanel/GidsFlyoutPanel.d.ts +7 -2
- package/dist/types/components/webComponents/GidsForm/GidsForm.d.ts +8 -0
- package/dist/types/components/webComponents/GidsHeaderNavigation/GidsHeaderNavigation.d.ts +0 -1
- package/dist/types/components/webComponents/GidsHeaderNavigationItem/GidsHeaderNavigationItem.d.ts +4 -6
- package/dist/types/components/webComponents/GidsMonthDropdownPicker/GidsMonthDropdownPicker.d.ts +40 -0
- package/dist/types/components/webComponents/GidsYearDropdownPicker/GidsYearDropdownPicker.d.ts +40 -0
- package/dist/types/components.d.ts +894 -70
- package/dist-bundled/es/GidsDatePickerSharedUtils-Dh5qFlYA.js +105 -0
- package/dist-bundled/es/gids-action-bar.js +17 -17
- package/dist-bundled/es/gids-activity-gauge.js +3 -3
- package/dist-bundled/es/gids-advanced-tooltip.js +4 -4
- package/dist-bundled/es/gids-bar-chart.js +3 -3
- package/dist-bundled/es/gids-bento-card.js +1 -1
- package/dist-bundled/es/gids-calendar-header-panel.js +1 -1
- package/dist-bundled/es/gids-calendar-month-list.js +3 -3
- package/dist-bundled/es/gids-calendar-picker.js +6 -0
- package/dist-bundled/es/gids-calendar-year-list.js +4 -4
- package/dist-bundled/es/gids-calendar.js +4 -151
- package/dist-bundled/es/gids-chart-legend-item.js +4 -4
- package/dist-bundled/es/gids-chart-legend.js +3 -3
- package/dist-bundled/es/gids-chart.js +21 -21
- package/dist-bundled/es/gids-chevron-button.js +3 -3
- package/dist-bundled/es/gids-date-picker-field.js +181 -0
- package/dist-bundled/es/gids-date-picker.js +6 -0
- package/dist-bundled/es/gids-day-dropdown-picker.js +6 -0
- package/dist-bundled/es/gids-dot.js +1 -1
- package/dist-bundled/es/gids-dropdown-field.js +29 -19
- package/dist-bundled/es/gids-dropdown-picker.js +2 -2
- package/dist-bundled/es/gids-dropdown.js +3 -3
- package/dist-bundled/es/gids-expansion-body-list-item.js +1 -1
- package/dist-bundled/es/gids-expansion-body-list.js +2 -2
- package/dist-bundled/es/gids-expansion-group.js +1 -1
- package/dist-bundled/es/gids-expansion.js +8 -8
- package/dist-bundled/es/gids-field.js +4 -4
- package/dist-bundled/es/gids-filter.js +1 -1
- package/dist-bundled/es/gids-flyout-panel.js +1 -1
- package/dist-bundled/es/gids-form.js +65 -49
- package/dist-bundled/es/gids-header-navigation-item.js +3 -3
- package/dist-bundled/es/gids-header-navigation.js +59 -60
- package/dist-bundled/es/gids-icon.js +1 -1
- package/dist-bundled/es/gids-input.js +4 -4
- package/dist-bundled/es/gids-line-chart.js +4 -4
- package/dist-bundled/es/gids-md-table.js +60 -60
- package/dist-bundled/es/gids-month-dropdown-picker.js +6 -0
- package/dist-bundled/es/gids-overflow-container.js +1 -1
- package/dist-bundled/es/gids-overlay-provider.js +2 -2
- package/dist-bundled/es/gids-password-field.js +25 -25
- package/dist-bundled/es/gids-pie-chart.js +1 -1
- package/dist-bundled/es/gids-popover.js +1 -1
- package/dist-bundled/es/gids-profile-menu-header.js +4 -4
- package/dist-bundled/es/gids-profile-menu.js +3 -3
- package/dist-bundled/es/gids-profile.js +10 -10
- package/dist-bundled/es/gids-scrim.js +1 -1
- package/dist-bundled/es/gids-sidebar-item.js +1 -1
- package/dist-bundled/es/gids-sidebar-menu.js +1 -1
- package/dist-bundled/es/gids-sidebar.js +7 -7
- package/dist-bundled/es/gids-skeleton.js +1 -1
- package/dist-bundled/es/gids-tab-item.js +1 -1
- package/dist-bundled/es/gids-tab.js +4 -4
- package/dist-bundled/es/gids-text-field.js +12 -12
- package/dist-bundled/es/gids-toggle-button.js +1 -1
- package/dist-bundled/es/gids-tooltip.js +4 -4
- package/dist-bundled/es/gids-transfer-list.js +8 -8
- package/dist-bundled/es/gids-year-dropdown-picker.js +6 -0
- package/dist-bundled/es/{p-TfH966_e-BzZRV8Rj.js → p-3H10HA8U-DWG31yfh.js} +9 -9
- package/dist-bundled/es/{p-_W77iniK-ChKfEOp3.js → p-5SNf54JN-Dke4QoYK.js} +2 -2
- package/dist-bundled/es/{p-kWyyLyT3-VhX9LNzT.js → p-69VXkSHc-vZd5gQWS.js} +28 -28
- package/dist-bundled/es/{p-B_FEFM5I-JoBieRfG.js → p-B2CvDGSE-B-50q6JD.js} +5 -5
- package/dist-bundled/es/{p-DLRj-mUX-BapdQYpI.js → p-B3AB3GQ0-DdgNC9FJ.js} +5 -5
- package/dist-bundled/es/{p-CAjDiWIc-C9dOa7FT.js → p-BBlUduEr-CWdvgBS6.js} +7 -7
- package/dist-bundled/es/{p-BQT5yy5L-C1C_zTi-.js → p-BGBsQSqM-DtooH-AA.js} +8 -4
- package/dist-bundled/es/{p-BIxBMTG9-Ctr342ff.js → p-BWrCtA6O-DHaJx1bg.js} +3 -3
- package/dist-bundled/es/{p-D0RJMGGj-BflZ9l8y.js → p-BZdaC92p-DjVPKyfk.js} +5 -5
- package/dist-bundled/es/p-Bbw1WCO7-CJU0y0iF.js +240 -0
- package/dist-bundled/es/{p-CIjK3iHM-DEW8PRM5.js → p-Bi-yBBYT-CC0Ktxng.js} +1 -1
- package/dist-bundled/es/{p-DQQhGF5N-mCqb5VTE.js → p-BwDi-0yS-vyn3pUko.js} +8 -8
- package/dist-bundled/es/{p-DKSnGphd-CZSPfB-N.js → p-By0R-oJV-DkI-JpEG.js} +3 -3
- package/dist-bundled/es/p-CCX8DA2Z-D0OkaCKx.js +157 -0
- package/dist-bundled/es/{p-Ds5IzXj3-B2o0ML2C.js → p-CJ1tQlEt-B8GYL1we.js} +13 -13
- package/dist-bundled/es/{p-DnRuhvRw-Beh0bANh.js → p-CL9pZVrx-BYVOaGDA.js} +8 -8
- package/dist-bundled/es/{p-DpvdbdZ--C7QlXxK2.js → p-CS2U2Mro-6wGJ-t9P.js} +31 -19
- package/dist-bundled/es/p-Cf9ipNLT-HF4MWnLF.js +86 -0
- package/dist-bundled/es/{p-B2flLE0s-SMg7vg1a.js → p-Cs-QTqUM-CcvsSUzr.js} +2 -2
- package/dist-bundled/es/{p-E13ycS5K-BBDydae3.js → p-CytAVtIP-IZSm6SZx.js} +1 -1
- package/dist-bundled/es/p-D8vooi3L-C5jeoC6H.js +122 -0
- package/dist-bundled/es/{p-DMxvWIj1-BxbvrlFL.js → p-DB0ZJi5J-BEYBVVuq.js} +9 -9
- package/dist-bundled/es/{p-BAqWcL0K-DNkV1R_C.js → p-DHOvFnv4-DZQmbUn3.js} +2 -2
- package/dist-bundled/es/{p--kh67-_Z-B-vf_gng.js → p-DIrAYgqX-BoR42JaL.js} +4 -4
- package/dist-bundled/es/p-DJH7wtiu-BDWtYcRw.js +148 -0
- package/dist-bundled/es/{p-bfWlRsx_-CNZjBYOE.js → p-DMN5PI18-CiBpBUeE.js} +3 -3
- package/dist-bundled/es/{p-Do_VlNHg-Ck03dQOR.js → p-DdJKIFk0-Co3FvR3K.js} +1 -1
- package/dist-bundled/es/{p-BCbovLBE-CDxKiOtS.js → p-Dt270JVs-DJODMRWa.js} +1 -1
- package/dist-bundled/es/p-DuonIHDh-B6YKWTfP.js +86 -0
- package/dist-bundled/es/{p-DzOOjiNH-CqI4E-mj.js → p-_OVEnTXa-q7qjnzI3.js} +2 -2
- package/dist-bundled/es/{p-DrxfD2yZ-Cetyr3S9.js → p-cXOH6OAQ-BRmZ0lXm.js} +10 -10
- package/dist-bundled/es/p-lVcUFx2e-D6N6qefs.js +86 -0
- package/dist-bundled/es/{p-mv_7K1EM-U3yKC45e.js → p-peMqbYbz-BnWVSfKD.js} +1 -1
- package/dist-bundled/es/p-piTNUZit-Jq4qQLgn.js +137 -0
- package/dist-bundled/umd/gids-action-bar.umd.js +3 -3
- package/dist-bundled/umd/gids-activity-gauge.umd.js +1 -1
- package/dist-bundled/umd/gids-advanced-tooltip.umd.js +1 -1
- package/dist-bundled/umd/gids-bar-chart.umd.js +1 -1
- package/dist-bundled/umd/gids-bento-card.umd.js +1 -1
- package/dist-bundled/umd/gids-calendar-header-panel.umd.js +1 -1
- package/dist-bundled/umd/gids-calendar-month-list.umd.js +1 -1
- package/dist-bundled/umd/gids-calendar-picker.umd.js +5 -0
- package/dist-bundled/umd/gids-calendar-year-list.umd.js +1 -1
- package/dist-bundled/umd/gids-calendar.umd.js +2 -2
- package/dist-bundled/umd/gids-chart-legend-item.umd.js +1 -1
- package/dist-bundled/umd/gids-chart-legend.umd.js +1 -1
- package/dist-bundled/umd/gids-chart.umd.js +1 -1
- package/dist-bundled/umd/gids-chevron-button.umd.js +1 -1
- package/dist-bundled/umd/gids-date-picker-field.umd.js +5 -0
- package/dist-bundled/umd/gids-date-picker.umd.js +5 -0
- package/dist-bundled/umd/gids-day-dropdown-picker.umd.js +5 -0
- package/dist-bundled/umd/gids-dot.umd.js +1 -1
- package/dist-bundled/umd/gids-dropdown-field.umd.js +2 -2
- package/dist-bundled/umd/gids-dropdown-picker.umd.js +2 -2
- package/dist-bundled/umd/gids-dropdown.umd.js +2 -2
- package/dist-bundled/umd/gids-expansion-body-list-item.umd.js +1 -1
- package/dist-bundled/umd/gids-expansion-body-list.umd.js +1 -1
- package/dist-bundled/umd/gids-expansion-group.umd.js +2 -2
- package/dist-bundled/umd/gids-expansion.umd.js +1 -1
- package/dist-bundled/umd/gids-field.umd.js +1 -1
- package/dist-bundled/umd/gids-filter.umd.js +2 -2
- package/dist-bundled/umd/gids-flyout-panel.umd.js +2 -2
- package/dist-bundled/umd/gids-form.umd.js +2 -2
- package/dist-bundled/umd/gids-header-navigation-item.umd.js +2 -2
- package/dist-bundled/umd/gids-header-navigation.umd.js +2 -2
- package/dist-bundled/umd/gids-icon.umd.js +2 -2
- package/dist-bundled/umd/gids-input.umd.js +1 -1
- package/dist-bundled/umd/gids-line-chart.umd.js +1 -1
- package/dist-bundled/umd/gids-md-table.umd.js +1 -1
- package/dist-bundled/umd/gids-month-dropdown-picker.umd.js +5 -0
- package/dist-bundled/umd/gids-overflow-container.umd.js +1 -1
- package/dist-bundled/umd/gids-overlay-provider.umd.js +1 -1
- package/dist-bundled/umd/gids-password-field.umd.js +1 -1
- package/dist-bundled/umd/gids-pie-chart.umd.js +2 -2
- package/dist-bundled/umd/gids-popover.umd.js +1 -1
- package/dist-bundled/umd/gids-profile-menu-header.umd.js +1 -1
- package/dist-bundled/umd/gids-profile-menu.umd.js +1 -1
- package/dist-bundled/umd/gids-profile.umd.js +1 -1
- package/dist-bundled/umd/gids-scrim.umd.js +1 -1
- package/dist-bundled/umd/gids-sidebar-item.umd.js +2 -2
- package/dist-bundled/umd/gids-sidebar-menu.umd.js +2 -2
- package/dist-bundled/umd/gids-sidebar.umd.js +2 -2
- package/dist-bundled/umd/gids-skeleton.umd.js +2 -2
- package/dist-bundled/umd/gids-tab-item.umd.js +1 -1
- package/dist-bundled/umd/gids-tab.umd.js +1 -1
- package/dist-bundled/umd/gids-text-field.umd.js +1 -1
- package/dist-bundled/umd/gids-toggle-button.umd.js +2 -2
- package/dist-bundled/umd/gids-tooltip.umd.js +2 -2
- package/dist-bundled/umd/gids-transfer-list.umd.js +1 -1
- package/dist-bundled/umd/gids-year-dropdown-picker.umd.js +5 -0
- package/dist-bundled/umd-complete/gids-core-web.umd.js +9 -9
- package/package.json +55 -7
- package/dist/p-BQT5yy5L.js +0 -1
- package/dist/p-B_St7yaX.js +0 -1
- package/dist/p-CAjDiWIc.js +0 -1
- package/dist/p-Do_VlNHg.js +0 -1
- package/dist/p-DpvdbdZ-.js +0 -1
- package/dist/p-kWyyLyT3.js +0 -1
- package/dist/p-tEbUT3n3.js +0 -1
- package/dist-bundled/es/p-B_St7yaX-Da4DWjGh.js +0 -151
- package/dist-bundled/es/p-tEbUT3n3-Byef6fQN.js +0 -244
- /package/dist-bundled/es/{p-CV1-78HB-C0k_l_CT.js → p-D2VR17v2-C0k_l_CT.js} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(ie,de){typeof exports=="object"&&typeof module<"u"?de(exports):typeof define=="function"&&define.amd?define(["exports"],de):(ie=typeof globalThis<"u"?globalThis:ie||self,de(ie.gidsCoreWebGidsSidebar={}))})(this,(function(ie){"use strict";var K;function de(e,t,n){const s=typeof HTMLElement<"u"?HTMLElement.prototype:null;for(;e&&e!==s;){const i=Object.getOwnPropertyDescriptor(e,t);if(i&&(!n||i.get))return i;e=Object.getPrototypeOf(e)}}var be,Rn=(e,t)=>{var n;Object.entries((n=t.o.t)!=null?n:{}).map((([s,[i]])=>{if(31&i||32&i){const o=e[s],a=de(Object.getPrototypeOf(e),s,!0)||Object.getOwnPropertyDescriptor(e,s);a&&Object.defineProperty(e,s,{get(){return a.get.call(this)},set(r){a.set.call(this,r)},configurable:!0,enumerable:!0}),t.l.has(s)?e[s]=t.l.get(s):o!==void 0&&(e[s]=o)}}))},H=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},Ct=(e,t)=>t in e,oe=(e,t)=>(0,console.error)(e,t),Ee=new Map,kt="http://www.w3.org/1999/xlink",Ln=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"],E=typeof window<"u"?window:{},ye=E.HTMLElement||class{},M={i:0,u:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,s)=>e.addEventListener(t,n,s),rel:(e,t,n,s)=>e.removeEventListener(t,n,s),ce:(e,t)=>new CustomEvent(e,t)},Fn=(()=>{var e;let t=!1;try{(e=E.document)==null||e.addEventListener("e",null,Object.defineProperty({},"passive",{get(){t=!0}}))}catch{}return t})(),He=(()=>{try{return!!E.document.adoptedStyleSheets&&(new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function")}catch{}return!1})(),Be=!!He&&!!E.document&&Object.getOwnPropertyDescriptor(E.document.adoptedStyleSheets,"length").writable,Ue=!1,Et=[],At=[],jn=(e,t)=>n=>{e.push(n),Ue||(Ue=!0,4&M.i?Ke(Ye):M.raf(Ye))},Mt=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(n){oe(n)}e.length=0},Ye=()=>{Mt(Et),Mt(At),(Ue=Et.length>0)&&M.raf(Ye)},Ke=e=>Promise.resolve(void 0).then(e),zn=jn(At);function qn(){const e=this.attachShadow({mode:"open"});be===void 0&&(be=null),be&&(Be?e.adoptedStyleSheets.push(be):e.adoptedStyleSheets=[...e.adoptedStyleSheets,be])}var Pt=e=>{const t=Ze(e,"childNodes");e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&e.tagName!=="SLOT-FB"&&Xe(t,e.tagName).forEach((s=>{s.nodeType===1&&s.tagName==="SLOT-FB"&&(s.hidden=!!Wn(s,we(s),!1).length)}));let n=0;for(n=0;n<t.length;n++){const s=t[n];s.nodeType===1&&Ze(s,"childNodes").length&&Pt(s)}};function Xe(e,t,n){let s,i=0,o=[];for(;i<e.length;i++){if(s=e[i],s["s-sr"]&&(!t||s["s-hn"]===t)&&(n===void 0||we(s)===n)&&(o.push(s),n!==void 0))return o;o=[...o,...Xe(s.childNodes,t,n)]}return o}var Wn=(e,t,n=!0)=>{const s=[];(n&&e["s-sr"]||!e["s-sr"])&&s.push(e);let i=e;for(;i=i.nextSibling;)we(i)!==t||!n&&i["s-sr"]||s.push(i);return s},_t=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t||t==="",we=e=>typeof e["s-sn"]=="string"?e["s-sn"]:e.nodeType===1&&e.getAttribute("slot")||void 0;function Ze(e,t){if("__"+t in e){const n=e["__"+t];return typeof n!="function"?n:n.bind(e)}return typeof e[t]!="function"?e[t]:e[t].bind(e)}var Je,ae,J=new WeakMap,Tt=e=>"sc-"+e.p,Qe=e=>(e=typeof e)=="object"||e==="function",w=(e,t,...n)=>{let s=null,i=null,o=null,a=!1,r=!1;const l=[],c=d=>{for(let h=0;h<d.length;h++)s=d[h],Array.isArray(s)?c(s):s!=null&&typeof s!="boolean"&&((a=typeof e!="function"&&!Qe(s))&&(s=String(s)),a&&r?l[l.length-1].h+=s:l.push(a?Ae(null,s):s),r=a)};if(c(n),t){t.key&&(i=t.key),t.name&&(o=t.name);{const d=t.className||t.class;d&&(t.class=typeof d!="object"?d:Object.keys(d).filter((h=>d[h])).join(" "))}}if(typeof e=="function")return e(t===null?{}:t,l,Vn);const u=Ae(e,null);return u.v=t,l.length>0&&(u.m=l),u.$=i,u.j=o,u},Ae=(e,t)=>({i:0,O:e,h:t??null,S:null,m:null,v:null,$:null,j:null}),Me={},Vn={forEach:(e,t)=>e.map(Ot).forEach(t),map:(e,t)=>e.map(Ot).map(t).map(Gn)},Ot=e=>({vattrs:e.v,vchildren:e.m,vkey:e.$,vname:e.j,vtag:e.O,vtext:e.h}),Gn=e=>{if(typeof e.vtag=="function"){const n={...e.vattrs};return e.vkey&&(n.key=e.vkey),e.vname&&(n.name=e.vname),w(e.vtag,n,...e.vchildren||[])}const t=Ae(e.vtag,e.vtext);return t.v=e.vattrs,t.m=e.vchildren,t.$=e.vkey,t.j=e.vname,t},Nt=e=>{if(!e)return;const t=Object.keys(e);if(t.length===0)return;let n=!1;for(const i of t){if(n)break;for(const o of e[i])if(typeof o=="string"){n=!0;break}}if(!n)return e;const s={};for(const i of t)s[i]=e[i].map((o=>typeof o=="string"?{[o]:0}:o));return s},Dt=(e,t,n)=>e==null||Qe(e)?e:4&t?(n&&typeof e=="string"||e!=="false")&&(e===""||!!e):2&t?typeof e=="string"?parseFloat(e):typeof e=="number"?e:NaN:1&t?String(e):e,Hn=(e,t,n)=>{const s=M.ce(t,n);return e.dispatchEvent(s),s},$t=(e,t,n,s,i,o)=>{if(n===s)return;let a=Ct(e,t),r=t.toLowerCase();if(t==="class"){const l=e.classList,c=Rt(n);let u=Rt(s);l.remove(...c.filter((d=>d&&!u.includes(d)))),l.add(...u.filter((d=>d&&!c.includes(d))))}else if(t==="style"){for(const l in n)s&&s[l]!=null||(l.includes("-")?e.style.removeProperty(l):e.style[l]="");for(const l in s)n&&s[l]===n[l]||(l.includes("-")?e.style.setProperty(l,s[l]):e.style[l]=s[l])}else if(t!=="key"){if(t==="ref")s&&Yn(s,e);else if(e.__lookupSetter__(t)||t[0]!=="o"||t[1]!=="n"){if(t[0]==="a"&&t.startsWith("attr:")){const l=t.slice(5);let c;{const u=H(e);if(u&&u.o&&u.o.t){const d=u.o.t[l];d&&d[1]&&(c=d[1])}}return c||(c=l.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(s==null||s===!1?s===!1&&e.getAttribute(c)!==""||e.removeAttribute(c):e.setAttribute(c,s===!0?"":s))}if(t[0]==="p"&&t.startsWith("prop:")){const l=t.slice(5);try{e[l]=s}catch{}return}{const l=Qe(s);if((a||l&&s!==null)&&!i)try{if(e.tagName.includes("-"))e[t]!==s&&(e[t]=s);else{const u=s??"";t==="list"?a=!1:n!=null&&e[t]===u||(typeof e.__lookupSetter__(t)=="function"?e[t]=u:e.setAttribute(t,u))}}catch{}let c=!1;r!==(r=r.replace(/^xlink\:?/,""))&&(t=r,c=!0),s==null||s===!1?s===!1&&e.getAttribute(t)!==""||(c?e.removeAttributeNS(kt,t):e.removeAttribute(t)):(!a||4&o||i)&&!l&&e.nodeType===1&&(s=s===!0?"":s,c?e.setAttributeNS(kt,t,s):e.setAttribute(t,s))}}else if(t=t[2]==="-"?t.slice(3):Ct(E,r)?r.slice(2):r[2]+t.slice(3),n||s){const l=t.endsWith(Lt);t=t.replace(Un,""),n&&M.rel(e,t,n,l),s&&M.ael(e,t,s,l)}}},Bn=/\s/,Rt=e=>(typeof e=="object"&&e&&"baseVal"in e&&(e=e.baseVal),e&&typeof e=="string"?e.split(Bn):[]),Lt="Capture",Un=new RegExp(Lt+"$"),et=(e,t,n)=>{const s=t.S.nodeType===11&&t.S.host?t.S.host:t.S,i=e&&e.v||{},o=t.v||{};for(const a of Ft(Object.keys(i)))a in o||$t(s,a,i[a],void 0,n,t.i);for(const a of Ft(Object.keys(o)))$t(s,a,i[a],o[a],n,t.i)};function Ft(e){return e.includes("ref")?[...e.filter((t=>t!=="ref")),"ref"]:e}var ve=!1,Pe=!1,_e=!1,T=!1,tt=[],nt=[],Te=(e,t,n)=>{var s;const i=t.m[n];let o,a,r,l=0;if(ve||(_e=!0,i.O==="slot"&&(i.i|=i.m?2:1)),i.h!=null)o=i.S=E.document.createTextNode(i.h);else if(1&i.i)o=i.S=E.document.createTextNode(""),et(null,i,T);else{if(T||(T=i.O==="svg"),!E.document)throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(o=i.S=E.document.createElementNS(T?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!ve&&2&i.i?"slot-fb":i.O),T&&i.O==="foreignObject"&&(T=!1),et(null,i,T),i.m){const c=i.O==="template"?o.content:o;for(l=0;l<i.m.length;++l)a=Te(e,i,l),a&&c.appendChild(a)}i.O==="svg"?T=!1:o.tagName==="foreignObject"&&(T=!0)}return o["s-hn"]=ae,3&i.i&&(o["s-sr"]=!0,o["s-cr"]=Je,o["s-sn"]=i.j||"",o["s-rf"]=(s=i.v)==null?void 0:s.ref,(function(c){if(c.assignedElements||c.assignedNodes||!c["s-sr"])return;const u=d=>(function(h){const m=[],g=this["s-sn"];h?.flatten&&console.error(`
|
|
2
2
|
Flattening is not supported for Stencil non-shadow slots.
|
|
3
3
|
You can use \`.childNodes\` to nested slot fallback content.
|
|
4
4
|
If you have a particular use case, please open an issue on the Stencil repo.
|
|
5
|
-
`);const y=this["s-cr"].parentElement;return(y.__childNodes?y.childNodes:(v=>{const p=[];for(let f=0;f<v.length;f++){const b=v[f]["s-nr"]||void 0;b&&b.isConnected&&p.push(b)}return p})(y.childNodes)).forEach((v=>{g===we(v)&&m.push(v)})),d?m.filter((v=>v.nodeType===1)):m}).bind(c);c.assignedElements=u(!0),c.assignedNodes=u(!1)})(o),r=e&&e.m&&e.m[n],r&&r.O===i.O&&e.S&&zt(e.S)),o},zt=e=>{A.i|=1;const t=e.closest(oe.toLowerCase());if(t!=null){const n=Array.from(t.__childNodes||t.childNodes).find((i=>i["s-cr"])),s=Array.from(e.__childNodes||e.childNodes);for(const i of n?s.reverse():s)i["s-sh"]!=null&&(R(t,i,n??null),i["s-sh"]=void 0,_e=!0)}A.i&=-2},Oe=(e,t)=>{A.i|=1;const n=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let s=e;for(;s=s.nextSibling;)s&&s["s-sn"]===e["s-sn"]&&s["s-sh"]===oe&&n.push(s)}for(let s=n.length-1;s>=0;s--){const i=n[s];i["s-hn"]!==oe&&i["s-ol"]&&(R(Se(i).parentNode,i,Se(i)),i["s-ol"].remove(),i["s-ol"]=void 0,i["s-sh"]=void 0,_e=!0),t&&Oe(i,t)}A.i&=-2},qt=(e,t,n,s,i,o)=>{let a,r=e["s-cr"]&&e["s-cr"].parentNode||e;for(r.shadowRoot&&r.tagName===oe&&(r=r.shadowRoot),n.O==="template"&&(r=r.content);i<=o;++i)s[i]&&(a=Te(null,n,i),a&&(s[i].S=a,R(r,a,Se(t))))},Wt=(e,t,n)=>{for(let s=t;s<=n;++s){const i=e[s];if(i){const o=i.S;Vt(i),o&&(Pe=!0,o["s-ol"]?o["s-ol"].remove():Oe(o,!0),o.remove())}}},Ne=(e,t,n=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:n?(n&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),Se=e=>e&&e["s-ol"]||e,de=(e,t,n=!1)=>{const s=t.S=e.S,i=e.m,o=t.m,a=t.O,r=t.h;let l;r==null?(T=a==="svg"||a!=="foreignObject"&&T,a!=="slot"||ve||e.j!==t.j&&(t.S["s-sn"]=t.j||"",zt(t.S.parentElement)),et(e,t,T),i!==null&&o!==null?((c,u,d,h,m=!1)=>{let g,y,v=0,p=0,f=0,b=0,x=u.length-1,S=u[0],I=u[x],C=h.length-1,k=h[0],M=h[C];const P=d.O==="template"?c.content:c;for(;v<=x&&p<=C;)if(S==null)S=u[++v];else if(I==null)I=u[--x];else if(k==null)k=h[++p];else if(M==null)M=h[--C];else if(Ne(S,k,m))de(S,k,m),S=u[++v],k=h[++p];else if(Ne(I,M,m))de(I,M,m),I=u[--x],M=h[--C];else if(Ne(S,M,m))S.O!=="slot"&&M.O!=="slot"||Oe(S.S.parentNode,!1),de(S,M,m),R(P,S.S,I.S.nextSibling),S=u[++v],M=h[--C];else if(Ne(I,k,m))S.O!=="slot"&&M.O!=="slot"||Oe(I.S.parentNode,!1),de(I,k,m),R(P,I.S,S.S),I=u[--x],k=h[++p];else{for(f=-1,b=v;b<=x;++b)if(u[b]&&u[b].$!==null&&u[b].$===k.$){f=b;break}f>=0?(y=u[f],y.O!==k.O?g=Te(u&&u[p],d,f):(de(y,k,m),u[f]=void 0,g=y.S),k=h[++p]):(g=Te(u&&u[p],d,p),k=h[++p]),g&&R(Se(S.S).parentNode,g,Se(S.S))}v>x?qt(c,h[C+1]==null?null:h[C+1].S,d,h,p,C):p>C&&Wt(u,v,x)})(s,i,t,o,n):o!==null?(e.h!==null&&(s.textContent=""),qt(s,null,t,o,0,o.length-1)):!n&&i!==null&&Wt(i,0,i.length-1),T&&a==="svg"&&(T=!1)):(l=s["s-cr"])?l.parentNode.textContent=r:e.h!==r&&(s.data=r)},B=[],Gt=e=>{let t,n,s;const i=e.__childNodes||e.childNodes;for(const o of i){if(o["s-sr"]&&(t=o["s-cr"])&&t.parentNode){n=t.parentNode.__childNodes||t.parentNode.childNodes;const a=o["s-sn"];for(s=n.length-1;s>=0;s--)if(t=n[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===o["s-hn"]||t["s-sh"]&&t["s-sh"]===o["s-hn"]))if(Tt(t,a)){let r=B.find((l=>l.k===t));Pe=!0,t["s-sn"]=t["s-sn"]||a,r?(r.k["s-sh"]=o["s-hn"],r.N=o):(t["s-sh"]=o["s-hn"],B.push({N:o,k:t})),t["s-sr"]&&B.map((l=>{Tt(l.k,t["s-sn"])&&(r=B.find((c=>c.k===t)),r&&!l.N&&(l.N=r.N))}))}else B.some((r=>r.k===t))||B.push({k:t})}o.nodeType===1&&Gt(o)}},Vt=e=>{e.v&&e.v.ref&&tt.push((()=>e.v.ref(null))),e.m&&e.m.map(Vt)},Kn=(e,t)=>{nt.push((()=>e(t)))},R=(e,t,n,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,n);const{slotNode:i}=(function(o,a){var r;if(!(a=a||((r=o["s-ol"])==null?void 0:r.parentElement)))return{slotNode:null,slotName:""};const l=o["s-sn"]=we(o)||"";return{slotNode:Xe(Ze(a,"childNodes"),a.tagName,l)[0],slotName:l}})(t);return i&&!s&&i.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,n):e?.insertBefore(t,n)},Xn=(e,t,n=!1)=>{var s,i,o,a,r;const l=e.$hostElement$,c=e.o,u=e.M||Me(null,null);var d;const h=(d=t)&&d.O===Ae?t:w(null,null,t);if(oe=l.tagName,c.C&&(h.v=h.v||{},c.C.forEach((([m,g])=>{h.v[g]=l[m]}))),n&&h.v)for(const m of Object.keys(h.v))l.hasAttribute(m)&&!["key","ref","style","class"].includes(m)&&(h.v[m]=l[m]);if(h.O=null,h.i|=4,e.M=h,h.S=u.S=l.shadowRoot||l,ve=!(!(1&c.i)||128&c.i),Je=l["s-cr"],Pe=!1,de(u,h,n),A.i|=1,_e){Gt(h.S);for(const m of B){const g=m.k;if(!g["s-ol"]&&E.document){const y=E.document.createTextNode("");y["s-nr"]=g,R(g.parentNode,g["s-ol"]=y,g,n)}}for(const m of B){const g=m.k,y=m.N;if(g.nodeType===1&&n&&(g["s-ih"]=(s=g.hidden)!=null&&s),y){const v=y.parentNode;let p=y.nextSibling;if(p&&p.nodeType===1){let f=(i=g["s-ol"])==null?void 0:i.previousSibling;for(;f;){let b=(o=f["s-nr"])!=null?o:null;if(b&&b["s-sn"]===g["s-sn"]&&v===(b.__parentNode||b.parentNode)){for(b=b.nextSibling;b===g||b?.["s-sr"];)b=b?.nextSibling;if(!b||!b["s-nr"]){p=b;break}}f=f.previousSibling}}if((!p&&v!==(g.__parentNode||g.parentNode)||(g.__nextSibling||g.nextSibling)!==p)&&g!==p){if(R(v,g,p,n),g.nodeType===8&&g.nodeValue.startsWith("s-nt-")){const f=E.document.createTextNode(g.nodeValue.replace(/^s-nt-/,""));f["s-hn"]=g["s-hn"],f["s-sn"]=g["s-sn"],f["s-sh"]=g["s-sh"],f["s-sr"]=g["s-sr"],f["s-ol"]=g["s-ol"],f["s-ol"]["s-nr"]=f,R(g.parentNode,f,g,n),g.parentNode.removeChild(g)}g.nodeType===1&&g.tagName!=="SLOT-FB"&&(g.hidden=(a=g["s-ih"])!=null&&a)}g&&typeof y["s-rf"]=="function"&&y["s-rf"](y)}else g.nodeType===1&&(g.hidden=!0)}}if(Pe&&_t(h.S),A.i&=-2,B.length=0,!ve&&!(1&c.i)&&l["s-cr"]){const m=h.S.__childNodes||h.S.childNodes;for(const g of m)if(g["s-hn"]!==oe&&!g["s-sh"]){if(n&&g["s-ih"]==null&&(g["s-ih"]=(r=g.hidden)!=null&&r),g.nodeType===1)g.hidden=!0;else if(g.nodeType===3&&g.nodeValue.trim()){const y=E.document.createComment("s-nt-"+g.nodeValue);y["s-sn"]=g["s-sn"],R(g.parentNode,y,g,n),g.parentNode.removeChild(g)}}}Je=void 0,tt.forEach((m=>m())),tt.length=0,nt.forEach((m=>m())),nt.length=0},Ht=(e,t)=>{if(t&&!e.A&&t["s-p"]){const n=t["s-p"].push(new Promise((s=>e.A=()=>{t["s-p"].splice(n-1,1),s()})))}},st=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);Ht(e,e.R);const n=()=>Zn(e,t);if(!t)return qn(n);queueMicrotask((()=>{n()}))},Zn=(e,t)=>{const n=e.$hostElement$,s=n;if(!s)throw new Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let i;return i=Ie(s,t?"componentWillLoad":"componentWillUpdate",void 0,n),i=Bt(i,(()=>Ie(s,"componentWillRender",void 0,n))),Bt(i,(()=>Qn(e,s,t)))},Bt=(e,t)=>Jn(e)?e.then(t).catch((n=>{console.error(n),t()})):t(),Jn=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",Qn=async(e,t,n)=>{var s;const i=e.$hostElement$,o=i["s-rc"];n&&(a=>{const r=a.o,l=a.$hostElement$,c=r.i,u=((d,h)=>{var m,g,y;const v=Ot(h),p=Ee.get(v);if(!E.document)return v;if(d=d.nodeType===11?d:E.document,p)if(typeof p=="string"){let f,b=Z.get(d=d.head||d);if(b||Z.set(d,b=new Set),!b.has(v)){f=E.document.createElement("style"),f.textContent=p;const x=(m=A._)!=null?m:(function(){var S,I,C;return(C=(I=(S=E.document.head)==null?void 0:S.querySelector('meta[name="csp-nonce"]'))==null?void 0:I.getAttribute("content"))!=null?C:void 0})();if(x!=null&&f.setAttribute("nonce",x),!(1&h.i))if(d.nodeName==="HEAD"){const S=d.querySelectorAll("link[rel=preconnect]"),I=S.length>0?S[S.length-1].nextSibling:d.querySelector("style");d.insertBefore(f,I?.parentNode===d?I:null)}else if("host"in d)if(He){const S=new((g=d.defaultView)!=null?g:d.ownerDocument.defaultView).CSSStyleSheet;S.replaceSync(p),Be?d.adoptedStyleSheets.unshift(S):d.adoptedStyleSheets=[S,...d.adoptedStyleSheets]}else{const S=d.querySelector("style");S?S.textContent=p+S.textContent:d.prepend(f)}else d.append(f);1&h.i&&d.insertBefore(f,null),4&h.i&&(f.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),b&&b.add(v)}}else{let f=Z.get(d);if(f||Z.set(d,f=new Set),!f.has(v)){const b=(y=d.defaultView)!=null?y:d.ownerDocument.defaultView;let x;if(p.constructor===b.CSSStyleSheet)x=p;else{x=new b.CSSStyleSheet;for(let S=0;S<p.cssRules.length;S++)x.insertRule(p.cssRules[S].cssText,S)}Be?d.adoptedStyleSheets.push(x):d.adoptedStyleSheets=[...d.adoptedStyleSheets,x],f.add(v)}}return v})(l.shadowRoot?l.shadowRoot:l.getRootNode(),r);10&c&&(l["s-sc"]=u,l.classList.add(u+"-h"))})(e),es(e,t,i,n),o&&(o.map((a=>a())),i["s-rc"]=void 0);{const a=(s=i["s-p"])!=null?s:[],r=()=>ts(e);a.length===0?r():(Promise.all(a).then(r).catch(r),e.i|=4,a.length=0)}},es=(e,t,n,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,Xn(e,t,s)}catch(i){ie(i,e.$hostElement$)}return null},ts=e=>{const t=e.$hostElement$,n=t,s=e.R;Ie(n,"componentDidRender",void 0,t),64&e.i?Ie(n,"componentDidUpdate",void 0,t):(e.i|=64,ss(t),Ie(n,"componentDidLoad",void 0,t),e.L(t),s||ns()),e.A&&(e.A(),e.A=void 0),512&e.i&&Ke((()=>st(e,!1))),e.i&=-517},ns=()=>{Ke((()=>Bn(E,"appload",{detail:{namespace:"gids-core-web"}})))},Ie=(e,t,n,s)=>{if(e&&e[t])try{return e[t](n)}catch(i){ie(i,s)}},ss=e=>e.classList.add("hydrated"),Ut=(e,t,n,s)=>{const i=H(e);if(!i)return;const o=e,a=i.l.get(t),r=i.i,l=o;n=$t(n,s.t[t][0],!!(64&s.i));const c=Number.isNaN(a)&&Number.isNaN(n);if(n!==a&&!c){if(i.l.set(t,n),s.F){const u=s.F[t];u&&u.map((d=>{try{const[[h,m]]=Object.entries(d);(128&r||1&m)&&(l?l[h](n,a,t):i.T.push((()=>{i.D[h](n,a,t)})))}catch(h){ie(h,o)}}))}if(2&r){if(l.componentShouldUpdate&&l.componentShouldUpdate(n,a,t)===!1&&!(16&r))return;16&r||st(i,!1)}}},is=(e,t,n)=>{var s,i;const o=e.prototype;64&t.i&&1&n&&Fn.forEach((a=>{const r=o[a];Object.defineProperty(o,a,{value(...l){var c;const u=H(this),d=this;d?typeof r=="function"&&r.call(d,...l):(c=u?.H)==null||c.then((h=>{const m=h[a];typeof m=="function"&&m.call(h,...l)}))}})}));{e.watchers&&!t.F&&(t.F=Dt(e.watchers)),e.deserializers&&!t.P&&(t.P=e.deserializers),e.serializers&&!t.U&&(t.U=e.serializers);const a=Object.entries((s=t.t)!=null?s:{});a.map((([r,[l]])=>{if(31&l||32&l){const{get:c,set:u}=ce(o,r)||{};c&&(t.t[r][0]|=2048),u&&(t.t[r][0]|=4096),Object.defineProperty(o,r,{get(){return c?c.apply(this):(d=r,H(this).l.get(d));var d},configurable:!0,enumerable:!0}),Object.defineProperty(o,r,{set(d){const h=H(this);if(h){if(u)return(32&l?this[r]:h.$hostElement$[r])===void 0&&h.l.get(r)&&(d=h.l.get(r)),u.apply(this,[$t(d,l,!!(64&t.i))]),void Ut(this,r,d=32&l?this[r]:h.$hostElement$[r],t);Ut(this,r,d,t)}}})}}));{const r=new Map;o.attributeChangedCallback=function(l,c,u){A.jmp((()=>{var d;const h=r.get(l),m=H(this);if(this.hasOwnProperty(h),o.hasOwnProperty(h)&&typeof this[h]=="number"&&this[h]==u)return;if(h==null){const f=m?.i;if(m&&f&&!(8&f)&&u!==c){const b=this,x=(d=t.F)==null?void 0:d[l];x?.forEach((S=>{const[[I,C]]=Object.entries(S);b[I]!=null&&(128&f||1&C)&&b[I].call(b,u,c,l)}))}return}const g=a.find((([f])=>f===h)),y=g&&4&g[1][0],v=y&&u===null&&this[h]===void 0;y&&(u=u!==null&&u!=="false");const p=Object.getOwnPropertyDescriptor(o,h);v||u==this[h]||p.get&&!p.set||(this[h]=u)}))},e.observedAttributes=Array.from(new Set([...Object.keys((i=t.F)!=null?i:{}),...a.filter((([l,c])=>31&c[0])).map((([l,c])=>{var u;const d=c[1]||l;return r.set(d,l),512&c[0]&&((u=t.C)==null||u.push([l,d])),d}))]))}}return e},De=(e,t)=>{const n={i:t[0],p:t[1]};try{n.t=t[2],n.W=t[3],n.F=Dt(e.F),n.P=e.P,n.U=e.U,n.C=[];const s=e.prototype.connectedCallback,i=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((o,a)=>{const r={i:0,$hostElement$:o,o:a,l:new Map,B:new Map};r.H=new Promise((c=>r.L=c)),o["s-p"]=[],o["s-rc"]=[];const l=r;o.__stencil__getHostRef=()=>l,512&a.i&&Ln(o,r)})(this,n)},connectedCallback(){if(!this.__hasHostListenerAttached){const o=H(this);if(!o)return;Yt(this,o,n.W),this.__hasHostListenerAttached=!0}(o=>{if(!(1&A.i)){const a=H(o);if(!a)return;const r=a.o;if(1&a.i)Yt(o,a,r.W),a?.D||a?.H&&a.H.then((()=>{}));else{a.i|=1,12&r.i&&(l=>{if(!E.document)return;const c=l["s-cr"]=E.document.createComment("");c["s-cn"]=!0,R(l,c,l.firstChild)})(o);{let l=o;for(;l=l.parentNode||l.host;)if(l["s-p"]){Ht(a,a.R=l);break}}r.t&&Object.entries(r.t).map((([l,[c]])=>{if(31&c&&Object.prototype.hasOwnProperty.call(o,l)){const u=o[l];delete o[l],o[l]=u}})),(async(l,c,u)=>{let d;try{if(!(32&c.i)&&(c.i|=32,d=l.constructor,customElements.whenDefined(l.localName).then((()=>c.i|=128)),d&&d.style)){let g;typeof d.style=="string"&&(g=d.style);const y=Ot(u);Ee.has(y)||((v,p,f)=>{let b=Ee.get(v);He&&f?(b=b||new CSSStyleSheet,typeof b=="string"?b=p:b.replaceSync(p)):b=p,Ee.set(v,b)})(y,g,!!(1&u.i))}const h=c.R,m=()=>st(c,!0);h&&h["s-rc"]?h["s-rc"].push(m):m()}catch(h){ie(h,l),c.A&&(c.A(),c.A=void 0),c.L&&c.L(l)}})(o,a,r)}}})(this),s&&s.call(this)},disconnectedCallback(){(async o=>{if(!(1&A.i)){const a=H(o);a?.V&&(a.V.map((r=>r())),a.V=void 0)}Z.has(o)&&Z.delete(o),o.shadowRoot&&Z.has(o.shadowRoot)&&Z.delete(o.shadowRoot)})(this),i&&i.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${n.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else Wn.call(this,n)}}),Object.defineProperty(e,"is",{value:n.p,configurable:!0}),is(e,n,3)}catch(s){return ie(s),e}},os=(e,t)=>t,Yt=(e,t,n)=>{n&&E.document&&n.map((([s,i,o])=>{const a=rs(E.document,e,s),r=as(t,o),l=ls(s);A.ael(a,i,r,l),(t.V=t.V||[]).push((()=>A.rel(a,i,r,l)))}))},as=(e,t)=>n=>{try{e.$hostElement$[t](n)}catch(s){ie(s,e.$hostElement$)}},rs=(e,t,n)=>8&n?E:t,ls=e=>jn?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e);function Ji(e){return e}function Kt(e){var t,n,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Kt(e[t]))&&(s&&(s+=" "),s+=n)}else for(n in e)e[n]&&(s&&(s+=" "),s+=n);return s}function O(){for(var e,t,n=0,s="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Kt(e))&&(s&&(s+=" "),s+=t);return s}const $e=99,cs=Object.freeze(Object.defineProperty({__proto__:null,getDisplayContent:(e,t)=>e===void 0?t??"":e>$e?`${$e}+`:e.toString(),maxCount:$e,shouldIncludeA11yText:(e,t,n)=>e==="dot"||t!==void 0&&t>$e||n},Symbol.toStringTag,{value:"Module"})),Xt=e=>{const t=Array.isArray(e)?e[e.length-1]:e;return typeof t=="string"&&t.trim().endsWith(".")},ds=/\w/,us=e=>e.replace(ds,t=>t.toLocaleUpperCase()),Zt=(e,t)=>typeof e=="function"?e(t):t?us(e):e,hs=Object.freeze(Object.defineProperty({__proto__:null,getIndicatorText:({children:e,fieldRequirement:t,fieldRequirementOptionalText:n,fieldRequirementRequiredText:s,isLabelSentence:i})=>{const o=i?i(e):Xt(e);if(t==="required")return Zt(s&&s.length>0?s:"(required)",o);if(t==="optional")return Zt(n&&n.length>0?n:"(optional)",o)},isSentence:Xt},Symbol.toStringTag,{value:"Module"})),gs=Object.freeze(Object.defineProperty({__proto__:null,getGidsBadgeClassNames:({appearance:e,type:t,outline:n},s)=>O("gids-badge",{"gids-badge--danger":e==="danger","gids-badge--positive":e==="positive","gids-badge--warning":e==="warning","gids-badge--inverse":e==="inverse"},{"gids-badge--dot":t==="dot"},{"gids-badge--outline":n},s)},Symbol.toStringTag,{value:"Module"})),ms=Object.freeze(Object.defineProperty({__proto__:null,getGidsCheckboxControlClassNames:e=>O("gids-checkbox-control",e)},Symbol.toStringTag,{value:"Module"})),ps=Object.freeze(Object.defineProperty({__proto__:null,getGidsCheckboxClassNames:e=>O("gids-checkbox",e)},Symbol.toStringTag,{value:"Module"})),fs=Object.freeze(Object.defineProperty({__proto__:null,getGidsDisplaTagClassNames:({size:e,appearance:t,color:n},s)=>O("gids-display-tag",{"gids-display-tag--xsmall":e==="xs","gids-display-tag--small":e==="sm","gids-display-tag--large":e==="lg","gids-display-tag--accent-1":t==="subtle"&&n==="accent-1","gids-display-tag--accent-2":t==="subtle"&&n==="accent-2","gids-display-tag--accent-3":t==="subtle"&&n==="accent-3","gids-display-tag--accent-4":t==="subtle"&&n==="accent-4","gids-display-tag--accent-5":t==="subtle"&&n==="accent-5","gids-display-tag--bold-accent-1":t==="bold"&&n==="accent-1","gids-display-tag--bold-accent-2":t==="bold"&&n==="accent-2","gids-display-tag--bold-accent-3":t==="bold"&&n==="accent-3","gids-display-tag--bold-accent-4":t==="bold"&&n==="accent-4","gids-display-tag--bold-accent-5":t==="bold"&&n==="accent-5"},s)},Symbol.toStringTag,{value:"Module"})),bs=Object.freeze(Object.defineProperty({__proto__:null,getGidsDividerClassNames:({orientation:e},t)=>O("gids-divider",{"gids-divider--vertical":e==="vertical"},t)},Symbol.toStringTag,{value:"Module"})),ys=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>O("gids-icon",{"gids-icon--xs":e==="xs","gids-icon--sm":e==="sm","gids-icon--md":e==="md","gids-icon--lg":e==="lg"},t)},Symbol.toStringTag,{value:"Module"})),ws=Object.freeze(Object.defineProperty({__proto__:null,getGidsLabelClassNames:({disabled:e},t)=>O("gids-label",{"gids-label--disabled":e},t)},Symbol.toStringTag,{value:"Module"})),vs=Object.freeze(Object.defineProperty({__proto__:null,getGidsRadioControlClassNames:e=>O("gids-radio-control",e)},Symbol.toStringTag,{value:"Module"})),Ss=Object.freeze(Object.defineProperty({__proto__:null,getGidsRadioClassNames:e=>O("gids-radio",e)},Symbol.toStringTag,{value:"Module"})),Is=Object.freeze(Object.defineProperty({__proto__:null,getGidsSidebarItemClassNames:e=>O("gids-sidebar-item",e)},Symbol.toStringTag,{value:"Module"})),xs=Object.freeze(Object.defineProperty({__proto__:null,getGidsSidebarMenuItemClassNames:({selected:e,appearance:t,selectionAppearance:n},s)=>O("gids-sidebar-menu-item",{"gids-sidebar-menu-item--appearance-primary":t==="primary"&&!e,"gids-sidebar-menu-item--appearance-subtle":t==="subtle"&&!e,"gids-sidebar-menu-item--appearance-positive":t==="positive"&&!e,"gids-sidebar-menu-item--appearance-danger":t==="danger"&&!e,"gids-sidebar-menu-item--appearance-information":t==="information"&&!e,"gids-sidebar-menu-item--appearance-warning":t==="warning"&&!e,"gids-sidebar-menu-item--selection-appearance-default":n==="default"&&e,"gids-sidebar-menu-item--selection-appearance-primary":n==="primary"&&e,"gids-sidebar-menu-item--selection-appearance-subtle":n==="subtle"&&e,"gids-sidebar-menu-item--selection-appearance-positive":n==="positive"&&e,"gids-sidebar-menu-item--selection-appearance-danger":n==="danger"&&e,"gids-sidebar-menu-item--selection-appearance-information":n==="information"&&e,"gids-sidebar-menu-item--selection-appearance-warning":n==="warning"&&e},s)},Symbol.toStringTag,{value:"Module"})),Cs=Object.freeze(Object.defineProperty({__proto__:null,getGidsSidebarMenuClassNames:e=>O("gids-sidebar-menu",e)},Symbol.toStringTag,{value:"Module"})),ks=Object.freeze(Object.defineProperty({__proto__:null,getGidsSidebarClassNames:({appearance:e,height:t},n)=>O("gids-sidebar",{"gids-sidebar--appearance-subtle":e==="subtle","gids-sidebar--appearance-primary":e==="primary","gids-sidebar--height-full":t==="full"},n)},Symbol.toStringTag,{value:"Module"})),Es=Object.freeze(Object.defineProperty({__proto__:null,getGidsStatusTagClassNames:({appearance:e,size:t,type:n},s)=>O("gids-status-tag",{"gids-status-tag--subtle":e==="subtle","gids-status-tag--bold":e==="bold","gids-status-tag--xs":t==="xs","gids-status-tag--md":t==="md","gids-status-tag--lg":t==="lg","gids-status-tag--subtlest-new":n==="new"&&e==="subtlest","gids-status-tag--subtlest-archived":n==="archived"&&e==="subtlest","gids-status-tag--subtlest-cancelled":n==="cancelled"&&e==="subtlest","gids-status-tag--subtlest-draft":n==="draft"&&e==="subtlest","gids-status-tag--subtlest-failed":n==="failed"&&e==="subtlest","gids-status-tag--subtlest-in-progress":n==="in-progress"&&e==="subtlest","gids-status-tag--subtlest-information":n==="information"&&e==="subtlest","gids-status-tag--subtlest-not-started":n==="not-started"&&e==="subtlest","gids-status-tag--subtlest-paused":n==="paused"&&e==="subtlest","gids-status-tag--subtlest-pending":n==="pending"&&e==="subtlest","gids-status-tag--subtlest-scheduled":n==="scheduled"&&e==="subtlest","gids-status-tag--subtlest-success":n==="success"&&e==="subtlest","gids-status-tag--subtlest-synced":n==="synced"&&e==="subtlest","gids-status-tag--subtlest-syncing":n==="syncing"&&e==="subtlest","gids-status-tag--subtlest-unknown":n==="unknown"&&e==="subtlest","gids-status-tag--subtlest-verified":n==="verified"&&e==="subtlest","gids-status-tag--subtlest-warning":n==="warning"&&e==="subtlest","gids-status-tag--subtle-new":n==="new"&&e==="subtle","gids-status-tag--subtle-archived":n==="archived"&&e==="subtle","gids-status-tag--subtle-cancelled":n==="cancelled"&&e==="subtle","gids-status-tag--subtle-draft":n==="draft"&&e==="subtle","gids-status-tag--subtle-failed":n==="failed"&&e==="subtle","gids-status-tag--subtle-in-progress":n==="in-progress"&&e==="subtle","gids-status-tag--subtle-information":n==="information"&&e==="subtle","gids-status-tag--subtle-not-started":n==="not-started"&&e==="subtle","gids-status-tag--subtle-paused":n==="paused"&&e==="subtle","gids-status-tag--subtle-pending":n==="pending"&&e==="subtle","gids-status-tag--subtle-scheduled":n==="scheduled"&&e==="subtle","gids-status-tag--subtle-success":n==="success"&&e==="subtle","gids-status-tag--subtle-synced":n==="synced"&&e==="subtle","gids-status-tag--subtle-syncing":n==="syncing"&&e==="subtle","gids-status-tag--subtle-unknown":n==="unknown"&&e==="subtle","gids-status-tag--subtle-verified":n==="verified"&&e==="subtle","gids-status-tag--subtle-warning":n==="warning"&&e==="subtle","gids-status-tag--bold-new":n==="new"&&e==="bold","gids-status-tag--bold-archived":n==="archived"&&e==="bold","gids-status-tag--bold-cancelled":n==="cancelled"&&e==="bold","gids-status-tag--bold-draft":n==="draft"&&e==="bold","gids-status-tag--bold-failed":n==="failed"&&e==="bold","gids-status-tag--bold-in-progress":n==="in-progress"&&e==="bold","gids-status-tag--bold-information":n==="information"&&e==="bold","gids-status-tag--bold-not-started":n==="not-started"&&e==="bold","gids-status-tag--bold-paused":n==="paused"&&e==="bold","gids-status-tag--bold-pending":n==="pending"&&e==="bold","gids-status-tag--bold-scheduled":n==="scheduled"&&e==="bold","gids-status-tag--bold-success":n==="success"&&e==="bold","gids-status-tag--bold-synced":n==="synced"&&e==="bold","gids-status-tag--bold-syncing":n==="syncing"&&e==="bold","gids-status-tag--bold-unknown":n==="unknown"&&e==="bold","gids-status-tag--bold-verified":n==="verified"&&e==="bold","gids-status-tag--bold-warning":n==="warning"&&e==="bold"},s),getStatusTagIconName:e=>{if(!e)return"new";switch(e){case"archived":return"archive";case"cancelled":return"cross";case"draft":return"draft";case"failed":return"danger";case"in-progress":return"in-progress";case"information":return"information";case"not-started":return"new";case"paused":return"pause";case"pending":return"pending";case"scheduled":return"time";case"success":return"positive";case"synced":return"syncing";case"syncing":return"syncing";case"unknown":return"question";case"verified":return"verified";case"warning":return"warning";default:return"new"}},getStatusTagText:e=>e?e.split("-").map((s,i)=>i===0&&s?s.charAt(0).toUpperCase()+s.slice(1):s).join(" "):void 0},Symbol.toStringTag,{value:"Module"})),it=Symbol("defaultPath"),Jt=Symbol("pathSet"),ot="gids-asset-paths-set";class Ms extends EventTarget{#n=new Map;constructor(){super()}#e(t,n){this.#n.set(t,n)}#t(t){return this.#n.get(t)??null}#s=()=>{this.dispatchEvent(new Event(ot))};haveAssetPathsBeenSet(){return this.#t(Jt)!==null}setAssetPaths(t,n){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#e(it,t);else{for(const s in t)this.#e(s,t[s]);n&&this.#e(it,n)}this.#e(Jt,"true"),setTimeout(this.#s,0)}}getAssetFilePath(t){const n=this.#t(t);if(n===null){const s=this.#t(it);if(s!==null)return`${s}${s.endsWith("/")?"":"/"}${t}`}return n}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(ot,t,{once:!0}),()=>{this.removeEventListener(ot,t)}}}const at=Symbol.for("GIDS"),As=()=>(globalThis[at]===void 0&&(globalThis[at]={assetPaths:{}}),globalThis[at]),Ps=e=>{const t=As().assetPaths;return t[e]===void 0&&(t[e]=new Ms),t[e]};function rt(){return Ps("@ganpatiinfo/gids-web-shared")}function _s(){return rt().haveAssetPathsBeenSet()}function Qt(e){return rt().getAssetFilePath(e)}function Ts(e){return rt().onAssetPathsSet(e)}let Os=0;const lt=(e,t="gids")=>e||`${t}-${Os++}`,en=e=>e!==void 0&&(!Array.isArray(e)||e.length>0),{getDisplayContent:tn,shouldIncludeA11yText:Ns}=cs,{getGidsBadgeClassNames:Ds}=gs,nn=({appearance:e,type:t,count:n,accessibleText:s,outline:i,class:o,...a})=>{const r=Ns(t,n,en(s));return w("span",{class:Ds({appearance:e,type:t,outline:i},o),...a},r&&w("span",{class:"gids-visually-hidden"},en(s)?s:n),t==="notification"?r?w("span",{"aria-hidden":"true"},tn(n,s)):tn(n,s):null)},{getGidsDisplaTagClassNames:$s}=fs,sn=({label:e,appearance:t="subtle",color:n,size:s="md",icon:i,class:o,...a})=>w("span",{class:$s({size:s,appearance:t,color:n},o),...a},i,e),on={"icons-other.svg":["accessibility","add","remove","announcement","approval","archive","audio","backward","banking","battery","bluetooth","bookmark","bulb","calendar","camera","card","cart","chart","chat","cloud","code","compass","desktop","email","emergency","exchange","finance","fingerprint","flag","folder","forward","gift","globe","goals","happy","hashtag","headphones","history","image","insurance","investment","in-progress","key","link","list","location","lock","map","maximise","microphone","minimise","mobile","moon","network","neutral","ai","new","draft","pending","new-chat","pause","percent","placeholder","play","power","rain","refresh","repeat","sad","save","savings","shield","shuffle","side-navigation","snow","speaker","stop","sun","tablet","temperature","thumbs-down","thumbs-up","travel","trend-down","trend-up","unlock","upset","verified","very-happy","video","volume-down","volume-max","volume-min","volume-mute","volume-up","wallet","wealth","wi-fi","wind","acorn","address-book","address-book-tabs","air-traffic-control","airplane","airplane-in-flight","airplane-landing","airplane-takeoff","airplane-taxiing","airplane-tilt","airplay","alarm","alien","align-bottom","align-bottom-simple","align-center-horizontal","align-center-horizontal-simple","align-center-vertical","align-center-vertical-simple","align-left","align-left-simple","align-right","align-right-simple","align-top","align-top-simple","amazon-logo","ambulance","anchor","anchor-simple","android-logo","angle","angular-logo","aperture","app-store-logo","app-window","apple-logo","apple-podcasts-logo","approximate-equals","armchair","arrow-arc-left","arrow-arc-right","arrow-bend-double-up-left","arrow-bend-double-up-right","arrow-bend-down-left","arrow-bend-down-right","arrow-bend-left-down","arrow-bend-left-up","arrow-bend-right-down","arrow-bend-right-up","arrow-bend-up-left","arrow-bend-up-right","arrow-circle-down","arrow-circle-down-left","arrow-circle-down-right","arrow-circle-left","arrow-circle-right","arrow-circle-up","arrow-circle-up-left","arrow-circle-up-right","arrow-clockwise","arrow-counter-clockwise","arrow-down-left","arrow-down-right","arrow-elbow-down-left","arrow-elbow-down-right","arrow-elbow-left","arrow-elbow-left-down","arrow-elbow-left-up","arrow-elbow-right","arrow-elbow-right-down","arrow-elbow-right-up","arrow-elbow-up-left","arrow-elbow-up-right","arrow-fat-down","arrow-fat-left","arrow-fat-line-down","arrow-fat-line-left","arrow-fat-line-right","arrow-fat-line-up","arrow-fat-lines-down","arrow-fat-lines-left","arrow-fat-lines-right","arrow-fat-lines-up","arrow-fat-right","arrow-fat-up","arrow-line-down","arrow-line-down-left","arrow-line-down-right","arrow-line-left","arrow-line-right","arrow-line-up","arrow-line-up-left","arrow-line-up-right","arrow-square-down","arrow-square-down-left","arrow-square-down-right","arrow-square-in","arrow-square-left","arrow-square-out","arrow-square-right","arrow-square-up","arrow-square-up-left","arrow-square-up-right","arrow-u-down-left","arrow-u-down-right","arrow-u-left-down","arrow-u-left-up","arrow-u-right-down","arrow-u-right-up","arrow-u-up-left","arrow-u-up-right","arrow-up-left","arrow-up-right","arrows-clockwise","arrows-counter-clockwise","arrows-down-up","arrows-horizontal","arrows-in","arrows-in-cardinal","arrows-in-line-horizontal","arrows-in-line-vertical","arrows-in-simple","arrows-left-right","arrows-merge","arrows-out","arrows-out-cardinal","arrows-out-line-horizontal","arrows-out-line-vertical","arrows-out-simple","arrows-split","arrows-vertical","article","article-medium","article-ny-times","asclepius","asterisk","asterisk-simple","at","atom","avocado","axe","baby","baby-carriage","backpack","backspace","bag","bag-simple","balloon","bandaids","bank","barbell","barcode","barn","barricade","baseball","baseball-cap","baseball-helmet","basket","basketball","bathtub","battery-charging","battery-charging-vertical","battery-empty","battery-full","battery-high","battery-low","battery-medium","battery-plus","battery-plus-vertical","battery-vertical-empty","battery-vertical-full","battery-vertical-high","battery-vertical-low","battery-vertical-medium","battery-warning","battery-warning-vertical","beach-ball","beanie","bed","beer-bottle","beer-stein","behance-logo","bell","bell-ringing","bell-simple","bell-simple-ringing","bell-simple-slash","bell-simple-z","bell-slash","bell-z","belt","bezier-curve","bicycle","binary","binoculars","biohazard","bird","blueprint","bluetooth-connected","bluetooth-slash","bluetooth-x","boat","bomb","bone","book","book-bookmark","book-open","book-open-text","book-open-user","bookmark-simple","bookmarks","bookmarks-simple","books","boot","boules","bounding-box","bowl-food","bowl-steam","bowling-ball","box-arrow-down","box-arrow-up","boxing-glove","brackets-angle","brackets-curly","brackets-round","brackets-square","brain","brandy","bread","bridge","briefcase","briefcase-metal","broadcast","broom","browser","browsers","bug","bug-beetle","bug-droid","building","building-apartment","building-office","buildings","bulldozer","bus","butterfly","cable-car","cactus","cake","calculator","calendar-blank","calendar-check","calendar-dot","calendar-dots","calendar-heart","calendar-minus","calendar-plus","calendar-slash","calendar-star","calendar-x","call-bell","camera-plus","camera-rotate","camera-slash","campfire","car","car-battery","car-profile","car-simple","cardholder","cards","cards-three","caret-circle-double-down","caret-circle-double-left","caret-circle-double-right","caret-circle-double-up","caret-circle-down","caret-circle-left","caret-circle-right","caret-circle-up","caret-circle-up-down","caret-double-down","caret-double-left","caret-double-right","caret-double-up","caret-down","caret-left","caret-line-down","caret-line-left","caret-line-right","caret-line-up","caret-right","caret-up","caret-up-down","carrot","cash-register","cassette-tape","castle-turret","cat","cell-signal-full","cell-signal-high","cell-signal-low","cell-signal-medium","cell-signal-none","cell-signal-slash","cell-signal-x","cell-tower","certificate","chair","chalkboard","chalkboard-simple","chalkboard-teacher","champagne","charging-station","chart-bar","chart-bar-horizontal","chart-donut","chart-line","chart-line-down","chart-line-up","chart-pie","chart-pie-slice","chart-polar","chart-scatter","chat-centered","chat-centered-dots","chat-centered-slash","chat-centered-text","chat-circle","chat-circle-dots","chat-circle-slash","chat-circle-text","chat-dots","chat-slash","chat-teardrop","chat-teardrop-dots","chat-teardrop-slash","chat-teardrop-text","chat-text","chats","chats-circle","chats-teardrop","check","check-circle","check-fat","check-square","check-square-offset","checkerboard","checks","cheers","cheese","chef-hat","cherries","church","cigarette","cigarette-slash","circle","circle-dashed","circle-half","circle-half-tilt","circle-notch","circles-four","circles-three","circles-three-plus","circuitry","city","clipboard","clipboard-text","clock","clock-afternoon","clock-clockwise","clock-countdown","clock-counter-clockwise","clock-user","closed-captioning","cloud-arrow-down","cloud-arrow-up","cloud-check","cloud-fog","cloud-lightning","cloud-moon","cloud-rain","cloud-slash","cloud-snow","cloud-sun","cloud-warning","cloud-x","clover","club","coat-hanger","coda-logo","code-block","code-simple","codepen-logo","codesandbox-logo","coffee","coffee-bean","coin","coin-vertical","coins","columns","columns-plus-left","columns-plus-right","command","compass-rose","compass-tool","computer-tower","confetti","contactless-payment","control","cookie","cooking-pot","copy-simple","copyleft","copyright","corners-in","corners-out","couch","court-basketball","cow","cowboy-hat","cpu","crane","crane-tower","credit-card","cricket","crop","crosshair","crosshair-simple","crown","crown-cross","crown-simple","cube","cube-focus","cube-transparent","currency-btc","currency-circle-dollar","currency-cny","currency-dollar","currency-dollar-simple","currency-eth","currency-eur","currency-gbp","currency-inr","currency-jpy","currency-krw","currency-kzt","currency-ngn","currency-rub","cursor","cursor-click","cursor-text","cylinder","database","desk","desktop-tower","detective","dev-to-logo","device-mobile","device-mobile-camera","device-mobile-slash","device-mobile-speaker","device-rotate","device-tablet","device-tablet-camera","device-tablet-speaker","devices","diamond","diamonds-four","dice-five","dice-four","dice-one","dice-six","dice-three","dice-two","disc","disco-ball","discord-logo","divide","dna","dog","door","door-open","dot","dot-outline","dots-nine","dots-six","dots-six-vertical","dots-three","dots-three-circle","dots-three-circle-vertical","dots-three-outline","dots-three-outline-vertical","dots-three-vertical","download-simple","dress","dresser","dribbble-logo","drone","drop","drop-half","drop-half-bottom","drop-simple","drop-slash","dropbox-logo","ear","ear-slash","egg","egg-crack","eject","eject-simple","elevator","empty","engine","envelope","envelope-open","envelope-simple","envelope-simple-open","equalizer","equals","eraser","escalator-down","escalator-up","exam","exclamation-mark","exclude","exclude-square","export","eye-closed","eye-slash","eyedropper","eyedropper-sample","eyeglasses","eyes","face-mask","facebook-logo","factory","faders","faders-horizontal","fallout-shelter","fan","farm","fast-forward","fast-forward-circle","feather","fediverse-logo","figma-logo","file","file-archive","file-arrow-down","file-arrow-up","file-audio","file-c","file-c-sharp","file-cloud","file-code","file-cpp","file-css","file-csv","file-dashed","file-doc","file-html","file-image","file-ini","file-jpg","file-js","file-jsx","file-lock","file-magnifying-glass","file-md","file-minus","file-pdf","file-plus","file-png","file-ppt","file-py","file-rs","file-sql","file-svg","file-text","file-ts","file-tsx","file-txt","file-video","file-vue","file-x","file-xls","file-zip","files","film-reel","film-script","film-slate","film-strip","fingerprint-simple","finn-the-human","fire","fire-extinguisher","fire-simple","fire-truck","first-aid","first-aid-kit","fish","fish-simple","flag-banner","flag-banner-fold","flag-checkered","flag-pennant","flame","flashlight","flask","flip-horizontal","flip-vertical","floppy-disk","floppy-disk-back","flow-arrow","flower","flower-lotus","flower-tulip","flying-saucer","folder-dashed","folder-lock","folder-minus","folder-open","folder-plus","folder-simple","folder-simple-dashed","folder-simple-lock","folder-simple-minus","folder-simple-plus","folder-simple-star","folder-simple-user","folder-star","folder-user","folders","football","football-helmet","footprints","fork-knife","four-k","frame-corners","framer-logo","function","funnel","funnel-simple","funnel-simple-x","funnel-x","game-controller","garage","gas-can","gas-pump","gauge","gavel","gear","gear-fine","gear-six","gender-female","gender-intersex","gender-male","gender-neuter","gender-nonbinary","gender-transgender","ghost","gif","git-branch","git-commit","git-diff","git-fork","git-merge","git-pull-request","github-logo","gitlab-logo","gitlab-logo-simple","globe-hemisphere-east","globe-hemisphere-west","globe-simple","globe-simple-x","globe-stand","globe-x","goggles","golf","goodreads-logo","google-cardboard-logo","google-chrome-logo","google-drive-logo","google-logo","google-photos-logo","google-play-logo","google-podcasts-logo","gps","gps-fix","gps-slash","gradient","graduation-cap","grains","grains-slash","graph","graphics-card","greater-than","greater-than-or-equal","grid-four","grid-nine","guitar","hair-dryer","hamburger","hammer","hand","hand-arrow-down","hand-arrow-up","hand-coins","hand-deposit","hand-eye","hand-fist","hand-grabbing","hand-heart","hand-palm","hand-peace","hand-pointing","hand-soap","hand-swipe-left","hand-swipe-right","hand-tap","hand-waving","hand-withdraw","handbag","handbag-simple","hands-clapping","hands-praying","handshake","hard-drive","hard-drives","hard-hat","hash","hash-straight","head-circuit","headlights","headset","heart","heart-break","heart-half","heart-straight","heart-straight-break","heartbeat","hexagon","high-definition","high-heel","highlighter","highlighter-circle","hockey","hoodie","horse","hospital","hourglass","hourglass-high","hourglass-low","hourglass-medium","hourglass-simple","hourglass-simple-high","hourglass-simple-low","hourglass-simple-medium","house","house-line","house-simple","hurricane","ice-cream","identification-badge","identification-card","image-broken","image-square","images","images-square","infinity","info","instagram-logo","intersect","intersect-square","intersect-three","intersection","invoice","island","jar","jar-label","jeep","joystick","kanban","key-return","keyboard","keyhole","knife","ladder","ladder-simple","lamp","lamp-pendant","laptop","lasso","lastfm-logo","layout","leaf","lectern","lego","lego-smiley","less-than","less-than-or-equal","letter-circle-h","letter-circle-p","letter-circle-v","lifebuoy","lightbulb","lightbulb-filament","lighthouse","lightning","lightning-a","lightning-slash","line-segment","line-segments","line-vertical","link-break","link-simple","link-simple-break","link-simple-horizontal","link-simple-horizontal-break","linkedin-logo","linktree-logo","linux-logo","list-bullets","list-checks","list-dashes","list-heart","list-magnifying-glass","list-numbers","list-plus","list-star","lock-key","lock-key-open","lock-laminated","lock-laminated-open","lock-open","lock-simple","lock-simple-open","lockers","log","magic-wand","magnet","magnet-straight","magnifying-glass","magnifying-glass-minus","magnifying-glass-plus","mailbox","map-pin","map-pin-area","map-pin-line","map-pin-plus","map-pin-simple","map-pin-simple-area","map-pin-simple-line","map-trifold","markdown-logo","marker-circle","martini","mask-happy","mask-sad","mastodon-logo","math-operations","matrix-logo","medal","medal-military","medium-logo","megaphone","megaphone-simple","member-of","memory","messenger-logo","meta-logo","meteor","metronome","microphone-slash","microphone-stage","microscope","microsoft-excel-logo","microsoft-outlook-logo","microsoft-powerpoint-logo","microsoft-teams-logo","microsoft-word-logo","minus-circle","minus-square","money","money-wavy","monitor","monitor-arrow-up","monitor-play","moon-stars","moped","moped-front","mosque","motorcycle","mountains","mouse","mouse-left-click","mouse-middle-click","mouse-right-click","mouse-scroll","mouse-simple","music-note","music-note-simple","music-notes","music-notes-minus","music-notes-plus","music-notes-simple","navigation-arrow","needle","network-slash","network-x","newspaper","newspaper-clipping","not-equals","not-member-of","not-subset-of","not-superset-of","notches","note","note-blank","note-pencil","notebook","notepad","notification","notion-logo","nuclear-plant","number-circle-eight","number-circle-five","number-circle-four","number-circle-nine","number-circle-one","number-circle-seven","number-circle-six","number-circle-three","number-circle-two","number-circle-zero","number-eight","number-five","number-four","number-nine","number-one","number-seven","number-six","number-square-eight","number-square-five","number-square-four","number-square-nine","number-square-one","number-square-seven","number-square-six","number-square-three","number-square-two","number-square-zero","number-three","number-two","number-zero","numpad","nut","ny-times-logo","octagon","office-chair","onigiri","open-ai-logo","option","orange","orange-slice","oven","package","paint-brush","paint-brush-broad","paint-brush-household","paint-bucket","paint-roller","palette","panorama","pants","paper-plane","paper-plane-right","paper-plane-tilt","paperclip","paperclip-horizontal","parachute","paragraph","parallelogram","park","password","path","patreon-logo","pause-circle","paw-print","paypal-logo","peace","pen","pen-nib","pen-nib-straight","pencil","pencil-circle","pencil-line","pencil-ruler","pencil-simple","pencil-simple-line","pencil-simple-slash","pencil-slash","pentagon","pentagram","pepper","person","person-arms-spread","person-simple","person-simple-bike","person-simple-circle","person-simple-hike","person-simple-run","person-simple-ski","person-simple-snowboard","person-simple-swim","person-simple-tai-chi","person-simple-throw","person-simple-walk","perspective","phone-call","phone-disconnect","phone-incoming","phone-list","phone-outgoing","phone-pause","phone-plus","phone-slash","phone-transfer","phone-x","phosphor-logo","pi","piano-keys","picnic-table","picture-in-picture","piggy-bank","pill","ping-pong","pint-glass","pinterest-logo","pinwheel","pipe","pipe-wrench","pix-logo","pizza","planet","plant","play-circle","play-pause","playlist","plug","plug-charging","plugs","plugs-connected","plus-circle","plus-minus","plus-square","poker-chip","police-car","polygon","popcorn","popsicle","potted-plant","prescription","presentation","presentation-chart","prohibit","prohibit-inset","projector-screen","projector-screen-chart","pulse","push-pin","push-pin-simple","push-pin-simple-slash","push-pin-slash","puzzle-piece","qr-code","question-mark","queue","quotes","rabbit","racquet","radical","radio","radio-button","radioactive","rainbow","rainbow-cloud","ranking","read-cv-logo","receipt","receipt-x","record","rectangle","rectangle-dashed","recycle","reddit-logo","repeat-once","replit-logo","resize","rewind","rewind-circle","road-horizon","robot","rocket","rocket-launch","rows","rows-plus-bottom","rows-plus-top","rss","rss-simple","rug","ruler","sailboat","scales","scan","scan-smiley","scissors","scooter","screencast","screwdriver","scribble","scribble-loop","scroll","seal","seal-check","seal-percent","seal-question","seal-warning","seat","seatbelt","security-camera","selection","selection-all","selection-background","selection-foreground","selection-inverse","selection-plus","selection-slash","shapes","share-fat","share-network","shield-check","shield-checkered","shield-chevron","shield-plus","shield-slash","shield-star","shield-warning","shipping-container","shirt-folded","shooting-star","shopping-bag","shopping-bag-open","shopping-cart","shopping-cart-simple","shovel","shower","shrimp","shuffle-angular","shuffle-simple","sidebar","sidebar-simple","sigma","sign-in","sign-out","signature","signpost","sim-card","siren","sketch-logo","skip-back","skip-back-circle","skip-forward","skip-forward-circle","skull","skype-logo","slack-logo","sliders","sliders-horizontal","slideshow","smiley","smiley-angry","smiley-blank","smiley-meh","smiley-melting","smiley-nervous","smiley-sad","smiley-sticker","smiley-wink","smiley-x-eyes","snapchat-logo","sneaker","sneaker-move","snowflake","soccer-ball","sock","solar-panel","solar-roof","sort-ascending","sort-descending","soundcloud-logo","spade","sparkle","speaker-hifi","speaker-high","speaker-low","speaker-none","speaker-simple-high","speaker-simple-low","speaker-simple-none","speaker-simple-slash","speaker-simple-x","speaker-slash","speaker-x","speedometer","sphere","spinner","spinner-ball","spinner-gap","spiral","split-horizontal","split-vertical","spotify-logo","spray-bottle","square","square-half","square-half-bottom","square-logo","square-split-horizontal","square-split-vertical","squares-four","stack","stack-minus","stack-overflow-logo","stack-plus","stack-simple","stairs","stamp","standard-definition","star-and-crescent","star-four","star-half","star-of-david","steam-logo","steering-wheel","steps","stethoscope","sticker","stool","stop-circle","storefront","strategy","stripe-logo","student","subset-of","subset-proper-of","subtitles","subtitles-slash","subtract","subtract-square","subway","suitcase","suitcase-rolling","suitcase-simple","sun-dim","sun-horizon","sunglasses","superset-of","superset-proper-of","swap","swatches","swimming-pool","sword","synagogue","syringe","t-shirt","table","tabs","tag","tag-chevron","tag-simple","target","taxi","tea-bag","telegram-logo","television","television-simple","tennis-ball","tent","terminal","terminal-window","test-tube","text-a-underline","text-aa","text-align-center","text-align-justify","text-align-left","text-align-right","text-b","text-columns","text-h","text-h-five","text-h-four","text-h-one","text-h-six","text-h-three","text-h-two","text-indent","text-italic","text-outdent","text-strikethrough","text-subscript","text-superscript","text-t","text-t-slash","text-underline","textbox","thermometer","thermometer-cold","thermometer-hot","thermometer-simple","threads-logo","three-d","ticket","tidal-logo","tiktok-logo","tilde","timer","tip-jar","tipi","tire","toggle-left","toggle-right","toilet","toilet-paper","toolbox","tooth","tornado","tote","tote-simple","towel","tractor","trademark","trademark-registered","traffic-cone","traffic-sign","traffic-signal","train","train-regional","train-simple","tram","translate","trash","trash-simple","tray","tray-arrow-down","tray-arrow-up","treasure-chest","tree","tree-evergreen","tree-palm","tree-structure","tree-view","triangle","triangle-dashed","trolley","trolley-suitcase","trophy","truck","truck-trailer","tumblr-logo","twitch-logo","twitter-logo","umbrella","umbrella-simple","union","unite","unite-square","upload-simple","usb","user-check","user-circle","user-circle-check","user-circle-dashed","user-circle-gear","user-circle-minus","user-circle-plus","user-focus","user-gear","user-list","user-minus","user-plus","user-rectangle","user-sound","user-square","user-switch","users-four","users-three","van","vault","vector-three","vector-two","vibrate","video-camera","video-camera-slash","video-conference","vignette","vinyl-record","virtual-reality","virus","visor","voicemail","volleyball","wall","warehouse","warning-circle","warning-diamond","warning-octagon","washing-machine","watch","wave-sawtooth","wave-sine","wave-square","wave-triangle","waveform","waveform-slash","waves","webcam","webcam-slash","webhooks-logo","wechat-logo","whatsapp-logo","wheelchair","wheelchair-motion","wifi-high","wifi-low","wifi-medium","wifi-none","wifi-slash","wifi-x","windmill","windows-logo","wine","wrench","x","x-circle","x-logo","x-square","yarn","yin-yang","youtube-logo"],"icons-core.svg":["arrow-down","arrow-left","arrow-right","arrow-up","attachment","checkmark","chevron-down","chevron-horizontal","chevron-left","chevron-right","chevron-up","chevron-vertical","copy","cross","danger","dashboard","delete","document","download","drag","edit","external","eye","filter","grid","hide","home","information","log-in","log-out","menu","minus","more","notifications","options","phone","plus","positive","printer","question","search","select","select-all","send","settings","share","star","time","upload","user","users","warning"]},an=new Map;for(const e in on)for(const t of on[e])an.set(t,e);function Rs(e){return an.get(e)}function rn(e,t="regular",n){const s=Rs(e);let i=s??"";return n&&s&&(i=n(s)??s),`${i}#${e}${t==="filled"?"--filled":""}`}const{getGidsIconClassNames:Ls}=ys,J=({name:e,size:t,appearance:n,alt:s,class:i,titleId:o,src:a,...r})=>{const l=lt(o);let c=a;return c===void 0&&_s()&&(c=rn(e,n,Qt)),w("svg",{ref:u=>{c===void 0&&Ts((()=>{(function(d,h,m){if(!d)return;const g=document.createElementNS("http://www.w3.org/2000/svg","use");g.setAttribute("href",rn(h,m,Qt)),d.appendChild(g)})(u,e,n)}))},width:"16",height:"16",class:Ls({size:t},i),role:"img","aria-hidden":s===""?"true":void 0,"aria-labelledby":s===""?void 0:l,...r},s!==""&&w("title",{id:l},s||e),c!==void 0?w("use",{href:c}):null)},{getGidsCheckboxControlClassNames:Fs}=ms,js=({checked:e,defaultChecked:t,disabled:n,indeterminate:s,inputId:i,name:o,value:a,required:r,onChange:l,class:c,...u})=>w("span",{class:Fs(c),...u},w("input",{class:"gids-checkbox-control__input",type:"checkbox",disabled:n,checked:e,defaultChecked:t,required:r,indeterminate:s,value:a,id:i,name:o,onChange:l}),w(J,{class:"gids-checkbox-control__check",name:"checkmark",alt:"",size:"sm"}),w(J,{class:"gids-checkbox-control__minus",name:"minus",alt:"",size:"sm"})),{getIndicatorText:zs}=hs,{getGidsLabelClassNames:qs}=ws,ln=({disabled:e,fieldRequirement:t,fieldRequirementOptionalText:n,fieldRequirementRequiredText:s,info:i,htmlFor:o,labelId:a,class:r,isLabelSentence:l,...c},u)=>{const d=zs({children:u,fieldRequirement:t,fieldRequirementOptionalText:n,fieldRequirementRequiredText:s,isLabelSentence:l});return w("div",{class:qs({disabled:e},r),...c},w("label",{htmlFor:o,id:a},u,d&&w("span",{class:"gids-label__field-requirement"},d)),i)},Q=Math.min,N=Math.max,Re=Math.round,Le=Math.floor,q=e=>({x:e,y:e}),Ws={left:"right",right:"left",bottom:"top",top:"bottom"};function ct(e,t,n){return N(e,Q(t,n))}function ue(e,t){return typeof e=="function"?e(t):e}function ee(e){return e.split("-")[0]}function he(e){return e.split("-")[1]}function cn(e){return e==="x"?"y":"x"}function dt(e){return e==="y"?"height":"width"}function U(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function ut(e){return cn(U(e))}function Gs(e,t,n){n===void 0&&(n=!1);const s=he(e),i=ut(e),o=dt(i);let a=i==="x"?s===(n?"end":"start")?"right":"left":s==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=Fe(a)),[a,Fe(a)]}function Vs(e){const t=Fe(e);return[ht(e),t,ht(t)]}function ht(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const dn=["left","right"],un=["right","left"],Hs=["top","bottom"],Bs=["bottom","top"];function Us(e,t,n){switch(e){case"top":case"bottom":return n?t?un:dn:t?dn:un;case"left":case"right":return t?Hs:Bs;default:return[]}}function Ys(e,t,n,s){const i=he(e);let o=Us(ee(e),n==="start",s);return i&&(o=o.map(a=>a+"-"+i),t&&(o=o.concat(o.map(ht)))),o}function Fe(e){const t=ee(e);return Ws[t]+e.slice(t.length)}function Ks(e){return{top:0,right:0,bottom:0,left:0,...e}}function hn(e){return typeof e!="number"?Ks(e):{top:e,right:e,bottom:e,left:e}}function je(e){const{x:t,y:n,width:s,height:i}=e;return{width:s,height:i,top:n,left:t,right:t+s,bottom:n+i,x:t,y:n}}function gn(e,t,n){let{reference:s,floating:i}=e;const o=U(t),a=ut(t),r=dt(a),l=ee(t),c=o==="y",u=s.x+s.width/2-i.width/2,d=s.y+s.height/2-i.height/2,h=s[r]/2-i[r]/2;let m;switch(l){case"top":m={x:u,y:s.y-i.height};break;case"bottom":m={x:u,y:s.y+s.height};break;case"right":m={x:s.x+s.width,y:d};break;case"left":m={x:s.x-i.width,y:d};break;default:m={x:s.x,y:s.y}}switch(he(t)){case"start":m[a]-=h*(n&&c?-1:1);break;case"end":m[a]+=h*(n&&c?-1:1);break}return m}async function Xs(e,t){var n;t===void 0&&(t={});const{x:s,y:i,platform:o,rects:a,elements:r,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:h=!1,padding:m=0}=ue(t,e),g=hn(m),v=r[h?d==="floating"?"reference":"floating":d],p=je(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(v)))==null||n?v:v.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(r.floating)),boundary:c,rootBoundary:u,strategy:l})),f=d==="floating"?{x:s,y:i,width:a.floating.width,height:a.floating.height}:a.reference,b=await(o.getOffsetParent==null?void 0:o.getOffsetParent(r.floating)),x=await(o.isElement==null?void 0:o.isElement(b))?await(o.getScale==null?void 0:o.getScale(b))||{x:1,y:1}:{x:1,y:1},S=je(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:r,rect:f,offsetParent:b,strategy:l}):f);return{top:(p.top-S.top+g.top)/x.y,bottom:(S.bottom-p.bottom+g.bottom)/x.y,left:(p.left-S.left+g.left)/x.x,right:(S.right-p.right+g.right)/x.x}}const Zs=50,Js=async(e,t,n)=>{const{placement:s="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,r=a.detectOverflow?a:{...a,detectOverflow:Xs},l=await(a.isRTL==null?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=gn(c,s,l),h=s,m=0;const g={};for(let y=0;y<o.length;y++){const v=o[y];if(!v)continue;const{name:p,fn:f}=v,{x:b,y:x,data:S,reset:I}=await f({x:u,y:d,initialPlacement:s,placement:h,strategy:i,middlewareData:g,rects:c,platform:r,elements:{reference:e,floating:t}});u=b??u,d=x??d,g[p]={...g[p],...S},I&&m<Zs&&(m++,typeof I=="object"&&(I.placement&&(h=I.placement),I.rects&&(c=I.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:i}):I.rects),{x:u,y:d}=gn(c,h,l)),y=-1)}return{x:u,y:d,placement:h,strategy:i,middlewareData:g}},Qs=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:s,placement:i,rects:o,platform:a,elements:r,middlewareData:l}=t,{element:c,padding:u=0}=ue(e,t)||{};if(c==null)return{};const d=hn(u),h={x:n,y:s},m=ut(i),g=dt(m),y=await a.getDimensions(c),v=m==="y",p=v?"top":"left",f=v?"bottom":"right",b=v?"clientHeight":"clientWidth",x=o.reference[g]+o.reference[m]-h[m]-o.floating[g],S=h[m]-o.reference[m],I=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c));let C=I?I[b]:0;(!C||!await(a.isElement==null?void 0:a.isElement(I)))&&(C=r.floating[b]||o.floating[g]);const k=x/2-S/2,M=C/2-y[g]/2-1,P=Q(d[p],M),G=Q(d[f],M),$=P,V=C-y[g]-G,_=C/2-y[g]/2+k,K=ct($,_,V),X=!l.arrow&&he(i)!=null&&_!==K&&o.reference[g]/2-(_<$?P:G)-y[g]/2<0,j=X?_<$?_-$:_-V:0;return{[m]:h[m]+j,data:{[m]:K,centerOffset:_-K-j,...X&&{alignmentOffset:j}},reset:X}}}),ei=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,s;const{placement:i,middlewareData:o,rects:a,initialPlacement:r,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:y=!0,...v}=ue(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const p=ee(i),f=U(r),b=ee(r)===r,x=await(l.isRTL==null?void 0:l.isRTL(c.floating)),S=h||(b||!y?[Fe(r)]:Vs(r)),I=g!=="none";!h&&I&&S.push(...Ys(r,y,g,x));const C=[r,...S],k=await l.detectOverflow(t,v),M=[];let P=((s=o.flip)==null?void 0:s.overflows)||[];if(u&&M.push(k[p]),d){const _=Gs(i,a,x);M.push(k[_[0]],k[_[1]])}if(P=[...P,{placement:i,overflows:M}],!M.every(_=>_<=0)){var G,$;const _=(((G=o.flip)==null?void 0:G.index)||0)+1,K=C[_];if(K&&(!(d==="alignment"?f!==U(K):!1)||P.every(z=>U(z.placement)===f?z.overflows[0]>0:!0)))return{data:{index:_,overflows:P},reset:{placement:K}};let X=($=P.filter(j=>j.overflows[0]<=0).sort((j,z)=>j.overflows[1]-z.overflows[1])[0])==null?void 0:$.placement;if(!X)switch(m){case"bestFit":{var V;const j=(V=P.filter(z=>{if(I){const ne=U(z.placement);return ne===f||ne==="y"}return!0}).map(z=>[z.placement,z.overflows.filter(ne=>ne>0).reduce((ne,Zi)=>ne+Zi,0)]).sort((z,ne)=>z[1]-ne[1])[0])==null?void 0:V[0];j&&(X=j);break}case"initialPlacement":X=r;break}if(i!==X)return{reset:{placement:X}}}return{}}}},ti=new Set(["left","top"]);async function ni(e,t){const{placement:n,platform:s,elements:i}=e,o=await(s.isRTL==null?void 0:s.isRTL(i.floating)),a=ee(n),r=he(n),l=U(n)==="y",c=ti.has(a)?-1:1,u=o&&l?-1:1,d=ue(t,e);let{mainAxis:h,crossAxis:m,alignmentAxis:g}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return r&&typeof g=="number"&&(m=r==="end"?g*-1:g),l?{x:m*u,y:h*c}:{x:h*c,y:m*u}}const si=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,s;const{x:i,y:o,placement:a,middlewareData:r}=t,l=await ni(t,e);return a===((n=r.offset)==null?void 0:n.placement)&&(s=r.arrow)!=null&&s.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:a}}}}},ii=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:s,placement:i,platform:o}=t,{mainAxis:a=!0,crossAxis:r=!1,limiter:l={fn:p=>{let{x:f,y:b}=p;return{x:f,y:b}}},...c}=ue(e,t),u={x:n,y:s},d=await o.detectOverflow(t,c),h=U(ee(i)),m=cn(h);let g=u[m],y=u[h];if(a){const p=m==="y"?"top":"left",f=m==="y"?"bottom":"right",b=g+d[p],x=g-d[f];g=ct(b,g,x)}if(r){const p=h==="y"?"top":"left",f=h==="y"?"bottom":"right",b=y+d[p],x=y-d[f];y=ct(b,y,x)}const v=l.fn({...t,[m]:g,[h]:y});return{...v,data:{x:v.x-n,y:v.y-s,enabled:{[m]:a,[h]:r}}}}}},oi=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,s;const{placement:i,rects:o,platform:a,elements:r}=t,{apply:l=()=>{},...c}=ue(e,t),u=await a.detectOverflow(t,c),d=ee(i),h=he(i),m=U(i)==="y",{width:g,height:y}=o.floating;let v,p;d==="top"||d==="bottom"?(v=d,p=h===(await(a.isRTL==null?void 0:a.isRTL(r.floating))?"start":"end")?"left":"right"):(p=d,v=h==="end"?"top":"bottom");const f=y-u.top-u.bottom,b=g-u.left-u.right,x=Q(y-u[v],f),S=Q(g-u[p],b),I=!t.middlewareData.shift;let C=x,k=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(k=b),(s=t.middlewareData.shift)!=null&&s.enabled.y&&(C=f),I&&!h){const P=N(u.left,0),G=N(u.right,0),$=N(u.top,0),V=N(u.bottom,0);m?k=g-2*(P!==0||G!==0?P+G:N(u.left,u.right)):C=y-2*($!==0||V!==0?$+V:N(u.top,u.bottom))}await l({...t,availableWidth:k,availableHeight:C});const M=await a.getDimensions(r.floating);return g!==M.width||y!==M.height?{reset:{rects:!0}}:{}}}};function ze(){return typeof window<"u"}function ge(e){return mn(e)?(e.nodeName||"").toLowerCase():"#document"}function D(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function W(e){var t;return(t=(mn(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function mn(e){return ze()?e instanceof Node||e instanceof D(e).Node:!1}function L(e){return ze()?e instanceof Element||e instanceof D(e).Element:!1}function Y(e){return ze()?e instanceof HTMLElement||e instanceof D(e).HTMLElement:!1}function pn(e){return!ze()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof D(e).ShadowRoot}function xe(e){const{overflow:t,overflowX:n,overflowY:s,display:i}=F(e);return/auto|scroll|overlay|hidden|clip/.test(t+s+n)&&i!=="inline"&&i!=="contents"}function ai(e){return/^(table|td|th)$/.test(ge(e))}function qe(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const ri=/transform|translate|scale|rotate|perspective|filter/,li=/paint|layout|strict|content/,ae=e=>!!e&&e!=="none";let gt;function mt(e){const t=L(e)?F(e):e;return ae(t.transform)||ae(t.translate)||ae(t.scale)||ae(t.rotate)||ae(t.perspective)||!pt()&&(ae(t.backdropFilter)||ae(t.filter))||ri.test(t.willChange||"")||li.test(t.contain||"")}function ci(e){let t=te(e);for(;Y(t)&&!me(t);){if(mt(t))return t;if(qe(t))return null;t=te(t)}return null}function pt(){return gt==null&&(gt=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),gt}function me(e){return/^(html|body|#document)$/.test(ge(e))}function F(e){return D(e).getComputedStyle(e)}function We(e){return L(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function te(e){if(ge(e)==="html")return e;const t=e.assignedSlot||e.parentNode||pn(e)&&e.host||W(e);return pn(t)?t.host:t}function fn(e){const t=te(e);return me(t)?e.ownerDocument?e.ownerDocument.body:e.body:Y(t)&&xe(t)?t:fn(t)}function Ce(e,t,n){var s;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=fn(e),o=i===((s=e.ownerDocument)==null?void 0:s.body),a=D(i);if(o){const r=ft(a);return t.concat(a,a.visualViewport||[],xe(i)?i:[],r&&n?Ce(r):[])}else return t.concat(i,Ce(i,[],n))}function ft(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function bn(e){const t=F(e);let n=parseFloat(t.width)||0,s=parseFloat(t.height)||0;const i=Y(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:s,r=Re(n)!==o||Re(s)!==a;return r&&(n=o,s=a),{width:n,height:s,$:r}}function bt(e){return L(e)?e:e.contextElement}function pe(e){const t=bt(e);if(!Y(t))return q(1);const n=t.getBoundingClientRect(),{width:s,height:i,$:o}=bn(t);let a=(o?Re(n.width):n.width)/s,r=(o?Re(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!r||!Number.isFinite(r))&&(r=1),{x:a,y:r}}const di=q(0);function yn(e){const t=D(e);return!pt()||!t.visualViewport?di:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ui(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==D(e)?!1:t}function re(e,t,n,s){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=bt(e);let a=q(1);t&&(s?L(s)&&(a=pe(s)):a=pe(e));const r=ui(o,n,s)?yn(o):q(0);let l=(i.left+r.x)/a.x,c=(i.top+r.y)/a.y,u=i.width/a.x,d=i.height/a.y;if(o){const h=D(o),m=s&&L(s)?D(s):s;let g=h,y=ft(g);for(;y&&s&&m!==g;){const v=pe(y),p=y.getBoundingClientRect(),f=F(y),b=p.left+(y.clientLeft+parseFloat(f.paddingLeft))*v.x,x=p.top+(y.clientTop+parseFloat(f.paddingTop))*v.y;l*=v.x,c*=v.y,u*=v.x,d*=v.y,l+=b,c+=x,g=D(y),y=ft(g)}}return je({width:u,height:d,x:l,y:c})}function Ge(e,t){const n=We(e).scrollLeft;return t?t.left+n:re(W(e)).left+n}function wn(e,t){const n=e.getBoundingClientRect(),s=n.left+t.scrollLeft-Ge(e,n),i=n.top+t.scrollTop;return{x:s,y:i}}function hi(e){let{elements:t,rect:n,offsetParent:s,strategy:i}=e;const o=i==="fixed",a=W(s),r=t?qe(t.floating):!1;if(s===a||r&&o)return n;let l={scrollLeft:0,scrollTop:0},c=q(1);const u=q(0),d=Y(s);if((d||!d&&!o)&&((ge(s)!=="body"||xe(a))&&(l=We(s)),d)){const m=re(s);c=pe(s),u.x=m.x+s.clientLeft,u.y=m.y+s.clientTop}const h=a&&!d&&!o?wn(a,l):q(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+h.x,y:n.y*c.y-l.scrollTop*c.y+u.y+h.y}}function gi(e){return Array.from(e.getClientRects())}function mi(e){const t=W(e),n=We(e),s=e.ownerDocument.body,i=N(t.scrollWidth,t.clientWidth,s.scrollWidth,s.clientWidth),o=N(t.scrollHeight,t.clientHeight,s.scrollHeight,s.clientHeight);let a=-n.scrollLeft+Ge(e);const r=-n.scrollTop;return F(s).direction==="rtl"&&(a+=N(t.clientWidth,s.clientWidth)-i),{width:i,height:o,x:a,y:r}}const vn=25;function pi(e,t){const n=D(e),s=W(e),i=n.visualViewport;let o=s.clientWidth,a=s.clientHeight,r=0,l=0;if(i){o=i.width,a=i.height;const u=pt();(!u||u&&t==="fixed")&&(r=i.offsetLeft,l=i.offsetTop)}const c=Ge(s);if(c<=0){const u=s.ownerDocument,d=u.body,h=getComputedStyle(d),m=u.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,g=Math.abs(s.clientWidth-d.clientWidth-m);g<=vn&&(o-=g)}else c<=vn&&(o+=c);return{width:o,height:a,x:r,y:l}}function fi(e,t){const n=re(e,!0,t==="fixed"),s=n.top+e.clientTop,i=n.left+e.clientLeft,o=Y(e)?pe(e):q(1),a=e.clientWidth*o.x,r=e.clientHeight*o.y,l=i*o.x,c=s*o.y;return{width:a,height:r,x:l,y:c}}function Sn(e,t,n){let s;if(t==="viewport")s=pi(e,n);else if(t==="document")s=mi(W(e));else if(L(t))s=fi(t,n);else{const i=yn(e);s={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return je(s)}function In(e,t){const n=te(e);return n===t||!L(n)||me(n)?!1:F(n).position==="fixed"||In(n,t)}function bi(e,t){const n=t.get(e);if(n)return n;let s=Ce(e,[],!1).filter(r=>L(r)&&ge(r)!=="body"),i=null;const o=F(e).position==="fixed";let a=o?te(e):e;for(;L(a)&&!me(a);){const r=F(a),l=mt(a);!l&&r.position==="fixed"&&(i=null),(o?!l&&!i:!l&&r.position==="static"&&!!i&&(i.position==="absolute"||i.position==="fixed")||xe(a)&&!l&&In(e,a))?s=s.filter(u=>u!==a):i=r,a=te(a)}return t.set(e,s),s}function yi(e){let{element:t,boundary:n,rootBoundary:s,strategy:i}=e;const a=[...n==="clippingAncestors"?qe(t)?[]:bi(t,this._c):[].concat(n),s],r=Sn(t,a[0],i);let l=r.top,c=r.right,u=r.bottom,d=r.left;for(let h=1;h<a.length;h++){const m=Sn(t,a[h],i);l=N(m.top,l),c=Q(m.right,c),u=Q(m.bottom,u),d=N(m.left,d)}return{width:c-d,height:u-l,x:d,y:l}}function wi(e){const{width:t,height:n}=bn(e);return{width:t,height:n}}function vi(e,t,n){const s=Y(t),i=W(t),o=n==="fixed",a=re(e,!0,o,t);let r={scrollLeft:0,scrollTop:0};const l=q(0);function c(){l.x=Ge(i)}if(s||!s&&!o)if((ge(t)!=="body"||xe(i))&&(r=We(t)),s){const m=re(t,!0,o,t);l.x=m.x+t.clientLeft,l.y=m.y+t.clientTop}else i&&c();o&&!s&&i&&c();const u=i&&!s&&!o?wn(i,r):q(0),d=a.left+r.scrollLeft-l.x-u.x,h=a.top+r.scrollTop-l.y-u.y;return{x:d,y:h,width:a.width,height:a.height}}function yt(e){return F(e).position==="static"}function xn(e,t){if(!Y(e)||F(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return W(e)===n&&(n=n.ownerDocument.body),n}function Cn(e,t){const n=D(e);if(qe(e))return n;if(!Y(e)){let i=te(e);for(;i&&!me(i);){if(L(i)&&!yt(i))return i;i=te(i)}return n}let s=xn(e,t);for(;s&&ai(s)&&yt(s);)s=xn(s,t);return s&&me(s)&&yt(s)&&!mt(s)?n:s||ci(e)||n}const Si=async function(e){const t=this.getOffsetParent||Cn,n=this.getDimensions,s=await n(e.floating);return{reference:vi(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function Ii(e){return F(e).direction==="rtl"}const wt={convertOffsetParentRelativeRectToViewportRelativeRect:hi,getDocumentElement:W,getClippingRect:yi,getOffsetParent:Cn,getElementRects:Si,getClientRects:gi,getDimensions:wi,getScale:pe,isElement:L,isRTL:Ii};function kn(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function xi(e,t){let n=null,s;const i=W(e);function o(){var r;clearTimeout(s),(r=n)==null||r.disconnect(),n=null}function a(r,l){r===void 0&&(r=!1),l===void 0&&(l=1),o();const c=e.getBoundingClientRect(),{left:u,top:d,width:h,height:m}=c;if(r||t(),!h||!m)return;const g=Le(d),y=Le(i.clientWidth-(u+h)),v=Le(i.clientHeight-(d+m)),p=Le(u),b={rootMargin:-g+"px "+-y+"px "+-v+"px "+-p+"px",threshold:N(0,Q(1,l))||1};let x=!0;function S(I){const C=I[0].intersectionRatio;if(C!==l){if(!x)return a();C?a(!1,C):s=setTimeout(()=>{a(!1,1e-7)},1e3)}C===1&&!kn(c,e.getBoundingClientRect())&&a(),x=!1}try{n=new IntersectionObserver(S,{...b,root:i.ownerDocument})}catch{n=new IntersectionObserver(S,b)}n.observe(e)}return a(!0),o}function Ci(e,t,n,s){s===void 0&&(s={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:r=typeof IntersectionObserver=="function",animationFrame:l=!1}=s,c=bt(e),u=i||o?[...c?Ce(c):[],...t?Ce(t):[]]:[];u.forEach(p=>{i&&p.addEventListener("scroll",n,{passive:!0}),o&&p.addEventListener("resize",n)});const d=c&&r?xi(c,n):null;let h=-1,m=null;a&&(m=new ResizeObserver(p=>{let[f]=p;f&&f.target===c&&m&&t&&(m.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var b;(b=m)==null||b.observe(t)})),n()}),c&&!l&&m.observe(c),t&&m.observe(t));let g,y=l?re(e):null;l&&v();function v(){const p=re(e);y&&!kn(y,p)&&n(),y=p,g=requestAnimationFrame(v)}return n(),()=>{var p;u.forEach(f=>{i&&f.removeEventListener("scroll",n),o&&f.removeEventListener("resize",n)}),d?.(),(p=m)==null||p.disconnect(),m=null,l&&cancelAnimationFrame(g)}}const ki=si,Ei=ii,Mi=ei,En=oi,Ai=Qs,Pi=(e,t,n)=>{const s=new Map,i={platform:wt,...n},o={...i.platform,_c:s};return Js(e,t,{...i,platform:o})};function Mn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}const _i=/transform|translate|scale|rotate|perspective|filter/,Ti=/paint|layout|strict|content/,le=e=>!!e&&e!=="none";let vt;function Oi(e){const t=(n=e,typeof window<"u"&&(n instanceof Element||n instanceof Mn(n).Element)?Mn(s=e).getComputedStyle(s):e);var n,s;return le(t.transform)||le(t.translate)||le(t.scale)||le(t.rotate)||le(t.perspective)||(vt==null&&(vt=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),!vt&&(le(t.backdropFilter)||le(t.filter)))||_i.test(t.willChange||"")||Ti.test(t.contain||"")}function Ni(e){return(function(t){for(let n=t;n;n=St(n))if(n instanceof Element&&getComputedStyle(n).display==="none")return null;for(let n=St(t);n;n=St(n)){if(!(n instanceof Element))continue;const s=getComputedStyle(n);if(s.display!=="contents"&&(s.position!=="static"||Oi(s)||n.tagName==="BODY"))return n}return null})(e)}function St(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}var ke;(function(e){e.TOOLTIP="tooltip",e.POPOVER="popover",e.FLYOUT_PANEL="flyout-panel"})(ke||(ke={}));const fe=class fe{constructor(t,n){this.el=t,this.config=n,this.offset=10,this.timeDelayBeforeFadingOut=50,this.popoverMainAxisEnabled=!0,this.currentPlacement=n.placement,this.cleanup=null}getRootElement(){return this.el.shadowRoot??this.el}initialize(){this.timeBeforeElementShows=this.config.showWithoutDelay?50:500,this.timeOfAnimation=this.config.showWithoutDelay?50:250;const t=this.getRootElement();this.floatingElement=t.querySelector(this.config.floatingElementSelector),this.floatingElement&&this.applyViewportMaxWidth(),this.arrowEl=this.config.showArrow!==!1&&this.config.arrowElementSelector?t.querySelector(this.config.arrowElementSelector):null,this.anchorElement=this.config.htmlFor?.length>0?document.getElementById(this.config.htmlFor):this.config.getAnchorElement?this.config.getAnchorElement(t):this.el.shadowRoot?this.config.getAnchorElementFromSlot(this.el.shadowRoot):null,this.anchorElement?this.setupPositioning():console.warn("Could not determine the element associated with this floating element."+(this.config.htmlFor?.length>0?`Element with id=${this.config.htmlFor} could not be found on the DOM.`:""))}getAnchorElement(){return this.anchorElement}updateConfig(t){this.config={...this.config,...t},"showWithoutDelay"in t&&(this.timeBeforeElementShows=this.config.showWithoutDelay?50:500,this.timeOfAnimation=this.config.showWithoutDelay?50:250),this.forceUpdate()}getConfig(){return this.config}getCurrentPlacement(){return this.currentPlacement||this.config.placement}reposition(){this.forceUpdate()}forceUpdate(){this.anchorElement&&this.floatingElement&&this.updatePosition()}setupPositioning(){this.anchorElement&&this.updatePosition()}setupAutoUpdate(){!this.cleanup&&this.anchorElement&&(this.cleanup=Ci(this.anchorElement,this.floatingElement,(()=>{this.updatePosition()}),{ancestorScroll:!0,ancestorResize:!1,elementResize:!0,layoutShift:!0,animationFrame:!1}))}cleanupAutoUpdate(){this.cleanup&&(this.cleanup(),this.cleanup=null)}updatePosition(){if(!this.anchorElement)return;const t=this.config.offset??this.offset,n=[ki(t)],s=this.config.lockToMainAxis??!1,i=this.config.constrainPlacements,o=i&&i.length>0?i.includes(this.config.placement)?this.config.placement:i[0]:this.config.placement,a=Mi(i&&i.length>0?{mainAxis:!0,crossAxis:!1,padding:t,fallbackPlacements:i.filter((c=>c!==o)),fallbackAxisSideDirection:"none"}:{mainAxis:!0,crossAxis:!s&&"alignment",fallbackAxisSideDirection:"end",padding:t}),r=this.config.elementType===ke.POPOVER,l=Ei({padding:t,mainAxis:this.config.constrainToViewportHeight||this.config.elementType===ke.TOOLTIP||r&&this.popoverMainAxisEnabled,crossAxis:!1});this.config.matchReferenceWidth&&n.push(En({apply({elements:c,rects:u}){Object.assign(c.floating.style,{width:`${u.reference.width}px`})}})),o?.includes("-")?n.push(a,l):n.push(l,a),this.config.constrainToViewportHeight&&n.push(En({padding:t,apply:({availableHeight:c,elements:u})=>{const d=Array.from(u.floating.children).find((h=>h!==this.arrowEl));d instanceof HTMLElement&&Object.assign(d.style,{maxHeight:`${Math.max(0,c)}px`,overflowY:"auto",overflowX:"hidden"})}})),this.config.showArrow!==!1&&this.arrowEl&&n.push(Ai({element:this.arrowEl,padding:t})),Pi(this.anchorElement,this.floatingElement,{placement:o,strategy:"fixed",middleware:n,platform:{...wt,getOffsetParent:c=>wt.getOffsetParent(c,Ni)}}).then((({x:c,y:u,middlewareData:d,placement:h})=>{if(r){const v=h.startsWith("left")||h.startsWith("right"),p=h.startsWith("top")||h.startsWith("bottom"),f=this.isAnchorInViewport(),b=!!p||(v?f:this.popoverMainAxisEnabled);if(b!==this.popoverMainAxisEnabled)return this.popoverMainAxisEnabled=b,void this.updatePosition()}this.currentPlacement=h,Object.assign(this.floatingElement.style,{left:`${c}px`,top:`${u}px`,position:"fixed",transition:`opacity ${this.timeOfAnimation}ms ease`});const m=h.split("-")[0]??"bottom",g={top:"bottom",right:"left",bottom:"top",left:"right"}[m],{arrowZIndex:y}=this.normalizeFloatingElementStacking();if(d.arrow&&this.arrowEl){const v=this.arrowEl.offsetWidth,{x:p,y:f}=d.arrow;this.arrowEl.style.borderRadius=`${["left","right"].includes(m)?"0 ":""}var(--gidsFloatingElement-tip-border-radius, 2px)${["top","bottom"].includes(m)?" 0":""}`,Object.assign(this.arrowEl.style,{left:p!==null?`${p}px`:"",top:f!==null?`${f}px`:"",right:"",bottom:"",[g]:-v/2+"px",transform:"rotate(45deg)",zIndex:`${y}`,background:"var(--gidsFloatingElement-background)"})}}))}applyViewportMaxWidth(){const t=`calc(100vw - ${2*this.offset}px)`;this.floatingElement&&this.floatingElement?.style.maxWidth!==t&&(this.floatingElement.style.maxWidth=t)}normalizeFloatingElementStacking(){const t=this.floatingElement.style.zIndex||(window.getComputedStyle?.(this.floatingElement).zIndex??""),n=Number.parseInt(t,10),s=Number.isNaN(n)?-1:n-1,i=Number.isNaN(n)?s+1:n;return Number.isNaN(i)||(this.floatingElement.style.zIndex=`${i}`),Array.from(this.floatingElement.children).forEach((o=>{if(!(o instanceof HTMLElement)||o===this.arrowEl)return;const a=o.style.zIndex||(window.getComputedStyle?.(o).zIndex??""),r=Number.parseInt(a,10),l=window.getComputedStyle?.(o).position??"";(a===""||a==="auto"||Number.isNaN(r)||r<i)&&(o.style.zIndex=`${i}`,l!==""&&l!=="static"||(o.style.position="relative"))})),{contentZIndex:i,arrowZIndex:s}}hideFloatingElement(){this.floatingElement.classList.remove(this.config.visibilityClass),fe.currentFloatingElements.delete(this.config.elementType)}showFloatingElement(){const t=fe.currentFloatingElements.get(this.config.elementType);t&&t.hideFloatingElement(),this.floatingElement.classList.add(this.config.visibilityClass),fe.currentFloatingElements.set(this.config.elementType,this)}isVisible(){return this.floatingElement.classList.contains(this.config.visibilityClass)}show(){this.setupAutoUpdate(),this.showFloatingElement()}hide(){this.cleanupAutoUpdate(),this.hideFloatingElement()}toggle(){this.isVisible()?this.hide():this.show()}showAfterDelay(){clearTimeout(this.hoverOutTimeout),this.hoverTimeout=setTimeout((()=>{this.show()}),this.timeBeforeElementShows)}hideAfterDelay(){clearTimeout(this.hoverTimeout),this.hoverOutTimeout=setTimeout((()=>{this.hide()}),this.timeDelayBeforeFadingOut)}cancelDelayedActions(){clearTimeout(this.hoverTimeout),clearTimeout(this.hoverOutTimeout)}destroy(){this.cleanupAutoUpdate(),this.cancelDelayedActions()}isAnchorInViewport(){if(!(this.anchorElement&&this.anchorElement instanceof Element))return!1;const t=this.anchorElement.getBoundingClientRect(),n=window.innerHeight||document.documentElement?.clientHeight||0,s=window.innerWidth||document.documentElement?.clientWidth||0,i=t.height/2+2*this.offset;return t.bottom>=i&&t.top<=n-i&&t.right>=0&&t.left<=s}};fe.currentFloatingElements=new Map;let It=fe;const Di=De(class extends ye{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.placement="bottom",this.constrainPlacements=["bottom","top"],this.previouslyFocusedElement=null,this.focusableElements=[],this.handleToggleEvent=t=>{t.stopPropagation();const n=this.floatingElementManager.isVisible();this.floatingElementManager.toggle(),!n&&this.floatingElementManager.isVisible()?this.onFlyoutPanelShow():n&&!this.floatingElementManager.isVisible()&&this.onFlyoutPanelHide()},this.handleDocumentClick=t=>{this.floatingElementManager.isVisible()&&!this._el.contains(t.target)&&(this.floatingElementManager.hide(),this.onFlyoutPanelHide())},this.handleKeyDown=t=>{if(this.floatingElementManager.isVisible())return t.key==="Escape"?(t.preventDefault(),this.floatingElementManager.hide(),void this.onFlyoutPanelHide()):void(t.key==="Tab"&&this.trapFocus(t))}}componentDidLoad(){this.floatingElementManager=new It(this._el,{htmlFor:this.htmlFor,placement:this.placement,showWithoutDelay:!0,floatingElementSelector:"#flyout-panel",showArrow:!1,visibilityClass:"gids-flyout-panel--visible",elementType:ke.FLYOUT_PANEL,constrainPlacements:this?.constrainPlacements??["bottom","top"],constrainToViewportHeight:!0,getAnchorElementFromSlot:e=>e.querySelector('slot[name="anchor"]')?.assignedElements()[0]||null}),this.floatingElementManager.initialize(),this.setupEventListeners()}setupEventListeners(){const e=this.floatingElementManager.getAnchorElement();e&&(e.addEventListener("click",this.handleToggleEvent),document.addEventListener("click",this.handleDocumentClick),document.addEventListener("keydown",this.handleKeyDown))}onFlyoutPanelShow(){this.previouslyFocusedElement=document.activeElement,this.updateFocusableElements(),setTimeout((()=>{this.focusableElements.length>0&&this.focusableElements[0]&&this.focusableElements[0].focus()}),50)}onFlyoutPanelHide(){this.previouslyFocusedElement&&(this.previouslyFocusedElement.focus(),this.previouslyFocusedElement=null)}updateFocusableElements(){const e=this._el.shadowRoot?.querySelector("#flyout-panel");if(!e)return;const t=[],n=Pn(e);t.push(...n);const s=this._el.shadowRoot?.querySelector("slot:not([name])");s&&s.assignedElements({flatten:!0}).forEach((i=>{const o=Pn(i);t.push(...o)})),this.focusableElements=t.sort(((i,o)=>{const a=i.compareDocumentPosition(o),r=!!(a&Node.DOCUMENT_POSITION_FOLLOWING),l=!!(a&Node.DOCUMENT_POSITION_PRECEDING);return r?-1:l?1:0}))}trapFocus(e){if(this.focusableElements.length===0)return;const t=this.focusableElements[0],n=this.focusableElements[this.focusableElements.length-1];let s=document.activeElement;if(s===this._el){const o=this._el.shadowRoot?.activeElement;o!==null&&(s=o)}const i=this.focusableElements.indexOf(s)!==-1;e.shiftKey?s!==t&&i||(e.preventDefault(),n&&n.focus()):s!==n&&i||(e.preventDefault(),t&&t.focus())}placementChanged(e){this.floatingElementManager?.updateConfig({placement:e}),this.floatingElementManager?.isVisible()&&this.floatingElementManager?.reposition()}constrainPlacementsChanged(e){this.floatingElementManager?.updateConfig({constrainPlacements:e}),this.floatingElementManager?.isVisible()&&this.floatingElementManager?.reposition()}htmlForChanged(e){this.floatingElementManager?.updateConfig({htmlFor:e}),this.cleanupEventListeners(),this.floatingElementManager?.initialize(),this.setupEventListeners()}cleanupEventListeners(){const e=this.floatingElementManager?.getAnchorElement();e&&e.removeEventListener("click",this.handleToggleEvent),document.removeEventListener("click",this.handleDocumentClick),document.removeEventListener("keydown",this.handleKeyDown)}openFlyoutPanel(e){e&&e.stopPropagation(),this.floatingElementManager.isVisible()||(this.floatingElementManager.show(),this.onFlyoutPanelShow())}closeFlyoutPanel(e){e&&e.stopPropagation(),this.floatingElementManager.isVisible()&&(this.floatingElementManager.hide(),this.onFlyoutPanelHide())}render(){return w(os,{key:"ad79cb0c6c6f36d2d6926233dd10d1de053fa405"},w("slot",{key:"97333353f6deda3222ccdcee1a7c9a42900204f5",name:"anchor"}),w("div",{key:"805d139b92080862e60dad9591908f4c9af42dd3",id:"flyout-panel",part:"flyout-panel",role:"dialog","aria-modal":"true",tabindex:"-1"},w("div",{key:"522bae9ac93bbb12e3d3f820a477c81b768ddff3"},w("slot",{key:"3c3601c973866e9d6ccb7aaeb686e0659b54ea50"}))))}disconnectedCallback(){this.cleanupEventListeners(),this.floatingElementManager?.destroy()}get _el(){return this}static get watchers(){return{placement:[{placementChanged:0}],constrainPlacements:[{constrainPlacementsChanged:0}],htmlFor:[{htmlForChanged:0}]}}static get style(){return"gids-flyout-panel{--gidsFlyoutPanel-background:var(--gids-elevation-surface-overlay-default);--gidsFlyoutPanel-text-color:var(--gids-color-text-default);--gidsFlyoutPanel-padding:var(--gids-padding-vertical-edge-to-element-200) var(--gids-padding-horizontal-edge-to-element-300);--gidsFlyoutPanel-border-radius:var(--gids-border-radius-lg);--gidsFlyoutPanel-shadow:var(--gids-elevation-shadow-overlay);--gidsFloatingElement-background:var(--gidsFlyoutPanel-background)}[part=flyout-panel]{font-family:var(--gids-typography-label-small__font-family);font-size:var(--gids-typography-label-small__font-size);font-weight:var(--gids-typography-label-small__font-weight);letter-spacing:var(--gids-typography-label-small__letter-spacing);line-height:var(--gids-typography-label-small__line-height);text-transform:var(--gids-typography-label-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-small__font-variant-caps, inherit);position:absolute;display:inline-block;background-color:var(--gidsFlyoutPanel-background);color:var(--gidsFlyoutPanel-text-color);border-radius:var(--gidsFlyoutPanel-border-radius);box-shadow:var(--gidsFlyoutPanel-shadow);z-index:1000;opacity:0;pointer-events:none;outline:none}[part=flyout-panel]:focus{outline:none}[part=flyout-panel].gids-flyout-panel--visible{pointer-events:initial;opacity:1}"}},[257,"gids-flyout-panel",{htmlFor:[513,"for"],placement:[513],constrainPlacements:[16],openFlyoutPanel:[64],closeFlyoutPanel:[64]},void 0,{placement:[{placementChanged:0}],constrainPlacements:[{constrainPlacementsChanged:0}],htmlFor:[{htmlForChanged:0}]}]),An=e=>{if(!(e instanceof ye)||e.tabIndex===-1||e.hasAttribute("disabled"))return!1;const t=getComputedStyle(e);if(t.display==="none"||t.visibility==="hidden"||e.hidden)return!1;try{const n=e.tabIndex;e.tabIndex=-1,e.focus();const s=document.activeElement===e;return e.tabIndex=n,s&&e.blur(),s}catch{return!1}},Pn=e=>{const t=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>An(i)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}),n=[];An(e)&&n.push(e);let s=t.nextNode();for(;s!==null;)n.push(s),s=t.nextNode();return n};function Ve(){typeof customElements<"u"&&["gids-flyout-panel"].forEach((e=>{e==="gids-flyout-panel"&&(customElements.get(e)||customElements.define(e,Di))}))}Ve();const{getGidsStatusTagClassNames:$i,getStatusTagIconName:Ri,getStatusTagText:Li}=Es,_n=({type:e="new",appearance:t="subtlest",size:n="sm",class:s})=>w("div",{class:$i({type:e,size:n,appearance:t},s)},w(J,{name:Ri(e),appearance:"filled"}),w("label",null,Li(e))),{getGidsCheckboxClassNames:Fi}=ps,Tn=({fieldRequirement:e,fieldRequirementOptionalText:t,fieldRequirementRequiredText:n,info:s,labelId:i,checked:o,defaultChecked:a,disabled:r,indeterminate:l,inputId:c,name:u,value:d,required:h,onChange:m,class:g,...y},v)=>{const p=c??lt();return w("div",{class:Fi(g),...y},w(js,{checked:o,defaultChecked:a,disabled:r,indeterminate:l,inputId:p,name:u,value:d,required:h,onChange:m}),w(ln,{disabled:r,fieldRequirement:e,fieldRequirementOptionalText:t,fieldRequirementRequiredText:n,labelId:i,htmlFor:p,info:s},v))},{getGidsRadioControlClassNames:ji}=vs,zi=({checked:e,defaultChecked:t,disabled:n,inputId:s,name:i,value:o,onChange:a,class:r,...l})=>w("span",{class:ji(r),...l},w("input",{class:"gids-radio-control__input",type:"radio",disabled:n,checked:e,defaultChecked:t,value:o,id:s,name:i,onChange:a}),w("span",{class:"gids-radio-control__check"})),{getGidsRadioClassNames:qi}=Ss,On=({fieldRequirement:e,fieldRequirementOptionalText:t,fieldRequirementRequiredText:n,info:s,labelId:i,checked:o,defaultChecked:a,disabled:r,inputId:l,name:c,value:u,onChange:d,class:h,...m},g)=>{const y=l??lt();return w("div",{class:qi(h),...m},w(zi,{checked:o,defaultChecked:a,disabled:r,inputId:y,name:c,value:u,onChange:d}),w(ln,{disabled:r,fieldRequirement:e,fieldRequirementOptionalText:t,fieldRequirementRequiredText:n,labelId:i,htmlFor:y,info:s},g))},{getGidsSidebarMenuItemClassNames:Wi}=xs,Nn=({id:e="sidebar-menu-item",appearance:t="default",selectionAppearance:n="subtle",leadingLabel:s,leadingSupportingText:i,trailingLabel:o,trailingSupportingText:a,leadingIcon:r,trailingIcon:l,leadingAccessory:c,trailingAccessory:u,selected:d,disabled:h,onPressSidebarMenuItem:m,class:g})=>{const y=s&&s!=="",v=i&&i!=="",p=o&&o!=="",f=a&&a!=="",b=y||v,x=p||f,S=b||x;return w("button",{type:"button",id:e,"data-appearance":t,"data-selected":d?"true":"false",disabled:h,class:Wi({selected:d,appearance:t,selectionAppearance:n},g),onClick:I=>{m&&m({originalEvent:I,sidebarMenuItemId:e,selected:!d})}},r||c?w("div",{class:"gids-sidebar-menu-item__leading-accessory-content"},r,c):void 0,S?w("div",{class:"gids-sidebar-menu-item__content"},b?w("div",{class:"gids-sidebar-menu-item__leading-content"},y?w("span",{class:"gids-sidebar-menu-item__label-content"},s):void 0,v?w("p",{class:"gids-sidebar-menu-item__support-content"},i):void 0):void 0,x?w("div",{class:"gids-sidebar-menu-item__trailing-content"},p?w("span",{class:"gids-sidebar-menu-item__label-content"},o):void 0,f?w("p",{class:"gids-sidebar-menu-item__support-content"},a):void 0):void 0):void 0,l||u?w("div",{class:"gids-sidebar-menu-item__trailing-accessory-content"},u,l):void 0)},{getGidsSidebarMenuClassNames:Gi}=Cs,Vi=De(class extends ye{constructor(e){super(),e!==!1&&this.__registerHost(),this.id="sidebar-menu",this.sidebarMenuItemAppearance="subtle",this.sidebarMenuItemSelectionAppearance="default",this.placement="right-end",this.constrainPlacements=["bottom","left","right","left-start","left-end","right-start","right-end","top"],this.selectedSectionIdState=void 0,this.selectedItemIdState=void 0,this.onSidebarMenuItemPress=({menuItem:t,itemIndex:n,sectionIndex:s,event:i})=>{if(t){const o=(this?.menuData??[])[s];(o?.menuItems??[]).length>0&&!this.isMenuItemSelected({sectionId:o?.sectionId,itemId:t.id})&&(this.selectedSectionIdState=o?.sectionId,this.selectedItemIdState=t.id,this.onSidebarMenuChange&&this.onSidebarMenuChange({originalEvent:i?.originalEvent,sidebarMenuItemId:i.sidebarMenuItemId,selected:i?.selected,sidebarMenuItemSectionId:o?.sectionId??"",sidebarMenuItemSectionIndex:s,sidebarMenuItemIndex:n,sidebarMenuId:this.id}))}this.flyoutPanelElement?.closeFlyoutPanel()},this.isMenuItemSelected=({sectionId:t,itemId:n})=>{const s=this?.selectedSectionIdState,i=this?.selectedItemIdState;return s===t&&i===n},this.isValidMenu=()=>!!(this?.menuData&&this.menuData.length>0&&this.menuData[0]?.menuItems&&this.menuData[0].menuItems.length>0),this.renderAccessory=({accessoryType:t,accessory:n})=>{switch(t){case"badge":return w(nn,{...n?.badgeProps});case"display-tag":return w(sn,{...n?.displayTagProps,label:n?.displayTagProps?.label??"",color:n?.displayTagProps?.color??"accent-1",icon:n?.displayTagProps?.iconName?w(J,{name:n.displayTagProps.iconName,appearance:n?.displayTagProps?.iconAppearance??"regular",size:n?.displayTagProps?.iconSize??"md",alt:n?.displayTagProps?.iconAlt}):void 0});case"status-tag":return w(_n,{...n?.statusTagProps});case"checkbox":return w(Tn,{checked:n?.checkboxProps?.checked,disabled:n?.checkboxProps?.disabled,indeterminate:n?.checkboxProps?.indeterminate},n?.checkboxProps?.label);case"radio":return w(On,{checked:n?.radioProps?.checked,disabled:n?.radioProps?.disabled},n?.radioProps?.label);default:return}},this.renderIcon=t=>t?.name?w(J,{name:t.name,appearance:t?.appearance??"regular",size:t?.size??"md",alt:t?.alt}):void 0}idChanged(e){this.id=e}sidebarMenuItemAppearanceChanged(e){this.sidebarMenuItemAppearance=e}sidebarMenuItemSelectionAppearanceChanged(e){this.sidebarMenuItemSelectionAppearance=e}selectedSectionIdChanged(e){this.selectedSectionId=e,this.selectedSectionIdState=e}selectedItemIdChanged(e){this.selectedItemId=e,this.selectedItemIdState=e}placementChanged(e){this.placement=e}constrainPlacementsChanged(e){this.constrainPlacements=e}htmlForChanged(e){this.htmlFor=e}menuDataChanged(e){this.menuData=e}connectedCallback(){this.selectedSectionIdState=this.selectedSectionId,this.selectedItemIdState=this.selectedItemId}componentDidRender(){this.flyoutPanelElement=this.hostElement.querySelector("gids-flyout-panel")??void 0}render(){const e=this.id,t=this?.sidebarMenuItemAppearance??"subtle",n=this?.sidebarMenuItemSelectionAppearance??"default",s=this?.placement??"right",i=this?.constrainPlacements&&this.constrainPlacements.length>0?this.constrainPlacements:["bottom","left","right","top","left-start","left-end","right-start","right-end"],o=this.htmlFor,a=this?.menuData??[],r=this.isValidMenu(),l=Gi();return w(Ae,{key:"18caea43f2a18e876e094176ee144ece86e0eeec",id:e,class:l},r?w("gids-flyout-panel",{htmlFor:o,constrainPlacements:i,placement:s},a.map(((c,u)=>{const d=c?.sectionLabel,h=c?.menuItems??[];return w("div",{key:`${u+1}`,class:"gids-sidebar-menu__container"},d&&d!==""?w("h3",null,d):void 0,w("div",{class:"gids-sidebar-menu__item-container"},h.map(((m,g)=>{const{leadingAccessoryType:y,leadingAccessory:v,trailingAccessoryType:p,trailingAccessory:f,leadingIconProps:b,trailingIconProps:x,...S}=m;return w(Nn,{key:`${g+1}`,...S,id:m.id,appearance:t,selectionAppearance:n,selected:this.isMenuItemSelected({sectionId:c?.sectionId,itemId:m.id}),leadingAccessory:this.renderAccessory({accessoryType:y,accessory:v}),trailingAccessory:this.renderAccessory({accessoryType:p,accessory:f}),leadingIcon:this.renderIcon(b),trailingIcon:this.renderIcon(x),onPressSidebarMenuItem:I=>this.onSidebarMenuItemPress({menuItem:m,sectionIndex:u,itemIndex:g,event:I})})}))))}))):void 0)}get hostElement(){return this}static get watchers(){return{id:[{idChanged:0}],sidebarMenuItemAppearance:[{sidebarMenuItemAppearanceChanged:0}],sidebarMenuItemSelectionAppearance:[{sidebarMenuItemSelectionAppearanceChanged:0}],selectedSectionId:[{selectedSectionIdChanged:0}],selectedItemId:[{selectedItemIdChanged:0}],placement:[{placementChanged:0}],constrainPlacements:[{constrainPlacementsChanged:0}],htmlFor:[{htmlForChanged:0}],menuData:[{menuDataChanged:0}]}}static get style(){return".gids-sidebar-menu__container{display:flex;flex-direction:column;gap:var(--gids-gap-200);width:100%;padding:var(--gids-padding-vertical-edge-to-element-150) var(--gids-padding-horizontal-edge-to-element-200)}.gids-sidebar-menu__item-container{display:flex;flex-direction:column;gap:var(--gids-gap-150)}"}},[0,"gids-sidebar-menu",{id:[1],sidebarMenuItemAppearance:[1,"sidebar-menu-item-appearance"],sidebarMenuItemSelectionAppearance:[1,"sidebar-menu-item-selection-appearance"],selectedSectionId:[1,"selected-section-id"],selectedItemId:[1,"selected-item-id"],placement:[1],constrainPlacements:[16],htmlFor:[1,"html-for"],menuData:[16],onSidebarMenuChange:[16],selectedSectionIdState:[32],selectedItemIdState:[32]},void 0,{id:[{idChanged:0}],sidebarMenuItemAppearance:[{sidebarMenuItemAppearanceChanged:0}],sidebarMenuItemSelectionAppearance:[{sidebarMenuItemSelectionAppearanceChanged:0}],selectedSectionId:[{selectedSectionIdChanged:0}],selectedItemId:[{selectedItemIdChanged:0}],placement:[{placementChanged:0}],constrainPlacements:[{constrainPlacementsChanged:0}],htmlFor:[{htmlForChanged:0}],menuData:[{menuDataChanged:0}]}]);function xt(){typeof customElements<"u"&&["gids-sidebar-menu","gids-flyout-panel"].forEach((e=>{switch(e){case"gids-sidebar-menu":customElements.get(e)||customElements.define(e,Vi);break;case"gids-flyout-panel":customElements.get(e)||Ve()}}))}xt();const{getGidsDividerClassNames:Hi}=bs,Ct=({orientation:e})=>w("hr",{class:Hi({orientation:e})}),{getGidsSidebarItemClassNames:Bi}=Is,Ui=De(class extends ye{constructor(e){super(),e!==!1&&this.__registerHost(),this.appearance="subtle",this.selectionAppearance="default",this.menuId="sidebar-menu-item",this.menuPlacement="right-end",this.menuConstrainPlacements=["bottom","left","right","top","left-start","left-end","right-start","right-end"],this.menuData=[],this.sidebarMenuItemAppearance="subtle",this.sidebarMenuItemSelectionAppearance="default",this.selectedMenuItemSectionIdState=void 0,this.selectedMenuItemIdState=void 0,this.selectedState=!1,this.onSidebarMenuItemPress=({event:t})=>{this.isNavigatable()&&!this.isSidebarItemSelected()&&(this.selectedState=!0,this.firePressEvents({originalEvent:t?.originalEvent,sidebarItemId:this.id,hasMenu:!1,menuLength:0,sidebarMenuItemSectionId:void 0,sidebarMenuItemSectionIndex:void 0,sidebarMenuItemIndex:void 0,sidebarMenuId:void 0,sidebarMenuItemId:void 0,selected:!0}))},this.onChangeSidebarMenu=({event:t})=>{t&&t?.originalEvent?.stopPropagation();const n=this?.menuData??[];this.isMenuItemSelected({selectedMenuSectionId:t?.sidebarMenuItemSectionId,selectedMenuItemId:t?.sidebarMenuItemId,selectedMenuId:this?.menuId??void 0})||(this.selectedMenuItemSectionIdState=t?.sidebarMenuItemSectionId,this.selectedMenuItemIdState=t?.sidebarMenuItemId,this.selectedState=!0,this.firePressEvents({originalEvent:t?.originalEvent,sidebarItemId:this.id,hasMenu:!0,menuLength:n.length,sidebarMenuItemSectionId:t?.sidebarMenuItemSectionId,sidebarMenuItemSectionIndex:t?.sidebarMenuItemSectionIndex,sidebarMenuItemIndex:t?.sidebarMenuItemIndex,sidebarMenuId:t?.sidebarMenuId,sidebarMenuItemId:t?.sidebarMenuItemId,selected:!0}))},this.firePressEvents=t=>{this.onPressSidebarItem&&this.onPressSidebarItem(t)},this.isSidebarItemSelected=()=>this?.selectedState??!1,this.isMenuItemSelected=({selectedMenuId:t,selectedMenuSectionId:n,selectedMenuItemId:s})=>(this?.selectedMenuItemSectionIdState??void 0)===n&&(this?.selectedMenuItemIdState??void 0)===s&&(this?.menuId??void 0)===t,this.hasMenu=()=>{const t=this?.menuData??[];return!!(t.length>0&&t[0]?.menuItems&&t[0].menuItems.length>0&&t[0].menuItems[0]?.id)},this.isNavigatable=()=>!this.hasMenu()}idChanged(e){this.id=e}appearanceChanged(e){this.appearance=e}selectionAppearanceChanged(e){this.selectionAppearance=e}leadingLabelChanged(e){this.leadingLabel=e}leadingSupportingTextChanged(e){this.leadingSupportingText=e}trailingLabelChanged(e){this.trailingLabel=e}trailingSupportingTextChanged(e){this.trailingSupportingText=e}selectedChanged(e){this.selected=e,this.selectedState=e}disabledChanged(e){this.disabled=e}menuIdChanged(e){this.menuId=e}menuPlacementChanged(e){this.menuPlacement=e}menuConstrainPlacementsChanged(e){this.menuConstrainPlacements=e}menuDataChanged(e){this.menuData=e}sidebarMenuItemAppearanceChanged(e){this.sidebarMenuItemAppearance=e}sidebarMenuItemSelectionAppearanceChanged(e){this.sidebarMenuItemSelectionAppearance=e}selectedMenuItemSectionIdChanged(e){this.selectedMenuItemSectionId=e,this.selectedMenuItemSectionIdState=e}selectedMenuItemIdChanged(e){this.selectedMenuItemId=e,this.selectedMenuItemIdState=e}connectedCallback(){this.selectedMenuItemSectionIdState=this.selectedMenuItemSectionId,this.selectedMenuItemIdState=this.selectedMenuItemId,this.selectedState=this.selected}render(){const e=this.id,t=this?.appearance??"subtle",n=this?.selectionAppearance??"default",s=this?.leadingLabel,i=this?.leadingSupportingText,o=this?.trailingLabel,a=this?.trailingSupportingText,r=this?.disabled??!1,l=this?.selectedState??!1,c=this?.menuId??"sidebar-menu-item",u=this?.menuPlacement??"right",d=this?.menuConstrainPlacements&&this.menuConstrainPlacements.length>0?this.menuConstrainPlacements:["bottom","left","right","top","left-start","left-end","right-start","right-end"],h=this?.menuData??[],m=this?.sidebarMenuItemAppearance??"subtle",g=this?.sidebarMenuItemSelectionAppearance??"default",y=this?.selectedMenuItemSectionIdState??void 0,v=this?.selectedMenuItemIdState??void 0,p=this.hasMenu(),f=Bi();return w(Ae,{key:"4df994cd92995f0a1053593ec83e2b97f45fe52d",id:e,class:f},w(Nn,{key:"458143794740850d76cbf686bc82efb40afc4a8f",id:e,appearance:t,selectionAppearance:n,leadingLabel:s,leadingSupportingText:i,trailingLabel:o,trailingSupportingText:a,selected:l,disabled:r,leadingIcon:w("slot",{name:"sidebarItemLeadingIcon"}),leadingAccessory:w("slot",{name:"sidebarItemLeadingAccessory"}),trailingAccessory:w("slot",{name:"sidebarItemTrailingAccessory"}),trailingIcon:p?w(J,{name:"chevron-right",size:"md",appearance:"regular",alt:""}):void 0,onPressSidebarMenuItem:b=>this.onSidebarMenuItemPress({event:b})}),p?w("div",{class:"gids-sidebar-item__menu-container"},w("gids-sidebar-menu",{htmlFor:e,menuData:h,id:c,placement:u,constrainPlacements:d,sidebarMenuItemAppearance:m,sidebarMenuItemSelectionAppearance:g,selectedSectionId:y,selectedItemId:v,onSidebarMenuChange:b=>this.onChangeSidebarMenu({event:b})})):void 0)}get hostElement(){return this}static get watchers(){return{id:[{idChanged:0}],appearance:[{appearanceChanged:0}],selectionAppearance:[{selectionAppearanceChanged:0}],leadingLabel:[{leadingLabelChanged:0}],leadingSupportingText:[{leadingSupportingTextChanged:0}],trailingLabel:[{trailingLabelChanged:0}],trailingSupportingText:[{trailingSupportingTextChanged:0}],selected:[{selectedChanged:0}],disabled:[{disabledChanged:0}],menuId:[{menuIdChanged:0}],menuPlacement:[{menuPlacementChanged:0}],menuConstrainPlacements:[{menuConstrainPlacementsChanged:0}],menuData:[{menuDataChanged:0}],sidebarMenuItemAppearance:[{sidebarMenuItemAppearanceChanged:0}],sidebarMenuItemSelectionAppearance:[{sidebarMenuItemSelectionAppearanceChanged:0}],selectedMenuItemSectionId:[{selectedMenuItemSectionIdChanged:0}],selectedMenuItemId:[{selectedMenuItemIdChanged:0}]}}static get style(){return".gids-sidebar-item{display:flex;flex-direction:column;width:100%}.gids-sidebar-item__menu-container{display:flex;flex-direction:column;width:100%}"}},[260,"gids-sidebar-item",{id:[1],appearance:[1],selectionAppearance:[1,"selection-appearance"],leadingLabel:[1,"leading-label"],leadingSupportingText:[1,"leading-supporting-text"],trailingLabel:[1,"trailing-label"],trailingSupportingText:[1,"trailing-supporting-text"],selected:[4],disabled:[4],menuId:[1,"menu-id"],menuPlacement:[1,"menu-placement"],menuConstrainPlacements:[16],menuData:[16],sidebarMenuItemAppearance:[1,"sidebar-menu-item-appearance"],sidebarMenuItemSelectionAppearance:[1,"sidebar-menu-item-selection-appearance"],selectedMenuItemSectionId:[1,"selected-menu-item-section-id"],selectedMenuItemId:[1,"selected-menu-item-id"],onPressSidebarMenuItem:[16],onPressSidebarItem:[16],selectedMenuItemSectionIdState:[32],selectedMenuItemIdState:[32],selectedState:[32]},void 0,{id:[{idChanged:0}],appearance:[{appearanceChanged:0}],selectionAppearance:[{selectionAppearanceChanged:0}],leadingLabel:[{leadingLabelChanged:0}],leadingSupportingText:[{leadingSupportingTextChanged:0}],trailingLabel:[{trailingLabelChanged:0}],trailingSupportingText:[{trailingSupportingTextChanged:0}],selected:[{selectedChanged:0}],disabled:[{disabledChanged:0}],menuId:[{menuIdChanged:0}],menuPlacement:[{menuPlacementChanged:0}],menuConstrainPlacements:[{menuConstrainPlacementsChanged:0}],menuData:[{menuDataChanged:0}],sidebarMenuItemAppearance:[{sidebarMenuItemAppearanceChanged:0}],sidebarMenuItemSelectionAppearance:[{sidebarMenuItemSelectionAppearanceChanged:0}],selectedMenuItemSectionId:[{selectedMenuItemSectionIdChanged:0}],selectedMenuItemId:[{selectedMenuItemIdChanged:0}]}]);function Dn(){typeof customElements<"u"&&["gids-sidebar-item","gids-flyout-panel","gids-sidebar-menu"].forEach((e=>{switch(e){case"gids-sidebar-item":customElements.get(e)||customElements.define(e,Ui);break;case"gids-flyout-panel":customElements.get(e)||Ve();break;case"gids-sidebar-menu":customElements.get(e)||xt()}}))}Dn();const{getGidsSidebarClassNames:Yi}=ks,$n=De(class extends ye{constructor(e){super(),e!==!1&&this.__registerHost(),this.id="sidebar",this.appearance="default",this.sidebarItemAppearance="subtle",this.sidebarItemSelectionAppearance="default",this.sidebarMenuItemAppearance="subtle",this.sidebarMenuItemSelectionAppearance="default",this.height="intrinsic",this.sectionDividers=!0,this.itemDividers=!1,this.headerDivider=!0,this.menuPlacement="right-end",this.menuConstrainPlacements=["right-end","left-end","left","right","right-start","left-start"],this.listData=[],this.selectedMenuItemSectionIdState=void 0,this.selectedMenuItemIdState=void 0,this.selectedSectionIdState=void 0,this.selectedItemIdState=void 0,this.hasHeaderContent=!1,this.onSidebarItemPress=({event:t,sectionId:n,sectionIndex:s,itemIndex:i})=>{this.selectedSectionIdState=n,this.selectedItemIdState=t?.sidebarItemId??void 0,this.selectedMenuItemSectionIdState=t?.sidebarMenuItemSectionId??void 0,this.selectedMenuItemIdState=t?.sidebarMenuItemId??void 0,this.onSidebarChange&&this.onSidebarChange({...t,originalEvent:t?.originalEvent,sidebarSectionId:n,sidebarSectionIndex:s,sidebarItemIndex:i})},this.hasMenu=t=>{const n=t?.menuData??[];if(n.length<=0)return!1;const s=n[0]?.menuItems??[];return s.length<=0?!1:!!s[0]?.id},this.sidebarMenuItemSelected=({listItem:t,listItemSectionId:n})=>{if(n===this.selectedSectionIdState&&t.id===this.selectedItemIdState){const s=(t?.menuData??[]).find((i=>i?.sectionId===this?.selectedMenuItemSectionIdState));if(s){const i=s?.menuItems??[];return!!(i.length>0&&i.find((o=>o.id===this?.selectedMenuItemIdState)))}return!1}return!1},this.sidebarItemSelected=({listItem:t,listItemSectionId:n})=>this.hasMenu(t)?this.sidebarMenuItemSelected({listItem:t,listItemSectionId:n}):n===this.selectedSectionIdState&&t.id===this.selectedItemIdState,this.renderAccessory=({accessoryType:t,accessory:n,slotName:s})=>{switch(t){case"badge":return w(nn,{...n?.badgeProps,slot:s});case"display-tag":return w(sn,{...n?.displayTagProps,label:n?.displayTagProps?.label??"",color:n?.displayTagProps?.color??"accent-1",slot:s,icon:n?.displayTagProps?.iconName?w(J,{name:n.displayTagProps.iconName,appearance:n?.displayTagProps?.iconAppearance??"regular",size:n?.displayTagProps?.iconSize??"md",alt:n?.displayTagProps?.iconAlt}):void 0});case"status-tag":return w(_n,{...n?.statusTagProps,slot:s});case"checkbox":return w(Tn,{checked:n?.checkboxProps?.checked,disabled:n?.checkboxProps?.disabled,indeterminate:n?.checkboxProps?.indeterminate,slot:s},n?.checkboxProps?.label);case"radio":return w(On,{checked:n?.radioProps?.checked,disabled:n?.radioProps?.disabled,slot:s},n?.radioProps?.label);default:return}},this.renderIcon=t=>t?.name?w(J,{name:t.name,appearance:t?.appearance??"regular",size:t?.size??"md",alt:t?.alt,slot:"sidebarItemLeadingIcon"}):void 0}idChanged(e){this.id=e}appearanceChanged(e){this.appearance=e}sidebarItemAppearanceChanged(e){this.sidebarItemAppearance=e}sidebarItemSelectionAppearanceChanged(e){this.sidebarItemSelectionAppearance=e}sidebarMenuItemAppearanceChanged(e){this.sidebarMenuItemAppearance=e}sidebarMenuItemSelectionAppearanceChanged(e){this.sidebarMenuItemSelectionAppearance=e}selectedSectionIdChanged(e){this.selectedSectionId=e,this.selectedSectionIdState=e}selectedItemIdChanged(e){this.selectedItemId=e,this.selectedItemIdState=e}selectedMenuItemSectionIdChanged(e){this.selectedMenuItemSectionId=e,this.selectedMenuItemSectionIdState=e}selectedMenuItemIdChanged(e){this.selectedMenuItemId=e,this.selectedMenuItemIdState=e}heightChanged(e){this.height=e}sectionDividersChanged(e){this.sectionDividers=e}itemDividersChanged(e){this.itemDividers=e}menuPlacementChanged(e){this.menuPlacement=e}menuConstrainPlacementsChanged(e){this.menuConstrainPlacements=e}listDataChanged(e){this.listData=e}connectedCallback(){this.selectedMenuItemSectionIdState=this.selectedMenuItemSectionId,this.selectedMenuItemIdState=this.selectedMenuItemId,this.selectedSectionIdState=this.selectedSectionId,this.selectedItemIdState=this.selectedItemId,this.hasHeaderContent=Array.from(this.hostElement.childNodes).some((e=>e.nodeType===Node.ELEMENT_NODE||e.nodeType===Node.TEXT_NODE&&(e.textContent?.trim().length??0)>0))}render(){const e=this.id,t=this?.appearance??"default",n=this?.sidebarItemAppearance??"subtle",s=this?.sidebarItemSelectionAppearance??"default",i=this?.sidebarMenuItemAppearance??"subtle",o=this?.sidebarMenuItemSelectionAppearance??"default",a=this?.height??"intrinsic",r=this?.menuPlacement??"right-end",l=this?.menuConstrainPlacements&&this.menuConstrainPlacements.length>0?this.menuConstrainPlacements:["right-end","left-end","left","right","right-start","left-start"],c=this?.listData??[],u=this?.sectionDividers??!0,d=this?.itemDividers??!1,h=this?.headerDivider??!0,m=this?.selectedMenuItemSectionIdState??void 0,g=this?.selectedMenuItemIdState??void 0,y=this.hasHeaderContent,v=Yi({appearance:t,height:a});return w(Ae,{key:"0b48c64fd20c4197854d539e83fead2de42b2817",class:v,id:e,"data-appearance":t},y?w("div",{class:"gids-sidebar__header-container"},w("slot",null),y&&h?w(Ct,null):void 0):void 0,c.map(((p,f)=>{const b=p?.lisItems??[],x=p?.listSectionLabel,S=p?.listSectionId;return w("div",{key:`${f+1}-${S}`,class:"gids-sidebar__list-section-container"},x?w("h4",null,x):void 0,b.map(((I,C)=>{const k=`${C+1}-${f+1}-${I.id}`,{leadingAccessoryType:M,leadingAccessory:P,trailingAccessoryType:G,trailingAccessory:$,leadingIconProps:V,..._}=I;return w("div",{class:"gids-sidebar__item-container"},w("gids-sidebar-item",{..._,key:k,id:I.id,appearance:n,selectionAppearance:s,sidebarMenuItemAppearance:i,sidebarMenuItemSelectionAppearance:o,menuPlacement:r,menuConstrainPlacements:l,menuData:I?.menuData??[],menuId:I?.menuId,leadingLabel:I?.leadingLabel,leadingSupportingText:I?.leadingSupportingText,trailingLabel:I?.trailingLabel,trailingSupportingText:I?.trailingSupportingText,disabled:I?.disabled,selectedMenuItemSectionId:m,selectedMenuItemId:g,selected:this.sidebarItemSelected({listItem:I,listItemSectionId:S}),onPressSidebarItem:K=>this.onSidebarItemPress({event:K,sectionId:S,sectionIndex:f,itemIndex:C})},this.renderAccessory({accessoryType:M,accessory:P,slotName:"sidebarItemLeadingAccessory"}),this.renderIcon(V),this.renderAccessory({accessoryType:G,accessory:$,slotName:"sidebarItemTrailingAccessory"})),d&&C<b.length-1?w(Ct,null):void 0)})),u&&f<c.length-1?w("div",{class:"gids-sidebar__section-divider-container"},w(Ct,null)):void 0)})))}get hostElement(){return this}static get watchers(){return{id:[{idChanged:0}],appearance:[{appearanceChanged:0}],sidebarItemAppearance:[{sidebarItemAppearanceChanged:0}],sidebarItemSelectionAppearance:[{sidebarItemSelectionAppearanceChanged:0}],sidebarMenuItemAppearance:[{sidebarMenuItemAppearanceChanged:0}],sidebarMenuItemSelectionAppearance:[{sidebarMenuItemSelectionAppearanceChanged:0}],selectedSectionId:[{selectedSectionIdChanged:0}],selectedItemId:[{selectedItemIdChanged:0}],selectedMenuItemSectionId:[{selectedMenuItemSectionIdChanged:0}],selectedMenuItemId:[{selectedMenuItemIdChanged:0}],height:[{heightChanged:0}],sectionDividers:[{sectionDividersChanged:0}],itemDividers:[{itemDividersChanged:0}],menuPlacement:[{menuPlacementChanged:0}],menuConstrainPlacements:[{menuConstrainPlacementsChanged:0}],listData:[{listDataChanged:0}]}}static get style(){return".gids-sidebar{display:flex;flex-direction:column;gap:var(--gids-gap-300);padding:var(--gids-padding-vertical-edge-to-element-250) var(--gids-padding-horizontal-edge-to-element-300);background-color:var(--gids-color-background-canvas);border-radius:var(--gids-border-radius-lg);border:var(--gids-border-width-thin) solid var(--gids-color-border-default)}.gids-sidebar__header-container{display:flex;flex-direction:column;width:100%;gap:var(--gids-gap-400)}.gids-sidebar__list-section-container{display:flex;flex-direction:column;gap:var(--gids-gap-150)}.gids-sidebar__list-section-container h4{margin:0;color:var(--gids-color-text-subtlest)}.gids-sidebar__item-container{display:flex;flex-direction:column;width:100%;gap:var(--gids-gap-200)}.gids-sidebar__section-divider-container{display:flex;flex-direction:column;width:100%;padding:var(--gids-padding-vertical-edge-to-element-250) 0}.gids-sidebar--appearance-subtle{background-color:transparent}.gids-sidebar--appearance-primary{background-color:var(--gids-color-background-brand-subtlest-default)}.gids-sidebar--height-full{height:100vh !important;overflow-x:hidden;overflow-y:auto}"}},[260,"gids-sidebar",{id:[1],appearance:[1],sidebarItemAppearance:[1,"sidebar-item-appearance"],sidebarItemSelectionAppearance:[1,"sidebar-item-selection-appearance"],sidebarMenuItemAppearance:[1,"sidebar-menu-item-appearance"],sidebarMenuItemSelectionAppearance:[1,"sidebar-menu-item-selection-appearance"],selectedSectionId:[1,"selected-section-id"],selectedItemId:[1,"selected-item-id"],selectedMenuItemId:[1,"selected-menu-item-id"],selectedMenuItemSectionId:[1,"selected-menu-item-section-id"],height:[1],sectionDividers:[4,"section-dividers"],itemDividers:[4,"item-dividers"],headerDivider:[4,"header-divider"],menuPlacement:[1,"menu-placement"],menuConstrainPlacements:[16],listData:[16],onSidebarChange:[16],selectedMenuItemSectionIdState:[32],selectedMenuItemIdState:[32],selectedSectionIdState:[32],selectedItemIdState:[32],hasHeaderContent:[32]},void 0,{id:[{idChanged:0}],appearance:[{appearanceChanged:0}],sidebarItemAppearance:[{sidebarItemAppearanceChanged:0}],sidebarItemSelectionAppearance:[{sidebarItemSelectionAppearanceChanged:0}],sidebarMenuItemAppearance:[{sidebarMenuItemAppearanceChanged:0}],sidebarMenuItemSelectionAppearance:[{sidebarMenuItemSelectionAppearanceChanged:0}],selectedSectionId:[{selectedSectionIdChanged:0}],selectedItemId:[{selectedItemIdChanged:0}],selectedMenuItemSectionId:[{selectedMenuItemSectionIdChanged:0}],selectedMenuItemId:[{selectedMenuItemIdChanged:0}],height:[{heightChanged:0}],sectionDividers:[{sectionDividersChanged:0}],itemDividers:[{itemDividersChanged:0}],menuPlacement:[{menuPlacementChanged:0}],menuConstrainPlacements:[{menuConstrainPlacementsChanged:0}],listData:[{listDataChanged:0}]}]);function Rn(){typeof customElements<"u"&&["gids-sidebar","gids-flyout-panel","gids-sidebar-item","gids-sidebar-menu"].forEach((e=>{switch(e){case"gids-sidebar":customElements.get(e)||customElements.define(e,$n);break;case"gids-flyout-panel":customElements.get(e)||Ve();break;case"gids-sidebar-item":customElements.get(e)||Dn();break;case"gids-sidebar-menu":customElements.get(e)||xt()}}))}Rn();const Ki=$n,Xi=Rn;se.GidsSidebar=Ki,se.defineCustomElement=Xi,Object.defineProperty(se,Symbol.toStringTag,{value:"Module"})}));
|
|
5
|
+
`);const y=this["s-cr"].parentElement;return(y.__childNodes?y.childNodes:(v=>{const f=[];for(let p=0;p<v.length;p++){const b=v[p]["s-nr"]||void 0;b&&b.isConnected&&f.push(b)}return f})(y.childNodes)).forEach((v=>{g===we(v)&&m.push(v)})),d?m.filter((v=>v.nodeType===1)):m}).bind(c);c.assignedElements=u(!0),c.assignedNodes=u(!1)})(o),r=e&&e.m&&e.m[n],r&&r.O===i.O&&e.S&&jt(e.S)),o},jt=e=>{M.i|=1;const t=e.closest(ae.toLowerCase());if(t!=null){const n=Array.from(t.__childNodes||t.childNodes).find((i=>i["s-cr"])),s=Array.from(e.__childNodes||e.childNodes);for(const i of n?s.reverse():s)i["s-sh"]!=null&&(R(t,i,n??null),i["s-sh"]=void 0,_e=!0)}M.i&=-2},Oe=(e,t)=>{M.i|=1;const n=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let s=e;for(;s=s.nextSibling;)s&&s["s-sn"]===e["s-sn"]&&s["s-sh"]===ae&&n.push(s)}for(let s=n.length-1;s>=0;s--){const i=n[s];i["s-hn"]!==ae&&i["s-ol"]&&(R(Ie(i).parentNode,i,Ie(i)),i["s-ol"].remove(),i["s-ol"]=void 0,i["s-sh"]=void 0,_e=!0),t&&Oe(i,t)}M.i&=-2},zt=(e,t,n,s,i,o)=>{let a,r=e["s-cr"]&&e["s-cr"].parentNode||e;for(r.shadowRoot&&r.tagName===ae&&(r=r.shadowRoot),n.O==="template"&&(r=r.content);i<=o;++i)s[i]&&(a=Te(null,n,i),a&&(s[i].S=a,R(r,a,Ie(t))))},qt=(e,t,n)=>{for(let s=t;s<=n;++s){const i=e[s];if(i){const o=i.S;Vt(i),o&&(Pe=!0,o["s-ol"]?o["s-ol"].remove():Oe(o,!0),o.remove())}}},Ne=(e,t,n=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:n?(n&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),Ie=e=>e&&e["s-ol"]||e,ue=(e,t,n=!1)=>{const s=t.S=e.S,i=e.m,o=t.m,a=t.O,r=t.h;let l;r==null?(T=a==="svg"||a!=="foreignObject"&&T,a!=="slot"||ve||e.j!==t.j&&(t.S["s-sn"]=t.j||"",jt(t.S.parentElement)),et(e,t,T),i!==null&&o!==null?((c,u,d,h,m=!1)=>{let g,y,v=0,f=0,p=0,b=0,x=u.length-1,I=u[0],S=u[x],C=h.length-1,k=h[0],A=h[C];const P=d.O==="template"?c.content:c;for(;v<=x&&f<=C;)if(I==null)I=u[++v];else if(S==null)S=u[--x];else if(k==null)k=h[++f];else if(A==null)A=h[--C];else if(Ne(I,k,m))ue(I,k,m),I=u[++v],k=h[++f];else if(Ne(S,A,m))ue(S,A,m),S=u[--x],A=h[--C];else if(Ne(I,A,m))I.O!=="slot"&&A.O!=="slot"||Oe(I.S.parentNode,!1),ue(I,A,m),R(P,I.S,S.S.nextSibling),I=u[++v],A=h[--C];else if(Ne(S,k,m))I.O!=="slot"&&A.O!=="slot"||Oe(S.S.parentNode,!1),ue(S,k,m),R(P,S.S,I.S),S=u[--x],k=h[++f];else{for(p=-1,b=v;b<=x;++b)if(u[b]&&u[b].$!==null&&u[b].$===k.$){p=b;break}p>=0?(y=u[p],y.O!==k.O?g=Te(u&&u[f],d,p):(ue(y,k,m),u[p]=void 0,g=y.S),k=h[++f]):(g=Te(u&&u[f],d,f),k=h[++f]),g&&R(Ie(I.S).parentNode,g,Ie(I.S))}v>x?zt(c,h[C+1]==null?null:h[C+1].S,d,h,f,C):f>C&&qt(u,v,x)})(s,i,t,o,n):o!==null?(e.h!==null&&(s.textContent=""),zt(s,null,t,o,0,o.length-1)):!n&&i!==null&&qt(i,0,i.length-1),T&&a==="svg"&&(T=!1)):(l=s["s-cr"])?l.parentNode.textContent=r:e.h!==r&&(s.data=r)},B=[],Wt=e=>{let t,n,s;const i=e.__childNodes||e.childNodes;for(const o of i){if(o["s-sr"]&&(t=o["s-cr"])&&t.parentNode){n=t.parentNode.__childNodes||t.parentNode.childNodes;const a=o["s-sn"];for(s=n.length-1;s>=0;s--)if(t=n[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===o["s-hn"]||t["s-sh"]&&t["s-sh"]===o["s-hn"]))if(_t(t,a)){let r=B.find((l=>l.k===t));Pe=!0,t["s-sn"]=t["s-sn"]||a,r?(r.k["s-sh"]=o["s-hn"],r.N=o):(t["s-sh"]=o["s-hn"],B.push({N:o,k:t})),t["s-sr"]&&B.map((l=>{_t(l.k,t["s-sn"])&&(r=B.find((c=>c.k===t)),r&&!l.N&&(l.N=r.N))}))}else B.some((r=>r.k===t))||B.push({k:t})}o.nodeType===1&&Wt(o)}},Vt=e=>{e.v&&e.v.ref&&tt.push((()=>e.v.ref(null))),e.m&&e.m.map(Vt)},Yn=(e,t)=>{nt.push((()=>e(t)))},R=(e,t,n,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,n);const{slotNode:i}=(function(o,a){var r;if(!(a=a||((r=o["s-ol"])==null?void 0:r.parentElement)))return{slotNode:null,slotName:""};const l=o["s-sn"]=we(o)||"";return{slotNode:Xe(Ze(a,"childNodes"),a.tagName,l)[0],slotName:l}})(t);return i&&!s&&i.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,n):e?.insertBefore(t,n)},Kn=(e,t,n=!1)=>{var s,i,o,a,r;const l=e.$hostElement$,c=e.o,u=e.M||Ae(null,null);var d;const h=(d=t)&&d.O===Me?t:w(null,null,t);if(ae=l.tagName,c.C&&(h.v=h.v||{},c.C.forEach((([m,g])=>{h.v[g]=l[m]}))),n&&h.v)for(const m of Object.keys(h.v))l.hasAttribute(m)&&!["key","ref","style","class"].includes(m)&&(h.v[m]=l[m]);if(h.O=null,h.i|=4,e.M=h,h.S=u.S=l.shadowRoot||l,ve=!(!(1&c.i)||128&c.i),Je=l["s-cr"],Pe=!1,ue(u,h,n),M.i|=1,_e){Wt(h.S);for(const m of B){const g=m.k;if(!g["s-ol"]&&E.document){const y=E.document.createTextNode("");y["s-nr"]=g,R(g.parentNode,g["s-ol"]=y,g,n)}}for(const m of B){const g=m.k,y=m.N;if(g.nodeType===1&&n&&(g["s-ih"]=(s=g.hidden)!=null&&s),y){const v=y.parentNode;let f=y.nextSibling;if(f&&f.nodeType===1){let p=(i=g["s-ol"])==null?void 0:i.previousSibling;for(;p;){let b=(o=p["s-nr"])!=null?o:null;if(b&&b["s-sn"]===g["s-sn"]&&v===(b.__parentNode||b.parentNode)){for(b=b.nextSibling;b===g||b?.["s-sr"];)b=b?.nextSibling;if(!b||!b["s-nr"]){f=b;break}}p=p.previousSibling}}if((!f&&v!==(g.__parentNode||g.parentNode)||(g.__nextSibling||g.nextSibling)!==f)&&g!==f){if(R(v,g,f,n),g.nodeType===8&&g.nodeValue.startsWith("s-nt-")){const p=E.document.createTextNode(g.nodeValue.replace(/^s-nt-/,""));p["s-hn"]=g["s-hn"],p["s-sn"]=g["s-sn"],p["s-sh"]=g["s-sh"],p["s-sr"]=g["s-sr"],p["s-ol"]=g["s-ol"],p["s-ol"]["s-nr"]=p,R(g.parentNode,p,g,n),g.parentNode.removeChild(g)}g.nodeType===1&&g.tagName!=="SLOT-FB"&&(g.hidden=(a=g["s-ih"])!=null&&a)}g&&typeof y["s-rf"]=="function"&&y["s-rf"](y)}else g.nodeType===1&&(g.hidden=!0)}}if(Pe&&Pt(h.S),M.i&=-2,B.length=0,!ve&&!(1&c.i)&&l["s-cr"]){const m=h.S.__childNodes||h.S.childNodes;for(const g of m)if(g["s-hn"]!==ae&&!g["s-sh"]){if(n&&g["s-ih"]==null&&(g["s-ih"]=(r=g.hidden)!=null&&r),g.nodeType===1)g.hidden=!0;else if(g.nodeType===3&&g.nodeValue.trim()){const y=E.document.createComment("s-nt-"+g.nodeValue);y["s-sn"]=g["s-sn"],R(g.parentNode,y,g,n),g.parentNode.removeChild(g)}}}Je=void 0,tt.forEach((m=>m())),tt.length=0,nt.forEach((m=>m())),nt.length=0},Gt=(e,t)=>{if(t&&!e.A&&t["s-p"]){const n=t["s-p"].push(new Promise((s=>e.A=()=>{t["s-p"].splice(n-1,1),s()})))}},st=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);Gt(e,e.R);const n=()=>Xn(e,t);if(!t)return zn(n);queueMicrotask((()=>{n()}))},Xn=(e,t)=>{const n=e.$hostElement$,s=n;if(!s)throw new Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let i;return i=Se(s,t?"componentWillLoad":"componentWillUpdate",void 0,n),i=Ht(i,(()=>Se(s,"componentWillRender",void 0,n))),Ht(i,(()=>Jn(e,s,t)))},Ht=(e,t)=>Zn(e)?e.then(t).catch((n=>{console.error(n),t()})):t(),Zn=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",Jn=async(e,t,n)=>{var s;const i=e.$hostElement$,o=i["s-rc"];n&&(a=>{const r=a.o,l=a.$hostElement$,c=r.i,u=((d,h)=>{var m,g,y;const v=Tt(h),f=Ee.get(v);if(!E.document)return v;if(d=d.nodeType===11?d:E.document,f)if(typeof f=="string"){let p,b=J.get(d=d.head||d);if(b||J.set(d,b=new Set),!b.has(v)){p=E.document.createElement("style"),p.textContent=f;const x=(m=M._)!=null?m:(function(){var I,S,C;return(C=(S=(I=E.document.head)==null?void 0:I.querySelector('meta[name="csp-nonce"]'))==null?void 0:S.getAttribute("content"))!=null?C:void 0})();if(x!=null&&p.setAttribute("nonce",x),!(1&h.i))if(d.nodeName==="HEAD"){const I=d.querySelectorAll("link[rel=preconnect]"),S=I.length>0?I[I.length-1].nextSibling:d.querySelector("style");d.insertBefore(p,S?.parentNode===d?S:null)}else if("host"in d)if(He){const I=new((g=d.defaultView)!=null?g:d.ownerDocument.defaultView).CSSStyleSheet;I.replaceSync(f),Be?d.adoptedStyleSheets.unshift(I):d.adoptedStyleSheets=[I,...d.adoptedStyleSheets]}else{const I=d.querySelector("style");I?I.textContent=f+I.textContent:d.prepend(p)}else d.append(p);1&h.i&&d.insertBefore(p,null),4&h.i&&(p.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),b&&b.add(v)}}else{let p=J.get(d);if(p||J.set(d,p=new Set),!p.has(v)){const b=(y=d.defaultView)!=null?y:d.ownerDocument.defaultView;let x;if(f.constructor===b.CSSStyleSheet)x=f;else{x=new b.CSSStyleSheet;for(let I=0;I<f.cssRules.length;I++)x.insertRule(f.cssRules[I].cssText,I)}Be?d.adoptedStyleSheets.push(x):d.adoptedStyleSheets=[...d.adoptedStyleSheets,x],p.add(v)}}return v})(l.shadowRoot?l.shadowRoot:l.getRootNode(),r);10&c&&(l["s-sc"]=u,l.classList.add(u+"-h"))})(e),Qn(e,t,i,n),o&&(o.map((a=>a())),i["s-rc"]=void 0);{const a=(s=i["s-p"])!=null?s:[],r=()=>es(e);a.length===0?r():(Promise.all(a).then(r).catch(r),e.i|=4,a.length=0)}},Qn=(e,t,n,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,Kn(e,t,s)}catch(i){oe(i,e.$hostElement$)}return null},es=e=>{const t=e.$hostElement$,n=t,s=e.R;Se(n,"componentDidRender",void 0,t),64&e.i?Se(n,"componentDidUpdate",void 0,t):(e.i|=64,ns(t),Se(n,"componentDidLoad",void 0,t),e.L(t),s||ts()),e.A&&(e.A(),e.A=void 0),512&e.i&&Ke((()=>st(e,!1))),e.i&=-517},ts=()=>{Ke((()=>Hn(E,"appload",{detail:{namespace:"gids-core-web"}})))},Se=(e,t,n,s)=>{if(e&&e[t])try{return e[t](n)}catch(i){oe(i,s)}},ns=e=>e.classList.add("hydrated"),Bt=(e,t,n,s)=>{const i=H(e);if(!i)return;const o=e,a=i.l.get(t),r=i.i,l=o;n=Dt(n,s.t[t][0],!!(64&s.i));const c=Number.isNaN(a)&&Number.isNaN(n);if(n!==a&&!c){if(i.l.set(t,n),s.F){const u=s.F[t];u&&u.map((d=>{try{const[[h,m]]=Object.entries(d);(128&r||1&m)&&(l?l[h](n,a,t):i.T.push((()=>{i.D[h](n,a,t)})))}catch(h){oe(h,o)}}))}if(2&r){if(l.componentShouldUpdate&&l.componentShouldUpdate(n,a,t)===!1&&!(16&r))return;16&r||st(i,!1)}}},ss=(e,t,n)=>{var s,i;const o=e.prototype;64&t.i&&1&n&&Ln.forEach((a=>{const r=o[a];Object.defineProperty(o,a,{value(...l){var c;const u=H(this),d=this;d?typeof r=="function"&&r.call(d,...l):(c=u?.H)==null||c.then((h=>{const m=h[a];typeof m=="function"&&m.call(h,...l)}))}})}));{e.watchers&&!t.F&&(t.F=Nt(e.watchers)),e.deserializers&&!t.P&&(t.P=e.deserializers),e.serializers&&!t.U&&(t.U=e.serializers);const a=Object.entries((s=t.t)!=null?s:{});a.map((([r,[l]])=>{if(31&l||32&l){const{get:c,set:u}=de(o,r)||{};c&&(t.t[r][0]|=2048),u&&(t.t[r][0]|=4096),Object.defineProperty(o,r,{get(){return c?c.apply(this):(d=r,H(this).l.get(d));var d},configurable:!0,enumerable:!0}),Object.defineProperty(o,r,{set(d){const h=H(this);if(h){if(u)return(32&l?this[r]:h.$hostElement$[r])===void 0&&h.l.get(r)&&(d=h.l.get(r)),u.apply(this,[Dt(d,l,!!(64&t.i))]),void Bt(this,r,d=32&l?this[r]:h.$hostElement$[r],t);Bt(this,r,d,t)}}})}}));{const r=new Map;o.attributeChangedCallback=function(l,c,u){M.jmp((()=>{var d;const h=r.get(l),m=H(this);if(this.hasOwnProperty(h),o.hasOwnProperty(h)&&typeof this[h]=="number"&&this[h]==u)return;if(h==null){const p=m?.i;if(m&&p&&!(8&p)&&u!==c){const b=this,x=(d=t.F)==null?void 0:d[l];x?.forEach((I=>{const[[S,C]]=Object.entries(I);b[S]!=null&&(128&p||1&C)&&b[S].call(b,u,c,l)}))}return}const g=a.find((([p])=>p===h)),y=g&&4&g[1][0],v=y&&u===null&&this[h]===void 0;y&&(u=u!==null&&u!=="false");const f=Object.getOwnPropertyDescriptor(o,h);v||u==this[h]||f.get&&!f.set||(this[h]=u)}))},e.observedAttributes=Array.from(new Set([...Object.keys((i=t.F)!=null?i:{}),...a.filter((([l,c])=>31&c[0])).map((([l,c])=>{var u;const d=c[1]||l;return r.set(d,l),512&c[0]&&((u=t.C)==null||u.push([l,d])),d}))]))}}return e},De=(e,t)=>{const n={i:t[0],p:t[1]};try{n.t=t[2],n.W=t[3],n.F=Nt(e.F),n.P=e.P,n.U=e.U,n.C=[];const s=e.prototype.connectedCallback,i=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((o,a)=>{const r={i:0,$hostElement$:o,o:a,l:new Map,B:new Map};r.H=new Promise((c=>r.L=c)),o["s-p"]=[],o["s-rc"]=[];const l=r;o.__stencil__getHostRef=()=>l,512&a.i&&Rn(o,r)})(this,n)},connectedCallback(){if(!this.__hasHostListenerAttached){const o=H(this);if(!o)return;Ut(this,o,n.W),this.__hasHostListenerAttached=!0}(o=>{if(!(1&M.i)){const a=H(o);if(!a)return;const r=a.o;if(1&a.i)Ut(o,a,r.W),a?.D||a?.H&&a.H.then((()=>{}));else{a.i|=1,12&r.i&&(l=>{if(!E.document)return;const c=l["s-cr"]=E.document.createComment("");c["s-cn"]=!0,R(l,c,l.firstChild)})(o);{let l=o;for(;l=l.parentNode||l.host;)if(l["s-p"]){Gt(a,a.R=l);break}}r.t&&Object.entries(r.t).map((([l,[c]])=>{if(31&c&&Object.prototype.hasOwnProperty.call(o,l)){const u=o[l];delete o[l],o[l]=u}})),(async(l,c,u)=>{let d;try{if(!(32&c.i)&&(c.i|=32,d=l.constructor,customElements.whenDefined(l.localName).then((()=>c.i|=128)),d&&d.style)){let g;typeof d.style=="string"&&(g=d.style);const y=Tt(u);Ee.has(y)||((v,f,p)=>{let b=Ee.get(v);He&&p?(b=b||new CSSStyleSheet,typeof b=="string"?b=f:b.replaceSync(f)):b=f,Ee.set(v,b)})(y,g,!!(1&u.i))}const h=c.R,m=()=>st(c,!0);h&&h["s-rc"]?h["s-rc"].push(m):m()}catch(h){oe(h,l),c.A&&(c.A(),c.A=void 0),c.L&&c.L(l)}})(o,a,r)}}})(this),s&&s.call(this)},disconnectedCallback(){(async o=>{if(!(1&M.i)){const a=H(o);a?.V&&(a.V.map((r=>r())),a.V=void 0)}J.has(o)&&J.delete(o),o.shadowRoot&&J.has(o.shadowRoot)&&J.delete(o.shadowRoot)})(this),i&&i.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${n.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else qn.call(this,n)}}),Object.defineProperty(e,"is",{value:n.p,configurable:!0}),ss(e,n,3)}catch(s){return oe(s),e}},is=(e,t)=>t,Ut=(e,t,n)=>{n&&E.document&&n.map((([s,i,o])=>{const a=as(E.document,e,s),r=os(t,o),l=rs(s);M.ael(a,i,r,l),(t.V=t.V||[]).push((()=>M.rel(a,i,r,l)))}))},os=(e,t)=>n=>{try{e.$hostElement$[t](n)}catch(s){oe(s,e.$hostElement$)}},as=(e,t,n)=>8&n?E:t,rs=e=>Fn?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e);function Ji(e){return e}function Yt(e){var t,n,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Yt(e[t]))&&(s&&(s+=" "),s+=n)}else for(n in e)e[n]&&(s&&(s+=" "),s+=n);return s}function O(){for(var e,t,n=0,s="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Yt(e))&&(s&&(s+=" "),s+=t);return s}const $e=99,ls=Object.freeze(Object.defineProperty({__proto__:null,getDisplayContent:(e,t)=>e===void 0?t??"":e>$e?`${$e}+`:e.toString(),maxCount:$e,shouldIncludeA11yText:(e,t,n)=>e==="dot"||t!==void 0&&t>$e||n},Symbol.toStringTag,{value:"Module"})),Kt=e=>{const t=Array.isArray(e)?e[e.length-1]:e;return typeof t=="string"&&t.trim().endsWith(".")},cs=/\w/,ds=e=>e.replace(cs,t=>t.toLocaleUpperCase()),Xt=(e,t)=>typeof e=="function"?e(t):t?ds(e):e,us=Object.freeze(Object.defineProperty({__proto__:null,getIndicatorText:({children:e,fieldRequirement:t,fieldRequirementOptionalText:n,fieldRequirementRequiredText:s,isLabelSentence:i})=>{const o=i?i(e):Kt(e);if(t==="required")return Xt(s&&s.length>0?s:"(required)",o);if(t==="optional")return Xt(n&&n.length>0?n:"(optional)",o)},isSentence:Kt},Symbol.toStringTag,{value:"Module"})),hs=Object.freeze(Object.defineProperty({__proto__:null,getGidsBadgeClassNames:({appearance:e,type:t,outline:n},s)=>O("gids-badge",{"gids-badge--danger":e==="danger","gids-badge--positive":e==="positive","gids-badge--warning":e==="warning","gids-badge--inverse":e==="inverse"},{"gids-badge--dot":t==="dot"},{"gids-badge--outline":n},s)},Symbol.toStringTag,{value:"Module"})),gs=Object.freeze(Object.defineProperty({__proto__:null,getGidsCheckboxControlClassNames:e=>O("gids-checkbox-control",e)},Symbol.toStringTag,{value:"Module"})),ms=Object.freeze(Object.defineProperty({__proto__:null,getGidsCheckboxClassNames:e=>O("gids-checkbox",e)},Symbol.toStringTag,{value:"Module"})),fs=Object.freeze(Object.defineProperty({__proto__:null,getGidsDisplaTagClassNames:({size:e,appearance:t,color:n},s)=>O("gids-display-tag",{"gids-display-tag--xsmall":e==="xs","gids-display-tag--small":e==="sm","gids-display-tag--large":e==="lg","gids-display-tag--accent-1":t==="subtle"&&n==="accent-1","gids-display-tag--accent-2":t==="subtle"&&n==="accent-2","gids-display-tag--accent-3":t==="subtle"&&n==="accent-3","gids-display-tag--accent-4":t==="subtle"&&n==="accent-4","gids-display-tag--accent-5":t==="subtle"&&n==="accent-5","gids-display-tag--bold-accent-1":t==="bold"&&n==="accent-1","gids-display-tag--bold-accent-2":t==="bold"&&n==="accent-2","gids-display-tag--bold-accent-3":t==="bold"&&n==="accent-3","gids-display-tag--bold-accent-4":t==="bold"&&n==="accent-4","gids-display-tag--bold-accent-5":t==="bold"&&n==="accent-5"},s)},Symbol.toStringTag,{value:"Module"})),ps=Object.freeze(Object.defineProperty({__proto__:null,getGidsDividerClassNames:({orientation:e},t)=>O("gids-divider",{"gids-divider--vertical":e==="vertical"},t)},Symbol.toStringTag,{value:"Module"})),bs=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>O("gids-icon",{"gids-icon--xs":e==="xs","gids-icon--sm":e==="sm","gids-icon--md":e==="md","gids-icon--lg":e==="lg"},t)},Symbol.toStringTag,{value:"Module"})),ys=Object.freeze(Object.defineProperty({__proto__:null,getGidsLabelClassNames:({disabled:e},t)=>O("gids-label",{"gids-label--disabled":e},t)},Symbol.toStringTag,{value:"Module"})),ws=Object.freeze(Object.defineProperty({__proto__:null,getGidsRadioControlClassNames:e=>O("gids-radio-control",e)},Symbol.toStringTag,{value:"Module"})),vs=Object.freeze(Object.defineProperty({__proto__:null,getGidsRadioClassNames:e=>O("gids-radio",e)},Symbol.toStringTag,{value:"Module"})),Is=Object.freeze(Object.defineProperty({__proto__:null,getGidsSidebarItemClassNames:e=>O("gids-sidebar-item",e)},Symbol.toStringTag,{value:"Module"})),Ss=Object.freeze(Object.defineProperty({__proto__:null,getGidsSidebarMenuItemClassNames:({selected:e,appearance:t,selectionAppearance:n},s)=>O("gids-sidebar-menu-item",{"gids-sidebar-menu-item--appearance-primary":t==="primary"&&!e,"gids-sidebar-menu-item--appearance-subtle":t==="subtle"&&!e,"gids-sidebar-menu-item--appearance-positive":t==="positive"&&!e,"gids-sidebar-menu-item--appearance-danger":t==="danger"&&!e,"gids-sidebar-menu-item--appearance-information":t==="information"&&!e,"gids-sidebar-menu-item--appearance-warning":t==="warning"&&!e,"gids-sidebar-menu-item--selection-appearance-default":n==="default"&&e,"gids-sidebar-menu-item--selection-appearance-primary":n==="primary"&&e,"gids-sidebar-menu-item--selection-appearance-subtle":n==="subtle"&&e,"gids-sidebar-menu-item--selection-appearance-positive":n==="positive"&&e,"gids-sidebar-menu-item--selection-appearance-danger":n==="danger"&&e,"gids-sidebar-menu-item--selection-appearance-information":n==="information"&&e,"gids-sidebar-menu-item--selection-appearance-warning":n==="warning"&&e},s)},Symbol.toStringTag,{value:"Module"})),xs=Object.freeze(Object.defineProperty({__proto__:null,getGidsSidebarMenuClassNames:e=>O("gids-sidebar-menu",e)},Symbol.toStringTag,{value:"Module"})),Cs=Object.freeze(Object.defineProperty({__proto__:null,getGidsSidebarClassNames:({appearance:e,height:t},n)=>O("gids-sidebar",{"gids-sidebar--appearance-subtle":e==="subtle","gids-sidebar--appearance-primary":e==="primary","gids-sidebar--height-full":t==="full"},n)},Symbol.toStringTag,{value:"Module"})),ks=Object.freeze(Object.defineProperty({__proto__:null,getGidsStatusTagClassNames:({appearance:e,size:t,type:n},s)=>O("gids-status-tag",{"gids-status-tag--subtle":e==="subtle","gids-status-tag--bold":e==="bold","gids-status-tag--xs":t==="xs","gids-status-tag--md":t==="md","gids-status-tag--lg":t==="lg","gids-status-tag--subtlest-new":n==="new"&&e==="subtlest","gids-status-tag--subtlest-archived":n==="archived"&&e==="subtlest","gids-status-tag--subtlest-cancelled":n==="cancelled"&&e==="subtlest","gids-status-tag--subtlest-draft":n==="draft"&&e==="subtlest","gids-status-tag--subtlest-failed":n==="failed"&&e==="subtlest","gids-status-tag--subtlest-in-progress":n==="in-progress"&&e==="subtlest","gids-status-tag--subtlest-information":n==="information"&&e==="subtlest","gids-status-tag--subtlest-not-started":n==="not-started"&&e==="subtlest","gids-status-tag--subtlest-paused":n==="paused"&&e==="subtlest","gids-status-tag--subtlest-pending":n==="pending"&&e==="subtlest","gids-status-tag--subtlest-scheduled":n==="scheduled"&&e==="subtlest","gids-status-tag--subtlest-success":n==="success"&&e==="subtlest","gids-status-tag--subtlest-synced":n==="synced"&&e==="subtlest","gids-status-tag--subtlest-syncing":n==="syncing"&&e==="subtlest","gids-status-tag--subtlest-unknown":n==="unknown"&&e==="subtlest","gids-status-tag--subtlest-verified":n==="verified"&&e==="subtlest","gids-status-tag--subtlest-warning":n==="warning"&&e==="subtlest","gids-status-tag--subtle-new":n==="new"&&e==="subtle","gids-status-tag--subtle-archived":n==="archived"&&e==="subtle","gids-status-tag--subtle-cancelled":n==="cancelled"&&e==="subtle","gids-status-tag--subtle-draft":n==="draft"&&e==="subtle","gids-status-tag--subtle-failed":n==="failed"&&e==="subtle","gids-status-tag--subtle-in-progress":n==="in-progress"&&e==="subtle","gids-status-tag--subtle-information":n==="information"&&e==="subtle","gids-status-tag--subtle-not-started":n==="not-started"&&e==="subtle","gids-status-tag--subtle-paused":n==="paused"&&e==="subtle","gids-status-tag--subtle-pending":n==="pending"&&e==="subtle","gids-status-tag--subtle-scheduled":n==="scheduled"&&e==="subtle","gids-status-tag--subtle-success":n==="success"&&e==="subtle","gids-status-tag--subtle-synced":n==="synced"&&e==="subtle","gids-status-tag--subtle-syncing":n==="syncing"&&e==="subtle","gids-status-tag--subtle-unknown":n==="unknown"&&e==="subtle","gids-status-tag--subtle-verified":n==="verified"&&e==="subtle","gids-status-tag--subtle-warning":n==="warning"&&e==="subtle","gids-status-tag--bold-new":n==="new"&&e==="bold","gids-status-tag--bold-archived":n==="archived"&&e==="bold","gids-status-tag--bold-cancelled":n==="cancelled"&&e==="bold","gids-status-tag--bold-draft":n==="draft"&&e==="bold","gids-status-tag--bold-failed":n==="failed"&&e==="bold","gids-status-tag--bold-in-progress":n==="in-progress"&&e==="bold","gids-status-tag--bold-information":n==="information"&&e==="bold","gids-status-tag--bold-not-started":n==="not-started"&&e==="bold","gids-status-tag--bold-paused":n==="paused"&&e==="bold","gids-status-tag--bold-pending":n==="pending"&&e==="bold","gids-status-tag--bold-scheduled":n==="scheduled"&&e==="bold","gids-status-tag--bold-success":n==="success"&&e==="bold","gids-status-tag--bold-synced":n==="synced"&&e==="bold","gids-status-tag--bold-syncing":n==="syncing"&&e==="bold","gids-status-tag--bold-unknown":n==="unknown"&&e==="bold","gids-status-tag--bold-verified":n==="verified"&&e==="bold","gids-status-tag--bold-warning":n==="warning"&&e==="bold"},s),getStatusTagIconName:e=>{if(!e)return"new";switch(e){case"archived":return"archive";case"cancelled":return"x-circle";case"draft":return"draft";case"failed":return"danger";case"in-progress":return"in-progress";case"information":return"information";case"not-started":return"new";case"paused":return"pause";case"pending":return"pending";case"scheduled":return"time";case"success":return"positive";case"synced":return"syncing";case"syncing":return"syncing";case"unknown":return"question";case"verified":return"verified";case"warning":return"warning";default:return"new"}},getStatusTagText:e=>e?e.split("-").map((s,i)=>i===0&&s?s.charAt(0).toUpperCase()+s.slice(1):s).join(" "):void 0},Symbol.toStringTag,{value:"Module"})),it=Symbol("defaultPath"),Zt=Symbol("pathSet"),ot="gids-asset-paths-set";class Es extends EventTarget{#n=new Map;constructor(){super()}#e(t,n){this.#n.set(t,n)}#t(t){return this.#n.get(t)??null}#s=()=>{this.dispatchEvent(new Event(ot))};haveAssetPathsBeenSet(){return this.#t(Zt)!==null}setAssetPaths(t,n){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#e(it,t);else{for(const s in t)this.#e(s,t[s]);n&&this.#e(it,n)}this.#e(Zt,"true"),setTimeout(this.#s,0)}}getAssetFilePath(t){const n=this.#t(t);if(n===null){const s=this.#t(it);if(s!==null)return`${s}${s.endsWith("/")?"":"/"}${t}`}return n}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(ot,t,{once:!0}),()=>{this.removeEventListener(ot,t)}}}const at=Symbol.for("GIDS"),As=()=>(globalThis[at]===void 0&&(globalThis[at]={assetPaths:{}}),globalThis[at]),Ms=e=>{const t=As().assetPaths;return t[e]===void 0&&(t[e]=new Es),t[e]};function rt(){return Ms("@ganpatiinfo/gids-web-shared")}function Ps(){return rt().haveAssetPathsBeenSet()}function Jt(e){return rt().getAssetFilePath(e)}function _s(e){return rt().onAssetPathsSet(e)}let Ts=0;const lt=(e,t="gids")=>e||`${t}-${Ts++}`,Qt=e=>e!==void 0&&(!Array.isArray(e)||e.length>0),{getDisplayContent:en,shouldIncludeA11yText:Os}=ls,{getGidsBadgeClassNames:Ns}=hs,tn=({appearance:e,type:t,count:n,accessibleText:s,outline:i,class:o,...a})=>{const r=Os(t,n,Qt(s));return w("span",{class:Ns({appearance:e,type:t,outline:i},o),...a},r&&w("span",{class:"gids-visually-hidden"},Qt(s)?s:n),t==="notification"?r?w("span",{"aria-hidden":"true"},en(n,s)):en(n,s):null)},{getGidsDisplaTagClassNames:Ds}=fs,nn=({label:e,appearance:t="subtle",color:n,size:s="md",icon:i,class:o,...a})=>w("span",{class:Ds({size:s,appearance:t,color:n},o),...a},i,e),sn={"icons-other.svg":["accessibility","add","remove","announcement","approval","archive","audio","backward","banking","battery","bluetooth","bookmark","bulb","calendar","camera","card","cart","chart","chat","cloud","code","compass","desktop","email","emergency","exchange","finance","fingerprint","flag","folder","forward","gift","globe","goals","happy","hashtag","headphones","history","image","insurance","investment","in-progress","key","link","list","location","lock","map","maximise","microphone","minimise","mobile","moon","network","neutral","ai","new","draft","pending","new-chat","pause","percent","placeholder","play","power","rain","refresh","repeat","sad","save","savings","shield","shuffle","side-navigation","snow","speaker","stop","sun","tablet","temperature","thumbs-down","thumbs-up","travel","trend-down","trend-up","unlock","upset","verified","very-happy","video","volume-down","volume-max","volume-min","volume-mute","volume-up","wallet","wealth","wi-fi","wind","acorn","address-book","address-book-tabs","air-traffic-control","airplane","airplane-in-flight","airplane-landing","airplane-takeoff","airplane-taxiing","airplane-tilt","airplay","alarm","alien","align-bottom","align-bottom-simple","align-center-horizontal","align-center-horizontal-simple","align-center-vertical","align-center-vertical-simple","align-left","align-left-simple","align-right","align-right-simple","align-top","align-top-simple","amazon-logo","ambulance","anchor","anchor-simple","android-logo","angle","angular-logo","aperture","app-store-logo","app-window","apple-logo","apple-podcasts-logo","approximate-equals","armchair","arrow-arc-left","arrow-arc-right","arrow-bend-double-up-left","arrow-bend-double-up-right","arrow-bend-down-left","arrow-bend-down-right","arrow-bend-left-down","arrow-bend-left-up","arrow-bend-right-down","arrow-bend-right-up","arrow-bend-up-left","arrow-bend-up-right","arrow-circle-down","arrow-circle-down-left","arrow-circle-down-right","arrow-circle-left","arrow-circle-right","arrow-circle-up","arrow-circle-up-left","arrow-circle-up-right","arrow-clockwise","arrow-counter-clockwise","arrow-down-left","arrow-down-right","arrow-elbow-down-left","arrow-elbow-down-right","arrow-elbow-left","arrow-elbow-left-down","arrow-elbow-left-up","arrow-elbow-right","arrow-elbow-right-down","arrow-elbow-right-up","arrow-elbow-up-left","arrow-elbow-up-right","arrow-fat-down","arrow-fat-left","arrow-fat-line-down","arrow-fat-line-left","arrow-fat-line-right","arrow-fat-line-up","arrow-fat-lines-down","arrow-fat-lines-left","arrow-fat-lines-right","arrow-fat-lines-up","arrow-fat-right","arrow-fat-up","arrow-line-down","arrow-line-down-left","arrow-line-down-right","arrow-line-left","arrow-line-right","arrow-line-up","arrow-line-up-left","arrow-line-up-right","arrow-square-down","arrow-square-down-left","arrow-square-down-right","arrow-square-in","arrow-square-left","arrow-square-out","arrow-square-right","arrow-square-up","arrow-square-up-left","arrow-square-up-right","arrow-u-down-left","arrow-u-down-right","arrow-u-left-down","arrow-u-left-up","arrow-u-right-down","arrow-u-right-up","arrow-u-up-left","arrow-u-up-right","arrow-up-left","arrow-up-right","arrows-clockwise","arrows-counter-clockwise","arrows-down-up","arrows-horizontal","arrows-in","arrows-in-cardinal","arrows-in-line-horizontal","arrows-in-line-vertical","arrows-in-simple","arrows-left-right","arrows-merge","arrows-out","arrows-out-cardinal","arrows-out-line-horizontal","arrows-out-line-vertical","arrows-out-simple","arrows-split","arrows-vertical","article","article-medium","article-ny-times","asclepius","asterisk","asterisk-simple","at","atom","avocado","axe","baby","baby-carriage","backpack","backspace","bag","bag-simple","balloon","bandaids","bank","barbell","barcode","barn","barricade","baseball","baseball-cap","baseball-helmet","basket","basketball","bathtub","battery-charging","battery-charging-vertical","battery-empty","battery-full","battery-high","battery-low","battery-medium","battery-plus","battery-plus-vertical","battery-vertical-empty","battery-vertical-full","battery-vertical-high","battery-vertical-low","battery-vertical-medium","battery-warning","battery-warning-vertical","beach-ball","beanie","bed","beer-bottle","beer-stein","behance-logo","bell","bell-ringing","bell-simple","bell-simple-ringing","bell-simple-slash","bell-simple-z","bell-slash","bell-z","belt","bezier-curve","bicycle","binary","binoculars","biohazard","bird","blueprint","bluetooth-connected","bluetooth-slash","bluetooth-x","boat","bomb","bone","book","book-bookmark","book-open","book-open-text","book-open-user","bookmark-simple","bookmarks","bookmarks-simple","books","boot","boules","bounding-box","bowl-food","bowl-steam","bowling-ball","box-arrow-down","box-arrow-up","boxing-glove","brackets-angle","brackets-curly","brackets-round","brackets-square","brain","brandy","bread","bridge","briefcase","briefcase-metal","broadcast","broom","browser","browsers","bug","bug-beetle","bug-droid","building","building-apartment","building-office","buildings","bulldozer","bus","butterfly","cable-car","cactus","cake","calculator","calendar-blank","calendar-check","calendar-dot","calendar-dots","calendar-heart","calendar-minus","calendar-plus","calendar-slash","calendar-star","calendar-x","call-bell","camera-plus","camera-rotate","camera-slash","campfire","car","car-battery","car-profile","car-simple","cardholder","cards","cards-three","caret-circle-double-down","caret-circle-double-left","caret-circle-double-right","caret-circle-double-up","caret-circle-down","caret-circle-left","caret-circle-right","caret-circle-up","caret-circle-up-down","caret-double-down","caret-double-left","caret-double-right","caret-double-up","caret-down","caret-left","caret-line-down","caret-line-left","caret-line-right","caret-line-up","caret-right","caret-up","caret-up-down","carrot","cash-register","cassette-tape","castle-turret","cat","cell-signal-full","cell-signal-high","cell-signal-low","cell-signal-medium","cell-signal-none","cell-signal-slash","cell-signal-x","cell-tower","certificate","chair","chalkboard","chalkboard-simple","chalkboard-teacher","champagne","charging-station","chart-bar","chart-bar-horizontal","chart-donut","chart-line","chart-line-down","chart-line-up","chart-pie","chart-pie-slice","chart-polar","chart-scatter","chat-centered","chat-centered-dots","chat-centered-slash","chat-centered-text","chat-circle","chat-circle-dots","chat-circle-slash","chat-circle-text","chat-dots","chat-slash","chat-teardrop","chat-teardrop-dots","chat-teardrop-slash","chat-teardrop-text","chat-text","chats","chats-circle","chats-teardrop","check","check-circle","check-fat","check-square","check-square-offset","checkerboard","checks","cheers","cheese","chef-hat","cherries","church","cigarette","cigarette-slash","circle","circle-dashed","circle-half","circle-half-tilt","circle-notch","circles-four","circles-three","circles-three-plus","circuitry","city","clipboard","clipboard-text","clock","clock-afternoon","clock-clockwise","clock-countdown","clock-counter-clockwise","clock-user","closed-captioning","cloud-arrow-down","cloud-arrow-up","cloud-check","cloud-fog","cloud-lightning","cloud-moon","cloud-rain","cloud-slash","cloud-snow","cloud-sun","cloud-warning","cloud-x","clover","club","coat-hanger","coda-logo","code-block","code-simple","codepen-logo","codesandbox-logo","coffee","coffee-bean","coin","coin-vertical","coins","columns","columns-plus-left","columns-plus-right","command","compass-rose","compass-tool","computer-tower","confetti","contactless-payment","control","cookie","cooking-pot","copy-simple","copyleft","copyright","corners-in","corners-out","couch","court-basketball","cow","cowboy-hat","cpu","crane","crane-tower","credit-card","cricket","crop","crosshair","crosshair-simple","crown","crown-cross","crown-simple","cube","cube-focus","cube-transparent","currency-btc","currency-circle-dollar","currency-cny","currency-dollar","currency-dollar-simple","currency-eth","currency-eur","currency-gbp","currency-inr","currency-jpy","currency-krw","currency-kzt","currency-ngn","currency-rub","cursor","cursor-click","cursor-text","cylinder","database","desk","desktop-tower","detective","dev-to-logo","device-mobile","device-mobile-camera","device-mobile-slash","device-mobile-speaker","device-rotate","device-tablet","device-tablet-camera","device-tablet-speaker","devices","diamond","diamonds-four","dice-five","dice-four","dice-one","dice-six","dice-three","dice-two","disc","disco-ball","discord-logo","divide","dna","dog","door","door-open","dot","dot-outline","dots-nine","dots-six","dots-six-vertical","dots-three","dots-three-circle","dots-three-circle-vertical","dots-three-outline","dots-three-outline-vertical","dots-three-vertical","download-simple","dress","dresser","dribbble-logo","drone","drop","drop-half","drop-half-bottom","drop-simple","drop-slash","dropbox-logo","ear","ear-slash","egg","egg-crack","eject","eject-simple","elevator","empty","engine","envelope","envelope-open","envelope-simple","envelope-simple-open","equalizer","equals","eraser","escalator-down","escalator-up","exam","exclamation-mark","exclude","exclude-square","export","eye-closed","eye-slash","eyedropper","eyedropper-sample","eyeglasses","eyes","face-mask","facebook-logo","factory","faders","faders-horizontal","fallout-shelter","fan","farm","fast-forward","fast-forward-circle","feather","fediverse-logo","figma-logo","file","file-archive","file-arrow-down","file-arrow-up","file-audio","file-c","file-c-sharp","file-cloud","file-code","file-cpp","file-css","file-csv","file-dashed","file-doc","file-html","file-image","file-ini","file-jpg","file-js","file-jsx","file-lock","file-magnifying-glass","file-md","file-minus","file-pdf","file-plus","file-png","file-ppt","file-py","file-rs","file-sql","file-svg","file-text","file-ts","file-tsx","file-txt","file-video","file-vue","file-x","file-xls","file-zip","files","film-reel","film-script","film-slate","film-strip","fingerprint-simple","finn-the-human","fire","fire-extinguisher","fire-simple","fire-truck","first-aid","first-aid-kit","fish","fish-simple","flag-banner","flag-banner-fold","flag-checkered","flag-pennant","flame","flashlight","flask","flip-horizontal","flip-vertical","floppy-disk","floppy-disk-back","flow-arrow","flower","flower-lotus","flower-tulip","flying-saucer","folder-dashed","folder-lock","folder-minus","folder-open","folder-plus","folder-simple","folder-simple-dashed","folder-simple-lock","folder-simple-minus","folder-simple-plus","folder-simple-star","folder-simple-user","folder-star","folder-user","folders","football","football-helmet","footprints","fork-knife","four-k","frame-corners","framer-logo","function","funnel","funnel-simple","funnel-simple-x","funnel-x","game-controller","garage","gas-can","gas-pump","gauge","gavel","gear","gear-fine","gear-six","gender-female","gender-intersex","gender-male","gender-neuter","gender-nonbinary","gender-transgender","ghost","gif","git-branch","git-commit","git-diff","git-fork","git-merge","git-pull-request","github-logo","gitlab-logo","gitlab-logo-simple","globe-hemisphere-east","globe-hemisphere-west","globe-simple","globe-simple-x","globe-stand","globe-x","goggles","golf","goodreads-logo","google-cardboard-logo","google-chrome-logo","google-drive-logo","google-logo","google-photos-logo","google-play-logo","google-podcasts-logo","gps","gps-fix","gps-slash","gradient","graduation-cap","grains","grains-slash","graph","graphics-card","greater-than","greater-than-or-equal","grid-four","grid-nine","guitar","hair-dryer","hamburger","hammer","hand","hand-arrow-down","hand-arrow-up","hand-coins","hand-deposit","hand-eye","hand-fist","hand-grabbing","hand-heart","hand-palm","hand-peace","hand-pointing","hand-soap","hand-swipe-left","hand-swipe-right","hand-tap","hand-waving","hand-withdraw","handbag","handbag-simple","hands-clapping","hands-praying","handshake","hard-drive","hard-drives","hard-hat","hash","hash-straight","head-circuit","headlights","headset","heart","heart-break","heart-half","heart-straight","heart-straight-break","heartbeat","hexagon","high-definition","high-heel","highlighter","highlighter-circle","hockey","hoodie","horse","hospital","hourglass","hourglass-high","hourglass-low","hourglass-medium","hourglass-simple","hourglass-simple-high","hourglass-simple-low","hourglass-simple-medium","house","house-line","house-simple","hurricane","ice-cream","identification-badge","identification-card","image-broken","image-square","images","images-square","infinity","info","instagram-logo","intersect","intersect-square","intersect-three","intersection","invoice","island","jar","jar-label","jeep","joystick","kanban","key-return","keyboard","keyhole","knife","ladder","ladder-simple","lamp","lamp-pendant","laptop","lasso","lastfm-logo","layout","leaf","lectern","lego","lego-smiley","less-than","less-than-or-equal","letter-circle-h","letter-circle-p","letter-circle-v","lifebuoy","lightbulb","lightbulb-filament","lighthouse","lightning","lightning-a","lightning-slash","line-segment","line-segments","line-vertical","link-break","link-simple","link-simple-break","link-simple-horizontal","link-simple-horizontal-break","linkedin-logo","linktree-logo","linux-logo","list-bullets","list-checks","list-dashes","list-heart","list-magnifying-glass","list-numbers","list-plus","list-star","lock-key","lock-key-open","lock-laminated","lock-laminated-open","lock-open","lock-simple","lock-simple-open","lockers","log","magic-wand","magnet","magnet-straight","magnifying-glass","magnifying-glass-minus","magnifying-glass-plus","mailbox","map-pin","map-pin-area","map-pin-line","map-pin-plus","map-pin-simple","map-pin-simple-area","map-pin-simple-line","map-trifold","markdown-logo","marker-circle","martini","mask-happy","mask-sad","mastodon-logo","math-operations","matrix-logo","medal","medal-military","medium-logo","megaphone","megaphone-simple","member-of","memory","messenger-logo","meta-logo","meteor","metronome","microphone-slash","microphone-stage","microscope","microsoft-excel-logo","microsoft-outlook-logo","microsoft-powerpoint-logo","microsoft-teams-logo","microsoft-word-logo","minus-circle","minus-square","money","money-wavy","monitor","monitor-arrow-up","monitor-play","moon-stars","moped","moped-front","mosque","motorcycle","mountains","mouse","mouse-left-click","mouse-middle-click","mouse-right-click","mouse-scroll","mouse-simple","music-note","music-note-simple","music-notes","music-notes-minus","music-notes-plus","music-notes-simple","navigation-arrow","needle","network-slash","network-x","newspaper","newspaper-clipping","not-equals","not-member-of","not-subset-of","not-superset-of","notches","note","note-blank","note-pencil","notebook","notepad","notification","notion-logo","nuclear-plant","number-circle-eight","number-circle-five","number-circle-four","number-circle-nine","number-circle-one","number-circle-seven","number-circle-six","number-circle-three","number-circle-two","number-circle-zero","number-eight","number-five","number-four","number-nine","number-one","number-seven","number-six","number-square-eight","number-square-five","number-square-four","number-square-nine","number-square-one","number-square-seven","number-square-six","number-square-three","number-square-two","number-square-zero","number-three","number-two","number-zero","numpad","nut","ny-times-logo","octagon","office-chair","onigiri","open-ai-logo","option","orange","orange-slice","oven","package","paint-brush","paint-brush-broad","paint-brush-household","paint-bucket","paint-roller","palette","panorama","pants","paper-plane","paper-plane-right","paper-plane-tilt","paperclip","paperclip-horizontal","parachute","paragraph","parallelogram","park","password","path","patreon-logo","pause-circle","paw-print","paypal-logo","peace","pen","pen-nib","pen-nib-straight","pencil","pencil-circle","pencil-line","pencil-ruler","pencil-simple","pencil-simple-line","pencil-simple-slash","pencil-slash","pentagon","pentagram","pepper","person","person-arms-spread","person-simple","person-simple-bike","person-simple-circle","person-simple-hike","person-simple-run","person-simple-ski","person-simple-snowboard","person-simple-swim","person-simple-tai-chi","person-simple-throw","person-simple-walk","perspective","phone-call","phone-disconnect","phone-incoming","phone-list","phone-outgoing","phone-pause","phone-plus","phone-slash","phone-transfer","phone-x","phosphor-logo","pi","piano-keys","picnic-table","picture-in-picture","piggy-bank","pill","ping-pong","pint-glass","pinterest-logo","pinwheel","pipe","pipe-wrench","pix-logo","pizza","planet","plant","play-circle","play-pause","playlist","plug","plug-charging","plugs","plugs-connected","plus-circle","plus-minus","plus-square","poker-chip","police-car","polygon","popcorn","popsicle","potted-plant","prescription","presentation","presentation-chart","prohibit","prohibit-inset","projector-screen","projector-screen-chart","pulse","push-pin","push-pin-simple","push-pin-simple-slash","push-pin-slash","puzzle-piece","qr-code","question-mark","queue","quotes","rabbit","racquet","radical","radio","radio-button","radioactive","rainbow","rainbow-cloud","ranking","read-cv-logo","receipt","receipt-x","record","rectangle","rectangle-dashed","recycle","reddit-logo","repeat-once","replit-logo","resize","rewind","rewind-circle","road-horizon","robot","rocket","rocket-launch","rows","rows-plus-bottom","rows-plus-top","rss","rss-simple","rug","ruler","sailboat","scales","scan","scan-smiley","scissors","scooter","screencast","screwdriver","scribble","scribble-loop","scroll","seal","seal-check","seal-percent","seal-question","seal-warning","seat","seatbelt","security-camera","selection","selection-all","selection-background","selection-foreground","selection-inverse","selection-plus","selection-slash","shapes","share-fat","share-network","shield-check","shield-checkered","shield-chevron","shield-plus","shield-slash","shield-star","shield-warning","shipping-container","shirt-folded","shooting-star","shopping-bag","shopping-bag-open","shopping-cart","shopping-cart-simple","shovel","shower","shrimp","shuffle-angular","shuffle-simple","sidebar","sidebar-simple","sigma","sign-in","sign-out","signature","signpost","sim-card","siren","sketch-logo","skip-back","skip-back-circle","skip-forward","skip-forward-circle","skull","skype-logo","slack-logo","sliders","sliders-horizontal","slideshow","smiley","smiley-angry","smiley-blank","smiley-meh","smiley-melting","smiley-nervous","smiley-sad","smiley-sticker","smiley-wink","smiley-x-eyes","snapchat-logo","sneaker","sneaker-move","snowflake","soccer-ball","sock","solar-panel","solar-roof","sort-ascending","sort-descending","soundcloud-logo","spade","sparkle","speaker-hifi","speaker-high","speaker-low","speaker-none","speaker-simple-high","speaker-simple-low","speaker-simple-none","speaker-simple-slash","speaker-simple-x","speaker-slash","speaker-x","speedometer","sphere","spinner","spinner-ball","spinner-gap","spiral","split-horizontal","split-vertical","spotify-logo","spray-bottle","square","square-half","square-half-bottom","square-logo","square-split-horizontal","square-split-vertical","squares-four","stack","stack-minus","stack-overflow-logo","stack-plus","stack-simple","stairs","stamp","standard-definition","star-and-crescent","star-four","star-half","star-of-david","steam-logo","steering-wheel","steps","stethoscope","sticker","stool","stop-circle","storefront","strategy","stripe-logo","student","subset-of","subset-proper-of","subtitles","subtitles-slash","subtract","subtract-square","subway","suitcase","suitcase-rolling","suitcase-simple","sun-dim","sun-horizon","sunglasses","superset-of","superset-proper-of","swap","swatches","swimming-pool","sword","synagogue","syringe","t-shirt","table","tabs","tag","tag-chevron","tag-simple","target","taxi","tea-bag","telegram-logo","television","television-simple","tennis-ball","tent","terminal","terminal-window","test-tube","text-a-underline","text-aa","text-align-center","text-align-justify","text-align-left","text-align-right","text-b","text-columns","text-h","text-h-five","text-h-four","text-h-one","text-h-six","text-h-three","text-h-two","text-indent","text-italic","text-outdent","text-strikethrough","text-subscript","text-superscript","text-t","text-t-slash","text-underline","textbox","thermometer","thermometer-cold","thermometer-hot","thermometer-simple","threads-logo","three-d","ticket","tidal-logo","tiktok-logo","tilde","timer","tip-jar","tipi","tire","toggle-left","toggle-right","toilet","toilet-paper","toolbox","tooth","tornado","tote","tote-simple","towel","tractor","trademark","trademark-registered","traffic-cone","traffic-sign","traffic-signal","train","train-regional","train-simple","tram","translate","trash","trash-simple","tray","tray-arrow-down","tray-arrow-up","treasure-chest","tree","tree-evergreen","tree-palm","tree-structure","tree-view","triangle","triangle-dashed","trolley","trolley-suitcase","trophy","truck","truck-trailer","tumblr-logo","twitch-logo","twitter-logo","umbrella","umbrella-simple","union","unite","unite-square","upload-simple","usb","user-check","user-circle","user-circle-check","user-circle-dashed","user-circle-gear","user-circle-minus","user-circle-plus","user-focus","user-gear","user-list","user-minus","user-plus","user-rectangle","user-sound","user-square","user-switch","users-four","users-three","van","vault","vector-three","vector-two","vibrate","video-camera","video-camera-slash","video-conference","vignette","vinyl-record","virtual-reality","virus","visor","voicemail","volleyball","wall","warehouse","warning-circle","warning-diamond","warning-octagon","washing-machine","watch","wave-sawtooth","wave-sine","wave-square","wave-triangle","waveform","waveform-slash","waves","webcam","webcam-slash","webhooks-logo","wechat-logo","whatsapp-logo","wheelchair","wheelchair-motion","wifi-high","wifi-low","wifi-medium","wifi-none","wifi-slash","wifi-x","windmill","windows-logo","wine","wrench","x","x-circle","x-logo","x-square","yarn","yin-yang","youtube-logo"],"icons-core.svg":["arrow-down","arrow-left","arrow-right","arrow-up","attachment","checkmark","chevron-down","chevron-horizontal","chevron-left","chevron-right","chevron-up","chevron-vertical","copy","cross","danger","dashboard","delete","document","download","drag","edit","external","eye","filter","grid","hide","home","information","log-in","log-out","menu","minus","more","notifications","options","phone","plus","positive","printer","question","search","select","select-all","send","settings","share","star","time","upload","user","users","warning"]},on=new Map;for(const e in sn)for(const t of sn[e])on.set(t,e);function $s(e){return on.get(e)}function an(e,t="regular",n){const s=$s(e);let i=s??"";return n&&s&&(i=n(s)??s),`${i}#${e}${t==="filled"?"--filled":""}`}const{getGidsIconClassNames:Rs}=bs,Q=({name:e,size:t,appearance:n,alt:s,class:i,titleId:o,src:a,...r})=>{const l=lt(o);let c=a;return c===void 0&&Ps()&&(c=an(e,n,Jt)),w("svg",{ref:u=>{c===void 0&&_s((()=>{(function(d,h,m){if(!d)return;const g=document.createElementNS("http://www.w3.org/2000/svg","use");g.setAttribute("href",an(h,m,Jt)),d.appendChild(g)})(u,e,n)}))},width:"16",height:"16",class:Rs({size:t},i),role:"img","aria-hidden":s===""?"true":void 0,"aria-labelledby":s===""?void 0:l,...r},s!==""&&w("title",{id:l},s||e),c!==void 0?w("use",{href:c}):null)},{getGidsCheckboxControlClassNames:Ls}=gs,Fs=({checked:e,defaultChecked:t,disabled:n,indeterminate:s,inputId:i,name:o,value:a,required:r,onChange:l,class:c,...u})=>w("span",{class:Ls(c),...u},w("input",{class:"gids-checkbox-control__input",type:"checkbox",disabled:n,checked:e,defaultChecked:t,required:r,indeterminate:s,value:a,id:i,name:o,onChange:l}),w(Q,{class:"gids-checkbox-control__check",name:"checkmark",alt:"",size:"sm"}),w(Q,{class:"gids-checkbox-control__minus",name:"minus",alt:"",size:"sm"})),{getIndicatorText:js}=us,{getGidsLabelClassNames:zs}=ys,rn=({disabled:e,fieldRequirement:t,fieldRequirementOptionalText:n,fieldRequirementRequiredText:s,info:i,htmlFor:o,labelId:a,class:r,isLabelSentence:l,...c},u)=>{const d=js({children:u,fieldRequirement:t,fieldRequirementOptionalText:n,fieldRequirementRequiredText:s,isLabelSentence:l});return w("div",{class:zs({disabled:e},r),...c},w("label",{htmlFor:o,id:a},u,d&&w("span",{class:"gids-label__field-requirement"},d)),i)},ee=Math.min,N=Math.max,Re=Math.round,Le=Math.floor,q=e=>({x:e,y:e}),qs={left:"right",right:"left",bottom:"top",top:"bottom"};function ct(e,t,n){return N(e,ee(t,n))}function he(e,t){return typeof e=="function"?e(t):e}function te(e){return e.split("-")[0]}function ge(e){return e.split("-")[1]}function ln(e){return e==="x"?"y":"x"}function dt(e){return e==="y"?"height":"width"}function U(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function ut(e){return ln(U(e))}function Ws(e,t,n){n===void 0&&(n=!1);const s=ge(e),i=ut(e),o=dt(i);let a=i==="x"?s===(n?"end":"start")?"right":"left":s==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=Fe(a)),[a,Fe(a)]}function Vs(e){const t=Fe(e);return[ht(e),t,ht(t)]}function ht(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const cn=["left","right"],dn=["right","left"],Gs=["top","bottom"],Hs=["bottom","top"];function Bs(e,t,n){switch(e){case"top":case"bottom":return n?t?dn:cn:t?cn:dn;case"left":case"right":return t?Gs:Hs;default:return[]}}function Us(e,t,n,s){const i=ge(e);let o=Bs(te(e),n==="start",s);return i&&(o=o.map(a=>a+"-"+i),t&&(o=o.concat(o.map(ht)))),o}function Fe(e){const t=te(e);return qs[t]+e.slice(t.length)}function Ys(e){return{top:0,right:0,bottom:0,left:0,...e}}function un(e){return typeof e!="number"?Ys(e):{top:e,right:e,bottom:e,left:e}}function je(e){const{x:t,y:n,width:s,height:i}=e;return{width:s,height:i,top:n,left:t,right:t+s,bottom:n+i,x:t,y:n}}function hn(e,t,n){let{reference:s,floating:i}=e;const o=U(t),a=ut(t),r=dt(a),l=te(t),c=o==="y",u=s.x+s.width/2-i.width/2,d=s.y+s.height/2-i.height/2,h=s[r]/2-i[r]/2;let m;switch(l){case"top":m={x:u,y:s.y-i.height};break;case"bottom":m={x:u,y:s.y+s.height};break;case"right":m={x:s.x+s.width,y:d};break;case"left":m={x:s.x-i.width,y:d};break;default:m={x:s.x,y:s.y}}switch(ge(t)){case"start":m[a]-=h*(n&&c?-1:1);break;case"end":m[a]+=h*(n&&c?-1:1);break}return m}async function Ks(e,t){var n;t===void 0&&(t={});const{x:s,y:i,platform:o,rects:a,elements:r,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:h=!1,padding:m=0}=he(t,e),g=un(m),v=r[h?d==="floating"?"reference":"floating":d],f=je(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(v)))==null||n?v:v.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(r.floating)),boundary:c,rootBoundary:u,strategy:l})),p=d==="floating"?{x:s,y:i,width:a.floating.width,height:a.floating.height}:a.reference,b=await(o.getOffsetParent==null?void 0:o.getOffsetParent(r.floating)),x=await(o.isElement==null?void 0:o.isElement(b))?await(o.getScale==null?void 0:o.getScale(b))||{x:1,y:1}:{x:1,y:1},I=je(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:r,rect:p,offsetParent:b,strategy:l}):p);return{top:(f.top-I.top+g.top)/x.y,bottom:(I.bottom-f.bottom+g.bottom)/x.y,left:(f.left-I.left+g.left)/x.x,right:(I.right-f.right+g.right)/x.x}}const Xs=50,Zs=async(e,t,n)=>{const{placement:s="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,r=a.detectOverflow?a:{...a,detectOverflow:Ks},l=await(a.isRTL==null?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=hn(c,s,l),h=s,m=0;const g={};for(let y=0;y<o.length;y++){const v=o[y];if(!v)continue;const{name:f,fn:p}=v,{x:b,y:x,data:I,reset:S}=await p({x:u,y:d,initialPlacement:s,placement:h,strategy:i,middlewareData:g,rects:c,platform:r,elements:{reference:e,floating:t}});u=b??u,d=x??d,g[f]={...g[f],...I},S&&m<Xs&&(m++,typeof S=="object"&&(S.placement&&(h=S.placement),S.rects&&(c=S.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:i}):S.rects),{x:u,y:d}=hn(c,h,l)),y=-1)}return{x:u,y:d,placement:h,strategy:i,middlewareData:g}},Js=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:s,placement:i,rects:o,platform:a,elements:r,middlewareData:l}=t,{element:c,padding:u=0}=he(e,t)||{};if(c==null)return{};const d=un(u),h={x:n,y:s},m=ut(i),g=dt(m),y=await a.getDimensions(c),v=m==="y",f=v?"top":"left",p=v?"bottom":"right",b=v?"clientHeight":"clientWidth",x=o.reference[g]+o.reference[m]-h[m]-o.floating[g],I=h[m]-o.reference[m],S=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c));let C=S?S[b]:0;(!C||!await(a.isElement==null?void 0:a.isElement(S)))&&(C=r.floating[b]||o.floating[g]);const k=x/2-I/2,A=C/2-y[g]/2-1,P=ee(d[f],A),V=ee(d[p],A),$=P,G=C-y[g]-V,_=C/2-y[g]/2+k,X=ct($,_,G),Z=!l.arrow&&ge(i)!=null&&_!==X&&o.reference[g]/2-(_<$?P:V)-y[g]/2<0,j=Z?_<$?_-$:_-G:0;return{[m]:h[m]+j,data:{[m]:X,centerOffset:_-X-j,...Z&&{alignmentOffset:j}},reset:Z}}}),Qs=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,s;const{placement:i,middlewareData:o,rects:a,initialPlacement:r,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:y=!0,...v}=he(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const f=te(i),p=U(r),b=te(r)===r,x=await(l.isRTL==null?void 0:l.isRTL(c.floating)),I=h||(b||!y?[Fe(r)]:Vs(r)),S=g!=="none";!h&&S&&I.push(...Us(r,y,g,x));const C=[r,...I],k=await l.detectOverflow(t,v),A=[];let P=((s=o.flip)==null?void 0:s.overflows)||[];if(u&&A.push(k[f]),d){const _=Ws(i,a,x);A.push(k[_[0]],k[_[1]])}if(P=[...P,{placement:i,overflows:A}],!A.every(_=>_<=0)){var V,$;const _=(((V=o.flip)==null?void 0:V.index)||0)+1,X=C[_];if(X&&(!(d==="alignment"?p!==U(X):!1)||P.every(z=>U(z.placement)===p?z.overflows[0]>0:!0)))return{data:{index:_,overflows:P},reset:{placement:X}};let Z=($=P.filter(j=>j.overflows[0]<=0).sort((j,z)=>j.overflows[1]-z.overflows[1])[0])==null?void 0:$.placement;if(!Z)switch(m){case"bestFit":{var G;const j=(G=P.filter(z=>{if(S){const se=U(z.placement);return se===p||se==="y"}return!0}).map(z=>[z.placement,z.overflows.filter(se=>se>0).reduce((se,Zi)=>se+Zi,0)]).sort((z,se)=>z[1]-se[1])[0])==null?void 0:G[0];j&&(Z=j);break}case"initialPlacement":Z=r;break}if(i!==Z)return{reset:{placement:Z}}}return{}}}},ei=new Set(["left","top"]);async function ti(e,t){const{placement:n,platform:s,elements:i}=e,o=await(s.isRTL==null?void 0:s.isRTL(i.floating)),a=te(n),r=ge(n),l=U(n)==="y",c=ei.has(a)?-1:1,u=o&&l?-1:1,d=he(t,e);let{mainAxis:h,crossAxis:m,alignmentAxis:g}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return r&&typeof g=="number"&&(m=r==="end"?g*-1:g),l?{x:m*u,y:h*c}:{x:h*c,y:m*u}}const ni=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,s;const{x:i,y:o,placement:a,middlewareData:r}=t,l=await ti(t,e);return a===((n=r.offset)==null?void 0:n.placement)&&(s=r.arrow)!=null&&s.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:a}}}}},si=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:s,placement:i,platform:o}=t,{mainAxis:a=!0,crossAxis:r=!1,limiter:l={fn:f=>{let{x:p,y:b}=f;return{x:p,y:b}}},...c}=he(e,t),u={x:n,y:s},d=await o.detectOverflow(t,c),h=U(te(i)),m=ln(h);let g=u[m],y=u[h];if(a){const f=m==="y"?"top":"left",p=m==="y"?"bottom":"right",b=g+d[f],x=g-d[p];g=ct(b,g,x)}if(r){const f=h==="y"?"top":"left",p=h==="y"?"bottom":"right",b=y+d[f],x=y-d[p];y=ct(b,y,x)}const v=l.fn({...t,[m]:g,[h]:y});return{...v,data:{x:v.x-n,y:v.y-s,enabled:{[m]:a,[h]:r}}}}}},ii=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,s;const{placement:i,rects:o,platform:a,elements:r}=t,{apply:l=()=>{},...c}=he(e,t),u=await a.detectOverflow(t,c),d=te(i),h=ge(i),m=U(i)==="y",{width:g,height:y}=o.floating;let v,f;d==="top"||d==="bottom"?(v=d,f=h===(await(a.isRTL==null?void 0:a.isRTL(r.floating))?"start":"end")?"left":"right"):(f=d,v=h==="end"?"top":"bottom");const p=y-u.top-u.bottom,b=g-u.left-u.right,x=ee(y-u[v],p),I=ee(g-u[f],b),S=!t.middlewareData.shift;let C=x,k=I;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(k=b),(s=t.middlewareData.shift)!=null&&s.enabled.y&&(C=p),S&&!h){const P=N(u.left,0),V=N(u.right,0),$=N(u.top,0),G=N(u.bottom,0);m?k=g-2*(P!==0||V!==0?P+V:N(u.left,u.right)):C=y-2*($!==0||G!==0?$+G:N(u.top,u.bottom))}await l({...t,availableWidth:k,availableHeight:C});const A=await a.getDimensions(r.floating);return g!==A.width||y!==A.height?{reset:{rects:!0}}:{}}}};function ze(){return typeof window<"u"}function me(e){return gn(e)?(e.nodeName||"").toLowerCase():"#document"}function D(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function W(e){var t;return(t=(gn(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function gn(e){return ze()?e instanceof Node||e instanceof D(e).Node:!1}function L(e){return ze()?e instanceof Element||e instanceof D(e).Element:!1}function Y(e){return ze()?e instanceof HTMLElement||e instanceof D(e).HTMLElement:!1}function mn(e){return!ze()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof D(e).ShadowRoot}function xe(e){const{overflow:t,overflowX:n,overflowY:s,display:i}=F(e);return/auto|scroll|overlay|hidden|clip/.test(t+s+n)&&i!=="inline"&&i!=="contents"}function oi(e){return/^(table|td|th)$/.test(me(e))}function qe(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const ai=/transform|translate|scale|rotate|perspective|filter/,ri=/paint|layout|strict|content/,re=e=>!!e&&e!=="none";let gt;function mt(e){const t=L(e)?F(e):e;return re(t.transform)||re(t.translate)||re(t.scale)||re(t.rotate)||re(t.perspective)||!ft()&&(re(t.backdropFilter)||re(t.filter))||ai.test(t.willChange||"")||ri.test(t.contain||"")}function li(e){let t=ne(e);for(;Y(t)&&!fe(t);){if(mt(t))return t;if(qe(t))return null;t=ne(t)}return null}function ft(){return gt==null&&(gt=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),gt}function fe(e){return/^(html|body|#document)$/.test(me(e))}function F(e){return D(e).getComputedStyle(e)}function We(e){return L(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ne(e){if(me(e)==="html")return e;const t=e.assignedSlot||e.parentNode||mn(e)&&e.host||W(e);return mn(t)?t.host:t}function fn(e){const t=ne(e);return fe(t)?e.ownerDocument?e.ownerDocument.body:e.body:Y(t)&&xe(t)?t:fn(t)}function Ce(e,t,n){var s;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=fn(e),o=i===((s=e.ownerDocument)==null?void 0:s.body),a=D(i);if(o){const r=pt(a);return t.concat(a,a.visualViewport||[],xe(i)?i:[],r&&n?Ce(r):[])}else return t.concat(i,Ce(i,[],n))}function pt(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function pn(e){const t=F(e);let n=parseFloat(t.width)||0,s=parseFloat(t.height)||0;const i=Y(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:s,r=Re(n)!==o||Re(s)!==a;return r&&(n=o,s=a),{width:n,height:s,$:r}}function bt(e){return L(e)?e:e.contextElement}function pe(e){const t=bt(e);if(!Y(t))return q(1);const n=t.getBoundingClientRect(),{width:s,height:i,$:o}=pn(t);let a=(o?Re(n.width):n.width)/s,r=(o?Re(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!r||!Number.isFinite(r))&&(r=1),{x:a,y:r}}const ci=q(0);function bn(e){const t=D(e);return!ft()||!t.visualViewport?ci:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function di(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==D(e)?!1:t}function le(e,t,n,s){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=bt(e);let a=q(1);t&&(s?L(s)&&(a=pe(s)):a=pe(e));const r=di(o,n,s)?bn(o):q(0);let l=(i.left+r.x)/a.x,c=(i.top+r.y)/a.y,u=i.width/a.x,d=i.height/a.y;if(o){const h=D(o),m=s&&L(s)?D(s):s;let g=h,y=pt(g);for(;y&&s&&m!==g;){const v=pe(y),f=y.getBoundingClientRect(),p=F(y),b=f.left+(y.clientLeft+parseFloat(p.paddingLeft))*v.x,x=f.top+(y.clientTop+parseFloat(p.paddingTop))*v.y;l*=v.x,c*=v.y,u*=v.x,d*=v.y,l+=b,c+=x,g=D(y),y=pt(g)}}return je({width:u,height:d,x:l,y:c})}function Ve(e,t){const n=We(e).scrollLeft;return t?t.left+n:le(W(e)).left+n}function yn(e,t){const n=e.getBoundingClientRect(),s=n.left+t.scrollLeft-Ve(e,n),i=n.top+t.scrollTop;return{x:s,y:i}}function ui(e){let{elements:t,rect:n,offsetParent:s,strategy:i}=e;const o=i==="fixed",a=W(s),r=t?qe(t.floating):!1;if(s===a||r&&o)return n;let l={scrollLeft:0,scrollTop:0},c=q(1);const u=q(0),d=Y(s);if((d||!d&&!o)&&((me(s)!=="body"||xe(a))&&(l=We(s)),d)){const m=le(s);c=pe(s),u.x=m.x+s.clientLeft,u.y=m.y+s.clientTop}const h=a&&!d&&!o?yn(a,l):q(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+h.x,y:n.y*c.y-l.scrollTop*c.y+u.y+h.y}}function hi(e){return Array.from(e.getClientRects())}function gi(e){const t=W(e),n=We(e),s=e.ownerDocument.body,i=N(t.scrollWidth,t.clientWidth,s.scrollWidth,s.clientWidth),o=N(t.scrollHeight,t.clientHeight,s.scrollHeight,s.clientHeight);let a=-n.scrollLeft+Ve(e);const r=-n.scrollTop;return F(s).direction==="rtl"&&(a+=N(t.clientWidth,s.clientWidth)-i),{width:i,height:o,x:a,y:r}}const wn=25;function mi(e,t){const n=D(e),s=W(e),i=n.visualViewport;let o=s.clientWidth,a=s.clientHeight,r=0,l=0;if(i){o=i.width,a=i.height;const u=ft();(!u||u&&t==="fixed")&&(r=i.offsetLeft,l=i.offsetTop)}const c=Ve(s);if(c<=0){const u=s.ownerDocument,d=u.body,h=getComputedStyle(d),m=u.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,g=Math.abs(s.clientWidth-d.clientWidth-m);g<=wn&&(o-=g)}else c<=wn&&(o+=c);return{width:o,height:a,x:r,y:l}}function fi(e,t){const n=le(e,!0,t==="fixed"),s=n.top+e.clientTop,i=n.left+e.clientLeft,o=Y(e)?pe(e):q(1),a=e.clientWidth*o.x,r=e.clientHeight*o.y,l=i*o.x,c=s*o.y;return{width:a,height:r,x:l,y:c}}function vn(e,t,n){let s;if(t==="viewport")s=mi(e,n);else if(t==="document")s=gi(W(e));else if(L(t))s=fi(t,n);else{const i=bn(e);s={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return je(s)}function In(e,t){const n=ne(e);return n===t||!L(n)||fe(n)?!1:F(n).position==="fixed"||In(n,t)}function pi(e,t){const n=t.get(e);if(n)return n;let s=Ce(e,[],!1).filter(r=>L(r)&&me(r)!=="body"),i=null;const o=F(e).position==="fixed";let a=o?ne(e):e;for(;L(a)&&!fe(a);){const r=F(a),l=mt(a);!l&&r.position==="fixed"&&(i=null),(o?!l&&!i:!l&&r.position==="static"&&!!i&&(i.position==="absolute"||i.position==="fixed")||xe(a)&&!l&&In(e,a))?s=s.filter(u=>u!==a):i=r,a=ne(a)}return t.set(e,s),s}function bi(e){let{element:t,boundary:n,rootBoundary:s,strategy:i}=e;const a=[...n==="clippingAncestors"?qe(t)?[]:pi(t,this._c):[].concat(n),s],r=vn(t,a[0],i);let l=r.top,c=r.right,u=r.bottom,d=r.left;for(let h=1;h<a.length;h++){const m=vn(t,a[h],i);l=N(m.top,l),c=ee(m.right,c),u=ee(m.bottom,u),d=N(m.left,d)}return{width:c-d,height:u-l,x:d,y:l}}function yi(e){const{width:t,height:n}=pn(e);return{width:t,height:n}}function wi(e,t,n){const s=Y(t),i=W(t),o=n==="fixed",a=le(e,!0,o,t);let r={scrollLeft:0,scrollTop:0};const l=q(0);function c(){l.x=Ve(i)}if(s||!s&&!o)if((me(t)!=="body"||xe(i))&&(r=We(t)),s){const m=le(t,!0,o,t);l.x=m.x+t.clientLeft,l.y=m.y+t.clientTop}else i&&c();o&&!s&&i&&c();const u=i&&!s&&!o?yn(i,r):q(0),d=a.left+r.scrollLeft-l.x-u.x,h=a.top+r.scrollTop-l.y-u.y;return{x:d,y:h,width:a.width,height:a.height}}function yt(e){return F(e).position==="static"}function Sn(e,t){if(!Y(e)||F(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return W(e)===n&&(n=n.ownerDocument.body),n}function xn(e,t){const n=D(e);if(qe(e))return n;if(!Y(e)){let i=ne(e);for(;i&&!fe(i);){if(L(i)&&!yt(i))return i;i=ne(i)}return n}let s=Sn(e,t);for(;s&&oi(s)&&yt(s);)s=Sn(s,t);return s&&fe(s)&&yt(s)&&!mt(s)?n:s||li(e)||n}const vi=async function(e){const t=this.getOffsetParent||xn,n=this.getDimensions,s=await n(e.floating);return{reference:wi(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function Ii(e){return F(e).direction==="rtl"}const wt={convertOffsetParentRelativeRectToViewportRelativeRect:ui,getDocumentElement:W,getClippingRect:bi,getOffsetParent:xn,getElementRects:vi,getClientRects:hi,getDimensions:yi,getScale:pe,isElement:L,isRTL:Ii};function Cn(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Si(e,t){let n=null,s;const i=W(e);function o(){var r;clearTimeout(s),(r=n)==null||r.disconnect(),n=null}function a(r,l){r===void 0&&(r=!1),l===void 0&&(l=1),o();const c=e.getBoundingClientRect(),{left:u,top:d,width:h,height:m}=c;if(r||t(),!h||!m)return;const g=Le(d),y=Le(i.clientWidth-(u+h)),v=Le(i.clientHeight-(d+m)),f=Le(u),b={rootMargin:-g+"px "+-y+"px "+-v+"px "+-f+"px",threshold:N(0,ee(1,l))||1};let x=!0;function I(S){const C=S[0].intersectionRatio;if(C!==l){if(!x)return a();C?a(!1,C):s=setTimeout(()=>{a(!1,1e-7)},1e3)}C===1&&!Cn(c,e.getBoundingClientRect())&&a(),x=!1}try{n=new IntersectionObserver(I,{...b,root:i.ownerDocument})}catch{n=new IntersectionObserver(I,b)}n.observe(e)}return a(!0),o}function xi(e,t,n,s){s===void 0&&(s={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:r=typeof IntersectionObserver=="function",animationFrame:l=!1}=s,c=bt(e),u=i||o?[...c?Ce(c):[],...t?Ce(t):[]]:[];u.forEach(f=>{i&&f.addEventListener("scroll",n,{passive:!0}),o&&f.addEventListener("resize",n)});const d=c&&r?Si(c,n):null;let h=-1,m=null;a&&(m=new ResizeObserver(f=>{let[p]=f;p&&p.target===c&&m&&t&&(m.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var b;(b=m)==null||b.observe(t)})),n()}),c&&!l&&m.observe(c),t&&m.observe(t));let g,y=l?le(e):null;l&&v();function v(){const f=le(e);y&&!Cn(y,f)&&n(),y=f,g=requestAnimationFrame(v)}return n(),()=>{var f;u.forEach(p=>{i&&p.removeEventListener("scroll",n),o&&p.removeEventListener("resize",n)}),d?.(),(f=m)==null||f.disconnect(),m=null,l&&cancelAnimationFrame(g)}}const Ci=ni,ki=si,Ei=Qs,kn=ii,Ai=Js,Mi=(e,t,n)=>{const s=new Map,i={platform:wt,...n},o={...i.platform,_c:s};return Zs(e,t,{...i,platform:o})};function En(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}const Pi=/transform|translate|scale|rotate|perspective|filter/,_i=/paint|layout|strict|content/,ce=e=>!!e&&e!=="none";let vt;function Ti(e){const t=(n=e,typeof window<"u"&&(n instanceof Element||n instanceof En(n).Element)?En(s=e).getComputedStyle(s):e);var n,s;return ce(t.transform)||ce(t.translate)||ce(t.scale)||ce(t.rotate)||ce(t.perspective)||(vt==null&&(vt=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),!vt&&(ce(t.backdropFilter)||ce(t.filter)))||Pi.test(t.willChange||"")||_i.test(t.contain||"")}function Oi(e){return(function(t){for(let n=t;n;n=It(n))if(n instanceof Element&&getComputedStyle(n).display==="none")return null;for(let n=It(t);n;n=It(n)){if(!(n instanceof Element))continue;const s=getComputedStyle(n);if(s.display!=="contents"&&(s.position!=="static"||Ti(s)||n.tagName==="BODY"))return n}return null})(e)}function It(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}var ke;(function(e){e.TOOLTIP="tooltip",e.POPOVER="popover",e.FLYOUT_PANEL="flyout-panel"})(ke||(ke={}));let Ni=(K=class{constructor(t,n){this.el=t,this.config=n,this.offset=10,this.timeDelayBeforeFadingOut=50,this.popoverMainAxisEnabled=!0,this.currentPlacement=n.placement,this.cleanup=null}getRootElement(){return this.el.shadowRoot??this.el}initialize(){this.timeBeforeElementShows=this.config.showWithoutDelay?50:500,this.timeOfAnimation=this.config.showWithoutDelay?50:250;const t=this.getRootElement();this.floatingElement=t.querySelector(this.config.floatingElementSelector),this.floatingElement&&this.applyViewportMaxWidth(),this.arrowEl=this.config.showArrow!==!1&&this.config.arrowElementSelector?t.querySelector(this.config.arrowElementSelector):null,this.anchorElement=this.config.htmlFor?.length>0?document.getElementById(this.config.htmlFor):this.config.getAnchorElement?this.config.getAnchorElement(t):this.el.shadowRoot?this.config.getAnchorElementFromSlot(this.el.shadowRoot):null,this.anchorElement?this.setupPositioning():console.warn("Could not determine the element associated with this floating element."+(this.config.htmlFor?.length>0?`Element with id=${this.config.htmlFor} could not be found on the DOM.`:""))}getAnchorElement(){return this.anchorElement}updateConfig(t){this.config={...this.config,...t},"showWithoutDelay"in t&&(this.timeBeforeElementShows=this.config.showWithoutDelay?50:500,this.timeOfAnimation=this.config.showWithoutDelay?50:250),this.forceUpdate()}getConfig(){return this.config}getCurrentPlacement(){return this.currentPlacement||this.config.placement}reposition(){this.forceUpdate()}forceUpdate(){this.anchorElement&&this.floatingElement&&this.updatePosition()}setupPositioning(){this.anchorElement&&this.updatePosition()}setupAutoUpdate(){!this.cleanup&&this.anchorElement&&(this.cleanup=xi(this.anchorElement,this.floatingElement,(()=>{this.updatePosition()}),{ancestorScroll:!0,ancestorResize:!1,elementResize:!0,layoutShift:!0,animationFrame:!1}))}cleanupAutoUpdate(){this.cleanup&&(this.cleanup(),this.cleanup=null)}updatePosition(){if(!this.anchorElement)return;const t=this.config.offset??this.offset,n=[Ci(t)],s=this.config.lockToMainAxis??!1,i=this.config.constrainPlacements,o=i&&i.length>0?i.includes(this.config.placement)?this.config.placement:i[0]:this.config.placement,a=Ei(i&&i.length>0?{mainAxis:!0,crossAxis:!1,padding:t,fallbackPlacements:i.filter((c=>c!==o)),fallbackAxisSideDirection:"none"}:{mainAxis:!0,crossAxis:!s&&"alignment",fallbackAxisSideDirection:"end",padding:t}),r=this.config.elementType===ke.POPOVER,l=ki({padding:t,mainAxis:this.config.constrainToViewportHeight||this.config.elementType===ke.TOOLTIP||r&&this.popoverMainAxisEnabled,crossAxis:!1});this.config.matchReferenceWidth&&n.push(kn({apply({elements:c,rects:u}){Object.assign(c.floating.style,{width:`${u.reference.width}px`})}})),o?.includes("-")?n.push(a,l):n.push(l,a),this.config.constrainToViewportHeight&&n.push(kn({padding:t,apply:({availableHeight:c,elements:u})=>{const d=Array.from(u.floating.children).find((h=>h!==this.arrowEl));d instanceof HTMLElement&&Object.assign(d.style,{maxHeight:`${Math.max(0,c)}px`,overflowY:"auto",overflowX:"hidden"})}})),this.config.showArrow!==!1&&this.arrowEl&&n.push(Ai({element:this.arrowEl,padding:t})),Mi(this.anchorElement,this.floatingElement,{placement:o,strategy:"fixed",middleware:n,platform:{...wt,getOffsetParent:c=>wt.getOffsetParent(c,Oi)}}).then((({x:c,y:u,middlewareData:d,placement:h})=>{if(r){const v=h.startsWith("left")||h.startsWith("right"),f=h.startsWith("top")||h.startsWith("bottom"),p=this.isAnchorInViewport(),b=!!f||(v?p:this.popoverMainAxisEnabled);if(b!==this.popoverMainAxisEnabled)return this.popoverMainAxisEnabled=b,void this.updatePosition()}this.currentPlacement=h,Object.assign(this.floatingElement.style,{left:`${c}px`,top:`${u}px`,position:"fixed",transition:`opacity ${this.timeOfAnimation}ms ease`});const m=h.split("-")[0]??"bottom",g={top:"bottom",right:"left",bottom:"top",left:"right"}[m],{arrowZIndex:y}=this.normalizeFloatingElementStacking();if(d.arrow&&this.arrowEl){const v=this.arrowEl.offsetWidth,{x:f,y:p}=d.arrow;this.arrowEl.style.borderRadius=`${["left","right"].includes(m)?"0 ":""}var(--gidsFloatingElement-tip-border-radius, 2px)${["top","bottom"].includes(m)?" 0":""}`,Object.assign(this.arrowEl.style,{left:f!==null?`${f}px`:"",top:p!==null?`${p}px`:"",right:"",bottom:"",[g]:-v/2+"px",transform:"rotate(45deg)",zIndex:`${y}`,background:"var(--gidsFloatingElement-background)"})}}))}applyViewportMaxWidth(){const t=`calc(100vw - ${2*this.offset}px)`;this.floatingElement&&this.floatingElement?.style.maxWidth!==t&&(this.floatingElement.style.maxWidth=t)}normalizeFloatingElementStacking(){const t=this.floatingElement.style.zIndex||(window.getComputedStyle?.(this.floatingElement).zIndex??""),n=Number.parseInt(t,10),s=Number.isNaN(n)?-1:n-1,i=Number.isNaN(n)?s+1:n;return Number.isNaN(i)||(this.floatingElement.style.zIndex=`${i}`),Array.from(this.floatingElement.children).forEach((o=>{if(!(o instanceof HTMLElement)||o===this.arrowEl)return;const a=o.style.zIndex||(window.getComputedStyle?.(o).zIndex??""),r=Number.parseInt(a,10),l=window.getComputedStyle?.(o).position??"";(a===""||a==="auto"||Number.isNaN(r)||r<i)&&(o.style.zIndex=`${i}`,l!==""&&l!=="static"||(o.style.position="relative"))})),{contentZIndex:i,arrowZIndex:s}}hideFloatingElement(){this.floatingElement.classList.remove(this.config.visibilityClass),K.currentFloatingElements.delete(this.config.elementType)}showFloatingElement(){const t=K.currentFloatingElements.get(this.config.elementType);t&&t.hideFloatingElement(),this.floatingElement.classList.add(this.config.visibilityClass),K.currentFloatingElements.set(this.config.elementType,this)}isVisible(){return this.floatingElement.classList.contains(this.config.visibilityClass)}show(){this.setupAutoUpdate(),this.showFloatingElement()}hide(){this.cleanupAutoUpdate(),this.hideFloatingElement()}toggle(){this.isVisible()?this.hide():this.show()}showAfterDelay(){clearTimeout(this.hoverOutTimeout),this.hoverTimeout=setTimeout((()=>{this.show()}),this.timeBeforeElementShows)}hideAfterDelay(){clearTimeout(this.hoverTimeout),this.hoverOutTimeout=setTimeout((()=>{this.hide()}),this.timeDelayBeforeFadingOut)}cancelDelayedActions(){clearTimeout(this.hoverTimeout),clearTimeout(this.hoverOutTimeout)}destroy(){this.cleanupAutoUpdate(),this.cancelDelayedActions()}isAnchorInViewport(){if(!(this.anchorElement&&this.anchorElement instanceof Element))return!1;const t=this.anchorElement.getBoundingClientRect(),n=window.innerHeight||document.documentElement?.clientHeight||0,s=window.innerWidth||document.documentElement?.clientWidth||0,i=t.height/2+2*this.offset;return t.bottom>=i&&t.top<=n-i&&t.right>=0&&t.left<=s}},K.currentFloatingElements=new Map,K);const Di=De(class extends ye{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.placement="bottom",this.constrainPlacements=["bottom","top"],this.matchReferenceWidth=!0,this.previouslyFocusedElement=null,this.focusableElements=[],this.handleToggleEvent=t=>{t.stopPropagation();const n=this.floatingElementManager.isVisible();this.floatingElementManager.toggle(),!n&&this.floatingElementManager.isVisible()?this.onFlyoutPanelShow():n&&!this.floatingElementManager.isVisible()&&this.onFlyoutPanelHide()},this.handleDocumentClick=t=>{this.floatingElementManager.isVisible()&&!this._el.contains(t.target)&&(this.floatingElementManager.hide(),this.onFlyoutPanelHide())},this.handleKeyDown=t=>{if(this.floatingElementManager.isVisible())return t.key==="Escape"?(t.preventDefault(),this.floatingElementManager.hide(),void this.onFlyoutPanelHide()):void(t.key==="Tab"&&this.trapFocus(t))}}componentDidLoad(){this.floatingElementManager=new Ni(this._el,{htmlFor:this.htmlFor,placement:this.placement,showWithoutDelay:!0,floatingElementSelector:"#flyout-panel",showArrow:!1,visibilityClass:"gids-flyout-panel--visible",elementType:ke.FLYOUT_PANEL,constrainPlacements:this?.constrainPlacements??["bottom","top"],constrainToViewportHeight:!0,matchReferenceWidth:this?.matchReferenceWidth??!0,getAnchorElementFromSlot:e=>e.querySelector('slot[name="anchor"]')?.assignedElements()[0]||null}),this.floatingElementManager.initialize(),this.setupEventListeners()}setupEventListeners(){const e=this.floatingElementManager.getAnchorElement();e&&(e.addEventListener("click",this.handleToggleEvent),document.addEventListener("click",this.handleDocumentClick),document.addEventListener("keydown",this.handleKeyDown))}onFlyoutPanelShow(){this.previouslyFocusedElement=document.activeElement,this.updateFocusableElements(),setTimeout((()=>{this.focusableElements.length>0&&this.focusableElements[0]&&this.focusableElements[0].focus()}),50)}onFlyoutPanelHide(){this.previouslyFocusedElement&&(this.previouslyFocusedElement.focus(),this.previouslyFocusedElement=null)}updateFocusableElements(){const e=this._el.shadowRoot?.querySelector("#flyout-panel");if(!e)return;const t=[],n=Mn(e);t.push(...n);const s=this._el.shadowRoot?.querySelector("slot:not([name])");s&&s.assignedElements({flatten:!0}).forEach((i=>{const o=Mn(i);t.push(...o)})),this.focusableElements=t.sort(((i,o)=>{const a=i.compareDocumentPosition(o),r=!!(a&Node.DOCUMENT_POSITION_FOLLOWING),l=!!(a&Node.DOCUMENT_POSITION_PRECEDING);return r?-1:l?1:0}))}trapFocus(e){if(this.focusableElements.length===0)return;const t=this.focusableElements[0],n=this.focusableElements[this.focusableElements.length-1];let s=document.activeElement;if(s===this._el){const o=this._el.shadowRoot?.activeElement;o!==null&&(s=o)}const i=this.focusableElements.indexOf(s)!==-1;e.shiftKey?s!==t&&i||(e.preventDefault(),n&&n.focus()):s!==n&&i||(e.preventDefault(),t&&t.focus())}placementChanged(e){this.floatingElementManager?.updateConfig({placement:e}),this.floatingElementManager?.isVisible()&&this.floatingElementManager?.reposition()}constrainPlacementsChanged(e){this.floatingElementManager?.updateConfig({constrainPlacements:e}),this.floatingElementManager?.isVisible()&&this.floatingElementManager?.reposition()}htmlForChanged(e){this.floatingElementManager?.updateConfig({htmlFor:e}),this.cleanupEventListeners(),this.floatingElementManager?.initialize(),this.setupEventListeners()}cleanupEventListeners(){const e=this.floatingElementManager?.getAnchorElement();e&&e.removeEventListener("click",this.handleToggleEvent),document.removeEventListener("click",this.handleDocumentClick),document.removeEventListener("keydown",this.handleKeyDown)}flyoutPanelVisible(){return!!this.floatingElementManager.isVisible()}openPanel(e){this.floatingElementManager.isVisible()||this.handleToggleEvent(e)}closePanel(e){this.floatingElementManager.isVisible()&&this.handleToggleEvent(e)}async isFlyoutPanelVisible(){return this.flyoutPanelVisible()}async openFlyoutPanel(e){this.openPanel(e)}async closeFlyoutPanel(e){this.closePanel(e)}render(){return w(is,{key:"4f711c96e1936b3c8d3df3104ff9e68a808fa408"},w("slot",{key:"5dc834a55ca7751741965b3e68eb9a8747c00120",name:"anchor"}),w("div",{key:"91b24cf0544a267569762ff9a3d7b8c83faa9d20",id:"flyout-panel",part:"flyout-panel",role:"dialog","aria-modal":"true",tabindex:"-1"},w("div",{key:"4d4d5b25c4a191f862ad226d7c1c7d8c7c21d006"},w("slot",{key:"5fcf60039e76fa3b2c4fca9b2769f24ff8878102"}))))}disconnectedCallback(){this.cleanupEventListeners(),this.floatingElementManager?.destroy()}get _el(){return this}static get watchers(){return{placement:[{placementChanged:0}],constrainPlacements:[{constrainPlacementsChanged:0}],htmlFor:[{htmlForChanged:0}]}}static get style(){return"gids-flyout-panel{--gidsFlyoutPanel-background:var(--gids-elevation-surface-overlay-default);--gidsFlyoutPanel-text-color:var(--gids-color-text-default);--gidsFlyoutPanel-padding:var(--gids-padding-vertical-edge-to-element-200) var(--gids-padding-horizontal-edge-to-element-300);--gidsFlyoutPanel-border-radius:var(--gids-border-radius-lg);--gidsFlyoutPanel-shadow:var(--gids-elevation-shadow-overlay);--gidsFloatingElement-background:var(--gidsFlyoutPanel-background)}[part=flyout-panel]{font-family:var(--gids-typography-label-small__font-family);font-size:var(--gids-typography-label-small__font-size);font-weight:var(--gids-typography-label-small__font-weight);letter-spacing:var(--gids-typography-label-small__letter-spacing);line-height:var(--gids-typography-label-small__line-height);text-transform:var(--gids-typography-label-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-small__font-variant-caps, inherit);position:absolute;display:inline-block;background-color:var(--gidsFlyoutPanel-background);color:var(--gidsFlyoutPanel-text-color);border-radius:var(--gidsFlyoutPanel-border-radius);box-shadow:var(--gidsFlyoutPanel-shadow);z-index:1000;opacity:0;pointer-events:none;outline:none}[part=flyout-panel]:focus{outline:none}[part=flyout-panel].gids-flyout-panel--visible{pointer-events:initial;opacity:1}"}},[257,"gids-flyout-panel",{htmlFor:[513,"for"],placement:[513],constrainPlacements:[16],matchReferenceWidth:[516,"match-reference-width"],isFlyoutPanelVisible:[64],openFlyoutPanel:[64],closeFlyoutPanel:[64]},void 0,{placement:[{placementChanged:0}],constrainPlacements:[{constrainPlacementsChanged:0}],htmlFor:[{htmlForChanged:0}]}]),An=e=>{if(!(e instanceof ye)||e.tabIndex===-1||e.hasAttribute("disabled"))return!1;const t=getComputedStyle(e);if(t.display==="none"||t.visibility==="hidden"||e.hidden)return!1;try{const n=e.tabIndex;e.tabIndex=-1,e.focus();const s=document.activeElement===e;return e.tabIndex=n,s&&e.blur(),s}catch{return!1}},Mn=e=>{const t=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>An(i)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}),n=[];An(e)&&n.push(e);let s=t.nextNode();for(;s!==null;)n.push(s),s=t.nextNode();return n};function Ge(){typeof customElements<"u"&&["gids-flyout-panel"].forEach((e=>{e==="gids-flyout-panel"&&(customElements.get(e)||customElements.define(e,Di))}))}Ge();const{getGidsStatusTagClassNames:$i,getStatusTagIconName:Ri,getStatusTagText:Li}=ks,Pn=({type:e="new",appearance:t="subtlest",size:n="sm",class:s})=>w("div",{class:$i({type:e,size:n,appearance:t},s)},w(Q,{name:Ri(e),appearance:"filled"}),w("label",null,Li(e))),{getGidsCheckboxClassNames:Fi}=ms,_n=({fieldRequirement:e,fieldRequirementOptionalText:t,fieldRequirementRequiredText:n,info:s,labelId:i,checked:o,defaultChecked:a,disabled:r,indeterminate:l,inputId:c,name:u,value:d,required:h,onChange:m,class:g,...y},v)=>{const f=c??lt();return w("div",{class:Fi(g),...y},w(Fs,{checked:o,defaultChecked:a,disabled:r,indeterminate:l,inputId:f,name:u,value:d,required:h,onChange:m}),w(rn,{disabled:r,fieldRequirement:e,fieldRequirementOptionalText:t,fieldRequirementRequiredText:n,labelId:i,htmlFor:f,info:s},v))},{getGidsRadioControlClassNames:ji}=ws,zi=({checked:e,defaultChecked:t,disabled:n,inputId:s,name:i,value:o,onChange:a,class:r,...l})=>w("span",{class:ji(r),...l},w("input",{class:"gids-radio-control__input",type:"radio",disabled:n,checked:e,defaultChecked:t,value:o,id:s,name:i,onChange:a}),w("span",{class:"gids-radio-control__check"})),{getGidsRadioClassNames:qi}=vs,Tn=({fieldRequirement:e,fieldRequirementOptionalText:t,fieldRequirementRequiredText:n,info:s,labelId:i,checked:o,defaultChecked:a,disabled:r,inputId:l,name:c,value:u,onChange:d,class:h,...m},g)=>{const y=l??lt();return w("div",{class:qi(h),...m},w(zi,{checked:o,defaultChecked:a,disabled:r,inputId:y,name:c,value:u,onChange:d}),w(rn,{disabled:r,fieldRequirement:e,fieldRequirementOptionalText:t,fieldRequirementRequiredText:n,labelId:i,htmlFor:y,info:s},g))},{getGidsSidebarMenuItemClassNames:Wi}=Ss,On=({id:e="sidebar-menu-item",appearance:t="default",selectionAppearance:n="subtle",leadingLabel:s,leadingSupportingText:i,trailingLabel:o,trailingSupportingText:a,leadingIcon:r,trailingIcon:l,leadingAccessory:c,trailingAccessory:u,selected:d,disabled:h,onPressSidebarMenuItem:m,class:g})=>{const y=s&&s!=="",v=i&&i!=="",f=o&&o!=="",p=a&&a!=="",b=y||v,x=f||p,I=b||x;return w("button",{type:"button",id:e,"data-appearance":t,"data-selected":d?"true":"false",disabled:h,class:Wi({selected:d,appearance:t,selectionAppearance:n},g),onClick:S=>{m&&m({originalEvent:S,sidebarMenuItemId:e,selected:!d})}},r||c?w("div",{class:"gids-sidebar-menu-item__leading-accessory-content"},r,c):void 0,I?w("div",{class:"gids-sidebar-menu-item__content"},b?w("div",{class:"gids-sidebar-menu-item__leading-content"},y?w("span",{class:"gids-sidebar-menu-item__label-content"},s):void 0,v?w("p",{class:"gids-sidebar-menu-item__support-content"},i):void 0):void 0,x?w("div",{class:"gids-sidebar-menu-item__trailing-content"},f?w("span",{class:"gids-sidebar-menu-item__label-content"},o):void 0,p?w("p",{class:"gids-sidebar-menu-item__support-content"},a):void 0):void 0):void 0,l||u?w("div",{class:"gids-sidebar-menu-item__trailing-accessory-content"},u,l):void 0)},{getGidsSidebarMenuClassNames:Vi}=xs,Gi=De(class extends ye{constructor(e){super(),e!==!1&&this.__registerHost(),this.id="sidebar-menu",this.sidebarMenuItemAppearance="subtle",this.sidebarMenuItemSelectionAppearance="default",this.placement="right-end",this.constrainPlacements=["bottom","left","right","left-start","left-end","right-start","right-end","top"],this.selectedSectionIdState=void 0,this.selectedItemIdState=void 0,this.onSidebarMenuItemPress=({menuItem:t,itemIndex:n,sectionIndex:s,event:i})=>{if(t){const o=(this?.menuData??[])[s];(o?.menuItems??[]).length>0&&!this.isMenuItemSelected({sectionId:o?.sectionId,itemId:t.id})&&(this.selectedSectionIdState=o?.sectionId,this.selectedItemIdState=t.id,this.onSidebarMenuChange&&this.onSidebarMenuChange({originalEvent:i?.originalEvent,sidebarMenuItemId:i.sidebarMenuItemId,selected:i?.selected,sidebarMenuItemSectionId:o?.sectionId??"",sidebarMenuItemSectionIndex:s,sidebarMenuItemIndex:n,sidebarMenuId:this.id}))}i?.originalEvent&&this.flyoutPanelElement?.closeFlyoutPanel(i.originalEvent)},this.isMenuItemSelected=({sectionId:t,itemId:n})=>{const s=this?.selectedSectionIdState,i=this?.selectedItemIdState;return s===t&&i===n},this.isValidMenu=()=>!!(this?.menuData&&this.menuData.length>0&&this.menuData[0]?.menuItems&&this.menuData[0].menuItems.length>0),this.renderAccessory=({accessoryType:t,accessory:n})=>{switch(t){case"badge":return w(tn,{...n?.badgeProps});case"display-tag":return w(nn,{...n?.displayTagProps,label:n?.displayTagProps?.label??"",color:n?.displayTagProps?.color??"accent-1",icon:n?.displayTagProps?.iconName?w(Q,{name:n.displayTagProps.iconName,appearance:n?.displayTagProps?.iconAppearance??"regular",size:n?.displayTagProps?.iconSize??"md",alt:n?.displayTagProps?.iconAlt}):void 0});case"status-tag":return w(Pn,{...n?.statusTagProps});case"checkbox":return w(_n,{checked:n?.checkboxProps?.checked,disabled:n?.checkboxProps?.disabled,indeterminate:n?.checkboxProps?.indeterminate},n?.checkboxProps?.label);case"radio":return w(Tn,{checked:n?.radioProps?.checked,disabled:n?.radioProps?.disabled},n?.radioProps?.label);default:return}},this.renderIcon=t=>t?.name?w(Q,{name:t.name,appearance:t?.appearance??"regular",size:t?.size??"md",alt:t?.alt}):void 0}idChanged(e){this.id=e}sidebarMenuItemAppearanceChanged(e){this.sidebarMenuItemAppearance=e}sidebarMenuItemSelectionAppearanceChanged(e){this.sidebarMenuItemSelectionAppearance=e}selectedSectionIdChanged(e){this.selectedSectionId=e,this.selectedSectionIdState=e}selectedItemIdChanged(e){this.selectedItemId=e,this.selectedItemIdState=e}placementChanged(e){this.placement=e}constrainPlacementsChanged(e){this.constrainPlacements=e}htmlForChanged(e){this.htmlFor=e}menuDataChanged(e){this.menuData=e}connectedCallback(){this.selectedSectionIdState=this.selectedSectionId,this.selectedItemIdState=this.selectedItemId}componentDidRender(){this.flyoutPanelElement=this.hostElement.querySelector("gids-flyout-panel")??void 0}render(){const e=this.id,t=this?.sidebarMenuItemAppearance??"subtle",n=this?.sidebarMenuItemSelectionAppearance??"default",s=this?.placement??"right",i=this?.constrainPlacements&&this.constrainPlacements.length>0?this.constrainPlacements:["bottom","left","right","top","left-start","left-end","right-start","right-end"],o=this.htmlFor,a=this?.menuData??[],r=this.isValidMenu(),l=Vi();return w(Me,{key:"0c64f373590a913f6d21d8a86f0d3289382a2052",id:e,class:l},r?w("gids-flyout-panel",{htmlFor:o,constrainPlacements:i,placement:s,matchReferenceWidth:!1},a.map(((c,u)=>{const d=c?.sectionLabel,h=c?.menuItems??[];return w("div",{key:`${u+1}`,class:"gids-sidebar-menu__container"},d&&d!==""?w("h3",null,d):void 0,w("div",{class:"gids-sidebar-menu__item-container"},h.map(((m,g)=>{const{leadingAccessoryType:y,leadingAccessory:v,trailingAccessoryType:f,trailingAccessory:p,leadingIconProps:b,trailingIconProps:x,...I}=m;return w(On,{key:`${g+1}`,...I,id:m.id,appearance:t,selectionAppearance:n,selected:this.isMenuItemSelected({sectionId:c?.sectionId,itemId:m.id}),leadingAccessory:this.renderAccessory({accessoryType:y,accessory:v}),trailingAccessory:this.renderAccessory({accessoryType:f,accessory:p}),leadingIcon:this.renderIcon(b),trailingIcon:this.renderIcon(x),onPressSidebarMenuItem:S=>this.onSidebarMenuItemPress({menuItem:m,sectionIndex:u,itemIndex:g,event:S})})}))))}))):void 0)}get hostElement(){return this}static get watchers(){return{id:[{idChanged:0}],sidebarMenuItemAppearance:[{sidebarMenuItemAppearanceChanged:0}],sidebarMenuItemSelectionAppearance:[{sidebarMenuItemSelectionAppearanceChanged:0}],selectedSectionId:[{selectedSectionIdChanged:0}],selectedItemId:[{selectedItemIdChanged:0}],placement:[{placementChanged:0}],constrainPlacements:[{constrainPlacementsChanged:0}],htmlFor:[{htmlForChanged:0}],menuData:[{menuDataChanged:0}]}}static get style(){return".gids-sidebar-menu__container{display:flex;flex-direction:column;gap:var(--gids-gap-200);width:100%;padding:var(--gids-padding-vertical-edge-to-element-150) var(--gids-padding-horizontal-edge-to-element-200)}.gids-sidebar-menu__item-container{display:flex;flex-direction:column;gap:var(--gids-gap-150)}"}},[0,"gids-sidebar-menu",{id:[1],sidebarMenuItemAppearance:[1,"sidebar-menu-item-appearance"],sidebarMenuItemSelectionAppearance:[1,"sidebar-menu-item-selection-appearance"],selectedSectionId:[1,"selected-section-id"],selectedItemId:[1,"selected-item-id"],placement:[1],constrainPlacements:[16],htmlFor:[1,"html-for"],menuData:[16],onSidebarMenuChange:[16],selectedSectionIdState:[32],selectedItemIdState:[32]},void 0,{id:[{idChanged:0}],sidebarMenuItemAppearance:[{sidebarMenuItemAppearanceChanged:0}],sidebarMenuItemSelectionAppearance:[{sidebarMenuItemSelectionAppearanceChanged:0}],selectedSectionId:[{selectedSectionIdChanged:0}],selectedItemId:[{selectedItemIdChanged:0}],placement:[{placementChanged:0}],constrainPlacements:[{constrainPlacementsChanged:0}],htmlFor:[{htmlForChanged:0}],menuData:[{menuDataChanged:0}]}]);function St(){typeof customElements<"u"&&["gids-sidebar-menu","gids-flyout-panel"].forEach((e=>{switch(e){case"gids-sidebar-menu":customElements.get(e)||customElements.define(e,Gi);break;case"gids-flyout-panel":customElements.get(e)||Ge()}}))}St();const{getGidsDividerClassNames:Hi}=ps,xt=({orientation:e})=>w("hr",{class:Hi({orientation:e})}),{getGidsSidebarItemClassNames:Bi}=Is,Ui=De(class extends ye{constructor(e){super(),e!==!1&&this.__registerHost(),this.appearance="subtle",this.selectionAppearance="default",this.menuId="sidebar-menu-item",this.menuPlacement="right-end",this.menuConstrainPlacements=["bottom","left","right","top","left-start","left-end","right-start","right-end"],this.menuData=[],this.sidebarMenuItemAppearance="subtle",this.sidebarMenuItemSelectionAppearance="default",this.selectedMenuItemSectionIdState=void 0,this.selectedMenuItemIdState=void 0,this.selectedState=!1,this.onSidebarMenuItemPress=({event:t})=>{this.isNavigatable()&&!this.isSidebarItemSelected()&&(this.selectedState=!0,this.firePressEvents({originalEvent:t?.originalEvent,sidebarItemId:this.id,hasMenu:!1,menuLength:0,sidebarMenuItemSectionId:void 0,sidebarMenuItemSectionIndex:void 0,sidebarMenuItemIndex:void 0,sidebarMenuId:void 0,sidebarMenuItemId:void 0,selected:!0}))},this.onChangeSidebarMenu=({event:t})=>{t&&t?.originalEvent?.stopPropagation();const n=this?.menuData??[];this.isMenuItemSelected({selectedMenuSectionId:t?.sidebarMenuItemSectionId,selectedMenuItemId:t?.sidebarMenuItemId,selectedMenuId:this?.menuId??void 0})||(this.selectedMenuItemSectionIdState=t?.sidebarMenuItemSectionId,this.selectedMenuItemIdState=t?.sidebarMenuItemId,this.selectedState=!0,this.firePressEvents({originalEvent:t?.originalEvent,sidebarItemId:this.id,hasMenu:!0,menuLength:n.length,sidebarMenuItemSectionId:t?.sidebarMenuItemSectionId,sidebarMenuItemSectionIndex:t?.sidebarMenuItemSectionIndex,sidebarMenuItemIndex:t?.sidebarMenuItemIndex,sidebarMenuId:t?.sidebarMenuId,sidebarMenuItemId:t?.sidebarMenuItemId,selected:!0}))},this.firePressEvents=t=>{this.onPressSidebarItem&&this.onPressSidebarItem(t)},this.isSidebarItemSelected=()=>this?.selectedState??!1,this.isMenuItemSelected=({selectedMenuId:t,selectedMenuSectionId:n,selectedMenuItemId:s})=>(this?.selectedMenuItemSectionIdState??void 0)===n&&(this?.selectedMenuItemIdState??void 0)===s&&(this?.menuId??void 0)===t,this.hasMenu=()=>{const t=this?.menuData??[];return!!(t.length>0&&t[0]?.menuItems&&t[0].menuItems.length>0&&t[0].menuItems[0]?.id)},this.isNavigatable=()=>!this.hasMenu()}idChanged(e){this.id=e}appearanceChanged(e){this.appearance=e}selectionAppearanceChanged(e){this.selectionAppearance=e}leadingLabelChanged(e){this.leadingLabel=e}leadingSupportingTextChanged(e){this.leadingSupportingText=e}trailingLabelChanged(e){this.trailingLabel=e}trailingSupportingTextChanged(e){this.trailingSupportingText=e}selectedChanged(e){this.selected=e,this.selectedState=e}disabledChanged(e){this.disabled=e}menuIdChanged(e){this.menuId=e}menuPlacementChanged(e){this.menuPlacement=e}menuConstrainPlacementsChanged(e){this.menuConstrainPlacements=e}menuDataChanged(e){this.menuData=e}sidebarMenuItemAppearanceChanged(e){this.sidebarMenuItemAppearance=e}sidebarMenuItemSelectionAppearanceChanged(e){this.sidebarMenuItemSelectionAppearance=e}selectedMenuItemSectionIdChanged(e){this.selectedMenuItemSectionId=e,this.selectedMenuItemSectionIdState=e}selectedMenuItemIdChanged(e){this.selectedMenuItemId=e,this.selectedMenuItemIdState=e}connectedCallback(){this.selectedMenuItemSectionIdState=this.selectedMenuItemSectionId,this.selectedMenuItemIdState=this.selectedMenuItemId,this.selectedState=this.selected}render(){const e=this.id,t=this?.appearance??"subtle",n=this?.selectionAppearance??"default",s=this?.leadingLabel,i=this?.leadingSupportingText,o=this?.trailingLabel,a=this?.trailingSupportingText,r=this?.disabled??!1,l=this?.selectedState??!1,c=this?.menuId??"sidebar-menu-item",u=this?.menuPlacement??"right",d=this?.menuConstrainPlacements&&this.menuConstrainPlacements.length>0?this.menuConstrainPlacements:["bottom","left","right","top","left-start","left-end","right-start","right-end"],h=this?.menuData??[],m=this?.sidebarMenuItemAppearance??"subtle",g=this?.sidebarMenuItemSelectionAppearance??"default",y=this?.selectedMenuItemSectionIdState??void 0,v=this?.selectedMenuItemIdState??void 0,f=this.hasMenu(),p=Bi();return w(Me,{key:"a844b77f7e7119f075e0fc56dcf495761d6147db",id:e,class:p},w(On,{key:"d6f0983f42d4fac33ddcbe40eb24b1eebf6aff71",id:e,appearance:t,selectionAppearance:n,leadingLabel:s,leadingSupportingText:i,trailingLabel:o,trailingSupportingText:a,selected:l,disabled:r,leadingIcon:w("slot",{name:"sidebarItemLeadingIcon"}),leadingAccessory:w("slot",{name:"sidebarItemLeadingAccessory"}),trailingAccessory:w("slot",{name:"sidebarItemTrailingAccessory"}),trailingIcon:f?w(Q,{name:"chevron-right",size:"md",appearance:"regular",alt:""}):void 0,onPressSidebarMenuItem:b=>this.onSidebarMenuItemPress({event:b})}),f?w("div",{class:"gids-sidebar-item__menu-container"},w("gids-sidebar-menu",{htmlFor:e,menuData:h,id:c,placement:u,constrainPlacements:d,sidebarMenuItemAppearance:m,sidebarMenuItemSelectionAppearance:g,selectedSectionId:y,selectedItemId:v,onSidebarMenuChange:b=>this.onChangeSidebarMenu({event:b})})):void 0)}get hostElement(){return this}static get watchers(){return{id:[{idChanged:0}],appearance:[{appearanceChanged:0}],selectionAppearance:[{selectionAppearanceChanged:0}],leadingLabel:[{leadingLabelChanged:0}],leadingSupportingText:[{leadingSupportingTextChanged:0}],trailingLabel:[{trailingLabelChanged:0}],trailingSupportingText:[{trailingSupportingTextChanged:0}],selected:[{selectedChanged:0}],disabled:[{disabledChanged:0}],menuId:[{menuIdChanged:0}],menuPlacement:[{menuPlacementChanged:0}],menuConstrainPlacements:[{menuConstrainPlacementsChanged:0}],menuData:[{menuDataChanged:0}],sidebarMenuItemAppearance:[{sidebarMenuItemAppearanceChanged:0}],sidebarMenuItemSelectionAppearance:[{sidebarMenuItemSelectionAppearanceChanged:0}],selectedMenuItemSectionId:[{selectedMenuItemSectionIdChanged:0}],selectedMenuItemId:[{selectedMenuItemIdChanged:0}]}}static get style(){return".gids-sidebar-item{display:flex;flex-direction:column;width:100%}.gids-sidebar-item__menu-container{display:flex;flex-direction:column;width:100%}"}},[260,"gids-sidebar-item",{id:[1],appearance:[1],selectionAppearance:[1,"selection-appearance"],leadingLabel:[1,"leading-label"],leadingSupportingText:[1,"leading-supporting-text"],trailingLabel:[1,"trailing-label"],trailingSupportingText:[1,"trailing-supporting-text"],selected:[4],disabled:[4],menuId:[1,"menu-id"],menuPlacement:[1,"menu-placement"],menuConstrainPlacements:[16],menuData:[16],sidebarMenuItemAppearance:[1,"sidebar-menu-item-appearance"],sidebarMenuItemSelectionAppearance:[1,"sidebar-menu-item-selection-appearance"],selectedMenuItemSectionId:[1,"selected-menu-item-section-id"],selectedMenuItemId:[1,"selected-menu-item-id"],onPressSidebarMenuItem:[16],onPressSidebarItem:[16],selectedMenuItemSectionIdState:[32],selectedMenuItemIdState:[32],selectedState:[32]},void 0,{id:[{idChanged:0}],appearance:[{appearanceChanged:0}],selectionAppearance:[{selectionAppearanceChanged:0}],leadingLabel:[{leadingLabelChanged:0}],leadingSupportingText:[{leadingSupportingTextChanged:0}],trailingLabel:[{trailingLabelChanged:0}],trailingSupportingText:[{trailingSupportingTextChanged:0}],selected:[{selectedChanged:0}],disabled:[{disabledChanged:0}],menuId:[{menuIdChanged:0}],menuPlacement:[{menuPlacementChanged:0}],menuConstrainPlacements:[{menuConstrainPlacementsChanged:0}],menuData:[{menuDataChanged:0}],sidebarMenuItemAppearance:[{sidebarMenuItemAppearanceChanged:0}],sidebarMenuItemSelectionAppearance:[{sidebarMenuItemSelectionAppearanceChanged:0}],selectedMenuItemSectionId:[{selectedMenuItemSectionIdChanged:0}],selectedMenuItemId:[{selectedMenuItemIdChanged:0}]}]);function Nn(){typeof customElements<"u"&&["gids-sidebar-item","gids-flyout-panel","gids-sidebar-menu"].forEach((e=>{switch(e){case"gids-sidebar-item":customElements.get(e)||customElements.define(e,Ui);break;case"gids-flyout-panel":customElements.get(e)||Ge();break;case"gids-sidebar-menu":customElements.get(e)||St()}}))}Nn();const{getGidsSidebarClassNames:Yi}=Cs,Dn=De(class extends ye{constructor(e){super(),e!==!1&&this.__registerHost(),this.id="sidebar",this.appearance="default",this.sidebarItemAppearance="subtle",this.sidebarItemSelectionAppearance="default",this.sidebarMenuItemAppearance="subtle",this.sidebarMenuItemSelectionAppearance="default",this.height="intrinsic",this.sectionDividers=!0,this.itemDividers=!1,this.headerDivider=!0,this.menuPlacement="right-end",this.menuConstrainPlacements=["right-end","left-end","left","right","right-start","left-start"],this.listData=[],this.selectedMenuItemSectionIdState=void 0,this.selectedMenuItemIdState=void 0,this.selectedSectionIdState=void 0,this.selectedItemIdState=void 0,this.hasHeaderContent=!1,this.onSidebarItemPress=({event:t,sectionId:n,sectionIndex:s,itemIndex:i})=>{this.selectedSectionIdState=n,this.selectedItemIdState=t?.sidebarItemId??void 0,this.selectedMenuItemSectionIdState=t?.sidebarMenuItemSectionId??void 0,this.selectedMenuItemIdState=t?.sidebarMenuItemId??void 0,this.onSidebarChange&&this.onSidebarChange({...t,originalEvent:t?.originalEvent,sidebarSectionId:n,sidebarSectionIndex:s,sidebarItemIndex:i})},this.hasMenu=t=>{const n=t?.menuData??[];if(n.length<=0)return!1;const s=n[0]?.menuItems??[];return s.length<=0?!1:!!s[0]?.id},this.sidebarMenuItemSelected=({listItem:t,listItemSectionId:n})=>{if(n===this.selectedSectionIdState&&t.id===this.selectedItemIdState){const s=(t?.menuData??[]).find((i=>i?.sectionId===this?.selectedMenuItemSectionIdState));if(s){const i=s?.menuItems??[];return!!(i.length>0&&i.find((o=>o.id===this?.selectedMenuItemIdState)))}return!1}return!1},this.sidebarItemSelected=({listItem:t,listItemSectionId:n})=>this.hasMenu(t)?this.sidebarMenuItemSelected({listItem:t,listItemSectionId:n}):n===this.selectedSectionIdState&&t.id===this.selectedItemIdState,this.renderAccessory=({accessoryType:t,accessory:n,slotName:s})=>{switch(t){case"badge":return w(tn,{...n?.badgeProps,slot:s});case"display-tag":return w(nn,{...n?.displayTagProps,label:n?.displayTagProps?.label??"",color:n?.displayTagProps?.color??"accent-1",slot:s,icon:n?.displayTagProps?.iconName?w(Q,{name:n.displayTagProps.iconName,appearance:n?.displayTagProps?.iconAppearance??"regular",size:n?.displayTagProps?.iconSize??"md",alt:n?.displayTagProps?.iconAlt}):void 0});case"status-tag":return w(Pn,{...n?.statusTagProps,slot:s});case"checkbox":return w(_n,{checked:n?.checkboxProps?.checked,disabled:n?.checkboxProps?.disabled,indeterminate:n?.checkboxProps?.indeterminate,slot:s},n?.checkboxProps?.label);case"radio":return w(Tn,{checked:n?.radioProps?.checked,disabled:n?.radioProps?.disabled,slot:s},n?.radioProps?.label);default:return}},this.renderIcon=t=>t?.name?w(Q,{name:t.name,appearance:t?.appearance??"regular",size:t?.size??"md",alt:t?.alt,slot:"sidebarItemLeadingIcon"}):void 0}idChanged(e){this.id=e}appearanceChanged(e){this.appearance=e}sidebarItemAppearanceChanged(e){this.sidebarItemAppearance=e}sidebarItemSelectionAppearanceChanged(e){this.sidebarItemSelectionAppearance=e}sidebarMenuItemAppearanceChanged(e){this.sidebarMenuItemAppearance=e}sidebarMenuItemSelectionAppearanceChanged(e){this.sidebarMenuItemSelectionAppearance=e}selectedSectionIdChanged(e){this.selectedSectionId=e,this.selectedSectionIdState=e}selectedItemIdChanged(e){this.selectedItemId=e,this.selectedItemIdState=e}selectedMenuItemSectionIdChanged(e){this.selectedMenuItemSectionId=e,this.selectedMenuItemSectionIdState=e}selectedMenuItemIdChanged(e){this.selectedMenuItemId=e,this.selectedMenuItemIdState=e}heightChanged(e){this.height=e}sectionDividersChanged(e){this.sectionDividers=e}itemDividersChanged(e){this.itemDividers=e}menuPlacementChanged(e){this.menuPlacement=e}menuConstrainPlacementsChanged(e){this.menuConstrainPlacements=e}listDataChanged(e){this.listData=e}connectedCallback(){this.selectedMenuItemSectionIdState=this.selectedMenuItemSectionId,this.selectedMenuItemIdState=this.selectedMenuItemId,this.selectedSectionIdState=this.selectedSectionId,this.selectedItemIdState=this.selectedItemId,this.hasHeaderContent=Array.from(this.hostElement.childNodes).some((e=>e.nodeType===Node.ELEMENT_NODE||e.nodeType===Node.TEXT_NODE&&(e.textContent?.trim().length??0)>0))}render(){const e=this.id,t=this?.appearance??"default",n=this?.sidebarItemAppearance??"subtle",s=this?.sidebarItemSelectionAppearance??"default",i=this?.sidebarMenuItemAppearance??"subtle",o=this?.sidebarMenuItemSelectionAppearance??"default",a=this?.height??"intrinsic",r=this?.menuPlacement??"right-end",l=this?.menuConstrainPlacements&&this.menuConstrainPlacements.length>0?this.menuConstrainPlacements:["right-end","left-end","left","right","right-start","left-start"],c=this?.listData??[],u=this?.sectionDividers??!0,d=this?.itemDividers??!1,h=this?.headerDivider??!0,m=this?.selectedMenuItemSectionIdState??void 0,g=this?.selectedMenuItemIdState??void 0,y=this.hasHeaderContent,v=Yi({appearance:t,height:a});return w(Me,{key:"71b93e935f9da8f1748243314eec925f6a66d328",class:v,id:e,"data-appearance":t},y?w("div",{class:"gids-sidebar__header-container"},w("slot",null),y&&h?w(xt,null):void 0):void 0,c.map(((f,p)=>{const b=f?.lisItems??[],x=f?.listSectionLabel,I=f?.listSectionId;return w("div",{key:`${p+1}-${I}`,class:"gids-sidebar__list-section-container"},x?w("h4",null,x):void 0,b.map(((S,C)=>{const k=`${C+1}-${p+1}-${S.id}`,{leadingAccessoryType:A,leadingAccessory:P,trailingAccessoryType:V,trailingAccessory:$,leadingIconProps:G,..._}=S;return w("div",{class:"gids-sidebar__item-container"},w("gids-sidebar-item",{..._,key:k,id:S.id,appearance:n,selectionAppearance:s,sidebarMenuItemAppearance:i,sidebarMenuItemSelectionAppearance:o,menuPlacement:r,menuConstrainPlacements:l,menuData:S?.menuData??[],menuId:S?.menuId,leadingLabel:S?.leadingLabel,leadingSupportingText:S?.leadingSupportingText,trailingLabel:S?.trailingLabel,trailingSupportingText:S?.trailingSupportingText,disabled:S?.disabled,selectedMenuItemSectionId:m,selectedMenuItemId:g,selected:this.sidebarItemSelected({listItem:S,listItemSectionId:I}),onPressSidebarItem:X=>this.onSidebarItemPress({event:X,sectionId:I,sectionIndex:p,itemIndex:C})},this.renderAccessory({accessoryType:A,accessory:P,slotName:"sidebarItemLeadingAccessory"}),this.renderIcon(G),this.renderAccessory({accessoryType:V,accessory:$,slotName:"sidebarItemTrailingAccessory"})),d&&C<b.length-1?w(xt,null):void 0)})),u&&p<c.length-1?w("div",{class:"gids-sidebar__section-divider-container"},w(xt,null)):void 0)})))}get hostElement(){return this}static get watchers(){return{id:[{idChanged:0}],appearance:[{appearanceChanged:0}],sidebarItemAppearance:[{sidebarItemAppearanceChanged:0}],sidebarItemSelectionAppearance:[{sidebarItemSelectionAppearanceChanged:0}],sidebarMenuItemAppearance:[{sidebarMenuItemAppearanceChanged:0}],sidebarMenuItemSelectionAppearance:[{sidebarMenuItemSelectionAppearanceChanged:0}],selectedSectionId:[{selectedSectionIdChanged:0}],selectedItemId:[{selectedItemIdChanged:0}],selectedMenuItemSectionId:[{selectedMenuItemSectionIdChanged:0}],selectedMenuItemId:[{selectedMenuItemIdChanged:0}],height:[{heightChanged:0}],sectionDividers:[{sectionDividersChanged:0}],itemDividers:[{itemDividersChanged:0}],menuPlacement:[{menuPlacementChanged:0}],menuConstrainPlacements:[{menuConstrainPlacementsChanged:0}],listData:[{listDataChanged:0}]}}static get style(){return".gids-sidebar{display:flex;flex-direction:column;gap:var(--gids-gap-300);padding:var(--gids-padding-vertical-edge-to-element-250) var(--gids-padding-horizontal-edge-to-element-300);background-color:var(--gids-color-background-canvas);border-radius:var(--gids-border-radius-lg);border:var(--gids-border-width-thin) solid var(--gids-color-border-default)}.gids-sidebar__header-container{display:flex;flex-direction:column;width:100%;gap:var(--gids-gap-400)}.gids-sidebar__list-section-container{display:flex;flex-direction:column;gap:var(--gids-gap-150)}.gids-sidebar__list-section-container h4{margin:0;color:var(--gids-color-text-subtlest)}.gids-sidebar__item-container{display:flex;flex-direction:column;width:100%;gap:var(--gids-gap-200)}.gids-sidebar__section-divider-container{display:flex;flex-direction:column;width:100%;padding:var(--gids-padding-vertical-edge-to-element-250) 0}.gids-sidebar--appearance-subtle{background-color:transparent}.gids-sidebar--appearance-primary{background-color:var(--gids-color-background-brand-subtlest-default)}.gids-sidebar--height-full{height:100vh !important;overflow-x:hidden;overflow-y:auto}"}},[260,"gids-sidebar",{id:[1],appearance:[1],sidebarItemAppearance:[1,"sidebar-item-appearance"],sidebarItemSelectionAppearance:[1,"sidebar-item-selection-appearance"],sidebarMenuItemAppearance:[1,"sidebar-menu-item-appearance"],sidebarMenuItemSelectionAppearance:[1,"sidebar-menu-item-selection-appearance"],selectedSectionId:[1,"selected-section-id"],selectedItemId:[1,"selected-item-id"],selectedMenuItemId:[1,"selected-menu-item-id"],selectedMenuItemSectionId:[1,"selected-menu-item-section-id"],height:[1],sectionDividers:[4,"section-dividers"],itemDividers:[4,"item-dividers"],headerDivider:[4,"header-divider"],menuPlacement:[1,"menu-placement"],menuConstrainPlacements:[16],listData:[16],onSidebarChange:[16],selectedMenuItemSectionIdState:[32],selectedMenuItemIdState:[32],selectedSectionIdState:[32],selectedItemIdState:[32],hasHeaderContent:[32]},void 0,{id:[{idChanged:0}],appearance:[{appearanceChanged:0}],sidebarItemAppearance:[{sidebarItemAppearanceChanged:0}],sidebarItemSelectionAppearance:[{sidebarItemSelectionAppearanceChanged:0}],sidebarMenuItemAppearance:[{sidebarMenuItemAppearanceChanged:0}],sidebarMenuItemSelectionAppearance:[{sidebarMenuItemSelectionAppearanceChanged:0}],selectedSectionId:[{selectedSectionIdChanged:0}],selectedItemId:[{selectedItemIdChanged:0}],selectedMenuItemSectionId:[{selectedMenuItemSectionIdChanged:0}],selectedMenuItemId:[{selectedMenuItemIdChanged:0}],height:[{heightChanged:0}],sectionDividers:[{sectionDividersChanged:0}],itemDividers:[{itemDividersChanged:0}],menuPlacement:[{menuPlacementChanged:0}],menuConstrainPlacements:[{menuConstrainPlacementsChanged:0}],listData:[{listDataChanged:0}]}]);function $n(){typeof customElements<"u"&&["gids-sidebar","gids-flyout-panel","gids-sidebar-item","gids-sidebar-menu"].forEach((e=>{switch(e){case"gids-sidebar":customElements.get(e)||customElements.define(e,Dn);break;case"gids-flyout-panel":customElements.get(e)||Ge();break;case"gids-sidebar-item":customElements.get(e)||Nn();break;case"gids-sidebar-menu":customElements.get(e)||St()}}))}$n();const Ki=Dn,Xi=$n;ie.GidsSidebar=Ki,ie.defineCustomElement=Xi,Object.defineProperty(ie,Symbol.toStringTag,{value:"Module"})}));
|