@infineon/design-system 0.0.0-stage → 41.11.0

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