@re-code/aurora 0.0.0-stage → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1019) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +92 -2
  3. package/dist/aurora/aurora.esm.js +1 -0
  4. package/dist/aurora/index.esm.js +1 -0
  5. package/dist/aurora/p-038b2190.entry.js +1 -0
  6. package/dist/aurora/p-0608e910.entry.js +1 -0
  7. package/dist/aurora/p-17210bb6.entry.js +1 -0
  8. package/dist/aurora/p-17e65032.entry.js +1 -0
  9. package/dist/aurora/p-21786a68.entry.js +1 -0
  10. package/dist/aurora/p-23e57d65.entry.js +1 -0
  11. package/dist/aurora/p-278d3434.entry.js +1 -0
  12. package/dist/aurora/p-2a16d544.entry.js +1 -0
  13. package/dist/aurora/p-31a86367.entry.js +1 -0
  14. package/dist/aurora/p-35edd036.entry.js +1 -0
  15. package/dist/aurora/p-372a3416.entry.js +1 -0
  16. package/dist/aurora/p-40bb52c3.entry.js +1 -0
  17. package/dist/aurora/p-487df7d8.entry.js +1 -0
  18. package/dist/aurora/p-546a2f69.entry.js +1 -0
  19. package/dist/aurora/p-57512cd7.entry.js +1 -0
  20. package/dist/aurora/p-5d2a88ca.entry.js +1 -0
  21. package/dist/aurora/p-62ccacf0.entry.js +1 -0
  22. package/dist/aurora/p-64229ad2.entry.js +1 -0
  23. package/dist/aurora/p-685b9e53.entry.js +1 -0
  24. package/dist/aurora/p-689f37db.entry.js +1 -0
  25. package/dist/aurora/p-746825ce.entry.js +1 -0
  26. package/dist/aurora/p-88b72de7.entry.js +1 -0
  27. package/dist/aurora/p-89b66c7a.entry.js +1 -0
  28. package/dist/aurora/p-8de508c7.entry.js +1 -0
  29. package/dist/aurora/p-8ed72e5b.entry.js +1 -0
  30. package/dist/aurora/p-B3rlZvSP.js +7 -0
  31. package/dist/aurora/p-B71krpcd.js +1 -0
  32. package/dist/aurora/p-BTRtOC1j.js +1 -0
  33. package/dist/aurora/p-BTZwl4uD.js +7 -0
  34. package/dist/aurora/p-BvnCPjl5.js +1 -0
  35. package/dist/aurora/p-C-bRwiWx.js +1 -0
  36. package/dist/aurora/p-C2iVoG0G.js +1 -0
  37. package/dist/aurora/p-C48ks26E.js +1 -0
  38. package/dist/aurora/p-C6E5E18W.js +7 -0
  39. package/dist/aurora/p-CA3n-tpF.js +7 -0
  40. package/dist/aurora/p-CIZeCYao.js +1 -0
  41. package/dist/aurora/p-CJtRxiuh.js +7 -0
  42. package/dist/aurora/p-CU9sZ49I.js +7 -0
  43. package/dist/aurora/p-CfazOBmW.js +1 -0
  44. package/dist/aurora/p-Ci-XzGE3.js +1 -0
  45. package/dist/aurora/p-CnJOd66V.js +7 -0
  46. package/dist/aurora/p-CoyAdNcI.js +1 -0
  47. package/dist/aurora/p-Cq5N0E4D.js +7 -0
  48. package/dist/aurora/p-CrKUXDm4.js +1 -0
  49. package/dist/aurora/p-DBHfOAQc.js +1 -0
  50. package/dist/aurora/p-DD6GCVQb.js +1 -0
  51. package/dist/aurora/p-DQuL1Twl.js +1 -0
  52. package/dist/aurora/p-DTEnois3.js +7 -0
  53. package/dist/aurora/p-DVGjumbs.js +1 -0
  54. package/dist/aurora/p-DXbj-yic.js +1 -0
  55. package/dist/aurora/p-DgfWQsck.js +1 -0
  56. package/dist/aurora/p-Dogh3-Bf.js +1 -0
  57. package/dist/aurora/p-DqqWqhAT.js +1 -0
  58. package/dist/aurora/p-Dv3Jcvbc.js +1 -0
  59. package/dist/aurora/p-DzNA1eDU.js +1 -0
  60. package/dist/aurora/p-JU60IJxn.js +1 -0
  61. package/dist/aurora/p-KLUZmSN-.js +3 -0
  62. package/dist/aurora/p-TdUs41zm.js +1 -0
  63. package/dist/aurora/p-a1e257c7.entry.js +1 -0
  64. package/dist/aurora/p-a72596b4.entry.js +1 -0
  65. package/dist/aurora/p-a87dc1d3.entry.js +1 -0
  66. package/dist/aurora/p-a8e984e1.entry.js +1 -0
  67. package/dist/aurora/p-b2feddb2.entry.js +1 -0
  68. package/dist/aurora/p-bd1f6486.entry.js +1 -0
  69. package/dist/aurora/p-c330982c.entry.js +1 -0
  70. package/dist/aurora/p-c3668073.entry.js +1 -0
  71. package/dist/aurora/p-e1c97234.entry.js +1 -0
  72. package/dist/aurora/p-e72126a2.entry.js +1 -0
  73. package/dist/aurora/p-e7c81a6b.entry.js +1 -0
  74. package/dist/aurora/p-ec96e6ff.entry.js +1 -0
  75. package/dist/aurora/p-ed998b0c.entry.js +1 -0
  76. package/dist/aurora/p-ee2ea46e.entry.js +1 -0
  77. package/dist/aurora/p-ee4475a6.entry.js +1 -0
  78. package/dist/aurora/p-efa289c1.entry.js +1 -0
  79. package/dist/aurora/p-efd60427.entry.js +1 -0
  80. package/dist/aurora/p-f89bde2b.entry.js +1 -0
  81. package/dist/aurora/p-fd4e9cdd.entry.js +1 -0
  82. package/dist/aurora/p-gvyxpLwV.js +1 -0
  83. package/dist/aurora/p-kEvQ5xF7.js +1 -0
  84. package/dist/aurora/p-kbAXs-sG.js +7 -0
  85. package/dist/aurora/p-klxij34W.js +1 -0
  86. package/dist/aurora/p-kpQFQ7bu.js +7 -0
  87. package/dist/aurora/p-tdx7CCkD.js +7 -0
  88. package/dist/aurora/p-vjn4H-yX.js +1 -0
  89. package/dist/cjs/accordion-DlPfFEHE.js +37 -0
  90. package/dist/cjs/app-globals-V2Kpy_OQ.js +5 -0
  91. package/dist/cjs/attributes-Bn886Odj.js +30 -0
  92. package/dist/cjs/au-accordion-item.cjs.entry.js +88 -0
  93. package/dist/cjs/au-accordion.cjs.entry.js +100 -0
  94. package/dist/cjs/au-alert.cjs.entry.js +117 -0
  95. package/dist/cjs/au-avatar.cjs.entry.js +177 -0
  96. package/dist/cjs/au-badge.cjs.entry.js +60 -0
  97. package/dist/cjs/au-breadcrumb-item.cjs.entry.js +84 -0
  98. package/dist/cjs/au-breadcrumb.cjs.entry.js +80 -0
  99. package/dist/cjs/au-button.cjs.entry.js +328 -0
  100. package/dist/cjs/au-card.cjs.entry.js +76 -0
  101. package/dist/cjs/au-checkbox.cjs.entry.js +183 -0
  102. package/dist/cjs/au-chip.cjs.entry.js +249 -0
  103. package/dist/cjs/au-code-block.cjs.entry.js +678 -0
  104. package/dist/cjs/au-combobox.cjs.entry.js +755 -0
  105. package/dist/cjs/au-container.cjs.entry.js +58 -0
  106. package/dist/cjs/au-dialog.cjs.entry.js +377 -0
  107. package/dist/cjs/au-divider.cjs.entry.js +106 -0
  108. package/dist/cjs/au-field.cjs.entry.js +185 -0
  109. package/dist/cjs/au-icon-D0L9Wwy0.js +350 -0
  110. package/dist/cjs/au-icon.cjs.entry.js +9 -0
  111. package/dist/cjs/au-input.cjs.entry.js +312 -0
  112. package/dist/cjs/au-label.cjs.entry.js +45 -0
  113. package/dist/cjs/au-menu-item.cjs.entry.js +71 -0
  114. package/dist/cjs/au-menu.cjs.entry.js +347 -0
  115. package/dist/cjs/au-nav-group.cjs.entry.js +50 -0
  116. package/dist/cjs/au-nav-link.cjs.entry.js +84 -0
  117. package/dist/cjs/au-navbar.cjs.entry.js +306 -0
  118. package/dist/cjs/au-number-input.cjs.entry.js +350 -0
  119. package/dist/cjs/au-popover.cjs.entry.js +130 -0
  120. package/dist/cjs/au-radio-group.cjs.entry.js +348 -0
  121. package/dist/cjs/au-radio.cjs.entry.js +45 -0
  122. package/dist/cjs/au-segmented-control.cjs.entry.js +544 -0
  123. package/dist/cjs/au-segmented-option.cjs.entry.js +78 -0
  124. package/dist/cjs/au-select.cjs.entry.js +336 -0
  125. package/dist/cjs/au-sidebar-nav.cjs.entry.js +178 -0
  126. package/dist/cjs/au-slider.cjs.entry.js +286 -0
  127. package/dist/cjs/au-splitter.cjs.entry.js +230 -0
  128. package/dist/cjs/au-switch.cjs.entry.js +175 -0
  129. package/dist/cjs/au-tab-panel.cjs.entry.js +63 -0
  130. package/dist/cjs/au-tab.cjs.entry.js +41 -0
  131. package/dist/cjs/au-tabs.cjs.entry.js +406 -0
  132. package/dist/cjs/au-textarea.cjs.entry.js +245 -0
  133. package/dist/cjs/au-toast-region.cjs.entry.js +692 -0
  134. package/dist/cjs/au-toast.cjs.entry.js +63 -0
  135. package/dist/cjs/au-toc.cjs.entry.js +445 -0
  136. package/dist/cjs/au-tooltip.cjs.entry.js +395 -0
  137. package/dist/cjs/aurora.cjs.js +25 -0
  138. package/dist/cjs/check-D8fNlWlh.js +16 -0
  139. package/dist/cjs/checkable-DhECpB9t.js +8 -0
  140. package/dist/cjs/circle-check-B3FqDucz.js +20 -0
  141. package/dist/cjs/circle-x-Tf2qIuBI.js +21 -0
  142. package/dist/cjs/constants.generated-CnWw9jDb.js +134 -0
  143. package/dist/cjs/control-id-CcdWN8_D.js +16 -0
  144. package/dist/cjs/copy-DJmgvzQq.js +19 -0
  145. package/dist/cjs/copy-check-Bktgfkg4.js +20 -0
  146. package/dist/cjs/deep-active-element-CoEYUbhF.js +11 -0
  147. package/dist/cjs/group-validity-D2brpooM.js +11 -0
  148. package/dist/cjs/icon-loader-DyRasOnf.js +111 -0
  149. package/dist/cjs/index-B8lDYTMv.js +2314 -0
  150. package/dist/cjs/index-DI4bia-1.js +159 -0
  151. package/dist/cjs/index.cjs.js +358 -0
  152. package/dist/cjs/info-BLcxKacU.js +20 -0
  153. package/dist/cjs/initial-value-CfGBZMr4.js +13 -0
  154. package/dist/cjs/item-update-DZTXbDLY.js +15 -0
  155. package/dist/cjs/link-state-B3rIWSPS.js +40 -0
  156. package/dist/cjs/live-announcer-vcS-BUxR.js +400 -0
  157. package/dist/cjs/loader.cjs.js +13 -0
  158. package/dist/cjs/menu-CSfWKlaI.js +41 -0
  159. package/dist/cjs/minus-6XziUaOZ.js +16 -0
  160. package/dist/cjs/navigation-lpcPjVEI.js +63 -0
  161. package/dist/cjs/octagon-alert-CFrlltqZ.js +27 -0
  162. package/dist/cjs/plus-D3o9M7Mi.js +19 -0
  163. package/dist/cjs/popover-controller-B95YfF3I.js +237 -0
  164. package/dist/cjs/popover-support-CmR5F5K2.js +250 -0
  165. package/dist/cjs/resolve-size-LxALRdcg.js +13 -0
  166. package/dist/cjs/restore-DQu6RpSH.js +148 -0
  167. package/dist/cjs/reveal-BTJffR-G.js +69 -0
  168. package/dist/cjs/roving-CFu47frk.js +70 -0
  169. package/dist/cjs/segmented-CfUI9Mjx.js +53 -0
  170. package/dist/cjs/slider-DX8MuU0y.js +84 -0
  171. package/dist/cjs/toast-request-C-x_BbsL.js +67 -0
  172. package/dist/cjs/triangle-alert-VJkqaFrl.js +27 -0
  173. package/dist/cjs/user-round-Bb69LiUK.js +20 -0
  174. package/dist/cjs/warn-once-lHF-gQZp.js +21 -0
  175. package/dist/cjs/x-BmyhNJrF.js +19 -0
  176. package/dist/collection/collection-manifest.json +56 -0
  177. package/dist/collection/components/actions/au-button/au-button.constants.js +65 -0
  178. package/dist/collection/components/actions/au-button/au-button.css +224 -0
  179. package/dist/collection/components/actions/au-button/au-button.js +636 -0
  180. package/dist/collection/components/actions/au-button/au-button.types.js +1 -0
  181. package/dist/collection/components/actions/au-button/index.js +2 -0
  182. package/dist/collection/components/data-display/au-accordion/au-accordion.constants.js +11 -0
  183. package/dist/collection/components/data-display/au-accordion/au-accordion.css +7 -0
  184. package/dist/collection/components/data-display/au-accordion/au-accordion.js +143 -0
  185. package/dist/collection/components/data-display/au-accordion/au-accordion.types.js +1 -0
  186. package/dist/collection/components/data-display/au-accordion/index.js +2 -0
  187. package/dist/collection/components/data-display/au-accordion-item/au-accordion-item.css +156 -0
  188. package/dist/collection/components/data-display/au-accordion-item/au-accordion-item.js +186 -0
  189. package/dist/collection/components/data-display/au-accordion-item/index.js +1 -0
  190. package/dist/collection/components/data-display/au-avatar/au-avatar.constants.js +26 -0
  191. package/dist/collection/components/data-display/au-avatar/au-avatar.css +93 -0
  192. package/dist/collection/components/data-display/au-avatar/au-avatar.js +308 -0
  193. package/dist/collection/components/data-display/au-avatar/au-avatar.types.js +1 -0
  194. package/dist/collection/components/data-display/au-avatar/index.js +2 -0
  195. package/dist/collection/components/data-display/au-avatar/internal/initials.js +41 -0
  196. package/dist/collection/components/data-display/au-badge/au-badge.constants.js +29 -0
  197. package/dist/collection/components/data-display/au-badge/au-badge.css +152 -0
  198. package/dist/collection/components/data-display/au-badge/au-badge.js +142 -0
  199. package/dist/collection/components/data-display/au-badge/au-badge.types.js +1 -0
  200. package/dist/collection/components/data-display/au-badge/index.js +2 -0
  201. package/dist/collection/components/data-display/au-card/au-card.constants.js +20 -0
  202. package/dist/collection/components/data-display/au-card/au-card.css +125 -0
  203. package/dist/collection/components/data-display/au-card/au-card.js +127 -0
  204. package/dist/collection/components/data-display/au-card/au-card.types.js +1 -0
  205. package/dist/collection/components/data-display/au-card/index.js +2 -0
  206. package/dist/collection/components/data-display/au-chip/au-chip.constants.js +22 -0
  207. package/dist/collection/components/data-display/au-chip/au-chip.css +207 -0
  208. package/dist/collection/components/data-display/au-chip/au-chip.js +371 -0
  209. package/dist/collection/components/data-display/au-chip/au-chip.types.js +1 -0
  210. package/dist/collection/components/data-display/au-chip/index.js +2 -0
  211. package/dist/collection/components/data-display/au-chip/internal/neighbor.js +48 -0
  212. package/dist/collection/components/data-display/au-chip/internal/remove-key.js +13 -0
  213. package/dist/collection/components/data-display/au-code-block/au-code-block.constants.js +31 -0
  214. package/dist/collection/components/data-display/au-code-block/au-code-block.css +331 -0
  215. package/dist/collection/components/data-display/au-code-block/au-code-block.js +576 -0
  216. package/dist/collection/components/data-display/au-code-block/au-code-block.types.js +1 -0
  217. package/dist/collection/components/data-display/au-code-block/index.js +2 -0
  218. package/dist/collection/components/data-display/au-code-block/internal/highlight-lines.js +29 -0
  219. package/dist/collection/components/data-display/au-code-block/internal/highlight-result.js +42 -0
  220. package/dist/collection/components/data-display/au-code-block/internal/light-source.js +30 -0
  221. package/dist/collection/components/data-display/au-code-block/internal/normalize-code.js +48 -0
  222. package/dist/collection/components/data-display/internal/accordion.js +31 -0
  223. package/dist/collection/components/feedback/au-alert/au-alert.constants.js +20 -0
  224. package/dist/collection/components/feedback/au-alert/au-alert.css +171 -0
  225. package/dist/collection/components/feedback/au-alert/au-alert.js +241 -0
  226. package/dist/collection/components/feedback/au-alert/au-alert.types.js +1 -0
  227. package/dist/collection/components/feedback/au-alert/index.js +2 -0
  228. package/dist/collection/components/feedback/au-toast/au-toast.constants.js +1 -0
  229. package/dist/collection/components/feedback/au-toast/au-toast.css +150 -0
  230. package/dist/collection/components/feedback/au-toast/au-toast.js +145 -0
  231. package/dist/collection/components/feedback/au-toast/au-toast.service.js +140 -0
  232. package/dist/collection/components/feedback/au-toast/au-toast.types.js +1 -0
  233. package/dist/collection/components/feedback/au-toast/index.js +2 -0
  234. package/dist/collection/components/feedback/au-toast-region/au-toast-region.css +71 -0
  235. package/dist/collection/components/feedback/au-toast-region/au-toast-region.js +653 -0
  236. package/dist/collection/components/feedback/au-toast-region/index.js +2 -0
  237. package/dist/collection/components/feedback/internal/toast-announcer.js +5 -0
  238. package/dist/collection/components/feedback/internal/toast-constants.js +52 -0
  239. package/dist/collection/components/feedback/internal/toast-options.js +64 -0
  240. package/dist/collection/components/feedback/internal/toast-popover.js +22 -0
  241. package/dist/collection/components/feedback/internal/toast-queue.js +74 -0
  242. package/dist/collection/components/feedback/internal/toast-registry.js +24 -0
  243. package/dist/collection/components/feedback/internal/toast-request.js +6 -0
  244. package/dist/collection/components/feedback/internal/toast-timers.js +61 -0
  245. package/dist/collection/components/feedback/internal/toast-timing.js +5 -0
  246. package/dist/collection/components/feedback/internal/toast-types.js +1 -0
  247. package/dist/collection/components/forms/au-checkbox/au-checkbox.constants.js +2 -0
  248. package/dist/collection/components/forms/au-checkbox/au-checkbox.css +212 -0
  249. package/dist/collection/components/forms/au-checkbox/au-checkbox.js +468 -0
  250. package/dist/collection/components/forms/au-checkbox/au-checkbox.types.js +1 -0
  251. package/dist/collection/components/forms/au-checkbox/index.js +2 -0
  252. package/dist/collection/components/forms/au-combobox/au-combobox.constants.js +26 -0
  253. package/dist/collection/components/forms/au-combobox/au-combobox.css +374 -0
  254. package/dist/collection/components/forms/au-combobox/au-combobox.js +1165 -0
  255. package/dist/collection/components/forms/au-combobox/au-combobox.types.js +1 -0
  256. package/dist/collection/components/forms/au-combobox/index.js +2 -0
  257. package/dist/collection/components/forms/au-field/au-field.css +78 -0
  258. package/dist/collection/components/forms/au-field/au-field.js +195 -0
  259. package/dist/collection/components/forms/au-field/index.js +1 -0
  260. package/dist/collection/components/forms/au-input/au-input.constants.js +35 -0
  261. package/dist/collection/components/forms/au-input/au-input.css +195 -0
  262. package/dist/collection/components/forms/au-input/au-input.js +845 -0
  263. package/dist/collection/components/forms/au-input/au-input.types.js +1 -0
  264. package/dist/collection/components/forms/au-input/index.js +2 -0
  265. package/dist/collection/components/forms/au-label/au-label.constants.js +7 -0
  266. package/dist/collection/components/forms/au-label/au-label.css +38 -0
  267. package/dist/collection/components/forms/au-label/au-label.js +109 -0
  268. package/dist/collection/components/forms/au-label/au-label.types.js +1 -0
  269. package/dist/collection/components/forms/au-label/index.js +2 -0
  270. package/dist/collection/components/forms/au-number-input/au-number-input.constants.js +15 -0
  271. package/dist/collection/components/forms/au-number-input/au-number-input.css +276 -0
  272. package/dist/collection/components/forms/au-number-input/au-number-input.js +711 -0
  273. package/dist/collection/components/forms/au-number-input/au-number-input.types.js +1 -0
  274. package/dist/collection/components/forms/au-number-input/index.js +2 -0
  275. package/dist/collection/components/forms/au-radio/au-radio.constants.js +2 -0
  276. package/dist/collection/components/forms/au-radio/au-radio.css +126 -0
  277. package/dist/collection/components/forms/au-radio/au-radio.js +129 -0
  278. package/dist/collection/components/forms/au-radio/au-radio.types.js +1 -0
  279. package/dist/collection/components/forms/au-radio/index.js +2 -0
  280. package/dist/collection/components/forms/au-radio-group/au-radio-group.constants.js +6 -0
  281. package/dist/collection/components/forms/au-radio-group/au-radio-group.css +67 -0
  282. package/dist/collection/components/forms/au-radio-group/au-radio-group.js +643 -0
  283. package/dist/collection/components/forms/au-radio-group/au-radio-group.types.js +1 -0
  284. package/dist/collection/components/forms/au-radio-group/index.js +2 -0
  285. package/dist/collection/components/forms/au-segmented-control/au-segmented-control.constants.js +26 -0
  286. package/dist/collection/components/forms/au-segmented-control/au-segmented-control.css +92 -0
  287. package/dist/collection/components/forms/au-segmented-control/au-segmented-control.js +916 -0
  288. package/dist/collection/components/forms/au-segmented-control/au-segmented-control.types.js +1 -0
  289. package/dist/collection/components/forms/au-segmented-control/index.js +2 -0
  290. package/dist/collection/components/forms/au-segmented-option/au-segmented-option.css +103 -0
  291. package/dist/collection/components/forms/au-segmented-option/au-segmented-option.js +191 -0
  292. package/dist/collection/components/forms/au-segmented-option/au-segmented-option.types.js +1 -0
  293. package/dist/collection/components/forms/au-segmented-option/index.js +1 -0
  294. package/dist/collection/components/forms/au-select/au-select.constants.js +7 -0
  295. package/dist/collection/components/forms/au-select/au-select.css +194 -0
  296. package/dist/collection/components/forms/au-select/au-select.js +589 -0
  297. package/dist/collection/components/forms/au-select/au-select.types.js +1 -0
  298. package/dist/collection/components/forms/au-select/index.js +2 -0
  299. package/dist/collection/components/forms/au-select/internal/read-select-options.js +45 -0
  300. package/dist/collection/components/forms/au-slider/au-slider.constants.js +11 -0
  301. package/dist/collection/components/forms/au-slider/au-slider.css +296 -0
  302. package/dist/collection/components/forms/au-slider/au-slider.js +675 -0
  303. package/dist/collection/components/forms/au-slider/au-slider.types.js +1 -0
  304. package/dist/collection/components/forms/au-slider/index.js +2 -0
  305. package/dist/collection/components/forms/au-switch/au-switch.constants.js +2 -0
  306. package/dist/collection/components/forms/au-switch/au-switch.css +201 -0
  307. package/dist/collection/components/forms/au-switch/au-switch.js +440 -0
  308. package/dist/collection/components/forms/au-switch/au-switch.types.js +1 -0
  309. package/dist/collection/components/forms/au-switch/index.js +2 -0
  310. package/dist/collection/components/forms/au-textarea/au-textarea.constants.js +16 -0
  311. package/dist/collection/components/forms/au-textarea/au-textarea.css +187 -0
  312. package/dist/collection/components/forms/au-textarea/au-textarea.js +694 -0
  313. package/dist/collection/components/forms/au-textarea/au-textarea.types.js +1 -0
  314. package/dist/collection/components/forms/au-textarea/index.js +2 -0
  315. package/dist/collection/components/forms/internal/combobox.js +86 -0
  316. package/dist/collection/components/forms/internal/number-input.js +54 -0
  317. package/dist/collection/components/forms/internal/segmented.js +43 -0
  318. package/dist/collection/components/forms/internal/slider.js +76 -0
  319. package/dist/collection/components/layout/au-container/au-container.constants.js +22 -0
  320. package/dist/collection/components/layout/au-container/au-container.css +109 -0
  321. package/dist/collection/components/layout/au-container/au-container.js +144 -0
  322. package/dist/collection/components/layout/au-container/au-container.types.js +1 -0
  323. package/dist/collection/components/layout/au-container/index.js +2 -0
  324. package/dist/collection/components/layout/au-divider/au-divider.constants.js +23 -0
  325. package/dist/collection/components/layout/au-divider/au-divider.css +73 -0
  326. package/dist/collection/components/layout/au-divider/au-divider.js +194 -0
  327. package/dist/collection/components/layout/au-divider/au-divider.types.js +1 -0
  328. package/dist/collection/components/layout/au-divider/index.js +2 -0
  329. package/dist/collection/components/layout/au-splitter/au-splitter.constants.js +9 -0
  330. package/dist/collection/components/layout/au-splitter/au-splitter.css +168 -0
  331. package/dist/collection/components/layout/au-splitter/au-splitter.js +376 -0
  332. package/dist/collection/components/layout/au-splitter/au-splitter.types.js +1 -0
  333. package/dist/collection/components/layout/au-splitter/index.js +2 -0
  334. package/dist/collection/components/layout/internal/splitter.js +27 -0
  335. package/dist/collection/components/navigation/au-breadcrumb/au-breadcrumb.constants.js +4 -0
  336. package/dist/collection/components/navigation/au-breadcrumb/au-breadcrumb.css +20 -0
  337. package/dist/collection/components/navigation/au-breadcrumb/au-breadcrumb.js +110 -0
  338. package/dist/collection/components/navigation/au-breadcrumb/index.js +2 -0
  339. package/dist/collection/components/navigation/au-breadcrumb-item/au-breadcrumb-item.css +127 -0
  340. package/dist/collection/components/navigation/au-breadcrumb-item/au-breadcrumb-item.js +186 -0
  341. package/dist/collection/components/navigation/au-breadcrumb-item/index.js +1 -0
  342. package/dist/collection/components/navigation/au-nav-group/au-nav-group.css +137 -0
  343. package/dist/collection/components/navigation/au-nav-group/au-nav-group.js +96 -0
  344. package/dist/collection/components/navigation/au-nav-group/index.js +1 -0
  345. package/dist/collection/components/navigation/au-nav-link/au-nav-link.css +128 -0
  346. package/dist/collection/components/navigation/au-nav-link/au-nav-link.js +205 -0
  347. package/dist/collection/components/navigation/au-nav-link/index.js +1 -0
  348. package/dist/collection/components/navigation/au-navbar/au-navbar.constants.js +40 -0
  349. package/dist/collection/components/navigation/au-navbar/au-navbar.css +185 -0
  350. package/dist/collection/components/navigation/au-navbar/au-navbar.js +409 -0
  351. package/dist/collection/components/navigation/au-navbar/au-navbar.types.js +1 -0
  352. package/dist/collection/components/navigation/au-navbar/index.js +2 -0
  353. package/dist/collection/components/navigation/au-navbar/internal/collapse.js +14 -0
  354. package/dist/collection/components/navigation/au-sidebar-nav/au-sidebar-nav.constants.js +2 -0
  355. package/dist/collection/components/navigation/au-sidebar-nav/au-sidebar-nav.css +29 -0
  356. package/dist/collection/components/navigation/au-sidebar-nav/au-sidebar-nav.js +251 -0
  357. package/dist/collection/components/navigation/au-sidebar-nav/index.js +2 -0
  358. package/dist/collection/components/navigation/au-tab/au-tab.css +84 -0
  359. package/dist/collection/components/navigation/au-tab/au-tab.js +107 -0
  360. package/dist/collection/components/navigation/au-tab/index.js +1 -0
  361. package/dist/collection/components/navigation/au-tab-panel/au-tab-panel.css +20 -0
  362. package/dist/collection/components/navigation/au-tab-panel/au-tab-panel.js +134 -0
  363. package/dist/collection/components/navigation/au-tab-panel/index.js +1 -0
  364. package/dist/collection/components/navigation/au-tabs/au-tabs.constants.js +12 -0
  365. package/dist/collection/components/navigation/au-tabs/au-tabs.css +107 -0
  366. package/dist/collection/components/navigation/au-tabs/au-tabs.js +554 -0
  367. package/dist/collection/components/navigation/au-tabs/au-tabs.types.js +1 -0
  368. package/dist/collection/components/navigation/au-tabs/index.js +2 -0
  369. package/dist/collection/components/navigation/au-tabs/internal/indicator-geometry.js +18 -0
  370. package/dist/collection/components/navigation/au-toc/au-toc.constants.js +6 -0
  371. package/dist/collection/components/navigation/au-toc/au-toc.css +107 -0
  372. package/dist/collection/components/navigation/au-toc/au-toc.js +462 -0
  373. package/dist/collection/components/navigation/au-toc/index.js +2 -0
  374. package/dist/collection/components/navigation/au-toc/internal/toc-model.js +89 -0
  375. package/dist/collection/components/navigation/internal/reveal.js +65 -0
  376. package/dist/collection/components/overlays/au-dialog/au-dialog.constants.js +29 -0
  377. package/dist/collection/components/overlays/au-dialog/au-dialog.css +324 -0
  378. package/dist/collection/components/overlays/au-dialog/au-dialog.js +618 -0
  379. package/dist/collection/components/overlays/au-dialog/au-dialog.types.js +1 -0
  380. package/dist/collection/components/overlays/au-dialog/index.js +2 -0
  381. package/dist/collection/components/overlays/au-menu/au-menu.constants.js +37 -0
  382. package/dist/collection/components/overlays/au-menu/au-menu.css +163 -0
  383. package/dist/collection/components/overlays/au-menu/au-menu.js +507 -0
  384. package/dist/collection/components/overlays/au-menu/au-menu.types.js +1 -0
  385. package/dist/collection/components/overlays/au-menu/index.js +2 -0
  386. package/dist/collection/components/overlays/au-menu-item/au-menu-item.css +127 -0
  387. package/dist/collection/components/overlays/au-menu-item/au-menu-item.js +185 -0
  388. package/dist/collection/components/overlays/au-menu-item/au-menu-item.types.js +1 -0
  389. package/dist/collection/components/overlays/au-menu-item/index.js +1 -0
  390. package/dist/collection/components/overlays/au-popover/au-popover.constants.js +24 -0
  391. package/dist/collection/components/overlays/au-popover/au-popover.css +149 -0
  392. package/dist/collection/components/overlays/au-popover/au-popover.js +253 -0
  393. package/dist/collection/components/overlays/au-popover/au-popover.types.js +1 -0
  394. package/dist/collection/components/overlays/au-popover/index.js +2 -0
  395. package/dist/collection/components/overlays/au-tooltip/au-tooltip.constants.js +19 -0
  396. package/dist/collection/components/overlays/au-tooltip/au-tooltip.css +144 -0
  397. package/dist/collection/components/overlays/au-tooltip/au-tooltip.js +517 -0
  398. package/dist/collection/components/overlays/au-tooltip/index.js +2 -0
  399. package/dist/collection/components/overlays/internal/menu.js +34 -0
  400. package/dist/collection/components/overlays/internal/popover-controller.js +233 -0
  401. package/dist/collection/components/overlays/internal/typeahead.js +28 -0
  402. package/dist/collection/components/primitives/au-icon/au-icon.constants.js +3 -0
  403. package/dist/collection/components/primitives/au-icon/au-icon.css +36 -0
  404. package/dist/collection/components/primitives/au-icon/au-icon.js +367 -0
  405. package/dist/collection/components/primitives/au-icon/au-icon.types.js +1 -0
  406. package/dist/collection/components/primitives/au-icon/core-icons.js +20 -0
  407. package/dist/collection/components/primitives/au-icon/icon-loader.js +76 -0
  408. package/dist/collection/components/primitives/au-icon/index.js +1 -0
  409. package/dist/collection/foundations/constants/constants.generated.mjs +119 -0
  410. package/dist/collection/foundations/constants/index.js +2 -0
  411. package/dist/collection/foundations/constants/resolve-size.js +9 -0
  412. package/dist/collection/foundations/icons/autoload.js +21 -0
  413. package/dist/collection/foundations/icons/icon-autoload-hook.js +13 -0
  414. package/dist/collection/foundations/icons/icon-registry.js +147 -0
  415. package/dist/collection/foundations/icons/icon-sizes.js +8 -0
  416. package/dist/collection/foundations/icons/icon-slug.js +26 -0
  417. package/dist/collection/foundations/icons/icon.constants.generated.js +2284 -0
  418. package/dist/collection/foundations/icons/icon.constants.js +18 -0
  419. package/dist/collection/foundations/icons/icon.types.js +1 -0
  420. package/dist/collection/foundations/icons/index.js +3 -0
  421. package/dist/collection/foundations/icons/mdi-map.js +86 -0
  422. package/dist/collection/foundations/icons/register-lucide-icons.js +30 -0
  423. package/dist/collection/foundations/themes/theme.js +161 -0
  424. package/dist/collection/foundations/tokens/index.js +2 -0
  425. package/dist/collection/foundations/tokens/tokens.generated.mjs +178 -0
  426. package/dist/collection/index.js +10 -0
  427. package/dist/collection/integrations/basics/index.js +2 -0
  428. package/dist/collection/integrations/basics/is-plain-object.js +1 -0
  429. package/dist/collection/integrations/flux/index.js +1 -0
  430. package/dist/collection/integrations/flux/loader.js +66 -0
  431. package/dist/collection/integrations/flux/provide.js +16 -0
  432. package/dist/collection/integrations/flux/registry.js +42 -0
  433. package/dist/collection/shared/anchored/anchor-position.js +101 -0
  434. package/dist/collection/shared/anchored/js-positioning.js +113 -0
  435. package/dist/collection/shared/anchored/popover-support.js +30 -0
  436. package/dist/collection/shared/clipboard/clipboard.js +14 -0
  437. package/dist/collection/shared/clipboard/copy-procedure.js +189 -0
  438. package/dist/collection/shared/clipboard/copy-types.js +15 -0
  439. package/dist/collection/shared/focus/deep-active-element.js +7 -0
  440. package/dist/collection/shared/focus/index.js +1 -0
  441. package/dist/collection/shared/form-control/attributes.js +25 -0
  442. package/dist/collection/shared/form-control/checkable.js +4 -0
  443. package/dist/collection/shared/form-control/control-id.js +11 -0
  444. package/dist/collection/shared/form-control/described-by.js +5 -0
  445. package/dist/collection/shared/form-control/form-control-controller.js +88 -0
  446. package/dist/collection/shared/form-control/group-validity.js +7 -0
  447. package/dist/collection/shared/form-control/host-events.js +19 -0
  448. package/dist/collection/shared/form-control/index.js +10 -0
  449. package/dist/collection/shared/form-control/initial-value.js +9 -0
  450. package/dist/collection/shared/form-control/restore.js +12 -0
  451. package/dist/collection/shared/form-control/validation-message.js +12 -0
  452. package/dist/collection/shared/live-announcer/announce-queue.js +141 -0
  453. package/dist/collection/shared/live-announcer/announce-timing.js +12 -0
  454. package/dist/collection/shared/live-announcer/index.js +1 -0
  455. package/dist/collection/shared/live-announcer/live-announcer.js +150 -0
  456. package/dist/collection/shared/live-announcer/public.js +6 -0
  457. package/dist/collection/shared/modal-placement.js +42 -0
  458. package/dist/collection/shared/modal-target.js +59 -0
  459. package/dist/collection/shared/navigation/index.js +2 -0
  460. package/dist/collection/shared/navigation/link-state.js +34 -0
  461. package/dist/collection/shared/navigation/navigation.js +56 -0
  462. package/dist/collection/shared/observers/index.js +180 -0
  463. package/dist/collection/shared/roving-focus/index.js +2 -0
  464. package/dist/collection/shared/roving-focus/item-update.js +11 -0
  465. package/dist/collection/shared/roving-focus/roving.js +65 -0
  466. package/dist/collection/shared/warn-once.js +17 -0
  467. package/dist/components/au-accordion-item.d.ts +11 -0
  468. package/dist/components/au-accordion-item.js +1 -0
  469. package/dist/components/au-accordion.d.ts +11 -0
  470. package/dist/components/au-accordion.js +1 -0
  471. package/dist/components/au-alert.d.ts +11 -0
  472. package/dist/components/au-alert.js +1 -0
  473. package/dist/components/au-avatar.d.ts +11 -0
  474. package/dist/components/au-avatar.js +1 -0
  475. package/dist/components/au-badge.d.ts +11 -0
  476. package/dist/components/au-badge.js +1 -0
  477. package/dist/components/au-breadcrumb-item.d.ts +11 -0
  478. package/dist/components/au-breadcrumb-item.js +1 -0
  479. package/dist/components/au-breadcrumb.d.ts +11 -0
  480. package/dist/components/au-breadcrumb.js +1 -0
  481. package/dist/components/au-button.d.ts +11 -0
  482. package/dist/components/au-button.js +1 -0
  483. package/dist/components/au-card.d.ts +11 -0
  484. package/dist/components/au-card.js +1 -0
  485. package/dist/components/au-checkbox.d.ts +11 -0
  486. package/dist/components/au-checkbox.js +1 -0
  487. package/dist/components/au-chip.d.ts +11 -0
  488. package/dist/components/au-chip.js +1 -0
  489. package/dist/components/au-code-block.d.ts +11 -0
  490. package/dist/components/au-code-block.js +1 -0
  491. package/dist/components/au-combobox.d.ts +11 -0
  492. package/dist/components/au-combobox.js +1 -0
  493. package/dist/components/au-container.d.ts +11 -0
  494. package/dist/components/au-container.js +1 -0
  495. package/dist/components/au-dialog.d.ts +11 -0
  496. package/dist/components/au-dialog.js +1 -0
  497. package/dist/components/au-divider.d.ts +11 -0
  498. package/dist/components/au-divider.js +1 -0
  499. package/dist/components/au-field.d.ts +11 -0
  500. package/dist/components/au-field.js +1 -0
  501. package/dist/components/au-icon.d.ts +11 -0
  502. package/dist/components/au-icon.js +1 -0
  503. package/dist/components/au-input.d.ts +11 -0
  504. package/dist/components/au-input.js +1 -0
  505. package/dist/components/au-label.d.ts +11 -0
  506. package/dist/components/au-label.js +1 -0
  507. package/dist/components/au-menu-item.d.ts +11 -0
  508. package/dist/components/au-menu-item.js +1 -0
  509. package/dist/components/au-menu.d.ts +11 -0
  510. package/dist/components/au-menu.js +1 -0
  511. package/dist/components/au-nav-group.d.ts +11 -0
  512. package/dist/components/au-nav-group.js +1 -0
  513. package/dist/components/au-nav-link.d.ts +11 -0
  514. package/dist/components/au-nav-link.js +1 -0
  515. package/dist/components/au-navbar.d.ts +11 -0
  516. package/dist/components/au-navbar.js +1 -0
  517. package/dist/components/au-number-input.d.ts +11 -0
  518. package/dist/components/au-number-input.js +1 -0
  519. package/dist/components/au-popover.d.ts +11 -0
  520. package/dist/components/au-popover.js +1 -0
  521. package/dist/components/au-radio-group.d.ts +11 -0
  522. package/dist/components/au-radio-group.js +1 -0
  523. package/dist/components/au-radio.d.ts +11 -0
  524. package/dist/components/au-radio.js +1 -0
  525. package/dist/components/au-segmented-control.d.ts +11 -0
  526. package/dist/components/au-segmented-control.js +1 -0
  527. package/dist/components/au-segmented-option.d.ts +11 -0
  528. package/dist/components/au-segmented-option.js +1 -0
  529. package/dist/components/au-select.d.ts +11 -0
  530. package/dist/components/au-select.js +1 -0
  531. package/dist/components/au-sidebar-nav.d.ts +11 -0
  532. package/dist/components/au-sidebar-nav.js +1 -0
  533. package/dist/components/au-slider.d.ts +11 -0
  534. package/dist/components/au-slider.js +1 -0
  535. package/dist/components/au-splitter.d.ts +11 -0
  536. package/dist/components/au-splitter.js +1 -0
  537. package/dist/components/au-switch.d.ts +11 -0
  538. package/dist/components/au-switch.js +1 -0
  539. package/dist/components/au-tab-panel.d.ts +11 -0
  540. package/dist/components/au-tab-panel.js +1 -0
  541. package/dist/components/au-tab.d.ts +11 -0
  542. package/dist/components/au-tab.js +1 -0
  543. package/dist/components/au-tabs.d.ts +11 -0
  544. package/dist/components/au-tabs.js +1 -0
  545. package/dist/components/au-textarea.d.ts +11 -0
  546. package/dist/components/au-textarea.js +1 -0
  547. package/dist/components/au-toast-region.d.ts +11 -0
  548. package/dist/components/au-toast-region.js +1 -0
  549. package/dist/components/au-toast.d.ts +11 -0
  550. package/dist/components/au-toast.js +1 -0
  551. package/dist/components/au-toc.d.ts +11 -0
  552. package/dist/components/au-toc.js +1 -0
  553. package/dist/components/au-tooltip.d.ts +11 -0
  554. package/dist/components/au-tooltip.js +1 -0
  555. package/dist/components/index.d.ts +35 -0
  556. package/dist/components/index.js +1 -0
  557. package/dist/components/p-B3rlZvSP.js +7 -0
  558. package/dist/components/p-B71krpcd.js +1 -0
  559. package/dist/components/p-BTRtOC1j.js +1 -0
  560. package/dist/components/p-BTZwl4uD.js +7 -0
  561. package/dist/components/p-BvnCPjl5.js +1 -0
  562. package/dist/components/p-C-bRwiWx.js +1 -0
  563. package/dist/components/p-C2iVoG0G.js +1 -0
  564. package/dist/components/p-C48ks26E.js +1 -0
  565. package/dist/components/p-C6E5E18W.js +7 -0
  566. package/dist/components/p-CA3n-tpF.js +7 -0
  567. package/dist/components/p-CIZeCYao.js +1 -0
  568. package/dist/components/p-CJtRxiuh.js +7 -0
  569. package/dist/components/p-CU9sZ49I.js +7 -0
  570. package/dist/components/p-CfazOBmW.js +1 -0
  571. package/dist/components/p-Ci-XzGE3.js +1 -0
  572. package/dist/components/p-CnJOd66V.js +7 -0
  573. package/dist/components/p-Cq5N0E4D.js +7 -0
  574. package/dist/components/p-CrKUXDm4.js +1 -0
  575. package/dist/components/p-DAqsVCAy.js +1 -0
  576. package/dist/components/p-DBHfOAQc.js +1 -0
  577. package/dist/components/p-DD6GCVQb.js +1 -0
  578. package/dist/components/p-DIL-tsh4.js +1 -0
  579. package/dist/components/p-DTEnois3.js +7 -0
  580. package/dist/components/p-DTeHrc-Q.js +1 -0
  581. package/dist/components/p-DgfWQsck.js +1 -0
  582. package/dist/components/p-Dogh3-Bf.js +1 -0
  583. package/dist/components/p-DqqWqhAT.js +1 -0
  584. package/dist/components/p-Dv3Jcvbc.js +1 -0
  585. package/dist/components/p-DzNA1eDU.js +1 -0
  586. package/dist/components/p-JU60IJxn.js +1 -0
  587. package/dist/components/p-M21eKzKU.js +1 -0
  588. package/dist/components/p-TdUs41zm.js +1 -0
  589. package/dist/components/p-gvyxpLwV.js +1 -0
  590. package/dist/components/p-kEvQ5xF7.js +1 -0
  591. package/dist/components/p-kbAXs-sG.js +7 -0
  592. package/dist/components/p-klxij34W.js +1 -0
  593. package/dist/components/p-kpQFQ7bu.js +7 -0
  594. package/dist/components/p-tdx7CCkD.js +7 -0
  595. package/dist/components/p-vjn4H-yX.js +1 -0
  596. package/dist/custom-elements.json +9944 -0
  597. package/dist/esm/accordion-CfazOBmW.js +33 -0
  598. package/dist/esm/app-globals-DQuL1Twl.js +3 -0
  599. package/dist/esm/attributes-CrKUXDm4.js +27 -0
  600. package/dist/esm/au-accordion-item.entry.js +86 -0
  601. package/dist/esm/au-accordion.entry.js +98 -0
  602. package/dist/esm/au-alert.entry.js +115 -0
  603. package/dist/esm/au-avatar.entry.js +175 -0
  604. package/dist/esm/au-badge.entry.js +58 -0
  605. package/dist/esm/au-breadcrumb-item.entry.js +82 -0
  606. package/dist/esm/au-breadcrumb.entry.js +78 -0
  607. package/dist/esm/au-button.entry.js +326 -0
  608. package/dist/esm/au-card.entry.js +74 -0
  609. package/dist/esm/au-checkbox.entry.js +181 -0
  610. package/dist/esm/au-chip.entry.js +247 -0
  611. package/dist/esm/au-code-block.entry.js +676 -0
  612. package/dist/esm/au-combobox.entry.js +753 -0
  613. package/dist/esm/au-container.entry.js +56 -0
  614. package/dist/esm/au-dialog.entry.js +375 -0
  615. package/dist/esm/au-divider.entry.js +104 -0
  616. package/dist/esm/au-field.entry.js +183 -0
  617. package/dist/esm/au-icon-B17psn7x.js +344 -0
  618. package/dist/esm/au-icon.entry.js +3 -0
  619. package/dist/esm/au-input.entry.js +310 -0
  620. package/dist/esm/au-label.entry.js +43 -0
  621. package/dist/esm/au-menu-item.entry.js +69 -0
  622. package/dist/esm/au-menu.entry.js +345 -0
  623. package/dist/esm/au-nav-group.entry.js +48 -0
  624. package/dist/esm/au-nav-link.entry.js +82 -0
  625. package/dist/esm/au-navbar.entry.js +304 -0
  626. package/dist/esm/au-number-input.entry.js +348 -0
  627. package/dist/esm/au-popover.entry.js +128 -0
  628. package/dist/esm/au-radio-group.entry.js +346 -0
  629. package/dist/esm/au-radio.entry.js +43 -0
  630. package/dist/esm/au-segmented-control.entry.js +542 -0
  631. package/dist/esm/au-segmented-option.entry.js +76 -0
  632. package/dist/esm/au-select.entry.js +334 -0
  633. package/dist/esm/au-sidebar-nav.entry.js +176 -0
  634. package/dist/esm/au-slider.entry.js +284 -0
  635. package/dist/esm/au-splitter.entry.js +228 -0
  636. package/dist/esm/au-switch.entry.js +173 -0
  637. package/dist/esm/au-tab-panel.entry.js +61 -0
  638. package/dist/esm/au-tab.entry.js +39 -0
  639. package/dist/esm/au-tabs.entry.js +404 -0
  640. package/dist/esm/au-textarea.entry.js +243 -0
  641. package/dist/esm/au-toast-region.entry.js +690 -0
  642. package/dist/esm/au-toast.entry.js +61 -0
  643. package/dist/esm/au-toc.entry.js +443 -0
  644. package/dist/esm/au-tooltip.entry.js +393 -0
  645. package/dist/esm/aurora.js +21 -0
  646. package/dist/esm/check-CnJOd66V.js +14 -0
  647. package/dist/esm/checkable-kEvQ5xF7.js +6 -0
  648. package/dist/esm/circle-check-kpQFQ7bu.js +18 -0
  649. package/dist/esm/circle-x-tdx7CCkD.js +19 -0
  650. package/dist/esm/constants.generated-DqqWqhAT.js +120 -0
  651. package/dist/esm/control-id-C48ks26E.js +13 -0
  652. package/dist/esm/copy-B3rlZvSP.js +17 -0
  653. package/dist/esm/copy-check-Cq5N0E4D.js +18 -0
  654. package/dist/esm/deep-active-element-C-bRwiWx.js +9 -0
  655. package/dist/esm/group-validity-C2iVoG0G.js +9 -0
  656. package/dist/esm/icon-loader-CqLCmu4h.js +109 -0
  657. package/dist/esm/index-JU60IJxn.js +155 -0
  658. package/dist/esm/index-KLUZmSN-.js +2304 -0
  659. package/dist/esm/index.js +321 -0
  660. package/dist/esm/info-CA3n-tpF.js +18 -0
  661. package/dist/esm/initial-value-B71krpcd.js +11 -0
  662. package/dist/esm/item-update-DgfWQsck.js +13 -0
  663. package/dist/esm/link-state-DhPKwPml.js +37 -0
  664. package/dist/esm/live-announcer-CXd2OhYs.js +391 -0
  665. package/dist/esm/loader.js +11 -0
  666. package/dist/esm/menu-vjn4H-yX.js +35 -0
  667. package/dist/esm/minus-kbAXs-sG.js +14 -0
  668. package/dist/esm/navigation-TdUs41zm.js +58 -0
  669. package/dist/esm/octagon-alert-DTEnois3.js +25 -0
  670. package/dist/esm/plus-CU9sZ49I.js +17 -0
  671. package/dist/esm/popover-controller-DUrPFfIx.js +235 -0
  672. package/dist/esm/popover-support-DBHfOAQc.js +247 -0
  673. package/dist/esm/resolve-size-DD6GCVQb.js +11 -0
  674. package/dist/esm/restore-gvyxpLwV.js +141 -0
  675. package/dist/esm/reveal-BvnCPjl5.js +67 -0
  676. package/dist/esm/roving-Dogh3-Bf.js +67 -0
  677. package/dist/esm/segmented-BTRtOC1j.js +45 -0
  678. package/dist/esm/slider-CIZeCYao.js +78 -0
  679. package/dist/esm/toast-request-Kwv9rt06.js +55 -0
  680. package/dist/esm/triangle-alert-CJtRxiuh.js +25 -0
  681. package/dist/esm/user-round-C6E5E18W.js +18 -0
  682. package/dist/esm/warn-once-Ci-XzGE3.js +19 -0
  683. package/dist/esm/x-BTZwl4uD.js +17 -0
  684. package/dist/foundations/accessibility/_index.scss +34 -0
  685. package/dist/foundations/constants/_config.scss +119 -0
  686. package/dist/foundations/constants/_index.scss +1 -0
  687. package/dist/foundations/interactions/_index.scss +19 -0
  688. package/dist/foundations/responsive/_breakpoints.scss +104 -0
  689. package/dist/foundations/responsive/_index.scss +1 -0
  690. package/dist/foundations/themes/_dark.scss +60 -0
  691. package/dist/foundations/themes/_default.scss +37 -0
  692. package/dist/foundations/themes/_glass.scss +98 -0
  693. package/dist/foundations/themes/_index.scss +2 -0
  694. package/dist/foundations/themes/_minimal.scss +54 -0
  695. package/dist/foundations/tokens/_config.scss +186 -0
  696. package/dist/foundations/tokens/_functions.scss +19 -0
  697. package/dist/foundations/tokens/_index.scss +3 -0
  698. package/dist/foundations/tokens/_runtime.scss +102 -0
  699. package/dist/foundations/utilities/_borders.scss +116 -0
  700. package/dist/foundations/utilities/_colors.scss +17 -0
  701. package/dist/foundations/utilities/_flex.scss +144 -0
  702. package/dist/foundations/utilities/_grid.scss +105 -0
  703. package/dist/foundations/utilities/_index.scss +92 -0
  704. package/dist/foundations/utilities/_positioning.scss +44 -0
  705. package/dist/foundations/utilities/_sizing.scss +38 -0
  706. package/dist/foundations/utilities/_spacing.scss +119 -0
  707. package/dist/foundations/utilities/_typography.scss +85 -0
  708. package/dist/icons/foundations/icons/autoload.d.ts +9 -0
  709. package/dist/icons/foundations/icons/autoload.js +21 -0
  710. package/dist/icons/foundations/icons/icon-autoload-hook.d.ts +14 -0
  711. package/dist/icons/foundations/icons/icon-autoload-hook.js +13 -0
  712. package/dist/icons/foundations/icons/icon-registry.d.ts +11 -0
  713. package/dist/icons/foundations/icons/icon-registry.js +147 -0
  714. package/dist/icons/foundations/icons/icon-sizes.d.ts +8 -0
  715. package/dist/icons/foundations/icons/icon-sizes.js +8 -0
  716. package/dist/icons/foundations/icons/icon-slug.d.ts +6 -0
  717. package/dist/icons/foundations/icons/icon-slug.js +26 -0
  718. package/dist/icons/foundations/icons/icon.constants.d.ts +14 -0
  719. package/dist/icons/foundations/icons/icon.constants.generated.d.ts +2281 -0
  720. package/dist/icons/foundations/icons/icon.constants.generated.js +2284 -0
  721. package/dist/icons/foundations/icons/icon.constants.js +18 -0
  722. package/dist/icons/foundations/icons/icon.types.d.ts +21 -0
  723. package/dist/icons/foundations/icons/icon.types.js +1 -0
  724. package/dist/icons/foundations/icons/index.d.ts +5 -0
  725. package/dist/icons/foundations/icons/index.js +3 -0
  726. package/dist/icons/foundations/icons/mdi-map.d.ts +92 -0
  727. package/dist/icons/foundations/icons/mdi-map.js +86 -0
  728. package/dist/icons/foundations/icons/register-lucide-icons.d.ts +14 -0
  729. package/dist/icons/foundations/icons/register-lucide-icons.js +30 -0
  730. package/dist/icons/index.d.ts +2 -0
  731. package/dist/icons/index.js +2 -0
  732. package/dist/icons/integrations/basics/index.d.ts +2 -0
  733. package/dist/icons/integrations/basics/index.js +2 -0
  734. package/dist/icons/integrations/basics/is-plain-object.d.ts +1 -0
  735. package/dist/icons/integrations/basics/is-plain-object.js +1 -0
  736. package/dist/icons/package.json +3 -0
  737. package/dist/index.cjs.js +1 -0
  738. package/dist/index.js +1 -0
  739. package/dist/scss/index.scss +4 -0
  740. package/dist/scss/interactions.scss +1 -0
  741. package/dist/scss/responsive.scss +2 -0
  742. package/dist/scss/themes/dark.scss +1 -0
  743. package/dist/scss/themes/default.scss +1 -0
  744. package/dist/scss/themes/glass.scss +1 -0
  745. package/dist/scss/themes/minimal.scss +1 -0
  746. package/dist/scss/tokens.scss +1 -0
  747. package/dist/scss/utilities/_index.scss +5 -0
  748. package/dist/scss/utilities/borders.scss +3 -0
  749. package/dist/scss/utilities/colors.scss +2 -0
  750. package/dist/scss/utilities/flex.scss +1 -0
  751. package/dist/scss/utilities/grid.scss +1 -0
  752. package/dist/scss/utilities/positioning.scss +2 -0
  753. package/dist/scss/utilities/sizing.scss +3 -0
  754. package/dist/scss/utilities/spacing.scss +3 -0
  755. package/dist/scss/utilities/typography.scss +3 -0
  756. package/dist/styles.css +263 -0
  757. package/dist/themes/glass.css +88 -0
  758. package/dist/themes/minimal.css +50 -0
  759. package/dist/tokens.cjs +38 -0
  760. package/dist/tokens.d.ts +337 -0
  761. package/dist/tokens.mjs +35 -0
  762. package/dist/types/components/actions/au-button/au-button.constants.d.ts +57 -0
  763. package/dist/types/components/actions/au-button/au-button.d.ts +93 -0
  764. package/dist/types/components/actions/au-button/au-button.types.d.ts +9 -0
  765. package/dist/types/components/actions/au-button/index.d.ts +2 -0
  766. package/dist/types/components/data-display/au-accordion/au-accordion.constants.d.ts +12 -0
  767. package/dist/types/components/data-display/au-accordion/au-accordion.d.ts +27 -0
  768. package/dist/types/components/data-display/au-accordion/au-accordion.types.d.ts +1 -0
  769. package/dist/types/components/data-display/au-accordion/index.d.ts +3 -0
  770. package/dist/types/components/data-display/au-accordion-item/au-accordion-item.d.ts +31 -0
  771. package/dist/types/components/data-display/au-accordion-item/index.d.ts +1 -0
  772. package/dist/types/components/data-display/au-avatar/au-avatar.constants.d.ts +26 -0
  773. package/dist/types/components/data-display/au-avatar/au-avatar.d.ts +39 -0
  774. package/dist/types/components/data-display/au-avatar/au-avatar.types.d.ts +1 -0
  775. package/dist/types/components/data-display/au-avatar/index.d.ts +3 -0
  776. package/dist/types/components/data-display/au-avatar/internal/initials.d.ts +7 -0
  777. package/dist/types/components/data-display/au-badge/au-badge.constants.d.ts +43 -0
  778. package/dist/types/components/data-display/au-badge/au-badge.d.ts +15 -0
  779. package/dist/types/components/data-display/au-badge/au-badge.types.d.ts +1 -0
  780. package/dist/types/components/data-display/au-badge/index.d.ts +3 -0
  781. package/dist/types/components/data-display/au-card/au-card.constants.d.ts +29 -0
  782. package/dist/types/components/data-display/au-card/au-card.d.ts +17 -0
  783. package/dist/types/components/data-display/au-card/au-card.types.d.ts +1 -0
  784. package/dist/types/components/data-display/au-card/index.d.ts +3 -0
  785. package/dist/types/components/data-display/au-chip/au-chip.constants.d.ts +23 -0
  786. package/dist/types/components/data-display/au-chip/au-chip.d.ts +46 -0
  787. package/dist/types/components/data-display/au-chip/au-chip.types.d.ts +10 -0
  788. package/dist/types/components/data-display/au-chip/index.d.ts +3 -0
  789. package/dist/types/components/data-display/au-chip/internal/neighbor.d.ts +6 -0
  790. package/dist/types/components/data-display/au-chip/internal/remove-key.d.ts +16 -0
  791. package/dist/types/components/data-display/au-code-block/au-code-block.constants.d.ts +32 -0
  792. package/dist/types/components/data-display/au-code-block/au-code-block.d.ts +89 -0
  793. package/dist/types/components/data-display/au-code-block/au-code-block.types.d.ts +17 -0
  794. package/dist/types/components/data-display/au-code-block/index.d.ts +3 -0
  795. package/dist/types/components/data-display/au-code-block/internal/highlight-lines.d.ts +10 -0
  796. package/dist/types/components/data-display/au-code-block/internal/highlight-result.d.ts +22 -0
  797. package/dist/types/components/data-display/au-code-block/internal/light-source.d.ts +10 -0
  798. package/dist/types/components/data-display/au-code-block/internal/normalize-code.d.ts +9 -0
  799. package/dist/types/components/data-display/internal/accordion.d.ts +26 -0
  800. package/dist/types/components/feedback/au-alert/au-alert.constants.d.ts +24 -0
  801. package/dist/types/components/feedback/au-alert/au-alert.d.ts +37 -0
  802. package/dist/types/components/feedback/au-alert/au-alert.types.d.ts +1 -0
  803. package/dist/types/components/feedback/au-alert/index.d.ts +3 -0
  804. package/dist/types/components/feedback/au-toast/au-toast.constants.d.ts +2 -0
  805. package/dist/types/components/feedback/au-toast/au-toast.d.ts +25 -0
  806. package/dist/types/components/feedback/au-toast/au-toast.service.d.ts +8 -0
  807. package/dist/types/components/feedback/au-toast/au-toast.types.d.ts +1 -0
  808. package/dist/types/components/feedback/au-toast/index.d.ts +3 -0
  809. package/dist/types/components/feedback/au-toast-region/au-toast-region.d.ts +106 -0
  810. package/dist/types/components/feedback/au-toast-region/index.d.ts +4 -0
  811. package/dist/types/components/feedback/internal/toast-announcer.d.ts +5 -0
  812. package/dist/types/components/feedback/internal/toast-constants.d.ts +70 -0
  813. package/dist/types/components/feedback/internal/toast-options.d.ts +28 -0
  814. package/dist/types/components/feedback/internal/toast-popover.d.ts +4 -0
  815. package/dist/types/components/feedback/internal/toast-queue.d.ts +39 -0
  816. package/dist/types/components/feedback/internal/toast-registry.d.ts +11 -0
  817. package/dist/types/components/feedback/internal/toast-request.d.ts +10 -0
  818. package/dist/types/components/feedback/internal/toast-timers.d.ts +19 -0
  819. package/dist/types/components/feedback/internal/toast-timing.d.ts +5 -0
  820. package/dist/types/components/feedback/internal/toast-types.d.ts +37 -0
  821. package/dist/types/components/forms/au-checkbox/au-checkbox.constants.d.ts +2 -0
  822. package/dist/types/components/forms/au-checkbox/au-checkbox.d.ts +63 -0
  823. package/dist/types/components/forms/au-checkbox/au-checkbox.types.d.ts +23 -0
  824. package/dist/types/components/forms/au-checkbox/index.d.ts +3 -0
  825. package/dist/types/components/forms/au-combobox/au-combobox.constants.d.ts +26 -0
  826. package/dist/types/components/forms/au-combobox/au-combobox.d.ts +167 -0
  827. package/dist/types/components/forms/au-combobox/au-combobox.types.d.ts +49 -0
  828. package/dist/types/components/forms/au-combobox/index.d.ts +4 -0
  829. package/dist/types/components/forms/au-field/au-field.d.ts +31 -0
  830. package/dist/types/components/forms/au-field/index.d.ts +1 -0
  831. package/dist/types/components/forms/au-input/au-input.constants.d.ts +35 -0
  832. package/dist/types/components/forms/au-input/au-input.d.ts +104 -0
  833. package/dist/types/components/forms/au-input/au-input.types.d.ts +35 -0
  834. package/dist/types/components/forms/au-input/index.d.ts +4 -0
  835. package/dist/types/components/forms/au-label/au-label.constants.d.ts +7 -0
  836. package/dist/types/components/forms/au-label/au-label.d.ts +12 -0
  837. package/dist/types/components/forms/au-label/au-label.types.d.ts +7 -0
  838. package/dist/types/components/forms/au-label/index.d.ts +2 -0
  839. package/dist/types/components/forms/au-number-input/au-number-input.constants.d.ts +15 -0
  840. package/dist/types/components/forms/au-number-input/au-number-input.d.ts +93 -0
  841. package/dist/types/components/forms/au-number-input/au-number-input.types.d.ts +35 -0
  842. package/dist/types/components/forms/au-number-input/index.d.ts +4 -0
  843. package/dist/types/components/forms/au-radio/au-radio.constants.d.ts +2 -0
  844. package/dist/types/components/forms/au-radio/au-radio.d.ts +13 -0
  845. package/dist/types/components/forms/au-radio/au-radio.types.d.ts +11 -0
  846. package/dist/types/components/forms/au-radio/index.d.ts +3 -0
  847. package/dist/types/components/forms/au-radio-group/au-radio-group.constants.d.ts +6 -0
  848. package/dist/types/components/forms/au-radio-group/au-radio-group.d.ts +89 -0
  849. package/dist/types/components/forms/au-radio-group/au-radio-group.types.d.ts +23 -0
  850. package/dist/types/components/forms/au-radio-group/index.d.ts +4 -0
  851. package/dist/types/components/forms/au-segmented-control/au-segmented-control.constants.d.ts +26 -0
  852. package/dist/types/components/forms/au-segmented-control/au-segmented-control.d.ts +113 -0
  853. package/dist/types/components/forms/au-segmented-control/au-segmented-control.types.d.ts +30 -0
  854. package/dist/types/components/forms/au-segmented-control/index.d.ts +4 -0
  855. package/dist/types/components/forms/au-segmented-option/au-segmented-option.d.ts +23 -0
  856. package/dist/types/components/forms/au-segmented-option/au-segmented-option.types.d.ts +14 -0
  857. package/dist/types/components/forms/au-segmented-option/index.d.ts +2 -0
  858. package/dist/types/components/forms/au-select/au-select.constants.d.ts +7 -0
  859. package/dist/types/components/forms/au-select/au-select.d.ts +91 -0
  860. package/dist/types/components/forms/au-select/au-select.types.d.ts +25 -0
  861. package/dist/types/components/forms/au-select/index.d.ts +4 -0
  862. package/dist/types/components/forms/au-select/internal/read-select-options.d.ts +28 -0
  863. package/dist/types/components/forms/au-slider/au-slider.constants.d.ts +11 -0
  864. package/dist/types/components/forms/au-slider/au-slider.d.ts +84 -0
  865. package/dist/types/components/forms/au-slider/au-slider.types.d.ts +41 -0
  866. package/dist/types/components/forms/au-slider/index.d.ts +4 -0
  867. package/dist/types/components/forms/au-switch/au-switch.constants.d.ts +2 -0
  868. package/dist/types/components/forms/au-switch/au-switch.d.ts +61 -0
  869. package/dist/types/components/forms/au-switch/au-switch.types.d.ts +21 -0
  870. package/dist/types/components/forms/au-switch/index.d.ts +3 -0
  871. package/dist/types/components/forms/au-textarea/au-textarea.constants.d.ts +16 -0
  872. package/dist/types/components/forms/au-textarea/au-textarea.d.ts +87 -0
  873. package/dist/types/components/forms/au-textarea/au-textarea.types.d.ts +33 -0
  874. package/dist/types/components/forms/au-textarea/index.d.ts +4 -0
  875. package/dist/types/components/forms/internal/combobox.d.ts +51 -0
  876. package/dist/types/components/forms/internal/number-input.d.ts +18 -0
  877. package/dist/types/components/forms/internal/segmented.d.ts +34 -0
  878. package/dist/types/components/forms/internal/slider.d.ts +42 -0
  879. package/dist/types/components/layout/au-container/au-container.constants.d.ts +24 -0
  880. package/dist/types/components/layout/au-container/au-container.d.ts +15 -0
  881. package/dist/types/components/layout/au-container/au-container.types.d.ts +1 -0
  882. package/dist/types/components/layout/au-container/index.d.ts +3 -0
  883. package/dist/types/components/layout/au-divider/au-divider.constants.d.ts +23 -0
  884. package/dist/types/components/layout/au-divider/au-divider.d.ts +23 -0
  885. package/dist/types/components/layout/au-divider/au-divider.types.d.ts +1 -0
  886. package/dist/types/components/layout/au-divider/index.d.ts +3 -0
  887. package/dist/types/components/layout/au-splitter/au-splitter.constants.d.ts +9 -0
  888. package/dist/types/components/layout/au-splitter/au-splitter.d.ts +53 -0
  889. package/dist/types/components/layout/au-splitter/au-splitter.types.d.ts +19 -0
  890. package/dist/types/components/layout/au-splitter/index.d.ts +4 -0
  891. package/dist/types/components/layout/internal/splitter.d.ts +22 -0
  892. package/dist/types/components/navigation/au-breadcrumb/au-breadcrumb.constants.d.ts +4 -0
  893. package/dist/types/components/navigation/au-breadcrumb/au-breadcrumb.d.ts +23 -0
  894. package/dist/types/components/navigation/au-breadcrumb/index.d.ts +2 -0
  895. package/dist/types/components/navigation/au-breadcrumb-item/au-breadcrumb-item.d.ts +28 -0
  896. package/dist/types/components/navigation/au-breadcrumb-item/index.d.ts +1 -0
  897. package/dist/types/components/navigation/au-nav-group/au-nav-group.d.ts +16 -0
  898. package/dist/types/components/navigation/au-nav-group/index.d.ts +1 -0
  899. package/dist/types/components/navigation/au-nav-link/au-nav-link.d.ts +25 -0
  900. package/dist/types/components/navigation/au-nav-link/index.d.ts +1 -0
  901. package/dist/types/components/navigation/au-navbar/au-navbar.constants.d.ts +40 -0
  902. package/dist/types/components/navigation/au-navbar/au-navbar.d.ts +74 -0
  903. package/dist/types/components/navigation/au-navbar/au-navbar.types.d.ts +9 -0
  904. package/dist/types/components/navigation/au-navbar/index.d.ts +4 -0
  905. package/dist/types/components/navigation/au-navbar/internal/collapse.d.ts +6 -0
  906. package/dist/types/components/navigation/au-sidebar-nav/au-sidebar-nav.constants.d.ts +2 -0
  907. package/dist/types/components/navigation/au-sidebar-nav/au-sidebar-nav.d.ts +49 -0
  908. package/dist/types/components/navigation/au-sidebar-nav/index.d.ts +2 -0
  909. package/dist/types/components/navigation/au-tab/au-tab.d.ts +11 -0
  910. package/dist/types/components/navigation/au-tab/index.d.ts +1 -0
  911. package/dist/types/components/navigation/au-tab-panel/au-tab-panel.d.ts +20 -0
  912. package/dist/types/components/navigation/au-tab-panel/index.d.ts +1 -0
  913. package/dist/types/components/navigation/au-tabs/au-tabs.constants.d.ts +12 -0
  914. package/dist/types/components/navigation/au-tabs/au-tabs.d.ts +79 -0
  915. package/dist/types/components/navigation/au-tabs/au-tabs.types.d.ts +7 -0
  916. package/dist/types/components/navigation/au-tabs/index.d.ts +4 -0
  917. package/dist/types/components/navigation/au-tabs/internal/indicator-geometry.d.ts +31 -0
  918. package/dist/types/components/navigation/au-toc/au-toc.constants.d.ts +6 -0
  919. package/dist/types/components/navigation/au-toc/au-toc.d.ts +84 -0
  920. package/dist/types/components/navigation/au-toc/index.d.ts +2 -0
  921. package/dist/types/components/navigation/au-toc/internal/toc-model.d.ts +41 -0
  922. package/dist/types/components/navigation/internal/reveal.d.ts +24 -0
  923. package/dist/types/components/overlays/au-dialog/au-dialog.constants.d.ts +33 -0
  924. package/dist/types/components/overlays/au-dialog/au-dialog.d.ts +103 -0
  925. package/dist/types/components/overlays/au-dialog/au-dialog.types.d.ts +11 -0
  926. package/dist/types/components/overlays/au-dialog/index.d.ts +3 -0
  927. package/dist/types/components/overlays/au-menu/au-menu.constants.d.ts +37 -0
  928. package/dist/types/components/overlays/au-menu/au-menu.d.ts +67 -0
  929. package/dist/types/components/overlays/au-menu/au-menu.types.d.ts +12 -0
  930. package/dist/types/components/overlays/au-menu/index.d.ts +4 -0
  931. package/dist/types/components/overlays/au-menu-item/au-menu-item.d.ts +19 -0
  932. package/dist/types/components/overlays/au-menu-item/au-menu-item.types.d.ts +14 -0
  933. package/dist/types/components/overlays/au-menu-item/index.d.ts +2 -0
  934. package/dist/types/components/overlays/au-popover/au-popover.constants.d.ts +33 -0
  935. package/dist/types/components/overlays/au-popover/au-popover.d.ts +28 -0
  936. package/dist/types/components/overlays/au-popover/au-popover.types.d.ts +10 -0
  937. package/dist/types/components/overlays/au-popover/index.d.ts +3 -0
  938. package/dist/types/components/overlays/au-tooltip/au-tooltip.constants.d.ts +28 -0
  939. package/dist/types/components/overlays/au-tooltip/au-tooltip.d.ts +80 -0
  940. package/dist/types/components/overlays/au-tooltip/index.d.ts +3 -0
  941. package/dist/types/components/overlays/internal/menu.d.ts +34 -0
  942. package/dist/types/components/overlays/internal/popover-controller.d.ts +102 -0
  943. package/dist/types/components/overlays/internal/typeahead.d.ts +17 -0
  944. package/dist/types/components/primitives/au-icon/au-icon.constants.d.ts +5 -0
  945. package/dist/types/components/primitives/au-icon/au-icon.d.ts +37 -0
  946. package/dist/types/components/primitives/au-icon/au-icon.types.d.ts +13 -0
  947. package/dist/types/components/primitives/au-icon/core-icons.d.ts +9 -0
  948. package/dist/types/components/primitives/au-icon/icon-loader.d.ts +8 -0
  949. package/dist/types/components/primitives/au-icon/index.d.ts +3 -0
  950. package/dist/types/components.d.ts +4419 -0
  951. package/dist/types/foundations/constants/constants.generated.d.mts +136 -0
  952. package/dist/types/foundations/constants/index.d.ts +3 -0
  953. package/dist/types/foundations/constants/resolve-size.d.ts +5 -0
  954. package/dist/types/foundations/icons/autoload.d.ts +9 -0
  955. package/dist/types/foundations/icons/icon-autoload-hook.d.ts +14 -0
  956. package/dist/types/foundations/icons/icon-registry.d.ts +11 -0
  957. package/dist/types/foundations/icons/icon-sizes.d.ts +8 -0
  958. package/dist/types/foundations/icons/icon-slug.d.ts +6 -0
  959. package/dist/types/foundations/icons/icon.constants.d.ts +14 -0
  960. package/dist/types/foundations/icons/icon.constants.generated.d.ts +2281 -0
  961. package/dist/types/foundations/icons/icon.types.d.ts +21 -0
  962. package/dist/types/foundations/icons/index.d.ts +5 -0
  963. package/dist/types/foundations/icons/mdi-map.d.ts +92 -0
  964. package/dist/types/foundations/icons/register-lucide-icons.d.ts +14 -0
  965. package/dist/types/foundations/themes/theme.d.ts +68 -0
  966. package/dist/types/foundations/tokens/index.d.ts +4 -0
  967. package/dist/types/foundations/tokens/tokens.generated.d.mts +199 -0
  968. package/dist/types/index.d.ts +3 -0
  969. package/dist/types/integrations/basics/index.d.ts +2 -0
  970. package/dist/types/integrations/basics/is-plain-object.d.ts +1 -0
  971. package/dist/types/integrations/flux/index.d.ts +2 -0
  972. package/dist/types/integrations/flux/loader.d.ts +21 -0
  973. package/dist/types/integrations/flux/provide.d.ts +12 -0
  974. package/dist/types/integrations/flux/registry.d.ts +25 -0
  975. package/dist/types/shared/anchored/anchor-position.d.ts +43 -0
  976. package/dist/types/shared/anchored/js-positioning.d.ts +36 -0
  977. package/dist/types/shared/anchored/popover-support.d.ts +15 -0
  978. package/dist/types/shared/clipboard/clipboard.d.ts +13 -0
  979. package/dist/types/shared/clipboard/copy-procedure.d.ts +17 -0
  980. package/dist/types/shared/clipboard/copy-types.d.ts +33 -0
  981. package/dist/types/shared/focus/deep-active-element.d.ts +2 -0
  982. package/dist/types/shared/focus/index.d.ts +1 -0
  983. package/dist/types/shared/form-control/attributes.d.ts +11 -0
  984. package/dist/types/shared/form-control/checkable.d.ts +5 -0
  985. package/dist/types/shared/form-control/control-id.d.ts +7 -0
  986. package/dist/types/shared/form-control/described-by.d.ts +2 -0
  987. package/dist/types/shared/form-control/form-control-controller.d.ts +40 -0
  988. package/dist/types/shared/form-control/group-validity.d.ts +5 -0
  989. package/dist/types/shared/form-control/host-events.d.ts +13 -0
  990. package/dist/types/shared/form-control/index.d.ts +11 -0
  991. package/dist/types/shared/form-control/initial-value.d.ts +5 -0
  992. package/dist/types/shared/form-control/restore.d.ts +4 -0
  993. package/dist/types/shared/form-control/validation-message.d.ts +11 -0
  994. package/dist/types/shared/live-announcer/announce-queue.d.ts +51 -0
  995. package/dist/types/shared/live-announcer/announce-timing.d.ts +12 -0
  996. package/dist/types/shared/live-announcer/index.d.ts +2 -0
  997. package/dist/types/shared/live-announcer/live-announcer.d.ts +31 -0
  998. package/dist/types/shared/live-announcer/public.d.ts +7 -0
  999. package/dist/types/shared/modal-placement.d.ts +14 -0
  1000. package/dist/types/shared/modal-target.d.ts +22 -0
  1001. package/dist/types/shared/navigation/index.d.ts +4 -0
  1002. package/dist/types/shared/navigation/link-state.d.ts +34 -0
  1003. package/dist/types/shared/navigation/navigation.d.ts +28 -0
  1004. package/dist/types/shared/observers/index.d.ts +42 -0
  1005. package/dist/types/shared/roving-focus/index.d.ts +3 -0
  1006. package/dist/types/shared/roving-focus/item-update.d.ts +8 -0
  1007. package/dist/types/shared/roving-focus/roving.d.ts +22 -0
  1008. package/dist/types/shared/warn-once.d.ts +5 -0
  1009. package/dist/types/stencil-public-runtime.d.ts +1879 -0
  1010. package/dist/types/vue.d.ts +68 -0
  1011. package/dist/utilities/base.css +3160 -0
  1012. package/dist/utilities/responsive.css +11165 -0
  1013. package/dist/utilities.css +14326 -0
  1014. package/loader/cdn.js +1 -0
  1015. package/loader/index.cjs.js +1 -0
  1016. package/loader/index.d.ts +24 -0
  1017. package/loader/index.es2017.js +1 -0
  1018. package/loader/index.js +2 -0
  1019. package/package.json +493 -4
@@ -0,0 +1,2304 @@
1
+ const NAMESPACE = 'aurora';
2
+ const BUILD = /* aurora */ { hotModuleReplacement: false, hydratedSelectorName: "hydrated", lazyLoad: true, propChangeCallback: true, slotRelocation: true, state: true, updatable: true};
3
+
4
+ /*
5
+ Stencil Client Platform v4.45.2 | MIT Licensed | https://stenciljs.com
6
+ */
7
+
8
+
9
+ // src/utils/constants.ts
10
+ var SVG_NS = "http://www.w3.org/2000/svg";
11
+ var HTML_NS = "http://www.w3.org/1999/xhtml";
12
+
13
+ // src/utils/get-prop-descriptor.ts
14
+ function getPropertyDescriptor(obj, memberName, getOnly) {
15
+ const stopAt = typeof HTMLElement !== "undefined" ? HTMLElement.prototype : null;
16
+ while (obj && obj !== stopAt) {
17
+ const desc = Object.getOwnPropertyDescriptor(obj, memberName);
18
+ if (desc && (!getOnly || desc.get)) return desc;
19
+ obj = Object.getPrototypeOf(obj);
20
+ }
21
+ return void 0;
22
+ }
23
+
24
+ // src/utils/es2022-rewire-class-members.ts
25
+ var reWireGetterSetter = (instance, hostRef) => {
26
+ var _a;
27
+ const cmpMeta = hostRef.$cmpMeta$;
28
+ const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
29
+ members.map(([memberName, [memberFlags]]) => {
30
+ if ((memberFlags & 31 /* Prop */ || memberFlags & 32 /* State */)) {
31
+ const ogValue = instance[memberName];
32
+ const ogDescriptor = getPropertyDescriptor(Object.getPrototypeOf(instance), memberName, true) || Object.getOwnPropertyDescriptor(instance, memberName);
33
+ if (ogDescriptor) {
34
+ Object.defineProperty(instance, memberName, {
35
+ get() {
36
+ return ogDescriptor.get.call(this);
37
+ },
38
+ set(newValue) {
39
+ ogDescriptor.set.call(this, newValue);
40
+ },
41
+ configurable: true,
42
+ enumerable: true
43
+ });
44
+ }
45
+ if (hostRef.$instanceValues$.has(memberName)) {
46
+ instance[memberName] = hostRef.$instanceValues$.get(memberName);
47
+ } else if (ogValue !== void 0) {
48
+ instance[memberName] = ogValue;
49
+ }
50
+ }
51
+ });
52
+ };
53
+
54
+ // src/client/client-host-ref.ts
55
+ var getHostRef = (ref) => {
56
+ if (ref.__stencil__getHostRef) {
57
+ return ref.__stencil__getHostRef();
58
+ }
59
+ return void 0;
60
+ };
61
+ var registerInstance = (lazyInstance, hostRef) => {
62
+ if (!hostRef) return;
63
+ lazyInstance.__stencil__getHostRef = () => hostRef;
64
+ hostRef.$lazyInstance$ = lazyInstance;
65
+ if (hostRef.$cmpMeta$.$flags$ & 512 /* hasModernPropertyDecls */ && (BUILD.state)) {
66
+ reWireGetterSetter(lazyInstance, hostRef);
67
+ }
68
+ };
69
+ var registerHost = (hostElement, cmpMeta) => {
70
+ const hostRef = {
71
+ $flags$: 0,
72
+ $hostElement$: hostElement,
73
+ $cmpMeta$: cmpMeta,
74
+ $instanceValues$: /* @__PURE__ */ new Map(),
75
+ $serializerValues$: /* @__PURE__ */ new Map()
76
+ };
77
+ {
78
+ hostRef.$onInstancePromise$ = new Promise((r) => hostRef.$onInstanceResolve$ = r);
79
+ }
80
+ {
81
+ hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
82
+ hostElement["s-p"] = [];
83
+ hostElement["s-rc"] = [];
84
+ }
85
+ {
86
+ hostRef.$fetchedCbList$ = [];
87
+ }
88
+ const ref = hostRef;
89
+ hostElement.__stencil__getHostRef = () => ref;
90
+ return ref;
91
+ };
92
+ var isMemberInElement = (elm, memberName) => memberName in elm;
93
+ var consoleError = (e, el) => (0, console.error)(e, el);
94
+
95
+ // src/client/client-load-module.ts
96
+ var cmpModules = /* @__PURE__ */ new Map();
97
+ var failedLoadAttempts = /* @__PURE__ */ new Map();
98
+ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
99
+ var _a;
100
+ const exportName = cmpMeta.$tagName$.replace(/-/g, "_");
101
+ const bundleId = cmpMeta.$lazyBundleId$;
102
+ if (!bundleId) {
103
+ return void 0;
104
+ }
105
+ const module = cmpModules.get(bundleId) ;
106
+ if (module) {
107
+ return module[exportName];
108
+ }
109
+ const retryCount = (_a = failedLoadAttempts.get(bundleId)) != null ? _a : 0;
110
+ const cacheBustParams = [
111
+ retryCount > 0 ? `s-retry=${retryCount}` : "",
112
+ ""
113
+ ].filter(Boolean).join("&");
114
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/
115
+ return import(
116
+ /* @vite-ignore */
117
+ /* webpackInclude: /\.entry\.js$/ */
118
+ /* webpackExclude: /\.system\.entry\.js$/ */
119
+ /* webpackMode: "lazy" */
120
+ `./${bundleId}.entry.js${cacheBustParams ? "?" + cacheBustParams : ""}`
121
+ ).then(
122
+ (importedModule) => {
123
+ {
124
+ failedLoadAttempts.delete(bundleId);
125
+ cmpModules.set(bundleId, importedModule);
126
+ }
127
+ return importedModule[exportName];
128
+ },
129
+ (e) => {
130
+ failedLoadAttempts.set(bundleId, retryCount + 1);
131
+ consoleError(e, hostRef.$hostElement$);
132
+ }
133
+ );
134
+ };
135
+
136
+ // src/client/client-style.ts
137
+ var styles = /* @__PURE__ */ new Map();
138
+ var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
139
+ var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
140
+ var XLINK_NS = "http://www.w3.org/1999/xlink";
141
+ var MAX_LAZY_LOAD_RETRIES = 3;
142
+ var LAZY_LOAD_RETRY_INTERVAL_MS = 1e3;
143
+ var FORM_ASSOCIATED_CUSTOM_ELEMENT_CALLBACKS = [
144
+ "formAssociatedCallback",
145
+ "formResetCallback",
146
+ "formDisabledCallback",
147
+ "formStateRestoreCallback"
148
+ ];
149
+ var win = typeof window !== "undefined" ? window : {};
150
+ var plt = {
151
+ $flags$: 0,
152
+ $resourcesUrl$: "",
153
+ jmp: (h2) => h2(),
154
+ raf: (h2) => requestAnimationFrame(h2),
155
+ ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
156
+ rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
157
+ ce: (eventName, opts) => new CustomEvent(eventName, opts)
158
+ };
159
+ var supportsListenerOptions = /* @__PURE__ */ (() => {
160
+ var _a;
161
+ let supportsListenerOptions2 = false;
162
+ try {
163
+ (_a = win.document) == null ? void 0 : _a.addEventListener(
164
+ "e",
165
+ null,
166
+ Object.defineProperty({}, "passive", {
167
+ get() {
168
+ supportsListenerOptions2 = true;
169
+ }
170
+ })
171
+ );
172
+ } catch (e) {
173
+ }
174
+ return supportsListenerOptions2;
175
+ })();
176
+ var promiseResolve = (v) => Promise.resolve(v);
177
+ var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
178
+ try {
179
+ if (!win.document.adoptedStyleSheets) {
180
+ return false;
181
+ }
182
+ new CSSStyleSheet();
183
+ return typeof new CSSStyleSheet().replaceSync === "function";
184
+ } catch (e) {
185
+ }
186
+ return false;
187
+ })() ;
188
+ var supportsMutableAdoptedStyleSheets = supportsConstructableStylesheets ? /* @__PURE__ */ (() => !!win.document && Object.getOwnPropertyDescriptor(win.document.adoptedStyleSheets, "length").writable)() : false;
189
+ var queuePending = false;
190
+ var queueDomReads = [];
191
+ var queueDomWrites = [];
192
+ var scheduleFlush = () => {
193
+ var _a;
194
+ return ((_a = win.document) == null ? void 0 : _a.hidden) ? setTimeout(flush, 16) : plt.raf(flush);
195
+ };
196
+ var queueTask = (queue, write) => (cb) => {
197
+ queue.push(cb);
198
+ if (!queuePending) {
199
+ queuePending = true;
200
+ if (write && plt.$flags$ & 4 /* queueSync */) {
201
+ nextTick(flush);
202
+ } else {
203
+ scheduleFlush();
204
+ }
205
+ }
206
+ };
207
+ var consume = (queue) => {
208
+ for (let i2 = 0; i2 < queue.length; i2++) {
209
+ try {
210
+ queue[i2](performance.now());
211
+ } catch (e) {
212
+ consoleError(e);
213
+ }
214
+ }
215
+ queue.length = 0;
216
+ };
217
+ var flush = () => {
218
+ consume(queueDomReads);
219
+ {
220
+ consume(queueDomWrites);
221
+ if (queuePending = queueDomReads.length > 0) {
222
+ scheduleFlush();
223
+ }
224
+ }
225
+ };
226
+ var nextTick = (cb) => promiseResolve().then(cb);
227
+ var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
228
+
229
+ // src/utils/style.ts
230
+ function createStyleSheetIfNeededAndSupported(styles2) {
231
+ return void 0;
232
+ }
233
+
234
+ // src/utils/shadow-root.ts
235
+ var globalStyleSheet;
236
+ function createShadowRoot(cmpMeta) {
237
+ var _a;
238
+ const opts = { mode: "open" };
239
+ {
240
+ opts.delegatesFocus = !!(cmpMeta.$flags$ & 16 /* shadowDelegatesFocus */);
241
+ }
242
+ const shadowRoot = this.attachShadow(opts);
243
+ if (globalStyleSheet === void 0) globalStyleSheet = (_a = createStyleSheetIfNeededAndSupported()) != null ? _a : null;
244
+ if (globalStyleSheet) {
245
+ if (supportsMutableAdoptedStyleSheets) {
246
+ shadowRoot.adoptedStyleSheets.push(globalStyleSheet);
247
+ } else {
248
+ shadowRoot.adoptedStyleSheets = [...shadowRoot.adoptedStyleSheets, globalStyleSheet];
249
+ }
250
+ }
251
+ }
252
+ var updateFallbackSlotVisibility = (elm) => {
253
+ const childNodes = internalCall(elm, "childNodes");
254
+ if (elm.tagName && elm.tagName.includes("-") && elm["s-cr"] && elm.tagName !== "SLOT-FB") {
255
+ getHostSlotNodes(childNodes, elm.tagName).forEach((slotNode) => {
256
+ if (slotNode.nodeType === 1 /* ElementNode */ && slotNode.tagName === "SLOT-FB") {
257
+ if (getSlotChildSiblings(slotNode, getSlotName(slotNode), false).length) {
258
+ slotNode.hidden = true;
259
+ } else {
260
+ slotNode.hidden = false;
261
+ }
262
+ }
263
+ });
264
+ }
265
+ let i2 = 0;
266
+ for (i2 = 0; i2 < childNodes.length; i2++) {
267
+ const childNode = childNodes[i2];
268
+ if (childNode.nodeType === 1 /* ElementNode */ && internalCall(childNode, "childNodes").length) {
269
+ updateFallbackSlotVisibility(childNode);
270
+ }
271
+ }
272
+ };
273
+ var getSlottedChildNodes = (childNodes) => {
274
+ const result = [];
275
+ for (let i2 = 0; i2 < childNodes.length; i2++) {
276
+ const slottedNode = childNodes[i2]["s-nr"] || void 0;
277
+ if (slottedNode && slottedNode.isConnected) {
278
+ result.push(slottedNode);
279
+ }
280
+ }
281
+ return result;
282
+ };
283
+ function getHostSlotNodes(childNodes, hostName, slotName) {
284
+ let i2 = 0;
285
+ let slottedNodes = [];
286
+ let childNode;
287
+ for (; i2 < childNodes.length; i2++) {
288
+ childNode = childNodes[i2];
289
+ if (childNode["s-sr"] && (!hostName || childNode["s-hn"] === hostName) && (slotName === void 0 || getSlotName(childNode) === slotName)) {
290
+ slottedNodes.push(childNode);
291
+ if (typeof slotName !== "undefined") return slottedNodes;
292
+ }
293
+ slottedNodes = [...slottedNodes, ...getHostSlotNodes(internalCall(childNode, "childNodes"), hostName, slotName)];
294
+ }
295
+ return slottedNodes;
296
+ }
297
+ var getSlotChildSiblings = (slot, slotName, includeSlot = true) => {
298
+ const childNodes = [];
299
+ if (includeSlot && slot["s-sr"] || !slot["s-sr"]) childNodes.push(slot);
300
+ let node = slot;
301
+ while (node = node.nextSibling) {
302
+ if (getSlotName(node) === slotName && (includeSlot || !node["s-sr"])) childNodes.push(node);
303
+ }
304
+ return childNodes;
305
+ };
306
+ var isNodeLocatedInSlot = (nodeToRelocate, slotName) => {
307
+ if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
308
+ if (nodeToRelocate.getAttribute("slot") === null && slotName === "") {
309
+ return true;
310
+ }
311
+ if (nodeToRelocate.getAttribute("slot") === slotName) {
312
+ return true;
313
+ }
314
+ return false;
315
+ }
316
+ if (nodeToRelocate["s-sn"] === slotName) {
317
+ return true;
318
+ }
319
+ return slotName === "";
320
+ };
321
+ var getSlotName = (node) => typeof node["s-sn"] === "string" ? node["s-sn"] : node.nodeType === 1 && node.getAttribute("slot") || void 0;
322
+ function patchSlotNode(node) {
323
+ if (node.assignedElements || node.assignedNodes || !node["s-sr"]) return;
324
+ const assignedFactory = (elementsOnly) => (function(opts) {
325
+ const toReturn = [];
326
+ const slotName = this["s-sn"];
327
+ if (opts == null ? void 0 : opts.flatten) {
328
+ console.error(`
329
+ Flattening is not supported for Stencil non-shadow slots.
330
+ You can use \`.childNodes\` to nested slot fallback content.
331
+ If you have a particular use case, please open an issue on the Stencil repo.
332
+ `);
333
+ }
334
+ const parent = this["s-cr"].parentElement;
335
+ const slottedNodes = parent.__childNodes ? parent.childNodes : getSlottedChildNodes(parent.childNodes);
336
+ slottedNodes.forEach((n) => {
337
+ if (slotName === getSlotName(n)) {
338
+ toReturn.push(n);
339
+ }
340
+ });
341
+ if (elementsOnly) {
342
+ return toReturn.filter((n) => n.nodeType === 1 /* ElementNode */);
343
+ }
344
+ return toReturn;
345
+ }).bind(node);
346
+ node.assignedElements = assignedFactory(true);
347
+ node.assignedNodes = assignedFactory(false);
348
+ }
349
+ function dispatchSlotChangeEvent(elm) {
350
+ elm.dispatchEvent(new CustomEvent("slotchange", { bubbles: false, cancelable: false, composed: false }));
351
+ }
352
+ function findSlotFromSlottedNode(slottedNode, parentHost) {
353
+ var _a;
354
+ parentHost = parentHost || ((_a = slottedNode["s-ol"]) == null ? void 0 : _a.parentElement);
355
+ if (!parentHost) return { slotNode: null, slotName: "" };
356
+ const slotName = slottedNode["s-sn"] = getSlotName(slottedNode) || "";
357
+ const childNodes = internalCall(parentHost, "childNodes");
358
+ const slotNode = getHostSlotNodes(childNodes, parentHost.tagName, slotName)[0];
359
+ return { slotNode, slotName };
360
+ }
361
+ function internalCall(node, method) {
362
+ if ("__" + method in node) {
363
+ const toReturn = node["__" + method];
364
+ if (typeof toReturn !== "function") return toReturn;
365
+ return toReturn.bind(node);
366
+ } else {
367
+ if (typeof node[method] !== "function") return node[method];
368
+ return node[method].bind(node);
369
+ }
370
+ }
371
+ var createTime = (fnName, tagName = "") => {
372
+ {
373
+ return () => {
374
+ return;
375
+ };
376
+ }
377
+ };
378
+ var uniqueTime = (key, measureText) => {
379
+ {
380
+ return () => {
381
+ return;
382
+ };
383
+ }
384
+ };
385
+
386
+ // src/utils/query-nonce-meta-tag-content.ts
387
+ function queryNonceMetaTagContent(doc) {
388
+ var _a, _b, _c;
389
+ 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;
390
+ }
391
+
392
+ // src/runtime/styles.ts
393
+ var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
394
+ var registerStyle = (scopeId2, cssText, allowCS) => {
395
+ let style = styles.get(scopeId2);
396
+ if (supportsConstructableStylesheets && allowCS) {
397
+ style = style || new CSSStyleSheet();
398
+ if (typeof style === "string") {
399
+ style = cssText;
400
+ } else {
401
+ style.replaceSync(cssText);
402
+ }
403
+ } else {
404
+ style = cssText;
405
+ }
406
+ styles.set(scopeId2, style);
407
+ };
408
+ var addStyle = (styleContainerNode, cmpMeta, mode) => {
409
+ var _a, _b, _c;
410
+ const scopeId2 = getScopeId(cmpMeta);
411
+ const style = styles.get(scopeId2);
412
+ if (!win.document) {
413
+ return scopeId2;
414
+ }
415
+ styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
416
+ if (style) {
417
+ if (typeof style === "string") {
418
+ styleContainerNode = styleContainerNode.head || styleContainerNode;
419
+ let appliedStyles = rootAppliedStyles.get(styleContainerNode);
420
+ let styleElm;
421
+ if (!appliedStyles) {
422
+ rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
423
+ }
424
+ if (!appliedStyles.has(scopeId2)) {
425
+ styleElm = win.document.createElement("style");
426
+ styleElm.textContent = style;
427
+ const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
428
+ if (nonce != null) {
429
+ styleElm.setAttribute("nonce", nonce);
430
+ }
431
+ if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
432
+ if (styleContainerNode.nodeName === "HEAD") {
433
+ const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
434
+ const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
435
+ styleContainerNode.insertBefore(
436
+ styleElm,
437
+ (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
438
+ );
439
+ } else if ("host" in styleContainerNode) {
440
+ if (supportsConstructableStylesheets) {
441
+ const currentWindow = (_b = styleContainerNode.defaultView) != null ? _b : styleContainerNode.ownerDocument.defaultView;
442
+ const stylesheet = new currentWindow.CSSStyleSheet();
443
+ stylesheet.replaceSync(style);
444
+ if (supportsMutableAdoptedStyleSheets) {
445
+ styleContainerNode.adoptedStyleSheets.unshift(stylesheet);
446
+ } else {
447
+ styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
448
+ }
449
+ } else {
450
+ const existingStyleContainer = styleContainerNode.querySelector("style");
451
+ if (existingStyleContainer && true) {
452
+ existingStyleContainer.textContent = style + existingStyleContainer.textContent;
453
+ } else {
454
+ styleContainerNode.prepend(styleElm);
455
+ }
456
+ }
457
+ } else {
458
+ styleContainerNode.append(styleElm);
459
+ }
460
+ }
461
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
462
+ styleContainerNode.insertBefore(styleElm, null);
463
+ }
464
+ if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
465
+ styleElm.textContent += SLOT_FB_CSS;
466
+ }
467
+ if (appliedStyles) {
468
+ appliedStyles.add(scopeId2);
469
+ }
470
+ }
471
+ } else {
472
+ let appliedStyles = rootAppliedStyles.get(styleContainerNode);
473
+ if (!appliedStyles) {
474
+ rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
475
+ }
476
+ if (!appliedStyles.has(scopeId2)) {
477
+ const currentWindow = (_c = styleContainerNode.defaultView) != null ? _c : styleContainerNode.ownerDocument.defaultView;
478
+ let stylesheet;
479
+ if (style.constructor === currentWindow.CSSStyleSheet) {
480
+ stylesheet = style;
481
+ } else {
482
+ stylesheet = new currentWindow.CSSStyleSheet();
483
+ for (let i2 = 0; i2 < style.cssRules.length; i2++) {
484
+ stylesheet.insertRule(style.cssRules[i2].cssText, i2);
485
+ }
486
+ }
487
+ if (supportsMutableAdoptedStyleSheets) {
488
+ styleContainerNode.adoptedStyleSheets.push(stylesheet);
489
+ } else {
490
+ styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, stylesheet];
491
+ }
492
+ appliedStyles.add(scopeId2);
493
+ }
494
+ }
495
+ }
496
+ return scopeId2;
497
+ };
498
+ var attachStyles = (hostRef) => {
499
+ const cmpMeta = hostRef.$cmpMeta$;
500
+ const elm = hostRef.$hostElement$;
501
+ const flags = cmpMeta.$flags$;
502
+ const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
503
+ const scopeId2 = addStyle(
504
+ elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
505
+ cmpMeta);
506
+ if (flags & 10 /* needsScopedEncapsulation */) {
507
+ elm["s-sc"] = scopeId2;
508
+ elm.classList.add(scopeId2 + "-h");
509
+ }
510
+ endAttachStyles();
511
+ };
512
+ var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
513
+
514
+ // src/utils/helpers.ts
515
+ var isDef = (v) => v != null && v !== void 0;
516
+ var isComplexType = (o) => {
517
+ o = typeof o;
518
+ return o === "object" || o === "function";
519
+ };
520
+
521
+ // src/runtime/vdom/h.ts
522
+ var h = (nodeName, vnodeData, ...children) => {
523
+ if (typeof nodeName === "string") {
524
+ nodeName = transformTag(nodeName);
525
+ }
526
+ let child = null;
527
+ let key = null;
528
+ let slotName = null;
529
+ let simple = false;
530
+ let lastSimple = false;
531
+ const vNodeChildren = [];
532
+ const walk = (c) => {
533
+ for (let i2 = 0; i2 < c.length; i2++) {
534
+ child = c[i2];
535
+ if (Array.isArray(child)) {
536
+ walk(child);
537
+ } else if (child != null && typeof child !== "boolean") {
538
+ if (simple = typeof nodeName !== "function" && !isComplexType(child)) {
539
+ child = String(child);
540
+ } else if (typeof nodeName !== "function" && child.$flags$ === void 0) {
541
+ {
542
+ consoleError("Invalid vNode child");
543
+ }
544
+ continue;
545
+ }
546
+ if (simple && lastSimple) {
547
+ vNodeChildren[vNodeChildren.length - 1].$text$ += child;
548
+ } else {
549
+ vNodeChildren.push(simple ? newVNode(null, child) : child);
550
+ }
551
+ lastSimple = simple;
552
+ }
553
+ }
554
+ };
555
+ walk(children);
556
+ if (vnodeData) {
557
+ if (vnodeData.key) {
558
+ key = vnodeData.key;
559
+ }
560
+ if (vnodeData.name) {
561
+ slotName = vnodeData.name;
562
+ }
563
+ {
564
+ const classData = vnodeData.className || vnodeData.class;
565
+ if (classData) {
566
+ vnodeData.class = typeof classData !== "object" ? classData : Object.keys(classData).filter((k) => classData[k]).join(" ");
567
+ }
568
+ }
569
+ }
570
+ if (typeof nodeName === "function") {
571
+ return nodeName(
572
+ vnodeData === null ? {} : vnodeData,
573
+ vNodeChildren,
574
+ vdomFnUtils
575
+ );
576
+ }
577
+ const vnode = newVNode(nodeName, null);
578
+ vnode.$attrs$ = vnodeData;
579
+ if (vNodeChildren.length > 0) {
580
+ vnode.$children$ = vNodeChildren;
581
+ }
582
+ {
583
+ vnode.$key$ = key;
584
+ }
585
+ {
586
+ vnode.$name$ = slotName;
587
+ }
588
+ return vnode;
589
+ };
590
+ var newVNode = (tag, text) => {
591
+ const vnode = {
592
+ $flags$: 0,
593
+ $tag$: tag,
594
+ // Normalize undefined to null to prevent rendering "undefined" as text
595
+ $text$: text != null ? text : null,
596
+ $elm$: null,
597
+ $children$: null
598
+ };
599
+ {
600
+ vnode.$attrs$ = null;
601
+ }
602
+ {
603
+ vnode.$key$ = null;
604
+ }
605
+ {
606
+ vnode.$name$ = null;
607
+ }
608
+ return vnode;
609
+ };
610
+ var Host = {};
611
+ var isHost = (node) => node && node.$tag$ === Host;
612
+ var vdomFnUtils = {
613
+ forEach: (children, cb) => children.map(convertToPublic).forEach(cb),
614
+ map: (children, cb) => children.map(convertToPublic).map(cb).map(convertToPrivate)
615
+ };
616
+ var convertToPublic = (node) => ({
617
+ vattrs: node.$attrs$,
618
+ vchildren: node.$children$,
619
+ vkey: node.$key$,
620
+ vname: node.$name$,
621
+ vtag: node.$tag$,
622
+ vtext: node.$text$
623
+ });
624
+ var convertToPrivate = (node) => {
625
+ if (typeof node.vtag === "function") {
626
+ const vnodeData = { ...node.vattrs };
627
+ if (node.vkey) {
628
+ vnodeData.key = node.vkey;
629
+ }
630
+ if (node.vname) {
631
+ vnodeData.name = node.vname;
632
+ }
633
+ return h(node.vtag, vnodeData, ...node.vchildren || []);
634
+ }
635
+ const vnode = newVNode(node.vtag, node.vtext);
636
+ vnode.$attrs$ = node.vattrs;
637
+ vnode.$children$ = node.vchildren;
638
+ vnode.$key$ = node.vkey;
639
+ vnode.$name$ = node.vname;
640
+ return vnode;
641
+ };
642
+
643
+ // src/runtime/normalize-watchers.ts
644
+ var normalizeWatchers = (raw) => {
645
+ if (!raw) return void 0;
646
+ const keys = Object.keys(raw);
647
+ if (keys.length === 0) return void 0;
648
+ let hasLegacy = false;
649
+ for (const propName of keys) {
650
+ if (hasLegacy) break;
651
+ for (const h2 of raw[propName]) {
652
+ if (typeof h2 === "string") {
653
+ hasLegacy = true;
654
+ break;
655
+ }
656
+ }
657
+ }
658
+ if (!hasLegacy) return raw;
659
+ const out = {};
660
+ for (const propName of keys) {
661
+ out[propName] = raw[propName].map(
662
+ (h2) => typeof h2 === "string" ? { [h2]: 0 } : h2
663
+ );
664
+ }
665
+ return out;
666
+ };
667
+
668
+ // src/runtime/parse-property-value.ts
669
+ var parsePropertyValue = (propValue, propType, isFormAssociated) => {
670
+ if (propValue != null && !isComplexType(propValue)) {
671
+ if (propType & 4 /* Boolean */) {
672
+ if (isFormAssociated && typeof propValue === "string") {
673
+ return propValue === "" || !!propValue;
674
+ } else {
675
+ return propValue === "false" ? false : propValue === "" || !!propValue;
676
+ }
677
+ }
678
+ if (propType & 2 /* Number */) {
679
+ return typeof propValue === "string" ? parseFloat(propValue) : typeof propValue === "number" ? propValue : NaN;
680
+ }
681
+ if (propType & 1 /* String */) {
682
+ return String(propValue);
683
+ }
684
+ return propValue;
685
+ }
686
+ return propValue;
687
+ };
688
+ var getElement = (ref) => {
689
+ var _a;
690
+ return (_a = getHostRef(ref)) == null ? void 0 : _a.$hostElement$ ;
691
+ };
692
+
693
+ // src/runtime/event-emitter.ts
694
+ var createEvent = (ref, name, flags) => {
695
+ const elm = getElement(ref);
696
+ return {
697
+ emit: (detail) => {
698
+ return emitEvent(elm, name, {
699
+ bubbles: !!(flags & 4 /* Bubbles */),
700
+ composed: !!(flags & 2 /* Composed */),
701
+ cancelable: !!(flags & 1 /* Cancellable */),
702
+ detail
703
+ });
704
+ }
705
+ };
706
+ };
707
+ var emitEvent = (elm, name, opts) => {
708
+ const ev = plt.ce(name, opts);
709
+ elm.dispatchEvent(ev);
710
+ return ev;
711
+ };
712
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
713
+ if (oldValue === newValue) {
714
+ return;
715
+ }
716
+ let isProp = isMemberInElement(elm, memberName);
717
+ let ln = memberName.toLowerCase();
718
+ if (memberName === "class") {
719
+ const classList = elm.classList;
720
+ const oldClasses = parseClassList(oldValue);
721
+ let newClasses = parseClassList(newValue);
722
+ {
723
+ let removedClasses = oldClasses.filter((c) => c && !newClasses.includes(c));
724
+ classList.remove(...removedClasses);
725
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
726
+ }
727
+ } else if (memberName === "style") {
728
+ {
729
+ for (const prop in oldValue) {
730
+ if (!newValue || newValue[prop] == null) {
731
+ if (prop.includes("-")) {
732
+ elm.style.removeProperty(prop);
733
+ } else {
734
+ elm.style[prop] = "";
735
+ }
736
+ }
737
+ }
738
+ }
739
+ for (const prop in newValue) {
740
+ if (!oldValue || newValue[prop] !== oldValue[prop]) {
741
+ if (prop.includes("-")) {
742
+ elm.style.setProperty(prop, newValue[prop]);
743
+ } else {
744
+ elm.style[prop] = newValue[prop];
745
+ }
746
+ }
747
+ }
748
+ } else if (memberName === "key") ; else if (memberName === "ref") {
749
+ if (newValue) {
750
+ queueRefAttachment(newValue, elm);
751
+ }
752
+ } else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
753
+ if (memberName[2] === "-") {
754
+ memberName = memberName.slice(3);
755
+ } else if (isMemberInElement(win, ln)) {
756
+ memberName = ln.slice(2);
757
+ } else {
758
+ memberName = ln[2] + memberName.slice(3);
759
+ }
760
+ if (oldValue || newValue) {
761
+ const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
762
+ memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
763
+ if (oldValue) {
764
+ plt.rel(elm, memberName, oldValue, capture);
765
+ }
766
+ if (newValue) {
767
+ plt.ael(elm, memberName, newValue, capture);
768
+ }
769
+ }
770
+ } else if (memberName[0] === "a" && memberName.startsWith("attr:")) {
771
+ const propName = memberName.slice(5);
772
+ let attrName;
773
+ {
774
+ const hostRef = getHostRef(elm);
775
+ if (hostRef && hostRef.$cmpMeta$ && hostRef.$cmpMeta$.$members$) {
776
+ const memberMeta = hostRef.$cmpMeta$.$members$[propName];
777
+ if (memberMeta && memberMeta[1]) {
778
+ attrName = memberMeta[1];
779
+ }
780
+ }
781
+ }
782
+ if (!attrName) {
783
+ attrName = propName.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
784
+ }
785
+ if (newValue == null || newValue === false) {
786
+ if (newValue !== false || elm.getAttribute(attrName) === "") {
787
+ elm.removeAttribute(attrName);
788
+ }
789
+ } else {
790
+ elm.setAttribute(attrName, newValue === true ? "" : newValue);
791
+ }
792
+ return;
793
+ } else if (memberName[0] === "p" && memberName.startsWith("prop:")) {
794
+ const propName = memberName.slice(5);
795
+ try {
796
+ elm[propName] = newValue;
797
+ } catch (e) {
798
+ }
799
+ return;
800
+ } else {
801
+ const isComplex = isComplexType(newValue);
802
+ if ((isProp || isComplex && newValue !== null) && !isSvg) {
803
+ try {
804
+ if (!elm.tagName.includes("-")) {
805
+ const n = newValue == null ? "" : newValue;
806
+ if (memberName === "list") {
807
+ isProp = false;
808
+ } else if (oldValue == null || elm[memberName] !== n) {
809
+ if (typeof elm.__lookupSetter__(memberName) === "function") {
810
+ elm[memberName] = n;
811
+ } else {
812
+ elm.setAttribute(memberName, n);
813
+ }
814
+ }
815
+ } else if (elm[memberName] !== newValue) {
816
+ elm[memberName] = newValue;
817
+ }
818
+ } catch (e) {
819
+ }
820
+ }
821
+ let xlink = false;
822
+ {
823
+ if (ln !== (ln = ln.replace(/^xlink\:?/, ""))) {
824
+ memberName = ln;
825
+ xlink = true;
826
+ }
827
+ }
828
+ if (newValue == null || newValue === false) {
829
+ if (newValue !== false || elm.getAttribute(memberName) === "" || flags & 4 /* isHost */ && !isEnumeratedAttribute(memberName)) {
830
+ if (xlink) {
831
+ elm.removeAttributeNS(XLINK_NS, memberName);
832
+ } else {
833
+ elm.removeAttribute(memberName);
834
+ }
835
+ }
836
+ } else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex && elm.nodeType === 1 /* ElementNode */) {
837
+ newValue = newValue === true ? "" : newValue;
838
+ if (xlink) {
839
+ elm.setAttributeNS(XLINK_NS, memberName, newValue);
840
+ } else {
841
+ elm.setAttribute(memberName, newValue);
842
+ }
843
+ }
844
+ }
845
+ };
846
+ var ENUMERATED_ATTRIBUTES = /* @__PURE__ */ new Set(["draggable", "contenteditable", "spellcheck"]);
847
+ var isEnumeratedAttribute = (attrName) => ENUMERATED_ATTRIBUTES.has(attrName) || attrName.startsWith("aria-");
848
+ var parseClassListRegex = /\s/;
849
+ var parseClassList = (value) => {
850
+ if (typeof value === "object" && value && "baseVal" in value) {
851
+ value = value.baseVal;
852
+ }
853
+ if (!value || typeof value !== "string") {
854
+ return [];
855
+ }
856
+ return value.split(parseClassListRegex);
857
+ };
858
+ var CAPTURE_EVENT_SUFFIX = "Capture";
859
+ var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
860
+
861
+ // src/runtime/vdom/update-element.ts
862
+ var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
863
+ const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
864
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
865
+ const newVnodeAttrs = newVnode.$attrs$ || {};
866
+ {
867
+ for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
868
+ if (!(memberName in newVnodeAttrs)) {
869
+ setAccessor(
870
+ elm,
871
+ memberName,
872
+ oldVnodeAttrs[memberName],
873
+ void 0,
874
+ isSvgMode2,
875
+ newVnode.$flags$);
876
+ }
877
+ }
878
+ }
879
+ for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
880
+ setAccessor(
881
+ elm,
882
+ memberName,
883
+ oldVnodeAttrs[memberName],
884
+ newVnodeAttrs[memberName],
885
+ isSvgMode2,
886
+ newVnode.$flags$);
887
+ }
888
+ };
889
+ function sortedAttrNames(attrNames) {
890
+ return attrNames.includes("ref") ? (
891
+ // we need to sort these to ensure that `'ref'` is the last attr
892
+ [...attrNames.filter((attr) => attr !== "ref"), "ref"]
893
+ ) : (
894
+ // no need to sort, return the original array
895
+ attrNames
896
+ );
897
+ }
898
+
899
+ // src/runtime/vdom/vdom-render.ts
900
+ var scopeId;
901
+ var contentRef;
902
+ var hostTagName;
903
+ var useNativeShadowDom = false;
904
+ var checkSlotFallbackVisibility = false;
905
+ var checkSlotRelocate = false;
906
+ var isSvgMode = false;
907
+ var refCallbacksToRemove = [];
908
+ var refCallbacksToAttach = [];
909
+ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
910
+ var _a;
911
+ const newVNode2 = newParentVNode.$children$[childIndex];
912
+ let i2 = 0;
913
+ let elm;
914
+ let childNode;
915
+ let oldVNode;
916
+ if (!useNativeShadowDom) {
917
+ checkSlotRelocate = true;
918
+ if (newVNode2.$tag$ === "slot") {
919
+ newVNode2.$flags$ |= newVNode2.$children$ ? (
920
+ // slot element has fallback content
921
+ // still create an element that "mocks" the slot element
922
+ 2 /* isSlotFallback */
923
+ ) : (
924
+ // slot element does not have fallback content
925
+ // create an html comment we'll use to always reference
926
+ // where actual slot content should sit next to
927
+ 1 /* isSlotReference */
928
+ );
929
+ }
930
+ }
931
+ if (newVNode2.$text$ != null) {
932
+ elm = newVNode2.$elm$ = win.document.createTextNode(newVNode2.$text$);
933
+ } else if (newVNode2.$flags$ & 1 /* isSlotReference */) {
934
+ elm = newVNode2.$elm$ = win.document.createTextNode("");
935
+ {
936
+ updateElement(null, newVNode2, isSvgMode);
937
+ }
938
+ } else {
939
+ if (!isSvgMode) {
940
+ isSvgMode = newVNode2.$tag$ === "svg";
941
+ }
942
+ if (!win.document) {
943
+ throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");
944
+ }
945
+ elm = newVNode2.$elm$ = win.document.createElementNS(
946
+ isSvgMode ? SVG_NS : HTML_NS,
947
+ !useNativeShadowDom && BUILD.slotRelocation && newVNode2.$flags$ & 2 /* isSlotFallback */ ? "slot-fb" : newVNode2.$tag$
948
+ ) ;
949
+ if (isSvgMode && newVNode2.$tag$ === "foreignObject") {
950
+ isSvgMode = false;
951
+ }
952
+ {
953
+ updateElement(null, newVNode2, isSvgMode);
954
+ }
955
+ if (isDef(scopeId) && elm["s-si"] !== scopeId) {
956
+ elm.classList.add(elm["s-si"] = scopeId);
957
+ }
958
+ if (newVNode2.$children$) {
959
+ const appendTarget = newVNode2.$tag$ === "template" ? elm.content : elm;
960
+ for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
961
+ childNode = createElm(oldParentVNode, newVNode2, i2);
962
+ if (childNode) {
963
+ appendTarget.appendChild(childNode);
964
+ }
965
+ }
966
+ }
967
+ {
968
+ if (newVNode2.$tag$ === "svg") {
969
+ isSvgMode = false;
970
+ } else if (elm.tagName === "foreignObject") {
971
+ isSvgMode = true;
972
+ }
973
+ }
974
+ }
975
+ elm["s-hn"] = hostTagName;
976
+ {
977
+ if (newVNode2.$flags$ & (2 /* isSlotFallback */ | 1 /* isSlotReference */)) {
978
+ elm["s-sr"] = true;
979
+ elm["s-cr"] = contentRef;
980
+ elm["s-sn"] = newVNode2.$name$ || "";
981
+ elm["s-rf"] = (_a = newVNode2.$attrs$) == null ? void 0 : _a.ref;
982
+ patchSlotNode(elm);
983
+ oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];
984
+ if (oldVNode && oldVNode.$tag$ === newVNode2.$tag$ && oldParentVNode.$elm$) {
985
+ relocateToHostRoot(oldParentVNode.$elm$);
986
+ }
987
+ {
988
+ addRemoveSlotScopedClass(contentRef, elm, newParentVNode.$elm$, oldParentVNode == null ? void 0 : oldParentVNode.$elm$);
989
+ }
990
+ }
991
+ }
992
+ return elm;
993
+ };
994
+ var relocateToHostRoot = (parentElm) => {
995
+ plt.$flags$ |= 1 /* isTmpDisconnected */;
996
+ const host = parentElm.closest(hostTagName.toLowerCase());
997
+ if (host != null) {
998
+ const contentRefNode = Array.from(host.__childNodes || host.childNodes).find(
999
+ (ref) => ref["s-cr"]
1000
+ );
1001
+ const childNodeArray = Array.from(
1002
+ parentElm.__childNodes || parentElm.childNodes
1003
+ );
1004
+ for (const childNode of contentRefNode ? childNodeArray.reverse() : childNodeArray) {
1005
+ if (childNode["s-sh"] != null) {
1006
+ insertBefore(host, childNode, contentRefNode != null ? contentRefNode : null);
1007
+ childNode["s-sh"] = void 0;
1008
+ checkSlotRelocate = true;
1009
+ }
1010
+ }
1011
+ }
1012
+ plt.$flags$ &= -2 /* isTmpDisconnected */;
1013
+ };
1014
+ var putBackInOriginalLocation = (parentElm, recursive) => {
1015
+ plt.$flags$ |= 1 /* isTmpDisconnected */;
1016
+ const oldSlotChildNodes = Array.from(parentElm.__childNodes || parentElm.childNodes);
1017
+ if (parentElm["s-sr"]) {
1018
+ let node = parentElm;
1019
+ while (node = node.nextSibling) {
1020
+ if (node && node["s-sn"] === parentElm["s-sn"] && node["s-sh"] === hostTagName) {
1021
+ oldSlotChildNodes.push(node);
1022
+ }
1023
+ }
1024
+ }
1025
+ for (let i2 = oldSlotChildNodes.length - 1; i2 >= 0; i2--) {
1026
+ const childNode = oldSlotChildNodes[i2];
1027
+ if (childNode["s-hn"] !== hostTagName && childNode["s-ol"]) {
1028
+ insertBefore(referenceNode(childNode).parentNode, childNode, referenceNode(childNode));
1029
+ childNode["s-ol"].remove();
1030
+ childNode["s-ol"] = void 0;
1031
+ childNode["s-sh"] = void 0;
1032
+ checkSlotRelocate = true;
1033
+ }
1034
+ if (recursive) {
1035
+ putBackInOriginalLocation(childNode, recursive);
1036
+ }
1037
+ }
1038
+ plt.$flags$ &= -2 /* isTmpDisconnected */;
1039
+ };
1040
+ var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
1041
+ let containerElm = parentElm["s-cr"] && parentElm["s-cr"].parentNode || parentElm;
1042
+ let childNode;
1043
+ if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
1044
+ containerElm = containerElm.shadowRoot;
1045
+ }
1046
+ if (parentVNode.$tag$ === "template") {
1047
+ containerElm = containerElm.content;
1048
+ }
1049
+ for (; startIdx <= endIdx; ++startIdx) {
1050
+ if (vnodes[startIdx]) {
1051
+ childNode = createElm(null, parentVNode, startIdx);
1052
+ if (childNode) {
1053
+ vnodes[startIdx].$elm$ = childNode;
1054
+ insertBefore(containerElm, childNode, referenceNode(before) );
1055
+ }
1056
+ }
1057
+ }
1058
+ };
1059
+ var removeVnodes = (vnodes, startIdx, endIdx) => {
1060
+ for (let index = startIdx; index <= endIdx; ++index) {
1061
+ const vnode = vnodes[index];
1062
+ if (vnode) {
1063
+ const elm = vnode.$elm$;
1064
+ nullifyVNodeRefs(vnode);
1065
+ if (elm) {
1066
+ {
1067
+ checkSlotFallbackVisibility = true;
1068
+ if (elm["s-ol"]) {
1069
+ elm["s-ol"].remove();
1070
+ } else {
1071
+ putBackInOriginalLocation(elm, true);
1072
+ }
1073
+ }
1074
+ elm.remove();
1075
+ }
1076
+ }
1077
+ }
1078
+ };
1079
+ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = false) => {
1080
+ let oldStartIdx = 0;
1081
+ let newStartIdx = 0;
1082
+ let idxInOld = 0;
1083
+ let i2 = 0;
1084
+ let oldEndIdx = oldCh.length - 1;
1085
+ let oldStartVnode = oldCh[0];
1086
+ let oldEndVnode = oldCh[oldEndIdx];
1087
+ let newEndIdx = newCh.length - 1;
1088
+ let newStartVnode = newCh[0];
1089
+ let newEndVnode = newCh[newEndIdx];
1090
+ let node;
1091
+ let elmToMove;
1092
+ const containerElm = newVNode2.$tag$ === "template" ? parentElm.content : parentElm;
1093
+ while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
1094
+ if (oldStartVnode == null) {
1095
+ oldStartVnode = oldCh[++oldStartIdx];
1096
+ } else if (oldEndVnode == null) {
1097
+ oldEndVnode = oldCh[--oldEndIdx];
1098
+ } else if (newStartVnode == null) {
1099
+ newStartVnode = newCh[++newStartIdx];
1100
+ } else if (newEndVnode == null) {
1101
+ newEndVnode = newCh[--newEndIdx];
1102
+ } else if (isSameVnode(oldStartVnode, newStartVnode, isInitialRender)) {
1103
+ patch(oldStartVnode, newStartVnode, isInitialRender);
1104
+ oldStartVnode = oldCh[++oldStartIdx];
1105
+ newStartVnode = newCh[++newStartIdx];
1106
+ } else if (isSameVnode(oldEndVnode, newEndVnode, isInitialRender)) {
1107
+ patch(oldEndVnode, newEndVnode, isInitialRender);
1108
+ oldEndVnode = oldCh[--oldEndIdx];
1109
+ newEndVnode = newCh[--newEndIdx];
1110
+ } else if (isSameVnode(oldStartVnode, newEndVnode, isInitialRender)) {
1111
+ if ((oldStartVnode.$tag$ === "slot" || newEndVnode.$tag$ === "slot")) {
1112
+ putBackInOriginalLocation(oldStartVnode.$elm$.parentNode, false);
1113
+ }
1114
+ patch(oldStartVnode, newEndVnode, isInitialRender);
1115
+ insertBefore(containerElm, oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
1116
+ oldStartVnode = oldCh[++oldStartIdx];
1117
+ newEndVnode = newCh[--newEndIdx];
1118
+ } else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
1119
+ if ((oldStartVnode.$tag$ === "slot" || newEndVnode.$tag$ === "slot")) {
1120
+ putBackInOriginalLocation(oldEndVnode.$elm$.parentNode, false);
1121
+ }
1122
+ patch(oldEndVnode, newStartVnode, isInitialRender);
1123
+ insertBefore(containerElm, oldEndVnode.$elm$, oldStartVnode.$elm$);
1124
+ oldEndVnode = oldCh[--oldEndIdx];
1125
+ newStartVnode = newCh[++newStartIdx];
1126
+ } else {
1127
+ idxInOld = -1;
1128
+ {
1129
+ for (i2 = oldStartIdx; i2 <= oldEndIdx; ++i2) {
1130
+ if (oldCh[i2] && oldCh[i2].$key$ !== null && oldCh[i2].$key$ === newStartVnode.$key$) {
1131
+ idxInOld = i2;
1132
+ break;
1133
+ }
1134
+ }
1135
+ }
1136
+ if (idxInOld >= 0) {
1137
+ elmToMove = oldCh[idxInOld];
1138
+ if (elmToMove.$tag$ !== newStartVnode.$tag$) {
1139
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx);
1140
+ } else {
1141
+ patch(elmToMove, newStartVnode, isInitialRender);
1142
+ oldCh[idxInOld] = void 0;
1143
+ node = elmToMove.$elm$;
1144
+ }
1145
+ newStartVnode = newCh[++newStartIdx];
1146
+ } else {
1147
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx);
1148
+ newStartVnode = newCh[++newStartIdx];
1149
+ }
1150
+ if (node) {
1151
+ {
1152
+ insertBefore(
1153
+ referenceNode(oldStartVnode.$elm$).parentNode,
1154
+ node,
1155
+ referenceNode(oldStartVnode.$elm$)
1156
+ );
1157
+ }
1158
+ }
1159
+ }
1160
+ }
1161
+ if (oldStartIdx > oldEndIdx) {
1162
+ addVnodes(
1163
+ parentElm,
1164
+ newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$,
1165
+ newVNode2,
1166
+ newCh,
1167
+ newStartIdx,
1168
+ newEndIdx
1169
+ );
1170
+ } else if (newStartIdx > newEndIdx) {
1171
+ removeVnodes(oldCh, oldStartIdx, oldEndIdx);
1172
+ }
1173
+ };
1174
+ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
1175
+ if (leftVNode.$tag$ === rightVNode.$tag$) {
1176
+ if (leftVNode.$tag$ === "slot") {
1177
+ return leftVNode.$name$ === rightVNode.$name$;
1178
+ }
1179
+ if (!isInitialRender) {
1180
+ return leftVNode.$key$ === rightVNode.$key$;
1181
+ }
1182
+ if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
1183
+ leftVNode.$key$ = rightVNode.$key$;
1184
+ }
1185
+ return true;
1186
+ }
1187
+ return false;
1188
+ };
1189
+ var referenceNode = (node) => node && node["s-ol"] || node;
1190
+ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
1191
+ const elm = newVNode2.$elm$ = oldVNode.$elm$;
1192
+ const oldChildren = oldVNode.$children$;
1193
+ const newChildren = newVNode2.$children$;
1194
+ const tag = newVNode2.$tag$;
1195
+ const text = newVNode2.$text$;
1196
+ let defaultHolder;
1197
+ if (text == null) {
1198
+ {
1199
+ isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
1200
+ }
1201
+ {
1202
+ if (tag === "slot" && !useNativeShadowDom) {
1203
+ if (oldVNode.$name$ !== newVNode2.$name$) {
1204
+ newVNode2.$elm$["s-sn"] = newVNode2.$name$ || "";
1205
+ relocateToHostRoot(newVNode2.$elm$.parentElement);
1206
+ }
1207
+ }
1208
+ updateElement(oldVNode, newVNode2, isSvgMode);
1209
+ }
1210
+ if (oldChildren !== null && newChildren !== null) {
1211
+ updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
1212
+ } else if (newChildren !== null) {
1213
+ if (oldVNode.$text$ !== null) {
1214
+ elm.textContent = "";
1215
+ }
1216
+ addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
1217
+ } else if (
1218
+ // don't do this on initial render as it can cause non-hydrated content to be removed
1219
+ !isInitialRender && BUILD.updatable && oldChildren !== null
1220
+ ) {
1221
+ removeVnodes(oldChildren, 0, oldChildren.length - 1);
1222
+ } else ;
1223
+ if (isSvgMode && tag === "svg") {
1224
+ isSvgMode = false;
1225
+ }
1226
+ } else if ((defaultHolder = elm["s-cr"])) {
1227
+ defaultHolder.parentNode.textContent = text;
1228
+ } else if (oldVNode.$text$ !== text) {
1229
+ elm.data = text;
1230
+ }
1231
+ };
1232
+ var relocateNodes = [];
1233
+ var markSlotContentForRelocation = (elm) => {
1234
+ let node;
1235
+ let hostContentNodes;
1236
+ let j;
1237
+ const children = elm.__childNodes || elm.childNodes;
1238
+ for (const childNode of children) {
1239
+ if (childNode["s-sr"] && (node = childNode["s-cr"]) && node.parentNode) {
1240
+ hostContentNodes = node.parentNode.__childNodes || node.parentNode.childNodes;
1241
+ const slotName = childNode["s-sn"];
1242
+ for (j = hostContentNodes.length - 1; j >= 0; j--) {
1243
+ node = hostContentNodes[j];
1244
+ if (!node["s-cn"] && !node["s-nr"] && node["s-hn"] !== childNode["s-hn"] && // let an exact named-slot match override a stale default-slot claim. Skip this for
1245
+ // `slotName === ''` itself - a matched default node's cached `s-sn` is `''` too, which
1246
+ // would trivially "match" on every re-render and force pointless re-insertion.
1247
+ (!node["s-sh"] || node["s-sh"] !== childNode["s-hn"] || slotName !== "" && getSlotName(node) === slotName)) {
1248
+ if (isNodeLocatedInSlot(node, slotName)) {
1249
+ let relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
1250
+ checkSlotFallbackVisibility = true;
1251
+ node["s-sn"] = node["s-sn"] || slotName;
1252
+ if (relocateNodeData) {
1253
+ relocateNodeData.$nodeToRelocate$["s-sh"] = childNode["s-hn"];
1254
+ relocateNodeData.$slotRefNode$ = childNode;
1255
+ } else {
1256
+ node["s-sh"] = childNode["s-hn"];
1257
+ relocateNodes.push({
1258
+ $slotRefNode$: childNode,
1259
+ $nodeToRelocate$: node
1260
+ });
1261
+ }
1262
+ if (node["s-sr"]) {
1263
+ relocateNodes.map((relocateNode) => {
1264
+ if (isNodeLocatedInSlot(relocateNode.$nodeToRelocate$, node["s-sn"])) {
1265
+ relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
1266
+ if (relocateNodeData && !relocateNode.$slotRefNode$) {
1267
+ relocateNode.$slotRefNode$ = relocateNodeData.$slotRefNode$;
1268
+ }
1269
+ }
1270
+ });
1271
+ }
1272
+ } else if (!relocateNodes.some((r) => r.$nodeToRelocate$ === node)) {
1273
+ relocateNodes.push({
1274
+ $nodeToRelocate$: node
1275
+ });
1276
+ }
1277
+ }
1278
+ }
1279
+ }
1280
+ if (childNode.nodeType === 1 /* ElementNode */) {
1281
+ markSlotContentForRelocation(childNode);
1282
+ }
1283
+ }
1284
+ };
1285
+ var nullifyVNodeRefs = (vNode) => {
1286
+ {
1287
+ if (vNode.$attrs$ && vNode.$attrs$.ref) {
1288
+ refCallbacksToRemove.push(() => vNode.$attrs$.ref(null));
1289
+ }
1290
+ vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);
1291
+ }
1292
+ };
1293
+ var queueRefAttachment = (refCallback, elm) => {
1294
+ {
1295
+ refCallbacksToAttach.push(() => refCallback(elm));
1296
+ }
1297
+ };
1298
+ var flushQueuedRefCallbacks = () => {
1299
+ {
1300
+ refCallbacksToRemove.forEach((cb) => cb());
1301
+ refCallbacksToRemove.length = 0;
1302
+ refCallbacksToAttach.forEach((cb) => cb());
1303
+ refCallbacksToAttach.length = 0;
1304
+ }
1305
+ };
1306
+ var insertBefore = (parent, newNode, reference, isInitialLoad) => {
1307
+ {
1308
+ if (typeof newNode["s-sn"] === "string" && !!newNode["s-sr"] && !!newNode["s-cr"]) {
1309
+ addRemoveSlotScopedClass(newNode["s-cr"], newNode, parent, newNode.parentElement);
1310
+ } else if (typeof newNode["s-sn"] === "string") {
1311
+ parent.insertBefore(newNode, reference);
1312
+ const { slotNode } = findSlotFromSlottedNode(newNode);
1313
+ if (slotNode && !isInitialLoad) dispatchSlotChangeEvent(slotNode);
1314
+ return newNode;
1315
+ }
1316
+ }
1317
+ if ((parent == null ? void 0 : parent.__insertBefore)) {
1318
+ return parent.__insertBefore(newNode, reference);
1319
+ } else {
1320
+ return parent == null ? void 0 : parent.insertBefore(newNode, reference);
1321
+ }
1322
+ };
1323
+ function addRemoveSlotScopedClass(reference, slotNode, newParent, oldParent) {
1324
+ var _a, _b;
1325
+ let scopeId2;
1326
+ if (reference && typeof slotNode["s-sn"] === "string" && !!slotNode["s-sr"] && reference.parentNode && reference.parentNode["s-sc"] && (scopeId2 = slotNode["s-si"] || reference.parentNode["s-sc"])) {
1327
+ const scopeName = slotNode["s-sn"];
1328
+ const hostName = slotNode["s-hn"];
1329
+ (_a = newParent.classList) == null ? void 0 : _a.add(scopeId2 + "-s");
1330
+ if (oldParent && ((_b = oldParent.classList) == null ? void 0 : _b.contains(scopeId2 + "-s"))) {
1331
+ let child = (oldParent.__childNodes || oldParent.childNodes)[0];
1332
+ let found = false;
1333
+ while (child) {
1334
+ if (child["s-sn"] !== scopeName && child["s-hn"] === hostName && !!child["s-sr"]) {
1335
+ found = true;
1336
+ break;
1337
+ }
1338
+ child = child.nextSibling;
1339
+ }
1340
+ if (!found) oldParent.classList.remove(scopeId2 + "-s");
1341
+ }
1342
+ }
1343
+ }
1344
+ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
1345
+ var _a, _b, _c, _d, _e;
1346
+ const hostElm = hostRef.$hostElement$;
1347
+ const cmpMeta = hostRef.$cmpMeta$;
1348
+ const oldVNode = hostRef.$vnode$ || newVNode(null, null);
1349
+ const isHostElement = isHost(renderFnResults);
1350
+ const rootVnode = isHostElement ? renderFnResults : h(null, null, renderFnResults);
1351
+ hostTagName = hostElm.tagName;
1352
+ if (cmpMeta.$attrsToReflect$) {
1353
+ rootVnode.$attrs$ = rootVnode.$attrs$ || {};
1354
+ cmpMeta.$attrsToReflect$.forEach(([propName, attribute]) => {
1355
+ {
1356
+ rootVnode.$attrs$[attribute] = hostElm[propName];
1357
+ }
1358
+ });
1359
+ }
1360
+ if (isInitialLoad && rootVnode.$attrs$) {
1361
+ for (const key of Object.keys(rootVnode.$attrs$)) {
1362
+ if (hostElm.hasAttribute(key) && !["key", "ref", "style", "class"].includes(key)) {
1363
+ rootVnode.$attrs$[key] = hostElm[key];
1364
+ }
1365
+ }
1366
+ }
1367
+ rootVnode.$tag$ = null;
1368
+ rootVnode.$flags$ |= 4 /* isHost */;
1369
+ hostRef.$vnode$ = rootVnode;
1370
+ rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
1371
+ {
1372
+ scopeId = hostElm["s-sc"];
1373
+ }
1374
+ useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
1375
+ {
1376
+ contentRef = hostElm["s-cr"];
1377
+ checkSlotFallbackVisibility = false;
1378
+ }
1379
+ patch(oldVNode, rootVnode, isInitialLoad);
1380
+ {
1381
+ plt.$flags$ |= 1 /* isTmpDisconnected */;
1382
+ if (checkSlotRelocate) {
1383
+ markSlotContentForRelocation(rootVnode.$elm$);
1384
+ for (const relocateData of relocateNodes) {
1385
+ const nodeToRelocate = relocateData.$nodeToRelocate$;
1386
+ if (!nodeToRelocate["s-ol"] && win.document) {
1387
+ const orgLocationNode = win.document.createTextNode("");
1388
+ orgLocationNode["s-nr"] = nodeToRelocate;
1389
+ insertBefore(
1390
+ nodeToRelocate.parentNode,
1391
+ nodeToRelocate["s-ol"] = orgLocationNode,
1392
+ nodeToRelocate,
1393
+ isInitialLoad
1394
+ );
1395
+ }
1396
+ }
1397
+ for (const relocateData of relocateNodes) {
1398
+ const nodeToRelocate = relocateData.$nodeToRelocate$;
1399
+ const slotRefNode = relocateData.$slotRefNode$;
1400
+ if (nodeToRelocate.nodeType === 1 /* ElementNode */ && isInitialLoad) {
1401
+ nodeToRelocate["s-ih"] = (_a = nodeToRelocate.hidden) != null ? _a : false;
1402
+ }
1403
+ if (slotRefNode) {
1404
+ const parentNodeRef = slotRefNode.parentNode;
1405
+ let insertBeforeNode = slotRefNode.nextSibling;
1406
+ if (insertBeforeNode && insertBeforeNode.nodeType === 1 /* ElementNode */) {
1407
+ let orgLocationNode = (_b = nodeToRelocate["s-ol"]) == null ? void 0 : _b.previousSibling;
1408
+ while (orgLocationNode) {
1409
+ let refNode = (_c = orgLocationNode["s-nr"]) != null ? _c : null;
1410
+ if (refNode && refNode["s-sn"] === nodeToRelocate["s-sn"] && parentNodeRef === (refNode.__parentNode || refNode.parentNode)) {
1411
+ refNode = refNode.nextSibling;
1412
+ while (refNode === nodeToRelocate || (refNode == null ? void 0 : refNode["s-sr"])) {
1413
+ refNode = refNode == null ? void 0 : refNode.nextSibling;
1414
+ }
1415
+ if (!refNode || !refNode["s-nr"]) {
1416
+ insertBeforeNode = refNode;
1417
+ break;
1418
+ }
1419
+ }
1420
+ orgLocationNode = orgLocationNode.previousSibling;
1421
+ }
1422
+ }
1423
+ const parent = nodeToRelocate.__parentNode || nodeToRelocate.parentNode;
1424
+ const nextSibling = nodeToRelocate.__nextSibling || nodeToRelocate.nextSibling;
1425
+ if (!insertBeforeNode && parentNodeRef !== parent || nextSibling !== insertBeforeNode) {
1426
+ if (nodeToRelocate !== insertBeforeNode) {
1427
+ insertBefore(parentNodeRef, nodeToRelocate, insertBeforeNode, isInitialLoad);
1428
+ if (nodeToRelocate.nodeType === 8 /* CommentNode */ && nodeToRelocate.nodeValue.startsWith("s-nt-")) {
1429
+ const textNode = win.document.createTextNode(nodeToRelocate.nodeValue.replace(/^s-nt-/, ""));
1430
+ textNode["s-hn"] = nodeToRelocate["s-hn"];
1431
+ textNode["s-sn"] = nodeToRelocate["s-sn"];
1432
+ textNode["s-sh"] = nodeToRelocate["s-sh"];
1433
+ textNode["s-sr"] = nodeToRelocate["s-sr"];
1434
+ textNode["s-ol"] = nodeToRelocate["s-ol"];
1435
+ textNode["s-ol"]["s-nr"] = textNode;
1436
+ insertBefore(nodeToRelocate.parentNode, textNode, nodeToRelocate, isInitialLoad);
1437
+ nodeToRelocate.parentNode.removeChild(nodeToRelocate);
1438
+ }
1439
+ if (nodeToRelocate.nodeType === 1 /* ElementNode */ && nodeToRelocate.tagName !== "SLOT-FB") {
1440
+ nodeToRelocate.hidden = (_d = nodeToRelocate["s-ih"]) != null ? _d : false;
1441
+ }
1442
+ }
1443
+ }
1444
+ nodeToRelocate && typeof slotRefNode["s-rf"] === "function" && slotRefNode["s-rf"](slotRefNode);
1445
+ } else if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
1446
+ nodeToRelocate.hidden = true;
1447
+ }
1448
+ }
1449
+ }
1450
+ if (checkSlotFallbackVisibility) {
1451
+ updateFallbackSlotVisibility(rootVnode.$elm$);
1452
+ }
1453
+ plt.$flags$ &= -2 /* isTmpDisconnected */;
1454
+ relocateNodes.length = 0;
1455
+ }
1456
+ if (!useNativeShadowDom && !(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && hostElm["s-cr"]) {
1457
+ const children = rootVnode.$elm$.__childNodes || rootVnode.$elm$.childNodes;
1458
+ for (const childNode of children) {
1459
+ if (childNode["s-hn"] !== hostTagName && !childNode["s-sh"]) {
1460
+ if (isInitialLoad && childNode["s-ih"] == null) {
1461
+ childNode["s-ih"] = (_e = childNode.hidden) != null ? _e : false;
1462
+ }
1463
+ if (childNode.nodeType === 1 /* ElementNode */) {
1464
+ childNode.hidden = true;
1465
+ } else if (childNode.nodeType === 3 /* TextNode */ && !!childNode.nodeValue.trim()) {
1466
+ const textCommentNode = win.document.createComment("s-nt-" + childNode.nodeValue);
1467
+ textCommentNode["s-sn"] = childNode["s-sn"];
1468
+ insertBefore(childNode.parentNode, textCommentNode, childNode, isInitialLoad);
1469
+ childNode.parentNode.removeChild(childNode);
1470
+ }
1471
+ }
1472
+ }
1473
+ }
1474
+ contentRef = void 0;
1475
+ flushQueuedRefCallbacks();
1476
+ };
1477
+
1478
+ // src/runtime/update-component.ts
1479
+ var attachToAncestor = (hostRef, ancestorComponent) => {
1480
+ if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
1481
+ const index = ancestorComponent["s-p"].push(
1482
+ new Promise(
1483
+ (r) => hostRef.$onRenderResolve$ = () => {
1484
+ ancestorComponent["s-p"].splice(index - 1, 1);
1485
+ r();
1486
+ }
1487
+ )
1488
+ );
1489
+ }
1490
+ };
1491
+ var scheduleUpdate = (hostRef, isInitialLoad) => {
1492
+ {
1493
+ hostRef.$flags$ |= 16 /* isQueuedForUpdate */;
1494
+ }
1495
+ if (hostRef.$flags$ & 4 /* isWaitingForChildren */) {
1496
+ hostRef.$flags$ |= 512 /* needsRerender */;
1497
+ return;
1498
+ }
1499
+ attachToAncestor(hostRef, hostRef.$ancestorComponent$);
1500
+ const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
1501
+ if (isInitialLoad) {
1502
+ queueMicrotask(() => {
1503
+ dispatch();
1504
+ });
1505
+ return;
1506
+ }
1507
+ return writeTask(dispatch) ;
1508
+ };
1509
+ var dispatchHooks = (hostRef, isInitialLoad) => {
1510
+ const elm = hostRef.$hostElement$;
1511
+ const endSchedule = createTime("scheduleUpdate", hostRef.$cmpMeta$.$tagName$);
1512
+ const instance = hostRef.$lazyInstance$ ;
1513
+ if (!instance) {
1514
+ throw new Error(
1515
+ `Can't render component <${elm.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`
1516
+ );
1517
+ }
1518
+ let maybePromise;
1519
+ if (isInitialLoad) {
1520
+ {
1521
+ if (hostRef.$deferredConnectedCallback$) {
1522
+ hostRef.$deferredConnectedCallback$ = false;
1523
+ safeCall(instance, "connectedCallback", void 0, elm);
1524
+ }
1525
+ {
1526
+ hostRef.$flags$ |= 256 /* isListenReady */;
1527
+ if (hostRef.$queuedListeners$) {
1528
+ hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
1529
+ hostRef.$queuedListeners$ = void 0;
1530
+ }
1531
+ }
1532
+ if (hostRef.$fetchedCbList$.length) {
1533
+ hostRef.$fetchedCbList$.forEach((cb) => cb(elm));
1534
+ }
1535
+ }
1536
+ maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
1537
+ } else {
1538
+ maybePromise = safeCall(instance, "componentWillUpdate", void 0, elm);
1539
+ }
1540
+ maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender", void 0, elm));
1541
+ endSchedule();
1542
+ return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
1543
+ };
1544
+ var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((err) => {
1545
+ console.error(err);
1546
+ fn();
1547
+ }) : fn();
1548
+ var isPromisey = (maybePromise) => maybePromise instanceof Promise || maybePromise && maybePromise.then && typeof maybePromise.then === "function";
1549
+ var updateComponent = async (hostRef, instance, isInitialLoad) => {
1550
+ var _a;
1551
+ const elm = hostRef.$hostElement$;
1552
+ const endUpdate = createTime("update", hostRef.$cmpMeta$.$tagName$);
1553
+ const rc = elm["s-rc"];
1554
+ if (isInitialLoad) {
1555
+ attachStyles(hostRef);
1556
+ }
1557
+ const endRender = createTime("render", hostRef.$cmpMeta$.$tagName$);
1558
+ {
1559
+ callRender(hostRef, instance, elm, isInitialLoad);
1560
+ }
1561
+ if (rc) {
1562
+ rc.map((cb) => cb());
1563
+ elm["s-rc"] = void 0;
1564
+ }
1565
+ endRender();
1566
+ endUpdate();
1567
+ {
1568
+ const childrenPromises = (_a = elm["s-p"]) != null ? _a : [];
1569
+ const postUpdate = () => postUpdateComponent(hostRef);
1570
+ if (childrenPromises.length === 0) {
1571
+ postUpdate();
1572
+ } else {
1573
+ Promise.all(childrenPromises).then(postUpdate).catch(postUpdate);
1574
+ hostRef.$flags$ |= 4 /* isWaitingForChildren */;
1575
+ childrenPromises.length = 0;
1576
+ }
1577
+ }
1578
+ };
1579
+ var callRender = (hostRef, instance, elm, isInitialLoad) => {
1580
+ try {
1581
+ instance = instance.render() ;
1582
+ {
1583
+ hostRef.$flags$ &= -17 /* isQueuedForUpdate */;
1584
+ }
1585
+ {
1586
+ hostRef.$flags$ |= 2 /* hasRendered */;
1587
+ }
1588
+ {
1589
+ {
1590
+ {
1591
+ renderVdom(hostRef, instance, isInitialLoad);
1592
+ }
1593
+ }
1594
+ }
1595
+ } catch (e) {
1596
+ consoleError(e, hostRef.$hostElement$);
1597
+ }
1598
+ return null;
1599
+ };
1600
+ var postUpdateComponent = (hostRef) => {
1601
+ const tagName = hostRef.$cmpMeta$.$tagName$;
1602
+ const elm = hostRef.$hostElement$;
1603
+ const endPostUpdate = createTime("postUpdate", tagName);
1604
+ const instance = hostRef.$lazyInstance$ ;
1605
+ const ancestorComponent = hostRef.$ancestorComponent$;
1606
+ safeCall(instance, "componentDidRender", void 0, elm);
1607
+ if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
1608
+ hostRef.$flags$ |= 64 /* hasLoadedComponent */;
1609
+ {
1610
+ addHydratedFlag(elm);
1611
+ }
1612
+ safeCall(instance, "componentDidLoad", void 0, elm);
1613
+ endPostUpdate();
1614
+ {
1615
+ hostRef.$onReadyResolve$(elm);
1616
+ if (!ancestorComponent) {
1617
+ appDidLoad();
1618
+ }
1619
+ }
1620
+ } else {
1621
+ safeCall(instance, "componentDidUpdate", void 0, elm);
1622
+ endPostUpdate();
1623
+ }
1624
+ {
1625
+ hostRef.$onInstanceResolve$(elm);
1626
+ }
1627
+ {
1628
+ if (hostRef.$onRenderResolve$) {
1629
+ hostRef.$onRenderResolve$();
1630
+ hostRef.$onRenderResolve$ = void 0;
1631
+ }
1632
+ if (hostRef.$flags$ & 512 /* needsRerender */) {
1633
+ nextTick(() => scheduleUpdate(hostRef, false));
1634
+ }
1635
+ hostRef.$flags$ &= -517;
1636
+ }
1637
+ };
1638
+ var forceUpdate = (ref) => {
1639
+ var _a;
1640
+ {
1641
+ const hostRef = getHostRef(ref);
1642
+ const isConnected = (_a = hostRef == null ? void 0 : hostRef.$hostElement$) == null ? void 0 : _a.isConnected;
1643
+ if (isConnected && (hostRef.$flags$ & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
1644
+ scheduleUpdate(hostRef, false);
1645
+ }
1646
+ return isConnected;
1647
+ }
1648
+ };
1649
+ var appDidLoad = (who) => {
1650
+ nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
1651
+ };
1652
+ var safeCall = (instance, method, arg, elm) => {
1653
+ if (instance && instance[method]) {
1654
+ try {
1655
+ return instance[method](arg);
1656
+ } catch (e) {
1657
+ consoleError(e, elm);
1658
+ }
1659
+ }
1660
+ return void 0;
1661
+ };
1662
+ var addHydratedFlag = (elm) => {
1663
+ var _a;
1664
+ return elm.classList.add((_a = BUILD.hydratedSelectorName) != null ? _a : "hydrated") ;
1665
+ };
1666
+
1667
+ // src/runtime/set-value.ts
1668
+ var getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
1669
+ var setValue = (ref, propName, newVal, cmpMeta) => {
1670
+ const hostRef = getHostRef(ref);
1671
+ if (!hostRef) {
1672
+ return;
1673
+ }
1674
+ if (!hostRef) {
1675
+ throw new Error(
1676
+ `Couldn't find host element for "${cmpMeta.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`
1677
+ );
1678
+ }
1679
+ const elm = hostRef.$hostElement$ ;
1680
+ const oldVal = hostRef.$instanceValues$.get(propName);
1681
+ const flags = hostRef.$flags$;
1682
+ const instance = hostRef.$lazyInstance$ ;
1683
+ newVal = parsePropertyValue(
1684
+ newVal,
1685
+ cmpMeta.$members$[propName][0],
1686
+ !!(cmpMeta.$flags$ & 64 /* formAssociated */)
1687
+ );
1688
+ const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
1689
+ const didValueChange = newVal !== oldVal && !areBothNaN;
1690
+ if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
1691
+ hostRef.$instanceValues$.set(propName, newVal);
1692
+ if (cmpMeta.$watchers$) {
1693
+ const watchMethods = cmpMeta.$watchers$[propName];
1694
+ if (watchMethods) {
1695
+ watchMethods.map((watcher) => {
1696
+ try {
1697
+ const [[watchMethodName, watcherFlags]] = Object.entries(watcher);
1698
+ if (flags & 128 /* isWatchReady */ || watcherFlags & 1 /* Immediate */) {
1699
+ if (!instance) {
1700
+ hostRef.$fetchedCbList$.push(() => {
1701
+ hostRef.$lazyInstance$[watchMethodName](newVal, oldVal, propName);
1702
+ });
1703
+ } else {
1704
+ instance[watchMethodName](newVal, oldVal, propName);
1705
+ }
1706
+ }
1707
+ } catch (e) {
1708
+ consoleError(e, elm);
1709
+ }
1710
+ });
1711
+ }
1712
+ }
1713
+ if (flags & 2 /* hasRendered */) {
1714
+ if (instance.componentShouldUpdate) {
1715
+ const shouldUpdate = instance.componentShouldUpdate(newVal, oldVal, propName);
1716
+ if (shouldUpdate === false && !(flags & 16 /* isQueuedForUpdate */)) {
1717
+ return;
1718
+ }
1719
+ }
1720
+ if (!(flags & 16 /* isQueuedForUpdate */)) {
1721
+ scheduleUpdate(hostRef, false);
1722
+ }
1723
+ }
1724
+ }
1725
+ };
1726
+
1727
+ // src/runtime/proxy-component.ts
1728
+ var reflectedAttrValue = (propValue) => propValue == null || propValue === false ? null : propValue === true ? "" : String(propValue);
1729
+ var replayPendingSetterValues = (hostRef, cmpMeta) => {
1730
+ var _a;
1731
+ const instance = hostRef.$lazyInstance$;
1732
+ if (!instance) return;
1733
+ for (const [memberName, [memberFlags]] of Object.entries((_a = cmpMeta.$members$) != null ? _a : {})) {
1734
+ if (memberFlags & 4096 /* Setter */ && hostRef.$instanceValues$.has(memberName)) {
1735
+ const pendingValue = hostRef.$instanceValues$.get(memberName);
1736
+ if (instance[memberName] !== pendingValue) {
1737
+ instance[memberName] = pendingValue;
1738
+ }
1739
+ }
1740
+ }
1741
+ };
1742
+ var proxyComponent = (Cstr, cmpMeta, flags) => {
1743
+ var _a, _b;
1744
+ const prototype = Cstr.prototype;
1745
+ if (cmpMeta.$flags$ & 64 /* formAssociated */ && flags & 1 /* isElementConstructor */) {
1746
+ FORM_ASSOCIATED_CUSTOM_ELEMENT_CALLBACKS.forEach((cbName) => {
1747
+ Object.defineProperty(prototype, cbName, {
1748
+ value(...args) {
1749
+ var _a2;
1750
+ const hostRef = getHostRef(this);
1751
+ const instance = hostRef == null ? void 0 : hostRef.$lazyInstance$ ;
1752
+ if (!instance) {
1753
+ (_a2 = hostRef == null ? void 0 : hostRef.$onReadyPromise$) == null ? void 0 : _a2.then((asyncInstance) => {
1754
+ const cb = asyncInstance[cbName];
1755
+ typeof cb === "function" && cb.call(asyncInstance, ...args);
1756
+ });
1757
+ } else {
1758
+ const cb = instance[cbName] ;
1759
+ typeof cb === "function" && cb.call(instance, ...args);
1760
+ }
1761
+ }
1762
+ });
1763
+ });
1764
+ }
1765
+ if (cmpMeta.$members$ || BUILD.propChangeCallback) {
1766
+ {
1767
+ if (Cstr.watchers && !cmpMeta.$watchers$) {
1768
+ cmpMeta.$watchers$ = normalizeWatchers(Cstr.watchers);
1769
+ }
1770
+ if (Cstr.deserializers && !cmpMeta.$deserializers$) {
1771
+ cmpMeta.$deserializers$ = Cstr.deserializers;
1772
+ }
1773
+ if (Cstr.serializers && !cmpMeta.$serializers$) {
1774
+ cmpMeta.$serializers$ = Cstr.serializers;
1775
+ }
1776
+ }
1777
+ const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
1778
+ members.map(([memberName, [memberFlags]]) => {
1779
+ if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
1780
+ const { get: origGetter, set: origSetter } = getPropertyDescriptor(prototype, memberName) || {};
1781
+ if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
1782
+ if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
1783
+ if (flags & 1 /* isElementConstructor */ || !origGetter) {
1784
+ Object.defineProperty(prototype, memberName, {
1785
+ get() {
1786
+ {
1787
+ if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
1788
+ return getValue(this, memberName);
1789
+ }
1790
+ const ref = getHostRef(this);
1791
+ if (!ref) return prototype[memberName];
1792
+ return ref.$lazyInstance$ ? ref.$lazyInstance$[memberName] : getValue(this, memberName);
1793
+ }
1794
+ },
1795
+ configurable: true,
1796
+ enumerable: true
1797
+ });
1798
+ }
1799
+ Object.defineProperty(prototype, memberName, {
1800
+ set(newValue) {
1801
+ const ref = getHostRef(this);
1802
+ if (!ref) {
1803
+ return;
1804
+ }
1805
+ if (origSetter) {
1806
+ const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1807
+ if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
1808
+ newValue = ref.$instanceValues$.get(memberName);
1809
+ }
1810
+ origSetter.apply(this, [
1811
+ parsePropertyValue(
1812
+ newValue,
1813
+ memberFlags,
1814
+ !!(cmpMeta.$flags$ & 64 /* formAssociated */)
1815
+ )
1816
+ ]);
1817
+ newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1818
+ setValue(this, memberName, newValue, cmpMeta);
1819
+ return;
1820
+ }
1821
+ {
1822
+ if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
1823
+ setValue(this, memberName, newValue, cmpMeta);
1824
+ return;
1825
+ }
1826
+ const parsedValue = parsePropertyValue(
1827
+ newValue,
1828
+ memberFlags,
1829
+ !!(cmpMeta.$flags$ & 64 /* formAssociated */)
1830
+ );
1831
+ if (ref.$lazyInstance$) {
1832
+ const currentValue = ref.$lazyInstance$[memberName];
1833
+ if (!ref.$instanceValues$.get(memberName) && currentValue) {
1834
+ ref.$instanceValues$.set(memberName, currentValue);
1835
+ }
1836
+ ref.$lazyInstance$[memberName] = parsedValue;
1837
+ setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
1838
+ } else {
1839
+ ref.$instanceValues$.set(memberName, parsedValue);
1840
+ }
1841
+ }
1842
+ }
1843
+ });
1844
+ } else if (flags & 1 /* isElementConstructor */ && memberFlags & 64 /* Method */) {
1845
+ Object.defineProperty(prototype, memberName, {
1846
+ value(...args) {
1847
+ var _a2;
1848
+ const ref = getHostRef(this);
1849
+ return (_a2 = ref == null ? void 0 : ref.$onInstancePromise$) == null ? void 0 : _a2.then(() => {
1850
+ var _a3;
1851
+ return (_a3 = ref.$lazyInstance$) == null ? void 0 : _a3[memberName](...args);
1852
+ });
1853
+ }
1854
+ });
1855
+ }
1856
+ });
1857
+ if ((flags & 1 /* isElementConstructor */)) {
1858
+ const attrNameToPropName = /* @__PURE__ */ new Map();
1859
+ prototype.attributeChangedCallback = function(attrName, oldValue, newValue) {
1860
+ plt.jmp(() => {
1861
+ var _a2;
1862
+ const propName = attrNameToPropName.get(attrName);
1863
+ const hostRef = getHostRef(this);
1864
+ if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
1865
+ newValue = this[propName];
1866
+ delete this[propName];
1867
+ }
1868
+ if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
1869
+ this[propName] == newValue) {
1870
+ return;
1871
+ } else if (propName == null) {
1872
+ const flags2 = hostRef == null ? void 0 : hostRef.$flags$;
1873
+ if (hostRef && flags2 && !(flags2 & 8 /* isConstructingInstance */) && newValue !== oldValue) {
1874
+ const instance = hostRef.$lazyInstance$ ;
1875
+ const entry = (_a2 = cmpMeta.$watchers$) == null ? void 0 : _a2[attrName];
1876
+ entry == null ? void 0 : entry.forEach((watcher) => {
1877
+ const [[watchMethodName, watcherFlags]] = Object.entries(watcher);
1878
+ if (instance[watchMethodName] != null && (flags2 & 128 /* isWatchReady */ || watcherFlags & 1 /* Immediate */)) {
1879
+ instance[watchMethodName].call(instance, newValue, oldValue, attrName);
1880
+ }
1881
+ });
1882
+ }
1883
+ return;
1884
+ }
1885
+ const propFlags = members.find(([m]) => m === propName);
1886
+ const propMemberFlags = propFlags ? propFlags[1][0] : 0;
1887
+ const isBooleanTarget = propMemberFlags & 4 /* Boolean */;
1888
+ if (propMemberFlags & 512 /* ReflectAttr */ && propMemberFlags & 8 /* Any */ && // a complex value is never written to an attribute, so a change while the prop holds
1889
+ // one is always external
1890
+ !isComplexType(this[propName]) && reflectedAttrValue(this[propName]) === newValue) {
1891
+ return;
1892
+ }
1893
+ const isSpuriousBooleanRemoval = isBooleanTarget && newValue === null && this[propName] === void 0;
1894
+ if (isBooleanTarget) {
1895
+ const isFormAssociated = !!(cmpMeta.$flags$ & 64 /* formAssociated */);
1896
+ newValue = newValue === null || newValue === "false" && !isFormAssociated ? false : true;
1897
+ }
1898
+ const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1899
+ if (!isSpuriousBooleanRemoval && newValue != this[propName] && (!propDesc.get || !!propDesc.set)) {
1900
+ this[propName] = newValue;
1901
+ }
1902
+ });
1903
+ };
1904
+ Cstr.observedAttributes = Array.from(
1905
+ /* @__PURE__ */ new Set([
1906
+ ...Object.keys((_b = cmpMeta.$watchers$) != null ? _b : {}),
1907
+ ...members.filter(([_, m]) => m[0] & 31 /* HasAttribute */).map(([propName, m]) => {
1908
+ var _a2;
1909
+ const attrName = m[1] || propName;
1910
+ attrNameToPropName.set(attrName, propName);
1911
+ if (m[0] & 512 /* ReflectAttr */) {
1912
+ (_a2 = cmpMeta.$attrsToReflect$) == null ? void 0 : _a2.push([propName, attrName]);
1913
+ }
1914
+ return attrName;
1915
+ })
1916
+ ])
1917
+ );
1918
+ }
1919
+ }
1920
+ return Cstr;
1921
+ };
1922
+
1923
+ // src/runtime/initialize-component.ts
1924
+ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1925
+ var _a;
1926
+ let Cstr;
1927
+ try {
1928
+ if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
1929
+ hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1930
+ hostRef.$flags$ &= -1025 /* hasFailedLoad */;
1931
+ const bundleId = cmpMeta.$lazyBundleId$;
1932
+ if (bundleId) {
1933
+ const CstrImport = loadModule(cmpMeta, hostRef);
1934
+ if (CstrImport && "then" in CstrImport) {
1935
+ const endLoad = uniqueTime();
1936
+ Cstr = await CstrImport;
1937
+ endLoad();
1938
+ } else {
1939
+ Cstr = CstrImport;
1940
+ }
1941
+ if (!Cstr) {
1942
+ hostRef.$flags$ &= -33 /* hasInitializedComponent */;
1943
+ hostRef.$loadRetryCount$ = ((_a = hostRef.$loadRetryCount$) != null ? _a : 0) + 1;
1944
+ if (hostRef.$loadRetryCount$ < MAX_LAZY_LOAD_RETRIES) {
1945
+ hostRef.$flags$ |= 1024 /* hasFailedLoad */;
1946
+ }
1947
+ throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
1948
+ }
1949
+ if (!Cstr.isProxied) {
1950
+ {
1951
+ cmpMeta.$watchers$ = normalizeWatchers(Cstr.watchers);
1952
+ cmpMeta.$serializers$ = Cstr.serializers;
1953
+ cmpMeta.$deserializers$ = Cstr.deserializers;
1954
+ }
1955
+ proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
1956
+ Cstr.isProxied = true;
1957
+ }
1958
+ const endNewInstance = createTime("createInstance", cmpMeta.$tagName$);
1959
+ {
1960
+ hostRef.$flags$ |= 8 /* isConstructingInstance */;
1961
+ }
1962
+ try {
1963
+ new Cstr(hostRef);
1964
+ } catch (e) {
1965
+ consoleError(e, elm);
1966
+ }
1967
+ {
1968
+ hostRef.$flags$ &= -9 /* isConstructingInstance */;
1969
+ replayPendingSetterValues(hostRef, cmpMeta);
1970
+ }
1971
+ {
1972
+ hostRef.$flags$ |= 128 /* isWatchReady */;
1973
+ }
1974
+ endNewInstance();
1975
+ const needsDeferredCallback = cmpMeta.$flags$ & 4 /* hasSlotRelocation */;
1976
+ if (!needsDeferredCallback) {
1977
+ fireConnectedCallback(hostRef.$lazyInstance$, elm);
1978
+ } else {
1979
+ hostRef.$deferredConnectedCallback$ = true;
1980
+ }
1981
+ } else {
1982
+ Cstr = elm.constructor;
1983
+ const cmpTag = elm.localName;
1984
+ customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
1985
+ }
1986
+ if (Cstr && Cstr.style) {
1987
+ let style;
1988
+ if (typeof Cstr.style === "string") {
1989
+ style = Cstr.style;
1990
+ }
1991
+ const scopeId2 = getScopeId(cmpMeta);
1992
+ if (!styles.has(scopeId2) || BUILD.hotModuleReplacement) {
1993
+ const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
1994
+ registerStyle(scopeId2, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
1995
+ endRegisterStyles();
1996
+ }
1997
+ }
1998
+ }
1999
+ const ancestorComponent = hostRef.$ancestorComponent$;
2000
+ const schedule = () => scheduleUpdate(hostRef, true);
2001
+ if (ancestorComponent && ancestorComponent["s-rc"]) {
2002
+ ancestorComponent["s-rc"].push(schedule);
2003
+ } else {
2004
+ schedule();
2005
+ }
2006
+ } catch (e) {
2007
+ consoleError(e, elm);
2008
+ if (hostRef.$onRenderResolve$) {
2009
+ hostRef.$onRenderResolve$();
2010
+ hostRef.$onRenderResolve$ = void 0;
2011
+ }
2012
+ if (hostRef.$onReadyResolve$ && !(hostRef.$flags$ & 1024 /* hasFailedLoad */)) {
2013
+ hostRef.$onReadyResolve$(elm);
2014
+ }
2015
+ }
2016
+ };
2017
+ var fireConnectedCallback = (instance, elm) => {
2018
+ {
2019
+ safeCall(instance, "connectedCallback", void 0, elm);
2020
+ }
2021
+ };
2022
+
2023
+ // src/runtime/connected-callback.ts
2024
+ var connectedCallback = (elm) => {
2025
+ if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
2026
+ const hostRef = getHostRef(elm);
2027
+ if (!hostRef) {
2028
+ return;
2029
+ }
2030
+ const cmpMeta = hostRef.$cmpMeta$;
2031
+ const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
2032
+ if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
2033
+ hostRef.$flags$ |= 1 /* hasConnected */;
2034
+ {
2035
+ if (// TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
2036
+ cmpMeta.$flags$ & (4 /* hasSlotRelocation */ | 8 /* needsShadowDomShim */)) {
2037
+ setContentReference(elm);
2038
+ }
2039
+ }
2040
+ {
2041
+ let ancestorComponent = elm;
2042
+ while (ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host) {
2043
+ if (ancestorComponent["s-p"]) {
2044
+ attachToAncestor(hostRef, hostRef.$ancestorComponent$ = ancestorComponent);
2045
+ break;
2046
+ }
2047
+ }
2048
+ }
2049
+ if (cmpMeta.$members$) {
2050
+ Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
2051
+ if (memberFlags & 31 /* Prop */ && Object.prototype.hasOwnProperty.call(elm, memberName)) {
2052
+ const value = elm[memberName];
2053
+ delete elm[memberName];
2054
+ elm[memberName] = value;
2055
+ }
2056
+ });
2057
+ }
2058
+ {
2059
+ initializeComponent(elm, hostRef, cmpMeta);
2060
+ }
2061
+ } else {
2062
+ addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
2063
+ if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
2064
+ fireConnectedCallback(hostRef.$lazyInstance$, elm);
2065
+ } else if (hostRef.$flags$ & 1024 /* hasFailedLoad */) {
2066
+ setTimeout(() => initializeComponent(elm, hostRef, cmpMeta), LAZY_LOAD_RETRY_INTERVAL_MS);
2067
+ } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
2068
+ hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
2069
+ }
2070
+ }
2071
+ endConnected();
2072
+ }
2073
+ };
2074
+ var setContentReference = (elm) => {
2075
+ if (!win.document) {
2076
+ return;
2077
+ }
2078
+ const contentRefElm = elm["s-cr"] = win.document.createComment(
2079
+ ""
2080
+ );
2081
+ contentRefElm["s-cn"] = true;
2082
+ insertBefore(elm, contentRefElm, elm.firstChild);
2083
+ };
2084
+ var disconnectInstance = (instance, elm) => {
2085
+ {
2086
+ safeCall(instance, "disconnectedCallback", void 0, elm || instance);
2087
+ }
2088
+ };
2089
+ var disconnectedCallback = async (elm) => {
2090
+ if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
2091
+ const hostRef = getHostRef(elm);
2092
+ {
2093
+ if (hostRef == null ? void 0 : hostRef.$rmListeners$) {
2094
+ hostRef.$rmListeners$.map((rmListener) => rmListener());
2095
+ hostRef.$rmListeners$ = void 0;
2096
+ }
2097
+ }
2098
+ if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
2099
+ disconnectInstance(hostRef.$lazyInstance$, elm);
2100
+ } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
2101
+ hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
2102
+ }
2103
+ }
2104
+ if (rootAppliedStyles.has(elm)) {
2105
+ rootAppliedStyles.delete(elm);
2106
+ }
2107
+ if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
2108
+ rootAppliedStyles.delete(elm.shadowRoot);
2109
+ }
2110
+ };
2111
+
2112
+ // src/runtime/bootstrap-lazy.ts
2113
+ var bootstrapLazy = (lazyBundles, options = {}) => {
2114
+ var _a;
2115
+ if (!win.document) {
2116
+ console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");
2117
+ return;
2118
+ }
2119
+ const endBootstrap = createTime();
2120
+ const cmpTags = [];
2121
+ const exclude = options.exclude || [];
2122
+ const customElements2 = win.customElements;
2123
+ const head = win.document.head;
2124
+ const metaCharset = /* @__PURE__ */ head.querySelector("meta[charset]");
2125
+ const dataStyles = /* @__PURE__ */ win.document.createElement("style");
2126
+ const deferredConnectedCallbacks = [];
2127
+ let appLoadFallback;
2128
+ let isBootstrapping = true;
2129
+ Object.assign(plt, options);
2130
+ plt.$resourcesUrl$ = new URL(options.resourcesUrl || "./", win.document.baseURI).href;
2131
+ let hasSlotRelocation = false;
2132
+ lazyBundles.map((lazyBundle) => {
2133
+ lazyBundle[1].map((compactMeta) => {
2134
+ var _a2, _b;
2135
+ const cmpMeta = {
2136
+ $flags$: compactMeta[0],
2137
+ $tagName$: compactMeta[1],
2138
+ $members$: compactMeta[2],
2139
+ $listeners$: compactMeta[3]
2140
+ };
2141
+ if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
2142
+ hasSlotRelocation = true;
2143
+ }
2144
+ {
2145
+ cmpMeta.$members$ = compactMeta[2];
2146
+ }
2147
+ {
2148
+ cmpMeta.$listeners$ = compactMeta[3];
2149
+ }
2150
+ {
2151
+ cmpMeta.$attrsToReflect$ = [];
2152
+ }
2153
+ {
2154
+ cmpMeta.$watchers$ = normalizeWatchers(compactMeta[4]);
2155
+ cmpMeta.$serializers$ = (_a2 = compactMeta[5]) != null ? _a2 : {};
2156
+ cmpMeta.$deserializers$ = (_b = compactMeta[6]) != null ? _b : {};
2157
+ }
2158
+ const tagName = transformTag(cmpMeta.$tagName$);
2159
+ const HostElement = class extends HTMLElement {
2160
+ ["s-p"];
2161
+ ["s-rc"];
2162
+ hasRegisteredEventListeners = false;
2163
+ // StencilLazyHost
2164
+ constructor(self) {
2165
+ super(self);
2166
+ self = this;
2167
+ registerHost(self, cmpMeta);
2168
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
2169
+ {
2170
+ if (!self.shadowRoot) {
2171
+ createShadowRoot.call(self, cmpMeta);
2172
+ } else {
2173
+ if (self.shadowRoot.mode !== "open") {
2174
+ throw new Error(
2175
+ `Unable to re-use existing shadow root for ${cmpMeta.$tagName$}! Mode is set to ${self.shadowRoot.mode} but Stencil only supports open shadow roots.`
2176
+ );
2177
+ }
2178
+ }
2179
+ }
2180
+ }
2181
+ }
2182
+ connectedCallback() {
2183
+ const hostRef = getHostRef(this);
2184
+ if (!hostRef) {
2185
+ return;
2186
+ }
2187
+ if (!this.hasRegisteredEventListeners) {
2188
+ this.hasRegisteredEventListeners = true;
2189
+ addHostEventListeners(this, hostRef, cmpMeta.$listeners$);
2190
+ }
2191
+ if (appLoadFallback) {
2192
+ clearTimeout(appLoadFallback);
2193
+ appLoadFallback = null;
2194
+ }
2195
+ if (isBootstrapping) {
2196
+ deferredConnectedCallbacks.push(this);
2197
+ } else {
2198
+ plt.jmp(() => connectedCallback(this));
2199
+ }
2200
+ }
2201
+ disconnectedCallback() {
2202
+ plt.jmp(() => disconnectedCallback(this));
2203
+ nextTick(() => {
2204
+ var _a3;
2205
+ const hostRef = getHostRef(this);
2206
+ if (!hostRef) {
2207
+ return;
2208
+ }
2209
+ const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
2210
+ if (i2 > -1) {
2211
+ deferredConnectedCallbacks.splice(i2, 1);
2212
+ }
2213
+ if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
2214
+ delete hostRef.$vnode$.$elm$;
2215
+ }
2216
+ });
2217
+ }
2218
+ componentOnReady() {
2219
+ var _a3;
2220
+ return (_a3 = getHostRef(this)) == null ? void 0 : _a3.$onReadyPromise$;
2221
+ }
2222
+ };
2223
+ if (cmpMeta.$flags$ & 64 /* formAssociated */) {
2224
+ HostElement.formAssociated = true;
2225
+ }
2226
+ cmpMeta.$lazyBundleId$ = lazyBundle[0];
2227
+ if (!exclude.includes(tagName) && !customElements2.get(tagName)) {
2228
+ cmpTags.push(tagName);
2229
+ customElements2.define(
2230
+ tagName,
2231
+ proxyComponent(HostElement, cmpMeta, 1 /* isElementConstructor */)
2232
+ );
2233
+ }
2234
+ });
2235
+ });
2236
+ if (cmpTags.length > 0) {
2237
+ if (hasSlotRelocation) {
2238
+ dataStyles.textContent += SLOT_FB_CSS;
2239
+ }
2240
+ {
2241
+ dataStyles.textContent += cmpTags.sort() + HYDRATED_CSS;
2242
+ }
2243
+ if (dataStyles.innerHTML.length) {
2244
+ dataStyles.setAttribute("data-styles", "");
2245
+ const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
2246
+ if (nonce != null) {
2247
+ dataStyles.setAttribute("nonce", nonce);
2248
+ }
2249
+ head.insertBefore(dataStyles, metaCharset ? metaCharset.nextSibling : head.firstChild);
2250
+ }
2251
+ }
2252
+ isBootstrapping = false;
2253
+ if (deferredConnectedCallbacks.length) {
2254
+ deferredConnectedCallbacks.map((host) => host.connectedCallback());
2255
+ } else {
2256
+ {
2257
+ plt.jmp(() => appLoadFallback = setTimeout(appDidLoad, 30));
2258
+ }
2259
+ }
2260
+ endBootstrap();
2261
+ };
2262
+ var addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
2263
+ if (listeners && win.document) {
2264
+ listeners.map(([flags, name, method]) => {
2265
+ const target = getHostListenerTarget(win.document, elm, flags) ;
2266
+ const handler = hostListenerProxy(hostRef, method);
2267
+ const opts = hostListenerOpts(flags);
2268
+ plt.ael(target, name, handler, opts);
2269
+ (hostRef.$rmListeners$ = hostRef.$rmListeners$ || []).push(() => plt.rel(target, name, handler, opts));
2270
+ });
2271
+ }
2272
+ };
2273
+ var hostListenerProxy = (hostRef, methodName) => (ev) => {
2274
+ var _a;
2275
+ try {
2276
+ {
2277
+ if (hostRef.$flags$ & 256 /* isListenReady */) {
2278
+ (_a = hostRef.$lazyInstance$) == null ? void 0 : _a[methodName](ev);
2279
+ } else {
2280
+ (hostRef.$queuedListeners$ = hostRef.$queuedListeners$ || []).push([methodName, ev]);
2281
+ }
2282
+ }
2283
+ } catch (e) {
2284
+ consoleError(e, hostRef.$hostElement$);
2285
+ }
2286
+ };
2287
+ var getHostListenerTarget = (doc, elm, flags) => {
2288
+ if (flags & 4 /* TargetDocument */) {
2289
+ return doc;
2290
+ }
2291
+ return elm;
2292
+ };
2293
+ var hostListenerOpts = (flags) => supportsListenerOptions ? {
2294
+ passive: (flags & 1 /* Passive */) !== 0,
2295
+ capture: (flags & 2 /* Capture */) !== 0
2296
+ } : (flags & 2 /* Capture */) !== 0;
2297
+
2298
+ // src/runtime/nonce.ts
2299
+ var setNonce = (nonce) => plt.$nonce$ = nonce;
2300
+ function transformTag(tag) {
2301
+ return tag;
2302
+ }
2303
+
2304
+ export { Host as H, bootstrapLazy as b, createEvent as c, forceUpdate as f, getElement as g, h, promiseResolve as p, registerInstance as r, setNonce as s };