@ionic/core 8.4.2-dev.11736265112.120bf7af → 8.4.2-dev.11736277041.14f34ba1

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 (440) hide show
  1. package/components/focus-visible.js +4 -34
  2. package/dist/cjs/{app-globals-16893c1e.js → app-globals-21afee77.js} +1 -1
  3. package/dist/cjs/{button-active-ec3d9ca2.js → button-active-3f2f60b4.js} +1 -1
  4. package/dist/cjs/{focus-visible-7a0ce04f.js → focus-visible-8657bbbf.js} +4 -34
  5. package/dist/cjs/{hardware-back-button-5a19da86.js → hardware-back-button-9e8a2c4f.js} +2 -2
  6. package/dist/cjs/{index-55b6245a.js → index-73f75efb.js} +756 -1129
  7. package/dist/cjs/{index-2b28acc8.js → index-8e789962.js} +2 -2
  8. package/dist/cjs/{index-29ad8b24.js → index-f05acd21.js} +4 -4
  9. package/dist/cjs/index.cjs.js +8 -8
  10. package/dist/cjs/ion-accordion_2.cjs.entry.js +2 -2
  11. package/dist/cjs/ion-action-sheet.cjs.entry.js +5 -5
  12. package/dist/cjs/ion-alert.cjs.entry.js +5 -5
  13. package/dist/cjs/ion-app_8.cjs.entry.js +7 -7
  14. package/dist/cjs/ion-avatar_3.cjs.entry.js +2 -2
  15. package/dist/cjs/ion-back-button.cjs.entry.js +2 -2
  16. package/dist/cjs/ion-backdrop.cjs.entry.js +2 -2
  17. package/dist/cjs/ion-breadcrumb_2.cjs.entry.js +2 -2
  18. package/dist/cjs/ion-button_2.cjs.entry.js +2 -2
  19. package/dist/cjs/ion-card_5.cjs.entry.js +2 -2
  20. package/dist/cjs/ion-checkbox.cjs.entry.js +2 -2
  21. package/dist/cjs/ion-chip.cjs.entry.js +2 -2
  22. package/dist/cjs/ion-col_3.cjs.entry.js +2 -2
  23. package/dist/cjs/ion-datetime-button.cjs.entry.js +2 -2
  24. package/dist/cjs/ion-datetime_3.cjs.entry.js +5 -5
  25. package/dist/cjs/ion-fab_3.cjs.entry.js +2 -2
  26. package/dist/cjs/ion-img.cjs.entry.js +2 -2
  27. package/dist/cjs/ion-infinite-scroll_2.cjs.entry.js +2 -2
  28. package/dist/cjs/ion-input-password-toggle.cjs.entry.js +2 -2
  29. package/dist/cjs/ion-input.cjs.entry.js +2 -2
  30. package/dist/cjs/ion-item-option_3.cjs.entry.js +2 -2
  31. package/dist/cjs/ion-item_8.cjs.entry.js +2 -2
  32. package/dist/cjs/ion-loading.cjs.entry.js +4 -4
  33. package/dist/cjs/ion-menu_3.cjs.entry.js +5 -5
  34. package/dist/cjs/ion-modal.cjs.entry.js +5 -5
  35. package/dist/cjs/ion-nav_2.cjs.entry.js +3 -3
  36. package/dist/cjs/ion-picker-column-option.cjs.entry.js +2 -2
  37. package/dist/cjs/ion-picker-column.cjs.entry.js +2 -2
  38. package/dist/cjs/ion-picker.cjs.entry.js +1 -1
  39. package/dist/cjs/ion-popover.cjs.entry.js +5 -5
  40. package/dist/cjs/ion-progress-bar.cjs.entry.js +2 -2
  41. package/dist/cjs/ion-radio_2.cjs.entry.js +2 -2
  42. package/dist/cjs/ion-range.cjs.entry.js +2 -2
  43. package/dist/cjs/ion-refresher_2.cjs.entry.js +2 -2
  44. package/dist/cjs/ion-reorder_2.cjs.entry.js +2 -2
  45. package/dist/cjs/ion-ripple-effect.cjs.entry.js +2 -2
  46. package/dist/cjs/ion-route_4.cjs.entry.js +2 -2
  47. package/dist/cjs/ion-searchbar.cjs.entry.js +2 -2
  48. package/dist/cjs/ion-segment-content.cjs.entry.js +1 -1
  49. package/dist/cjs/ion-segment-view.cjs.entry.js +1 -1
  50. package/dist/cjs/ion-segment_2.cjs.entry.js +2 -2
  51. package/dist/cjs/ion-select-modal.cjs.entry.js +4 -4
  52. package/dist/cjs/ion-select_3.cjs.entry.js +4 -4
  53. package/dist/cjs/ion-spinner.cjs.entry.js +2 -2
  54. package/dist/cjs/ion-split-pane.cjs.entry.js +2 -2
  55. package/dist/cjs/ion-tab-bar_2.cjs.entry.js +2 -2
  56. package/dist/cjs/ion-tab_2.cjs.entry.js +1 -1
  57. package/dist/cjs/ion-text.cjs.entry.js +2 -2
  58. package/dist/cjs/ion-textarea.cjs.entry.js +2 -2
  59. package/dist/cjs/ion-toast.cjs.entry.js +4 -4
  60. package/dist/cjs/ion-toggle.cjs.entry.js +2 -2
  61. package/dist/cjs/{ionic-global-aa46b97c.js → ionic-global-d9a8bb5b.js} +1 -1
  62. package/dist/cjs/ionic.cjs.js +4 -4
  63. package/dist/cjs/{ios.transition-9820d3dc.js → ios.transition-cf40433b.js} +3 -3
  64. package/dist/cjs/loader.cjs.js +3 -3
  65. package/dist/cjs/{md.transition-a35e0839.js → md.transition-ededf99f.js} +3 -3
  66. package/dist/cjs/{overlays-43ae7e1d.js → overlays-aa669eb8.js} +2 -2
  67. package/dist/cjs/{status-tap-f98e43a0.js → status-tap-37681226.js} +1 -1
  68. package/dist/collection/collection-manifest.json +2 -2
  69. package/dist/collection/components/accordion/accordion.js +0 -10
  70. package/dist/collection/components/accordion-group/accordion-group.js +0 -12
  71. package/dist/collection/components/action-sheet/action-sheet.js +4 -36
  72. package/dist/collection/components/alert/alert.js +4 -40
  73. package/dist/collection/components/back-button/back-button.js +1 -15
  74. package/dist/collection/components/backdrop/backdrop.js +0 -6
  75. package/dist/collection/components/badge/badge.js +0 -2
  76. package/dist/collection/components/breadcrumb/breadcrumb.js +1 -27
  77. package/dist/collection/components/breadcrumbs/breadcrumbs.js +0 -8
  78. package/dist/collection/components/button/button.js +1 -33
  79. package/dist/collection/components/buttons/buttons.js +0 -2
  80. package/dist/collection/components/card/card.js +1 -21
  81. package/dist/collection/components/card-header/card-header.js +0 -4
  82. package/dist/collection/components/card-subtitle/card-subtitle.js +0 -2
  83. package/dist/collection/components/card-title/card-title.js +0 -2
  84. package/dist/collection/components/checkbox/checkbox.js +0 -18
  85. package/dist/collection/components/chip/chip.js +0 -6
  86. package/dist/collection/components/col/col.js +0 -48
  87. package/dist/collection/components/content/content.js +0 -14
  88. package/dist/collection/components/datetime/datetime.js +4 -64
  89. package/dist/collection/components/datetime-button/datetime-button.js +0 -6
  90. package/dist/collection/components/fab/fab.js +0 -8
  91. package/dist/collection/components/fab-button/fab-button.js +1 -29
  92. package/dist/collection/components/fab-list/fab-list.js +0 -4
  93. package/dist/collection/components/footer/footer.js +0 -4
  94. package/dist/collection/components/grid/grid.js +0 -2
  95. package/dist/collection/components/header/header.js +0 -4
  96. package/dist/collection/components/img/img.js +0 -4
  97. package/dist/collection/components/infinite-scroll/infinite-scroll.js +0 -6
  98. package/dist/collection/components/infinite-scroll-content/infinite-scroll-content.js +0 -4
  99. package/dist/collection/components/input/input.js +1 -69
  100. package/dist/collection/components/input-password-toggle/input-password-toggle.js +0 -8
  101. package/dist/collection/components/item/item.js +1 -27
  102. package/dist/collection/components/item-divider/item-divider.js +0 -4
  103. package/dist/collection/components/item-option/item-option.js +0 -16
  104. package/dist/collection/components/item-options/item-options.js +0 -2
  105. package/dist/collection/components/item-sliding/item-sliding.js +0 -2
  106. package/dist/collection/components/label/label.js +0 -4
  107. package/dist/collection/components/list/list.js +0 -4
  108. package/dist/collection/components/list-header/list-header.js +0 -4
  109. package/dist/collection/components/loading/loading.js +4 -38
  110. package/dist/collection/components/menu/menu.js +0 -14
  111. package/dist/collection/components/menu-button/menu-button.js +0 -10
  112. package/dist/collection/components/menu-toggle/menu-toggle.js +0 -4
  113. package/dist/collection/components/modal/modal.js +7 -55
  114. package/dist/collection/components/nav/nav.js +3 -15
  115. package/dist/collection/components/nav-link/nav-link.js +2 -10
  116. package/dist/collection/components/note/note.js +0 -2
  117. package/dist/collection/components/picker-column/picker-column.js +0 -8
  118. package/dist/collection/components/picker-column-option/picker-column-option.js +0 -6
  119. package/dist/collection/components/picker-legacy/picker.js +4 -36
  120. package/dist/collection/components/picker-legacy-column/picker-column.js +1 -3
  121. package/dist/collection/components/popover/popover.js +5 -59
  122. package/dist/collection/components/progress-bar/progress-bar.js +0 -10
  123. package/dist/collection/components/radio/radio.js +0 -14
  124. package/dist/collection/components/radio-group/radio-group.js +0 -8
  125. package/dist/collection/components/range/range.js +0 -32
  126. package/dist/collection/components/refresher/refresher.js +0 -12
  127. package/dist/collection/components/refresher-content/refresher-content.js +0 -8
  128. package/dist/collection/components/reorder-group/reorder-group.js +0 -2
  129. package/dist/collection/components/ripple-effect/ripple-effect.js +0 -2
  130. package/dist/collection/components/route/route.js +3 -13
  131. package/dist/collection/components/route-redirect/route-redirect.js +0 -4
  132. package/dist/collection/components/router/router.js +0 -4
  133. package/dist/collection/components/router-link/router-link.js +1 -13
  134. package/dist/collection/components/router-outlet/router-outlet.js +3 -13
  135. package/dist/collection/components/searchbar/searchbar.js +0 -44
  136. package/dist/collection/components/segment/segment.js +0 -12
  137. package/dist/collection/components/segment-button/segment-button.js +0 -10
  138. package/dist/collection/components/segment-view/segment-view.js +0 -2
  139. package/dist/collection/components/select/select.js +0 -38
  140. package/dist/collection/components/select-modal/select-modal.js +0 -6
  141. package/dist/collection/components/select-option/select-option.js +0 -4
  142. package/dist/collection/components/select-popover/select-popover.js +0 -10
  143. package/dist/collection/components/skeleton-text/skeleton-text.js +0 -2
  144. package/dist/collection/components/spinner/spinner.js +0 -8
  145. package/dist/collection/components/split-pane/split-pane.js +0 -6
  146. package/dist/collection/components/tab/tab.js +1 -9
  147. package/dist/collection/components/tab-bar/tab-bar.js +0 -6
  148. package/dist/collection/components/tab-button/tab-button.js +0 -16
  149. package/dist/collection/components/tabs/tabs.js +0 -2
  150. package/dist/collection/components/text/text.js +0 -2
  151. package/dist/collection/components/textarea/textarea.js +1 -57
  152. package/dist/collection/components/title/title.js +0 -4
  153. package/dist/collection/components/toast/toast.js +5 -49
  154. package/dist/collection/components/toggle/toggle.js +0 -18
  155. package/dist/collection/components/toolbar/toolbar.js +0 -2
  156. package/dist/collection/utils/focus-visible.js +4 -34
  157. package/dist/docs.d.ts +0 -8
  158. package/dist/docs.json +572 -1710
  159. package/dist/esm/{app-globals-32740a0d.js → app-globals-5dbb61a5.js} +1 -1
  160. package/dist/esm/{button-active-0e590bc4.js → button-active-f6503382.js} +1 -1
  161. package/dist/esm/{focus-visible-dd40d69f.js → focus-visible-ea5a37bc.js} +4 -34
  162. package/dist/esm/{hardware-back-button-18d38325.js → hardware-back-button-06ef3c3e.js} +2 -2
  163. package/dist/esm/{index-7bdf1ee6.js → index-24b48b06.js} +2 -2
  164. package/dist/esm/{index-0f61352c.js → index-28849c61.js} +756 -1129
  165. package/dist/esm/{index-4f0570f4.js → index-3ad7f18b.js} +4 -4
  166. package/dist/esm/index.js +8 -8
  167. package/dist/esm/ion-accordion_2.entry.js +2 -2
  168. package/dist/esm/ion-action-sheet.entry.js +5 -5
  169. package/dist/esm/ion-alert.entry.js +5 -5
  170. package/dist/esm/ion-app_8.entry.js +7 -7
  171. package/dist/esm/ion-avatar_3.entry.js +2 -2
  172. package/dist/esm/ion-back-button.entry.js +2 -2
  173. package/dist/esm/ion-backdrop.entry.js +2 -2
  174. package/dist/esm/ion-breadcrumb_2.entry.js +2 -2
  175. package/dist/esm/ion-button_2.entry.js +2 -2
  176. package/dist/esm/ion-card_5.entry.js +2 -2
  177. package/dist/esm/ion-checkbox.entry.js +2 -2
  178. package/dist/esm/ion-chip.entry.js +2 -2
  179. package/dist/esm/ion-col_3.entry.js +2 -2
  180. package/dist/esm/ion-datetime-button.entry.js +2 -2
  181. package/dist/esm/ion-datetime_3.entry.js +5 -5
  182. package/dist/esm/ion-fab_3.entry.js +2 -2
  183. package/dist/esm/ion-img.entry.js +2 -2
  184. package/dist/esm/ion-infinite-scroll_2.entry.js +2 -2
  185. package/dist/esm/ion-input-password-toggle.entry.js +2 -2
  186. package/dist/esm/ion-input.entry.js +2 -2
  187. package/dist/esm/ion-item-option_3.entry.js +2 -2
  188. package/dist/esm/ion-item_8.entry.js +2 -2
  189. package/dist/esm/ion-loading.entry.js +4 -4
  190. package/dist/esm/ion-menu_3.entry.js +5 -5
  191. package/dist/esm/ion-modal.entry.js +5 -5
  192. package/dist/esm/ion-nav_2.entry.js +3 -3
  193. package/dist/esm/ion-picker-column-option.entry.js +2 -2
  194. package/dist/esm/ion-picker-column.entry.js +2 -2
  195. package/dist/esm/ion-picker.entry.js +1 -1
  196. package/dist/esm/ion-popover.entry.js +5 -5
  197. package/dist/esm/ion-progress-bar.entry.js +2 -2
  198. package/dist/esm/ion-radio_2.entry.js +2 -2
  199. package/dist/esm/ion-range.entry.js +2 -2
  200. package/dist/esm/ion-refresher_2.entry.js +2 -2
  201. package/dist/esm/ion-reorder_2.entry.js +2 -2
  202. package/dist/esm/ion-ripple-effect.entry.js +2 -2
  203. package/dist/esm/ion-route_4.entry.js +2 -2
  204. package/dist/esm/ion-searchbar.entry.js +2 -2
  205. package/dist/esm/ion-segment-content.entry.js +1 -1
  206. package/dist/esm/ion-segment-view.entry.js +1 -1
  207. package/dist/esm/ion-segment_2.entry.js +2 -2
  208. package/dist/esm/ion-select-modal.entry.js +4 -4
  209. package/dist/esm/ion-select_3.entry.js +4 -4
  210. package/dist/esm/ion-spinner.entry.js +2 -2
  211. package/dist/esm/ion-split-pane.entry.js +2 -2
  212. package/dist/esm/ion-tab-bar_2.entry.js +2 -2
  213. package/dist/esm/ion-tab_2.entry.js +1 -1
  214. package/dist/esm/ion-text.entry.js +2 -2
  215. package/dist/esm/ion-textarea.entry.js +2 -2
  216. package/dist/esm/ion-toast.entry.js +4 -4
  217. package/dist/esm/ion-toggle.entry.js +2 -2
  218. package/dist/esm/{ionic-global-35cabcff.js → ionic-global-c81d82ab.js} +1 -1
  219. package/dist/esm/ionic.js +5 -5
  220. package/dist/esm/{ios.transition-72ec83a8.js → ios.transition-4ee1a3af.js} +3 -3
  221. package/dist/esm/loader.js +4 -4
  222. package/dist/esm/{md.transition-1f612b9f.js → md.transition-5106a0d2.js} +3 -3
  223. package/dist/esm/{overlays-cba25d39.js → overlays-e7b9d6d9.js} +2 -2
  224. package/dist/esm/{status-tap-a7026a46.js → status-tap-f472b09f.js} +1 -1
  225. package/dist/esm-es5/app-globals-5dbb61a5.js +4 -0
  226. package/dist/esm-es5/{button-active-0e590bc4.js → button-active-f6503382.js} +1 -1
  227. package/dist/esm-es5/focus-visible-ea5a37bc.js +4 -0
  228. package/dist/esm-es5/{hardware-back-button-18d38325.js → hardware-back-button-06ef3c3e.js} +1 -1
  229. package/dist/esm-es5/{index-7bdf1ee6.js → index-24b48b06.js} +1 -1
  230. package/dist/esm-es5/index-28849c61.js +5 -0
  231. package/dist/esm-es5/{index-4f0570f4.js → index-3ad7f18b.js} +1 -1
  232. package/dist/esm-es5/index.js +1 -1
  233. package/dist/esm-es5/ion-accordion_2.entry.js +1 -1
  234. package/dist/esm-es5/ion-action-sheet.entry.js +1 -1
  235. package/dist/esm-es5/ion-alert.entry.js +1 -1
  236. package/dist/esm-es5/ion-app_8.entry.js +1 -1
  237. package/dist/esm-es5/ion-avatar_3.entry.js +1 -1
  238. package/dist/esm-es5/ion-back-button.entry.js +1 -1
  239. package/dist/esm-es5/ion-backdrop.entry.js +1 -1
  240. package/dist/esm-es5/ion-breadcrumb_2.entry.js +1 -1
  241. package/dist/esm-es5/ion-button_2.entry.js +1 -1
  242. package/dist/esm-es5/ion-card_5.entry.js +1 -1
  243. package/dist/esm-es5/ion-checkbox.entry.js +1 -1
  244. package/dist/esm-es5/ion-chip.entry.js +1 -1
  245. package/dist/esm-es5/ion-col_3.entry.js +1 -1
  246. package/dist/esm-es5/ion-datetime-button.entry.js +1 -1
  247. package/dist/esm-es5/ion-datetime_3.entry.js +1 -1
  248. package/dist/esm-es5/ion-fab_3.entry.js +1 -1
  249. package/dist/esm-es5/ion-img.entry.js +1 -1
  250. package/dist/esm-es5/ion-infinite-scroll_2.entry.js +1 -1
  251. package/dist/esm-es5/ion-input-password-toggle.entry.js +1 -1
  252. package/dist/esm-es5/ion-input.entry.js +1 -1
  253. package/dist/esm-es5/ion-item-option_3.entry.js +1 -1
  254. package/dist/esm-es5/ion-item_8.entry.js +1 -1
  255. package/dist/esm-es5/ion-loading.entry.js +1 -1
  256. package/dist/esm-es5/ion-menu_3.entry.js +1 -1
  257. package/dist/esm-es5/ion-modal.entry.js +1 -1
  258. package/dist/esm-es5/ion-nav_2.entry.js +1 -1
  259. package/dist/esm-es5/ion-picker-column-option.entry.js +1 -1
  260. package/dist/esm-es5/ion-picker-column.entry.js +1 -1
  261. package/dist/esm-es5/ion-picker.entry.js +1 -1
  262. package/dist/esm-es5/ion-popover.entry.js +1 -1
  263. package/dist/esm-es5/ion-progress-bar.entry.js +1 -1
  264. package/dist/esm-es5/ion-radio_2.entry.js +1 -1
  265. package/dist/esm-es5/ion-range.entry.js +1 -1
  266. package/dist/esm-es5/ion-refresher_2.entry.js +1 -1
  267. package/dist/esm-es5/ion-reorder_2.entry.js +1 -1
  268. package/dist/esm-es5/ion-ripple-effect.entry.js +1 -1
  269. package/dist/esm-es5/ion-route_4.entry.js +1 -1
  270. package/dist/esm-es5/ion-searchbar.entry.js +1 -1
  271. package/dist/esm-es5/ion-segment-content.entry.js +1 -1
  272. package/dist/esm-es5/ion-segment-view.entry.js +1 -1
  273. package/dist/esm-es5/ion-segment_2.entry.js +1 -1
  274. package/dist/esm-es5/ion-select-modal.entry.js +1 -1
  275. package/dist/esm-es5/ion-select_3.entry.js +1 -1
  276. package/dist/esm-es5/ion-spinner.entry.js +1 -1
  277. package/dist/esm-es5/ion-split-pane.entry.js +1 -1
  278. package/dist/esm-es5/ion-tab-bar_2.entry.js +1 -1
  279. package/dist/esm-es5/ion-tab_2.entry.js +1 -1
  280. package/dist/esm-es5/ion-text.entry.js +1 -1
  281. package/dist/esm-es5/ion-textarea.entry.js +1 -1
  282. package/dist/esm-es5/ion-toast.entry.js +1 -1
  283. package/dist/esm-es5/ion-toggle.entry.js +1 -1
  284. package/dist/esm-es5/{ionic-global-35cabcff.js → ionic-global-c81d82ab.js} +1 -1
  285. package/dist/esm-es5/ionic.js +1 -1
  286. package/dist/esm-es5/{ios.transition-72ec83a8.js → ios.transition-4ee1a3af.js} +1 -1
  287. package/dist/esm-es5/loader.js +1 -1
  288. package/dist/esm-es5/{md.transition-1f612b9f.js → md.transition-5106a0d2.js} +1 -1
  289. package/dist/esm-es5/{overlays-cba25d39.js → overlays-e7b9d6d9.js} +1 -1
  290. package/dist/esm-es5/{status-tap-a7026a46.js → status-tap-f472b09f.js} +1 -1
  291. package/dist/ionic/index.esm.js +1 -1
  292. package/dist/ionic/ionic.esm.js +1 -1
  293. package/dist/ionic/ionic.js +1 -1
  294. package/dist/ionic/{p-255d9087.system.entry.js → p-01186920.system.entry.js} +1 -1
  295. package/dist/ionic/p-021c1da5.js +4 -0
  296. package/dist/ionic/{p-a772be95.js → p-0303d0f8.js} +1 -1
  297. package/dist/ionic/{p-e46ba5cd.js → p-0574e87e.js} +1 -1
  298. package/dist/ionic/{p-d8d37758.entry.js → p-081a4ce4.entry.js} +1 -1
  299. package/dist/ionic/{p-8b2d8ddb.system.js → p-0aa833fb.system.js} +1 -1
  300. package/dist/ionic/{p-d737a7d9.entry.js → p-0bf0e55c.entry.js} +1 -1
  301. package/dist/ionic/{p-979f352d.system.entry.js → p-0c786bdf.system.entry.js} +1 -1
  302. package/dist/ionic/{p-6a131e4b.system.entry.js → p-1046866e.system.entry.js} +1 -1
  303. package/dist/ionic/{p-e896891b.system.entry.js → p-12a722b8.system.entry.js} +1 -1
  304. package/dist/ionic/{p-64b0068b.entry.js → p-141f79c7.entry.js} +1 -1
  305. package/dist/ionic/{p-e3c8fb01.entry.js → p-14be4015.entry.js} +1 -1
  306. package/dist/ionic/{p-e3f626ea.system.entry.js → p-14e159ea.system.entry.js} +1 -1
  307. package/dist/ionic/{p-75be4567.entry.js → p-15e76dd1.entry.js} +1 -1
  308. package/dist/ionic/{p-047eabc5.entry.js → p-16188af7.entry.js} +1 -1
  309. package/dist/ionic/p-16799667.system.entry.js +4 -0
  310. package/dist/ionic/p-16bfb979.system.entry.js +4 -0
  311. package/dist/ionic/{p-6f04bf2f.system.js → p-17474161.system.js} +1 -1
  312. package/dist/ionic/{p-fb7b7319.entry.js → p-19ec4f42.entry.js} +1 -1
  313. package/dist/ionic/{p-afe932a1.system.entry.js → p-1e010627.system.entry.js} +1 -1
  314. package/dist/ionic/{p-81494564.system.entry.js → p-1e67b266.system.entry.js} +1 -1
  315. package/dist/ionic/{p-43febc77.system.entry.js → p-2172893e.system.entry.js} +1 -1
  316. package/dist/ionic/p-21e5e7e4.js +4 -0
  317. package/dist/ionic/{p-f8a8295c.system.entry.js → p-2507278c.system.entry.js} +1 -1
  318. package/dist/ionic/p-25180df3.system.js +5 -0
  319. package/dist/ionic/{p-a3bea030.system.entry.js → p-2799c6d3.system.entry.js} +1 -1
  320. package/dist/ionic/{p-a8cf7e93.system.entry.js → p-2abae1cc.system.entry.js} +1 -1
  321. package/dist/ionic/{p-45e4a1e3.system.entry.js → p-2b838f86.system.entry.js} +1 -1
  322. package/dist/ionic/{p-93bc2080.entry.js → p-2b9b78c7.entry.js} +1 -1
  323. package/dist/ionic/{p-56667886.system.entry.js → p-2bd0ae94.system.entry.js} +2 -2
  324. package/dist/ionic/{p-d83d0d32.system.entry.js → p-2e46590d.system.entry.js} +1 -1
  325. package/dist/ionic/{p-876d7e0d.entry.js → p-2fc0dafe.entry.js} +1 -1
  326. package/dist/ionic/{p-8ceead8f.system.js → p-322c5fb4.system.js} +1 -1
  327. package/dist/ionic/{p-99658fa2.entry.js → p-33a8a71b.entry.js} +1 -1
  328. package/dist/ionic/{p-04f14c79.system.js → p-372ae7f4.system.js} +1 -1
  329. package/dist/ionic/{p-38dac839.system.entry.js → p-37cb43bd.system.entry.js} +1 -1
  330. package/dist/ionic/{p-2564d9b9.system.js → p-3c8e5c23.system.js} +1 -1
  331. package/dist/ionic/{p-84827719.system.entry.js → p-424eb140.system.entry.js} +1 -1
  332. package/dist/ionic/{p-e837530a.entry.js → p-4439fc2a.entry.js} +1 -1
  333. package/dist/ionic/{p-4a57dd17.entry.js → p-45693d7e.entry.js} +1 -1
  334. package/dist/ionic/p-49a0e74c.entry.js +4 -0
  335. package/dist/ionic/{p-35f02a74.entry.js → p-4ec778aa.entry.js} +1 -1
  336. package/dist/ionic/{p-7fa854a7.entry.js → p-508d024a.entry.js} +1 -1
  337. package/dist/ionic/{p-e4966716.entry.js → p-52d7a191.entry.js} +1 -1
  338. package/dist/ionic/{p-dcad1a3d.system.entry.js → p-567de071.system.entry.js} +1 -1
  339. package/dist/ionic/{p-9c4f4367.system.entry.js → p-5823babc.system.entry.js} +1 -1
  340. package/dist/ionic/{p-085dbcb4.system.entry.js → p-58d5df0c.system.entry.js} +1 -1
  341. package/dist/ionic/{p-e5c69948.entry.js → p-5ab1b709.entry.js} +1 -1
  342. package/dist/ionic/{p-dddb317f.entry.js → p-5b932840.entry.js} +1 -1
  343. package/dist/ionic/{p-2f9f5bea.system.js → p-5da94421.system.js} +1 -1
  344. package/dist/ionic/{p-735f093b.system.entry.js → p-5fce0c0b.system.entry.js} +1 -1
  345. package/dist/ionic/{p-d09b25f9.system.entry.js → p-626fd66d.system.entry.js} +1 -1
  346. package/dist/ionic/{p-b2ef1bb0.entry.js → p-62af944c.entry.js} +1 -1
  347. package/dist/ionic/{p-bf9210c7.system.entry.js → p-63b0abde.system.entry.js} +1 -1
  348. package/dist/ionic/{p-53ad8ff4.system.entry.js → p-6499df44.system.entry.js} +1 -1
  349. package/dist/ionic/{p-12f711f4.system.entry.js → p-66640ff7.system.entry.js} +1 -1
  350. package/dist/ionic/p-69066a53.js +4 -0
  351. package/dist/ionic/{p-c4dc27a0.system.entry.js → p-69666e8a.system.entry.js} +1 -1
  352. package/dist/ionic/{p-6d350e1f.entry.js → p-6b280620.entry.js} +1 -1
  353. package/dist/ionic/{p-ae2e0f50.entry.js → p-6d32975a.entry.js} +1 -1
  354. package/dist/ionic/{p-5ae14e75.entry.js → p-6d6cedc5.entry.js} +1 -1
  355. package/dist/ionic/{p-6c29e51f.entry.js → p-73dc4950.entry.js} +1 -1
  356. package/dist/ionic/{p-c2496925.system.entry.js → p-7458862e.system.entry.js} +1 -1
  357. package/dist/ionic/{p-84a6d0da.system.entry.js → p-797eeea8.system.entry.js} +1 -1
  358. package/dist/ionic/{p-99c5a3a0.entry.js → p-7b9a2b23.entry.js} +1 -1
  359. package/dist/ionic/{p-0ba102ec.system.entry.js → p-7ddc46c3.system.entry.js} +1 -1
  360. package/dist/ionic/{p-08c16f05.system.entry.js → p-7ed1657c.system.entry.js} +1 -1
  361. package/dist/ionic/{p-19bfac92.js → p-88e63c7d.js} +1 -1
  362. package/dist/ionic/{p-b50c6cd6.system.entry.js → p-8a5b9491.system.entry.js} +1 -1
  363. package/dist/ionic/{p-e8784b73.entry.js → p-8b8be2fd.entry.js} +1 -1
  364. package/dist/ionic/{p-e11ef2b7.entry.js → p-908d6080.entry.js} +1 -1
  365. package/dist/ionic/{p-11330967.entry.js → p-937a7e21.entry.js} +1 -1
  366. package/dist/ionic/{p-3e2c05a8.entry.js → p-942b5e13.entry.js} +1 -1
  367. package/dist/ionic/{p-b7027235.entry.js → p-95775830.entry.js} +1 -1
  368. package/dist/ionic/{p-6b6ccc63.entry.js → p-982315a6.entry.js} +1 -1
  369. package/dist/ionic/{p-a915830c.system.entry.js → p-98231c01.system.entry.js} +1 -1
  370. package/dist/ionic/{p-add1b61c.system.entry.js → p-985a7e17.system.entry.js} +1 -1
  371. package/dist/ionic/{p-41cabce4.entry.js → p-98ff6b32.entry.js} +1 -1
  372. package/dist/ionic/{p-d18dc399.entry.js → p-9df2c6fb.entry.js} +1 -1
  373. package/dist/ionic/{p-265d65cb.entry.js → p-9ee1e8a6.entry.js} +1 -1
  374. package/dist/ionic/p-9f3008d4.system.js +4 -0
  375. package/dist/ionic/{p-4ab93cfa.entry.js → p-9fa07aec.entry.js} +1 -1
  376. package/dist/ionic/{p-32e1825e.entry.js → p-a43467d8.entry.js} +1 -1
  377. package/dist/ionic/{p-78067282.system.js → p-a4565eb5.system.js} +1 -1
  378. package/dist/ionic/{p-a64f199d.system.entry.js → p-a49378bb.system.entry.js} +1 -1
  379. package/dist/ionic/{p-57f92640.entry.js → p-a61cba41.entry.js} +1 -1
  380. package/dist/ionic/{p-cf110b0b.system.js → p-a69b9fc5.system.js} +1 -1
  381. package/dist/ionic/{p-43679a42.entry.js → p-afecb188.entry.js} +1 -1
  382. package/dist/ionic/{p-52f6a5cc.system.entry.js → p-b2272f51.system.entry.js} +1 -1
  383. package/dist/ionic/{p-b52ddc18.system.entry.js → p-b335ffed.system.entry.js} +1 -1
  384. package/dist/ionic/{p-8c9954a1.entry.js → p-b79ba17c.entry.js} +1 -1
  385. package/dist/ionic/p-b82d4cab.js +4 -0
  386. package/dist/ionic/{p-1179c304.entry.js → p-b9d7015f.entry.js} +1 -1
  387. package/dist/ionic/{p-c60e41c7.entry.js → p-bb0db172.entry.js} +1 -1
  388. package/dist/ionic/{p-2e396991.system.entry.js → p-bc36ad98.system.entry.js} +1 -1
  389. package/dist/ionic/{p-cb37f97d.entry.js → p-bdad26e3.entry.js} +1 -1
  390. package/dist/ionic/{p-89b075f4.system.entry.js → p-c29f8157.system.entry.js} +1 -1
  391. package/dist/ionic/{p-2e520289.entry.js → p-c41ac815.entry.js} +1 -1
  392. package/dist/ionic/{p-b6c8f5dc.system.js → p-c449820c.system.js} +1 -1
  393. package/dist/ionic/{p-c505bde7.system.entry.js → p-c4b53b16.system.entry.js} +1 -1
  394. package/dist/ionic/{p-17290742.entry.js → p-c9f3a539.entry.js} +1 -1
  395. package/dist/ionic/{p-a2e5c294.system.entry.js → p-ca065903.system.entry.js} +1 -1
  396. package/dist/ionic/{p-6e1c1cf1.system.entry.js → p-cac0e0b3.system.entry.js} +1 -1
  397. package/dist/ionic/{p-86bc3e6f.entry.js → p-cdc83025.entry.js} +1 -1
  398. package/dist/ionic/p-cf130350.system.js +4 -0
  399. package/dist/ionic/{p-07d1dbe2.system.entry.js → p-d18ab582.system.entry.js} +2 -2
  400. package/dist/ionic/{p-e9bd3df9.js → p-d6841eac.js} +1 -1
  401. package/dist/ionic/{p-de758235.js → p-d743e981.js} +1 -1
  402. package/dist/ionic/{p-78841a31.entry.js → p-d7aa6b00.entry.js} +1 -1
  403. package/dist/ionic/p-d836d43e.js +5 -0
  404. package/dist/ionic/{p-f2986b60.entry.js → p-da074ff7.entry.js} +1 -1
  405. package/dist/ionic/{p-0c64a077.entry.js → p-de930745.entry.js} +1 -1
  406. package/dist/ionic/{p-67d3729b.system.entry.js → p-e4ee80be.system.entry.js} +1 -1
  407. package/dist/ionic/{p-65774bef.system.entry.js → p-e4f69534.system.entry.js} +1 -1
  408. package/dist/ionic/{p-ea2ee20f.entry.js → p-e563a35c.entry.js} +1 -1
  409. package/dist/ionic/{p-938a029f.js → p-e6635685.js} +1 -1
  410. package/dist/ionic/{p-bb750ac0.system.js → p-e7ed4a7f.system.js} +1 -1
  411. package/dist/ionic/{p-6d9fa95e.system.entry.js → p-e85d901b.system.entry.js} +1 -1
  412. package/dist/ionic/{p-6828136c.entry.js → p-eba29931.entry.js} +1 -1
  413. package/dist/ionic/{p-ce32a54b.system.entry.js → p-ebf042e0.system.entry.js} +1 -1
  414. package/dist/ionic/{p-39539749.js → p-ecceeb90.js} +1 -1
  415. package/dist/ionic/{p-00751c2a.system.entry.js → p-ed75fcfb.system.entry.js} +1 -1
  416. package/dist/ionic/{p-eb717568.entry.js → p-efaffe74.entry.js} +1 -1
  417. package/dist/ionic/{p-b2f788b9.system.entry.js → p-f1acf541.system.entry.js} +1 -1
  418. package/dist/ionic/{p-27e81076.system.entry.js → p-f3102647.system.entry.js} +1 -1
  419. package/dist/ionic/{p-d37524be.system.js → p-f9a53abb.system.js} +1 -1
  420. package/dist/ionic/{p-0c093fae.system.entry.js → p-fca6ef5f.system.entry.js} +1 -1
  421. package/dist/ionic/{p-05562a80.entry.js → p-fec61c32.entry.js} +1 -1
  422. package/dist/types/stencil-public-runtime.d.ts +0 -6
  423. package/hydrate/index.d.ts +4 -10
  424. package/hydrate/index.js +746 -1388
  425. package/hydrate/index.mjs +746 -1388
  426. package/package.json +2 -2
  427. package/dist/esm-es5/app-globals-32740a0d.js +0 -4
  428. package/dist/esm-es5/focus-visible-dd40d69f.js +0 -4
  429. package/dist/esm-es5/index-0f61352c.js +0 -5
  430. package/dist/ionic/p-024da823.js +0 -4
  431. package/dist/ionic/p-18094a7c.system.entry.js +0 -4
  432. package/dist/ionic/p-2e78561b.js +0 -5
  433. package/dist/ionic/p-30019f0b.system.js +0 -4
  434. package/dist/ionic/p-6d7a98cc.system.entry.js +0 -4
  435. package/dist/ionic/p-711fd7fc.js +0 -4
  436. package/dist/ionic/p-779acec8.entry.js +0 -4
  437. package/dist/ionic/p-8e8839c4.system.js +0 -5
  438. package/dist/ionic/p-c468af8a.system.js +0 -4
  439. package/dist/ionic/p-d47265c8.js +0 -4
  440. package/dist/ionic/p-e85e6e02.js +0 -4
package/hydrate/index.js CHANGED
@@ -7,8 +7,6 @@ Object.defineProperty(exports, '__esModule', { value: true });
7
7
 
8
8
  var stream = require('stream');
9
9
 
10
- const modeResolutionChain = [];
11
-
12
10
  function hydrateFactory($stencilWindow, $stencilHydrateOpts, $stencilHydrateResults, $stencilAfterHydrate, $stencilHydrateResolve) {
13
11
  var globalThis = $stencilWindow;
14
12
  var self = $stencilWindow;
@@ -40,7 +38,6 @@ function hydrateFactory($stencilWindow, $stencilHydrateOpts, $stencilHydrateResu
40
38
  var CSS = $stencilWindow.CSS;
41
39
  var CustomEvent = $stencilWindow.CustomEvent;
42
40
  var Document = $stencilWindow.Document;
43
- var ShadowRoot = $stencilWindow.ShadowRoot;
44
41
  var DocumentFragment = $stencilWindow.DocumentFragment;
45
42
  var DocumentType = $stencilWindow.DocumentType;
46
43
  var DOMTokenList = $stencilWindow.DOMTokenList;
@@ -61,7 +58,6 @@ function hydrateFactory($stencilWindow, $stencilHydrateOpts, $stencilHydrateResu
61
58
  var HTMLTemplateElement = $stencilWindow.HTMLTemplateElement;
62
59
  var HTMLTitleElement = $stencilWindow.HTMLTitleElement;
63
60
  var IntersectionObserver = $stencilWindow.IntersectionObserver;
64
- var ResizeObserver = $stencilWindow.ResizeObserver;
65
61
  var KeyboardEvent = $stencilWindow.KeyboardEvent;
66
62
  var MouseEvent = $stencilWindow.MouseEvent;
67
63
  var Node = $stencilWindow.Node;
@@ -133,235 +129,8 @@ function hydrateFactory($stencilWindow, $stencilHydrateOpts, $stencilHydrateResu
133
129
  const NAMESPACE = 'ionic';
134
130
  const BUILD = /* ionic */ { allRenderFn: false, appendChildSlotFix: false, asyncLoading: true, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: true, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: true, cmpWillUpdate: false, connectedCallback: true, constructableCSS: false, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: true, hostListenerTargetDocument: true, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: true, hydrateServerSide: true, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", 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, shadowDomShim: true, slot: true, slotChildNodesFix: false, slotRelocation: true, state: true, style: true, svg: true, taskQueue: true, 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 };
135
131
 
136
- // TODO(FW-2832): types
137
- class Config {
138
- constructor() {
139
- this.m = new Map();
140
- }
141
- reset(configObj) {
142
- this.m = new Map(Object.entries(configObj));
143
- }
144
- get(key, fallback) {
145
- const value = this.m.get(key);
146
- return value !== undefined ? value : fallback;
147
- }
148
- getBoolean(key, fallback = false) {
149
- const val = this.m.get(key);
150
- if (val === undefined) {
151
- return fallback;
152
- }
153
- if (typeof val === 'string') {
154
- return val === 'true';
155
- }
156
- return !!val;
157
- }
158
- getNumber(key, fallback) {
159
- const val = parseFloat(this.m.get(key));
160
- return isNaN(val) ? (fallback !== undefined ? fallback : NaN) : val;
161
- }
162
- set(key, value) {
163
- this.m.set(key, value);
164
- }
165
- }
166
- const config = /*@__PURE__*/ new Config();
167
- const configFromSession = (win) => {
168
- try {
169
- const configStr = win.sessionStorage.getItem(IONIC_SESSION_KEY);
170
- return configStr !== null ? JSON.parse(configStr) : {};
171
- }
172
- catch (e) {
173
- return {};
174
- }
175
- };
176
- const saveConfig = (win, c) => {
177
- try {
178
- win.sessionStorage.setItem(IONIC_SESSION_KEY, JSON.stringify(c));
179
- }
180
- catch (e) {
181
- return;
182
- }
183
- };
184
- const configFromURL = (win) => {
185
- const configObj = {};
186
- win.location.search
187
- .slice(1)
188
- .split('&')
189
- .map((entry) => entry.split('='))
190
- .map(([key, value]) => {
191
- try {
192
- return [decodeURIComponent(key), decodeURIComponent(value)];
193
- }
194
- catch (e) {
195
- return ['', ''];
196
- }
197
- })
198
- .filter(([key]) => startsWith(key, IONIC_PREFIX))
199
- .map(([key, value]) => [key.slice(IONIC_PREFIX.length), value])
200
- .forEach(([key, value]) => {
201
- configObj[key] = value;
202
- });
203
- return configObj;
204
- };
205
- const startsWith = (input, search) => {
206
- return input.substr(0, search.length) === search;
207
- };
208
- const IONIC_PREFIX = 'ionic:';
209
- const IONIC_SESSION_KEY = 'ionic-persist-config';
210
-
211
- const getPlatforms = (win) => setupPlatforms(win);
212
- const isPlatform = (winOrPlatform, platform) => {
213
- if (typeof winOrPlatform === 'string') {
214
- platform = winOrPlatform;
215
- winOrPlatform = undefined;
216
- }
217
- return getPlatforms(winOrPlatform).includes(platform);
218
- };
219
- const setupPlatforms = (win = window) => {
220
- if (typeof win === 'undefined') {
221
- return [];
222
- }
223
- win.Ionic = win.Ionic || {};
224
- let platforms = win.Ionic.platforms;
225
- if (platforms == null) {
226
- platforms = win.Ionic.platforms = detectPlatforms(win);
227
- platforms.forEach((p) => win.document.documentElement.classList.add(`plt-${p}`));
228
- }
229
- return platforms;
230
- };
231
- const detectPlatforms = (win) => {
232
- const customPlatformMethods = config.get('platform');
233
- return Object.keys(PLATFORMS_MAP).filter((p) => {
234
- const customMethod = customPlatformMethods === null || customPlatformMethods === void 0 ? void 0 : customPlatformMethods[p];
235
- return typeof customMethod === 'function' ? customMethod(win) : PLATFORMS_MAP[p](win);
236
- });
237
- };
238
- const isMobileWeb = (win) => isMobile(win) && !isHybrid(win);
239
- const isIpad = (win) => {
240
- // iOS 12 and below
241
- if (testUserAgent(win, /iPad/i)) {
242
- return true;
243
- }
244
- // iOS 13+
245
- if (testUserAgent(win, /Macintosh/i) && isMobile(win)) {
246
- return true;
247
- }
248
- return false;
249
- };
250
- const isIphone = (win) => testUserAgent(win, /iPhone/i);
251
- const isIOS = (win) => testUserAgent(win, /iPhone|iPod/i) || isIpad(win);
252
- const isAndroid = (win) => testUserAgent(win, /android|sink/i);
253
- const isAndroidTablet = (win) => {
254
- return isAndroid(win) && !testUserAgent(win, /mobile/i);
255
- };
256
- const isPhablet = (win) => {
257
- const width = win.innerWidth;
258
- const height = win.innerHeight;
259
- const smallest = Math.min(width, height);
260
- const largest = Math.max(width, height);
261
- return smallest > 390 && smallest < 520 && largest > 620 && largest < 800;
262
- };
263
- const isTablet = (win) => {
264
- const width = win.innerWidth;
265
- const height = win.innerHeight;
266
- const smallest = Math.min(width, height);
267
- const largest = Math.max(width, height);
268
- return isIpad(win) || isAndroidTablet(win) || (smallest > 460 && smallest < 820 && largest > 780 && largest < 1400);
269
- };
270
- const isMobile = (win) => matchMedia$1(win, '(any-pointer:coarse)');
271
- const isDesktop = (win) => !isMobile(win);
272
- const isHybrid = (win) => isCordova(win) || isCapacitorNative(win);
273
- const isCordova = (win) => !!(win['cordova'] || win['phonegap'] || win['PhoneGap']);
274
- const isCapacitorNative = (win) => {
275
- const capacitor = win['Capacitor'];
276
- return !!(capacitor === null || capacitor === void 0 ? void 0 : capacitor.isNative);
277
- };
278
- const isElectron = (win) => testUserAgent(win, /electron/i);
279
- const isPWA = (win) => { var _a; return !!(((_a = win.matchMedia) === null || _a === void 0 ? void 0 : _a.call(win, '(display-mode: standalone)').matches) || win.navigator.standalone); };
280
- const testUserAgent = (win, expr) => expr.test(win.navigator.userAgent);
281
- const matchMedia$1 = (win, query) => { var _a; return (_a = win.matchMedia) === null || _a === void 0 ? void 0 : _a.call(win, query).matches; };
282
- const PLATFORMS_MAP = {
283
- ipad: isIpad,
284
- iphone: isIphone,
285
- ios: isIOS,
286
- android: isAndroid,
287
- phablet: isPhablet,
288
- tablet: isTablet,
289
- cordova: isCordova,
290
- capacitor: isCapacitorNative,
291
- electron: isElectron,
292
- pwa: isPWA,
293
- mobile: isMobile,
294
- mobileweb: isMobileWeb,
295
- desktop: isDesktop,
296
- hybrid: isHybrid,
297
- };
298
-
299
- // TODO(FW-2832): types
300
- let defaultMode;
301
- const getIonMode$1 = (ref) => {
302
- return (ref && getMode(ref)) || defaultMode;
303
- };
304
- const initialize = (userConfig = {}) => {
305
- if (typeof window === 'undefined') {
306
- return;
307
- }
308
- const doc = window.document;
309
- const win = window;
310
- const Ionic = (win.Ionic = win.Ionic || {});
311
- const platformHelpers = {};
312
- if (userConfig._ael) {
313
- platformHelpers.ael = userConfig._ael;
314
- }
315
- if (userConfig._rel) {
316
- platformHelpers.rel = userConfig._rel;
317
- }
318
- if (userConfig._ce) {
319
- platformHelpers.ce = userConfig._ce;
320
- }
321
- setPlatformHelpers(platformHelpers);
322
- // create the Ionic.config from raw config object (if it exists)
323
- // and convert Ionic.config into a ConfigApi that has a get() fn
324
- const configObj = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, configFromSession(win)), { persistConfig: false }), Ionic.config), configFromURL(win)), userConfig);
325
- config.reset(configObj);
326
- if (config.getBoolean('persistConfig')) {
327
- saveConfig(win, configObj);
328
- }
329
- // Setup platforms
330
- setupPlatforms(win);
331
- // first see if the mode was set as an attribute on <html>
332
- // which could have been set by the user, or by pre-rendering
333
- // otherwise get the mode via config settings, and fallback to md
334
- Ionic.config = config;
335
- Ionic.mode = defaultMode = config.get('mode', doc.documentElement.getAttribute('mode') || (isPlatform(win, 'ios') ? 'ios' : 'md'));
336
- config.set('mode', defaultMode);
337
- doc.documentElement.setAttribute('mode', defaultMode);
338
- doc.documentElement.classList.add(defaultMode);
339
- if (config.getBoolean('_testing')) {
340
- config.set('animated', false);
341
- }
342
- const isIonicElement = (elm) => { var _a; return (_a = elm.tagName) === null || _a === void 0 ? void 0 : _a.startsWith('ION-'); };
343
- const isAllowedIonicModeValue = (elmMode) => ['ios', 'md'].includes(elmMode);
344
- setMode((elm) => {
345
- while (elm) {
346
- const elmMode = elm.mode || elm.getAttribute('mode');
347
- if (elmMode) {
348
- if (isAllowedIonicModeValue(elmMode)) {
349
- return elmMode;
350
- }
351
- else if (isIonicElement(elm)) {
352
- console.warn('Invalid ionic mode: "' + elmMode + '", expected: "ios" or "md"');
353
- }
354
- }
355
- elm = elm.parentElement;
356
- }
357
- return defaultMode;
358
- });
359
- };
360
-
361
- const globalScripts = initialize;
362
-
363
132
  /*
364
- Stencil Hydrate Platform v4.23.0-dev.1735628762.fb8335e | MIT Licensed | https://stenciljs.com
133
+ Stencil Hydrate Platform v4.20.0 | MIT Licensed | https://stenciljs.com
365
134
  */
366
135
  var __defProp = Object.defineProperty;
367
136
  var __export = (target, all) => {
@@ -435,22 +204,29 @@ var unwrapErr = (result) => {
435
204
  throw result.value;
436
205
  }
437
206
  };
207
+ var createTime = (fnName, tagName = "") => {
208
+ {
209
+ return () => {
210
+ return;
211
+ };
212
+ }
213
+ };
214
+ var uniqueTime = (key, measureText) => {
215
+ {
216
+ return () => {
217
+ return;
218
+ };
219
+ }
220
+ };
438
221
 
439
222
  // src/runtime/runtime-constants.ts
440
223
  var CONTENT_REF_ID = "r";
441
224
  var ORG_LOCATION_ID = "o";
442
225
  var SLOT_NODE_ID = "s";
443
226
  var TEXT_NODE_ID = "t";
444
- var COMMENT_NODE_ID = "c";
445
227
  var HYDRATE_ID = "s-id";
446
228
  var HYDRATED_STYLE_ID = "sty-id";
447
229
  var HYDRATE_CHILD_ID = "c-id";
448
- var STENCIL_DOC_DATA = "_stencilDocData";
449
- var DEFAULT_DOC_DATA = {
450
- hostIds: 0,
451
- rootLevelIds: 0,
452
- staticComponents: /* @__PURE__ */ new Set()
453
- };
454
230
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
455
231
  var XLINK_NS = "http://www.w3.org/1999/xlink";
456
232
  var h = (nodeName, vnodeData, ...children) => {
@@ -564,6 +340,318 @@ var convertToPrivate = (node) => {
564
340
  vnode.$name$ = node.vname;
565
341
  return vnode;
566
342
  };
343
+
344
+ // src/runtime/client-hydrate.ts
345
+ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
346
+ const endHydrate = createTime("hydrateClient", tagName);
347
+ const shadowRoot = hostElm.shadowRoot;
348
+ const childRenderNodes = [];
349
+ const slotNodes = [];
350
+ const shadowRootNodes = shadowRoot ? [] : null;
351
+ const vnode = hostRef.$vnode$ = newVNode(tagName, null);
352
+ if (!plt.$orgLocNodes$) {
353
+ initializeDocumentHydrate(doc$1.body, plt.$orgLocNodes$ = /* @__PURE__ */ new Map());
354
+ }
355
+ hostElm[HYDRATE_ID] = hostId;
356
+ hostElm.removeAttribute(HYDRATE_ID);
357
+ clientHydrate(vnode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, hostElm, hostId);
358
+ childRenderNodes.map((c) => {
359
+ const orgLocationId = c.$hostId$ + "." + c.$nodeId$;
360
+ const orgLocationNode = plt.$orgLocNodes$.get(orgLocationId);
361
+ const node = c.$elm$;
362
+ if (orgLocationNode && supportsShadow && orgLocationNode["s-en"] === "") {
363
+ orgLocationNode.parentNode.insertBefore(node, orgLocationNode.nextSibling);
364
+ }
365
+ if (!shadowRoot) {
366
+ node["s-hn"] = tagName;
367
+ if (orgLocationNode) {
368
+ node["s-ol"] = orgLocationNode;
369
+ node["s-ol"]["s-nr"] = node;
370
+ }
371
+ }
372
+ plt.$orgLocNodes$.delete(orgLocationId);
373
+ });
374
+ if (shadowRoot) {
375
+ shadowRootNodes.map((shadowRootNode) => {
376
+ if (shadowRootNode) {
377
+ shadowRoot.appendChild(shadowRootNode);
378
+ }
379
+ });
380
+ }
381
+ endHydrate();
382
+ };
383
+ var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, node, hostId) => {
384
+ let childNodeType;
385
+ let childIdSplt;
386
+ let childVNode;
387
+ let i2;
388
+ if (node.nodeType === 1 /* ElementNode */) {
389
+ childNodeType = node.getAttribute(HYDRATE_CHILD_ID);
390
+ if (childNodeType) {
391
+ childIdSplt = childNodeType.split(".");
392
+ if (childIdSplt[0] === hostId || childIdSplt[0] === "0") {
393
+ childVNode = {
394
+ $flags$: 0,
395
+ $hostId$: childIdSplt[0],
396
+ $nodeId$: childIdSplt[1],
397
+ $depth$: childIdSplt[2],
398
+ $index$: childIdSplt[3],
399
+ $tag$: node.tagName.toLowerCase(),
400
+ $elm$: node,
401
+ $attrs$: null,
402
+ $children$: null,
403
+ $key$: null,
404
+ $name$: null,
405
+ $text$: null
406
+ };
407
+ childRenderNodes.push(childVNode);
408
+ node.removeAttribute(HYDRATE_CHILD_ID);
409
+ if (!parentVNode.$children$) {
410
+ parentVNode.$children$ = [];
411
+ }
412
+ parentVNode.$children$[childVNode.$index$] = childVNode;
413
+ parentVNode = childVNode;
414
+ if (shadowRootNodes && childVNode.$depth$ === "0") {
415
+ shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
416
+ }
417
+ }
418
+ }
419
+ if (node.shadowRoot) {
420
+ for (i2 = node.shadowRoot.childNodes.length - 1; i2 >= 0; i2--) {
421
+ clientHydrate(
422
+ parentVNode,
423
+ childRenderNodes,
424
+ slotNodes,
425
+ shadowRootNodes,
426
+ hostElm,
427
+ node.shadowRoot.childNodes[i2],
428
+ hostId
429
+ );
430
+ }
431
+ }
432
+ for (i2 = node.childNodes.length - 1; i2 >= 0; i2--) {
433
+ clientHydrate(
434
+ parentVNode,
435
+ childRenderNodes,
436
+ slotNodes,
437
+ shadowRootNodes,
438
+ hostElm,
439
+ node.childNodes[i2],
440
+ hostId
441
+ );
442
+ }
443
+ } else if (node.nodeType === 8 /* CommentNode */) {
444
+ childIdSplt = node.nodeValue.split(".");
445
+ if (childIdSplt[1] === hostId || childIdSplt[1] === "0") {
446
+ childNodeType = childIdSplt[0];
447
+ childVNode = {
448
+ $flags$: 0,
449
+ $hostId$: childIdSplt[1],
450
+ $nodeId$: childIdSplt[2],
451
+ $depth$: childIdSplt[3],
452
+ $index$: childIdSplt[4],
453
+ $elm$: node,
454
+ $attrs$: null,
455
+ $children$: null,
456
+ $key$: null,
457
+ $name$: null,
458
+ $tag$: null,
459
+ $text$: null
460
+ };
461
+ if (childNodeType === TEXT_NODE_ID) {
462
+ childVNode.$elm$ = node.nextSibling;
463
+ if (childVNode.$elm$ && childVNode.$elm$.nodeType === 3 /* TextNode */) {
464
+ childVNode.$text$ = childVNode.$elm$.textContent;
465
+ childRenderNodes.push(childVNode);
466
+ node.remove();
467
+ if (!parentVNode.$children$) {
468
+ parentVNode.$children$ = [];
469
+ }
470
+ parentVNode.$children$[childVNode.$index$] = childVNode;
471
+ if (shadowRootNodes && childVNode.$depth$ === "0") {
472
+ shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
473
+ }
474
+ }
475
+ } else if (childVNode.$hostId$ === hostId) {
476
+ if (childNodeType === SLOT_NODE_ID) {
477
+ childVNode.$tag$ = "slot";
478
+ if (childIdSplt[5]) {
479
+ node["s-sn"] = childVNode.$name$ = childIdSplt[5];
480
+ } else {
481
+ node["s-sn"] = "";
482
+ }
483
+ node["s-sr"] = true;
484
+ if (shadowRootNodes) {
485
+ childVNode.$elm$ = doc$1.createElement(childVNode.$tag$);
486
+ if (childVNode.$name$) {
487
+ childVNode.$elm$.setAttribute("name", childVNode.$name$);
488
+ }
489
+ node.parentNode.insertBefore(childVNode.$elm$, node);
490
+ node.remove();
491
+ if (childVNode.$depth$ === "0") {
492
+ shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
493
+ }
494
+ }
495
+ slotNodes.push(childVNode);
496
+ if (!parentVNode.$children$) {
497
+ parentVNode.$children$ = [];
498
+ }
499
+ parentVNode.$children$[childVNode.$index$] = childVNode;
500
+ } else if (childNodeType === CONTENT_REF_ID) {
501
+ if (shadowRootNodes) {
502
+ node.remove();
503
+ } else {
504
+ hostElm["s-cr"] = node;
505
+ node["s-cn"] = true;
506
+ }
507
+ }
508
+ }
509
+ }
510
+ } else if (parentVNode && parentVNode.$tag$ === "style") {
511
+ const vnode = newVNode(null, node.textContent);
512
+ vnode.$elm$ = node;
513
+ vnode.$index$ = "0";
514
+ parentVNode.$children$ = [vnode];
515
+ }
516
+ };
517
+ var initializeDocumentHydrate = (node, orgLocNodes) => {
518
+ if (node.nodeType === 1 /* ElementNode */) {
519
+ let i2 = 0;
520
+ if (node.shadowRoot) {
521
+ for (; i2 < node.shadowRoot.childNodes.length; i2++) {
522
+ initializeDocumentHydrate(node.shadowRoot.childNodes[i2], orgLocNodes);
523
+ }
524
+ }
525
+ for (i2 = 0; i2 < node.childNodes.length; i2++) {
526
+ initializeDocumentHydrate(node.childNodes[i2], orgLocNodes);
527
+ }
528
+ } else if (node.nodeType === 8 /* CommentNode */) {
529
+ const childIdSplt = node.nodeValue.split(".");
530
+ if (childIdSplt[0] === ORG_LOCATION_ID) {
531
+ orgLocNodes.set(childIdSplt[1] + "." + childIdSplt[2], node);
532
+ node.nodeValue = "";
533
+ node["s-en"] = childIdSplt[3];
534
+ }
535
+ }
536
+ };
537
+
538
+ // src/runtime/mode.ts
539
+ var computeMode = (elm) => modeResolutionChain.map((h2) => h2(elm)).find((m) => !!m);
540
+ var getMode = (ref) => getHostRef(ref).$modeName$;
541
+ var parsePropertyValue = (propValue, propType) => {
542
+ if (propValue != null && !isComplexType(propValue)) {
543
+ if (propType & 4 /* Boolean */) {
544
+ return propValue === "false" ? false : propValue === "" || !!propValue;
545
+ }
546
+ if (propType & 2 /* Number */) {
547
+ return parseFloat(propValue);
548
+ }
549
+ if (propType & 1 /* String */) {
550
+ return String(propValue);
551
+ }
552
+ return propValue;
553
+ }
554
+ return propValue;
555
+ };
556
+ var getElement = (ref) => getHostRef(ref).$hostElement$ ;
557
+
558
+ // src/runtime/event-emitter.ts
559
+ var createEvent = (ref, name, flags) => {
560
+ const elm = getElement(ref);
561
+ return {
562
+ emit: (detail) => {
563
+ return emitEvent(elm, name, {
564
+ bubbles: !!(flags & 4 /* Bubbles */),
565
+ composed: !!(flags & 2 /* Composed */),
566
+ cancelable: !!(flags & 1 /* Cancellable */),
567
+ detail
568
+ });
569
+ }
570
+ };
571
+ };
572
+ var emitEvent = (elm, name, opts) => {
573
+ const ev = plt.ce(name, opts);
574
+ elm.dispatchEvent(ev);
575
+ return ev;
576
+ };
577
+ var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
578
+ var registerStyle = (scopeId2, cssText, allowCS) => {
579
+ let style = styles.get(scopeId2);
580
+ {
581
+ style = cssText;
582
+ }
583
+ styles.set(scopeId2, style);
584
+ };
585
+ var addStyle = (styleContainerNode, cmpMeta, mode) => {
586
+ var _a;
587
+ const scopeId2 = getScopeId(cmpMeta, mode);
588
+ const style = styles.get(scopeId2);
589
+ styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc$1;
590
+ if (style) {
591
+ if (typeof style === "string") {
592
+ styleContainerNode = styleContainerNode.head || styleContainerNode;
593
+ let appliedStyles = rootAppliedStyles.get(styleContainerNode);
594
+ let styleElm;
595
+ if (!appliedStyles) {
596
+ rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
597
+ }
598
+ if (!appliedStyles.has(scopeId2)) {
599
+ if (styleContainerNode.host && (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`))) {
600
+ styleElm.innerHTML = style;
601
+ } else {
602
+ styleElm = doc$1.createElement("style");
603
+ styleElm.innerHTML = style;
604
+ const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc$1);
605
+ if (nonce != null) {
606
+ styleElm.setAttribute("nonce", nonce);
607
+ }
608
+ if (cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */) {
609
+ styleElm.setAttribute(HYDRATED_STYLE_ID, scopeId2);
610
+ }
611
+ const injectStyle = (
612
+ /**
613
+ * we render a scoped component
614
+ */
615
+ !(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) || /**
616
+ * we are using shadow dom and render the style tag within the shadowRoot
617
+ */
618
+ cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD"
619
+ );
620
+ if (injectStyle) {
621
+ styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector("link"));
622
+ }
623
+ }
624
+ if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
625
+ styleElm.innerHTML += SLOT_FB_CSS;
626
+ }
627
+ if (appliedStyles) {
628
+ appliedStyles.add(scopeId2);
629
+ }
630
+ }
631
+ }
632
+ }
633
+ return scopeId2;
634
+ };
635
+ var attachStyles = (hostRef) => {
636
+ const cmpMeta = hostRef.$cmpMeta$;
637
+ const elm = hostRef.$hostElement$;
638
+ const flags = cmpMeta.$flags$;
639
+ const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
640
+ const scopeId2 = addStyle(
641
+ elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
642
+ cmpMeta,
643
+ hostRef.$modeName$
644
+ );
645
+ if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
646
+ elm["s-sc"] = scopeId2;
647
+ elm.classList.add(scopeId2 + "-h");
648
+ if (flags & 2 /* scopedCssEncapsulation */) {
649
+ elm.classList.add(scopeId2 + "-s");
650
+ }
651
+ }
652
+ endAttachStyles();
653
+ };
654
+ var getScopeId = (cmp, mode) => "sc-" + (mode && cmp.$flags$ & 32 /* hasMode */ ? cmp.$tagName$ + "-" + mode : cmp.$tagName$);
567
655
  var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
568
656
  if (oldValue !== newValue) {
569
657
  let isProp = isMemberInElement(elm, memberName);
@@ -572,9 +660,6 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
572
660
  const classList = elm.classList;
573
661
  const oldClasses = parseClassList(oldValue);
574
662
  const newClasses = parseClassList(newValue);
575
- if (elm["s-si"] && newClasses.indexOf(elm["s-si"]) < 0) {
576
- newClasses.push(elm["s-si"]);
577
- }
578
663
  classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
579
664
  classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
580
665
  } else if (memberName === "style") {
@@ -625,11 +710,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
625
710
  if (memberName === "list") {
626
711
  isProp = false;
627
712
  } else if (oldValue == null || elm[memberName] != n) {
628
- if (typeof elm.__lookupSetter__(memberName) === "function") {
629
- elm[memberName] = n;
630
- } else {
631
- elm.setAttribute(memberName, n);
632
- }
713
+ elm[memberName] = n;
633
714
  }
634
715
  } else {
635
716
  elm[memberName] = newValue;
@@ -664,15 +745,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
664
745
  }
665
746
  };
666
747
  var parseClassListRegex = /\s/;
667
- var parseClassList = (value) => {
668
- if (typeof value === "object" && "baseVal" in value) {
669
- value = value.baseVal;
670
- }
671
- if (!value) {
672
- return [];
673
- }
674
- return value.split(parseClassListRegex);
675
- };
748
+ var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
676
749
  var CAPTURE_EVENT_SUFFIX = "Capture";
677
750
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
678
751
 
@@ -796,7 +869,7 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
796
869
  };
797
870
  var putBackInOriginalLocation = (parentElm, recursive) => {
798
871
  plt.$flags$ |= 1 /* isTmpDisconnected */;
799
- const oldSlotChildNodes = Array.from(parentElm.__childNodes || parentElm.childNodes);
872
+ const oldSlotChildNodes = Array.from(parentElm.childNodes);
800
873
  if (parentElm["s-sr"] && BUILD.experimentalSlotFixes) {
801
874
  let node = parentElm;
802
875
  while (node = node.nextSibling) {
@@ -1010,7 +1083,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
1010
1083
  }
1011
1084
  };
1012
1085
  var updateFallbackSlotVisibility = (elm) => {
1013
- const childNodes = elm.__childNodes || elm.childNodes;
1086
+ const childNodes = elm.childNodes;
1014
1087
  for (const childNode of childNodes) {
1015
1088
  if (childNode.nodeType === 1 /* ElementNode */) {
1016
1089
  if (childNode["s-sr"]) {
@@ -1023,7 +1096,7 @@ var updateFallbackSlotVisibility = (elm) => {
1023
1096
  childNode.hidden = true;
1024
1097
  break;
1025
1098
  }
1026
- } else if (slotName === siblingNode["s-sn"]) {
1099
+ } else {
1027
1100
  if (siblingNode.nodeType === 1 /* ElementNode */ || siblingNode.nodeType === 3 /* TextNode */ && siblingNode.textContent.trim() !== "") {
1028
1101
  childNode.hidden = true;
1029
1102
  break;
@@ -1041,10 +1114,9 @@ var markSlotContentForRelocation = (elm) => {
1041
1114
  let node;
1042
1115
  let hostContentNodes;
1043
1116
  let j;
1044
- const children = elm.__childNodes || elm.childNodes;
1045
- for (const childNode of children) {
1117
+ for (const childNode of elm.childNodes) {
1046
1118
  if (childNode["s-sr"] && (node = childNode["s-cr"]) && node.parentNode) {
1047
- hostContentNodes = node.parentNode.__childNodes || node.parentNode.childNodes;
1119
+ hostContentNodes = node.parentNode.childNodes;
1048
1120
  const slotName = childNode["s-sn"];
1049
1121
  for (j = hostContentNodes.length - 1; j >= 0; j--) {
1050
1122
  node = hostContentNodes[j];
@@ -1131,9 +1203,9 @@ var updateElementScopeIds = (element, parent, iterateChildNodes = false) => {
1131
1203
  if (element && parent && element.nodeType === 1 /* ElementNode */) {
1132
1204
  const scopeIds = new Set(findScopeIds(parent).filter(Boolean));
1133
1205
  if (scopeIds.size) {
1134
- (_a = element.classList) == null ? void 0 : _a.add(...element["s-scs"] = Array.from(scopeIds));
1206
+ (_a = element.classList) == null ? void 0 : _a.add(...element["s-scs"] = [...scopeIds]);
1135
1207
  if (element["s-ol"] || iterateChildNodes) {
1136
- for (const childNode of Array.from(element.__childNodes || element.childNodes)) {
1208
+ for (const childNode of Array.from(element.childNodes)) {
1137
1209
  updateElementScopeIds(childNode, element, true);
1138
1210
  }
1139
1211
  }
@@ -1244,519 +1316,6 @@ var slotReferenceDebugNode = (slotVNode) => doc$1.createComment(
1244
1316
  var originalLocationDebugNode = (nodeToRelocate) => doc$1.createComment(
1245
1317
  `org-location for ` + (nodeToRelocate.localName ? `<${nodeToRelocate.localName}> (host=${nodeToRelocate["s-hn"]})` : `[${nodeToRelocate.textContent}]`)
1246
1318
  );
1247
- var addSlotRelocateNode = (newChild, slotNode, prepend, position) => {
1248
- let slottedNodeLocation;
1249
- if (newChild["s-ol"] && newChild["s-ol"].isConnected) {
1250
- slottedNodeLocation = newChild["s-ol"];
1251
- } else {
1252
- slottedNodeLocation = document.createTextNode("");
1253
- slottedNodeLocation["s-nr"] = newChild;
1254
- }
1255
- if (!slotNode["s-cr"] || !slotNode["s-cr"].parentNode) return;
1256
- const parent = slotNode["s-cr"].parentNode;
1257
- const appendMethod = prepend ? parent.__prepend || parent.prepend : parent.__appendChild || parent.appendChild;
1258
- if (typeof position !== "undefined") {
1259
- {
1260
- slottedNodeLocation["s-oo"] = position;
1261
- const childNodes = parent.__childNodes || parent.childNodes;
1262
- const slotRelocateNodes = [slottedNodeLocation];
1263
- childNodes.forEach((n) => {
1264
- if (n["s-nr"]) slotRelocateNodes.push(n);
1265
- });
1266
- slotRelocateNodes.sort((a, b) => {
1267
- if (!a["s-oo"] || a["s-oo"] < b["s-oo"]) return -1;
1268
- else if (!b["s-oo"] || b["s-oo"] < a["s-oo"]) return 1;
1269
- return 0;
1270
- });
1271
- slotRelocateNodes.forEach((n) => appendMethod.call(parent, n));
1272
- }
1273
- } else {
1274
- appendMethod.call(parent, slottedNodeLocation);
1275
- }
1276
- newChild["s-ol"] = slottedNodeLocation;
1277
- newChild["s-sh"] = slotNode["s-hn"];
1278
- };
1279
- var createTime = (fnName, tagName = "") => {
1280
- {
1281
- return () => {
1282
- return;
1283
- };
1284
- }
1285
- };
1286
- var uniqueTime = (key, measureText) => {
1287
- {
1288
- return () => {
1289
- return;
1290
- };
1291
- }
1292
- };
1293
-
1294
- // src/runtime/client-hydrate.ts
1295
- var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
1296
- const endHydrate = createTime("hydrateClient", tagName);
1297
- const shadowRoot = hostElm.shadowRoot;
1298
- const childRenderNodes = [];
1299
- const slotNodes = [];
1300
- const slottedNodes = [];
1301
- const shadowRootNodes = shadowRoot ? [] : null;
1302
- const vnode = newVNode(tagName, null);
1303
- vnode.$elm$ = hostElm;
1304
- if (!plt.$orgLocNodes$) {
1305
- initializeDocumentHydrate(doc$1.body, plt.$orgLocNodes$ = /* @__PURE__ */ new Map());
1306
- }
1307
- hostElm[HYDRATE_ID] = hostId;
1308
- hostElm.removeAttribute(HYDRATE_ID);
1309
- hostRef.$vnode$ = clientHydrate(
1310
- vnode,
1311
- childRenderNodes,
1312
- slotNodes,
1313
- shadowRootNodes,
1314
- hostElm,
1315
- hostElm,
1316
- hostId,
1317
- slottedNodes
1318
- );
1319
- let crIndex = 0;
1320
- const crLength = childRenderNodes.length;
1321
- let childRenderNode;
1322
- for (crIndex; crIndex < crLength; crIndex++) {
1323
- childRenderNode = childRenderNodes[crIndex];
1324
- const orgLocationId = childRenderNode.$hostId$ + "." + childRenderNode.$nodeId$;
1325
- const orgLocationNode = plt.$orgLocNodes$.get(orgLocationId);
1326
- const node = childRenderNode.$elm$;
1327
- if (!shadowRoot) {
1328
- node["s-hn"] = tagName.toUpperCase();
1329
- if (childRenderNode.$tag$ === "slot") {
1330
- node["s-cr"] = hostElm["s-cr"];
1331
- }
1332
- }
1333
- if (orgLocationNode && orgLocationNode.isConnected) {
1334
- if (shadowRoot && orgLocationNode["s-en"] === "") {
1335
- orgLocationNode.parentNode.insertBefore(node, orgLocationNode.nextSibling);
1336
- }
1337
- orgLocationNode.parentNode.removeChild(orgLocationNode);
1338
- if (!shadowRoot) {
1339
- node["s-oo"] = parseInt(childRenderNode.$nodeId$);
1340
- }
1341
- }
1342
- plt.$orgLocNodes$.delete(orgLocationId);
1343
- }
1344
- const hosts = [];
1345
- let snIndex = 0;
1346
- const snLen = slottedNodes.length;
1347
- let slotGroup;
1348
- let snGroupIdx;
1349
- let snGroupLen;
1350
- let slottedItem;
1351
- for (snIndex; snIndex < snLen; snIndex++) {
1352
- slotGroup = slottedNodes[snIndex];
1353
- if (!slotGroup || !slotGroup.length) continue;
1354
- snGroupLen = slotGroup.length;
1355
- snGroupIdx = 0;
1356
- for (snGroupIdx; snGroupIdx < snGroupLen; snGroupIdx++) {
1357
- slottedItem = slotGroup[snGroupIdx];
1358
- if (!hosts[slottedItem.hostId]) {
1359
- hosts[slottedItem.hostId] = plt.$orgLocNodes$.get(slottedItem.hostId);
1360
- }
1361
- if (!hosts[slottedItem.hostId]) continue;
1362
- const hostEle = hosts[slottedItem.hostId];
1363
- if (!hostEle.shadowRoot || !shadowRoot) {
1364
- slottedItem.slot["s-cr"] = hostEle["s-cr"];
1365
- if (!slottedItem.slot["s-cr"] && hostEle.shadowRoot) {
1366
- slottedItem.slot["s-cr"] = hostEle;
1367
- } else {
1368
- const hostChildren = hostEle.__childNodes || hostEle.childNodes;
1369
- slottedItem.slot["s-cr"] = hostChildren[0];
1370
- }
1371
- addSlotRelocateNode(slottedItem.node, slottedItem.slot, false, slottedItem.node["s-oo"]);
1372
- }
1373
- if (hostEle.shadowRoot && slottedItem.node.parentElement !== hostEle) {
1374
- hostEle.appendChild(slottedItem.node);
1375
- }
1376
- }
1377
- }
1378
- if (shadowRoot) {
1379
- let rnIdex = 0;
1380
- const rnLen = shadowRootNodes.length;
1381
- for (rnIdex; rnIdex < rnLen; rnIdex++) {
1382
- shadowRoot.appendChild(shadowRootNodes[rnIdex]);
1383
- }
1384
- Array.from(hostElm.childNodes).forEach((node) => {
1385
- if (node.nodeType === 8 /* CommentNode */ && typeof node["s-sn"] !== "string") {
1386
- node.parentNode.removeChild(node);
1387
- }
1388
- });
1389
- }
1390
- hostRef.$hostElement$ = hostElm;
1391
- endHydrate();
1392
- };
1393
- var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, node, hostId, slottedNodes = []) => {
1394
- let childNodeType;
1395
- let childIdSplt;
1396
- let childVNode;
1397
- let i2;
1398
- const scopeId2 = hostElm["s-sc"];
1399
- if (node.nodeType === 1 /* ElementNode */) {
1400
- childNodeType = node.getAttribute(HYDRATE_CHILD_ID);
1401
- if (childNodeType) {
1402
- childIdSplt = childNodeType.split(".");
1403
- if (childIdSplt[0] === hostId || childIdSplt[0] === "0") {
1404
- childVNode = createSimpleVNode({
1405
- $flags$: 0,
1406
- $hostId$: childIdSplt[0],
1407
- $nodeId$: childIdSplt[1],
1408
- $depth$: childIdSplt[2],
1409
- $index$: childIdSplt[3],
1410
- $tag$: node.tagName.toLowerCase(),
1411
- $elm$: node,
1412
- // If we don't add the initial classes to the VNode, the first `vdom-render.ts` reconciliation will fail:
1413
- // client side changes before componentDidLoad will be ignored, `set-accessor.ts` will just take the element's initial classes
1414
- $attrs$: { class: node.className }
1415
- });
1416
- childRenderNodes.push(childVNode);
1417
- node.removeAttribute(HYDRATE_CHILD_ID);
1418
- if (!parentVNode.$children$) {
1419
- parentVNode.$children$ = [];
1420
- }
1421
- const slotName = childVNode.$elm$.getAttribute("s-sn");
1422
- if (typeof slotName === "string") {
1423
- if (childVNode.$tag$ === "slot-fb") {
1424
- addSlot(
1425
- slotName,
1426
- childIdSplt[2],
1427
- childVNode,
1428
- node,
1429
- parentVNode,
1430
- childRenderNodes,
1431
- slotNodes,
1432
- shadowRootNodes,
1433
- slottedNodes
1434
- );
1435
- }
1436
- childVNode.$elm$["s-sn"] = slotName;
1437
- childVNode.$elm$.removeAttribute("s-sn");
1438
- }
1439
- if (childVNode.$index$ !== void 0) {
1440
- parentVNode.$children$[childVNode.$index$] = childVNode;
1441
- }
1442
- if (scopeId2) node["s-si"] = scopeId2;
1443
- parentVNode = childVNode;
1444
- if (shadowRootNodes && childVNode.$depth$ === "0") {
1445
- shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
1446
- }
1447
- }
1448
- }
1449
- if (node.shadowRoot) {
1450
- for (i2 = node.shadowRoot.childNodes.length - 1; i2 >= 0; i2--) {
1451
- clientHydrate(
1452
- parentVNode,
1453
- childRenderNodes,
1454
- slotNodes,
1455
- shadowRootNodes,
1456
- hostElm,
1457
- node.shadowRoot.childNodes[i2],
1458
- hostId,
1459
- slottedNodes
1460
- );
1461
- }
1462
- }
1463
- const nonShadowNodes = node.__childNodes || node.childNodes;
1464
- for (i2 = nonShadowNodes.length - 1; i2 >= 0; i2--) {
1465
- clientHydrate(
1466
- parentVNode,
1467
- childRenderNodes,
1468
- slotNodes,
1469
- shadowRootNodes,
1470
- hostElm,
1471
- nonShadowNodes[i2],
1472
- hostId,
1473
- slottedNodes
1474
- );
1475
- }
1476
- } else if (node.nodeType === 8 /* CommentNode */) {
1477
- childIdSplt = node.nodeValue.split(".");
1478
- if (childIdSplt[1] === hostId || childIdSplt[1] === "0") {
1479
- childNodeType = childIdSplt[0];
1480
- childVNode = createSimpleVNode({
1481
- $hostId$: childIdSplt[1],
1482
- $nodeId$: childIdSplt[2],
1483
- $depth$: childIdSplt[3],
1484
- $index$: childIdSplt[4] || "0",
1485
- $elm$: node,
1486
- $attrs$: null,
1487
- $children$: null,
1488
- $key$: null,
1489
- $name$: null,
1490
- $tag$: null,
1491
- $text$: null
1492
- });
1493
- if (childNodeType === TEXT_NODE_ID) {
1494
- childVNode.$elm$ = node.nextSibling;
1495
- if (childVNode.$elm$ && childVNode.$elm$.nodeType === 3 /* TextNode */) {
1496
- childVNode.$text$ = childVNode.$elm$.textContent;
1497
- childRenderNodes.push(childVNode);
1498
- node.remove();
1499
- if (hostId === childVNode.$hostId$) {
1500
- if (!parentVNode.$children$) {
1501
- parentVNode.$children$ = [];
1502
- }
1503
- parentVNode.$children$[childVNode.$index$] = childVNode;
1504
- }
1505
- if (shadowRootNodes && childVNode.$depth$ === "0") {
1506
- shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
1507
- }
1508
- }
1509
- } else if (childNodeType === COMMENT_NODE_ID) {
1510
- childVNode.$elm$ = node.nextSibling;
1511
- if (childVNode.$elm$ && childVNode.$elm$.nodeType === 8 /* CommentNode */) {
1512
- childRenderNodes.push(childVNode);
1513
- node.remove();
1514
- }
1515
- } else if (childVNode.$hostId$ === hostId) {
1516
- if (childNodeType === SLOT_NODE_ID) {
1517
- childVNode.$tag$ = "slot";
1518
- const slotName = node["s-sn"] = childVNode.$name$ = childIdSplt[5] || "";
1519
- addSlot(
1520
- slotName,
1521
- childIdSplt[2],
1522
- childVNode,
1523
- node,
1524
- parentVNode,
1525
- childRenderNodes,
1526
- slotNodes,
1527
- shadowRootNodes,
1528
- slottedNodes
1529
- );
1530
- } else if (childNodeType === CONTENT_REF_ID) {
1531
- if (shadowRootNodes) {
1532
- node.remove();
1533
- } else {
1534
- hostElm["s-cr"] = node;
1535
- node["s-cn"] = true;
1536
- }
1537
- }
1538
- }
1539
- }
1540
- } else if (parentVNode && parentVNode.$tag$ === "style") {
1541
- const vnode = newVNode(null, node.textContent);
1542
- vnode.$elm$ = node;
1543
- vnode.$index$ = "0";
1544
- parentVNode.$children$ = [vnode];
1545
- }
1546
- return parentVNode;
1547
- };
1548
- var initializeDocumentHydrate = (node, orgLocNodes) => {
1549
- if (node.nodeType === 1 /* ElementNode */) {
1550
- const componentId = node[HYDRATE_ID] || node.getAttribute(HYDRATE_ID);
1551
- if (componentId) {
1552
- orgLocNodes.set(componentId, node);
1553
- }
1554
- let i2 = 0;
1555
- if (node.shadowRoot) {
1556
- for (; i2 < node.shadowRoot.childNodes.length; i2++) {
1557
- initializeDocumentHydrate(node.shadowRoot.childNodes[i2], orgLocNodes);
1558
- }
1559
- }
1560
- const nonShadowNodes = node.__childNodes || node.childNodes;
1561
- for (i2 = 0; i2 < nonShadowNodes.length; i2++) {
1562
- initializeDocumentHydrate(nonShadowNodes[i2], orgLocNodes);
1563
- }
1564
- } else if (node.nodeType === 8 /* CommentNode */) {
1565
- const childIdSplt = node.nodeValue.split(".");
1566
- if (childIdSplt[0] === ORG_LOCATION_ID) {
1567
- orgLocNodes.set(childIdSplt[1] + "." + childIdSplt[2], node);
1568
- node.nodeValue = "";
1569
- node["s-en"] = childIdSplt[3];
1570
- }
1571
- }
1572
- };
1573
- var createSimpleVNode = (vnode) => {
1574
- const defaultVNode = {
1575
- $flags$: 0,
1576
- $hostId$: null,
1577
- $nodeId$: null,
1578
- $depth$: null,
1579
- $index$: "0",
1580
- $elm$: null,
1581
- $attrs$: null,
1582
- $children$: null,
1583
- $key$: null,
1584
- $name$: null,
1585
- $tag$: null,
1586
- $text$: null
1587
- };
1588
- return { ...defaultVNode, ...vnode };
1589
- };
1590
- function addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNodes, slotNodes, shadowRootNodes, slottedNodes) {
1591
- node["s-sr"] = true;
1592
- const parentNodeId = (parentVNode == null ? void 0 : parentVNode.$elm$) ? parentVNode.$elm$["s-id"] || parentVNode.$elm$.getAttribute("s-id") : "";
1593
- if (shadowRootNodes) {
1594
- const slot = childVNode.$elm$ = doc$1.createElement(childVNode.$tag$);
1595
- if (childVNode.$name$) {
1596
- childVNode.$elm$.setAttribute("name", slotName);
1597
- }
1598
- if (parentNodeId && parentNodeId !== childVNode.$hostId$) {
1599
- parentVNode.$elm$.insertBefore(slot, parentVNode.$elm$.children[0]);
1600
- } else {
1601
- node.parentNode.insertBefore(childVNode.$elm$, node);
1602
- }
1603
- addSlottedNodes(slottedNodes, slotId, slotName, node, childVNode.$hostId$);
1604
- node.remove();
1605
- if (childVNode.$depth$ === "0") {
1606
- shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
1607
- }
1608
- } else {
1609
- const slot = childVNode.$elm$;
1610
- const shouldMove = parentNodeId && parentNodeId !== childVNode.$hostId$ && parentVNode.$elm$.shadowRoot;
1611
- addSlottedNodes(slottedNodes, slotId, slotName, node, shouldMove ? parentNodeId : childVNode.$hostId$);
1612
- if (shouldMove) {
1613
- parentVNode.$elm$.insertBefore(slot, parentVNode.$elm$.children[0]);
1614
- }
1615
- childRenderNodes.push(childVNode);
1616
- }
1617
- slotNodes.push(childVNode);
1618
- if (!parentVNode.$children$) {
1619
- parentVNode.$children$ = [];
1620
- }
1621
- parentVNode.$children$[childVNode.$index$] = childVNode;
1622
- }
1623
- var addSlottedNodes = (slottedNodes, slotNodeId, slotName, slotNode, hostId) => {
1624
- let slottedNode = slotNode.nextSibling;
1625
- slottedNodes[slotNodeId] = slottedNodes[slotNodeId] || [];
1626
- 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 */))) {
1627
- slottedNode["s-sn"] = slotName;
1628
- slottedNodes[slotNodeId].push({ slot: slotNode, node: slottedNode, hostId });
1629
- slottedNode = slottedNode.nextSibling;
1630
- }
1631
- };
1632
-
1633
- // src/runtime/mode.ts
1634
- var computeMode = (elm) => modeResolutionChain.map((h2) => h2(elm)).find((m) => !!m);
1635
- var setMode = (handler) => modeResolutionChain.push(handler);
1636
- var getMode = (ref) => getHostRef(ref).$modeName$;
1637
- var parsePropertyValue = (propValue, propType) => {
1638
- if (propValue != null && !isComplexType(propValue)) {
1639
- if (propType & 4 /* Boolean */) {
1640
- return propValue === "false" ? false : propValue === "" || !!propValue;
1641
- }
1642
- if (propType & 2 /* Number */) {
1643
- return parseFloat(propValue);
1644
- }
1645
- if (propType & 1 /* String */) {
1646
- return String(propValue);
1647
- }
1648
- return propValue;
1649
- }
1650
- return propValue;
1651
- };
1652
- var getElement = (ref) => getHostRef(ref).$hostElement$ ;
1653
-
1654
- // src/runtime/event-emitter.ts
1655
- var createEvent = (ref, name, flags) => {
1656
- const elm = getElement(ref);
1657
- return {
1658
- emit: (detail) => {
1659
- return emitEvent(elm, name, {
1660
- bubbles: !!(flags & 4 /* Bubbles */),
1661
- composed: !!(flags & 2 /* Composed */),
1662
- cancelable: !!(flags & 1 /* Cancellable */),
1663
- detail
1664
- });
1665
- }
1666
- };
1667
- };
1668
- var emitEvent = (elm, name, opts) => {
1669
- const ev = plt.ce(name, opts);
1670
- elm.dispatchEvent(ev);
1671
- return ev;
1672
- };
1673
- var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
1674
- var registerStyle = (scopeId2, cssText, allowCS) => {
1675
- let style = styles.get(scopeId2);
1676
- {
1677
- style = cssText;
1678
- }
1679
- styles.set(scopeId2, style);
1680
- };
1681
- var addStyle = (styleContainerNode, cmpMeta, mode) => {
1682
- var _a;
1683
- const scopeId2 = getScopeId(cmpMeta, mode);
1684
- const style = styles.get(scopeId2);
1685
- styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc$1;
1686
- if (style) {
1687
- if (typeof style === "string") {
1688
- styleContainerNode = styleContainerNode.head || styleContainerNode;
1689
- let appliedStyles = rootAppliedStyles.get(styleContainerNode);
1690
- let styleElm;
1691
- if (!appliedStyles) {
1692
- rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
1693
- }
1694
- if (!appliedStyles.has(scopeId2)) {
1695
- if (styleContainerNode.host && (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`))) {
1696
- styleElm.innerHTML = style;
1697
- } else {
1698
- styleElm = doc$1.createElement("style");
1699
- styleElm.innerHTML = style;
1700
- const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc$1);
1701
- if (nonce != null) {
1702
- styleElm.setAttribute("nonce", nonce);
1703
- }
1704
- if (cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */) {
1705
- styleElm.setAttribute(HYDRATED_STYLE_ID, scopeId2);
1706
- }
1707
- if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
1708
- if (styleContainerNode.nodeName === "HEAD") {
1709
- const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
1710
- const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
1711
- styleContainerNode.insertBefore(styleElm, referenceNode2);
1712
- } else if ("host" in styleContainerNode) {
1713
- {
1714
- const existingStyleContainer = styleContainerNode.querySelector("style");
1715
- if (existingStyleContainer) {
1716
- existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
1717
- } else {
1718
- styleContainerNode.prepend(styleElm);
1719
- }
1720
- }
1721
- } else {
1722
- styleContainerNode.append(styleElm);
1723
- }
1724
- }
1725
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
1726
- styleContainerNode.insertBefore(styleElm, null);
1727
- }
1728
- }
1729
- if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
1730
- styleElm.innerHTML += SLOT_FB_CSS;
1731
- }
1732
- if (appliedStyles) {
1733
- appliedStyles.add(scopeId2);
1734
- }
1735
- }
1736
- }
1737
- }
1738
- return scopeId2;
1739
- };
1740
- var attachStyles = (hostRef) => {
1741
- const cmpMeta = hostRef.$cmpMeta$;
1742
- const elm = hostRef.$hostElement$;
1743
- const flags = cmpMeta.$flags$;
1744
- const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
1745
- const scopeId2 = addStyle(
1746
- elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
1747
- cmpMeta,
1748
- hostRef.$modeName$
1749
- );
1750
- if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
1751
- elm["s-sc"] = scopeId2;
1752
- elm.classList.add(scopeId2 + "-h");
1753
- if (flags & 2 /* scopedCssEncapsulation */) {
1754
- elm.classList.add(scopeId2 + "-s");
1755
- }
1756
- }
1757
- endAttachStyles();
1758
- };
1759
- var getScopeId = (cmp, mode) => "sc-" + (mode && cmp.$flags$ & 32 /* hasMode */ ? cmp.$tagName$ + "-" + mode : cmp.$tagName$);
1760
1319
 
1761
1320
  // src/runtime/update-component.ts
1762
1321
  var attachToAncestor = (hostRef, ancestorComponent) => {
@@ -2003,62 +1562,16 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
2003
1562
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
2004
1563
  members.map(([memberName, [memberFlags]]) => {
2005
1564
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
2006
- if ((memberFlags & 2048 /* Getter */) === 0) {
2007
- Object.defineProperty(prototype, memberName, {
2008
- get() {
2009
- return getValue(this, memberName);
2010
- },
2011
- set(newValue) {
2012
- setValue(this, memberName, newValue, cmpMeta);
2013
- },
2014
- configurable: true,
2015
- enumerable: true
2016
- });
2017
- } else if (flags & 1 /* isElementConstructor */ && memberFlags & 2048 /* Getter */) {
2018
- {
2019
- Object.defineProperty(prototype, memberName, {
2020
- get() {
2021
- const ref = getHostRef(this);
2022
- const instance = ref ? ref.$lazyInstance$ : prototype;
2023
- if (!instance) return;
2024
- return instance[memberName];
2025
- },
2026
- configurable: true,
2027
- enumerable: true
2028
- });
2029
- }
2030
- if (memberFlags & 4096 /* Setter */) {
2031
- const origSetter = Object.getOwnPropertyDescriptor(prototype, memberName).set;
2032
- Object.defineProperty(prototype, memberName, {
2033
- set(newValue) {
2034
- const ref = getHostRef(this);
2035
- if (origSetter) {
2036
- const currentValue = ref.$hostElement$[memberName];
2037
- if (!ref.$instanceValues$.get(memberName) && currentValue) {
2038
- ref.$instanceValues$.set(memberName, currentValue);
2039
- }
2040
- origSetter.apply(this, [parsePropertyValue(newValue, cmpMeta.$members$[memberName][0])]);
2041
- setValue(this, memberName, ref.$hostElement$[memberName], cmpMeta);
2042
- return;
2043
- }
2044
- if (!ref) return;
2045
- const setterSetVal = () => {
2046
- const currentValue = ref.$lazyInstance$[memberName];
2047
- if (!ref.$instanceValues$.get(memberName) && currentValue) {
2048
- ref.$instanceValues$.set(memberName, currentValue);
2049
- }
2050
- ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, cmpMeta.$members$[memberName][0]);
2051
- setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
2052
- };
2053
- if (ref.$lazyInstance$) {
2054
- setterSetVal();
2055
- } else {
2056
- ref.$onReadyPromise$.then(() => setterSetVal());
2057
- }
2058
- }
2059
- });
2060
- }
2061
- }
1565
+ Object.defineProperty(prototype, memberName, {
1566
+ get() {
1567
+ return getValue(this, memberName);
1568
+ },
1569
+ set(newValue) {
1570
+ setValue(this, memberName, newValue, cmpMeta);
1571
+ },
1572
+ configurable: true,
1573
+ enumerable: true
1574
+ });
2062
1575
  } else if (flags & 1 /* isElementConstructor */ && memberFlags & 64 /* Method */) {
2063
1576
  Object.defineProperty(prototype, memberName, {
2064
1577
  value(...args) {
@@ -2098,10 +1611,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
2098
1611
  }
2099
1612
  return;
2100
1613
  }
2101
- const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
2102
- if (!propDesc.get || !!propDesc.set) {
2103
- this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
2104
- }
1614
+ this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
2105
1615
  });
2106
1616
  };
2107
1617
  Cstr.observedAttributes = Array.from(
@@ -2220,9 +1730,6 @@ var connectedCallback = (elm) => {
2220
1730
  if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
2221
1731
  const scopeId2 = addStyle(elm.shadowRoot, cmpMeta, elm.getAttribute("s-mode")) ;
2222
1732
  elm.classList.remove(scopeId2 + "-h", scopeId2 + "-s");
2223
- } else if (cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */) {
2224
- const scopeId2 = getScopeId(cmpMeta, elm.getAttribute("s-mode") );
2225
- elm["s-sc"] = scopeId2;
2226
1733
  }
2227
1734
  initializeClientHydrate(elm, cmpMeta.$tagName$, hostId, hostRef);
2228
1735
  }
@@ -2298,8 +1805,11 @@ var hostListenerOpts = (flags) => (flags & 2 /* Capture */) !== 0;
2298
1805
  // src/runtime/vdom/vdom-annotations.ts
2299
1806
  var insertVdomAnnotations = (doc2, staticComponents) => {
2300
1807
  if (doc2 != null) {
2301
- const docData = STENCIL_DOC_DATA in doc2 ? doc2[STENCIL_DOC_DATA] : { ...DEFAULT_DOC_DATA };
2302
- docData.staticComponents = new Set(staticComponents);
1808
+ const docData = {
1809
+ hostIds: 0,
1810
+ rootLevelIds: 0,
1811
+ staticComponents: new Set(staticComponents)
1812
+ };
2303
1813
  const orgLocationNodes = [];
2304
1814
  parseVNodeAnnotations(doc2, doc2.body, docData, orgLocationNodes);
2305
1815
  orgLocationNodes.forEach((orgLocationNode) => {
@@ -2316,9 +1826,6 @@ var insertVdomAnnotations = (doc2, staticComponents) => {
2316
1826
  childId = `${hostId}.${nodeId}`;
2317
1827
  if (nodeRef.nodeType === 1 /* ElementNode */) {
2318
1828
  nodeRef.setAttribute(HYDRATE_CHILD_ID, childId);
2319
- if (typeof nodeRef["s-sn"] === "string" && !nodeRef.getAttribute("slot")) {
2320
- nodeRef.setAttribute("s-sn", nodeRef["s-sn"]);
2321
- }
2322
1829
  } else if (nodeRef.nodeType === 3 /* TextNode */) {
2323
1830
  if (hostId === 0) {
2324
1831
  const textContent = (_a = nodeRef.nodeValue) == null ? void 0 : _a.trim();
@@ -2330,10 +1837,6 @@ var insertVdomAnnotations = (doc2, staticComponents) => {
2330
1837
  const commentBeforeTextNode = doc2.createComment(childId);
2331
1838
  commentBeforeTextNode.nodeValue = `${TEXT_NODE_ID}.${childId}`;
2332
1839
  insertBefore(nodeRef.parentNode, commentBeforeTextNode, nodeRef);
2333
- } else if (nodeRef.nodeType === 8 /* CommentNode */) {
2334
- const commentBeforeTextNode = doc2.createComment(childId);
2335
- commentBeforeTextNode.nodeValue = `${COMMENT_NODE_ID}.${childId}`;
2336
- nodeRef.parentNode.insertBefore(commentBeforeTextNode, nodeRef);
2337
1840
  }
2338
1841
  }
2339
1842
  let orgLocationNodeId = `${ORG_LOCATION_ID}.${childId}`;
@@ -2414,9 +1917,6 @@ var insertChildVNodeAnnotations = (doc2, vnodeChild, cmpData, hostId, depth, ind
2414
1917
  childElm["s-node-id"] = nodeId;
2415
1918
  if (childElm.nodeType === 1 /* ElementNode */) {
2416
1919
  childElm.setAttribute(HYDRATE_CHILD_ID, childId);
2417
- if (typeof childElm["s-sn"] === "string" && !childElm.getAttribute("slot")) {
2418
- childElm.setAttribute("s-sn", childElm["s-sn"]);
2419
- }
2420
1920
  } else if (childElm.nodeType === 3 /* TextNode */) {
2421
1921
  const parentNode = childElm.parentNode;
2422
1922
  const nodeName = parentNode == null ? void 0 : parentNode.nodeName;
@@ -2618,7 +2118,6 @@ function hydrateApp(win2, opts, results, afterHydrate, resolve) {
2618
2118
  };
2619
2119
  tmrId = globalThis.setTimeout(timeoutExceeded, opts.timeout);
2620
2120
  plt.$resourcesUrl$ = new URL(opts.resourcesUrl || "./", doc$1.baseURI).href;
2621
- globalScripts();
2622
2121
  patchChild2(win2.document.body);
2623
2122
  waitLoop2().then(hydratedComplete).catch(hydratedError);
2624
2123
  } catch (e) {
@@ -2842,9 +2341,7 @@ var plt = {
2842
2341
  rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
2843
2342
  ce: (eventName, opts) => new win$2.CustomEvent(eventName, opts)
2844
2343
  };
2845
- var setPlatformHelpers = (helpers) => {
2846
- Object.assign(plt, helpers);
2847
- };
2344
+ var supportsShadow = BUILD.shadowDom;
2848
2345
  var hostRefs = /* @__PURE__ */ new WeakMap();
2849
2346
  var getHostRef = (ref) => hostRefs.get(ref);
2850
2347
  var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
@@ -2869,7 +2366,7 @@ var Build = {
2869
2366
  isTesting: false
2870
2367
  };
2871
2368
  var styles = /* @__PURE__ */ new Map();
2872
-
2369
+ var modeResolutionChain = [];
2873
2370
 
2874
2371
  const transitionEndAsync = (el, expectedDuration = 0) => {
2875
2372
  return new Promise((resolve) => {
@@ -3241,6 +2738,132 @@ const reorderTwoSharp = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2
3241
2738
  const searchOutline = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path d='M221.09 64a157.09 157.09 0 10157.09 157.09A157.1 157.1 0 00221.09 64z' stroke-miterlimit='10' class='ionicon-fill-none ionicon-stroke-width'/><path stroke-linecap='round' stroke-miterlimit='10' d='M338.29 338.29L448 448' class='ionicon-fill-none ionicon-stroke-width'/></svg>";
3242
2739
  const searchSharp = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path d='M464 428L339.92 303.9a160.48 160.48 0 0030.72-94.58C370.64 120.37 298.27 48 209.32 48S48 120.37 48 209.32s72.37 161.32 161.32 161.32a160.48 160.48 0 0094.58-30.72L428 464zM209.32 319.69a110.38 110.38 0 11110.37-110.37 110.5 110.5 0 01-110.37 110.37z'/></svg>";
3243
2740
 
2741
+ // TODO(FW-2832): types
2742
+ class Config {
2743
+ constructor() {
2744
+ this.m = new Map();
2745
+ }
2746
+ reset(configObj) {
2747
+ this.m = new Map(Object.entries(configObj));
2748
+ }
2749
+ get(key, fallback) {
2750
+ const value = this.m.get(key);
2751
+ return value !== undefined ? value : fallback;
2752
+ }
2753
+ getBoolean(key, fallback = false) {
2754
+ const val = this.m.get(key);
2755
+ if (val === undefined) {
2756
+ return fallback;
2757
+ }
2758
+ if (typeof val === 'string') {
2759
+ return val === 'true';
2760
+ }
2761
+ return !!val;
2762
+ }
2763
+ getNumber(key, fallback) {
2764
+ const val = parseFloat(this.m.get(key));
2765
+ return isNaN(val) ? (fallback !== undefined ? fallback : NaN) : val;
2766
+ }
2767
+ set(key, value) {
2768
+ this.m.set(key, value);
2769
+ }
2770
+ }
2771
+ const config = /*@__PURE__*/ new Config();
2772
+
2773
+ const getPlatforms = (win) => setupPlatforms(win);
2774
+ const isPlatform = (winOrPlatform, platform) => {
2775
+ if (typeof winOrPlatform === 'string') {
2776
+ platform = winOrPlatform;
2777
+ winOrPlatform = undefined;
2778
+ }
2779
+ return getPlatforms(winOrPlatform).includes(platform);
2780
+ };
2781
+ const setupPlatforms = (win = window) => {
2782
+ if (typeof win === 'undefined') {
2783
+ return [];
2784
+ }
2785
+ win.Ionic = win.Ionic || {};
2786
+ let platforms = win.Ionic.platforms;
2787
+ if (platforms == null) {
2788
+ platforms = win.Ionic.platforms = detectPlatforms(win);
2789
+ platforms.forEach((p) => win.document.documentElement.classList.add(`plt-${p}`));
2790
+ }
2791
+ return platforms;
2792
+ };
2793
+ const detectPlatforms = (win) => {
2794
+ const customPlatformMethods = config.get('platform');
2795
+ return Object.keys(PLATFORMS_MAP).filter((p) => {
2796
+ const customMethod = customPlatformMethods === null || customPlatformMethods === void 0 ? void 0 : customPlatformMethods[p];
2797
+ return typeof customMethod === 'function' ? customMethod(win) : PLATFORMS_MAP[p](win);
2798
+ });
2799
+ };
2800
+ const isMobileWeb = (win) => isMobile(win) && !isHybrid(win);
2801
+ const isIpad = (win) => {
2802
+ // iOS 12 and below
2803
+ if (testUserAgent(win, /iPad/i)) {
2804
+ return true;
2805
+ }
2806
+ // iOS 13+
2807
+ if (testUserAgent(win, /Macintosh/i) && isMobile(win)) {
2808
+ return true;
2809
+ }
2810
+ return false;
2811
+ };
2812
+ const isIphone = (win) => testUserAgent(win, /iPhone/i);
2813
+ const isIOS = (win) => testUserAgent(win, /iPhone|iPod/i) || isIpad(win);
2814
+ const isAndroid = (win) => testUserAgent(win, /android|sink/i);
2815
+ const isAndroidTablet = (win) => {
2816
+ return isAndroid(win) && !testUserAgent(win, /mobile/i);
2817
+ };
2818
+ const isPhablet = (win) => {
2819
+ const width = win.innerWidth;
2820
+ const height = win.innerHeight;
2821
+ const smallest = Math.min(width, height);
2822
+ const largest = Math.max(width, height);
2823
+ return smallest > 390 && smallest < 520 && largest > 620 && largest < 800;
2824
+ };
2825
+ const isTablet = (win) => {
2826
+ const width = win.innerWidth;
2827
+ const height = win.innerHeight;
2828
+ const smallest = Math.min(width, height);
2829
+ const largest = Math.max(width, height);
2830
+ return isIpad(win) || isAndroidTablet(win) || (smallest > 460 && smallest < 820 && largest > 780 && largest < 1400);
2831
+ };
2832
+ const isMobile = (win) => matchMedia$1(win, '(any-pointer:coarse)');
2833
+ const isDesktop = (win) => !isMobile(win);
2834
+ const isHybrid = (win) => isCordova(win) || isCapacitorNative(win);
2835
+ const isCordova = (win) => !!(win['cordova'] || win['phonegap'] || win['PhoneGap']);
2836
+ const isCapacitorNative = (win) => {
2837
+ const capacitor = win['Capacitor'];
2838
+ return !!(capacitor === null || capacitor === void 0 ? void 0 : capacitor.isNative);
2839
+ };
2840
+ const isElectron = (win) => testUserAgent(win, /electron/i);
2841
+ const isPWA = (win) => { var _a; return !!(((_a = win.matchMedia) === null || _a === void 0 ? void 0 : _a.call(win, '(display-mode: standalone)').matches) || win.navigator.standalone); };
2842
+ const testUserAgent = (win, expr) => expr.test(win.navigator.userAgent);
2843
+ const matchMedia$1 = (win, query) => { var _a; return (_a = win.matchMedia) === null || _a === void 0 ? void 0 : _a.call(win, query).matches; };
2844
+ const PLATFORMS_MAP = {
2845
+ ipad: isIpad,
2846
+ iphone: isIphone,
2847
+ ios: isIOS,
2848
+ android: isAndroid,
2849
+ phablet: isPhablet,
2850
+ tablet: isTablet,
2851
+ cordova: isCordova,
2852
+ capacitor: isCapacitorNative,
2853
+ electron: isElectron,
2854
+ pwa: isPWA,
2855
+ mobile: isMobile,
2856
+ mobileweb: isMobileWeb,
2857
+ desktop: isDesktop,
2858
+ hybrid: isHybrid,
2859
+ };
2860
+
2861
+ // TODO(FW-2832): types
2862
+ let defaultMode;
2863
+ const getIonMode$1 = (ref) => {
2864
+ return (ref && getMode(ref)) || defaultMode;
2865
+ };
2866
+
3244
2867
  const accordionIosCss = ":host{display:block;position:relative;width:100%;background-color:var(--ion-background-color, #ffffff);overflow:hidden;z-index:0}:host(.accordion-expanding) ::slotted(ion-item[slot=header]),:host(.accordion-expanded) ::slotted(ion-item[slot=header]){--border-width:0px}:host(.accordion-animated){-webkit-transition:all 300ms cubic-bezier(0.25, 0.8, 0.5, 1);transition:all 300ms cubic-bezier(0.25, 0.8, 0.5, 1)}:host(.accordion-animated) #content{-webkit-transition:max-height 300ms cubic-bezier(0.25, 0.8, 0.5, 1);transition:max-height 300ms cubic-bezier(0.25, 0.8, 0.5, 1)}#content{overflow:hidden;will-change:max-height}:host(.accordion-collapsing) #content{max-height:0 !important}:host(.accordion-collapsed) #content{display:none}:host(.accordion-expanding) #content{max-height:0}:host(.accordion-expanding) #content-wrapper{overflow:auto}:host(.accordion-disabled) #header,:host(.accordion-readonly) #header,:host(.accordion-disabled) #content,:host(.accordion-readonly) #content{pointer-events:none}:host(.accordion-disabled) #header,:host(.accordion-disabled) #content{opacity:0.4}@media (prefers-reduced-motion: reduce){:host,#content{-webkit-transition:none !important;transition:none !important}}:host(.accordion-next) ::slotted(ion-item[slot=header]){--border-width:0.55px 0px 0.55px 0px}";
3245
2868
  var IonAccordionIosStyle0 = accordionIosCss;
3246
2869
 
@@ -4659,9 +4282,9 @@ const now = (ev) => {
4659
4282
  };
4660
4283
 
4661
4284
  var index = /*#__PURE__*/Object.freeze({
4662
- __proto__: null,
4663
- createGesture: createGesture,
4664
- GESTURE_CONTROLLER: GESTURE_CONTROLLER
4285
+ __proto__: null,
4286
+ createGesture: createGesture,
4287
+ GESTURE_CONTROLLER: GESTURE_CONTROLLER
4665
4288
  });
4666
4289
 
4667
4290
  const createButtonActiveGesture = (el, isButton) => {
@@ -9580,23 +9203,8 @@ const updateScrollDetail = (detail, el, timestamp, shouldStart) => {
9580
9203
 
9581
9204
  const ION_FOCUSED = 'ion-focused';
9582
9205
  const ION_FOCUSABLE = 'ion-focusable';
9583
- const FOCUS_KEYS = [
9584
- 'Tab',
9585
- 'ArrowDown',
9586
- 'Space',
9587
- 'Escape',
9588
- ' ',
9589
- 'Shift',
9590
- 'Enter',
9591
- 'ArrowLeft',
9592
- 'ArrowRight',
9593
- 'ArrowUp',
9594
- 'Home',
9595
- 'End',
9596
- ];
9597
9206
  const startFocusVisible = (rootEl) => {
9598
9207
  let currentFocus = [];
9599
- let keyboardMode = true;
9600
9208
  const ref = rootEl ? rootEl.shadowRoot : document;
9601
9209
  const root = rootEl ? rootEl : document.body;
9602
9210
  const setFocus = (elements) => {
@@ -9605,39 +9213,24 @@ const startFocusVisible = (rootEl) => {
9605
9213
  currentFocus = elements;
9606
9214
  };
9607
9215
  const pointerDown = () => {
9608
- keyboardMode = false;
9609
9216
  setFocus([]);
9610
9217
  };
9611
- const onKeydown = (ev) => {
9612
- keyboardMode = FOCUS_KEYS.includes(ev.key);
9613
- if (!keyboardMode) {
9614
- setFocus([]);
9615
- }
9616
- };
9617
9218
  const onFocusin = (ev) => {
9618
- if (keyboardMode && ev.composedPath !== undefined) {
9619
- const toFocus = ev.composedPath().filter((el) => {
9620
- // TODO(FW-2832): type
9621
- if (el.classList) {
9622
- return el.classList.contains(ION_FOCUSABLE);
9623
- }
9624
- return false;
9625
- });
9626
- setFocus(toFocus);
9627
- }
9219
+ const toFocus = ev.composedPath().filter((el) => {
9220
+ return el instanceof HTMLElement && el.classList.contains(ION_FOCUSABLE);
9221
+ });
9222
+ setFocus(toFocus);
9628
9223
  };
9629
9224
  const onFocusout = () => {
9630
9225
  if (ref.activeElement === root) {
9631
9226
  setFocus([]);
9632
9227
  }
9633
9228
  };
9634
- ref.addEventListener('keydown', onKeydown);
9635
9229
  ref.addEventListener('focusin', onFocusin);
9636
9230
  ref.addEventListener('focusout', onFocusout);
9637
9231
  ref.addEventListener('touchstart', pointerDown, { passive: true });
9638
9232
  ref.addEventListener('mousedown', pointerDown);
9639
9233
  const destroy = () => {
9640
- ref.removeEventListener('keydown', onKeydown);
9641
9234
  ref.removeEventListener('focusin', onFocusin);
9642
9235
  ref.removeEventListener('focusout', onFocusout);
9643
9236
  ref.removeEventListener('touchstart', pointerDown);
@@ -34054,9 +33647,9 @@ const iosTransitionAnimation = (navEl, opts) => {
34054
33647
  const LARGE_TITLE_SIZE_OFFSET = 10;
34055
33648
 
34056
33649
  var ios_transition = /*#__PURE__*/Object.freeze({
34057
- __proto__: null,
34058
- shadow: shadow,
34059
- iosTransitionAnimation: iosTransitionAnimation
33650
+ __proto__: null,
33651
+ shadow: shadow,
33652
+ iosTransitionAnimation: iosTransitionAnimation
34060
33653
  });
34061
33654
 
34062
33655
  const mdTransitionAnimation = (_, opts) => {
@@ -34107,8 +33700,8 @@ const mdTransitionAnimation = (_, opts) => {
34107
33700
  };
34108
33701
 
34109
33702
  var md_transition = /*#__PURE__*/Object.freeze({
34110
- __proto__: null,
34111
- mdTransitionAnimation: mdTransitionAnimation
33703
+ __proto__: null,
33704
+ mdTransitionAnimation: mdTransitionAnimation
34112
33705
  });
34113
33706
 
34114
33707
  const createSwipeBackGesture = (el, canStartHandler, onStartHandler, onMoveHandler, onEndHandler) => {
@@ -34182,8 +33775,8 @@ const createSwipeBackGesture = (el, canStartHandler, onStartHandler, onMoveHandl
34182
33775
  };
34183
33776
 
34184
33777
  var swipeBack = /*#__PURE__*/Object.freeze({
34185
- __proto__: null,
34186
- createSwipeBackGesture: createSwipeBackGesture
33778
+ __proto__: null,
33779
+ createSwipeBackGesture: createSwipeBackGesture
34187
33780
  });
34188
33781
 
34189
33782
  exports.hydrateApp = hydrateApp;
@@ -34196,105 +33789,8 @@ exports.hydrateApp = hydrateApp;
34196
33789
  hydrateAppClosure($stencilWindow);
34197
33790
  }
34198
33791
 
34199
- // src/app-data/index.ts
34200
- var BUILD = {
34201
- allRenderFn: false,
34202
- cmpDidLoad: true,
34203
- cmpDidUnload: false,
34204
- cmpDidUpdate: true,
34205
- cmpDidRender: true,
34206
- cmpWillLoad: true,
34207
- cmpWillUpdate: true,
34208
- cmpWillRender: true,
34209
- connectedCallback: true,
34210
- disconnectedCallback: true,
34211
- element: true,
34212
- event: true,
34213
- hasRenderFn: true,
34214
- lifecycle: true,
34215
- hostListener: true,
34216
- hostListenerTargetWindow: true,
34217
- hostListenerTargetDocument: true,
34218
- hostListenerTargetBody: true,
34219
- hostListenerTargetParent: false,
34220
- hostListenerTarget: true,
34221
- member: true,
34222
- method: true,
34223
- mode: true,
34224
- observeAttribute: true,
34225
- prop: true,
34226
- propMutable: true,
34227
- reflect: true,
34228
- scoped: true,
34229
- shadowDom: true,
34230
- slot: true,
34231
- cssAnnotations: true,
34232
- state: true,
34233
- style: true,
34234
- formAssociated: false,
34235
- svg: true,
34236
- updatable: true,
34237
- vdomAttribute: true,
34238
- vdomXlink: true,
34239
- vdomClass: true,
34240
- vdomFunctional: true,
34241
- vdomKey: true,
34242
- vdomListener: true,
34243
- vdomRef: true,
34244
- vdomPropOrAttr: true,
34245
- vdomRender: true,
34246
- vdomStyle: true,
34247
- vdomText: true,
34248
- watchCallback: true,
34249
- taskQueue: true,
34250
- hotModuleReplacement: false,
34251
- isDebug: false,
34252
- isDev: false,
34253
- isTesting: false,
34254
- hydrateServerSide: false,
34255
- hydrateClientSide: false,
34256
- lifecycleDOMEvents: false,
34257
- lazyLoad: false,
34258
- profile: false,
34259
- slotRelocation: true,
34260
- // TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior
34261
- appendChildSlotFix: false,
34262
- // TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior
34263
- cloneNodeFix: false,
34264
- hydratedAttribute: false,
34265
- hydratedClass: true,
34266
- // TODO(STENCIL-1305): remove this option
34267
- scriptDataOpts: false,
34268
- // TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior
34269
- scopedSlotTextContentFix: false,
34270
- // TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
34271
- shadowDomShim: false,
34272
- // TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior
34273
- slotChildNodesFix: false,
34274
- invisiblePrehydration: true,
34275
- propBoolean: true,
34276
- propNumber: true,
34277
- propString: true,
34278
- constructableCSS: true,
34279
- cmpShouldUpdate: true,
34280
- devTools: false,
34281
- shadowDelegatesFocus: true,
34282
- initializeNextTick: false,
34283
- asyncLoading: true,
34284
- asyncQueue: false,
34285
- transformTagName: false,
34286
- attachStyles: true,
34287
- // TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior
34288
- experimentalSlotFixes: false
34289
- };
34290
- var Env = {};
34291
- var NAMESPACE = (
34292
- /* default */
34293
- "app"
34294
- );
34295
-
34296
33792
  /*
34297
- Stencil Hydrate Runner v4.23.0-dev.1735628762.fb8335e | MIT Licensed | https://stenciljs.com
33793
+ Stencil Hydrate Runner v4.20.0 | MIT Licensed | https://stenciljs.com
34298
33794
  */
34299
33795
  var __defProp = Object.defineProperty;
34300
33796
  var __export = (target, all) => {
@@ -34307,8 +33803,6 @@ var CONTENT_REF_ID = "r";
34307
33803
  var ORG_LOCATION_ID = "o";
34308
33804
  var SLOT_NODE_ID = "s";
34309
33805
  var TEXT_NODE_ID = "t";
34310
- var HYDRATE_ID = "s-id";
34311
- var STENCIL_DOC_DATA = "_stencilDocData";
34312
33806
  var XLINK_NS = "http://www.w3.org/1999/xlink";
34313
33807
 
34314
33808
  // src/mock-doc/attribute.ts
@@ -34617,8 +34111,8 @@ function jsCaseToCssCase(str) {
34617
34111
 
34618
34112
  // src/mock-doc/custom-element-registry.ts
34619
34113
  var MockCustomElementRegistry = class {
34620
- constructor(win2) {
34621
- this.win = win2;
34114
+ constructor(win) {
34115
+ this.win = win;
34622
34116
  }
34623
34117
  define(tagName, cstr, options) {
34624
34118
  if (tagName.toLowerCase() !== tagName) {
@@ -34640,19 +34134,19 @@ var MockCustomElementRegistry = class {
34640
34134
  this.__whenDefined.delete(tagName);
34641
34135
  }
34642
34136
  }
34643
- const doc2 = this.win.document;
34644
- if (doc2 != null) {
34645
- const hosts = doc2.querySelectorAll(tagName);
34137
+ const doc = this.win.document;
34138
+ if (doc != null) {
34139
+ const hosts = doc.querySelectorAll(tagName);
34646
34140
  hosts.forEach((host) => {
34647
34141
  if (upgradedElements.has(host) === false) {
34648
- tempDisableCallbacks.add(doc2);
34649
- const upgradedCmp = createCustomElement(this, doc2, tagName);
34142
+ tempDisableCallbacks.add(doc);
34143
+ const upgradedCmp = createCustomElement(this, doc, tagName);
34650
34144
  for (let i = 0; i < host.childNodes.length; i++) {
34651
34145
  const childNode = host.childNodes[i];
34652
34146
  childNode.remove();
34653
34147
  upgradedCmp.appendChild(childNode);
34654
34148
  }
34655
- tempDisableCallbacks.delete(doc2);
34149
+ tempDisableCallbacks.delete(doc);
34656
34150
  if (proxyElements.has(host)) {
34657
34151
  proxyElements.set(host, upgradedCmp);
34658
34152
  }
@@ -34706,8 +34200,8 @@ var MockCustomElementRegistry = class {
34706
34200
  });
34707
34201
  }
34708
34202
  };
34709
- function createCustomElement(customElements2, ownerDocument, tagName) {
34710
- const Cstr = customElements2.get(tagName);
34203
+ function createCustomElement(customElements, ownerDocument, tagName) {
34204
+ const Cstr = customElements.get(tagName);
34711
34205
  if (Cstr != null) {
34712
34206
  const cmp = new Cstr(ownerDocument);
34713
34207
  cmp.nodeName = tagName.toUpperCase();
@@ -34755,8 +34249,8 @@ function connectNode(ownerDocument, node) {
34755
34249
  node.ownerDocument = ownerDocument;
34756
34250
  if (node.nodeType === 1 /* ELEMENT_NODE */) {
34757
34251
  if (ownerDocument != null && node.nodeName.includes("-")) {
34758
- const win2 = ownerDocument.defaultView;
34759
- if (win2 != null && typeof node.connectedCallback === "function" && node.isConnected) {
34252
+ const win = ownerDocument.defaultView;
34253
+ if (win != null && typeof node.connectedCallback === "function" && node.isConnected) {
34760
34254
  fireConnectedCallback(node);
34761
34255
  }
34762
34256
  const shadowRoot = node.shadowRoot;
@@ -39164,7 +38658,7 @@ var OpenElementStack = class {
39164
38658
  get currentTmplContentOrNode() {
39165
38659
  return this._isInTemplate() ? this.treeAdapter.getTemplateContent(this.current) : this.current;
39166
38660
  }
39167
- constructor(document2, treeAdapter, handler) {
38661
+ constructor(document, treeAdapter, handler) {
39168
38662
  this.treeAdapter = treeAdapter;
39169
38663
  this.handler = handler;
39170
38664
  this.items = [];
@@ -39172,7 +38666,7 @@ var OpenElementStack = class {
39172
38666
  this.stackTop = -1;
39173
38667
  this.tmplCount = 0;
39174
38668
  this.currentTagId = TAG_ID.UNKNOWN;
39175
- this.current = document2;
38669
+ this.current = document;
39176
38670
  }
39177
38671
  //Index of element
39178
38672
  _indexOf(element) {
@@ -39589,8 +39083,8 @@ var defaultTreeAdapter = {
39589
39083
  getTemplateContent(templateElement) {
39590
39084
  return templateElement.content;
39591
39085
  },
39592
- setDocumentType(document2, name, publicId, systemId) {
39593
- const doctypeNode = document2.childNodes.find((node) => node.nodeName === "#documentType");
39086
+ setDocumentType(document, name, publicId, systemId) {
39087
+ const doctypeNode = document.childNodes.find((node) => node.nodeName === "#documentType");
39594
39088
  if (doctypeNode) {
39595
39089
  doctypeNode.name = name;
39596
39090
  doctypeNode.publicId = publicId;
@@ -39603,14 +39097,14 @@ var defaultTreeAdapter = {
39603
39097
  systemId,
39604
39098
  parentNode: null
39605
39099
  };
39606
- defaultTreeAdapter.appendChild(document2, node);
39100
+ defaultTreeAdapter.appendChild(document, node);
39607
39101
  }
39608
39102
  },
39609
- setDocumentMode(document2, mode) {
39610
- document2.mode = mode;
39103
+ setDocumentMode(document, mode) {
39104
+ document.mode = mode;
39611
39105
  },
39612
- getDocumentMode(document2) {
39613
- return document2.mode;
39106
+ getDocumentMode(document) {
39107
+ return document.mode;
39614
39108
  },
39615
39109
  detachNode(node) {
39616
39110
  if (node.parentNode) {
@@ -40091,7 +39585,7 @@ var defaultParserOptions = {
40091
39585
  onParseError: null
40092
39586
  };
40093
39587
  var Parser = class {
40094
- constructor(options, document2, fragmentContext = null, scriptHandler = null) {
39588
+ constructor(options, document, fragmentContext = null, scriptHandler = null) {
40095
39589
  this.fragmentContext = fragmentContext;
40096
39590
  this.scriptHandler = scriptHandler;
40097
39591
  this.currentToken = null;
@@ -40116,7 +39610,7 @@ var Parser = class {
40116
39610
  if (this.onParseError) {
40117
39611
  this.options.sourceCodeLocationInfo = true;
40118
39612
  }
40119
- this.document = document2 !== null && document2 !== void 0 ? document2 : this.treeAdapter.createDocument();
39613
+ this.document = document !== null && document !== void 0 ? document : this.treeAdapter.createDocument();
40120
39614
  this.tokenizer = new Tokenizer(this.options, this);
40121
39615
  this.activeFormattingElements = new FormattingElementList(this.treeAdapter);
40122
39616
  this.fragmentContextID = fragmentContext ? getTagID(this.treeAdapter.getTagName(fragmentContext)) : TAG_ID.UNKNOWN;
@@ -43093,11 +42587,11 @@ function parseFragment(fragmentContext, html, options) {
43093
42587
  // src/mock-doc/parse-util.ts
43094
42588
  var docParser = /* @__PURE__ */ new WeakMap();
43095
42589
  function parseDocumentUtil(ownerDocument, html) {
43096
- const doc2 = parse(html.trim(), getParser(ownerDocument));
43097
- doc2.documentElement = doc2.firstElementChild;
43098
- doc2.head = doc2.documentElement.firstElementChild;
43099
- doc2.body = doc2.head.nextElementSibling;
43100
- return doc2;
42590
+ const doc = parse(html.trim(), getParser(ownerDocument));
42591
+ doc.documentElement = doc.firstElementChild;
42592
+ doc.head = doc.documentElement.firstElementChild;
42593
+ doc.body = doc.head.nextElementSibling;
42594
+ return doc;
43101
42595
  }
43102
42596
  function parseFragmentUtil(ownerDocument, html) {
43103
42597
  if (typeof html === "string") {
@@ -43115,9 +42609,9 @@ function getParser(ownerDocument) {
43115
42609
  }
43116
42610
  const treeAdapter = {
43117
42611
  createDocument() {
43118
- const doc2 = ownerDocument.createElement("#document" /* DOCUMENT_NODE */);
43119
- doc2["x-mode"] = "no-quirks";
43120
- return doc2;
42612
+ const doc = ownerDocument.createElement("#document" /* DOCUMENT_NODE */);
42613
+ doc["x-mode"] = "no-quirks";
42614
+ return doc;
43121
42615
  },
43122
42616
  setNodeSourceCodeLocation(node, location2) {
43123
42617
  node.sourceCodeLocation = location2;
@@ -43155,22 +42649,22 @@ function getParser(ownerDocument) {
43155
42649
  getTemplateContent(templateElement) {
43156
42650
  return templateElement.content;
43157
42651
  },
43158
- setDocumentType(doc2, name, publicId, systemId) {
43159
- let doctypeNode = doc2.childNodes.find((n) => n.nodeType === 10 /* DOCUMENT_TYPE_NODE */);
42652
+ setDocumentType(doc, name, publicId, systemId) {
42653
+ let doctypeNode = doc.childNodes.find((n) => n.nodeType === 10 /* DOCUMENT_TYPE_NODE */);
43160
42654
  if (doctypeNode == null) {
43161
42655
  doctypeNode = ownerDocument.createDocumentTypeNode();
43162
- doc2.insertBefore(doctypeNode, doc2.firstChild);
42656
+ doc.insertBefore(doctypeNode, doc.firstChild);
43163
42657
  }
43164
42658
  doctypeNode.nodeValue = "!DOCTYPE";
43165
42659
  doctypeNode["x-name"] = name;
43166
42660
  doctypeNode["x-publicId"] = publicId;
43167
42661
  doctypeNode["x-systemId"] = systemId;
43168
42662
  },
43169
- setDocumentMode(doc2, mode) {
43170
- doc2["x-mode"] = mode;
42663
+ setDocumentMode(doc, mode) {
42664
+ doc["x-mode"] = mode;
43171
42665
  },
43172
- getDocumentMode(doc2) {
43173
- return doc2["x-mode"];
42666
+ getDocumentMode(doc) {
42667
+ return doc["x-mode"];
43174
42668
  },
43175
42669
  detachNode(node) {
43176
42670
  node.remove();
@@ -43302,9 +42796,9 @@ var jquery_default = (
43302
42796
  nodeName: "HTML"
43303
42797
  }
43304
42798
  }
43305
- }, function(window2, noGlobal) {
42799
+ }, function(window, noGlobal) {
43306
42800
  "use strict";
43307
- if (!window2.document) {
42801
+ if (!window.document) {
43308
42802
  throw new Error("jQuery requires a window with a document");
43309
42803
  }
43310
42804
  var arr = [];
@@ -43339,16 +42833,16 @@ var jquery_default = (
43339
42833
  }
43340
42834
  return type === "array" || length === 0 || typeof length === "number" && length > 0 && length - 1 in obj;
43341
42835
  }
43342
- var document2 = window2.document;
42836
+ var document = window.document;
43343
42837
  var preservedScriptAttributes = {
43344
42838
  type: true,
43345
42839
  src: true,
43346
42840
  nonce: true,
43347
42841
  noModule: true
43348
42842
  };
43349
- function DOMEval(code, node, doc2) {
43350
- doc2 = doc2 || document2;
43351
- var i2, script = doc2.createElement("script");
42843
+ function DOMEval(code, node, doc) {
42844
+ doc = doc || document;
42845
+ var i2, script = doc.createElement("script");
43352
42846
  script.text = code;
43353
42847
  if (node) {
43354
42848
  for (i2 in preservedScriptAttributes) {
@@ -43357,7 +42851,7 @@ var jquery_default = (
43357
42851
  }
43358
42852
  }
43359
42853
  }
43360
- doc2.head.appendChild(script).parentNode.removeChild(script);
42854
+ doc.head.appendChild(script).parentNode.removeChild(script);
43361
42855
  }
43362
42856
  const jQuery = {};
43363
42857
  var version = "4.0.0-pre+9352011a7.dirty +selector", rhtmlSuffix = /HTML$/i, jQueryOrig = function(selector, context) {
@@ -43494,8 +42988,8 @@ var jquery_default = (
43494
42988
  },
43495
42989
  // Evaluates a script in a provided context; falls back to the global one
43496
42990
  // if not specified.
43497
- globalEval: function(code, options, doc2) {
43498
- DOMEval(code, { nonce: options && options.nonce }, doc2);
42991
+ globalEval: function(code, options, doc) {
42992
+ DOMEval(code, { nonce: options && options.nonce }, doc);
43499
42993
  },
43500
42994
  each: function(obj, callback) {
43501
42995
  var length, i2 = 0;
@@ -43622,9 +43116,9 @@ var jquery_default = (
43622
43116
  }
43623
43117
  var pop = arr.pop;
43624
43118
  var whitespace = "[\\x20\\t\\r\\n\\f]";
43625
- var isIE = document2.documentMode;
43119
+ var isIE = document.documentMode;
43626
43120
  try {
43627
- document2.querySelector(":has(*,:jqfake)");
43121
+ document.querySelector(":has(*,:jqfake)");
43628
43122
  support.cssHas = false;
43629
43123
  } catch (e) {
43630
43124
  support.cssHas = true;
@@ -43656,7 +43150,7 @@ var jquery_default = (
43656
43150
  var rleadingCombinator = new RegExp("^" + whitespace + "*([>+~]|" + whitespace + ")" + whitespace + "*");
43657
43151
  var rdescend = new RegExp(whitespace + "|>");
43658
43152
  var rsibling = /[+~]/;
43659
- var documentElement = document2.documentElement;
43153
+ var documentElement = document.documentElement;
43660
43154
  var matches2 = documentElement.matches || documentElement.msMatchesSelector;
43661
43155
  function createCache() {
43662
43156
  var keys = [];
@@ -43825,10 +43319,10 @@ var jquery_default = (
43825
43319
  1
43826
43320
  );
43827
43321
  if (compare & 1) {
43828
- if (a == document2 || a.ownerDocument == document2 && jQuery.contains(document2, a)) {
43322
+ if (a == document || a.ownerDocument == document && jQuery.contains(document, a)) {
43829
43323
  return -1;
43830
43324
  }
43831
- if (b == document2 || b.ownerDocument == document2 && jQuery.contains(document2, b)) {
43325
+ if (b == document || b.ownerDocument == document && jQuery.contains(document, b)) {
43832
43326
  return 1;
43833
43327
  }
43834
43328
  return 0;
@@ -43984,14 +43478,14 @@ var jquery_default = (
43984
43478
  });
43985
43479
  }
43986
43480
  function setDocument(node) {
43987
- var subWindow, doc2 = node ? node.ownerDocument || node : document2;
43988
- if (doc2 == document$1 || doc2.nodeType !== 9) {
43481
+ var subWindow, doc = node ? node.ownerDocument || node : document;
43482
+ if (doc == document$1 || doc.nodeType !== 9) {
43989
43483
  return;
43990
43484
  }
43991
- document$1 = doc2;
43485
+ document$1 = doc;
43992
43486
  documentElement$1 = document$1.documentElement;
43993
43487
  documentIsHTML = !jQuery.isXMLDoc(document$1);
43994
- if (isIE && document2 != document$1 && (subWindow = document$1.defaultView) && subWindow.top !== subWindow) {
43488
+ if (isIE && document != document$1 && (subWindow = document$1.defaultView) && subWindow.top !== subWindow) {
43995
43489
  subWindow.addEventListener("unload", unloadHandler);
43996
43490
  }
43997
43491
  }
@@ -44222,7 +43716,7 @@ var jquery_default = (
44222
43716
  }),
44223
43717
  // Miscellaneous
44224
43718
  target: function(elem) {
44225
- var hash = window2.location && window2.location.hash;
43719
+ var hash = window.location && window.location.hash;
44226
43720
  return hash && hash.slice(1) === elem.id;
44227
43721
  },
44228
43722
  root: function(elem) {
@@ -44724,7 +44218,7 @@ function serializeNodeToHtml(elm, serializationOptions = {}) {
44724
44218
  text: []
44725
44219
  };
44726
44220
  let renderedNode = "";
44727
- const children = !opts.fullDocument && elm.body ? Array.from(elm.body.childNodes) : opts.outerHtml ? [elm] : Array.from(getChildNodes(elm));
44221
+ const children = !opts.fullDocument && elm.body ? Array.from(elm.body.childNodes) : opts.outerHtml ? [elm] : Array.from(elm.childNodes);
44728
44222
  for (let i = 0, ii = children.length; i < ii; i++) {
44729
44223
  const child = children[i];
44730
44224
  const chunks = Array.from(streamToHtml(child, opts, output));
@@ -44757,10 +44251,7 @@ function* streamToHtml(node, opts, output) {
44757
44251
  const tag = tagName === shadowRootTag ? "template" : tagName;
44758
44252
  yield "<" + tag;
44759
44253
  output.currentLineWidth += tag.length + 1;
44760
- if (tag === "template" && (!node.getAttribute || !node.getAttribute("shadowrootmode")) && /**
44761
- * If the node is a shadow root, we want to add the `shadowrootmode` attribute
44762
- */
44763
- ("host" in node || node.nodeName.toLocaleLowerCase() === shadowRootTag)) {
44254
+ if (tag === "template") {
44764
44255
  const mode = ` shadowrootmode="open"`;
44765
44256
  yield mode;
44766
44257
  output.currentLineWidth += mode.length;
@@ -44844,8 +44335,7 @@ style="${cssText}">`;
44844
44335
  output.indent = output.indent + ((_c = opts.indentSpaces) != null ? _c : 0);
44845
44336
  yield* streamToHtml(shadowRoot, opts, output);
44846
44337
  output.indent = output.indent - ((_d = opts.indentSpaces) != null ? _d : 0);
44847
- const childNodes = getChildNodes(node);
44848
- if (opts.newLines && (childNodes.length === 0 || childNodes.length === 1 && childNodes[0].nodeType === 3 /* TEXT_NODE */ && ((_e = childNodes[0].nodeValue) == null ? void 0 : _e.trim()) === "")) {
44338
+ if (opts.newLines && (node.childNodes.length === 0 || node.childNodes.length === 1 && node.childNodes[0].nodeType === 3 /* TEXT_NODE */ && ((_e = node.childNodes[0].nodeValue) == null ? void 0 : _e.trim()) === "")) {
44849
44339
  yield "\n";
44850
44340
  output.currentLineWidth = 0;
44851
44341
  for (let i = 0; i < output.indent; i++) {
@@ -44856,7 +44346,7 @@ style="${cssText}">`;
44856
44346
  }
44857
44347
  if (opts.excludeTagContent == null || opts.excludeTagContent.includes(tagName) === false) {
44858
44348
  const tag = tagName === shadowRootTag ? "template" : tagName;
44859
- const childNodes = tagName === "template" ? node.content.childNodes : getChildNodes(node);
44349
+ const childNodes = tagName === "template" ? node.content.childNodes : node.childNodes;
44860
44350
  const childNodeLength = childNodes.length;
44861
44351
  if (childNodeLength > 0) {
44862
44352
  if (childNodeLength === 1 && childNodes[0].nodeType === 3 /* TEXT_NODE */ && (typeof childNodes[0].nodeValue !== "string" || childNodes[0].nodeValue.trim() === "")) {
@@ -44866,13 +44356,6 @@ style="${cssText}">`;
44866
44356
  output.indent = output.indent + ((_h = opts.indentSpaces) != null ? _h : 0);
44867
44357
  }
44868
44358
  for (let i = 0; i < childNodeLength; i++) {
44869
- const sId = node.attributes.getNamedItem(HYDRATE_ID);
44870
- const isStencilDeclarativeShadowDOM = childNodes[i].nodeName.toLowerCase() === "template" && sId;
44871
- if (isStencilDeclarativeShadowDOM) {
44872
- yield `
44873
- ${" ".repeat(output.indent)}<!--r.${sId.value}-->`;
44874
- continue;
44875
- }
44876
44359
  yield* streamToHtml(childNodes[i], opts, output);
44877
44360
  }
44878
44361
  if (ignoreTag === false) {
@@ -45029,9 +44512,6 @@ function isWithinWhitespaceSensitive(node) {
45029
44512
  }
45030
44513
  return false;
45031
44514
  }
45032
- function getChildNodes(node) {
45033
- return node.__childNodes || node.childNodes;
45034
- }
45035
44515
  var NON_ESCAPABLE_CONTENT = /* @__PURE__ */ new Set([
45036
44516
  "STYLE",
45037
44517
  "SCRIPT",
@@ -45301,12 +44781,10 @@ var MockElement = class extends MockNode2 {
45301
44781
  attachInternals() {
45302
44782
  return new Proxy({}, {
45303
44783
  get: function(_target, prop, _receiver) {
45304
- if ("process" in globalThis && globalThis.process.env.__STENCIL_SPEC_TESTS__) {
45305
- console.error(
45306
- `NOTE: Property ${String(prop)} was accessed on ElementInternals, but this property is not implemented.
45307
- Testing components with ElementInternals is fully supported in e2e tests.`
45308
- );
45309
- }
44784
+ console.error(
44785
+ `NOTE: Property ${String(prop)} was accessed on ElementInternals, but this property is not implemented.
44786
+ Testing components with ElementInternals is fully supported in e2e tests.`
44787
+ );
45310
44788
  }
45311
44789
  });
45312
44790
  }
@@ -46228,9 +45706,9 @@ function createElement(ownerDocument, tagName) {
46228
45706
  return new MockUListElement(ownerDocument);
46229
45707
  }
46230
45708
  if (ownerDocument != null && tagName.includes("-")) {
46231
- const win2 = ownerDocument.defaultView;
46232
- if (win2 != null && win2.customElements != null) {
46233
- return createCustomElement(win2.customElements, ownerDocument, tagName);
45709
+ const win = ownerDocument.defaultView;
45710
+ if (win != null && win.customElements != null) {
45711
+ return createCustomElement(win.customElements, ownerDocument, tagName);
46234
45712
  }
46235
45713
  }
46236
45714
  return new MockHTMLElement(ownerDocument, tagName);
@@ -46276,9 +45754,6 @@ var MockAnchorElement = class extends MockHTMLElement {
46276
45754
  this.setAttribute("href", value);
46277
45755
  }
46278
45756
  get pathname() {
46279
- if (!this.href) {
46280
- return "";
46281
- }
46282
45757
  return new URL(this.href).pathname;
46283
45758
  }
46284
45759
  };
@@ -46296,11 +45771,6 @@ patchPropAttributes(
46296
45771
  type: "submit"
46297
45772
  }
46298
45773
  );
46299
- Object.defineProperty(MockButtonElement.prototype, "form", {
46300
- get() {
46301
- return this.hasAttribute("form") ? this.getAttribute("form") : null;
46302
- }
46303
- });
46304
45774
  var MockImageElement = class extends MockHTMLElement {
46305
45775
  constructor(ownerDocument) {
46306
45776
  super(ownerDocument, "img");
@@ -46655,9 +46125,9 @@ var CanvasRenderingContext = class {
46655
46125
  }
46656
46126
  clearRect() {
46657
46127
  }
46658
- getImageData(_, __, w, h2) {
46128
+ getImageData(_, __, w, h) {
46659
46129
  return {
46660
- data: new Array(w * h2 * 4)
46130
+ data: new Array(w * h * 4)
46661
46131
  };
46662
46132
  }
46663
46133
  toDataURL() {
@@ -46719,9 +46189,9 @@ var MockCanvasElement = class extends MockHTMLElement {
46719
46189
  function fullUrl(elm, attrName) {
46720
46190
  const val = elm.getAttribute(attrName) || "";
46721
46191
  if (elm.ownerDocument != null) {
46722
- const win2 = elm.ownerDocument.defaultView;
46723
- if (win2 != null) {
46724
- const loc = win2.location;
46192
+ const win = elm.ownerDocument.defaultView;
46193
+ if (win != null) {
46194
+ const loc = win.location;
46725
46195
  if (loc != null) {
46726
46196
  try {
46727
46197
  const url = new URL(val, loc.href);
@@ -47326,71 +46796,6 @@ function resetPerformance(perf) {
47326
46796
  }
47327
46797
  }
47328
46798
 
47329
- // src/mock-doc/resize-observer.ts
47330
- var MockResizeObserver = class {
47331
- constructor() {
47332
- }
47333
- disconnect() {
47334
- }
47335
- observe() {
47336
- }
47337
- takeRecords() {
47338
- return [];
47339
- }
47340
- unobserve() {
47341
- }
47342
- };
47343
-
47344
- // src/mock-doc/shadow-root.ts
47345
- var MockShadowRoot = class extends MockDocumentFragment {
47346
- get activeElement() {
47347
- return null;
47348
- }
47349
- set adoptedStyleSheets(_adoptedStyleSheets) {
47350
- throw new Error("Unimplemented");
47351
- }
47352
- get adoptedStyleSheets() {
47353
- return [];
47354
- }
47355
- get cloneable() {
47356
- return false;
47357
- }
47358
- get delegatesFocus() {
47359
- return false;
47360
- }
47361
- get fullscreenElement() {
47362
- return null;
47363
- }
47364
- get host() {
47365
- let parent = this.parentElement();
47366
- while (parent) {
47367
- if (parent.nodeType === 11) {
47368
- return parent;
47369
- }
47370
- parent = parent.parentElement();
47371
- }
47372
- return null;
47373
- }
47374
- get mode() {
47375
- return "open";
47376
- }
47377
- get pictureInPictureElement() {
47378
- return null;
47379
- }
47380
- get pointerLockElement() {
47381
- return null;
47382
- }
47383
- get serializable() {
47384
- return false;
47385
- }
47386
- get slotAssignment() {
47387
- return "named";
47388
- }
47389
- get styleSheets() {
47390
- return [];
47391
- }
47392
- };
47393
-
47394
46799
  // src/mock-doc/storage.ts
47395
46800
  var MockStorage = class {
47396
46801
  constructor() {
@@ -47420,11 +46825,11 @@ var MockStorage = class {
47420
46825
  };
47421
46826
 
47422
46827
  // src/mock-doc/window.ts
47423
- var nativeClearInterval = globalThis.clearInterval;
47424
- var nativeClearTimeout = globalThis.clearTimeout;
47425
- var nativeSetInterval = globalThis.setInterval;
47426
- var nativeSetTimeout = globalThis.setTimeout;
47427
- var nativeURL = globalThis.URL;
46828
+ var nativeClearInterval = clearInterval;
46829
+ var nativeClearTimeout = clearTimeout;
46830
+ var nativeSetInterval = setInterval;
46831
+ var nativeSetTimeout = setTimeout;
46832
+ var nativeURL = URL;
47428
46833
  var nativeWindow = globalThis.window;
47429
46834
  var MockWindow = class {
47430
46835
  constructor(html = null) {
@@ -47491,10 +46896,10 @@ var MockWindow = class {
47491
46896
  }
47492
46897
  get Document() {
47493
46898
  if (this.__docCstr == null) {
47494
- const win2 = this;
46899
+ const win = this;
47495
46900
  this.__docCstr = class extends MockDocument {
47496
46901
  constructor() {
47497
- super(false, win2);
46902
+ super(false, win);
47498
46903
  throw new Error("Illegal constructor: cannot construct Document");
47499
46904
  }
47500
46905
  };
@@ -47519,9 +46924,6 @@ var MockWindow = class {
47519
46924
  set DocumentFragment(docFragCstr) {
47520
46925
  this.__docFragCstr = docFragCstr;
47521
46926
  }
47522
- get ShadowRoot() {
47523
- return MockShadowRoot;
47524
- }
47525
46927
  get DocumentType() {
47526
46928
  if (this.__docTypeCstr == null) {
47527
46929
  const ownerDocument = this.document;
@@ -47633,9 +47035,6 @@ var MockWindow = class {
47633
47035
  get IntersectionObserver() {
47634
47036
  return MockIntersectionObserver;
47635
47037
  }
47636
- get ResizeObserver() {
47637
- return MockResizeObserver;
47638
- }
47639
47038
  get localStorage() {
47640
47039
  if (this.__localStorage == null) {
47641
47040
  this.__localStorage = new MockStorage();
@@ -48017,14 +47416,14 @@ var MockWindow = class {
48017
47416
  }
48018
47417
  };
48019
47418
  addGlobalsToWindowPrototype(MockWindow.prototype);
48020
- function resetWindowDefaults(win2) {
48021
- win2.__clearInterval = nativeClearInterval;
48022
- win2.__clearTimeout = nativeClearTimeout;
48023
- win2.__setInterval = nativeSetInterval;
48024
- win2.__setTimeout = nativeSetTimeout;
48025
- win2.__maxTimeout = 3e4;
48026
- win2.__allowInterval = true;
48027
- win2.URL = nativeURL;
47419
+ function resetWindowDefaults(win) {
47420
+ win.__clearInterval = nativeClearInterval;
47421
+ win.__clearTimeout = nativeClearTimeout;
47422
+ win.__setInterval = nativeSetInterval;
47423
+ win.__setTimeout = nativeSetTimeout;
47424
+ win.__maxTimeout = 3e4;
47425
+ win.__allowInterval = true;
47426
+ win.URL = nativeURL;
48028
47427
  }
48029
47428
  function cloneWindow(srcWin, opts = {}) {
48030
47429
  if (srcWin == null) {
@@ -48043,72 +47442,72 @@ function cloneWindow(srcWin, opts = {}) {
48043
47442
  }
48044
47443
  return clonedWin;
48045
47444
  }
48046
- function constrainTimeouts(win2) {
48047
- win2.__allowInterval = false;
48048
- win2.__maxTimeout = 0;
47445
+ function constrainTimeouts(win) {
47446
+ win.__allowInterval = false;
47447
+ win.__maxTimeout = 0;
48049
47448
  }
48050
- function resetWindow(win2) {
48051
- if (win2 != null) {
48052
- if (win2.__timeouts) {
48053
- win2.__timeouts.forEach((timeoutId) => {
47449
+ function resetWindow(win) {
47450
+ if (win != null) {
47451
+ if (win.__timeouts) {
47452
+ win.__timeouts.forEach((timeoutId) => {
48054
47453
  nativeClearInterval(timeoutId);
48055
47454
  nativeClearTimeout(timeoutId);
48056
47455
  });
48057
- win2.__timeouts.clear();
47456
+ win.__timeouts.clear();
48058
47457
  }
48059
- if (win2.customElements && win2.customElements.clear) {
48060
- win2.customElements.clear();
47458
+ if (win.customElements && win.customElements.clear) {
47459
+ win.customElements.clear();
48061
47460
  }
48062
- resetDocument(win2.document);
48063
- resetPerformance(win2.performance);
48064
- for (const key in win2) {
48065
- if (win2.hasOwnProperty(key) && key !== "document" && key !== "performance" && key !== "customElements") {
48066
- delete win2[key];
47461
+ resetDocument(win.document);
47462
+ resetPerformance(win.performance);
47463
+ for (const key in win) {
47464
+ if (win.hasOwnProperty(key) && key !== "document" && key !== "performance" && key !== "customElements") {
47465
+ delete win[key];
48067
47466
  }
48068
47467
  }
48069
- resetWindowDefaults(win2);
48070
- resetWindowDimensions(win2);
48071
- resetEventListeners(win2);
48072
- if (win2.document != null) {
47468
+ resetWindowDefaults(win);
47469
+ resetWindowDimensions(win);
47470
+ resetEventListeners(win);
47471
+ if (win.document != null) {
48073
47472
  try {
48074
- win2.document.defaultView = win2;
47473
+ win.document.defaultView = win;
48075
47474
  } catch (e) {
48076
47475
  }
48077
47476
  }
48078
- win2.fetch = null;
48079
- win2.Headers = null;
48080
- win2.Request = null;
48081
- win2.Response = null;
48082
- win2.FetchError = null;
47477
+ win.fetch = null;
47478
+ win.Headers = null;
47479
+ win.Request = null;
47480
+ win.Response = null;
47481
+ win.FetchError = null;
48083
47482
  }
48084
47483
  }
48085
- function resetWindowDimensions(win2) {
47484
+ function resetWindowDimensions(win) {
48086
47485
  try {
48087
- win2.devicePixelRatio = 1;
48088
- win2.innerHeight = 768;
48089
- win2.innerWidth = 1366;
48090
- win2.pageXOffset = 0;
48091
- win2.pageYOffset = 0;
48092
- win2.screenLeft = 0;
48093
- win2.screenTop = 0;
48094
- win2.screenX = 0;
48095
- win2.screenY = 0;
48096
- win2.scrollX = 0;
48097
- win2.scrollY = 0;
48098
- win2.screen = {
48099
- availHeight: win2.innerHeight,
47486
+ win.devicePixelRatio = 1;
47487
+ win.innerHeight = 768;
47488
+ win.innerWidth = 1366;
47489
+ win.pageXOffset = 0;
47490
+ win.pageYOffset = 0;
47491
+ win.screenLeft = 0;
47492
+ win.screenTop = 0;
47493
+ win.screenX = 0;
47494
+ win.screenY = 0;
47495
+ win.scrollX = 0;
47496
+ win.scrollY = 0;
47497
+ win.screen = {
47498
+ availHeight: win.innerHeight,
48100
47499
  availLeft: 0,
48101
47500
  availTop: 0,
48102
- availWidth: win2.innerWidth,
47501
+ availWidth: win.innerWidth,
48103
47502
  colorDepth: 24,
48104
- height: win2.innerHeight,
47503
+ height: win.innerHeight,
48105
47504
  keepAwake: false,
48106
47505
  orientation: {
48107
47506
  angle: 0,
48108
47507
  type: "portrait-primary"
48109
47508
  },
48110
47509
  pixelDepth: 24,
48111
- width: win2.innerWidth
47510
+ width: win.innerWidth
48112
47511
  };
48113
47512
  } catch (e) {
48114
47513
  }
@@ -48116,11 +47515,11 @@ function resetWindowDimensions(win2) {
48116
47515
 
48117
47516
  // src/mock-doc/document.ts
48118
47517
  var MockDocument = class _MockDocument extends MockHTMLElement {
48119
- constructor(html = null, win2 = null) {
47518
+ constructor(html = null, win = null) {
48120
47519
  super(null, null);
48121
47520
  this.nodeName = "#document" /* DOCUMENT_NODE */;
48122
47521
  this.nodeType = 9 /* DOCUMENT_NODE */;
48123
- this.defaultView = win2;
47522
+ this.defaultView = win;
48124
47523
  this.cookie = "";
48125
47524
  this.referrer = "";
48126
47525
  this.appendChild(this.createDocumentTypeNode());
@@ -48267,10 +47666,10 @@ var MockDocument = class _MockDocument extends MockHTMLElement {
48267
47666
  }
48268
47667
  createElement(tagName) {
48269
47668
  if (tagName === "#document" /* DOCUMENT_NODE */) {
48270
- const doc2 = new _MockDocument(false);
48271
- doc2.nodeName = tagName;
48272
- doc2.parentNode = null;
48273
- return doc2;
47669
+ const doc = new _MockDocument(false);
47670
+ doc.nodeName = tagName;
47671
+ doc.parentNode = null;
47672
+ return doc;
48274
47673
  }
48275
47674
  return createElement(this, tagName);
48276
47675
  }
@@ -48310,10 +47709,10 @@ var MockDocument = class _MockDocument extends MockHTMLElement {
48310
47709
  title.textContent = value;
48311
47710
  }
48312
47711
  };
48313
- function resetDocument(doc2) {
48314
- if (doc2 != null) {
48315
- resetEventListeners(doc2);
48316
- const documentElement = doc2.documentElement;
47712
+ function resetDocument(doc) {
47713
+ if (doc != null) {
47714
+ resetEventListeners(doc);
47715
+ const documentElement = doc.documentElement;
48317
47716
  if (documentElement != null) {
48318
47717
  resetElement(documentElement);
48319
47718
  for (let i = 0, ii = documentElement.childNodes.length; i < ii; i++) {
@@ -48322,25 +47721,25 @@ function resetDocument(doc2) {
48322
47721
  childNode.childNodes.length = 0;
48323
47722
  }
48324
47723
  }
48325
- for (const key in doc2) {
48326
- if (doc2.hasOwnProperty(key) && !DOC_KEY_KEEPERS.has(key)) {
48327
- delete doc2[key];
47724
+ for (const key in doc) {
47725
+ if (doc.hasOwnProperty(key) && !DOC_KEY_KEEPERS.has(key)) {
47726
+ delete doc[key];
48328
47727
  }
48329
47728
  }
48330
47729
  try {
48331
- doc2.nodeName = "#document" /* DOCUMENT_NODE */;
47730
+ doc.nodeName = "#document" /* DOCUMENT_NODE */;
48332
47731
  } catch (e) {
48333
47732
  }
48334
47733
  try {
48335
- doc2.nodeType = 9 /* DOCUMENT_NODE */;
47734
+ doc.nodeType = 9 /* DOCUMENT_NODE */;
48336
47735
  } catch (e) {
48337
47736
  }
48338
47737
  try {
48339
- doc2.cookie = "";
47738
+ doc.cookie = "";
48340
47739
  } catch (e) {
48341
47740
  }
48342
47741
  try {
48343
- doc2.referrer = "";
47742
+ doc.referrer = "";
48344
47743
  } catch (e) {
48345
47744
  }
48346
47745
  }
@@ -48396,33 +47795,9 @@ function createWindowFromHtml(templateHtml, uniqueId) {
48396
47795
  templateWindow = new MockWindow(templateHtml);
48397
47796
  templateWindows.set(uniqueId, templateWindow);
48398
47797
  }
48399
- const win2 = cloneWindow(templateWindow);
48400
- return win2;
47798
+ const win = cloneWindow(templateWindow);
47799
+ return win;
48401
47800
  }
48402
- var Build = {
48403
- isDev: BUILD.isDev ? true : false,
48404
- isBrowser: true,
48405
- isServer: false,
48406
- isTesting: BUILD.isTesting ? true : false
48407
- };
48408
- var hostRefs = BUILD.hotModuleReplacement ? window.__STENCIL_HOSTREFS__ || (window.__STENCIL_HOSTREFS__ = /* @__PURE__ */ new WeakMap()) : /* @__PURE__ */ new WeakMap();
48409
- var STENCIL_DEV_MODE = BUILD.isTesting ? ["STENCIL:"] : [
48410
- "%cstencil",
48411
- "color: white;background:#4c47ff;font-weight: bold; font-size:10px; padding:2px 6px; border-radius: 5px"
48412
- ];
48413
- var win = typeof window !== "undefined" ? window : {};
48414
- var doc = win.document || { head: {} };
48415
- var H = win.HTMLElement || class {
48416
- };
48417
- var supportsShadow = BUILD.shadowDom;
48418
- var supportsConstructableStylesheets = BUILD.constructableCSS ? /* @__PURE__ */ (() => {
48419
- try {
48420
- new CSSStyleSheet();
48421
- return typeof new CSSStyleSheet().replaceSync === "function";
48422
- } catch (e) {
48423
- }
48424
- return false;
48425
- })() : false;
48426
47801
 
48427
47802
  // src/utils/helpers.ts
48428
47803
  var isString = (v) => typeof v === "string";
@@ -48513,21 +47888,16 @@ var unwrapErr = (result) => {
48513
47888
  throw result.value;
48514
47889
  }
48515
47890
  };
48516
- var CAPTURE_EVENT_SUFFIX = "Capture";
48517
- var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
48518
-
48519
- // src/runtime/mode.ts
48520
- var setMode = (handler) => modeResolutionChain.push(handler);
48521
47891
 
48522
47892
  // src/compiler/html/canonical-link.ts
48523
- var updateCanonicalLink = (doc2, href) => {
47893
+ var updateCanonicalLink = (doc, href) => {
48524
47894
  var _a2;
48525
- let canonicalLinkElm = doc2.head.querySelector('link[rel="canonical"]');
47895
+ let canonicalLinkElm = doc.head.querySelector('link[rel="canonical"]');
48526
47896
  if (typeof href === "string") {
48527
47897
  if (canonicalLinkElm == null) {
48528
- canonicalLinkElm = doc2.createElement("link");
47898
+ canonicalLinkElm = doc.createElement("link");
48529
47899
  canonicalLinkElm.setAttribute("rel", "canonical");
48530
- doc2.head.appendChild(canonicalLinkElm);
47900
+ doc.head.appendChild(canonicalLinkElm);
48531
47901
  }
48532
47902
  canonicalLinkElm.setAttribute("href", href);
48533
47903
  } else {
@@ -48541,11 +47911,11 @@ var updateCanonicalLink = (doc2, href) => {
48541
47911
  };
48542
47912
 
48543
47913
  // src/compiler/html/relocate-meta-charset.ts
48544
- var relocateMetaCharset = (doc2) => {
48545
- const head = doc2.head;
47914
+ var relocateMetaCharset = (doc) => {
47915
+ const head = doc.head;
48546
47916
  let charsetElm = head.querySelector("meta[charset]");
48547
47917
  if (charsetElm == null) {
48548
- charsetElm = doc2.createElement("meta");
47918
+ charsetElm = doc.createElement("meta");
48549
47919
  charsetElm.setAttribute("charset", "utf-8");
48550
47920
  } else {
48551
47921
  charsetElm.remove();
@@ -48820,13 +48190,13 @@ var parseCss = (css, filePath) => {
48820
48190
  const m = match(/^@([-\w]+)?document *([^{]+)/);
48821
48191
  if (!m) return null;
48822
48192
  const vendor = trim(m[1]);
48823
- const doc2 = trim(m[2]);
48193
+ const doc = trim(m[2]);
48824
48194
  if (!open()) return error(`@document missing '{'`);
48825
48195
  const style = comments().concat(rules());
48826
48196
  if (!close()) return error(`@document missing '}'`);
48827
48197
  return pos({
48828
48198
  type: 3 /* Document */,
48829
- document: doc2,
48199
+ document: doc,
48830
48200
  vendor,
48831
48201
  rules: style
48832
48202
  });
@@ -49152,11 +48522,11 @@ var serializeCssPage = (opts, node) => {
49152
48522
  };
49153
48523
  var serializeCssDocument = (opts, node) => {
49154
48524
  const documentCss = serializeCssMapVisit(opts, node.rules);
49155
- const doc2 = "@" + (node.vendor || "") + "document " + node.document;
48525
+ const doc = "@" + (node.vendor || "") + "document " + node.document;
49156
48526
  if (documentCss === "") {
49157
48527
  return "";
49158
48528
  }
49159
- return doc2 + "{" + documentCss + "}";
48529
+ return doc + "{" + documentCss + "}";
49160
48530
  };
49161
48531
  var serializeCssMapVisit = (opts, nodes) => {
49162
48532
  let rtn = "";
@@ -49254,12 +48624,12 @@ var collectUsedSelectors = (usedSelectors, elm) => {
49254
48624
  };
49255
48625
 
49256
48626
  // src/compiler/html/remove-unused-styles.ts
49257
- var removeUnusedStyles = (doc2, diagnostics) => {
48627
+ var removeUnusedStyles = (doc, diagnostics) => {
49258
48628
  try {
49259
- const styleElms = doc2.head.querySelectorAll(`style[data-styles]`);
48629
+ const styleElms = doc.head.querySelectorAll(`style[data-styles]`);
49260
48630
  const styleLen = styleElms.length;
49261
48631
  if (styleLen > 0) {
49262
- const usedSelectors = getUsedSelectors(doc2.documentElement);
48632
+ const usedSelectors = getUsedSelectors(doc.documentElement);
49263
48633
  for (let i = 0; i < styleLen; i++) {
49264
48634
  removeUnusedStyleText(usedSelectors, diagnostics, styleElms[i]);
49265
48635
  }
@@ -49392,49 +48762,49 @@ function collectAttributes(node) {
49392
48762
  var SKIP_ATTRS = /* @__PURE__ */ new Set(["s-id", "c-id"]);
49393
48763
 
49394
48764
  // src/hydrate/runner/patch-dom-implementation.ts
49395
- function patchDomImplementation(doc2, opts) {
49396
- let win2;
49397
- if (doc2.defaultView != null) {
48765
+ function patchDomImplementation(doc, opts) {
48766
+ let win;
48767
+ if (doc.defaultView != null) {
49398
48768
  opts.destroyWindow = true;
49399
- patchWindow(doc2.defaultView);
49400
- win2 = doc2.defaultView;
48769
+ patchWindow(doc.defaultView);
48770
+ win = doc.defaultView;
49401
48771
  } else {
49402
48772
  opts.destroyWindow = true;
49403
48773
  opts.destroyDocument = false;
49404
- win2 = new MockWindow(false);
48774
+ win = new MockWindow(false);
49405
48775
  }
49406
- if (win2.document !== doc2) {
49407
- win2.document = doc2;
48776
+ if (win.document !== doc) {
48777
+ win.document = doc;
49408
48778
  }
49409
- if (doc2.defaultView !== win2) {
49410
- doc2.defaultView = win2;
48779
+ if (doc.defaultView !== win) {
48780
+ doc.defaultView = win;
49411
48781
  }
49412
- const HTMLElement2 = doc2.documentElement.constructor.prototype;
49413
- if (typeof HTMLElement2.getRootNode !== "function") {
49414
- const elm = doc2.createElement("unknown-element");
48782
+ const HTMLElement = doc.documentElement.constructor.prototype;
48783
+ if (typeof HTMLElement.getRootNode !== "function") {
48784
+ const elm = doc.createElement("unknown-element");
49415
48785
  const HTMLUnknownElement = elm.constructor.prototype;
49416
48786
  HTMLUnknownElement.getRootNode = getRootNode;
49417
48787
  }
49418
- if (typeof doc2.createEvent === "function") {
49419
- const CustomEvent2 = doc2.createEvent("CustomEvent").constructor;
49420
- if (win2.CustomEvent !== CustomEvent2) {
49421
- win2.CustomEvent = CustomEvent2;
48788
+ if (typeof doc.createEvent === "function") {
48789
+ const CustomEvent = doc.createEvent("CustomEvent").constructor;
48790
+ if (win.CustomEvent !== CustomEvent) {
48791
+ win.CustomEvent = CustomEvent;
49422
48792
  }
49423
48793
  }
49424
48794
  try {
49425
- win2.__stencil_baseURI = doc2.baseURI;
48795
+ win.__stencil_baseURI = doc.baseURI;
49426
48796
  } catch (e) {
49427
- Object.defineProperty(doc2, "baseURI", {
48797
+ Object.defineProperty(doc, "baseURI", {
49428
48798
  get() {
49429
- const baseElm = doc2.querySelector("base[href]");
48799
+ const baseElm = doc.querySelector("base[href]");
49430
48800
  if (baseElm) {
49431
- return new URL(baseElm.getAttribute("href"), win2.location.href).href;
48801
+ return new URL(baseElm.getAttribute("href"), win.location.href).href;
49432
48802
  }
49433
- return win2.location.href;
48803
+ return win.location.href;
49434
48804
  }
49435
48805
  });
49436
48806
  }
49437
- return win2;
48807
+ return win;
49438
48808
  }
49439
48809
  function getRootNode(opts) {
49440
48810
  const isComposed = opts != null && opts.composed === true;
@@ -49587,10 +48957,10 @@ function renderCatchError(results, err2) {
49587
48957
  }
49588
48958
 
49589
48959
  // src/hydrate/runner/runtime-log.ts
49590
- function runtimeLogging(win2, opts, results) {
48960
+ function runtimeLogging(win, opts, results) {
49591
48961
  try {
49592
- const pathname = win2.location.pathname;
49593
- win2.console.error = (...msgs) => {
48962
+ const pathname = win.location.pathname;
48963
+ win.console.error = (...msgs) => {
49594
48964
  const errMsg = msgs.reduce((errMsg2, m) => {
49595
48965
  if (m) {
49596
48966
  if (m.stack != null) {
@@ -49610,7 +48980,7 @@ function runtimeLogging(win2, opts, results) {
49610
48980
  }
49611
48981
  }
49612
48982
  };
49613
- win2.console.debug = (...msgs) => {
48983
+ win.console.debug = (...msgs) => {
49614
48984
  renderBuildDiagnostic(results, "debug", "Hydrate Debug", [...msgs].join(", "));
49615
48985
  if (opts.runtimeLogging) {
49616
48986
  runtimeLog(pathname, "debug", msgs);
@@ -49618,7 +48988,7 @@ function runtimeLogging(win2, opts, results) {
49618
48988
  };
49619
48989
  if (opts.runtimeLogging) {
49620
48990
  ["log", "warn", "assert", "info", "trace"].forEach((type) => {
49621
- win2.console[type] = (...msgs) => {
48991
+ win.console[type] = (...msgs) => {
49622
48992
  runtimeLog(pathname, type, msgs);
49623
48993
  };
49624
48994
  });
@@ -49632,64 +49002,58 @@ function runtimeLog(pathname, type, msgs) {
49632
49002
  }
49633
49003
 
49634
49004
  // src/hydrate/runner/window-initialize.ts
49635
- var docData = {
49636
- hostIds: 0,
49637
- rootLevelIds: 0,
49638
- staticComponents: /* @__PURE__ */ new Set()
49639
- };
49640
- function initializeWindow(win2, doc2, opts, results) {
49005
+ function initializeWindow(win, doc, opts, results) {
49641
49006
  if (typeof opts.url === "string") {
49642
49007
  try {
49643
- win2.location.href = opts.url;
49008
+ win.location.href = opts.url;
49644
49009
  } catch (e) {
49645
49010
  }
49646
49011
  }
49647
49012
  if (typeof opts.userAgent === "string") {
49648
49013
  try {
49649
- win2.navigator.userAgent = opts.userAgent;
49014
+ win.navigator.userAgent = opts.userAgent;
49650
49015
  } catch (e) {
49651
49016
  }
49652
49017
  }
49653
49018
  if (typeof opts.cookie === "string") {
49654
49019
  try {
49655
- doc2.cookie = opts.cookie;
49020
+ doc.cookie = opts.cookie;
49656
49021
  } catch (e) {
49657
49022
  }
49658
49023
  }
49659
49024
  if (typeof opts.referrer === "string") {
49660
49025
  try {
49661
- doc2.referrer = opts.referrer;
49026
+ doc.referrer = opts.referrer;
49662
49027
  } catch (e) {
49663
49028
  }
49664
49029
  }
49665
49030
  if (typeof opts.direction === "string") {
49666
49031
  try {
49667
- doc2.documentElement.setAttribute("dir", opts.direction);
49032
+ doc.documentElement.setAttribute("dir", opts.direction);
49668
49033
  } catch (e) {
49669
49034
  }
49670
49035
  }
49671
49036
  if (typeof opts.language === "string") {
49672
49037
  try {
49673
- doc2.documentElement.setAttribute("lang", opts.language);
49038
+ doc.documentElement.setAttribute("lang", opts.language);
49674
49039
  } catch (e) {
49675
49040
  }
49676
49041
  }
49677
49042
  if (typeof opts.buildId === "string") {
49678
49043
  try {
49679
- doc2.documentElement.setAttribute("data-stencil-build", opts.buildId);
49044
+ doc.documentElement.setAttribute("data-stencil-build", opts.buildId);
49680
49045
  } catch (e) {
49681
49046
  }
49682
49047
  }
49683
49048
  try {
49684
- win2.customElements = null;
49049
+ win.customElements = null;
49685
49050
  } catch (e) {
49686
49051
  }
49687
49052
  if (opts.constrainTimeouts) {
49688
- constrainTimeouts(win2);
49053
+ constrainTimeouts(win);
49689
49054
  }
49690
- runtimeLogging(win2, opts, results);
49691
- doc2[STENCIL_DOC_DATA] = docData;
49692
- return win2;
49055
+ runtimeLogging(win, opts, results);
49056
+ return win;
49693
49057
  }
49694
49058
 
49695
49059
  // src/hydrate/runner/render.ts
@@ -49706,44 +49070,44 @@ function renderToString(html, options, asStream) {
49706
49070
  opts.constrainTimeouts = false;
49707
49071
  return hydrateDocument(html, opts, asStream);
49708
49072
  }
49709
- function hydrateDocument(doc2, options, asStream) {
49073
+ function hydrateDocument(doc, options, asStream) {
49710
49074
  const opts = normalizeHydrateOptions(options);
49711
- let win2 = null;
49075
+ let win = null;
49712
49076
  const results = generateHydrateResults(opts);
49713
49077
  if (hasError(results.diagnostics)) {
49714
49078
  return Promise.resolve(results);
49715
49079
  }
49716
- if (typeof doc2 === "string") {
49080
+ if (typeof doc === "string") {
49717
49081
  try {
49718
49082
  opts.destroyWindow = true;
49719
49083
  opts.destroyDocument = true;
49720
- win2 = new MockWindow(doc2);
49084
+ win = new MockWindow(doc);
49721
49085
  if (!asStream) {
49722
- return render(win2, opts, results).then(() => results);
49086
+ return render(win, opts, results).then(() => results);
49723
49087
  }
49724
- return renderStream(win2, opts, results);
49088
+ return renderStream(win, opts, results);
49725
49089
  } catch (e) {
49726
- if (win2 && win2.close) {
49727
- win2.close();
49090
+ if (win && win.close) {
49091
+ win.close();
49728
49092
  }
49729
- win2 = null;
49093
+ win = null;
49730
49094
  renderCatchError(results, e);
49731
49095
  return Promise.resolve(results);
49732
49096
  }
49733
49097
  }
49734
- if (isValidDocument(doc2)) {
49098
+ if (isValidDocument(doc)) {
49735
49099
  try {
49736
49100
  opts.destroyDocument = false;
49737
- win2 = patchDomImplementation(doc2, opts);
49101
+ win = patchDomImplementation(doc, opts);
49738
49102
  if (!asStream) {
49739
- return render(win2, opts, results).then(() => results);
49103
+ return render(win, opts, results).then(() => results);
49740
49104
  }
49741
- return renderStream(win2, opts, results);
49105
+ return renderStream(win, opts, results);
49742
49106
  } catch (e) {
49743
- if (win2 && win2.close) {
49744
- win2.close();
49107
+ if (win && win.close) {
49108
+ win.close();
49745
49109
  }
49746
- win2 = null;
49110
+ win = null;
49747
49111
  renderCatchError(results, e);
49748
49112
  return Promise.resolve(results);
49749
49113
  }
@@ -49751,81 +49115,75 @@ function hydrateDocument(doc2, options, asStream) {
49751
49115
  renderBuildError(results, `Invalid html or document. Must be either a valid "html" string, or DOM "document".`);
49752
49116
  return Promise.resolve(results);
49753
49117
  }
49754
- async function render(win2, opts, results) {
49118
+ async function render(win, opts, results) {
49755
49119
  if ("process" in globalThis && typeof process.on === "function" && !process.__stencilErrors) {
49756
49120
  process.__stencilErrors = true;
49757
49121
  process.on("unhandledRejection", (e) => {
49758
49122
  console.log("unhandledRejection", e);
49759
49123
  });
49760
49124
  }
49761
- initializeWindow(win2, win2.document, opts, results);
49125
+ initializeWindow(win, win.document, opts, results);
49762
49126
  const beforeHydrateFn = typeof opts.beforeHydrate === "function" ? opts.beforeHydrate : NOOP;
49763
49127
  try {
49764
- await Promise.resolve(beforeHydrateFn(win2.document));
49765
- return new Promise((resolve) => {
49766
- if (Array.isArray(opts.modes)) {
49767
- modeResolutionChain.length = 0;
49768
- opts.modes.forEach((mode) => setMode(mode));
49769
- }
49770
- return hydrateFactory(win2, opts, results, afterHydrate, resolve);
49771
- });
49128
+ await Promise.resolve(beforeHydrateFn(win.document));
49129
+ return new Promise((resolve) => hydrateFactory(win, opts, results, afterHydrate, resolve));
49772
49130
  } catch (e) {
49773
49131
  renderCatchError(results, e);
49774
- return finalizeHydrate(win2, win2.document, opts, results);
49132
+ return finalizeHydrate(win, win.document, opts, results);
49775
49133
  }
49776
49134
  }
49777
- function renderStream(win2, opts, results) {
49135
+ function renderStream(win, opts, results) {
49778
49136
  async function* processRender() {
49779
- const renderResult = await render(win2, opts, results);
49137
+ const renderResult = await render(win, opts, results);
49780
49138
  yield renderResult.html;
49781
49139
  }
49782
49140
  return stream.Readable.from(processRender());
49783
49141
  }
49784
- async function afterHydrate(win2, opts, results, resolve) {
49142
+ async function afterHydrate(win, opts, results, resolve) {
49785
49143
  const afterHydrateFn = typeof opts.afterHydrate === "function" ? opts.afterHydrate : NOOP;
49786
49144
  try {
49787
- await Promise.resolve(afterHydrateFn(win2.document));
49788
- return resolve(finalizeHydrate(win2, win2.document, opts, results));
49145
+ await Promise.resolve(afterHydrateFn(win.document));
49146
+ return resolve(finalizeHydrate(win, win.document, opts, results));
49789
49147
  } catch (e) {
49790
49148
  renderCatchError(results, e);
49791
- return resolve(finalizeHydrate(win2, win2.document, opts, results));
49149
+ return resolve(finalizeHydrate(win, win.document, opts, results));
49792
49150
  }
49793
49151
  }
49794
- function finalizeHydrate(win2, doc2, opts, results) {
49152
+ function finalizeHydrate(win, doc, opts, results) {
49795
49153
  try {
49796
- inspectElement(results, doc2.documentElement, 0);
49154
+ inspectElement(results, doc.documentElement, 0);
49797
49155
  if (opts.removeUnusedStyles !== false) {
49798
49156
  try {
49799
- removeUnusedStyles(doc2, results.diagnostics);
49157
+ removeUnusedStyles(doc, results.diagnostics);
49800
49158
  } catch (e) {
49801
49159
  renderCatchError(results, e);
49802
49160
  }
49803
49161
  }
49804
49162
  if (typeof opts.title === "string") {
49805
49163
  try {
49806
- doc2.title = opts.title;
49164
+ doc.title = opts.title;
49807
49165
  } catch (e) {
49808
49166
  renderCatchError(results, e);
49809
49167
  }
49810
49168
  }
49811
- results.title = doc2.title;
49169
+ results.title = doc.title;
49812
49170
  if (opts.removeScripts) {
49813
- removeScripts(doc2.documentElement);
49171
+ removeScripts(doc.documentElement);
49814
49172
  }
49815
49173
  try {
49816
- updateCanonicalLink(doc2, opts.canonicalUrl);
49174
+ updateCanonicalLink(doc, opts.canonicalUrl);
49817
49175
  } catch (e) {
49818
49176
  renderCatchError(results, e);
49819
49177
  }
49820
49178
  try {
49821
- relocateMetaCharset(doc2);
49179
+ relocateMetaCharset(doc);
49822
49180
  } catch (e) {
49823
49181
  }
49824
49182
  if (!hasError(results.diagnostics)) {
49825
49183
  results.httpStatus = 200;
49826
49184
  }
49827
49185
  try {
49828
- const metaStatus = doc2.head.querySelector('meta[http-equiv="status"]');
49186
+ const metaStatus = doc.head.querySelector('meta[http-equiv="status"]');
49829
49187
  if (metaStatus != null) {
49830
49188
  const metaStatusContent = metaStatus.getAttribute("content");
49831
49189
  if (metaStatusContent && metaStatusContent.length > 0) {
@@ -49835,35 +49193,35 @@ function finalizeHydrate(win2, doc2, opts, results) {
49835
49193
  } catch (e) {
49836
49194
  }
49837
49195
  if (opts.clientHydrateAnnotations) {
49838
- doc2.documentElement.classList.add("hydrated");
49196
+ doc.documentElement.classList.add("hydrated");
49839
49197
  }
49840
49198
  if (opts.serializeToHtml) {
49841
- results.html = serializeDocumentToString(doc2, opts);
49199
+ results.html = serializeDocumentToString(doc, opts);
49842
49200
  }
49843
49201
  } catch (e) {
49844
49202
  renderCatchError(results, e);
49845
49203
  }
49846
- destroyWindow(win2, doc2, opts, results);
49204
+ destroyWindow(win, doc, opts, results);
49847
49205
  return results;
49848
49206
  }
49849
- function destroyWindow(win2, doc2, opts, results) {
49207
+ function destroyWindow(win, doc, opts, results) {
49850
49208
  if (!opts.destroyWindow) {
49851
49209
  return;
49852
49210
  }
49853
49211
  try {
49854
49212
  if (!opts.destroyDocument) {
49855
- win2.document = null;
49856
- doc2.defaultView = null;
49213
+ win.document = null;
49214
+ doc.defaultView = null;
49857
49215
  }
49858
- if (win2.close) {
49859
- win2.close();
49216
+ if (win.close) {
49217
+ win.close();
49860
49218
  }
49861
49219
  } catch (e) {
49862
49220
  renderCatchError(results, e);
49863
49221
  }
49864
49222
  }
49865
- function serializeDocumentToString(doc2, opts) {
49866
- return serializeNodeToHtml(doc2, {
49223
+ function serializeDocumentToString(doc, opts) {
49224
+ return serializeNodeToHtml(doc, {
49867
49225
  approximateLineWidth: opts.approximateLineWidth,
49868
49226
  outerHtml: false,
49869
49227
  prettyHtml: opts.prettyHtml,
@@ -49875,8 +49233,8 @@ function serializeDocumentToString(doc2, opts) {
49875
49233
  fullDocument: opts.fullDocument
49876
49234
  });
49877
49235
  }
49878
- function isValidDocument(doc2) {
49879
- return doc2 != null && doc2.nodeType === 9 && doc2.documentElement != null && doc2.documentElement.nodeType === 1 && doc2.body != null && doc2.body.nodeType === 1;
49236
+ function isValidDocument(doc) {
49237
+ return doc != null && doc.nodeType === 9 && doc.documentElement != null && doc.documentElement.nodeType === 1 && doc.body != null && doc.body.nodeType === 1;
49880
49238
  }
49881
49239
  function removeScripts(elm) {
49882
49240
  const children = elm.children;