@ionic/core 8.7.10-dev.11763478209.1d9c4cd8 → 8.7.10-dev.11763578076.1047c3c7

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 (250) hide show
  1. package/components/ion-datetime.js +2 -33
  2. package/dist/cjs/{animation-Bt3H9L1C.js → animation-B70U3AYi.js} +1 -1
  3. package/dist/cjs/{app-globals-Ciccnk9_.js → app-globals-D_8sGbx8.js} +1 -1
  4. package/dist/cjs/{button-active-CMc8cD90.js → button-active-TAhq9qwd.js} +1 -1
  5. package/dist/cjs/{config-C5fsO43a.js → config-4ndaqsYM.js} +1 -1
  6. package/dist/cjs/{data-JwZKaIQB.js → data-j96wY7cX.js} +1 -1
  7. package/dist/cjs/{framework-delegate-DMJRBuDi.js → framework-delegate-DZC3n8LU.js} +1 -1
  8. package/dist/cjs/{hardware-back-button-VCK4V3mG.js → hardware-back-button-pmRhkPKl.js} +1 -1
  9. package/dist/cjs/{helpers-DrTqNghc.js → helpers-Crx5-kj7.js} +1 -1
  10. package/dist/cjs/{index-C534ULug.js → index-BOY9qrZP.js} +2 -2
  11. package/dist/cjs/{index-CO6eryBo.js → index-CRulAvdl.js} +2 -2
  12. package/dist/cjs/{index-DrMUZJj6.js → index-CbLK066G.js} +5 -5
  13. package/dist/cjs/{index-D6Wc6v08.js → index-DV5E8h1q.js} +44 -4
  14. package/dist/cjs/{index-094mMFB-.js → index-fI8UppQq.js} +4 -4
  15. package/dist/cjs/index.cjs.js +12 -12
  16. package/dist/cjs/{input-shims-CW0KUFTQ.js → input-shims-D-MYGARH.js} +3 -3
  17. package/dist/cjs/{input.utils-B_QROI2g.js → input.utils-Bac31sZX.js} +2 -2
  18. package/dist/cjs/ion-accordion_2.cjs.entry.js +3 -3
  19. package/dist/cjs/ion-action-sheet.cjs.entry.js +8 -8
  20. package/dist/cjs/ion-alert.cjs.entry.js +9 -9
  21. package/dist/cjs/ion-app_8.cjs.entry.js +12 -12
  22. package/dist/cjs/ion-avatar_3.cjs.entry.js +2 -2
  23. package/dist/cjs/ion-back-button.cjs.entry.js +3 -3
  24. package/dist/cjs/ion-backdrop.cjs.entry.js +2 -2
  25. package/dist/cjs/ion-breadcrumb_2.cjs.entry.js +3 -3
  26. package/dist/cjs/ion-button_2.cjs.entry.js +3 -3
  27. package/dist/cjs/ion-card_5.cjs.entry.js +3 -3
  28. package/dist/cjs/ion-checkbox.cjs.entry.js +3 -3
  29. package/dist/cjs/ion-chip.cjs.entry.js +2 -2
  30. package/dist/cjs/ion-col_3.cjs.entry.js +2 -2
  31. package/dist/cjs/ion-datetime-button.cjs.entry.js +4 -4
  32. package/dist/cjs/ion-datetime_3.cjs.entry.js +10 -41
  33. package/dist/cjs/ion-fab_3.cjs.entry.js +3 -3
  34. package/dist/cjs/ion-img.cjs.entry.js +3 -3
  35. package/dist/cjs/ion-infinite-scroll_2.cjs.entry.js +5 -5
  36. package/dist/cjs/ion-input-otp.cjs.entry.js +3 -3
  37. package/dist/cjs/ion-input-password-toggle.cjs.entry.js +2 -2
  38. package/dist/cjs/ion-input.cjs.entry.js +5 -5
  39. package/dist/cjs/ion-item-option_3.cjs.entry.js +4 -4
  40. package/dist/cjs/ion-item_8.cjs.entry.js +3 -3
  41. package/dist/cjs/ion-loading.cjs.entry.js +8 -8
  42. package/dist/cjs/ion-menu_3.cjs.entry.js +8 -8
  43. package/dist/cjs/ion-modal.cjs.entry.js +9 -9
  44. package/dist/cjs/ion-nav_2.cjs.entry.js +6 -6
  45. package/dist/cjs/ion-picker-column-option.cjs.entry.js +3 -3
  46. package/dist/cjs/ion-picker-column.cjs.entry.js +3 -3
  47. package/dist/cjs/ion-picker.cjs.entry.js +2 -2
  48. package/dist/cjs/ion-popover.cjs.entry.js +8 -8
  49. package/dist/cjs/ion-progress-bar.cjs.entry.js +3 -3
  50. package/dist/cjs/ion-radio_2.cjs.entry.js +3 -3
  51. package/dist/cjs/ion-range.cjs.entry.js +4 -4
  52. package/dist/cjs/ion-refresher_2.cjs.entry.js +6 -6
  53. package/dist/cjs/ion-reorder_2.cjs.entry.js +4 -4
  54. package/dist/cjs/ion-ripple-effect.cjs.entry.js +2 -2
  55. package/dist/cjs/ion-route_4.cjs.entry.js +3 -3
  56. package/dist/cjs/ion-searchbar.cjs.entry.js +3 -3
  57. package/dist/cjs/ion-segment-content.cjs.entry.js +1 -1
  58. package/dist/cjs/ion-segment-view.cjs.entry.js +1 -1
  59. package/dist/cjs/ion-segment_2.cjs.entry.js +3 -3
  60. package/dist/cjs/ion-select-modal.cjs.entry.js +6 -6
  61. package/dist/cjs/ion-select_3.cjs.entry.js +7 -7
  62. package/dist/cjs/ion-spinner.cjs.entry.js +2 -2
  63. package/dist/cjs/ion-split-pane.cjs.entry.js +2 -2
  64. package/dist/cjs/ion-tab-bar_2.cjs.entry.js +3 -3
  65. package/dist/cjs/ion-tab_2.cjs.entry.js +3 -3
  66. package/dist/cjs/ion-text.cjs.entry.js +2 -2
  67. package/dist/cjs/ion-textarea.cjs.entry.js +5 -5
  68. package/dist/cjs/ion-toast.cjs.entry.js +8 -8
  69. package/dist/cjs/ion-toggle.cjs.entry.js +3 -3
  70. package/dist/cjs/{ionic-global-HMVqOFGO.js → ionic-global-CLnCYlRe.js} +1 -1
  71. package/dist/cjs/ionic.cjs.js +4 -4
  72. package/dist/cjs/{ios.transition-BOt_uW73.js → ios.transition-B3iTqeDM.js} +4 -4
  73. package/dist/cjs/loader.cjs.js +3 -3
  74. package/dist/cjs/{md.transition-Dt968VXB.js → md.transition-CbvDffNA.js} +4 -4
  75. package/dist/cjs/{notch-controller-Bzqhjm4f.js → notch-controller-CEJ89ece.js} +1 -1
  76. package/dist/cjs/{overlays-DxIZwUXI.js → overlays-Cf7PK4fA.js} +5 -5
  77. package/dist/cjs/{status-tap-g0sWWkXk.js → status-tap-fXl5XlmU.js} +3 -3
  78. package/dist/cjs/{swipe-back-BIayeNOD.js → swipe-back-B4O7zZWT.js} +2 -2
  79. package/dist/collection/collection-manifest.json +2 -2
  80. package/dist/collection/components/datetime/datetime.js +2 -33
  81. package/dist/docs.json +3 -3
  82. package/dist/esm/{animation-Dt8bGnA-.js → animation-CRTqL-Kl.js} +1 -1
  83. package/dist/esm/{app-globals-BDSf8fOA.js → app-globals-Cr9vegdL.js} +1 -1
  84. package/dist/esm/{button-active-L570Swow.js → button-active-Cd7eQc30.js} +1 -1
  85. package/dist/esm/{config-mCdtaoPe.js → config-WpCAgwYn.js} +1 -1
  86. package/dist/esm/{data-DCORV9FH.js → data-BPJsyAbv.js} +1 -1
  87. package/dist/esm/{framework-delegate-BYawdMXj.js → framework-delegate-DoF4sHL_.js} +1 -1
  88. package/dist/esm/{hardware-back-button-CPLxO-Ev.js → hardware-back-button-CC9TYUx5.js} +1 -1
  89. package/dist/esm/{helpers-DEn3pfjm.js → helpers-CYp9QPPu.js} +1 -1
  90. package/dist/esm/{index-Bs3kT4bc.js → index-BAvq7qKN.js} +2 -2
  91. package/dist/esm/{index-r2D9DEro.js → index-Cc9McEPW.js} +4 -4
  92. package/dist/esm/{index-CvDIirVx.js → index-DB8ZghHw.js} +5 -5
  93. package/dist/esm/{index-ceb5RaMT.js → index-Dkyfot_N.js} +2 -2
  94. package/dist/esm/{index-C8IsBmNU.js → index-K56Zjrdc.js} +44 -4
  95. package/dist/esm/index.js +12 -12
  96. package/dist/esm/{input-shims-DyOpfTg6.js → input-shims-CK9_3FdS.js} +3 -3
  97. package/dist/esm/{input.utils-DrvTa8gz.js → input.utils-UBoHDVrt.js} +2 -2
  98. package/dist/esm/ion-accordion_2.entry.js +3 -3
  99. package/dist/esm/ion-action-sheet.entry.js +8 -8
  100. package/dist/esm/ion-alert.entry.js +9 -9
  101. package/dist/esm/ion-app_8.entry.js +12 -12
  102. package/dist/esm/ion-avatar_3.entry.js +2 -2
  103. package/dist/esm/ion-back-button.entry.js +3 -3
  104. package/dist/esm/ion-backdrop.entry.js +2 -2
  105. package/dist/esm/ion-breadcrumb_2.entry.js +3 -3
  106. package/dist/esm/ion-button_2.entry.js +3 -3
  107. package/dist/esm/ion-card_5.entry.js +3 -3
  108. package/dist/esm/ion-checkbox.entry.js +3 -3
  109. package/dist/esm/ion-chip.entry.js +2 -2
  110. package/dist/esm/ion-col_3.entry.js +2 -2
  111. package/dist/esm/ion-datetime-button.entry.js +4 -4
  112. package/dist/esm/ion-datetime_3.entry.js +10 -41
  113. package/dist/esm/ion-fab_3.entry.js +3 -3
  114. package/dist/esm/ion-img.entry.js +3 -3
  115. package/dist/esm/ion-infinite-scroll_2.entry.js +5 -5
  116. package/dist/esm/ion-input-otp.entry.js +3 -3
  117. package/dist/esm/ion-input-password-toggle.entry.js +2 -2
  118. package/dist/esm/ion-input.entry.js +5 -5
  119. package/dist/esm/ion-item-option_3.entry.js +4 -4
  120. package/dist/esm/ion-item_8.entry.js +3 -3
  121. package/dist/esm/ion-loading.entry.js +8 -8
  122. package/dist/esm/ion-menu_3.entry.js +8 -8
  123. package/dist/esm/ion-modal.entry.js +9 -9
  124. package/dist/esm/ion-nav_2.entry.js +6 -6
  125. package/dist/esm/ion-picker-column-option.entry.js +3 -3
  126. package/dist/esm/ion-picker-column.entry.js +3 -3
  127. package/dist/esm/ion-picker.entry.js +2 -2
  128. package/dist/esm/ion-popover.entry.js +8 -8
  129. package/dist/esm/ion-progress-bar.entry.js +3 -3
  130. package/dist/esm/ion-radio_2.entry.js +3 -3
  131. package/dist/esm/ion-range.entry.js +4 -4
  132. package/dist/esm/ion-refresher_2.entry.js +6 -6
  133. package/dist/esm/ion-reorder_2.entry.js +4 -4
  134. package/dist/esm/ion-ripple-effect.entry.js +2 -2
  135. package/dist/esm/ion-route_4.entry.js +3 -3
  136. package/dist/esm/ion-searchbar.entry.js +3 -3
  137. package/dist/esm/ion-segment-content.entry.js +1 -1
  138. package/dist/esm/ion-segment-view.entry.js +1 -1
  139. package/dist/esm/ion-segment_2.entry.js +3 -3
  140. package/dist/esm/ion-select-modal.entry.js +6 -6
  141. package/dist/esm/ion-select_3.entry.js +7 -7
  142. package/dist/esm/ion-spinner.entry.js +2 -2
  143. package/dist/esm/ion-split-pane.entry.js +2 -2
  144. package/dist/esm/ion-tab-bar_2.entry.js +3 -3
  145. package/dist/esm/ion-tab_2.entry.js +3 -3
  146. package/dist/esm/ion-text.entry.js +2 -2
  147. package/dist/esm/ion-textarea.entry.js +5 -5
  148. package/dist/esm/ion-toast.entry.js +8 -8
  149. package/dist/esm/ion-toggle.entry.js +3 -3
  150. package/dist/esm/{ionic-global-CDrldh-5.js → ionic-global-DRuUdNt8.js} +1 -1
  151. package/dist/esm/ionic.js +5 -5
  152. package/dist/esm/{ios.transition-BDzw0_Hm.js → ios.transition-IKPYPZBa.js} +4 -4
  153. package/dist/esm/loader.js +4 -4
  154. package/dist/esm/{md.transition-BzDYi3qq.js → md.transition-Bc2DC3ZN.js} +4 -4
  155. package/dist/esm/{notch-controller-BwelN_JM.js → notch-controller-CGadnxjv.js} +1 -1
  156. package/dist/esm/{overlays-BymNv-BL.js → overlays-yoteY47V.js} +5 -5
  157. package/dist/esm/{status-tap-5DQ7Fc4V.js → status-tap-BF62uqKM.js} +3 -3
  158. package/dist/esm/{swipe-back-BKw2CAHc.js → swipe-back-wkhTYnhW.js} +2 -2
  159. package/dist/ionic/index.esm.js +1 -1
  160. package/dist/ionic/ionic.esm.js +1 -1
  161. package/dist/ionic/p--UHDD5Kg.js +4 -0
  162. package/dist/ionic/{p-c19f63d0.entry.js → p-007477f1.entry.js} +1 -1
  163. package/dist/ionic/{p-d0a2a1ab.entry.js → p-06cf24a5.entry.js} +1 -1
  164. package/dist/ionic/{p-6d070558.entry.js → p-07b95be2.entry.js} +1 -1
  165. package/dist/ionic/p-10e02483.entry.js +4 -0
  166. package/dist/ionic/{p-e16b69e1.entry.js → p-16b3cb0d.entry.js} +1 -1
  167. package/dist/ionic/{p-0b80d700.entry.js → p-1ee109b5.entry.js} +1 -1
  168. package/dist/ionic/{p-79bd78f9.entry.js → p-26d6386b.entry.js} +1 -1
  169. package/dist/ionic/{p-7da39a4d.entry.js → p-2a445e15.entry.js} +1 -1
  170. package/dist/ionic/{p-9575b654.entry.js → p-310b61b0.entry.js} +1 -1
  171. package/dist/ionic/{p-49d06882.entry.js → p-313df453.entry.js} +1 -1
  172. package/dist/ionic/{p-d1f54e28.entry.js → p-36394917.entry.js} +1 -1
  173. package/dist/ionic/{p-d126e8d3.entry.js → p-36ff77bb.entry.js} +1 -1
  174. package/dist/ionic/{p-dbbe606a.entry.js → p-3a0b521f.entry.js} +1 -1
  175. package/dist/ionic/{p-639dd543.entry.js → p-40fcbc5c.entry.js} +1 -1
  176. package/dist/ionic/{p-cc45bcbc.entry.js → p-42db60c6.entry.js} +1 -1
  177. package/dist/ionic/{p-b57c6d3e.entry.js → p-45e6bb3b.entry.js} +1 -1
  178. package/dist/ionic/{p-11518b31.entry.js → p-4dfd581d.entry.js} +1 -1
  179. package/dist/ionic/{p-94de5cfa.entry.js → p-54726ad8.entry.js} +1 -1
  180. package/dist/ionic/{p-6241ce47.entry.js → p-58fb9eea.entry.js} +1 -1
  181. package/dist/ionic/{p-da7d04cc.entry.js → p-5d0cfcb3.entry.js} +1 -1
  182. package/dist/ionic/p-62c7bac8.entry.js +4 -0
  183. package/dist/ionic/{p-1647c46c.entry.js → p-712e2cc9.entry.js} +1 -1
  184. package/dist/ionic/{p-46d74291.entry.js → p-716917c3.entry.js} +1 -1
  185. package/dist/ionic/{p-7268efa5.entry.js → p-7370baa4.entry.js} +1 -1
  186. package/dist/ionic/{p-a80f1b04.entry.js → p-7b15c56b.entry.js} +1 -1
  187. package/dist/ionic/{p-6444c606.entry.js → p-89242ba6.entry.js} +1 -1
  188. package/dist/ionic/{p-316c0420.entry.js → p-89f60304.entry.js} +1 -1
  189. package/dist/ionic/{p-86f53961.entry.js → p-8ee70fe5.entry.js} +1 -1
  190. package/dist/ionic/{p-72c38b88.entry.js → p-9538e532.entry.js} +1 -1
  191. package/dist/ionic/{p-40c261a3.entry.js → p-9996f0d9.entry.js} +1 -1
  192. package/dist/ionic/{p-020af078.entry.js → p-9b75f8b5.entry.js} +1 -1
  193. package/dist/ionic/{p-b0a7585c.entry.js → p-9fa6e33e.entry.js} +1 -1
  194. package/dist/ionic/{p-CJxh_yLS.js → p-B9_I1hx7.js} +1 -1
  195. package/dist/ionic/p-BFdLXUmQ.js +4 -0
  196. package/dist/ionic/{p-QHYY4sjU.js → p-BL9_ds6e.js} +1 -1
  197. package/dist/ionic/{p-D0dMcSkw.js → p-BdOUQlr6.js} +1 -1
  198. package/dist/ionic/{p-BFvmZNyx.js → p-BuiN7eei.js} +1 -1
  199. package/dist/ionic/{p-Dc45iWE4.js → p-C2Hdln5D.js} +1 -1
  200. package/dist/ionic/{p-D-eFFUkA.js → p-C5BtUTU0.js} +1 -1
  201. package/dist/ionic/{p-CwgG81ZD.js → p-C6NxSVl3.js} +1 -1
  202. package/dist/ionic/{p-BYEqWnSg.js → p-D9G6G5Lr.js} +1 -1
  203. package/dist/ionic/p-DJTLROMd.js +4 -0
  204. package/dist/ionic/p-DODo5BkR.js +4 -0
  205. package/dist/ionic/{p-DCv9sLH2.js → p-DSnebHgG.js} +1 -1
  206. package/dist/ionic/p-DTe_Nv0R.js +4 -0
  207. package/dist/ionic/{p-D87hU-Ly.js → p-Da9B2ZO4.js} +1 -1
  208. package/dist/ionic/{p-DUt5fQmA.js → p-Da9FzgKM.js} +1 -1
  209. package/dist/ionic/p-Dj35jSF7.js +4 -0
  210. package/dist/ionic/{p-DbQ5QkTP.js → p-Dx6HlEVi.js} +1 -1
  211. package/dist/ionic/p-K56Zjrdc.js +5 -0
  212. package/dist/ionic/{p-DNcfiJwE.js → p-MGqh2rc5.js} +1 -1
  213. package/dist/ionic/{p-CTfR9YZG.js → p-RUyJri7q.js} +1 -1
  214. package/dist/ionic/{p-31f7095f.entry.js → p-a1701bdd.entry.js} +1 -1
  215. package/dist/ionic/{p-0dfa5a37.entry.js → p-a5e898c0.entry.js} +1 -1
  216. package/dist/ionic/{p-370e4237.entry.js → p-aefc57ac.entry.js} +1 -1
  217. package/dist/ionic/{p-d3014190.entry.js → p-b2e6c9fa.entry.js} +1 -1
  218. package/dist/ionic/{p-15193d01.entry.js → p-c14d03e2.entry.js} +1 -1
  219. package/dist/ionic/{p-a127bee2.entry.js → p-c151a44e.entry.js} +1 -1
  220. package/dist/ionic/{p-ac4eb91d.entry.js → p-c4193a91.entry.js} +1 -1
  221. package/dist/ionic/{p-675b1a31.entry.js → p-c838270f.entry.js} +1 -1
  222. package/dist/ionic/{p-f8f22cc0.entry.js → p-ce45fd8a.entry.js} +1 -1
  223. package/dist/ionic/{p-98fc09eb.entry.js → p-d19eae86.entry.js} +1 -1
  224. package/dist/ionic/{p-582824c5.entry.js → p-d89565e9.entry.js} +1 -1
  225. package/dist/ionic/{p-83be404e.entry.js → p-d8cdffc1.entry.js} +1 -1
  226. package/dist/ionic/{p-7380261c.entry.js → p-e3f3180d.entry.js} +1 -1
  227. package/dist/ionic/{p-510d86e1.entry.js → p-e594c6b9.entry.js} +1 -1
  228. package/dist/ionic/{p-074839fc.entry.js → p-e7486c70.entry.js} +1 -1
  229. package/dist/ionic/{p-2a939845.entry.js → p-eecad8a6.entry.js} +1 -1
  230. package/dist/ionic/{p-43ed1ef5.entry.js → p-f3cd6e01.entry.js} +1 -1
  231. package/dist/ionic/{p-4e41ea20.entry.js → p-f5f3561f.entry.js} +1 -1
  232. package/dist/ionic/{p-4c85d268.entry.js → p-f6a4a75b.entry.js} +1 -1
  233. package/dist/ionic/{p-3a6caca9.entry.js → p-f8657651.entry.js} +1 -1
  234. package/dist/ionic/{p-C7hRNDhM.js → p-oh-p68hr.js} +1 -1
  235. package/dist/types/components/datetime/datetime.d.ts +0 -9
  236. package/dist/types/components/header/header.utils.d.ts +2 -1
  237. package/dist/types/stencil-public-runtime.d.ts +19 -9
  238. package/dist/types/utils/gesture/listener.d.ts +2 -1
  239. package/hydrate/index.js +122 -114
  240. package/hydrate/index.mjs +122 -114
  241. package/package.json +2 -2
  242. package/dist/ionic/p-51a60e0f.entry.js +0 -4
  243. package/dist/ionic/p-B0q1YL7N.js +0 -4
  244. package/dist/ionic/p-BKc55Xev.js +0 -4
  245. package/dist/ionic/p-BOVrCkpJ.js +0 -4
  246. package/dist/ionic/p-Bmgaetn_.js +0 -4
  247. package/dist/ionic/p-C8IsBmNU.js +0 -5
  248. package/dist/ionic/p-DDb5r57F.js +0 -4
  249. package/dist/ionic/p-DZRJwG4S.js +0 -4
  250. package/dist/ionic/p-a0036e36.entry.js +0 -4
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * (C) Ionic http://ionicframework.com - MIT License
3
3
  */
4
- import{f as e}from"./p-C8IsBmNU.js";const t=(e,t)=>e.month===t.month&&e.day===t.day&&e.year===t.year,n=(e,t)=>!!(e.year<t.year||e.year===t.year&&e.month<t.month||e.year===t.year&&e.month===t.month&&null!==e.day&&e.day<t.day),o=(e,t)=>!!(e.year>t.year||e.year===t.year&&e.month>t.month||e.year===t.year&&e.month===t.month&&null!==e.day&&e.day>t.day),r=(t,r,a)=>{const i=Array.isArray(t)?t:[t];for(const d of i)if(void 0!==r&&n(d,r)||void 0!==a&&o(d,a)){e(`[ion-datetime] - The value provided to ion-datetime is out of bounds.\n\nMin: ${JSON.stringify(r)}\nMax: ${JSON.stringify(a)}\nValue: ${JSON.stringify(t)}`);break}},a=(e,t)=>{if(void 0!==t)return t;const n=new Intl.DateTimeFormat(e,{hour:"numeric"}),o=n.resolvedOptions();if(void 0!==o.hourCycle)return o.hourCycle;const r=new Date("5/18/2021 00:00"),a=n.formatToParts(r).find((e=>"hour"===e.type));if(!a)throw new Error("Hour value not found from DateTimeFormat");switch(a.value){case"0":return"h11";case"12":return"h12";case"00":return"h23";case"24":return"h24";default:throw new Error(`Invalid hour cycle "${t}"`)}},i=e=>"h23"===e||"h24"===e,d=(e,t)=>4===e||6===e||9===e||11===e?30:2===e?(e=>e%4==0&&e%100!=0||e%400==0)(t)?29:28:31,u=(e,t={month:"numeric",year:"numeric"})=>"month"===new Intl.DateTimeFormat(e,t).formatToParts(new Date)[0].type,l=e=>"dayPeriod"===new Intl.DateTimeFormat(e,{hour:"numeric"}).formatToParts(new Date)[0].type,s=/^(\d{4}|[+\-]\d{6})(?:-(\d{2})(?:-(\d{2}))?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{3}))?)?(?:(Z)|([+\-])(\d{2})(?::(\d{2}))?)?)?$/,c=/^((\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{3}))?)?(?:(Z)|([+\-])(\d{2})(?::(\d{2}))?)?)?$/,v=e=>{if(void 0===e)return;let t,n=e;return"string"==typeof e&&(n=e.replace(/\[|\]|\s/g,"").split(",")),t=Array.isArray(n)?n.map((e=>parseInt(e,10))).filter(isFinite):[n],t},m=e=>({month:parseInt(e.getAttribute("data-month"),10),day:parseInt(e.getAttribute("data-day"),10),year:parseInt(e.getAttribute("data-year"),10),dayOfWeek:parseInt(e.getAttribute("data-day-of-week"),10)});function y(t){if(Array.isArray(t)){const e=[];for(const n of t){const t=y(n);if(!t)return;e.push(t)}return e}let n=null;if(null!=t&&""!==t&&(n=c.exec(t),n?(n.unshift(void 0,void 0),n[2]=n[3]=void 0):n=s.exec(t)),null!==n){for(let e=1;e<8;e++)n[e]=void 0!==n[e]?parseInt(n[e],10):void 0;return{year:n[1],month:n[2],day:n[3],hour:n[4],minute:n[5],ampm:n[4]<12?"am":"pm"}}e(`[ion-datetime] - Unable to parse date string: ${t}. Please provide a valid ISO 8601 datetime string.`)}const h=(e,t,r)=>t&&n(e,t)?t:r&&o(e,r)?r:e,f=e=>e>=12?"pm":"am",w=(e,t)=>{const n=y(e);if(void 0===n)return;const{month:o,day:r,year:a,hour:i,minute:u}=n,l=null!=a?a:t.year,s=null!=o?o:12;return{month:s,day:null!=r?r:d(s,l),year:l,hour:null!=i?i:23,minute:null!=u?u:59}},O=(e,t)=>{const n=y(e);if(void 0===n)return;const{month:o,day:r,year:a,hour:i,minute:d}=n;return{month:null!=o?o:1,day:null!=r?r:1,year:null!=a?a:t.year,hour:null!=i?i:0,minute:null!=d?d:0}},$=e=>("0"+(void 0!==e?Math.abs(e):"0")).slice(-2);function p(e){if(Array.isArray(e))return e.map((e=>p(e)));let t="";var n;return void 0!==e.year?(t=("000"+(void 0!==(n=e.year)?Math.abs(n):"0")).slice(-4),void 0!==e.month&&(t+="-"+$(e.month),void 0!==e.day&&(t+="-"+$(e.day),void 0!==e.hour&&(t+=`T${$(e.hour)}:${$(e.minute)}:00`)))):void 0!==e.hour&&(t=$(e.hour)+":"+$(e.minute)),t}const j=(e,t)=>void 0===t?e:"am"===t?12===e?0:e:12===e?12:e+12,b=e=>{const{dayOfWeek:t}=e;if(null==t)throw new Error("No day of week provided");return M(e,t)},I=e=>{const{dayOfWeek:t}=e;if(null==t)throw new Error("No day of week provided");return Z(e,6-t)},D=e=>Z(e,1),T=e=>M(e,1),k=e=>M(e,7),x=e=>Z(e,7),M=(e,t)=>{const{month:n,day:o,year:r}=e;if(null===o)throw new Error("No day provided");const a={month:n,day:o,year:r};if(a.day=o-t,a.day<1&&(a.month-=1),a.month<1&&(a.month=12,a.year-=1),a.day<1){const e=d(a.month,a.year);a.day=e+a.day}return a},Z=(e,t)=>{const{month:n,day:o,year:r}=e;if(null===o)throw new Error("No day provided");const a={month:n,day:o,year:r},i=d(n,r);return a.day=o+t,a.day>i&&(a.day-=i,a.month+=1),a.month>12&&(a.month=1,a.year+=1),a},C=e=>{const t=1===e.month?12:e.month-1,n=1===e.month?e.year-1:e.year,o=d(t,n);return{month:t,year:n,day:o<e.day?o:e.day}},U=e=>{const t=12===e.month?1:e.month+1,n=12===e.month?e.year+1:e.year,o=d(t,n);return{month:t,year:n,day:o<e.day?o:e.day}},A=(e,t)=>{const n=e.month,o=e.year+t,r=d(n,o);return{month:n,year:o,day:r<e.day?r:e.day}},N=e=>A(e,-1),g=e=>A(e,1),E=(e,t,n)=>t?e:j(e,n),P=(e,t)=>{const{ampm:n,hour:o}=e;let r=o;return"am"===n&&"pm"===t?r=j(r,"pm"):"pm"===n&&"am"===t&&(r=Math.abs(r-12)),r},W=(e,n,o)=>{const{month:r,day:a,year:i}=e,u=h(Object.assign({},e),n,o),l=d(r,i);return null!==a&&l<a&&(u.day=l),void 0!==n&&t(u,n)&&void 0!==u.hour&&void 0!==n.hour&&(u.hour<n.hour?(u.hour=n.hour,u.minute=n.minute):u.hour===n.hour&&void 0!==u.minute&&void 0!==n.minute&&u.minute<n.minute&&(u.minute=n.minute)),void 0!==o&&t(e,o)&&void 0!==u.hour&&void 0!==o.hour&&(u.hour>o.hour?(u.hour=o.hour,u.minute=o.minute):u.hour===o.hour&&void 0!==u.minute&&void 0!==o.minute&&u.minute>o.minute&&(u.minute=o.minute)),u},G=({refParts:e,monthValues:r,dayValues:a,yearValues:i,hourValues:d,minuteValues:u,minParts:l,maxParts:s})=>{const{hour:c,minute:v,day:m,month:y,year:h}=e,w=Object.assign(Object.assign({},e),{dayOfWeek:void 0});if(void 0!==i){const e=i.filter((e=>!(void 0!==l&&e<l.year||void 0!==s&&e>s.year)));w.year=V(h,e)}if(void 0!==r){const e=r.filter((e=>!(void 0!==l&&w.year===l.year&&e<l.month||void 0!==s&&w.year===s.year&&e>s.month)));w.month=V(y,e)}if(null!==m&&void 0!==a){const e=a.filter((e=>!(void 0!==l&&n(Object.assign(Object.assign({},w),{day:e}),l)||void 0!==s&&o(Object.assign(Object.assign({},w),{day:e}),s))));w.day=V(m,e)}if(void 0!==c&&void 0!==d){const e=d.filter((e=>!(void 0!==(null==l?void 0:l.hour)&&t(w,l)&&e<l.hour||void 0!==(null==s?void 0:s.hour)&&t(w,s)&&e>s.hour)));w.hour=V(c,e),w.ampm=f(w.hour)}if(void 0!==v&&void 0!==u){const e=u.filter((e=>!(void 0!==(null==l?void 0:l.minute)&&t(w,l)&&w.hour===l.hour&&e<l.minute||void 0!==(null==s?void 0:s.minute)&&t(w,s)&&w.hour===s.hour&&e>s.minute)));w.minute=V(v,e)}return w},V=(e,t)=>{let n=t[0],o=Math.abs(n-e);for(let r=1;r<t.length;r++){const a=t[r],i=Math.abs(a-e);i<o&&(n=a,o=i)}return n},F=e=>Object.assign(Object.assign({},e),{timeZone:"UTC",timeZoneName:void 0}),J=(e,t,n,o={hour:"numeric",minute:"numeric"})=>{const r={hour:t.hour,minute:t.minute};return void 0===r.hour||void 0===r.minute?"Invalid Time":new Intl.DateTimeFormat(e,Object.assign(Object.assign({},F(o)),{hourCycle:n})).format(new Date(p(Object.assign({year:2023,day:1,month:1},r))+"Z"))},S=e=>{const t=e.toString();return t.length>1?t:`0${t}`},B=(e,t)=>{if(0===e)switch(t){case"h11":return"0";case"h12":return"12";case"h23":return"00";case"h24":return"24";default:throw new Error(`Invalid hour cycle "${t}"`)}return i(t)?S(e):e.toString()},H=(e,t,n)=>{if(null===n.day)return null;const o=K(n),r=new Intl.DateTimeFormat(e,{weekday:"long",month:"long",day:"numeric",timeZone:"UTC"}).format(o);return t?`Today, ${r}`:r},R=(e,t)=>{const n=K(t);return new Intl.DateTimeFormat(e,{month:"long",year:"numeric",timeZone:"UTC"}).format(n)},q=(e,t)=>Q(e,t,{day:"numeric"}).find((e=>"day"===e.type)).value,z=(e,t)=>L(e,t,{year:"numeric"}),K=e=>{var t,n,o;return new Date(`${null!==(t=e.month)&&void 0!==t?t:1}/${null!==(n=e.day)&&void 0!==n?n:1}/${null!==(o=e.year)&&void 0!==o?o:2023}${void 0!==e.hour&&void 0!==e.minute?` ${e.hour}:${e.minute}`:""} GMT+0000`)},L=(e,t,n)=>{const o=K(t);return X(e,F(n)).format(o)},Q=(e,t,n)=>{const o=K(t);return X(e,n).formatToParts(o)},X=(e,t)=>new Intl.DateTimeFormat(e,Object.assign(Object.assign({},t),{timeZone:"UTC"})),Y=e=>{if("RelativeTimeFormat"in Intl){const t=new Intl.RelativeTimeFormat(e,{numeric:"auto"}).format(0,"day");return t.charAt(0).toUpperCase()+t.slice(1)}return"Today"},_=e=>{const t=e.getTimezoneOffset();return e.setMinutes(e.getMinutes()-t),e},ee=_(new Date("2022T01:00")),te=_(new Date("2022T13:00")),ne=(e,t)=>{const n="am"===t?ee:te,o=new Intl.DateTimeFormat(e,{hour:"numeric",timeZone:"UTC"}).formatToParts(n).find((e=>"dayPeriod"===e.type));return o?o.value:(e=>void 0===e?"":e.toUpperCase())(t)},oe=e=>Array.isArray(e)?e.join(","):e,re=()=>_(new Date).toISOString(),ae=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59],ie=[0,1,2,3,4,5,6,7,8,9,10,11],de=[0,1,2,3,4,5,6,7,8,9,10,11],ue=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23],le=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,0],se=(e,t,n=0)=>{const o=new Intl.DateTimeFormat(e,{weekday:"ios"===t?"short":"narrow"}),r=new Date("11/01/2020"),a=[];for(let e=n;e<n+7;e++){const t=new Date(r);t.setDate(t.getDate()+e),a.push(o.format(t))}return a},ce=(e,t,n,o=!1)=>{const r=d(e,t);let a;a=1===e?d(12,t-1):d(e-1,t);const i=new Date(`${e}/1/${t}`).getDay(),u=i>=n?i-(n+1):6-(n-i);let l=[];for(let e=1;e<=r;e++)l.push({day:e,dayOfWeek:(u+e)%7,isAdjacentDay:!1});if(o){for(let e=0;e<=u;e++)l=[{day:a-e,dayOfWeek:(a-e)%7,isAdjacentDay:!0},...l];const e=41-(r+u);for(let t=0;t<e;t++)l.push({day:t+1,dayOfWeek:(r+u+t)%7,isAdjacentDay:!0})}else for(let e=0;e<=u;e++)l=[{day:null,dayOfWeek:null,isAdjacentDay:!1},...l];return l},ve=(e,r,d="h12",u,l,s,c)=>{const v=a(e,d),m=i(v);let y=(e=>{switch(e){case"h11":return ie;case"h12":return de;case"h23":return ue;case"h24":return le;default:throw new Error(`Invalid hour cycle "${e}"`)}})(v),h=ae,f=!0,w=!0;if(s&&(y=y.filter((e=>s.includes(e)))),c&&(h=h.filter((e=>c.includes(e)))),u)if(t(r,u)){if(void 0!==u.hour&&(y=y.filter((e=>(m?e:"pm"===r.ampm?(e+12)%24:e)>=u.hour)),f=u.hour<13),void 0!==u.minute){let e=!1;void 0!==u.hour&&void 0!==r.hour&&r.hour>u.hour&&(e=!0),h=h.filter((t=>!!e||t>=u.minute))}}else n(r,u)&&(y=[],h=[],f=w=!1);return l&&(t(r,l)?(void 0!==l.hour&&(y=y.filter((e=>(m?e:"pm"===r.ampm?(e+12)%24:e)<=l.hour)),w=l.hour>=12),void 0!==l.minute&&r.hour===l.hour&&(h=h.filter((e=>e<=l.minute)))):o(r,l)&&(y=[],h=[],f=w=!1)),{hours:y,minutes:h,am:f,pm:w}},me=(e,t)=>{const o={month:e.month,year:e.year,day:e.day};if(void 0!==t&&(e.month!==t.month||e.year!==t.year)){const r={month:t.month,year:t.year,day:t.day};return n(r,o)?[r,o,U(e)]:[C(e),o,r]}return[C(e),o,U(e)]},ye=(e,t,n,o,r,a={month:"long"})=>{const{year:i}=t,d=[];if(void 0!==r){let t=r;void 0!==(null==o?void 0:o.month)&&(t=t.filter((e=>e<=o.month))),void 0!==(null==n?void 0:n.month)&&(t=t.filter((e=>e>=n.month))),t.forEach((t=>{const n=new Date(`${t}/1/${i} GMT+0000`),o=new Intl.DateTimeFormat(e,Object.assign(Object.assign({},a),{timeZone:"UTC"})).format(n);d.push({text:o,value:t})}))}else{const t=o&&o.year===i?o.month:12;for(let o=n&&n.year===i?n.month:1;o<=t;o++){const t=new Date(`${o}/1/${i} GMT+0000`),n=new Intl.DateTimeFormat(e,Object.assign(Object.assign({},a),{timeZone:"UTC"})).format(t);d.push({text:n,value:o})}}return d},he=(e,t,n,o,r,a={day:"numeric"})=>{const{month:i,year:u}=t,l=[],s=d(i,u),c=null!=(null==o?void 0:o.day)&&o.year===u&&o.month===i?o.day:s,v=null!=(null==n?void 0:n.day)&&n.year===u&&n.month===i?n.day:1;if(void 0!==r){let t=r;t=t.filter((e=>e>=v&&e<=c)),t.forEach((t=>{const n=new Date(`${i}/${t}/${u} GMT+0000`),o=new Intl.DateTimeFormat(e,Object.assign(Object.assign({},a),{timeZone:"UTC"})).format(n);l.push({text:o,value:t})}))}else for(let t=v;t<=c;t++){const n=new Date(`${i}/${t}/${u} GMT+0000`),o=new Intl.DateTimeFormat(e,Object.assign(Object.assign({},a),{timeZone:"UTC"})).format(n);l.push({text:o,value:t})}return l},fe=(e,t,n,o,r)=>{var a,i;let d=[];if(void 0!==r)d=r,void 0!==(null==o?void 0:o.year)&&(d=d.filter((e=>e<=o.year))),void 0!==(null==n?void 0:n.year)&&(d=d.filter((e=>e>=n.year)));else{const{year:e}=t,r=null!==(a=null==o?void 0:o.year)&&void 0!==a?a:e;for(let t=null!==(i=null==n?void 0:n.year)&&void 0!==i?i:e-100;t<=r;t++)d.push(t)}return d.map((n=>({text:z(e,{year:n,month:t.month,day:t.day}),value:n})))},we=(e,t)=>e.month===t.month&&e.year===t.year?[e]:[e,...we(U(e),t)],Oe=(e,n,o,r,a,i)=>{let d=[],u=[],l=we(o,r);return i&&(l=l.filter((({month:e})=>i.includes(e)))),l.forEach((i=>{const l={month:i.month,day:null,year:i.year},s=he(e,l,o,r,a,{month:"short",day:"numeric",weekday:"short"}),c=[],v=[];s.forEach((o=>{const r=t(Object.assign(Object.assign({},l),{day:o.value}),n);v.push({text:r?Y(e):o.text,value:`${l.year}-${l.month}-${o.value}`}),c.push({month:l.month,year:l.year,day:o.value})})),u=[...u,...c],d=[...d,...v]})),{parts:u,items:d}},$e=(e,t,n,o,r,d,u)=>{const l=a(e,n),s=i(l),{hours:c,minutes:v,am:m,pm:y}=ve(e,t,l,o,r,d,u),h=c.map((e=>({text:B(e,l),value:E(e,s,t.ampm)}))),f=v.map((e=>({text:S(e),value:e}))),w=[];return m&&!s&&w.push({text:ne(e,"am"),value:"am"}),y&&!s&&w.push({text:ne(e,"pm"),value:"pm"}),{minutesData:f,hoursData:h,dayPeriodData:w}};export{G as A,me as B,d as C,Oe as D,ye as E,he as F,fe as G,u as H,$e as I,l as J,P as K,se as L,R as M,ce as N,a as O,J as P,L as Q,oe as R,o as a,U as b,t as c,q as d,H as e,m as f,C as g,g as h,n as i,N as j,I as k,b as l,T as m,D as n,k as o,x as p,O as q,w as r,y as s,f as t,h as u,W as v,r as w,v as x,p as y,re as z}
4
+ import{f as e}from"./p-K56Zjrdc.js";const t=(e,t)=>e.month===t.month&&e.day===t.day&&e.year===t.year,n=(e,t)=>!!(e.year<t.year||e.year===t.year&&e.month<t.month||e.year===t.year&&e.month===t.month&&null!==e.day&&e.day<t.day),o=(e,t)=>!!(e.year>t.year||e.year===t.year&&e.month>t.month||e.year===t.year&&e.month===t.month&&null!==e.day&&e.day>t.day),r=(t,r,a)=>{const i=Array.isArray(t)?t:[t];for(const d of i)if(void 0!==r&&n(d,r)||void 0!==a&&o(d,a)){e(`[ion-datetime] - The value provided to ion-datetime is out of bounds.\n\nMin: ${JSON.stringify(r)}\nMax: ${JSON.stringify(a)}\nValue: ${JSON.stringify(t)}`);break}},a=(e,t)=>{if(void 0!==t)return t;const n=new Intl.DateTimeFormat(e,{hour:"numeric"}),o=n.resolvedOptions();if(void 0!==o.hourCycle)return o.hourCycle;const r=new Date("5/18/2021 00:00"),a=n.formatToParts(r).find((e=>"hour"===e.type));if(!a)throw new Error("Hour value not found from DateTimeFormat");switch(a.value){case"0":return"h11";case"12":return"h12";case"00":return"h23";case"24":return"h24";default:throw new Error(`Invalid hour cycle "${t}"`)}},i=e=>"h23"===e||"h24"===e,d=(e,t)=>4===e||6===e||9===e||11===e?30:2===e?(e=>e%4==0&&e%100!=0||e%400==0)(t)?29:28:31,u=(e,t={month:"numeric",year:"numeric"})=>"month"===new Intl.DateTimeFormat(e,t).formatToParts(new Date)[0].type,l=e=>"dayPeriod"===new Intl.DateTimeFormat(e,{hour:"numeric"}).formatToParts(new Date)[0].type,s=/^(\d{4}|[+\-]\d{6})(?:-(\d{2})(?:-(\d{2}))?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{3}))?)?(?:(Z)|([+\-])(\d{2})(?::(\d{2}))?)?)?$/,c=/^((\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{3}))?)?(?:(Z)|([+\-])(\d{2})(?::(\d{2}))?)?)?$/,v=e=>{if(void 0===e)return;let t,n=e;return"string"==typeof e&&(n=e.replace(/\[|\]|\s/g,"").split(",")),t=Array.isArray(n)?n.map((e=>parseInt(e,10))).filter(isFinite):[n],t},m=e=>({month:parseInt(e.getAttribute("data-month"),10),day:parseInt(e.getAttribute("data-day"),10),year:parseInt(e.getAttribute("data-year"),10),dayOfWeek:parseInt(e.getAttribute("data-day-of-week"),10)});function y(t){if(Array.isArray(t)){const e=[];for(const n of t){const t=y(n);if(!t)return;e.push(t)}return e}let n=null;if(null!=t&&""!==t&&(n=c.exec(t),n?(n.unshift(void 0,void 0),n[2]=n[3]=void 0):n=s.exec(t)),null!==n){for(let e=1;e<8;e++)n[e]=void 0!==n[e]?parseInt(n[e],10):void 0;return{year:n[1],month:n[2],day:n[3],hour:n[4],minute:n[5],ampm:n[4]<12?"am":"pm"}}e(`[ion-datetime] - Unable to parse date string: ${t}. Please provide a valid ISO 8601 datetime string.`)}const h=(e,t,r)=>t&&n(e,t)?t:r&&o(e,r)?r:e,f=e=>e>=12?"pm":"am",w=(e,t)=>{const n=y(e);if(void 0===n)return;const{month:o,day:r,year:a,hour:i,minute:u}=n,l=null!=a?a:t.year,s=null!=o?o:12;return{month:s,day:null!=r?r:d(s,l),year:l,hour:null!=i?i:23,minute:null!=u?u:59}},O=(e,t)=>{const n=y(e);if(void 0===n)return;const{month:o,day:r,year:a,hour:i,minute:d}=n;return{month:null!=o?o:1,day:null!=r?r:1,year:null!=a?a:t.year,hour:null!=i?i:0,minute:null!=d?d:0}},$=e=>("0"+(void 0!==e?Math.abs(e):"0")).slice(-2);function p(e){if(Array.isArray(e))return e.map((e=>p(e)));let t="";var n;return void 0!==e.year?(t=("000"+(void 0!==(n=e.year)?Math.abs(n):"0")).slice(-4),void 0!==e.month&&(t+="-"+$(e.month),void 0!==e.day&&(t+="-"+$(e.day),void 0!==e.hour&&(t+=`T${$(e.hour)}:${$(e.minute)}:00`)))):void 0!==e.hour&&(t=$(e.hour)+":"+$(e.minute)),t}const j=(e,t)=>void 0===t?e:"am"===t?12===e?0:e:12===e?12:e+12,b=e=>{const{dayOfWeek:t}=e;if(null==t)throw new Error("No day of week provided");return Z(e,t)},I=e=>{const{dayOfWeek:t}=e;if(null==t)throw new Error("No day of week provided");return M(e,6-t)},D=e=>M(e,1),T=e=>Z(e,1),k=e=>Z(e,7),x=e=>M(e,7),Z=(e,t)=>{const{month:n,day:o,year:r}=e;if(null===o)throw new Error("No day provided");const a={month:n,day:o,year:r};if(a.day=o-t,a.day<1&&(a.month-=1),a.month<1&&(a.month=12,a.year-=1),a.day<1){const e=d(a.month,a.year);a.day=e+a.day}return a},M=(e,t)=>{const{month:n,day:o,year:r}=e;if(null===o)throw new Error("No day provided");const a={month:n,day:o,year:r},i=d(n,r);return a.day=o+t,a.day>i&&(a.day-=i,a.month+=1),a.month>12&&(a.month=1,a.year+=1),a},C=e=>{const t=1===e.month?12:e.month-1,n=1===e.month?e.year-1:e.year,o=d(t,n);return{month:t,year:n,day:o<e.day?o:e.day}},A=e=>{const t=12===e.month?1:e.month+1,n=12===e.month?e.year+1:e.year,o=d(t,n);return{month:t,year:n,day:o<e.day?o:e.day}},U=(e,t)=>{const n=e.month,o=e.year+t,r=d(n,o);return{month:n,year:o,day:r<e.day?r:e.day}},g=e=>U(e,-1),E=e=>U(e,1),N=(e,t,n)=>t?e:j(e,n),P=(e,t)=>{const{ampm:n,hour:o}=e;let r=o;return"am"===n&&"pm"===t?r=j(r,"pm"):"pm"===n&&"am"===t&&(r=Math.abs(r-12)),r},W=(e,n,o)=>{const{month:r,day:a,year:i}=e,u=h(Object.assign({},e),n,o),l=d(r,i);return null!==a&&l<a&&(u.day=l),void 0!==n&&t(u,n)&&void 0!==u.hour&&void 0!==n.hour&&(u.hour<n.hour?(u.hour=n.hour,u.minute=n.minute):u.hour===n.hour&&void 0!==u.minute&&void 0!==n.minute&&u.minute<n.minute&&(u.minute=n.minute)),void 0!==o&&t(e,o)&&void 0!==u.hour&&void 0!==o.hour&&(u.hour>o.hour?(u.hour=o.hour,u.minute=o.minute):u.hour===o.hour&&void 0!==u.minute&&void 0!==o.minute&&u.minute>o.minute&&(u.minute=o.minute)),u},G=({refParts:e,monthValues:r,dayValues:a,yearValues:i,hourValues:d,minuteValues:u,minParts:l,maxParts:s})=>{const{hour:c,minute:v,day:m,month:y,year:h}=e,w=Object.assign(Object.assign({},e),{dayOfWeek:void 0});if(void 0!==i){const e=i.filter((e=>!(void 0!==l&&e<l.year||void 0!==s&&e>s.year)));w.year=V(h,e)}if(void 0!==r){const e=r.filter((e=>!(void 0!==l&&w.year===l.year&&e<l.month||void 0!==s&&w.year===s.year&&e>s.month)));w.month=V(y,e)}if(null!==m&&void 0!==a){const e=a.filter((e=>!(void 0!==l&&n(Object.assign(Object.assign({},w),{day:e}),l)||void 0!==s&&o(Object.assign(Object.assign({},w),{day:e}),s))));w.day=V(m,e)}if(void 0!==c&&void 0!==d){const e=d.filter((e=>!(void 0!==(null==l?void 0:l.hour)&&t(w,l)&&e<l.hour||void 0!==(null==s?void 0:s.hour)&&t(w,s)&&e>s.hour)));w.hour=V(c,e),w.ampm=f(w.hour)}if(void 0!==v&&void 0!==u){const e=u.filter((e=>!(void 0!==(null==l?void 0:l.minute)&&t(w,l)&&w.hour===l.hour&&e<l.minute||void 0!==(null==s?void 0:s.minute)&&t(w,s)&&w.hour===s.hour&&e>s.minute)));w.minute=V(v,e)}return w},V=(e,t)=>{let n=t[0],o=Math.abs(n-e);for(let r=1;r<t.length;r++){const a=t[r],i=Math.abs(a-e);i<o&&(n=a,o=i)}return n},F=e=>Object.assign(Object.assign({},e),{timeZone:"UTC",timeZoneName:void 0}),J=(e,t,n,o={hour:"numeric",minute:"numeric"})=>{const r={hour:t.hour,minute:t.minute};return void 0===r.hour||void 0===r.minute?"Invalid Time":new Intl.DateTimeFormat(e,Object.assign(Object.assign({},F(o)),{hourCycle:n})).format(new Date(p(Object.assign({year:2023,day:1,month:1},r))+"Z"))},S=e=>{const t=e.toString();return t.length>1?t:`0${t}`},H=(e,t)=>{if(0===e)switch(t){case"h11":return"0";case"h12":return"12";case"h23":return"00";case"h24":return"24";default:throw new Error(`Invalid hour cycle "${t}"`)}return i(t)?S(e):e.toString()},K=(e,t,n)=>{if(null===n.day)return null;const o=B(n),r=new Intl.DateTimeFormat(e,{weekday:"long",month:"long",day:"numeric",timeZone:"UTC"}).format(o);return t?`Today, ${r}`:r},R=(e,t)=>{const n=B(t);return new Intl.DateTimeFormat(e,{month:"long",year:"numeric",timeZone:"UTC"}).format(n)},q=(e,t)=>Q(e,t,{day:"numeric"}).find((e=>"day"===e.type)).value,z=(e,t)=>L(e,t,{year:"numeric"}),B=e=>{var t,n,o;return new Date(`${null!==(t=e.month)&&void 0!==t?t:1}/${null!==(n=e.day)&&void 0!==n?n:1}/${null!==(o=e.year)&&void 0!==o?o:2023}${void 0!==e.hour&&void 0!==e.minute?` ${e.hour}:${e.minute}`:""} GMT+0000`)},L=(e,t,n)=>{const o=B(t);return X(e,F(n)).format(o)},Q=(e,t,n)=>{const o=B(t);return X(e,n).formatToParts(o)},X=(e,t)=>new Intl.DateTimeFormat(e,Object.assign(Object.assign({},t),{timeZone:"UTC"})),Y=e=>{if("RelativeTimeFormat"in Intl){const t=new Intl.RelativeTimeFormat(e,{numeric:"auto"}).format(0,"day");return t.charAt(0).toUpperCase()+t.slice(1)}return"Today"},_=e=>{const t=e.getTimezoneOffset();return e.setMinutes(e.getMinutes()-t),e},ee=_(new Date("2022T01:00")),te=_(new Date("2022T13:00")),ne=(e,t)=>{const n="am"===t?ee:te,o=new Intl.DateTimeFormat(e,{hour:"numeric",timeZone:"UTC"}).formatToParts(n).find((e=>"dayPeriod"===e.type));return o?o.value:(e=>void 0===e?"":e.toUpperCase())(t)},oe=e=>Array.isArray(e)?e.join(","):e,re=()=>_(new Date).toISOString(),ae=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59],ie=[0,1,2,3,4,5,6,7,8,9,10,11],de=[0,1,2,3,4,5,6,7,8,9,10,11],ue=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23],le=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,0],se=(e,t,n=0)=>{const o=new Intl.DateTimeFormat(e,{weekday:"ios"===t?"short":"narrow"}),r=new Date("11/01/2020"),a=[];for(let e=n;e<n+7;e++){const t=new Date(r);t.setDate(t.getDate()+e),a.push(o.format(t))}return a},ce=(e,t,n,o=!1)=>{const r=d(e,t);let a;a=1===e?d(12,t-1):d(e-1,t);const i=new Date(`${e}/1/${t}`).getDay(),u=i>=n?i-(n+1):6-(n-i);let l=[];for(let e=1;e<=r;e++)l.push({day:e,dayOfWeek:(u+e)%7,isAdjacentDay:!1});if(o){for(let e=0;e<=u;e++)l=[{day:a-e,dayOfWeek:(a-e)%7,isAdjacentDay:!0},...l];const e=41-(r+u);for(let t=0;t<e;t++)l.push({day:t+1,dayOfWeek:(r+u+t)%7,isAdjacentDay:!0})}else for(let e=0;e<=u;e++)l=[{day:null,dayOfWeek:null,isAdjacentDay:!1},...l];return l},ve=(e,r,d="h12",u,l,s,c)=>{const v=a(e,d),m=i(v);let y=(e=>{switch(e){case"h11":return ie;case"h12":return de;case"h23":return ue;case"h24":return le;default:throw new Error(`Invalid hour cycle "${e}"`)}})(v),h=ae,f=!0,w=!0;if(s&&(y=y.filter((e=>s.includes(e)))),c&&(h=h.filter((e=>c.includes(e)))),u)if(t(r,u)){if(void 0!==u.hour&&(y=y.filter((e=>(m?e:"pm"===r.ampm?(e+12)%24:e)>=u.hour)),f=u.hour<13),void 0!==u.minute){let e=!1;void 0!==u.hour&&void 0!==r.hour&&r.hour>u.hour&&(e=!0),h=h.filter((t=>!!e||t>=u.minute))}}else n(r,u)&&(y=[],h=[],f=w=!1);return l&&(t(r,l)?(void 0!==l.hour&&(y=y.filter((e=>(m?e:"pm"===r.ampm?(e+12)%24:e)<=l.hour)),w=l.hour>=12),void 0!==l.minute&&r.hour===l.hour&&(h=h.filter((e=>e<=l.minute)))):o(r,l)&&(y=[],h=[],f=w=!1)),{hours:y,minutes:h,am:f,pm:w}},me=(e,t)=>{const o={month:e.month,year:e.year,day:e.day};if(void 0!==t&&(e.month!==t.month||e.year!==t.year)){const r={month:t.month,year:t.year,day:t.day};return n(r,o)?[r,o,A(e)]:[C(e),o,r]}return[C(e),o,A(e)]},ye=(e,t,n,o,r,a={month:"long"})=>{const{year:i}=t,d=[];if(void 0!==r){let t=r;void 0!==(null==o?void 0:o.month)&&(t=t.filter((e=>e<=o.month))),void 0!==(null==n?void 0:n.month)&&(t=t.filter((e=>e>=n.month))),t.forEach((t=>{const n=new Date(`${t}/1/${i} GMT+0000`),o=new Intl.DateTimeFormat(e,Object.assign(Object.assign({},a),{timeZone:"UTC"})).format(n);d.push({text:o,value:t})}))}else{const t=o&&o.year===i?o.month:12;for(let o=n&&n.year===i?n.month:1;o<=t;o++){const t=new Date(`${o}/1/${i} GMT+0000`),n=new Intl.DateTimeFormat(e,Object.assign(Object.assign({},a),{timeZone:"UTC"})).format(t);d.push({text:n,value:o})}}return d},he=(e,t,n,o,r,a={day:"numeric"})=>{const{month:i,year:u}=t,l=[],s=d(i,u),c=null!=(null==o?void 0:o.day)&&o.year===u&&o.month===i?o.day:s,v=null!=(null==n?void 0:n.day)&&n.year===u&&n.month===i?n.day:1;if(void 0!==r){let t=r;t=t.filter((e=>e>=v&&e<=c)),t.forEach((t=>{const n=new Date(`${i}/${t}/${u} GMT+0000`),o=new Intl.DateTimeFormat(e,Object.assign(Object.assign({},a),{timeZone:"UTC"})).format(n);l.push({text:o,value:t})}))}else for(let t=v;t<=c;t++){const n=new Date(`${i}/${t}/${u} GMT+0000`),o=new Intl.DateTimeFormat(e,Object.assign(Object.assign({},a),{timeZone:"UTC"})).format(n);l.push({text:o,value:t})}return l},fe=(e,t,n,o,r)=>{var a,i;let d=[];if(void 0!==r)d=r,void 0!==(null==o?void 0:o.year)&&(d=d.filter((e=>e<=o.year))),void 0!==(null==n?void 0:n.year)&&(d=d.filter((e=>e>=n.year)));else{const{year:e}=t,r=null!==(a=null==o?void 0:o.year)&&void 0!==a?a:e;for(let t=null!==(i=null==n?void 0:n.year)&&void 0!==i?i:e-100;t<=r;t++)d.push(t)}return d.map((n=>({text:z(e,{year:n,month:t.month,day:t.day}),value:n})))},we=(e,t)=>e.month===t.month&&e.year===t.year?[e]:[e,...we(A(e),t)],Oe=(e,n,o,r,a,i)=>{let d=[],u=[],l=we(o,r);return i&&(l=l.filter((({month:e})=>i.includes(e)))),l.forEach((i=>{const l={month:i.month,day:null,year:i.year},s=he(e,l,o,r,a,{month:"short",day:"numeric",weekday:"short"}),c=[],v=[];s.forEach((o=>{const r=t(Object.assign(Object.assign({},l),{day:o.value}),n);v.push({text:r?Y(e):o.text,value:`${l.year}-${l.month}-${o.value}`}),c.push({month:l.month,year:l.year,day:o.value})})),u=[...u,...c],d=[...d,...v]})),{parts:u,items:d}},$e=(e,t,n,o,r,d,u)=>{const l=a(e,n),s=i(l),{hours:c,minutes:v,am:m,pm:y}=ve(e,t,l,o,r,d,u),h=c.map((e=>({text:H(e,l),value:N(e,s,t.ampm)}))),f=v.map((e=>({text:S(e),value:e}))),w=[];return m&&!s&&w.push({text:ne(e,"am"),value:"am"}),y&&!s&&w.push({text:ne(e,"pm"),value:"pm"}),{minutesData:f,hoursData:h,dayPeriodData:w}};export{G as A,me as B,d as C,Oe as D,ye as E,he as F,fe as G,u as H,$e as I,l as J,P as K,se as L,R as M,ce as N,a as O,J as P,L as Q,oe as R,o as a,A as b,t as c,q as d,K as e,m as f,C as g,E as h,n as i,g as j,I as k,b as l,T as m,D as n,k as o,x as p,O as q,w as r,y as s,f as t,h as u,W as v,r as w,v as x,p as y,re as z}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * (C) Ionic http://ionicframework.com - MIT License
3
3
  */
4
- import{e as o,l as i,m as t,n as e,o as n,q as r,f as d}from"./p-C8IsBmNU.js";const s=o=>l(o),a=(o,i)=>("string"==typeof o&&(i=o,o=void 0),s(o).includes(i)),l=(o=window)=>{if(void 0===o)return[];o.Ionic=o.Ionic||{};let i=o.Ionic.platforms;return null==i&&(i=o.Ionic.platforms=c(o),i.forEach((i=>o.document.documentElement.classList.add(`plt-${i}`)))),i},c=i=>{const t=o.get("platform");return Object.keys(j).filter((o=>{const e=null==t?void 0:t[o];return"function"==typeof e?e(i):j[o](i)}))},u=o=>!!h(o,/iPad/i)||!(!h(o,/Macintosh/i)||!p(o)),m=o=>h(o,/android|sink/i),p=o=>w(o,"(any-pointer:coarse)"),v=o=>f(o)||b(o),f=o=>!!(o.cordova||o.phonegap||o.PhoneGap),b=o=>{const i=o.Capacitor;return!!((null==i?void 0:i.isNative)||(null==i?void 0:i.isNativePlatform)&&i.isNativePlatform())},h=(o,i)=>i.test(o.navigator.userAgent),w=(o,i)=>{var t;return null===(t=o.matchMedia)||void 0===t?void 0:t.call(o,i).matches},j={ipad:u,iphone:o=>h(o,/iPhone/i),ios:o=>h(o,/iPhone|iPod/i)||u(o),android:m,phablet:o=>{const i=o.innerWidth,t=o.innerHeight,e=Math.min(i,t),n=Math.max(i,t);return e>390&&e<520&&n>620&&n<800},tablet:o=>{const i=o.innerWidth,t=o.innerHeight,e=Math.min(i,t),n=Math.max(i,t);return u(o)||(o=>m(o)&&!h(o,/mobile/i))(o)||e>460&&e<820&&n>780&&n<1400},cordova:f,capacitor:b,electron:o=>h(o,/electron/i),pwa:o=>{var i;return!(!(null===(i=o.matchMedia)||void 0===i?void 0:i.call(o,"(display-mode: standalone)").matches)&&!o.navigator.standalone)},mobile:p,mobileweb:o=>p(o)&&!v(o),desktop:o=>!p(o),hybrid:v};let O;const y=o=>o&&n(o)||O,g=(n={})=>{if("undefined"==typeof window)return;const s=window.document,c=window,u=c.Ionic=c.Ionic||{},m=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},i(c)),{persistConfig:!1}),u.config),t(c)),n);o.reset(m),o.getBoolean("persistConfig")&&e(c,m),l(c),u.config=o,u.mode=O=o.get("mode",s.documentElement.getAttribute("mode")||(a(c,"ios")?"ios":"md")),o.set("mode",O),s.documentElement.setAttribute("mode",O),s.documentElement.classList.add(O),o.getBoolean("_testing")&&o.set("animated",!1);const p=o=>{var i;return null===(i=o.tagName)||void 0===i?void 0:i.startsWith("ION-")},v=o=>["ios","md"].includes(o);r((o=>{for(;o;){const i=o.mode||o.getAttribute("mode");if(i){if(v(i))return i;p(o)&&d('Invalid ionic mode: "'+i+'", expected: "ios" or "md"')}o=o.parentElement}return O}))};export{a,y as b,s as g,g as i}
4
+ import{e as o,l as i,m as t,n as e,o as n,q as r,f as d}from"./p-K56Zjrdc.js";const a=o=>l(o),s=(o,i)=>("string"==typeof o&&(i=o,o=void 0),a(o).includes(i)),l=(o=window)=>{if(void 0===o)return[];o.Ionic=o.Ionic||{};let i=o.Ionic.platforms;return null==i&&(i=o.Ionic.platforms=c(o),i.forEach((i=>o.document.documentElement.classList.add(`plt-${i}`)))),i},c=i=>{const t=o.get("platform");return Object.keys(j).filter((o=>{const e=null==t?void 0:t[o];return"function"==typeof e?e(i):j[o](i)}))},u=o=>!!h(o,/iPad/i)||!(!h(o,/Macintosh/i)||!m(o)),p=o=>h(o,/android|sink/i),m=o=>w(o,"(any-pointer:coarse)"),v=o=>f(o)||b(o),f=o=>!!(o.cordova||o.phonegap||o.PhoneGap),b=o=>{const i=o.Capacitor;return!!((null==i?void 0:i.isNative)||(null==i?void 0:i.isNativePlatform)&&i.isNativePlatform())},h=(o,i)=>i.test(o.navigator.userAgent),w=(o,i)=>{var t;return null===(t=o.matchMedia)||void 0===t?void 0:t.call(o,i).matches},j={ipad:u,iphone:o=>h(o,/iPhone/i),ios:o=>h(o,/iPhone|iPod/i)||u(o),android:p,phablet:o=>{const i=o.innerWidth,t=o.innerHeight,e=Math.min(i,t),n=Math.max(i,t);return e>390&&e<520&&n>620&&n<800},tablet:o=>{const i=o.innerWidth,t=o.innerHeight,e=Math.min(i,t),n=Math.max(i,t);return u(o)||(o=>p(o)&&!h(o,/mobile/i))(o)||e>460&&e<820&&n>780&&n<1400},cordova:f,capacitor:b,electron:o=>h(o,/electron/i),pwa:o=>{var i;return!(!(null===(i=o.matchMedia)||void 0===i?void 0:i.call(o,"(display-mode: standalone)").matches)&&!o.navigator.standalone)},mobile:m,mobileweb:o=>m(o)&&!v(o),desktop:o=>!m(o),hybrid:v};let O;const y=o=>o&&n(o)||O,g=(n={})=>{if("undefined"==typeof window)return;const a=window.document,c=window,u=c.Ionic=c.Ionic||{},p=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},i(c)),{persistConfig:!1}),u.config),t(c)),n);o.reset(p),o.getBoolean("persistConfig")&&e(c,p),l(c),u.config=o,u.mode=O=o.get("mode",a.documentElement.getAttribute("mode")||(s(c,"ios")?"ios":"md")),o.set("mode",O),a.documentElement.setAttribute("mode",O),a.documentElement.classList.add(O),o.getBoolean("_testing")&&o.set("animated",!1);const m=o=>{var i;return null===(i=o.tagName)||void 0===i?void 0:i.startsWith("ION-")},v=o=>["ios","md"].includes(o);r((o=>{for(;o;){const i=o.mode||o.getAttribute("mode");if(i){if(v(i))return i;m(o)&&d('Invalid ionic mode: "'+i+'", expected: "ios" or "md"')}o=o.parentElement}return O}))};export{s as a,y as b,a as g,g as i}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * (C) Ionic http://ionicframework.com - MIT License
3
3
  */
4
- import{w as t}from"./p-C8IsBmNU.js";import{h as o,a as e,b as n}from"./p-CKvCXMs9.js";import{createGesture as r}from"./p-Cl0B-RWe.js";const s=(s,a)=>{let i,c;const d=(t,o,e)=>{if("undefined"==typeof document)return;const n=document.elementFromPoint(t,o);n&&a(n)&&!n.disabled?n!==i&&(p(),m(n,e)):p()},m=(o,e)=>{i=o,c||(c=i);const n=i;t((()=>n.classList.add("ion-activated"))),e()},p=(o=!1)=>{if(!i)return;const e=i;t((()=>e.classList.remove("ion-activated"))),o&&c!==i&&i.click(),i=void 0};return r({el:s,gestureName:"buttonActiveDrag",threshold:0,onStart:t=>d(t.currentX,t.currentY,n),onMove:t=>d(t.currentX,t.currentY,e),onEnd:()=>{p(!0),o(),c=void 0}})};export{s as c}
4
+ import{w as t}from"./p-K56Zjrdc.js";import{h as o,a as e,b as n}from"./p-CKvCXMs9.js";import{createGesture as r}from"./p-Cl0B-RWe.js";const s=(s,a)=>{let i,c;const d=(t,o,e)=>{if("undefined"==typeof document)return;const n=document.elementFromPoint(t,o);n&&a(n)&&!n.disabled?n!==i&&(p(),m(n,e)):p()},m=(o,e)=>{i=o,c||(c=i);const n=i;t((()=>n.classList.add("ion-activated"))),e()},p=(o=!1)=>{if(!i)return;const e=i;t((()=>e.classList.remove("ion-activated"))),o&&c!==i&&i.click(),i=void 0};return r({el:s,gestureName:"buttonActiveDrag",threshold:0,onStart:t=>d(t.currentX,t.currentY,n),onMove:t=>d(t.currentX,t.currentY,e),onEnd:()=>{p(!0),o(),c=void 0}})};export{s as c}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * (C) Ionic http://ionicframework.com - MIT License
3
3
  */
4
- import{c as e}from"./p-CTfR9YZG.js";const o=async(o,t,i,n,r,s)=>{var a;if(o)return o.attachViewToDom(t,i,r,n);if(!(s||"string"==typeof i||i instanceof HTMLElement))throw new Error("framework delegate is missing");const c="string"==typeof i?null===(a=t.ownerDocument)||void 0===a?void 0:a.createElement(i):i;return n&&n.forEach((e=>c.classList.add(e))),r&&Object.assign(c,r),t.appendChild(c),await new Promise((o=>e(c,o))),c},t=(e,o)=>{if(o){if(e)return e.removeViewFromDom(o.parentElement,o);o.remove()}return Promise.resolve()},i=()=>{let o,t;return{attachViewToDom:async(i,n,r={},s=[])=>{var a,c;let l;if(o=i,n){const t="string"==typeof n?null===(a=o.ownerDocument)||void 0===a?void 0:a.createElement(n):n;s.forEach((e=>t.classList.add(e))),Object.assign(t,r),o.appendChild(t),l=t,await new Promise((o=>e(t,o)))}else if(o.children.length>0&&("ION-MODAL"===o.tagName||"ION-POPOVER"===o.tagName)&&!(l=o.children[0]).classList.contains("ion-delegate-host")){const e=null===(c=o.ownerDocument)||void 0===c?void 0:c.createElement("div");e.classList.add("ion-delegate-host"),s.forEach((o=>e.classList.add(o))),e.append(...o.children),o.appendChild(e),l=e}const m=document.querySelector("ion-app")||document.body;return t=document.createComment("ionic teleport"),o.parentNode.insertBefore(t,o),m.appendChild(o),null!=l?l:o},removeViewFromDom:()=>(o&&t&&(t.parentNode.insertBefore(o,t),t.remove()),Promise.resolve())}};export{i as C,o as a,t as d}
4
+ import{c as e}from"./p-RUyJri7q.js";const o=async(o,t,i,n,r,s)=>{var a;if(o)return o.attachViewToDom(t,i,r,n);if(!(s||"string"==typeof i||i instanceof HTMLElement))throw new Error("framework delegate is missing");const c="string"==typeof i?null===(a=t.ownerDocument)||void 0===a?void 0:a.createElement(i):i;return n&&n.forEach((e=>c.classList.add(e))),r&&Object.assign(c,r),t.appendChild(c),await new Promise((o=>e(c,o))),c},t=(e,o)=>{if(o){if(e)return e.removeViewFromDom(o.parentElement,o);o.remove()}return Promise.resolve()},i=()=>{let o,t;return{attachViewToDom:async(i,n,r={},s=[])=>{var a,c;let l;if(o=i,n){const t="string"==typeof n?null===(a=o.ownerDocument)||void 0===a?void 0:a.createElement(n):n;s.forEach((e=>t.classList.add(e))),Object.assign(t,r),o.appendChild(t),l=t,await new Promise((o=>e(t,o)))}else if(o.children.length>0&&("ION-MODAL"===o.tagName||"ION-POPOVER"===o.tagName)&&!(l=o.children[0]).classList.contains("ion-delegate-host")){const e=null===(c=o.ownerDocument)||void 0===c?void 0:c.createElement("div");e.classList.add("ion-delegate-host"),s.forEach((o=>e.classList.add(o))),e.append(...o.children),o.appendChild(e),l=e}const m=document.querySelector("ion-app")||document.body;return t=document.createComment("ionic teleport"),o.parentNode.insertBefore(t,o),m.appendChild(o),null!=l?l:o},removeViewFromDom:()=>(o&&t&&(t.parentNode.insertBefore(o,t),t.remove()),Promise.resolve())}};export{i as C,o as a,t as d}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * (C) Ionic http://ionicframework.com - MIT License
3
3
  */
4
- import{c as o}from"./p-CTfR9YZG.js";import{t as s}from"./p-C8IsBmNU.js";const t="ion-content",a=".ion-content-scroll-host",r=`${t}, ${a}`,e=o=>"ION-CONTENT"===o.tagName,i=async s=>e(s)?(await new Promise((t=>o(s,t))),s.getScrollElement()):s,n=o=>o.querySelector(a)||o.querySelector(r),m=o=>o.closest(r),f=(o,s)=>e(o)?o.scrollToTop(s):Promise.resolve(o.scrollTo({top:0,left:0,behavior:"smooth"})),c=(o,s,t,a)=>e(o)?o.scrollByPoint(s,t,a):Promise.resolve(o.scrollBy({top:t,left:s,behavior:a>0?"smooth":"auto"})),p=o=>s(o,t),h=o=>{if(e(o)){const s=o.scrollY;return o.scrollY=!1,s}return o.style.setProperty("overflow","hidden"),!0},l=(o,s)=>{e(o)?o.scrollY=s:o.style.removeProperty("overflow")};export{a as I,n as a,t as b,c,h as d,m as f,i as g,e as i,p,l as r,f as s}
4
+ import{c as o}from"./p-RUyJri7q.js";import{t as s}from"./p-K56Zjrdc.js";const t="ion-content",a=".ion-content-scroll-host",r=`${t}, ${a}`,e=o=>"ION-CONTENT"===o.tagName,i=async s=>e(s)?(await new Promise((t=>o(s,t))),s.getScrollElement()):s,n=o=>o.querySelector(a)||o.querySelector(r),c=o=>o.closest(r),m=(o,s)=>e(o)?o.scrollToTop(s):Promise.resolve(o.scrollTo({top:0,left:0,behavior:"smooth"})),f=(o,s,t,a)=>e(o)?o.scrollByPoint(s,t,a):Promise.resolve(o.scrollBy({top:t,left:s,behavior:a>0?"smooth":"auto"})),p=o=>s(o,t),h=o=>{if(e(o)){const s=o.scrollY;return o.scrollY=!1,s}return o.style.setProperty("overflow","hidden"),!0},l=(o,s)=>{e(o)?o.scrollY=s:o.style.removeProperty("overflow")};export{a as I,n as a,t as b,f as c,h as d,c as f,i as g,e as i,p,l as r,m as s}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * (C) Ionic http://ionicframework.com - MIT License
3
3
  */
4
- import{w as o}from"./p-ZjP4CjeZ.js";import{r}from"./p-CTfR9YZG.js";import{j as t}from"./p-C8IsBmNU.js";const e=(t,e,i)=>{let n,s;if(void 0!==o&&"MutationObserver"in o){const o=Array.isArray(e)?e:[e];n=new MutationObserver((t=>{for(const e of t)for(const t of e.addedNodes)if(t.nodeType===Node.ELEMENT_NODE&&o.includes(t.slot))return i(),void r((()=>c(t)))})),n.observe(t,{childList:!0,subtree:!0})}const c=o=>{var r;s&&(s.disconnect(),s=void 0),s=new MutationObserver((o=>{i();for(const r of o)for(const o of r.removedNodes)o.nodeType===Node.ELEMENT_NODE&&o.slot===e&&f()})),s.observe(null!==(r=o.parentElement)&&void 0!==r?r:o,{subtree:!0,childList:!0})},f=()=>{s&&(s.disconnect(),s=void 0)};return{destroy:()=>{n&&(n.disconnect(),n=void 0),f()}}},i=(o,r,e)=>{const i=null==o?0:o.toString().length,s=n(i,r);if(void 0===e)return s;try{return e(i,r)}catch(o){return t("[ion-input] - Exception in provided `counterFormatter`:",o),s}},n=(o,r)=>`${o} / ${r}`;export{e as c,i as g}
4
+ import{w as o}from"./p-ZjP4CjeZ.js";import{r}from"./p-RUyJri7q.js";import{j as t}from"./p-K56Zjrdc.js";const e=(t,e,i)=>{let n,s;if(void 0!==o&&"MutationObserver"in o){const o=Array.isArray(e)?e:[e];n=new MutationObserver((t=>{for(const e of t)for(const t of e.addedNodes)if(t.nodeType===Node.ELEMENT_NODE&&o.includes(t.slot))return i(),void r((()=>c(t)))})),n.observe(t,{childList:!0,subtree:!0})}const c=o=>{var r;s&&(s.disconnect(),s=void 0),s=new MutationObserver((o=>{i();for(const r of o)for(const o of r.removedNodes)o.nodeType===Node.ELEMENT_NODE&&o.slot===e&&d()})),s.observe(null!==(r=o.parentElement)&&void 0!==r?r:o,{subtree:!0,childList:!0})},d=()=>{s&&(s.disconnect(),s=void 0)};return{destroy:()=>{n&&(n.disconnect(),n=void 0),d()}}},i=(o,r,e)=>{const i=null==o?0:o.toString().length,s=n(i,r);if(void 0===e)return s;try{return e(i,r)}catch(o){return t("[ion-input] - Exception in provided `counterFormatter`:",o),s}},n=(o,r)=>`${o} / ${r}`;export{e as c,i as g}
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * (C) Ionic http://ionicframework.com - MIT License
3
+ */
4
+ import{c as i}from"./p-BFdLXUmQ.js";import{g as o}from"./p-Da9FzgKM.js";import"./p-K56Zjrdc.js";import"./p-ZjP4CjeZ.js";import"./p-RUyJri7q.js";const r=(r,t)=>{var a,n,s;const p="40px",e="back"===t.direction,c=t.leavingEl,l=o(t.enteringEl),b=l.querySelector("ion-toolbar"),m=i();if(m.addElement(l).fill("both").beforeRemoveClass("ion-page-invisible"),e?m.duration((null!==(a=t.duration)&&void 0!==a?a:0)||200).easing("cubic-bezier(0.47,0,0.745,0.715)"):m.duration((null!==(n=t.duration)&&void 0!==n?n:0)||280).easing("cubic-bezier(0.36,0.66,0.04,1)").fromTo("transform",`translateY(${p})`,"translateY(0px)").fromTo("opacity",.01,1),b){const o=i();o.addElement(b),m.addAnimation(o)}if(c&&e){m.duration((null!==(s=t.duration)&&void 0!==s?s:0)||200).easing("cubic-bezier(0.47,0,0.745,0.715)");const r=i();r.addElement(o(c)).onFinish((i=>{1===i&&r.elements.length>0&&r.elements[0].style.setProperty("display","none")})).fromTo("transform","translateY(0px)",`translateY(${p})`).fromTo("opacity",1,0),m.addAnimation(r)}return m};export{r as mdTransitionAnimation}
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * (C) Ionic http://ionicframework.com - MIT License
3
+ */
4
+ import{a as o,w as s}from"./p-K56Zjrdc.js";import{f as r,s as t}from"./p-C6NxSVl3.js";import{c as a}from"./p-RUyJri7q.js";const n=()=>{const n=window;n.addEventListener("statusTap",(()=>{o((()=>{const o=document.elementFromPoint(n.innerWidth/2,n.innerHeight/2);if(!o)return;const i=r(o);i&&new Promise((o=>a(i,o))).then((()=>{s((async()=>{i.style.setProperty("--overflow","hidden"),await t(i,300),i.style.removeProperty("--overflow")}))}))}))}))};export{n as startStatusTap}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * (C) Ionic http://ionicframework.com - MIT License
3
3
  */
4
- import{w as o}from"./p-ZjP4CjeZ.js";import{r as t}from"./p-CTfR9YZG.js";const r=(r,e,i)=>{let n;const s=()=>void 0!==e()&&void 0===r.label&&null!==i(),d=()=>{const t=e();if(void 0===t)return;if(!s())return void t.style.removeProperty("width");const c=i().scrollWidth;if(0===c&&null===t.offsetParent&&void 0!==o&&"IntersectionObserver"in o){if(void 0!==n)return;const o=n=new IntersectionObserver((t=>{1===t[0].intersectionRatio&&(d(),o.disconnect(),n=void 0)}),{threshold:.01,root:r});o.observe(t)}else t.style.setProperty("width",.75*c+"px")};return{calculateNotchWidth:()=>{s()&&t((()=>{d()}))},destroy:()=>{n&&(n.disconnect(),n=void 0)}}};export{r as c}
4
+ import{w as o}from"./p-ZjP4CjeZ.js";import{r as t}from"./p-RUyJri7q.js";const r=(r,e,i)=>{let n;const s=()=>void 0!==e()&&void 0===r.label&&null!==i(),d=()=>{const t=e();if(void 0===t)return;if(!s())return void t.style.removeProperty("width");const c=i().scrollWidth;if(0===c&&null===t.offsetParent&&void 0!==o&&"IntersectionObserver"in o){if(void 0!==n)return;const o=n=new IntersectionObserver((t=>{1===t[0].intersectionRatio&&(d(),o.disconnect(),n=void 0)}),{threshold:.01,root:r});o.observe(t)}else t.style.setProperty("width",.75*c+"px")};return{calculateNotchWidth:()=>{s()&&t((()=>{d()}))},destroy:()=>{n&&(n.disconnect(),n=void 0)}}};export{r as c}
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * (C) Ionic http://ionicframework.com - MIT License
3
+ */
4
+ import{d as t}from"./p-ZjP4CjeZ.js";import{q as e}from"./p-RUyJri7q.js";import"./p-K56Zjrdc.js";const i=i=>{if(void 0===t)return;let f,p,u,d=0;const l=i.getBoolean("animated",!0)&&i.getBoolean("rippleEffect",!0),v=new WeakMap,m=()=>{u&&clearTimeout(u),u=void 0,f&&(b(!1),f=void 0)},j=(t,i)=>{if(t&&t===f)return;u&&clearTimeout(u),u=void 0;const{x:o,y:n}=e(i);if(f){if(v.has(f))throw new Error("internal error");f.classList.contains(a)||w(f,o,n),b(!0)}if(t){const e=v.get(t);e&&(clearTimeout(e),v.delete(t)),t.classList.remove(a);const i=()=>{w(t,o,n),u=void 0};r(t)?i():u=setTimeout(i,c)}f=t},w=(t,e,i)=>{if(d=Date.now(),t.classList.add(a),!l)return;const o=n(t);null!==o&&(T(),p=o.addRipple(e,i))},T=()=>{void 0!==p&&(p.then((t=>t())),p=void 0)},b=t=>{T();const e=f;if(!e)return;const i=s-Date.now()+d;if(t&&i>0&&!r(e)){const t=setTimeout((()=>{e.classList.remove(a),v.delete(e)}),s);v.set(e,t)}else e.classList.remove(a)};t.addEventListener("ionGestureCaptured",m),t.addEventListener("pointerdown",(t=>{f||2===t.button||j(o(t),t)}),!0),t.addEventListener("pointerup",(t=>{j(void 0,t)}),!0),t.addEventListener("pointercancel",m,!0)},o=t=>{if(void 0===t.composedPath)return t.target.closest(".ion-activatable");{const e=t.composedPath();for(let t=0;t<e.length-2;t++){const i=e[t];if(!(i instanceof ShadowRoot)&&i.classList.contains("ion-activatable"))return i}}},r=t=>t.classList.contains("ion-activatable-instant"),n=t=>{if(t.shadowRoot){const e=t.shadowRoot.querySelector("ion-ripple-effect");if(e)return e}return t.querySelector("ion-ripple-effect")},a="ion-activated",c=100,s=150;export{i as startTapClick}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * (C) Ionic http://ionicframework.com - MIT License
3
3
  */
4
- import{d as n}from"./p-ZjP4CjeZ.js";import{n as o,c as e,f as t,m as i,g as a}from"./p-CTfR9YZG.js";import{OVERLAY_BACK_BUTTON_PRIORITY as s,shouldUseCloseWatcher as r}from"./p-B0q1YL7N.js";import{e as d,j as l,f as c}from"./p-C8IsBmNU.js";import{b as u}from"./p-BFvmZNyx.js";import{C as m}from"./p-D-eFFUkA.js";import{B as p}from"./p-BTEOs1at.js";const v='[tabindex]:not([tabindex^="-"]):not([hidden]):not([disabled]), input:not([type=hidden]):not([tabindex^="-"]):not([hidden]):not([disabled]), textarea:not([tabindex^="-"]):not([hidden]):not([disabled]), button:not([tabindex^="-"]):not([hidden]):not([disabled]), select:not([tabindex^="-"]):not([hidden]):not([disabled]), ion-checkbox:not([tabindex^="-"]):not([hidden]):not([disabled]), ion-radio:not([tabindex^="-"]):not([hidden]):not([disabled]), .ion-focusable:not([tabindex^="-"]):not([hidden]):not([disabled]), .ion-focusable[disabled="false"]:not([tabindex^="-"]):not([hidden])',f=(n,o)=>{const e=n.querySelector(v);b(e,null!=o?o:n)},h=(n,o)=>{const e=Array.from(n.querySelectorAll(v));b(e.length>0?e[e.length-1]:null,null!=o?o:n)},b=(n,e)=>{let t=n;const i=null==n?void 0:n.shadowRoot;if(i&&(t=i.querySelector(v)||n),t){const n=t.closest("ion-radio-group");n?n.setFocus():o(t)}else e.focus()};let y=0,w=0;const g=new WeakMap,O=n=>({create:o=>D(n,o),dismiss:(o,e,t)=>P(document,o,e,n,t),getTop:async()=>E(document,n)}),T=O("ion-alert"),k=O("ion-action-sheet"),x=O("ion-loading"),j=O("ion-modal"),A=O("ion-picker-legacy"),C=O("ion-popover"),N=O("ion-toast"),B=n=>{"undefined"!=typeof document&&F(document);const o=y++;n.overlayIndex=o},I=n=>(n.hasAttribute("id")||(n.id="ion-overlay-"+ ++w),n.id),D=(n,o)=>"undefined"!=typeof window&&void 0!==window.customElements?window.customElements.whenDefined(n).then((()=>{const t=document.createElement(n);return t.classList.add("overlay-hidden"),Object.assign(t,Object.assign(Object.assign({},o),{hasController:!0})),q(document).appendChild(t),new Promise((n=>e(t,n)))})):Promise.resolve(),S=(n,e)=>{let t=n;const i=null==n?void 0:n.shadowRoot;i&&(t=i.querySelector(v)||n),t?o(t):e.focus()},F=n=>{0===y&&(y=1,n.addEventListener("focus",(o=>{((n,o)=>{const e=E(o,"ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker-legacy,ion-popover"),t=n.target;e&&t&&(e.classList.contains(X)||(e.shadowRoot?(()=>{if(e.contains(t))e.lastFocus=t;else if("ION-TOAST"===t.tagName)S(e.lastFocus,e);else{const n=e.lastFocus;f(e),n===o.activeElement&&h(e),e.lastFocus=o.activeElement}})():(()=>{if(e===t)e.lastFocus=void 0;else if("ION-TOAST"===t.tagName)S(e.lastFocus,e);else{const n=a(e);if(!n.contains(t))return;const i=n.querySelector(".ion-overlay-wrapper");if(!i)return;if(i.contains(t)||t===n.querySelector("ion-backdrop"))e.lastFocus=t;else{const n=e.lastFocus;f(i,e),n===o.activeElement&&h(i,e),e.lastFocus=o.activeElement}}})()))})(o,n)}),!0),n.addEventListener("ionBackButton",(o=>{const e=E(n);(null==e?void 0:e.backdropDismiss)&&o.detail.register(s,(()=>{e.dismiss(void 0,_)}))})),r()||n.addEventListener("keydown",(o=>{if("Escape"===o.key){const o=E(n);(null==o?void 0:o.backdropDismiss)&&o.dismiss(void 0,_)}})))},P=(n,o,e,t,i)=>{const a=E(n,t,i);return a?a.dismiss(o,e):Promise.reject("overlay does not exist")},Z=(n,o)=>((n,o)=>(void 0===o&&(o="ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker-legacy,ion-popover,ion-toast"),Array.from(n.querySelectorAll(o)).filter((n=>n.overlayIndex>0))))(n,o).filter((n=>!n.classList.contains("overlay-hidden"))),E=(n,o,e)=>{const t=Z(n,o);return void 0===e?t[t.length-1]:t.find((n=>n.id===e))},G=(n=!1)=>{const o=q(document).querySelector("ion-router-outlet, #ion-view-container-root");o&&(n?o.setAttribute("aria-hidden","true"):o.removeAttribute("aria-hidden"))},L=async(n,o,e,t,i)=>{var a,s;if(n.presented)return;"ION-TOAST"!==n.el.tagName&&M(n.el);const r=n.el,l="ION-TOAST"!==r.tagName&&!1!==r.focusTrap&&!1!==r.showBackdrop;if(n.presented=!0,n.willPresent.emit(),l){const n=q(document).querySelector("ion-router-outlet, #ion-view-container-root");!!n&&n.contains(r)||G(!0),document.body.classList.add(p)}null===(a=n.willPresentShorthand)||void 0===a||a.emit();const c=u(n),m=n.enterAnimation?n.enterAnimation:d.get(o,"ios"===c?e:t);await U(n,m,n.el,i)&&(n.didPresent.emit(),null===(s=n.didPresentShorthand)||void 0===s||s.emit()),!n.keyboardClose||null!==document.activeElement&&n.el.contains(document.activeElement)||n.el.focus(),n.el.removeAttribute("aria-hidden"),n.el.removeAttribute("inert")},M=async n=>{let o=document.activeElement;if(!o)return;o.blur();const e=null==o?void 0:o.shadowRoot;e&&(o=e.querySelector(v)||o),await n.onDidDismiss(),null!==document.activeElement&&document.activeElement!==document.body||o.focus()},$=async(o,e,t,i,a,s,r)=>{var c,m;if(!o.presented)return!1;const v=(void 0!==n?Z(n):[]).filter((n=>"ION-TOAST"!==n.tagName&&!1!==n.focusTrap&&!1!==n.showBackdrop)),f=o.el;"ION-TOAST"!==f.tagName&&!1!==f.focusTrap&&!1!==f.showBackdrop&&1===v.length&&v[0].id===f.id&&(G(!1),document.body.classList.remove(p)),o.presented=!1;try{o.el.style.setProperty("pointer-events","none"),o.willDismiss.emit({data:e,role:t}),null===(c=o.willDismissShorthand)||void 0===c||c.emit({data:e,role:t});const n=u(o),l=o.leaveAnimation?o.leaveAnimation:d.get(i,"ios"===n?a:s);t!==H&&await U(o,l,o.el,r),o.didDismiss.emit({data:e,role:t}),null===(m=o.didDismissShorthand)||void 0===m||m.emit({data:e,role:t}),(g.get(o)||[]).forEach((n=>n.destroy())),g.delete(o),o.el.classList.add("overlay-hidden"),o.el.style.removeProperty("pointer-events"),void 0!==o.el.lastFocus&&(o.el.lastFocus=void 0)}catch(n){l(`[${o.el.tagName.toLowerCase()}] - `,n)}return o.el.remove(),!0},q=n=>n.querySelector("ion-app")||n.body,U=async(n,o,e,t)=>{e.classList.remove("overlay-hidden");const i=o(n.el,t);n.animated&&d.getBoolean("animated",!0)||i.duration(0),n.keyboardClose&&i.beforeAddWrite((()=>{const n=e.ownerDocument.activeElement;(null==n?void 0:n.matches("input,ion-input, ion-textarea"))&&n.blur()}));const a=g.get(n)||[];return g.set(n,[...a,i]),await i.play(),!0},V=(n,o)=>{let e;const t=new Promise((n=>e=n));return Y(n,o,(n=>{e(n.detail)})),t},Y=(n,o,e)=>{const a=t=>{i(n,o,a),e(t)};t(n,o,a)},z=n=>"cancel"===n||n===_,R=n=>n(),W=(n,o)=>{if("function"==typeof n)return d.get("_zoneGate",R)((()=>{try{return n(o)}catch(n){throw n}}))},_="backdrop",H="gesture",J=39,K=n=>{let o,e=!1;const t=m(),i=(i=!1)=>{if(o&&!i)return{delegate:o,inline:e};const{el:a,hasController:s,delegate:r}=n;return e=null!==a.parentNode&&!s,o=e?r||t:r,{inline:e,delegate:o}};return{attachViewToDom:async o=>{const{delegate:e}=i(!0);if(e)return await e.attachViewToDom(n.el,o);const{hasController:t}=n;if(t&&void 0!==o)throw new Error("framework delegate is missing");return null},removeViewFromDom:()=>{const{delegate:o}=i();o&&void 0!==n.el&&o.removeViewFromDom(n.el.parentElement,n.el)}}},Q=()=>{let n;const o=()=>{n&&(n(),n=void 0)};return{addClickListener:(e,t)=>{o();const i=void 0!==t?document.getElementById(t):null;i?n=((n,o)=>{const e=()=>{o.present()};return n.addEventListener("click",e),()=>{n.removeEventListener("click",e)}})(i,e):c(`[${e.tagName.toLowerCase()}] - A trigger element with the ID "${t}" was not found in the DOM. The trigger element must be in the DOM when the "trigger" property is set on an overlay component.`,e)},removeClickListener:o}},X="ion-disable-focus-trap";export{_ as B,X as F,H as G,J as O,T as a,k as b,C as c,K as d,Q as e,L as f,$ as g,V as h,z as i,B as j,I as k,x as l,j as m,f as n,E as o,A as p,h as q,W as s,N as t}
4
+ import{d as n}from"./p-ZjP4CjeZ.js";import{n as o,c as e,f as t,m as i,g as a}from"./p-RUyJri7q.js";import{OVERLAY_BACK_BUTTON_PRIORITY as r,shouldUseCloseWatcher as s}from"./p-Dj35jSF7.js";import{e as d,j as l,f as c}from"./p-K56Zjrdc.js";import{b as u}from"./p-BuiN7eei.js";import{C as m}from"./p-C5BtUTU0.js";import{B as p}from"./p-BTEOs1at.js";const v='[tabindex]:not([tabindex^="-"]):not([hidden]):not([disabled]), input:not([type=hidden]):not([tabindex^="-"]):not([hidden]):not([disabled]), textarea:not([tabindex^="-"]):not([hidden]):not([disabled]), button:not([tabindex^="-"]):not([hidden]):not([disabled]), select:not([tabindex^="-"]):not([hidden]):not([disabled]), ion-checkbox:not([tabindex^="-"]):not([hidden]):not([disabled]), ion-radio:not([tabindex^="-"]):not([hidden]):not([disabled]), .ion-focusable:not([tabindex^="-"]):not([hidden]):not([disabled]), .ion-focusable[disabled="false"]:not([tabindex^="-"]):not([hidden])',f=(n,o)=>{const e=n.querySelector(v);b(e,null!=o?o:n)},h=(n,o)=>{const e=Array.from(n.querySelectorAll(v));b(e.length>0?e[e.length-1]:null,null!=o?o:n)},b=(n,e)=>{let t=n;const i=null==n?void 0:n.shadowRoot;if(i&&(t=i.querySelector(v)||n),t){const n=t.closest("ion-radio-group");n?n.setFocus():o(t)}else e.focus()};let y=0,w=0;const g=new WeakMap,O=n=>({create:o=>S(n,o),dismiss:(o,e,t)=>E(document,o,e,n,t),getTop:async()=>M(document,n)}),j=O("ion-alert"),T=O("ion-action-sheet"),k=O("ion-loading"),x=O("ion-modal"),A=O("ion-picker-legacy"),C=O("ion-popover"),B=O("ion-toast"),I=n=>{"undefined"!=typeof document&&P(document);const o=y++;n.overlayIndex=o},N=n=>(n.hasAttribute("id")||(n.id="ion-overlay-"+ ++w),n.id),S=(n,o)=>"undefined"!=typeof window&&void 0!==window.customElements?window.customElements.whenDefined(n).then((()=>{const t=document.createElement(n);return t.classList.add("overlay-hidden"),Object.assign(t,Object.assign(Object.assign({},o),{hasController:!0})),G(document).appendChild(t),new Promise((n=>e(t,n)))})):Promise.resolve(),D=(n,e)=>{let t=n;const i=null==n?void 0:n.shadowRoot;i&&(t=i.querySelector(v)||n),t?o(t):e.focus()},P=n=>{0===y&&(y=1,n.addEventListener("focus",(o=>{((n,o)=>{const e=M(o,"ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker-legacy,ion-popover"),t=n.target;e&&t&&(e.classList.contains(Y)||(e.shadowRoot?(()=>{if(e.contains(t))e.lastFocus=t;else if("ION-TOAST"===t.tagName)D(e.lastFocus,e);else{const n=e.lastFocus;f(e),n===o.activeElement&&h(e),e.lastFocus=o.activeElement}})():(()=>{if(e===t)e.lastFocus=void 0;else if("ION-TOAST"===t.tagName)D(e.lastFocus,e);else{const n=a(e);if(!n.contains(t))return;const i=n.querySelector(".ion-overlay-wrapper");if(!i)return;if(i.contains(t)||t===n.querySelector("ion-backdrop"))e.lastFocus=t;else{const n=e.lastFocus;f(i,e),n===o.activeElement&&h(i,e),e.lastFocus=o.activeElement}}})()))})(o,n)}),!0),n.addEventListener("ionBackButton",(o=>{const e=M(n);(null==e?void 0:e.backdropDismiss)&&o.detail.register(r,(()=>{e.dismiss(void 0,W)}))})),s()||n.addEventListener("keydown",(o=>{if("Escape"===o.key){const o=M(n);(null==o?void 0:o.backdropDismiss)&&o.dismiss(void 0,W)}})))},E=(n,o,e,t,i)=>{const a=M(n,t,i);return a?a.dismiss(o,e):Promise.reject("overlay does not exist")},F=(n,o)=>((n,o)=>(void 0===o&&(o="ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker-legacy,ion-popover,ion-toast"),Array.from(n.querySelectorAll(o)).filter((n=>n.overlayIndex>0))))(n,o).filter((n=>!n.classList.contains("overlay-hidden"))),M=(n,o,e)=>{const t=F(n,o);return void 0===e?t[t.length-1]:t.find((n=>n.id===e))},U=(n=!1)=>{const o=G(document).querySelector("ion-router-outlet, #ion-view-container-root");o&&(n?o.setAttribute("aria-hidden","true"):o.removeAttribute("aria-hidden"))},Z=async(n,o,e,t,i)=>{var a,r;if(n.presented)return;"ION-TOAST"!==n.el.tagName&&$(n.el);const s=n.el,l="ION-TOAST"!==s.tagName&&!1!==s.focusTrap&&!1!==s.showBackdrop;if(n.presented=!0,n.willPresent.emit(),l){const n=G(document).querySelector("ion-router-outlet, #ion-view-container-root");!!n&&n.contains(s)||U(!0),document.body.classList.add(p)}null===(a=n.willPresentShorthand)||void 0===a||a.emit();const c=u(n),m=n.enterAnimation?n.enterAnimation:d.get(o,"ios"===c?e:t);await L(n,m,n.el,i)&&(n.didPresent.emit(),null===(r=n.didPresentShorthand)||void 0===r||r.emit()),!n.keyboardClose||null!==document.activeElement&&n.el.contains(document.activeElement)||n.el.focus(),n.el.removeAttribute("aria-hidden"),n.el.removeAttribute("inert")},$=async n=>{let o=document.activeElement;if(!o)return;o.blur();const e=null==o?void 0:o.shadowRoot;e&&(o=e.querySelector(v)||o),await n.onDidDismiss(),null!==document.activeElement&&document.activeElement!==document.body||o.focus()},q=async(o,e,t,i,a,r,s)=>{var c,m;if(!o.presented)return!1;const v=(void 0!==n?F(n):[]).filter((n=>"ION-TOAST"!==n.tagName&&!1!==n.focusTrap&&!1!==n.showBackdrop)),f=o.el;"ION-TOAST"!==f.tagName&&!1!==f.focusTrap&&!1!==f.showBackdrop&&1===v.length&&v[0].id===f.id&&(U(!1),document.body.classList.remove(p)),o.presented=!1;try{o.el.style.setProperty("pointer-events","none"),o.willDismiss.emit({data:e,role:t}),null===(c=o.willDismissShorthand)||void 0===c||c.emit({data:e,role:t});const n=u(o),l=o.leaveAnimation?o.leaveAnimation:d.get(i,"ios"===n?a:r);t!==_&&await L(o,l,o.el,s),o.didDismiss.emit({data:e,role:t}),null===(m=o.didDismissShorthand)||void 0===m||m.emit({data:e,role:t}),(g.get(o)||[]).forEach((n=>n.destroy())),g.delete(o),o.el.classList.add("overlay-hidden"),o.el.style.removeProperty("pointer-events"),void 0!==o.el.lastFocus&&(o.el.lastFocus=void 0)}catch(n){l(`[${o.el.tagName.toLowerCase()}] - `,n)}return o.el.remove(),!0},G=n=>n.querySelector("ion-app")||n.body,L=async(n,o,e,t)=>{e.classList.remove("overlay-hidden");const i=o(n.el,t);n.animated&&d.getBoolean("animated",!0)||i.duration(0),n.keyboardClose&&i.beforeAddWrite((()=>{const n=e.ownerDocument.activeElement;(null==n?void 0:n.matches("input,ion-input, ion-textarea"))&&n.blur()}));const a=g.get(n)||[];return g.set(n,[...a,i]),await i.play(),!0},V=(n,o)=>{let e;const t=new Promise((n=>e=n));return z(n,o,(n=>{e(n.detail)})),t},z=(n,o,e)=>{const a=t=>{i(n,o,a),e(t)};t(n,o,a)},J=n=>"cancel"===n||n===W,K=n=>n(),R=(n,o)=>{if("function"==typeof n)return d.get("_zoneGate",K)((()=>{try{return n(o)}catch(n){throw n}}))},W="backdrop",_="gesture",H=39,Q=n=>{let o,e=!1;const t=m(),i=(i=!1)=>{if(o&&!i)return{delegate:o,inline:e};const{el:a,hasController:r,delegate:s}=n;return e=null!==a.parentNode&&!r,o=e?s||t:s,{inline:e,delegate:o}};return{attachViewToDom:async o=>{const{delegate:e}=i(!0);if(e)return await e.attachViewToDom(n.el,o);const{hasController:t}=n;if(t&&void 0!==o)throw new Error("framework delegate is missing");return null},removeViewFromDom:()=>{const{delegate:o}=i();o&&void 0!==n.el&&o.removeViewFromDom(n.el.parentElement,n.el)}}},X=()=>{let n;const o=()=>{n&&(n(),n=void 0)};return{addClickListener:(e,t)=>{o();const i=void 0!==t?document.getElementById(t):null;i?n=((n,o)=>{const e=()=>{o.present()};return n.addEventListener("click",e),()=>{n.removeEventListener("click",e)}})(i,e):c(`[${e.tagName.toLowerCase()}] - A trigger element with the ID "${t}" was not found in the DOM. The trigger element must be in the DOM when the "trigger" property is set on an overlay component.`,e)},removeClickListener:o}},Y="ion-disable-focus-trap";export{W as B,Y as F,_ as G,H as O,j as a,T as b,C as c,Q as d,X as e,Z as f,q as g,V as h,J as i,I as j,N as k,k as l,x as m,f as n,M as o,A as p,h as q,R as s,B as t}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * (C) Ionic http://ionicframework.com - MIT License
3
3
  */
4
- import{e as n,f as e,w as i,B as a}from"./p-C8IsBmNU.js";import{r as o}from"./p-CTfR9YZG.js";const r="ionViewWillEnter",t="ionViewDidEnter",s="ionViewWillLeave",c="ionViewDidLeave",l="ionViewWillUnload",u=n=>{n.tabIndex=-1,n.focus()},d=n=>null!==n.offsetParent,f="ion-last-focus",w=e=>{if(n.get("focusManagerPriority",!1)){const n=document.activeElement;null!==n&&(null==e?void 0:e.contains(n))&&n.setAttribute(f,"true")}},p=i=>{const a=n.get("focusManagerPriority",!1);if(Array.isArray(a)&&!i.contains(document.activeElement)){const n=i.querySelector(`[${f}]`);if(n&&d(n))return void u(n);for(const n of a)switch(n){case"content":const a=i.querySelector('main, [role="main"]');if(a&&d(a))return void u(a);break;case"heading":const o=i.querySelector('h1, [role="heading"][aria-level="1"]');if(o&&d(o))return void u(o);break;case"banner":const r=i.querySelector('header, [role="banner"]');if(r&&d(r))return void u(r);break;default:e(`Unrecognized focus manager priority value ${n}`)}u(i)}},v=n=>new Promise(((e,a)=>{i((()=>{const i=B(n);m(n,i),b(n).then((i=>{i.animation&&i.animation.destroy(),g(n),e(i)}),(e=>{g(n),a(e)})).finally((()=>{W(i,!1)}))}))})),m=(n,e)=>{const i=n.enteringEl,a=n.leavingEl;w(a),U(i,a,n.direction),W(e,!0),n.showGoBack?i.classList.add("can-go-back"):i.classList.remove("can-go-back"),R(i,!1),i.style.setProperty("pointer-events","none"),a&&(R(a,!1),a.style.setProperty("pointer-events","none"))},b=async n=>{const e=await h(n);return e&&a.isBrowser?y(e,n):P(n)},g=n=>{const e=n.enteringEl,i=n.leavingEl;e.classList.remove("ion-page-invisible"),e.style.removeProperty("pointer-events"),void 0!==i&&(i.classList.remove("ion-page-invisible"),i.style.removeProperty("pointer-events")),p(e)},h=async n=>{if(n.leavingEl&&n.animated&&0!==n.duration)return n.animationBuilder?n.animationBuilder:"ios"===n.mode?(await import("./p-C7hRNDhM.js")).iosTransitionAnimation:(await import("./p-DZRJwG4S.js")).mdTransitionAnimation},y=async(n,e)=>{await k(e,!0);const i=n(e.baseEl,e);j(e.enteringEl,e.leavingEl);const a=await V(i,e);return e.progressCallback&&e.progressCallback(void 0),a&&D(e.enteringEl,e.leavingEl),{hasCompleted:a,animation:i}},P=async e=>{const i=e.enteringEl,a=e.leavingEl,o=n.get("focusManagerPriority",!1);return await k(e,o),j(i,a),D(i,a),{hasCompleted:!0}},k=async(n,e)=>{(void 0!==n.deepWait?n.deepWait:e)&&await Promise.all([L(n.enteringEl),L(n.leavingEl)]),await C(n.viewIsReady,n.enteringEl)},C=async(n,e)=>{n&&await n(e)},V=(n,e)=>{const i=e.progressCallback,a=new Promise((e=>{n.onFinish((n=>e(1===n)))}));return i?(n.progressStart(!0),i(n)):n.play(),a},j=(n,e)=>{M(e,s),M(n,r)},D=(n,e)=>{M(n,t),M(e,c)},M=(n,e)=>{if(n){const i=new CustomEvent(e,{bubbles:!1,cancelable:!1});n.dispatchEvent(i)}},E=()=>new Promise((n=>o((()=>o((()=>n())))))),L=async n=>{const e=n;if(e){if(null!=e.componentOnReady){if(null!=await e.componentOnReady())return}else if(null!=e.__registerHost){const n=new Promise((n=>o(n)));return void await n}await Promise.all(Array.from(e.children).map(L))}},R=(n,e)=>{e?(n.setAttribute("aria-hidden","true"),n.classList.add("ion-page-hidden")):(n.hidden=!1,n.removeAttribute("aria-hidden"),n.classList.remove("ion-page-hidden"))},U=(n,e,i)=>{void 0!==n&&(n.style.zIndex="back"===i?"99":"101"),void 0!==e&&(e.style.zIndex="100")},W=(n,e)=>{if(!n)return;const i="header-transitioning";e?n.classList.add(i):n.classList.remove(i)},A=n=>{if(n.classList.contains("ion-page"))return n;return n.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")||n},B=n=>{if("ios"!==n.mode)return null;const e="back"===n.direction?n.leavingEl:n.enteringEl;return e?e.querySelector("ion-header"):null};export{r as L,t as a,s as b,c,l as d,L as e,A as g,M as l,R as s,v as t,E as w}
4
+ import{e as n,f as e,w as i,B as a}from"./p-K56Zjrdc.js";import{r as o}from"./p-RUyJri7q.js";const r="ionViewWillEnter",t="ionViewDidEnter",s="ionViewWillLeave",c="ionViewDidLeave",l="ionViewWillUnload",u=n=>{n.tabIndex=-1,n.focus()},d=n=>null!==n.offsetParent,f="ion-last-focus",p=e=>{if(n.get("focusManagerPriority",!1)){const n=document.activeElement;null!==n&&(null==e?void 0:e.contains(n))&&n.setAttribute(f,"true")}},w=i=>{const a=n.get("focusManagerPriority",!1);if(Array.isArray(a)&&!i.contains(document.activeElement)){const n=i.querySelector(`[${f}]`);if(n&&d(n))return void u(n);for(const n of a)switch(n){case"content":const a=i.querySelector('main, [role="main"]');if(a&&d(a))return void u(a);break;case"heading":const o=i.querySelector('h1, [role="heading"][aria-level="1"]');if(o&&d(o))return void u(o);break;case"banner":const r=i.querySelector('header, [role="banner"]');if(r&&d(r))return void u(r);break;default:e(`Unrecognized focus manager priority value ${n}`)}u(i)}},v=n=>new Promise(((e,a)=>{i((()=>{const i=R(n);m(n,i),b(n).then((i=>{i.animation&&i.animation.destroy(),g(n),e(i)}),(e=>{g(n),a(e)})).finally((()=>{A(i,!1)}))}))})),m=(n,e)=>{const i=n.enteringEl,a=n.leavingEl;p(a),W(i,a,n.direction),A(e,!0),n.showGoBack?i.classList.add("can-go-back"):i.classList.remove("can-go-back"),U(i,!1),i.style.setProperty("pointer-events","none"),a&&(U(a,!1),a.style.setProperty("pointer-events","none"))},b=async n=>{const e=await h(n);return e&&a.isBrowser?y(e,n):P(n)},g=n=>{const e=n.enteringEl,i=n.leavingEl;e.classList.remove("ion-page-invisible"),e.style.removeProperty("pointer-events"),void 0!==i&&(i.classList.remove("ion-page-invisible"),i.style.removeProperty("pointer-events")),w(e)},h=async n=>{if(n.leavingEl&&n.animated&&0!==n.duration)return n.animationBuilder?n.animationBuilder:"ios"===n.mode?(await import("./p-oh-p68hr.js")).iosTransitionAnimation:(await import("./p-DJTLROMd.js")).mdTransitionAnimation},y=async(n,e)=>{await k(e,!0);const i=n(e.baseEl,e);L(e.enteringEl,e.leavingEl);const a=await V(i,e);return e.progressCallback&&e.progressCallback(void 0),a&&M(e.enteringEl,e.leavingEl),{hasCompleted:a,animation:i}},P=async e=>{const i=e.enteringEl,a=e.leavingEl,o=n.get("focusManagerPriority",!1);return await k(e,o),L(i,a),M(i,a),{hasCompleted:!0}},k=async(n,e)=>{(void 0!==n.deepWait?n.deepWait:e)&&await Promise.all([E(n.enteringEl),E(n.leavingEl)]),await j(n.viewIsReady,n.enteringEl)},j=async(n,e)=>{n&&await n(e)},V=(n,e)=>{const i=e.progressCallback,a=new Promise((e=>{n.onFinish((n=>e(1===n)))}));return i?(n.progressStart(!0),i(n)):n.play(),a},L=(n,e)=>{C(e,s),C(n,r)},M=(n,e)=>{C(n,t),C(e,c)},C=(n,e)=>{if(n){const i=new CustomEvent(e,{bubbles:!1,cancelable:!1});n.dispatchEvent(i)}},D=()=>new Promise((n=>o((()=>o((()=>n())))))),E=async n=>{const e=n;if(e){if(null!=e.componentOnReady){if(null!=await e.componentOnReady())return}else if(null!=e.__registerHost){const n=new Promise((n=>o(n)));return void await n}await Promise.all(Array.from(e.children).map(E))}},U=(n,e)=>{e?(n.setAttribute("aria-hidden","true"),n.classList.add("ion-page-hidden")):(n.hidden=!1,n.removeAttribute("aria-hidden"),n.classList.remove("ion-page-hidden"))},W=(n,e,i)=>{void 0!==n&&(n.style.zIndex="back"===i?"99":"101"),void 0!==e&&(e.style.zIndex="100")},A=(n,e)=>{if(!n)return;const i="header-transitioning";e?n.classList.add(i):n.classList.remove(i)},J=n=>{if(n.classList.contains("ion-page"))return n;return n.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")||n},R=n=>{if("ios"!==n.mode)return null;const e="back"===n.direction?n.leavingEl:n.enteringEl;return e?e.querySelector("ion-header"):null};export{r as L,t as a,s as b,c,l as d,E as e,J as g,C as l,U as s,v as t,D as w}
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * (C) Ionic http://ionicframework.com - MIT License
3
+ */
4
+ import{w as t}from"./p-ZjP4CjeZ.js";import{e,j as n}from"./p-K56Zjrdc.js";const o=()=>e.get("experimentalCloseWatcher",!1)&&void 0!==t&&"CloseWatcher"in t,r=()=>{document.addEventListener("backbutton",(()=>{}))},i=()=>{const e=document;let r=!1;const i=()=>{if(r)return;let t=0,o=[];const i=new CustomEvent("ionBackButton",{bubbles:!1,detail:{register(e,n){o.push({priority:e,handler:n,id:t++})}}});e.dispatchEvent(i);const a=()=>{if(o.length>0){let t={priority:Number.MIN_SAFE_INTEGER,handler:()=>{},id:-1};o.forEach((e=>{e.priority>=t.priority&&(t=e)})),r=!0,o=o.filter((e=>e.id!==t.id)),(async t=>{try{if(null==t?void 0:t.handler){const e=t.handler(a);null!=e&&await e}}catch(t){n("[ion-app] - Exception in startHardwareBackButton:",t)}})(t).then((()=>r=!1))}};a()};if(o()){let e;const n=()=>{null==e||e.destroy(),e=new t.CloseWatcher,e.onclose=()=>{i(),n()}};n()}else e.addEventListener("backbutton",i)},a=100,c=99;export{c as MENU_BACK_BUTTON_PRIORITY,a as OVERLAY_BACK_BUTTON_PRIORITY,r as blockHardwareBackButton,o as shouldUseCloseWatcher,i as startHardwareBackButton}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * (C) Ionic http://ionicframework.com - MIT License
3
3
  */
4
- import{j as t}from"./p-C8IsBmNU.js";const n=n=>{try{if(n instanceof c)return n.value;if(!r()||"string"!=typeof n||""===n)return n;if(n.includes("onload="))return"";const t=document.createDocumentFragment(),s=document.createElement("div");t.appendChild(s),s.innerHTML=n,i.forEach((n=>{const r=t.querySelectorAll(n);for(let n=r.length-1;n>=0;n--){const s=r[n];s.parentNode?s.parentNode.removeChild(s):t.removeChild(s);const i=e(s);for(let t=0;t<i.length;t++)o(i[t])}}));const a=e(t);for(let t=0;t<a.length;t++)o(a[t]);const d=document.createElement("div");d.appendChild(t);const l=d.querySelector("div");return null!==l?l.innerHTML:d.innerHTML}catch(n){return t("sanitizeDOMString",n),""}},o=t=>{if(t.nodeType&&1!==t.nodeType)return;if("undefined"!=typeof NamedNodeMap&&!(t.attributes instanceof NamedNodeMap))return void t.remove();for(let n=t.attributes.length-1;n>=0;n--){const o=t.attributes.item(n),e=o.name;if(!s.includes(e.toLowerCase())){t.removeAttribute(e);continue}const r=o.value,i=t[e];(null!=r&&r.toLowerCase().includes("javascript:")||null!=i&&i.toLowerCase().includes("javascript:"))&&t.removeAttribute(e)}const n=e(t);for(let t=0;t<n.length;t++)o(n[t])},e=t=>null!=t.children?t.children:t.childNodes,r=()=>{var t;const n=window,o=null===(t=null==n?void 0:n.Ionic)||void 0===t?void 0:t.config;return!o||(o.get?o.get("sanitizerEnabled",!0):!0===o.sanitizerEnabled||void 0===o.sanitizerEnabled)},s=["class","id","href","src","name","slot"],i=["script","style","iframe","meta","link","object","embed"];class c{constructor(t){this.value=t}}const a=t=>{const n=window,o=n.Ionic;if(!o||!o.config||"Object"===o.config.constructor.name)return n.Ionic=n.Ionic||{},n.Ionic.config=Object.assign(Object.assign({},n.Ionic.config),t),n.Ionic.config},d=()=>{var t;const n=window,o=null===(t=null==n?void 0:n.Ionic)||void 0===t?void 0:t.config;return o?o.mode?o.mode:o.get("mode"):"md"},l=!1;export{l as E,c as I,n as a,d as g,a as s}
4
+ import{j as t}from"./p-K56Zjrdc.js";const n=n=>{try{if(n instanceof c)return n.value;if(!r()||"string"!=typeof n||""===n)return n;if(n.includes("onload="))return"";const t=document.createDocumentFragment(),s=document.createElement("div");t.appendChild(s),s.innerHTML=n,i.forEach((n=>{const r=t.querySelectorAll(n);for(let n=r.length-1;n>=0;n--){const s=r[n];s.parentNode?s.parentNode.removeChild(s):t.removeChild(s);const i=e(s);for(let t=0;t<i.length;t++)o(i[t])}}));const d=e(t);for(let t=0;t<d.length;t++)o(d[t]);const a=document.createElement("div");a.appendChild(t);const l=a.querySelector("div");return null!==l?l.innerHTML:a.innerHTML}catch(n){return t("sanitizeDOMString",n),""}},o=t=>{if(t.nodeType&&1!==t.nodeType)return;if("undefined"!=typeof NamedNodeMap&&!(t.attributes instanceof NamedNodeMap))return void t.remove();for(let n=t.attributes.length-1;n>=0;n--){const o=t.attributes.item(n),e=o.name;if(!s.includes(e.toLowerCase())){t.removeAttribute(e);continue}const r=o.value,i=t[e];(null!=r&&r.toLowerCase().includes("javascript:")||null!=i&&i.toLowerCase().includes("javascript:"))&&t.removeAttribute(e)}const n=e(t);for(let t=0;t<n.length;t++)o(n[t])},e=t=>null!=t.children?t.children:t.childNodes,r=()=>{var t;const n=window,o=null===(t=null==n?void 0:n.Ionic)||void 0===t?void 0:t.config;return!o||(o.get?o.get("sanitizerEnabled",!0):!0===o.sanitizerEnabled||void 0===o.sanitizerEnabled)},s=["class","id","href","src","name","slot"],i=["script","style","iframe","meta","link","object","embed"];class c{constructor(t){this.value=t}}const d=t=>{const n=window,o=n.Ionic;if(!o||!o.config||"Object"===o.config.constructor.name)return n.Ionic=n.Ionic||{},n.Ionic.config=Object.assign(Object.assign({},n.Ionic.config),t),n.Ionic.config},a=()=>{var t;const n=window,o=null===(t=null==n?void 0:n.Ionic)||void 0===t?void 0:t.config;return o?o.mode?o.mode:o.get("mode"):"md"},l=!1;export{l as E,c as I,n as a,a as g,d as s}
@@ -0,0 +1,5 @@
1
+ /*!
2
+ * (C) Ionic http://ionicframework.com - MIT License
3
+ */
4
+ class t{constructor(){this.m=new Map}reset(t){this.m=new Map(Object.entries(t))}get(t,e){const n=this.m.get(t);return void 0!==n?n:e}getBoolean(t,e=!1){const n=this.m.get(t);return void 0===n?e:"string"==typeof n?"true"===n:!!n}getNumber(t,e){const n=parseFloat(this.m.get(t));return isNaN(n)?void 0!==e?e:NaN:n}set(t,e){this.m.set(t,e)}}const e=new t,n=t=>{try{const e=t.sessionStorage.getItem(r);return null!==e?JSON.parse(e):{}}catch(t){return{}}},o=(t,e)=>{try{t.sessionStorage.setItem(r,JSON.stringify(e))}catch(t){return}},s=t=>{const e={};return t.location.search.slice(1).split("&").map((t=>t.split("="))).map((([t,e])=>{try{return[decodeURIComponent(t),decodeURIComponent(e)]}catch(t){return["",""]}})).filter((([t])=>l(t,i))).map((([t,e])=>[t.slice(i.length),e])).forEach((([t,n])=>{e[t]=n})),e},l=(t,e)=>t.substr(0,e.length)===e,i="ionic:",r="ionic-persist-config";var c;!function(t){t.OFF="OFF",t.ERROR="ERROR",t.WARN="WARN"}(c||(c={}));const u=(t,...n)=>{const o=e.get("logLevel",c.WARN);if([c.WARN].includes(o))return console.warn("[Ionic Warning]: "+t,...n)},f=(t,...n)=>{const o=e.get("logLevel",c.ERROR);if([c.ERROR,c.WARN].includes(o))return console.error("[Ionic Error]: "+t,...n)},a=(t,...e)=>console.error(`<${t.tagName.toLowerCase()}> must be used inside ${e.join(" or ")}.`);var d=Object.defineProperty,h={isBrowser:!0},v=(t=>(t.Undefined="undefined",t.Null="null",t.String="string",t.Number="number",t.SpecialNumber="number",t.Boolean="boolean",t.BigInt="bigint",t))(v||{}),p=(t=>(t.Array="array",t.Date="date",t.Map="map",t.Object="object",t.RegularExpression="regexp",t.Set="set",t.Channel="channel",t.Symbol="symbol",t))(p||{}),b="type",$="value",m="serialized:",g=(t,e)=>{var n;Object.entries(null!=(n=e.o.t)?n:{}).map((([n,[o]])=>{if(31&o||32&o){const o=t[n],s=function(t,e){for(;t;){const n=Object.getOwnPropertyDescriptor(t,e);if(null==n?void 0:n.get)return n;t=Object.getPrototypeOf(t)}}(Object.getPrototypeOf(t),n)||Object.getOwnPropertyDescriptor(t,n);s&&Object.defineProperty(t,n,{get(){return s.get.call(this)},set(t){s.set.call(this,t)},configurable:!0,enumerable:!0}),t[n]=e.l.has(n)?e.l.get(n):o}}))},y=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},w=(t,e)=>{e&&(t.__stencil__getHostRef=()=>e,e.i=t,512&e.o.u&&g(t,e))},j=(t,e)=>e in t,O=(t,e)=>(0,console.error)(t,e),S=new Map,N=new Map,x=[],E="s-id",k="sty-id",C="c-id",R="slot-fb{display:contents}slot-fb[hidden]{display:none}",I="http://www.w3.org/1999/xlink",M="undefined"!=typeof window?window:{},L=M.HTMLElement||class{},A={u:0,h:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,o)=>t.addEventListener(e,n,o),rel:(t,e,n,o)=>t.removeEventListener(e,n,o),ce:(t,e)=>new CustomEvent(t,e)},B=t=>Promise.resolve(t),F=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),T=!!F&&(()=>!!M.document&&Object.getOwnPropertyDescriptor(M.document.adoptedStyleSheets,"length").writable)(),U=!1,P=[],W=[],_=(t,e)=>n=>{t.push(n),U||(U=!0,e&&4&A.u?z(V):A.raf(V))},D=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){O(t)}t.length=0},V=()=>{D(P),D(W),(U=P.length>0)&&A.raf(V)},z=t=>B().then(t),q=_(P,!1),H=_(W,!0),J=t=>{const e=new URL(t,A.h);return e.origin!==M.location.origin?e.href:e.pathname},Y=t=>"object"==(t=typeof t)||"function"===t;function G(t){var e,n,o;return null!=(o=null==(n=null==(e=t.head)?void 0:e.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}var K=class t{static fromLocalValue(e){const n=e[b],o=$ in e?e[$]:void 0;switch(n){case"string":case"boolean":return o;case"bigint":return BigInt(o);case"undefined":return;case"null":return null;case"number":return"NaN"===o?NaN:"-0"===o?-0:"Infinity"===o?1/0:"-Infinity"===o?-1/0:o;case"array":return o.map((e=>t.fromLocalValue(e)));case"date":return new Date(o);case"map":const e=new Map;for(const[n,s]of o){const o="object"==typeof n&&null!==n?t.fromLocalValue(n):n,l=t.fromLocalValue(s);e.set(o,l)}return e;case"object":const s={};for(const[e,n]of o)s[e]=t.fromLocalValue(n);return s;case"regexp":const{pattern:l,flags:i}=o;return RegExp(l,i);case"set":const r=new Set;for(const e of o)r.add(t.fromLocalValue(e));return r;case"symbol":return Symbol(o);default:throw Error("Unsupported type: "+n)}}static fromLocalValueArray(e){return e.map((e=>t.fromLocalValue(e)))}static isLocalValueObject(t){if("object"!=typeof t||null===t)return!1;if(!t.hasOwnProperty(b))return!1;const e=t[b];return!!Object.values({...v,...p}).includes(e)&&("null"===e||"undefined"===e||t.hasOwnProperty($))}};((t,e)=>{for(var n in e)d(t,n,{get:e[n],enumerable:!0})})({},{err:()=>X,map:()=>Z,ok:()=>Q,unwrap:()=>et,unwrapErr:()=>nt});var Q=t=>({isOk:!0,isErr:!1,value:t}),X=t=>({isOk:!1,isErr:!0,value:t});function Z(t,e){if(t.isOk){const n=e(t.value);return n instanceof Promise?n.then((t=>Q(t))):Q(n)}if(t.isErr)return X(t.value);throw"should never get here"}var tt,et=t=>{if(t.isOk)return t.value;throw t.value},nt=t=>{if(t.isErr)return t.value;throw t.value};function ot(t){const e=this.attachShadow({mode:"open",delegatesFocus:!!(16&t.u)});void 0===tt&&(tt=null),tt&&(T?e.adoptedStyleSheets.push(tt):e.adoptedStyleSheets=[...e.adoptedStyleSheets,tt])}var st=t=>{const e=At(t,"childNodes");t.tagName&&t.tagName.includes("-")&&t["s-cr"]&&"SLOT-FB"!==t.tagName&&it(e,t.tagName).forEach((t=>{1===t.nodeType&&"SLOT-FB"===t.tagName&&(t.hidden=!!rt(t,ft(t),!1).length)}));let n=0;for(n=0;n<e.length;n++){const t=e[n];1===t.nodeType&&At(t,"childNodes").length&&st(t)}},lt=t=>{const e=[];for(let n=0;n<t.length;n++){const o=t[n]["s-nr"]||void 0;o&&o.isConnected&&e.push(o)}return e};function it(t,e,n){let o,s=0,l=[];for(;s<t.length;s++){if(o=t[s],o["s-sr"]&&(!e||o["s-hn"]===e)&&(void 0===n||ft(o)===n)&&(l.push(o),void 0!==n))return l;l=[...l,...it(o.childNodes,e,n)]}return l}var rt=(t,e,n=!0)=>{const o=[];(n&&t["s-sr"]||!t["s-sr"])&&o.push(t);let s=t;for(;s=s.nextSibling;)ft(s)!==e||!n&&s["s-sr"]||o.push(s);return o},ct=(t,e)=>1===t.nodeType?null===t.getAttribute("slot")&&""===e||t.getAttribute("slot")===e:t["s-sn"]===e||""===e,ut=(t,e,n,o)=>{if(t["s-ol"]&&t["s-ol"].isConnected)return;const s=document.createTextNode("");if(s["s-nr"]=t,!e["s-cr"]||!e["s-cr"].parentNode)return;const l=e["s-cr"].parentNode,i=At(l,n?"prepend":"appendChild");if(void 0!==o){s["s-oo"]=o;const t=At(l,"childNodes"),e=[s];t.forEach((t=>{t["s-nr"]&&e.push(t)})),e.sort(((t,e)=>!t["s-oo"]||t["s-oo"]<(e["s-oo"]||0)?-1:!e["s-oo"]||e["s-oo"]<t["s-oo"]?1:0)),e.forEach((t=>i.call(l,t)))}else i.call(l,s);t["s-ol"]=s,t["s-sh"]=e["s-hn"]},ft=t=>"string"==typeof t["s-sn"]?t["s-sn"]:1===t.nodeType&&t.getAttribute("slot")||void 0;function at(t){if(t.assignedElements||t.assignedNodes||!t["s-sr"])return;const e=e=>function(t){const n=[],o=this["s-sn"];(null==t?void 0:t.flatten)&&console.error("\n Flattening is not supported for Stencil non-shadow slots.\n You can use `.childNodes` to nested slot fallback content.\n If you have a particular use case, please open an issue on the Stencil repo.\n ");const s=this["s-cr"].parentElement;return(s.__childNodes?s.childNodes:lt(s.childNodes)).forEach((t=>{o===ft(t)&&n.push(t)})),e?n.filter((t=>1===t.nodeType)):n}.bind(t);t.assignedElements=e(!0),t.assignedNodes=e(!1)}function dt(t){t.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1}))}function ht(t,e){var n;if(!(e=e||(null==(n=t["s-ol"])?void 0:n.parentElement)))return{slotNode:null,slotName:""};const o=t["s-sn"]=ft(t)||"";return{slotNode:it(At(e,"childNodes"),e.tagName,o)[0],slotName:o}}var vt=t=>{const e=t.cloneNode;t.cloneNode=function(t){const n=this.shadowRoot&&true,o=e.call(this,!!n&&t);if(!n&&t){let t,e,n=0;const s=["s-id","s-cr","s-lr","s-rc","s-sc","s-p","s-cn","s-sr","s-sn","s-hn","s-ol","s-nr","s-si","s-rf","s-scs"],l=this.__childNodes||this.childNodes;for(;n<l.length;n++)t=l[n]["s-nr"],e=s.every((t=>!l[n][t])),t&&(o.__appendChild?o.__appendChild(t.cloneNode(!0)):o.appendChild(t.cloneNode(!0))),e&&o.appendChild(l[n].cloneNode(!0))}return o}},pt=t=>{t.__appendChild=t.appendChild,t.appendChild=function(t){const{slotName:e,slotNode:n}=ht(t,this);if(n){ut(t,n);const o=rt(n,e),s=o[o.length-1],l=At(s,"parentNode"),i=At(l,"insertBefore")(t,s.nextSibling);return dt(n),st(this),i}return this.__appendChild(t)}},bt=t=>{t.__removeChild=t.removeChild,t.removeChild=function(t){return t&&void 0!==t["s-sn"]&&it(this.__childNodes||this.childNodes,this.tagName,t["s-sn"])&&t.isConnected?(t.remove(),void st(this)):this.__removeChild(t)}},$t=t=>{t.__prepend=t.prepend,t.prepend=function(...e){e.forEach((e=>{"string"==typeof e&&(e=this.ownerDocument.createTextNode(e));const n=(e["s-sn"]=ft(e))||"",o=it(At(this,"childNodes"),this.tagName,n)[0];if(o){ut(e,o,!0);const t=rt(o,n)[0],s=At(t,"parentNode"),l=At(s,"insertBefore")(e,At(t,"nextSibling"));return dt(o),l}return 1===e.nodeType&&e.getAttribute("slot")&&(e.hidden=!0),t.__prepend(e)}))}},mt=t=>{t.__append=t.append,t.append=function(...t){t.forEach((t=>{"string"==typeof t&&(t=this.ownerDocument.createTextNode(t)),this.appendChild(t)}))}},gt=t=>{const e=t.insertAdjacentHTML;t.insertAdjacentHTML=function(t,n){if("afterbegin"!==t&&"beforeend"!==t)return e.call(this,t,n);const o=this.ownerDocument.createElement("_");let s;if(o.innerHTML=n,"afterbegin"===t)for(;s=o.firstChild;)this.prepend(s);else if("beforeend"===t)for(;s=o.firstChild;)this.append(s)}},yt=t=>{t.insertAdjacentText=function(t,e){this.insertAdjacentHTML(t,e)}},wt=t=>{t.__insertBefore||(t.__insertBefore=t.insertBefore,t.insertBefore=function(t,e){const{slotName:n,slotNode:o}=ht(t,this),s=this.__childNodes?this.childNodes:lt(this.childNodes);if(o){let l=!1;if(s.forEach((s=>{if(s!==e&&null!==e);else{if(l=!0,null===e||n!==e["s-sn"])return void this.appendChild(t);if(n===e["s-sn"]){ut(t,o);const n=At(e,"parentNode");At(n,"insertBefore")(t,e),dt(o)}}})),l)return t}const l=null==e?void 0:e.__parentNode;return l&&!this.isSameNode(l)?this.appendChild(t):this.__insertBefore(t,e)})},jt=t=>{const e=t.insertAdjacentElement;t.insertAdjacentElement=function(t,n){return"afterbegin"!==t&&"beforeend"!==t?e.call(this,t,n):"afterbegin"===t?(this.prepend(n),n):"beforeend"===t?(this.append(n),n):n}},Ot=t=>{Lt("textContent",t),Object.defineProperty(t,"textContent",{get:function(){let t="";return(this.__childNodes?this.childNodes:lt(this.childNodes)).forEach((e=>t+=e.textContent||"")),t},set:function(t){(this.__childNodes?this.childNodes:lt(this.childNodes)).forEach((t=>{t["s-ol"]&&t["s-ol"].remove(),t.remove()})),this.insertAdjacentHTML("beforeend",t)}})},St=t=>{class e extends Array{item(t){return this[t]}}Lt("children",t),Object.defineProperty(t,"children",{get(){return this.childNodes.filter((t=>1===t.nodeType))}}),Object.defineProperty(t,"childElementCount",{get(){return this.children.length}}),Lt("firstChild",t),Object.defineProperty(t,"firstChild",{get(){return this.childNodes[0]}}),Lt("lastChild",t),Object.defineProperty(t,"lastChild",{get(){return this.childNodes[this.childNodes.length-1]}}),Lt("childNodes",t),Object.defineProperty(t,"childNodes",{get(){const t=new e;return t.push(...lt(this.__childNodes)),t}})},Nt=t=>{t&&void 0===t.__nextSibling&&globalThis.Node&&(xt(t),kt(t),Rt(t),t.nodeType===Node.ELEMENT_NODE&&(Et(t),Ct(t)))},xt=t=>{t&&!t.__nextSibling&&(Lt("nextSibling",t),Object.defineProperty(t,"nextSibling",{get:function(){var t;const e=null==(t=this["s-ol"])?void 0:t.parentNode.childNodes,n=null==e?void 0:e.indexOf(this);return e&&n>-1?e[n+1]:this.__nextSibling}}))},Et=t=>{t&&!t.__nextElementSibling&&(Lt("nextElementSibling",t),Object.defineProperty(t,"nextElementSibling",{get:function(){var t;const e=null==(t=this["s-ol"])?void 0:t.parentNode.children,n=null==e?void 0:e.indexOf(this);return e&&n>-1?e[n+1]:this.__nextElementSibling}}))},kt=t=>{t&&!t.__previousSibling&&(Lt("previousSibling",t),Object.defineProperty(t,"previousSibling",{get:function(){var t;const e=null==(t=this["s-ol"])?void 0:t.parentNode.childNodes,n=null==e?void 0:e.indexOf(this);return e&&n>-1?e[n-1]:this.__previousSibling}}))},Ct=t=>{t&&!t.__previousElementSibling&&(Lt("previousElementSibling",t),Object.defineProperty(t,"previousElementSibling",{get:function(){var t;const e=null==(t=this["s-ol"])?void 0:t.parentNode.children,n=null==e?void 0:e.indexOf(this);return e&&n>-1?e[n-1]:this.__previousElementSibling}}))},Rt=t=>{t&&!t.__parentNode&&(Lt("parentNode",t),Object.defineProperty(t,"parentNode",{get:function(){var t;return(null==(t=this["s-ol"])?void 0:t.parentNode)||this.__parentNode},set:function(t){this.__parentNode=t}}))},It=["children","nextElementSibling","previousElementSibling"],Mt=["childNodes","firstChild","lastChild","nextSibling","previousSibling","textContent","parentNode"];function Lt(t,e){if(!globalThis.Node||!globalThis.Element)return;let n;It.includes(t)?n=Object.getOwnPropertyDescriptor(Element.prototype,t):Mt.includes(t)&&(n=Object.getOwnPropertyDescriptor(Node.prototype,t)),n||(n=Object.getOwnPropertyDescriptor(e,t)),n&&Object.defineProperty(e,"__"+t,n)}function At(t,e){if("__"+e in t){const n=t["__"+e];return"function"!=typeof n?n:n.bind(t)}return"function"!=typeof t[e]?t[e]:t[e].bind(t)}var Bt=new WeakMap,Ft=(t,e,n)=>{let o=N.get(t);F&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=e:o.replaceSync(e)):o=e,N.set(t,o)},Tt=(t,e,n)=>{var o;const s=Ut(e,n),l=N.get(s);if(!M.document)return s;if(t=11===t.nodeType?t:M.document,l)if("string"==typeof l){let n,i=Bt.get(t=t.head||t);if(i||Bt.set(t,i=new Set),!i.has(s)){if(t.host&&(n=t.querySelector(`[${k}="${s}"]`)))n.innerHTML=l;else{n=M.document.createElement("style"),n.innerHTML=l;const s=null!=(o=A.v)?o:G(M.document);if(null!=s&&n.setAttribute("nonce",s),!(1&e.u))if("HEAD"===t.nodeName){const e=t.querySelectorAll("link[rel=preconnect]"),o=e.length>0?e[e.length-1].nextSibling:t.querySelector("style");t.insertBefore(n,(null==o?void 0:o.parentNode)===t?o:null)}else if("host"in t)if(F){const e=new CSSStyleSheet;e.replaceSync(l),T?t.adoptedStyleSheets.unshift(e):t.adoptedStyleSheets=[e,...t.adoptedStyleSheets]}else{const e=t.querySelector("style");e?e.innerHTML=l+e.innerHTML:t.prepend(n)}else t.append(n);1&e.u&&t.insertBefore(n,null)}4&e.u&&(n.innerHTML+=R),i&&i.add(s)}}else t.adoptedStyleSheets.includes(l)||(T?t.adoptedStyleSheets.push(l):t.adoptedStyleSheets=[...t.adoptedStyleSheets,l]);return s},Ut=(t,e)=>"sc-"+(e&&32&t.u?t.p+"-"+e:t.p),Pt=t=>t.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{"),Wt=(t,e,...n)=>{let o=null,s=null,l=null,i=!1,r=!1;const c=[],u=e=>{for(let n=0;n<e.length;n++)o=e[n],Array.isArray(o)?u(o):null!=o&&"boolean"!=typeof o&&((i="function"!=typeof t&&!Y(o))&&(o+=""),i&&r?c[c.length-1].$+=o:c.push(i?_t(null,o):o),r=i)};if(u(n),e){e.key&&(s=e.key),e.name&&(l=e.name);{const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}}if("function"==typeof t)return t(null===e?{}:e,c,Vt);const f=_t(t,null);return f.j=e,c.length>0&&(f.O=c),f.S=s,f.N=l,f},_t=(t,e)=>({u:0,k:t,$:e,C:null,O:null,j:null,S:null,N:null}),Dt={},Vt={forEach:(t,e)=>t.map(zt).forEach(e),map:(t,e)=>t.map(zt).map(e).map(qt)},zt=t=>({vattrs:t.j,vchildren:t.O,vkey:t.S,vname:t.N,vtag:t.k,vtext:t.$}),qt=t=>{if("function"==typeof t.vtag){const e={...t.vattrs};return t.vkey&&(e.key=t.vkey),t.vname&&(e.name=t.vname),Wt(t.vtag,e,...t.vchildren||[])}const e=_t(t.vtag,t.vtext);return e.j=t.vattrs,e.O=t.vchildren,e.S=t.vkey,e.N=t.vname,e},Ht=(t,e,n,o,s,l,i,r=[])=>{let c,u,f,a;const d=s["s-sc"];if(1===l.nodeType){if(c=l.getAttribute(C),c&&(u=c.split("."),u[0]===i||"0"===u[0])){f=Yt({u:0,R:u[0],I:u[1],M:u[2],L:u[3],k:l.tagName.toLowerCase(),C:l,j:{class:l.className||""}}),e.push(f),l.removeAttribute(C),t.O||(t.O=[]),d&&u[0]===i&&(l["s-si"]=d,f.j.class+=" "+d);const s=f.C.getAttribute("s-sn");"string"==typeof s&&("slot-fb"===f.k&&(Gt(s,u[2],f,l,t,e,n,o,r),d&&l.classList.add(d)),f.C["s-sn"]=s,f.C.removeAttribute("s-sn")),void 0!==f.L&&(t.O[f.L]=f),t=f,o&&"0"===f.M&&(o[f.L]=f.C)}if(l.shadowRoot)for(a=l.shadowRoot.childNodes.length-1;a>=0;a--)Ht(t,e,n,o,s,l.shadowRoot.childNodes[a],i,r);const h=l.__childNodes||l.childNodes;for(a=h.length-1;a>=0;a--)Ht(t,e,n,o,s,h[a],i,r)}else if(8===l.nodeType)u=l.nodeValue.split("."),(u[1]===i||"0"===u[1])&&(c=u[0],f=Yt({R:u[1],I:u[2],M:u[3],L:u[4]||"0",C:l,j:null,O:null,S:null,N:null,k:null,$:null}),"t"===c?(f.C=Qt(l,3),f.C&&3===f.C.nodeType&&(f.$=f.C.textContent,e.push(f),l.remove(),i===f.R&&(t.O||(t.O=[]),t.O[f.L]=f),o&&"0"===f.M&&(o[f.L]=f.C))):"c"===c?(f.C=Qt(l,8),f.C&&8===f.C.nodeType&&(e.push(f),l.remove())):f.R===i&&("s"===c?Gt(l["s-sn"]=u[5]||"",u[2],f,l,t,e,n,o,r):"r"===c&&(o?l.remove():(s["s-cr"]=l,l["s-cn"]=!0))));else if(t&&"style"===t.k){const e=_t(null,l.textContent);e.C=l,e.L="0",t.O=[e]}else 3!==l.nodeType||l.wholeText.trim()||l["s-nr"]||l.remove();return t},Jt=(t,e)=>{if(1===t.nodeType){const n=t[E]||t.getAttribute(E);n&&e.set(n,t);let o=0;if(t.shadowRoot)for(;o<t.shadowRoot.childNodes.length;o++)Jt(t.shadowRoot.childNodes[o],e);const s=t.__childNodes||t.childNodes;for(o=0;o<s.length;o++)Jt(s[o],e)}else if(8===t.nodeType){const n=t.nodeValue.split(".");"o"===n[0]&&(e.set(n[1]+"."+n[2],t),t.nodeValue="",t["s-en"]=n[3])}},Yt=t=>({u:0,R:null,I:null,M:null,L:"0",C:null,j:null,O:null,S:null,N:null,k:null,$:null,...t});function Gt(t,e,n,o,s,l,i,r,c){o["s-sr"]=!0,n.N=t||null,n.k="slot";const u=(null==s?void 0:s.C)?s.C["s-id"]||s.C.getAttribute("s-id"):"";if(r&&M.document){const l=n.C=M.document.createElement(n.k);n.N&&n.C.setAttribute("name",t),s.C.shadowRoot&&u&&u!==n.R?At(s.C,"insertBefore")(l,At(s.C,"children")[0]):At(At(o,"parentNode"),"insertBefore")(l,o),Kt(c,e,t,o,n.R),o.remove(),"0"===n.M&&(r[n.L]=n.C)}else{const l=n.C,i=u&&u!==n.R&&s.C.shadowRoot;Kt(c,e,t,o,i?u:n.R),at(o),i&&s.C.insertBefore(l,s.C.children[0])}l.push(n),i.push(n),s.O||(s.O=[]),s.O[n.L]=n}var Kt=(t,e,n,o,s)=>{var l,i;let r=o.nextSibling;if(t[e]=t[e]||[],r&&!(null==(l=r.nodeValue)?void 0:l.startsWith("s.")))do{!r||(r.getAttribute&&r.getAttribute("slot")||r["s-sn"])!==n&&(""!==n||r["s-sn"]||r.getAttribute&&r.getAttribute("slot")||8!==r.nodeType&&3!==r.nodeType)||(r["s-sn"]=n,t[e].push({slot:o,node:r,hostId:s})),r=null==r?void 0:r.nextSibling}while(r&&!(null==(i=r.nodeValue)?void 0:i.startsWith("s.")))},Qt=(t,e)=>{let n=t;do{n=n.nextSibling}while(n&&(n.nodeType!==e||!n.nodeValue));return n},Xt=t=>{const e=(t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"))(t);return RegExp(`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${e}))(${e}\\b)`,"g")};Xt("::slotted"),Xt(":host"),Xt(":host-context");var Zt,te,ee,ne=t=>x.push(t),oe=t=>{var e;return null==(e=y(t))?void 0:e.A},se=(t,e)=>"string"==typeof t&&t.startsWith(m)?t=function(t){return"string"==typeof t&&t.startsWith(m)?K.fromLocalValue(JSON.parse(atob(t.slice(11)))):t}(t):null==t||Y(t)?t:4&e?"false"!==t&&(""===t||!!t):2&e?"string"==typeof t?parseFloat(t):"number"==typeof t?t:NaN:1&e?t+"":t,le=t=>{var e;return null==(e=y(t))?void 0:e.$hostElement$},ie=(t,e,n)=>{const o=le(t);return{emit:t=>re(o,e,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:t})}},re=(t,e,n)=>{const o=A.ce(e,n);return t.dispatchEvent(o),o},ce=(t,e,n,o,s,l,i)=>{if(n===o)return;let r=j(t,e),c=e.toLowerCase();if("class"===e){const e=t.classList,s=fe(n);let l=fe(o);if((t["s-si"]||t["s-sc"])&&i){const n=t["s-sc"]||t["s-si"];l.push(n),s.forEach((t=>{t.startsWith(n)&&l.push(t)})),l=[...new Set(l)].filter((t=>t)),e.add(...l)}else e.remove(...s.filter((t=>t&&!l.includes(t)))),e.add(...l.filter((t=>t&&!s.includes(t))))}else if("style"===e){for(const e in n)o&&null!=o[e]||(e.includes("-")?t.style.removeProperty(e):t.style[e]="");for(const e in o)n&&o[e]===n[e]||(e.includes("-")?t.style.setProperty(e,o[e]):t.style[e]=o[e])}else if("key"===e);else if("ref"===e)o&&o(t);else if(r||"o"!==e[0]||"n"!==e[1]){const i=Y(o);if((r||i&&null!==o)&&!s)try{if(t.tagName.includes("-"))t[e]!==o&&(t[e]=o);else{const s=null==o?"":o;"list"===e?r=!1:null!=n&&t[e]==s||("function"==typeof t.__lookupSetter__(e)?t[e]=s:t.setAttribute(e,s))}}catch(t){}let u=!1;c!==(c=c.replace(/^xlink\:?/,""))&&(e=c,u=!0),null==o||!1===o?!1===o&&""!==t.getAttribute(e)||(u?t.removeAttributeNS(I,e):t.removeAttribute(e)):(!r||4&l||s)&&!i&&1===t.nodeType&&(o=!0===o?"":o,u?t.setAttributeNS(I,e,o):t.setAttribute(e,o))}else if(e="-"===e[2]?e.slice(3):j(M,c)?c.slice(2):c[2]+e.slice(3),n||o){const s=e.endsWith(ae);e=e.replace(de,""),n&&A.rel(t,e,n,s),o&&A.ael(t,e,o,s)}},ue=/\s/,fe=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(ue):[]),ae="Capture",de=RegExp(ae+"$"),he=(t,e,n,o)=>{const s=11===e.C.nodeType&&e.C.host?e.C.host:e.C,l=t&&t.j||{},i=e.j||{};for(const t of ve(Object.keys(l)))t in i||ce(s,t,l[t],void 0,n,e.u,o);for(const t of ve(Object.keys(i)))ce(s,t,l[t],i[t],n,e.u,o)};function ve(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var pe=!1,be=!1,$e=!1,me=!1,ge=(t,e,n)=>{var o;const s=e.O[n];let l,i,r,c=0;if(pe||($e=!0,"slot"===s.k&&(s.u|=s.O?2:1)),null!==s.$)l=s.C=M.document.createTextNode(s.$);else if(1&s.u)l=s.C=M.document.createTextNode(""),he(null,s,me);else{if(me||(me="svg"===s.k),!M.document)throw Error("You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component.");if(l=s.C=M.document.createElementNS(me?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!pe&&2&s.u?"slot-fb":s.k),me&&"foreignObject"===s.k&&(me=!1),he(null,s,me),null!=Zt&&void 0!==Zt&&l["s-si"]!==Zt&&l.classList.add(l["s-si"]=Zt),s.O)for(c=0;c<s.O.length;++c)i=ge(t,s,c),i&&l.appendChild(i);"svg"===s.k?me=!1:"foreignObject"===l.tagName&&(me=!0)}return l["s-hn"]=ee,3&s.u&&(l["s-sr"]=!0,l["s-cr"]=te,l["s-sn"]=s.N||"",l["s-rf"]=null==(o=s.j)?void 0:o.ref,at(l),r=t&&t.O&&t.O[n],r&&r.k===s.k&&t.C&&ye(t.C),Ie(te,l,e.C,null==t?void 0:t.C)),l},ye=t=>{A.u|=1;const e=t.closest(ee.toLowerCase());if(null!=e){const n=Array.from(e.__childNodes||e.childNodes).find((t=>t["s-cr"])),o=Array.from(t.__childNodes||t.childNodes);for(const t of n?o.reverse():o)null!=t["s-sh"]&&(Re(e,t,null!=n?n:null),t["s-sh"]=void 0,$e=!0)}A.u&=-2},we=(t,e)=>{A.u|=1;const n=Array.from(t.__childNodes||t.childNodes);if(t["s-sr"]){let e=t;for(;e=e.nextSibling;)e&&e["s-sn"]===t["s-sn"]&&e["s-sh"]===ee&&n.push(e)}for(let t=n.length-1;t>=0;t--){const o=n[t];o["s-hn"]!==ee&&o["s-ol"]&&(Re(Ne(o).parentNode,o,Ne(o)),o["s-ol"].remove(),o["s-ol"]=void 0,o["s-sh"]=void 0,$e=!0),e&&we(o,e)}A.u&=-2},je=(t,e,n,o,s,l)=>{let i,r=t["s-cr"]&&t["s-cr"].parentNode||t;for(r.shadowRoot&&r.tagName===ee&&(r=r.shadowRoot);s<=l;++s)o[s]&&(i=ge(null,n,s),i&&(o[s].C=i,Re(r,i,Ne(e))))},Oe=(t,e,n)=>{for(let o=e;o<=n;++o){const e=t[o];if(e){const t=e.C;Ce(e),t&&(be=!0,t["s-ol"]?t["s-ol"].remove():we(t,!0),t.remove())}}},Se=(t,e,n=!1)=>t.k===e.k&&("slot"===t.k?t.N===e.N:n?(n&&!t.S&&e.S&&(t.S=e.S),!0):t.S===e.S),Ne=t=>t&&t["s-ol"]||t,xe=(t,e,n=!1)=>{const o=e.C=t.C,s=t.O,l=e.O,i=e.k,r=e.$;let c;null===r?(me="svg"===i||"foreignObject"!==i&&me,"slot"!==i||pe||t.N!==e.N&&(e.C["s-sn"]=e.N||"",ye(e.C.parentElement)),he(t,e,me,n),null!==s&&null!==l?((t,e,n,o,s=!1)=>{let l,i,r=0,c=0,u=0,f=0,a=e.length-1,d=e[0],h=e[a],v=o.length-1,p=o[0],b=o[v];for(;r<=a&&c<=v;)if(null==d)d=e[++r];else if(null==h)h=e[--a];else if(null==p)p=o[++c];else if(null==b)b=o[--v];else if(Se(d,p,s))xe(d,p,s),d=e[++r],p=o[++c];else if(Se(h,b,s))xe(h,b,s),h=e[--a],b=o[--v];else if(Se(d,b,s))"slot"!==d.k&&"slot"!==b.k||we(d.C.parentNode,!1),xe(d,b,s),Re(t,d.C,h.C.nextSibling),d=e[++r],b=o[--v];else if(Se(h,p,s))"slot"!==d.k&&"slot"!==b.k||we(h.C.parentNode,!1),xe(h,p,s),Re(t,h.C,d.C),h=e[--a],p=o[++c];else{for(u=-1,f=r;f<=a;++f)if(e[f]&&null!==e[f].S&&e[f].S===p.S){u=f;break}u>=0?(i=e[u],i.k!==p.k?l=ge(e&&e[c],n,u):(xe(i,p,s),e[u]=void 0,l=i.C),p=o[++c]):(l=ge(e&&e[c],n,c),p=o[++c]),l&&Re(Ne(d.C).parentNode,l,Ne(d.C))}r>a?je(t,null==o[v+1]?null:o[v+1].C,n,o,c,v):c>v&&Oe(e,r,a)})(o,s,e,l,n):null!==l?(null!==t.$&&(o.textContent=""),je(o,null,e,l,0,l.length-1)):n||null===s?n&&null!==s&&null===l&&(e.O=s):Oe(s,0,s.length-1),me&&"svg"===i&&(me=!1)):(c=o["s-cr"])?c.parentNode.textContent=r:t.$!==r&&(o.data=r)},Ee=[],ke=t=>{let e,n,o;const s=t.__childNodes||t.childNodes;for(const t of s){if(t["s-sr"]&&(e=t["s-cr"])&&e.parentNode){n=e.parentNode.__childNodes||e.parentNode.childNodes;const s=t["s-sn"];for(o=n.length-1;o>=0;o--)if(e=n[o],!(e["s-cn"]||e["s-nr"]||e["s-hn"]===t["s-hn"]||e["s-sh"]&&e["s-sh"]===t["s-hn"]))if(ct(e,s)){let n=Ee.find((t=>t.B===e));be=!0,e["s-sn"]=e["s-sn"]||s,n?(n.B["s-sh"]=t["s-hn"],n.F=t):(e["s-sh"]=t["s-hn"],Ee.push({F:t,B:e})),e["s-sr"]&&Ee.map((t=>{ct(t.B,e["s-sn"])&&(n=Ee.find((t=>t.B===e)),n&&!t.F&&(t.F=n.F))}))}else Ee.some((t=>t.B===e))||Ee.push({B:e})}1===t.nodeType&&ke(t)}},Ce=t=>{t.j&&t.j.ref&&t.j.ref(null),t.O&&t.O.map(Ce)},Re=(t,e,n)=>{if("string"==typeof e["s-sn"]&&e["s-sr"]&&e["s-cr"])Ie(e["s-cr"],e,t,e.parentElement);else if("string"==typeof e["s-sn"]){11!==t.getRootNode().nodeType&&Rt(e),t.insertBefore(e,n);const{slotNode:o}=ht(e);return o&&dt(o),e}return t.__insertBefore?t.__insertBefore(e,n):null==t?void 0:t.insertBefore(e,n)};function Ie(t,e,n,o){var s,l;let i;if(t&&"string"==typeof e["s-sn"]&&e["s-sr"]&&t.parentNode&&t.parentNode["s-sc"]&&(i=e["s-si"]||t.parentNode["s-sc"])){const t=e["s-sn"],r=e["s-hn"];if(null==(s=n.classList)||s.add(i+"-s"),o&&(null==(l=o.classList)?void 0:l.contains(i+"-s"))){let e=(o.__childNodes||o.childNodes)[0],n=!1;for(;e;){if(e["s-sn"]!==t&&e["s-hn"]===r&&e["s-sr"]){n=!0;break}e=e.nextSibling}n||o.classList.remove(i+"-s")}}}var Me=(t,e)=>{if(e&&!t.T&&e["s-p"]){const n=e["s-p"].push(new Promise((o=>t.T=()=>{e["s-p"].splice(n-1,1),o()})))}},Le=(t,e)=>{if(t.u|=16,4&t.u)return void(t.u|=512);Me(t,t.U);const n=()=>Ae(t,e);if(!e)return H(n);queueMicrotask((()=>{n()}))},Ae=(t,e)=>{const n=t.$hostElement$,o=t.i;if(!o)throw Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let s;return e?(t.u|=256,t.P&&(t.P.map((([t,e])=>De(o,t,e,n))),t.P=void 0),t.W.length&&t.W.forEach((t=>t(n))),s=De(o,"componentWillLoad",void 0,n)):s=De(o,"componentWillUpdate",void 0,n),s=Be(s,(()=>De(o,"componentWillRender",void 0,n))),Be(s,(()=>Te(t,o,e)))},Be=(t,e)=>Fe(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),Fe=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,Te=async(t,e,n)=>{var o;const s=t.$hostElement$,l=s["s-rc"];n&&(t=>{const e=t.o,n=t.$hostElement$,o=e.u,s=Tt(n.shadowRoot?n.shadowRoot:n.getRootNode(),e,t.A);10&o&&(n["s-sc"]=s,n.classList.add(s+"-h"))})(t);Ue(t,e,s,n),l&&(l.map((t=>t())),s["s-rc"]=void 0);{const e=null!=(o=s["s-p"])?o:[],n=()=>Pe(t);0===e.length?n():(Promise.all(e).then(n),t.u|=4,e.length=0)}},Ue=(t,e,n,o)=>{try{e=e.render&&e.render(),t.u&=-17,t.u|=2,((t,e,n=!1)=>{var o,s,l,i,r;const c=t.$hostElement$,u=t.o,f=t._||_t(null,null),a=(t=>t&&t.k===Dt)(e)?e:Wt(null,null,e);if(ee=c.tagName,u.D&&(a.j=a.j||{},u.D.forEach((([t,e])=>{a.j[e]=c[t]}))),n&&a.j)for(const t of Object.keys(a.j))c.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(a.j[t]=c[t]);if(a.k=null,a.u|=4,t._=a,a.C=f.C=c.shadowRoot||c,Zt=c["s-sc"],pe=!(!(1&u.u)||128&u.u),te=c["s-cr"],be=!1,xe(f,a,n),A.u|=1,$e){ke(a.C);for(const t of Ee){const e=t.B;if(!e["s-ol"]&&M.document){const t=M.document.createTextNode("");t["s-nr"]=e,Re(e.parentNode,e["s-ol"]=t,e)}}for(const t of Ee){const e=t.B,r=t.F;if(r){const t=r.parentNode;let n=r.nextSibling;if(n&&1===n.nodeType){let l=null==(o=e["s-ol"])?void 0:o.previousSibling;for(;l;){let o=null!=(s=l["s-nr"])?s:null;if(o&&o["s-sn"]===e["s-sn"]&&t===(o.__parentNode||o.parentNode)){for(o=o.nextSibling;o===e||(null==o?void 0:o["s-sr"]);)o=null==o?void 0:o.nextSibling;if(!o||!o["s-nr"]){n=o;break}}l=l.previousSibling}}(!n&&t!==(e.__parentNode||e.parentNode)||(e.__nextSibling||e.nextSibling)!==n)&&e!==n&&(Re(t,e,n),1===e.nodeType&&"SLOT-FB"!==e.tagName&&(e.hidden=null!=(l=e["s-ih"])&&l)),e&&"function"==typeof r["s-rf"]&&r["s-rf"](r)}else 1===e.nodeType&&(n&&(e["s-ih"]=null!=(i=e.hidden)&&i),e.hidden=!0)}}if(be&&st(a.C),A.u&=-2,Ee.length=0,2&u.u){const t=a.C.__childNodes||a.C.childNodes;for(const e of t)e["s-hn"]===ee||e["s-sh"]||(n&&null==e["s-ih"]&&(e["s-ih"]=null!=(r=e.hidden)&&r),e.hidden=!0)}te=void 0})(t,e,o)}catch(e){O(e,t.$hostElement$)}return null},Pe=t=>{const e=t.$hostElement$,n=t.i,o=t.U;De(n,"componentDidRender",void 0,e),64&t.u?De(n,"componentDidUpdate",void 0,e):(t.u|=64,Ve(e),De(n,"componentDidLoad",void 0,e),t.V(e),o||_e()),t.q(e),t.T&&(t.T(),t.T=void 0),512&t.u&&z((()=>Le(t,!1))),t.u&=-517},We=t=>{var e;{const n=y(t),o=null==(e=null==n?void 0:n.$hostElement$)?void 0:e.isConnected;return o&&2==(18&n.u)&&Le(n,!1),o}},_e=()=>{var t;z((()=>re(M,"appload",{detail:{namespace:"ionic"}}))),(null==(t=A.H)?void 0:t.size)&&A.H.clear()},De=(t,e,n,o)=>{if(t&&t[e])try{return t[e](n)}catch(t){O(t,o)}},Ve=t=>t.classList.add("hydrated"),ze=(t,e,n,o)=>{const s=y(t);if(!s)return;if(!s)throw Error(`Couldn't find host element for "${o.p}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`);const l=s.$hostElement$,i=s.l.get(e),r=s.u,c=s.i;if(n=se(n,o.t[e][0]),(!(8&r)||void 0===i)&&n!==i&&(!Number.isNaN(i)||!Number.isNaN(n))&&(s.l.set(e,n),c)){if(o.J&&128&r){const t=o.J[e];t&&t.map((t=>{try{c[t](n,i,e)}catch(t){O(t,l)}}))}if(2==(18&r)){if(c.componentShouldUpdate&&!1===c.componentShouldUpdate(n,i,e))return;Le(s,!1)}}},qe=(t,e,n)=>{var o,s;const l=t.prototype;{t.watchers&&!e.J&&(e.J=t.watchers),t.deserializers&&!e.Y&&(e.Y=t.deserializers),t.serializers&&!e.G&&(e.G=t.serializers);const i=Object.entries(null!=(o=e.t)?o:{});if(i.map((([t,[o]])=>{if(31&o||2&n&&32&o){const{get:s,set:i}=Object.getOwnPropertyDescriptor(l,t)||{};s&&(e.t[t][0]|=2048),i&&(e.t[t][0]|=4096),(1&n||!s)&&Object.defineProperty(l,t,{get(){{if(!(2048&e.t[t][0]))return((t,e)=>y(this).l.get(e))(0,t);const n=y(this),o=n?n.i:l;if(!o)return;return o[t]}},configurable:!0,enumerable:!0}),Object.defineProperty(l,t,{set(s){const l=y(this);if(l){if(i)return void 0===(32&o?this[t]:l.$hostElement$[t])&&l.l.get(t)&&(s=l.l.get(t)),i.call(this,se(s,o)),void ze(this,t,s=32&o?this[t]:l.$hostElement$[t],e);{if(!(1&n&&4096&e.t[t][0]))return ze(this,t,s,e),void(1&n&&!l.i&&l.W.push((()=>{4096&e.t[t][0]&&l.i[t]!==l.l.get(t)&&(l.i[t]=s)})));const i=()=>{const n=l.i[t];!l.l.get(t)&&n&&l.l.set(t,n),l.i[t]=se(s,o),ze(this,t,l.i[t],e)};l.i?i():l.W.push((()=>{i()}))}}}})}else 1&n&&64&o&&Object.defineProperty(l,t,{value(...e){var n;const o=y(this);return null==(n=null==o?void 0:o.K)?void 0:n.then((()=>{var n;return null==(n=o.i)?void 0:n[t](...e)}))}})})),1&n){const n=new Map;l.attributeChangedCallback=function(t,o,s){A.jmp((()=>{var r;const c=n.get(t),u=y(this);if(this.hasOwnProperty(c)&&(s=this[c],delete this[c]),l.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const n=null==u?void 0:u.u;if(u&&n&&!(8&n)&&128&n&&s!==o){const n=u.i,l=null==(r=e.J)?void 0:r[t];null==l||l.forEach((e=>{null!=n[e]&&n[e].call(n,s,o,t)}))}return}const f=i.find((([t])=>t===c));f&&4&f[1][0]&&(s=null!==s&&"false"!==s);const a=Object.getOwnPropertyDescriptor(l,c);s==this[c]||a.get&&!a.set||(this[c]=s)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=e.J)?s:{}),...i.filter((([t,e])=>31&e[0])).map((([t,o])=>{var s;const l=o[1]||t;return n.set(l,t),512&o[0]&&(null==(s=e.D)||s.push([t,l])),l}))]))}}return t},He=(t,e)=>{De(t,"connectedCallback",void 0,e)},Je=t=>{if(!(1&A.u)){const e=y(t);if(!e)return;const n=e.o,o=()=>{};if(1&e.u)Xe(t,e,n.X),(null==e?void 0:e.i)?He(e.i,t):(null==e?void 0:e.Z)&&e.Z.then((()=>He(e.i,t)));else{let o;if(e.u|=1,o=t.getAttribute(E),o){if(1&n.u){const e=Tt(t.shadowRoot,n,t.getAttribute("s-mode"));t.classList.remove(e+"-h",e+"-s")}else if(2&n.u){const e=Ut(n,t.getAttribute("s-mode"));t["s-sc"]=e}((t,e,n,o)=>{var s,l;const i=t.shadowRoot,r=[],c=[],u=[],f=i?[]:null,a=_t(e,null);let d;a.C=t;{const e=o.o;e&&10&e.u&&t["s-sc"]?(d=t["s-sc"],t.classList.add(d+"-h")):t["s-sc"]&&delete t["s-sc"]}!M.document||A.H&&A.H.size||Jt(M.document.body,A.H=new Map),t[E]=n,t.removeAttribute(E),o._=Ht(a,r,c,f,t,t,n,u);let h=0;const v=r.length;let p;for(;h<v;h++){p=r[h];const n=p.R+"."+p.I,o=A.H.get(n),l=p.C;if(i){if((null==(s=p.k)?void 0:(""+s).includes("-"))&&"slot-fb"!==p.k&&!p.C.shadowRoot){const e=y(p.C);if(e){const n=Ut(e.o,p.C.getAttribute("s-mode")),o=M.document.querySelector(`style[sty-id="${n}"]`);o&&t.shadowRoot.append(o.cloneNode(!0))}}}else l["s-hn"]=e.toUpperCase(),"slot"===p.k&&(l["s-cr"]=t["s-cr"]);"slot"===p.k&&(p.N=p.C["s-sn"]||p.C.name||null,p.O?(p.u|=2,p.C.childNodes.length||p.O.forEach((t=>{p.C.appendChild(t.C)}))):p.u|=1),o&&o.isConnected&&(o.parentElement.shadowRoot&&""===o["s-en"]&&o.parentNode.insertBefore(l,o.nextSibling),o.parentNode.removeChild(o),i||(l["s-oo"]=parseInt(p.I))),o&&!o["s-id"]&&A.H.delete(n)}const b=[],$=u.length;let m,g,w,j,O=0;for(;O<$;O++)if(m=u[O],m&&m.length)for(w=m.length,g=0;g<w;g++){if(j=m[g],b[j.hostId]||(b[j.hostId]=A.H.get(j.hostId)),!b[j.hostId])continue;const t=b[j.hostId];t.shadowRoot&&j.node.parentElement!==t&&t.appendChild(j.node),t.shadowRoot&&i||(j.slot["s-cr"]||(j.slot["s-cr"]=t["s-cr"],j.slot["s-cr"]=!j.slot["s-cr"]&&t.shadowRoot?t:(t.__childNodes||t.childNodes)[0]),ut(j.node,j.slot,!1,j.node["s-oo"]),(null==(l=j.node.parentElement)?void 0:l.shadowRoot)&&j.node.getAttribute&&j.node.getAttribute("slot")&&j.node.removeAttribute("slot"),Nt(j.node))}if(d&&c.length&&c.forEach((t=>{t.C.parentElement.classList.add(d+"-s")})),i){let e=0;const n=f.length;if(n){for(;e<n;e++){const t=f[e];t&&i.appendChild(t)}Array.from(t.childNodes).forEach((t=>{"string"!=typeof t["s-en"]&&"string"!=typeof t["s-sn"]&&(1===t.nodeType&&t.slot&&t.hidden?t.removeAttribute("hidden"):(8===t.nodeType&&!t.nodeValue||3===t.nodeType&&!t.wholeText.trim())&&t.parentNode.removeChild(t))}))}}o.$hostElement$=t})(t,n.p,o,e)}o||12&n.u&&Ye(t);{let n=t;for(;n=n.parentNode||n.host;)if(1===n.nodeType&&n.hasAttribute("s-id")&&n["s-p"]||n["s-p"]){Me(e,e.U=n);break}}n.t&&Object.entries(n.t).map((([e,[n]])=>{if(31&n&&e in t&&t[e]!==Object.prototype[e]){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n)=>{let o;if(!(32&e.u)){if(e.u|=32,n.tt){const s=((t,e)=>{const n=t.p.replace(/-/g,"_"),o=t.tt;if(!o)return;const s=S.get(o);return s?s[n]:import(`./${o}.entry.js`).then((t=>(S.set(o,t),t[n])),(t=>{O(t,e.$hostElement$)}))
5
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n,e);if(s&&"then"in s){const t=()=>{};o=await s,t()}else o=s;if(!o)throw Error(`Constructor for "${n.p}#${e.A}" was not found`);o.isProxied||(n.J=o.watchers,n.G=o.serializers,n.Y=o.deserializers,qe(o,n,2),o.isProxied=!0);const l=()=>{};e.u|=8;try{new o(e)}catch(e){O(e,t)}e.u&=-9,e.u|=128,l(),He(e.i,t)}else o=t.constructor,customElements.whenDefined(t.localName).then((()=>e.u|=128));if(o&&o.style){let s;"string"==typeof o.style?s=o.style:"string"!=typeof o.style&&(e.A=(t=>x.map((e=>e(t))).find((t=>!!t)))(t),e.A&&(s=o.style[e.A]));const l=Ut(n,e.A);if(!N.has(l)){const t=()=>{};Ft(l,s,!!(1&n.u)),t()}}}const s=e.U,l=()=>Le(e,!0);s&&s["s-rc"]?s["s-rc"].push(l):l()})(t,e,n)}o()}},Ye=t=>{if(!M.document)return;const e=t["s-cr"]=M.document.createComment("");e["s-cn"]=!0,Re(t,e,t.firstChild)},Ge=(t,e)=>{De(t,"disconnectedCallback",void 0,e||t)},Ke=(t,e={})=>{var n;if(!M.document)return void console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");const o=[],s=e.exclude||[],l=M.customElements,i=M.document.head,r=i.querySelector("meta[charset]"),c=M.document.createElement("style"),u=[];let f,a=!0;Object.assign(A,e),A.h=new URL(e.resourcesUrl||"./",M.document.baseURI).href,A.u|=2,(()=>{if(!M.document)return;const t=M.document.querySelectorAll(`[${k}]`);let e=0;for(;e<t.length;e++)Ft(t[e].getAttribute(k),Pt(t[e].innerHTML),!0)})();let d=!1;if(t.map((t=>{t[1].map((e=>{var n,i,r;const c={u:e[0],p:e[1],t:e[2],X:e[3]};4&c.u&&(d=!0),c.t=e[2],c.X=e[3],c.D=[],c.J=null!=(n=e[4])?n:{},c.G=null!=(i=e[5])?i:{},c.Y=null!=(r=e[6])?r:{};const h=c.p,v=class extends HTMLElement{constructor(t){if(super(t),this.hasRegisteredEventListeners=!1,((t,e)=>{const n={u:0,$hostElement$:t,o:e,l:new Map,et:new Map};n.K=new Promise((t=>n.q=t)),n.Z=new Promise((t=>n.V=t)),t["s-p"]=[],t["s-rc"]=[],n.W=[];const o=n;t.__stencil__getHostRef=()=>o})(t=this,c),1&c.u)if(t.shadowRoot){if("open"!==t.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${c.p}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else ot.call(t,c)}connectedCallback(){const t=y(this);t&&(this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,Xe(this,t,c.X)),f&&(clearTimeout(f),f=null),a?u.push(this):A.jmp((()=>Je(this))))}disconnectedCallback(){A.jmp((()=>(async t=>{if(!(1&A.u)){const e=y(t);(null==e?void 0:e.nt)&&(e.nt.map((t=>t())),e.nt=void 0),(null==e?void 0:e.i)?Ge(e.i,t):(null==e?void 0:e.Z)&&e.Z.then((()=>Ge(e.i,t)))}Bt.has(t)&&Bt.delete(t),t.shadowRoot&&Bt.has(t.shadowRoot)&&Bt.delete(t.shadowRoot)})(this))),A.raf((()=>{var t;const e=y(this);if(!e)return;const n=u.findIndex((t=>t===this));n>-1&&u.splice(n,1),(null==(t=null==e?void 0:e._)?void 0:t.C)instanceof Node&&!e._.C.isConnected&&delete e._.C}))}componentOnReady(){var t;return null==(t=y(this))?void 0:t.Z}};!(1&c.u)&&256&c.u&&(t=>{vt(t),pt(t),mt(t),$t(t),jt(t),gt(t),yt(t),wt(t),Ot(t),St(t),bt(t)})(v.prototype),c.tt=t[0],s.includes(h)||l.get(h)||(o.push(h),l.define(h,qe(v,c,1)))}))})),o.length>0&&(d&&(c.textContent+=R),c.textContent+=o.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",c.innerHTML.length)){c.setAttribute("data-styles","");const t=null!=(n=A.v)?n:G(M.document);null!=t&&c.setAttribute("nonce",t),i.insertBefore(c,r?r.nextSibling:i.firstChild)}a=!1,u.length?u.map((t=>t.connectedCallback())):A.jmp((()=>f=setTimeout(_e,30)))},Qe=(t,e)=>e,Xe=(t,e,n)=>{n&&M.document&&n.map((([n,o,s])=>{const l=tn(M.document,t,n),i=Ze(e,s),r=en(n);A.ael(l,o,i,r),(e.nt=e.nt||[]).push((()=>A.rel(l,o,i,r)))}))},Ze=(t,e)=>n=>{var o;try{256&t.u?null==(o=t.i)||o[e](n):(t.P=t.P||[]).push([e,n])}catch(e){O(e,t.$hostElement$)}},tn=(t,e,n)=>4&n?t:8&n?M:16&n?t.body:e,en=t=>({passive:!!(1&t),capture:!!(2&t)}),nn=t=>A.v=t;export{h as B,Qe as F,L as H,c as L,q as a,Ke as b,ie as c,Dt as d,e,u as f,le as g,Wt as h,We as i,f as j,J as k,n as l,s as m,o as n,oe as o,B as p,ne as q,w as r,nn as s,a as t,H as w}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * (C) Ionic http://ionicframework.com - MIT License
3
3
  */
4
- import{d as t}from"./p-ZjP4CjeZ.js";import{MENU_BACK_BUTTON_PRIORITY as e}from"./p-B0q1YL7N.js";import{f as n}from"./p-C8IsBmNU.js";import{c as r}from"./p-CTfR9YZG.js";import{b as s}from"./p-BFvmZNyx.js";import{c as a}from"./p-DDb5r57F.js";const o=t=>a().duration(t?400:300),i=t=>{let e,n;const r=t.width+8,i=a(),u=a();t.isEndSide?(e=r+"px",n="0px"):(e=-r+"px",n="0px"),i.addElement(t.menuInnerEl).fromTo("transform",`translateX(${e})`,`translateX(${n})`);const c="ios"===s(t),m=c?.2:.25;return u.addElement(t.backdropEl).fromTo("opacity",.01,m),o(c).addAnimation([i,u])},u=t=>{let e,n;const r=s(t),i=t.width;t.isEndSide?(e=-i+"px",n=i+"px"):(e=i+"px",n=-i+"px");const u=a().addElement(t.menuInnerEl).fromTo("transform",`translateX(${n})`,"translateX(0px)"),c=a().addElement(t.contentEl).fromTo("transform","translateX(0px)",`translateX(${e})`),m=a().addElement(t.backdropEl).fromTo("opacity",.01,.32);return o("ios"===r).addAnimation([u,c,m])},c=t=>{const e=s(t),n=t.width*(t.isEndSide?-1:1)+"px",r=a().addElement(t.contentEl).fromTo("transform","translateX(0px)",`translateX(${n})`);return o("ios"===e).addAnimation(r)},m=(()=>{const s=new Map,a=[],o=async(t,e=!1)=>{if(await d(),"start"===t||"end"===t){const r=a.filter((e=>e.side===t&&!e.disabled));if(r.length>=1)return r.length>1&&e&&n(`menuController queried for a menu on the "${t}" side, but ${r.length} menus were found. The first menu reference will be used. If this is not the behavior you want then pass the ID of the menu instead of its side.`,r.map((t=>t.el))),r[0].el;const s=a.filter((e=>e.side===t));if(s.length>=1)return s.length>1&&e&&n(`menuController queried for a menu on the "${t}" side, but ${s.length} menus were found. The first menu reference will be used. If this is not the behavior you want then pass the ID of the menu instead of its side.`,s.map((t=>t.el))),s[0].el}else if(null!=t)return w((e=>e.menuId===t));return w((t=>!t.disabled))||(a.length>0?a[0].el:void 0)},m=async()=>(await d(),f()),p=(t,e)=>{s.set(t,e)},f=()=>w((t=>t._isOpen)),l=()=>a.some((t=>t.isAnimating)),w=t=>{const e=a.find(t);if(void 0!==e)return e.el},d=()=>Promise.all(Array.from(document.querySelectorAll("ion-menu")).map((t=>new Promise((e=>r(t,e))))));return p("reveal",c),p("push",u),p("overlay",i),null==t||t.addEventListener("ionBackButton",(t=>{const n=f();n&&t.detail.register(e,(()=>n.close()))})),{registerAnimation:p,get:o,getMenus:async()=>(await d(),a.map((t=>t.el))),getOpen:m,isEnabled:async t=>{const e=await o(t);return!!e&&!e.disabled},swipeGesture:async(t,e)=>{const n=await o(e);return n&&(n.swipeGesture=t),n},isAnimating:async()=>(await d(),l()),isOpen:async t=>{if(null!=t){const e=await o(t);return void 0!==e&&e.isOpen()}return void 0!==await m()},enable:async(t,e)=>{const n=await o(e);return n&&(n.disabled=!t),n},toggle:async t=>{const e=await o(t,!0);return!!e&&e.toggle()},close:async t=>{const e=await(void 0!==t?o(t,!0):m());return void 0!==e&&e.close()},open:async t=>{const e=await o(t,!0);return!!e&&e.open()},_getOpenSync:f,_createAnimation:(t,e)=>{const n=s.get(t);if(!n)throw new Error("animation not registered");return n(e)},_register:t=>{a.indexOf(t)<0&&a.push(t)},_unregister:t=>{const e=a.indexOf(t);e>-1&&a.splice(e,1)},_setOpen:async(t,e,n,r)=>{if(l())return!1;if(e){const e=await m();e&&t.el!==e&&await e.setOpen(!1,!1)}return t._setOpen(e,n,r)}}})();export{m}
4
+ import{d as t}from"./p-ZjP4CjeZ.js";import{MENU_BACK_BUTTON_PRIORITY as e}from"./p-Dj35jSF7.js";import{f as n}from"./p-K56Zjrdc.js";import{c as r}from"./p-RUyJri7q.js";import{b as s}from"./p-BuiN7eei.js";import{c as a}from"./p-BFdLXUmQ.js";const o=t=>a().duration(t?400:300),i=t=>{let e,n;const r=t.width+8,i=a(),u=a();t.isEndSide?(e=r+"px",n="0px"):(e=-r+"px",n="0px"),i.addElement(t.menuInnerEl).fromTo("transform",`translateX(${e})`,`translateX(${n})`);const c="ios"===s(t),p=c?.2:.25;return u.addElement(t.backdropEl).fromTo("opacity",.01,p),o(c).addAnimation([i,u])},u=t=>{let e,n;const r=s(t),i=t.width;t.isEndSide?(e=-i+"px",n=i+"px"):(e=i+"px",n=-i+"px");const u=a().addElement(t.menuInnerEl).fromTo("transform",`translateX(${n})`,"translateX(0px)"),c=a().addElement(t.contentEl).fromTo("transform","translateX(0px)",`translateX(${e})`),p=a().addElement(t.backdropEl).fromTo("opacity",.01,.32);return o("ios"===r).addAnimation([u,c,p])},c=t=>{const e=s(t),n=t.width*(t.isEndSide?-1:1)+"px",r=a().addElement(t.contentEl).fromTo("transform","translateX(0px)",`translateX(${n})`);return o("ios"===e).addAnimation(r)},p=(()=>{const s=new Map,a=[],o=async(t,e=!1)=>{if(await w(),"start"===t||"end"===t){const r=a.filter((e=>e.side===t&&!e.disabled));if(r.length>=1)return r.length>1&&e&&n(`menuController queried for a menu on the "${t}" side, but ${r.length} menus were found. The first menu reference will be used. If this is not the behavior you want then pass the ID of the menu instead of its side.`,r.map((t=>t.el))),r[0].el;const s=a.filter((e=>e.side===t));if(s.length>=1)return s.length>1&&e&&n(`menuController queried for a menu on the "${t}" side, but ${s.length} menus were found. The first menu reference will be used. If this is not the behavior you want then pass the ID of the menu instead of its side.`,s.map((t=>t.el))),s[0].el}else if(null!=t)return d((e=>e.menuId===t));return d((t=>!t.disabled))||(a.length>0?a[0].el:void 0)},p=async()=>(await w(),f()),m=(t,e)=>{s.set(t,e)},f=()=>d((t=>t._isOpen)),l=()=>a.some((t=>t.isAnimating)),d=t=>{const e=a.find(t);if(void 0!==e)return e.el},w=()=>Promise.all(Array.from(document.querySelectorAll("ion-menu")).map((t=>new Promise((e=>r(t,e))))));return m("reveal",c),m("push",u),m("overlay",i),null==t||t.addEventListener("ionBackButton",(t=>{const n=f();n&&t.detail.register(e,(()=>n.close()))})),{registerAnimation:m,get:o,getMenus:async()=>(await w(),a.map((t=>t.el))),getOpen:p,isEnabled:async t=>{const e=await o(t);return!!e&&!e.disabled},swipeGesture:async(t,e)=>{const n=await o(e);return n&&(n.swipeGesture=t),n},isAnimating:async()=>(await w(),l()),isOpen:async t=>{if(null!=t){const e=await o(t);return void 0!==e&&e.isOpen()}return void 0!==await p()},enable:async(t,e)=>{const n=await o(e);return n&&(n.disabled=!t),n},toggle:async t=>{const e=await o(t,!0);return!!e&&e.toggle()},close:async t=>{const e=await(void 0!==t?o(t,!0):p());return void 0!==e&&e.close()},open:async t=>{const e=await o(t,!0);return!!e&&e.open()},_getOpenSync:f,_createAnimation:(t,e)=>{const n=s.get(t);if(!n)throw new Error("animation not registered");return n(e)},_register:t=>{a.indexOf(t)<0&&a.push(t)},_unregister:t=>{const e=a.indexOf(t);e>-1&&a.splice(e,1)},_setOpen:async(t,e,n,r)=>{if(l())return!1;if(e){const e=await p();e&&t.el!==e&&await e.setOpen(!1,!1)}return t._setOpen(e,n,r)}}})();export{p as m}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * (C) Ionic http://ionicframework.com - MIT License
3
3
  */
4
- import{j as a}from"./p-C8IsBmNU.js";const i=(a,i=0)=>new Promise((e=>{r(a,i,e)})),r=(a,i=0,r)=>{let e,t;const n={passive:!0},o=()=>{e&&e()},s=i=>{void 0!==i&&a!==i.target||(o(),r(i))};return a&&(a.addEventListener("webkitTransitionEnd",s,n),a.addEventListener("transitionend",s,n),t=setTimeout(s,i+500),e=()=>{void 0!==t&&(clearTimeout(t),t=void 0),a.removeEventListener("webkitTransitionEnd",s,n),a.removeEventListener("transitionend",s,n)}),o},e=(a,i)=>{a.componentOnReady?a.componentOnReady().then((a=>i(a))):d((()=>i(a)))},t=a=>void 0!==a.componentOnReady,n=(a,i=[])=>{const r={};return i.forEach((i=>{a.hasAttribute(i)&&(null!==a.getAttribute(i)&&(r[i]=a.getAttribute(i)),a.removeAttribute(i))})),r},o=["role","aria-activedescendant","aria-atomic","aria-autocomplete","aria-braillelabel","aria-brailleroledescription","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colindextext","aria-colspan","aria-controls","aria-current","aria-describedby","aria-description","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowindextext","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext"],s=a=>n(a,o),l=(a,i,r,e)=>a.addEventListener(i,r,e),u=(a,i,r,e)=>a.removeEventListener(i,r,e),c=(a,i=a)=>a.shadowRoot||i,d=a=>"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(a):"function"==typeof requestAnimationFrame?requestAnimationFrame(a):setTimeout(a),m=a=>!!a.shadowRoot&&!!a.attachShadow,p=a=>{if(a.focus(),a.classList.contains("ion-focusable")){const i=a.closest("ion-app");i&&i.setFocus([a])}},f=(a,i,r,e,t)=>{{let a=i.querySelector("input.aux-input");a||(a=i.ownerDocument.createElement("input"),a.type="hidden",a.classList.add("aux-input"),i.appendChild(a)),a.disabled=t,a.name=r,a.value=e||""}},b=(a,i,r)=>Math.max(a,Math.min(i,r)),v=(i,r)=>{if(!i){const i="ASSERT: "+r;throw a(i),new Error(i)}},w=a=>{if(a){const i=a.changedTouches;if(i&&i.length>0){const a=i[0];return{x:a.clientX,y:a.clientY}}if(void 0!==a.pageX)return{x:a.pageX,y:a.pageY}}return{x:0,y:0}},x=a=>{const i="rtl"===document.dir;switch(a){case"start":return i;case"end":return!i;default:throw new Error(`"${a}" is not a valid value for [side]. Use "start" or "end" instead.`)}},y=(a,i)=>{const r=a._original||a;return{_original:a,emit:h(r.emit.bind(r),i)}},h=(a,i=0)=>{let r;return(...e)=>{clearTimeout(r),r=setTimeout(a,i,...e)}},_=(a,i)=>{if(null!=a||(a={}),null!=i||(i={}),a===i)return!0;const r=Object.keys(a);if(r.length!==Object.keys(i).length)return!1;for(const e of r){if(!(e in i))return!1;if(a[e]!==i[e])return!1}return!0},T=a=>"number"==typeof a&&!isNaN(a)&&isFinite(a);export{f as a,n as b,e as c,y as d,b as e,l as f,c as g,t as h,s as i,T as j,m as k,v as l,u as m,p as n,x as o,h as p,w as q,d as r,_ as s,i as t}
4
+ import{j as a}from"./p-K56Zjrdc.js";const i=(a,i=0)=>new Promise((e=>{r(a,i,e)})),r=(a,i=0,r)=>{let e,t;const n={passive:!0},o=()=>{e&&e()},s=i=>{void 0!==i&&a!==i.target||(o(),r(i))};return a&&(a.addEventListener("webkitTransitionEnd",s,n),a.addEventListener("transitionend",s,n),t=setTimeout(s,i+500),e=()=>{void 0!==t&&(clearTimeout(t),t=void 0),a.removeEventListener("webkitTransitionEnd",s,n),a.removeEventListener("transitionend",s,n)}),o},e=(a,i)=>{a.componentOnReady?a.componentOnReady().then((a=>i(a))):d((()=>i(a)))},t=a=>void 0!==a.componentOnReady,n=(a,i=[])=>{const r={};return i.forEach((i=>{a.hasAttribute(i)&&(null!==a.getAttribute(i)&&(r[i]=a.getAttribute(i)),a.removeAttribute(i))})),r},o=["role","aria-activedescendant","aria-atomic","aria-autocomplete","aria-braillelabel","aria-brailleroledescription","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colindextext","aria-colspan","aria-controls","aria-current","aria-describedby","aria-description","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowindextext","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext"],s=a=>n(a,o),l=(a,i,r,e)=>a.addEventListener(i,r,e),u=(a,i,r,e)=>a.removeEventListener(i,r,e),c=(a,i=a)=>a.shadowRoot||i,d=a=>"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(a):"function"==typeof requestAnimationFrame?requestAnimationFrame(a):setTimeout(a),m=a=>!!a.shadowRoot&&!!a.attachShadow,p=a=>{if(a.focus(),a.classList.contains("ion-focusable")){const i=a.closest("ion-app");i&&i.setFocus([a])}},f=(a,i,r,e,t)=>{{let a=i.querySelector("input.aux-input");a||(a=i.ownerDocument.createElement("input"),a.type="hidden",a.classList.add("aux-input"),i.appendChild(a)),a.disabled=t,a.name=r,a.value=e||""}},b=(a,i,r)=>Math.max(a,Math.min(i,r)),v=(i,r)=>{if(!i){const i="ASSERT: "+r;throw a(i),new Error(i)}},w=a=>{if(a){const i=a.changedTouches;if(i&&i.length>0){const a=i[0];return{x:a.clientX,y:a.clientY}}if(void 0!==a.pageX)return{x:a.pageX,y:a.pageY}}return{x:0,y:0}},x=a=>{const i="rtl"===document.dir;switch(a){case"start":return i;case"end":return!i;default:throw new Error(`"${a}" is not a valid value for [side]. Use "start" or "end" instead.`)}},y=(a,i)=>{const r=a._original||a;return{_original:a,emit:h(r.emit.bind(r),i)}},h=(a,i=0)=>{let r;return(...e)=>{clearTimeout(r),r=setTimeout(a,i,...e)}},_=(a,i)=>{if(null!=a||(a={}),null!=i||(i={}),a===i)return!0;const r=Object.keys(a);if(r.length!==Object.keys(i).length)return!1;for(const e of r){if(!(e in i))return!1;if(a[e]!==i[e])return!1}return!0},T=a=>"number"==typeof a&&!isNaN(a)&&isFinite(a);export{f as a,n as b,e as c,y as d,b as e,l as f,c as g,t as h,s as i,T as j,m as k,v as l,u as m,p as n,x as o,h as p,w as q,d as r,_ as s,i as t}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * (C) Ionic http://ionicframework.com - MIT License
3
3
  */
4
- import{r as t,c as o,j as n,f as e,g as r,h as i,d as s}from"./p-C8IsBmNU.js";import{c as a,p as c}from"./p-CTfR9YZG.js";import{o as h,c as u}from"./p-DiVJyqlX.js";import{b as l}from"./p-BFvmZNyx.js";const f=class{constructor(n){t(this,n),this.ionRouteDataChanged=o(this,"ionRouteDataChanged",7),this.url=""}onUpdate(t){this.ionRouteDataChanged.emit(t)}onComponentProps(t,o){if(t===o)return;const n=t?Object.keys(t):[],e=o?Object.keys(o):[];if(n.length===e.length){for(const e of n)if(t[e]!==o[e])return void this.onUpdate(t)}else this.onUpdate(t)}connectedCallback(){this.ionRouteDataChanged.emit()}static get watchers(){return{url:["onUpdate"],component:["onUpdate"],componentProps:["onComponentProps"]}}},d=class{constructor(n){t(this,n),this.ionRouteRedirectChanged=o(this,"ionRouteRedirectChanged",7)}propDidChange(){this.ionRouteRedirectChanged.emit()}connectedCallback(){this.ionRouteRedirectChanged.emit()}static get watchers(){return{from:["propDidChange"],to:["propDidChange"]}}},w="root",p="forward",m=t=>"/"+t.filter((t=>t.length>0)).join("/"),b=t=>{let o,n=[""];if(null!=t){const e=t.indexOf("?");e>-1&&(o=t.substring(e+1),t=t.substring(0,e)),n=t.split("/").map((t=>t.trim())).filter((t=>t.length>0)),0===n.length&&(n=[""])}return{segments:n,queryString:o}},g=async(t,o,e,r,i=!1,s)=>{try{const n=y(t);if(r>=o.length||!n)return i;await new Promise((t=>a(n,t)));const c=o[r],h=await n.setRouteId(c.id,c.params,e,s);return h.changed&&(e=w,i=!0),i=await g(h.element,o,e,r+1,i,s),h.markVisible&&await h.markVisible(),i}catch(t){return n("[ion-router] - Exception in writeNavState:",t),!1}},v=":not([no-router]) ion-nav, :not([no-router]) ion-tabs, :not([no-router]) ion-router-outlet",y=t=>{if(!t)return;if(t.matches(v))return t;const o=t.querySelector(v);return null!=o?o:void 0},R=(t,o)=>o.find((o=>((t,o)=>{const{from:n,to:e}=o;if(void 0===e)return!1;if(n.length>t.length)return!1;for(let o=0;o<n.length;o++){const e=n[o];if("*"===e)return!0;if(e!==t[o])return!1}return n.length===t.length})(t,o))),C=(t,o)=>{const n=Math.min(t.length,o.length);let e=0;for(let r=0;r<n;r++){const n=t[r],i=o[r];if(n.id.toLowerCase()!==i.id)break;if(n.params){const t=Object.keys(n.params);if(t.length===i.segments.length){const o=t.map((t=>`:${t}`));for(let t=0;t<o.length&&o[t].toLowerCase()===i.segments[t];t++)e++}}e++}return e},j=(t,o)=>{const n=new D(t);let e,r=!1;for(let t=0;t<o.length;t++){const i=o[t].segments;if(""===i[0])r=!0;else{for(const o of i){const r=n.next();if(":"===o[0]){if(""===r)return null;e=e||[],(e[t]||(e[t]={}))[o.slice(1)]=r}else if(r!==o)return null}r=!1}}return r&&r!==(""===n.next())?null:e?o.map(((t,o)=>({id:t.id,segments:t.segments,params:k(t.params,e[o]),beforeEnter:t.beforeEnter,beforeLeave:t.beforeLeave}))):o},k=(t,o)=>t||o?Object.assign(Object.assign({},t),o):void 0,E=(t,o)=>{let n=null,e=0;for(const r of o){const o=j(t,r);if(null!==o){const t=O(o);t>e&&(e=t,n=o)}}return n},O=t=>{let o=1,n=1;for(const e of t)for(const t of e.segments)":"===t[0]?o+=Math.pow(1,n):""!==t&&(o+=Math.pow(2,n)),n++;return o};class D{constructor(t){this.segments=t.slice()}next(){return this.segments.length>0?this.segments.shift():""}}const S=(t,o)=>o in t?t[o]:t.hasAttribute(o)?t.getAttribute(o):null,x=t=>Array.from(t.children).filter((t=>"ION-ROUTE-REDIRECT"===t.tagName)).map((t=>{const o=S(t,"to");return{from:b(S(t,"from")).segments,to:null==o?void 0:b(o)}})),N=t=>$(U(t)),U=t=>Array.from(t.children).filter((t=>"ION-ROUTE"===t.tagName&&t.component)).map((t=>{const o=S(t,"component");return{segments:b(S(t,"url")).segments,id:o.toLowerCase(),params:t.componentProps,beforeLeave:t.beforeLeave,beforeEnter:t.beforeEnter,children:U(t)}})),$=t=>{const o=[];for(const n of t)L([],o,n);return o},L=(t,o,n)=>{if(t=[...t,{id:n.id,segments:n.segments,params:n.params,beforeLeave:n.beforeLeave,beforeEnter:n.beforeEnter}],0!==n.children.length)for(const e of n.children)L(t,o,e);else o.push(t)},P=class{constructor(n){t(this,n),this.ionRouteWillChange=o(this,"ionRouteWillChange",7),this.ionRouteDidChange=o(this,"ionRouteDidChange",7),this.previousPath=null,this.busy=!1,this.state=0,this.lastState=0,this.root="/",this.useHash=!0}async componentWillLoad(){await(y(document.body)?Promise.resolve():new Promise((t=>{window.addEventListener("ionNavWillLoad",(()=>t()),{once:!0})})));const t=await this.runGuards(this.getSegments());if(!0!==t){if("object"==typeof t){const{redirect:o}=t,n=b(o);this.setSegments(n.segments,w,n.queryString),await this.writeNavStateRoot(n.segments,w)}}else await this.onRoutesChanged()}componentDidLoad(){window.addEventListener("ionRouteRedirectChanged",c(this.onRedirectChanged.bind(this),10)),window.addEventListener("ionRouteDataChanged",c(this.onRoutesChanged.bind(this),100))}async onPopState(){const t=this.historyDirection();let o=this.getSegments();const n=await this.runGuards(o);if(!0!==n){if("object"!=typeof n)return!1;o=b(n.redirect).segments}return this.writeNavStateRoot(o,t)}onBackButton(t){t.detail.register(0,(t=>{this.back(),t()}))}async canTransition(){const t=await this.runGuards();return!0===t||"object"==typeof t&&t.redirect}async push(t,o="forward",n){var e;if(t.startsWith(".")){const o=null!==(e=this.previousPath)&&void 0!==e?e:"/",n=new URL(t,`https://host/${o}`);t=n.pathname+n.search}let r=b(t);const i=await this.runGuards(r.segments);if(!0!==i){if("object"!=typeof i)return!1;r=b(i.redirect)}return this.setSegments(r.segments,o,r.queryString),this.writeNavStateRoot(r.segments,o,n)}back(){return window.history.back(),Promise.resolve(this.waitPromise)}async printDebug(){(t=>{console.group(`[ion-core] ROUTES[${t.length}]`);for(const o of t){const t=[];o.forEach((o=>t.push(...o.segments)));const n=o.map((t=>t.id));console.debug(`%c ${m(t)}`,"font-weight: bold; padding-left: 20px","=>\t",`(${n.join(", ")})`)}console.groupEnd()})(N(this.el)),(t=>{console.group(`[ion-core] REDIRECTS[${t.length}]`);for(const o of t)o.to&&console.debug("FROM: ",`$c ${m(o.from)}`,"font-weight: bold"," TO: ",`$c ${m(o.to.segments)}`,"font-weight: bold");console.groupEnd()})(x(this.el))}async navChanged(t){if(this.busy)return e("[ion-router] - Router is busy, navChanged was cancelled."),!1;const{ids:o,outlet:n}=await(async()=>{const t=[];let o,n=window.document.body;for(;o=y(n);){const e=await o.getRouteId();if(!e)break;n=e.element,e.element=void 0,t.push(e)}return{ids:t,outlet:o}})(),r=((t,o)=>{let n=null,e=0;for(const r of o){const o=C(t,r);o>e&&(n=r,e=o)}return n?n.map(((o,n)=>{var e;return{id:o.id,segments:o.segments,params:k(o.params,null===(e=t[n])||void 0===e?void 0:e.params)}})):null})(o,N(this.el));if(!r)return e("[ion-router] - No matching URL for",o.map((t=>t.id))),!1;const i=(t=>{const o=[];for(const n of t)for(const t of n.segments)if(":"===t[0]){const e=n.params&&n.params[t.slice(1)];if(!e)return null;o.push(e)}else""!==t&&o.push(t);return o})(r);return i?(this.setSegments(i,t),await this.safeWriteNavState(n,r,w,i,null,o.length),!0):(e("[ion-router] - Router could not match path because some required param is missing."),!1)}onRedirectChanged(){const t=this.getSegments();t&&R(t,x(this.el))&&this.writeNavStateRoot(t,w)}onRoutesChanged(){return this.writeNavStateRoot(this.getSegments(),w)}historyDirection(){var t;const o=window;null===o.history.state&&(this.state++,o.history.replaceState(this.state,o.document.title,null===(t=o.document.location)||void 0===t?void 0:t.href));const n=o.history.state,e=this.lastState;return this.lastState=n,n>e||n>=e&&e>0?p:n<e?"back":w}async writeNavStateRoot(t,o,e){if(!t)return n("[ion-router] - URL is not part of the routing set."),!1;const r=x(this.el),i=R(t,r);let s=null;if(i){const{segments:n,queryString:e}=i.to;this.setSegments(n,o,e),s=i.from,t=n}const a=N(this.el),c=E(t,a);return c?this.safeWriteNavState(document.body,c,o,t,s,0,e):(n("[ion-router] - The path does not match any route."),!1)}async safeWriteNavState(t,o,e,r,i,s=0,a){const c=await this.lock();let h=!1;try{h=await this.writeNavState(t,o,e,r,i,s,a)}catch(t){n("[ion-router] - Exception in safeWriteNavState:",t)}return c(),h}async lock(){const t=this.waitPromise;let o;return this.waitPromise=new Promise((t=>o=t)),void 0!==t&&await t,o}async runGuards(t=this.getSegments(),o){if(void 0===o&&(o=b(this.previousPath).segments),!t||!o)return!0;const n=N(this.el),e=E(o,n),r=e&&e[e.length-1].beforeLeave,i=!r||await r();if(!1===i||"object"==typeof i)return i;const s=E(t,n),a=s&&s[s.length-1].beforeEnter;return!a||a()}async writeNavState(t,o,n,r,i,s=0,a){if(this.busy)return e("[ion-router] - Router is busy, transition was cancelled."),!1;this.busy=!0;const c=this.routeChangeEvent(r,i);c&&this.ionRouteWillChange.emit(c);const h=await g(t,o,n,s,!1,a);return this.busy=!1,c&&this.ionRouteDidChange.emit(c),h}setSegments(t,o,n){this.state++,((t,o,n,e,r,i,s)=>{const a=((t,o,n)=>{let e=m(t);return o&&(e="#"+e),void 0!==n&&(e+="?"+n),e})([...b(o).segments,...e],n,s);r===p?t.pushState(i,"",a):t.replaceState(i,"",a)})(window.history,this.root,this.useHash,t,o,this.state,n)}getSegments(){return((t,o,n)=>{const e=b(this.root).segments,r=n?t.hash.slice(1):t.pathname;return((t,o)=>{if(t.length>o.length)return null;if(t.length<=1&&""===t[0])return o;for(let n=0;n<t.length;n++)if(t[n]!==o[n])return null;return o.length===t.length?[""]:o.slice(t.length)})(e,b(r).segments)})(window.location,0,this.useHash)}routeChangeEvent(t,o){const n=this.previousPath,e=m(t);return this.previousPath=e,e===n?null:{from:n,redirectedFrom:o?m(o):null,to:e}}get el(){return r(this)}},T=class{constructor(o){t(this,o),this.routerDirection="forward",this.onClick=t=>{h(this.href,t,this.routerDirection,this.routerAnimation)}}render(){const t=l(this),o={href:this.href,rel:this.rel,target:this.target};return i(s,{key:"d7f2affcde45c5fbb6cb46cd1c30008ee92a68c5",onClick:this.onClick,class:u(this.color,{[t]:!0,"ion-activatable":!0})},i("a",Object.assign({key:"babafae85ca5c6429958d383feff0493ff8cf33e"},o),i("slot",{key:"50314e9555bbf6dffa0c50c3f763009dee59b10b"})))}};T.style=":host{--background:transparent;--color:var(--ion-color-primary, #0054e9);background:var(--background);color:var(--color)}:host(.ion-color){color:var(--ion-color-base)}a{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit}";export{f as ion_route,d as ion_route_redirect,P as ion_router,T as ion_router_link}
4
+ import{r as t,c as o,j as n,f as e,g as r,h as i,d as s}from"./p-K56Zjrdc.js";import{c as a,p as c}from"./p-RUyJri7q.js";import{o as h,c as u}from"./p-DiVJyqlX.js";import{b as l}from"./p-BuiN7eei.js";const f=class{constructor(n){t(this,n),this.ionRouteDataChanged=o(this,"ionRouteDataChanged",7),this.url=""}onUpdate(t){this.ionRouteDataChanged.emit(t)}onComponentProps(t,o){if(t===o)return;const n=t?Object.keys(t):[],e=o?Object.keys(o):[];if(n.length===e.length){for(const e of n)if(t[e]!==o[e])return void this.onUpdate(t)}else this.onUpdate(t)}connectedCallback(){this.ionRouteDataChanged.emit()}static get watchers(){return{url:["onUpdate"],component:["onUpdate"],componentProps:["onComponentProps"]}}},d=class{constructor(n){t(this,n),this.ionRouteRedirectChanged=o(this,"ionRouteRedirectChanged",7)}propDidChange(){this.ionRouteRedirectChanged.emit()}connectedCallback(){this.ionRouteRedirectChanged.emit()}static get watchers(){return{from:["propDidChange"],to:["propDidChange"]}}},w="root",p="forward",m=t=>"/"+t.filter((t=>t.length>0)).join("/"),b=t=>{let o,n=[""];if(null!=t){const e=t.indexOf("?");e>-1&&(o=t.substring(e+1),t=t.substring(0,e)),n=t.split("/").map((t=>t.trim())).filter((t=>t.length>0)),0===n.length&&(n=[""])}return{segments:n,queryString:o}},g=async(t,o,e,r,i=!1,s)=>{try{const n=y(t);if(r>=o.length||!n)return i;await new Promise((t=>a(n,t)));const c=o[r],h=await n.setRouteId(c.id,c.params,e,s);return h.changed&&(e=w,i=!0),i=await g(h.element,o,e,r+1,i,s),h.markVisible&&await h.markVisible(),i}catch(t){return n("[ion-router] - Exception in writeNavState:",t),!1}},v=":not([no-router]) ion-nav, :not([no-router]) ion-tabs, :not([no-router]) ion-router-outlet",y=t=>{if(!t)return;if(t.matches(v))return t;const o=t.querySelector(v);return null!=o?o:void 0},R=(t,o)=>o.find((o=>((t,o)=>{const{from:n,to:e}=o;if(void 0===e)return!1;if(n.length>t.length)return!1;for(let o=0;o<n.length;o++){const e=n[o];if("*"===e)return!0;if(e!==t[o])return!1}return n.length===t.length})(t,o))),C=(t,o)=>{const n=Math.min(t.length,o.length);let e=0;for(let r=0;r<n;r++){const n=t[r],i=o[r];if(n.id.toLowerCase()!==i.id)break;if(n.params){const t=Object.keys(n.params);if(t.length===i.segments.length){const o=t.map((t=>`:${t}`));for(let t=0;t<o.length&&o[t].toLowerCase()===i.segments[t];t++)e++}}e++}return e},j=(t,o)=>{const n=new D(t);let e,r=!1;for(let t=0;t<o.length;t++){const i=o[t].segments;if(""===i[0])r=!0;else{for(const o of i){const r=n.next();if(":"===o[0]){if(""===r)return null;e=e||[],(e[t]||(e[t]={}))[o.slice(1)]=r}else if(r!==o)return null}r=!1}}return r&&r!==(""===n.next())?null:e?o.map(((t,o)=>({id:t.id,segments:t.segments,params:k(t.params,e[o]),beforeEnter:t.beforeEnter,beforeLeave:t.beforeLeave}))):o},k=(t,o)=>t||o?Object.assign(Object.assign({},t),o):void 0,E=(t,o)=>{let n=null,e=0;for(const r of o){const o=j(t,r);if(null!==o){const t=O(o);t>e&&(e=t,n=o)}}return n},O=t=>{let o=1,n=1;for(const e of t)for(const t of e.segments)":"===t[0]?o+=Math.pow(1,n):""!==t&&(o+=Math.pow(2,n)),n++;return o};class D{constructor(t){this.segments=t.slice()}next(){return this.segments.length>0?this.segments.shift():""}}const S=(t,o)=>o in t?t[o]:t.hasAttribute(o)?t.getAttribute(o):null,x=t=>Array.from(t.children).filter((t=>"ION-ROUTE-REDIRECT"===t.tagName)).map((t=>{const o=S(t,"to");return{from:b(S(t,"from")).segments,to:null==o?void 0:b(o)}})),N=t=>$(U(t)),U=t=>Array.from(t.children).filter((t=>"ION-ROUTE"===t.tagName&&t.component)).map((t=>{const o=S(t,"component");return{segments:b(S(t,"url")).segments,id:o.toLowerCase(),params:t.componentProps,beforeLeave:t.beforeLeave,beforeEnter:t.beforeEnter,children:U(t)}})),$=t=>{const o=[];for(const n of t)L([],o,n);return o},L=(t,o,n)=>{if(t=[...t,{id:n.id,segments:n.segments,params:n.params,beforeLeave:n.beforeLeave,beforeEnter:n.beforeEnter}],0!==n.children.length)for(const e of n.children)L(t,o,e);else o.push(t)},P=class{constructor(n){t(this,n),this.ionRouteWillChange=o(this,"ionRouteWillChange",7),this.ionRouteDidChange=o(this,"ionRouteDidChange",7),this.previousPath=null,this.busy=!1,this.state=0,this.lastState=0,this.root="/",this.useHash=!0}async componentWillLoad(){await(y(document.body)?Promise.resolve():new Promise((t=>{window.addEventListener("ionNavWillLoad",(()=>t()),{once:!0})})));const t=await this.runGuards(this.getSegments());if(!0!==t){if("object"==typeof t){const{redirect:o}=t,n=b(o);this.setSegments(n.segments,w,n.queryString),await this.writeNavStateRoot(n.segments,w)}}else await this.onRoutesChanged()}componentDidLoad(){window.addEventListener("ionRouteRedirectChanged",c(this.onRedirectChanged.bind(this),10)),window.addEventListener("ionRouteDataChanged",c(this.onRoutesChanged.bind(this),100))}async onPopState(){const t=this.historyDirection();let o=this.getSegments();const n=await this.runGuards(o);if(!0!==n){if("object"!=typeof n)return!1;o=b(n.redirect).segments}return this.writeNavStateRoot(o,t)}onBackButton(t){t.detail.register(0,(t=>{this.back(),t()}))}async canTransition(){const t=await this.runGuards();return!0===t||"object"==typeof t&&t.redirect}async push(t,o="forward",n){var e;if(t.startsWith(".")){const o=null!==(e=this.previousPath)&&void 0!==e?e:"/",n=new URL(t,`https://host/${o}`);t=n.pathname+n.search}let r=b(t);const i=await this.runGuards(r.segments);if(!0!==i){if("object"!=typeof i)return!1;r=b(i.redirect)}return this.setSegments(r.segments,o,r.queryString),this.writeNavStateRoot(r.segments,o,n)}back(){return window.history.back(),Promise.resolve(this.waitPromise)}async printDebug(){(t=>{console.group(`[ion-core] ROUTES[${t.length}]`);for(const o of t){const t=[];o.forEach((o=>t.push(...o.segments)));const n=o.map((t=>t.id));console.debug(`%c ${m(t)}`,"font-weight: bold; padding-left: 20px","=>\t",`(${n.join(", ")})`)}console.groupEnd()})(N(this.el)),(t=>{console.group(`[ion-core] REDIRECTS[${t.length}]`);for(const o of t)o.to&&console.debug("FROM: ",`$c ${m(o.from)}`,"font-weight: bold"," TO: ",`$c ${m(o.to.segments)}`,"font-weight: bold");console.groupEnd()})(x(this.el))}async navChanged(t){if(this.busy)return e("[ion-router] - Router is busy, navChanged was cancelled."),!1;const{ids:o,outlet:n}=await(async()=>{const t=[];let o,n=window.document.body;for(;o=y(n);){const e=await o.getRouteId();if(!e)break;n=e.element,e.element=void 0,t.push(e)}return{ids:t,outlet:o}})(),r=((t,o)=>{let n=null,e=0;for(const r of o){const o=C(t,r);o>e&&(n=r,e=o)}return n?n.map(((o,n)=>{var e;return{id:o.id,segments:o.segments,params:k(o.params,null===(e=t[n])||void 0===e?void 0:e.params)}})):null})(o,N(this.el));if(!r)return e("[ion-router] - No matching URL for",o.map((t=>t.id))),!1;const i=(t=>{const o=[];for(const n of t)for(const t of n.segments)if(":"===t[0]){const e=n.params&&n.params[t.slice(1)];if(!e)return null;o.push(e)}else""!==t&&o.push(t);return o})(r);return i?(this.setSegments(i,t),await this.safeWriteNavState(n,r,w,i,null,o.length),!0):(e("[ion-router] - Router could not match path because some required param is missing."),!1)}onRedirectChanged(){const t=this.getSegments();t&&R(t,x(this.el))&&this.writeNavStateRoot(t,w)}onRoutesChanged(){return this.writeNavStateRoot(this.getSegments(),w)}historyDirection(){var t;const o=window;null===o.history.state&&(this.state++,o.history.replaceState(this.state,o.document.title,null===(t=o.document.location)||void 0===t?void 0:t.href));const n=o.history.state,e=this.lastState;return this.lastState=n,n>e||n>=e&&e>0?p:n<e?"back":w}async writeNavStateRoot(t,o,e){if(!t)return n("[ion-router] - URL is not part of the routing set."),!1;const r=x(this.el),i=R(t,r);let s=null;if(i){const{segments:n,queryString:e}=i.to;this.setSegments(n,o,e),s=i.from,t=n}const a=N(this.el),c=E(t,a);return c?this.safeWriteNavState(document.body,c,o,t,s,0,e):(n("[ion-router] - The path does not match any route."),!1)}async safeWriteNavState(t,o,e,r,i,s=0,a){const c=await this.lock();let h=!1;try{h=await this.writeNavState(t,o,e,r,i,s,a)}catch(t){n("[ion-router] - Exception in safeWriteNavState:",t)}return c(),h}async lock(){const t=this.waitPromise;let o;return this.waitPromise=new Promise((t=>o=t)),void 0!==t&&await t,o}async runGuards(t=this.getSegments(),o){if(void 0===o&&(o=b(this.previousPath).segments),!t||!o)return!0;const n=N(this.el),e=E(o,n),r=e&&e[e.length-1].beforeLeave,i=!r||await r();if(!1===i||"object"==typeof i)return i;const s=E(t,n),a=s&&s[s.length-1].beforeEnter;return!a||a()}async writeNavState(t,o,n,r,i,s=0,a){if(this.busy)return e("[ion-router] - Router is busy, transition was cancelled."),!1;this.busy=!0;const c=this.routeChangeEvent(r,i);c&&this.ionRouteWillChange.emit(c);const h=await g(t,o,n,s,!1,a);return this.busy=!1,c&&this.ionRouteDidChange.emit(c),h}setSegments(t,o,n){this.state++,((t,o,n,e,r,i,s)=>{const a=((t,o,n)=>{let e=m(t);return o&&(e="#"+e),void 0!==n&&(e+="?"+n),e})([...b(o).segments,...e],n,s);r===p?t.pushState(i,"",a):t.replaceState(i,"",a)})(window.history,this.root,this.useHash,t,o,this.state,n)}getSegments(){return((t,o,n)=>{const e=b(this.root).segments,r=n?t.hash.slice(1):t.pathname;return((t,o)=>{if(t.length>o.length)return null;if(t.length<=1&&""===t[0])return o;for(let n=0;n<t.length;n++)if(t[n]!==o[n])return null;return o.length===t.length?[""]:o.slice(t.length)})(e,b(r).segments)})(window.location,0,this.useHash)}routeChangeEvent(t,o){const n=this.previousPath,e=m(t);return this.previousPath=e,e===n?null:{from:n,redirectedFrom:o?m(o):null,to:e}}get el(){return r(this)}},T=class{constructor(o){t(this,o),this.routerDirection="forward",this.onClick=t=>{h(this.href,t,this.routerDirection,this.routerAnimation)}}render(){const t=l(this),o={href:this.href,rel:this.rel,target:this.target};return i(s,{key:"d7f2affcde45c5fbb6cb46cd1c30008ee92a68c5",onClick:this.onClick,class:u(this.color,{[t]:!0,"ion-activatable":!0})},i("a",Object.assign({key:"babafae85ca5c6429958d383feff0493ff8cf33e"},o),i("slot",{key:"50314e9555bbf6dffa0c50c3f763009dee59b10b"})))}};T.style=":host{--background:transparent;--color:var(--ion-color-primary, #0054e9);background:var(--background);color:var(--color)}:host(.ion-color){color:var(--ion-color-base)}a{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit}";export{f as ion_route,d as ion_route_redirect,P as ion_router,T as ion_router_link}