@spw-ds/spw-stencil-library 1.21.1 → 1.21.3

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 (879) hide show
  1. package/CHANGELOG.md +566 -0
  2. package/README.md +1 -1
  3. package/dist/cem.json +1341 -205
  4. package/dist/cjs/app-globals-V2Kpy_OQ.js +5 -0
  5. package/dist/cjs/index-vJQ4PYrz.js +3296 -0
  6. package/dist/cjs/loader.cjs.js +4 -3
  7. package/dist/cjs/spw-accordion-content.cjs.entry.js +93 -0
  8. package/dist/cjs/spw-accordion-item.cjs.entry.js +250 -0
  9. package/dist/cjs/spw-accordion-title.cjs.entry.js +23 -0
  10. package/dist/cjs/spw-accordion.cjs.entry.js +68 -0
  11. package/dist/cjs/spw-alert.cjs.entry.js +2 -2
  12. package/dist/cjs/spw-avatar.cjs.entry.js +6 -3
  13. package/dist/cjs/spw-block-content.cjs.entry.js +6 -3
  14. package/dist/cjs/spw-box.cjs.entry.js +6 -4
  15. package/dist/cjs/spw-breadcrumb-item.cjs.entry.js +3 -3
  16. package/dist/cjs/spw-breadcrumb.cjs.entry.js +3 -3
  17. package/dist/cjs/spw-button_2.cjs.entry.js +5 -5
  18. package/dist/cjs/spw-card-content.cjs.entry.js +3 -3
  19. package/dist/cjs/spw-card-excerpt.cjs.entry.js +3 -3
  20. package/dist/cjs/spw-card-image.cjs.entry.js +3 -3
  21. package/dist/cjs/spw-card-subtag-item.cjs.entry.js +3 -3
  22. package/dist/cjs/spw-card-subtags.cjs.entry.js +90 -16
  23. package/dist/cjs/spw-card-title.cjs.entry.js +3 -3
  24. package/dist/cjs/spw-card.cjs.entry.js +22 -6
  25. package/dist/cjs/spw-checkbox.cjs.entry.js +42 -14
  26. package/dist/cjs/spw-custom-select.cjs.entry.js +47 -24
  27. package/dist/cjs/spw-date-picker.cjs.entry.js +58 -12
  28. package/dist/cjs/spw-drawer.cjs.entry.js +5 -5
  29. package/dist/cjs/spw-dropdown-container.cjs.entry.js +3 -3
  30. package/dist/cjs/spw-dropdown-item.cjs.entry.js +19 -5
  31. package/dist/cjs/spw-dropdown.cjs.entry.js +31 -9
  32. package/dist/cjs/spw-field-label_3.cjs.entry.js +221 -0
  33. package/dist/cjs/spw-file-upload.cjs.entry.js +10 -6
  34. package/dist/cjs/spw-footer-bottom.cjs.entry.js +3 -3
  35. package/dist/cjs/spw-footer-content-col.cjs.entry.js +3 -3
  36. package/dist/cjs/spw-footer-content.cjs.entry.js +3 -3
  37. package/dist/cjs/spw-footer-link.cjs.entry.js +3 -3
  38. package/dist/cjs/spw-footer.cjs.entry.js +3 -3
  39. package/dist/cjs/spw-grid-item.cjs.entry.js +4 -4
  40. package/dist/cjs/spw-grid.cjs.entry.js +4 -4
  41. package/dist/cjs/spw-group.cjs.entry.js +273 -0
  42. package/dist/cjs/spw-header-lang.cjs.entry.js +26 -6
  43. package/dist/cjs/spw-header-navigation-dropdown.cjs.entry.js +5 -4
  44. package/dist/cjs/spw-header-navigation-item.cjs.entry.js +74 -24
  45. package/dist/cjs/spw-header-navigation.cjs.entry.js +167 -8
  46. package/dist/cjs/spw-header-persona-item.cjs.entry.js +3 -3
  47. package/dist/cjs/spw-header-persona.cjs.entry.js +83 -7
  48. package/dist/cjs/spw-header.cjs.entry.js +7 -4
  49. package/dist/cjs/spw-hero.cjs.entry.js +5 -5
  50. package/dist/cjs/spw-icon.cjs.entry.js +23 -0
  51. package/dist/cjs/spw-illustration.cjs.entry.js +2 -2
  52. package/dist/cjs/spw-input-slider.cjs.entry.js +7 -4
  53. package/dist/cjs/spw-lightbox-item.cjs.entry.js +3 -3
  54. package/dist/cjs/spw-lightbox.cjs.entry.js +6 -6
  55. package/dist/cjs/spw-link.cjs.entry.js +50 -0
  56. package/dist/cjs/spw-list-description.cjs.entry.js +3 -3
  57. package/dist/cjs/spw-list-item.cjs.entry.js +3 -3
  58. package/dist/cjs/spw-list-title.cjs.entry.js +3 -3
  59. package/dist/cjs/spw-list.cjs.entry.js +3 -3
  60. package/dist/cjs/spw-message.cjs.entry.js +2 -2
  61. package/dist/cjs/spw-modal.cjs.entry.js +5 -5
  62. package/dist/cjs/spw-mosaic-item.cjs.entry.js +3 -3
  63. package/dist/cjs/spw-mosaic.cjs.entry.js +17 -3
  64. package/dist/cjs/spw-pagination.cjs.entry.js +12 -8
  65. package/dist/cjs/spw-radio.cjs.entry.js +48 -16
  66. package/dist/cjs/spw-scrolltop.cjs.entry.js +3 -3
  67. package/dist/cjs/spw-search-field.cjs.entry.js +18 -4
  68. package/dist/cjs/spw-select.cjs.entry.js +36 -5
  69. package/dist/cjs/spw-separator.cjs.entry.js +41 -0
  70. package/dist/cjs/spw-sidebar-navigation-dropdown.cjs.entry.js +3 -3
  71. package/dist/cjs/spw-sidebar-navigation-item.cjs.entry.js +5 -5
  72. package/dist/cjs/spw-sidebar-navigation-separator.cjs.entry.js +3 -3
  73. package/dist/cjs/spw-sidebar.cjs.entry.js +3 -3
  74. package/dist/cjs/spw-sidenav-group.cjs.entry.js +4 -4
  75. package/dist/cjs/spw-sidenav-item.cjs.entry.js +9 -5
  76. package/dist/cjs/spw-sidenav.cjs.entry.js +4 -4
  77. package/dist/cjs/spw-skeleton.cjs.entry.js +3 -3
  78. package/dist/cjs/spw-slider-item.cjs.entry.js +3 -3
  79. package/dist/cjs/spw-slider.cjs.entry.js +3 -3
  80. package/dist/cjs/spw-socials.cjs.entry.js +6 -3
  81. package/dist/cjs/spw-stencil-library.cjs.js +4 -3
  82. package/dist/cjs/spw-table-body.cjs.entry.js +3 -3
  83. package/dist/cjs/spw-table-cell.cjs.entry.js +3 -3
  84. package/dist/cjs/spw-table-container.cjs.entry.js +3 -3
  85. package/dist/cjs/spw-table-footer.cjs.entry.js +3 -3
  86. package/dist/cjs/spw-table-head.cjs.entry.js +3 -3
  87. package/dist/cjs/spw-table-header.cjs.entry.js +4 -4
  88. package/dist/cjs/spw-table-row.cjs.entry.js +3 -3
  89. package/dist/cjs/spw-table-sidebar.cjs.entry.js +3 -3
  90. package/dist/cjs/spw-table.cjs.entry.js +6 -4
  91. package/dist/cjs/spw-tabs-content.cjs.entry.js +2 -2
  92. package/dist/cjs/spw-tabs-navigation-item.cjs.entry.js +3 -3
  93. package/dist/cjs/spw-tabs-navigation.cjs.entry.js +7 -3
  94. package/dist/cjs/spw-tabs.cjs.entry.js +3 -3
  95. package/dist/cjs/spw-tag.cjs.entry.js +3 -3
  96. package/dist/cjs/spw-text-field.cjs.entry.js +25 -7
  97. package/dist/cjs/spw-textarea.cjs.entry.js +18 -4
  98. package/dist/cjs/spw-theme-provider.cjs.entry.js +68 -0
  99. package/dist/cjs/spw-tile-description.cjs.entry.js +3 -3
  100. package/dist/cjs/spw-tile-title.cjs.entry.js +3 -3
  101. package/dist/cjs/spw-tile.cjs.entry.js +2 -2
  102. package/dist/cjs/spw-timeline-item.cjs.entry.js +4 -4
  103. package/dist/cjs/spw-timeline.cjs.entry.js +4 -4
  104. package/dist/cjs/spw-toast-controller.cjs.entry.js +7 -4
  105. package/dist/cjs/spw-toast.cjs.entry.js +2 -2
  106. package/dist/cjs/spw-toc-container.cjs.entry.js +2 -2
  107. package/dist/cjs/spw-toc-navigation.cjs.entry.js +2 -2
  108. package/dist/cjs/spw-toc.cjs.entry.js +3 -3
  109. package/dist/cjs/spw-topbar.cjs.entry.js +3 -3
  110. package/dist/cjs/spw-wizard-item.cjs.entry.js +3 -3
  111. package/dist/cjs/spw-wizard.cjs.entry.js +20 -9
  112. package/dist/collection/collection-manifest.json +2 -3
  113. package/dist/collection/components/spw-accordion/spw-accordion-content/spw-accordion-content.css +2 -1
  114. package/dist/collection/components/spw-accordion/spw-accordion-item/spw-accordion-item.css +2 -1
  115. package/dist/collection/components/spw-accordion/spw-accordion-item/spw-accordion-item.js +18 -7
  116. package/dist/collection/components/spw-accordion/spw-accordion-title/spw-accordion-title.css +2 -1
  117. package/dist/collection/components/spw-accordion/spw-accordion-title/spw-accordion-title.js +1 -1
  118. package/dist/collection/components/spw-accordion/spw-accordion.css +2 -1
  119. package/dist/collection/components/spw-alert/spw-alert.css +2 -1
  120. package/dist/collection/components/spw-avatar/spw-avatar.css +21 -3
  121. package/dist/collection/components/spw-avatar/spw-avatar.js +24 -1
  122. package/dist/collection/components/spw-block-content/spw-block-content.css +25 -1
  123. package/dist/collection/components/spw-block-content/spw-block-content.js +24 -1
  124. package/dist/collection/components/spw-box/spw-box.css +5 -1
  125. package/dist/collection/components/spw-box/spw-box.js +24 -2
  126. package/dist/collection/components/spw-breadcrumb/spw-breadcrumb-item/spw-breadcrumb-item.css +2 -1
  127. package/dist/collection/components/spw-breadcrumb/spw-breadcrumb-item/spw-breadcrumb-item.js +1 -1
  128. package/dist/collection/components/spw-breadcrumb/spw-breadcrumb.css +2 -1
  129. package/dist/collection/components/spw-breadcrumb/spw-breadcrumb.js +1 -1
  130. package/dist/collection/components/spw-button/spw-button.css +5 -2
  131. package/dist/collection/components/spw-button/spw-button.js +1 -1
  132. package/dist/collection/components/spw-card/spw-card-content/spw-card-content.css +9 -2
  133. package/dist/collection/components/spw-card/spw-card-content/spw-card-content.js +1 -1
  134. package/dist/collection/components/spw-card/spw-card-excerpt/spw-card-excerpt.css +2 -1
  135. package/dist/collection/components/spw-card/spw-card-excerpt/spw-card-excerpt.js +1 -1
  136. package/dist/collection/components/spw-card/spw-card-image/spw-card-image.css +10 -2
  137. package/dist/collection/components/spw-card/spw-card-image/spw-card-image.js +1 -1
  138. package/dist/collection/components/spw-card/spw-card-subtag-item/spw-card-subtag-item.css +6 -1
  139. package/dist/collection/components/spw-card/spw-card-subtag-item/spw-card-subtag-item.js +1 -1
  140. package/dist/collection/components/spw-card/spw-card-subtags/spw-card-subtags.css +35 -3
  141. package/dist/collection/components/spw-card/spw-card-subtags/spw-card-subtags.js +128 -13
  142. package/dist/collection/components/spw-card/spw-card-title/spw-card-title.css +2 -1
  143. package/dist/collection/components/spw-card/spw-card-title/spw-card-title.js +1 -1
  144. package/dist/collection/components/spw-card/spw-card.css +25 -1
  145. package/dist/collection/components/spw-card/spw-card.js +31 -11
  146. package/dist/collection/components/spw-checkbox/spw-checkbox.css +94 -1
  147. package/dist/collection/components/spw-checkbox/spw-checkbox.js +92 -19
  148. package/dist/collection/components/spw-custom-select/spw-custom-select.css +13 -1
  149. package/dist/collection/components/spw-custom-select/spw-custom-select.js +65 -22
  150. package/dist/collection/components/spw-date-picker/spw-date-picker.css +8 -1
  151. package/dist/collection/components/spw-date-picker/spw-date-picker.js +156 -10
  152. package/dist/collection/components/spw-drawer/spw-drawer.css +2 -1
  153. package/dist/collection/components/spw-drawer/spw-drawer.js +3 -3
  154. package/dist/collection/components/spw-dropdown/spw-dropdown-container/spw-dropdown-container.css +3 -2
  155. package/dist/collection/components/spw-dropdown/spw-dropdown-container/spw-dropdown-container.js +1 -1
  156. package/dist/collection/components/spw-dropdown/spw-dropdown-item/spw-dropdown-item.css +38 -4
  157. package/dist/collection/components/spw-dropdown/spw-dropdown-item/spw-dropdown-item.js +55 -4
  158. package/dist/collection/components/spw-dropdown/spw-dropdown.css +2 -1
  159. package/dist/collection/components/spw-dropdown/spw-dropdown.js +29 -7
  160. package/dist/collection/components/spw-field-label/spw-field-label.css +2 -1
  161. package/dist/collection/components/spw-field-label/spw-field-label.js +1 -1
  162. package/dist/collection/components/spw-field-message/spw-field-message.css +2 -1
  163. package/dist/collection/components/spw-field-message/spw-field-message.js +1 -1
  164. package/dist/collection/components/spw-file-upload/spw-file-upload.css +2 -1
  165. package/dist/collection/components/spw-file-upload/spw-file-upload.js +48 -4
  166. package/dist/collection/components/spw-footer/spw-footer-bottom/spw-footer-bottom.css +2 -1
  167. package/dist/collection/components/spw-footer/spw-footer-bottom/spw-footer-bottom.js +1 -1
  168. package/dist/collection/components/spw-footer/spw-footer-content/spw-footer-content.css +2 -1
  169. package/dist/collection/components/spw-footer/spw-footer-content/spw-footer-content.js +1 -1
  170. package/dist/collection/components/spw-footer/spw-footer-content-col/spw-footer-content-col.css +2 -1
  171. package/dist/collection/components/spw-footer/spw-footer-content-col/spw-footer-content-col.js +1 -1
  172. package/dist/collection/components/spw-footer/spw-footer-link/spw-footer-link.css +2 -1
  173. package/dist/collection/components/spw-footer/spw-footer-link/spw-footer-link.js +1 -1
  174. package/dist/collection/components/spw-footer/spw-footer.css +2 -1
  175. package/dist/collection/components/spw-footer/spw-footer.js +1 -1
  176. package/dist/collection/components/spw-grid/spw-grid-item/spw-grid-item.css +2 -1
  177. package/dist/collection/components/spw-grid/spw-grid-item/spw-grid-item.js +2 -2
  178. package/dist/collection/components/spw-grid/spw-grid.css +2 -1
  179. package/dist/collection/components/spw-grid/spw-grid.js +2 -2
  180. package/dist/collection/components/spw-group/spw-group.css +2 -1
  181. package/dist/collection/components/spw-group/spw-group.js +196 -2
  182. package/dist/collection/components/spw-header/spw-header-lang/spw-header-lang.css +2 -1
  183. package/dist/collection/components/spw-header/spw-header-lang/spw-header-lang.js +44 -4
  184. package/dist/collection/components/spw-header/spw-header-navigation/spw-header-navigation.css +81 -3
  185. package/dist/collection/components/spw-header/spw-header-navigation/spw-header-navigation.js +226 -7
  186. package/dist/collection/components/spw-header/spw-header-navigation-dropdown/spw-header-navigation-dropdown.css +2 -1
  187. package/dist/collection/components/spw-header/spw-header-navigation-dropdown/spw-header-navigation-dropdown.js +3 -2
  188. package/dist/collection/components/spw-header/spw-header-navigation-item/spw-header-navigation-item.css +125 -18
  189. package/dist/collection/components/spw-header/spw-header-navigation-item/spw-header-navigation-item.js +97 -22
  190. package/dist/collection/components/spw-header/spw-header-persona/spw-header-persona.css +16 -1
  191. package/dist/collection/components/spw-header/spw-header-persona/spw-header-persona.js +303 -6
  192. package/dist/collection/components/spw-header/spw-header-persona-item/spw-header-persona-item.css +2 -1
  193. package/dist/collection/components/spw-header/spw-header-persona-item/spw-header-persona-item.js +1 -1
  194. package/dist/collection/components/spw-header/spw-header.css +21 -1
  195. package/dist/collection/components/spw-header/spw-header.js +5 -2
  196. package/dist/collection/components/spw-hero/spw-hero.css +2 -1
  197. package/dist/collection/components/spw-hero/spw-hero.js +3 -3
  198. package/dist/collection/components/spw-icon/spw-icon.css +2 -1
  199. package/dist/collection/components/spw-icon/spw-icon.js +3 -3
  200. package/dist/collection/components/spw-illustration/spw-illustration.css +2 -1
  201. package/dist/collection/components/spw-input-slider/spw-input-slider.css +13 -1
  202. package/dist/collection/components/spw-input-slider/spw-input-slider.js +25 -2
  203. package/dist/collection/components/spw-lightbox/spw-lightbox-item/spw-lightbox-item.css +4 -4
  204. package/dist/collection/components/spw-lightbox/spw-lightbox-item/spw-lightbox-item.js +1 -1
  205. package/dist/collection/components/spw-lightbox/spw-lightbox.css +2 -1
  206. package/dist/collection/components/spw-lightbox/spw-lightbox.js +4 -4
  207. package/dist/collection/components/spw-link/spw-link.css +2 -1
  208. package/dist/collection/components/spw-link/spw-link.js +1 -1
  209. package/dist/collection/components/spw-list/spw-list-description/spw-list-description.css +2 -1
  210. package/dist/collection/components/spw-list/spw-list-description/spw-list-description.js +1 -1
  211. package/dist/collection/components/spw-list/spw-list-item/spw-list-item.css +2 -1
  212. package/dist/collection/components/spw-list/spw-list-item/spw-list-item.js +1 -1
  213. package/dist/collection/components/spw-list/spw-list-title/spw-list-title.css +2 -1
  214. package/dist/collection/components/spw-list/spw-list-title/spw-list-title.js +1 -1
  215. package/dist/collection/components/spw-list/spw-list.css +2 -1
  216. package/dist/collection/components/spw-list/spw-list.js +1 -1
  217. package/dist/collection/components/spw-loading/spw-loading.css +2 -1
  218. package/dist/collection/components/spw-loading/spw-loading.js +1 -1
  219. package/dist/collection/components/spw-message/spw-message.css +2 -1
  220. package/dist/collection/components/spw-modal/spw-modal.css +2 -1
  221. package/dist/collection/components/spw-modal/spw-modal.js +3 -3
  222. package/dist/collection/components/spw-mosaic/spw-mosaic-item/spw-mosaic-item.css +2 -1
  223. package/dist/collection/components/spw-mosaic/spw-mosaic-item/spw-mosaic-item.js +1 -1
  224. package/dist/collection/components/spw-mosaic/spw-mosaic.css +2 -1
  225. package/dist/collection/components/spw-mosaic/spw-mosaic.js +15 -1
  226. package/dist/collection/components/spw-pagination/spw-pagination.css +2 -1
  227. package/dist/collection/components/spw-pagination/spw-pagination.js +50 -6
  228. package/dist/collection/components/spw-radio/spw-radio.css +77 -1
  229. package/dist/collection/components/spw-radio/spw-radio.js +74 -17
  230. package/dist/collection/components/spw-scrolltop/spw-scrolltop.css +2 -1
  231. package/dist/collection/components/spw-scrolltop/spw-scrolltop.js +1 -1
  232. package/dist/collection/components/spw-search-field/spw-search-field.css +2 -1
  233. package/dist/collection/components/spw-search-field/spw-search-field.js +136 -2
  234. package/dist/collection/components/spw-select/spw-select.css +11 -1
  235. package/dist/collection/components/spw-select/spw-select.js +54 -3
  236. package/dist/collection/components/spw-separator/spw-separator.css +2 -1
  237. package/dist/collection/components/spw-separator/spw-separator.js +1 -1
  238. package/dist/collection/components/spw-sidebar/spw-sidebar-navigation-dropdown/spw-sidebar-navigation-dropdown.css +2 -1
  239. package/dist/collection/components/spw-sidebar/spw-sidebar-navigation-dropdown/spw-sidebar-navigation-dropdown.js +1 -1
  240. package/dist/collection/components/spw-sidebar/spw-sidebar-navigation-item/spw-sidebar-navigation-item.css +2 -1
  241. package/dist/collection/components/spw-sidebar/spw-sidebar-navigation-item/spw-sidebar-navigation-item.js +3 -3
  242. package/dist/collection/components/spw-sidebar/spw-sidebar-navigation-separator/spw-sidebar-navigation-separator.css +2 -1
  243. package/dist/collection/components/spw-sidebar/spw-sidebar-navigation-separator/spw-sidebar-navigation-separator.js +1 -1
  244. package/dist/collection/components/spw-sidebar/spw-sidebar.css +2 -1
  245. package/dist/collection/components/spw-sidebar/spw-sidebar.js +1 -1
  246. package/dist/collection/components/spw-sidenav/spw-sidenav-group/spw-sidenav-group.css +2 -1
  247. package/dist/collection/components/spw-sidenav/spw-sidenav-group/spw-sidenav-group.js +2 -2
  248. package/dist/collection/components/spw-sidenav/spw-sidenav-item/spw-sidenav-item.css +2 -1
  249. package/dist/collection/components/spw-sidenav/spw-sidenav-item/spw-sidenav-item.js +47 -3
  250. package/dist/collection/components/spw-sidenav/spw-sidenav.css +2 -1
  251. package/dist/collection/components/spw-sidenav/spw-sidenav.js +2 -2
  252. package/dist/collection/components/spw-skeleton/spw-skeleton.css +2 -1
  253. package/dist/collection/components/spw-skeleton/spw-skeleton.js +1 -1
  254. package/dist/collection/components/spw-slider/spw-slider-item/spw-slider-item.css +2 -1
  255. package/dist/collection/components/spw-slider/spw-slider-item/spw-slider-item.js +1 -1
  256. package/dist/collection/components/spw-slider/spw-slider.css +2 -1
  257. package/dist/collection/components/spw-slider/spw-slider.js +1 -1
  258. package/dist/collection/components/spw-socials/spw-socials.css +2 -1
  259. package/dist/collection/components/spw-socials/spw-socials.js +24 -1
  260. package/dist/collection/components/spw-table/spw-table-body/spw-table-body.css +2 -1
  261. package/dist/collection/components/spw-table/spw-table-body/spw-table-body.js +1 -1
  262. package/dist/collection/components/spw-table/spw-table-cell/spw-table-cell.css +2 -1
  263. package/dist/collection/components/spw-table/spw-table-cell/spw-table-cell.js +1 -1
  264. package/dist/collection/components/spw-table/spw-table-container/spw-table-container.css +2 -1
  265. package/dist/collection/components/spw-table/spw-table-container/spw-table-container.js +1 -1
  266. package/dist/collection/components/spw-table/spw-table-footer/spw-table-footer.css +2 -1
  267. package/dist/collection/components/spw-table/spw-table-footer/spw-table-footer.js +1 -1
  268. package/dist/collection/components/spw-table/spw-table-head/spw-table-head.css +2 -1
  269. package/dist/collection/components/spw-table/spw-table-head/spw-table-head.js +1 -1
  270. package/dist/collection/components/spw-table/spw-table-header/spw-table-header.css +2 -1
  271. package/dist/collection/components/spw-table/spw-table-header/spw-table-header.js +2 -2
  272. package/dist/collection/components/spw-table/spw-table-row/spw-table-row.css +2 -1
  273. package/dist/collection/components/spw-table/spw-table-row/spw-table-row.js +1 -1
  274. package/dist/collection/components/spw-table/spw-table-sidebar/spw-table-sidebar.css +2 -1
  275. package/dist/collection/components/spw-table/spw-table-sidebar/spw-table-sidebar.js +1 -1
  276. package/dist/collection/components/spw-table/spw-table.css +2 -1
  277. package/dist/collection/components/spw-table/spw-table.js +24 -2
  278. package/dist/collection/components/spw-tabs/spw-tabs-content/spw-tabs-content.css +2 -1
  279. package/dist/collection/components/spw-tabs/spw-tabs-navigation/spw-tabs-navigation.css +2 -1
  280. package/dist/collection/components/spw-tabs/spw-tabs-navigation/spw-tabs-navigation.js +45 -1
  281. package/dist/collection/components/spw-tabs/spw-tabs-navigation-item/spw-tabs-navigation-item.css +2 -1
  282. package/dist/collection/components/spw-tabs/spw-tabs-navigation-item/spw-tabs-navigation-item.js +1 -1
  283. package/dist/collection/components/spw-tabs/spw-tabs.css +2 -1
  284. package/dist/collection/components/spw-tabs/spw-tabs.js +1 -1
  285. package/dist/collection/components/spw-tag/spw-tag.css +2 -1
  286. package/dist/collection/components/spw-tag/spw-tag.js +1 -1
  287. package/dist/collection/components/spw-text-field/spw-text-field.css +8 -1
  288. package/dist/collection/components/spw-text-field/spw-text-field.js +63 -5
  289. package/dist/collection/components/spw-textarea/spw-textarea.css +8 -1
  290. package/dist/collection/components/spw-textarea/spw-textarea.js +36 -2
  291. package/dist/collection/components/spw-theme-provider/spw-theme-provider.js +1 -1
  292. package/dist/collection/components/spw-tile/spw-tile-description/spw-tile-description.css +5 -2
  293. package/dist/collection/components/spw-tile/spw-tile-description/spw-tile-description.js +1 -1
  294. package/dist/collection/components/spw-tile/spw-tile-title/spw-tile-title.css +2 -1
  295. package/dist/collection/components/spw-tile/spw-tile-title/spw-tile-title.js +1 -1
  296. package/dist/collection/components/spw-tile/spw-tile.css +2 -1
  297. package/dist/collection/components/spw-tile/spw-tile.js +1 -1
  298. package/dist/collection/components/spw-timeline/spw-timeline-item/spw-timeline-item.css +2 -1
  299. package/dist/collection/components/spw-timeline/spw-timeline-item/spw-timeline-item.js +2 -2
  300. package/dist/collection/components/spw-timeline/spw-timeline.css +2 -1
  301. package/dist/collection/components/spw-timeline/spw-timeline.js +2 -2
  302. package/dist/collection/components/spw-toast/spw-toast-controller/spw-toast-controller.css +2 -1
  303. package/dist/collection/components/spw-toast/spw-toast-controller/spw-toast-controller.js +26 -3
  304. package/dist/collection/components/spw-toast/spw-toast.css +2 -1
  305. package/dist/collection/components/spw-toc/spw-toc-container/spw-toc-container.css +2 -1
  306. package/dist/collection/components/spw-toc/spw-toc-navigation/spw-toc-navigation.css +2 -1
  307. package/dist/collection/components/spw-toc/spw-toc.css +2 -1
  308. package/dist/collection/components/spw-toc/spw-toc.js +1 -1
  309. package/dist/collection/components/spw-tooltip/spw-tooltip.css +2 -1
  310. package/dist/collection/components/spw-tooltip/spw-tooltip.js +2 -2
  311. package/dist/collection/components/spw-topbar/spw-topbar.css +2 -1
  312. package/dist/collection/components/spw-topbar/spw-topbar.js +1 -1
  313. package/dist/collection/components/spw-wizard/spw-wizard-item/spw-wizard-item.css +2 -1
  314. package/dist/collection/components/spw-wizard/spw-wizard-item/spw-wizard-item.js +1 -1
  315. package/dist/collection/components/spw-wizard/spw-wizard.css +2 -1
  316. package/dist/collection/components/spw-wizard/spw-wizard.js +38 -7
  317. package/dist/collection/css/fonts.css +864 -0
  318. package/dist/collection/css/icons.css +9 -0
  319. package/dist/collection/css/themes/_base.css +41 -0
  320. package/dist/collection/css/themes/bleu-clair.css +11 -0
  321. package/dist/collection/css/themes/bleu.css +11 -0
  322. package/dist/collection/css/themes/gris.css +11 -0
  323. package/dist/collection/css/themes/indigo.css +11 -0
  324. package/dist/collection/css/themes/mauve.css +11 -0
  325. package/dist/collection/css/themes/orange.css +11 -0
  326. package/dist/collection/css/themes/rouge.css +14 -0
  327. package/dist/collection/css/themes/turquoise.css +11 -0
  328. package/dist/collection/css/themes/vert-leger.css +11 -0
  329. package/dist/collection/css/themes/vert.css +11 -0
  330. package/dist/collection/css/tokens.css +721 -0
  331. package/dist/collection/css/utils.css +1 -0
  332. package/dist/collection/scss/_font-awesome.css +9 -0
  333. package/dist/collection/stories/components/spw-avatar/spw-avatar.stories.js +37 -19
  334. package/dist/collection/stories/components/spw-block-content/spw-block-content.stories.js +182 -2
  335. package/dist/collection/stories/components/spw-box/spw-box.stories.js +2 -2
  336. package/dist/collection/stories/components/spw-checkbox/spw-checkbox.stories.js +56 -0
  337. package/dist/collection/stories/components/spw-custom-select/spw-custom-select.stories.js +26 -0
  338. package/dist/collection/stories/components/spw-date-picker/spw-date-picker.stories.js +13 -0
  339. package/dist/collection/stories/components/spw-dropdown/spw-dropdown.stories.js +204 -2
  340. package/dist/collection/stories/components/spw-field-message/spw-field-message.stories.js +79 -0
  341. package/dist/collection/stories/components/spw-input-slider/spw-input-slider.stories.js +13 -0
  342. package/dist/collection/stories/components/spw-radio/spw-radio.stories.js +72 -0
  343. package/dist/collection/stories/components/spw-search-field/spw-search-field.stories.js +31 -0
  344. package/dist/collection/stories/components/spw-select/spw-select.stories.js +19 -0
  345. package/dist/collection/stories/components/spw-text-field/spw-text-field.stories.js +13 -0
  346. package/dist/collection/stories/components/spw-textarea/spw-textarea.stories.js +18 -0
  347. package/dist/collection/stories/organisms/spw-card/spw-card.stories.js +37 -0
  348. package/dist/collection/stories/organisms/spw-group/spw-group.stories.js +38 -0
  349. package/dist/collection/stories/organisms/spw-header/spw-header.stories.js +203 -7
  350. package/dist/collection/stories/organisms/spw-lightbox/spw-lightbox.stories.js +157 -2
  351. package/dist/collection/stories/organisms/spw-slider/spw-slider.stories.js +42 -0
  352. package/dist/collection/stories/organisms/spw-topbar/spw-topbar.stories.js +3 -3
  353. package/dist/collection/testing/style-stub.js +1 -0
  354. package/dist/components/index.js +1 -1
  355. package/dist/components/p-4VcELDQx.js +1 -0
  356. package/dist/components/p-B_uTDHcA.js +1 -0
  357. package/dist/components/p-BdZPkl4n.js +1 -0
  358. package/dist/components/p-BonxooHw.js +1 -0
  359. package/dist/components/p-CYiD2nJQ.js +1 -0
  360. package/dist/components/p-CfKmweJx.js +1 -0
  361. package/dist/components/p-DAWB0-pG.js +1 -0
  362. package/dist/components/p-DH2MpBfs.js +1 -0
  363. package/dist/components/p-DMt00wg0.js +1 -0
  364. package/dist/components/p-DYHvVRuS.js +1 -0
  365. package/dist/components/p-DmF2QI5Y.js +1 -0
  366. package/dist/components/p-Ke4rAvq5.js +1 -0
  367. package/dist/components/p-NPhS3jQG.js +1 -0
  368. package/dist/components/p-xh5qpjPi.js +1 -0
  369. package/dist/components/spw-accordion-content.js +1 -1
  370. package/dist/components/spw-accordion-item.js +1 -1
  371. package/dist/components/spw-accordion-title.js +1 -1
  372. package/dist/components/spw-accordion.js +1 -1
  373. package/dist/components/spw-alert.js +1 -1
  374. package/dist/components/spw-avatar.js +1 -1
  375. package/dist/components/spw-block-content.js +1 -1
  376. package/dist/components/spw-box.js +1 -1
  377. package/dist/components/spw-breadcrumb-item.js +1 -1
  378. package/dist/components/spw-breadcrumb.js +1 -1
  379. package/dist/components/spw-button.js +1 -1
  380. package/dist/components/spw-card-content.js +1 -1
  381. package/dist/components/spw-card-excerpt.js +1 -1
  382. package/dist/components/spw-card-image.js +1 -1
  383. package/dist/components/spw-card-subtag-item.js +1 -1
  384. package/dist/components/spw-card-subtags.js +1 -1
  385. package/dist/components/spw-card-title.js +1 -1
  386. package/dist/components/spw-card.js +1 -1
  387. package/dist/components/spw-checkbox.js +1 -1
  388. package/dist/components/spw-custom-select.js +1 -1
  389. package/dist/components/spw-date-picker.js +1 -1
  390. package/dist/components/spw-drawer.js +1 -1
  391. package/dist/components/spw-dropdown-container.js +1 -1
  392. package/dist/components/spw-dropdown-item.js +1 -1
  393. package/dist/components/spw-dropdown.js +1 -1
  394. package/dist/components/spw-field-label.js +1 -1
  395. package/dist/components/spw-field-message.js +1 -1
  396. package/dist/components/spw-file-upload.js +1 -1
  397. package/dist/components/spw-footer-bottom.js +1 -1
  398. package/dist/components/spw-footer-content-col.js +1 -1
  399. package/dist/components/spw-footer-content.js +1 -1
  400. package/dist/components/spw-footer-link.js +1 -1
  401. package/dist/components/spw-footer.js +1 -1
  402. package/dist/components/spw-grid-item.js +1 -1
  403. package/dist/components/spw-grid.js +1 -1
  404. package/dist/components/spw-group.js +1 -1
  405. package/dist/components/spw-header-lang.js +1 -1
  406. package/dist/components/spw-header-navigation-dropdown.js +1 -1
  407. package/dist/components/spw-header-navigation-item.js +1 -1
  408. package/dist/components/spw-header-navigation.js +1 -1
  409. package/dist/components/spw-header-persona-item.js +1 -1
  410. package/dist/components/spw-header-persona.js +1 -1
  411. package/dist/components/spw-header.js +1 -1
  412. package/dist/components/spw-hero.js +1 -1
  413. package/dist/components/spw-icon.js +1 -1
  414. package/dist/components/spw-illustration.js +1 -1
  415. package/dist/components/spw-input-slider.js +1 -1
  416. package/dist/components/spw-lightbox-item.js +1 -1
  417. package/dist/components/spw-lightbox.js +1 -1
  418. package/dist/components/spw-link.js +1 -1
  419. package/dist/components/spw-list-description.js +1 -1
  420. package/dist/components/spw-list-item.js +1 -1
  421. package/dist/components/spw-list-title.js +1 -1
  422. package/dist/components/spw-list.js +1 -1
  423. package/dist/components/spw-loading.js +1 -1
  424. package/dist/components/spw-message.js +1 -1
  425. package/dist/components/spw-modal.js +1 -1
  426. package/dist/components/spw-mosaic-item.js +1 -1
  427. package/dist/components/spw-mosaic.js +4 -4
  428. package/dist/components/spw-pagination.js +1 -1
  429. package/dist/components/spw-radio.js +1 -1
  430. package/dist/components/spw-scrolltop.js +1 -1
  431. package/dist/components/spw-search-field.js +1 -1
  432. package/dist/components/spw-select.js +1 -1
  433. package/dist/components/spw-separator.js +1 -1
  434. package/dist/components/spw-sidebar-navigation-dropdown.js +1 -1
  435. package/dist/components/spw-sidebar-navigation-item.js +1 -1
  436. package/dist/components/spw-sidebar-navigation-separator.js +1 -1
  437. package/dist/components/spw-sidebar.js +1 -1
  438. package/dist/components/spw-sidenav-group.js +1 -1
  439. package/dist/components/spw-sidenav-item.js +1 -1
  440. package/dist/components/spw-sidenav.js +1 -1
  441. package/dist/components/spw-skeleton.js +1 -1
  442. package/dist/components/spw-slider-item.js +1 -1
  443. package/dist/components/spw-slider.js +1 -1
  444. package/dist/components/spw-socials.js +1 -1
  445. package/dist/components/spw-table-body.js +1 -1
  446. package/dist/components/spw-table-cell.js +1 -1
  447. package/dist/components/spw-table-container.js +1 -1
  448. package/dist/components/spw-table-footer.js +1 -1
  449. package/dist/components/spw-table-head.js +1 -1
  450. package/dist/components/spw-table-header.js +1 -1
  451. package/dist/components/spw-table-row.js +1 -1
  452. package/dist/components/spw-table-sidebar.js +1 -1
  453. package/dist/components/spw-table.js +1 -1
  454. package/dist/components/spw-tabs-content.js +1 -1
  455. package/dist/components/spw-tabs-navigation-item.js +1 -1
  456. package/dist/components/spw-tabs-navigation.js +1 -1
  457. package/dist/components/spw-tabs.js +1 -1
  458. package/dist/components/spw-tag.js +1 -1
  459. package/dist/components/spw-text-field.js +1 -1
  460. package/dist/components/spw-textarea.js +1 -1
  461. package/dist/components/spw-theme-provider.js +1 -1
  462. package/dist/components/spw-tile-description.js +1 -1
  463. package/dist/components/spw-tile-title.js +1 -1
  464. package/dist/components/spw-tile.js +1 -1
  465. package/dist/components/spw-timeline-item.js +1 -1
  466. package/dist/components/spw-timeline.js +1 -1
  467. package/dist/components/spw-toast-controller.js +1 -1
  468. package/dist/components/spw-toast.js +1 -1
  469. package/dist/components/spw-toc-container.js +1 -1
  470. package/dist/components/spw-toc-navigation.js +1 -1
  471. package/dist/components/spw-toc.js +1 -1
  472. package/dist/components/spw-tooltip.js +1 -1
  473. package/dist/components/spw-topbar.js +1 -1
  474. package/dist/components/spw-wizard-item.js +1 -1
  475. package/dist/components/spw-wizard.js +1 -1
  476. package/dist/components_json.json +2045 -369
  477. package/dist/esm/app-globals-DQuL1Twl.js +3 -0
  478. package/dist/esm/index-BTkpN1hH.js +3267 -0
  479. package/dist/esm/loader.js +4 -3
  480. package/dist/esm/spw-accordion-content.entry.js +91 -0
  481. package/dist/esm/spw-accordion-item.entry.js +248 -0
  482. package/dist/esm/spw-accordion-title.entry.js +21 -0
  483. package/dist/esm/spw-accordion.entry.js +66 -0
  484. package/dist/esm/spw-alert.entry.js +2 -2
  485. package/dist/esm/spw-avatar.entry.js +6 -3
  486. package/dist/esm/spw-block-content.entry.js +6 -3
  487. package/dist/esm/spw-box.entry.js +6 -4
  488. package/dist/esm/spw-breadcrumb-item.entry.js +3 -3
  489. package/dist/esm/spw-breadcrumb.entry.js +3 -3
  490. package/dist/esm/spw-button_2.entry.js +5 -5
  491. package/dist/esm/spw-card-content.entry.js +3 -3
  492. package/dist/esm/spw-card-excerpt.entry.js +3 -3
  493. package/dist/esm/spw-card-image.entry.js +3 -3
  494. package/dist/esm/spw-card-subtag-item.entry.js +3 -3
  495. package/dist/esm/spw-card-subtags.entry.js +90 -16
  496. package/dist/esm/spw-card-title.entry.js +3 -3
  497. package/dist/esm/spw-card.entry.js +22 -6
  498. package/dist/esm/spw-checkbox.entry.js +42 -14
  499. package/dist/esm/spw-custom-select.entry.js +47 -24
  500. package/dist/esm/spw-date-picker.entry.js +58 -12
  501. package/dist/esm/spw-drawer.entry.js +5 -5
  502. package/dist/esm/spw-dropdown-container.entry.js +3 -3
  503. package/dist/esm/spw-dropdown-item.entry.js +19 -5
  504. package/dist/esm/spw-dropdown.entry.js +31 -9
  505. package/dist/esm/spw-field-label_3.entry.js +217 -0
  506. package/dist/esm/spw-file-upload.entry.js +10 -6
  507. package/dist/esm/spw-footer-bottom.entry.js +3 -3
  508. package/dist/esm/spw-footer-content-col.entry.js +3 -3
  509. package/dist/esm/spw-footer-content.entry.js +3 -3
  510. package/dist/esm/spw-footer-link.entry.js +3 -3
  511. package/dist/esm/spw-footer.entry.js +3 -3
  512. package/dist/esm/spw-grid-item.entry.js +4 -4
  513. package/dist/esm/spw-grid.entry.js +4 -4
  514. package/dist/esm/spw-group.entry.js +271 -0
  515. package/dist/esm/spw-header-lang.entry.js +26 -6
  516. package/dist/esm/spw-header-navigation-dropdown.entry.js +5 -4
  517. package/dist/esm/spw-header-navigation-item.entry.js +74 -24
  518. package/dist/esm/spw-header-navigation.entry.js +167 -8
  519. package/dist/esm/spw-header-persona-item.entry.js +3 -3
  520. package/dist/esm/spw-header-persona.entry.js +83 -7
  521. package/dist/esm/spw-header.entry.js +7 -4
  522. package/dist/esm/spw-hero.entry.js +5 -5
  523. package/dist/esm/spw-icon.entry.js +21 -0
  524. package/dist/esm/spw-illustration.entry.js +2 -2
  525. package/dist/esm/spw-input-slider.entry.js +7 -4
  526. package/dist/esm/spw-lightbox-item.entry.js +3 -3
  527. package/dist/esm/spw-lightbox.entry.js +6 -6
  528. package/dist/esm/spw-link.entry.js +48 -0
  529. package/dist/esm/spw-list-description.entry.js +3 -3
  530. package/dist/esm/spw-list-item.entry.js +3 -3
  531. package/dist/esm/spw-list-title.entry.js +3 -3
  532. package/dist/esm/spw-list.entry.js +3 -3
  533. package/dist/esm/spw-message.entry.js +2 -2
  534. package/dist/esm/spw-modal.entry.js +5 -5
  535. package/dist/esm/spw-mosaic-item.entry.js +3 -3
  536. package/dist/esm/spw-mosaic.entry.js +17 -3
  537. package/dist/esm/spw-pagination.entry.js +12 -8
  538. package/dist/esm/spw-radio.entry.js +48 -16
  539. package/dist/esm/spw-scrolltop.entry.js +3 -3
  540. package/dist/esm/spw-search-field.entry.js +18 -4
  541. package/dist/esm/spw-select.entry.js +36 -5
  542. package/dist/esm/spw-separator.entry.js +39 -0
  543. package/dist/esm/spw-sidebar-navigation-dropdown.entry.js +3 -3
  544. package/dist/esm/spw-sidebar-navigation-item.entry.js +5 -5
  545. package/dist/esm/spw-sidebar-navigation-separator.entry.js +3 -3
  546. package/dist/esm/spw-sidebar.entry.js +3 -3
  547. package/dist/esm/spw-sidenav-group.entry.js +4 -4
  548. package/dist/esm/spw-sidenav-item.entry.js +9 -5
  549. package/dist/esm/spw-sidenav.entry.js +4 -4
  550. package/dist/esm/spw-skeleton.entry.js +3 -3
  551. package/dist/esm/spw-slider-item.entry.js +3 -3
  552. package/dist/esm/spw-slider.entry.js +3 -3
  553. package/dist/esm/spw-socials.entry.js +6 -3
  554. package/dist/esm/spw-stencil-library.js +4 -3
  555. package/dist/esm/spw-table-body.entry.js +3 -3
  556. package/dist/esm/spw-table-cell.entry.js +3 -3
  557. package/dist/esm/spw-table-container.entry.js +3 -3
  558. package/dist/esm/spw-table-footer.entry.js +3 -3
  559. package/dist/esm/spw-table-head.entry.js +3 -3
  560. package/dist/esm/spw-table-header.entry.js +4 -4
  561. package/dist/esm/spw-table-row.entry.js +3 -3
  562. package/dist/esm/spw-table-sidebar.entry.js +3 -3
  563. package/dist/esm/spw-table.entry.js +6 -4
  564. package/dist/esm/spw-tabs-content.entry.js +2 -2
  565. package/dist/esm/spw-tabs-navigation-item.entry.js +3 -3
  566. package/dist/esm/spw-tabs-navigation.entry.js +7 -3
  567. package/dist/esm/spw-tabs.entry.js +3 -3
  568. package/dist/esm/spw-tag.entry.js +3 -3
  569. package/dist/esm/spw-text-field.entry.js +25 -7
  570. package/dist/esm/spw-textarea.entry.js +18 -4
  571. package/dist/esm/spw-theme-provider.entry.js +66 -0
  572. package/dist/esm/spw-tile-description.entry.js +3 -3
  573. package/dist/esm/spw-tile-title.entry.js +3 -3
  574. package/dist/esm/spw-tile.entry.js +2 -2
  575. package/dist/esm/spw-timeline-item.entry.js +4 -4
  576. package/dist/esm/spw-timeline.entry.js +4 -4
  577. package/dist/esm/spw-toast-controller.entry.js +7 -4
  578. package/dist/esm/spw-toast.entry.js +2 -2
  579. package/dist/esm/spw-toc-container.entry.js +2 -2
  580. package/dist/esm/spw-toc-navigation.entry.js +2 -2
  581. package/dist/esm/spw-toc.entry.js +3 -3
  582. package/dist/esm/spw-topbar.entry.js +3 -3
  583. package/dist/esm/spw-wizard-item.entry.js +3 -3
  584. package/dist/esm/spw-wizard.entry.js +20 -9
  585. package/dist/spw-stencil-library/assets/images/mockup.png +0 -0
  586. package/dist/spw-stencil-library/css/fonts.css +864 -0
  587. package/dist/spw-stencil-library/css/icons.css +9 -0
  588. package/dist/spw-stencil-library/css/themes/_base.css +41 -0
  589. package/dist/spw-stencil-library/css/themes/bleu-clair.css +11 -0
  590. package/dist/spw-stencil-library/css/themes/bleu.css +11 -0
  591. package/dist/spw-stencil-library/css/themes/gris.css +11 -0
  592. package/dist/spw-stencil-library/css/themes/indigo.css +11 -0
  593. package/dist/spw-stencil-library/css/themes/mauve.css +11 -0
  594. package/dist/spw-stencil-library/css/themes/orange.css +11 -0
  595. package/dist/spw-stencil-library/css/themes/rouge.css +14 -0
  596. package/dist/spw-stencil-library/css/themes/turquoise.css +11 -0
  597. package/dist/spw-stencil-library/css/themes/vert-leger.css +11 -0
  598. package/dist/spw-stencil-library/css/themes/vert.css +11 -0
  599. package/dist/spw-stencil-library/css/tokens.css +721 -0
  600. package/dist/spw-stencil-library/css/utils.css +1 -0
  601. package/dist/spw-stencil-library/p-04e147ed.entry.js +1 -0
  602. package/dist/spw-stencil-library/p-050e5e47.entry.js +1 -0
  603. package/dist/spw-stencil-library/p-063cd841.entry.js +1 -0
  604. package/dist/spw-stencil-library/p-06e67980.entry.js +1 -0
  605. package/dist/spw-stencil-library/{p-34d01701.entry.js → p-0f90fabe.entry.js} +1 -1
  606. package/dist/spw-stencil-library/p-10b725f0.entry.js +1 -0
  607. package/dist/spw-stencil-library/p-10fafb8d.entry.js +1 -0
  608. package/dist/spw-stencil-library/p-128e42d0.entry.js +1 -0
  609. package/dist/spw-stencil-library/p-1454ed61.entry.js +1 -0
  610. package/dist/spw-stencil-library/p-1d78cdf1.entry.js +1 -0
  611. package/dist/spw-stencil-library/p-1e3d3d60.entry.js +1 -0
  612. package/dist/spw-stencil-library/p-1e8d631d.entry.js +1 -0
  613. package/dist/spw-stencil-library/p-1ef0188c.entry.js +1 -0
  614. package/dist/spw-stencil-library/{p-999c3fbf.entry.js → p-2185360c.entry.js} +1 -1
  615. package/dist/spw-stencil-library/p-23e5a517.entry.js +1 -0
  616. package/dist/spw-stencil-library/p-24abc948.entry.js +1 -0
  617. package/dist/spw-stencil-library/p-28057ba5.entry.js +1 -0
  618. package/dist/spw-stencil-library/p-2943e580.entry.js +1 -0
  619. package/dist/spw-stencil-library/{p-21022935.entry.js → p-2c1b1587.entry.js} +1 -1
  620. package/dist/spw-stencil-library/p-2c21e719.entry.js +1 -0
  621. package/dist/spw-stencil-library/p-2c35d983.entry.js +1 -0
  622. package/dist/spw-stencil-library/p-2c3a8493.entry.js +1 -0
  623. package/dist/spw-stencil-library/p-2e1b1270.entry.js +1 -0
  624. package/dist/spw-stencil-library/p-306d80ad.entry.js +1 -0
  625. package/dist/spw-stencil-library/{p-da915195.entry.js → p-30f6c5ce.entry.js} +1 -1
  626. package/dist/spw-stencil-library/p-31f6083c.entry.js +1 -0
  627. package/dist/spw-stencil-library/p-3947b8f6.entry.js +1 -0
  628. package/dist/spw-stencil-library/p-3ae6e273.entry.js +1 -0
  629. package/dist/spw-stencil-library/p-3b3f2967.entry.js +1 -0
  630. package/dist/spw-stencil-library/p-42a2c24e.entry.js +1 -0
  631. package/dist/spw-stencil-library/p-4384a9ff.entry.js +1 -0
  632. package/dist/spw-stencil-library/p-454c8a0d.entry.js +1 -0
  633. package/dist/spw-stencil-library/{p-36225351.entry.js → p-45cf1d86.entry.js} +1 -1
  634. package/dist/spw-stencil-library/p-45fa940e.entry.js +1 -0
  635. package/dist/spw-stencil-library/p-4a02cb72.entry.js +1 -0
  636. package/dist/spw-stencil-library/p-4ae54c87.entry.js +1 -0
  637. package/dist/spw-stencil-library/p-4d8ddcc1.entry.js +1 -0
  638. package/dist/spw-stencil-library/p-4daa95d2.entry.js +1 -0
  639. package/dist/spw-stencil-library/p-53a42df7.entry.js +1 -0
  640. package/dist/spw-stencil-library/p-576676b5.entry.js +1 -0
  641. package/dist/spw-stencil-library/p-5ad022d8.entry.js +1 -0
  642. package/dist/spw-stencil-library/p-5b3d4d15.entry.js +1 -0
  643. package/dist/spw-stencil-library/p-5b52b955.entry.js +1 -0
  644. package/dist/spw-stencil-library/p-62bbc714.entry.js +1 -0
  645. package/dist/spw-stencil-library/p-66df1a03.entry.js +1 -0
  646. package/dist/spw-stencil-library/p-671086ef.entry.js +1 -0
  647. package/dist/spw-stencil-library/p-6712f21e.entry.js +1 -0
  648. package/dist/spw-stencil-library/p-6b664265.entry.js +1 -0
  649. package/dist/spw-stencil-library/p-6e895121.entry.js +1 -0
  650. package/dist/spw-stencil-library/p-70cab89a.entry.js +1 -0
  651. package/dist/spw-stencil-library/p-758b2ce6.entry.js +1 -0
  652. package/dist/spw-stencil-library/p-760b0155.entry.js +1 -0
  653. package/dist/spw-stencil-library/{p-8ecbede1.entry.js → p-77e31cbd.entry.js} +1 -1
  654. package/dist/spw-stencil-library/p-78e5f379.entry.js +1 -0
  655. package/dist/spw-stencil-library/p-79520f1b.entry.js +1 -0
  656. package/dist/spw-stencil-library/p-79740a33.entry.js +1 -0
  657. package/dist/spw-stencil-library/p-7a127906.entry.js +1 -0
  658. package/dist/spw-stencil-library/p-7ab60fcf.entry.js +1 -0
  659. package/dist/spw-stencil-library/p-86561e12.entry.js +1 -0
  660. package/dist/spw-stencil-library/p-883d0bbd.entry.js +1 -0
  661. package/dist/spw-stencil-library/p-894db58f.entry.js +1 -0
  662. package/dist/spw-stencil-library/p-8ebf9cc4.entry.js +1 -0
  663. package/dist/spw-stencil-library/p-954ebcd1.entry.js +1 -0
  664. package/dist/spw-stencil-library/{p-e937613e.entry.js → p-99aaf573.entry.js} +1 -1
  665. package/dist/spw-stencil-library/p-9d00a74e.entry.js +1 -0
  666. package/dist/spw-stencil-library/p-9f5a2163.entry.js +1 -0
  667. package/dist/spw-stencil-library/p-BTkpN1hH.js +2 -0
  668. package/dist/spw-stencil-library/p-DQuL1Twl.js +1 -0
  669. package/dist/spw-stencil-library/p-a40b3ca1.entry.js +1 -0
  670. package/dist/spw-stencil-library/p-a540bbc3.entry.js +1 -0
  671. package/dist/spw-stencil-library/p-a68614f3.entry.js +1 -0
  672. package/dist/spw-stencil-library/p-a96527b6.entry.js +1 -0
  673. package/dist/spw-stencil-library/p-a99b468a.entry.js +1 -0
  674. package/dist/spw-stencil-library/p-a9c3a7f4.entry.js +1 -0
  675. package/dist/spw-stencil-library/{p-f27d6669.entry.js → p-ad835c3f.entry.js} +1 -1
  676. package/dist/spw-stencil-library/p-ae06eeae.entry.js +1 -0
  677. package/dist/spw-stencil-library/p-b54e805f.entry.js +1 -0
  678. package/dist/spw-stencil-library/p-b6ee7aea.entry.js +1 -0
  679. package/dist/spw-stencil-library/p-b7a132fc.entry.js +1 -0
  680. package/dist/spw-stencil-library/p-ba5cadb3.entry.js +1 -0
  681. package/dist/spw-stencil-library/p-bbf67998.entry.js +1 -0
  682. package/dist/spw-stencil-library/p-be144fb2.entry.js +1 -0
  683. package/dist/spw-stencil-library/p-c16bebef.entry.js +1 -0
  684. package/dist/spw-stencil-library/p-c6e2db09.entry.js +1 -0
  685. package/dist/spw-stencil-library/{p-fe51cf75.entry.js → p-c875327d.entry.js} +3 -3
  686. package/dist/spw-stencil-library/p-c961e98d.entry.js +1 -0
  687. package/dist/spw-stencil-library/p-d07d18b9.entry.js +1 -0
  688. package/dist/spw-stencil-library/{p-cdf8b303.entry.js → p-d259b0ec.entry.js} +1 -1
  689. package/dist/spw-stencil-library/p-d50b3a7d.entry.js +1 -0
  690. package/dist/spw-stencil-library/p-d72b839e.entry.js +1 -0
  691. package/dist/{components/p-BqbBUZit.js → spw-stencil-library/p-d867d0a0.entry.js} +1 -1
  692. package/dist/spw-stencil-library/p-db87acf8.entry.js +1 -0
  693. package/dist/spw-stencil-library/p-dbd24548.entry.js +1 -0
  694. package/dist/spw-stencil-library/p-dbffe115.entry.js +1 -0
  695. package/dist/spw-stencil-library/p-df91acd8.entry.js +1 -0
  696. package/dist/spw-stencil-library/p-e35a7aac.entry.js +1 -0
  697. package/dist/spw-stencil-library/p-e4c16f42.entry.js +1 -0
  698. package/dist/spw-stencil-library/p-eb3f1447.entry.js +1 -0
  699. package/dist/spw-stencil-library/p-ec88052d.entry.js +1 -0
  700. package/dist/spw-stencil-library/p-ecdf1acc.entry.js +1 -0
  701. package/dist/spw-stencil-library/{p-07421627.entry.js → p-ed8baa0b.entry.js} +1 -1
  702. package/dist/spw-stencil-library/p-f08dc701.entry.js +1 -0
  703. package/dist/spw-stencil-library/p-f380893d.entry.js +1 -0
  704. package/dist/spw-stencil-library/p-f5a404da.entry.js +1 -0
  705. package/dist/spw-stencil-library/p-fa054765.entry.js +1 -0
  706. package/dist/spw-stencil-library/p-fa71b2de.entry.js +1 -0
  707. package/dist/spw-stencil-library/spw-stencil-library.css +2 -2
  708. package/dist/spw-stencil-library/spw-stencil-library.esm.js +1 -1
  709. package/dist/stats.json +20480 -17324
  710. package/dist/types/components/spw-accordion/spw-accordion-item/spw-accordion-item.d.ts +2 -0
  711. package/dist/types/components/spw-avatar/spw-avatar.d.ts +2 -0
  712. package/dist/types/components/spw-block-content/spw-block-content.d.ts +2 -0
  713. package/dist/types/components/spw-box/spw-box.d.ts +2 -0
  714. package/dist/types/components/spw-card/spw-card-subtags/spw-card-subtags.d.ts +16 -2
  715. package/dist/types/components/spw-card/spw-card.d.ts +11 -3
  716. package/dist/types/components/spw-checkbox/spw-checkbox.d.ts +15 -2
  717. package/dist/types/components/spw-custom-select/spw-custom-select.d.ts +3 -0
  718. package/dist/types/components/spw-date-picker/spw-date-picker.d.ts +12 -0
  719. package/dist/types/components/spw-dropdown/spw-dropdown-item/spw-dropdown-item.d.ts +7 -1
  720. package/dist/types/components/spw-dropdown/spw-dropdown.d.ts +2 -0
  721. package/dist/types/components/spw-file-upload/spw-file-upload.d.ts +4 -0
  722. package/dist/types/components/spw-group/spw-group.d.ts +19 -0
  723. package/dist/types/components/spw-header/spw-header-lang/spw-header-lang.d.ts +4 -0
  724. package/dist/types/components/spw-header/spw-header-navigation/spw-header-navigation.d.ts +27 -1
  725. package/dist/types/components/spw-header/spw-header-navigation-item/spw-header-navigation-item.d.ts +13 -1
  726. package/dist/types/components/spw-header/spw-header-persona/spw-header-persona.d.ts +33 -0
  727. package/dist/types/components/spw-input-slider/spw-input-slider.d.ts +2 -0
  728. package/dist/types/components/spw-mosaic/spw-mosaic.d.ts +3 -0
  729. package/dist/types/components/spw-pagination/spw-pagination.d.ts +4 -0
  730. package/dist/types/components/spw-radio/spw-radio.d.ts +12 -0
  731. package/dist/types/components/spw-search-field/spw-search-field.d.ts +12 -0
  732. package/dist/types/components/spw-select/spw-select.d.ts +6 -0
  733. package/dist/types/components/spw-sidenav/spw-sidenav-item/spw-sidenav-item.d.ts +4 -0
  734. package/dist/types/components/spw-socials/spw-socials.d.ts +2 -0
  735. package/dist/types/components/spw-table/spw-table.d.ts +2 -0
  736. package/dist/types/components/spw-tabs/spw-tabs-navigation/spw-tabs-navigation.d.ts +4 -0
  737. package/dist/types/components/spw-text-field/spw-text-field.d.ts +6 -0
  738. package/dist/types/components/spw-textarea/spw-textarea.d.ts +4 -0
  739. package/dist/types/components/spw-toast/spw-toast-controller/spw-toast-controller.d.ts +3 -0
  740. package/dist/types/components/spw-wizard/spw-wizard.d.ts +3 -0
  741. package/dist/types/components.d.ts +636 -76
  742. package/dist/types/stories/components/spw-avatar/spw-avatar.stories.d.ts +2 -1
  743. package/dist/types/stories/components/spw-block-content/spw-block-content.stories.d.ts +4 -0
  744. package/dist/types/stories/components/spw-checkbox/spw-checkbox.stories.d.ts +3 -0
  745. package/dist/types/stories/components/spw-custom-select/spw-custom-select.stories.d.ts +1 -0
  746. package/dist/types/stories/components/spw-date-picker/spw-date-picker.stories.d.ts +1 -0
  747. package/dist/types/stories/components/spw-dropdown/spw-dropdown.stories.d.ts +6 -0
  748. package/dist/types/stories/components/spw-field-message/spw-field-message.stories.d.ts +3 -1
  749. package/dist/types/stories/components/spw-input-slider/spw-input-slider.stories.d.ts +1 -0
  750. package/dist/types/stories/components/spw-radio/spw-radio.stories.d.ts +2 -0
  751. package/dist/types/stories/components/spw-search-field/spw-search-field.stories.d.ts +3 -1
  752. package/dist/types/stories/components/spw-select/spw-select.stories.d.ts +1 -0
  753. package/dist/types/stories/components/spw-text-field/spw-text-field.stories.d.ts +1 -0
  754. package/dist/types/stories/components/spw-textarea/spw-textarea.stories.d.ts +1 -0
  755. package/dist/types/stories/organisms/spw-card/spw-card.stories.d.ts +1 -0
  756. package/dist/types/stories/organisms/spw-group/spw-group.stories.d.ts +3 -1
  757. package/dist/types/stories/organisms/spw-header/spw-header.stories.d.ts +4 -1
  758. package/dist/types/stories/organisms/spw-lightbox/spw-lightbox.stories.d.ts +4 -0
  759. package/dist/types/stories/organisms/spw-slider/spw-slider.stories.d.ts +1 -0
  760. package/dist/types/testing/style-stub.d.ts +2 -0
  761. package/hydrate/index.js +1296 -486
  762. package/hydrate/index.mjs +1296 -486
  763. package/package.json +34 -4
  764. package/dist/cjs/index-C_UxJk3Q.js +0 -3267
  765. package/dist/cjs/spw-accordion_4.cjs.entry.js +0 -411
  766. package/dist/cjs/spw-cookies.cjs.entry.js +0 -84
  767. package/dist/cjs/spw-field-label_8.cjs.entry.js +0 -531
  768. package/dist/collection/components/spw-cookies/spw-cookies.css +0 -431
  769. package/dist/collection/components/spw-cookies/spw-cookies.js +0 -177
  770. package/dist/components/p-B7VfgMNy.js +0 -1
  771. package/dist/components/p-B9J7xbpQ.js +0 -1
  772. package/dist/components/p-BK5d5dXN.js +0 -1
  773. package/dist/components/p-BSQRkvuQ.js +0 -1
  774. package/dist/components/p-BhpddpYy.js +0 -1
  775. package/dist/components/p-C0Kjwc3C.js +0 -1
  776. package/dist/components/p-CP7K0gLt.js +0 -1
  777. package/dist/components/p-CzRB_COv.js +0 -1
  778. package/dist/components/p-D7kEk_Bq.js +0 -1
  779. package/dist/components/p-D9yobKiX.js +0 -1
  780. package/dist/components/p-DPbnqynk.js +0 -1
  781. package/dist/components/p-DmD0U8OW.js +0 -1
  782. package/dist/components/p-N9GtuZLt.js +0 -1
  783. package/dist/components/p-ngXzYfRV.js +0 -1
  784. package/dist/components/p-yXpAcpXR.js +0 -1
  785. package/dist/components/spw-cookies.d.ts +0 -11
  786. package/dist/components/spw-cookies.js +0 -1
  787. package/dist/components_vscode.json +0 -5851
  788. package/dist/esm/index-DkYGNpnN.js +0 -3238
  789. package/dist/esm/spw-accordion_4.entry.js +0 -406
  790. package/dist/esm/spw-cookies.entry.js +0 -82
  791. package/dist/esm/spw-field-label_8.entry.js +0 -522
  792. package/dist/spw-stencil-library/p-0225eae6.entry.js +0 -1
  793. package/dist/spw-stencil-library/p-0552fb3c.entry.js +0 -1
  794. package/dist/spw-stencil-library/p-05ed7f8c.entry.js +0 -1
  795. package/dist/spw-stencil-library/p-0a8d9ea5.entry.js +0 -1
  796. package/dist/spw-stencil-library/p-0dbd1777.entry.js +0 -1
  797. package/dist/spw-stencil-library/p-17d6836c.entry.js +0 -1
  798. package/dist/spw-stencil-library/p-19d6f92f.entry.js +0 -1
  799. package/dist/spw-stencil-library/p-1e9e9847.entry.js +0 -1
  800. package/dist/spw-stencil-library/p-22b01bfa.entry.js +0 -1
  801. package/dist/spw-stencil-library/p-250704ca.entry.js +0 -1
  802. package/dist/spw-stencil-library/p-2779253d.entry.js +0 -1
  803. package/dist/spw-stencil-library/p-2aeb538a.entry.js +0 -1
  804. package/dist/spw-stencil-library/p-2bf9275b.entry.js +0 -1
  805. package/dist/spw-stencil-library/p-30028ea4.entry.js +0 -1
  806. package/dist/spw-stencil-library/p-30f77b9c.entry.js +0 -1
  807. package/dist/spw-stencil-library/p-335b2f57.entry.js +0 -1
  808. package/dist/spw-stencil-library/p-3b9a184f.entry.js +0 -1
  809. package/dist/spw-stencil-library/p-3d48b3ef.entry.js +0 -1
  810. package/dist/spw-stencil-library/p-3d616279.entry.js +0 -1
  811. package/dist/spw-stencil-library/p-4444edf0.entry.js +0 -1
  812. package/dist/spw-stencil-library/p-50dc5fb5.entry.js +0 -1
  813. package/dist/spw-stencil-library/p-524b1240.entry.js +0 -1
  814. package/dist/spw-stencil-library/p-53723414.entry.js +0 -1
  815. package/dist/spw-stencil-library/p-53e6a62e.entry.js +0 -1
  816. package/dist/spw-stencil-library/p-542dc71f.entry.js +0 -1
  817. package/dist/spw-stencil-library/p-563225aa.entry.js +0 -1
  818. package/dist/spw-stencil-library/p-5ca0e318.entry.js +0 -1
  819. package/dist/spw-stencil-library/p-5e448c5e.entry.js +0 -1
  820. package/dist/spw-stencil-library/p-66695277.entry.js +0 -1
  821. package/dist/spw-stencil-library/p-698fdd22.entry.js +0 -1
  822. package/dist/spw-stencil-library/p-6a837847.entry.js +0 -1
  823. package/dist/spw-stencil-library/p-6f84b402.entry.js +0 -1
  824. package/dist/spw-stencil-library/p-7875efb1.entry.js +0 -1
  825. package/dist/spw-stencil-library/p-79dd218a.entry.js +0 -1
  826. package/dist/spw-stencil-library/p-7a71d533.entry.js +0 -1
  827. package/dist/spw-stencil-library/p-7b495c09.entry.js +0 -1
  828. package/dist/spw-stencil-library/p-7bdca1ab.entry.js +0 -1
  829. package/dist/spw-stencil-library/p-7c1eff67.entry.js +0 -1
  830. package/dist/spw-stencil-library/p-7d205679.entry.js +0 -1
  831. package/dist/spw-stencil-library/p-8300baab.entry.js +0 -1
  832. package/dist/spw-stencil-library/p-89e3b606.entry.js +0 -1
  833. package/dist/spw-stencil-library/p-8ca8cc0a.entry.js +0 -1
  834. package/dist/spw-stencil-library/p-90aa1e04.entry.js +0 -1
  835. package/dist/spw-stencil-library/p-91e66c74.entry.js +0 -1
  836. package/dist/spw-stencil-library/p-932c106b.entry.js +0 -1
  837. package/dist/spw-stencil-library/p-945ae18e.entry.js +0 -1
  838. package/dist/spw-stencil-library/p-9472747a.entry.js +0 -1
  839. package/dist/spw-stencil-library/p-9ad91e29.entry.js +0 -1
  840. package/dist/spw-stencil-library/p-9ce65071.entry.js +0 -1
  841. package/dist/spw-stencil-library/p-9d0eaa1c.entry.js +0 -1
  842. package/dist/spw-stencil-library/p-9e350e36.entry.js +0 -1
  843. package/dist/spw-stencil-library/p-DkYGNpnN.js +0 -2
  844. package/dist/spw-stencil-library/p-a9a5c1d2.entry.js +0 -1
  845. package/dist/spw-stencil-library/p-ae43ace2.entry.js +0 -1
  846. package/dist/spw-stencil-library/p-aef5a5ca.entry.js +0 -1
  847. package/dist/spw-stencil-library/p-b1f68930.entry.js +0 -1
  848. package/dist/spw-stencil-library/p-b2990f3e.entry.js +0 -1
  849. package/dist/spw-stencil-library/p-b2fd6355.entry.js +0 -1
  850. package/dist/spw-stencil-library/p-b5aab148.entry.js +0 -1
  851. package/dist/spw-stencil-library/p-b83ba191.entry.js +0 -1
  852. package/dist/spw-stencil-library/p-bbf86fbe.entry.js +0 -1
  853. package/dist/spw-stencil-library/p-bc40d93c.entry.js +0 -1
  854. package/dist/spw-stencil-library/p-bc6a2c42.entry.js +0 -1
  855. package/dist/spw-stencil-library/p-c4945a0a.entry.js +0 -1
  856. package/dist/spw-stencil-library/p-cc1d8a4f.entry.js +0 -1
  857. package/dist/spw-stencil-library/p-cd1294b1.entry.js +0 -1
  858. package/dist/spw-stencil-library/p-d139d77f.entry.js +0 -1
  859. package/dist/spw-stencil-library/p-d7d88d71.entry.js +0 -1
  860. package/dist/spw-stencil-library/p-d88b1a1f.entry.js +0 -1
  861. package/dist/spw-stencil-library/p-d9e96fbe.entry.js +0 -1
  862. package/dist/spw-stencil-library/p-da502510.entry.js +0 -1
  863. package/dist/spw-stencil-library/p-dcc02bab.entry.js +0 -1
  864. package/dist/spw-stencil-library/p-ddf93cc8.entry.js +0 -1
  865. package/dist/spw-stencil-library/p-de76b09f.entry.js +0 -1
  866. package/dist/spw-stencil-library/p-df0a919c.entry.js +0 -1
  867. package/dist/spw-stencil-library/p-e0cb4c68.entry.js +0 -1
  868. package/dist/spw-stencil-library/p-e35e6628.entry.js +0 -1
  869. package/dist/spw-stencil-library/p-e39126c0.entry.js +0 -1
  870. package/dist/spw-stencil-library/p-ea88e604.entry.js +0 -1
  871. package/dist/spw-stencil-library/p-ee06a1d2.entry.js +0 -1
  872. package/dist/spw-stencil-library/p-f4e9c5f8.entry.js +0 -1
  873. package/dist/spw-stencil-library/p-f548104b.entry.js +0 -1
  874. package/dist/spw-stencil-library/p-f5ef6c0a.entry.js +0 -1
  875. package/dist/spw-stencil-library/p-f75c25d4.entry.js +0 -1
  876. package/dist/spw-stencil-library/p-f9a0ac9b.entry.js +0 -1
  877. package/dist/spw-stencil-library/p-f9d970fb.entry.js +0 -1
  878. package/dist/spw-stencil-library/p-facbc77c.entry.js +0 -1
  879. package/dist/types/components/spw-cookies/spw-cookies.d.ts +0 -21
@@ -0,0 +1,3267 @@
1
+ const NAMESPACE = 'spw-stencil-library';
2
+ const BUILD = /* spw-stencil-library */ { hotModuleReplacement: false, hydratedSelectorName: "hydrated", lazyLoad: true, propChangeCallback: true, slotRelocation: true, state: true, updatable: true};
3
+
4
+ /*
5
+ Stencil Client Platform v4.42.0 | 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
+ var PrimitiveType = /* @__PURE__ */ ((PrimitiveType2) => {
13
+ PrimitiveType2["Undefined"] = "undefined";
14
+ PrimitiveType2["Null"] = "null";
15
+ PrimitiveType2["String"] = "string";
16
+ PrimitiveType2["Number"] = "number";
17
+ PrimitiveType2["SpecialNumber"] = "number";
18
+ PrimitiveType2["Boolean"] = "boolean";
19
+ PrimitiveType2["BigInt"] = "bigint";
20
+ return PrimitiveType2;
21
+ })(PrimitiveType || {});
22
+ var NonPrimitiveType = /* @__PURE__ */ ((NonPrimitiveType2) => {
23
+ NonPrimitiveType2["Array"] = "array";
24
+ NonPrimitiveType2["Date"] = "date";
25
+ NonPrimitiveType2["Map"] = "map";
26
+ NonPrimitiveType2["Object"] = "object";
27
+ NonPrimitiveType2["RegularExpression"] = "regexp";
28
+ NonPrimitiveType2["Set"] = "set";
29
+ NonPrimitiveType2["Channel"] = "channel";
30
+ NonPrimitiveType2["Symbol"] = "symbol";
31
+ return NonPrimitiveType2;
32
+ })(NonPrimitiveType || {});
33
+ var TYPE_CONSTANT = "type";
34
+ var VALUE_CONSTANT = "value";
35
+ var SERIALIZED_PREFIX = "serialized:";
36
+ var reWireGetterSetter = (instance, hostRef) => {
37
+ var _a;
38
+ const cmpMeta = hostRef.$cmpMeta$;
39
+ const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
40
+ members.map(([memberName, [memberFlags]]) => {
41
+ if ((memberFlags & 31 /* Prop */ || memberFlags & 32 /* State */)) {
42
+ const ogValue = instance[memberName];
43
+ const ogDescriptor = getPropertyDescriptor(Object.getPrototypeOf(instance), memberName) || Object.getOwnPropertyDescriptor(instance, memberName);
44
+ if (ogDescriptor) {
45
+ Object.defineProperty(instance, memberName, {
46
+ get() {
47
+ return ogDescriptor.get.call(this);
48
+ },
49
+ set(newValue) {
50
+ ogDescriptor.set.call(this, newValue);
51
+ },
52
+ configurable: true,
53
+ enumerable: true
54
+ });
55
+ }
56
+ instance[memberName] = hostRef.$instanceValues$.has(memberName) ? hostRef.$instanceValues$.get(memberName) : ogValue;
57
+ }
58
+ });
59
+ };
60
+ function getPropertyDescriptor(obj, memberName) {
61
+ while (obj) {
62
+ const desc = Object.getOwnPropertyDescriptor(obj, memberName);
63
+ if (desc == null ? void 0 : desc.get) return desc;
64
+ obj = Object.getPrototypeOf(obj);
65
+ }
66
+ return void 0;
67
+ }
68
+
69
+ // src/client/client-host-ref.ts
70
+ var getHostRef = (ref) => {
71
+ if (ref.__stencil__getHostRef) {
72
+ return ref.__stencil__getHostRef();
73
+ }
74
+ return void 0;
75
+ };
76
+ var registerInstance = (lazyInstance, hostRef) => {
77
+ if (!hostRef) return;
78
+ lazyInstance.__stencil__getHostRef = () => hostRef;
79
+ hostRef.$lazyInstance$ = lazyInstance;
80
+ if (hostRef.$cmpMeta$.$flags$ & 512 /* hasModernPropertyDecls */ && (BUILD.state)) {
81
+ reWireGetterSetter(lazyInstance, hostRef);
82
+ }
83
+ };
84
+ var registerHost = (hostElement, cmpMeta) => {
85
+ const hostRef = {
86
+ $flags$: 0,
87
+ $hostElement$: hostElement,
88
+ $cmpMeta$: cmpMeta,
89
+ $instanceValues$: /* @__PURE__ */ new Map(),
90
+ $serializerValues$: /* @__PURE__ */ new Map()
91
+ };
92
+ {
93
+ hostRef.$onInstancePromise$ = new Promise((r) => hostRef.$onInstanceResolve$ = r);
94
+ }
95
+ {
96
+ hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
97
+ hostElement["s-p"] = [];
98
+ hostElement["s-rc"] = [];
99
+ }
100
+ {
101
+ hostRef.$fetchedCbList$ = [];
102
+ }
103
+ const ref = hostRef;
104
+ hostElement.__stencil__getHostRef = () => ref;
105
+ return ref;
106
+ };
107
+ var isMemberInElement = (elm, memberName) => memberName in elm;
108
+ var consoleError = (e, el) => (0, console.error)(e, el);
109
+
110
+ // src/client/client-load-module.ts
111
+ var cmpModules = /* @__PURE__ */ new Map();
112
+ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
113
+ const exportName = cmpMeta.$tagName$.replace(/-/g, "_");
114
+ const bundleId = cmpMeta.$lazyBundleId$;
115
+ if (!bundleId) {
116
+ return void 0;
117
+ }
118
+ const module = cmpModules.get(bundleId) ;
119
+ if (module) {
120
+ return module[exportName];
121
+ }
122
+
123
+ if (!hmrVersionId || !BUILD.hotModuleReplacement) {
124
+ const processMod = importedModule => {
125
+ cmpModules.set(bundleId, importedModule);
126
+ return importedModule[exportName];
127
+ }
128
+ switch(bundleId) {
129
+
130
+ case 'spw-accordion':
131
+ return import(
132
+ /* webpackMode: "lazy" */
133
+ './spw-accordion.entry.js').then(processMod, consoleError);
134
+ case 'spw-accordion-content':
135
+ return import(
136
+ /* webpackMode: "lazy" */
137
+ './spw-accordion-content.entry.js').then(processMod, consoleError);
138
+ case 'spw-accordion-item':
139
+ return import(
140
+ /* webpackMode: "lazy" */
141
+ './spw-accordion-item.entry.js').then(processMod, consoleError);
142
+ case 'spw-accordion-title':
143
+ return import(
144
+ /* webpackMode: "lazy" */
145
+ './spw-accordion-title.entry.js').then(processMod, consoleError);
146
+ case 'spw-alert':
147
+ return import(
148
+ /* webpackMode: "lazy" */
149
+ './spw-alert.entry.js').then(processMod, consoleError);
150
+ case 'spw-avatar':
151
+ return import(
152
+ /* webpackMode: "lazy" */
153
+ './spw-avatar.entry.js').then(processMod, consoleError);
154
+ case 'spw-block-content':
155
+ return import(
156
+ /* webpackMode: "lazy" */
157
+ './spw-block-content.entry.js').then(processMod, consoleError);
158
+ case 'spw-box':
159
+ return import(
160
+ /* webpackMode: "lazy" */
161
+ './spw-box.entry.js').then(processMod, consoleError);
162
+ case 'spw-breadcrumb':
163
+ return import(
164
+ /* webpackMode: "lazy" */
165
+ './spw-breadcrumb.entry.js').then(processMod, consoleError);
166
+ case 'spw-breadcrumb-item':
167
+ return import(
168
+ /* webpackMode: "lazy" */
169
+ './spw-breadcrumb-item.entry.js').then(processMod, consoleError);
170
+ case 'spw-card':
171
+ return import(
172
+ /* webpackMode: "lazy" */
173
+ './spw-card.entry.js').then(processMod, consoleError);
174
+ case 'spw-card-content':
175
+ return import(
176
+ /* webpackMode: "lazy" */
177
+ './spw-card-content.entry.js').then(processMod, consoleError);
178
+ case 'spw-card-excerpt':
179
+ return import(
180
+ /* webpackMode: "lazy" */
181
+ './spw-card-excerpt.entry.js').then(processMod, consoleError);
182
+ case 'spw-card-image':
183
+ return import(
184
+ /* webpackMode: "lazy" */
185
+ './spw-card-image.entry.js').then(processMod, consoleError);
186
+ case 'spw-card-subtag-item':
187
+ return import(
188
+ /* webpackMode: "lazy" */
189
+ './spw-card-subtag-item.entry.js').then(processMod, consoleError);
190
+ case 'spw-card-subtags':
191
+ return import(
192
+ /* webpackMode: "lazy" */
193
+ './spw-card-subtags.entry.js').then(processMod, consoleError);
194
+ case 'spw-card-title':
195
+ return import(
196
+ /* webpackMode: "lazy" */
197
+ './spw-card-title.entry.js').then(processMod, consoleError);
198
+ case 'spw-custom-select':
199
+ return import(
200
+ /* webpackMode: "lazy" */
201
+ './spw-custom-select.entry.js').then(processMod, consoleError);
202
+ case 'spw-drawer':
203
+ return import(
204
+ /* webpackMode: "lazy" */
205
+ './spw-drawer.entry.js').then(processMod, consoleError);
206
+ case 'spw-dropdown-container':
207
+ return import(
208
+ /* webpackMode: "lazy" */
209
+ './spw-dropdown-container.entry.js').then(processMod, consoleError);
210
+ case 'spw-file-upload':
211
+ return import(
212
+ /* webpackMode: "lazy" */
213
+ './spw-file-upload.entry.js').then(processMod, consoleError);
214
+ case 'spw-footer':
215
+ return import(
216
+ /* webpackMode: "lazy" */
217
+ './spw-footer.entry.js').then(processMod, consoleError);
218
+ case 'spw-footer-bottom':
219
+ return import(
220
+ /* webpackMode: "lazy" */
221
+ './spw-footer-bottom.entry.js').then(processMod, consoleError);
222
+ case 'spw-footer-content':
223
+ return import(
224
+ /* webpackMode: "lazy" */
225
+ './spw-footer-content.entry.js').then(processMod, consoleError);
226
+ case 'spw-footer-content-col':
227
+ return import(
228
+ /* webpackMode: "lazy" */
229
+ './spw-footer-content-col.entry.js').then(processMod, consoleError);
230
+ case 'spw-footer-link':
231
+ return import(
232
+ /* webpackMode: "lazy" */
233
+ './spw-footer-link.entry.js').then(processMod, consoleError);
234
+ case 'spw-grid':
235
+ return import(
236
+ /* webpackMode: "lazy" */
237
+ './spw-grid.entry.js').then(processMod, consoleError);
238
+ case 'spw-grid-item':
239
+ return import(
240
+ /* webpackMode: "lazy" */
241
+ './spw-grid-item.entry.js').then(processMod, consoleError);
242
+ case 'spw-group':
243
+ return import(
244
+ /* webpackMode: "lazy" */
245
+ './spw-group.entry.js').then(processMod, consoleError);
246
+ case 'spw-header':
247
+ return import(
248
+ /* webpackMode: "lazy" */
249
+ './spw-header.entry.js').then(processMod, consoleError);
250
+ case 'spw-header-lang':
251
+ return import(
252
+ /* webpackMode: "lazy" */
253
+ './spw-header-lang.entry.js').then(processMod, consoleError);
254
+ case 'spw-header-navigation':
255
+ return import(
256
+ /* webpackMode: "lazy" */
257
+ './spw-header-navigation.entry.js').then(processMod, consoleError);
258
+ case 'spw-header-navigation-dropdown':
259
+ return import(
260
+ /* webpackMode: "lazy" */
261
+ './spw-header-navigation-dropdown.entry.js').then(processMod, consoleError);
262
+ case 'spw-header-navigation-item':
263
+ return import(
264
+ /* webpackMode: "lazy" */
265
+ './spw-header-navigation-item.entry.js').then(processMod, consoleError);
266
+ case 'spw-header-persona':
267
+ return import(
268
+ /* webpackMode: "lazy" */
269
+ './spw-header-persona.entry.js').then(processMod, consoleError);
270
+ case 'spw-header-persona-item':
271
+ return import(
272
+ /* webpackMode: "lazy" */
273
+ './spw-header-persona-item.entry.js').then(processMod, consoleError);
274
+ case 'spw-hero':
275
+ return import(
276
+ /* webpackMode: "lazy" */
277
+ './spw-hero.entry.js').then(processMod, consoleError);
278
+ case 'spw-illustration':
279
+ return import(
280
+ /* webpackMode: "lazy" */
281
+ './spw-illustration.entry.js').then(processMod, consoleError);
282
+ case 'spw-input-slider':
283
+ return import(
284
+ /* webpackMode: "lazy" */
285
+ './spw-input-slider.entry.js').then(processMod, consoleError);
286
+ case 'spw-lightbox':
287
+ return import(
288
+ /* webpackMode: "lazy" */
289
+ './spw-lightbox.entry.js').then(processMod, consoleError);
290
+ case 'spw-lightbox-item':
291
+ return import(
292
+ /* webpackMode: "lazy" */
293
+ './spw-lightbox-item.entry.js').then(processMod, consoleError);
294
+ case 'spw-list':
295
+ return import(
296
+ /* webpackMode: "lazy" */
297
+ './spw-list.entry.js').then(processMod, consoleError);
298
+ case 'spw-list-description':
299
+ return import(
300
+ /* webpackMode: "lazy" */
301
+ './spw-list-description.entry.js').then(processMod, consoleError);
302
+ case 'spw-list-item':
303
+ return import(
304
+ /* webpackMode: "lazy" */
305
+ './spw-list-item.entry.js').then(processMod, consoleError);
306
+ case 'spw-list-title':
307
+ return import(
308
+ /* webpackMode: "lazy" */
309
+ './spw-list-title.entry.js').then(processMod, consoleError);
310
+ case 'spw-modal':
311
+ return import(
312
+ /* webpackMode: "lazy" */
313
+ './spw-modal.entry.js').then(processMod, consoleError);
314
+ case 'spw-mosaic-item':
315
+ return import(
316
+ /* webpackMode: "lazy" */
317
+ './spw-mosaic-item.entry.js').then(processMod, consoleError);
318
+ case 'spw-pagination':
319
+ return import(
320
+ /* webpackMode: "lazy" */
321
+ './spw-pagination.entry.js').then(processMod, consoleError);
322
+ case 'spw-radio':
323
+ return import(
324
+ /* webpackMode: "lazy" */
325
+ './spw-radio.entry.js').then(processMod, consoleError);
326
+ case 'spw-scrolltop':
327
+ return import(
328
+ /* webpackMode: "lazy" */
329
+ './spw-scrolltop.entry.js').then(processMod, consoleError);
330
+ case 'spw-search-field':
331
+ return import(
332
+ /* webpackMode: "lazy" */
333
+ './spw-search-field.entry.js').then(processMod, consoleError);
334
+ case 'spw-select':
335
+ return import(
336
+ /* webpackMode: "lazy" */
337
+ './spw-select.entry.js').then(processMod, consoleError);
338
+ case 'spw-sidebar':
339
+ return import(
340
+ /* webpackMode: "lazy" */
341
+ './spw-sidebar.entry.js').then(processMod, consoleError);
342
+ case 'spw-sidebar-navigation-dropdown':
343
+ return import(
344
+ /* webpackMode: "lazy" */
345
+ './spw-sidebar-navigation-dropdown.entry.js').then(processMod, consoleError);
346
+ case 'spw-sidebar-navigation-item':
347
+ return import(
348
+ /* webpackMode: "lazy" */
349
+ './spw-sidebar-navigation-item.entry.js').then(processMod, consoleError);
350
+ case 'spw-sidebar-navigation-separator':
351
+ return import(
352
+ /* webpackMode: "lazy" */
353
+ './spw-sidebar-navigation-separator.entry.js').then(processMod, consoleError);
354
+ case 'spw-sidenav':
355
+ return import(
356
+ /* webpackMode: "lazy" */
357
+ './spw-sidenav.entry.js').then(processMod, consoleError);
358
+ case 'spw-sidenav-group':
359
+ return import(
360
+ /* webpackMode: "lazy" */
361
+ './spw-sidenav-group.entry.js').then(processMod, consoleError);
362
+ case 'spw-sidenav-item':
363
+ return import(
364
+ /* webpackMode: "lazy" */
365
+ './spw-sidenav-item.entry.js').then(processMod, consoleError);
366
+ case 'spw-slider':
367
+ return import(
368
+ /* webpackMode: "lazy" */
369
+ './spw-slider.entry.js').then(processMod, consoleError);
370
+ case 'spw-slider-item':
371
+ return import(
372
+ /* webpackMode: "lazy" */
373
+ './spw-slider-item.entry.js').then(processMod, consoleError);
374
+ case 'spw-socials':
375
+ return import(
376
+ /* webpackMode: "lazy" */
377
+ './spw-socials.entry.js').then(processMod, consoleError);
378
+ case 'spw-table':
379
+ return import(
380
+ /* webpackMode: "lazy" */
381
+ './spw-table.entry.js').then(processMod, consoleError);
382
+ case 'spw-table-body':
383
+ return import(
384
+ /* webpackMode: "lazy" */
385
+ './spw-table-body.entry.js').then(processMod, consoleError);
386
+ case 'spw-table-cell':
387
+ return import(
388
+ /* webpackMode: "lazy" */
389
+ './spw-table-cell.entry.js').then(processMod, consoleError);
390
+ case 'spw-table-container':
391
+ return import(
392
+ /* webpackMode: "lazy" */
393
+ './spw-table-container.entry.js').then(processMod, consoleError);
394
+ case 'spw-table-footer':
395
+ return import(
396
+ /* webpackMode: "lazy" */
397
+ './spw-table-footer.entry.js').then(processMod, consoleError);
398
+ case 'spw-table-head':
399
+ return import(
400
+ /* webpackMode: "lazy" */
401
+ './spw-table-head.entry.js').then(processMod, consoleError);
402
+ case 'spw-table-header':
403
+ return import(
404
+ /* webpackMode: "lazy" */
405
+ './spw-table-header.entry.js').then(processMod, consoleError);
406
+ case 'spw-table-row':
407
+ return import(
408
+ /* webpackMode: "lazy" */
409
+ './spw-table-row.entry.js').then(processMod, consoleError);
410
+ case 'spw-table-sidebar':
411
+ return import(
412
+ /* webpackMode: "lazy" */
413
+ './spw-table-sidebar.entry.js').then(processMod, consoleError);
414
+ case 'spw-tabs':
415
+ return import(
416
+ /* webpackMode: "lazy" */
417
+ './spw-tabs.entry.js').then(processMod, consoleError);
418
+ case 'spw-tabs-content':
419
+ return import(
420
+ /* webpackMode: "lazy" */
421
+ './spw-tabs-content.entry.js').then(processMod, consoleError);
422
+ case 'spw-tabs-navigation':
423
+ return import(
424
+ /* webpackMode: "lazy" */
425
+ './spw-tabs-navigation.entry.js').then(processMod, consoleError);
426
+ case 'spw-tabs-navigation-item':
427
+ return import(
428
+ /* webpackMode: "lazy" */
429
+ './spw-tabs-navigation-item.entry.js').then(processMod, consoleError);
430
+ case 'spw-textarea':
431
+ return import(
432
+ /* webpackMode: "lazy" */
433
+ './spw-textarea.entry.js').then(processMod, consoleError);
434
+ case 'spw-tile':
435
+ return import(
436
+ /* webpackMode: "lazy" */
437
+ './spw-tile.entry.js').then(processMod, consoleError);
438
+ case 'spw-tile-description':
439
+ return import(
440
+ /* webpackMode: "lazy" */
441
+ './spw-tile-description.entry.js').then(processMod, consoleError);
442
+ case 'spw-tile-title':
443
+ return import(
444
+ /* webpackMode: "lazy" */
445
+ './spw-tile-title.entry.js').then(processMod, consoleError);
446
+ case 'spw-timeline':
447
+ return import(
448
+ /* webpackMode: "lazy" */
449
+ './spw-timeline.entry.js').then(processMod, consoleError);
450
+ case 'spw-timeline-item':
451
+ return import(
452
+ /* webpackMode: "lazy" */
453
+ './spw-timeline-item.entry.js').then(processMod, consoleError);
454
+ case 'spw-toast-controller':
455
+ return import(
456
+ /* webpackMode: "lazy" */
457
+ './spw-toast-controller.entry.js').then(processMod, consoleError);
458
+ case 'spw-toc':
459
+ return import(
460
+ /* webpackMode: "lazy" */
461
+ './spw-toc.entry.js').then(processMod, consoleError);
462
+ case 'spw-toc-container':
463
+ return import(
464
+ /* webpackMode: "lazy" */
465
+ './spw-toc-container.entry.js').then(processMod, consoleError);
466
+ case 'spw-toc-navigation':
467
+ return import(
468
+ /* webpackMode: "lazy" */
469
+ './spw-toc-navigation.entry.js').then(processMod, consoleError);
470
+ case 'spw-topbar':
471
+ return import(
472
+ /* webpackMode: "lazy" */
473
+ './spw-topbar.entry.js').then(processMod, consoleError);
474
+ case 'spw-wizard':
475
+ return import(
476
+ /* webpackMode: "lazy" */
477
+ './spw-wizard.entry.js').then(processMod, consoleError);
478
+ case 'spw-wizard-item':
479
+ return import(
480
+ /* webpackMode: "lazy" */
481
+ './spw-wizard-item.entry.js').then(processMod, consoleError);
482
+ case 'spw-dropdown-item':
483
+ return import(
484
+ /* webpackMode: "lazy" */
485
+ './spw-dropdown-item.entry.js').then(processMod, consoleError);
486
+ case 'spw-separator':
487
+ return import(
488
+ /* webpackMode: "lazy" */
489
+ './spw-separator.entry.js').then(processMod, consoleError);
490
+ case 'spw-skeleton':
491
+ return import(
492
+ /* webpackMode: "lazy" */
493
+ './spw-skeleton.entry.js').then(processMod, consoleError);
494
+ case 'spw-toast':
495
+ return import(
496
+ /* webpackMode: "lazy" */
497
+ './spw-toast.entry.js').then(processMod, consoleError);
498
+ case 'spw-checkbox':
499
+ return import(
500
+ /* webpackMode: "lazy" */
501
+ './spw-checkbox.entry.js').then(processMod, consoleError);
502
+ case 'spw-dropdown':
503
+ return import(
504
+ /* webpackMode: "lazy" */
505
+ './spw-dropdown.entry.js').then(processMod, consoleError);
506
+ case 'spw-text-field':
507
+ return import(
508
+ /* webpackMode: "lazy" */
509
+ './spw-text-field.entry.js').then(processMod, consoleError);
510
+ case 'spw-tag':
511
+ return import(
512
+ /* webpackMode: "lazy" */
513
+ './spw-tag.entry.js').then(processMod, consoleError);
514
+ case 'spw-link':
515
+ return import(
516
+ /* webpackMode: "lazy" */
517
+ './spw-link.entry.js').then(processMod, consoleError);
518
+ case 'spw-message':
519
+ return import(
520
+ /* webpackMode: "lazy" */
521
+ './spw-message.entry.js').then(processMod, consoleError);
522
+ case 'spw-icon':
523
+ return import(
524
+ /* webpackMode: "lazy" */
525
+ './spw-icon.entry.js').then(processMod, consoleError);
526
+ case 'spw-button_2':
527
+ return import(
528
+ /* webpackMode: "lazy" */
529
+ './spw-button_2.entry.js').then(processMod, consoleError);
530
+ case 'spw-date-picker':
531
+ return import(
532
+ /* webpackMode: "lazy" */
533
+ './spw-date-picker.entry.js').then(processMod, consoleError);
534
+ case 'spw-field-label_3':
535
+ return import(
536
+ /* webpackMode: "lazy" */
537
+ './spw-field-label_3.entry.js').then(processMod, consoleError);
538
+ case 'spw-theme-provider':
539
+ return import(
540
+ /* webpackMode: "lazy" */
541
+ './spw-theme-provider.entry.js').then(processMod, consoleError);
542
+ case 'spw-mosaic':
543
+ return import(
544
+ /* webpackMode: "lazy" */
545
+ './spw-mosaic.entry.js').then(processMod, consoleError);
546
+ }
547
+ }
548
+ return import(
549
+ /* @vite-ignore */
550
+ /* webpackInclude: /\.entry\.js$/ */
551
+ /* webpackExclude: /\.system\.entry\.js$/ */
552
+ /* webpackMode: "lazy" */
553
+ `./${bundleId}.entry.js${""}`
554
+ ).then(
555
+ (importedModule) => {
556
+ {
557
+ cmpModules.set(bundleId, importedModule);
558
+ }
559
+ return importedModule[exportName];
560
+ },
561
+ (e) => {
562
+ consoleError(e, hostRef.$hostElement$);
563
+ }
564
+ );
565
+ };
566
+
567
+ // src/client/client-style.ts
568
+ var styles = /* @__PURE__ */ new Map();
569
+
570
+ // src/runtime/runtime-constants.ts
571
+ var CONTENT_REF_ID = "r";
572
+ var ORG_LOCATION_ID = "o";
573
+ var SLOT_NODE_ID = "s";
574
+ var TEXT_NODE_ID = "t";
575
+ var COMMENT_NODE_ID = "c";
576
+ var HYDRATE_ID = "s-id";
577
+ var HYDRATED_STYLE_ID = "sty-id";
578
+ var HYDRATE_CHILD_ID = "c-id";
579
+ var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
580
+ var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
581
+ var XLINK_NS = "http://www.w3.org/1999/xlink";
582
+ var FORM_ASSOCIATED_CUSTOM_ELEMENT_CALLBACKS = [
583
+ "formAssociatedCallback",
584
+ "formResetCallback",
585
+ "formDisabledCallback",
586
+ "formStateRestoreCallback"
587
+ ];
588
+ var win = typeof window !== "undefined" ? window : {};
589
+ var plt = {
590
+ $flags$: 0,
591
+ $resourcesUrl$: "",
592
+ jmp: (h2) => h2(),
593
+ raf: (h2) => requestAnimationFrame(h2),
594
+ ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
595
+ rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
596
+ ce: (eventName, opts) => new CustomEvent(eventName, opts)
597
+ };
598
+ var supportsListenerOptions = /* @__PURE__ */ (() => {
599
+ var _a;
600
+ let supportsListenerOptions2 = false;
601
+ try {
602
+ (_a = win.document) == null ? void 0 : _a.addEventListener(
603
+ "e",
604
+ null,
605
+ Object.defineProperty({}, "passive", {
606
+ get() {
607
+ supportsListenerOptions2 = true;
608
+ }
609
+ })
610
+ );
611
+ } catch (e) {
612
+ }
613
+ return supportsListenerOptions2;
614
+ })();
615
+ var promiseResolve = (v) => Promise.resolve(v);
616
+ var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
617
+ try {
618
+ if (!win.document.adoptedStyleSheets) {
619
+ return false;
620
+ }
621
+ new CSSStyleSheet();
622
+ return typeof new CSSStyleSheet().replaceSync === "function";
623
+ } catch (e) {
624
+ }
625
+ return false;
626
+ })() ;
627
+ var supportsMutableAdoptedStyleSheets = supportsConstructableStylesheets ? /* @__PURE__ */ (() => !!win.document && Object.getOwnPropertyDescriptor(win.document.adoptedStyleSheets, "length").writable)() : false;
628
+ var queuePending = false;
629
+ var queueDomReads = [];
630
+ var queueDomWrites = [];
631
+ var queueTask = (queue, write) => (cb) => {
632
+ queue.push(cb);
633
+ if (!queuePending) {
634
+ queuePending = true;
635
+ if (write && plt.$flags$ & 4 /* queueSync */) {
636
+ nextTick(flush);
637
+ } else {
638
+ plt.raf(flush);
639
+ }
640
+ }
641
+ };
642
+ var consume = (queue) => {
643
+ for (let i2 = 0; i2 < queue.length; i2++) {
644
+ try {
645
+ queue[i2](performance.now());
646
+ } catch (e) {
647
+ consoleError(e);
648
+ }
649
+ }
650
+ queue.length = 0;
651
+ };
652
+ var flush = () => {
653
+ consume(queueDomReads);
654
+ {
655
+ consume(queueDomWrites);
656
+ if (queuePending = queueDomReads.length > 0) {
657
+ plt.raf(flush);
658
+ }
659
+ }
660
+ };
661
+ var nextTick = (cb) => promiseResolve().then(cb);
662
+ var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
663
+
664
+ // src/utils/style.ts
665
+ function createStyleSheetIfNeededAndSupported(styles2) {
666
+ return void 0;
667
+ }
668
+
669
+ // src/utils/shadow-root.ts
670
+ var globalStyleSheet;
671
+ function createShadowRoot(cmpMeta) {
672
+ var _a;
673
+ const opts = { mode: "open" };
674
+ const shadowRoot = this.attachShadow(opts);
675
+ if (globalStyleSheet === void 0) globalStyleSheet = (_a = createStyleSheetIfNeededAndSupported()) != null ? _a : null;
676
+ if (globalStyleSheet) {
677
+ if (supportsMutableAdoptedStyleSheets) {
678
+ shadowRoot.adoptedStyleSheets.push(globalStyleSheet);
679
+ } else {
680
+ shadowRoot.adoptedStyleSheets = [...shadowRoot.adoptedStyleSheets, globalStyleSheet];
681
+ }
682
+ }
683
+ }
684
+ var updateFallbackSlotVisibility = (elm) => {
685
+ const childNodes = internalCall(elm, "childNodes");
686
+ if (elm.tagName && elm.tagName.includes("-") && elm["s-cr"] && elm.tagName !== "SLOT-FB") {
687
+ getHostSlotNodes(childNodes, elm.tagName).forEach((slotNode) => {
688
+ if (slotNode.nodeType === 1 /* ElementNode */ && slotNode.tagName === "SLOT-FB") {
689
+ if (getSlotChildSiblings(slotNode, getSlotName(slotNode), false).length) {
690
+ slotNode.hidden = true;
691
+ } else {
692
+ slotNode.hidden = false;
693
+ }
694
+ }
695
+ });
696
+ }
697
+ let i2 = 0;
698
+ for (i2 = 0; i2 < childNodes.length; i2++) {
699
+ const childNode = childNodes[i2];
700
+ if (childNode.nodeType === 1 /* ElementNode */ && internalCall(childNode, "childNodes").length) {
701
+ updateFallbackSlotVisibility(childNode);
702
+ }
703
+ }
704
+ };
705
+ var getSlottedChildNodes = (childNodes) => {
706
+ const result = [];
707
+ for (let i2 = 0; i2 < childNodes.length; i2++) {
708
+ const slottedNode = childNodes[i2]["s-nr"] || void 0;
709
+ if (slottedNode && slottedNode.isConnected) {
710
+ result.push(slottedNode);
711
+ }
712
+ }
713
+ return result;
714
+ };
715
+ function getHostSlotNodes(childNodes, hostName, slotName) {
716
+ let i2 = 0;
717
+ let slottedNodes = [];
718
+ let childNode;
719
+ for (; i2 < childNodes.length; i2++) {
720
+ childNode = childNodes[i2];
721
+ if (childNode["s-sr"] && (!hostName || childNode["s-hn"] === hostName) && (slotName === void 0 || getSlotName(childNode) === slotName)) {
722
+ slottedNodes.push(childNode);
723
+ if (typeof slotName !== "undefined") return slottedNodes;
724
+ }
725
+ slottedNodes = [...slottedNodes, ...getHostSlotNodes(childNode.childNodes, hostName, slotName)];
726
+ }
727
+ return slottedNodes;
728
+ }
729
+ var getSlotChildSiblings = (slot, slotName, includeSlot = true) => {
730
+ const childNodes = [];
731
+ if (includeSlot && slot["s-sr"] || !slot["s-sr"]) childNodes.push(slot);
732
+ let node = slot;
733
+ while (node = node.nextSibling) {
734
+ if (getSlotName(node) === slotName && (includeSlot || !node["s-sr"])) childNodes.push(node);
735
+ }
736
+ return childNodes;
737
+ };
738
+ var isNodeLocatedInSlot = (nodeToRelocate, slotName) => {
739
+ if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
740
+ if (nodeToRelocate.getAttribute("slot") === null && slotName === "") {
741
+ return true;
742
+ }
743
+ if (nodeToRelocate.getAttribute("slot") === slotName) {
744
+ return true;
745
+ }
746
+ return false;
747
+ }
748
+ if (nodeToRelocate["s-sn"] === slotName) {
749
+ return true;
750
+ }
751
+ return slotName === "";
752
+ };
753
+ var addSlotRelocateNode = (newChild, slotNode, prepend, position) => {
754
+ if (newChild["s-ol"] && newChild["s-ol"].isConnected) {
755
+ return;
756
+ }
757
+ const slottedNodeLocation = document.createTextNode("");
758
+ slottedNodeLocation["s-nr"] = newChild;
759
+ if (!slotNode["s-cr"] || !slotNode["s-cr"].parentNode) return;
760
+ const parent = slotNode["s-cr"].parentNode;
761
+ const appendMethod = internalCall(parent, "appendChild");
762
+ if (typeof position !== "undefined") {
763
+ slottedNodeLocation["s-oo"] = position;
764
+ const childNodes = internalCall(parent, "childNodes");
765
+ const slotRelocateNodes = [slottedNodeLocation];
766
+ childNodes.forEach((n) => {
767
+ if (n["s-nr"]) slotRelocateNodes.push(n);
768
+ });
769
+ slotRelocateNodes.sort((a, b) => {
770
+ if (!a["s-oo"] || a["s-oo"] < (b["s-oo"] || 0)) return -1;
771
+ else if (!b["s-oo"] || b["s-oo"] < a["s-oo"]) return 1;
772
+ return 0;
773
+ });
774
+ slotRelocateNodes.forEach((n) => appendMethod.call(parent, n));
775
+ } else {
776
+ appendMethod.call(parent, slottedNodeLocation);
777
+ }
778
+ newChild["s-ol"] = slottedNodeLocation;
779
+ newChild["s-sh"] = slotNode["s-hn"];
780
+ };
781
+ var getSlotName = (node) => typeof node["s-sn"] === "string" ? node["s-sn"] : node.nodeType === 1 && node.getAttribute("slot") || void 0;
782
+ function patchSlotNode(node) {
783
+ if (node.assignedElements || node.assignedNodes || !node["s-sr"]) return;
784
+ const assignedFactory = (elementsOnly) => (function(opts) {
785
+ const toReturn = [];
786
+ const slotName = this["s-sn"];
787
+ if (opts == null ? void 0 : opts.flatten) {
788
+ console.error(`
789
+ Flattening is not supported for Stencil non-shadow slots.
790
+ You can use \`.childNodes\` to nested slot fallback content.
791
+ If you have a particular use case, please open an issue on the Stencil repo.
792
+ `);
793
+ }
794
+ const parent = this["s-cr"].parentElement;
795
+ const slottedNodes = parent.__childNodes ? parent.childNodes : getSlottedChildNodes(parent.childNodes);
796
+ slottedNodes.forEach((n) => {
797
+ if (slotName === getSlotName(n)) {
798
+ toReturn.push(n);
799
+ }
800
+ });
801
+ if (elementsOnly) {
802
+ return toReturn.filter((n) => n.nodeType === 1 /* ElementNode */);
803
+ }
804
+ return toReturn;
805
+ }).bind(node);
806
+ node.assignedElements = assignedFactory(true);
807
+ node.assignedNodes = assignedFactory(false);
808
+ }
809
+ function dispatchSlotChangeEvent(elm) {
810
+ elm.dispatchEvent(new CustomEvent("slotchange", { bubbles: false, cancelable: false, composed: false }));
811
+ }
812
+ function findSlotFromSlottedNode(slottedNode, parentHost) {
813
+ var _a;
814
+ parentHost = parentHost || ((_a = slottedNode["s-ol"]) == null ? void 0 : _a.parentElement);
815
+ if (!parentHost) return { slotNode: null, slotName: "" };
816
+ const slotName = slottedNode["s-sn"] = getSlotName(slottedNode) || "";
817
+ const childNodes = internalCall(parentHost, "childNodes");
818
+ const slotNode = getHostSlotNodes(childNodes, parentHost.tagName, slotName)[0];
819
+ return { slotNode, slotName };
820
+ }
821
+ function internalCall(node, method) {
822
+ if ("__" + method in node) {
823
+ const toReturn = node["__" + method];
824
+ if (typeof toReturn !== "function") return toReturn;
825
+ return toReturn.bind(node);
826
+ } else {
827
+ if (typeof node[method] !== "function") return node[method];
828
+ return node[method].bind(node);
829
+ }
830
+ }
831
+ var createTime = (fnName, tagName = "") => {
832
+ {
833
+ return () => {
834
+ return;
835
+ };
836
+ }
837
+ };
838
+ var uniqueTime = (key, measureText) => {
839
+ {
840
+ return () => {
841
+ return;
842
+ };
843
+ }
844
+ };
845
+
846
+ // src/utils/query-nonce-meta-tag-content.ts
847
+ function queryNonceMetaTagContent(doc) {
848
+ var _a, _b, _c;
849
+ 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;
850
+ }
851
+
852
+ // src/runtime/styles.ts
853
+ var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
854
+ var registerStyle = (scopeId2, cssText, allowCS) => {
855
+ let style = styles.get(scopeId2);
856
+ if (supportsConstructableStylesheets && allowCS) {
857
+ style = style || new CSSStyleSheet();
858
+ if (typeof style === "string") {
859
+ style = cssText;
860
+ } else {
861
+ style.replaceSync(cssText);
862
+ }
863
+ } else {
864
+ style = cssText;
865
+ }
866
+ styles.set(scopeId2, style);
867
+ };
868
+ var addStyle = (styleContainerNode, cmpMeta, mode) => {
869
+ var _a, _b, _c;
870
+ const scopeId2 = getScopeId(cmpMeta);
871
+ const style = styles.get(scopeId2);
872
+ if (!win.document) {
873
+ return scopeId2;
874
+ }
875
+ styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
876
+ if (style) {
877
+ if (typeof style === "string") {
878
+ styleContainerNode = styleContainerNode.head || styleContainerNode;
879
+ let appliedStyles = rootAppliedStyles.get(styleContainerNode);
880
+ let styleElm;
881
+ if (!appliedStyles) {
882
+ rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
883
+ }
884
+ const existingStyleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`);
885
+ if (existingStyleElm) {
886
+ existingStyleElm.textContent = style;
887
+ } else if (!appliedStyles.has(scopeId2)) {
888
+ styleElm = win.document.createElement("style");
889
+ styleElm.textContent = style;
890
+ const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
891
+ if (nonce != null) {
892
+ styleElm.setAttribute("nonce", nonce);
893
+ }
894
+ if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
895
+ if (styleContainerNode.nodeName === "HEAD") {
896
+ const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
897
+ const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
898
+ styleContainerNode.insertBefore(
899
+ styleElm,
900
+ (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
901
+ );
902
+ } else if ("host" in styleContainerNode) {
903
+ if (supportsConstructableStylesheets) {
904
+ const currentWindow = (_b = styleContainerNode.defaultView) != null ? _b : styleContainerNode.ownerDocument.defaultView;
905
+ const stylesheet = new currentWindow.CSSStyleSheet();
906
+ stylesheet.replaceSync(style);
907
+ if (supportsMutableAdoptedStyleSheets) {
908
+ styleContainerNode.adoptedStyleSheets.unshift(stylesheet);
909
+ } else {
910
+ styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
911
+ }
912
+ } else {
913
+ const existingStyleContainer = styleContainerNode.querySelector("style");
914
+ if (existingStyleContainer) {
915
+ existingStyleContainer.textContent = style + existingStyleContainer.textContent;
916
+ } else {
917
+ styleContainerNode.prepend(styleElm);
918
+ }
919
+ }
920
+ } else {
921
+ styleContainerNode.append(styleElm);
922
+ }
923
+ }
924
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
925
+ styleContainerNode.insertBefore(styleElm, null);
926
+ }
927
+ if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
928
+ styleElm.textContent += SLOT_FB_CSS;
929
+ }
930
+ if (appliedStyles) {
931
+ appliedStyles.add(scopeId2);
932
+ }
933
+ }
934
+ } else {
935
+ let appliedStyles = rootAppliedStyles.get(styleContainerNode);
936
+ if (!appliedStyles) {
937
+ rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
938
+ }
939
+ if (!appliedStyles.has(scopeId2)) {
940
+ const currentWindow = (_c = styleContainerNode.defaultView) != null ? _c : styleContainerNode.ownerDocument.defaultView;
941
+ let stylesheet;
942
+ if (style.constructor === currentWindow.CSSStyleSheet) {
943
+ stylesheet = style;
944
+ } else {
945
+ stylesheet = new currentWindow.CSSStyleSheet();
946
+ for (let i2 = 0; i2 < style.cssRules.length; i2++) {
947
+ stylesheet.insertRule(style.cssRules[i2].cssText, i2);
948
+ }
949
+ }
950
+ if (supportsMutableAdoptedStyleSheets) {
951
+ styleContainerNode.adoptedStyleSheets.push(stylesheet);
952
+ } else {
953
+ styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, stylesheet];
954
+ }
955
+ appliedStyles.add(scopeId2);
956
+ if ("host" in styleContainerNode) {
957
+ const ssrStyleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`);
958
+ if (ssrStyleElm) {
959
+ writeTask(() => ssrStyleElm.remove());
960
+ }
961
+ }
962
+ }
963
+ }
964
+ }
965
+ return scopeId2;
966
+ };
967
+ var attachStyles = (hostRef) => {
968
+ const cmpMeta = hostRef.$cmpMeta$;
969
+ const elm = hostRef.$hostElement$;
970
+ const flags = cmpMeta.$flags$;
971
+ const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
972
+ const scopeId2 = addStyle(
973
+ elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
974
+ cmpMeta);
975
+ if (flags & 10 /* needsScopedEncapsulation */) {
976
+ elm["s-sc"] = scopeId2;
977
+ elm.classList.add(scopeId2 + "-h");
978
+ }
979
+ endAttachStyles();
980
+ };
981
+ var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
982
+ var convertScopedToShadow = (css) => css.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g, "$1{");
983
+ var hydrateScopedToShadow = () => {
984
+ if (!win.document) {
985
+ return;
986
+ }
987
+ const styles2 = win.document.querySelectorAll(`[${HYDRATED_STYLE_ID}]`);
988
+ let i2 = 0;
989
+ for (; i2 < styles2.length; i2++) {
990
+ registerStyle(styles2[i2].getAttribute(HYDRATED_STYLE_ID), convertScopedToShadow(styles2[i2].innerHTML), true);
991
+ }
992
+ };
993
+
994
+ // src/utils/helpers.ts
995
+ var isDef = (v) => v != null && v !== void 0;
996
+ var isComplexType = (o) => {
997
+ o = typeof o;
998
+ return o === "object" || o === "function";
999
+ };
1000
+
1001
+ // src/runtime/vdom/h.ts
1002
+ var h = (nodeName, vnodeData, ...children) => {
1003
+ if (typeof nodeName === "string") {
1004
+ nodeName = transformTag(nodeName);
1005
+ }
1006
+ let child = null;
1007
+ let key = null;
1008
+ let slotName = null;
1009
+ let simple = false;
1010
+ let lastSimple = false;
1011
+ const vNodeChildren = [];
1012
+ const walk = (c) => {
1013
+ for (let i2 = 0; i2 < c.length; i2++) {
1014
+ child = c[i2];
1015
+ if (Array.isArray(child)) {
1016
+ walk(child);
1017
+ } else if (child != null && typeof child !== "boolean") {
1018
+ if (simple = typeof nodeName !== "function" && !isComplexType(child)) {
1019
+ child = String(child);
1020
+ }
1021
+ if (simple && lastSimple) {
1022
+ vNodeChildren[vNodeChildren.length - 1].$text$ += child;
1023
+ } else {
1024
+ vNodeChildren.push(simple ? newVNode(null, child) : child);
1025
+ }
1026
+ lastSimple = simple;
1027
+ }
1028
+ }
1029
+ };
1030
+ walk(children);
1031
+ if (vnodeData) {
1032
+ if (vnodeData.key) {
1033
+ key = vnodeData.key;
1034
+ }
1035
+ if (vnodeData.name) {
1036
+ slotName = vnodeData.name;
1037
+ }
1038
+ {
1039
+ const classData = vnodeData.className || vnodeData.class;
1040
+ if (classData) {
1041
+ vnodeData.class = typeof classData !== "object" ? classData : Object.keys(classData).filter((k) => classData[k]).join(" ");
1042
+ }
1043
+ }
1044
+ }
1045
+ if (typeof nodeName === "function") {
1046
+ return nodeName(
1047
+ vnodeData === null ? {} : vnodeData,
1048
+ vNodeChildren,
1049
+ vdomFnUtils
1050
+ );
1051
+ }
1052
+ const vnode = newVNode(nodeName, null);
1053
+ vnode.$attrs$ = vnodeData;
1054
+ if (vNodeChildren.length > 0) {
1055
+ vnode.$children$ = vNodeChildren;
1056
+ }
1057
+ {
1058
+ vnode.$key$ = key;
1059
+ }
1060
+ {
1061
+ vnode.$name$ = slotName;
1062
+ }
1063
+ return vnode;
1064
+ };
1065
+ var newVNode = (tag, text) => {
1066
+ const vnode = {
1067
+ $flags$: 0,
1068
+ $tag$: tag,
1069
+ // Normalize undefined to null to prevent rendering "undefined" as text
1070
+ $text$: text != null ? text : null,
1071
+ $elm$: null,
1072
+ $children$: null
1073
+ };
1074
+ {
1075
+ vnode.$attrs$ = null;
1076
+ }
1077
+ {
1078
+ vnode.$key$ = null;
1079
+ }
1080
+ {
1081
+ vnode.$name$ = null;
1082
+ }
1083
+ return vnode;
1084
+ };
1085
+ var Host = {};
1086
+ var isHost = (node) => node && node.$tag$ === Host;
1087
+ var vdomFnUtils = {
1088
+ forEach: (children, cb) => children.map(convertToPublic).forEach(cb),
1089
+ map: (children, cb) => children.map(convertToPublic).map(cb).map(convertToPrivate)
1090
+ };
1091
+ var convertToPublic = (node) => ({
1092
+ vattrs: node.$attrs$,
1093
+ vchildren: node.$children$,
1094
+ vkey: node.$key$,
1095
+ vname: node.$name$,
1096
+ vtag: node.$tag$,
1097
+ vtext: node.$text$
1098
+ });
1099
+ var convertToPrivate = (node) => {
1100
+ if (typeof node.vtag === "function") {
1101
+ const vnodeData = { ...node.vattrs };
1102
+ if (node.vkey) {
1103
+ vnodeData.key = node.vkey;
1104
+ }
1105
+ if (node.vname) {
1106
+ vnodeData.name = node.vname;
1107
+ }
1108
+ return h(node.vtag, vnodeData, ...node.vchildren || []);
1109
+ }
1110
+ const vnode = newVNode(node.vtag, node.vtext);
1111
+ vnode.$attrs$ = node.vattrs;
1112
+ vnode.$children$ = node.vchildren;
1113
+ vnode.$key$ = node.vkey;
1114
+ vnode.$name$ = node.vname;
1115
+ return vnode;
1116
+ };
1117
+
1118
+ // src/runtime/client-hydrate.ts
1119
+ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
1120
+ var _a, _b, _c, _d;
1121
+ const endHydrate = createTime("hydrateClient", tagName);
1122
+ const shadowRoot = hostElm.shadowRoot;
1123
+ const childRenderNodes = [];
1124
+ const slotNodes = [];
1125
+ const slottedNodes = [];
1126
+ const shadowRootNodes = shadowRoot ? [] : null;
1127
+ const vnode = newVNode(tagName, null);
1128
+ vnode.$elm$ = hostElm;
1129
+ let scopeId2;
1130
+ {
1131
+ const cmpMeta = hostRef.$cmpMeta$;
1132
+ if (cmpMeta && cmpMeta.$flags$ & 10 /* needsScopedEncapsulation */ && hostElm["s-sc"]) {
1133
+ scopeId2 = hostElm["s-sc"];
1134
+ hostElm.classList.add(scopeId2 + "-h");
1135
+ } else if (hostElm["s-sc"]) {
1136
+ delete hostElm["s-sc"];
1137
+ }
1138
+ }
1139
+ if (win.document && (!plt.$orgLocNodes$ || !plt.$orgLocNodes$.size)) {
1140
+ initializeDocumentHydrate(win.document.body, plt.$orgLocNodes$ = /* @__PURE__ */ new Map());
1141
+ }
1142
+ hostElm[HYDRATE_ID] = hostId;
1143
+ hostElm.removeAttribute(HYDRATE_ID);
1144
+ hostRef.$vnode$ = clientHydrate(
1145
+ vnode,
1146
+ childRenderNodes,
1147
+ slotNodes,
1148
+ shadowRootNodes,
1149
+ hostElm,
1150
+ hostElm,
1151
+ hostId,
1152
+ slottedNodes
1153
+ );
1154
+ let crIndex = 0;
1155
+ const crLength = childRenderNodes.length;
1156
+ let childRenderNode;
1157
+ for (crIndex; crIndex < crLength; crIndex++) {
1158
+ childRenderNode = childRenderNodes[crIndex];
1159
+ const orgLocationId = childRenderNode.$hostId$ + "." + childRenderNode.$nodeId$;
1160
+ const orgLocationNode = plt.$orgLocNodes$.get(orgLocationId);
1161
+ const node = childRenderNode.$elm$;
1162
+ if (!shadowRoot) {
1163
+ node["s-hn"] = transformTag(tagName).toUpperCase();
1164
+ if (childRenderNode.$tag$ === "slot") {
1165
+ node["s-cr"] = hostElm["s-cr"];
1166
+ }
1167
+ } else if (((_a = childRenderNode.$tag$) == null ? void 0 : _a.toString().includes("-")) && childRenderNode.$tag$ !== "slot-fb" && !childRenderNode.$elm$.shadowRoot) {
1168
+ const cmpMeta = getHostRef(childRenderNode.$elm$);
1169
+ if (cmpMeta) {
1170
+ const scopeId3 = getScopeId(
1171
+ cmpMeta.$cmpMeta$);
1172
+ const styleSheet = win.document.querySelector(`style[sty-id="${scopeId3}"]`);
1173
+ if (styleSheet) {
1174
+ shadowRootNodes.unshift(styleSheet.cloneNode(true));
1175
+ }
1176
+ }
1177
+ }
1178
+ if (childRenderNode.$tag$ === "slot") {
1179
+ childRenderNode.$name$ = childRenderNode.$elm$["s-sn"] || childRenderNode.$elm$["name"] || null;
1180
+ if (childRenderNode.$children$) {
1181
+ childRenderNode.$flags$ |= 2 /* isSlotFallback */;
1182
+ if (!childRenderNode.$elm$.childNodes.length) {
1183
+ childRenderNode.$children$.forEach((c) => {
1184
+ childRenderNode.$elm$.appendChild(c.$elm$);
1185
+ });
1186
+ }
1187
+ } else {
1188
+ childRenderNode.$flags$ |= 1 /* isSlotReference */;
1189
+ }
1190
+ }
1191
+ if (orgLocationNode && orgLocationNode.isConnected) {
1192
+ if (orgLocationNode.parentElement.shadowRoot && orgLocationNode["s-en"] === "") {
1193
+ orgLocationNode.parentNode.insertBefore(node, orgLocationNode.nextSibling);
1194
+ }
1195
+ orgLocationNode.parentNode.removeChild(orgLocationNode);
1196
+ if (!shadowRoot) {
1197
+ node["s-oo"] = parseInt(childRenderNode.$nodeId$);
1198
+ }
1199
+ }
1200
+ if (orgLocationNode && !orgLocationNode["s-id"]) {
1201
+ plt.$orgLocNodes$.delete(orgLocationId);
1202
+ }
1203
+ }
1204
+ const hosts = [];
1205
+ const snLen = slottedNodes.length;
1206
+ let snIndex = 0;
1207
+ let slotGroup;
1208
+ let snGroupIdx;
1209
+ let snGroupLen;
1210
+ let slottedItem;
1211
+ let currentPos = 0;
1212
+ for (snIndex; snIndex < snLen; snIndex++) {
1213
+ slotGroup = slottedNodes[snIndex];
1214
+ if (!slotGroup || !slotGroup.length) continue;
1215
+ snGroupLen = slotGroup.length;
1216
+ snGroupIdx = 0;
1217
+ for (snGroupIdx; snGroupIdx < snGroupLen; snGroupIdx++) {
1218
+ slottedItem = slotGroup[snGroupIdx];
1219
+ if (!hosts[slottedItem.hostId]) {
1220
+ hosts[slottedItem.hostId] = plt.$orgLocNodes$.get(slottedItem.hostId);
1221
+ }
1222
+ if (!hosts[slottedItem.hostId]) continue;
1223
+ const hostEle = hosts[slottedItem.hostId];
1224
+ if (hostEle.shadowRoot && slottedItem.node.parentElement !== hostEle) {
1225
+ hostEle.insertBefore(slottedItem.node, (_c = (_b = slotGroup[snGroupIdx - 1]) == null ? void 0 : _b.node) == null ? void 0 : _c.nextSibling);
1226
+ }
1227
+ if (!hostEle.shadowRoot || !shadowRoot) {
1228
+ if (!slottedItem.slot["s-cr"]) {
1229
+ slottedItem.slot["s-cr"] = hostEle["s-cr"];
1230
+ if (!slottedItem.slot["s-cr"] && hostEle.shadowRoot) {
1231
+ slottedItem.slot["s-cr"] = hostEle;
1232
+ } else {
1233
+ slottedItem.slot["s-cr"] = (hostEle.__childNodes || hostEle.childNodes)[0];
1234
+ }
1235
+ }
1236
+ addSlotRelocateNode(slottedItem.node, slottedItem.slot, false, slottedItem.node["s-oo"] || currentPos);
1237
+ if (((_d = slottedItem.node.parentElement) == null ? void 0 : _d.shadowRoot) && slottedItem.node["getAttribute"] && slottedItem.node.getAttribute("slot")) {
1238
+ slottedItem.node.removeAttribute("slot");
1239
+ }
1240
+ }
1241
+ currentPos = (slottedItem.node["s-oo"] || currentPos) + 1;
1242
+ }
1243
+ }
1244
+ if (scopeId2 && slotNodes.length) {
1245
+ slotNodes.forEach((slot) => {
1246
+ slot.$elm$.parentElement.classList.add(scopeId2 + "-s");
1247
+ });
1248
+ }
1249
+ if (shadowRoot && !shadowRoot.childNodes.length) {
1250
+ let rnIdex = 0;
1251
+ const rnLen = shadowRootNodes.length;
1252
+ if (rnLen) {
1253
+ for (rnIdex; rnIdex < rnLen; rnIdex++) {
1254
+ const node = shadowRootNodes[rnIdex];
1255
+ if (node) {
1256
+ shadowRoot.appendChild(node);
1257
+ }
1258
+ }
1259
+ Array.from(hostElm.childNodes).forEach((node) => {
1260
+ if (typeof node["s-en"] !== "string" && typeof node["s-sn"] !== "string") {
1261
+ if (node.nodeType === 1 /* ElementNode */ && node.slot && node.hidden) {
1262
+ node.removeAttribute("hidden");
1263
+ } else if (node.nodeType === 8 /* CommentNode */ && !node.nodeValue) {
1264
+ node.parentNode.removeChild(node);
1265
+ }
1266
+ }
1267
+ });
1268
+ }
1269
+ }
1270
+ hostRef.$hostElement$ = hostElm;
1271
+ endHydrate();
1272
+ };
1273
+ var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, node, hostId, slottedNodes = []) => {
1274
+ let childNodeType;
1275
+ let childIdSplt;
1276
+ let childVNode;
1277
+ let i2;
1278
+ const scopeId2 = hostElm["s-sc"];
1279
+ if (node.nodeType === 1 /* ElementNode */) {
1280
+ childNodeType = node.getAttribute(HYDRATE_CHILD_ID);
1281
+ if (childNodeType) {
1282
+ childIdSplt = childNodeType.split(".");
1283
+ if (childIdSplt[0] === hostId || childIdSplt[0] === "0") {
1284
+ childVNode = createSimpleVNode({
1285
+ $flags$: 0,
1286
+ $hostId$: childIdSplt[0],
1287
+ $nodeId$: childIdSplt[1],
1288
+ $depth$: childIdSplt[2],
1289
+ $index$: childIdSplt[3],
1290
+ $tag$: node.tagName.toLowerCase(),
1291
+ $elm$: node,
1292
+ // If we don't add the initial classes to the VNode, the first `vdom-render.ts` patch
1293
+ // won't try to reconcile them. Classes set on the node will be blown away.
1294
+ $attrs$: { class: node.className || "" }
1295
+ });
1296
+ childRenderNodes.push(childVNode);
1297
+ node.removeAttribute(HYDRATE_CHILD_ID);
1298
+ if (!parentVNode.$children$) {
1299
+ parentVNode.$children$ = [];
1300
+ }
1301
+ if (scopeId2 && childIdSplt[0] === hostId) {
1302
+ node["s-si"] = scopeId2;
1303
+ childVNode.$attrs$.class += " " + scopeId2;
1304
+ }
1305
+ const slotName = childVNode.$elm$.getAttribute("s-sn");
1306
+ if (typeof slotName === "string") {
1307
+ if (childVNode.$tag$ === "slot-fb") {
1308
+ addSlot(
1309
+ slotName,
1310
+ childIdSplt[2],
1311
+ childVNode,
1312
+ node,
1313
+ parentVNode,
1314
+ childRenderNodes,
1315
+ slotNodes,
1316
+ shadowRootNodes,
1317
+ slottedNodes
1318
+ );
1319
+ if (scopeId2) {
1320
+ node.classList.add(scopeId2);
1321
+ }
1322
+ }
1323
+ childVNode.$elm$["s-sn"] = slotName;
1324
+ childVNode.$elm$.removeAttribute("s-sn");
1325
+ }
1326
+ if (childVNode.$index$ !== void 0) {
1327
+ parentVNode.$children$[childVNode.$index$] = childVNode;
1328
+ }
1329
+ parentVNode = childVNode;
1330
+ if (shadowRootNodes && childVNode.$depth$ === "0") {
1331
+ shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
1332
+ }
1333
+ }
1334
+ }
1335
+ if (node.shadowRoot) {
1336
+ for (i2 = node.shadowRoot.childNodes.length - 1; i2 >= 0; i2--) {
1337
+ clientHydrate(
1338
+ parentVNode,
1339
+ childRenderNodes,
1340
+ slotNodes,
1341
+ shadowRootNodes,
1342
+ hostElm,
1343
+ node.shadowRoot.childNodes[i2],
1344
+ hostId,
1345
+ slottedNodes
1346
+ );
1347
+ }
1348
+ }
1349
+ const nonShadowNodes = node.__childNodes || node.childNodes;
1350
+ for (i2 = nonShadowNodes.length - 1; i2 >= 0; i2--) {
1351
+ clientHydrate(
1352
+ parentVNode,
1353
+ childRenderNodes,
1354
+ slotNodes,
1355
+ shadowRootNodes,
1356
+ hostElm,
1357
+ nonShadowNodes[i2],
1358
+ hostId,
1359
+ slottedNodes
1360
+ );
1361
+ }
1362
+ } else if (node.nodeType === 8 /* CommentNode */) {
1363
+ childIdSplt = node.nodeValue.split(".");
1364
+ if (childIdSplt[1] === hostId || childIdSplt[1] === "0") {
1365
+ childNodeType = childIdSplt[0];
1366
+ childVNode = createSimpleVNode({
1367
+ $hostId$: childIdSplt[1],
1368
+ $nodeId$: childIdSplt[2],
1369
+ $depth$: childIdSplt[3],
1370
+ $index$: childIdSplt[4] || "0",
1371
+ $elm$: node,
1372
+ $attrs$: null,
1373
+ $children$: null,
1374
+ $key$: null,
1375
+ $name$: null,
1376
+ $tag$: null,
1377
+ $text$: null
1378
+ });
1379
+ if (childNodeType === TEXT_NODE_ID) {
1380
+ childVNode.$elm$ = findCorrespondingNode(node, 3 /* TextNode */);
1381
+ if (childVNode.$elm$ && childVNode.$elm$.nodeType === 3 /* TextNode */) {
1382
+ childVNode.$text$ = childVNode.$elm$.textContent;
1383
+ childRenderNodes.push(childVNode);
1384
+ node.remove();
1385
+ if (hostId === childVNode.$hostId$) {
1386
+ if (!parentVNode.$children$) {
1387
+ parentVNode.$children$ = [];
1388
+ }
1389
+ parentVNode.$children$[childVNode.$index$] = childVNode;
1390
+ }
1391
+ if (shadowRootNodes && childVNode.$depth$ === "0") {
1392
+ shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
1393
+ }
1394
+ }
1395
+ } else if (childNodeType === COMMENT_NODE_ID) {
1396
+ childVNode.$elm$ = findCorrespondingNode(node, 8 /* CommentNode */);
1397
+ if (childVNode.$elm$ && childVNode.$elm$.nodeType === 8 /* CommentNode */) {
1398
+ childRenderNodes.push(childVNode);
1399
+ node.remove();
1400
+ }
1401
+ } else if (childVNode.$hostId$ === hostId) {
1402
+ if (childNodeType === SLOT_NODE_ID) {
1403
+ const slotName = node["s-sn"] = childIdSplt[5] || "";
1404
+ addSlot(
1405
+ slotName,
1406
+ childIdSplt[2],
1407
+ childVNode,
1408
+ node,
1409
+ parentVNode,
1410
+ childRenderNodes,
1411
+ slotNodes,
1412
+ shadowRootNodes,
1413
+ slottedNodes
1414
+ );
1415
+ } else if (childNodeType === CONTENT_REF_ID) {
1416
+ if (shadowRootNodes) {
1417
+ node.remove();
1418
+ } else {
1419
+ hostElm["s-cr"] = node;
1420
+ node["s-cn"] = true;
1421
+ }
1422
+ }
1423
+ }
1424
+ }
1425
+ } else if (parentVNode && parentVNode.$tag$ === "style") {
1426
+ const vnode = newVNode(null, node.textContent);
1427
+ vnode.$elm$ = node;
1428
+ vnode.$index$ = "0";
1429
+ parentVNode.$children$ = [vnode];
1430
+ }
1431
+ return parentVNode;
1432
+ };
1433
+ var initializeDocumentHydrate = (node, orgLocNodes) => {
1434
+ if (node.nodeType === 1 /* ElementNode */) {
1435
+ const componentId = node[HYDRATE_ID] || node.getAttribute(HYDRATE_ID);
1436
+ if (componentId) {
1437
+ orgLocNodes.set(componentId, node);
1438
+ }
1439
+ let i2 = 0;
1440
+ if (node.shadowRoot) {
1441
+ for (; i2 < node.shadowRoot.childNodes.length; i2++) {
1442
+ initializeDocumentHydrate(node.shadowRoot.childNodes[i2], orgLocNodes);
1443
+ }
1444
+ }
1445
+ const nonShadowNodes = node.__childNodes || node.childNodes;
1446
+ for (i2 = 0; i2 < nonShadowNodes.length; i2++) {
1447
+ initializeDocumentHydrate(nonShadowNodes[i2], orgLocNodes);
1448
+ }
1449
+ } else if (node.nodeType === 8 /* CommentNode */) {
1450
+ const childIdSplt = node.nodeValue.split(".");
1451
+ if (childIdSplt[0] === ORG_LOCATION_ID) {
1452
+ orgLocNodes.set(childIdSplt[1] + "." + childIdSplt[2], node);
1453
+ node.nodeValue = "";
1454
+ node["s-en"] = childIdSplt[3];
1455
+ }
1456
+ }
1457
+ };
1458
+ var createSimpleVNode = (vnode) => {
1459
+ const defaultVNode = {
1460
+ $flags$: 0,
1461
+ $hostId$: null,
1462
+ $nodeId$: null,
1463
+ $depth$: null,
1464
+ $index$: "0",
1465
+ $elm$: null,
1466
+ $attrs$: null,
1467
+ $children$: null,
1468
+ $key$: null,
1469
+ $name$: null,
1470
+ $tag$: null,
1471
+ $text$: null
1472
+ };
1473
+ return { ...defaultVNode, ...vnode };
1474
+ };
1475
+ function addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNodes, slotNodes, shadowRootNodes, slottedNodes) {
1476
+ node["s-sr"] = true;
1477
+ childVNode.$name$ = slotName || null;
1478
+ childVNode.$tag$ = "slot";
1479
+ const parentNodeId = (parentVNode == null ? void 0 : parentVNode.$elm$) ? parentVNode.$elm$["s-id"] || parentVNode.$elm$.getAttribute("s-id") : "";
1480
+ if (shadowRootNodes && win.document) {
1481
+ const slot = childVNode.$elm$ = win.document.createElement(childVNode.$tag$);
1482
+ if (childVNode.$name$) {
1483
+ childVNode.$elm$.setAttribute("name", slotName);
1484
+ }
1485
+ if (parentVNode.$elm$.shadowRoot && parentNodeId && parentNodeId !== childVNode.$hostId$) {
1486
+ internalCall(parentVNode.$elm$, "insertBefore")(slot, internalCall(parentVNode.$elm$, "children")[0]);
1487
+ } else {
1488
+ internalCall(internalCall(node, "parentNode"), "insertBefore")(slot, node);
1489
+ }
1490
+ addSlottedNodes(slottedNodes, slotId, slotName, node, childVNode.$hostId$);
1491
+ node.remove();
1492
+ if (childVNode.$depth$ === "0") {
1493
+ shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
1494
+ }
1495
+ } else {
1496
+ const slot = childVNode.$elm$;
1497
+ const shouldMove = parentNodeId && parentNodeId !== childVNode.$hostId$ && parentVNode.$elm$.shadowRoot;
1498
+ addSlottedNodes(slottedNodes, slotId, slotName, node, shouldMove ? parentNodeId : childVNode.$hostId$);
1499
+ patchSlotNode(node);
1500
+ if (shouldMove) {
1501
+ parentVNode.$elm$.insertBefore(slot, parentVNode.$elm$.children[0]);
1502
+ }
1503
+ }
1504
+ childRenderNodes.push(childVNode);
1505
+ slotNodes.push(childVNode);
1506
+ if (!parentVNode.$children$) {
1507
+ parentVNode.$children$ = [];
1508
+ }
1509
+ parentVNode.$children$[childVNode.$index$] = childVNode;
1510
+ }
1511
+ var addSlottedNodes = (slottedNodes, slotNodeId, slotName, slotNode, hostId) => {
1512
+ var _a, _b;
1513
+ let slottedNode = slotNode.nextSibling;
1514
+ slottedNodes[slotNodeId] = slottedNodes[slotNodeId] || [];
1515
+ if (!slottedNode || ((_a = slottedNode.nodeValue) == null ? void 0 : _a.startsWith(SLOT_NODE_ID + "."))) return;
1516
+ do {
1517
+ if (slottedNode && ((slottedNode["getAttribute"] && slottedNode.getAttribute("slot") || slottedNode["s-sn"]) === slotName || slotName === "" && !slottedNode["s-sn"] && (!slottedNode["getAttribute"] || !slottedNode.getAttribute("slot")) && (slottedNode.nodeType === 8 /* CommentNode */ || slottedNode.nodeType === 3 /* TextNode */))) {
1518
+ slottedNode["s-sn"] = slotName;
1519
+ slottedNodes[slotNodeId].push({ slot: slotNode, node: slottedNode, hostId });
1520
+ }
1521
+ slottedNode = slottedNode == null ? void 0 : slottedNode.nextSibling;
1522
+ } while (slottedNode && !((_b = slottedNode.nodeValue) == null ? void 0 : _b.startsWith(SLOT_NODE_ID + ".")));
1523
+ };
1524
+ var findCorrespondingNode = (node, type) => {
1525
+ let sibling = node;
1526
+ do {
1527
+ sibling = sibling.nextSibling;
1528
+ } while (sibling && (sibling.nodeType !== type || !sibling.nodeValue));
1529
+ return sibling;
1530
+ };
1531
+
1532
+ // src/utils/remote-value.ts
1533
+ var RemoteValue = class _RemoteValue {
1534
+ /**
1535
+ * Deserializes a LocalValue serialized object back to its original JavaScript representation
1536
+ *
1537
+ * @param serialized The serialized LocalValue object
1538
+ * @returns The original JavaScript value/object
1539
+ */
1540
+ static fromLocalValue(serialized) {
1541
+ const type = serialized[TYPE_CONSTANT];
1542
+ const value = VALUE_CONSTANT in serialized ? serialized[VALUE_CONSTANT] : void 0;
1543
+ switch (type) {
1544
+ case "string" /* String */:
1545
+ return value;
1546
+ case "boolean" /* Boolean */:
1547
+ return value;
1548
+ case "bigint" /* BigInt */:
1549
+ return BigInt(value);
1550
+ case "undefined" /* Undefined */:
1551
+ return void 0;
1552
+ case "null" /* Null */:
1553
+ return null;
1554
+ case "number" /* Number */:
1555
+ if (value === "NaN") return NaN;
1556
+ if (value === "-0") return -0;
1557
+ if (value === "Infinity") return Infinity;
1558
+ if (value === "-Infinity") return -Infinity;
1559
+ return value;
1560
+ case "array" /* Array */:
1561
+ return value.map((item) => _RemoteValue.fromLocalValue(item));
1562
+ case "date" /* Date */:
1563
+ return new Date(value);
1564
+ case "map" /* Map */:
1565
+ const map = /* @__PURE__ */ new Map();
1566
+ for (const [key, val] of value) {
1567
+ const deserializedKey = typeof key === "object" && key !== null ? _RemoteValue.fromLocalValue(key) : key;
1568
+ const deserializedValue = _RemoteValue.fromLocalValue(val);
1569
+ map.set(deserializedKey, deserializedValue);
1570
+ }
1571
+ return map;
1572
+ case "object" /* Object */:
1573
+ const obj = {};
1574
+ for (const [key, val] of value) {
1575
+ obj[key] = _RemoteValue.fromLocalValue(val);
1576
+ }
1577
+ return obj;
1578
+ case "regexp" /* RegularExpression */:
1579
+ const { pattern, flags } = value;
1580
+ return new RegExp(pattern, flags);
1581
+ case "set" /* Set */:
1582
+ const set = /* @__PURE__ */ new Set();
1583
+ for (const item of value) {
1584
+ set.add(_RemoteValue.fromLocalValue(item));
1585
+ }
1586
+ return set;
1587
+ case "symbol" /* Symbol */:
1588
+ return Symbol(value);
1589
+ default:
1590
+ throw new Error(`Unsupported type: ${type}`);
1591
+ }
1592
+ }
1593
+ /**
1594
+ * Utility method to deserialize multiple LocalValues at once
1595
+ *
1596
+ * @param serializedValues Array of serialized LocalValue objects
1597
+ * @returns Array of deserialized JavaScript values
1598
+ */
1599
+ static fromLocalValueArray(serializedValues) {
1600
+ return serializedValues.map((value) => _RemoteValue.fromLocalValue(value));
1601
+ }
1602
+ /**
1603
+ * Verifies if the given object matches the structure of a serialized LocalValue
1604
+ *
1605
+ * @param obj Object to verify
1606
+ * @returns boolean indicating if the object has LocalValue structure
1607
+ */
1608
+ static isLocalValueObject(obj) {
1609
+ if (typeof obj !== "object" || obj === null) {
1610
+ return false;
1611
+ }
1612
+ if (!obj.hasOwnProperty(TYPE_CONSTANT)) {
1613
+ return false;
1614
+ }
1615
+ const type = obj[TYPE_CONSTANT];
1616
+ const hasTypeProperty = Object.values({ ...PrimitiveType, ...NonPrimitiveType }).includes(type);
1617
+ if (!hasTypeProperty) {
1618
+ return false;
1619
+ }
1620
+ if (type !== "null" /* Null */ && type !== "undefined" /* Undefined */) {
1621
+ return obj.hasOwnProperty(VALUE_CONSTANT);
1622
+ }
1623
+ return true;
1624
+ }
1625
+ };
1626
+
1627
+ // src/utils/serialize.ts
1628
+ function deserializeProperty(value) {
1629
+ if (typeof value !== "string" || !value.startsWith(SERIALIZED_PREFIX)) {
1630
+ return value;
1631
+ }
1632
+ return RemoteValue.fromLocalValue(JSON.parse(atob(value.slice(SERIALIZED_PREFIX.length))));
1633
+ }
1634
+
1635
+ // src/runtime/parse-property-value.ts
1636
+ var parsePropertyValue = (propValue, propType, isFormAssociated) => {
1637
+ if (typeof propValue === "string" && propValue.startsWith(SERIALIZED_PREFIX)) {
1638
+ propValue = deserializeProperty(propValue);
1639
+ return propValue;
1640
+ }
1641
+ if (propValue != null && !isComplexType(propValue)) {
1642
+ if (propType & 4 /* Boolean */) {
1643
+ if (isFormAssociated && typeof propValue === "string") {
1644
+ return propValue === "" || !!propValue;
1645
+ } else {
1646
+ return propValue === "false" ? false : propValue === "" || !!propValue;
1647
+ }
1648
+ }
1649
+ if (propType & 2 /* Number */) {
1650
+ return typeof propValue === "string" ? parseFloat(propValue) : typeof propValue === "number" ? propValue : NaN;
1651
+ }
1652
+ if (propType & 1 /* String */) {
1653
+ return String(propValue);
1654
+ }
1655
+ return propValue;
1656
+ }
1657
+ return propValue;
1658
+ };
1659
+ var getElement = (ref) => {
1660
+ var _a;
1661
+ return (_a = getHostRef(ref)) == null ? void 0 : _a.$hostElement$ ;
1662
+ };
1663
+
1664
+ // src/runtime/event-emitter.ts
1665
+ var createEvent = (ref, name, flags) => {
1666
+ const elm = getElement(ref);
1667
+ return {
1668
+ emit: (detail) => {
1669
+ return emitEvent(elm, name, {
1670
+ bubbles: !!(flags & 4 /* Bubbles */),
1671
+ composed: !!(flags & 2 /* Composed */),
1672
+ cancelable: !!(flags & 1 /* Cancellable */),
1673
+ detail
1674
+ });
1675
+ }
1676
+ };
1677
+ };
1678
+ var emitEvent = (elm, name, opts) => {
1679
+ const ev = plt.ce(name, opts);
1680
+ elm.dispatchEvent(ev);
1681
+ return ev;
1682
+ };
1683
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
1684
+ if (oldValue === newValue) {
1685
+ return;
1686
+ }
1687
+ let isProp = isMemberInElement(elm, memberName);
1688
+ let ln = memberName.toLowerCase();
1689
+ if (memberName === "class") {
1690
+ const classList = elm.classList;
1691
+ const oldClasses = parseClassList(oldValue);
1692
+ let newClasses = parseClassList(newValue);
1693
+ if ((elm["s-si"] || elm["s-sc"]) && initialRender) {
1694
+ const scopeId2 = elm["s-sc"] || elm["s-si"];
1695
+ newClasses.push(scopeId2);
1696
+ oldClasses.forEach((c) => {
1697
+ if (c.startsWith(scopeId2)) newClasses.push(c);
1698
+ });
1699
+ newClasses = [...new Set(newClasses)].filter((c) => c);
1700
+ classList.add(...newClasses);
1701
+ } else {
1702
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
1703
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
1704
+ }
1705
+ } else if (memberName === "style") {
1706
+ {
1707
+ for (const prop in oldValue) {
1708
+ if (!newValue || newValue[prop] == null) {
1709
+ if (prop.includes("-")) {
1710
+ elm.style.removeProperty(prop);
1711
+ } else {
1712
+ elm.style[prop] = "";
1713
+ }
1714
+ }
1715
+ }
1716
+ }
1717
+ for (const prop in newValue) {
1718
+ if (!oldValue || newValue[prop] !== oldValue[prop]) {
1719
+ if (prop.includes("-")) {
1720
+ elm.style.setProperty(prop, newValue[prop]);
1721
+ } else {
1722
+ elm.style[prop] = newValue[prop];
1723
+ }
1724
+ }
1725
+ }
1726
+ } else if (memberName === "key") ; else if (memberName === "ref") {
1727
+ if (newValue) {
1728
+ queueRefAttachment(newValue, elm);
1729
+ }
1730
+ } else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
1731
+ if (memberName[2] === "-") {
1732
+ memberName = memberName.slice(3);
1733
+ } else if (isMemberInElement(win, ln)) {
1734
+ memberName = ln.slice(2);
1735
+ } else {
1736
+ memberName = ln[2] + memberName.slice(3);
1737
+ }
1738
+ if (oldValue || newValue) {
1739
+ const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
1740
+ memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
1741
+ if (oldValue) {
1742
+ plt.rel(elm, memberName, oldValue, capture);
1743
+ }
1744
+ if (newValue) {
1745
+ plt.ael(elm, memberName, newValue, capture);
1746
+ }
1747
+ }
1748
+ } else if (memberName[0] === "a" && memberName.startsWith("attr:")) {
1749
+ const attrName = memberName.slice(5);
1750
+ if (newValue == null || newValue === false) {
1751
+ if (newValue !== false || elm.getAttribute(attrName) === "") {
1752
+ elm.removeAttribute(attrName);
1753
+ }
1754
+ } else {
1755
+ elm.setAttribute(attrName, newValue === true ? "" : newValue);
1756
+ }
1757
+ return;
1758
+ } else if (memberName[0] === "p" && memberName.startsWith("prop:")) {
1759
+ const propName = memberName.slice(5);
1760
+ try {
1761
+ elm[propName] = newValue;
1762
+ } catch (e) {
1763
+ }
1764
+ return;
1765
+ } else {
1766
+ const isComplex = isComplexType(newValue);
1767
+ if ((isProp || isComplex && newValue !== null) && !isSvg) {
1768
+ try {
1769
+ if (!elm.tagName.includes("-")) {
1770
+ const n = newValue == null ? "" : newValue;
1771
+ if (memberName === "list") {
1772
+ isProp = false;
1773
+ } else if (oldValue == null || elm[memberName] !== n) {
1774
+ if (typeof elm.__lookupSetter__(memberName) === "function") {
1775
+ elm[memberName] = n;
1776
+ } else {
1777
+ elm.setAttribute(memberName, n);
1778
+ }
1779
+ }
1780
+ } else if (elm[memberName] !== newValue) {
1781
+ elm[memberName] = newValue;
1782
+ }
1783
+ } catch (e) {
1784
+ }
1785
+ }
1786
+ let xlink = false;
1787
+ {
1788
+ if (ln !== (ln = ln.replace(/^xlink\:?/, ""))) {
1789
+ memberName = ln;
1790
+ xlink = true;
1791
+ }
1792
+ }
1793
+ if (newValue == null || newValue === false) {
1794
+ if (newValue !== false || elm.getAttribute(memberName) === "") {
1795
+ if (xlink) {
1796
+ elm.removeAttributeNS(XLINK_NS, memberName);
1797
+ } else {
1798
+ elm.removeAttribute(memberName);
1799
+ }
1800
+ }
1801
+ } else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex && elm.nodeType === 1 /* ElementNode */) {
1802
+ newValue = newValue === true ? "" : newValue;
1803
+ if (xlink) {
1804
+ elm.setAttributeNS(XLINK_NS, memberName, newValue);
1805
+ } else {
1806
+ elm.setAttribute(memberName, newValue);
1807
+ }
1808
+ }
1809
+ }
1810
+ };
1811
+ var parseClassListRegex = /\s/;
1812
+ var parseClassList = (value) => {
1813
+ if (typeof value === "object" && value && "baseVal" in value) {
1814
+ value = value.baseVal;
1815
+ }
1816
+ if (!value || typeof value !== "string") {
1817
+ return [];
1818
+ }
1819
+ return value.split(parseClassListRegex);
1820
+ };
1821
+ var CAPTURE_EVENT_SUFFIX = "Capture";
1822
+ var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
1823
+
1824
+ // src/runtime/vdom/update-element.ts
1825
+ var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
1826
+ const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
1827
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
1828
+ const newVnodeAttrs = newVnode.$attrs$ || {};
1829
+ {
1830
+ for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
1831
+ if (!(memberName in newVnodeAttrs)) {
1832
+ setAccessor(
1833
+ elm,
1834
+ memberName,
1835
+ oldVnodeAttrs[memberName],
1836
+ void 0,
1837
+ isSvgMode2,
1838
+ newVnode.$flags$,
1839
+ isInitialRender
1840
+ );
1841
+ }
1842
+ }
1843
+ }
1844
+ for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
1845
+ setAccessor(
1846
+ elm,
1847
+ memberName,
1848
+ oldVnodeAttrs[memberName],
1849
+ newVnodeAttrs[memberName],
1850
+ isSvgMode2,
1851
+ newVnode.$flags$,
1852
+ isInitialRender
1853
+ );
1854
+ }
1855
+ };
1856
+ function sortedAttrNames(attrNames) {
1857
+ return attrNames.includes("ref") ? (
1858
+ // we need to sort these to ensure that `'ref'` is the last attr
1859
+ [...attrNames.filter((attr) => attr !== "ref"), "ref"]
1860
+ ) : (
1861
+ // no need to sort, return the original array
1862
+ attrNames
1863
+ );
1864
+ }
1865
+
1866
+ // src/runtime/vdom/vdom-render.ts
1867
+ var scopeId;
1868
+ var contentRef;
1869
+ var hostTagName;
1870
+ var useNativeShadowDom = false;
1871
+ var checkSlotFallbackVisibility = false;
1872
+ var checkSlotRelocate = false;
1873
+ var isSvgMode = false;
1874
+ var refCallbacksToRemove = [];
1875
+ var refCallbacksToAttach = [];
1876
+ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
1877
+ var _a;
1878
+ const newVNode2 = newParentVNode.$children$[childIndex];
1879
+ let i2 = 0;
1880
+ let elm;
1881
+ let childNode;
1882
+ let oldVNode;
1883
+ if (!useNativeShadowDom) {
1884
+ checkSlotRelocate = true;
1885
+ if (newVNode2.$tag$ === "slot") {
1886
+ newVNode2.$flags$ |= newVNode2.$children$ ? (
1887
+ // slot element has fallback content
1888
+ // still create an element that "mocks" the slot element
1889
+ 2 /* isSlotFallback */
1890
+ ) : (
1891
+ // slot element does not have fallback content
1892
+ // create an html comment we'll use to always reference
1893
+ // where actual slot content should sit next to
1894
+ 1 /* isSlotReference */
1895
+ );
1896
+ }
1897
+ }
1898
+ if (newVNode2.$text$ != null) {
1899
+ elm = newVNode2.$elm$ = win.document.createTextNode(newVNode2.$text$);
1900
+ } else if (newVNode2.$flags$ & 1 /* isSlotReference */) {
1901
+ elm = newVNode2.$elm$ = win.document.createTextNode("");
1902
+ {
1903
+ updateElement(null, newVNode2, isSvgMode);
1904
+ }
1905
+ } else {
1906
+ if (!isSvgMode) {
1907
+ isSvgMode = newVNode2.$tag$ === "svg";
1908
+ }
1909
+ if (!win.document) {
1910
+ throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");
1911
+ }
1912
+ elm = newVNode2.$elm$ = win.document.createElementNS(
1913
+ isSvgMode ? SVG_NS : HTML_NS,
1914
+ !useNativeShadowDom && BUILD.slotRelocation && newVNode2.$flags$ & 2 /* isSlotFallback */ ? "slot-fb" : newVNode2.$tag$
1915
+ ) ;
1916
+ if (isSvgMode && newVNode2.$tag$ === "foreignObject") {
1917
+ isSvgMode = false;
1918
+ }
1919
+ {
1920
+ updateElement(null, newVNode2, isSvgMode);
1921
+ }
1922
+ if (isDef(scopeId) && elm["s-si"] !== scopeId) {
1923
+ elm.classList.add(elm["s-si"] = scopeId);
1924
+ }
1925
+ if (newVNode2.$children$) {
1926
+ const appendTarget = newVNode2.$tag$ === "template" ? elm.content : elm;
1927
+ for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
1928
+ childNode = createElm(oldParentVNode, newVNode2, i2);
1929
+ if (childNode) {
1930
+ appendTarget.appendChild(childNode);
1931
+ }
1932
+ }
1933
+ }
1934
+ {
1935
+ if (newVNode2.$tag$ === "svg") {
1936
+ isSvgMode = false;
1937
+ } else if (elm.tagName === "foreignObject") {
1938
+ isSvgMode = true;
1939
+ }
1940
+ }
1941
+ }
1942
+ elm["s-hn"] = hostTagName;
1943
+ {
1944
+ if (newVNode2.$flags$ & (2 /* isSlotFallback */ | 1 /* isSlotReference */)) {
1945
+ elm["s-sr"] = true;
1946
+ elm["s-cr"] = contentRef;
1947
+ elm["s-sn"] = newVNode2.$name$ || "";
1948
+ elm["s-rf"] = (_a = newVNode2.$attrs$) == null ? void 0 : _a.ref;
1949
+ patchSlotNode(elm);
1950
+ oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];
1951
+ if (oldVNode && oldVNode.$tag$ === newVNode2.$tag$ && oldParentVNode.$elm$) {
1952
+ relocateToHostRoot(oldParentVNode.$elm$);
1953
+ }
1954
+ {
1955
+ addRemoveSlotScopedClass(contentRef, elm, newParentVNode.$elm$, oldParentVNode == null ? void 0 : oldParentVNode.$elm$);
1956
+ }
1957
+ }
1958
+ }
1959
+ return elm;
1960
+ };
1961
+ var relocateToHostRoot = (parentElm) => {
1962
+ plt.$flags$ |= 1 /* isTmpDisconnected */;
1963
+ const host = parentElm.closest(hostTagName.toLowerCase());
1964
+ if (host != null) {
1965
+ const contentRefNode = Array.from(host.__childNodes || host.childNodes).find(
1966
+ (ref) => ref["s-cr"]
1967
+ );
1968
+ const childNodeArray = Array.from(
1969
+ parentElm.__childNodes || parentElm.childNodes
1970
+ );
1971
+ for (const childNode of contentRefNode ? childNodeArray.reverse() : childNodeArray) {
1972
+ if (childNode["s-sh"] != null) {
1973
+ insertBefore(host, childNode, contentRefNode != null ? contentRefNode : null);
1974
+ childNode["s-sh"] = void 0;
1975
+ checkSlotRelocate = true;
1976
+ }
1977
+ }
1978
+ }
1979
+ plt.$flags$ &= -2 /* isTmpDisconnected */;
1980
+ };
1981
+ var putBackInOriginalLocation = (parentElm, recursive) => {
1982
+ plt.$flags$ |= 1 /* isTmpDisconnected */;
1983
+ const oldSlotChildNodes = Array.from(parentElm.__childNodes || parentElm.childNodes);
1984
+ if (parentElm["s-sr"]) {
1985
+ let node = parentElm;
1986
+ while (node = node.nextSibling) {
1987
+ if (node && node["s-sn"] === parentElm["s-sn"] && node["s-sh"] === hostTagName) {
1988
+ oldSlotChildNodes.push(node);
1989
+ }
1990
+ }
1991
+ }
1992
+ for (let i2 = oldSlotChildNodes.length - 1; i2 >= 0; i2--) {
1993
+ const childNode = oldSlotChildNodes[i2];
1994
+ if (childNode["s-hn"] !== hostTagName && childNode["s-ol"]) {
1995
+ insertBefore(referenceNode(childNode).parentNode, childNode, referenceNode(childNode));
1996
+ childNode["s-ol"].remove();
1997
+ childNode["s-ol"] = void 0;
1998
+ childNode["s-sh"] = void 0;
1999
+ checkSlotRelocate = true;
2000
+ }
2001
+ if (recursive) {
2002
+ putBackInOriginalLocation(childNode, recursive);
2003
+ }
2004
+ }
2005
+ plt.$flags$ &= -2 /* isTmpDisconnected */;
2006
+ };
2007
+ var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
2008
+ let containerElm = parentElm["s-cr"] && parentElm["s-cr"].parentNode || parentElm;
2009
+ let childNode;
2010
+ if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
2011
+ containerElm = containerElm.shadowRoot;
2012
+ }
2013
+ if (parentVNode.$tag$ === "template") {
2014
+ containerElm = containerElm.content;
2015
+ }
2016
+ for (; startIdx <= endIdx; ++startIdx) {
2017
+ if (vnodes[startIdx]) {
2018
+ childNode = createElm(null, parentVNode, startIdx);
2019
+ if (childNode) {
2020
+ vnodes[startIdx].$elm$ = childNode;
2021
+ insertBefore(containerElm, childNode, referenceNode(before) );
2022
+ }
2023
+ }
2024
+ }
2025
+ };
2026
+ var removeVnodes = (vnodes, startIdx, endIdx) => {
2027
+ for (let index = startIdx; index <= endIdx; ++index) {
2028
+ const vnode = vnodes[index];
2029
+ if (vnode) {
2030
+ const elm = vnode.$elm$;
2031
+ nullifyVNodeRefs(vnode);
2032
+ if (elm) {
2033
+ {
2034
+ checkSlotFallbackVisibility = true;
2035
+ if (elm["s-ol"]) {
2036
+ elm["s-ol"].remove();
2037
+ } else {
2038
+ putBackInOriginalLocation(elm, true);
2039
+ }
2040
+ }
2041
+ elm.remove();
2042
+ }
2043
+ }
2044
+ }
2045
+ };
2046
+ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = false) => {
2047
+ let oldStartIdx = 0;
2048
+ let newStartIdx = 0;
2049
+ let idxInOld = 0;
2050
+ let i2 = 0;
2051
+ let oldEndIdx = oldCh.length - 1;
2052
+ let oldStartVnode = oldCh[0];
2053
+ let oldEndVnode = oldCh[oldEndIdx];
2054
+ let newEndIdx = newCh.length - 1;
2055
+ let newStartVnode = newCh[0];
2056
+ let newEndVnode = newCh[newEndIdx];
2057
+ let node;
2058
+ let elmToMove;
2059
+ const containerElm = newVNode2.$tag$ === "template" ? parentElm.content : parentElm;
2060
+ while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
2061
+ if (oldStartVnode == null) {
2062
+ oldStartVnode = oldCh[++oldStartIdx];
2063
+ } else if (oldEndVnode == null) {
2064
+ oldEndVnode = oldCh[--oldEndIdx];
2065
+ } else if (newStartVnode == null) {
2066
+ newStartVnode = newCh[++newStartIdx];
2067
+ } else if (newEndVnode == null) {
2068
+ newEndVnode = newCh[--newEndIdx];
2069
+ } else if (isSameVnode(oldStartVnode, newStartVnode, isInitialRender)) {
2070
+ patch(oldStartVnode, newStartVnode, isInitialRender);
2071
+ oldStartVnode = oldCh[++oldStartIdx];
2072
+ newStartVnode = newCh[++newStartIdx];
2073
+ } else if (isSameVnode(oldEndVnode, newEndVnode, isInitialRender)) {
2074
+ patch(oldEndVnode, newEndVnode, isInitialRender);
2075
+ oldEndVnode = oldCh[--oldEndIdx];
2076
+ newEndVnode = newCh[--newEndIdx];
2077
+ } else if (isSameVnode(oldStartVnode, newEndVnode, isInitialRender)) {
2078
+ if ((oldStartVnode.$tag$ === "slot" || newEndVnode.$tag$ === "slot")) {
2079
+ putBackInOriginalLocation(oldStartVnode.$elm$.parentNode, false);
2080
+ }
2081
+ patch(oldStartVnode, newEndVnode, isInitialRender);
2082
+ insertBefore(containerElm, oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
2083
+ oldStartVnode = oldCh[++oldStartIdx];
2084
+ newEndVnode = newCh[--newEndIdx];
2085
+ } else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
2086
+ if ((oldStartVnode.$tag$ === "slot" || newEndVnode.$tag$ === "slot")) {
2087
+ putBackInOriginalLocation(oldEndVnode.$elm$.parentNode, false);
2088
+ }
2089
+ patch(oldEndVnode, newStartVnode, isInitialRender);
2090
+ insertBefore(containerElm, oldEndVnode.$elm$, oldStartVnode.$elm$);
2091
+ oldEndVnode = oldCh[--oldEndIdx];
2092
+ newStartVnode = newCh[++newStartIdx];
2093
+ } else {
2094
+ idxInOld = -1;
2095
+ {
2096
+ for (i2 = oldStartIdx; i2 <= oldEndIdx; ++i2) {
2097
+ if (oldCh[i2] && oldCh[i2].$key$ !== null && oldCh[i2].$key$ === newStartVnode.$key$) {
2098
+ idxInOld = i2;
2099
+ break;
2100
+ }
2101
+ }
2102
+ }
2103
+ if (idxInOld >= 0) {
2104
+ elmToMove = oldCh[idxInOld];
2105
+ if (elmToMove.$tag$ !== newStartVnode.$tag$) {
2106
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld);
2107
+ } else {
2108
+ patch(elmToMove, newStartVnode, isInitialRender);
2109
+ oldCh[idxInOld] = void 0;
2110
+ node = elmToMove.$elm$;
2111
+ }
2112
+ newStartVnode = newCh[++newStartIdx];
2113
+ } else {
2114
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx);
2115
+ newStartVnode = newCh[++newStartIdx];
2116
+ }
2117
+ if (node) {
2118
+ {
2119
+ insertBefore(
2120
+ referenceNode(oldStartVnode.$elm$).parentNode,
2121
+ node,
2122
+ referenceNode(oldStartVnode.$elm$)
2123
+ );
2124
+ }
2125
+ }
2126
+ }
2127
+ }
2128
+ if (oldStartIdx > oldEndIdx) {
2129
+ addVnodes(
2130
+ parentElm,
2131
+ newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$,
2132
+ newVNode2,
2133
+ newCh,
2134
+ newStartIdx,
2135
+ newEndIdx
2136
+ );
2137
+ } else if (newStartIdx > newEndIdx) {
2138
+ removeVnodes(oldCh, oldStartIdx, oldEndIdx);
2139
+ }
2140
+ };
2141
+ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
2142
+ if (leftVNode.$tag$ === rightVNode.$tag$) {
2143
+ if (leftVNode.$tag$ === "slot") {
2144
+ return leftVNode.$name$ === rightVNode.$name$;
2145
+ }
2146
+ if (!isInitialRender) {
2147
+ return leftVNode.$key$ === rightVNode.$key$;
2148
+ }
2149
+ if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
2150
+ leftVNode.$key$ = rightVNode.$key$;
2151
+ }
2152
+ return true;
2153
+ }
2154
+ return false;
2155
+ };
2156
+ var referenceNode = (node) => node && node["s-ol"] || node;
2157
+ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
2158
+ const elm = newVNode2.$elm$ = oldVNode.$elm$;
2159
+ const oldChildren = oldVNode.$children$;
2160
+ const newChildren = newVNode2.$children$;
2161
+ const tag = newVNode2.$tag$;
2162
+ const text = newVNode2.$text$;
2163
+ let defaultHolder;
2164
+ if (text == null) {
2165
+ {
2166
+ isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
2167
+ }
2168
+ {
2169
+ if (tag === "slot" && !useNativeShadowDom) {
2170
+ if (oldVNode.$name$ !== newVNode2.$name$) {
2171
+ newVNode2.$elm$["s-sn"] = newVNode2.$name$ || "";
2172
+ relocateToHostRoot(newVNode2.$elm$.parentElement);
2173
+ }
2174
+ }
2175
+ updateElement(oldVNode, newVNode2, isSvgMode, isInitialRender);
2176
+ }
2177
+ if (oldChildren !== null && newChildren !== null) {
2178
+ updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
2179
+ } else if (newChildren !== null) {
2180
+ if (oldVNode.$text$ !== null) {
2181
+ elm.textContent = "";
2182
+ }
2183
+ addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
2184
+ } else if (
2185
+ // don't do this on initial render as it can cause non-hydrated content to be removed
2186
+ !isInitialRender && BUILD.updatable && oldChildren !== null
2187
+ ) {
2188
+ removeVnodes(oldChildren, 0, oldChildren.length - 1);
2189
+ } else if (isInitialRender && BUILD.updatable && oldChildren !== null && newChildren === null) {
2190
+ newVNode2.$children$ = oldChildren;
2191
+ }
2192
+ if (isSvgMode && tag === "svg") {
2193
+ isSvgMode = false;
2194
+ }
2195
+ } else if ((defaultHolder = elm["s-cr"])) {
2196
+ defaultHolder.parentNode.textContent = text;
2197
+ } else if (oldVNode.$text$ !== text) {
2198
+ elm.data = text;
2199
+ }
2200
+ };
2201
+ var relocateNodes = [];
2202
+ var markSlotContentForRelocation = (elm) => {
2203
+ let node;
2204
+ let hostContentNodes;
2205
+ let j;
2206
+ const children = elm.__childNodes || elm.childNodes;
2207
+ for (const childNode of children) {
2208
+ if (childNode["s-sr"] && (node = childNode["s-cr"]) && node.parentNode) {
2209
+ hostContentNodes = node.parentNode.__childNodes || node.parentNode.childNodes;
2210
+ const slotName = childNode["s-sn"];
2211
+ for (j = hostContentNodes.length - 1; j >= 0; j--) {
2212
+ node = hostContentNodes[j];
2213
+ if (!node["s-cn"] && !node["s-nr"] && node["s-hn"] !== childNode["s-hn"] && (!node["s-sh"] || node["s-sh"] !== childNode["s-hn"])) {
2214
+ if (isNodeLocatedInSlot(node, slotName)) {
2215
+ let relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
2216
+ checkSlotFallbackVisibility = true;
2217
+ node["s-sn"] = node["s-sn"] || slotName;
2218
+ if (relocateNodeData) {
2219
+ relocateNodeData.$nodeToRelocate$["s-sh"] = childNode["s-hn"];
2220
+ relocateNodeData.$slotRefNode$ = childNode;
2221
+ } else {
2222
+ node["s-sh"] = childNode["s-hn"];
2223
+ relocateNodes.push({
2224
+ $slotRefNode$: childNode,
2225
+ $nodeToRelocate$: node
2226
+ });
2227
+ }
2228
+ if (node["s-sr"]) {
2229
+ relocateNodes.map((relocateNode) => {
2230
+ if (isNodeLocatedInSlot(relocateNode.$nodeToRelocate$, node["s-sn"])) {
2231
+ relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
2232
+ if (relocateNodeData && !relocateNode.$slotRefNode$) {
2233
+ relocateNode.$slotRefNode$ = relocateNodeData.$slotRefNode$;
2234
+ }
2235
+ }
2236
+ });
2237
+ }
2238
+ } else if (!relocateNodes.some((r) => r.$nodeToRelocate$ === node)) {
2239
+ relocateNodes.push({
2240
+ $nodeToRelocate$: node
2241
+ });
2242
+ }
2243
+ }
2244
+ }
2245
+ }
2246
+ if (childNode.nodeType === 1 /* ElementNode */) {
2247
+ markSlotContentForRelocation(childNode);
2248
+ }
2249
+ }
2250
+ };
2251
+ var nullifyVNodeRefs = (vNode) => {
2252
+ {
2253
+ if (vNode.$attrs$ && vNode.$attrs$.ref) {
2254
+ refCallbacksToRemove.push(() => vNode.$attrs$.ref(null));
2255
+ }
2256
+ vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);
2257
+ }
2258
+ };
2259
+ var queueRefAttachment = (refCallback, elm) => {
2260
+ {
2261
+ refCallbacksToAttach.push(() => refCallback(elm));
2262
+ }
2263
+ };
2264
+ var flushQueuedRefCallbacks = () => {
2265
+ {
2266
+ refCallbacksToRemove.forEach((cb) => cb());
2267
+ refCallbacksToRemove.length = 0;
2268
+ refCallbacksToAttach.forEach((cb) => cb());
2269
+ refCallbacksToAttach.length = 0;
2270
+ }
2271
+ };
2272
+ var insertBefore = (parent, newNode, reference, isInitialLoad) => {
2273
+ {
2274
+ if (typeof newNode["s-sn"] === "string" && !!newNode["s-sr"] && !!newNode["s-cr"]) {
2275
+ addRemoveSlotScopedClass(newNode["s-cr"], newNode, parent, newNode.parentElement);
2276
+ } else if (typeof newNode["s-sn"] === "string") {
2277
+ parent.insertBefore(newNode, reference);
2278
+ const { slotNode } = findSlotFromSlottedNode(newNode);
2279
+ if (slotNode && !isInitialLoad) dispatchSlotChangeEvent(slotNode);
2280
+ return newNode;
2281
+ }
2282
+ }
2283
+ if (parent.__insertBefore) {
2284
+ return parent.__insertBefore(newNode, reference);
2285
+ } else {
2286
+ return parent == null ? void 0 : parent.insertBefore(newNode, reference);
2287
+ }
2288
+ };
2289
+ function addRemoveSlotScopedClass(reference, slotNode, newParent, oldParent) {
2290
+ var _a, _b;
2291
+ let scopeId2;
2292
+ if (reference && typeof slotNode["s-sn"] === "string" && !!slotNode["s-sr"] && reference.parentNode && reference.parentNode["s-sc"] && (scopeId2 = slotNode["s-si"] || reference.parentNode["s-sc"])) {
2293
+ const scopeName = slotNode["s-sn"];
2294
+ const hostName = slotNode["s-hn"];
2295
+ (_a = newParent.classList) == null ? void 0 : _a.add(scopeId2 + "-s");
2296
+ if (oldParent && ((_b = oldParent.classList) == null ? void 0 : _b.contains(scopeId2 + "-s"))) {
2297
+ let child = (oldParent.__childNodes || oldParent.childNodes)[0];
2298
+ let found = false;
2299
+ while (child) {
2300
+ if (child["s-sn"] !== scopeName && child["s-hn"] === hostName && !!child["s-sr"]) {
2301
+ found = true;
2302
+ break;
2303
+ }
2304
+ child = child.nextSibling;
2305
+ }
2306
+ if (!found) oldParent.classList.remove(scopeId2 + "-s");
2307
+ }
2308
+ }
2309
+ }
2310
+ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
2311
+ var _a, _b, _c, _d, _e;
2312
+ const hostElm = hostRef.$hostElement$;
2313
+ const cmpMeta = hostRef.$cmpMeta$;
2314
+ const oldVNode = hostRef.$vnode$ || newVNode(null, null);
2315
+ const isHostElement = isHost(renderFnResults);
2316
+ const rootVnode = isHostElement ? renderFnResults : h(null, null, renderFnResults);
2317
+ hostTagName = hostElm.tagName;
2318
+ if (cmpMeta.$attrsToReflect$) {
2319
+ rootVnode.$attrs$ = rootVnode.$attrs$ || {};
2320
+ cmpMeta.$attrsToReflect$.forEach(([propName, attribute]) => {
2321
+ {
2322
+ rootVnode.$attrs$[attribute] = hostElm[propName];
2323
+ }
2324
+ });
2325
+ }
2326
+ if (isInitialLoad && rootVnode.$attrs$) {
2327
+ for (const key of Object.keys(rootVnode.$attrs$)) {
2328
+ if (hostElm.hasAttribute(key) && !["key", "ref", "style", "class"].includes(key)) {
2329
+ rootVnode.$attrs$[key] = hostElm[key];
2330
+ }
2331
+ }
2332
+ }
2333
+ rootVnode.$tag$ = null;
2334
+ rootVnode.$flags$ |= 4 /* isHost */;
2335
+ hostRef.$vnode$ = rootVnode;
2336
+ rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
2337
+ {
2338
+ scopeId = hostElm["s-sc"];
2339
+ }
2340
+ useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
2341
+ {
2342
+ contentRef = hostElm["s-cr"];
2343
+ checkSlotFallbackVisibility = false;
2344
+ }
2345
+ patch(oldVNode, rootVnode, isInitialLoad);
2346
+ {
2347
+ plt.$flags$ |= 1 /* isTmpDisconnected */;
2348
+ if (checkSlotRelocate) {
2349
+ markSlotContentForRelocation(rootVnode.$elm$);
2350
+ for (const relocateData of relocateNodes) {
2351
+ const nodeToRelocate = relocateData.$nodeToRelocate$;
2352
+ if (!nodeToRelocate["s-ol"] && win.document) {
2353
+ const orgLocationNode = win.document.createTextNode("");
2354
+ orgLocationNode["s-nr"] = nodeToRelocate;
2355
+ insertBefore(
2356
+ nodeToRelocate.parentNode,
2357
+ nodeToRelocate["s-ol"] = orgLocationNode,
2358
+ nodeToRelocate,
2359
+ isInitialLoad
2360
+ );
2361
+ }
2362
+ }
2363
+ for (const relocateData of relocateNodes) {
2364
+ const nodeToRelocate = relocateData.$nodeToRelocate$;
2365
+ const slotRefNode = relocateData.$slotRefNode$;
2366
+ if (nodeToRelocate.nodeType === 1 /* ElementNode */ && isInitialLoad) {
2367
+ nodeToRelocate["s-ih"] = (_a = nodeToRelocate.hidden) != null ? _a : false;
2368
+ }
2369
+ if (slotRefNode) {
2370
+ const parentNodeRef = slotRefNode.parentNode;
2371
+ let insertBeforeNode = slotRefNode.nextSibling;
2372
+ if (insertBeforeNode && insertBeforeNode.nodeType === 1 /* ElementNode */) {
2373
+ let orgLocationNode = (_b = nodeToRelocate["s-ol"]) == null ? void 0 : _b.previousSibling;
2374
+ while (orgLocationNode) {
2375
+ let refNode = (_c = orgLocationNode["s-nr"]) != null ? _c : null;
2376
+ if (refNode && refNode["s-sn"] === nodeToRelocate["s-sn"] && parentNodeRef === (refNode.__parentNode || refNode.parentNode)) {
2377
+ refNode = refNode.nextSibling;
2378
+ while (refNode === nodeToRelocate || (refNode == null ? void 0 : refNode["s-sr"])) {
2379
+ refNode = refNode == null ? void 0 : refNode.nextSibling;
2380
+ }
2381
+ if (!refNode || !refNode["s-nr"]) {
2382
+ insertBeforeNode = refNode;
2383
+ break;
2384
+ }
2385
+ }
2386
+ orgLocationNode = orgLocationNode.previousSibling;
2387
+ }
2388
+ }
2389
+ const parent = nodeToRelocate.__parentNode || nodeToRelocate.parentNode;
2390
+ const nextSibling = nodeToRelocate.__nextSibling || nodeToRelocate.nextSibling;
2391
+ if (!insertBeforeNode && parentNodeRef !== parent || nextSibling !== insertBeforeNode) {
2392
+ if (nodeToRelocate !== insertBeforeNode) {
2393
+ insertBefore(parentNodeRef, nodeToRelocate, insertBeforeNode, isInitialLoad);
2394
+ if (nodeToRelocate.nodeType === 8 /* CommentNode */ && nodeToRelocate.nodeValue.startsWith("s-nt-")) {
2395
+ const textNode = win.document.createTextNode(nodeToRelocate.nodeValue.replace(/^s-nt-/, ""));
2396
+ textNode["s-hn"] = nodeToRelocate["s-hn"];
2397
+ textNode["s-sn"] = nodeToRelocate["s-sn"];
2398
+ textNode["s-sh"] = nodeToRelocate["s-sh"];
2399
+ textNode["s-sr"] = nodeToRelocate["s-sr"];
2400
+ textNode["s-ol"] = nodeToRelocate["s-ol"];
2401
+ textNode["s-ol"]["s-nr"] = textNode;
2402
+ insertBefore(nodeToRelocate.parentNode, textNode, nodeToRelocate, isInitialLoad);
2403
+ nodeToRelocate.parentNode.removeChild(nodeToRelocate);
2404
+ }
2405
+ if (nodeToRelocate.nodeType === 1 /* ElementNode */ && nodeToRelocate.tagName !== "SLOT-FB") {
2406
+ nodeToRelocate.hidden = (_d = nodeToRelocate["s-ih"]) != null ? _d : false;
2407
+ }
2408
+ }
2409
+ }
2410
+ nodeToRelocate && typeof slotRefNode["s-rf"] === "function" && slotRefNode["s-rf"](slotRefNode);
2411
+ } else if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
2412
+ nodeToRelocate.hidden = true;
2413
+ }
2414
+ }
2415
+ }
2416
+ if (checkSlotFallbackVisibility) {
2417
+ updateFallbackSlotVisibility(rootVnode.$elm$);
2418
+ }
2419
+ plt.$flags$ &= -2 /* isTmpDisconnected */;
2420
+ relocateNodes.length = 0;
2421
+ }
2422
+ if (!useNativeShadowDom && !(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && hostElm["s-cr"]) {
2423
+ const children = rootVnode.$elm$.__childNodes || rootVnode.$elm$.childNodes;
2424
+ for (const childNode of children) {
2425
+ if (childNode["s-hn"] !== hostTagName && !childNode["s-sh"]) {
2426
+ if (isInitialLoad && childNode["s-ih"] == null) {
2427
+ childNode["s-ih"] = (_e = childNode.hidden) != null ? _e : false;
2428
+ }
2429
+ if (childNode.nodeType === 1 /* ElementNode */) {
2430
+ childNode.hidden = true;
2431
+ } else if (childNode.nodeType === 3 /* TextNode */ && !!childNode.nodeValue.trim()) {
2432
+ const textCommentNode = win.document.createComment("s-nt-" + childNode.nodeValue);
2433
+ textCommentNode["s-sn"] = childNode["s-sn"];
2434
+ insertBefore(childNode.parentNode, textCommentNode, childNode, isInitialLoad);
2435
+ childNode.parentNode.removeChild(childNode);
2436
+ }
2437
+ }
2438
+ }
2439
+ }
2440
+ contentRef = void 0;
2441
+ flushQueuedRefCallbacks();
2442
+ };
2443
+
2444
+ // src/runtime/update-component.ts
2445
+ var attachToAncestor = (hostRef, ancestorComponent) => {
2446
+ if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
2447
+ const index = ancestorComponent["s-p"].push(
2448
+ new Promise(
2449
+ (r) => hostRef.$onRenderResolve$ = () => {
2450
+ ancestorComponent["s-p"].splice(index - 1, 1);
2451
+ r();
2452
+ }
2453
+ )
2454
+ );
2455
+ }
2456
+ };
2457
+ var scheduleUpdate = (hostRef, isInitialLoad) => {
2458
+ {
2459
+ hostRef.$flags$ |= 16 /* isQueuedForUpdate */;
2460
+ }
2461
+ if (hostRef.$flags$ & 4 /* isWaitingForChildren */) {
2462
+ hostRef.$flags$ |= 512 /* needsRerender */;
2463
+ return;
2464
+ }
2465
+ attachToAncestor(hostRef, hostRef.$ancestorComponent$);
2466
+ const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
2467
+ if (isInitialLoad) {
2468
+ queueMicrotask(() => {
2469
+ dispatch();
2470
+ });
2471
+ return;
2472
+ }
2473
+ return writeTask(dispatch) ;
2474
+ };
2475
+ var dispatchHooks = (hostRef, isInitialLoad) => {
2476
+ const elm = hostRef.$hostElement$;
2477
+ const endSchedule = createTime("scheduleUpdate", hostRef.$cmpMeta$.$tagName$);
2478
+ const instance = hostRef.$lazyInstance$ ;
2479
+ if (!instance) {
2480
+ throw new Error(
2481
+ `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`
2482
+ );
2483
+ }
2484
+ let maybePromise;
2485
+ if (isInitialLoad) {
2486
+ {
2487
+ if (hostRef.$deferredConnectedCallback$) {
2488
+ hostRef.$deferredConnectedCallback$ = false;
2489
+ safeCall(instance, "connectedCallback", void 0, elm);
2490
+ }
2491
+ {
2492
+ hostRef.$flags$ |= 256 /* isListenReady */;
2493
+ if (hostRef.$queuedListeners$) {
2494
+ hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
2495
+ hostRef.$queuedListeners$ = void 0;
2496
+ }
2497
+ }
2498
+ if (hostRef.$fetchedCbList$.length) {
2499
+ hostRef.$fetchedCbList$.forEach((cb) => cb(elm));
2500
+ }
2501
+ }
2502
+ maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
2503
+ } else {
2504
+ maybePromise = safeCall(instance, "componentWillUpdate", void 0, elm);
2505
+ }
2506
+ maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender", void 0, elm));
2507
+ endSchedule();
2508
+ return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
2509
+ };
2510
+ var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((err) => {
2511
+ console.error(err);
2512
+ fn();
2513
+ }) : fn();
2514
+ var isPromisey = (maybePromise) => maybePromise instanceof Promise || maybePromise && maybePromise.then && typeof maybePromise.then === "function";
2515
+ var updateComponent = async (hostRef, instance, isInitialLoad) => {
2516
+ var _a;
2517
+ const elm = hostRef.$hostElement$;
2518
+ const endUpdate = createTime("update", hostRef.$cmpMeta$.$tagName$);
2519
+ const rc = elm["s-rc"];
2520
+ if (isInitialLoad) {
2521
+ attachStyles(hostRef);
2522
+ }
2523
+ const endRender = createTime("render", hostRef.$cmpMeta$.$tagName$);
2524
+ {
2525
+ callRender(hostRef, instance, elm, isInitialLoad);
2526
+ }
2527
+ if (rc) {
2528
+ rc.map((cb) => cb());
2529
+ elm["s-rc"] = void 0;
2530
+ }
2531
+ endRender();
2532
+ endUpdate();
2533
+ {
2534
+ const childrenPromises = (_a = elm["s-p"]) != null ? _a : [];
2535
+ const postUpdate = () => postUpdateComponent(hostRef);
2536
+ if (childrenPromises.length === 0) {
2537
+ postUpdate();
2538
+ } else {
2539
+ Promise.all(childrenPromises).then(postUpdate);
2540
+ hostRef.$flags$ |= 4 /* isWaitingForChildren */;
2541
+ childrenPromises.length = 0;
2542
+ }
2543
+ }
2544
+ };
2545
+ var callRender = (hostRef, instance, elm, isInitialLoad) => {
2546
+ try {
2547
+ instance = instance.render() ;
2548
+ {
2549
+ hostRef.$flags$ &= -17 /* isQueuedForUpdate */;
2550
+ }
2551
+ {
2552
+ hostRef.$flags$ |= 2 /* hasRendered */;
2553
+ }
2554
+ {
2555
+ {
2556
+ {
2557
+ renderVdom(hostRef, instance, isInitialLoad);
2558
+ }
2559
+ }
2560
+ }
2561
+ } catch (e) {
2562
+ consoleError(e, hostRef.$hostElement$);
2563
+ }
2564
+ return null;
2565
+ };
2566
+ var postUpdateComponent = (hostRef) => {
2567
+ const tagName = hostRef.$cmpMeta$.$tagName$;
2568
+ const elm = hostRef.$hostElement$;
2569
+ const endPostUpdate = createTime("postUpdate", tagName);
2570
+ const instance = hostRef.$lazyInstance$ ;
2571
+ const ancestorComponent = hostRef.$ancestorComponent$;
2572
+ safeCall(instance, "componentDidRender", void 0, elm);
2573
+ if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
2574
+ hostRef.$flags$ |= 64 /* hasLoadedComponent */;
2575
+ {
2576
+ addHydratedFlag(elm);
2577
+ }
2578
+ safeCall(instance, "componentDidLoad", void 0, elm);
2579
+ endPostUpdate();
2580
+ {
2581
+ hostRef.$onReadyResolve$(elm);
2582
+ if (!ancestorComponent) {
2583
+ appDidLoad();
2584
+ }
2585
+ }
2586
+ } else {
2587
+ safeCall(instance, "componentDidUpdate", void 0, elm);
2588
+ endPostUpdate();
2589
+ }
2590
+ {
2591
+ hostRef.$onInstanceResolve$(elm);
2592
+ }
2593
+ {
2594
+ if (hostRef.$onRenderResolve$) {
2595
+ hostRef.$onRenderResolve$();
2596
+ hostRef.$onRenderResolve$ = void 0;
2597
+ }
2598
+ if (hostRef.$flags$ & 512 /* needsRerender */) {
2599
+ nextTick(() => scheduleUpdate(hostRef, false));
2600
+ }
2601
+ hostRef.$flags$ &= -517;
2602
+ }
2603
+ };
2604
+ var forceUpdate = (ref) => {
2605
+ var _a;
2606
+ {
2607
+ const hostRef = getHostRef(ref);
2608
+ const isConnected = (_a = hostRef == null ? void 0 : hostRef.$hostElement$) == null ? void 0 : _a.isConnected;
2609
+ if (isConnected && (hostRef.$flags$ & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
2610
+ scheduleUpdate(hostRef, false);
2611
+ }
2612
+ return isConnected;
2613
+ }
2614
+ };
2615
+ var appDidLoad = (who) => {
2616
+ var _a;
2617
+ nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
2618
+ {
2619
+ if ((_a = plt.$orgLocNodes$) == null ? void 0 : _a.size) {
2620
+ plt.$orgLocNodes$.clear();
2621
+ }
2622
+ }
2623
+ };
2624
+ var safeCall = (instance, method, arg, elm) => {
2625
+ if (instance && instance[method]) {
2626
+ try {
2627
+ return instance[method](arg);
2628
+ } catch (e) {
2629
+ consoleError(e, elm);
2630
+ }
2631
+ }
2632
+ return void 0;
2633
+ };
2634
+ var addHydratedFlag = (elm) => {
2635
+ var _a;
2636
+ return elm.classList.add((_a = BUILD.hydratedSelectorName) != null ? _a : "hydrated") ;
2637
+ };
2638
+
2639
+ // src/runtime/set-value.ts
2640
+ var getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
2641
+ var setValue = (ref, propName, newVal, cmpMeta) => {
2642
+ const hostRef = getHostRef(ref);
2643
+ if (!hostRef) {
2644
+ return;
2645
+ }
2646
+ if (!hostRef) {
2647
+ throw new Error(
2648
+ `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).`
2649
+ );
2650
+ }
2651
+ const elm = hostRef.$hostElement$ ;
2652
+ const oldVal = hostRef.$instanceValues$.get(propName);
2653
+ const flags = hostRef.$flags$;
2654
+ const instance = hostRef.$lazyInstance$ ;
2655
+ newVal = parsePropertyValue(
2656
+ newVal,
2657
+ cmpMeta.$members$[propName][0],
2658
+ !!(cmpMeta.$flags$ & 64 /* formAssociated */)
2659
+ );
2660
+ const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
2661
+ const didValueChange = newVal !== oldVal && !areBothNaN;
2662
+ if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
2663
+ hostRef.$instanceValues$.set(propName, newVal);
2664
+ if (cmpMeta.$watchers$) {
2665
+ const watchMethods = cmpMeta.$watchers$[propName];
2666
+ if (watchMethods) {
2667
+ watchMethods.map((watcher) => {
2668
+ try {
2669
+ const [[watchMethodName, watcherFlags]] = Object.entries(watcher);
2670
+ if (flags & 128 /* isWatchReady */ || watcherFlags & 1 /* Immediate */) {
2671
+ if (!instance) {
2672
+ hostRef.$fetchedCbList$.push(() => {
2673
+ hostRef.$lazyInstance$[watchMethodName](newVal, oldVal, propName);
2674
+ });
2675
+ } else {
2676
+ instance[watchMethodName](newVal, oldVal, propName);
2677
+ }
2678
+ }
2679
+ } catch (e) {
2680
+ consoleError(e, elm);
2681
+ }
2682
+ });
2683
+ }
2684
+ }
2685
+ if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
2686
+ if (instance.componentShouldUpdate) {
2687
+ if (instance.componentShouldUpdate(newVal, oldVal, propName) === false) {
2688
+ return;
2689
+ }
2690
+ }
2691
+ scheduleUpdate(hostRef, false);
2692
+ }
2693
+ }
2694
+ };
2695
+
2696
+ // src/runtime/proxy-component.ts
2697
+ var proxyComponent = (Cstr, cmpMeta, flags) => {
2698
+ var _a, _b;
2699
+ const prototype = Cstr.prototype;
2700
+ if (cmpMeta.$flags$ & 64 /* formAssociated */ && flags & 1 /* isElementConstructor */) {
2701
+ FORM_ASSOCIATED_CUSTOM_ELEMENT_CALLBACKS.forEach((cbName) => {
2702
+ Object.defineProperty(prototype, cbName, {
2703
+ value(...args) {
2704
+ var _a2;
2705
+ const hostRef = getHostRef(this);
2706
+ const instance = hostRef == null ? void 0 : hostRef.$lazyInstance$ ;
2707
+ if (!instance) {
2708
+ (_a2 = hostRef == null ? void 0 : hostRef.$onReadyPromise$) == null ? void 0 : _a2.then((asyncInstance) => {
2709
+ const cb = asyncInstance[cbName];
2710
+ typeof cb === "function" && cb.call(asyncInstance, ...args);
2711
+ });
2712
+ } else {
2713
+ const cb = instance[cbName] ;
2714
+ typeof cb === "function" && cb.call(instance, ...args);
2715
+ }
2716
+ }
2717
+ });
2718
+ });
2719
+ }
2720
+ if (cmpMeta.$members$ || BUILD.propChangeCallback) {
2721
+ {
2722
+ if (Cstr.watchers && !cmpMeta.$watchers$) {
2723
+ cmpMeta.$watchers$ = Cstr.watchers;
2724
+ }
2725
+ if (Cstr.deserializers && !cmpMeta.$deserializers$) {
2726
+ cmpMeta.$deserializers$ = Cstr.deserializers;
2727
+ }
2728
+ if (Cstr.serializers && !cmpMeta.$serializers$) {
2729
+ cmpMeta.$serializers$ = Cstr.serializers;
2730
+ }
2731
+ }
2732
+ const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
2733
+ members.map(([memberName, [memberFlags]]) => {
2734
+ if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
2735
+ const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
2736
+ if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
2737
+ if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
2738
+ if (flags & 1 /* isElementConstructor */ || !origGetter) {
2739
+ Object.defineProperty(prototype, memberName, {
2740
+ get() {
2741
+ {
2742
+ if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
2743
+ return getValue(this, memberName);
2744
+ }
2745
+ const ref = getHostRef(this);
2746
+ const instance = ref ? ref.$lazyInstance$ : prototype;
2747
+ if (!instance) return;
2748
+ return instance[memberName];
2749
+ }
2750
+ },
2751
+ configurable: true,
2752
+ enumerable: true
2753
+ });
2754
+ }
2755
+ Object.defineProperty(prototype, memberName, {
2756
+ set(newValue) {
2757
+ const ref = getHostRef(this);
2758
+ if (!ref) {
2759
+ return;
2760
+ }
2761
+ if (origSetter) {
2762
+ const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
2763
+ if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
2764
+ newValue = ref.$instanceValues$.get(memberName);
2765
+ }
2766
+ origSetter.apply(this, [
2767
+ parsePropertyValue(
2768
+ newValue,
2769
+ memberFlags,
2770
+ !!(cmpMeta.$flags$ & 64 /* formAssociated */)
2771
+ )
2772
+ ]);
2773
+ newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
2774
+ setValue(this, memberName, newValue, cmpMeta);
2775
+ return;
2776
+ }
2777
+ {
2778
+ if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
2779
+ setValue(this, memberName, newValue, cmpMeta);
2780
+ if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
2781
+ ref.$fetchedCbList$.push(() => {
2782
+ if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
2783
+ ref.$lazyInstance$[memberName] = newValue;
2784
+ }
2785
+ });
2786
+ }
2787
+ return;
2788
+ }
2789
+ const setterSetVal = () => {
2790
+ const currentValue = ref.$lazyInstance$[memberName];
2791
+ if (!ref.$instanceValues$.get(memberName) && currentValue) {
2792
+ ref.$instanceValues$.set(memberName, currentValue);
2793
+ }
2794
+ ref.$lazyInstance$[memberName] = parsePropertyValue(
2795
+ newValue,
2796
+ memberFlags,
2797
+ !!(cmpMeta.$flags$ & 64 /* formAssociated */)
2798
+ );
2799
+ setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
2800
+ };
2801
+ if (ref.$lazyInstance$) {
2802
+ setterSetVal();
2803
+ } else {
2804
+ ref.$fetchedCbList$.push(() => {
2805
+ setterSetVal();
2806
+ });
2807
+ }
2808
+ }
2809
+ }
2810
+ });
2811
+ } else if (flags & 1 /* isElementConstructor */ && memberFlags & 64 /* Method */) {
2812
+ Object.defineProperty(prototype, memberName, {
2813
+ value(...args) {
2814
+ var _a2;
2815
+ const ref = getHostRef(this);
2816
+ return (_a2 = ref == null ? void 0 : ref.$onInstancePromise$) == null ? void 0 : _a2.then(() => {
2817
+ var _a3;
2818
+ return (_a3 = ref.$lazyInstance$) == null ? void 0 : _a3[memberName](...args);
2819
+ });
2820
+ }
2821
+ });
2822
+ }
2823
+ });
2824
+ if ((flags & 1 /* isElementConstructor */)) {
2825
+ const attrNameToPropName = /* @__PURE__ */ new Map();
2826
+ prototype.attributeChangedCallback = function(attrName, oldValue, newValue) {
2827
+ plt.jmp(() => {
2828
+ var _a2;
2829
+ const propName = attrNameToPropName.get(attrName);
2830
+ const hostRef = getHostRef(this);
2831
+ if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
2832
+ newValue = this[propName];
2833
+ delete this[propName];
2834
+ }
2835
+ if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
2836
+ this[propName] == newValue) {
2837
+ return;
2838
+ } else if (propName == null) {
2839
+ const flags2 = hostRef == null ? void 0 : hostRef.$flags$;
2840
+ if (hostRef && flags2 && !(flags2 & 8 /* isConstructingInstance */) && newValue !== oldValue) {
2841
+ const instance = hostRef.$lazyInstance$ ;
2842
+ const entry = (_a2 = cmpMeta.$watchers$) == null ? void 0 : _a2[attrName];
2843
+ entry == null ? void 0 : entry.forEach((watcher) => {
2844
+ const [[watchMethodName, watcherFlags]] = Object.entries(watcher);
2845
+ if (instance[watchMethodName] != null && (flags2 & 128 /* isWatchReady */ || watcherFlags & 1 /* Immediate */)) {
2846
+ instance[watchMethodName].call(instance, newValue, oldValue, attrName);
2847
+ }
2848
+ });
2849
+ }
2850
+ return;
2851
+ }
2852
+ const propFlags = members.find(([m]) => m === propName);
2853
+ if (propFlags && propFlags[1][0] & 4 /* Boolean */) {
2854
+ newValue = newValue === null || newValue === "false" ? false : true;
2855
+ }
2856
+ const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
2857
+ if (newValue != this[propName] && (!propDesc.get || !!propDesc.set)) {
2858
+ this[propName] = newValue;
2859
+ }
2860
+ });
2861
+ };
2862
+ Cstr.observedAttributes = Array.from(
2863
+ /* @__PURE__ */ new Set([
2864
+ ...Object.keys((_b = cmpMeta.$watchers$) != null ? _b : {}),
2865
+ ...members.filter(([_, m]) => m[0] & 31 /* HasAttribute */).map(([propName, m]) => {
2866
+ var _a2;
2867
+ const attrName = m[1] || propName;
2868
+ attrNameToPropName.set(attrName, propName);
2869
+ if (m[0] & 512 /* ReflectAttr */) {
2870
+ (_a2 = cmpMeta.$attrsToReflect$) == null ? void 0 : _a2.push([propName, attrName]);
2871
+ }
2872
+ return attrName;
2873
+ })
2874
+ ])
2875
+ );
2876
+ }
2877
+ }
2878
+ return Cstr;
2879
+ };
2880
+
2881
+ // src/runtime/initialize-component.ts
2882
+ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
2883
+ let Cstr;
2884
+ if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
2885
+ hostRef.$flags$ |= 32 /* hasInitializedComponent */;
2886
+ const bundleId = cmpMeta.$lazyBundleId$;
2887
+ if (bundleId) {
2888
+ const CstrImport = loadModule(cmpMeta, hostRef);
2889
+ if (CstrImport && "then" in CstrImport) {
2890
+ const endLoad = uniqueTime();
2891
+ Cstr = await CstrImport;
2892
+ endLoad();
2893
+ } else {
2894
+ Cstr = CstrImport;
2895
+ }
2896
+ if (!Cstr) {
2897
+ throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
2898
+ }
2899
+ if (!Cstr.isProxied) {
2900
+ {
2901
+ cmpMeta.$watchers$ = Cstr.watchers;
2902
+ cmpMeta.$serializers$ = Cstr.serializers;
2903
+ cmpMeta.$deserializers$ = Cstr.deserializers;
2904
+ }
2905
+ proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
2906
+ Cstr.isProxied = true;
2907
+ }
2908
+ const endNewInstance = createTime("createInstance", cmpMeta.$tagName$);
2909
+ {
2910
+ hostRef.$flags$ |= 8 /* isConstructingInstance */;
2911
+ }
2912
+ try {
2913
+ new Cstr(hostRef);
2914
+ } catch (e) {
2915
+ consoleError(e, elm);
2916
+ }
2917
+ {
2918
+ hostRef.$flags$ &= -9 /* isConstructingInstance */;
2919
+ }
2920
+ {
2921
+ hostRef.$flags$ |= 128 /* isWatchReady */;
2922
+ }
2923
+ endNewInstance();
2924
+ const needsDeferredCallback = cmpMeta.$flags$ & 4 /* hasSlotRelocation */;
2925
+ if (!needsDeferredCallback) {
2926
+ fireConnectedCallback(hostRef.$lazyInstance$, elm);
2927
+ } else {
2928
+ hostRef.$deferredConnectedCallback$ = true;
2929
+ }
2930
+ } else {
2931
+ Cstr = elm.constructor;
2932
+ const cmpTag = elm.localName;
2933
+ customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
2934
+ }
2935
+ if (Cstr && Cstr.style) {
2936
+ let style;
2937
+ if (typeof Cstr.style === "string") {
2938
+ style = Cstr.style;
2939
+ }
2940
+ const scopeId2 = getScopeId(cmpMeta);
2941
+ if (!styles.has(scopeId2) || BUILD.hotModuleReplacement) {
2942
+ const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
2943
+ registerStyle(scopeId2, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
2944
+ endRegisterStyles();
2945
+ }
2946
+ }
2947
+ }
2948
+ const ancestorComponent = hostRef.$ancestorComponent$;
2949
+ const schedule = () => scheduleUpdate(hostRef, true);
2950
+ if (ancestorComponent && ancestorComponent["s-rc"]) {
2951
+ ancestorComponent["s-rc"].push(schedule);
2952
+ } else {
2953
+ schedule();
2954
+ }
2955
+ };
2956
+ var fireConnectedCallback = (instance, elm) => {
2957
+ {
2958
+ safeCall(instance, "connectedCallback", void 0, elm);
2959
+ }
2960
+ };
2961
+
2962
+ // src/runtime/connected-callback.ts
2963
+ var connectedCallback = (elm) => {
2964
+ if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
2965
+ const hostRef = getHostRef(elm);
2966
+ if (!hostRef) {
2967
+ return;
2968
+ }
2969
+ const cmpMeta = hostRef.$cmpMeta$;
2970
+ const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
2971
+ if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
2972
+ hostRef.$flags$ |= 1 /* hasConnected */;
2973
+ let hostId;
2974
+ {
2975
+ hostId = elm.getAttribute(HYDRATE_ID);
2976
+ if (hostId) {
2977
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
2978
+ const scopeId2 = addStyle(elm.shadowRoot, cmpMeta);
2979
+ elm.classList.remove(scopeId2 + "-h", scopeId2 + "-s");
2980
+ } else if (cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */) {
2981
+ const scopeId2 = getScopeId(cmpMeta);
2982
+ elm["s-sc"] = scopeId2;
2983
+ }
2984
+ initializeClientHydrate(elm, cmpMeta.$tagName$, hostId, hostRef);
2985
+ }
2986
+ }
2987
+ if (!hostId) {
2988
+ if (// TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
2989
+ cmpMeta.$flags$ & (4 /* hasSlotRelocation */ | 8 /* needsShadowDomShim */)) {
2990
+ setContentReference(elm);
2991
+ }
2992
+ }
2993
+ {
2994
+ let ancestorComponent = elm;
2995
+ while (ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host) {
2996
+ if (ancestorComponent.nodeType === 1 /* ElementNode */ && ancestorComponent.hasAttribute("s-id") && ancestorComponent["s-p"] || ancestorComponent["s-p"]) {
2997
+ attachToAncestor(hostRef, hostRef.$ancestorComponent$ = ancestorComponent);
2998
+ break;
2999
+ }
3000
+ }
3001
+ }
3002
+ if (cmpMeta.$members$) {
3003
+ Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
3004
+ if (memberFlags & 31 /* Prop */ && memberName in elm && elm[memberName] !== Object.prototype[memberName]) {
3005
+ const value = elm[memberName];
3006
+ delete elm[memberName];
3007
+ elm[memberName] = value;
3008
+ }
3009
+ });
3010
+ }
3011
+ {
3012
+ initializeComponent(elm, hostRef, cmpMeta);
3013
+ }
3014
+ } else {
3015
+ addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
3016
+ if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
3017
+ fireConnectedCallback(hostRef.$lazyInstance$, elm);
3018
+ } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
3019
+ hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
3020
+ }
3021
+ }
3022
+ endConnected();
3023
+ }
3024
+ };
3025
+ var setContentReference = (elm) => {
3026
+ if (!win.document) {
3027
+ return;
3028
+ }
3029
+ const contentRefElm = elm["s-cr"] = win.document.createComment(
3030
+ ""
3031
+ );
3032
+ contentRefElm["s-cn"] = true;
3033
+ insertBefore(elm, contentRefElm, elm.firstChild);
3034
+ };
3035
+ var disconnectInstance = (instance, elm) => {
3036
+ {
3037
+ safeCall(instance, "disconnectedCallback", void 0, elm || instance);
3038
+ }
3039
+ };
3040
+ var disconnectedCallback = async (elm) => {
3041
+ if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
3042
+ const hostRef = getHostRef(elm);
3043
+ {
3044
+ if (hostRef == null ? void 0 : hostRef.$rmListeners$) {
3045
+ hostRef.$rmListeners$.map((rmListener) => rmListener());
3046
+ hostRef.$rmListeners$ = void 0;
3047
+ }
3048
+ }
3049
+ if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
3050
+ disconnectInstance(hostRef.$lazyInstance$, elm);
3051
+ } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
3052
+ hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
3053
+ }
3054
+ }
3055
+ if (rootAppliedStyles.has(elm)) {
3056
+ rootAppliedStyles.delete(elm);
3057
+ }
3058
+ if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
3059
+ rootAppliedStyles.delete(elm.shadowRoot);
3060
+ }
3061
+ };
3062
+
3063
+ // src/runtime/bootstrap-lazy.ts
3064
+ var bootstrapLazy = (lazyBundles, options = {}) => {
3065
+ var _a;
3066
+ if (!win.document) {
3067
+ console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");
3068
+ return;
3069
+ }
3070
+ const endBootstrap = createTime();
3071
+ const cmpTags = [];
3072
+ const exclude = options.exclude || [];
3073
+ const customElements2 = win.customElements;
3074
+ const head = win.document.head;
3075
+ const metaCharset = /* @__PURE__ */ head.querySelector("meta[charset]");
3076
+ const dataStyles = /* @__PURE__ */ win.document.createElement("style");
3077
+ const deferredConnectedCallbacks = [];
3078
+ let appLoadFallback;
3079
+ let isBootstrapping = true;
3080
+ Object.assign(plt, options);
3081
+ plt.$resourcesUrl$ = new URL(options.resourcesUrl || "./", win.document.baseURI).href;
3082
+ {
3083
+ plt.$flags$ |= 2 /* appLoaded */;
3084
+ }
3085
+ {
3086
+ hydrateScopedToShadow();
3087
+ }
3088
+ let hasSlotRelocation = false;
3089
+ lazyBundles.map((lazyBundle) => {
3090
+ lazyBundle[1].map((compactMeta) => {
3091
+ var _a2, _b, _c;
3092
+ const cmpMeta = {
3093
+ $flags$: compactMeta[0],
3094
+ $tagName$: compactMeta[1],
3095
+ $members$: compactMeta[2],
3096
+ $listeners$: compactMeta[3]
3097
+ };
3098
+ if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
3099
+ hasSlotRelocation = true;
3100
+ }
3101
+ {
3102
+ cmpMeta.$members$ = compactMeta[2];
3103
+ }
3104
+ {
3105
+ cmpMeta.$listeners$ = compactMeta[3];
3106
+ }
3107
+ {
3108
+ cmpMeta.$attrsToReflect$ = [];
3109
+ }
3110
+ {
3111
+ cmpMeta.$watchers$ = (_a2 = compactMeta[4]) != null ? _a2 : {};
3112
+ cmpMeta.$serializers$ = (_b = compactMeta[5]) != null ? _b : {};
3113
+ cmpMeta.$deserializers$ = (_c = compactMeta[6]) != null ? _c : {};
3114
+ }
3115
+ const tagName = transformTag(cmpMeta.$tagName$);
3116
+ const HostElement = class extends HTMLElement {
3117
+ ["s-p"];
3118
+ ["s-rc"];
3119
+ hasRegisteredEventListeners = false;
3120
+ // StencilLazyHost
3121
+ constructor(self) {
3122
+ super(self);
3123
+ self = this;
3124
+ registerHost(self, cmpMeta);
3125
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
3126
+ {
3127
+ if (!self.shadowRoot) {
3128
+ createShadowRoot.call(self, cmpMeta);
3129
+ } else {
3130
+ if (self.shadowRoot.mode !== "open") {
3131
+ throw new Error(
3132
+ `Unable to re-use existing shadow root for ${cmpMeta.$tagName$}! Mode is set to ${self.shadowRoot.mode} but Stencil only supports open shadow roots.`
3133
+ );
3134
+ }
3135
+ }
3136
+ }
3137
+ }
3138
+ }
3139
+ connectedCallback() {
3140
+ const hostRef = getHostRef(this);
3141
+ if (!hostRef) {
3142
+ return;
3143
+ }
3144
+ if (!this.hasRegisteredEventListeners) {
3145
+ this.hasRegisteredEventListeners = true;
3146
+ addHostEventListeners(this, hostRef, cmpMeta.$listeners$);
3147
+ }
3148
+ if (appLoadFallback) {
3149
+ clearTimeout(appLoadFallback);
3150
+ appLoadFallback = null;
3151
+ }
3152
+ if (isBootstrapping) {
3153
+ deferredConnectedCallbacks.push(this);
3154
+ } else {
3155
+ plt.jmp(() => connectedCallback(this));
3156
+ }
3157
+ }
3158
+ disconnectedCallback() {
3159
+ plt.jmp(() => disconnectedCallback(this));
3160
+ plt.raf(() => {
3161
+ var _a3;
3162
+ const hostRef = getHostRef(this);
3163
+ if (!hostRef) {
3164
+ return;
3165
+ }
3166
+ const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
3167
+ if (i2 > -1) {
3168
+ deferredConnectedCallbacks.splice(i2, 1);
3169
+ }
3170
+ if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
3171
+ delete hostRef.$vnode$.$elm$;
3172
+ }
3173
+ });
3174
+ }
3175
+ componentOnReady() {
3176
+ var _a3;
3177
+ return (_a3 = getHostRef(this)) == null ? void 0 : _a3.$onReadyPromise$;
3178
+ }
3179
+ };
3180
+ if (cmpMeta.$flags$ & 64 /* formAssociated */) {
3181
+ HostElement.formAssociated = true;
3182
+ }
3183
+ cmpMeta.$lazyBundleId$ = lazyBundle[0];
3184
+ if (!exclude.includes(tagName) && !customElements2.get(tagName)) {
3185
+ cmpTags.push(tagName);
3186
+ customElements2.define(
3187
+ tagName,
3188
+ proxyComponent(HostElement, cmpMeta, 1 /* isElementConstructor */)
3189
+ );
3190
+ }
3191
+ });
3192
+ });
3193
+ if (cmpTags.length > 0) {
3194
+ if (hasSlotRelocation) {
3195
+ dataStyles.textContent += SLOT_FB_CSS;
3196
+ }
3197
+ {
3198
+ dataStyles.textContent += cmpTags.sort() + HYDRATED_CSS;
3199
+ }
3200
+ if (dataStyles.innerHTML.length) {
3201
+ dataStyles.setAttribute("data-styles", "");
3202
+ const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
3203
+ if (nonce != null) {
3204
+ dataStyles.setAttribute("nonce", nonce);
3205
+ }
3206
+ head.insertBefore(dataStyles, metaCharset ? metaCharset.nextSibling : head.firstChild);
3207
+ }
3208
+ }
3209
+ isBootstrapping = false;
3210
+ if (deferredConnectedCallbacks.length) {
3211
+ deferredConnectedCallbacks.map((host) => host.connectedCallback());
3212
+ } else {
3213
+ {
3214
+ plt.jmp(() => appLoadFallback = setTimeout(appDidLoad, 30));
3215
+ }
3216
+ }
3217
+ endBootstrap();
3218
+ };
3219
+
3220
+ // src/runtime/fragment.ts
3221
+ var Fragment = (_, children) => children;
3222
+ var addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
3223
+ if (listeners && win.document) {
3224
+ listeners.map(([flags, name, method]) => {
3225
+ const target = getHostListenerTarget(win.document, elm, flags) ;
3226
+ const handler = hostListenerProxy(hostRef, method);
3227
+ const opts = hostListenerOpts(flags);
3228
+ plt.ael(target, name, handler, opts);
3229
+ (hostRef.$rmListeners$ = hostRef.$rmListeners$ || []).push(() => plt.rel(target, name, handler, opts));
3230
+ });
3231
+ }
3232
+ };
3233
+ var hostListenerProxy = (hostRef, methodName) => (ev) => {
3234
+ var _a;
3235
+ try {
3236
+ {
3237
+ if (hostRef.$flags$ & 256 /* isListenReady */) {
3238
+ (_a = hostRef.$lazyInstance$) == null ? void 0 : _a[methodName](ev);
3239
+ } else {
3240
+ (hostRef.$queuedListeners$ = hostRef.$queuedListeners$ || []).push([methodName, ev]);
3241
+ }
3242
+ }
3243
+ } catch (e) {
3244
+ consoleError(e, hostRef.$hostElement$);
3245
+ }
3246
+ };
3247
+ var getHostListenerTarget = (doc, elm, flags) => {
3248
+ if (flags & 4 /* TargetDocument */) {
3249
+ return doc;
3250
+ }
3251
+ if (flags & 8 /* TargetWindow */) {
3252
+ return win;
3253
+ }
3254
+ return elm;
3255
+ };
3256
+ var hostListenerOpts = (flags) => supportsListenerOptions ? {
3257
+ passive: (flags & 1 /* Passive */) !== 0,
3258
+ capture: (flags & 2 /* Capture */) !== 0
3259
+ } : (flags & 2 /* Capture */) !== 0;
3260
+
3261
+ // src/runtime/nonce.ts
3262
+ var setNonce = (nonce) => plt.$nonce$ = nonce;
3263
+ function transformTag(tag) {
3264
+ return tag;
3265
+ }
3266
+
3267
+ export { Fragment as F, 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 };