@mgdis/mg-components 6.3.0 → 6.4.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 (231) hide show
  1. package/dist/cjs/{index-a5b2cd1b.js → index-911898e4.js} +410 -266
  2. package/dist/cjs/index-911898e4.js.map +1 -0
  3. package/dist/cjs/{index-cc11af95.js → index-a3269bfc.js} +3 -3
  4. package/dist/cjs/{index-cc11af95.js.map → index-a3269bfc.js.map} +1 -1
  5. package/dist/cjs/{index.es-ac7c22e3.js → index.es-325100d7.js} +47 -47
  6. package/dist/cjs/index.es-325100d7.js.map +1 -0
  7. package/dist/cjs/loader.cjs.js +2 -2
  8. package/dist/cjs/mg-action-more_36.cjs.entry.js +1341 -951
  9. package/dist/cjs/mg-action-more_36.cjs.entry.js.map +1 -1
  10. package/dist/cjs/mg-alert.cjs.entry.js +15 -12
  11. package/dist/cjs/mg-alert.cjs.entry.js.map +1 -1
  12. package/dist/cjs/mg-components.cjs.js +3 -3
  13. package/dist/cjs/mg-components.cjs.js.map +1 -1
  14. package/dist/cjs/mg-loader.cjs.entry.js +6 -8
  15. package/dist/cjs/mg-loader.cjs.entry.js.map +1 -1
  16. package/dist/cjs/mg-progress.cjs.entry.js +27 -12
  17. package/dist/cjs/mg-progress.cjs.entry.js.map +1 -1
  18. package/dist/collection/collection-manifest.json +2 -2
  19. package/dist/collection/components/atoms/internals/mg-character-left/mg-character-left.js +10 -3
  20. package/dist/collection/components/atoms/internals/mg-character-left/mg-character-left.js.map +1 -1
  21. package/dist/collection/components/atoms/internals/mg-input-title/mg-input-title.js +15 -4
  22. package/dist/collection/components/atoms/internals/mg-input-title/mg-input-title.js.map +1 -1
  23. package/dist/collection/components/atoms/mg-badge/mg-badge.js +15 -4
  24. package/dist/collection/components/atoms/mg-badge/mg-badge.js.map +1 -1
  25. package/dist/collection/components/atoms/mg-button/mg-button.js +50 -11
  26. package/dist/collection/components/atoms/mg-button/mg-button.js.map +1 -1
  27. package/dist/collection/components/atoms/mg-card/mg-card.js +1 -1
  28. package/dist/collection/components/atoms/mg-divider/mg-divider.js +9 -1
  29. package/dist/collection/components/atoms/mg-divider/mg-divider.js.map +1 -1
  30. package/dist/collection/components/atoms/mg-icon/mg-icon.js +22 -6
  31. package/dist/collection/components/atoms/mg-icon/mg-icon.js.map +1 -1
  32. package/dist/collection/components/atoms/mg-tag/mg-tag.js +14 -4
  33. package/dist/collection/components/atoms/mg-tag/mg-tag.js.map +1 -1
  34. package/dist/collection/components/atoms/mg-tooltip/mg-tooltip-content/mg-tooltip-content.js +3 -4
  35. package/dist/collection/components/atoms/mg-tooltip/mg-tooltip-content/mg-tooltip-content.js.map +1 -1
  36. package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.js +28 -6
  37. package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.js.map +1 -1
  38. package/dist/collection/components/molecules/inputs/mg-input/mg-input.js +50 -13
  39. package/dist/collection/components/molecules/inputs/mg-input/mg-input.js.map +1 -1
  40. package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox-paginated/mg-input-checkbox-paginated.js +29 -11
  41. package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox-paginated/mg-input-checkbox-paginated.js.map +1 -1
  42. package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.js +106 -33
  43. package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.js.map +1 -1
  44. package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.js +99 -36
  45. package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.js.map +1 -1
  46. package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.js +130 -35
  47. package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.js.map +1 -1
  48. package/dist/collection/components/molecules/inputs/mg-input-password/mg-input-password.js +87 -25
  49. package/dist/collection/components/molecules/inputs/mg-input-password/mg-input-password.js.map +1 -1
  50. package/dist/collection/components/molecules/inputs/mg-input-radio/mg-input-radio.js +86 -26
  51. package/dist/collection/components/molecules/inputs/mg-input-radio/mg-input-radio.js.map +1 -1
  52. package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.js +92 -30
  53. package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.js.map +1 -1
  54. package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.js +108 -31
  55. package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.js.map +1 -1
  56. package/dist/collection/components/molecules/inputs/mg-input-textarea/mg-input-textarea.js +109 -29
  57. package/dist/collection/components/molecules/inputs/mg-input-textarea/mg-input-textarea.js.map +1 -1
  58. package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.js +67 -21
  59. package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.js.map +1 -1
  60. package/dist/collection/components/molecules/internals/mg-item-more/mg-item-more.js +16 -70
  61. package/dist/collection/components/molecules/internals/mg-item-more/mg-item-more.js.map +1 -1
  62. package/dist/collection/components/molecules/menu/mg-menu/mg-menu.js +101 -89
  63. package/dist/collection/components/molecules/menu/mg-menu/mg-menu.js.map +1 -1
  64. package/dist/collection/components/molecules/menu/mg-menu-item/mg-menu-item.js +194 -157
  65. package/dist/collection/components/molecules/menu/mg-menu-item/mg-menu-item.js.map +1 -1
  66. package/dist/collection/components/molecules/mg-action-more/mg-action-more.js +19 -8
  67. package/dist/collection/components/molecules/mg-action-more/mg-action-more.js.map +1 -1
  68. package/dist/collection/components/molecules/mg-alert/mg-alert.js +15 -6
  69. package/dist/collection/components/molecules/mg-alert/mg-alert.js.map +1 -1
  70. package/dist/collection/components/molecules/mg-details/mg-details.js +17 -5
  71. package/dist/collection/components/molecules/mg-details/mg-details.js.map +1 -1
  72. package/dist/collection/components/molecules/mg-form/mg-form.js +48 -16
  73. package/dist/collection/components/molecules/mg-form/mg-form.js.map +1 -1
  74. package/dist/collection/components/molecules/mg-illustrated-message/mg-illustrated-message.js +13 -3
  75. package/dist/collection/components/molecules/mg-illustrated-message/mg-illustrated-message.js.map +1 -1
  76. package/dist/collection/components/molecules/mg-loader/mg-loader.js +5 -5
  77. package/dist/collection/components/molecules/mg-loader/mg-loader.js.map +1 -1
  78. package/dist/collection/components/molecules/mg-message/mg-message.js +22 -6
  79. package/dist/collection/components/molecules/mg-message/mg-message.js.map +1 -1
  80. package/dist/collection/components/molecules/mg-modal/mg-modal.js +37 -9
  81. package/dist/collection/components/molecules/mg-modal/mg-modal.js.map +1 -1
  82. package/dist/collection/components/molecules/mg-pagination/mg-pagination.js +28 -9
  83. package/dist/collection/components/molecules/mg-pagination/mg-pagination.js.map +1 -1
  84. package/dist/collection/components/molecules/mg-panel/mg-panel.js +48 -13
  85. package/dist/collection/components/molecules/mg-panel/mg-panel.js.map +1 -1
  86. package/dist/collection/components/molecules/mg-popover/mg-popover-content/mg-popover-content.js +10 -2
  87. package/dist/collection/components/molecules/mg-popover/mg-popover-content/mg-popover-content.js.map +1 -1
  88. package/dist/collection/components/molecules/mg-popover/mg-popover.js +44 -7
  89. package/dist/collection/components/molecules/mg-popover/mg-popover.js.map +1 -1
  90. package/dist/collection/components/molecules/mg-progress/mg-progress.js +26 -1
  91. package/dist/collection/components/molecules/mg-progress/mg-progress.js.map +1 -1
  92. package/dist/collection/components/molecules/mg-skip-links/mg-skip-links.js +3 -2
  93. package/dist/collection/components/molecules/mg-skip-links/mg-skip-links.js.map +1 -1
  94. package/dist/collection/components/molecules/mg-tabs/mg-tabs.js +28 -8
  95. package/dist/collection/components/molecules/mg-tabs/mg-tabs.js.map +1 -1
  96. package/dist/collection/utils/behaviors.utils.js +44 -107
  97. package/dist/collection/utils/behaviors.utils.js.map +1 -1
  98. package/dist/components/index.es.js +42 -42
  99. package/dist/components/index.es.js.map +1 -1
  100. package/dist/components/index2.js +2 -2
  101. package/dist/components/mg-action-more.js +15 -12
  102. package/dist/components/mg-action-more.js.map +1 -1
  103. package/dist/components/mg-alert.js +13 -10
  104. package/dist/components/mg-alert.js.map +1 -1
  105. package/dist/components/mg-badge2.js +13 -10
  106. package/dist/components/mg-badge2.js.map +1 -1
  107. package/dist/components/mg-button2.js +37 -16
  108. package/dist/components/mg-button2.js.map +1 -1
  109. package/dist/components/mg-card2.js +1 -1
  110. package/dist/components/mg-character-left2.js +8 -7
  111. package/dist/components/mg-character-left2.js.map +1 -1
  112. package/dist/components/mg-details.js +11 -7
  113. package/dist/components/mg-details.js.map +1 -1
  114. package/dist/components/mg-divider2.js +7 -1
  115. package/dist/components/mg-divider2.js.map +1 -1
  116. package/dist/components/mg-form.js +35 -21
  117. package/dist/components/mg-form.js.map +1 -1
  118. package/dist/components/mg-icon2.js +17 -11
  119. package/dist/components/mg-icon2.js.map +1 -1
  120. package/dist/components/mg-illustrated-message.js +10 -4
  121. package/dist/components/mg-illustrated-message.js.map +1 -1
  122. package/dist/components/mg-input-checkbox-paginated2.js +14 -10
  123. package/dist/components/mg-input-checkbox-paginated2.js.map +1 -1
  124. package/dist/components/mg-input-checkbox.js +73 -40
  125. package/dist/components/mg-input-checkbox.js.map +1 -1
  126. package/dist/components/mg-input-date.js +77 -46
  127. package/dist/components/mg-input-date.js.map +1 -1
  128. package/dist/components/mg-input-numeric.js +89 -44
  129. package/dist/components/mg-input-numeric.js.map +1 -1
  130. package/dist/components/mg-input-password.js +55 -27
  131. package/dist/components/mg-input-password.js.map +1 -1
  132. package/dist/components/mg-input-radio.js +59 -31
  133. package/dist/components/mg-input-radio.js.map +1 -1
  134. package/dist/components/mg-input-select2.js +59 -35
  135. package/dist/components/mg-input-select2.js.map +1 -1
  136. package/dist/components/mg-input-text2.js +69 -38
  137. package/dist/components/mg-input-text2.js.map +1 -1
  138. package/dist/components/mg-input-textarea.js +71 -35
  139. package/dist/components/mg-input-textarea.js.map +1 -1
  140. package/dist/components/mg-input-title2.js +11 -8
  141. package/dist/components/mg-input-title2.js.map +1 -1
  142. package/dist/components/mg-input-toggle.js +43 -25
  143. package/dist/components/mg-input-toggle.js.map +1 -1
  144. package/dist/components/mg-input2.js +37 -20
  145. package/dist/components/mg-input2.js.map +1 -1
  146. package/dist/components/mg-item-more2.js +146 -270
  147. package/dist/components/mg-item-more2.js.map +1 -1
  148. package/dist/components/mg-loader.js +4 -6
  149. package/dist/components/mg-loader.js.map +1 -1
  150. package/dist/components/mg-menu-item2.js +193 -149
  151. package/dist/components/mg-menu-item2.js.map +1 -1
  152. package/dist/components/mg-message2.js +21 -9
  153. package/dist/components/mg-message2.js.map +1 -1
  154. package/dist/components/mg-modal.js +33 -15
  155. package/dist/components/mg-modal.js.map +1 -1
  156. package/dist/components/mg-pagination2.js +21 -14
  157. package/dist/components/mg-pagination2.js.map +1 -1
  158. package/dist/components/mg-panel.js +37 -20
  159. package/dist/components/mg-panel.js.map +1 -1
  160. package/dist/components/mg-popover-content2.js +9 -3
  161. package/dist/components/mg-popover-content2.js.map +1 -1
  162. package/dist/components/mg-popover2.js +35 -10
  163. package/dist/components/mg-popover2.js.map +1 -1
  164. package/dist/components/mg-progress.js +26 -11
  165. package/dist/components/mg-progress.js.map +1 -1
  166. package/dist/components/mg-skip-links.js +2 -3
  167. package/dist/components/mg-skip-links.js.map +1 -1
  168. package/dist/components/mg-tabs.js +27 -17
  169. package/dist/components/mg-tabs.js.map +1 -1
  170. package/dist/components/mg-tag.js +12 -8
  171. package/dist/components/mg-tag.js.map +1 -1
  172. package/dist/components/mg-tooltip-content2.js +1 -2
  173. package/dist/components/mg-tooltip-content2.js.map +1 -1
  174. package/dist/components/mg-tooltip2.js +24 -12
  175. package/dist/components/mg-tooltip2.js.map +1 -1
  176. package/dist/esm/{index-eb0e1053.js → index-1f32332a.js} +410 -266
  177. package/dist/esm/index-1f32332a.js.map +1 -0
  178. package/dist/esm/{index-f3d3fb70.js → index-9bd10f5d.js} +3 -3
  179. package/dist/esm/{index-f3d3fb70.js.map → index-9bd10f5d.js.map} +1 -1
  180. package/dist/esm/{index.es-940821a9.js → index.es-a2587b72.js} +43 -43
  181. package/dist/esm/index.es-a2587b72.js.map +1 -0
  182. package/dist/esm/loader.js +3 -3
  183. package/dist/esm/mg-action-more_36.entry.js +1341 -951
  184. package/dist/esm/mg-action-more_36.entry.js.map +1 -1
  185. package/dist/esm/mg-alert.entry.js +15 -12
  186. package/dist/esm/mg-alert.entry.js.map +1 -1
  187. package/dist/esm/mg-components.js +4 -4
  188. package/dist/esm/mg-components.js.map +1 -1
  189. package/dist/esm/mg-loader.entry.js +6 -8
  190. package/dist/esm/mg-loader.entry.js.map +1 -1
  191. package/dist/esm/mg-progress.entry.js +27 -12
  192. package/dist/esm/mg-progress.entry.js.map +1 -1
  193. package/dist/mg-components/mg-components.esm.js +1 -1
  194. package/dist/mg-components/mg-components.esm.js.map +1 -1
  195. package/dist/mg-components/p-0ead5317.entry.js +2 -0
  196. package/dist/mg-components/{p-d0086664.entry.js.map → p-0ead5317.entry.js.map} +1 -1
  197. package/dist/mg-components/p-35898742.js +3 -0
  198. package/dist/mg-components/p-35898742.js.map +1 -0
  199. package/dist/mg-components/p-3b052ac0.entry.js +2 -0
  200. package/dist/mg-components/p-3b052ac0.entry.js.map +1 -0
  201. package/dist/mg-components/p-6810a565.entry.js +2 -0
  202. package/dist/mg-components/p-6810a565.entry.js.map +1 -0
  203. package/dist/mg-components/{p-ee51ec5e.js → p-b986c107.js} +2 -2
  204. package/dist/mg-components/p-b986c107.js.map +1 -0
  205. package/dist/mg-components/{p-a49e2b74.js → p-dc436f3c.js} +2 -2
  206. package/dist/mg-components/p-f48d964f.entry.js +2 -0
  207. package/dist/mg-components/p-f48d964f.entry.js.map +1 -0
  208. package/dist/types/components/molecules/inputs/mg-input-numeric/mg-input-numeric.d.ts +6 -0
  209. package/dist/types/components/molecules/internals/mg-item-more/mg-item-more.d.ts +1 -15
  210. package/dist/types/components/molecules/menu/mg-menu/mg-menu.d.ts +14 -30
  211. package/dist/types/components/molecules/menu/mg-menu-item/mg-menu-item.d.ts +46 -37
  212. package/dist/types/components.d.ts +0 -5
  213. package/dist/types/utils/behaviors.utils.d.ts +15 -44
  214. package/ide/intellij/web-types.json +3 -7
  215. package/ide/vscode/html-custom-data.json +2 -2
  216. package/package.json +22 -22
  217. package/dist/cjs/index-a5b2cd1b.js.map +0 -1
  218. package/dist/cjs/index.es-ac7c22e3.js.map +0 -1
  219. package/dist/esm/index-eb0e1053.js.map +0 -1
  220. package/dist/esm/index.es-940821a9.js.map +0 -1
  221. package/dist/mg-components/p-15b6849a.js +0 -3
  222. package/dist/mg-components/p-15b6849a.js.map +0 -1
  223. package/dist/mg-components/p-3aecf564.entry.js +0 -2
  224. package/dist/mg-components/p-3aecf564.entry.js.map +0 -1
  225. package/dist/mg-components/p-6f3d70b2.entry.js +0 -2
  226. package/dist/mg-components/p-6f3d70b2.entry.js.map +0 -1
  227. package/dist/mg-components/p-a17ea0af.entry.js +0 -2
  228. package/dist/mg-components/p-a17ea0af.entry.js.map +0 -1
  229. package/dist/mg-components/p-d0086664.entry.js +0 -2
  230. package/dist/mg-components/p-ee51ec5e.js.map +0 -1
  231. /package/dist/mg-components/{p-a49e2b74.js.map → p-dc436f3c.js.map} +0 -0
@@ -0,0 +1,2 @@
1
+ import{r as t,h as e,H as i,g as a,c as n}from"./p-35898742.js";import{z as o,J as r,G as s,y as l,e as c,I as h,K as g,V as m,B as d,P as u,c as p,a as v,u as f,$ as b,d as w,f as _,X as x,Z as z,Q as y}from"./p-b986c107.js";import{i as k}from"./p-dc436f3c.js";const H={VISIBLE:"visible",HIDDEN:"hidden",DISABLED:"disabled",ACTIVE:"active"};const M=["_blank","_self","_parent","_top"];const C={VERTICAL:"vertical",HORIZONTAL:"horizontal"};const V=["medium","large","xlarge"];const L=".mg-u-visually-hidden{position:absolute !important;overflow:hidden !important;width:.1rem !important;height:.1rem !important;padding:0 !important;border:0 !important;margin:-0.1rem !important;clip:rect(0.1rem, 0.1rem, 0.1rem, 0.1rem) !important;clip-path:inset(50%) !important;white-space:nowrap !important}*:focus:not(:focus-visible){outline:none}@media (prefers-reduced-motion){*{animation:none !important;transition:none !important}}:host{--mg-c-popover-padding-vertical:var(--mg-b-size-8);--mg-c-popover-padding-horizontal:0;--mg-c-popover-max-width:unset}.mg-c-action-more__divider{--mg-c-divider-spacing-vertical:var(--mg-b-size-4)}.mg-c-action-more__chevron{transition:200ms}.mg-c-action-more__chevron--rotate.mg-c-action-more__chevron{transform:rotate(180deg)}";const B=L;const D=t=>{const e=t;return typeof e==="object"&&e.every((t=>typeof t==="object"&&typeof t.label==="string"&&typeof t.mouseEventHandler==="function"||$(t)))};const $=t=>typeof t==="object"&&t.isDivider;const A=t=>{const e=t;return typeof e==="object"&&typeof e.variant==="string"&&typeof e.isIcon==="boolean"};const E=t=>{const e=t;return typeof e==="object"&&typeof e.icon==="string"};const q=class{constructor(e){t(this,e);this.name="mg-action-more";this.classBase="mg-c-action-more";this.mgPopoverIdentifier=o(this.name);this.button={variant:"flat",isIcon:true};this.expanded=false;this.toggleExpanded=()=>{this.expanded=!this.expanded};this.handleDisplayChange=t=>{this.expanded=t.detail};this.handleButton=()=>{this.toggleExpanded()};this.handleItemClick=(t,e)=>{this.expanded=false;e(t)}}validateItems(t){if(!D(t)){throw new Error(`<${this.name}> prop "items" is required and all values must be the same type, MgActionMoreItemType or MgActionMoreDividerType. Passed value: ${r(t)}.`)}else if(D(t)&&t.length>0&&($(t[0])||$(t[t.length-1]))){throw new Error(`<${this.name}> prop "items" can’t have a divider at the beginning or the end of the array. Passed value: ${r(t)}.`)}}validateIcon(t){if(t&&!E(t)){throw new Error(`<${this.name}> prop "icon" must match MgActionMoreIconType. Passed value: ${r(t)}.`)}else if((t===null||t===void 0?void 0:t.icon)===undefined&&Boolean(this.button.isIcon)){this.icon={icon:"ellipsis"}}}validateButton(t){if(t&&!A(t)){throw new Error(`<${this.name}> prop "button" must match MgActionMoreButtonType. Passed value: ${r(t)}.`)}}validateDisplayChevron(t){if(t&&this.button.isIcon===true){throw new Error(`<${this.name}> prop "displayChevron" can't be used with a 'button" prop "isIcon" attribute.`)}}componentWillLoad(){this.messages=k(this.element).messages.actionMore;this.validateItems(this.items);this.validateButton(this.button);this.validateIcon(this.icon);this.validateDisplayChevron(this.displayChevron)}render(){const t=this.button.label||this.messages.label;const a=[t];if(!this.button.isIcon&&this.displayChevron){a.push(e("span",{class:{[`${this.classBase}__chevron`]:true,[`${this.classBase}__chevron--rotate`]:this.expanded===true}},e("mg-icon",{icon:"chevron-down"})))}return e(i,{key:"2255b4416986c17b4c51162e60f2d69599d730fe","data-mg-popover-guard":this.mgPopoverIdentifier},e("span",{key:"06e117e65bd8bbe404478c657cd96709b83e9283",class:this.classBase},e("mg-popover",{key:"3001fb13f7d6d43c40194698c3f6b081ad7e7ab4",identifier:this.mgPopoverIdentifier,display:this.expanded,"onDisplay-change":this.handleDisplayChange},e("mg-button",{key:"7b1031a98bddbe7f1e567c42be7ce595512db2ce",variant:this.button.variant,isIcon:this.button.isIcon,disabled:this.button.disabled,type:"button",label:t,onClick:this.handleButton},this.icon&&e("mg-icon",Object.assign({key:"756b408413f748ad8bc32e1d573ab2d7f54a9ce1"},this.icon)),!this.button.isIcon&&a),e("div",{key:"623b5084381a0ff4e3b8ec06892dcb8d16cb060a",slot:"content"},e("mg-menu",{key:"34bcf9213d4d076246270daaebbef75ec0f92b07",direction:C.VERTICAL,label:this.messages.label},this.items.map((t=>{var i,a;return $(t)?e("mg-divider",{class:"mg-c-action-more__divider",key:"divider"}):e("mg-menu-item",{key:t.label,status:t.status||H.VISIBLE,target:t.target,href:t.href,onClick:e=>this.handleItemClick(e,t.mouseEventHandler)},((i=t.icon)===null||i===void 0?void 0:i.icon)&&e("mg-icon",{icon:t.icon.icon,variant:t.icon.variant,variantStyle:t.icon.variantStyle,slot:"image"}),e("span",{slot:"label"},t.label),((a=t.badge)===null||a===void 0?void 0:a.label)&&e("mg-badge",{label:t.badge.label,value:t.badge.value,slot:"information",variant:"text-color"}))})))))))}get element(){return a(this)}static get watchers(){return{items:["validateItems"],icon:["validateIcon"],button:["validateButton"],displayChevron:["validateDisplayChevron"]}}};q.style=B;const I=["info","primary","secondary","success","warning","danger","text-color"];const P=".mg-u-visually-hidden{position:absolute !important;overflow:hidden !important;width:.1rem !important;height:.1rem !important;padding:0 !important;border:0 !important;margin:-0.1rem !important;clip:rect(0.1rem, 0.1rem, 0.1rem, 0.1rem) !important;clip-path:inset(50%) !important;white-space:nowrap !important}*:focus:not(:focus-visible){outline:none}@media (prefers-reduced-motion){*{animation:none !important;transition:none !important}}/*!\n * @prop --mg-c-badge-size: Defines the height and minimum width of the badge. The default value is `--mg-b-size-16`.\n * @prop --mg-c-badge-font-size: Defines the font size of the badge. The default value is `--mg-b-font-size-small`.\n * @prop --mg-c-badge-color-text: Defines the font color of the badge when used with the `text-color` variant and without `outline`. The default value is `--mg-b-color-light`.\n */.mg-c-badge{min-width:var(--mg-c-badge-size);height:var(--mg-c-badge-size);box-sizing:border-box;padding:0 var(--mg-b-size-4);border:var(--mg-b-size-border) solid;border-radius:calc(var(--mg-c-badge-size)/2);font-size:var(--mg-c-badge-font-size);font-weight:600;line-height:var(--mg-c-badge-size);text-align:center}.mg-c-badge.mg-c-badge--primary{border-color:var(--mg-b-color-primary);background-color:var(--mg-b-color-primary);color:var(--mg-b-color-text-on-primary)}.mg-c-badge.mg-c-badge--primary.mg-c-badge--outline{background-color:rgba(0,0,0,0);color:var(--mg-b-color-primary)}.mg-c-badge.mg-c-badge--secondary{border-color:var(--mg-b-color-secondary);background-color:var(--mg-b-color-secondary);color:var(--mg-b-color-text-on-secondary)}.mg-c-badge.mg-c-badge--secondary.mg-c-badge--outline{background-color:rgba(0,0,0,0);color:var(--mg-b-color-secondary)}.mg-c-badge.mg-c-badge--danger{border-color:var(--mg-b-color-danger);background-color:var(--mg-b-color-danger);color:var(--mg-b-color-text-on-danger)}.mg-c-badge.mg-c-badge--danger.mg-c-badge--outline{background-color:rgba(0,0,0,0);color:var(--mg-b-color-danger)}.mg-c-badge.mg-c-badge--info{border-color:var(--mg-b-color-info);background-color:var(--mg-b-color-info);color:var(--mg-b-color-text-on-info)}.mg-c-badge.mg-c-badge--info.mg-c-badge--outline{background-color:rgba(0,0,0,0);color:var(--mg-b-color-info)}.mg-c-badge.mg-c-badge--success{border-color:var(--mg-b-color-success);background-color:var(--mg-b-color-success);color:var(--mg-b-color-text-on-success)}.mg-c-badge.mg-c-badge--success.mg-c-badge--outline{background-color:rgba(0,0,0,0);color:var(--mg-b-color-success)}.mg-c-badge.mg-c-badge--warning{border-color:var(--mg-b-color-warning);background-color:var(--mg-b-color-warning);color:var(--mg-b-color-text-on-warning)}.mg-c-badge.mg-c-badge--warning.mg-c-badge--outline{background-color:rgba(0,0,0,0);color:var(--mg-b-color-warning)}.mg-c-badge.mg-c-badge--text-color{border-color:currentcolor;background-color:currentcolor}.mg-c-badge.mg-c-badge--text-color .mg-c-badge__value{color:var(--mg-c-badge-color-text, var(--mg-b-color-light))}.mg-c-badge.mg-c-badge--text-color.mg-c-badge--outline{background-color:rgba(0,0,0,0)}.mg-c-badge.mg-c-badge--text-color.mg-c-badge--outline .mg-c-badge__value{color:currentcolor}.mg-c-badge,mg-badge{display:inline-flex;align-items:center;justify-content:center}";const T=P;const O=class{constructor(e){t(this,e);this.classOutline=`mg-c-badge--outline`;this.variant=I[0];this.classCollection=new s(["mg-c-badge"])}validateValue(t){if(/^[^A-Z]+$/i.exec(`${t}`)===null){throw new Error(`<mg-badge> prop "value" is required and must be integer and/or special character. Passed value: ${r(t)}.`)}}validateLabel(t){if(!l(t)){throw new Error(`<mg-badge> prop "label" is required and must be a string. Passed value: ${r(t)}.`)}}validateVariant(t,e){if(!I.includes(t)){throw new Error(`<mg-badge> prop "variant" must be one of: ${I.join(", ")}. Passed value: ${r(t)}.`)}else{if(e!==undefined){this.classCollection.delete(`mg-c-badge--${e}`)}this.classCollection.add(`mg-c-badge--${t}`)}}validateOutline(t){if(t)this.classCollection.add(this.classOutline);else this.classCollection.delete(this.classOutline)}componentWillLoad(){this.validateValue(this.value);this.validateLabel(this.label);this.validateVariant(this.variant);this.validateOutline(this.outline)}render(){return e("span",{key:"db20118c3cfbc79ca65bcbbda1029857211615b2",class:this.classCollection.join()},e("span",{key:"1898f1b56935c4acdab79f8c794025009f2d943c",class:"mg-c-badge__value"},this.value),e("span",{key:"2ca8814b685441f11c8a1804c1e98d3e58f26d84",class:"mg-u-visually-hidden"},this.label))}static get watchers(){return{value:["validateValue"],label:["validateLabel"],variant:["validateVariant"],outline:["validateOutline"]}}};O.style=T;const j=["medium","large"];const S=["primary","secondary","danger","danger-alt","info","flat","success","link"];const W="/*!\n * @prop --mg-c-button-border-radius: Defines the border radius of the button. The default value is `--mg-b-size-radius`.\n * @prop --mg-c-button-border-top-width: Defines the top border width of the button. Unset by default, fallback on `--mg-b-size-border`.\n * @prop --mg-c-button-border-right-width: Defines the right border width of the button. Unset by default, fallback on `--mg-b-size-border`.\n * @prop --mg-c-button-border-bottom-width: Defines the bottom border width of the button. Unset by default, fallback on `--mg-b-size-border`.\n * @prop --mg-c-button-border-left-width: Defines the left border width of the button. Unset by default, fallback on `--mg-b-size-border`.\n * @prop --mg-c-button-border-radius-top-left: Defines the top left border radius of the button. Unset by default, fallback on `--mg-c-button-border-radius`.\n * @prop --mg-c-button-border-radius-top-right: Defines the top right border radius of the button. Unset by default, fallback on `--mg-c-button-border-radius`.\n * @prop --mg-c-button-border-radius-bottom-right: Defines the bottom right border radius of the button. Unset by default, fallback on `--mg-c-button-border-radius`.\n * @prop --mg-c-button-border-radius-bottom-left: Defines the bottom left border radius of the button. Unset by default, fallback on `--mg-c-button-border-radius`.\n * @prop --mg-c-button-font-weight: Defines the font weight of the button. Unset by default, fallback on `normal`.\n * @prop --mg-c-button-icon-border-radius: Defines the border radius of the button in icon mode. The default value is `--mg-b-size-min-height`.\n */:host{display:inline-block;max-width:100%;vertical-align:middle}:host(:hover) .mg-c-button--flat:not(.mg-c-button--disabled){background:color-mix(in srgb, var(--mg-b-color-dark), transparent 90%)}:host([full-width]){display:block}:host([disabled]),:host([aria-disabled=true]){pointer-events:none}.mg-c-button.mg-c-button--primary{/*!\n * @prop --mg-c-button-color-background-primary: Defines the background color for the primary variant button.\n * @prop --mg-c-button-color-border-primary: Defines the border color for the primary variant button.\n * @prop --mg-c-button-color-gradient-primary: Defines the gradient color for the primary variant button.\n * @prop --mg-c-button-color-text-primary: Defines the font color for the primary variant button.\n */border-color:var(--mg-c-button-color-border-primary);background:linear-gradient(to bottom, var(--mg-c-button-color-background-primary), var(--mg-c-button-color-gradient-primary));color:var(--mg-c-button-color-text-primary)}:host(:hover) .mg-c-button.mg-c-button--primary:not(.mg-c-button--disabled){background:var(--mg-c-button-color-background-primary)}.mg-c-button.mg-c-button--secondary{/*!\n * @prop --mg-c-button-color-background-secondary: Defines the background color for the secondary variant button.\n * @prop --mg-c-button-color-border-secondary: Defines the border color for the secondary variant button.\n * @prop --mg-c-button-color-gradient-secondary: Defines the gradient color for the secondary variant button.\n * @prop --mg-c-button-color-text-secondary: Defines the font color for the secondary variant button.\n */border-color:var(--mg-c-button-color-border-secondary);background:linear-gradient(to bottom, var(--mg-c-button-color-background-secondary), var(--mg-c-button-color-gradient-secondary));color:var(--mg-c-button-color-text-secondary)}:host(:hover) .mg-c-button.mg-c-button--secondary:not(.mg-c-button--disabled){background:var(--mg-c-button-color-background-secondary)}.mg-c-button.mg-c-button--danger{/*!\n * @prop --mg-c-button-color-background-danger: Defines the background color for the danger variant button.\n * @prop --mg-c-button-color-border-danger: Defines the border color for the danger variant button.\n * @prop --mg-c-button-color-gradient-danger: Defines the gradient color for the danger variant button.\n * @prop --mg-c-button-color-text-danger: Defines the font color for the danger variant button.\n */border-color:var(--mg-c-button-color-border-danger);background:linear-gradient(to bottom, var(--mg-c-button-color-background-danger), var(--mg-c-button-color-gradient-danger));color:var(--mg-c-button-color-text-danger)}:host(:hover) .mg-c-button.mg-c-button--danger:not(.mg-c-button--disabled){background:var(--mg-c-button-color-background-danger)}.mg-c-button.mg-c-button--info{/*!\n * @prop --mg-c-button-color-background-info: Defines the background color for the info variant button.\n * @prop --mg-c-button-color-border-info: Defines the border color for the info variant button.\n * @prop --mg-c-button-color-gradient-info: Defines the gradient color for the info variant button.\n * @prop --mg-c-button-color-text-info: Defines the font color for the info variant button.\n */border-color:var(--mg-c-button-color-border-info);background:linear-gradient(to bottom, var(--mg-c-button-color-background-info), var(--mg-c-button-color-gradient-info));color:var(--mg-c-button-color-text-info)}:host(:hover) .mg-c-button.mg-c-button--info:not(.mg-c-button--disabled){background:var(--mg-c-button-color-background-info)}.mg-c-button.mg-c-button--success{/*!\n * @prop --mg-c-button-color-background-success: Defines the background color for the success variant button.\n * @prop --mg-c-button-color-border-success: Defines the border color for the success variant button.\n * @prop --mg-c-button-color-gradient-success: Defines the gradient color for the success variant button.\n * @prop --mg-c-button-color-text-success: Defines the font color for the success variant button.\n */border-color:var(--mg-c-button-color-border-success);background:linear-gradient(to bottom, var(--mg-c-button-color-background-success), var(--mg-c-button-color-gradient-success));color:var(--mg-c-button-color-text-success)}:host(:hover) .mg-c-button.mg-c-button--success:not(.mg-c-button--disabled){background:var(--mg-c-button-color-background-success)}.mg-c-button.mg-c-button--warning{/*!\n * @prop --mg-c-button-color-background-warning: Defines the background color for the warning variant button.\n * @prop --mg-c-button-color-border-warning: Defines the border color for the warning variant button.\n * @prop --mg-c-button-color-gradient-warning: Defines the gradient color for the warning variant button.\n * @prop --mg-c-button-color-text-warning: Defines the font color for the warning variant button.\n */border-color:var(--mg-c-button-color-border-warning);background:linear-gradient(to bottom, var(--mg-c-button-color-background-warning), var(--mg-c-button-color-gradient-warning));color:var(--mg-c-button-color-text-warning)}:host(:hover) .mg-c-button.mg-c-button--warning:not(.mg-c-button--disabled){background:var(--mg-c-button-color-background-warning)}.mg-c-button.mg-c-button--danger-alt{/*!\n * @prop --mg-c-button-color-background-danger-alt: Defines the background color for the danger-alt variant button.\n * @prop --mg-c-button-color-border-danger-alt: Defines the border color for the danger-alt variant button.\n * @prop --mg-c-button-color-gradient-danger-alt: Defines the gradient color for the danger-alt variant button.\n * @prop --mg-c-button-color-text-danger-alt: Defines the font color for the danger-alt variant button.\n */border-color:var(--mg-c-button-color-border-danger-alt);background:linear-gradient(to bottom, var(--mg-c-button-color-background-danger-alt), var(--mg-c-button-color-gradient-danger-alt));color:var(--mg-c-button-color-text-danger-alt)}:host(:hover) .mg-c-button.mg-c-button--danger-alt:not(.mg-c-button--disabled){background:var(--mg-c-button-color-background-danger-alt)}.mg-c-button{position:relative;display:inline-flex;min-height:var(--mg-b-size-min-height);box-sizing:border-box;align-items:center;padding:calc((var(--mg-b-size-min-height) - 2*var(--mg-b-size-border) - var(--mg-b-font-size)*var(--mg-b-line-height))/2) var(--mg-b-size-12);border-width:var(--mg-c-button-border-top-width, var(--mg-b-size-border)) var(--mg-c-button-border-right-width, var(--mg-b-size-border)) var(--mg-c-button-border-bottom-width, var(--mg-b-size-border)) var(--mg-c-button-border-left-width, var(--mg-b-size-border));border-style:solid;border-radius:var(--mg-c-button-border-radius-top-left, var(--mg-c-button-border-radius)) var(--mg-c-button-border-radius-top-right, var(--mg-c-button-border-radius)) var(--mg-c-button-border-radius-bottom-right, var(--mg-c-button-border-radius)) var(--mg-c-button-border-radius-bottom-left, var(--mg-c-button-border-radius));background-image:none;column-gap:var(--mg-b-size-8);cursor:pointer;touch-action:manipulation;font-family:inherit;font-size:var(--mg-b-font-size);font-weight:var(--mg-c-button-font-weight, normal);text-align:left;text-decoration:none}.mg-c-button slot,.mg-c-button ::slotted(*:not(mg-icon)){font-family:inherit;font-size:var(--mg-b-font-size);font-weight:var(--mg-c-button-font-weight, normal);text-align:left;text-decoration:none;display:flex;align-items:center;column-gap:var(--mg-b-size-8)}.mg-c-button mg-icon:only-child,.mg-c-button ::slotted(mg-icon){display:inline-flex;flex-shrink:0;margin:auto 0;line-height:1}.mg-c-button.mg-c-button--disabled{cursor:default;opacity:var(--mg-b-opacity-element-disabled)}.mg-c-button.mg-c-button--flat{border:none;background:none}.mg-c-button.mg-c-button--link{min-height:unset;padding:unset;border:unset;border-radius:unset;background:unset;text-decoration:underline}.mg-c-button.mg-c-button--link slot{font-weight:600}.mg-c-button.mg-c-button--link:hover{text-decoration:none}.mg-c-button.mg-c-button--large{padding:calc(var(--mg-b-size-12) - var(--mg-b-size-border)) calc(var(--mg-b-size-24) - var(--mg-b-size-border))}.mg-c-button.mg-c-button--large:not(.mg-c-button--icon){line-height:var(--mg-b-size-24)}.mg-c-button.mg-c-button--large:not(.mg-c-button--icon) slot,.mg-c-button.mg-c-button--large:not(.mg-c-button--icon) ::slotted(*){font-size:var(--mg-b-size-16)}.mg-c-button.mg-c-button--icon{width:var(--mg-b-size-min-height);height:var(--mg-b-size-min-height);justify-content:center;padding:0;border-radius:var(--mg-c-button-border-radius-top-left, var(--mg-c-button-icon-border-radius)) var(--mg-c-button-border-radius-top-right, var(--mg-c-button-icon-border-radius)) var(--mg-c-button-border-radius-bottom-right, var(--mg-c-button-icon-border-radius)) var(--mg-c-button-border-radius-bottom-left, var(--mg-c-button-icon-border-radius));font-size:var(--mg-b-font-size);line-height:var(--mg-b-font-size)}.mg-c-button.mg-c-button--icon.mg-c-button--large{width:unset;height:unset;padding:calc(var(--mg-b-size-12) - var(--mg-b-size-border))}.mg-c-button.mg-c-button--icon.mg-c-button--large ::slotted(*){min-width:var(--mg-b-size-24);min-height:var(--mg-b-size-24);align-items:center;justify-content:center}.mg-c-button.mg-c-button--full-width{display:flex;justify-content:center}.mg-c-button.mg-c-button--loading>mg-icon:first-of-type{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.mg-c-button.mg-c-button--loading .mg-c-button__content{opacity:0}:host(:focus-visible){outline:0}:host(:focus-visible) .mg-c-button{outline-color:-webkit-focus-ring-color;outline-style:auto;outline-width:.2rem}";const R=W;const U=class{constructor(e){t(this,e);this.disabledChange=n(this,"disabled-change",7);this.onClickElementFn=null;this.classDisabled="mg-c-button--disabled";this.classLoading="mg-c-button--loading";this.classFullWidth="mg-c-button--full-width";this.variant=S[0];this.size=j[0];this.fullWidth=false;this.isIcon=false;this.disableOnClick=false;this.loading=false;this.classCollection=new s(["mg-c-button"]);this.handleClick=t=>{if(this.disabled)t.stopPropagation();else if(this.disableOnClick){this.loading=true;this.disabled=true}};this.handleKeydown=t=>{if(!this.disabled&&t.key===" "){t.preventDefault()}else if(!this.disabled&&["Enter","NumpadEnter","Space"].includes(t.key)){t.preventDefault();this.element.dispatchEvent(new MouseEvent("click",{bubbles:true}))}};this.handleKeyup=t=>{if(!this.disabled&&t.key===" "){t.preventDefault();this.element.dispatchEvent(new MouseEvent("click",{bubbles:true}))}};this.setIconSize=()=>{var t,e;if(this.size==="medium"){(t=this.element.querySelector("mg-icon"))===null||t===void 0?void 0:t.removeAttribute("size")}else if(this.isIcon){(e=this.element.querySelector("mg-icon"))===null||e===void 0?void 0:e.setAttribute("size",this.size)}}}validateVariant(t,e){if(!S.includes(t)){if(t===""){this.variant=S[0];return}throw new Error(`<mg-button> prop "variant" must be one of: ${S.join(", ")}. Passed value: ${r(t)}.`)}else{if(e!==undefined){this.classCollection.delete(`mg-c-button--${e}`)}this.classCollection.add(`mg-c-button--${t}`)}}validateSize(t,e){if(!j.includes(t)){throw new Error(`<mg-button> prop "size" must be one of: ${j.join(", ")}. Passed value: ${r(t)}.`)}else{if(e!==undefined){this.classCollection.delete(`mg-c-button--${e}`)}this.classCollection.add(`mg-c-button--${t}`);this.setIconSize()}}validateFullWidth(t){if(t&&this.isIcon){throw new Error('<mg-button> prop "fullWidth" cannot be used with prop "isIcon".')}else if(t){this.classCollection.add(this.classFullWidth)}else{this.classCollection.delete(this.classFullWidth)}}disabledHandler(t){if(!t&&this.disableOnClick){this.loading=false}this.element.onclick=t?undefined:this.onClickElementFn;if(t){this.classCollection.add(this.classDisabled)}else{this.classCollection.delete(this.classDisabled)}this.disabledChange.emit(t)}watchIsIcon(){this.setIconSize()}loadingHandler(t){if(t){this.classCollection.add(this.classLoading)}else{this.classCollection.delete(this.classLoading)}}componentWillLoad(){this.validateVariant(this.variant);this.validateFullWidth(this.fullWidth);this.validateSize(this.size);this.watchIsIcon();if(this.isIcon){this.classCollection.add(`mg-c-button--icon`);if(!l(this.label)){throw new Error(`<mg-button> prop "label" is mandatory when prop "isIcon" is set to true.`)}}this.onClickElementFn=this.element.onclick;this.disabledHandler(this.disabled)}componentDidLoad(){c((()=>{var t;const e=this.element.closest("form")||((t=this.element.closest("mg-form"))===null||t===void 0?void 0:t.shadowRoot.querySelector("form"));if(e&&["submit",undefined].includes(this.type)){this.element.addEventListener("click",(()=>{e.dispatchEvent(new SubmitEvent("submit",{bubbles:true,cancelable:true}))}))}}))}render(){var t;return e(i,{key:"a56efb7c3e49a4aadf6751b10bacb39f20c260df",role:"button",tabIndex:0,type:this.type,form:this.form,"full-width":this.fullWidth,"aria-label":this.label,"aria-disabled":(t=this.disabled)===null||t===void 0?void 0:t.toString(),onClick:this.handleClick,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},e("div",{key:"2d47d068d188161b603b26117256d0e828393348",class:this.classCollection.join()},this.loading&&e("mg-icon",{key:"ba84820c70834f1e345af506265222340659f8ec",icon:"loader",spin:true}),e("div",{key:"db6c3437d5de7f828cca7df9d83670de9d3a8ed6",class:"mg-c-button__content"},e("slot",{key:"b00f76d92e1e2f9e4dd834bf41419c68c2635d1a"}))))}get element(){return a(this)}static get watchers(){return{variant:["validateVariant"],size:["validateSize"],fullWidth:["validateFullWidth"],disabled:["disabledHandler"],isIcon:["watchIsIcon"],loading:["loadingHandler"]}}};U.style=R;const N="/*!\n * @prop --mg-c-card-overflow: Defines the overflow property for the card. Unset by default, fallback on `--mg-c-card-overflow-default`.\n * @prop --mg-c-card-overflow-default: Defines the default overflow property for the card. Unset by default.\n * @prop --mg-c-card-max-width: Defines the max-width property for the card. Unset by default.\n * @prop --mg-c-card-spacing: Defines the padding property for the card. Unset by default, fallback on `--mg-c-card-spacing-default`.\n * @prop --mg-c-card-spacing-default: Defines the default padding property for the card. Default value: `--mg-b-size-16`.\n * @prop --mg-c-card-border: Defines the border property for the card. Unset by default, fallback on `--mg-c-card-border-default`.\n * @prop --mg-c-card-border-default: Defines the default border property for the card. Default value: `var(--mg-b-size-border) solid color-mix(in srgb, var(--mg-b-color-dark), transparent 95%)`.\n * @prop --mg-c-card-border-radius: Defines the border radius property for the card. Unset by default, fallback on `--mg-c-card-border-radius-default`.\n * @prop --mg-c-card-border-radius-default: Defines the default border radius property for the card. Default value: `--mg-b-size-radius`.\n * @prop --mg-c-card-color-background: Defines the background property for the card. Unset by default, fallback on `--mg-c-card-color-background-default`.\n * @prop --mg-c-card-color-background-default: Defines the default background property for the card. Default value: `--mg-b-color-light`.\n * @prop --mg-c-card-box-shadow: Defines the box shadow property for the card. Unset by default, fallback on `--mg-c-card-box-shadow-default`.\n * @prop --mg-c-card-box-shadow-default: Defines the default box shadow property for the card. Default value: `--mg-b-box-shadow`.\n */.mg-c-card{position:relative;z-index:inherit;overflow:var(--mg-c-card-overflow, var(--mg-c-card-overflow-default));width:100%;min-width:var(--mg-c-card-min-width);max-width:var(--mg-c-card-max-width);box-sizing:border-box;padding:var(--mg-c-card-spacing, var(--mg-c-card-spacing-default));border:var(--mg-c-card-border, var(--mg-c-card-border-default));border-radius:var(--mg-c-card-border-radius, var(--mg-c-card-border-radius-default));background:var(--mg-c-card-color-background, var(--mg-c-card-color-background-default));box-shadow:var(--mg-c-card-box-shadow, var(--mg-c-card-box-shadow-default))}.mg-c-card ::slotted(*){--mg-c-card-border:var(--mg-c-card-border-default);--mg-c-card-spacing:var(--mg-c-card-spacing-default);--mg-c-card-border-radius:var(--mg-c-card-border-radius-default);--mg-c-card-color-background:var(--mg-c-card-color-background-default);--mg-c-card-box-shadow:var(--mg-c-card-box-shadow-default);--mg-c-card-max-width:unset;--mg-c-card-min-width:unset}";const F=N;const G=class{constructor(e){t(this,e)}render(){return e("div",{key:"e59cabb09dbc28c148770b57de98f130c4479b75",class:"mg-c-card"},e("slot",{key:"b6e679317bddd23e73443c601992b7b344d6dc72"}))}};G.style=F;const K=".mg-u-visually-hidden.sc-mg-character-left{position:absolute !important;overflow:hidden !important;width:.1rem !important;height:.1rem !important;padding:0 !important;border:0 !important;margin:-0.1rem !important;clip:rect(0.1rem, 0.1rem, 0.1rem, 0.1rem) !important;clip-path:inset(50%) !important;white-space:nowrap !important}*.sc-mg-character-left:focus:not(:focus-visible){outline:none}@media (prefers-reduced-motion){*.sc-mg-character-left{animation:none !important;transition:none !important}}mg-character-left.sc-mg-character-left{display:block}";const J=K;const Y=class{constructor(e){t(this,e);this.characters=""}watchIdentifier(t){if(t!==undefined&&!h(t)){console.error(`<mg-character-left> prop "identifier" value is invalid. Passed value: ${r(t)}.`)}}validateMaxlength(t){if(typeof t!=="number"){throw new Error(`<mg-character-left> prop "maxlength" is required and must be a number. Passed value: ${r(t)}.`)}}componentWillLoad(){this.watchIdentifier(this.identifier);this.validateMaxlength(this.maxlength);this.messages=k(this.element).messages}render(){return e("span",{key:"38d0a5617735f7f451d8f07f7e4840ccc2539d6b",id:this.identifier,"aria-live":"polite"},e("span",{key:"382dc20170c5285afdc0c73a76f5797703ffdf9a","aria-hidden":"true"},this.maxlength-this.characters.length,"/",this.maxlength),e("span",{key:"8f57b75c08c3da4353f194dc174dff4a3f7e06e4",class:"mg-u-visually-hidden"},this.messages.nbCharLeft.replace("{counter}",this.maxlength-this.characters.length)))}get element(){return a(this)}static get watchers(){return{identifier:["watchIdentifier"],maxlength:["validateMaxlength"]}}};Y.style=J;const Z=".mg-u-visually-hidden{position:absolute !important;overflow:hidden !important;width:.1rem !important;height:.1rem !important;padding:0 !important;border:0 !important;margin:-0.1rem !important;clip:rect(0.1rem, 0.1rem, 0.1rem, 0.1rem) !important;clip-path:inset(50%) !important;white-space:nowrap !important}*:focus:not(:focus-visible){outline:none}@media (prefers-reduced-motion){*{animation:none !important;transition:none !important}}/*!\n * @prop --mg-c-details-spacing: Defines the spacing between the summary and the details. Default value: `--mg-b-size-8`.\n */.mg-c-details summary{display:flex;align-items:baseline;cursor:pointer;gap:var(--mg-b-size-16)}.mg-c-details summary::-webkit-details-marker{display:none}.mg-c-details__toggle{display:flex;min-height:calc(var(--mg-b-font-size)*var(--mg-b-line-height));flex-shrink:0;align-items:center;align-self:flex-start;gap:var(--mg-b-size-4)}.mg-c-details__toggle-icon.mg-c-details__toggle-icon--reverse{transform:rotate(180deg)}.mg-c-details__details{margin-top:var(--mg-c-details-spacing)}@media (width < 43.75rem){.mg-c-details__toggle>span{position:absolute !important;overflow:hidden !important;width:.1rem !important;height:.1rem !important;padding:0 !important;border:0 !important;margin:-0.1rem !important;clip:rect(0.1rem, 0.1rem, 0.1rem, 0.1rem) !important;clip-path:inset(50%) !important;white-space:nowrap !important}}";const X=Z;const Q=class{constructor(e){t(this,e);this.expandedChange=n(this,"expanded-change",7);this.hideSummary=false;this.expanded=false;this.handleToggle=()=>{this.expanded=this.details.open}}validateTitles(t){if(!l(t)){throw new Error(`<mg-details> prop "toggleClosed" and "toggleOpened" is required and must be a valid string. Passed value: "toggleClosed='${this.toggleClosed}'" and "toggleOpened='${this.toggleOpened}'".`)}}handleExpanded(t){this.expandedChange.emit(t)}componentWillLoad(){this.validateTitles(this.toggleClosed);this.validateTitles(this.toggleOpened)}render(){return e("details",{key:"88fc8b0e86b70ba906ee85b41c2fcc3cb628a9e3",class:"mg-c-details",onToggle:this.handleToggle,open:this.expanded,ref:t=>this.details=t},e("summary",{key:"54b17765416f8f48df9dbdf845fd17b4512a6f8f"},e("slot",{key:"c6a873a83bb7a83ee056cb0d65d92f41241c4776",name:"summary"}),e("span",{key:"9cd5700ebfdd142c3b23ef603a2ee857c9361259",class:"mg-c-details__toggle"},e("mg-icon",{key:"1d24c1a83a002f2a9cb8d61324ab7f46a189190f",icon:"chevron-up",class:{"mg-c-details__toggle-icon":true,"mg-c-details__toggle-icon--reverse":!this.expanded}}),e("span",{key:"ee3ac65c4dcf801183b786a739f99c00e90192e7",class:{"mg-u-visually-hidden":this.hideSummary}},this.expanded?this.toggleOpened:this.toggleClosed))),e("div",{key:"8c30ce444d7c83d022ac29ef5a2fcccfd9f534ea",class:"mg-c-details__details"},e("slot",{key:"cfefe3169934e4fd5e3c539e8f0482ad6a4e082b",name:"details"})))}static get watchers(){return{toggleClosed:["validateTitles"],toggleOpened:["validateTitles"],expanded:["handleExpanded"]}}};Q.style=X;const tt="/*!\n * @prop --mg-c-divider-color-background: Defines the background color of the divider. The default value is `color-mix(in srgb, var(--mg-b-color-dark), transparent 85%)`.\n * @prop --mg-c-divider-thickness: Defines the thickness of the divider. The default value is `--mg-b-size-border`.\n * @prop --mg-c-divider-spacing-vertical: Defines the vertical spacing of the divider. The default value is `--mg-b-size-40`.\n */.mg-c-divider{width:var(--mg-b-size-120);height:var(--mg-c-divider-thickness);margin:var(--mg-c-divider-spacing-vertical) auto;background-color:var(--mg-c-divider-color-background)}.mg-c-divider.mg-c-divider--full-width{width:100%}";const et=tt;const it=class{constructor(e){t(this,e);this.fullWidth=false}render(){return e("div",{key:"60b987cb329c6db14c2cc4a665e7f32b2696a3ee",class:{"mg-c-divider":true,"mg-c-divider--full-width":this.fullWidth}})}};it.style=et;const at=["form","search","none","presentation"];const nt=["default","hide"];const ot=".mg-u-form-legacy{--mg-c-form-inputs-title-width:calc(100% / 3 - 20px)}.mg-u-is-asterisk{color:var(--mg-b-color-danger)}/*!\n * @prop --mg-c-form-inputs-title-width: Defines the width of the input title. Fallback on `calc(28 * var(--mg-b-size-8))`.\n */.mg-c-form{--mg-c-input-title-width:var(--mg-c-form-inputs-title-width, calc(28 * var(--mg-b-size-8)));--mg-c-input-margin-bottom:var(--mg-b-size-16);--mg-c-input-title-horizontal-space:var(--mg-b-size-32)}.mg-c-form.mg-c-form--all-required{--mg-c-input-title-display:none}.mg-c-form.mg-c-form--label-on-top{--mg-c-input-margin-bottom:var(--mg-b-size-24)}.mg-c-form>p{font-size:var(--mg-b-font-size-small)}";const rt=ot;const st=class{constructor(e){t(this,e);this.formValid=n(this,"form-valid",7);this.formSubmit=n(this,"form-submit",7);this.classAllRequired="mg-c-form--all-required";this.classLabelOnTop="mg-c-form--label-on-top";this.identifier=o("mg-form");this.name=this.identifier;this.readonly=false;this.disabled=false;this.classCollection=new s(["mg-c-form"]);this.setRequiredMessage=()=>{this.requiredMessageText=null;this.classCollection.delete(this.classAllRequired);if(this.requiredMessage==="hide")return;else if(this.requiredMessage==="default"){this.requiredMessageText=this.messages.form.required;return}const t=t=>!(t.disabled||t.readonly);const e=t=>t.nodeName==="MG-INPUT-TOGGLE";if(!this.disabled&&!this.readonly&&this.mgInputs.some((i=>t(i)&&!e(i)))){const i=this.mgInputs.filter(t);const a=i.filter((t=>!e(t)&&t.required));if([a.length,i.length].every((t=>t===1))||a.length>1&&a.length===i.filter((t=>!e(t))).length){this.requiredMessageText=this.getRequiredMessageBasedOnCount(a,"allRequiredSingle","allRequired");this.classCollection.add(this.classAllRequired)}else if(a.length>0){this.requiredMessageText=this.getRequiredMessageBasedOnCount(a,"requiredSingle","required")}}};this.getRequiredMessageBasedOnCount=(t,e,i)=>this.messages.form[t.length===1?e:i];this.checkValidity=()=>{this.setRequiredMessage();this.valid=!this.mgInputs.some((t=>t.invalid));this.invalid=!this.valid;this.formValid.emit(this.valid)};this.handleFormSubmit=t=>{t.preventDefault();this.formSubmit.emit()};this.setMgInputs=()=>{this.mgInputs=Array.from(this.element.querySelectorAll("*")).filter((t=>t.nodeName.startsWith("MG-INPUT")));this.mgInputs.forEach((t=>{if(this.labelOnTop){t.labelOnTop=true}if(this.readonly){t.readonly=true}else if(this.disabled){t.disabled=true}else{t.addEventListener("input-valid",this.checkValidity)}}))}}watchIdentifier(t){if(!h(t)){console.error(`<mg-form> prop "identifier" value is invalid. Passed value: ${r(t)}.`)}}validateRequiredMessage(t){if(t&&!nt.includes(t)){throw new Error(`<mg-form> prop "requiredMessage" must be one of: ${nt.join(", ")}. Passed value: ${r(t)}.`)}}validateAriaRole(t){if(t&&!at.includes(t)){throw new Error(`<mg-form> prop "ariaRole" must be one of: ${at.join(", ")}. Passed value: ${r(t)}.`)}}handlelabelOnTop(t){if(t){this.classCollection.add(this.classLabelOnTop)}else{this.classCollection.delete(this.classLabelOnTop)}}handleAttributeChange(){this.setMgInputs();this.setRequiredMessage()}async displayError(){if(!this.readonly){this.mgInputs.forEach((t=>{var e;(e=t.displayError)===null||e===void 0?void 0:e.call(t)}));this.checkValidity()}}async reset(){if(!this.readonly){await Promise.all(this.mgInputs.map((async t=>{if(t.reset!==undefined){await t.reset()}})))}}componentWillLoad(){this.messages=k(this.element).messages;this.watchIdentifier(this.identifier);this.validateAriaRole(this.ariaRole);this.validateRequiredMessage(this.requiredMessage);this.handlelabelOnTop(this.labelOnTop);this.mgButtons=Array.from(this.element.querySelectorAll("mg-button"));this.mgButtons.forEach((t=>{t.setAttribute("form",this.identifier)}));this.setMgInputs();Promise.all(this.mgInputs.map((async t=>{try{await t.componentOnReady()}catch(t){}}))).then((()=>{this.checkValidity()}))}componentDidLoad(){const t={childList:true,subtree:true};new MutationObserver((e=>{if(e.some((e=>Object.keys(t).includes(e.type)))){this.setMgInputs();this.checkValidity()}})).observe(this.element,t)}render(){return e("form",{key:"e61304b43787fba050014fd223f82e36aa76a133",class:this.classCollection.join(),id:this.identifier,name:this.name,onSubmit:this.handleFormSubmit,role:this.ariaRole},this.requiredMessageText&&e("p",{key:"4ff8cc35336c0943584b717c6c5717fb517b4301",innerHTML:this.requiredMessageText}),e("slot",{key:"214cbf3473b2bb00534b315e4faae164e07a14a4"}),!this.readonly&&!this.disabled&&e("slot",{key:"db314dd5d606da7dc5fce4c8663f4064586b34be",name:"actions"}))}get element(){return a(this)}static get watchers(){return{identifier:["watchIdentifier"],requiredMessage:["validateRequiredMessage","handleAttributeChange"],ariaRole:["validateAriaRole"],labelOnTop:["handlelabelOnTop"],readonly:["handleAttributeChange"],disabled:["handleAttributeChange"]}}};st.style=rt;const lt=["small","medium","large","xlarge","xxlarge"];const ct=["success","warning","danger","info","app"];const ht=["icon","background","full"];const gt={"address-card":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M2 2a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V3a1 1 0 0 0-1-1zm11 3h-3v1h3zm-3 2h3v1h-3zM8 6a2 2 0 1 1-4 0 2 2 0 0 1 4 0m-5 5.4A2.4 2.4 0 0 1 5.4 9h1.2A2.4 2.4 0 0 1 9 11.4a.6.6 0 0 1-.6.6H3.6a.6.6 0 0 1-.6-.6" clip-rule="evenodd"/></svg>',"address-card-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M8 6.5a2 2 0 1 1-4 0 2 2 0 0 1 4 0m-1 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0" clip-rule="evenodd"/><path fill="currentColor" d="M13 5h-3v1h3zm-3 2h3v1h-3z"/><path fill="currentColor" fill-rule="evenodd" d="M5.4 9A2.4 2.4 0 0 0 3 11.4a.6.6 0 0 0 .6.6h4.8a.6.6 0 0 0 .6-.6A2.4 2.4 0 0 0 6.6 9zm0 1a1.4 1.4 0 0 0-1.342 1h3.884A1.4 1.4 0 0 0 6.6 10z" clip-rule="evenodd"/><path fill="currentColor" fill-rule="evenodd" d="M2 2a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V3a1 1 0 0 0-1-1zm12 1H2v10h12z" clip-rule="evenodd"/></svg>',"align-center":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M4 3h8v1H4zm-2 9h12v1H2zm12-6H2v1h12zM4 9h8v1H4z"/></svg>',"align-justify":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M2 3h12v1H2zm0 9h12v1H2zm12-6H2v1h12zM2 9h12v1H2z"/></svg>',"align-left":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M2 3h8v1H2zm0 9h12v1H2zm12-6H2v1h12zM2 9h8v1H2z"/></svg>',"align-right":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M6 3h8v1H6zm-4 9h12v1H2zm12-6H2v1h12zM6 9h8v1H6z"/></svg>',api:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M14.44 11.47h-.02l-.66-.1-.02-.08c-.03-.11-.08-.21-.13-.31l-.04-.07.4-.54v-.02l-.52-.52h-.02l-.54.41-.07-.04c-.1-.05-.2-.09-.31-.13l-.08-.02-.1-.67v-.01h-.73v.02l-.1.66-.08.02c-.11.03-.21.08-.31.13l-.07.04-.55-.41-.52.52v.02l.41.54-.04.07c-.05.1-.09.2-.13.31l-.02.08-.67.1h-.01v.73h.02l.66.1.02.08c.03.1.08.21.13.3l.04.07-.41.55.52.52h.02l.54-.41.07.04c.1.05.2.09.31.13l.08.02.1.67v.01h.73v-.02l.1-.66.08-.02c.11-.03.21-.08.31-.13l.07-.04.55.41.52-.52v-.02l-.4-.54.04-.07c.05-.1.09-.2.13-.31l.02-.08.67-.1h.01v-.73zm-2.46 1.38c-.56 0-1.01-.45-1.01-1.01s.45-1.01 1.01-1.01 1.01.45 1.01 1.01-.45 1.01-1.01 1.01M8.51 5.81c-.11-.09-.27-.14-.5-.14h-.38v1.17h.27c.26 0 .45-.05.58-.15s.19-.25.19-.44-.05-.34-.16-.43zm1.57 5.13-.3-.4c-.1-.1-.09-.27 0-.37l.52-.52c.1-.1.26-.1.37 0l.4.29c.06-.03.13-.06.2-.08l.07-.49c0-.14.12-.25.26-.25h.45a5.44 5.44 0 1 0-10.5-1.99 5.44 5.44 0 0 0 5.44 5.44c.78 0 1.54-.17 2.25-.49v-.6c0-.14.11-.26.26-.26l.49-.07c.02-.07.05-.13.08-.2zm.18-5.96h.84v3.94h-.84zM5.4 8.92l-.29-.94H3.67l-.29.94h-.9l1.39-3.96h1.02l1.4 3.96h-.9zm3.72-1.74c-.26.23-.64.34-1.13.34h-.36v1.4h-.84V4.98h1.26c.48 0 .84.1 1.09.31s.37.51.37.92c0 .42-.13.75-.4.97zM4.4 5.57q-.09.345-.51 1.71h1.03q-.39-1.275-.45-1.44c-.03-.11-.06-.2-.07-.26z"/></svg>',archive:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M3 6v6.96c0 .57.46 1.04 1.04 1.04H12c.55 0 1-.45 1-1V6zm7 2H6V7h4zm3-3H3c-.55 0-1-.45-1-1V3c0-.55.45-1 1-1h10c.55 0 1 .45 1 1v1c0 .55-.45 1-1 1"/></svg>',"archive-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M13 2H3c-.55 0-1 .45-1 1v2c0 .55.45 1 1 1v6.96c0 .57.46 1.04 1.04 1.04H12c.55 0 1-.45 1-1V6c.55 0 1-.45 1-1V3c0-.55-.45-1-1-1m-1 11H4.04S4 12.98 4 12.96V6h8zm1-8H3V3h10zm-3 3H6V7h4z"/></svg>',"arrow-clock":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m3.025 3.82-.002-.001.083-.09.063-.066.009-.01q.132-.15.273-.292a4 4 0 0 1 .215-.196q.136-.124.279-.24.108-.086.22-.166l.024-.018q.143-.105.293-.203a7 7 0 0 1 1.198-.607l.029-.01q.126-.05.257-.094a6 6 0 0 1 .375-.108l.067-.019q.105-.029.21-.053c.146-.032.294-.054.442-.075l.092-.015q.072-.013.146-.022A6.47 6.47 0 0 1 13 3.847V1.996h1v4h-4v-1h2.594a5.48 5.48 0 0 0-5.189-2.467l-.124.019-.077.012q-.188.025-.373.064a3 3 0 0 0-.173.044l-.063.017a6 6 0 0 0-.317.09 6 6 0 0 0-.227.084l-.016.006a6 6 0 0 0-.523.232 5.4 5.4 0 0 0-.736.452l-.028.021q-.092.065-.18.135-.12.098-.235.204l-.05.044q-.068.06-.133.122-.117.117-.226.241l-.013.014A5.496 5.496 0 1 0 13.5 7.996h1A6.5 6.5 0 1 1 3.025 3.82"/><path fill="currentColor" d="M9.795 11.746 7 8.95V4.246h1v4.29l2.5 2.505z"/></svg>',"arrow-down":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M13 10.1h-2.77c-.16 0-.3-.12-.32-.28V.94c0-.17-.14-.3-.31-.29H6.37A.325.325 0 0 0 6 .92v8.89c0 .16-.13.29-.29.29H3c-.17 0-.3.12-.31.29 0 .08.02.16.08.22l5.06 4.58c.13.11.33.11.46 0l5-4.58c.12-.11.12-.29.01-.41h-.01c-.07-.1-.17-.1-.29-.1"/></svg>',"arrow-down-a-z":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m6.53 10.9-1.41 1.41-.71.71-2.12-2.12.71-.71.88.88V3.02h1v8.12l.95-.95.71.71zM12.29 6H10.5l-.36 1H9.08l1.79-5h1.05l1.79 5h-1.06zm-.36-1.02-.53-1.49-.53 1.49zm1.79 5.18V9H9.09v1h3.29l-3.29 2.84V14h4.63v-1h-3.29z"/></svg>',"arrow-down-right":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M12.999 12.292V3.999h1v10h-10v-1h8.292L2 2.707 2.707 2z"/></svg>',"arrow-left":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M5.88 12.93v-2.75c-.01-.17.11-.31.28-.32H15c.17-.01.3-.16.29-.33V6.32A.31.31 0 0 0 15 6H6.17c-.16-.02-.29-.15-.29-.31V2.93a.295.295 0 0 0-.28-.32c-.09 0-.17.03-.23.09L.79 7.76c-.11.13-.11.33 0 .46l4.58 5c.12.12.31.12.43 0 .06-.08.09-.19.08-.29"/></svg>',"arrow-right":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M10.12 2.99v2.75c.01.17-.11.31-.28.32H1c-.17.01-.3.16-.29.33V9.6c0 .17.12.31.29.32h8.83c.16.02.29.15.29.31v2.76c-.01.17.11.31.28.32.09 0 .17-.03.23-.09l4.58-5.06c.11-.13.11-.33 0-.46l-4.58-5a.3.3 0 0 0-.43 0c-.06.08-.09.19-.08.29"/></svg>',"arrow-rotate":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m3.025 3.82-.002-.001c.046-.055.098-.103.146-.156q.137-.155.282-.302c.069-.068.142-.13.215-.195q.136-.124.279-.241.12-.095.244-.184.143-.105.293-.203a7 7 0 0 1 1.198-.607q.142-.055.286-.104a6 6 0 0 1 .375-.108c.092-.025.184-.052.278-.072a6 6 0 0 1 .441-.075c.08-.012.157-.028.238-.037A6.47 6.47 0 0 1 13 3.847V1.996h1v4h-4v-1h2.594a5.48 5.48 0 0 0-5.188-2.467q-.102.014-.202.031-.188.025-.373.064c-.08.017-.157.04-.236.06a6 6 0 0 0-.317.092q-.122.042-.243.089a6 6 0 0 0-.523.232 5.4 5.4 0 0 0-.736.452q-.106.076-.208.156-.12.098-.235.204-.093.08-.183.166c-.083.081-.16.169-.239.255A5.496 5.496 0 1 0 13.5 7.996h1A6.5 6.5 0 1 1 3.025 3.82"/></svg>',"arrow-rotate-backward":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m12.975 3.82.002-.001c-.046-.055-.098-.103-.146-.156-.092-.103-.183-.205-.282-.302-.069-.068-.142-.13-.215-.195q-.135-.124-.279-.241-.12-.095-.244-.184a7 7 0 0 0-.293-.203 7 7 0 0 0-.859-.467 7 7 0 0 0-.339-.14q-.142-.055-.286-.104a6 6 0 0 0-.375-.108c-.092-.025-.184-.052-.278-.072a6 6 0 0 0-.441-.075c-.08-.012-.157-.028-.238-.037A6.47 6.47 0 0 0 3 3.847V1.996H2v4h4v-1H3.406a5.48 5.48 0 0 1 5.189-2.467q.101.014.2.031.19.025.374.064c.08.017.157.04.236.06q.16.042.317.092.122.042.243.089a6 6 0 0 1 .523.232 5.3 5.3 0 0 1 .736.452q.105.076.208.156.12.098.235.204.093.08.183.166c.083.081.16.169.239.255A5.496 5.496 0 1 1 2.5 7.996h-1A6.5 6.5 0 1 0 12.975 3.82"/></svg>',"arrow-up":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M3.06 5.82h2.75c.16 0 .3.12.32.28V15c.01.17.16.3.33.29h3.21c.16.02.31-.1.33-.27V6.11c0-.17.14-.3.31-.29h2.75c.17 0 .31-.12.32-.28 0-.08-.03-.17-.09-.23L8.23.73a.36.36 0 0 0-.46 0l-5 4.58a.29.29 0 0 0 0 .42c.05.1.15.09.29.09"/></svg>',"arrow-up-right":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M12.292 3H3.999V2h10v10h-1V3.707L2.707 14 2 13.29z"/></svg>',"arrow-up-right-square":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M14.33 3v10c0 .73-.6 1.32-1.33 1.33H3c-.73 0-1.32-.6-1.33-1.33V3c0-.73.6-1.32 1.33-1.33h10c.73 0 1.32.6 1.33 1.33m-2.48.46H8.68c-.37 0-.67.29-.68.66v.04c0 .18.07.35.2.47l.91.91-5.53 5.53c-.13.13-.14.33-.01.47h.01l.87.88c.13.13.33.14.47.01h.01l5.53-5.53.91.9c.26.28.7.29.98.02l.02-.02c.12-.13.19-.3.19-.48V4.15c0-.37-.3-.67-.67-.67z"/></svg>',"arrow-up-z-a":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m5.82 5.85-.94-.94v8.11h-1V4.96l-.89.89-.71-.71 1.41-1.41.71-.71.71.71 1.41 1.41-.71.71zM12.29 13H10.5l-.36 1H9.08l1.79-5h1.05l1.79 5h-1.06zm-.36-1.02-.53-1.49-.53 1.49zm1.79-8.82V2H9.09v1h3.29L9.09 5.84V7h4.63V6h-3.29z"/></svg>',"arrows-compare":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M11.705 8.295 9.915 6.5H15v-1H9.915l1.79-1.795L11 3 8 6l3 3zM8 10 5 7l-.705.705L6.085 9.5H1v1h5.085l-1.79 1.795L5 13z"/></svg>',"arrows-right-down":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m12.085 4.499-1.79-1.795.705-.705 3 3-3 3-.705-.705 1.79-1.795H9v-1zM8 6.514h.003v5.572l1.795-1.79.705.705-3 3-3-3 .705-.705 1.795 1.79V5.499H2v-1h6z"/></svg>',"arrows-right-left":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="m11 2 3 3-3 3-.705-.705 1.79-1.795H2v-1h10.085l-1.79-1.795zm-7.085 9.5 1.79 1.795L5 14l-3-3 3-3 .705.705-1.79 1.795H14v1z" clip-rule="evenodd"/></svg>',"arrows-rotate":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M10 4.997h2.61a5.5 5.5 0 0 0-6.175-2.271A5.5 5.5 0 0 0 2.5 7.993h-1a6.49 6.49 0 0 1 4.289-6.112A6.51 6.51 0 0 1 13 3.838V2h1v3.996h-4zM6 10.99H3.39a5.5 5.5 0 0 0 6.175 2.271A5.5 5.5 0 0 0 13.5 7.993h1a6.49 6.49 0 0 1-4.289 6.113A6.51 6.51 0 0 1 3 12.15v1.838H2V9.991h4z"/></svg>',"arrows-rotate-backward":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M6 4.997H3.39a5.5 5.5 0 0 1 6.175-2.271A5.5 5.5 0 0 1 13.5 7.993h1a6.49 6.49 0 0 0-4.289-6.112A6.51 6.51 0 0 0 3 3.838V2H2v3.996h4zm4 5.993h2.61a5.5 5.5 0 0 1-6.175 2.271A5.5 5.5 0 0 1 2.5 7.993h-1a6.49 6.49 0 0 0 4.289 6.113A6.51 6.51 0 0 0 13 12.15v1.838h1V9.991h-4z"/></svg>',ban:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0m-3.126 4.582a6 6 0 0 1-8.456-8.456zm.707-.708L4.127 3.418a6 6 0 0 1 8.456 8.456" clip-rule="evenodd"/></svg>',bell:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M3.97 6a4 4 0 0 1 8 0v2.3l1.507.822c.91.496.558 1.878-.478 1.878H3.002c-1.027 0-1.387-1.362-.494-1.87l1.461-.83zm2.027 6a2 2 0 1 0 4 0z"/></svg>',"bell-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path stroke="currentColor" d="M11.47 8.3v.297l.26.142 1.508.822c.455.248.28.939-.239.939H3.002c-.514 0-.694-.681-.247-.935l1.461-.83.253-.144V6a3.5 3.5 0 0 1 7 0zm-3.473 5.2a1.5 1.5 0 0 1-1.415-1h2.83a1.5 1.5 0 0 1-1.415 1Z"/></svg>',book:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M3 3a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1v-2H1.5a.5.5 0 0 1 0-1H3V9H1.5a.5.5 0 0 1 0-1H3V7H1.5a.5.5 0 0 1 0-1H3zm8 0H9v4h2z" clip-rule="evenodd"/></svg>',"book-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M4 2a1 1 0 0 0-1 1v3H1.5a.5.5 0 0 0 0 1H3v1H1.5a.5.5 0 0 0 0 1H3v1H1.5a.5.5 0 0 0 0 1H3v2a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V3a1 1 0 0 0-1-1zm5 1H4v3h.5a.5.5 0 0 1 0 1H4v1h.5a.5.5 0 0 1 0 1H4v1h.5a.5.5 0 0 1 0 1H4v2h8V3h-1v4H9z" clip-rule="evenodd"/></svg>',briefcase:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M5 4v1H2a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-3V4a1 1 0 0 0-1-1H6a1 1 0 0 0-1 1m5 1V4H6v1z" clip-rule="evenodd"/></svg>',"briefcase-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M5 5V4a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v1h3a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1zm1-1h4v1H6zM2 6v7h12V6z" clip-rule="evenodd"/></svg>',"building-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M4 2h8v12H9v-1a1 1 0 1 0-2 0v1H4zm4 13h4a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1H4a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1zM7 4H5v2h2zm2 0h2v2H9zm2 4H9v2h2zM5 8h2v2H5z" clip-rule="evenodd"/></svg>',calculator:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M2 2a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1zm2 1h8v3H4zm2 5H4v2h2zm1 0h2v2H7zm5 0h-2v5h2zm-8 3h2v2H4zm5 0H7v2h2z" clip-rule="evenodd"/></svg>',"calculator-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M4 3h8v3H4zm2 5H4v2h2zm3 0H7v2h2zm3 0h-2v5h2zm-6 3H4v2h2zm3 0H7v2h2z"/><path fill="currentColor" fill-rule="evenodd" d="M2 2a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1zm1 0h10v12H3z" clip-rule="evenodd"/></svg>',calendar:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M5 1h1v1h4V1h1v1h2a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1h2zm8 5H3v7h10z" clip-rule="evenodd"/></svg>',"calendar-euro":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M12 2.5h1c.6 0 1 .4 1 1v10c0 .6-.4 1-1 1H3c-.6 0-1-.4-1-1v-10c0-.6.4-1 1-1h1v-1h1v1h6v-1h1zm-9 3v8h10v-8zm7.5 6.24-.71-.71c-.35.3-.8.49-1.29.49-.74 0-1.4-.41-1.74-1.02h1.77v-.75H6.51c-.01-.07-.01-.15-.01-.23 0-.09.01-.18.02-.27h2.01V8.5H6.78c.35-.59.99-.98 1.72-.98.49 0 .94.19 1.29.49l.71-.71a2.974 2.974 0 0 0-4.81 1.2H4.5v.75h1.02c-.02.09-.02.18-.02.27 0 .08 0 .16.02.23H4.5v.75h1.17c.4 1.17 1.52 2.02 2.83 2.02.77 0 1.47-.3 2-.78" clip-rule="evenodd"/></svg>',"calendar-euro-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m9.79 11.02.71.71a2.976 2.976 0 0 1-4.83-1.24H4.5v-.75h1.01c-.01-.08-.01-.15-.01-.23 0-.09 0-.18.02-.27H4.5v-.75h1.19a2.974 2.974 0 0 1 4.81-1.2L9.79 8c-.35-.3-.8-.49-1.29-.49-.73 0-1.37.39-1.72.98h1.75v.75H6.52c-.01.09-.02.18-.02.27 0 .08 0 .16.01.23h2.02v.75H6.76c.34.61 1 1.02 1.74 1.02.49 0 .94-.19 1.29-.49M13 3.5v1H3v-1zm-1-2h-1v1H5v-1H4v1H3c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h10c.55 0 1-.45 1-1v-10c0-.55-.45-1-1-1h-1zm-9 12v-8h10v8z"/></svg>',"calendar-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M13 2h-2V1h-1v1H6V1H5v1H3c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h10c.55 0 1-.45 1-1V3c0-.55-.45-1-1-1m0 11H3V6h10zm0-8H3V3h2v1h1V3h4v1h1V3h2z"/></svg>',check:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M6.77 12.113 15 3.883l-.707-.707-8.23 8.23-4.355-4.355L1 7.76l4.355 4.355-.004.004.707.706.004-.004.003.004.708-.707z"/></svg>',"check-circle":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M8 1a7 7 0 1 0 0 14A7 7 0 0 0 8 1m-1 9.795-2.5-2.5.795-.795L7 9.205 10.705 5.5l.798.793z"/></svg>',"check-circle-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m4.5 8.207 2.5 2.5 4.5-4.5-.707-.707L7 9.293 5.207 7.5z"/><path fill="currentColor" fill-rule="evenodd" d="M4.111 2.18a7 7 0 1 1 7.778 11.64A7 7 0 0 1 4.111 2.18m.556 10.809a6 6 0 1 0 6.666-9.978 6 6 0 0 0-6.666 9.978" clip-rule="evenodd"/></svg>',"chevron-down":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m8 11.708 6-6L13.293 5 8 10.293 2.708 5 2 5.708z"/></svg>',"chevron-down-circle":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14M3.706 6 8 10.294 12.294 6l.706.706-5 5-5-5z" clip-rule="evenodd"/></svg>',"chevron-left":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m4 8 6 6 .708-.708L5.415 8l5.293-5.292L10 2z"/></svg>',"chevron-left-circle":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M1 8a7 7 0 1 0 14 0A7 7 0 0 0 1 8m9-4.294L5.706 8 10 12.294 9.294 13l-5-5 5-5z" clip-rule="evenodd"/></svg>',"chevron-right":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m11.708 8-6-6L5 2.708 10.293 8 5 13.293l.708.707z"/></svg>',"chevron-right-circle":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M15 8A7 7 0 1 0 1 8a7 7 0 0 0 14 0m-9 4.294L10.294 8 6 3.706 6.706 3l5 5-5 5z" clip-rule="evenodd"/></svg>',"chevron-up":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m8 4.5-6 6 .708.707L8 5.916l5.293 5.293L14 10.5z"/></svg>',"chevron-up-circle":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M8 1a7 7 0 1 0 0 14A7 7 0 0 0 8 1m4.294 9L8 5.706 3.706 10 3 9.294l5-5 5 5z" clip-rule="evenodd"/></svg>',circle:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M8 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8"/></svg>',clock:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14m-.5-6.795L10.295 11l.705-.705L8.5 7.79V3.5h-1z" clip-rule="evenodd"/></svg>',"clock-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m10.95 10.04-.71.71L7.5 8.01v-4h1V7.6l2.45 2.45zM8 2C4.69 2 2 4.69 2 8s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6m0-1c3.87 0 7 3.13 7 7s-3.13 7-7 7-7-3.13-7-7 3.13-7 7-7"/></svg>',"code-square-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m6.32 10.28.73-.73L5.5 8l1.53-1.53-.73-.73-2.27 2.27 2.28 2.28zm3.37 0L11.97 8 9.69 5.72l-.73.73L10.51 8 8.96 9.55zM3.01 14c-.27 0-.5-.1-.7-.3s-.3-.43-.3-.7V3c0-.27.1-.5.3-.7s.43-.3.7-.3h10c.27 0 .5.1.7.3s.3.43.3.7v10c0 .27-.1.5-.3.7s-.43.3-.7.3H3zm0-1h10V3H3v10z"/></svg>',cog:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M6.062 2a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v1.416c.345.15.67.34.97.56l1.226-.708a1 1 0 0 1 1.366.366l1 1.732a1 1 0 0 1-.366 1.366l-1.227.709a5 5 0 0 1 0 1.119l1.227.708a1 1 0 0 1 .366 1.366l-1 1.732a1 1 0 0 1-1.366.366l-1.227-.708c-.3.22-.624.41-.969.56V14a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1v-1.416a5 5 0 0 1-.969-.56l-1.227.708a1 1 0 0 1-1.366-.366l-1-1.732a1 1 0 0 1 .366-1.366l1.227-.709a5 5 0 0 1 0-1.118l-1.227-.709A1 1 0 0 1 1.5 5.366l1-1.732a1 1 0 0 1 1.366-.366l1.227.709q.45-.334.97-.561zm2 8a2 2 0 1 0 0-4 2 2 0 0 0 0 4" clip-rule="evenodd"/></svg>',"cog-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M5.438 8a2.5 2.5 0 1 1 5 0 2.5 2.5 0 0 1-5 0m2.5-1.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3" clip-rule="evenodd"/><path fill="currentColor" fill-rule="evenodd" d="M10 3.416V2a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1v1.416c-.345.15-.67.34-.969.56l-1.227-.708a1 1 0 0 0-1.366.366l-1 1.732a1 1 0 0 0 .366 1.366l1.227.709a5 5 0 0 0 0 1.118l-1.227.709a1 1 0 0 0-.366 1.366l1 1.732a1 1 0 0 0 1.366.366l1.227-.708a5 5 0 0 0 .969.56V14a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-1.416c.345-.15.67-.34.969-.56l1.227.708a1 1 0 0 0 1.366-.366l1-1.732a1 1 0 0 0-.366-1.366l-1.227-.709a5 5 0 0 0 0-1.118l1.227-.709a1 1 0 0 0 .366-1.366l-1-1.732a1 1 0 0 0-1.366-.366l-1.227.708c-.3-.22-.624-.41-.97-.56M7 4.07l-.6.262q-.414.182-.775.449l-.527.39-1.794-1.037-1 1.732 1.793 1.035-.072.65a4 4 0 0 0 0 .898l.072.65-1.793 1.035 1 1.732 1.794-1.036.527.39q.361.265.775.448l.6.262V14h2v-2.07l.6-.262q.414-.182.774-.449l.527-.39 1.795 1.037 1-1.732-1.793-1.035.072-.65a4 4 0 0 0 0-.898l-.072-.65 1.793-1.035-1-1.732-1.795 1.036-.527-.39q-.36-.265-.774-.448L9 4.07V2H7z" clip-rule="evenodd"/></svg>',comment:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M7.5 2A5.5 5.5 0 0 0 4 11.743V14l3.5-1h1a5.5 5.5 0 1 0 0-11zM5 6h6v1H5zm3 2H5v1h3z" clip-rule="evenodd"/></svg>',"comment-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M5 6h6v1H5zm0 2h3v1H5z"/><path fill="currentColor" fill-rule="evenodd" d="m4 14 3.5-1h1a5.5 5.5 0 1 0 0-11h-1A5.5 5.5 0 0 0 4 11.743zm1-2.728-.363-.3A4.5 4.5 0 0 1 7.5 3h1a4.5 4.5 0 1 1 0 9H7.36L5 12.674z" clip-rule="evenodd"/></svg>',"comment-sms":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M8 2.67c-3.37 0-6.1 2.21-6.1 4.95.02 1.18.51 2.3 1.36 3.11-.26.85-.71 1.62-1.3 2.28a.2.2 0 0 0-.04.21c.03.07.1.11.17.11 1.22-.02 2.4-.45 3.34-1.22.82.31 1.68.46 2.56.46 3.37 0 6.1-2.22 6.1-4.95S11.37 2.67 8 2.67M4.95 8.39a.76.76 0 1 1 0-1.52.76.76 0 0 1 0 1.52m3.05 0a.76.76 0 1 1 0-1.52.76.76 0 0 1 0 1.52m3.05 0a.76.76 0 1 1-.02-1.52c.42 0 .77.33.77.75v.01c0 .42-.34.76-.76.76"/></svg>',conversation:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M1.01 6.51c0-1.93 2.23-3.5 4.99-3.5s4.99 1.57 4.99 3.5-2.23 3.5-4.99 3.5c-.36 0-.71-.03-1.05-.08l-2.26 1.05c-.06.03-.11.03-.17.03-.27 0-.5-.21-.5-.5V8.6c-.62-.58-1.01-1.3-1.01-2.09m10.48-.01c0-.5-.13-.97-.36-1.41h.01c2.22.36 3.88 1.75 3.88 3.41 0 .79-.39 1.5-1.02 2.09v1.91a.5.5 0 0 1-.67.47l-2.26-1.05c-.34.05-.69.08-1.05.08-1.69 0-3.19-.59-4.09-1.5h.12c3.03 0 5.44-1.81 5.44-4" clip-rule="evenodd"/></svg>',"conversation-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M10 6.5C10 5.14 8.17 4 6 4l-.01.01c-2.17 0-4 1.14-4 2.5 0 .59.38 1.06.7 1.36l.32.3v1.55l1.51-.7.27-.13.3.04c.31.05.62.07.91.07 2.17 0 4-1.14 4-2.5m-9.01.01c0-1.929 2.237-3.498 4.995-3.5 2.758.002 4.995 1.571 4.995 3.5s-2.24 3.5-5 3.5c-.36 0-.71-.03-1.05-.08l-2.26 1.05c-.06.03-.11.03-.17.03-.26 0-.5-.21-.5-.5V8.6C1.38 8.02.99 7.3.99 6.51m4.995-3.5h.005-.01zm8.005 7.58c.62-.58 1.01-1.3 1.01-2.09q0-.18-.03-.36c-.01-.11-.04-.22-.07-.33a2.3 2.3 0 0 0-.17-.45 3.55 3.55 0 0 0-1.1-1.26c-.1-.07-.19-.13-.3-.2a5 5 0 0 0-.65-.35c-.23-.1-.48-.19-.73-.27a4 4 0 0 1-.19-.06c.14.36.22.74.23 1.13C13.18 6.78 14 7.59 14 8.5c0 .59-.38 1.07-.7 1.36l-.31.3-.01.43v1.12l-1.5-.7-.28-.12-.29.04c-.31.05-.62.07-.91.07-.67 0-1.3-.1-1.86-.29-.51.15-1.06.24-1.64.27.06.05.12.09.18.13l.42.24c.36.18.76.33 1.18.43.15.04.3.08.46.1.02.01.03.01.05.01.17.04.34.07.52.07.22.03.46.04.69.04.36 0 .71-.03 1.05-.08l2.26 1.05q.09.03.18.03c.26 0 .49-.21.5-.5z" clip-rule="evenodd"/></svg>',copy:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M4 2h6V1H4a1 1 0 0 0-1 1v9h1z"/><path fill="currentColor" d="M5 4a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1z"/></svg>',"copy-file":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M4 2h6V1H4a1 1 0 0 0-1 1v9h1z"/><path fill="currentColor" d="M6 3h3v4h4v7a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"/><path fill="currentColor" d="m13 6-3-3v3z"/></svg>',"copy-file-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="m10 3 3 3v8a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1zm0 1.414V6h1.586zM12 7H9V4H6v10h6z" clip-rule="evenodd"/><path fill="currentColor" d="M4 2h6V1H4a1 1 0 0 0-1 1v9h1z"/></svg>',"copy-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M10 2H4v9H3V2a1 1 0 0 1 1-1h6z"/><path fill="currentColor" fill-rule="evenodd" d="M5 4a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1zm1 0h6v10H6z" clip-rule="evenodd"/></svg>',"credit-card":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M3 9h3v2H3z"/><path fill="currentColor" fill-rule="evenodd" d="M2 13a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1zm0-9h12v1H2zm12 3v5H2V7z" clip-rule="evenodd"/></svg>',cross:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M2 2.707 2.707 2l11.29 11.289-.708.707z"/><path fill="currentColor" d="M2.707 14 2 13.293 13.293 2l.707.708z"/></svg>',"cross-circle":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M8 1C4.1 1 1 4.1 1 8s3.1 7 7 7 7-3.1 7-7-3.1-7-7-7m2.7 10.5L8 8.8l-2.7 2.7-.8-.8L7.2 8 4.5 5.3l.8-.8L8 7.2l2.7-2.7.8.8L8.8 8l2.7 2.7z"/></svg>',"cross-circle-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M1 8c0-3.9 3.1-7 7-7s7 3.1 7 7-3.1 7-7 7-7-3.1-7-7m1 0c0 3.3 2.7 6 6 6s6-2.7 6-6-2.7-6-6-6-6 2.7-6 6m6 .8 2.7 2.7.8-.8L8.8 8l2.7-2.7-.8-.8L8 7.2 5.3 4.5l-.8.8L7.2 8l-2.7 2.7.8.8z" clip-rule="evenodd"/></svg>',dashboard:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M2 2h6v7H2zm0 8h6v4H2zm7-8h5v4H9zm0 5h5v7H9z"/></svg>',"dashboard-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M8 2H2v7h6zM7 3H3v5h4zm1 7H2v4h6zm-1 1H3v2h4zm2-9v4h5V2zm4 1h-3v2h3zm1 4H9v7h5zm-1 1h-3v5h3z" clip-rule="evenodd"/></svg>',download:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M12.295 6.295 13 7l-5 5-5-5 .705-.705 3.795 3.79V1h1v9.085zM13 14v-2h1v2a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1v-2h1v2z" clip-rule="evenodd"/></svg>',earth:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14m-1.224-2.553-.63 1.261A6.003 6.003 0 0 1 4.501 3.126l1.6.4a1 1 0 0 1 .742 1.14L6.41 7.19a1 1 0 0 1-.986.83H4.47a1 1 0 0 0-.77.362l-.185.223A1 1 0 0 0 3.5 9.862l.273.348a1 1 0 0 0 .59.362l1.658.332a1 1 0 0 1 .699.533l.057.116a1 1 0 0 1 0 .894m3.543-9.983V4.53a1 1 0 0 0 1 1h1.234a1 1 0 0 0 .664-.252l.09-.08a6.02 6.02 0 0 0-2.988-2.733m3.612 4.622-.012-.075h-3.05a1 1 0 0 0-.884.535l-.773 1.469a1 1 0 0 0-.115.465v.964a1 1 0 0 0 .408.806l.353.259a1 1 0 0 1 .408.806v1.242a6 6 0 0 0 3.665-6.47" clip-rule="evenodd"/></svg>',"earth-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14m0-1a6 6 0 0 0 1.766-.264v-1.421a.5.5 0 0 0-.204-.403l-.353-.26a1.5 1.5 0 0 1-.612-1.208V9.48c0-.243.06-.483.173-.698l.772-1.469a1.5 1.5 0 0 1 1.328-.802h2.944a6 6 0 0 0-.284-.844 1.5 1.5 0 0 1-.977.362h-1.235a1.5 1.5 0 0 1-1.5-1.5V2.28A6 6 0 0 0 8 2a6 6 0 0 0-2.918.756l1.14.286A1.5 1.5 0 0 1 7.336 4.75l-.433 2.525a1.5 1.5 0 0 1-1.479 1.247H4.47a.5.5 0 0 0-.385.18l-.185.223a.5.5 0 0 0-.008.628l.273.348a.5.5 0 0 0 .295.181l1.658.332a1.5 1.5 0 0 1 1.048.8l.058.115a1.5 1.5 0 0 1 0 1.342l-.587 1.174A6 6 0 0 0 8 14m6-6q0-.247-.02-.489h-3.11a.5.5 0 0 0-.443.268l-.772 1.468a.5.5 0 0 0-.058.233v.964a.5.5 0 0 0 .204.403l.353.259a1.5 1.5 0 0 1 .612 1.209v1.01A6 6 0 0 0 14 8m-8.402 5.5h.093l.638-1.276a.5.5 0 0 0 0-.448l-.057-.115a.5.5 0 0 0-.35-.267l-1.658-.331a1.5 1.5 0 0 1-.885-.545l-.273-.347a1.5 1.5 0 0 1 .025-1.884l.184-.223a1.5 1.5 0 0 1 1.155-.542h.954a.5.5 0 0 0 .493-.416l.433-2.525a.5.5 0 0 0-.37-.57l-1.95-.487-.046.018A6.002 6.002 0 0 0 5.598 13.5m7.287-8.597.164-.146a6 6 0 0 0-1.458-1.564 6 6 0 0 0-.772-.457V4.53a.5.5 0 0 0 .5.5h1.234a.5.5 0 0 0 .332-.126" clip-rule="evenodd"/></svg>',ellipsis:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M3 8a1 1 0 1 1 2 0 1 1 0 0 1-2 0m4 0a1 1 0 1 1 2 0 1 1 0 0 1-2 0m4 0a1 1 0 1 1 2 0 1 1 0 0 1-2 0"/></svg>',"ellipsis-vertical":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M8 3a1 1 0 1 1 0 2 1 1 0 0 1 0-2m0 4a1 1 0 1 1 0 2 1 1 0 0 1 0-2m0 4a1 1 0 1 1 0 2 1 1 0 0 1 0-2"/></svg>',euro:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m12.08 11.02 1.42 1.42a5.95 5.95 0 0 1-4 1.56c-2.6 0-4.8-1.64-5.62-3.94H1.5v-1.5h2.04C3.5 8.38 3.5 8.18 3.5 8c0-.16 0-.34.04-.5H1.5V6h2.36c.8-2.34 3.02-4 5.64-4 1.54 0 2.94.6 4 1.56l-1.42 1.42c-.7-.6-1.6-.98-2.58-.98-1.48 0-2.76.8-3.46 2h3.52v1.5H5.54c-.02.16-.04.32-.04.5 0 .2.02.38.04.56h4.02v1.5H6.08C6.78 11.22 8.06 12 9.5 12c.98 0 1.88-.38 2.58-.98"/></svg>',"euro-circle":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><g clip-path="url(#a)"><path fill="currentColor" d="M8 .67C3.95.67.67 3.95.67 8S3.95 15.33 8 15.33s7.33-3.28 7.33-7.33S12.05.67 8 .67m2.27 11.4c-.38.09-.76.14-1.15.14a4.04 4.04 0 0 1-3.99-2.92h-.58c-.12 0-.23-.09-.23-.22v-.54c0-.12.11-.22.23-.22h.41a5 5 0 0 1 0-.8h-.41c-.12 0-.23-.09-.23-.22v-.58c0-.12.1-.22.23-.22h.63c.6-1.65 2.18-2.74 3.94-2.71.34 0 .68.03 1.02.1.12.03.19.16.16.28l-.23.84c-.03.12-.15.19-.27.17-.24-.05-.48-.08-.73-.08A2.42 2.42 0 0 0 6.81 6.5h2.71c.12.03.2.15.17.27l-.13.58c-.02.1-.11.18-.22.18H6.52c-.03.27-.03.53 0 .8h2.63c.12.03.2.15.17.27l-.11.52c-.03.1-.12.17-.22.18H6.8c.36.96 1.28 1.6 2.31 1.61.3 0 .59-.04.88-.1.12-.02.24.06.27.18l.17.84c.02.12-.05.24-.17.27v-.03z"/></g><defs><clipPath id="a"><path fill="currentColor" d="M0 0h16v16H0z"/></clipPath></defs></svg>',"exclamation-circle":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M1 8a7 7 0 1 1 14 0A7 7 0 0 1 1 8m7.75-4v5h-1.5V4zm0 8v-1.5h-1.5V12z" clip-rule="evenodd"/></svg>',"exclamation-circle-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M8.75 4v5h-1.5V4zm0 8v-1.5h-1.5V12z"/><path fill="currentColor" fill-rule="evenodd" d="M8 1a7 7 0 1 0 0 14A7 7 0 0 0 8 1M2 8a6 6 0 1 0 12 0A6 6 0 0 0 2 8" clip-rule="evenodd"/></svg>',"exclamation-stamp":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m15 8-1.55-1.86.22-2.46-2.3-.55L10.17 1 8 1.98 5.84 1 4.63 3.13l-2.29.54.22 2.46L1.01 8l1.55 1.86-.22 2.47 2.3.55 1.2 2.13L8 14.03l2.17.98 1.2-2.13 2.3-.55-.22-2.46L15 8.01zm-6.36 3.35H7.36v-1.34h1.28zm0-2.67H7.36V4.67h1.28z"/></svg>',"exclamation-triangle":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="m8 2 7 12H1zm-.75 4.5h1.5V10h-1.5zm1.5 6V11h-1.5v1.5z" clip-rule="evenodd"/></svg>',"exclamation-triangle-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M8.75 6.5V10h-1.5V6.5zm0 6V11h-1.5v1.5z"/><path fill="currentColor" fill-rule="evenodd" d="M8 2 1 14h14zm0 1.985L2.741 13h10.518z" clip-rule="evenodd"/></svg>',eye:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M8 10a2 2 0 1 0 0-4 2 2 0 0 0 0 4"/><path fill="currentColor" fill-rule="evenodd" d="M15 8s-3.134 5-7 5-7-5-7-5 3.134-5 7-5 7 5 7 5m-7 3a3 3 0 1 0 0-6 3 3 0 0 0 0 6" clip-rule="evenodd"/></svg>',"eye-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M8 11a3 3 0 1 0 0-6 3 3 0 0 0 0 6m0-1a2 2 0 1 0 0-4 2 2 0 0 0 0 4" clip-rule="evenodd"/><path fill="currentColor" fill-rule="evenodd" d="M1 8s3.134 5 7 5 7-5 7-5-3.134-5-7-5-7 5-7 5m1.215 0 .133.178a15 15 0 0 0 1.405 1.61C4.974 10.994 6.478 12 8 12s3.026-1.006 4.247-2.212A15 15 0 0 0 13.785 8l-.133-.178a15 15 0 0 0-1.405-1.61C11.026 5.006 9.522 4 8 4S4.974 5.006 3.753 6.212A15 15 0 0 0 2.215 8" clip-rule="evenodd"/></svg>',"eye-slash":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="m1 1.7.7-.7L15 14.302l-.7.7-3.084-3.085c-.963.63-2.057 1.08-3.216 1.08-3.866 0-7-5-7-5S2.174 6.124 3.97 4.67zm4.556 4.557A3 3 0 0 0 9.74 10.44l-.722-.722a2 2 0 0 1-2.74-2.74z" clip-rule="evenodd"/><path fill="currentColor" d="m5.67 3.572 1.532 1.532a3.003 3.003 0 0 1 3.69 3.691l1.877 1.877C14.142 9.366 15 7.997 15 7.997s-3.134-5-7-5c-.817 0-1.6.223-2.33.575"/><path fill="currentColor" d="M9.998 7.9 8.097 6a2 2 0 0 1 1.9 1.901"/></svg>',"eye-slash-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="m1 1.7.7-.7L15 14.302l-.7.7-3.084-3.085c-.963.63-2.057 1.08-3.216 1.08-3.866 0-7-5-7-5S2.174 6.124 3.97 4.67zm3.682 3.683c-.324.256-.635.535-.93.826a15 15 0 0 0-1.537 1.788l.133.178c.334.442.815 1.028 1.405 1.61C4.974 10.99 6.478 11.997 8 11.997c.852 0 1.698-.315 2.492-.804l-.752-.752a3 3 0 0 1-4.184-4.184zm1.596 1.596a2 2 0 0 0 2.74 2.74z" clip-rule="evenodd"/><path fill="currentColor" d="m5.67 3.572.757.757A4.2 4.2 0 0 1 8 3.997c1.522 0 3.026 1.006 4.247 2.212a15 15 0 0 1 1.538 1.788q-.061.085-.133.178a15 15 0 0 1-1.531 1.733l-.06.057.708.707C14.142 9.366 15 7.997 15 7.997s-3.134-5-7-5c-.817 0-1.6.223-2.33.575"/><path fill="currentColor" d="m8.097 6-.895-.896a3.003 3.003 0 0 1 3.69 3.691L9.999 7.9A2 2 0 0 0 8.097 6"/></svg>',fax:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M13 14H6V2h7v3a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1M7 3h5v2H7zm0 4h5v1H7zm1 2H7v1h1zm-1 2h1v1H7zm3-2H9v1h1zm-1 2h1v1H9zm3-2h-1v1h1zm-1 2h1v1h-1z" clip-rule="evenodd"/><path fill="currentColor" d="M2 5a1 1 0 0 1 1-1h1a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1z"/></svg>',"fax-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M12 3H7v2h5zM6 3v2a1 1 0 0 0-1-1H3a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1V2H6zm6 3h1v7H6V6zM3 5h2v8H3zm9 2H7v1h5zM7 9h1v1H7zm1 2H7v1h1zm1-2h1v1H9zm1 2H9v1h1zm1-2h1v1h-1zm1 2h-1v1h1z" clip-rule="evenodd"/></svg>',file:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M9 5V1H4a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V5zm1-1V1l3 3z" clip-rule="evenodd"/></svg>',"file-cog":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M9 10.06c-.03.53-.47.94-1 .94-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1zm.55-4.81h3.76v9.4a.68.68 0 0 1-.66.66h-9.3c-.37 0-.67-.31-.66-.68V1.33c.01-.36.3-.65.66-.66h5.54v3.89c-.01.37.28.68.65.69zM10 8l-.51.29c-.21-.18-.46-.32-.72-.41v-.57c0-.06-.05-.12-.11-.14-.43-.09-.87-.09-1.3 0a.14.14 0 0 0-.12.14v.59q-.405.135-.72.42L6 8a.135.135 0 0 0-.17 0c-.3.32-.52.71-.65 1.13-.02.06 0 .13.06.16l.51.29q-.075.42 0 .84l-.51.29c-.05.03-.08.1-.06.16.13.42.35.81.65 1.13.05.04.12.04.17 0l.51-.29c.22.18.46.32.73.41v.59c0 .07.04.13.11.14.43.09.87.09 1.3 0 .07-.01.12-.07.11-.14v-.51c.27-.09.51-.23.73-.41l.51.29c.05.04.12.04.17 0 .3-.32.52-.71.65-1.13.02-.06 0-.13-.06-.16l-.5-.3c.05-.27.05-.56 0-.83l.5-.3c.06-.03.09-.1.07-.16a2.9 2.9 0 0 0-.65-1.13A.16.16 0 0 0 10 8m3.12-4.33L10.41.87a.63.63 0 0 0-.47-.2h-.17v3.66h3.54v-.17c0-.18-.06-.36-.19-.49"/></svg>',"file-download":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="m10.41.87 2.71 2.8a.7.7 0 0 1 .19.49v.17H9.77V.67h.17a.63.63 0 0 1 .47.2m2.9 4.38v9.42a.67.67 0 0 1-.66.66h-9.3a.67.67 0 0 1-.66-.68V1.33a.67.67 0 0 1 .66-.66h5.54v3.9a.67.67 0 0 0 .66.68zm-5.45 7.69 2.54-2.53a.19.19 0 0 0 .01-.27.16.16 0 0 0-.14-.06H8.93a.2.2 0 0 1-.2-.2v-2.6a.18.18 0 0 0-.18-.19H6.92a.19.19 0 0 0-.19.18v2.61a.2.2 0 0 1-.2.2H5.19a.18.18 0 0 0-.19.18.2.2 0 0 0 .06.15l2.54 2.53a.18.18 0 0 0 .26 0" clip-rule="evenodd"/></svg>',"file-excel":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M9 5V1H4a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V5zm-.018 7h1.335L8.776 9.48l1.5-2.48H9.02l-.795 1.485a5 5 0 0 0-.157.436h-.014a2.6 2.6 0 0 0-.15-.422L7.19 7H5.82l1.457 2.5L5.683 12h1.342l.865-1.614q.09-.234.115-.349h.014q.053.244.101.335z" clip-rule="evenodd"/><path fill="currentColor" d="M10 4V1l3 3z"/></svg>',"file-excel-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M8.982 12h1.335L8.776 9.48l1.5-2.48H9.02l-.795 1.485a5 5 0 0 0-.157.436h-.014a2.6 2.6 0 0 0-.15-.422L7.19 7H5.82l1.457 2.5L5.683 12h1.342l.865-1.614q.09-.234.115-.349h.014q.053.244.101.335z"/><path fill="currentColor" fill-rule="evenodd" d="M4 1a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V4l-3-3zm6 3V2.537L11.254 4zm2 1v9H4V2h5v3z" clip-rule="evenodd"/></svg>',"file-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="m10 1 3 3v10a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zm0 1.415V4h1.585zM12 5H9V2H4v12h8z" clip-rule="evenodd"/></svg>',"file-pdf":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M6.464 11.274a4 4 0 0 0-.393.207c-.223.137-.37.27-.444.387-.072.11-.073.19-.03.273l.019.034.027-.01c.103-.042.268-.177.48-.433q.18-.22.34-.458m1.243-1.007q.378-.09.764-.146a9 9 0 0 1-.386-.65 16 16 0 0 1-.378.796m1.873.363a3 3 0 0 0 .341.314c.164.123.28.165.344.168a.1.1 0 0 0 .053-.012.23.23 0 0 0 .07-.094.3.3 0 0 0 .045-.152.07.07 0 0 0-.02-.047c-.039-.047-.15-.116-.391-.159a3 3 0 0 0-.463-.04zM8.051 7.952q.096-.308.151-.626.035-.213.029-.352a.5.5 0 0 0-.024-.15.4.4 0 0 0-.11.03c-.066.027-.12.08-.148.215l-.01.057q-.029.213.044.565.027.126.068.26"/><path fill="currentColor" fill-rule="evenodd" d="M9 1v4h4v9a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zM5.42 12.713a.6.6 0 0 1-.332-.318c-.147-.294-.098-.588.06-.834.15-.233.4-.43.68-.596a6 6 0 0 1 1.122-.489q.454-.817.804-1.686a5.6 5.6 0 0 1-.326-.98c-.065-.303-.09-.603-.034-.86.056-.268.207-.509.492-.623l.055-.02a.75.75 0 0 1 .4-.038.53.53 0 0 1 .362.276c.066.124.09.27.096.407.005.142-.01.3-.036.465-.063.386-.204.859-.394 1.358q.316.672.742 1.277a4.5 4.5 0 0 1 1.01.038c.276.049.556.147.727.352a.64.64 0 0 1 .151.392.9.9 0 0 1-.104.426.8.8 0 0 1-.312.341.65.65 0 0 1-.342.078c-.25-.01-.495-.148-.706-.315l-.095-.081a4.3 4.3 0 0 1-.595-.638 9 9 0 0 0-1.512.307 8.6 8.6 0 0 1-.773 1.143c-.22.265-.46.496-.701.596a.6.6 0 0 1-.44.022" clip-rule="evenodd"/><path fill="currentColor" d="M10 1v3h3z"/></svg>',"file-pdf-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M5.42 12.713a.6.6 0 0 1-.332-.318c-.147-.294-.098-.588.06-.834.15-.233.4-.43.68-.596a6 6 0 0 1 1.122-.489q.454-.817.804-1.686a5.5 5.5 0 0 1-.326-.98c-.065-.303-.09-.603-.034-.86.056-.268.207-.509.492-.623.145-.058.303-.09.455-.058a.53.53 0 0 1 .362.276c.066.124.09.27.096.407.005.142-.01.3-.036.465-.063.386-.204.859-.394 1.358q.316.672.742 1.277a4.4 4.4 0 0 1 1.01.038c.276.049.556.147.727.352a.64.64 0 0 1 .151.392.9.9 0 0 1-.104.426.8.8 0 0 1-.268.315.65.65 0 0 1-.386.104c-.25-.01-.495-.148-.706-.315a4.3 4.3 0 0 1-.69-.72 9 9 0 0 0-1.512.308 8.6 8.6 0 0 1-.773 1.143c-.22.265-.46.496-.701.596a.6.6 0 0 1-.44.022m1.044-1.44a4 4 0 0 0-.348.18c-.248.148-.41.29-.49.415-.07.11-.072.19-.03.273l.02.034.027-.01c.103-.042.268-.177.48-.433q.18-.22.34-.458m1.242-1.006q.378-.09.764-.146a9 9 0 0 1-.386-.65 16 16 0 0 1-.378.796m2.18.65a3 3 0 0 1-.328-.309q.233.002.463.04c.24.043.352.112.392.159q.019.02.02.047a.3.3 0 0 1-.045.152.23.23 0 0 1-.071.094.1.1 0 0 1-.053.012c-.07-.003-.196-.05-.377-.194m-1.684-3.59q-.056.316-.15.625a3 3 0 0 1-.069-.26c-.057-.268-.065-.478-.034-.623.028-.134.082-.188.148-.214a.4.4 0 0 1 .11-.03.5.5 0 0 1 .024.15q.006.138-.029.351" clip-rule="evenodd"/><path fill="currentColor" fill-rule="evenodd" d="M3 2a1 1 0 0 1 1-1h6l3 3v10a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1zm7 .537V4h1.254zM12 14V5H9V2H4v12z" clip-rule="evenodd"/></svg>',"file-text":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M9 5V1H4a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V5zm2 2H5v1h6zM5 9h6v1H5zm6 2H5v1h6z" clip-rule="evenodd"/><path fill="currentColor" d="M10 4V1l3 3z"/></svg>',"file-text-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M11 7H5v1h6zM5 9h6v1H5zm6 2H5v1h6z"/><path fill="currentColor" fill-rule="evenodd" d="m13 4-3-3H4a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1zm-3 0V2.415L11.585 4zM9 5h3v9H4V2h5z" clip-rule="evenodd"/></svg>',"file-upload":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M13.12 3.67 10.41.87a.63.63 0 0 0-.47-.2h-.17v3.66h3.54v-.17c0-.18-.06-.36-.19-.49m.19 11V5.25H9.55c-.37 0-.67-.31-.66-.68V.67H3.35a.68.68 0 0 0-.66.66v13.32c0 .37.29.67.66.68h9.3c.36-.01.65-.3.66-.66m-3-4.64H8.93c-.1 0-.19.07-.2.18v2.61c0 .1-.09.18-.19.18H6.91a.18.18 0 0 1-.18-.18V10.2c0-.1-.07-.19-.18-.2H5.19s-.09.01-.14 0a.19.19 0 0 1 0-.27L7.6 7.14c.07-.07.19-.07.26 0l2.54 2.54s.06.09.06.14c0 .1-.09.18-.19.18z"/></svg>',"file-word":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M9 5V1H4a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V5zM5 7l1.091 5h1.002L8 8.262 8.91 12h.98L11 7h-.93l-.701 3.492L8.568 7H7.47l-.836 3.435L5.944 7z" clip-rule="evenodd"/><path fill="currentColor" d="M10 4V1l3 3z"/></svg>',"file-word-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m5 7 1.091 5h1.002L8 8.262 8.91 12h.98L11 7h-.93l-.701 3.492L8.568 7H7.47l-.836 3.435L5.944 7z"/><path fill="currentColor" fill-rule="evenodd" d="M4 1a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V4l-3-3zm6 3V2.537L11.254 4zm2 1v9H4V2h5v3z" clip-rule="evenodd"/></svg>',filter:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M3 2a1 1 0 0 0-1 1v1.586a1 1 0 0 0 .293.707L6 9v2.5a1 1 0 0 0 .4.8l2 1.5A1 1 0 0 0 10 13V9l3.707-3.707A1 1 0 0 0 14 4.586V3a1 1 0 0 0-1-1z" clip-rule="evenodd"/></svg>',"filter-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M3 3h10v1.586l-4 4V13l-2-1.5V8.586l-4-4zm3 7V9L2.293 5.293A1 1 0 0 1 2 4.586V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v1.586a1 1 0 0 1-.293.707L10 9v4a1 1 0 0 1-1.6.8l-2-1.5a1 1 0 0 1-.4-.8z" clip-rule="evenodd"/></svg>',"floppy-disk":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M2 3a1 1 0 0 1 1-1h7.586a1 1 0 0 1 .707.293l2.414 2.414a1 1 0 0 1 .293.707V13a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1zm2 0h6v3H4zm4 5a2 2 0 1 0 0 4 2 2 0 0 0 0-4" clip-rule="evenodd"/></svg>',"floppy-disk-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M6 10a2 2 0 1 1 4 0 2 2 0 0 1-4 0m2 1a1 1 0 1 1 0-2 1 1 0 0 1 0 2" clip-rule="evenodd"/><path fill="currentColor" fill-rule="evenodd" d="M10.586 2a1 1 0 0 1 .707.293l2.414 2.414a1 1 0 0 1 .293.707V13a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1zM3 3v10h10V5.414L10.586 3H10v3H4V3zm2 0h4v2H5z" clip-rule="evenodd"/></svg>',folder:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M7 4h7c.55 0 1 .45 1 1v7c0 .55-.45 1-1 1H2c-.55 0-1-.45-1-1V4c0-.55.45-1 1-1h4z"/></svg>',"folder-check":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M14 4H7L6 3H2c-.55 0-1 .45-1 1v8c0 .55.45 1 1 1h12c.55 0 1-.45 1-1V5c0-.55-.45-1-1-1M5.705 8.185 7 9.48l3.295-3.295.705.705-4 4-2-2z" clip-rule="evenodd"/></svg>',"folder-check-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M5.705 8.185 7 9.48l3.295-3.295.705.705-4 4-2-2z"/><path fill="currentColor" fill-rule="evenodd" d="m6 3 1 1.001h7c.55 0 1 .45 1 1.001v6.997c0 .55-.45 1.001-1 1.001H2c-.55 0-1-.45-1-1.001V4.001C1 3.451 1.45 3 2 3zm-.41 1.001H2v8.008h12V5.002H6.59z" clip-rule="evenodd"/></svg>',"folder-lines":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M14 4H7L6 3H2c-.55 0-1 .45-1 1v8c0 .55.45 1 1 1h12c.55 0 1-.45 1-1V5c0-.55-.45-1-1-1m-5 6H4V9h5zm3-2H4V7h8z"/></svg>',"folder-lines-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M12 8.005H4V7.004h8zM9 9.006H4v1.001h5zM5.59 4.001H2v8.008h12V5.002H6.59l-.29-.29zM6 3l1 1.001h7c.55 0 1 .45 1 1.001v6.997c0 .55-.45 1.001-1 1.001H2c-.55 0-1-.45-1-1.001V4.001C1 3.451 1.45 3 2 3z"/></svg>',"folder-link":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M14 4.44H8.46L6.62 2.67H2C1.27 2.67.68 3.27.67 4v8c0 .73.6 1.32 1.33 1.33h12c.73 0 1.32-.6 1.33-1.33V5.78c0-.73-.6-1.33-1.33-1.34m-6.82 6.88H5.65c-1.34 0-2.42-1.08-2.42-2.42s1.08-2.42 2.42-2.42h.84c.14 0 .25.11.25.25 0 .06-.02.13-.06.17-.2.21-.36.45-.49.71-.04.07-.11.13-.19.14h-.33c-.62-.15-1.24.22-1.39.84s.22 1.24.84 1.39c.15.04.31.04.47.02h1.58c.62 0 1.12-.48 1.15-1.1v-.22c-.02-.08 0-.16.06-.22.12-.13.29-.2.47-.2h.45c.12 0 .23.09.25.21.02.14.02.29 0 .43 0 1.32-1.05 2.39-2.37 2.42m3.17 0h-.84c-.06 0-.13-.02-.17-.07-.1-.1-.1-.25 0-.35.2-.21.36-.45.49-.71.02-.09.08-.16.17-.19h.36c.63.04 1.18-.43 1.23-1.07.04-.63-.43-1.18-1.07-1.23H8.83c-.64 0-1.15.51-1.15 1.15v.25c.02.08 0 .16-.06.22-.12.13-.29.21-.47.21H6.7c-.13 0-.24-.09-.26-.22-.01-.14-.01-.27 0-.41a2.41 2.41 0 0 1 2.38-2.43h1.52c1.34 0 2.42 1.07 2.43 2.41 0 1.34-1.09 2.42-2.42 2.43z"/></svg>',"folder-link-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m6.22 3.67 1.55 1.49.29.28h5.93c.19 0 .34.16.34.34v6.21c0 .18-.15.34-.33.34H2.01c-.18 0-.34-.15-.34-.33V4.01c0-.18.15-.34.33-.34zm.4-1H2C1.27 2.67.68 3.27.67 4v8c0 .73.6 1.32 1.33 1.33h12c.73 0 1.32-.6 1.33-1.33V5.78c0-.73-.6-1.33-1.33-1.34H8.46z"/><path fill="currentColor" d="M9.555 8.848a2.37 2.37 0 0 1-2.372 2.372l-1.486.006a2.366 2.366 0 0 1-2.37-2.37 2.38 2.38 0 0 1 2.376-2.377h.82c.135 0 .25.106.25.249q-.001.094-.062.17a3 3 0 0 0-.474.687.26.26 0 0 1-.223.143h-.286a1.13 1.13 0 0 0-1.165 1.086 1.123 1.123 0 0 0 1.082 1.163c.023.005.045 0 .063 0l1.481-.002A1.123 1.123 0 0 0 8.292 8.64a.25.25 0 0 1 .063-.214.62.62 0 0 1 .46-.201l.464-.001c.125 0 .223.089.245.21q.034.206.035.419zm3.11.001a2.365 2.365 0 0 0-2.371-2.37l-1.481.001a2.387 2.387 0 0 0-2.337 2.8c.022.12.125.205.245.21l.464-.001a.6.6 0 0 0 .46-.201.24.24 0 0 0 .063-.214 1.123 1.123 0 0 1 1.104-1.335l1.48-.002a1.12 1.12 0 0 1 1.15 1.096 1.13 1.13 0 0 1-1.099 1.152c-.022.004-.045 0-.062 0h-.286a.25.25 0 0 0-.223.143c-.125.25-.286.482-.474.688a.244.244 0 0 0 .013.352.24.24 0 0 0 .17.063l.82-.001a2.38 2.38 0 0 0 2.377-2.376z"/></svg>',"folder-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M7 4.001 6 3H2c-.55 0-1 .45-1 1.001v7.998C1 12.549 1.45 13 2 13h12c.55 0 1-.45 1-1.001V5.002c0-.55-.45-1.001-1-1.001zm-5 0h3.59l1 1.001H14v7.007H2z" clip-rule="evenodd"/></svg>',"folder-star":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M14 4.44H8.46L6.62 2.67H2A1.35 1.35 0 0 0 .67 4v8A1.35 1.35 0 0 0 2 13.33h12A1.35 1.35 0 0 0 15.33 12V5.78A1.36 1.36 0 0 0 14 4.44m-.2 3.89L12 9.66l.69 2a.22.22 0 0 1-.08.27.26.26 0 0 1-.13.06.4.4 0 0 1-.15-.06l-1.77-1.26L8.75 12a.34.34 0 0 1-.15 0 .3.3 0 0 1-.13 0 .23.23 0 0 1-.08-.27l.69-2-1.81-1.35a.23.23 0 0 1-.1-.17.24.24 0 0 1 .24-.24h2.21l.67-2a.26.26 0 0 1 .243-.156.24.24 0 0 1 .217.156l.67 2h2.2a.26.26 0 0 1 .26.24.3.3 0 0 1-.08.12"/></svg>',folders:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M9 3h4c.55 0 1 .45 1 1v5c0 .55-.45 1-1 1h-1V8a2 2 0 0 0-2-2H6.414l-1-1H5V3c0-.55.45-1 1-1h2z"/><path fill="currentColor" d="M10 7a1 1 0 0 1 1 1v5c0 .55-.45 1-1 1H3c-.55 0-1-.45-1-1V7c0-.55.45-1 1-1h2l1 1z"/></svg>',"folders-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M9 3 8 2H6c-.55 0-1 .45-1 1v2h1V3h1.59l1 1H13v5.01h-1V10h1c.55 0 1-.45 1-1V4c0-.55-.45-1-1-1z"/><path fill="currentColor" fill-rule="evenodd" d="m5 6 1 1h4c.55 0 1 .45 1 1v5c0 .55-.45 1-1 1H3c-.55 0-1-.45-1-1V7c0-.55.45-1 1-1zm-.41 1H3v6.01h7V8H5.59z" clip-rule="evenodd"/></svg>',gavel:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M5.908 5.012a.59.59 0 0 0 .59 1.02l.138-.08.59 1.02-5.892 3.402a.59.59 0 0 0 .589 1.02l5.892-3.4.589 1.02-.14.08a.59.59 0 0 0 .59 1.02l3.31-1.91a.59.59 0 0 0-.59-1.02l-.139.08-1.768-3.062.14-.08a.59.59 0 0 0-.59-1.021zm3.631 7.01a.5.5 0 1 0 0 1h5a.5.5 0 0 0 0-1z"/></svg>',"gavel-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M5.869 4.99a.59.59 0 0 0 .59 1.02l.138-.08.59 1.02-5.892 3.402a.59.59 0 1 0 .589 1.02l5.892-3.4.59 1.02-.14.08a.59.59 0 0 0 .589 1.02l3.31-1.91a.59.59 0 0 0-.59-1.02l-.139.08L9.628 4.18l.14-.08a.59.59 0 0 0-.59-1.021zm1.594.44 1.3-.75 1.767 3.062-1.299.75z" clip-rule="evenodd"/><path fill="currentColor" d="M9.5 12a.5.5 0 0 0 0 1h5a.5.5 0 0 0 0-1z"/></svg>',"graduation-cap":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m1 6 7-3 7 3v5h-1V6.429L8 9z"/><path fill="currentColor" d="M3 7.945V11l5 2 5-2V7.945l-5 2.143z"/></svg>',"graduation-cap-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="m1 6 2 .857V11l5 2 5-2V6.857l1-.428V11h1V6L8 3zm3 4.323V7.286L8 9l4-1.714v3.037l-4 1.6zM3.539 6 8 7.912 12.461 6 8 4.088z" clip-rule="evenodd"/></svg>',"hand-euro":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M14.91 7.11c-.581.55-1.362.89-2.213.89h-.01c-1.357 0-2.527-.86-3.043-2.09H8v-1h1.385a4 4 0 0 1-.02-.554l.002-.043q.005-.113.017-.223H8v-1h1.642C10.156 1.86 11.322 1 12.687 1c.901 0 1.712.37 2.313.98l-.711.71c-.42-.43-.991-.69-1.602-.69-.774 0-1.492.422-1.92 1.09h1.239v1h-1.612a2.7 2.7 0 0 0 0 .82h1.612v1h-1.241C11.19 6.578 11.907 7 12.687 7c.57 0 1.101-.22 1.512-.6zM3 7H1v7h2zm9.81 4.5h-2.06c-.09.18-.2.34-.35.49-.37.37-.87.58-1.39.58s-1.02-.2-1.39-.58l-1.04-1.04c-.2-.2-.2-.51 0-.71s.51-.2.71 0l1.04 1.04c.36.36 1 .37 1.36 0 .18-.18.28-.42.28-.68s-.1-.5-.28-.68L8.44 8.67c-.2-.2-.44-.36-.71-.48-.3-.12-.62-.18-.94-.18h-2.8v4.8h.02l.29-.02 1.94 1.63c.45.38 1.02.58 1.6.58h5.81c.74 0 1.33-.6 1.33-1.33 0-1.2-.97-2.17-2.17-2.17"/></svg>',"hand-euro-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M14.91 7.11c-.581.55-1.362.89-2.213.89h-.01c-1.357 0-2.527-.86-3.043-2.09H8v-1h1.385a3.7 3.7 0 0 1 0-.82H8v-1h1.642C10.156 1.86 11.322 1 12.687 1c.901 0 1.712.37 2.313.98l-.711.71c-.42-.43-.991-.69-1.602-.69-.774 0-1.492.422-1.92 1.09h1.239v1h-1.612a2.7 2.7 0 0 0 0 .82h1.612v1h-1.241C11.19 6.578 11.907 7 12.687 7c.57 0 1.101-.22 1.512-.6z"/><path fill="currentColor" fill-rule="evenodd" d="M1 7h3v1h2.798a2.5 2.5 0 0 1 1.77.731L9.73 9.896a1.56 1.56 0 0 1 .376 1.603h2.726c1.197 0 2.167.971 2.167 2.167 0 .737-.599 1.333-1.334 1.333H7.852a2.5 2.5 0 0 1-1.599-.578L4 12.566V14H1zm1 1h1v5H2zm2 1v2.27l2.892 2.382c.27.224.61.347.96.347h5.814c.185 0 .334-.15.334-.333 0-.644-.522-1.167-1.167-1.167h-3.77a1.56 1.56 0 0 1-1.539-.395l-.75-.75a.5.5 0 1 1 .707-.707l.75.75a.56.56 0 0 0 .397.164h.021a.56.56 0 0 0 .375-.957L7.861 9.439A1.5 1.5 0 0 0 6.799 9z" clip-rule="evenodd"/></svg>',"hand-up":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M12.75 3.5c-.41 0-.75.34-.75.75v3.5c0 .14-.11.25-.25.25s-.25-.11-.25-.25v-4c0-.41-.34-.75-.75-.75s-.75.34-.75.75v4c0 .14-.11.25-.25.25s-.25-.11-.25-.25v-5c0-.41-.34-.75-.75-.75S8 2.34 8 2.75v5c0 .14-.11.25-.25.25s-.25-.11-.25-.25v-4c0-.41-.34-.75-.75-.75S6 3.34 6 3.75V11L3.97 9.54a.845.845 0 0 0-1.21 0c-.33.34-.34.88 0 1.21l2.22 2.22c.66.66 1.55 1.03 2.47 1.03H11a2.5 2.5 0 0 0 2.5-2.5V4.25c0-.41-.34-.75-.75-.75"/></svg>',history:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m12.975 3.82.002-.001-.083-.09-.063-.066-.009-.01-.001-.002a6 6 0 0 0-.272-.29q-.076-.074-.157-.144l-.058-.052-.004-.003a6 6 0 0 0-.275-.237 6 6 0 0 0-.22-.166l-.024-.018a7 7 0 0 0-.293-.203 7 7 0 0 0-.859-.467 7 7 0 0 0-.339-.14l-.03-.011a6 6 0 0 0-.255-.093 7 7 0 0 0-.376-.108L9.592 1.7a4 4 0 0 0-.652-.128l-.092-.015q-.072-.013-.146-.022A6.47 6.47 0 0 0 3 3.847V1.996H2v4h4v-1H3.406a5.48 5.48 0 0 1 5.189-2.467q.061.008.124.019l.077.012q.188.025.373.064.088.02.173.044l.063.017q.16.041.317.09.115.04.227.084l.016.006a6 6 0 0 1 .523.232 5.4 5.4 0 0 1 .736.452l.03.022q.09.066.178.134.12.098.235.204l.05.044a4 4 0 0 1 .36.364l.012.013A5.496 5.496 0 1 1 2.5 7.996h-1A6.5 6.5 0 1 0 12.975 3.82"/><path fill="currentColor" d="M10.088 11.746 7.293 8.95V4.246h1v4.29l2.5 2.505z"/></svg>',home:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m13.55 5.5-5-3.33C8.38 2.06 8.19 2 7.99 2s-.39.06-.56.17L2.45 5.5c-.28.19-.45.5-.45.83v6.66c0 .55.45 1 1 1h4V12c0-.56.45-1.01 1-1.01s1 .45 1 1.01v1.99h4c.55 0 1-.45 1-1V6.33c0-.33-.17-.65-.45-.83"/></svg>',"home-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m13.55 5.5-5-3.33C8.38 2.06 8.19 2 7.99 2s-.39.06-.56.17L2.45 5.5c-.28.19-.45.5-.45.83v6.66c0 .55.45 1 1 1h10c.55 0 1-.45 1-1V6.33c0-.33-.17-.65-.45-.83m-.56 7.5h-4v-1c0-.55-.45-1-1-1s-1 .45-1 1v1H3V6.33L8 3l5 3.33V13z"/></svg>',"info-circle":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0m-7.75 4V7h1.5v5zm0-8v1.5h1.5V4z" clip-rule="evenodd"/></svg>',"info-circle-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M7.25 12V7h1.5v5zm0-8v1.5h1.5V4z"/><path fill="currentColor" fill-rule="evenodd" d="M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14m6-7A6 6 0 1 0 2 8a6 6 0 0 0 12 0" clip-rule="evenodd"/></svg>',"interrogation-circle":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M15.039 8.146a7 7 0 1 1-14 0 7 7 0 0 1 14 0m-6.974-.5a1 1 0 1 0-.942-1.335l-1.43-.458A2.501 2.501 0 1 1 8.79 9.04v.606h-1.5v-2zm-.026 3a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5" clip-rule="evenodd"/></svg>',"interrogation-circle-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M7.824 7.646a1 1 0 1 0-.943-1.335l-1.429-.458A2.501 2.501 0 1 1 8.548 9.04v.606h-1.5v-2zm-.776 3.75a.75.75 0 1 1 1.5 0 .75.75 0 0 1-1.5 0"/><path fill="currentColor" fill-rule="evenodd" d="M7.798 15.146a7 7 0 1 0 0-14 7 7 0 0 0 0 14m0-1a6 6 0 1 0 0-12 6 6 0 0 0 0 12" clip-rule="evenodd"/></svg>',key:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M8.44 6.67a3.994 3.994 0 0 0-5.1-2.44A3.986 3.986 0 0 0 .9 9.33 3.994 3.994 0 0 0 6 11.77c1.14-.4 2.04-1.3 2.44-2.44h2.89V12H14V9.33h1.33V6.67zM4.67 9.33c-.73 0-1.33-.6-1.33-1.33s.6-1.33 1.33-1.33S6 7.27 6 8s-.58 1.32-1.31 1.33z"/></svg>',laptop:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M6.5 5a.5.5 0 0 0 0 1h3a.5.5 0 0 0 0-1z"/><path fill="currentColor" fill-rule="evenodd" d="M3 3a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1H1a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1h-2a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1zm10 1H3v7h10z" clip-rule="evenodd"/></svg>',"life-ring":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M8 15a6.97 6.97 0 0 0 4.192-1.394 7 7 0 0 0 1.315-1.284A6.97 6.97 0 0 0 15 8a6.97 6.97 0 0 0-1.394-4.192 7 7 0 0 0-1.414-1.414A6.97 6.97 0 0 0 8 1a6.97 6.97 0 0 0-4.192 1.394 7 7 0 0 0-1.414 1.414A6.97 6.97 0 0 0 1 8a6.97 6.97 0 0 0 1.394 4.192c.368.493.8.935 1.284 1.315A6.97 6.97 0 0 0 8 15m3.446-4.968 1.445 1.444a6 6 0 0 1-1.415 1.415l-1.444-1.445a4 4 0 0 0 1.414-1.414m-6.892 0a4 4 0 0 0 1.414 1.414l-1.445 1.445a6 6 0 0 1-1.414-1.415zm1.414-5.478a4 4 0 0 0-1.414 1.414L3.109 4.523A6 6 0 0 1 4.523 3.11zm5.509-1.445-1.445 1.445a4 4 0 0 1 1.414 1.414l1.445-1.445a6 6 0 0 0-1.415-1.414M8 11a3 3 0 1 0 0-6 3 3 0 0 0 0 6" clip-rule="evenodd"/></svg>',"lines-rectangle":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M3 2a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1zm2 4h6v1H5zm4 3H5v1h4z" clip-rule="evenodd"/></svg>',"lines-rectangle-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M5 6h6v1H5zm4 3H5v1h4z"/><path fill="currentColor" fill-rule="evenodd" d="M4 1a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1zm8 1H4v12h8z" clip-rule="evenodd"/></svg>',link:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M9.75 6.25a3.75 3.75 0 0 1 0 5.31l-1.66 1.67a3.76 3.76 0 0 1-5.32 0 3.76 3.76 0 0 1 0-5.32l.92-.92c.15-.15.4-.16.56 0 .07.07.11.16.12.26.02.44.1.88.24 1.3.05.14.01.3-.09.41l-.32.32c-.72.67-.76 1.8-.09 2.52s1.8.76 2.52.09c.03-.02.05-.05.07-.07l1.66-1.66a1.775 1.775 0 0 0-.26-2.73.4.4 0 0 1-.17-.31.98.98 0 0 1 .29-.74l.52-.52c.14-.14.35-.15.51-.04.18.13.35.27.51.43zm3.49-3.48a3.76 3.76 0 0 0-5.32 0L6.26 4.43a3.772 3.772 0 0 0 .52 5.75c.16.11.37.09.51-.04l.52-.52c.2-.19.3-.46.29-.74a.38.38 0 0 0-.17-.31 1.775 1.775 0 0 1-.26-2.73l1.66-1.66c.68-.71 1.81-.74 2.52-.06s.74 1.81.06 2.52c-.02.03-.05.05-.07.07l-.32.32c-.11.11-.14.27-.09.41.14.42.22.86.24 1.3 0 .22.19.39.41.38.1 0 .19-.05.26-.12l.92-.92a3.76 3.76 0 0 0 0-5.32z"/></svg>',list:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M5 3h9v1H5zm0 9h9v1H5zm9-4.5H5v1h9zm-12 0h1v1H2zM3 3H2v1h1zm-1 9h1v1H2z" clip-rule="evenodd"/></svg>',loader:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-opacity=".2" d="M13.657 8A5.657 5.657 0 1 1 2.343 8a5.657 5.657 0 0 1 11.314 0M3.475 8a4.526 4.526 0 1 0 9.05 0 4.526 4.526 0 0 0-9.05 0"/><path fill="currentColor" d="M2.343 8A5.657 5.657 0 0 1 8 2.343v1.132A4.525 4.525 0 0 0 3.475 8z"/></svg>',location:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M8 14.997c2.5-2.5 5-6.236 5-8.997A5 5 0 0 0 3 6c0 2.761 2.5 6.496 5 8.997m0-7.499a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3" clip-rule="evenodd"/></svg>',"location-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M10 6.002a2 2 0 1 1-4 0 2 2 0 0 1 4 0m-1 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0" clip-rule="evenodd"/><path fill="currentColor" fill-rule="evenodd" d="M13 6.002c0 2.506-2.06 5.814-4.309 8.273q-.344.376-.691.723a23 23 0 0 1-.691-.723C5.059 11.816 3 8.508 3 6.002a5 5 0 0 1 10 0m-1 0c0 1.116-.52 2.554-1.424 4.088A21.5 21.5 0 0 1 8 13.55a21.5 21.5 0 0 1-2.576-3.459C4.52 8.556 4 7.118 4 6.002a4 4 0 1 1 8 0" clip-rule="evenodd"/></svg>',lock:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M5 4v3H4a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1h-1V4a3 3 0 0 0-6 0m5 3V4a2 2 0 1 0-4 0v3zm-2 3a1 1 0 1 0 0 2 1 1 0 0 0 0-2" clip-rule="evenodd"/></svg>',"lock-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M8 10a1 1 0 1 0 0 2 1 1 0 0 0 0-2"/><path fill="currentColor" fill-rule="evenodd" d="M5 4v3H4a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1h-1V4a3 3 0 0 0-6 0m5 3V4a2 2 0 1 0-4 0v3zm2 1v6H4V8z" clip-rule="evenodd"/></svg>',"log-in":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M8 13v1h5a1 1 0 0 0 1-1V3a1 1 0 0 0-1-1H8v1h5v10z"/><path fill="currentColor" d="m9.086 8.5-1.793 1.793L8 11l3-3-3-3-.707.707L9.086 7.5H2v1z"/></svg>',"log-out":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m12.086 8.5-1.793 1.793L11 11l3-3-3-3-.707.707L12.086 7.5H5v1z"/><path fill="currentColor" d="M8 3V2H3a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h5v-1H3V3z"/></svg>',"magnifying-glass":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M2 7a5 5 0 1 1 8.872 3.164l3.127 3.128-.707.707-3.128-3.128A5 5 0 0 1 2 7m5 4a4 4 0 1 1 0-8 4 4 0 0 1 0 8" clip-rule="evenodd"/></svg>',mail:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M1.007 4.002v8.011a1 1 0 0 0 1 1h11.997a1 1 0 0 0 1-1V4l-7 5z"/><path fill="currentColor" d="m1.52 3.14 6.484 4.63 6.485-4.632a1 1 0 0 0-.486-.126H2.008a1 1 0 0 0-.487.127"/></svg>',"mail-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M1 3.999v8a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-8A1 1 0 0 0 14.001 3H2a1 1 0 0 0-1 .999m13 .713-6 4.28-6-4.28V12h12zM2.724 4 8 7.764 13.276 4z" clip-rule="evenodd"/></svg>',"messages-square":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M12 10v1.017a1 1 0 0 1-1.006 1L8 12l-4 2v-1.978H3a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h1V4a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1zm1-6H5v1h6a1 1 0 0 1 1 1v3h1zm-3 3H4v1h6zM4 9h3v1H4z" clip-rule="evenodd"/></svg>',"messages-square-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M4 7h6v1H4zm0 2h3v1H4z"/><path fill="currentColor" fill-rule="evenodd" d="M12 10v1.017a1 1 0 0 1-1.006 1L8 12l-4 2v-1.978H3a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h1V4a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1zm1-6H5v1h6a1 1 0 0 1 1 1v3h1zm-5.233 6.999L5 12.382v-1.36H3V6h8v5.017z" clip-rule="evenodd"/></svg>',mobile:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M3 2a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1zm4 10a1 1 0 1 1 2 0 1 1 0 0 1-2 0M6 3.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3a.5.5 0 0 1-.5-.5" clip-rule="evenodd"/></svg>',"mobile-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M7 12a1 1 0 1 1 2 0 1 1 0 0 1-2 0M6 3.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3a.5.5 0 0 1-.5-.5"/><path fill="currentColor" fill-rule="evenodd" d="M4 1a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1zm8 1H4v12h8z" clip-rule="evenodd"/></svg>',notes:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M13 4h-1V3a1 1 0 0 0-1-1H3a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h1v1a1 1 0 0 0 1 1h5v-4h4V5a1 1 0 0 0-1-1M3 3h8v1H5a1 1 0 0 0-1 1v6H3zm9 4H6v1h6zM6 9h3v1H6z" clip-rule="evenodd"/><path fill="currentColor" d="m11 14 3-3h-3z"/></svg>',"notes-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M12 7H6v1h6zM9 9H6v1h3z"/><path fill="currentColor" fill-rule="evenodd" d="M13 4h-1V3a1 1 0 0 0-1-1H3a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h1v1a1 1 0 0 0 1 1h6l3-3V5a1 1 0 0 0-1-1M3 3h8v1H5a1 1 0 0 0-1 1v6H3zm10 2H5v8h5v-3h3zm-.414 6L11 12.586V11z" clip-rule="evenodd"/></svg>',"paper-plane":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M13.855 2.145a.5.5 0 0 0-.525-.115l-11 4a.5.5 0 0 0 0 .935L6.625 8.68l3.17-3.18.705.705L7.315 9.39l1.72 4.295A.5.5 0 0 0 9.5 14a.5.5 0 0 0 .46-.33l4-11a.5.5 0 0 0-.105-.525"/></svg>',"paper-plane-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M13.855 2.145a.5.5 0 0 0-.525-.115l-11 4a.5.5 0 0 0 0 .935l4.8 1.92 1.92 4.8A.5.5 0 0 0 9.5 14a.5.5 0 0 0 .46-.33l4-11a.5.5 0 0 0-.105-.525M9.5 12.1 8.105 8.6 10.5 6.205 9.795 5.5 7.38 7.915 3.9 6.5l8.765-3.165z"/></svg>',"paper-plane-slash":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M1.705 1 15 14.295l-.7.705-4-4-1.34 3.67a.5.5 0 0 1-.46.33.5.5 0 0 1-.465-.315l-1.72-4.295L8 8.705 7.295 8l-1.67 1.68L1.33 7.965a.5.5 0 0 1 0-.935L5 5.705l-4-4zM12.97 3.67l-1.725 4.745-3.66-3.66L12.33 3.03a.5.5 0 0 1 .64.64" clip-rule="evenodd"/></svg>',"paper-plane-slash-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M1.705 1 15 14.295l-.7.705-4-4-1.34 3.67a.5.5 0 0 1-.46.33.5.5 0 0 1-.45-.315l-1.92-4.8-4.8-1.92a.5.5 0 0 1 0-.935L5 5.705l-4-4zM5.77 6.5l-2.87 1 3.48 1.415L7.295 8zm1.335 3.1L8.5 13.1l1-2.87L8 8.705zm4.56-5.265-3.82 1.39-.78-.78L12.33 3.03a.5.5 0 0 1 .64.64l-1.915 5.265-.78-.78z" clip-rule="evenodd"/></svg>',paperclip:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m6.57 12.358 6.09-6.09a1.035 1.035 0 1 0-1.465-1.463l-5.32 5.32-.733-.731 5.321-5.321A2.07 2.07 0 1 1 13.391 7l-5.339 5.34-.006.006-.744.744A3.106 3.106 0 0 1 2.91 8.698L9.608 2l.732.732L3.642 9.43a2.07 2.07 0 1 0 2.928 2.928"/></svg>',pen:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M10.88 2.293a1 1 0 0 1 1.415 0l1.414 1.414a1 1 0 0 1 0 1.414l-1.414 1.415-2.828-2.829zm.705 4.953L8.756 4.417 2 11.174l.003 2.825 2.825.003z"/></svg>',"pen-circle":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14m-3.692-3.307v-1.54l4.538-4.539 1.54 1.54-4.538 4.539zm7.268-6.312a.42.42 0 0 1 0 .583l-.753.753-1.54-1.54.747-.753a.42.42 0 0 1 .583 0z" clip-rule="evenodd"/></svg>',"pen-fancy":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M3.63 8.65c-.24.07-.43.26-.5.5l-1.46 4.37.11.12 2.3-2.3v-.19c0-.44.35-.8.79-.81.44 0 .8.35.81.79 0 .44-.35.8-.79.81h-.21l-2.3 2.3.12.11 4.37-1.46c.24-.07.43-.26.5-.5l.82-2.08L5.7 7.83zm7.17-6.3L6.27 7.28 8.69 9.7l4.94-4.52c2.1-1.86-.99-4.92-2.83-2.83"/></svg>',"pen-fancy-files-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M12 2H6v10h6V8.946l.023-.058.085-.078.892-.813V12a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v.112a2.3 2.3 0 0 0-.974.66L12 2.8zm1 4.643-1 .913-.566.515-1.528-1.524L12 4.275l.767-.832q.113-.127.233-.215c1.167-.857 2.797.9 1.555 1.997zM4 3H3v11.5a.5.5 0 0 0 .5.5H11v-1H4zm4.238 4.41a.47.47 0 0 0-.316.315L7 10.477l.07.076 1.452-1.449v-.12a.51.51 0 0 1 .5-.51.51.51 0 0 1 .511.498.51.51 0 0 1-.499.51h-.133L7.45 10.931l.075.069 2.76-.92a.47.47 0 0 0 .317-.314l.518-1.31-1.573-1.562z" clip-rule="evenodd"/></svg>',"pen-fancy-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M12.24 1.67c-.49 0-1 .21-1.44.7L6.27 7.3l2.42 2.42 4.94-4.52c1.6-1.42.19-3.53-1.39-3.53M8.72 8.34 7.66 7.28l3.9-4.24c.22-.24.44-.36.69-.36.41 0 .87.34 1.03.78.14.37.04.7-.32 1.02L8.73 8.36zM5.7 7.86l-2.08.82c-.24.08-.42.26-.5.5l-1.46 4.37.12.12.56.56.12.12 4.37-1.46c.24-.08.42-.26.5-.5l.81-2.08L5.7 7.87zm-2.57 4.46L4 9.72c.03-.08.09-.15.17-.18l1.29-.51 1.52 1.52-.5 1.29c-.03.08-.1.15-.19.18l-2.6.87.95-.95c.06.02.12.04.19.04.44 0 .79-.35.79-.79s-.35-.79-.79-.79-.79.35-.79.79c0 .07.02.13.04.19l-.95.95z"/></svg>',"pen-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M12.295 2.293a1 1 0 0 0-1.414 0L9.467 3.707l2.828 2.829 1.414-1.415a1 1 0 0 0 0-1.414z"/><path fill="currentColor" fill-rule="evenodd" d="m2.003 13.999 2.825.003 6.757-6.756-2.829-2.829L2 11.174zM3 11.587l5.756-5.755 1.414 1.414-5.755 5.756L3.002 13z" clip-rule="evenodd"/></svg>',phone:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m10 10.53 1.034-1.035a1.01 1.01 0 0 1 1.08-.221l1.259.503A1.01 1.01 0 0 1 14 10.7v2.308a1 1 0 0 1-1.052.992C4.124 13.45 2.343 5.974 2.006 3.112A1.002 1.002 0 0 1 3.007 2h2.228a1 1 0 0 1 .923.628l.503 1.26a1 1 0 0 1-.217 1.08L5.41 6.002s.595 4.029 4.59 4.527"/></svg>',"phone-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M12.62 14h-.079C3.472 13.479 2.184 5.826 2.004 3.49A1.384 1.384 0 0 1 3.278 2h2.543a.92.92 0 0 1 .859.582l.701 1.726a.92.92 0 0 1-.203.997l-.983.992a4.325 4.325 0 0 0 3.499 3.508l1.001-.993a.92.92 0 0 1 1.002-.189l1.74.697a.92.92 0 0 1 .567.858v2.437A1.385 1.385 0 0 1 12.62 14M3.389 2.923a.46.46 0 0 0-.462.462v.037c.213 2.732 1.574 9.193 9.665 9.655a.46.46 0 0 0 .49-.434v-2.465l-1.74-.696-1.325 1.315-.222-.028c-4.015-.503-4.56-4.518-4.56-4.56l-.028-.221 1.311-1.325-.692-1.74z"/></svg>',picture:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M14 3a1 1 0 0 0-1-1H3a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1zM4 5a1 1 0 1 0 2 0 1 1 0 0 0-2 0m7.134 2.514L13 10.023V13H3v-2.494l.896-1.064c.203-.242.305-.362.425-.408a.5.5 0 0 1 .358 0c.12.046.222.166.425.408l1.767 2.098 2.995-4.026c.21-.282.316-.423.444-.476a.5.5 0 0 1 .38 0c.129.053.234.194.444.476" clip-rule="evenodd"/></svg>',"picture-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M5 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2"/><path fill="currentColor" fill-rule="evenodd" d="M14 13a1 1 0 0 1-1 1H2h.994A1 1 0 0 1 2 13V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1zM3 3h10v5.315l-1.069-1.43a6 6 0 0 0-.29-.368 1.5 1.5 0 0 0-.555-.41 1.5 1.5 0 0 0-1.14-.001c-.27.11-.448.288-.556.408-.098.11-.2.246-.291.366L6.822 9.911l-.974-1.14a5 5 0 0 0-.283-.314 1.5 1.5 0 0 0-.53-.353 1.5 1.5 0 0 0-1.064 0c-.248.094-.42.245-.529.352a5 5 0 0 0-.283.314L3 8.956zm0 10v-2.506l.903-1.055c.202-.237.303-.355.423-.4a.5.5 0 0 1 .355 0c.12.045.22.164.422.4l1.769 2.07 3.01-4.006c.21-.28.315-.42.443-.472a.5.5 0 0 1 .38 0c.127.053.232.193.441.474L13 9.985V13z" clip-rule="evenodd"/></svg>',"play-circle":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M8 1a7 7 0 1 0 0 14A7 7 0 0 0 8 1m3.724 7.447-6 3A.5.5 0 0 1 5 11V5a.5.5 0 0 1 .724-.447l6 3a.5.5 0 0 1 0 .894"/></svg>',plus:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M9 2H7v5H2v2h5v5h2V9h5V7H9z"/></svg>',"plus-circle":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14M7 7V4h2v3h3v2H9v3H7V9H4V7z" clip-rule="evenodd"/></svg>',share:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M14 4.5a2.5 2.5 0 0 1-4.467 1.543L6.915 7.35a2.5 2.5 0 0 1 0 1.298l2.618 1.308a2.5 2.5 0 1 1-.448.894L6.467 9.544a2.5 2.5 0 1 1 0-3.085l2.618-1.31A2.503 2.503 0 0 1 11.5 2 2.5 2.5 0 0 1 14 4.5"/></svg>',"share-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M13 4.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0m1 0a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0M6 8a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0m.623 1.32a2.5 2.5 0 1 1-.156-2.863L9.085 5.15c.088.33.243.633.448.894L6.915 7.35a2.5 2.5 0 0 1 0 1.298l2.618 1.308a2.5 2.5 0 1 1-.448.894L6.467 9.544q.084-.107.156-.223M11.5 13a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3" clip-rule="evenodd"/></svg>',shuffle:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m11.295 9.705 1.79 1.795h-3.31L7.59 8l2.185-3.5h3.31l-1.79 1.795L12 7l3-3-3-3-.705.705 1.79 1.795h-3.31a1 1 0 0 0-.845.47L7 7.055 5.07 3.97a1 1 0 0 0-.845-.47H1v1h3.225L6.41 8l-2.185 3.5H1v1h3.225a1 1 0 0 0 .845-.47L7 8.945l1.93 3.085a1 1 0 0 0 .845.47h3.31l-1.79 1.795L12 15l3-3-3-3z"/></svg>',sitemap:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M3.33 10h-2c-.37 0-.66.3-.66.67v2c0 .36.3.65.66.66h2c.37 0 .66-.29.67-.66v-2c0-.37-.3-.67-.67-.67m-.5-1.67H7.5v1h1v-1h4.67v1h1v-1.2c0-.44-.36-.8-.8-.8H8.5V6h.83c.37 0 .67-.3.67-.67v-2c0-.37-.3-.66-.67-.66H6.67c-.37 0-.66.29-.67.66v2c0 .37.3.67.67.67h.83v1.33H2.63c-.44 0-.8.36-.8.8v1.2h1zM9 10H7c-.37 0-.67.3-.67.67v2c0 .37.3.66.67.66h2c.37 0 .66-.29.67-.66v-2c0-.37-.3-.67-.67-.67m5.67 0h-2c-.37 0-.67.3-.67.67v2c0 .37.3.66.67.66h2c.36 0 .65-.3.66-.66v-2c0-.37-.29-.66-.66-.67"/></svg>',sliders:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M12.95 4H15v1h-2.05v.002a2.5 2.5 0 0 1-2.672 1.988A2.52 2.52 0 0 1 8.05 5.002V5H1V4h7.05v-.002a2.5 2.5 0 0 1 2.672-1.988 2.52 2.52 0 0 1 2.228 1.988zm-9.9 8H1v-1h2.05v-.002A2.52 2.52 0 0 1 5.5 9a2.5 2.5 0 0 1 2.45 1.999V11H15v1H7.95v.002A2.52 2.52 0 0 1 5.5 14a2.5 2.5 0 0 1-2.45-1.998z"/></svg>',"sliders-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M12.95 4H15v1h-2.05c-.25 1.15-1.25 2-2.45 2s-2.2-.85-2.45-2H1V4h7.05C8.3 2.85 9.3 2 10.5 2s2.2.85 2.45 2M9 4.5c0 .85.65 1.5 1.5 1.5S12 5.35 12 4.5 11.35 3 10.5 3 9 3.65 9 4.5M3.05 12H1v-1h2.05C3.3 9.85 4.3 9 5.5 9s2.2.85 2.45 2H15v1H7.95c-.25 1.15-1.25 2-2.45 2s-2.2-.85-2.45-2M7 11.5c0-.85-.65-1.5-1.5-1.5S4 10.65 4 11.5 4.65 13 5.5 13 7 12.35 7 11.5" clip-rule="evenodd"/></svg>',squares:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M2 3a1 1 0 0 1 1-1h3a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1zm7 0a1 1 0 0 1 1-1h3a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1h-3a1 1 0 0 1-1-1zm0 7a1 1 0 0 1 1-1h3a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1h-3a1 1 0 0 1-1-1zm-7 0a1 1 0 0 1 1-1h3a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1z"/></svg>',star:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" stroke="currentColor" d="m8 2.472 1.715 3.475.116.235.26.038 3.835.557-2.775 2.705-.188.183.044.26.655 3.818-3.43-1.803L8 11.818l-.233.122-3.43 1.803.656-3.818.044-.26-.188-.183-2.775-2.705L5.91 6.22l.26-.038.116-.235z"/></svg>',"star-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path stroke="currentColor" d="m8 2.472 1.715 3.475.116.235.26.038 3.835.557-2.775 2.705-.188.183.044.26.655 3.818-3.43-1.803L8 11.818l-.233.122-3.43 1.803.656-3.818.044-.26-.188-.183-2.775-2.705L5.91 6.22l.26-.038.116-.235z"/></svg>',table:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M2 13a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V3a1 1 0 0 0-1-1H3a1 1 0 0 0-1 1zm1-3v3h3v-3zm4 0v3h6v-3zm6-1H7V6h6zM6 9H3V6h3zM3 5V3h10v2z" clip-rule="evenodd"/></svg>',tag:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M2 7.43c0 .275.11.538.303.732l5.535 5.535c.404.404 1.06.404 1.464 0l4.395-4.395a1.036 1.036 0 0 0 0-1.464L8.162 2.303A1.04 1.04 0 0 0 7.43 2H3.036C2.464 2 2 2.464 2 3.036zM5.5 7a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3" clip-rule="evenodd"/></svg>',"tag-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M5.5 7a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3m0-1a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1" clip-rule="evenodd"/><path fill="currentColor" fill-rule="evenodd" d="M2 7.43c0 .275.11.538.303.732l5.535 5.535c.404.404 1.06.404 1.464 0l4.395-4.395a1.036 1.036 0 0 0 0-1.464L8.162 2.303A1.04 1.04 0 0 0 7.43 2H3.036C2.464 2 2 2.464 2 3.036zm1 0q0 .016.01.025l5.535 5.534a.036.036 0 0 0 .05 0l4.394-4.394a.036.036 0 0 0 0-.05L7.456 3.01A.04.04 0 0 0 7.43 3H3.036A.036.036 0 0 0 3 3.036z" clip-rule="evenodd"/></svg>',tags:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M13.855 6.645 8.5 1.295A1 1 0 0 0 7.795 1H4a1 1 0 0 0-1 1v1h1V2h3.795l5 5-.65.645.71.71 1-1a.5.5 0 0 0 0-.71"/><path fill="currentColor" fill-rule="evenodd" d="M2 8.978c0 .251.1.493.278.67l5.073 5.074a.95.95 0 0 0 1.343 0l4.028-4.028a.95.95 0 0 0 0-1.343L7.649 4.278A.95.95 0 0 0 6.978 4H2.949A.95.95 0 0 0 2 4.95zM5.5 9a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3" clip-rule="evenodd"/></svg>',"tags-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m8.5 1.295 5.355 5.35a.5.5 0 0 1 0 .71l-1 1-.71-.71.65-.645-5-5H4v1H3V2a1 1 0 0 1 1-1h3.795a1 1 0 0 1 .705.295"/><path fill="currentColor" fill-rule="evenodd" d="M5.5 9a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3m0-1a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1" clip-rule="evenodd"/><path fill="currentColor" fill-rule="evenodd" d="M2.278 9.649A.95.95 0 0 1 2 8.978V4.949A.95.95 0 0 1 2.95 4h4.028c.251 0 .493.1.67.278l5.074 5.073a.95.95 0 0 1 0 1.343l-4.028 4.028a.95.95 0 0 1-1.343 0zm5.744 4.33L3 8.957V5h3.957l5.022 5.022z" clip-rule="evenodd"/></svg>',"thumb-down":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M11.202 11.934a1.506 1.506 0 0 1-2.438 1.651L5.5 10.461v-8.46h4.922c1.081 0 2.058.714 2.484 1.817l.944 3.394c.51 1.32-.362 2.788-1.656 2.788h-1.772zM4.5 10H2V2h2.5z"/></svg>',"thumb-down-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M11.204 11.934 10.424 10h1.772c1.294 0 2.166-1.468 1.656-2.788l-.944-3.394C12.484 2.715 11.507 2 10.426 2H5v.003H2v8h3.023l3.744 3.582a1.506 1.506 0 0 0 2.437-1.651m.755-7.797C11.657 3.4 11.033 3 10.425 3H6.002l.017 6.572 3.439 3.29a.506.506 0 0 0 .819-.554L8.943 9h3.253c.24 0 .48-.131.645-.41.167-.28.218-.657.079-1.018l-.018-.045zM3 9.003h2v-6H3z" clip-rule="evenodd"/></svg>',"thumb-up":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M11.202 4.069a1.506 1.506 0 0 0-2.438-1.651L5.5 5.542v8.46h4.922c1.081 0 2.058-.714 2.484-1.817l.944-3.394c.51-1.32-.362-2.788-1.656-2.788h-1.772zM4.5 6.003H2v8h2.5z"/></svg>',"thumb-up-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="m11.204 4.069-.78 1.934h1.772c1.294 0 2.166 1.468 1.656 2.788l-.944 3.394c-.425 1.103-1.402 1.818-2.483 1.818H5V14H2V6h3.023l3.744-3.582a1.506 1.506 0 0 1 2.437 1.65m.755 7.797c-.302.738-.926 1.137-1.534 1.137H6.002L6.02 6.43l3.439-3.29a.506.506 0 0 1 .819.554L8.943 7.003h3.253c.24 0 .48.13.645.41.167.28.218.657.079 1.018l-.018.045zM3 7h2v6H3z" clip-rule="evenodd"/></svg>',thumbtack:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="m8.91 2-1.2 3.594L2.364 7.09 5.274 10l-.707.706-1.687 1.687-.264.264-.09.09-.209.498L2 14l.755-.317.498-.21.09-.089.264-.264 1.687-1.687.706-.706 2.91 2.908 1.496-5.347L14 7.09z" clip-rule="evenodd"/></svg>',"thumbtack-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="m5.273 10-2.91 2.91L2 14l1.09-.364L6 10.727l2.91 2.91 1.496-5.348L14 7.09 8.91 2l-1.2 3.594L2.364 7.09zm3.241-3.563-4.18 1.17 4.059 4.059 1.17-4.18 2.533-.845-2.737-2.737z" clip-rule="evenodd"/></svg>',trash:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M11 2v1h3v1h-1v10a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4H2V3h3V2a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1M6 3V2h4v1zm1 3H6v6h1zm2 0h1v6H9z" clip-rule="evenodd"/></svg>',"trash-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M7 6H6v6h1zm2 0h1v6H9z"/><path fill="currentColor" fill-rule="evenodd" d="M11 3V2a1 1 0 0 0-1-1H6a1 1 0 0 0-1 1v1H2v1h1v10a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V4h1V3zM6 2v1h4V2zm6 2v10H4V4z" clip-rule="evenodd"/></svg>',"universal-access":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0m-3.5-1V6h-7v1H7v1.367l-1.934 3.385.868.496L7.79 9h.42l1.856 3.248.868-.496L9 8.367V7zM9 4.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0" clip-rule="evenodd"/></svg>',"universal-access-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M4.111 13.82A7 7 0 0 0 8 15a7.01 7.01 0 0 0 7-7 7 7 0 1 0-10.889 5.82m.556-10.809A6 6 0 0 1 8 2a6.007 6.007 0 0 1 6 6 6 6 0 1 1-9.333-4.989M8 5.5a1 1 0 1 0 0-2 1 1 0 0 0 0 2M11.5 7V6h-7v1H7v1.367l-1.934 3.385.868.496L7.79 9h.42l1.856 3.248.868-.496L9 8.367V7z" clip-rule="evenodd"/></svg>',unlink:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M9.74 6.25c-.16-.17-.32-.3-.5-.43-.14-.09-.31-.1-.44 0l1.81 1.81c-.17-.5-.47-.98-.87-1.38m-1.1 3.51c-.07.15-.17.28-.29.4l-1.66 1.66s-.04.05-.07.07c-.72.67-1.85.63-2.52-.09s-.63-1.85.09-2.52l.32-.32c.1-.11.14-.27.09-.41-.14-.42-.22-.86-.24-1.3a.42.42 0 0 0-.12-.26.395.395 0 0 0-.56 0l-.92.92a3.76 3.76 0 0 0 0 5.32 3.76 3.76 0 0 0 5.32 0l1.66-1.67c.12-.12.23-.25.32-.38zm4.61-7h-.02a3.78 3.78 0 0 0-5.32 0L6.83 3.84l1.41 1.41 1.08-1.08c.68-.71 1.81-.74 2.52-.06s.74 1.81.06 2.52c-.02.03-.05.05-.07.07l-.32.32c-.11.11-.14.27-.09.41.13.4.21.81.23 1.23l.44.44c.09 0 .18-.05.24-.11l.92-.92a3.76 3.76 0 0 0 0-5.32zm.97 10.52-1.03 1.03-5.14-5.14c-.04.17-.12.33-.25.45l-.52.52c-.14.13-.35.15-.51.04-.18-.13-.35-.27-.5-.42-.74-.74-1.11-1.7-1.11-2.67 0-.24.02-.49.08-.73l-3.6-3.6 1.03-1.03z"/></svg>',unlock:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M10 7V4a2 2 0 1 0-4 0v1H5V4a3 3 0 0 1 6 0v3h1a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1zm-3 4a1 1 0 1 1 2 0 1 1 0 0 1-2 0" clip-rule="evenodd"/></svg>',"unlock-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M8 10a1 1 0 1 0 0 2 1 1 0 0 0 0-2"/><path fill="currentColor" fill-rule="evenodd" d="M10 4v3H4a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1h-1V4a3 3 0 0 0-6 0v1h1V4a2 2 0 1 1 4 0m2 4v6H4V8z" clip-rule="evenodd"/></svg>',upload:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M3.706 6.703 3 6l5-5 5 5-.704.702L8.5 2.912V12h-1V2.913zM13 14v-2h1v2a1 1 0 0 1-1 1H3a1 1 0 0 1-.996-1.002L2 14v-2h1v2z" clip-rule="evenodd"/></svg>',user:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M8 8a3 3 0 1 0 0-6 3 3 0 0 0 0 6M6 9a4 4 0 0 0-4 4 1 1 0 0 0 1 1h10a1 1 0 0 0 1-1 4 4 0 0 0-4-4z" clip-rule="evenodd"/></svg>',"user-circle":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M8.01 1C4.146.99 1.01 4.128 1 7.99c0 3.863 3.128 7 6.99 7.01 3.853 0 6.99-3.109 7.01-6.962C15.019 4.176 11.9 1.02 8.038 1zm0 .715a6.28 6.28 0 0 1 6.275 6.295v.028a6.2 6.2 0 0 1-1.135 3.586 2.59 2.59 0 0 0-2.537-2.26H9.478a3.44 3.44 0 0 1-2.937 0H5.415a2.573 2.573 0 0 0-2.546 2.26 6.2 6.2 0 0 1-1.135-3.586 6.284 6.284 0 0 1 6.247-6.323zM5.147 5.778a2.914 2.914 0 0 1 2.91-2.909 2.914 2.914 0 0 1 2.908 2.909 2.914 2.914 0 0 1-2.909 2.909H8.01a2.917 2.917 0 0 1-2.86-2.91"/></svg>',"user-group":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M12.95 4.066a1.42 1.42 0 0 0-1.426 1.406c0 .789.626 1.415 1.406 1.425s1.415-.626 1.425-1.406a1.42 1.42 0 0 0-1.406-1.425m-9.668.01a1.415 1.415 0 0 0-1.521 1.53 1.415 1.415 0 0 0 2.821 0 1.43 1.43 0 0 0-1.3-1.53m7.087.375a2.38 2.38 0 0 0-1.647-1.685 2.496 2.496 0 0 0-3.1 1.656 2.53 2.53 0 0 0 .135 1.781A2.39 2.39 0 0 0 7.99 7.6a2.47 2.47 0 0 0 2.379-3.148m-.684 3.851h-.183a3.39 3.39 0 0 1-3.014 0h-.183a2.54 2.54 0 0 0-2.542 2.542v2.59A6.96 6.96 0 0 0 7.99 14.85c1.59 0 3.053-.53 4.237-1.425v-2.58a2.54 2.54 0 0 0-2.542-2.543M15 8.543a7 7 0 0 1-1.589 3.765 3 3 0 0 1-.24.27c-.077.086-.164.173-.241.26v-.53h.029v-.693s.01-.068 0-.097v-.635a3.25 3.25 0 0 0-1.695-2.889c.26-.25.607-.395.963-.395h1.454c.607.01 1.126.395 1.319.944M3.041 10.844v1.464h.01v.53l-.27-.3c-.077-.076-.144-.153-.212-.23A6.97 6.97 0 0 1 1 8.63 1.38 1.38 0 0 1 2.348 7.6h1.415a1.4 1.4 0 0 1 .973.356 3.25 3.25 0 0 0-1.695 2.888"/></svg>',"user-lock":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M6.5 7a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5M5 8a4 4 0 0 0-4 4 1 1 0 0 0 1 1h7v-1.5a1.5 1.5 0 0 1 1.036-1.427c.109-.63.452-1.178.938-1.553A4 4 0 0 0 9 8z"/><path fill="currentColor" fill-rule="evenodd" d="M10.5 11h.5v-.5a1.5 1.5 0 0 1 3 0v.5h.5a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-.5.5h-4a.5.5 0 0 1-.5-.5v-3a.5.5 0 0 1 .5-.5m2.75-.5v.5h-1.5v-.5a.75.75 0 0 1 1.5 0" clip-rule="evenodd"/></svg>',"user-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M11 5a3 3 0 1 1-6 0 3 3 0 0 1 6 0m-1 0a2 2 0 1 1-4 0 2 2 0 0 1 4 0m-8 8a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4 1 1 0 0 1-1 1H3a1 1 0 0 1-1-1m1 0a3 3 0 0 1 3-3h4a3 3 0 0 1 3 3z" clip-rule="evenodd"/></svg>',"user-pen-fancy-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M7.5 7a2.5 2.5 0 0 1 0-5 2.5 2.5 0 0 1 0 5m0-4C6.67 3 6 3.67 6 4.5S6.67 6 7.5 6 9 5.33 9 4.5 8.33 3 7.5 3m3.62 8.46-.22.54-.3.77s-.04.09-.06.13c-.03.04-.06.07-.1.1-.05.04-.1.07-.16.08L7.52 14l-.07-.07 1.45-1.45h.13c.15 0 .27-.06.36-.16a.6.6 0 0 0 .1-.15c.01-.02.02-.04.03-.07v-.02s.01-.05.01-.08v-.03c0-.28-.23-.5-.51-.5-.28.01-.5.24-.5.51v.14l-.76.75-.14.13-.55.55-.07-.07.16-.48.1-.29.24-.71.42-1.27c.05-.16.17-.28.32-.32l1.31-.52zm3.44-3.24-2.05 1.87-.7.64-.06.05-.32.29-1.52-1.52.28-.31.06-.06.64-.7 1.88-2.04c1.16-1.31 3.11.61 1.79 1.78"/><path fill="currentColor" fill-rule="evenodd" d="M9 8H6c-2.21 0-4 1.79-4 4 0 .55.45 1 1 1h3.11l.33-1H3c0-1.66 1.34-3 3-3h3.05l.83-.9C9.6 8.03 9.3 8 9 8" clip-rule="evenodd"/></svg>',"user-plus":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M14 3.33h-1.35V2c-.02-.18-.17-.33-.35-.33h-.65c-.18 0-.33.15-.35.33v1.33H10c-.18 0-.33.16-.33.34v.66c0 .18.15.33.33.34h1.3V6c.02.18.17.32.35.33h.65c.18 0 .33-.15.35-.33V4.67H14a.34.34 0 0 0 .32-.34v-.66a.34.34 0 0 0-.32-.34M9.28 9.77h-.2c-1.25.51-2.66.51-3.91 0H5a3.006 3.006 0 0 0-3.3 2.67v.74c.06.67.63 1.17 1.3 1.15h8.25c.69.06 1.3-.45 1.36-1.14v-.68a3 3 0 0 0-3.23-2.75h-.1zM7.13 3.7c1.46 0 2.64 1.17 2.65 2.63 0 1.46-1.17 2.64-2.63 2.65-1.46 0-2.64-1.17-2.65-2.63A2.65 2.65 0 0 1 7.13 3.7"/></svg>',"user-question-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M5.23 11.14c.86-.66 1.01-1.9.35-2.75s-1.9-1.01-2.75-.35a1.96 1.96 0 0 0 0 3.1c-.72.42-1.16 1.2-1.16 2.03v.8c0 .2.17.37.37.37h3.98c.2 0 .37-.17.37-.37v-.8c0-.83-.44-1.61-1.16-2.03M2.81 9.59c0-.67.55-1.22 1.22-1.22s1.22.55 1.22 1.22-.55 1.22-1.22 1.22-1.22-.55-1.22-1.22m2.83 4H2.41v-.42c0-.89.72-1.62 1.62-1.62s1.62.72 1.62 1.62v.42zm7.13-11.93H8c-.86 0-1.56.7-1.56 1.56v7.16c0 .21.17.37.37.37.08 0 .16-.03.22-.07l1.49-1.12h4.25c.86 0 1.56-.7 1.56-1.56V3.22c0-.86-.7-1.56-1.56-1.56m.82 6.33c0 .45-.37.82-.82.82H8.4a.4.4 0 0 0-.22.07l-1 .75V3.22c0-.45.37-.82.82-.82h4.77c.45 0 .82.37.82.82zm-2.8-.42c0 .23-.18.41-.41.41s-.41-.18-.41-.41.18-.41.41-.41.41.18.41.41m-.41-4.34c-.83 0-1.5.67-1.5 1.5 0 .23.18.41.41.41s.41-.18.41-.41c0-.38.31-.68.69-.68s.68.31.68.69-.31.68-.68.68c-.23 0-.41.18-.41.41v.44c0 .23.18.41.41.41s.41-.18.41-.41v-.09c.8-.23 1.26-1.06 1.04-1.85-.18-.65-.77-1.09-1.44-1.09z"/></svg>',"user-shield":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M2.676 2.768A1 1 0 0 0 2 3.714v4.799a3 3 0 0 0 .154.949l.06.177A7 7 0 0 0 5.1 13.334l2.373 1.508a1 1 0 0 0 1.074-.001l2.361-1.507a7 7 0 0 0 2.875-3.687l.062-.185c.102-.306.154-.627.154-.949V3.714a1 1 0 0 0-.676-.946l-5-1.712a1 1 0 0 0-.648 0zM8 8a2 2 0 1 0 0-4 2 2 0 0 0 0 4m-4.22 2.627a6 6 0 0 0 1.857 1.863l2.373 1.508 2.361-1.507a6 6 0 0 0 1.85-1.862A4 4 0 0 0 9 8.999H7c-1.32 0-2.492.641-3.22 1.628" clip-rule="evenodd"/></svg>',"user-shield-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M10 5.998a2 2 0 1 1-4 0 2 2 0 0 1 4 0m-1 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0" clip-rule="evenodd"/><path fill="currentColor" fill-rule="evenodd" d="M2 3.712a1 1 0 0 1 .676-.946l5-1.712a1 1 0 0 1 .648 0l5 1.712a1 1 0 0 1 .676.946v4.799c0 .322-.052.643-.154.949l-.062.185a7 7 0 0 1-2.875 3.687l-2.36 1.507a1 1 0 0 1-1.075 0l-2.373-1.507a7 7 0 0 1-2.888-3.695l-.06-.177A3 3 0 0 1 2 8.51zm11 0v4.799q0 .324-.103.632l-.061.186a6 6 0 0 1-.614 1.298A4 4 0 0 0 9 8.997H7c-1.32 0-2.492.64-3.22 1.628a6 6 0 0 1-.618-1.304l-.06-.178A2 2 0 0 1 3 8.511V3.712L8 2zM9 9.998a3 3 0 0 1 2.582 1.47c-.355.39-.76.734-1.21 1.021L8.01 13.996l-2.373-1.508a6 6 0 0 1-1.217-1.022A3 3 0 0 1 7 9.998z" clip-rule="evenodd"/></svg>',users:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M7.25 3.335a2.5 2.5 0 1 0 0 4.33A3.5 3.5 0 0 1 6.5 5.5c0-.818.28-1.57.75-2.165M10 3a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5m-5 9.2A3.2 3.2 0 0 1 8.2 9h3.6a3.2 3.2 0 0 1 3.2 3.2.8.8 0 0 1-.8.8H5.8a.8.8 0 0 1-.8-.8M5.48 9H4.2A3.2 3.2 0 0 0 1 12.2a.8.8 0 0 0 .8.8h2.387A1.8 1.8 0 0 1 4 12.2 4.19 4.19 0 0 1 5.48 9"/></svg>',"users-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M7.5 5.5a2.5 2.5 0 1 1 5 0 2.5 2.5 0 0 1-5 0M10 7a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3" clip-rule="evenodd"/><path fill="currentColor" d="M4.2 9h1.28a4.2 4.2 0 0 0-.858 1H4.2a2.2 2.2 0 0 0-2.191 2h1.996a4 4 0 0 0-.005.2c0 .287.067.559.187.8H1.8a.8.8 0 0 1-.8-.8A3.2 3.2 0 0 1 4.2 9"/><path fill="currentColor" fill-rule="evenodd" d="M5 12.2A3.2 3.2 0 0 1 8.2 9h3.6a3.2 3.2 0 0 1 3.2 3.2.8.8 0 0 1-.8.8H5.8a.8.8 0 0 1-.8-.8m6.8-2.2a2.2 2.2 0 0 1 2.191 2H6.009A2.2 2.2 0 0 1 8.2 10z" clip-rule="evenodd"/><path fill="currentColor" d="M6 3c.455 0 .882.122 1.25.335a3.5 3.5 0 0 0-.5.865 1.5 1.5 0 1 0 0 2.6c.125.313.294.604.5.865A2.5 2.5 0 1 1 6 3"/></svg>',wallet:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M1 4a1 1 0 0 1 1-1h11a1 1 0 0 1 1 1v1a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1zm1 0h11v1H2zm9 5a1 1 0 1 1 2 0 1 1 0 0 1-2 0" clip-rule="evenodd"/></svg>',"wallet-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M11 9a1 1 0 1 1 2 0 1 1 0 0 1-2 0"/><path fill="currentColor" fill-rule="evenodd" d="M2 13a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h11a1 1 0 0 1 1 1v1a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1zm0-9h11v1H2zm12 2H2v6h12z" clip-rule="evenodd"/></svg>'};const mt=".mg-u-visually-hidden{position:absolute !important;overflow:hidden !important;width:.1rem !important;height:.1rem !important;padding:0 !important;border:0 !important;margin:-0.1rem !important;clip:rect(0.1rem, 0.1rem, 0.1rem, 0.1rem) !important;clip-path:inset(50%) !important;white-space:nowrap !important}*:focus:not(:focus-visible){outline:none}@media (prefers-reduced-motion){*{animation:none !important;transition:none !important}}/*!\n * @prop --mg-c-icon-border-radius: Defines the border radius of icons. Default value is `50%`.\n */:host{display:inline-flex;vertical-align:middle}.mg-c-icon{color:currentcolor}.mg-c-icon[size=small],.mg-c-icon.mg-c-icon--size-small{width:var(--mg-b-size-12);height:var(--mg-b-size-12)}.mg-c-icon[size=small][class*=mg-c-icon--variant-]:not(.mg-c-icon--variant-style-icon),.mg-c-icon.mg-c-icon--size-small[class*=mg-c-icon--variant-]:not(.mg-c-icon--variant-style-icon){padding:calc((var(--mg-b-size-16) - var(--mg-b-size-12))/2)}.mg-c-icon[size=medium],.mg-c-icon.mg-c-icon--size-medium{width:var(--mg-b-size-16);height:var(--mg-b-size-16)}.mg-c-icon[size=medium][class*=mg-c-icon--variant-]:not(.mg-c-icon--variant-style-icon),.mg-c-icon.mg-c-icon--size-medium[class*=mg-c-icon--variant-]:not(.mg-c-icon--variant-style-icon){padding:calc((var(--mg-b-size-24) - var(--mg-b-size-16))/2)}.mg-c-icon[size=large],.mg-c-icon.mg-c-icon--size-large{width:var(--mg-b-size-20);height:var(--mg-b-size-20)}.mg-c-icon[size=large][class*=mg-c-icon--variant-]:not(.mg-c-icon--variant-style-icon),.mg-c-icon.mg-c-icon--size-large[class*=mg-c-icon--variant-]:not(.mg-c-icon--variant-style-icon){padding:calc((var(--mg-b-size-32) - var(--mg-b-size-20))/2)}.mg-c-icon[size=xlarge],.mg-c-icon.mg-c-icon--size-xlarge{width:var(--mg-b-size-24);height:var(--mg-b-size-24)}.mg-c-icon[size=xlarge][class*=mg-c-icon--variant-]:not(.mg-c-icon--variant-style-icon),.mg-c-icon.mg-c-icon--size-xlarge[class*=mg-c-icon--variant-]:not(.mg-c-icon--variant-style-icon){padding:calc((var(--mg-b-size-40) - var(--mg-b-size-24))/2)}.mg-c-icon[size=xxlarge],.mg-c-icon.mg-c-icon--size-xxlarge{width:var(--mg-b-size-32);height:var(--mg-b-size-32)}.mg-c-icon[size=xxlarge][class*=mg-c-icon--variant-]:not(.mg-c-icon--variant-style-icon),.mg-c-icon.mg-c-icon--size-xxlarge[class*=mg-c-icon--variant-]:not(.mg-c-icon--variant-style-icon){padding:calc((var(--mg-b-size-48) - var(--mg-b-size-32))/2)}.mg-c-icon.mg-c-icon--variant-app.mg-c-icon--variant-style-icon{color:var(--mg-b-color-app)}.mg-c-icon.mg-c-icon--variant-blue.mg-c-icon--variant-style-icon{color:var(--mg-b-color-blue)}.mg-c-icon.mg-c-icon--variant-80.mg-c-icon--variant-style-icon{color:var(--mg-b-color-80)}.mg-c-icon.mg-c-icon--variant-danger.mg-c-icon--variant-style-icon{color:var(--mg-b-color-danger)}.mg-c-icon.mg-c-icon--variant-info.mg-c-icon--variant-style-icon{color:var(--mg-b-color-info)}.mg-c-icon.mg-c-icon--variant-success.mg-c-icon--variant-style-icon{color:var(--mg-b-color-success)}.mg-c-icon.mg-c-icon--variant-warning.mg-c-icon--variant-style-icon{color:var(--mg-b-color-warning)}.mg-c-icon.mg-c-icon--variant-app.mg-c-icon--variant-style-background{background-color:var(--mg-b-color--20, color-mix(in srgb, var(--mg-b-color-app), white 80%))}.mg-c-icon.mg-c-icon--variant-blue.mg-c-icon--variant-style-background{background-color:var(--mg-b-color--20, color-mix(in srgb, var(--mg-b-color-blue), white 80%))}.mg-c-icon.mg-c-icon--variant-80.mg-c-icon--variant-style-background{background-color:var(--mg-b-color--20, color-mix(in srgb, var(--mg-b-color-80), white 80%))}.mg-c-icon.mg-c-icon--variant-danger.mg-c-icon--variant-style-background{background-color:var(--mg-b-color-red-20, color-mix(in srgb, var(--mg-b-color-danger), white 80%))}.mg-c-icon.mg-c-icon--variant-info.mg-c-icon--variant-style-background{background-color:var(--mg-b-color-blue-20, color-mix(in srgb, var(--mg-b-color-info), white 80%))}.mg-c-icon.mg-c-icon--variant-success.mg-c-icon--variant-style-background{background-color:var(--mg-b-color-green-20, color-mix(in srgb, var(--mg-b-color-success), white 80%))}.mg-c-icon.mg-c-icon--variant-warning.mg-c-icon--variant-style-background{background-color:var(--mg-b-color-yellow-20, color-mix(in srgb, var(--mg-b-color-warning), white 80%))}.mg-c-icon.mg-c-icon--variant-app.mg-c-icon--variant-style-full{color:var(--mg-b-color-app);background-color:var(--mg-b-color--20, color-mix(in srgb, var(--mg-b-color-app), white 80%))}.mg-c-icon.mg-c-icon--variant-blue.mg-c-icon--variant-style-full{color:var(--mg-b-color-blue);background-color:var(--mg-b-color--20, color-mix(in srgb, var(--mg-b-color-blue), white 80%))}.mg-c-icon.mg-c-icon--variant-80.mg-c-icon--variant-style-full{color:var(--mg-b-color-80);background-color:var(--mg-b-color--20, color-mix(in srgb, var(--mg-b-color-80), white 80%))}.mg-c-icon.mg-c-icon--variant-danger.mg-c-icon--variant-style-full{color:var(--mg-b-color-danger);background-color:var(--mg-b-color-red-20, color-mix(in srgb, var(--mg-b-color-danger), white 80%))}.mg-c-icon.mg-c-icon--variant-info.mg-c-icon--variant-style-full{color:var(--mg-b-color-info);background-color:var(--mg-b-color-blue-20, color-mix(in srgb, var(--mg-b-color-info), white 80%))}.mg-c-icon.mg-c-icon--variant-success.mg-c-icon--variant-style-full{color:var(--mg-b-color-success);background-color:var(--mg-b-color-green-20, color-mix(in srgb, var(--mg-b-color-success), white 80%))}.mg-c-icon.mg-c-icon--variant-warning.mg-c-icon--variant-style-full{color:var(--mg-b-color-warning);background-color:var(--mg-b-color-yellow-20, color-mix(in srgb, var(--mg-b-color-warning), white 80%))}.mg-c-icon[class*=mg-c-icon--variant-]{overflow:visible;border-radius:var(--mg-c-icon-border-radius)}.mg-c-icon--spin{animation-duration:.75s;animation-iteration-count:infinite;animation-name:rotate}@keyframes rotate{to{transform:rotate(360deg)}}";const dt=mt;const ut=class{constructor(e){t(this,e);this.size="medium";this.spin=false;this.classCollection=new s(["mg-c-icon"]);this.setDefaultVariantStyle=()=>{if(this.variantStyle===undefined)this.variantStyle="background"};this.renderIcon=t=>{this.element.shadowRoot.innerHTML=gt[t];this.svg=this.element.shadowRoot.querySelector("svg");this.svg.setAttribute("aria-hidden","true");this.svg.setAttribute("focusable","false");this.svg.setAttribute("class",this.classCollection.join())}}validateIcon(t,e){if(!Object.keys(gt).includes(t))throw new Error(`<mg-icon> prop "icon" must be one of: ${Object.keys(gt).join(", ")}. Passed value: ${r(t)}.`);else{if(e!==undefined)this.classCollection.delete(`mg-c-icon--${e}`);this.classCollection.add(`mg-c-icon--${t}`);this.renderIcon(t)}}validateSize(t,e){if(!lt.includes(t))throw new Error(`<mg-icon> prop "size" must be one of: ${lt.join(", ")}. Passed value: ${r(t)}.`);else{if(e!==undefined)this.classCollection.delete(`mg-c-icon--size-${e}`);this.classCollection.add(`mg-c-icon--size-${t}`)}}validateVariant(t,e){if(t!==undefined){if(!ct.includes(t))throw new Error(`<mg-icon> prop "variant" must be one of: ${ct.join(", ")}. Passed value: ${r(t)}.`);else{this.setDefaultVariantStyle();if(e!==undefined)this.classCollection.delete(`mg-c-icon--variant-${e}`);this.classCollection.add(`mg-c-icon--variant-${t}`)}}}validateVariantStyle(t,e){if(t!==undefined){if(!ht.includes(t))throw new Error(`<mg-icon> prop "variantStyle" must be one of: ${ht.join(", ")}. Passed value: ${r(t)}.`);else{if(e!==undefined)this.classCollection.delete(`mg-c-icon--variant-style-${e}`);this.classCollection.add(`mg-c-icon--variant-style-${t}`)}}}handleSpin(t){if(t){this.classCollection.add("mg-c-icon--spin")}else{this.classCollection.delete("mg-c-icon--spin")}}componentWillLoad(){this.validateIcon(this.icon);this.validateSize(this.size);this.validateVariant(this.variant);this.validateVariantStyle(this.variantStyle);this.handleSpin(this.spin);this.renderIcon(this.icon)}componentWillUpdate(){this.svg.setAttribute("class",this.classCollection.join())}get element(){return a(this)}static get watchers(){return{icon:["validateIcon"],size:["validateSize"],variant:["validateVariant"],variantStyle:["validateVariantStyle"],spin:["handleSpin"]}}};ut.style=dt;const pt="/*!\n * @prop --mg-c-illustrated-message-spacing-vertical: Defines the vertical padding of the illustrated message. Default value: `--mg-b-size-40`.\n */.mg-c-illustrated-message{display:flex;max-width:calc(60*var(--mg-b-size-8));box-sizing:border-box;flex-direction:column;justify-content:center;padding:var(--mg-c-illustrated-message-spacing-vertical) var(--mg-b-size-16);margin:auto;gap:var(--mg-b-size-32) var(--mg-b-size-64);text-align:center}.mg-c-illustrated-message__illustration{max-height:calc(23*var(--mg-b-size-8))}.mg-c-illustrated-message__illustration ::slotted([slot=illustration]){width:100%;max-width:100%;height:auto;max-height:calc(23*var(--mg-b-size-8))}.mg-c-illustrated-message__illustration.mg-c-illustrated-message__illustration--small{max-height:var(--mg-b-size-64)}.mg-c-illustrated-message__illustration.mg-c-illustrated-message__illustration--small ::slotted([slot=illustration]){max-height:var(--mg-b-size-64)}.mg-c-illustrated-message.mg-c-illustrated-message--horizontal{max-width:unset;flex-flow:row wrap;align-items:center}.mg-c-illustrated-message.mg-c-illustrated-message--horizontal .mg-c-illustrated-message__slots,.mg-c-illustrated-message.mg-c-illustrated-message--horizontal .mg-c-illustrated-message__illustration{max-width:calc(60*var(--mg-b-size-8))}.mg-c-illustrated-message__title ::slotted([slot=title]){margin:0;font-family:var(--mg-b-font-family) !important;font-size:var(--mg-b-font-size-h2) !important;font-weight:400 !important}.mg-c-illustrated-message__details ::slotted([slot=details]){margin:var(--mg-b-size-16) 0 0}";const vt=pt;const ft=class{constructor(e){t(this,e);this.size="medium";this.direction="vertical"}componentDidLoad(){const t=["h1","h2","h3","h4","h5","h6"];const e=this.element.querySelectorAll('[slot="illustration"]');if(!g(this.element.querySelector('[slot="title"]'),t)){throw new Error(`<mg-illustrated-message> Slotted title must be a heading: ${t.join(", ")}.`)}else if(e.length!==1){throw new Error("<mg-illustrated-message> Slotted illustration must be present and unique.")}e[0].setAttribute("aria-hidden","true")}render(){return e("div",{key:"ae59b32d798c888eef5f2b3464160177b7a2e9d8",class:{"mg-c-illustrated-message":true,"mg-c-illustrated-message--horizontal":this.direction==="horizontal"}},e("div",{key:"05d260716090d503dde8e0dddc79db0a5f553f0b",class:{"mg-c-illustrated-message__illustration":true,"mg-c-illustrated-message__illustration--small":this.size==="small"}},e("slot",{key:"119f517d66d9d4fe1bbc84341fccab9db1070c06",name:"illustration"})),e("div",{key:"cc00f05411b3d8103e566d01d48a6ab66438027c",class:"mg-c-illustrated-message__slots"},e("div",{key:"1832b69ce391c8c018bfc3acad75ded56dc0d484",class:"mg-c-illustrated-message__title"},e("slot",{key:"d0dfb8c433246571c140797f99f434cb64c67e7e",name:"title"})),e("div",{key:"75b18511e74d1d4d049e698c3fb43ad4f00450c3",class:"mg-c-illustrated-message__details"},e("slot",{key:"78e11fa31da149666973e03fe707e302d60f8989",name:"details"}))))}get element(){return a(this)}};ft.style=vt;const bt=[2,4,16,"full"];const wt=["input","label"];const _t="mg-c-input--fieldset";const xt="mg-c-input--disabled";const zt="mg-c-input--readonly";const yt="mg-c-input--vertical-list";const kt=".mg-u-visually-hidden{position:absolute !important;overflow:hidden !important;width:.1rem !important;height:.1rem !important;padding:0 !important;border:0 !important;margin:-0.1rem !important;clip:rect(0.1rem, 0.1rem, 0.1rem, 0.1rem) !important;clip-path:inset(50%) !important;white-space:nowrap !important}*:focus:not(:focus-visible){outline:none}@media (prefers-reduced-motion){*{animation:none !important;transition:none !important}}/*!\n * @prop --mg-c-input-border-width: Defines the width of the input border. Default value is `--mg-b-size-border`.\n * @prop --mg-c-input-border-radius: Defines the border radius of the input. Default value is `--mg-b-size-radius`.\n * @prop --mg-c-input-color-border: Defines the color of the input border. Default value is `rgb(181, 194, 201)`.\n * @prop --mg-c-input-placeholder-color-text: Defines the color of the placeholder text. Default value is `rgb(181, 194, 201)`.\n * @prop --mg-c-input-color-box-shadow-focus: Defines the shadow color of the input when focused. Default value is `rgba(0, 221, 255, 0.5)`.\n * @prop --mg-c-input-error-color-background: Defines the background color of the input error message. Default value is `color-mix(in srgb, var(--mg-b-color-danger), white 95%)`.\n * @prop --mg-c-input-toggle-border-radius-ratio: Defines the border radius ratio of the input toggle. Default value is `2`.\n * @prop --mg-c-input-check-size: Defines the size of the input check. Default value is `--mg-b-size-16`.\n */:host{display:block}.mg-c-input__input mg-icon,.mg-c-input__error mg-icon{display:flex}.mg-c-input{display:flex;min-height:var(--mg-b-size-min-height);align-items:flex-start}.mg-c-input__input-container{width:100%;min-height:var(--mg-b-size-min-height)}.mg-c-input__input-container mg-tooltip{display:inline-flex;width:var(--mg-b-size-16);height:var(--mg-b-size-16);margin-left:var(--mg-b-size-8)}@media print{.mg-c-input__input-container mg-tooltip{display:none}}.mg-c-input__input{display:flex;min-height:var(--mg-b-size-min-height);align-items:center;justify-content:start}.mg-c-input__input mg-tooltip{align-self:baseline;margin-top:calc((var(--mg-b-size-min-height) - var(--mg-b-size-16))/2)}.mg-c-input__input ::slotted(.mg-c-input__button-toggle:disabled){opacity:var(--mg-b-opacity-element-disabled)}.mg-c-input__title{display:flex;width:var(--mg-c-input-title-width, auto);flex-shrink:0;align-items:baseline;justify-content:flex-end;margin-top:calc((var(--mg-b-size-min-height) - var(--mg-b-font-size)*var(--mg-b-line-height))/2);margin-right:var(--mg-c-input-title-horizontal-space, var(--mg-b-size-8));text-align:right}.mg-c-input__title slot[name=label]+mg-tooltip{margin-left:var(--mg-b-size-4)}.mg-c-input__title mg-icon{display:inline-flex;vertical-align:text-bottom}.mg-c-input__error{display:inline-block;padding:var(--mg-b-size-4) var(--mg-b-size-8);border-radius:var(--mg-b-size-radius);background:var(--mg-c-input-error-color-background);color:var(--mg-b-color-danger)}.mg-c-input__error ::slotted(*),.mg-c-input__help-text ::slotted(*){font-size:var(--mg-b-font-size-small);text-align:start}:host(:not(.mg-c-input--textarea)) .mg-c-input__input+.mg-c-input__error,:host(:not(.mg-c-input--textarea)) .mg-c-input__input+.mg-c-input__help-text{margin-top:var(--mg-b-size-4)}:host(.mg-c-input.mg-c-input--readonly) .mg-c-input__input mg-tooltip{margin-top:calc((var(--mg-b-size-min-height) - var(--mg-b-font-size)*var(--mg-b-line-height))/2)}:host(.mg-c-input){display:flex;margin-bottom:var(--mg-c-input-margin-bottom, 0)}:host(.mg-c-input.mg-c-input--checkbox) .mg-c-input__input,:host(.mg-c-input.mg-c-input--radio) .mg-c-input__input{min-height:unset;align-items:flex-start}:host(.mg-c-input.mg-c-input--checkbox,.mg-c-input.mg-c-input--radio) .mg-c-input__input{min-height:unset}:host(.mg-c-input.mg-c-input--fieldset:not(.mg-c-input--checkbox-multi,.mg-c-input--readonly)) .mg-c-input__input-container mg-tooltip{margin-left:var(--mg-b-size-32)}:host(.mg-c-input.mg-c-input--label-on-top){flex-direction:column}:host(.mg-c-input.mg-c-input--label-on-top) .mg-c-input__title{width:100%;flex:0;justify-content:flex-start;margin-top:0;margin-right:0;margin-bottom:var(--mg-b-size-4);text-align:left}:host(.mg-c-input.mg-c-input--label-on-top) .mg-c-input__title ::slotted(mg-input-title){flex-shrink:1}@media screen and (max-width: 767px){:host(.mg-c-input){flex-direction:column}:host(.mg-c-input) .mg-c-input__title{width:100%;flex:0;justify-content:flex-start;margin-top:0;margin-right:0;margin-bottom:var(--mg-b-size-4);text-align:left}:host(.mg-c-input) .mg-c-input__title ::slotted(mg-input-title){flex-shrink:1}}";const Ht=kt;const Mt=class{constructor(i){t(this,i);this.slotLabel="label";this.slotError="error";this.slotHelpText="help-text";this.classInput="mg-c-input";this.classHasError="mg-c-input--has-error";this.classLabelOnTop="mg-c-input--label-on-top";this.labelHide=false;this.tooltipPosition="input";this.required=false;this.isFieldset=false;this.isReadonly=false;this.isDisabled=false;this.isVerticalList=false;this.renderTooltip=()=>e("mg-tooltip",{identifier:`${this.identifier}-tooltip`,message:this.tooltip},e("mg-icon",{icon:"info-circle"}))}watchIdentifier(t){if(!l(t)){throw new Error(`<mg-input> prop "identifier" is required and must be a string. Passed value: ${r(t)}.`)}else if(!h(t)){console.error(`<mg-input> prop "identifier" value is invalid. Passed value: ${r(t)}.`)}else{this.helpTextId=`${this.identifier}-help-text`;this.helpTextErrorId=`${this.identifier}-error`}}watchLabelOnTop(t){if(t){this.element.classList.add(this.classLabelOnTop)}else{this.element.classList.remove(this.classLabelOnTop)}}watchLabelConfig(){if(this.labelHide&&this.labelOnTop){throw new Error('<mg-input> prop "labelOnTop" must not be paired with the prop "labelHide".')}}watchTooltipPosition(t){if(!wt.includes(t)){throw new Error(`<mg-input> prop "tooltipPosition" must be one of: ${wt.join(", ")}. Passed value: ${r(t)}.`)}}watchErrorMessage(t){var e;if(t!==undefined){this.element.classList.add(this.classHasError);this.renderErrorMessage()}else{this.element.classList.remove(this.classHasError);(e=this.errorMessageSlotElement)===null||e===void 0?void 0:e.remove();this.errorMessageSlotElement=undefined}}watchHelpText(t){var e;if(t&&!this.isReadonly){this.renderHelpText()}else{(e=this.helptextMessageSlotElement)===null||e===void 0?void 0:e.remove();this.helptextMessageSlotElement=undefined}}watchAriaDescribedbyIDs(){if(this.isReadonly)return;const t=new Set(this.ariaDescribedbyIDs);if(this.helpText!==undefined){this.renderHelpText();if(!t.has(this.helpTextId))t.add(this.helpTextId)}if(this.errorMessage!==undefined){this.renderErrorMessage();if(!t.has(this.helpTextErrorId))t.add(this.helpTextErrorId)}this.element.querySelectorAll('input,select,textarea,[role="switch"]').forEach((e=>{if(t.size)e.setAttribute("aria-describedby",Array.from(t).join(" "));else e.removeAttribute("aria-describedby")}))}watchClass(){if(!this.element.classList.contains(this.classInput)){this.element.classList.add(this.classInput)}this.isFieldset=this.element.classList.contains(_t);this.isReadonly=this.element.classList.contains(zt);this.isDisabled=this.element.classList.contains(xt);this.isVerticalList=this.element.classList.contains(yt)}watchLabel(){if(!l(this.label)){throw new Error(`<mg-input> prop "label" is required and must be a string. Passed value: ${r(this.label)}.`)}else{this.watchAriaDescribedbyIDs();this.renderLabel()}}renderLabel(){let t=this.element.querySelector(`[slot=${this.slotLabel}]`);t===null||t===void 0?void 0:t.remove();t=document.createElement("mg-input-title");[["slot",this.slotLabel],["identifier",this.identifier],["readonly",this.isReadonly.toString()],["required",(this.required&&!this.isDisabled||false).toString()],["is-legend",this.isFieldset.toString()]].forEach((([e,i])=>{t.setAttribute(e,i)}));const e=document.createElement("span");e.classList.add("mg-c-input-title__text");e.textContent=this.label;t.appendChild(e);this.element.appendChild(t)}renderErrorMessage(){this.errorMessageSlotElement=this.element.querySelector(`[slot=${this.slotError}]`);if(this.errorMessageSlotElement===null){this.errorMessageSlotElement=document.createElement("div");this.errorMessageSlotElement.setAttribute("slot",this.slotError);this.element.appendChild(this.errorMessageSlotElement)}this.errorMessageSlotElement.setAttribute("id",this.helpTextErrorId);this.errorMessageSlotElement.innerHTML=this.errorMessage}renderHelpText(){this.helptextMessageSlotElement=this.element.querySelector(`[slot=${this.slotHelpText}]`);if(this.helptextMessageSlotElement===null){this.helptextMessageSlotElement=document.createElement("div");this.helptextMessageSlotElement.setAttribute("slot",this.slotHelpText);this.element.appendChild(this.helptextMessageSlotElement)}this.helptextMessageSlotElement.setAttribute("id",this.helpTextId);this.helptextMessageSlotElement.innerHTML=this.helpText}componentWillLoad(){this.watchIdentifier(this.identifier);this.watchLabel();this.watchClass();this.watchLabelOnTop(this.labelOnTop);this.watchLabelConfig();this.watchTooltipPosition(this.tooltipPosition);this.watchHelpText(this.helpText);this.watchErrorMessage(this.errorMessage)}componentDidLoad(){this.watchAriaDescribedbyIDs();if(!this.isReadonly&&!this.isFieldset&&this.element.querySelector(`#${this.identifier}`)===null){throw new Error(`<mg-input> "identifier" prop has no target for id: ${this.identifier}. Add an id to the targeted input.`)}}render(){const t=this.isFieldset&&!this.isReadonly;return e(i,{key:"2b69235bf675e431e61261d1a4465e216675bbb2",class:this.element.classList.toString(),role:t?"group":undefined,"aria-labelledby":t?`${this.identifier}-title`:undefined},e("div",{key:"7cbe4343e2d6ebbad943b4562c69b8e2f583fe23",class:{"mg-c-input__title":true,"mg-u-visually-hidden":this.labelHide}},e("slot",{key:"af2c9482dd4a66c62047edc8fecef17efeeb6537",name:this.slotLabel}),this.tooltip&&(this.tooltipPosition==="label"||this.labelOnTop)&&!this.labelHide&&this.renderTooltip()),e("div",{key:"b48eaa21ea25c08b3a04c1f0d22c9c59bd535e26",class:"mg-c-input__input-container"},e("div",{key:"3f61784438dd63b5ccf7fd8cbb50b51ae3ac982e",class:"mg-c-input__input"},e("slot",{key:"05bed4a07201b7fe65c82886ebf8ac63b004be4e"}),this.tooltip&&!this.labelOnTop&&(this.tooltipPosition==="input"||this.labelHide)&&this.renderTooltip()),this.helptextMessageSlotElement&&e("div",{key:"b27e2ae017422b7408780521a1d38f9b094c341c",class:"mg-c-input__help-text"},e("slot",{key:"3798d38bcbdabfeec3b0e9f97c2074734ffd7149",name:this.slotHelpText})),!this.isDisabled&&this.errorMessage&&e("div",{key:"70f4ea8fda4fb884934e3d3c9d34c67eb6db9ab9",class:"mg-c-input__error","aria-live":"assertive"},e("slot",{key:"90c13c82e7b7a9c820bcab5cdad7f09ce95b8512",name:this.slotError}))))}get element(){return a(this)}static get watchers(){return{identifier:["watchIdentifier","watchAriaDescribedbyIDs"],labelOnTop:["watchLabelOnTop","watchLabelConfig"],labelHide:["watchLabelConfig"],tooltipPosition:["watchTooltipPosition"],errorMessage:["watchErrorMessage","watchAriaDescribedbyIDs"],helpText:["watchHelpText","watchAriaDescribedbyIDs"],ariaDescribedbyIDs:["watchAriaDescribedbyIDs"],class:["watchClass","watchLabel"],label:["watchLabel"],required:["watchLabel"],isReadonly:["watchLabel"],isFieldset:["watchLabel"]}}};Mt.style=Ht;const Ct=["checkbox","multi"];const Vt={SELECTED:"selected",NOT_SELECTED:"not-selected"};const Lt=t=>e("ul",{class:"mg-c-input__input-group-container",role:"list","aria-describedby":t.displaySearchInput?"search-results":undefined,"aria-label":t.displaySearchInput?t.messages.searchResults:undefined,"aria-live":t.displaySearchInput?"polite":undefined,id:t.id},t.checkboxes.map((i=>{var a,n;return e("li",{key:i._id,class:{"mg-c-input__input-group":true,"mg-c-input__input-group--disabled":t.disabled||i.disabled}},e("input",{type:"checkbox",id:i._id,name:t.name,value:(a=i.value)===null||a===void 0?void 0:a.toString(),checked:Boolean(i.value),required:i.required,"aria-invalid":((n=t.invalid)===null||n===void 0?void 0:n.toString())||"false",disabled:t.disabled||i.disabled,indeterminate:i.value===null,onInput:i._handleInput,onBlur:i._handleBlur,onKeyDown:i._handleKeydown}),e("label",{htmlFor:i._id},i.title))})));const Bt=".mg-c-input__readonly-value{min-height:var(--mg-b-font-size);align-self:flex-start;margin-top:calc((var(--mg-b-size-min-height) - var(--mg-b-font-size)*var(--mg-b-line-height))/2);word-break:break-word}.mg-c-input.mg-c-input--fieldset{padding:0;border:0;margin-right:0;margin-left:0}.mg-c-input.mg-c-input--fieldset input[type=radio],.mg-c-input.mg-c-input--fieldset input[type=checkbox]{width:var(--mg-c-input-check-size);height:var(--mg-c-input-check-size);flex-shrink:0;margin:calc((var(--mg-b-font-size)*var(--mg-b-line-height) - var(--mg-c-input-check-size))/2) var(--mg-b-size-8) 0 0}.mg-c-input.mg-c-input--fieldset .mg-c-input__input-group{display:flex;align-items:start}.mg-c-input.mg-c-input--fieldset .mg-c-input__input-group-container{display:flex;flex-wrap:wrap;padding:0;margin:0;margin-top:calc((var(--mg-b-size-min-height) - var(--mg-b-font-size)*var(--mg-b-line-height))/2);gap:var(--mg-b-size-12) var(--mg-b-size-24);list-style:none}.mg-c-input.mg-c-input--fieldset .mg-c-input__input-group.mg-c-input__input-group--disabled label{opacity:var(--mg-b-opacity-element-disabled)}.mg-c-input.mg-c-input--fieldset.mg-c-input--vertical-list .mg-c-input__input-group-container,.mg-c-input.mg-c-input--fieldset.mg-c-input--checkbox-multi .mg-c-input__input-group-container{flex-direction:column}.mg-c-input.mg-c-input--fieldset.mg-c-input--label-on-top .mg-c-input__input-group-container{margin-top:var(--mg-b-size-8)}.mg-u-visually-hidden{position:absolute !important;overflow:hidden !important;width:.1rem !important;height:.1rem !important;padding:0 !important;border:0 !important;margin:-0.1rem !important;clip:rect(0.1rem, 0.1rem, 0.1rem, 0.1rem) !important;clip-path:inset(50%) !important;white-space:nowrap !important}*:focus:not(:focus-visible){outline:none}@media (prefers-reduced-motion){*{animation:none !important;transition:none !important}}.mg-c-input.mg-c-input--checkbox-multi .mg-c-input__input-group-container{padding:var(--mg-b-size-4) var(--mg-b-size-8);margin:0}.mg-c-input.mg-c-input--checkbox-multi .mg-c-input__input-container{display:flex;width:unset;flex:unset;flex-wrap:wrap;column-gap:var(--mg-b-size-8)}.mg-c-input.mg-c-input--checkbox-multi .mg-c-input__input-container-list{display:flex;flex-flow:row wrap;padding:0;margin:0;gap:var(--mg-b-size-4);list-style:none}.mg-c-input.mg-c-input--checkbox-multi .mg-c-input__sections{max-height:80vh;padding-right:var(--mg-b-size-8);overflow-y:auto}.mg-c-input.mg-c-input--checkbox-multi .mg-c-input__section-header{display:flex;min-height:var(--mg-b-size-min-height);flex-wrap:wrap;flex-wrap:nowrap;align-items:center;gap:var(--mg-b-size-8);text-wrap:nowrap}.mg-c-input.mg-c-input--checkbox-multi .mg-c-input__section-header-tootlip{display:inline-block;width:auto;height:auto;margin:0}.mg-c-input.mg-c-input--checkbox-multi .mg-c-input__section-header-title{display:inline;margin:0;color:var(--mg-b-color-neutral-80)}.mg-c-input.mg-c-input--checkbox-multi .mg-c-input__section-header-title-label{font-size:var(--mg-b-font-size)}.mg-c-input.mg-c-input--checkbox-multi .mg-c-input__section-header-title--static.mg-c-input__section-header-title{margin:0 var(--mg-b-size-12)}.mg-c-input.mg-c-input--checkbox-multi .mg-c-input__input-value{display:inline-flex;min-width:var(--mg-b-size-min-height);min-height:var(--mg-b-size-min-height);box-sizing:border-box;align-items:center;justify-content:center;padding:calc((var(--mg-b-size-min-height) - 2*var(--mg-b-size-border) - var(--mg-b-font-size)*var(--mg-b-line-height))/2) var(--mg-b-size-12);border-radius:var(--mg-b-size-4);background-color:var(--mg-b-color-neutral-20);font-size:var(--mg-b-font-size)}.mg-c-input.mg-c-input--checkbox-multi .mg-c-input__input-no-result{text-align:center}.mg-c-input.mg-c-input--checkbox-multi b{margin-top:calc((var(--mg-b-size-min-height) - var(--mg-b-font-size)*var(--mg-b-line-height))/2)}.mg-c-input.mg-c-input--checkbox-multi.mg-c-input--disabled .mg-c-input__input-container b{opacity:var(--mg-b-opacity-element-disabled)}.mg-c-input.mg-c-input--checkbox-multi.mg-c-input--with-values .mg-c-input__input-container{gap:var(--mg-b-size-4)}.mg-c-input.mg-c-input--checkbox-multi.mg-c-input--search-mode .mg-c-input__content{display:flex;width:calc(var(--mg-b-size-floating-element-max-width) - var(--mg-b-size-16));height:calc(50*var(--mg-b-size-8));flex-direction:column;gap:var(--mg-b-size-8)}.mg-c-input.mg-c-input--checkbox-multi:not(.mg-c-input--label-on-top) mg-tooltip:not(.mg-c-input__section-header-tootlip){margin-left:var(--mg-b-size-8)}.mg-c-input.mg-c-input--checkbox-multi mg-popover{--mg-c-card-spacing:var(--mg-b-size-8)}.mg-c-input.mg-c-input--readonly ul{display:flex;min-height:var(--mg-b-font-size);flex-flow:column wrap;padding:0;margin:calc((var(--mg-b-size-min-height) - var(--mg-b-font-size)*var(--mg-b-line-height))/2) 0 0;list-style:none;row-gap:var(--mg-b-size-8)}";const Dt=Bt;const $t=t=>Array.isArray(t)&&t.every((t=>typeof t==="object"&&typeof t.title==="string"&&(t.value===null||typeof t.value==="boolean")&&t.value!==undefined));const At=class{constructor(i){t(this,i);this.valueChange=n(this,"value-change",7);this.inputValid=n(this,"input-valid",7);this.hasDisplayedError=false;this.mode="custom";this.baseClassName="mg-c-input--checkbox";this.classTypeMulti="mg-c-input--checkbox-multi";this.classWithValues="mg-c-input--with-values";this.classSearchMode="mg-c-input--search-mode";this.multiStart=5;this.searchStart=10;this.hasOpenedPopover=false;this.name=this.identifier;this.labelHide=false;this.inputVerticalList=false;this.required=false;this.readonly=false;this.disabled=false;this.tooltipPosition="input";this.classCollection=new s([this.baseClassName,_t]);this.checkboxItems=[];this.searchValue="";this.searchResults=[];this.selectValuesButtonKey="editButton";this.handleInput=t=>{this.updateCheckboxItems("value",Boolean(t.target.checked),(e=>e._id===t.target.id));this.updateValues();this.checkValidity();this.setErrorMessage()};this.handleKeydown=t=>{var e;if(t.key==="Tab"&&((e=this.mgPopover)===null||e===void 0?void 0:e.display)){if(Boolean(this.searchInput)&&t.shiftKey&&this.searchInput.id===t.target.id){this.mgPopover.display=false;return}const e=Array.from(this.element.shadowRoot.querySelectorAll("input")).filter((t=>!t.hasAttribute("disabled"))).map((({id:t})=>t));const i=e.findIndex((e=>e===t.target.id));if(i+1>=e.length&&!t.shiftKey||i===0&&t.shiftKey&&this.searchInput===undefined)this.mgPopover.display=false}};this.handleBlur=()=>{this.checkValidity();this.setErrorMessage()};this.handleSearchChange=t=>{this.searchValue=t.detail;t.stopPropagation()};this.handleMgPopoverDisplayChange=t=>{this.hasOpenedPopover=t.detail;this.setButtonTextKey();if(!t.detail){this.searchValue="";Array.from(this.element.shadowRoot.querySelectorAll("mg-input-checkbox-paginated")).forEach((t=>{t.currentPage=1}));this.checkValidity()}};this.handleMassAction=t=>{const e=this.getDisplayItems();e.forEach((e=>{e.value=t.detail!==Vt.SELECTED}));this.updateValues()};this.updateValues=()=>{this.value=this.checkboxItems.map((t=>{delete t._handleBlur;delete t._handleInput;delete t._handleKeydown;delete t._id;return t}))};this.hasInvalidInput=()=>Array.from(this.element.shadowRoot.querySelectorAll('input[type="checkbox"]')).some((t=>!t.disabled&&!t.checkValidity()));this.updateSearchResults=()=>{this.searchResults=this.checkboxItems.filter((t=>m(t.title).includes(m(this.searchValue))))};this.validateRequired=()=>!this.required||this.checkboxItems.some((({value:t})=>t));this.checkValidity=()=>{this.setValidity(this.readonly||this.disabled||!this.hasInvalidInput()&&this.validateRequired())};this.setButtonTextKey=()=>{if(this.hasOpenedPopover)return;let t="editButton";if(this.disabled)t="showButton";else if(this.getSelectedItems().length<1)t="selectButton";this.selectValuesButtonKey=t};this.getSelectValuesButtonMessage=()=>{if(this.selectValuesButtonKey==="editButton"&&l(this.editButtonMessage)){return this.editButtonMessage}else if(this.selectValuesButtonKey==="showButton"&&l(this.showButtonMessage)){return this.showButtonMessage}else if(this.selectValuesButtonKey==="selectButton"&&l(this.selectButtonMessage)){return this.selectButtonMessage}else{return this.messages.input.checkbox[this.selectValuesButtonKey]}};this.setErrorMessage=(t=true,e)=>{this.errorMessage=undefined;if(t&&!this.valid){if(e!==undefined)this.errorMessage=e;else if(!this.validateRequired())this.errorMessage=this.messages.errors.required}};this.getMgPopoverIdentifier=()=>`${this.identifier}-input-mg-popover`;this.getDisplayItems=()=>this.searchValue.length>0?this.searchResults:this.checkboxItems;this.getSelectedItems=()=>this.checkboxItems.filter((({value:t})=>t));this.renderReadonly=t=>this.inputVerticalList?e("ul",{class:"mg-c-input__readonly-value"},t.map((t=>e("li",{key:t},e("b",null,t))))):e("b",{class:"mg-c-input__readonly-value"},t.join(", "));this.renderMgInputCheckboxList=()=>e(Lt,{checkboxes:this.checkboxItems,displaySearchInput:this.displaySearchInput,messages:this.messages.input.checkbox,id:"checkboxes-list",disabled:this.disabled,name:this.name,invalid:this.invalid})}validateValue(t){if($t(t)){this.checkboxItems=t.map(((t,e)=>Object.assign(Object.assign({},t),{_id:`${this.identifier}_${e}`,_handleInput:this.handleInput.bind(this),_handleBlur:this.handleBlur.bind(this),_handleKeydown:this.handleKeydown.bind(this)})));this.valueChange.emit(t)}else{throw new Error(`<mg-input-checkbox> prop "value" is required and all values must be the same type, CheckboxItem. Passed value: ${r(t)}.`)}}validateType(t){if(t!==undefined&&!Ct.includes(t)){throw new Error(`<mg-input-checkbox> prop "type" must be a CheckboxType. Passed value: ${r(t)}.`)}else if(t===undefined){this.mode="auto";this.type=Ct[0]}else if(t==="multi"){this.classCollection.add(this.classTypeMulti);this.element.dataset.mgPopoverGuard=this.getMgPopoverIdentifier()}else{this.classCollection.delete(this.classTypeMulti)}}watchInputVerticalList(t){if(t)this.classCollection.add(yt);else this.classCollection.delete(yt)}watchReadonly(t){if(t)this.classCollection.add(zt);else this.classCollection.delete(zt)}watchDisplaySelectedValues(t){if(t)this.classCollection.add(this.classWithValues);else this.classCollection.delete(this.classWithValues)}handleValidityChange(t,e,i){if(i!=="readonly")this.updateCheckboxItems(i,t);this.checkValidity();if(this.hasDisplayedError){this.hasDisplayedError=i!=="required";this.setErrorMessage(this.hasDisplayedError)}this.setButtonTextKey()}validateDisabled(t){if(t)this.classCollection.add(xt);else this.classCollection.delete(xt)}validateCheckboxItems(t){if(this.mode==="auto")this.type=t.length>this.multiStart?"multi":"checkbox";this.displaySearchInput=this.type==="multi"&&t.length>this.searchStart;if(this.displaySearchInput)this.updateSearchResults();this.setButtonTextKey()}watchDisplaySearchInput(t){if(t)this.classCollection.add(this.classSearchMode);else this.classCollection.delete(this.classSearchMode)}validateSearchValue(){this.updateSearchResults()}displayError(){return new Promise((t=>{requestAnimationFrame((()=>{this.checkValidity();this.setErrorMessage();this.hasDisplayedError=this.invalid;t()}))}))}async setError(t,e){if(typeof t!=="boolean"){throw new Error('<mg-input-checkbox> method "setError()" param "valid" must be a boolean.')}else if(!l(e)){throw new Error('<mg-input-checkbox> method "setError()" param "errorMessage" must be a string.')}else{this.setValidity(t);this.setErrorMessage(undefined,t?undefined:e);this.hasDisplayedError=this.invalid}}async reset(){if(!this.readonly){this.value=this.value.map((t=>Object.assign(Object.assign({},t),{value:false})));this.checkValidity();this.errorMessage=undefined;this.hasDisplayedError=false}}setValidity(t){const e=this.valid;this.valid=t;this.invalid=!this.valid;if(this.valid!==e)this.inputValid.emit(this.valid)}updateCheckboxItems(t,e,i){this.checkboxItems=this.checkboxItems.map((a=>{if(typeof i==="function"&&i(a)||i===undefined)a[t]=e;return a}))}componentWillLoad(){this.messages=k(this.element).messages;this.validateType(this.type);this.validateValue(this.value);this.validateDisabled(this.disabled);this.watchReadonly(this.readonly);this.watchInputVerticalList(this.inputVerticalList);this.watchDisplaySelectedValues(this.displaySelectedValues);this.watchDisplaySearchInput(this.displaySearchInput);return setTimeout((()=>{this.checkValidity()}),0)}componentDidLoad(){var t,e;if(!this.readonly){this.searchInput=(t=this.element.shadowRoot.querySelector("mg-input-text"))===null||t===void 0?void 0:t.shadowRoot.querySelector("input");(e=this.searchInput)===null||e===void 0?void 0:e.addEventListener("keydown",this.handleKeydown)}}renderCheckboxBySection(t){const[i,a]=t.reduce(((t,e)=>{t[e.value?0:1].push(e);return t}),[[],[]]);const n={readonly:this.readonly,disabled:this.disabled,identifier:this.identifier};const o=[Object.assign(Object.assign({},n),{checkboxes:i,messages:this.messages.input.checkbox.sections.selected}),Object.assign(Object.assign({},n),{checkboxes:a,messages:this.messages.input.checkbox.sections.notSelected})];return o.filter((t=>t.checkboxes.length)).map((t=>e("mg-input-checkbox-paginated",Object.assign({},t,{"onMass-action":this.handleMassAction,key:t.messages}))))}renderCheckboxMulti(){const t=this.getSelectedItems().length;const i=this.getDisplayItems();return e("div",{class:"mg-c-input__input-container"},e("mg-popover",{arrowHide:true,identifier:this.getMgPopoverIdentifier(),display:this.hasOpenedPopover,"onDisplay-change":this.handleMgPopoverDisplayChange,ref:t=>{if(t!==null)this.mgPopover=t}},e("mg-button",{variant:"secondary","aria-describedby":`${this.identifier}-title`},e("mg-icon",{icon:"list"}),this.getSelectValuesButtonMessage()),e("div",{slot:"content",class:"mg-c-input__content"},this.displaySearchInput?[e("mg-input-text",{key:"input-search",identifier:`${this.identifier}-input-search`,icon:"magnifying-glass",type:"search",placeholder:this.messages.input.checkbox.label,label:this.messages.input.checkbox.label,mgWidth:"full",value:this.searchValue,labelHide:true,characterLeftHide:true,name:"q","onValue-change":this.handleSearchChange,"aria-controls":"search-results items-list"}),e("p",{key:"search-results",role:"status",class:"mg-u-visually-hidden",id:"search-results"},`${i.length} ${this.messages.input.checkbox[i.length>0?"results":"result"]}`),e("div",{key:"sections-container",class:"mg-c-input__sections"},this.renderCheckboxBySection(i))]:e(Lt,{checkboxes:i,displaySearchInput:this.displaySearchInput,messages:this.messages.input.checkbox,id:"checkboxes-list",disabled:this.disabled,name:this.name,invalid:this.invalid}),this.displaySearchInput&&i.length===0&&e("p",{class:"mg-c-input__input-no-result"},this.messages.input.checkbox.noResult))),this.displaySelectedValues?t>0&&e("ul",{role:"list",class:"mg-c-input__input-container-list"},this.getSelectedItems().map((({title:t})=>e("li",{class:"mg-c-input__input-value",key:t},t)))):e("b",null,this.messages.input.checkbox[t>1?"selectedValues":"selectedValue"].replace("{nb}",t)))}render(){let t;const i=this.value.filter((({value:t})=>t)).map((({title:t})=>t));if(this.readonly){t=this.renderReadonly(i)}else if(this.type==="checkbox"){t=this.renderMgInputCheckboxList()}else{t=this.renderCheckboxMulti()}return e("mg-input",{key:"08c3ca7708ff929696a83a8d7c4fe627e7651963",label:this.label,identifier:this.identifier,class:this.classCollection.join(),ariaDescribedbyIDs:[],labelOnTop:this.labelOnTop,labelHide:this.labelHide,required:!this.readonly?this.required:undefined,tooltip:this.tooltip,tooltipPosition:this.readonly&&i.length===0?"label":this.tooltipPosition,helpText:!this.readonly?this.helpText:undefined,errorMessage:!this.readonly?this.errorMessage:undefined},t)}get element(){return a(this)}static get watchers(){return{value:["validateValue"],type:["validateType"],inputVerticalList:["watchInputVerticalList"],readonly:["watchReadonly","handleValidityChange"],displaySelectedValues:["watchDisplaySelectedValues"],required:["handleValidityChange"],disabled:["handleValidityChange","validateDisabled"],checkboxItems:["validateCheckboxItems"],displaySearchInput:["watchDisplaySearchInput"],searchValue:["validateSearchValue"]}}};At.style=Dt;const Et=class{constructor(e){t(this,e);this.massAction=n(this,"mass-action",7);this.offset=10;this.currentPage=1;this.checkboxes=[];this.expanded=true;this.massActionHandler=()=>{this.massAction.emit(this.sectionKind)};this.handleToggleClick=()=>{this.expanded=!this.expanded};this.getArrayRange=(t,e,i)=>t.slice(e,i);this.getPageCount=t=>(t===null||t===void 0?void 0:t.length)>0?Math.ceil(t.length/this.offset):0;this.handleCurrentPageChange=t=>{this.currentPage=Number(t.detail)}}watchCheckboxes(t,e){const i=this.getPageCount(t);const a=this.getPageCount(e);if(i===1||i!==0&&this.currentPage===0){this.currentPage=1}else if(a===this.currentPage&&i<this.currentPage){this.currentPage--}this.sectionKind=t[0].value?Vt.SELECTED:Vt.NOT_SELECTED}getFromToIndexes(){const t=this.currentPage===1;const e=t?0:(this.currentPage-1)*this.offset;const i=t?this.offset:this.currentPage*this.offset;return[e,i]}componentWillLoad(){this.watchCheckboxes(this.checkboxes)}render(){const t=t=>e("em",{key:"8f20e5be81047106e04cd101385b9c6555c0c38d",class:"mg-c-input__section-header-title-label"},`${this.messages[t.length>1?"titlePlurial":"title"]} (${t.length})`);const[a,n]=this.getFromToIndexes();const o=`items-${this.sectionKind}-container`;return e(i,{key:"39d0fc41abe4b537b240bdc14e80fc42cb41033d",hidden:this.checkboxes.length<1},e("div",{key:"fec430cfffc005a217694f9a4ba68412a6a08c7b",class:"mg-c-input__section-header"},this.sectionKind===Vt.SELECTED?e("mg-button",{variant:"flat",onClick:this.handleToggleClick,"aria-controls":o,"aria-expanded":this.expanded.toString()},e("mg-icon",{icon:this.expanded?"chevron-up":"chevron-down"}),e("span",{class:"mg-c-input__section-header-title"},t(this.checkboxes))):e("p",{class:"mg-c-input__section-header-title mg-c-input__section-header-title--static"},t(this.checkboxes)),(this.sectionKind===Vt.SELECTED&&this.expanded||this.sectionKind===Vt.NOT_SELECTED)&&e("mg-tooltip",{key:"e1b38d93875962af3024ac27e1892c040dbf9bdb",class:"mg-c-input__section-header-tootlip",message:this.messages.tooltip},e("mg-button",{key:"f593b3d5ca5bd8b3080253842a5c513709f16e3a",variant:"link",onClick:this.massActionHandler},this.messages.action)),this.expanded&&this.getPageCount(this.checkboxes)>1&&e("mg-pagination",{key:"search-pagination",totalPages:this.getPageCount(this.checkboxes),currentPage:this.currentPage,"onCurrent-page-change":this.handleCurrentPageChange,hideNavigationLabels:true,hidePageCount:true,identifier:`input-checkbox-pagination-${this.sectionKind}`})),e("div",{key:"74c18984938188e2861cd79b56d919a94f32064f",hidden:!this.expanded,id:o,class:"mg-c-input__section-content"},e(Lt,{key:"15c2f6fe98d772ce5b0a0d4ec448986e91592107",checkboxes:this.getArrayRange(this.checkboxes,a,n),displaySearchInput:true,messages:this.messages,id:`items-${this.sectionKind}`,disabled:this.disabled,name:this.name,invalid:this.invalid})))}static get watchers(){return{checkboxes:["watchCheckboxes"]}}};const qt=".mg-c-input__readonly-value{min-height:var(--mg-b-font-size);align-self:flex-start;margin-top:calc((var(--mg-b-size-min-height) - var(--mg-b-font-size)*var(--mg-b-line-height))/2);word-break:break-word}.mg-c-input__box{height:var(--mg-b-size-min-height);box-sizing:border-box;padding:calc((var(--mg-b-size-min-height) - var(--mg-b-font-size)*var(--mg-b-line-height))/2) var(--mg-b-size-8);border-width:var(--mg-c-input-border-width);border-style:solid;border-color:var(--mg-c-input-color-border);border-radius:var(--mg-c-input-border-radius);background-color:var(--mg-b-color-light);color:var(--mg-b-color-dark);font-family:inherit;font-size:var(--mg-b-font-size);text-align:var(--mg-c-input-text-align, left)}.mg-c-input__box::placeholder{color:var(--mg-c-input-placeholder-color-text);font-style:italic}.mg-c-input__box:focus{box-shadow:0 0 var(--mg-b-size-4) var(--mg-c-input-color-box-shadow-focus)}.mg-c-input__box:disabled{opacity:var(--mg-b-opacity-element-disabled)}.mg-c-input.mg-c-input--has-error .mg-c-input__box{border-color:var(--mg-b-color-danger)}.mg-c-input.mg-c-input--is-input-group-append{--mg-c-button-border-radius-top-left:0;--mg-c-button-border-radius-bottom-left:0}.mg-c-input.mg-c-input--is-input-group-append .mg-c-input__box{margin-right:calc(-1*var(--mg-b-size-border));border-bottom-right-radius:0;border-top-right-radius:0}.mg-c-input.mg-c-input--is-input-group-append .mg-c-input__box:focus-visible{outline-offset:-0.2rem;outline-style:solid;outline-width:.2rem}.mg-c-input.mg-c-input--has-buttons-group-append ::slotted([slot=append-input]){--mg-c-button-border-radius-top-right:0;--mg-c-button-border-radius-bottom-right:0}.mg-c-input.mg-c-input--has-buttons-group-append ::slotted([slot=append-input]:not(:last-of-type)){--mg-c-button-border-right-width:0}.mg-c-input.mg-c-input--has-buttons-group-append ::slotted([slot=append-input]:last-of-type){--mg-c-button-border-radius-top-right:var(--mg-c-input-border-radius);--mg-c-button-border-radius-bottom-right:var(--mg-c-input-border-radius)}.mg-c-input.mg-c-input--is-append-input-slot-content:not(.mg-c-input--readonly) ::slotted([slot=append-input]){align-self:start;padding-top:calc((var(--mg-b-size-min-height) - var(--mg-b-size-16))/2)}.mg-u-visually-hidden{position:absolute !important;overflow:hidden !important;width:.1rem !important;height:.1rem !important;padding:0 !important;border:0 !important;margin:-0.1rem !important;clip:rect(0.1rem, 0.1rem, 0.1rem, 0.1rem) !important;clip-path:inset(50%) !important;white-space:nowrap !important}*:focus:not(:focus-visible){outline:none}@media (prefers-reduced-motion){*{animation:none !important;transition:none !important}}";const It=qt;const Pt=class{constructor(e){t(this,e);this.valueChange=n(this,"value-change",7);this.inputValid=n(this,"input-valid",7);this.hasDisplayedError=false;this.name=this.identifier;this.labelHide=false;this.required=false;this.readonly=false;this.max="9999-12-31";this.disabled=false;this.tooltipPosition="input";this.classCollection=new s(["mg-c-input--date"]);this.isValidPattern=t=>l(t)&&d.test(t);this.formatHelpText=t=>{const e="{defaultHelpText}";let i=l(t)?t:this.messages.input.date.helpText;if(i.includes(e))i=i.replace(e,this.formatHelpText(this.messages.input.date.helpText));return i.replace("{pattern}",this.renderPattern()).replace("{date}",u(p(new Date("2023-12-24")),this.systemLocale))};this.handleInput=()=>{this.checkValidity();if(this.hasDisplayedError){this.setErrorMessage()}this.value=this.input.value};this.handleBlur=()=>{this.handlerInProgress="blur";this.displayError().finally((()=>{this.handlerInProgress=undefined}))};this.handleKeyDown=t=>{if(["Delete","Backspace"].includes(t.key)){t.preventDefault();this.value=null;this.checkValidity();if(this.hasDisplayedError){this.setErrorMessage()}}};this.checkValidity=()=>{this.setValidity(this.readonly||this.disabled||this.input.checkValidity()&&(this.value===null||this.isValidPattern(this.value)))};this.getInputError=()=>{var t;let e=null;if(this.input.validity.badInput||this.value&&!this.isValidPattern(this.value)){e="badInput"}else if(this.input.validity.valueMissing){e="required"}else if((this.input.validity.rangeUnderflow||this.input.validity.rangeOverflow)&&((t=this.min)===null||t===void 0?void 0:t.length)>0&&this.max!=="9999-12-31"){e="minMax"}else if(this.input.validity.rangeUnderflow){e="min"}else if(this.input.validity.rangeOverflow){e="max"}return e};this.setErrorMessage=t=>{this.errorMessage=undefined;if(!this.valid){const e=this.getInputError();if(t!==undefined){this.errorMessage=t}else if(e==="required"){this.errorMessage=this.messages.errors[e]}else if(["min","max","minMax"].includes(e)){this.errorMessage=this.messages.errors.date[e].replace("{min}",u(this.min,this.systemLocale)).replace("{max}",u(this.max,this.systemLocale))}else{this.errorMessage=this.messages.errors.date.badInput.replace("{pattern}",this.renderPattern())}}};this.renderPattern=()=>{let t=v(this.systemLocale);for(const e in this.messages.input.date.pattern){t=t.replace(e,this.messages.input.date.pattern[e])}return`<span aria-hidden="true">${t}</span><span class="mg-u-visually-hidden">${[...t].join(" ")}</span>`}}validateValue(t){if(["",undefined].includes(t)){this.value=null}else if(t&&!l(t)){throw new Error(`<mg-input-date> props 'value' must be a valid string. Passed value: ${r(t)}.`)}else if(t===null||this.isValidPattern(t)){this.valueChange.emit(t)}else{console.error("<mg-input-date> props 'value' doesn't match pattern: 'yyyy-mm-dd'.")}}watchReadonly(t){if(t)this.classCollection.add(zt);else this.classCollection.delete(zt)}validateMinMax(t){if(t&&!this.isValidPattern(t)){throw new Error(`<mg-input-date> props 'min/max' doesn't match pattern: 'yyyy-mm-dd'. Passed value: ${r(t)}.`)}}handleValidityChange(t,e,i){if(this.input!==undefined){this.input[i]=t;this.checkValidity();if(this.hasDisplayedError){this.setErrorMessage();this.hasDisplayedError=false}}}watchDisabled(t){if(t)this.classCollection.add(xt);else this.classCollection.delete(xt)}displayError(){return new Promise((t=>{requestAnimationFrame((()=>{this.checkValidity();this.setErrorMessage();this.hasDisplayedError=this.invalid;t()}))}))}async setError(t,e){if(typeof t!=="boolean"){throw new Error('<mg-input-date> method "setError()" param "valid" must be a boolean.')}else if(!l(e)){throw new Error('<mg-input-date> method "setError()" param "errorMessage" must be a string.')}else{this.setValidity(t);this.setErrorMessage(t?undefined:e);this.hasDisplayedError=this.invalid}}async reset(){if(!this.readonly){this.value=null;this.checkValidity();this.invalid=false;this.errorMessage=undefined;this.hasDisplayedError=false}}setValidity(t){const e=this.valid;this.valid=t;this.invalid=!this.valid;if(this.handlerInProgress===undefined||this.handlerInProgress==="blur"&&this.valid!==e)this.inputValid.emit(this.valid)}componentWillLoad(){const t=k(this.element);this.locale=t.locale;this.messages=t.messages;this.systemLocale=Intl.DateTimeFormat().resolvedOptions().locale;this.validateValue(this.value);this.validateMinMax(this.min);this.validateMinMax(this.max);this.watchReadonly(this.readonly);this.watchDisabled(this.disabled);return setTimeout((()=>{this.checkValidity()}),0)}render(){return e("mg-input",{key:"09d07883b178cd1196c2be110c8fcfdde8fef01d",label:this.label,identifier:this.identifier,class:this.classCollection.join(),ariaDescribedbyIDs:[],labelOnTop:this.labelOnTop,labelHide:this.labelHide,required:this.required,tooltip:this.tooltip,tooltipPosition:this.readonly&&this.value===null?"label":this.tooltipPosition,helpText:this.formatHelpText(this.helpText),errorMessage:this.errorMessage},this.readonly?this.value&&e("b",{class:"mg-c-input__readonly-value"},u(this.value,this.locale)):e("input",{type:"date",class:"mg-c-input__box",min:this.min,max:this.max,value:this.value,id:this.identifier,name:this.name,disabled:this.disabled,required:this.required,"aria-invalid":(this.invalid===true).toString(),onInput:this.handleInput,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,ref:t=>{if(t!==null)this.input=t}}))}get element(){return a(this)}static get watchers(){return{value:["validateValue"],readonly:["watchReadonly","handleValidityChange"],min:["validateMinMax","handleValidityChange"],max:["validateMinMax","handleValidityChange"],required:["handleValidityChange"],disabled:["handleValidityChange","watchDisabled"]}}};Pt.style=It;const Tt=["decimal","integer"];const Ot=["none","number","currency","percent","unit"];const jt=".mg-c-input__box{height:var(--mg-b-size-min-height);box-sizing:border-box;padding:calc((var(--mg-b-size-min-height) - var(--mg-b-font-size)*var(--mg-b-line-height))/2) var(--mg-b-size-8);border-width:var(--mg-c-input-border-width);border-style:solid;border-color:var(--mg-c-input-color-border);border-radius:var(--mg-c-input-border-radius);background-color:var(--mg-b-color-light);color:var(--mg-b-color-dark);font-family:inherit;font-size:var(--mg-b-font-size);text-align:var(--mg-c-input-text-align, left)}.mg-c-input__box::placeholder{color:var(--mg-c-input-placeholder-color-text);font-style:italic}.mg-c-input__box:focus{box-shadow:0 0 var(--mg-b-size-4) var(--mg-c-input-color-box-shadow-focus)}.mg-c-input__box:disabled{opacity:var(--mg-b-opacity-element-disabled)}.mg-c-input.mg-c-input--has-error .mg-c-input__box{border-color:var(--mg-b-color-danger)}.mg-c-input.mg-c-input--is-input-group-append{--mg-c-button-border-radius-top-left:0;--mg-c-button-border-radius-bottom-left:0}.mg-c-input.mg-c-input--is-input-group-append .mg-c-input__box{margin-right:calc(-1*var(--mg-b-size-border));border-bottom-right-radius:0;border-top-right-radius:0}.mg-c-input.mg-c-input--is-input-group-append .mg-c-input__box:focus-visible{outline-offset:-0.2rem;outline-style:solid;outline-width:.2rem}.mg-c-input.mg-c-input--has-buttons-group-append ::slotted([slot=append-input]){--mg-c-button-border-radius-top-right:0;--mg-c-button-border-radius-bottom-right:0}.mg-c-input.mg-c-input--has-buttons-group-append ::slotted([slot=append-input]:not(:last-of-type)){--mg-c-button-border-right-width:0}.mg-c-input.mg-c-input--has-buttons-group-append ::slotted([slot=append-input]:last-of-type){--mg-c-button-border-radius-top-right:var(--mg-c-input-border-radius);--mg-c-button-border-radius-bottom-right:var(--mg-c-input-border-radius)}.mg-c-input.mg-c-input--is-append-input-slot-content:not(.mg-c-input--readonly) ::slotted([slot=append-input]){align-self:start;padding-top:calc((var(--mg-b-size-min-height) - var(--mg-b-size-16))/2)}.mg-c-input__readonly-value{min-height:var(--mg-b-font-size);align-self:flex-start;margin-top:calc((var(--mg-b-size-min-height) - var(--mg-b-font-size)*var(--mg-b-line-height))/2);word-break:break-word}.mg-c-input__input-container{width:100%;flex:1 auto}.mg-c-input.mg-c-input--width-full .mg-c-input__box{width:100%}.mg-c-input.mg-c-input--width-2 .mg-c-input__with-character-left,.mg-c-input.mg-c-input--width-4 .mg-c-input__with-character-left,.mg-c-input.mg-c-input--width-16 .mg-c-input__with-character-left{width:max-content}.mg-c-input.mg-c-input--width-2 .mg-c-input__with-character-left:has(textarea),.mg-c-input.mg-c-input--width-4 .mg-c-input__with-character-left:has(textarea),.mg-c-input.mg-c-input--width-16 .mg-c-input__with-character-left:has(textarea){flex-grow:inherit}.mg-c-input.mg-c-input--width-2 .mg-c-input__box{width:var(--mg-b-size-48)}.mg-c-input.mg-c-input--width-2 .mg-c-input__with-character-left:not(:has(textarea)) .mg-c-input__box{width:calc(var(--mg-b-size-48) + var(--mg-c-character-left-message-length)*(.35ch + .3rem))}.mg-c-input.mg-c-input--width-4 .mg-c-input__box{width:var(--mg-b-size-72)}.mg-c-input.mg-c-input--width-4 .mg-c-input__with-character-left:not(:has(textarea)) .mg-c-input__box{width:calc(var(--mg-b-size-72) + var(--mg-c-character-left-message-length)*(.35ch + .3rem))}.mg-c-input.mg-c-input--width-16 .mg-c-input__box{width:calc(26*var(--mg-b-size-8))}.mg-c-input.mg-c-input--width-16 .mg-c-input__with-character-left:not(:has(textarea)) .mg-c-input__box{width:calc(calc(26 * var(--mg-b-size-8)) + var(--mg-c-character-left-message-length)*(.35ch + .3rem))}.mg-c-input.mg-c-input--width-full:not(.mg-c-input--label-on-top){justify-content:stretch}.mg-c-input.mg-c-input--is-input-group-append ::slotted([slot=append-input]),.mg-c-input.mg-c-input--is-append-input-slot-content ::slotted([slot=append-input]){width:auto}:host(.mg-c-input.mg-c-input--width-full) ::slotted(*:not(mg-input-title)){width:100%;max-width:100%}.mg-u-visually-hidden{position:absolute !important;overflow:hidden !important;width:.1rem !important;height:.1rem !important;padding:0 !important;border:0 !important;margin:-0.1rem !important;clip:rect(0.1rem, 0.1rem, 0.1rem, 0.1rem) !important;clip-path:inset(50%) !important;white-space:nowrap !important}*:focus:not(:focus-visible){outline:none}@media (prefers-reduced-motion){*{animation:none !important;transition:none !important}}.mg-c-input .mg-c-input__box{width:auto;text-align:var(--mg-c-input-text-align, right)}";const St=jt;const Wt=class{constructor(i){t(this,i);this.valueChange=n(this,"value-change",7);this.inputValid=n(this,"input-valid",7);this.hasDisplayedError=false;this.name=this.identifier;this.labelHide=false;this.required=false;this.readonly=false;this.disabled=false;this.tooltipPosition="input";this.type="decimal";this.format="number";this.currency="EUR";this.unitDisplay="short";this.integerLength=13;this.decimalLength=2;this.classCollection=new s(["mg-c-input--numeric"]);this.handleInput=()=>{this.checkValidity();if(this.hasDisplayedError){this.setErrorMessage()}this.value=this.input.value};this.handleFocus=()=>{this.hasFocus=true};this.handleBlur=()=>{if(this.value==="-")this.value="";this.handlerInProgress="blur";this.displayError().finally((()=>{this.handlerInProgress=undefined;this.hasFocus=false}))};this.checkValidity=()=>{this.setValidity(this.readonly||this.disabled||this.getInputError()===null)};this.formatErrorValue=t=>f(t,this.locale,!Number.isInteger(t)&&this.type==="decimal"?this.decimalLength:0);this.setErrorMessage=t=>{this.errorMessage=undefined;if(!this.valid){const e=this.getInputError();if(t!==undefined){this.errorMessage=t}else if(e==="required"){this.errorMessage=this.messages.errors[e]}else{const t=this.formatErrorValue(this.min);const i=this.formatErrorValue(this.max);this.errorMessage=this.messages.errors.numeric[e].replace("{min}",t).replace("{max}",i)}}};this.getInputError=()=>{let t=null;const e=t=>!t.some((t=>[null,undefined].includes(t)));if(!this.input.checkValidity()&&this.input.validity.valueMissing){t="required"}else if(e([this.min,this.numericValue])&&this.numericValue<this.min&&this.max===undefined){t="min"}else if(e([this.max,this.numericValue])&&this.numericValue>this.max&&this.min===undefined){t="max"}else if(e([this.min,this.max,this.numericValue])&&(this.numericValue<this.min||this.numericValue>this.max)){t="minMax"}return t};this.formatValue=t=>{switch(this.format){case"number":return f(t,this.locale,this.type==="decimal"?this.decimalLength:undefined);case"currency":return _(t,this.locale,this.currency);case"percent":return w(t/100,this.locale,this.type==="decimal"?this.decimalLength:undefined);case"unit":return b(t,this.locale,this.unit,this.unitDisplay,this.type==="decimal"?this.decimalLength:undefined);case"none":return t.toString()}};this.validateAppendSlot=()=>{const t=this.element.querySelector('[slot="append-input"]');if(t!==null){if(t.nodeName==="MG-BUTTON"){this.classCollection.add("mg-c-input--is-input-group-append")}else{this.classCollection.add("mg-c-input--is-append-input-slot-content");this.slotContent=t.textContent}}};this.renderReadonly=()=>this.slotContent!==undefined?e("span",{class:"mg-c-input__readonly-value"},e("b",null,this.readonlyValue),this.slotContent):e("b",{class:"mg-c-input__readonly-value"},this.readonlyValue)}validateValue(t){if(typeof t==="string"){const[e,i=""]=t.replace("-","").split(/[.,]/);const a=this.type==="integer"?/^-?\d+$/:/^-?\d+(?:[.,]\d*)?$/;if(this.isValidValue(t,a,e,i)){this.storedValue=t}else{t=this.handleInvalidValue()}this.updateValues(t)}}watchReadonly(t){if(t)this.classCollection.add(zt);else this.classCollection.delete(zt)}handleValidityChange(t,e,i){if(this.input!==undefined){this.input[i]=t;this.checkValidity();if(this.hasDisplayedError){this.setErrorMessage();this.hasDisplayedError=false}}}watchDisabled(t){if(t)this.classCollection.add(xt);else this.classCollection.delete(xt)}watchMgWidth(t){bt.forEach((t=>{this.classCollection.delete(`mg-c-input--width-${t}`)}));if(t!==undefined)this.classCollection.add(`mg-c-input--width-${this.mgWidth}`)}validateType(t){if(!Tt.includes(t)){throw new Error(`<mg-input-numeric> prop "type" must be one of: ${Tt.join(", ")}. Passed value: ${r(t)}.`)}}watchFormat(t){if(!Ot.includes(t)){throw new Error(`<mg-input-numeric> prop "format" must be one of: ${Ot.join(", ")}. Passed value: ${r(t)}.`)}}validateIntegerLength(t){if(t<1){throw new Error(`<mg-input-numeric> prop "integer-length" must be a positive number. Passed value: ${r(t)}.`)}}validateDecimalLength(t){if(t<1){throw new Error(`<mg-input-numeric> prop "decimal-length" must be a positive number, consider using prop "type" to "integer" instead. Passed value: ${r(t)}.`)}}displayError(){return new Promise((t=>{requestAnimationFrame((()=>{this.checkValidity();this.setErrorMessage();this.hasDisplayedError=this.invalid;t()}))}))}async setError(t,e){if(typeof t!=="boolean"){throw new Error('<mg-input-numeric> method "setError()" param "valid" must be a boolean.')}else if(!l(e)){throw new Error('<mg-input-numeric> method "setError()" param "errorMessage" must be a string.')}else{this.setValidity(t);this.setErrorMessage(t?undefined:e);this.hasDisplayedError=this.invalid}}async reset(){if(!this.readonly){this.value="";this.checkValidity();this.errorMessage=undefined;this.hasDisplayedError=false}}setValidity(t){const e=this.valid;this.valid=t;this.invalid=!this.valid;if(this.handlerInProgress===undefined||this.handlerInProgress==="blur"&&this.valid!==e)this.inputValid.emit(this.valid)}isValidValue(t,e,i,a){return["","-"].includes(t)||e.exec(t)!==null&&i.length<=this.integerLength&&a.length<=(this.type==="integer"?0:this.decimalLength)}handleInvalidValue(){var t;return(t=this.storedValue)!==null&&t!==void 0?t:null}updateValues(t){this.value=t;if(this.input!==undefined)this.input.value=this.value;this.numericValue=!["",null].includes(this.value)?parseFloat(this.value.replace(",",".")):null;this.valueChange.emit(this.numericValue);this.readonlyValue=this.numericValue!==null?this.formatValue(this.numericValue):""}displayValue(){return this.hasFocus?this.value:this.readonlyValue}componentWillLoad(){const t=k(this.element);this.locale=t.locale;this.messages=t.messages;this.watchFormat(this.format);this.validateType(this.type);this.validateIntegerLength(this.integerLength);this.validateDecimalLength(this.decimalLength);this.validateValue(this.value);this.validateAppendSlot();this.watchReadonly(this.readonly);this.watchDisabled(this.disabled);this.watchMgWidth(this.mgWidth);return setTimeout((()=>{this.checkValidity()}),0)}render(){return e("mg-input",{key:"b3f1b0e8a78d2f61146f052db1636d98e89271d1",label:this.label,identifier:this.identifier,class:this.classCollection.join(),ariaDescribedbyIDs:[],labelOnTop:this.labelOnTop,labelHide:this.labelHide,required:this.required,tooltip:this.tooltip,tooltipPosition:this.readonly&&this.value===undefined?"label":this.tooltipPosition,helpText:this.helpText,errorMessage:this.errorMessage},this.readonly?this.readonlyValue&&this.renderReadonly():[e("input",{key:"input",type:"text",class:"mg-c-input__box mg-c-input__box--width",value:this.displayValue(),id:this.identifier,name:this.name,placeholder:this.placeholder,title:this.placeholder,disabled:this.disabled,required:this.required,"aria-invalid":(this.invalid===true).toString(),onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,ref:t=>{if(t!==null)this.input=t}}),e("slot",{key:"slot",name:"append-input"})])}get element(){return a(this)}static get watchers(){return{value:["validateValue"],readonly:["watchReadonly","handleValidityChange"],required:["handleValidityChange"],disabled:["handleValidityChange","watchDisabled"],min:["handleValidityChange"],max:["handleValidityChange"],mgWidth:["watchMgWidth"],type:["validateType"],format:["watchFormat"],integerLength:["validateIntegerLength"],decimalLength:["validateDecimalLength"]}}};Wt.style=St;const Rt=".mg-c-input__box{height:var(--mg-b-size-min-height);box-sizing:border-box;padding:calc((var(--mg-b-size-min-height) - var(--mg-b-font-size)*var(--mg-b-line-height))/2) var(--mg-b-size-8);border-width:var(--mg-c-input-border-width);border-style:solid;border-color:var(--mg-c-input-color-border);border-radius:var(--mg-c-input-border-radius);background-color:var(--mg-b-color-light);color:var(--mg-b-color-dark);font-family:inherit;font-size:var(--mg-b-font-size);text-align:var(--mg-c-input-text-align, left)}.mg-c-input__box::placeholder{color:var(--mg-c-input-placeholder-color-text);font-style:italic}.mg-c-input__box:focus{box-shadow:0 0 var(--mg-b-size-4) var(--mg-c-input-color-box-shadow-focus)}.mg-c-input__box:disabled{opacity:var(--mg-b-opacity-element-disabled)}.mg-c-input.mg-c-input--has-error .mg-c-input__box{border-color:var(--mg-b-color-danger)}.mg-c-input.mg-c-input--is-input-group-append{--mg-c-button-border-radius-top-left:0;--mg-c-button-border-radius-bottom-left:0}.mg-c-input.mg-c-input--is-input-group-append .mg-c-input__box{margin-right:calc(-1*var(--mg-b-size-border));border-bottom-right-radius:0;border-top-right-radius:0}.mg-c-input.mg-c-input--is-input-group-append .mg-c-input__box:focus-visible{outline-offset:-0.2rem;outline-style:solid;outline-width:.2rem}.mg-c-input.mg-c-input--has-buttons-group-append ::slotted([slot=append-input]){--mg-c-button-border-radius-top-right:0;--mg-c-button-border-radius-bottom-right:0}.mg-c-input.mg-c-input--has-buttons-group-append ::slotted([slot=append-input]:not(:last-of-type)){--mg-c-button-border-right-width:0}.mg-c-input.mg-c-input--has-buttons-group-append ::slotted([slot=append-input]:last-of-type){--mg-c-button-border-radius-top-right:var(--mg-c-input-border-radius);--mg-c-button-border-radius-bottom-right:var(--mg-c-input-border-radius)}.mg-c-input.mg-c-input--is-append-input-slot-content:not(.mg-c-input--readonly) ::slotted([slot=append-input]){align-self:start;padding-top:calc((var(--mg-b-size-min-height) - var(--mg-b-size-16))/2)}.mg-c-input__readonly-value{min-height:var(--mg-b-font-size);align-self:flex-start;margin-top:calc((var(--mg-b-size-min-height) - var(--mg-b-font-size)*var(--mg-b-line-height))/2);word-break:break-word}.mg-c-input__input-container{width:100%;flex:1 auto}.mg-c-input.mg-c-input--width-full .mg-c-input__box{width:100%}.mg-c-input.mg-c-input--width-2 .mg-c-input__with-character-left,.mg-c-input.mg-c-input--width-4 .mg-c-input__with-character-left,.mg-c-input.mg-c-input--width-16 .mg-c-input__with-character-left{width:max-content}.mg-c-input.mg-c-input--width-2 .mg-c-input__with-character-left:has(textarea),.mg-c-input.mg-c-input--width-4 .mg-c-input__with-character-left:has(textarea),.mg-c-input.mg-c-input--width-16 .mg-c-input__with-character-left:has(textarea){flex-grow:inherit}.mg-c-input.mg-c-input--width-2 .mg-c-input__box{width:var(--mg-b-size-48)}.mg-c-input.mg-c-input--width-2 .mg-c-input__with-character-left:not(:has(textarea)) .mg-c-input__box{width:calc(var(--mg-b-size-48) + var(--mg-c-character-left-message-length)*(.35ch + .3rem))}.mg-c-input.mg-c-input--width-4 .mg-c-input__box{width:var(--mg-b-size-72)}.mg-c-input.mg-c-input--width-4 .mg-c-input__with-character-left:not(:has(textarea)) .mg-c-input__box{width:calc(var(--mg-b-size-72) + var(--mg-c-character-left-message-length)*(.35ch + .3rem))}.mg-c-input.mg-c-input--width-16 .mg-c-input__box{width:calc(26*var(--mg-b-size-8))}.mg-c-input.mg-c-input--width-16 .mg-c-input__with-character-left:not(:has(textarea)) .mg-c-input__box{width:calc(calc(26 * var(--mg-b-size-8)) + var(--mg-c-character-left-message-length)*(.35ch + .3rem))}.mg-c-input.mg-c-input--width-full:not(.mg-c-input--label-on-top){justify-content:stretch}.mg-c-input.mg-c-input--is-input-group-append ::slotted([slot=append-input]),.mg-c-input.mg-c-input--is-append-input-slot-content ::slotted([slot=append-input]){width:auto}:host(.mg-c-input.mg-c-input--width-full) ::slotted(*:not(mg-input-title)){width:100%;max-width:100%}.mg-u-visually-hidden{position:absolute !important;overflow:hidden !important;width:.1rem !important;height:.1rem !important;padding:0 !important;border:0 !important;margin:-0.1rem !important;clip:rect(0.1rem, 0.1rem, 0.1rem, 0.1rem) !important;clip-path:inset(50%) !important;white-space:nowrap !important}*:focus:not(:focus-visible){outline:none}@media (prefers-reduced-motion){*{animation:none !important;transition:none !important}}.mg-c-input.mg-c-input--password .mg-c-input__input-icon{color:var(--mg-b-color-dark)}.mg-c-input.mg-c-input--password .mg-c-input__input-group{position:relative;flex-grow:1}.mg-c-input.mg-c-input--password .mg-c-input__append-button{position:absolute;right:0}.mg-c-input.mg-c-input--password .mg-c-input__box{padding-right:calc(var(--mg-b-size-min-height) + var(--mg-b-size-8))}.mg-c-input.mg-c-input--password .mg-c-input__box::-ms-reveal{display:none}";const Ut=Rt;const Nt=class{constructor(e){t(this,e);this.valueChange=n(this,"value-change",7);this.inputValid=n(this,"input-valid",7);this.hasDisplayedError=false;this.name=this.identifier;this.labelHide=false;this.required=false;this.readonly=false;this.disabled=false;this.mgWidth="full";this.tooltipPosition="input";this.classCollection=new s(["mg-c-input--password"]);this.displayPassword=false;this.handleInput=()=>{this.checkValidity();if(this.hasDisplayedError){this.setErrorMessage()}this.value=this.input.value};this.handleBlur=()=>{this.handlerInProgress="blur";this.displayError().finally((()=>{this.handlerInProgress=undefined}))};this.toggleDisplayPassword=()=>{this.displayPassword=!this.displayPassword};this.checkValidity=()=>{this.setValidity(this.readonly||this.disabled||this.input.checkValidity())};this.setErrorMessage=t=>{this.errorMessage=undefined;if(!this.valid){if(t!==undefined){this.errorMessage=t}else if(this.input.validity.valueMissing){this.errorMessage=this.messages.errors.required}}}}handleValue(t){this.valueChange.emit(t)}watchReadonly(t){if(t)this.classCollection.add(zt);else this.classCollection.delete(zt)}handleValidityChange(t,e,i){if(this.input!==undefined){this.input[i]=t;this.checkValidity();if(this.hasDisplayedError){this.setErrorMessage();this.hasDisplayedError=false}}}watchDisabled(t){if(t)this.classCollection.add(xt);else this.classCollection.delete(xt)}watchMgWidth(t){bt.forEach((t=>{this.classCollection.delete(`mg-c-input--width-${t}`)}));if(t!==undefined)this.classCollection.add(`mg-c-input--width-${this.mgWidth}`)}displayError(){return new Promise((t=>{requestAnimationFrame((()=>{this.checkValidity();this.setErrorMessage();this.hasDisplayedError=this.invalid;t()}))}))}async setError(t,e){if(typeof t!=="boolean"){throw new Error('<mg-input-password> method "setError()" param "valid" must be a boolean.')}else if(!l(e)){throw new Error('<mg-input-password> method "setError()" param "errorMessage" must be a string.')}else{this.setValidity(t);this.setErrorMessage(t?undefined:e);this.hasDisplayedError=this.invalid}}async reset(){if(!this.readonly){this.value="";this.checkValidity();this.errorMessage=undefined;this.hasDisplayedError=false}}setValidity(t){const e=this.valid;this.valid=t;this.invalid=!this.valid;if(this.handlerInProgress===undefined||this.handlerInProgress==="blur"&&this.valid!==e)this.inputValid.emit(this.valid)}componentWillLoad(){this.messages=k(this.element).messages;this.watchReadonly(this.readonly);this.watchDisabled(this.disabled);this.watchMgWidth(this.mgWidth);return setTimeout((()=>{this.checkValidity()}),0)}render(){return e("mg-input",{key:"3c494aa50f437d261e7d006f395c5b7c3cbead5d",label:this.label,identifier:this.identifier,class:this.classCollection.join(),ariaDescribedbyIDs:[],labelOnTop:this.labelOnTop,labelHide:this.labelHide,required:this.required,tooltip:this.tooltip,tooltipPosition:this.readonly&&this.value===undefined?"label":this.tooltipPosition,helpText:this.helpText,errorMessage:this.errorMessage},this.readonly?this.value!==undefined&&e("b",{class:"mg-c-input__readonly-value"},"•".repeat(this.value.length)):e("span",{class:"mg-c-input__input-group"},e("input",{type:this.displayPassword?"text":"password",class:"mg-c-input__box mg-c-input__box--width",value:this.value,id:this.identifier,name:this.name,placeholder:this.placeholder,title:this.placeholder,disabled:this.disabled,required:this.required,maxlength:this.maxlength,"aria-invalid":(this.invalid===true).toString(),onInput:this.handleInput,onBlur:this.handleBlur,ref:t=>{if(t!==null)this.input=t}}),e("mg-button",{label:this.messages.input.password[this.displayPassword?"hide":"display"],disabled:this.disabled,variant:"flat",class:"mg-c-input__append-button","is-icon":true,onClick:this.toggleDisplayPassword,"aria-controls":this.identifier},e("mg-icon",{class:"mg-c-input__input-icon",icon:this.displayPassword?"eye-slash":"eye"}))))}get element(){return a(this)}static get watchers(){return{value:["handleValue"],readonly:["watchReadonly","handleValidityChange"],required:["handleValidityChange"],disabled:["handleValidityChange","watchDisabled"],mgWidth:["watchMgWidth"]}}};Nt.style=Ut;const Ft=".mg-c-input__readonly-value{min-height:var(--mg-b-font-size);align-self:flex-start;margin-top:calc((var(--mg-b-size-min-height) - var(--mg-b-font-size)*var(--mg-b-line-height))/2);word-break:break-word}.mg-c-input.mg-c-input--fieldset{padding:0;border:0;margin-right:0;margin-left:0}.mg-c-input.mg-c-input--fieldset input[type=radio],.mg-c-input.mg-c-input--fieldset input[type=checkbox]{width:var(--mg-c-input-check-size);height:var(--mg-c-input-check-size);flex-shrink:0;margin:calc((var(--mg-b-font-size)*var(--mg-b-line-height) - var(--mg-c-input-check-size))/2) var(--mg-b-size-8) 0 0}.mg-c-input.mg-c-input--fieldset .mg-c-input__input-group{display:flex;align-items:start}.mg-c-input.mg-c-input--fieldset .mg-c-input__input-group-container{display:flex;flex-wrap:wrap;padding:0;margin:0;margin-top:calc((var(--mg-b-size-min-height) - var(--mg-b-font-size)*var(--mg-b-line-height))/2);gap:var(--mg-b-size-12) var(--mg-b-size-24);list-style:none}.mg-c-input.mg-c-input--fieldset .mg-c-input__input-group.mg-c-input__input-group--disabled label{opacity:var(--mg-b-opacity-element-disabled)}.mg-c-input.mg-c-input--fieldset.mg-c-input--vertical-list .mg-c-input__input-group-container,.mg-c-input.mg-c-input--fieldset.mg-c-input--checkbox-multi .mg-c-input__input-group-container{flex-direction:column}.mg-c-input.mg-c-input--fieldset.mg-c-input--label-on-top .mg-c-input__input-group-container{margin-top:var(--mg-b-size-8)}.mg-u-visually-hidden{position:absolute !important;overflow:hidden !important;width:.1rem !important;height:.1rem !important;padding:0 !important;border:0 !important;margin:-0.1rem !important;clip:rect(0.1rem, 0.1rem, 0.1rem, 0.1rem) !important;clip-path:inset(50%) !important;white-space:nowrap !important}*:focus:not(:focus-visible){outline:none}@media (prefers-reduced-motion){*{animation:none !important;transition:none !important}}";const Gt=Ft;const Kt=t=>typeof t==="object"&&typeof t.title==="string"&&t.value!==undefined;const Jt=class{constructor(e){t(this,e);this.valueChange=n(this,"value-change",7);this.inputValid=n(this,"input-valid",7);this.inputs=[];this.classVerticalList="mg-c-input--vertical-list";this.hasDisplayedError=false;this.name=this.identifier;this.labelOnTop=false;this.labelHide=false;this.inputVerticalList=false;this.required=false;this.readonly=false;this.disabled=false;this.tooltipPosition="input";this.classCollection=new s(["mg-c-input--radio",_t]);this.handleInput=t=>{this.checkValidity();this.value=this.options[t.target.value].value};this.handleBlur=()=>{this.handlerInProgress="blur";this.checkValidity();this.setErrorMessage();this.handlerInProgress=undefined};this.checkValidity=()=>{this.setValidity(this.readonly||this.disabled||this.getInvalidElement()===undefined)};this.setErrorMessage=t=>{const e=this.getInvalidElement();this.errorMessage=undefined;if(!this.valid){if(t!==undefined){this.errorMessage=t}else if(e.validity.valueMissing){this.errorMessage=this.messages.errors.required}}};this.getInvalidElement=()=>this.inputs.find((t=>!t.disabled&&!t.readOnly&&!t.checkValidity()))}watchValue(t){var e;if(x(this.items)&&typeof t==="string"){this.readonlyValue=t}else if(Array.isArray(this.items)&&this.items.every(Kt)){this.readonlyValue=(e=this.items.find((e=>e.value===t)))===null||e===void 0?void 0:e.title}else{this.readonlyValue=null}this.valueChange.emit(t)}validateItems(t){if(typeof t==="object"&&t.length<2){throw new Error(`<mg-input-radio> prop "items" require at least 2 items. Passed value: ${r(t)}.`)}else if(x(t)){this.options=t.map((t=>({title:t,value:t,disabled:this.disabled})))}else if(t&&t.every((t=>Kt(t)))){this.options=t}else{throw new Error(`<mg-input-radio> prop "items" is required and all items must be the same type, string or RadioOption. Passed value: ${r(t)}.`)}}watchInputVerticalList(t){if(t)this.classCollection.add(this.classVerticalList);else this.classCollection.delete(this.classVerticalList)}watchReadonly(t){if(t)this.classCollection.add(zt);else this.classCollection.delete(zt)}handleValidityChange(t,e,i){this.inputs.forEach((e=>{e[i]=t}));this.checkValidity();if(this.hasDisplayedError){this.setErrorMessage();this.hasDisplayedError=false}}watchDisabled(t){if(t)this.classCollection.add(xt);else this.classCollection.delete(xt)}displayError(){return new Promise((t=>{requestAnimationFrame((()=>{this.checkValidity();this.setErrorMessage();this.hasDisplayedError=this.invalid;t()}))}))}async setError(t,e){if(typeof t!=="boolean"){throw new Error('<mg-input-radio> method "setError()" param "valid" must be a boolean.')}else if(!l(e)){throw new Error('<mg-input-radio> method "setError()" param "errorMessage" must be a string.')}else{this.setValidity(t);this.setErrorMessage(t?undefined:e);this.hasDisplayedError=this.invalid}}async reset(){if(!this.readonly){this.value=undefined;this.checkValidity();this.errorMessage=undefined;this.hasDisplayedError=false}}setValidity(t){const e=this.valid;this.valid=t;this.invalid=!this.valid;if(this.handlerInProgress===undefined||this.handlerInProgress==="blur"&&this.valid!==e)this.inputValid.emit(this.valid)}componentWillLoad(){this.messages=k(this.element).messages;this.validateItems(this.items);this.watchInputVerticalList(this.inputVerticalList);this.watchReadonly(this.readonly);this.watchDisabled(this.disabled);this.watchValue(this.value);return setTimeout((()=>{this.checkValidity()}),0)}render(){return e("mg-input",{key:"df8daa3c340c0410d092029685e195256a523b31",label:this.label,identifier:this.identifier,class:this.classCollection.join(),ariaDescribedbyIDs:[],labelOnTop:this.labelOnTop,labelHide:this.labelHide,required:this.required,tooltip:this.tooltip,tooltipPosition:this.readonly&&!this.value?"label":this.tooltipPosition,helpText:this.helpText,errorMessage:this.errorMessage},this.readonly?this.readonlyValue&&e("b",{class:"mg-c-input__readonly-value"},this.readonlyValue):e("ul",{class:"mg-c-input__input-group-container",role:"list"},this.options.map(((t,i)=>e("li",{key:t.title,class:{"mg-c-input__input-group":true,"mg-c-input__input-group--disabled":this.disabled||t.disabled}},e("input",{type:"radio",id:this.identifier+"_"+i,name:this.identifier,value:i,checked:JSON.stringify(this.value)===JSON.stringify(this.options[i].value),disabled:this.disabled||t.disabled,required:this.required,onBlur:this.handleBlur,onInput:this.handleInput,ref:t=>{if(t!==null)this.inputs[i]=t}}),e("label",{htmlFor:this.identifier+"_"+i},t.title))))))}get element(){return a(this)}static get watchers(){return{value:["watchValue"],items:["validateItems"],inputVerticalList:["watchInputVerticalList"],readonly:["watchReadonly","handleValidityChange"],required:["handleValidityChange"],disabled:["handleValidityChange","watchDisabled"]}}};Jt.style=Gt;const Yt=".mg-c-input__box{height:var(--mg-b-size-min-height);box-sizing:border-box;padding:calc((var(--mg-b-size-min-height) - var(--mg-b-font-size)*var(--mg-b-line-height))/2) var(--mg-b-size-8);border-width:var(--mg-c-input-border-width);border-style:solid;border-color:var(--mg-c-input-color-border);border-radius:var(--mg-c-input-border-radius);background-color:var(--mg-b-color-light);color:var(--mg-b-color-dark);font-family:inherit;font-size:var(--mg-b-font-size);text-align:var(--mg-c-input-text-align, left)}.mg-c-input__box::placeholder{color:var(--mg-c-input-placeholder-color-text);font-style:italic}.mg-c-input__box:focus{box-shadow:0 0 var(--mg-b-size-4) var(--mg-c-input-color-box-shadow-focus)}.mg-c-input__box:disabled{opacity:var(--mg-b-opacity-element-disabled)}.mg-c-input.mg-c-input--has-error .mg-c-input__box{border-color:var(--mg-b-color-danger)}.mg-c-input.mg-c-input--is-input-group-append{--mg-c-button-border-radius-top-left:0;--mg-c-button-border-radius-bottom-left:0}.mg-c-input.mg-c-input--is-input-group-append .mg-c-input__box{margin-right:calc(-1*var(--mg-b-size-border));border-bottom-right-radius:0;border-top-right-radius:0}.mg-c-input.mg-c-input--is-input-group-append .mg-c-input__box:focus-visible{outline-offset:-0.2rem;outline-style:solid;outline-width:.2rem}.mg-c-input.mg-c-input--has-buttons-group-append ::slotted([slot=append-input]){--mg-c-button-border-radius-top-right:0;--mg-c-button-border-radius-bottom-right:0}.mg-c-input.mg-c-input--has-buttons-group-append ::slotted([slot=append-input]:not(:last-of-type)){--mg-c-button-border-right-width:0}.mg-c-input.mg-c-input--has-buttons-group-append ::slotted([slot=append-input]:last-of-type){--mg-c-button-border-radius-top-right:var(--mg-c-input-border-radius);--mg-c-button-border-radius-bottom-right:var(--mg-c-input-border-radius)}.mg-c-input.mg-c-input--is-append-input-slot-content:not(.mg-c-input--readonly) ::slotted([slot=append-input]){align-self:start;padding-top:calc((var(--mg-b-size-min-height) - var(--mg-b-size-16))/2)}.mg-c-input__readonly-value{min-height:var(--mg-b-font-size);align-self:flex-start;margin-top:calc((var(--mg-b-size-min-height) - var(--mg-b-font-size)*var(--mg-b-line-height))/2);word-break:break-word}.mg-c-input__input-container{width:100%;flex:1 auto}.mg-c-input.mg-c-input--width-full .mg-c-input__box{width:100%}.mg-c-input.mg-c-input--width-2 .mg-c-input__with-character-left,.mg-c-input.mg-c-input--width-4 .mg-c-input__with-character-left,.mg-c-input.mg-c-input--width-16 .mg-c-input__with-character-left{width:max-content}.mg-c-input.mg-c-input--width-2 .mg-c-input__with-character-left:has(textarea),.mg-c-input.mg-c-input--width-4 .mg-c-input__with-character-left:has(textarea),.mg-c-input.mg-c-input--width-16 .mg-c-input__with-character-left:has(textarea){flex-grow:inherit}.mg-c-input.mg-c-input--width-2 .mg-c-input__box{width:var(--mg-b-size-48)}.mg-c-input.mg-c-input--width-2 .mg-c-input__with-character-left:not(:has(textarea)) .mg-c-input__box{width:calc(var(--mg-b-size-48) + var(--mg-c-character-left-message-length)*(.35ch + .3rem))}.mg-c-input.mg-c-input--width-4 .mg-c-input__box{width:var(--mg-b-size-72)}.mg-c-input.mg-c-input--width-4 .mg-c-input__with-character-left:not(:has(textarea)) .mg-c-input__box{width:calc(var(--mg-b-size-72) + var(--mg-c-character-left-message-length)*(.35ch + .3rem))}.mg-c-input.mg-c-input--width-16 .mg-c-input__box{width:calc(26*var(--mg-b-size-8))}.mg-c-input.mg-c-input--width-16 .mg-c-input__with-character-left:not(:has(textarea)) .mg-c-input__box{width:calc(calc(26 * var(--mg-b-size-8)) + var(--mg-c-character-left-message-length)*(.35ch + .3rem))}.mg-c-input.mg-c-input--width-full:not(.mg-c-input--label-on-top){justify-content:stretch}.mg-c-input.mg-c-input--is-input-group-append ::slotted([slot=append-input]),.mg-c-input.mg-c-input--is-append-input-slot-content ::slotted([slot=append-input]){width:auto}:host(.mg-c-input.mg-c-input--width-full) ::slotted(*:not(mg-input-title)){width:100%;max-width:100%}.mg-u-visually-hidden{position:absolute !important;overflow:hidden !important;width:.1rem !important;height:.1rem !important;padding:0 !important;border:0 !important;margin:-0.1rem !important;clip:rect(0.1rem, 0.1rem, 0.1rem, 0.1rem) !important;clip-path:inset(50%) !important;white-space:nowrap !important}*:focus:not(:focus-visible){outline:none}@media (prefers-reduced-motion){*{animation:none !important;transition:none !important}}.mg-c-input__box{padding-top:0;padding-right:var(--mg-b-size-8);padding-bottom:0}@media screen and (max-width: 767px){.mg-c-input__box{width:100%}}";const Zt=Yt;const Xt=t=>typeof t==="object"&&typeof t.title==="string";const Qt=t=>Array.isArray(t)&&t.every((t=>Xt(t)));const te=t=>typeof t==="object"&&typeof t.group==="string"&&Qt(t.options);const ee=(t,{group:e,title:i,value:a,disabled:n})=>{if(e!==undefined){const o=t.find((t=>t.group===e));if(o!==undefined){o.options.push({title:i,value:a,disabled:n})}else{t.push({group:e,options:[{title:i,value:a,disabled:n}]})}}else{t.push({title:i,value:a,disabled:n})}return t};const ie=class{constructor(i){t(this,i);this.valueChange=n(this,"value-change",7);this.inputValid=n(this,"input-valid",7);this.hasDisplayedError=false;this.name=this.identifier;this.labelHide=false;this.placeholderHide=false;this.placeholderDisabled=false;this.required=false;this.readonly=false;this.disabled=false;this.tooltipPosition="input";this.classCollection=new s(["mg-c-input--select"]);this.handleInput=()=>{this.updateValue();if(this.hasDisplayedError)this.setErrorMessage()};this.isInputValue=t=>{var e;return t.title===((e=this.input)===null||e===void 0?void 0:e.value)};this.setValue=t=>{this.checkValidity();this.value=t};this.updateValue=()=>{if(this.input.value===""){this.setValue(null)}else if(x(this.items)&&this.items.includes(this.input.value)){this.setValue(this.input.value)}else if(Qt(this.items)&&typeof this.input.value==="string"&&this.items.some(this.isInputValue)){this.setValue(this.items.find(this.isInputValue).value)}else{this.options.push({title:this.input.value,value:this.input.value,disabled:true});this.setValue(this.input.value)}};this.handleBlur=()=>{this.handlerInProgress="blur";this.displayError().finally((()=>{this.handlerInProgress=undefined}))};this.isDisabledValue=()=>{var t;return Qt(this.options)&&((t=this.options.find(this.isInputValue))===null||t===void 0?void 0:t.disabled)===true};this.checkValidity=()=>{this.setValidity(!this.isDisabledValue()&&(this.readonly||this.disabled||this.input.checkValidity()))};this.setErrorMessage=t=>{this.errorMessage=undefined;if(!this.valid){if(t!==undefined){this.errorMessage=t}else if(this.input.validity.valueMissing){this.errorMessage=this.messages.errors.required}}};this.renderOption=t=>e("option",{key:t.title,value:t.title,selected:JSON.stringify(this.value)===JSON.stringify(t.value),disabled:t.disabled},t.title)}validateValue(t){var e,i;if(x(this.items)&&typeof t==="string"){this.readonlyValue=((e=this.input)===null||e===void 0?void 0:e.value)!==undefined?this.input.value:t}else if(Qt(this.items)){this.readonlyValue=(i=this.items.find((e=>e.value===t)))===null||i===void 0?void 0:i.title}else{this.readonlyValue=null}this.valueChange.emit(t)}validateItems(t){if(t.length===0){this.options=[]}else if(x(t)){if(typeof this.value==="string")this.valueExist=t.includes(this.value);this.options=t.map((t=>({title:t,value:t})))}else if(Qt(t)){this.valueExist=t.map((t=>t.value)).includes(this.value);if(t.some((t=>Boolean(t.group)))){this.options=t.reduce(ee,[])}else{this.options=t}}else{throw new Error(`<mg-input-select> prop "items" is required, can be an empty Array or all items must be the same type: string or Option. Passed value: ${r(t)}.`)}}watchReadonly(t){if(t)this.classCollection.add(zt);else this.classCollection.delete(zt)}handleValidityChange(t,e,i){if(this.input!==undefined){this.input[i]=t;this.checkValidity();if(this.hasDisplayedError){this.setErrorMessage();this.hasDisplayedError=false}}}watchDisabled(t){if(t)this.classCollection.add(xt);else this.classCollection.delete(xt)}watchMgWidth(t){bt.forEach((t=>{this.classCollection.delete(`mg-c-input--width-${t}`)}));if(t!==undefined)this.classCollection.add(`mg-c-input--width-${this.mgWidth}`)}displayError(){return new Promise((t=>{requestAnimationFrame((()=>{this.checkValidity();this.setErrorMessage();this.hasDisplayedError=this.invalid;t()}))}))}async setError(t,e){if(typeof t!=="boolean"){throw new Error('<mg-input-select> method "setError()" param "valid" must be a boolean.')}else if(!l(e)){throw new Error('<mg-input-select> method "setError()" param "errorMessage" must be a string.')}else{this.setValidity(t);this.setErrorMessage(t?undefined:e);this.hasDisplayedError=this.invalid}}async reset(){if(!this.readonly){this.value=null;this.checkValidity();this.errorMessage=undefined;this.hasDisplayedError=false}}setValidity(t){const e=this.valid;this.valid=t;this.invalid=!this.valid;if(this.handlerInProgress===undefined||this.handlerInProgress==="blur"&&this.valid!==e)this.inputValid.emit(this.valid)}componentWillLoad(){this.messages=k(this.element).messages;this.validateItems(this.items);this.validateValue(this.value);this.watchMgWidth(this.mgWidth);this.watchReadonly(this.readonly);this.watchDisabled(this.disabled);if(this.placeholder===undefined||this.placeholder===""){this.placeholder=this.messages.input.select.placeholder}return setTimeout((()=>{this.checkValidity()}),0)}render(){return e("mg-input",{key:"11584b2acab392278a9c26cb9ba49ae1e638a877",label:this.label,identifier:this.identifier,class:this.classCollection.join(),ariaDescribedbyIDs:[],labelOnTop:this.labelOnTop,labelHide:this.labelHide,required:this.required,tooltip:this.tooltip,tooltipPosition:this.readonly&&this.readonlyValue===null?"label":this.tooltipPosition,helpText:this.helpText,errorMessage:this.errorMessage},this.readonly?this.readonlyValue&&e("b",{class:"mg-c-input__readonly-value"},this.readonlyValue):e("select",{class:"mg-c-input__box",id:this.identifier,name:this.name,title:this.placeholder,disabled:this.disabled,required:this.required,"aria-invalid":(this.invalid===true).toString(),onInput:this.handleInput,onBlur:this.handleBlur,ref:t=>{if(t!==null)this.input=t}},(!this.placeholderHide||!this.valueExist)&&e("option",{value:"",disabled:this.placeholderDisabled&&this.valueExist},this.placeholder),this.options.map((t=>te(t)?e("optgroup",{label:t.group,key:t.group},t.options.map(this.renderOption)):Xt(t)&&this.renderOption(t)))))}get element(){return a(this)}static get watchers(){return{value:["validateValue"],items:["validateItems"],readonly:["watchReadonly","handleValidityChange"],required:["handleValidityChange"],disabled:["handleValidityChange","watchDisabled"],mgWidth:["watchMgWidth"]}}};ie.style=Zt;const ae=".mg-c-input__box{height:var(--mg-b-size-min-height);box-sizing:border-box;padding:calc((var(--mg-b-size-min-height) - var(--mg-b-font-size)*var(--mg-b-line-height))/2) var(--mg-b-size-8);border-width:var(--mg-c-input-border-width);border-style:solid;border-color:var(--mg-c-input-color-border);border-radius:var(--mg-c-input-border-radius);background-color:var(--mg-b-color-light);color:var(--mg-b-color-dark);font-family:inherit;font-size:var(--mg-b-font-size);text-align:var(--mg-c-input-text-align, left)}.mg-c-input__box::placeholder{color:var(--mg-c-input-placeholder-color-text);font-style:italic}.mg-c-input__box:focus{box-shadow:0 0 var(--mg-b-size-4) var(--mg-c-input-color-box-shadow-focus)}.mg-c-input__box:disabled{opacity:var(--mg-b-opacity-element-disabled)}.mg-c-input.mg-c-input--has-error .mg-c-input__box{border-color:var(--mg-b-color-danger)}.mg-c-input.mg-c-input--is-input-group-append{--mg-c-button-border-radius-top-left:0;--mg-c-button-border-radius-bottom-left:0}.mg-c-input.mg-c-input--is-input-group-append .mg-c-input__box{margin-right:calc(-1*var(--mg-b-size-border));border-bottom-right-radius:0;border-top-right-radius:0}.mg-c-input.mg-c-input--is-input-group-append .mg-c-input__box:focus-visible{outline-offset:-0.2rem;outline-style:solid;outline-width:.2rem}.mg-c-input.mg-c-input--has-buttons-group-append ::slotted([slot=append-input]){--mg-c-button-border-radius-top-right:0;--mg-c-button-border-radius-bottom-right:0}.mg-c-input.mg-c-input--has-buttons-group-append ::slotted([slot=append-input]:not(:last-of-type)){--mg-c-button-border-right-width:0}.mg-c-input.mg-c-input--has-buttons-group-append ::slotted([slot=append-input]:last-of-type){--mg-c-button-border-radius-top-right:var(--mg-c-input-border-radius);--mg-c-button-border-radius-bottom-right:var(--mg-c-input-border-radius)}.mg-c-input.mg-c-input--is-append-input-slot-content:not(.mg-c-input--readonly) ::slotted([slot=append-input]){align-self:start;padding-top:calc((var(--mg-b-size-min-height) - var(--mg-b-size-16))/2)}.mg-c-input__input-container{width:100%;flex:1 auto}.mg-c-input.mg-c-input--width-full .mg-c-input__box{width:100%}.mg-c-input.mg-c-input--width-2 .mg-c-input__with-character-left,.mg-c-input.mg-c-input--width-4 .mg-c-input__with-character-left,.mg-c-input.mg-c-input--width-16 .mg-c-input__with-character-left{width:max-content}.mg-c-input.mg-c-input--width-2 .mg-c-input__with-character-left:has(textarea),.mg-c-input.mg-c-input--width-4 .mg-c-input__with-character-left:has(textarea),.mg-c-input.mg-c-input--width-16 .mg-c-input__with-character-left:has(textarea){flex-grow:inherit}.mg-c-input.mg-c-input--width-2 .mg-c-input__box{width:var(--mg-b-size-48)}.mg-c-input.mg-c-input--width-2 .mg-c-input__with-character-left:not(:has(textarea)) .mg-c-input__box{width:calc(var(--mg-b-size-48) + var(--mg-c-character-left-message-length)*(.35ch + .3rem))}.mg-c-input.mg-c-input--width-4 .mg-c-input__box{width:var(--mg-b-size-72)}.mg-c-input.mg-c-input--width-4 .mg-c-input__with-character-left:not(:has(textarea)) .mg-c-input__box{width:calc(var(--mg-b-size-72) + var(--mg-c-character-left-message-length)*(.35ch + .3rem))}.mg-c-input.mg-c-input--width-16 .mg-c-input__box{width:calc(26*var(--mg-b-size-8))}.mg-c-input.mg-c-input--width-16 .mg-c-input__with-character-left:not(:has(textarea)) .mg-c-input__box{width:calc(calc(26 * var(--mg-b-size-8)) + var(--mg-c-character-left-message-length)*(.35ch + .3rem))}.mg-c-input.mg-c-input--width-full:not(.mg-c-input--label-on-top){justify-content:stretch}.mg-c-input.mg-c-input--is-input-group-append ::slotted([slot=append-input]),.mg-c-input.mg-c-input--is-append-input-slot-content ::slotted([slot=append-input]){width:auto}:host(.mg-c-input.mg-c-input--width-full) ::slotted(*:not(mg-input-title)){width:100%;max-width:100%}.mg-c-input__readonly-value{min-height:var(--mg-b-font-size);align-self:flex-start;margin-top:calc((var(--mg-b-size-min-height) - var(--mg-b-font-size)*var(--mg-b-line-height))/2);word-break:break-word}.mg-c-input.mg-c-input--display-character-left mg-character-left{font-size:var(--mg-b-font-size-small);opacity:.6}.mg-c-input.mg-c-input--display-character-left .mg-c-input__input+.mg-c-input__help-text ::slotted(*),.mg-c-input.mg-c-input--display-character-left .mg-c-input__input+.mg-c-input__error ::slotted(*){margin-top:0}.mg-u-visually-hidden{position:absolute !important;overflow:hidden !important;width:.1rem !important;height:.1rem !important;padding:0 !important;border:0 !important;margin:-0.1rem !important;clip:rect(0.1rem, 0.1rem, 0.1rem, 0.1rem) !important;clip-path:inset(50%) !important;white-space:nowrap !important}*:focus:not(:focus-visible){outline:none}@media (prefers-reduced-motion){*{animation:none !important;transition:none !important}}.mg-c-input__with-character-left{position:relative;width:100%}.mg-c-input.mg-u-is-focused .mg-c-input__with-character-left .mg-c-input__box{padding-right:max(var(--mg-c-character-left-message-length)*(.35ch + .3rem) + var(--mg-b-size-16)*clamp(0,var(--mg-c-character-left-message-length),1),var(--mg-b-size-8))}.mg-c-input__with-character-left mg-character-left{position:absolute;top:50%;right:var(--mg-b-size-8);display:none;font-size:var(--mg-b-font-size-small);opacity:.6;transform:translateY(-50%)}.mg-c-input.mg-u-is-focused .mg-c-input__with-character-left mg-character-left{display:block}.mg-c-input.mg-c-input--readonly b{min-height:var(--mg-b-font-size);margin-top:calc((var(--mg-b-size-min-height) - var(--mg-b-font-size)*var(--mg-b-line-height))/2)}.mg-c-input.mg-c-input--has-icon .mg-c-input__with-character-left>mg-icon{position:absolute;top:50%;left:var(--mg-b-size-8);color:var(--mg-c-input-color-icon);transform:translateY(-50%)}.mg-c-input.mg-c-input--has-icon .mg-c-input__with-character-left .mg-c-input__box{padding-left:calc(var(--mg-b-size-16) + var(--mg-b-size-8)*2)}";const ne=ae;const oe=t=>typeof t==="object"&&typeof t.title==="string"&&t.value!==undefined;const re=t=>x(t)||Array.isArray(t)&&t.every(oe);const se=class{constructor(i){t(this,i);this.valueChange=n(this,"value-change",7);this.inputValid=n(this,"input-valid",7);this.classFocus="mg-u-is-focused";this.classIsInputGroupAppend="mg-c-input--is-input-group-append";this.classHasIcon="mg-c-input--has-icon";this.classHasButtonsGroupAppend="mg-c-input--has-buttons-group-append";this.classIsAppendInputSlotContent="mg-c-input--is-append-input-slot-content";this.hasDisplayedError=false;this.name=this.identifier;this.type="text";this.labelHide=false;this.maxlength=400;this.required=false;this.readonly=false;this.disabled=false;this.mgWidth="full";this.tooltipPosition="input";this.characterLeftHide=false;this.classCollection=new s(["mg-c-input--text"]);this.handleInput=()=>{this.checkValidity();if(this.hasDisplayedError){this.setErrorMessage()}this.value=this.input.value};this.handleFocus=()=>{this.classCollection.add(this.classFocus);this.classCollection=new s(this.classCollection.classes)};this.handleBlur=()=>{this.classCollection.delete(this.classFocus);this.classCollection=new s(this.classCollection.classes);this.handlerInProgress="blur";this.displayError().finally((()=>{this.handlerInProgress=undefined}))};this.checkValidity=()=>{this.setValidity(this.readonly||this.disabled||this.input.checkValidity())};this.setErrorMessage=t=>{this.errorMessage=undefined;if(!this.valid&&t!==undefined){this.errorMessage=t}else if(!this.valid&&this.input.validity.patternMismatch){this.errorMessage=this.patternErrorMessage}else if(!this.valid&&this.input.validity.valueMissing){this.errorMessage=this.messages.errors.required}};this.validateAppendSlot=()=>{const t=Array.from(this.element.querySelectorAll('[slot="append-input"]'));if(t.length===1){if(t[0].nodeName==="MG-BUTTON"){this.classCollection.add(this.classIsInputGroupAppend)}else{this.classCollection.add(this.classIsAppendInputSlotContent);this.slotContent=t[0].textContent}}else if(t.filter((t=>t.nodeName==="MG-BUTTON")).length>1){this.classCollection.add(this.classIsInputGroupAppend);this.classCollection.add(this.classHasButtonsGroupAppend)}};this.hasDatalist=()=>re(this.datalistoptions)&&this.datalistoptions.length>0;this.renderReadonly=()=>this.slotContent!==undefined?e("span",{class:"mg-c-input__readonly-value"},e("b",null,this.value),this.slotContent):e("b",{class:"mg-c-input__readonly-value"},this.value)}handleValue(t){var e,i;if((e=this.datalistoptions)===null||e===void 0?void 0:e.every(oe)){this.valueChange.emit(((i=this.datalistoptions.find((e=>e.title===t)))===null||i===void 0?void 0:i.value)||t)}else{this.valueChange.emit(t)}}validateIcon(t){if(t!==undefined){this.classCollection.add(this.classHasIcon)}else{this.classCollection.delete(this.classHasIcon)}}validateDatalistoptions(t){if(Boolean(t)&&!re(t)){throw new Error(`<mg-input-text> prop "datalistoptions" values must be the same type, string or OptionType. Passed value: ${r(t)}.`)}}watchReadonly(t){if(t)this.classCollection.add(zt);else this.classCollection.delete(zt)}handleValidityChange(t,e,i){if(this.input!==undefined){this.input[i]=t;this.checkValidity();if(this.hasDisplayedError){this.setErrorMessage();this.hasDisplayedError=false}}}watchDisabled(t){if(t)this.classCollection.add(xt);else this.classCollection.delete(xt)}watchMgWidth(t){bt.forEach((t=>{this.classCollection.delete(`mg-c-input--width-${t}`)}));if(t!==undefined)this.classCollection.add(`mg-c-input--width-${this.mgWidth}`)}validatePattern(t){if(t!==undefined&&!(l(this.pattern)&&l(this.patternErrorMessage))){throw new Error(`<mg-input-text> props "pattern" and "patternErrorMessage" must be non-empty string and paired. Passed value: "pattern='${r(this.pattern)}'" and "patternErrorMessage='${r(this.patternErrorMessage)}'".`)}}async setFocus(){this.input.focus()}displayError(){return new Promise((t=>{requestAnimationFrame((()=>{this.checkValidity();this.setErrorMessage();this.hasDisplayedError=this.invalid;t()}))}))}async setError(t,e){if(typeof t!=="boolean"){throw new Error('<mg-input-text> method "setError()" param "valid" must be a boolean.')}else if(!l(e)){throw new Error('<mg-input-text> method "setError()" param "errorMessage" must be a string.')}else{this.setValidity(t);this.setErrorMessage(t?undefined:e);this.hasDisplayedError=this.invalid}}async reset(){if(!this.readonly){this.value="";this.checkValidity();this.errorMessage=undefined;this.hasDisplayedError=false}}setValidity(t){const e=this.valid;this.valid=t;this.invalid=!this.valid;if(this.handlerInProgress===undefined||this.handlerInProgress==="blur"&&this.valid!==e)this.inputValid.emit(this.valid)}componentWillLoad(){this.messages=k(this.element).messages;this.characterLeftId=`${this.identifier}-character-left`;this.datalistId=`${this.identifier}-datalist`;this.validateIcon(this.icon);this.validateDatalistoptions(this.datalistoptions);this.validatePattern(this.pattern);this.validatePattern(this.patternErrorMessage);this.validateAppendSlot();this.watchMgWidth(this.mgWidth);this.watchReadonly(this.readonly);this.watchDisabled(this.disabled);return setTimeout((()=>{this.checkValidity()}),0)}render(){return e("mg-input",{key:"11cdf9ff3675c7e130a46bce025b7c8b5f4e0d02",label:this.label,identifier:this.identifier,class:this.classCollection.join(),ariaDescribedbyIDs:[this.characterLeftId],labelOnTop:this.labelOnTop,labelHide:this.labelHide,required:this.required,tooltip:this.tooltip,tooltipPosition:this.readonly&&this.value===undefined?"label":this.tooltipPosition,helpText:this.helpText,errorMessage:this.errorMessage},this.readonly?this.value&&this.renderReadonly():[e("div",{key:"input",class:"mg-c-input__with-character-left",style:{"--mg-c-character-left-message-length":(!this.characterLeftHide?this.maxlength.toString().length*2+1:0).toString()}},this.icon!==undefined&&e("mg-icon",{icon:this.icon}),e("input",{type:this.type,class:"mg-c-input__box mg-c-input__box--width",value:this.value,id:this.identifier,list:this.hasDatalist()?this.datalistId:undefined,autocomplete:this.hasDatalist()?"off":undefined,name:this.name,placeholder:this.placeholder,title:this.placeholder,maxlength:this.maxlength,disabled:this.disabled,required:this.required,"aria-invalid":(this.invalid===true).toString(),pattern:this.pattern,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,ref:t=>{if(t!==null)this.input=t}}),this.hasDatalist()&&e("datalist",{id:this.datalistId},this.datalistoptions.map((t=>e("option",{value:oe(t)?t.title:t,key:t})))),!this.characterLeftHide&&this.maxlength>0&&e("mg-character-left",{identifier:this.characterLeftId,characters:this.value,maxlength:this.maxlength})),e("slot",{key:"slot",name:"append-input"})])}get element(){return a(this)}static get watchers(){return{value:["handleValue"],icon:["validateIcon"],datalistoptions:["validateDatalistoptions"],readonly:["watchReadonly","handleValidityChange"],required:["handleValidityChange"],disabled:["handleValidityChange","watchDisabled"],mgWidth:["watchMgWidth"],pattern:["validatePattern"],patternErrorMessage:["validatePattern"]}}};se.style=ne;const le=".mg-c-input__box{height:var(--mg-b-size-min-height);box-sizing:border-box;padding:calc((var(--mg-b-size-min-height) - var(--mg-b-font-size)*var(--mg-b-line-height))/2) var(--mg-b-size-8);border-width:var(--mg-c-input-border-width);border-style:solid;border-color:var(--mg-c-input-color-border);border-radius:var(--mg-c-input-border-radius);background-color:var(--mg-b-color-light);color:var(--mg-b-color-dark);font-family:inherit;font-size:var(--mg-b-font-size);text-align:var(--mg-c-input-text-align, left)}.mg-c-input__box::placeholder{color:var(--mg-c-input-placeholder-color-text);font-style:italic}.mg-c-input__box:focus{box-shadow:0 0 var(--mg-b-size-4) var(--mg-c-input-color-box-shadow-focus)}.mg-c-input__box:disabled{opacity:var(--mg-b-opacity-element-disabled)}.mg-c-input.mg-c-input--has-error .mg-c-input__box{border-color:var(--mg-b-color-danger)}.mg-c-input.mg-c-input--is-input-group-append{--mg-c-button-border-radius-top-left:0;--mg-c-button-border-radius-bottom-left:0}.mg-c-input.mg-c-input--is-input-group-append .mg-c-input__box{margin-right:calc(-1*var(--mg-b-size-border));border-bottom-right-radius:0;border-top-right-radius:0}.mg-c-input.mg-c-input--is-input-group-append .mg-c-input__box:focus-visible{outline-offset:-0.2rem;outline-style:solid;outline-width:.2rem}.mg-c-input.mg-c-input--has-buttons-group-append ::slotted([slot=append-input]){--mg-c-button-border-radius-top-right:0;--mg-c-button-border-radius-bottom-right:0}.mg-c-input.mg-c-input--has-buttons-group-append ::slotted([slot=append-input]:not(:last-of-type)){--mg-c-button-border-right-width:0}.mg-c-input.mg-c-input--has-buttons-group-append ::slotted([slot=append-input]:last-of-type){--mg-c-button-border-radius-top-right:var(--mg-c-input-border-radius);--mg-c-button-border-radius-bottom-right:var(--mg-c-input-border-radius)}.mg-c-input.mg-c-input--is-append-input-slot-content:not(.mg-c-input--readonly) ::slotted([slot=append-input]){align-self:start;padding-top:calc((var(--mg-b-size-min-height) - var(--mg-b-size-16))/2)}.mg-c-input__input-container{width:100%;flex:1 auto}.mg-c-input.mg-c-input--width-full .mg-c-input__box{width:100%}.mg-c-input.mg-c-input--width-2 .mg-c-input__with-character-left,.mg-c-input.mg-c-input--width-4 .mg-c-input__with-character-left,.mg-c-input.mg-c-input--width-16 .mg-c-input__with-character-left{width:max-content}.mg-c-input.mg-c-input--width-2 .mg-c-input__with-character-left:has(textarea),.mg-c-input.mg-c-input--width-4 .mg-c-input__with-character-left:has(textarea),.mg-c-input.mg-c-input--width-16 .mg-c-input__with-character-left:has(textarea){flex-grow:inherit}.mg-c-input.mg-c-input--width-2 .mg-c-input__box{width:var(--mg-b-size-48)}.mg-c-input.mg-c-input--width-2 .mg-c-input__with-character-left:not(:has(textarea)) .mg-c-input__box{width:calc(var(--mg-b-size-48) + var(--mg-c-character-left-message-length)*(.35ch + .3rem))}.mg-c-input.mg-c-input--width-4 .mg-c-input__box{width:var(--mg-b-size-72)}.mg-c-input.mg-c-input--width-4 .mg-c-input__with-character-left:not(:has(textarea)) .mg-c-input__box{width:calc(var(--mg-b-size-72) + var(--mg-c-character-left-message-length)*(.35ch + .3rem))}.mg-c-input.mg-c-input--width-16 .mg-c-input__box{width:calc(26*var(--mg-b-size-8))}.mg-c-input.mg-c-input--width-16 .mg-c-input__with-character-left:not(:has(textarea)) .mg-c-input__box{width:calc(calc(26 * var(--mg-b-size-8)) + var(--mg-c-character-left-message-length)*(.35ch + .3rem))}.mg-c-input.mg-c-input--width-full:not(.mg-c-input--label-on-top){justify-content:stretch}.mg-c-input.mg-c-input--is-input-group-append ::slotted([slot=append-input]),.mg-c-input.mg-c-input--is-append-input-slot-content ::slotted([slot=append-input]){width:auto}:host(.mg-c-input.mg-c-input--width-full) ::slotted(*:not(mg-input-title)){width:100%;max-width:100%}.mg-c-input__readonly-value{min-height:var(--mg-b-font-size);align-self:flex-start;margin-top:calc((var(--mg-b-size-min-height) - var(--mg-b-font-size)*var(--mg-b-line-height))/2);word-break:break-word}.mg-c-input.mg-c-input--display-character-left mg-character-left{font-size:var(--mg-b-font-size-small);opacity:.6}.mg-c-input.mg-c-input--display-character-left .mg-c-input__input+.mg-c-input__help-text ::slotted(*),.mg-c-input.mg-c-input--display-character-left .mg-c-input__input+.mg-c-input__error ::slotted(*){margin-top:0}.mg-u-visually-hidden{position:absolute !important;overflow:hidden !important;width:.1rem !important;height:.1rem !important;padding:0 !important;border:0 !important;margin:-0.1rem !important;clip:rect(0.1rem, 0.1rem, 0.1rem, 0.1rem) !important;clip-path:inset(50%) !important;white-space:nowrap !important}*:focus:not(:focus-visible){outline:none}@media (prefers-reduced-motion){*{animation:none !important;transition:none !important}}.mg-c-input__input{align-items:start}.mg-c-input__box{display:block;height:auto;resize:none}.mg-c-input__box.mg-c-input__box--resizable{resize:both}.mg-c-input__box.mg-c-input__box--resizable-horizontal{resize:horizontal}.mg-c-input__box.mg-c-input__box--resizable-vertical{resize:vertical}.mg-c-input__readonly-value{white-space:pre-line}.mg-c-input__with-character-left{flex-grow:1}.mg-c-input__with-character-left mg-character-left{display:block;text-align:end;visibility:hidden}.mg-c-input.mg-u-is-focused .mg-c-input__with-character-left mg-character-left{visibility:visible}@-moz-document url-prefix(){.mg-c-input__box{overflow-x:hidden}}";const ce=le;const he=class{constructor(e){t(this,e);this.valueChange=n(this,"value-change",7);this.inputValid=n(this,"input-valid",7);this.classFocus="mg-u-is-focused";this.classDisplayCharacterLeft="mg-c-input--display-character-left";this.hasDisplayedError=false;this.name=this.identifier;this.labelHide=false;this.maxlength=4e3;this.required=false;this.readonly=false;this.disabled=false;this.mgWidth="full";this.rows=3;this.tooltipPosition="input";this.characterLeftHide=false;this.resizable="none";this.classCollection=new s(["mg-c-input--textarea"]);this.handleInput=()=>{if(this.hasDisplayedError){this.checkValidity();this.setErrorMessage()}this.value=this.input.value};this.handleFocus=()=>{this.classCollection.add(this.classFocus);this.classCollection=new s(this.classCollection.classes)};this.handleBlur=()=>{this.classCollection.delete(this.classFocus);this.classCollection=new s(this.classCollection.classes);this.handlerInProgress="blur";this.displayError().finally((()=>{this.handlerInProgress=undefined}))};this.getPatternValidity=()=>this.pattern===undefined||new RegExp(`^${this.pattern}$`,"u").test(this.value);this.checkValidity=()=>{this.setValidity(this.readonly||this.disabled||this.input.checkValidity()&&this.getPatternValidity())};this.setErrorMessage=t=>{this.errorMessage=undefined;if(!this.valid){if(t!==undefined){this.errorMessage=t}else if(!this.getPatternValidity()){this.errorMessage=this.patternErrorMessage}else if(this.input.validity.valueMissing){this.errorMessage=this.messages.errors.required}}}}handleValue(t){this.checkValidity();this.valueChange.emit(t)}watchReadonly(t){if(t)this.classCollection.add(zt);else this.classCollection.delete(zt)}handleValidityChange(t,e,i){if(this.input!==undefined){this.input[i]=t;this.checkValidity();if(this.hasDisplayedError){this.setErrorMessage();this.hasDisplayedError=false}}}validateDisabled(t){if(t)this.classCollection.add(xt);else this.classCollection.delete(xt)}watchMgWidth(t){bt.forEach((t=>{this.classCollection.delete(`mg-c-input--width-${t}`)}));if(t!==undefined)this.classCollection.add(`mg-c-input--width-${this.mgWidth}`)}validatePattern(t){if(t!==undefined&&!(l(this.pattern)&&l(this.patternErrorMessage))){throw new Error(`<mg-input-textarea> props "pattern" and "patternErrorMessage" must be non-empty string and paired. Passed value: "pattern='${r(this.pattern)}'" and "patternErrorMessage='${r(this.patternErrorMessage)}'".`)}}validatecharacterLeftHide(t){if(t){this.classCollection.delete(this.classDisplayCharacterLeft)}else{this.classCollection.add(this.classDisplayCharacterLeft)}}displayError(){return new Promise((t=>{requestAnimationFrame((()=>{this.checkValidity();this.setErrorMessage();this.hasDisplayedError=this.invalid;t()}))}))}async setError(t,e){if(typeof t!=="boolean"){throw new Error('<mg-input-textarea> method "setError()" param "valid" must be a boolean.')}else if(!l(e)){throw new Error('<mg-input-textarea> method "setError()" param "errorMessage" must be a string.')}else{this.setValidity(t);this.setErrorMessage(t?undefined:e);this.hasDisplayedError=this.invalid}}async reset(){if(!this.readonly){this.value="";this.checkValidity();this.errorMessage=undefined;this.hasDisplayedError=false}}setValidity(t){const e=this.valid;this.valid=t;this.invalid=!this.valid;if(this.handlerInProgress===undefined||this.handlerInProgress==="blur"&&this.valid!==e)this.inputValid.emit(this.valid)}componentWillLoad(){this.messages=k(this.element).messages;this.characterLeftId=`${this.identifier}-character-left`;this.validatecharacterLeftHide(this.characterLeftHide);this.validatePattern(this.pattern);this.validatePattern(this.patternErrorMessage);this.watchMgWidth(this.mgWidth);this.watchReadonly(this.readonly);this.validateDisabled(this.disabled);return setTimeout((()=>{this.checkValidity()}),0)}render(){return e("mg-input",{key:"a7c6657511d21d8df9e11f7fb1bf3d2d42a01fa0",label:this.label,identifier:this.identifier,class:this.classCollection.join(),ariaDescribedbyIDs:[this.characterLeftId],labelOnTop:this.labelOnTop,labelHide:this.labelHide,required:this.required,tooltip:this.tooltip,tooltipPosition:this.readonly&&this.value===undefined?"label":this.tooltipPosition,helpText:this.helpText,errorMessage:this.errorMessage},this.readonly?this.value&&e("b",{class:"mg-c-input__readonly-value"},this.value):e("div",{class:"mg-c-input__with-character-left"},e("textarea",{class:{"mg-c-input__box":true,"mg-c-input__box--width":true,"mg-c-input__box--resizable":this.resizable==="both","mg-c-input__box--resizable-horizontal":this.resizable==="horizontal","mg-c-input__box--resizable-vertical":this.resizable==="vertical"},value:this.value,id:this.identifier,name:this.name,placeholder:this.placeholder,title:this.placeholder,rows:this.rows,maxlength:this.maxlength,disabled:this.disabled,required:this.required,"aria-invalid":(this.invalid===true).toString(),onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,ref:t=>{if(t!==null)this.input=t}}),!this.characterLeftHide&&this.maxlength>0&&e("mg-character-left",{identifier:this.characterLeftId,characters:this.value,maxlength:this.maxlength})))}get element(){return a(this)}static get watchers(){return{value:["handleValue"],readonly:["watchReadonly","handleValidityChange"],required:["handleValidityChange"],disabled:["handleValidityChange","validateDisabled"],mgWidth:["watchMgWidth"],pattern:["validatePattern"],patternErrorMessage:["validatePattern"],characterLeftHide:["validatecharacterLeftHide"]}}};he.style=ce;const ge=".mg-u-form-legacy.sc-mg-input-title{--mg-c-form-inputs-title-width:calc(100% / 3 - 20px)}.mg-u-is-asterisk.sc-mg-input-title{color:var(--mg-b-color-danger)}legend.mg-c-input-title.sc-mg-input-title{padding-right:0;padding-left:0}.mg-c-input-title__required.sc-mg-input-title{display:var(--mg-c-input-title-display, unset)}";const me=ge;const de=class{constructor(e){t(this,e);this.isLegend=false;this.tagName="label"}validateIdentifier(t){if(!l(t)){throw new Error('<mg-input-title> prop "identifier" is required.')}else if(!h(t)){console.error(`<mg-input-title> prop "identifier" value is invalid. Passed value: ${r(t)}.`)}}validateIsLegend(t){this.tagName=t?"legend":"label"}componentWillLoad(){this.validateIdentifier(this.identifier);this.validateIsLegend(this.isLegend)}render(){const t=this.readonly?"span":this.tagName;return e(t,{key:"f8f8baaeb87e7c2cc77e71781f4d33ea5a63f760",class:"mg-c-input-title",htmlFor:!this.isLegend&&this.identifier,id:this.isLegend?`${this.identifier}-title`:undefined},e("slot",{key:"7f6c0f451dfe789d924e9f608813e03bc72ad88a"}),this.required&&!this.readonly&&e("span",{key:"a78c5191995399e3e2ad346fec8546277581ca9d",class:"mg-c-input-title__required"}," ",e("span",{key:"ae8df5f13d54a1b8419d0d01048ff91dda601ab6",class:"mg-u-is-asterisk"},"*")))}static get watchers(){return{identifier:["validateIdentifier"],isLegend:["validateIsLegend"]}}};de.style=me;const ue=".mg-c-input__readonly-value{min-height:var(--mg-b-font-size);align-self:flex-start;margin-top:calc((var(--mg-b-size-min-height) - var(--mg-b-font-size)*var(--mg-b-line-height))/2);word-break:break-word}.mg-u-visually-hidden{position:absolute !important;overflow:hidden !important;width:.1rem !important;height:.1rem !important;padding:0 !important;border:0 !important;margin:-0.1rem !important;clip:rect(0.1rem, 0.1rem, 0.1rem, 0.1rem) !important;clip-path:inset(50%) !important;white-space:nowrap !important}*:focus:not(:focus-visible){outline:none}@media (prefers-reduced-motion){*{animation:none !important;transition:none !important}}.mg-c-input__toggle-item-container{overflow:hidden;box-sizing:border-box;padding:var(--mg-b-size-4) var(--mg-b-size-8);border:0;border-radius:calc((var(--mg-b-font-size)*var(--mg-b-line-height) + 2*var(--mg-b-size-4))/var(--mg-c-input-toggle-border-radius-ratio));background-color:unset;color:var(--mg-b-color-dark);font-weight:unset;text-overflow:ellipsis;white-space:nowrap}.mg-c-input__toggle-item-container:first-of-type{background-color:color-mix(in srgb, var(--mg-b-color-app), white 80%);color:var(--mg-b-color-app);font-weight:600}.mg-c-input__button-toggle{display:flex;min-width:0;padding:var(--mg-b-size-4);border-width:var(--mg-c-input-border-width);border-style:solid;border-color:var(--mg-c-input-color-border);border-radius:calc((var(--mg-b-font-size)*var(--mg-b-line-height) + 2*(var(--mg-b-size-4) + var(--mg-b-size-4) + var(--mg-c-input-border-width)))/var(--mg-c-input-toggle-border-radius-ratio));background-color:var(--mg-b-color-light);cursor:pointer;font-family:var(--mg-b-font-family);font-size:inherit;line-height:inherit}.mg-c-input__button-toggle:disabled{cursor:default}.mg-c-input.mg-c-input--toggle .mg-c-input__input-container{min-width:0;flex:auto}.mg-c-input.mg-c-input--toggle-is-active .mg-c-input__toggle-item-container:first-of-type{background-color:unset;color:var(--mg-b-color-dark);font-weight:unset}.mg-c-input.mg-c-input--toggle-is-active .mg-c-input__toggle-item-container:last-of-type{background-color:color-mix(in srgb, var(--mg-b-color-app), white 80%);color:var(--mg-b-color-info);font-weight:600}.mg-c-input.mg-c-input--toggle-icon .mg-c-input__toggle-item-container{display:flex;width:calc(var(--mg-b-font-size)*var(--mg-b-line-height) + 2*var(--mg-b-size-4));height:calc(var(--mg-b-font-size)*var(--mg-b-line-height) + 2*var(--mg-b-size-4));align-items:center;justify-content:center;padding:0;visibility:hidden}.mg-c-input.mg-c-input--toggle-icon .mg-c-input__toggle-item-container:first-of-type{visibility:visible}.mg-c-input.mg-c-input--toggle-icon .mg-c-input__toggle-item-container ::slotted(mg-icon){display:flex}.mg-c-input.mg-c-input--toggle-icon.mg-c-input--toggle-is-active .mg-c-input__toggle-item-container:first-of-type{visibility:hidden}.mg-c-input.mg-c-input--toggle-icon.mg-c-input--toggle-is-active .mg-c-input__toggle-item-container:last-of-type{visibility:visible}.mg-c-input.mg-c-input--toggle-on-off .mg-c-input__toggle-item-container:first-of-type{background-color:var(--mg-b-color-neutral-30);color:var(--mg-b-color-dark);font-weight:600}.mg-c-input.mg-c-input--toggle-on-off.mg-c-input--toggle-is-active .mg-c-input__toggle-item-container:first-of-type{background-color:unset;color:var(--mg-b-color-dark);font-weight:unset}";const pe=ue;const ve=t=>typeof t==="object"&&typeof t.title==="string"&&t.value!==undefined;const fe=class{constructor(e){t(this,e);this.valueChange=n(this,"value-change",7);this.inputValid=n(this,"input-valid",7);this.classIsActive="mg-c-input--toggle-is-active";this.classOnOff="mg-c-input--toggle-on-off";this.classIcon="mg-c-input--toggle-icon";this.name=this.identifier;this.labelHide=false;this.isOnOff=false;this.isIcon=false;this.readonly=false;this.disabled=false;this.tooltipPosition="input";this.classCollection=new s(["mg-c-input--toggle"]);this.checked=false;this.setErrorMessage=t=>{this.errorMessage=undefined;if(!this.valid&&t!==undefined){this.errorMessage=t}};this.toggleChecked=()=>{this.checked=!this.checked};this.validateSlots=()=>{const t=Array.from(this.element.children);if(t.length!==2){throw new Error("<mg-input-toggle> 2 slots are required.")}else if(!this.isIcon){t.forEach((t=>t.setAttribute("title",t.textContent)))}};this.getCheckedItem=t=>{var e;if(((e=this.options)===null||e===void 0?void 0:e.length)===2){return this.options[t?1:0]}else{return null}}}handleValue(t){this.setChecked();this.valueChange.emit(t)}validateItems(t){if(typeof t==="object"&&this.items.length!==2){throw new Error(`<mg-input-toggle> prop "items" require 2 items. Passed value: ${r(t)}.`)}else if(x(t)){this.options=t.map((t=>({title:t,value:t})))}else if(Array.isArray(t)&&t.every(ve)){this.options=t}else{throw new Error(`<mg-input-toggle> prop "items" is required and all items must be the same type: ToggleValue. Passed value: ${r(t)}.`)}}watchIsOnOff(t){if(t)this.classCollection.add(this.classOnOff);else this.classCollection.delete(this.classOnOff)}watchIsIcon(t){if(t)this.classCollection.add(this.classIcon);else this.classCollection.delete(this.classIcon)}watchReadonly(t){if(t)this.classCollection.add(zt);else this.classCollection.delete(zt)}watchDisabled(t){if(t)this.classCollection.add(xt);else this.classCollection.delete(xt)}handleChecked(t){if(t)this.classCollection.add(this.classIsActive);else this.classCollection.delete(this.classIsActive);this.value=this.getCheckedItem(t).value}async setError(t,e){if(typeof t!=="boolean"){throw new Error('<mg-input-toggle> method "setError()" param "valid" must be a boolean.')}else if(!l(e)){throw new Error('<mg-input-toggle> method "setError()" param "errorMessage" must be a string.')}else{this.valid=t;this.inputValid.emit(t);this.setErrorMessage(t?undefined:e)}}async reset(){if(!this.readonly){this.value=this.options[0].value;this.errorMessage=undefined;this.valid=undefined;this.setChecked()}}setChecked(){const t=this.options.map((t=>t.value)).findIndex((t=>t===true));if([0,1].includes(t)){if(["","true"].includes(this.value)&&this.options.find((t=>t.value))!==undefined){this.value=true}const e=this.value===this.options[t].value;this.checked=t===0?!e:e}else{this.checked=this.value===this.options[1].value}}componentWillLoad(){this.validateItems(this.items);this.validateSlots();this.setChecked();this.watchIsIcon(this.isIcon);this.watchIsOnOff(this.isOnOff);this.watchReadonly(this.readonly);this.watchDisabled(this.disabled)}render(){const t=this.getCheckedItem(this.checked);return e("mg-input",{key:"769507fe4a474312d399cc356682221b5d8f3267",label:this.label,helpText:this.helpText,identifier:this.identifier,class:this.classCollection.join(),ariaDescribedbyIDs:[],labelOnTop:this.labelOnTop,labelHide:this.labelHide,required:undefined,tooltip:this.tooltip,tooltipPosition:this.tooltipPosition,errorMessage:this.errorMessage},this.readonly?t&&e("b",{class:"mg-c-input__readonly-value"},t.title):e("button",{type:"button",role:"switch","aria-checked":this.checked.toString(),"aria-readonly":this.disabled||this.readonly,id:this.identifier,class:"mg-c-input__button-toggle",disabled:this.disabled||this.readonly,onClick:this.toggleChecked},e("span",{"aria-hidden":"true",class:"mg-c-input__toggle-item-container"},e("slot",{name:"item-1"})),e("span",{"aria-hidden":"true",class:"mg-c-input__toggle-item-container"},e("slot",{name:"item-2"}))))}get element(){return a(this)}static get watchers(){return{value:["handleValue"],items:["validateItems"],isOnOff:["watchIsOnOff"],isIcon:["watchIsIcon"],readonly:["watchReadonly"],disabled:["watchDisabled"],checked:["handleChecked"]}}};fe.style=pe;class be{constructor(t,e,i){this.parentElement=t;this.itemMoreElement=e;this.itemMoreContainerElement=i;this.disconnect=()=>{this._resizeObserver.disconnect()};this.isMoreElement=t=>t===this.itemMoreElement;this.isOverflowElement=(t,e)=>{const i=this.itemMoreContainerElement.children.length>0;if(!this.isMoreElement(e)){if(e.nextElementSibling.nodeName!=="MG-ITEM-MORE"&&!i)return t+this.itemMoreElement.offsetWidth>this._availableWidth;else return t>this._availableWidth}else return!i};this.toggleItem=(t,e)=>{if(this.isMoreElement(t)&&e)t.setAttribute("hidden","");else if(this.isMoreElement(t)&&!e)t.removeAttribute("hidden");else if(!this.isMoreElement(t)&&e)this.itemMoreContainerElement.appendChild(t);else if(!this.isMoreElement(t)&&t.parentElement!==this.parentElement)this.parentElement.insertBefore(t,this.itemMoreElement)};if(!this.parentElement||!this.itemMoreElement||!this.itemMoreContainerElement){throw new Error("OverflowBehavior - all construtor params are required")}const a=Array.from(this.parentElement.children);this._resizeObserver=new ResizeObserver((t=>{this._availableWidth=t.map((t=>t.contentRect.width)).sort(((t,e)=>t-e)).shift();a.forEach((t=>this.toggleItem(t,false)));let e=0;a.forEach(((t,i)=>{e+=t.offsetWidth;if(i)this.toggleItem(t,this.isOverflowElement(e,t))}))}));this._resizeObserver.observe(this.parentElement)}}const we=".mg-u-visually-hidden{position:absolute !important;overflow:hidden !important;width:.1rem !important;height:.1rem !important;padding:0 !important;border:0 !important;margin:-0.1rem !important;clip:rect(0.1rem, 0.1rem, 0.1rem, 0.1rem) !important;clip-path:inset(50%) !important;white-space:nowrap !important}*:focus:not(:focus-visible){outline:none}@media (prefers-reduced-motion){*{animation:none !important;transition:none !important}}:host:not([hidden]){display:flex}";const _e=we;const xe=class{constructor(e){t(this,e);this.name="mg-item-more";this.icon={icon:"ellipsis-vertical"};this.slotlabel={display:false}}validateIcon(t){if(typeof t!=="object"||typeof t==="object"&&typeof t.icon!=="string")throw new Error(`<${this.name}> prop "icon" must match MgItemMore['icon'] type. Passed value: ${r(t)}.`)}validateSlotLabel(t){if(typeof t!=="object"||typeof t==="object"&&typeof t.display!=="boolean")throw new Error(`<${this.name}> prop "slotlabel" must match MgItemMore['slotlabel'] type. Passed value: ${r(t)}.`);else if(typeof t.label!=="string")this.slotlabel.label=this.messages.menuLabel}validateSize(t){if(t&&!V.includes(t))throw new Error(`<${this.name}> prop "size" must match MgItemMore['size'] type. Passed value: ${r(t)}.`)}componentWillLoad(){this.messages=k(this.element).messages.itemMore;this.validateIcon(this.icon);this.validateSlotLabel(this.slotlabel);this.validateSize(this.size)}componentDidLoad(){return setTimeout((()=>{this.parentMenu=this.element.closest("mg-menu")}))}componentDidUpdate(){if(this.parentMenu&&this.overflowBehavior===undefined){this.overflowBehavior=new be(this.parentMenu,this.element,this.itemMoreContainer)}}disconnectedCallback(){var t;(t=this.overflowBehavior)===null||t===void 0?void 0:t.disconnect()}render(){const t="mg-item-more";return e(i,{key:"522fc142a992fa450b2d102e2c053fcd25704dcc",role:"listitem","data-mg-popover-guard":`${t}-popover`},this.parentMenu&&e("mg-menu-item",{key:"c05fb5c0379656b9634beca745b3b74d36c8e46c","data-overflow-more":true,"data-size":this.parentMenu.size,"data-style-direction":C.HORIZONTAL,identifier:t},e("mg-icon",{key:"e40f07ce8c55c30ef79a42ddb973d884ab289427",icon:this.icon.icon,size:this.size,slot:"image"}),e("span",{key:"3b38b9362a023df9e53733bf810c4f37a0016a93",class:{"mg-u-visually-hidden":!this.slotlabel.display},slot:"label"},this.slotlabel.label),e("mg-menu",{key:"4f20389326507261356d897dd25e676ac37ca5bb",direction:C.VERTICAL,label:this.messages.menuLabel,size:this.size,ref:t=>{if(t!==null)this.itemMoreContainer=t}})))}get element(){return a(this)}static get watchers(){return{icon:["validateIcon"],slotlabel:["validateSlotLabel"],size:["validateSize"]}}};xe.style=_e;const ze=".mg-u-visually-hidden{position:absolute !important;overflow:hidden !important;width:.1rem !important;height:.1rem !important;padding:0 !important;border:0 !important;margin:-0.1rem !important;clip:rect(0.1rem, 0.1rem, 0.1rem, 0.1rem) !important;clip-path:inset(50%) !important;white-space:nowrap !important}*:focus:not(:focus-visible){outline:none}@media (prefers-reduced-motion){*{animation:none !important;transition:none !important}}/*!\n * @prop --mg-c-menu-color-background: Defines the background color of the menu. Unset by default, fallback on `--mg-b-color-light`.\n */:host{display:inline-flex;width:100%;background-color:var(--mg-c-menu-color-background, var(--mg-b-color-light))}:host([direction=vertical]){display:flex;height:100%;flex-direction:column;overflow-y:auto}";const ye=ze;const ke=class{constructor(e){t(this,e);this.name="mg-menu";this.direction=C.HORIZONTAL;this.size="medium";this.isChildMenu=()=>this.element.closest("mg-menu-item")!==null;this.getMenuItems=(t=this.element)=>{var e,i;const a=Array.from(t.children).filter((t=>t.nodeName==="MG-MENU-ITEM"));const n=(i=(e=t.querySelector("mg-item-more"))===null||e===void 0?void 0:e.shadowRoot)===null||i===void 0?void 0:i.querySelector("mg-menu-item");if(n){a.push(n)}return a};this.updateMenuItems=()=>{this.getMenuItems().forEach((t=>{t.dataset.styleDirection=this.direction}));this.renderMgItemMore()};this.renderMgItemMore=()=>{var t;if(this.direction===C.VERTICAL||this.direction===C.HORIZONTAL&&this.isChildMenu()||this.element.children.length<=1){return}let e=this.element.querySelector("mg-item-more");if(e===null){e=document.createElement("mg-item-more");this.element.appendChild(e)}for(const t in this.itemmore){e[t]=this.itemmore[t]}if(((t=this.itemmore)===null||t===void 0?void 0:t.size)===undefined)e.size=this.size}}validateLabel(t){if(t===undefined&&!this.element.hasAttribute("aria-label")){throw new Error(`<${this.name}> prop "label" is required. Passed value: ${r(t)}.`)}}validateDirection(t){if(![C.VERTICAL,C.HORIZONTAL].includes(t)){throw new Error(`<${this.name}> prop "direction" must be one of: ${C.HORIZONTAL}, ${C.VERTICAL}. Passed value: ${r(t)}.`)}else{this.updateMenuItems()}}validateItemMore(t){if(t!==undefined&&this.direction!==C.HORIZONTAL){throw new Error(`<${this.name}> prop "itemmore" must be paired with direction ${C.HORIZONTAL}.`)}else if(t!==undefined){this.renderMgItemMore()}}validateSize(t){if(!V.includes(t)){throw new Error(`<${this.name}> prop "size" must be one of: ${V.join(", ")}. Passed value: ${r(t)}.`)}}updateItemListener(t){const e=t.target.nodeName==="MG-ITEM-MORE"?t.target.shadowRoot.querySelector("mg-menu-item"):t.target;["click","focus"].forEach((i=>{e.addEventListener(i,(()=>{const i=t.target.closest("mg-menu").querySelector("[data-has-focus]");if(i===e)return;if(i)i.removeAttribute("data-has-focus");e.setAttribute("data-has-focus","true")}))}))}componentWillLoad(){this.validateDirection(this.direction);this.validateLabel(this.label);this.validateItemMore(this.itemmore);this.validateSize(this.size)}componentDidLoad(){this.updateMenuItems();if(!this.isChildMenu()&&this.direction===C.HORIZONTAL){document.addEventListener("focusin",(t=>{const e=t=>{if(t===this.element)return true;else if(!t.parentElement)return false;else return e(t.parentElement)};if(!t.target.closest("mg-menu")||!e(t.target)){const t=this.element.querySelector("[data-has-focus]");if(t)t.removeAttribute("data-has-focus")}}))}new MutationObserver(this.updateMenuItems).observe(this.element,{childList:true})}render(){return e(i,{key:"eb78530a80f841391df90167523b6d446cd5405e",role:"list","aria-label":this.label},e("slot",{key:"1a8839c831a81915de8a5b03ebe1481a32762217"}))}get element(){return a(this)}static get watchers(){return{label:["validateLabel"],direction:["validateDirection"],itemmore:["validateItemMore"],size:["validateSize"]}}};ke.style=ye;const He='.mg-u-visually-hidden{position:absolute !important;overflow:hidden !important;width:.1rem !important;height:.1rem !important;padding:0 !important;border:0 !important;margin:-0.1rem !important;clip:rect(0.1rem, 0.1rem, 0.1rem, 0.1rem) !important;clip-path:inset(50%) !important;white-space:nowrap !important}*:focus:not(:focus-visible){outline:none}@media (prefers-reduced-motion){*{animation:none !important;transition:none !important}}/*!\n * @prop --mg-c-menu-item-color: Defines menu item global color, used for bottom line and active tabs. Default value: `--mg-b-color-app`.\n * @prop --mg-c-menu-item-color-text: Defines the color of the menu item. Unset by default, fallback on `--mg-b-color-dark`.\n * @prop --mg-c-menu-item-navigation-button-max-width: Defines the max-width property for the navigation button. Unset by default.\n */.mg-c-menu-item.mg-c-menu-item--size-medium .mg-c-menu-item__navigation-button,.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-medium{height:var(--mg-b-size-40);padding:var(--mg-b-size-12) var(--mg-b-size-16)}.mg-c-menu-item.mg-c-menu-item--size-medium .mg-c-menu-item__navigation-button,.mg-c-menu-item.mg-c-menu-item--size-medium .mg-c-menu-item__navigation-button ::slotted([slot=label]),.mg-c-menu-item.mg-c-menu-item--size-medium .mg-c-menu-item__navigation-button ::slotted([slot=metadata]),.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-medium,.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-medium ::slotted([slot=label]),.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-medium ::slotted([slot=metadata]){font-size:var(--mg-b-font-size)}.mg-c-menu-item.mg-c-menu-item--size-medium .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--horizontal,.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-medium.mg-c-menu-item__navigation-button--horizontal{padding-bottom:var(--mg-b-size-12)}.mg-c-menu-item.mg-c-menu-item--size-medium .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--vertical,.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-medium.mg-c-menu-item__navigation-button--vertical{padding-left:var(--mg-b-size-16)}.mg-c-menu-item.mg-c-menu-item--size-large .mg-c-menu-item__navigation-button,.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-large{height:var(--mg-b-size-48);padding:var(--mg-b-size-12) var(--mg-b-size-32)}.mg-c-menu-item.mg-c-menu-item--size-large .mg-c-menu-item__navigation-button,.mg-c-menu-item.mg-c-menu-item--size-large .mg-c-menu-item__navigation-button ::slotted([slot=label]),.mg-c-menu-item.mg-c-menu-item--size-large .mg-c-menu-item__navigation-button ::slotted([slot=metadata]),.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-large,.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-large ::slotted([slot=label]),.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-large ::slotted([slot=metadata]){font-size:var(--mg-b-font-size-h4)}.mg-c-menu-item.mg-c-menu-item--size-large .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--horizontal,.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-large.mg-c-menu-item__navigation-button--horizontal{padding-bottom:var(--mg-b-size-12)}.mg-c-menu-item.mg-c-menu-item--size-large .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--vertical,.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-large.mg-c-menu-item__navigation-button--vertical{padding-left:var(--mg-b-size-32)}.mg-c-menu-item.mg-c-menu-item--size-xlarge .mg-c-menu-item__navigation-button,.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-xlarge{height:var(--mg-b-size-72);padding:var(--mg-b-size-12) var(--mg-b-size-40)}.mg-c-menu-item.mg-c-menu-item--size-xlarge .mg-c-menu-item__navigation-button,.mg-c-menu-item.mg-c-menu-item--size-xlarge .mg-c-menu-item__navigation-button ::slotted([slot=label]),.mg-c-menu-item.mg-c-menu-item--size-xlarge .mg-c-menu-item__navigation-button ::slotted([slot=metadata]),.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-xlarge,.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-xlarge ::slotted([slot=label]),.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-xlarge ::slotted([slot=metadata]){font-size:var(--mg-b-font-size-h4)}.mg-c-menu-item.mg-c-menu-item--size-xlarge .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--horizontal,.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-xlarge.mg-c-menu-item__navigation-button--horizontal{padding-bottom:var(--mg-b-size-12)}.mg-c-menu-item.mg-c-menu-item--size-xlarge .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--vertical,.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-xlarge.mg-c-menu-item__navigation-button--vertical{padding-left:var(--mg-b-size-40)}.mg-c-menu-item__navigation-button{display:flex;box-sizing:border-box;align-items:center;border:none;background-color:unset;color:var(--mg-c-menu-item-color-text, var(--mg-b-color-dark));column-gap:var(--mg-c-menu-item-navigation-button-column-gap, var(--mg-b-size-8));cursor:pointer;font-family:var(--mg-b-font-family);font-weight:400;line-height:var(--mg-b-line-height);text-decoration:none;white-space:nowrap}.mg-c-menu-item__navigation-button:disabled,.mg-c-menu-item__navigation-button--disabled{cursor:default;opacity:var(--mg-b-opacity-element-disabled)}.mg-c-menu-item__navigation-button:focus-visible{z-index:10}.mg-c-menu-item__navigation-button:hover:not(.mg-c-menu-item__navigation-button--disabled),.mg-c-menu-item__navigation-button:focus-visible:not(.mg-c-menu-item__navigation-button--disabled){background-color:color-mix(in srgb, var(--mg-c-menu-item-color), transparent 90%)}.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--active{color:var(--mg-c-menu-item-color);font-weight:600}.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--active.mg-c-menu-item__navigation-button--horizontal{box-shadow:inset 0 calc(-1*var(--mg-b-size-4)) var(--mg-c-menu-item-color)}.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--active.mg-c-menu-item__navigation-button--vertical{box-shadow:inset var(--mg-b-size-4) 0 var(--mg-c-menu-item-color)}.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--hidden{display:none}:host([data-style-direction=vertical][data-level="1"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-medium{padding-left:calc(1*var(--mg-b-size-16))}:host([data-level="1"]) .mg-c-menu-item__collapse-container{z-index:10}:host([data-style-direction=vertical][data-level="2"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-medium{padding-left:calc(2*var(--mg-b-size-16))}:host([data-level="2"]) .mg-c-menu-item__collapse-container{z-index:20}:host([data-style-direction=vertical][data-level="3"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-medium{padding-left:calc(3*var(--mg-b-size-16))}:host([data-level="3"]) .mg-c-menu-item__collapse-container{z-index:30}:host([data-style-direction=vertical][data-level="4"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-medium{padding-left:calc(4*var(--mg-b-size-16))}:host([data-level="4"]) .mg-c-menu-item__collapse-container{z-index:40}:host([data-style-direction=vertical][data-level="5"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-medium{padding-left:calc(5*var(--mg-b-size-16))}:host([data-level="5"]) .mg-c-menu-item__collapse-container{z-index:50}:host([data-style-direction=vertical][data-level="6"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-medium{padding-left:calc(6*var(--mg-b-size-16))}:host([data-level="6"]) .mg-c-menu-item__collapse-container{z-index:60}:host([data-style-direction=vertical][data-level="1"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-large{padding-left:calc(1*var(--mg-b-size-32))}:host([data-level="1"]) .mg-c-menu-item__collapse-container{z-index:10}:host([data-style-direction=vertical][data-level="2"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-large{padding-left:calc(2*var(--mg-b-size-32))}:host([data-level="2"]) .mg-c-menu-item__collapse-container{z-index:20}:host([data-style-direction=vertical][data-level="3"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-large{padding-left:calc(3*var(--mg-b-size-32))}:host([data-level="3"]) .mg-c-menu-item__collapse-container{z-index:30}:host([data-style-direction=vertical][data-level="4"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-large{padding-left:calc(4*var(--mg-b-size-32))}:host([data-level="4"]) .mg-c-menu-item__collapse-container{z-index:40}:host([data-style-direction=vertical][data-level="5"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-large{padding-left:calc(5*var(--mg-b-size-32))}:host([data-level="5"]) .mg-c-menu-item__collapse-container{z-index:50}:host([data-style-direction=vertical][data-level="6"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-large{padding-left:calc(6*var(--mg-b-size-32))}:host([data-level="6"]) .mg-c-menu-item__collapse-container{z-index:60}:host([data-style-direction=vertical][data-level="1"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-xlarge{padding-left:calc(1*var(--mg-b-size-40))}:host([data-level="1"]) .mg-c-menu-item__collapse-container{z-index:10}:host([data-style-direction=vertical][data-level="2"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-xlarge{padding-left:calc(2*var(--mg-b-size-40))}:host([data-level="2"]) .mg-c-menu-item__collapse-container{z-index:20}:host([data-style-direction=vertical][data-level="3"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-xlarge{padding-left:calc(3*var(--mg-b-size-40))}:host([data-level="3"]) .mg-c-menu-item__collapse-container{z-index:30}:host([data-style-direction=vertical][data-level="4"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-xlarge{padding-left:calc(4*var(--mg-b-size-40))}:host([data-level="4"]) .mg-c-menu-item__collapse-container{z-index:40}:host([data-style-direction=vertical][data-level="5"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-xlarge{padding-left:calc(5*var(--mg-b-size-40))}:host([data-level="5"]) .mg-c-menu-item__collapse-container{z-index:50}:host([data-style-direction=vertical][data-level="6"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-xlarge{padding-left:calc(6*var(--mg-b-size-40))}:host([data-level="6"]) .mg-c-menu-item__collapse-container{z-index:60}.mg-c-menu-item{max-width:var(--mg-c-menu-item-navigation-button-max-width)}.mg-c-menu-item__collapse-container{z-index:10;width:max-content}.mg-c-menu-item__navigation-button-center{min-width:0}.mg-c-menu-item__navigation-button-text-content{display:flex;width:100%;align-items:center}.mg-c-menu-item__navigation-button-text-content-notification,.mg-c-menu-item__navigation-button-text-content ::slotted([slot=information]){margin-left:var(--mg-b-size-8);font-size:var(--mg-b-font-size)}.mg-c-menu-item__navigation-button-new-tab{margin-left:var(--mg-b-size-4)}.mg-c-menu-item__navigation-button-chevron{display:var(--mg-c-menu-item-chevron-display);margin-left:auto;transition:200ms}.mg-c-menu-item__navigation-button-chevron--rotate.mg-c-menu-item__navigation-button-chevron{transform:rotate(180deg)}:host{position:relative;display:flex;--mg-c-popover-padding-vertical:0;--mg-c-popover-padding-horizontal:0;--mg-c-popover-max-width:unset}:host([data-style-direction=vertical]){flex-direction:column}:host([data-style-direction=vertical]) .mg-c-menu-item__navigation-button{width:100%}:host([data-style-direction=vertical]) .mg-c-menu-item__collapse-container{position:unset;top:unset;left:unset;width:unset}:host([data-style-direction=vertical]) .mg-c-menu-item-chevron{margin-left:auto}:host([data-overflow-more]){--mg-c-menu-item-navigation-button-column-gap:0}:host([data-overflow-more]) .mg-c-menu-item__navigation-button-chevron{--mg-c-menu-item-chevron-display:none}:host([data-overflow-more]) .mg-c-menu-item__navigation-button-text-content ::slotted([slot=information]){margin-left:0}:host([data-overflow-more]) ::slotted(mg-menu){--mg-c-menu-item-navigation-button-column-gap:var(--mg-b-size-8)}:host([data-style-direction=horizontal]) .mg-c-menu-item__collapse-container.mg-c-menu-item__collapse-container--first-level,:host([data-overflow-more]) .mg-c-menu-item__collapse-container.mg-c-menu-item__collapse-container--first-level{background-color:var(--mg-b-color-light)}:host([data-style-direction=horizontal]) .mg-c-menu-item__collapse-container.mg-c-menu-item__collapse-container--first-level ::slotted(mg-menu),:host([data-overflow-more]) .mg-c-menu-item__collapse-container.mg-c-menu-item__collapse-container--first-level ::slotted(mg-menu){padding:var(--mg-b-size-8) 0}::slotted([slot=label]),::slotted([slot=metadata]){display:block;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap}::slotted(*){display:flex;flex-direction:column}:host([status=disabled]){pointer-events:none}:host([hidden]){display:none}';const Me=He;const Ce=class{constructor(i){t(this,i);this.itemLoaded=n(this,"item-loaded",7);this.itemUpdated=n(this,"item-updated",7);this.name="mg-menu-item";this.navigationButton="mg-c-menu-item__navigation-button";this.identifier=o("mg-menu-item");this.status=H.VISIBLE;this.expanded=false;this.size="medium";this.navigationButtonClassList=new s([this.navigationButton]);this.hasChildren=false;this.hasStatus=(t,e)=>t.status===e;this.hasPopover=()=>this.isDirection(C.HORIZONTAL)&&(this.isInMainMenu&&Array.from(this.element.children).some((t=>!t.querySelector("[slot]")))||this.isItemMore)&&this.href===undefined;this.hasActiveChild=()=>{var t;return Array.from(((t=this.element.querySelector("mg-menu"))===null||t===void 0?void 0:t.children)||[]).some((t=>t.nodeName==="MG-MENU-ITEM"&&this.hasStatus(t,H.ACTIVE)&&!t.hasAttribute("hidden")))};this.isInteractiveItem=()=>this.hasChildren||!l(this.href);this.isDirection=(t,e=this.direction)=>t===e;this.updateDisplayNotificationBadge=()=>{const t=this.element.querySelector("mg-menu");this.displayNotificationBadge=t!==null&&Array.from(t.children).some((t=>t.querySelector("mg-badge")!==null&&!t.hasAttribute("hidden")))};this.updateExpanded=t=>{if(this.isInteractiveItem()){this.expanded=this.isDirection(C.VERTICAL)&&this.hasActiveChild()||t}};this.updateStatus=(t=[])=>{if(![H.HIDDEN,H.DISABLED,...t].includes(this.status)){this.status=this.hasActiveChild()?H.ACTIVE:H.VISIBLE}};this.updateSlot=(t=false)=>{if(Array.from(this.element.children).find((t=>t.getAttribute("slot")==="label"))===undefined){throw new Error(`<${this.name}> slot "label" is required.`)}["label","metadata"].forEach((e=>{Array.from(this.element.querySelectorAll(`[slot="${e}"]`)).forEach((i=>{if(!l(i.textContent))throw new Error(`<${this.name}> slot "${e}" must have text content.`);if(t&&!i.hasAttribute("title")||!t)i.setAttribute("title",i.textContent)}))}))};this.updateItem=t=>{const e=this.element.closest("mg-menu");this.isInMainMenu=e!==null&&this.element.parentElement.closest("mg-menu-item")===null;if((e===null||e===void 0?void 0:e.size)!==undefined&&!this.isItemMore)this.size=e.size;else if(this.isItemMore)this.size=this.element.dataset.size;this.updateExpanded(this.expanded);this.updateStatus(t);this.updatePopoverGuard();this.updateDisplayNotificationBadge()};this.handleElementCLick=t=>{if(this.status===H.DISABLED){t.preventDefault();t.stopPropagation()}this.updateExpanded(!this.expanded);if(!this.isInteractiveItem()){const t=e=>{if(!e)return;else if(e!==this.element&&e.expanded&&e.shadowRoot.querySelector("mg-popover")!==null){e.expanded=false}else{t(e.parentElement.closest("mg-menu-item"))}};t(this.element)}};this.handlePopoverDisplay=t=>{this.updateExpanded(t.detail)};this.renderSlot=()=>e("slot",null)}watchIdentifier(t){if(!h(t)){console.error(`<mg-menu-item> prop "identifier" value is invalid. Passed value: ${r(t)}.`)}else{this.popoverIdentifier=`${this.identifier}-popover`}}watchTarget(t){if(t&&!M.includes(t)){throw new Error(`<mg-link> prop "target" must be one of: ${M.join(", ")}. Passed value: ${r(t)}.`)}}watchStatus(t,e){if(e!==undefined)this.navigationButtonClassList.delete(`${this.navigationButton}--${e}`);this.navigationButtonClassList.add(`${this.navigationButton}--${t}`)}watchExpanded(t){if(typeof t!=="boolean"){throw new Error(`<${this.name}> prop "expanded" must be a boolean. Passed value: ${r(t)}.`)}else{this.updateExpanded(t);Array.from(this.element.querySelectorAll("mg-menu-item")).forEach((e=>{if(e!==this.element)e.expanded=t?this.hasStatus(e,H.ACTIVE):false}))}}watchSize(t,e){if(e!==undefined)this.navigationButtonClassList.delete(`${this.navigationButton}--size-${e}`);this.navigationButtonClassList.add(`${this.navigationButton}--size-${t}`)}validateDirection(t,e){if(e!==undefined)this.navigationButtonClassList.delete(`${this.navigationButton}--${e}`);this.navigationButtonClassList.add(`${this.navigationButton}--${t}`);Array.from(this.element.querySelectorAll("mg-menu-item")).forEach((e=>{if(this.isDirection(C.VERTICAL,t)){e.dataset.level=`${(Number(e.dataset.level)||1)+1}`}else{delete e.dataset.level}}))}validateHasChildren(t){if(t&&this.element.href!==undefined){throw new Error(`<${this.name}> prop "href" is unauthorizied when element is a parent.`)}}watchDataStyleDirection(t){this.direction=t}watchDataHasFocus(t){if(!t)this.updateExpanded(Boolean(t))}updatePopoverGuard(){const t=this.element.querySelector("*:not([slot])");if(!t)return;if(this.hasPopover())t.dataset.mgPopoverGuard=this.popoverIdentifier;else delete t.dataset.mgPopoverGuard}componentWillLoad(){this.hasChildren=Array.from(this.element.children).some((t=>!["image","information","label","metadata"].includes(t.getAttribute("slot"))));this.messages=k(this.element).messages.menuItem;this.isItemMore=this.element.dataset.overflowMore!==undefined;this.watchStatus(this.status);this.watchExpanded(this.expanded);this.watchTarget(this.target);this.watchIdentifier(this.identifier);this.watchSize(this.size)}componentDidLoad(){this.updateSlot(true);return setTimeout((()=>{this.watchDataStyleDirection(this.element.dataset.styleDirection);this.watchDataHasFocus(this.element.dataset.hasFocus);this.updateItem([H.ACTIVE]);this.itemLoaded.emit();new MutationObserver((t=>{if(t.some((t=>["hidden","status"].includes(t.attributeName))))this.updateStatus(this.hasChildren?undefined:[H.ACTIVE]);if(t.some((t=>t.type==="characterData")))this.updateSlot();if(t.some((t=>t.type==="childList")))this.updateItem();this.itemUpdated.emit()})).observe(this.element,{attributes:true,childList:true,characterData:true,subtree:true})}),0)}componentShouldUpdate(){return c((()=>{this.itemUpdated.emit()}))}renderInteractiveElement(){const t=this.href!==undefined?"a":"button";return e(t,{href:this.href,class:this.navigationButtonClassList.join(),tabindex:[H.DISABLED,H.HIDDEN].includes(this.status)?-1:undefined,disabled:this.status===H.DISABLED,hidden:this.status===H.HIDDEN,target:this.href!==undefined&&this.target!==undefined?this.target:undefined,"aria-expanded":this.hasChildren&&this.expanded.toString(),"aria-current":this.status===H.ACTIVE&&"page",onClick:this.handleElementCLick},e("slot",{name:"image"}),e("div",{class:`${this.navigationButton}-center`},e("div",{class:`${this.navigationButton}-text-content`},e("slot",{name:"label"}),!this.displayNotificationBadge&&e("slot",{name:"information"}),this.displayNotificationBadge&&e("span",{class:`${this.navigationButton}-text-content-notification`},e("mg-badge",{label:this.messages.badgeLabel,value:"!",variant:"text-color",slot:"information"})),this.target==="_blank"&&[e("mg-icon",{key:"icon-new-tab",class:`${this.navigationButton}-new-tab`,icon:"arrow-up-right-square"}),e("span",{key:"a11y-new-tab",class:"mg-u-visually-hidden"},this.messages.openNewTab)]),this.size!=="medium"&&e("slot",{name:"metadata"})),this.hasChildren&&this.href===undefined&&e("span",{class:{[`${this.navigationButton}-chevron`]:true,[`${this.navigationButton}-chevron--rotate`]:this.expanded===true}},e("mg-icon",{icon:"chevron-down"})))}render(){const t=()=>({["mg-c-menu-item__collapse-container"]:true,["mg-c-menu-item__collapse-container--first-level"]:(this.isInMainMenu||this.isItemMore)&&this.isDirection(C.HORIZONTAL)});return e(i,{key:"1bfbcc26638508e5fff8d0a9b0bd1956e06cb9ae",role:this.isItemMore?"presentation":"listitem"},this.hasPopover()?e("mg-popover",{display:this.expanded,placement:"bottom-start",arrowHide:true,"onDisplay-change":this.handlePopoverDisplay,identifier:this.popoverIdentifier,"data-fallback-placement":"bottom-end"},this.renderInteractiveElement(),e("div",{class:t(),slot:"content"},this.renderSlot())):[this.renderInteractiveElement(),e("div",{key:"vertical-container",class:t(),hidden:!this.expanded},this.renderSlot())])}get element(){return a(this)}static get watchers(){return{identifier:["watchIdentifier"],target:["watchTarget"],status:["watchStatus"],expanded:["watchExpanded"],size:["watchSize"],direction:["validateDirection"],hasChildren:["validateHasChildren"],"data-style-direction":["watchDataStyleDirection"],"data-has-focus":["watchDataHasFocus"]}}};Ce.style=Me;const Ve=["info","warning","success","danger"];const Le=["bar-left","background"];const Be="/*!\n * @prop --mg-c-message-border-radius: Defines the border radius of the message. Default value: `--mg-b-size-radius`.\n */:host{--mg-c-card-spacing:0;--mg-c-card-border-radius:var(--mg-c-message-border-radius);--mg-c-card-border:none;--mg-c-card-overflow:hidden}.mg-c-message{display:inline-block;min-height:var(--mg-b-size-min-height)}.mg-c-message.mg-c-message--danger .mg-c-message__icon{color:var(--mg-b-color-danger)}.mg-c-message.mg-c-message--danger.mg-c-message--bar-left .mg-c-message__bar{background-color:var(--mg-b-color-danger)}.mg-c-message.mg-c-message--danger.mg-c-message--background{--mg-c-card-color-background:var(--mg-b-color-red-20, color-mix(in srgb, var(--mg-b-color-danger), white 80%))}.mg-c-message.mg-c-message--info .mg-c-message__icon{color:var(--mg-b-color-info)}.mg-c-message.mg-c-message--info.mg-c-message--bar-left .mg-c-message__bar{background-color:var(--mg-b-color-info)}.mg-c-message.mg-c-message--info.mg-c-message--background{--mg-c-card-color-background:var(--mg-b-color-blue-20, color-mix(in srgb, var(--mg-b-color-info), white 80%))}.mg-c-message.mg-c-message--success .mg-c-message__icon{color:var(--mg-b-color-success)}.mg-c-message.mg-c-message--success.mg-c-message--bar-left .mg-c-message__bar{background-color:var(--mg-b-color-success)}.mg-c-message.mg-c-message--success.mg-c-message--background{--mg-c-card-color-background:var(--mg-b-color-green-20, color-mix(in srgb, var(--mg-b-color-success), white 80%))}.mg-c-message.mg-c-message--warning .mg-c-message__icon{color:var(--mg-b-color-warning)}.mg-c-message.mg-c-message--warning.mg-c-message--bar-left .mg-c-message__bar{background-color:var(--mg-b-color-warning)}.mg-c-message.mg-c-message--warning.mg-c-message--background{--mg-c-card-color-background:var(--mg-b-color-yellow-20, color-mix(in srgb, var(--mg-b-color-warning), white 80%))}.mg-c-message ::slotted(*){padding:0;margin:0}.mg-c-message__icon{position:absolute;top:calc((var(--mg-b-size-min-height) - var(--mg-b-size-16))/2);left:calc(var(--mg-b-size-4) + var(--mg-b-size-8));line-height:1}.mg-c-message__content{display:flex;flex-wrap:wrap;padding:0 var(--mg-b-size-8) 0 calc(var(--mg-b-size-4) + var(--mg-b-size-8) + var(--mg-b-size-16) + var(--mg-b-size-8));place-content:stretch flex-end}.mg-c-message__content-slot{flex-grow:1;margin:var(--mg-b-size-8) 0}.mg-c-message__content-separator{display:inline-block;width:var(--mg-b-size-40);height:0}.mg-c-message__content-actions-slot{padding:var(--mg-b-size-8) 0;text-align:right}.mg-c-message__bar{position:absolute;top:0;left:0;width:var(--mg-b-size-4);height:100%}.mg-c-message ::slotted(*){--mg-c-card-border:var(--mg-c-card-border-default);--mg-c-card-spacing:var(--mg-c-card-spacing-default);--mg-c-card-border-radius:var(--mg-c-card-border-radius-default);--mg-c-card-color-background:var(--mg-c-card-color-background-default);--mg-c-card-box-shadow:var(--mg-c-card-box-shadow-default);--mg-c-card-max-width:unset;--mg-c-card-min-width:unset}.mg-c-message,.mg-c-message mg-message{max-width:100%}";const De=Be;const $e=class{constructor(e){t(this,e);this.classBase="mg-c-message";this.variant="info";this.variantStyle="bar-left";this.classCollection=new s(["mg-c-message"]);this.hasActions=false;this.getIcon=()=>{switch(this.variant){case"info":return"info-circle";case"warning":return"exclamation-triangle";case"success":return"check-circle";case"danger":return"exclamation-circle"}}}watchVariant(t,e){if(!Ve.includes(t)){throw new Error(`<mg-message> prop "variant" must be one of: ${Ve.join(", ")}. Passed value: ${r(t)}.`)}else{if(t!==undefined)this.classCollection.add(`${this.classBase}--${t}`);if(e!==undefined)this.classCollection.delete(`${this.classBase}--${e}`)}}watchVariantStyle(t,e){if(!Le.includes(t)){throw new Error(`<mg-message> prop "variantStyle" must be one of: ${Le.join(", ")}. Passed value: ${r(t)}.`)}else{if(t!==undefined)this.classCollection.add(`${this.classBase}--${t}`);if(e!==undefined)this.classCollection.delete(`${this.classBase}--${e}`)}}componentWillLoad(){this.watchVariant(this.variant);this.watchVariantStyle(this.variantStyle);this.hasActions=this.element.querySelector('[slot="actions"]')!==null}render(){return e("div",{key:"851d97fde6f05799e1420f8825fcff986d9af1d6",class:this.classCollection.join()},e("mg-card",{key:"40f85f1fb3240ab709b1ab46286e9a953f2d5dc8"},this.variantStyle==="bar-left"&&e("span",{key:"50b078ec379c7774d2f409c64b56108041bf3053",class:"mg-c-message__bar"}),e("span",{key:"bc6b1019e1103fc8cd5e4e92f95b62374207be2b",class:"mg-c-message__icon"},e("mg-icon",{key:"e461ddc1eb1ddcb7ecc673f59dc59f400efbe916",icon:this.getIcon()})),e("div",{key:"edf836b375d7f1fd413b53711b99acbe2bef3e92",class:"mg-c-message__content"},e("span",{key:"c6ce4628e450b7e89ef3715126b3a2dee081224e",class:"mg-c-message__content-slot"},e("slot",{key:"36ecf7417e61ab84695078e2fd4ebe829bd769a7"})),this.hasActions&&[e("span",{class:"mg-c-message__content-separator",key:"content-separator"}),e("span",{class:"mg-c-message__content-actions-slot",key:"content-actions-slot"},e("slot",{key:"43be5769165cac1ab702b2ba80fb885c2ec1834f",name:"actions"}))])))}get element(){return a(this)}static get watchers(){return{variant:["watchVariant"],variantStyle:["watchVariantStyle"]}}};$e.style=De;const Ae=["dialog","alertdialog"];const Ee="/*!\n * @prop --mg-c-modal-border-radius: Defines the border radius of the modal. Default value: `--mg-b-size-radius`.\n * @prop --mg-c-modal-title-font-size: Defines the font size of the modal title. Default value: `--mg-b-font-size-h3`.\n */:host{--mg-c-card-border-radius:var(--mg-c-modal-border-radius);--mg-c-card-spacing:var(--mg-b-size-16) var(--mg-b-size-24);--mg-c-card-border:none}.mg-c-modal{border:none;background:none}.mg-c-modal[open]{display:flex;padding:var(--mg-b-size-24) var(--mg-b-size-8)}.mg-c-modal::backdrop{background-color:var(--mg-b-color-light);opacity:.85}.mg-c-modal mg-card{display:flex;width:calc(75*var(--mg-b-size-8));max-width:100%;max-height:100%}.mg-c-modal__dialog{position:relative;display:flex;height:fit-content;max-height:100%;flex-direction:column;align-self:center;row-gap:var(--mg-b-size-24)}.mg-c-modal__title{margin:0;font-family:var(--mg-b-font-family-heading);font-size:var(--mg-c-modal-title-font-size);font-weight:600}.mg-c-modal__close-button{height:var(--mg-c-modal-title-font-size);margin-top:calc((var(--mg-b-size-min-height) - var(--mg-c-modal-title-font-size)*var(--mg-b-line-height))/2*-1);margin-right:calc((var(--mg-b-size-min-height) - var(--mg-b-size-16))/2*-1);margin-left:var(--mg-b-size-16);float:right}.mg-c-modal__content{padding:var(--mg-b-size-16);margin:calc(var(--mg-b-size-16)*-1);overflow-y:auto}.mg-c-modal ::slotted(*){--mg-c-card-border:var(--mg-c-card-border-default);--mg-c-card-spacing:var(--mg-c-card-spacing-default);--mg-c-card-border-radius:var(--mg-c-card-border-radius-default);--mg-c-card-color-background:var(--mg-c-card-color-background-default);--mg-c-card-box-shadow:var(--mg-c-card-box-shadow-default);--mg-c-card-max-width:unset;--mg-c-card-min-width:unset}";const qe=Ee;const Ie=class{constructor(e){t(this,e);this.componentShow=n(this,"component-show",7);this.componentHide=n(this,"component-hide",7);this.componentClose=n(this,"component-close",7);this.titleId="";this.identifier=o("mg-modal");this.dialogRole=Ae[0];this.closeButton=false;this.open=false;this.hasActions=false;this.classCollection=new s(["mg-c-modal"]);this.handleClose=()=>{this.open=false;this.componentClose.emit()}}watchIdentifier(t){if(!h(t)){throw new Error(`<mg-modal> prop "identifier" value is invalid. Passed value: ${r(t)}.`)}}validateDialogRole(t){if(!Ae.includes(t))throw new Error(`<mg-modal> prop "dialogRole" must be one of: ${Ae.join(", ")}. Passed value: ${r(t)}.`)}validateModalTitle(t){if(!l(t)){throw new Error(`<mg-modal> prop "modalTitle" is required. Passed value: ${r(t)}.`)}}watchOpen(t){if(t){this.dialog.showModal();this.componentShow.emit();document.body.style.overflow="hidden"}else{this.dialog.close();this.componentHide.emit();document.body.style.overflow=this.bodyOverflow}}componentWillLoad(){this.bodyOverflow=document.body.style.overflow;this.messages=k(this.element).messages;this.hasActions=this.element.querySelector('[slot="actions"]')!==null;this.titleId=`${this.identifier}-title`;this.watchIdentifier(this.identifier);this.validateModalTitle(this.modalTitle);this.validateDialogRole(this.dialogRole)}componentDidLoad(){this.watchOpen(this.open);this.dialog.addEventListener("close",(()=>{this.open=false;this.componentClose.emit()}))}render(){return e("dialog",{key:"f927a4473e69d4034433e170b6279e027fc9c9d3",role:this.dialogRole,id:this.identifier,class:this.classCollection.join(),"aria-labelledby":this.titleId,ref:t=>{if(t!==null){this.dialog=t}}},e("mg-card",{key:"36e09b525447abd8b810c8d4b770597e354fc3c3"},e("div",{key:"4e8188bd2f7c4db85b902b58079ea45a863929eb",class:"mg-c-modal__dialog"},e("header",{key:"bd0512246a56379a63d7be10fd9e7999d26b578a",class:"mg-c-modal__header"},this.closeButton&&e("span",{key:"f115aca533d59950c9b340f1e71d58cfe631b63d",class:"mg-c-modal__close-button"},e("mg-button",{key:"691ed3f1b20978e302ebd7a793adeac23ccd87f4","is-icon":true,variant:"flat",label:this.messages.modal.closeButton,onClick:this.handleClose},e("mg-icon",{key:"aa1bc4cc8906234144fa2944ff5d2b7eab2df11e",icon:"cross"}))),e("h1",{key:"cfab5ec91d14b904e68f4e8dfe973067f0e2af4e",class:"mg-c-modal__title",id:this.titleId},this.modalTitle)),e("article",{key:"c829f024a77f9c49d84cf7a05a34561b94fc6e47",class:"mg-c-modal__content"},e("slot",{key:"4c2cf29eac6523b23e0d144fded17c38afab4a0a"})),this.hasActions&&e("footer",{key:"e414e21afe1a4a3de720876b71d56efd267bd964",class:"mg-c-modal__footer"},e("slot",{key:"e71d2578822f3fbaf990fbb3e2878ab850bf4141",name:"actions"})))))}get element(){return a(this)}static get watchers(){return{identifier:["watchIdentifier"],dialogRole:["validateDialogRole"],modalTitle:["validateModalTitle"],open:["watchOpen"]}}};Ie.style=qe;const Pe={NEXT:"next",PREVIOUS:"previous"};const Te=".mg-u-visually-hidden{position:absolute !important;overflow:hidden !important;width:.1rem !important;height:.1rem !important;padding:0 !important;border:0 !important;margin:-0.1rem !important;clip:rect(0.1rem, 0.1rem, 0.1rem, 0.1rem) !important;clip-path:inset(50%) !important;white-space:nowrap !important}*:focus:not(:focus-visible){outline:none}@media (prefers-reduced-motion){*{animation:none !important;transition:none !important}}.mg-c-pagination{display:flex;align-items:center;gap:var(--mg-b-spacing-actions)}.mg-c-pagination__page-count{display:flex;align-items:center;gap:var(--mg-b-size-4)}.mg-c-pagination.mg-c-pagination--hide-page-count{gap:0}";const Oe=Te;const je=(t,e,i=1)=>Array.from(Array(Math.ceil((e+1-t)/i)).keys()).map((e=>t+e*i));const Se=class{constructor(e){t(this,e);this.currentPageChange=n(this,"current-page-change",7);this.identifier=o("mg-pagination");this.totalPages=1;this.currentPage=1;this.goToPage=t=>{this.currentPage=t};this.handleSelect=t=>{const e=Number(t.target.value);this.goToPage(e>0?e:1)};this.handleGoToPage=(t,e)=>{!e&&this.goToPage(t===Pe.NEXT?this.currentPage+1:this.currentPage-1)}}watchIdentifier(t){if(!h(t)){console.error(`<mg-pagination> prop "identifier" value is invalid. Passed value: ${r(t)}.`)}}validateTotalPages(t){if(t<1){throw new Error(`<mg-pagination> prop "totalPages" must be greater than 0. Passed value: ${r(t)}.`)}}validateCurrentPage(t){if(t<1){throw new Error(`<mg-pagination> prop "currentPage" must be greater than 0. Passed value: ${r(t)}.`)}else if(t>this.totalPages){throw new Error('<mg-pagination> prop "currentPage" can not be greater than total page.')}this.currentPageChange.emit(t)}componentWillLoad(){this.messages=k(this.element).messages;this.watchIdentifier(this.identifier);this.validateTotalPages(this.totalPages);this.validateCurrentPage(this.currentPage);if(this.label===undefined||this.label===""){this.label=this.messages.pagination.label}}render(){const t=(t,i)=>e("mg-button",{key:"223001cd79932ca02a46d6cc8be58346bd535f98",label:this.messages.pagination[`${i}Page`],onClick:()=>this.handleGoToPage(i,t),disabled:t,variant:"flat",isIcon:this.hideNavigationLabels},i===Pe.PREVIOUS&&e("mg-icon",{key:"6dd38be4df1a9c540c1e04567f6a6ff858805014",icon:"chevron-left"}),!this.hideNavigationLabels&&this.messages.general[i],i===Pe.NEXT&&e("mg-icon",{key:"226f0fcd8ce73dbcae38300bc9e559968c6413d7",icon:"chevron-right"}));return e(i,{key:"871b799015c76975770cc775c0a7c0a58551b491",hidden:this.totalPages<2},e("nav",{key:"faff3bc618af20b0273fe0272c3437198df0dc53",role:"navigation","aria-label":this.label,id:this.identifier,class:{"mg-c-pagination":true,"mg-c-pagination--hide-page-count":this.hidePageCount}},t(this.currentPage<=1,Pe.PREVIOUS),!this.hidePageCount&&e("div",{key:"c4dabd89aa82b89436fdc3405090a635e51384aa",class:"mg-c-pagination__page-count"},e("mg-input-select",{key:"6a3796ec81c0b862837750c6ecd71986fb77a9c1",identifier:`${this.identifier}-select`,items:je(1,this.totalPages).map((t=>t.toString())),label:this.messages.pagination.selectPage,"label-hide":true,"on-value-change":this.handleSelect,value:this.currentPage.toString(),"placeholder-hide":true}),e("span",{key:"5e6555ab6fb9da09ebf4687c652177c5040c4f0d",class:"mg-u-visually-hidden"},this.messages.pagination.page," ",this.currentPage),"/ ",this.totalPages," ",this.totalPages>1?this.messages.pagination.pages:this.messages.pagination.page),t(this.currentPage>=this.totalPages,Pe.NEXT)))}get element(){return a(this)}static get watchers(){return{identifier:["watchIdentifier"],totalPages:["validateTotalPages"],currentPage:["validateCurrentPage"]}}};Se.style=Oe;const We=["text","icon"];const Re=["left","right"];const Ue="/*!\n * @prop --mg-c-panel-border-radius: Defines the border radius of the panel. Default value: `--mg-b-size-radius`.\n * @prop --mg-c-panel-color-background: Defines the background of the panel. Default value: `color-mix(in srgb, var(--mg-b-color-info), white 97%)`.\n * @prop --mg-c-panel-box-shadow: Defines the box shadow of the panel. Default value: `--mg-b-box-shadow`.\n * @prop --mg-c-panel-content-spacing: Defines the padding of the panel content. Default value: `--mg-b-size-16`.\n */:host{--mg-c-card-border:none;--mg-c-card-spacing:0;--mg-c-card-border-radius:var(--mg-c-panel-border-radius);--mg-c-card-color-background:var(--mg-c-panel-color-background);--mg-c-card-box-shadow:var(--mg-c-panel-box-shadow)}.mg-c-panel__header{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;padding:0 var(--mg-b-size-4)}.mg-c-panel__header-title,.mg-c-panel__header-content{display:flex;margin:var(--mg-b-size-4) 0}.mg-c-panel__header-content{min-height:var(--mg-b-size-min-height);flex:1 auto;align-items:center;padding-left:var(--mg-b-size-4)}.mg-c-panel__header-title mg-input-text{flex-grow:1;margin-left:var(--mg-b-size-4)}.mg-c-panel__header-title mg-button+mg-button:not([slot=append-input]){margin-left:var(--mg-b-size-4)}.mg-c-panel__header-title.mg-c-panel__header-title--full{flex:1 1 auto}.mg-c-panel__collapse-button-content{--mg-b-font-size:var(--mg-b-font-size-h5);--mg-c-button-font-weight:600}.mg-c-panel__collapse-button-icon.mg-c-panel__collapse-button-icon--reverse{transform:rotate(180deg)}.mg-c-panel__content{padding:var(--mg-c-panel-content-spacing)}.mg-c-panel ::slotted([slot=header-right]){display:flex;flex-wrap:wrap;margin-left:auto;gap:var(--mg-b-spacing-actions)}.mg-c-panel ::slotted(*){--mg-c-card-border:var(--mg-c-card-border-default);--mg-c-card-spacing:var(--mg-c-card-spacing-default);--mg-c-card-border-radius:var(--mg-c-card-border-radius-default);--mg-c-card-color-background:var(--mg-c-card-color-background-default);--mg-c-card-box-shadow:var(--mg-c-card-box-shadow-default);--mg-c-card-max-width:unset;--mg-c-card-min-width:unset}";const Ne=Ue;const Fe=class{constructor(i){t(this,i);this.titleChange=n(this,"title-change",7);this.expandedChange=n(this,"expanded-change",7);this.identifier=o("mg-panel");this.titleEditable=false;this.titlePosition=Re[0];this.expanded=false;this.expandToggleDisplay=We[0];this.classCollection=new s(["mg-c-panel"]);this.isEditing=false;this.toggleIsEditing=()=>{this.isEditing=!this.isEditing};this.handleCollapseButton=()=>{if(!this.expandToggleDisabled)this.expanded=!this.expanded};this.handleEditButton=()=>{this.toggleIsEditing()};this.handleUpdateTitle=t=>{this.updatedPanelTitle=t.detail};this.handleCancelEditButton=()=>{this.updatedPanelTitle=undefined;this.toggleIsEditing()};this.handleValidateEditButton=()=>{if(!this.editInputElement.valid)return;if(this.updatedPanelTitle!==undefined)this.panelTitle=this.updatedPanelTitle;this.toggleIsEditing()};this.renderCollapseButton=()=>e("mg-button",{onClick:this.handleCollapseButton,variant:"flat","aria-expanded":this.expanded.toString(),"aria-controls":`${this.identifier}-content`,disabled:this.expandToggleDisabled,isIcon:this.expandToggleDisplay==="icon",label:this.panelTitle},e("span",{class:"mg-c-panel__collapse-button-content"},e("mg-icon",{icon:"chevron-up",class:{"mg-c-panel__collapse-button-icon":true,"mg-c-panel__collapse-button-icon--reverse":!this.expanded}}),!this.isEditing&&this.expandToggleDisplay!=="icon"&&this.panelTitle));this.renderEditButton=()=>e("mg-button",{key:"edit-button","is-icon":true,variant:"flat",label:this.messages.panel.editLabel,onClick:this.handleEditButton},e("mg-icon",{icon:"pen"}));this.renderEditInput=()=>e("mg-input-text",{key:"edition-input",label:this.messages.panel.editLabel,"label-hide":true,value:this.panelTitle,"onValue-change":this.handleUpdateTitle,characterLeftHide:true,pattern:this.titlePattern,"pattern-error-message":this.titlePatternErrorMessage,identifier:`${this.identifier}-edition-input`,ref:t=>this.editInputElement=t},e("mg-button",{slot:"append-input",label:this.messages.general.cancel,"is-icon":true,variant:"secondary",onClick:this.handleCancelEditButton},e("mg-icon",{icon:"cross"})),e("mg-button",{slot:"append-input",label:this.messages.general.confirm,"is-icon":true,variant:"secondary",onClick:this.handleValidateEditButton},e("mg-icon",{icon:"check"})));this.renderTitle=()=>{const t=[this.renderCollapseButton()];if(this.titleEditable){if(!this.isEditing)t.push(this.renderEditButton());else t.push(this.renderEditInput())}return this.titlePosition==="right"?t.reverse():t};this.renderHeaderChildren=()=>{const t=[e("div",{class:{"mg-c-panel__header-title":true,"mg-c-panel__header-title--full":this.isEditing,"mg-c-panel__header-title--reverse":this.titlePosition==="right"},key:this.panelTitle},this.renderTitle()),e("div",{class:"mg-c-panel__header-content",key:"slot-header"},e("slot",{name:"header-right"}))];return this.titlePosition==="right"?t.reverse():t}}watchIdentifier(t){if(!h(t)){console.error(`<mg-panel> prop "identifier" value is invalid. Passed value: ${r(t)}.`)}}validatePanelTitle(t){if(!l(t))throw new Error(`<mg-panel> prop "panelTitle" is required and must be a string. Passed value: ${r(t)}.`);this.titleChange.emit(t)}validateTitlePattern(t){if(t!==undefined&&!this.titleEditable)throw new Error(`<mg-panel> prop "titleEditable" must be set to "true".`)}validateTitlePosition(t){if(!Re.includes(t))throw new Error(`<mg-panel> prop "titlePosition" must be one of: ${Re.join(", ")}. Passed value: ${r(t)}.`)}handleExpanded(t){this.expandedChange.emit(t)}validateExpandToggleDisplay(t){if(!We.includes(t))throw new Error(`<mg-panel> prop "expandToggleDisplay" must be one of: ${We.join(", ")}. Passed value: ${r(t)}.`);if(t==="icon"&&this.titleEditable)this.titleEditable=false}componentWillLoad(){this.messages=k(this.element).messages;this.watchIdentifier(this.identifier);this.validateTitlePattern(this.titlePattern);this.validateTitlePattern(this.titlePatternErrorMessage);this.validatePanelTitle(this.panelTitle);this.validateExpandToggleDisplay(this.expandToggleDisplay);this.validateTitlePosition(this.titlePosition)}componentDidRender(){if(this.isEditing)this.editInputElement.setFocus()}render(){const t=`${this.identifier}-header`;return e("section",{key:"b4471d72f38c4e6f5b21aef7cc08696f745fd6b7",class:this.classCollection.join(),id:this.identifier},e("mg-card",{key:"f51e3e4c51d56b9019ed4a3bc91fbb4b9ffcb543"},e("header",{key:"9cfcb8fb0e01b570cddee46b2ef9737440c7e192",class:{"mg-c-panel__header":true,"mg-c-panel__header--reverse":this.titlePosition==="right"},id:t},this.renderHeaderChildren()),e("article",{key:"b5f8c6cb02f97f24b45b567ca25c00cf6930ca2f",class:"mg-c-panel__content",id:`${this.identifier}-content`,"aria-labelledby":t,hidden:!this.expanded},e("slot",{key:"5efc9246ad9d6c457abc9a80705df00a5d9e1cb1"}))))}get element(){return a(this)}static get watchers(){return{identifier:["watchIdentifier"],panelTitle:["validatePanelTitle"],titlePattern:["validateTitlePattern"],titlePatternErrorMessage:["validateTitlePattern"],titlePosition:["validateTitlePosition"],expanded:["handleExpanded"],expandToggleDisplay:["validateExpandToggleDisplay"]}}};Fe.style=Ne;var Ge="top";var Ke="bottom";var Je="right";var Ye="left";var Ze="auto";var Xe=[Ge,Ke,Je,Ye];var Qe="start";var ti="end";var ei="clippingParents";var ii="viewport";var ai="popper";var ni="reference";var oi=Xe.reduce((function(t,e){return t.concat([e+"-"+Qe,e+"-"+ti])}),[]);var ri=[].concat(Xe,[Ze]).reduce((function(t,e){return t.concat([e,e+"-"+Qe,e+"-"+ti])}),[]);var si="beforeRead";var li="read";var ci="afterRead";var hi="beforeMain";var gi="main";var mi="afterMain";var di="beforeWrite";var ui="write";var pi="afterWrite";var vi=[si,li,ci,hi,gi,mi,di,ui,pi];function fi(t){return t?(t.nodeName||"").toLowerCase():null}function bi(t){if(t==null){return window}if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e?e.defaultView||window:window}return t}function wi(t){var e=bi(t).Element;return t instanceof e||t instanceof Element}function _i(t){var e=bi(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function xi(t){if(typeof ShadowRoot==="undefined"){return false}var e=bi(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function zi(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var i=e.styles[t]||{};var a=e.attributes[t]||{};var n=e.elements[t];if(!_i(n)||!fi(n)){return}Object.assign(n.style,i);Object.keys(a).forEach((function(t){var e=a[t];if(e===false){n.removeAttribute(t)}else{n.setAttribute(t,e===true?"":e)}}))}))}function yi(t){var e=t.state;var i={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(e.elements.popper.style,i.popper);e.styles=i;if(e.elements.arrow){Object.assign(e.elements.arrow.style,i.arrow)}return function(){Object.keys(e.elements).forEach((function(t){var a=e.elements[t];var n=e.attributes[t]||{};var o=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:i[t]);var r=o.reduce((function(t,e){t[e]="";return t}),{});if(!_i(a)||!fi(a)){return}Object.assign(a.style,r);Object.keys(n).forEach((function(t){a.removeAttribute(t)}))}))}}const ki={name:"applyStyles",enabled:true,phase:"write",fn:zi,effect:yi,requires:["computeStyles"]};function Hi(t){return t.split("-")[0]}var Mi=Math.max;var Ci=Math.min;var Vi=Math.round;function Li(){var t=navigator.userAgentData;if(t!=null&&t.brands&&Array.isArray(t.brands)){return t.brands.map((function(t){return t.brand+"/"+t.version})).join(" ")}return navigator.userAgent}function Bi(){return!/^((?!chrome|android).)*safari/i.test(Li())}function Di(t,e,i){if(e===void 0){e=false}if(i===void 0){i=false}var a=t.getBoundingClientRect();var n=1;var o=1;if(e&&_i(t)){n=t.offsetWidth>0?Vi(a.width)/t.offsetWidth||1:1;o=t.offsetHeight>0?Vi(a.height)/t.offsetHeight||1:1}var r=wi(t)?bi(t):window,s=r.visualViewport;var l=!Bi()&&i;var c=(a.left+(l&&s?s.offsetLeft:0))/n;var h=(a.top+(l&&s?s.offsetTop:0))/o;var g=a.width/n;var m=a.height/o;return{width:g,height:m,top:h,right:c+g,bottom:h+m,left:c,x:c,y:h}}function $i(t){var e=Di(t);var i=t.offsetWidth;var a=t.offsetHeight;if(Math.abs(e.width-i)<=1){i=e.width}if(Math.abs(e.height-a)<=1){a=e.height}return{x:t.offsetLeft,y:t.offsetTop,width:i,height:a}}function Ai(t,e){var i=e.getRootNode&&e.getRootNode();if(t.contains(e)){return true}else if(i&&xi(i)){var a=e;do{if(a&&t.isSameNode(a)){return true}a=a.parentNode||a.host}while(a)}return false}function Ei(t){return bi(t).getComputedStyle(t)}function qi(t){return["table","td","th"].indexOf(fi(t))>=0}function Ii(t){return((wi(t)?t.ownerDocument:t.document)||window.document).documentElement}function Pi(t){if(fi(t)==="html"){return t}return t.assignedSlot||t.parentNode||(xi(t)?t.host:null)||Ii(t)}function Ti(t){if(!_i(t)||Ei(t).position==="fixed"){return null}return t.offsetParent}function Oi(t){var e=/firefox/i.test(Li());var i=/Trident/i.test(Li());if(i&&_i(t)){var a=Ei(t);if(a.position==="fixed"){return null}}var n=Pi(t);if(xi(n)){n=n.host}while(_i(n)&&["html","body"].indexOf(fi(n))<0){var o=Ei(n);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||e&&o.willChange==="filter"||e&&o.filter&&o.filter!=="none"){return n}else{n=n.parentNode}}return null}function ji(t){var e=bi(t);var i=Ti(t);while(i&&qi(i)&&Ei(i).position==="static"){i=Ti(i)}if(i&&(fi(i)==="html"||fi(i)==="body"&&Ei(i).position==="static")){return e}return i||Oi(t)||e}function Si(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Wi(t,e,i){return Mi(t,Ci(e,i))}function Ri(t,e,i){var a=Wi(t,e,i);return a>i?i:a}function Ui(){return{top:0,right:0,bottom:0,left:0}}function Ni(t){return Object.assign({},Ui(),t)}function Fi(t,e){return e.reduce((function(e,i){e[i]=t;return e}),{})}var Gi=function t(e,i){e=typeof e==="function"?e(Object.assign({},i.rects,{placement:i.placement})):e;return Ni(typeof e!=="number"?e:Fi(e,Xe))};function Ki(t){var e;var i=t.state,a=t.name,n=t.options;var o=i.elements.arrow;var r=i.modifiersData.popperOffsets;var s=Hi(i.placement);var l=Si(s);var c=[Ye,Je].indexOf(s)>=0;var h=c?"height":"width";if(!o||!r){return}var g=Gi(n.padding,i);var m=$i(o);var d=l==="y"?Ge:Ye;var u=l==="y"?Ke:Je;var p=i.rects.reference[h]+i.rects.reference[l]-r[l]-i.rects.popper[h];var v=r[l]-i.rects.reference[l];var f=ji(o);var b=f?l==="y"?f.clientHeight||0:f.clientWidth||0:0;var w=p/2-v/2;var _=g[d];var x=b-m[h]-g[u];var z=b/2-m[h]/2+w;var y=Wi(_,z,x);var k=l;i.modifiersData[a]=(e={},e[k]=y,e.centerOffset=y-z,e)}function Ji(t){var e=t.state,i=t.options;var a=i.element,n=a===void 0?"[data-popper-arrow]":a;if(n==null){return}if(typeof n==="string"){n=e.elements.popper.querySelector(n);if(!n){return}}if(!Ai(e.elements.popper,n)){return}e.elements.arrow=n}const Yi={name:"arrow",enabled:true,phase:"main",fn:Ki,effect:Ji,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Zi(t){return t.split("-")[1]}var Xi={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Qi(t,e){var i=t.x,a=t.y;var n=e.devicePixelRatio||1;return{x:Vi(i*n)/n||0,y:Vi(a*n)/n||0}}function ta(t){var e;var i=t.popper,a=t.popperRect,n=t.placement,o=t.variation,r=t.offsets,s=t.position,l=t.gpuAcceleration,c=t.adaptive,h=t.roundOffsets,g=t.isFixed;var m=r.x,d=m===void 0?0:m,u=r.y,p=u===void 0?0:u;var v=typeof h==="function"?h({x:d,y:p}):{x:d,y:p};d=v.x;p=v.y;var f=r.hasOwnProperty("x");var b=r.hasOwnProperty("y");var w=Ye;var _=Ge;var x=window;if(c){var z=ji(i);var y="clientHeight";var k="clientWidth";if(z===bi(i)){z=Ii(i);if(Ei(z).position!=="static"&&s==="absolute"){y="scrollHeight";k="scrollWidth"}}z=z;if(n===Ge||(n===Ye||n===Je)&&o===ti){_=Ke;var H=g&&z===x&&x.visualViewport?x.visualViewport.height:z[y];p-=H-a.height;p*=l?1:-1}if(n===Ye||(n===Ge||n===Ke)&&o===ti){w=Je;var M=g&&z===x&&x.visualViewport?x.visualViewport.width:z[k];d-=M-a.width;d*=l?1:-1}}var C=Object.assign({position:s},c&&Xi);var V=h===true?Qi({x:d,y:p},bi(i)):{x:d,y:p};d=V.x;p=V.y;if(l){var L;return Object.assign({},C,(L={},L[_]=b?"0":"",L[w]=f?"0":"",L.transform=(x.devicePixelRatio||1)<=1?"translate("+d+"px, "+p+"px)":"translate3d("+d+"px, "+p+"px, 0)",L))}return Object.assign({},C,(e={},e[_]=b?p+"px":"",e[w]=f?d+"px":"",e.transform="",e))}function ea(t){var e=t.state,i=t.options;var a=i.gpuAcceleration,n=a===void 0?true:a,o=i.adaptive,r=o===void 0?true:o,s=i.roundOffsets,l=s===void 0?true:s;var c={placement:Hi(e.placement),variation:Zi(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:n,isFixed:e.options.strategy==="fixed"};if(e.modifiersData.popperOffsets!=null){e.styles.popper=Object.assign({},e.styles.popper,ta(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:r,roundOffsets:l})))}if(e.modifiersData.arrow!=null){e.styles.arrow=Object.assign({},e.styles.arrow,ta(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:false,roundOffsets:l})))}e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const ia={name:"computeStyles",enabled:true,phase:"beforeWrite",fn:ea,data:{}};var aa={passive:true};function na(t){var e=t.state,i=t.instance,a=t.options;var n=a.scroll,o=n===void 0?true:n,r=a.resize,s=r===void 0?true:r;var l=bi(e.elements.popper);var c=[].concat(e.scrollParents.reference,e.scrollParents.popper);if(o){c.forEach((function(t){t.addEventListener("scroll",i.update,aa)}))}if(s){l.addEventListener("resize",i.update,aa)}return function(){if(o){c.forEach((function(t){t.removeEventListener("scroll",i.update,aa)}))}if(s){l.removeEventListener("resize",i.update,aa)}}}const oa={name:"eventListeners",enabled:true,phase:"write",fn:function t(){},effect:na,data:{}};var ra={left:"right",right:"left",bottom:"top",top:"bottom"};function sa(t){return t.replace(/left|right|bottom|top/g,(function(t){return ra[t]}))}var la={start:"end",end:"start"};function ca(t){return t.replace(/start|end/g,(function(t){return la[t]}))}function ha(t){var e=bi(t);var i=e.pageXOffset;var a=e.pageYOffset;return{scrollLeft:i,scrollTop:a}}function ga(t){return Di(Ii(t)).left+ha(t).scrollLeft}function ma(t,e){var i=bi(t);var a=Ii(t);var n=i.visualViewport;var o=a.clientWidth;var r=a.clientHeight;var s=0;var l=0;if(n){o=n.width;r=n.height;var c=Bi();if(c||!c&&e==="fixed"){s=n.offsetLeft;l=n.offsetTop}}return{width:o,height:r,x:s+ga(t),y:l}}function da(t){var e;var i=Ii(t);var a=ha(t);var n=(e=t.ownerDocument)==null?void 0:e.body;var o=Mi(i.scrollWidth,i.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0);var r=Mi(i.scrollHeight,i.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0);var s=-a.scrollLeft+ga(t);var l=-a.scrollTop;if(Ei(n||i).direction==="rtl"){s+=Mi(i.clientWidth,n?n.clientWidth:0)-o}return{width:o,height:r,x:s,y:l}}function ua(t){var e=Ei(t),i=e.overflow,a=e.overflowX,n=e.overflowY;return/auto|scroll|overlay|hidden/.test(i+n+a)}function pa(t){if(["html","body","#document"].indexOf(fi(t))>=0){return t.ownerDocument.body}if(_i(t)&&ua(t)){return t}return pa(Pi(t))}function va(t,e){var i;if(e===void 0){e=[]}var a=pa(t);var n=a===((i=t.ownerDocument)==null?void 0:i.body);var o=bi(a);var r=n?[o].concat(o.visualViewport||[],ua(a)?a:[]):a;var s=e.concat(r);return n?s:s.concat(va(Pi(r)))}function fa(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function ba(t,e){var i=Di(t,false,e==="fixed");i.top=i.top+t.clientTop;i.left=i.left+t.clientLeft;i.bottom=i.top+t.clientHeight;i.right=i.left+t.clientWidth;i.width=t.clientWidth;i.height=t.clientHeight;i.x=i.left;i.y=i.top;return i}function wa(t,e,i){return e===ii?fa(ma(t,i)):wi(e)?ba(e,i):fa(da(Ii(t)))}function _a(t){var e=va(Pi(t));var i=["absolute","fixed"].indexOf(Ei(t).position)>=0;var a=i&&_i(t)?ji(t):t;if(!wi(a)){return[]}return e.filter((function(t){return wi(t)&&Ai(t,a)&&fi(t)!=="body"}))}function xa(t,e,i,a){var n=e==="clippingParents"?_a(t):[].concat(e);var o=[].concat(n,[i]);var r=o[0];var s=o.reduce((function(e,i){var n=wa(t,i,a);e.top=Mi(n.top,e.top);e.right=Ci(n.right,e.right);e.bottom=Ci(n.bottom,e.bottom);e.left=Mi(n.left,e.left);return e}),wa(t,r,a));s.width=s.right-s.left;s.height=s.bottom-s.top;s.x=s.left;s.y=s.top;return s}function za(t){var e=t.reference,i=t.element,a=t.placement;var n=a?Hi(a):null;var o=a?Zi(a):null;var r=e.x+e.width/2-i.width/2;var s=e.y+e.height/2-i.height/2;var l;switch(n){case Ge:l={x:r,y:e.y-i.height};break;case Ke:l={x:r,y:e.y+e.height};break;case Je:l={x:e.x+e.width,y:s};break;case Ye:l={x:e.x-i.width,y:s};break;default:l={x:e.x,y:e.y}}var c=n?Si(n):null;if(c!=null){var h=c==="y"?"height":"width";switch(o){case Qe:l[c]=l[c]-(e[h]/2-i[h]/2);break;case ti:l[c]=l[c]+(e[h]/2-i[h]/2);break}}return l}function ya(t,e){if(e===void 0){e={}}var i=e,a=i.placement,n=a===void 0?t.placement:a,o=i.strategy,r=o===void 0?t.strategy:o,s=i.boundary,l=s===void 0?ei:s,c=i.rootBoundary,h=c===void 0?ii:c,g=i.elementContext,m=g===void 0?ai:g,d=i.altBoundary,u=d===void 0?false:d,p=i.padding,v=p===void 0?0:p;var f=Ni(typeof v!=="number"?v:Fi(v,Xe));var b=m===ai?ni:ai;var w=t.rects.popper;var _=t.elements[u?b:m];var x=xa(wi(_)?_:_.contextElement||Ii(t.elements.popper),l,h,r);var z=Di(t.elements.reference);var y=za({reference:z,element:w,strategy:"absolute",placement:n});var k=fa(Object.assign({},w,y));var H=m===ai?k:z;var M={top:x.top-H.top+f.top,bottom:H.bottom-x.bottom+f.bottom,left:x.left-H.left+f.left,right:H.right-x.right+f.right};var C=t.modifiersData.offset;if(m===ai&&C){var V=C[n];Object.keys(M).forEach((function(t){var e=[Je,Ke].indexOf(t)>=0?1:-1;var i=[Ge,Ke].indexOf(t)>=0?"y":"x";M[t]+=V[i]*e}))}return M}function ka(t,e){if(e===void 0){e={}}var i=e,a=i.placement,n=i.boundary,o=i.rootBoundary,r=i.padding,s=i.flipVariations,l=i.allowedAutoPlacements,c=l===void 0?ri:l;var h=Zi(a);var g=h?s?oi:oi.filter((function(t){return Zi(t)===h})):Xe;var m=g.filter((function(t){return c.indexOf(t)>=0}));if(m.length===0){m=g}var d=m.reduce((function(e,i){e[i]=ya(t,{placement:i,boundary:n,rootBoundary:o,padding:r})[Hi(i)];return e}),{});return Object.keys(d).sort((function(t,e){return d[t]-d[e]}))}function Ha(t){if(Hi(t)===Ze){return[]}var e=sa(t);return[ca(t),e,ca(e)]}function Ma(t){var e=t.state,i=t.options,a=t.name;if(e.modifiersData[a]._skip){return}var n=i.mainAxis,o=n===void 0?true:n,r=i.altAxis,s=r===void 0?true:r,l=i.fallbackPlacements,c=i.padding,h=i.boundary,g=i.rootBoundary,m=i.altBoundary,d=i.flipVariations,u=d===void 0?true:d,p=i.allowedAutoPlacements;var v=e.options.placement;var f=Hi(v);var b=f===v;var w=l||(b||!u?[sa(v)]:Ha(v));var _=[v].concat(w).reduce((function(t,i){return t.concat(Hi(i)===Ze?ka(e,{placement:i,boundary:h,rootBoundary:g,padding:c,flipVariations:u,allowedAutoPlacements:p}):i)}),[]);var x=e.rects.reference;var z=e.rects.popper;var y=new Map;var k=true;var H=_[0];for(var M=0;M<_.length;M++){var C=_[M];var V=Hi(C);var L=Zi(C)===Qe;var B=[Ge,Ke].indexOf(V)>=0;var D=B?"width":"height";var $=ya(e,{placement:C,boundary:h,rootBoundary:g,altBoundary:m,padding:c});var A=B?L?Je:Ye:L?Ke:Ge;if(x[D]>z[D]){A=sa(A)}var E=sa(A);var q=[];if(o){q.push($[V]<=0)}if(s){q.push($[A]<=0,$[E]<=0)}if(q.every((function(t){return t}))){H=C;k=false;break}y.set(C,q)}if(k){var I=u?3:1;var P=function t(e){var i=_.find((function(t){var i=y.get(t);if(i){return i.slice(0,e).every((function(t){return t}))}}));if(i){H=i;return"break"}};for(var T=I;T>0;T--){var O=P(T);if(O==="break")break}}if(e.placement!==H){e.modifiersData[a]._skip=true;e.placement=H;e.reset=true}}const Ca={name:"flip",enabled:true,phase:"main",fn:Ma,requiresIfExists:["offset"],data:{_skip:false}};function Va(t,e,i){if(i===void 0){i={x:0,y:0}}return{top:t.top-e.height-i.y,right:t.right-e.width+i.x,bottom:t.bottom-e.height+i.y,left:t.left-e.width-i.x}}function La(t){return[Ge,Je,Ke,Ye].some((function(e){return t[e]>=0}))}function Ba(t){var e=t.state,i=t.name;var a=e.rects.reference;var n=e.rects.popper;var o=e.modifiersData.preventOverflow;var r=ya(e,{elementContext:"reference"});var s=ya(e,{altBoundary:true});var l=Va(r,a);var c=Va(s,n,o);var h=La(l);var g=La(c);e.modifiersData[i]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:h,hasPopperEscaped:g};e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":g})}const Da={name:"hide",enabled:true,phase:"main",requiresIfExists:["preventOverflow"],fn:Ba};function $a(t,e,i){var a=Hi(t);var n=[Ye,Ge].indexOf(a)>=0?-1:1;var o=typeof i==="function"?i(Object.assign({},e,{placement:t})):i,r=o[0],s=o[1];r=r||0;s=(s||0)*n;return[Ye,Je].indexOf(a)>=0?{x:s,y:r}:{x:r,y:s}}function Aa(t){var e=t.state,i=t.options,a=t.name;var n=i.offset,o=n===void 0?[0,0]:n;var r=ri.reduce((function(t,i){t[i]=$a(i,e.rects,o);return t}),{});var s=r[e.placement],l=s.x,c=s.y;if(e.modifiersData.popperOffsets!=null){e.modifiersData.popperOffsets.x+=l;e.modifiersData.popperOffsets.y+=c}e.modifiersData[a]=r}const Ea={name:"offset",enabled:true,phase:"main",requires:["popperOffsets"],fn:Aa};function qa(t){var e=t.state,i=t.name;e.modifiersData[i]=za({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const Ia={name:"popperOffsets",enabled:true,phase:"read",fn:qa,data:{}};function Pa(t){return t==="x"?"y":"x"}function Ta(t){var e=t.state,i=t.options,a=t.name;var n=i.mainAxis,o=n===void 0?true:n,r=i.altAxis,s=r===void 0?false:r,l=i.boundary,c=i.rootBoundary,h=i.altBoundary,g=i.padding,m=i.tether,d=m===void 0?true:m,u=i.tetherOffset,p=u===void 0?0:u;var v=ya(e,{boundary:l,rootBoundary:c,padding:g,altBoundary:h});var f=Hi(e.placement);var b=Zi(e.placement);var w=!b;var _=Si(f);var x=Pa(_);var z=e.modifiersData.popperOffsets;var y=e.rects.reference;var k=e.rects.popper;var H=typeof p==="function"?p(Object.assign({},e.rects,{placement:e.placement})):p;var M=typeof H==="number"?{mainAxis:H,altAxis:H}:Object.assign({mainAxis:0,altAxis:0},H);var C=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null;var V={x:0,y:0};if(!z){return}if(o){var L;var B=_==="y"?Ge:Ye;var D=_==="y"?Ke:Je;var $=_==="y"?"height":"width";var A=z[_];var E=A+v[B];var q=A-v[D];var I=d?-k[$]/2:0;var P=b===Qe?y[$]:k[$];var T=b===Qe?-k[$]:-y[$];var O=e.elements.arrow;var j=d&&O?$i(O):{width:0,height:0};var S=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Ui();var W=S[B];var R=S[D];var U=Wi(0,y[$],j[$]);var N=w?y[$]/2-I-U-W-M.mainAxis:P-U-W-M.mainAxis;var F=w?-y[$]/2+I+U+R+M.mainAxis:T+U+R+M.mainAxis;var G=e.elements.arrow&&ji(e.elements.arrow);var K=G?_==="y"?G.clientTop||0:G.clientLeft||0:0;var J=(L=C==null?void 0:C[_])!=null?L:0;var Y=A+N-J-K;var Z=A+F-J;var X=Wi(d?Ci(E,Y):E,A,d?Mi(q,Z):q);z[_]=X;V[_]=X-A}if(s){var Q;var tt=_==="x"?Ge:Ye;var et=_==="x"?Ke:Je;var it=z[x];var at=x==="y"?"height":"width";var nt=it+v[tt];var ot=it-v[et];var rt=[Ge,Ye].indexOf(f)!==-1;var st=(Q=C==null?void 0:C[x])!=null?Q:0;var lt=rt?nt:it-y[at]-k[at]-st+M.altAxis;var ct=rt?it+y[at]+k[at]-st-M.altAxis:ot;var ht=d&&rt?Ri(lt,it,ct):Wi(d?lt:nt,it,d?ct:ot);z[x]=ht;V[x]=ht-it}e.modifiersData[a]=V}const Oa={name:"preventOverflow",enabled:true,phase:"main",fn:Ta,requiresIfExists:["offset"]};function ja(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function Sa(t){if(t===bi(t)||!_i(t)){return ha(t)}else{return ja(t)}}function Wa(t){var e=t.getBoundingClientRect();var i=Vi(e.width)/t.offsetWidth||1;var a=Vi(e.height)/t.offsetHeight||1;return i!==1||a!==1}function Ra(t,e,i){if(i===void 0){i=false}var a=_i(e);var n=_i(e)&&Wa(e);var o=Ii(e);var r=Di(t,n,i);var s={scrollLeft:0,scrollTop:0};var l={x:0,y:0};if(a||!a&&!i){if(fi(e)!=="body"||ua(o)){s=Sa(e)}if(_i(e)){l=Di(e,true);l.x+=e.clientLeft;l.y+=e.clientTop}else if(o){l.x=ga(o)}}return{x:r.left+s.scrollLeft-l.x,y:r.top+s.scrollTop-l.y,width:r.width,height:r.height}}function Ua(t){var e=new Map;var i=new Set;var a=[];t.forEach((function(t){e.set(t.name,t)}));function n(t){i.add(t.name);var o=[].concat(t.requires||[],t.requiresIfExists||[]);o.forEach((function(t){if(!i.has(t)){var a=e.get(t);if(a){n(a)}}}));a.push(t)}t.forEach((function(t){if(!i.has(t.name)){n(t)}}));return a}function Na(t){var e=Ua(t);return vi.reduce((function(t,i){return t.concat(e.filter((function(t){return t.phase===i})))}),[])}function Fa(t){var e;return function(){if(!e){e=new Promise((function(i){Promise.resolve().then((function(){e=undefined;i(t())}))}))}return e}}function Ga(t){var e=t.reduce((function(t,e){var i=t[e.name];t[e.name]=i?Object.assign({},i,e,{options:Object.assign({},i.options,e.options),data:Object.assign({},i.data,e.data)}):e;return t}),{});return Object.keys(e).map((function(t){return e[t]}))}var Ka={placement:"bottom",modifiers:[],strategy:"absolute"};function Ja(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++){e[i]=arguments[i]}return!e.some((function(t){return!(t&&typeof t.getBoundingClientRect==="function")}))}function Ya(t){if(t===void 0){t={}}var e=t,i=e.defaultModifiers,a=i===void 0?[]:i,n=e.defaultOptions,o=n===void 0?Ka:n;return function t(e,i,n){if(n===void 0){n=o}var r={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ka,o),modifiersData:{},elements:{reference:e,popper:i},attributes:{},styles:{}};var s=[];var l=false;var c={state:r,setOptions:function t(n){var s=typeof n==="function"?n(r.options):n;g();r.options=Object.assign({},o,r.options,s);r.scrollParents={reference:wi(e)?va(e):e.contextElement?va(e.contextElement):[],popper:va(i)};var l=Na(Ga([].concat(a,r.options.modifiers)));r.orderedModifiers=l.filter((function(t){return t.enabled}));h();return c.update()},forceUpdate:function t(){if(l){return}var e=r.elements,i=e.reference,a=e.popper;if(!Ja(i,a)){return}r.rects={reference:Ra(i,ji(a),r.options.strategy==="fixed"),popper:$i(a)};r.reset=false;r.placement=r.options.placement;r.orderedModifiers.forEach((function(t){return r.modifiersData[t.name]=Object.assign({},t.data)}));for(var n=0;n<r.orderedModifiers.length;n++){if(r.reset===true){r.reset=false;n=-1;continue}var o=r.orderedModifiers[n],s=o.fn,h=o.options,g=h===void 0?{}:h,m=o.name;if(typeof s==="function"){r=s({state:r,options:g,name:m,instance:c})||r}}},update:Fa((function(){return new Promise((function(t){c.forceUpdate();t(r)}))})),destroy:function t(){g();l=true}};if(!Ja(e,i)){return c}c.setOptions(n).then((function(t){if(!l&&n.onFirstUpdate){n.onFirstUpdate(t)}}));function h(){r.orderedModifiers.forEach((function(t){var e=t.name,i=t.options,a=i===void 0?{}:i,n=t.effect;if(typeof n==="function"){var o=n({state:r,name:e,instance:c,options:a});var l=function t(){};s.push(o||l)}}))}function g(){s.forEach((function(t){return t()}));s=[]}return c}}var Za=[oa,Ia,ia,ki,Ea,Ca,Oa,Yi,Da];var Xa=Ya({defaultModifiers:Za});const Qa="/*!\n * @prop --mg-c-popover-color-background: Defines the background color of the popover. Default value: `--mg-b-color-light`.\n * @prop --mg-c-popover-color-text: Defines the font color of the popover. Default value: `--mg-b-color-font-dark`.\n * @prop --mg-c-popover-title-font-size: Defines the font size of the popover title. Default value: `--mg-b-font-size-h5`.\n * @prop --mg-c-popover-padding-vertical: Defines the vertical padding of the popover. Default value: `unset`, fallback to `--mg-b-size-16`.\n * @prop --mg-c-popover-padding-horizontal: Defines the horizontal padding of the popover. Default value: `unset`, fallback to `--mg-b-size-16`.\n * @prop --mg-c-popover-max-width: Defines the max-width of the popover. Default value: `--mg-b-size-floating-element-max-width`.\n * @prop --mg-c-popover-min-width: Defines the min-width of the popover. Default value: `unset`.\n */:host{--mg-c-card-spacing:var(--mg-c-popover-padding-vertical, var(--mg-b-size-16)) var(--mg-c-popover-padding-horizontal, var(--mg-b-size-16));--mg-c-card-border:none;--mg-c-card-border-radius:var(--mg-b-size-radius);--mg-c-card-color-background:var(--mg-c-popover-color-background);position:relative;display:contents}:host::slotted(*){display:inline-block}";const tn=Qa;const en=class{constructor(e){t(this,e);this.displayChange=n(this,"display-change",7);this.componentClose=n(this,"component-close",7);this.identifier=o("mg-popover");this.placement="bottom";this.arrowHide=false;this.closeButton=false;this.display=false;this.disabled=false;this.clickOutside=t=>{if(!this.disabled&&t.target.closest("mg-popover")!==this.element&&t.target.closest(`[data-mg-popover-guard="${this.identifier}"]`)===null){this.display=false}};this.show=()=>{this.mgPopover.dataset.show="";this.setPopperListeners(true);setTimeout((()=>{this.manageClickOutsideListeners("addEventListener")}))};this.hide=()=>{this.mgPopover.removeAttribute("data-show");this.setPopperListeners(false);this.manageClickOutsideListeners("removeEventListener")};this.setPopperListeners=t=>{this.popper.setOptions((e=>Object.assign(Object.assign({},e),{modifiers:[...e.modifiers,{name:"eventListeners",enabled:t}]})))};this.manageClickOutsideListeners=t=>{var e,i;const a=Array.from(((i=(e=document.querySelector(`[data-mg-popover-guard="${this.identifier}"]`))===null||e===void 0?void 0:e.shadowRoot)===null||i===void 0?void 0:i.children)||new Set);[...a,...this.windows].forEach((e=>{if(e!==null){e[t]("click",this.clickOutside,false)}}))};this.handleHideContent=()=>{this.display=false;this.componentClose.emit()};this.renderPopoverContent=()=>{const t=this.element.querySelector("mg-popover-content");if(t===null){this.mgPopoverContent=document.createElement("mg-popover-content");this.mgPopoverContent.setAttribute("slot","content");this.mgPopoverContent.setAttribute("id",this.identifier);this.mgPopoverContent.addEventListener("hide-content",this.handleHideContent);const t=document.createElement("div");t.setAttribute("slot","arrow");t.dataset.popperArrow="";this.mgPopoverContent.appendChild(t);['[slot="title"]','[slot="content"]:not(mg-popover-content)'].forEach((t=>{Array.from(this.element.querySelectorAll(t)).forEach((t=>{this.mgPopoverContent.appendChild(t)}))}));this.element.appendChild(this.mgPopoverContent)}else{t.setAttribute("id",this.identifier)}}}validateIdentifier(t){if(!h(t)){throw new Error(`<mg-popover> prop "identifier" value is invalid. Passed value: ${r(t)}.`)}this.renderPopoverContent()}validateArrowHide(t){if(t)this.mgPopoverContent.dataset.arrowHide="";else delete this.mgPopoverContent.dataset.arrowHide}validateCloseButton(t){this.mgPopoverContent.closeButton=t}handleDisplay(t){if(t){this.show()}else{this.hide()}this.displayChange.emit(t)}componentDidUpdate(){this.popper.update()}componentWillLoad(){this.windows=z(window);this.renderPopoverContent();this.validateCloseButton(this.closeButton);this.validateIdentifier(this.identifier);this.validateArrowHide(this.arrowHide)}componentDidLoad(){this.mgPopover=this.element.querySelector(`#${this.identifier}`);const t=this.element.querySelector(":not([slot])");t.setAttribute("aria-controls",this.identifier);t.setAttribute("aria-expanded",`${this.display}`);const e=[];if(this.element.dataset.fallbackPlacement!==undefined){e.push(this.element.dataset.fallbackPlacement)}this.popper=Xa(t,this.mgPopover,{placement:this.placement,strategy:"fixed",modifiers:[{name:"offset",options:{offset:[0,0]}},{name:"flip",options:{fallbackPlacements:[...e,"auto"]}}]});[t,this.element.querySelector("mg-popover-content")].forEach((t=>{new ResizeObserver((()=>{this.popper.update()})).observe(t)}));t.addEventListener("click",(()=>{if(!this.disabled)this.display=!this.display}));this.element.addEventListener("click",(t=>{const e=t.target.closest("[popovertargetaction]");if(this.display===true&&e!==null&&e.getAttribute("popovertargetaction")==="hide"){this.display=false}}));this.element.addEventListener("keydown",(e=>{if(!this.disabled&&e.code==="Escape"){this.display=false;this.componentClose.emit();t.focus()}}));this.handleDisplay(this.display)}render(){return e(i,{key:"29e8b74394c1a3f620b4119912d5038feb87b873"},e("slot",{key:"8a3fc0141c2b48db2bf5bd526c1ce289797aaede"}),e("slot",{key:"32ef24ddf19e932ae40f1263da121244c969ce0c",name:"content"}))}get element(){return a(this)}static get watchers(){return{identifier:["validateIdentifier"],arrowHide:["validateArrowHide"],closeButton:["validateCloseButton"],display:["handleDisplay"]}}};en.style=tn;const an=':host{position:relative;z-index:2000;display:none;padding:var(--mg-b-size-8);color:var(--mg-c-popover-color-text)}:host([data-show]){display:block}:host([data-popper-placement^=left-start]),:host([data-popper-placement^=left-end]),:host([data-popper-placement^=right-start]),:host([data-popper-placement^=right-end]){padding:0 var(--mg-b-size-8)}.mg-c-popover-content{--mg-c-card-max-width:var(--mg-c-popover-max-width);--mg-c-card-min-width:var(--mg-c-popover-min-width)}.mg-c-popover-content mg-button{margin-top:calc(-1*(var(--mg-b-size-min-height) - var(--mg-c-popover-title-font-size)*var(--mg-b-line-height))/2);margin-right:calc(-1*(var(--mg-b-size-min-height) - var(--mg-b-size-16))/2);margin-left:var(--mg-b-size-32);float:right}.mg-c-popover-content__title ::slotted([slot=title]){margin:0 0 var(--mg-b-size-8) !important;font-size:var(--mg-c-popover-title-font-size) !important;font-weight:600 !important}.mg-c-popover-content ::slotted(*){--mg-c-card-border:var(--mg-c-card-border-default);--mg-c-card-spacing:var(--mg-c-card-spacing-default);--mg-c-card-border-radius:var(--mg-c-card-border-radius-default);--mg-c-card-color-background:var(--mg-c-card-color-background-default);--mg-c-card-box-shadow:var(--mg-c-card-box-shadow-default);--mg-c-card-max-width:unset;--mg-c-card-min-width:unset}:host([data-popper-placement^=top][data-arrow-hide]){padding-bottom:0}:host([data-popper-placement^=bottom][data-arrow-hide]){padding-top:0}:host([data-popper-placement$=end][data-arrow-hide]),:host([data-popper-placement^=left][data-arrow-hide]){padding-right:0}:host([data-popper-placement$=start][data-arrow-hide]),:host([data-popper-placement^=right][data-arrow-hide]){padding-left:0}::slotted([slot=arrow]){position:absolute;width:calc(var(--mg-b-size-24) + 2*var(--mg-c-card-border-radius) + 2*var(--mg-b-size-8));height:calc(var(--mg-b-size-24) + 2*var(--mg-c-card-border-radius) + 2*var(--mg-b-size-8));visibility:hidden}::slotted([slot=arrow])::before{position:absolute;content:"";visibility:visible}:host([data-arrow-hide]) ::slotted([slot=arrow]){display:none}:host([data-popper-placement^=top]) ::slotted([slot=arrow]),:host([data-popper-placement^=bottom]) ::slotted([slot=arrow]){height:var(--mg-b-size-8)}:host([data-popper-placement^=top]) ::slotted([slot=arrow])::before,:host([data-popper-placement^=bottom]) ::slotted([slot=arrow])::before{left:calc(var(--mg-c-card-border-radius) + var(--mg-b-size-8));border-right:calc(var(--mg-b-size-24)/2) solid rgba(0,0,0,0);border-left:calc(var(--mg-b-size-24)/2) solid rgba(0,0,0,0)}:host([data-popper-placement^=top]) ::slotted([slot=arrow]){bottom:var(--mg-b-size-border);filter:drop-shadow(0 0.5rem 0.25rem color-mix(in srgb, var(--mg-b-color-dark), transparent 85%))}:host([data-popper-placement^=top]) ::slotted([slot=arrow])::before{border-top:var(--mg-b-size-8) solid var(--mg-c-popover-color-background)}:host([data-popper-placement^=bottom]) ::slotted([slot=arrow]){top:var(--mg-b-size-border);filter:drop-shadow(0 -0.5rem 0.25rem color-mix(in srgb, var(--mg-b-color-dark), transparent 85%))}:host([data-popper-placement^=bottom]) ::slotted([slot=arrow])::before{border-bottom:var(--mg-b-size-8) solid var(--mg-c-popover-color-background)}:host([data-popper-placement^=left]) ::slotted([slot=arrow]),:host([data-popper-placement^=right]) ::slotted([slot=arrow]){width:var(--mg-b-size-8)}:host([data-popper-placement^=left]) ::slotted([slot=arrow])::before,:host([data-popper-placement^=right]) ::slotted([slot=arrow])::before{top:calc(var(--mg-c-card-border-radius) + var(--mg-b-size-8));border-top:calc(var(--mg-b-size-24)/2) solid rgba(0,0,0,0);border-bottom:calc(var(--mg-b-size-24)/2) solid rgba(0,0,0,0)}:host([data-popper-placement^=left]) ::slotted([slot=arrow]){right:var(--mg-b-size-border);filter:drop-shadow(0.5rem 0 0.25rem color-mix(in srgb, var(--mg-b-color-dark), transparent 85%))}:host([data-popper-placement^=left]) ::slotted([slot=arrow])::before{border-left:var(--mg-b-size-8) solid var(--mg-c-popover-color-background)}:host([data-popper-placement^=right]) ::slotted([slot=arrow]){left:var(--mg-b-size-border);filter:drop-shadow(-0.5rem 0 0.25rem color-mix(in srgb, var(--mg-b-color-dark), transparent 85%))}:host([data-popper-placement^=right]) ::slotted([slot=arrow])::before{border-right:var(--mg-b-size-8) solid var(--mg-c-popover-color-background)}:host([data-popper-placement^=left-start]) ::slotted([slot=arrow]),:host([data-popper-placement^=left-end]) ::slotted([slot=arrow]),:host([data-popper-placement^=right-start]) ::slotted([slot=arrow]),:host([data-popper-placement^=right-end]) ::slotted([slot=arrow]){height:calc(var(--mg-b-size-24) + 2*var(--mg-c-card-border-radius))}:host([data-popper-placement^=left-start]) ::slotted([slot=arrow])::before,:host([data-popper-placement^=left-end]) ::slotted([slot=arrow])::before,:host([data-popper-placement^=right-start]) ::slotted([slot=arrow])::before,:host([data-popper-placement^=right-end]) ::slotted([slot=arrow])::before{top:var(--mg-c-card-border-radius)}';const nn=an;const on=class{constructor(e){t(this,e);this.hideContent=n(this,"hide-content",7);this.closeButton=false;this.classCollection=new s(["mg-c-popover-content"]);this.handleCloseButton=()=>{this.hideContent.emit()}}componentWillLoad(){this.messages=k(this.element).messages}componentDidLoad(){const t=["h1","h2","h3","h4","h5","h6"];const e=this.element.querySelector('[slot="title"]');if(e&&!g(e,t)){throw new Error(`<mg-popover> Slotted title must be a heading: ${t.join(", ")}.`)}}render(){return e(i,{key:"8d2dd7d21518de744c18f0280b7b418f3a76acca"},e("mg-card",{key:"8beab7c9fb692c1983515709a1ee888dc7e5157a",class:this.classCollection.join()},this.closeButton&&e("mg-button",{key:"e636569be26b0c741e0b03e806787d91b47ded5c","is-icon":true,variant:"flat",label:this.messages.general.close,onClick:this.handleCloseButton},e("mg-icon",{key:"3edc717cbe542494d892566c182883e20b1ca4cb",icon:"cross"})),e("div",{key:"d18525218972d92b6932984edb50844658e12970",class:"mg-c-popover-content__title"},e("slot",{key:"2cceb41fd4ebb00b889e71cab211431e5894d04c",name:"title"})),e("slot",{key:"a6615d9d7c85b32fb63d3d89db02fae2f8d5c1b2",name:"content"})),e("slot",{key:"0ff4bf72de19a3d56aafb64391cfc276d70e2f18",name:"arrow"}))}get element(){return a(this)}};on.style=nn;const rn=".mg-c-skip-links{position:absolute;display:flex;min-height:var(--mg-b-size-56);align-items:center;background:var(--mg-b-color-light);opacity:0;transform:translateY(-100%)}.mg-c-skip-links:focus-within{position:relative;opacity:1;transform:translateY(0)}.mg-c-skip-links__list{display:flex;flex-wrap:wrap;align-items:center;padding:0 var(--mg-b-size-16);margin:0;gap:var(--mg-b-spacing-actions);list-style:none}.mg-c-skip-links__link{display:inline-block;padding:var(--mg-b-size-8) var(--mg-b-size-16);color:var(--mg-b-color-dark)}.mg-c-skip-links__link:hover{background:hsl(var(--mg-b-color-dark-h), var(--mg-b-color-dark-s), var(--mg-b-color-dark-l), 10%)}";const sn=rn;const ln=class{constructor(e){t(this,e);this.goToAnchor=n(this,"go-to-anchor",7);this.handleLinkCLick=t=>{t.currentTarget.blur();this.goToAnchor.emit(t.currentTarget.getAttribute("href"))}}validateLinks(t){if(t===undefined||t.length===0||t.some((t=>!l(t.href)||!t.href.startsWith("#")||!l(t.label)))){throw new Error(`<mg-skip-links> prop "links": Cannot be empty and each link must contains an href starting with a "#" and a non empty label attributes.`)}}componentWillLoad(){this.validateLinks(this.links);this.messages=k(this.element).messages}render(){return e("nav",{key:"0b4e4d6b9481a88faae78602b07c4f5e851da517",class:"mg-c-skip-links",role:"navigation","aria-label":this.messages.skipLinks.navLabel},e("ul",{key:"aaa15193eb2c9e1d9ee3b2e2a7d8d0fd37836ed7",class:"mg-c-skip-links__list",role:"list"},this.links.map((t=>e("li",{key:t.href},e("a",{class:"mg-c-skip-links__link",href:t.href,onClick:this.handleLinkCLick},t.label))))))}get element(){return a(this)}static get watchers(){return{links:["validateLinks"]}}};ln.style=sn;const cn={VISIBLE:"visible",HIDDEN:"hidden",DISABLED:"disabled",ACTIVE:"active"};const hn=["medium","large"];const gn="/*!\n * @prop --mg-c-tabs-color: Defines tabs global color, used for bottom line and active tabs. Default value: `--mg-b-color-app`.\n * @prop --mg-c-tabs-color-text: Defines tabs text color. Unset by default, fallback on `--mg-b-color-dark`.\n */.mg-c-tabs.mg-c-tabs--size-medium .mg-c-tabs__navigation-button,.mg-c-tabs__navigation-button.mg-c-tabs__navigation-button--size-medium{padding:var(--mg-b-size-12) var(--mg-b-size-16)}.mg-c-tabs.mg-c-tabs--size-medium .mg-c-tabs__navigation-button,.mg-c-tabs.mg-c-tabs--size-medium .mg-c-tabs__navigation-button ::slotted([slot=label]),.mg-c-tabs.mg-c-tabs--size-medium .mg-c-tabs__navigation-button ::slotted([slot=metadata]),.mg-c-tabs__navigation-button.mg-c-tabs__navigation-button--size-medium,.mg-c-tabs__navigation-button.mg-c-tabs__navigation-button--size-medium ::slotted([slot=label]),.mg-c-tabs__navigation-button.mg-c-tabs__navigation-button--size-medium ::slotted([slot=metadata]){font-size:var(--mg-b-font-size)}.mg-c-tabs.mg-c-tabs--size-medium .mg-c-tabs__navigation-button.mg-c-tabs__navigation-button--horizontal,.mg-c-tabs__navigation-button.mg-c-tabs__navigation-button--size-medium.mg-c-tabs__navigation-button--horizontal{padding-bottom:var(--mg-b-size-12)}.mg-c-tabs.mg-c-tabs--size-medium .mg-c-tabs__navigation-button.mg-c-tabs__navigation-button--vertical,.mg-c-tabs__navigation-button.mg-c-tabs__navigation-button--size-medium.mg-c-tabs__navigation-button--vertical{padding-left:var(--mg-b-size-16)}.mg-c-tabs.mg-c-tabs--size-large .mg-c-tabs__navigation-button,.mg-c-tabs__navigation-button.mg-c-tabs__navigation-button--size-large{padding:var(--mg-b-size-16) var(--mg-b-size-32)}.mg-c-tabs.mg-c-tabs--size-large .mg-c-tabs__navigation-button,.mg-c-tabs.mg-c-tabs--size-large .mg-c-tabs__navigation-button ::slotted([slot=label]),.mg-c-tabs.mg-c-tabs--size-large .mg-c-tabs__navigation-button ::slotted([slot=metadata]),.mg-c-tabs__navigation-button.mg-c-tabs__navigation-button--size-large,.mg-c-tabs__navigation-button.mg-c-tabs__navigation-button--size-large ::slotted([slot=label]),.mg-c-tabs__navigation-button.mg-c-tabs__navigation-button--size-large ::slotted([slot=metadata]){font-size:var(--mg-b-font-size-h4)}.mg-c-tabs.mg-c-tabs--size-large .mg-c-tabs__navigation-button.mg-c-tabs__navigation-button--horizontal,.mg-c-tabs__navigation-button.mg-c-tabs__navigation-button--size-large.mg-c-tabs__navigation-button--horizontal{padding-bottom:var(--mg-b-size-16)}.mg-c-tabs.mg-c-tabs--size-large .mg-c-tabs__navigation-button.mg-c-tabs__navigation-button--vertical,.mg-c-tabs__navigation-button.mg-c-tabs__navigation-button--size-large.mg-c-tabs__navigation-button--vertical{padding-left:var(--mg-b-size-32)}.mg-c-tabs__navigation-button{display:flex;box-sizing:border-box;align-items:center;border:none;background-color:unset;color:var(--mg-c-tabs-color-text, var(--mg-b-color-dark));column-gap:var(--mg-c-tabs-navigation-button-column-gap, var(--mg-b-size-8));cursor:pointer;font-family:var(--mg-b-font-family);font-weight:400;line-height:var(--mg-b-line-height);text-decoration:none;white-space:nowrap}.mg-c-tabs__navigation-button:disabled,.mg-c-tabs__navigation-button--disabled{cursor:default;opacity:var(--mg-b-opacity-element-disabled)}.mg-c-tabs__navigation-button:focus-visible{z-index:10}.mg-c-tabs__navigation-button:hover:not(.mg-c-tabs__navigation-button--disabled),.mg-c-tabs__navigation-button:focus-visible:not(.mg-c-tabs__navigation-button--disabled){background-color:color-mix(in srgb, var(--mg-c-tabs-color), transparent 90%)}.mg-c-tabs__navigation-button.mg-c-tabs__navigation-button--active{color:var(--mg-c-tabs-color);font-weight:600}.mg-c-tabs__navigation-button.mg-c-tabs__navigation-button--active.mg-c-tabs__navigation-button--horizontal{box-shadow:inset 0 calc(-1*var(--mg-b-size-4)) var(--mg-c-tabs-color)}.mg-c-tabs__navigation-button.mg-c-tabs__navigation-button--active.mg-c-tabs__navigation-button--vertical{box-shadow:inset var(--mg-b-size-4) 0 var(--mg-c-tabs-color)}.mg-c-tabs__navigation-button.mg-c-tabs__navigation-button--hidden{display:none}.mg-c-tabs__header{display:flex;flex-flow:row wrap;border-bottom:var(--mg-b-size-border) solid color-mix(in srgb, var(--mg-c-tabs-color), transparent 90%)}.mg-c-tabs__content-container:focus-visible{outline:none}.mg-c-tabs__navigation-button-text{flex:0 0 content}";const mn=gn;const dn=t=>typeof t==="object"&&typeof t.label==="string";const un=class{constructor(e){t(this,e);this.activeTabChange=n(this,"active-tab-change",7);this.tabPanel="panel";this.buttonTabBaseClass="mg-c-tabs__navigation-button";this.startIndex=1;this.identifier=o("mg-tabs");this.size="medium";this.tabs=[];this.classCollection=new s(["mg-c-tabs"]);this.isActivableTab=t=>[undefined,cn.ACTIVE,cn.VISIBLE].includes(t.status);this.tabHasStatus=(t,e)=>t.status===e;this.getElementId=(t,e)=>`${t}-${this.getTabItemIndex(e)}`;this.getTabItemIndex=t=>t+this.startIndex;this.handleClick=t=>{const e=t.currentTarget.dataset.index;if(!this.isActivableTab(this.tabs[Number(e)-this.startIndex])){t.preventDefault()}else{this.activeTab=Number(e);this.tabFocus=undefined}};this.getNavigationButtonClass=t=>`${this.buttonTabBaseClass}--${t}`;this.handleKeydown=t=>{const e=t.target.parentElement;if(["ArrowRight","ArrowLeft"].includes(t.key)){this.tabFocus=Number(t.target.dataset.index);e.querySelector(`[data-index="${this.tabFocus}"]`).setAttribute("tabindex","-1");if(t.key==="ArrowRight"){this.tabFocus++;if(this.tabFocus>this.tabs.length)this.tabFocus=this.startIndex}else if(t.key==="ArrowLeft"){this.tabFocus--;if(this.tabFocus<this.startIndex)this.tabFocus=this.tabs.length}const i=e.querySelector(`[data-index="${this.tabFocus}"]`);if(this.tabHasStatus(this.tabs[this.tabFocus-1],cn.HIDDEN)){i.dispatchEvent(new KeyboardEvent("keydown",{key:t.key,bubbles:true}))}else{i.setAttribute("tabindex","0");i.focus()}}else if(t.key==="Tab"){this.resetFocus()}};this.handleDocumentClick=t=>{if(t.target.closest("mg-tabs")!==this.element)this.resetFocus()};this.resetFocus=()=>{c((()=>{this.tabFocus=undefined;Array.from(this.element.shadowRoot.querySelectorAll("[data-index]")).forEach(((t,e)=>{t.setAttribute("tabindex",this.activeTab-this.startIndex!==e?"-1":"0")}))}))};this.validateSlots=()=>{const t=Array.from(this.element.children).filter((t=>{var e;return(e=t.getAttribute("slot"))===null||e===void 0?void 0:e.includes("tab_content-")}));if(t.length!==this.tabs.length)throw new Error("<mg-tabs> Must have slots counts equal to tabs count.")}}watchIdentifier(t){if(!h(t)){console.error(`<mg-tabs> prop "identifier" value is invalid. Passed value: ${r(t)}.`)}}validateLabel(t){if(!l(t)){throw new Error(`<mg-tabs> prop "label" is required and must be a string. Passed value: ${r(t)}.`)}}validateSize(t){if(!hn.includes(t)){throw new Error(`<mg-tabs> prop "size" must be one of: ${hn.join(", ")}. Passed value: ${r(t)}.`)}this.classCollection.add(`mg-c-tabs--size-${this.size}`)}validateItems(t){if(x(t))this.tabs=t.map((t=>({label:t,status:cn.VISIBLE})));else if(Array.isArray(t)&&t.length>0&&t.every(dn))this.tabs=t;else throw new Error(`<mg-tabs> prop "items" is required and all items must be the same type: TabItem. Passed value: ${r(t)}.`)}validateActiveTab(t){if(t===undefined){this.activeTab=this.tabs.some((t=>this.tabHasStatus(t,cn.ACTIVE)))?this.getTabItemIndex(this.tabs.findIndex((t=>this.tabHasStatus(t,cn.ACTIVE)))):this.startIndex}else if(typeof t==="number"&&t>=this.startIndex&&t<=this.tabs.length&&this.isActivableTab(this.tabs[t-this.startIndex])){this.tabs.forEach(((e,i)=>{const a=i===t-this.startIndex;if(this.tabHasStatus(e,cn.ACTIVE)&&!a)e.status=cn.VISIBLE;else if(this.isActivableTab(e)&&a)e.status=cn.ACTIVE}));this.activeTabChange.emit(t)}else{throw new Error(`<mg-tabs> prop "activeTab" must be a number between ${this.startIndex} and ${this.tabs.length} and new value must be "activable". Passed value: ${r(t)}.`)}}componentWillLoad(){this.watchIdentifier(this.identifier);this.validateLabel(this.label);this.validateItems(this.items);this.validateActiveTab(this.activeTab);this.validateSize(this.size);this.validateSlots()}componentDidLoad(){document.addEventListener("click",this.handleDocumentClick,false)}disconnectedCallback(){document.removeEventListener("keydown",this.handleDocumentClick)}render(){return e("div",{key:"54bad50e0a610aaae267fb34384384a2aa3a2295",class:this.classCollection.join()},e("header",{key:"8bc4f73112f9de115b8558a7d322398b62983fb7",role:"tablist","aria-label":this.label,class:"mg-c-tabs__header"},this.tabs.map(((t,i)=>e("button",{key:t.label,role:"tab",id:this.getElementId(this.identifier,i),class:{[`${this.buttonTabBaseClass}`]:true,[`${this.buttonTabBaseClass}--horizontal`]:true,[`${this.getNavigationButtonClass(cn.ACTIVE)}`]:this.tabHasStatus(t,cn.ACTIVE),[`${this.getNavigationButtonClass(cn.DISABLED)}`]:this.tabHasStatus(t,cn.DISABLED),[`${this.getNavigationButtonClass(cn.HIDDEN)}`]:this.tabHasStatus(t,cn.HIDDEN)},tabindex:this.tabHasStatus(t,cn.ACTIVE)?0:-1,"aria-selected":this.tabHasStatus(t,cn.ACTIVE).toString(),"aria-controls":this.getElementId(this.tabPanel,i),"aria-disabled":this.tabHasStatus(t,cn.DISABLED),onClick:this.handleClick,onKeyDown:this.handleKeydown,"data-index":this.getTabItemIndex(i)},t.icon!==undefined&&e("mg-icon",{icon:t.icon}),t.label,t.badge!==undefined&&e("mg-badge",{variant:"text-color",value:t.badge.value,label:t.badge.label,outline:t.badge.role==="information"}))))),this.tabs.map(((t,i)=>e("article",{key:t.label,role:"tabpanel",id:this.getElementId(this.tabPanel,i),hidden:!this.tabHasStatus(t,cn.ACTIVE),"aria-labelledby":this.getElementId(this.identifier,i),tabindex:this.tabHasStatus(t,cn.ACTIVE)?0:-1,class:"mg-c-tabs__content-container"},e("slot",{name:this.getElementId("tab_content",i)})))))}get element(){return a(this)}static get watchers(){return{identifier:["watchIdentifier"],label:["validateLabel"],size:["validateSize"],items:["validateItems"],activeTab:["validateActiveTab"]}}};un.style=mn;const pn=["primary","secondary","success","warning","danger","info"];const vn="/*!\n * @prop --mg-c-tag-height: Defines the height of the tag. Default value is `--mg-b-size-24`.\n * @prop --mg-c-tag-border-radius: Defines the border radius of the tag. Default value is `--mg-b-size-radius`.\n * @prop --mg-c-tag-font-size: Defines the font size of the tag. Default value is `--mg-b-font-size-small`.\n */:host{display:inline-block}.mg-c-tag{display:inline-flex;min-height:var(--mg-c-tag-height);box-sizing:border-box;align-items:center;padding:calc((var(--mg-c-tag-height) - 2*var(--mg-b-size-border) - var(--mg-c-tag-font-size)*var(--mg-b-line-height))/2) calc(var(--mg-b-size-8) - var(--mg-b-size-border));border:var(--mg-b-size-border) solid;border-radius:var(--mg-c-tag-border-radius);font-size:var(--mg-c-tag-font-size);font-weight:600;text-align:center;vertical-align:middle}.mg-c-tag.mg-c-tag--primary{border-color:var(--mg-b-color-neutral-110);background-color:var(--mg-b-color-neutral-110);color:var(--mg-b-color-text-on-primary)}.mg-c-tag.mg-c-tag--primary.mg-c-tag--outline{background-color:rgba(0,0,0,0);color:var(--mg-b-color-neutral-110)}.mg-c-tag.mg-c-tag--primary.mg-c-tag--soft{border-color:var(--mg-b-color-neutral-20);background-color:var(--mg-b-color-neutral-20);color:var(--mg-b-color-dark);font-weight:400}.mg-c-tag.mg-c-tag--primary.mg-c-tag--soft ::slotted(mg-icon){color:var(--mg-b-color-neutral-110)}.mg-c-tag.mg-c-tag--secondary{border-color:var(--mg-b-color-neutral-10);background-color:var(--mg-b-color-neutral-10);color:var(--mg-b-color-text-on-secondary)}.mg-c-tag.mg-c-tag--secondary.mg-c-tag--outline{background-color:rgba(0,0,0,0);color:var(--mg-b-color-neutral-10)}.mg-c-tag.mg-c-tag--secondary.mg-c-tag--soft{border-color:var(--mg-b-color-neutral-20);background-color:var(--mg-b-color-neutral-20);color:var(--mg-b-color-dark);font-weight:400}.mg-c-tag.mg-c-tag--secondary.mg-c-tag--soft ::slotted(mg-icon){color:var(--mg-b-color-text-on-secondary)}.mg-c-tag.mg-c-tag--danger{border-color:var(--mg-b-color-danger);background-color:var(--mg-b-color-danger);color:var(--mg-b-color-text-on-danger)}.mg-c-tag.mg-c-tag--danger.mg-c-tag--outline{background-color:rgba(0,0,0,0);color:var(--mg-b-color-danger)}.mg-c-tag.mg-c-tag--danger.mg-c-tag--soft{border-color:var(--mg-b-color-red-20);background-color:var(--mg-b-color-red-20);color:var(--mg-b-color-dark);font-weight:400}.mg-c-tag.mg-c-tag--danger.mg-c-tag--soft ::slotted(mg-icon){color:var(--mg-b-color-danger)}.mg-c-tag.mg-c-tag--info{border-color:var(--mg-b-color-info);background-color:var(--mg-b-color-info);color:var(--mg-b-color-text-on-info)}.mg-c-tag.mg-c-tag--info.mg-c-tag--outline{background-color:rgba(0,0,0,0);color:var(--mg-b-color-info)}.mg-c-tag.mg-c-tag--info.mg-c-tag--soft{border-color:var(--mg-b-color-blue-20);background-color:var(--mg-b-color-blue-20);color:var(--mg-b-color-dark);font-weight:400}.mg-c-tag.mg-c-tag--info.mg-c-tag--soft ::slotted(mg-icon){color:var(--mg-b-color-info)}.mg-c-tag.mg-c-tag--success{border-color:var(--mg-b-color-success);background-color:var(--mg-b-color-success);color:var(--mg-b-color-text-on-success)}.mg-c-tag.mg-c-tag--success.mg-c-tag--outline{background-color:rgba(0,0,0,0);color:var(--mg-b-color-success)}.mg-c-tag.mg-c-tag--success.mg-c-tag--soft{border-color:var(--mg-b-color-green-20);background-color:var(--mg-b-color-green-20);color:var(--mg-b-color-dark);font-weight:400}.mg-c-tag.mg-c-tag--success.mg-c-tag--soft ::slotted(mg-icon){color:var(--mg-b-color-success)}.mg-c-tag.mg-c-tag--warning{border-color:var(--mg-b-color-warning);background-color:var(--mg-b-color-warning);color:var(--mg-b-color-text-on-warning)}.mg-c-tag.mg-c-tag--warning.mg-c-tag--outline{background-color:rgba(0,0,0,0);color:var(--mg-b-color-warning)}.mg-c-tag.mg-c-tag--warning.mg-c-tag--soft{border-color:var(--mg-b-color-yellow-20);background-color:var(--mg-b-color-yellow-20);color:var(--mg-b-color-dark);font-weight:400}.mg-c-tag.mg-c-tag--warning.mg-c-tag--soft ::slotted(mg-icon){color:var(--mg-b-color-warning)}::slotted(mg-icon){margin-right:var(--mg-b-size-4)}slot{display:inline-flex;align-items:center}";const fn=vn;const bn=class{constructor(e){t(this,e);this.classOutline="mg-c-tag--outline";this.classSoft="mg-c-tag--soft";this.variant=pn[0];this.classCollection=new s(["mg-c-tag"])}validateVariant(t,e){if(!pn.includes(t)){throw new Error(`<mg-tag> prop "variant" must be one of: ${pn.join(", ")}. Passed value: ${r(t)}.`)}else{if(e!==undefined){this.classCollection.delete(`mg-c-tag--${e}`)}this.classCollection.add(`mg-c-tag--${t}`)}}validateOutline(t){if(t)this.classCollection.add(this.classOutline);else this.classCollection.delete(this.classOutline)}validateSoft(t){if(t&&this.outline)throw new Error('<mg-tag> prop "soft" can NOT be used with prop "outline".');if(t)this.classCollection.add(this.classSoft);else this.classCollection.delete(this.classSoft)}validateTextContent(t){if(!l(t))throw new Error("<mg-tag> slot must contain a text content.")}componentWillLoad(){this.validateVariant(this.variant);this.validateOutline(this.outline);this.validateSoft(this.soft);this.validateTextContent(this.element.textContent)}render(){return e("span",{key:"b3269e3baec3a281bdbe65f8b62636b7ea2fa84c",class:this.classCollection.join()},e("slot",{key:"bcca2d8653dbcd6a96d322055a4e2773d85ca87d"}))}get element(){return a(this)}static get watchers(){return{variant:["validateVariant"],outline:["validateOutline"],soft:["validateSoft"]}}};bn.style=fn;const wn={FOCUS:"focus",HOVER_TOOLTIP_ELEMENT:"hoverTooltip",HOVER_TOOLTIPED_ELEMENT:"hoverTooltiped",DISABLE_ON_CLICK:"disableOnClick"};const _n="/*!\n * @prop --mg-c-tooltip-border-radius: Defines the border radius of the tooltip. Default value: `--mg-b-size-radius`.\n * @prop --mg-c-tooltip-color-background: Defines the background color of the tooltip. Default value: `--mg-b-color-dark`.\n * @prop --mg-c-tooltip-color-text: Defines the font color of the tooltip. Default value: `--mg-b-color-light`.\n */:host{display:inline-block}";const xn=_n;const zn=t=>typeof t==="object"&&["MG-BUTTON","BUTTON"].includes(t.tagName);const yn=class{constructor(e){t(this,e);this.identifier=o("mg-tooltip");this.placement="bottom";this.display=false;this.disabled=false;this.show=()=>{this.mgTooltipContent.dataset.show="";this.popper.setOptions((t=>Object.assign(Object.assign({},t),{modifiers:[...t.modifiers,{name:"eventListeners",enabled:true}]})));c((()=>{this.windows.forEach((t=>{t.addEventListener("click",this.handleClickOutside,false);t.addEventListener("keydown",this.handlePressEscape,false)}))}))};this.hide=()=>{this.mgTooltipContent.removeAttribute("data-show");this.popper.setOptions((t=>Object.assign(Object.assign({},t),{modifiers:[...t.modifiers,{name:"eventListeners",enabled:false}]})));this.windows.forEach((t=>{t.removeEventListener("click",this.handleClickOutside,false);t.removeEventListener("keyboard",this.handlePressEscape,false)}))};this.handleClickOutside=t=>{if(t.target.closest("mg-tooltip")!==this.element)this.setDisplay(false)};this.handlePressEscape=t=>{if(t.code==="Escape"){this.setDisplay(false);this.resetGuard()}};this.setDisplay=(t,e=true)=>{if(!this.disabled&&e)this.display=t};this.tooltipMouseListenerAction=(t,e,i)=>{if([wn.FOCUS,wn.DISABLE_ON_CLICK].includes(this.guard)){return}this.guard=t;if(e!=="mouseenter"){setTimeout((()=>{this.setDisplay(false,this.guard!==i);this.resetGuard()}),100)}else if(this.guard===wn.HOVER_TOOLTIPED_ELEMENT){this.setDisplay(true)}};this.resetGuard=()=>{this.guard=undefined};this.setMgButtonWrapper=t=>{const e="mg-c-tooltip__mg-button-wrapper";const i=t.parentElement.classList.contains(e);if(t.disabled&&!i){const i=document.createElement("div");i.classList.add(e);t.parentNode.insertBefore(i,t);i.appendChild(t);this.setTooltipedElement(i)}else if(!t.disabled&&i){this.element.firstElementChild.replaceWith(t);this.setTooltipedElement(t)}};this.setPopper=t=>{this.popper=Xa(this.tooltipedElement,this.mgTooltipContent,{placement:this.placement,strategy:t,modifiers:[{name:"offset",options:{offset:[0,8]}},{name:"flip",options:{fallbackPlacements:["auto"]}}]})};this.setTooltipedElement=t=>{this.tooltipedElement=t;this.tooltipedElement.addEventListener("focus",(()=>{this.guard=wn.FOCUS;this.setDisplay(true)}));this.tooltipedElement.addEventListener("mouseup",(()=>{this.resetGuard()}));this.tooltipedElement.addEventListener("blur",(()=>{this.resetGuard();this.setDisplay(false)}));this.tooltipedElement.addEventListener("mouseenter",(()=>{this.tooltipMouseListenerAction(wn.HOVER_TOOLTIPED_ELEMENT,"mouseenter",wn.HOVER_TOOLTIP_ELEMENT)}));this.tooltipedElement.addEventListener("mouseleave",(()=>{this.tooltipMouseListenerAction(wn.HOVER_TOOLTIPED_ELEMENT,"mouseleave",wn.HOVER_TOOLTIP_ELEMENT)}))};this.setMgButtonMutationObserver=t=>{new MutationObserver((e=>{if(!e.some((t=>["aria-disabled","disabled"].includes(t.attributeName))))return;if(e.some((t=>t.target.disabled&&t.target.disableOnClick))){this.guard=wn.DISABLE_ON_CLICK}if(this.guard===wn.DISABLE_ON_CLICK)return;this.setMgButtonWrapper(t);this.resetGuard();this.popper.update()})).observe(t,{attributes:true})};this.setAriaDescribedby=t=>{if(!t.hasAttribute("aria-describedby")){this.tooltipedElement.setAttribute("aria-describedby",this.identifier)}else{t.setAttribute("aria-describedby",`${[...new Set([...t.getAttribute("aria-describedby").split(" "),this.identifier])].join(" ")}`)}}}watchIdentifier(t){if(!h(t)){throw new Error(`<mg-tooltip> prop "identifier" value is invalid. Passed value: ${r(t)}.`)}this.renderTooltipContent()}watchMessage(t){if(!l(t)){throw new Error(`<mg-tooltip> prop "message" is required and must be a string. Passed value: ${r(t)}.`)}if(this.mgTooltipContent!==undefined)this.mgTooltipContent.message=t}watchDisplay(t){if(t){this.show()}else{this.hide()}}watchDisabled(t){if(this.hasCustomTabIndex){if(t)this.tooltipedElement.removeAttribute("tabindex");else if(!this.tooltipedElement.hasAttribute("tabindex"))this.tooltipedElement.setAttribute("tabindex","0")}}renderTooltipContent(){if(this.mgTooltipContent!==undefined){this.mgTooltipContent.setAttribute("id",this.identifier)}else{this.mgTooltipContent=document.createElement("mg-tooltip-content");this.mgTooltipContent.setAttribute("slot","content");this.mgTooltipContent.setAttribute("id",this.identifier);const t=document.createElement("div");t.setAttribute("slot","arrow");t.dataset.popperArrow="";this.mgTooltipContent.appendChild(t);this.mgTooltipContent.addEventListener("mouseenter",(()=>{this.tooltipMouseListenerAction(wn.HOVER_TOOLTIP_ELEMENT,"mouseenter",wn.HOVER_TOOLTIPED_ELEMENT)}));this.mgTooltipContent.addEventListener("mouseleave",(()=>{this.tooltipMouseListenerAction(wn.HOVER_TOOLTIP_ELEMENT,"mouseleave",wn.HOVER_TOOLTIPED_ELEMENT)}));this.element.appendChild(this.mgTooltipContent)}}componentWillLoad(){this.windows=z(window);this.renderTooltipContent();this.watchDisabled(this.disabled);this.watchMessage(this.message);this.watchIdentifier(this.identifier)}componentDidLoad(){var t;const e=this.element.querySelector(`*:not(#${this.identifier})`);const i=e.matches(y)?e:(t=e.shadowRoot)===null||t===void 0?void 0:t.querySelector(y);this.setTooltipedElement(i||e);if(zn(e)){this.setMgButtonMutationObserver(e);this.setMgButtonWrapper(e)}if(!this.disabled&&[undefined,null].includes(i)){this.hasCustomTabIndex=true;e.tabIndex=0;e.setAttribute("role","button")}this.setAriaDescribedby(e);this.setPopper(this.element.closest("mg-popover")!==null?"absolute":"fixed");document.addEventListener("keydown",this.handlePressEscape);this.watchDisplay(this.display)}componentDidUpdate(){this.popper.update()}disconnectedCallback(){var t;document.removeEventListener("keydown",this.handlePressEscape);(t=this.windows)===null||t===void 0?void 0:t.forEach((t=>{t.removeEventListener("click",this.handleClickOutside,false);t.removeEventListener("keydown",this.handlePressEscape,false)}))}render(){return e(i,{key:"7868f7704c0f1ccd9d0d67d45eac6aa8901f4d5d"},e("slot",{key:"4f865f9e153c5d01259ca83b81772dce302f5c05"}),e("slot",{key:"2032e81f60a7b7818a7220f0b00cec81ca0a84ed",name:"content"}))}get element(){return a(this)}static get watchers(){return{identifier:["watchIdentifier"],message:["watchMessage"],display:["watchDisplay"],disabled:["watchDisabled"]}}};yn.style=xn;const kn=':host{z-index:1000;display:none;max-width:var(--mg-b-size-floating-element-max-width);box-sizing:border-box;padding:var(--mg-b-size-4) var(--mg-b-size-8);border-radius:var(--mg-c-tooltip-border-radius);background-color:var(--mg-c-tooltip-color-background);color:var(--mg-c-tooltip-color-text);font-family:var(--mg-b-font-family);font-size:var(--mg-b-font-size);font-weight:400;text-align:start}:host([data-show]){display:block}::slotted([slot=arrow]){visibility:hidden}::slotted([slot=arrow])::before{content:"";transform:rotate(45deg);visibility:visible}::slotted([slot=arrow]),::slotted([slot=arrow])::before{position:absolute;z-index:9999;width:var(--mg-b-size-8);height:var(--mg-b-size-8);background-color:var(--mg-c-tooltip-color-background)}:host([data-popper-placement^=top])>::slotted([slot=arrow]){bottom:calc(-1*var(--mg-b-size-4))}:host([data-popper-placement^=bottom])>::slotted([slot=arrow]){top:calc(-1*var(--mg-b-size-4))}:host([data-popper-placement^=left])>::slotted([slot=arrow]){right:calc(-1*var(--mg-b-size-4))}:host([data-popper-placement^=right])>::slotted([slot=arrow]){left:calc(-1*var(--mg-b-size-4))}';const Hn=kn;const Mn=class{constructor(e){t(this,e)}render(){return e(i,{key:"2221de3ca0ef7c9d6e46e24b19c69007fababf81",role:"tooltip"},e("span",{key:"9e14f7f5b3f5e5060ed9f42e8d7259b17575168e",innerHTML:this.message,class:"mg-tooltip-content__message"}),e("slot",{key:"bc083567d77e8f4ffccee98b96036ba8ac494fb6",name:"arrow"}))}};Mn.style=Hn;export{q as mg_action_more,O as mg_badge,U as mg_button,G as mg_card,Y as mg_character_left,Q as mg_details,it as mg_divider,st as mg_form,ut as mg_icon,ft as mg_illustrated_message,Mt as mg_input,At as mg_input_checkbox,Et as mg_input_checkbox_paginated,Pt as mg_input_date,Wt as mg_input_numeric,Nt as mg_input_password,Jt as mg_input_radio,ie as mg_input_select,se as mg_input_text,he as mg_input_textarea,de as mg_input_title,fe as mg_input_toggle,xe as mg_item_more,ke as mg_menu,Ce as mg_menu_item,$e as mg_message,Ie as mg_modal,Se as mg_pagination,Fe as mg_panel,en as mg_popover,on as mg_popover_content,ln as mg_skip_links,un as mg_tabs,bn as mg_tag,yn as mg_tooltip,Mn as mg_tooltip_content};
2
+ //# sourceMappingURL=p-6810a565.entry.js.map