@ganpatiinfo/gids-core-web 10.3.0 → 12.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 (204) hide show
  1. package/dist/css/index.css +259 -3
  2. package/dist/css/index.css.map +1 -1
  3. package/dist/gids-action-bar.d.ts +1 -1
  4. package/dist/gids-action-bar.js +1 -1
  5. package/dist/gids-activity-gauge.d.ts +1 -1
  6. package/dist/gids-activity-gauge.js +1 -1
  7. package/dist/gids-bar-chart.d.ts +1 -1
  8. package/dist/gids-bar-chart.js +1 -1
  9. package/dist/gids-calendar-header-panel.d.ts +1 -1
  10. package/dist/gids-calendar-header-panel.js +1 -1
  11. package/dist/gids-calendar-month-list.d.ts +1 -1
  12. package/dist/gids-calendar-month-list.js +1 -1
  13. package/dist/gids-calendar-year-list.d.ts +1 -1
  14. package/dist/gids-calendar-year-list.js +1 -1
  15. package/dist/gids-calendar.d.ts +1 -1
  16. package/dist/gids-calendar.js +1 -1
  17. package/dist/gids-chart-legend-item.d.ts +1 -1
  18. package/dist/gids-chart-legend-item.js +1 -1
  19. package/dist/gids-chart-legend.d.ts +1 -1
  20. package/dist/gids-chart-legend.js +1 -1
  21. package/dist/gids-chart.d.ts +1 -1
  22. package/dist/gids-chart.js +1 -1
  23. package/dist/gids-chevron-button.d.ts +1 -1
  24. package/dist/gids-chevron-button.js +1 -1
  25. package/dist/gids-dot.d.ts +1 -1
  26. package/dist/gids-dot.js +1 -1
  27. package/dist/gids-dropdown-field.d.ts +1 -1
  28. package/dist/gids-dropdown-field.js +1 -1
  29. package/dist/gids-dropdown-picker.d.ts +1 -1
  30. package/dist/gids-dropdown-picker.js +1 -1
  31. package/dist/gids-dropdown.d.ts +1 -1
  32. package/dist/gids-dropdown.js +1 -1
  33. package/dist/gids-expansion-body-list-item.d.ts +1 -1
  34. package/dist/gids-expansion-body-list-item.js +1 -1
  35. package/dist/gids-expansion-body-list.d.ts +1 -1
  36. package/dist/gids-expansion-body-list.js +1 -1
  37. package/dist/gids-expansion-group.d.ts +1 -1
  38. package/dist/gids-expansion-group.js +1 -1
  39. package/dist/gids-expansion.d.ts +1 -1
  40. package/dist/gids-expansion.js +1 -1
  41. package/dist/gids-field.d.ts +1 -1
  42. package/dist/gids-field.js +1 -1
  43. package/dist/gids-filter.d.ts +1 -1
  44. package/dist/gids-filter.js +1 -1
  45. package/dist/gids-icon.d.ts +1 -1
  46. package/dist/gids-icon.js +1 -1
  47. package/dist/gids-input.d.ts +1 -1
  48. package/dist/gids-input.js +1 -1
  49. package/dist/gids-level-gauge.d.ts +1 -1
  50. package/dist/gids-line-chart.d.ts +1 -1
  51. package/dist/gids-line-chart.js +1 -1
  52. package/dist/gids-md-table.d.ts +11 -0
  53. package/dist/gids-md-table.js +1 -0
  54. package/dist/gids-notification.d.ts +1 -1
  55. package/dist/gids-overflow-container.d.ts +1 -1
  56. package/dist/gids-overflow-container.js +1 -1
  57. package/dist/gids-overlay-provider.d.ts +1 -1
  58. package/dist/gids-overlay-provider.js +1 -1
  59. package/dist/gids-password-field.d.ts +1 -1
  60. package/dist/gids-password-field.js +1 -1
  61. package/dist/gids-pie-chart.d.ts +1 -1
  62. package/dist/gids-pie-chart.js +1 -1
  63. package/dist/gids-popover.d.ts +1 -1
  64. package/dist/gids-popover.js +1 -1
  65. package/dist/gids-progress-circle.d.ts +1 -1
  66. package/dist/gids-scrim.d.ts +1 -1
  67. package/dist/gids-scrim.js +1 -1
  68. package/dist/gids-snackbar.d.ts +1 -1
  69. package/dist/gids-tab-item.d.ts +1 -1
  70. package/dist/gids-tab-item.js +1 -1
  71. package/dist/gids-tab.d.ts +1 -1
  72. package/dist/gids-tab.js +1 -1
  73. package/dist/gids-text-field.d.ts +1 -1
  74. package/dist/gids-text-field.js +1 -1
  75. package/dist/gids-toggle-button.d.ts +1 -1
  76. package/dist/gids-toggle-button.js +1 -1
  77. package/dist/gids-tooltip.d.ts +1 -1
  78. package/dist/gids-tooltip.js +1 -1
  79. package/dist/{p-CD_BHkBE.js → p-6APCjBEI.js} +1 -1
  80. package/dist/p-BCVFQSjK.js +1 -0
  81. package/dist/{p-DfrYaprq.js → p-BSbOhfLZ.js} +1 -1
  82. package/dist/{p-DA_atCAU.js → p-BVAtja26.js} +1 -1
  83. package/dist/{p-BeP2XcqY.js → p-C2O_pGky.js} +1 -1
  84. package/dist/{p-3Ni1-UuQ.js → p-C3We7Q8Q.js} +1 -1
  85. package/dist/{p-C4yEV6pT.js → p-C3w3wdCt.js} +1 -1
  86. package/dist/{p-BQCMjWpK.js → p-C3xv7tfs.js} +1 -1
  87. package/dist/{p-Ditd1zV7.js → p-C56G7JRy.js} +1 -1
  88. package/dist/p-CI-sN9Lr.js +1 -0
  89. package/dist/{p-WHI6NO_h.js → p-COHuQEfZ.js} +1 -1
  90. package/dist/{p-CkydANOS.js → p-Chqeexny.js} +1 -1
  91. package/dist/{p-C2PfO9h9.js → p-DO0MyFf4.js} +1 -1
  92. package/dist/p-DUojHltk.js +1 -0
  93. package/dist/{p-DlI2raNo.js → p-VJAcf53T.js} +1 -1
  94. package/dist/p-_SIWct9h.js +1 -0
  95. package/dist/{p-qIkbfIF3.js → p-pSb81aE0.js} +1 -1
  96. package/dist/{p-BE2G21MT.js → p-ub0GuVHb.js} +1 -1
  97. package/dist/types/components/html/GidsBasicTableBody/GidsBasicTableBody.d.ts +6 -0
  98. package/dist/types/components/html/GidsBasicTableCell/GidsBasicTableCell.d.ts +4 -0
  99. package/dist/types/components/html/GidsBasicTableHead/GidsBasicTableHead.d.ts +11 -0
  100. package/dist/types/components/html/GidsBasicTableHeader/GidsBasicTableHeader.d.ts +4 -0
  101. package/dist/types/components/html/GidsBasicTableRow/GidsBasicTableRow.d.ts +4 -0
  102. package/dist/types/components/html/GidsBsTable/GidsBsTable.d.ts +11 -0
  103. package/dist/types/components/webComponents/GidsActionBar/GidsActionBar.d.ts +15 -2
  104. package/dist/types/components/webComponents/GidsExpansionBodyList/GidsExpansionBodyList.d.ts +5 -4
  105. package/dist/types/components/webComponents/GidsFilter/GidsFilter.d.ts +5 -0
  106. package/dist/types/components/webComponents/GidsMdTable/GidsMdTable.d.ts +40 -0
  107. package/dist/types/components.d.ts +183 -12
  108. package/dist-bundled/es/gids-action-bar.js +168 -126
  109. package/dist-bundled/es/gids-activity-gauge.js +4 -4
  110. package/dist-bundled/es/gids-bar-chart.js +1 -1
  111. package/dist-bundled/es/gids-calendar-header-panel.js +4 -4
  112. package/dist-bundled/es/gids-calendar-month-list.js +1 -1
  113. package/dist-bundled/es/gids-calendar-year-list.js +4 -4
  114. package/dist-bundled/es/gids-calendar.js +7 -7
  115. package/dist-bundled/es/gids-chart-legend-item.js +4 -4
  116. package/dist-bundled/es/gids-chart-legend.js +4 -4
  117. package/dist-bundled/es/gids-chart.js +18 -18
  118. package/dist-bundled/es/gids-chevron-button.js +1 -1
  119. package/dist-bundled/es/gids-dot.js +1 -1
  120. package/dist-bundled/es/gids-dropdown-field.js +4 -4
  121. package/dist-bundled/es/gids-dropdown-picker.js +2 -2
  122. package/dist-bundled/es/gids-dropdown.js +4 -4
  123. package/dist-bundled/es/gids-expansion-body-list-item.js +3 -3
  124. package/dist-bundled/es/gids-expansion-body-list.js +35 -35
  125. package/dist-bundled/es/gids-expansion-group.js +5 -5
  126. package/dist-bundled/es/gids-expansion.js +3 -3
  127. package/dist-bundled/es/gids-field.js +1 -1
  128. package/dist-bundled/es/gids-filter.js +2 -2
  129. package/dist-bundled/es/gids-icon.js +4 -4
  130. package/dist-bundled/es/gids-input.js +1 -1
  131. package/dist-bundled/es/gids-line-chart.js +4 -4
  132. package/dist-bundled/es/gids-md-table.js +165 -0
  133. package/dist-bundled/es/gids-overflow-container.js +1 -1
  134. package/dist-bundled/es/gids-overlay-provider.js +1 -1
  135. package/dist-bundled/es/gids-password-field.js +22 -22
  136. package/dist-bundled/es/gids-pie-chart.js +1 -1
  137. package/dist-bundled/es/gids-popover.js +1 -1
  138. package/dist-bundled/es/gids-scrim.js +6 -6
  139. package/dist-bundled/es/gids-tab-item.js +6 -6
  140. package/dist-bundled/es/gids-tab.js +4 -4
  141. package/dist-bundled/es/gids-text-field.js +14 -14
  142. package/dist-bundled/es/gids-toggle-button.js +1 -1
  143. package/dist-bundled/es/gids-tooltip.js +4 -4
  144. package/dist-bundled/es/{p-CD_BHkBE-DX2546yK.js → p-6APCjBEI-roDSyEYu.js} +5 -5
  145. package/dist-bundled/es/{p-Cn-t3SGc-CwvvOdlK.js → p-BCVFQSjK-CKrYrI4b.js} +15 -15
  146. package/dist-bundled/es/{p-DfrYaprq-CeZqb0rn.js → p-BSbOhfLZ-ByjjVMqG.js} +2 -2
  147. package/dist-bundled/es/{p-DA_atCAU-KdxJYYDE.js → p-BVAtja26-Xjd4_b4e.js} +7 -7
  148. package/dist-bundled/es/{p-BeP2XcqY-DMXmX4Mc.js → p-C2O_pGky-C_30AJ3m.js} +9 -9
  149. package/dist-bundled/es/{p-3Ni1-UuQ-CPn15cat.js → p-C3We7Q8Q-DT_NDg87.js} +2 -2
  150. package/dist-bundled/es/{p-C4yEV6pT-8IjLINXB.js → p-C3w3wdCt-I6zwuecb.js} +5 -5
  151. package/dist-bundled/es/{p-BQCMjWpK-CLxPNItn.js → p-C3xv7tfs-RodXvmql.js} +3 -3
  152. package/dist-bundled/es/{p-Ditd1zV7-DdQjXthS.js → p-C56G7JRy-B3HO4aVF.js} +2 -2
  153. package/dist-bundled/es/{p-DVVJrKxO-Bdl0HX_u.js → p-CI-sN9Lr-DHC9DyS8.js} +19 -18
  154. package/dist-bundled/es/{p-WHI6NO_h-DHNy0JzV.js → p-COHuQEfZ-C_POuXNC.js} +10 -10
  155. package/dist-bundled/es/{p-CkydANOS-CzTX9wng.js → p-Chqeexny-C4hlPbBP.js} +5 -5
  156. package/dist-bundled/es/{p-C2PfO9h9-H_toZwKo.js → p-DO0MyFf4-D7XItX1k.js} +5 -5
  157. package/dist-bundled/es/p-DUojHltk-GyvsWoCM.js +172 -0
  158. package/dist-bundled/es/{p-DlI2raNo-5V-p1A9Z.js → p-VJAcf53T-2X0vBJ1A.js} +1 -1
  159. package/dist-bundled/es/{p-KaaOtnwV-D7HTbhvI.js → p-_SIWct9h-jMYFZ-VO.js} +12 -12
  160. package/dist-bundled/es/{p-qIkbfIF3-B7NovGEi.js → p-pSb81aE0-CNrq7SQW.js} +2 -2
  161. package/dist-bundled/es/{p-BE2G21MT-WGW-ehxu.js → p-ub0GuVHb-C_PFTi1_.js} +1 -1
  162. package/dist-bundled/umd/gids-action-bar.umd.js +3 -3
  163. package/dist-bundled/umd/gids-activity-gauge.umd.js +1 -1
  164. package/dist-bundled/umd/gids-bar-chart.umd.js +1 -1
  165. package/dist-bundled/umd/gids-calendar-header-panel.umd.js +1 -1
  166. package/dist-bundled/umd/gids-calendar-month-list.umd.js +2 -2
  167. package/dist-bundled/umd/gids-calendar-year-list.umd.js +1 -1
  168. package/dist-bundled/umd/gids-calendar.umd.js +1 -1
  169. package/dist-bundled/umd/gids-chart-legend-item.umd.js +1 -1
  170. package/dist-bundled/umd/gids-chart-legend.umd.js +1 -1
  171. package/dist-bundled/umd/gids-chart.umd.js +1 -1
  172. package/dist-bundled/umd/gids-chevron-button.umd.js +1 -1
  173. package/dist-bundled/umd/gids-dot.umd.js +1 -1
  174. package/dist-bundled/umd/gids-dropdown-field.umd.js +2 -2
  175. package/dist-bundled/umd/gids-dropdown-picker.umd.js +1 -1
  176. package/dist-bundled/umd/gids-dropdown.umd.js +2 -2
  177. package/dist-bundled/umd/gids-expansion-body-list-item.umd.js +1 -1
  178. package/dist-bundled/umd/gids-expansion-body-list.umd.js +2 -2
  179. package/dist-bundled/umd/gids-expansion-group.umd.js +1 -1
  180. package/dist-bundled/umd/gids-expansion.umd.js +1 -1
  181. package/dist-bundled/umd/gids-field.umd.js +1 -1
  182. package/dist-bundled/umd/gids-filter.umd.js +3 -3
  183. package/dist-bundled/umd/gids-icon.umd.js +1 -1
  184. package/dist-bundled/umd/gids-input.umd.js +1 -1
  185. package/dist-bundled/umd/gids-line-chart.umd.js +2 -2
  186. package/dist-bundled/umd/gids-md-table.umd.js +5 -0
  187. package/dist-bundled/umd/gids-overflow-container.umd.js +1 -1
  188. package/dist-bundled/umd/gids-overlay-provider.umd.js +1 -1
  189. package/dist-bundled/umd/gids-password-field.umd.js +2 -2
  190. package/dist-bundled/umd/gids-pie-chart.umd.js +1 -1
  191. package/dist-bundled/umd/gids-popover.umd.js +1 -1
  192. package/dist-bundled/umd/gids-scrim.umd.js +1 -1
  193. package/dist-bundled/umd/gids-tab-item.umd.js +2 -2
  194. package/dist-bundled/umd/gids-tab.umd.js +1 -1
  195. package/dist-bundled/umd/gids-text-field.umd.js +1 -1
  196. package/dist-bundled/umd/gids-toggle-button.umd.js +2 -2
  197. package/dist-bundled/umd/gids-tooltip.umd.js +1 -1
  198. package/dist-bundled/umd-complete/gids-core-web.umd.js +8 -8
  199. package/package.json +12 -4
  200. package/dist/p-2wB6zkno.js +0 -1
  201. package/dist/p-Cn-t3SGc.js +0 -1
  202. package/dist/p-DVVJrKxO.js +0 -1
  203. package/dist/p-KaaOtnwV.js +0 -1
  204. package/dist-bundled/es/p-2wB6zkno-57WAxATm.js +0 -152
@@ -2,6 +2,6 @@
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 v=this["s-cr"].parentElement;return(v.__childNodes?v.childNodes:(S=>{const y=[];for(let m=0;m<S.length;m++){const g=S[m]["s-nr"]||void 0;g&&g.isConnected&&y.push(g)}return y})(v.childNodes)).forEach((S=>{h===V(S)&&p.push(S)})),a?p.filter((S=>S.nodeType===1)):p}).bind(u);u.assignedElements=f(!0),u.assignedNodes=f(!1)})(l),c=e&&e.m&&e.m[o],c&&c.O===n.O&&e.S&&Re(e.S)),l},Re=e=>{O.i|=1;const t=e.closest(M.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&&(x(t,n,o??null),n["s-sh"]=void 0,Y=!0)}O.i&=-2},J=(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"]===M&&o.push(s)}for(let s=o.length-1;s>=0;s--){const n=o[s];n["s-hn"]!==M&&n["s-ol"]&&(x(W(n).parentNode,n,W(n)),n["s-ol"].remove(),n["s-ol"]=void 0,n["s-sh"]=void 0,Y=!0),t&&J(n,t)}O.i&=-2},Pe=(e,t,o,s,n,l)=>{let i,c=e["s-cr"]&&e["s-cr"].parentNode||e;for(c.shadowRoot&&c.tagName===M&&(c=c.shadowRoot),o.O==="template"&&(c=c.content);n<=l;++n)s[n]&&(i=Z(null,o,n),i&&(s[n].S=i,x(c,i,W(t))))},Le=(e,t,o)=>{for(let s=t;s<=o;++s){const n=e[s];if(n){const l=n.S;De(n),l&&(q=!0,l["s-ol"]?l["s-ol"].remove():J(l,!0),l.remove())}}},K=(e,t,o=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:o?(o&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),W=e=>e&&e["s-ol"]||e,H=(e,t,o=!1)=>{const s=t.S=e.S,n=e.m,l=t.m,i=t.O,c=t.h;let r;c==null?(k=i==="svg"||i!=="foreignObject"&&k,i!=="slot"||I||e.j!==t.j&&(t.S["s-sn"]=t.j||"",Re(t.S.parentElement)),ae(e,t,k),n!==null&&l!==null?((u,f,a,d,p=!1)=>{let h,v,S=0,y=0,m=0,g=0,_=f.length-1,b=f[0],N=f[_],C=d.length-1,j=d[0],E=d[C];const Xe=a.O==="template"?u.content:u;for(;S<=_&&y<=C;)if(b==null)b=f[++S];else if(N==null)N=f[--_];else if(j==null)j=d[++y];else if(E==null)E=d[--C];else if(K(b,j,p))H(b,j,p),b=f[++S],j=d[++y];else if(K(N,E,p))H(N,E,p),N=f[--_],E=d[--C];else if(K(b,E,p))b.O!=="slot"&&E.O!=="slot"||J(b.S.parentNode,!1),H(b,E,p),x(Xe,b.S,N.S.nextSibling),b=f[++S],E=d[--C];else if(K(N,j,p))b.O!=="slot"&&E.O!=="slot"||J(N.S.parentNode,!1),H(N,j,p),x(Xe,N.S,b.S),N=f[--_],j=d[++y];else{for(m=-1,g=S;g<=_;++g)if(f[g]&&f[g].$!==null&&f[g].$===j.$){m=g;break}m>=0?(v=f[m],v.O!==j.O?h=Z(f&&f[y],a,m):(H(v,j,p),f[m]=void 0,h=v.S),j=d[++y]):(h=Z(f&&f[y],a,y),j=d[++y]),h&&x(W(b.S).parentNode,h,W(b.S))}S>_?Pe(u,d[C+1]==null?null:d[C+1].S,a,d,y,C):y>C&&Le(f,S,_)})(s,n,t,l,o):l!==null?(e.h!==null&&(s.textContent=""),Pe(s,null,t,l,0,l.length-1)):!o&&n!==null&&Le(n,0,n.length-1),k&&i==="svg"&&(k=!1)):(r=s["s-cr"])?r.parentNode.textContent=c:e.h!==c&&(s.data=c)},T=[],Me=e=>{let t,o,s;const n=e.__childNodes||e.childNodes;for(const l of n){if(l["s-sr"]&&(t=l["s-cr"])&&t.parentNode){o=t.parentNode.__childNodes||t.parentNode.childNodes;const i=l["s-sn"];for(s=o.length-1;s>=0;s--)if(t=o[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===l["s-hn"]||t["s-sh"]&&t["s-sh"]===l["s-hn"]))if(Ne(t,i)){let c=T.find((r=>r.k===t));q=!0,t["s-sn"]=t["s-sn"]||i,c?(c.k["s-sh"]=l["s-hn"],c.N=l):(t["s-sh"]=l["s-hn"],T.push({N:l,k:t})),t["s-sr"]&&T.map((r=>{Ne(r.k,t["s-sn"])&&(c=T.find((u=>u.k===t)),c&&!r.N&&(r.N=c.N))}))}else T.some((c=>c.k===t))||T.push({k:t})}l.nodeType===1&&Me(l)}},De=e=>{e.v&&e.v.ref&&de.push((()=>e.v.ref(null))),e.m&&e.m.map(De)},ht=(e,t)=>{ue.push((()=>e(t)))},x=(e,t,o,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,o);const{slotNode:n}=(function(l,i){var c;if(!(i=i||((c=l["s-ol"])==null?void 0:c.parentElement)))return{slotNode:null,slotName:""};const r=l["s-sn"]=V(l)||"";return{slotNode:le(re(i,"childNodes"),i.tagName,r)[0],slotName:r}})(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)},pt=(e,t,o=!1)=>{var s,n,l,i,c;const r=e.$hostElement$,u=e.o,f=e.M||U(null,null);var a;const d=(a=t)&&a.O===Oe?t:$(null,null,t);if(M=r.tagName,u.C&&(d.v=d.v||{},u.C.forEach((([p,h])=>{d.v[h]=r[p]}))),o&&d.v)for(const p of Object.keys(d.v))r.hasAttribute(p)&&!["key","ref","style","class"].includes(p)&&(d.v[p]=r[p]);if(d.O=null,d.i|=4,e.M=d,d.S=f.S=r.shadowRoot||r,I=!(!(1&u.i)||128&u.i),ie=r["s-cr"],q=!1,H(f,d,o),O.i|=1,Y){Me(d.S);for(const p of T){const h=p.k;if(!h["s-ol"]&&w.document){const v=w.document.createTextNode("");v["s-nr"]=h,x(h.parentNode,h["s-ol"]=v,h,o)}}for(const p of T){const h=p.k,v=p.N;if(h.nodeType===1&&o&&(h["s-ih"]=(s=h.hidden)!=null&&s),v){const S=v.parentNode;let y=v.nextSibling;if(y&&y.nodeType===1){let m=(n=h["s-ol"])==null?void 0:n.previousSibling;for(;m;){let g=(l=m["s-nr"])!=null?l:null;if(g&&g["s-sn"]===h["s-sn"]&&S===(g.__parentNode||g.parentNode)){for(g=g.nextSibling;g===h||g?.["s-sr"];)g=g?.nextSibling;if(!g||!g["s-nr"]){y=g;break}}m=m.previousSibling}}if((!y&&S!==(h.__parentNode||h.parentNode)||(h.__nextSibling||h.nextSibling)!==y)&&h!==y){if(x(S,h,y,o),h.nodeType===8&&h.nodeValue.startsWith("s-nt-")){const m=w.document.createTextNode(h.nodeValue.replace(/^s-nt-/,""));m["s-hn"]=h["s-hn"],m["s-sn"]=h["s-sn"],m["s-sh"]=h["s-sh"],m["s-sr"]=h["s-sr"],m["s-ol"]=h["s-ol"],m["s-ol"]["s-nr"]=m,x(h.parentNode,m,h,o),h.parentNode.removeChild(h)}h.nodeType===1&&h.tagName!=="SLOT-FB"&&(h.hidden=(i=h["s-ih"])!=null&&i)}h&&typeof v["s-rf"]=="function"&&v["s-rf"](v)}else h.nodeType===1&&(h.hidden=!0)}}if(q&&we(d.S),O.i&=-2,T.length=0,!I&&!(1&u.i)&&r["s-cr"]){const p=d.S.__childNodes||d.S.childNodes;for(const h of p)if(h["s-hn"]!==M&&!h["s-sh"]){if(o&&h["s-ih"]==null&&(h["s-ih"]=(c=h.hidden)!=null&&c),h.nodeType===1)h.hidden=!0;else if(h.nodeType===3&&h.nodeValue.trim()){const v=w.document.createComment("s-nt-"+h.nodeValue);v["s-sn"]=h["s-sn"],x(h.parentNode,v,h,o),h.parentNode.removeChild(h)}}}ie=void 0,de.forEach((p=>p())),de.length=0,ue.forEach((p=>p())),ue.length=0},He=(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()})))}},fe=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);He(e,e.R);const o=()=>gt(e,t);if(!t)return lt(o);queueMicrotask((()=>{o()}))},gt=(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=G(s,t?"componentWillLoad":"componentWillUpdate",void 0,o),n=Be(n,(()=>G(s,"componentWillRender",void 0,o))),Be(n,(()=>yt(e,s,t)))},Be=(e,t)=>mt(e)?e.then(t).catch((o=>{console.error(o),t()})):t(),mt=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",yt=async(e,t,o)=>{var s;const n=e.$hostElement$,l=n["s-rc"];o&&(i=>{const c=i.o,r=i.$hostElement$,u=c.i,f=((a,d)=>{var p,h,v;const S=_e(d),y=z.get(S);if(!w.document)return S;if(a=a.nodeType===11?a:w.document,y)if(typeof y=="string"){let m,g=R.get(a=a.head||a);if(g||R.set(a,g=new Set),!g.has(S)){m=w.document.createElement("style"),m.textContent=y;const _=(p=O._)!=null?p:(function(){var b,N,C;return(C=(N=(b=w.document.head)==null?void 0:b.querySelector('meta[name="csp-nonce"]'))==null?void 0:N.getAttribute("content"))!=null?C:void 0})();if(_!=null&&m.setAttribute("nonce",_),!(1&d.i))if(a.nodeName==="HEAD"){const b=a.querySelectorAll("link[rel=preconnect]"),N=b.length>0?b[b.length-1].nextSibling:a.querySelector("style");a.insertBefore(m,N?.parentNode===a?N:null)}else if("host"in a)if(ee){const b=new((h=a.defaultView)!=null?h:a.ownerDocument.defaultView).CSSStyleSheet;b.replaceSync(y),te?a.adoptedStyleSheets.unshift(b):a.adoptedStyleSheets=[b,...a.adoptedStyleSheets]}else{const b=a.querySelector("style");b?b.textContent=y+b.textContent:a.prepend(m)}else a.append(m);1&d.i&&a.insertBefore(m,null),4&d.i&&(m.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),g&&g.add(S)}}else{let m=R.get(a);if(m||R.set(a,m=new Set),!m.has(S)){const g=(v=a.defaultView)!=null?v:a.ownerDocument.defaultView;let _;if(y.constructor===g.CSSStyleSheet)_=y;else{_=new g.CSSStyleSheet;for(let b=0;b<y.cssRules.length;b++)_.insertRule(y.cssRules[b].cssText,b)}te?a.adoptedStyleSheets.push(_):a.adoptedStyleSheets=[...a.adoptedStyleSheets,_],m.add(S)}}return S})(r.shadowRoot?r.shadowRoot:r.getRootNode(),c);10&u&&(r["s-sc"]=f,r.classList.add(f+"-h"))})(e),bt(e,t,n,o),l&&(l.map((i=>i())),n["s-rc"]=void 0);{const i=(s=n["s-p"])!=null?s:[],c=()=>vt(e);i.length===0?c():(Promise.all(i).then(c).catch(c),e.i|=4,i.length=0)}},bt=(e,t,o,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,pt(e,t,s)}catch(n){L(n,e.$hostElement$)}return null},vt=e=>{const t=e.$hostElement$,o=t,s=e.R;G(o,"componentDidRender",void 0,t),64&e.i?G(o,"componentDidUpdate",void 0,t):(e.i|=64,wt(t),G(o,"componentDidLoad",void 0,t),e.L(t),s||St()),e.A&&(e.A(),e.A=void 0),512&e.i&&ne((()=>fe(e,!1))),e.i&=-517},St=()=>{ne((()=>je(w,"appload",{detail:{namespace:"gids-core-web"}})))},G=(e,t,o,s)=>{if(e&&e[t])try{return e[t](o)}catch(n){L(n,s)}},wt=e=>e.classList.add("hydrated"),Fe=(e,t,o,s)=>{const n=A(e);if(!n)return;const l=e,i=n.l.get(t),c=n.i,r=l;o=Ce(o,s.t[t][0],!!(64&s.i));const u=Number.isNaN(i)&&Number.isNaN(o);if(o!==i&&!u){if(n.l.set(t,o),s.F){const f=s.F[t];f&&f.map((a=>{try{const[[d,p]]=Object.entries(a);(128&c||1&p)&&(r?r[d](o,i,t):n.T.push((()=>{n.D[d](o,i,t)})))}catch(d){L(d,l)}}))}if(2&c){if(r.componentShouldUpdate&&r.componentShouldUpdate(o,i,t)===!1&&!(16&c))return;16&c||fe(n,!1)}}},Nt=(e,t,o)=>{var s,n;const l=e.prototype;64&t.i&&1&o&&tt.forEach((i=>{const c=l[i];Object.defineProperty(l,i,{value(...r){var u;const f=A(this),a=this;a?typeof c=="function"&&c.call(a,...r):(u=f?.H)==null||u.then((d=>{const p=d[i];typeof p=="function"&&p.call(d,...r)}))}})}));{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 i=Object.entries((s=t.t)!=null?s:{});i.map((([c,[r]])=>{if(31&r||32&r){const{get:u,set:f}=D(l,c)||{};u&&(t.t[c][0]|=2048),f&&(t.t[c][0]|=4096),Object.defineProperty(l,c,{get(){return u?u.apply(this):(a=c,A(this).l.get(a));var a},configurable:!0,enumerable:!0}),Object.defineProperty(l,c,{set(a){const d=A(this);if(d){if(f)return(32&r?this[c]:d.$hostElement$[c])===void 0&&d.l.get(c)&&(a=d.l.get(c)),f.apply(this,[Ce(a,r,!!(64&t.i))]),void Fe(this,c,a=32&r?this[c]:d.$hostElement$[c],t);Fe(this,c,a,t)}}})}}));{const c=new Map;l.attributeChangedCallback=function(r,u,f){O.jmp((()=>{var a;const d=c.get(r),p=A(this);if(this.hasOwnProperty(d),l.hasOwnProperty(d)&&typeof this[d]=="number"&&this[d]==f)return;if(d==null){const m=p?.i;if(p&&m&&!(8&m)&&f!==u){const g=this,_=(a=t.F)==null?void 0:a[r];_?.forEach((b=>{const[[N,C]]=Object.entries(b);g[N]!=null&&(128&m||1&C)&&g[N].call(g,f,u,r)}))}return}const h=i.find((([m])=>m===d)),v=h&&4&h[1][0],S=v&&f===null&&this[d]===void 0;v&&(f=f!==null&&f!=="false");const y=Object.getOwnPropertyDescriptor(l,d);S||f==this[d]||y.get&&!y.set||(this[d]=f)}))},e.observedAttributes=Array.from(new Set([...Object.keys((n=t.F)!=null?n:{}),...i.filter((([r,u])=>31&u[0])).map((([r,u])=>{var f;const a=u[1]||r;return c.set(a,r),512&u[0]&&((f=t.C)==null||f.push([r,a])),a}))]))}}return e},_t=(e,t)=>{const o={i:t[0],p:t[1]};try{o.t=t[2],o.W=t[3],o.F=ke(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(){((l,i)=>{const c={i:0,$hostElement$:l,o:i,l:new Map,B:new Map};c.H=new Promise((u=>c.L=u)),l["s-p"]=[],l["s-rc"]=[];const r=c;l.__stencil__getHostRef=()=>r,512&i.i&&et(l,c)})(this,o)},connectedCallback(){if(!this.__hasHostListenerAttached){const l=A(this);if(!l)return;Ve(this,l,o.W),this.__hasHostListenerAttached=!0}(l=>{if(!(1&O.i)){const i=A(l);if(!i)return;const c=i.o;if(1&i.i)Ve(l,i,c.W),i?.D||i?.H&&i.H.then((()=>{}));else{i.i|=1,12&c.i&&(r=>{if(!w.document)return;const u=r["s-cr"]=w.document.createComment("");u["s-cn"]=!0,x(r,u,r.firstChild)})(l);{let r=l;for(;r=r.parentNode||r.host;)if(r["s-p"]){He(i,i.R=r);break}}c.t&&Object.entries(c.t).map((([r,[u]])=>{if(31&u&&Object.prototype.hasOwnProperty.call(l,r)){const f=l[r];delete l[r],l[r]=f}})),(async(r,u,f)=>{let a;try{if(!(32&u.i)&&(u.i|=32,a=r.constructor,customElements.whenDefined(r.localName).then((()=>u.i|=128)),a&&a.style)){let h;typeof a.style=="string"&&(h=a.style);const v=_e(f);z.has(v)||((S,y,m)=>{let g=z.get(S);ee&&m?(g=g||new CSSStyleSheet,typeof g=="string"?g=y:g.replaceSync(y)):g=y,z.set(S,g)})(v,h,!!(1&f.i))}const d=u.R,p=()=>fe(u,!0);d&&d["s-rc"]?d["s-rc"].push(p):p()}catch(d){L(d,r),u.A&&(u.A(),u.A=void 0),u.L&&u.L(r)}})(l,i,c)}}})(this),s&&s.call(this)},disconnectedCallback(){(async l=>{if(!(1&O.i)){const i=A(l);i?.V&&(i.V.map((c=>c())),i.V=void 0)}R.has(l)&&R.delete(l),l.shadowRoot&&R.has(l.shadowRoot)&&R.delete(l.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 rt.call(this,o)}}),Object.defineProperty(e,"is",{value:o.p,configurable:!0}),Nt(e,o,3)}catch(s){return L(s),e}},Ve=(e,t,o)=>{o&&w.document&&o.map((([s,n,l])=>{const i=$t(w.document,e,s),c=Ot(t,l),r=kt(s);O.ael(i,n,c,r),(t.V=t.V||[]).push((()=>O.rel(i,n,c,r)))}))},Ot=(e,t)=>o=>{try{e.$hostElement$[t](o)}catch(s){L(s,e.$hostElement$)}},$t=(e,t,o)=>8&o?w:t,kt=e=>ot?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e);function Vt(e){return e}function Ie(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=Ie(e[t]))&&(s&&(s+=" "),s+=o)}else for(o in e)e[o]&&(s&&(s+=" "),s+=o);return s}function We(){for(var e,t,o=0,s="",n=arguments.length;o<n;o++)(e=arguments[o])&&(t=Ie(e))&&(s&&(s+=" "),s+=t);return s}const Ct=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerControlClassNames:({size:e,indeterminate:t,value:o},s)=>We("gids-spinner-control",{"gids-spinner-control--xs":e==="xs","gids-spinner-control--sm":e==="sm","gids-spinner-control--lg":e==="lg","gids-spinner-control--xl":e==="xl","gids-spinner-control--2xl":e==="2xl","gids-spinner-control--determinate":t===!1},o,s)},Symbol.toStringTag,{value:"Module"})),jt=Object.freeze(Object.defineProperty({__proto__:null,getGidsButtonClassNames:({appearance:e,size:t,width:o,destructive:s,positive:n,loading:l},i,c)=>We("gids-button",{"gids-button--primary":e==="primary","gids-button--subtle":e==="subtle","gids-button--xs":t==="xs","gids-button--sm":t==="sm","gids-button--lg":t==="lg","gids-button--full-width":o==="full","gids-button--destructive":s&&!n,"gids-button--positive":n&&!s,"gids-button--icon-only":i,"gids-button--loading":l},c)},Symbol.toStringTag,{value:"Module"})),Q=64,Ge=10,ze=Q/2-Ge/2,xt=Q/2,he=2*Math.PI*ze,Et=`0 0 ${Q} ${Q}`,At=Object.freeze(Object.defineProperty({__proto__:null,calculateStrokeDasharray:(e=0,t)=>{const o=typeof t=="number"&&t>0?t:1,n=Math.max(0,Math.min(o,e))/o*100,l=(he*n/100).toFixed(2),i=(he-parseFloat(l)).toFixed(2);return`${l} ${i}`},centerPosition:xt,circumference:he,radius:ze,thickness:Ge,viewBox:Et},Symbol.toStringTag,{value:"Module"})),Ue=e=>e!==void 0&&(!Array.isArray(e)||e.length>0),{getGidsSpinnerControlClassNames:Tt}=Ct,{calculateStrokeDasharray:Rt,thickness:qe,radius:Ye,centerPosition:X,viewBox:Pt}=At,Lt=({size:e,indeterminate:t,value:o,max:s,...n})=>{let l;return t||(l={strokeDashArray:Rt(o,s||0),strokeDashoffset:"0"}),$("svg",{class:Tt({size:e,indeterminate:t,value:o}),viewBox:Pt,...n},$("circle",{class:"gids-spinner-control__track",cx:X,cy:X,r:Ye,"stroke-width":qe}),$("circle",{style:l,class:"gids-spinner-control__progress",cx:X,cy:X,r:Ye,"stroke-width":qe}))},{getGidsButtonClassNames:Mt}=jt,Dt=({appearance:e,size:t,destructive:o,positive:s,loading:n,width:l,leadingIcon:i,trailingIcon:c,as:r,disabled:u,class:f,forceIconOnly:a=!1,...d},p)=>{const h=r||"button",v=t==="lg"||t===void 0?"md":t;return h!=="button"||"type"in d||(d.type="button"),$(h,{class:Mt({appearance:e,size:t,destructive:o,loading:n,width:l,positive:s},a||p.length===0&&Ue(i)&&!Ue(c),f),disabled:h==="button"?u:void 0,...d},$("span",{class:"gids-button__content"},i,p),n&&$(Lt,{size:v,indeterminate:!0}),c)},B=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let Ze=!1;B&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(B):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let pe=null;const ge=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{Je()})):void 0,Je=()=>{if(B===void 0)return!1;const e=(()=>{if(B===void 0)return;const t=[];for(let o=0;o<document.styleSheets.length;o++){const s=document.styleSheets.item(o);if(s)try{let n=-1,l=0;for(let i=0;i<s.cssRules.length;i++){const c=s.cssRules.item(i);if(c?.cssText.startsWith("gids-global-styles-start"))n=i;else if(n>-1){if(c?.cssText.startsWith("gids-global-styles-end")){l=i-n+1;break}t.push(c)}}if(n>-1)return{rulesStartIndex:n,originalRulesCount:l,rules:t,styleSheet:s}}catch(n){if(!(n instanceof DOMException))throw n}}})();if(e!==void 0){const t=e.styleSheet.ownerNode;return ge!==void 0&&t!==pe&&(pe&&ge.disconnect(),t instanceof Element&&ge.observe(t,{childList:!0,characterData:!0,subtree:!0}),pe=t),B.replaceSync((o=>o.rules.map((s=>s.cssText)).join(""))(e)),(o=>{const{rulesStartIndex:s,originalRulesCount:n,styleSheet:l}=o;for(let i=0;i<n;i++)l.deleteRule(s)})(e),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},Ht=()=>(Ze||(Ze=Je()),B),Ke=_t(class extends st{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.select=dt(this,"select"),this._toggle=this._toggle.bind(this)}handleSelctedChange(e){this.selected=e}connectedCallback(){const e=Ht();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}_toggle(){const e=!this.selected;this._el.selected=this.selected,this.select?.emit(e),this.selected=this.selected}render(){return $(Oe,{key:"8790bb8cf84e466afbb3b9e2d9d079b75bfa35c9"},$("style",{key:"774d8c36507eba6dcafc908f12bf23e264306c36"},`:host {
5
+ `);const v=this["s-cr"].parentElement;return(v.__childNodes?v.childNodes:(S=>{const y=[];for(let m=0;m<S.length;m++){const g=S[m]["s-nr"]||void 0;g&&g.isConnected&&y.push(g)}return y})(v.childNodes)).forEach((S=>{h===V(S)&&p.push(S)})),a?p.filter((S=>S.nodeType===1)):p}).bind(u);u.assignedElements=f(!0),u.assignedNodes=f(!1)})(l),c=e&&e.m&&e.m[o],c&&c.O===n.O&&e.S&&Re(e.S)),l},Re=e=>{O.i|=1;const t=e.closest(M.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&&(x(t,n,o??null),n["s-sh"]=void 0,Y=!0)}O.i&=-2},J=(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"]===M&&o.push(s)}for(let s=o.length-1;s>=0;s--){const n=o[s];n["s-hn"]!==M&&n["s-ol"]&&(x(W(n).parentNode,n,W(n)),n["s-ol"].remove(),n["s-ol"]=void 0,n["s-sh"]=void 0,Y=!0),t&&J(n,t)}O.i&=-2},Pe=(e,t,o,s,n,l)=>{let i,c=e["s-cr"]&&e["s-cr"].parentNode||e;for(c.shadowRoot&&c.tagName===M&&(c=c.shadowRoot),o.O==="template"&&(c=c.content);n<=l;++n)s[n]&&(i=Z(null,o,n),i&&(s[n].S=i,x(c,i,W(t))))},Le=(e,t,o)=>{for(let s=t;s<=o;++s){const n=e[s];if(n){const l=n.S;De(n),l&&(q=!0,l["s-ol"]?l["s-ol"].remove():J(l,!0),l.remove())}}},K=(e,t,o=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:o?(o&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),W=e=>e&&e["s-ol"]||e,H=(e,t,o=!1)=>{const s=t.S=e.S,n=e.m,l=t.m,i=t.O,c=t.h;let r;c==null?(k=i==="svg"||i!=="foreignObject"&&k,i!=="slot"||I||e.j!==t.j&&(t.S["s-sn"]=t.j||"",Re(t.S.parentElement)),ae(e,t,k),n!==null&&l!==null?((u,f,a,d,p=!1)=>{let h,v,S=0,y=0,m=0,g=0,_=f.length-1,b=f[0],N=f[_],C=d.length-1,j=d[0],E=d[C];const Xe=a.O==="template"?u.content:u;for(;S<=_&&y<=C;)if(b==null)b=f[++S];else if(N==null)N=f[--_];else if(j==null)j=d[++y];else if(E==null)E=d[--C];else if(K(b,j,p))H(b,j,p),b=f[++S],j=d[++y];else if(K(N,E,p))H(N,E,p),N=f[--_],E=d[--C];else if(K(b,E,p))b.O!=="slot"&&E.O!=="slot"||J(b.S.parentNode,!1),H(b,E,p),x(Xe,b.S,N.S.nextSibling),b=f[++S],E=d[--C];else if(K(N,j,p))b.O!=="slot"&&E.O!=="slot"||J(N.S.parentNode,!1),H(N,j,p),x(Xe,N.S,b.S),N=f[--_],j=d[++y];else{for(m=-1,g=S;g<=_;++g)if(f[g]&&f[g].$!==null&&f[g].$===j.$){m=g;break}m>=0?(v=f[m],v.O!==j.O?h=Z(f&&f[y],a,m):(H(v,j,p),f[m]=void 0,h=v.S),j=d[++y]):(h=Z(f&&f[y],a,y),j=d[++y]),h&&x(W(b.S).parentNode,h,W(b.S))}S>_?Pe(u,d[C+1]==null?null:d[C+1].S,a,d,y,C):y>C&&Le(f,S,_)})(s,n,t,l,o):l!==null?(e.h!==null&&(s.textContent=""),Pe(s,null,t,l,0,l.length-1)):!o&&n!==null&&Le(n,0,n.length-1),k&&i==="svg"&&(k=!1)):(r=s["s-cr"])?r.parentNode.textContent=c:e.h!==c&&(s.data=c)},T=[],Me=e=>{let t,o,s;const n=e.__childNodes||e.childNodes;for(const l of n){if(l["s-sr"]&&(t=l["s-cr"])&&t.parentNode){o=t.parentNode.__childNodes||t.parentNode.childNodes;const i=l["s-sn"];for(s=o.length-1;s>=0;s--)if(t=o[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===l["s-hn"]||t["s-sh"]&&t["s-sh"]===l["s-hn"]))if(Ne(t,i)){let c=T.find((r=>r.k===t));q=!0,t["s-sn"]=t["s-sn"]||i,c?(c.k["s-sh"]=l["s-hn"],c.N=l):(t["s-sh"]=l["s-hn"],T.push({N:l,k:t})),t["s-sr"]&&T.map((r=>{Ne(r.k,t["s-sn"])&&(c=T.find((u=>u.k===t)),c&&!r.N&&(r.N=c.N))}))}else T.some((c=>c.k===t))||T.push({k:t})}l.nodeType===1&&Me(l)}},De=e=>{e.v&&e.v.ref&&de.push((()=>e.v.ref(null))),e.m&&e.m.map(De)},ht=(e,t)=>{ue.push((()=>e(t)))},x=(e,t,o,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,o);const{slotNode:n}=(function(l,i){var c;if(!(i=i||((c=l["s-ol"])==null?void 0:c.parentElement)))return{slotNode:null,slotName:""};const r=l["s-sn"]=V(l)||"";return{slotNode:le(re(i,"childNodes"),i.tagName,r)[0],slotName:r}})(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)},pt=(e,t,o=!1)=>{var s,n,l,i,c;const r=e.$hostElement$,u=e.o,f=e.M||U(null,null);var a;const d=(a=t)&&a.O===Oe?t:$(null,null,t);if(M=r.tagName,u.C&&(d.v=d.v||{},u.C.forEach((([p,h])=>{d.v[h]=r[p]}))),o&&d.v)for(const p of Object.keys(d.v))r.hasAttribute(p)&&!["key","ref","style","class"].includes(p)&&(d.v[p]=r[p]);if(d.O=null,d.i|=4,e.M=d,d.S=f.S=r.shadowRoot||r,I=!(!(1&u.i)||128&u.i),ie=r["s-cr"],q=!1,H(f,d,o),O.i|=1,Y){Me(d.S);for(const p of T){const h=p.k;if(!h["s-ol"]&&w.document){const v=w.document.createTextNode("");v["s-nr"]=h,x(h.parentNode,h["s-ol"]=v,h,o)}}for(const p of T){const h=p.k,v=p.N;if(h.nodeType===1&&o&&(h["s-ih"]=(s=h.hidden)!=null&&s),v){const S=v.parentNode;let y=v.nextSibling;if(y&&y.nodeType===1){let m=(n=h["s-ol"])==null?void 0:n.previousSibling;for(;m;){let g=(l=m["s-nr"])!=null?l:null;if(g&&g["s-sn"]===h["s-sn"]&&S===(g.__parentNode||g.parentNode)){for(g=g.nextSibling;g===h||g?.["s-sr"];)g=g?.nextSibling;if(!g||!g["s-nr"]){y=g;break}}m=m.previousSibling}}if((!y&&S!==(h.__parentNode||h.parentNode)||(h.__nextSibling||h.nextSibling)!==y)&&h!==y){if(x(S,h,y,o),h.nodeType===8&&h.nodeValue.startsWith("s-nt-")){const m=w.document.createTextNode(h.nodeValue.replace(/^s-nt-/,""));m["s-hn"]=h["s-hn"],m["s-sn"]=h["s-sn"],m["s-sh"]=h["s-sh"],m["s-sr"]=h["s-sr"],m["s-ol"]=h["s-ol"],m["s-ol"]["s-nr"]=m,x(h.parentNode,m,h,o),h.parentNode.removeChild(h)}h.nodeType===1&&h.tagName!=="SLOT-FB"&&(h.hidden=(i=h["s-ih"])!=null&&i)}h&&typeof v["s-rf"]=="function"&&v["s-rf"](v)}else h.nodeType===1&&(h.hidden=!0)}}if(q&&we(d.S),O.i&=-2,T.length=0,!I&&!(1&u.i)&&r["s-cr"]){const p=d.S.__childNodes||d.S.childNodes;for(const h of p)if(h["s-hn"]!==M&&!h["s-sh"]){if(o&&h["s-ih"]==null&&(h["s-ih"]=(c=h.hidden)!=null&&c),h.nodeType===1)h.hidden=!0;else if(h.nodeType===3&&h.nodeValue.trim()){const v=w.document.createComment("s-nt-"+h.nodeValue);v["s-sn"]=h["s-sn"],x(h.parentNode,v,h,o),h.parentNode.removeChild(h)}}}ie=void 0,de.forEach((p=>p())),de.length=0,ue.forEach((p=>p())),ue.length=0},He=(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()})))}},fe=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);He(e,e.R);const o=()=>gt(e,t);if(!t)return lt(o);queueMicrotask((()=>{o()}))},gt=(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=G(s,t?"componentWillLoad":"componentWillUpdate",void 0,o),n=Be(n,(()=>G(s,"componentWillRender",void 0,o))),Be(n,(()=>yt(e,s,t)))},Be=(e,t)=>mt(e)?e.then(t).catch((o=>{console.error(o),t()})):t(),mt=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",yt=async(e,t,o)=>{var s;const n=e.$hostElement$,l=n["s-rc"];o&&(i=>{const c=i.o,r=i.$hostElement$,u=c.i,f=((a,d)=>{var p,h,v;const S=_e(d),y=z.get(S);if(!w.document)return S;if(a=a.nodeType===11?a:w.document,y)if(typeof y=="string"){let m,g=R.get(a=a.head||a);if(g||R.set(a,g=new Set),!g.has(S)){m=w.document.createElement("style"),m.textContent=y;const _=(p=O._)!=null?p:(function(){var b,N,C;return(C=(N=(b=w.document.head)==null?void 0:b.querySelector('meta[name="csp-nonce"]'))==null?void 0:N.getAttribute("content"))!=null?C:void 0})();if(_!=null&&m.setAttribute("nonce",_),!(1&d.i))if(a.nodeName==="HEAD"){const b=a.querySelectorAll("link[rel=preconnect]"),N=b.length>0?b[b.length-1].nextSibling:a.querySelector("style");a.insertBefore(m,N?.parentNode===a?N:null)}else if("host"in a)if(ee){const b=new((h=a.defaultView)!=null?h:a.ownerDocument.defaultView).CSSStyleSheet;b.replaceSync(y),te?a.adoptedStyleSheets.unshift(b):a.adoptedStyleSheets=[b,...a.adoptedStyleSheets]}else{const b=a.querySelector("style");b?b.textContent=y+b.textContent:a.prepend(m)}else a.append(m);1&d.i&&a.insertBefore(m,null),4&d.i&&(m.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),g&&g.add(S)}}else{let m=R.get(a);if(m||R.set(a,m=new Set),!m.has(S)){const g=(v=a.defaultView)!=null?v:a.ownerDocument.defaultView;let _;if(y.constructor===g.CSSStyleSheet)_=y;else{_=new g.CSSStyleSheet;for(let b=0;b<y.cssRules.length;b++)_.insertRule(y.cssRules[b].cssText,b)}te?a.adoptedStyleSheets.push(_):a.adoptedStyleSheets=[...a.adoptedStyleSheets,_],m.add(S)}}return S})(r.shadowRoot?r.shadowRoot:r.getRootNode(),c);10&u&&(r["s-sc"]=f,r.classList.add(f+"-h"))})(e),bt(e,t,n,o),l&&(l.map((i=>i())),n["s-rc"]=void 0);{const i=(s=n["s-p"])!=null?s:[],c=()=>vt(e);i.length===0?c():(Promise.all(i).then(c).catch(c),e.i|=4,i.length=0)}},bt=(e,t,o,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,pt(e,t,s)}catch(n){L(n,e.$hostElement$)}return null},vt=e=>{const t=e.$hostElement$,o=t,s=e.R;G(o,"componentDidRender",void 0,t),64&e.i?G(o,"componentDidUpdate",void 0,t):(e.i|=64,wt(t),G(o,"componentDidLoad",void 0,t),e.L(t),s||St()),e.A&&(e.A(),e.A=void 0),512&e.i&&ne((()=>fe(e,!1))),e.i&=-517},St=()=>{ne((()=>je(w,"appload",{detail:{namespace:"gids-core-web"}})))},G=(e,t,o,s)=>{if(e&&e[t])try{return e[t](o)}catch(n){L(n,s)}},wt=e=>e.classList.add("hydrated"),Fe=(e,t,o,s)=>{const n=A(e);if(!n)return;const l=e,i=n.l.get(t),c=n.i,r=l;o=Ce(o,s.t[t][0],!!(64&s.i));const u=Number.isNaN(i)&&Number.isNaN(o);if(o!==i&&!u){if(n.l.set(t,o),s.F){const f=s.F[t];f&&f.map((a=>{try{const[[d,p]]=Object.entries(a);(128&c||1&p)&&(r?r[d](o,i,t):n.T.push((()=>{n.D[d](o,i,t)})))}catch(d){L(d,l)}}))}if(2&c){if(r.componentShouldUpdate&&r.componentShouldUpdate(o,i,t)===!1&&!(16&c))return;16&c||fe(n,!1)}}},Nt=(e,t,o)=>{var s,n;const l=e.prototype;64&t.i&&1&o&&tt.forEach((i=>{const c=l[i];Object.defineProperty(l,i,{value(...r){var u;const f=A(this),a=this;a?typeof c=="function"&&c.call(a,...r):(u=f?.H)==null||u.then((d=>{const p=d[i];typeof p=="function"&&p.call(d,...r)}))}})}));{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 i=Object.entries((s=t.t)!=null?s:{});i.map((([c,[r]])=>{if(31&r||32&r){const{get:u,set:f}=D(l,c)||{};u&&(t.t[c][0]|=2048),f&&(t.t[c][0]|=4096),Object.defineProperty(l,c,{get(){return u?u.apply(this):(a=c,A(this).l.get(a));var a},configurable:!0,enumerable:!0}),Object.defineProperty(l,c,{set(a){const d=A(this);if(d){if(f)return(32&r?this[c]:d.$hostElement$[c])===void 0&&d.l.get(c)&&(a=d.l.get(c)),f.apply(this,[Ce(a,r,!!(64&t.i))]),void Fe(this,c,a=32&r?this[c]:d.$hostElement$[c],t);Fe(this,c,a,t)}}})}}));{const c=new Map;l.attributeChangedCallback=function(r,u,f){O.jmp((()=>{var a;const d=c.get(r),p=A(this);if(this.hasOwnProperty(d),l.hasOwnProperty(d)&&typeof this[d]=="number"&&this[d]==f)return;if(d==null){const m=p?.i;if(p&&m&&!(8&m)&&f!==u){const g=this,_=(a=t.F)==null?void 0:a[r];_?.forEach((b=>{const[[N,C]]=Object.entries(b);g[N]!=null&&(128&m||1&C)&&g[N].call(g,f,u,r)}))}return}const h=i.find((([m])=>m===d)),v=h&&4&h[1][0],S=v&&f===null&&this[d]===void 0;v&&(f=f!==null&&f!=="false");const y=Object.getOwnPropertyDescriptor(l,d);S||f==this[d]||y.get&&!y.set||(this[d]=f)}))},e.observedAttributes=Array.from(new Set([...Object.keys((n=t.F)!=null?n:{}),...i.filter((([r,u])=>31&u[0])).map((([r,u])=>{var f;const a=u[1]||r;return c.set(a,r),512&u[0]&&((f=t.C)==null||f.push([r,a])),a}))]))}}return e},_t=(e,t)=>{const o={i:t[0],p:t[1]};try{o.t=t[2],o.W=t[3],o.F=ke(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(){((l,i)=>{const c={i:0,$hostElement$:l,o:i,l:new Map,B:new Map};c.H=new Promise((u=>c.L=u)),l["s-p"]=[],l["s-rc"]=[];const r=c;l.__stencil__getHostRef=()=>r,512&i.i&&et(l,c)})(this,o)},connectedCallback(){if(!this.__hasHostListenerAttached){const l=A(this);if(!l)return;Ve(this,l,o.W),this.__hasHostListenerAttached=!0}(l=>{if(!(1&O.i)){const i=A(l);if(!i)return;const c=i.o;if(1&i.i)Ve(l,i,c.W),i?.D||i?.H&&i.H.then((()=>{}));else{i.i|=1,12&c.i&&(r=>{if(!w.document)return;const u=r["s-cr"]=w.document.createComment("");u["s-cn"]=!0,x(r,u,r.firstChild)})(l);{let r=l;for(;r=r.parentNode||r.host;)if(r["s-p"]){He(i,i.R=r);break}}c.t&&Object.entries(c.t).map((([r,[u]])=>{if(31&u&&Object.prototype.hasOwnProperty.call(l,r)){const f=l[r];delete l[r],l[r]=f}})),(async(r,u,f)=>{let a;try{if(!(32&u.i)&&(u.i|=32,a=r.constructor,customElements.whenDefined(r.localName).then((()=>u.i|=128)),a&&a.style)){let h;typeof a.style=="string"&&(h=a.style);const v=_e(f);z.has(v)||((S,y,m)=>{let g=z.get(S);ee&&m?(g=g||new CSSStyleSheet,typeof g=="string"?g=y:g.replaceSync(y)):g=y,z.set(S,g)})(v,h,!!(1&f.i))}const d=u.R,p=()=>fe(u,!0);d&&d["s-rc"]?d["s-rc"].push(p):p()}catch(d){L(d,r),u.A&&(u.A(),u.A=void 0),u.L&&u.L(r)}})(l,i,c)}}})(this),s&&s.call(this)},disconnectedCallback(){(async l=>{if(!(1&O.i)){const i=A(l);i?.V&&(i.V.map((c=>c())),i.V=void 0)}R.has(l)&&R.delete(l),l.shadowRoot&&R.has(l.shadowRoot)&&R.delete(l.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 rt.call(this,o)}}),Object.defineProperty(e,"is",{value:o.p,configurable:!0}),Nt(e,o,3)}catch(s){return L(s),e}},Ve=(e,t,o)=>{o&&w.document&&o.map((([s,n,l])=>{const i=$t(w.document,e,s),c=Ot(t,l),r=kt(s);O.ael(i,n,c,r),(t.V=t.V||[]).push((()=>O.rel(i,n,c,r)))}))},Ot=(e,t)=>o=>{try{e.$hostElement$[t](o)}catch(s){L(s,e.$hostElement$)}},$t=(e,t,o)=>8&o?w:t,kt=e=>ot?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e);function Vt(e){return e}function Ie(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=Ie(e[t]))&&(s&&(s+=" "),s+=o)}else for(o in e)e[o]&&(s&&(s+=" "),s+=o);return s}function We(){for(var e,t,o=0,s="",n=arguments.length;o<n;o++)(e=arguments[o])&&(t=Ie(e))&&(s&&(s+=" "),s+=t);return s}const Ct=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerControlClassNames:({size:e,indeterminate:t,value:o},s)=>We("gids-spinner-control",{"gids-spinner-control--xs":e==="xs","gids-spinner-control--sm":e==="sm","gids-spinner-control--lg":e==="lg","gids-spinner-control--xl":e==="xl","gids-spinner-control--2xl":e==="2xl","gids-spinner-control--determinate":t===!1},o,s)},Symbol.toStringTag,{value:"Module"})),jt=Object.freeze(Object.defineProperty({__proto__:null,getGidsButtonClassNames:({appearance:e,size:t,width:o,destructive:s,positive:n,loading:l},i,c)=>We("gids-button",{"gids-button--primary":e==="primary","gids-button--subtle":e==="subtle","gids-button--xs":t==="xs","gids-button--sm":t==="sm","gids-button--lg":t==="lg","gids-button--full-width":o==="full","gids-button--destructive":s&&!n,"gids-button--positive":n&&!s,"gids-button--icon-only":i,"gids-button--loading":l},c)},Symbol.toStringTag,{value:"Module"})),Q=64,Ge=10,ze=Q/2-Ge/2,xt=Q/2,he=2*Math.PI*ze,Et=`0 0 ${Q} ${Q}`,At=Object.freeze(Object.defineProperty({__proto__:null,calculateStrokeDasharray:(e=0,t)=>{const o=typeof t=="number"&&t>0?t:1,n=Math.max(0,Math.min(o,e))/o*100,l=(he*n/100).toFixed(2),i=(he-parseFloat(l)).toFixed(2);return`${l} ${i}`},centerPosition:xt,circumference:he,radius:ze,thickness:Ge,viewBox:Et},Symbol.toStringTag,{value:"Module"})),Ue=e=>e!==void 0&&(!Array.isArray(e)||e.length>0),{getGidsSpinnerControlClassNames:Tt}=Ct,{calculateStrokeDasharray:Rt,thickness:qe,radius:Ye,centerPosition:X,viewBox:Pt}=At,Lt=({size:e,indeterminate:t,value:o,max:s,...n})=>{let l;return t||(l={strokeDashArray:Rt(o,s||0),strokeDashoffset:"0"}),$("svg",{class:Tt({size:e,indeterminate:t,value:o}),viewBox:Pt,...n},$("circle",{class:"gids-spinner-control__track",cx:X,cy:X,r:Ye,"stroke-width":qe}),$("circle",{style:l,class:"gids-spinner-control__progress",cx:X,cy:X,r:Ye,"stroke-width":qe}))},{getGidsButtonClassNames:Mt}=jt,Dt=({appearance:e,size:t,destructive:o,positive:s,loading:n,width:l,leadingIcon:i,trailingIcon:c,as:r,disabled:u,class:f,forceIconOnly:a=!1,...d},p)=>{const h=r||"button",v=t==="lg"||t===void 0?"md":t;return h!=="button"||"type"in d||(d.type="button"),$(h,{class:Mt({appearance:e,size:t,destructive:o,loading:n,width:l,positive:s},a||p.length===0&&Ue(i)&&!Ue(c),f),disabled:h==="button"?u:void 0,...d},$("span",{class:"gids-button__content"},i,p),n&&$(Lt,{size:v,indeterminate:!0}),c)},B=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let Ze=!1;B&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(B):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let pe=null;const ge=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{Je()})):void 0,Je=()=>{if(B===void 0)return!1;const e=(()=>{if(B===void 0)return;const t=[];for(let o=0;o<document.styleSheets.length;o++){const s=document.styleSheets.item(o);if(s)try{let n=-1,l=0;for(let i=0;i<s.cssRules.length;i++){const c=s.cssRules.item(i);if(c?.cssText.startsWith("gids-global-styles-start"))n=i;else if(n>-1){if(c?.cssText.startsWith("gids-global-styles-end")){l=i-n+1;break}t.push(c)}}if(n>-1)return{rulesStartIndex:n,originalRulesCount:l,rules:t,styleSheet:s}}catch(n){if(!(n instanceof DOMException))throw n}}})();if(e!==void 0){const t=e.styleSheet.ownerNode;return ge!==void 0&&t!==pe&&(pe&&ge.disconnect(),t instanceof Element&&ge.observe(t,{childList:!0,characterData:!0,subtree:!0}),pe=t),B.replaceSync((o=>o.rules.map((s=>s.cssText)).join(""))(e)),(o=>{const{rulesStartIndex:s,originalRulesCount:n,styleSheet:l}=o;for(let i=0;i<n;i++)l.deleteRule(s)})(e),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},Ht=()=>(Ze||(Ze=Je()),B),Ke=_t(class extends st{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.select=dt(this,"select"),this._toggle=this._toggle.bind(this)}handleSelctedChange(e){this.selected!==e&&(this.selected=e)}connectedCallback(){const e=Ht();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}_toggle(){const e=!this.selected;this._el.selected=e,this.select?.emit(e),this.selected=e}render(){return $(Oe,{key:"510886303fd853bf5c24fb5f38fd8485f831e72c"},$("style",{key:"8e431f50396bf87f0475788e2cd3615d28cc24c7"},`:host {
6
6
  display: ${this.width==="full"?"block":"inline-block"}
7
- }`),$(Dt,{key:"4a7a08513aa15cb97cdea1ce89799c2f3969ea37",appearance:this.appearance,size:this.size,width:this.width,disabled:this.disabled,onClick:this._toggle,"aria-pressed":this.selected?"true":"false",leadingIcon:$("slot",{name:"leadingIcon"}),trailingIcon:$("slot",{name:"trailingIcon"}),forceIconOnly:this._onlyHasLeadingIcon()},$("slot",{key:"246d5789eb1aa8cd3fa2c9bc647fae741cc1bc81"})))}_onlyHasLeadingIcon(){const e=this._el.childNodes;return e.length===1&&e[0]instanceof window.Element&&e[0].slot==="leadingIcon"}get _el(){return this}static get watchers(){return{selected:[{handleSelctedChange:0}]}}},[257,"gids-toggle-button",{disabled:[516],appearance:[513],size:[513],width:[513],defaultSelected:[516,"default-selected"],selected:[1540]},void 0,{selected:[{handleSelctedChange:0}]}]);function Qe(){typeof customElements<"u"&&["gids-toggle-button"].forEach((e=>{e==="gids-toggle-button"&&(customElements.get(e)||customElements.define(e,Ke))}))}Qe();const Bt=Ke,Ft=Qe;P.GidsToggleButton=Bt,P.defineCustomElement=Ft,Object.defineProperty(P,Symbol.toStringTag,{value:"Module"})}));
7
+ }`),$(Dt,{key:"e2292ad4d60014b8d412157fdb36e5a2fa9cfd79",appearance:this.appearance,size:this.size,width:this.width,disabled:this.disabled,onClick:this._toggle,"aria-pressed":this.selected?"true":"false",leadingIcon:$("slot",{name:"leadingIcon"}),trailingIcon:$("slot",{name:"trailingIcon"}),forceIconOnly:this._onlyHasLeadingIcon()},$("slot",{key:"0f805e868de82ad388f4781bacf36e860395f3fa"})))}_onlyHasLeadingIcon(){const e=this._el.childNodes;return e.length===1&&e[0]instanceof window.Element&&e[0].slot==="leadingIcon"}get _el(){return this}static get watchers(){return{selected:[{handleSelctedChange:0}]}}},[257,"gids-toggle-button",{disabled:[516],appearance:[513],size:[513],width:[513],defaultSelected:[516,"default-selected"],selected:[1540]},void 0,{selected:[{handleSelctedChange:0}]}]);function Qe(){typeof customElements<"u"&&["gids-toggle-button"].forEach((e=>{e==="gids-toggle-button"&&(customElements.get(e)||customElements.define(e,Ke))}))}Qe();const Bt=Ke,Ft=Qe;P.GidsToggleButton=Bt,P.defineCustomElement=Ft,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 v=this["s-cr"].parentElement;return(v.__childNodes?v.childNodes:(w=>{const g=[];for(let y=0;y<w.length;y++){const m=w[y]["s-nr"]||void 0;m&&m.isConnected&&g.push(m)}return g})(v.childNodes)).forEach((w=>{h===he(w)&&p.push(w)})),a?p.filter((w=>w.nodeType===1)):p}).bind(f);f.assignedElements=u(!0),f.assignedNodes=u(!1)})(s),c=e&&e.m&&e.m[o],c&&c.O===i.O&&e.S&&Rt(e.S)),s},Rt=e=>{C.i|=1;const t=e.closest(G.toLowerCase());if(t!=null){const o=Array.from(t.__childNodes||t.childNodes).find((i=>i["s-cr"])),n=Array.from(e.__childNodes||e.childNodes);for(const i of o?n.reverse():n)i["s-sh"]!=null&&(_(t,i,o??null),i["s-sh"]=void 0,Te=!0)}C.i&=-2},Re=(e,t)=>{C.i|=1;const o=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let n=e;for(;n=n.nextSibling;)n&&n["s-sn"]===e["s-sn"]&&n["s-sh"]===G&&o.push(n)}for(let n=o.length-1;n>=0;n--){const i=o[n];i["s-hn"]!==G&&i["s-ol"]&&(_(me(i).parentNode,i,me(i)),i["s-ol"].remove(),i["s-ol"]=void 0,i["s-sh"]=void 0,Te=!0),t&&Re(i,t)}C.i&=-2},kt=(e,t,o,n,i,s)=>{let l,c=e["s-cr"]&&e["s-cr"].parentNode||e;for(c.shadowRoot&&c.tagName===G&&(c=c.shadowRoot),o.O==="template"&&(c=c.content);i<=s;++i)n[i]&&(l=Ne(null,o,i),l&&(n[i].S=l,_(c,l,me(t))))},Lt=(e,t,o)=>{for(let n=t;n<=o;++n){const i=e[n];if(i){const s=i.S;$t(i),s&&(Ce=!0,s["s-ol"]?s["s-ol"].remove():Re(s,!0),s.remove())}}},ke=(e,t,o=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:o?(o&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),me=e=>e&&e["s-ol"]||e,se=(e,t,o=!1)=>{const n=t.S=e.S,i=e.m,s=t.m,l=t.O,c=t.h;let r;c==null?(R=l==="svg"||l!=="foreignObject"&&R,l!=="slot"||pe||e.j!==t.j&&(t.S["s-sn"]=t.j||"",Rt(t.S.parentElement)),Ye(e,t,R),i!==null&&s!==null?((f,u,a,d,p=!1)=>{let h,v,w=0,g=0,y=0,m=0,x=u.length-1,b=u[0],S=u[x],E=d.length-1,A=d[0],T=d[E];const L=a.O==="template"?f.content:f;for(;w<=x&&g<=E;)if(b==null)b=u[++w];else if(S==null)S=u[--x];else if(A==null)A=d[++g];else if(T==null)T=d[--E];else if(ke(b,A,p))se(b,A,p),b=u[++w],A=d[++g];else if(ke(S,T,p))se(S,T,p),S=u[--x],T=d[--E];else if(ke(b,T,p))b.O!=="slot"&&T.O!=="slot"||Re(b.S.parentNode,!1),se(b,T,p),_(L,b.S,S.S.nextSibling),b=u[++w],T=d[--E];else if(ke(S,A,p))b.O!=="slot"&&T.O!=="slot"||Re(S.S.parentNode,!1),se(S,A,p),_(L,S.S,b.S),S=u[--x],A=d[++g];else{for(y=-1,m=w;m<=x;++m)if(u[m]&&u[m].$!==null&&u[m].$===A.$){y=m;break}y>=0?(v=u[y],v.O!==A.O?h=Ne(u&&u[g],a,y):(se(v,A,p),u[y]=void 0,h=v.S),A=d[++g]):(h=Ne(u&&u[g],a,g),A=d[++g]),h&&_(me(b.S).parentNode,h,me(b.S))}w>x?kt(f,d[E+1]==null?null:d[E+1].S,a,d,g,E):g>E&&Lt(u,w,x)})(n,i,t,s,o):s!==null?(e.h!==null&&(n.textContent=""),kt(n,null,t,s,0,s.length-1)):!o&&i!==null&&Lt(i,0,i.length-1),R&&l==="svg"&&(R=!1)):(r=n["s-cr"])?r.parentNode.textContent=c:e.h!==c&&(n.data=c)},V=[],_t=e=>{let t,o,n;const i=e.__childNodes||e.childNodes;for(const s of i){if(s["s-sr"]&&(t=s["s-cr"])&&t.parentNode){o=t.parentNode.__childNodes||t.parentNode.childNodes;const l=s["s-sn"];for(n=o.length-1;n>=0;n--)if(t=o[n],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===s["s-hn"]||t["s-sh"]&&t["s-sh"]===s["s-hn"]))if(bt(t,l)){let c=V.find((r=>r.k===t));Ce=!0,t["s-sn"]=t["s-sn"]||l,c?(c.k["s-sh"]=s["s-hn"],c.N=s):(t["s-sh"]=s["s-hn"],V.push({N:s,k:t})),t["s-sr"]&&V.map((r=>{bt(r.k,t["s-sn"])&&(c=V.find((f=>f.k===t)),c&&!r.N&&(r.N=c.N))}))}else V.some((c=>c.k===t))||V.push({k:t})}s.nodeType===1&&_t(s)}},$t=e=>{e.v&&e.v.ref&&Ge.push((()=>e.v.ref(null))),e.m&&e.m.map($t)},xn=(e,t)=>{Ze.push((()=>e(t)))},_=(e,t,o,n)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,o);const{slotNode:i}=(function(s,l){var c;if(!(l=l||((c=s["s-ol"])==null?void 0:c.parentElement)))return{slotNode:null,slotName:""};const r=s["s-sn"]=he(s)||"";return{slotNode:Ie(Ue(l,"childNodes"),l.tagName,r)[0],slotName:r}})(t);return i&&!n&&i.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,o):e?.insertBefore(t,o)},Sn=(e,t,o=!1)=>{var n,i,s,l,c;const r=e.$hostElement$,f=e.o,u=e.M||Ae(null,null);var a;const d=(a=t)&&a.O===mn?t:ie(null,null,t);if(G=r.tagName,f.C&&(d.v=d.v||{},f.C.forEach((([p,h])=>{d.v[h]=r[p]}))),o&&d.v)for(const p of Object.keys(d.v))r.hasAttribute(p)&&!["key","ref","style","class"].includes(p)&&(d.v[p]=r[p]);if(d.O=null,d.i|=4,e.M=d,d.S=u.S=r.shadowRoot||r,pe=!(!(1&f.i)||128&f.i),qe=r["s-cr"],Ce=!1,se(u,d,o),C.i|=1,Te){_t(d.S);for(const p of V){const h=p.k;if(!h["s-ol"]&&O.document){const v=O.document.createTextNode("");v["s-nr"]=h,_(h.parentNode,h["s-ol"]=v,h,o)}}for(const p of V){const h=p.k,v=p.N;if(h.nodeType===1&&o&&(h["s-ih"]=(n=h.hidden)!=null&&n),v){const w=v.parentNode;let g=v.nextSibling;if(g&&g.nodeType===1){let y=(i=h["s-ol"])==null?void 0:i.previousSibling;for(;y;){let m=(s=y["s-nr"])!=null?s:null;if(m&&m["s-sn"]===h["s-sn"]&&w===(m.__parentNode||m.parentNode)){for(m=m.nextSibling;m===h||m?.["s-sr"];)m=m?.nextSibling;if(!m||!m["s-nr"]){g=m;break}}y=y.previousSibling}}if((!g&&w!==(h.__parentNode||h.parentNode)||(h.__nextSibling||h.nextSibling)!==g)&&h!==g){if(_(w,h,g,o),h.nodeType===8&&h.nodeValue.startsWith("s-nt-")){const y=O.document.createTextNode(h.nodeValue.replace(/^s-nt-/,""));y["s-hn"]=h["s-hn"],y["s-sn"]=h["s-sn"],y["s-sh"]=h["s-sh"],y["s-sr"]=h["s-sr"],y["s-ol"]=h["s-ol"],y["s-ol"]["s-nr"]=y,_(h.parentNode,y,h,o),h.parentNode.removeChild(h)}h.nodeType===1&&h.tagName!=="SLOT-FB"&&(h.hidden=(l=h["s-ih"])!=null&&l)}h&&typeof v["s-rf"]=="function"&&v["s-rf"](v)}else h.nodeType===1&&(h.hidden=!0)}}if(Ce&&wt(d.S),C.i&=-2,V.length=0,!pe&&!(1&f.i)&&r["s-cr"]){const p=d.S.__childNodes||d.S.childNodes;for(const h of p)if(h["s-hn"]!==G&&!h["s-sh"]){if(o&&h["s-ih"]==null&&(h["s-ih"]=(c=h.hidden)!=null&&c),h.nodeType===1)h.hidden=!0;else if(h.nodeType===3&&h.nodeValue.trim()){const v=O.document.createComment("s-nt-"+h.nodeValue);v["s-sn"]=h["s-sn"],_(h.parentNode,v,h,o),h.parentNode.removeChild(h)}}}qe=void 0,Ge.forEach((p=>p())),Ge.length=0,Ze.forEach((p=>p())),Ze.length=0},Pt=(e,t)=>{if(t&&!e.A&&t["s-p"]){const o=t["s-p"].push(new Promise((n=>e.A=()=>{t["s-p"].splice(o-1,1),n()})))}},Ke=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);Pt(e,e.R);const o=()=>En(e,t);if(!t)return dn(o);queueMicrotask((()=>{o()}))},En=(e,t)=>{const o=e.$hostElement$,n=o;if(!n)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 i;return i=ge(n,t?"componentWillLoad":"componentWillUpdate",void 0,o),i=Dt(i,(()=>ge(n,"componentWillRender",void 0,o))),Dt(i,(()=>An(e,n,t)))},Dt=(e,t)=>On(e)?e.then(t).catch((o=>{console.error(o),t()})):t(),On=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",An=async(e,t,o)=>{var n;const i=e.$hostElement$,s=i["s-rc"];o&&(l=>{const c=l.o,r=l.$hostElement$,f=c.i,u=((a,d)=>{var p,h,v;const w=xt(d),g=Oe.get(w);if(!O.document)return w;if(a=a.nodeType===11?a:O.document,g)if(typeof g=="string"){let y,m=z.get(a=a.head||a);if(m||z.set(a,m=new Set),!m.has(w)){y=O.document.createElement("style"),y.textContent=g;const x=(p=C._)!=null?p:(function(){var b,S,E;return(E=(S=(b=O.document.head)==null?void 0:b.querySelector('meta[name="csp-nonce"]'))==null?void 0:S.getAttribute("content"))!=null?E:void 0})();if(x!=null&&y.setAttribute("nonce",x),!(1&d.i))if(a.nodeName==="HEAD"){const b=a.querySelectorAll("link[rel=preconnect]"),S=b.length>0?b[b.length-1].nextSibling:a.querySelector("style");a.insertBefore(y,S?.parentNode===a?S:null)}else if("host"in a)if(je){const b=new((h=a.defaultView)!=null?h:a.ownerDocument.defaultView).CSSStyleSheet;b.replaceSync(g),Ve?a.adoptedStyleSheets.unshift(b):a.adoptedStyleSheets=[b,...a.adoptedStyleSheets]}else{const b=a.querySelector("style");b?b.textContent=g+b.textContent:a.prepend(y)}else a.append(y);1&d.i&&a.insertBefore(y,null),4&d.i&&(y.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),m&&m.add(w)}}else{let y=z.get(a);if(y||z.set(a,y=new Set),!y.has(w)){const m=(v=a.defaultView)!=null?v:a.ownerDocument.defaultView;let x;if(g.constructor===m.CSSStyleSheet)x=g;else{x=new m.CSSStyleSheet;for(let b=0;b<g.cssRules.length;b++)x.insertRule(g.cssRules[b].cssText,b)}Ve?a.adoptedStyleSheets.push(x):a.adoptedStyleSheets=[...a.adoptedStyleSheets,x],y.add(w)}}return w})(r.shadowRoot?r.shadowRoot:r.getRootNode(),c);10&f&&(r["s-sc"]=u,r.classList.add(u+"-h"))})(e),Cn(e,t,i,o),s&&(s.map((l=>l())),i["s-rc"]=void 0);{const l=(n=i["s-p"])!=null?n:[],c=()=>Tn(e);l.length===0?c():(Promise.all(l).then(c).catch(c),e.i|=4,l.length=0)}},Cn=(e,t,o,n)=>{try{t=t.render(),e.i&=-17,e.i|=2,Sn(e,t,n)}catch(i){Y(i,e.$hostElement$)}return null},Tn=e=>{const t=e.$hostElement$,o=t,n=e.R;ge(o,"componentDidRender",void 0,t),64&e.i?ge(o,"componentDidUpdate",void 0,t):(e.i|=64,Rn(t),ge(o,"componentDidLoad",void 0,t),e.L(t),n||Nn()),e.A&&(e.A(),e.A=void 0),512&e.i&&ze((()=>Ke(e,!1))),e.i&=-517},Nn=()=>{ze((()=>vn(O,"appload",{detail:{namespace:"gids-core-web"}})))},ge=(e,t,o,n)=>{if(e&&e[t])try{return e[t](o)}catch(i){Y(i,n)}},Rn=e=>e.classList.add("hydrated"),Mt=(e,t,o,n)=>{const i=j(e);if(!i)return;const s=e,l=i.l.get(t),c=i.i,r=s;o=Ot(o,n.t[t][0],!!(64&n.i));const f=Number.isNaN(l)&&Number.isNaN(o);if(o!==l&&!f){if(i.l.set(t,o),n.F){const u=n.F[t];u&&u.map((a=>{try{const[[d,p]]=Object.entries(a);(128&c||1&p)&&(r?r[d](o,l,t):i.T.push((()=>{i.D[d](o,l,t)})))}catch(d){Y(d,s)}}))}if(2&c){if(r.componentShouldUpdate&&r.componentShouldUpdate(o,l,t)===!1&&!(16&c))return;16&c||Ke(i,!1)}}},kn=(e,t,o)=>{var n,i;const s=e.prototype;64&t.i&&1&o&&cn.forEach((l=>{const c=s[l];Object.defineProperty(s,l,{value(...r){var f;const u=j(this),a=this;a?typeof c=="function"&&c.call(a,...r):(f=u?.H)==null||f.then((d=>{const p=d[l];typeof p=="function"&&p.call(d,...r)}))}})}));{e.watchers&&!t.F&&(t.F=Et(e.watchers)),e.deserializers&&!t.P&&(t.P=e.deserializers),e.serializers&&!t.U&&(t.U=e.serializers);const l=Object.entries((n=t.t)!=null?n:{});l.map((([c,[r]])=>{if(31&r||32&r){const{get:f,set:u}=oe(s,c)||{};f&&(t.t[c][0]|=2048),u&&(t.t[c][0]|=4096),Object.defineProperty(s,c,{get(){return f?f.apply(this):(a=c,j(this).l.get(a));var a},configurable:!0,enumerable:!0}),Object.defineProperty(s,c,{set(a){const d=j(this);if(d){if(u)return(32&r?this[c]:d.$hostElement$[c])===void 0&&d.l.get(c)&&(a=d.l.get(c)),u.apply(this,[Ot(a,r,!!(64&t.i))]),void Mt(this,c,a=32&r?this[c]:d.$hostElement$[c],t);Mt(this,c,a,t)}}})}}));{const c=new Map;s.attributeChangedCallback=function(r,f,u){C.jmp((()=>{var a;const d=c.get(r),p=j(this);if(this.hasOwnProperty(d),s.hasOwnProperty(d)&&typeof this[d]=="number"&&this[d]==u)return;if(d==null){const y=p?.i;if(p&&y&&!(8&y)&&u!==f){const m=this,x=(a=t.F)==null?void 0:a[r];x?.forEach((b=>{const[[S,E]]=Object.entries(b);m[S]!=null&&(128&y||1&E)&&m[S].call(m,u,f,r)}))}return}const h=l.find((([y])=>y===d)),v=h&&4&h[1][0],w=v&&u===null&&this[d]===void 0;v&&(u=u!==null&&u!=="false");const g=Object.getOwnPropertyDescriptor(s,d);w||u==this[d]||g.get&&!g.set||(this[d]=u)}))},e.observedAttributes=Array.from(new Set([...Object.keys((i=t.F)!=null?i:{}),...l.filter((([r,f])=>31&f[0])).map((([r,f])=>{var u;const a=f[1]||r;return c.set(a,r),512&f[0]&&((u=t.C)==null||u.push([r,a])),a}))]))}}return e},Ln=(e,t)=>{const o={i:t[0],p:t[1]};try{o.t=t[2],o.W=t[3],o.F=Et(e.F),o.P=e.P,o.U=e.U,o.C=[];const n=e.prototype.connectedCallback,i=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((s,l)=>{const c={i:0,$hostElement$:s,o:l,l:new Map,B:new Map};c.H=new Promise((f=>c.L=f)),s["s-p"]=[],s["s-rc"]=[];const r=c;s.__stencil__getHostRef=()=>r,512&l.i&&rn(s,c)})(this,o)},connectedCallback(){if(!this.__hasHostListenerAttached){const s=j(this);if(!s)return;Ft(this,s,o.W),this.__hasHostListenerAttached=!0}(s=>{if(!(1&C.i)){const l=j(s);if(!l)return;const c=l.o;if(1&l.i)Ft(s,l,c.W),l?.D||l?.H&&l.H.then((()=>{}));else{l.i|=1,12&c.i&&(r=>{if(!O.document)return;const f=r["s-cr"]=O.document.createComment("");f["s-cn"]=!0,_(r,f,r.firstChild)})(s);{let r=s;for(;r=r.parentNode||r.host;)if(r["s-p"]){Pt(l,l.R=r);break}}c.t&&Object.entries(c.t).map((([r,[f]])=>{if(31&f&&Object.prototype.hasOwnProperty.call(s,r)){const u=s[r];delete s[r],s[r]=u}})),(async(r,f,u)=>{let a;try{if(!(32&f.i)&&(f.i|=32,a=r.constructor,customElements.whenDefined(r.localName).then((()=>f.i|=128)),a&&a.style)){let h;typeof a.style=="string"&&(h=a.style);const v=xt(u);Oe.has(v)||((w,g,y)=>{let m=Oe.get(w);je&&y?(m=m||new CSSStyleSheet,typeof m=="string"?m=g:m.replaceSync(g)):m=g,Oe.set(w,m)})(v,h,!!(1&u.i))}const d=f.R,p=()=>Ke(f,!0);d&&d["s-rc"]?d["s-rc"].push(p):p()}catch(d){Y(d,r),f.A&&(f.A(),f.A=void 0),f.L&&f.L(r)}})(s,l,c)}}})(this),n&&n.call(this)},disconnectedCallback(){(async s=>{if(!(1&C.i)){const l=j(s);l?.V&&(l.V.map((c=>c())),l.V=void 0)}z.has(s)&&z.delete(s),s.shadowRoot&&z.has(s.shadowRoot)&&z.delete(s.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 ${o.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else hn.call(this,o)}}),Object.defineProperty(e,"is",{value:o.p,configurable:!0}),kn(e,o,3)}catch(n){return Y(n),e}},_n=(e,t)=>t,Ft=(e,t,o)=>{o&&O.document&&o.map((([n,i,s])=>{const l=Pn(O.document,e,n),c=$n(t,s),r=Dn(n);C.ael(l,i,c,r),(t.V=t.V||[]).push((()=>C.rel(l,i,c,r)))}))},$n=(e,t)=>o=>{try{e.$hostElement$[t](o)}catch(n){Y(n,e.$hostElement$)}},Pn=(e,t,o)=>8&o?O:t,Dn=e=>fn?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e);function _o(e){return e}const le=Math.min,Z=Math.max,Le=Math.round,_e=Math.floor,F=e=>({x:e,y:e}),Mn={left:"right",right:"left",bottom:"top",top:"bottom"};function Je(e,t,o){return Z(e,le(t,o))}function ye(e,t){return typeof e=="function"?e(t):e}function K(e){return e.split("-")[0]}function ve(e){return e.split("-")[1]}function Wt(e){return e==="x"?"y":"x"}function Qe(e){return e==="y"?"height":"width"}function I(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function et(e){return Wt(I(e))}function Fn(e,t,o){o===void 0&&(o=!1);const n=ve(e),i=et(e),s=Qe(i);let l=i==="x"?n===(o?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(l=$e(l)),[l,$e(l)]}function Wn(e){const t=$e(e);return[tt(e),t,tt(t)]}function tt(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const jt=["left","right"],Vt=["right","left"],jn=["top","bottom"],Vn=["bottom","top"];function Hn(e,t,o){switch(e){case"top":case"bottom":return o?t?Vt:jt:t?jt:Vt;case"left":case"right":return t?jn:Vn;default:return[]}}function Bn(e,t,o,n){const i=ve(e);let s=Hn(K(e),o==="start",n);return i&&(s=s.map(l=>l+"-"+i),t&&(s=s.concat(s.map(tt)))),s}function $e(e){const t=K(e);return Mn[t]+e.slice(t.length)}function zn(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ht(e){return typeof e!="number"?zn(e):{top:e,right:e,bottom:e,left:e}}function Pe(e){const{x:t,y:o,width:n,height:i}=e;return{width:n,height:i,top:o,left:t,right:t+n,bottom:o+i,x:t,y:o}}function Bt(e,t,o){let{reference:n,floating:i}=e;const s=I(t),l=et(t),c=Qe(l),r=K(t),f=s==="y",u=n.x+n.width/2-i.width/2,a=n.y+n.height/2-i.height/2,d=n[c]/2-i[c]/2;let p;switch(r){case"top":p={x:u,y:n.y-i.height};break;case"bottom":p={x:u,y:n.y+n.height};break;case"right":p={x:n.x+n.width,y:a};break;case"left":p={x:n.x-i.width,y:a};break;default:p={x:n.x,y:n.y}}switch(ve(t)){case"start":p[l]-=d*(o&&f?-1:1);break;case"end":p[l]+=d*(o&&f?-1:1);break}return p}async function In(e,t){var o;t===void 0&&(t={});const{x:n,y:i,platform:s,rects:l,elements:c,strategy:r}=e,{boundary:f="clippingAncestors",rootBoundary:u="viewport",elementContext:a="floating",altBoundary:d=!1,padding:p=0}=ye(t,e),h=Ht(p),w=c[d?a==="floating"?"reference":"floating":a],g=Pe(await s.getClippingRect({element:(o=await(s.isElement==null?void 0:s.isElement(w)))==null||o?w:w.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(c.floating)),boundary:f,rootBoundary:u,strategy:r})),y=a==="floating"?{x:n,y:i,width:l.floating.width,height:l.floating.height}:l.reference,m=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c.floating)),x=await(s.isElement==null?void 0:s.isElement(m))?await(s.getScale==null?void 0:s.getScale(m))||{x:1,y:1}:{x:1,y:1},b=Pe(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:y,offsetParent:m,strategy:r}):y);return{top:(g.top-b.top+h.top)/x.y,bottom:(b.bottom-g.bottom+h.bottom)/x.y,left:(g.left-b.left+h.left)/x.x,right:(b.right-g.right+h.right)/x.x}}const Un=50,qn=async(e,t,o)=>{const{placement:n="bottom",strategy:i="absolute",middleware:s=[],platform:l}=o,c=l.detectOverflow?l:{...l,detectOverflow:In},r=await(l.isRTL==null?void 0:l.isRTL(t));let f=await l.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:a}=Bt(f,n,r),d=n,p=0;const h={};for(let v=0;v<s.length;v++){const w=s[v];if(!w)continue;const{name:g,fn:y}=w,{x:m,y:x,data:b,reset:S}=await y({x:u,y:a,initialPlacement:n,placement:d,strategy:i,middlewareData:h,rects:f,platform:c,elements:{reference:e,floating:t}});u=m??u,a=x??a,h[g]={...h[g],...b},S&&p<Un&&(p++,typeof S=="object"&&(S.placement&&(d=S.placement),S.rects&&(f=S.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:i}):S.rects),{x:u,y:a}=Bt(f,d,r)),v=-1)}return{x:u,y:a,placement:d,strategy:i,middlewareData:h}},Xn=e=>({name:"arrow",options:e,async fn(t){const{x:o,y:n,placement:i,rects:s,platform:l,elements:c,middlewareData:r}=t,{element:f,padding:u=0}=ye(e,t)||{};if(f==null)return{};const a=Ht(u),d={x:o,y:n},p=et(i),h=Qe(p),v=await l.getDimensions(f),w=p==="y",g=w?"top":"left",y=w?"bottom":"right",m=w?"clientHeight":"clientWidth",x=s.reference[h]+s.reference[p]-d[p]-s.floating[h],b=d[p]-s.reference[p],S=await(l.getOffsetParent==null?void 0:l.getOffsetParent(f));let E=S?S[m]:0;(!E||!await(l.isElement==null?void 0:l.isElement(S)))&&(E=c.floating[m]||s.floating[h]);const A=x/2-b/2,T=E/2-v[h]/2-1,L=le(a[g],T),Se=le(a[y],T),te=L,Ee=E-v[h]-Se,N=E/2-v[h]/2+A,ne=Je(te,N,Ee),B=!r.arrow&&ve(i)!=null&&N!==ne&&s.reference[h]/2-(N<te?L:Se)-v[h]/2<0,D=B?N<te?N-te:N-Ee:0;return{[p]:d[p]+D,data:{[p]:ne,centerOffset:N-ne-D,...B&&{alignmentOffset:D}},reset:B}}}),Yn=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var o,n;const{placement:i,middlewareData:s,rects:l,initialPlacement:c,platform:r,elements:f}=t,{mainAxis:u=!0,crossAxis:a=!0,fallbackPlacements:d,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:v=!0,...w}=ye(e,t);if((o=s.arrow)!=null&&o.alignmentOffset)return{};const g=K(i),y=I(c),m=K(c)===c,x=await(r.isRTL==null?void 0:r.isRTL(f.floating)),b=d||(m||!v?[$e(c)]:Wn(c)),S=h!=="none";!d&&S&&b.push(...Bn(c,v,h,x));const E=[c,...b],A=await r.detectOverflow(t,w),T=[];let L=((n=s.flip)==null?void 0:n.overflows)||[];if(u&&T.push(A[g]),a){const N=Fn(i,l,x);T.push(A[N[0]],A[N[1]])}if(L=[...L,{placement:i,overflows:T}],!T.every(N=>N<=0)){var Se,te;const N=(((Se=s.flip)==null?void 0:Se.index)||0)+1,ne=E[N];if(ne&&(!(a==="alignment"?y!==I(ne):!1)||L.every(M=>I(M.placement)===y?M.overflows[0]>0:!0)))return{data:{index:N,overflows:L},reset:{placement:ne}};let B=(te=L.filter(D=>D.overflows[0]<=0).sort((D,M)=>D.overflows[1]-M.overflows[1])[0])==null?void 0:te.placement;if(!B)switch(p){case"bestFit":{var Ee;const D=(Ee=L.filter(M=>{if(S){const q=I(M.placement);return q===y||q==="y"}return!0}).map(M=>[M.placement,M.overflows.filter(q=>q>0).reduce((q,Lo)=>q+Lo,0)]).sort((M,q)=>M[1]-q[1])[0])==null?void 0:Ee[0];D&&(B=D);break}case"initialPlacement":B=c;break}if(i!==B)return{reset:{placement:B}}}return{}}}},Gn=new Set(["left","top"]);async function Zn(e,t){const{placement:o,platform:n,elements:i}=e,s=await(n.isRTL==null?void 0:n.isRTL(i.floating)),l=K(o),c=ve(o),r=I(o)==="y",f=Gn.has(l)?-1:1,u=s&&r?-1:1,a=ye(t,e);let{mainAxis:d,crossAxis:p,alignmentAxis:h}=typeof a=="number"?{mainAxis:a,crossAxis:0,alignmentAxis:null}:{mainAxis:a.mainAxis||0,crossAxis:a.crossAxis||0,alignmentAxis:a.alignmentAxis};return c&&typeof h=="number"&&(p=c==="end"?h*-1:h),r?{x:p*u,y:d*f}:{x:d*f,y:p*u}}const Kn=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var o,n;const{x:i,y:s,placement:l,middlewareData:c}=t,r=await Zn(t,e);return l===((o=c.offset)==null?void 0:o.placement)&&(n=c.arrow)!=null&&n.alignmentOffset?{}:{x:i+r.x,y:s+r.y,data:{...r,placement:l}}}}},Jn=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:o,y:n,placement:i,platform:s}=t,{mainAxis:l=!0,crossAxis:c=!1,limiter:r={fn:g=>{let{x:y,y:m}=g;return{x:y,y:m}}},...f}=ye(e,t),u={x:o,y:n},a=await s.detectOverflow(t,f),d=I(K(i)),p=Wt(d);let h=u[p],v=u[d];if(l){const g=p==="y"?"top":"left",y=p==="y"?"bottom":"right",m=h+a[g],x=h-a[y];h=Je(m,h,x)}if(c){const g=d==="y"?"top":"left",y=d==="y"?"bottom":"right",m=v+a[g],x=v-a[y];v=Je(m,v,x)}const w=r.fn({...t,[p]:h,[d]:v});return{...w,data:{x:w.x-o,y:w.y-n,enabled:{[p]:l,[d]:c}}}}}};function De(){return typeof window<"u"}function re(e){return zt(e)?(e.nodeName||"").toLowerCase():"#document"}function k(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function W(e){var t;return(t=(zt(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function zt(e){return De()?e instanceof Node||e instanceof k(e).Node:!1}function $(e){return De()?e instanceof Element||e instanceof k(e).Element:!1}function H(e){return De()?e instanceof HTMLElement||e instanceof k(e).HTMLElement:!1}function It(e){return!De()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof k(e).ShadowRoot}function we(e){const{overflow:t,overflowX:o,overflowY:n,display:i}=P(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+o)&&i!=="inline"&&i!=="contents"}function Qn(e){return/^(table|td|th)$/.test(re(e))}function Me(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const eo=/transform|translate|scale|rotate|perspective|filter/,to=/paint|layout|strict|content/,J=e=>!!e&&e!=="none";let nt;function ot(e){const t=$(e)?P(e):e;return J(t.transform)||J(t.translate)||J(t.scale)||J(t.rotate)||J(t.perspective)||!it()&&(J(t.backdropFilter)||J(t.filter))||eo.test(t.willChange||"")||to.test(t.contain||"")}function no(e){let t=U(e);for(;H(t)&&!ce(t);){if(ot(t))return t;if(Me(t))return null;t=U(t)}return null}function it(){return nt==null&&(nt=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),nt}function ce(e){return/^(html|body|#document)$/.test(re(e))}function P(e){return k(e).getComputedStyle(e)}function Fe(e){return $(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function U(e){if(re(e)==="html")return e;const t=e.assignedSlot||e.parentNode||It(e)&&e.host||W(e);return It(t)?t.host:t}function Ut(e){const t=U(e);return ce(t)?e.ownerDocument?e.ownerDocument.body:e.body:H(t)&&we(t)?t:Ut(t)}function be(e,t,o){var n;t===void 0&&(t=[]),o===void 0&&(o=!0);const i=Ut(e),s=i===((n=e.ownerDocument)==null?void 0:n.body),l=k(i);if(s){const c=st(l);return t.concat(l,l.visualViewport||[],we(i)?i:[],c&&o?be(c):[])}else return t.concat(i,be(i,[],o))}function st(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function qt(e){const t=P(e);let o=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const i=H(e),s=i?e.offsetWidth:o,l=i?e.offsetHeight:n,c=Le(o)!==s||Le(n)!==l;return c&&(o=s,n=l),{width:o,height:n,$:c}}function lt(e){return $(e)?e:e.contextElement}function ae(e){const t=lt(e);if(!H(t))return F(1);const o=t.getBoundingClientRect(),{width:n,height:i,$:s}=qt(t);let l=(s?Le(o.width):o.width)/n,c=(s?Le(o.height):o.height)/i;return(!l||!Number.isFinite(l))&&(l=1),(!c||!Number.isFinite(c))&&(c=1),{x:l,y:c}}const oo=F(0);function Xt(e){const t=k(e);return!it()||!t.visualViewport?oo:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function io(e,t,o){return t===void 0&&(t=!1),!o||t&&o!==k(e)?!1:t}function Q(e,t,o,n){t===void 0&&(t=!1),o===void 0&&(o=!1);const i=e.getBoundingClientRect(),s=lt(e);let l=F(1);t&&(n?$(n)&&(l=ae(n)):l=ae(e));const c=io(s,o,n)?Xt(s):F(0);let r=(i.left+c.x)/l.x,f=(i.top+c.y)/l.y,u=i.width/l.x,a=i.height/l.y;if(s){const d=k(s),p=n&&$(n)?k(n):n;let h=d,v=st(h);for(;v&&n&&p!==h;){const w=ae(v),g=v.getBoundingClientRect(),y=P(v),m=g.left+(v.clientLeft+parseFloat(y.paddingLeft))*w.x,x=g.top+(v.clientTop+parseFloat(y.paddingTop))*w.y;r*=w.x,f*=w.y,u*=w.x,a*=w.y,r+=m,f+=x,h=k(v),v=st(h)}}return Pe({width:u,height:a,x:r,y:f})}function We(e,t){const o=Fe(e).scrollLeft;return t?t.left+o:Q(W(e)).left+o}function Yt(e,t){const o=e.getBoundingClientRect(),n=o.left+t.scrollLeft-We(e,o),i=o.top+t.scrollTop;return{x:n,y:i}}function so(e){let{elements:t,rect:o,offsetParent:n,strategy:i}=e;const s=i==="fixed",l=W(n),c=t?Me(t.floating):!1;if(n===l||c&&s)return o;let r={scrollLeft:0,scrollTop:0},f=F(1);const u=F(0),a=H(n);if((a||!a&&!s)&&((re(n)!=="body"||we(l))&&(r=Fe(n)),a)){const p=Q(n);f=ae(n),u.x=p.x+n.clientLeft,u.y=p.y+n.clientTop}const d=l&&!a&&!s?Yt(l,r):F(0);return{width:o.width*f.x,height:o.height*f.y,x:o.x*f.x-r.scrollLeft*f.x+u.x+d.x,y:o.y*f.y-r.scrollTop*f.y+u.y+d.y}}function lo(e){return Array.from(e.getClientRects())}function ro(e){const t=W(e),o=Fe(e),n=e.ownerDocument.body,i=Z(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),s=Z(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let l=-o.scrollLeft+We(e);const c=-o.scrollTop;return P(n).direction==="rtl"&&(l+=Z(t.clientWidth,n.clientWidth)-i),{width:i,height:s,x:l,y:c}}const Gt=25;function co(e,t){const o=k(e),n=W(e),i=o.visualViewport;let s=n.clientWidth,l=n.clientHeight,c=0,r=0;if(i){s=i.width,l=i.height;const u=it();(!u||u&&t==="fixed")&&(c=i.offsetLeft,r=i.offsetTop)}const f=We(n);if(f<=0){const u=n.ownerDocument,a=u.body,d=getComputedStyle(a),p=u.compatMode==="CSS1Compat"&&parseFloat(d.marginLeft)+parseFloat(d.marginRight)||0,h=Math.abs(n.clientWidth-a.clientWidth-p);h<=Gt&&(s-=h)}else f<=Gt&&(s+=f);return{width:s,height:l,x:c,y:r}}function ao(e,t){const o=Q(e,!0,t==="fixed"),n=o.top+e.clientTop,i=o.left+e.clientLeft,s=H(e)?ae(e):F(1),l=e.clientWidth*s.x,c=e.clientHeight*s.y,r=i*s.x,f=n*s.y;return{width:l,height:c,x:r,y:f}}function Zt(e,t,o){let n;if(t==="viewport")n=co(e,o);else if(t==="document")n=ro(W(e));else if($(t))n=ao(t,o);else{const i=Xt(e);n={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Pe(n)}function Kt(e,t){const o=U(e);return o===t||!$(o)||ce(o)?!1:P(o).position==="fixed"||Kt(o,t)}function fo(e,t){const o=t.get(e);if(o)return o;let n=be(e,[],!1).filter(c=>$(c)&&re(c)!=="body"),i=null;const s=P(e).position==="fixed";let l=s?U(e):e;for(;$(l)&&!ce(l);){const c=P(l),r=ot(l);!r&&c.position==="fixed"&&(i=null),(s?!r&&!i:!r&&c.position==="static"&&!!i&&(i.position==="absolute"||i.position==="fixed")||we(l)&&!r&&Kt(e,l))?n=n.filter(u=>u!==l):i=c,l=U(l)}return t.set(e,n),n}function uo(e){let{element:t,boundary:o,rootBoundary:n,strategy:i}=e;const l=[...o==="clippingAncestors"?Me(t)?[]:fo(t,this._c):[].concat(o),n],c=Zt(t,l[0],i);let r=c.top,f=c.right,u=c.bottom,a=c.left;for(let d=1;d<l.length;d++){const p=Zt(t,l[d],i);r=Z(p.top,r),f=le(p.right,f),u=le(p.bottom,u),a=Z(p.left,a)}return{width:f-a,height:u-r,x:a,y:r}}function ho(e){const{width:t,height:o}=qt(e);return{width:t,height:o}}function po(e,t,o){const n=H(t),i=W(t),s=o==="fixed",l=Q(e,!0,s,t);let c={scrollLeft:0,scrollTop:0};const r=F(0);function f(){r.x=We(i)}if(n||!n&&!s)if((re(t)!=="body"||we(i))&&(c=Fe(t)),n){const p=Q(t,!0,s,t);r.x=p.x+t.clientLeft,r.y=p.y+t.clientTop}else i&&f();s&&!n&&i&&f();const u=i&&!n&&!s?Yt(i,c):F(0),a=l.left+c.scrollLeft-r.x-u.x,d=l.top+c.scrollTop-r.y-u.y;return{x:a,y:d,width:l.width,height:l.height}}function rt(e){return P(e).position==="static"}function Jt(e,t){if(!H(e)||P(e).position==="fixed")return null;if(t)return t(e);let o=e.offsetParent;return W(e)===o&&(o=o.ownerDocument.body),o}function Qt(e,t){const o=k(e);if(Me(e))return o;if(!H(e)){let i=U(e);for(;i&&!ce(i);){if($(i)&&!rt(i))return i;i=U(i)}return o}let n=Jt(e,t);for(;n&&Qn(n)&&rt(n);)n=Jt(n,t);return n&&ce(n)&&rt(n)&&!ot(n)?o:n||no(e)||o}const mo=async function(e){const t=this.getOffsetParent||Qt,o=this.getDimensions,n=await o(e.floating);return{reference:po(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function go(e){return P(e).direction==="rtl"}const ct={convertOffsetParentRelativeRectToViewportRelativeRect:so,getDocumentElement:W,getClippingRect:uo,getOffsetParent:Qt,getElementRects:mo,getClientRects:lo,getDimensions:ho,getScale:ae,isElement:$,isRTL:go};function en(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function yo(e,t){let o=null,n;const i=W(e);function s(){var c;clearTimeout(n),(c=o)==null||c.disconnect(),o=null}function l(c,r){c===void 0&&(c=!1),r===void 0&&(r=1),s();const f=e.getBoundingClientRect(),{left:u,top:a,width:d,height:p}=f;if(c||t(),!d||!p)return;const h=_e(a),v=_e(i.clientWidth-(u+d)),w=_e(i.clientHeight-(a+p)),g=_e(u),m={rootMargin:-h+"px "+-v+"px "+-w+"px "+-g+"px",threshold:Z(0,le(1,r))||1};let x=!0;function b(S){const E=S[0].intersectionRatio;if(E!==r){if(!x)return l();E?l(!1,E):n=setTimeout(()=>{l(!1,1e-7)},1e3)}E===1&&!en(f,e.getBoundingClientRect())&&l(),x=!1}try{o=new IntersectionObserver(b,{...m,root:i.ownerDocument})}catch{o=new IntersectionObserver(b,m)}o.observe(e)}return l(!0),s}function vo(e,t,o,n){n===void 0&&(n={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:r=!1}=n,f=lt(e),u=i||s?[...f?be(f):[],...t?be(t):[]]:[];u.forEach(g=>{i&&g.addEventListener("scroll",o,{passive:!0}),s&&g.addEventListener("resize",o)});const a=f&&c?yo(f,o):null;let d=-1,p=null;l&&(p=new ResizeObserver(g=>{let[y]=g;y&&y.target===f&&p&&t&&(p.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var m;(m=p)==null||m.observe(t)})),o()}),f&&!r&&p.observe(f),t&&p.observe(t));let h,v=r?Q(e):null;r&&w();function w(){const g=Q(e);v&&!en(v,g)&&o(),v=g,h=requestAnimationFrame(w)}return o(),()=>{var g;u.forEach(y=>{i&&y.removeEventListener("scroll",o),s&&y.removeEventListener("resize",o)}),a?.(),(g=p)==null||g.disconnect(),p=null,r&&cancelAnimationFrame(h)}}const wo=Kn,bo=Jn,xo=Yn,So=Xn,Eo=(e,t,o)=>{const n=new Map,i={platform:ct,...o},s={...i.platform,_c:n};return qn(e,t,{...i,platform:s})};var xe;(function(e){e.TOOLTIP="tooltip",e.POPOVER="popover"})(xe||(xe={}));function tn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}const Oo=/transform|translate|scale|rotate|perspective|filter/,Ao=/paint|layout|strict|content/,ee=e=>!!e&&e!=="none";let at;function Co(e){const t=(o=e,typeof window<"u"&&(o instanceof Element||o instanceof tn(o).Element)?tn(n=e).getComputedStyle(n):e);var o,n;return ee(t.transform)||ee(t.translate)||ee(t.scale)||ee(t.rotate)||ee(t.perspective)||(at==null&&(at=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),!at&&(ee(t.backdropFilter)||ee(t.filter)))||Oo.test(t.willChange||"")||Ao.test(t.contain||"")}function To(e){return(function(t){for(let o=t;o;o=ft(o))if(o instanceof Element&&getComputedStyle(o).display==="none")return null;for(let o=ft(t);o;o=ft(o)){if(!(o instanceof Element))continue;const n=getComputedStyle(o);if(n.display!=="contents"&&(n.position!=="static"||Co(n)||o.tagName==="BODY"))return o}return null})(e)}function ft(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}const ue=class ue{constructor(t,o){this.el=t,this.config=o,this.offset=10,this.timeDelayBeforeFadingOut=50,this.popoverMainAxisEnabled=!0,this.currentPlacement=o.placement,this.cleanup=null}setCommonTimingConfig(){this.timeBeforeElementShows=this.config.showWithoutDelay?50:500,this.timeOfAnimation=this.config.showWithoutDelay?50:250}initialize(){this.setCommonTimingConfig(),this.floatingElement=this.el.shadowRoot?.querySelector(this.config.floatingElementSelector),this.floatingElement&&this.applyViewportMaxWidth(),this.arrowEl=this.config.showArrow!==!1&&this.config.arrowElementSelector?this.el.shadowRoot?.querySelector(this.config.arrowElementSelector):null,this.anchorElement=this.config.htmlFor?.length>0?document.getElementById(this.config.htmlFor):this.config.getAnchorElementFromSlot(this.el.shadowRoot),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.setCommonTimingConfig(),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=vo(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=[wo(this.offset)],o=xo({mainAxis:!0,crossAxis:!this.config.lockToMainAxis&&"alignment",fallbackAxisSideDirection:"end",padding:this.offset}),n=this.config.elementType===xe.POPOVER,i=bo({padding:this.offset,mainAxis:this.config.elementType===xe.TOOLTIP||n&&this.popoverMainAxisEnabled,crossAxis:!1});this.config.placement.includes("-")?t.push(o,i):t.push(i,o),this.config.showArrow!==!1&&this.arrowEl&&t.push(So({element:this.arrowEl,padding:this.offset})),Eo(this.anchorElement,this.floatingElement,{placement:this.config.placement,strategy:"fixed",middleware:t,platform:{...ct,getOffsetParent:s=>ct.getOffsetParent(s,To)}}).then((({x:s,y:l,middlewareData:c,placement:r})=>{if(n){const d=r.startsWith("left")||r.startsWith("right"),p=r.startsWith("top")||r.startsWith("bottom"),h=this.isAnchorInViewport(),v=!!p||(d?h:this.popoverMainAxisEnabled);if(v!==this.popoverMainAxisEnabled)return this.popoverMainAxisEnabled=v,void this.updatePosition()}this.currentPlacement=r,Object.assign(this.floatingElement.style,{left:`${s}px`,top:`${l}px`,position:"fixed",transition:`opacity ${this.timeOfAnimation}ms ease`});const f=r.split("-")[0]??"bottom",u={top:"bottom",right:"left",bottom:"top",left:"right"}[f],{arrowZIndex:a}=this.normalizeFloatingElementStacking();if(c.arrow&&this.arrowEl){const d=this.arrowEl.offsetWidth,{x:p,y:h}=c.arrow;this.arrowEl.style.borderRadius=`${["left","right"].includes(f)?"0 ":""}var(--gidsFloatingElement-tip-border-radius, 2px)${["top","bottom"].includes(f)?" 0":""}`,Object.assign(this.arrowEl.style,{left:p!==null?`${p}px`:"",top:h!==null?`${h}px`:"",right:"",bottom:"",[u]:-d/2+"px",transform:"rotate(45deg)",zIndex:`${a}`,background:"var(--gidsFloatingElement-background)"})}}))}applyViewportMaxWidth(){const t=`calc(100vw - ${2*this.offset}px)`;this.floatingElement?.style.maxWidth!==t&&(this.floatingElement.style.maxWidth=t)}normalizeFloatingElementStacking(){const t=this.floatingElement.style.zIndex||(window.getComputedStyle?.(this.floatingElement).zIndex??""),o=Number.parseInt(t,10),n=Number.isNaN(o)?-1:o-1,i=Number.isNaN(o)?n+1:o;return Number.isNaN(i)||(this.floatingElement.style.zIndex=`${i}`),Array.from(this.floatingElement.children).forEach((s=>{if(!(s instanceof HTMLElement)||s===this.arrowEl)return;const l=s.style.zIndex||(window.getComputedStyle?.(s).zIndex??""),c=Number.parseInt(l,10),r=window.getComputedStyle?.(s).position??"";(l===""||l==="auto"||Number.isNaN(c)||c<i)&&(s.style.zIndex=`${i}`,r!==""&&r!=="static"||(s.style.position="relative"))})),{contentZIndex:i,arrowZIndex:n}}hideFloatingElement(){this.floatingElement.classList.remove(this.config.visibilityClass),ue.currentFloatingElements.delete(this.config.elementType)}showFloatingElement(){const t=ue.currentFloatingElements.get(this.config.elementType);t&&t.hideFloatingElement(),this.floatingElement.classList.add(this.config.visibilityClass),ue.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(),o=window.innerHeight||document.documentElement?.clientHeight||0,n=window.innerWidth||document.documentElement?.clientWidth||0,i=t.height/2+2*this.offset;return t.bottom>=i&&t.top<=o-i&&t.right>=0&&t.left<=n}};ue.currentFloatingElements=new Map;let ut=ue;const fe=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let nn=!1;fe&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(fe):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let dt=null;const ht=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{on()})):void 0,on=()=>{if(fe===void 0)return!1;const e=(()=>{if(fe===void 0)return;const t=[];for(let o=0;o<document.styleSheets.length;o++){const n=document.styleSheets.item(o);if(n)try{let i=-1,s=0;for(let l=0;l<n.cssRules.length;l++){const c=n.cssRules.item(l);if(c?.cssText.startsWith("gids-global-styles-start"))i=l;else if(i>-1){if(c?.cssText.startsWith("gids-global-styles-end")){s=l-i+1;break}t.push(c)}}if(i>-1)return{rulesStartIndex:i,originalRulesCount:s,rules:t,styleSheet:n}}catch(i){if(!(i instanceof DOMException))throw i}}})();if(e!==void 0){const t=e.styleSheet.ownerNode;return ht!==void 0&&t!==dt&&(dt&&ht.disconnect(),t instanceof Element&&ht.observe(t,{childList:!0,characterData:!0,subtree:!0}),dt=t),fe.replaceSync((o=>o.rules.map((n=>n.cssText)).join(""))(e)),(o=>{const{rulesStartIndex:n,originalRulesCount:i,styleSheet:s}=o;for(let l=0;l<i;l++)s.deleteRule(n)})(e),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},No=()=>(nn||(nn=on()),fe),sn=Ln(class extends an{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.placement="bottom",this.showWithoutDelay=!1,this.lockToMainAxis=!1,this.handleShowEvent=()=>{this.floatingElementManager.showAfterDelay()},this.handleHideEvent=()=>{this.floatingElementManager.hideAfterDelay()}}connectedCallback(){const e=No();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}componentDidLoad(){this.floatingElementManager=new ut(this._el,{htmlFor:this.htmlFor,placement:this.placement,showWithoutDelay:this.showWithoutDelay,lockToMainAxis:this.lockToMainAxis,floatingElementSelector:"#tooltip",arrowElementSelector:"#arrow",visibilityClass:"gids-tooltip--visible",elementType:xe.TOOLTIP,getAnchorElementFromSlot:e=>e.querySelector("slot")?.assignedElements()[0]||null}),this.floatingElementManager.initialize(),this.setupEventListeners()}setupEventListeners(){const e=this.floatingElementManager.getAnchorElement();e&&(e.addEventListener("mouseenter",this.handleShowEvent),e.addEventListener("focus",this.handleShowEvent),e.addEventListener("mouseleave",this.handleHideEvent),e.addEventListener("blur",this.handleHideEvent))}placementChanged(e){this.floatingElementManager?.updateConfig({placement:e}),this.floatingElementManager?.isVisible()&&this.floatingElementManager?.reposition()}showWithoutDelayChanged(e){this.floatingElementManager?.updateConfig({showWithoutDelay:e})}lockToMainAxisChanged(e){this.floatingElementManager?.updateConfig({lockToMainAxis:e})}htmlForChanged(e){this.floatingElementManager?.updateConfig({htmlFor:e}),this.cleanupEventListeners(),this.floatingElementManager?.initialize(),this.setupEventListeners()}cleanupEventListeners(){const e=this.floatingElementManager?.getAnchorElement();e&&(e.removeEventListener("mouseenter",this.handleShowEvent),e.removeEventListener("focus",this.handleShowEvent),e.removeEventListener("mouseleave",this.handleHideEvent),e.removeEventListener("blur",this.handleHideEvent))}render(){return ie(_n,{key:"b0f08c29ac34e9b5dc1f0ebbc677d6eb0bc0e832"},ie("slot",{key:"a43f148f89fc86e1f02ee24a001159c3719e96e1"}),ie("span",{key:"df16bd00d7b07684669ec8f446d9b9ddb4be2ada",id:"tooltip",part:"tooltip",role:"tooltip"},ie("span",{key:"03335fae5e572f20f19882a7ca30ca43b1199dca",id:"arrow"}),this.tooltipText))}disconnectedCallback(){this.cleanupEventListeners(),this.floatingElementManager?.destroy()}get _el(){return this}static get watchers(){return{placement:[{placementChanged:0}],showWithoutDelay:[{showWithoutDelayChanged:0}],lockToMainAxis:[{lockToMainAxisChanged:0}],htmlFor:[{htmlForChanged:0}]}}static get style(){return"gids-tooltip{--gidsTooltip-background:var(--gids-color-background-neutral-bold-default);--gidsTooltip-text-color:var(--gids-color-text-inverse);--gidsTooltip-padding:var(--gids-padding-vertical-edge-to-element-100) var(--gids-padding-horizontal-edge-to-element-200);--gidsTooltip-border-radius:var(--gids-border-radius-sm);--gidsTooltip-tip-border-radius:2px;--gidsTooltip-tip-size:12px;--gidsFloatingElement-background:var(--gidsTooltip-background);--gidsFloatingElement-tip-border-radius:var(--gidsTooltip-tip-border-radius)}[part=tooltip]{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;hyphens:auto;background-color:var(--gidsTooltip-background);color:var(--gidsTooltip-text-color);padding:var(--gidsTooltip-padding);border-radius:var(--gidsTooltip-border-radius);z-index:1000;opacity:0;pointer-events:none}[part=tooltip].gids-tooltip--visible{pointer-events:initial;opacity:1}[part=tooltip] span#arrow{position:absolute;height:var(--gidsTooltip-tip-size);width:var(--gidsTooltip-tip-size)}"}},[257,"gids-tooltip",{htmlFor:[513,"for"],tooltipText:[513,"tooltip-text"],placement:[513],showWithoutDelay:[516,"show-without-delay"],lockToMainAxis:[4,"lock-to-main-axis"]},void 0,{placement:[{placementChanged:0}],showWithoutDelay:[{showWithoutDelayChanged:0}],lockToMainAxis:[{lockToMainAxisChanged:0}],htmlFor:[{htmlForChanged:0}]}]);function ln(){typeof customElements<"u"&&["gids-tooltip"].forEach((e=>{e==="gids-tooltip"&&(customElements.get(e)||customElements.define(e,sn))}))}ln();const Ro=sn,ko=ln;X.GidsTooltip=Ro,X.defineCustomElement=ko,Object.defineProperty(X,Symbol.toStringTag,{value:"Module"})}));
5
+ `);const v=this["s-cr"].parentElement;return(v.__childNodes?v.childNodes:(w=>{const g=[];for(let y=0;y<w.length;y++){const m=w[y]["s-nr"]||void 0;m&&m.isConnected&&g.push(m)}return g})(v.childNodes)).forEach((w=>{h===he(w)&&p.push(w)})),a?p.filter((w=>w.nodeType===1)):p}).bind(f);f.assignedElements=u(!0),f.assignedNodes=u(!1)})(s),c=e&&e.m&&e.m[o],c&&c.O===i.O&&e.S&&Rt(e.S)),s},Rt=e=>{C.i|=1;const t=e.closest(G.toLowerCase());if(t!=null){const o=Array.from(t.__childNodes||t.childNodes).find((i=>i["s-cr"])),n=Array.from(e.__childNodes||e.childNodes);for(const i of o?n.reverse():n)i["s-sh"]!=null&&(_(t,i,o??null),i["s-sh"]=void 0,Te=!0)}C.i&=-2},Re=(e,t)=>{C.i|=1;const o=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let n=e;for(;n=n.nextSibling;)n&&n["s-sn"]===e["s-sn"]&&n["s-sh"]===G&&o.push(n)}for(let n=o.length-1;n>=0;n--){const i=o[n];i["s-hn"]!==G&&i["s-ol"]&&(_(me(i).parentNode,i,me(i)),i["s-ol"].remove(),i["s-ol"]=void 0,i["s-sh"]=void 0,Te=!0),t&&Re(i,t)}C.i&=-2},kt=(e,t,o,n,i,s)=>{let l,c=e["s-cr"]&&e["s-cr"].parentNode||e;for(c.shadowRoot&&c.tagName===G&&(c=c.shadowRoot),o.O==="template"&&(c=c.content);i<=s;++i)n[i]&&(l=Ne(null,o,i),l&&(n[i].S=l,_(c,l,me(t))))},Lt=(e,t,o)=>{for(let n=t;n<=o;++n){const i=e[n];if(i){const s=i.S;$t(i),s&&(Ce=!0,s["s-ol"]?s["s-ol"].remove():Re(s,!0),s.remove())}}},ke=(e,t,o=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:o?(o&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),me=e=>e&&e["s-ol"]||e,se=(e,t,o=!1)=>{const n=t.S=e.S,i=e.m,s=t.m,l=t.O,c=t.h;let r;c==null?(R=l==="svg"||l!=="foreignObject"&&R,l!=="slot"||pe||e.j!==t.j&&(t.S["s-sn"]=t.j||"",Rt(t.S.parentElement)),Ye(e,t,R),i!==null&&s!==null?((f,u,a,d,p=!1)=>{let h,v,w=0,g=0,y=0,m=0,x=u.length-1,b=u[0],S=u[x],E=d.length-1,A=d[0],T=d[E];const L=a.O==="template"?f.content:f;for(;w<=x&&g<=E;)if(b==null)b=u[++w];else if(S==null)S=u[--x];else if(A==null)A=d[++g];else if(T==null)T=d[--E];else if(ke(b,A,p))se(b,A,p),b=u[++w],A=d[++g];else if(ke(S,T,p))se(S,T,p),S=u[--x],T=d[--E];else if(ke(b,T,p))b.O!=="slot"&&T.O!=="slot"||Re(b.S.parentNode,!1),se(b,T,p),_(L,b.S,S.S.nextSibling),b=u[++w],T=d[--E];else if(ke(S,A,p))b.O!=="slot"&&T.O!=="slot"||Re(S.S.parentNode,!1),se(S,A,p),_(L,S.S,b.S),S=u[--x],A=d[++g];else{for(y=-1,m=w;m<=x;++m)if(u[m]&&u[m].$!==null&&u[m].$===A.$){y=m;break}y>=0?(v=u[y],v.O!==A.O?h=Ne(u&&u[g],a,y):(se(v,A,p),u[y]=void 0,h=v.S),A=d[++g]):(h=Ne(u&&u[g],a,g),A=d[++g]),h&&_(me(b.S).parentNode,h,me(b.S))}w>x?kt(f,d[E+1]==null?null:d[E+1].S,a,d,g,E):g>E&&Lt(u,w,x)})(n,i,t,s,o):s!==null?(e.h!==null&&(n.textContent=""),kt(n,null,t,s,0,s.length-1)):!o&&i!==null&&Lt(i,0,i.length-1),R&&l==="svg"&&(R=!1)):(r=n["s-cr"])?r.parentNode.textContent=c:e.h!==c&&(n.data=c)},V=[],_t=e=>{let t,o,n;const i=e.__childNodes||e.childNodes;for(const s of i){if(s["s-sr"]&&(t=s["s-cr"])&&t.parentNode){o=t.parentNode.__childNodes||t.parentNode.childNodes;const l=s["s-sn"];for(n=o.length-1;n>=0;n--)if(t=o[n],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===s["s-hn"]||t["s-sh"]&&t["s-sh"]===s["s-hn"]))if(bt(t,l)){let c=V.find((r=>r.k===t));Ce=!0,t["s-sn"]=t["s-sn"]||l,c?(c.k["s-sh"]=s["s-hn"],c.N=s):(t["s-sh"]=s["s-hn"],V.push({N:s,k:t})),t["s-sr"]&&V.map((r=>{bt(r.k,t["s-sn"])&&(c=V.find((f=>f.k===t)),c&&!r.N&&(r.N=c.N))}))}else V.some((c=>c.k===t))||V.push({k:t})}s.nodeType===1&&_t(s)}},$t=e=>{e.v&&e.v.ref&&Ge.push((()=>e.v.ref(null))),e.m&&e.m.map($t)},xn=(e,t)=>{Ze.push((()=>e(t)))},_=(e,t,o,n)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,o);const{slotNode:i}=(function(s,l){var c;if(!(l=l||((c=s["s-ol"])==null?void 0:c.parentElement)))return{slotNode:null,slotName:""};const r=s["s-sn"]=he(s)||"";return{slotNode:Ie(Ue(l,"childNodes"),l.tagName,r)[0],slotName:r}})(t);return i&&!n&&i.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,o):e?.insertBefore(t,o)},Sn=(e,t,o=!1)=>{var n,i,s,l,c;const r=e.$hostElement$,f=e.o,u=e.M||Ae(null,null);var a;const d=(a=t)&&a.O===mn?t:ie(null,null,t);if(G=r.tagName,f.C&&(d.v=d.v||{},f.C.forEach((([p,h])=>{d.v[h]=r[p]}))),o&&d.v)for(const p of Object.keys(d.v))r.hasAttribute(p)&&!["key","ref","style","class"].includes(p)&&(d.v[p]=r[p]);if(d.O=null,d.i|=4,e.M=d,d.S=u.S=r.shadowRoot||r,pe=!(!(1&f.i)||128&f.i),qe=r["s-cr"],Ce=!1,se(u,d,o),C.i|=1,Te){_t(d.S);for(const p of V){const h=p.k;if(!h["s-ol"]&&O.document){const v=O.document.createTextNode("");v["s-nr"]=h,_(h.parentNode,h["s-ol"]=v,h,o)}}for(const p of V){const h=p.k,v=p.N;if(h.nodeType===1&&o&&(h["s-ih"]=(n=h.hidden)!=null&&n),v){const w=v.parentNode;let g=v.nextSibling;if(g&&g.nodeType===1){let y=(i=h["s-ol"])==null?void 0:i.previousSibling;for(;y;){let m=(s=y["s-nr"])!=null?s:null;if(m&&m["s-sn"]===h["s-sn"]&&w===(m.__parentNode||m.parentNode)){for(m=m.nextSibling;m===h||m?.["s-sr"];)m=m?.nextSibling;if(!m||!m["s-nr"]){g=m;break}}y=y.previousSibling}}if((!g&&w!==(h.__parentNode||h.parentNode)||(h.__nextSibling||h.nextSibling)!==g)&&h!==g){if(_(w,h,g,o),h.nodeType===8&&h.nodeValue.startsWith("s-nt-")){const y=O.document.createTextNode(h.nodeValue.replace(/^s-nt-/,""));y["s-hn"]=h["s-hn"],y["s-sn"]=h["s-sn"],y["s-sh"]=h["s-sh"],y["s-sr"]=h["s-sr"],y["s-ol"]=h["s-ol"],y["s-ol"]["s-nr"]=y,_(h.parentNode,y,h,o),h.parentNode.removeChild(h)}h.nodeType===1&&h.tagName!=="SLOT-FB"&&(h.hidden=(l=h["s-ih"])!=null&&l)}h&&typeof v["s-rf"]=="function"&&v["s-rf"](v)}else h.nodeType===1&&(h.hidden=!0)}}if(Ce&&wt(d.S),C.i&=-2,V.length=0,!pe&&!(1&f.i)&&r["s-cr"]){const p=d.S.__childNodes||d.S.childNodes;for(const h of p)if(h["s-hn"]!==G&&!h["s-sh"]){if(o&&h["s-ih"]==null&&(h["s-ih"]=(c=h.hidden)!=null&&c),h.nodeType===1)h.hidden=!0;else if(h.nodeType===3&&h.nodeValue.trim()){const v=O.document.createComment("s-nt-"+h.nodeValue);v["s-sn"]=h["s-sn"],_(h.parentNode,v,h,o),h.parentNode.removeChild(h)}}}qe=void 0,Ge.forEach((p=>p())),Ge.length=0,Ze.forEach((p=>p())),Ze.length=0},Pt=(e,t)=>{if(t&&!e.A&&t["s-p"]){const o=t["s-p"].push(new Promise((n=>e.A=()=>{t["s-p"].splice(o-1,1),n()})))}},Ke=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);Pt(e,e.R);const o=()=>En(e,t);if(!t)return dn(o);queueMicrotask((()=>{o()}))},En=(e,t)=>{const o=e.$hostElement$,n=o;if(!n)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 i;return i=ge(n,t?"componentWillLoad":"componentWillUpdate",void 0,o),i=Dt(i,(()=>ge(n,"componentWillRender",void 0,o))),Dt(i,(()=>An(e,n,t)))},Dt=(e,t)=>On(e)?e.then(t).catch((o=>{console.error(o),t()})):t(),On=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",An=async(e,t,o)=>{var n;const i=e.$hostElement$,s=i["s-rc"];o&&(l=>{const c=l.o,r=l.$hostElement$,f=c.i,u=((a,d)=>{var p,h,v;const w=xt(d),g=Oe.get(w);if(!O.document)return w;if(a=a.nodeType===11?a:O.document,g)if(typeof g=="string"){let y,m=z.get(a=a.head||a);if(m||z.set(a,m=new Set),!m.has(w)){y=O.document.createElement("style"),y.textContent=g;const x=(p=C._)!=null?p:(function(){var b,S,E;return(E=(S=(b=O.document.head)==null?void 0:b.querySelector('meta[name="csp-nonce"]'))==null?void 0:S.getAttribute("content"))!=null?E:void 0})();if(x!=null&&y.setAttribute("nonce",x),!(1&d.i))if(a.nodeName==="HEAD"){const b=a.querySelectorAll("link[rel=preconnect]"),S=b.length>0?b[b.length-1].nextSibling:a.querySelector("style");a.insertBefore(y,S?.parentNode===a?S:null)}else if("host"in a)if(je){const b=new((h=a.defaultView)!=null?h:a.ownerDocument.defaultView).CSSStyleSheet;b.replaceSync(g),Ve?a.adoptedStyleSheets.unshift(b):a.adoptedStyleSheets=[b,...a.adoptedStyleSheets]}else{const b=a.querySelector("style");b?b.textContent=g+b.textContent:a.prepend(y)}else a.append(y);1&d.i&&a.insertBefore(y,null),4&d.i&&(y.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),m&&m.add(w)}}else{let y=z.get(a);if(y||z.set(a,y=new Set),!y.has(w)){const m=(v=a.defaultView)!=null?v:a.ownerDocument.defaultView;let x;if(g.constructor===m.CSSStyleSheet)x=g;else{x=new m.CSSStyleSheet;for(let b=0;b<g.cssRules.length;b++)x.insertRule(g.cssRules[b].cssText,b)}Ve?a.adoptedStyleSheets.push(x):a.adoptedStyleSheets=[...a.adoptedStyleSheets,x],y.add(w)}}return w})(r.shadowRoot?r.shadowRoot:r.getRootNode(),c);10&f&&(r["s-sc"]=u,r.classList.add(u+"-h"))})(e),Cn(e,t,i,o),s&&(s.map((l=>l())),i["s-rc"]=void 0);{const l=(n=i["s-p"])!=null?n:[],c=()=>Tn(e);l.length===0?c():(Promise.all(l).then(c).catch(c),e.i|=4,l.length=0)}},Cn=(e,t,o,n)=>{try{t=t.render(),e.i&=-17,e.i|=2,Sn(e,t,n)}catch(i){Y(i,e.$hostElement$)}return null},Tn=e=>{const t=e.$hostElement$,o=t,n=e.R;ge(o,"componentDidRender",void 0,t),64&e.i?ge(o,"componentDidUpdate",void 0,t):(e.i|=64,Rn(t),ge(o,"componentDidLoad",void 0,t),e.L(t),n||Nn()),e.A&&(e.A(),e.A=void 0),512&e.i&&ze((()=>Ke(e,!1))),e.i&=-517},Nn=()=>{ze((()=>vn(O,"appload",{detail:{namespace:"gids-core-web"}})))},ge=(e,t,o,n)=>{if(e&&e[t])try{return e[t](o)}catch(i){Y(i,n)}},Rn=e=>e.classList.add("hydrated"),Mt=(e,t,o,n)=>{const i=j(e);if(!i)return;const s=e,l=i.l.get(t),c=i.i,r=s;o=Ot(o,n.t[t][0],!!(64&n.i));const f=Number.isNaN(l)&&Number.isNaN(o);if(o!==l&&!f){if(i.l.set(t,o),n.F){const u=n.F[t];u&&u.map((a=>{try{const[[d,p]]=Object.entries(a);(128&c||1&p)&&(r?r[d](o,l,t):i.T.push((()=>{i.D[d](o,l,t)})))}catch(d){Y(d,s)}}))}if(2&c){if(r.componentShouldUpdate&&r.componentShouldUpdate(o,l,t)===!1&&!(16&c))return;16&c||Ke(i,!1)}}},kn=(e,t,o)=>{var n,i;const s=e.prototype;64&t.i&&1&o&&cn.forEach((l=>{const c=s[l];Object.defineProperty(s,l,{value(...r){var f;const u=j(this),a=this;a?typeof c=="function"&&c.call(a,...r):(f=u?.H)==null||f.then((d=>{const p=d[l];typeof p=="function"&&p.call(d,...r)}))}})}));{e.watchers&&!t.F&&(t.F=Et(e.watchers)),e.deserializers&&!t.P&&(t.P=e.deserializers),e.serializers&&!t.U&&(t.U=e.serializers);const l=Object.entries((n=t.t)!=null?n:{});l.map((([c,[r]])=>{if(31&r||32&r){const{get:f,set:u}=oe(s,c)||{};f&&(t.t[c][0]|=2048),u&&(t.t[c][0]|=4096),Object.defineProperty(s,c,{get(){return f?f.apply(this):(a=c,j(this).l.get(a));var a},configurable:!0,enumerable:!0}),Object.defineProperty(s,c,{set(a){const d=j(this);if(d){if(u)return(32&r?this[c]:d.$hostElement$[c])===void 0&&d.l.get(c)&&(a=d.l.get(c)),u.apply(this,[Ot(a,r,!!(64&t.i))]),void Mt(this,c,a=32&r?this[c]:d.$hostElement$[c],t);Mt(this,c,a,t)}}})}}));{const c=new Map;s.attributeChangedCallback=function(r,f,u){C.jmp((()=>{var a;const d=c.get(r),p=j(this);if(this.hasOwnProperty(d),s.hasOwnProperty(d)&&typeof this[d]=="number"&&this[d]==u)return;if(d==null){const y=p?.i;if(p&&y&&!(8&y)&&u!==f){const m=this,x=(a=t.F)==null?void 0:a[r];x?.forEach((b=>{const[[S,E]]=Object.entries(b);m[S]!=null&&(128&y||1&E)&&m[S].call(m,u,f,r)}))}return}const h=l.find((([y])=>y===d)),v=h&&4&h[1][0],w=v&&u===null&&this[d]===void 0;v&&(u=u!==null&&u!=="false");const g=Object.getOwnPropertyDescriptor(s,d);w||u==this[d]||g.get&&!g.set||(this[d]=u)}))},e.observedAttributes=Array.from(new Set([...Object.keys((i=t.F)!=null?i:{}),...l.filter((([r,f])=>31&f[0])).map((([r,f])=>{var u;const a=f[1]||r;return c.set(a,r),512&f[0]&&((u=t.C)==null||u.push([r,a])),a}))]))}}return e},Ln=(e,t)=>{const o={i:t[0],p:t[1]};try{o.t=t[2],o.W=t[3],o.F=Et(e.F),o.P=e.P,o.U=e.U,o.C=[];const n=e.prototype.connectedCallback,i=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((s,l)=>{const c={i:0,$hostElement$:s,o:l,l:new Map,B:new Map};c.H=new Promise((f=>c.L=f)),s["s-p"]=[],s["s-rc"]=[];const r=c;s.__stencil__getHostRef=()=>r,512&l.i&&rn(s,c)})(this,o)},connectedCallback(){if(!this.__hasHostListenerAttached){const s=j(this);if(!s)return;Ft(this,s,o.W),this.__hasHostListenerAttached=!0}(s=>{if(!(1&C.i)){const l=j(s);if(!l)return;const c=l.o;if(1&l.i)Ft(s,l,c.W),l?.D||l?.H&&l.H.then((()=>{}));else{l.i|=1,12&c.i&&(r=>{if(!O.document)return;const f=r["s-cr"]=O.document.createComment("");f["s-cn"]=!0,_(r,f,r.firstChild)})(s);{let r=s;for(;r=r.parentNode||r.host;)if(r["s-p"]){Pt(l,l.R=r);break}}c.t&&Object.entries(c.t).map((([r,[f]])=>{if(31&f&&Object.prototype.hasOwnProperty.call(s,r)){const u=s[r];delete s[r],s[r]=u}})),(async(r,f,u)=>{let a;try{if(!(32&f.i)&&(f.i|=32,a=r.constructor,customElements.whenDefined(r.localName).then((()=>f.i|=128)),a&&a.style)){let h;typeof a.style=="string"&&(h=a.style);const v=xt(u);Oe.has(v)||((w,g,y)=>{let m=Oe.get(w);je&&y?(m=m||new CSSStyleSheet,typeof m=="string"?m=g:m.replaceSync(g)):m=g,Oe.set(w,m)})(v,h,!!(1&u.i))}const d=f.R,p=()=>Ke(f,!0);d&&d["s-rc"]?d["s-rc"].push(p):p()}catch(d){Y(d,r),f.A&&(f.A(),f.A=void 0),f.L&&f.L(r)}})(s,l,c)}}})(this),n&&n.call(this)},disconnectedCallback(){(async s=>{if(!(1&C.i)){const l=j(s);l?.V&&(l.V.map((c=>c())),l.V=void 0)}z.has(s)&&z.delete(s),s.shadowRoot&&z.has(s.shadowRoot)&&z.delete(s.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 ${o.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else hn.call(this,o)}}),Object.defineProperty(e,"is",{value:o.p,configurable:!0}),kn(e,o,3)}catch(n){return Y(n),e}},_n=(e,t)=>t,Ft=(e,t,o)=>{o&&O.document&&o.map((([n,i,s])=>{const l=Pn(O.document,e,n),c=$n(t,s),r=Dn(n);C.ael(l,i,c,r),(t.V=t.V||[]).push((()=>C.rel(l,i,c,r)))}))},$n=(e,t)=>o=>{try{e.$hostElement$[t](o)}catch(n){Y(n,e.$hostElement$)}},Pn=(e,t,o)=>8&o?O:t,Dn=e=>fn?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e);function _o(e){return e}const le=Math.min,Z=Math.max,Le=Math.round,_e=Math.floor,F=e=>({x:e,y:e}),Mn={left:"right",right:"left",bottom:"top",top:"bottom"};function Je(e,t,o){return Z(e,le(t,o))}function ye(e,t){return typeof e=="function"?e(t):e}function K(e){return e.split("-")[0]}function ve(e){return e.split("-")[1]}function Wt(e){return e==="x"?"y":"x"}function Qe(e){return e==="y"?"height":"width"}function I(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function et(e){return Wt(I(e))}function Fn(e,t,o){o===void 0&&(o=!1);const n=ve(e),i=et(e),s=Qe(i);let l=i==="x"?n===(o?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(l=$e(l)),[l,$e(l)]}function Wn(e){const t=$e(e);return[tt(e),t,tt(t)]}function tt(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const jt=["left","right"],Vt=["right","left"],jn=["top","bottom"],Vn=["bottom","top"];function Hn(e,t,o){switch(e){case"top":case"bottom":return o?t?Vt:jt:t?jt:Vt;case"left":case"right":return t?jn:Vn;default:return[]}}function Bn(e,t,o,n){const i=ve(e);let s=Hn(K(e),o==="start",n);return i&&(s=s.map(l=>l+"-"+i),t&&(s=s.concat(s.map(tt)))),s}function $e(e){const t=K(e);return Mn[t]+e.slice(t.length)}function zn(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ht(e){return typeof e!="number"?zn(e):{top:e,right:e,bottom:e,left:e}}function Pe(e){const{x:t,y:o,width:n,height:i}=e;return{width:n,height:i,top:o,left:t,right:t+n,bottom:o+i,x:t,y:o}}function Bt(e,t,o){let{reference:n,floating:i}=e;const s=I(t),l=et(t),c=Qe(l),r=K(t),f=s==="y",u=n.x+n.width/2-i.width/2,a=n.y+n.height/2-i.height/2,d=n[c]/2-i[c]/2;let p;switch(r){case"top":p={x:u,y:n.y-i.height};break;case"bottom":p={x:u,y:n.y+n.height};break;case"right":p={x:n.x+n.width,y:a};break;case"left":p={x:n.x-i.width,y:a};break;default:p={x:n.x,y:n.y}}switch(ve(t)){case"start":p[l]-=d*(o&&f?-1:1);break;case"end":p[l]+=d*(o&&f?-1:1);break}return p}async function In(e,t){var o;t===void 0&&(t={});const{x:n,y:i,platform:s,rects:l,elements:c,strategy:r}=e,{boundary:f="clippingAncestors",rootBoundary:u="viewport",elementContext:a="floating",altBoundary:d=!1,padding:p=0}=ye(t,e),h=Ht(p),w=c[d?a==="floating"?"reference":"floating":a],g=Pe(await s.getClippingRect({element:(o=await(s.isElement==null?void 0:s.isElement(w)))==null||o?w:w.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(c.floating)),boundary:f,rootBoundary:u,strategy:r})),y=a==="floating"?{x:n,y:i,width:l.floating.width,height:l.floating.height}:l.reference,m=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c.floating)),x=await(s.isElement==null?void 0:s.isElement(m))?await(s.getScale==null?void 0:s.getScale(m))||{x:1,y:1}:{x:1,y:1},b=Pe(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:y,offsetParent:m,strategy:r}):y);return{top:(g.top-b.top+h.top)/x.y,bottom:(b.bottom-g.bottom+h.bottom)/x.y,left:(g.left-b.left+h.left)/x.x,right:(b.right-g.right+h.right)/x.x}}const Un=50,qn=async(e,t,o)=>{const{placement:n="bottom",strategy:i="absolute",middleware:s=[],platform:l}=o,c=l.detectOverflow?l:{...l,detectOverflow:In},r=await(l.isRTL==null?void 0:l.isRTL(t));let f=await l.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:a}=Bt(f,n,r),d=n,p=0;const h={};for(let v=0;v<s.length;v++){const w=s[v];if(!w)continue;const{name:g,fn:y}=w,{x:m,y:x,data:b,reset:S}=await y({x:u,y:a,initialPlacement:n,placement:d,strategy:i,middlewareData:h,rects:f,platform:c,elements:{reference:e,floating:t}});u=m??u,a=x??a,h[g]={...h[g],...b},S&&p<Un&&(p++,typeof S=="object"&&(S.placement&&(d=S.placement),S.rects&&(f=S.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:i}):S.rects),{x:u,y:a}=Bt(f,d,r)),v=-1)}return{x:u,y:a,placement:d,strategy:i,middlewareData:h}},Xn=e=>({name:"arrow",options:e,async fn(t){const{x:o,y:n,placement:i,rects:s,platform:l,elements:c,middlewareData:r}=t,{element:f,padding:u=0}=ye(e,t)||{};if(f==null)return{};const a=Ht(u),d={x:o,y:n},p=et(i),h=Qe(p),v=await l.getDimensions(f),w=p==="y",g=w?"top":"left",y=w?"bottom":"right",m=w?"clientHeight":"clientWidth",x=s.reference[h]+s.reference[p]-d[p]-s.floating[h],b=d[p]-s.reference[p],S=await(l.getOffsetParent==null?void 0:l.getOffsetParent(f));let E=S?S[m]:0;(!E||!await(l.isElement==null?void 0:l.isElement(S)))&&(E=c.floating[m]||s.floating[h]);const A=x/2-b/2,T=E/2-v[h]/2-1,L=le(a[g],T),Se=le(a[y],T),te=L,Ee=E-v[h]-Se,N=E/2-v[h]/2+A,ne=Je(te,N,Ee),B=!r.arrow&&ve(i)!=null&&N!==ne&&s.reference[h]/2-(N<te?L:Se)-v[h]/2<0,D=B?N<te?N-te:N-Ee:0;return{[p]:d[p]+D,data:{[p]:ne,centerOffset:N-ne-D,...B&&{alignmentOffset:D}},reset:B}}}),Yn=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var o,n;const{placement:i,middlewareData:s,rects:l,initialPlacement:c,platform:r,elements:f}=t,{mainAxis:u=!0,crossAxis:a=!0,fallbackPlacements:d,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:v=!0,...w}=ye(e,t);if((o=s.arrow)!=null&&o.alignmentOffset)return{};const g=K(i),y=I(c),m=K(c)===c,x=await(r.isRTL==null?void 0:r.isRTL(f.floating)),b=d||(m||!v?[$e(c)]:Wn(c)),S=h!=="none";!d&&S&&b.push(...Bn(c,v,h,x));const E=[c,...b],A=await r.detectOverflow(t,w),T=[];let L=((n=s.flip)==null?void 0:n.overflows)||[];if(u&&T.push(A[g]),a){const N=Fn(i,l,x);T.push(A[N[0]],A[N[1]])}if(L=[...L,{placement:i,overflows:T}],!T.every(N=>N<=0)){var Se,te;const N=(((Se=s.flip)==null?void 0:Se.index)||0)+1,ne=E[N];if(ne&&(!(a==="alignment"?y!==I(ne):!1)||L.every(M=>I(M.placement)===y?M.overflows[0]>0:!0)))return{data:{index:N,overflows:L},reset:{placement:ne}};let B=(te=L.filter(D=>D.overflows[0]<=0).sort((D,M)=>D.overflows[1]-M.overflows[1])[0])==null?void 0:te.placement;if(!B)switch(p){case"bestFit":{var Ee;const D=(Ee=L.filter(M=>{if(S){const q=I(M.placement);return q===y||q==="y"}return!0}).map(M=>[M.placement,M.overflows.filter(q=>q>0).reduce((q,Lo)=>q+Lo,0)]).sort((M,q)=>M[1]-q[1])[0])==null?void 0:Ee[0];D&&(B=D);break}case"initialPlacement":B=c;break}if(i!==B)return{reset:{placement:B}}}return{}}}},Gn=new Set(["left","top"]);async function Zn(e,t){const{placement:o,platform:n,elements:i}=e,s=await(n.isRTL==null?void 0:n.isRTL(i.floating)),l=K(o),c=ve(o),r=I(o)==="y",f=Gn.has(l)?-1:1,u=s&&r?-1:1,a=ye(t,e);let{mainAxis:d,crossAxis:p,alignmentAxis:h}=typeof a=="number"?{mainAxis:a,crossAxis:0,alignmentAxis:null}:{mainAxis:a.mainAxis||0,crossAxis:a.crossAxis||0,alignmentAxis:a.alignmentAxis};return c&&typeof h=="number"&&(p=c==="end"?h*-1:h),r?{x:p*u,y:d*f}:{x:d*f,y:p*u}}const Kn=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var o,n;const{x:i,y:s,placement:l,middlewareData:c}=t,r=await Zn(t,e);return l===((o=c.offset)==null?void 0:o.placement)&&(n=c.arrow)!=null&&n.alignmentOffset?{}:{x:i+r.x,y:s+r.y,data:{...r,placement:l}}}}},Jn=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:o,y:n,placement:i,platform:s}=t,{mainAxis:l=!0,crossAxis:c=!1,limiter:r={fn:g=>{let{x:y,y:m}=g;return{x:y,y:m}}},...f}=ye(e,t),u={x:o,y:n},a=await s.detectOverflow(t,f),d=I(K(i)),p=Wt(d);let h=u[p],v=u[d];if(l){const g=p==="y"?"top":"left",y=p==="y"?"bottom":"right",m=h+a[g],x=h-a[y];h=Je(m,h,x)}if(c){const g=d==="y"?"top":"left",y=d==="y"?"bottom":"right",m=v+a[g],x=v-a[y];v=Je(m,v,x)}const w=r.fn({...t,[p]:h,[d]:v});return{...w,data:{x:w.x-o,y:w.y-n,enabled:{[p]:l,[d]:c}}}}}};function De(){return typeof window<"u"}function re(e){return zt(e)?(e.nodeName||"").toLowerCase():"#document"}function k(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function W(e){var t;return(t=(zt(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function zt(e){return De()?e instanceof Node||e instanceof k(e).Node:!1}function $(e){return De()?e instanceof Element||e instanceof k(e).Element:!1}function H(e){return De()?e instanceof HTMLElement||e instanceof k(e).HTMLElement:!1}function It(e){return!De()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof k(e).ShadowRoot}function we(e){const{overflow:t,overflowX:o,overflowY:n,display:i}=P(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+o)&&i!=="inline"&&i!=="contents"}function Qn(e){return/^(table|td|th)$/.test(re(e))}function Me(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const eo=/transform|translate|scale|rotate|perspective|filter/,to=/paint|layout|strict|content/,J=e=>!!e&&e!=="none";let nt;function ot(e){const t=$(e)?P(e):e;return J(t.transform)||J(t.translate)||J(t.scale)||J(t.rotate)||J(t.perspective)||!it()&&(J(t.backdropFilter)||J(t.filter))||eo.test(t.willChange||"")||to.test(t.contain||"")}function no(e){let t=U(e);for(;H(t)&&!ce(t);){if(ot(t))return t;if(Me(t))return null;t=U(t)}return null}function it(){return nt==null&&(nt=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),nt}function ce(e){return/^(html|body|#document)$/.test(re(e))}function P(e){return k(e).getComputedStyle(e)}function Fe(e){return $(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function U(e){if(re(e)==="html")return e;const t=e.assignedSlot||e.parentNode||It(e)&&e.host||W(e);return It(t)?t.host:t}function Ut(e){const t=U(e);return ce(t)?e.ownerDocument?e.ownerDocument.body:e.body:H(t)&&we(t)?t:Ut(t)}function be(e,t,o){var n;t===void 0&&(t=[]),o===void 0&&(o=!0);const i=Ut(e),s=i===((n=e.ownerDocument)==null?void 0:n.body),l=k(i);if(s){const c=st(l);return t.concat(l,l.visualViewport||[],we(i)?i:[],c&&o?be(c):[])}else return t.concat(i,be(i,[],o))}function st(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function qt(e){const t=P(e);let o=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const i=H(e),s=i?e.offsetWidth:o,l=i?e.offsetHeight:n,c=Le(o)!==s||Le(n)!==l;return c&&(o=s,n=l),{width:o,height:n,$:c}}function lt(e){return $(e)?e:e.contextElement}function ae(e){const t=lt(e);if(!H(t))return F(1);const o=t.getBoundingClientRect(),{width:n,height:i,$:s}=qt(t);let l=(s?Le(o.width):o.width)/n,c=(s?Le(o.height):o.height)/i;return(!l||!Number.isFinite(l))&&(l=1),(!c||!Number.isFinite(c))&&(c=1),{x:l,y:c}}const oo=F(0);function Xt(e){const t=k(e);return!it()||!t.visualViewport?oo:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function io(e,t,o){return t===void 0&&(t=!1),!o||t&&o!==k(e)?!1:t}function Q(e,t,o,n){t===void 0&&(t=!1),o===void 0&&(o=!1);const i=e.getBoundingClientRect(),s=lt(e);let l=F(1);t&&(n?$(n)&&(l=ae(n)):l=ae(e));const c=io(s,o,n)?Xt(s):F(0);let r=(i.left+c.x)/l.x,f=(i.top+c.y)/l.y,u=i.width/l.x,a=i.height/l.y;if(s){const d=k(s),p=n&&$(n)?k(n):n;let h=d,v=st(h);for(;v&&n&&p!==h;){const w=ae(v),g=v.getBoundingClientRect(),y=P(v),m=g.left+(v.clientLeft+parseFloat(y.paddingLeft))*w.x,x=g.top+(v.clientTop+parseFloat(y.paddingTop))*w.y;r*=w.x,f*=w.y,u*=w.x,a*=w.y,r+=m,f+=x,h=k(v),v=st(h)}}return Pe({width:u,height:a,x:r,y:f})}function We(e,t){const o=Fe(e).scrollLeft;return t?t.left+o:Q(W(e)).left+o}function Yt(e,t){const o=e.getBoundingClientRect(),n=o.left+t.scrollLeft-We(e,o),i=o.top+t.scrollTop;return{x:n,y:i}}function so(e){let{elements:t,rect:o,offsetParent:n,strategy:i}=e;const s=i==="fixed",l=W(n),c=t?Me(t.floating):!1;if(n===l||c&&s)return o;let r={scrollLeft:0,scrollTop:0},f=F(1);const u=F(0),a=H(n);if((a||!a&&!s)&&((re(n)!=="body"||we(l))&&(r=Fe(n)),a)){const p=Q(n);f=ae(n),u.x=p.x+n.clientLeft,u.y=p.y+n.clientTop}const d=l&&!a&&!s?Yt(l,r):F(0);return{width:o.width*f.x,height:o.height*f.y,x:o.x*f.x-r.scrollLeft*f.x+u.x+d.x,y:o.y*f.y-r.scrollTop*f.y+u.y+d.y}}function lo(e){return Array.from(e.getClientRects())}function ro(e){const t=W(e),o=Fe(e),n=e.ownerDocument.body,i=Z(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),s=Z(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let l=-o.scrollLeft+We(e);const c=-o.scrollTop;return P(n).direction==="rtl"&&(l+=Z(t.clientWidth,n.clientWidth)-i),{width:i,height:s,x:l,y:c}}const Gt=25;function co(e,t){const o=k(e),n=W(e),i=o.visualViewport;let s=n.clientWidth,l=n.clientHeight,c=0,r=0;if(i){s=i.width,l=i.height;const u=it();(!u||u&&t==="fixed")&&(c=i.offsetLeft,r=i.offsetTop)}const f=We(n);if(f<=0){const u=n.ownerDocument,a=u.body,d=getComputedStyle(a),p=u.compatMode==="CSS1Compat"&&parseFloat(d.marginLeft)+parseFloat(d.marginRight)||0,h=Math.abs(n.clientWidth-a.clientWidth-p);h<=Gt&&(s-=h)}else f<=Gt&&(s+=f);return{width:s,height:l,x:c,y:r}}function ao(e,t){const o=Q(e,!0,t==="fixed"),n=o.top+e.clientTop,i=o.left+e.clientLeft,s=H(e)?ae(e):F(1),l=e.clientWidth*s.x,c=e.clientHeight*s.y,r=i*s.x,f=n*s.y;return{width:l,height:c,x:r,y:f}}function Zt(e,t,o){let n;if(t==="viewport")n=co(e,o);else if(t==="document")n=ro(W(e));else if($(t))n=ao(t,o);else{const i=Xt(e);n={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Pe(n)}function Kt(e,t){const o=U(e);return o===t||!$(o)||ce(o)?!1:P(o).position==="fixed"||Kt(o,t)}function fo(e,t){const o=t.get(e);if(o)return o;let n=be(e,[],!1).filter(c=>$(c)&&re(c)!=="body"),i=null;const s=P(e).position==="fixed";let l=s?U(e):e;for(;$(l)&&!ce(l);){const c=P(l),r=ot(l);!r&&c.position==="fixed"&&(i=null),(s?!r&&!i:!r&&c.position==="static"&&!!i&&(i.position==="absolute"||i.position==="fixed")||we(l)&&!r&&Kt(e,l))?n=n.filter(u=>u!==l):i=c,l=U(l)}return t.set(e,n),n}function uo(e){let{element:t,boundary:o,rootBoundary:n,strategy:i}=e;const l=[...o==="clippingAncestors"?Me(t)?[]:fo(t,this._c):[].concat(o),n],c=Zt(t,l[0],i);let r=c.top,f=c.right,u=c.bottom,a=c.left;for(let d=1;d<l.length;d++){const p=Zt(t,l[d],i);r=Z(p.top,r),f=le(p.right,f),u=le(p.bottom,u),a=Z(p.left,a)}return{width:f-a,height:u-r,x:a,y:r}}function ho(e){const{width:t,height:o}=qt(e);return{width:t,height:o}}function po(e,t,o){const n=H(t),i=W(t),s=o==="fixed",l=Q(e,!0,s,t);let c={scrollLeft:0,scrollTop:0};const r=F(0);function f(){r.x=We(i)}if(n||!n&&!s)if((re(t)!=="body"||we(i))&&(c=Fe(t)),n){const p=Q(t,!0,s,t);r.x=p.x+t.clientLeft,r.y=p.y+t.clientTop}else i&&f();s&&!n&&i&&f();const u=i&&!n&&!s?Yt(i,c):F(0),a=l.left+c.scrollLeft-r.x-u.x,d=l.top+c.scrollTop-r.y-u.y;return{x:a,y:d,width:l.width,height:l.height}}function rt(e){return P(e).position==="static"}function Jt(e,t){if(!H(e)||P(e).position==="fixed")return null;if(t)return t(e);let o=e.offsetParent;return W(e)===o&&(o=o.ownerDocument.body),o}function Qt(e,t){const o=k(e);if(Me(e))return o;if(!H(e)){let i=U(e);for(;i&&!ce(i);){if($(i)&&!rt(i))return i;i=U(i)}return o}let n=Jt(e,t);for(;n&&Qn(n)&&rt(n);)n=Jt(n,t);return n&&ce(n)&&rt(n)&&!ot(n)?o:n||no(e)||o}const mo=async function(e){const t=this.getOffsetParent||Qt,o=this.getDimensions,n=await o(e.floating);return{reference:po(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function go(e){return P(e).direction==="rtl"}const ct={convertOffsetParentRelativeRectToViewportRelativeRect:so,getDocumentElement:W,getClippingRect:uo,getOffsetParent:Qt,getElementRects:mo,getClientRects:lo,getDimensions:ho,getScale:ae,isElement:$,isRTL:go};function en(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function yo(e,t){let o=null,n;const i=W(e);function s(){var c;clearTimeout(n),(c=o)==null||c.disconnect(),o=null}function l(c,r){c===void 0&&(c=!1),r===void 0&&(r=1),s();const f=e.getBoundingClientRect(),{left:u,top:a,width:d,height:p}=f;if(c||t(),!d||!p)return;const h=_e(a),v=_e(i.clientWidth-(u+d)),w=_e(i.clientHeight-(a+p)),g=_e(u),m={rootMargin:-h+"px "+-v+"px "+-w+"px "+-g+"px",threshold:Z(0,le(1,r))||1};let x=!0;function b(S){const E=S[0].intersectionRatio;if(E!==r){if(!x)return l();E?l(!1,E):n=setTimeout(()=>{l(!1,1e-7)},1e3)}E===1&&!en(f,e.getBoundingClientRect())&&l(),x=!1}try{o=new IntersectionObserver(b,{...m,root:i.ownerDocument})}catch{o=new IntersectionObserver(b,m)}o.observe(e)}return l(!0),s}function vo(e,t,o,n){n===void 0&&(n={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:r=!1}=n,f=lt(e),u=i||s?[...f?be(f):[],...t?be(t):[]]:[];u.forEach(g=>{i&&g.addEventListener("scroll",o,{passive:!0}),s&&g.addEventListener("resize",o)});const a=f&&c?yo(f,o):null;let d=-1,p=null;l&&(p=new ResizeObserver(g=>{let[y]=g;y&&y.target===f&&p&&t&&(p.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var m;(m=p)==null||m.observe(t)})),o()}),f&&!r&&p.observe(f),t&&p.observe(t));let h,v=r?Q(e):null;r&&w();function w(){const g=Q(e);v&&!en(v,g)&&o(),v=g,h=requestAnimationFrame(w)}return o(),()=>{var g;u.forEach(y=>{i&&y.removeEventListener("scroll",o),s&&y.removeEventListener("resize",o)}),a?.(),(g=p)==null||g.disconnect(),p=null,r&&cancelAnimationFrame(h)}}const wo=Kn,bo=Jn,xo=Yn,So=Xn,Eo=(e,t,o)=>{const n=new Map,i={platform:ct,...o},s={...i.platform,_c:n};return qn(e,t,{...i,platform:s})};var xe;(function(e){e.TOOLTIP="tooltip",e.POPOVER="popover"})(xe||(xe={}));function tn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}const Oo=/transform|translate|scale|rotate|perspective|filter/,Ao=/paint|layout|strict|content/,ee=e=>!!e&&e!=="none";let at;function Co(e){const t=(o=e,typeof window<"u"&&(o instanceof Element||o instanceof tn(o).Element)?tn(n=e).getComputedStyle(n):e);var o,n;return ee(t.transform)||ee(t.translate)||ee(t.scale)||ee(t.rotate)||ee(t.perspective)||(at==null&&(at=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),!at&&(ee(t.backdropFilter)||ee(t.filter)))||Oo.test(t.willChange||"")||Ao.test(t.contain||"")}function To(e){return(function(t){for(let o=t;o;o=ft(o))if(o instanceof Element&&getComputedStyle(o).display==="none")return null;for(let o=ft(t);o;o=ft(o)){if(!(o instanceof Element))continue;const n=getComputedStyle(o);if(n.display!=="contents"&&(n.position!=="static"||Co(n)||o.tagName==="BODY"))return o}return null})(e)}function ft(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}const ue=class ue{constructor(t,o){this.el=t,this.config=o,this.offset=10,this.timeDelayBeforeFadingOut=50,this.popoverMainAxisEnabled=!0,this.currentPlacement=o.placement,this.cleanup=null}setCommonTimingConfig(){this.timeBeforeElementShows=this.config.showWithoutDelay?50:500,this.timeOfAnimation=this.config.showWithoutDelay?50:250}initialize(){this.setCommonTimingConfig(),this.floatingElement=this.el.shadowRoot?.querySelector(this.config.floatingElementSelector),this.floatingElement&&this.applyViewportMaxWidth(),this.arrowEl=this.config.showArrow!==!1&&this.config.arrowElementSelector?this.el.shadowRoot?.querySelector(this.config.arrowElementSelector):null,this.anchorElement=this.config.htmlFor?.length>0?document.getElementById(this.config.htmlFor):this.config.getAnchorElementFromSlot(this.el.shadowRoot),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.setCommonTimingConfig(),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=vo(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=[wo(this.offset)],o=xo({mainAxis:!0,crossAxis:!this.config.lockToMainAxis&&"alignment",fallbackAxisSideDirection:"end",padding:this.offset}),n=this.config.elementType===xe.POPOVER,i=bo({padding:this.offset,mainAxis:this.config.elementType===xe.TOOLTIP||n&&this.popoverMainAxisEnabled,crossAxis:!1});this.config.placement.includes("-")?t.push(o,i):t.push(i,o),this.config.showArrow!==!1&&this.arrowEl&&t.push(So({element:this.arrowEl,padding:this.offset})),Eo(this.anchorElement,this.floatingElement,{placement:this.config.placement,strategy:"fixed",middleware:t,platform:{...ct,getOffsetParent:s=>ct.getOffsetParent(s,To)}}).then((({x:s,y:l,middlewareData:c,placement:r})=>{if(n){const d=r.startsWith("left")||r.startsWith("right"),p=r.startsWith("top")||r.startsWith("bottom"),h=this.isAnchorInViewport(),v=!!p||(d?h:this.popoverMainAxisEnabled);if(v!==this.popoverMainAxisEnabled)return this.popoverMainAxisEnabled=v,void this.updatePosition()}this.currentPlacement=r,Object.assign(this.floatingElement.style,{left:`${s}px`,top:`${l}px`,position:"fixed",transition:`opacity ${this.timeOfAnimation}ms ease`});const f=r.split("-")[0]??"bottom",u={top:"bottom",right:"left",bottom:"top",left:"right"}[f],{arrowZIndex:a}=this.normalizeFloatingElementStacking();if(c.arrow&&this.arrowEl){const d=this.arrowEl.offsetWidth,{x:p,y:h}=c.arrow;this.arrowEl.style.borderRadius=`${["left","right"].includes(f)?"0 ":""}var(--gidsFloatingElement-tip-border-radius, 2px)${["top","bottom"].includes(f)?" 0":""}`,Object.assign(this.arrowEl.style,{left:p!==null?`${p}px`:"",top:h!==null?`${h}px`:"",right:"",bottom:"",[u]:-d/2+"px",transform:"rotate(45deg)",zIndex:`${a}`,background:"var(--gidsFloatingElement-background)"})}}))}applyViewportMaxWidth(){const t=`calc(100vw - ${2*this.offset}px)`;this.floatingElement?.style.maxWidth!==t&&(this.floatingElement.style.maxWidth=t)}normalizeFloatingElementStacking(){const t=this.floatingElement.style.zIndex||(window.getComputedStyle?.(this.floatingElement).zIndex??""),o=Number.parseInt(t,10),n=Number.isNaN(o)?-1:o-1,i=Number.isNaN(o)?n+1:o;return Number.isNaN(i)||(this.floatingElement.style.zIndex=`${i}`),Array.from(this.floatingElement.children).forEach((s=>{if(!(s instanceof HTMLElement)||s===this.arrowEl)return;const l=s.style.zIndex||(window.getComputedStyle?.(s).zIndex??""),c=Number.parseInt(l,10),r=window.getComputedStyle?.(s).position??"";(l===""||l==="auto"||Number.isNaN(c)||c<i)&&(s.style.zIndex=`${i}`,r!==""&&r!=="static"||(s.style.position="relative"))})),{contentZIndex:i,arrowZIndex:n}}hideFloatingElement(){this.floatingElement.classList.remove(this.config.visibilityClass),ue.currentFloatingElements.delete(this.config.elementType)}showFloatingElement(){const t=ue.currentFloatingElements.get(this.config.elementType);t&&t.hideFloatingElement(),this.floatingElement.classList.add(this.config.visibilityClass),ue.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(),o=window.innerHeight||document.documentElement?.clientHeight||0,n=window.innerWidth||document.documentElement?.clientWidth||0,i=t.height/2+2*this.offset;return t.bottom>=i&&t.top<=o-i&&t.right>=0&&t.left<=n}};ue.currentFloatingElements=new Map;let ut=ue;const fe=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let nn=!1;fe&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(fe):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let dt=null;const ht=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{on()})):void 0,on=()=>{if(fe===void 0)return!1;const e=(()=>{if(fe===void 0)return;const t=[];for(let o=0;o<document.styleSheets.length;o++){const n=document.styleSheets.item(o);if(n)try{let i=-1,s=0;for(let l=0;l<n.cssRules.length;l++){const c=n.cssRules.item(l);if(c?.cssText.startsWith("gids-global-styles-start"))i=l;else if(i>-1){if(c?.cssText.startsWith("gids-global-styles-end")){s=l-i+1;break}t.push(c)}}if(i>-1)return{rulesStartIndex:i,originalRulesCount:s,rules:t,styleSheet:n}}catch(i){if(!(i instanceof DOMException))throw i}}})();if(e!==void 0){const t=e.styleSheet.ownerNode;return ht!==void 0&&t!==dt&&(dt&&ht.disconnect(),t instanceof Element&&ht.observe(t,{childList:!0,characterData:!0,subtree:!0}),dt=t),fe.replaceSync((o=>o.rules.map((n=>n.cssText)).join(""))(e)),(o=>{const{rulesStartIndex:n,originalRulesCount:i,styleSheet:s}=o;for(let l=0;l<i;l++)s.deleteRule(n)})(e),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},No=()=>(nn||(nn=on()),fe),sn=Ln(class extends an{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.placement="bottom",this.showWithoutDelay=!1,this.lockToMainAxis=!1,this.handleShowEvent=()=>{this.floatingElementManager.showAfterDelay()},this.handleHideEvent=()=>{this.floatingElementManager.hideAfterDelay()}}connectedCallback(){const e=No();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}componentDidLoad(){this.floatingElementManager=new ut(this._el,{htmlFor:this.htmlFor,placement:this.placement,showWithoutDelay:this.showWithoutDelay,lockToMainAxis:this.lockToMainAxis,floatingElementSelector:"#tooltip",arrowElementSelector:"#arrow",visibilityClass:"gids-tooltip--visible",elementType:xe.TOOLTIP,getAnchorElementFromSlot:e=>e.querySelector("slot")?.assignedElements()[0]||null}),this.floatingElementManager.initialize(),this.setupEventListeners()}setupEventListeners(){const e=this.floatingElementManager.getAnchorElement();e&&(e.addEventListener("mouseenter",this.handleShowEvent),e.addEventListener("focus",this.handleShowEvent),e.addEventListener("mouseleave",this.handleHideEvent),e.addEventListener("blur",this.handleHideEvent))}placementChanged(e){this.floatingElementManager?.updateConfig({placement:e}),this.floatingElementManager?.isVisible()&&this.floatingElementManager?.reposition()}showWithoutDelayChanged(e){this.floatingElementManager?.updateConfig({showWithoutDelay:e})}lockToMainAxisChanged(e){this.floatingElementManager?.updateConfig({lockToMainAxis:e})}htmlForChanged(e){this.floatingElementManager?.updateConfig({htmlFor:e}),this.cleanupEventListeners(),this.floatingElementManager?.initialize(),this.setupEventListeners()}cleanupEventListeners(){const e=this.floatingElementManager?.getAnchorElement();e&&(e.removeEventListener("mouseenter",this.handleShowEvent),e.removeEventListener("focus",this.handleShowEvent),e.removeEventListener("mouseleave",this.handleHideEvent),e.removeEventListener("blur",this.handleHideEvent))}render(){return ie(_n,{key:"956f6eced99b0c5e6e514a2a3f10976ca64e22c3"},ie("slot",{key:"082d3c166069a309c3ba5f6c1e3eb0519eb84b40"}),ie("span",{key:"400f44983016138741b2c3a7b32d5d9f39c09241",id:"tooltip",part:"tooltip",role:"tooltip"},ie("span",{key:"1fcc94a2ab42662921470851bbad8fa46b7f0978",id:"arrow"}),this.tooltipText))}disconnectedCallback(){this.cleanupEventListeners(),this.floatingElementManager?.destroy()}get _el(){return this}static get watchers(){return{placement:[{placementChanged:0}],showWithoutDelay:[{showWithoutDelayChanged:0}],lockToMainAxis:[{lockToMainAxisChanged:0}],htmlFor:[{htmlForChanged:0}]}}static get style(){return"gids-tooltip{--gidsTooltip-background:var(--gids-color-background-neutral-bold-default);--gidsTooltip-text-color:var(--gids-color-text-inverse);--gidsTooltip-padding:var(--gids-padding-vertical-edge-to-element-100) var(--gids-padding-horizontal-edge-to-element-200);--gidsTooltip-border-radius:var(--gids-border-radius-sm);--gidsTooltip-tip-border-radius:2px;--gidsTooltip-tip-size:12px;--gidsFloatingElement-background:var(--gidsTooltip-background);--gidsFloatingElement-tip-border-radius:var(--gidsTooltip-tip-border-radius)}[part=tooltip]{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;hyphens:auto;background-color:var(--gidsTooltip-background);color:var(--gidsTooltip-text-color);padding:var(--gidsTooltip-padding);border-radius:var(--gidsTooltip-border-radius);z-index:1000;opacity:0;pointer-events:none}[part=tooltip].gids-tooltip--visible{pointer-events:initial;opacity:1}[part=tooltip] span#arrow{position:absolute;height:var(--gidsTooltip-tip-size);width:var(--gidsTooltip-tip-size)}"}},[257,"gids-tooltip",{htmlFor:[513,"for"],tooltipText:[513,"tooltip-text"],placement:[513],showWithoutDelay:[516,"show-without-delay"],lockToMainAxis:[4,"lock-to-main-axis"]},void 0,{placement:[{placementChanged:0}],showWithoutDelay:[{showWithoutDelayChanged:0}],lockToMainAxis:[{lockToMainAxisChanged:0}],htmlFor:[{htmlForChanged:0}]}]);function ln(){typeof customElements<"u"&&["gids-tooltip"].forEach((e=>{e==="gids-tooltip"&&(customElements.get(e)||customElements.define(e,sn))}))}ln();const Ro=sn,ko=ln;X.GidsTooltip=Ro,X.defineCustomElement=ko,Object.defineProperty(X,Symbol.toStringTag,{value:"Module"})}));