@swisspost/design-system-components 10.0.0-next.67 → 10.0.0-next.69

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 (490) hide show
  1. package/dist/.config/rollup-plugin.air-datepicker-locale.js +30 -0
  2. package/dist/cjs/_air-datepicker-locale_ar-CWOSiErt.js +5 -0
  3. package/dist/cjs/_air-datepicker-locale_bg-JFWSZzWm.js +5 -0
  4. package/dist/cjs/_air-datepicker-locale_ca-D4TAa7rI.js +5 -0
  5. package/dist/cjs/_air-datepicker-locale_cs-DosuWhKM.js +5 -0
  6. package/dist/cjs/_air-datepicker-locale_da-B5NHFJuC.js +5 -0
  7. package/dist/cjs/_air-datepicker-locale_de-pCyAfzJ2.js +5 -0
  8. package/dist/cjs/_air-datepicker-locale_el-Cpwc-DA1.js +5 -0
  9. package/dist/cjs/_air-datepicker-locale_en-Be7ImjN_.js +5 -0
  10. package/dist/cjs/_air-datepicker-locale_es-Cv0KAzTX.js +5 -0
  11. package/dist/cjs/_air-datepicker-locale_eu-DIWyMMth.js +5 -0
  12. package/dist/cjs/_air-datepicker-locale_fi-D0NlYCfL.js +5 -0
  13. package/dist/cjs/_air-datepicker-locale_fr-SkEOXj1I.js +5 -0
  14. package/dist/cjs/_air-datepicker-locale_hr-BrTsx2iQ.js +5 -0
  15. package/dist/cjs/_air-datepicker-locale_hu-a5Toa3rt.js +5 -0
  16. package/dist/cjs/_air-datepicker-locale_id-h0ieLcJv.js +5 -0
  17. package/dist/cjs/_air-datepicker-locale_it-DQeeF5n7.js +5 -0
  18. package/dist/cjs/_air-datepicker-locale_ja-C78DHDAv.js +5 -0
  19. package/dist/cjs/_air-datepicker-locale_ko-BGSYNW_t.js +5 -0
  20. package/dist/cjs/_air-datepicker-locale_nb-BQkZ_Pvp.js +5 -0
  21. package/dist/cjs/_air-datepicker-locale_nl-DG6dvxj-.js +5 -0
  22. package/dist/cjs/_air-datepicker-locale_pl-mZxBq8TF.js +5 -0
  23. package/dist/cjs/_air-datepicker-locale_pt-sCO-c8dQ.js +5 -0
  24. package/dist/cjs/_air-datepicker-locale_ro-Cf2HyYTE.js +5 -0
  25. package/dist/cjs/_air-datepicker-locale_ru-BS-yHOKw.js +5 -0
  26. package/dist/cjs/_air-datepicker-locale_si-C-vceOjt.js +5 -0
  27. package/dist/cjs/_air-datepicker-locale_sk-D6Sexd7V.js +5 -0
  28. package/dist/cjs/_air-datepicker-locale_sl-C769P2Cr.js +5 -0
  29. package/dist/cjs/_air-datepicker-locale_sv-DV21M0v9.js +5 -0
  30. package/dist/cjs/_air-datepicker-locale_th-HFoj3y5r.js +5 -0
  31. package/dist/cjs/_air-datepicker-locale_tr-C4soRqRo.js +5 -0
  32. package/dist/cjs/_air-datepicker-locale_uk-BM5nVNZS.js +5 -0
  33. package/dist/cjs/_air-datepicker-locale_zh-B4bR_9wv.js +5 -0
  34. package/dist/cjs/{get-focusable-children-CL2gimr1.js → get-focusable-children-BGVgg7Te.js} +1 -1
  35. package/dist/cjs/{get-root-BIh00Adr.js → get-root-B1FnQ50K.js} +1 -3
  36. package/dist/cjs/{index-Byyrsgop.js → index-DPdHkdGf.js} +357 -1933
  37. package/dist/cjs/index-YBj3gUJp.js +114540 -0
  38. package/dist/cjs/{index.browser-Doj636JV.js → index.browser-BVb9l9T_.js} +1 -1
  39. package/dist/cjs/loader.cjs.js +2 -2
  40. package/dist/{esm/long-press-event-C_2k3G1c.js → cjs/long-press-event-Dx21Ojod.js} +13 -1
  41. package/dist/cjs/{package-BMq-R5Xi.js → package-CzSn3NmD.js} +1 -1
  42. package/dist/cjs/post-accordion_2.cjs.entry.js +4 -4
  43. package/dist/cjs/post-autocomplete.cjs.entry.js +36 -10
  44. package/dist/cjs/post-avatar.cjs.entry.js +4 -4
  45. package/dist/cjs/post-back-to-top.cjs.entry.js +4 -4
  46. package/dist/cjs/post-banner.cjs.entry.js +4 -4
  47. package/dist/cjs/post-breadcrumb-item.cjs.entry.js +4 -5
  48. package/dist/cjs/post-breadcrumbs.cjs.entry.js +11 -9
  49. package/dist/cjs/post-closebutton_14.cjs.entry.js +64 -55
  50. package/dist/cjs/post-collapsible_2.cjs.entry.js +16 -9
  51. package/dist/cjs/post-components.cjs.js +3 -3
  52. package/dist/cjs/post-date-picker.cjs.entry.js +368 -268
  53. package/dist/cjs/post-footer.cjs.entry.js +5 -5
  54. package/dist/cjs/post-linkarea.cjs.entry.js +3 -3
  55. package/dist/cjs/post-listbox-option.cjs.entry.js +4 -4
  56. package/dist/cjs/post-listbox.cjs.entry.js +4 -4
  57. package/dist/cjs/post-login-widget.cjs.entry.js +60 -0
  58. package/dist/cjs/post-number-input.cjs.entry.js +5 -5
  59. package/dist/cjs/post-pagination.cjs.entry.js +5 -5
  60. package/dist/cjs/post-popover-trigger.cjs.entry.js +3 -3
  61. package/dist/cjs/post-popover.cjs.entry.js +5 -5
  62. package/dist/cjs/post-rating.cjs.entry.js +4 -4
  63. package/dist/cjs/post-stepper-item.cjs.entry.js +3 -3
  64. package/dist/cjs/post-stepper.cjs.entry.js +6 -6
  65. package/dist/cjs/post-tab-item.cjs.entry.js +5 -5
  66. package/dist/cjs/post-tab-panel.cjs.entry.js +5 -5
  67. package/dist/cjs/post-tabs.cjs.entry.js +5 -5
  68. package/dist/cjs/post-tooltip-trigger.cjs.entry.js +5 -5
  69. package/dist/cjs/post-tooltip.cjs.entry.js +5 -5
  70. package/dist/collection/animations/collapse.js +8 -2
  71. package/dist/collection/collection-manifest.json +3 -1
  72. package/dist/collection/components/post-autocomplete/post-autocomplete.css +1 -1
  73. package/dist/collection/components/post-autocomplete/post-autocomplete.js +52 -7
  74. package/dist/collection/components/post-avatar/post-avatar.js +1 -1
  75. package/dist/collection/components/post-back-to-top/post-back-to-top.js +1 -1
  76. package/dist/collection/components/post-banner/post-banner.js +1 -1
  77. package/dist/collection/components/post-breadcrumb-item/post-breadcrumb-item.js +40 -3
  78. package/dist/collection/components/post-breadcrumbs/post-breadcrumbs.js +8 -6
  79. package/dist/collection/components/post-closebutton/post-closebutton.css +1 -1
  80. package/dist/collection/components/post-closebutton/post-closebutton.js +1 -1
  81. package/dist/collection/components/post-collapsible/post-collapsible.js +1 -1
  82. package/dist/collection/components/post-collapsible-trigger/post-collapsible-trigger.js +1 -1
  83. package/dist/collection/components/post-date-picker/air-locales.js +34 -0
  84. package/dist/collection/components/post-date-picker/constants.js +42 -0
  85. package/dist/collection/components/post-date-picker/post-date-picker.css +6 -2
  86. package/dist/collection/components/post-date-picker/post-date-picker.js +295 -135
  87. package/dist/collection/components/post-footer/post-footer.js +1 -1
  88. package/dist/collection/components/post-header/post-header.css +1 -1
  89. package/dist/collection/components/post-header/post-header.js +5 -5
  90. package/dist/collection/components/post-icon/post-icon.js +2 -2
  91. package/dist/collection/components/post-language-menu/post-language-menu.css +1 -1
  92. package/dist/collection/components/post-language-menu/post-language-menu.js +11 -1
  93. package/dist/collection/components/post-language-menu-item/post-language-menu-item.js +27 -1
  94. package/dist/collection/components/post-linkarea/post-linkarea.js +1 -1
  95. package/dist/collection/components/post-listbox/post-listbox.js +1 -1
  96. package/dist/collection/components/post-listbox-option/post-listbox-option.js +2 -2
  97. package/dist/collection/components/post-login-widget/post-login-widget.js +120 -0
  98. package/dist/collection/components/post-megadropdown/post-megadropdown.css +1 -1
  99. package/dist/collection/components/post-megadropdown-trigger/post-megadropdown-trigger.css +1 -1
  100. package/dist/collection/components/post-menu/post-menu.js +3 -2
  101. package/dist/collection/components/post-number-input/post-number-input.css +1 -1
  102. package/dist/collection/components/post-pagination/post-pagination.css +1 -1
  103. package/dist/collection/components/post-popover/post-popover.js +1 -1
  104. package/dist/collection/components/post-popovercontainer/post-popovercontainer.css +1 -1
  105. package/dist/collection/components/post-popovercontainer/post-popovercontainer.js +4 -11
  106. package/dist/collection/components/post-rating/post-rating.js +1 -1
  107. package/dist/collection/components/post-stepper/post-stepper.js +4 -4
  108. package/dist/collection/components/post-stepper-item/post-stepper-item.js +1 -1
  109. package/dist/collection/components/post-tab-item/post-tab-item.js +1 -1
  110. package/dist/collection/components/post-tab-panel/post-tab-panel.js +1 -1
  111. package/dist/collection/components/post-tabs/post-tabs.js +2 -2
  112. package/dist/collection/components/post-togglebutton/post-togglebutton.js +1 -1
  113. package/dist/collection/components/post-tooltip/post-tooltip.css +1 -1
  114. package/dist/collection/components/post-tooltip/post-tooltip.js +2 -2
  115. package/dist/collection/components/post-tooltip-trigger/post-tooltip-trigger.js +1 -1
  116. package/dist/collection/utils/attribute-observer.js +1 -2
  117. package/dist/collection/utils/breakpoints.js +7 -8
  118. package/dist/collection/utils/get-root.js +1 -2
  119. package/dist/collection/utils/index.js +1 -0
  120. package/dist/collection/utils/is-iso-date.js +7 -6
  121. package/dist/collection/utils/is-motion-reduced.js +3 -2
  122. package/dist/collection/utils/locales.js +17 -0
  123. package/dist/component-names.json +1 -0
  124. package/dist/components/_air-datepicker-locale_ar.js +1 -0
  125. package/dist/components/_air-datepicker-locale_bg.js +1 -0
  126. package/dist/components/_air-datepicker-locale_ca.js +1 -0
  127. package/dist/components/_air-datepicker-locale_cs.js +1 -0
  128. package/dist/components/_air-datepicker-locale_da.js +1 -0
  129. package/dist/components/_air-datepicker-locale_de.js +1 -0
  130. package/dist/components/_air-datepicker-locale_el.js +1 -0
  131. package/dist/components/_air-datepicker-locale_en.js +1 -0
  132. package/dist/components/_air-datepicker-locale_es.js +1 -0
  133. package/dist/components/_air-datepicker-locale_eu.js +1 -0
  134. package/dist/components/_air-datepicker-locale_fi.js +1 -0
  135. package/dist/components/_air-datepicker-locale_fr.js +1 -0
  136. package/dist/components/_air-datepicker-locale_hr.js +1 -0
  137. package/dist/components/_air-datepicker-locale_hu.js +1 -0
  138. package/dist/components/_air-datepicker-locale_id.js +1 -0
  139. package/dist/components/_air-datepicker-locale_it.js +1 -0
  140. package/dist/components/_air-datepicker-locale_ja.js +1 -0
  141. package/dist/components/_air-datepicker-locale_ko.js +1 -0
  142. package/dist/components/_air-datepicker-locale_nb.js +1 -0
  143. package/dist/components/_air-datepicker-locale_nl.js +1 -0
  144. package/dist/components/_air-datepicker-locale_pl.js +1 -0
  145. package/dist/components/_air-datepicker-locale_pt.js +1 -0
  146. package/dist/components/_air-datepicker-locale_ro.js +1 -0
  147. package/dist/components/_air-datepicker-locale_ru.js +1 -0
  148. package/dist/components/_air-datepicker-locale_si.js +1 -0
  149. package/dist/components/_air-datepicker-locale_sk.js +1 -0
  150. package/dist/components/_air-datepicker-locale_sl.js +1 -0
  151. package/dist/components/_air-datepicker-locale_sv.js +1 -0
  152. package/dist/components/_air-datepicker-locale_th.js +1 -0
  153. package/dist/components/_air-datepicker-locale_tr.js +1 -0
  154. package/dist/components/_air-datepicker-locale_uk.js +1 -0
  155. package/dist/components/_air-datepicker-locale_zh.js +1 -0
  156. package/dist/components/get-root.js +1 -1
  157. package/dist/components/index.d.ts +2 -0
  158. package/dist/components/index.js +1 -1
  159. package/dist/components/index2.js +1 -0
  160. package/dist/components/index3.js +6 -0
  161. package/dist/components/long-press-event.js +1 -1
  162. package/dist/components/package.js +1 -1
  163. package/dist/components/post-accordion-item2.js +1 -1
  164. package/dist/components/post-accordion2.js +1 -1
  165. package/dist/components/post-autocomplete.js +1 -1
  166. package/dist/components/post-avatar.js +1 -1
  167. package/dist/components/post-back-to-top.js +1 -1
  168. package/dist/components/post-banner.js +1 -1
  169. package/dist/components/post-breadcrumb-item2.js +1 -1
  170. package/dist/components/post-breadcrumbs.js +1 -1
  171. package/dist/components/post-closebutton2.js +1 -1
  172. package/dist/components/post-collapsible-trigger2.js +1 -1
  173. package/dist/components/post-collapsible2.js +1 -1
  174. package/dist/components/post-date-picker.js +1 -1
  175. package/dist/components/post-footer.js +1 -1
  176. package/dist/components/post-header.js +1 -1
  177. package/dist/components/post-icon2.js +1 -1
  178. package/dist/components/post-language-menu-item.js +1 -1
  179. package/dist/components/post-language-menu.js +1 -1
  180. package/dist/components/post-linkarea.js +1 -1
  181. package/dist/components/post-listbox-option.js +1 -1
  182. package/dist/components/post-listbox.js +1 -1
  183. package/dist/components/post-login-widget.d.ts +11 -0
  184. package/dist/components/post-login-widget.js +1 -0
  185. package/dist/components/post-logo.js +1 -1
  186. package/dist/components/post-mainnavigation.js +1 -1
  187. package/dist/components/post-megadropdown-trigger.js +1 -1
  188. package/dist/components/post-megadropdown.js +1 -1
  189. package/dist/components/post-menu-trigger2.js +1 -1
  190. package/dist/components/post-menu2.js +1 -1
  191. package/dist/components/post-number-input.js +1 -1
  192. package/dist/components/post-pagination.js +1 -1
  193. package/dist/components/post-popover-trigger.js +1 -1
  194. package/dist/components/post-popover.js +1 -1
  195. package/dist/components/post-popovercontainer2.js +1 -1
  196. package/dist/components/post-rating.js +1 -1
  197. package/dist/components/post-stepper-item.js +1 -1
  198. package/dist/components/post-stepper.js +1 -1
  199. package/dist/components/post-tab-item.js +1 -1
  200. package/dist/components/post-tab-panel.js +1 -1
  201. package/dist/components/post-tabs.js +1 -1
  202. package/dist/components/post-togglebutton2.js +1 -1
  203. package/dist/components/post-tooltip-trigger.js +1 -1
  204. package/dist/components/post-tooltip.js +1 -1
  205. package/dist/components/react/index.js +1 -1
  206. package/dist/components/react/p-08F-DB-d.js +1 -0
  207. package/dist/components/react/p-B0UL6WWC.js +1 -0
  208. package/dist/components/react/p-B2BDAeHI.js +1 -0
  209. package/dist/components/react/p-B4l5EAoq.js +1 -0
  210. package/dist/components/react/{p-Bq6Ye6Uc.js → p-B4tq6hiA.js} +1 -1
  211. package/dist/components/react/p-B5zHEJHg.js +1 -0
  212. package/dist/components/react/p-BI8IDv3x.js +1 -0
  213. package/dist/components/react/p-BL8Kkhue.js +1 -0
  214. package/dist/components/react/{p-C_2k3G1c.js → p-BNgqqRsB.js} +1 -1
  215. package/dist/components/react/p-BYfHrHCb.js +1 -0
  216. package/dist/components/react/p-B_mxRlWV.js +1 -0
  217. package/dist/components/react/p-BaE0RQYu.js +1 -0
  218. package/dist/components/react/p-BbOp03Tv.js +1 -0
  219. package/dist/components/react/p-BfPjPzPS.js +1 -0
  220. package/dist/components/react/p-BhrWATcv.js +1 -0
  221. package/dist/components/react/p-Bj33xnuq.js +1 -0
  222. package/dist/components/react/p-Blr-q_ib.js +1 -0
  223. package/dist/components/react/p-ByHlofKQ.js +1 -0
  224. package/dist/components/react/p-BzFuQlXL.js +1 -0
  225. package/dist/components/react/p-C820VY6h.js +1 -0
  226. package/dist/components/react/p-CHD6fZJe.js +1 -0
  227. package/dist/components/react/p-CJcRbvrI.js +6 -0
  228. package/dist/components/react/p-CKeMJgsB.js +1 -0
  229. package/dist/components/react/p-CKmlbvS5.js +1 -0
  230. package/dist/components/react/p-CLO4Gc79.js +1 -0
  231. package/dist/components/react/p-COcQTTvB.js +1 -0
  232. package/dist/components/react/p-CY0xDY7T.js +1 -0
  233. package/dist/components/react/p-CaXZrKGy.js +1 -0
  234. package/dist/components/react/p-CfQqdIV2.js +1 -0
  235. package/dist/components/react/p-Cp9RABzO.js +1 -0
  236. package/dist/components/react/{p-BvY9Yl0A.js → p-D1KBbwmi.js} +1 -1
  237. package/dist/components/react/p-D74-8pcb.js +1 -0
  238. package/dist/components/react/p-D7MKQ7S-.js +1 -0
  239. package/dist/components/react/p-DAIxJysJ.js +1 -0
  240. package/dist/components/react/p-DLWEDodU.js +1 -0
  241. package/dist/components/react/p-DQq5Bnk2.js +1 -0
  242. package/dist/components/react/p-DRtzK3cr.js +1 -0
  243. package/dist/components/react/p-DYpJ3j2A.js +1 -0
  244. package/dist/components/react/p-De_QjSNJ.js +1 -0
  245. package/dist/components/react/p-DiNZLG90.js +1 -0
  246. package/dist/components/react/p-Dp41Pg4o.js +1 -0
  247. package/dist/components/react/{p-BlBcIJe_.js → p-DsaGKkkf.js} +1 -1
  248. package/dist/components/react/p-DwJ5SwpN.js +1 -0
  249. package/dist/components/react/{p-D3Tx-0vM.js → p-HNUXY1z7.js} +1 -1
  250. package/dist/components/react/p-TmutBiUy.js +1 -0
  251. package/dist/components/react/{p-CKkmf4_w.js → p-UY924tHr.js} +1 -1
  252. package/dist/components/react/p-bl3gSRgH.js +1 -0
  253. package/dist/components/react/p-jZZU8-Dx.js +1 -0
  254. package/dist/components/react/p-r5tpdxcW.js +1 -0
  255. package/dist/components/react/p-tHlklq2F.js +1 -0
  256. package/dist/components/react/post-accordion-item.js +1 -1
  257. package/dist/components/react/post-accordion.js +1 -1
  258. package/dist/components/react/post-autocomplete.js +1 -1
  259. package/dist/components/react/post-avatar.js +1 -1
  260. package/dist/components/react/post-back-to-top.js +1 -1
  261. package/dist/components/react/post-banner.js +1 -1
  262. package/dist/components/react/post-breadcrumb-item.js +1 -1
  263. package/dist/components/react/post-breadcrumbs.js +1 -1
  264. package/dist/components/react/post-closebutton.js +1 -1
  265. package/dist/components/react/post-collapsible-trigger.js +1 -1
  266. package/dist/components/react/post-collapsible.js +1 -1
  267. package/dist/components/react/post-date-picker.js +1 -1
  268. package/dist/components/react/post-footer.js +1 -1
  269. package/dist/components/react/post-header.js +1 -1
  270. package/dist/components/react/post-icon.js +1 -1
  271. package/dist/components/react/post-language-menu-item.js +1 -1
  272. package/dist/components/react/post-language-menu.js +1 -1
  273. package/dist/components/react/post-linkarea.js +1 -1
  274. package/dist/components/react/post-listbox-option.js +1 -1
  275. package/dist/components/react/post-listbox.js +1 -1
  276. package/dist/components/react/post-login-widget.d.ts +11 -0
  277. package/dist/components/react/post-login-widget.js +1 -0
  278. package/dist/components/react/post-logo.js +1 -1
  279. package/dist/components/react/post-mainnavigation.js +1 -1
  280. package/dist/components/react/post-megadropdown-trigger.js +1 -1
  281. package/dist/components/react/post-megadropdown.js +1 -1
  282. package/dist/components/react/post-menu-item.js +1 -1
  283. package/dist/components/react/post-menu-trigger.js +1 -1
  284. package/dist/components/react/post-menu.js +1 -1
  285. package/dist/components/react/post-number-input.js +1 -1
  286. package/dist/components/react/post-pagination.js +1 -1
  287. package/dist/components/react/post-popover-trigger.js +1 -1
  288. package/dist/components/react/post-popover.js +1 -1
  289. package/dist/components/react/post-popovercontainer.js +1 -1
  290. package/dist/components/react/post-rating.js +1 -1
  291. package/dist/components/react/post-stepper-item.js +1 -1
  292. package/dist/components/react/post-stepper.js +1 -1
  293. package/dist/components/react/post-tab-item.js +1 -1
  294. package/dist/components/react/post-tab-panel.js +1 -1
  295. package/dist/components/react/post-tabs.js +1 -1
  296. package/dist/components/react/post-togglebutton.js +1 -1
  297. package/dist/components/react/post-tooltip-trigger.js +1 -1
  298. package/dist/components/react/post-tooltip.js +1 -1
  299. package/dist/docs.d.ts +26 -0
  300. package/dist/docs.json +280 -10
  301. package/dist/esm/_air-datepicker-locale_ar-DQq5Bnk2.js +3 -0
  302. package/dist/esm/_air-datepicker-locale_bg-bl3gSRgH.js +3 -0
  303. package/dist/esm/_air-datepicker-locale_ca-BI8IDv3x.js +3 -0
  304. package/dist/esm/_air-datepicker-locale_cs-COcQTTvB.js +3 -0
  305. package/dist/esm/_air-datepicker-locale_da-jZZU8-Dx.js +3 -0
  306. package/dist/esm/_air-datepicker-locale_de-DiNZLG90.js +3 -0
  307. package/dist/esm/_air-datepicker-locale_el-CY0xDY7T.js +3 -0
  308. package/dist/esm/_air-datepicker-locale_en-D74-8pcb.js +3 -0
  309. package/dist/esm/_air-datepicker-locale_es-TmutBiUy.js +3 -0
  310. package/dist/esm/_air-datepicker-locale_eu-Blr-q_ib.js +3 -0
  311. package/dist/esm/_air-datepicker-locale_fi-B5zHEJHg.js +3 -0
  312. package/dist/esm/_air-datepicker-locale_fr-CLO4Gc79.js +3 -0
  313. package/dist/esm/_air-datepicker-locale_hr-CKeMJgsB.js +3 -0
  314. package/dist/esm/_air-datepicker-locale_hu-B_mxRlWV.js +3 -0
  315. package/dist/esm/_air-datepicker-locale_id-BhrWATcv.js +3 -0
  316. package/dist/esm/_air-datepicker-locale_it-B0UL6WWC.js +3 -0
  317. package/dist/esm/_air-datepicker-locale_ja-DLWEDodU.js +3 -0
  318. package/dist/esm/_air-datepicker-locale_ko-BL8Kkhue.js +3 -0
  319. package/dist/esm/_air-datepicker-locale_nb-BzFuQlXL.js +3 -0
  320. package/dist/esm/_air-datepicker-locale_nl-ByHlofKQ.js +3 -0
  321. package/dist/esm/_air-datepicker-locale_pl-CaXZrKGy.js +3 -0
  322. package/dist/esm/_air-datepicker-locale_pt-CKmlbvS5.js +3 -0
  323. package/dist/esm/_air-datepicker-locale_ro-r5tpdxcW.js +3 -0
  324. package/dist/esm/_air-datepicker-locale_ru-BfPjPzPS.js +3 -0
  325. package/dist/esm/_air-datepicker-locale_si-Dp41Pg4o.js +3 -0
  326. package/dist/esm/_air-datepicker-locale_sk-BaE0RQYu.js +3 -0
  327. package/dist/esm/_air-datepicker-locale_sl-tHlklq2F.js +3 -0
  328. package/dist/esm/_air-datepicker-locale_sv-DYpJ3j2A.js +3 -0
  329. package/dist/esm/_air-datepicker-locale_th-D7MKQ7S-.js +3 -0
  330. package/dist/esm/_air-datepicker-locale_tr-CHD6fZJe.js +3 -0
  331. package/dist/esm/_air-datepicker-locale_uk-Cp9RABzO.js +3 -0
  332. package/dist/esm/_air-datepicker-locale_zh-C820VY6h.js +3 -0
  333. package/dist/esm/{get-focusable-children-CckqSLu_.js → get-focusable-children-DxYnH2ye.js} +1 -1
  334. package/dist/esm/{get-root-gmtbd8C-.js → get-root-08F-DB-d.js} +1 -3
  335. package/dist/esm/index-CJcRbvrI.js +114535 -0
  336. package/dist/esm/{index-8Vx4ywJ4.js → index-DmAi35UF.js} +357 -1933
  337. package/dist/esm/{index.browser-BLchVpF6.js → index.browser-nA1BKco0.js} +1 -1
  338. package/dist/esm/loader.js +3 -3
  339. package/dist/{cjs/long-press-event-Q8jMUNXD.js → esm/long-press-event-BNgqqRsB.js} +11 -3
  340. package/dist/esm/package-B4l5EAoq.js +3 -0
  341. package/dist/esm/post-accordion_2.entry.js +4 -4
  342. package/dist/esm/post-autocomplete.entry.js +36 -10
  343. package/dist/esm/post-avatar.entry.js +4 -4
  344. package/dist/esm/post-back-to-top.entry.js +4 -4
  345. package/dist/esm/post-banner.entry.js +4 -4
  346. package/dist/esm/post-breadcrumb-item.entry.js +4 -5
  347. package/dist/esm/post-breadcrumbs.entry.js +11 -9
  348. package/dist/esm/post-closebutton_14.entry.js +61 -52
  349. package/dist/esm/post-collapsible_2.entry.js +16 -9
  350. package/dist/esm/post-components.js +4 -4
  351. package/dist/esm/post-date-picker.entry.js +352 -252
  352. package/dist/esm/post-footer.entry.js +4 -4
  353. package/dist/esm/post-linkarea.entry.js +3 -3
  354. package/dist/esm/post-listbox-option.entry.js +4 -4
  355. package/dist/esm/post-listbox.entry.js +4 -4
  356. package/dist/esm/post-login-widget.entry.js +58 -0
  357. package/dist/esm/post-number-input.entry.js +4 -4
  358. package/dist/esm/post-pagination.entry.js +5 -5
  359. package/dist/esm/post-popover-trigger.entry.js +3 -3
  360. package/dist/esm/post-popover.entry.js +5 -5
  361. package/dist/esm/post-rating.entry.js +4 -4
  362. package/dist/esm/post-stepper-item.entry.js +3 -3
  363. package/dist/esm/post-stepper.entry.js +6 -6
  364. package/dist/esm/post-tab-item.entry.js +5 -5
  365. package/dist/esm/post-tab-panel.entry.js +5 -5
  366. package/dist/esm/post-tabs.entry.js +5 -5
  367. package/dist/esm/post-tooltip-trigger.entry.js +5 -5
  368. package/dist/esm/post-tooltip.entry.js +5 -5
  369. package/dist/post-components/p-08F-DB-d.js +1 -0
  370. package/dist/post-components/{p-16573e00.entry.js → p-0992cba9.entry.js} +1 -1
  371. package/dist/post-components/{p-11dfed23.entry.js → p-0c249c71.entry.js} +1 -1
  372. package/dist/post-components/p-1e28d279.entry.js +1 -0
  373. package/dist/post-components/{p-ce7bfb11.entry.js → p-220d0eab.entry.js} +1 -1
  374. package/dist/post-components/{p-15d519e6.entry.js → p-272de102.entry.js} +1 -1
  375. package/dist/post-components/p-30e5bc99.entry.js +1 -0
  376. package/dist/post-components/p-500a3fc7.entry.js +1 -0
  377. package/dist/post-components/{p-29859921.entry.js → p-52f85cba.entry.js} +1 -1
  378. package/dist/post-components/{p-9a3d4f38.entry.js → p-5664d5b5.entry.js} +1 -1
  379. package/dist/post-components/{p-0c22b6cb.entry.js → p-5ade4255.entry.js} +1 -1
  380. package/dist/post-components/p-6644e626.entry.js +1 -0
  381. package/dist/post-components/{p-3a294f1a.entry.js → p-694e76be.entry.js} +1 -1
  382. package/dist/post-components/p-8b68164f.entry.js +1 -0
  383. package/dist/post-components/{p-b13742e1.entry.js → p-906b669b.entry.js} +1 -1
  384. package/dist/post-components/p-92e4a7f7.entry.js +1 -0
  385. package/dist/post-components/p-95df4d4e.entry.js +1 -0
  386. package/dist/post-components/{p-6badcfb3.entry.js → p-9fab1847.entry.js} +1 -1
  387. package/dist/post-components/p-B0UL6WWC.js +1 -0
  388. package/dist/post-components/p-B4l5EAoq.js +1 -0
  389. package/dist/post-components/p-B5zHEJHg.js +1 -0
  390. package/dist/post-components/p-BI8IDv3x.js +1 -0
  391. package/dist/post-components/p-BL8Kkhue.js +1 -0
  392. package/dist/post-components/{p-C_2k3G1c.js → p-BNgqqRsB.js} +1 -1
  393. package/dist/post-components/p-B_mxRlWV.js +1 -0
  394. package/dist/post-components/p-BaE0RQYu.js +1 -0
  395. package/dist/post-components/p-BfPjPzPS.js +1 -0
  396. package/dist/post-components/p-BhrWATcv.js +1 -0
  397. package/dist/post-components/p-Blr-q_ib.js +1 -0
  398. package/dist/post-components/p-ByHlofKQ.js +1 -0
  399. package/dist/post-components/p-BzFuQlXL.js +1 -0
  400. package/dist/post-components/p-C820VY6h.js +1 -0
  401. package/dist/post-components/p-CHD6fZJe.js +1 -0
  402. package/dist/post-components/p-CJcRbvrI.js +6 -0
  403. package/dist/post-components/p-CKeMJgsB.js +1 -0
  404. package/dist/post-components/p-CKmlbvS5.js +1 -0
  405. package/dist/post-components/p-CLO4Gc79.js +1 -0
  406. package/dist/post-components/p-COcQTTvB.js +1 -0
  407. package/dist/post-components/p-CY0xDY7T.js +1 -0
  408. package/dist/post-components/p-CaXZrKGy.js +1 -0
  409. package/dist/post-components/p-Cp9RABzO.js +1 -0
  410. package/dist/post-components/p-D74-8pcb.js +1 -0
  411. package/dist/post-components/p-D7MKQ7S-.js +1 -0
  412. package/dist/post-components/p-DLWEDodU.js +1 -0
  413. package/dist/post-components/p-DQq5Bnk2.js +1 -0
  414. package/dist/post-components/{p-DkA4Ai8j.js → p-DYYpZAAV.js} +1 -1
  415. package/dist/post-components/p-DYpJ3j2A.js +1 -0
  416. package/dist/post-components/p-DiNZLG90.js +1 -0
  417. package/dist/post-components/p-DmAi35UF.js +2 -0
  418. package/dist/post-components/p-Dp41Pg4o.js +1 -0
  419. package/dist/post-components/p-TmutBiUy.js +1 -0
  420. package/dist/post-components/p-bl3gSRgH.js +1 -0
  421. package/dist/post-components/p-c70cad6e.entry.js +1 -0
  422. package/dist/post-components/{p-0962f02e.entry.js → p-c95fcb40.entry.js} +1 -1
  423. package/dist/post-components/{p-e5a2d0c3.entry.js → p-cca0cf23.entry.js} +1 -1
  424. package/dist/post-components/{p-68196501.entry.js → p-cd6684e1.entry.js} +1 -1
  425. package/dist/post-components/p-d57462a3.entry.js +1 -0
  426. package/dist/post-components/p-d99bdef2.entry.js +1 -0
  427. package/dist/post-components/{p-6debd1d3.entry.js → p-dfe811cc.entry.js} +1 -1
  428. package/dist/post-components/p-f14ca918.entry.js +1 -0
  429. package/dist/post-components/{p-136052d8.entry.js → p-f88a161a.entry.js} +1 -1
  430. package/dist/post-components/p-fc2882a8.entry.js +1 -0
  431. package/dist/post-components/p-jZZU8-Dx.js +1 -0
  432. package/dist/post-components/p-r5tpdxcW.js +1 -0
  433. package/dist/post-components/p-tHlklq2F.js +1 -0
  434. package/dist/post-components/post-components.css +2 -2
  435. package/dist/post-components/post-components.esm.js +1 -1
  436. package/dist/prebuild.js +4 -1
  437. package/dist/types/components/post-autocomplete/post-autocomplete.d.ts +10 -0
  438. package/dist/types/components/post-breadcrumb-item/post-breadcrumb-item.d.ts +8 -0
  439. package/dist/types/components/post-breadcrumbs/post-breadcrumbs.d.ts +8 -5
  440. package/dist/types/components/post-date-picker/air-locales.d.ts +5 -0
  441. package/dist/types/components/post-date-picker/constants.d.ts +37 -0
  442. package/dist/types/components/post-date-picker/post-date-picker.d.ts +74 -18
  443. package/dist/types/components/post-language-menu/post-language-menu.d.ts +2 -0
  444. package/dist/types/components/post-language-menu-item/post-language-menu-item.d.ts +5 -0
  445. package/dist/types/components/post-login-widget/post-login-widget.d.ts +30 -0
  446. package/dist/types/components/post-stepper/post-stepper.d.ts +2 -2
  447. package/dist/types/components.d.ts +349 -79
  448. package/dist/types/home/runner/work/design-system/design-system/packages/components/.stencil/.config/rollup-plugin.air-datepicker-locale.d.ts +12 -0
  449. package/dist/types/home/runner/work/design-system/design-system/packages/components/.stencil/types/language-tags.d.ts +1 -0
  450. package/dist/types/language-tags.js +0 -0
  451. package/dist/types/stencil-public-runtime.d.ts +23 -2
  452. package/dist/types/utils/index.d.ts +1 -0
  453. package/dist/types/utils/locales.d.ts +11 -0
  454. package/hydrate/index.js +120060 -4788
  455. package/hydrate/index.mjs +120060 -4788
  456. package/package.json +15 -14
  457. package/dist/cjs/breakpoints-BTxzC_Qv.js +0 -204
  458. package/dist/collection/components/post-date-picker/locales.js +0 -10
  459. package/dist/components/breakpoints.js +0 -1
  460. package/dist/components/react/p-6dWji_Xt.js +0 -1
  461. package/dist/components/react/p-BIQP_u-p.js +0 -1
  462. package/dist/components/react/p-ByHBwvly.js +0 -1
  463. package/dist/components/react/p-C7drBbGl.js +0 -1
  464. package/dist/components/react/p-CS77r1AS.js +0 -1
  465. package/dist/components/react/p-CY-_ZlW3.js +0 -1
  466. package/dist/components/react/p-DVY9jsO7.js +0 -1
  467. package/dist/components/react/p-Djnfi-_S.js +0 -1
  468. package/dist/components/react/p-DlHbGhvD.js +0 -1
  469. package/dist/components/react/p-DxJ0OgPJ.js +0 -1
  470. package/dist/components/react/p-RpVuZS9R.js +0 -1
  471. package/dist/esm/breakpoints-CZuqK5QS.js +0 -200
  472. package/dist/esm/package-DVY9jsO7.js +0 -3
  473. package/dist/post-components/p-44481053.entry.js +0 -1
  474. package/dist/post-components/p-61d99723.entry.js +0 -1
  475. package/dist/post-components/p-6c2558a3.entry.js +0 -1
  476. package/dist/post-components/p-7b44e7e5.entry.js +0 -1
  477. package/dist/post-components/p-81aca7ec.entry.js +0 -1
  478. package/dist/post-components/p-85af10b8.entry.js +0 -1
  479. package/dist/post-components/p-8Vx4ywJ4.js +0 -2
  480. package/dist/post-components/p-951b3be6.entry.js +0 -1
  481. package/dist/post-components/p-D81ozKs6.js +0 -1
  482. package/dist/post-components/p-DVY9jsO7.js +0 -1
  483. package/dist/post-components/p-a4dd6a67.entry.js +0 -1
  484. package/dist/post-components/p-aFKnsRj1.js +0 -1
  485. package/dist/post-components/p-c5717005.entry.js +0 -1
  486. package/dist/post-components/p-ca7796c7.entry.js +0 -1
  487. package/dist/post-components/p-e14f0dd1.entry.js +0 -1
  488. package/dist/types/components/post-date-picker/locales.d.ts +0 -6
  489. /package/dist/components/react/{p-BLchVpF6.js → p-nA1BKco0.js} +0 -0
  490. /package/dist/post-components/{p-BLchVpF6.js → p-nA1BKco0.js} +0 -0
@@ -2,257 +2,12 @@ const NAMESPACE = 'post-components';
2
2
  const BUILD = /* post-components */ { hotModuleReplacement: false, hydratedSelectorName: "data-hydrated", lazyLoad: true, propChangeCallback: true, slotRelocation: true, state: true, updatable: true};
3
3
 
4
4
  const globalScripts = () => {};
5
- const globalStyles = ":where(post-accordion,post-accordion-item,post-autocomplete,post-avatar,post-back-to-top,post-banner,post-breadcrumb-item,post-breadcrumbs,post-closebutton,post-collapsible,post-collapsible-trigger,post-date-picker,post-footer,post-header,post-icon,post-language-menu,post-language-menu-item,post-linkarea,post-listbox,post-listbox-option,post-logo,post-mainnavigation,post-megadropdown,post-megadropdown-trigger,post-menu,post-menu-item,post-menu-trigger,post-number-input,post-pagination,post-popover,post-popover-trigger,post-popovercontainer,post-rating,post-stepper,post-stepper-item,post-tab-item,post-tab-panel,post-tabs,post-togglebutton,post-tooltip,post-tooltip-trigger):not(:defined):not(.hydrated,[data-hydrated]){visibility:hidden}@media (scripting: none){:where(post-accordion,post-accordion-item,post-autocomplete,post-avatar,post-back-to-top,post-banner,post-breadcrumb-item,post-breadcrumbs,post-closebutton,post-collapsible,post-collapsible-trigger,post-date-picker,post-footer,post-header,post-icon,post-language-menu,post-language-menu-item,post-linkarea,post-listbox,post-listbox-option,post-logo,post-mainnavigation,post-megadropdown,post-megadropdown-trigger,post-menu,post-menu-item,post-menu-trigger,post-number-input,post-pagination,post-popover,post-popover-trigger,post-popovercontainer,post-rating,post-stepper,post-stepper-item,post-tab-item,post-tab-panel,post-tabs,post-togglebutton,post-tooltip,post-tooltip-trigger):not(:defined):not(.hydrated,[data-hydrated]){visibility:visible}}post-accordion:not([multiple]):not(:has([collapsed]))>post-accordion-item~post-accordion-item{--post-collapsible-initial-height:0;--post-collapsible-initial-overflow:hidden;--post-accordion-icon-initial-transform:rotate(-180deg)}.form-label:has(+post-number-input){display:block}.form-label:has(+post-number-input.number-input-sm){padding-inline:var(--post-device-spacing-padding-2);padding-block:var(--post-device-spacing-padding-30);font-weight:var(--post-device-font-weight-bold);font-size:var(--post-device-font-size-7)}.form-label:has(+post-number-input.disabled){color:var(--post-scheme-color-interactive-input-disabled-fg)}post-number-input.form-floating>input.form-control{padding:var(--post-device-spacing-padding-block-29) var(--post-device-spacing-padding-inline-1) var(--post-device-spacing-padding-block-3)}post-number-input.form-floating>input.form-control:focus~label,post-number-input.form-floating>input.form-control:not(:placeholder-shown)~label{padding-block-start:var(--post-device-spacing-padding-block-3);padding-inline:var(--post-device-spacing-padding-inline-1) var(--post-device-spacing-padding-15);font-size:var(--post-device-font-size-10)}post-number-input.form-floating::after{width:var(--post-device-sizing-notification-1);height:var(--post-device-sizing-notification-1)}post-number-input.form-floating:has(>input.form-control.is-valid:not(:disabled))::after,post-number-input.form-floating:has(>input.form-control:-webkit-autofill.is-valid)::after,post-number-input.form-floating:has(>input.form-control.is-invalid:not(:disabled))::after,post-number-input.form-floating:has(>input.form-control:-webkit-autofill.is-invalid)::after{top:calc(var(--post-device-sizing-interactive-button-height-6) / 2);right:calc(\n var(--post-device-spacing-padding-inline-1) +\n (var(--post-device-spacing-padding-23)* 2) +\n var(--post-device-sizing-interactive-icon-size6) +\n (var(--post-device-border-width-default) * 2)\n )}post-number-input input[type=number]{appearance:textfield}post-number-input input[type=number]::-webkit-inner-spin-button,post-number-input input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}";
5
+ const globalStyles = ":where(post-accordion,post-accordion-item,post-autocomplete,post-avatar,post-back-to-top,post-banner,post-breadcrumb-item,post-breadcrumbs,post-closebutton,post-collapsible,post-collapsible-trigger,post-date-picker,post-footer,post-header,post-icon,post-language-menu,post-language-menu-item,post-linkarea,post-listbox,post-listbox-option,post-login-widget,post-logo,post-mainnavigation,post-megadropdown,post-megadropdown-trigger,post-menu,post-menu-item,post-menu-trigger,post-number-input,post-pagination,post-popover,post-popover-trigger,post-popovercontainer,post-rating,post-stepper,post-stepper-item,post-tab-item,post-tab-panel,post-tabs,post-togglebutton,post-tooltip,post-tooltip-trigger):not(:defined):not(.hydrated,[data-hydrated]){visibility:hidden}@media (scripting: none){:where(post-accordion,post-accordion-item,post-autocomplete,post-avatar,post-back-to-top,post-banner,post-breadcrumb-item,post-breadcrumbs,post-closebutton,post-collapsible,post-collapsible-trigger,post-date-picker,post-footer,post-header,post-icon,post-language-menu,post-language-menu-item,post-linkarea,post-listbox,post-listbox-option,post-login-widget,post-logo,post-mainnavigation,post-megadropdown,post-megadropdown-trigger,post-menu,post-menu-item,post-menu-trigger,post-number-input,post-pagination,post-popover,post-popover-trigger,post-popovercontainer,post-rating,post-stepper,post-stepper-item,post-tab-item,post-tab-panel,post-tabs,post-togglebutton,post-tooltip,post-tooltip-trigger):not(:defined):not(.hydrated,[data-hydrated]){visibility:visible}}post-accordion:not([multiple]):not(:has([collapsed]))>post-accordion-item~post-accordion-item{--post-collapsible-initial-height:0;--post-collapsible-initial-overflow:hidden;--post-accordion-icon-initial-transform:rotate(-180deg)}.form-label:has(+post-number-input){display:block}.form-label:has(+post-number-input.number-input-sm){padding-inline:var(--post-device-spacing-padding-2);padding-block:var(--post-device-spacing-padding-30);font-weight:var(--post-device-font-weight-bold);font-size:var(--post-device-font-size-7)}.form-label:has(+post-number-input.disabled){color:var(--post-scheme-color-interactive-input-disabled-fg)}post-number-input.form-floating>input.form-control{padding:var(--post-device-spacing-padding-block-29) var(--post-device-spacing-padding-inline-1) var(--post-device-spacing-padding-block-3)}post-number-input.form-floating>input.form-control:focus~label,post-number-input.form-floating>input.form-control:not(:placeholder-shown)~label{padding-block-start:var(--post-device-spacing-padding-block-3);padding-inline:var(--post-device-spacing-padding-inline-1) var(--post-device-spacing-padding-15);font-size:var(--post-device-font-size-10)}post-number-input.form-floating::after{width:var(--post-device-sizing-notification-1);height:var(--post-device-sizing-notification-1)}post-number-input.form-floating:has(>input.form-control.is-valid:not(:disabled))::after,post-number-input.form-floating:has(>input.form-control:-webkit-autofill.is-valid)::after,post-number-input.form-floating:has(>input.form-control.is-invalid:not(:disabled))::after,post-number-input.form-floating:has(>input.form-control:-webkit-autofill.is-invalid)::after{top:calc(var(--post-device-sizing-interactive-button-height-6) / 2);right:calc(\n var(--post-device-spacing-padding-inline-1) +\n (var(--post-device-spacing-padding-23)* 2) +\n var(--post-device-sizing-interactive-icon-size6) +\n (var(--post-device-border-width-default) * 2)\n )}post-number-input input[type=number]{appearance:textfield}post-number-input input[type=number]::-webkit-inner-spin-button,post-number-input input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}post-login-widget>[slot=unauthenticated]{display:inline-flex;position:relative;align-items:center;justify-content:center;max-width:100%;overflow:hidden;transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;border-width:var(--post-device-border-width-default);border-style:solid;border-color:rgba(0,0,0,0);border-radius:var(--post-device-border-radius-round);background-color:rgba(0,0,0,0);box-shadow:none;font-family:inherit;font-weight:var(--post-device-font-weight-bold);text-decoration:none;white-space:nowrap;cursor:pointer;border:unset;font-weight:unset;display:flex;padding:.25rem .625rem;gap:.375rem;font-size:1rem;border-color:var(--post-scheme-color-interactive-button-tertiary-enabled-stroke);background-color:var(--post-scheme-color-interactive-button-tertiary-enabled-bg);color:var(--post-scheme-color-interactive-button-tertiary-enabled-fg)}post-login-widget>[slot=unauthenticated]:hover{text-decoration:none}post-login-widget>[slot=unauthenticated]:disabled{border-style:var(--post-core-border-style-dash)}post-login-widget>[slot=unauthenticated]{outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}post-login-widget>[slot=unauthenticated]:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){post-login-widget>[slot=unauthenticated]:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){post-login-widget>[slot=unauthenticated]:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){post-login-widget>[slot=unauthenticated]:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){post-login-widget>[slot=unauthenticated]:is(a){color:LinkText;border:unset}post-login-widget>[slot=unauthenticated]:is(button){background-color:ButtonFace !important;border:1px solid ButtonBorder !important}post-login-widget>[slot=unauthenticated]:not(:disabled,.disabled):is(button):hover{background-color:Highlight !important}post-login-widget>[slot=unauthenticated]:not(:disabled,.disabled):is(button):hover>post-icon{color:HighlightText !important}}post-login-widget>[slot=unauthenticated]:hover{border-color:var(--post-scheme-color-interactive-button-tertiary-hover-stroke);background-color:var(--post-scheme-color-interactive-button-tertiary-hover-bg);color:var(--post-scheme-color-interactive-button-tertiary-hover-fg)}post-login-widget>[slot=unauthenticated]:is([aria-current],[aria-pressed=true],[aria-expanded=true],.active){box-shadow:var(--post-device-elevation-100);border-color:var(--post-scheme-color-interactive-button-primary-enabled-stroke);background-color:var(--post-scheme-color-interactive-button-primary-enabled-bg);color:var(--post-scheme-color-interactive-button-primary-enabled-fg)}post-login-widget>[slot=unauthenticated]:is([aria-current],[aria-pressed=true],[aria-expanded=true],.active):hover{border-color:var(--post-scheme-color-interactive-button-primary-hover-stroke);background-color:var(--post-scheme-color-interactive-button-primary-hover-bg);color:var(--post-scheme-color-interactive-button-primary-hover-fg)}post-login-widget>[slot=unauthenticated]{width:fit-content}@media screen and (min-width: 0)and (max-width: 599.98px){post-login-widget>[slot=unauthenticated]>:not(post-icon){position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}post-login-widget>[slot=unauthenticated]>post-icon{font-size:1.5rem}}post-login-widget>[slot=authenticated]>post-menu-trigger>button{border-radius:var(--post-device-border-radius-round) !important}";
6
6
 
7
7
  /*
8
- Stencil Client Platform v4.41.1 | MIT Licensed | https://stenciljs.com
8
+ Stencil Client Platform v4.43.3 | MIT Licensed | https://stenciljs.com
9
9
  */
10
- var __create = Object.create;
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
- };
23
- var __export = (target, all) => {
24
- for (var name in all)
25
- __defProp(target, name, { get: all[name], enumerable: true });
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
10
 
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
11
 
257
12
  // src/utils/constants.ts
258
13
  var SVG_NS = "http://www.w3.org/2000/svg";
@@ -281,6 +36,19 @@ var NonPrimitiveType = /* @__PURE__ */ ((NonPrimitiveType2) => {
281
36
  var TYPE_CONSTANT = "type";
282
37
  var VALUE_CONSTANT = "value";
283
38
  var SERIALIZED_PREFIX = "serialized:";
39
+
40
+ // src/utils/get-prop-descriptor.ts
41
+ function getPropertyDescriptor(obj, memberName, getOnly) {
42
+ const stopAt = typeof HTMLElement !== "undefined" ? HTMLElement.prototype : null;
43
+ while (obj && obj !== stopAt) {
44
+ const desc = Object.getOwnPropertyDescriptor(obj, memberName);
45
+ if (desc && (!getOnly || desc.get)) return desc;
46
+ obj = Object.getPrototypeOf(obj);
47
+ }
48
+ return void 0;
49
+ }
50
+
51
+ // src/utils/es2022-rewire-class-members.ts
284
52
  var reWireGetterSetter = (instance, hostRef) => {
285
53
  var _a;
286
54
  const cmpMeta = hostRef.$cmpMeta$;
@@ -288,7 +56,7 @@ var reWireGetterSetter = (instance, hostRef) => {
288
56
  members.map(([memberName, [memberFlags]]) => {
289
57
  if ((memberFlags & 31 /* Prop */ || memberFlags & 32 /* State */)) {
290
58
  const ogValue = instance[memberName];
291
- const ogDescriptor = getPropertyDescriptor(Object.getPrototypeOf(instance), memberName) || Object.getOwnPropertyDescriptor(instance, memberName);
59
+ const ogDescriptor = getPropertyDescriptor(Object.getPrototypeOf(instance), memberName, true) || Object.getOwnPropertyDescriptor(instance, memberName);
292
60
  if (ogDescriptor) {
293
61
  Object.defineProperty(instance, memberName, {
294
62
  get() {
@@ -301,18 +69,14 @@ var reWireGetterSetter = (instance, hostRef) => {
301
69
  enumerable: true
302
70
  });
303
71
  }
304
- instance[memberName] = hostRef.$instanceValues$.has(memberName) ? hostRef.$instanceValues$.get(memberName) : ogValue;
72
+ if (hostRef.$instanceValues$.has(memberName)) {
73
+ instance[memberName] = hostRef.$instanceValues$.get(memberName);
74
+ } else if (ogValue !== void 0) {
75
+ instance[memberName] = ogValue;
76
+ }
305
77
  }
306
78
  });
307
79
  };
308
- function getPropertyDescriptor(obj, memberName) {
309
- while (obj) {
310
- const desc = Object.getOwnPropertyDescriptor(obj, memberName);
311
- if (desc == null ? void 0 : desc.get) return desc;
312
- obj = Object.getPrototypeOf(obj);
313
- }
314
- return void 0;
315
- }
316
80
 
317
81
  // src/client/client-host-ref.ts
318
82
  var getHostRef = (ref) => {
@@ -375,6 +139,10 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
375
139
  }
376
140
  switch(bundleId) {
377
141
 
142
+ case 'post-login-widget':
143
+ return import(
144
+ /* webpackMode: "lazy" */
145
+ './post-login-widget.entry.js').then(processMod, consoleError);
378
146
  case 'post-autocomplete':
379
147
  return import(
380
148
  /* webpackMode: "lazy" */
@@ -526,1589 +294,69 @@ var plt = {
526
294
  };
527
295
  var supportsListenerOptions = /* @__PURE__ */ (() => {
528
296
  var _a;
529
- let supportsListenerOptions2 = false;
530
- try {
531
- (_a = win.document) == null ? void 0 : _a.addEventListener(
532
- "e",
533
- null,
534
- Object.defineProperty({}, "passive", {
535
- get() {
536
- supportsListenerOptions2 = true;
537
- }
538
- })
539
- );
540
- } catch (e) {
541
- }
542
- return supportsListenerOptions2;
543
- })();
544
- var promiseResolve = (v) => Promise.resolve(v);
545
- var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
546
- try {
547
- if (!win.document.adoptedStyleSheets) {
548
- return false;
549
- }
550
- new CSSStyleSheet();
551
- return typeof new CSSStyleSheet().replaceSync === "function";
552
- } catch (e) {
553
- }
554
- return false;
555
- })() ;
556
- var supportsMutableAdoptedStyleSheets = supportsConstructableStylesheets ? /* @__PURE__ */ (() => !!win.document && Object.getOwnPropertyDescriptor(win.document.adoptedStyleSheets, "length").writable)() : false;
557
- var queuePending = false;
558
- var queueDomReads = [];
559
- var queueDomWrites = [];
560
- var queueTask = (queue, write) => (cb) => {
561
- queue.push(cb);
562
- if (!queuePending) {
563
- queuePending = true;
564
- if (write && plt.$flags$ & 4 /* queueSync */) {
565
- nextTick(flush);
566
- } else {
567
- plt.raf(flush);
568
- }
569
- }
570
- };
571
- var consume = (queue) => {
572
- for (let i2 = 0; i2 < queue.length; i2++) {
573
- try {
574
- queue[i2](performance.now());
575
- } catch (e) {
576
- consoleError(e);
577
- }
578
- }
579
- queue.length = 0;
580
- };
581
- var flush = () => {
582
- consume(queueDomReads);
583
- {
584
- consume(queueDomWrites);
585
- if (queuePending = queueDomReads.length > 0) {
586
- plt.raf(flush);
587
- }
588
- }
589
- };
590
- var nextTick = (cb) => promiseResolve().then(cb);
591
- var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
592
- var isComplexType = (o) => {
593
- o = typeof o;
594
- return o === "object" || o === "function";
595
- };
596
-
597
- // node_modules/minimatch/dist/esm/index.js
598
- var import_brace_expansion = __toESM(require_brace_expansion());
599
-
600
- // node_modules/minimatch/dist/esm/assert-valid-pattern.js
601
- var MAX_PATTERN_LENGTH = 1024 * 64;
602
- var assertValidPattern = (pattern) => {
603
- if (typeof pattern !== "string") {
604
- throw new TypeError("invalid pattern");
605
- }
606
- if (pattern.length > MAX_PATTERN_LENGTH) {
607
- throw new TypeError("pattern is too long");
608
- }
609
- };
610
-
611
- // node_modules/minimatch/dist/esm/brace-expressions.js
612
- var posixClasses = {
613
- "[:alnum:]": ["\\p{L}\\p{Nl}\\p{Nd}", true],
614
- "[:alpha:]": ["\\p{L}\\p{Nl}", true],
615
- "[:ascii:]": ["\\x00-\\x7f", false],
616
- "[:blank:]": ["\\p{Zs}\\t", true],
617
- "[:cntrl:]": ["\\p{Cc}", true],
618
- "[:digit:]": ["\\p{Nd}", true],
619
- "[:graph:]": ["\\p{Z}\\p{C}", true, true],
620
- "[:lower:]": ["\\p{Ll}", true],
621
- "[:print:]": ["\\p{C}", true],
622
- "[:punct:]": ["\\p{P}", true],
623
- "[:space:]": ["\\p{Z}\\t\\r\\n\\v\\f", true],
624
- "[:upper:]": ["\\p{Lu}", true],
625
- "[:word:]": ["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}", true],
626
- "[:xdigit:]": ["A-Fa-f0-9", false]
627
- };
628
- var braceEscape = (s) => s.replace(/[[\]\\-]/g, "\\$&");
629
- var regexpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
630
- var rangesToString = (ranges) => ranges.join("");
631
- var parseClass = (glob, position) => {
632
- const pos = position;
633
- if (glob.charAt(pos) !== "[") {
634
- throw new Error("not in a brace expression");
635
- }
636
- const ranges = [];
637
- const negs = [];
638
- let i2 = pos + 1;
639
- let sawStart = false;
640
- let uflag = false;
641
- let escaping = false;
642
- let negate = false;
643
- let endPos = pos;
644
- let rangeStart = "";
645
- WHILE: while (i2 < glob.length) {
646
- const c = glob.charAt(i2);
647
- if ((c === "!" || c === "^") && i2 === pos + 1) {
648
- negate = true;
649
- i2++;
650
- continue;
651
- }
652
- if (c === "]" && sawStart && !escaping) {
653
- endPos = i2 + 1;
654
- break;
655
- }
656
- sawStart = true;
657
- if (c === "\\") {
658
- if (!escaping) {
659
- escaping = true;
660
- i2++;
661
- continue;
662
- }
663
- }
664
- if (c === "[" && !escaping) {
665
- for (const [cls, [unip, u, neg]] of Object.entries(posixClasses)) {
666
- if (glob.startsWith(cls, i2)) {
667
- if (rangeStart) {
668
- return ["$.", false, glob.length - pos, true];
669
- }
670
- i2 += cls.length;
671
- if (neg)
672
- negs.push(unip);
673
- else
674
- ranges.push(unip);
675
- uflag = uflag || u;
676
- continue WHILE;
677
- }
678
- }
679
- }
680
- escaping = false;
681
- if (rangeStart) {
682
- if (c > rangeStart) {
683
- ranges.push(braceEscape(rangeStart) + "-" + braceEscape(c));
684
- } else if (c === rangeStart) {
685
- ranges.push(braceEscape(c));
686
- }
687
- rangeStart = "";
688
- i2++;
689
- continue;
690
- }
691
- if (glob.startsWith("-]", i2 + 1)) {
692
- ranges.push(braceEscape(c + "-"));
693
- i2 += 2;
694
- continue;
695
- }
696
- if (glob.startsWith("-", i2 + 1)) {
697
- rangeStart = c;
698
- i2 += 2;
699
- continue;
700
- }
701
- ranges.push(braceEscape(c));
702
- i2++;
703
- }
704
- if (endPos < i2) {
705
- return ["", false, 0, false];
706
- }
707
- if (!ranges.length && !negs.length) {
708
- return ["$.", false, glob.length - pos, true];
709
- }
710
- if (negs.length === 0 && ranges.length === 1 && /^\\?.$/.test(ranges[0]) && !negate) {
711
- const r = ranges[0].length === 2 ? ranges[0].slice(-1) : ranges[0];
712
- return [regexpEscape(r), false, endPos - pos, false];
713
- }
714
- const sranges = "[" + (negate ? "^" : "") + rangesToString(ranges) + "]";
715
- const snegs = "[" + (negate ? "" : "^") + rangesToString(negs) + "]";
716
- const comb = ranges.length && negs.length ? "(" + sranges + "|" + snegs + ")" : ranges.length ? sranges : snegs;
717
- return [comb, uflag, endPos - pos, true];
718
- };
719
-
720
- // node_modules/minimatch/dist/esm/unescape.js
721
- var unescape = (s, { windowsPathsNoEscape = false } = {}) => {
722
- return windowsPathsNoEscape ? s.replace(/\[([^\/\\])\]/g, "$1") : s.replace(/((?!\\).|^)\[([^\/\\])\]/g, "$1$2").replace(/\\([^\/])/g, "$1");
723
- };
724
-
725
- // node_modules/minimatch/dist/esm/ast.js
726
- var types = /* @__PURE__ */ new Set(["!", "?", "+", "*", "@"]);
727
- var isExtglobType = (c) => types.has(c);
728
- var startNoTraversal = "(?!(?:^|/)\\.\\.?(?:$|/))";
729
- var startNoDot = "(?!\\.)";
730
- var addPatternStart = /* @__PURE__ */ new Set(["[", "."]);
731
- var justDots = /* @__PURE__ */ new Set(["..", "."]);
732
- var reSpecials = new Set("().*{}+?[]^$\\!");
733
- var regExpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
734
- var qmark = "[^/]";
735
- var star = qmark + "*?";
736
- var starNoEmpty = qmark + "+?";
737
- var _root, _hasMagic, _uflag, _parts, _parent, _parentIndex, _negs, _filledNegs, _options, _toString, _emptyExt, _AST_instances, fillNegs_fn, _AST_static, parseAST_fn, partsToRegExp_fn, parseGlob_fn;
738
- var _AST = class _AST {
739
- constructor(type, parent, options = {}) {
740
- __privateAdd(this, _AST_instances);
741
- __publicField(this, "type");
742
- __privateAdd(this, _root);
743
- __privateAdd(this, _hasMagic);
744
- __privateAdd(this, _uflag, false);
745
- __privateAdd(this, _parts, []);
746
- __privateAdd(this, _parent);
747
- __privateAdd(this, _parentIndex);
748
- __privateAdd(this, _negs);
749
- __privateAdd(this, _filledNegs, false);
750
- __privateAdd(this, _options);
751
- __privateAdd(this, _toString);
752
- // set to true if it's an extglob with no children
753
- // (which really means one child of '')
754
- __privateAdd(this, _emptyExt, false);
755
- this.type = type;
756
- if (type)
757
- __privateSet(this, _hasMagic, true);
758
- __privateSet(this, _parent, parent);
759
- __privateSet(this, _root, __privateGet(this, _parent) ? __privateGet(__privateGet(this, _parent), _root) : this);
760
- __privateSet(this, _options, __privateGet(this, _root) === this ? options : __privateGet(__privateGet(this, _root), _options));
761
- __privateSet(this, _negs, __privateGet(this, _root) === this ? [] : __privateGet(__privateGet(this, _root), _negs));
762
- if (type === "!" && !__privateGet(__privateGet(this, _root), _filledNegs))
763
- __privateGet(this, _negs).push(this);
764
- __privateSet(this, _parentIndex, __privateGet(this, _parent) ? __privateGet(__privateGet(this, _parent), _parts).length : 0);
765
- }
766
- get hasMagic() {
767
- if (__privateGet(this, _hasMagic) !== void 0)
768
- return __privateGet(this, _hasMagic);
769
- for (const p of __privateGet(this, _parts)) {
770
- if (typeof p === "string")
771
- continue;
772
- if (p.type || p.hasMagic)
773
- return __privateSet(this, _hasMagic, true);
774
- }
775
- return __privateGet(this, _hasMagic);
776
- }
777
- // reconstructs the pattern
778
- toString() {
779
- if (__privateGet(this, _toString) !== void 0)
780
- return __privateGet(this, _toString);
781
- if (!this.type) {
782
- return __privateSet(this, _toString, __privateGet(this, _parts).map((p) => String(p)).join(""));
783
- } else {
784
- return __privateSet(this, _toString, this.type + "(" + __privateGet(this, _parts).map((p) => String(p)).join("|") + ")");
785
- }
786
- }
787
- push(...parts) {
788
- for (const p of parts) {
789
- if (p === "")
790
- continue;
791
- if (typeof p !== "string" && !(p instanceof _AST && __privateGet(p, _parent) === this)) {
792
- throw new Error("invalid part: " + p);
793
- }
794
- __privateGet(this, _parts).push(p);
795
- }
796
- }
797
- toJSON() {
798
- var _a;
799
- 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())];
800
- if (this.isStart() && !this.type)
801
- ret.unshift([]);
802
- if (this.isEnd() && (this === __privateGet(this, _root) || __privateGet(__privateGet(this, _root), _filledNegs) && ((_a = __privateGet(this, _parent)) == null ? void 0 : _a.type) === "!")) {
803
- ret.push({});
804
- }
805
- return ret;
806
- }
807
- isStart() {
808
- var _a;
809
- if (__privateGet(this, _root) === this)
810
- return true;
811
- if (!((_a = __privateGet(this, _parent)) == null ? void 0 : _a.isStart()))
812
- return false;
813
- if (__privateGet(this, _parentIndex) === 0)
814
- return true;
815
- const p = __privateGet(this, _parent);
816
- for (let i2 = 0; i2 < __privateGet(this, _parentIndex); i2++) {
817
- const pp = __privateGet(p, _parts)[i2];
818
- if (!(pp instanceof _AST && pp.type === "!")) {
819
- return false;
820
- }
821
- }
822
- return true;
823
- }
824
- isEnd() {
825
- var _a, _b, _c;
826
- if (__privateGet(this, _root) === this)
827
- return true;
828
- if (((_a = __privateGet(this, _parent)) == null ? void 0 : _a.type) === "!")
829
- return true;
830
- if (!((_b = __privateGet(this, _parent)) == null ? void 0 : _b.isEnd()))
831
- return false;
832
- if (!this.type)
833
- return (_c = __privateGet(this, _parent)) == null ? void 0 : _c.isEnd();
834
- const pl = __privateGet(this, _parent) ? __privateGet(__privateGet(this, _parent), _parts).length : 0;
835
- return __privateGet(this, _parentIndex) === pl - 1;
836
- }
837
- copyIn(part) {
838
- if (typeof part === "string")
839
- this.push(part);
840
- else
841
- this.push(part.clone(this));
842
- }
843
- clone(parent) {
844
- const c = new _AST(this.type, parent);
845
- for (const p of __privateGet(this, _parts)) {
846
- c.copyIn(p);
847
- }
848
- return c;
849
- }
850
- static fromGlob(pattern, options = {}) {
851
- var _a;
852
- const ast = new _AST(null, void 0, options);
853
- __privateMethod(_a = _AST, _AST_static, parseAST_fn).call(_a, pattern, ast, 0, options);
854
- return ast;
855
- }
856
- // returns the regular expression if there's magic, or the unescaped
857
- // string if not.
858
- toMMPattern() {
859
- if (this !== __privateGet(this, _root))
860
- return __privateGet(this, _root).toMMPattern();
861
- const glob = this.toString();
862
- const [re, body, hasMagic, uflag] = this.toRegExpSource();
863
- const anyMagic = hasMagic || __privateGet(this, _hasMagic) || __privateGet(this, _options).nocase && !__privateGet(this, _options).nocaseMagicOnly && glob.toUpperCase() !== glob.toLowerCase();
864
- if (!anyMagic) {
865
- return body;
866
- }
867
- const flags = (__privateGet(this, _options).nocase ? "i" : "") + (uflag ? "u" : "");
868
- return Object.assign(new RegExp(`^${re}$`, flags), {
869
- _src: re,
870
- _glob: glob
871
- });
872
- }
873
- get options() {
874
- return __privateGet(this, _options);
875
- }
876
- // returns the string match, the regexp source, whether there's magic
877
- // in the regexp (so a regular expression is required) and whether or
878
- // not the uflag is needed for the regular expression (for posix classes)
879
- // TODO: instead of injecting the start/end at this point, just return
880
- // the BODY of the regexp, along with the start/end portions suitable
881
- // for binding the start/end in either a joined full-path makeRe context
882
- // (where we bind to (^|/), or a standalone matchPart context (where
883
- // we bind to ^, and not /). Otherwise slashes get duped!
884
- //
885
- // In part-matching mode, the start is:
886
- // - if not isStart: nothing
887
- // - if traversal possible, but not allowed: ^(?!\.\.?$)
888
- // - if dots allowed or not possible: ^
889
- // - if dots possible and not allowed: ^(?!\.)
890
- // end is:
891
- // - if not isEnd(): nothing
892
- // - else: $
893
- //
894
- // In full-path matching mode, we put the slash at the START of the
895
- // pattern, so start is:
896
- // - if first pattern: same as part-matching mode
897
- // - if not isStart(): nothing
898
- // - if traversal possible, but not allowed: /(?!\.\.?(?:$|/))
899
- // - if dots allowed or not possible: /
900
- // - if dots possible and not allowed: /(?!\.)
901
- // end is:
902
- // - if last pattern, same as part-matching mode
903
- // - else nothing
904
- //
905
- // Always put the (?:$|/) on negated tails, though, because that has to be
906
- // there to bind the end of the negated pattern portion, and it's easier to
907
- // just stick it in now rather than try to inject it later in the middle of
908
- // the pattern.
909
- //
910
- // We can just always return the same end, and leave it up to the caller
911
- // to know whether it's going to be used joined or in parts.
912
- // And, if the start is adjusted slightly, can do the same there:
913
- // - if not isStart: nothing
914
- // - if traversal possible, but not allowed: (?:/|^)(?!\.\.?$)
915
- // - if dots allowed or not possible: (?:/|^)
916
- // - if dots possible and not allowed: (?:/|^)(?!\.)
917
- //
918
- // But it's better to have a simpler binding without a conditional, for
919
- // performance, so probably better to return both start options.
920
- //
921
- // Then the caller just ignores the end if it's not the first pattern,
922
- // and the start always gets applied.
923
- //
924
- // But that's always going to be $ if it's the ending pattern, or nothing,
925
- // so the caller can just attach $ at the end of the pattern when building.
926
- //
927
- // So the todo is:
928
- // - better detect what kind of start is needed
929
- // - return both flavors of starting pattern
930
- // - attach $ at the end of the pattern when creating the actual RegExp
931
- //
932
- // Ah, but wait, no, that all only applies to the root when the first pattern
933
- // is not an extglob. If the first pattern IS an extglob, then we need all
934
- // that dot prevention biz to live in the extglob portions, because eg
935
- // +(*|.x*) can match .xy but not .yx.
936
- //
937
- // So, return the two flavors if it's #root and the first child is not an
938
- // AST, otherwise leave it to the child AST to handle it, and there,
939
- // use the (?:^|/) style of start binding.
940
- //
941
- // Even simplified further:
942
- // - Since the start for a join is eg /(?!\.) and the start for a part
943
- // is ^(?!\.), we can just prepend (?!\.) to the pattern (either root
944
- // or start or whatever) and prepend ^ or / at the Regexp construction.
945
- toRegExpSource(allowDot) {
946
- var _a;
947
- const dot = allowDot != null ? allowDot : !!__privateGet(this, _options).dot;
948
- if (__privateGet(this, _root) === this)
949
- __privateMethod(this, _AST_instances, fillNegs_fn).call(this);
950
- if (!this.type) {
951
- const noEmpty = this.isStart() && this.isEnd();
952
- const src = __privateGet(this, _parts).map((p) => {
953
- var _a2;
954
- const [re, _, hasMagic, uflag] = typeof p === "string" ? __privateMethod(_a2 = _AST, _AST_static, parseGlob_fn).call(_a2, p, __privateGet(this, _hasMagic), noEmpty) : p.toRegExpSource(allowDot);
955
- __privateSet(this, _hasMagic, __privateGet(this, _hasMagic) || hasMagic);
956
- __privateSet(this, _uflag, __privateGet(this, _uflag) || uflag);
957
- return re;
958
- }).join("");
959
- let start2 = "";
960
- if (this.isStart()) {
961
- if (typeof __privateGet(this, _parts)[0] === "string") {
962
- const dotTravAllowed = __privateGet(this, _parts).length === 1 && justDots.has(__privateGet(this, _parts)[0]);
963
- if (!dotTravAllowed) {
964
- const aps = addPatternStart;
965
- const needNoTrav = (
966
- // dots are allowed, and the pattern starts with [ or .
967
- dot && aps.has(src.charAt(0)) || // the pattern starts with \., and then [ or .
968
- src.startsWith("\\.") && aps.has(src.charAt(2)) || // the pattern starts with \.\., and then [ or .
969
- src.startsWith("\\.\\.") && aps.has(src.charAt(4))
970
- );
971
- const needNoDot = !dot && !allowDot && aps.has(src.charAt(0));
972
- start2 = needNoTrav ? startNoTraversal : needNoDot ? startNoDot : "";
973
- }
974
- }
975
- }
976
- let end = "";
977
- if (this.isEnd() && __privateGet(__privateGet(this, _root), _filledNegs) && ((_a = __privateGet(this, _parent)) == null ? void 0 : _a.type) === "!") {
978
- end = "(?:$|\\/)";
979
- }
980
- const final2 = start2 + src + end;
981
- return [
982
- final2,
983
- unescape(src),
984
- __privateSet(this, _hasMagic, !!__privateGet(this, _hasMagic)),
985
- __privateGet(this, _uflag)
986
- ];
987
- }
988
- const repeated = this.type === "*" || this.type === "+";
989
- const start = this.type === "!" ? "(?:(?!(?:" : "(?:";
990
- let body = __privateMethod(this, _AST_instances, partsToRegExp_fn).call(this, dot);
991
- if (this.isStart() && this.isEnd() && !body && this.type !== "!") {
992
- const s = this.toString();
993
- __privateSet(this, _parts, [s]);
994
- this.type = null;
995
- __privateSet(this, _hasMagic, void 0);
996
- return [s, unescape(this.toString()), false, false];
997
- }
998
- let bodyDotAllowed = !repeated || allowDot || dot || false ? "" : __privateMethod(this, _AST_instances, partsToRegExp_fn).call(this, true);
999
- if (bodyDotAllowed === body) {
1000
- bodyDotAllowed = "";
1001
- }
1002
- if (bodyDotAllowed) {
1003
- body = `(?:${body})(?:${bodyDotAllowed})*?`;
1004
- }
1005
- let final = "";
1006
- if (this.type === "!" && __privateGet(this, _emptyExt)) {
1007
- final = (this.isStart() && !dot ? startNoDot : "") + starNoEmpty;
1008
- } else {
1009
- const close = this.type === "!" ? (
1010
- // !() must match something,but !(x) can match ''
1011
- "))" + (this.isStart() && !dot && !allowDot ? startNoDot : "") + star + ")"
1012
- ) : this.type === "@" ? ")" : this.type === "?" ? ")?" : this.type === "+" && bodyDotAllowed ? ")" : this.type === "*" && bodyDotAllowed ? `)?` : `)${this.type}`;
1013
- final = start + body + close;
1014
- }
1015
- return [
1016
- final,
1017
- unescape(body),
1018
- __privateSet(this, _hasMagic, !!__privateGet(this, _hasMagic)),
1019
- __privateGet(this, _uflag)
1020
- ];
1021
- }
1022
- };
1023
- _root = new WeakMap();
1024
- _hasMagic = new WeakMap();
1025
- _uflag = new WeakMap();
1026
- _parts = new WeakMap();
1027
- _parent = new WeakMap();
1028
- _parentIndex = new WeakMap();
1029
- _negs = new WeakMap();
1030
- _filledNegs = new WeakMap();
1031
- _options = new WeakMap();
1032
- _toString = new WeakMap();
1033
- _emptyExt = new WeakMap();
1034
- _AST_instances = new WeakSet();
1035
- fillNegs_fn = function() {
1036
- if (this !== __privateGet(this, _root))
1037
- throw new Error("should only call on root");
1038
- if (__privateGet(this, _filledNegs))
1039
- return this;
1040
- this.toString();
1041
- __privateSet(this, _filledNegs, true);
1042
- let n;
1043
- while (n = __privateGet(this, _negs).pop()) {
1044
- if (n.type !== "!")
1045
- continue;
1046
- let p = n;
1047
- let pp = __privateGet(p, _parent);
1048
- while (pp) {
1049
- for (let i2 = __privateGet(p, _parentIndex) + 1; !pp.type && i2 < __privateGet(pp, _parts).length; i2++) {
1050
- for (const part of __privateGet(n, _parts)) {
1051
- if (typeof part === "string") {
1052
- throw new Error("string part in extglob AST??");
1053
- }
1054
- part.copyIn(__privateGet(pp, _parts)[i2]);
1055
- }
1056
- }
1057
- p = pp;
1058
- pp = __privateGet(p, _parent);
1059
- }
1060
- }
1061
- return this;
1062
- };
1063
- _AST_static = new WeakSet();
1064
- parseAST_fn = function(str, ast, pos, opt) {
1065
- var _a, _b;
1066
- let escaping = false;
1067
- let inBrace = false;
1068
- let braceStart = -1;
1069
- let braceNeg = false;
1070
- if (ast.type === null) {
1071
- let i3 = pos;
1072
- let acc2 = "";
1073
- while (i3 < str.length) {
1074
- const c = str.charAt(i3++);
1075
- if (escaping || c === "\\") {
1076
- escaping = !escaping;
1077
- acc2 += c;
1078
- continue;
1079
- }
1080
- if (inBrace) {
1081
- if (i3 === braceStart + 1) {
1082
- if (c === "^" || c === "!") {
1083
- braceNeg = true;
1084
- }
1085
- } else if (c === "]" && !(i3 === braceStart + 2 && braceNeg)) {
1086
- inBrace = false;
1087
- }
1088
- acc2 += c;
1089
- continue;
1090
- } else if (c === "[") {
1091
- inBrace = true;
1092
- braceStart = i3;
1093
- braceNeg = false;
1094
- acc2 += c;
1095
- continue;
1096
- }
1097
- if (!opt.noext && isExtglobType(c) && str.charAt(i3) === "(") {
1098
- ast.push(acc2);
1099
- acc2 = "";
1100
- const ext2 = new _AST(c, ast);
1101
- i3 = __privateMethod(_a = _AST, _AST_static, parseAST_fn).call(_a, str, ext2, i3, opt);
1102
- ast.push(ext2);
1103
- continue;
1104
- }
1105
- acc2 += c;
1106
- }
1107
- ast.push(acc2);
1108
- return i3;
1109
- }
1110
- let i2 = pos + 1;
1111
- let part = new _AST(null, ast);
1112
- const parts = [];
1113
- let acc = "";
1114
- while (i2 < str.length) {
1115
- const c = str.charAt(i2++);
1116
- if (escaping || c === "\\") {
1117
- escaping = !escaping;
1118
- acc += c;
1119
- continue;
1120
- }
1121
- if (inBrace) {
1122
- if (i2 === braceStart + 1) {
1123
- if (c === "^" || c === "!") {
1124
- braceNeg = true;
1125
- }
1126
- } else if (c === "]" && !(i2 === braceStart + 2 && braceNeg)) {
1127
- inBrace = false;
1128
- }
1129
- acc += c;
1130
- continue;
1131
- } else if (c === "[") {
1132
- inBrace = true;
1133
- braceStart = i2;
1134
- braceNeg = false;
1135
- acc += c;
1136
- continue;
1137
- }
1138
- if (isExtglobType(c) && str.charAt(i2) === "(") {
1139
- part.push(acc);
1140
- acc = "";
1141
- const ext2 = new _AST(c, part);
1142
- part.push(ext2);
1143
- i2 = __privateMethod(_b = _AST, _AST_static, parseAST_fn).call(_b, str, ext2, i2, opt);
1144
- continue;
1145
- }
1146
- if (c === "|") {
1147
- part.push(acc);
1148
- acc = "";
1149
- parts.push(part);
1150
- part = new _AST(null, ast);
1151
- continue;
1152
- }
1153
- if (c === ")") {
1154
- if (acc === "" && __privateGet(ast, _parts).length === 0) {
1155
- __privateSet(ast, _emptyExt, true);
1156
- }
1157
- part.push(acc);
1158
- acc = "";
1159
- ast.push(...parts, part);
1160
- return i2;
1161
- }
1162
- acc += c;
1163
- }
1164
- ast.type = null;
1165
- __privateSet(ast, _hasMagic, void 0);
1166
- __privateSet(ast, _parts, [str.substring(pos - 1)]);
1167
- return i2;
1168
- };
1169
- partsToRegExp_fn = function(dot) {
1170
- return __privateGet(this, _parts).map((p) => {
1171
- if (typeof p === "string") {
1172
- throw new Error("string type in extglob ast??");
1173
- }
1174
- const [re, _, _hasMagic2, uflag] = p.toRegExpSource(dot);
1175
- __privateSet(this, _uflag, __privateGet(this, _uflag) || uflag);
1176
- return re;
1177
- }).filter((p) => !(this.isStart() && this.isEnd()) || !!p).join("|");
1178
- };
1179
- parseGlob_fn = function(glob, hasMagic, noEmpty = false) {
1180
- let escaping = false;
1181
- let re = "";
1182
- let uflag = false;
1183
- for (let i2 = 0; i2 < glob.length; i2++) {
1184
- const c = glob.charAt(i2);
1185
- if (escaping) {
1186
- escaping = false;
1187
- re += (reSpecials.has(c) ? "\\" : "") + c;
1188
- continue;
1189
- }
1190
- if (c === "\\") {
1191
- if (i2 === glob.length - 1) {
1192
- re += "\\\\";
1193
- } else {
1194
- escaping = true;
1195
- }
1196
- continue;
1197
- }
1198
- if (c === "[") {
1199
- const [src, needUflag, consumed, magic] = parseClass(glob, i2);
1200
- if (consumed) {
1201
- re += src;
1202
- uflag = uflag || needUflag;
1203
- i2 += consumed - 1;
1204
- hasMagic = hasMagic || magic;
1205
- continue;
1206
- }
1207
- }
1208
- if (c === "*") {
1209
- if (noEmpty && glob === "*")
1210
- re += starNoEmpty;
1211
- else
1212
- re += star;
1213
- hasMagic = true;
1214
- continue;
1215
- }
1216
- if (c === "?") {
1217
- re += qmark;
1218
- hasMagic = true;
1219
- continue;
1220
- }
1221
- re += regExpEscape(c);
1222
- }
1223
- return [re, unescape(glob), !!hasMagic, uflag];
1224
- };
1225
- __privateAdd(_AST, _AST_static);
1226
- var AST = _AST;
1227
-
1228
- // node_modules/minimatch/dist/esm/escape.js
1229
- var escape = (s, { windowsPathsNoEscape = false } = {}) => {
1230
- return windowsPathsNoEscape ? s.replace(/[?*()[\]]/g, "[$&]") : s.replace(/[?*()[\]\\]/g, "\\$&");
1231
- };
1232
-
1233
- // node_modules/minimatch/dist/esm/index.js
1234
- var minimatch = (p, pattern, options = {}) => {
1235
- assertValidPattern(pattern);
1236
- if (!options.nocomment && pattern.charAt(0) === "#") {
1237
- return false;
1238
- }
1239
- return new Minimatch(pattern, options).match(p);
1240
- };
1241
- var starDotExtRE = /^\*+([^+@!?\*\[\(]*)$/;
1242
- var starDotExtTest = (ext2) => (f) => !f.startsWith(".") && f.endsWith(ext2);
1243
- var starDotExtTestDot = (ext2) => (f) => f.endsWith(ext2);
1244
- var starDotExtTestNocase = (ext2) => {
1245
- ext2 = ext2.toLowerCase();
1246
- return (f) => !f.startsWith(".") && f.toLowerCase().endsWith(ext2);
1247
- };
1248
- var starDotExtTestNocaseDot = (ext2) => {
1249
- ext2 = ext2.toLowerCase();
1250
- return (f) => f.toLowerCase().endsWith(ext2);
1251
- };
1252
- var starDotStarRE = /^\*+\.\*+$/;
1253
- var starDotStarTest = (f) => !f.startsWith(".") && f.includes(".");
1254
- var starDotStarTestDot = (f) => f !== "." && f !== ".." && f.includes(".");
1255
- var dotStarRE = /^\.\*+$/;
1256
- var dotStarTest = (f) => f !== "." && f !== ".." && f.startsWith(".");
1257
- var starRE = /^\*+$/;
1258
- var starTest = (f) => f.length !== 0 && !f.startsWith(".");
1259
- var starTestDot = (f) => f.length !== 0 && f !== "." && f !== "..";
1260
- var qmarksRE = /^\?+([^+@!?\*\[\(]*)?$/;
1261
- var qmarksTestNocase = ([$0, ext2 = ""]) => {
1262
- const noext = qmarksTestNoExt([$0]);
1263
- if (!ext2)
1264
- return noext;
1265
- ext2 = ext2.toLowerCase();
1266
- return (f) => noext(f) && f.toLowerCase().endsWith(ext2);
1267
- };
1268
- var qmarksTestNocaseDot = ([$0, ext2 = ""]) => {
1269
- const noext = qmarksTestNoExtDot([$0]);
1270
- if (!ext2)
1271
- return noext;
1272
- ext2 = ext2.toLowerCase();
1273
- return (f) => noext(f) && f.toLowerCase().endsWith(ext2);
1274
- };
1275
- var qmarksTestDot = ([$0, ext2 = ""]) => {
1276
- const noext = qmarksTestNoExtDot([$0]);
1277
- return !ext2 ? noext : (f) => noext(f) && f.endsWith(ext2);
1278
- };
1279
- var qmarksTest = ([$0, ext2 = ""]) => {
1280
- const noext = qmarksTestNoExt([$0]);
1281
- return !ext2 ? noext : (f) => noext(f) && f.endsWith(ext2);
1282
- };
1283
- var qmarksTestNoExt = ([$0]) => {
1284
- const len = $0.length;
1285
- return (f) => f.length === len && !f.startsWith(".");
1286
- };
1287
- var qmarksTestNoExtDot = ([$0]) => {
1288
- const len = $0.length;
1289
- return (f) => f.length === len && f !== "." && f !== "..";
1290
- };
1291
- var defaultPlatform = typeof process === "object" && process ? typeof process.env === "object" && process.env && process.env.__MINIMATCH_TESTING_PLATFORM__ || process.platform : "posix";
1292
- var path = {
1293
- win32: { sep: "\\" },
1294
- posix: { sep: "/" }
1295
- };
1296
- var sep = defaultPlatform === "win32" ? path.win32.sep : path.posix.sep;
1297
- minimatch.sep = sep;
1298
- var GLOBSTAR = Symbol("globstar **");
1299
- minimatch.GLOBSTAR = GLOBSTAR;
1300
- var qmark2 = "[^/]";
1301
- var star2 = qmark2 + "*?";
1302
- var twoStarDot = "(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";
1303
- var twoStarNoDot = "(?:(?!(?:\\/|^)\\.).)*?";
1304
- var filter = (pattern, options = {}) => (p) => minimatch(p, pattern, options);
1305
- minimatch.filter = filter;
1306
- var ext = (a, b = {}) => Object.assign({}, a, b);
1307
- var defaults = (def) => {
1308
- if (!def || typeof def !== "object" || !Object.keys(def).length) {
1309
- return minimatch;
1310
- }
1311
- const orig = minimatch;
1312
- const m = (p, pattern, options = {}) => orig(p, pattern, ext(def, options));
1313
- return Object.assign(m, {
1314
- Minimatch: class Minimatch extends orig.Minimatch {
1315
- constructor(pattern, options = {}) {
1316
- super(pattern, ext(def, options));
1317
- }
1318
- static defaults(options) {
1319
- return orig.defaults(ext(def, options)).Minimatch;
1320
- }
1321
- },
1322
- AST: class AST extends orig.AST {
1323
- /* c8 ignore start */
1324
- constructor(type, parent, options = {}) {
1325
- super(type, parent, ext(def, options));
1326
- }
1327
- /* c8 ignore stop */
1328
- static fromGlob(pattern, options = {}) {
1329
- return orig.AST.fromGlob(pattern, ext(def, options));
1330
- }
1331
- },
1332
- unescape: (s, options = {}) => orig.unescape(s, ext(def, options)),
1333
- escape: (s, options = {}) => orig.escape(s, ext(def, options)),
1334
- filter: (pattern, options = {}) => orig.filter(pattern, ext(def, options)),
1335
- defaults: (options) => orig.defaults(ext(def, options)),
1336
- makeRe: (pattern, options = {}) => orig.makeRe(pattern, ext(def, options)),
1337
- braceExpand: (pattern, options = {}) => orig.braceExpand(pattern, ext(def, options)),
1338
- match: (list, pattern, options = {}) => orig.match(list, pattern, ext(def, options)),
1339
- sep: orig.sep,
1340
- GLOBSTAR
1341
- });
1342
- };
1343
- minimatch.defaults = defaults;
1344
- var braceExpand = (pattern, options = {}) => {
1345
- assertValidPattern(pattern);
1346
- if (options.nobrace || !/\{(?:(?!\{).)*\}/.test(pattern)) {
1347
- return [pattern];
1348
- }
1349
- return (0, import_brace_expansion.default)(pattern);
1350
- };
1351
- minimatch.braceExpand = braceExpand;
1352
- var makeRe = (pattern, options = {}) => new Minimatch(pattern, options).makeRe();
1353
- minimatch.makeRe = makeRe;
1354
- var match = (list, pattern, options = {}) => {
1355
- const mm = new Minimatch(pattern, options);
1356
- list = list.filter((f) => mm.match(f));
1357
- if (mm.options.nonull && !list.length) {
1358
- list.push(pattern);
1359
- }
1360
- return list;
1361
- };
1362
- minimatch.match = match;
1363
- var globMagic = /[?*]|[+@!]\(.*?\)|\[|\]/;
1364
- var regExpEscape2 = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
1365
- var Minimatch = class {
1366
- options;
1367
- set;
1368
- pattern;
1369
- windowsPathsNoEscape;
1370
- nonegate;
1371
- negate;
1372
- comment;
1373
- empty;
1374
- preserveMultipleSlashes;
1375
- partial;
1376
- globSet;
1377
- globParts;
1378
- nocase;
1379
- isWindows;
1380
- platform;
1381
- windowsNoMagicRoot;
1382
- regexp;
1383
- constructor(pattern, options = {}) {
1384
- assertValidPattern(pattern);
1385
- options = options || {};
1386
- this.options = options;
1387
- this.pattern = pattern;
1388
- this.platform = options.platform || defaultPlatform;
1389
- this.isWindows = this.platform === "win32";
1390
- this.windowsPathsNoEscape = !!options.windowsPathsNoEscape || options.allowWindowsEscape === false;
1391
- if (this.windowsPathsNoEscape) {
1392
- this.pattern = this.pattern.replace(/\\/g, "/");
1393
- }
1394
- this.preserveMultipleSlashes = !!options.preserveMultipleSlashes;
1395
- this.regexp = null;
1396
- this.negate = false;
1397
- this.nonegate = !!options.nonegate;
1398
- this.comment = false;
1399
- this.empty = false;
1400
- this.partial = !!options.partial;
1401
- this.nocase = !!this.options.nocase;
1402
- this.windowsNoMagicRoot = options.windowsNoMagicRoot !== void 0 ? options.windowsNoMagicRoot : !!(this.isWindows && this.nocase);
1403
- this.globSet = [];
1404
- this.globParts = [];
1405
- this.set = [];
1406
- this.make();
1407
- }
1408
- hasMagic() {
1409
- if (this.options.magicalBraces && this.set.length > 1) {
1410
- return true;
1411
- }
1412
- for (const pattern of this.set) {
1413
- for (const part of pattern) {
1414
- if (typeof part !== "string")
1415
- return true;
1416
- }
1417
- }
1418
- return false;
1419
- }
1420
- debug(..._) {
1421
- }
1422
- make() {
1423
- const pattern = this.pattern;
1424
- const options = this.options;
1425
- if (!options.nocomment && pattern.charAt(0) === "#") {
1426
- this.comment = true;
1427
- return;
1428
- }
1429
- if (!pattern) {
1430
- this.empty = true;
1431
- return;
1432
- }
1433
- this.parseNegate();
1434
- this.globSet = [...new Set(this.braceExpand())];
1435
- if (options.debug) {
1436
- this.debug = (...args) => console.error(...args);
1437
- }
1438
- this.debug(this.pattern, this.globSet);
1439
- const rawGlobParts = this.globSet.map((s) => this.slashSplit(s));
1440
- this.globParts = this.preprocess(rawGlobParts);
1441
- this.debug(this.pattern, this.globParts);
1442
- let set = this.globParts.map((s, _, __) => {
1443
- if (this.isWindows && this.windowsNoMagicRoot) {
1444
- const isUNC = s[0] === "" && s[1] === "" && (s[2] === "?" || !globMagic.test(s[2])) && !globMagic.test(s[3]);
1445
- const isDrive = /^[a-z]:/i.test(s[0]);
1446
- if (isUNC) {
1447
- return [...s.slice(0, 4), ...s.slice(4).map((ss) => this.parse(ss))];
1448
- } else if (isDrive) {
1449
- return [s[0], ...s.slice(1).map((ss) => this.parse(ss))];
1450
- }
1451
- }
1452
- return s.map((ss) => this.parse(ss));
1453
- });
1454
- this.debug(this.pattern, set);
1455
- this.set = set.filter((s) => s.indexOf(false) === -1);
1456
- if (this.isWindows) {
1457
- for (let i2 = 0; i2 < this.set.length; i2++) {
1458
- const p = this.set[i2];
1459
- if (p[0] === "" && p[1] === "" && this.globParts[i2][2] === "?" && typeof p[3] === "string" && /^[a-z]:$/i.test(p[3])) {
1460
- p[2] = "?";
1461
- }
1462
- }
1463
- }
1464
- this.debug(this.pattern, this.set);
1465
- }
1466
- // various transforms to equivalent pattern sets that are
1467
- // faster to process in a filesystem walk. The goal is to
1468
- // eliminate what we can, and push all ** patterns as far
1469
- // to the right as possible, even if it increases the number
1470
- // of patterns that we have to process.
1471
- preprocess(globParts) {
1472
- if (this.options.noglobstar) {
1473
- for (let i2 = 0; i2 < globParts.length; i2++) {
1474
- for (let j = 0; j < globParts[i2].length; j++) {
1475
- if (globParts[i2][j] === "**") {
1476
- globParts[i2][j] = "*";
1477
- }
1478
- }
1479
- }
1480
- }
1481
- const { optimizationLevel = 1 } = this.options;
1482
- if (optimizationLevel >= 2) {
1483
- globParts = this.firstPhasePreProcess(globParts);
1484
- globParts = this.secondPhasePreProcess(globParts);
1485
- } else if (optimizationLevel >= 1) {
1486
- globParts = this.levelOneOptimize(globParts);
1487
- } else {
1488
- globParts = this.adjascentGlobstarOptimize(globParts);
1489
- }
1490
- return globParts;
1491
- }
1492
- // just get rid of adjascent ** portions
1493
- adjascentGlobstarOptimize(globParts) {
1494
- return globParts.map((parts) => {
1495
- let gs = -1;
1496
- while (-1 !== (gs = parts.indexOf("**", gs + 1))) {
1497
- let i2 = gs;
1498
- while (parts[i2 + 1] === "**") {
1499
- i2++;
1500
- }
1501
- if (i2 !== gs) {
1502
- parts.splice(gs, i2 - gs);
1503
- }
1504
- }
1505
- return parts;
1506
- });
1507
- }
1508
- // get rid of adjascent ** and resolve .. portions
1509
- levelOneOptimize(globParts) {
1510
- return globParts.map((parts) => {
1511
- parts = parts.reduce((set, part) => {
1512
- const prev = set[set.length - 1];
1513
- if (part === "**" && prev === "**") {
1514
- return set;
1515
- }
1516
- if (part === "..") {
1517
- if (prev && prev !== ".." && prev !== "." && prev !== "**") {
1518
- set.pop();
1519
- return set;
1520
- }
1521
- }
1522
- set.push(part);
1523
- return set;
1524
- }, []);
1525
- return parts.length === 0 ? [""] : parts;
1526
- });
1527
- }
1528
- levelTwoFileOptimize(parts) {
1529
- if (!Array.isArray(parts)) {
1530
- parts = this.slashSplit(parts);
1531
- }
1532
- let didSomething = false;
1533
- do {
1534
- didSomething = false;
1535
- if (!this.preserveMultipleSlashes) {
1536
- for (let i2 = 1; i2 < parts.length - 1; i2++) {
1537
- const p = parts[i2];
1538
- if (i2 === 1 && p === "" && parts[0] === "")
1539
- continue;
1540
- if (p === "." || p === "") {
1541
- didSomething = true;
1542
- parts.splice(i2, 1);
1543
- i2--;
1544
- }
1545
- }
1546
- if (parts[0] === "." && parts.length === 2 && (parts[1] === "." || parts[1] === "")) {
1547
- didSomething = true;
1548
- parts.pop();
1549
- }
1550
- }
1551
- let dd = 0;
1552
- while (-1 !== (dd = parts.indexOf("..", dd + 1))) {
1553
- const p = parts[dd - 1];
1554
- if (p && p !== "." && p !== ".." && p !== "**") {
1555
- didSomething = true;
1556
- parts.splice(dd - 1, 2);
1557
- dd -= 2;
1558
- }
1559
- }
1560
- } while (didSomething);
1561
- return parts.length === 0 ? [""] : parts;
1562
- }
1563
- // First phase: single-pattern processing
1564
- // <pre> is 1 or more portions
1565
- // <rest> is 1 or more portions
1566
- // <p> is any portion other than ., .., '', or **
1567
- // <e> is . or ''
1568
- //
1569
- // **/.. is *brutal* for filesystem walking performance, because
1570
- // it effectively resets the recursive walk each time it occurs,
1571
- // and ** cannot be reduced out by a .. pattern part like a regexp
1572
- // or most strings (other than .., ., and '') can be.
1573
- //
1574
- // <pre>/**/../<p>/<p>/<rest> -> {<pre>/../<p>/<p>/<rest>,<pre>/**/<p>/<p>/<rest>}
1575
- // <pre>/<e>/<rest> -> <pre>/<rest>
1576
- // <pre>/<p>/../<rest> -> <pre>/<rest>
1577
- // **/**/<rest> -> **/<rest>
1578
- //
1579
- // **/*/<rest> -> */**/<rest> <== not valid because ** doesn't follow
1580
- // this WOULD be allowed if ** did follow symlinks, or * didn't
1581
- firstPhasePreProcess(globParts) {
1582
- let didSomething = false;
1583
- do {
1584
- didSomething = false;
1585
- for (let parts of globParts) {
1586
- let gs = -1;
1587
- while (-1 !== (gs = parts.indexOf("**", gs + 1))) {
1588
- let gss = gs;
1589
- while (parts[gss + 1] === "**") {
1590
- gss++;
1591
- }
1592
- if (gss > gs) {
1593
- parts.splice(gs + 1, gss - gs);
1594
- }
1595
- let next = parts[gs + 1];
1596
- const p = parts[gs + 2];
1597
- const p2 = parts[gs + 3];
1598
- if (next !== "..")
1599
- continue;
1600
- if (!p || p === "." || p === ".." || !p2 || p2 === "." || p2 === "..") {
1601
- continue;
1602
- }
1603
- didSomething = true;
1604
- parts.splice(gs, 1);
1605
- const other = parts.slice(0);
1606
- other[gs] = "**";
1607
- globParts.push(other);
1608
- gs--;
1609
- }
1610
- if (!this.preserveMultipleSlashes) {
1611
- for (let i2 = 1; i2 < parts.length - 1; i2++) {
1612
- const p = parts[i2];
1613
- if (i2 === 1 && p === "" && parts[0] === "")
1614
- continue;
1615
- if (p === "." || p === "") {
1616
- didSomething = true;
1617
- parts.splice(i2, 1);
1618
- i2--;
1619
- }
1620
- }
1621
- if (parts[0] === "." && parts.length === 2 && (parts[1] === "." || parts[1] === "")) {
1622
- didSomething = true;
1623
- parts.pop();
1624
- }
1625
- }
1626
- let dd = 0;
1627
- while (-1 !== (dd = parts.indexOf("..", dd + 1))) {
1628
- const p = parts[dd - 1];
1629
- if (p && p !== "." && p !== ".." && p !== "**") {
1630
- didSomething = true;
1631
- const needDot = dd === 1 && parts[dd + 1] === "**";
1632
- const splin = needDot ? ["."] : [];
1633
- parts.splice(dd - 1, 2, ...splin);
1634
- if (parts.length === 0)
1635
- parts.push("");
1636
- dd -= 2;
1637
- }
1638
- }
1639
- }
1640
- } while (didSomething);
1641
- return globParts;
1642
- }
1643
- // second phase: multi-pattern dedupes
1644
- // {<pre>/*/<rest>,<pre>/<p>/<rest>} -> <pre>/*/<rest>
1645
- // {<pre>/<rest>,<pre>/<rest>} -> <pre>/<rest>
1646
- // {<pre>/**/<rest>,<pre>/<rest>} -> <pre>/**/<rest>
1647
- //
1648
- // {<pre>/**/<rest>,<pre>/**/<p>/<rest>} -> <pre>/**/<rest>
1649
- // ^-- not valid because ** doens't follow symlinks
1650
- secondPhasePreProcess(globParts) {
1651
- for (let i2 = 0; i2 < globParts.length - 1; i2++) {
1652
- for (let j = i2 + 1; j < globParts.length; j++) {
1653
- const matched = this.partsMatch(globParts[i2], globParts[j], !this.preserveMultipleSlashes);
1654
- if (!matched)
1655
- continue;
1656
- globParts[i2] = matched;
1657
- globParts[j] = [];
1658
- }
1659
- }
1660
- return globParts.filter((gs) => gs.length);
1661
- }
1662
- partsMatch(a, b, emptyGSMatch = false) {
1663
- let ai = 0;
1664
- let bi = 0;
1665
- let result = [];
1666
- let which = "";
1667
- while (ai < a.length && bi < b.length) {
1668
- if (a[ai] === b[bi]) {
1669
- result.push(which === "b" ? b[bi] : a[ai]);
1670
- ai++;
1671
- bi++;
1672
- } else if (emptyGSMatch && a[ai] === "**" && b[bi] === a[ai + 1]) {
1673
- result.push(a[ai]);
1674
- ai++;
1675
- } else if (emptyGSMatch && b[bi] === "**" && a[ai] === b[bi + 1]) {
1676
- result.push(b[bi]);
1677
- bi++;
1678
- } else if (a[ai] === "*" && b[bi] && (this.options.dot || !b[bi].startsWith(".")) && b[bi] !== "**") {
1679
- if (which === "b")
1680
- return false;
1681
- which = "a";
1682
- result.push(a[ai]);
1683
- ai++;
1684
- bi++;
1685
- } else if (b[bi] === "*" && a[ai] && (this.options.dot || !a[ai].startsWith(".")) && a[ai] !== "**") {
1686
- if (which === "a")
1687
- return false;
1688
- which = "b";
1689
- result.push(b[bi]);
1690
- ai++;
1691
- bi++;
1692
- } else {
1693
- return false;
1694
- }
1695
- }
1696
- return a.length === b.length && result;
1697
- }
1698
- parseNegate() {
1699
- if (this.nonegate)
1700
- return;
1701
- const pattern = this.pattern;
1702
- let negate = false;
1703
- let negateOffset = 0;
1704
- for (let i2 = 0; i2 < pattern.length && pattern.charAt(i2) === "!"; i2++) {
1705
- negate = !negate;
1706
- negateOffset++;
1707
- }
1708
- if (negateOffset)
1709
- this.pattern = pattern.slice(negateOffset);
1710
- this.negate = negate;
1711
- }
1712
- // set partial to true to test if, for example,
1713
- // "/a/b" matches the start of "/*/b/*/d"
1714
- // Partial means, if you run out of file before you run
1715
- // out of pattern, then that's fine, as long as all
1716
- // the parts match.
1717
- matchOne(file, pattern, partial = false) {
1718
- const options = this.options;
1719
- if (this.isWindows) {
1720
- const fileDrive = typeof file[0] === "string" && /^[a-z]:$/i.test(file[0]);
1721
- const fileUNC = !fileDrive && file[0] === "" && file[1] === "" && file[2] === "?" && /^[a-z]:$/i.test(file[3]);
1722
- const patternDrive = typeof pattern[0] === "string" && /^[a-z]:$/i.test(pattern[0]);
1723
- const patternUNC = !patternDrive && pattern[0] === "" && pattern[1] === "" && pattern[2] === "?" && typeof pattern[3] === "string" && /^[a-z]:$/i.test(pattern[3]);
1724
- const fdi = fileUNC ? 3 : fileDrive ? 0 : void 0;
1725
- const pdi = patternUNC ? 3 : patternDrive ? 0 : void 0;
1726
- if (typeof fdi === "number" && typeof pdi === "number") {
1727
- const [fd, pd] = [file[fdi], pattern[pdi]];
1728
- if (fd.toLowerCase() === pd.toLowerCase()) {
1729
- pattern[pdi] = fd;
1730
- if (pdi > fdi) {
1731
- pattern = pattern.slice(pdi);
1732
- } else if (fdi > pdi) {
1733
- file = file.slice(fdi);
1734
- }
1735
- }
1736
- }
1737
- }
1738
- const { optimizationLevel = 1 } = this.options;
1739
- if (optimizationLevel >= 2) {
1740
- file = this.levelTwoFileOptimize(file);
1741
- }
1742
- this.debug("matchOne", this, { file, pattern });
1743
- this.debug("matchOne", file.length, pattern.length);
1744
- for (var fi = 0, pi = 0, fl = file.length, pl = pattern.length; fi < fl && pi < pl; fi++, pi++) {
1745
- this.debug("matchOne loop");
1746
- var p = pattern[pi];
1747
- var f = file[fi];
1748
- this.debug(pattern, p, f);
1749
- if (p === false) {
1750
- return false;
1751
- }
1752
- if (p === GLOBSTAR) {
1753
- this.debug("GLOBSTAR", [pattern, p, f]);
1754
- var fr = fi;
1755
- var pr = pi + 1;
1756
- if (pr === pl) {
1757
- this.debug("** at the end");
1758
- for (; fi < fl; fi++) {
1759
- if (file[fi] === "." || file[fi] === ".." || !options.dot && file[fi].charAt(0) === ".")
1760
- return false;
1761
- }
1762
- return true;
1763
- }
1764
- while (fr < fl) {
1765
- var swallowee = file[fr];
1766
- this.debug("\nglobstar while", file, fr, pattern, pr, swallowee);
1767
- if (this.matchOne(file.slice(fr), pattern.slice(pr), partial)) {
1768
- this.debug("globstar found match!", fr, fl, swallowee);
1769
- return true;
1770
- } else {
1771
- if (swallowee === "." || swallowee === ".." || !options.dot && swallowee.charAt(0) === ".") {
1772
- this.debug("dot detected!", file, fr, pattern, pr);
1773
- break;
1774
- }
1775
- this.debug("globstar swallow a segment, and continue");
1776
- fr++;
1777
- }
1778
- }
1779
- if (partial) {
1780
- this.debug("\n>>> no match, partial?", file, fr, pattern, pr);
1781
- if (fr === fl) {
1782
- return true;
1783
- }
1784
- }
1785
- return false;
1786
- }
1787
- let hit;
1788
- if (typeof p === "string") {
1789
- hit = f === p;
1790
- this.debug("string match", p, f, hit);
1791
- } else {
1792
- hit = p.test(f);
1793
- this.debug("pattern match", p, f, hit);
1794
- }
1795
- if (!hit)
1796
- return false;
1797
- }
1798
- if (fi === fl && pi === pl) {
1799
- return true;
1800
- } else if (fi === fl) {
1801
- return partial;
1802
- } else if (pi === pl) {
1803
- return fi === fl - 1 && file[fi] === "";
1804
- } else {
1805
- throw new Error("wtf?");
1806
- }
1807
- }
1808
- braceExpand() {
1809
- return braceExpand(this.pattern, this.options);
1810
- }
1811
- parse(pattern) {
1812
- assertValidPattern(pattern);
1813
- const options = this.options;
1814
- if (pattern === "**")
1815
- return GLOBSTAR;
1816
- if (pattern === "")
1817
- return "";
1818
- let m;
1819
- let fastTest = null;
1820
- if (m = pattern.match(starRE)) {
1821
- fastTest = options.dot ? starTestDot : starTest;
1822
- } else if (m = pattern.match(starDotExtRE)) {
1823
- fastTest = (options.nocase ? options.dot ? starDotExtTestNocaseDot : starDotExtTestNocase : options.dot ? starDotExtTestDot : starDotExtTest)(m[1]);
1824
- } else if (m = pattern.match(qmarksRE)) {
1825
- fastTest = (options.nocase ? options.dot ? qmarksTestNocaseDot : qmarksTestNocase : options.dot ? qmarksTestDot : qmarksTest)(m);
1826
- } else if (m = pattern.match(starDotStarRE)) {
1827
- fastTest = options.dot ? starDotStarTestDot : starDotStarTest;
1828
- } else if (m = pattern.match(dotStarRE)) {
1829
- fastTest = dotStarTest;
1830
- }
1831
- const re = AST.fromGlob(pattern, this.options).toMMPattern();
1832
- if (fastTest && typeof re === "object") {
1833
- Reflect.defineProperty(re, "test", { value: fastTest });
1834
- }
1835
- return re;
1836
- }
1837
- makeRe() {
1838
- if (this.regexp || this.regexp === false)
1839
- return this.regexp;
1840
- const set = this.set;
1841
- if (!set.length) {
1842
- this.regexp = false;
1843
- return this.regexp;
1844
- }
1845
- const options = this.options;
1846
- const twoStar = options.noglobstar ? star2 : options.dot ? twoStarDot : twoStarNoDot;
1847
- const flags = new Set(options.nocase ? ["i"] : []);
1848
- let re = set.map((pattern) => {
1849
- const pp = pattern.map((p) => {
1850
- if (p instanceof RegExp) {
1851
- for (const f of p.flags.split(""))
1852
- flags.add(f);
1853
- }
1854
- return typeof p === "string" ? regExpEscape2(p) : p === GLOBSTAR ? GLOBSTAR : p._src;
1855
- });
1856
- pp.forEach((p, i2) => {
1857
- const next = pp[i2 + 1];
1858
- const prev = pp[i2 - 1];
1859
- if (p !== GLOBSTAR || prev === GLOBSTAR) {
1860
- return;
1861
- }
1862
- if (prev === void 0) {
1863
- if (next !== void 0 && next !== GLOBSTAR) {
1864
- pp[i2 + 1] = "(?:\\/|" + twoStar + "\\/)?" + next;
1865
- } else {
1866
- pp[i2] = twoStar;
1867
- }
1868
- } else if (next === void 0) {
1869
- pp[i2 - 1] = prev + "(?:\\/|" + twoStar + ")?";
1870
- } else if (next !== GLOBSTAR) {
1871
- pp[i2 - 1] = prev + "(?:\\/|\\/" + twoStar + "\\/)" + next;
1872
- pp[i2 + 1] = GLOBSTAR;
1873
- }
1874
- });
1875
- return pp.filter((p) => p !== GLOBSTAR).join("/");
1876
- }).join("|");
1877
- const [open, close] = set.length > 1 ? ["(?:", ")"] : ["", ""];
1878
- re = "^" + open + re + close + "$";
1879
- if (this.negate)
1880
- re = "^(?!" + re + ").+$";
1881
- try {
1882
- this.regexp = new RegExp(re, [...flags].join(""));
1883
- } catch (ex) {
1884
- this.regexp = false;
1885
- }
1886
- return this.regexp;
1887
- }
1888
- slashSplit(p) {
1889
- if (this.preserveMultipleSlashes) {
1890
- return p.split("/");
1891
- } else if (this.isWindows && /^\/\/[^\/]+/.test(p)) {
1892
- return ["", ...p.split(/\/+/)];
1893
- } else {
1894
- return p.split(/\/+/);
1895
- }
1896
- }
1897
- match(f, partial = this.partial) {
1898
- this.debug("match", f, this.pattern);
1899
- if (this.comment) {
1900
- return false;
1901
- }
1902
- if (this.empty) {
1903
- return f === "";
1904
- }
1905
- if (f === "/" && partial) {
1906
- return true;
1907
- }
1908
- const options = this.options;
1909
- if (this.isWindows) {
1910
- f = f.split("\\").join("/");
1911
- }
1912
- const ff = this.slashSplit(f);
1913
- this.debug(this.pattern, "split", ff);
1914
- const set = this.set;
1915
- this.debug(this.pattern, "set", set);
1916
- let filename = ff[ff.length - 1];
1917
- if (!filename) {
1918
- for (let i2 = ff.length - 2; !filename && i2 >= 0; i2--) {
1919
- filename = ff[i2];
1920
- }
1921
- }
1922
- for (let i2 = 0; i2 < set.length; i2++) {
1923
- const pattern = set[i2];
1924
- let file = ff;
1925
- if (options.matchBase && pattern.length === 1) {
1926
- file = [filename];
1927
- }
1928
- const hit = this.matchOne(file, pattern, partial);
1929
- if (hit) {
1930
- if (options.flipNegate) {
1931
- return true;
1932
- }
1933
- return !this.negate;
1934
- }
1935
- }
1936
- if (options.flipNegate) {
1937
- return false;
1938
- }
1939
- return this.negate;
1940
- }
1941
- static defaults(def) {
1942
- return minimatch.defaults(def).Minimatch;
1943
- }
1944
- };
1945
- minimatch.AST = AST;
1946
- minimatch.Minimatch = Minimatch;
1947
- minimatch.escape = escape;
1948
- minimatch.unescape = unescape;
1949
-
1950
- // src/utils/query-nonce-meta-tag-content.ts
1951
- function queryNonceMetaTagContent(doc) {
1952
- var _a, _b, _c;
1953
- return (_c = (_b = (_a = doc.head) == null ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : _b.getAttribute("content")) != null ? _c : void 0;
1954
- }
1955
-
1956
- // src/utils/regular-expression.ts
1957
- var escapeRegExpSpecialCharacters = (text) => {
1958
- return text.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
1959
- };
1960
-
1961
- // src/utils/remote-value.ts
1962
- var RemoteValue = class _RemoteValue {
1963
- /**
1964
- * Deserializes a LocalValue serialized object back to its original JavaScript representation
1965
- *
1966
- * @param serialized The serialized LocalValue object
1967
- * @returns The original JavaScript value/object
1968
- */
1969
- static fromLocalValue(serialized) {
1970
- const type = serialized[TYPE_CONSTANT];
1971
- const value = VALUE_CONSTANT in serialized ? serialized[VALUE_CONSTANT] : void 0;
1972
- switch (type) {
1973
- case "string" /* String */:
1974
- return value;
1975
- case "boolean" /* Boolean */:
1976
- return value;
1977
- case "bigint" /* BigInt */:
1978
- return BigInt(value);
1979
- case "undefined" /* Undefined */:
1980
- return void 0;
1981
- case "null" /* Null */:
1982
- return null;
1983
- case "number" /* Number */:
1984
- if (value === "NaN") return NaN;
1985
- if (value === "-0") return -0;
1986
- if (value === "Infinity") return Infinity;
1987
- if (value === "-Infinity") return -Infinity;
1988
- return value;
1989
- case "array" /* Array */:
1990
- return value.map((item) => _RemoteValue.fromLocalValue(item));
1991
- case "date" /* Date */:
1992
- return new Date(value);
1993
- case "map" /* Map */:
1994
- const map2 = /* @__PURE__ */ new Map();
1995
- for (const [key, val] of value) {
1996
- const deserializedKey = typeof key === "object" && key !== null ? _RemoteValue.fromLocalValue(key) : key;
1997
- const deserializedValue = _RemoteValue.fromLocalValue(val);
1998
- map2.set(deserializedKey, deserializedValue);
1999
- }
2000
- return map2;
2001
- case "object" /* Object */:
2002
- const obj = {};
2003
- for (const [key, val] of value) {
2004
- obj[key] = _RemoteValue.fromLocalValue(val);
2005
- }
2006
- return obj;
2007
- case "regexp" /* RegularExpression */:
2008
- const { pattern, flags } = value;
2009
- return new RegExp(pattern, flags);
2010
- case "set" /* Set */:
2011
- const set = /* @__PURE__ */ new Set();
2012
- for (const item of value) {
2013
- set.add(_RemoteValue.fromLocalValue(item));
2014
- }
2015
- return set;
2016
- case "symbol" /* Symbol */:
2017
- return Symbol(value);
2018
- default:
2019
- throw new Error(`Unsupported type: ${type}`);
2020
- }
2021
- }
2022
- /**
2023
- * Utility method to deserialize multiple LocalValues at once
2024
- *
2025
- * @param serializedValues Array of serialized LocalValue objects
2026
- * @returns Array of deserialized JavaScript values
2027
- */
2028
- static fromLocalValueArray(serializedValues) {
2029
- return serializedValues.map((value) => _RemoteValue.fromLocalValue(value));
2030
- }
2031
- /**
2032
- * Verifies if the given object matches the structure of a serialized LocalValue
2033
- *
2034
- * @param obj Object to verify
2035
- * @returns boolean indicating if the object has LocalValue structure
2036
- */
2037
- static isLocalValueObject(obj) {
2038
- if (typeof obj !== "object" || obj === null) {
2039
- return false;
2040
- }
2041
- if (!obj.hasOwnProperty(TYPE_CONSTANT)) {
2042
- return false;
2043
- }
2044
- const type = obj[TYPE_CONSTANT];
2045
- const hasTypeProperty = Object.values({ ...PrimitiveType, ...NonPrimitiveType }).includes(type);
2046
- if (!hasTypeProperty) {
297
+ let supportsListenerOptions2 = false;
298
+ try {
299
+ (_a = win.document) == null ? void 0 : _a.addEventListener(
300
+ "e",
301
+ null,
302
+ Object.defineProperty({}, "passive", {
303
+ get() {
304
+ supportsListenerOptions2 = true;
305
+ }
306
+ })
307
+ );
308
+ } catch (e) {
309
+ }
310
+ return supportsListenerOptions2;
311
+ })();
312
+ var promiseResolve = (v) => Promise.resolve(v);
313
+ var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
314
+ try {
315
+ if (!win.document.adoptedStyleSheets) {
2047
316
  return false;
2048
317
  }
2049
- if (type !== "null" /* Null */ && type !== "undefined" /* Undefined */) {
2050
- return obj.hasOwnProperty(VALUE_CONSTANT);
2051
- }
2052
- return true;
318
+ new CSSStyleSheet();
319
+ return typeof new CSSStyleSheet().replaceSync === "function";
320
+ } catch (e) {
2053
321
  }
2054
- };
2055
-
2056
- // src/utils/result.ts
2057
- var result_exports = {};
2058
- __export(result_exports, {
2059
- err: () => err,
2060
- map: () => map,
2061
- ok: () => ok,
2062
- unwrap: () => unwrap,
2063
- unwrapErr: () => unwrapErr
2064
- });
2065
- var ok = (value) => ({
2066
- isOk: true,
2067
- isErr: false,
2068
- value
2069
- });
2070
- var err = (value) => ({
2071
- isOk: false,
2072
- isErr: true,
2073
- value
2074
- });
2075
- function map(result, fn) {
2076
- if (result.isOk) {
2077
- const val = fn(result.value);
2078
- if (val instanceof Promise) {
2079
- return val.then((newVal) => ok(newVal));
322
+ return false;
323
+ })() ;
324
+ var supportsMutableAdoptedStyleSheets = supportsConstructableStylesheets ? /* @__PURE__ */ (() => !!win.document && Object.getOwnPropertyDescriptor(win.document.adoptedStyleSheets, "length").writable)() : false;
325
+ var queuePending = false;
326
+ var queueDomReads = [];
327
+ var queueDomWrites = [];
328
+ var queueTask = (queue, write) => (cb) => {
329
+ queue.push(cb);
330
+ if (!queuePending) {
331
+ queuePending = true;
332
+ if (write && plt.$flags$ & 4 /* queueSync */) {
333
+ nextTick(flush);
2080
334
  } else {
2081
- return ok(val);
335
+ plt.raf(flush);
2082
336
  }
2083
337
  }
2084
- if (result.isErr) {
2085
- const value = result.value;
2086
- return err(value);
2087
- }
2088
- throw "should never get here";
2089
- }
2090
- var unwrap = (result) => {
2091
- if (result.isOk) {
2092
- return result.value;
2093
- } else {
2094
- throw result.value;
2095
- }
2096
338
  };
2097
- var unwrapErr = (result) => {
2098
- if (result.isErr) {
2099
- return result.value;
2100
- } else {
2101
- throw result.value;
339
+ var consume = (queue) => {
340
+ for (let i2 = 0; i2 < queue.length; i2++) {
341
+ try {
342
+ queue[i2](performance.now());
343
+ } catch (e) {
344
+ consoleError(e);
345
+ }
2102
346
  }
347
+ queue.length = 0;
2103
348
  };
2104
-
2105
- // src/utils/serialize.ts
2106
- function deserializeProperty(value) {
2107
- if (typeof value !== "string" || !value.startsWith(SERIALIZED_PREFIX)) {
2108
- return value;
349
+ var flush = () => {
350
+ consume(queueDomReads);
351
+ {
352
+ consume(queueDomWrites);
353
+ if (queuePending = queueDomReads.length > 0) {
354
+ plt.raf(flush);
355
+ }
2109
356
  }
2110
- return RemoteValue.fromLocalValue(JSON.parse(atob(value.slice(SERIALIZED_PREFIX.length))));
2111
- }
357
+ };
358
+ var nextTick = (cb) => promiseResolve().then(cb);
359
+ var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
2112
360
 
2113
361
  // src/utils/style.ts
2114
362
  function createStyleSheetIfNeededAndSupported(styles2) {
@@ -2298,6 +546,14 @@ var uniqueTime = (key, measureText) => {
2298
546
  };
2299
547
  }
2300
548
  };
549
+
550
+ // src/utils/query-nonce-meta-tag-content.ts
551
+ function queryNonceMetaTagContent(doc) {
552
+ var _a, _b, _c;
553
+ return (_c = (_b = (_a = doc.head) == null ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : _b.getAttribute("content")) != null ? _c : void 0;
554
+ }
555
+
556
+ // src/runtime/styles.ts
2301
557
  var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
2302
558
  var registerStyle = (scopeId2, cssText, allowCS) => {
2303
559
  let style = styles.get(scopeId2);
@@ -2331,10 +587,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
2331
587
  }
2332
588
  const existingStyleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`);
2333
589
  if (existingStyleElm) {
2334
- existingStyleElm.innerHTML = style;
590
+ existingStyleElm.textContent = style;
2335
591
  } else if (!appliedStyles.has(scopeId2)) {
2336
592
  styleElm = win.document.createElement("style");
2337
- styleElm.innerHTML = style;
593
+ styleElm.textContent = style;
2338
594
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
2339
595
  if (nonce != null) {
2340
596
  styleElm.setAttribute("nonce", nonce);
@@ -2359,8 +615,8 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
2359
615
  }
2360
616
  } else {
2361
617
  const existingStyleContainer = styleContainerNode.querySelector("style");
2362
- if (existingStyleContainer) {
2363
- existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
618
+ if (existingStyleContainer && true) {
619
+ existingStyleContainer.textContent = style + existingStyleContainer.textContent;
2364
620
  } else {
2365
621
  styleContainerNode.prepend(styleElm);
2366
622
  }
@@ -2373,7 +629,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
2373
629
  styleContainerNode.insertBefore(styleElm, null);
2374
630
  }
2375
631
  if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
2376
- styleElm.innerHTML += SLOT_FB_CSS;
632
+ styleElm.textContent += SLOT_FB_CSS;
2377
633
  }
2378
634
  if (appliedStyles) {
2379
635
  appliedStyles.add(scopeId2);
@@ -2401,6 +657,12 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
2401
657
  styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, stylesheet];
2402
658
  }
2403
659
  appliedStyles.add(scopeId2);
660
+ if ("host" in styleContainerNode) {
661
+ const ssrStyleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`);
662
+ if (ssrStyleElm) {
663
+ writeTask(() => ssrStyleElm.remove());
664
+ }
665
+ }
2404
666
  }
2405
667
  }
2406
668
  }
@@ -2432,6 +694,12 @@ var hydrateScopedToShadow = () => {
2432
694
  registerStyle(styles2[i2].getAttribute(HYDRATED_STYLE_ID), convertScopedToShadow(styles2[i2].innerHTML), true);
2433
695
  }
2434
696
  };
697
+ var isComplexType = (o) => {
698
+ o = typeof o;
699
+ return o === "object" || o === "function";
700
+ };
701
+
702
+ // src/runtime/vdom/h.ts
2435
703
  var h = (nodeName, vnodeData, ...children) => {
2436
704
  if (typeof nodeName === "string") {
2437
705
  nodeName = transformTag(nodeName);
@@ -2499,7 +767,8 @@ var newVNode = (tag, text) => {
2499
767
  const vnode = {
2500
768
  $flags$: 0,
2501
769
  $tag$: tag,
2502
- $text$: text,
770
+ // Normalize undefined to null to prevent rendering "undefined" as text
771
+ $text$: text != null ? text : null,
2503
772
  $elm$: null,
2504
773
  $children$: null
2505
774
  };
@@ -2593,7 +862,7 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
2593
862
  cmpMeta.$cmpMeta$);
2594
863
  const styleSheet = win.document.querySelector(`style[sty-id="${scopeId3}"]`);
2595
864
  if (styleSheet) {
2596
- hostElm.shadowRoot.append(styleSheet.cloneNode(true));
865
+ shadowRootNodes.unshift(styleSheet.cloneNode(true));
2597
866
  }
2598
867
  }
2599
868
  }
@@ -2663,7 +932,7 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
2663
932
  currentPos = (slottedItem.node["s-oo"] || currentPos) + 1;
2664
933
  }
2665
934
  }
2666
- if (shadowRoot) {
935
+ if (shadowRoot && !shadowRoot.childNodes.length) {
2667
936
  let rnIdex = 0;
2668
937
  const rnLen = shadowRootNodes.length;
2669
938
  if (rnLen) {
@@ -2937,18 +1206,111 @@ var findCorrespondingNode = (node, type) => {
2937
1206
  } while (sibling && (sibling.nodeType !== type || !sibling.nodeValue));
2938
1207
  return sibling;
2939
1208
  };
2940
- var createSupportsRuleRe = (selector) => {
2941
- const safeSelector2 = escapeRegExpSpecialCharacters(selector);
2942
- return new RegExp(
2943
- // First capture group: match any context before the selector that's not inside @supports selector()
2944
- // Using negative lookahead to avoid matching inside @supports selector(...) condition
2945
- `(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${safeSelector2}))(${safeSelector2}\\b)`,
2946
- "g"
2947
- );
1209
+
1210
+ // src/utils/remote-value.ts
1211
+ var RemoteValue = class _RemoteValue {
1212
+ /**
1213
+ * Deserializes a LocalValue serialized object back to its original JavaScript representation
1214
+ *
1215
+ * @param serialized The serialized LocalValue object
1216
+ * @returns The original JavaScript value/object
1217
+ */
1218
+ static fromLocalValue(serialized) {
1219
+ const type = serialized[TYPE_CONSTANT];
1220
+ const value = VALUE_CONSTANT in serialized ? serialized[VALUE_CONSTANT] : void 0;
1221
+ switch (type) {
1222
+ case "string" /* String */:
1223
+ return value;
1224
+ case "boolean" /* Boolean */:
1225
+ return value;
1226
+ case "bigint" /* BigInt */:
1227
+ return BigInt(value);
1228
+ case "undefined" /* Undefined */:
1229
+ return void 0;
1230
+ case "null" /* Null */:
1231
+ return null;
1232
+ case "number" /* Number */:
1233
+ if (value === "NaN") return NaN;
1234
+ if (value === "-0") return -0;
1235
+ if (value === "Infinity") return Infinity;
1236
+ if (value === "-Infinity") return -Infinity;
1237
+ return value;
1238
+ case "array" /* Array */:
1239
+ return value.map((item) => _RemoteValue.fromLocalValue(item));
1240
+ case "date" /* Date */:
1241
+ return new Date(value);
1242
+ case "map" /* Map */:
1243
+ const map = /* @__PURE__ */ new Map();
1244
+ for (const [key, val] of value) {
1245
+ const deserializedKey = typeof key === "object" && key !== null ? _RemoteValue.fromLocalValue(key) : key;
1246
+ const deserializedValue = _RemoteValue.fromLocalValue(val);
1247
+ map.set(deserializedKey, deserializedValue);
1248
+ }
1249
+ return map;
1250
+ case "object" /* Object */:
1251
+ const obj = {};
1252
+ for (const [key, val] of value) {
1253
+ obj[key] = _RemoteValue.fromLocalValue(val);
1254
+ }
1255
+ return obj;
1256
+ case "regexp" /* RegularExpression */:
1257
+ const { pattern, flags } = value;
1258
+ return new RegExp(pattern, flags);
1259
+ case "set" /* Set */:
1260
+ const set = /* @__PURE__ */ new Set();
1261
+ for (const item of value) {
1262
+ set.add(_RemoteValue.fromLocalValue(item));
1263
+ }
1264
+ return set;
1265
+ case "symbol" /* Symbol */:
1266
+ return Symbol(value);
1267
+ default:
1268
+ throw new Error(`Unsupported type: ${type}`);
1269
+ }
1270
+ }
1271
+ /**
1272
+ * Utility method to deserialize multiple LocalValues at once
1273
+ *
1274
+ * @param serializedValues Array of serialized LocalValue objects
1275
+ * @returns Array of deserialized JavaScript values
1276
+ */
1277
+ static fromLocalValueArray(serializedValues) {
1278
+ return serializedValues.map((value) => _RemoteValue.fromLocalValue(value));
1279
+ }
1280
+ /**
1281
+ * Verifies if the given object matches the structure of a serialized LocalValue
1282
+ *
1283
+ * @param obj Object to verify
1284
+ * @returns boolean indicating if the object has LocalValue structure
1285
+ */
1286
+ static isLocalValueObject(obj) {
1287
+ if (typeof obj !== "object" || obj === null) {
1288
+ return false;
1289
+ }
1290
+ if (!obj.hasOwnProperty(TYPE_CONSTANT)) {
1291
+ return false;
1292
+ }
1293
+ const type = obj[TYPE_CONSTANT];
1294
+ const hasTypeProperty = Object.values({ ...PrimitiveType, ...NonPrimitiveType }).includes(type);
1295
+ if (!hasTypeProperty) {
1296
+ return false;
1297
+ }
1298
+ if (type !== "null" /* Null */ && type !== "undefined" /* Undefined */) {
1299
+ return obj.hasOwnProperty(VALUE_CONSTANT);
1300
+ }
1301
+ return true;
1302
+ }
2948
1303
  };
2949
- createSupportsRuleRe("::slotted");
2950
- createSupportsRuleRe(":host");
2951
- createSupportsRuleRe(":host-context");
1304
+
1305
+ // src/utils/serialize.ts
1306
+ function deserializeProperty(value) {
1307
+ if (typeof value !== "string" || !value.startsWith(SERIALIZED_PREFIX)) {
1308
+ return value;
1309
+ }
1310
+ return RemoteValue.fromLocalValue(JSON.parse(atob(value.slice(SERIALIZED_PREFIX.length))));
1311
+ }
1312
+
1313
+ // src/runtime/parse-property-value.ts
2952
1314
  var parsePropertyValue = (propValue, propType, isFormAssociated) => {
2953
1315
  if (typeof propValue === "string" && propValue.startsWith(SERIALIZED_PREFIX)) {
2954
1316
  propValue = deserializeProperty(propValue);
@@ -3039,7 +1401,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
3039
1401
  }
3040
1402
  } else if (memberName === "key") ; else if (memberName === "ref") {
3041
1403
  if (newValue) {
3042
- newValue(elm);
1404
+ queueRefAttachment(newValue, elm);
3043
1405
  }
3044
1406
  } else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
3045
1407
  if (memberName[2] === "-") {
@@ -3059,6 +1421,36 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
3059
1421
  plt.ael(elm, memberName, newValue, capture);
3060
1422
  }
3061
1423
  }
1424
+ } else if (memberName[0] === "a" && memberName.startsWith("attr:")) {
1425
+ const propName = memberName.slice(5);
1426
+ let attrName;
1427
+ {
1428
+ const hostRef = getHostRef(elm);
1429
+ if (hostRef && hostRef.$cmpMeta$ && hostRef.$cmpMeta$.$members$) {
1430
+ const memberMeta = hostRef.$cmpMeta$.$members$[propName];
1431
+ if (memberMeta && memberMeta[1]) {
1432
+ attrName = memberMeta[1];
1433
+ }
1434
+ }
1435
+ }
1436
+ if (!attrName) {
1437
+ attrName = propName.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
1438
+ }
1439
+ if (newValue == null || newValue === false) {
1440
+ if (newValue !== false || elm.getAttribute(attrName) === "") {
1441
+ elm.removeAttribute(attrName);
1442
+ }
1443
+ } else {
1444
+ elm.setAttribute(attrName, newValue === true ? "" : newValue);
1445
+ }
1446
+ return;
1447
+ } else if (memberName[0] === "p" && memberName.startsWith("prop:")) {
1448
+ const propName = memberName.slice(5);
1449
+ try {
1450
+ elm[propName] = newValue;
1451
+ } catch (e) {
1452
+ }
1453
+ return;
3062
1454
  } else {
3063
1455
  const isComplex = isComplexType(newValue);
3064
1456
  if ((isProp || isComplex && newValue !== null) && !isSvg) {
@@ -3067,7 +1459,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
3067
1459
  const n = newValue == null ? "" : newValue;
3068
1460
  if (memberName === "list") {
3069
1461
  isProp = false;
3070
- } else if (oldValue == null || elm[memberName] != n) {
1462
+ } else if (oldValue == null || elm[memberName] !== n) {
3071
1463
  if (typeof elm.__lookupSetter__(memberName) === "function") {
3072
1464
  elm[memberName] = n;
3073
1465
  } else {
@@ -3165,6 +1557,8 @@ var useNativeShadowDom = false;
3165
1557
  var checkSlotFallbackVisibility = false;
3166
1558
  var checkSlotRelocate = false;
3167
1559
  var isSvgMode = false;
1560
+ var refCallbacksToRemove = [];
1561
+ var refCallbacksToAttach = [];
3168
1562
  var createElm = (oldParentVNode, newParentVNode, childIndex) => {
3169
1563
  var _a;
3170
1564
  const newVNode2 = newParentVNode.$children$[childIndex];
@@ -3187,7 +1581,7 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
3187
1581
  );
3188
1582
  }
3189
1583
  }
3190
- if (newVNode2.$text$ !== null) {
1584
+ if (newVNode2.$text$ != null) {
3191
1585
  elm = newVNode2.$elm$ = win.document.createTextNode(newVNode2.$text$);
3192
1586
  } else if (newVNode2.$flags$ & 1 /* isSlotReference */) {
3193
1587
  elm = newVNode2.$elm$ = win.document.createTextNode("");
@@ -3199,9 +1593,7 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
3199
1593
  isSvgMode = newVNode2.$tag$ === "svg";
3200
1594
  }
3201
1595
  if (!win.document) {
3202
- throw new Error(
3203
- "You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component."
3204
- );
1596
+ throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");
3205
1597
  }
3206
1598
  elm = newVNode2.$elm$ = win.document.createElementNS(
3207
1599
  isSvgMode ? SVG_NS : HTML_NS,
@@ -3449,7 +1841,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
3449
1841
  const tag = newVNode2.$tag$;
3450
1842
  const text = newVNode2.$text$;
3451
1843
  let defaultHolder;
3452
- if (text === null) {
1844
+ if (text == null) {
3453
1845
  {
3454
1846
  isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
3455
1847
  }
@@ -3538,16 +1930,33 @@ var markSlotContentForRelocation = (elm) => {
3538
1930
  };
3539
1931
  var nullifyVNodeRefs = (vNode) => {
3540
1932
  {
3541
- vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
1933
+ if (vNode.$attrs$ && vNode.$attrs$.ref) {
1934
+ refCallbacksToRemove.push(() => vNode.$attrs$.ref(null));
1935
+ }
3542
1936
  vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);
3543
1937
  }
3544
1938
  };
1939
+ var queueRefAttachment = (refCallback, elm) => {
1940
+ {
1941
+ refCallbacksToAttach.push(() => refCallback(elm));
1942
+ }
1943
+ };
1944
+ var flushQueuedRefCallbacks = () => {
1945
+ {
1946
+ refCallbacksToRemove.forEach((cb) => cb());
1947
+ refCallbacksToRemove.length = 0;
1948
+ refCallbacksToAttach.forEach((cb) => cb());
1949
+ refCallbacksToAttach.length = 0;
1950
+ }
1951
+ };
3545
1952
  var insertBefore = (parent, newNode, reference, isInitialLoad) => {
3546
- if (typeof newNode["s-sn"] === "string") {
3547
- parent.insertBefore(newNode, reference);
3548
- const { slotNode } = findSlotFromSlottedNode(newNode);
3549
- if (slotNode && !isInitialLoad) dispatchSlotChangeEvent(slotNode);
3550
- return newNode;
1953
+ {
1954
+ if (typeof newNode["s-sn"] === "string") {
1955
+ parent.insertBefore(newNode, reference);
1956
+ const { slotNode } = findSlotFromSlottedNode(newNode);
1957
+ if (slotNode && !isInitialLoad) dispatchSlotChangeEvent(slotNode);
1958
+ return newNode;
1959
+ }
3551
1960
  }
3552
1961
  if (parent.__insertBefore) {
3553
1962
  return parent.__insertBefore(newNode, reference);
@@ -3683,6 +2092,7 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
3683
2092
  }
3684
2093
  }
3685
2094
  contentRef = void 0;
2095
+ flushQueuedRefCallbacks();
3686
2096
  };
3687
2097
 
3688
2098
  // src/runtime/update-component.ts
@@ -3751,8 +2161,8 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
3751
2161
  endSchedule();
3752
2162
  return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
3753
2163
  };
3754
- var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((err2) => {
3755
- console.error(err2);
2164
+ var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((err) => {
2165
+ console.error(err);
3756
2166
  fn();
3757
2167
  }) : fn();
3758
2168
  var isPromisey = (maybePromise) => maybePromise instanceof Promise || maybePromise && maybePromise.then && typeof maybePromise.then === "function";
@@ -3780,7 +2190,7 @@ var updateComponent = async (hostRef, instance, isInitialLoad) => {
3780
2190
  if (childrenPromises.length === 0) {
3781
2191
  postUpdate();
3782
2192
  } else {
3783
- Promise.all(childrenPromises).then(postUpdate);
2193
+ Promise.all(childrenPromises).then(postUpdate).catch(postUpdate);
3784
2194
  hostRef.$flags$ |= 4 /* isWaitingForChildren */;
3785
2195
  childrenPromises.length = 0;
3786
2196
  }
@@ -3913,13 +2323,16 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
3913
2323
  });
3914
2324
  }
3915
2325
  }
3916
- if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
2326
+ if (flags & 2 /* hasRendered */) {
3917
2327
  if (instance.componentShouldUpdate) {
3918
- if (instance.componentShouldUpdate(newVal, oldVal, propName) === false) {
2328
+ const shouldUpdate = instance.componentShouldUpdate(newVal, oldVal, propName);
2329
+ if (shouldUpdate === false && !(flags & 16 /* isQueuedForUpdate */)) {
3919
2330
  return;
3920
2331
  }
3921
2332
  }
3922
- scheduleUpdate(hostRef, false);
2333
+ if (!(flags & 16 /* isQueuedForUpdate */)) {
2334
+ scheduleUpdate(hostRef, false);
2335
+ }
3923
2336
  }
3924
2337
  }
3925
2338
  };
@@ -3943,7 +2356,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
3943
2356
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
3944
2357
  members.map(([memberName, [memberFlags]]) => {
3945
2358
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
3946
- const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
2359
+ const { get: origGetter, set: origSetter } = getPropertyDescriptor(prototype, memberName) || {};
3947
2360
  if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
3948
2361
  if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
3949
2362
  if (flags & 1 /* isElementConstructor */ || !origGetter) {
@@ -4088,76 +2501,87 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
4088
2501
  // src/runtime/initialize-component.ts
4089
2502
  var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
4090
2503
  let Cstr;
4091
- if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
4092
- hostRef.$flags$ |= 32 /* hasInitializedComponent */;
4093
- const bundleId = cmpMeta.$lazyBundleId$;
4094
- if (bundleId) {
4095
- const CstrImport = loadModule(cmpMeta, hostRef);
4096
- if (CstrImport && "then" in CstrImport) {
4097
- const endLoad = uniqueTime();
4098
- Cstr = await CstrImport;
4099
- endLoad();
4100
- } else {
4101
- Cstr = CstrImport;
4102
- }
4103
- if (!Cstr) {
4104
- throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
4105
- }
4106
- if (!Cstr.isProxied) {
2504
+ try {
2505
+ if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
2506
+ hostRef.$flags$ |= 32 /* hasInitializedComponent */;
2507
+ const bundleId = cmpMeta.$lazyBundleId$;
2508
+ if (bundleId) {
2509
+ const CstrImport = loadModule(cmpMeta, hostRef);
2510
+ if (CstrImport && "then" in CstrImport) {
2511
+ const endLoad = uniqueTime();
2512
+ Cstr = await CstrImport;
2513
+ endLoad();
2514
+ } else {
2515
+ Cstr = CstrImport;
2516
+ }
2517
+ if (!Cstr) {
2518
+ throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
2519
+ }
2520
+ if (!Cstr.isProxied) {
2521
+ {
2522
+ cmpMeta.$watchers$ = Cstr.watchers;
2523
+ cmpMeta.$serializers$ = Cstr.serializers;
2524
+ cmpMeta.$deserializers$ = Cstr.deserializers;
2525
+ }
2526
+ proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
2527
+ Cstr.isProxied = true;
2528
+ }
2529
+ const endNewInstance = createTime("createInstance", cmpMeta.$tagName$);
4107
2530
  {
4108
- cmpMeta.$watchers$ = Cstr.watchers;
4109
- cmpMeta.$serializers$ = Cstr.serializers;
4110
- cmpMeta.$deserializers$ = Cstr.deserializers;
2531
+ hostRef.$flags$ |= 8 /* isConstructingInstance */;
2532
+ }
2533
+ try {
2534
+ new Cstr(hostRef);
2535
+ } catch (e) {
2536
+ consoleError(e, elm);
2537
+ }
2538
+ {
2539
+ hostRef.$flags$ &= -9 /* isConstructingInstance */;
2540
+ }
2541
+ {
2542
+ hostRef.$flags$ |= 128 /* isWatchReady */;
2543
+ }
2544
+ endNewInstance();
2545
+ const needsDeferredCallback = cmpMeta.$flags$ & 4 /* hasSlotRelocation */;
2546
+ if (!needsDeferredCallback) {
2547
+ fireConnectedCallback(hostRef.$lazyInstance$, elm);
2548
+ } else {
2549
+ hostRef.$deferredConnectedCallback$ = true;
4111
2550
  }
4112
- proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
4113
- Cstr.isProxied = true;
4114
- }
4115
- const endNewInstance = createTime("createInstance", cmpMeta.$tagName$);
4116
- {
4117
- hostRef.$flags$ |= 8 /* isConstructingInstance */;
4118
- }
4119
- try {
4120
- new Cstr(hostRef);
4121
- } catch (e) {
4122
- consoleError(e, elm);
4123
- }
4124
- {
4125
- hostRef.$flags$ &= -9 /* isConstructingInstance */;
4126
- }
4127
- {
4128
- hostRef.$flags$ |= 128 /* isWatchReady */;
4129
- }
4130
- endNewInstance();
4131
- const needsDeferredCallback = cmpMeta.$flags$ & 4 /* hasSlotRelocation */;
4132
- if (!needsDeferredCallback) {
4133
- fireConnectedCallback(hostRef.$lazyInstance$, elm);
4134
2551
  } else {
4135
- hostRef.$deferredConnectedCallback$ = true;
2552
+ Cstr = elm.constructor;
2553
+ const cmpTag = elm.localName;
2554
+ customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
2555
+ }
2556
+ if (Cstr && Cstr.style) {
2557
+ let style;
2558
+ if (typeof Cstr.style === "string") {
2559
+ style = Cstr.style;
2560
+ }
2561
+ const scopeId2 = getScopeId(cmpMeta);
2562
+ if (!styles.has(scopeId2) || BUILD.hotModuleReplacement) {
2563
+ const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
2564
+ registerStyle(scopeId2, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
2565
+ endRegisterStyles();
2566
+ }
4136
2567
  }
2568
+ }
2569
+ const ancestorComponent = hostRef.$ancestorComponent$;
2570
+ const schedule = () => scheduleUpdate(hostRef, true);
2571
+ if (ancestorComponent && ancestorComponent["s-rc"]) {
2572
+ ancestorComponent["s-rc"].push(schedule);
4137
2573
  } else {
4138
- Cstr = elm.constructor;
4139
- const cmpTag = elm.localName;
4140
- customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
2574
+ schedule();
4141
2575
  }
4142
- if (Cstr && Cstr.style) {
4143
- let style;
4144
- if (typeof Cstr.style === "string") {
4145
- style = Cstr.style;
4146
- }
4147
- const scopeId2 = getScopeId(cmpMeta);
4148
- if (!styles.has(scopeId2) || BUILD.hotModuleReplacement) {
4149
- const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
4150
- registerStyle(scopeId2, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
4151
- endRegisterStyles();
4152
- }
2576
+ } catch (e) {
2577
+ consoleError(e, elm);
2578
+ if (hostRef.$onRenderResolve$) {
2579
+ hostRef.$onRenderResolve$();
2580
+ hostRef.$onRenderResolve$ = void 0;
2581
+ }
2582
+ if (hostRef.$onReadyResolve$) {
2583
+ hostRef.$onReadyResolve$(elm);
4153
2584
  }
4154
- }
4155
- const ancestorComponent = hostRef.$ancestorComponent$;
4156
- const schedule = () => scheduleUpdate(hostRef, true);
4157
- if (ancestorComponent && ancestorComponent["s-rc"]) {
4158
- ancestorComponent["s-rc"].push(schedule);
4159
- } else {
4160
- schedule();
4161
2585
  }
4162
2586
  };
4163
2587
  var fireConnectedCallback = (instance, elm) => {
@@ -4205,7 +2629,7 @@ var connectedCallback = (elm) => {
4205
2629
  }
4206
2630
  if (cmpMeta.$members$) {
4207
2631
  Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
4208
- if (memberFlags & 31 /* Prop */ && memberName in elm && elm[memberName] !== Object.prototype[memberName]) {
2632
+ if (memberFlags & 31 /* Prop */ && Object.prototype.hasOwnProperty.call(elm, memberName)) {
4209
2633
  const value = elm[memberName];
4210
2634
  delete elm[memberName];
4211
2635
  elm[memberName] = value;