@ganpatiinfo/gids-core-web 9.0.0 → 10.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 (216) hide show
  1. package/dist/css/index.css +1445 -1
  2. package/dist/css/index.css.map +1 -1
  3. package/dist/gids-activity-gauge.d.ts +11 -0
  4. package/dist/gids-activity-gauge.js +1 -0
  5. package/dist/gids-bar-chart.d.ts +11 -0
  6. package/dist/gids-bar-chart.js +1 -0
  7. package/dist/gids-calendar-header-panel.d.ts +11 -0
  8. package/dist/gids-calendar-header-panel.js +1 -0
  9. package/dist/gids-calendar-month-list.d.ts +11 -0
  10. package/dist/gids-calendar-month-list.js +1 -0
  11. package/dist/gids-calendar-year-list.d.ts +11 -0
  12. package/dist/gids-calendar-year-list.js +1 -0
  13. package/dist/gids-calendar.d.ts +11 -0
  14. package/dist/gids-calendar.js +1 -0
  15. package/dist/gids-chart-legend-item.d.ts +11 -0
  16. package/dist/gids-chart-legend-item.js +1 -0
  17. package/dist/gids-chart-legend.d.ts +11 -0
  18. package/dist/gids-chart-legend.js +1 -0
  19. package/dist/gids-chart.d.ts +11 -0
  20. package/dist/gids-chart.js +1 -0
  21. package/dist/gids-chevron-button.d.ts +11 -0
  22. package/dist/gids-chevron-button.js +1 -0
  23. package/dist/gids-dot.d.ts +11 -0
  24. package/dist/gids-dot.js +1 -0
  25. package/dist/gids-dropdown-field.d.ts +11 -0
  26. package/dist/gids-dropdown-field.js +1 -0
  27. package/dist/gids-dropdown-picker.d.ts +11 -0
  28. package/dist/gids-dropdown-picker.js +1 -0
  29. package/dist/gids-dropdown.d.ts +11 -0
  30. package/dist/gids-dropdown.js +1 -0
  31. package/dist/gids-field.d.ts +1 -1
  32. package/dist/gids-field.js +1 -1
  33. package/dist/gids-icon.d.ts +1 -1
  34. package/dist/gids-icon.js +1 -1
  35. package/dist/gids-input.d.ts +1 -1
  36. package/dist/gids-input.js +1 -1
  37. package/dist/gids-level-gauge.d.ts +11 -0
  38. package/dist/gids-level-gauge.js +1 -0
  39. package/dist/gids-line-chart.d.ts +11 -0
  40. package/dist/gids-line-chart.js +1 -0
  41. package/dist/gids-notification.d.ts +1 -1
  42. package/dist/gids-notification.js +1 -1
  43. package/dist/gids-overflow-container.d.ts +1 -1
  44. package/dist/gids-overflow-container.js +1 -1
  45. package/dist/gids-overlay-provider.d.ts +1 -1
  46. package/dist/gids-overlay-provider.js +1 -1
  47. package/dist/gids-password-field.d.ts +1 -1
  48. package/dist/gids-password-field.js +1 -1
  49. package/dist/gids-pie-chart.d.ts +11 -0
  50. package/dist/gids-pie-chart.js +1 -0
  51. package/dist/gids-popover.d.ts +1 -1
  52. package/dist/gids-popover.js +1 -1
  53. package/dist/gids-progress-circle.d.ts +11 -0
  54. package/dist/gids-progress-circle.js +1 -0
  55. package/dist/gids-scrim.d.ts +1 -1
  56. package/dist/gids-scrim.js +1 -1
  57. package/dist/gids-snackbar.d.ts +1 -1
  58. package/dist/gids-snackbar.js +1 -1
  59. package/dist/gids-text-field.d.ts +1 -1
  60. package/dist/gids-text-field.js +1 -1
  61. package/dist/gids-toggle-button.d.ts +1 -1
  62. package/dist/gids-toggle-button.js +1 -1
  63. package/dist/gids-tooltip.d.ts +1 -1
  64. package/dist/gids-tooltip.js +1 -1
  65. package/dist/index.js +1 -1
  66. package/dist/p-9_mrQ7ac.js +1 -0
  67. package/dist/p-B81J5HCC.js +1 -0
  68. package/dist/p-BFHWXEeg.js +1 -0
  69. package/dist/p-B_HaXpJZ.js +1 -0
  70. package/dist/p-BaO-kEWS.js +1 -0
  71. package/dist/p-BiPAgxAQ.js +1 -0
  72. package/dist/p-Bmb-HiXg.js +1 -0
  73. package/dist/{p-veoOgDXg.js → p-BnL97lOW.js} +1 -1
  74. package/dist/{p-iCAclJND.js → p-BvYnawkJ.js} +1 -1
  75. package/dist/p-CIP0xyhD.js +1 -0
  76. package/dist/p-CJzporPT.js +1 -0
  77. package/dist/p-CPSHPtGE.js +1 -0
  78. package/dist/p-CRngHsR7.js +1 -0
  79. package/dist/p-Ct3Ixgvf.js +1 -0
  80. package/dist/p-D93TNeOt.js +1 -0
  81. package/dist/p-DKsrt7dx.js +1 -0
  82. package/dist/p-DZWWuJac.js +1 -0
  83. package/dist/p-D_wcwB7E.js +1 -0
  84. package/dist/p-Dehss-X0.js +1 -0
  85. package/dist/{p-DvoHLz_5.js → p-DfFqFdmS.js} +1 -1
  86. package/dist/p-KxRqlvSh.js +1 -0
  87. package/dist/p-MgTlrSP_.js +1 -0
  88. package/dist/p-h6alWGT8.js +1 -0
  89. package/dist/p-quZYWCxU.js +1 -0
  90. package/dist/p-tyIgTtUC.js +1 -0
  91. package/dist/p-uqSjmNkw.js +1 -0
  92. package/dist/types/components/html/GidsCalendarCell/GidsCalendarCell.d.ts +7 -0
  93. package/dist/types/components/html/GidsCalendarDayCell/GidsCalendarDayCell.d.ts +4 -0
  94. package/dist/types/components/html/GidsDropdownItem/GidsDropdownItem.d.ts +1 -1
  95. package/dist/types/components/html/GidsDropdownMenu/GidsDropdownMenu.d.ts +1 -1
  96. package/dist/types/components/html/GidsDropdownMenuGroup/GidsDropdownMenuGroup.d.ts +1 -1
  97. package/dist/types/components/html/GidsListItem/GidsListItem.d.ts +2 -2
  98. package/dist/types/components/html/GidsPageTitle/GidsPageTitle.d.ts +4 -0
  99. package/dist/types/components/webComponents/GidsActivityGauge/GidsActivityGauge.d.ts +23 -0
  100. package/dist/types/components/webComponents/GidsBarChart/GidsBarChart.d.ts +27 -0
  101. package/dist/types/components/webComponents/GidsCalendar/GidsCalendar.d.ts +34 -0
  102. package/dist/types/components/webComponents/GidsCalendarHeaderPanel/GidsCalendarHeaderPanel.d.ts +67 -0
  103. package/dist/types/components/webComponents/GidsCalendarMonthList/GidsCalendarMonthList.d.ts +26 -0
  104. package/dist/types/components/webComponents/GidsCalendarYearList/GidsCalendarYearList.d.ts +31 -0
  105. package/dist/types/components/webComponents/GidsChart/GidsChart.d.ts +19 -0
  106. package/dist/types/components/webComponents/GidsChartLegend/GidsChartLegend.d.ts +7 -0
  107. package/dist/types/components/webComponents/GidsChartLegendItem/GidsChartLegendItem.d.ts +9 -0
  108. package/dist/types/components/webComponents/GidsChevronButton/GidsChevronButton.d.ts +21 -0
  109. package/dist/types/components/webComponents/GidsDot/GidsDot.d.ts +17 -0
  110. package/dist/types/components/webComponents/GidsDropdown/GidsDropdown.d.ts +78 -0
  111. package/dist/types/components/webComponents/GidsDropdownField/GidsDropdownField.d.ts +37 -0
  112. package/dist/types/components/webComponents/GidsDropdownPicker/GidsDropdownPicker.d.ts +52 -0
  113. package/dist/types/components/webComponents/GidsLevelGauge/GidsLevelGauge.d.ts +22 -0
  114. package/dist/types/components/webComponents/GidsLineChart/GidsLineChart.d.ts +27 -0
  115. package/dist/types/components/webComponents/GidsPieChart/GidsPieChart.d.ts +23 -0
  116. package/dist/types/components/webComponents/GidsProgressCircle/GidsProgressCircle.d.ts +24 -0
  117. package/dist/types/components.d.ts +1352 -71
  118. package/dist/types/utils/childrenValidityUtils.d.ts +1 -1
  119. package/dist-bundled/es/gids-activity-gauge.js +6 -0
  120. package/dist-bundled/es/gids-bar-chart.js +6 -0
  121. package/dist-bundled/es/gids-calendar-header-panel.js +6 -0
  122. package/dist-bundled/es/gids-calendar-month-list.js +6 -0
  123. package/dist-bundled/es/gids-calendar-year-list.js +6 -0
  124. package/dist-bundled/es/gids-calendar.js +153 -0
  125. package/dist-bundled/es/gids-chart-legend-item.js +6 -0
  126. package/dist-bundled/es/gids-chart-legend.js +6 -0
  127. package/dist-bundled/es/gids-chart.js +108 -0
  128. package/dist-bundled/es/gids-chevron-button.js +56 -0
  129. package/dist-bundled/es/gids-dot.js +6 -0
  130. package/dist-bundled/es/gids-dropdown-field.js +88 -0
  131. package/dist-bundled/es/gids-dropdown-picker.js +6 -0
  132. package/dist-bundled/es/gids-dropdown.js +6 -0
  133. package/dist-bundled/es/gids-field.js +1 -1
  134. package/dist-bundled/es/gids-icon.js +4 -30
  135. package/dist-bundled/es/gids-input.js +4 -4
  136. package/dist-bundled/es/gids-level-gauge.js +6 -0
  137. package/dist-bundled/es/gids-line-chart.js +6 -0
  138. package/dist-bundled/es/gids-notification.js +1 -1
  139. package/dist-bundled/es/gids-overflow-container.js +6 -6
  140. package/dist-bundled/es/gids-overlay-provider.js +17 -17
  141. package/dist-bundled/es/gids-password-field.js +29 -28
  142. package/dist-bundled/es/gids-pie-chart.js +6 -0
  143. package/dist-bundled/es/gids-popover.js +7 -7
  144. package/dist-bundled/es/gids-progress-circle.js +6 -0
  145. package/dist-bundled/es/gids-scrim.js +8 -8
  146. package/dist-bundled/es/gids-snackbar.js +1 -1
  147. package/dist-bundled/es/gids-text-field.js +16 -15
  148. package/dist-bundled/es/gids-toggle-button.js +8 -8
  149. package/dist-bundled/es/gids-tooltip.js +5 -5
  150. package/dist-bundled/es/index.js +1 -1
  151. package/dist-bundled/es/p-9_mrQ7ac-If6e6cvJ.js +71 -0
  152. package/dist-bundled/es/p-B81J5HCC-Bkt2yXKi.js +47 -0
  153. package/dist-bundled/es/p-BFHWXEeg-ByjSjz8i.js +133 -0
  154. package/dist-bundled/es/p-B_HaXpJZ-a2SDgQ0E.js +37 -0
  155. package/dist-bundled/es/p-BaO-kEWS-ZITkeP-j.js +241 -0
  156. package/dist-bundled/es/p-BiPAgxAQ-BtMBQpJY.js +31 -0
  157. package/dist-bundled/es/p-Bmb-HiXg-MyHWdhpw.js +80 -0
  158. package/dist-bundled/es/{p-veoOgDXg-fRinub-C.js → p-BnL97lOW-BO0p4EdC.js} +9 -9
  159. package/dist-bundled/es/{p-iCAclJND-Bmsvd-W1.js → p-BvYnawkJ-DohV9UNG.js} +3 -3
  160. package/dist-bundled/es/p-CIP0xyhD-D6y5soLj.js +180 -0
  161. package/dist-bundled/es/p-CJzporPT-I_OdjJsQ.js +92 -0
  162. package/dist-bundled/es/p-CPSHPtGE-C7baJgXR.js +115 -0
  163. package/dist-bundled/es/p-CRngHsR7-DL9wz3Z3.js +25 -0
  164. package/dist-bundled/es/p-Ct3Ixgvf-CNP_PKwP.js +646 -0
  165. package/dist-bundled/es/p-D93TNeOt-Vvshbux8.js +88 -0
  166. package/dist-bundled/es/{p-DybsMR13-DpmsG3Q1.js → p-DKsrt7dx-ImYLc4xz.js} +1 -1
  167. package/dist-bundled/es/p-DZWWuJac-DNQvnHAr.js +15 -0
  168. package/dist-bundled/es/p-D_wcwB7E-d3jYxfod.js +20 -0
  169. package/dist-bundled/es/p-Dehss-X0-Di5vMgvd.js +29 -0
  170. package/dist-bundled/es/{p-DvoHLz_5-C5EvA91N.js → p-DfFqFdmS-DjI2pk-0.js} +6 -6
  171. package/dist-bundled/es/{p-CFw4_-5A-Dzvju3VE.js → p-KxRqlvSh-JOFDmT0B.js} +5 -5
  172. package/dist-bundled/es/p-MgTlrSP_-DifRVv94.js +70 -0
  173. package/dist-bundled/es/p-h6alWGT8-CSY2g3c8.js +67 -0
  174. package/dist-bundled/es/p-quZYWCxU-CPyWW0nv.js +56 -0
  175. package/dist-bundled/es/p-tyIgTtUC-C8jR4A5G.js +71 -0
  176. package/dist-bundled/es/p-uqSjmNkw-Cz2T86sC.js +55 -0
  177. package/dist-bundled/umd/gids-activity-gauge.umd.js +5 -0
  178. package/dist-bundled/umd/gids-bar-chart.umd.js +13 -0
  179. package/dist-bundled/umd/gids-calendar-header-panel.umd.js +5 -0
  180. package/dist-bundled/umd/gids-calendar-month-list.umd.js +5 -0
  181. package/dist-bundled/umd/gids-calendar-year-list.umd.js +5 -0
  182. package/dist-bundled/umd/gids-calendar.umd.js +5 -0
  183. package/dist-bundled/umd/gids-chart-legend-item.umd.js +5 -0
  184. package/dist-bundled/umd/gids-chart-legend.umd.js +5 -0
  185. package/dist-bundled/umd/gids-chart.umd.js +13 -0
  186. package/dist-bundled/umd/gids-chevron-button.umd.js +5 -0
  187. package/dist-bundled/umd/gids-dot.umd.js +5 -0
  188. package/dist-bundled/umd/gids-dropdown-field.umd.js +5 -0
  189. package/dist-bundled/umd/gids-dropdown-picker.umd.js +5 -0
  190. package/dist-bundled/umd/gids-dropdown.umd.js +5 -0
  191. package/dist-bundled/umd/gids-field.umd.js +2 -2
  192. package/dist-bundled/umd/gids-icon.umd.js +2 -2
  193. package/dist-bundled/umd/gids-input.umd.js +2 -2
  194. package/dist-bundled/umd/gids-level-gauge.umd.js +5 -0
  195. package/dist-bundled/umd/gids-line-chart.umd.js +5 -0
  196. package/dist-bundled/umd/gids-notification.umd.js +2 -2
  197. package/dist-bundled/umd/gids-overflow-container.umd.js +2 -2
  198. package/dist-bundled/umd/gids-overlay-provider.umd.js +2 -2
  199. package/dist-bundled/umd/gids-password-field.umd.js +2 -2
  200. package/dist-bundled/umd/gids-pie-chart.umd.js +5 -0
  201. package/dist-bundled/umd/gids-popover.umd.js +2 -2
  202. package/dist-bundled/umd/gids-progress-circle.umd.js +5 -0
  203. package/dist-bundled/umd/gids-scrim.umd.js +2 -2
  204. package/dist-bundled/umd/gids-snackbar.umd.js +2 -2
  205. package/dist-bundled/umd/gids-text-field.umd.js +2 -2
  206. package/dist-bundled/umd/gids-toggle-button.umd.js +3 -3
  207. package/dist-bundled/umd/gids-tooltip.umd.js +2 -2
  208. package/dist-bundled/umd/index.umd.js +2 -2
  209. package/dist-bundled/umd-complete/gids-core-web.umd.js +11 -3
  210. package/package.json +148 -4
  211. package/dist/p-CFw4_-5A.js +0 -1
  212. package/dist/p-DijVkS9b.js +0 -1
  213. package/dist/p-DybsMR13.js +0 -1
  214. package/dist/p-ibikYq-w.js +0 -1
  215. package/dist-bundled/es/p-DijVkS9b-CeV1i4T-.js +0 -35
  216. package/dist-bundled/es/p-ibikYq-w-BsGxk8ro.js +0 -635
@@ -1,7 +1,15 @@
1
- (function(E,ce){typeof exports=="object"&&typeof module<"u"?ce(exports):typeof define=="function"&&define.amd?define(["exports"],ce):(E=typeof globalThis<"u"?globalThis:E||self,ce(E.gidsCoreWeb={}))})(this,(function(E){"use strict";var X;function ce(e,t,n){const i=typeof HTMLElement<"u"?HTMLElement.prototype:null;for(;e&&e!==i;){const s=Object.getOwnPropertyDescriptor(e,t);if(s&&(!n||s.get))return s;e=Object.getPrototypeOf(e)}}var be,vi=(e,t)=>{var n;Object.entries((n=t.o.t)!=null?n:{}).map((([i,[s]])=>{if(31&s||32&s){const o=e[i],r=ce(Object.getPrototypeOf(e),i,!0)||Object.getOwnPropertyDescriptor(e,i);r&&Object.defineProperty(e,i,{get(){return r.get.call(this)},set(l){r.set.call(this,l)},configurable:!0,enumerable:!0}),t.l.has(i)?e[i]=t.l.get(i):o!==void 0&&(e[i]=o)}}))},H=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},Vt=(e,t)=>t in e,de=(e,t)=>(0,console.error)(e,t),Ae=new Map,Gt="http://www.w3.org/1999/xlink",T=typeof window<"u"?window:{},A=T.HTMLElement||class{},k={i:0,u:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,i)=>e.addEventListener(t,n,i),rel:(e,t,n,i)=>e.removeEventListener(t,n,i),ce:(e,t)=>new CustomEvent(e,t)},Ke=(()=>{try{return!!T.document.adoptedStyleSheets&&(new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function")}catch{}return!1})(),Ze=!!Ke&&!!T.document&&Object.getOwnPropertyDescriptor(T.document.adoptedStyleSheets,"length").writable,Je=!1,zt=[],Bt=[],yi=(e,t)=>n=>{e.push(n),Je||(Je=!0,4&k.i?tt(et):k.raf(et))},Ht=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(n){de(n)}e.length=0},et=()=>{Ht(zt),Ht(Bt),(Je=zt.length>0)&&k.raf(et)},tt=e=>Promise.resolve(void 0).then(e),_i=yi(Bt),wi=e=>{const t=new URL(e,k.u);return t.origin!==T.location.origin?t.href:t.pathname},Si=e=>k.u=e;function xi(){const e=this.attachShadow({mode:"open"});be===void 0&&(be=null),be&&(Ze?e.adoptedStyleSheets.push(be):e.adoptedStyleSheets=[...e.adoptedStyleSheets,be])}var Wt=e=>{const t=it(e,"childNodes");e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&e.tagName!=="SLOT-FB"&&nt(t,e.tagName).forEach((i=>{i.nodeType===1&&i.tagName==="SLOT-FB"&&(i.hidden=!!Ei(i,ve(i),!1).length)}));let n=0;for(n=0;n<t.length;n++){const i=t[n];i.nodeType===1&&it(i,"childNodes").length&&Wt(i)}};function nt(e,t,n){let i,s=0,o=[];for(;s<e.length;s++){if(i=e[s],i["s-sr"]&&(!t||i["s-hn"]===t)&&(n===void 0||ve(i)===n)&&(o.push(i),n!==void 0))return o;o=[...o,...nt(i.childNodes,t,n)]}return o}var Ei=(e,t,n=!0)=>{const i=[];(n&&e["s-sr"]||!e["s-sr"])&&i.push(e);let s=e;for(;s=s.nextSibling;)ve(s)!==t||!n&&s["s-sr"]||i.push(s);return i},Qt=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t||t==="",ve=e=>typeof e["s-sn"]=="string"?e["s-sn"]:e.nodeType===1&&e.getAttribute("slot")||void 0;function it(e,t){if("__"+t in e){const n=e["__"+t];return typeof n!="function"?n:n.bind(e)}return typeof e[t]!="function"?e[t]:e[t].bind(e)}var st,te,K=new WeakMap,Ut=e=>"sc-"+e.p,ot=e=>(e=typeof e)=="object"||e==="function",g=(e,t,...n)=>{let i=null,s=null,o=null,r=!1,l=!1;const a=[],c=d=>{for(let f=0;f<d.length;f++)i=d[f],Array.isArray(i)?c(i):i!=null&&typeof i!="boolean"&&((r=typeof e!="function"&&!ot(i))&&(i=String(i)),r&&l?a[a.length-1].h+=i:a.push(r?$e(null,i):i),l=r)};if(c(n),t){t.key&&(s=t.key),t.name&&(o=t.name);{const d=t.className||t.class;d&&(t.class=typeof d!="object"?d:Object.keys(d).filter((f=>d[f])).join(" "))}}if(typeof e=="function")return e(t===null?{}:t,a,Ci);const u=$e(e,null);return u.v=t,a.length>0&&(u.m=a),u.$=s,u.j=o,u},$e=(e,t)=>({i:0,O:e,h:t??null,S:null,m:null,v:null,$:null,j:null}),rt={},Ci={forEach:(e,t)=>e.map(Xt).forEach(t),map:(e,t)=>e.map(Xt).map(t).map(Ti)},Xt=e=>({vattrs:e.v,vchildren:e.m,vkey:e.$,vname:e.j,vtag:e.O,vtext:e.h}),Ti=e=>{if(typeof e.vtag=="function"){const n={...e.vattrs};return e.vkey&&(n.key=e.vkey),e.vname&&(n.name=e.vname),g(e.vtag,n,...e.vchildren||[])}const t=$e(e.vtag,e.vtext);return t.v=e.vattrs,t.m=e.vchildren,t.$=e.vkey,t.j=e.vname,t},Yt=e=>{if(!e)return;const t=Object.keys(e);if(t.length===0)return;let n=!1;for(const s of t){if(n)break;for(const o of e[s])if(typeof o=="string"){n=!0;break}}if(!n)return e;const i={};for(const s of t)i[s]=e[s].map((o=>typeof o=="string"?{[o]:0}:o));return i},Kt=(e,t)=>e==null||ot(e)?e:4&t?e!=="false"&&(e===""||!!e):2&t?typeof e=="string"?parseFloat(e):typeof e=="number"?e:NaN:1&t?String(e):e,Ne=(e,t)=>{const n=e;return{emit:i=>Zt(n,t,{bubbles:!0,composed:!0,cancelable:!0,detail:i})}},Zt=(e,t,n)=>{const i=k.ce(t,n);return e.dispatchEvent(i),i},Jt=(e,t,n,i,s,o)=>{if(n===i)return;let r=Vt(e,t),l=t.toLowerCase();if(t==="class"){const a=e.classList,c=en(n);let u=en(i);a.remove(...c.filter((d=>d&&!u.includes(d)))),a.add(...u.filter((d=>d&&!c.includes(d))))}else if(t==="style"){for(const a in n)i&&i[a]!=null||(a.includes("-")?e.style.removeProperty(a):e.style[a]="");for(const a in i)n&&i[a]===n[a]||(a.includes("-")?e.style.setProperty(a,i[a]):e.style[a]=i[a])}else if(t!=="key"){if(t==="ref")i&&Ri(i,e);else if(e.__lookupSetter__(t)||t[0]!=="o"||t[1]!=="n"){if(t[0]==="a"&&t.startsWith("attr:")){const a=t.slice(5);let c;{const u=H(e);if(u&&u.o&&u.o.t){const d=u.o.t[a];d&&d[1]&&(c=d[1])}}return c||(c=a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(i==null||i===!1?i===!1&&e.getAttribute(c)!==""||e.removeAttribute(c):e.setAttribute(c,i===!0?"":i))}if(t[0]==="p"&&t.startsWith("prop:")){const a=t.slice(5);try{e[a]=i}catch{}return}{const a=ot(i);if((r||a&&i!==null)&&!s)try{if(e.tagName.includes("-"))e[t]!==i&&(e[t]=i);else{const u=i??"";t==="list"?r=!1:n!=null&&e[t]===u||(typeof e.__lookupSetter__(t)=="function"?e[t]=u:e.setAttribute(t,u))}}catch{}let c=!1;l!==(l=l.replace(/^xlink\:?/,""))&&(t=l,c=!0),i==null||i===!1?i===!1&&e.getAttribute(t)!==""||(c?e.removeAttributeNS(Gt,t):e.removeAttribute(t)):(!r||4&o||s)&&!a&&e.nodeType===1&&(i=i===!0?"":i,c?e.setAttributeNS(Gt,t,i):e.setAttribute(t,i))}}else if(t=t[2]==="-"?t.slice(3):Vt(T,l)?l.slice(2):l[2]+t.slice(3),n||i){const a=t.endsWith(tn);t=t.replace(Oi,""),n&&k.rel(e,t,n,a),i&&k.ael(e,t,i,a)}}},ki=/\s/,en=e=>(typeof e=="object"&&e&&"baseVal"in e&&(e=e.baseVal),e&&typeof e=="string"?e.split(ki):[]),tn="Capture",Oi=new RegExp(tn+"$"),at=(e,t,n)=>{const i=t.S.nodeType===11&&t.S.host?t.S.host:t.S,s=e&&e.v||{},o=t.v||{};for(const r of nn(Object.keys(s)))r in o||Jt(i,r,s[r],void 0,n,t.i);for(const r of nn(Object.keys(o)))Jt(i,r,s[r],o[r],n,t.i)};function nn(e){return e.includes("ref")?[...e.filter((t=>t!=="ref")),"ref"]:e}var ye=!1,Me=!1,Pe=!1,$=!1,lt=[],ct=[],Fe=(e,t,n)=>{var i;const s=t.m[n];let o,r,l,a=0;if(ye||(Pe=!0,s.O==="slot"&&(s.i|=s.m?2:1)),s.h!=null)o=s.S=T.document.createTextNode(s.h);else if(1&s.i)o=s.S=T.document.createTextNode(""),at(null,s,$);else{if($||($=s.O==="svg"),!T.document)throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(o=s.S=T.document.createElementNS($?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!ye&&2&s.i?"slot-fb":s.O),$&&s.O==="foreignObject"&&($=!1),at(null,s,$),s.m){const c=s.O==="template"?o.content:o;for(a=0;a<s.m.length;++a)r=Fe(e,s,a),r&&c.appendChild(r)}s.O==="svg"?$=!1:o.tagName==="foreignObject"&&($=!0)}return o["s-hn"]=te,3&s.i&&(o["s-sr"]=!0,o["s-cr"]=st,o["s-sn"]=s.j||"",o["s-rf"]=(i=s.v)==null?void 0:i.ref,(function(c){if(c.assignedElements||c.assignedNodes||!c["s-sr"])return;const u=d=>(function(f){const m=[],h=this["s-sn"];f?.flatten&&console.error(`
1
+ (function(C,ge){typeof exports=="object"&&typeof module<"u"?ge(exports):typeof define=="function"&&define.amd?define(["exports"],ge):(C=typeof globalThis<"u"?globalThis:C||self,ge(C.gidsCoreWeb={}))})(this,(function(C){"use strict";var Q;function ge(e,t,i){const s=typeof HTMLElement<"u"?HTMLElement.prototype:null;for(;e&&e!==s;){const a=Object.getOwnPropertyDescriptor(e,t);if(a&&(!i||a.get))return a;e=Object.getPrototypeOf(e)}}var Ce,ga=(e,t)=>{var i;Object.entries((i=t.o.t)!=null?i:{}).map((([s,[a]])=>{if(31&a||32&a){const n=e[s],o=ge(Object.getPrototypeOf(e),s,!0)||Object.getOwnPropertyDescriptor(e,s);o&&Object.defineProperty(e,s,{get(){return o.get.call(this)},set(l){o.set.call(this,l)},configurable:!0,enumerable:!0}),t.l.has(s)?e[s]=t.l.get(s):n!==void 0&&(e[s]=n)}}))},B=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},ti=(e,t)=>t in e,pe=(e,t)=>(0,console.error)(e,t),Re=new Map,ii="http://www.w3.org/1999/xlink",pa=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"],L=typeof window<"u"?window:{},E=L.HTMLElement||class{},I={i:0,u:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,i,s)=>e.addEventListener(t,i,s),rel:(e,t,i,s)=>e.removeEventListener(t,i,s),ce:(e,t)=>new CustomEvent(e,t)},nt=(()=>{try{return!!L.document.adoptedStyleSheets&&(new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function")}catch{}return!1})(),rt=!!nt&&!!L.document&&Object.getOwnPropertyDescriptor(L.document.adoptedStyleSheets,"length").writable,ot=!1,si=[],ai=[],ua=(e,t)=>i=>{e.push(i),ot||(ot=!0,4&I.i?dt(lt):I.raf(lt))},ni=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(i){pe(i)}e.length=0},lt=()=>{ni(si),ni(ai),(ot=si.length>0)&&I.raf(lt)},dt=e=>Promise.resolve(void 0).then(e),ma=ua(ai),fa=e=>{const t=new URL(e,I.u);return t.origin!==L.location.origin?t.href:t.pathname},ba=e=>I.u=e;function va(){const e=this.attachShadow({mode:"open"});Ce===void 0&&(Ce=null),Ce&&(rt?e.adoptedStyleSheets.push(Ce):e.adoptedStyleSheets=[...e.adoptedStyleSheets,Ce])}var ri=e=>{const t=ht(e,"childNodes");e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&e.tagName!=="SLOT-FB"&&ct(t,e.tagName).forEach((s=>{s.nodeType===1&&s.tagName==="SLOT-FB"&&(s.hidden=!!ya(s,ke(s),!1).length)}));let i=0;for(i=0;i<t.length;i++){const s=t[i];s.nodeType===1&&ht(s,"childNodes").length&&ri(s)}};function ct(e,t,i){let s,a=0,n=[];for(;a<e.length;a++){if(s=e[a],s["s-sr"]&&(!t||s["s-hn"]===t)&&(i===void 0||ke(s)===i)&&(n.push(s),i!==void 0))return n;n=[...n,...ct(s.childNodes,t,i)]}return n}var ya=(e,t,i=!0)=>{const s=[];(i&&e["s-sr"]||!e["s-sr"])&&s.push(e);let a=e;for(;a=a.nextSibling;)ke(a)!==t||!i&&a["s-sr"]||s.push(a);return s},oi=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t||t==="",ke=e=>typeof e["s-sn"]=="string"?e["s-sn"]:e.nodeType===1&&e.getAttribute("slot")||void 0;function ht(e,t){if("__"+t in e){const i=e["__"+t];return typeof i!="function"?i:i.bind(e)}return typeof e[t]!="function"?e[t]:e[t].bind(e)}var gt,ie,K=new WeakMap,li=e=>"sc-"+e.p,pt=e=>(e=typeof e)=="object"||e==="function",r=(e,t,...i)=>{let s=null,a=null,n=null,o=!1,l=!1;const d=[],g=h=>{for(let p=0;p<h.length;p++)s=h[p],Array.isArray(s)?g(s):s!=null&&typeof s!="boolean"&&((o=typeof e!="function"&&!pt(s))&&(s=String(s)),o&&l?d[d.length-1].h+=s:d.push(o?Fe(null,s):s),l=o)};if(g(i),t){t.key&&(a=t.key),t.name&&(n=t.name);{const h=t.className||t.class;h&&(t.class=typeof h!="object"?h:Object.keys(h).filter((p=>h[p])).join(" "))}}if(typeof e=="function")return e(t===null?{}:t,d,_a);const c=Fe(e,null);return c.v=t,d.length>0&&(c.m=d),c.$=a,c.j=n,c},Fe=(e,t)=>({i:0,O:e,h:t??null,S:null,m:null,v:null,$:null,j:null}),ut={},_a={forEach:(e,t)=>e.map(di).forEach(t),map:(e,t)=>e.map(di).map(t).map(xa)},di=e=>({vattrs:e.v,vchildren:e.m,vkey:e.$,vname:e.j,vtag:e.O,vtext:e.h}),xa=e=>{if(typeof e.vtag=="function"){const i={...e.vattrs};return e.vkey&&(i.key=e.vkey),e.vname&&(i.name=e.vname),r(e.vtag,i,...e.vchildren||[])}const t=Fe(e.vtag,e.vtext);return t.v=e.vattrs,t.m=e.vchildren,t.$=e.vkey,t.j=e.vname,t},ci=e=>{if(!e)return;const t=Object.keys(e);if(t.length===0)return;let i=!1;for(const a of t){if(i)break;for(const n of e[a])if(typeof n=="string"){i=!0;break}}if(!i)return e;const s={};for(const a of t)s[a]=e[a].map((n=>typeof n=="string"?{[n]:0}:n));return s},hi=(e,t,i)=>e==null||pt(e)?e:4&t?(i&&typeof e=="string"||e!=="false")&&(e===""||!!e):2&t?typeof e=="string"?parseFloat(e):typeof e=="number"?e:NaN:1&t?String(e):e,Se=(e,t)=>{const i=e;return{emit:s=>gi(i,t,{bubbles:!0,composed:!0,cancelable:!0,detail:s})}},gi=(e,t,i)=>{const s=I.ce(t,i);return e.dispatchEvent(s),s},pi=(e,t,i,s,a,n)=>{if(i===s)return;let o=ti(e,t),l=t.toLowerCase();if(t==="class"){const d=e.classList,g=ui(i);let c=ui(s);d.remove(...g.filter((h=>h&&!c.includes(h)))),d.add(...c.filter((h=>h&&!g.includes(h))))}else if(t==="style"){for(const d in i)s&&s[d]!=null||(d.includes("-")?e.style.removeProperty(d):e.style[d]="");for(const d in s)i&&s[d]===i[d]||(d.includes("-")?e.style.setProperty(d,s[d]):e.style[d]=s[d])}else if(t!=="key"){if(t==="ref")s&&ka(s,e);else if(e.__lookupSetter__(t)||t[0]!=="o"||t[1]!=="n"){if(t[0]==="a"&&t.startsWith("attr:")){const d=t.slice(5);let g;{const c=B(e);if(c&&c.o&&c.o.t){const h=c.o.t[d];h&&h[1]&&(g=h[1])}}return g||(g=d.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(s==null||s===!1?s===!1&&e.getAttribute(g)!==""||e.removeAttribute(g):e.setAttribute(g,s===!0?"":s))}if(t[0]==="p"&&t.startsWith("prop:")){const d=t.slice(5);try{e[d]=s}catch{}return}{const d=pt(s);if((o||d&&s!==null)&&!a)try{if(e.tagName.includes("-"))e[t]!==s&&(e[t]=s);else{const c=s??"";t==="list"?o=!1:i!=null&&e[t]===c||(typeof e.__lookupSetter__(t)=="function"?e[t]=c:e.setAttribute(t,c))}}catch{}let g=!1;l!==(l=l.replace(/^xlink\:?/,""))&&(t=l,g=!0),s==null||s===!1?s===!1&&e.getAttribute(t)!==""||(g?e.removeAttributeNS(ii,t):e.removeAttribute(t)):(!o||4&n||a)&&!d&&e.nodeType===1&&(s=s===!0?"":s,g?e.setAttributeNS(ii,t,s):e.setAttribute(t,s))}}else if(t=t[2]==="-"?t.slice(3):ti(L,l)?l.slice(2):l[2]+t.slice(3),i||s){const d=t.endsWith(mi);t=t.replace(Ca,""),i&&I.rel(e,t,i,d),s&&I.ael(e,t,s,d)}}},wa=/\s/,ui=e=>(typeof e=="object"&&e&&"baseVal"in e&&(e=e.baseVal),e&&typeof e=="string"?e.split(wa):[]),mi="Capture",Ca=new RegExp(mi+"$"),mt=(e,t,i)=>{const s=t.S.nodeType===11&&t.S.host?t.S.host:t.S,a=e&&e.v||{},n=t.v||{};for(const o of fi(Object.keys(a)))o in n||pi(s,o,a[o],void 0,i,t.i);for(const o of fi(Object.keys(n)))pi(s,o,a[o],n[o],i,t.i)};function fi(e){return e.includes("ref")?[...e.filter((t=>t!=="ref")),"ref"]:e}var Ee=!1,Ge=!1,Ve=!1,N=!1,ft=[],bt=[],je=(e,t,i)=>{var s;const a=t.m[i];let n,o,l,d=0;if(Ee||(Ve=!0,a.O==="slot"&&(a.i|=a.m?2:1)),a.h!=null)n=a.S=L.document.createTextNode(a.h);else if(1&a.i)n=a.S=L.document.createTextNode(""),mt(null,a,N);else{if(N||(N=a.O==="svg"),!L.document)throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(n=a.S=L.document.createElementNS(N?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!Ee&&2&a.i?"slot-fb":a.O),N&&a.O==="foreignObject"&&(N=!1),mt(null,a,N),a.m){const g=a.O==="template"?n.content:n;for(d=0;d<a.m.length;++d)o=je(e,a,d),o&&g.appendChild(o)}a.O==="svg"?N=!1:n.tagName==="foreignObject"&&(N=!0)}return n["s-hn"]=ie,3&a.i&&(n["s-sr"]=!0,n["s-cr"]=gt,n["s-sn"]=a.j||"",n["s-rf"]=(s=a.v)==null?void 0:s.ref,(function(g){if(g.assignedElements||g.assignedNodes||!g["s-sr"])return;const c=h=>(function(p){const m=[],u=this["s-sn"];p?.flatten&&console.error(`
2
2
  Flattening is not supported for Stencil non-shadow slots.
3
3
  You can use \`.childNodes\` to nested slot fallback content.
4
4
  If you have a particular use case, please open an issue on the Stencil repo.
5
- `);const y=this["s-cr"].parentElement;return(y.__childNodes?y.childNodes:(_=>{const p=[];for(let v=0;v<_.length;v++){const b=_[v]["s-nr"]||void 0;b&&b.isConnected&&p.push(b)}return p})(y.childNodes)).forEach((_=>{h===ve(_)&&m.push(_)})),d?m.filter((_=>_.nodeType===1)):m}).bind(c);c.assignedElements=u(!0),c.assignedNodes=u(!1)})(o),l=e&&e.m&&e.m[n],l&&l.O===s.O&&e.S&&sn(e.S)),o},sn=e=>{k.i|=1;const t=e.closest(te.toLowerCase());if(t!=null){const n=Array.from(t.__childNodes||t.childNodes).find((s=>s["s-cr"])),i=Array.from(e.__childNodes||e.childNodes);for(const s of n?i.reverse():i)s["s-sh"]!=null&&(I(t,s,n??null),s["s-sh"]=void 0,Pe=!0)}k.i&=-2},Ie=(e,t)=>{k.i|=1;const n=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let i=e;for(;i=i.nextSibling;)i&&i["s-sn"]===e["s-sn"]&&i["s-sh"]===te&&n.push(i)}for(let i=n.length-1;i>=0;i--){const s=n[i];s["s-hn"]!==te&&s["s-ol"]&&(I(_e(s).parentNode,s,_e(s)),s["s-ol"].remove(),s["s-ol"]=void 0,s["s-sh"]=void 0,Pe=!0),t&&Ie(s,t)}k.i&=-2},on=(e,t,n,i,s,o)=>{let r,l=e["s-cr"]&&e["s-cr"].parentNode||e;for(l.shadowRoot&&l.tagName===te&&(l=l.shadowRoot),n.O==="template"&&(l=l.content);s<=o;++s)i[s]&&(r=Fe(null,n,s),r&&(i[s].S=r,I(l,r,_e(t))))},rn=(e,t,n)=>{for(let i=t;i<=n;++i){const s=e[i];if(s){const o=s.S;ln(s),o&&(Me=!0,o["s-ol"]?o["s-ol"].remove():Ie(o,!0),o.remove())}}},qe=(e,t,n=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:n?(n&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),_e=e=>e&&e["s-ol"]||e,ue=(e,t,n=!1)=>{const i=t.S=e.S,s=e.m,o=t.m,r=t.O,l=t.h;let a;l==null?($=r==="svg"||r!=="foreignObject"&&$,r!=="slot"||ye||e.j!==t.j&&(t.S["s-sn"]=t.j||"",sn(t.S.parentElement)),at(e,t,$),s!==null&&o!==null?((c,u,d,f,m=!1)=>{let h,y,_=0,p=0,v=0,b=0,S=u.length-1,w=u[0],x=u[S],C=f.length-1,O=f[0],R=f[C];const F=d.O==="template"?c.content:c;for(;_<=S&&p<=C;)if(w==null)w=u[++_];else if(x==null)x=u[--S];else if(O==null)O=f[++p];else if(R==null)R=f[--C];else if(qe(w,O,m))ue(w,O,m),w=u[++_],O=f[++p];else if(qe(x,R,m))ue(x,R,m),x=u[--S],R=f[--C];else if(qe(w,R,m))w.O!=="slot"&&R.O!=="slot"||Ie(w.S.parentNode,!1),ue(w,R,m),I(F,w.S,x.S.nextSibling),w=u[++_],R=f[--C];else if(qe(x,O,m))w.O!=="slot"&&R.O!=="slot"||Ie(x.S.parentNode,!1),ue(x,O,m),I(F,x.S,w.S),x=u[--S],O=f[++p];else{for(v=-1,b=_;b<=S;++b)if(u[b]&&u[b].$!==null&&u[b].$===O.$){v=b;break}v>=0?(y=u[v],y.O!==O.O?h=Fe(u&&u[p],d,v):(ue(y,O,m),u[v]=void 0,h=y.S),O=f[++p]):(h=Fe(u&&u[p],d,p),O=f[++p]),h&&I(_e(w.S).parentNode,h,_e(w.S))}_>S?on(c,f[C+1]==null?null:f[C+1].S,d,f,p,C):p>C&&rn(u,_,S)})(i,s,t,o,n):o!==null?(e.h!==null&&(i.textContent=""),on(i,null,t,o,0,o.length-1)):!n&&s!==null&&rn(s,0,s.length-1),$&&r==="svg"&&($=!1)):(a=i["s-cr"])?a.parentNode.textContent=l:e.h!==l&&(i.data=l)},W=[],an=e=>{let t,n,i;const s=e.__childNodes||e.childNodes;for(const o of s){if(o["s-sr"]&&(t=o["s-cr"])&&t.parentNode){n=t.parentNode.__childNodes||t.parentNode.childNodes;const r=o["s-sn"];for(i=n.length-1;i>=0;i--)if(t=n[i],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===o["s-hn"]||t["s-sh"]&&t["s-sh"]===o["s-hn"]))if(Qt(t,r)){let l=W.find((a=>a.k===t));Me=!0,t["s-sn"]=t["s-sn"]||r,l?(l.k["s-sh"]=o["s-hn"],l.N=o):(t["s-sh"]=o["s-hn"],W.push({N:o,k:t})),t["s-sr"]&&W.map((a=>{Qt(a.k,t["s-sn"])&&(l=W.find((c=>c.k===t)),l&&!a.N&&(a.N=l.N))}))}else W.some((l=>l.k===t))||W.push({k:t})}o.nodeType===1&&an(o)}},ln=e=>{e.v&&e.v.ref&&lt.push((()=>e.v.ref(null))),e.m&&e.m.map(ln)},Ri=(e,t)=>{ct.push((()=>e(t)))},I=(e,t,n,i)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,n);const{slotNode:s}=(function(o,r){var l;if(!(r=r||((l=o["s-ol"])==null?void 0:l.parentElement)))return{slotNode:null,slotName:""};const a=o["s-sn"]=ve(o)||"";return{slotNode:nt(it(r,"childNodes"),r.tagName,a)[0],slotName:a}})(t);return s&&!i&&s.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,n):e?.insertBefore(t,n)},cn=(e,t,n=!1)=>{var i,s,o,r,l;const a=e.$hostElement$,c=e.o,u=e.M||$e(null,null);var d;const f=(d=t)&&d.O===rt?t:g(null,null,t);if(te=a.tagName,c._&&(f.v=f.v||{},c._.forEach((([m,h])=>{f.v[h]=a[m]}))),n&&f.v)for(const m of Object.keys(f.v))a.hasAttribute(m)&&!["key","ref","style","class"].includes(m)&&(f.v[m]=a[m]);if(f.O=null,f.i|=4,e.M=f,f.S=u.S=a.shadowRoot||a,ye=!(!(1&c.i)||128&c.i),st=a["s-cr"],Me=!1,ue(u,f,n),k.i|=1,Pe){an(f.S);for(const m of W){const h=m.k;if(!h["s-ol"]&&T.document){const y=T.document.createTextNode("");y["s-nr"]=h,I(h.parentNode,h["s-ol"]=y,h,n)}}for(const m of W){const h=m.k,y=m.N;if(h.nodeType===1&&n&&(h["s-ih"]=(i=h.hidden)!=null&&i),y){const _=y.parentNode;let p=y.nextSibling;if(p&&p.nodeType===1){let v=(s=h["s-ol"])==null?void 0:s.previousSibling;for(;v;){let b=(o=v["s-nr"])!=null?o:null;if(b&&b["s-sn"]===h["s-sn"]&&_===(b.__parentNode||b.parentNode)){for(b=b.nextSibling;b===h||b?.["s-sr"];)b=b?.nextSibling;if(!b||!b["s-nr"]){p=b;break}}v=v.previousSibling}}if((!p&&_!==(h.__parentNode||h.parentNode)||(h.__nextSibling||h.nextSibling)!==p)&&h!==p){if(I(_,h,p,n),h.nodeType===8&&h.nodeValue.startsWith("s-nt-")){const v=T.document.createTextNode(h.nodeValue.replace(/^s-nt-/,""));v["s-hn"]=h["s-hn"],v["s-sn"]=h["s-sn"],v["s-sh"]=h["s-sh"],v["s-sr"]=h["s-sr"],v["s-ol"]=h["s-ol"],v["s-ol"]["s-nr"]=v,I(h.parentNode,v,h,n),h.parentNode.removeChild(h)}h.nodeType===1&&h.tagName!=="SLOT-FB"&&(h.hidden=(r=h["s-ih"])!=null&&r)}h&&typeof y["s-rf"]=="function"&&y["s-rf"](y)}else h.nodeType===1&&(h.hidden=!0)}}if(Me&&Wt(f.S),k.i&=-2,W.length=0,!ye&&!(1&c.i)&&a["s-cr"]){const m=f.S.__childNodes||f.S.childNodes;for(const h of m)if(h["s-hn"]!==te&&!h["s-sh"]){if(n&&h["s-ih"]==null&&(h["s-ih"]=(l=h.hidden)!=null&&l),h.nodeType===1)h.hidden=!0;else if(h.nodeType===3&&h.nodeValue.trim()){const y=T.document.createComment("s-nt-"+h.nodeValue);y["s-sn"]=h["s-sn"],I(h.parentNode,y,h,n),h.parentNode.removeChild(h)}}}st=void 0,lt.forEach((m=>m())),lt.length=0,ct.forEach((m=>m())),ct.length=0},dn=(e,t)=>{if(t&&!e.A&&t["s-p"]){const n=t["s-p"].push(new Promise((i=>e.A=()=>{t["s-p"].splice(n-1,1),i()})))}},De=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);dn(e,e.C);const n=()=>Li(e,t);if(!t)return _i(n);queueMicrotask((()=>{n()}))},Li=(e,t)=>{const n=e.$hostElement$,i=n;if(!i)throw new Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let s;return s=we(i,t?"componentWillLoad":"componentWillUpdate",void 0,n),s=un(s,(()=>we(i,"componentWillRender",void 0,n))),un(s,(()=>$i(e,i,t)))},un=(e,t)=>Ai(e)?e.then(t).catch((n=>{console.error(n),t()})):t(),Ai=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",$i=async(e,t,n)=>{var i;const s=e.$hostElement$,o=s["s-rc"];n&&(r=>{const l=r.o,a=r.$hostElement$,c=l.i,u=((d,f)=>{var m,h,y;const _=Ut(f),p=Ae.get(_);if(!T.document)return _;if(d=d.nodeType===11?d:T.document,p)if(typeof p=="string"){let v,b=K.get(d=d.head||d);if(b||K.set(d,b=new Set),!b.has(_)){v=T.document.createElement("style"),v.textContent=p;const S=(m=k.L)!=null?m:(function(){var w,x,C;return(C=(x=(w=T.document.head)==null?void 0:w.querySelector('meta[name="csp-nonce"]'))==null?void 0:x.getAttribute("content"))!=null?C:void 0})();if(S!=null&&v.setAttribute("nonce",S),!(1&f.i))if(d.nodeName==="HEAD"){const w=d.querySelectorAll("link[rel=preconnect]"),x=w.length>0?w[w.length-1].nextSibling:d.querySelector("style");d.insertBefore(v,x?.parentNode===d?x:null)}else if("host"in d)if(Ke){const w=new((h=d.defaultView)!=null?h:d.ownerDocument.defaultView).CSSStyleSheet;w.replaceSync(p),Ze?d.adoptedStyleSheets.unshift(w):d.adoptedStyleSheets=[w,...d.adoptedStyleSheets]}else{const w=d.querySelector("style");w?w.textContent=p+w.textContent:d.prepend(v)}else d.append(v);1&f.i&&d.insertBefore(v,null),4&f.i&&(v.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),b&&b.add(_)}}else{let v=K.get(d);if(v||K.set(d,v=new Set),!v.has(_)){const b=(y=d.defaultView)!=null?y:d.ownerDocument.defaultView;let S;if(p.constructor===b.CSSStyleSheet)S=p;else{S=new b.CSSStyleSheet;for(let w=0;w<p.cssRules.length;w++)S.insertRule(p.cssRules[w].cssText,w)}Ze?d.adoptedStyleSheets.push(S):d.adoptedStyleSheets=[...d.adoptedStyleSheets,S],v.add(_)}}return _})(a.shadowRoot?a.shadowRoot:a.getRootNode(),l);10&c&&(a["s-sc"]=u,a.classList.add(u+"-h"))})(e),Ni(e,t,s,n),o&&(o.map((r=>r())),s["s-rc"]=void 0);{const r=(i=s["s-p"])!=null?i:[],l=()=>Mi(e);r.length===0?l():(Promise.all(r).then(l).catch(l),e.i|=4,r.length=0)}},Ni=(e,t,n,i)=>{try{t=t.render(),e.i&=-17,e.i|=2,cn(e,t,i)}catch(s){de(s,e.$hostElement$)}return null},Mi=e=>{const t=e.$hostElement$,n=t,i=e.C;we(n,"componentDidRender",void 0,t),64&e.i?we(n,"componentDidUpdate",void 0,t):(e.i|=64,Fi(t),we(n,"componentDidLoad",void 0,t),e.F(t),i||Pi()),e.A&&(e.A(),e.A=void 0),512&e.i&&tt((()=>De(e,!1))),e.i&=-517},hn=e=>{var t;{const n=H(e),i=(t=n?.$hostElement$)==null?void 0:t.isConnected;return i&&(18&n.i)==2&&De(n,!1),i}},Pi=()=>{tt((()=>Zt(T,"appload",{detail:{namespace:"gids-core-web"}})))},we=(e,t,n,i)=>{if(e&&e[t])try{return e[t](n)}catch(s){de(s,i)}},Fi=e=>e.classList.add("hydrated"),fn=(e,t,n,i)=>{const s=H(e);if(!s)return;const o=e,r=s.l.get(t),l=s.i,a=o;n=Kt(n,i.t[t][0]);const c=Number.isNaN(r)&&Number.isNaN(n);if(n!==r&&!c){if(s.l.set(t,n),i.R){const u=i.R[t];u&&u.map((d=>{try{const[[f,m]]=Object.entries(d);(128&l||1&m)&&(a?a[f](n,r,t):s.T.push((()=>{s.D[f](n,r,t)})))}catch(f){de(f,o)}}))}if(2&l){if(a.componentShouldUpdate&&a.componentShouldUpdate(n,r,t)===!1&&!(16&l))return;16&l||De(s,!1)}}},Ii=(e,t)=>{var n,i;const s=e.prototype;{e.watchers&&!t.R&&(t.R=Yt(e.watchers)),e.deserializers&&!t.H&&(t.H=e.deserializers),e.serializers&&!t.P&&(t.P=e.serializers);const o=Object.entries((n=t.t)!=null?n:{});o.map((([r,[l]])=>{if(31&l||32&l){const{get:a,set:c}=ce(s,r)||{};a&&(t.t[r][0]|=2048),c&&(t.t[r][0]|=4096),Object.defineProperty(s,r,{get(){return a?a.apply(this):(u=r,H(this).l.get(u));var u},configurable:!0,enumerable:!0}),Object.defineProperty(s,r,{set(u){const d=H(this);if(d){if(c)return(32&l?this[r]:d.$hostElement$[r])===void 0&&d.l.get(r)&&(u=d.l.get(r)),c.apply(this,[Kt(u,l)]),void fn(this,r,u=32&l?this[r]:d.$hostElement$[r],t);fn(this,r,u,t)}}})}}));{const r=new Map;s.attributeChangedCallback=function(l,a,c){k.jmp((()=>{var u;const d=r.get(l),f=H(this);if(this.hasOwnProperty(d),s.hasOwnProperty(d)&&typeof this[d]=="number"&&this[d]==c)return;if(d==null){const p=f?.i;if(f&&p&&!(8&p)&&c!==a){const v=this,b=(u=t.R)==null?void 0:u[l];b?.forEach((S=>{const[[w,x]]=Object.entries(S);v[w]!=null&&(128&p||1&x)&&v[w].call(v,c,a,l)}))}return}const m=o.find((([p])=>p===d)),h=m&&4&m[1][0],y=h&&c===null&&this[d]===void 0;h&&(c=c!==null&&c!=="false");const _=Object.getOwnPropertyDescriptor(s,d);y||c==this[d]||_.get&&!_.set||(this[d]=c)}))},e.observedAttributes=Array.from(new Set([...Object.keys((i=t.R)!=null?i:{}),...o.filter((([l,a])=>31&a[0])).map((([l,a])=>{var c;const u=a[1]||l;return r.set(u,l),512&a[0]&&((c=t._)==null||c.push([l,u])),u}))]))}}return e},N=(e,t)=>{const n={i:t[0],p:t[1]};try{n.t=t[2],n.R=Yt(e.R),n.H=e.H,n.P=e.P,n._=[];const i=e.prototype.connectedCallback,s=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((o,r)=>{const l={i:0,$hostElement$:o,o:r,l:new Map,U:new Map};l.W=new Promise((c=>l.F=c)),o["s-p"]=[],o["s-rc"]=[];const a=l;o.__stencil__getHostRef=()=>a,512&r.i&&vi(o,l)})(this,n)},connectedCallback(){if(!this.__hasHostListenerAttached){if(!H(this))return;this.__hasHostListenerAttached=!0}(o=>{if(!(1&k.i)){const r=H(o);if(!r)return;const l=r.o;if(1&r.i)r?.D||r?.W&&r.W.then((()=>{}));else{r.i|=1,12&l.i&&(a=>{if(!T.document)return;const c=a["s-cr"]=T.document.createComment("");c["s-cn"]=!0,I(a,c,a.firstChild)})(o);{let a=o;for(;a=a.parentNode||a.host;)if(a["s-p"]){dn(r,r.C=a);break}}l.t&&Object.entries(l.t).map((([a,[c]])=>{if(31&c&&Object.prototype.hasOwnProperty.call(o,a)){const u=o[a];delete o[a],o[a]=u}})),(async(a,c,u)=>{let d;try{if(!(32&c.i)&&(c.i|=32,d=a.constructor,customElements.whenDefined(a.localName).then((()=>c.i|=128)),d&&d.style)){let h;typeof d.style=="string"&&(h=d.style);const y=Ut(u);Ae.has(y)||((_,p,v)=>{let b=Ae.get(_);Ke&&v?(b=b||new CSSStyleSheet,typeof b=="string"?b=p:b.replaceSync(p)):b=p,Ae.set(_,b)})(y,h,!!(1&u.i))}const f=c.C,m=()=>De(c,!0);f&&f["s-rc"]?f["s-rc"].push(m):m()}catch(f){de(f,a),c.A&&(c.A(),c.A=void 0),c.F&&c.F(a)}})(o,r,l)}}})(this),i&&i.call(this)},disconnectedCallback(){(async o=>{1&k.i||H(o),K.has(o)&&K.delete(o),o.shadowRoot&&K.has(o.shadowRoot)&&K.delete(o.shadowRoot)})(this),s&&s.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${n.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else xi.call(this,n)}}),Object.defineProperty(e,"is",{value:n.p,configurable:!0}),Ii(e,n)}catch(i){return de(i),e}},Se=(e,t)=>t,qi=e=>k.L=e,Di=e=>Object.assign(k,e),mn=new WeakMap;function ji(e,t){let n=mn.get(t);n||(n={i:0,o:{i:0,p:t.tagName},$hostElement$:t},mn.set(t,n)),cn(n,e)}function xr(e){return e}function gn(e){var t,n,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=gn(e[t]))&&(i&&(i+=" "),i+=n)}else for(n in e)e[n]&&(i&&(i+=" "),i+=n);return i}function P(){for(var e,t,n=0,i="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=gn(e))&&(i&&(i+=" "),i+=t);return i}const Vi=Object.freeze(Object.defineProperty({__proto__:null,getGidsLabelClassNames:({disabled:e},t)=>P("gids-label",{"gids-label--disabled":e},t)},Symbol.toStringTag,{value:"Module"})),Gi=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerControlClassNames:({size:e,indeterminate:t,value:n},i)=>P("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},n,i)},Symbol.toStringTag,{value:"Module"})),zi=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>P("gids-icon",{"gids-icon--xs":e==="xs","gids-icon--sm":e==="sm","gids-icon--md":e==="md","gids-icon--lg":e==="lg"},t)},Symbol.toStringTag,{value:"Module"})),Bi=Object.freeze(Object.defineProperty({__proto__:null,getGidsButtonClassNames:({appearance:e,size:t,width:n,destructive:i,positive:s,loading:o},r,l)=>P("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":n==="full","gids-button--destructive":i&&!s,"gids-button--positive":s&&!i,"gids-button--icon-only":r,"gids-button--loading":o},l)},Symbol.toStringTag,{value:"Module"})),pn=e=>{const t=Array.isArray(e)?e[e.length-1]:e;return typeof t=="string"&&t.trim().endsWith(".")},Hi=/\w/,Wi=e=>e.replace(Hi,t=>t.toLocaleUpperCase()),bn=(e,t)=>typeof e=="function"?e(t):t?Wi(e):e,Qi=Object.freeze(Object.defineProperty({__proto__:null,getIndicatorText:({children:e,fieldRequirement:t,fieldRequirementOptionalText:n,fieldRequirementRequiredText:i,isLabelSentence:s})=>{const o=s?s(e):pn(e);if(t==="required")return bn(i&&i.length>0?i:"(required)",o);if(t==="optional")return bn(n&&n.length>0?n:"(optional)",o)},isSentence:pn},Symbol.toStringTag,{value:"Module"})),je=64,vn=10,yn=je/2-vn/2,Ui=je/2,dt=2*Math.PI*yn,Xi=`0 0 ${je} ${je}`,Yi=Object.freeze(Object.defineProperty({__proto__:null,calculateStrokeDasharray:(e=0,t)=>{const n=typeof t=="number"&&t>0?t:1,s=Math.max(0,Math.min(n,e))/n*100,o=(dt*s/100).toFixed(2),r=(dt-parseFloat(o)).toFixed(2);return`${o} ${r}`},centerPosition:Ui,circumference:dt,radius:yn,thickness:vn,viewBox:Xi},Symbol.toStringTag,{value:"Module"})),_n=Object.freeze(Object.defineProperty({__proto__:null,formatCharCount:(e,t)=>{if(!(e===void 0||t===void 0))return`${e} / ${Math.max(t,0)}`},inputToGidsFieldStatus:e=>{switch(e){case"error":return"error";case"success":return"success";default:return"default"}}},Symbol.toStringTag,{value:"Module"})),ut=/[A-Z]/,ht=/[a-z]/,ft=/[0-9]/,mt=/[^A-Za-z0-9]/,Ki=Object.freeze(Object.defineProperty({__proto__:null,getColorModifierByScore:({textScore:e,maxScore:t})=>{const n=t>0?e/t*100:0;return n<=20?"is-weak":n<=40?"is-medium":n<=60?"is-good-enough":n<=80?"is-good":"is-strong"},getStrengthMeterScore:({text:e,meterRules:t=[],textMinLength:n=0})=>{if(!e||e==="")return 0;let i=0;return t.includes("1-uppercase")&&ut.test(e)&&i++,t.includes("1-lowercase")&&ht.test(e)&&i++,t.includes("1-digit")&&ft.test(e)&&i++,t.includes("1-special-character")&&mt.test(e)&&i++,t.includes("include-min-length")&&n&&n>0&&e.length>=n&&i++,i},include1DigitReg:ft,include1LowercaseLetterReg:ht,include1SpecialCharReg:mt,include1UppercaseLetterReg:ut},Symbol.toStringTag,{value:"Module"})),xe=({requirementRule:e,textMinLength:t})=>e==="include-min-length"&&t&&t>0,gt=e=>{const t=[];return e&&e.length>0&&e.map(n=>{n?.requirementRule&&t.push(n.requirementRule)}),t},Zi=({rule:e,textMinLength:t=0,text:n})=>{if(!n||n===""||!e&&!t)return!1;switch(e){case"1-uppercase":return ut.test(n);case"1-lowercase":return ht.test(n);case"1-digit":return ft.test(n);case"1-special-character":return mt.test(n);case"include-min-length":return xe({requirementRule:"include-min-length",textMinLength:t})===!0&&n.length>=t;default:return!1}},pt=e=>{const t=[{requirementRule:"1-uppercase",requirementText:"Password must contain atleast 1 uppercase letter."},{requirementRule:"1-digit",requirementText:"Password must contain atleast 1 digit."},{requirementRule:"1-special-character",requirementText:"Password must contain atleast 1 special character."},{requirementRule:"1-lowercase",requirementText:"Password must contain atleast 1 lowercase letter."}];return xe({requirementRule:"include-min-length",textMinLength:e})&&t.push({requirementRule:"include-min-length",requirementText:`Password must be of minimum ${e} characters long.`}),{defaultMeterRules:gt(t),defaultRequirementsMeterRules:t}},Ji=Object.freeze(Object.defineProperty({__proto__:null,checkRequirementRuleSatisfied:Zi,getDefaultRulesAndRequirementsForMeters:pt,getMeterRulesFromRequirements:gt,minLengthRuleCanBeApplied:xe},Symbol.toStringTag,{value:"Module"})),es=Object.freeze(Object.defineProperty({__proto__:null,getRequirementsMeterLabelLeadingIcon:e=>{switch(e){case"error":return"danger";case"information":return"information";case"warning":return"warning";case"success":return"positive";default:return"globe"}}},Symbol.toStringTag,{value:"Module"})),ts=Object.freeze(Object.defineProperty({__proto__:null,inputToGidsFieldStatusForPassword:e=>{switch(e){case"error":return"error";case"success":return"success";default:return"default"}}},Symbol.toStringTag,{value:"Module"})),ns=Object.freeze(Object.defineProperty({__proto__:null,showGidsOverflowContainerBottomShadow:e=>e==="bottom"||e==="top-bottom",showGidsOverflowContainerTopShadow:e=>e==="top"||e==="top-bottom"},Symbol.toStringTag,{value:"Module"})),is=Object.freeze(Object.defineProperty({__proto__:null,getGidsDismissButtonClassNames:({appearance:e,size:t},n)=>P("gids-dismiss-button",{"gids-dismiss-button--sm":t==="sm","gids-dismiss-button--lg":t==="lg","gids-dismiss-button--bold":e==="bold"},n)},Symbol.toStringTag,{value:"Module"})),ss=Object.freeze(Object.defineProperty({__proto__:null,getGidsFieldClassNames:e=>P("gids-field",e)},Symbol.toStringTag,{value:"Module"})),{inputToGidsFieldStatus:os}=_n,rs=Object.freeze(Object.defineProperty({__proto__:null,inputToGidsFieldStatus:e=>e==="implicit"||e===void 0?"implicit":os(e)},Symbol.toStringTag,{value:"Module"})),as=Object.freeze(Object.defineProperty({__proto__:null,getGidsStrengthMeterClassNames:e=>P("gids-strength-meter",e)},Symbol.toStringTag,{value:"Module"})),ls=Object.freeze(Object.defineProperty({__proto__:null,getGidsRequirementsMeterLabelClassNames:({status:e},t)=>P("gids-requirements-meter-label",{"gids-requirements-meter-label--error":e==="error","gids-requirements-meter-label--information":e==="information","gids-requirements-meter-label--warning":e==="warning","gids-requirements-meter-label--success":e==="success"},t)},Symbol.toStringTag,{value:"Module"})),cs=Object.freeze(Object.defineProperty({__proto__:null,getGidsRequirementsMeterClassNames:e=>P("gids-requirements-meter",e)},Symbol.toStringTag,{value:"Module"})),{inputToGidsFieldStatusForPassword:ds}=ts,us=Object.freeze(Object.defineProperty({__proto__:null,inputToGidsFieldStatusForPassword:e=>e==="implicit"||e===void 0?"implicit":ds(e)},Symbol.toStringTag,{value:"Module"})),hs=Object.freeze(Object.defineProperty({__proto__:null,getGidsSnackbarContainerClassNames:({appearance:e},t)=>P("gids-snackbar-container",{"gids-snackbar-container--appearance-information":e==="information","gids-snackbar-container--appearance-success":e==="success","gids-snackbar-container--appearance-warning":e==="warning","gids-snackbar-container--appearance-error":e==="error"},t),getSnackbarContainerIconNames:e=>{if(e)switch(e){case"information":return"information";case"warning":return"warning";case"error":return"danger";case"success":return"positive";default:return}}},Symbol.toStringTag,{value:"Module"})),wn=e=>{switch(e){case"bottom-left":return"component-enter-bottom-left";case"bottom-right":return"component-enter-bottom-right";case"middle-left":return"component-enter-middle-left";case"middle-right":return"component-enter-middle-right";case"top-center":return"component-enter-top-center";case"top-left":return"component-enter-top-left";case"top-right":return"component-enter-top-right";default:return"component-enter-bottom-center"}},Sn=e=>{switch(e){case"bottom-left":return"component-exit-bottom-left";case"bottom-right":return"component-exit-bottom-right";case"middle-left":return"component-exit-middle-left";case"middle-right":return"component-exit-middle-right";case"top-center":return"component-exit-top-center";case"top-left":return"component-exit-top-left";case"top-right":return"component-exit-top-right";default:return"component-exit-bottom-center"}},fs=Object.freeze(Object.defineProperty({__proto__:null,getComponentClasses:({position:e,id:t,exitingComponents:n})=>n.includes(t)?Sn(e):wn(e),getComponentEntryClasses:wn,getComponentExitClasses:Sn,getComponentStackClasses:({position:e})=>{switch(e){case"bottom-left":return"common-component-stack component-stack-bottom-left";case"bottom-right":return"common-component-stack component-stack-bottom-right";case"middle-left":return"common-component-stack component-stack-middle-left";case"middle-right":return"common-component-stack component-stack-middle-right";case"top-center":return"common-component-stack component-stack-top-center";case"top-left":return"common-component-stack component-stack-top-left";case"top-right":return"common-component-stack component-stack-top-right";default:return"common-component-stack component-stack-bottom-center"}}},Symbol.toStringTag,{value:"Module"})),ms=Object.freeze(Object.defineProperty({__proto__:null,getGidsNotificationContainerClassNames:({appearance:e},t)=>P("gids-notification-container",{"gids-notification-container--appearance-information":e==="information","gids-notification-container--appearance-success":e==="success","gids-notification-container--appearance-warning":e==="warning","gids-notification-container--appearance-error":e==="error"},t),getNotificationContainerIconNames:e=>{if(e)switch(e){case"information":return"information";case"warning":return"warning";case"error":return"danger";case"success":return"positive";default:return}}},Symbol.toStringTag,{value:"Module"})),gs=Object.freeze(Object.defineProperty({__proto__:null,getGidsScrimClassNames:e=>P("gids-scrim",e)},Symbol.toStringTag,{value:"Module"})),bt=Symbol("defaultPath"),xn=Symbol("pathSet"),vt="gids-asset-paths-set";class ps extends EventTarget{#t=new Map;constructor(){super()}#e(t,n){this.#t.set(t,n)}#n(t){return this.#t.get(t)??null}#i=()=>{this.dispatchEvent(new Event(vt))};haveAssetPathsBeenSet(){return this.#n(xn)!==null}setAssetPaths(t,n){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#e(bt,t);else{for(const i in t)this.#e(i,t[i]);n&&this.#e(bt,n)}this.#e(xn,"true"),setTimeout(this.#i,0)}}getAssetFilePath(t){const n=this.#n(t);if(n===null){const i=this.#n(bt);if(i!==null)return`${i}${i.endsWith("/")?"":"/"}${t}`}return n}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(vt,t,{once:!0}),()=>{this.removeEventListener(vt,t)}}}const yt=Symbol.for("GIDS"),bs=()=>(globalThis[yt]===void 0&&(globalThis[yt]={assetPaths:{}}),globalThis[yt]),vs=e=>{const t=bs().assetPaths;return t[e]===void 0&&(t[e]=new ps),t[e]};function Ve(){return vs("@ganpatiinfo/gids-web-shared")}function ys(){return Ve().haveAssetPathsBeenSet()}function _s(e,t){Ve().setAssetPaths(e,t)}function En(e){return Ve().getAssetFilePath(e)}function ws(e){return Ve().onAssetPathsSet(e)}let Ss=0;const _t=(e,t="gids")=>e||`${t}-${Ss++}`,xs=e=>e.type==="hidden",Es=e=>{if(!(e instanceof HTMLElement))return!1;const{nodeName:t}=e;return!!(["BUTTON","DETAILS","EMBED","IFRAME","KEYGEN","LABEL","SELECT","TEXTAREA"].includes(t)||t==="A"&&e.hasAttribute("href")||e instanceof HTMLInputElement&&!xs(e)||["AUDIO","VIDEO"].includes(t)&&e.hasAttribute("controls")||["IMG","OBJECT"].includes(t)&&e.hasAttribute("usemap")||e.hasAttribute("tabindex")&&e.tabIndex>-1)},Cn=e=>e!==void 0&&(!Array.isArray(e)||e.length>0),Tn={"icons-other.svg":["accessibility","add","remove","announcement","approval","archive","audio","backward","banking","battery","bluetooth","bookmark","bulb","calendar","camera","card","cart","chart","chat","cloud","code","compass","desktop","email","emergency","exchange","finance","fingerprint","flag","folder","forward","gift","globe","goals","happy","hashtag","headphones","history","image","insurance","investment","in-progress","key","link","list","location","lock","map","maximise","microphone","minimise","mobile","moon","network","neutral","ai","new","draft","pending","new-chat","pause","percent","placeholder","play","power","rain","refresh","repeat","sad","save","savings","shield","shuffle","side-navigation","snow","speaker","stop","sun","tablet","temperature","thumbs-down","thumbs-up","travel","trend-down","trend-up","unlock","upset","verified","very-happy","video","volume-down","volume-max","volume-min","volume-mute","volume-up","wallet","wealth","wi-fi","wind"],"icons-core.svg":["arrow-down","arrow-left","arrow-right","arrow-up","attachment","checkmark","chevron-down","chevron-horizontal","chevron-left","chevron-right","chevron-up","chevron-vertical","copy","cross","danger","dashboard","delete","document","download","drag","edit","external","eye","filter","grid","hide","home","information","log-in","log-out","menu","minus","more","notifications","options","phone","plus","positive","printer","question","syncing","search","select","select-all","send","settings","share","star","time","upload","user","users","warning"]},kn=new Map;for(const e in Tn)for(const t of Tn[e])kn.set(t,e);function Cs(e){return kn.get(e)}function On(e,t="regular",n){const i=Cs(e);let s=i??"";return n&&i&&(s=n(i)??i),`${s}#${e}${t==="filled"?"--filled":""}`}const{getGidsIconClassNames:Ts}=zi,Q=({name:e,size:t,appearance:n,alt:i,class:s,titleId:o,src:r,...l})=>{const a=_t(o);let c=r;return c===void 0&&ys()&&(c=On(e,n,En)),g("svg",{ref:u=>{c===void 0&&ws((()=>{(function(d,f,m){if(!d)return;const h=document.createElementNS("http://www.w3.org/2000/svg","use");h.setAttribute("href",On(f,m,En)),d.appendChild(h)})(u,e,n)}))},width:"16",height:"16",class:Ts({size:t},s),role:"img","aria-hidden":i===""?"true":void 0,"aria-labelledby":i===""?void 0:a,...l},i!==""&&g("title",{id:a},i||e),c!==void 0?g("use",{href:c}):null)},he=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let Rn=!1;he&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(he):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let wt=null;const St=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{xt()})):void 0,xt=()=>{if(he===void 0)return!1;const e=(()=>{if(he===void 0)return;const t=[];for(let n=0;n<document.styleSheets.length;n++){const i=document.styleSheets.item(n);if(i)try{let s=-1,o=0;for(let r=0;r<i.cssRules.length;r++){const l=i.cssRules.item(r);if(l?.cssText.startsWith("gids-global-styles-start"))s=r;else if(s>-1){if(l?.cssText.startsWith("gids-global-styles-end")){o=r-s+1;break}t.push(l)}}if(s>-1)return{rulesStartIndex:s,originalRulesCount:o,rules:t,styleSheet:i}}catch(s){if(!(s instanceof DOMException))throw s}}})();if(e!==void 0){const t=e.styleSheet.ownerNode;return St!==void 0&&t!==wt&&(wt&&St.disconnect(),t instanceof Element&&St.observe(t,{childList:!0,characterData:!0,subtree:!0}),wt=t),he.replaceSync((n=>n.rules.map((i=>i.cssText)).join(""))(e)),(n=>{const{rulesStartIndex:i,originalRulesCount:s,styleSheet:o}=n;for(let r=0;r<s;r++)o.deleteRule(i)})(e),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},G=()=>(Rn||(Rn=xt()),he),{getGidsFieldClassNames:ks}=ss,Ln=N(class extends A{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.status="implicit",this._hasLabel=!1,this._controlListenerTargets=[],this._controlTouched=!1,this._handleLabelSlotChange=()=>{this._hasLabel=(this._labelSlot?.assignedElements()?.length??0)>0},this._setLabelSlot=t=>{this._labelSlot=t??void 0,this._handleLabelSlotChange()},this._setControlSlot=t=>{this._controlSlot=t??void 0,this._handleControlSlotChange()},this._handleControlSlotChange=()=>{const t=this._controlSlot?.assignedNodes({flatten:!0})??[],n=this._findTextControl(t);this._attachControlElement(n)},this._handleControlValueInput=t=>{if(!this._controlTouched){const n=t.target;n instanceof HTMLInputElement&&(n.type==="checkbox"||n.type==="radio")&&(this._controlTouched=!0)}this._updateControlValidationState()},this._handleControlBlur=()=>{this._controlTouched=!0,this._updateControlValidationState()},this._handleControlInvalid=()=>{this._controlTouched=!0,this._updateControlValidationState()},this._handleFormReset=()=>{this._controlTouched=!1,this._updateControlValidationState()},this._handleFormSubmit=()=>{this._controlTouched=!0,this._updateControlValidationState()}}_handleStatusChange(){this._isImplicitStatus()||this._controlValidationMessage===void 0?this._updateControlValidationState():this._controlValidationMessage=void 0}connectedCallback(){const e=G();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}componentDidLoad(){setTimeout((()=>{this._handleControlSlotChange(),this._handleLabelSlotChange()}))}async reScanControl(){this._handleControlSlotChange()}disconnectedCallback(){this._detachControlElement(),this._detachFormListeners()}render(){const e=this._hasStatusText(),t=this._controlValidationMessage!==void 0?this._controlValidationMessage:this._shouldRenderExplicitStatusText()?this.statusText:void 0,n=this._getCurrentStatus(),i=["gids-field__status-text"];if(e){const s=this._getStatusModifierClass(n,"gids-field__status-text");s!=null&&i.push(s)}return g(rt,{key:"f1c189d4ab013c55a6c4c28421a43ebb33878fed"},g("div",{key:"473d4ee6ff5c4799eb390dace343c04cdddfc959",class:ks()},g("div",{key:"2c9360422392ee547c88d68251e2c2818d12df9a",class:"gids-field__header",hidden:!this._hasLabelContent()},g("slot",{key:"9aeddb378b273fb98297f4d08bf63506ad12edc2",ref:this._setLabelSlot,name:"label",onSlotchange:this._handleControlSlotChange}),g("div",{key:"6408089c512c2f3a5182f26c396f21e0cd1d55e1",class:"gids-field__count","aria-live":"polite"},this.count)),g("div",{key:"46f8ba80d3bb1b501361121a1ccf6e7aa46b6466",class:"gids-field__control"},g("slot",{key:"472a3796360ffe099e8baef78b7483da66da2f3e",ref:this._setControlSlot,onSlotchange:this._handleControlSlotChange})),g("p",{key:"adc16a67e0e48ac97e593ea65690db81ca1614c9",class:"gids-field__supporting-text",hidden:!this._shouldShowHelperText()},this.helperText),e?g("p",{class:i.join(" "),role:"status","aria-live":"polite"},this._renderStatusIcon(n),t!==void 0?g("span",null,t):null):null))}_hasLabelContent(){return this._hasLabel}_hasHelperText(){return this._hasText(this.helperText)}_shouldShowHelperText(){return!!this._hasHelperText()&&!this._hasStatusText()}_hasStatusText(){return this._isImplicitStatus()?this._controlValidationMessage!==void 0:this._shouldRenderExplicitStatusText()}_shouldRenderExplicitStatusText(){return!this._isImplicitStatus()&&this.status!=="default"&&this._hasText(this.statusText)}_renderStatusIcon(e){if(!this._hasStatusText())return;const t=this._getStatusIconName(e);if(t===void 0)return;const n=["gids-field__status-icon"],i=this._getStatusModifierClass(e,"gids-field__status-icon");i!=null&&n.push(i);let s=e;return e==="error"&&(s="danger"),e==="success"&&(s="positive"),g(Q,{appearance:"filled",size:"sm",alt:"",name:t,class:n.join(" "),style:{"--gidsIcon-color":`var(--gids-color-icon-${s})`}})}_getCurrentStatus(){return this._isImplicitStatus()&&this._controlValidationMessage!=null?"error":this.status??"implicit"}_getStatusIconName(e){if(e!=="implicit")return e==="success"?"positive":e==="error"?"danger":void 0}_isImplicitStatus(){return this.status==="implicit"||this.status===void 0}_hasText(e){return typeof e=="string"&&e.trim().length>0}_getStatusModifierClass(e,t){if(e!=="implicit")return`${t}--${e}`}_attachControlElement(e){if(this._controlElement===e)return this._updateControlValidationState(),void this._attachFormListeners(e?.form??this._el.closest("form"));if(this._detachControlElement(),this._controlElement=e,this._resetControlValidationState(),this._controlListenerTargets=[],e){const t=this._getControlListenerTargets(e);this._controlListenerTargets=t,t.forEach((n=>{n.addEventListener("input",this._handleControlValueInput),n.addEventListener("change",this._handleControlValueInput),n.addEventListener("blur",this._handleControlBlur,!0),n.addEventListener("invalid",this._handleControlInvalid)})),this._attachFormListeners(e.form??this._el.closest("form"))}this._updateControlValidationState()}_detachControlElement(){this._controlListenerTargets.length>0&&(this._controlListenerTargets?.forEach((e=>{e.removeEventListener("input",this._handleControlValueInput),e.removeEventListener("change",this._handleControlValueInput),e.removeEventListener("blur",this._handleControlBlur,!0),e.removeEventListener("invalid",this._handleControlInvalid)})),this._controlListenerTargets=[]),this._controlElement=null,this._resetControlValidationState(),this._detachFormListeners()}_getControlListenerTargets(e){return e instanceof HTMLInputElement&&e.type==="radio"&&e.name!=null?this._getRadioGroupControls(e):[e]}_getRadioGroupControls(e){const t=e.form;if(t&&e.name!=null){const n=t.elements.namedItem(e.name);if(n instanceof RadioNodeList){const i=Array.from(n).filter((s=>s instanceof HTMLInputElement&&s.type==="radio"&&this._el.contains(s)));if(i.length>0)return i}}if(e.name!=null){const n=`input[type="radio"][name="${CSS.escape(e.name)}"]`,i=Array.from(this._el.querySelectorAll(n));if(i.length>0)return i}return[e]}_attachFormListeners(e){e!==void 0&&(e!==null?e!==this._formElement&&(this._detachFormListeners(),this._formElement=e,this._formElement.addEventListener("reset",this._handleFormReset),this._formElement.addEventListener("submit",this._handleFormSubmit)):this._detachFormListeners())}_detachFormListeners(){this._formElement&&(this._formElement.removeEventListener("reset",this._handleFormReset),this._formElement.removeEventListener("submit",this._handleFormSubmit),this._formElement=null)}_findTextControl(e){for(const t of e){if(t.nodeType!==Node.ELEMENT_NODE)continue;const n=t,i=this._asTextControl(n);if(i!==null)return i;const s=n.querySelector("input, textarea");if(s instanceof HTMLInputElement||s instanceof HTMLTextAreaElement)return s}return null}_asTextControl(e){return e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement?e:null}_resetControlValidationState(){this._controlTouched=!1,this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0)}_updateControlValidationState(){if(!this._isImplicitStatus())return void(this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0));const e=this._controlElement;if(!e||e.disabled)return void(this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0));const t=e.validationMessage?.trim()??"";this._controlTouched&&e.matches(":user-invalid")&&t.length>0?this._controlValidationMessage!==t&&(this._controlValidationMessage=t):this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0)}get _el(){return this}static get watchers(){return{status:[{_handleStatusChange:0}]}}static get style(){return".gids-field{display:flex;flex-direction:column;gap:var(--gids-gap-075)}.gids-field__header{display:flex;gap:var(--gids-gap-100);align-items:flex-start}.gids-field__header[hidden]{display:none}.gids-field__count{margin-left:auto;color:var(--gids-color-text-subtle);text-align:right;white-space:nowrap;font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit)}:host([disabled]) .gids-field__count{color:var(--gids-color-text-disabled)}.gids-field__control{display:flex;flex-direction:column;gap:var(--gids-gap-050)}.gids-field__supporting-text,.gids-field__status-text{margin:0;padding-top:var(--gids-padding-vertical-edge-to-element-050);font-family:var(--gids-typography-paragraph-x-small__font-family);font-size:var(--gids-typography-paragraph-x-small__font-size);font-weight:var(--gids-typography-paragraph-x-small__font-weight);letter-spacing:var(--gids-typography-paragraph-x-small__letter-spacing);line-height:var(--gids-typography-paragraph-x-small__line-height);text-transform:var(--gids-typography-paragraph-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-paragraph-x-small__font-variant-caps, inherit)}.gids-field__supporting-text{color:var(--gids-color-text-subtlest)}.gids-field__status-text{display:flex;align-items:flex-start;gap:var(--gids-gap-050)}.gids-field__status-text .gids-field__status-icon{margin-top:max(0px, -1 * (var(--gids-size-160) - var(--gids-typograpy-paragraph-x-small__line-height) * var(--gids-typograpy-paragraph-x-small__font-size)) / 2)}.gids-field__status-text>span{margin-top:max(0px, (var(--gids-size-160) - var(--gids-typograpy-paragraph-x-small__line-height) * var(--gids-typograpy-paragraph-x-small__font-size)) / 2)}.gids-field__status-icon{flex-shrink:0}.gids-field__status-text--information{color:var(--gids-color-text-information);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--information{--gidsIcon-color:$icon-color}.gids-field__status-text--success{color:var(--gids-color-text-positive);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--success{--gidsIcon-color:$icon-color}.gids-field__status-text--warning{color:var(--gids-color-text-warning);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--warning{--gidsIcon-color:$icon-color}.gids-field__status-text--error{color:var(--gids-color-text-danger);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--error{--gidsIcon-color:$icon-color}"}},[257,"gids-field",{disabled:[516],count:[513],helperText:[513,"helper-text"],statusText:[513,"status-text"],status:[513],_controlValidationMessage:[32],_hasLabel:[32],reScanControl:[64]},void 0,{status:[{_handleStatusChange:0}]}]);function Et(){typeof customElements<"u"&&["gids-field"].forEach((e=>{e==="gids-field"&&(customElements.get(e)||customElements.define(e,Ln))}))}Et();const Os=Ln,An=N(class extends A{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow()}connectedCallback(){const e=G();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}render(){return g(Q,{key:"3033afda529cd2143bd0d3c3ca5c985b4b950eae",name:this.name,size:this.size,appearance:this.appearance,alt:this.alt,titleId:this.titleId})}get _el(){return this}static get style(){return".gids-icon{color:var(--gidsIcon-color, var(--gids-color-icon-default));fill:var(--gidsIcon-color, var(--gids-color-icon-default));width:auto;height:var(--gidsIcon-height, 100%);flex-shrink:0}.gids-icon--xs{--gidsIcon-height:var(--gids-size-120)}.gids-icon--sm{--gidsIcon-height:var(--gids-size-160)}.gids-icon--md{--gidsIcon-height:var(--gids-size-240)}.gids-icon--lg{--gidsIcon-height:var(--gids-size-320)}"}},[1,"gids-icon",{name:[1],size:[1],appearance:[1],alt:[1],titleId:[1,"title-id"]}]);function Rs(){typeof customElements<"u"&&["gids-icon"].forEach((e=>{e==="gids-icon"&&(customElements.get(e)||customElements.define(e,An))}))}Rs();const Ls=An,{getGidsSpinnerControlClassNames:As}=Gi,{calculateStrokeDasharray:$s,thickness:$n,radius:Nn,centerPosition:Ge,viewBox:Ns}=Yi,Mn=({size:e,indeterminate:t,value:n,max:i,...s})=>{let o;return t||(o={strokeDashArray:$s(n,i||0),strokeDashoffset:"0"}),g("svg",{class:As({size:e,indeterminate:t,value:n}),viewBox:Ns,...s},g("circle",{class:"gids-spinner-control__track",cx:Ge,cy:Ge,r:Nn,"stroke-width":$n}),g("circle",{style:o,class:"gids-spinner-control__progress",cx:Ge,cy:Ge,r:Nn,"stroke-width":$n}))},Pn=N(class extends A{constructor(e){super(),e!==!1&&this.__registerHost(),this.#e={},this._focusInput=t=>{const n=t.target;n===this.#t||this._isWithinInteractiveElement(n)||this.#t?.focus()},this._handleInputFocusAndBlur=t=>{this._el.dispatchEvent(new FocusEvent(t.type,{relatedTarget:t.relatedTarget}))}}get defaultValue(){return this.#t?.defaultValue??this.#e.defaultValue??""}set defaultValue(e){this.#t?this.#t.defaultValue=e:this.#e.defaultValue=e}get value(){return this.#t?.value??this.#e.value??this.#e.defaultValue??""}set value(e){this.#t?this.#t.value=e:this.#e.value=e}#t;#e;_isWithinInteractiveElement(e){if(e===null||e===this._el||!this._el.contains(e))return!1;if(Es(e))return!0;{const t=e.parentElement;if(t)return this._isWithinInteractiveElement(t)}return!1}connectedCallback(){this._el.addEventListener("click",this._focusInput)}disconnectedCallback(){this._el.removeEventListener("click",this._focusInput)}render(){return g(Se,{key:"c1e035111a8a80ef0b442bc0298785f0c7445113"},g("slot",{key:"49bd52d5bbc7c9b962b27f6404ca9817de699b31",name:"leadingIcon"}),this.leadingLabel&&g("span",{key:"2863a61da1f009b7287af508d9809d66787ddaf7",class:"gids-input__label"},this.leadingLabel),g("slot",{key:"f74e8993fb8b1dd186a53c4557ceffac681f2881",name:"leadingAccessory"}),g("input",{key:"2bc7f84858a8533f33c66834ad212c38ad698075",...this.inputProps,ref:e=>{this.#t=e,this.#e.value!==void 0&&(this.#t.value=this.#e.value,delete this.#e.value),this.#e.defaultValue!==void 0&&(this.#t.defaultValue=this.#e.defaultValue,delete this.#e.defaultValue)},class:"gids-input__control",name:this.name,disabled:this.disabled,readOnly:this.readOnly,required:this.required,onFocus:this._handleInputFocusAndBlur,onBlur:this._handleInputFocusAndBlur}),g("slot",{key:"2116db712ac02853ae4974b4ad618b5eee372b3f",name:"trailingAccessory"}),this.trailingLabel&&g("span",{key:"35dc9b1c2bd2ef493b0ce1a602688f41854c922d",class:"gids-input__label"},this.trailingLabel),g("slot",{key:"6cc1b37e9a0b979f04de753d8527aaae2970762c",name:"trailingIcon"}),this.status==="incomplete"&&g(Q,{key:"8c963877cee9bc941b1236a6b647fc1790a41cdc",name:"warning",appearance:"filled",class:"gids-input__warning-icon"}),this.status==="complete"&&g(Q,{key:"a2c401261ff8defa2802b5bbc336a6b4cc177ff4",name:"positive",appearance:"filled",class:"gids-input__positive-icon"}),this.loading&&g(Mn,{key:"4dd22cd62d87ff444794fc8f1c4f0cc78e14738a",size:"md",indeterminate:!0}))}get _el(){return this}},[260,"gids-input",{appearance:[513],defaultValue:[6657,"default-value"],disabled:[516],inputProps:[16],leadingLabel:[513,"leading-label"],trailingLabel:[513,"trailing-label"],loading:[516],name:[513],readOnly:[516,"readonly"],required:[516],status:[513],value:[6145]}]);function Ct(){typeof customElements<"u"&&["gids-input"].forEach((e=>{e==="gids-input"&&(customElements.get(e)||customElements.define(e,Pn))}))}Ct();const Ms=Pn,Tt=e=>e===null?null:e?.parentElement?.closest("gids-overlay-provider")||null,Fn=({componentName:e="snackbar",timerInMs:t})=>t&&Number(t)>0?t:(n=>{const i=(()=>{const s=document.querySelector("gids-overlay-provider");if(!s||!s.shadowRoot)return 1;const o=s.shadowRoot.querySelectorAll(".gids-snackbar-container__content"),r=o[o.length-1];if(!r)return 1;const l=r.offsetHeight,a=getComputedStyle(r).lineHeight,c=a.endsWith("px")?parseFloat(a):0;return Math.ceil(c?l/c:1)})();return i===2?n==="snackbar"?5e3:8e3:i>=3?n==="snackbar"?7e3:1e4:n==="snackbar"?3e3:6e3})(e),In=N(class extends A{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.pronunciation="standard",this.appearance="default",this.show=!1,this.position="top-right"}async showNotification(){const e=Tt(this._el);e&&this.show&&e.queueComponent({notificationTitle:this.notificationTitle,message:this.message,pronunciation:this.pronunciation,appearance:this.appearance,buttonLabel:this.buttonLabel,onButtonClick:this.onButtonClick,position:this.position,componentName:"notification",timerInMs:this.timerInMs}),this.onQueueNotification&&this.onQueueNotification(),this.show=!1}render(){return null}get _el(){return this}static get watchers(){return{show:[{showNotification:0}]}}},[1,"gids-notification",{notificationTitle:[513,"notification-title"],message:[513],pronunciation:[513],appearance:[513],show:[516],onQueueNotification:[16],buttonLabel:[513,"button-label"],position:[513],timerInMs:[514,"timer-in-ms"],onButtonClick:[16]},void 0,{show:[{showNotification:0}]}]);function Ps(){typeof customElements<"u"&&["gids-notification"].forEach((e=>{e==="gids-notification"&&(customElements.get(e)||customElements.define(e,In))}))}Ps();const Fs=In,{showGidsOverflowContainerBottomShadow:qn,showGidsOverflowContainerTopShadow:Is}=ns,Dn=N(class extends A{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.shadowLocation="bottom"}connectedCallback(){const e=G();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}componentDidLoad(){this._textArea=this._el.shadowRoot?.querySelector(".gids-overflow-container__text-area"),qn(this.shadowLocation)&&this._textArea.scrollHeight>this._textArea.offsetHeight&&this._el.style.setProperty("--gidsOverflowContainer-after-opacity","1")}calculateShadows(){const e=this._textArea.scrollTop<=0?0:this._textArea.scrollTop;this._textArea.scrollTop+this._textArea.offsetHeight>=this._textArea.scrollHeight?this._el.style.setProperty("--gidsOverflowContainer-after-opacity","0"):e!==0?e>0&&(Is(this.shadowLocation)&&this._el.style.setProperty("--gidsOverflowContainer-before-opacity",""+Math.min(e/20,1)),qn(this.shadowLocation)&&this._el.style.setProperty("--gidsOverflowContainer-after-opacity",""+Math.min((this._textArea.scrollHeight-(this._textArea.scrollTop+this._textArea.offsetHeight))/20,1))):this._el.style.setProperty("--gidsOverflowContainer-after-opacity","0")}render(){return g("div",{key:"0a7916237558157e7122aeb05de6bf2eaaf5df77",class:"gids-overflow-container__text-area",onScroll:this.calculateShadows.bind(this)},g("slot",{key:"fda73f846c0ec7371d57b7a8e379c028e0feaa98"}))}get _el(){return this}},[257,"gids-overflow-container",{shadowLocation:[513,"shadow-location"]}]);function qs(){typeof customElements<"u"&&["gids-overflow-container"].forEach((e=>{e==="gids-overflow-container"&&(customElements.get(e)||customElements.define(e,Dn))}))}qs();const Ds=Dn,{getGidsButtonClassNames:js}=Bi,Ee=({appearance:e,size:t,destructive:n,positive:i,loading:s,width:o,leadingIcon:r,trailingIcon:l,as:a,disabled:c,class:u,forceIconOnly:d=!1,...f},m)=>{const h=a||"button",y=t==="lg"||t===void 0?"md":t;return h!=="button"||"type"in f||(f.type="button"),g(h,{class:js({appearance:e,size:t,destructive:n,loading:s,width:o,positive:i},d||m.length===0&&Cn(r)&&!Cn(l),u),disabled:h==="button"?c:void 0,...f},g("span",{class:"gids-button__content"},r,m),s&&g(Mn,{size:y,indeterminate:!0}),l)},{getGidsSnackbarContainerClassNames:Vs,getSnackbarContainerIconNames:Gs}=hs,zs=({appearance:e="default",children:t,button:n,class:i,...s})=>{const o=Gs(e);return g("div",{...s,class:Vs({appearance:e},i)},g("div",{class:"gids-snackbar-container__content"},e!=="default"&&o!=null?g(Q,{name:o,alt:"",appearance:"filled",size:"md",class:"gids-snackbar-container__icon"}):null,typeof t=="string"?g("p",null,t):t),n)},{getGidsNotificationContainerClassNames:Bs,getNotificationContainerIconNames:Hs}=ms,Ws=({notificationTitle:e,children:t,button:n,appearance:i="default",pronunciation:s="standard",onCloseNotificationClick:o,class:r,...l})=>{const a=Hs(i);return g("div",{class:Bs({appearance:i},r),...l},i!=="default"&&a?g("div",{class:"gids-notification-container__leading-icon-wrapper"},g(Q,{size:"md",name:a,alt:"",appearance:"filled"})):null,g("div",{class:"gids-notification-container__content-wrapper"},g("div",{class:"gids-notification-container__top-content"},g("div",{class:"gids-notification-container__text-content"},e!=null&&e!==""?g("span",{class:"gids-notification-container__title"},e):null,t?typeof t=="string"?g("p",null,t):t:null),s==="standard"?g("div",{class:"gids-notification-container__cross-btn-wrapper"},g(Ee,{size:"sm",appearance:"subtle",width:"intrinsic",leadingIcon:g(Q,{name:"cross",size:"md",appearance:"regular"}),onClick:o})):null),n?g("div",{class:"gids-notification-container__bottom-content"},n):null))},{getComponentClasses:Qs,getComponentStackClasses:Us}=fs,jn=N(class extends A{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this._parentOverlayProvider=null,this._componentQueue=[],this._allowedComponentQueue=[],this._exitingComponents=[],this._renderSnackbar=(t,n)=>{const{id:i,message:s,appearance:o,buttonLabel:r,onButtonClick:l}=t;return g(zs,{key:i,class:n,children:s,appearance:o,button:r!=null&&r!==""?g(Ee,{appearance:"subtle",onClick:l},r):void 0})},this._renderNotification=(t,n)=>{const{id:i,notificationTitle:s,message:o,pronunciation:r,appearance:l,buttonLabel:a,onButtonClick:c,timerInMs:u}=t;return g(Ws,{key:i,class:n,notificationTitle:s,children:o,pronunciation:r,appearance:l,onCloseNotificationClick:()=>this.removeComponent(t,u||0,!0),button:a!=null&&a!==""?g(Ee,{appearance:"default",size:"sm",onClick:c},a):void 0})},this._renderComponent=t=>{const{componentName:n,position:i="bottom-center",id:s}=t,o=Qs({position:i,id:s,exitingComponents:this._exitingComponents});return n==null||n==="snackbar"?this._renderSnackbar(t,o):n==="notification"?this._renderNotification(t,o):null}}connectedCallback(){const e=G();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e),this._parentOverlayProvider=Tt(this._el)}_isRoot(){return this._parentOverlayProvider===null}async getRootOverlayProvider(){return this._isRoot()?this._el:this._parentOverlayProvider}autoHide(e){return new Promise((t=>{const n=setTimeout((()=>(clearTimeout(n),t({isTimeout:!0}))),e)}))}async _queueSnackbar(e){const{appearance:t,message:n,buttonLabel:i,onButtonClick:s,position:o,componentName:r,...l}=e,a={id:""+(Date.now()+Math.random()),message:n,appearance:t,buttonLabel:i,onButtonClick:s,position:o,componentName:r,...l};this._componentQueue=[...this._componentQueue,a],this.processSingleComponentQueue()}async _queueNotification(e){const{appearance:t,notificationTitle:n,pronunciation:i,message:s,buttonLabel:o,onButtonClick:r,position:l,componentName:a,...c}=e,u={id:""+(Date.now()+Math.random()),notificationTitle:n,message:s,pronunciation:i,appearance:t,buttonLabel:o,onButtonClick:r,position:l,componentName:a,...c};this._componentQueue=[...this._componentQueue,u],this.processMultiComponentQueue()}async queueComponent(e){if(await this._isRoot()){const{componentName:t}=e;t!=null&&t!=="snackbar"||this._queueSnackbar(e),t==="notification"&&this._queueNotification(e)}else(await this.getRootOverlayProvider()).queueComponent(e)}async removeComponent(e,t,n){return n||await this.autoHide(t),this._exitingComponents=[...this._exitingComponents,e.id],new Promise((i=>{setTimeout((()=>{this._componentQueue=this._componentQueue.filter((s=>s.id!==e.id)),this._exitingComponents=this._exitingComponents.filter((s=>s!==e.id)),this._allowedComponentQueue=[],i()}),500)}))}async processSingleComponentQueue(){if(this._componentQueue.length===0)return;const e=this._componentQueue[0];if(!e)return;this._allowedComponentQueue=[e],await new Promise((n=>requestAnimationFrame((()=>n()))));const t=Fn({componentName:e?.componentName??"snackbar",timerInMs:e?.timerInMs??0});await this.removeComponent(e,t,!1),this.processSingleComponentQueue()}async processMultiComponentQueue(){const e=this._componentQueue;e.length!==0&&(this._allowedComponentQueue=e,await new Promise((t=>requestAnimationFrame((()=>t())))),this._allowedComponentQueue.map((async t=>{const n=Fn({componentName:t?.componentName??"snackbar",timerInMs:t?.timerInMs??0});await this.removeComponent(t,n,!1)})),this.processMultiComponentQueue())}render(){const e=this._allowedComponentQueue[0]?.position||"bottom-center";return g(Se,{key:"cfacf71807978b22d6f2a9e33c0518e9aefc3a58"},g("slot",{key:"4b4fa08f00a46a95ed4af543f85aad06affee847"}),this._isRoot()?g("div",{class:Us({position:e})},[...this._allowedComponentQueue].reverse().map((t=>this._renderComponent(t)))):null)}get _el(){return this}static get style(){return".common-component-stack{display:flex;flex-direction:column;position:fixed;gap:var(--gids-gap-200);min-width:var(--gids-width-2-xs);max-width:var(--gids-width-md);width:100%}.component-stack-bottom-left{justify-self:left;bottom:var(--gids-padding-vertical-edge-to-element-250);left:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-bottom-right{justify-self:right;bottom:var(--gids-padding-vertical-edge-to-element-250);right:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-middle-left{top:50%;justify-self:left;align-self:center;left:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-middle-right{top:50%;justify-self:right;align-self:center;right:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-top-center{justify-self:center;top:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-top-left{justify-self:left;top:var(--gids-padding-vertical-edge-to-element-250);left:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-top-right{justify-self:right;top:var(--gids-padding-vertical-edge-to-element-250);right:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-bottom-center{justify-self:center;bottom:var(--gids-padding-vertical-edge-to-element-250)}.component-enter-bottom-left{animation-name:left-to-right-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-bottom-right{animation-name:right-to-left-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-middle-left{animation-name:left-to-right-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-middle-right{animation-name:right-to-left-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-top-center{animation-name:slide-up-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-top-left{animation-name:left-to-right-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-top-right{animation-name:right-to-left-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-bottom-center{animation-name:slide-up-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-bottom-left{animation-name:right-to-left-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-bottom-right{animation-name:left-to-right-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-middle-left{animation-name:right-to-left-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-middle-right{animation-name:left-to-right-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-top-center{animation-name:slide-down-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-top-left{animation-name:right-to-left-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-top-right{animation-name:left-to-right-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-bottom-center{animation-name:slide-down-invisible;animation-duration:0.3s;animation-fill-mode:forwards}@keyframes slide-up-visible{0%{opacity:0;transform:translateY(100%)}100%{opacity:1;transform:translateY(0)}}@keyframes slide-down-invisible{0%{opacity:1;transform:translateY(0)}100%{opacity:0;transform:translateY(100%)}}@keyframes slide-up-invisible{0%{opacity:0;transform:translateY(-100%)}100%{opacity:1;transform:translateY(0)}}@keyframes slide-down-visible{0%{opacity:1;transform:translateY(0)}100%{opacity:0;transform:translateY(-100%)}}@keyframes left-to-right-visible{0%{opacity:0;transform:translateX(-100%)}100%{opacity:1;transform:translateX(0)}}@keyframes right-to-left-invisible{0%{opacity:1;transform:translateX(0)}100%{opacity:0;transform:translateX(-100%)}}@keyframes right-to-left-visible{0%{opacity:0;transform:translateX(100%)}100%{opacity:1;transform:translateX(0)}}@keyframes left-to-right-invisible{0%{opacity:1;transform:translateX(0)}100%{opacity:0;transform:translateX(100%)}}"}},[257,"gids-overlay-provider",{_componentQueue:[32],_allowedComponentQueue:[32],_exitingComponents:[32],queueComponent:[64]}]);function Xs(){typeof customElements<"u"&&["gids-overlay-provider"].forEach((e=>{e==="gids-overlay-provider"&&(customElements.get(e)||customElements.define(e,jn))}))}Xs();const Ys=jn,{getIndicatorText:Ks}=Qi,{getGidsLabelClassNames:Zs}=Vi,Vn=({disabled:e,fieldRequirement:t,fieldRequirementOptionalText:n,fieldRequirementRequiredText:i,info:s,htmlFor:o,labelId:r,class:l,isLabelSentence:a,...c},u)=>{const d=Ks({children:u,fieldRequirement:t,fieldRequirementOptionalText:n,fieldRequirementRequiredText:i,isLabelSentence:a});return g("div",{class:Zs({disabled:e},l),...c},g("label",{htmlFor:o,id:r},u,d&&g("span",{class:"gids-label__field-requirement"},d)),s)},{getGidsDismissButtonClassNames:Js}=is,Gn=({appearance:e="subtle",size:t="md",disabled:n=!1,class:i,onPressDismiss:s,label:o,...r})=>g("button",{class:Js({appearance:e,size:t},i),onClick:s,disabled:n,"aria-label":o,...r},g(Q,{name:"cross",appearance:"regular"})),{getGidsStrengthMeterClassNames:eo}=as,{getStrengthMeterScore:to,getColorModifierByScore:no}=Ki,io=({text:e,textMinLength:t,meterRules:n=["1-uppercase","1-lowercase","1-digit","1-special-character","include-min-length"],class:i})=>{const s=(o,r,l)=>g("div",{key:o,class:["gids-strength-meter__strength-"+o,l?"is-active":"",l?r:""].filter(Boolean).join(" ")});return n.length>0?g("div",{class:eo(i)},(()=>{const o=n.length,r=to({text:e,textMinLength:t,meterRules:n}),l=no({textScore:r,maxScore:o});return Array.from({length:o},((a,c)=>{const u=c+1,d=u<=r;return n[u]==="include-min-length"?xe({requirementRule:"include-min-length",textMinLength:t})?s(u,l,d):null:s(u,l,d)}))})()):null},{getGidsRequirementsMeterLabelClassNames:so}=ls,{getRequirementsMeterLabelLeadingIcon:oo}=es,ro=e=>{const{label:t,status:n="default",leadingIconVisible:i=!0,class:s}=e,o=oo(n);return g("div",{class:so({status:n},s)},i&&n&&o?g(Q,{name:o,size:"sm",appearance:"filled"}):null,t&&t!==""?g("span",null,t):null)},{checkRequirementRuleSatisfied:ao}=Ji,{getGidsRequirementsMeterClassNames:lo}=cs,co=({requirements:e=[],text:t,textMinLength:n,class:i})=>{const s=(o,r)=>g(ro,{status:r?"success":"error",label:o.requirementText});return g("div",{class:lo(i)},e.map((o=>{if(o?.requirementText!=null&&o?.requirementRule!=null){const r=ao({rule:o.requirementRule,textMinLength:n,text:t});return o.requirementRule==="include-min-length"?xe({requirementRule:o.requirementRule,textMinLength:n})===!0?s(o,r):null:s(o,r)}return null})))},{inputToGidsFieldStatusForPassword:uo}=us,zn=N(class extends A{constructor(e){super(),e!==!1&&this.__registerHost(),this.gidsPasswordFieldClear=Ne(this,"gidsPasswordFieldClear"),this.gidsPasswordFieldRevealPassword=Ne(this,"gidsPasswordFieldRevealPassword"),this.isPasswordRevealed=!1,this.meterRules=[],this.requirementsMeterRequirements=[],this.requirements=[],this.#t=_t(),this._handleDismiss=()=>{const t=this.#e?.querySelector("input.gids-input__control");t&&(t.value="",t.dispatchEvent(new globalThis.Event("input",{bubbles:!0}))),this.value="",this.gidsPasswordFieldClear.emit()},this._handleRevealPassword=()=>{const t=this.#e?.querySelector("input.gids-input__control");this.isPasswordRevealed=t?.value!=null&&t.value!==""&&this.isPasswordRevealed===!1,this._el.dispatchEvent(new CustomEvent("gidsPasswordFieldRevealPassword",{detail:{passwordRevealed:this.isPasswordRevealed},bubbles:!0,composed:!0}))},this._handleInput=t=>{this.value=t.target?.value},this._handleInputFocusAndBlur=t=>{this._el.dispatchEvent(new FocusEvent(t.type,{relatedTarget:t.relatedTarget}))},this._isRequirementAndStrengthMeterVisible=()=>{const t=this.requirements;return!!(t&&t.length>0)},this._handleRequirementsMeter=()=>{const t=this._isRequirementAndStrengthMeterVisible();this.requirementsMeterRequirements=this.requirements&&this.requirements.length>0?this.requirements:[],this.meterRules=t?gt(this.requirements):[]}}_startSlotContentObserver(){this._slotContentObserver=new MutationObserver((()=>{hn(this)})),this._slotContentObserver.observe(this._el,{childList:!0,subtree:!1,attributes:!0,attributeFilter:["slot"]})}handleRequirementsChange(e){e===void 0&&(this.requirements=pt(this.textMinLength).defaultRequirementsMeterRules),this._handleRequirementsMeter()}componentWillLoad(){this.requirements||(this.requirements=pt(this.textMinLength).defaultRequirementsMeterRules),this._handleRequirementsMeter()}connectedCallback(){const e=G();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e),this._handleRequirementsMeter(),this._startSlotContentObserver()}disconnectedCallback(){this._slotContentObserver?.disconnect(),this._slotContentObserver=void 0}#t;#e;render(){const{id:e,...t}=this.inputProps??{},n=e??this.#t,i=this.showClearButton&&this.value!==void 0&&this.value.length>0,s=this.showRevealPasswordButton,o={...t},r=o?.placeholder!==void 0&&o.placeholder!==null&&o.placeholder!=""?o.placeholder:"Enter password",l=this.isPasswordRevealed,a=this.meterRules,c=this.textMinLength!==void 0?this.textMinLength:8;return g(Se,{key:"674d6baf90ed0a3b9bf6821fb288972ffe255909"},g("gids-field",{key:"2b1f7f67ef3616edf29843b663c4e1efa8ce416a",disabled:this.disabled,count:void 0,helperText:this.helperText,statusText:this.statusText,status:uo(this.status)},g(Vn,{key:"ccd09eba06b8876d216181b8dd7fbcb1ff742d86",slot:"label",disabled:this.disabled,info:g("slot",{name:"info"}),fieldRequirement:this.fieldRequirement,fieldRequirementOptionalText:this.fieldRequirementOptionalText,fieldRequirementRequiredText:this.fieldRequirementRequiredText,isLabelSentence:this.isLabelSentence,htmlFor:n},this.label),g("gids-input",{key:"f9a8c8f13347b5dd7620e8498aeb85ec646f000f",ref:u=>this.#e=u,appearance:"default",status:this.status,loading:this.loading,value:this.value,defaultValue:this.defaultValue,name:this.name,required:this.required,disabled:this.disabled,readOnly:this.readOnly,leadingLabel:void 0,trailingLabel:void 0,onFocus:this._handleInputFocusAndBlur,onBlur:this._handleInputFocusAndBlur,onInput:this._handleInput,inputProps:{...o,placeholder:r,type:l?"text":"password",id:n,maxLength:this.maxLength}},g("slot",{key:"56c43774f755d7ae1ac6e633e39426d2b489414a",name:"leadingIcon"}),g("slot",{key:"1e964257af8f053e0d7c9de51fc0ec48a38b6d18",name:"leadingAccessory"}),g("div",{key:"f453197e76a4c8c01f1fa12a6f0c551a14f71f5d",slot:"trailingAccessory",class:"gids-password-field__trailing-accessory"},i&&g(Gn,{key:"3127641007c6eb5db4e9b8c6bd521e6cdf80e59b",label:"clear text",size:"lg",onPressDismiss:this._handleDismiss}),s&&g(Ee,{key:"bc537fa18fabe13e16ec2a7c8b5f4611e589c4c7",appearance:"default",size:"xs",width:"intrinsic",disabled:this.disabled,onClick:this._handleRevealPassword},l?"Hide":"Show")))),g("div",{key:"355033afd60090f7b04e48db5c1d675f29663e18",class:"gids-password-field__meters-container"},g(io,{key:"fb407fffb5de91b9bc30c1e7593fee01b5fa2a09",meterRules:a,text:this.value,textMinLength:c}),g(co,{key:"6888d147c99ea7902954e55ad91a5d64d7c1a031",requirements:this.requirementsMeterRequirements,text:this.value,textMinLength:c})))}get _el(){return this}static get watchers(){return{requirements:[{handleRequirementsChange:0}],textMinLength:[{handleRequirementsChange:0}]}}},[260,"gids-password-field",{label:[513],showClearButton:[516,"show-clear-button"],showRevealPasswordButton:[516,"show-reveal-password-button"],helperText:[513,"helper-text"],statusText:[513,"status-text"],status:[513],loading:[516],name:[513],required:[516],maxLength:[514,"maxlength"],value:[1],defaultValue:[513,"default-value"],disabled:[516],readOnly:[516,"readonly"],inputProps:[16],fieldRequirement:[513,"field-requirement"],fieldRequirementOptionalText:[1,"field-requirement-optional-text"],fieldRequirementRequiredText:[1,"field-requirement-required-text"],isLabelSentence:[16],textMinLength:[514,"text-min-length"],requirements:[16],isPasswordRevealed:[32],meterRules:[32],requirementsMeterRequirements:[32]},void 0,{requirements:[{handleRequirementsChange:0}],textMinLength:[{handleRequirementsChange:0}]}]);function ho(){typeof customElements<"u"&&["gids-password-field","gids-field","gids-input"].forEach((e=>{switch(e){case"gids-password-field":customElements.get(e)||customElements.define(e,zn);break;case"gids-field":customElements.get(e)||Et();break;case"gids-input":customElements.get(e)||Ct()}}))}ho();const fo=zn,fe=Math.min,ne=Math.max,ze=Math.round,Be=Math.floor,z=e=>({x:e,y:e}),mo={left:"right",right:"left",bottom:"top",top:"bottom"};function kt(e,t,n){return ne(e,fe(t,n))}function Ce(e,t){return typeof e=="function"?e(t):e}function ie(e){return e.split("-")[0]}function Te(e){return e.split("-")[1]}function Bn(e){return e==="x"?"y":"x"}function Ot(e){return e==="y"?"height":"width"}function Z(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Rt(e){return Bn(Z(e))}function go(e,t,n){n===void 0&&(n=!1);const i=Te(e),s=Rt(e),o=Ot(s);let r=s==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(r=He(r)),[r,He(r)]}function po(e){const t=He(e);return[Lt(e),t,Lt(t)]}function Lt(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Hn=["left","right"],Wn=["right","left"],bo=["top","bottom"],vo=["bottom","top"];function yo(e,t,n){switch(e){case"top":case"bottom":return n?t?Wn:Hn:t?Hn:Wn;case"left":case"right":return t?bo:vo;default:return[]}}function _o(e,t,n,i){const s=Te(e);let o=yo(ie(e),n==="start",i);return s&&(o=o.map(r=>r+"-"+s),t&&(o=o.concat(o.map(Lt)))),o}function He(e){const t=ie(e);return mo[t]+e.slice(t.length)}function wo(e){return{top:0,right:0,bottom:0,left:0,...e}}function Qn(e){return typeof e!="number"?wo(e):{top:e,right:e,bottom:e,left:e}}function We(e){const{x:t,y:n,width:i,height:s}=e;return{width:i,height:s,top:n,left:t,right:t+i,bottom:n+s,x:t,y:n}}function Un(e,t,n){let{reference:i,floating:s}=e;const o=Z(t),r=Rt(t),l=Ot(r),a=ie(t),c=o==="y",u=i.x+i.width/2-s.width/2,d=i.y+i.height/2-s.height/2,f=i[l]/2-s[l]/2;let m;switch(a){case"top":m={x:u,y:i.y-s.height};break;case"bottom":m={x:u,y:i.y+i.height};break;case"right":m={x:i.x+i.width,y:d};break;case"left":m={x:i.x-s.width,y:d};break;default:m={x:i.x,y:i.y}}switch(Te(t)){case"start":m[r]-=f*(n&&c?-1:1);break;case"end":m[r]+=f*(n&&c?-1:1);break}return m}async function So(e,t){var n;t===void 0&&(t={});const{x:i,y:s,platform:o,rects:r,elements:l,strategy:a}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:m=0}=Ce(t,e),h=Qn(m),_=l[f?d==="floating"?"reference":"floating":d],p=We(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(_)))==null||n?_:_.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(l.floating)),boundary:c,rootBoundary:u,strategy:a})),v=d==="floating"?{x:i,y:s,width:r.floating.width,height:r.floating.height}:r.reference,b=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l.floating)),S=await(o.isElement==null?void 0:o.isElement(b))?await(o.getScale==null?void 0:o.getScale(b))||{x:1,y:1}:{x:1,y:1},w=We(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:v,offsetParent:b,strategy:a}):v);return{top:(p.top-w.top+h.top)/S.y,bottom:(w.bottom-p.bottom+h.bottom)/S.y,left:(p.left-w.left+h.left)/S.x,right:(w.right-p.right+h.right)/S.x}}const xo=50,Eo=async(e,t,n)=>{const{placement:i="bottom",strategy:s="absolute",middleware:o=[],platform:r}=n,l=r.detectOverflow?r:{...r,detectOverflow:So},a=await(r.isRTL==null?void 0:r.isRTL(t));let c=await r.getElementRects({reference:e,floating:t,strategy:s}),{x:u,y:d}=Un(c,i,a),f=i,m=0;const h={};for(let y=0;y<o.length;y++){const _=o[y];if(!_)continue;const{name:p,fn:v}=_,{x:b,y:S,data:w,reset:x}=await v({x:u,y:d,initialPlacement:i,placement:f,strategy:s,middlewareData:h,rects:c,platform:l,elements:{reference:e,floating:t}});u=b??u,d=S??d,h[p]={...h[p],...w},x&&m<xo&&(m++,typeof x=="object"&&(x.placement&&(f=x.placement),x.rects&&(c=x.rects===!0?await r.getElementRects({reference:e,floating:t,strategy:s}):x.rects),{x:u,y:d}=Un(c,f,a)),y=-1)}return{x:u,y:d,placement:f,strategy:s,middlewareData:h}},Co=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:i,placement:s,rects:o,platform:r,elements:l,middlewareData:a}=t,{element:c,padding:u=0}=Ce(e,t)||{};if(c==null)return{};const d=Qn(u),f={x:n,y:i},m=Rt(s),h=Ot(m),y=await r.getDimensions(c),_=m==="y",p=_?"top":"left",v=_?"bottom":"right",b=_?"clientHeight":"clientWidth",S=o.reference[h]+o.reference[m]-f[m]-o.floating[h],w=f[m]-o.reference[m],x=await(r.getOffsetParent==null?void 0:r.getOffsetParent(c));let C=x?x[b]:0;(!C||!await(r.isElement==null?void 0:r.isElement(x)))&&(C=l.floating[b]||o.floating[h]);const O=S/2-w/2,R=C/2-y[h]/2-1,F=fe(d[p],R),Re=fe(d[v],R),ae=F,Le=C-y[h]-Re,L=C/2-y[h]/2+O,le=kt(ae,L,Le),Y=!a.arrow&&Te(s)!=null&&L!==le&&o.reference[h]/2-(L<ae?F:Re)-y[h]/2<0,j=Y?L<ae?L-ae:L-Le:0;return{[m]:f[m]+j,data:{[m]:le,centerOffset:L-le-j,...Y&&{alignmentOffset:j}},reset:Y}}}),To=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,i;const{placement:s,middlewareData:o,rects:r,initialPlacement:l,platform:a,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:y=!0,..._}=Ce(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const p=ie(s),v=Z(l),b=ie(l)===l,S=await(a.isRTL==null?void 0:a.isRTL(c.floating)),w=f||(b||!y?[He(l)]:po(l)),x=h!=="none";!f&&x&&w.push(..._o(l,y,h,S));const C=[l,...w],O=await a.detectOverflow(t,_),R=[];let F=((i=o.flip)==null?void 0:i.overflows)||[];if(u&&R.push(O[p]),d){const L=go(s,r,S);R.push(O[L[0]],O[L[1]])}if(F=[...F,{placement:s,overflows:R}],!R.every(L=>L<=0)){var Re,ae;const L=(((Re=o.flip)==null?void 0:Re.index)||0)+1,le=C[L];if(le&&(!(d==="alignment"?v!==Z(le):!1)||F.every(V=>Z(V.placement)===v?V.overflows[0]>0:!0)))return{data:{index:L,overflows:F},reset:{placement:le}};let Y=(ae=F.filter(j=>j.overflows[0]<=0).sort((j,V)=>j.overflows[1]-V.overflows[1])[0])==null?void 0:ae.placement;if(!Y)switch(m){case"bestFit":{var Le;const j=(Le=F.filter(V=>{if(x){const ee=Z(V.placement);return ee===v||ee==="y"}return!0}).map(V=>[V.placement,V.overflows.filter(ee=>ee>0).reduce((ee,Sr)=>ee+Sr,0)]).sort((V,ee)=>V[1]-ee[1])[0])==null?void 0:Le[0];j&&(Y=j);break}case"initialPlacement":Y=l;break}if(s!==Y)return{reset:{placement:Y}}}return{}}}},ko=new Set(["left","top"]);async function Oo(e,t){const{placement:n,platform:i,elements:s}=e,o=await(i.isRTL==null?void 0:i.isRTL(s.floating)),r=ie(n),l=Te(n),a=Z(n)==="y",c=ko.has(r)?-1:1,u=o&&a?-1:1,d=Ce(t,e);let{mainAxis:f,crossAxis:m,alignmentAxis:h}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return l&&typeof h=="number"&&(m=l==="end"?h*-1:h),a?{x:m*u,y:f*c}:{x:f*c,y:m*u}}const Ro=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,i;const{x:s,y:o,placement:r,middlewareData:l}=t,a=await Oo(t,e);return r===((n=l.offset)==null?void 0:n.placement)&&(i=l.arrow)!=null&&i.alignmentOffset?{}:{x:s+a.x,y:o+a.y,data:{...a,placement:r}}}}},Lo=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:i,placement:s,platform:o}=t,{mainAxis:r=!0,crossAxis:l=!1,limiter:a={fn:p=>{let{x:v,y:b}=p;return{x:v,y:b}}},...c}=Ce(e,t),u={x:n,y:i},d=await o.detectOverflow(t,c),f=Z(ie(s)),m=Bn(f);let h=u[m],y=u[f];if(r){const p=m==="y"?"top":"left",v=m==="y"?"bottom":"right",b=h+d[p],S=h-d[v];h=kt(b,h,S)}if(l){const p=f==="y"?"top":"left",v=f==="y"?"bottom":"right",b=y+d[p],S=y-d[v];y=kt(b,y,S)}const _=a.fn({...t,[m]:h,[f]:y});return{..._,data:{x:_.x-n,y:_.y-i,enabled:{[m]:r,[f]:l}}}}}};function Qe(){return typeof window<"u"}function me(e){return Xn(e)?(e.nodeName||"").toLowerCase():"#document"}function M(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function B(e){var t;return(t=(Xn(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Xn(e){return Qe()?e instanceof Node||e instanceof M(e).Node:!1}function q(e){return Qe()?e instanceof Element||e instanceof M(e).Element:!1}function U(e){return Qe()?e instanceof HTMLElement||e instanceof M(e).HTMLElement:!1}function Yn(e){return!Qe()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof M(e).ShadowRoot}function ke(e){const{overflow:t,overflowX:n,overflowY:i,display:s}=D(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+n)&&s!=="inline"&&s!=="contents"}function Ao(e){return/^(table|td|th)$/.test(me(e))}function Ue(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const $o=/transform|translate|scale|rotate|perspective|filter/,No=/paint|layout|strict|content/,se=e=>!!e&&e!=="none";let At;function $t(e){const t=q(e)?D(e):e;return se(t.transform)||se(t.translate)||se(t.scale)||se(t.rotate)||se(t.perspective)||!Nt()&&(se(t.backdropFilter)||se(t.filter))||$o.test(t.willChange||"")||No.test(t.contain||"")}function Mo(e){let t=J(e);for(;U(t)&&!ge(t);){if($t(t))return t;if(Ue(t))return null;t=J(t)}return null}function Nt(){return At==null&&(At=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),At}function ge(e){return/^(html|body|#document)$/.test(me(e))}function D(e){return M(e).getComputedStyle(e)}function Xe(e){return q(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function J(e){if(me(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Yn(e)&&e.host||B(e);return Yn(t)?t.host:t}function Kn(e){const t=J(e);return ge(t)?e.ownerDocument?e.ownerDocument.body:e.body:U(t)&&ke(t)?t:Kn(t)}function Oe(e,t,n){var i;t===void 0&&(t=[]),n===void 0&&(n=!0);const s=Kn(e),o=s===((i=e.ownerDocument)==null?void 0:i.body),r=M(s);if(o){const l=Mt(r);return t.concat(r,r.visualViewport||[],ke(s)?s:[],l&&n?Oe(l):[])}else return t.concat(s,Oe(s,[],n))}function Mt(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Zn(e){const t=D(e);let n=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const s=U(e),o=s?e.offsetWidth:n,r=s?e.offsetHeight:i,l=ze(n)!==o||ze(i)!==r;return l&&(n=o,i=r),{width:n,height:i,$:l}}function Pt(e){return q(e)?e:e.contextElement}function pe(e){const t=Pt(e);if(!U(t))return z(1);const n=t.getBoundingClientRect(),{width:i,height:s,$:o}=Zn(t);let r=(o?ze(n.width):n.width)/i,l=(o?ze(n.height):n.height)/s;return(!r||!Number.isFinite(r))&&(r=1),(!l||!Number.isFinite(l))&&(l=1),{x:r,y:l}}const Po=z(0);function Jn(e){const t=M(e);return!Nt()||!t.visualViewport?Po:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Fo(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==M(e)?!1:t}function oe(e,t,n,i){t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect(),o=Pt(e);let r=z(1);t&&(i?q(i)&&(r=pe(i)):r=pe(e));const l=Fo(o,n,i)?Jn(o):z(0);let a=(s.left+l.x)/r.x,c=(s.top+l.y)/r.y,u=s.width/r.x,d=s.height/r.y;if(o){const f=M(o),m=i&&q(i)?M(i):i;let h=f,y=Mt(h);for(;y&&i&&m!==h;){const _=pe(y),p=y.getBoundingClientRect(),v=D(y),b=p.left+(y.clientLeft+parseFloat(v.paddingLeft))*_.x,S=p.top+(y.clientTop+parseFloat(v.paddingTop))*_.y;a*=_.x,c*=_.y,u*=_.x,d*=_.y,a+=b,c+=S,h=M(y),y=Mt(h)}}return We({width:u,height:d,x:a,y:c})}function Ye(e,t){const n=Xe(e).scrollLeft;return t?t.left+n:oe(B(e)).left+n}function ei(e,t){const n=e.getBoundingClientRect(),i=n.left+t.scrollLeft-Ye(e,n),s=n.top+t.scrollTop;return{x:i,y:s}}function Io(e){let{elements:t,rect:n,offsetParent:i,strategy:s}=e;const o=s==="fixed",r=B(i),l=t?Ue(t.floating):!1;if(i===r||l&&o)return n;let a={scrollLeft:0,scrollTop:0},c=z(1);const u=z(0),d=U(i);if((d||!d&&!o)&&((me(i)!=="body"||ke(r))&&(a=Xe(i)),d)){const m=oe(i);c=pe(i),u.x=m.x+i.clientLeft,u.y=m.y+i.clientTop}const f=r&&!d&&!o?ei(r,a):z(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-a.scrollLeft*c.x+u.x+f.x,y:n.y*c.y-a.scrollTop*c.y+u.y+f.y}}function qo(e){return Array.from(e.getClientRects())}function Do(e){const t=B(e),n=Xe(e),i=e.ownerDocument.body,s=ne(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),o=ne(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight);let r=-n.scrollLeft+Ye(e);const l=-n.scrollTop;return D(i).direction==="rtl"&&(r+=ne(t.clientWidth,i.clientWidth)-s),{width:s,height:o,x:r,y:l}}const ti=25;function jo(e,t){const n=M(e),i=B(e),s=n.visualViewport;let o=i.clientWidth,r=i.clientHeight,l=0,a=0;if(s){o=s.width,r=s.height;const u=Nt();(!u||u&&t==="fixed")&&(l=s.offsetLeft,a=s.offsetTop)}const c=Ye(i);if(c<=0){const u=i.ownerDocument,d=u.body,f=getComputedStyle(d),m=u.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,h=Math.abs(i.clientWidth-d.clientWidth-m);h<=ti&&(o-=h)}else c<=ti&&(o+=c);return{width:o,height:r,x:l,y:a}}function Vo(e,t){const n=oe(e,!0,t==="fixed"),i=n.top+e.clientTop,s=n.left+e.clientLeft,o=U(e)?pe(e):z(1),r=e.clientWidth*o.x,l=e.clientHeight*o.y,a=s*o.x,c=i*o.y;return{width:r,height:l,x:a,y:c}}function ni(e,t,n){let i;if(t==="viewport")i=jo(e,n);else if(t==="document")i=Do(B(e));else if(q(t))i=Vo(t,n);else{const s=Jn(e);i={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return We(i)}function ii(e,t){const n=J(e);return n===t||!q(n)||ge(n)?!1:D(n).position==="fixed"||ii(n,t)}function Go(e,t){const n=t.get(e);if(n)return n;let i=Oe(e,[],!1).filter(l=>q(l)&&me(l)!=="body"),s=null;const o=D(e).position==="fixed";let r=o?J(e):e;for(;q(r)&&!ge(r);){const l=D(r),a=$t(r);!a&&l.position==="fixed"&&(s=null),(o?!a&&!s:!a&&l.position==="static"&&!!s&&(s.position==="absolute"||s.position==="fixed")||ke(r)&&!a&&ii(e,r))?i=i.filter(u=>u!==r):s=l,r=J(r)}return t.set(e,i),i}function zo(e){let{element:t,boundary:n,rootBoundary:i,strategy:s}=e;const r=[...n==="clippingAncestors"?Ue(t)?[]:Go(t,this._c):[].concat(n),i],l=ni(t,r[0],s);let a=l.top,c=l.right,u=l.bottom,d=l.left;for(let f=1;f<r.length;f++){const m=ni(t,r[f],s);a=ne(m.top,a),c=fe(m.right,c),u=fe(m.bottom,u),d=ne(m.left,d)}return{width:c-d,height:u-a,x:d,y:a}}function Bo(e){const{width:t,height:n}=Zn(e);return{width:t,height:n}}function Ho(e,t,n){const i=U(t),s=B(t),o=n==="fixed",r=oe(e,!0,o,t);let l={scrollLeft:0,scrollTop:0};const a=z(0);function c(){a.x=Ye(s)}if(i||!i&&!o)if((me(t)!=="body"||ke(s))&&(l=Xe(t)),i){const m=oe(t,!0,o,t);a.x=m.x+t.clientLeft,a.y=m.y+t.clientTop}else s&&c();o&&!i&&s&&c();const u=s&&!i&&!o?ei(s,l):z(0),d=r.left+l.scrollLeft-a.x-u.x,f=r.top+l.scrollTop-a.y-u.y;return{x:d,y:f,width:r.width,height:r.height}}function Ft(e){return D(e).position==="static"}function si(e,t){if(!U(e)||D(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return B(e)===n&&(n=n.ownerDocument.body),n}function oi(e,t){const n=M(e);if(Ue(e))return n;if(!U(e)){let s=J(e);for(;s&&!ge(s);){if(q(s)&&!Ft(s))return s;s=J(s)}return n}let i=si(e,t);for(;i&&Ao(i)&&Ft(i);)i=si(i,t);return i&&ge(i)&&Ft(i)&&!$t(i)?n:i||Mo(e)||n}const Wo=async function(e){const t=this.getOffsetParent||oi,n=this.getDimensions,i=await n(e.floating);return{reference:Ho(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function Qo(e){return D(e).direction==="rtl"}const It={convertOffsetParentRelativeRectToViewportRelativeRect:Io,getDocumentElement:B,getClippingRect:zo,getOffsetParent:oi,getElementRects:Wo,getClientRects:qo,getDimensions:Bo,getScale:pe,isElement:q,isRTL:Qo};function ri(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Uo(e,t){let n=null,i;const s=B(e);function o(){var l;clearTimeout(i),(l=n)==null||l.disconnect(),n=null}function r(l,a){l===void 0&&(l=!1),a===void 0&&(a=1),o();const c=e.getBoundingClientRect(),{left:u,top:d,width:f,height:m}=c;if(l||t(),!f||!m)return;const h=Be(d),y=Be(s.clientWidth-(u+f)),_=Be(s.clientHeight-(d+m)),p=Be(u),b={rootMargin:-h+"px "+-y+"px "+-_+"px "+-p+"px",threshold:ne(0,fe(1,a))||1};let S=!0;function w(x){const C=x[0].intersectionRatio;if(C!==a){if(!S)return r();C?r(!1,C):i=setTimeout(()=>{r(!1,1e-7)},1e3)}C===1&&!ri(c,e.getBoundingClientRect())&&r(),S=!1}try{n=new IntersectionObserver(w,{...b,root:s.ownerDocument})}catch{n=new IntersectionObserver(w,b)}n.observe(e)}return r(!0),o}function Xo(e,t,n,i){i===void 0&&(i={});const{ancestorScroll:s=!0,ancestorResize:o=!0,elementResize:r=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:a=!1}=i,c=Pt(e),u=s||o?[...c?Oe(c):[],...t?Oe(t):[]]:[];u.forEach(p=>{s&&p.addEventListener("scroll",n,{passive:!0}),o&&p.addEventListener("resize",n)});const d=c&&l?Uo(c,n):null;let f=-1,m=null;r&&(m=new ResizeObserver(p=>{let[v]=p;v&&v.target===c&&m&&t&&(m.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var b;(b=m)==null||b.observe(t)})),n()}),c&&!a&&m.observe(c),t&&m.observe(t));let h,y=a?oe(e):null;a&&_();function _(){const p=oe(e);y&&!ri(y,p)&&n(),y=p,h=requestAnimationFrame(_)}return n(),()=>{var p;u.forEach(v=>{s&&v.removeEventListener("scroll",n),o&&v.removeEventListener("resize",n)}),d?.(),(p=m)==null||p.disconnect(),m=null,a&&cancelAnimationFrame(h)}}const Yo=Ro,Ko=Lo,Zo=To,Jo=Co,er=(e,t,n)=>{const i=new Map,s={platform:It,...n},o={...s.platform,_c:i};return Eo(e,t,{...s,platform:o})};E.GidsFloatingElementType=void 0,(function(e){e.TOOLTIP="tooltip",e.POPOVER="popover"})(E.GidsFloatingElementType||(E.GidsFloatingElementType={}));function ai(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}const tr=/transform|translate|scale|rotate|perspective|filter/,nr=/paint|layout|strict|content/,re=e=>!!e&&e!=="none";let qt;function ir(e){const t=(n=e,typeof window<"u"&&(n instanceof Element||n instanceof ai(n).Element)?ai(i=e).getComputedStyle(i):e);var n,i;return re(t.transform)||re(t.translate)||re(t.scale)||re(t.rotate)||re(t.perspective)||(qt==null&&(qt=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),!qt&&(re(t.backdropFilter)||re(t.filter)))||tr.test(t.willChange||"")||nr.test(t.contain||"")}function sr(e){return(function(t){for(let n=t;n;n=Dt(n))if(n instanceof Element&&getComputedStyle(n).display==="none")return null;for(let n=Dt(t);n;n=Dt(n)){if(!(n instanceof Element))continue;const i=getComputedStyle(n);if(i.display!=="contents"&&(i.position!=="static"||ir(i)||n.tagName==="BODY"))return n}return null})(e)}function Dt(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}let li=(X=class{constructor(t,n){this.el=t,this.config=n,this.offset=10,this.timeDelayBeforeFadingOut=50,this.popoverMainAxisEnabled=!0,this.currentPlacement=n.placement,this.cleanup=null}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=Xo(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=[Yo(this.offset)],n=Zo({mainAxis:!0,crossAxis:!this.config.lockToMainAxis&&"alignment",fallbackAxisSideDirection:"end",padding:this.offset}),i=this.config.elementType===E.GidsFloatingElementType.POPOVER,s=Ko({padding:this.offset,mainAxis:this.config.elementType===E.GidsFloatingElementType.TOOLTIP||i&&this.popoverMainAxisEnabled,crossAxis:!1});this.config.placement.includes("-")?t.push(n,s):t.push(s,n),this.config.showArrow!==!1&&this.arrowEl&&t.push(Jo({element:this.arrowEl,padding:this.offset})),er(this.anchorElement,this.floatingElement,{placement:this.config.placement,strategy:"fixed",middleware:t,platform:{...It,getOffsetParent:o=>It.getOffsetParent(o,sr)}}).then((({x:o,y:r,middlewareData:l,placement:a})=>{if(i){const f=a.startsWith("left")||a.startsWith("right"),m=a.startsWith("top")||a.startsWith("bottom"),h=this.isAnchorInViewport(),y=!!m||(f?h:this.popoverMainAxisEnabled);if(y!==this.popoverMainAxisEnabled)return this.popoverMainAxisEnabled=y,void this.updatePosition()}this.currentPlacement=a,Object.assign(this.floatingElement.style,{left:`${o}px`,top:`${r}px`,position:"fixed",transition:`opacity ${this.timeOfAnimation}ms ease`});const c=a.split("-")[0]??"bottom",u={top:"bottom",right:"left",bottom:"top",left:"right"}[c],{arrowZIndex:d}=this.normalizeFloatingElementStacking();if(l.arrow&&this.arrowEl){const f=this.arrowEl.offsetWidth,{x:m,y:h}=l.arrow;this.arrowEl.style.borderRadius=`${["left","right"].includes(c)?"0 ":""}var(--gidsFloatingElement-tip-border-radius, 2px)${["top","bottom"].includes(c)?" 0":""}`,Object.assign(this.arrowEl.style,{left:m!==null?`${m}px`:"",top:h!==null?`${h}px`:"",right:"",bottom:"",[u]:-f/2+"px",transform:"rotate(45deg)",zIndex:`${d}`,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??""),n=Number.parseInt(t,10),i=Number.isNaN(n)?-1:n-1,s=Number.isNaN(n)?i+1:n;return Number.isNaN(s)||(this.floatingElement.style.zIndex=`${s}`),Array.from(this.floatingElement.children).forEach((o=>{if(!(o instanceof HTMLElement)||o===this.arrowEl)return;const r=o.style.zIndex||(window.getComputedStyle?.(o).zIndex??""),l=Number.parseInt(r,10),a=window.getComputedStyle?.(o).position??"";(r===""||r==="auto"||Number.isNaN(l)||l<s)&&(o.style.zIndex=`${s}`,a!==""&&a!=="static"||(o.style.position="relative"))})),{contentZIndex:s,arrowZIndex:i}}hideFloatingElement(){this.floatingElement.classList.remove(this.config.visibilityClass),X.currentFloatingElements.delete(this.config.elementType)}showFloatingElement(){const t=X.currentFloatingElements.get(this.config.elementType);t&&t.hideFloatingElement(),this.floatingElement.classList.add(this.config.visibilityClass),X.currentFloatingElements.set(this.config.elementType,this)}isVisible(){return this.floatingElement.classList.contains(this.config.visibilityClass)}show(){this.setupAutoUpdate(),this.showFloatingElement()}hide(){this.cleanupAutoUpdate(),this.hideFloatingElement()}toggle(){this.isVisible()?this.hide():this.show()}showAfterDelay(){clearTimeout(this.hoverOutTimeout),this.hoverTimeout=setTimeout((()=>{this.show()}),this.timeBeforeElementShows)}hideAfterDelay(){clearTimeout(this.hoverTimeout),this.hoverOutTimeout=setTimeout((()=>{this.hide()}),this.timeDelayBeforeFadingOut)}cancelDelayedActions(){clearTimeout(this.hoverTimeout),clearTimeout(this.hoverOutTimeout)}destroy(){this.cleanupAutoUpdate(),this.cancelDelayedActions()}isAnchorInViewport(){if(!(this.anchorElement&&this.anchorElement instanceof Element))return!1;const t=this.anchorElement.getBoundingClientRect(),n=window.innerHeight||document.documentElement?.clientHeight||0,i=window.innerWidth||document.documentElement?.clientWidth||0,s=t.height/2+2*this.offset;return t.bottom>=s&&t.top<=n-s&&t.right>=0&&t.left<=i}},X.currentFloatingElements=new Map,X);const ci=N(class extends A{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.placement="bottom",this.previouslyFocusedElement=null,this.focusableElements=[],this.handleToggleEvent=t=>{t.stopPropagation();const n=this.floatingElementManager.isVisible();this.floatingElementManager.toggle(),!n&&this.floatingElementManager.isVisible()?this.onPopoverShow():n&&!this.floatingElementManager.isVisible()&&this.onPopoverHide()},this.handleDocumentClick=t=>{this.floatingElementManager.isVisible()&&!this._el.contains(t.target)&&(this.floatingElementManager.hide(),this.onPopoverHide())},this.handleKeyDown=t=>{if(this.floatingElementManager.isVisible())return t.key==="Escape"?(t.preventDefault(),this.floatingElementManager.hide(),void this.onPopoverHide()):void(t.key==="Tab"&&this.trapFocus(t))}}componentDidLoad(){this.floatingElementManager=new li(this._el,{htmlFor:this.htmlFor,placement:this.placement,showWithoutDelay:!0,floatingElementSelector:"#popover",arrowElementSelector:"#arrow",visibilityClass:"gids-popover--visible",elementType:E.GidsFloatingElementType.POPOVER,getAnchorElementFromSlot:e=>e.querySelector('slot[name="anchor"]')?.assignedElements()[0]||null}),this.floatingElementManager.initialize(),this.setupEventListeners()}setupEventListeners(){const e=this.floatingElementManager.getAnchorElement();e&&(e.addEventListener("click",this.handleToggleEvent),document.addEventListener("click",this.handleDocumentClick),document.addEventListener("keydown",this.handleKeyDown))}onPopoverShow(){this.previouslyFocusedElement=document.activeElement,this.updateFocusableElements(),setTimeout((()=>{this.focusableElements.length>0&&this.focusableElements[0]&&this.focusableElements[0].focus()}),50)}onPopoverHide(){this.previouslyFocusedElement&&(this.previouslyFocusedElement.focus(),this.previouslyFocusedElement=null)}updateFocusableElements(){const e=this._el.shadowRoot?.querySelector("#popover");if(!e)return;const t=[],n=ui(e);t.push(...n);const i=this._el.shadowRoot?.querySelector("slot:not([name])");i&&i.assignedElements({flatten:!0}).forEach((s=>{const o=ui(s);t.push(...o)})),this.focusableElements=t.sort(((s,o)=>{const r=s.compareDocumentPosition(o),l=!!(r&Node.DOCUMENT_POSITION_FOLLOWING),a=!!(r&Node.DOCUMENT_POSITION_PRECEDING);return l?-1:a?1:0}))}trapFocus(e){if(this.focusableElements.length===0)return;const t=this.focusableElements[0],n=this.focusableElements[this.focusableElements.length-1];let i=document.activeElement;if(i===this._el){const o=this._el.shadowRoot?.activeElement;o!==null&&(i=o)}const s=this.focusableElements.indexOf(i)!==-1;e.shiftKey?i!==t&&s||(e.preventDefault(),n&&n.focus()):i!==n&&s||(e.preventDefault(),t&&t.focus())}placementChanged(e){this.floatingElementManager?.updateConfig({placement:e}),this.floatingElementManager?.isVisible()&&this.floatingElementManager?.reposition()}htmlForChanged(e){this.floatingElementManager?.updateConfig({htmlFor:e}),this.cleanupEventListeners(),this.floatingElementManager?.initialize(),this.setupEventListeners()}cleanupEventListeners(){const e=this.floatingElementManager?.getAnchorElement();e&&e.removeEventListener("click",this.handleToggleEvent),document.removeEventListener("click",this.handleDocumentClick),document.removeEventListener("keydown",this.handleKeyDown)}render(){return g(Se,{key:"da6cbab41d3390a940444809d9fe809225c9426e"},g("slot",{key:"5a5e5f72ab9c793e02b7bd633381363ab37cbf22",name:"anchor"}),g("div",{key:"49ab365961e8a3d9bf0e6ac67f2c73fda1eb7bb3",id:"popover",part:"popover",role:"dialog","aria-modal":"true",tabindex:"-1"},g("span",{key:"9815148f291ebca88b4a2bbe09b0e93fcbaab4a7",id:"arrow"}),g("div",{key:"b6d83da9bd180933b5f2453f3e66f66f692e35c1"},g("slot",{key:"90aaeadfe9d09ebdd6534afa762b35c38a5cc57f"}))))}disconnectedCallback(){this.cleanupEventListeners(),this.floatingElementManager?.destroy()}get _el(){return this}static get watchers(){return{placement:[{placementChanged:0}],htmlFor:[{htmlForChanged:0}]}}static get style(){return"gids-popover{--gidsPopover-background:var(--gids-elevation-surface-overlay-default);--gidsPopover-text-color:var(--gids-color-text-default);--gidsPopover-padding:var(--gids-padding-vertical-edge-to-element-200) var(--gids-padding-horizontal-edge-to-element-300);--gidsPopover-border-radius:var(--gids-border-radius-lg);--gidsPopover-tip-border-radius:2px;--gidsPopover-tip-size:12px;--gidsPopover-shadow:var(--gids-elevation-shadow-overlay);--gidsFloatingElement-background:var(--gidsPopover-background);--gidsFloatingElement-tip-border-radius:var(--gidsPopover-tip-border-radius)}[part=popover]{font-family:var(--gids-typography-label-small__font-family);font-size:var(--gids-typography-label-small__font-size);font-weight:var(--gids-typography-label-small__font-weight);letter-spacing:var(--gids-typography-label-small__letter-spacing);line-height:var(--gids-typography-label-small__line-height);text-transform:var(--gids-typography-label-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-small__font-variant-caps, inherit);position:absolute;display:inline-block;background-color:var(--gidsPopover-background);color:var(--gidsPopover-text-color);border-radius:var(--gidsPopover-border-radius);box-shadow:var(--gidsPopover-shadow);z-index:1000;opacity:0;pointer-events:none;outline:none}[part=popover]:focus{outline:none}[part=popover].gids-popover--visible{pointer-events:initial;opacity:1}[part=popover] span#arrow{position:absolute;height:var(--gidsPopover-tip-size);width:var(--gidsPopover-tip-size);background-color:var(--gidsPopover-background)}"}},[257,"gids-popover",{htmlFor:[513,"for"],placement:[513]},void 0,{placement:[{placementChanged:0}],htmlFor:[{htmlForChanged:0}]}]),di=e=>{if(!(e instanceof A)||e.tabIndex===-1||e.hasAttribute("disabled"))return!1;const t=getComputedStyle(e);if(t.display==="none"||t.visibility==="hidden"||e.hidden)return!1;try{const n=e.tabIndex;e.tabIndex=-1,e.focus();const i=document.activeElement===e;return e.tabIndex=n,i&&e.blur(),i}catch{return!1}},ui=e=>{const t=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>di(s)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}),n=[];di(e)&&n.push(e);let i=t.nextNode();for(;i!==null;)n.push(i),i=t.nextNode();return n};function or(){typeof customElements<"u"&&["gids-popover"].forEach((e=>{e==="gids-popover"&&(customElements.get(e)||customElements.define(e,ci))}))}or();const rr=ci,{getGidsScrimClassNames:hi}=gs,fi=N(class extends A{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.activeClasses=""}handleExtraClassesChange(e){this.activeClasses=hi(e)}connectedCallback(){const e=G();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e),this.activeClasses=hi(this.extraClasses)}render(){return g("div",{key:"da4b587303359a6075411a1843e03eff6eed68ce",class:this.activeClasses,part:"root"},g("slot",{key:"5a52f6e5628c771b2dd0f5a6221005a0ed8b9fbb"}))}get _el(){return this}static get watchers(){return{extraClasses:[{handleExtraClassesChange:0}]}}static get style(){return".gids-scrim{display:flex;flex-direction:column;background-color:var(--gids-color-background-scrim);height:100vh !important;position:absolute;top:0;bottom:0;left:0;right:0;z-index:1001;align-items:center;justify-content:center;backdrop-filter:blur(12)}"}},[257,"gids-scrim",{extraClasses:[513,"extra-classes"],activeClasses:[32]},void 0,{extraClasses:[{handleExtraClassesChange:0}]}]);function ar(){typeof customElements<"u"&&["gids-scrim"].forEach((e=>{e==="gids-scrim"&&(customElements.get(e)||customElements.define(e,fi))}))}ar();const lr=fi,mi=N(class extends A{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.appearance="default",this.show=!1,this.position="bottom-center"}async showSnackbar(){const e=Tt(this._el);e&&this.show&&e.queueComponent({message:this.message,appearance:this.appearance,buttonLabel:this.buttonLabel,onButtonClick:this.onButtonClick,position:this.position,componentName:"snackbar",timerInMs:this.timerInMs}),this.onQueueSnackbar&&this.onQueueSnackbar(),this.show=!1}render(){return null}get _el(){return this}static get watchers(){return{show:[{showSnackbar:0}]}}},[1,"gids-snackbar",{message:[513],appearance:[513],show:[516],onQueueSnackbar:[16],buttonLabel:[513,"button-label"],position:[513],timerInMs:[514,"timer-in-ms"],onButtonClick:[16]},void 0,{show:[{showSnackbar:0}]}]);function cr(){typeof customElements<"u"&&["gids-snackbar"].forEach((e=>{e==="gids-snackbar"&&(customElements.get(e)||customElements.define(e,mi))}))}cr();const dr=mi,{formatCharCount:ur}=_n,{inputToGidsFieldStatus:hr}=rs,gi=N(class extends A{constructor(e){super(),e!==!1&&this.__registerHost(),this.gidsTextFieldClear=Ne(this,"gidsTextFieldClear"),this.#t=_t(),this._handleDismiss=()=>{const t=this.#e?.querySelector("input.gids-input__control");t&&(t.value="",t.dispatchEvent(new globalThis.Event("input",{bubbles:!0}))),this.value="",this.gidsTextFieldClear.emit()},this._handleInput=t=>{this.value=t.target?.value},this._handleInputFocusAndBlur=t=>{this._el.dispatchEvent(new FocusEvent(t.type,{relatedTarget:t.relatedTarget}))}}_startSlotContentObserver(){this._slotContentObserver=new MutationObserver((()=>{hn(this)})),this._slotContentObserver.observe(this._el,{childList:!0,subtree:!1,attributes:!0,attributeFilter:["slot"]})}connectedCallback(){const e=G();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e),this._startSlotContentObserver()}disconnectedCallback(){this._slotContentObserver?.disconnect(),this._slotContentObserver=void 0}#t;#e;render(){const{id:e,...t}=this.inputProps??{},n=e??this.#t,i=this.showClearButton&&this.value!==void 0&&this.value.length>0;return g("gids-field",{key:"80f1981d584f417e010322b2c5ec07a60dc1f388",disabled:this.disabled,count:ur(this.value?.length,this.maxLength),helperText:this.helperText,statusText:this.statusText,status:hr(this.status)},g(Vn,{key:"f222a99181809cf9ccdc1ad9ceed98c985681553",slot:"label",disabled:this.disabled,info:g("slot",{name:"info"}),fieldRequirement:this.fieldRequirement,fieldRequirementOptionalText:this.fieldRequirementOptionalText,fieldRequirementRequiredText:this.fieldRequirementRequiredText,isLabelSentence:this.isLabelSentence,htmlFor:n},this.label),g("gids-input",{key:"7ff6cf33f16be119ecc705af8a7fb8965b01b74c",ref:s=>this.#e=s,appearance:this.appearance,status:this.status,loading:this.loading,value:this.value,defaultValue:this.defaultValue,name:this.name,required:this.required,disabled:this.disabled,readOnly:this.readOnly,leadingLabel:this.leadingLabel,trailingLabel:this.trailingLabel,onFocus:this._handleInputFocusAndBlur,onBlur:this._handleInputFocusAndBlur,onInput:this._handleInput,inputProps:{...t,type:this.type,id:n,maxLength:this.maxLength}},g("slot",{key:"d3e260125c8d8f56870e6f484894bd1a1aa8e03b",name:"leadingIcon"}),g("slot",{key:"0445885d41f43d6a76f48ed482673a266b6a0182",name:"leadingAccessory"}),i&&g(Gn,{key:"be16083a8e414be66ceb37e076f9ebc01cc4fc8f",label:"clear text",slot:"trailingAccessory",size:"lg",onPressDismiss:this._handleDismiss}),g("slot",{key:"0dc7436a9ca21e57409cc18340747295915d2d5f",name:"trailingIcon"})))}get _el(){return this}},[260,"gids-text-field",{label:[513],showClearButton:[516,"show-clear-button"],helperText:[513,"helper-text"],statusText:[513,"status-text"],appearance:[513],status:[513],leadingLabel:[513,"leading-label"],trailingLabel:[513,"trailing-label"],loading:[516],type:[513],name:[513],required:[516],maxLength:[514,"maxlength"],value:[1],defaultValue:[513,"default-value"],disabled:[516],readOnly:[516,"readonly"],inputProps:[16],fieldRequirement:[513,"field-requirement"],fieldRequirementOptionalText:[1,"field-requirement-optional-text"],fieldRequirementRequiredText:[1,"field-requirement-required-text"],isLabelSentence:[16]}]);function fr(){typeof customElements<"u"&&["gids-text-field","gids-field","gids-input"].forEach((e=>{switch(e){case"gids-text-field":customElements.get(e)||customElements.define(e,gi);break;case"gids-field":customElements.get(e)||Et();break;case"gids-input":customElements.get(e)||Ct()}}))}fr();const mr=gi,pi=N(class extends A{get selected(){return this.#t??this.defaultSelected}set selected(e){this.#t=e===void 0?void 0:!!e}constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.select=Ne(this,"select"),this._toggle=this._toggle.bind(this)}#t;connectedCallback(){const e=G();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}_toggle(){const e=!this.selected;this._el.selected=e,this.select?.emit(e)}render(){return g(rt,{key:"56bc99780f392c4d5064eaa47819ee1ff0897c79"},g("style",{key:"e330f982d625eeb7f72ede3f382231fb5791ec47"},`:host {
5
+ `);const f=this["s-cr"].parentElement;return(f.__childNodes?f.childNodes:(v=>{const _=[];for(let y=0;y<v.length;y++){const b=v[y]["s-nr"]||void 0;b&&b.isConnected&&_.push(b)}return _})(f.childNodes)).forEach((v=>{u===ke(v)&&m.push(v)})),h?m.filter((v=>v.nodeType===1)):m}).bind(g);g.assignedElements=c(!0),g.assignedNodes=c(!1)})(n),l=e&&e.m&&e.m[i],l&&l.O===a.O&&e.S&&bi(e.S)),n},bi=e=>{I.i|=1;const t=e.closest(ie.toLowerCase());if(t!=null){const i=Array.from(t.__childNodes||t.childNodes).find((a=>a["s-cr"])),s=Array.from(e.__childNodes||e.childNodes);for(const a of i?s.reverse():s)a["s-sh"]!=null&&(F(t,a,i??null),a["s-sh"]=void 0,Ve=!0)}I.i&=-2},Ye=(e,t)=>{I.i|=1;const i=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"]===ie&&i.push(s)}for(let s=i.length-1;s>=0;s--){const a=i[s];a["s-hn"]!==ie&&a["s-ol"]&&(F(Pe(a).parentNode,a,Pe(a)),a["s-ol"].remove(),a["s-ol"]=void 0,a["s-sh"]=void 0,Ve=!0),t&&Ye(a,t)}I.i&=-2},vi=(e,t,i,s,a,n)=>{let o,l=e["s-cr"]&&e["s-cr"].parentNode||e;for(l.shadowRoot&&l.tagName===ie&&(l=l.shadowRoot),i.O==="template"&&(l=l.content);a<=n;++a)s[a]&&(o=je(null,i,a),o&&(s[a].S=o,F(l,o,Pe(t))))},yi=(e,t,i)=>{for(let s=t;s<=i;++s){const a=e[s];if(a){const n=a.S;xi(a),n&&(Ge=!0,n["s-ol"]?n["s-ol"].remove():Ye(n,!0),n.remove())}}},Be=(e,t,i=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:i?(i&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),Pe=e=>e&&e["s-ol"]||e,ue=(e,t,i=!1)=>{const s=t.S=e.S,a=e.m,n=t.m,o=t.O,l=t.h;let d;l==null?(N=o==="svg"||o!=="foreignObject"&&N,o!=="slot"||Ee||e.j!==t.j&&(t.S["s-sn"]=t.j||"",bi(t.S.parentElement)),mt(e,t,N),a!==null&&n!==null?((g,c,h,p,m=!1)=>{let u,f,v=0,_=0,y=0,b=0,w=c.length-1,x=c[0],k=c[w],T=p.length-1,M=p[0],$=p[T];const R=h.O==="template"?g.content:g;for(;v<=w&&_<=T;)if(x==null)x=c[++v];else if(k==null)k=c[--w];else if(M==null)M=p[++_];else if($==null)$=p[--T];else if(Be(x,M,m))ue(x,M,m),x=c[++v],M=p[++_];else if(Be(k,$,m))ue(k,$,m),k=c[--w],$=p[--T];else if(Be(x,$,m))x.O!=="slot"&&$.O!=="slot"||Ye(x.S.parentNode,!1),ue(x,$,m),F(R,x.S,k.S.nextSibling),x=c[++v],$=p[--T];else if(Be(k,M,m))x.O!=="slot"&&$.O!=="slot"||Ye(k.S.parentNode,!1),ue(k,M,m),F(R,k.S,x.S),k=c[--w],M=p[++_];else{for(y=-1,b=v;b<=w;++b)if(c[b]&&c[b].$!==null&&c[b].$===M.$){y=b;break}y>=0?(f=c[y],f.O!==M.O?u=je(c&&c[_],h,y):(ue(f,M,m),c[y]=void 0,u=f.S),M=p[++_]):(u=je(c&&c[_],h,_),M=p[++_]),u&&F(Pe(x.S).parentNode,u,Pe(x.S))}v>w?vi(g,p[T+1]==null?null:p[T+1].S,h,p,_,T):_>T&&yi(c,v,w)})(s,a,t,n,i):n!==null?(e.h!==null&&(s.textContent=""),vi(s,null,t,n,0,n.length-1)):!i&&a!==null&&yi(a,0,a.length-1),N&&o==="svg"&&(N=!1)):(d=s["s-cr"])?d.parentNode.textContent=l:e.h!==l&&(s.data=l)},W=[],_i=e=>{let t,i,s;const a=e.__childNodes||e.childNodes;for(const n of a){if(n["s-sr"]&&(t=n["s-cr"])&&t.parentNode){i=t.parentNode.__childNodes||t.parentNode.childNodes;const o=n["s-sn"];for(s=i.length-1;s>=0;s--)if(t=i[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===n["s-hn"]||t["s-sh"]&&t["s-sh"]===n["s-hn"]))if(oi(t,o)){let l=W.find((d=>d.k===t));Ge=!0,t["s-sn"]=t["s-sn"]||o,l?(l.k["s-sh"]=n["s-hn"],l.N=n):(t["s-sh"]=n["s-hn"],W.push({N:n,k:t})),t["s-sr"]&&W.map((d=>{oi(d.k,t["s-sn"])&&(l=W.find((g=>g.k===t)),l&&!d.N&&(d.N=l.N))}))}else W.some((l=>l.k===t))||W.push({k:t})}n.nodeType===1&&_i(n)}},xi=e=>{e.v&&e.v.ref&&ft.push((()=>e.v.ref(null))),e.m&&e.m.map(xi)},ka=(e,t)=>{bt.push((()=>e(t)))},F=(e,t,i,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,i);const{slotNode:a}=(function(n,o){var l;if(!(o=o||((l=n["s-ol"])==null?void 0:l.parentElement)))return{slotNode:null,slotName:""};const d=n["s-sn"]=ke(n)||"";return{slotNode:ct(ht(o,"childNodes"),o.tagName,d)[0],slotName:d}})(t);return a&&!s&&a.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,i):e?.insertBefore(t,i)},wi=(e,t,i=!1)=>{var s,a,n,o,l;const d=e.$hostElement$,g=e.o,c=e.M||Fe(null,null);var h;const p=(h=t)&&h.O===ut?t:r(null,null,t);if(ie=d.tagName,g.C&&(p.v=p.v||{},g.C.forEach((([m,u])=>{p.v[u]=d[m]}))),i&&p.v)for(const m of Object.keys(p.v))d.hasAttribute(m)&&!["key","ref","style","class"].includes(m)&&(p.v[m]=d[m]);if(p.O=null,p.i|=4,e.M=p,p.S=c.S=d.shadowRoot||d,Ee=!(!(1&g.i)||128&g.i),gt=d["s-cr"],Ge=!1,ue(c,p,i),I.i|=1,Ve){_i(p.S);for(const m of W){const u=m.k;if(!u["s-ol"]&&L.document){const f=L.document.createTextNode("");f["s-nr"]=u,F(u.parentNode,u["s-ol"]=f,u,i)}}for(const m of W){const u=m.k,f=m.N;if(u.nodeType===1&&i&&(u["s-ih"]=(s=u.hidden)!=null&&s),f){const v=f.parentNode;let _=f.nextSibling;if(_&&_.nodeType===1){let y=(a=u["s-ol"])==null?void 0:a.previousSibling;for(;y;){let b=(n=y["s-nr"])!=null?n:null;if(b&&b["s-sn"]===u["s-sn"]&&v===(b.__parentNode||b.parentNode)){for(b=b.nextSibling;b===u||b?.["s-sr"];)b=b?.nextSibling;if(!b||!b["s-nr"]){_=b;break}}y=y.previousSibling}}if((!_&&v!==(u.__parentNode||u.parentNode)||(u.__nextSibling||u.nextSibling)!==_)&&u!==_){if(F(v,u,_,i),u.nodeType===8&&u.nodeValue.startsWith("s-nt-")){const y=L.document.createTextNode(u.nodeValue.replace(/^s-nt-/,""));y["s-hn"]=u["s-hn"],y["s-sn"]=u["s-sn"],y["s-sh"]=u["s-sh"],y["s-sr"]=u["s-sr"],y["s-ol"]=u["s-ol"],y["s-ol"]["s-nr"]=y,F(u.parentNode,y,u,i),u.parentNode.removeChild(u)}u.nodeType===1&&u.tagName!=="SLOT-FB"&&(u.hidden=(o=u["s-ih"])!=null&&o)}u&&typeof f["s-rf"]=="function"&&f["s-rf"](f)}else u.nodeType===1&&(u.hidden=!0)}}if(Ge&&ri(p.S),I.i&=-2,W.length=0,!Ee&&!(1&g.i)&&d["s-cr"]){const m=p.S.__childNodes||p.S.childNodes;for(const u of m)if(u["s-hn"]!==ie&&!u["s-sh"]){if(i&&u["s-ih"]==null&&(u["s-ih"]=(l=u.hidden)!=null&&l),u.nodeType===1)u.hidden=!0;else if(u.nodeType===3&&u.nodeValue.trim()){const f=L.document.createComment("s-nt-"+u.nodeValue);f["s-sn"]=u["s-sn"],F(u.parentNode,f,u,i),u.parentNode.removeChild(u)}}}gt=void 0,ft.forEach((m=>m())),ft.length=0,bt.forEach((m=>m())),bt.length=0},Ci=(e,t)=>{if(t&&!e.A&&t["s-p"]){const i=t["s-p"].push(new Promise((s=>e.A=()=>{t["s-p"].splice(i-1,1),s()})))}},qe=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);Ci(e,e.R);const i=()=>Sa(e,t);if(!t)return ma(i);queueMicrotask((()=>{i()}))},Sa=(e,t)=>{const i=e.$hostElement$,s=i;if(!s)throw new Error(`Can't render component <${i.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 a;return a=Te(s,t?"componentWillLoad":"componentWillUpdate",void 0,i),a=ki(a,(()=>Te(s,"componentWillRender",void 0,i))),ki(a,(()=>Pa(e,s,t)))},ki=(e,t)=>Ea(e)?e.then(t).catch((i=>{console.error(i),t()})):t(),Ea=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",Pa=async(e,t,i)=>{var s;const a=e.$hostElement$,n=a["s-rc"];i&&(o=>{const l=o.o,d=o.$hostElement$,g=l.i,c=((h,p)=>{var m,u,f;const v=li(p),_=Re.get(v);if(!L.document)return v;if(h=h.nodeType===11?h:L.document,_)if(typeof _=="string"){let y,b=K.get(h=h.head||h);if(b||K.set(h,b=new Set),!b.has(v)){y=L.document.createElement("style"),y.textContent=_;const w=(m=I._)!=null?m:(function(){var x,k,T;return(T=(k=(x=L.document.head)==null?void 0:x.querySelector('meta[name="csp-nonce"]'))==null?void 0:k.getAttribute("content"))!=null?T:void 0})();if(w!=null&&y.setAttribute("nonce",w),!(1&p.i))if(h.nodeName==="HEAD"){const x=h.querySelectorAll("link[rel=preconnect]"),k=x.length>0?x[x.length-1].nextSibling:h.querySelector("style");h.insertBefore(y,k?.parentNode===h?k:null)}else if("host"in h)if(nt){const x=new((u=h.defaultView)!=null?u:h.ownerDocument.defaultView).CSSStyleSheet;x.replaceSync(_),rt?h.adoptedStyleSheets.unshift(x):h.adoptedStyleSheets=[x,...h.adoptedStyleSheets]}else{const x=h.querySelector("style");x?x.textContent=_+x.textContent:h.prepend(y)}else h.append(y);1&p.i&&h.insertBefore(y,null),4&p.i&&(y.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),b&&b.add(v)}}else{let y=K.get(h);if(y||K.set(h,y=new Set),!y.has(v)){const b=(f=h.defaultView)!=null?f:h.ownerDocument.defaultView;let w;if(_.constructor===b.CSSStyleSheet)w=_;else{w=new b.CSSStyleSheet;for(let x=0;x<_.cssRules.length;x++)w.insertRule(_.cssRules[x].cssText,x)}rt?h.adoptedStyleSheets.push(w):h.adoptedStyleSheets=[...h.adoptedStyleSheets,w],y.add(v)}}return v})(d.shadowRoot?d.shadowRoot:d.getRootNode(),l);10&g&&(d["s-sc"]=c,d.classList.add(c+"-h"))})(e),Ta(e,t,a,i),n&&(n.map((o=>o())),a["s-rc"]=void 0);{const o=(s=a["s-p"])!=null?s:[],l=()=>La(e);o.length===0?l():(Promise.all(o).then(l).catch(l),e.i|=4,o.length=0)}},Ta=(e,t,i,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,wi(e,t,s)}catch(a){pe(a,e.$hostElement$)}return null},La=e=>{const t=e.$hostElement$,i=t,s=e.R;Te(i,"componentDidRender",void 0,t),64&e.i?Te(i,"componentDidUpdate",void 0,t):(e.i|=64,Ma(t),Te(i,"componentDidLoad",void 0,t),e.L(t),s||Ia()),e.A&&(e.A(),e.A=void 0),512&e.i&&dt((()=>qe(e,!1))),e.i&=-517},Si=e=>{var t;{const i=B(e),s=(t=i?.$hostElement$)==null?void 0:t.isConnected;return s&&(18&i.i)==2&&qe(i,!1),s}},Ia=()=>{dt((()=>gi(L,"appload",{detail:{namespace:"gids-core-web"}})))},Te=(e,t,i,s)=>{if(e&&e[t])try{return e[t](i)}catch(a){pe(a,s)}},Ma=e=>e.classList.add("hydrated"),Ei=(e,t,i,s)=>{const a=B(e);if(!a)return;const n=e,o=a.l.get(t),l=a.i,d=n;i=hi(i,s.t[t][0],!!(64&s.i));const g=Number.isNaN(o)&&Number.isNaN(i);if(i!==o&&!g){if(a.l.set(t,i),s.F){const c=s.F[t];c&&c.map((h=>{try{const[[p,m]]=Object.entries(h);(128&l||1&m)&&(d?d[p](i,o,t):a.T.push((()=>{a.D[p](i,o,t)})))}catch(p){pe(p,n)}}))}if(2&l){if(d.componentShouldUpdate&&d.componentShouldUpdate(i,o,t)===!1&&!(16&l))return;16&l||qe(a,!1)}}},Da=(e,t,i)=>{var s,a;const n=e.prototype;64&t.i&&1&i&&pa.forEach((o=>{const l=n[o];Object.defineProperty(n,o,{value(...d){var g;const c=B(this),h=this;h?typeof l=="function"&&l.call(h,...d):(g=c?.H)==null||g.then((p=>{const m=p[o];typeof m=="function"&&m.call(p,...d)}))}})}));{e.watchers&&!t.F&&(t.F=ci(e.watchers)),e.deserializers&&!t.P&&(t.P=e.deserializers),e.serializers&&!t.U&&(t.U=e.serializers);const o=Object.entries((s=t.t)!=null?s:{});o.map((([l,[d]])=>{if(31&d||32&d){const{get:g,set:c}=ge(n,l)||{};g&&(t.t[l][0]|=2048),c&&(t.t[l][0]|=4096),Object.defineProperty(n,l,{get(){return g?g.apply(this):(h=l,B(this).l.get(h));var h},configurable:!0,enumerable:!0}),Object.defineProperty(n,l,{set(h){const p=B(this);if(p){if(c)return(32&d?this[l]:p.$hostElement$[l])===void 0&&p.l.get(l)&&(h=p.l.get(l)),c.apply(this,[hi(h,d,!!(64&t.i))]),void Ei(this,l,h=32&d?this[l]:p.$hostElement$[l],t);Ei(this,l,h,t)}}})}}));{const l=new Map;n.attributeChangedCallback=function(d,g,c){I.jmp((()=>{var h;const p=l.get(d),m=B(this);if(this.hasOwnProperty(p),n.hasOwnProperty(p)&&typeof this[p]=="number"&&this[p]==c)return;if(p==null){const y=m?.i;if(m&&y&&!(8&y)&&c!==g){const b=this,w=(h=t.F)==null?void 0:h[d];w?.forEach((x=>{const[[k,T]]=Object.entries(x);b[k]!=null&&(128&y||1&T)&&b[k].call(b,c,g,d)}))}return}const u=o.find((([y])=>y===p)),f=u&&4&u[1][0],v=f&&c===null&&this[p]===void 0;f&&(c=c!==null&&c!=="false");const _=Object.getOwnPropertyDescriptor(n,p);v||c==this[p]||_.get&&!_.set||(this[p]=c)}))},e.observedAttributes=Array.from(new Set([...Object.keys((a=t.F)!=null?a:{}),...o.filter((([d,g])=>31&g[0])).map((([d,g])=>{var c;const h=g[1]||d;return l.set(h,d),512&g[0]&&((c=t.C)==null||c.push([d,h])),h}))]))}}return e},P=(e,t)=>{const i={i:t[0],p:t[1]};try{i.t=t[2],i.F=ci(e.F),i.P=e.P,i.U=e.U,i.C=[];const s=e.prototype.connectedCallback,a=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((n,o)=>{const l={i:0,$hostElement$:n,o,l:new Map,W:new Map};l.H=new Promise((g=>l.L=g)),n["s-p"]=[],n["s-rc"]=[];const d=l;n.__stencil__getHostRef=()=>d,512&o.i&&ga(n,l)})(this,i)},connectedCallback(){if(!this.__hasHostListenerAttached){if(!B(this))return;this.__hasHostListenerAttached=!0}(n=>{if(!(1&I.i)){const o=B(n);if(!o)return;const l=o.o;if(1&o.i)o?.D||o?.H&&o.H.then((()=>{}));else{o.i|=1,12&l.i&&(d=>{if(!L.document)return;const g=d["s-cr"]=L.document.createComment("");g["s-cn"]=!0,F(d,g,d.firstChild)})(n);{let d=n;for(;d=d.parentNode||d.host;)if(d["s-p"]){Ci(o,o.R=d);break}}l.t&&Object.entries(l.t).map((([d,[g]])=>{if(31&g&&Object.prototype.hasOwnProperty.call(n,d)){const c=n[d];delete n[d],n[d]=c}})),(async(d,g,c)=>{let h;try{if(!(32&g.i)&&(g.i|=32,h=d.constructor,customElements.whenDefined(d.localName).then((()=>g.i|=128)),h&&h.style)){let u;typeof h.style=="string"&&(u=h.style);const f=li(c);Re.has(f)||((v,_,y)=>{let b=Re.get(v);nt&&y?(b=b||new CSSStyleSheet,typeof b=="string"?b=_:b.replaceSync(_)):b=_,Re.set(v,b)})(f,u,!!(1&c.i))}const p=g.R,m=()=>qe(g,!0);p&&p["s-rc"]?p["s-rc"].push(m):m()}catch(p){pe(p,d),g.A&&(g.A(),g.A=void 0),g.L&&g.L(d)}})(n,o,l)}}})(this),s&&s.call(this)},disconnectedCallback(){(async n=>{1&I.i||B(n),K.has(n)&&K.delete(n),n.shadowRoot&&K.has(n.shadowRoot)&&K.delete(n.shadowRoot)})(this),a&&a.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${i.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else va.call(this,i)}}),Object.defineProperty(e,"is",{value:i.p,configurable:!0}),Da(e,i,3)}catch(s){return pe(s),e}},se=(e,t)=>t,$a=e=>I._=e,Aa=e=>Object.assign(I,e),Pi=new WeakMap;function Na(e,t){let i=Pi.get(t);i||(i={i:0,o:{i:0,p:t.tagName},$hostElement$:t},Pi.set(t,i)),wi(i,e)}function hd(e){return e}function Ti(e){var t,i,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(i=Ti(e[t]))&&(s&&(s+=" "),s+=i)}else for(i in e)e[i]&&(s&&(s+=" "),s+=i);return s}function S(){for(var e,t,i=0,s="",a=arguments.length;i<a;i++)(e=arguments[i])&&(t=Ti(e))&&(s&&(s+=" "),s+=t);return s}const za=Object.freeze(Object.defineProperty({__proto__:null,getGidsDividerClassNames:({orientation:e},t)=>S("gids-divider",{"gids-divider--vertical":e==="vertical"},t)},Symbol.toStringTag,{value:"Module"})),Oa=Object.freeze(Object.defineProperty({__proto__:null,getGidsLabelClassNames:({disabled:e},t)=>S("gids-label",{"gids-label--disabled":e},t)},Symbol.toStringTag,{value:"Module"})),Ra=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerControlClassNames:({size:e,indeterminate:t,value:i},s)=>S("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},i,s)},Symbol.toStringTag,{value:"Module"})),Fa=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerClassNames:({size:e},t)=>S("gids-spinner",{"gids-spinner--xs":e==="xs","gids-spinner--sm":e==="sm","gids-spinner--lg":e==="lg","gids-spinner--xl":e==="xl","gids-spinner--2xl":e==="2xl"},t)},Symbol.toStringTag,{value:"Module"})),Ga=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>S("gids-icon",{"gids-icon--xs":e==="xs","gids-icon--sm":e==="sm","gids-icon--md":e==="md","gids-icon--lg":e==="lg"},t)},Symbol.toStringTag,{value:"Module"})),Va=Object.freeze(Object.defineProperty({__proto__:null,getGidsButtonClassNames:({appearance:e,size:t,width:i,destructive:s,positive:a,loading:n},o,l)=>S("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":i==="full","gids-button--destructive":s&&!a,"gids-button--positive":a&&!s,"gids-button--icon-only":o,"gids-button--loading":n},l)},Symbol.toStringTag,{value:"Module"})),Li=e=>{const t=Array.isArray(e)?e[e.length-1]:e;return typeof t=="string"&&t.trim().endsWith(".")},ja=/\w/,Ya=e=>e.replace(ja,t=>t.toLocaleUpperCase()),Ii=(e,t)=>typeof e=="function"?e(t):t?Ya(e):e,Ba=Object.freeze(Object.defineProperty({__proto__:null,getIndicatorText:({children:e,fieldRequirement:t,fieldRequirementOptionalText:i,fieldRequirementRequiredText:s,isLabelSentence:a})=>{const n=a?a(e):Li(e);if(t==="required")return Ii(s&&s.length>0?s:"(required)",n);if(t==="optional")return Ii(i&&i.length>0?i:"(optional)",n)},isSentence:Li},Symbol.toStringTag,{value:"Module"})),qa=Object.freeze(Object.defineProperty({__proto__:null,getElementVisibility:e=>{const{label:t,supportingText:i}=e,s=typeof t=="string"&&t.trim().length>0,a=typeof i=="string"&&i.trim().length>0;return{hasLabel:s,hasSupportingText:a}}},Symbol.toStringTag,{value:"Module"})),He=64,Mi=10,Di=He/2-Mi/2,Ha=He/2,vt=2*Math.PI*Di,Wa=`0 0 ${He} ${He}`,Ua=Object.freeze(Object.defineProperty({__proto__:null,calculateStrokeDasharray:(e=0,t)=>{const i=typeof t=="number"&&t>0?t:1,a=Math.max(0,Math.min(i,e))/i*100,n=(vt*a/100).toFixed(2),o=(vt-parseFloat(n)).toFixed(2);return`${n} ${o}`},centerPosition:Ha,circumference:vt,radius:Di,thickness:Mi,viewBox:Wa},Symbol.toStringTag,{value:"Module"})),$i=Object.freeze(Object.defineProperty({__proto__:null,formatCharCount:(e,t)=>{if(!(e===void 0||t===void 0))return`${e} / ${Math.max(t,0)}`},inputToGidsFieldStatus:e=>{switch(e){case"error":return"error";case"success":return"success";default:return"default"}}},Symbol.toStringTag,{value:"Module"})),yt=/[A-Z]/,_t=/[a-z]/,xt=/[0-9]/,wt=/[^A-Za-z0-9]/,Qa=Object.freeze(Object.defineProperty({__proto__:null,getColorModifierByScore:({textScore:e,maxScore:t})=>{const i=t>0?e/t*100:0;return i<=20?"is-weak":i<=40?"is-medium":i<=60?"is-good-enough":i<=80?"is-good":"is-strong"},getStrengthMeterScore:({text:e,meterRules:t=[],textMinLength:i=0})=>{if(!e||e==="")return 0;let s=0;return t.includes("1-uppercase")&&yt.test(e)&&s++,t.includes("1-lowercase")&&_t.test(e)&&s++,t.includes("1-digit")&&xt.test(e)&&s++,t.includes("1-special-character")&&wt.test(e)&&s++,t.includes("include-min-length")&&i&&i>0&&e.length>=i&&s++,s},include1DigitReg:xt,include1LowercaseLetterReg:_t,include1SpecialCharReg:wt,include1UppercaseLetterReg:yt},Symbol.toStringTag,{value:"Module"})),Le=({requirementRule:e,textMinLength:t})=>e==="include-min-length"&&t&&t>0,Ct=e=>{const t=[];return e&&e.length>0&&e.map(i=>{i?.requirementRule&&t.push(i.requirementRule)}),t},Xa=({rule:e,textMinLength:t=0,text:i})=>{if(!i||i===""||!e&&!t)return!1;switch(e){case"1-uppercase":return yt.test(i);case"1-lowercase":return _t.test(i);case"1-digit":return xt.test(i);case"1-special-character":return wt.test(i);case"include-min-length":return Le({requirementRule:"include-min-length",textMinLength:t})===!0&&i.length>=t;default:return!1}},kt=e=>{const t=[{requirementRule:"1-uppercase",requirementText:"Password must contain atleast 1 uppercase letter."},{requirementRule:"1-digit",requirementText:"Password must contain atleast 1 digit."},{requirementRule:"1-special-character",requirementText:"Password must contain atleast 1 special character."},{requirementRule:"1-lowercase",requirementText:"Password must contain atleast 1 lowercase letter."}];return Le({requirementRule:"include-min-length",textMinLength:e})&&t.push({requirementRule:"include-min-length",requirementText:`Password must be of minimum ${e} characters long.`}),{defaultMeterRules:Ct(t),defaultRequirementsMeterRules:t}},Ka=Object.freeze(Object.defineProperty({__proto__:null,checkRequirementRuleSatisfied:Xa,getDefaultRulesAndRequirementsForMeters:kt,getMeterRulesFromRequirements:Ct,minLengthRuleCanBeApplied:Le},Symbol.toStringTag,{value:"Module"})),Za=Object.freeze(Object.defineProperty({__proto__:null,getRequirementsMeterLabelLeadingIcon:e=>{switch(e){case"error":return"danger";case"information":return"information";case"warning":return"warning";case"success":return"positive";default:return"globe"}}},Symbol.toStringTag,{value:"Module"})),Ja=Object.freeze(Object.defineProperty({__proto__:null,inputToGidsFieldStatusForPassword:e=>{switch(e){case"error":return"error";case"success":return"success";default:return"default"}}},Symbol.toStringTag,{value:"Module"})),en=Object.freeze(Object.defineProperty({__proto__:null,showGidsOverflowContainerBottomShadow:e=>e==="bottom"||e==="top-bottom",showGidsOverflowContainerTopShadow:e=>e==="top"||e==="top-bottom"},Symbol.toStringTag,{value:"Module"})),tn="No Data!",sn=e=>`There is no data series provided for ${e}. Check the data you have passed to draw ${e}.`,Ai=100,an=50,Ni="Invalid Progress Value!",zi=e=>`The provided progress value is invalid or exceeds the maximum(${e}%) allowed capacity configuration bounds for this specific layout shape profile.`,nn="Invalid Chart Type!",rn=e=>`You have passed an invalid chart type. Valid chart types are ${e}. Pass one of these types.`,on=Object.freeze(Object.defineProperty({__proto__:null,getGidsButtonGroupClassNames:({layout:e},t)=>S("gids-button-group",{"gids-button-group--scroll":e==="scroll"},t)},Symbol.toStringTag,{value:"Module"})),ln=Object.freeze(Object.defineProperty({__proto__:null,getGidsButtonDockClassNames:e=>S("gids-button-dock",e)},Symbol.toStringTag,{value:"Module"})),dn=Object.freeze(Object.defineProperty({__proto__:null,getGidsDismissButtonClassNames:({appearance:e,size:t},i)=>S("gids-dismiss-button",{"gids-dismiss-button--sm":t==="sm","gids-dismiss-button--lg":t==="lg","gids-dismiss-button--bold":e==="bold"},i)},Symbol.toStringTag,{value:"Module"})),cn=Object.freeze(Object.defineProperty({__proto__:null,getGidsFieldClassNames:e=>S("gids-field",e)},Symbol.toStringTag,{value:"Module"})),{inputToGidsFieldStatus:hn}=$i,gn=Object.freeze(Object.defineProperty({__proto__:null,inputToGidsFieldStatus:e=>e==="implicit"||e===void 0?"implicit":hn(e)},Symbol.toStringTag,{value:"Module"})),pn=Object.freeze(Object.defineProperty({__proto__:null,getGidsStrengthMeterClassNames:e=>S("gids-strength-meter",e)},Symbol.toStringTag,{value:"Module"})),un=Object.freeze(Object.defineProperty({__proto__:null,getGidsRequirementsMeterLabelClassNames:({status:e},t)=>S("gids-requirements-meter-label",{"gids-requirements-meter-label--error":e==="error","gids-requirements-meter-label--information":e==="information","gids-requirements-meter-label--warning":e==="warning","gids-requirements-meter-label--success":e==="success"},t)},Symbol.toStringTag,{value:"Module"})),mn=Object.freeze(Object.defineProperty({__proto__:null,getGidsRequirementsMeterClassNames:e=>S("gids-requirements-meter",e)},Symbol.toStringTag,{value:"Module"})),fn=Object.freeze(Object.defineProperty({__proto__:null,getGidsHeadingClassNames:e=>S("gids-heading",e),getGidsHeadingSupportingTextTypographyClass:e=>e&&e.toString()!==""&&e!=="(none)"?`gids-typography-${e}`:""},Symbol.toStringTag,{value:"Module"})),{inputToGidsFieldStatusForPassword:bn}=Ja,vn=Object.freeze(Object.defineProperty({__proto__:null,inputToGidsFieldStatusForPassword:e=>e==="implicit"||e===void 0?"implicit":bn(e)},Symbol.toStringTag,{value:"Module"})),yn=Object.freeze(Object.defineProperty({__proto__:null,getGidsSnackbarContainerClassNames:({appearance:e},t)=>S("gids-snackbar-container",{"gids-snackbar-container--appearance-information":e==="information","gids-snackbar-container--appearance-success":e==="success","gids-snackbar-container--appearance-warning":e==="warning","gids-snackbar-container--appearance-error":e==="error"},t),getSnackbarContainerIconNames:e=>{if(e)switch(e){case"information":return"information";case"warning":return"warning";case"error":return"danger";case"success":return"positive";default:return}}},Symbol.toStringTag,{value:"Module"})),Oi=e=>{switch(e){case"bottom-left":return"component-enter-bottom-left";case"bottom-right":return"component-enter-bottom-right";case"middle-left":return"component-enter-middle-left";case"middle-right":return"component-enter-middle-right";case"top-center":return"component-enter-top-center";case"top-left":return"component-enter-top-left";case"top-right":return"component-enter-top-right";default:return"component-enter-bottom-center"}},Ri=e=>{switch(e){case"bottom-left":return"component-exit-bottom-left";case"bottom-right":return"component-exit-bottom-right";case"middle-left":return"component-exit-middle-left";case"middle-right":return"component-exit-middle-right";case"top-center":return"component-exit-top-center";case"top-left":return"component-exit-top-left";case"top-right":return"component-exit-top-right";default:return"component-exit-bottom-center"}},_n=Object.freeze(Object.defineProperty({__proto__:null,getComponentClasses:({position:e,id:t,exitingComponents:i})=>i.includes(t)?Ri(e):Oi(e),getComponentEntryClasses:Oi,getComponentExitClasses:Ri,getComponentStackClasses:({position:e})=>{switch(e){case"bottom-left":return"common-component-stack component-stack-bottom-left";case"bottom-right":return"common-component-stack component-stack-bottom-right";case"middle-left":return"common-component-stack component-stack-middle-left";case"middle-right":return"common-component-stack component-stack-middle-right";case"top-center":return"common-component-stack component-stack-top-center";case"top-left":return"common-component-stack component-stack-top-left";case"top-right":return"common-component-stack component-stack-top-right";default:return"common-component-stack component-stack-bottom-center"}}},Symbol.toStringTag,{value:"Module"})),xn=Object.freeze(Object.defineProperty({__proto__:null,getGidsNotificationContainerClassNames:({appearance:e},t)=>S("gids-notification-container",{"gids-notification-container--appearance-information":e==="information","gids-notification-container--appearance-success":e==="success","gids-notification-container--appearance-warning":e==="warning","gids-notification-container--appearance-error":e==="error"},t),getNotificationContainerIconNames:e=>{if(e)switch(e){case"information":return"information";case"warning":return"warning";case"error":return"danger";case"success":return"positive";default:return}}},Symbol.toStringTag,{value:"Module"})),wn=Object.freeze(Object.defineProperty({__proto__:null,getGidsScrimClassNames:e=>S("gids-scrim",e)},Symbol.toStringTag,{value:"Module"})),Cn=Object.freeze(Object.defineProperty({__proto__:null,getGidsFeedbackBlockClassNames:e=>S("gids-feedback-block",e)},Symbol.toStringTag,{value:"Module"})),kn=Object.freeze(Object.defineProperty({__proto__:null,getGidsEditButtonClassNames:({size:e},t)=>S("gids-edit-button",{"gids-edit-button--xs":e==="xs","gids-edit-button--sm":e==="sm","gids-edit-button--lg":e==="lg"},t)},Symbol.toStringTag,{value:"Module"})),Sn=Object.freeze(Object.defineProperty({__proto__:null,getGidsListItemClassNames:({disabled:e,selected:t},i)=>S("gids-list-item",{"gids-list-item--selected":t,"gids-list-item--disabled":e},i)},Symbol.toStringTag,{value:"Module"})),En=Object.freeze(Object.defineProperty({__proto__:null,getGidsChevronButtonClassNames:({size:e},t)=>S("gids-chevron-button",{"gids-chevron-button--sm":e==="sm","gids-chevron-button--md":e==="md","gids-chevron-button--lg":e==="lg"},t)},Symbol.toStringTag,{value:"Module"})),Pn=Object.freeze(Object.defineProperty({__proto__:null,getGidsDropdownItemClassNames:e=>S("gids-dropdown-item",e)},Symbol.toStringTag,{value:"Module"})),Tn=Object.freeze(Object.defineProperty({__proto__:null,getGidsDropdownMenuClassNames:e=>S("gids-dropdown-menu",e)},Symbol.toStringTag,{value:"Module"})),Ln=Object.freeze(Object.defineProperty({__proto__:null,getGidsDropdownMenuGroupClassNames:({type:e},t)=>S("gids-dropdown-menu-group",{"gids-dropdown-menu-group--default":e==="default","gids-dropdown-menu-group--no-options":e==="no-options","gids-dropdown-menu-group--loading":e==="loading"},t)},Symbol.toStringTag,{value:"Module"})),In=Object.freeze(Object.defineProperty({__proto__:null,getGidsChevronButtonControlClassNames:({size:e},t)=>S("gids-chevron-button-control",{"gids-chevron-button-control--small":e==="sm","gids-chevron-button-control--large":e==="lg"},t),getGidsDropdownClassNames:({expanded:e},t)=>S("gids-dropdown",{"gids-dropdown--expanded":e},t)},Symbol.toStringTag,{value:"Module"})),Mn=Object.freeze(Object.defineProperty({__proto__:null,getGidsCalendarCellClassNames:({disabled:e,selected:t,today:i,cellType:s,dot:a},n)=>S("gids-calendar-cell",{"gids-calendar-cell--selected":t&&!e&&!i,"gids-calendar-cell--today":i&&!e&&!a,"gids-calendar-cell--label-non-effective":s==="non-effective","gids-calendar-cell--default-effective":s==="effective"&&!e&&!i&&!t,"gids-calendar-cell--selected-effective":t&&s==="effective"&&!e&&!i,"gids-calendar-cell--today-effective":i&&s==="effective"&&!e&&!a,"gids-calendar-cell--default-disabled":e&&!i&&!t,"gids-calendar-cell--selected-disabled":e&&t&&!i,"gids-calendar-cell--today-disabled":e&&i&&!a,"gids-calendar-cell--today-dot":i&&!e&&a,"gids-calendar-cell--today-dot-effective":i&&s==="effective"&&!e&&a,"gids-calendar-cell--today-dot-disabled":e&&i&&a},n)},Symbol.toStringTag,{value:"Module"})),Dn=Object.freeze(Object.defineProperty({__proto__:null,getGidsDotClassNames:({appearance:e,size:t,disabled:i},s)=>S("gids-dot",{"gids-dot--disabled":i,"gids-dot--subtle":e==="subtle"&&!i,"gids-dot--static-inverse":e==="static-inverse"&&!i,"gids-dot--sm":t==="sm","gids-dot--md":t==="md","gids-dot--lg":t==="lg","gids-dot--xl":t==="xl","gids-dot--2xl":t==="2xl","gids-dot--3xl":t==="3xl"},s)},Symbol.toStringTag,{value:"Module"})),$n=Object.freeze(Object.defineProperty({__proto__:null,getGidsCalendarDayCellClassNames:e=>S("gids-calendar-day-cell",e)},Symbol.toStringTag,{value:"Module"})),An=Object.freeze(Object.defineProperty({__proto__:null,getGidsCalendarMonthListClassNames:e=>S("gids-calendar-month-list",e),getGidsCalendarMonthListMonths:()=>{const e=[],t=new Intl.DateTimeFormat("en-US",{month:"long"});for(let i=1;i<=12;i+=1){const s=new Date(2e3,i-1,1),a=t.format(s);e.push({id:`${i}`,title:a,value:i})}return e}},Symbol.toStringTag,{value:"Module"})),Nn=Object.freeze(Object.defineProperty({__proto__:null,getGidsCalendarYearListClassNames:e=>S("gids-calendar-year-list",e),getGidsCalendarYearListYears:({startYear:e,endYear:t})=>{const i=[];let s=1;for(let a=e;a<=t;a+=1)i.push({id:`${s}_${a}`,title:`${a}`,value:a}),s=s+1;return i},isValidFourDigitYear:e=>{const t=e.toString().trim();if(!/^\d{4}$/.test(t))return!1;const s=parseInt(t,10);return s>=1e3&&s<=9999}},Symbol.toStringTag,{value:"Module"})),zn=Object.freeze(Object.defineProperty({__proto__:null,getGidsDropdownPickerClassNames:({expanded:e},t)=>S("gids-dropdown-picker",{"gids-dropdown-picker--expanded":e},t)},Symbol.toStringTag,{value:"Module"})),Fi=Object.freeze(Object.defineProperty({__proto__:null,getCalendarMonthNameViaMonthNumber:(e,t="en-US")=>{const i=new Date(2e3,e-1,1);return new Intl.DateTimeFormat(t,{month:"long"}).format(i)},getGidsCalendarHeaderPanelClassNames:e=>S("gids-calendar-header-panel",e)},Symbol.toStringTag,{value:"Module"})),On=Object.freeze(Object.defineProperty({__proto__:null,generateCalendarDays:({currentMonth:e,currentYear:t})=>{if(!t||!e)return[];const i=t,s=e-1,a=new Date(i,s,1).getDay(),n=new Date(i,s+1,0).getDate(),o=new Date(i,s,0).getDate(),l=[],d=new Date().toISOString().split("T")[0];for(let c=a-1;c>=0;c--){const h=o-c,p=s===0?12:s,u=`${s===0?i-1:i}-${String(p).padStart(2,"0")}-${String(h).padStart(2,"0")}`;l.push({day:h,isCurrentMonth:!1,dateString:u,isToday:d===u})}for(let c=1;c<=n;c++){const h=`${i}-${String(e).padStart(2,"0")}-${String(c).padStart(2,"0")}`;l.push({day:c,isCurrentMonth:!0,dateString:h,isToday:d===h})}const g=42-l.length;for(let c=1;c<=g;c++){const h=s===11?1:s+2,m=`${s===11?i+1:i}-${String(h).padStart(2,"0")}-${String(c).padStart(2,"0")}`;l.push({day:c,isCurrentMonth:!1,dateString:m,isToday:d===m})}return l},generateCalendarWeekdays:()=>["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],getGidsCalendarClassNames:({width:e},t)=>S("gids-calendar",{"gids-calendar--width-fixed":e==="fixed","gids-calendar--width-intrinsic":e==="intrinsic"},t)},Symbol.toStringTag,{value:"Module"})),Rn=Object.freeze(Object.defineProperty({__proto__:null,getGidsChartLegendItemClassNames:({seriesType:e,orientation:t},i)=>S("gids-chart-legend-item",{"gids-chart-legend-item--series-2":e==="2","gids-chart-legend-item--series-3":e==="3","gids-chart-legend-item--series-4":e==="4","gids-chart-legend-item--series-5":e==="5","gids-chart-legend-item--series-6":e==="6","gids-chart-legend-item--orientation-vertical":t==="vertical"},i)},Symbol.toStringTag,{value:"Module"})),Fn=Object.freeze(Object.defineProperty({__proto__:null,getGidsChartLegendClassNames:({orientation:e},t)=>S("gids-chart-legend",{"gids-chart-legend--orientation-vertical":e==="vertical"},t)},Symbol.toStringTag,{value:"Module"})),Gn=Object.freeze(Object.defineProperty({__proto__:null,getGidsLineChartClassNames:({breakpoint:e},t)=>S("gids-line-chart",{"gids-line-chart--breakpoint-mobile":e==="mobile"},t)},Symbol.toStringTag,{value:"Module"})),Vn=Object.freeze(Object.defineProperty({__proto__:null,getGidsBarChartClassNames:({breakpoint:e},t)=>S("gids-bar-chart",{"gids-bar-chart--breakpoint-mobile":e==="mobile"},t)},Symbol.toStringTag,{value:"Module"})),jn=Object.freeze(Object.defineProperty({__proto__:null,getGidsPieChartClassNames:({breakpoint:e},t)=>S("gids-pie-chart",{"gids-pie-chart--breakpoint-mobile":e==="mobile"},t)},Symbol.toStringTag,{value:"Module"})),Yn=Object.freeze(Object.defineProperty({__proto__:null,getGidsLevelGaugeClassNames:({breakpoint:e},t)=>S("gids-level-gauge",{"gids-level-gauge--breakpoint-mobile":e==="mobile"},t)},Symbol.toStringTag,{value:"Module"})),Bn=Object.freeze(Object.defineProperty({__proto__:null,getGidsProgressCircleClassNames:({breakpoint:e},t)=>S("gids-progress-circle",{"gids-progress-circle--breakpoint-mobile":e==="mobile"},t)},Symbol.toStringTag,{value:"Module"})),qn=Object.freeze(Object.defineProperty({__proto__:null,getGidsActivityGaugeClassNames:({breakpoint:e},t)=>S("gids-activity-gauge",{"gids-activity-gauge--breakpoint-mobile":e==="mobile"},t)},Symbol.toStringTag,{value:"Module"})),Hn=Object.freeze(Object.defineProperty({__proto__:null,getGidsChartClassNames:e=>S("gids-chart",e)},Symbol.toStringTag,{value:"Module"})),St=Symbol("defaultPath"),Gi=Symbol("pathSet"),Et="gids-asset-paths-set";class Wn extends EventTarget{#e=new Map;constructor(){super()}#t(t,i){this.#e.set(t,i)}#i(t){return this.#e.get(t)??null}#s=()=>{this.dispatchEvent(new Event(Et))};haveAssetPathsBeenSet(){return this.#i(Gi)!==null}setAssetPaths(t,i){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#t(St,t);else{for(const s in t)this.#t(s,t[s]);i&&this.#t(St,i)}this.#t(Gi,"true"),setTimeout(this.#s,0)}}getAssetFilePath(t){const i=this.#i(t);if(i===null){const s=this.#i(St);if(s!==null)return`${s}${s.endsWith("/")?"":"/"}${t}`}return i}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(Et,t,{once:!0}),()=>{this.removeEventListener(Et,t)}}}const Pt=Symbol.for("GIDS"),Un=()=>(globalThis[Pt]===void 0&&(globalThis[Pt]={assetPaths:{}}),globalThis[Pt]),Qn=e=>{const t=Un().assetPaths;return t[e]===void 0&&(t[e]=new Wn),t[e]};function We(){return Qn("@ganpatiinfo/gids-web-shared")}function Xn(){return We().haveAssetPathsBeenSet()}function Kn(e,t){We().setAssetPaths(e,t)}function Vi(e){return We().getAssetFilePath(e)}function Zn(e){return We().onAssetPathsSet(e)}let Jn=0;const Ue=(e,t="gids")=>e||`${t}-${Jn++}`,er=e=>e.type==="hidden",tr=e=>{if(!(e instanceof HTMLElement))return!1;const{nodeName:t}=e;return!!(["BUTTON","DETAILS","EMBED","IFRAME","KEYGEN","LABEL","SELECT","TEXTAREA"].includes(t)||t==="A"&&e.hasAttribute("href")||e instanceof HTMLInputElement&&!er(e)||["AUDIO","VIDEO"].includes(t)&&e.hasAttribute("controls")||["IMG","OBJECT"].includes(t)&&e.hasAttribute("usemap")||e.hasAttribute("tabindex")&&e.tabIndex>-1)},ji=e=>e!==void 0&&(!Array.isArray(e)||e.length>0),{getGidsSpinnerControlClassNames:ir}=Ra,{calculateStrokeDasharray:sr,thickness:Yi,radius:Bi,centerPosition:Qe,viewBox:ar}=Ua,Tt=({size:e,indeterminate:t,value:i,max:s,...a})=>{let n;return t||(n={strokeDashArray:sr(i,s||0),strokeDashoffset:"0"}),r("svg",{class:ir({size:e,indeterminate:t,value:i}),viewBox:ar,...a},r("circle",{class:"gids-spinner-control__track",cx:Qe,cy:Qe,r:Bi,"stroke-width":Yi}),r("circle",{style:n,class:"gids-spinner-control__progress",cx:Qe,cy:Qe,r:Bi,"stroke-width":Yi}))},{getGidsSpinnerClassNames:nr}=Fa,{getElementVisibility:rr}=qa,ae=({label:e,supportingText:t,size:i,indeterminate:s,value:a,max:n,class:o,...l})=>{const{hasLabel:d,hasSupportingText:g}=rr({label:e,supportingText:t});return r("span",{class:nr({size:i},o),...l},r(Tt,{size:i,indeterminate:s,value:a,max:n}),d&&r("span",{class:"gids-spinner__label"},e),g&&r("span",{class:"gids-spinner__supporting-text"},t))},{getGidsChartLegendClassNames:or}=Fn,qi=P(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.orientation="horizontal"}handleOrientationChange(e){this.orientation=e}render(){const e=or({orientation:this.orientation});return r("div",{key:"cf7740304d4b3616d7bc15d2a2009c537665bbc7",class:e},r("slot",{key:"940d3744a6ea0da0684ff2d16c9734e8d265b485"}))}static get watchers(){return{orientation:[{handleOrientationChange:0}]}}static get style(){return".gids-chart-legend{display:inline-flex;align-items:flex-start;gap:var(--gids-gap-150)}.gids-chart-legend--orientation-vertical{flex-direction:column;gap:var(--gids-gap-050)}"}},[260,"gids-chart-legend",{orientation:[1]},void 0,{orientation:[{handleOrientationChange:0}]}]);function me(){typeof customElements<"u"&&["gids-chart-legend"].forEach((e=>{e==="gids-chart-legend"&&(customElements.get(e)||customElements.define(e,qi))}))}me();const Hi={"icons-other.svg":["accessibility","add","remove","announcement","approval","archive","audio","backward","banking","battery","bluetooth","bookmark","bulb","calendar","camera","card","cart","chart","chat","cloud","code","compass","desktop","email","emergency","exchange","finance","fingerprint","flag","folder","forward","gift","globe","goals","happy","hashtag","headphones","history","image","insurance","investment","in-progress","key","link","list","location","lock","map","maximise","microphone","minimise","mobile","moon","network","neutral","ai","new","draft","pending","new-chat","pause","percent","placeholder","play","power","rain","refresh","repeat","sad","save","savings","shield","shuffle","side-navigation","snow","speaker","stop","sun","tablet","temperature","thumbs-down","thumbs-up","travel","trend-down","trend-up","unlock","upset","verified","very-happy","video","volume-down","volume-max","volume-min","volume-mute","volume-up","wallet","wealth","wi-fi","wind"],"icons-core.svg":["arrow-down","arrow-left","arrow-right","arrow-up","attachment","checkmark","chevron-down","chevron-horizontal","chevron-left","chevron-right","chevron-up","chevron-vertical","copy","cross","danger","dashboard","delete","document","download","drag","edit","external","eye","filter","grid","hide","home","information","log-in","log-out","menu","minus","more","notifications","options","phone","plus","positive","printer","question","syncing","search","select","select-all","send","settings","share","star","time","upload","user","users","warning"]},Wi=new Map;for(const e in Hi)for(const t of Hi[e])Wi.set(t,e);function lr(e){return Wi.get(e)}function Ui(e,t="regular",i){const s=lr(e);let a=s??"";return i&&s&&(a=i(s)??s),`${a}#${e}${t==="filled"?"--filled":""}`}const{getGidsIconClassNames:dr}=Ga,D=({name:e,size:t,appearance:i,alt:s,class:a,titleId:n,src:o,...l})=>{const d=Ue(n);let g=o;return g===void 0&&Xn()&&(g=Ui(e,i,Vi)),r("svg",{ref:c=>{g===void 0&&Zn((()=>{(function(h,p,m){if(!h)return;const u=document.createElementNS("http://www.w3.org/2000/svg","use");u.setAttribute("href",Ui(p,m,Vi)),h.appendChild(u)})(c,e,i)}))},width:"16",height:"16",class:dr({size:t},a),role:"img","aria-hidden":s===""?"true":void 0,"aria-labelledby":s===""?void 0:d,...l},s!==""&&r("title",{id:d},s||e),g!==void 0?r("use",{href:g}):null)},{getGidsChartLegendItemClassNames:cr}=Rn,Qi=P(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.orientation="horizontal",this.seriesType="1"}handleOrientationChange(e){this.orientation=e}handleSeriesTypeChange(e){this.seriesType=e}render(){const e=cr({seriesType:this.seriesType,orientation:this.orientation});return r("div",{key:"8878b090e147405a847be15581708ec707a806b1",class:e},r("div",{key:"8ac35d56d1e31cbc613490bec5e5d5a698c5aa7c",class:this.orientation==="vertical"?"gids-chart-legend-item__dot-wrapper-vertical":"gids-chart-legend-item__dot-wrapper-horizontal"},r(D,{key:"2edad86b9fd18809923775308e580f39688a7f47",name:"new",alt:"new_icon",appearance:"filled"})),r("span",{key:"db1611c5d945b5e470623d0ac1c93a3bfd24f1e7",class:"gids-chart-legend-item__label"},r("slot",{key:"e3ad93df0b136e4f80a214131caf77c01dac9049"})))}static get watchers(){return{orientation:[{handleOrientationChange:0}],seriesType:[{handleSeriesTypeChange:0}]}}static get style(){return".gids-chart-legend-item{display:flex;align-items:center;gap:var(--gids-gap-100);--gidsChartLegendItemIcon-color:var(--gids-color-icon-subtle);--gidsIcon-color:var(--gidsChartLegendItemIcon-color);--gidsIcon-height:var(--gids-size-080)}.gids-chart-legend-item--orientation-vertical{display:flex}.gids-chart-legend-item--series-2{--gidsChartLegendItemIcon-color:var(--gids-color-icon-warning)}.gids-chart-legend-item--series-3{--gidsChartLegendItemIcon-color:var(--gids-color-icon-danger)}.gids-chart-legend-item--series-4{--gidsChartLegendItemIcon-color:var(--gids-color-background-positive-bold-hovered)}.gids-chart-legend-item--series-5{--gidsChartLegendItemIcon-color:var(--gids-color-background-information-bold-default)}.gids-chart-legend-item--series-6{--gidsChartLegendItemIcon-color:rgb(238, 70, 188)}.gids-chart-legend-item__label{font-family:var(--gids-typography-label-small__font-family);font-size:var(--gids-typography-label-small__font-size);font-weight:var(--gids-typography-label-small__font-weight);letter-spacing:var(--gids-typography-label-small__letter-spacing);line-height:var(--gids-typography-label-small__line-height);text-transform:var(--gids-typography-label-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-small__font-variant-caps, inherit);text-align:left;color:var(--gids-color-text-subtlest)}.gids-chart-legend-item__dot-wrapper-vertical{display:flex;padding-top:var(--gids-padding-vertical-edge-to-element-075)}.gids-chart-legend-item__dot-wrapper-horizontal{display:flex;align-items:center}"}},[260,"gids-chart-legend-item",{orientation:[1],seriesType:[1,"series-type"]},void 0,{orientation:[{handleOrientationChange:0}],seriesType:[{handleSeriesTypeChange:0}]}]);function fe(){typeof customElements<"u"&&["gids-chart-legend-item"].forEach((e=>{e==="gids-chart-legend-item"&&(customElements.get(e)||customElements.define(e,Qi))}))}fe();const{getGidsActivityGaugeClassNames:hr}=qn,Xi=P(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.breakpoint="desktop",this.chartData=[],this.label="",this.size="xs",this.legend="none",this.chartLoaderSize="lg",this.chartLoading=!1,this.width=0,this.height=0}chartDataChanged(){this.updateDimensions()}legendChanged(e){this.legend=e}componentDidLoad(){this.updateDimensions(),this.resizeObserver=new ResizeObserver((()=>this.updateDimensions())),this.hostElement.parentElement&&this.resizeObserver.observe(this.hostElement.parentElement)}disconnectedCallback(){this.resizeObserver&&this.resizeObserver.disconnect()}updateDimensions(){const e=this.hostElement.getBoundingClientRect();this.width=e.width,this.height=e.height>0?e.height:240}render(){if(this.chartLoading)return r("div",{class:"gids-activity-gauge__no-data"},r(ae,{label:this.chartLoadingTitle,supportingText:this.chartLoadingSupportingText,size:this?.chartLoaderSize??"lg"}));const e=this.chartData.map((c=>c.value||0)),t=e.length>0?Math.max(...e):0,i=Math.max(1e3,t),s=i.toLocaleString(),a=hr({breakpoint:this.breakpoint}),n=[{radius:42,strokeWidth:5.5},{radius:34,strokeWidth:5.5},{radius:26,strokeWidth:5.5}],o=this.size==="xxs",l=typeof this.label=="string"&&this.label.trim()!=="",d=this.legend&&this.legend==="right"&&this.breakpoint!=="mobile",g=this.legend&&(this.legend==="bottom"||this.breakpoint==="mobile");return r("div",{class:a},r("div",{class:"gids-activity-gauge__main-container"},r("div",{class:"gids-activity-gauge__chart-stage-container"},r("div",{class:`gids-activity-gauge__svg-wrapper gids-activity-gauge--size-${this.size}`},r("svg",{viewBox:"0 0 100 100",class:"gids-activity-gauge__chart-vector"},this.chartData.slice(0,3).map(((c,h)=>{const p=n[h]||n[0]||{radius:26,strokeWidth:5.5},m=i>0?Math.min(Math.max((c.value||0)/i,0),1):0,u=2*Math.PI*p.radius,f=`${m*u} ${u}`;return r("g",{key:c.label||h},r("circle",{cx:"50",cy:"50",r:p.radius,"stroke-width":p.strokeWidth,class:"gids-activity-gauge__track-background"}),r("circle",{cx:"50",cy:"50",r:p.radius,"stroke-width":p.strokeWidth,class:`gids-activity-gauge__segment gids-activity-gauge__segment-series-${h+1}`,"stroke-dasharray":f,"stroke-dashoffset":"0",transform:"rotate(-90 50 50)"}))}))),r("div",{class:"gids-activity-gauge__center-content"},l&&!o?r("span",{class:`gids-activity-gauge__label-common gids-activity-gauge__label-${this.size}`},this.label):null,r("span",{class:`gids-activity-gauge__value-common gids-activity-gauge__value-${this.size}`},s)))),d?r("div",{class:"gids-activity-gauge__sidebar"},r("gids-chart-legend",{orientation:"vertical"},this.chartData.slice(0,3).map(((c,h)=>r("gids-chart-legend-item",{key:c.label,seriesType:`${h+1}`,orientation:"vertical"},c.label))))):null),o&&l?r("div",{class:"gids-activity-gauge__bottom-content"},r("span",{class:`gids-activity-gauge__label-common gids-activity-gauge__label-${this.size}`},this.label)):null,g?r("div",{class:"gids-activity-gauge__legend-container gids-activity-gauge__legend-container--bottom"},r("gids-chart-legend",{orientation:"horizontal"},this.chartData.slice(0,3).map(((c,h)=>r("gids-chart-legend-item",{key:c.label,seriesType:`${h+1}`,orientation:"horizontal"},c.label))))):null)}get hostElement(){return this}static get watchers(){return{chartData:[{chartDataChanged:0}],legend:[{legendChanged:0}]}}static get style(){return":host{display:block;width:100%;height:100%;box-sizing:border-box}.gids-activity-gauge{display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;height:100%;box-sizing:border-box}.gids-activity-gauge--breakpoint-mobile{max-width:var(--gids-width-xs)}.gids-activity-gauge__main-container{display:inline-flex;justify-content:center;gap:var(--gids-gap-200);width:100%;height:100%}.gids-activity-gauge__svg-wrapper{position:relative;display:block;flex-shrink:0}.gids-activity-gauge--size-xxs{width:180px;height:180px}.gids-activity-gauge--size-xs{width:220px;height:220px}.gids-activity-gauge--size-sm{width:260px;height:260px}.gids-activity-gauge--size-md{width:300px;height:300px}.gids-activity-gauge--size-lg{width:340px;height:340px}.gids-activity-gauge__chart-stage-container{display:flex;justify-content:center;align-items:center}.gids-activity-gauge__chart-vector{display:block;width:100%;height:100%}.gids-activity-gauge__track-background{fill:none;stroke:var(--gids-color-background-brand-subtlest-default);stroke-linecap:round}.gids-activity-gauge__segment{fill:none;stroke-linecap:round;transition:stroke-dasharray 0.4s ease-out}.gids-activity-gauge__segment.gids-activity-gauge__segment-series-1{stroke:var(--gids-color-icon-subtle)}.gids-activity-gauge__segment.gids-activity-gauge__segment-series-2{stroke:var(--gids-color-icon-warning)}.gids-activity-gauge__segment.gids-activity-gauge__segment-series-3{stroke:var(--gids-color-icon-danger)}.gids-activity-gauge__center-content{position:absolute;top:0;bottom:0;left:0;right:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;pointer-events:none}.gids-activity-gauge__label-xxs{font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit)}.gids-activity-gauge__label-xs{font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit)}.gids-activity-gauge__label-sm{font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit)}.gids-activity-gauge__label-md{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)}.gids-activity-gauge__label-lg{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)}.gids-activity-gauge__label-common{color:var(--gids-color-text-subtlest)}.gids-activity-gauge__value-xxs{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)}.gids-activity-gauge__value-xs{font-family:var(--gids-typography-display-x-small__font-family);font-size:var(--gids-typography-display-x-small__font-size);font-weight:var(--gids-typography-display-x-small__font-weight);letter-spacing:var(--gids-typography-display-x-small__letter-spacing);line-height:var(--gids-typography-display-x-small__line-height);text-transform:var(--gids-typography-display-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-display-x-small__font-variant-caps, inherit)}.gids-activity-gauge__value-sm{font-family:var(--gids-typography-display-x-small__font-family);font-size:var(--gids-typography-display-x-small__font-size);font-weight:var(--gids-typography-display-x-small__font-weight);letter-spacing:var(--gids-typography-display-x-small__letter-spacing);line-height:var(--gids-typography-display-x-small__line-height);text-transform:var(--gids-typography-display-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-display-x-small__font-variant-caps, inherit)}.gids-activity-gauge__value-md{font-family:var(--gids-typography-display-small__font-family);font-size:var(--gids-typography-display-small__font-size);font-weight:var(--gids-typography-display-small__font-weight);letter-spacing:var(--gids-typography-display-small__letter-spacing);line-height:var(--gids-typography-display-small__line-height);text-transform:var(--gids-typography-display-small__text-transform, inherit);font-variant-caps:var(--gids-typography-display-small__font-variant-caps, inherit)}.gids-activity-gauge__value-lg{font-family:var(--gids-typography-display-small__font-family);font-size:var(--gids-typography-display-small__font-size);font-weight:var(--gids-typography-display-small__font-weight);letter-spacing:var(--gids-typography-display-small__letter-spacing);line-height:var(--gids-typography-display-small__line-height);text-transform:var(--gids-typography-display-small__text-transform, inherit);font-variant-caps:var(--gids-typography-display-small__font-variant-caps, inherit)}.gids-activity-gauge__value-common{color:var(--gids-color-text-default)}.gids-activity-gauge__bottom-content{display:flex;justify-content:center;align-items:center;text-align:center}.gids-activity-gauge__no-data{display:flex;align-items:center;justify-content:center;padding:var(--gids-padding-vertical-edge-to-element-300) var(--gids-padding-horizontal-edge-to-element-100);width:100%;height:100%;min-height:200px;color:var(--gids-color-text-subtlest);border:var(--gids-border-width-thin) dashed var(--gids-color-border-default);border-radius:var(--gids-border-radius-md)}"}},[0,"gids-activity-gauge",{breakpoint:[1],chartData:[16],label:[1],size:[1],legend:[1],chartLoaderSize:[1,"chart-loader-size"],chartLoading:[4,"chart-loading"],chartLoadingTitle:[1,"chart-loading-title"],chartLoadingSupportingText:[1,"chart-loading-supporting-text"],width:[32],height:[32]},void 0,{chartData:[{chartDataChanged:0}],legend:[{legendChanged:0}]}]);function Ki(){typeof customElements<"u"&&["gids-activity-gauge","gids-chart-legend","gids-chart-legend-item"].forEach((e=>{switch(e){case"gids-activity-gauge":customElements.get(e)||customElements.define(e,Xi);break;case"gids-chart-legend":customElements.get(e)||me();break;case"gids-chart-legend-item":customElements.get(e)||fe()}}))}Ki();const gr=Xi,{getGidsBarChartClassNames:pr}=Vn,Zi=P(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.breakpoint="desktop",this.legend="none",this.chartData=[],this.yAxisVisible=!1,this.dataPoints=[],this.chartLoaderSize="lg",this.chartLoading=!1,this.width=0,this.height=0}chartDataChanged(){this.updateDimensions()}dataPointsChanged(e){this.dataPoints=e}legendChanged(e){this.legend=e}yAxisVisibilityChanged(e){this.yAxisVisible=e}componentDidLoad(){this.updateDimensions(),this.resizeObserver=new ResizeObserver((()=>this.updateDimensions())),this.hostElement.parentElement&&this.resizeObserver.observe(this.hostElement.parentElement)}disconnectedCallback(){this.resizeObserver&&this.resizeObserver.disconnect()}updateDimensions(){const e=this.hostElement.getBoundingClientRect();this.width=e.width,this.height=e.height>0?e.height:300}render(){if(this.chartLoading)return r("div",{class:"gids-bar-chart__no-data"},r(ae,{label:this.chartLoadingTitle,supportingText:this.chartLoadingSupportingText,size:this?.chartLoaderSize??"lg"}));const e=this?.chartData?.[0]?.data?.map((u=>u.label))??[],t=e.length,i=Array(t).fill(0);this.chartData.forEach((u=>{Array.isArray(u?.data)&&u.data.forEach(((f,v)=>{v<t&&(i[v]=(i[v]??0)+(f?.value||0))}))}));const s=i.length>0?Math.max(...i):10,a=Math.pow(10,Math.floor(Math.log10(s||1)));let n=a;s/a<=2?n=a/5:s/a<=5&&(n=a/2);const o=Math.ceil(s/n)*n,l=[];if(Array.isArray(this.dataPoints)&&this.dataPoints.length>0){const u=[...this.dataPoints].sort(((y,b)=>y-b)),f=u.length>1?(u[1]??200)-(u[0]??0):200,v=Math.max(...u,o,...i),_=Math.ceil(v/(f||1));for(let y=0;y<=_;y++)l.push(y*f)}else{const f=o/4;for(let v=0;v<5;v++)l.push(Math.round(0+v*f))}const d=Math.max(...l)-0||1,g=pr({breakpoint:this.breakpoint});let c=!1,h=!1;this.breakpoint==="mobile"?this.legend!=="none"&&(c=!0):this.legend==="top"?c=!0:this.legend==="right"&&(h=!0);const p=100/t,m=.4*p;return r("div",{class:g},c?r("div",{class:"gids-bar-chart__header"},r("gids-chart-legend",{orientation:"horizontal"},this.chartData.map(((u,f)=>r("gids-chart-legend-item",{key:u.label,seriesType:`${f+1}`,orientation:"horizontal"},u.label))))):null,r("div",{class:"gids-bar-chart__main-container"},r("div",{class:"gids-bar-chart__grid-layout"},r("span",{class:"gids-bar-chart__y-axis-label"},this.yAxisLabel),r("div",{class:"gids-bar-chart__chart-stage-container"},this.yAxisVisible?r("div",{class:"gids-bar-chart__y-axis-scale-container"},l.map((u=>r("span",{class:"gids-bar-chart__scale-text gids-bar-chart__y-axis-scale-value",key:u,style:{bottom:(u-0)/d*100+"%"}},u)))):null,r("div",{class:"gids-bar-chart__chart-stage"},r("svg",{viewBox:"0 0 100 100",class:"gids-bar-chart__chart-vector",preserveAspectRatio:"none"},l.map((u=>{const f=100-(u-0)/d*100;return r("line",{x1:"0",y1:f,x2:"100",y2:f,class:"gids-bar-chart__grid-line",key:u})})),e.map(((u,f)=>{const v=f*p+(p-m)/2;let _=0;const y=[...this.chartData.map(((b,w)=>{if(!Array.isArray(b.data))return null;const x=b.data[f];if(!x)return null;const k=(x.value||0)/d*100,T=100-k-_;return _+=k,{seriesIdx:w,crownY:T,height:k}})).filter((b=>b!==null&&b.height>0))].sort(((b,w)=>w.seriesIdx-b.seriesIdx));return r("g",{key:f},y.map((b=>{const w=.3*m,x=`
6
+ M ${v},${b.crownY+w}
7
+ Q ${v},${b.crownY} ${v+w},${b.crownY}
8
+ H ${v+m-w}
9
+ Q ${v+m},${b.crownY} ${v+m},${b.crownY+w}
10
+ V 100
11
+ H ${v}
12
+ Z
13
+ `.replace(/\s+/g," ").trim();return r("path",{key:b.seriesIdx,d:x,class:`gids-bar-chart__bar gids-bar-chart__series-bar-${b.seriesIdx+1}`})})))}))))),r("div",{class:"gids-bar-chart__x-axis-scale-container"},e.map(((u,f)=>r("span",{class:"gids-bar-chart__scale-text",key:f},u)))),r("span",{class:"gids-bar-chart__x-axis-label"},this.xAxisLabel)),h?r("gids-chart-legend",{orientation:"vertical"},this.chartData.map(((u,f)=>r("gids-chart-legend-item",{key:u.label,seriesType:`${f+1}`,orientation:"vertical"},u.label)))):null))}get hostElement(){return this}static get watchers(){return{chartData:[{chartDataChanged:0}],dataPoints:[{dataPointsChanged:0}],legend:[{legendChanged:0}],yAxisVisible:[{yAxisVisibilityChanged:0}]}}static get style(){return":host{display:block;width:100%;height:100%;box-sizing:border-box}.gids-bar-chart{display:flex;flex-direction:column;width:100%;height:100%;box-sizing:border-box}.gids-bar-chart--breakpoint-mobile{max-width:var(--gids-width-xs)}.gids-bar-chart__main-container{display:flex;gap:var(--gids-gap-200)}.gids-bar-chart__header{display:flex;justify-content:flex-end;align-items:center;width:100%;margin-bottom:var(--gids-padding-vertical-edge-to-element-200)}.gids-bar-chart__grid-layout{display:grid;grid-template-columns:auto 1fr;grid-template-rows:minmax(180px, 280px) auto auto;flex:1;width:100%;height:100%;box-sizing:border-box}.gids-bar-chart__y-axis-label{grid-column:1;grid-row:1;display:flex;align-items:center;justify-content:center;margin-right:var(--gids-padding-horizontal-edge-to-element-150);font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit);color:var(--gids-color-text-subtlest);writing-mode:vertical-rl;transform:rotate(180deg);white-space:nowrap}.gids-bar-chart__chart-stage-container{grid-column:2;grid-row:1;position:relative;width:100%;height:100%;padding-left:var(--gids-container-padding-desktop);box-sizing:border-box}.gids-bar-chart__y-axis-scale-container{position:absolute;top:0;bottom:0;left:0;width:calc(var(--gids-container-padding-desktop) - var(--gids-padding-horizontal-edge-to-element-100));pointer-events:none}.gids-bar-chart__y-axis-scale-value{position:absolute;right:0;transform:translateY(50%)}.gids-bar-chart__chart-stage{position:relative;width:100%;height:100%;border-bottom:var(--gids-border-width-thin) solid var(--gids-color-border-default);box-sizing:border-box}.gids-bar-chart__chart-vector{display:block;width:100%;height:100%;overflow:visible}.gids-bar-chart__grid-line{stroke:var(--gids-color-border-default);stroke-width:0.5;fill:none}.gids-bar-chart{}.gids-bar-chart__bar{vector-effect:non-scaling-stroke;}.gids-bar-chart__bar.gids-bar-chart__series-bar-1{fill:var(--gids-color-icon-subtle)}.gids-bar-chart__bar.gids-bar-chart__series-bar-2{fill:var(--gids-color-icon-warning)}.gids-bar-chart__bar.gids-bar-chart__series-bar-3{fill:var(--gids-color-icon-danger)}.gids-bar-chart{}.gids-bar-chart__x-axis-scale-container{display:flex;grid-column:2;grid-row:2;justify-content:space-around;align-items:center;padding-left:var(--gids-container-padding-desktop);padding-top:var(--gids-padding-vertical-edge-to-element-100);box-sizing:border-box}.gids-bar-chart__x-axis-label{grid-column:2;grid-row:3;display:flex;justify-content:center;align-items:center;padding-top:var(--gids-padding-vertical-edge-to-element-100);font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit);color:var(--gids-color-text-subtlest);white-space:nowrap}.gids-bar-chart__scale-text{font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit);color:var(--gids-color-text-subtlest);user-select:none;white-space:nowrap}.gids-bar-chart__no-data{display:flex;align-items:center;justify-content:center;padding:var(--gids-padding-vertical-edge-to-element-300) var(--gids-padding-horizontal-edge-to-element-100);width:100%;height:100%;min-height:200px;color:var(--gids-color-text-subtlest);border:var(--gids-border-width-thin) dashed var(--gids-color-border-default);border-radius:var(--gids-border-radius-md)}"}},[0,"gids-bar-chart",{breakpoint:[1],legend:[1],chartData:[16],yAxisVisible:[4,"y-axis-visible"],xAxisLabel:[1,"x-axis-label"],yAxisLabel:[1,"y-axis-label"],dataPoints:[16],chartLoaderSize:[1,"chart-loader-size"],chartLoading:[4,"chart-loading"],chartLoadingTitle:[1,"chart-loading-title"],chartLoadingSupportingText:[1,"chart-loading-supporting-text"],width:[32],height:[32]},void 0,{chartData:[{chartDataChanged:0}],dataPoints:[{dataPointsChanged:0}],legend:[{legendChanged:0}],yAxisVisible:[{yAxisVisibilityChanged:0}]}]);function Ji(){typeof customElements<"u"&&["gids-bar-chart","gids-chart-legend","gids-chart-legend-item"].forEach((e=>{switch(e){case"gids-bar-chart":customElements.get(e)||customElements.define(e,Zi);break;case"gids-chart-legend":customElements.get(e)||me();break;case"gids-chart-legend-item":customElements.get(e)||fe()}}))}Ji();const ur=Zi,{getGidsButtonClassNames:mr}=Va,Z=({appearance:e,size:t,destructive:i,positive:s,loading:a,width:n,leadingIcon:o,trailingIcon:l,as:d,disabled:g,class:c,forceIconOnly:h=!1,...p},m)=>{const u=d||"button",f=t==="lg"||t===void 0?"md":t;return u!=="button"||"type"in p||(p.type="button"),r(u,{class:mr({appearance:e,size:t,destructive:i,loading:a,width:n,positive:s},h||m.length===0&&ji(o)&&!ji(l),c),disabled:u==="button"?g:void 0,...p},r("span",{class:"gids-button__content"},o,m),a&&r(Tt,{size:f,indeterminate:!0}),l)},{getGidsDropdownMenuGroupClassNames:fr}=Ln,es=({type:e="no-options",supportingText:t="No options",class:i,...s},a)=>r("div",{class:fr({type:e},i),...s},e==="loading"?r(ae,{indeterminate:!0,size:"md"}):null,e==="no-options"?r("span",null,t):null,e==="default"&&a!=null?a:null),{getGidsButtonGroupClassNames:br}=on,vr=({layout:e,children:t,class:i})=>r("span",{class:br({layout:e},i)},t),{getGidsHeadingClassNames:yr,getGidsHeadingSupportingTextTypographyClass:_r}=fn,xr=({heading:e,supportingText:t,level:i="section",children:s,supportingTextTypography:a,class:n})=>r("div",{class:yr(n)},r("div",{class:"gids-heading__content-container"},e!=null&&e!==""?typeof e=="string"?e!==""?r("span",{class:i==="section"?"gids-heading__heading-text-section":"gids-heading__heading-text-group"},e):null:e:null,t!=null&&t!==""?typeof t=="string"?t!==""?r("span",{class:`${i==="section"?"gids-heading__supporting-text-section":"gids-heading__supporting-text-group"} ${_r(a)}`},t):null:t:null),s?r(vr,{layout:"wrap"},s):null),{getGidsDropdownMenuClassNames:wr}=Tn,ts=({sectionLabel:e,class:t,...i},s)=>r("div",{class:wr(t),...i},e!=null&&e!==""?r(xr,{supportingText:e,supportingTextTypography:"eyebrow-medium"}):null,s!=null?r("div",{class:"gids-dropdown-menu__children"},s):null),{getGidsEditButtonClassNames:Cr}=kn,kr=({disabled:e,children:t,size:i="md",editButtonType:s="add",onPressEditButton:a,class:n,...o})=>r("button",{class:Cr({size:i},n),...o,onClick:a,disabled:e},s==="custom"&&t?r("div",null,t):s==="add"?r("div",{class:e?"gids-edit-button__add gids-edit-button__disabled":"gids-edit-button__add"},r(D,{name:"add",appearance:"filled",size:i})):s==="remove"?r("div",{class:e?"gids-edit-button__remove gids-edit-button__disabled":"gids-edit-button__remove"},r(D,{appearance:"filled",name:"remove",size:i})):void 0),{getGidsDividerClassNames:Sr}=za,Er=({orientation:e})=>r("hr",{class:Sr({orientation:e})}),{getGidsListItemClassNames:Pr}=Sn,Tr=({id:e,value:t,index:i,defaultSelectedIndex:s,disabled:a,selected:n,editButton:o,onPressEditButton:l,onPressListItem:d,leadingAccessory:g,leadingSupport:c,leadingParagraph:h,trailingContent:p,trailingAccessory:m,trailingSupport:u,trailingParagraph:f,divider:v,role:_="list-item-option",class:y,...b},w)=>r("button",{type:"button",id:e,class:Pr({selected:n,disabled:a},y),role:_,"aria-selected":n?"true":"false",disabled:a,value:(()=>{if(typeof t=="string"&&t.trim()!=="")return t;const x=w;return x?(Array.isArray(x)?x:[x]).map((k=>typeof k=="string"||typeof k=="number"?String(k):k&&typeof k=="object"&&"text"in k?k.text??"":"")).join("").trim():""})(),onClick:x=>{const k=x.currentTarget;if(!k||x.defaultPrevented||k.disabled)return;const T=new CustomEvent("onPressListItem",{bubbles:!0,composed:!0,detail:{selectedIndex:i,defaultSelectedIndex:s}});d?.(T)},...b},r("div",{class:"gids-list-item__main-container"},o==null||o==="none"||a?null:r(kr,{size:"md",editButtonType:o,onPressEditButton:l}),g!=null?r("div",{class:a?"gids-list-item__leading-accessory-container gids-list-item__accessory-content-disabled":"gids-list-item__leading-accessory-container"},g):null,r("div",{class:"gids-list-item__middle-content-container"},r("div",{class:"gids-list-item__leading-content-container"},r(se,null,w!=null?r("span",{class:a?"gids-list-item__leading-content-label gids-list-item__text-content-disabled":"gids-list-item__leading-content-label"},w):null,r("div",{class:"gids-list-item__leading-support-content"},c!=null?typeof c=="string"?r("p",{class:a?"gids-list-item__leading-content-supporting-text gids-list-item__text-content-disabled":"gids-list-item__leading-content-supporting-text"},c):c:null,h!=null?typeof h=="string"?r("p",{class:a?"gids-list-item__leading-content-paragraph-text gids-list-item__text-content-disabled":"gids-list-item__leading-content-paragraph-text"},h):h:null))),r("div",{class:"gids-list-item__trailing-content-container"},r(se,null,p!=null?typeof p=="string"?r("span",{class:a?"gids-list-item__trailing-content-label gids-list-item__text-content-disabled":"gids-list-item__trailing-content-label"},p):p:null,r("div",{class:"gids-list-item__trailing-support-content"},u!=null?typeof u=="string"?r("p",{class:a?"gids-list-item__trailing-content-supporting-text gids-list-item__text-content-disabled":"gids-list-item__trailing-content-supporting-text"},u):u:null,f!=null?typeof f=="string"?r("p",{class:a?"gids-list-item__trailing-content-paragraph-text gids-list-item__text-content-disabled":"gids-list-item__trailing-content-paragraph-text"},f):f:null)))),n?r("div",{class:a?"gids-list-item__trailing-accessory-container gids-list-item__accessory-content-disabled":"gids-list-item__trailing-accessory-container"},r(D,{name:"checkmark",size:"md",appearance:"regular"})):null,n||m==null?null:r("div",{class:a?"gids-list-item__trailing-accessory-container gids-list-item__accessory-content-disabled":"gids-list-item__trailing-accessory-container"},m)),v&&!n?r("div",{class:"gids-list-item__divider"},r(Er,{orientation:"horizontal"})):null),{getGidsDropdownItemClassNames:Lr}=Pn,is=({id:e,title:t,class:i,selected:s=!1,disabled:a=!1,role:n="list-item-option",value:o,name:l,onPressDropdownItem:d,index:g,defaultSelectedIndex:c,leadingAccessory:h,divider:p,...m})=>{const u=Lr(typeof i=="string"?i:void 0);return r(Tr,{id:e,index:g??0,defaultSelectedIndex:c,selected:s,disabled:a,role:n,value:o,name:l,leadingAccessory:h,class:u,onPressListItem:f=>{if(f.defaultPrevented)return;const v=new CustomEvent("onPressDropdownItem",{bubbles:!0,composed:!0,detail:{id:e,title:t,value:o,disabled:a,selectedIndex:g,defaultSelectedIndex:c}});d?.(v)},divider:p,...m},t)},{getGidsCalendarMonthListClassNames:Ir,getGidsCalendarMonthListMonths:Mr}=An,ss=P(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.type="default",this.disabledIndices=[],this.divider=!1,this.hasItemListener=!1,this.suppressNextMenuClickSelection=!1,this.handleCalendarMenuItemSelect=t=>{const{title:i,value:s,selectedIndex:a,disabled:n,id:o}=t.detail;n||typeof i!="string"||(this.suppressNextMenuClickSelection=!0,queueMicrotask((()=>{this.suppressNextMenuClickSelection=!1})),this.applySelection({id:o,month:i,monthInNumber:Number(s),disabled:!1,selectedIndex:a}))},this.handleMenuClick=t=>{if(this.suppressNextMenuClickSelection)return;const i=t?.detail;this.applySelection({id:i.id,monthInNumber:Number(i.value),month:i.title,disabled:!1,selectedIndex:i.selectedIndex})},this.monthsList=()=>Mr(),this.getSelectedItem=()=>{const t=this.selectedMonthNumber,i=this.monthsList(),s=i.findIndex((n=>n.value===t));let a;return s!=null&&s!==-1&&(a=i[s]),{foundItem:a,foundIndex:s}},this.isItemSelected=t=>{const{foundIndex:i}=this.getSelectedItem();return i===t}}connectedCallback(){this.attachItemListener()}disconnectedCallback(){this.detachItemListener()}getItemElements(){return Array.from(this.hostElement.querySelectorAll(".gids-dropdown-item"))}attachItemListener(){this.hasItemListener||(this.hostElement.addEventListener("onPressDropdownItem",this.handleCalendarMenuItemSelect),this.hasItemListener=!0)}detachItemListener(){this.hasItemListener&&(this.hostElement.removeEventListener("onPressDropdownItem",this.handleCalendarMenuItemSelect),this.hasItemListener=!1)}applySelection(e){this.clearActive(),this.onSelectionMonthChange?.(e),this.hostElement.dispatchEvent(new CustomEvent("gidsCalendarMonthChange",{bubbles:!0,composed:!0,detail:e}))}clearActive(){this.getItemElements().forEach((e=>e.classList.remove("gids-dropdown-item--active")))}render(){const e=Ir();return r("div",{key:"a3d78c655f5f3d2fa1c26a06f78d96c6964a8f2b",class:e},r(es,{key:"ee53fe9e5f94249400d4339c5baf0dcebb87218e",type:this.type,supportingText:this.noOptionsText},r(ts,{key:"50059fdc97b6e206ffd3389470d6fd2f25747cbd",sectionLabel:"Months"},this.monthsList().map(((t,i)=>{const s=`${i+1}`,a=this.disabledIndices?.includes(i);return r(is,{title:t.title,value:`${t.value}`,key:`${i.toString()}`,index:i,id:s,selected:this.isItemSelected(i),onPressDropdownItem:this.handleMenuClick,disabled:a,divider:this.divider})})))))}get hostElement(){return this}},[0,"gids-calendar-month-list",{type:[1],noOptionsText:[1,"no-options-text"],disabledIndices:[16],divider:[4],selectedMonthNumber:[2,"selected-month-number"],onSelectionMonthChange:[16]}]);function Lt(){typeof customElements<"u"&&["gids-calendar-month-list"].forEach((e=>{e==="gids-calendar-month-list"&&(customElements.get(e)||customElements.define(e,ss))}))}Lt();const{getGidsCalendarYearListClassNames:Dr,getGidsCalendarYearListYears:$r,isValidFourDigitYear:as}=Nn,ns=P(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.type="default",this.disabledIndices=[],this.divider=!1,this.newStartYear=new Date().getFullYear(),this.newEndYear=new Date().getFullYear()+100,this.hasItemListener=!1,this.suppressNextMenuClickSelection=!1,this.handleCalendarMenuItemSelect=t=>{const{title:i,value:s,selectedIndex:a,disabled:n,id:o}=t.detail;n||typeof i!="string"||(this.suppressNextMenuClickSelection=!0,queueMicrotask((()=>{this.suppressNextMenuClickSelection=!1})),this.applySelection({id:o,year:Number(s),disabled:!1,selectedIndex:a,startYear:this.newStartYear,endYear:this.newEndYear}))},this.handleMenuClick=t=>{if(this.suppressNextMenuClickSelection)return;const i=t?.detail;this.applySelection({id:i.id,year:Number(i.value),disabled:!1,selectedIndex:i.selectedIndex,startYear:this.newStartYear,endYear:this.newEndYear})},this.yearsList=()=>$r({startYear:this.newStartYear,endYear:this.newEndYear}),this.getSelectedItem=()=>{const t=this.selectedYear,i=this.yearsList(),s=i.findIndex((n=>n.value===t));let a;return s!=null&&s!==-1&&(a=i[s]),{foundItem:a,foundIndex:s}},this.isItemSelected=t=>{const{foundIndex:i}=this.getSelectedItem();return i===t}}connectedCallback(){this.attachItemListener(),this.handleStartAndEndYear()}disconnectedCallback(){this.detachItemListener()}getItemElements(){return Array.from(this.hostElement.querySelectorAll(".gids-dropdown-item"))}attachItemListener(){this.hasItemListener||(this.hostElement.addEventListener("onPressDropdownItem",this.handleCalendarMenuItemSelect),this.hasItemListener=!0)}detachItemListener(){this.hasItemListener&&(this.hostElement.removeEventListener("onPressDropdownItem",this.handleCalendarMenuItemSelect),this.hasItemListener=!1)}handleStartAndEndYear(){const e=this.startYear,t=this.endYear;return this.newStartYear=e&&e>0&&as(e)?e:new Date().getFullYear(),this.newEndYear=t&&t>0&&as(t)?t:this.newStartYear+100,{newStartYear:this.newStartYear,newEndYear:this.newEndYear}}applySelection(e){this.clearActive(),this.onSelectionYearChange?.(e),this.hostElement.dispatchEvent(new CustomEvent("gidsCalendarYearChange",{bubbles:!0,composed:!0,detail:e}))}clearActive(){this.getItemElements().forEach((e=>e.classList.remove("gids-dropdown-item--active")))}render(){const e=Dr();return r("div",{key:"afdd86d1ea769bf6eff33c2710277d297605fe7a",class:e},r(es,{key:"08adcde70afe51cb1a4696b8a8b1c1d0cc42d2f5",type:this.type,supportingText:this.noOptionsText},r(ts,{key:"5fdf94ef27bf0c1ec096744fc6de970f5539a54f",sectionLabel:"Years"},this.yearsList().map(((t,i)=>{const s=`${i+1}`,a=this.disabledIndices?.includes(t.value);return r(is,{title:t.title,value:`${t.value}`,key:`${i.toString()}`,index:i,id:s,selected:this.isItemSelected(i),onPressDropdownItem:this.handleMenuClick,disabled:a,divider:this.divider})})))))}get hostElement(){return this}},[0,"gids-calendar-year-list",{type:[1],noOptionsText:[1,"no-options-text"],disabledIndices:[16],divider:[4],selectedYear:[2,"selected-year"],startYear:[2,"start-year"],endYear:[2,"end-year"],onSelectionYearChange:[16],newStartYear:[32],newEndYear:[32]}]);function It(){typeof customElements<"u"&&["gids-calendar-year-list"].forEach((e=>{e==="gids-calendar-year-list"&&(customElements.get(e)||customElements.define(e,ns))}))}It();const{getGidsDropdownPickerClassNames:Ar}=zn,rs=P(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.appearance="subtle",this.size="sm",this.idPicker="",this.expanded=!1,this.hasLeadingIcon=!1,this.hasItemListener=!1,this.suppressNextMenuClickSelection=!1,this.hasDocumentListeners=!1,this.handleDropdownPickerItemSelect=t=>{const{value:i,title:s,disabled:a,id:n}=t.detail;a||typeof i!="string"||(this.suppressNextMenuClickSelection=!0,queueMicrotask((()=>{this.suppressNextMenuClickSelection=!1})),this.applySelection({id:n,value:i,title:s,disabled:!1,originalEvent:t}))},this.handleMenuClick=t=>{if(this.suppressNextMenuClickSelection)return;const i=t.target;if(!(i instanceof Element))return;const s=i.closest(".gids-dropdown-item");if(!s||!this.hostElement.contains(s)||s.hasAttribute("disabled")||s.getAttribute("aria-disabled")==="true")return;const a=s instanceof HTMLButtonElement?s.value:s.getAttribute("value")??"";if(typeof a!="string"||a.length===0)return;const n=s instanceof HTMLButtonElement?s.id:s.getAttribute("id")??"";typeof n=="string"&&n.length!==0&&this.applySelection({id:n,value:a,title:s.textContent?.trim()??"",disabled:!1,originalEvent:t})},this.handleTriggerToggle=t=>{this.isInteractive()&&this.setExpandedState(!this.expanded,t)},this.handleDropdownButtonClickToggle=t=>{t.defaultPrevented||(t.stopPropagation(),this.handleTriggerToggle(t))},this.handleOutSpaceClickOfDropdownButtonToggle=t=>{this.expanded&&(t.stopPropagation(),this.setExpandedState(!1))},this.handleDocumentPointerDown=t=>{t.button!==2&&this.expanded&&((typeof t.composedPath=="function"?t.composedPath():[]).includes(this.hostElement)||this.hostElement.contains(t.target)||this.setExpandedState(!1,t))},this.handleDocumentKeyDown=t=>{if(!this.expanded)return;const i=t.key;if(i==="Escape"||i==="Esc")return t.preventDefault(),void this.setExpandedState(!1,t);i==="Tab"&&this.setExpandedState(!1,t)},this.handleFormReset=()=>{this.value=this.initialValue,this.selectedItemTitle=void 0,this.setExpandedState(!1)}}handleExpandedChange(e){e&&!this.isInteractive()&&(this.expanded=!1)}handleInteractivityChange(){!this.isInteractive()&&this.expanded&&this.setExpandedState(!1)}connectedCallback(){this.initialValue=this.value,this.attachItemListener(),this.attachDocumentListeners(),this.attachFormListener()}disconnectedCallback(){this.detachItemListener(),this.detachDocumentListeners(),this.detachFormListener()}componentWillLoad(){this.checkSlots()}componentWillUpdate(){this.checkSlots()}checkSlots(){this.hasLeadingIcon=!!this.hostElement.querySelector('[slot="leadingIconDropdownPicker"]')}getDropdownButtonControl(){return this.hostElement.querySelector(".gids-button")}getItemElements(){return Array.from(this.hostElement.querySelectorAll(".gids-dropdown-item"))}attachItemListener(){this.hasItemListener||(this.hostElement.addEventListener("onPressDropdownItem",this.handleDropdownPickerItemSelect),this.hasItemListener=!0)}detachItemListener(){this.hasItemListener&&(this.hostElement.removeEventListener("onPressDropdownItem",this.handleDropdownPickerItemSelect),this.hasItemListener=!1)}applySelection(e){this.value=e.value,this.selectedItemTitle=typeof e.title=="string"?e.title:void 0,this.clearActive(),this.setExpandedState(!1,this.coerceEvent(e.originalEvent)),this.onSelectionChange?.(e),this.hostElement.dispatchEvent(new CustomEvent("gidsDropdownPickerChange",{bubbles:!0,composed:!0,detail:e}))}clearActive(){this.getItemElements().forEach((e=>e.classList.remove("gids-dropdown-item--active")))}setExpandedState(e,t){const i=!!e;i&&!this.isInteractive()||this.expanded!==i&&(this.expanded=i,i||(this.clearActive(),this.syncInputDisplayValue()),this.hostElement.dispatchEvent(new CustomEvent("gidsDropdownPickerToggle",{bubbles:!0,composed:!0,detail:{expanded:i,originalEvent:t}})))}syncInputDisplayValue(){const e=this.getDropdownButtonControl();e&&e.value!==(this.selectedItemTitle??"")&&(e.value=this.selectedItemTitle??"")}attachDocumentListeners(){this.hasDocumentListeners||typeof document>"u"||(document.addEventListener("pointerdown",this.handleDocumentPointerDown),document.addEventListener("keydown",this.handleDocumentKeyDown),this.hasDocumentListeners=!0)}detachDocumentListeners(){this.hasDocumentListeners&&typeof document<"u"&&(document.removeEventListener("pointerdown",this.handleDocumentPointerDown),document.removeEventListener("keydown",this.handleDocumentKeyDown),this.hasDocumentListeners=!1)}attachFormListener(){const e=this.hostElement.closest("form");this.patternForm!==e&&(this.patternForm&&this.patternForm.removeEventListener("reset",this.handleFormReset),this.patternForm=e??void 0,this.patternForm?.addEventListener("reset",this.handleFormReset))}detachFormListener(){this.patternForm&&(this.patternForm.removeEventListener("reset",this.handleFormReset),this.patternForm=void 0)}isInteractive(){return!this.disabled}coerceEvent(e){if(typeof Event<"u"&&e!==null)return e instanceof Event?e:void 0}render(){const e=this.expanded&&this.isInteractive(),t=Ar({expanded:e}),i=typeof this.idPicker=="string"?this.idPicker:void 0,s=i?`${i}__menu`:void 0;return r("div",{key:"60aba19be894123a4fb11cf8d682c89c1e1dfc9c",class:t,onClick:this.handleOutSpaceClickOfDropdownButtonToggle},r(Z,{key:"6e691f9fee63c676d7a66d42024a4688730f9503",role:"pickerbox","aria-expanded":e?"true":"false","aria-haspopup":"pickerlistbox","aria-controls":s??"",onClick:this.handleDropdownButtonClickToggle,disabled:this.disabled,value:this.selectedItemTitle??this.value??"",loading:this.loading,appearance:this.appearance,size:this.size},this.hasLeadingIcon?r("slot",{name:"leadingIconDropdownPicker",slot:"leadingIcon"}):r(D,{name:"chevron-down",size:this.size,appearance:"regular",alt:"",slot:"leadingIcon"})),r("div",{key:"b44514baae627324d71f1114c3ba18bc6b946b01",class:"gids-dropdown-picker__menu",id:s,role:"pickerbox",onClick:this.handleMenuClick},r("slot",{key:"1e3b9e592646a1bda41d2cf5bfc8556908c0499f"})))}get hostElement(){return this}static get watchers(){return{expanded:[{handleExpandedChange:0}],disabled:[{handleInteractivityChange:0}]}}static get style(){return".gids-dropdown-picker{position:relative}.gids-dropdown-picker__menu{position:absolute;inset-inline:0;top:calc(100% + var(--gids-gap-050));z-index:3;display:none;flex-direction:column;align-self:stretch;min-width:var(--gids-width-2-xs);min-height:55px;max-height:15rem;overflow-x:hidden;overflow-y:auto;background-color:var(--gids-elevation-surface-overlay-default);box-shadow:var(--gids-elevation-shadow-overlay);border-radius:var(--gids-border-radius-lg)}.gids-dropdown-picker__menu>*{flex-shrink:0}.gids-dropdown-picker--expanded .gids-dropdown-picker__menu{display:flex}"}},[260,"gids-dropdown-picker",{appearance:[1],size:[1],idPicker:[1,"id-picker"],expanded:[1540],disabled:[516],loading:[516],value:[513],name:[1],onSelectionChange:[16],selectedItemTitle:[32],hasLeadingIcon:[32]},void 0,{expanded:[{handleExpandedChange:0}],disabled:[{handleInteractivityChange:0}]}]);function Mt(){typeof customElements<"u"&&["gids-dropdown-picker"].forEach((e=>{e==="gids-dropdown-picker"&&(customElements.get(e)||customElements.define(e,rs))}))}Mt();function os(e){var t,i,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(i=os(e[t]))&&(s&&(s+=" "),s+=i)}else for(i in e)e[i]&&(s&&(s+=" "),s+=i);return s}function Nr(){for(var e,t,i=0,s="",a=arguments.length;i<a;i++)(e=arguments[i])&&(t=os(e))&&(s&&(s+=" "),s+=t);return s}const{getGidsCalendarHeaderPanelClassNames:zr,getCalendarMonthNameViaMonthNumber:be}=Fi,ls=P(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.appearance="primary",this.monthPickerDisabled=!1,this.yearPickerDisabled=!1,this.panelDisabled=!1,this.previousDisabled=!1,this.nextDisabled=!1,this.expandedMonthPicker=!1,this.expandedYearPicker=!1,this.internalPreviousDisabled=!1,this.internalNextDisabled=!1,this.suppressNextMenuClickSelection=!1,this.suppressNextActionClickSelection=!1,this.fallbackYear=new Date().getFullYear(),this.fallbackMonth=1,this.fallbackStartYear=new Date().getFullYear(),this.fallbackEndYear=new Date().getFullYear()+100,this.handleMonthPickerMenuClick=t=>{if(this.suppressNextMenuClickSelection)return;const i=t;this.updateActionProps({newSelectedMonthNumber:i?.monthInNumber??this.fallbackMonth,newSelectedYear:this.panelYear??this.fallbackYear}),this.applyMonthSelection({id:i.id,type:"month",month:i.month,monthNumber:Number(i.monthInNumber),year:this.panelYear,disabled:!1,panelValue:`${i.month} ${this.panelYear}`})},this.handleYearPickerMenuClick=t=>{if(this.suppressNextMenuClickSelection)return;const i=t;this.updateActionProps({newSelectedMonthNumber:this?.panelMonthNumber??this.fallbackMonth,newSelectedYear:i?.year??this.fallbackYear}),this.applyYearSelection({id:i.id,type:"year",month:this.panelMonth,monthNumber:Number(this?.panelMonthNumber),year:i?.year,disabled:!1,panelValue:`${this.panelMonth} ${i.year}`})},this.handlePreviousActionClick=t=>{if(this.suppressNextActionClickSelection||!(t.target instanceof Element)||!this.isPreviousActionInteractive())return;const{newSelectedMonthNumber:i,newSelectedYear:s}=this.onPreviousActionChange();this.updateActionProps({newSelectedMonthNumber:i,newSelectedYear:s});const a=be(i);this.applyActionsSelection({type:"previous",month:a,monthNumber:i,year:s,disabled:!1,panelValue:`${a} ${s}`})},this.handleNextActionClick=t=>{if(this.suppressNextActionClickSelection||!(t.target instanceof Element)||!this.isNextActionInteractive())return;const{newSelectedMonthNumber:i,newSelectedYear:s}=this.onNextActionChange();this.updateActionProps({newSelectedMonthNumber:i,newSelectedYear:s});const a=be(i);this.applyActionsSelection({type:"next",month:a,monthNumber:i,year:s,disabled:!1,panelValue:`${a} ${s}`})}}handleSelectedMonthNumberChange(e){e!=null&&(this.panelMonthNumber=e,this.panelMonth=be(e),this.syncPanelDisplayValue())}handleSelectedYearChange(e){e!=null&&(this.panelYear=e,this.syncPanelDisplayValue())}handleExpandedMonthPickerChange(e){e&&!this.isMonthPickerInteractive()&&this.setExpandedMonthPickerState(!1),e&&this.isMonthPickerInteractive()&&this.setExpandedMonthPickerState(!1)}handleExpandedYearPickerChange(e){e&&!this.isYearPickerInteractive()&&this.setExpandedYearPickerState(!1),e&&this.isYearPickerInteractive()&&this.setExpandedYearPickerState(!1)}handleMonthPickerInteractivityChange(){!this.isMonthPickerInteractive()&&this.expandedMonthPicker&&this.setExpandedMonthPickerState(!1)}handleYearPickerInteractivityChange(){!this.isYearPickerInteractive()&&this.expandedYearPicker&&this.setExpandedYearPickerState(!1)}handleAppearanceChange(e){this.appearance=e}connectedCallback(){this.panelMonthNumber=this.selectedMonthNumber??this.fallbackMonth,this.panelMonth=be(this.selectedMonthNumber??this.fallbackMonth),this.panelYear=this.selectedYear??this.fallbackYear,this.panelDisplayValue=`${this.panelMonth} ${this.panelYear}`,this.syncPanelDisplayValue(),this.setPreviousActionInteractivity(),this.setNextActionInteractivity()}applyMonthSelection(e){this.setExpandedMonthPickerState(!1,this.coerceEvent(e?.originalEvent)),this.setPreviousActionInteractivity(),this.setNextActionInteractivity(),this.onPanelMonthChange?.(e),this.hostElement.dispatchEvent(new CustomEvent("gidsPanelMonthChange",{bubbles:!0,composed:!0,detail:e}))}applyYearSelection(e){this.setExpandedYearPickerState(!1,this.coerceEvent(e?.originalEvent)),this.setPreviousActionInteractivity(),this.setNextActionInteractivity(),this.onPanelYearChange?.(e),this.hostElement.dispatchEvent(new CustomEvent("gidsPanelYearChange",{bubbles:!0,composed:!0,detail:e}))}setExpandedMonthPickerState(e,t){const i=!!e;i&&!this.isMonthPickerInteractive()||this.expandedMonthPicker!==i&&(this.expandedMonthPicker=i,i||this.syncPanelDisplayValue(),this.hostElement.dispatchEvent(new CustomEvent("gidsCalendarHeaderPanelMonthToggle",{bubbles:!0,composed:!0,detail:{expandedMonthPicker:i,expandedYearPicker:!!this.expandedYearPicker,originalEvent:t}})))}setExpandedYearPickerState(e,t){const i=!!e;i&&!this.isYearPickerInteractive()||this.expandedYearPicker!==i&&(this.expandedYearPicker=i,i||this.syncPanelDisplayValue(),this.hostElement.dispatchEvent(new CustomEvent("gidsCalendarHeaderPanelYearToggle",{bubbles:!0,composed:!0,detail:{expandedMonthPicker:!!this.expandedMonthPicker,expandedYearPicker:i,originalEvent:t}})))}syncPanelDisplayValue(){this.panelMonth&&this.panelYear&&(this.panelDisplayValue=`${this.panelMonth} ${this.panelYear}`)}applyActionsSelection(e){this.setNextActionInteractivity(),this.setPreviousActionInteractivity(),e.type==="previous"&&this.onPreviousChange?.(e),e.type==="next"&&this.onNextChange?.(e)}checkPrevYearIsAllowed(e){return e>=(this.startYear??this.fallbackStartYear)}checkNextYearIsAllowed(e){return e<=(this.endYear??this.fallbackEndYear)}isPreviousActionInteractive(){return(this.panelMonthNumber??this.fallbackMonth)===1?this.checkPrevYearIsAllowed((this.panelYear??this.fallbackYear)-1)&&!this.previousDisabled:!this.previousDisabled}isNextActionInteractive(){return(this.panelMonthNumber??this.fallbackMonth)===12?this.checkNextYearIsAllowed((this.panelYear??this.fallbackYear)+1)&&!this.nextDisabled:!this.nextDisabled}onPreviousActionChange(){const e=this.panelMonthNumber??this.fallbackMonth,t=this.panelYear??this.fallbackYear;return this.isPreviousActionInteractive()?{newSelectedMonthNumber:e===1?12:e-1,newSelectedYear:e===1?t-1:t}:{newSelectedMonthNumber:e,newSelectedYear:t}}onNextActionChange(){const e=this.panelMonthNumber??this.fallbackMonth,t=this.panelYear??this.fallbackYear;return this.isNextActionInteractive()?{newSelectedMonthNumber:e===12?1:e+1,newSelectedYear:e===12?t+1:t}:{newSelectedMonthNumber:e,newSelectedYear:t}}isMonthPickerInteractive(){return!this.monthPickerDisabled}isYearPickerInteractive(){return!this.yearPickerDisabled}coerceEvent(e){if(typeof Event<"u"&&e!==null)return e instanceof Event?e:void 0}updatePanelMonth(e){e?(this.selectedMonthNumber=e,this.panelMonth=be(e),this.panelMonthNumber=e):(this.selectedMonthNumber=this.fallbackMonth,this.panelMonth=be(this.fallbackMonth),this.panelMonthNumber=this.fallbackMonth)}updatePanelYear(e){e?(this.selectedYear=e,this.panelYear=e):this.panelYear=this.fallbackYear}setPreviousActionInteractivity(){this.internalPreviousDisabled=!this.isPreviousActionInteractive()}setNextActionInteractivity(){this.internalNextDisabled=!this.isNextActionInteractive()}updateActionProps({newSelectedYear:e,newSelectedMonthNumber:t}){this.updatePanelYear(e),this.updatePanelMonth(t),this.syncPanelDisplayValue()}getPanelValue(){return this.panelDisplayValue}render(){const e=zr(),t=this.expandedMonthPicker&&this.isMonthPickerInteractive()&&!this.expandedYearPicker,i=this.expandedYearPicker&&this.isYearPickerInteractive()&&!this.expandedMonthPicker,s=this.internalPreviousDisabled||this.previousDisabled,a=this.internalNextDisabled||this.nextDisabled;return r("div",{key:"f133f5f42023ed81b5768988dd56e37f528307bf",class:e},r(Z,{key:"78c89c0e2626c03a9ae2cb03aee07c8f4b524e66",leadingIcon:r(D,{name:"arrow-left",size:"md",appearance:"regular"}),appearance:this.appearance,size:"sm",width:"intrinsic",onClick:this.handlePreviousActionClick,disabled:s}),r("div",{key:"6765fafe678ff7878738cc5420b095eb1e160f45",class:"gids-calendar-header-panel__main-container"},r("gids-dropdown-picker",{key:"816c126bfc83578f51e43e12c4e05d03973c09ea",expanded:t,appearance:this.appearance,size:"sm",value:`${this.panelMonthNumber}`,disabled:this.monthPickerDisabled},r("gids-calendar-month-list",{key:"831eed0f1a19b62abd582650f15e36fd45829667",type:"default",selectedMonthNumber:this.panelMonthNumber,onSelectionMonthChange:this.handleMonthPickerMenuClick})),r("span",{key:"619fab64e1bb4c10f8be1f6a7aa3b63802f08441",class:Nr("gids-calendar-header-panel__panel-value",{"gids-calendar-header-panel__panel-value-disabled":this.panelDisabled})},this.getPanelValue()),r("gids-dropdown-picker",{key:"323800237b9f31ec23d3a5308599dcd74bf51515",expanded:i,appearance:this.appearance,size:"sm",value:`${this.panelYear}`,disabled:this.yearPickerDisabled},r("gids-calendar-year-list",{key:"58bb467fed7bef005c5f57af6fffde64b43f6781",type:"default",selectedYear:this.panelYear,startYear:this.startYear??this.fallbackStartYear,endYear:this.endYear,onSelectionYearChange:this.handleYearPickerMenuClick}))),r(Z,{key:"22ccdac9dd0824659214bc29da5ea1a4a7e0bed3",leadingIcon:r(D,{name:"arrow-right",size:"md",appearance:"regular"}),appearance:this.appearance,size:"sm",width:"intrinsic",onClick:this.handleNextActionClick,disabled:a}))}get hostElement(){return this}static get watchers(){return{selectedMonthNumber:[{handleSelectedMonthNumberChange:0}],selectedYear:[{handleSelectedYearChange:0}],expandedMonthPicker:[{handleExpandedMonthPickerChange:0}],expandedYearPicker:[{handleExpandedYearPickerChange:0}],monthPickerDisabled:[{handleMonthPickerInteractivityChange:0}],yearPickerDisabled:[{handleYearPickerInteractivityChange:0}],appearance:[{handleAppearanceChange:0}]}}static get style(){return".gids-calendar-header-panel{display:flex;justify-content:center;align-items:center;align-self:stretch;gap:var(--gids-gap-150);width:100%}.gids-calendar-header-panel__main-container{display:flex;flex:1 0 0;align-items:center;justify-content:center;align-self:stretch;gap:var(--gids-gap-100)}.gids-calendar-header-panel__panel-value{font-family:var(--gids-typography-label-medium__font-family);font-size:var(--gids-typography-label-medium__font-size);font-weight:var(--gids-typography-label-medium__font-weight);letter-spacing:var(--gids-typography-label-medium__letter-spacing);line-height:var(--gids-typography-label-medium__line-height);text-transform:var(--gids-typography-label-medium__text-transform, inherit);font-variant-caps:var(--gids-typography-label-medium__font-variant-caps, inherit);color:var(--gids-color-text-default);text-align:center}.gids-calendar-header-panel__panel-value-disabled{color:var(--gids-color-text-disabled)}"}},[0,"gids-calendar-header-panel",{selectedMonthNumber:[1538,"selected-month-number"],selectedYear:[1538,"selected-year"],startYear:[1538,"start-year"],endYear:[1538,"end-year"],appearance:[1],monthPickerDisabled:[4,"month-picker-disabled"],yearPickerDisabled:[4,"year-picker-disabled"],panelDisabled:[4,"panel-disabled"],previousDisabled:[4,"previous-disabled"],nextDisabled:[4,"next-disabled"],expandedMonthPicker:[1540,"expanded-month-picker"],expandedYearPicker:[1540,"expanded-year-picker"],onPreviousChange:[16],onNextChange:[16],onPanelMonthChange:[16],onPanelYearChange:[16],panelMonth:[32],panelMonthNumber:[32],panelYear:[32],panelDisplayValue:[32],internalPreviousDisabled:[32],internalNextDisabled:[32]},void 0,{selectedMonthNumber:[{handleSelectedMonthNumberChange:0}],selectedYear:[{handleSelectedYearChange:0}],expandedMonthPicker:[{handleExpandedMonthPickerChange:0}],expandedYearPicker:[{handleExpandedYearPickerChange:0}],monthPickerDisabled:[{handleMonthPickerInteractivityChange:0}],yearPickerDisabled:[{handleYearPickerInteractivityChange:0}],appearance:[{handleAppearanceChange:0}]}]);function ds(){typeof customElements<"u"&&["gids-calendar-header-panel","gids-calendar-month-list","gids-calendar-year-list","gids-dropdown-picker"].forEach((e=>{switch(e){case"gids-calendar-header-panel":customElements.get(e)||customElements.define(e,ls);break;case"gids-calendar-month-list":customElements.get(e)||Lt();break;case"gids-calendar-year-list":customElements.get(e)||It();break;case"gids-dropdown-picker":customElements.get(e)||Mt()}}))}ds();const Or=ls,Rr=ss,Fr=ns,ve=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let cs=!1;ve&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(ve):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let Dt=null;const $t=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{At()})):void 0,At=()=>{if(ve===void 0)return!1;const e=(()=>{if(ve===void 0)return;const t=[];for(let i=0;i<document.styleSheets.length;i++){const s=document.styleSheets.item(i);if(s)try{let a=-1,n=0;for(let o=0;o<s.cssRules.length;o++){const l=s.cssRules.item(o);if(l?.cssText.startsWith("gids-global-styles-start"))a=o;else if(a>-1){if(l?.cssText.startsWith("gids-global-styles-end")){n=o-a+1;break}t.push(l)}}if(a>-1)return{rulesStartIndex:a,originalRulesCount:n,rules:t,styleSheet:s}}catch(a){if(!(a instanceof DOMException))throw a}}})();if(e!==void 0){const t=e.styleSheet.ownerNode;return $t!==void 0&&t!==Dt&&(Dt&&$t.disconnect(),t instanceof Element&&$t.observe(t,{childList:!0,characterData:!0,subtree:!0}),Dt=t),ve.replaceSync((i=>i.rules.map((s=>s.cssText)).join(""))(e)),(i=>{const{rulesStartIndex:s,originalRulesCount:a,styleSheet:n}=i;for(let o=0;o<a;o++)n.deleteRule(s)})(e),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},O=()=>(cs||(cs=At()),ve),hs=P(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow()}connectedCallback(){const e=O();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}render(){return r(D,{key:"7c74510543b6eae79c31fbf55124ad4e37f64c63",name:this.name,size:this.size,appearance:this.appearance,alt:this.alt,titleId:this.titleId})}get _el(){return this}static get style(){return".gids-icon{color:var(--gidsIcon-color, var(--gids-color-icon-default));fill:var(--gidsIcon-color, var(--gids-color-icon-default));width:auto;height:var(--gidsIcon-height, 100%);flex-shrink:0}.gids-icon--xs{--gidsIcon-height:var(--gids-size-120)}.gids-icon--sm{--gidsIcon-height:var(--gids-size-160)}.gids-icon--md{--gidsIcon-height:var(--gids-size-240)}.gids-icon--lg{--gidsIcon-height:var(--gids-size-320)}"}},[1,"gids-icon",{name:[1],size:[1],appearance:[1],alt:[1],titleId:[1,"title-id"]}]);function Nt(){typeof customElements<"u"&&["gids-icon"].forEach((e=>{e==="gids-icon"&&(customElements.get(e)||customElements.define(e,hs))}))}Nt();const{getGidsDotClassNames:zt}=Dn,gs=P(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.appearance="subtle",this.size="xs",this.disabled=!1,this.activeClasses=""}handleExtraClassesAndSizeChange(e){this.activeClasses=zt({size:this.size,appearance:this.appearance,disabled:this.disabled},e)}handleAppearanceChange(e){this.appearance=e}handleSizeChange(e){this.size=e}handleDisabledChange(e){this.disabled=e}connectedCallback(){const e=O();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e),this.activeClasses=zt({size:this.size,appearance:this.appearance,disabled:this.disabled},this.extraClasses)}componentDidLoad(){this.activeClasses=zt({size:this.size,appearance:this.appearance,disabled:this.disabled},this.extraClasses)}render(){return r("gids-icon",{key:"1bb15dd637ede00b3e465e3da72f412ef0d710f9",class:this.activeClasses,name:"new",alt:"",appearance:"filled"})}get _el(){return this}static get watchers(){return{extraClasses:[{handleExtraClassesAndSizeChange:0}],appearance:[{handleExtraClassesAndSizeChange:0},{handleAppearanceChange:0}],size:[{handleExtraClassesAndSizeChange:0},{handleSizeChange:0}],disabled:[{handleExtraClassesAndSizeChange:0},{handleDisabledChange:0}]}}static get style(){return".gids-dot{display:flex;--gidsDotIcon-height:var(--gids-size-040);--gidsIcon-height:var(--gidsDotIcon-height);--gidsDotIcon-color:var(--gids-color-icon-subtle);--gidsIcon-color:var(--gidsDotIcon-color)}.gids-dot--sm{--gidsDotIcon-height:var(--gids-size-060)}.gids-dot--md{--gidsDotIcon-height:var(--gids-size-080)}.gids-dot--lg{--gidsDotIcon-height:var(--gids-size-100)}.gids-dot--xl{--gidsDotIcon-height:var(--gids-size-120)}.gids-dot--2xl{--gidsDotIcon-height:var(--gids-size-160)}.gids-dot--3xl{--gidsDotIcon-height:var(--gids-size-200)}.gids-dot--subtle{--gidsDotIcon-color:var(--gids-color-icon-subtle)}.gids-dot--static-inverse{--gidsDotIcon-color:var(--gids-color-icon-inverse)}.gids-dot--disabled{--gidsDotIcon-color:var(--gids-color-icon-disabled)}"}},[0,"gids-dot",{extraClasses:[513,"extra-classes"],appearance:[513],size:[513],disabled:[516],activeClasses:[32]},void 0,{extraClasses:[{handleExtraClassesAndSizeChange:0}],appearance:[{handleExtraClassesAndSizeChange:0},{handleAppearanceChange:0}],size:[{handleExtraClassesAndSizeChange:0},{handleSizeChange:0}],disabled:[{handleExtraClassesAndSizeChange:0},{handleDisabledChange:0}]}]);function ps(){typeof customElements<"u"&&["gids-dot","gids-icon"].forEach((e=>{switch(e){case"gids-dot":customElements.get(e)||customElements.define(e,gs);break;case"gids-icon":customElements.get(e)||Nt()}}))}ps();const{getGidsCalendarCellClassNames:Gr}=Mn,us=({label:e,dot:t,disabled:i,selected:s,today:a,onPressCalendarCell:n,class:o,role:l="gridcell",cellType:d="effective",...g})=>{const c=!i&&d==="effective";return r("button",{class:Gr({disabled:i,selected:s,today:a,cellType:d,dot:t},o),type:"button",role:l,"aria-selected":s?"true":"false",disabled:i,onClick:h=>{if(h.defaultPrevented||i||!c)return;const p=new CustomEvent("onPressCalendarCell",{bubbles:!0,composed:!0,detail:{cellValue:e,selected:s,disabled:i,dot:t,today:a}});n&&n(p)},...g},e?r("span",null,e):null,t?r("gids-dot",{appearance:(()=>{let h="subtle";return s&&!i&&(h="static-inverse"),h})(),disabled:i,size:"xs"}):null)},{getGidsCalendarDayCellClassNames:Vr}=$n,jr=({id:e,label:t,class:i,...s})=>r(us,{...s,id:e,label:t,name:t,dot:!1,disabled:!1,selected:!1,today:!1,cellType:"non-effective",class:Vr(i)}),{getGidsCalendarClassNames:Yr,generateCalendarDays:Br,generateCalendarWeekdays:qr}=On,{getCalendarMonthNameViaMonthNumber:Hr}=Fi,ms=P(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.width="intrinsic",this.panelActionsAppearance="primary",this.dotVisibleDates=[],this.monthPickerDisabled=!1,this.yearPickerDisabled=!1,this.previousDisabled=!1,this.nextDisabled=!1,this.panelDisabled=!1,this.currentMonth=new Date().getMonth()+1,this.currentYear=new Date().getFullYear(),this.handleCHPOnPreviousActionEvent=t=>{t&&(this.setLocalStates({monthNumber:t.monthNumber,year:t.year}),this.onPreviousChange&&this.onPreviousChange(t))},this.handleCHPOnNextActionEvent=t=>{t&&(this.setLocalStates({monthNumber:t.monthNumber,year:t.year}),this.onNextChange&&this.onNextChange(t))},this.handleCHPOnPanelMonthChangeEvent=t=>{t&&(this.setLocalStates({monthNumber:t.monthNumber,year:t.year}),this.onPanelMonthChange&&this.onPanelMonthChange(t))},this.handleCHPOnPanelYearChangeEvent=t=>{t&&(this.setLocalStates({monthNumber:t.monthNumber,year:t.year}),this.onPanelYearChange&&this.onPanelYearChange(t))},this.setLocalStates=t=>{const{monthNumber:i,year:s}=t;i&&(this.currentMonth=Number(i)),s&&(this.currentYear=Number(s))}}handleActiveMonthPropChange(e){e!=null&&(this.currentMonth=Number(e))}handleActiveYearPropChange(e){e!=null&&(this.currentYear=Number(e))}componentWillLoad(){this.activeMonthNumber!=null&&(this.currentMonth=Number(this.activeMonthNumber)),this.activeYear!=null&&(this.currentYear=Number(this.activeYear))}handleDateCellClick({event:e,dateStr:t,isCurrentMonth:i}){if(e?.detail?.disabled)return;const a=new Date().toISOString().split("T")[0],n=Hr(this.currentMonth);this.onSelectionCalendarCell&&this.onSelectionCalendarCell({currentActivePanelState:{monthNumber:this.currentMonth,year:this.currentYear,month:n,panelValue:`${n} ${this.currentYear}`},date:t,isCurrentMonth:i,selected:!0,today:a===t,dotVisibleDates:this.dotVisibleDates??[]})}render(){const e=Br({currentYear:this.currentYear,currentMonth:this.currentMonth}),t=qr(),i=Yr({width:this.width});return r("div",{key:"aff90d6c0767654bc26a6d8d50af709d9aa8cdb9",class:i},r("gids-calendar-header-panel",{key:"c3aba25935a89601684765269f5b4c51c7060519",appearance:this.panelActionsAppearance,startYear:this.startYear,endYear:this.endYear,monthPickerDisabled:this.monthPickerDisabled,yearPickerDisabled:this.yearPickerDisabled,previousDisabled:this.previousDisabled,nextDisabled:this.nextDisabled,panelDisabled:this.panelDisabled,selectedMonthNumber:this.currentMonth,selectedYear:this.currentYear,onPanelMonthChange:this.handleCHPOnPanelMonthChangeEvent,onPanelYearChange:this.handleCHPOnPanelYearChangeEvent,onNextChange:this.handleCHPOnNextActionEvent,onPreviousChange:this.handleCHPOnPreviousActionEvent}),r("div",{key:"de085679ec28367ad327d87e69ff5a8aa69739cc",class:"gids-calendar__weekdays-grid"},t.map((s=>r(jr,{label:s})))),r("div",{key:"e538630d3e1084de6b76be7c4eea40ab835267c4",class:"gids-calendar__days-grid"},e.map((s=>{const a=this.selectedDate===s.dateString,n=this.dotVisibleDates?.includes(s.dateString);return r(us,{label:s.day+"",today:s.isToday,selected:a,dot:n,cellType:"effective",disabled:!s.isCurrentMonth,onPressCalendarCell:o=>this.handleDateCellClick({event:o,dateStr:s.dateString,isCurrentMonth:s.isCurrentMonth})})}))))}static get watchers(){return{activeMonthNumber:[{handleActiveMonthPropChange:0}],activeYear:[{handleActiveYearPropChange:0}]}}static get style(){return".gids-calendar{display:flex;flex-direction:column;background-color:transparent;box-sizing:border-box;padding:var(--gids-padding-vertical-edge-to-element-300) var(--gids-padding-horizontal-edge-to-element-300);gap:var(--gids-gap-200)}.gids-calendar--width-fixed{width:100%;max-width:var(--gids-width-xs)}.gids-calendar--width-intrinsic{width:100%;max-width:100%}.gids-calendar--width-intrinsic .gids-calendar-cell{--cell-width:100%;--cell-aspect-ratio:1 / 1}.gids-calendar__weekdays-grid{display:grid;grid-template-columns:repeat(7, 1fr);text-align:center;align-items:center;width:100%}.gids-calendar__days-grid{display:grid;grid-template-columns:repeat(7, 1fr);gap:var(--gids-gap-050);justify-items:center;align-items:center;width:100%}"}},[0,"gids-calendar",{width:[1],panelActionsAppearance:[1,"panel-actions-appearance"],selectedDate:[1,"selected-date"],dotVisibleDates:[16],startYear:[2,"start-year"],endYear:[2,"end-year"],monthPickerDisabled:[4,"month-picker-disabled"],yearPickerDisabled:[4,"year-picker-disabled"],previousDisabled:[4,"previous-disabled"],nextDisabled:[4,"next-disabled"],panelDisabled:[4,"panel-disabled"],activeMonthNumber:[2,"active-month-number"],activeYear:[2,"active-year"],onNextChange:[16],onPreviousChange:[16],onPanelMonthChange:[16],onPanelYearChange:[16],onSelectionCalendarCell:[16],currentMonth:[32],currentYear:[32]},void 0,{activeMonthNumber:[{handleActiveMonthPropChange:0}],activeYear:[{handleActiveYearPropChange:0}]}]);function Wr(){typeof customElements<"u"&&["gids-calendar","gids-calendar-header-panel","gids-calendar-month-list","gids-calendar-year-list","gids-dot","gids-dropdown-picker","gids-icon"].forEach((e=>{switch(e){case"gids-calendar":customElements.get(e)||customElements.define(e,ms);break;case"gids-calendar-header-panel":customElements.get(e)||ds();break;case"gids-calendar-month-list":customElements.get(e)||Lt();break;case"gids-calendar-year-list":customElements.get(e)||It();break;case"gids-dot":customElements.get(e)||ps();break;case"gids-dropdown-picker":customElements.get(e)||Mt();break;case"gids-icon":customElements.get(e)||Nt()}}))}Wr();const Ur=ms,Qr=Qi,Xr=qi,{getGidsButtonDockClassNames:Kr}=ln,Zr=({class:e,primaryChildren:t,secondaryChildren:i,...s})=>r("div",{class:Kr(e),...s},r("div",{class:"gids-button-dock__secondary-area"},i),r("div",{class:"gids-button-dock__primary-area"},t)),{getGidsFeedbackBlockClassNames:Jr}=Cn,Ie=({title:e,supportingText:t,image:i,children:s})=>r("div",{class:Jr()},r("div",{class:"gids-feedback-block__inner-container"},i&&r("div",{class:"gids-feedback-block__image-container"},i),r("p",{class:"gids-feedback-block__title"},r("strong",null,e)),r("div",{class:"gids-feedback-block__supporting-text"},t),s&&r(Zr,{primaryChildren:s}))),{getGidsLevelGaugeClassNames:eo}=Yn,fs=P(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.breakpoint="desktop",this.value=0,this.label="Completed",this.size="xxs",this.color="amber",this.chartLoaderSize="lg",this.chartLoading=!1,this.width=0,this.height=0}valueChanged(){this.updateDimensions()}componentDidLoad(){this.updateDimensions(),this.resizeObserver=new ResizeObserver((()=>this.updateDimensions())),this.hostElement.parentElement&&this.resizeObserver.observe(this.hostElement.parentElement)}disconnectedCallback(){this.resizeObserver&&this.resizeObserver.disconnect()}updateDimensions(){const e=this.hostElement.getBoundingClientRect();this.width=e.width,this.height=e.height>0?e.height:240}render(){if(this.chartLoading)return r("div",{class:"gids-level-gauge__no-data"},r(ae,{label:this.chartLoadingTitle,supportingText:this.chartLoadingSupportingText,size:this?.chartLoaderSize??"lg"}));let e=0;typeof this.value=="number"&&!isNaN(this.value)&&(e=this.value);const t=Ai;if(!(typeof this.value=="number"&&!isNaN(this.value)&&this.value<=t&&this.value>=0))return r("div",{class:"gids-level-gauge__no-data"},r(Ie,{title:Ni,supportingText:zi(100),image:r("slot",{name:"chartFeedbackBlockImage"})}));const i=Math.min(Math.max(e/t,0),1),s=`${Math.round(100*i)}%`,a=eo({breakpoint:this.breakpoint}),n=2*Math.PI*40,o=`${i*n} ${n}`,l=this.size==="xxs";return r("div",{class:a},r("div",{class:`gids-level-gauge__main-container gids-level-gauge__main-container--variant-${this.color}`},r("div",{class:`gids-level-gauge__svg-wrapper gids-level-gauge__svg-wrapper--size-${this.size}`},r("svg",{viewBox:"0 0 100 100",class:"gids-level-gauge__chart-vector"},r("circle",{cx:"50",cy:"50",r:40,class:"gids-level-gauge__track-background"}),r("circle",{cx:"50",cy:"50",r:40,class:`gids-level-gauge__segment gids-level-gauge__segment--variant-${this.color}`,"stroke-dasharray":o,"stroke-dashoffset":"0",transform:"rotate(-90 50 50)"})),r("div",{class:"gids-level-gauge__center-content"},l?null:r("span",{class:`gids-level-gauge__label-common gids-level-gauge__label-${this.size}`},this.label),r("span",{class:`gids-level-gauge__percentage-common gids-level-gauge__percentage-${this.size}`},s))),l?r("div",{class:"gids-level-gauge__bottom-content"},r("span",{class:`gids-level-gauge__label-common gids-level-gauge__label-${this.size}`},this.label)):null))}get hostElement(){return this}static get watchers(){return{value:[{valueChanged:0}],max:[{valueChanged:0}]}}static get style(){return":host{display:block;box-sizing:border-box}.gids-level-gauge{display:block;box-sizing:border-box}.gids-level-gauge--breakpoint-mobile{max-width:var(--gids-width-xs)}.gids-level-gauge__main-container{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;height:100%}.gids-level-gauge{}.gids-level-gauge__svg-wrapper{position:relative;display:block;flex-shrink:0}.gids-level-gauge__svg-wrapper--size-xxs{width:180px;height:180px}.gids-level-gauge__svg-wrapper--size-xs{width:220px;height:220px}.gids-level-gauge__svg-wrapper--size-sm{width:260px;height:260px}.gids-level-gauge__svg-wrapper--size-md{width:300px;height:300px}.gids-level-gauge__svg-wrapper--size-lg{width:340px;height:340px}.gids-level-gauge__chart-vector{display:block;width:100%;height:100%}.gids-level-gauge{}.gids-level-gauge__main-container{display:flex;flex-direction:column;gap:var(--gids-gap-050)}.gids-level-gauge__main-container--variant-amber .gids-level-gauge__track-background{stroke:rgb(248, 248, 248)}.gids-level-gauge__main-container--variant-burgundy .gids-level-gauge__track-background{stroke:rgb(246, 243, 243)}.gids-level-gauge__main-container--variant-teal .gids-level-gauge__track-background{stroke:rgb(232, 245, 250)}.gids-level-gauge__track-background{fill:none;stroke-width:6}.gids-level-gauge__segment{fill:none;stroke-width:6;stroke-linecap:round;transition:stroke-dasharray 0.4s ease-out}.gids-level-gauge__segment--variant-amber{stroke:rgb(80, 82, 88)}.gids-level-gauge__segment--variant-burgundy{stroke:rgb(132, 84, 95)}.gids-level-gauge__segment--variant-teal{stroke:rgb(23, 60, 102)}.gids-level-gauge{}.gids-level-gauge__center-content{position:absolute;top:0;bottom:0;left:0;right:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;pointer-events:none;gap:var(--gids-gap-025)}.gids-level-gauge__label-xxs{font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit)}.gids-level-gauge__label-xs{font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit)}.gids-level-gauge__label-sm{font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit)}.gids-level-gauge__label-md{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)}.gids-level-gauge__label-lg{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)}.gids-level-gauge__label-common{color:var(--gids-color-text-subtlest)}.gids-level-gauge__percentage-xxs{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)}.gids-level-gauge__percentage-xs{font-family:var(--gids-typography-display-x-small__font-family);font-size:var(--gids-typography-display-x-small__font-size);font-weight:var(--gids-typography-display-x-small__font-weight);letter-spacing:var(--gids-typography-display-x-small__letter-spacing);line-height:var(--gids-typography-display-x-small__line-height);text-transform:var(--gids-typography-display-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-display-x-small__font-variant-caps, inherit)}.gids-level-gauge__percentage-sm{font-family:var(--gids-typography-display-x-small__font-family);font-size:var(--gids-typography-display-x-small__font-size);font-weight:var(--gids-typography-display-x-small__font-weight);letter-spacing:var(--gids-typography-display-x-small__letter-spacing);line-height:var(--gids-typography-display-x-small__line-height);text-transform:var(--gids-typography-display-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-display-x-small__font-variant-caps, inherit)}.gids-level-gauge__percentage-md{font-family:var(--gids-typography-display-small__font-family);font-size:var(--gids-typography-display-small__font-size);font-weight:var(--gids-typography-display-small__font-weight);letter-spacing:var(--gids-typography-display-small__letter-spacing);line-height:var(--gids-typography-display-small__line-height);text-transform:var(--gids-typography-display-small__text-transform, inherit);font-variant-caps:var(--gids-typography-display-small__font-variant-caps, inherit)}.gids-level-gauge__percentage-lg{font-family:var(--gids-typography-display-small__font-family);font-size:var(--gids-typography-display-small__font-size);font-weight:var(--gids-typography-display-small__font-weight);letter-spacing:var(--gids-typography-display-small__letter-spacing);line-height:var(--gids-typography-display-small__line-height);text-transform:var(--gids-typography-display-small__text-transform, inherit);font-variant-caps:var(--gids-typography-display-small__font-variant-caps, inherit)}.gids-level-gauge__percentage-common{color:var(--gids-color-text-default)}.gids-level-gauge{}.gids-level-gauge__bottom-content{display:flex;justify-content:center;text-align:center}.gids-level-gauge__no-data{display:flex;align-items:center;justify-content:center;padding:var(--gids-padding-vertical-edge-to-element-300) var(--gids-padding-horizontal-edge-to-element-100);width:100%;height:100%;min-height:200px;color:var(--gids-color-text-subtlest);border:var(--gids-border-width-thin) dashed var(--gids-color-border-default);border-radius:var(--gids-border-radius-md)}"}},[260,"gids-level-gauge",{breakpoint:[1],value:[2],label:[1],size:[1],color:[1],chartLoaderSize:[1,"chart-loader-size"],chartLoading:[4,"chart-loading"],chartLoadingTitle:[1,"chart-loading-title"],chartLoadingSupportingText:[1,"chart-loading-supporting-text"],width:[32],height:[32]},void 0,{value:[{valueChanged:0}],max:[{valueChanged:0}]}]);function bs(){typeof customElements<"u"&&["gids-level-gauge"].forEach((e=>{e==="gids-level-gauge"&&(customElements.get(e)||customElements.define(e,fs))}))}bs();const{getGidsLineChartClassNames:to}=Gn,vs=P(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.breakpoint="desktop",this.legend="none",this.chartData=[],this.yAxisVisible=!1,this.dataPoints=[],this.chartLoaderSize="lg",this.chartLoading=!1,this.width=0,this.height=0}chartDataChanged(){this.updateDimensions()}dataPointsChanged(e){this.dataPoints=e}legendChanged(e){this.legend=e}yAxisVisibilityChanged(e){this.yAxisVisible=e}componentDidLoad(){this.updateDimensions(),this.resizeObserver=new ResizeObserver((()=>this.updateDimensions())),this.hostElement.parentElement&&this.resizeObserver.observe(this.hostElement.parentElement)}disconnectedCallback(){this.resizeObserver&&this.resizeObserver.disconnect()}updateDimensions(){const e=this.hostElement.getBoundingClientRect();this.width=e.width,this.height=e.height>0?e.height:300}render(){if(this.chartLoading)return r("div",{class:"gids-line-chart__no-data"},r(ae,{label:this.chartLoadingTitle,supportingText:this.chartLoadingSupportingText,size:this?.chartLoaderSize??"lg"}));const e=this.chartData.flatMap((p=>Array.isArray(p?.data)?p.data.map((m=>m.value)):[])),t=e.length>0?Math.max(...e):10,i=Math.pow(10,Math.floor(Math.log10(t||1)));let s=i;t/i<=2?s=i/5:t/i<=5&&(s=i/2);const a=Math.ceil(t/s)*s;let n=[];if(Array.isArray(this.dataPoints)&&this.dataPoints.length>0)n=[...this.dataPoints].sort(((p,m)=>p-m));else{const m=a/4;for(let u=0;u<5;u++)n.push(Math.round(0+u*m))}const o=Math.max(...n,a)-0||1,l=this?.chartData?.[0]?.data?.map((p=>p.label))??[],d=l.length,g=to({breakpoint:this.breakpoint});let c=!1,h=!1;return this.breakpoint==="mobile"?this.legend!=="none"&&(c=!0):this.legend==="top"?c=!0:this.legend==="right"&&(h=!0),r("div",{class:g},c?r("div",{class:"gids-line-chart__header"},r("gids-chart-legend",{orientation:"horizontal"},this.chartData.map(((p,m)=>r("gids-chart-legend-item",{key:p.label,seriesType:`${m+1}`,orientation:"horizontal"},p.label))))):null,r("div",{class:"gids-line-chart__main-container"},r("div",{class:"gids-line-chart__grid-layout"},r("span",{class:"gids-line-chart__y-axis-label"},this.yAxisLabel),r("div",{class:"gids-line-chart__chart-stage-container"},this.yAxisVisible?r("div",{class:"gids-line-chart__y-axis-scale-container"},n.map((p=>r("span",{class:"gids-line-chart__scale-text gids-line-chart__y-axis-scale-value",key:p,style:{bottom:(p-0)/o*100+"%"}},p)))):null,r("div",{class:"gids-line-chart__chart-stage"},r("svg",{viewBox:"0 0 100 100",class:"gids-line-chart__chart-vector",preserveAspectRatio:"none"},r("defs",null,this.chartData.map(((p,m)=>r("linearGradient",{id:`areaGradient-${m}`,x1:"0",y1:"0",x2:"0",y2:"1",key:m},r("stop",{offset:"0%",class:`gids-line-chart__gradient-start-${m}`}),r("stop",{offset:"100%",class:`gids-line-chart__gradient-end-${m}`}))))),n.map((p=>{const m=100-(p-0)/o*100;return r("line",{x1:"0",y1:m,x2:"100",y2:m,class:"gids-line-chart__grid-line",key:p})})),this.chartData.map(((p,m)=>{if(!Array.isArray(p.data)||p.data.length<2)return null;const u=p.data.map(((f,v)=>`${v===0?"M":"L"} ${v/(d-1)*100} ${100-(f.value-0)/o*100}`)).join(" ");return r("g",{key:p.label||m},r("path",{d:`${u} L 100 100 L 0 100 Z`,fill:`url(#areaGradient-${m})`,class:"gids-line-chart__chart-area"}),r("path",{d:u,class:`gids-line-chart__chart-line gids-line-chart__series-line-${m+1}`}))}))))),r("div",{class:"gids-line-chart__x-axis-scale-container"},l.map(((p,m)=>r("span",{class:"gids-line-chart__scale-text",key:m},p)))),r("span",{class:"gids-line-chart__x-axis-label"},this.xAxisLabel)),h?r("gids-chart-legend",{orientation:"vertical"},this.chartData.map(((p,m)=>r("gids-chart-legend-item",{key:p.label,seriesType:`${m+1}`,orientation:"vertical"},p.label)))):null))}get hostElement(){return this}static get watchers(){return{chartData:[{chartDataChanged:0}],dataPoints:[{dataPointsChanged:0}],legend:[{legendChanged:0}],yAxisVisible:[{yAxisVisibilityChanged:0}]}}static get style(){return":host{display:block;width:100%;height:100%;box-sizing:border-box}.gids-line-chart{display:flex;flex-direction:column;width:100%;height:100%;box-sizing:border-box}.gids-line-chart--breakpoint-mobile{max-width:var(--gids-width-xs)}.gids-line-chart__main-container{display:flex;gap:var(--gids-gap-200)}.gids-line-chart__header{display:flex;justify-content:flex-end;align-items:center;width:100%;margin-bottom:var(--gids-padding-vertical-edge-to-element-200)}.gids-line-chart__grid-layout{display:grid;grid-template-columns:auto 1fr;grid-template-rows:minmax(180px, 280px) auto auto;flex:1;width:100%;height:100%;box-sizing:border-box}.gids-line-chart__y-axis-label{grid-column:1;grid-row:1;display:flex;align-items:center;justify-content:center;margin-right:var(--gids-padding-horizontal-edge-to-element-150);font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit);color:var(--gids-color-text-subtlest);writing-mode:vertical-rl;transform:rotate(180deg);white-space:nowrap}.gids-line-chart__chart-stage-container{grid-column:2;grid-row:1;position:relative;width:100%;height:100%;padding-left:var(--gids-container-padding-desktop);box-sizing:border-box}.gids-line-chart__y-axis-scale-container{position:absolute;top:0;bottom:0;left:0;width:calc(var(--gids-container-padding-desktop) - var(--gids-padding-horizontal-edge-to-element-100));pointer-events:none}.gids-line-chart__y-axis-scale-value{position:absolute;right:0;transform:translateY(50%)}.gids-line-chart__chart-stage{position:relative;width:100%;height:100%;border-bottom:var(--gids-border-width-thin) solid var(--gids-color-border-default);box-sizing:border-box}.gids-line-chart__chart-vector{display:block;width:100%;height:100%;overflow:visible}.gids-line-chart__grid-line{stroke:var(--gids-color-border-default);stroke-width:0.5;fill:none}.gids-line-chart__chart-area{stroke:none}.gids-line-chart__chart-line{fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}.gids-line-chart__chart-line.gids-line-chart__series-line-1{stroke:var(--gids-color-icon-subtle)}.gids-line-chart__chart-line.gids-line-chart__series-line-2{stroke:var(--gids-color-icon-warning)}.gids-line-chart__chart-line.gids-line-chart__series-line-3{stroke:var(--gids-color-icon-danger)}.gids-line-chart__gradient-start-0{stop-color:rgba(127, 86, 217, 0.09);stop-opacity:1}.gids-line-chart__gradient-end-0{stop-color:rgba(127, 86, 217, 0.09);stop-opacity:0}.gids-line-chart__gradient-start-1{stop-color:rgba(127, 86, 217, 0.1);stop-opacity:1}.gids-line-chart__gradient-end-1{stop-color:rgba(127, 86, 217, 0.1);stop-opacity:0}.gids-line-chart__gradient-start-2{stop-color:rgba(127, 86, 217, 0.12);stop-opacity:1}.gids-line-chart__gradient-end-2{stop-color:rgba(127, 86, 217, 0.12);stop-opacity:0}.gids-line-chart__x-axis-scale-container{display:flex;grid-column:2;grid-row:2;justify-content:space-between;align-items:center;padding-left:var(--gids-container-padding-desktop);padding-top:var(--gids-padding-vertical-edge-to-element-100);box-sizing:border-box}.gids-line-chart__x-axis-label{grid-column:2;grid-row:3;display:flex;justify-content:center;align-items:center;padding-top:var(--gids-padding-vertical-edge-to-element-100);font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit);color:var(--gids-color-text-subtlest);white-space:nowrap}.gids-line-chart__scale-text{font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit);color:var(--gids-color-text-subtlest);user-select:none;white-space:nowrap}.gids-line-chart__no-data{display:flex;align-items:center;justify-content:center;padding:var(--gids-padding-vertical-edge-to-element-300) var(--gids-padding-horizontal-edge-to-element-100);width:100%;height:100%;min-height:200px;color:var(--gids-color-text-subtlest);border:var(--gids-border-width-thin) dashed var(--gids-color-border-default);border-radius:var(--gids-border-radius-md)}"}},[0,"gids-line-chart",{breakpoint:[1],legend:[1],chartData:[16],yAxisVisible:[4,"y-axis-visible"],xAxisLabel:[1,"x-axis-label"],yAxisLabel:[1,"y-axis-label"],dataPoints:[16],chartLoaderSize:[1,"chart-loader-size"],chartLoading:[4,"chart-loading"],chartLoadingTitle:[1,"chart-loading-title"],chartLoadingSupportingText:[1,"chart-loading-supporting-text"],width:[32],height:[32]},void 0,{chartData:[{chartDataChanged:0}],dataPoints:[{dataPointsChanged:0}],legend:[{legendChanged:0}],yAxisVisible:[{yAxisVisibilityChanged:0}]}]);function ys(){typeof customElements<"u"&&["gids-line-chart","gids-chart-legend","gids-chart-legend-item"].forEach((e=>{switch(e){case"gids-line-chart":customElements.get(e)||customElements.define(e,vs);break;case"gids-chart-legend":customElements.get(e)||me();break;case"gids-chart-legend-item":customElements.get(e)||fe()}}))}ys();const{getGidsPieChartClassNames:io}=jn,_s=P(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.breakpoint="desktop",this.legendVisible=!1,this.chartData=[],this.size="xxs",this.chartLoaderSize="lg",this.chartLoading=!1,this.width=0,this.height=0}chartDataChanged(){this.updateDimensions()}legendVisibilityChanged(e){this.legendVisible=e}componentDidLoad(){this.updateDimensions(),this.resizeObserver=new ResizeObserver((()=>this.updateDimensions())),this.hostElement.parentElement&&this.resizeObserver.observe(this.hostElement.parentElement)}disconnectedCallback(){this.resizeObserver&&this.resizeObserver.disconnect()}updateDimensions(){const e=this.hostElement.getBoundingClientRect();this.width=e.width,this.height=e.height>0?e.height:240}render(){if(this.chartLoading)return r("div",{class:"gids-pie-chart__no-data"},r(ae,{label:this.chartLoadingTitle,supportingText:this.chartLoadingSupportingText,size:this?.chartLoaderSize??"lg"}));const e=this.chartData.length,t=this.chartData.reduce(((l,d)=>l+(d.value||0)),0);let i=t;e<6&&e>0&&(i=t+t/e*(6-e));const s=i>0?i:1,a=io({breakpoint:this.breakpoint}),n=2*Math.PI*25;let o=0;return r("div",{class:a},r("div",{class:"gids-pie-chart__main-container"},r("div",{class:"gids-pie-chart__chart-stage-container"},r("div",{class:`gids-pie-chart__svg-wrapper gids-pie-chart__svg-wrapper--size-${this.size}`},r("svg",{viewBox:"0 0 100 100",class:"gids-pie-chart__chart-vector"},r("circle",{cx:"50",cy:"50",r:25,class:"gids-pie-chart__track-background"}),this.chartData.map(((l,d)=>{const g=(l.value||0)/s,c=`${g*n} ${n}`,h=-o*n;return o+=g,r("circle",{key:l.label||d,cx:"50",cy:"50",r:25,class:`gids-pie-chart__segment gids-pie-chart__segment-series-${d+1}`,"stroke-dasharray":c,"stroke-dashoffset":h,transform:"rotate(-90 50 50)"})}))))),this.legendVisible?r("div",{class:"gids-pie-chart__legend-container"},r("gids-chart-legend",{orientation:"vertical"},this.chartData.map(((l,d)=>r("gids-chart-legend-item",{key:l.label,seriesType:`${d+1}`,orientation:"vertical"},l.label))))):null))}get hostElement(){return this}static get watchers(){return{chartData:[{chartDataChanged:0}],legendVisible:[{legendVisibilityChanged:0}]}}static get style(){return":host{display:block;width:100%;height:100%;box-sizing:border-box}.gids-pie-chart{display:flex;flex-direction:column;width:100%;height:100%;box-sizing:border-box}.gids-pie-chart--breakpoint-mobile{max-width:var(--gids-width-xs)}.gids-pie-chart__main-container{display:inline-flex;justify-content:center;gap:var(--gids-gap-200);width:100%;height:100%}.gids-pie-chart__chart-stage-container{display:flex;justify-content:center;align-items:center}.gids-pie-chart{}.gids-pie-chart__svg-wrapper{position:relative;display:block;flex-shrink:0}.gids-pie-chart__svg-wrapper--size-xxs{width:180px;height:180px}.gids-pie-chart__svg-wrapper--size-xs{width:220px;height:220px}.gids-pie-chart__svg-wrapper--size-sm{width:260px;height:260px}.gids-pie-chart__svg-wrapper--size-md{width:300px;height:300px}.gids-pie-chart__svg-wrapper--size-lg{width:340px;height:340px}.gids-pie-chart__chart-vector{display:block;width:100%;height:100%}.gids-pie-chart{}.gids-pie-chart__track-background{fill:none;stroke:var(--gids-color-background-neutral-default);stroke-width:12;}.gids-pie-chart__segment{fill:none;stroke-width:12;stroke-linecap:butt;transition:stroke-dashoffset 0.3s ease;}.gids-pie-chart__segment.gids-pie-chart__segment-series-1{stroke:var(--gids-color-icon-subtle);}.gids-pie-chart__segment.gids-pie-chart__segment-series-2{stroke:var(--gids-color-icon-warning);}.gids-pie-chart__segment.gids-pie-chart__segment-series-3{stroke:var(--gids-color-icon-danger);}.gids-pie-chart__segment.gids-pie-chart__segment-series-4{stroke:var(--gids-color-background-positive-bold-hovered);}.gids-pie-chart__segment.gids-pie-chart__segment-series-5{stroke:var(--gids-color-background-information-bold-default);}.gids-pie-chart__segment.gids-pie-chart__segment-series-6{stroke:rgb(238, 70, 188);}.gids-pie-chart__legend-container{display:inline-flex;align-items:flex-start}.gids-pie-chart__no-data{display:flex;align-items:center;justify-content:center;padding:var(--gids-padding-vertical-edge-to-element-300) var(--gids-padding-horizontal-edge-to-element-100);width:100%;height:100%;min-height:200px;color:var(--gids-color-text-subtlest);border:var(--gids-border-width-thin) dashed var(--gids-color-border-default);border-radius:var(--gids-border-radius-md)}"}},[0,"gids-pie-chart",{breakpoint:[1],legendVisible:[4,"legend-visible"],chartData:[16],size:[1],chartLoaderSize:[1,"chart-loader-size"],chartLoading:[4,"chart-loading"],chartLoadingTitle:[1,"chart-loading-title"],chartLoadingSupportingText:[1,"chart-loading-supporting-text"],width:[32],height:[32]},void 0,{chartData:[{chartDataChanged:0}],legendVisible:[{legendVisibilityChanged:0}]}]);function xs(){typeof customElements<"u"&&["gids-pie-chart","gids-chart-legend","gids-chart-legend-item"].forEach((e=>{switch(e){case"gids-pie-chart":customElements.get(e)||customElements.define(e,_s);break;case"gids-chart-legend":customElements.get(e)||me();break;case"gids-chart-legend-item":customElements.get(e)||fe()}}))}xs();const{getGidsProgressCircleClassNames:so}=Bn,ws=P(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.breakpoint="desktop",this.value=0,this.shape="circle",this.label="",this.size="xs",this.chartLoaderSize="lg",this.chartLoading=!1,this.width=0,this.height=0}valueChanged(){this.updateDimensions()}componentDidLoad(){this.updateDimensions(),this.resizeObserver=new ResizeObserver((()=>this.updateDimensions())),this.hostElement.parentElement&&this.resizeObserver.observe(this.hostElement.parentElement)}disconnectedCallback(){this.resizeObserver&&this.resizeObserver.disconnect()}updateDimensions(){const e=this.hostElement.getBoundingClientRect();this.width=e.width,this.height=e.height>0?e.height:240}render(){if(this.chartLoading)return r("div",{class:"gids-progress-circle__no-data"},r(ae,{label:this.chartLoadingTitle,supportingText:this.chartLoadingSupportingText,size:this?.chartLoaderSize??"lg"}));const e=this.shape==="half-circle"?an:Ai;if(!(typeof this.value=="number"&&!isNaN(this.value)&&this.value<=e&&this.value>=0))return r("div",{class:"gids-progress-circle__no-data"},r(Ie,{title:Ni,supportingText:zi(e)}));const t=this.value/e,i=`${this.value}%`,s=so({breakpoint:this.breakpoint}),a=this.shape==="half-circle";let n=2*Math.PI*40,o=t*n,l=0,d="0 0 100 100",g="rotate(-90 50 50)";a&&(n=40*Math.PI,o=t*n,l=0,d="0 0 100 50",g="");const c=this.size==="xxs",h=typeof this.label=="string"&&this.label.trim()!=="";return r("div",{class:s},r("div",{class:"gids-progress-circle__main-container"},r("div",{class:`gids-progress-circle__svg-wrapper gids-progress-circle__svg-wrapper--shape-${this.shape}--size-${this.size}`},r("svg",{viewBox:d,class:"gids-progress-circle__chart-vector"},a?r("g",null,r("path",{d:"M 10,50 A 40,40 0 0,1 90,50",fill:"none",class:"gids-progress-circle__track-background"}),r("path",{d:"M 10,50 A 40,40 0 0,1 90,50",fill:"none",class:"gids-progress-circle__segment","stroke-dasharray":`${o} ${n}`,"stroke-dashoffset":l})):r("g",null,r("circle",{cx:"50",cy:"50",r:40,class:"gids-progress-circle__track-background"}),r("circle",{cx:"50",cy:"50",r:40,class:"gids-progress-circle__segment","stroke-dasharray":`${o} ${n}`,"stroke-dashoffset":l,transform:g}))),r("div",{class:`gids-progress-circle__center-content gids-progress-circle__shape-${this.shape}`},h&&!c?r("span",{class:`gids-progress-circle__label-common gids-progress-circle__label-${this.size}`},this.label):null,r("span",{class:`gids-progress-circle__percentage-common gids-progress-circle__percentage-${this.size}`},i))),c&&h?r("div",{class:"gids-progress-circle__bottom-content"},r("span",{class:`gids-progress-circle__label-common gids-progress-circle__label-${this.size}`},this.label)):null))}get hostElement(){return this}static get watchers(){return{value:[{valueChanged:0}],shape:[{valueChanged:0}]}}static get style(){return":host{display:block;box-sizing:border-box}.gids-progress-circle{display:block;box-sizing:border-box}.gids-progress-circle--breakpoint-mobile{max-width:var(--gids-width-xs)}.gids-progress-circle__main-container{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;height:100%}.gids-progress-circle{}.gids-progress-circle__svg-wrapper{position:relative;display:block;flex-shrink:0;}.gids-progress-circle__svg-wrapper--shape-circle--size-xxs{width:180px;height:180px}.gids-progress-circle__svg-wrapper--shape-circle--size-xs{width:220px;height:220px}.gids-progress-circle__svg-wrapper--shape-circle--size-sm{width:260px;height:260px}.gids-progress-circle__svg-wrapper--shape-circle--size-md{width:300px;height:300px}.gids-progress-circle__svg-wrapper--shape-circle--size-lg{width:340px;height:340px}.gids-progress-circle__svg-wrapper{}.gids-progress-circle__svg-wrapper--shape-half-circle--size-xxs{width:180px;height:144px}.gids-progress-circle__svg-wrapper--shape-half-circle--size-xs{width:220px;height:130px}.gids-progress-circle__svg-wrapper--shape-half-circle--size-sm{width:260px;height:152px}.gids-progress-circle__svg-wrapper--shape-half-circle--size-md{width:300px;height:174px}.gids-progress-circle__svg-wrapper--shape-half-circle--size-lg{width:340px;height:194px}.gids-progress-circle__chart-vector{display:block;width:100%;height:100%}.gids-progress-circle{}.gids-progress-circle__track-background{fill:none;stroke:var(--gids-color-background-neutral-default);stroke-width:6;stroke-linecap:round}.gids-progress-circle{}.gids-progress-circle__segment{fill:none;stroke:var(--gids-color-text-brand);stroke-width:6;stroke-linecap:round;transition:stroke-dasharray 0.4s ease-out, stroke-dashoffset 0.4s ease-out}.gids-progress-circle{}.gids-progress-circle__center-content{position:absolute;top:0;bottom:0;left:0;right:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;pointer-events:none}.gids-progress-circle__shape-half-circle{justify-content:flex-end;align-items:center;bottom:var(--gids-padding-vertical-edge-to-element-300)}.gids-progress-circle__label-xxs{font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit)}.gids-progress-circle__label-xs{font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit)}.gids-progress-circle__label-sm{font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit)}.gids-progress-circle__label-md{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)}.gids-progress-circle__label-lg{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)}.gids-progress-circle__label-common{color:var(--gids-color-text-subtlest)}.gids-progress-circle__percentage-xxs{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)}.gids-progress-circle__percentage-xs{font-family:var(--gids-typography-display-x-small__font-family);font-size:var(--gids-typography-display-x-small__font-size);font-weight:var(--gids-typography-display-x-small__font-weight);letter-spacing:var(--gids-typography-display-x-small__letter-spacing);line-height:var(--gids-typography-display-x-small__line-height);text-transform:var(--gids-typography-display-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-display-x-small__font-variant-caps, inherit)}.gids-progress-circle__percentage-sm{font-family:var(--gids-typography-display-x-small__font-family);font-size:var(--gids-typography-display-x-small__font-size);font-weight:var(--gids-typography-display-x-small__font-weight);letter-spacing:var(--gids-typography-display-x-small__letter-spacing);line-height:var(--gids-typography-display-x-small__line-height);text-transform:var(--gids-typography-display-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-display-x-small__font-variant-caps, inherit)}.gids-progress-circle__percentage-md{font-family:var(--gids-typography-display-small__font-family);font-size:var(--gids-typography-display-small__font-size);font-weight:var(--gids-typography-display-small__font-weight);letter-spacing:var(--gids-typography-display-small__letter-spacing);line-height:var(--gids-typography-display-small__line-height);text-transform:var(--gids-typography-display-small__text-transform, inherit);font-variant-caps:var(--gids-typography-display-small__font-variant-caps, inherit)}.gids-progress-circle__percentage-lg{font-family:var(--gids-typography-display-small__font-family);font-size:var(--gids-typography-display-small__font-size);font-weight:var(--gids-typography-display-small__font-weight);letter-spacing:var(--gids-typography-display-small__letter-spacing);line-height:var(--gids-typography-display-small__line-height);text-transform:var(--gids-typography-display-small__text-transform, inherit);font-variant-caps:var(--gids-typography-display-small__font-variant-caps, inherit)}.gids-progress-circle__percentage-common{color:var(--gids-color-text-default)}.gids-progress-circle{}.gids-progress-circle__bottom-content{display:flex;justify-content:center;text-align:center}.gids-progress-circle__no-data{display:flex;align-items:center;justify-content:center;padding:var(--gids-padding-vertical-edge-to-element-300) var(--gids-padding-horizontal-edge-to-element-100);width:100%;height:100%;min-height:200px;color:var(--gids-color-text-subtlest);border:var(--gids-border-width-thin) dashed var(--gids-color-border-default);border-radius:var(--gids-border-radius-md)}"}},[0,"gids-progress-circle",{breakpoint:[1],value:[2],shape:[1],label:[1],size:[1],chartLoaderSize:[1,"chart-loader-size"],chartLoading:[4,"chart-loading"],chartLoadingTitle:[1,"chart-loading-title"],chartLoadingSupportingText:[1,"chart-loading-supporting-text"],width:[32],height:[32]},void 0,{value:[{valueChanged:0}],shape:[{valueChanged:0}]}]);function Cs(){typeof customElements<"u"&&["gids-progress-circle"].forEach((e=>{e==="gids-progress-circle"&&(customElements.get(e)||customElements.define(e,ws))}))}Cs();const{getGidsChartClassNames:ao}=Hn,ks=P(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.breakpoint="desktop",this.chartType="line-chart",this.getChartTypes=()=>["line-chart","bar-chart","pie-chart","activity-gauge","level-gauge","progress-circle","radar-chart"],this.isChartTypeValid=()=>{const t=this.getChartTypes(),i=this.chartType;return!(!i||!t.includes(i))},this.isChartDataValid=()=>{const t=this.chartType;if(t==="line-chart"){const i=this.lineChartProps,s=i?.chartData??[],a=s?.[0]?.data??[];return Array.isArray(s)&&s.length>0&&Array.isArray(a)&&a.length>0}if(t==="bar-chart"){const i=this.barChartProps,s=i?.chartData??[],a=s?.[0]?.data??[];return Array.isArray(s)&&s.length>0&&Array.isArray(a)&&a.length>0}if(t==="pie-chart"){const i=this.pieChartProps,s=i?.chartData??[];return Array.isArray(s)&&s.length>0}if(t==="activity-gauge"){const i=this.activityGaugeProps,s=i?.chartData??[];return Array.isArray(s)&&s.length>0}return t==="radar-chart"},this.getChartTypeText=()=>{const t=this.chartType;if(t){const i=t.split("-");let s="";return i.map(((a,n)=>{s=n===0?""+a:`${s} ${a}`})),s}return""}}handleBreakpointChange(e){this.breakpoint=e}handleChartTypeChange(e){this.chartType=e}render(){if(!this.isChartTypeValid())return r("div",{class:"gids-chart__no-data"},r(Ie,{title:nn,supportingText:rn(this.getChartTypes().join(", "))}));const e=this.isChartDataValid(),t=this.getChartTypeText();if(!e)return r("div",{class:"gids-activity-gauge__no-data"},r(Ie,{title:tn,supportingText:sn(t)}));const i=ao(),s=this.chartType,a=this.barChartProps,n=this.pieChartProps,o=this.activityGaugeProps,l=this.levelGaugeProps,d=this.progressCircleProps;return r("div",{class:i},s==="line-chart"?r("gids-line-chart",{...this.lineChartProps,breakpoint:this.breakpoint}):null,s==="bar-chart"?r("gids-bar-chart",{...a,breakpoint:this.breakpoint}):null,s==="pie-chart"?r("gids-pie-chart",{...n,breakpoint:this.breakpoint}):null,s==="activity-gauge"?r("gids-activity-gauge",{...o,breakpoint:this.breakpoint}):null,s==="level-gauge"?r("gids-level-gauge",{...l,breakpoint:this.breakpoint}):null,s==="progress-circle"?r("gids-progress-circle",{...d,breakpoint:this.breakpoint}):null,s==="radar-chart"?r("div",{class:"gids-chart__no-data"},r(Ie,{title:"Coming Soon!",supportingText:"Radar chart is under progress. This will be available in next major version of GIDS."})):null)}static get watchers(){return{breakpoint:[{handleBreakpointChange:0}],chartType:[{handleChartTypeChange:0}]}}static get style(){return".gids-chart__no-data{display:flex;align-items:center;justify-content:center;padding:var(--gids-padding-vertical-edge-to-element-300) var(--gids-padding-horizontal-edge-to-element-100);width:100%;height:100%;min-height:200px;color:var(--gids-color-text-subtlest);border:var(--gids-border-width-thin) dashed var(--gids-color-border-default);border-radius:var(--gids-border-radius-md)}"}},[0,"gids-chart",{breakpoint:[1],chartType:[1,"chart-type"],lineChartProps:[16],barChartProps:[16],pieChartProps:[16],activityGaugeProps:[16],levelGaugeProps:[16],progressCircleProps:[16]},void 0,{breakpoint:[{handleBreakpointChange:0}],chartType:[{handleChartTypeChange:0}]}]);function no(){typeof customElements<"u"&&["gids-chart","gids-activity-gauge","gids-bar-chart","gids-chart-legend","gids-chart-legend-item","gids-level-gauge","gids-line-chart","gids-pie-chart","gids-progress-circle"].forEach((e=>{switch(e){case"gids-chart":customElements.get(e)||customElements.define(e,ks);break;case"gids-activity-gauge":customElements.get(e)||Ki();break;case"gids-bar-chart":customElements.get(e)||Ji();break;case"gids-chart-legend":customElements.get(e)||me();break;case"gids-chart-legend-item":customElements.get(e)||fe();break;case"gids-level-gauge":customElements.get(e)||bs();break;case"gids-line-chart":customElements.get(e)||ys();break;case"gids-pie-chart":customElements.get(e)||xs();break;case"gids-progress-circle":customElements.get(e)||Cs()}}))}no();const ro=ks,{getGidsChevronButtonClassNames:Ot}=En,Ss=P(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.gidsChevronButton=Se(this,"gidsChevronButton"),this.activeClasses="",this.size="xs"}handleExtraClassesAndSizeChange(e){this.activeClasses=Ot({size:this.size},e)}handleSizeChange(e){this.size=e}handleDisabledChange(e){this.disabled=e}connectedCallback(){const e=O();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e),this.activeClasses=Ot({size:this.size},this.extraClasses)}componentDidLoad(){this.activeClasses=Ot({size:this.size},this.extraClasses)}render(){return r("button",{key:"b2c4dce0b1b731f18f7bc51d4f2dc3b2bc4814e0",class:this.activeClasses,slot:"trailingAccessory",type:"button",onClick:e=>this.gidsChevronButton.emit(e),"aria-label":this?.ariaLabel??"","aria-expanded":this?.ariaExpanded??"","aria-haspopup":this?.ariaHaspopup??"","aria-controls":this?.ariaControls??"",disabled:this.disabled,tabIndex:-1},r("span",{key:"42f01ac64723aa9195d2f36b0b02e0a36811f19e",class:"gids-button__content"},r(D,{key:"a78239b33647d4f4653f8c7660ae7cf69f9a1307",name:"chevron-vertical",alt:""})))}get _el(){return this}static get watchers(){return{extraClasses:[{handleExtraClassesAndSizeChange:0}],size:[{handleExtraClassesAndSizeChange:0},{handleSizeChange:0}],disabled:[{handleDisabledChange:0}]}}static get style(){return".gids-chevron-button{color:inherit;background-color:transparent;border:none;margin:0;padding:0;text-align:inherit;font:inherit;border-radius:0;appearance:none;display:inline-flex;justify-content:center;align-self:center;border-radius:var(--gids-border-radius-full);--gidsIcon-color:var(--gids-color-icon-default);--gidsIcon-height:var(--gidsChevronButtonIcon-height);--gidsChevronButtonIcon-height:var(--gids-size-120)}.gids-chevron-button--sm{--gidsIcon-height:var(--gids-size-160)}.gids-chevron-button--md{--gidsIcon-height:var(--gids-size-200)}.gids-chevron-button--lg{--gidsIcon-height:var(--gids-size-240)}.gids-chevron-button:hover{background-color:var(--gids-color-background-neutral-subtle-hovered)}.gids-chevron-button:active{background-color:var(--gids-color-background-neutral-subtle-pressed)}.gids-chevron-button:disabled .gids-icon{--gidsIcon-color:var(--gids-color-icon-disabled)}.gids-chevron-button:disabled:hover{background-color:transparent}.gids-chevron-button:disabled:active{background-color:transparent}"}},[1,"gids-chevron-button",{extraClasses:[513,"extra-classes"],size:[513],disabled:[516],ariaLabel:[513,"aria-label"],ariaHaspopup:[513,"aria-haspopup"],ariaExpanded:[513,"aria-expanded"],ariaControls:[513,"aria-controls"],activeClasses:[32]},void 0,{extraClasses:[{handleExtraClassesAndSizeChange:0}],size:[{handleExtraClassesAndSizeChange:0},{handleSizeChange:0}],disabled:[{handleDisabledChange:0}]}]);function oo(){typeof customElements<"u"&&["gids-chevron-button"].forEach((e=>{e==="gids-chevron-button"&&(customElements.get(e)||customElements.define(e,Ss))}))}oo();const lo=Ss,co=gs,{getIndicatorText:ho}=Ba,{getGidsLabelClassNames:go}=Oa,Rt=({disabled:e,fieldRequirement:t,fieldRequirementOptionalText:i,fieldRequirementRequiredText:s,info:a,htmlFor:n,labelId:o,class:l,isLabelSentence:d,...g},c)=>{const h=ho({children:c,fieldRequirement:t,fieldRequirementOptionalText:i,fieldRequirementRequiredText:s,isLabelSentence:d});return r("div",{class:go({disabled:e},l),...g},r("label",{htmlFor:n,id:o},c,h&&r("span",{class:"gids-label__field-requirement"},h)),a)},Es=P(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.#t={},this._focusInput=t=>{const i=t.target;i===this.#e||this._isWithinInteractiveElement(i)||this.#e?.focus()},this._handleInputFocusAndBlur=t=>{this._el.dispatchEvent(new FocusEvent(t.type,{relatedTarget:t.relatedTarget}))}}get defaultValue(){return this.#e?.defaultValue??this.#t.defaultValue??""}set defaultValue(e){this.#e?this.#e.defaultValue=e:this.#t.defaultValue=e}get value(){return this.#e?.value??this.#t.value??this.#t.defaultValue??""}set value(e){this.#e?this.#e.value=e:this.#t.value=e}#e;#t;_isWithinInteractiveElement(e){if(e===null||e===this._el||!this._el.contains(e))return!1;if(tr(e))return!0;{const t=e.parentElement;if(t)return this._isWithinInteractiveElement(t)}return!1}connectedCallback(){this._el.addEventListener("click",this._focusInput)}disconnectedCallback(){this._el.removeEventListener("click",this._focusInput)}render(){return r(se,{key:"8cfc78682bffd38298aaa5bc8fe63bc996f17586"},r("slot",{key:"5e5c57234e3e531b0d095597e021ab3d4756173d",name:"leadingIcon"}),this.leadingLabel&&r("span",{key:"5d0fc2c8a8716806891347f30ba961db61e1cf91",class:"gids-input__label"},this.leadingLabel),r("slot",{key:"881161160b2e933479c7af0a63846c0f86c7bbfe",name:"leadingAccessory"}),r("input",{key:"f0db6b63f0aa4a1a778743620753184ff0a7086a",...this.inputProps,ref:e=>{this.#e=e,this.#t.value!==void 0&&(this.#e.value=this.#t.value,delete this.#t.value),this.#t.defaultValue!==void 0&&(this.#e.defaultValue=this.#t.defaultValue,delete this.#t.defaultValue)},class:"gids-input__control",name:this.name,disabled:this.disabled,readOnly:this.readOnly,required:this.required,onFocus:this._handleInputFocusAndBlur,onBlur:this._handleInputFocusAndBlur}),r("slot",{key:"5bb8549e6aa491b7ebbf56bce66bab6f386f98fe",name:"trailingAccessory"}),this.trailingLabel&&r("span",{key:"3ef3319efd5512bbd370e314724820a539e342f9",class:"gids-input__label"},this.trailingLabel),r("slot",{key:"22dcea487ee58e5df65a5b88d3f7ce7bcc32f828",name:"trailingIcon"}),this.status==="incomplete"&&r(D,{key:"808723d08c4e8a1533652d6c20fd7f8ff0e98275",name:"warning",appearance:"filled",class:"gids-input__warning-icon"}),this.status==="complete"&&r(D,{key:"10c61d22cb2a4fa56dc0de3025cfc07c1268f91e",name:"positive",appearance:"filled",class:"gids-input__positive-icon"}),this.loading&&r(Tt,{key:"58147d27b92c93a6bf9dde27c394de2868d6225e",size:"md",indeterminate:!0}))}get _el(){return this}},[260,"gids-input",{appearance:[513],defaultValue:[6657,"default-value"],disabled:[516],inputProps:[16],leadingLabel:[513,"leading-label"],trailingLabel:[513,"trailing-label"],loading:[516],name:[513],readOnly:[516,"readonly"],required:[516],status:[513],value:[6145]}]);function Me(){typeof customElements<"u"&&["gids-input"].forEach((e=>{e==="gids-input"&&(customElements.get(e)||customElements.define(e,Es))}))}Me();const{getGidsDropdownClassNames:po,getGidsChevronButtonControlClassNames:uo}=In,Ft="gids-dropdown-item--active",Ps=P(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.appearance="default",this.expanded=!1,this.filterValue="",this.isFilterEditing=!1,this.hasLeadingIcon=!1,this.hasLeadingAccessory=!1,this.activeIndex=-1,this.hasItemListener=!1,this.suppressNextMenuClickSelection=!1,this.hasDocumentListeners=!1,this.hasPendingControlRevalidation=!1,this.handleDropdownItemSelect=t=>{const{value:i,title:s,disabled:a,id:n}=t.detail;a||typeof i!="string"||(this.suppressNextMenuClickSelection=!0,queueMicrotask((()=>{this.suppressNextMenuClickSelection=!1})),this.applySelection({id:n,value:i,title:s,disabled:!1,originalEvent:t}))},this.handleMenuClick=t=>{if(this.suppressNextMenuClickSelection)return;const i=t.target;if(!(i instanceof Element))return;const s=i.closest(".gids-dropdown-item");if(!s||!this.hostElement.contains(s)||s.hasAttribute("disabled")||s.getAttribute("aria-disabled")==="true")return;const a=s instanceof HTMLButtonElement?s.value:s.getAttribute("value")??"";if(typeof a!="string"||a.length===0)return;const n=s instanceof HTMLButtonElement?s.id:s.getAttribute("id")??"";typeof n=="string"&&n.length!==0&&this.applySelection({id:n,value:a,title:s.textContent?.trim()??"",disabled:!1,originalEvent:t})},this.handleFilterInput=t=>{const i=t.target;this.filterValue=i?.value??"",this.isFilterEditing=!0,this.clearActive(),this.expanded||this.setExpandedState(!0,t),this.applyFilter()},this.handleInputKeyDown=t=>{if(!this.isInteractive())return;const i=t.key,s=i==="ArrowDown";if((s||i==="ArrowUp")&&!t.metaKey&&!t.ctrlKey)return t.preventDefault(),this.expanded||this.setExpandedState(!0,t),void this.moveActive(s?1:-1);if(i==="Home"&&this.expanded)return t.preventDefault(),void this.setActiveByIndex(0);if(i==="End"&&this.expanded)return t.preventDefault(),void this.setActiveByIndex(this.getVisibleEnabledItems().length-1);if(i==="Enter"){if(!this.expanded)return t.preventDefault(),this.setExpandedState(!0,t),void this.setActiveByIndex(0);this.selectActive()&&t.preventDefault()}},this.handleTriggerToggle=t=>{this.isInteractive()&&this.setExpandedState(!this.expanded,t)},this.handleInputFocusAndBlur=t=>{this.hostElement.dispatchEvent(new FocusEvent(t.type,{relatedTarget:t.relatedTarget}))},this.handleInputClickToggle=t=>{t.defaultPrevented||this.handleTriggerToggle(t)},this.handleChevronClickToggle=t=>{t.defaultPrevented||(t.stopPropagation(),this.handleTriggerToggle(t))},this.handleDocumentPointerDown=t=>{t.button!==2&&this.expanded&&((typeof t.composedPath=="function"?t.composedPath():[]).includes(this.hostElement)||this.hostElement.contains(t.target)||this.setExpandedState(!1,t))},this.handleDocumentKeyDown=t=>{if(!this.expanded)return;const i=t.key;if(i==="Escape"||i==="Esc")return t.preventDefault(),void this.setExpandedState(!1,t);i==="Tab"&&this.setExpandedState(!1,t)},this.handleFormReset=()=>{this.value=this.initialValue,this.selectedItemTitle=void 0,this.isFilterEditing=!1,this.filterValue="",this.setExpandedState(!1)}}handleExpandedChange(e){e&&!this.isInteractive()&&(this.expanded=!1)}handleInteractivityChange(){!this.isInteractive()&&this.expanded&&this.setExpandedState(!1)}connectedCallback(){this.initialValue=this.value,this.attachItemListener(),this.attachDocumentListeners(),this.attachFormListener()}disconnectedCallback(){this.detachItemListener(),this.detachDocumentListeners(),this.detachFormListener()}componentWillLoad(){this.checkSlots()}componentWillUpdate(){this.checkSlots()}checkSlots(){this.hasLeadingIcon=!!this.hostElement.querySelector('[slot="leadingIconDropdown"]'),this.hasLeadingAccessory=!!this.hostElement.querySelector('[slot="leadingAccessoryDropdown"]')}getItemElements(){return Array.from(this.hostElement.querySelectorAll(".gids-dropdown-item"))}getVisibleEnabledItems(){return this.getItemElements().filter((e=>e.style.display!=="none"&&!e.hasAttribute("disabled")&&e.getAttribute("aria-disabled")!=="true"))}attachItemListener(){this.hasItemListener||(this.hostElement.addEventListener("onPressDropdownItem",this.handleDropdownItemSelect),this.hasItemListener=!0)}detachItemListener(){this.hasItemListener&&(this.hostElement.removeEventListener("onPressDropdownItem",this.handleDropdownItemSelect),this.hasItemListener=!1)}applySelection(e){this.value=e.value,this.selectedItemTitle=typeof e.title=="string"?e.title:void 0,this.isFilterEditing=!1,this.filterValue="",this.clearActive(),this.emitNativeSelectionEvents(this.selectedItemTitle??""),this.setExpandedState(!1,this.coerceEvent(e.originalEvent)),this.onSelectionChange?.(e),this.hostElement.dispatchEvent(new CustomEvent("gidsDropdownChange",{bubbles:!0,composed:!0,detail:e}))}getInputControl(){return this.hostElement.querySelector(".gids-input__control")}emitNativeSelectionEvents(e){const t=this.getInputControl();t&&(t.value=e,t.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),t.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}clearActive(){this.activeIndex=-1,this.getItemElements().forEach((e=>e.classList.remove(Ft))),this.setActiveDescendant(void 0)}setActiveByIndex(e){const t=this.getVisibleEnabledItems();if(this.getItemElements().forEach((a=>a.classList.remove(Ft))),t.length===0)return this.activeIndex=-1,void this.setActiveDescendant(void 0);const i=Math.max(0,Math.min(e,t.length-1)),s=t[i];if(!s)return this.activeIndex=-1,void this.setActiveDescendant(void 0);this.activeIndex=i,s.classList.add(Ft),s.scrollIntoView({block:"nearest"}),this.setActiveDescendant(s.id||void 0)}moveActive(e){const t=this.getVisibleEnabledItems();t.length!==0?this.setActiveByIndex(this.activeIndex===-1?e>0?0:t.length-1:(this.activeIndex+e+t.length)%t.length):this.clearActive()}selectActive(){const e=this.getVisibleEnabledItems();if(e.length===0)return!1;const t=this.activeIndex>=0?e[this.activeIndex]:e[0];return!!t&&(t.click(),this.getInputControl()?.focus(),!0)}applyFilter(){const e=this.filterValue.trim().toLowerCase();this.getItemElements().forEach((t=>{const i=(t.textContent??"").toLowerCase(),s=e.length===0||i.includes(e);t.style.display=s?"":"none"}))}setActiveDescendant(e){const t=this.getInputControl();t&&(e?t.setAttribute("aria-activedescendant",e):t.removeAttribute("aria-activedescendant"))}setExpandedState(e,t){const i=!!e;i&&!this.isInteractive()||this.expanded!==i&&(this.expanded=i,i||(this.isFilterEditing=!1,this.filterValue="",this.clearActive(),this.applyFilter(),this.syncInputDisplayValue()),this.hostElement.dispatchEvent(new CustomEvent("gidsDropdownToggle",{bubbles:!0,composed:!0,detail:{expanded:i,originalEvent:t}})))}syncInputDisplayValue(){const e=this.getInputControl();e&&e.value!==(this.selectedItemTitle??"")&&(e.value=this.selectedItemTitle??"")}attachDocumentListeners(){this.hasDocumentListeners||typeof document>"u"||(document.addEventListener("pointerdown",this.handleDocumentPointerDown),document.addEventListener("keydown",this.handleDocumentKeyDown),this.hasDocumentListeners=!0)}detachDocumentListeners(){this.hasDocumentListeners&&typeof document<"u"&&(document.removeEventListener("pointerdown",this.handleDocumentPointerDown),document.removeEventListener("keydown",this.handleDocumentKeyDown),this.hasDocumentListeners=!1)}attachFormListener(){const e=this.hostElement.closest("form");this.patternForm!==e&&(this.patternForm&&this.patternForm.removeEventListener("reset",this.handleFormReset),this.patternForm=e??void 0,this.patternForm?.addEventListener("reset",this.handleFormReset))}detachFormListener(){this.patternForm&&(this.patternForm.removeEventListener("reset",this.handleFormReset),this.patternForm=void 0)}get form(){return this.getInputControl()?.form??this.patternForm??null}get validity(){return this.getInputControl()?.validity??{}}get validationMessage(){return this.getInputControl()?.validationMessage??""}get willValidate(){return this.getInputControl()?.willValidate??!1}async checkValidity(){return this.getInputControl()?.checkValidity()??!0}async reportValidity(){return this.getInputControl()?.reportValidity()??!0}async setCustomValidity(e){return this.getInputControl()?.setCustomValidity(e)}isInteractive(){return!(this.disabled||this.readOnly)}coerceEvent(e){if(typeof Event<"u"&&e!==null)return e instanceof Event?e:void 0}scheduleControlRevalidation(){if(this.hasPendingControlRevalidation)return;this.hasPendingControlRevalidation=!0;const e=()=>{this.hasPendingControlRevalidation=!1,this.checkValidity()};typeof requestAnimationFrame!="function"?e():requestAnimationFrame(e)}getEnhancedInputProps(){const e={...this.inputProps??{}};typeof e.autoComplete=="string"&&e?.autoComplete?.trim?.()?.length!==0||(e.autoComplete="off");const t=e.onInput;e.onInput=a=>{t?.(a),this.handleFilterInput(a)};const i=e.onBlur;e.onBlur=a=>{i?.(a),this.scheduleControlRevalidation()};const s=e.onKeyDown;return e.onKeyDown=a=>{s?.(a),a.defaultPrevented||this.handleInputKeyDown(a)},e}render(){const e=this.expanded&&this.isInteractive(),t=po({expanded:e}),i=this.getEnhancedInputProps(),s=typeof i.id=="string"?i.id:void 0,a=s?`${s}__menu`:void 0;i.role="combobox",i["aria-expanded"]=e?"true":"false",i["aria-haspopup"]="listbox",i["aria-autocomplete"]="list",a&&(i["aria-controls"]=a);const n=this.isFilterEditing?this.filterValue:this.selectedItemTitle??this.value??"",o=e?"true":"false",l=r("button",{key:"94ed9ae19e3a6e1e9e02c6e3fab0c70a5193667b",class:uo({size:"lg"}),slot:"trailingAccessory",type:"button",onClick:this.handleChevronClickToggle,"aria-label":e?"Collapse options":"Expanded options","aria-expanded":o,"aria-haspopup":"listbox","aria-controls":a,disabled:this.disabled||this.readOnly,tabIndex:-1},r("span",{key:"f6e79003a75a80623564c81c83158640c407c8f4",class:"gids-button__content"},r(D,{key:"85c0caf667a50f629375652ead7c1e8d86bc96ed",name:"chevron-vertical",alt:""})));return r("div",{key:"d02c0b39097b0307ca22a7e86bccfb37083d447f",class:t},r("gids-input",{key:"16475e8ebce7a5909f6c4c102ef781eed657a6e0",appearance:this.appearance,loading:this.loading,disabled:this.disabled,readOnly:this.readOnly,required:this.required,value:n,name:this.name,inputProps:i,onClick:this.handleInputClickToggle,onFocus:this.handleInputFocusAndBlur,onBlur:this.handleInputFocusAndBlur},this.hasLeadingIcon&&r("slot",{key:"fbdf6ef356a9d1ade43eecfa3bb92ef0fe538f1c",name:"leadingIconDropdown",slot:"leadingIcon"}),this.hasLeadingAccessory&&r("slot",{key:"f9e0fc631f4a3a4758d9b446312ae9d0ff9bcd01",name:"leadingAccessoryDropdown",slot:"leadingAccessory"}),l),r("div",{key:"ae2974b210c297fa1e1160ad93d22b45297a1613",class:"gids-dropdown__menu",id:a,role:"listbox",onClick:this.handleMenuClick},r("slot",{key:"d7bd637af09568522549e2551173efd90fa40e4b"})))}get hostElement(){return this}static get watchers(){return{expanded:[{handleExpandedChange:0}],disabled:[{handleInteractivityChange:0}],readOnly:[{handleInteractivityChange:0}]}}static get style(){return'@charset "UTF-8";.gids-dropdown{position:relative}.gids-dropdown__menu{position:absolute;inset-inline:0;top:calc(100% + var(--gids-gap-050));z-index:3;display:none;flex-direction:column;min-height:55px;max-height:20rem;overflow-x:hidden;overflow-y:auto;background-color:var(--gids-elevation-surface-overlay-default);box-shadow:var(--gids-elevation-shadow-overlay);border-radius:var(--gids-border-radius-lg)}.gids-dropdown__menu>*{flex-shrink:0}.gids-dropdown--expanded .gids-dropdown__menu{display:flex}.gids-dropdown__leading-icon{display:flex;align-items:center}.gids-dropdown__accessory{display:flex;align-items:center}'}},[260,"gids-dropdown",{appearance:[1],expanded:[1540],inputProps:[16],disabled:[516],readOnly:[516,"read-only"],loading:[516],value:[513],name:[1],onSelectionChange:[16],required:[4],filterValue:[32],isFilterEditing:[32],selectedItemTitle:[32],hasLeadingIcon:[32],hasLeadingAccessory:[32],checkValidity:[64],reportValidity:[64],setCustomValidity:[64]},void 0,{expanded:[{handleExpandedChange:0}],disabled:[{handleInteractivityChange:0}],readOnly:[{handleInteractivityChange:0}]}]);function Ts(){typeof customElements<"u"&&["gids-dropdown","gids-input"].forEach((e=>{switch(e){case"gids-dropdown":customElements.get(e)||customElements.define(e,Ps);break;case"gids-input":customElements.get(e)||Me()}}))}Ts();const{getGidsFieldClassNames:mo}=cn,Ls=P(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.status="implicit",this._hasLabel=!1,this._controlListenerTargets=[],this._controlTouched=!1,this._handleLabelSlotChange=()=>{this._hasLabel=(this._labelSlot?.assignedElements()?.length??0)>0},this._setLabelSlot=t=>{this._labelSlot=t??void 0,this._handleLabelSlotChange()},this._setControlSlot=t=>{this._controlSlot=t??void 0,this._handleControlSlotChange()},this._handleControlSlotChange=()=>{const t=this._controlSlot?.assignedNodes({flatten:!0})??[],i=this._findTextControl(t);this._attachControlElement(i)},this._handleControlValueInput=t=>{if(!this._controlTouched){const i=t.target;i instanceof HTMLInputElement&&(i.type==="checkbox"||i.type==="radio")&&(this._controlTouched=!0)}this._updateControlValidationState()},this._handleControlBlur=()=>{this._controlTouched=!0,this._updateControlValidationState()},this._handleControlInvalid=()=>{this._controlTouched=!0,this._updateControlValidationState()},this._handleFormReset=()=>{this._controlTouched=!1,this._updateControlValidationState()},this._handleFormSubmit=()=>{this._controlTouched=!0,this._updateControlValidationState()}}_handleStatusChange(){this._isImplicitStatus()||this._controlValidationMessage===void 0?this._updateControlValidationState():this._controlValidationMessage=void 0}connectedCallback(){const e=O();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}componentDidLoad(){setTimeout((()=>{this._handleControlSlotChange(),this._handleLabelSlotChange()}))}async reScanControl(){this._handleControlSlotChange()}disconnectedCallback(){this._detachControlElement(),this._detachFormListeners()}render(){const e=this._hasStatusText(),t=this._controlValidationMessage!==void 0?this._controlValidationMessage:this._shouldRenderExplicitStatusText()?this.statusText:void 0,i=this._getCurrentStatus(),s=["gids-field__status-text"];if(e){const a=this._getStatusModifierClass(i,"gids-field__status-text");a!=null&&s.push(a)}return r(ut,{key:"98078538f6970b0cf756c7a172e635f3302381b2"},r("div",{key:"6751ea942c38270fce42e025ca17e29a38207028",class:mo()},r("div",{key:"5c4969bedfd54b42603ff3de69c72bc513aeaeb6",class:"gids-field__header",hidden:!this._hasLabelContent()},r("slot",{key:"9f98f47e3285551c67f7a350d058a55953c88756",ref:this._setLabelSlot,name:"label",onSlotchange:this._handleControlSlotChange}),r("div",{key:"6660ed1c29faf2ca838ba8714dee7feb79257187",class:"gids-field__count","aria-live":"polite"},this.count)),r("div",{key:"ab2bb081db7e8e8caddcc515580e02f32d4c054a",class:"gids-field__control"},r("slot",{key:"5df4538b894f7daedcb03bcab1316c9452e65caf",ref:this._setControlSlot,onSlotchange:this._handleControlSlotChange})),r("p",{key:"d7dce2f4a0b03b056ac8888a918e88b15931c8e5",class:"gids-field__supporting-text",hidden:!this._shouldShowHelperText()},this.helperText),e?r("p",{class:s.join(" "),role:"status","aria-live":"polite"},this._renderStatusIcon(i),t!==void 0?r("span",null,t):null):null))}_hasLabelContent(){return this._hasLabel}_hasHelperText(){return this._hasText(this.helperText)}_shouldShowHelperText(){return!!this._hasHelperText()&&!this._hasStatusText()}_hasStatusText(){return this._isImplicitStatus()?this._controlValidationMessage!==void 0:this._shouldRenderExplicitStatusText()}_shouldRenderExplicitStatusText(){return!this._isImplicitStatus()&&this.status!=="default"&&this._hasText(this.statusText)}_renderStatusIcon(e){if(!this._hasStatusText())return;const t=this._getStatusIconName(e);if(t===void 0)return;const i=["gids-field__status-icon"],s=this._getStatusModifierClass(e,"gids-field__status-icon");s!=null&&i.push(s);let a=e;return e==="error"&&(a="danger"),e==="success"&&(a="positive"),r(D,{appearance:"filled",size:"sm",alt:"",name:t,class:i.join(" "),style:{"--gidsIcon-color":`var(--gids-color-icon-${a})`}})}_getCurrentStatus(){return this._isImplicitStatus()&&this._controlValidationMessage!=null?"error":this.status??"implicit"}_getStatusIconName(e){if(e!=="implicit")return e==="success"?"positive":e==="error"?"danger":void 0}_isImplicitStatus(){return this.status==="implicit"||this.status===void 0}_hasText(e){return typeof e=="string"&&e.trim().length>0}_getStatusModifierClass(e,t){if(e!=="implicit")return`${t}--${e}`}_attachControlElement(e){if(this._controlElement===e)return this._updateControlValidationState(),void this._attachFormListeners(e?.form??this._el.closest("form"));if(this._detachControlElement(),this._controlElement=e,this._resetControlValidationState(),this._controlListenerTargets=[],e){const t=this._getControlListenerTargets(e);this._controlListenerTargets=t,t.forEach((i=>{i.addEventListener("input",this._handleControlValueInput),i.addEventListener("change",this._handleControlValueInput),i.addEventListener("blur",this._handleControlBlur,!0),i.addEventListener("invalid",this._handleControlInvalid)})),this._attachFormListeners(e.form??this._el.closest("form"))}this._updateControlValidationState()}_detachControlElement(){this._controlListenerTargets.length>0&&(this._controlListenerTargets?.forEach((e=>{e.removeEventListener("input",this._handleControlValueInput),e.removeEventListener("change",this._handleControlValueInput),e.removeEventListener("blur",this._handleControlBlur,!0),e.removeEventListener("invalid",this._handleControlInvalid)})),this._controlListenerTargets=[]),this._controlElement=null,this._resetControlValidationState(),this._detachFormListeners()}_getControlListenerTargets(e){return e instanceof HTMLInputElement&&e.type==="radio"&&e.name!=null?this._getRadioGroupControls(e):[e]}_getRadioGroupControls(e){const t=e.form;if(t&&e.name!=null){const i=t.elements.namedItem(e.name);if(i instanceof RadioNodeList){const s=Array.from(i).filter((a=>a instanceof HTMLInputElement&&a.type==="radio"&&this._el.contains(a)));if(s.length>0)return s}}if(e.name!=null){const i=`input[type="radio"][name="${CSS.escape(e.name)}"]`,s=Array.from(this._el.querySelectorAll(i));if(s.length>0)return s}return[e]}_attachFormListeners(e){e!==void 0&&(e!==null?e!==this._formElement&&(this._detachFormListeners(),this._formElement=e,this._formElement.addEventListener("reset",this._handleFormReset),this._formElement.addEventListener("submit",this._handleFormSubmit)):this._detachFormListeners())}_detachFormListeners(){this._formElement&&(this._formElement.removeEventListener("reset",this._handleFormReset),this._formElement.removeEventListener("submit",this._handleFormSubmit),this._formElement=null)}_findTextControl(e){for(const t of e){if(t.nodeType!==Node.ELEMENT_NODE)continue;const i=t,s=this._asTextControl(i);if(s!==null)return s;const a=i.querySelector("input, textarea");if(a instanceof HTMLInputElement||a instanceof HTMLTextAreaElement)return a}return null}_asTextControl(e){return e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement?e:null}_resetControlValidationState(){this._controlTouched=!1,this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0)}_updateControlValidationState(){if(!this._isImplicitStatus())return void(this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0));const e=this._controlElement;if(!e||e.disabled)return void(this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0));const t=e.validationMessage?.trim()??"";this._controlTouched&&e.matches(":user-invalid")&&t.length>0?this._controlValidationMessage!==t&&(this._controlValidationMessage=t):this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0)}get _el(){return this}static get watchers(){return{status:[{_handleStatusChange:0}]}}static get style(){return".gids-field{display:flex;flex-direction:column;gap:var(--gids-gap-075)}.gids-field__header{display:flex;gap:var(--gids-gap-100);align-items:flex-start}.gids-field__header[hidden]{display:none}.gids-field__count{margin-left:auto;color:var(--gids-color-text-subtle);text-align:right;white-space:nowrap;font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit)}:host([disabled]) .gids-field__count{color:var(--gids-color-text-disabled)}.gids-field__control{display:flex;flex-direction:column;gap:var(--gids-gap-050)}.gids-field__supporting-text,.gids-field__status-text{margin:0;padding-top:var(--gids-padding-vertical-edge-to-element-050);font-family:var(--gids-typography-paragraph-x-small__font-family);font-size:var(--gids-typography-paragraph-x-small__font-size);font-weight:var(--gids-typography-paragraph-x-small__font-weight);letter-spacing:var(--gids-typography-paragraph-x-small__letter-spacing);line-height:var(--gids-typography-paragraph-x-small__line-height);text-transform:var(--gids-typography-paragraph-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-paragraph-x-small__font-variant-caps, inherit)}.gids-field__supporting-text{color:var(--gids-color-text-subtlest)}.gids-field__status-text{display:flex;align-items:flex-start;gap:var(--gids-gap-050)}.gids-field__status-text .gids-field__status-icon{margin-top:max(0px, -1 * (var(--gids-size-160) - var(--gids-typograpy-paragraph-x-small__line-height) * var(--gids-typograpy-paragraph-x-small__font-size)) / 2)}.gids-field__status-text>span{margin-top:max(0px, (var(--gids-size-160) - var(--gids-typograpy-paragraph-x-small__line-height) * var(--gids-typograpy-paragraph-x-small__font-size)) / 2)}.gids-field__status-icon{flex-shrink:0}.gids-field__status-text--information{color:var(--gids-color-text-information);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--information{--gidsIcon-color:$icon-color}.gids-field__status-text--success{color:var(--gids-color-text-positive);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--success{--gidsIcon-color:$icon-color}.gids-field__status-text--warning{color:var(--gids-color-text-warning);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--warning{--gidsIcon-color:$icon-color}.gids-field__status-text--error{color:var(--gids-color-text-danger);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--error{--gidsIcon-color:$icon-color}"}},[257,"gids-field",{disabled:[516],count:[513],helperText:[513,"helper-text"],statusText:[513,"status-text"],status:[513],_controlValidationMessage:[32],_hasLabel:[32],reScanControl:[64]},void 0,{status:[{_handleStatusChange:0}]}]);function Xe(){typeof customElements<"u"&&["gids-field"].forEach((e=>{e==="gids-field"&&(customElements.get(e)||customElements.define(e,Ls))}))}Xe();const Is=P(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.internals=this.attachInternals(),this.appearance="default",this.expanded=!1,this.#e=Ue(),this.handleSelectionChange=t=>{this.value=t.value,this.syncFormValue(t.value),this.onSelectionChange?.(t)},this.handleDropdownFocusAndBlur=t=>{this.hostElement.dispatchEvent(new FocusEvent(t.type,{relatedTarget:t.relatedTarget}))}}#e;componentWillLoad(){this.syncFormValue(this.value)}handleValueChange(e){this.syncFormValue(e)}syncFormValue(e){this.internals.setFormValue(e??"")}getDropdownControl(){return this.hostElement.querySelector("gids-dropdown")}get form(){return this.getDropdownControl()?.form??null}get validity(){return this.getDropdownControl()?.validity??{}}get validationMessage(){return this.getDropdownControl()?.validationMessage??""}get willValidate(){return this.getDropdownControl()?.willValidate??!1}async checkValidity(){const e=this.getDropdownControl();return!e?.checkValidity||await e.checkValidity()}async reportValidity(){const e=this.getDropdownControl();return!e?.reportValidity||await e.reportValidity()}async setCustomValidity(e){const t=this.getDropdownControl();if(t?.setCustomValidity)return await t.setCustomValidity(e)}render(){const e=this.inputProps?.id??this.#e,t={...this.inputProps,id:e,placeholder:this.inputProps?.placeholder??"Please select an option"};return r("gids-field",{key:"9d896c1a60c010c49f17578133b1f593637ee25a",disabled:this.disabled,helperText:this.helperText,statusText:this.statusText,status:this.status},this.label!==void 0?r(Rt,{slot:"label",disabled:this.disabled,htmlFor:e,fieldRequirement:this.required?"required":void 0},this.label):null,r("gids-dropdown",{key:"cb5e873f42af870aec073f553a660aea8f61ffcb",appearance:this.appearance,expanded:this.expanded,inputProps:t,disabled:this.disabled,readOnly:this.readOnly,loading:this.loading,value:this.value,name:this.name,onSelectionChange:this.handleSelectionChange,onFocus:this.handleDropdownFocusAndBlur,onBlur:this.handleDropdownFocusAndBlur,required:this.required},r("slot",{key:"fbdd00ab717487697bc705af19c6e304ff77bd82",name:"leadingIconDropdown"}),r("slot",{key:"1f6ffc78105de5a1e2e4f8906271e8e2c5ca385d",name:"leadingAccessoryDropdown"}),r("slot",{key:"04404c104113d9b83afbe594bd7b9381864b526f"})))}static get formAssociated(){return!0}get hostElement(){return this}static get watchers(){return{value:[{handleValueChange:0}]}}},[324,"gids-dropdown-field",{label:[513],helperText:[513,"helper-text"],statusText:[513,"status-text"],status:[513],appearance:[513],expanded:[516],readOnly:[516,"readonly"],disabled:[516],loading:[516],inputProps:[16],value:[1025],name:[513],onSelectionChange:[16],required:[516],checkValidity:[64],reportValidity:[64],setCustomValidity:[64]},void 0,{value:[{handleValueChange:0}]}]);function fo(){typeof customElements<"u"&&["gids-dropdown-field","gids-dropdown","gids-field","gids-input"].forEach((e=>{switch(e){case"gids-dropdown-field":customElements.get(e)||customElements.define(e,Is);break;case"gids-dropdown":customElements.get(e)||Ts();break;case"gids-field":customElements.get(e)||Xe();break;case"gids-input":customElements.get(e)||Me()}}))}fo();const bo=Is,vo=rs,yo=Ps,_o=Ls,xo=hs,wo=Es,Co=fs,ko=vs,Gt=e=>e===null?null:e?.parentElement?.closest("gids-overlay-provider")||null,Ms=({componentName:e="snackbar",timerInMs:t})=>t&&Number(t)>0?t:(i=>{const s=(()=>{const a=document.querySelector("gids-overlay-provider");if(!a||!a.shadowRoot)return 1;const n=a.shadowRoot.querySelectorAll(".gids-snackbar-container__content"),o=n[n.length-1];if(!o)return 1;const l=o.offsetHeight,d=getComputedStyle(o).lineHeight,g=d.endsWith("px")?parseFloat(d):0;return Math.ceil(g?l/g:1)})();return s===2?i==="snackbar"?5e3:8e3:s>=3?i==="snackbar"?7e3:1e4:i==="snackbar"?3e3:6e3})(e),Ds=P(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.pronunciation="standard",this.appearance="default",this.show=!1,this.position="top-right"}async showNotification(){const e=Gt(this._el);e&&this.show&&e.queueComponent({notificationTitle:this.notificationTitle,message:this.message,pronunciation:this.pronunciation,appearance:this.appearance,buttonLabel:this.buttonLabel,onButtonClick:this.onButtonClick,position:this.position,componentName:"notification",timerInMs:this.timerInMs}),this.onQueueNotification&&this.onQueueNotification(),this.show=!1}render(){return null}get _el(){return this}static get watchers(){return{show:[{showNotification:0}]}}},[1,"gids-notification",{notificationTitle:[513,"notification-title"],message:[513],pronunciation:[513],appearance:[513],show:[516],onQueueNotification:[16],buttonLabel:[513,"button-label"],position:[513],timerInMs:[514,"timer-in-ms"],onButtonClick:[16]},void 0,{show:[{showNotification:0}]}]);function So(){typeof customElements<"u"&&["gids-notification"].forEach((e=>{e==="gids-notification"&&(customElements.get(e)||customElements.define(e,Ds))}))}So();const Eo=Ds,{showGidsOverflowContainerBottomShadow:$s,showGidsOverflowContainerTopShadow:Po}=en,As=P(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.shadowLocation="bottom"}connectedCallback(){const e=O();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}componentDidLoad(){this._textArea=this._el.shadowRoot?.querySelector(".gids-overflow-container__text-area"),$s(this.shadowLocation)&&this._textArea.scrollHeight>this._textArea.offsetHeight&&this._el.style.setProperty("--gidsOverflowContainer-after-opacity","1")}calculateShadows(){const e=this._textArea.scrollTop<=0?0:this._textArea.scrollTop;this._textArea.scrollTop+this._textArea.offsetHeight>=this._textArea.scrollHeight?this._el.style.setProperty("--gidsOverflowContainer-after-opacity","0"):e!==0?e>0&&(Po(this.shadowLocation)&&this._el.style.setProperty("--gidsOverflowContainer-before-opacity",""+Math.min(e/20,1)),$s(this.shadowLocation)&&this._el.style.setProperty("--gidsOverflowContainer-after-opacity",""+Math.min((this._textArea.scrollHeight-(this._textArea.scrollTop+this._textArea.offsetHeight))/20,1))):this._el.style.setProperty("--gidsOverflowContainer-after-opacity","0")}render(){return r("div",{key:"fbc4a9851c77e92b2261392c6d8f00664f8adb94",class:"gids-overflow-container__text-area",onScroll:this.calculateShadows.bind(this)},r("slot",{key:"a825b7f435064d06a22f751e507c8a765817abec"}))}get _el(){return this}},[257,"gids-overflow-container",{shadowLocation:[513,"shadow-location"]}]);function To(){typeof customElements<"u"&&["gids-overflow-container"].forEach((e=>{e==="gids-overflow-container"&&(customElements.get(e)||customElements.define(e,As))}))}To();const Lo=As,{getGidsSnackbarContainerClassNames:Io,getSnackbarContainerIconNames:Mo}=yn,Do=({appearance:e="default",children:t,button:i,class:s,...a})=>{const n=Mo(e);return r("div",{...a,class:Io({appearance:e},s)},r("div",{class:"gids-snackbar-container__content"},e!=="default"&&n!=null?r(D,{name:n,alt:"",appearance:"filled",size:"md",class:"gids-snackbar-container__icon"}):null,typeof t=="string"?r("p",null,t):t),i)},{getGidsNotificationContainerClassNames:$o,getNotificationContainerIconNames:Ao}=xn,No=({notificationTitle:e,children:t,button:i,appearance:s="default",pronunciation:a="standard",onCloseNotificationClick:n,class:o,...l})=>{const d=Ao(s);return r("div",{class:$o({appearance:s},o),...l},s!=="default"&&d?r("div",{class:"gids-notification-container__leading-icon-wrapper"},r(D,{size:"md",name:d,alt:"",appearance:"filled"})):null,r("div",{class:"gids-notification-container__content-wrapper"},r("div",{class:"gids-notification-container__top-content"},r("div",{class:"gids-notification-container__text-content"},e!=null&&e!==""?r("span",{class:"gids-notification-container__title"},e):null,t?typeof t=="string"?r("p",null,t):t:null),a==="standard"?r("div",{class:"gids-notification-container__cross-btn-wrapper"},r(Z,{size:"sm",appearance:"subtle",width:"intrinsic",leadingIcon:r(D,{name:"cross",size:"md",appearance:"regular"}),onClick:n})):null),i?r("div",{class:"gids-notification-container__bottom-content"},i):null))},{getComponentClasses:zo,getComponentStackClasses:Oo}=_n,Ns=P(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this._parentOverlayProvider=null,this._componentQueue=[],this._allowedComponentQueue=[],this._exitingComponents=[],this._renderSnackbar=(t,i)=>{const{id:s,message:a,appearance:n,buttonLabel:o,onButtonClick:l}=t;return r(Do,{key:s,class:i,children:a,appearance:n,button:o!=null&&o!==""?r(Z,{appearance:"subtle",onClick:l},o):void 0})},this._renderNotification=(t,i)=>{const{id:s,notificationTitle:a,message:n,pronunciation:o,appearance:l,buttonLabel:d,onButtonClick:g,timerInMs:c}=t;return r(No,{key:s,class:i,notificationTitle:a,children:n,pronunciation:o,appearance:l,onCloseNotificationClick:()=>this.removeComponent(t,c||0,!0),button:d!=null&&d!==""?r(Z,{appearance:"default",size:"sm",onClick:g},d):void 0})},this._renderComponent=t=>{const{componentName:i,position:s="bottom-center",id:a}=t,n=zo({position:s,id:a,exitingComponents:this._exitingComponents});return i==null||i==="snackbar"?this._renderSnackbar(t,n):i==="notification"?this._renderNotification(t,n):null}}connectedCallback(){const e=O();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e),this._parentOverlayProvider=Gt(this._el)}_isRoot(){return this._parentOverlayProvider===null}async getRootOverlayProvider(){return this._isRoot()?this._el:this._parentOverlayProvider}autoHide(e){return new Promise((t=>{const i=setTimeout((()=>(clearTimeout(i),t({isTimeout:!0}))),e)}))}async _queueSnackbar(e){const{appearance:t,message:i,buttonLabel:s,onButtonClick:a,position:n,componentName:o,...l}=e,d={id:""+(Date.now()+Math.random()),message:i,appearance:t,buttonLabel:s,onButtonClick:a,position:n,componentName:o,...l};this._componentQueue=[...this._componentQueue,d],this.processSingleComponentQueue()}async _queueNotification(e){const{appearance:t,notificationTitle:i,pronunciation:s,message:a,buttonLabel:n,onButtonClick:o,position:l,componentName:d,...g}=e,c={id:""+(Date.now()+Math.random()),notificationTitle:i,message:a,pronunciation:s,appearance:t,buttonLabel:n,onButtonClick:o,position:l,componentName:d,...g};this._componentQueue=[...this._componentQueue,c],this.processMultiComponentQueue()}async queueComponent(e){if(await this._isRoot()){const{componentName:t}=e;t!=null&&t!=="snackbar"||this._queueSnackbar(e),t==="notification"&&this._queueNotification(e)}else(await this.getRootOverlayProvider()).queueComponent(e)}async removeComponent(e,t,i){return i||await this.autoHide(t),this._exitingComponents=[...this._exitingComponents,e.id],new Promise((s=>{setTimeout((()=>{this._componentQueue=this._componentQueue.filter((a=>a.id!==e.id)),this._exitingComponents=this._exitingComponents.filter((a=>a!==e.id)),this._allowedComponentQueue=[],s()}),500)}))}async processSingleComponentQueue(){if(this._componentQueue.length===0)return;const e=this._componentQueue[0];if(!e)return;this._allowedComponentQueue=[e],await new Promise((i=>requestAnimationFrame((()=>i()))));const t=Ms({componentName:e?.componentName??"snackbar",timerInMs:e?.timerInMs??0});await this.removeComponent(e,t,!1),this.processSingleComponentQueue()}async processMultiComponentQueue(){const e=this._componentQueue;e.length!==0&&(this._allowedComponentQueue=e,await new Promise((t=>requestAnimationFrame((()=>t())))),this._allowedComponentQueue.map((async t=>{const i=Ms({componentName:t?.componentName??"snackbar",timerInMs:t?.timerInMs??0});await this.removeComponent(t,i,!1)})),this.processMultiComponentQueue())}render(){const e=this._allowedComponentQueue[0]?.position||"bottom-center";return r(se,{key:"c130346274545aa8cb3b12390fa28f65b612dcd9"},r("slot",{key:"6bfbde0f8f8a9cc75e3236ac806d762a9f2e0049"}),this._isRoot()?r("div",{class:Oo({position:e})},[...this._allowedComponentQueue].reverse().map((t=>this._renderComponent(t)))):null)}get _el(){return this}static get style(){return".common-component-stack{display:flex;flex-direction:column;position:fixed;gap:var(--gids-gap-200);min-width:var(--gids-width-2-xs);max-width:var(--gids-width-md);width:100%}.component-stack-bottom-left{justify-self:left;bottom:var(--gids-padding-vertical-edge-to-element-250);left:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-bottom-right{justify-self:right;bottom:var(--gids-padding-vertical-edge-to-element-250);right:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-middle-left{top:50%;justify-self:left;align-self:center;left:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-middle-right{top:50%;justify-self:right;align-self:center;right:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-top-center{justify-self:center;top:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-top-left{justify-self:left;top:var(--gids-padding-vertical-edge-to-element-250);left:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-top-right{justify-self:right;top:var(--gids-padding-vertical-edge-to-element-250);right:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-bottom-center{justify-self:center;bottom:var(--gids-padding-vertical-edge-to-element-250)}.component-enter-bottom-left{animation-name:left-to-right-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-bottom-right{animation-name:right-to-left-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-middle-left{animation-name:left-to-right-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-middle-right{animation-name:right-to-left-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-top-center{animation-name:slide-up-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-top-left{animation-name:left-to-right-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-top-right{animation-name:right-to-left-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-bottom-center{animation-name:slide-up-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-bottom-left{animation-name:right-to-left-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-bottom-right{animation-name:left-to-right-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-middle-left{animation-name:right-to-left-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-middle-right{animation-name:left-to-right-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-top-center{animation-name:slide-down-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-top-left{animation-name:right-to-left-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-top-right{animation-name:left-to-right-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-bottom-center{animation-name:slide-down-invisible;animation-duration:0.3s;animation-fill-mode:forwards}@keyframes slide-up-visible{0%{opacity:0;transform:translateY(100%)}100%{opacity:1;transform:translateY(0)}}@keyframes slide-down-invisible{0%{opacity:1;transform:translateY(0)}100%{opacity:0;transform:translateY(100%)}}@keyframes slide-up-invisible{0%{opacity:0;transform:translateY(-100%)}100%{opacity:1;transform:translateY(0)}}@keyframes slide-down-visible{0%{opacity:1;transform:translateY(0)}100%{opacity:0;transform:translateY(-100%)}}@keyframes left-to-right-visible{0%{opacity:0;transform:translateX(-100%)}100%{opacity:1;transform:translateX(0)}}@keyframes right-to-left-invisible{0%{opacity:1;transform:translateX(0)}100%{opacity:0;transform:translateX(-100%)}}@keyframes right-to-left-visible{0%{opacity:0;transform:translateX(100%)}100%{opacity:1;transform:translateX(0)}}@keyframes left-to-right-invisible{0%{opacity:1;transform:translateX(0)}100%{opacity:0;transform:translateX(100%)}}"}},[257,"gids-overlay-provider",{_componentQueue:[32],_allowedComponentQueue:[32],_exitingComponents:[32],queueComponent:[64]}]);function Ro(){typeof customElements<"u"&&["gids-overlay-provider"].forEach((e=>{e==="gids-overlay-provider"&&(customElements.get(e)||customElements.define(e,Ns))}))}Ro();const Fo=Ns,{getGidsDismissButtonClassNames:Go}=dn,zs=({appearance:e="subtle",size:t="md",disabled:i=!1,class:s,onPressDismiss:a,label:n,...o})=>r("button",{class:Go({appearance:e,size:t},s),onClick:a,disabled:i,"aria-label":n,...o},r(D,{name:"cross",appearance:"regular"})),{getGidsStrengthMeterClassNames:Vo}=pn,{getStrengthMeterScore:jo,getColorModifierByScore:Yo}=Qa,Bo=({text:e,textMinLength:t,meterRules:i=["1-uppercase","1-lowercase","1-digit","1-special-character","include-min-length"],class:s})=>{const a=(n,o,l)=>r("div",{key:n,class:["gids-strength-meter__strength-"+n,l?"is-active":"",l?o:""].filter(Boolean).join(" ")});return i.length>0?r("div",{class:Vo(s)},(()=>{const n=i.length,o=jo({text:e,textMinLength:t,meterRules:i}),l=Yo({textScore:o,maxScore:n});return Array.from({length:n},((d,g)=>{const c=g+1,h=c<=o;return i[c]==="include-min-length"?Le({requirementRule:"include-min-length",textMinLength:t})?a(c,l,h):null:a(c,l,h)}))})()):null},{getGidsRequirementsMeterLabelClassNames:qo}=un,{getRequirementsMeterLabelLeadingIcon:Ho}=Za,Wo=e=>{const{label:t,status:i="default",leadingIconVisible:s=!0,class:a}=e,n=Ho(i);return r("div",{class:qo({status:i},a)},s&&i&&n?r(D,{name:n,size:"sm",appearance:"filled"}):null,t&&t!==""?r("span",null,t):null)},{checkRequirementRuleSatisfied:Uo}=Ka,{getGidsRequirementsMeterClassNames:Qo}=mn,Xo=({requirements:e=[],text:t,textMinLength:i,class:s})=>{const a=(n,o)=>r(Wo,{status:o?"success":"error",label:n.requirementText});return r("div",{class:Qo(s)},e.map((n=>{if(n?.requirementText!=null&&n?.requirementRule!=null){const o=Uo({rule:n.requirementRule,textMinLength:i,text:t});return n.requirementRule==="include-min-length"?Le({requirementRule:n.requirementRule,textMinLength:i})===!0?a(n,o):null:a(n,o)}return null})))},{inputToGidsFieldStatusForPassword:Ko}=vn,Os=P(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.gidsPasswordFieldClear=Se(this,"gidsPasswordFieldClear"),this.gidsPasswordFieldRevealPassword=Se(this,"gidsPasswordFieldRevealPassword"),this.isPasswordRevealed=!1,this.meterRules=[],this.requirementsMeterRequirements=[],this.requirements=[],this.#e=Ue(),this._handleDismiss=()=>{const t=this.#t?.querySelector("input.gids-input__control");t&&(t.value="",t.dispatchEvent(new globalThis.Event("input",{bubbles:!0}))),this.value="",this.gidsPasswordFieldClear.emit()},this._handleRevealPassword=()=>{const t=this.#t?.querySelector("input.gids-input__control");this.isPasswordRevealed=t?.value!=null&&t.value!==""&&this.isPasswordRevealed===!1,this._el.dispatchEvent(new CustomEvent("gidsPasswordFieldRevealPassword",{detail:{passwordRevealed:this.isPasswordRevealed},bubbles:!0,composed:!0}))},this._handleInput=t=>{this.value=t.target?.value},this._handleInputFocusAndBlur=t=>{this._el.dispatchEvent(new FocusEvent(t.type,{relatedTarget:t.relatedTarget}))},this._isRequirementAndStrengthMeterVisible=()=>{const t=this.requirements;return!!(t&&t.length>0)},this._handleRequirementsMeter=()=>{const t=this._isRequirementAndStrengthMeterVisible();this.requirementsMeterRequirements=this.requirements&&this.requirements.length>0?this.requirements:[],this.meterRules=t?Ct(this.requirements):[]}}_startSlotContentObserver(){this._slotContentObserver=new MutationObserver((()=>{Si(this)})),this._slotContentObserver.observe(this._el,{childList:!0,subtree:!1,attributes:!0,attributeFilter:["slot"]})}handleRequirementsChange(e){e===void 0&&(this.requirements=kt(this.textMinLength).defaultRequirementsMeterRules),this._handleRequirementsMeter()}componentWillLoad(){this.requirements||(this.requirements=kt(this.textMinLength).defaultRequirementsMeterRules),this._handleRequirementsMeter()}connectedCallback(){const e=O();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e),this._handleRequirementsMeter(),this._startSlotContentObserver()}disconnectedCallback(){this._slotContentObserver?.disconnect(),this._slotContentObserver=void 0}#e;#t;render(){const{id:e,...t}=this.inputProps??{},i=e??this.#e,s=this.showClearButton&&this.value!==void 0&&this.value.length>0,a=this.showRevealPasswordButton,n={...t},o=n?.placeholder!==void 0&&n.placeholder!==null&&n.placeholder!=""?n.placeholder:"Enter password",l=this.isPasswordRevealed,d=this.meterRules,g=this.textMinLength!==void 0?this.textMinLength:8;return r(se,{key:"20e80248a1bf89a1fbcc45afde2d53bd51fbdbcc"},r("gids-field",{key:"f3b8a64102cca5dc4342cc06c24c42ade33ff182",disabled:this.disabled,count:void 0,helperText:this.helperText,statusText:this.statusText,status:Ko(this.status)},r(Rt,{key:"49d56818bb59470c86a1375540849ac72a85ec39",slot:"label",disabled:this.disabled,info:r("slot",{name:"info"}),fieldRequirement:this.fieldRequirement,fieldRequirementOptionalText:this.fieldRequirementOptionalText,fieldRequirementRequiredText:this.fieldRequirementRequiredText,isLabelSentence:this.isLabelSentence,htmlFor:i},this.label),r("gids-input",{key:"b4c52f50b940fd6d9bf8102cd8e9982827348294",ref:c=>this.#t=c,appearance:"default",status:this.status,loading:this.loading,value:this.value,defaultValue:this.defaultValue,name:this.name,required:this.required,disabled:this.disabled,readOnly:this.readOnly,leadingLabel:void 0,trailingLabel:void 0,onFocus:this._handleInputFocusAndBlur,onBlur:this._handleInputFocusAndBlur,onInput:this._handleInput,inputProps:{...n,placeholder:o,type:l?"text":"password",id:i,maxLength:this.maxLength}},r("slot",{key:"125c163e6d2b647aee98931303cd133e67ccdd75",name:"leadingIcon"}),r("slot",{key:"137a5bf21cd658dc4eca833fb09954b3b68393d4",name:"leadingAccessory"}),r("div",{key:"4e87732b5d198ac176dc0fc68a99cb4b82cbcdf4",slot:"trailingAccessory",class:"gids-password-field__trailing-accessory"},s&&r(zs,{key:"a8016058d8823a75c0188fe707f39aad1834a6e6",label:"clear text",size:"lg",onPressDismiss:this._handleDismiss}),a&&r(Z,{key:"3bfe55f6787c42df0a9a9351ac96b12fa90826ab",appearance:"default",size:"xs",width:"intrinsic",disabled:this.disabled,onClick:this._handleRevealPassword},l?"Hide":"Show")))),r("div",{key:"d2b12032cafa7414481251d9b2c5cacc94bcf745",class:"gids-password-field__meters-container"},r(Bo,{key:"5aa93ffa5361c3b4d5b8f9d7fd13ff6628821ebe",meterRules:d,text:this.value,textMinLength:g}),r(Xo,{key:"96131ad3f4c4318450952b2c6b8325d2bd567cf6",requirements:this.requirementsMeterRequirements,text:this.value,textMinLength:g})))}get _el(){return this}static get watchers(){return{requirements:[{handleRequirementsChange:0}],textMinLength:[{handleRequirementsChange:0}]}}},[260,"gids-password-field",{label:[513],showClearButton:[516,"show-clear-button"],showRevealPasswordButton:[516,"show-reveal-password-button"],helperText:[513,"helper-text"],statusText:[513,"status-text"],status:[513],loading:[516],name:[513],required:[516],maxLength:[514,"maxlength"],value:[1],defaultValue:[513,"default-value"],disabled:[516],readOnly:[516,"readonly"],inputProps:[16],fieldRequirement:[513,"field-requirement"],fieldRequirementOptionalText:[1,"field-requirement-optional-text"],fieldRequirementRequiredText:[1,"field-requirement-required-text"],isLabelSentence:[16],textMinLength:[514,"text-min-length"],requirements:[16],isPasswordRevealed:[32],meterRules:[32],requirementsMeterRequirements:[32]},void 0,{requirements:[{handleRequirementsChange:0}],textMinLength:[{handleRequirementsChange:0}]}]);function Zo(){typeof customElements<"u"&&["gids-password-field","gids-field","gids-input"].forEach((e=>{switch(e){case"gids-password-field":customElements.get(e)||customElements.define(e,Os);break;case"gids-field":customElements.get(e)||Xe();break;case"gids-input":customElements.get(e)||Me()}}))}Zo();const Jo=Os,el=_s,ye=Math.min,ne=Math.max,Ke=Math.round,Ze=Math.floor,q=e=>({x:e,y:e}),tl={left:"right",right:"left",bottom:"top",top:"bottom"};function Vt(e,t,i){return ne(e,ye(t,i))}function De(e,t){return typeof e=="function"?e(t):e}function re(e){return e.split("-")[0]}function $e(e){return e.split("-")[1]}function Rs(e){return e==="x"?"y":"x"}function jt(e){return e==="y"?"height":"width"}function J(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Yt(e){return Rs(J(e))}function il(e,t,i){i===void 0&&(i=!1);const s=$e(e),a=Yt(e),n=jt(a);let o=a==="x"?s===(i?"end":"start")?"right":"left":s==="start"?"bottom":"top";return t.reference[n]>t.floating[n]&&(o=Je(o)),[o,Je(o)]}function sl(e){const t=Je(e);return[Bt(e),t,Bt(t)]}function Bt(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Fs=["left","right"],Gs=["right","left"],al=["top","bottom"],nl=["bottom","top"];function rl(e,t,i){switch(e){case"top":case"bottom":return i?t?Gs:Fs:t?Fs:Gs;case"left":case"right":return t?al:nl;default:return[]}}function ol(e,t,i,s){const a=$e(e);let n=rl(re(e),i==="start",s);return a&&(n=n.map(o=>o+"-"+a),t&&(n=n.concat(n.map(Bt)))),n}function Je(e){const t=re(e);return tl[t]+e.slice(t.length)}function ll(e){return{top:0,right:0,bottom:0,left:0,...e}}function Vs(e){return typeof e!="number"?ll(e):{top:e,right:e,bottom:e,left:e}}function et(e){const{x:t,y:i,width:s,height:a}=e;return{width:s,height:a,top:i,left:t,right:t+s,bottom:i+a,x:t,y:i}}function js(e,t,i){let{reference:s,floating:a}=e;const n=J(t),o=Yt(t),l=jt(o),d=re(t),g=n==="y",c=s.x+s.width/2-a.width/2,h=s.y+s.height/2-a.height/2,p=s[l]/2-a[l]/2;let m;switch(d){case"top":m={x:c,y:s.y-a.height};break;case"bottom":m={x:c,y:s.y+s.height};break;case"right":m={x:s.x+s.width,y:h};break;case"left":m={x:s.x-a.width,y:h};break;default:m={x:s.x,y:s.y}}switch($e(t)){case"start":m[o]-=p*(i&&g?-1:1);break;case"end":m[o]+=p*(i&&g?-1:1);break}return m}async function dl(e,t){var i;t===void 0&&(t={});const{x:s,y:a,platform:n,rects:o,elements:l,strategy:d}=e,{boundary:g="clippingAncestors",rootBoundary:c="viewport",elementContext:h="floating",altBoundary:p=!1,padding:m=0}=De(t,e),u=Vs(m),v=l[p?h==="floating"?"reference":"floating":h],_=et(await n.getClippingRect({element:(i=await(n.isElement==null?void 0:n.isElement(v)))==null||i?v:v.contextElement||await(n.getDocumentElement==null?void 0:n.getDocumentElement(l.floating)),boundary:g,rootBoundary:c,strategy:d})),y=h==="floating"?{x:s,y:a,width:o.floating.width,height:o.floating.height}:o.reference,b=await(n.getOffsetParent==null?void 0:n.getOffsetParent(l.floating)),w=await(n.isElement==null?void 0:n.isElement(b))?await(n.getScale==null?void 0:n.getScale(b))||{x:1,y:1}:{x:1,y:1},x=et(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:y,offsetParent:b,strategy:d}):y);return{top:(_.top-x.top+u.top)/w.y,bottom:(x.bottom-_.bottom+u.bottom)/w.y,left:(_.left-x.left+u.left)/w.x,right:(x.right-_.right+u.right)/w.x}}const cl=50,hl=async(e,t,i)=>{const{placement:s="bottom",strategy:a="absolute",middleware:n=[],platform:o}=i,l=o.detectOverflow?o:{...o,detectOverflow:dl},d=await(o.isRTL==null?void 0:o.isRTL(t));let g=await o.getElementRects({reference:e,floating:t,strategy:a}),{x:c,y:h}=js(g,s,d),p=s,m=0;const u={};for(let f=0;f<n.length;f++){const v=n[f];if(!v)continue;const{name:_,fn:y}=v,{x:b,y:w,data:x,reset:k}=await y({x:c,y:h,initialPlacement:s,placement:p,strategy:a,middlewareData:u,rects:g,platform:l,elements:{reference:e,floating:t}});c=b??c,h=w??h,u[_]={...u[_],...x},k&&m<cl&&(m++,typeof k=="object"&&(k.placement&&(p=k.placement),k.rects&&(g=k.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:a}):k.rects),{x:c,y:h}=js(g,p,d)),f=-1)}return{x:c,y:h,placement:p,strategy:a,middlewareData:u}},gl=e=>({name:"arrow",options:e,async fn(t){const{x:i,y:s,placement:a,rects:n,platform:o,elements:l,middlewareData:d}=t,{element:g,padding:c=0}=De(e,t)||{};if(g==null)return{};const h=Vs(c),p={x:i,y:s},m=Yt(a),u=jt(m),f=await o.getDimensions(g),v=m==="y",_=v?"top":"left",y=v?"bottom":"right",b=v?"clientHeight":"clientWidth",w=n.reference[u]+n.reference[m]-p[m]-n.floating[u],x=p[m]-n.reference[m],k=await(o.getOffsetParent==null?void 0:o.getOffsetParent(g));let T=k?k[b]:0;(!T||!await(o.isElement==null?void 0:o.isElement(k)))&&(T=l.floating[b]||n.floating[u]);const M=w/2-x/2,$=T/2-f[u]/2-1,R=ye(h[_],$),ze=ye(h[y],$),ce=R,Oe=T-f[u]-ze,A=T/2-f[u]/2+M,he=Vt(ce,A,Oe),X=!d.arrow&&$e(a)!=null&&A!==he&&n.reference[u]/2-(A<ce?R:ze)-f[u]/2<0,j=X?A<ce?A-ce:A-Oe:0;return{[m]:p[m]+j,data:{[m]:he,centerOffset:A-he-j,...X&&{alignmentOffset:j}},reset:X}}}),pl=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var i,s;const{placement:a,middlewareData:n,rects:o,initialPlacement:l,platform:d,elements:g}=t,{mainAxis:c=!0,crossAxis:h=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:u="none",flipAlignment:f=!0,...v}=De(e,t);if((i=n.arrow)!=null&&i.alignmentOffset)return{};const _=re(a),y=J(l),b=re(l)===l,w=await(d.isRTL==null?void 0:d.isRTL(g.floating)),x=p||(b||!f?[Je(l)]:sl(l)),k=u!=="none";!p&&k&&x.push(...ol(l,f,u,w));const T=[l,...x],M=await d.detectOverflow(t,v),$=[];let R=((s=n.flip)==null?void 0:s.overflows)||[];if(c&&$.push(M[_]),h){const A=il(a,o,w);$.push(M[A[0]],M[A[1]])}if(R=[...R,{placement:a,overflows:$}],!$.every(A=>A<=0)){var ze,ce;const A=(((ze=n.flip)==null?void 0:ze.index)||0)+1,he=T[A];if(he&&(!(h==="alignment"?y!==J(he):!1)||R.every(Y=>J(Y.placement)===y?Y.overflows[0]>0:!0)))return{data:{index:A,overflows:R},reset:{placement:he}};let X=(ce=R.filter(j=>j.overflows[0]<=0).sort((j,Y)=>j.overflows[1]-Y.overflows[1])[0])==null?void 0:ce.placement;if(!X)switch(m){case"bestFit":{var Oe;const j=(Oe=R.filter(Y=>{if(k){const te=J(Y.placement);return te===y||te==="y"}return!0}).map(Y=>[Y.placement,Y.overflows.filter(te=>te>0).reduce((te,cd)=>te+cd,0)]).sort((Y,te)=>Y[1]-te[1])[0])==null?void 0:Oe[0];j&&(X=j);break}case"initialPlacement":X=l;break}if(a!==X)return{reset:{placement:X}}}return{}}}},ul=new Set(["left","top"]);async function ml(e,t){const{placement:i,platform:s,elements:a}=e,n=await(s.isRTL==null?void 0:s.isRTL(a.floating)),o=re(i),l=$e(i),d=J(i)==="y",g=ul.has(o)?-1:1,c=n&&d?-1:1,h=De(t,e);let{mainAxis:p,crossAxis:m,alignmentAxis:u}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return l&&typeof u=="number"&&(m=l==="end"?u*-1:u),d?{x:m*c,y:p*g}:{x:p*g,y:m*c}}const fl=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var i,s;const{x:a,y:n,placement:o,middlewareData:l}=t,d=await ml(t,e);return o===((i=l.offset)==null?void 0:i.placement)&&(s=l.arrow)!=null&&s.alignmentOffset?{}:{x:a+d.x,y:n+d.y,data:{...d,placement:o}}}}},bl=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:i,y:s,placement:a,platform:n}=t,{mainAxis:o=!0,crossAxis:l=!1,limiter:d={fn:_=>{let{x:y,y:b}=_;return{x:y,y:b}}},...g}=De(e,t),c={x:i,y:s},h=await n.detectOverflow(t,g),p=J(re(a)),m=Rs(p);let u=c[m],f=c[p];if(o){const _=m==="y"?"top":"left",y=m==="y"?"bottom":"right",b=u+h[_],w=u-h[y];u=Vt(b,u,w)}if(l){const _=p==="y"?"top":"left",y=p==="y"?"bottom":"right",b=f+h[_],w=f-h[y];f=Vt(b,f,w)}const v=d.fn({...t,[m]:u,[p]:f});return{...v,data:{x:v.x-i,y:v.y-s,enabled:{[m]:o,[p]:l}}}}}};function tt(){return typeof window<"u"}function _e(e){return Ys(e)?(e.nodeName||"").toLowerCase():"#document"}function z(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function H(e){var t;return(t=(Ys(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ys(e){return tt()?e instanceof Node||e instanceof z(e).Node:!1}function G(e){return tt()?e instanceof Element||e instanceof z(e).Element:!1}function U(e){return tt()?e instanceof HTMLElement||e instanceof z(e).HTMLElement:!1}function Bs(e){return!tt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof z(e).ShadowRoot}function Ae(e){const{overflow:t,overflowX:i,overflowY:s,display:a}=V(e);return/auto|scroll|overlay|hidden|clip/.test(t+s+i)&&a!=="inline"&&a!=="contents"}function vl(e){return/^(table|td|th)$/.test(_e(e))}function it(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const yl=/transform|translate|scale|rotate|perspective|filter/,_l=/paint|layout|strict|content/,oe=e=>!!e&&e!=="none";let qt;function Ht(e){const t=G(e)?V(e):e;return oe(t.transform)||oe(t.translate)||oe(t.scale)||oe(t.rotate)||oe(t.perspective)||!Wt()&&(oe(t.backdropFilter)||oe(t.filter))||yl.test(t.willChange||"")||_l.test(t.contain||"")}function xl(e){let t=ee(e);for(;U(t)&&!xe(t);){if(Ht(t))return t;if(it(t))return null;t=ee(t)}return null}function Wt(){return qt==null&&(qt=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),qt}function xe(e){return/^(html|body|#document)$/.test(_e(e))}function V(e){return z(e).getComputedStyle(e)}function st(e){return G(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ee(e){if(_e(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Bs(e)&&e.host||H(e);return Bs(t)?t.host:t}function qs(e){const t=ee(e);return xe(t)?e.ownerDocument?e.ownerDocument.body:e.body:U(t)&&Ae(t)?t:qs(t)}function Ne(e,t,i){var s;t===void 0&&(t=[]),i===void 0&&(i=!0);const a=qs(e),n=a===((s=e.ownerDocument)==null?void 0:s.body),o=z(a);if(n){const l=Ut(o);return t.concat(o,o.visualViewport||[],Ae(a)?a:[],l&&i?Ne(l):[])}else return t.concat(a,Ne(a,[],i))}function Ut(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Hs(e){const t=V(e);let i=parseFloat(t.width)||0,s=parseFloat(t.height)||0;const a=U(e),n=a?e.offsetWidth:i,o=a?e.offsetHeight:s,l=Ke(i)!==n||Ke(s)!==o;return l&&(i=n,s=o),{width:i,height:s,$:l}}function Qt(e){return G(e)?e:e.contextElement}function we(e){const t=Qt(e);if(!U(t))return q(1);const i=t.getBoundingClientRect(),{width:s,height:a,$:n}=Hs(t);let o=(n?Ke(i.width):i.width)/s,l=(n?Ke(i.height):i.height)/a;return(!o||!Number.isFinite(o))&&(o=1),(!l||!Number.isFinite(l))&&(l=1),{x:o,y:l}}const wl=q(0);function Ws(e){const t=z(e);return!Wt()||!t.visualViewport?wl:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Cl(e,t,i){return t===void 0&&(t=!1),!i||t&&i!==z(e)?!1:t}function le(e,t,i,s){t===void 0&&(t=!1),i===void 0&&(i=!1);const a=e.getBoundingClientRect(),n=Qt(e);let o=q(1);t&&(s?G(s)&&(o=we(s)):o=we(e));const l=Cl(n,i,s)?Ws(n):q(0);let d=(a.left+l.x)/o.x,g=(a.top+l.y)/o.y,c=a.width/o.x,h=a.height/o.y;if(n){const p=z(n),m=s&&G(s)?z(s):s;let u=p,f=Ut(u);for(;f&&s&&m!==u;){const v=we(f),_=f.getBoundingClientRect(),y=V(f),b=_.left+(f.clientLeft+parseFloat(y.paddingLeft))*v.x,w=_.top+(f.clientTop+parseFloat(y.paddingTop))*v.y;d*=v.x,g*=v.y,c*=v.x,h*=v.y,d+=b,g+=w,u=z(f),f=Ut(u)}}return et({width:c,height:h,x:d,y:g})}function at(e,t){const i=st(e).scrollLeft;return t?t.left+i:le(H(e)).left+i}function Us(e,t){const i=e.getBoundingClientRect(),s=i.left+t.scrollLeft-at(e,i),a=i.top+t.scrollTop;return{x:s,y:a}}function kl(e){let{elements:t,rect:i,offsetParent:s,strategy:a}=e;const n=a==="fixed",o=H(s),l=t?it(t.floating):!1;if(s===o||l&&n)return i;let d={scrollLeft:0,scrollTop:0},g=q(1);const c=q(0),h=U(s);if((h||!h&&!n)&&((_e(s)!=="body"||Ae(o))&&(d=st(s)),h)){const m=le(s);g=we(s),c.x=m.x+s.clientLeft,c.y=m.y+s.clientTop}const p=o&&!h&&!n?Us(o,d):q(0);return{width:i.width*g.x,height:i.height*g.y,x:i.x*g.x-d.scrollLeft*g.x+c.x+p.x,y:i.y*g.y-d.scrollTop*g.y+c.y+p.y}}function Sl(e){return Array.from(e.getClientRects())}function El(e){const t=H(e),i=st(e),s=e.ownerDocument.body,a=ne(t.scrollWidth,t.clientWidth,s.scrollWidth,s.clientWidth),n=ne(t.scrollHeight,t.clientHeight,s.scrollHeight,s.clientHeight);let o=-i.scrollLeft+at(e);const l=-i.scrollTop;return V(s).direction==="rtl"&&(o+=ne(t.clientWidth,s.clientWidth)-a),{width:a,height:n,x:o,y:l}}const Qs=25;function Pl(e,t){const i=z(e),s=H(e),a=i.visualViewport;let n=s.clientWidth,o=s.clientHeight,l=0,d=0;if(a){n=a.width,o=a.height;const c=Wt();(!c||c&&t==="fixed")&&(l=a.offsetLeft,d=a.offsetTop)}const g=at(s);if(g<=0){const c=s.ownerDocument,h=c.body,p=getComputedStyle(h),m=c.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,u=Math.abs(s.clientWidth-h.clientWidth-m);u<=Qs&&(n-=u)}else g<=Qs&&(n+=g);return{width:n,height:o,x:l,y:d}}function Tl(e,t){const i=le(e,!0,t==="fixed"),s=i.top+e.clientTop,a=i.left+e.clientLeft,n=U(e)?we(e):q(1),o=e.clientWidth*n.x,l=e.clientHeight*n.y,d=a*n.x,g=s*n.y;return{width:o,height:l,x:d,y:g}}function Xs(e,t,i){let s;if(t==="viewport")s=Pl(e,i);else if(t==="document")s=El(H(e));else if(G(t))s=Tl(t,i);else{const a=Ws(e);s={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return et(s)}function Ks(e,t){const i=ee(e);return i===t||!G(i)||xe(i)?!1:V(i).position==="fixed"||Ks(i,t)}function Ll(e,t){const i=t.get(e);if(i)return i;let s=Ne(e,[],!1).filter(l=>G(l)&&_e(l)!=="body"),a=null;const n=V(e).position==="fixed";let o=n?ee(e):e;for(;G(o)&&!xe(o);){const l=V(o),d=Ht(o);!d&&l.position==="fixed"&&(a=null),(n?!d&&!a:!d&&l.position==="static"&&!!a&&(a.position==="absolute"||a.position==="fixed")||Ae(o)&&!d&&Ks(e,o))?s=s.filter(c=>c!==o):a=l,o=ee(o)}return t.set(e,s),s}function Il(e){let{element:t,boundary:i,rootBoundary:s,strategy:a}=e;const o=[...i==="clippingAncestors"?it(t)?[]:Ll(t,this._c):[].concat(i),s],l=Xs(t,o[0],a);let d=l.top,g=l.right,c=l.bottom,h=l.left;for(let p=1;p<o.length;p++){const m=Xs(t,o[p],a);d=ne(m.top,d),g=ye(m.right,g),c=ye(m.bottom,c),h=ne(m.left,h)}return{width:g-h,height:c-d,x:h,y:d}}function Ml(e){const{width:t,height:i}=Hs(e);return{width:t,height:i}}function Dl(e,t,i){const s=U(t),a=H(t),n=i==="fixed",o=le(e,!0,n,t);let l={scrollLeft:0,scrollTop:0};const d=q(0);function g(){d.x=at(a)}if(s||!s&&!n)if((_e(t)!=="body"||Ae(a))&&(l=st(t)),s){const m=le(t,!0,n,t);d.x=m.x+t.clientLeft,d.y=m.y+t.clientTop}else a&&g();n&&!s&&a&&g();const c=a&&!s&&!n?Us(a,l):q(0),h=o.left+l.scrollLeft-d.x-c.x,p=o.top+l.scrollTop-d.y-c.y;return{x:h,y:p,width:o.width,height:o.height}}function Xt(e){return V(e).position==="static"}function Zs(e,t){if(!U(e)||V(e).position==="fixed")return null;if(t)return t(e);let i=e.offsetParent;return H(e)===i&&(i=i.ownerDocument.body),i}function Js(e,t){const i=z(e);if(it(e))return i;if(!U(e)){let a=ee(e);for(;a&&!xe(a);){if(G(a)&&!Xt(a))return a;a=ee(a)}return i}let s=Zs(e,t);for(;s&&vl(s)&&Xt(s);)s=Zs(s,t);return s&&xe(s)&&Xt(s)&&!Ht(s)?i:s||xl(e)||i}const $l=async function(e){const t=this.getOffsetParent||Js,i=this.getDimensions,s=await i(e.floating);return{reference:Dl(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function Al(e){return V(e).direction==="rtl"}const Kt={convertOffsetParentRelativeRectToViewportRelativeRect:kl,getDocumentElement:H,getClippingRect:Il,getOffsetParent:Js,getElementRects:$l,getClientRects:Sl,getDimensions:Ml,getScale:we,isElement:G,isRTL:Al};function ea(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Nl(e,t){let i=null,s;const a=H(e);function n(){var l;clearTimeout(s),(l=i)==null||l.disconnect(),i=null}function o(l,d){l===void 0&&(l=!1),d===void 0&&(d=1),n();const g=e.getBoundingClientRect(),{left:c,top:h,width:p,height:m}=g;if(l||t(),!p||!m)return;const u=Ze(h),f=Ze(a.clientWidth-(c+p)),v=Ze(a.clientHeight-(h+m)),_=Ze(c),b={rootMargin:-u+"px "+-f+"px "+-v+"px "+-_+"px",threshold:ne(0,ye(1,d))||1};let w=!0;function x(k){const T=k[0].intersectionRatio;if(T!==d){if(!w)return o();T?o(!1,T):s=setTimeout(()=>{o(!1,1e-7)},1e3)}T===1&&!ea(g,e.getBoundingClientRect())&&o(),w=!1}try{i=new IntersectionObserver(x,{...b,root:a.ownerDocument})}catch{i=new IntersectionObserver(x,b)}i.observe(e)}return o(!0),n}function zl(e,t,i,s){s===void 0&&(s={});const{ancestorScroll:a=!0,ancestorResize:n=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:d=!1}=s,g=Qt(e),c=a||n?[...g?Ne(g):[],...t?Ne(t):[]]:[];c.forEach(_=>{a&&_.addEventListener("scroll",i,{passive:!0}),n&&_.addEventListener("resize",i)});const h=g&&l?Nl(g,i):null;let p=-1,m=null;o&&(m=new ResizeObserver(_=>{let[y]=_;y&&y.target===g&&m&&t&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var b;(b=m)==null||b.observe(t)})),i()}),g&&!d&&m.observe(g),t&&m.observe(t));let u,f=d?le(e):null;d&&v();function v(){const _=le(e);f&&!ea(f,_)&&i(),f=_,u=requestAnimationFrame(v)}return i(),()=>{var _;c.forEach(y=>{a&&y.removeEventListener("scroll",i),n&&y.removeEventListener("resize",i)}),h?.(),(_=m)==null||_.disconnect(),m=null,d&&cancelAnimationFrame(u)}}const Ol=fl,Rl=bl,Fl=pl,Gl=gl,Vl=(e,t,i)=>{const s=new Map,a={platform:Kt,...i},n={...a.platform,_c:s};return hl(e,t,{...a,platform:n})};C.GidsFloatingElementType=void 0,(function(e){e.TOOLTIP="tooltip",e.POPOVER="popover"})(C.GidsFloatingElementType||(C.GidsFloatingElementType={}));function ta(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}const jl=/transform|translate|scale|rotate|perspective|filter/,Yl=/paint|layout|strict|content/,de=e=>!!e&&e!=="none";let Zt;function Bl(e){const t=(i=e,typeof window<"u"&&(i instanceof Element||i instanceof ta(i).Element)?ta(s=e).getComputedStyle(s):e);var i,s;return de(t.transform)||de(t.translate)||de(t.scale)||de(t.rotate)||de(t.perspective)||(Zt==null&&(Zt=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),!Zt&&(de(t.backdropFilter)||de(t.filter)))||jl.test(t.willChange||"")||Yl.test(t.contain||"")}function ql(e){return(function(t){for(let i=t;i;i=Jt(i))if(i instanceof Element&&getComputedStyle(i).display==="none")return null;for(let i=Jt(t);i;i=Jt(i)){if(!(i instanceof Element))continue;const s=getComputedStyle(i);if(s.display!=="contents"&&(s.position!=="static"||Bl(s)||i.tagName==="BODY"))return i}return null})(e)}function Jt(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}let ia=(Q=class{constructor(t,i){this.el=t,this.config=i,this.offset=10,this.timeDelayBeforeFadingOut=50,this.popoverMainAxisEnabled=!0,this.currentPlacement=i.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=zl(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=[Ol(this.offset)],i=Fl({mainAxis:!0,crossAxis:!this.config.lockToMainAxis&&"alignment",fallbackAxisSideDirection:"end",padding:this.offset}),s=this.config.elementType===C.GidsFloatingElementType.POPOVER,a=Rl({padding:this.offset,mainAxis:this.config.elementType===C.GidsFloatingElementType.TOOLTIP||s&&this.popoverMainAxisEnabled,crossAxis:!1});this.config.placement.includes("-")?t.push(i,a):t.push(a,i),this.config.showArrow!==!1&&this.arrowEl&&t.push(Gl({element:this.arrowEl,padding:this.offset})),Vl(this.anchorElement,this.floatingElement,{placement:this.config.placement,strategy:"fixed",middleware:t,platform:{...Kt,getOffsetParent:n=>Kt.getOffsetParent(n,ql)}}).then((({x:n,y:o,middlewareData:l,placement:d})=>{if(s){const p=d.startsWith("left")||d.startsWith("right"),m=d.startsWith("top")||d.startsWith("bottom"),u=this.isAnchorInViewport(),f=!!m||(p?u:this.popoverMainAxisEnabled);if(f!==this.popoverMainAxisEnabled)return this.popoverMainAxisEnabled=f,void this.updatePosition()}this.currentPlacement=d,Object.assign(this.floatingElement.style,{left:`${n}px`,top:`${o}px`,position:"fixed",transition:`opacity ${this.timeOfAnimation}ms ease`});const g=d.split("-")[0]??"bottom",c={top:"bottom",right:"left",bottom:"top",left:"right"}[g],{arrowZIndex:h}=this.normalizeFloatingElementStacking();if(l.arrow&&this.arrowEl){const p=this.arrowEl.offsetWidth,{x:m,y:u}=l.arrow;this.arrowEl.style.borderRadius=`${["left","right"].includes(g)?"0 ":""}var(--gidsFloatingElement-tip-border-radius, 2px)${["top","bottom"].includes(g)?" 0":""}`,Object.assign(this.arrowEl.style,{left:m!==null?`${m}px`:"",top:u!==null?`${u}px`:"",right:"",bottom:"",[c]:-p/2+"px",transform:"rotate(45deg)",zIndex:`${h}`,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??""),i=Number.parseInt(t,10),s=Number.isNaN(i)?-1:i-1,a=Number.isNaN(i)?s+1:i;return Number.isNaN(a)||(this.floatingElement.style.zIndex=`${a}`),Array.from(this.floatingElement.children).forEach((n=>{if(!(n instanceof HTMLElement)||n===this.arrowEl)return;const o=n.style.zIndex||(window.getComputedStyle?.(n).zIndex??""),l=Number.parseInt(o,10),d=window.getComputedStyle?.(n).position??"";(o===""||o==="auto"||Number.isNaN(l)||l<a)&&(n.style.zIndex=`${a}`,d!==""&&d!=="static"||(n.style.position="relative"))})),{contentZIndex:a,arrowZIndex:s}}hideFloatingElement(){this.floatingElement.classList.remove(this.config.visibilityClass),Q.currentFloatingElements.delete(this.config.elementType)}showFloatingElement(){const t=Q.currentFloatingElements.get(this.config.elementType);t&&t.hideFloatingElement(),this.floatingElement.classList.add(this.config.visibilityClass),Q.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(),i=window.innerHeight||document.documentElement?.clientHeight||0,s=window.innerWidth||document.documentElement?.clientWidth||0,a=t.height/2+2*this.offset;return t.bottom>=a&&t.top<=i-a&&t.right>=0&&t.left<=s}},Q.currentFloatingElements=new Map,Q);const sa=P(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.placement="bottom",this.previouslyFocusedElement=null,this.focusableElements=[],this.handleToggleEvent=t=>{t.stopPropagation();const i=this.floatingElementManager.isVisible();this.floatingElementManager.toggle(),!i&&this.floatingElementManager.isVisible()?this.onPopoverShow():i&&!this.floatingElementManager.isVisible()&&this.onPopoverHide()},this.handleDocumentClick=t=>{this.floatingElementManager.isVisible()&&!this._el.contains(t.target)&&(this.floatingElementManager.hide(),this.onPopoverHide())},this.handleKeyDown=t=>{if(this.floatingElementManager.isVisible())return t.key==="Escape"?(t.preventDefault(),this.floatingElementManager.hide(),void this.onPopoverHide()):void(t.key==="Tab"&&this.trapFocus(t))}}componentDidLoad(){this.floatingElementManager=new ia(this._el,{htmlFor:this.htmlFor,placement:this.placement,showWithoutDelay:!0,floatingElementSelector:"#popover",arrowElementSelector:"#arrow",visibilityClass:"gids-popover--visible",elementType:C.GidsFloatingElementType.POPOVER,getAnchorElementFromSlot:e=>e.querySelector('slot[name="anchor"]')?.assignedElements()[0]||null}),this.floatingElementManager.initialize(),this.setupEventListeners()}setupEventListeners(){const e=this.floatingElementManager.getAnchorElement();e&&(e.addEventListener("click",this.handleToggleEvent),document.addEventListener("click",this.handleDocumentClick),document.addEventListener("keydown",this.handleKeyDown))}onPopoverShow(){this.previouslyFocusedElement=document.activeElement,this.updateFocusableElements(),setTimeout((()=>{this.focusableElements.length>0&&this.focusableElements[0]&&this.focusableElements[0].focus()}),50)}onPopoverHide(){this.previouslyFocusedElement&&(this.previouslyFocusedElement.focus(),this.previouslyFocusedElement=null)}updateFocusableElements(){const e=this._el.shadowRoot?.querySelector("#popover");if(!e)return;const t=[],i=na(e);t.push(...i);const s=this._el.shadowRoot?.querySelector("slot:not([name])");s&&s.assignedElements({flatten:!0}).forEach((a=>{const n=na(a);t.push(...n)})),this.focusableElements=t.sort(((a,n)=>{const o=a.compareDocumentPosition(n),l=!!(o&Node.DOCUMENT_POSITION_FOLLOWING),d=!!(o&Node.DOCUMENT_POSITION_PRECEDING);return l?-1:d?1:0}))}trapFocus(e){if(this.focusableElements.length===0)return;const t=this.focusableElements[0],i=this.focusableElements[this.focusableElements.length-1];let s=document.activeElement;if(s===this._el){const n=this._el.shadowRoot?.activeElement;n!==null&&(s=n)}const a=this.focusableElements.indexOf(s)!==-1;e.shiftKey?s!==t&&a||(e.preventDefault(),i&&i.focus()):s!==i&&a||(e.preventDefault(),t&&t.focus())}placementChanged(e){this.floatingElementManager?.updateConfig({placement:e}),this.floatingElementManager?.isVisible()&&this.floatingElementManager?.reposition()}htmlForChanged(e){this.floatingElementManager?.updateConfig({htmlFor:e}),this.cleanupEventListeners(),this.floatingElementManager?.initialize(),this.setupEventListeners()}cleanupEventListeners(){const e=this.floatingElementManager?.getAnchorElement();e&&e.removeEventListener("click",this.handleToggleEvent),document.removeEventListener("click",this.handleDocumentClick),document.removeEventListener("keydown",this.handleKeyDown)}render(){return r(se,{key:"4147e2407a0e2592d65db07e6d92dcbd37e52b5d"},r("slot",{key:"82f2de1b78ee81f7b2363a2fbf4fc80029c6529f",name:"anchor"}),r("div",{key:"371b9c7c170bf8621e2a847eca6771e140ee161e",id:"popover",part:"popover",role:"dialog","aria-modal":"true",tabindex:"-1"},r("span",{key:"19dbf2c247353839c075674f068f2d435a23bec1",id:"arrow"}),r("div",{key:"374d276cdd13093c74b8a35d7447c328f4f90d0c"},r("slot",{key:"45d5f02df1f6aa160d080a5f5a10e0ba9e6aa8f8"}))))}disconnectedCallback(){this.cleanupEventListeners(),this.floatingElementManager?.destroy()}get _el(){return this}static get watchers(){return{placement:[{placementChanged:0}],htmlFor:[{htmlForChanged:0}]}}static get style(){return"gids-popover{--gidsPopover-background:var(--gids-elevation-surface-overlay-default);--gidsPopover-text-color:var(--gids-color-text-default);--gidsPopover-padding:var(--gids-padding-vertical-edge-to-element-200) var(--gids-padding-horizontal-edge-to-element-300);--gidsPopover-border-radius:var(--gids-border-radius-lg);--gidsPopover-tip-border-radius:2px;--gidsPopover-tip-size:12px;--gidsPopover-shadow:var(--gids-elevation-shadow-overlay);--gidsFloatingElement-background:var(--gidsPopover-background);--gidsFloatingElement-tip-border-radius:var(--gidsPopover-tip-border-radius)}[part=popover]{font-family:var(--gids-typography-label-small__font-family);font-size:var(--gids-typography-label-small__font-size);font-weight:var(--gids-typography-label-small__font-weight);letter-spacing:var(--gids-typography-label-small__letter-spacing);line-height:var(--gids-typography-label-small__line-height);text-transform:var(--gids-typography-label-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-small__font-variant-caps, inherit);position:absolute;display:inline-block;background-color:var(--gidsPopover-background);color:var(--gidsPopover-text-color);border-radius:var(--gidsPopover-border-radius);box-shadow:var(--gidsPopover-shadow);z-index:1000;opacity:0;pointer-events:none;outline:none}[part=popover]:focus{outline:none}[part=popover].gids-popover--visible{pointer-events:initial;opacity:1}[part=popover] span#arrow{position:absolute;height:var(--gidsPopover-tip-size);width:var(--gidsPopover-tip-size);background-color:var(--gidsPopover-background)}"}},[257,"gids-popover",{htmlFor:[513,"for"],placement:[513]},void 0,{placement:[{placementChanged:0}],htmlFor:[{htmlForChanged:0}]}]),aa=e=>{if(!(e instanceof E)||e.tabIndex===-1||e.hasAttribute("disabled"))return!1;const t=getComputedStyle(e);if(t.display==="none"||t.visibility==="hidden"||e.hidden)return!1;try{const i=e.tabIndex;e.tabIndex=-1,e.focus();const s=document.activeElement===e;return e.tabIndex=i,s&&e.blur(),s}catch{return!1}},na=e=>{const t=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:a=>aa(a)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}),i=[];aa(e)&&i.push(e);let s=t.nextNode();for(;s!==null;)i.push(s),s=t.nextNode();return i};function Hl(){typeof customElements<"u"&&["gids-popover"].forEach((e=>{e==="gids-popover"&&(customElements.get(e)||customElements.define(e,sa))}))}Hl();const Wl=sa,Ul=ws,{getGidsScrimClassNames:ra}=wn,oa=P(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.activeClasses=""}handleExtraClassesChange(e){this.activeClasses=ra(e)}connectedCallback(){const e=O();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e),this.activeClasses=ra(this.extraClasses)}render(){return r("div",{key:"bb28bc59d4522f27c3637774153603462d628be0",class:this.activeClasses,part:"root"},r("slot",{key:"24becefcfa3a4842163b62a255266d71dd27d765"}))}get _el(){return this}static get watchers(){return{extraClasses:[{handleExtraClassesChange:0}]}}static get style(){return".gids-scrim{display:flex;flex-direction:column;background-color:var(--gids-color-background-scrim);height:100vh !important;position:absolute;top:0;bottom:0;left:0;right:0;z-index:1001;align-items:center;justify-content:center;backdrop-filter:blur(12)}"}},[257,"gids-scrim",{extraClasses:[513,"extra-classes"],activeClasses:[32]},void 0,{extraClasses:[{handleExtraClassesChange:0}]}]);function Ql(){typeof customElements<"u"&&["gids-scrim"].forEach((e=>{e==="gids-scrim"&&(customElements.get(e)||customElements.define(e,oa))}))}Ql();const Xl=oa,la=P(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.appearance="default",this.show=!1,this.position="bottom-center"}async showSnackbar(){const e=Gt(this._el);e&&this.show&&e.queueComponent({message:this.message,appearance:this.appearance,buttonLabel:this.buttonLabel,onButtonClick:this.onButtonClick,position:this.position,componentName:"snackbar",timerInMs:this.timerInMs}),this.onQueueSnackbar&&this.onQueueSnackbar(),this.show=!1}render(){return null}get _el(){return this}static get watchers(){return{show:[{showSnackbar:0}]}}},[1,"gids-snackbar",{message:[513],appearance:[513],show:[516],onQueueSnackbar:[16],buttonLabel:[513,"button-label"],position:[513],timerInMs:[514,"timer-in-ms"],onButtonClick:[16]},void 0,{show:[{showSnackbar:0}]}]);function Kl(){typeof customElements<"u"&&["gids-snackbar"].forEach((e=>{e==="gids-snackbar"&&(customElements.get(e)||customElements.define(e,la))}))}Kl();const Zl=la,{formatCharCount:Jl}=$i,{inputToGidsFieldStatus:ed}=gn,da=P(class extends E{constructor(e){super(),e!==!1&&this.__registerHost(),this.gidsTextFieldClear=Se(this,"gidsTextFieldClear"),this.#e=Ue(),this._handleDismiss=()=>{const t=this.#t?.querySelector("input.gids-input__control");t&&(t.value="",t.dispatchEvent(new globalThis.Event("input",{bubbles:!0}))),this.value="",this.gidsTextFieldClear.emit()},this._handleInput=t=>{this.value=t.target?.value},this._handleInputFocusAndBlur=t=>{this._el.dispatchEvent(new FocusEvent(t.type,{relatedTarget:t.relatedTarget}))}}_startSlotContentObserver(){this._slotContentObserver=new MutationObserver((()=>{Si(this)})),this._slotContentObserver.observe(this._el,{childList:!0,subtree:!1,attributes:!0,attributeFilter:["slot"]})}connectedCallback(){const e=O();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e),this._startSlotContentObserver()}disconnectedCallback(){this._slotContentObserver?.disconnect(),this._slotContentObserver=void 0}#e;#t;render(){const{id:e,...t}=this.inputProps??{},i=e??this.#e,s=this.showClearButton&&this.value!==void 0&&this.value.length>0;return r("gids-field",{key:"d11133ec5a64d0bc929a2c09530e1c4b7040a441",disabled:this.disabled,count:Jl(this.value?.length,this.maxLength),helperText:this.helperText,statusText:this.statusText,status:ed(this.status)},r(Rt,{key:"edf0168bd4940b9f98fff8b7e03d865f46f4b6ac",slot:"label",disabled:this.disabled,info:r("slot",{name:"info"}),fieldRequirement:this.fieldRequirement,fieldRequirementOptionalText:this.fieldRequirementOptionalText,fieldRequirementRequiredText:this.fieldRequirementRequiredText,isLabelSentence:this.isLabelSentence,htmlFor:i},this.label),r("gids-input",{key:"317347850ebc9f671a16c816807f9ca55f0f9fa6",ref:a=>this.#t=a,appearance:this.appearance,status:this.status,loading:this.loading,value:this.value,defaultValue:this.defaultValue,name:this.name,required:this.required,disabled:this.disabled,readOnly:this.readOnly,leadingLabel:this.leadingLabel,trailingLabel:this.trailingLabel,onFocus:this._handleInputFocusAndBlur,onBlur:this._handleInputFocusAndBlur,onInput:this._handleInput,inputProps:{...t,type:this.type,id:i,maxLength:this.maxLength}},r("slot",{key:"87815f4d215bbb0c542457b9216f7446595d9ec2",name:"leadingIcon"}),r("slot",{key:"6648b1d8d3585e1df78039a356a297760272af4f",name:"leadingAccessory"}),s&&r(zs,{key:"7eba5acbfdfe1c9173d43bce1592f8e12c8602cb",label:"clear text",slot:"trailingAccessory",size:"lg",onPressDismiss:this._handleDismiss}),r("slot",{key:"85017d875b4390fec245b9da8409787a2bd86909",name:"trailingIcon"})))}get _el(){return this}},[260,"gids-text-field",{label:[513],showClearButton:[516,"show-clear-button"],helperText:[513,"helper-text"],statusText:[513,"status-text"],appearance:[513],status:[513],leadingLabel:[513,"leading-label"],trailingLabel:[513,"trailing-label"],loading:[516],type:[513],name:[513],required:[516],maxLength:[514,"maxlength"],value:[1],defaultValue:[513,"default-value"],disabled:[516],readOnly:[516,"readonly"],inputProps:[16],fieldRequirement:[513,"field-requirement"],fieldRequirementOptionalText:[1,"field-requirement-optional-text"],fieldRequirementRequiredText:[1,"field-requirement-required-text"],isLabelSentence:[16]}]);function td(){typeof customElements<"u"&&["gids-text-field","gids-field","gids-input"].forEach((e=>{switch(e){case"gids-text-field":customElements.get(e)||customElements.define(e,da);break;case"gids-field":customElements.get(e)||Xe();break;case"gids-input":customElements.get(e)||Me()}}))}td();const id=da,ca=P(class extends E{get selected(){return this.#e??this.defaultSelected}set selected(e){this.#e=e===void 0?void 0:!!e}constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.select=Se(this,"select"),this._toggle=this._toggle.bind(this)}#e;connectedCallback(){const e=O();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}_toggle(){const e=!this.selected;this._el.selected=e,this.select?.emit(e)}render(){return r(ut,{key:"d95b05ee98862e9fa4ee50ae676fded8234de63d"},r("style",{key:"844be4d370a1d44e4c18b828ed2cfab3bd702cfd"},`:host {
6
14
  display: ${this.width==="full"?"block":"inline-block"}
7
- }`),g(Ee,{key:"ccef97603f645ba92fd4180263d2cbeff0a54a07",appearance:this.appearance,size:this.size,width:this.width,disabled:this.disabled,onClick:this._toggle,"aria-pressed":this.selected?"true":"false",leadingIcon:g("slot",{name:"leadingIcon"}),trailingIcon:g("slot",{name:"trailingIcon"}),forceIconOnly:this._onlyHasLeadingIcon()},g("slot",{key:"7094015cf47ef8d045955419aa43f03174145928"})))}_onlyHasLeadingIcon(){const e=this._el.childNodes;return e.length===1&&e[0]instanceof window.Element&&e[0].slot==="leadingIcon"}get _el(){return this}},[257,"gids-toggle-button",{disabled:[516],appearance:[513],size:[513],width:[513],defaultSelected:[516,"default-selected"],selected:[6660]}]);function gr(){typeof customElements<"u"&&["gids-toggle-button"].forEach((e=>{e==="gids-toggle-button"&&(customElements.get(e)||customElements.define(e,pi))}))}gr();const pr=pi,bi=N(class extends A{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=G();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}componentDidLoad(){this.floatingElementManager=new li(this._el,{htmlFor:this.htmlFor,placement:this.placement,showWithoutDelay:this.showWithoutDelay,lockToMainAxis:this.lockToMainAxis,floatingElementSelector:"#tooltip",arrowElementSelector:"#arrow",visibilityClass:"gids-tooltip--visible",elementType:E.GidsFloatingElementType.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 g(Se,{key:"49747828eaa09ead2d1e2f6d9d28b66c2db76103"},g("slot",{key:"9ad53320553f1377f01f026a95f7cb894d91c98a"}),g("span",{key:"6116e418faa09d82975a3830f7e0bedcbdd8e87f",id:"tooltip",part:"tooltip",role:"tooltip"},g("span",{key:"677d275b2e161441d76315c50a60a941d6dd010a",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 br(){typeof customElements<"u"&&["gids-tooltip"].forEach((e=>{e==="gids-tooltip"&&(customElements.get(e)||customElements.define(e,bi))}))}br();const vr=bi;function jt(e,t){_s(e,t)}const yr=e=>{jt(e)},_r=e=>{jt(e)},wr=({children:e,classNameToBeValidated:t,childrenToBeValidated:n,currentComponentName:i})=>{if(e!=null){const s=Array.isArray(e)?e:[e];for(const o of s){if(!o||typeof o!="object"||!("vtag"in o))throw Error(`HTML/JSX Render Error: Invalid child type passed to ${i}. Expected ${n}.`);{const r=o.vtag;if(r!==t&&r!==n)throw Error(`HTML/JSX Render Error: <${i}> only accepts <${n}> as direct children. Received element tag: "${typeof r=="function"?r.name:r}".`)}}}};E.GidsField=Os,E.GidsIcon=Ls,E.GidsInput=Ms,E.GidsNotification=Fs,E.GidsOverflowContainer=Ds,E.GidsOverlayProvider=Ys,E.GidsPasswordField=fo,E.GidsPopover=rr,E.GidsScrim=lr,E.GidsSnackbar=dr,E.GidsTextField=mr,E.GidsToggleButton=pr,E.GidsTooltip=vr,E.getAssetPath=wi,E.getConstructedGidsStylesheet=G,E.refreshConstructedGidsStylesheet=xt,E.render=ji,E.setAssetPath=Si,E.setGidsAssetFilePaths=yr,E.setGidsAssetPaths=jt,E.setGidsDefaultAssetDirPath=_r,E.setNonce=qi,E.setPlatformOptions=Di,E.testHtmlChildrenValidity=wr,Object.defineProperty(E,Symbol.toStringTag,{value:"Module"})}));
15
+ }`),r(Z,{key:"510307e7bfce966e96422999f5309e0df3e62634",appearance:this.appearance,size:this.size,width:this.width,disabled:this.disabled,onClick:this._toggle,"aria-pressed":this.selected?"true":"false",leadingIcon:r("slot",{name:"leadingIcon"}),trailingIcon:r("slot",{name:"trailingIcon"}),forceIconOnly:this._onlyHasLeadingIcon()},r("slot",{key:"38bff264ed88090ee4567650417ccb86805fca98"})))}_onlyHasLeadingIcon(){const e=this._el.childNodes;return e.length===1&&e[0]instanceof window.Element&&e[0].slot==="leadingIcon"}get _el(){return this}},[257,"gids-toggle-button",{disabled:[516],appearance:[513],size:[513],width:[513],defaultSelected:[516,"default-selected"],selected:[6660]}]);function sd(){typeof customElements<"u"&&["gids-toggle-button"].forEach((e=>{e==="gids-toggle-button"&&(customElements.get(e)||customElements.define(e,ca))}))}sd();const ad=ca,ha=P(class extends E{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=O();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}componentDidLoad(){this.floatingElementManager=new ia(this._el,{htmlFor:this.htmlFor,placement:this.placement,showWithoutDelay:this.showWithoutDelay,lockToMainAxis:this.lockToMainAxis,floatingElementSelector:"#tooltip",arrowElementSelector:"#arrow",visibilityClass:"gids-tooltip--visible",elementType:C.GidsFloatingElementType.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 r(se,{key:"f9e6c76e1f2b3faa2c2ed5b1f5c28c4b11878819"},r("slot",{key:"1c36da89ba7d6a20f0e5204d5c079dbc64226d56"}),r("span",{key:"ac4972259978f2e52fc15545a28dc2375ef370cd",id:"tooltip",part:"tooltip",role:"tooltip"},r("span",{key:"49a7b319f5f0a87befe6e5d355d846dae12a9644",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 nd(){typeof customElements<"u"&&["gids-tooltip"].forEach((e=>{e==="gids-tooltip"&&(customElements.get(e)||customElements.define(e,ha))}))}nd();const rd=ha;function ei(e,t){Kn(e,t)}const od=e=>{ei(e)},ld=e=>{ei(e)},dd=({children:e,classNameToBeValidated:t,childrenToBeValidated:i,currentComponentName:s})=>{if(e!=null){const a=Array.isArray(e)?e:[e];for(const n of a){if(!n||typeof n!="object"||!("vtag"in n))throw Error(`HTML/JSX Render Error: Invalid child type passed to ${s}. Expected ${i}.`);{const o=n.vtag;if(o!==t&&o!==i)throw Error(`HTML/JSX Render Error: <${s}> only accepts <${i}> as direct children. Received element tag: "${typeof o=="function"?o.name:o}".`)}}}};C.GidsActivityGauge=gr,C.GidsBarChart=ur,C.GidsCalendar=Ur,C.GidsCalendarHeaderPanel=Or,C.GidsCalendarMonthList=Rr,C.GidsCalendarYearList=Fr,C.GidsChart=ro,C.GidsChartLegend=Xr,C.GidsChartLegendItem=Qr,C.GidsChevronButton=lo,C.GidsDot=co,C.GidsDropdown=yo,C.GidsDropdownField=bo,C.GidsDropdownPicker=vo,C.GidsField=_o,C.GidsIcon=xo,C.GidsInput=wo,C.GidsLevelGauge=Co,C.GidsLineChart=ko,C.GidsNotification=Eo,C.GidsOverflowContainer=Lo,C.GidsOverlayProvider=Fo,C.GidsPasswordField=Jo,C.GidsPieChart=el,C.GidsPopover=Wl,C.GidsProgressCircle=Ul,C.GidsScrim=Xl,C.GidsSnackbar=Zl,C.GidsTextField=id,C.GidsToggleButton=ad,C.GidsTooltip=rd,C.getAssetPath=fa,C.getConstructedGidsStylesheet=O,C.refreshConstructedGidsStylesheet=At,C.render=Na,C.setAssetPath=ba,C.setGidsAssetFilePaths=od,C.setGidsAssetPaths=ei,C.setGidsDefaultAssetDirPath=ld,C.setNonce=$a,C.setPlatformOptions=Aa,C.testHtmlChildrenValidity=dd,Object.defineProperty(C,Symbol.toStringTag,{value:"Module"})}));