@ganpatiinfo/gids-core-web 19.0.0 → 21.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.
Files changed (232) hide show
  1. package/dist/css/index.css +607 -59
  2. package/dist/css/index.css.map +1 -1
  3. package/dist/gids-action-bar.js +1 -1
  4. package/dist/gids-activity-gauge.js +1 -1
  5. package/dist/gids-advanced-tooltip.js +1 -1
  6. package/dist/gids-bar-chart.js +1 -1
  7. package/dist/gids-bento-card.js +1 -1
  8. package/dist/gids-calendar-header-panel.js +1 -1
  9. package/dist/gids-calendar-month-list.js +1 -1
  10. package/dist/gids-calendar-year-list.js +1 -1
  11. package/dist/gids-calendar.js +1 -1
  12. package/dist/gids-chart-legend-item.js +1 -1
  13. package/dist/gids-chart-legend.js +1 -1
  14. package/dist/gids-chart.js +1 -1
  15. package/dist/gids-chevron-button.js +1 -1
  16. package/dist/gids-dot.js +1 -1
  17. package/dist/gids-dropdown-field.js +1 -1
  18. package/dist/gids-dropdown-picker.js +1 -1
  19. package/dist/gids-dropdown.js +1 -1
  20. package/dist/gids-expansion-body-list-item.js +1 -1
  21. package/dist/gids-expansion-body-list.js +1 -1
  22. package/dist/gids-expansion-group.js +1 -1
  23. package/dist/gids-expansion.js +1 -1
  24. package/dist/gids-field.js +1 -1
  25. package/dist/gids-filter.js +1 -1
  26. package/dist/gids-flyout-panel.js +1 -1
  27. package/dist/gids-form.d.ts +11 -0
  28. package/dist/gids-form.js +1 -0
  29. package/dist/gids-header-navigation-item.js +1 -1
  30. package/dist/gids-header-navigation.js +1 -1
  31. package/dist/gids-icon.js +1 -1
  32. package/dist/gids-input.js +1 -1
  33. package/dist/gids-line-chart.js +1 -1
  34. package/dist/gids-md-table.js +1 -1
  35. package/dist/gids-overflow-container.js +1 -1
  36. package/dist/gids-overlay-provider.js +1 -1
  37. package/dist/gids-password-field.js +1 -1
  38. package/dist/gids-pie-chart.js +1 -1
  39. package/dist/gids-popover.js +1 -1
  40. package/dist/gids-profile-menu-header.js +1 -1
  41. package/dist/gids-profile-menu.js +1 -1
  42. package/dist/gids-profile.js +1 -1
  43. package/dist/gids-scrim.js +1 -1
  44. package/dist/gids-sidebar-item.d.ts +11 -0
  45. package/dist/gids-sidebar-item.js +1 -0
  46. package/dist/gids-sidebar-menu.d.ts +11 -0
  47. package/dist/gids-sidebar-menu.js +1 -0
  48. package/dist/gids-sidebar.d.ts +11 -0
  49. package/dist/gids-sidebar.js +1 -0
  50. package/dist/gids-skeleton.js +1 -1
  51. package/dist/gids-tab-item.js +1 -1
  52. package/dist/gids-tab.js +1 -1
  53. package/dist/gids-text-field.js +1 -1
  54. package/dist/gids-toggle-button.js +1 -1
  55. package/dist/gids-tooltip.js +1 -1
  56. package/dist/gids-transfer-list.js +1 -1
  57. package/dist/p--kh67-_Z.js +1 -0
  58. package/dist/{p-DrDadv7P.js → p-B2flLE0s.js} +1 -1
  59. package/dist/{p-jGho9nbS.js → p-BAqWcL0K.js} +1 -1
  60. package/dist/p-BCbovLBE.js +1 -0
  61. package/dist/{p-PcSMc4jQ.js → p-BIxBMTG9.js} +1 -1
  62. package/dist/{p-DgKrPmDn.js → p-BQT5yy5L.js} +1 -1
  63. package/dist/p-BRNvHMdK.js +1 -0
  64. package/dist/{p-CBiu-Vh3.js → p-B_FEFM5I.js} +1 -1
  65. package/dist/{p-Dw_kb9MC.js → p-B_St7yaX.js} +1 -1
  66. package/dist/{p-D0coZTd2.js → p-CAjDiWIc.js} +1 -1
  67. package/dist/{p-DYjV5XrH.js → p-CIjK3iHM.js} +1 -1
  68. package/dist/p-CV1-78HB.js +1 -0
  69. package/dist/{p-BdsUwTgh.js → p-D0RJMGGj.js} +1 -1
  70. package/dist/{p-CH4nrjpL.js → p-DKSnGphd.js} +1 -1
  71. package/dist/{p-CIxuyUAl.js → p-DLRj-mUX.js} +1 -1
  72. package/dist/{p-DKOr5iAk.js → p-DMxvWIj1.js} +1 -1
  73. package/dist/p-DQQhGF5N.js +1 -0
  74. package/dist/p-DZ1ZcTMe.js +1 -0
  75. package/dist/{p-BthkC6NU.js → p-DnRuhvRw.js} +1 -1
  76. package/dist/p-DpvdbdZ-.js +1 -0
  77. package/dist/{p-DZ6xQXis.js → p-DrxfD2yZ.js} +1 -1
  78. package/dist/{p-C6GHG170.js → p-Ds5IzXj3.js} +1 -1
  79. package/dist/{p-j2_DKwBz.js → p-DzOOjiNH.js} +1 -1
  80. package/dist/{p-Cacy0Dji.js → p-E13ycS5K.js} +1 -1
  81. package/dist/{p-Cz9nwmgK.js → p-TfH966_e.js} +1 -1
  82. package/dist/{p-CMW3SjbP.js → p-_W77iniK.js} +1 -1
  83. package/dist/p-bfWlRsx_.js +1 -0
  84. package/dist/p-kWyyLyT3.js +1 -0
  85. package/dist/{p-CrqHKmjy.js → p-mv_7K1EM.js} +1 -1
  86. package/dist/{p-xbqOQZl9.js → p-tEbUT3n3.js} +1 -1
  87. package/dist/types/components/html/GidsSidebarMenuItem/GidsSidebarMenuItem.d.ts +6 -0
  88. package/dist/types/components/shared/GidsFloatingElementManager.d.ts +1 -1
  89. package/dist/types/components/webComponents/GidsFlyoutPanel/GidsFlyoutPanel.d.ts +4 -0
  90. package/dist/types/components/webComponents/GidsForm/GidsForm.d.ts +32 -0
  91. package/dist/types/components/webComponents/GidsProfileMenuHeader/GidsProfileMenuHeader.d.ts +2 -0
  92. package/dist/types/components/webComponents/GidsSidebar/GidsSidebar.d.ts +55 -0
  93. package/dist/types/components/webComponents/GidsSidebarItem/GidsSidebarItem.d.ts +56 -0
  94. package/dist/types/components/webComponents/GidsSidebarMenu/GidsSidebarMenu.d.ts +38 -0
  95. package/dist/types/components.d.ts +462 -2
  96. package/dist-bundled/es/gids-action-bar.js +6 -6
  97. package/dist-bundled/es/gids-activity-gauge.js +3 -3
  98. package/dist-bundled/es/gids-advanced-tooltip.js +1 -1
  99. package/dist-bundled/es/gids-bar-chart.js +3 -3
  100. package/dist-bundled/es/gids-bento-card.js +1 -1
  101. package/dist-bundled/es/gids-calendar-header-panel.js +3 -3
  102. package/dist-bundled/es/gids-calendar-month-list.js +3 -3
  103. package/dist-bundled/es/gids-calendar-year-list.js +1 -1
  104. package/dist-bundled/es/gids-calendar.js +23 -23
  105. package/dist-bundled/es/gids-chart-legend-item.js +3 -3
  106. package/dist-bundled/es/gids-chart-legend.js +4 -4
  107. package/dist-bundled/es/gids-chart.js +21 -21
  108. package/dist-bundled/es/gids-chevron-button.js +3 -3
  109. package/dist-bundled/es/gids-dot.js +1 -1
  110. package/dist-bundled/es/gids-dropdown-field.js +4 -4
  111. package/dist-bundled/es/gids-dropdown-picker.js +4 -4
  112. package/dist-bundled/es/gids-dropdown.js +3 -3
  113. package/dist-bundled/es/gids-expansion-body-list-item.js +3 -3
  114. package/dist-bundled/es/gids-expansion-body-list.js +2 -2
  115. package/dist-bundled/es/gids-expansion-group.js +4 -4
  116. package/dist-bundled/es/gids-expansion.js +6 -6
  117. package/dist-bundled/es/gids-field.js +3 -3
  118. package/dist-bundled/es/gids-filter.js +1 -1
  119. package/dist-bundled/es/gids-flyout-panel.js +4 -108
  120. package/dist-bundled/es/gids-form.js +92 -0
  121. package/dist-bundled/es/gids-header-navigation-item.js +3 -3
  122. package/dist-bundled/es/gids-header-navigation.js +3 -3
  123. package/dist-bundled/es/gids-icon.js +3 -3
  124. package/dist-bundled/es/gids-input.js +1 -1
  125. package/dist-bundled/es/gids-line-chart.js +1 -1
  126. package/dist-bundled/es/gids-md-table.js +53 -53
  127. package/dist-bundled/es/gids-overflow-container.js +4 -4
  128. package/dist-bundled/es/gids-overlay-provider.js +1 -1
  129. package/dist-bundled/es/gids-password-field.js +10 -10
  130. package/dist-bundled/es/gids-pie-chart.js +4 -4
  131. package/dist-bundled/es/gids-popover.js +1 -1
  132. package/dist-bundled/es/gids-profile-menu-header.js +1 -1
  133. package/dist-bundled/es/gids-profile-menu.js +4 -4
  134. package/dist-bundled/es/gids-profile.js +12 -12
  135. package/dist-bundled/es/gids-scrim.js +1 -1
  136. package/dist-bundled/es/gids-sidebar-item.js +6 -0
  137. package/dist-bundled/es/gids-sidebar-menu.js +6 -0
  138. package/dist-bundled/es/gids-sidebar.js +150 -0
  139. package/dist-bundled/es/gids-skeleton.js +1 -1
  140. package/dist-bundled/es/gids-tab-item.js +13 -13
  141. package/dist-bundled/es/gids-tab.js +7 -7
  142. package/dist-bundled/es/gids-text-field.js +3 -3
  143. package/dist-bundled/es/gids-toggle-button.js +1 -1
  144. package/dist-bundled/es/gids-tooltip.js +4 -4
  145. package/dist-bundled/es/gids-transfer-list.js +25 -26
  146. package/dist-bundled/es/{p-Cf3Ny79u-VGT_IyGI.js → p--kh67-_Z-BBhYy4ZX.js} +12 -11
  147. package/dist-bundled/es/{p-DrDadv7P-D4rbSYTr.js → p-B2flLE0s-UXdlvRVr.js} +2 -2
  148. package/dist-bundled/es/{p-jGho9nbS-BDiBvsn2.js → p-BAqWcL0K-DRjKDzoa.js} +8 -8
  149. package/dist-bundled/es/p-BCbovLBE-DfkhIEts.js +102 -0
  150. package/dist-bundled/es/{p-PcSMc4jQ-CzYLaIZr.js → p-BIxBMTG9-Bs6G0Wvv.js} +12 -12
  151. package/dist-bundled/es/{p-DgKrPmDn-C2CSKicX.js → p-BQT5yy5L-DhdgFXTM.js} +3 -3
  152. package/dist-bundled/es/p-BRNvHMdK-CqGtfAsn.js +11 -0
  153. package/dist-bundled/es/{p-CBiu-Vh3-r-McGzCb.js → p-B_FEFM5I-WvEFe7I_.js} +5 -5
  154. package/dist-bundled/es/{p-Dw_kb9MC-BTd0lrGA.js → p-B_St7yaX-Dq9UwiaA.js} +3 -3
  155. package/dist-bundled/es/{p-D0coZTd2-KhJZ57gK.js → p-CAjDiWIc-BieYBjHk.js} +1 -1
  156. package/dist-bundled/es/{p-DYjV5XrH-CI9LfBFx.js → p-CIjK3iHM-DEW8PRM5.js} +7 -7
  157. package/dist-bundled/es/{p-KQxuw_F--BTSoDfF9.js → p-CV1-78HB-DGkn3SPO.js} +18 -23
  158. package/dist-bundled/es/{p-BdsUwTgh-Cc7AQBsx.js → p-D0RJMGGj-DSjGfUhB.js} +3 -3
  159. package/dist-bundled/es/{p-CH4nrjpL-CrEJXTn0.js → p-DKSnGphd-EpxzqjUA.js} +7 -7
  160. package/dist-bundled/es/{p-CIxuyUAl-B2DxRM64.js → p-DLRj-mUX-B_ACFGx6.js} +6 -6
  161. package/dist-bundled/es/{p-DKOr5iAk-DA3Kc4Cn.js → p-DMxvWIj1-DPw-ITMY.js} +11 -11
  162. package/dist-bundled/es/{p-GcC8pCKF-CZJFTFeN.js → p-DQQhGF5N-mCqb5VTE.js} +8 -8
  163. package/dist-bundled/es/p-DZ1ZcTMe-tnPOECry.js +10 -0
  164. package/dist-bundled/es/{p-BthkC6NU-F03MhDw7.js → p-DnRuhvRw-Beh0bANh.js} +2 -2
  165. package/dist-bundled/es/p-DpvdbdZ--C7QlXxK2.js +118 -0
  166. package/dist-bundled/es/{p-DZ6xQXis-XT86MMis.js → p-DrxfD2yZ-Juydw__6.js} +9 -9
  167. package/dist-bundled/es/{p-C6GHG170-Di8lwQkY.js → p-Ds5IzXj3-BC_F0-JJ.js} +13 -13
  168. package/dist-bundled/es/{p-j2_DKwBz-CqyuxxnN.js → p-DzOOjiNH-Wm7KbI3O.js} +5 -5
  169. package/dist-bundled/es/{p-Cacy0Dji-D-D254kT.js → p-E13ycS5K-D-yK6pqz.js} +1 -1
  170. package/dist-bundled/es/{p-Cz9nwmgK-BO8HUAvD.js → p-TfH966_e-tyxLyzL3.js} +7 -7
  171. package/dist-bundled/es/{p-CMW3SjbP-ZYYIF_i6.js → p-_W77iniK-DZ9pVDuI.js} +2 -2
  172. package/dist-bundled/es/p-bfWlRsx_-B9hzkHIt.js +110 -0
  173. package/dist-bundled/es/p-kWyyLyT3-DhHcKhR9.js +267 -0
  174. package/dist-bundled/es/{p-CrqHKmjy-DwSsCofb.js → p-mv_7K1EM-lPgJqpPI.js} +1 -1
  175. package/dist-bundled/es/{p-xbqOQZl9-BK9vjfj7.js → p-tEbUT3n3-CWq8ErgN.js} +10 -10
  176. package/dist-bundled/umd/gids-action-bar.umd.js +3 -3
  177. package/dist-bundled/umd/gids-activity-gauge.umd.js +2 -2
  178. package/dist-bundled/umd/gids-advanced-tooltip.umd.js +2 -2
  179. package/dist-bundled/umd/gids-bar-chart.umd.js +1 -1
  180. package/dist-bundled/umd/gids-bento-card.umd.js +2 -2
  181. package/dist-bundled/umd/gids-calendar-header-panel.umd.js +1 -1
  182. package/dist-bundled/umd/gids-calendar-month-list.umd.js +2 -2
  183. package/dist-bundled/umd/gids-calendar-year-list.umd.js +2 -2
  184. package/dist-bundled/umd/gids-calendar.umd.js +1 -1
  185. package/dist-bundled/umd/gids-chart-legend-item.umd.js +1 -1
  186. package/dist-bundled/umd/gids-chart-legend.umd.js +1 -1
  187. package/dist-bundled/umd/gids-chart.umd.js +1 -1
  188. package/dist-bundled/umd/gids-chevron-button.umd.js +1 -1
  189. package/dist-bundled/umd/gids-dot.umd.js +1 -1
  190. package/dist-bundled/umd/gids-dropdown-field.umd.js +1 -1
  191. package/dist-bundled/umd/gids-dropdown-picker.umd.js +1 -1
  192. package/dist-bundled/umd/gids-dropdown.umd.js +1 -1
  193. package/dist-bundled/umd/gids-expansion-body-list-item.umd.js +1 -1
  194. package/dist-bundled/umd/gids-expansion-body-list.umd.js +1 -1
  195. package/dist-bundled/umd/gids-expansion-group.umd.js +2 -2
  196. package/dist-bundled/umd/gids-expansion.umd.js +1 -1
  197. package/dist-bundled/umd/gids-field.umd.js +2 -2
  198. package/dist-bundled/umd/gids-filter.umd.js +3 -3
  199. package/dist-bundled/umd/gids-flyout-panel.umd.js +2 -2
  200. package/dist-bundled/umd/gids-form.umd.js +5 -0
  201. package/dist-bundled/umd/gids-header-navigation-item.umd.js +2 -2
  202. package/dist-bundled/umd/gids-header-navigation.umd.js +1 -1
  203. package/dist-bundled/umd/gids-icon.umd.js +1 -1
  204. package/dist-bundled/umd/gids-input.umd.js +2 -2
  205. package/dist-bundled/umd/gids-line-chart.umd.js +1 -1
  206. package/dist-bundled/umd/gids-md-table.umd.js +1 -1
  207. package/dist-bundled/umd/gids-overflow-container.umd.js +1 -1
  208. package/dist-bundled/umd/gids-overlay-provider.umd.js +1 -1
  209. package/dist-bundled/umd/gids-password-field.umd.js +1 -1
  210. package/dist-bundled/umd/gids-pie-chart.umd.js +1 -1
  211. package/dist-bundled/umd/gids-popover.umd.js +1 -1
  212. package/dist-bundled/umd/gids-profile-menu-header.umd.js +2 -2
  213. package/dist-bundled/umd/gids-profile-menu.umd.js +2 -2
  214. package/dist-bundled/umd/gids-profile.umd.js +2 -2
  215. package/dist-bundled/umd/gids-scrim.umd.js +1 -1
  216. package/dist-bundled/umd/gids-sidebar-item.umd.js +5 -0
  217. package/dist-bundled/umd/gids-sidebar-menu.umd.js +5 -0
  218. package/dist-bundled/umd/gids-sidebar.umd.js +5 -0
  219. package/dist-bundled/umd/gids-skeleton.umd.js +1 -1
  220. package/dist-bundled/umd/gids-tab-item.umd.js +1 -1
  221. package/dist-bundled/umd/gids-tab.umd.js +1 -1
  222. package/dist-bundled/umd/gids-text-field.umd.js +2 -2
  223. package/dist-bundled/umd/gids-toggle-button.umd.js +2 -2
  224. package/dist-bundled/umd/gids-tooltip.umd.js +2 -2
  225. package/dist-bundled/umd/gids-transfer-list.umd.js +2 -2
  226. package/dist-bundled/umd-complete/gids-core-web.umd.js +4 -4
  227. package/package.json +36 -4
  228. package/dist/p-B0hLXifA.js +0 -1
  229. package/dist/p-Cf3Ny79u.js +0 -1
  230. package/dist/p-GcC8pCKF.js +0 -1
  231. package/dist/p-KQxuw_F-.js +0 -1
  232. package/dist-bundled/es/p-B0hLXifA-CoImnX3T.js +0 -99
@@ -0,0 +1,5 @@
1
+ (function(se,de){typeof exports=="object"&&typeof module<"u"?de(exports):typeof define=="function"&&define.amd?define(["exports"],de):(se=typeof globalThis<"u"?globalThis:se||self,de(se.gidsCoreWebGidsSidebar={}))})(this,(function(se){"use strict";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,Ln=(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(l){a.set.call(this,l)},configurable:!0,enumerable:!0}),t.l.has(s)?e[s]=t.l.get(s):o!==void 0&&(e[s]=o)}}))},B=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},Et=(e,t)=>t in e,ie=(e,t)=>(0,console.error)(e,t),Me=new Map,Mt="http://www.w3.org/1999/xlink",Fn=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"],M=typeof window<"u"?window:{},ye=M.HTMLElement||class{},P={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)},jn=(()=>{var e;let t=!1;try{(e=M.document)==null||e.addEventListener("e",null,Object.defineProperty({},"passive",{get(){t=!0}}))}catch{}return t})(),Be=(()=>{try{return!!M.document.adoptedStyleSheets&&(new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function")}catch{}return!1})(),qe=!!Be&&!!M.document&&Object.getOwnPropertyDescriptor(M.document.adoptedStyleSheets,"length").writable,Ue=!1,At=[],Pt=[],zn=(e,t)=>n=>{e.push(n),Ue||(Ue=!0,4&P.i?Ke(Ye):P.raf(Ye))},_t=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(n){ie(n)}e.length=0},Ye=()=>{_t(At),_t(Pt),(Ue=At.length>0)&&P.raf(Ye)},Ke=e=>Promise.resolve(void 0).then(e),Wn=zn(Pt);function Gn(){const e=this.attachShadow({mode:"open"});be===void 0&&(be=null),be&&(qe?e.adoptedStyleSheets.push(be):e.adoptedStyleSheets=[...e.adoptedStyleSheets,be])}var Tt=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=!!Vn(s,ve(s),!1).length)}));let n=0;for(n=0;n<t.length;n++){const s=t[n];s.nodeType===1&&Ze(s,"childNodes").length&&Tt(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||ve(s)===n)&&(o.push(s),n!==void 0))return o;o=[...o,...Xe(s.childNodes,t,n)]}return o}var Vn=(e,t,n=!0)=>{const s=[];(n&&e["s-sr"]||!e["s-sr"])&&s.push(e);let i=e;for(;i=i.nextSibling;)ve(i)!==t||!n&&i["s-sr"]||s.push(i);return s},Ot=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t||t==="",ve=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,oe,Z=new WeakMap,Nt=e=>"sc-"+e.p,Qe=e=>(e=typeof e)=="object"||e==="function",v=(e,t,...n)=>{let s=null,i=null,o=null,a=!1,l=!1;const r=[],d=c=>{for(let h=0;h<c.length;h++)s=c[h],Array.isArray(s)?d(s):s!=null&&typeof s!="boolean"&&((a=typeof e!="function"&&!Qe(s))&&(s=String(s)),a&&l?r[r.length-1].h+=s:r.push(a?Ae(null,s):s),l=a)};if(d(n),t){t.key&&(i=t.key),t.name&&(o=t.name);{const c=t.className||t.class;c&&(t.class=typeof c!="object"?c:Object.keys(c).filter((h=>c[h])).join(" "))}}if(typeof e=="function")return e(t===null?{}:t,r,Hn);const u=Ae(e,null);return u.v=t,r.length>0&&(u.m=r),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}),Pe={},Hn={forEach:(e,t)=>e.map(kt).forEach(t),map:(e,t)=>e.map(kt).map(t).map(Bn)},kt=e=>({vattrs:e.v,vchildren:e.m,vkey:e.$,vname:e.j,vtag:e.O,vtext:e.h}),Bn=e=>{if(typeof e.vtag=="function"){const n={...e.vattrs};return e.vkey&&(n.key=e.vkey),e.vname&&(n.name=e.vname),v(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},Dt=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},$t=(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,qn=(e,t,n)=>{const s=P.ce(t,n);return e.dispatchEvent(s),s},Rt=(e,t,n,s,i,o)=>{if(n===s)return;let a=Et(e,t),l=t.toLowerCase();if(t==="class"){const r=e.classList,d=Lt(n);let u=Lt(s);r.remove(...d.filter((c=>c&&!u.includes(c)))),r.add(...u.filter((c=>c&&!d.includes(c))))}else if(t==="style"){for(const r in n)s&&s[r]!=null||(r.includes("-")?e.style.removeProperty(r):e.style[r]="");for(const r in s)n&&s[r]===n[r]||(r.includes("-")?e.style.setProperty(r,s[r]):e.style[r]=s[r])}else if(t!=="key"){if(t==="ref")s&&Kn(s,e);else if(e.__lookupSetter__(t)||t[0]!=="o"||t[1]!=="n"){if(t[0]==="a"&&t.startsWith("attr:")){const r=t.slice(5);let d;{const u=B(e);if(u&&u.o&&u.o.t){const c=u.o.t[r];c&&c[1]&&(d=c[1])}}return d||(d=r.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(s==null||s===!1?s===!1&&e.getAttribute(d)!==""||e.removeAttribute(d):e.setAttribute(d,s===!0?"":s))}if(t[0]==="p"&&t.startsWith("prop:")){const r=t.slice(5);try{e[r]=s}catch{}return}{const r=Qe(s);if((a||r&&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 d=!1;l!==(l=l.replace(/^xlink\:?/,""))&&(t=l,d=!0),s==null||s===!1?s===!1&&e.getAttribute(t)!==""||(d?e.removeAttributeNS(Mt,t):e.removeAttribute(t)):(!a||4&o||i)&&!r&&e.nodeType===1&&(s=s===!0?"":s,d?e.setAttributeNS(Mt,t,s):e.setAttribute(t,s))}}else if(t=t[2]==="-"?t.slice(3):Et(M,l)?l.slice(2):l[2]+t.slice(3),n||s){const r=t.endsWith(Ft);t=t.replace(Yn,""),n&&P.rel(e,t,n,r),s&&P.ael(e,t,s,r)}}},Un=/\s/,Lt=e=>(typeof e=="object"&&e&&"baseVal"in e&&(e=e.baseVal),e&&typeof e=="string"?e.split(Un):[]),Ft="Capture",Yn=new RegExp(Ft+"$"),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 jt(Object.keys(i)))a in o||Rt(s,a,i[a],void 0,n,t.i);for(const a of jt(Object.keys(o)))Rt(s,a,i[a],o[a],n,t.i)};function jt(e){return e.includes("ref")?[...e.filter((t=>t!=="ref")),"ref"]:e}var Se=!1,_e=!1,Te=!1,O=!1,tt=[],nt=[],Oe=(e,t,n)=>{var s;const i=t.m[n];let o,a,l,r=0;if(Se||(Te=!0,i.O==="slot"&&(i.i|=i.m?2:1)),i.h!=null)o=i.S=M.document.createTextNode(i.h);else if(1&i.i)o=i.S=M.document.createTextNode(""),et(null,i,O);else{if(O||(O=i.O==="svg"),!M.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=M.document.createElementNS(O?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!Se&&2&i.i?"slot-fb":i.O),O&&i.O==="foreignObject"&&(O=!1),et(null,i,O),i.m){const d=i.O==="template"?o.content:o;for(r=0;r<i.m.length;++r)a=Oe(e,i,r),a&&d.appendChild(a)}i.O==="svg"?O=!1:o.tagName==="foreignObject"&&(O=!0)}return o["s-hn"]=oe,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(d){if(d.assignedElements||d.assignedNodes||!d["s-sr"])return;const u=c=>(function(h){const g=[],m=this["s-sn"];h?.flatten&&console.error(`
2
+ Flattening is not supported for Stencil non-shadow slots.
3
+ You can use \`.childNodes\` to nested slot fallback content.
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:(S=>{const f=[];for(let p=0;p<S.length;p++){const b=S[p]["s-nr"]||void 0;b&&b.isConnected&&f.push(b)}return f})(y.childNodes)).forEach((S=>{m===ve(S)&&g.push(S)})),c?g.filter((S=>S.nodeType===1)):g}).bind(d);d.assignedElements=u(!0),d.assignedNodes=u(!1)})(o),l=e&&e.m&&e.m[n],l&&l.O===i.O&&e.S&&zt(e.S)),o},zt=e=>{P.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,Te=!0)}P.i&=-2},Ne=(e,t)=>{P.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(Ie(i).parentNode,i,Ie(i)),i["s-ol"].remove(),i["s-ol"]=void 0,i["s-sh"]=void 0,Te=!0),t&&Ne(i,t)}P.i&=-2},Wt=(e,t,n,s,i,o)=>{let a,l=e["s-cr"]&&e["s-cr"].parentNode||e;for(l.shadowRoot&&l.tagName===oe&&(l=l.shadowRoot),n.O==="template"&&(l=l.content);i<=o;++i)s[i]&&(a=Oe(null,n,i),a&&(s[i].S=a,R(l,a,Ie(t))))},Gt=(e,t,n)=>{for(let s=t;s<=n;++s){const i=e[s];if(i){const o=i.S;Ht(i),o&&(_e=!0,o["s-ol"]?o["s-ol"].remove():Ne(o,!0),o.remove())}}},ke=(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,ce=(e,t,n=!1)=>{const s=t.S=e.S,i=e.m,o=t.m,a=t.O,l=t.h;let r;l==null?(O=a==="svg"||a!=="foreignObject"&&O,a!=="slot"||Se||e.j!==t.j&&(t.S["s-sn"]=t.j||"",zt(t.S.parentElement)),et(e,t,O),i!==null&&o!==null?((d,u,c,h,g=!1)=>{let m,y,S=0,f=0,p=0,b=0,C=u.length-1,I=u[0],w=u[C],x=h.length-1,E=h[0],A=h[x];const _=c.O==="template"?d.content:d;for(;S<=C&&f<=x;)if(I==null)I=u[++S];else if(w==null)w=u[--C];else if(E==null)E=h[++f];else if(A==null)A=h[--x];else if(ke(I,E,g))ce(I,E,g),I=u[++S],E=h[++f];else if(ke(w,A,g))ce(w,A,g),w=u[--C],A=h[--x];else if(ke(I,A,g))I.O!=="slot"&&A.O!=="slot"||Ne(I.S.parentNode,!1),ce(I,A,g),R(_,I.S,w.S.nextSibling),I=u[++S],A=h[--x];else if(ke(w,E,g))I.O!=="slot"&&A.O!=="slot"||Ne(w.S.parentNode,!1),ce(w,E,g),R(_,w.S,I.S),w=u[--C],E=h[++f];else{for(p=-1,b=S;b<=C;++b)if(u[b]&&u[b].$!==null&&u[b].$===E.$){p=b;break}p>=0?(y=u[p],y.O!==E.O?m=Oe(u&&u[f],c,p):(ce(y,E,g),u[p]=void 0,m=y.S),E=h[++f]):(m=Oe(u&&u[f],c,f),E=h[++f]),m&&R(Ie(I.S).parentNode,m,Ie(I.S))}S>C?Wt(d,h[x+1]==null?null:h[x+1].S,c,h,f,x):f>x&&Gt(u,S,C)})(s,i,t,o,n):o!==null?(e.h!==null&&(s.textContent=""),Wt(s,null,t,o,0,o.length-1)):!n&&i!==null&&Gt(i,0,i.length-1),O&&a==="svg"&&(O=!1)):(r=s["s-cr"])?r.parentNode.textContent=l:e.h!==l&&(s.data=l)},q=[],Vt=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(Ot(t,a)){let l=q.find((r=>r.k===t));_e=!0,t["s-sn"]=t["s-sn"]||a,l?(l.k["s-sh"]=o["s-hn"],l.N=o):(t["s-sh"]=o["s-hn"],q.push({N:o,k:t})),t["s-sr"]&&q.map((r=>{Ot(r.k,t["s-sn"])&&(l=q.find((d=>d.k===t)),l&&!r.N&&(r.N=l.N))}))}else q.some((l=>l.k===t))||q.push({k:t})}o.nodeType===1&&Vt(o)}},Ht=e=>{e.v&&e.v.ref&&tt.push((()=>e.v.ref(null))),e.m&&e.m.map(Ht)},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 l;if(!(a=a||((l=o["s-ol"])==null?void 0:l.parentElement)))return{slotNode:null,slotName:""};const r=o["s-sn"]=ve(o)||"";return{slotNode:Xe(Ze(a,"childNodes"),a.tagName,r)[0],slotName:r}})(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,l;const r=e.$hostElement$,d=e.o,u=e.M||Ae(null,null);var c;const h=(c=t)&&c.O===Pe?t:v(null,null,t);if(oe=r.tagName,d.C&&(h.v=h.v||{},d.C.forEach((([g,m])=>{h.v[m]=r[g]}))),n&&h.v)for(const g of Object.keys(h.v))r.hasAttribute(g)&&!["key","ref","style","class"].includes(g)&&(h.v[g]=r[g]);if(h.O=null,h.i|=4,e.M=h,h.S=u.S=r.shadowRoot||r,Se=!(!(1&d.i)||128&d.i),Je=r["s-cr"],_e=!1,ce(u,h,n),P.i|=1,Te){Vt(h.S);for(const g of q){const m=g.k;if(!m["s-ol"]&&M.document){const y=M.document.createTextNode("");y["s-nr"]=m,R(m.parentNode,m["s-ol"]=y,m,n)}}for(const g of q){const m=g.k,y=g.N;if(m.nodeType===1&&n&&(m["s-ih"]=(s=m.hidden)!=null&&s),y){const S=y.parentNode;let f=y.nextSibling;if(f&&f.nodeType===1){let p=(i=m["s-ol"])==null?void 0:i.previousSibling;for(;p;){let b=(o=p["s-nr"])!=null?o:null;if(b&&b["s-sn"]===m["s-sn"]&&S===(b.__parentNode||b.parentNode)){for(b=b.nextSibling;b===m||b?.["s-sr"];)b=b?.nextSibling;if(!b||!b["s-nr"]){f=b;break}}p=p.previousSibling}}if((!f&&S!==(m.__parentNode||m.parentNode)||(m.__nextSibling||m.nextSibling)!==f)&&m!==f){if(R(S,m,f,n),m.nodeType===8&&m.nodeValue.startsWith("s-nt-")){const p=M.document.createTextNode(m.nodeValue.replace(/^s-nt-/,""));p["s-hn"]=m["s-hn"],p["s-sn"]=m["s-sn"],p["s-sh"]=m["s-sh"],p["s-sr"]=m["s-sr"],p["s-ol"]=m["s-ol"],p["s-ol"]["s-nr"]=p,R(m.parentNode,p,m,n),m.parentNode.removeChild(m)}m.nodeType===1&&m.tagName!=="SLOT-FB"&&(m.hidden=(a=m["s-ih"])!=null&&a)}m&&typeof y["s-rf"]=="function"&&y["s-rf"](y)}else m.nodeType===1&&(m.hidden=!0)}}if(_e&&Tt(h.S),P.i&=-2,q.length=0,!Se&&!(1&d.i)&&r["s-cr"]){const g=h.S.__childNodes||h.S.childNodes;for(const m of g)if(m["s-hn"]!==oe&&!m["s-sh"]){if(n&&m["s-ih"]==null&&(m["s-ih"]=(l=m.hidden)!=null&&l),m.nodeType===1)m.hidden=!0;else if(m.nodeType===3&&m.nodeValue.trim()){const y=M.document.createComment("s-nt-"+m.nodeValue);y["s-sn"]=m["s-sn"],R(m.parentNode,y,m,n),m.parentNode.removeChild(m)}}}Je=void 0,tt.forEach((g=>g())),tt.length=0,nt.forEach((g=>g())),nt.length=0},Bt=(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);Bt(e,e.R);const n=()=>Zn(e,t);if(!t)return Wn(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=we(s,t?"componentWillLoad":"componentWillUpdate",void 0,n),i=qt(i,(()=>we(s,"componentWillRender",void 0,n))),qt(i,(()=>Qn(e,s,t)))},qt=(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 l=a.o,r=a.$hostElement$,d=l.i,u=((c,h)=>{var g,m,y;const S=Nt(h),f=Me.get(S);if(!M.document)return S;if(c=c.nodeType===11?c:M.document,f)if(typeof f=="string"){let p,b=Z.get(c=c.head||c);if(b||Z.set(c,b=new Set),!b.has(S)){p=M.document.createElement("style"),p.textContent=f;const C=(g=P._)!=null?g:(function(){var I,w,x;return(x=(w=(I=M.document.head)==null?void 0:I.querySelector('meta[name="csp-nonce"]'))==null?void 0:w.getAttribute("content"))!=null?x:void 0})();if(C!=null&&p.setAttribute("nonce",C),!(1&h.i))if(c.nodeName==="HEAD"){const I=c.querySelectorAll("link[rel=preconnect]"),w=I.length>0?I[I.length-1].nextSibling:c.querySelector("style");c.insertBefore(p,w?.parentNode===c?w:null)}else if("host"in c)if(Be){const I=new((m=c.defaultView)!=null?m:c.ownerDocument.defaultView).CSSStyleSheet;I.replaceSync(f),qe?c.adoptedStyleSheets.unshift(I):c.adoptedStyleSheets=[I,...c.adoptedStyleSheets]}else{const I=c.querySelector("style");I?I.textContent=f+I.textContent:c.prepend(p)}else c.append(p);1&h.i&&c.insertBefore(p,null),4&h.i&&(p.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),b&&b.add(S)}}else{let p=Z.get(c);if(p||Z.set(c,p=new Set),!p.has(S)){const b=(y=c.defaultView)!=null?y:c.ownerDocument.defaultView;let C;if(f.constructor===b.CSSStyleSheet)C=f;else{C=new b.CSSStyleSheet;for(let I=0;I<f.cssRules.length;I++)C.insertRule(f.cssRules[I].cssText,I)}qe?c.adoptedStyleSheets.push(C):c.adoptedStyleSheets=[...c.adoptedStyleSheets,C],p.add(S)}}return S})(r.shadowRoot?r.shadowRoot:r.getRootNode(),l);10&d&&(r["s-sc"]=u,r.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:[],l=()=>ts(e);a.length===0?l():(Promise.all(a).then(l).catch(l),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;we(n,"componentDidRender",void 0,t),64&e.i?we(n,"componentDidUpdate",void 0,t):(e.i|=64,ss(t),we(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((()=>qn(M,"appload",{detail:{namespace:"gids-core-web"}})))},we=(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=B(e);if(!i)return;const o=e,a=i.l.get(t),l=i.i,r=o;n=$t(n,s.t[t][0],!!(64&s.i));const d=Number.isNaN(a)&&Number.isNaN(n);if(n!==a&&!d){if(i.l.set(t,n),s.F){const u=s.F[t];u&&u.map((c=>{try{const[[h,g]]=Object.entries(c);(128&l||1&g)&&(r?r[h](n,a,t):i.T.push((()=>{i.D[h](n,a,t)})))}catch(h){ie(h,o)}}))}if(2&l){if(r.componentShouldUpdate&&r.componentShouldUpdate(n,a,t)===!1&&!(16&l))return;16&l||st(i,!1)}}},is=(e,t,n)=>{var s,i;const o=e.prototype;64&t.i&&1&n&&Fn.forEach((a=>{const l=o[a];Object.defineProperty(o,a,{value(...r){var d;const u=B(this),c=this;c?typeof l=="function"&&l.call(c,...r):(d=u?.H)==null||d.then((h=>{const g=h[a];typeof g=="function"&&g.call(h,...r)}))}})}));{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((([l,[r]])=>{if(31&r||32&r){const{get:d,set:u}=de(o,l)||{};d&&(t.t[l][0]|=2048),u&&(t.t[l][0]|=4096),Object.defineProperty(o,l,{get(){return d?d.apply(this):(c=l,B(this).l.get(c));var c},configurable:!0,enumerable:!0}),Object.defineProperty(o,l,{set(c){const h=B(this);if(h){if(u)return(32&r?this[l]:h.$hostElement$[l])===void 0&&h.l.get(l)&&(c=h.l.get(l)),u.apply(this,[$t(c,r,!!(64&t.i))]),void Ut(this,l,c=32&r?this[l]:h.$hostElement$[l],t);Ut(this,l,c,t)}}})}}));{const l=new Map;o.attributeChangedCallback=function(r,d,u){P.jmp((()=>{var c;const h=l.get(r),g=B(this);if(this.hasOwnProperty(h),o.hasOwnProperty(h)&&typeof this[h]=="number"&&this[h]==u)return;if(h==null){const p=g?.i;if(g&&p&&!(8&p)&&u!==d){const b=this,C=(c=t.F)==null?void 0:c[r];C?.forEach((I=>{const[[w,x]]=Object.entries(I);b[w]!=null&&(128&p||1&x)&&b[w].call(b,u,d,r)}))}return}const m=a.find((([p])=>p===h)),y=m&&4&m[1][0],S=y&&u===null&&this[h]===void 0;y&&(u=u!==null&&u!=="false");const f=Object.getOwnPropertyDescriptor(o,h);S||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((([r,d])=>31&d[0])).map((([r,d])=>{var u;const c=d[1]||r;return l.set(c,r),512&d[0]&&((u=t.C)==null||u.push([r,c])),c}))]))}}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 l={i:0,$hostElement$:o,o:a,l:new Map,B:new Map};l.H=new Promise((d=>l.L=d)),o["s-p"]=[],o["s-rc"]=[];const r=l;o.__stencil__getHostRef=()=>r,512&a.i&&Ln(o,l)})(this,n)},connectedCallback(){if(!this.__hasHostListenerAttached){const o=B(this);if(!o)return;Yt(this,o,n.W),this.__hasHostListenerAttached=!0}(o=>{if(!(1&P.i)){const a=B(o);if(!a)return;const l=a.o;if(1&a.i)Yt(o,a,l.W),a?.D||a?.H&&a.H.then((()=>{}));else{a.i|=1,12&l.i&&(r=>{if(!M.document)return;const d=r["s-cr"]=M.document.createComment("");d["s-cn"]=!0,R(r,d,r.firstChild)})(o);{let r=o;for(;r=r.parentNode||r.host;)if(r["s-p"]){Bt(a,a.R=r);break}}l.t&&Object.entries(l.t).map((([r,[d]])=>{if(31&d&&Object.prototype.hasOwnProperty.call(o,r)){const u=o[r];delete o[r],o[r]=u}})),(async(r,d,u)=>{let c;try{if(!(32&d.i)&&(d.i|=32,c=r.constructor,customElements.whenDefined(r.localName).then((()=>d.i|=128)),c&&c.style)){let m;typeof c.style=="string"&&(m=c.style);const y=Nt(u);Me.has(y)||((S,f,p)=>{let b=Me.get(S);Be&&p?(b=b||new CSSStyleSheet,typeof b=="string"?b=f:b.replaceSync(f)):b=f,Me.set(S,b)})(y,m,!!(1&u.i))}const h=d.R,g=()=>st(d,!0);h&&h["s-rc"]?h["s-rc"].push(g):g()}catch(h){ie(h,r),d.A&&(d.A(),d.A=void 0),d.L&&d.L(r)}})(o,a,l)}}})(this),s&&s.call(this)},disconnectedCallback(){(async o=>{if(!(1&P.i)){const a=B(o);a?.V&&(a.V.map((l=>l())),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 Gn.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&&M.document&&n.map((([s,i,o])=>{const a=ls(M.document,e,s),l=as(t,o),r=rs(s);P.ael(a,i,l,r),(t.V=t.V||[]).push((()=>P.rel(a,i,l,r)))}))},as=(e,t)=>n=>{try{e.$hostElement$[t](n)}catch(s){ie(s,e.$hostElement$)}},ls=(e,t,n)=>8&n?M:t,rs=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 N(){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,ds=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(".")},cs=/\w/,us=e=>e.replace(cs,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"})),ms=Object.freeze(Object.defineProperty({__proto__:null,getGidsBadgeClassNames:({appearance:e,type:t,outline:n},s)=>N("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=>N("gids-checkbox-control",e)},Symbol.toStringTag,{value:"Module"})),fs=Object.freeze(Object.defineProperty({__proto__:null,getGidsCheckboxClassNames:e=>N("gids-checkbox",e)},Symbol.toStringTag,{value:"Module"})),ps=Object.freeze(Object.defineProperty({__proto__:null,getGidsDisplaTagClassNames:({size:e,appearance:t,color:n},s)=>N("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)=>N("gids-divider",{"gids-divider--vertical":e==="vertical"},t)},Symbol.toStringTag,{value:"Module"})),ys=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>N("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"})),vs=Object.freeze(Object.defineProperty({__proto__:null,getGidsLabelClassNames:({disabled:e},t)=>N("gids-label",{"gids-label--disabled":e},t)},Symbol.toStringTag,{value:"Module"})),Ss=Object.freeze(Object.defineProperty({__proto__:null,getGidsRadioControlClassNames:e=>N("gids-radio-control",e)},Symbol.toStringTag,{value:"Module"})),Is=Object.freeze(Object.defineProperty({__proto__:null,getGidsRadioClassNames:e=>N("gids-radio",e)},Symbol.toStringTag,{value:"Module"})),ws=Object.freeze(Object.defineProperty({__proto__:null,getGidsSidebarItemClassNames:e=>N("gids-sidebar-item",e)},Symbol.toStringTag,{value:"Module"})),Cs=Object.freeze(Object.defineProperty({__proto__:null,getGidsSidebarMenuItemClassNames:({selected:e,appearance:t,selectionAppearance:n},s)=>N("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=>N("gids-sidebar-menu",e)},Symbol.toStringTag,{value:"Module"})),Es=Object.freeze(Object.defineProperty({__proto__:null,getGidsSidebarClassNames:({appearance:e,height:t},n)=>N("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"})),Ms=Object.freeze(Object.defineProperty({__proto__:null,getGidsStatusTagClassNames:({appearance:e,size:t,type:n},s)=>N("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 As 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"),Ps=()=>(globalThis[at]===void 0&&(globalThis[at]={assetPaths:{}}),globalThis[at]),_s=e=>{const t=Ps().assetPaths;return t[e]===void 0&&(t[e]=new As),t[e]};function lt(){return _s("@ganpatiinfo/gids-web-shared")}function Ts(){return lt().haveAssetPathsBeenSet()}function Qt(e){return lt().getAssetFilePath(e)}function Os(e){return lt().onAssetPathsSet(e)}let Ns=0;const rt=(e,t="gids")=>e||`${t}-${Ns++}`,en=e=>e!==void 0&&(!Array.isArray(e)||e.length>0),{getDisplayContent:tn,shouldIncludeA11yText:ks}=ds,{getGidsBadgeClassNames:Ds}=ms,nn=({appearance:e,type:t,count:n,accessibleText:s,outline:i,class:o,...a})=>{const l=ks(t,n,en(s));return v("span",{class:Ds({appearance:e,type:t,outline:i},o),...a},l&&v("span",{class:"gids-visually-hidden"},en(s)?s:n),t==="notification"?l?v("span",{"aria-hidden":"true"},tn(n,s)):tn(n,s):null)},{getGidsDisplaTagClassNames:$s}=ps,sn=({label:e,appearance:t="subtle",color:n,size:s="md",icon:i,class:o,...a})=>v("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"],"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 ln(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,...l})=>{const r=rt(o);let d=a;return d===void 0&&Ts()&&(d=ln(e,n,Qt)),v("svg",{ref:u=>{d===void 0&&Os((()=>{(function(c,h,g){if(!c)return;const m=document.createElementNS("http://www.w3.org/2000/svg","use");m.setAttribute("href",ln(h,g,Qt)),c.appendChild(m)})(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:r,...l},s!==""&&v("title",{id:r},s||e),d!==void 0?v("use",{href:d}):null)},{getGidsCheckboxControlClassNames:Fs}=gs,js=({checked:e,defaultChecked:t,disabled:n,indeterminate:s,inputId:i,name:o,value:a,required:l,onChange:r,class:d,...u})=>v("span",{class:Fs(d),...u},v("input",{class:"gids-checkbox-control__input",type:"checkbox",disabled:n,checked:e,defaultChecked:t,required:l,indeterminate:s,value:a,id:i,name:o,onChange:r}),v(J,{class:"gids-checkbox-control__check",name:"checkmark",alt:"",size:"sm"}),v(J,{class:"gids-checkbox-control__minus",name:"minus",alt:"",size:"sm"})),{getIndicatorText:zs}=hs,{getGidsLabelClassNames:Ws}=vs,rn=({disabled:e,fieldRequirement:t,fieldRequirementOptionalText:n,fieldRequirementRequiredText:s,info:i,htmlFor:o,labelId:a,class:l,isLabelSentence:r,...d},u)=>{const c=zs({children:u,fieldRequirement:t,fieldRequirementOptionalText:n,fieldRequirementRequiredText:s,isLabelSentence:r});return v("div",{class:Ws({disabled:e},l),...d},v("label",{htmlFor:o,id:a},u,c&&v("span",{class:"gids-label__field-requirement"},c)),i)},Q=Math.min,k=Math.max,Re=Math.round,Le=Math.floor,W=e=>({x:e,y:e}),Gs={left:"right",right:"left",bottom:"top",top:"bottom"};function dt(e,t,n){return k(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 dn(e){return e==="x"?"y":"x"}function ct(e){return e==="y"?"height":"width"}function U(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function ut(e){return dn(U(e))}function Vs(e,t,n){n===void 0&&(n=!1);const s=he(e),i=ut(e),o=ct(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 Hs(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"],un=["right","left"],Bs=["top","bottom"],qs=["bottom","top"];function Us(e,t,n){switch(e){case"top":case"bottom":return n?t?un:cn:t?cn:un;case"left":case"right":return t?Bs:qs;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 Gs[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 mn(e,t,n){let{reference:s,floating:i}=e;const o=U(t),a=ut(t),l=ct(a),r=ee(t),d=o==="y",u=s.x+s.width/2-i.width/2,c=s.y+s.height/2-i.height/2,h=s[l]/2-i[l]/2;let g;switch(r){case"top":g={x:u,y:s.y-i.height};break;case"bottom":g={x:u,y:s.y+s.height};break;case"right":g={x:s.x+s.width,y:c};break;case"left":g={x:s.x-i.width,y:c};break;default:g={x:s.x,y:s.y}}switch(he(t)){case"start":g[a]-=h*(n&&d?-1:1);break;case"end":g[a]+=h*(n&&d?-1:1);break}return g}async function Xs(e,t){var n;t===void 0&&(t={});const{x:s,y:i,platform:o,rects:a,elements:l,strategy:r}=e,{boundary:d="clippingAncestors",rootBoundary:u="viewport",elementContext:c="floating",altBoundary:h=!1,padding:g=0}=ue(t,e),m=hn(g),S=l[h?c==="floating"?"reference":"floating":c],f=je(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(S)))==null||n?S:S.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(l.floating)),boundary:d,rootBoundary:u,strategy:r})),p=c==="floating"?{x:s,y:i,width:a.floating.width,height:a.floating.height}:a.reference,b=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l.floating)),C=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:l,rect:p,offsetParent:b,strategy:r}):p);return{top:(f.top-I.top+m.top)/C.y,bottom:(I.bottom-f.bottom+m.bottom)/C.y,left:(f.left-I.left+m.left)/C.x,right:(I.right-f.right+m.right)/C.x}}const Zs=50,Js=async(e,t,n)=>{const{placement:s="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,l=a.detectOverflow?a:{...a,detectOverflow:Xs},r=await(a.isRTL==null?void 0:a.isRTL(t));let d=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:c}=mn(d,s,r),h=s,g=0;const m={};for(let y=0;y<o.length;y++){const S=o[y];if(!S)continue;const{name:f,fn:p}=S,{x:b,y:C,data:I,reset:w}=await p({x:u,y:c,initialPlacement:s,placement:h,strategy:i,middlewareData:m,rects:d,platform:l,elements:{reference:e,floating:t}});u=b??u,c=C??c,m[f]={...m[f],...I},w&&g<Zs&&(g++,typeof w=="object"&&(w.placement&&(h=w.placement),w.rects&&(d=w.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:i}):w.rects),{x:u,y:c}=mn(d,h,r)),y=-1)}return{x:u,y:c,placement:h,strategy:i,middlewareData:m}},Qs=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:s,placement:i,rects:o,platform:a,elements:l,middlewareData:r}=t,{element:d,padding:u=0}=ue(e,t)||{};if(d==null)return{};const c=hn(u),h={x:n,y:s},g=ut(i),m=ct(g),y=await a.getDimensions(d),S=g==="y",f=S?"top":"left",p=S?"bottom":"right",b=S?"clientHeight":"clientWidth",C=o.reference[m]+o.reference[g]-h[g]-o.floating[m],I=h[g]-o.reference[g],w=await(a.getOffsetParent==null?void 0:a.getOffsetParent(d));let x=w?w[b]:0;(!x||!await(a.isElement==null?void 0:a.isElement(w)))&&(x=l.floating[b]||o.floating[m]);const E=C/2-I/2,A=x/2-y[m]/2-1,_=Q(c[f],A),V=Q(c[p],A),$=_,H=x-y[m]-V,T=x/2-y[m]/2+E,K=dt($,T,H),X=!r.arrow&&he(i)!=null&&T!==K&&o.reference[m]/2-(T<$?_:V)-y[m]/2<0,j=X?T<$?T-$:T-H:0;return{[g]:h[g]+j,data:{[g]:K,centerOffset:T-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:l,platform:r,elements:d}=t,{mainAxis:u=!0,crossAxis:c=!0,fallbackPlacements:h,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:y=!0,...S}=ue(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const f=ee(i),p=U(l),b=ee(l)===l,C=await(r.isRTL==null?void 0:r.isRTL(d.floating)),I=h||(b||!y?[Fe(l)]:Hs(l)),w=m!=="none";!h&&w&&I.push(...Ys(l,y,m,C));const x=[l,...I],E=await r.detectOverflow(t,S),A=[];let _=((s=o.flip)==null?void 0:s.overflows)||[];if(u&&A.push(E[f]),c){const T=Vs(i,a,C);A.push(E[T[0]],E[T[1]])}if(_=[..._,{placement:i,overflows:A}],!A.every(T=>T<=0)){var V,$;const T=(((V=o.flip)==null?void 0:V.index)||0)+1,K=x[T];if(K&&(!(c==="alignment"?p!==U(K):!1)||_.every(z=>U(z.placement)===p?z.overflows[0]>0:!0)))return{data:{index:T,overflows:_},reset:{placement:K}};let X=($=_.filter(j=>j.overflows[0]<=0).sort((j,z)=>j.overflows[1]-z.overflows[1])[0])==null?void 0:$.placement;if(!X)switch(g){case"bestFit":{var H;const j=(H=_.filter(z=>{if(w){const ne=U(z.placement);return ne===p||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:H[0];j&&(X=j);break}case"initialPlacement":X=l;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),l=he(n),r=U(n)==="y",d=ti.has(a)?-1:1,u=o&&r?-1:1,c=ue(t,e);let{mainAxis:h,crossAxis:g,alignmentAxis:m}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:c.mainAxis||0,crossAxis:c.crossAxis||0,alignmentAxis:c.alignmentAxis};return l&&typeof m=="number"&&(g=l==="end"?m*-1:m),r?{x:g*u,y:h*d}:{x:h*d,y:g*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:l}=t,r=await ni(t,e);return a===((n=l.offset)==null?void 0:n.placement)&&(s=l.arrow)!=null&&s.alignmentOffset?{}:{x:i+r.x,y:o+r.y,data:{...r,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:l=!1,limiter:r={fn:f=>{let{x:p,y:b}=f;return{x:p,y:b}}},...d}=ue(e,t),u={x:n,y:s},c=await o.detectOverflow(t,d),h=U(ee(i)),g=dn(h);let m=u[g],y=u[h];if(a){const f=g==="y"?"top":"left",p=g==="y"?"bottom":"right",b=m+c[f],C=m-c[p];m=dt(b,m,C)}if(l){const f=h==="y"?"top":"left",p=h==="y"?"bottom":"right",b=y+c[f],C=y-c[p];y=dt(b,y,C)}const S=r.fn({...t,[g]:m,[h]:y});return{...S,data:{x:S.x-n,y:S.y-s,enabled:{[g]:a,[h]:l}}}}}},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:l}=t,{apply:r=()=>{},...d}=ue(e,t),u=await a.detectOverflow(t,d),c=ee(i),h=he(i),g=U(i)==="y",{width:m,height:y}=o.floating;let S,f;c==="top"||c==="bottom"?(S=c,f=h===(await(a.isRTL==null?void 0:a.isRTL(l.floating))?"start":"end")?"left":"right"):(f=c,S=h==="end"?"top":"bottom");const p=y-u.top-u.bottom,b=m-u.left-u.right,C=Q(y-u[S],p),I=Q(m-u[f],b),w=!t.middlewareData.shift;let x=C,E=I;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(E=b),(s=t.middlewareData.shift)!=null&&s.enabled.y&&(x=p),w&&!h){const _=k(u.left,0),V=k(u.right,0),$=k(u.top,0),H=k(u.bottom,0);g?E=m-2*(_!==0||V!==0?_+V:k(u.left,u.right)):x=y-2*($!==0||H!==0?$+H:k(u.top,u.bottom))}await r({...t,availableWidth:E,availableHeight:x});const A=await a.getDimensions(l.floating);return m!==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 G(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 fn(e){return!ze()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof D(e).ShadowRoot}function Ce(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(me(e))}function We(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const li=/transform|translate|scale|rotate|perspective|filter/,ri=/paint|layout|strict|content/,ae=e=>!!e&&e!=="none";let mt;function gt(e){const t=L(e)?F(e):e;return ae(t.transform)||ae(t.translate)||ae(t.scale)||ae(t.rotate)||ae(t.perspective)||!ft()&&(ae(t.backdropFilter)||ae(t.filter))||li.test(t.willChange||"")||ri.test(t.contain||"")}function di(e){let t=te(e);for(;Y(t)&&!ge(t);){if(gt(t))return t;if(We(t))return null;t=te(t)}return null}function ft(){return mt==null&&(mt=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),mt}function ge(e){return/^(html|body|#document)$/.test(me(e))}function F(e){return D(e).getComputedStyle(e)}function Ge(e){return L(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function te(e){if(me(e)==="html")return e;const t=e.assignedSlot||e.parentNode||fn(e)&&e.host||G(e);return fn(t)?t.host:t}function pn(e){const t=te(e);return ge(t)?e.ownerDocument?e.ownerDocument.body:e.body:Y(t)&&Ce(t)?t:pn(t)}function xe(e,t,n){var s;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=pn(e),o=i===((s=e.ownerDocument)==null?void 0:s.body),a=D(i);if(o){const l=pt(a);return t.concat(a,a.visualViewport||[],Ce(i)?i:[],l&&n?xe(l):[])}else return t.concat(i,xe(i,[],n))}function pt(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,l=Re(n)!==o||Re(s)!==a;return l&&(n=o,s=a),{width:n,height:s,$:l}}function bt(e){return L(e)?e:e.contextElement}function fe(e){const t=bt(e);if(!Y(t))return W(1);const n=t.getBoundingClientRect(),{width:s,height:i,$:o}=bn(t);let a=(o?Re(n.width):n.width)/s,l=(o?Re(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}const ci=W(0);function yn(e){const t=D(e);return!ft()||!t.visualViewport?ci:{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 le(e,t,n,s){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=bt(e);let a=W(1);t&&(s?L(s)&&(a=fe(s)):a=fe(e));const l=ui(o,n,s)?yn(o):W(0);let r=(i.left+l.x)/a.x,d=(i.top+l.y)/a.y,u=i.width/a.x,c=i.height/a.y;if(o){const h=D(o),g=s&&L(s)?D(s):s;let m=h,y=pt(m);for(;y&&s&&g!==m;){const S=fe(y),f=y.getBoundingClientRect(),p=F(y),b=f.left+(y.clientLeft+parseFloat(p.paddingLeft))*S.x,C=f.top+(y.clientTop+parseFloat(p.paddingTop))*S.y;r*=S.x,d*=S.y,u*=S.x,c*=S.y,r+=b,d+=C,m=D(y),y=pt(m)}}return je({width:u,height:c,x:r,y:d})}function Ve(e,t){const n=Ge(e).scrollLeft;return t?t.left+n:le(G(e)).left+n}function vn(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 hi(e){let{elements:t,rect:n,offsetParent:s,strategy:i}=e;const o=i==="fixed",a=G(s),l=t?We(t.floating):!1;if(s===a||l&&o)return n;let r={scrollLeft:0,scrollTop:0},d=W(1);const u=W(0),c=Y(s);if((c||!c&&!o)&&((me(s)!=="body"||Ce(a))&&(r=Ge(s)),c)){const g=le(s);d=fe(s),u.x=g.x+s.clientLeft,u.y=g.y+s.clientTop}const h=a&&!c&&!o?vn(a,r):W(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-r.scrollLeft*d.x+u.x+h.x,y:n.y*d.y-r.scrollTop*d.y+u.y+h.y}}function mi(e){return Array.from(e.getClientRects())}function gi(e){const t=G(e),n=Ge(e),s=e.ownerDocument.body,i=k(t.scrollWidth,t.clientWidth,s.scrollWidth,s.clientWidth),o=k(t.scrollHeight,t.clientHeight,s.scrollHeight,s.clientHeight);let a=-n.scrollLeft+Ve(e);const l=-n.scrollTop;return F(s).direction==="rtl"&&(a+=k(t.clientWidth,s.clientWidth)-i),{width:i,height:o,x:a,y:l}}const Sn=25;function fi(e,t){const n=D(e),s=G(e),i=n.visualViewport;let o=s.clientWidth,a=s.clientHeight,l=0,r=0;if(i){o=i.width,a=i.height;const u=ft();(!u||u&&t==="fixed")&&(l=i.offsetLeft,r=i.offsetTop)}const d=Ve(s);if(d<=0){const u=s.ownerDocument,c=u.body,h=getComputedStyle(c),g=u.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,m=Math.abs(s.clientWidth-c.clientWidth-g);m<=Sn&&(o-=m)}else d<=Sn&&(o+=d);return{width:o,height:a,x:l,y:r}}function pi(e,t){const n=le(e,!0,t==="fixed"),s=n.top+e.clientTop,i=n.left+e.clientLeft,o=Y(e)?fe(e):W(1),a=e.clientWidth*o.x,l=e.clientHeight*o.y,r=i*o.x,d=s*o.y;return{width:a,height:l,x:r,y:d}}function In(e,t,n){let s;if(t==="viewport")s=fi(e,n);else if(t==="document")s=gi(G(e));else if(L(t))s=pi(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 wn(e,t){const n=te(e);return n===t||!L(n)||ge(n)?!1:F(n).position==="fixed"||wn(n,t)}function bi(e,t){const n=t.get(e);if(n)return n;let s=xe(e,[],!1).filter(l=>L(l)&&me(l)!=="body"),i=null;const o=F(e).position==="fixed";let a=o?te(e):e;for(;L(a)&&!ge(a);){const l=F(a),r=gt(a);!r&&l.position==="fixed"&&(i=null),(o?!r&&!i:!r&&l.position==="static"&&!!i&&(i.position==="absolute"||i.position==="fixed")||Ce(a)&&!r&&wn(e,a))?s=s.filter(u=>u!==a):i=l,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"?We(t)?[]:bi(t,this._c):[].concat(n),s],l=In(t,a[0],i);let r=l.top,d=l.right,u=l.bottom,c=l.left;for(let h=1;h<a.length;h++){const g=In(t,a[h],i);r=k(g.top,r),d=Q(g.right,d),u=Q(g.bottom,u),c=k(g.left,c)}return{width:d-c,height:u-r,x:c,y:r}}function vi(e){const{width:t,height:n}=bn(e);return{width:t,height:n}}function Si(e,t,n){const s=Y(t),i=G(t),o=n==="fixed",a=le(e,!0,o,t);let l={scrollLeft:0,scrollTop:0};const r=W(0);function d(){r.x=Ve(i)}if(s||!s&&!o)if((me(t)!=="body"||Ce(i))&&(l=Ge(t)),s){const g=le(t,!0,o,t);r.x=g.x+t.clientLeft,r.y=g.y+t.clientTop}else i&&d();o&&!s&&i&&d();const u=i&&!s&&!o?vn(i,l):W(0),c=a.left+l.scrollLeft-r.x-u.x,h=a.top+l.scrollTop-r.y-u.y;return{x:c,y:h,width:a.width,height:a.height}}function yt(e){return F(e).position==="static"}function Cn(e,t){if(!Y(e)||F(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return G(e)===n&&(n=n.ownerDocument.body),n}function xn(e,t){const n=D(e);if(We(e))return n;if(!Y(e)){let i=te(e);for(;i&&!ge(i);){if(L(i)&&!yt(i))return i;i=te(i)}return n}let s=Cn(e,t);for(;s&&ai(s)&&yt(s);)s=Cn(s,t);return s&&ge(s)&&yt(s)&&!gt(s)?n:s||di(e)||n}const Ii=async function(e){const t=this.getOffsetParent||xn,n=this.getDimensions,s=await n(e.floating);return{reference:Si(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function wi(e){return F(e).direction==="rtl"}const vt={convertOffsetParentRelativeRectToViewportRelativeRect:hi,getDocumentElement:G,getClippingRect:yi,getOffsetParent:xn,getElementRects:Ii,getClientRects:mi,getDimensions:vi,getScale:fe,isElement:L,isRTL:wi};function En(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Ci(e,t){let n=null,s;const i=G(e);function o(){var l;clearTimeout(s),(l=n)==null||l.disconnect(),n=null}function a(l,r){l===void 0&&(l=!1),r===void 0&&(r=1),o();const d=e.getBoundingClientRect(),{left:u,top:c,width:h,height:g}=d;if(l||t(),!h||!g)return;const m=Le(c),y=Le(i.clientWidth-(u+h)),S=Le(i.clientHeight-(c+g)),f=Le(u),b={rootMargin:-m+"px "+-y+"px "+-S+"px "+-f+"px",threshold:k(0,Q(1,r))||1};let C=!0;function I(w){const x=w[0].intersectionRatio;if(x!==r){if(!C)return a();x?a(!1,x):s=setTimeout(()=>{a(!1,1e-7)},1e3)}x===1&&!En(d,e.getBoundingClientRect())&&a(),C=!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:l=typeof IntersectionObserver=="function",animationFrame:r=!1}=s,d=bt(e),u=i||o?[...d?xe(d):[],...t?xe(t):[]]:[];u.forEach(f=>{i&&f.addEventListener("scroll",n,{passive:!0}),o&&f.addEventListener("resize",n)});const c=d&&l?Ci(d,n):null;let h=-1,g=null;a&&(g=new ResizeObserver(f=>{let[p]=f;p&&p.target===d&&g&&t&&(g.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var b;(b=g)==null||b.observe(t)})),n()}),d&&!r&&g.observe(d),t&&g.observe(t));let m,y=r?le(e):null;r&&S();function S(){const f=le(e);y&&!En(y,f)&&n(),y=f,m=requestAnimationFrame(S)}return n(),()=>{var f;u.forEach(p=>{i&&p.removeEventListener("scroll",n),o&&p.removeEventListener("resize",n)}),c?.(),(f=g)==null||f.disconnect(),g=null,r&&cancelAnimationFrame(m)}}const Ei=si,Mi=ii,Ai=ei,Mn=oi,Pi=Qs,_i=(e,t,n)=>{const s=new Map,i={platform:vt,...n},o={...i.platform,_c:s};return Js(e,t,{...i,platform:o})};function An(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}const Ti=/transform|translate|scale|rotate|perspective|filter/,Oi=/paint|layout|strict|content/,re=e=>!!e&&e!=="none";let St;function Ni(e){const t=(n=e,typeof window<"u"&&(n instanceof Element||n instanceof An(n).Element)?An(s=e).getComputedStyle(s):e);var n,s;return re(t.transform)||re(t.translate)||re(t.scale)||re(t.rotate)||re(t.perspective)||(St==null&&(St=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),!St&&(re(t.backdropFilter)||re(t.filter)))||Ti.test(t.willChange||"")||Oi.test(t.contain||"")}function ki(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"||Ni(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 Ee;(function(e){e.TOOLTIP="tooltip",e.POPOVER="popover",e.FLYOUT_PANEL="flyout-panel"})(Ee||(Ee={}));const pe=class pe{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=[Ei(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=Ai(i&&i.length>0?{mainAxis:!0,crossAxis:!1,padding:t,fallbackPlacements:i.filter((d=>d!==o)),fallbackAxisSideDirection:"none"}:{mainAxis:!0,crossAxis:!s&&"alignment",fallbackAxisSideDirection:"end",padding:t}),l=this.config.elementType===Ee.POPOVER,r=Mi({padding:t,mainAxis:this.config.constrainToViewportHeight||this.config.elementType===Ee.TOOLTIP||l&&this.popoverMainAxisEnabled,crossAxis:!1});this.config.matchReferenceWidth&&n.push(Mn({apply({elements:d,rects:u}){Object.assign(d.floating.style,{width:`${u.reference.width}px`})}})),o?.includes("-")?n.push(a,r):n.push(r,a),this.config.constrainToViewportHeight&&n.push(Mn({padding:t,apply:({availableHeight:d,elements:u})=>{const c=Array.from(u.floating.children).find((h=>h!==this.arrowEl));c instanceof HTMLElement&&Object.assign(c.style,{maxHeight:`${Math.max(0,d)}px`,overflowY:"auto",overflowX:"hidden"})}})),this.config.showArrow!==!1&&this.arrowEl&&n.push(Pi({element:this.arrowEl,padding:t})),_i(this.anchorElement,this.floatingElement,{placement:o,strategy:"fixed",middleware:n,platform:{...vt,getOffsetParent:d=>vt.getOffsetParent(d,ki)}}).then((({x:d,y:u,middlewareData:c,placement:h})=>{if(l){const S=h.startsWith("left")||h.startsWith("right"),f=h.startsWith("top")||h.startsWith("bottom"),p=this.isAnchorInViewport(),b=!!f||(S?p:this.popoverMainAxisEnabled);if(b!==this.popoverMainAxisEnabled)return this.popoverMainAxisEnabled=b,void this.updatePosition()}this.currentPlacement=h,Object.assign(this.floatingElement.style,{left:`${d}px`,top:`${u}px`,position:"fixed",transition:`opacity ${this.timeOfAnimation}ms ease`});const g=h.split("-")[0]??"bottom",m={top:"bottom",right:"left",bottom:"top",left:"right"}[g],{arrowZIndex:y}=this.normalizeFloatingElementStacking();if(c.arrow&&this.arrowEl){const S=this.arrowEl.offsetWidth,{x:f,y:p}=c.arrow;this.arrowEl.style.borderRadius=`${["left","right"].includes(g)?"0 ":""}var(--gidsFloatingElement-tip-border-radius, 2px)${["top","bottom"].includes(g)?" 0":""}`,Object.assign(this.arrowEl.style,{left:f!==null?`${f}px`:"",top:p!==null?`${p}px`:"",right:"",bottom:"",[m]:-S/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??""),l=Number.parseInt(a,10),r=window.getComputedStyle?.(o).position??"";(a===""||a==="auto"||Number.isNaN(l)||l<i)&&(o.style.zIndex=`${i}`,r!==""&&r!=="static"||(o.style.position="relative"))})),{contentZIndex:i,arrowZIndex:s}}hideFloatingElement(){this.floatingElement.classList.remove(this.config.visibilityClass),pe.currentFloatingElements.delete(this.config.elementType)}showFloatingElement(){const t=pe.currentFloatingElements.get(this.config.elementType);t&&t.hideFloatingElement(),this.floatingElement.classList.add(this.config.visibilityClass),pe.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}};pe.currentFloatingElements=new Map;let wt=pe;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 wt(this._el,{htmlFor:this.htmlFor,placement:this.placement,showWithoutDelay:!0,floatingElementSelector:"#flyout-panel",showArrow:!1,visibilityClass:"gids-flyout-panel--visible",elementType:Ee.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=_n(e);t.push(...n);const s=this._el.shadowRoot?.querySelector("slot:not([name])");s&&s.assignedElements({flatten:!0}).forEach((i=>{const o=_n(i);t.push(...o)})),this.focusableElements=t.sort(((i,o)=>{const a=i.compareDocumentPosition(o),l=!!(a&Node.DOCUMENT_POSITION_FOLLOWING),r=!!(a&Node.DOCUMENT_POSITION_PRECEDING);return l?-1:r?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 v(os,{key:"ad79cb0c6c6f36d2d6926233dd10d1de053fa405"},v("slot",{key:"97333353f6deda3222ccdcee1a7c9a42900204f5",name:"anchor"}),v("div",{key:"805d139b92080862e60dad9591908f4c9af42dd3",id:"flyout-panel",part:"flyout-panel",role:"dialog","aria-modal":"true",tabindex:"-1"},v("div",{key:"522bae9ac93bbb12e3d3f820a477c81b768ddff3"},v("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}]}]),Pn=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}},_n=e=>{const t=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>Pn(i)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}),n=[];Pn(e)&&n.push(e);let s=t.nextNode();for(;s!==null;)n.push(s),s=t.nextNode();return n};function He(){typeof customElements<"u"&&["gids-flyout-panel"].forEach((e=>{e==="gids-flyout-panel"&&(customElements.get(e)||customElements.define(e,Di))}))}He();const{getGidsStatusTagClassNames:$i,getStatusTagIconName:Ri,getStatusTagText:Li}=Ms,Tn=({type:e="new",appearance:t="subtlest",size:n="sm",class:s})=>v("div",{class:$i({type:e,size:n,appearance:t},s)},v(J,{name:Ri(e),appearance:"filled"}),v("label",null,Li(e))),{getGidsCheckboxClassNames:Fi}=fs,On=({fieldRequirement:e,fieldRequirementOptionalText:t,fieldRequirementRequiredText:n,info:s,labelId:i,checked:o,defaultChecked:a,disabled:l,indeterminate:r,inputId:d,name:u,value:c,required:h,onChange:g,class:m,...y},S)=>{const f=d??rt();return v("div",{class:Fi(m),...y},v(js,{checked:o,defaultChecked:a,disabled:l,indeterminate:r,inputId:f,name:u,value:c,required:h,onChange:g}),v(rn,{disabled:l,fieldRequirement:e,fieldRequirementOptionalText:t,fieldRequirementRequiredText:n,labelId:i,htmlFor:f,info:s},S))},{getGidsRadioControlClassNames:ji}=Ss,zi=({checked:e,defaultChecked:t,disabled:n,inputId:s,name:i,value:o,onChange:a,class:l,...r})=>v("span",{class:ji(l),...r},v("input",{class:"gids-radio-control__input",type:"radio",disabled:n,checked:e,defaultChecked:t,value:o,id:s,name:i,onChange:a}),v("span",{class:"gids-radio-control__check"})),{getGidsRadioClassNames:Wi}=Is,Nn=({fieldRequirement:e,fieldRequirementOptionalText:t,fieldRequirementRequiredText:n,info:s,labelId:i,checked:o,defaultChecked:a,disabled:l,inputId:r,name:d,value:u,onChange:c,class:h,...g},m)=>{const y=r??rt();return v("div",{class:Wi(h),...g},v(zi,{checked:o,defaultChecked:a,disabled:l,inputId:y,name:d,value:u,onChange:c}),v(rn,{disabled:l,fieldRequirement:e,fieldRequirementOptionalText:t,fieldRequirementRequiredText:n,labelId:i,htmlFor:y,info:s},m))},{getGidsSidebarMenuItemClassNames:Gi}=Cs,kn=({id:e="sidebar-menu-item",appearance:t="default",selectionAppearance:n="subtle",leadingLabel:s,leadingSupportingText:i,trailingLabel:o,trailingSupportingText:a,leadingIcon:l,trailingIcon:r,leadingAccessory:d,trailingAccessory:u,selected:c,disabled:h,onPressSidebarMenuItem:g,class:m})=>{const y=s&&s!=="",S=i&&i!=="",f=o&&o!=="",p=a&&a!=="",b=y||S,C=f||p,I=b||C;return v("button",{type:"button",id:e,"data-appearance":t,"data-selected":c?"true":"false",disabled:h,class:Gi({selected:c,appearance:t,selectionAppearance:n},m),onClick:w=>{g&&g({originalEvent:w,sidebarMenuItemId:e,selected:!c})}},l||d?v("div",{class:"gids-sidebar-menu-item__leading-accessory-content"},l,d):void 0,I?v("div",{class:"gids-sidebar-menu-item__content"},b?v("div",{class:"gids-sidebar-menu-item__leading-content"},y?v("span",{class:"gids-sidebar-menu-item__label-content"},s):void 0,S?v("p",{class:"gids-sidebar-menu-item__support-content"},i):void 0):void 0,C?v("div",{class:"gids-sidebar-menu-item__trailing-content"},f?v("span",{class:"gids-sidebar-menu-item__label-content"},o):void 0,p?v("p",{class:"gids-sidebar-menu-item__support-content"},a):void 0):void 0):void 0,r||u?v("div",{class:"gids-sidebar-menu-item__trailing-accessory-content"},u,r):void 0)},{getGidsSidebarMenuClassNames:Vi}=xs,Hi=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 v(nn,{...n?.badgeProps});case"display-tag":return v(sn,{...n?.displayTagProps,label:n?.displayTagProps?.label??"",color:n?.displayTagProps?.color??"accent-1",icon:n?.displayTagProps?.iconName?v(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 v(Tn,{...n?.statusTagProps});case"checkbox":return v(On,{checked:n?.checkboxProps?.checked,disabled:n?.checkboxProps?.disabled,indeterminate:n?.checkboxProps?.indeterminate},n?.checkboxProps?.label);case"radio":return v(Nn,{checked:n?.radioProps?.checked,disabled:n?.radioProps?.disabled},n?.radioProps?.label);default:return}},this.renderIcon=t=>t?.name?v(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??[],l=this.isValidMenu(),r=Vi();return v(Pe,{key:"18caea43f2a18e876e094176ee144ece86e0eeec",id:e,class:r},l?v("gids-flyout-panel",{htmlFor:o,constrainPlacements:i,placement:s},a.map(((d,u)=>{const c=d?.sectionLabel,h=d?.menuItems??[];return v("div",{key:`${u+1}`,class:"gids-sidebar-menu__container"},c&&c!==""?v("h3",null,c):void 0,v("div",{class:"gids-sidebar-menu__item-container"},h.map(((g,m)=>{const{leadingAccessoryType:y,leadingAccessory:S,trailingAccessoryType:f,trailingAccessory:p,leadingIconProps:b,trailingIconProps:C,...I}=g;return v(kn,{key:`${m+1}`,...I,id:g.id,appearance:t,selectionAppearance:n,selected:this.isMenuItemSelected({sectionId:d?.sectionId,itemId:g.id}),leadingAccessory:this.renderAccessory({accessoryType:y,accessory:S}),trailingAccessory:this.renderAccessory({accessoryType:f,accessory:p}),leadingIcon:this.renderIcon(b),trailingIcon:this.renderIcon(C),onPressSidebarMenuItem:w=>this.onSidebarMenuItemPress({menuItem:g,sectionIndex:u,itemIndex:m,event:w})})}))))}))):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 Ct(){typeof customElements<"u"&&["gids-sidebar-menu","gids-flyout-panel"].forEach((e=>{switch(e){case"gids-sidebar-menu":customElements.get(e)||customElements.define(e,Hi);break;case"gids-flyout-panel":customElements.get(e)||He()}}))}Ct();const{getGidsDividerClassNames:Bi}=bs,xt=({orientation:e})=>v("hr",{class:Bi({orientation:e})}),{getGidsSidebarItemClassNames:qi}=ws,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,l=this?.disabled??!1,r=this?.selectedState??!1,d=this?.menuId??"sidebar-menu-item",u=this?.menuPlacement??"right",c=this?.menuConstrainPlacements&&this.menuConstrainPlacements.length>0?this.menuConstrainPlacements:["bottom","left","right","top","left-start","left-end","right-start","right-end"],h=this?.menuData??[],g=this?.sidebarMenuItemAppearance??"subtle",m=this?.sidebarMenuItemSelectionAppearance??"default",y=this?.selectedMenuItemSectionIdState??void 0,S=this?.selectedMenuItemIdState??void 0,f=this.hasMenu(),p=qi();return v(Pe,{key:"4df994cd92995f0a1053593ec83e2b97f45fe52d",id:e,class:p},v(kn,{key:"458143794740850d76cbf686bc82efb40afc4a8f",id:e,appearance:t,selectionAppearance:n,leadingLabel:s,leadingSupportingText:i,trailingLabel:o,trailingSupportingText:a,selected:r,disabled:l,leadingIcon:v("slot",{name:"sidebarItemLeadingIcon"}),leadingAccessory:v("slot",{name:"sidebarItemLeadingAccessory"}),trailingAccessory:v("slot",{name:"sidebarItemTrailingAccessory"}),trailingIcon:f?v(J,{name:"chevron-right",size:"md",appearance:"regular",alt:""}):void 0,onPressSidebarMenuItem:b=>this.onSidebarMenuItemPress({event:b})}),f?v("div",{class:"gids-sidebar-item__menu-container"},v("gids-sidebar-menu",{htmlFor:e,menuData:h,id:d,placement:u,constrainPlacements:c,sidebarMenuItemAppearance:g,sidebarMenuItemSelectionAppearance:m,selectedSectionId:y,selectedItemId:S,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)||He();break;case"gids-sidebar-menu":customElements.get(e)||Ct()}}))}Dn();const{getGidsSidebarClassNames:Yi}=Es,$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 v(nn,{...n?.badgeProps,slot:s});case"display-tag":return v(sn,{...n?.displayTagProps,label:n?.displayTagProps?.label??"",color:n?.displayTagProps?.color??"accent-1",slot:s,icon:n?.displayTagProps?.iconName?v(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 v(Tn,{...n?.statusTagProps,slot:s});case"checkbox":return v(On,{checked:n?.checkboxProps?.checked,disabled:n?.checkboxProps?.disabled,indeterminate:n?.checkboxProps?.indeterminate,slot:s},n?.checkboxProps?.label);case"radio":return v(Nn,{checked:n?.radioProps?.checked,disabled:n?.radioProps?.disabled,slot:s},n?.radioProps?.label);default:return}},this.renderIcon=t=>t?.name?v(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",l=this?.menuPlacement??"right-end",r=this?.menuConstrainPlacements&&this.menuConstrainPlacements.length>0?this.menuConstrainPlacements:["right-end","left-end","left","right","right-start","left-start"],d=this?.listData??[],u=this?.sectionDividers??!0,c=this?.itemDividers??!1,h=this?.headerDivider??!0,g=this?.selectedMenuItemSectionIdState??void 0,m=this?.selectedMenuItemIdState??void 0,y=this.hasHeaderContent,S=Yi({appearance:t,height:a});return v(Pe,{key:"0b48c64fd20c4197854d539e83fead2de42b2817",class:S,id:e,"data-appearance":t},y?v("div",{class:"gids-sidebar__header-container"},v("slot",null),y&&h?v(xt,null):void 0):void 0,d.map(((f,p)=>{const b=f?.lisItems??[],C=f?.listSectionLabel,I=f?.listSectionId;return v("div",{key:`${p+1}-${I}`,class:"gids-sidebar__list-section-container"},C?v("h4",null,C):void 0,b.map(((w,x)=>{const E=`${x+1}-${p+1}-${w.id}`,{leadingAccessoryType:A,leadingAccessory:_,trailingAccessoryType:V,trailingAccessory:$,leadingIconProps:H,...T}=w;return v("div",{class:"gids-sidebar__item-container"},v("gids-sidebar-item",{...T,key:E,id:w.id,appearance:n,selectionAppearance:s,sidebarMenuItemAppearance:i,sidebarMenuItemSelectionAppearance:o,menuPlacement:l,menuConstrainPlacements:r,menuData:w?.menuData??[],menuId:w?.menuId,leadingLabel:w?.leadingLabel,leadingSupportingText:w?.leadingSupportingText,trailingLabel:w?.trailingLabel,trailingSupportingText:w?.trailingSupportingText,disabled:w?.disabled,selectedMenuItemSectionId:g,selectedMenuItemId:m,selected:this.sidebarItemSelected({listItem:w,listItemSectionId:I}),onPressSidebarItem:K=>this.onSidebarItemPress({event:K,sectionId:I,sectionIndex:p,itemIndex:x})},this.renderAccessory({accessoryType:A,accessory:_,slotName:"sidebarItemLeadingAccessory"}),this.renderIcon(H),this.renderAccessory({accessoryType:V,accessory:$,slotName:"sidebarItemTrailingAccessory"})),c&&x<b.length-1?v(xt,null):void 0)})),u&&p<d.length-1?v("div",{class:"gids-sidebar__section-divider-container"},v(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 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)||He();break;case"gids-sidebar-item":customElements.get(e)||Dn();break;case"gids-sidebar-menu":customElements.get(e)||Ct()}}))}Rn();const Ki=$n,Xi=Rn;se.GidsSidebar=Ki,se.defineCustomElement=Xi,Object.defineProperty(se,Symbol.toStringTag,{value:"Module"})}));
@@ -2,4 +2,4 @@
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 S=this["s-cr"].parentElement;return(S.__childNodes?S.childNodes:(b=>{const y=[];for(let g=0;g<b.length;g++){const p=b[g]["s-nr"]||void 0;p&&p.isConnected&&y.push(p)}return y})(S.childNodes)).forEach((b=>{h===F(b)&&m.push(b)})),c?m.filter((b=>b.nodeType===1)):m}).bind(d);d.assignedElements=u(!0),d.assignedNodes=u(!1)})(r),a=e&&e.m&&e.m[o],a&&a.O===n.O&&e.S&&je(e.S)),r},je=e=>{O.i|=1;const t=e.closest(L.toLowerCase());if(t!=null){const o=Array.from(t.__childNodes||t.childNodes).find((n=>n["s-cr"])),s=Array.from(e.__childNodes||e.childNodes);for(const n of o?s.reverse():s)n["s-sh"]!=null&&($(t,n,o??null),n["s-sh"]=void 0,X=!0)}O.i&=-2},G=(e,t)=>{O.i|=1;const o=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"]===L&&o.push(s)}for(let s=o.length-1;s>=0;s--){const n=o[s];n["s-hn"]!==L&&n["s-ol"]&&($(B(n).parentNode,n,B(n)),n["s-ol"].remove(),n["s-ol"]=void 0,n["s-sh"]=void 0,X=!0),t&&G(n,t)}O.i&=-2},Ee=(e,t,o,s,n,r)=>{let i,a=e["s-cr"]&&e["s-cr"].parentNode||e;for(a.shadowRoot&&a.tagName===L&&(a=a.shadowRoot),o.O==="template"&&(a=a.content);n<=r;++n)s[n]&&(i=Y(null,o,n),i&&(s[n].S=i,$(a,i,B(t))))},$e=(e,t,o)=>{for(let s=t;s<=o;++s){const n=e[s];if(n){const r=n.S;Ae(n),r&&(z=!0,r["s-ol"]?r["s-ol"].remove():G(r,!0),r.remove())}}},I=(e,t,o=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:o?(o&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),B=e=>e&&e["s-ol"]||e,H=(e,t,o=!1)=>{const s=t.S=e.S,n=e.m,r=t.m,i=t.O,a=t.h;let l;a==null?(_=i==="svg"||i!=="foreignObject"&&_,i!=="slot"||V||e.j!==t.j&&(t.S["s-sn"]=t.j||"",je(t.S.parentElement)),le(e,t,_),n!==null&&r!==null?((d,u,c,f,m=!1)=>{let h,S,b=0,y=0,g=0,p=0,N=u.length-1,v=u[0],w=u[N],j=f.length-1,E=f[0],C=f[j];const Me=c.O==="template"?d.content:d;for(;b<=N&&y<=j;)if(v==null)v=u[++b];else if(w==null)w=u[--N];else if(E==null)E=f[++y];else if(C==null)C=f[--j];else if(I(v,E,m))H(v,E,m),v=u[++b],E=f[++y];else if(I(w,C,m))H(w,C,m),w=u[--N],C=f[--j];else if(I(v,C,m))v.O!=="slot"&&C.O!=="slot"||G(v.S.parentNode,!1),H(v,C,m),$(Me,v.S,w.S.nextSibling),v=u[++b],C=f[--j];else if(I(w,E,m))v.O!=="slot"&&C.O!=="slot"||G(w.S.parentNode,!1),H(w,E,m),$(Me,w.S,v.S),w=u[--N],E=f[++y];else{for(g=-1,p=b;p<=N;++p)if(u[p]&&u[p].$!==null&&u[p].$===E.$){g=p;break}g>=0?(S=u[g],S.O!==E.O?h=Y(u&&u[y],c,g):(H(S,E,m),u[g]=void 0,h=S.S),E=f[++y]):(h=Y(u&&u[y],c,y),E=f[++y]),h&&$(B(v.S).parentNode,h,B(v.S))}b>N?Ee(d,f[j+1]==null?null:f[j+1].S,c,f,y,j):y>j&&$e(u,b,N)})(s,n,t,r,o):r!==null?(e.h!==null&&(s.textContent=""),Ee(s,null,t,r,0,r.length-1)):!o&&n!==null&&$e(n,0,n.length-1),_&&i==="svg"&&(_=!1)):(l=s["s-cr"])?l.parentNode.textContent=a:e.h!==a&&(s.data=a)},x=[],Ce=e=>{let t,o,s;const n=e.__childNodes||e.childNodes;for(const r of n){if(r["s-sr"]&&(t=r["s-cr"])&&t.parentNode){o=t.parentNode.__childNodes||t.parentNode.childNodes;const i=r["s-sn"];for(s=o.length-1;s>=0;s--)if(t=o[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===r["s-hn"]||t["s-sh"]&&t["s-sh"]===r["s-hn"]))if(ge(t,i)){let a=x.find((l=>l.k===t));z=!0,t["s-sn"]=t["s-sn"]||i,a?(a.k["s-sh"]=r["s-hn"],a.N=r):(t["s-sh"]=r["s-hn"],x.push({N:r,k:t})),t["s-sr"]&&x.map((l=>{ge(l.k,t["s-sn"])&&(a=x.find((d=>d.k===t)),a&&!l.N&&(l.N=a.N))}))}else x.some((a=>a.k===t))||x.push({k:t})}r.nodeType===1&&Ce(r)}},Ae=e=>{e.v&&e.v.ref&&ie.push((()=>e.v.ref(null))),e.m&&e.m.map(Ae)},Ke=(e,t)=>{ae.push((()=>e(t)))},$=(e,t,o,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,o);const{slotNode:n}=(function(r,i){var a;if(!(i=i||((a=r["s-ol"])==null?void 0:a.parentElement)))return{slotNode:null,slotName:""};const l=r["s-sn"]=F(r)||"";return{slotNode:te(se(i,"childNodes"),i.tagName,l)[0],slotName:l}})(t);return n&&!s&&n.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,o):e?.insertBefore(t,o)},Qe=(e,t,o=!1)=>{var s,n,r,i,a;const l=e.$hostElement$,d=e.o,u=e.M||q(null,null);var c;const f=(c=t)&&c.O===ve?t:re(null,null,t);if(L=l.tagName,d.C&&(f.v=f.v||{},d.C.forEach((([m,h])=>{f.v[h]=l[m]}))),o&&f.v)for(const m of Object.keys(f.v))l.hasAttribute(m)&&!["key","ref","style","class"].includes(m)&&(f.v[m]=l[m]);if(f.O=null,f.i|=4,e.M=f,f.S=u.S=l.shadowRoot||l,V=!(!(1&d.i)||128&d.i),oe=l["s-cr"],z=!1,H(u,f,o),O.i|=1,X){Ce(f.S);for(const m of x){const h=m.k;if(!h["s-ol"]&&k.document){const S=k.document.createTextNode("");S["s-nr"]=h,$(h.parentNode,h["s-ol"]=S,h,o)}}for(const m of x){const h=m.k,S=m.N;if(h.nodeType===1&&o&&(h["s-ih"]=(s=h.hidden)!=null&&s),S){const b=S.parentNode;let y=S.nextSibling;if(y&&y.nodeType===1){let g=(n=h["s-ol"])==null?void 0:n.previousSibling;for(;g;){let p=(r=g["s-nr"])!=null?r:null;if(p&&p["s-sn"]===h["s-sn"]&&b===(p.__parentNode||p.parentNode)){for(p=p.nextSibling;p===h||p?.["s-sr"];)p=p?.nextSibling;if(!p||!p["s-nr"]){y=p;break}}g=g.previousSibling}}if((!y&&b!==(h.__parentNode||h.parentNode)||(h.__nextSibling||h.nextSibling)!==y)&&h!==y){if($(b,h,y,o),h.nodeType===8&&h.nodeValue.startsWith("s-nt-")){const g=k.document.createTextNode(h.nodeValue.replace(/^s-nt-/,""));g["s-hn"]=h["s-hn"],g["s-sn"]=h["s-sn"],g["s-sh"]=h["s-sh"],g["s-sr"]=h["s-sr"],g["s-ol"]=h["s-ol"],g["s-ol"]["s-nr"]=g,$(h.parentNode,g,h,o),h.parentNode.removeChild(h)}h.nodeType===1&&h.tagName!=="SLOT-FB"&&(h.hidden=(i=h["s-ih"])!=null&&i)}h&&typeof S["s-rf"]=="function"&&S["s-rf"](S)}else h.nodeType===1&&(h.hidden=!0)}}if(z&&me(f.S),O.i&=-2,x.length=0,!V&&!(1&d.i)&&l["s-cr"]){const m=f.S.__childNodes||f.S.childNodes;for(const h of m)if(h["s-hn"]!==L&&!h["s-sh"]){if(o&&h["s-ih"]==null&&(h["s-ih"]=(a=h.hidden)!=null&&a),h.nodeType===1)h.hidden=!0;else if(h.nodeType===3&&h.nodeValue.trim()){const S=k.document.createComment("s-nt-"+h.nodeValue);S["s-sn"]=h["s-sn"],$(h.parentNode,S,h,o),h.parentNode.removeChild(h)}}}oe=void 0,ie.forEach((m=>m())),ie.length=0,ae.forEach((m=>m())),ae.length=0},xe=(e,t)=>{if(t&&!e.A&&t["s-p"]){const o=t["s-p"].push(new Promise((s=>e.A=()=>{t["s-p"].splice(o-1,1),s()})))}},ce=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);xe(e,e.R);const o=()=>et(e,t);if(!t)return qe(o);queueMicrotask((()=>{o()}))},et=(e,t)=>{const o=e.$hostElement$,s=o;if(!s)throw new Error(`Can't render component <${o.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let n;return n=W(s,t?"componentWillLoad":"componentWillUpdate",void 0,o),n=Te(n,(()=>W(s,"componentWillRender",void 0,o))),Te(n,(()=>st(e,s,t)))},Te=(e,t)=>tt(e)?e.then(t).catch((o=>{console.error(o),t()})):t(),tt=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",st=async(e,t,o)=>{var s;const n=e.$hostElement$,r=n["s-rc"];o&&(i=>{const a=i.o,l=i.$hostElement$,d=a.i,u=((c,f)=>{var m,h,S;const b=ye(f),y=U.get(b);if(!k.document)return b;if(c=c.nodeType===11?c:k.document,y)if(typeof y=="string"){let g,p=T.get(c=c.head||c);if(p||T.set(c,p=new Set),!p.has(b)){g=k.document.createElement("style"),g.textContent=y;const N=(m=O._)!=null?m:(function(){var v,w,j;return(j=(w=(v=k.document.head)==null?void 0:v.querySelector('meta[name="csp-nonce"]'))==null?void 0:w.getAttribute("content"))!=null?j:void 0})();if(N!=null&&g.setAttribute("nonce",N),!(1&f.i))if(c.nodeName==="HEAD"){const v=c.querySelectorAll("link[rel=preconnect]"),w=v.length>0?v[v.length-1].nextSibling:c.querySelector("style");c.insertBefore(g,w?.parentNode===c?w:null)}else if("host"in c)if(Z){const v=new((h=c.defaultView)!=null?h:c.ownerDocument.defaultView).CSSStyleSheet;v.replaceSync(y),J?c.adoptedStyleSheets.unshift(v):c.adoptedStyleSheets=[v,...c.adoptedStyleSheets]}else{const v=c.querySelector("style");v?v.textContent=y+v.textContent:c.prepend(g)}else c.append(g);1&f.i&&c.insertBefore(g,null),4&f.i&&(g.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),p&&p.add(b)}}else{let g=T.get(c);if(g||T.set(c,g=new Set),!g.has(b)){const p=(S=c.defaultView)!=null?S:c.ownerDocument.defaultView;let N;if(y.constructor===p.CSSStyleSheet)N=y;else{N=new p.CSSStyleSheet;for(let v=0;v<y.cssRules.length;v++)N.insertRule(y.cssRules[v].cssText,v)}J?c.adoptedStyleSheets.push(N):c.adoptedStyleSheets=[...c.adoptedStyleSheets,N],g.add(b)}}return b})(l.shadowRoot?l.shadowRoot:l.getRootNode(),a);10&d&&(l["s-sc"]=u,l.classList.add(u+"-h"))})(e),ot(e,t,n,o),r&&(r.map((i=>i())),n["s-rc"]=void 0);{const i=(s=n["s-p"])!=null?s:[],a=()=>nt(e);i.length===0?a():(Promise.all(i).then(a).catch(a),e.i|=4,i.length=0)}},ot=(e,t,o,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,Qe(e,t,s)}catch(n){R(n,e.$hostElement$)}return null},nt=e=>{const t=e.$hostElement$,o=t,s=e.R;W(o,"componentDidRender",void 0,t),64&e.i?W(o,"componentDidUpdate",void 0,t):(e.i|=64,lt(t),W(o,"componentDidLoad",void 0,t),e.L(t),s||rt()),e.A&&(e.A(),e.A=void 0),512&e.i&&ee((()=>ce(e,!1))),e.i&=-517},rt=()=>{ee((()=>Ie(k,"appload",{detail:{namespace:"gids-core-web"}})))},W=(e,t,o,s)=>{if(e&&e[t])try{return e[t](o)}catch(n){R(n,s)}},lt=e=>e.classList.add("hydrated"),Pe=(e,t,o,s)=>{const n=A(e);if(!n)return;const r=e,i=n.l.get(t),a=n.i,l=r;o=ke(o,s.t[t][0],!!(64&s.i));const d=Number.isNaN(i)&&Number.isNaN(o);if(o!==i&&!d){if(n.l.set(t,o),s.F){const u=s.F[t];u&&u.map((c=>{try{const[[f,m]]=Object.entries(c);(128&a||1&m)&&(l?l[f](o,i,t):n.T.push((()=>{n.D[f](o,i,t)})))}catch(f){R(f,r)}}))}if(2&a){if(l.componentShouldUpdate&&l.componentShouldUpdate(o,i,t)===!1&&!(16&a))return;16&a||ce(n,!1)}}},it=(e,t,o)=>{var s,n;const r=e.prototype;64&t.i&&1&o&&Ve.forEach((i=>{const a=r[i];Object.defineProperty(r,i,{value(...l){var d;const u=A(this),c=this;c?typeof a=="function"&&a.call(c,...l):(d=u?.H)==null||d.then((f=>{const m=f[i];typeof m=="function"&&m.call(f,...l)}))}})}));{e.watchers&&!t.F&&(t.F=Se(e.watchers)),e.deserializers&&!t.P&&(t.P=e.deserializers),e.serializers&&!t.U&&(t.U=e.serializers);const i=Object.entries((s=t.t)!=null?s:{});i.map((([a,[l]])=>{if(31&l||32&l){const{get:d,set:u}=D(r,a)||{};d&&(t.t[a][0]|=2048),u&&(t.t[a][0]|=4096),Object.defineProperty(r,a,{get(){return d?d.apply(this):(c=a,A(this).l.get(c));var c},configurable:!0,enumerable:!0}),Object.defineProperty(r,a,{set(c){const f=A(this);if(f){if(u)return(32&l?this[a]:f.$hostElement$[a])===void 0&&f.l.get(a)&&(c=f.l.get(a)),u.apply(this,[ke(c,l,!!(64&t.i))]),void Pe(this,a,c=32&l?this[a]:f.$hostElement$[a],t);Pe(this,a,c,t)}}})}}));{const a=new Map;r.attributeChangedCallback=function(l,d,u){O.jmp((()=>{var c;const f=a.get(l),m=A(this);if(this.hasOwnProperty(f),r.hasOwnProperty(f)&&typeof this[f]=="number"&&this[f]==u)return;if(f==null){const g=m?.i;if(m&&g&&!(8&g)&&u!==d){const p=this,N=(c=t.F)==null?void 0:c[l];N?.forEach((v=>{const[[w,j]]=Object.entries(v);p[w]!=null&&(128&g||1&j)&&p[w].call(p,u,d,l)}))}return}const h=i.find((([g])=>g===f)),S=h&&4&h[1][0],b=S&&u===null&&this[f]===void 0;S&&(u=u!==null&&u!=="false");const y=Object.getOwnPropertyDescriptor(r,f);b||u==this[f]||y.get&&!y.set||(this[f]=u)}))},e.observedAttributes=Array.from(new Set([...Object.keys((n=t.F)!=null?n:{}),...i.filter((([l,d])=>31&d[0])).map((([l,d])=>{var u;const c=d[1]||l;return a.set(c,l),512&d[0]&&((u=t.C)==null||u.push([l,c])),c}))]))}}return e},at=(e,t)=>{const o={i:t[0],p:t[1]};try{o.t=t[2],o.W=t[3],o.F=Se(e.F),o.P=e.P,o.U=e.U,o.C=[];const s=e.prototype.connectedCallback,n=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((r,i)=>{const a={i:0,$hostElement$:r,o:i,l:new Map,B:new Map};a.H=new Promise((d=>a.L=d)),r["s-p"]=[],r["s-rc"]=[];const l=a;r.__stencil__getHostRef=()=>l,512&i.i&&Fe(r,a)})(this,o)},connectedCallback(){if(!this.__hasHostListenerAttached){const r=A(this);if(!r)return;Re(this,r,o.W),this.__hasHostListenerAttached=!0}(r=>{if(!(1&O.i)){const i=A(r);if(!i)return;const a=i.o;if(1&i.i)Re(r,i,a.W),i?.D||i?.H&&i.H.then((()=>{}));else{i.i|=1,12&a.i&&(l=>{if(!k.document)return;const d=l["s-cr"]=k.document.createComment("");d["s-cn"]=!0,$(l,d,l.firstChild)})(r);{let l=r;for(;l=l.parentNode||l.host;)if(l["s-p"]){xe(i,i.R=l);break}}a.t&&Object.entries(a.t).map((([l,[d]])=>{if(31&d&&Object.prototype.hasOwnProperty.call(r,l)){const u=r[l];delete r[l],r[l]=u}})),(async(l,d,u)=>{let c;try{if(!(32&d.i)&&(d.i|=32,c=l.constructor,customElements.whenDefined(l.localName).then((()=>d.i|=128)),c&&c.style)){let h;typeof c.style=="string"&&(h=c.style);const S=ye(u);U.has(S)||((b,y,g)=>{let p=U.get(b);Z&&g?(p=p||new CSSStyleSheet,typeof p=="string"?p=y:p.replaceSync(y)):p=y,U.set(b,p)})(S,h,!!(1&u.i))}const f=d.R,m=()=>ce(d,!0);f&&f["s-rc"]?f["s-rc"].push(m):m()}catch(f){R(f,l),d.A&&(d.A(),d.A=void 0),d.L&&d.L(l)}})(r,i,a)}}})(this),s&&s.call(this)},disconnectedCallback(){(async r=>{if(!(1&O.i)){const i=A(r);i?.V&&(i.V.map((a=>a())),i.V=void 0)}T.has(r)&&T.delete(r),r.shadowRoot&&T.has(r.shadowRoot)&&T.delete(r.shadowRoot)})(this),n&&n.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${o.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else ze.call(this,o)}}),Object.defineProperty(e,"is",{value:o.p,configurable:!0}),it(e,o,3)}catch(s){return R(s),e}},Re=(e,t,o)=>{o&&k.document&&o.map((([s,n,r])=>{const i=dt(k.document,e,s),a=ct(t,r),l=ut(s);O.ael(i,n,a,l),(t.V=t.V||[]).push((()=>O.rel(i,n,a,l)))}))},ct=(e,t)=>o=>{try{e.$hostElement$[t](o)}catch(s){R(s,e.$hostElement$)}},dt=(e,t,o)=>8&o?k:t,ut=e=>We?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e);function yt(e){return e}function Le(e){var t,o,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(o=Le(e[t]))&&(s&&(s+=" "),s+=o)}else for(o in e)e[o]&&(s&&(s+=" "),s+=o);return s}function ft(){for(var e,t,o=0,s="",n=arguments.length;o<n;o++)(e=arguments[o])&&(t=Le(e))&&(s&&(s+=" "),s+=t);return s}const ht=Object.freeze(Object.defineProperty({__proto__:null,getSkeletonBaseClassNames:({variant:e,animation:t})=>ft("gids-skeleton",{"gids-skeleton--variant-circular":e==="circular","gids-skeleton--variant-rectangular":e==="rectangular","gids-skeleton--variant-rounded":e==="rounded","gids-skeleton--animation-pulse":t==="pulse","gids-skeleton--animation-wave":t==="wave"})},Symbol.toStringTag,{value:"Module"})),{getSkeletonBaseClassNames:pt}=ht,De=at(class extends Be{constructor(e){super(),e!==!1&&this.__registerHost(),this.variant="text",this.animation="none"}getDimension(e){if(e!=null)return typeof e=="number"?e+"px":e}getStyle(){const e={},t=this.getDimension(this.width),o=this.getDimension(this.height);return t!==void 0&&(e.width=t),o!==void 0&&(e.height=o),e}render(){const e=pt({variant:this.variant??"text",animation:this.animation??"none"});return re(ve,{key:"09fe728912d038d44c4c3f5464ab057461aeabfc",class:e,style:this.getStyle(),"aria-hidden":"true"})}static get style(){return'gids-skeleton,.gids-skeleton-host{--gidsSkeleton-background:var( --gids-color-background-accent-9-subtle-default );--gidsSkeleton-wave-background:linear-gradient( 90deg, transparent 0%, var(--gids-color-background-accent-9-subtler-default) 50%, transparent 100% );--gidsSkeleton-text-border-radius:var(--gids-border-radius-sm);--gidsSkeleton-border-radius:var(--gids-border-radius-md);display:inline-block;position:relative;vertical-align:middle;background-color:var(--gidsSkeleton-background);overflow:hidden;width:auto;height:auto}.gids-skeleton--variant-text{border-radius:var(--gidsSkeleton-text-border-radius);min-height:1.2em;transform:scaleY(0.6);transform-origin:0 50%}.gids-skeleton--variant-circular{border-radius:100% !important;aspect-ratio:1/1}.gids-skeleton--variant-rectangular{border-radius:0}.gids-skeleton--variant-rounded{border-radius:var(--gidsSkeleton-border-radius)}.gids-skeleton--animation-none{animation:none}.gids-skeleton--animation-pulse{animation:gids-skeleton-pulse 1.5s ease-in-out infinite}.gids-skeleton--animation-wave::after{content:"";position:absolute;inset:0;width:100%;height:100%;background:var(--gidsSkeleton-wave-background);transform:translateX(-100%);animation:gids-skeleton-wave 1.6s linear infinite}@keyframes gids-skeleton-pulse{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}@keyframes gids-skeleton-wave{0%{transform:translateX(-100%)}100%{transform:translateX(100%)}}@media (prefers-reduced-motion: reduce){.gids-skeleton--animation-pulse{animation:none}.gids-skeleton--animation-wave::after{animation:none}}'}},[0,"gids-skeleton",{variant:[1],animation:[1],width:[8],height:[8]}]);function He(){typeof customElements<"u"&&["gids-skeleton"].forEach((e=>{e==="gids-skeleton"&&(customElements.get(e)||customElements.define(e,De))}))}He();const mt=De,gt=He;P.GidsSkeleton=mt,P.defineCustomElement=gt,Object.defineProperty(P,Symbol.toStringTag,{value:"Module"})}));
5
+ `);const S=this["s-cr"].parentElement;return(S.__childNodes?S.childNodes:(b=>{const y=[];for(let g=0;g<b.length;g++){const p=b[g]["s-nr"]||void 0;p&&p.isConnected&&y.push(p)}return y})(S.childNodes)).forEach((b=>{h===F(b)&&m.push(b)})),c?m.filter((b=>b.nodeType===1)):m}).bind(d);d.assignedElements=u(!0),d.assignedNodes=u(!1)})(r),a=e&&e.m&&e.m[o],a&&a.O===n.O&&e.S&&je(e.S)),r},je=e=>{O.i|=1;const t=e.closest(L.toLowerCase());if(t!=null){const o=Array.from(t.__childNodes||t.childNodes).find((n=>n["s-cr"])),s=Array.from(e.__childNodes||e.childNodes);for(const n of o?s.reverse():s)n["s-sh"]!=null&&($(t,n,o??null),n["s-sh"]=void 0,X=!0)}O.i&=-2},G=(e,t)=>{O.i|=1;const o=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"]===L&&o.push(s)}for(let s=o.length-1;s>=0;s--){const n=o[s];n["s-hn"]!==L&&n["s-ol"]&&($(B(n).parentNode,n,B(n)),n["s-ol"].remove(),n["s-ol"]=void 0,n["s-sh"]=void 0,X=!0),t&&G(n,t)}O.i&=-2},Ee=(e,t,o,s,n,r)=>{let i,a=e["s-cr"]&&e["s-cr"].parentNode||e;for(a.shadowRoot&&a.tagName===L&&(a=a.shadowRoot),o.O==="template"&&(a=a.content);n<=r;++n)s[n]&&(i=Y(null,o,n),i&&(s[n].S=i,$(a,i,B(t))))},$e=(e,t,o)=>{for(let s=t;s<=o;++s){const n=e[s];if(n){const r=n.S;Ae(n),r&&(z=!0,r["s-ol"]?r["s-ol"].remove():G(r,!0),r.remove())}}},I=(e,t,o=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:o?(o&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),B=e=>e&&e["s-ol"]||e,H=(e,t,o=!1)=>{const s=t.S=e.S,n=e.m,r=t.m,i=t.O,a=t.h;let l;a==null?(_=i==="svg"||i!=="foreignObject"&&_,i!=="slot"||V||e.j!==t.j&&(t.S["s-sn"]=t.j||"",je(t.S.parentElement)),le(e,t,_),n!==null&&r!==null?((d,u,c,f,m=!1)=>{let h,S,b=0,y=0,g=0,p=0,N=u.length-1,v=u[0],w=u[N],j=f.length-1,E=f[0],C=f[j];const Me=c.O==="template"?d.content:d;for(;b<=N&&y<=j;)if(v==null)v=u[++b];else if(w==null)w=u[--N];else if(E==null)E=f[++y];else if(C==null)C=f[--j];else if(I(v,E,m))H(v,E,m),v=u[++b],E=f[++y];else if(I(w,C,m))H(w,C,m),w=u[--N],C=f[--j];else if(I(v,C,m))v.O!=="slot"&&C.O!=="slot"||G(v.S.parentNode,!1),H(v,C,m),$(Me,v.S,w.S.nextSibling),v=u[++b],C=f[--j];else if(I(w,E,m))v.O!=="slot"&&C.O!=="slot"||G(w.S.parentNode,!1),H(w,E,m),$(Me,w.S,v.S),w=u[--N],E=f[++y];else{for(g=-1,p=b;p<=N;++p)if(u[p]&&u[p].$!==null&&u[p].$===E.$){g=p;break}g>=0?(S=u[g],S.O!==E.O?h=Y(u&&u[y],c,g):(H(S,E,m),u[g]=void 0,h=S.S),E=f[++y]):(h=Y(u&&u[y],c,y),E=f[++y]),h&&$(B(v.S).parentNode,h,B(v.S))}b>N?Ee(d,f[j+1]==null?null:f[j+1].S,c,f,y,j):y>j&&$e(u,b,N)})(s,n,t,r,o):r!==null?(e.h!==null&&(s.textContent=""),Ee(s,null,t,r,0,r.length-1)):!o&&n!==null&&$e(n,0,n.length-1),_&&i==="svg"&&(_=!1)):(l=s["s-cr"])?l.parentNode.textContent=a:e.h!==a&&(s.data=a)},x=[],Ce=e=>{let t,o,s;const n=e.__childNodes||e.childNodes;for(const r of n){if(r["s-sr"]&&(t=r["s-cr"])&&t.parentNode){o=t.parentNode.__childNodes||t.parentNode.childNodes;const i=r["s-sn"];for(s=o.length-1;s>=0;s--)if(t=o[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===r["s-hn"]||t["s-sh"]&&t["s-sh"]===r["s-hn"]))if(ge(t,i)){let a=x.find((l=>l.k===t));z=!0,t["s-sn"]=t["s-sn"]||i,a?(a.k["s-sh"]=r["s-hn"],a.N=r):(t["s-sh"]=r["s-hn"],x.push({N:r,k:t})),t["s-sr"]&&x.map((l=>{ge(l.k,t["s-sn"])&&(a=x.find((d=>d.k===t)),a&&!l.N&&(l.N=a.N))}))}else x.some((a=>a.k===t))||x.push({k:t})}r.nodeType===1&&Ce(r)}},Ae=e=>{e.v&&e.v.ref&&ie.push((()=>e.v.ref(null))),e.m&&e.m.map(Ae)},Ke=(e,t)=>{ae.push((()=>e(t)))},$=(e,t,o,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,o);const{slotNode:n}=(function(r,i){var a;if(!(i=i||((a=r["s-ol"])==null?void 0:a.parentElement)))return{slotNode:null,slotName:""};const l=r["s-sn"]=F(r)||"";return{slotNode:te(se(i,"childNodes"),i.tagName,l)[0],slotName:l}})(t);return n&&!s&&n.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,o):e?.insertBefore(t,o)},Qe=(e,t,o=!1)=>{var s,n,r,i,a;const l=e.$hostElement$,d=e.o,u=e.M||q(null,null);var c;const f=(c=t)&&c.O===ve?t:re(null,null,t);if(L=l.tagName,d.C&&(f.v=f.v||{},d.C.forEach((([m,h])=>{f.v[h]=l[m]}))),o&&f.v)for(const m of Object.keys(f.v))l.hasAttribute(m)&&!["key","ref","style","class"].includes(m)&&(f.v[m]=l[m]);if(f.O=null,f.i|=4,e.M=f,f.S=u.S=l.shadowRoot||l,V=!(!(1&d.i)||128&d.i),oe=l["s-cr"],z=!1,H(u,f,o),O.i|=1,X){Ce(f.S);for(const m of x){const h=m.k;if(!h["s-ol"]&&k.document){const S=k.document.createTextNode("");S["s-nr"]=h,$(h.parentNode,h["s-ol"]=S,h,o)}}for(const m of x){const h=m.k,S=m.N;if(h.nodeType===1&&o&&(h["s-ih"]=(s=h.hidden)!=null&&s),S){const b=S.parentNode;let y=S.nextSibling;if(y&&y.nodeType===1){let g=(n=h["s-ol"])==null?void 0:n.previousSibling;for(;g;){let p=(r=g["s-nr"])!=null?r:null;if(p&&p["s-sn"]===h["s-sn"]&&b===(p.__parentNode||p.parentNode)){for(p=p.nextSibling;p===h||p?.["s-sr"];)p=p?.nextSibling;if(!p||!p["s-nr"]){y=p;break}}g=g.previousSibling}}if((!y&&b!==(h.__parentNode||h.parentNode)||(h.__nextSibling||h.nextSibling)!==y)&&h!==y){if($(b,h,y,o),h.nodeType===8&&h.nodeValue.startsWith("s-nt-")){const g=k.document.createTextNode(h.nodeValue.replace(/^s-nt-/,""));g["s-hn"]=h["s-hn"],g["s-sn"]=h["s-sn"],g["s-sh"]=h["s-sh"],g["s-sr"]=h["s-sr"],g["s-ol"]=h["s-ol"],g["s-ol"]["s-nr"]=g,$(h.parentNode,g,h,o),h.parentNode.removeChild(h)}h.nodeType===1&&h.tagName!=="SLOT-FB"&&(h.hidden=(i=h["s-ih"])!=null&&i)}h&&typeof S["s-rf"]=="function"&&S["s-rf"](S)}else h.nodeType===1&&(h.hidden=!0)}}if(z&&me(f.S),O.i&=-2,x.length=0,!V&&!(1&d.i)&&l["s-cr"]){const m=f.S.__childNodes||f.S.childNodes;for(const h of m)if(h["s-hn"]!==L&&!h["s-sh"]){if(o&&h["s-ih"]==null&&(h["s-ih"]=(a=h.hidden)!=null&&a),h.nodeType===1)h.hidden=!0;else if(h.nodeType===3&&h.nodeValue.trim()){const S=k.document.createComment("s-nt-"+h.nodeValue);S["s-sn"]=h["s-sn"],$(h.parentNode,S,h,o),h.parentNode.removeChild(h)}}}oe=void 0,ie.forEach((m=>m())),ie.length=0,ae.forEach((m=>m())),ae.length=0},xe=(e,t)=>{if(t&&!e.A&&t["s-p"]){const o=t["s-p"].push(new Promise((s=>e.A=()=>{t["s-p"].splice(o-1,1),s()})))}},ce=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);xe(e,e.R);const o=()=>et(e,t);if(!t)return qe(o);queueMicrotask((()=>{o()}))},et=(e,t)=>{const o=e.$hostElement$,s=o;if(!s)throw new Error(`Can't render component <${o.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let n;return n=W(s,t?"componentWillLoad":"componentWillUpdate",void 0,o),n=Te(n,(()=>W(s,"componentWillRender",void 0,o))),Te(n,(()=>st(e,s,t)))},Te=(e,t)=>tt(e)?e.then(t).catch((o=>{console.error(o),t()})):t(),tt=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",st=async(e,t,o)=>{var s;const n=e.$hostElement$,r=n["s-rc"];o&&(i=>{const a=i.o,l=i.$hostElement$,d=a.i,u=((c,f)=>{var m,h,S;const b=ye(f),y=U.get(b);if(!k.document)return b;if(c=c.nodeType===11?c:k.document,y)if(typeof y=="string"){let g,p=T.get(c=c.head||c);if(p||T.set(c,p=new Set),!p.has(b)){g=k.document.createElement("style"),g.textContent=y;const N=(m=O._)!=null?m:(function(){var v,w,j;return(j=(w=(v=k.document.head)==null?void 0:v.querySelector('meta[name="csp-nonce"]'))==null?void 0:w.getAttribute("content"))!=null?j:void 0})();if(N!=null&&g.setAttribute("nonce",N),!(1&f.i))if(c.nodeName==="HEAD"){const v=c.querySelectorAll("link[rel=preconnect]"),w=v.length>0?v[v.length-1].nextSibling:c.querySelector("style");c.insertBefore(g,w?.parentNode===c?w:null)}else if("host"in c)if(Z){const v=new((h=c.defaultView)!=null?h:c.ownerDocument.defaultView).CSSStyleSheet;v.replaceSync(y),J?c.adoptedStyleSheets.unshift(v):c.adoptedStyleSheets=[v,...c.adoptedStyleSheets]}else{const v=c.querySelector("style");v?v.textContent=y+v.textContent:c.prepend(g)}else c.append(g);1&f.i&&c.insertBefore(g,null),4&f.i&&(g.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),p&&p.add(b)}}else{let g=T.get(c);if(g||T.set(c,g=new Set),!g.has(b)){const p=(S=c.defaultView)!=null?S:c.ownerDocument.defaultView;let N;if(y.constructor===p.CSSStyleSheet)N=y;else{N=new p.CSSStyleSheet;for(let v=0;v<y.cssRules.length;v++)N.insertRule(y.cssRules[v].cssText,v)}J?c.adoptedStyleSheets.push(N):c.adoptedStyleSheets=[...c.adoptedStyleSheets,N],g.add(b)}}return b})(l.shadowRoot?l.shadowRoot:l.getRootNode(),a);10&d&&(l["s-sc"]=u,l.classList.add(u+"-h"))})(e),ot(e,t,n,o),r&&(r.map((i=>i())),n["s-rc"]=void 0);{const i=(s=n["s-p"])!=null?s:[],a=()=>nt(e);i.length===0?a():(Promise.all(i).then(a).catch(a),e.i|=4,i.length=0)}},ot=(e,t,o,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,Qe(e,t,s)}catch(n){R(n,e.$hostElement$)}return null},nt=e=>{const t=e.$hostElement$,o=t,s=e.R;W(o,"componentDidRender",void 0,t),64&e.i?W(o,"componentDidUpdate",void 0,t):(e.i|=64,lt(t),W(o,"componentDidLoad",void 0,t),e.L(t),s||rt()),e.A&&(e.A(),e.A=void 0),512&e.i&&ee((()=>ce(e,!1))),e.i&=-517},rt=()=>{ee((()=>Ie(k,"appload",{detail:{namespace:"gids-core-web"}})))},W=(e,t,o,s)=>{if(e&&e[t])try{return e[t](o)}catch(n){R(n,s)}},lt=e=>e.classList.add("hydrated"),Pe=(e,t,o,s)=>{const n=A(e);if(!n)return;const r=e,i=n.l.get(t),a=n.i,l=r;o=ke(o,s.t[t][0],!!(64&s.i));const d=Number.isNaN(i)&&Number.isNaN(o);if(o!==i&&!d){if(n.l.set(t,o),s.F){const u=s.F[t];u&&u.map((c=>{try{const[[f,m]]=Object.entries(c);(128&a||1&m)&&(l?l[f](o,i,t):n.T.push((()=>{n.D[f](o,i,t)})))}catch(f){R(f,r)}}))}if(2&a){if(l.componentShouldUpdate&&l.componentShouldUpdate(o,i,t)===!1&&!(16&a))return;16&a||ce(n,!1)}}},it=(e,t,o)=>{var s,n;const r=e.prototype;64&t.i&&1&o&&Ve.forEach((i=>{const a=r[i];Object.defineProperty(r,i,{value(...l){var d;const u=A(this),c=this;c?typeof a=="function"&&a.call(c,...l):(d=u?.H)==null||d.then((f=>{const m=f[i];typeof m=="function"&&m.call(f,...l)}))}})}));{e.watchers&&!t.F&&(t.F=Se(e.watchers)),e.deserializers&&!t.P&&(t.P=e.deserializers),e.serializers&&!t.U&&(t.U=e.serializers);const i=Object.entries((s=t.t)!=null?s:{});i.map((([a,[l]])=>{if(31&l||32&l){const{get:d,set:u}=D(r,a)||{};d&&(t.t[a][0]|=2048),u&&(t.t[a][0]|=4096),Object.defineProperty(r,a,{get(){return d?d.apply(this):(c=a,A(this).l.get(c));var c},configurable:!0,enumerable:!0}),Object.defineProperty(r,a,{set(c){const f=A(this);if(f){if(u)return(32&l?this[a]:f.$hostElement$[a])===void 0&&f.l.get(a)&&(c=f.l.get(a)),u.apply(this,[ke(c,l,!!(64&t.i))]),void Pe(this,a,c=32&l?this[a]:f.$hostElement$[a],t);Pe(this,a,c,t)}}})}}));{const a=new Map;r.attributeChangedCallback=function(l,d,u){O.jmp((()=>{var c;const f=a.get(l),m=A(this);if(this.hasOwnProperty(f),r.hasOwnProperty(f)&&typeof this[f]=="number"&&this[f]==u)return;if(f==null){const g=m?.i;if(m&&g&&!(8&g)&&u!==d){const p=this,N=(c=t.F)==null?void 0:c[l];N?.forEach((v=>{const[[w,j]]=Object.entries(v);p[w]!=null&&(128&g||1&j)&&p[w].call(p,u,d,l)}))}return}const h=i.find((([g])=>g===f)),S=h&&4&h[1][0],b=S&&u===null&&this[f]===void 0;S&&(u=u!==null&&u!=="false");const y=Object.getOwnPropertyDescriptor(r,f);b||u==this[f]||y.get&&!y.set||(this[f]=u)}))},e.observedAttributes=Array.from(new Set([...Object.keys((n=t.F)!=null?n:{}),...i.filter((([l,d])=>31&d[0])).map((([l,d])=>{var u;const c=d[1]||l;return a.set(c,l),512&d[0]&&((u=t.C)==null||u.push([l,c])),c}))]))}}return e},at=(e,t)=>{const o={i:t[0],p:t[1]};try{o.t=t[2],o.W=t[3],o.F=Se(e.F),o.P=e.P,o.U=e.U,o.C=[];const s=e.prototype.connectedCallback,n=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((r,i)=>{const a={i:0,$hostElement$:r,o:i,l:new Map,B:new Map};a.H=new Promise((d=>a.L=d)),r["s-p"]=[],r["s-rc"]=[];const l=a;r.__stencil__getHostRef=()=>l,512&i.i&&Fe(r,a)})(this,o)},connectedCallback(){if(!this.__hasHostListenerAttached){const r=A(this);if(!r)return;Re(this,r,o.W),this.__hasHostListenerAttached=!0}(r=>{if(!(1&O.i)){const i=A(r);if(!i)return;const a=i.o;if(1&i.i)Re(r,i,a.W),i?.D||i?.H&&i.H.then((()=>{}));else{i.i|=1,12&a.i&&(l=>{if(!k.document)return;const d=l["s-cr"]=k.document.createComment("");d["s-cn"]=!0,$(l,d,l.firstChild)})(r);{let l=r;for(;l=l.parentNode||l.host;)if(l["s-p"]){xe(i,i.R=l);break}}a.t&&Object.entries(a.t).map((([l,[d]])=>{if(31&d&&Object.prototype.hasOwnProperty.call(r,l)){const u=r[l];delete r[l],r[l]=u}})),(async(l,d,u)=>{let c;try{if(!(32&d.i)&&(d.i|=32,c=l.constructor,customElements.whenDefined(l.localName).then((()=>d.i|=128)),c&&c.style)){let h;typeof c.style=="string"&&(h=c.style);const S=ye(u);U.has(S)||((b,y,g)=>{let p=U.get(b);Z&&g?(p=p||new CSSStyleSheet,typeof p=="string"?p=y:p.replaceSync(y)):p=y,U.set(b,p)})(S,h,!!(1&u.i))}const f=d.R,m=()=>ce(d,!0);f&&f["s-rc"]?f["s-rc"].push(m):m()}catch(f){R(f,l),d.A&&(d.A(),d.A=void 0),d.L&&d.L(l)}})(r,i,a)}}})(this),s&&s.call(this)},disconnectedCallback(){(async r=>{if(!(1&O.i)){const i=A(r);i?.V&&(i.V.map((a=>a())),i.V=void 0)}T.has(r)&&T.delete(r),r.shadowRoot&&T.has(r.shadowRoot)&&T.delete(r.shadowRoot)})(this),n&&n.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${o.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else ze.call(this,o)}}),Object.defineProperty(e,"is",{value:o.p,configurable:!0}),it(e,o,3)}catch(s){return R(s),e}},Re=(e,t,o)=>{o&&k.document&&o.map((([s,n,r])=>{const i=dt(k.document,e,s),a=ct(t,r),l=ut(s);O.ael(i,n,a,l),(t.V=t.V||[]).push((()=>O.rel(i,n,a,l)))}))},ct=(e,t)=>o=>{try{e.$hostElement$[t](o)}catch(s){R(s,e.$hostElement$)}},dt=(e,t,o)=>8&o?k:t,ut=e=>We?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e);function yt(e){return e}function Le(e){var t,o,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(o=Le(e[t]))&&(s&&(s+=" "),s+=o)}else for(o in e)e[o]&&(s&&(s+=" "),s+=o);return s}function ft(){for(var e,t,o=0,s="",n=arguments.length;o<n;o++)(e=arguments[o])&&(t=Le(e))&&(s&&(s+=" "),s+=t);return s}const ht=Object.freeze(Object.defineProperty({__proto__:null,getSkeletonBaseClassNames:({variant:e,animation:t})=>ft("gids-skeleton",{"gids-skeleton--variant-circular":e==="circular","gids-skeleton--variant-rectangular":e==="rectangular","gids-skeleton--variant-rounded":e==="rounded","gids-skeleton--animation-pulse":t==="pulse","gids-skeleton--animation-wave":t==="wave"})},Symbol.toStringTag,{value:"Module"})),{getSkeletonBaseClassNames:pt}=ht,De=at(class extends Be{constructor(e){super(),e!==!1&&this.__registerHost(),this.variant="text",this.animation="none"}getDimension(e){if(e!=null)return typeof e=="number"?e+"px":e}getStyle(){const e={},t=this.getDimension(this.width),o=this.getDimension(this.height);return t!==void 0&&(e.width=t),o!==void 0&&(e.height=o),e}render(){const e=pt({variant:this.variant??"text",animation:this.animation??"none"});return re(ve,{key:"91812440e5f71f20d59cf03b8b18f3aabaf96960",class:e,style:this.getStyle(),"aria-hidden":"true"})}static get style(){return'gids-skeleton,.gids-skeleton-host{--gidsSkeleton-background:var( --gids-color-background-accent-9-subtle-default );--gidsSkeleton-wave-background:linear-gradient( 90deg, transparent 0%, var(--gids-color-background-accent-9-subtler-default) 50%, transparent 100% );--gidsSkeleton-text-border-radius:var(--gids-border-radius-sm);--gidsSkeleton-border-radius:var(--gids-border-radius-md);display:inline-block;position:relative;vertical-align:middle;background-color:var(--gidsSkeleton-background);overflow:hidden;width:auto;height:auto}.gids-skeleton--variant-text{border-radius:var(--gidsSkeleton-text-border-radius);min-height:1.2em;transform:scaleY(0.6);transform-origin:0 50%}.gids-skeleton--variant-circular{border-radius:100% !important;aspect-ratio:1/1}.gids-skeleton--variant-rectangular{border-radius:0}.gids-skeleton--variant-rounded{border-radius:var(--gidsSkeleton-border-radius)}.gids-skeleton--animation-none{animation:none}.gids-skeleton--animation-pulse{animation:gids-skeleton-pulse 1.5s ease-in-out infinite}.gids-skeleton--animation-wave::after{content:"";position:absolute;inset:0;width:100%;height:100%;background:var(--gidsSkeleton-wave-background);transform:translateX(-100%);animation:gids-skeleton-wave 1.6s linear infinite}@keyframes gids-skeleton-pulse{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}@keyframes gids-skeleton-wave{0%{transform:translateX(-100%)}100%{transform:translateX(100%)}}@media (prefers-reduced-motion: reduce){.gids-skeleton--animation-pulse{animation:none}.gids-skeleton--animation-wave::after{animation:none}}'}},[0,"gids-skeleton",{variant:[1],animation:[1],width:[8],height:[8]}]);function He(){typeof customElements<"u"&&["gids-skeleton"].forEach((e=>{e==="gids-skeleton"&&(customElements.get(e)||customElements.define(e,De))}))}He();const mt=De,gt=He;P.GidsSkeleton=mt,P.defineCustomElement=gt,Object.defineProperty(P,Symbol.toStringTag,{value:"Module"})}));
@@ -2,4 +2,4 @@
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 S=this["s-cr"].parentElement;return(S.__childNodes?S.childNodes:(y=>{const m=[];for(let p=0;p<y.length;p++){const f=y[p]["s-nr"]||void 0;f&&f.isConnected&&m.push(f)}return m})(S.childNodes)).forEach((y=>{h===H(y)&&b.push(y)})),d?b.filter((y=>y.nodeType===1)):b}).bind(c);c.assignedElements=u(!0),c.assignedNodes=u(!1)})(i),a=e&&e.m&&e.m[s],a&&a.O===r.O&&e.S&&Te(e.S)),i},Te=e=>{_.i|=1;const t=e.closest(R.toLowerCase());if(t!=null){const s=Array.from(t.__childNodes||t.childNodes).find((r=>r["s-cr"])),o=Array.from(e.__childNodes||e.childNodes);for(const r of s?o.reverse():o)r["s-sh"]!=null&&(x(t,r,s??null),r["s-sh"]=void 0,q=!0)}_.i&=-2},Z=(e,t)=>{_.i|=1;const s=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let o=e;for(;o=o.nextSibling;)o&&o["s-sn"]===e["s-sn"]&&o["s-sh"]===R&&s.push(o)}for(let o=s.length-1;o>=0;o--){const r=s[o];r["s-hn"]!==R&&r["s-ol"]&&(x(W(r).parentNode,r,W(r)),r["s-ol"].remove(),r["s-ol"]=void 0,r["s-sh"]=void 0,q=!0),t&&Z(r,t)}_.i&=-2},xe=(e,t,s,o,r,i)=>{let l,a=e["s-cr"]&&e["s-cr"].parentNode||e;for(a.shadowRoot&&a.tagName===R&&(a=a.shadowRoot),s.O==="template"&&(a=a.content);r<=i;++r)o[r]&&(l=Y(null,s,r),l&&(o[r].S=l,x(a,l,W(t))))},Ae=(e,t,s)=>{for(let o=t;o<=s;++o){const r=e[o];if(r){const i=r.S;$e(r),i&&(U=!0,i["s-ol"]?i["s-ol"].remove():Z(i,!0),i.remove())}}},J=(e,t,s=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:s?(s&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),W=e=>e&&e["s-ol"]||e,B=(e,t,s=!1)=>{const o=t.S=e.S,r=e.m,i=t.m,l=t.O,a=t.h;let n;a==null?(C=l==="svg"||l!=="foreignObject"&&C,l!=="slot"||M||e.j!==t.j&&(t.S["s-sn"]=t.j||"",Te(t.S.parentElement)),ae(e,t,C),r!==null&&i!==null?((c,u,d,g,b=!1)=>{let h,S,y=0,m=0,p=0,f=0,N=u.length-1,v=u[0],w=u[N],O=g.length-1,T=g[0],j=g[O];const We=d.O==="template"?c.content:c;for(;y<=N&&m<=O;)if(v==null)v=u[++y];else if(w==null)w=u[--N];else if(T==null)T=g[++m];else if(j==null)j=g[--O];else if(J(v,T,b))B(v,T,b),v=u[++y],T=g[++m];else if(J(w,j,b))B(w,j,b),w=u[--N],j=g[--O];else if(J(v,j,b))v.O!=="slot"&&j.O!=="slot"||Z(v.S.parentNode,!1),B(v,j,b),x(We,v.S,w.S.nextSibling),v=u[++y],j=g[--O];else if(J(w,T,b))v.O!=="slot"&&j.O!=="slot"||Z(w.S.parentNode,!1),B(w,T,b),x(We,w.S,v.S),w=u[--N],T=g[++m];else{for(p=-1,f=y;f<=N;++f)if(u[f]&&u[f].$!==null&&u[f].$===T.$){p=f;break}p>=0?(S=u[p],S.O!==T.O?h=Y(u&&u[m],d,p):(B(S,T,b),u[p]=void 0,h=S.S),T=g[++m]):(h=Y(u&&u[m],d,m),T=g[++m]),h&&x(W(v.S).parentNode,h,W(v.S))}y>N?xe(c,g[O+1]==null?null:g[O+1].S,d,g,m,O):m>O&&Ae(u,y,N)})(o,r,t,i,s):i!==null?(e.h!==null&&(o.textContent=""),xe(o,null,t,i,0,i.length-1)):!s&&r!==null&&Ae(r,0,r.length-1),C&&l==="svg"&&(C=!1)):(n=o["s-cr"])?n.parentNode.textContent=a:e.h!==a&&(o.data=a)},E=[],je=e=>{let t,s,o;const r=e.__childNodes||e.childNodes;for(const i of r){if(i["s-sr"]&&(t=i["s-cr"])&&t.parentNode){s=t.parentNode.__childNodes||t.parentNode.childNodes;const l=i["s-sn"];for(o=s.length-1;o>=0;o--)if(t=s[o],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===i["s-hn"]||t["s-sh"]&&t["s-sh"]===i["s-hn"]))if(me(t,l)){let a=E.find((n=>n.k===t));U=!0,t["s-sn"]=t["s-sn"]||l,a?(a.k["s-sh"]=i["s-hn"],a.N=i):(t["s-sh"]=i["s-hn"],E.push({N:i,k:t})),t["s-sr"]&&E.map((n=>{me(n.k,t["s-sn"])&&(a=E.find((c=>c.k===t)),a&&!n.N&&(n.N=a.N))}))}else E.some((a=>a.k===t))||E.push({k:t})}i.nodeType===1&&je(i)}},$e=e=>{e.v&&e.v.ref&&le.push((()=>e.v.ref(null))),e.m&&e.m.map($e)},ot=(e,t)=>{de.push((()=>e(t)))},x=(e,t,s,o)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,s);const{slotNode:r}=(function(i,l){var a;if(!(l=l||((a=i["s-ol"])==null?void 0:a.parentElement)))return{slotNode:null,slotName:""};const n=i["s-sn"]=H(i)||"";return{slotNode:se(re(l,"childNodes"),l.tagName,n)[0],slotName:n}})(t);return r&&!o&&r.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,s):e?.insertBefore(t,s)},st=(e,t,s=!1)=>{var o,r,i,l,a;const n=e.$hostElement$,c=e.o,u=e.M||z(null,null);var d;const g=(d=t)&&d.O===ye?t:A(null,null,t);if(R=n.tagName,c.C&&(g.v=g.v||{},c.C.forEach((([b,h])=>{g.v[h]=n[b]}))),s&&g.v)for(const b of Object.keys(g.v))n.hasAttribute(b)&&!["key","ref","style","class"].includes(b)&&(g.v[b]=n[b]);if(g.O=null,g.i|=4,e.M=g,g.S=u.S=n.shadowRoot||n,M=!(!(1&c.i)||128&c.i),ie=n["s-cr"],U=!1,B(u,g,s),_.i|=1,q){je(g.S);for(const b of E){const h=b.k;if(!h["s-ol"]&&k.document){const S=k.document.createTextNode("");S["s-nr"]=h,x(h.parentNode,h["s-ol"]=S,h,s)}}for(const b of E){const h=b.k,S=b.N;if(h.nodeType===1&&s&&(h["s-ih"]=(o=h.hidden)!=null&&o),S){const y=S.parentNode;let m=S.nextSibling;if(m&&m.nodeType===1){let p=(r=h["s-ol"])==null?void 0:r.previousSibling;for(;p;){let f=(i=p["s-nr"])!=null?i:null;if(f&&f["s-sn"]===h["s-sn"]&&y===(f.__parentNode||f.parentNode)){for(f=f.nextSibling;f===h||f?.["s-sr"];)f=f?.nextSibling;if(!f||!f["s-nr"]){m=f;break}}p=p.previousSibling}}if((!m&&y!==(h.__parentNode||h.parentNode)||(h.__nextSibling||h.nextSibling)!==m)&&h!==m){if(x(y,h,m,s),h.nodeType===8&&h.nodeValue.startsWith("s-nt-")){const p=k.document.createTextNode(h.nodeValue.replace(/^s-nt-/,""));p["s-hn"]=h["s-hn"],p["s-sn"]=h["s-sn"],p["s-sh"]=h["s-sh"],p["s-sr"]=h["s-sr"],p["s-ol"]=h["s-ol"],p["s-ol"]["s-nr"]=p,x(h.parentNode,p,h,s),h.parentNode.removeChild(h)}h.nodeType===1&&h.tagName!=="SLOT-FB"&&(h.hidden=(l=h["s-ih"])!=null&&l)}h&&typeof S["s-rf"]=="function"&&S["s-rf"](S)}else h.nodeType===1&&(h.hidden=!0)}}if(U&&pe(g.S),_.i&=-2,E.length=0,!M&&!(1&c.i)&&n["s-cr"]){const b=g.S.__childNodes||g.S.childNodes;for(const h of b)if(h["s-hn"]!==R&&!h["s-sh"]){if(s&&h["s-ih"]==null&&(h["s-ih"]=(a=h.hidden)!=null&&a),h.nodeType===1)h.hidden=!0;else if(h.nodeType===3&&h.nodeValue.trim()){const S=k.document.createComment("s-nt-"+h.nodeValue);S["s-sn"]=h["s-sn"],x(h.parentNode,S,h,s),h.parentNode.removeChild(h)}}}ie=void 0,le.forEach((b=>b())),le.length=0,de.forEach((b=>b())),de.length=0},Ee=(e,t)=>{if(t&&!e.A&&t["s-p"]){const s=t["s-p"].push(new Promise((o=>e.A=()=>{t["s-p"].splice(s-1,1),o()})))}},ce=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);Ee(e,e.R);const s=()=>rt(e,t);if(!t)return Ye(s);queueMicrotask((()=>{s()}))},rt=(e,t)=>{const s=e.$hostElement$,o=s;if(!o)throw new Error(`Can't render component <${s.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 r;return r=F(o,t?"componentWillLoad":"componentWillUpdate",void 0,s),r=Ie(r,(()=>F(o,"componentWillRender",void 0,s))),Ie(r,(()=>nt(e,o,t)))},Ie=(e,t)=>it(e)?e.then(t).catch((s=>{console.error(s),t()})):t(),it=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",nt=async(e,t,s)=>{var o;const r=e.$hostElement$,i=r["s-rc"];s&&(l=>{const a=l.o,n=l.$hostElement$,c=a.i,u=((d,g)=>{var b,h,S;const y=ve(g),m=G.get(y);if(!k.document)return y;if(d=d.nodeType===11?d:k.document,m)if(typeof m=="string"){let p,f=I.get(d=d.head||d);if(f||I.set(d,f=new Set),!f.has(y)){p=k.document.createElement("style"),p.textContent=m;const N=(b=_._)!=null?b:(function(){var v,w,O;return(O=(w=(v=k.document.head)==null?void 0:v.querySelector('meta[name="csp-nonce"]'))==null?void 0:w.getAttribute("content"))!=null?O:void 0})();if(N!=null&&p.setAttribute("nonce",N),!(1&g.i))if(d.nodeName==="HEAD"){const v=d.querySelectorAll("link[rel=preconnect]"),w=v.length>0?v[v.length-1].nextSibling:d.querySelector("style");d.insertBefore(p,w?.parentNode===d?w:null)}else if("host"in d)if(Q){const v=new((h=d.defaultView)!=null?h:d.ownerDocument.defaultView).CSSStyleSheet;v.replaceSync(m),X?d.adoptedStyleSheets.unshift(v):d.adoptedStyleSheets=[v,...d.adoptedStyleSheets]}else{const v=d.querySelector("style");v?v.textContent=m+v.textContent:d.prepend(p)}else d.append(p);1&g.i&&d.insertBefore(p,null),4&g.i&&(p.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),f&&f.add(y)}}else{let p=I.get(d);if(p||I.set(d,p=new Set),!p.has(y)){const f=(S=d.defaultView)!=null?S:d.ownerDocument.defaultView;let N;if(m.constructor===f.CSSStyleSheet)N=m;else{N=new f.CSSStyleSheet;for(let v=0;v<m.cssRules.length;v++)N.insertRule(m.cssRules[v].cssText,v)}X?d.adoptedStyleSheets.push(N):d.adoptedStyleSheets=[...d.adoptedStyleSheets,N],p.add(y)}}return y})(n.shadowRoot?n.shadowRoot:n.getRootNode(),a);10&c&&(n["s-sc"]=u,n.classList.add(u+"-h"))})(e),at(e,t,r,s),i&&(i.map((l=>l())),r["s-rc"]=void 0);{const l=(o=r["s-p"])!=null?o:[],a=()=>lt(e);l.length===0?a():(Promise.all(l).then(a).catch(a),e.i|=4,l.length=0)}},at=(e,t,s,o)=>{try{t=t.render(),e.i&=-17,e.i|=2,st(e,t,o)}catch(r){L(r,e.$hostElement$)}return null},lt=e=>{const t=e.$hostElement$,s=t,o=e.R;F(s,"componentDidRender",void 0,t),64&e.i?F(s,"componentDidUpdate",void 0,t):(e.i|=64,ct(t),F(s,"componentDidLoad",void 0,t),e.L(t),o||dt()),e.A&&(e.A(),e.A=void 0),512&e.i&&oe((()=>ce(e,!1))),e.i&=-517},dt=()=>{oe((()=>Xe(k,"appload",{detail:{namespace:"gids-core-web"}})))},F=(e,t,s,o)=>{if(e&&e[t])try{return e[t](s)}catch(r){L(r,o)}},ct=e=>e.classList.add("hydrated"),Pe=(e,t,s,o)=>{const r=$(e);if(!r)return;const i=e,l=r.l.get(t),a=r.i,n=i;s=we(s,o.t[t][0],!!(64&o.i));const c=Number.isNaN(l)&&Number.isNaN(s);if(s!==l&&!c){if(r.l.set(t,s),o.F){const u=o.F[t];u&&u.map((d=>{try{const[[g,b]]=Object.entries(d);(128&a||1&b)&&(n?n[g](s,l,t):r.T.push((()=>{r.D[g](s,l,t)})))}catch(g){L(g,i)}}))}if(2&a){if(n.componentShouldUpdate&&n.componentShouldUpdate(s,l,t)===!1&&!(16&a))return;16&a||ce(r,!1)}}},ut=(e,t,s)=>{var o,r;const i=e.prototype;64&t.i&&1&s&&Ge.forEach((l=>{const a=i[l];Object.defineProperty(i,l,{value(...n){var c;const u=$(this),d=this;d?typeof a=="function"&&a.call(d,...n):(c=u?.H)==null||c.then((g=>{const b=g[l];typeof b=="function"&&b.call(g,...n)}))}})}));{e.watchers&&!t.F&&(t.F=ke(e.watchers)),e.deserializers&&!t.P&&(t.P=e.deserializers),e.serializers&&!t.U&&(t.U=e.serializers);const l=Object.entries((o=t.t)!=null?o:{});l.map((([a,[n]])=>{if(31&n||32&n){const{get:c,set:u}=V(i,a)||{};c&&(t.t[a][0]|=2048),u&&(t.t[a][0]|=4096),Object.defineProperty(i,a,{get(){return c?c.apply(this):(d=a,$(this).l.get(d));var d},configurable:!0,enumerable:!0}),Object.defineProperty(i,a,{set(d){const g=$(this);if(g){if(u)return(32&n?this[a]:g.$hostElement$[a])===void 0&&g.l.get(a)&&(d=g.l.get(a)),u.apply(this,[we(d,n,!!(64&t.i))]),void Pe(this,a,d=32&n?this[a]:g.$hostElement$[a],t);Pe(this,a,d,t)}}})}}));{const a=new Map;i.attributeChangedCallback=function(n,c,u){_.jmp((()=>{var d;const g=a.get(n),b=$(this);if(this.hasOwnProperty(g),i.hasOwnProperty(g)&&typeof this[g]=="number"&&this[g]==u)return;if(g==null){const p=b?.i;if(b&&p&&!(8&p)&&u!==c){const f=this,N=(d=t.F)==null?void 0:d[n];N?.forEach((v=>{const[[w,O]]=Object.entries(v);f[w]!=null&&(128&p||1&O)&&f[w].call(f,u,c,n)}))}return}const h=l.find((([p])=>p===g)),S=h&&4&h[1][0],y=S&&u===null&&this[g]===void 0;S&&(u=u!==null&&u!=="false");const m=Object.getOwnPropertyDescriptor(i,g);y||u==this[g]||m.get&&!m.set||(this[g]=u)}))},e.observedAttributes=Array.from(new Set([...Object.keys((r=t.F)!=null?r:{}),...l.filter((([n,c])=>31&c[0])).map((([n,c])=>{var u;const d=c[1]||n;return a.set(d,n),512&c[0]&&((u=t.C)==null||u.push([n,d])),d}))]))}}return e},gt=(e,t)=>{const s={i:t[0],p:t[1]};try{s.t=t[2],s.W=t[3],s.F=ke(e.F),s.P=e.P,s.U=e.U,s.C=[];const o=e.prototype.connectedCallback,r=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((i,l)=>{const a={i:0,$hostElement$:i,o:l,l:new Map,B:new Map};a.H=new Promise((c=>a.L=c)),i["s-p"]=[],i["s-rc"]=[];const n=a;i.__stencil__getHostRef=()=>n,512&l.i&&Fe(i,a)})(this,s)},connectedCallback(){if(!this.__hasHostListenerAttached){const i=$(this);if(!i)return;Le(this,i,s.W),this.__hasHostListenerAttached=!0}(i=>{if(!(1&_.i)){const l=$(i);if(!l)return;const a=l.o;if(1&l.i)Le(i,l,a.W),l?.D||l?.H&&l.H.then((()=>{}));else{l.i|=1,12&a.i&&(n=>{if(!k.document)return;const c=n["s-cr"]=k.document.createComment("");c["s-cn"]=!0,x(n,c,n.firstChild)})(i);{let n=i;for(;n=n.parentNode||n.host;)if(n["s-p"]){Ee(l,l.R=n);break}}a.t&&Object.entries(a.t).map((([n,[c]])=>{if(31&c&&Object.prototype.hasOwnProperty.call(i,n)){const u=i[n];delete i[n],i[n]=u}})),(async(n,c,u)=>{let d;try{if(!(32&c.i)&&(c.i|=32,d=n.constructor,customElements.whenDefined(n.localName).then((()=>c.i|=128)),d&&d.style)){let h;typeof d.style=="string"&&(h=d.style);const S=ve(u);G.has(S)||((y,m,p)=>{let f=G.get(y);Q&&p?(f=f||new CSSStyleSheet,typeof f=="string"?f=m:f.replaceSync(m)):f=m,G.set(y,f)})(S,h,!!(1&u.i))}const g=c.R,b=()=>ce(c,!0);g&&g["s-rc"]?g["s-rc"].push(b):b()}catch(g){L(g,n),c.A&&(c.A(),c.A=void 0),c.L&&c.L(n)}})(i,l,a)}}})(this),o&&o.call(this)},disconnectedCallback(){(async i=>{if(!(1&_.i)){const l=$(i);l?.V&&(l.V.map((a=>a())),l.V=void 0)}I.has(i)&&I.delete(i),i.shadowRoot&&I.has(i.shadowRoot)&&I.delete(i.shadowRoot)})(this),r&&r.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${s.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else Ze.call(this,s)}}),Object.defineProperty(e,"is",{value:s.p,configurable:!0}),ut(e,s,3)}catch(o){return L(o),e}},Le=(e,t,s)=>{s&&k.document&&s.map((([o,r,i])=>{const l=ft(k.document,e,o),a=ht(t,i),n=bt(o);_.ael(l,r,a,n),(t.V=t.V||[]).push((()=>_.rel(l,r,a,n)))}))},ht=(e,t)=>s=>{try{e.$hostElement$[t](s)}catch(o){L(o,e.$hostElement$)}},ft=(e,t,s)=>8&s?k:t,bt=e=>Ue?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e);function Ct(e){return e}function Re(e){var t,s,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(s=Re(e[t]))&&(o&&(o+=" "),o+=s)}else for(s in e)e[s]&&(o&&(o+=" "),o+=s);return o}function Ve(){for(var e,t,s=0,o="",r=arguments.length;s<r;s++)(e=arguments[s])&&(t=Re(e))&&(o&&(o+=" "),o+=t);return o}const K=99,pt=Object.freeze(Object.defineProperty({__proto__:null,getDisplayContent:(e,t)=>e===void 0?t??"":e>K?`${K}+`:e.toString(),maxCount:K,shouldIncludeA11yText:(e,t,s)=>e==="dot"||t!==void 0&&t>K||s},Symbol.toStringTag,{value:"Module"})),mt=Object.freeze(Object.defineProperty({__proto__:null,getGidsBadgeClassNames:({appearance:e,type:t,outline:s},o)=>Ve("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":s},o)},Symbol.toStringTag,{value:"Module"})),vt=Object.freeze(Object.defineProperty({__proto__:null,getGidsTabItemClassNames:({appearance:e,width:t="intrinsic",active:s},o)=>Ve("gids-tab-item",{"gids-tab-item--full":t==="full","gids-tab-item--active-default":e==="default"&&s,"gids-tab-item--active-primary":e==="primary"&&s,"gids-tab-item--active-bordered":e==="bordered"&&s,"gids-tab-item--active-underlined":e==="underlined"&&s,"gids-tab-item--active-subtle":e==="subtle"&&s,"gids-tab-item--default":e==="default"&&!s,"gids-tab-item--primary":e==="primary"&&!s,"gids-tab-item--bordered":e==="bordered"&&!s,"gids-tab-item--underlined":e==="underlined"&&!s,"gids-tab-item--subtle":e==="subtle"&&!s},o)},Symbol.toStringTag,{value:"Module"})),Be=e=>e!==void 0&&(!Array.isArray(e)||e.length>0),{getDisplayContent:De,shouldIncludeA11yText:yt}=pt,{getGidsBadgeClassNames:St}=mt,kt=({appearance:e,type:t,count:s,accessibleText:o,outline:r,class:i,...l})=>{const a=yt(t,s,Be(o));return A("span",{class:St({appearance:e,type:t,outline:r},i),...l},a&&A("span",{class:"gids-visually-hidden"},Be(o)?o:s),t==="notification"?a?A("span",{"aria-hidden":"true"},De(s,o)):De(s,o):null)},{getGidsTabItemClassNames:wt}=vt,He=gt(class extends ze{constructor(e){super(),e!==!1&&this.__registerHost(),this.active=!1,this.width="intrinsic",this.appearance="default",this.badgeVisible=!1,this.badgeAppearance="information",this.badgeType="dot",this.hasLeadingIcon=!1,this.hasTrailingIcon=!1,this.handleHostClick=()=>{this.onPressGidsTabItem&&this.onPressGidsTabItem({itemId:this.itemId,label:this?.label??"",active:this?.active??!1,appearance:this?.appearance??"default",name:this?.name,badgeCount:this?.badgeCount??0})}}handleWidthChange(e){this.width=e}handleAppearanceChange(e){this.appearance=e}handleBadgeVisibilityChange(e){this.badgeVisible=e}handleBadgeAppearanceChange(e){this.badgeAppearance=e}handleBadgeTypeChange(e){this.badgeType=e}handleActiveChange(e){this.active=e}componentWillLoad(){this.checkSlots()}componentWillUpdate(){this.checkSlots()}checkSlots(){this.hasLeadingIcon=!!this.hostElement.querySelector('[slot="leadingIconTabItem"]'),this.hasTrailingIcon=!!this.hostElement.querySelector('[slot="trailingIconTabItem"]')}render(){const e=wt({appearance:this.appearance,width:this.width,active:this.active}),t=this.hasTrailingIcon,s=this.badgeVisible,o=this.appearance==="primary"&&this.active?"inverse":this.badgeAppearance??"information",r=this.label;return A(ye,{key:"a364c69d22d8bb640c9f280b5d1722f1e379e046",class:e,onClick:this.handleHostClick},this.hasLeadingIcon?A("slot",{name:"leadingIconTabItem"}):void 0,r&&r!==""?A("span",{class:"gids-tab-item__label"},r&&r!==""?r:void 0,s?A(kt,{appearance:o,type:this.badgeType,count:this.badgeCount}):void 0):void 0,t?A("slot",{name:"trailingIconTabItem"}):void 0)}get hostElement(){return this}static get watchers(){return{width:[{handleWidthChange:0}],appearance:[{handleAppearanceChange:0}],badgeVisible:[{handleBadgeVisibilityChange:0}],badgeAppearance:[{handleBadgeAppearanceChange:0}],badgeType:[{handleBadgeTypeChange:0}],active:[{handleActiveChange:0}]}}static get style(){return".gids-tab-item{margin:0;padding:0;appearance:none;border:none;background:none;display:inline-flex;justify-content:center;align-items:center;gap:var(--gids-gap-100);padding:var(--gids-padding-vertical-edge-to-element-150) var(--gids-padding-horizontal-edge-to-element-150);color:var(--gids-color-text-accent-5);white-space:nowrap;flex-shrink:0;cursor:pointer}.gids-tab-item .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-5)}.gids-tab-item__label{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);display:flex;justify-content:center;align-items:center;flex:1;gap:var(--gids-gap-150)}.gids-tab-item--full{display:flex}.gids-tab-item--default{border-radius:var(--gids-border-radius-md)}.gids-tab-item--default:hover{background-color:var(--gids-color-background-accent-4-subtler-hovered);color:var(--gids-color-text-accent-4)}.gids-tab-item--default:hover .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-4)}.gids-tab-item--default:active{background-color:var(--gids-color-background-accent-4-subtler-pressed);color:var(--gids-color-text-accent-4)}.gids-tab-item--default:active .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-4)}.gids-tab-item--primary{border-radius:var(--gids-border-radius-md)}.gids-tab-item--primary:hover{background-color:var(--gids-color-background-accent-4-bolder-hovered);color:var(--gids-color-text-inverse)}.gids-tab-item--primary:hover .gids-icon{--gidsIcon-color:var(--gids-color-icon-inverse)}.gids-tab-item--primary:active{background-color:var(--gids-color-background-accent-4-bolder-pressed);color:var(--gids-color-text-inverse)}.gids-tab-item--primary:active .gids-icon{--gidsIcon-color:var(--gids-color-icon-inverse)}.gids-tab-item--bordered{border-radius:var(--gids-border-radius-full)}.gids-tab-item--bordered:hover{background-color:var(--gids-color-background-accent-4-subtlest-hovered);color:var(--gids-color-text-accent-4);border:var(--gids-border-width-thick) solid var(--gids-color-border-accent-4)}.gids-tab-item--bordered:hover .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-4)}.gids-tab-item--bordered:active{background-color:var(--gids-color-background-accent-4-subtlest-pressed);color:var(--gids-color-text-accent-4);border:var(--gids-border-width-thick) solid var(--gids-color-border-accent-4)}.gids-tab-item--bordered:active .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-4)}.gids-tab-item--underlined{border-bottom:var(--gids-border-width-thick) solid var(--gids-color-border-input)}.gids-tab-item--underlined:hover{background-color:var(--gids-color-background-accent-4-subtlest-hovered);border-bottom:var(--gids-border-width-thick) solid var(--gids-color-border-accent-4);border-top-left-radius:var(--gids-border-radius-md);border-top-right-radius:var(--gids-border-radius-md);color:var(--gids-color-text-accent-4)}.gids-tab-item--underlined:active{background-color:var(--gids-color-background-accent-4-subtlest-pressed);border-bottom:var(--gids-border-width-thick) solid var(--gids-color-border-accent-4);border-top-left-radius:var(--gids-border-radius-md);border-top-right-radius:var(--gids-border-radius-md);color:var(--gids-color-text-accent-4)}.gids-tab-item--subtle:hover{color:var(--gids-color-text-accent-4)}.gids-tab-item--subtle:hover .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-4)}.gids-tab-item--subtle:active{color:var(--gids-color-text-accent-4)}.gids-tab-item--subtle:active .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-4)}.gids-tab-item--active-default{border-radius:var(--gids-border-radius-md);background-color:var(--gids-color-background-accent-4-subtler-default);color:var(--gids-color-text-accent-4)}.gids-tab-item--active-default .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-4)}.gids-tab-item--active-default:hover{background-color:var(--gids-color-background-accent-4-subtler-hovered)}.gids-tab-item--active-default:active{background-color:var(--gids-color-background-accent-4-subtler-pressed)}.gids-tab-item--active-primary{border-radius:var(--gids-border-radius-md);background-color:var(--gids-color-background-accent-4-bolder-default);color:var(--gids-color-text-inverse)}.gids-tab-item--active-primary .gids-icon{--gidsIcon-color:var(--gids-color-icon-inverse)}.gids-tab-item--active-primary:hover{background-color:var(--gids-color-background-accent-4-bolder-hovered)}.gids-tab-item--active-primary:active{background-color:var(--gids-color-background-accent-4-bolder-pressed)}.gids-tab-item--active-bordered{border-radius:var(--gids-border-radius-full);border:var(--gids-border-width-thick) solid var(--gids-color-border-accent-4);background-color:var(--gids-color-background-accent-4-subtlest-default);color:var(--gids-color-text-accent-4)}.gids-tab-item--active-bordered .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-4)}.gids-tab-item--active-bordered:hover{background-color:var(--gids-color-background-accent-4-subtlest-hovered)}.gids-tab-item--active-bordered:active{background-color:var(--gids-color-background-accent-4-subtlest-pressed)}.gids-tab-item--active-underlined{border-bottom:var(--gids-border-width-thick) solid var(--gids-color-border-accent-4);border-top-left-radius:var(--gids-border-radius-md);border-top-right-radius:var(--gids-border-radius-md);color:var(--gids-color-text-accent-4);background-color:var(--gids-color-background-accent-4-subtlest-default)}.gids-tab-item--active-underlined .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-4)}.gids-tab-item--active-underlined:hover{background-color:var(--gids-color-background-accent-4-subtlest-hovered)}.gids-tab-item--active-underlined:active{background-color:var(--gids-color-background-accent-4-subtlest-pressed)}.gids-tab-item--active-subtle{color:var(--gids-color-text-accent-4)}.gids-tab-item--active-subtle .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-4)}"}},[260,"gids-tab-item",{itemId:[1,"item-id"],label:[1],active:[4],name:[1],width:[1],appearance:[1],badgeVisible:[4,"badge-visible"],badgeAppearance:[1,"badge-appearance"],badgeCount:[2,"badge-count"],badgeType:[1,"badge-type"],onPressGidsTabItem:[16],hasLeadingIcon:[32],hasTrailingIcon:[32]},void 0,{width:[{handleWidthChange:0}],appearance:[{handleAppearanceChange:0}],badgeVisible:[{handleBadgeVisibilityChange:0}],badgeAppearance:[{handleBadgeAppearanceChange:0}],badgeType:[{handleBadgeTypeChange:0}],active:[{handleActiveChange:0}]}]);function Me(){typeof customElements<"u"&&["gids-tab-item"].forEach((e=>{e==="gids-tab-item"&&(customElements.get(e)||customElements.define(e,He))}))}Me();const Nt=He,_t=Me;P.GidsTabItem=Nt,P.defineCustomElement=_t,Object.defineProperty(P,Symbol.toStringTag,{value:"Module"})}));
5
+ `);const S=this["s-cr"].parentElement;return(S.__childNodes?S.childNodes:(y=>{const m=[];for(let p=0;p<y.length;p++){const f=y[p]["s-nr"]||void 0;f&&f.isConnected&&m.push(f)}return m})(S.childNodes)).forEach((y=>{h===H(y)&&b.push(y)})),d?b.filter((y=>y.nodeType===1)):b}).bind(c);c.assignedElements=u(!0),c.assignedNodes=u(!1)})(i),a=e&&e.m&&e.m[s],a&&a.O===r.O&&e.S&&Te(e.S)),i},Te=e=>{_.i|=1;const t=e.closest(R.toLowerCase());if(t!=null){const s=Array.from(t.__childNodes||t.childNodes).find((r=>r["s-cr"])),o=Array.from(e.__childNodes||e.childNodes);for(const r of s?o.reverse():o)r["s-sh"]!=null&&(x(t,r,s??null),r["s-sh"]=void 0,q=!0)}_.i&=-2},Z=(e,t)=>{_.i|=1;const s=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let o=e;for(;o=o.nextSibling;)o&&o["s-sn"]===e["s-sn"]&&o["s-sh"]===R&&s.push(o)}for(let o=s.length-1;o>=0;o--){const r=s[o];r["s-hn"]!==R&&r["s-ol"]&&(x(W(r).parentNode,r,W(r)),r["s-ol"].remove(),r["s-ol"]=void 0,r["s-sh"]=void 0,q=!0),t&&Z(r,t)}_.i&=-2},xe=(e,t,s,o,r,i)=>{let l,a=e["s-cr"]&&e["s-cr"].parentNode||e;for(a.shadowRoot&&a.tagName===R&&(a=a.shadowRoot),s.O==="template"&&(a=a.content);r<=i;++r)o[r]&&(l=Y(null,s,r),l&&(o[r].S=l,x(a,l,W(t))))},Ae=(e,t,s)=>{for(let o=t;o<=s;++o){const r=e[o];if(r){const i=r.S;$e(r),i&&(U=!0,i["s-ol"]?i["s-ol"].remove():Z(i,!0),i.remove())}}},J=(e,t,s=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:s?(s&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),W=e=>e&&e["s-ol"]||e,B=(e,t,s=!1)=>{const o=t.S=e.S,r=e.m,i=t.m,l=t.O,a=t.h;let n;a==null?(C=l==="svg"||l!=="foreignObject"&&C,l!=="slot"||M||e.j!==t.j&&(t.S["s-sn"]=t.j||"",Te(t.S.parentElement)),ae(e,t,C),r!==null&&i!==null?((c,u,d,g,b=!1)=>{let h,S,y=0,m=0,p=0,f=0,N=u.length-1,v=u[0],w=u[N],O=g.length-1,T=g[0],j=g[O];const We=d.O==="template"?c.content:c;for(;y<=N&&m<=O;)if(v==null)v=u[++y];else if(w==null)w=u[--N];else if(T==null)T=g[++m];else if(j==null)j=g[--O];else if(J(v,T,b))B(v,T,b),v=u[++y],T=g[++m];else if(J(w,j,b))B(w,j,b),w=u[--N],j=g[--O];else if(J(v,j,b))v.O!=="slot"&&j.O!=="slot"||Z(v.S.parentNode,!1),B(v,j,b),x(We,v.S,w.S.nextSibling),v=u[++y],j=g[--O];else if(J(w,T,b))v.O!=="slot"&&j.O!=="slot"||Z(w.S.parentNode,!1),B(w,T,b),x(We,w.S,v.S),w=u[--N],T=g[++m];else{for(p=-1,f=y;f<=N;++f)if(u[f]&&u[f].$!==null&&u[f].$===T.$){p=f;break}p>=0?(S=u[p],S.O!==T.O?h=Y(u&&u[m],d,p):(B(S,T,b),u[p]=void 0,h=S.S),T=g[++m]):(h=Y(u&&u[m],d,m),T=g[++m]),h&&x(W(v.S).parentNode,h,W(v.S))}y>N?xe(c,g[O+1]==null?null:g[O+1].S,d,g,m,O):m>O&&Ae(u,y,N)})(o,r,t,i,s):i!==null?(e.h!==null&&(o.textContent=""),xe(o,null,t,i,0,i.length-1)):!s&&r!==null&&Ae(r,0,r.length-1),C&&l==="svg"&&(C=!1)):(n=o["s-cr"])?n.parentNode.textContent=a:e.h!==a&&(o.data=a)},E=[],je=e=>{let t,s,o;const r=e.__childNodes||e.childNodes;for(const i of r){if(i["s-sr"]&&(t=i["s-cr"])&&t.parentNode){s=t.parentNode.__childNodes||t.parentNode.childNodes;const l=i["s-sn"];for(o=s.length-1;o>=0;o--)if(t=s[o],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===i["s-hn"]||t["s-sh"]&&t["s-sh"]===i["s-hn"]))if(me(t,l)){let a=E.find((n=>n.k===t));U=!0,t["s-sn"]=t["s-sn"]||l,a?(a.k["s-sh"]=i["s-hn"],a.N=i):(t["s-sh"]=i["s-hn"],E.push({N:i,k:t})),t["s-sr"]&&E.map((n=>{me(n.k,t["s-sn"])&&(a=E.find((c=>c.k===t)),a&&!n.N&&(n.N=a.N))}))}else E.some((a=>a.k===t))||E.push({k:t})}i.nodeType===1&&je(i)}},$e=e=>{e.v&&e.v.ref&&le.push((()=>e.v.ref(null))),e.m&&e.m.map($e)},ot=(e,t)=>{de.push((()=>e(t)))},x=(e,t,s,o)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,s);const{slotNode:r}=(function(i,l){var a;if(!(l=l||((a=i["s-ol"])==null?void 0:a.parentElement)))return{slotNode:null,slotName:""};const n=i["s-sn"]=H(i)||"";return{slotNode:se(re(l,"childNodes"),l.tagName,n)[0],slotName:n}})(t);return r&&!o&&r.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,s):e?.insertBefore(t,s)},st=(e,t,s=!1)=>{var o,r,i,l,a;const n=e.$hostElement$,c=e.o,u=e.M||z(null,null);var d;const g=(d=t)&&d.O===ye?t:A(null,null,t);if(R=n.tagName,c.C&&(g.v=g.v||{},c.C.forEach((([b,h])=>{g.v[h]=n[b]}))),s&&g.v)for(const b of Object.keys(g.v))n.hasAttribute(b)&&!["key","ref","style","class"].includes(b)&&(g.v[b]=n[b]);if(g.O=null,g.i|=4,e.M=g,g.S=u.S=n.shadowRoot||n,M=!(!(1&c.i)||128&c.i),ie=n["s-cr"],U=!1,B(u,g,s),_.i|=1,q){je(g.S);for(const b of E){const h=b.k;if(!h["s-ol"]&&k.document){const S=k.document.createTextNode("");S["s-nr"]=h,x(h.parentNode,h["s-ol"]=S,h,s)}}for(const b of E){const h=b.k,S=b.N;if(h.nodeType===1&&s&&(h["s-ih"]=(o=h.hidden)!=null&&o),S){const y=S.parentNode;let m=S.nextSibling;if(m&&m.nodeType===1){let p=(r=h["s-ol"])==null?void 0:r.previousSibling;for(;p;){let f=(i=p["s-nr"])!=null?i:null;if(f&&f["s-sn"]===h["s-sn"]&&y===(f.__parentNode||f.parentNode)){for(f=f.nextSibling;f===h||f?.["s-sr"];)f=f?.nextSibling;if(!f||!f["s-nr"]){m=f;break}}p=p.previousSibling}}if((!m&&y!==(h.__parentNode||h.parentNode)||(h.__nextSibling||h.nextSibling)!==m)&&h!==m){if(x(y,h,m,s),h.nodeType===8&&h.nodeValue.startsWith("s-nt-")){const p=k.document.createTextNode(h.nodeValue.replace(/^s-nt-/,""));p["s-hn"]=h["s-hn"],p["s-sn"]=h["s-sn"],p["s-sh"]=h["s-sh"],p["s-sr"]=h["s-sr"],p["s-ol"]=h["s-ol"],p["s-ol"]["s-nr"]=p,x(h.parentNode,p,h,s),h.parentNode.removeChild(h)}h.nodeType===1&&h.tagName!=="SLOT-FB"&&(h.hidden=(l=h["s-ih"])!=null&&l)}h&&typeof S["s-rf"]=="function"&&S["s-rf"](S)}else h.nodeType===1&&(h.hidden=!0)}}if(U&&pe(g.S),_.i&=-2,E.length=0,!M&&!(1&c.i)&&n["s-cr"]){const b=g.S.__childNodes||g.S.childNodes;for(const h of b)if(h["s-hn"]!==R&&!h["s-sh"]){if(s&&h["s-ih"]==null&&(h["s-ih"]=(a=h.hidden)!=null&&a),h.nodeType===1)h.hidden=!0;else if(h.nodeType===3&&h.nodeValue.trim()){const S=k.document.createComment("s-nt-"+h.nodeValue);S["s-sn"]=h["s-sn"],x(h.parentNode,S,h,s),h.parentNode.removeChild(h)}}}ie=void 0,le.forEach((b=>b())),le.length=0,de.forEach((b=>b())),de.length=0},Ee=(e,t)=>{if(t&&!e.A&&t["s-p"]){const s=t["s-p"].push(new Promise((o=>e.A=()=>{t["s-p"].splice(s-1,1),o()})))}},ce=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);Ee(e,e.R);const s=()=>rt(e,t);if(!t)return Ye(s);queueMicrotask((()=>{s()}))},rt=(e,t)=>{const s=e.$hostElement$,o=s;if(!o)throw new Error(`Can't render component <${s.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 r;return r=F(o,t?"componentWillLoad":"componentWillUpdate",void 0,s),r=Ie(r,(()=>F(o,"componentWillRender",void 0,s))),Ie(r,(()=>nt(e,o,t)))},Ie=(e,t)=>it(e)?e.then(t).catch((s=>{console.error(s),t()})):t(),it=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",nt=async(e,t,s)=>{var o;const r=e.$hostElement$,i=r["s-rc"];s&&(l=>{const a=l.o,n=l.$hostElement$,c=a.i,u=((d,g)=>{var b,h,S;const y=ve(g),m=G.get(y);if(!k.document)return y;if(d=d.nodeType===11?d:k.document,m)if(typeof m=="string"){let p,f=I.get(d=d.head||d);if(f||I.set(d,f=new Set),!f.has(y)){p=k.document.createElement("style"),p.textContent=m;const N=(b=_._)!=null?b:(function(){var v,w,O;return(O=(w=(v=k.document.head)==null?void 0:v.querySelector('meta[name="csp-nonce"]'))==null?void 0:w.getAttribute("content"))!=null?O:void 0})();if(N!=null&&p.setAttribute("nonce",N),!(1&g.i))if(d.nodeName==="HEAD"){const v=d.querySelectorAll("link[rel=preconnect]"),w=v.length>0?v[v.length-1].nextSibling:d.querySelector("style");d.insertBefore(p,w?.parentNode===d?w:null)}else if("host"in d)if(Q){const v=new((h=d.defaultView)!=null?h:d.ownerDocument.defaultView).CSSStyleSheet;v.replaceSync(m),X?d.adoptedStyleSheets.unshift(v):d.adoptedStyleSheets=[v,...d.adoptedStyleSheets]}else{const v=d.querySelector("style");v?v.textContent=m+v.textContent:d.prepend(p)}else d.append(p);1&g.i&&d.insertBefore(p,null),4&g.i&&(p.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),f&&f.add(y)}}else{let p=I.get(d);if(p||I.set(d,p=new Set),!p.has(y)){const f=(S=d.defaultView)!=null?S:d.ownerDocument.defaultView;let N;if(m.constructor===f.CSSStyleSheet)N=m;else{N=new f.CSSStyleSheet;for(let v=0;v<m.cssRules.length;v++)N.insertRule(m.cssRules[v].cssText,v)}X?d.adoptedStyleSheets.push(N):d.adoptedStyleSheets=[...d.adoptedStyleSheets,N],p.add(y)}}return y})(n.shadowRoot?n.shadowRoot:n.getRootNode(),a);10&c&&(n["s-sc"]=u,n.classList.add(u+"-h"))})(e),at(e,t,r,s),i&&(i.map((l=>l())),r["s-rc"]=void 0);{const l=(o=r["s-p"])!=null?o:[],a=()=>lt(e);l.length===0?a():(Promise.all(l).then(a).catch(a),e.i|=4,l.length=0)}},at=(e,t,s,o)=>{try{t=t.render(),e.i&=-17,e.i|=2,st(e,t,o)}catch(r){L(r,e.$hostElement$)}return null},lt=e=>{const t=e.$hostElement$,s=t,o=e.R;F(s,"componentDidRender",void 0,t),64&e.i?F(s,"componentDidUpdate",void 0,t):(e.i|=64,ct(t),F(s,"componentDidLoad",void 0,t),e.L(t),o||dt()),e.A&&(e.A(),e.A=void 0),512&e.i&&oe((()=>ce(e,!1))),e.i&=-517},dt=()=>{oe((()=>Xe(k,"appload",{detail:{namespace:"gids-core-web"}})))},F=(e,t,s,o)=>{if(e&&e[t])try{return e[t](s)}catch(r){L(r,o)}},ct=e=>e.classList.add("hydrated"),Pe=(e,t,s,o)=>{const r=$(e);if(!r)return;const i=e,l=r.l.get(t),a=r.i,n=i;s=we(s,o.t[t][0],!!(64&o.i));const c=Number.isNaN(l)&&Number.isNaN(s);if(s!==l&&!c){if(r.l.set(t,s),o.F){const u=o.F[t];u&&u.map((d=>{try{const[[g,b]]=Object.entries(d);(128&a||1&b)&&(n?n[g](s,l,t):r.T.push((()=>{r.D[g](s,l,t)})))}catch(g){L(g,i)}}))}if(2&a){if(n.componentShouldUpdate&&n.componentShouldUpdate(s,l,t)===!1&&!(16&a))return;16&a||ce(r,!1)}}},ut=(e,t,s)=>{var o,r;const i=e.prototype;64&t.i&&1&s&&Ge.forEach((l=>{const a=i[l];Object.defineProperty(i,l,{value(...n){var c;const u=$(this),d=this;d?typeof a=="function"&&a.call(d,...n):(c=u?.H)==null||c.then((g=>{const b=g[l];typeof b=="function"&&b.call(g,...n)}))}})}));{e.watchers&&!t.F&&(t.F=ke(e.watchers)),e.deserializers&&!t.P&&(t.P=e.deserializers),e.serializers&&!t.U&&(t.U=e.serializers);const l=Object.entries((o=t.t)!=null?o:{});l.map((([a,[n]])=>{if(31&n||32&n){const{get:c,set:u}=V(i,a)||{};c&&(t.t[a][0]|=2048),u&&(t.t[a][0]|=4096),Object.defineProperty(i,a,{get(){return c?c.apply(this):(d=a,$(this).l.get(d));var d},configurable:!0,enumerable:!0}),Object.defineProperty(i,a,{set(d){const g=$(this);if(g){if(u)return(32&n?this[a]:g.$hostElement$[a])===void 0&&g.l.get(a)&&(d=g.l.get(a)),u.apply(this,[we(d,n,!!(64&t.i))]),void Pe(this,a,d=32&n?this[a]:g.$hostElement$[a],t);Pe(this,a,d,t)}}})}}));{const a=new Map;i.attributeChangedCallback=function(n,c,u){_.jmp((()=>{var d;const g=a.get(n),b=$(this);if(this.hasOwnProperty(g),i.hasOwnProperty(g)&&typeof this[g]=="number"&&this[g]==u)return;if(g==null){const p=b?.i;if(b&&p&&!(8&p)&&u!==c){const f=this,N=(d=t.F)==null?void 0:d[n];N?.forEach((v=>{const[[w,O]]=Object.entries(v);f[w]!=null&&(128&p||1&O)&&f[w].call(f,u,c,n)}))}return}const h=l.find((([p])=>p===g)),S=h&&4&h[1][0],y=S&&u===null&&this[g]===void 0;S&&(u=u!==null&&u!=="false");const m=Object.getOwnPropertyDescriptor(i,g);y||u==this[g]||m.get&&!m.set||(this[g]=u)}))},e.observedAttributes=Array.from(new Set([...Object.keys((r=t.F)!=null?r:{}),...l.filter((([n,c])=>31&c[0])).map((([n,c])=>{var u;const d=c[1]||n;return a.set(d,n),512&c[0]&&((u=t.C)==null||u.push([n,d])),d}))]))}}return e},gt=(e,t)=>{const s={i:t[0],p:t[1]};try{s.t=t[2],s.W=t[3],s.F=ke(e.F),s.P=e.P,s.U=e.U,s.C=[];const o=e.prototype.connectedCallback,r=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((i,l)=>{const a={i:0,$hostElement$:i,o:l,l:new Map,B:new Map};a.H=new Promise((c=>a.L=c)),i["s-p"]=[],i["s-rc"]=[];const n=a;i.__stencil__getHostRef=()=>n,512&l.i&&Fe(i,a)})(this,s)},connectedCallback(){if(!this.__hasHostListenerAttached){const i=$(this);if(!i)return;Le(this,i,s.W),this.__hasHostListenerAttached=!0}(i=>{if(!(1&_.i)){const l=$(i);if(!l)return;const a=l.o;if(1&l.i)Le(i,l,a.W),l?.D||l?.H&&l.H.then((()=>{}));else{l.i|=1,12&a.i&&(n=>{if(!k.document)return;const c=n["s-cr"]=k.document.createComment("");c["s-cn"]=!0,x(n,c,n.firstChild)})(i);{let n=i;for(;n=n.parentNode||n.host;)if(n["s-p"]){Ee(l,l.R=n);break}}a.t&&Object.entries(a.t).map((([n,[c]])=>{if(31&c&&Object.prototype.hasOwnProperty.call(i,n)){const u=i[n];delete i[n],i[n]=u}})),(async(n,c,u)=>{let d;try{if(!(32&c.i)&&(c.i|=32,d=n.constructor,customElements.whenDefined(n.localName).then((()=>c.i|=128)),d&&d.style)){let h;typeof d.style=="string"&&(h=d.style);const S=ve(u);G.has(S)||((y,m,p)=>{let f=G.get(y);Q&&p?(f=f||new CSSStyleSheet,typeof f=="string"?f=m:f.replaceSync(m)):f=m,G.set(y,f)})(S,h,!!(1&u.i))}const g=c.R,b=()=>ce(c,!0);g&&g["s-rc"]?g["s-rc"].push(b):b()}catch(g){L(g,n),c.A&&(c.A(),c.A=void 0),c.L&&c.L(n)}})(i,l,a)}}})(this),o&&o.call(this)},disconnectedCallback(){(async i=>{if(!(1&_.i)){const l=$(i);l?.V&&(l.V.map((a=>a())),l.V=void 0)}I.has(i)&&I.delete(i),i.shadowRoot&&I.has(i.shadowRoot)&&I.delete(i.shadowRoot)})(this),r&&r.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${s.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else Ze.call(this,s)}}),Object.defineProperty(e,"is",{value:s.p,configurable:!0}),ut(e,s,3)}catch(o){return L(o),e}},Le=(e,t,s)=>{s&&k.document&&s.map((([o,r,i])=>{const l=ft(k.document,e,o),a=ht(t,i),n=bt(o);_.ael(l,r,a,n),(t.V=t.V||[]).push((()=>_.rel(l,r,a,n)))}))},ht=(e,t)=>s=>{try{e.$hostElement$[t](s)}catch(o){L(o,e.$hostElement$)}},ft=(e,t,s)=>8&s?k:t,bt=e=>Ue?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e);function Ct(e){return e}function Re(e){var t,s,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(s=Re(e[t]))&&(o&&(o+=" "),o+=s)}else for(s in e)e[s]&&(o&&(o+=" "),o+=s);return o}function Ve(){for(var e,t,s=0,o="",r=arguments.length;s<r;s++)(e=arguments[s])&&(t=Re(e))&&(o&&(o+=" "),o+=t);return o}const K=99,pt=Object.freeze(Object.defineProperty({__proto__:null,getDisplayContent:(e,t)=>e===void 0?t??"":e>K?`${K}+`:e.toString(),maxCount:K,shouldIncludeA11yText:(e,t,s)=>e==="dot"||t!==void 0&&t>K||s},Symbol.toStringTag,{value:"Module"})),mt=Object.freeze(Object.defineProperty({__proto__:null,getGidsBadgeClassNames:({appearance:e,type:t,outline:s},o)=>Ve("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":s},o)},Symbol.toStringTag,{value:"Module"})),vt=Object.freeze(Object.defineProperty({__proto__:null,getGidsTabItemClassNames:({appearance:e,width:t="intrinsic",active:s},o)=>Ve("gids-tab-item",{"gids-tab-item--full":t==="full","gids-tab-item--active-default":e==="default"&&s,"gids-tab-item--active-primary":e==="primary"&&s,"gids-tab-item--active-bordered":e==="bordered"&&s,"gids-tab-item--active-underlined":e==="underlined"&&s,"gids-tab-item--active-subtle":e==="subtle"&&s,"gids-tab-item--default":e==="default"&&!s,"gids-tab-item--primary":e==="primary"&&!s,"gids-tab-item--bordered":e==="bordered"&&!s,"gids-tab-item--underlined":e==="underlined"&&!s,"gids-tab-item--subtle":e==="subtle"&&!s},o)},Symbol.toStringTag,{value:"Module"})),Be=e=>e!==void 0&&(!Array.isArray(e)||e.length>0),{getDisplayContent:De,shouldIncludeA11yText:yt}=pt,{getGidsBadgeClassNames:St}=mt,kt=({appearance:e,type:t,count:s,accessibleText:o,outline:r,class:i,...l})=>{const a=yt(t,s,Be(o));return A("span",{class:St({appearance:e,type:t,outline:r},i),...l},a&&A("span",{class:"gids-visually-hidden"},Be(o)?o:s),t==="notification"?a?A("span",{"aria-hidden":"true"},De(s,o)):De(s,o):null)},{getGidsTabItemClassNames:wt}=vt,He=gt(class extends ze{constructor(e){super(),e!==!1&&this.__registerHost(),this.active=!1,this.width="intrinsic",this.appearance="default",this.badgeVisible=!1,this.badgeAppearance="information",this.badgeType="dot",this.hasLeadingIcon=!1,this.hasTrailingIcon=!1,this.handleHostClick=()=>{this.onPressGidsTabItem&&this.onPressGidsTabItem({itemId:this.itemId,label:this?.label??"",active:this?.active??!1,appearance:this?.appearance??"default",name:this?.name,badgeCount:this?.badgeCount??0})}}handleWidthChange(e){this.width=e}handleAppearanceChange(e){this.appearance=e}handleBadgeVisibilityChange(e){this.badgeVisible=e}handleBadgeAppearanceChange(e){this.badgeAppearance=e}handleBadgeTypeChange(e){this.badgeType=e}handleActiveChange(e){this.active=e}componentWillLoad(){this.checkSlots()}componentWillUpdate(){this.checkSlots()}checkSlots(){this.hasLeadingIcon=!!this.hostElement.querySelector('[slot="leadingIconTabItem"]'),this.hasTrailingIcon=!!this.hostElement.querySelector('[slot="trailingIconTabItem"]')}render(){const e=wt({appearance:this.appearance,width:this.width,active:this.active}),t=this.hasTrailingIcon,s=this.badgeVisible,o=this.appearance==="primary"&&this.active?"inverse":this.badgeAppearance??"information",r=this.label;return A(ye,{key:"f01d0f860f09aca20e77876af6c87e1db7de26b3",class:e,onClick:this.handleHostClick},this.hasLeadingIcon?A("slot",{name:"leadingIconTabItem"}):void 0,r&&r!==""?A("span",{class:"gids-tab-item__label"},r&&r!==""?r:void 0,s?A(kt,{appearance:o,type:this.badgeType,count:this.badgeCount}):void 0):void 0,t?A("slot",{name:"trailingIconTabItem"}):void 0)}get hostElement(){return this}static get watchers(){return{width:[{handleWidthChange:0}],appearance:[{handleAppearanceChange:0}],badgeVisible:[{handleBadgeVisibilityChange:0}],badgeAppearance:[{handleBadgeAppearanceChange:0}],badgeType:[{handleBadgeTypeChange:0}],active:[{handleActiveChange:0}]}}static get style(){return".gids-tab-item{margin:0;padding:0;appearance:none;border:none;background:none;display:inline-flex;justify-content:center;align-items:center;gap:var(--gids-gap-100);padding:var(--gids-padding-vertical-edge-to-element-150) var(--gids-padding-horizontal-edge-to-element-150);color:var(--gids-color-text-accent-5);white-space:nowrap;flex-shrink:0;cursor:pointer}.gids-tab-item .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-5)}.gids-tab-item__label{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);display:flex;justify-content:center;align-items:center;flex:1;gap:var(--gids-gap-150)}.gids-tab-item--full{display:flex}.gids-tab-item--default{border-radius:var(--gids-border-radius-md)}.gids-tab-item--default:hover{background-color:var(--gids-color-background-accent-4-subtler-hovered);color:var(--gids-color-text-accent-4)}.gids-tab-item--default:hover .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-4)}.gids-tab-item--default:active{background-color:var(--gids-color-background-accent-4-subtler-pressed);color:var(--gids-color-text-accent-4)}.gids-tab-item--default:active .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-4)}.gids-tab-item--primary{border-radius:var(--gids-border-radius-md)}.gids-tab-item--primary:hover{background-color:var(--gids-color-background-accent-4-bolder-hovered);color:var(--gids-color-text-inverse)}.gids-tab-item--primary:hover .gids-icon{--gidsIcon-color:var(--gids-color-icon-inverse)}.gids-tab-item--primary:active{background-color:var(--gids-color-background-accent-4-bolder-pressed);color:var(--gids-color-text-inverse)}.gids-tab-item--primary:active .gids-icon{--gidsIcon-color:var(--gids-color-icon-inverse)}.gids-tab-item--bordered{border-radius:var(--gids-border-radius-full)}.gids-tab-item--bordered:hover{background-color:var(--gids-color-background-accent-4-subtlest-hovered);color:var(--gids-color-text-accent-4);border:var(--gids-border-width-thick) solid var(--gids-color-border-accent-4)}.gids-tab-item--bordered:hover .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-4)}.gids-tab-item--bordered:active{background-color:var(--gids-color-background-accent-4-subtlest-pressed);color:var(--gids-color-text-accent-4);border:var(--gids-border-width-thick) solid var(--gids-color-border-accent-4)}.gids-tab-item--bordered:active .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-4)}.gids-tab-item--underlined{border-bottom:var(--gids-border-width-thick) solid var(--gids-color-border-input)}.gids-tab-item--underlined:hover{background-color:var(--gids-color-background-accent-4-subtlest-hovered);border-bottom:var(--gids-border-width-thick) solid var(--gids-color-border-accent-4);border-top-left-radius:var(--gids-border-radius-md);border-top-right-radius:var(--gids-border-radius-md);color:var(--gids-color-text-accent-4)}.gids-tab-item--underlined:active{background-color:var(--gids-color-background-accent-4-subtlest-pressed);border-bottom:var(--gids-border-width-thick) solid var(--gids-color-border-accent-4);border-top-left-radius:var(--gids-border-radius-md);border-top-right-radius:var(--gids-border-radius-md);color:var(--gids-color-text-accent-4)}.gids-tab-item--subtle:hover{color:var(--gids-color-text-accent-4)}.gids-tab-item--subtle:hover .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-4)}.gids-tab-item--subtle:active{color:var(--gids-color-text-accent-4)}.gids-tab-item--subtle:active .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-4)}.gids-tab-item--active-default{border-radius:var(--gids-border-radius-md);background-color:var(--gids-color-background-accent-4-subtler-default);color:var(--gids-color-text-accent-4)}.gids-tab-item--active-default .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-4)}.gids-tab-item--active-default:hover{background-color:var(--gids-color-background-accent-4-subtler-hovered)}.gids-tab-item--active-default:active{background-color:var(--gids-color-background-accent-4-subtler-pressed)}.gids-tab-item--active-primary{border-radius:var(--gids-border-radius-md);background-color:var(--gids-color-background-accent-4-bolder-default);color:var(--gids-color-text-inverse)}.gids-tab-item--active-primary .gids-icon{--gidsIcon-color:var(--gids-color-icon-inverse)}.gids-tab-item--active-primary:hover{background-color:var(--gids-color-background-accent-4-bolder-hovered)}.gids-tab-item--active-primary:active{background-color:var(--gids-color-background-accent-4-bolder-pressed)}.gids-tab-item--active-bordered{border-radius:var(--gids-border-radius-full);border:var(--gids-border-width-thick) solid var(--gids-color-border-accent-4);background-color:var(--gids-color-background-accent-4-subtlest-default);color:var(--gids-color-text-accent-4)}.gids-tab-item--active-bordered .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-4)}.gids-tab-item--active-bordered:hover{background-color:var(--gids-color-background-accent-4-subtlest-hovered)}.gids-tab-item--active-bordered:active{background-color:var(--gids-color-background-accent-4-subtlest-pressed)}.gids-tab-item--active-underlined{border-bottom:var(--gids-border-width-thick) solid var(--gids-color-border-accent-4);border-top-left-radius:var(--gids-border-radius-md);border-top-right-radius:var(--gids-border-radius-md);color:var(--gids-color-text-accent-4);background-color:var(--gids-color-background-accent-4-subtlest-default)}.gids-tab-item--active-underlined .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-4)}.gids-tab-item--active-underlined:hover{background-color:var(--gids-color-background-accent-4-subtlest-hovered)}.gids-tab-item--active-underlined:active{background-color:var(--gids-color-background-accent-4-subtlest-pressed)}.gids-tab-item--active-subtle{color:var(--gids-color-text-accent-4)}.gids-tab-item--active-subtle .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-4)}"}},[260,"gids-tab-item",{itemId:[1,"item-id"],label:[1],active:[4],name:[1],width:[1],appearance:[1],badgeVisible:[4,"badge-visible"],badgeAppearance:[1,"badge-appearance"],badgeCount:[2,"badge-count"],badgeType:[1,"badge-type"],onPressGidsTabItem:[16],hasLeadingIcon:[32],hasTrailingIcon:[32]},void 0,{width:[{handleWidthChange:0}],appearance:[{handleAppearanceChange:0}],badgeVisible:[{handleBadgeVisibilityChange:0}],badgeAppearance:[{handleBadgeAppearanceChange:0}],badgeType:[{handleBadgeTypeChange:0}],active:[{handleActiveChange:0}]}]);function Me(){typeof customElements<"u"&&["gids-tab-item"].forEach((e=>{e==="gids-tab-item"&&(customElements.get(e)||customElements.define(e,He))}))}Me();const Nt=He,_t=Me;P.GidsTabItem=Nt,P.defineCustomElement=_t,Object.defineProperty(P,Symbol.toStringTag,{value:"Module"})}));