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