@mgdis/mg-components 6.20.0 → 6.22.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 (205) hide show
  1. package/dist/cjs/{index-TUElr4Wv.js → index-BxB20_Vw.js} +54 -0
  2. package/dist/cjs/{index-Bp6wZzau.js → index-C2viYwrR.js} +1761 -80
  3. package/dist/cjs/loader.cjs.js +2 -2
  4. package/dist/cjs/mg-action-more_37.cjs.entry.js +761 -371
  5. package/dist/cjs/mg-alert.cjs.entry.js +17 -9
  6. package/dist/cjs/mg-breadcrumb.cjs.entry.js +63 -0
  7. package/dist/cjs/mg-components.cjs.js +3 -3
  8. package/dist/cjs/mg-fieldset.cjs.entry.js +24 -7
  9. package/dist/cjs/mg-input-combobox.cjs.entry.js +49 -19
  10. package/dist/cjs/mg-input-file.cjs.entry.js +384 -0
  11. package/dist/cjs/mg-input-rich-text-editor.cjs.entry.js +40096 -15821
  12. package/dist/cjs/{mg-input.conf-D7jmj_lh.js → mg-input.conf-BNpeATnq.js} +7 -0
  13. package/dist/cjs/mg-loader.cjs.entry.js +8 -6
  14. package/dist/cjs/mg-progress.cjs.entry.js +19 -9
  15. package/dist/collection/assets/icons/index.js +1 -1
  16. package/dist/collection/collection-manifest.json +5 -3
  17. package/dist/collection/components/atoms/internals/mg-character-left/mg-character-left.js +1 -1
  18. package/dist/collection/components/atoms/internals/mg-input-title/mg-input-title.js +1 -1
  19. package/dist/collection/components/atoms/mg-card/mg-card.js +1 -1
  20. package/dist/collection/components/atoms/mg-divider/mg-divider.js +1 -1
  21. package/dist/collection/components/atoms/mg-icon/mg-icon.js +2 -2
  22. package/dist/collection/components/atoms/mg-tag/mg-tag.js +1 -1
  23. package/dist/collection/components/atoms/mg-tooltip/mg-tooltip-content/mg-tooltip-content.js +1 -1
  24. package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.js +1 -1
  25. package/dist/collection/components/molecules/inputs/mg-input/mg-input.conf.js +6 -0
  26. package/dist/collection/components/molecules/inputs/mg-input/mg-input.js +1 -1
  27. package/dist/collection/components/molecules/inputs/mg-input-checkbox/MgInputCheckboxList.js +2 -2
  28. package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox-paginated/mg-input-checkbox-paginated.js +2 -2
  29. package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.js +1 -1
  30. package/dist/collection/components/molecules/inputs/mg-input-combobox/mg-input-combobox.js +1 -1
  31. package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.js +1 -1
  32. package/dist/collection/components/molecules/inputs/mg-input-file/mg-input-file.js +877 -0
  33. package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.js +1 -1
  34. package/dist/collection/components/molecules/inputs/mg-input-password/mg-input-password.js +2 -2
  35. package/dist/collection/components/molecules/inputs/mg-input-radio/mg-input-radio.js +1 -1
  36. package/dist/collection/components/molecules/inputs/mg-input-rich-text-editor/editor/custom-properties.scss +212 -0
  37. package/dist/collection/components/molecules/inputs/mg-input-rich-text-editor/editor/editor.conf.js +1 -0
  38. package/dist/collection/components/molecules/inputs/mg-input-rich-text-editor/editor/index.js +300 -94
  39. package/dist/collection/components/molecules/inputs/mg-input-rich-text-editor/mg-input-rich-text-editor.conf.js +29 -0
  40. package/dist/collection/components/molecules/inputs/mg-input-rich-text-editor/mg-input-rich-text-editor.js +163 -53
  41. package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.js +1 -1
  42. package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.js +2 -2
  43. package/dist/collection/components/molecules/inputs/mg-input-textarea/mg-input-textarea.js +1 -1
  44. package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.js +1 -1
  45. package/dist/collection/components/molecules/internals/mg-item-more/mg-item-more.js +3 -36
  46. package/dist/collection/components/molecules/menus/mg-menu/mg-menu.conf.js +0 -4
  47. package/dist/collection/components/molecules/menus/mg-menu/mg-menu.js +21 -43
  48. package/dist/collection/components/molecules/menus/mg-menu-item/mg-menu-item.js +65 -38
  49. package/dist/collection/components/molecules/mg-action-more/mg-action-more.js +2 -2
  50. package/dist/collection/components/molecules/mg-alert/mg-alert.js +1 -1
  51. package/dist/collection/components/molecules/mg-breadcrumb/mg-breadcrumb.conf.js +1 -0
  52. package/dist/collection/components/molecules/mg-breadcrumb/mg-breadcrumb.js +92 -0
  53. package/dist/collection/components/molecules/mg-details/mg-details.js +1 -1
  54. package/dist/collection/components/molecules/mg-fieldset/mg-fieldset.js +12 -3
  55. package/dist/collection/components/molecules/mg-form/mg-form.js +12 -2
  56. package/dist/collection/components/molecules/mg-illustrated-message/mg-illustrated-message.js +1 -1
  57. package/dist/collection/components/molecules/mg-loader/mg-loader.js +1 -1
  58. package/dist/collection/components/molecules/mg-message/mg-message.js +2 -2
  59. package/dist/collection/components/molecules/mg-modal/mg-modal.js +2 -2
  60. package/dist/collection/components/molecules/mg-panel/mg-panel.js +1 -1
  61. package/dist/collection/components/molecules/mg-popover/mg-popover-content/mg-popover-content.js +1 -1
  62. package/dist/collection/components/molecules/mg-popover/mg-popover.js +1 -1
  63. package/dist/collection/components/molecules/mg-progress/mg-progress.js +1 -1
  64. package/dist/collection/components/molecules/mg-skip-links/mg-skip-links.js +1 -1
  65. package/dist/collection/components/molecules/mg-table/mg-table.js +37 -0
  66. package/dist/collection/components/molecules/mg-tabs/mg-tabs.conf.js +0 -4
  67. package/dist/collection/components/molecules/mg-tabs/mg-tabs.js +13 -33
  68. package/dist/collection/locales/en/messages.json +14 -0
  69. package/dist/collection/locales/fr/messages.json +14 -0
  70. package/dist/components/events.utils.js +1 -23
  71. package/dist/components/index.d.ts +2 -0
  72. package/dist/components/index.js +1 -1
  73. package/dist/components/index2.js +1 -408
  74. package/dist/components/index3.js +1 -476
  75. package/dist/components/mg-action-more.js +1 -254
  76. package/dist/components/mg-alert.js +1 -224
  77. package/dist/components/mg-badge.js +1 -6
  78. package/dist/components/mg-badge2.js +1 -113
  79. package/dist/components/mg-breadcrumb.d.ts +11 -0
  80. package/dist/components/mg-breadcrumb.js +1 -0
  81. package/dist/components/mg-button.js +1 -6
  82. package/dist/components/mg-button2.js +1 -275
  83. package/dist/components/mg-card.js +1 -6
  84. package/dist/components/mg-card2.js +1 -92
  85. package/dist/components/mg-character-left.js +1 -6
  86. package/dist/components/mg-character-left2.js +1 -75
  87. package/dist/components/mg-details.js +1 -104
  88. package/dist/components/mg-divider.js +1 -6
  89. package/dist/components/mg-divider2.js +1 -49
  90. package/dist/components/mg-fieldset.js +1 -209
  91. package/dist/components/mg-form.js +1 -302
  92. package/dist/components/mg-icon.js +1 -6
  93. package/dist/components/mg-icon2.js +1 -188
  94. package/dist/components/mg-illustrated-message.js +1 -129
  95. package/dist/components/mg-input-checkbox-paginated.js +1 -6
  96. package/dist/components/mg-input-checkbox-paginated2.js +1 -135
  97. package/dist/components/mg-input-checkbox.js +1 -762
  98. package/dist/components/mg-input-combobox.js +1 -940
  99. package/dist/components/mg-input-date.js +1 -463
  100. package/dist/components/mg-input-file.d.ts +11 -0
  101. package/dist/components/mg-input-file.js +1 -0
  102. package/dist/components/mg-input-numeric.js +1 -592
  103. package/dist/components/mg-input-password.js +1 -360
  104. package/dist/components/mg-input-radio.js +1 -392
  105. package/dist/components/mg-input-rich-text-editor.js +1663 -16797
  106. package/dist/components/mg-input-select.js +1 -6
  107. package/dist/components/mg-input-select2.js +1 -481
  108. package/dist/components/mg-input-text.js +1 -6
  109. package/dist/components/mg-input-text2.js +1 -514
  110. package/dist/components/mg-input-textarea.js +1 -412
  111. package/dist/components/mg-input-title.js +1 -6
  112. package/dist/components/mg-input-title2.js +1 -81
  113. package/dist/components/mg-input-toggle.js +1 -371
  114. package/dist/components/mg-input.conf.js +1 -0
  115. package/dist/components/mg-input.js +1 -6
  116. package/dist/components/mg-input2.js +1 -459
  117. package/dist/components/mg-item-more.js +1 -6
  118. package/dist/components/mg-item-more2.js +1 -505
  119. package/dist/components/mg-loader.js +1 -6
  120. package/dist/components/mg-loader2.js +1 -74
  121. package/dist/components/mg-menu-item.js +1 -6
  122. package/dist/components/mg-menu-item2.js +1 -485
  123. package/dist/components/mg-menu.js +1 -6
  124. package/dist/components/mg-message.js +1 -6
  125. package/dist/components/mg-message2.js +1 -146
  126. package/dist/components/mg-modal.js +1 -184
  127. package/dist/components/mg-pagination.js +1 -234
  128. package/dist/components/mg-panel.js +1 -350
  129. package/dist/components/mg-popover-content.js +1 -6
  130. package/dist/components/mg-popover-content2.js +1 -96
  131. package/dist/components/mg-popover.js +1 -6
  132. package/dist/components/mg-popover2.js +1 -312
  133. package/dist/components/mg-progress.js +1 -123
  134. package/dist/components/mg-skip-links.js +1 -78
  135. package/dist/components/mg-table.js +1 -319
  136. package/dist/components/mg-tabs.js +1 -6
  137. package/dist/components/mg-tabs2.js +1 -315
  138. package/dist/components/mg-tag.js +1 -133
  139. package/dist/components/mg-tooltip-content.js +1 -6
  140. package/dist/components/mg-tooltip-content2.js +1 -42
  141. package/dist/components/mg-tooltip.js +1 -6
  142. package/dist/components/mg-tooltip2.js +1 -421
  143. package/dist/components/popper.js +1 -1790
  144. package/dist/esm/{index-BluNKQ3L.js → index-DFwaH2hS.js} +1761 -80
  145. package/dist/esm/{index-CNX6lq0x.js → index-DSEloqPn.js} +54 -1
  146. package/dist/esm/loader.js +3 -3
  147. package/dist/esm/mg-action-more_37.entry.js +761 -371
  148. package/dist/esm/mg-alert.entry.js +17 -9
  149. package/dist/esm/mg-breadcrumb.entry.js +61 -0
  150. package/dist/esm/mg-components.js +4 -4
  151. package/dist/esm/mg-fieldset.entry.js +24 -7
  152. package/dist/esm/mg-input-combobox.entry.js +49 -19
  153. package/dist/esm/mg-input-file.entry.js +382 -0
  154. package/dist/esm/mg-input-rich-text-editor.entry.js +40083 -15808
  155. package/dist/esm/{mg-input.conf-DDnrE1hD.js → mg-input.conf-C9rmNQIL.js} +7 -1
  156. package/dist/esm/mg-loader.entry.js +8 -6
  157. package/dist/esm/mg-progress.entry.js +19 -9
  158. package/dist/mg-components/locales/en/messages.json +14 -0
  159. package/dist/mg-components/locales/fr/messages.json +14 -0
  160. package/dist/mg-components/mg-components.esm.js +1 -1
  161. package/dist/mg-components/p-0482eb9f.entry.js +1 -0
  162. package/dist/mg-components/{p-7132bca1.entry.js → p-2ee92f38.entry.js} +1 -1
  163. package/dist/mg-components/{p-916dfb6d.entry.js → p-3b653226.entry.js} +1 -1
  164. package/dist/mg-components/p-5745fbea.entry.js +1 -0
  165. package/dist/mg-components/p-C9rmNQIL.js +1 -0
  166. package/dist/mg-components/p-DFwaH2hS.js +2 -0
  167. package/dist/mg-components/p-DSEloqPn.js +1 -0
  168. package/dist/mg-components/p-adec7fcc.entry.js +1 -0
  169. package/dist/mg-components/p-c63f97f0.entry.js +1658 -0
  170. package/dist/mg-components/p-c8c8cfc1.entry.js +1 -0
  171. package/dist/mg-components/p-cc793586.entry.js +1 -0
  172. package/dist/mg-components/p-d5e69c95.entry.js +1 -0
  173. package/dist/types/assets/icons/index.d.ts +2 -0
  174. package/dist/types/components/molecules/inputs/mg-input/mg-input.conf.d.ts +7 -1
  175. package/dist/types/components/molecules/inputs/mg-input-file/mg-input-file.d.ts +210 -0
  176. package/dist/types/components/molecules/inputs/mg-input-rich-text-editor/editor/editor.conf.d.ts +17 -0
  177. package/dist/types/components/molecules/inputs/mg-input-rich-text-editor/editor/index.d.ts +27 -19
  178. package/dist/types/components/molecules/inputs/mg-input-rich-text-editor/mg-input-rich-text-editor.conf.d.ts +3 -0
  179. package/dist/types/components/molecules/inputs/mg-input-rich-text-editor/mg-input-rich-text-editor.d.ts +50 -16
  180. package/dist/types/components/molecules/internals/mg-item-more/mg-item-more.conf.d.ts +0 -5
  181. package/dist/types/components/molecules/internals/mg-item-more/mg-item-more.d.ts +1 -6
  182. package/dist/types/components/molecules/menus/mg-menu/mg-menu.conf.d.ts +2 -10
  183. package/dist/types/components/molecules/menus/mg-menu/mg-menu.d.ts +7 -7
  184. package/dist/types/components/molecules/menus/mg-menu-item/mg-menu-item.d.ts +12 -8
  185. package/dist/types/components/molecules/mg-breadcrumb/mg-breadcrumb.conf.d.ts +18 -0
  186. package/dist/types/components/molecules/mg-breadcrumb/mg-breadcrumb.d.ts +34 -0
  187. package/dist/types/components/molecules/mg-table/mg-table.d.ts +6 -0
  188. package/dist/types/components/molecules/mg-tabs/mg-tabs.conf.d.ts +1 -9
  189. package/dist/types/components/molecules/mg-tabs/mg-tabs.d.ts +4 -4
  190. package/dist/types/components.d.ts +302 -46
  191. package/dist/types/stencil-public-runtime.d.ts +76 -12
  192. package/ide/intellij/web-types.json +483 -51
  193. package/ide/vscode/css-custom-data.json +10 -2
  194. package/ide/vscode/html-custom-data.json +445 -104
  195. package/package.json +24 -23
  196. package/dist/collection/components/molecules/inputs/mg-input-rich-text-editor/editor/editor.scss +0 -1
  197. package/dist/mg-components/p-016bd291.entry.js +0 -1
  198. package/dist/mg-components/p-186a6139.entry.js +0 -1
  199. package/dist/mg-components/p-BluNKQ3L.js +0 -2
  200. package/dist/mg-components/p-CNX6lq0x.js +0 -1
  201. package/dist/mg-components/p-DDnrE1hD.js +0 -1
  202. package/dist/mg-components/p-cd061b38.entry.js +0 -1
  203. package/dist/mg-components/p-d2c72f09.entry.js +0 -1
  204. package/dist/mg-components/p-d5a276eb.entry.js +0 -1
  205. package/ide/vscode/custom.css-data.json +0 -425
@@ -19,19 +19,292 @@ function _interopNamespace(e) {
19
19
  }
20
20
 
21
21
  const NAMESPACE = 'mg-components';
22
- const BUILD = /* mg-components */ { hydratedSelectorName: "hydrated", lazyLoad: true, propChangeCallback: true, slotRelocation: true, updatable: true};
22
+ const BUILD = /* mg-components */ { hotModuleReplacement: false, hydratedSelectorName: "hydrated", lazyLoad: true, propChangeCallback: true, slotRelocation: true, state: true, updatable: true};
23
23
 
24
24
  const globalScripts = () => {};
25
25
  const globalStyles = ":root{--mg-b-size-4:0.4rem;--mg-b-size-8:0.8rem;--mg-b-size-12:1.2rem;--mg-b-size-16:1.6rem;--mg-b-size-20:2rem;--mg-b-size-24:2.4rem;--mg-b-size-32:3.2rem;--mg-b-size-40:4rem;--mg-b-size-48:4.8rem;--mg-b-size-56:5.6rem;--mg-b-size-64:6.4rem;--mg-b-size-72:7.2rem;--mg-b-size-120:12rem;--mg-b-size-border:0.1rem;--mg-b-size-radius:var(--mg-b-size-4);--mg-b-size-floating-element-max-width:40rem;--mg-b-size-min-height:3.5rem;--mg-b-spacing-actions:var(--mg-b-size-8);--mg-b-color-blue-10:rgb(227, 244, 255);--mg-b-color-blue-20:rgb(209, 237, 255);--mg-b-color-blue-30:rgb(166, 219, 255);--mg-b-color-blue-40:rgb(106, 195, 255);--mg-b-color-blue-50:rgb(64, 179, 255);--mg-b-color-blue-60:rgb(22, 162, 255);--mg-b-color-blue-70:rgb(0, 132, 220);--mg-b-color-blue-80:rgb(0, 94, 156);--mg-b-color-blue-90:rgb(0, 67, 111);--mg-b-color-blue-100:rgb(0, 39, 66);--mg-b-color-green-10:rgb(234, 251, 244);--mg-b-color-green-20:rgb(212, 247, 234);--mg-b-color-green-30:rgb(181, 240, 219);--mg-b-color-green-40:rgb(144, 232, 202);--mg-b-color-green-50:rgb(97, 223, 179);--mg-b-color-green-60:rgb(50, 213, 156);--mg-b-color-green-70:rgb(46, 194, 142);--mg-b-color-green-80:rgb(36, 151, 111);--mg-b-color-green-90:rgb(21, 89, 66);--mg-b-color-green-100:rgb(13, 54, 40);--mg-b-color-red-10:rgb(251, 233, 234);--mg-b-color-red-20:rgb(248, 216, 217);--mg-b-color-red-30:rgb(242, 174, 178);--mg-b-color-red-40:rgb(236, 134, 139);--mg-b-color-red-50:rgb(229, 96, 103);--mg-b-color-red-60:rgb(221, 42, 52);--mg-b-color-red-70:rgb(219, 31, 41);--mg-b-color-red-80:rgb(152, 21, 28);--mg-b-color-red-90:rgb(120, 17, 23);--mg-b-color-red-100:rgb(92, 13, 13);--mg-b-color-yellow-10:rgb(255, 247, 230);--mg-b-color-yellow-20:rgb(255, 240, 207);--mg-b-color-yellow-30:rgb(255, 226, 162);--mg-b-color-yellow-40:rgb(255, 212, 118);--mg-b-color-yellow-50:rgb(255, 195, 62);--mg-b-color-yellow-60:rgb(232, 177, 56);--mg-b-color-yellow-70:rgb(181, 138, 44);--mg-b-color-yellow-80:rgb(140, 107, 34);--mg-b-color-yellow-90:rgb(86, 66, 21);--mg-b-color-yellow-100:rgb(53, 41, 13);--mg-b-color-neutral-0:rgb(255, 255, 255);--mg-b-color-neutral-10:rgb(250, 251, 251);--mg-b-color-neutral-20:rgb(236, 238, 238);--mg-b-color-neutral-30:rgb(225, 227, 228);--mg-b-color-neutral-40:rgb(197, 201, 203);--mg-b-color-neutral-50:rgb(182, 188, 190);--mg-b-color-neutral-60:rgb(157, 165, 167);--mg-b-color-neutral-70:rgb(129, 139, 142);--mg-b-color-neutral-80:rgb(101, 113, 117);--mg-b-color-neutral-90:rgb(75, 89, 94);--mg-b-color-neutral-100:rgb(47, 64, 69);--mg-b-color-neutral-110:rgb(21, 40, 46);--mg-b-color-neutral-120:rgb(5, 9, 11);--mg-b-color-dark:var(--mg-b-color-neutral-110);--mg-b-color-light:var(--mg-b-color-neutral-0);--mg-b-color-danger:var(--mg-b-color-red-70);--mg-b-color-text-on-danger:var(--mg-b-color-light);--mg-b-color-info:var(--mg-b-color-blue-80);--mg-b-color-text-on-info:var(--mg-b-color-light);--mg-b-color-success:var(--mg-b-color-green-60);--mg-b-color-text-on-success:var(--mg-b-color-dark);--mg-b-color-warning:var(--mg-b-color-yellow-50);--mg-b-color-text-on-warning:var(--mg-b-color-dark);--mg-b-color-app:var(--mg-b-color-blue-80);--mg-b-color-primary:var(--mg-b-color-neutral-110);--mg-b-color-text-on-primary:var(--mg-b-color-light);--mg-b-color-secondary:var(--mg-b-color-neutral-10);--mg-b-color-text-on-secondary:var(--mg-b-color-dark);--mg-b-font-size:1.3rem;--mg-b-font-size-small:1.17rem;--mg-b-font-size-h1:calc(var(--mg-b-font-size) * 1.85);--mg-b-font-size-h2:calc(var(--mg-b-font-size) * 1.65);--mg-b-font-size-h3:calc(var(--mg-b-font-size) * 1.35);--mg-b-font-size-h4:calc(var(--mg-b-font-size) * 1.2);--mg-b-font-size-h5:calc(var(--mg-b-font-size) * 1.1);--mg-b-font-size-h6:calc(var(--mg-b-font-size) * 0.8);--mg-b-small-font-size:0.9em;--mg-b-font-family:'Open Sans', sans-serif;--mg-b-font-family-heading:var(--mg-b-font-family);--mg-b-line-height:1.4;--mg-b-box-shadow:0 0.3rem 0.8rem 0 color-mix(in srgb, var(--mg-b-color-dark), transparent 85%);--mg-b-opacity-element-disabled:0.4}:root{--mg-c-badge-size:var(--mg-b-size-16);--mg-c-badge-font-size:var(--mg-b-font-size-small);--mg-c-button-border-radius:var(--mg-b-size-radius);--mg-c-button-icon-border-radius:var(--mg-b-size-min-height);--mg-c-button-color-background-danger:var(--mg-b-color-danger);--mg-c-button-color-border-danger:var(--mg-b-color-red-80);--mg-c-button-color-gradient-danger:var(--mg-b-color-red-80);--mg-c-button-color-text-danger:var(--mg-b-color-text-on-danger);--mg-c-button-color-background-info:var(--mg-b-color-info);--mg-c-button-color-border-info:var(--mg-b-color-blue-90);--mg-c-button-color-gradient-info:var(--mg-b-color-blue-90);--mg-c-button-color-text-info:var(--mg-b-color-text-on-info);--mg-c-button-color-background-success:var(--mg-b-color-success);--mg-c-button-color-border-success:var(--mg-b-color-green-70);--mg-c-button-color-gradient-success:var(--mg-b-color-green-70);--mg-c-button-color-text-success:var(--mg-b-color-text-on-success);--mg-c-button-color-background-warning:var(--mg-b-color-warning);--mg-c-button-color-border-warning:var(--mg-b-color-yellow-60);--mg-c-button-color-gradient-warning:var(--mg-b-color-yellow-60);--mg-c-button-color-text-warning:var(--mg-b-color-text-on-warning);--mg-c-button-color-background-primary:var(--mg-b-color-primary);--mg-c-button-color-border-primary:var(--mg-b-color-neutral-120);--mg-c-button-color-gradient-primary:var(--mg-b-color-neutral-120);--mg-c-button-color-text-primary:var(--mg-b-color-text-on-primary);--mg-c-button-color-background-secondary:var(--mg-b-color-secondary);--mg-c-button-color-border-secondary:var(--mg-b-color-neutral-20);--mg-c-button-color-gradient-secondary:var(--mg-b-color-neutral-20);--mg-c-button-color-text-secondary:var(--mg-b-color-text-on-secondary);--mg-c-button-color-background-danger-alt:var(--mg-b-color-neutral-10);--mg-c-button-color-border-danger-alt:var(--mg-b-color-neutral-20);--mg-c-button-color-gradient-danger-alt:var(--mg-b-color-neutral-20);--mg-c-button-color-text-danger-alt:var(--mg-b-color-danger);--mg-c-card-spacing-default:var(--mg-b-size-16);--mg-c-card-border-radius-default:var(--mg-b-size-12);--mg-c-card-color-background-default:var(--mg-b-color-light);--mg-c-card-border-default:var(--mg-b-size-border) solid var(--mg-b-color-neutral-30);--mg-c-card-box-shadow-default:var(--mg-b-box-shadow);--mg-c-divider-color-background:color-mix(in srgb, var(--mg-b-color-dark), transparent 85%);--mg-c-divider-thickness:var(--mg-b-size-border);--mg-c-divider-spacing-vertical:var(--mg-b-size-40);--mg-c-icon-border-radius:50%;--mg-c-tag-height:var(--mg-b-size-24);--mg-c-tag-border-radius:var(--mg-b-size-radius);--mg-c-tag-font-size:var(--mg-b-font-size-small);--mg-c-tooltip-border-radius:var(--mg-b-size-radius);--mg-c-tooltip-color-background:var(--mg-b-color-dark);--mg-c-tooltip-color-text:var(--mg-b-color-light);--mg-c-details-spacing:var(--mg-b-size-8);--mg-c-illustrated-message-spacing-vertical:var(--mg-b-size-40);--mg-c-input-border-width:var(--mg-b-size-border);--mg-c-input-border-radius:var(--mg-b-size-radius);--mg-c-input-color-border:rgb(181 194 201);--mg-c-input-placeholder-color-text:rgb(181 194 201);--mg-c-input-color-icon:rgb(181 194 201);--mg-c-input-color-box-shadow-focus:rgb(0 221 255 / 50%);--mg-c-input-error-color-background:color-mix(in srgb, var(--mg-b-color-danger), white 95%);--mg-c-input-toggle-border-radius-ratio:2;--mg-c-input-check-size:var(--mg-b-size-16);--mg-c-menu-item-color:var(--mg-b-color-app);--mg-c-message-border-radius:var(--mg-b-size-radius);--mg-c-modal-border-radius:var(--mg-c-card-border-radius-default);--mg-c-modal-title-font-size:var(--mg-b-font-size-h3);--mg-c-panel-border-radius:var(--mg-c-card-border-radius-default);--mg-c-panel-box-shadow:var(--mg-b-box-shadow);--mg-c-panel-content-spacing:var(--mg-b-size-16);--mg-c-popover-border-radius:var(--mg-c-card-border-radius-default);--mg-c-popover-color-background:var(--mg-b-color-light);--mg-c-popover-color-text:var(--mg-b-color-dark);--mg-c-popover-title-font-size:var(--mg-b-font-size-h5);--mg-c-popover-max-width:var(--mg-b-size-floating-element-max-width);--mg-c-progress-size:var(--mg-b-size-8);--mg-c-progress-border-color:var(--mg-b-color-neutral-80);--mg-c-progress-bar-color-background:var(--mg-b-color-neutral-30);--mg-c-progress-fill-color-background:var(--mg-b-color-app);--mg-c-tabs-color:var(--mg-b-color-app)}html{font-size:62.5%}body{font-family:var(--mg-b-font-family);font-size:var(--mg-b-font-size);-webkit-font-smoothing:antialiased;line-height:var(--mg-b-line-height)}:root{--mg-b-font-family:system-ui, sans-serif}";
26
26
 
27
27
  /*
28
- Stencil Client Platform v4.38.0 | MIT Licensed | https://stenciljs.com
28
+ Stencil Client Platform v4.40.1 | MIT Licensed | https://stenciljs.com
29
29
  */
30
+ var __create = Object.create;
30
31
  var __defProp = Object.defineProperty;
32
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
33
+ var __getOwnPropNames = Object.getOwnPropertyNames;
34
+ var __getProtoOf = Object.getPrototypeOf;
35
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
36
+ var __typeError = (msg) => {
37
+ throw TypeError(msg);
38
+ };
39
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
40
+ var __commonJS = (cb, mod) => function __require() {
41
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
42
+ };
31
43
  var __export = (target, all) => {
32
44
  for (var name in all)
33
45
  __defProp(target, name, { get: all[name], enumerable: true });
34
46
  };
47
+ var __copyProps = (to, from, except, desc) => {
48
+ if (from && typeof from === "object" || typeof from === "function") {
49
+ for (let key of __getOwnPropNames(from))
50
+ if (!__hasOwnProp.call(to, key) && key !== except)
51
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
52
+ }
53
+ return to;
54
+ };
55
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
56
+ // If the importer is in node compatibility mode or this is not an ESM
57
+ // file that has been converted to a CommonJS file using a Babel-
58
+ // compatible transform (i.e. "__esModule" has not been set), then set
59
+ // "default" to the CommonJS "module.exports" for node compatibility.
60
+ __defProp(target, "default", { value: mod, enumerable: true }) ,
61
+ mod
62
+ ));
63
+ var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
64
+ var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
65
+ var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
66
+ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
67
+ var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), member.set(obj, value), value);
68
+ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
69
+
70
+ // node_modules/balanced-match/index.js
71
+ var require_balanced_match = __commonJS({
72
+ "node_modules/balanced-match/index.js"(exports, module) {
73
+ module.exports = balanced;
74
+ function balanced(a, b, str) {
75
+ if (a instanceof RegExp) a = maybeMatch(a, str);
76
+ if (b instanceof RegExp) b = maybeMatch(b, str);
77
+ var r = range(a, b, str);
78
+ return r && {
79
+ start: r[0],
80
+ end: r[1],
81
+ pre: str.slice(0, r[0]),
82
+ body: str.slice(r[0] + a.length, r[1]),
83
+ post: str.slice(r[1] + b.length)
84
+ };
85
+ }
86
+ function maybeMatch(reg, str) {
87
+ var m = str.match(reg);
88
+ return m ? m[0] : null;
89
+ }
90
+ balanced.range = range;
91
+ function range(a, b, str) {
92
+ var begs, beg, left, right, result;
93
+ var ai = str.indexOf(a);
94
+ var bi = str.indexOf(b, ai + 1);
95
+ var i2 = ai;
96
+ if (ai >= 0 && bi > 0) {
97
+ if (a === b) {
98
+ return [ai, bi];
99
+ }
100
+ begs = [];
101
+ left = str.length;
102
+ while (i2 >= 0 && !result) {
103
+ if (i2 == ai) {
104
+ begs.push(i2);
105
+ ai = str.indexOf(a, i2 + 1);
106
+ } else if (begs.length == 1) {
107
+ result = [begs.pop(), bi];
108
+ } else {
109
+ beg = begs.pop();
110
+ if (beg < left) {
111
+ left = beg;
112
+ right = bi;
113
+ }
114
+ bi = str.indexOf(b, i2 + 1);
115
+ }
116
+ i2 = ai < bi && ai >= 0 ? ai : bi;
117
+ }
118
+ if (begs.length) {
119
+ result = [left, right];
120
+ }
121
+ }
122
+ return result;
123
+ }
124
+ }
125
+ });
126
+
127
+ // node_modules/brace-expansion/index.js
128
+ var require_brace_expansion = __commonJS({
129
+ "node_modules/brace-expansion/index.js"(exports, module) {
130
+ var balanced = require_balanced_match();
131
+ module.exports = expandTop;
132
+ var escSlash = "\0SLASH" + Math.random() + "\0";
133
+ var escOpen = "\0OPEN" + Math.random() + "\0";
134
+ var escClose = "\0CLOSE" + Math.random() + "\0";
135
+ var escComma = "\0COMMA" + Math.random() + "\0";
136
+ var escPeriod = "\0PERIOD" + Math.random() + "\0";
137
+ function numeric(str) {
138
+ return parseInt(str, 10) == str ? parseInt(str, 10) : str.charCodeAt(0);
139
+ }
140
+ function escapeBraces(str) {
141
+ return str.split("\\\\").join(escSlash).split("\\{").join(escOpen).split("\\}").join(escClose).split("\\,").join(escComma).split("\\.").join(escPeriod);
142
+ }
143
+ function unescapeBraces(str) {
144
+ return str.split(escSlash).join("\\").split(escOpen).join("{").split(escClose).join("}").split(escComma).join(",").split(escPeriod).join(".");
145
+ }
146
+ function parseCommaParts(str) {
147
+ if (!str)
148
+ return [""];
149
+ var parts = [];
150
+ var m = balanced("{", "}", str);
151
+ if (!m)
152
+ return str.split(",");
153
+ var pre = m.pre;
154
+ var body = m.body;
155
+ var post = m.post;
156
+ var p = pre.split(",");
157
+ p[p.length - 1] += "{" + body + "}";
158
+ var postParts = parseCommaParts(post);
159
+ if (post.length) {
160
+ p[p.length - 1] += postParts.shift();
161
+ p.push.apply(p, postParts);
162
+ }
163
+ parts.push.apply(parts, p);
164
+ return parts;
165
+ }
166
+ function expandTop(str) {
167
+ if (!str)
168
+ return [];
169
+ if (str.substr(0, 2) === "{}") {
170
+ str = "\\{\\}" + str.substr(2);
171
+ }
172
+ return expand2(escapeBraces(str), true).map(unescapeBraces);
173
+ }
174
+ function embrace(str) {
175
+ return "{" + str + "}";
176
+ }
177
+ function isPadded(el) {
178
+ return /^-?0\d/.test(el);
179
+ }
180
+ function lte(i2, y) {
181
+ return i2 <= y;
182
+ }
183
+ function gte(i2, y) {
184
+ return i2 >= y;
185
+ }
186
+ function expand2(str, isTop) {
187
+ var expansions = [];
188
+ var m = balanced("{", "}", str);
189
+ if (!m) return [str];
190
+ var pre = m.pre;
191
+ var post = m.post.length ? expand2(m.post, false) : [""];
192
+ if (/\$$/.test(m.pre)) {
193
+ for (var k = 0; k < post.length; k++) {
194
+ var expansion = pre + "{" + m.body + "}" + post[k];
195
+ expansions.push(expansion);
196
+ }
197
+ } else {
198
+ var isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body);
199
+ var isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body);
200
+ var isSequence = isNumericSequence || isAlphaSequence;
201
+ var isOptions = m.body.indexOf(",") >= 0;
202
+ if (!isSequence && !isOptions) {
203
+ if (m.post.match(/,(?!,).*\}/)) {
204
+ str = m.pre + "{" + m.body + escClose + m.post;
205
+ return expand2(str);
206
+ }
207
+ return [str];
208
+ }
209
+ var n;
210
+ if (isSequence) {
211
+ n = m.body.split(/\.\./);
212
+ } else {
213
+ n = parseCommaParts(m.body);
214
+ if (n.length === 1) {
215
+ n = expand2(n[0], false).map(embrace);
216
+ if (n.length === 1) {
217
+ return post.map(function(p) {
218
+ return m.pre + n[0] + p;
219
+ });
220
+ }
221
+ }
222
+ }
223
+ var N;
224
+ if (isSequence) {
225
+ var x = numeric(n[0]);
226
+ var y = numeric(n[1]);
227
+ var width = Math.max(n[0].length, n[1].length);
228
+ var incr = n.length == 3 ? Math.abs(numeric(n[2])) : 1;
229
+ var test = lte;
230
+ var reverse = y < x;
231
+ if (reverse) {
232
+ incr *= -1;
233
+ test = gte;
234
+ }
235
+ var pad = n.some(isPadded);
236
+ N = [];
237
+ for (var i2 = x; test(i2, y); i2 += incr) {
238
+ var c;
239
+ if (isAlphaSequence) {
240
+ c = String.fromCharCode(i2);
241
+ if (c === "\\")
242
+ c = "";
243
+ } else {
244
+ c = String(i2);
245
+ if (pad) {
246
+ var need = width - c.length;
247
+ if (need > 0) {
248
+ var z = new Array(need + 1).join("0");
249
+ if (i2 < 0)
250
+ c = "-" + z + c.slice(1);
251
+ else
252
+ c = z + c;
253
+ }
254
+ }
255
+ }
256
+ N.push(c);
257
+ }
258
+ } else {
259
+ N = [];
260
+ for (var j = 0; j < n.length; j++) {
261
+ N.push.apply(N, expand2(n[j], false));
262
+ }
263
+ }
264
+ for (var j = 0; j < N.length; j++) {
265
+ for (var k = 0; k < post.length; k++) {
266
+ var expansion = pre + N[j] + post[k];
267
+ if (!isTop || isSequence || expansion)
268
+ expansions.push(expansion);
269
+ }
270
+ }
271
+ }
272
+ return expansions;
273
+ }
274
+ }
275
+ });
276
+ var reWireGetterSetter = (instance, hostRef) => {
277
+ var _a;
278
+ const cmpMeta = hostRef.$cmpMeta$;
279
+ const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
280
+ members.map(([memberName, [memberFlags]]) => {
281
+ if ((memberFlags & 31 /* Prop */ || memberFlags & 32 /* State */)) {
282
+ const ogValue = instance[memberName];
283
+ const ogDescriptor = getPropertyDescriptor(Object.getPrototypeOf(instance), memberName) || Object.getOwnPropertyDescriptor(instance, memberName);
284
+ if (ogDescriptor) {
285
+ Object.defineProperty(instance, memberName, {
286
+ get() {
287
+ return ogDescriptor.get.call(this);
288
+ },
289
+ set(newValue) {
290
+ ogDescriptor.set.call(this, newValue);
291
+ },
292
+ configurable: true,
293
+ enumerable: true
294
+ });
295
+ }
296
+ instance[memberName] = hostRef.$instanceValues$.has(memberName) ? hostRef.$instanceValues$.get(memberName) : ogValue;
297
+ }
298
+ });
299
+ };
300
+ function getPropertyDescriptor(obj, memberName) {
301
+ while (obj) {
302
+ const desc = Object.getOwnPropertyDescriptor(obj, memberName);
303
+ if (desc == null ? void 0 : desc.get) return desc;
304
+ obj = Object.getPrototypeOf(obj);
305
+ }
306
+ return void 0;
307
+ }
35
308
 
36
309
  // src/client/client-host-ref.ts
37
310
  var getHostRef = (ref) => {
@@ -44,6 +317,9 @@ var registerInstance = (lazyInstance, hostRef) => {
44
317
  if (!hostRef) return;
45
318
  lazyInstance.__stencil__getHostRef = () => hostRef;
46
319
  hostRef.$lazyInstance$ = lazyInstance;
320
+ if (hostRef.$cmpMeta$.$flags$ & 512 /* hasModernPropertyDecls */ && (BUILD.state)) {
321
+ reWireGetterSetter(lazyInstance, hostRef);
322
+ }
47
323
  };
48
324
  var registerHost = (hostElement, cmpMeta) => {
49
325
  const hostRef = {
@@ -95,10 +371,18 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
95
371
  return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
96
372
  /* webpackMode: "lazy" */
97
373
  './mg-fieldset.cjs.entry.js')); }).then(processMod, consoleError);
374
+ case 'mg-breadcrumb.cjs':
375
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
376
+ /* webpackMode: "lazy" */
377
+ './mg-breadcrumb.cjs.entry.js')); }).then(processMod, consoleError);
98
378
  case 'mg-input-combobox.cjs':
99
379
  return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
100
380
  /* webpackMode: "lazy" */
101
381
  './mg-input-combobox.cjs.entry.js')); }).then(processMod, consoleError);
382
+ case 'mg-input-file.cjs':
383
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
384
+ /* webpackMode: "lazy" */
385
+ './mg-input-file.cjs.entry.js')); }).then(processMod, consoleError);
102
386
  case 'mg-loader.cjs':
103
387
  return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
104
388
  /* webpackMode: "lazy" */
@@ -175,6 +459,9 @@ var supportsListenerOptions = /* @__PURE__ */ (() => {
175
459
  var promiseResolve = (v) => Promise.resolve(v);
176
460
  var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
177
461
  try {
462
+ if (!win.document.adoptedStyleSheets) {
463
+ return false;
464
+ }
178
465
  new CSSStyleSheet();
179
466
  return typeof new CSSStyleSheet().replaceSync === "function";
180
467
  } catch (e) {
@@ -225,6 +512,1359 @@ var isComplexType = (o) => {
225
512
  return o === "object" || o === "function";
226
513
  };
227
514
 
515
+ // node_modules/minimatch/dist/esm/index.js
516
+ var import_brace_expansion = __toESM(require_brace_expansion());
517
+
518
+ // node_modules/minimatch/dist/esm/assert-valid-pattern.js
519
+ var MAX_PATTERN_LENGTH = 1024 * 64;
520
+ var assertValidPattern = (pattern) => {
521
+ if (typeof pattern !== "string") {
522
+ throw new TypeError("invalid pattern");
523
+ }
524
+ if (pattern.length > MAX_PATTERN_LENGTH) {
525
+ throw new TypeError("pattern is too long");
526
+ }
527
+ };
528
+
529
+ // node_modules/minimatch/dist/esm/brace-expressions.js
530
+ var posixClasses = {
531
+ "[:alnum:]": ["\\p{L}\\p{Nl}\\p{Nd}", true],
532
+ "[:alpha:]": ["\\p{L}\\p{Nl}", true],
533
+ "[:ascii:]": ["\\x00-\\x7f", false],
534
+ "[:blank:]": ["\\p{Zs}\\t", true],
535
+ "[:cntrl:]": ["\\p{Cc}", true],
536
+ "[:digit:]": ["\\p{Nd}", true],
537
+ "[:graph:]": ["\\p{Z}\\p{C}", true, true],
538
+ "[:lower:]": ["\\p{Ll}", true],
539
+ "[:print:]": ["\\p{C}", true],
540
+ "[:punct:]": ["\\p{P}", true],
541
+ "[:space:]": ["\\p{Z}\\t\\r\\n\\v\\f", true],
542
+ "[:upper:]": ["\\p{Lu}", true],
543
+ "[:word:]": ["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}", true],
544
+ "[:xdigit:]": ["A-Fa-f0-9", false]
545
+ };
546
+ var braceEscape = (s) => s.replace(/[[\]\\-]/g, "\\$&");
547
+ var regexpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
548
+ var rangesToString = (ranges) => ranges.join("");
549
+ var parseClass = (glob, position) => {
550
+ const pos = position;
551
+ if (glob.charAt(pos) !== "[") {
552
+ throw new Error("not in a brace expression");
553
+ }
554
+ const ranges = [];
555
+ const negs = [];
556
+ let i2 = pos + 1;
557
+ let sawStart = false;
558
+ let uflag = false;
559
+ let escaping = false;
560
+ let negate = false;
561
+ let endPos = pos;
562
+ let rangeStart = "";
563
+ WHILE: while (i2 < glob.length) {
564
+ const c = glob.charAt(i2);
565
+ if ((c === "!" || c === "^") && i2 === pos + 1) {
566
+ negate = true;
567
+ i2++;
568
+ continue;
569
+ }
570
+ if (c === "]" && sawStart && !escaping) {
571
+ endPos = i2 + 1;
572
+ break;
573
+ }
574
+ sawStart = true;
575
+ if (c === "\\") {
576
+ if (!escaping) {
577
+ escaping = true;
578
+ i2++;
579
+ continue;
580
+ }
581
+ }
582
+ if (c === "[" && !escaping) {
583
+ for (const [cls, [unip, u, neg]] of Object.entries(posixClasses)) {
584
+ if (glob.startsWith(cls, i2)) {
585
+ if (rangeStart) {
586
+ return ["$.", false, glob.length - pos, true];
587
+ }
588
+ i2 += cls.length;
589
+ if (neg)
590
+ negs.push(unip);
591
+ else
592
+ ranges.push(unip);
593
+ uflag = uflag || u;
594
+ continue WHILE;
595
+ }
596
+ }
597
+ }
598
+ escaping = false;
599
+ if (rangeStart) {
600
+ if (c > rangeStart) {
601
+ ranges.push(braceEscape(rangeStart) + "-" + braceEscape(c));
602
+ } else if (c === rangeStart) {
603
+ ranges.push(braceEscape(c));
604
+ }
605
+ rangeStart = "";
606
+ i2++;
607
+ continue;
608
+ }
609
+ if (glob.startsWith("-]", i2 + 1)) {
610
+ ranges.push(braceEscape(c + "-"));
611
+ i2 += 2;
612
+ continue;
613
+ }
614
+ if (glob.startsWith("-", i2 + 1)) {
615
+ rangeStart = c;
616
+ i2 += 2;
617
+ continue;
618
+ }
619
+ ranges.push(braceEscape(c));
620
+ i2++;
621
+ }
622
+ if (endPos < i2) {
623
+ return ["", false, 0, false];
624
+ }
625
+ if (!ranges.length && !negs.length) {
626
+ return ["$.", false, glob.length - pos, true];
627
+ }
628
+ if (negs.length === 0 && ranges.length === 1 && /^\\?.$/.test(ranges[0]) && !negate) {
629
+ const r = ranges[0].length === 2 ? ranges[0].slice(-1) : ranges[0];
630
+ return [regexpEscape(r), false, endPos - pos, false];
631
+ }
632
+ const sranges = "[" + (negate ? "^" : "") + rangesToString(ranges) + "]";
633
+ const snegs = "[" + (negate ? "" : "^") + rangesToString(negs) + "]";
634
+ const comb = ranges.length && negs.length ? "(" + sranges + "|" + snegs + ")" : ranges.length ? sranges : snegs;
635
+ return [comb, uflag, endPos - pos, true];
636
+ };
637
+
638
+ // node_modules/minimatch/dist/esm/unescape.js
639
+ var unescape = (s, { windowsPathsNoEscape = false } = {}) => {
640
+ return windowsPathsNoEscape ? s.replace(/\[([^\/\\])\]/g, "$1") : s.replace(/((?!\\).|^)\[([^\/\\])\]/g, "$1$2").replace(/\\([^\/])/g, "$1");
641
+ };
642
+
643
+ // node_modules/minimatch/dist/esm/ast.js
644
+ var types = /* @__PURE__ */ new Set(["!", "?", "+", "*", "@"]);
645
+ var isExtglobType = (c) => types.has(c);
646
+ var startNoTraversal = "(?!(?:^|/)\\.\\.?(?:$|/))";
647
+ var startNoDot = "(?!\\.)";
648
+ var addPatternStart = /* @__PURE__ */ new Set(["[", "."]);
649
+ var justDots = /* @__PURE__ */ new Set(["..", "."]);
650
+ var reSpecials = new Set("().*{}+?[]^$\\!");
651
+ var regExpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
652
+ var qmark = "[^/]";
653
+ var star = qmark + "*?";
654
+ var starNoEmpty = qmark + "+?";
655
+ var _root, _hasMagic, _uflag, _parts, _parent, _parentIndex, _negs, _filledNegs, _options, _toString, _emptyExt, _AST_instances, fillNegs_fn, _AST_static, parseAST_fn, partsToRegExp_fn, parseGlob_fn;
656
+ var _AST = class _AST {
657
+ constructor(type, parent, options = {}) {
658
+ __privateAdd(this, _AST_instances);
659
+ __publicField(this, "type");
660
+ __privateAdd(this, _root);
661
+ __privateAdd(this, _hasMagic);
662
+ __privateAdd(this, _uflag, false);
663
+ __privateAdd(this, _parts, []);
664
+ __privateAdd(this, _parent);
665
+ __privateAdd(this, _parentIndex);
666
+ __privateAdd(this, _negs);
667
+ __privateAdd(this, _filledNegs, false);
668
+ __privateAdd(this, _options);
669
+ __privateAdd(this, _toString);
670
+ // set to true if it's an extglob with no children
671
+ // (which really means one child of '')
672
+ __privateAdd(this, _emptyExt, false);
673
+ this.type = type;
674
+ if (type)
675
+ __privateSet(this, _hasMagic, true);
676
+ __privateSet(this, _parent, parent);
677
+ __privateSet(this, _root, __privateGet(this, _parent) ? __privateGet(__privateGet(this, _parent), _root) : this);
678
+ __privateSet(this, _options, __privateGet(this, _root) === this ? options : __privateGet(__privateGet(this, _root), _options));
679
+ __privateSet(this, _negs, __privateGet(this, _root) === this ? [] : __privateGet(__privateGet(this, _root), _negs));
680
+ if (type === "!" && !__privateGet(__privateGet(this, _root), _filledNegs))
681
+ __privateGet(this, _negs).push(this);
682
+ __privateSet(this, _parentIndex, __privateGet(this, _parent) ? __privateGet(__privateGet(this, _parent), _parts).length : 0);
683
+ }
684
+ get hasMagic() {
685
+ if (__privateGet(this, _hasMagic) !== void 0)
686
+ return __privateGet(this, _hasMagic);
687
+ for (const p of __privateGet(this, _parts)) {
688
+ if (typeof p === "string")
689
+ continue;
690
+ if (p.type || p.hasMagic)
691
+ return __privateSet(this, _hasMagic, true);
692
+ }
693
+ return __privateGet(this, _hasMagic);
694
+ }
695
+ // reconstructs the pattern
696
+ toString() {
697
+ if (__privateGet(this, _toString) !== void 0)
698
+ return __privateGet(this, _toString);
699
+ if (!this.type) {
700
+ return __privateSet(this, _toString, __privateGet(this, _parts).map((p) => String(p)).join(""));
701
+ } else {
702
+ return __privateSet(this, _toString, this.type + "(" + __privateGet(this, _parts).map((p) => String(p)).join("|") + ")");
703
+ }
704
+ }
705
+ push(...parts) {
706
+ for (const p of parts) {
707
+ if (p === "")
708
+ continue;
709
+ if (typeof p !== "string" && !(p instanceof _AST && __privateGet(p, _parent) === this)) {
710
+ throw new Error("invalid part: " + p);
711
+ }
712
+ __privateGet(this, _parts).push(p);
713
+ }
714
+ }
715
+ toJSON() {
716
+ var _a;
717
+ const ret = this.type === null ? __privateGet(this, _parts).slice().map((p) => typeof p === "string" ? p : p.toJSON()) : [this.type, ...__privateGet(this, _parts).map((p) => p.toJSON())];
718
+ if (this.isStart() && !this.type)
719
+ ret.unshift([]);
720
+ if (this.isEnd() && (this === __privateGet(this, _root) || __privateGet(__privateGet(this, _root), _filledNegs) && ((_a = __privateGet(this, _parent)) == null ? void 0 : _a.type) === "!")) {
721
+ ret.push({});
722
+ }
723
+ return ret;
724
+ }
725
+ isStart() {
726
+ var _a;
727
+ if (__privateGet(this, _root) === this)
728
+ return true;
729
+ if (!((_a = __privateGet(this, _parent)) == null ? void 0 : _a.isStart()))
730
+ return false;
731
+ if (__privateGet(this, _parentIndex) === 0)
732
+ return true;
733
+ const p = __privateGet(this, _parent);
734
+ for (let i2 = 0; i2 < __privateGet(this, _parentIndex); i2++) {
735
+ const pp = __privateGet(p, _parts)[i2];
736
+ if (!(pp instanceof _AST && pp.type === "!")) {
737
+ return false;
738
+ }
739
+ }
740
+ return true;
741
+ }
742
+ isEnd() {
743
+ var _a, _b, _c;
744
+ if (__privateGet(this, _root) === this)
745
+ return true;
746
+ if (((_a = __privateGet(this, _parent)) == null ? void 0 : _a.type) === "!")
747
+ return true;
748
+ if (!((_b = __privateGet(this, _parent)) == null ? void 0 : _b.isEnd()))
749
+ return false;
750
+ if (!this.type)
751
+ return (_c = __privateGet(this, _parent)) == null ? void 0 : _c.isEnd();
752
+ const pl = __privateGet(this, _parent) ? __privateGet(__privateGet(this, _parent), _parts).length : 0;
753
+ return __privateGet(this, _parentIndex) === pl - 1;
754
+ }
755
+ copyIn(part) {
756
+ if (typeof part === "string")
757
+ this.push(part);
758
+ else
759
+ this.push(part.clone(this));
760
+ }
761
+ clone(parent) {
762
+ const c = new _AST(this.type, parent);
763
+ for (const p of __privateGet(this, _parts)) {
764
+ c.copyIn(p);
765
+ }
766
+ return c;
767
+ }
768
+ static fromGlob(pattern, options = {}) {
769
+ var _a;
770
+ const ast = new _AST(null, void 0, options);
771
+ __privateMethod(_a = _AST, _AST_static, parseAST_fn).call(_a, pattern, ast, 0, options);
772
+ return ast;
773
+ }
774
+ // returns the regular expression if there's magic, or the unescaped
775
+ // string if not.
776
+ toMMPattern() {
777
+ if (this !== __privateGet(this, _root))
778
+ return __privateGet(this, _root).toMMPattern();
779
+ const glob = this.toString();
780
+ const [re, body, hasMagic, uflag] = this.toRegExpSource();
781
+ const anyMagic = hasMagic || __privateGet(this, _hasMagic) || __privateGet(this, _options).nocase && !__privateGet(this, _options).nocaseMagicOnly && glob.toUpperCase() !== glob.toLowerCase();
782
+ if (!anyMagic) {
783
+ return body;
784
+ }
785
+ const flags = (__privateGet(this, _options).nocase ? "i" : "") + (uflag ? "u" : "");
786
+ return Object.assign(new RegExp(`^${re}$`, flags), {
787
+ _src: re,
788
+ _glob: glob
789
+ });
790
+ }
791
+ get options() {
792
+ return __privateGet(this, _options);
793
+ }
794
+ // returns the string match, the regexp source, whether there's magic
795
+ // in the regexp (so a regular expression is required) and whether or
796
+ // not the uflag is needed for the regular expression (for posix classes)
797
+ // TODO: instead of injecting the start/end at this point, just return
798
+ // the BODY of the regexp, along with the start/end portions suitable
799
+ // for binding the start/end in either a joined full-path makeRe context
800
+ // (where we bind to (^|/), or a standalone matchPart context (where
801
+ // we bind to ^, and not /). Otherwise slashes get duped!
802
+ //
803
+ // In part-matching mode, the start is:
804
+ // - if not isStart: nothing
805
+ // - if traversal possible, but not allowed: ^(?!\.\.?$)
806
+ // - if dots allowed or not possible: ^
807
+ // - if dots possible and not allowed: ^(?!\.)
808
+ // end is:
809
+ // - if not isEnd(): nothing
810
+ // - else: $
811
+ //
812
+ // In full-path matching mode, we put the slash at the START of the
813
+ // pattern, so start is:
814
+ // - if first pattern: same as part-matching mode
815
+ // - if not isStart(): nothing
816
+ // - if traversal possible, but not allowed: /(?!\.\.?(?:$|/))
817
+ // - if dots allowed or not possible: /
818
+ // - if dots possible and not allowed: /(?!\.)
819
+ // end is:
820
+ // - if last pattern, same as part-matching mode
821
+ // - else nothing
822
+ //
823
+ // Always put the (?:$|/) on negated tails, though, because that has to be
824
+ // there to bind the end of the negated pattern portion, and it's easier to
825
+ // just stick it in now rather than try to inject it later in the middle of
826
+ // the pattern.
827
+ //
828
+ // We can just always return the same end, and leave it up to the caller
829
+ // to know whether it's going to be used joined or in parts.
830
+ // And, if the start is adjusted slightly, can do the same there:
831
+ // - if not isStart: nothing
832
+ // - if traversal possible, but not allowed: (?:/|^)(?!\.\.?$)
833
+ // - if dots allowed or not possible: (?:/|^)
834
+ // - if dots possible and not allowed: (?:/|^)(?!\.)
835
+ //
836
+ // But it's better to have a simpler binding without a conditional, for
837
+ // performance, so probably better to return both start options.
838
+ //
839
+ // Then the caller just ignores the end if it's not the first pattern,
840
+ // and the start always gets applied.
841
+ //
842
+ // But that's always going to be $ if it's the ending pattern, or nothing,
843
+ // so the caller can just attach $ at the end of the pattern when building.
844
+ //
845
+ // So the todo is:
846
+ // - better detect what kind of start is needed
847
+ // - return both flavors of starting pattern
848
+ // - attach $ at the end of the pattern when creating the actual RegExp
849
+ //
850
+ // Ah, but wait, no, that all only applies to the root when the first pattern
851
+ // is not an extglob. If the first pattern IS an extglob, then we need all
852
+ // that dot prevention biz to live in the extglob portions, because eg
853
+ // +(*|.x*) can match .xy but not .yx.
854
+ //
855
+ // So, return the two flavors if it's #root and the first child is not an
856
+ // AST, otherwise leave it to the child AST to handle it, and there,
857
+ // use the (?:^|/) style of start binding.
858
+ //
859
+ // Even simplified further:
860
+ // - Since the start for a join is eg /(?!\.) and the start for a part
861
+ // is ^(?!\.), we can just prepend (?!\.) to the pattern (either root
862
+ // or start or whatever) and prepend ^ or / at the Regexp construction.
863
+ toRegExpSource(allowDot) {
864
+ var _a;
865
+ const dot = allowDot != null ? allowDot : !!__privateGet(this, _options).dot;
866
+ if (__privateGet(this, _root) === this)
867
+ __privateMethod(this, _AST_instances, fillNegs_fn).call(this);
868
+ if (!this.type) {
869
+ const noEmpty = this.isStart() && this.isEnd();
870
+ const src = __privateGet(this, _parts).map((p) => {
871
+ var _a2;
872
+ const [re, _, hasMagic, uflag] = typeof p === "string" ? __privateMethod(_a2 = _AST, _AST_static, parseGlob_fn).call(_a2, p, __privateGet(this, _hasMagic), noEmpty) : p.toRegExpSource(allowDot);
873
+ __privateSet(this, _hasMagic, __privateGet(this, _hasMagic) || hasMagic);
874
+ __privateSet(this, _uflag, __privateGet(this, _uflag) || uflag);
875
+ return re;
876
+ }).join("");
877
+ let start2 = "";
878
+ if (this.isStart()) {
879
+ if (typeof __privateGet(this, _parts)[0] === "string") {
880
+ const dotTravAllowed = __privateGet(this, _parts).length === 1 && justDots.has(__privateGet(this, _parts)[0]);
881
+ if (!dotTravAllowed) {
882
+ const aps = addPatternStart;
883
+ const needNoTrav = (
884
+ // dots are allowed, and the pattern starts with [ or .
885
+ dot && aps.has(src.charAt(0)) || // the pattern starts with \., and then [ or .
886
+ src.startsWith("\\.") && aps.has(src.charAt(2)) || // the pattern starts with \.\., and then [ or .
887
+ src.startsWith("\\.\\.") && aps.has(src.charAt(4))
888
+ );
889
+ const needNoDot = !dot && !allowDot && aps.has(src.charAt(0));
890
+ start2 = needNoTrav ? startNoTraversal : needNoDot ? startNoDot : "";
891
+ }
892
+ }
893
+ }
894
+ let end = "";
895
+ if (this.isEnd() && __privateGet(__privateGet(this, _root), _filledNegs) && ((_a = __privateGet(this, _parent)) == null ? void 0 : _a.type) === "!") {
896
+ end = "(?:$|\\/)";
897
+ }
898
+ const final2 = start2 + src + end;
899
+ return [
900
+ final2,
901
+ unescape(src),
902
+ __privateSet(this, _hasMagic, !!__privateGet(this, _hasMagic)),
903
+ __privateGet(this, _uflag)
904
+ ];
905
+ }
906
+ const repeated = this.type === "*" || this.type === "+";
907
+ const start = this.type === "!" ? "(?:(?!(?:" : "(?:";
908
+ let body = __privateMethod(this, _AST_instances, partsToRegExp_fn).call(this, dot);
909
+ if (this.isStart() && this.isEnd() && !body && this.type !== "!") {
910
+ const s = this.toString();
911
+ __privateSet(this, _parts, [s]);
912
+ this.type = null;
913
+ __privateSet(this, _hasMagic, void 0);
914
+ return [s, unescape(this.toString()), false, false];
915
+ }
916
+ let bodyDotAllowed = !repeated || allowDot || dot || false ? "" : __privateMethod(this, _AST_instances, partsToRegExp_fn).call(this, true);
917
+ if (bodyDotAllowed === body) {
918
+ bodyDotAllowed = "";
919
+ }
920
+ if (bodyDotAllowed) {
921
+ body = `(?:${body})(?:${bodyDotAllowed})*?`;
922
+ }
923
+ let final = "";
924
+ if (this.type === "!" && __privateGet(this, _emptyExt)) {
925
+ final = (this.isStart() && !dot ? startNoDot : "") + starNoEmpty;
926
+ } else {
927
+ const close = this.type === "!" ? (
928
+ // !() must match something,but !(x) can match ''
929
+ "))" + (this.isStart() && !dot && !allowDot ? startNoDot : "") + star + ")"
930
+ ) : this.type === "@" ? ")" : this.type === "?" ? ")?" : this.type === "+" && bodyDotAllowed ? ")" : this.type === "*" && bodyDotAllowed ? `)?` : `)${this.type}`;
931
+ final = start + body + close;
932
+ }
933
+ return [
934
+ final,
935
+ unescape(body),
936
+ __privateSet(this, _hasMagic, !!__privateGet(this, _hasMagic)),
937
+ __privateGet(this, _uflag)
938
+ ];
939
+ }
940
+ };
941
+ _root = new WeakMap();
942
+ _hasMagic = new WeakMap();
943
+ _uflag = new WeakMap();
944
+ _parts = new WeakMap();
945
+ _parent = new WeakMap();
946
+ _parentIndex = new WeakMap();
947
+ _negs = new WeakMap();
948
+ _filledNegs = new WeakMap();
949
+ _options = new WeakMap();
950
+ _toString = new WeakMap();
951
+ _emptyExt = new WeakMap();
952
+ _AST_instances = new WeakSet();
953
+ fillNegs_fn = function() {
954
+ if (this !== __privateGet(this, _root))
955
+ throw new Error("should only call on root");
956
+ if (__privateGet(this, _filledNegs))
957
+ return this;
958
+ this.toString();
959
+ __privateSet(this, _filledNegs, true);
960
+ let n;
961
+ while (n = __privateGet(this, _negs).pop()) {
962
+ if (n.type !== "!")
963
+ continue;
964
+ let p = n;
965
+ let pp = __privateGet(p, _parent);
966
+ while (pp) {
967
+ for (let i2 = __privateGet(p, _parentIndex) + 1; !pp.type && i2 < __privateGet(pp, _parts).length; i2++) {
968
+ for (const part of __privateGet(n, _parts)) {
969
+ if (typeof part === "string") {
970
+ throw new Error("string part in extglob AST??");
971
+ }
972
+ part.copyIn(__privateGet(pp, _parts)[i2]);
973
+ }
974
+ }
975
+ p = pp;
976
+ pp = __privateGet(p, _parent);
977
+ }
978
+ }
979
+ return this;
980
+ };
981
+ _AST_static = new WeakSet();
982
+ parseAST_fn = function(str, ast, pos, opt) {
983
+ var _a, _b;
984
+ let escaping = false;
985
+ let inBrace = false;
986
+ let braceStart = -1;
987
+ let braceNeg = false;
988
+ if (ast.type === null) {
989
+ let i3 = pos;
990
+ let acc2 = "";
991
+ while (i3 < str.length) {
992
+ const c = str.charAt(i3++);
993
+ if (escaping || c === "\\") {
994
+ escaping = !escaping;
995
+ acc2 += c;
996
+ continue;
997
+ }
998
+ if (inBrace) {
999
+ if (i3 === braceStart + 1) {
1000
+ if (c === "^" || c === "!") {
1001
+ braceNeg = true;
1002
+ }
1003
+ } else if (c === "]" && !(i3 === braceStart + 2 && braceNeg)) {
1004
+ inBrace = false;
1005
+ }
1006
+ acc2 += c;
1007
+ continue;
1008
+ } else if (c === "[") {
1009
+ inBrace = true;
1010
+ braceStart = i3;
1011
+ braceNeg = false;
1012
+ acc2 += c;
1013
+ continue;
1014
+ }
1015
+ if (!opt.noext && isExtglobType(c) && str.charAt(i3) === "(") {
1016
+ ast.push(acc2);
1017
+ acc2 = "";
1018
+ const ext2 = new _AST(c, ast);
1019
+ i3 = __privateMethod(_a = _AST, _AST_static, parseAST_fn).call(_a, str, ext2, i3, opt);
1020
+ ast.push(ext2);
1021
+ continue;
1022
+ }
1023
+ acc2 += c;
1024
+ }
1025
+ ast.push(acc2);
1026
+ return i3;
1027
+ }
1028
+ let i2 = pos + 1;
1029
+ let part = new _AST(null, ast);
1030
+ const parts = [];
1031
+ let acc = "";
1032
+ while (i2 < str.length) {
1033
+ const c = str.charAt(i2++);
1034
+ if (escaping || c === "\\") {
1035
+ escaping = !escaping;
1036
+ acc += c;
1037
+ continue;
1038
+ }
1039
+ if (inBrace) {
1040
+ if (i2 === braceStart + 1) {
1041
+ if (c === "^" || c === "!") {
1042
+ braceNeg = true;
1043
+ }
1044
+ } else if (c === "]" && !(i2 === braceStart + 2 && braceNeg)) {
1045
+ inBrace = false;
1046
+ }
1047
+ acc += c;
1048
+ continue;
1049
+ } else if (c === "[") {
1050
+ inBrace = true;
1051
+ braceStart = i2;
1052
+ braceNeg = false;
1053
+ acc += c;
1054
+ continue;
1055
+ }
1056
+ if (isExtglobType(c) && str.charAt(i2) === "(") {
1057
+ part.push(acc);
1058
+ acc = "";
1059
+ const ext2 = new _AST(c, part);
1060
+ part.push(ext2);
1061
+ i2 = __privateMethod(_b = _AST, _AST_static, parseAST_fn).call(_b, str, ext2, i2, opt);
1062
+ continue;
1063
+ }
1064
+ if (c === "|") {
1065
+ part.push(acc);
1066
+ acc = "";
1067
+ parts.push(part);
1068
+ part = new _AST(null, ast);
1069
+ continue;
1070
+ }
1071
+ if (c === ")") {
1072
+ if (acc === "" && __privateGet(ast, _parts).length === 0) {
1073
+ __privateSet(ast, _emptyExt, true);
1074
+ }
1075
+ part.push(acc);
1076
+ acc = "";
1077
+ ast.push(...parts, part);
1078
+ return i2;
1079
+ }
1080
+ acc += c;
1081
+ }
1082
+ ast.type = null;
1083
+ __privateSet(ast, _hasMagic, void 0);
1084
+ __privateSet(ast, _parts, [str.substring(pos - 1)]);
1085
+ return i2;
1086
+ };
1087
+ partsToRegExp_fn = function(dot) {
1088
+ return __privateGet(this, _parts).map((p) => {
1089
+ if (typeof p === "string") {
1090
+ throw new Error("string type in extglob ast??");
1091
+ }
1092
+ const [re, _, _hasMagic2, uflag] = p.toRegExpSource(dot);
1093
+ __privateSet(this, _uflag, __privateGet(this, _uflag) || uflag);
1094
+ return re;
1095
+ }).filter((p) => !(this.isStart() && this.isEnd()) || !!p).join("|");
1096
+ };
1097
+ parseGlob_fn = function(glob, hasMagic, noEmpty = false) {
1098
+ let escaping = false;
1099
+ let re = "";
1100
+ let uflag = false;
1101
+ for (let i2 = 0; i2 < glob.length; i2++) {
1102
+ const c = glob.charAt(i2);
1103
+ if (escaping) {
1104
+ escaping = false;
1105
+ re += (reSpecials.has(c) ? "\\" : "") + c;
1106
+ continue;
1107
+ }
1108
+ if (c === "\\") {
1109
+ if (i2 === glob.length - 1) {
1110
+ re += "\\\\";
1111
+ } else {
1112
+ escaping = true;
1113
+ }
1114
+ continue;
1115
+ }
1116
+ if (c === "[") {
1117
+ const [src, needUflag, consumed, magic] = parseClass(glob, i2);
1118
+ if (consumed) {
1119
+ re += src;
1120
+ uflag = uflag || needUflag;
1121
+ i2 += consumed - 1;
1122
+ hasMagic = hasMagic || magic;
1123
+ continue;
1124
+ }
1125
+ }
1126
+ if (c === "*") {
1127
+ if (noEmpty && glob === "*")
1128
+ re += starNoEmpty;
1129
+ else
1130
+ re += star;
1131
+ hasMagic = true;
1132
+ continue;
1133
+ }
1134
+ if (c === "?") {
1135
+ re += qmark;
1136
+ hasMagic = true;
1137
+ continue;
1138
+ }
1139
+ re += regExpEscape(c);
1140
+ }
1141
+ return [re, unescape(glob), !!hasMagic, uflag];
1142
+ };
1143
+ __privateAdd(_AST, _AST_static);
1144
+ var AST = _AST;
1145
+
1146
+ // node_modules/minimatch/dist/esm/escape.js
1147
+ var escape = (s, { windowsPathsNoEscape = false } = {}) => {
1148
+ return windowsPathsNoEscape ? s.replace(/[?*()[\]]/g, "[$&]") : s.replace(/[?*()[\]\\]/g, "\\$&");
1149
+ };
1150
+
1151
+ // node_modules/minimatch/dist/esm/index.js
1152
+ var minimatch = (p, pattern, options = {}) => {
1153
+ assertValidPattern(pattern);
1154
+ if (!options.nocomment && pattern.charAt(0) === "#") {
1155
+ return false;
1156
+ }
1157
+ return new Minimatch(pattern, options).match(p);
1158
+ };
1159
+ var starDotExtRE = /^\*+([^+@!?\*\[\(]*)$/;
1160
+ var starDotExtTest = (ext2) => (f) => !f.startsWith(".") && f.endsWith(ext2);
1161
+ var starDotExtTestDot = (ext2) => (f) => f.endsWith(ext2);
1162
+ var starDotExtTestNocase = (ext2) => {
1163
+ ext2 = ext2.toLowerCase();
1164
+ return (f) => !f.startsWith(".") && f.toLowerCase().endsWith(ext2);
1165
+ };
1166
+ var starDotExtTestNocaseDot = (ext2) => {
1167
+ ext2 = ext2.toLowerCase();
1168
+ return (f) => f.toLowerCase().endsWith(ext2);
1169
+ };
1170
+ var starDotStarRE = /^\*+\.\*+$/;
1171
+ var starDotStarTest = (f) => !f.startsWith(".") && f.includes(".");
1172
+ var starDotStarTestDot = (f) => f !== "." && f !== ".." && f.includes(".");
1173
+ var dotStarRE = /^\.\*+$/;
1174
+ var dotStarTest = (f) => f !== "." && f !== ".." && f.startsWith(".");
1175
+ var starRE = /^\*+$/;
1176
+ var starTest = (f) => f.length !== 0 && !f.startsWith(".");
1177
+ var starTestDot = (f) => f.length !== 0 && f !== "." && f !== "..";
1178
+ var qmarksRE = /^\?+([^+@!?\*\[\(]*)?$/;
1179
+ var qmarksTestNocase = ([$0, ext2 = ""]) => {
1180
+ const noext = qmarksTestNoExt([$0]);
1181
+ if (!ext2)
1182
+ return noext;
1183
+ ext2 = ext2.toLowerCase();
1184
+ return (f) => noext(f) && f.toLowerCase().endsWith(ext2);
1185
+ };
1186
+ var qmarksTestNocaseDot = ([$0, ext2 = ""]) => {
1187
+ const noext = qmarksTestNoExtDot([$0]);
1188
+ if (!ext2)
1189
+ return noext;
1190
+ ext2 = ext2.toLowerCase();
1191
+ return (f) => noext(f) && f.toLowerCase().endsWith(ext2);
1192
+ };
1193
+ var qmarksTestDot = ([$0, ext2 = ""]) => {
1194
+ const noext = qmarksTestNoExtDot([$0]);
1195
+ return !ext2 ? noext : (f) => noext(f) && f.endsWith(ext2);
1196
+ };
1197
+ var qmarksTest = ([$0, ext2 = ""]) => {
1198
+ const noext = qmarksTestNoExt([$0]);
1199
+ return !ext2 ? noext : (f) => noext(f) && f.endsWith(ext2);
1200
+ };
1201
+ var qmarksTestNoExt = ([$0]) => {
1202
+ const len = $0.length;
1203
+ return (f) => f.length === len && !f.startsWith(".");
1204
+ };
1205
+ var qmarksTestNoExtDot = ([$0]) => {
1206
+ const len = $0.length;
1207
+ return (f) => f.length === len && f !== "." && f !== "..";
1208
+ };
1209
+ var defaultPlatform = typeof process === "object" && process ? typeof process.env === "object" && process.env && process.env.__MINIMATCH_TESTING_PLATFORM__ || process.platform : "posix";
1210
+ var path = {
1211
+ win32: { sep: "\\" },
1212
+ posix: { sep: "/" }
1213
+ };
1214
+ var sep = defaultPlatform === "win32" ? path.win32.sep : path.posix.sep;
1215
+ minimatch.sep = sep;
1216
+ var GLOBSTAR = Symbol("globstar **");
1217
+ minimatch.GLOBSTAR = GLOBSTAR;
1218
+ var qmark2 = "[^/]";
1219
+ var star2 = qmark2 + "*?";
1220
+ var twoStarDot = "(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";
1221
+ var twoStarNoDot = "(?:(?!(?:\\/|^)\\.).)*?";
1222
+ var filter = (pattern, options = {}) => (p) => minimatch(p, pattern, options);
1223
+ minimatch.filter = filter;
1224
+ var ext = (a, b = {}) => Object.assign({}, a, b);
1225
+ var defaults = (def) => {
1226
+ if (!def || typeof def !== "object" || !Object.keys(def).length) {
1227
+ return minimatch;
1228
+ }
1229
+ const orig = minimatch;
1230
+ const m = (p, pattern, options = {}) => orig(p, pattern, ext(def, options));
1231
+ return Object.assign(m, {
1232
+ Minimatch: class Minimatch extends orig.Minimatch {
1233
+ constructor(pattern, options = {}) {
1234
+ super(pattern, ext(def, options));
1235
+ }
1236
+ static defaults(options) {
1237
+ return orig.defaults(ext(def, options)).Minimatch;
1238
+ }
1239
+ },
1240
+ AST: class AST extends orig.AST {
1241
+ /* c8 ignore start */
1242
+ constructor(type, parent, options = {}) {
1243
+ super(type, parent, ext(def, options));
1244
+ }
1245
+ /* c8 ignore stop */
1246
+ static fromGlob(pattern, options = {}) {
1247
+ return orig.AST.fromGlob(pattern, ext(def, options));
1248
+ }
1249
+ },
1250
+ unescape: (s, options = {}) => orig.unescape(s, ext(def, options)),
1251
+ escape: (s, options = {}) => orig.escape(s, ext(def, options)),
1252
+ filter: (pattern, options = {}) => orig.filter(pattern, ext(def, options)),
1253
+ defaults: (options) => orig.defaults(ext(def, options)),
1254
+ makeRe: (pattern, options = {}) => orig.makeRe(pattern, ext(def, options)),
1255
+ braceExpand: (pattern, options = {}) => orig.braceExpand(pattern, ext(def, options)),
1256
+ match: (list, pattern, options = {}) => orig.match(list, pattern, ext(def, options)),
1257
+ sep: orig.sep,
1258
+ GLOBSTAR
1259
+ });
1260
+ };
1261
+ minimatch.defaults = defaults;
1262
+ var braceExpand = (pattern, options = {}) => {
1263
+ assertValidPattern(pattern);
1264
+ if (options.nobrace || !/\{(?:(?!\{).)*\}/.test(pattern)) {
1265
+ return [pattern];
1266
+ }
1267
+ return (0, import_brace_expansion.default)(pattern);
1268
+ };
1269
+ minimatch.braceExpand = braceExpand;
1270
+ var makeRe = (pattern, options = {}) => new Minimatch(pattern, options).makeRe();
1271
+ minimatch.makeRe = makeRe;
1272
+ var match = (list, pattern, options = {}) => {
1273
+ const mm = new Minimatch(pattern, options);
1274
+ list = list.filter((f) => mm.match(f));
1275
+ if (mm.options.nonull && !list.length) {
1276
+ list.push(pattern);
1277
+ }
1278
+ return list;
1279
+ };
1280
+ minimatch.match = match;
1281
+ var globMagic = /[?*]|[+@!]\(.*?\)|\[|\]/;
1282
+ var regExpEscape2 = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
1283
+ var Minimatch = class {
1284
+ options;
1285
+ set;
1286
+ pattern;
1287
+ windowsPathsNoEscape;
1288
+ nonegate;
1289
+ negate;
1290
+ comment;
1291
+ empty;
1292
+ preserveMultipleSlashes;
1293
+ partial;
1294
+ globSet;
1295
+ globParts;
1296
+ nocase;
1297
+ isWindows;
1298
+ platform;
1299
+ windowsNoMagicRoot;
1300
+ regexp;
1301
+ constructor(pattern, options = {}) {
1302
+ assertValidPattern(pattern);
1303
+ options = options || {};
1304
+ this.options = options;
1305
+ this.pattern = pattern;
1306
+ this.platform = options.platform || defaultPlatform;
1307
+ this.isWindows = this.platform === "win32";
1308
+ this.windowsPathsNoEscape = !!options.windowsPathsNoEscape || options.allowWindowsEscape === false;
1309
+ if (this.windowsPathsNoEscape) {
1310
+ this.pattern = this.pattern.replace(/\\/g, "/");
1311
+ }
1312
+ this.preserveMultipleSlashes = !!options.preserveMultipleSlashes;
1313
+ this.regexp = null;
1314
+ this.negate = false;
1315
+ this.nonegate = !!options.nonegate;
1316
+ this.comment = false;
1317
+ this.empty = false;
1318
+ this.partial = !!options.partial;
1319
+ this.nocase = !!this.options.nocase;
1320
+ this.windowsNoMagicRoot = options.windowsNoMagicRoot !== void 0 ? options.windowsNoMagicRoot : !!(this.isWindows && this.nocase);
1321
+ this.globSet = [];
1322
+ this.globParts = [];
1323
+ this.set = [];
1324
+ this.make();
1325
+ }
1326
+ hasMagic() {
1327
+ if (this.options.magicalBraces && this.set.length > 1) {
1328
+ return true;
1329
+ }
1330
+ for (const pattern of this.set) {
1331
+ for (const part of pattern) {
1332
+ if (typeof part !== "string")
1333
+ return true;
1334
+ }
1335
+ }
1336
+ return false;
1337
+ }
1338
+ debug(..._) {
1339
+ }
1340
+ make() {
1341
+ const pattern = this.pattern;
1342
+ const options = this.options;
1343
+ if (!options.nocomment && pattern.charAt(0) === "#") {
1344
+ this.comment = true;
1345
+ return;
1346
+ }
1347
+ if (!pattern) {
1348
+ this.empty = true;
1349
+ return;
1350
+ }
1351
+ this.parseNegate();
1352
+ this.globSet = [...new Set(this.braceExpand())];
1353
+ if (options.debug) {
1354
+ this.debug = (...args) => console.error(...args);
1355
+ }
1356
+ this.debug(this.pattern, this.globSet);
1357
+ const rawGlobParts = this.globSet.map((s) => this.slashSplit(s));
1358
+ this.globParts = this.preprocess(rawGlobParts);
1359
+ this.debug(this.pattern, this.globParts);
1360
+ let set = this.globParts.map((s, _, __) => {
1361
+ if (this.isWindows && this.windowsNoMagicRoot) {
1362
+ const isUNC = s[0] === "" && s[1] === "" && (s[2] === "?" || !globMagic.test(s[2])) && !globMagic.test(s[3]);
1363
+ const isDrive = /^[a-z]:/i.test(s[0]);
1364
+ if (isUNC) {
1365
+ return [...s.slice(0, 4), ...s.slice(4).map((ss) => this.parse(ss))];
1366
+ } else if (isDrive) {
1367
+ return [s[0], ...s.slice(1).map((ss) => this.parse(ss))];
1368
+ }
1369
+ }
1370
+ return s.map((ss) => this.parse(ss));
1371
+ });
1372
+ this.debug(this.pattern, set);
1373
+ this.set = set.filter((s) => s.indexOf(false) === -1);
1374
+ if (this.isWindows) {
1375
+ for (let i2 = 0; i2 < this.set.length; i2++) {
1376
+ const p = this.set[i2];
1377
+ if (p[0] === "" && p[1] === "" && this.globParts[i2][2] === "?" && typeof p[3] === "string" && /^[a-z]:$/i.test(p[3])) {
1378
+ p[2] = "?";
1379
+ }
1380
+ }
1381
+ }
1382
+ this.debug(this.pattern, this.set);
1383
+ }
1384
+ // various transforms to equivalent pattern sets that are
1385
+ // faster to process in a filesystem walk. The goal is to
1386
+ // eliminate what we can, and push all ** patterns as far
1387
+ // to the right as possible, even if it increases the number
1388
+ // of patterns that we have to process.
1389
+ preprocess(globParts) {
1390
+ if (this.options.noglobstar) {
1391
+ for (let i2 = 0; i2 < globParts.length; i2++) {
1392
+ for (let j = 0; j < globParts[i2].length; j++) {
1393
+ if (globParts[i2][j] === "**") {
1394
+ globParts[i2][j] = "*";
1395
+ }
1396
+ }
1397
+ }
1398
+ }
1399
+ const { optimizationLevel = 1 } = this.options;
1400
+ if (optimizationLevel >= 2) {
1401
+ globParts = this.firstPhasePreProcess(globParts);
1402
+ globParts = this.secondPhasePreProcess(globParts);
1403
+ } else if (optimizationLevel >= 1) {
1404
+ globParts = this.levelOneOptimize(globParts);
1405
+ } else {
1406
+ globParts = this.adjascentGlobstarOptimize(globParts);
1407
+ }
1408
+ return globParts;
1409
+ }
1410
+ // just get rid of adjascent ** portions
1411
+ adjascentGlobstarOptimize(globParts) {
1412
+ return globParts.map((parts) => {
1413
+ let gs = -1;
1414
+ while (-1 !== (gs = parts.indexOf("**", gs + 1))) {
1415
+ let i2 = gs;
1416
+ while (parts[i2 + 1] === "**") {
1417
+ i2++;
1418
+ }
1419
+ if (i2 !== gs) {
1420
+ parts.splice(gs, i2 - gs);
1421
+ }
1422
+ }
1423
+ return parts;
1424
+ });
1425
+ }
1426
+ // get rid of adjascent ** and resolve .. portions
1427
+ levelOneOptimize(globParts) {
1428
+ return globParts.map((parts) => {
1429
+ parts = parts.reduce((set, part) => {
1430
+ const prev = set[set.length - 1];
1431
+ if (part === "**" && prev === "**") {
1432
+ return set;
1433
+ }
1434
+ if (part === "..") {
1435
+ if (prev && prev !== ".." && prev !== "." && prev !== "**") {
1436
+ set.pop();
1437
+ return set;
1438
+ }
1439
+ }
1440
+ set.push(part);
1441
+ return set;
1442
+ }, []);
1443
+ return parts.length === 0 ? [""] : parts;
1444
+ });
1445
+ }
1446
+ levelTwoFileOptimize(parts) {
1447
+ if (!Array.isArray(parts)) {
1448
+ parts = this.slashSplit(parts);
1449
+ }
1450
+ let didSomething = false;
1451
+ do {
1452
+ didSomething = false;
1453
+ if (!this.preserveMultipleSlashes) {
1454
+ for (let i2 = 1; i2 < parts.length - 1; i2++) {
1455
+ const p = parts[i2];
1456
+ if (i2 === 1 && p === "" && parts[0] === "")
1457
+ continue;
1458
+ if (p === "." || p === "") {
1459
+ didSomething = true;
1460
+ parts.splice(i2, 1);
1461
+ i2--;
1462
+ }
1463
+ }
1464
+ if (parts[0] === "." && parts.length === 2 && (parts[1] === "." || parts[1] === "")) {
1465
+ didSomething = true;
1466
+ parts.pop();
1467
+ }
1468
+ }
1469
+ let dd = 0;
1470
+ while (-1 !== (dd = parts.indexOf("..", dd + 1))) {
1471
+ const p = parts[dd - 1];
1472
+ if (p && p !== "." && p !== ".." && p !== "**") {
1473
+ didSomething = true;
1474
+ parts.splice(dd - 1, 2);
1475
+ dd -= 2;
1476
+ }
1477
+ }
1478
+ } while (didSomething);
1479
+ return parts.length === 0 ? [""] : parts;
1480
+ }
1481
+ // First phase: single-pattern processing
1482
+ // <pre> is 1 or more portions
1483
+ // <rest> is 1 or more portions
1484
+ // <p> is any portion other than ., .., '', or **
1485
+ // <e> is . or ''
1486
+ //
1487
+ // **/.. is *brutal* for filesystem walking performance, because
1488
+ // it effectively resets the recursive walk each time it occurs,
1489
+ // and ** cannot be reduced out by a .. pattern part like a regexp
1490
+ // or most strings (other than .., ., and '') can be.
1491
+ //
1492
+ // <pre>/**/../<p>/<p>/<rest> -> {<pre>/../<p>/<p>/<rest>,<pre>/**/<p>/<p>/<rest>}
1493
+ // <pre>/<e>/<rest> -> <pre>/<rest>
1494
+ // <pre>/<p>/../<rest> -> <pre>/<rest>
1495
+ // **/**/<rest> -> **/<rest>
1496
+ //
1497
+ // **/*/<rest> -> */**/<rest> <== not valid because ** doesn't follow
1498
+ // this WOULD be allowed if ** did follow symlinks, or * didn't
1499
+ firstPhasePreProcess(globParts) {
1500
+ let didSomething = false;
1501
+ do {
1502
+ didSomething = false;
1503
+ for (let parts of globParts) {
1504
+ let gs = -1;
1505
+ while (-1 !== (gs = parts.indexOf("**", gs + 1))) {
1506
+ let gss = gs;
1507
+ while (parts[gss + 1] === "**") {
1508
+ gss++;
1509
+ }
1510
+ if (gss > gs) {
1511
+ parts.splice(gs + 1, gss - gs);
1512
+ }
1513
+ let next = parts[gs + 1];
1514
+ const p = parts[gs + 2];
1515
+ const p2 = parts[gs + 3];
1516
+ if (next !== "..")
1517
+ continue;
1518
+ if (!p || p === "." || p === ".." || !p2 || p2 === "." || p2 === "..") {
1519
+ continue;
1520
+ }
1521
+ didSomething = true;
1522
+ parts.splice(gs, 1);
1523
+ const other = parts.slice(0);
1524
+ other[gs] = "**";
1525
+ globParts.push(other);
1526
+ gs--;
1527
+ }
1528
+ if (!this.preserveMultipleSlashes) {
1529
+ for (let i2 = 1; i2 < parts.length - 1; i2++) {
1530
+ const p = parts[i2];
1531
+ if (i2 === 1 && p === "" && parts[0] === "")
1532
+ continue;
1533
+ if (p === "." || p === "") {
1534
+ didSomething = true;
1535
+ parts.splice(i2, 1);
1536
+ i2--;
1537
+ }
1538
+ }
1539
+ if (parts[0] === "." && parts.length === 2 && (parts[1] === "." || parts[1] === "")) {
1540
+ didSomething = true;
1541
+ parts.pop();
1542
+ }
1543
+ }
1544
+ let dd = 0;
1545
+ while (-1 !== (dd = parts.indexOf("..", dd + 1))) {
1546
+ const p = parts[dd - 1];
1547
+ if (p && p !== "." && p !== ".." && p !== "**") {
1548
+ didSomething = true;
1549
+ const needDot = dd === 1 && parts[dd + 1] === "**";
1550
+ const splin = needDot ? ["."] : [];
1551
+ parts.splice(dd - 1, 2, ...splin);
1552
+ if (parts.length === 0)
1553
+ parts.push("");
1554
+ dd -= 2;
1555
+ }
1556
+ }
1557
+ }
1558
+ } while (didSomething);
1559
+ return globParts;
1560
+ }
1561
+ // second phase: multi-pattern dedupes
1562
+ // {<pre>/*/<rest>,<pre>/<p>/<rest>} -> <pre>/*/<rest>
1563
+ // {<pre>/<rest>,<pre>/<rest>} -> <pre>/<rest>
1564
+ // {<pre>/**/<rest>,<pre>/<rest>} -> <pre>/**/<rest>
1565
+ //
1566
+ // {<pre>/**/<rest>,<pre>/**/<p>/<rest>} -> <pre>/**/<rest>
1567
+ // ^-- not valid because ** doens't follow symlinks
1568
+ secondPhasePreProcess(globParts) {
1569
+ for (let i2 = 0; i2 < globParts.length - 1; i2++) {
1570
+ for (let j = i2 + 1; j < globParts.length; j++) {
1571
+ const matched = this.partsMatch(globParts[i2], globParts[j], !this.preserveMultipleSlashes);
1572
+ if (!matched)
1573
+ continue;
1574
+ globParts[i2] = matched;
1575
+ globParts[j] = [];
1576
+ }
1577
+ }
1578
+ return globParts.filter((gs) => gs.length);
1579
+ }
1580
+ partsMatch(a, b, emptyGSMatch = false) {
1581
+ let ai = 0;
1582
+ let bi = 0;
1583
+ let result = [];
1584
+ let which = "";
1585
+ while (ai < a.length && bi < b.length) {
1586
+ if (a[ai] === b[bi]) {
1587
+ result.push(which === "b" ? b[bi] : a[ai]);
1588
+ ai++;
1589
+ bi++;
1590
+ } else if (emptyGSMatch && a[ai] === "**" && b[bi] === a[ai + 1]) {
1591
+ result.push(a[ai]);
1592
+ ai++;
1593
+ } else if (emptyGSMatch && b[bi] === "**" && a[ai] === b[bi + 1]) {
1594
+ result.push(b[bi]);
1595
+ bi++;
1596
+ } else if (a[ai] === "*" && b[bi] && (this.options.dot || !b[bi].startsWith(".")) && b[bi] !== "**") {
1597
+ if (which === "b")
1598
+ return false;
1599
+ which = "a";
1600
+ result.push(a[ai]);
1601
+ ai++;
1602
+ bi++;
1603
+ } else if (b[bi] === "*" && a[ai] && (this.options.dot || !a[ai].startsWith(".")) && a[ai] !== "**") {
1604
+ if (which === "a")
1605
+ return false;
1606
+ which = "b";
1607
+ result.push(b[bi]);
1608
+ ai++;
1609
+ bi++;
1610
+ } else {
1611
+ return false;
1612
+ }
1613
+ }
1614
+ return a.length === b.length && result;
1615
+ }
1616
+ parseNegate() {
1617
+ if (this.nonegate)
1618
+ return;
1619
+ const pattern = this.pattern;
1620
+ let negate = false;
1621
+ let negateOffset = 0;
1622
+ for (let i2 = 0; i2 < pattern.length && pattern.charAt(i2) === "!"; i2++) {
1623
+ negate = !negate;
1624
+ negateOffset++;
1625
+ }
1626
+ if (negateOffset)
1627
+ this.pattern = pattern.slice(negateOffset);
1628
+ this.negate = negate;
1629
+ }
1630
+ // set partial to true to test if, for example,
1631
+ // "/a/b" matches the start of "/*/b/*/d"
1632
+ // Partial means, if you run out of file before you run
1633
+ // out of pattern, then that's fine, as long as all
1634
+ // the parts match.
1635
+ matchOne(file, pattern, partial = false) {
1636
+ const options = this.options;
1637
+ if (this.isWindows) {
1638
+ const fileDrive = typeof file[0] === "string" && /^[a-z]:$/i.test(file[0]);
1639
+ const fileUNC = !fileDrive && file[0] === "" && file[1] === "" && file[2] === "?" && /^[a-z]:$/i.test(file[3]);
1640
+ const patternDrive = typeof pattern[0] === "string" && /^[a-z]:$/i.test(pattern[0]);
1641
+ const patternUNC = !patternDrive && pattern[0] === "" && pattern[1] === "" && pattern[2] === "?" && typeof pattern[3] === "string" && /^[a-z]:$/i.test(pattern[3]);
1642
+ const fdi = fileUNC ? 3 : fileDrive ? 0 : void 0;
1643
+ const pdi = patternUNC ? 3 : patternDrive ? 0 : void 0;
1644
+ if (typeof fdi === "number" && typeof pdi === "number") {
1645
+ const [fd, pd] = [file[fdi], pattern[pdi]];
1646
+ if (fd.toLowerCase() === pd.toLowerCase()) {
1647
+ pattern[pdi] = fd;
1648
+ if (pdi > fdi) {
1649
+ pattern = pattern.slice(pdi);
1650
+ } else if (fdi > pdi) {
1651
+ file = file.slice(fdi);
1652
+ }
1653
+ }
1654
+ }
1655
+ }
1656
+ const { optimizationLevel = 1 } = this.options;
1657
+ if (optimizationLevel >= 2) {
1658
+ file = this.levelTwoFileOptimize(file);
1659
+ }
1660
+ this.debug("matchOne", this, { file, pattern });
1661
+ this.debug("matchOne", file.length, pattern.length);
1662
+ for (var fi = 0, pi = 0, fl = file.length, pl = pattern.length; fi < fl && pi < pl; fi++, pi++) {
1663
+ this.debug("matchOne loop");
1664
+ var p = pattern[pi];
1665
+ var f = file[fi];
1666
+ this.debug(pattern, p, f);
1667
+ if (p === false) {
1668
+ return false;
1669
+ }
1670
+ if (p === GLOBSTAR) {
1671
+ this.debug("GLOBSTAR", [pattern, p, f]);
1672
+ var fr = fi;
1673
+ var pr = pi + 1;
1674
+ if (pr === pl) {
1675
+ this.debug("** at the end");
1676
+ for (; fi < fl; fi++) {
1677
+ if (file[fi] === "." || file[fi] === ".." || !options.dot && file[fi].charAt(0) === ".")
1678
+ return false;
1679
+ }
1680
+ return true;
1681
+ }
1682
+ while (fr < fl) {
1683
+ var swallowee = file[fr];
1684
+ this.debug("\nglobstar while", file, fr, pattern, pr, swallowee);
1685
+ if (this.matchOne(file.slice(fr), pattern.slice(pr), partial)) {
1686
+ this.debug("globstar found match!", fr, fl, swallowee);
1687
+ return true;
1688
+ } else {
1689
+ if (swallowee === "." || swallowee === ".." || !options.dot && swallowee.charAt(0) === ".") {
1690
+ this.debug("dot detected!", file, fr, pattern, pr);
1691
+ break;
1692
+ }
1693
+ this.debug("globstar swallow a segment, and continue");
1694
+ fr++;
1695
+ }
1696
+ }
1697
+ if (partial) {
1698
+ this.debug("\n>>> no match, partial?", file, fr, pattern, pr);
1699
+ if (fr === fl) {
1700
+ return true;
1701
+ }
1702
+ }
1703
+ return false;
1704
+ }
1705
+ let hit;
1706
+ if (typeof p === "string") {
1707
+ hit = f === p;
1708
+ this.debug("string match", p, f, hit);
1709
+ } else {
1710
+ hit = p.test(f);
1711
+ this.debug("pattern match", p, f, hit);
1712
+ }
1713
+ if (!hit)
1714
+ return false;
1715
+ }
1716
+ if (fi === fl && pi === pl) {
1717
+ return true;
1718
+ } else if (fi === fl) {
1719
+ return partial;
1720
+ } else if (pi === pl) {
1721
+ return fi === fl - 1 && file[fi] === "";
1722
+ } else {
1723
+ throw new Error("wtf?");
1724
+ }
1725
+ }
1726
+ braceExpand() {
1727
+ return braceExpand(this.pattern, this.options);
1728
+ }
1729
+ parse(pattern) {
1730
+ assertValidPattern(pattern);
1731
+ const options = this.options;
1732
+ if (pattern === "**")
1733
+ return GLOBSTAR;
1734
+ if (pattern === "")
1735
+ return "";
1736
+ let m;
1737
+ let fastTest = null;
1738
+ if (m = pattern.match(starRE)) {
1739
+ fastTest = options.dot ? starTestDot : starTest;
1740
+ } else if (m = pattern.match(starDotExtRE)) {
1741
+ fastTest = (options.nocase ? options.dot ? starDotExtTestNocaseDot : starDotExtTestNocase : options.dot ? starDotExtTestDot : starDotExtTest)(m[1]);
1742
+ } else if (m = pattern.match(qmarksRE)) {
1743
+ fastTest = (options.nocase ? options.dot ? qmarksTestNocaseDot : qmarksTestNocase : options.dot ? qmarksTestDot : qmarksTest)(m);
1744
+ } else if (m = pattern.match(starDotStarRE)) {
1745
+ fastTest = options.dot ? starDotStarTestDot : starDotStarTest;
1746
+ } else if (m = pattern.match(dotStarRE)) {
1747
+ fastTest = dotStarTest;
1748
+ }
1749
+ const re = AST.fromGlob(pattern, this.options).toMMPattern();
1750
+ if (fastTest && typeof re === "object") {
1751
+ Reflect.defineProperty(re, "test", { value: fastTest });
1752
+ }
1753
+ return re;
1754
+ }
1755
+ makeRe() {
1756
+ if (this.regexp || this.regexp === false)
1757
+ return this.regexp;
1758
+ const set = this.set;
1759
+ if (!set.length) {
1760
+ this.regexp = false;
1761
+ return this.regexp;
1762
+ }
1763
+ const options = this.options;
1764
+ const twoStar = options.noglobstar ? star2 : options.dot ? twoStarDot : twoStarNoDot;
1765
+ const flags = new Set(options.nocase ? ["i"] : []);
1766
+ let re = set.map((pattern) => {
1767
+ const pp = pattern.map((p) => {
1768
+ if (p instanceof RegExp) {
1769
+ for (const f of p.flags.split(""))
1770
+ flags.add(f);
1771
+ }
1772
+ return typeof p === "string" ? regExpEscape2(p) : p === GLOBSTAR ? GLOBSTAR : p._src;
1773
+ });
1774
+ pp.forEach((p, i2) => {
1775
+ const next = pp[i2 + 1];
1776
+ const prev = pp[i2 - 1];
1777
+ if (p !== GLOBSTAR || prev === GLOBSTAR) {
1778
+ return;
1779
+ }
1780
+ if (prev === void 0) {
1781
+ if (next !== void 0 && next !== GLOBSTAR) {
1782
+ pp[i2 + 1] = "(?:\\/|" + twoStar + "\\/)?" + next;
1783
+ } else {
1784
+ pp[i2] = twoStar;
1785
+ }
1786
+ } else if (next === void 0) {
1787
+ pp[i2 - 1] = prev + "(?:\\/|" + twoStar + ")?";
1788
+ } else if (next !== GLOBSTAR) {
1789
+ pp[i2 - 1] = prev + "(?:\\/|\\/" + twoStar + "\\/)" + next;
1790
+ pp[i2 + 1] = GLOBSTAR;
1791
+ }
1792
+ });
1793
+ return pp.filter((p) => p !== GLOBSTAR).join("/");
1794
+ }).join("|");
1795
+ const [open, close] = set.length > 1 ? ["(?:", ")"] : ["", ""];
1796
+ re = "^" + open + re + close + "$";
1797
+ if (this.negate)
1798
+ re = "^(?!" + re + ").+$";
1799
+ try {
1800
+ this.regexp = new RegExp(re, [...flags].join(""));
1801
+ } catch (ex) {
1802
+ this.regexp = false;
1803
+ }
1804
+ return this.regexp;
1805
+ }
1806
+ slashSplit(p) {
1807
+ if (this.preserveMultipleSlashes) {
1808
+ return p.split("/");
1809
+ } else if (this.isWindows && /^\/\/[^\/]+/.test(p)) {
1810
+ return ["", ...p.split(/\/+/)];
1811
+ } else {
1812
+ return p.split(/\/+/);
1813
+ }
1814
+ }
1815
+ match(f, partial = this.partial) {
1816
+ this.debug("match", f, this.pattern);
1817
+ if (this.comment) {
1818
+ return false;
1819
+ }
1820
+ if (this.empty) {
1821
+ return f === "";
1822
+ }
1823
+ if (f === "/" && partial) {
1824
+ return true;
1825
+ }
1826
+ const options = this.options;
1827
+ if (this.isWindows) {
1828
+ f = f.split("\\").join("/");
1829
+ }
1830
+ const ff = this.slashSplit(f);
1831
+ this.debug(this.pattern, "split", ff);
1832
+ const set = this.set;
1833
+ this.debug(this.pattern, "set", set);
1834
+ let filename = ff[ff.length - 1];
1835
+ if (!filename) {
1836
+ for (let i2 = ff.length - 2; !filename && i2 >= 0; i2--) {
1837
+ filename = ff[i2];
1838
+ }
1839
+ }
1840
+ for (let i2 = 0; i2 < set.length; i2++) {
1841
+ const pattern = set[i2];
1842
+ let file = ff;
1843
+ if (options.matchBase && pattern.length === 1) {
1844
+ file = [filename];
1845
+ }
1846
+ const hit = this.matchOne(file, pattern, partial);
1847
+ if (hit) {
1848
+ if (options.flipNegate) {
1849
+ return true;
1850
+ }
1851
+ return !this.negate;
1852
+ }
1853
+ }
1854
+ if (options.flipNegate) {
1855
+ return false;
1856
+ }
1857
+ return this.negate;
1858
+ }
1859
+ static defaults(def) {
1860
+ return minimatch.defaults(def).Minimatch;
1861
+ }
1862
+ };
1863
+ minimatch.AST = AST;
1864
+ minimatch.Minimatch = Minimatch;
1865
+ minimatch.escape = escape;
1866
+ minimatch.unescape = unescape;
1867
+
228
1868
  // src/utils/query-nonce-meta-tag-content.ts
229
1869
  function queryNonceMetaTagContent(doc) {
230
1870
  var _a, _b, _c;
@@ -297,7 +1937,8 @@ function createStyleSheetIfNeededAndSupported(styles2) {
297
1937
  var globalStyleSheet;
298
1938
  function createShadowRoot(cmpMeta) {
299
1939
  var _a;
300
- const shadowRoot = this.attachShadow({ mode: "open" });
1940
+ const opts = { mode: "open" };
1941
+ const shadowRoot = this.attachShadow(opts);
301
1942
  if (globalStyleSheet === void 0) globalStyleSheet = (_a = createStyleSheetIfNeededAndSupported(globalStyles)) != null ? _a : null;
302
1943
  if (globalStyleSheet) {
303
1944
  if (supportsMutableAdoptedStyleSheets) {
@@ -305,6 +1946,10 @@ function createShadowRoot(cmpMeta) {
305
1946
  } else {
306
1947
  shadowRoot.adoptedStyleSheets = [...shadowRoot.adoptedStyleSheets, globalStyleSheet];
307
1948
  }
1949
+ } else if (!supportsConstructableStylesheets) {
1950
+ const styleElm = document.createElement("style");
1951
+ styleElm.innerHTML = globalStyles;
1952
+ shadowRoot.prepend(styleElm);
308
1953
  }
309
1954
  }
310
1955
  var updateFallbackSlotVisibility = (elm) => {
@@ -443,7 +2088,7 @@ var registerStyle = (scopeId2, cssText, allowCS) => {
443
2088
  styles.set(scopeId2, style);
444
2089
  };
445
2090
  var addStyle = (styleContainerNode, cmpMeta, mode) => {
446
- var _a;
2091
+ var _a, _b, _c;
447
2092
  const scopeId2 = getScopeId(cmpMeta);
448
2093
  const style = styles.get(scopeId2);
449
2094
  if (!win.document) {
@@ -459,45 +2104,44 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
459
2104
  rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
460
2105
  }
461
2106
  if (!appliedStyles.has(scopeId2)) {
462
- {
463
- styleElm = win.document.createElement("style");
464
- styleElm.innerHTML = style;
465
- const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
466
- if (nonce != null) {
467
- styleElm.setAttribute("nonce", nonce);
468
- }
469
- if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
470
- if (styleContainerNode.nodeName === "HEAD") {
471
- const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
472
- const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
473
- styleContainerNode.insertBefore(
474
- styleElm,
475
- (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
476
- );
477
- } else if ("host" in styleContainerNode) {
478
- if (supportsConstructableStylesheets) {
479
- const stylesheet = new CSSStyleSheet();
480
- stylesheet.replaceSync(style);
481
- if (supportsMutableAdoptedStyleSheets) {
482
- styleContainerNode.adoptedStyleSheets.unshift(stylesheet);
483
- } else {
484
- styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
485
- }
2107
+ styleElm = win.document.createElement("style");
2108
+ styleElm.innerHTML = style;
2109
+ const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
2110
+ if (nonce != null) {
2111
+ styleElm.setAttribute("nonce", nonce);
2112
+ }
2113
+ if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
2114
+ if (styleContainerNode.nodeName === "HEAD") {
2115
+ const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
2116
+ const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
2117
+ styleContainerNode.insertBefore(
2118
+ styleElm,
2119
+ (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
2120
+ );
2121
+ } else if ("host" in styleContainerNode) {
2122
+ if (supportsConstructableStylesheets) {
2123
+ const currentWindow = (_b = styleContainerNode.defaultView) != null ? _b : styleContainerNode.ownerDocument.defaultView;
2124
+ const stylesheet = new currentWindow.CSSStyleSheet();
2125
+ stylesheet.replaceSync(style);
2126
+ if (supportsMutableAdoptedStyleSheets) {
2127
+ styleContainerNode.adoptedStyleSheets.unshift(stylesheet);
486
2128
  } else {
487
- const existingStyleContainer = styleContainerNode.querySelector("style");
488
- if (existingStyleContainer) {
489
- existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
490
- } else {
491
- styleContainerNode.prepend(styleElm);
492
- }
2129
+ styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
493
2130
  }
494
2131
  } else {
495
- styleContainerNode.append(styleElm);
2132
+ const existingStyleContainer = styleContainerNode.querySelector("style");
2133
+ if (existingStyleContainer) {
2134
+ existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
2135
+ } else {
2136
+ styleContainerNode.prepend(styleElm);
2137
+ }
496
2138
  }
2139
+ } else {
2140
+ styleContainerNode.append(styleElm);
497
2141
  }
498
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
499
- styleContainerNode.insertBefore(styleElm, null);
500
- }
2142
+ }
2143
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
2144
+ styleContainerNode.insertBefore(styleElm, null);
501
2145
  }
502
2146
  if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
503
2147
  styleElm.innerHTML += SLOT_FB_CSS;
@@ -506,11 +2150,28 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
506
2150
  appliedStyles.add(scopeId2);
507
2151
  }
508
2152
  }
509
- } else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
510
- if (supportsMutableAdoptedStyleSheets) {
511
- styleContainerNode.adoptedStyleSheets.push(style);
512
- } else {
513
- styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
2153
+ } else {
2154
+ let appliedStyles = rootAppliedStyles.get(styleContainerNode);
2155
+ if (!appliedStyles) {
2156
+ rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
2157
+ }
2158
+ if (!appliedStyles.has(scopeId2)) {
2159
+ const currentWindow = (_c = styleContainerNode.defaultView) != null ? _c : styleContainerNode.ownerDocument.defaultView;
2160
+ let stylesheet;
2161
+ if (style.constructor === currentWindow.CSSStyleSheet) {
2162
+ stylesheet = style;
2163
+ } else {
2164
+ stylesheet = new currentWindow.CSSStyleSheet();
2165
+ for (let i2 = 0; i2 < style.cssRules.length; i2++) {
2166
+ stylesheet.insertRule(style.cssRules[i2].cssText, i2);
2167
+ }
2168
+ }
2169
+ if (supportsMutableAdoptedStyleSheets) {
2170
+ styleContainerNode.adoptedStyleSheets.push(stylesheet);
2171
+ } else {
2172
+ styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, stylesheet];
2173
+ }
2174
+ appliedStyles.add(scopeId2);
514
2175
  }
515
2176
  }
516
2177
  }
@@ -532,6 +2193,9 @@ var attachStyles = (hostRef) => {
532
2193
  };
533
2194
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
534
2195
  var h = (nodeName, vnodeData, ...children) => {
2196
+ if (typeof nodeName === "string") {
2197
+ nodeName = transformTag(nodeName);
2198
+ }
535
2199
  let child = null;
536
2200
  let key = null;
537
2201
  let slotName = null;
@@ -902,10 +2566,11 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
902
2566
  elm.classList.add(elm["s-si"] = scopeId);
903
2567
  }
904
2568
  if (newVNode2.$children$) {
2569
+ const appendTarget = newVNode2.$tag$ === "template" ? elm.content : elm;
905
2570
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
906
2571
  childNode = createElm(oldParentVNode, newVNode2, i2);
907
2572
  if (childNode) {
908
- elm.appendChild(childNode);
2573
+ appendTarget.appendChild(childNode);
909
2574
  }
910
2575
  }
911
2576
  }
@@ -955,6 +2620,9 @@ var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
955
2620
  if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
956
2621
  containerElm = containerElm.shadowRoot;
957
2622
  }
2623
+ if (parentVNode.$tag$ === "template") {
2624
+ containerElm = containerElm.content;
2625
+ }
958
2626
  for (; startIdx <= endIdx; ++startIdx) {
959
2627
  if (vnodes[startIdx]) {
960
2628
  childNode = createElm(null, parentVNode, startIdx);
@@ -998,6 +2666,7 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
998
2666
  let newEndVnode = newCh[newEndIdx];
999
2667
  let node;
1000
2668
  let elmToMove;
2669
+ const containerElm = newVNode2.$tag$ === "template" ? parentElm.content : parentElm;
1001
2670
  while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
1002
2671
  if (oldStartVnode == null) {
1003
2672
  oldStartVnode = oldCh[++oldStartIdx];
@@ -1020,7 +2689,7 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
1020
2689
  putBackInOriginalLocation(oldStartVnode.$elm$.parentNode, false);
1021
2690
  }
1022
2691
  patch(oldStartVnode, newEndVnode, isInitialRender);
1023
- insertBefore(parentElm, oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
2692
+ insertBefore(containerElm, oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
1024
2693
  oldStartVnode = oldCh[++oldStartIdx];
1025
2694
  newEndVnode = newCh[--newEndIdx];
1026
2695
  } else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
@@ -1028,7 +2697,7 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
1028
2697
  putBackInOriginalLocation(oldEndVnode.$elm$.parentNode, false);
1029
2698
  }
1030
2699
  patch(oldEndVnode, newStartVnode, isInitialRender);
1031
- insertBefore(parentElm, oldEndVnode.$elm$, oldStartVnode.$elm$);
2700
+ insertBefore(containerElm, oldEndVnode.$elm$, oldStartVnode.$elm$);
1032
2701
  oldEndVnode = oldCh[--oldEndIdx];
1033
2702
  newStartVnode = newCh[++newStartIdx];
1034
2703
  } else {
@@ -1260,13 +2929,16 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
1260
2929
  for (const relocateData of relocateNodes) {
1261
2930
  const nodeToRelocate = relocateData.$nodeToRelocate$;
1262
2931
  const slotRefNode = relocateData.$slotRefNode$;
2932
+ if (nodeToRelocate.nodeType === 1 /* ElementNode */ && isInitialLoad) {
2933
+ nodeToRelocate["s-ih"] = (_a = nodeToRelocate.hidden) != null ? _a : false;
2934
+ }
1263
2935
  if (slotRefNode) {
1264
2936
  const parentNodeRef = slotRefNode.parentNode;
1265
2937
  let insertBeforeNode = slotRefNode.nextSibling;
1266
2938
  {
1267
- let orgLocationNode = (_a = nodeToRelocate["s-ol"]) == null ? void 0 : _a.previousSibling;
2939
+ let orgLocationNode = (_b = nodeToRelocate["s-ol"]) == null ? void 0 : _b.previousSibling;
1268
2940
  while (orgLocationNode) {
1269
- let refNode = (_b = orgLocationNode["s-nr"]) != null ? _b : null;
2941
+ let refNode = (_c = orgLocationNode["s-nr"]) != null ? _c : null;
1270
2942
  if (refNode && refNode["s-sn"] === nodeToRelocate["s-sn"] && parentNodeRef === (refNode.__parentNode || refNode.parentNode)) {
1271
2943
  refNode = refNode.nextSibling;
1272
2944
  while (refNode === nodeToRelocate || (refNode == null ? void 0 : refNode["s-sr"])) {
@@ -1289,18 +2961,13 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
1289
2961
  }
1290
2962
  insertBefore(parentNodeRef, nodeToRelocate, insertBeforeNode);
1291
2963
  if (nodeToRelocate.nodeType === 1 /* ElementNode */ && nodeToRelocate.tagName !== "SLOT-FB") {
1292
- nodeToRelocate.hidden = (_c = nodeToRelocate["s-ih"]) != null ? _c : false;
2964
+ nodeToRelocate.hidden = (_d = nodeToRelocate["s-ih"]) != null ? _d : false;
1293
2965
  }
1294
2966
  }
1295
2967
  }
1296
2968
  nodeToRelocate && typeof slotRefNode["s-rf"] === "function" && slotRefNode["s-rf"](slotRefNode);
1297
- } else {
1298
- if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
1299
- if (isInitialLoad) {
1300
- nodeToRelocate["s-ih"] = (_d = nodeToRelocate.hidden) != null ? _d : false;
1301
- }
1302
- nodeToRelocate.hidden = true;
1303
- }
2969
+ } else if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
2970
+ nodeToRelocate.hidden = true;
1304
2971
  }
1305
2972
  }
1306
2973
  }
@@ -1521,27 +3188,34 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
1521
3188
  const didValueChange = newVal !== oldVal && !areBothNaN;
1522
3189
  if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
1523
3190
  hostRef.$instanceValues$.set(propName, newVal);
1524
- if (instance) {
1525
- if (cmpMeta.$watchers$ && flags & 128 /* isWatchReady */) {
1526
- const watchMethods = cmpMeta.$watchers$[propName];
1527
- if (watchMethods) {
1528
- watchMethods.map((watchMethodName) => {
1529
- try {
1530
- instance[watchMethodName](newVal, oldVal, propName);
1531
- } catch (e) {
1532
- consoleError(e, elm);
3191
+ if (cmpMeta.$watchers$) {
3192
+ const watchMethods = cmpMeta.$watchers$[propName];
3193
+ if (watchMethods) {
3194
+ watchMethods.map((watcher) => {
3195
+ try {
3196
+ const [[watchMethodName, watcherFlags]] = Object.entries(watcher);
3197
+ if (flags & 128 /* isWatchReady */ || watcherFlags & 1 /* Immediate */) {
3198
+ if (!instance) {
3199
+ hostRef.$fetchedCbList$.push(() => {
3200
+ hostRef.$lazyInstance$[watchMethodName](newVal, oldVal, propName);
3201
+ });
3202
+ } else {
3203
+ instance[watchMethodName](newVal, oldVal, propName);
3204
+ }
1533
3205
  }
1534
- });
1535
- }
1536
- }
1537
- if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
1538
- if (instance.componentShouldUpdate) {
1539
- if (instance.componentShouldUpdate(newVal, oldVal, propName) === false) {
1540
- return;
3206
+ } catch (e) {
3207
+ consoleError(e, elm);
1541
3208
  }
3209
+ });
3210
+ }
3211
+ }
3212
+ if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
3213
+ if (instance.componentShouldUpdate) {
3214
+ if (instance.componentShouldUpdate(newVal, oldVal, propName) === false) {
3215
+ return;
1542
3216
  }
1543
- scheduleUpdate(hostRef, false);
1544
3217
  }
3218
+ scheduleUpdate(hostRef, false);
1545
3219
  }
1546
3220
  }
1547
3221
  };
@@ -1666,19 +3340,23 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1666
3340
  return;
1667
3341
  } else if (propName == null) {
1668
3342
  const flags2 = hostRef == null ? void 0 : hostRef.$flags$;
1669
- if (hostRef && flags2 && !(flags2 & 8 /* isConstructingInstance */) && flags2 & 128 /* isWatchReady */ && newValue !== oldValue) {
3343
+ if (hostRef && flags2 && !(flags2 & 8 /* isConstructingInstance */) && newValue !== oldValue) {
1670
3344
  const instance = hostRef.$lazyInstance$ ;
1671
3345
  const entry = (_a2 = cmpMeta.$watchers$) == null ? void 0 : _a2[attrName];
1672
- entry == null ? void 0 : entry.forEach((callbackName) => {
1673
- if (instance[callbackName] != null) {
1674
- instance[callbackName].call(instance, newValue, oldValue, attrName);
3346
+ entry == null ? void 0 : entry.forEach((watcher) => {
3347
+ const [[watchMethodName, watcherFlags]] = Object.entries(watcher);
3348
+ if (instance[watchMethodName] != null && (flags2 & 128 /* isWatchReady */ || watcherFlags & 1 /* Immediate */)) {
3349
+ instance[watchMethodName].call(instance, newValue, oldValue, attrName);
1675
3350
  }
1676
3351
  });
1677
3352
  }
1678
3353
  return;
1679
3354
  }
3355
+ const propFlags = members.find(([m]) => m === propName);
3356
+ if (propFlags && propFlags[1][0] & 4 /* Boolean */) {
3357
+ newValue = newValue === null || newValue === "false" ? false : true;
3358
+ }
1680
3359
  const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1681
- newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1682
3360
  if (newValue != this[propName] && (!propDesc.get || !!propDesc.set)) {
1683
3361
  this[propName] = newValue;
1684
3362
  }
@@ -1758,7 +3436,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1758
3436
  style = Cstr.style;
1759
3437
  }
1760
3438
  const scopeId2 = getScopeId(cmpMeta);
1761
- if (!styles.has(scopeId2)) {
3439
+ if (!styles.has(scopeId2) || BUILD.hotModuleReplacement) {
1762
3440
  const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
1763
3441
  registerStyle(scopeId2, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
1764
3442
  endRegisterStyles();
@@ -1912,7 +3590,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1912
3590
  cmpMeta.$serializers$ = (_b = compactMeta[5]) != null ? _b : {};
1913
3591
  cmpMeta.$deserializers$ = (_c = compactMeta[6]) != null ? _c : {};
1914
3592
  }
1915
- const tagName = cmpMeta.$tagName$;
3593
+ const tagName = transformTag(cmpMeta.$tagName$);
1916
3594
  const HostElement = class extends HTMLElement {
1917
3595
  // StencilLazyHost
1918
3596
  constructor(self) {
@@ -2043,6 +3721,9 @@ var hostListenerOpts = (flags) => supportsListenerOptions ? {
2043
3721
 
2044
3722
  // src/runtime/nonce.ts
2045
3723
  var setNonce = (nonce) => plt.$nonce$ = nonce;
3724
+ function transformTag(tag) {
3725
+ return tag;
3726
+ }
2046
3727
 
2047
3728
  exports.Host = Host;
2048
3729
  exports.bootstrapLazy = bootstrapLazy;