@ionic/core 8.4.2-dev.11736265112.120bf7af → 8.4.2-dev.11736507189.18234064

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 (1190) hide show
  1. package/components/action-sheet.js +13 -8
  2. package/components/alert.js +15 -10
  3. package/components/animation.js +1 -1
  4. package/components/backdrop.js +10 -6
  5. package/components/button.js +41 -11
  6. package/components/buttons.js +11 -7
  7. package/components/capacitor.js +1 -1
  8. package/components/caret-down.js +6 -0
  9. package/components/caret-left.js +6 -0
  10. package/components/caret-right.js +6 -0
  11. package/components/checkbox.js +30 -12
  12. package/components/config2.js +79 -0
  13. package/components/content.js +14 -12
  14. package/components/data.js +4 -4
  15. package/components/focus-visible.js +8 -1
  16. package/components/framework-delegate.js +3 -1
  17. package/components/header.js +24 -15
  18. package/components/helpers.js +4 -1
  19. package/components/index2.js +2 -2
  20. package/components/index4.js +8 -9
  21. package/components/index5.js +27 -3
  22. package/components/index6.js +114 -20
  23. package/components/index7.js +163 -27
  24. package/components/input-shims.js +2 -2
  25. package/components/input.utils.js +1 -2
  26. package/components/ion-accordion-group.js +25 -6
  27. package/components/ion-accordion.js +36 -17
  28. package/components/ion-app.js +9 -77
  29. package/components/ion-avatar.js +52 -3
  30. package/components/ion-back-button.js +29 -19
  31. package/components/ion-badge.js +44 -8
  32. package/components/ion-breadcrumb.js +45 -11
  33. package/components/ion-breadcrumbs.js +9 -5
  34. package/components/ion-card-content.js +11 -7
  35. package/components/ion-card-header.js +9 -5
  36. package/components/ion-card-subtitle.js +9 -5
  37. package/components/ion-card-title.js +9 -5
  38. package/components/ion-card.js +17 -9
  39. package/components/ion-chip.js +45 -8
  40. package/components/ion-col.js +5 -5
  41. package/components/ion-datetime-button.js +9 -6
  42. package/components/ion-datetime.js +99 -21
  43. package/components/ion-fab-button.js +33 -10
  44. package/components/ion-fab-list.js +5 -5
  45. package/components/ion-fab.js +6 -6
  46. package/components/ion-footer.js +18 -12
  47. package/components/ion-grid.js +5 -5
  48. package/components/ion-img.js +5 -2
  49. package/components/ion-infinite-scroll-content.js +13 -8
  50. package/components/ion-infinite-scroll.js +5 -5
  51. package/components/ion-input-password-toggle.js +53 -14
  52. package/components/ion-input.js +118 -20
  53. package/components/ion-item-divider.js +9 -5
  54. package/components/ion-item-group.js +9 -5
  55. package/components/ion-item-option.js +28 -8
  56. package/components/ion-item-options.js +9 -5
  57. package/components/ion-item-sliding.js +5 -5
  58. package/components/ion-loading.js +13 -8
  59. package/components/ion-menu-button.js +28 -10
  60. package/components/ion-menu-toggle.js +5 -5
  61. package/components/ion-menu.js +12 -8
  62. package/components/ion-nav-link.js +1 -1
  63. package/components/ion-nav.js +8 -6
  64. package/components/ion-note.js +9 -5
  65. package/components/ion-picker-legacy.js +7 -8
  66. package/components/ion-progress-bar.js +11 -6
  67. package/components/ion-range.js +13 -10
  68. package/components/ion-refresher-content.js +28 -9
  69. package/components/ion-refresher.js +11 -7
  70. package/components/ion-reorder-group.js +5 -5
  71. package/components/ion-reorder.js +31 -5
  72. package/components/ion-router-link.js +6 -6
  73. package/components/ion-router-outlet.js +4 -3
  74. package/components/ion-row.js +5 -2
  75. package/components/ion-searchbar.js +93 -16
  76. package/components/ion-segment-button.js +11 -7
  77. package/components/ion-segment-content.js +1 -1
  78. package/components/ion-segment-view.js +6 -2
  79. package/components/ion-segment.js +11 -7
  80. package/components/ion-select-option.js +5 -2
  81. package/components/ion-select.js +118 -31
  82. package/components/ion-skeleton-text.js +6 -5
  83. package/components/ion-split-pane.js +12 -8
  84. package/components/ion-tab-bar.js +31 -8
  85. package/components/ion-tab-button.js +28 -7
  86. package/components/ion-tab.js +2 -2
  87. package/components/ion-tabs.js +2 -2
  88. package/components/ion-text.js +5 -5
  89. package/components/ion-textarea.js +38 -11
  90. package/components/ion-thumbnail.js +5 -2
  91. package/components/ion-toast.js +30 -11
  92. package/components/ion-toggle.js +77 -18
  93. package/components/ionic-global.js +374 -84
  94. package/components/ios.transition.js +1 -0
  95. package/components/item.js +41 -11
  96. package/components/keyboard-controller.js +4 -2
  97. package/components/label.js +9 -5
  98. package/components/list-header.js +9 -5
  99. package/components/list.js +29 -6
  100. package/components/list2.js +6 -0
  101. package/components/modal.js +51 -21
  102. package/components/notch-controller.js +1 -1
  103. package/components/overlays.js +4 -5
  104. package/components/picker-column-option.js +9 -5
  105. package/components/picker-column.js +7 -8
  106. package/components/picker-column2.js +4 -4
  107. package/components/picker.js +8 -4
  108. package/components/popover.js +11 -8
  109. package/components/radio-group.js +5 -3
  110. package/components/radio.js +12 -8
  111. package/components/ripple-effect.js +18 -8
  112. package/components/select-modal.js +3 -3
  113. package/components/select-popover.js +9 -2
  114. package/components/spinner.js +36 -9
  115. package/components/status-tap.js +1 -1
  116. package/components/title.js +11 -7
  117. package/components/toolbar.js +11 -7
  118. package/components/x.js +6 -0
  119. package/css/core.css +1 -1
  120. package/css/core.css.map +1 -1
  121. package/css/display.css +1 -1
  122. package/css/display.css.map +1 -1
  123. package/css/flex-utils.css.map +1 -1
  124. package/css/float-elements.css.map +1 -1
  125. package/css/global.bundle.css.map +1 -1
  126. package/css/ionic/bundle.ionic.css +1 -0
  127. package/css/ionic/bundle.ionic.css.map +1 -0
  128. package/css/ionic/core.ionic.css +1 -0
  129. package/css/ionic/core.ionic.css.map +1 -0
  130. package/css/ionic/global.bundle.ionic.css +1 -0
  131. package/css/ionic/global.bundle.ionic.css.map +1 -0
  132. package/css/ionic/ionic-swiper.ionic.css +1 -0
  133. package/css/ionic/ionic-swiper.ionic.css.map +1 -0
  134. package/css/ionic/link.ionic.css +1 -0
  135. package/css/ionic/link.ionic.css.map +1 -0
  136. package/css/ionic/structure.ionic.css +1 -0
  137. package/css/ionic/structure.ionic.css.map +1 -0
  138. package/css/ionic/typography.ionic.css +1 -0
  139. package/css/ionic/typography.ionic.css.map +1 -0
  140. package/css/ionic/utils.bundle.ionic.css +1 -0
  141. package/css/ionic/utils.bundle.ionic.css.map +1 -0
  142. package/css/ionic-swiper.css +1 -1
  143. package/css/ionic-swiper.css.map +1 -1
  144. package/css/ionic.bundle.css +1 -1
  145. package/css/ionic.bundle.css.map +1 -1
  146. package/css/normalize.css.map +1 -1
  147. package/css/padding.css.map +1 -1
  148. package/css/palettes/dark.always.css.map +1 -1
  149. package/css/palettes/dark.class.css.map +1 -1
  150. package/css/palettes/dark.system.css.map +1 -1
  151. package/css/palettes/high-contrast-dark.always.css.map +1 -1
  152. package/css/palettes/high-contrast-dark.class.css.map +1 -1
  153. package/css/palettes/high-contrast-dark.system.css.map +1 -1
  154. package/css/palettes/high-contrast.always.css.map +1 -1
  155. package/css/palettes/high-contrast.class.css.map +1 -1
  156. package/css/palettes/high-contrast.system.css.map +1 -1
  157. package/css/structure.css.map +1 -1
  158. package/css/text-alignment.css.map +1 -1
  159. package/css/text-transformation.css.map +1 -1
  160. package/css/typography.css.map +1 -1
  161. package/css/utils.bundle.css +1 -1
  162. package/css/utils.bundle.css.map +1 -1
  163. package/dist/cjs/{animation-b4fdf128.js → animation-58015a44.js} +2 -2
  164. package/dist/cjs/{app-globals-16893c1e.js → app-globals-d64148d3.js} +1 -1
  165. package/dist/cjs/{button-active-ec3d9ca2.js → button-active-ec1fd1d8.js} +2 -2
  166. package/dist/cjs/{capacitor-c04564bf.js → capacitor-454dd071.js} +3 -3
  167. package/dist/cjs/caret-down-3c215cff.js +8 -0
  168. package/dist/cjs/caret-left-2bb66970.js +8 -0
  169. package/dist/cjs/caret-right-88e03970.js +8 -0
  170. package/dist/cjs/config-aff4ff52.js +84 -0
  171. package/dist/cjs/{data-21dc0f81.js → data-b726dbee.js} +6 -6
  172. package/dist/cjs/{focus-visible-7a0ce04f.js → focus-visible-9aa87fa3.js} +8 -0
  173. package/dist/cjs/{framework-delegate-55f5683a.js → framework-delegate-32f1a0e4.js} +4 -2
  174. package/dist/cjs/{haptic-f6b37aa3.js → haptic-7c25be74.js} +1 -1
  175. package/dist/cjs/{helpers-afaa9001.js → helpers-4e2936d2.js} +4 -1
  176. package/dist/cjs/{index-2b28acc8.js → index-03fbee1d.js} +14 -15
  177. package/dist/cjs/{index-9509ecad.js → index-0e0c6196.js} +9 -7
  178. package/dist/cjs/{index-5b6a7459.js → index-604c36ae.js} +3 -3
  179. package/dist/cjs/{index-55b6245a.js → index-73f75efb.js} +756 -1129
  180. package/dist/cjs/{index-29ad8b24.js → index-8f975cf4.js} +12 -12
  181. package/dist/cjs/index.cjs.js +11 -13
  182. package/dist/cjs/{input-shims-9e59ef62.js → input-shims-4b4d2251.js} +18 -17
  183. package/dist/cjs/{input.utils-611cde0b.js → input.utils-fb1debe4.js} +4 -5
  184. package/dist/cjs/ion-accordion_2.cjs.entry.js +62 -25
  185. package/dist/cjs/ion-action-sheet.cjs.entry.js +22 -19
  186. package/dist/cjs/ion-alert.cjs.entry.js +26 -24
  187. package/dist/cjs/ion-app_8.cjs.entry.js +109 -153
  188. package/dist/cjs/ion-avatar_3.cjs.entry.js +94 -10
  189. package/dist/cjs/ion-back-button.cjs.entry.js +32 -22
  190. package/dist/cjs/ion-backdrop.cjs.entry.js +12 -7
  191. package/dist/cjs/ion-breadcrumb_2.cjs.entry.js +54 -16
  192. package/dist/cjs/ion-button_2.cjs.entry.js +47 -16
  193. package/dist/cjs/ion-card_5.cjs.entry.js +53 -29
  194. package/dist/cjs/ion-checkbox.cjs.entry.js +31 -14
  195. package/dist/cjs/ion-chip.cjs.entry.js +44 -8
  196. package/dist/cjs/ion-col_3.cjs.entry.js +15 -11
  197. package/dist/cjs/ion-datetime-button.cjs.entry.js +17 -13
  198. package/dist/cjs/ion-datetime_3.cjs.entry.js +191 -115
  199. package/dist/cjs/ion-fab_3.cjs.entry.js +43 -20
  200. package/dist/cjs/ion-img.cjs.entry.js +8 -4
  201. package/dist/cjs/ion-infinite-scroll_2.cjs.entry.js +22 -18
  202. package/dist/cjs/ion-input-password-toggle.cjs.entry.js +56 -17
  203. package/dist/cjs/ion-input.cjs.entry.js +119 -24
  204. package/dist/cjs/ion-item-option_3.cjs.entry.js +41 -18
  205. package/dist/cjs/ion-item_8.cjs.entry.js +114 -42
  206. package/dist/cjs/ion-loading.cjs.entry.js +21 -19
  207. package/dist/cjs/ion-menu_3.cjs.entry.js +49 -30
  208. package/dist/cjs/ion-modal.cjs.entry.js +95 -67
  209. package/dist/cjs/ion-nav_2.cjs.entry.js +16 -14
  210. package/dist/cjs/ion-picker-column-option.cjs.entry.js +12 -7
  211. package/dist/cjs/ion-picker-column.cjs.entry.js +13 -13
  212. package/dist/cjs/ion-picker.cjs.entry.js +11 -6
  213. package/dist/cjs/ion-popover.cjs.entry.js +21 -19
  214. package/dist/cjs/ion-progress-bar.cjs.entry.js +14 -9
  215. package/dist/cjs/ion-radio_2.cjs.entry.js +19 -12
  216. package/dist/cjs/ion-range.cjs.entry.js +21 -17
  217. package/dist/cjs/ion-refresher_2.cjs.entry.js +45 -24
  218. package/dist/cjs/ion-reorder_2.cjs.entry.js +38 -14
  219. package/dist/cjs/ion-ripple-effect.cjs.entry.js +19 -8
  220. package/dist/cjs/ion-route_4.cjs.entry.js +9 -8
  221. package/dist/cjs/ion-searchbar.cjs.entry.js +95 -18
  222. package/dist/cjs/ion-segment-content.cjs.entry.js +2 -2
  223. package/dist/cjs/ion-segment-view.cjs.entry.js +7 -3
  224. package/dist/cjs/ion-segment_2.cjs.entry.js +24 -15
  225. package/dist/cjs/ion-select-modal.cjs.entry.js +9 -11
  226. package/dist/cjs/ion-select_3.cjs.entry.js +133 -40
  227. package/dist/cjs/ion-spinner.cjs.entry.js +36 -10
  228. package/dist/cjs/ion-split-pane.cjs.entry.js +14 -9
  229. package/dist/cjs/ion-tab-bar_2.cjs.entry.js +61 -21
  230. package/dist/cjs/ion-tab_2.cjs.entry.js +8 -7
  231. package/dist/cjs/ion-text.cjs.entry.js +7 -6
  232. package/dist/cjs/ion-textarea.cjs.entry.js +42 -17
  233. package/dist/cjs/ion-toast.cjs.entry.js +59 -42
  234. package/dist/cjs/ion-toggle.cjs.entry.js +81 -23
  235. package/dist/cjs/ionic-global-14af9c21.js +535 -0
  236. package/dist/cjs/ionic.cjs.js +6 -5
  237. package/dist/cjs/{ios.transition-9820d3dc.js → ios.transition-2bb0f7d5.js} +7 -7
  238. package/dist/cjs/{keyboard-af1bb365.js → keyboard-0a5d46dd.js} +5 -3
  239. package/dist/cjs/{keyboard-0272231f.js → keyboard-53c12a15.js} +1 -1
  240. package/dist/cjs/{keyboard-controller-c05e747a.js → keyboard-controller-102bad3e.js} +11 -9
  241. package/dist/cjs/list-2930c629.js +8 -0
  242. package/dist/cjs/loader.cjs.js +5 -4
  243. package/dist/cjs/{md.transition-a35e0839.js → md.transition-cf600117.js} +6 -7
  244. package/dist/cjs/{notch-controller-d69150f5.js → notch-controller-ea70e230.js} +4 -4
  245. package/dist/cjs/{overlays-43ae7e1d.js → overlays-542a90b3.js} +19 -20
  246. package/dist/cjs/{status-tap-f98e43a0.js → status-tap-aa97d209.js} +5 -4
  247. package/dist/cjs/{swipe-back-0303a5e4.js → swipe-back-27975274.js} +2 -1
  248. package/dist/cjs/x-81a8f51c.js +8 -0
  249. package/dist/collection/collection-manifest.json +2 -2
  250. package/dist/collection/components/accordion/accordion.ionic.css +197 -0
  251. package/dist/collection/components/accordion/accordion.ios.css +73 -58
  252. package/dist/collection/components/accordion/accordion.js +37 -31
  253. package/dist/collection/components/accordion/accordion.md.css +67 -59
  254. package/dist/collection/components/accordion-group/accordion-group.ionic.css +95 -0
  255. package/dist/collection/components/accordion-group/accordion-group.ios.css +16 -4
  256. package/dist/collection/components/accordion-group/accordion-group.js +43 -20
  257. package/dist/collection/components/accordion-group/accordion-group.md.css +22 -4
  258. package/dist/collection/components/action-sheet/action-sheet.ios.css +18 -6
  259. package/dist/collection/components/action-sheet/action-sheet.js +18 -46
  260. package/dist/collection/components/action-sheet/action-sheet.md.css +17 -5
  261. package/dist/collection/components/alert/alert.ios.css +19 -1
  262. package/dist/collection/components/alert/alert.js +19 -52
  263. package/dist/collection/components/alert/alert.md.css +19 -1
  264. package/dist/collection/components/app/app.js +12 -78
  265. package/dist/collection/components/avatar/avatar.ionic.css +268 -0
  266. package/dist/collection/components/avatar/avatar.ios.css +12 -0
  267. package/dist/collection/components/avatar/avatar.js +92 -4
  268. package/dist/collection/components/avatar/avatar.md.css +12 -0
  269. package/dist/collection/components/back-button/back-button.ios.css +60 -48
  270. package/dist/collection/components/back-button/back-button.js +28 -34
  271. package/dist/collection/components/back-button/back-button.md.css +60 -48
  272. package/dist/collection/components/backdrop/backdrop.ionic.css +151 -0
  273. package/dist/collection/components/backdrop/backdrop.ios.css +13 -1
  274. package/dist/collection/components/backdrop/backdrop.js +12 -12
  275. package/dist/collection/components/backdrop/backdrop.md.css +13 -1
  276. package/dist/collection/components/badge/badge.ionic.css +249 -0
  277. package/dist/collection/components/badge/badge.ios.css +106 -3
  278. package/dist/collection/components/badge/badge.js +75 -10
  279. package/dist/collection/components/badge/badge.md.css +106 -3
  280. package/dist/collection/components/breadcrumb/breadcrumb.ios.css +20 -8
  281. package/dist/collection/components/breadcrumb/breadcrumb.js +44 -38
  282. package/dist/collection/components/breadcrumb/breadcrumb.md.css +20 -8
  283. package/dist/collection/components/breadcrumbs/breadcrumbs.ios.css +6 -0
  284. package/dist/collection/components/breadcrumbs/breadcrumbs.js +11 -17
  285. package/dist/collection/components/breadcrumbs/breadcrumbs.md.css +6 -0
  286. package/dist/collection/components/button/button.ionic.css +589 -0
  287. package/dist/collection/components/button/button.ios.css +129 -36
  288. package/dist/collection/components/button/button.js +47 -49
  289. package/dist/collection/components/button/button.md.css +120 -40
  290. package/dist/collection/components/buttons/buttons.ionic.css +100 -0
  291. package/dist/collection/components/buttons/buttons.ios.css +59 -7
  292. package/dist/collection/components/buttons/buttons.js +14 -10
  293. package/dist/collection/components/buttons/buttons.md.css +55 -3
  294. package/dist/collection/components/card/card.ionic.css +137 -0
  295. package/dist/collection/components/card/card.ios.css +65 -14
  296. package/dist/collection/components/card/card.js +34 -30
  297. package/dist/collection/components/card/card.md.css +65 -14
  298. package/dist/collection/components/card-content/card-content.ionic.css +90 -0
  299. package/dist/collection/components/card-content/card-content.ios.css +16 -1
  300. package/dist/collection/components/card-content/card-content.js +11 -8
  301. package/dist/collection/components/card-content/card-content.md.css +16 -1
  302. package/dist/collection/components/card-header/card-header.ionic.css +87 -0
  303. package/dist/collection/components/card-header/card-header.ios.css +27 -15
  304. package/dist/collection/components/card-header/card-header.js +12 -13
  305. package/dist/collection/components/card-header/card-header.md.css +27 -15
  306. package/dist/collection/components/card-subtitle/card-subtitle.ionic.css +146 -0
  307. package/dist/collection/components/card-subtitle/card-subtitle.ios.css +12 -0
  308. package/dist/collection/components/card-subtitle/card-subtitle.js +11 -10
  309. package/dist/collection/components/card-subtitle/card-subtitle.md.css +12 -0
  310. package/dist/collection/components/card-title/card-title.ios.css +73 -0
  311. package/dist/collection/components/card-title/card-title.js +11 -10
  312. package/dist/collection/components/card-title/card-title.md.css +73 -0
  313. package/dist/collection/components/checkbox/checkbox.ionic.css +402 -0
  314. package/dist/collection/components/checkbox/checkbox.ios.css +20 -2
  315. package/dist/collection/components/checkbox/checkbox.js +64 -32
  316. package/dist/collection/components/checkbox/checkbox.md.css +21 -3
  317. package/dist/collection/components/chip/chip.ionic.css +160 -0
  318. package/dist/collection/components/chip/chip.ios.css +20 -1
  319. package/dist/collection/components/chip/chip.js +77 -14
  320. package/dist/collection/components/chip/chip.md.css +20 -1
  321. package/dist/collection/components/col/col.css +12 -0
  322. package/dist/collection/components/col/col.js +9 -53
  323. package/dist/collection/components/content/content.css +8 -2
  324. package/dist/collection/components/content/content.js +16 -25
  325. package/dist/collection/components/datetime/datetime.ionic.css +673 -0
  326. package/dist/collection/components/datetime/datetime.ios.css +237 -86
  327. package/dist/collection/components/datetime/datetime.js +102 -84
  328. package/dist/collection/components/datetime/datetime.md.css +237 -86
  329. package/dist/collection/components/datetime/utils/data.js +3 -3
  330. package/dist/collection/components/datetime-button/datetime-button.ios.css +6 -0
  331. package/dist/collection/components/datetime-button/datetime-button.js +11 -14
  332. package/dist/collection/components/datetime-button/datetime-button.md.css +6 -0
  333. package/dist/collection/components/fab/fab.css +25 -1
  334. package/dist/collection/components/fab/fab.js +9 -13
  335. package/dist/collection/components/fab-button/fab-button.ios.css +18 -6
  336. package/dist/collection/components/fab-button/fab-button.js +37 -44
  337. package/dist/collection/components/fab-button/fab-button.md.css +20 -8
  338. package/dist/collection/components/fab-list/fab-list.css +12 -0
  339. package/dist/collection/components/fab-list/fab-list.js +9 -9
  340. package/dist/collection/components/footer/footer.ios.css +14 -2
  341. package/dist/collection/components/footer/footer.js +20 -19
  342. package/dist/collection/components/footer/footer.md.css +12 -0
  343. package/dist/collection/components/grid/grid.css +12 -0
  344. package/dist/collection/components/grid/grid.js +9 -7
  345. package/dist/collection/components/header/header.ionic.css +86 -0
  346. package/dist/collection/components/header/header.ios.css +25 -10
  347. package/dist/collection/components/header/header.js +42 -21
  348. package/dist/collection/components/header/header.md.css +23 -8
  349. package/dist/collection/components/img/img.js +8 -6
  350. package/dist/collection/components/infinite-scroll/infinite-scroll.js +8 -10
  351. package/dist/collection/components/infinite-scroll-content/infinite-scroll-content.ios.css +12 -0
  352. package/dist/collection/components/infinite-scroll-content/infinite-scroll-content.js +16 -14
  353. package/dist/collection/components/infinite-scroll-content/infinite-scroll-content.md.css +12 -0
  354. package/dist/collection/components/input/input.ionic.css +1096 -0
  355. package/dist/collection/components/input/input.ios.css +21 -2
  356. package/dist/collection/components/input/input.js +145 -99
  357. package/dist/collection/components/input/input.md.css +43 -4
  358. package/dist/collection/components/input-password-toggle/input-password-toggle.common.css +61 -0
  359. package/dist/collection/components/input-password-toggle/input-password-toggle.ionic.css +141 -0
  360. package/dist/collection/components/input-password-toggle/input-password-toggle.js +48 -20
  361. package/dist/collection/components/item/item.ionic.css +497 -0
  362. package/dist/collection/components/item/item.ios.css +109 -69
  363. package/dist/collection/components/item/item.js +45 -43
  364. package/dist/collection/components/item/item.md.css +120 -68
  365. package/dist/collection/components/item-divider/item-divider.ios.css +18 -0
  366. package/dist/collection/components/item-divider/item-divider.js +11 -12
  367. package/dist/collection/components/item-divider/item-divider.md.css +18 -0
  368. package/dist/collection/components/item-group/item-group.ios.css +12 -0
  369. package/dist/collection/components/item-group/item-group.js +13 -7
  370. package/dist/collection/components/item-group/item-group.md.css +12 -0
  371. package/dist/collection/components/item-option/item-option.ionic.css +332 -0
  372. package/dist/collection/components/item-option/item-option.ios.css +14 -2
  373. package/dist/collection/components/item-option/item-option.js +43 -24
  374. package/dist/collection/components/item-option/item-option.md.css +14 -2
  375. package/dist/collection/components/item-options/item-options.ionic.css +259 -0
  376. package/dist/collection/components/item-options/item-options.ios.css +18 -0
  377. package/dist/collection/components/item-options/item-options.js +13 -9
  378. package/dist/collection/components/item-options/item-options.md.css +18 -0
  379. package/dist/collection/components/item-sliding/item-sliding.css +6 -0
  380. package/dist/collection/components/item-sliding/item-sliding.js +8 -6
  381. package/dist/collection/components/label/label.ios.css +18 -0
  382. package/dist/collection/components/label/label.js +11 -12
  383. package/dist/collection/components/label/label.md.css +18 -0
  384. package/dist/collection/components/list/list.ionic.css +192 -0
  385. package/dist/collection/components/list/list.ios.css +18 -0
  386. package/dist/collection/components/list/list.js +47 -13
  387. package/dist/collection/components/list/list.md.css +20 -2
  388. package/dist/collection/components/list-header/list-header.ionic.css +236 -0
  389. package/dist/collection/components/list-header/list-header.ios.css +18 -0
  390. package/dist/collection/components/list-header/list-header.js +11 -12
  391. package/dist/collection/components/list-header/list-header.md.css +18 -0
  392. package/dist/collection/components/loading/loading.ios.css +13 -1
  393. package/dist/collection/components/loading/loading.js +17 -48
  394. package/dist/collection/components/loading/loading.md.css +13 -1
  395. package/dist/collection/components/menu/menu.ios.css +15 -3
  396. package/dist/collection/components/menu/menu.js +12 -21
  397. package/dist/collection/components/menu/menu.md.css +15 -3
  398. package/dist/collection/components/menu-button/menu-button.ionic.css +238 -0
  399. package/dist/collection/components/menu-button/menu-button.ios.css +48 -14
  400. package/dist/collection/components/menu-button/menu-button.js +26 -20
  401. package/dist/collection/components/menu-button/menu-button.md.css +49 -15
  402. package/dist/collection/components/menu-toggle/menu-toggle.js +8 -9
  403. package/dist/collection/components/modal/animations/sheet.js +8 -2
  404. package/dist/collection/components/modal/gestures/sheet.js +10 -6
  405. package/dist/collection/components/modal/modal.ionic.css +239 -0
  406. package/dist/collection/components/modal/modal.ios.css +106 -63
  407. package/dist/collection/components/modal/modal.js +54 -66
  408. package/dist/collection/components/modal/modal.md.css +106 -63
  409. package/dist/collection/components/nav/nav.css +7 -1
  410. package/dist/collection/components/nav/nav.js +14 -20
  411. package/dist/collection/components/nav-link/nav-link.js +7 -11
  412. package/dist/collection/components/note/note.ios.css +12 -0
  413. package/dist/collection/components/note/note.js +11 -10
  414. package/dist/collection/components/note/note.md.css +12 -0
  415. package/dist/collection/components/picker/picker.ios.css +15 -3
  416. package/dist/collection/components/picker/picker.js +8 -5
  417. package/dist/collection/components/picker/picker.md.css +15 -3
  418. package/dist/collection/components/picker-column/picker-column.css +9 -2
  419. package/dist/collection/components/picker-column/picker-column.js +8 -15
  420. package/dist/collection/components/picker-column-option/picker-column-option.ios.css +6 -0
  421. package/dist/collection/components/picker-column-option/picker-column-option.js +13 -13
  422. package/dist/collection/components/picker-column-option/picker-column-option.md.css +6 -0
  423. package/dist/collection/components/picker-legacy/picker.ios.css +13 -1
  424. package/dist/collection/components/picker-legacy/picker.js +11 -42
  425. package/dist/collection/components/picker-legacy/picker.md.css +13 -1
  426. package/dist/collection/components/picker-legacy-column/picker-column.ios.css +12 -0
  427. package/dist/collection/components/picker-legacy-column/picker-column.js +5 -7
  428. package/dist/collection/components/picker-legacy-column/picker-column.md.css +12 -0
  429. package/dist/collection/components/popover/popover.ios.css +13 -1
  430. package/dist/collection/components/popover/popover.js +20 -71
  431. package/dist/collection/components/popover/popover.md.css +13 -1
  432. package/dist/collection/components/progress-bar/progress-bar.ios.css +8 -2
  433. package/dist/collection/components/progress-bar/progress-bar.js +10 -17
  434. package/dist/collection/components/progress-bar/progress-bar.md.css +8 -2
  435. package/dist/collection/components/radio/radio.ionic.css +424 -0
  436. package/dist/collection/components/radio/radio.ios.css +134 -91
  437. package/dist/collection/components/radio/radio.js +12 -23
  438. package/dist/collection/components/radio/radio.md.css +134 -91
  439. package/dist/collection/components/radio-group/radio-group.js +9 -11
  440. package/dist/collection/components/range/range.ionic.css +555 -0
  441. package/dist/collection/components/range/range.ios.css +128 -85
  442. package/dist/collection/components/range/range.js +12 -41
  443. package/dist/collection/components/range/range.md.css +128 -85
  444. package/dist/collection/components/refresher/refresher.ios.css +14 -1
  445. package/dist/collection/components/refresher/refresher.js +11 -20
  446. package/dist/collection/components/refresher/refresher.md.css +15 -2
  447. package/dist/collection/components/refresher-content/refresher-content.js +28 -15
  448. package/dist/collection/components/reorder/reorder.ios.css +6 -0
  449. package/dist/collection/components/reorder/reorder.js +33 -6
  450. package/dist/collection/components/reorder/reorder.md.css +6 -0
  451. package/dist/collection/components/reorder-group/reorder-group.css +6 -0
  452. package/dist/collection/components/reorder-group/reorder-group.js +8 -6
  453. package/dist/collection/components/ripple-effect/{ripple-effect.css → ripple-effect.common.css} +7 -1
  454. package/dist/collection/components/ripple-effect/ripple-effect.ionic.css +154 -0
  455. package/dist/collection/components/ripple-effect/ripple-effect.js +14 -8
  456. package/dist/collection/components/route/route.js +7 -13
  457. package/dist/collection/components/route-redirect/route-redirect.js +0 -4
  458. package/dist/collection/components/router/router.js +4 -4
  459. package/dist/collection/components/router-link/router-link.css +8 -2
  460. package/dist/collection/components/router-link/router-link.js +10 -18
  461. package/dist/collection/components/router-outlet/router-outlet.css +7 -1
  462. package/dist/collection/components/router-outlet/router-outlet.js +8 -15
  463. package/dist/collection/components/row/row.css +12 -0
  464. package/dist/collection/components/row/row.js +9 -2
  465. package/dist/collection/components/searchbar/searchbar.ionic.css +345 -0
  466. package/dist/collection/components/searchbar/searchbar.ios.css +56 -18
  467. package/dist/collection/components/searchbar/searchbar.js +97 -69
  468. package/dist/collection/components/searchbar/searchbar.md.css +56 -18
  469. package/dist/collection/components/segment/segment.ionic.css +117 -0
  470. package/dist/collection/components/segment/segment.ios.css +45 -2
  471. package/dist/collection/components/segment/segment.js +11 -20
  472. package/dist/collection/components/segment/segment.md.css +45 -2
  473. package/dist/collection/components/segment-button/segment-button.ionic.css +355 -0
  474. package/dist/collection/components/segment-button/segment-button.ios.css +146 -105
  475. package/dist/collection/components/segment-button/segment-button.js +11 -18
  476. package/dist/collection/components/segment-button/segment-button.md.css +148 -107
  477. package/dist/collection/components/segment-content/segment-content.js +1 -1
  478. package/dist/collection/components/segment-view/segment-view.ios.css +6 -0
  479. package/dist/collection/components/segment-view/segment-view.js +6 -6
  480. package/dist/collection/components/segment-view/segment-view.md.css +6 -0
  481. package/dist/collection/components/select/select.ionic.css +706 -0
  482. package/dist/collection/components/select/select.ios.css +187 -121
  483. package/dist/collection/components/select/select.js +139 -75
  484. package/dist/collection/components/select/select.md.css +184 -226
  485. package/dist/collection/components/select-modal/select-modal.ionic.css +121 -0
  486. package/dist/collection/components/select-modal/select-modal.js +3 -9
  487. package/dist/collection/components/select-modal/select-modal.md.css +7 -3
  488. package/dist/collection/components/select-option/select-option.js +9 -6
  489. package/dist/collection/components/select-popover/select-popover.ios.css +18 -0
  490. package/dist/collection/components/select-popover/select-popover.js +12 -14
  491. package/dist/collection/components/select-popover/select-popover.md.css +18 -0
  492. package/dist/collection/components/skeleton-text/skeleton-text.css +6 -0
  493. package/dist/collection/components/skeleton-text/skeleton-text.js +9 -7
  494. package/dist/collection/components/spinner/spinner.common.css +199 -0
  495. package/dist/collection/components/spinner/{spinner.css → spinner.ionic.css} +63 -0
  496. package/dist/collection/components/spinner/spinner.js +46 -14
  497. package/dist/collection/components/split-pane/split-pane.ios.css +20 -2
  498. package/dist/collection/components/split-pane/split-pane.js +14 -14
  499. package/dist/collection/components/split-pane/split-pane.md.css +20 -2
  500. package/dist/collection/components/tab/tab.js +7 -11
  501. package/dist/collection/components/tab-bar/tab-bar.ionic.css +188 -0
  502. package/dist/collection/components/tab-bar/tab-bar.ios.css +71 -43
  503. package/dist/collection/components/tab-bar/tab-bar.js +65 -16
  504. package/dist/collection/components/tab-bar/tab-bar.md.css +71 -43
  505. package/dist/collection/components/tab-button/tab-button.ionic.css +282 -0
  506. package/dist/collection/components/tab-button/tab-button.ios.css +103 -88
  507. package/dist/collection/components/tab-button/tab-button.js +43 -24
  508. package/dist/collection/components/tab-button/tab-button.md.css +103 -88
  509. package/dist/collection/components/tabs/tabs.css +7 -1
  510. package/dist/collection/components/tabs/tabs.js +4 -3
  511. package/dist/collection/components/text/text.css +6 -0
  512. package/dist/collection/components/text/text.js +7 -8
  513. package/dist/collection/components/textarea/textarea.ionic.css +834 -0
  514. package/dist/collection/components/textarea/textarea.ios.css +201 -96
  515. package/dist/collection/components/textarea/textarea.js +60 -73
  516. package/dist/collection/components/textarea/textarea.md.css +214 -97
  517. package/dist/collection/components/thumbnail/thumbnail.css +6 -0
  518. package/dist/collection/components/thumbnail/thumbnail.js +9 -2
  519. package/dist/collection/components/title/title.ionic.css +145 -0
  520. package/dist/collection/components/title/title.ios.css +32 -4
  521. package/dist/collection/components/title/title.js +13 -11
  522. package/dist/collection/components/title/title.md.css +32 -4
  523. package/dist/collection/components/toast/animations/utils.js +1 -1
  524. package/dist/collection/components/toast/toast.ionic.css +377 -0
  525. package/dist/collection/components/toast/toast.ios.css +74 -35
  526. package/dist/collection/components/toast/toast.js +50 -59
  527. package/dist/collection/components/toast/toast.md.css +74 -35
  528. package/dist/collection/components/toggle/toggle.ionic.css +419 -0
  529. package/dist/collection/components/toggle/toggle.ios.css +166 -120
  530. package/dist/collection/components/toggle/toggle.js +73 -36
  531. package/dist/collection/components/toggle/toggle.md.css +163 -120
  532. package/dist/collection/components/toolbar/toolbar.ionic.css +233 -0
  533. package/dist/collection/components/toolbar/toolbar.ios.css +90 -47
  534. package/dist/collection/components/toolbar/toolbar.js +13 -12
  535. package/dist/collection/components/toolbar/toolbar.md.css +90 -47
  536. package/dist/collection/global/ionic-global.js +229 -13
  537. package/dist/collection/utils/focus-visible.js +7 -0
  538. package/dist/collection/utils/framework-delegate.js +3 -1
  539. package/dist/collection/utils/helpers.js +3 -1
  540. package/dist/collection/utils/keyboard/keyboard-controller.js +3 -1
  541. package/dist/collection/utils/menu-controller/animations/overlay.js +3 -3
  542. package/dist/collection/utils/menu-controller/animations/push.js +2 -1
  543. package/dist/collection/utils/menu-controller/animations/reveal.js +2 -1
  544. package/dist/collection/utils/overlays.js +2 -1
  545. package/dist/collection/utils/test/playwright/generator.js +48 -23
  546. package/dist/collection/utils/test/playwright/page/utils/goto.js +14 -5
  547. package/dist/collection/utils/test/playwright/page/utils/set-content.js +16 -2
  548. package/dist/collection/utils/transition/ios.transition.js +1 -0
  549. package/dist/docs.d.ts +0 -8
  550. package/dist/docs.json +7864 -2219
  551. package/dist/esm/{animation-eab5a4ca.js → animation-f1a88600.js} +1 -1
  552. package/dist/esm/{app-globals-32740a0d.js → app-globals-eceadabb.js} +1 -1
  553. package/dist/esm/{button-active-0e590bc4.js → button-active-321f0dba.js} +2 -2
  554. package/dist/esm/{capacitor-59395cbd.js → capacitor-6b0341c8.js} +1 -1
  555. package/dist/esm/caret-down-3eaad1cc.js +6 -0
  556. package/dist/esm/caret-left-33424bb0.js +6 -0
  557. package/dist/esm/caret-right-68d856ad.js +6 -0
  558. package/dist/esm/config-84eb9670.js +79 -0
  559. package/dist/esm/{data-ae11fd43.js → data-a753c96a.js} +4 -4
  560. package/dist/esm/{focus-visible-dd40d69f.js → focus-visible-501aff19.js} +8 -1
  561. package/dist/esm/{framework-delegate-63d1a679.js → framework-delegate-3e4a8c9f.js} +4 -2
  562. package/dist/esm/{haptic-ac164e4c.js → haptic-dd6c0ea9.js} +1 -1
  563. package/dist/esm/{helpers-da915de8.js → helpers-f08d15bd.js} +4 -1
  564. package/dist/esm/{index-7bdf1ee6.js → index-31109e63.js} +10 -11
  565. package/dist/esm/{index-4f0570f4.js → index-59f81cb8.js} +6 -6
  566. package/{components/index9.js → dist/esm/index-62b4a18b.js} +4 -2
  567. package/dist/esm/{index-0f61352c.js → index-723c0e5d.js} +757 -1130
  568. package/dist/esm/{index-5cc724f3.js → index-7bd160c2.js} +2 -2
  569. package/dist/esm/{index-e2cf2ceb.js → index-d997525d.js} +1 -1
  570. package/dist/esm/index.js +11 -13
  571. package/dist/esm/{input-shims-0314bbe5.js → input-shims-6be83e59.js} +7 -6
  572. package/dist/esm/{input.utils-09c71bc7.js → input.utils-67459bae.js} +2 -3
  573. package/dist/esm/ion-accordion_2.entry.js +61 -24
  574. package/dist/esm/ion-action-sheet.entry.js +22 -19
  575. package/dist/esm/ion-alert.entry.js +23 -21
  576. package/dist/esm/ion-app_8.entry.js +96 -140
  577. package/dist/esm/ion-avatar_3.entry.js +94 -10
  578. package/dist/esm/ion-back-button.entry.js +31 -21
  579. package/dist/esm/ion-backdrop.entry.js +12 -7
  580. package/dist/esm/ion-breadcrumb_2.entry.js +55 -17
  581. package/dist/esm/ion-button_2.entry.js +44 -13
  582. package/dist/esm/ion-card_5.entry.js +53 -29
  583. package/dist/esm/ion-checkbox.entry.js +31 -14
  584. package/dist/esm/ion-chip.entry.js +44 -8
  585. package/dist/esm/ion-col_3.entry.js +15 -11
  586. package/dist/esm/ion-datetime-button.entry.js +13 -9
  587. package/dist/esm/ion-datetime_3.entry.js +117 -41
  588. package/dist/esm/ion-fab_3.entry.js +44 -21
  589. package/dist/esm/ion-img.entry.js +8 -4
  590. package/dist/esm/ion-infinite-scroll_2.entry.js +19 -15
  591. package/dist/esm/ion-input-password-toggle.entry.js +54 -15
  592. package/dist/esm/ion-input.entry.js +120 -25
  593. package/dist/esm/ion-item-option_3.entry.js +41 -18
  594. package/dist/esm/ion-item_8.entry.js +114 -42
  595. package/dist/esm/ion-loading.entry.js +18 -16
  596. package/dist/esm/ion-menu_3.entry.js +48 -29
  597. package/dist/esm/ion-modal.entry.js +59 -31
  598. package/dist/esm/ion-nav_2.entry.js +14 -12
  599. package/dist/esm/ion-picker-column-option.entry.js +12 -7
  600. package/dist/esm/ion-picker-column.entry.js +12 -12
  601. package/dist/esm/ion-picker.entry.js +11 -6
  602. package/dist/esm/ion-popover.entry.js +18 -16
  603. package/dist/esm/ion-progress-bar.entry.js +13 -8
  604. package/dist/esm/ion-radio_2.entry.js +19 -12
  605. package/dist/esm/ion-range.entry.js +16 -12
  606. package/dist/esm/ion-refresher_2.entry.js +42 -21
  607. package/dist/esm/ion-reorder_2.entry.js +39 -15
  608. package/dist/esm/ion-ripple-effect.entry.js +19 -8
  609. package/dist/esm/ion-route_4.entry.js +9 -8
  610. package/dist/esm/ion-searchbar.entry.js +95 -18
  611. package/dist/esm/ion-segment-content.entry.js +2 -2
  612. package/dist/esm/ion-segment-view.entry.js +7 -3
  613. package/dist/esm/ion-segment_2.entry.js +24 -15
  614. package/dist/esm/ion-select-modal.entry.js +9 -11
  615. package/dist/esm/ion-select_3.entry.js +134 -41
  616. package/dist/esm/ion-spinner.entry.js +34 -8
  617. package/dist/esm/ion-split-pane.entry.js +14 -9
  618. package/dist/esm/ion-tab-bar_2.entry.js +60 -20
  619. package/dist/esm/ion-tab_2.entry.js +8 -7
  620. package/dist/esm/ion-text.entry.js +7 -6
  621. package/dist/esm/ion-textarea.entry.js +42 -17
  622. package/dist/esm/ion-toast.entry.js +34 -17
  623. package/dist/esm/ion-toggle.entry.js +81 -23
  624. package/dist/esm/ionic-global-3c97a4aa.js +521 -0
  625. package/dist/esm/ionic.js +7 -6
  626. package/dist/esm/{ios.transition-72ec83a8.js → ios.transition-06b78ea0.js} +7 -7
  627. package/dist/esm/{keyboard-52278bd7.js → keyboard-5b1b354d.js} +5 -3
  628. package/dist/esm/{keyboard-73175e24.js → keyboard-9bbd546a.js} +1 -1
  629. package/dist/esm/{keyboard-controller-ec5c2bfa.js → keyboard-controller-aff395fd.js} +5 -3
  630. package/dist/esm/list-6524700c.js +6 -0
  631. package/dist/esm/loader.js +6 -5
  632. package/dist/esm/{md.transition-1f612b9f.js → md.transition-e5712bda.js} +6 -7
  633. package/dist/esm/{notch-controller-55b09e11.js → notch-controller-c0bd22ff.js} +2 -2
  634. package/dist/esm/{overlays-cba25d39.js → overlays-66cb5522.js} +6 -7
  635. package/dist/esm/{status-tap-a7026a46.js → status-tap-edf9f395.js} +5 -4
  636. package/dist/esm/{swipe-back-e5394307.js → swipe-back-17c42610.js} +2 -1
  637. package/dist/esm/x-a64bcd9f.js +6 -0
  638. package/dist/esm-es5/animation-f1a88600.js +4 -0
  639. package/dist/esm-es5/app-globals-eceadabb.js +4 -0
  640. package/dist/esm-es5/{button-active-0e590bc4.js → button-active-321f0dba.js} +1 -1
  641. package/dist/esm-es5/capacitor-6b0341c8.js +4 -0
  642. package/dist/esm-es5/caret-down-3eaad1cc.js +4 -0
  643. package/dist/esm-es5/caret-left-33424bb0.js +4 -0
  644. package/dist/esm-es5/caret-right-68d856ad.js +4 -0
  645. package/dist/esm-es5/config-84eb9670.js +4 -0
  646. package/dist/esm-es5/data-a753c96a.js +4 -0
  647. package/dist/esm-es5/focus-visible-501aff19.js +4 -0
  648. package/dist/esm-es5/framework-delegate-3e4a8c9f.js +4 -0
  649. package/dist/esm-es5/{haptic-ac164e4c.js → haptic-dd6c0ea9.js} +1 -1
  650. package/dist/esm-es5/helpers-f08d15bd.js +4 -0
  651. package/dist/esm-es5/index-31109e63.js +4 -0
  652. package/dist/esm-es5/index-59f81cb8.js +4 -0
  653. package/dist/esm-es5/{index-79b30591.js → index-62b4a18b.js} +1 -1
  654. package/dist/esm-es5/index-723c0e5d.js +5 -0
  655. package/dist/esm-es5/index-7bd160c2.js +4 -0
  656. package/dist/esm-es5/{index-e2cf2ceb.js → index-d997525d.js} +1 -1
  657. package/dist/esm-es5/index.js +1 -1
  658. package/dist/esm-es5/input-shims-6be83e59.js +4 -0
  659. package/dist/esm-es5/input.utils-67459bae.js +4 -0
  660. package/dist/esm-es5/ion-accordion_2.entry.js +1 -1
  661. package/dist/esm-es5/ion-action-sheet.entry.js +1 -1
  662. package/dist/esm-es5/ion-alert.entry.js +1 -1
  663. package/dist/esm-es5/ion-app_8.entry.js +1 -1
  664. package/dist/esm-es5/ion-avatar_3.entry.js +1 -1
  665. package/dist/esm-es5/ion-back-button.entry.js +1 -1
  666. package/dist/esm-es5/ion-backdrop.entry.js +1 -1
  667. package/dist/esm-es5/ion-breadcrumb_2.entry.js +1 -1
  668. package/dist/esm-es5/ion-button_2.entry.js +1 -1
  669. package/dist/esm-es5/ion-card_5.entry.js +1 -1
  670. package/dist/esm-es5/ion-checkbox.entry.js +1 -1
  671. package/dist/esm-es5/ion-chip.entry.js +1 -1
  672. package/dist/esm-es5/ion-col_3.entry.js +1 -1
  673. package/dist/esm-es5/ion-datetime-button.entry.js +1 -1
  674. package/dist/esm-es5/ion-datetime_3.entry.js +1 -1
  675. package/dist/esm-es5/ion-fab_3.entry.js +1 -1
  676. package/dist/esm-es5/ion-img.entry.js +1 -1
  677. package/dist/esm-es5/ion-infinite-scroll_2.entry.js +1 -1
  678. package/dist/esm-es5/ion-input-password-toggle.entry.js +1 -1
  679. package/dist/esm-es5/ion-input.entry.js +1 -1
  680. package/dist/esm-es5/ion-item-option_3.entry.js +1 -1
  681. package/dist/esm-es5/ion-item_8.entry.js +1 -1
  682. package/dist/esm-es5/ion-loading.entry.js +1 -1
  683. package/dist/esm-es5/ion-menu_3.entry.js +1 -1
  684. package/dist/esm-es5/ion-modal.entry.js +1 -1
  685. package/dist/esm-es5/ion-nav_2.entry.js +1 -1
  686. package/dist/esm-es5/ion-picker-column-option.entry.js +1 -1
  687. package/dist/esm-es5/ion-picker-column.entry.js +1 -1
  688. package/dist/esm-es5/ion-picker.entry.js +1 -1
  689. package/dist/esm-es5/ion-popover.entry.js +1 -1
  690. package/dist/esm-es5/ion-progress-bar.entry.js +1 -1
  691. package/dist/esm-es5/ion-radio_2.entry.js +1 -1
  692. package/dist/esm-es5/ion-range.entry.js +1 -1
  693. package/dist/esm-es5/ion-refresher_2.entry.js +1 -1
  694. package/dist/esm-es5/ion-reorder_2.entry.js +1 -1
  695. package/dist/esm-es5/ion-ripple-effect.entry.js +1 -1
  696. package/dist/esm-es5/ion-route_4.entry.js +1 -1
  697. package/dist/esm-es5/ion-searchbar.entry.js +1 -1
  698. package/dist/esm-es5/ion-segment-content.entry.js +1 -1
  699. package/dist/esm-es5/ion-segment-view.entry.js +1 -1
  700. package/dist/esm-es5/ion-segment_2.entry.js +1 -1
  701. package/dist/esm-es5/ion-select-modal.entry.js +1 -1
  702. package/dist/esm-es5/ion-select_3.entry.js +1 -1
  703. package/dist/esm-es5/ion-spinner.entry.js +1 -1
  704. package/dist/esm-es5/ion-split-pane.entry.js +1 -1
  705. package/dist/esm-es5/ion-tab-bar_2.entry.js +1 -1
  706. package/dist/esm-es5/ion-tab_2.entry.js +1 -1
  707. package/dist/esm-es5/ion-text.entry.js +1 -1
  708. package/dist/esm-es5/ion-textarea.entry.js +1 -1
  709. package/dist/esm-es5/ion-toast.entry.js +1 -1
  710. package/dist/esm-es5/ion-toggle.entry.js +1 -1
  711. package/dist/esm-es5/ionic-global-3c97a4aa.js +4 -0
  712. package/dist/esm-es5/ionic.js +1 -1
  713. package/dist/esm-es5/ios.transition-06b78ea0.js +4 -0
  714. package/dist/esm-es5/{keyboard-52278bd7.js → keyboard-5b1b354d.js} +1 -1
  715. package/dist/esm-es5/{keyboard-73175e24.js → keyboard-9bbd546a.js} +1 -1
  716. package/dist/esm-es5/keyboard-controller-aff395fd.js +4 -0
  717. package/dist/esm-es5/list-6524700c.js +4 -0
  718. package/dist/esm-es5/loader.js +1 -1
  719. package/dist/esm-es5/md.transition-e5712bda.js +4 -0
  720. package/dist/esm-es5/notch-controller-c0bd22ff.js +4 -0
  721. package/dist/esm-es5/overlays-66cb5522.js +4 -0
  722. package/dist/esm-es5/status-tap-edf9f395.js +4 -0
  723. package/dist/esm-es5/swipe-back-17c42610.js +4 -0
  724. package/dist/esm-es5/x-a64bcd9f.js +4 -0
  725. package/dist/html.html-data.json +2347 -209
  726. package/dist/ionic/index.esm.js +1 -1
  727. package/dist/ionic/ionic.esm.js +1 -1
  728. package/dist/ionic/ionic.js +1 -1
  729. package/dist/ionic/p-01d80901.system.js +4 -0
  730. package/dist/ionic/p-038a6294.js +4 -0
  731. package/dist/ionic/p-06ec4706.js +4 -0
  732. package/dist/ionic/p-06f2f110.system.entry.js +4 -0
  733. package/dist/ionic/p-09125f4f.entry.js +4 -0
  734. package/dist/ionic/p-096e5f6d.system.entry.js +4 -0
  735. package/dist/ionic/p-09c6b5e4.js +4 -0
  736. package/dist/ionic/p-0a0ce78f.system.entry.js +4 -0
  737. package/dist/ionic/p-0ae8c3eb.entry.js +4 -0
  738. package/dist/ionic/p-0fa218e9.system.js +5 -0
  739. package/dist/ionic/p-101ccd60.system.entry.js +4 -0
  740. package/dist/ionic/p-112120d7.system.js +4 -0
  741. package/dist/ionic/{p-c7e16491.js → p-11266916.js} +1 -1
  742. package/dist/ionic/{p-1e955a45.system.js → p-115d74cd.system.js} +1 -1
  743. package/dist/ionic/p-12337305.system.entry.js +4 -0
  744. package/dist/ionic/{p-34b11c24.js → p-12d6df53.js} +1 -1
  745. package/dist/ionic/p-156d17cd.js +4 -0
  746. package/dist/ionic/p-18892506.entry.js +4 -0
  747. package/dist/ionic/{p-b06ac4a5.system.js → p-18f86177.system.js} +1 -1
  748. package/dist/ionic/p-1abd1c99.entry.js +4 -0
  749. package/dist/ionic/p-1cf1141c.system.entry.js +4 -0
  750. package/dist/ionic/p-1dd2b0af.entry.js +4 -0
  751. package/dist/ionic/p-1eeb9796.entry.js +4 -0
  752. package/dist/ionic/p-1efa63f2.js +4 -0
  753. package/dist/ionic/p-23b31425.entry.js +4 -0
  754. package/dist/ionic/p-243adf8c.js +4 -0
  755. package/dist/ionic/p-24f15ce4.system.entry.js +4 -0
  756. package/dist/ionic/p-25cc2477.entry.js +4 -0
  757. package/dist/ionic/p-27258d5a.entry.js +4 -0
  758. package/dist/ionic/p-29ca4da2.entry.js +4 -0
  759. package/dist/ionic/p-2e35a770.system.js +4 -0
  760. package/dist/ionic/p-2ef115ec.system.entry.js +4 -0
  761. package/dist/ionic/p-2fe21cb8.system.entry.js +4 -0
  762. package/dist/ionic/p-330e703e.entry.js +4 -0
  763. package/dist/ionic/p-33dc4514.js +4 -0
  764. package/dist/ionic/p-346c67b0.js +4 -0
  765. package/dist/ionic/p-3583dd40.system.entry.js +4 -0
  766. package/dist/ionic/p-3608e72b.entry.js +4 -0
  767. package/dist/ionic/p-398b00a5.system.entry.js +4 -0
  768. package/dist/ionic/p-3c4c73f9.system.entry.js +4 -0
  769. package/dist/ionic/p-3ce95a91.entry.js +4 -0
  770. package/dist/ionic/p-3d61263b.system.entry.js +4 -0
  771. package/dist/ionic/p-3d7eb7bf.system.entry.js +4 -0
  772. package/dist/ionic/{p-9ea607bd.system.js → p-3e91ea3a.system.js} +2 -2
  773. package/dist/ionic/{p-2564d9b9.system.js → p-41c19986.system.js} +1 -1
  774. package/dist/ionic/p-41f06734.entry.js +4 -0
  775. package/dist/ionic/p-4219582c.system.js +4 -0
  776. package/dist/ionic/p-429dd2b5.system.js +4 -0
  777. package/dist/ionic/p-4385e3fb.system.entry.js +4 -0
  778. package/dist/ionic/p-4459a66e.system.js +4 -0
  779. package/dist/ionic/{p-f687573e.system.js → p-44ad86d7.system.js} +1 -1
  780. package/dist/ionic/{p-8985cdb6.system.js → p-4626fb32.system.js} +1 -1
  781. package/dist/ionic/p-46787abb.system.js +4 -0
  782. package/dist/ionic/p-47fd935c.system.js +4 -0
  783. package/dist/ionic/p-4a39ba11.entry.js +4 -0
  784. package/dist/ionic/p-4a6d4288.entry.js +4 -0
  785. package/dist/ionic/p-4a869870.entry.js +4 -0
  786. package/dist/ionic/p-4ac4f52a.system.entry.js +4 -0
  787. package/dist/ionic/p-4b4e4592.system.entry.js +4 -0
  788. package/dist/ionic/{p-89b61afc.js → p-4c275462.js} +1 -1
  789. package/dist/ionic/p-4c9e1b2c.js +4 -0
  790. package/dist/ionic/p-51371e21.system.js +4 -0
  791. package/dist/ionic/p-530c591a.entry.js +4 -0
  792. package/dist/ionic/p-55546d77.system.entry.js +4 -0
  793. package/dist/ionic/p-556778bd.system.js +4 -0
  794. package/dist/ionic/p-5684893b.system.entry.js +4 -0
  795. package/dist/ionic/p-57de8d54.system.entry.js +4 -0
  796. package/dist/ionic/{p-d37524be.system.js → p-58aa8a36.system.js} +1 -1
  797. package/dist/ionic/p-58c64779.system.entry.js +4 -0
  798. package/dist/ionic/{p-da2b833b.js → p-58f16ef6.js} +1 -1
  799. package/dist/ionic/p-5a6b3c0d.entry.js +4 -0
  800. package/dist/ionic/p-5a6d245d.system.entry.js +4 -0
  801. package/dist/ionic/p-5b57d327.system.js +4 -0
  802. package/dist/ionic/p-5ce35a03.js +4 -0
  803. package/dist/ionic/p-5deb874f.entry.js +4 -0
  804. package/dist/ionic/p-5eb8561f.system.entry.js +4 -0
  805. package/dist/ionic/p-607c9c33.js +4 -0
  806. package/dist/ionic/p-60d21ee9.system.entry.js +4 -0
  807. package/dist/ionic/p-61eefc4d.system.entry.js +4 -0
  808. package/dist/ionic/{p-9146695e.system.js → p-62887754.system.js} +1 -1
  809. package/dist/ionic/p-63fde7fe.entry.js +4 -0
  810. package/dist/ionic/p-6433742e.system.entry.js +4 -0
  811. package/dist/ionic/p-67b6e18d.entry.js +4 -0
  812. package/dist/ionic/p-6a0dd6bc.js +4 -0
  813. package/dist/ionic/p-6bc2795b.entry.js +4 -0
  814. package/dist/ionic/p-6bd1c0ee.system.entry.js +4 -0
  815. package/dist/ionic/p-6caa76ec.js +4 -0
  816. package/dist/ionic/p-6cbca6c5.system.entry.js +4 -0
  817. package/dist/ionic/p-6dc32e8b.entry.js +4 -0
  818. package/dist/ionic/p-6e53290f.system.entry.js +4 -0
  819. package/dist/ionic/p-7071d7ca.js +4 -0
  820. package/dist/ionic/p-70e5bb40.entry.js +4 -0
  821. package/dist/ionic/p-72cbf799.system.entry.js +4 -0
  822. package/dist/ionic/p-74d76684.js +4 -0
  823. package/dist/ionic/p-7607d8ba.system.entry.js +4 -0
  824. package/dist/ionic/p-78ed8923.js +4 -0
  825. package/dist/ionic/p-7a858bae.system.js +4 -0
  826. package/dist/ionic/p-7d36cf9f.system.entry.js +4 -0
  827. package/dist/ionic/p-815f649a.system.entry.js +4 -0
  828. package/dist/ionic/p-81b72701.entry.js +4 -0
  829. package/dist/ionic/p-822e47a9.system.js +4 -0
  830. package/dist/ionic/{p-711fd7fc.js → p-82cb4235.js} +1 -1
  831. package/dist/ionic/p-83948e48.js +5 -0
  832. package/dist/ionic/p-8463212e.js +4 -0
  833. package/dist/ionic/p-84667060.entry.js +4 -0
  834. package/dist/ionic/p-857ba8d4.entry.js +4 -0
  835. package/dist/ionic/p-86d98446.system.entry.js +4 -0
  836. package/dist/ionic/{p-085dbcb4.system.entry.js → p-86e9a917.system.entry.js} +1 -1
  837. package/dist/ionic/p-871f4046.entry.js +4 -0
  838. package/dist/ionic/p-8956f9a8.system.entry.js +4 -0
  839. package/dist/ionic/p-8b0f0a87.entry.js +4 -0
  840. package/dist/ionic/p-8dbfae64.entry.js +4 -0
  841. package/dist/ionic/p-903c544a.js +4 -0
  842. package/dist/ionic/p-916bc9ed.system.entry.js +4 -0
  843. package/dist/ionic/p-92646426.js +4 -0
  844. package/dist/ionic/{p-27281edd.js → p-93e47936.js} +1 -1
  845. package/dist/ionic/{p-a93873de.system.js → p-94816e7a.system.js} +1 -1
  846. package/dist/ionic/p-94fc2104.system.entry.js +4 -0
  847. package/dist/ionic/p-986855d6.js +4 -0
  848. package/dist/ionic/p-9abb7d9b.entry.js +4 -0
  849. package/dist/ionic/p-9ac1a506.system.js +4 -0
  850. package/dist/ionic/p-a1cdc742.js +4 -0
  851. package/dist/ionic/p-a2814291.system.js +4 -0
  852. package/dist/ionic/{p-de758235.js → p-a510e9c0.js} +1 -1
  853. package/dist/ionic/p-a538ab98.js +4 -0
  854. package/dist/ionic/p-a5a9206f.entry.js +4 -0
  855. package/dist/ionic/p-a685da08.system.entry.js +4 -0
  856. package/dist/ionic/p-a98061d0.entry.js +4 -0
  857. package/dist/ionic/p-a9af4103.js +4 -0
  858. package/dist/ionic/{p-d60342e3.js → p-aaccbb95.js} +1 -1
  859. package/dist/ionic/p-ac1c2b6a.js +4 -0
  860. package/dist/ionic/p-b18c52cd.entry.js +4 -0
  861. package/dist/ionic/p-b517144d.system.entry.js +4 -0
  862. package/dist/ionic/p-b5dc9a32.system.entry.js +4 -0
  863. package/dist/ionic/p-b79f3ded.entry.js +4 -0
  864. package/dist/ionic/p-b80582fe.system.entry.js +4 -0
  865. package/dist/ionic/p-b8b89651.system.entry.js +4 -0
  866. package/dist/ionic/p-bbcec459.system.js +4 -0
  867. package/dist/ionic/p-bcdd3eaf.entry.js +4 -0
  868. package/dist/ionic/p-be87ec25.entry.js +4 -0
  869. package/dist/ionic/p-c248c88d.system.js +4 -0
  870. package/dist/ionic/p-c373eebd.system.js +4 -0
  871. package/dist/ionic/p-c9d5da01.entry.js +4 -0
  872. package/dist/ionic/p-cdff6a80.system.entry.js +4 -0
  873. package/dist/ionic/p-cea92c46.system.js +4 -0
  874. package/dist/ionic/p-d4862803.entry.js +4 -0
  875. package/dist/ionic/p-d6ed3be1.entry.js +4 -0
  876. package/dist/ionic/p-d9edb291.entry.js +4 -0
  877. package/dist/ionic/{p-19ea7bff.system.js → p-dbd39afd.system.js} +1 -1
  878. package/dist/ionic/p-dc286a59.entry.js +4 -0
  879. package/dist/ionic/p-df09db21.entry.js +4 -0
  880. package/dist/ionic/p-df4b88fc.system.entry.js +4 -0
  881. package/dist/ionic/p-e3b70846.system.js +4 -0
  882. package/dist/ionic/p-ea3ca474.system.js +4 -0
  883. package/dist/ionic/p-eb4ba253.entry.js +4 -0
  884. package/dist/ionic/p-ebd641e4.system.entry.js +4 -0
  885. package/dist/ionic/p-ebe94d15.entry.js +4 -0
  886. package/dist/ionic/p-eda736d7.entry.js +4 -0
  887. package/dist/ionic/p-ee17be82.entry.js +4 -0
  888. package/dist/ionic/p-eee899d5.system.entry.js +4 -0
  889. package/dist/ionic/p-f116fb3f.system.js +4 -0
  890. package/dist/ionic/{p-04f14c79.system.js → p-f193945e.system.js} +1 -1
  891. package/dist/ionic/p-f1e11e93.entry.js +4 -0
  892. package/dist/ionic/p-f25ad420.system.entry.js +4 -0
  893. package/dist/ionic/p-f44c9c6e.system.entry.js +4 -0
  894. package/dist/ionic/p-f5be97b8.entry.js +4 -0
  895. package/dist/ionic/p-f8123284.entry.js +4 -0
  896. package/dist/ionic/{p-2f9f5bea.system.js → p-f8c63ac0.system.js} +2 -2
  897. package/dist/ionic/p-f99cf3f7.system.entry.js +4 -0
  898. package/dist/ionic/p-fff78cd2.system.entry.js +4 -0
  899. package/dist/types/components/accordion/accordion.d.ts +5 -3
  900. package/dist/types/components/accordion-group/accordion-group.d.ts +12 -1
  901. package/dist/types/components/action-sheet/action-sheet-interface.d.ts +3 -7
  902. package/dist/types/components/action-sheet/action-sheet.d.ts +3 -2
  903. package/dist/types/components/alert/alert-interface.d.ts +3 -7
  904. package/dist/types/components/alert/alert.d.ts +3 -2
  905. package/dist/types/components/app/app.d.ts +4 -2
  906. package/dist/types/components/avatar/avatar.d.ts +28 -0
  907. package/dist/types/components/back-button/back-button.d.ts +2 -1
  908. package/dist/types/components/backdrop/backdrop.d.ts +4 -0
  909. package/dist/types/components/badge/badge.d.ts +23 -1
  910. package/dist/types/components/breadcrumb/breadcrumb.d.ts +4 -1
  911. package/dist/types/components/breadcrumbs/breadcrumbs.d.ts +2 -2
  912. package/dist/types/components/button/button.d.ts +15 -4
  913. package/dist/types/components/buttons/buttons.d.ts +5 -1
  914. package/dist/types/components/card/card.d.ts +8 -1
  915. package/dist/types/components/card-content/card-content.d.ts +2 -1
  916. package/dist/types/components/card-header/card-header.d.ts +3 -2
  917. package/dist/types/components/card-subtitle/card-subtitle.d.ts +2 -1
  918. package/dist/types/components/card-title/card-title.d.ts +2 -1
  919. package/dist/types/components/checkbox/checkbox.d.ts +14 -4
  920. package/dist/types/components/chip/chip.d.ts +19 -1
  921. package/dist/types/components/col/col.d.ts +4 -0
  922. package/dist/types/components/content/content.d.ts +3 -0
  923. package/dist/types/components/datetime/datetime.d.ts +26 -1
  924. package/dist/types/components/datetime/utils/data.d.ts +3 -3
  925. package/dist/types/components/datetime-button/datetime-button.d.ts +2 -1
  926. package/dist/types/components/fab/fab.d.ts +4 -0
  927. package/dist/types/components/fab-button/fab-button.d.ts +5 -3
  928. package/dist/types/components/fab-list/fab-list.d.ts +4 -0
  929. package/dist/types/components/footer/footer.d.ts +4 -3
  930. package/dist/types/components/grid/grid.d.ts +4 -0
  931. package/dist/types/components/header/header.d.ts +9 -3
  932. package/dist/types/components/img/img.d.ts +3 -0
  933. package/dist/types/components/infinite-scroll/infinite-scroll.d.ts +4 -0
  934. package/dist/types/components/infinite-scroll-content/infinite-scroll-content.d.ts +4 -0
  935. package/dist/types/components/input/input.d.ts +31 -5
  936. package/dist/types/components/input-password-toggle/input-password-toggle.d.ts +2 -0
  937. package/dist/types/components/item/item.d.ts +11 -4
  938. package/dist/types/components/item-divider/item-divider.d.ts +2 -1
  939. package/dist/types/components/item-group/item-group.d.ts +4 -0
  940. package/dist/types/components/item-option/item-option.d.ts +11 -1
  941. package/dist/types/components/item-options/item-options.d.ts +4 -0
  942. package/dist/types/components/item-sliding/item-sliding.d.ts +4 -0
  943. package/dist/types/components/label/label.d.ts +2 -1
  944. package/dist/types/components/list/list.d.ts +15 -1
  945. package/dist/types/components/list-header/list-header.d.ts +2 -1
  946. package/dist/types/components/loading/loading-interface.d.ts +2 -7
  947. package/dist/types/components/loading/loading.d.ts +3 -2
  948. package/dist/types/components/menu/menu.d.ts +3 -0
  949. package/dist/types/components/menu-button/menu-button.d.ts +3 -1
  950. package/dist/types/components/menu-toggle/menu-toggle.d.ts +3 -0
  951. package/dist/types/components/modal/gestures/sheet.d.ts +1 -1
  952. package/dist/types/components/modal/modal-interface.d.ts +4 -7
  953. package/dist/types/components/modal/modal.d.ts +11 -1
  954. package/dist/types/components/nav/nav-interface.d.ts +9 -1
  955. package/dist/types/components/nav/nav.d.ts +5 -1
  956. package/dist/types/components/nav-link/nav-link.d.ts +4 -0
  957. package/dist/types/components/note/note.d.ts +2 -1
  958. package/dist/types/components/picker/picker.d.ts +2 -1
  959. package/dist/types/components/picker-column/picker-column.d.ts +2 -1
  960. package/dist/types/components/picker-column-option/picker-column-option.d.ts +4 -0
  961. package/dist/types/components/picker-legacy/picker.d.ts +2 -1
  962. package/dist/types/components/popover/popover-interface.d.ts +3 -6
  963. package/dist/types/components/popover/popover.d.ts +6 -5
  964. package/dist/types/components/progress-bar/progress-bar.d.ts +2 -1
  965. package/dist/types/components/radio/radio.d.ts +2 -1
  966. package/dist/types/components/radio-group/radio-group.d.ts +4 -0
  967. package/dist/types/components/range/range.d.ts +2 -1
  968. package/dist/types/components/refresher/refresher.d.ts +2 -1
  969. package/dist/types/components/refresher-content/refresher-content.d.ts +4 -0
  970. package/dist/types/components/reorder/reorder.d.ts +9 -0
  971. package/dist/types/components/reorder-group/reorder-group.d.ts +4 -0
  972. package/dist/types/components/ripple-effect/ripple-effect.d.ts +4 -0
  973. package/dist/types/components/route/route.d.ts +4 -0
  974. package/dist/types/components/router/router.d.ts +4 -0
  975. package/dist/types/components/router-link/router-link.d.ts +4 -0
  976. package/dist/types/components/router-outlet/router-outlet.d.ts +4 -1
  977. package/dist/types/components/row/row.d.ts +4 -0
  978. package/dist/types/components/searchbar/searchbar.d.ts +30 -8
  979. package/dist/types/components/segment/segment.d.ts +2 -1
  980. package/dist/types/components/segment-button/segment-button.d.ts +2 -1
  981. package/dist/types/components/select/select.d.ts +35 -7
  982. package/dist/types/components/select-option/select-option.d.ts +4 -0
  983. package/dist/types/components/select-popover/select-popover.d.ts +3 -0
  984. package/dist/types/components/skeleton-text/skeleton-text.d.ts +4 -0
  985. package/dist/types/components/spinner/spinner.d.ts +15 -0
  986. package/dist/types/components/split-pane/split-pane.d.ts +4 -0
  987. package/dist/types/components/tab/tab.d.ts +4 -0
  988. package/dist/types/components/tab-bar/tab-bar.d.ts +22 -2
  989. package/dist/types/components/tab-button/tab-button.d.ts +11 -1
  990. package/dist/types/components/tabs/tabs.d.ts +3 -0
  991. package/dist/types/components/text/text.d.ts +2 -1
  992. package/dist/types/components/textarea/textarea.d.ts +16 -4
  993. package/dist/types/components/thumbnail/thumbnail.d.ts +4 -0
  994. package/dist/types/components/title/title.d.ts +4 -0
  995. package/dist/types/components/toast/animations/utils.d.ts +2 -2
  996. package/dist/types/components/toast/toast-interface.d.ts +3 -7
  997. package/dist/types/components/toast/toast.d.ts +12 -2
  998. package/dist/types/components/toggle/toggle.d.ts +15 -1
  999. package/dist/types/components/toolbar/toolbar.d.ts +4 -3
  1000. package/dist/types/components.d.ts +1384 -184
  1001. package/dist/types/global/ionic-global.d.ts +27 -2
  1002. package/dist/types/interface.d.ts +3 -0
  1003. package/dist/types/stencil-public-runtime.d.ts +0 -6
  1004. package/dist/types/utils/config.d.ts +106 -2
  1005. package/dist/types/utils/focus-visible.d.ts +1 -0
  1006. package/dist/types/utils/overlays-interface.d.ts +31 -1
  1007. package/dist/types/utils/test/playwright/generator.d.ts +31 -2
  1008. package/hydrate/index.d.ts +4 -10
  1009. package/hydrate/index.js +3042 -2175
  1010. package/hydrate/index.mjs +3042 -2175
  1011. package/package.json +11 -6
  1012. package/components/hardware-back-button.js +0 -115
  1013. package/components/index8.js +0 -128
  1014. package/dist/cjs/hardware-back-button-5a19da86.js +0 -122
  1015. package/dist/cjs/index-5915f9b3.js +0 -38
  1016. package/dist/cjs/index-c8d52405.js +0 -10
  1017. package/dist/cjs/ionic-global-aa46b97c.js +0 -237
  1018. package/dist/esm/hardware-back-button-18d38325.js +0 -116
  1019. package/dist/esm/index-79b30591.js +0 -167
  1020. package/dist/esm/index-9b0d46f4.js +0 -34
  1021. package/dist/esm/index-a5d50daf.js +0 -7
  1022. package/dist/esm/ionic-global-35cabcff.js +0 -231
  1023. package/dist/esm-es5/animation-eab5a4ca.js +0 -4
  1024. package/dist/esm-es5/app-globals-32740a0d.js +0 -4
  1025. package/dist/esm-es5/capacitor-59395cbd.js +0 -4
  1026. package/dist/esm-es5/data-ae11fd43.js +0 -4
  1027. package/dist/esm-es5/focus-visible-dd40d69f.js +0 -4
  1028. package/dist/esm-es5/framework-delegate-63d1a679.js +0 -4
  1029. package/dist/esm-es5/hardware-back-button-18d38325.js +0 -4
  1030. package/dist/esm-es5/helpers-da915de8.js +0 -4
  1031. package/dist/esm-es5/index-0f61352c.js +0 -5
  1032. package/dist/esm-es5/index-4f0570f4.js +0 -4
  1033. package/dist/esm-es5/index-5cc724f3.js +0 -4
  1034. package/dist/esm-es5/index-7bdf1ee6.js +0 -4
  1035. package/dist/esm-es5/index-9b0d46f4.js +0 -4
  1036. package/dist/esm-es5/index-a5d50daf.js +0 -4
  1037. package/dist/esm-es5/input-shims-0314bbe5.js +0 -4
  1038. package/dist/esm-es5/input.utils-09c71bc7.js +0 -4
  1039. package/dist/esm-es5/ionic-global-35cabcff.js +0 -4
  1040. package/dist/esm-es5/ios.transition-72ec83a8.js +0 -4
  1041. package/dist/esm-es5/keyboard-controller-ec5c2bfa.js +0 -4
  1042. package/dist/esm-es5/md.transition-1f612b9f.js +0 -4
  1043. package/dist/esm-es5/notch-controller-55b09e11.js +0 -4
  1044. package/dist/esm-es5/overlays-cba25d39.js +0 -4
  1045. package/dist/esm-es5/status-tap-a7026a46.js +0 -4
  1046. package/dist/esm-es5/swipe-back-e5394307.js +0 -4
  1047. package/dist/ionic/p-00751c2a.system.entry.js +0 -4
  1048. package/dist/ionic/p-024da823.js +0 -4
  1049. package/dist/ionic/p-047eabc5.entry.js +0 -4
  1050. package/dist/ionic/p-05562a80.entry.js +0 -4
  1051. package/dist/ionic/p-06e58c4e.js +0 -4
  1052. package/dist/ionic/p-06fee233.js +0 -4
  1053. package/dist/ionic/p-07d1dbe2.system.entry.js +0 -4
  1054. package/dist/ionic/p-08c16f05.system.entry.js +0 -4
  1055. package/dist/ionic/p-0ba102ec.system.entry.js +0 -4
  1056. package/dist/ionic/p-0c06e09b.system.js +0 -4
  1057. package/dist/ionic/p-0c093fae.system.entry.js +0 -4
  1058. package/dist/ionic/p-0c64a077.entry.js +0 -4
  1059. package/dist/ionic/p-11330967.entry.js +0 -4
  1060. package/dist/ionic/p-1179c304.entry.js +0 -4
  1061. package/dist/ionic/p-12f711f4.system.entry.js +0 -4
  1062. package/dist/ionic/p-17290742.entry.js +0 -4
  1063. package/dist/ionic/p-18094a7c.system.entry.js +0 -4
  1064. package/dist/ionic/p-19bfac92.js +0 -4
  1065. package/dist/ionic/p-1dfc11b3.system.js +0 -4
  1066. package/dist/ionic/p-1e4371bd.js +0 -4
  1067. package/dist/ionic/p-255d9087.system.entry.js +0 -4
  1068. package/dist/ionic/p-265d65cb.entry.js +0 -4
  1069. package/dist/ionic/p-2690b1de.js +0 -4
  1070. package/dist/ionic/p-27e81076.system.entry.js +0 -4
  1071. package/dist/ionic/p-2b7827c7.js +0 -4
  1072. package/dist/ionic/p-2e396991.system.entry.js +0 -4
  1073. package/dist/ionic/p-2e520289.entry.js +0 -4
  1074. package/dist/ionic/p-2e78561b.js +0 -5
  1075. package/dist/ionic/p-30019f0b.system.js +0 -4
  1076. package/dist/ionic/p-32e1825e.entry.js +0 -4
  1077. package/dist/ionic/p-35f02a74.entry.js +0 -4
  1078. package/dist/ionic/p-38dac839.system.entry.js +0 -4
  1079. package/dist/ionic/p-39539749.js +0 -4
  1080. package/dist/ionic/p-3ad285e3.system.js +0 -4
  1081. package/dist/ionic/p-3cc276f4.js +0 -4
  1082. package/dist/ionic/p-3e2c05a8.entry.js +0 -4
  1083. package/dist/ionic/p-41cabce4.entry.js +0 -4
  1084. package/dist/ionic/p-43679a42.entry.js +0 -4
  1085. package/dist/ionic/p-43febc77.system.entry.js +0 -4
  1086. package/dist/ionic/p-45e4a1e3.system.entry.js +0 -4
  1087. package/dist/ionic/p-4a57dd17.entry.js +0 -4
  1088. package/dist/ionic/p-4ab93cfa.entry.js +0 -4
  1089. package/dist/ionic/p-4c2d5b80.system.js +0 -4
  1090. package/dist/ionic/p-52f6a5cc.system.entry.js +0 -4
  1091. package/dist/ionic/p-53ad8ff4.system.entry.js +0 -4
  1092. package/dist/ionic/p-56667886.system.entry.js +0 -4
  1093. package/dist/ionic/p-57f92640.entry.js +0 -4
  1094. package/dist/ionic/p-5ae14e75.entry.js +0 -4
  1095. package/dist/ionic/p-64b0068b.entry.js +0 -4
  1096. package/dist/ionic/p-65774bef.system.entry.js +0 -4
  1097. package/dist/ionic/p-67d3729b.system.entry.js +0 -4
  1098. package/dist/ionic/p-6828136c.entry.js +0 -4
  1099. package/dist/ionic/p-6a131e4b.system.entry.js +0 -4
  1100. package/dist/ionic/p-6b6ccc63.entry.js +0 -4
  1101. package/dist/ionic/p-6c29e51f.entry.js +0 -4
  1102. package/dist/ionic/p-6d350e1f.entry.js +0 -4
  1103. package/dist/ionic/p-6d7a98cc.system.entry.js +0 -4
  1104. package/dist/ionic/p-6d9fa95e.system.entry.js +0 -4
  1105. package/dist/ionic/p-6e1c1cf1.system.entry.js +0 -4
  1106. package/dist/ionic/p-6f04bf2f.system.js +0 -4
  1107. package/dist/ionic/p-72812e99.js +0 -4
  1108. package/dist/ionic/p-72bc8a1c.js +0 -4
  1109. package/dist/ionic/p-735f093b.system.entry.js +0 -4
  1110. package/dist/ionic/p-75be4567.entry.js +0 -4
  1111. package/dist/ionic/p-779acec8.entry.js +0 -4
  1112. package/dist/ionic/p-78067282.system.js +0 -4
  1113. package/dist/ionic/p-78841a31.entry.js +0 -4
  1114. package/dist/ionic/p-792919fd.system.js +0 -4
  1115. package/dist/ionic/p-7b30edcc.js +0 -4
  1116. package/dist/ionic/p-7fa854a7.entry.js +0 -4
  1117. package/dist/ionic/p-81494564.system.entry.js +0 -4
  1118. package/dist/ionic/p-84827719.system.entry.js +0 -4
  1119. package/dist/ionic/p-84a6d0da.system.entry.js +0 -4
  1120. package/dist/ionic/p-8635f5e6.system.js +0 -4
  1121. package/dist/ionic/p-86bc3e6f.entry.js +0 -4
  1122. package/dist/ionic/p-876d7e0d.entry.js +0 -4
  1123. package/dist/ionic/p-89b075f4.system.entry.js +0 -4
  1124. package/dist/ionic/p-8b2d8ddb.system.js +0 -4
  1125. package/dist/ionic/p-8c9954a1.entry.js +0 -4
  1126. package/dist/ionic/p-8ceead8f.system.js +0 -4
  1127. package/dist/ionic/p-8e8839c4.system.js +0 -5
  1128. package/dist/ionic/p-938a029f.js +0 -4
  1129. package/dist/ionic/p-93bc2080.entry.js +0 -4
  1130. package/dist/ionic/p-96cc4814.js +0 -4
  1131. package/dist/ionic/p-979f352d.system.entry.js +0 -4
  1132. package/dist/ionic/p-99658fa2.entry.js +0 -4
  1133. package/dist/ionic/p-99c5a3a0.entry.js +0 -4
  1134. package/dist/ionic/p-9c4f4367.system.entry.js +0 -4
  1135. package/dist/ionic/p-a15ddedb.system.js +0 -4
  1136. package/dist/ionic/p-a2e5c294.system.entry.js +0 -4
  1137. package/dist/ionic/p-a3bea030.system.entry.js +0 -4
  1138. package/dist/ionic/p-a64f199d.system.entry.js +0 -4
  1139. package/dist/ionic/p-a772be95.js +0 -4
  1140. package/dist/ionic/p-a8cf7e93.system.entry.js +0 -4
  1141. package/dist/ionic/p-a915830c.system.entry.js +0 -4
  1142. package/dist/ionic/p-abe101da.system.js +0 -4
  1143. package/dist/ionic/p-add1b61c.system.entry.js +0 -4
  1144. package/dist/ionic/p-ae2e0f50.entry.js +0 -4
  1145. package/dist/ionic/p-afe932a1.system.entry.js +0 -4
  1146. package/dist/ionic/p-b2ef1bb0.entry.js +0 -4
  1147. package/dist/ionic/p-b2f788b9.system.entry.js +0 -4
  1148. package/dist/ionic/p-b50c6cd6.system.entry.js +0 -4
  1149. package/dist/ionic/p-b51e4004.js +0 -4
  1150. package/dist/ionic/p-b52ddc18.system.entry.js +0 -4
  1151. package/dist/ionic/p-b6c8f5dc.system.js +0 -4
  1152. package/dist/ionic/p-b7027235.entry.js +0 -4
  1153. package/dist/ionic/p-bb750ac0.system.js +0 -4
  1154. package/dist/ionic/p-bf9210c7.system.entry.js +0 -4
  1155. package/dist/ionic/p-c2496925.system.entry.js +0 -4
  1156. package/dist/ionic/p-c468af8a.system.js +0 -4
  1157. package/dist/ionic/p-c4dc27a0.system.entry.js +0 -4
  1158. package/dist/ionic/p-c505bde7.system.entry.js +0 -4
  1159. package/dist/ionic/p-c60e41c7.entry.js +0 -4
  1160. package/dist/ionic/p-c61cc894.js +0 -4
  1161. package/dist/ionic/p-cb37f97d.entry.js +0 -4
  1162. package/dist/ionic/p-ce32a54b.system.entry.js +0 -4
  1163. package/dist/ionic/p-cf110b0b.system.js +0 -4
  1164. package/dist/ionic/p-d09b25f9.system.entry.js +0 -4
  1165. package/dist/ionic/p-d18dc399.entry.js +0 -4
  1166. package/dist/ionic/p-d47265c8.js +0 -4
  1167. package/dist/ionic/p-d737a7d9.entry.js +0 -4
  1168. package/dist/ionic/p-d83d0d32.system.entry.js +0 -4
  1169. package/dist/ionic/p-d8d37758.entry.js +0 -4
  1170. package/dist/ionic/p-dcad1a3d.system.entry.js +0 -4
  1171. package/dist/ionic/p-dddb317f.entry.js +0 -4
  1172. package/dist/ionic/p-dfb78785.system.js +0 -4
  1173. package/dist/ionic/p-e11ef2b7.entry.js +0 -4
  1174. package/dist/ionic/p-e3c8fb01.entry.js +0 -4
  1175. package/dist/ionic/p-e3f626ea.system.entry.js +0 -4
  1176. package/dist/ionic/p-e46ba5cd.js +0 -4
  1177. package/dist/ionic/p-e4966716.entry.js +0 -4
  1178. package/dist/ionic/p-e5c69948.entry.js +0 -4
  1179. package/dist/ionic/p-e837530a.entry.js +0 -4
  1180. package/dist/ionic/p-e85e6e02.js +0 -4
  1181. package/dist/ionic/p-e8784b73.entry.js +0 -4
  1182. package/dist/ionic/p-e896891b.system.entry.js +0 -4
  1183. package/dist/ionic/p-e9bd3df9.js +0 -4
  1184. package/dist/ionic/p-ea2ee20f.entry.js +0 -4
  1185. package/dist/ionic/p-eb717568.entry.js +0 -4
  1186. package/dist/ionic/p-f2986b60.entry.js +0 -4
  1187. package/dist/ionic/p-f8a8295c.system.entry.js +0 -4
  1188. package/dist/ionic/p-fb7b7319.entry.js +0 -4
  1189. package/dist/ionic/p-ff4b7e40.system.js +0 -4
  1190. /package/dist/collection/components/{input-password-toggle/input-password-toggle.css → refresher-content/refresher-content.css} +0 -0
@@ -27,7 +27,7 @@ const NAMESPACE = 'ionic';
27
27
  const BUILD = /* ionic */ { allRenderFn: false, appendChildSlotFix: true, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: true, cmpDidLoad: true, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: true, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: true, cmpWillUpdate: false, connectedCallback: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: true, experimentalSlotFixes: true, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: true, hostListenerTargetDocument: true, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: true, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: true, mode: true, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: true, propString: true, reflect: true, scoped: true, scopedSlotTextContentFix: true, scriptDataOpts: false, shadowDelegatesFocus: true, shadowDom: true, slot: true, slotChildNodesFix: true, slotRelocation: true, state: true, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: true, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: true, watchCallback: true };
28
28
 
29
29
  /*
30
- Stencil Client Platform v4.23.0-dev.1735628762.fb8335e | MIT Licensed | https://stenciljs.com
30
+ Stencil Client Platform v4.20.0 | MIT Licensed | https://stenciljs.com
31
31
  */
32
32
  var __defProp = Object.defineProperty;
33
33
  var __export = (target, all) => {
@@ -41,13 +41,8 @@ var Build = {
41
41
  isTesting: false
42
42
  };
43
43
  var hostRefs = /* @__PURE__ */ new WeakMap();
44
- var hostRefKeys = [];
45
44
  var getHostRef = (ref) => hostRefs.get(ref);
46
- var registerInstance = (lazyInstance, hostRef) => {
47
- hostRef.$lazyInstance$ = lazyInstance;
48
- hostRefKeys.push(lazyInstance);
49
- return hostRefs.set(lazyInstance, hostRef);
50
- };
45
+ var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
51
46
  var registerHost = (hostElement, cmpMeta) => {
52
47
  const hostRef = {
53
48
  $flags$: 0,
@@ -63,29 +58,9 @@ var registerHost = (hostElement, cmpMeta) => {
63
58
  hostElement["s-p"] = [];
64
59
  hostElement["s-rc"] = [];
65
60
  }
66
- hostRefKeys.push(hostElement);
67
61
  return hostRefs.set(hostElement, hostRef);
68
62
  };
69
63
  var isMemberInElement = (elm, memberName) => memberName in elm;
70
- function isNodeAttached(node) {
71
- return node === document || node === document.documentElement || document.contains(node);
72
- }
73
- var hostRefCleanup = () => {
74
- const keysToRemove = [];
75
- for (const key of hostRefKeys) {
76
- if (key instanceof Node && !isNodeAttached(key)) {
77
- keysToRemove.push(key);
78
- }
79
- const elem = hostRefs.get(key);
80
- if (elem && (elem.$hostElement$ && !isNodeAttached(elem.$hostElement$) || elem.$ancestorComponent$ && !isNodeAttached(elem.$ancestorComponent$))) {
81
- keysToRemove.push(key);
82
- }
83
- }
84
- for (const key of keysToRemove) {
85
- hostRefs.delete(key);
86
- hostRefKeys.splice(hostRefKeys.indexOf(key), 1);
87
- }
88
- };
89
64
  var consoleError = (e, el) => (0, console.error)(e, el);
90
65
 
91
66
  // src/client/client-load-module.ts
@@ -124,7 +99,6 @@ var CONTENT_REF_ID = "r";
124
99
  var ORG_LOCATION_ID = "o";
125
100
  var SLOT_NODE_ID = "s";
126
101
  var TEXT_NODE_ID = "t";
127
- var COMMENT_NODE_ID = "c";
128
102
  var HYDRATE_ID = "s-id";
129
103
  var HYDRATED_STYLE_ID = "sty-id";
130
104
  var HYDRATE_CHILD_ID = "c-id";
@@ -282,6 +256,20 @@ var unwrapErr = (result) => {
282
256
  throw result.value;
283
257
  }
284
258
  };
259
+ var createTime = (fnName, tagName = "") => {
260
+ {
261
+ return () => {
262
+ return;
263
+ };
264
+ }
265
+ };
266
+ var uniqueTime = (key, measureText) => {
267
+ {
268
+ return () => {
269
+ return;
270
+ };
271
+ }
272
+ };
285
273
  var h = (nodeName, vnodeData, ...children) => {
286
274
  let child = null;
287
275
  let key = null;
@@ -393,143 +381,447 @@ var convertToPrivate = (node) => {
393
381
  vnode.$name$ = node.vname;
394
382
  return vnode;
395
383
  };
396
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
397
- if (oldValue !== newValue) {
398
- let isProp = isMemberInElement(elm, memberName);
399
- let ln = memberName.toLowerCase();
400
- if (memberName === "class") {
401
- const classList = elm.classList;
402
- const oldClasses = parseClassList(oldValue);
403
- const newClasses = parseClassList(newValue);
404
- if (elm["s-si"] && newClasses.indexOf(elm["s-si"]) < 0) {
405
- newClasses.push(elm["s-si"]);
384
+
385
+ // src/runtime/client-hydrate.ts
386
+ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
387
+ const endHydrate = createTime("hydrateClient", tagName);
388
+ const shadowRoot = hostElm.shadowRoot;
389
+ const childRenderNodes = [];
390
+ const slotNodes = [];
391
+ const shadowRootNodes = shadowRoot ? [] : null;
392
+ const vnode = hostRef.$vnode$ = newVNode(tagName, null);
393
+ if (!plt.$orgLocNodes$) {
394
+ initializeDocumentHydrate(doc.body, plt.$orgLocNodes$ = /* @__PURE__ */ new Map());
395
+ }
396
+ hostElm[HYDRATE_ID] = hostId;
397
+ hostElm.removeAttribute(HYDRATE_ID);
398
+ clientHydrate(vnode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, hostElm, hostId);
399
+ childRenderNodes.map((c) => {
400
+ const orgLocationId = c.$hostId$ + "." + c.$nodeId$;
401
+ const orgLocationNode = plt.$orgLocNodes$.get(orgLocationId);
402
+ const node = c.$elm$;
403
+ if (orgLocationNode && supportsShadow && orgLocationNode["s-en"] === "") {
404
+ orgLocationNode.parentNode.insertBefore(node, orgLocationNode.nextSibling);
405
+ }
406
+ if (!shadowRoot) {
407
+ node["s-hn"] = tagName;
408
+ if (orgLocationNode) {
409
+ node["s-ol"] = orgLocationNode;
410
+ node["s-ol"]["s-nr"] = node;
406
411
  }
407
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
408
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
409
- } else if (memberName === "style") {
410
- {
411
- for (const prop in oldValue) {
412
- if (!newValue || newValue[prop] == null) {
413
- if (prop.includes("-")) {
414
- elm.style.removeProperty(prop);
415
- } else {
416
- elm.style[prop] = "";
417
- }
418
- }
419
- }
412
+ }
413
+ plt.$orgLocNodes$.delete(orgLocationId);
414
+ });
415
+ if (shadowRoot) {
416
+ shadowRootNodes.map((shadowRootNode) => {
417
+ if (shadowRootNode) {
418
+ shadowRoot.appendChild(shadowRootNode);
420
419
  }
421
- for (const prop in newValue) {
422
- if (!oldValue || newValue[prop] !== oldValue[prop]) {
423
- if (prop.includes("-")) {
424
- elm.style.setProperty(prop, newValue[prop]);
425
- } else {
426
- elm.style[prop] = newValue[prop];
427
- }
420
+ });
421
+ }
422
+ endHydrate();
423
+ };
424
+ var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, node, hostId) => {
425
+ let childNodeType;
426
+ let childIdSplt;
427
+ let childVNode;
428
+ let i2;
429
+ if (node.nodeType === 1 /* ElementNode */) {
430
+ childNodeType = node.getAttribute(HYDRATE_CHILD_ID);
431
+ if (childNodeType) {
432
+ childIdSplt = childNodeType.split(".");
433
+ if (childIdSplt[0] === hostId || childIdSplt[0] === "0") {
434
+ childVNode = {
435
+ $flags$: 0,
436
+ $hostId$: childIdSplt[0],
437
+ $nodeId$: childIdSplt[1],
438
+ $depth$: childIdSplt[2],
439
+ $index$: childIdSplt[3],
440
+ $tag$: node.tagName.toLowerCase(),
441
+ $elm$: node,
442
+ $attrs$: null,
443
+ $children$: null,
444
+ $key$: null,
445
+ $name$: null,
446
+ $text$: null
447
+ };
448
+ childRenderNodes.push(childVNode);
449
+ node.removeAttribute(HYDRATE_CHILD_ID);
450
+ if (!parentVNode.$children$) {
451
+ parentVNode.$children$ = [];
452
+ }
453
+ parentVNode.$children$[childVNode.$index$] = childVNode;
454
+ parentVNode = childVNode;
455
+ if (shadowRootNodes && childVNode.$depth$ === "0") {
456
+ shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
428
457
  }
429
458
  }
430
- } else if (memberName === "key") ; else if (memberName === "ref") {
431
- if (newValue) {
432
- newValue(elm);
433
- }
434
- } else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
435
- if (memberName[2] === "-") {
436
- memberName = memberName.slice(3);
437
- } else if (isMemberInElement(win, ln)) {
438
- memberName = ln.slice(2);
439
- } else {
440
- memberName = ln[2] + memberName.slice(3);
459
+ }
460
+ if (node.shadowRoot) {
461
+ for (i2 = node.shadowRoot.childNodes.length - 1; i2 >= 0; i2--) {
462
+ clientHydrate(
463
+ parentVNode,
464
+ childRenderNodes,
465
+ slotNodes,
466
+ shadowRootNodes,
467
+ hostElm,
468
+ node.shadowRoot.childNodes[i2],
469
+ hostId
470
+ );
441
471
  }
442
- if (oldValue || newValue) {
443
- const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
444
- memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
445
- if (oldValue) {
446
- plt.rel(elm, memberName, oldValue, capture);
447
- }
448
- if (newValue) {
449
- plt.ael(elm, memberName, newValue, capture);
472
+ }
473
+ for (i2 = node.childNodes.length - 1; i2 >= 0; i2--) {
474
+ clientHydrate(
475
+ parentVNode,
476
+ childRenderNodes,
477
+ slotNodes,
478
+ shadowRootNodes,
479
+ hostElm,
480
+ node.childNodes[i2],
481
+ hostId
482
+ );
483
+ }
484
+ } else if (node.nodeType === 8 /* CommentNode */) {
485
+ childIdSplt = node.nodeValue.split(".");
486
+ if (childIdSplt[1] === hostId || childIdSplt[1] === "0") {
487
+ childNodeType = childIdSplt[0];
488
+ childVNode = {
489
+ $flags$: 0,
490
+ $hostId$: childIdSplt[1],
491
+ $nodeId$: childIdSplt[2],
492
+ $depth$: childIdSplt[3],
493
+ $index$: childIdSplt[4],
494
+ $elm$: node,
495
+ $attrs$: null,
496
+ $children$: null,
497
+ $key$: null,
498
+ $name$: null,
499
+ $tag$: null,
500
+ $text$: null
501
+ };
502
+ if (childNodeType === TEXT_NODE_ID) {
503
+ childVNode.$elm$ = node.nextSibling;
504
+ if (childVNode.$elm$ && childVNode.$elm$.nodeType === 3 /* TextNode */) {
505
+ childVNode.$text$ = childVNode.$elm$.textContent;
506
+ childRenderNodes.push(childVNode);
507
+ node.remove();
508
+ if (!parentVNode.$children$) {
509
+ parentVNode.$children$ = [];
510
+ }
511
+ parentVNode.$children$[childVNode.$index$] = childVNode;
512
+ if (shadowRootNodes && childVNode.$depth$ === "0") {
513
+ shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
514
+ }
450
515
  }
451
- }
452
- } else {
453
- const isComplex = isComplexType(newValue);
454
- if ((isProp || isComplex && newValue !== null) && !isSvg) {
455
- try {
456
- if (!elm.tagName.includes("-")) {
457
- const n = newValue == null ? "" : newValue;
458
- if (memberName === "list") {
459
- isProp = false;
460
- } else if (oldValue == null || elm[memberName] != n) {
461
- if (typeof elm.__lookupSetter__(memberName) === "function") {
462
- elm[memberName] = n;
463
- } else {
464
- elm.setAttribute(memberName, n);
465
- }
466
- }
516
+ } else if (childVNode.$hostId$ === hostId) {
517
+ if (childNodeType === SLOT_NODE_ID) {
518
+ childVNode.$tag$ = "slot";
519
+ if (childIdSplt[5]) {
520
+ node["s-sn"] = childVNode.$name$ = childIdSplt[5];
467
521
  } else {
468
- elm[memberName] = newValue;
522
+ node["s-sn"] = "";
469
523
  }
470
- } catch (e) {
471
- }
472
- }
473
- let xlink = false;
474
- {
475
- if (ln !== (ln = ln.replace(/^xlink\:?/, ""))) {
476
- memberName = ln;
477
- xlink = true;
478
- }
479
- }
480
- if (newValue == null || newValue === false) {
481
- if (newValue !== false || elm.getAttribute(memberName) === "") {
482
- if (xlink) {
483
- elm.removeAttributeNS(XLINK_NS, memberName);
524
+ node["s-sr"] = true;
525
+ if (shadowRootNodes) {
526
+ childVNode.$elm$ = doc.createElement(childVNode.$tag$);
527
+ if (childVNode.$name$) {
528
+ childVNode.$elm$.setAttribute("name", childVNode.$name$);
529
+ }
530
+ node.parentNode.insertBefore(childVNode.$elm$, node);
531
+ node.remove();
532
+ if (childVNode.$depth$ === "0") {
533
+ shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
534
+ }
535
+ }
536
+ slotNodes.push(childVNode);
537
+ if (!parentVNode.$children$) {
538
+ parentVNode.$children$ = [];
539
+ }
540
+ parentVNode.$children$[childVNode.$index$] = childVNode;
541
+ } else if (childNodeType === CONTENT_REF_ID) {
542
+ if (shadowRootNodes) {
543
+ node.remove();
484
544
  } else {
485
- elm.removeAttribute(memberName);
545
+ hostElm["s-cr"] = node;
546
+ node["s-cn"] = true;
486
547
  }
487
548
  }
488
- } else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex) {
489
- newValue = newValue === true ? "" : newValue;
490
- if (xlink) {
491
- elm.setAttributeNS(XLINK_NS, memberName, newValue);
492
- } else {
493
- elm.setAttribute(memberName, newValue);
494
- }
495
549
  }
496
550
  }
551
+ } else if (parentVNode && parentVNode.$tag$ === "style") {
552
+ const vnode = newVNode(null, node.textContent);
553
+ vnode.$elm$ = node;
554
+ vnode.$index$ = "0";
555
+ parentVNode.$children$ = [vnode];
497
556
  }
498
557
  };
499
- var parseClassListRegex = /\s/;
500
- var parseClassList = (value) => {
501
- if (typeof value === "object" && "baseVal" in value) {
502
- value = value.baseVal;
503
- }
504
- if (!value) {
505
- return [];
506
- }
507
- return value.split(parseClassListRegex);
508
- };
509
- var CAPTURE_EVENT_SUFFIX = "Capture";
510
- var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
511
-
512
- // src/runtime/vdom/update-element.ts
513
- var updateElement = (oldVnode, newVnode, isSvgMode2) => {
514
- const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
515
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
516
- const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
517
- {
518
- for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
519
- if (!(memberName in newVnodeAttrs)) {
520
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
558
+ var initializeDocumentHydrate = (node, orgLocNodes) => {
559
+ if (node.nodeType === 1 /* ElementNode */) {
560
+ let i2 = 0;
561
+ if (node.shadowRoot) {
562
+ for (; i2 < node.shadowRoot.childNodes.length; i2++) {
563
+ initializeDocumentHydrate(node.shadowRoot.childNodes[i2], orgLocNodes);
521
564
  }
522
565
  }
523
- }
524
- for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
525
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
566
+ for (i2 = 0; i2 < node.childNodes.length; i2++) {
567
+ initializeDocumentHydrate(node.childNodes[i2], orgLocNodes);
568
+ }
569
+ } else if (node.nodeType === 8 /* CommentNode */) {
570
+ const childIdSplt = node.nodeValue.split(".");
571
+ if (childIdSplt[0] === ORG_LOCATION_ID) {
572
+ orgLocNodes.set(childIdSplt[1] + "." + childIdSplt[2], node);
573
+ node.nodeValue = "";
574
+ node["s-en"] = childIdSplt[3];
575
+ }
526
576
  }
527
577
  };
528
- function sortedAttrNames(attrNames) {
529
- return attrNames.includes("ref") ? (
530
- // we need to sort these to ensure that `'ref'` is the last attr
531
- [...attrNames.filter((attr) => attr !== "ref"), "ref"]
532
- ) : (
578
+
579
+ // src/runtime/mode.ts
580
+ var computeMode = (elm) => modeResolutionChain.map((h2) => h2(elm)).find((m) => !!m);
581
+ var setMode = (handler) => modeResolutionChain.push(handler);
582
+ var getMode = (ref) => getHostRef(ref).$modeName$;
583
+ var parsePropertyValue = (propValue, propType) => {
584
+ if (propValue != null && !isComplexType(propValue)) {
585
+ if (propType & 4 /* Boolean */) {
586
+ return propValue === "false" ? false : propValue === "" || !!propValue;
587
+ }
588
+ if (propType & 2 /* Number */) {
589
+ return parseFloat(propValue);
590
+ }
591
+ if (propType & 1 /* String */) {
592
+ return String(propValue);
593
+ }
594
+ return propValue;
595
+ }
596
+ return propValue;
597
+ };
598
+ var getElement = (ref) => getHostRef(ref).$hostElement$ ;
599
+
600
+ // src/runtime/event-emitter.ts
601
+ var createEvent = (ref, name, flags) => {
602
+ const elm = getElement(ref);
603
+ return {
604
+ emit: (detail) => {
605
+ return emitEvent(elm, name, {
606
+ bubbles: !!(flags & 4 /* Bubbles */),
607
+ composed: !!(flags & 2 /* Composed */),
608
+ cancelable: !!(flags & 1 /* Cancellable */),
609
+ detail
610
+ });
611
+ }
612
+ };
613
+ };
614
+ var emitEvent = (elm, name, opts) => {
615
+ const ev = plt.ce(name, opts);
616
+ elm.dispatchEvent(ev);
617
+ return ev;
618
+ };
619
+ var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
620
+ var registerStyle = (scopeId2, cssText, allowCS) => {
621
+ let style = styles.get(scopeId2);
622
+ if (supportsConstructableStylesheets && allowCS) {
623
+ style = style || new CSSStyleSheet();
624
+ if (typeof style === "string") {
625
+ style = cssText;
626
+ } else {
627
+ style.replaceSync(cssText);
628
+ }
629
+ } else {
630
+ style = cssText;
631
+ }
632
+ styles.set(scopeId2, style);
633
+ };
634
+ var addStyle = (styleContainerNode, cmpMeta, mode) => {
635
+ var _a;
636
+ const scopeId2 = getScopeId(cmpMeta, mode);
637
+ const style = styles.get(scopeId2);
638
+ styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
639
+ if (style) {
640
+ if (typeof style === "string") {
641
+ styleContainerNode = styleContainerNode.head || styleContainerNode;
642
+ let appliedStyles = rootAppliedStyles.get(styleContainerNode);
643
+ let styleElm;
644
+ if (!appliedStyles) {
645
+ rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
646
+ }
647
+ if (!appliedStyles.has(scopeId2)) {
648
+ if (styleContainerNode.host && (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`))) {
649
+ styleElm.innerHTML = style;
650
+ } else {
651
+ styleElm = doc.createElement("style");
652
+ styleElm.innerHTML = style;
653
+ const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
654
+ if (nonce != null) {
655
+ styleElm.setAttribute("nonce", nonce);
656
+ }
657
+ const injectStyle = (
658
+ /**
659
+ * we render a scoped component
660
+ */
661
+ !(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) || /**
662
+ * we are using shadow dom and render the style tag within the shadowRoot
663
+ */
664
+ cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD"
665
+ );
666
+ if (injectStyle) {
667
+ styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector("link"));
668
+ }
669
+ }
670
+ if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
671
+ styleElm.innerHTML += SLOT_FB_CSS;
672
+ }
673
+ if (appliedStyles) {
674
+ appliedStyles.add(scopeId2);
675
+ }
676
+ }
677
+ } else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
678
+ styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
679
+ }
680
+ }
681
+ return scopeId2;
682
+ };
683
+ var attachStyles = (hostRef) => {
684
+ const cmpMeta = hostRef.$cmpMeta$;
685
+ const elm = hostRef.$hostElement$;
686
+ const flags = cmpMeta.$flags$;
687
+ const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
688
+ const scopeId2 = addStyle(
689
+ elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
690
+ cmpMeta,
691
+ hostRef.$modeName$
692
+ );
693
+ if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
694
+ elm["s-sc"] = scopeId2;
695
+ elm.classList.add(scopeId2 + "-h");
696
+ if (flags & 2 /* scopedCssEncapsulation */) {
697
+ elm.classList.add(scopeId2 + "-s");
698
+ }
699
+ }
700
+ endAttachStyles();
701
+ };
702
+ var getScopeId = (cmp, mode) => "sc-" + (mode && cmp.$flags$ & 32 /* hasMode */ ? cmp.$tagName$ + "-" + mode : cmp.$tagName$);
703
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
704
+ if (oldValue !== newValue) {
705
+ let isProp = isMemberInElement(elm, memberName);
706
+ let ln = memberName.toLowerCase();
707
+ if (memberName === "class") {
708
+ const classList = elm.classList;
709
+ const oldClasses = parseClassList(oldValue);
710
+ const newClasses = parseClassList(newValue);
711
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
712
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
713
+ } else if (memberName === "style") {
714
+ {
715
+ for (const prop in oldValue) {
716
+ if (!newValue || newValue[prop] == null) {
717
+ if (prop.includes("-")) {
718
+ elm.style.removeProperty(prop);
719
+ } else {
720
+ elm.style[prop] = "";
721
+ }
722
+ }
723
+ }
724
+ }
725
+ for (const prop in newValue) {
726
+ if (!oldValue || newValue[prop] !== oldValue[prop]) {
727
+ if (prop.includes("-")) {
728
+ elm.style.setProperty(prop, newValue[prop]);
729
+ } else {
730
+ elm.style[prop] = newValue[prop];
731
+ }
732
+ }
733
+ }
734
+ } else if (memberName === "key") ; else if (memberName === "ref") {
735
+ if (newValue) {
736
+ newValue(elm);
737
+ }
738
+ } else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
739
+ if (memberName[2] === "-") {
740
+ memberName = memberName.slice(3);
741
+ } else if (isMemberInElement(win, ln)) {
742
+ memberName = ln.slice(2);
743
+ } else {
744
+ memberName = ln[2] + memberName.slice(3);
745
+ }
746
+ if (oldValue || newValue) {
747
+ const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
748
+ memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
749
+ if (oldValue) {
750
+ plt.rel(elm, memberName, oldValue, capture);
751
+ }
752
+ if (newValue) {
753
+ plt.ael(elm, memberName, newValue, capture);
754
+ }
755
+ }
756
+ } else {
757
+ const isComplex = isComplexType(newValue);
758
+ if ((isProp || isComplex && newValue !== null) && !isSvg) {
759
+ try {
760
+ if (!elm.tagName.includes("-")) {
761
+ const n = newValue == null ? "" : newValue;
762
+ if (memberName === "list") {
763
+ isProp = false;
764
+ } else if (oldValue == null || elm[memberName] != n) {
765
+ elm[memberName] = n;
766
+ }
767
+ } else {
768
+ elm[memberName] = newValue;
769
+ }
770
+ } catch (e) {
771
+ }
772
+ }
773
+ let xlink = false;
774
+ {
775
+ if (ln !== (ln = ln.replace(/^xlink\:?/, ""))) {
776
+ memberName = ln;
777
+ xlink = true;
778
+ }
779
+ }
780
+ if (newValue == null || newValue === false) {
781
+ if (newValue !== false || elm.getAttribute(memberName) === "") {
782
+ if (xlink) {
783
+ elm.removeAttributeNS(XLINK_NS, memberName);
784
+ } else {
785
+ elm.removeAttribute(memberName);
786
+ }
787
+ }
788
+ } else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex) {
789
+ newValue = newValue === true ? "" : newValue;
790
+ if (xlink) {
791
+ elm.setAttributeNS(XLINK_NS, memberName, newValue);
792
+ } else {
793
+ elm.setAttribute(memberName, newValue);
794
+ }
795
+ }
796
+ }
797
+ }
798
+ };
799
+ var parseClassListRegex = /\s/;
800
+ var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
801
+ var CAPTURE_EVENT_SUFFIX = "Capture";
802
+ var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
803
+
804
+ // src/runtime/vdom/update-element.ts
805
+ var updateElement = (oldVnode, newVnode, isSvgMode2) => {
806
+ const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
807
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
808
+ const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
809
+ {
810
+ for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
811
+ if (!(memberName in newVnodeAttrs)) {
812
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
813
+ }
814
+ }
815
+ }
816
+ for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
817
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
818
+ }
819
+ };
820
+ function sortedAttrNames(attrNames) {
821
+ return attrNames.includes("ref") ? (
822
+ // we need to sort these to ensure that `'ref'` is the last attr
823
+ [...attrNames.filter((attr) => attr !== "ref"), "ref"]
824
+ ) : (
533
825
  // no need to sort, return the original array
534
826
  attrNames
535
827
  );
@@ -631,12 +923,8 @@ var relocateToHostRoot = (parentElm) => {
631
923
  plt.$flags$ |= 1 /* isTmpDisconnected */;
632
924
  const host = parentElm.closest(hostTagName.toLowerCase());
633
925
  if (host != null) {
634
- const contentRefNode = Array.from(host.__childNodes || host.childNodes).find(
635
- (ref) => ref["s-cr"]
636
- );
637
- const childNodeArray = Array.from(
638
- parentElm.__childNodes || parentElm.childNodes
639
- );
926
+ const contentRefNode = Array.from(host.childNodes).find((ref) => ref["s-cr"]);
927
+ const childNodeArray = Array.from(parentElm.childNodes);
640
928
  for (const childNode of contentRefNode ? childNodeArray.reverse() : childNodeArray) {
641
929
  if (childNode["s-sh"] != null) {
642
930
  insertBefore(host, childNode, contentRefNode != null ? contentRefNode : null);
@@ -649,7 +937,7 @@ var relocateToHostRoot = (parentElm) => {
649
937
  };
650
938
  var putBackInOriginalLocation = (parentElm, recursive) => {
651
939
  plt.$flags$ |= 1 /* isTmpDisconnected */;
652
- const oldSlotChildNodes = Array.from(parentElm.__childNodes || parentElm.childNodes);
940
+ const oldSlotChildNodes = Array.from(parentElm.childNodes);
653
941
  if (parentElm["s-sr"] && BUILD.experimentalSlotFixes) {
654
942
  let node = parentElm;
655
943
  while (node = node.nextSibling) {
@@ -868,7 +1156,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
868
1156
  }
869
1157
  };
870
1158
  var updateFallbackSlotVisibility = (elm) => {
871
- const childNodes = elm.__childNodes || elm.childNodes;
1159
+ const childNodes = elm.childNodes;
872
1160
  for (const childNode of childNodes) {
873
1161
  if (childNode.nodeType === 1 /* ElementNode */) {
874
1162
  if (childNode["s-sr"]) {
@@ -881,7 +1169,7 @@ var updateFallbackSlotVisibility = (elm) => {
881
1169
  childNode.hidden = true;
882
1170
  break;
883
1171
  }
884
- } else if (slotName === siblingNode["s-sn"]) {
1172
+ } else {
885
1173
  if (siblingNode.nodeType === 1 /* ElementNode */ || siblingNode.nodeType === 3 /* TextNode */ && siblingNode.textContent.trim() !== "") {
886
1174
  childNode.hidden = true;
887
1175
  break;
@@ -899,10 +1187,9 @@ var markSlotContentForRelocation = (elm) => {
899
1187
  let node;
900
1188
  let hostContentNodes;
901
1189
  let j;
902
- const children = elm.__childNodes || elm.childNodes;
903
- for (const childNode of children) {
1190
+ for (const childNode of elm.childNodes) {
904
1191
  if (childNode["s-sr"] && (node = childNode["s-cr"]) && node.parentNode) {
905
- hostContentNodes = node.parentNode.__childNodes || node.parentNode.childNodes;
1192
+ hostContentNodes = node.parentNode.childNodes;
906
1193
  const slotName = childNode["s-sn"];
907
1194
  for (j = hostContentNodes.length - 1; j >= 0; j--) {
908
1195
  node = hostContentNodes[j];
@@ -989,9 +1276,9 @@ var updateElementScopeIds = (element, parent, iterateChildNodes = false) => {
989
1276
  if (element && parent && element.nodeType === 1 /* ElementNode */) {
990
1277
  const scopeIds = new Set(findScopeIds(parent).filter(Boolean));
991
1278
  if (scopeIds.size) {
992
- (_a = element.classList) == null ? void 0 : _a.add(...element["s-scs"] = Array.from(scopeIds));
1279
+ (_a = element.classList) == null ? void 0 : _a.add(...element["s-scs"] = [...scopeIds]);
993
1280
  if (element["s-ol"] || iterateChildNodes) {
994
- for (const childNode of Array.from(element.__childNodes || element.childNodes)) {
1281
+ for (const childNode of Array.from(element.childNodes)) {
995
1282
  updateElementScopeIds(childNode, element, true);
996
1283
  }
997
1284
  }
@@ -1077,909 +1364,32 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
1077
1364
  nodeToRelocate && typeof slotRefNode["s-rf"] === "function" && slotRefNode["s-rf"](nodeToRelocate);
1078
1365
  } else {
1079
1366
  if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
1080
- if (isInitialLoad) {
1081
- nodeToRelocate["s-ih"] = (_d = nodeToRelocate.hidden) != null ? _d : false;
1082
- }
1083
- nodeToRelocate.hidden = true;
1084
- }
1085
- }
1086
- }
1087
- }
1088
- if (checkSlotFallbackVisibility) {
1089
- updateFallbackSlotVisibility(rootVnode.$elm$);
1090
- }
1091
- plt.$flags$ &= ~1 /* isTmpDisconnected */;
1092
- relocateNodes.length = 0;
1093
- }
1094
- if (cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */) {
1095
- const children = rootVnode.$elm$.__childNodes || rootVnode.$elm$.childNodes;
1096
- for (const childNode of children) {
1097
- if (childNode["s-hn"] !== hostTagName && !childNode["s-sh"]) {
1098
- if (isInitialLoad && childNode["s-ih"] == null) {
1099
- childNode["s-ih"] = (_e = childNode.hidden) != null ? _e : false;
1100
- }
1101
- childNode.hidden = true;
1102
- }
1103
- }
1104
- }
1105
- contentRef = void 0;
1106
- };
1107
-
1108
- // src/runtime/dom-extras.ts
1109
- var patchPseudoShadowDom = (hostElementPrototype) => {
1110
- patchCloneNode(hostElementPrototype);
1111
- patchSlotAppendChild(hostElementPrototype);
1112
- patchSlotAppend(hostElementPrototype);
1113
- patchSlotPrepend(hostElementPrototype);
1114
- patchSlotInsertAdjacentElement(hostElementPrototype);
1115
- patchSlotInsertAdjacentHTML(hostElementPrototype);
1116
- patchSlotInsertAdjacentText(hostElementPrototype);
1117
- patchTextContent(hostElementPrototype);
1118
- patchChildSlotNodes(hostElementPrototype);
1119
- patchSlotRemoveChild(hostElementPrototype);
1120
- };
1121
- var patchCloneNode = (HostElementPrototype) => {
1122
- const orgCloneNode = HostElementPrototype.cloneNode;
1123
- HostElementPrototype.cloneNode = function(deep) {
1124
- const srcNode = this;
1125
- const isShadowDom = srcNode.shadowRoot && supportsShadow ;
1126
- const clonedNode = orgCloneNode.call(srcNode, isShadowDom ? deep : false);
1127
- if (!isShadowDom && deep) {
1128
- let i2 = 0;
1129
- let slotted, nonStencilNode;
1130
- const stencilPrivates = [
1131
- "s-id",
1132
- "s-cr",
1133
- "s-lr",
1134
- "s-rc",
1135
- "s-sc",
1136
- "s-p",
1137
- "s-cn",
1138
- "s-sr",
1139
- "s-sn",
1140
- "s-hn",
1141
- "s-ol",
1142
- "s-nr",
1143
- "s-si",
1144
- "s-rf",
1145
- "s-scs"
1146
- ];
1147
- const childNodes = this.__childNodes || this.childNodes;
1148
- for (; i2 < childNodes.length; i2++) {
1149
- slotted = childNodes[i2]["s-nr"];
1150
- nonStencilNode = stencilPrivates.every((privateField) => !childNodes[i2][privateField]);
1151
- if (slotted) {
1152
- if (clonedNode.__appendChild) {
1153
- clonedNode.__appendChild(slotted.cloneNode(true));
1154
- } else {
1155
- clonedNode.appendChild(slotted.cloneNode(true));
1156
- }
1157
- }
1158
- if (nonStencilNode) {
1159
- clonedNode.appendChild(childNodes[i2].cloneNode(true));
1160
- }
1161
- }
1162
- }
1163
- return clonedNode;
1164
- };
1165
- };
1166
- var patchSlotAppendChild = (HostElementPrototype) => {
1167
- HostElementPrototype.__appendChild = HostElementPrototype.appendChild;
1168
- HostElementPrototype.appendChild = function(newChild) {
1169
- const slotName = newChild["s-sn"] = getSlotName(newChild);
1170
- const slotNode = getHostSlotNode(this.__childNodes || this.childNodes, slotName, this.tagName);
1171
- if (slotNode) {
1172
- addSlotRelocateNode(newChild, slotNode);
1173
- const slotChildNodes = getHostSlotChildNodes(slotNode, slotName);
1174
- const appendAfter = slotChildNodes[slotChildNodes.length - 1];
1175
- const insertedNode = insertBefore(appendAfter.parentNode, newChild, appendAfter.nextSibling);
1176
- updateFallbackSlotVisibility(this);
1177
- return insertedNode;
1178
- }
1179
- return this.__appendChild(newChild);
1180
- };
1181
- };
1182
- var patchSlotRemoveChild = (ElementPrototype) => {
1183
- ElementPrototype.__removeChild = ElementPrototype.removeChild;
1184
- ElementPrototype.removeChild = function(toRemove) {
1185
- if (toRemove && typeof toRemove["s-sn"] !== "undefined") {
1186
- const childNodes = this.__childNodes || this.childNodes;
1187
- const slotNode = getHostSlotNode(childNodes, toRemove["s-sn"], this.tagName);
1188
- if (slotNode && toRemove.isConnected) {
1189
- toRemove.remove();
1190
- updateFallbackSlotVisibility(this);
1191
- return;
1192
- }
1193
- }
1194
- return this.__removeChild(toRemove);
1195
- };
1196
- };
1197
- var patchSlotPrepend = (HostElementPrototype) => {
1198
- HostElementPrototype.__prepend = HostElementPrototype.prepend;
1199
- HostElementPrototype.prepend = function(...newChildren) {
1200
- newChildren.forEach((newChild) => {
1201
- if (typeof newChild === "string") {
1202
- newChild = this.ownerDocument.createTextNode(newChild);
1203
- }
1204
- const slotName = newChild["s-sn"] = getSlotName(newChild);
1205
- const childNodes = this.__childNodes || this.childNodes;
1206
- const slotNode = getHostSlotNode(childNodes, slotName, this.tagName);
1207
- if (slotNode) {
1208
- addSlotRelocateNode(newChild, slotNode, true);
1209
- const slotChildNodes = getHostSlotChildNodes(slotNode, slotName);
1210
- const appendAfter = slotChildNodes[0];
1211
- return insertBefore(appendAfter.parentNode, newChild, appendAfter.nextSibling);
1212
- }
1213
- if (newChild.nodeType === 1 && !!newChild.getAttribute("slot")) {
1214
- newChild.hidden = true;
1215
- }
1216
- return HostElementPrototype.__prepend(newChild);
1217
- });
1218
- };
1219
- };
1220
- var patchSlotAppend = (HostElementPrototype) => {
1221
- HostElementPrototype.__append = HostElementPrototype.append;
1222
- HostElementPrototype.append = function(...newChildren) {
1223
- newChildren.forEach((newChild) => {
1224
- if (typeof newChild === "string") {
1225
- newChild = this.ownerDocument.createTextNode(newChild);
1226
- }
1227
- this.appendChild(newChild);
1228
- });
1229
- };
1230
- };
1231
- var patchSlotInsertAdjacentHTML = (HostElementPrototype) => {
1232
- const originalInsertAdjacentHtml = HostElementPrototype.insertAdjacentHTML;
1233
- HostElementPrototype.insertAdjacentHTML = function(position, text) {
1234
- if (position !== "afterbegin" && position !== "beforeend") {
1235
- return originalInsertAdjacentHtml.call(this, position, text);
1236
- }
1237
- const container = this.ownerDocument.createElement("_");
1238
- let node;
1239
- container.innerHTML = text;
1240
- if (position === "afterbegin") {
1241
- while (node = container.firstChild) {
1242
- this.prepend(node);
1243
- }
1244
- } else if (position === "beforeend") {
1245
- while (node = container.firstChild) {
1246
- this.append(node);
1247
- }
1248
- }
1249
- };
1250
- };
1251
- var patchSlotInsertAdjacentText = (HostElementPrototype) => {
1252
- HostElementPrototype.insertAdjacentText = function(position, text) {
1253
- this.insertAdjacentHTML(position, text);
1254
- };
1255
- };
1256
- var patchSlotInsertAdjacentElement = (HostElementPrototype) => {
1257
- const originalInsertAdjacentElement = HostElementPrototype.insertAdjacentElement;
1258
- HostElementPrototype.insertAdjacentElement = function(position, element) {
1259
- if (position !== "afterbegin" && position !== "beforeend") {
1260
- return originalInsertAdjacentElement.call(this, position, element);
1261
- }
1262
- if (position === "afterbegin") {
1263
- this.prepend(element);
1264
- return element;
1265
- } else if (position === "beforeend") {
1266
- this.append(element);
1267
- return element;
1268
- }
1269
- return element;
1270
- };
1271
- };
1272
- var patchTextContent = (hostElementPrototype) => {
1273
- patchHostOriginalAccessor("textContent", hostElementPrototype);
1274
- Object.defineProperty(hostElementPrototype, "textContent", {
1275
- get: function() {
1276
- let text = "";
1277
- const childNodes = this.__childNodes ? this.childNodes : getSlottedChildNodes(this.childNodes);
1278
- childNodes.forEach((node) => text += node.textContent || "");
1279
- return text;
1280
- },
1281
- set: function(value) {
1282
- const childNodes = this.__childNodes ? this.childNodes : getSlottedChildNodes(this.childNodes);
1283
- childNodes.forEach((node) => {
1284
- if (node["s-ol"]) node["s-ol"].remove();
1285
- node.remove();
1286
- });
1287
- this.insertAdjacentHTML("beforeend", value);
1288
- }
1289
- });
1290
- };
1291
- var patchChildSlotNodes = (elm) => {
1292
- class FakeNodeList extends Array {
1293
- item(n) {
1294
- return this[n];
1295
- }
1296
- }
1297
- patchHostOriginalAccessor("children", elm);
1298
- Object.defineProperty(elm, "children", {
1299
- get() {
1300
- return this.childNodes.filter((n) => n.nodeType === 1);
1301
- }
1302
- });
1303
- Object.defineProperty(elm, "childElementCount", {
1304
- get() {
1305
- return this.children.length;
1306
- }
1307
- });
1308
- patchHostOriginalAccessor("firstChild", elm);
1309
- Object.defineProperty(elm, "firstChild", {
1310
- get() {
1311
- return this.childNodes[0];
1312
- }
1313
- });
1314
- patchHostOriginalAccessor("lastChild", elm);
1315
- Object.defineProperty(elm, "lastChild", {
1316
- get() {
1317
- return this.childNodes[this.childNodes.length - 1];
1318
- }
1319
- });
1320
- patchHostOriginalAccessor("childNodes", elm);
1321
- Object.defineProperty(elm, "childNodes", {
1322
- get() {
1323
- var _a, _b;
1324
- if (!plt.$flags$ || !((_a = getHostRef(this)) == null ? void 0 : _a.$flags$) || (plt.$flags$ & 1 /* isTmpDisconnected */) === 0 && ((_b = getHostRef(this)) == null ? void 0 : _b.$flags$) & 2 /* hasRendered */) {
1325
- const result = new FakeNodeList();
1326
- const nodes = getSlottedChildNodes(this.__childNodes);
1327
- result.push(...nodes);
1328
- return result;
1329
- }
1330
- return FakeNodeList.from(this.__childNodes);
1331
- }
1332
- });
1333
- };
1334
- var patchNextPrev = (node) => {
1335
- if (!node || node.__nextSibling || !globalThis.Node) return;
1336
- patchNextSibling(node);
1337
- patchPreviousSibling(node);
1338
- if (node.nodeType === Node.ELEMENT_NODE) {
1339
- patchNextElementSibling(node);
1340
- patchPreviousElementSibling(node);
1341
- }
1342
- };
1343
- var patchNextSibling = (node) => {
1344
- if (!node || node.__nextSibling) return;
1345
- patchHostOriginalAccessor("nextSibling", node);
1346
- Object.defineProperty(node, "nextSibling", {
1347
- get: function() {
1348
- var _a;
1349
- const parentNodes = (_a = this["s-ol"]) == null ? void 0 : _a.parentNode.childNodes;
1350
- const index = parentNodes == null ? void 0 : parentNodes.indexOf(this);
1351
- if (parentNodes && index > -1) {
1352
- return parentNodes[index + 1];
1353
- }
1354
- return this.__nextSibling;
1355
- }
1356
- });
1357
- };
1358
- var patchNextElementSibling = (element) => {
1359
- if (!element || element.__nextElementSibling) return;
1360
- patchHostOriginalAccessor("nextElementSibling", element);
1361
- Object.defineProperty(element, "nextElementSibling", {
1362
- get: function() {
1363
- var _a;
1364
- const parentEles = (_a = this["s-ol"]) == null ? void 0 : _a.parentNode.children;
1365
- const index = parentEles == null ? void 0 : parentEles.indexOf(this);
1366
- if (parentEles && index > -1) {
1367
- return parentEles[index + 1];
1368
- }
1369
- return this.__nextElementSibling;
1370
- }
1371
- });
1372
- };
1373
- var patchPreviousSibling = (node) => {
1374
- if (!node || node.__previousSibling) return;
1375
- patchHostOriginalAccessor("previousSibling", node);
1376
- Object.defineProperty(node, "previousSibling", {
1377
- get: function() {
1378
- var _a;
1379
- const parentNodes = (_a = this["s-ol"]) == null ? void 0 : _a.parentNode.childNodes;
1380
- const index = parentNodes == null ? void 0 : parentNodes.indexOf(this);
1381
- if (parentNodes && index > -1) {
1382
- return parentNodes[index - 1];
1383
- }
1384
- return this.__previousSibling;
1385
- }
1386
- });
1387
- };
1388
- var patchPreviousElementSibling = (element) => {
1389
- if (!element || element.__previousElementSibling) return;
1390
- patchHostOriginalAccessor("previousElementSibling", element);
1391
- Object.defineProperty(element, "previousElementSibling", {
1392
- get: function() {
1393
- var _a;
1394
- const parentNodes = (_a = this["s-ol"]) == null ? void 0 : _a.parentNode.children;
1395
- const index = parentNodes == null ? void 0 : parentNodes.indexOf(this);
1396
- if (parentNodes && index > -1) {
1397
- return parentNodes[index - 1];
1398
- }
1399
- return this.__previousElementSibling;
1400
- }
1401
- });
1402
- };
1403
- var validElementPatches = ["children", "nextElementSibling", "previousElementSibling"];
1404
- var validNodesPatches = [
1405
- "childNodes",
1406
- "firstChild",
1407
- "lastChild",
1408
- "nextSibling",
1409
- "previousSibling",
1410
- "textContent"
1411
- ];
1412
- function patchHostOriginalAccessor(accessorName, node) {
1413
- let accessor;
1414
- if (validElementPatches.includes(accessorName)) {
1415
- accessor = Object.getOwnPropertyDescriptor(Element.prototype, accessorName);
1416
- } else if (validNodesPatches.includes(accessorName)) {
1417
- accessor = Object.getOwnPropertyDescriptor(Node.prototype, accessorName);
1418
- }
1419
- if (!accessor) {
1420
- accessor = Object.getOwnPropertyDescriptor(node, accessorName);
1421
- }
1422
- if (accessor) Object.defineProperty(node, "__" + accessorName, accessor);
1423
- }
1424
- var addSlotRelocateNode = (newChild, slotNode, prepend, position) => {
1425
- let slottedNodeLocation;
1426
- if (newChild["s-ol"] && newChild["s-ol"].isConnected) {
1427
- slottedNodeLocation = newChild["s-ol"];
1428
- } else {
1429
- slottedNodeLocation = document.createTextNode("");
1430
- slottedNodeLocation["s-nr"] = newChild;
1431
- }
1432
- if (!slotNode["s-cr"] || !slotNode["s-cr"].parentNode) return;
1433
- const parent = slotNode["s-cr"].parentNode;
1434
- const appendMethod = prepend ? parent.__prepend || parent.prepend : parent.__appendChild || parent.appendChild;
1435
- if (typeof position !== "undefined") {
1436
- {
1437
- slottedNodeLocation["s-oo"] = position;
1438
- const childNodes = parent.__childNodes || parent.childNodes;
1439
- const slotRelocateNodes = [slottedNodeLocation];
1440
- childNodes.forEach((n) => {
1441
- if (n["s-nr"]) slotRelocateNodes.push(n);
1442
- });
1443
- slotRelocateNodes.sort((a, b) => {
1444
- if (!a["s-oo"] || a["s-oo"] < b["s-oo"]) return -1;
1445
- else if (!b["s-oo"] || b["s-oo"] < a["s-oo"]) return 1;
1446
- return 0;
1447
- });
1448
- slotRelocateNodes.forEach((n) => appendMethod.call(parent, n));
1449
- }
1450
- } else {
1451
- appendMethod.call(parent, slottedNodeLocation);
1452
- }
1453
- newChild["s-ol"] = slottedNodeLocation;
1454
- newChild["s-sh"] = slotNode["s-hn"];
1455
- };
1456
- var getSlottedChildNodes = (childNodes) => {
1457
- const result = [];
1458
- for (let i2 = 0; i2 < childNodes.length; i2++) {
1459
- const slottedNode = childNodes[i2]["s-nr"];
1460
- if (slottedNode && slottedNode.isConnected) {
1461
- result.push(slottedNode);
1462
- }
1463
- }
1464
- return result;
1465
- };
1466
- var getSlotName = (node) => node["s-sn"] || node.nodeType === 1 && node.getAttribute("slot") || "";
1467
- var getHostSlotNode = (childNodes, slotName, hostName) => {
1468
- let i2 = 0;
1469
- let childNode;
1470
- for (; i2 < childNodes.length; i2++) {
1471
- childNode = childNodes[i2];
1472
- if (childNode["s-sr"] && childNode["s-sn"] === slotName && childNode["s-hn"] === hostName) {
1473
- return childNode;
1474
- }
1475
- childNode = getHostSlotNode(childNode.childNodes, slotName, hostName);
1476
- if (childNode) {
1477
- return childNode;
1478
- }
1479
- }
1480
- return null;
1481
- };
1482
- var getHostSlotChildNodes = (n, slotName) => {
1483
- const childNodes = [n];
1484
- while ((n = n.nextSibling) && n["s-sn"] === slotName) {
1485
- childNodes.push(n);
1486
- }
1487
- return childNodes;
1488
- };
1489
- var createTime = (fnName, tagName = "") => {
1490
- {
1491
- return () => {
1492
- return;
1493
- };
1494
- }
1495
- };
1496
- var uniqueTime = (key, measureText) => {
1497
- {
1498
- return () => {
1499
- return;
1500
- };
1501
- }
1502
- };
1503
-
1504
- // src/runtime/client-hydrate.ts
1505
- var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
1506
- const endHydrate = createTime("hydrateClient", tagName);
1507
- const shadowRoot = hostElm.shadowRoot;
1508
- const childRenderNodes = [];
1509
- const slotNodes = [];
1510
- const slottedNodes = [];
1511
- const shadowRootNodes = shadowRoot ? [] : null;
1512
- const vnode = newVNode(tagName, null);
1513
- vnode.$elm$ = hostElm;
1514
- if (!plt.$orgLocNodes$) {
1515
- initializeDocumentHydrate(doc.body, plt.$orgLocNodes$ = /* @__PURE__ */ new Map());
1516
- }
1517
- hostElm[HYDRATE_ID] = hostId;
1518
- hostElm.removeAttribute(HYDRATE_ID);
1519
- hostRef.$vnode$ = clientHydrate(
1520
- vnode,
1521
- childRenderNodes,
1522
- slotNodes,
1523
- shadowRootNodes,
1524
- hostElm,
1525
- hostElm,
1526
- hostId,
1527
- slottedNodes
1528
- );
1529
- let crIndex = 0;
1530
- const crLength = childRenderNodes.length;
1531
- let childRenderNode;
1532
- for (crIndex; crIndex < crLength; crIndex++) {
1533
- childRenderNode = childRenderNodes[crIndex];
1534
- const orgLocationId = childRenderNode.$hostId$ + "." + childRenderNode.$nodeId$;
1535
- const orgLocationNode = plt.$orgLocNodes$.get(orgLocationId);
1536
- const node = childRenderNode.$elm$;
1537
- if (!shadowRoot) {
1538
- node["s-hn"] = tagName.toUpperCase();
1539
- if (childRenderNode.$tag$ === "slot") {
1540
- node["s-cr"] = hostElm["s-cr"];
1541
- }
1542
- }
1543
- if (orgLocationNode && orgLocationNode.isConnected) {
1544
- if (shadowRoot && orgLocationNode["s-en"] === "") {
1545
- orgLocationNode.parentNode.insertBefore(node, orgLocationNode.nextSibling);
1546
- }
1547
- orgLocationNode.parentNode.removeChild(orgLocationNode);
1548
- if (!shadowRoot) {
1549
- node["s-oo"] = parseInt(childRenderNode.$nodeId$);
1550
- }
1551
- }
1552
- plt.$orgLocNodes$.delete(orgLocationId);
1553
- }
1554
- const hosts = [];
1555
- let snIndex = 0;
1556
- const snLen = slottedNodes.length;
1557
- let slotGroup;
1558
- let snGroupIdx;
1559
- let snGroupLen;
1560
- let slottedItem;
1561
- for (snIndex; snIndex < snLen; snIndex++) {
1562
- slotGroup = slottedNodes[snIndex];
1563
- if (!slotGroup || !slotGroup.length) continue;
1564
- snGroupLen = slotGroup.length;
1565
- snGroupIdx = 0;
1566
- for (snGroupIdx; snGroupIdx < snGroupLen; snGroupIdx++) {
1567
- slottedItem = slotGroup[snGroupIdx];
1568
- if (!hosts[slottedItem.hostId]) {
1569
- hosts[slottedItem.hostId] = plt.$orgLocNodes$.get(slottedItem.hostId);
1570
- }
1571
- if (!hosts[slottedItem.hostId]) continue;
1572
- const hostEle = hosts[slottedItem.hostId];
1573
- if (!hostEle.shadowRoot || !shadowRoot) {
1574
- slottedItem.slot["s-cr"] = hostEle["s-cr"];
1575
- if (!slottedItem.slot["s-cr"] && hostEle.shadowRoot) {
1576
- slottedItem.slot["s-cr"] = hostEle;
1577
- } else {
1578
- const hostChildren = hostEle.__childNodes || hostEle.childNodes;
1579
- slottedItem.slot["s-cr"] = hostChildren[0];
1580
- }
1581
- addSlotRelocateNode(slottedItem.node, slottedItem.slot, false, slottedItem.node["s-oo"]);
1582
- {
1583
- patchNextPrev(slottedItem.node);
1584
- }
1585
- }
1586
- if (hostEle.shadowRoot && slottedItem.node.parentElement !== hostEle) {
1587
- hostEle.appendChild(slottedItem.node);
1588
- }
1589
- }
1590
- }
1591
- if (shadowRoot) {
1592
- let rnIdex = 0;
1593
- const rnLen = shadowRootNodes.length;
1594
- for (rnIdex; rnIdex < rnLen; rnIdex++) {
1595
- shadowRoot.appendChild(shadowRootNodes[rnIdex]);
1596
- }
1597
- Array.from(hostElm.childNodes).forEach((node) => {
1598
- if (node.nodeType === 8 /* CommentNode */ && typeof node["s-sn"] !== "string") {
1599
- node.parentNode.removeChild(node);
1600
- }
1601
- });
1602
- }
1603
- hostRef.$hostElement$ = hostElm;
1604
- endHydrate();
1605
- };
1606
- var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, node, hostId, slottedNodes = []) => {
1607
- let childNodeType;
1608
- let childIdSplt;
1609
- let childVNode;
1610
- let i2;
1611
- const scopeId2 = hostElm["s-sc"];
1612
- if (node.nodeType === 1 /* ElementNode */) {
1613
- childNodeType = node.getAttribute(HYDRATE_CHILD_ID);
1614
- if (childNodeType) {
1615
- childIdSplt = childNodeType.split(".");
1616
- if (childIdSplt[0] === hostId || childIdSplt[0] === "0") {
1617
- childVNode = createSimpleVNode({
1618
- $flags$: 0,
1619
- $hostId$: childIdSplt[0],
1620
- $nodeId$: childIdSplt[1],
1621
- $depth$: childIdSplt[2],
1622
- $index$: childIdSplt[3],
1623
- $tag$: node.tagName.toLowerCase(),
1624
- $elm$: node,
1625
- // If we don't add the initial classes to the VNode, the first `vdom-render.ts` reconciliation will fail:
1626
- // client side changes before componentDidLoad will be ignored, `set-accessor.ts` will just take the element's initial classes
1627
- $attrs$: { class: node.className }
1628
- });
1629
- childRenderNodes.push(childVNode);
1630
- node.removeAttribute(HYDRATE_CHILD_ID);
1631
- if (!parentVNode.$children$) {
1632
- parentVNode.$children$ = [];
1633
- }
1634
- const slotName = childVNode.$elm$.getAttribute("s-sn");
1635
- if (typeof slotName === "string") {
1636
- if (childVNode.$tag$ === "slot-fb") {
1637
- addSlot(
1638
- slotName,
1639
- childIdSplt[2],
1640
- childVNode,
1641
- node,
1642
- parentVNode,
1643
- childRenderNodes,
1644
- slotNodes,
1645
- shadowRootNodes,
1646
- slottedNodes
1647
- );
1648
- }
1649
- childVNode.$elm$["s-sn"] = slotName;
1650
- childVNode.$elm$.removeAttribute("s-sn");
1651
- }
1652
- if (childVNode.$index$ !== void 0) {
1653
- parentVNode.$children$[childVNode.$index$] = childVNode;
1654
- }
1655
- if (scopeId2) node["s-si"] = scopeId2;
1656
- parentVNode = childVNode;
1657
- if (shadowRootNodes && childVNode.$depth$ === "0") {
1658
- shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
1659
- }
1660
- }
1661
- }
1662
- if (node.shadowRoot) {
1663
- for (i2 = node.shadowRoot.childNodes.length - 1; i2 >= 0; i2--) {
1664
- clientHydrate(
1665
- parentVNode,
1666
- childRenderNodes,
1667
- slotNodes,
1668
- shadowRootNodes,
1669
- hostElm,
1670
- node.shadowRoot.childNodes[i2],
1671
- hostId,
1672
- slottedNodes
1673
- );
1674
- }
1675
- }
1676
- const nonShadowNodes = node.__childNodes || node.childNodes;
1677
- for (i2 = nonShadowNodes.length - 1; i2 >= 0; i2--) {
1678
- clientHydrate(
1679
- parentVNode,
1680
- childRenderNodes,
1681
- slotNodes,
1682
- shadowRootNodes,
1683
- hostElm,
1684
- nonShadowNodes[i2],
1685
- hostId,
1686
- slottedNodes
1687
- );
1688
- }
1689
- } else if (node.nodeType === 8 /* CommentNode */) {
1690
- childIdSplt = node.nodeValue.split(".");
1691
- if (childIdSplt[1] === hostId || childIdSplt[1] === "0") {
1692
- childNodeType = childIdSplt[0];
1693
- childVNode = createSimpleVNode({
1694
- $hostId$: childIdSplt[1],
1695
- $nodeId$: childIdSplt[2],
1696
- $depth$: childIdSplt[3],
1697
- $index$: childIdSplt[4] || "0",
1698
- $elm$: node,
1699
- $attrs$: null,
1700
- $children$: null,
1701
- $key$: null,
1702
- $name$: null,
1703
- $tag$: null,
1704
- $text$: null
1705
- });
1706
- if (childNodeType === TEXT_NODE_ID) {
1707
- childVNode.$elm$ = node.nextSibling;
1708
- if (childVNode.$elm$ && childVNode.$elm$.nodeType === 3 /* TextNode */) {
1709
- childVNode.$text$ = childVNode.$elm$.textContent;
1710
- childRenderNodes.push(childVNode);
1711
- node.remove();
1712
- if (hostId === childVNode.$hostId$) {
1713
- if (!parentVNode.$children$) {
1714
- parentVNode.$children$ = [];
1715
- }
1716
- parentVNode.$children$[childVNode.$index$] = childVNode;
1717
- }
1718
- if (shadowRootNodes && childVNode.$depth$ === "0") {
1719
- shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
1720
- }
1721
- }
1722
- } else if (childNodeType === COMMENT_NODE_ID) {
1723
- childVNode.$elm$ = node.nextSibling;
1724
- if (childVNode.$elm$ && childVNode.$elm$.nodeType === 8 /* CommentNode */) {
1725
- childRenderNodes.push(childVNode);
1726
- node.remove();
1727
- }
1728
- } else if (childVNode.$hostId$ === hostId) {
1729
- if (childNodeType === SLOT_NODE_ID) {
1730
- childVNode.$tag$ = "slot";
1731
- const slotName = node["s-sn"] = childVNode.$name$ = childIdSplt[5] || "";
1732
- addSlot(
1733
- slotName,
1734
- childIdSplt[2],
1735
- childVNode,
1736
- node,
1737
- parentVNode,
1738
- childRenderNodes,
1739
- slotNodes,
1740
- shadowRootNodes,
1741
- slottedNodes
1742
- );
1743
- } else if (childNodeType === CONTENT_REF_ID) {
1744
- if (shadowRootNodes) {
1745
- node.remove();
1746
- } else {
1747
- hostElm["s-cr"] = node;
1748
- node["s-cn"] = true;
1749
- }
1750
- }
1751
- }
1752
- }
1753
- } else if (parentVNode && parentVNode.$tag$ === "style") {
1754
- const vnode = newVNode(null, node.textContent);
1755
- vnode.$elm$ = node;
1756
- vnode.$index$ = "0";
1757
- parentVNode.$children$ = [vnode];
1758
- }
1759
- return parentVNode;
1760
- };
1761
- var initializeDocumentHydrate = (node, orgLocNodes) => {
1762
- if (node.nodeType === 1 /* ElementNode */) {
1763
- const componentId = node[HYDRATE_ID] || node.getAttribute(HYDRATE_ID);
1764
- if (componentId) {
1765
- orgLocNodes.set(componentId, node);
1766
- }
1767
- let i2 = 0;
1768
- if (node.shadowRoot) {
1769
- for (; i2 < node.shadowRoot.childNodes.length; i2++) {
1770
- initializeDocumentHydrate(node.shadowRoot.childNodes[i2], orgLocNodes);
1771
- }
1772
- }
1773
- const nonShadowNodes = node.__childNodes || node.childNodes;
1774
- for (i2 = 0; i2 < nonShadowNodes.length; i2++) {
1775
- initializeDocumentHydrate(nonShadowNodes[i2], orgLocNodes);
1776
- }
1777
- } else if (node.nodeType === 8 /* CommentNode */) {
1778
- const childIdSplt = node.nodeValue.split(".");
1779
- if (childIdSplt[0] === ORG_LOCATION_ID) {
1780
- orgLocNodes.set(childIdSplt[1] + "." + childIdSplt[2], node);
1781
- node.nodeValue = "";
1782
- node["s-en"] = childIdSplt[3];
1783
- }
1784
- }
1785
- };
1786
- var createSimpleVNode = (vnode) => {
1787
- const defaultVNode = {
1788
- $flags$: 0,
1789
- $hostId$: null,
1790
- $nodeId$: null,
1791
- $depth$: null,
1792
- $index$: "0",
1793
- $elm$: null,
1794
- $attrs$: null,
1795
- $children$: null,
1796
- $key$: null,
1797
- $name$: null,
1798
- $tag$: null,
1799
- $text$: null
1800
- };
1801
- return { ...defaultVNode, ...vnode };
1802
- };
1803
- function addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNodes, slotNodes, shadowRootNodes, slottedNodes) {
1804
- node["s-sr"] = true;
1805
- const parentNodeId = (parentVNode == null ? void 0 : parentVNode.$elm$) ? parentVNode.$elm$["s-id"] || parentVNode.$elm$.getAttribute("s-id") : "";
1806
- if (shadowRootNodes) {
1807
- const slot = childVNode.$elm$ = doc.createElement(childVNode.$tag$);
1808
- if (childVNode.$name$) {
1809
- childVNode.$elm$.setAttribute("name", slotName);
1810
- }
1811
- if (parentNodeId && parentNodeId !== childVNode.$hostId$) {
1812
- parentVNode.$elm$.insertBefore(slot, parentVNode.$elm$.children[0]);
1813
- } else {
1814
- node.parentNode.insertBefore(childVNode.$elm$, node);
1815
- }
1816
- addSlottedNodes(slottedNodes, slotId, slotName, node, childVNode.$hostId$);
1817
- node.remove();
1818
- if (childVNode.$depth$ === "0") {
1819
- shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
1820
- }
1821
- } else {
1822
- const slot = childVNode.$elm$;
1823
- const shouldMove = parentNodeId && parentNodeId !== childVNode.$hostId$ && parentVNode.$elm$.shadowRoot;
1824
- addSlottedNodes(slottedNodes, slotId, slotName, node, shouldMove ? parentNodeId : childVNode.$hostId$);
1825
- if (shouldMove) {
1826
- parentVNode.$elm$.insertBefore(slot, parentVNode.$elm$.children[0]);
1827
- }
1828
- childRenderNodes.push(childVNode);
1829
- }
1830
- slotNodes.push(childVNode);
1831
- if (!parentVNode.$children$) {
1832
- parentVNode.$children$ = [];
1833
- }
1834
- parentVNode.$children$[childVNode.$index$] = childVNode;
1835
- }
1836
- var addSlottedNodes = (slottedNodes, slotNodeId, slotName, slotNode, hostId) => {
1837
- let slottedNode = slotNode.nextSibling;
1838
- slottedNodes[slotNodeId] = slottedNodes[slotNodeId] || [];
1839
- while (slottedNode && ((slottedNode["getAttribute"] && slottedNode.getAttribute("slot") || slottedNode["s-sn"]) === slotName || slotName === "" && !slottedNode["s-sn"] && (slottedNode.nodeType === 8 /* CommentNode */ && slottedNode.nodeValue.indexOf(".") !== 1 || slottedNode.nodeType === 3 /* TextNode */))) {
1840
- slottedNode["s-sn"] = slotName;
1841
- slottedNodes[slotNodeId].push({ slot: slotNode, node: slottedNode, hostId });
1842
- slottedNode = slottedNode.nextSibling;
1843
- }
1844
- };
1845
-
1846
- // src/runtime/mode.ts
1847
- var computeMode = (elm) => modeResolutionChain.map((h2) => h2(elm)).find((m) => !!m);
1848
- var setMode = (handler) => modeResolutionChain.push(handler);
1849
- var getMode = (ref) => getHostRef(ref).$modeName$;
1850
- var parsePropertyValue = (propValue, propType) => {
1851
- if (propValue != null && !isComplexType(propValue)) {
1852
- if (propType & 4 /* Boolean */) {
1853
- return propValue === "false" ? false : propValue === "" || !!propValue;
1854
- }
1855
- if (propType & 2 /* Number */) {
1856
- return parseFloat(propValue);
1857
- }
1858
- if (propType & 1 /* String */) {
1859
- return String(propValue);
1860
- }
1861
- return propValue;
1862
- }
1863
- return propValue;
1864
- };
1865
- var getElement = (ref) => getHostRef(ref).$hostElement$ ;
1866
-
1867
- // src/runtime/event-emitter.ts
1868
- var createEvent = (ref, name, flags) => {
1869
- const elm = getElement(ref);
1870
- return {
1871
- emit: (detail) => {
1872
- return emitEvent(elm, name, {
1873
- bubbles: !!(flags & 4 /* Bubbles */),
1874
- composed: !!(flags & 2 /* Composed */),
1875
- cancelable: !!(flags & 1 /* Cancellable */),
1876
- detail
1877
- });
1878
- }
1879
- };
1880
- };
1881
- var emitEvent = (elm, name, opts) => {
1882
- const ev = plt.ce(name, opts);
1883
- elm.dispatchEvent(ev);
1884
- return ev;
1885
- };
1886
- var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
1887
- var registerStyle = (scopeId2, cssText, allowCS) => {
1888
- let style = styles.get(scopeId2);
1889
- if (supportsConstructableStylesheets && allowCS) {
1890
- style = style || new CSSStyleSheet();
1891
- if (typeof style === "string") {
1892
- style = cssText;
1893
- } else {
1894
- style.replaceSync(cssText);
1895
- }
1896
- } else {
1897
- style = cssText;
1898
- }
1899
- styles.set(scopeId2, style);
1900
- };
1901
- var addStyle = (styleContainerNode, cmpMeta, mode) => {
1902
- var _a;
1903
- const scopeId2 = getScopeId(cmpMeta, mode);
1904
- const style = styles.get(scopeId2);
1905
- styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
1906
- if (style) {
1907
- if (typeof style === "string") {
1908
- styleContainerNode = styleContainerNode.head || styleContainerNode;
1909
- let appliedStyles = rootAppliedStyles.get(styleContainerNode);
1910
- let styleElm;
1911
- if (!appliedStyles) {
1912
- rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
1913
- }
1914
- if (!appliedStyles.has(scopeId2)) {
1915
- if (styleContainerNode.host && (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`))) {
1916
- styleElm.innerHTML = style;
1917
- } else {
1918
- styleElm = doc.createElement("style");
1919
- styleElm.innerHTML = style;
1920
- const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
1921
- if (nonce != null) {
1922
- styleElm.setAttribute("nonce", nonce);
1923
- }
1924
- if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
1925
- if (styleContainerNode.nodeName === "HEAD") {
1926
- const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
1927
- const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
1928
- styleContainerNode.insertBefore(styleElm, referenceNode2);
1929
- } else if ("host" in styleContainerNode) {
1930
- if (supportsConstructableStylesheets) {
1931
- const stylesheet = new CSSStyleSheet();
1932
- stylesheet.replaceSync(style);
1933
- styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
1934
- } else {
1935
- const existingStyleContainer = styleContainerNode.querySelector("style");
1936
- if (existingStyleContainer) {
1937
- existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
1938
- } else {
1939
- styleContainerNode.prepend(styleElm);
1940
- }
1941
- }
1942
- } else {
1943
- styleContainerNode.append(styleElm);
1367
+ if (isInitialLoad) {
1368
+ nodeToRelocate["s-ih"] = (_d = nodeToRelocate.hidden) != null ? _d : false;
1944
1369
  }
1370
+ nodeToRelocate.hidden = true;
1945
1371
  }
1946
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
1947
- styleContainerNode.insertBefore(styleElm, null);
1948
- }
1949
- }
1950
- if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
1951
- styleElm.innerHTML += SLOT_FB_CSS;
1952
- }
1953
- if (appliedStyles) {
1954
- appliedStyles.add(scopeId2);
1955
1372
  }
1956
1373
  }
1957
- } else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
1958
- styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
1959
1374
  }
1375
+ if (checkSlotFallbackVisibility) {
1376
+ updateFallbackSlotVisibility(rootVnode.$elm$);
1377
+ }
1378
+ plt.$flags$ &= ~1 /* isTmpDisconnected */;
1379
+ relocateNodes.length = 0;
1960
1380
  }
1961
- return scopeId2;
1962
- };
1963
- var attachStyles = (hostRef) => {
1964
- const cmpMeta = hostRef.$cmpMeta$;
1965
- const elm = hostRef.$hostElement$;
1966
- const flags = cmpMeta.$flags$;
1967
- const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
1968
- const scopeId2 = addStyle(
1969
- elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
1970
- cmpMeta,
1971
- hostRef.$modeName$
1972
- );
1973
- if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
1974
- elm["s-sc"] = scopeId2;
1975
- elm.classList.add(scopeId2 + "-h");
1976
- if (flags & 2 /* scopedCssEncapsulation */) {
1977
- elm.classList.add(scopeId2 + "-s");
1381
+ if (cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */) {
1382
+ for (const childNode of rootVnode.$elm$.childNodes) {
1383
+ if (childNode["s-hn"] !== hostTagName && !childNode["s-sh"]) {
1384
+ if (isInitialLoad && childNode["s-ih"] == null) {
1385
+ childNode["s-ih"] = (_e = childNode.hidden) != null ? _e : false;
1386
+ }
1387
+ childNode.hidden = true;
1388
+ }
1978
1389
  }
1979
1390
  }
1980
- endAttachStyles();
1391
+ contentRef = void 0;
1981
1392
  };
1982
- var getScopeId = (cmp, mode) => "sc-" + (mode && cmp.$flags$ & 32 /* hasMode */ ? cmp.$tagName$ + "-" + mode : cmp.$tagName$);
1983
1393
 
1984
1394
  // src/runtime/update-component.ts
1985
1395
  var attachToAncestor = (hostRef, ancestorComponent) => {
@@ -2207,62 +1617,16 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
2207
1617
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
2208
1618
  members.map(([memberName, [memberFlags]]) => {
2209
1619
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
2210
- if ((memberFlags & 2048 /* Getter */) === 0) {
2211
- Object.defineProperty(prototype, memberName, {
2212
- get() {
2213
- return getValue(this, memberName);
2214
- },
2215
- set(newValue) {
2216
- setValue(this, memberName, newValue, cmpMeta);
2217
- },
2218
- configurable: true,
2219
- enumerable: true
2220
- });
2221
- } else if (flags & 1 /* isElementConstructor */ && memberFlags & 2048 /* Getter */) {
2222
- {
2223
- Object.defineProperty(prototype, memberName, {
2224
- get() {
2225
- const ref = getHostRef(this);
2226
- const instance = ref ? ref.$lazyInstance$ : prototype;
2227
- if (!instance) return;
2228
- return instance[memberName];
2229
- },
2230
- configurable: true,
2231
- enumerable: true
2232
- });
2233
- }
2234
- if (memberFlags & 4096 /* Setter */) {
2235
- const origSetter = Object.getOwnPropertyDescriptor(prototype, memberName).set;
2236
- Object.defineProperty(prototype, memberName, {
2237
- set(newValue) {
2238
- const ref = getHostRef(this);
2239
- if (origSetter) {
2240
- const currentValue = ref.$hostElement$[memberName];
2241
- if (!ref.$instanceValues$.get(memberName) && currentValue) {
2242
- ref.$instanceValues$.set(memberName, currentValue);
2243
- }
2244
- origSetter.apply(this, [parsePropertyValue(newValue, cmpMeta.$members$[memberName][0])]);
2245
- setValue(this, memberName, ref.$hostElement$[memberName], cmpMeta);
2246
- return;
2247
- }
2248
- if (!ref) return;
2249
- const setterSetVal = () => {
2250
- const currentValue = ref.$lazyInstance$[memberName];
2251
- if (!ref.$instanceValues$.get(memberName) && currentValue) {
2252
- ref.$instanceValues$.set(memberName, currentValue);
2253
- }
2254
- ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, cmpMeta.$members$[memberName][0]);
2255
- setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
2256
- };
2257
- if (ref.$lazyInstance$) {
2258
- setterSetVal();
2259
- } else {
2260
- ref.$onReadyPromise$.then(() => setterSetVal());
2261
- }
2262
- }
2263
- });
2264
- }
2265
- }
1620
+ Object.defineProperty(prototype, memberName, {
1621
+ get() {
1622
+ return getValue(this, memberName);
1623
+ },
1624
+ set(newValue) {
1625
+ setValue(this, memberName, newValue, cmpMeta);
1626
+ },
1627
+ configurable: true,
1628
+ enumerable: true
1629
+ });
2266
1630
  } else if (flags & 1 /* isElementConstructor */ && memberFlags & 64 /* Method */) {
2267
1631
  Object.defineProperty(prototype, memberName, {
2268
1632
  value(...args) {
@@ -2302,10 +1666,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
2302
1666
  }
2303
1667
  return;
2304
1668
  }
2305
- const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
2306
- if (!propDesc.get || !!propDesc.set) {
2307
- this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
2308
- }
1669
+ this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
2309
1670
  });
2310
1671
  };
2311
1672
  Cstr.observedAttributes = Array.from(
@@ -2421,9 +1782,6 @@ var connectedCallback = (elm) => {
2421
1782
  if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
2422
1783
  const scopeId2 = addStyle(elm.shadowRoot, cmpMeta, elm.getAttribute("s-mode")) ;
2423
1784
  elm.classList.remove(scopeId2 + "-h", scopeId2 + "-s");
2424
- } else if (cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */) {
2425
- const scopeId2 = getScopeId(cmpMeta, elm.getAttribute("s-mode") );
2426
- elm["s-sc"] = scopeId2;
2427
1785
  }
2428
1786
  initializeClientHydrate(elm, cmpMeta.$tagName$, hostId, hostRef);
2429
1787
  }
@@ -2474,13 +1832,9 @@ var setContentReference = (elm) => {
2474
1832
  insertBefore(elm, contentRefElm, elm.firstChild);
2475
1833
  };
2476
1834
  var disconnectInstance = (instance) => {
2477
- const callbackResult = [];
2478
1835
  {
2479
- callbackResult.push(safeCall(instance, "disconnectedCallback"));
1836
+ safeCall(instance, "disconnectedCallback");
2480
1837
  }
2481
- Promise.all(
2482
- callbackResult.filter((item) => typeof item === "object").filter((promise) => "then" in promise && typeof promise.then === "function")
2483
- ).finally(() => setTimeout(() => hostRefCleanup()));
2484
1838
  };
2485
1839
  var disconnectedCallback = async (elm) => {
2486
1840
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
@@ -2495,16 +1849,289 @@ var disconnectedCallback = async (elm) => {
2495
1849
  disconnectInstance(hostRef.$lazyInstance$);
2496
1850
  } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
2497
1851
  hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
2498
- } else {
2499
- setTimeout(() => hostRefCleanup());
2500
1852
  }
2501
1853
  }
2502
- if (rootAppliedStyles.has(elm)) {
2503
- rootAppliedStyles.delete(elm);
1854
+ };
1855
+ var patchPseudoShadowDom = (hostElementPrototype, descriptorPrototype) => {
1856
+ patchCloneNode(hostElementPrototype);
1857
+ patchSlotAppendChild(hostElementPrototype);
1858
+ patchSlotAppend(hostElementPrototype);
1859
+ patchSlotPrepend(hostElementPrototype);
1860
+ patchSlotInsertAdjacentElement(hostElementPrototype);
1861
+ patchSlotInsertAdjacentHTML(hostElementPrototype);
1862
+ patchSlotInsertAdjacentText(hostElementPrototype);
1863
+ patchTextContent(hostElementPrototype);
1864
+ patchChildSlotNodes(hostElementPrototype, descriptorPrototype);
1865
+ patchSlotRemoveChild(hostElementPrototype);
1866
+ };
1867
+ var patchCloneNode = (HostElementPrototype) => {
1868
+ const orgCloneNode = HostElementPrototype.cloneNode;
1869
+ HostElementPrototype.cloneNode = function(deep) {
1870
+ const srcNode = this;
1871
+ const isShadowDom = srcNode.shadowRoot && supportsShadow ;
1872
+ const clonedNode = orgCloneNode.call(srcNode, isShadowDom ? deep : false);
1873
+ if (!isShadowDom && deep) {
1874
+ let i2 = 0;
1875
+ let slotted, nonStencilNode;
1876
+ const stencilPrivates = [
1877
+ "s-id",
1878
+ "s-cr",
1879
+ "s-lr",
1880
+ "s-rc",
1881
+ "s-sc",
1882
+ "s-p",
1883
+ "s-cn",
1884
+ "s-sr",
1885
+ "s-sn",
1886
+ "s-hn",
1887
+ "s-ol",
1888
+ "s-nr",
1889
+ "s-si",
1890
+ "s-rf",
1891
+ "s-scs"
1892
+ ];
1893
+ for (; i2 < srcNode.childNodes.length; i2++) {
1894
+ slotted = srcNode.childNodes[i2]["s-nr"];
1895
+ nonStencilNode = stencilPrivates.every((privateField) => !srcNode.childNodes[i2][privateField]);
1896
+ if (slotted) {
1897
+ if (clonedNode.__appendChild) {
1898
+ clonedNode.__appendChild(slotted.cloneNode(true));
1899
+ } else {
1900
+ clonedNode.appendChild(slotted.cloneNode(true));
1901
+ }
1902
+ }
1903
+ if (nonStencilNode) {
1904
+ clonedNode.appendChild(srcNode.childNodes[i2].cloneNode(true));
1905
+ }
1906
+ }
1907
+ }
1908
+ return clonedNode;
1909
+ };
1910
+ };
1911
+ var patchSlotAppendChild = (HostElementPrototype) => {
1912
+ HostElementPrototype.__appendChild = HostElementPrototype.appendChild;
1913
+ HostElementPrototype.appendChild = function(newChild) {
1914
+ const slotName = newChild["s-sn"] = getSlotName(newChild);
1915
+ const slotNode = getHostSlotNode(this.childNodes, slotName, this.tagName);
1916
+ if (slotNode) {
1917
+ const slotChildNodes = getHostSlotChildNodes(slotNode, slotName);
1918
+ const appendAfter = slotChildNodes[slotChildNodes.length - 1];
1919
+ const insertedNode = insertBefore(appendAfter.parentNode, newChild, appendAfter.nextSibling);
1920
+ updateFallbackSlotVisibility(this);
1921
+ return insertedNode;
1922
+ }
1923
+ return this.__appendChild(newChild);
1924
+ };
1925
+ };
1926
+ var patchSlotRemoveChild = (ElementPrototype) => {
1927
+ ElementPrototype.__removeChild = ElementPrototype.removeChild;
1928
+ ElementPrototype.removeChild = function(toRemove) {
1929
+ if (toRemove && typeof toRemove["s-sn"] !== "undefined") {
1930
+ const slotNode = getHostSlotNode(this.childNodes, toRemove["s-sn"], this.tagName);
1931
+ if (slotNode) {
1932
+ const slotChildNodes = getHostSlotChildNodes(slotNode, toRemove["s-sn"]);
1933
+ const existingNode = slotChildNodes.find((n) => n === toRemove);
1934
+ if (existingNode) {
1935
+ existingNode.remove();
1936
+ updateFallbackSlotVisibility(this);
1937
+ return;
1938
+ }
1939
+ }
1940
+ }
1941
+ return this.__removeChild(toRemove);
1942
+ };
1943
+ };
1944
+ var patchSlotPrepend = (HostElementPrototype) => {
1945
+ const originalPrepend = HostElementPrototype.prepend;
1946
+ HostElementPrototype.prepend = function(...newChildren) {
1947
+ newChildren.forEach((newChild) => {
1948
+ if (typeof newChild === "string") {
1949
+ newChild = this.ownerDocument.createTextNode(newChild);
1950
+ }
1951
+ const slotName = newChild["s-sn"] = getSlotName(newChild);
1952
+ const slotNode = getHostSlotNode(this.childNodes, slotName, this.tagName);
1953
+ if (slotNode) {
1954
+ const slotPlaceholder = document.createTextNode("");
1955
+ slotPlaceholder["s-nr"] = newChild;
1956
+ slotNode["s-cr"].parentNode.__appendChild(slotPlaceholder);
1957
+ newChild["s-ol"] = slotPlaceholder;
1958
+ const slotChildNodes = getHostSlotChildNodes(slotNode, slotName);
1959
+ const appendAfter = slotChildNodes[0];
1960
+ return insertBefore(appendAfter.parentNode, newChild, appendAfter.nextSibling);
1961
+ }
1962
+ if (newChild.nodeType === 1 && !!newChild.getAttribute("slot")) {
1963
+ newChild.hidden = true;
1964
+ }
1965
+ return originalPrepend.call(this, newChild);
1966
+ });
1967
+ };
1968
+ };
1969
+ var patchSlotAppend = (HostElementPrototype) => {
1970
+ HostElementPrototype.append = function(...newChildren) {
1971
+ newChildren.forEach((newChild) => {
1972
+ if (typeof newChild === "string") {
1973
+ newChild = this.ownerDocument.createTextNode(newChild);
1974
+ }
1975
+ this.appendChild(newChild);
1976
+ });
1977
+ };
1978
+ };
1979
+ var patchSlotInsertAdjacentHTML = (HostElementPrototype) => {
1980
+ const originalInsertAdjacentHtml = HostElementPrototype.insertAdjacentHTML;
1981
+ HostElementPrototype.insertAdjacentHTML = function(position, text) {
1982
+ if (position !== "afterbegin" && position !== "beforeend") {
1983
+ return originalInsertAdjacentHtml.call(this, position, text);
1984
+ }
1985
+ const container = this.ownerDocument.createElement("_");
1986
+ let node;
1987
+ container.innerHTML = text;
1988
+ if (position === "afterbegin") {
1989
+ while (node = container.firstChild) {
1990
+ this.prepend(node);
1991
+ }
1992
+ } else if (position === "beforeend") {
1993
+ while (node = container.firstChild) {
1994
+ this.append(node);
1995
+ }
1996
+ }
1997
+ };
1998
+ };
1999
+ var patchSlotInsertAdjacentText = (HostElementPrototype) => {
2000
+ HostElementPrototype.insertAdjacentText = function(position, text) {
2001
+ this.insertAdjacentHTML(position, text);
2002
+ };
2003
+ };
2004
+ var patchSlotInsertAdjacentElement = (HostElementPrototype) => {
2005
+ const originalInsertAdjacentElement = HostElementPrototype.insertAdjacentElement;
2006
+ HostElementPrototype.insertAdjacentElement = function(position, element) {
2007
+ if (position !== "afterbegin" && position !== "beforeend") {
2008
+ return originalInsertAdjacentElement.call(this, position, element);
2009
+ }
2010
+ if (position === "afterbegin") {
2011
+ this.prepend(element);
2012
+ return element;
2013
+ } else if (position === "beforeend") {
2014
+ this.append(element);
2015
+ return element;
2016
+ }
2017
+ return element;
2018
+ };
2019
+ };
2020
+ var patchTextContent = (hostElementPrototype) => {
2021
+ const descriptor = Object.getOwnPropertyDescriptor(Node.prototype, "textContent");
2022
+ Object.defineProperty(hostElementPrototype, "__textContent", descriptor);
2023
+ {
2024
+ Object.defineProperty(hostElementPrototype, "textContent", {
2025
+ // To mimic shadow root behavior, we need to return the text content of all
2026
+ // nodes in a slot reference node
2027
+ get() {
2028
+ const slotRefNodes = getAllChildSlotNodes(this.childNodes);
2029
+ const textContent = slotRefNodes.map((node) => {
2030
+ var _a, _b;
2031
+ const text = [];
2032
+ let slotContent = node.nextSibling;
2033
+ while (slotContent && slotContent["s-sn"] === node["s-sn"]) {
2034
+ if (slotContent.nodeType === 3 /* TEXT_NODE */ || slotContent.nodeType === 1 /* ELEMENT_NODE */) {
2035
+ text.push((_b = (_a = slotContent.textContent) == null ? void 0 : _a.trim()) != null ? _b : "");
2036
+ }
2037
+ slotContent = slotContent.nextSibling;
2038
+ }
2039
+ return text.filter((ref) => ref !== "").join(" ");
2040
+ }).filter((text) => text !== "").join(" ");
2041
+ return " " + textContent + " ";
2042
+ },
2043
+ // To mimic shadow root behavior, we need to overwrite all nodes in a slot
2044
+ // reference node. If a default slot reference node exists, the text content will be
2045
+ // placed there. Otherwise, the new text node will be hidden
2046
+ set(value) {
2047
+ const slotRefNodes = getAllChildSlotNodes(this.childNodes);
2048
+ slotRefNodes.forEach((node) => {
2049
+ let slotContent = node.nextSibling;
2050
+ while (slotContent && slotContent["s-sn"] === node["s-sn"]) {
2051
+ const tmp = slotContent;
2052
+ slotContent = slotContent.nextSibling;
2053
+ tmp.remove();
2054
+ }
2055
+ if (node["s-sn"] === "") {
2056
+ const textNode = this.ownerDocument.createTextNode(value);
2057
+ textNode["s-sn"] = "";
2058
+ insertBefore(node.parentElement, textNode, node.nextSibling);
2059
+ } else {
2060
+ node.remove();
2061
+ }
2062
+ });
2063
+ }
2064
+ });
2065
+ }
2066
+ };
2067
+ var patchChildSlotNodes = (elm, cmpMeta) => {
2068
+ class FakeNodeList extends Array {
2069
+ item(n) {
2070
+ return this[n];
2071
+ }
2072
+ }
2073
+ if (cmpMeta.$flags$ & 8 /* needsShadowDomShim */) {
2074
+ const childNodesFn = elm.__lookupGetter__("childNodes");
2075
+ Object.defineProperty(elm, "children", {
2076
+ get() {
2077
+ return this.childNodes.map((n) => n.nodeType === 1);
2078
+ }
2079
+ });
2080
+ Object.defineProperty(elm, "childElementCount", {
2081
+ get() {
2082
+ return elm.children.length;
2083
+ }
2084
+ });
2085
+ Object.defineProperty(elm, "childNodes", {
2086
+ get() {
2087
+ const childNodes = childNodesFn.call(this);
2088
+ if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0 && getHostRef(this).$flags$ & 2 /* hasRendered */) {
2089
+ const result = new FakeNodeList();
2090
+ for (let i2 = 0; i2 < childNodes.length; i2++) {
2091
+ const slot = childNodes[i2]["s-nr"];
2092
+ if (slot) {
2093
+ result.push(slot);
2094
+ }
2095
+ }
2096
+ return result;
2097
+ }
2098
+ return FakeNodeList.from(childNodes);
2099
+ }
2100
+ });
2101
+ }
2102
+ };
2103
+ var getAllChildSlotNodes = (childNodes) => {
2104
+ const slotRefNodes = [];
2105
+ for (const childNode of Array.from(childNodes)) {
2106
+ if (childNode["s-sr"]) {
2107
+ slotRefNodes.push(childNode);
2108
+ }
2109
+ slotRefNodes.push(...getAllChildSlotNodes(childNode.childNodes));
2110
+ }
2111
+ return slotRefNodes;
2112
+ };
2113
+ var getSlotName = (node) => node["s-sn"] || node.nodeType === 1 && node.getAttribute("slot") || "";
2114
+ var getHostSlotNode = (childNodes, slotName, hostName) => {
2115
+ let i2 = 0;
2116
+ let childNode;
2117
+ for (; i2 < childNodes.length; i2++) {
2118
+ childNode = childNodes[i2];
2119
+ if (childNode["s-sr"] && childNode["s-sn"] === slotName && childNode["s-hn"] === hostName) {
2120
+ return childNode;
2121
+ }
2122
+ childNode = getHostSlotNode(childNode.childNodes, slotName, hostName);
2123
+ if (childNode) {
2124
+ return childNode;
2125
+ }
2504
2126
  }
2505
- if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
2506
- rootAppliedStyles.delete(elm.shadowRoot);
2127
+ return null;
2128
+ };
2129
+ var getHostSlotChildNodes = (n, slotName) => {
2130
+ const childNodes = [n];
2131
+ while ((n = n.nextSibling) && n["s-sn"] === slotName) {
2132
+ childNodes.push(n);
2507
2133
  }
2134
+ return childNodes;
2508
2135
  };
2509
2136
 
2510
2137
  // src/runtime/bootstrap-lazy.ts
@@ -2602,7 +2229,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
2602
2229
  };
2603
2230
  {
2604
2231
  if (cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */) {
2605
- patchPseudoShadowDom(HostElement.prototype);
2232
+ patchPseudoShadowDom(HostElement.prototype, cmpMeta);
2606
2233
  }
2607
2234
  }
2608
2235
  cmpMeta.$lazyBundleId$ = lazyBundle[0];