@ionic/core 8.3.1-dev.11726172907.15a1af41 → 8.3.1-dev.11726258029.1014159b
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.
- package/components/animation.js +1 -1
- package/components/button.js +2 -1
- package/components/capacitor.js +1 -1
- package/components/data.js +1 -1
- package/components/focus-visible.js +1 -8
- package/components/hardware-back-button.js +115 -0
- package/components/index2.js +2 -1
- package/components/index4.js +4 -1
- package/components/index5.js +3 -27
- package/components/index6.js +20 -114
- package/components/index7.js +27 -163
- package/components/index8.js +128 -0
- package/components/index9.js +167 -0
- package/components/input-shims.js +2 -2
- package/components/input.utils.js +2 -1
- package/components/ion-accordion-group.js +2 -1
- package/components/ion-accordion.js +1 -1
- package/components/ion-app.js +75 -6
- package/components/ion-back-button.js +1 -1
- package/components/ion-breadcrumb.js +1 -1
- package/components/ion-datetime-button.js +2 -1
- package/components/ion-datetime.js +3 -2
- package/components/ion-fab-button.js +1 -1
- package/components/ion-footer.js +1 -1
- package/components/ion-header.js +1 -1
- package/components/ion-infinite-scroll.js +1 -1
- package/components/ion-input-password-toggle.js +3 -2
- package/components/ion-input.js +1 -1
- package/components/ion-item-sliding.js +1 -1
- package/components/ion-menu-button.js +1 -1
- package/components/ion-menu.js +2 -1
- package/components/ion-modal.js +4 -2
- package/components/ion-nav.js +2 -1
- package/components/ion-picker-legacy.js +2 -1
- package/components/ion-range.js +3 -2
- package/components/ion-refresher-content.js +1 -1
- package/components/ion-refresher.js +1 -1
- package/components/ion-reorder-group.js +1 -1
- package/components/ion-reorder.js +1 -1
- package/components/ion-searchbar.js +1 -1
- package/components/ion-select.js +1 -1
- package/components/ion-toast.js +3 -1
- package/components/ion-toggle.js +1 -1
- package/components/ionic-global.js +2 -219
- package/components/item.js +1 -1
- package/components/keyboard-controller.js +1 -1
- package/components/notch-controller.js +1 -1
- package/components/overlays.js +4 -1
- package/components/picker-column.js +2 -1
- package/components/popover.js +2 -1
- package/components/status-tap.js +1 -1
- package/dist/cjs/{animation-f43e6366.js → animation-b4fdf128.js} +2 -2
- package/dist/cjs/{app-globals-aa7aec45.js → app-globals-9d795e44.js} +1 -1
- package/dist/cjs/{button-active-1164881e.js → button-active-4115dc12.js} +2 -2
- package/dist/cjs/{capacitor-094870c0.js → capacitor-c04564bf.js} +3 -3
- package/dist/cjs/{data-c6182804.js → data-21dc0f81.js} +3 -3
- package/dist/cjs/{focus-visible-ca81ce81.js → focus-visible-7a0ce04f.js} +0 -8
- package/dist/cjs/{haptic-188baa8e.js → haptic-f6b37aa3.js} +1 -1
- package/dist/cjs/hardware-back-button-35a9ebdb.js +122 -0
- package/dist/cjs/{index-afc28d19.js → index-248835d7.js} +9 -6
- package/dist/cjs/{index-b9e25ecd.js → index-42dd5e74.js} +8 -2
- package/dist/cjs/{index-23381b18.js → index-44dacdce.js} +8 -7
- package/dist/cjs/index-5915f9b3.js +38 -0
- package/dist/cjs/{index-b3550209.js → index-5b6a7459.js} +2 -2
- package/dist/cjs/{index-60f4c4b4.js → index-9509ecad.js} +6 -7
- package/dist/cjs/index-c8d52405.js +10 -0
- package/dist/cjs/index.cjs.js +11 -8
- package/dist/cjs/{input-shims-833981ee.js → input-shims-9e59ef62.js} +16 -16
- package/dist/cjs/{input.utils-a4020823.js → input.utils-611cde0b.js} +4 -3
- package/dist/cjs/ion-accordion_2.cjs.entry.js +4 -3
- package/dist/cjs/ion-action-sheet.cjs.entry.js +10 -7
- package/dist/cjs/ion-alert.cjs.entry.js +10 -7
- package/dist/cjs/ion-app_8.cjs.entry.js +91 -21
- package/dist/cjs/ion-avatar_3.cjs.entry.js +2 -2
- package/dist/cjs/ion-back-button.cjs.entry.js +2 -2
- package/dist/cjs/ion-backdrop.cjs.entry.js +2 -2
- package/dist/cjs/ion-breadcrumb_2.cjs.entry.js +2 -2
- package/dist/cjs/ion-button_2.cjs.entry.js +6 -5
- package/dist/cjs/ion-card_5.cjs.entry.js +2 -2
- package/dist/cjs/ion-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/ion-chip.cjs.entry.js +2 -2
- package/dist/cjs/ion-col_3.cjs.entry.js +2 -2
- package/dist/cjs/ion-datetime-button.cjs.entry.js +8 -7
- package/dist/cjs/ion-datetime_3.cjs.entry.js +97 -94
- package/dist/cjs/ion-fab_3.cjs.entry.js +2 -2
- package/dist/cjs/ion-img.cjs.entry.js +2 -2
- package/dist/cjs/ion-infinite-scroll_2.cjs.entry.js +4 -3
- package/dist/cjs/ion-input-password-toggle.cjs.entry.js +8 -7
- package/dist/cjs/ion-input.cjs.entry.js +6 -4
- package/dist/cjs/ion-item-option_3.cjs.entry.js +4 -3
- package/dist/cjs/ion-item_8.cjs.entry.js +2 -2
- package/dist/cjs/ion-loading.cjs.entry.js +7 -4
- package/dist/cjs/ion-menu_3.cjs.entry.js +9 -6
- package/dist/cjs/ion-modal.cjs.entry.js +50 -47
- package/dist/cjs/ion-nav_2.cjs.entry.js +4 -3
- package/dist/cjs/ion-picker-column-option.cjs.entry.js +2 -2
- package/dist/cjs/ion-picker-column.cjs.entry.js +6 -5
- package/dist/cjs/ion-picker.cjs.entry.js +1 -1
- package/dist/cjs/ion-popover.cjs.entry.js +11 -8
- package/dist/cjs/ion-progress-bar.cjs.entry.js +2 -2
- package/dist/cjs/ion-radio_2.cjs.entry.js +2 -2
- package/dist/cjs/ion-range.cjs.entry.js +9 -8
- package/dist/cjs/ion-refresher_2.cjs.entry.js +8 -6
- package/dist/cjs/ion-reorder_2.cjs.entry.js +7 -5
- package/dist/cjs/ion-ripple-effect.cjs.entry.js +2 -2
- package/dist/cjs/ion-route_4.cjs.entry.js +2 -2
- package/dist/cjs/ion-searchbar.cjs.entry.js +2 -2
- package/dist/cjs/ion-segment_2.cjs.entry.js +2 -2
- package/dist/cjs/ion-select_3.cjs.entry.js +7 -4
- package/dist/cjs/ion-spinner.cjs.entry.js +2 -2
- package/dist/cjs/ion-split-pane.cjs.entry.js +2 -2
- package/dist/cjs/ion-tab-bar_2.cjs.entry.js +6 -5
- package/dist/cjs/ion-tab_2.cjs.entry.js +1 -1
- package/dist/cjs/ion-text.cjs.entry.js +2 -2
- package/dist/cjs/ion-textarea.cjs.entry.js +6 -4
- package/dist/cjs/ion-toast.cjs.entry.js +32 -29
- package/dist/cjs/ion-toggle.cjs.entry.js +5 -4
- package/dist/cjs/ionic-global-2fc6b860.js +237 -0
- package/dist/cjs/ionic.cjs.js +4 -4
- package/dist/cjs/{ios.transition-dac99bf0.js → ios.transition-c28ff3cc.js} +6 -4
- package/dist/cjs/{keyboard-6d170faf.js → keyboard-0272231f.js} +1 -1
- package/dist/cjs/{keyboard-c79a662b.js → keyboard-af1bb365.js} +3 -4
- package/dist/cjs/{keyboard-controller-a6533765.js → keyboard-controller-c05e747a.js} +9 -9
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{md.transition-65b7c8b6.js → md.transition-01295b30.js} +6 -4
- package/dist/cjs/{notch-controller-b33a54ec.js → notch-controller-d69150f5.js} +3 -3
- package/dist/cjs/{overlays-44027b72.js → overlays-76ac42e7.js} +12 -9
- package/dist/cjs/{status-tap-643bbfa4.js → status-tap-75c3a35d.js} +3 -3
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/app/app.js +75 -5
- package/dist/collection/components/input/input.js +1 -1
- package/dist/collection/components/searchbar/searchbar.js +1 -1
- package/dist/collection/global/ionic-global.js +1 -70
- package/dist/collection/utils/focus-visible.js +0 -7
- package/dist/docs.json +109 -109
- package/dist/esm/{animation-840e1209.js → animation-eab5a4ca.js} +1 -1
- package/dist/esm/{app-globals-537d56c1.js → app-globals-cef8aa6d.js} +1 -1
- package/dist/esm/{button-active-dba2328e.js → button-active-6700b8ee.js} +2 -2
- package/dist/esm/{capacitor-fcd09564.js → capacitor-59395cbd.js} +1 -1
- package/dist/esm/{data-8389220e.js → data-ae11fd43.js} +1 -1
- package/dist/esm/{focus-visible-b960316e.js → focus-visible-dd40d69f.js} +1 -8
- package/dist/esm/{haptic-6d16c679.js → haptic-ac164e4c.js} +1 -1
- package/dist/esm/hardware-back-button-3dd2cf5a.js +116 -0
- package/dist/esm/{index-4e02bb5d.js → index-3ed04e6d.js} +8 -2
- package/dist/esm/{index-a4bd9891.js → index-42907296.js} +5 -4
- package/dist/esm/{index-40662748.js → index-5cc724f3.js} +1 -1
- package/dist/esm/{index-3f9b7dcc.js → index-79b30591.js} +1 -2
- package/dist/esm/index-9b0d46f4.js +34 -0
- package/dist/esm/index-a5d50daf.js +7 -0
- package/dist/esm/{index-07e10d19.js → index-deb1a83e.js} +5 -2
- package/dist/esm/index.js +11 -8
- package/dist/esm/{input-shims-d4681aea.js → input-shims-0314bbe5.js} +5 -5
- package/dist/esm/{input.utils-c7e363b4.js → input.utils-09c71bc7.js} +2 -1
- package/dist/esm/ion-accordion_2.entry.js +3 -2
- package/dist/esm/ion-action-sheet.entry.js +10 -7
- package/dist/esm/ion-alert.entry.js +10 -7
- package/dist/esm/ion-app_8.entry.js +81 -11
- package/dist/esm/ion-avatar_3.entry.js +2 -2
- package/dist/esm/ion-back-button.entry.js +2 -2
- package/dist/esm/ion-backdrop.entry.js +2 -2
- package/dist/esm/ion-breadcrumb_2.entry.js +2 -2
- package/dist/esm/ion-button_2.entry.js +3 -2
- package/dist/esm/ion-card_5.entry.js +2 -2
- package/dist/esm/ion-checkbox.entry.js +2 -2
- package/dist/esm/ion-chip.entry.js +2 -2
- package/dist/esm/ion-col_3.entry.js +2 -2
- package/dist/esm/ion-datetime-button.entry.js +4 -3
- package/dist/esm/ion-datetime_3.entry.js +11 -8
- package/dist/esm/ion-fab_3.entry.js +2 -2
- package/dist/esm/ion-img.entry.js +2 -2
- package/dist/esm/ion-infinite-scroll_2.entry.js +4 -3
- package/dist/esm/ion-input-password-toggle.entry.js +3 -2
- package/dist/esm/ion-input.entry.js +6 -4
- package/dist/esm/ion-item-option_3.entry.js +4 -3
- package/dist/esm/ion-item_8.entry.js +2 -2
- package/dist/esm/ion-loading.entry.js +7 -4
- package/dist/esm/ion-menu_3.entry.js +8 -5
- package/dist/esm/ion-modal.entry.js +12 -9
- package/dist/esm/ion-nav_2.entry.js +4 -3
- package/dist/esm/ion-picker-column-option.entry.js +2 -2
- package/dist/esm/ion-picker-column.entry.js +5 -4
- package/dist/esm/ion-picker.entry.js +1 -1
- package/dist/esm/ion-popover.entry.js +8 -5
- package/dist/esm/ion-progress-bar.entry.js +2 -2
- package/dist/esm/ion-radio_2.entry.js +2 -2
- package/dist/esm/ion-range.entry.js +4 -3
- package/dist/esm/ion-refresher_2.entry.js +8 -6
- package/dist/esm/ion-reorder_2.entry.js +7 -5
- package/dist/esm/ion-ripple-effect.entry.js +2 -2
- package/dist/esm/ion-route_4.entry.js +2 -2
- package/dist/esm/ion-searchbar.entry.js +2 -2
- package/dist/esm/ion-segment_2.entry.js +2 -2
- package/dist/esm/ion-select_3.entry.js +7 -4
- package/dist/esm/ion-spinner.entry.js +2 -2
- package/dist/esm/ion-split-pane.entry.js +2 -2
- package/dist/esm/ion-tab-bar_2.entry.js +6 -5
- package/dist/esm/ion-tab_2.entry.js +1 -1
- package/dist/esm/ion-text.entry.js +2 -2
- package/dist/esm/ion-textarea.entry.js +6 -4
- package/dist/esm/ion-toast.entry.js +7 -4
- package/dist/esm/ion-toggle.entry.js +5 -4
- package/dist/esm/ionic-global-aba82484.js +231 -0
- package/dist/esm/ionic.js +5 -5
- package/dist/esm/{ios.transition-e50705d1.js → ios.transition-903646a5.js} +6 -4
- package/dist/esm/{keyboard-630cb801.js → keyboard-52278bd7.js} +3 -4
- package/dist/esm/{keyboard-f89a5eae.js → keyboard-73175e24.js} +1 -1
- package/dist/esm/{keyboard-controller-00b92ab3.js → keyboard-controller-ec5c2bfa.js} +2 -2
- package/dist/esm/loader.js +4 -4
- package/dist/esm/{md.transition-58674b20.js → md.transition-92c7f8a6.js} +6 -4
- package/dist/esm/{notch-controller-e45ab374.js → notch-controller-55b09e11.js} +1 -1
- package/dist/esm/{overlays-a2dfa4a7.js → overlays-d1a2f8a8.js} +4 -1
- package/dist/esm/{status-tap-a9f0d61d.js → status-tap-97e323a9.js} +3 -3
- package/dist/esm-es5/animation-eab5a4ca.js +4 -0
- package/dist/esm-es5/app-globals-cef8aa6d.js +4 -0
- package/dist/esm-es5/{button-active-dba2328e.js → button-active-6700b8ee.js} +1 -1
- package/dist/esm-es5/capacitor-59395cbd.js +4 -0
- package/dist/esm-es5/data-ae11fd43.js +4 -0
- package/dist/esm-es5/focus-visible-dd40d69f.js +4 -0
- package/dist/esm-es5/{haptic-6d16c679.js → haptic-ac164e4c.js} +1 -1
- package/dist/esm-es5/hardware-back-button-3dd2cf5a.js +4 -0
- package/dist/esm-es5/index-3ed04e6d.js +5 -0
- package/dist/esm-es5/index-42907296.js +4 -0
- package/dist/esm-es5/index-5cc724f3.js +4 -0
- package/dist/esm-es5/index-79b30591.js +4 -0
- package/dist/esm-es5/index-9b0d46f4.js +4 -0
- package/dist/esm-es5/index-a5d50daf.js +4 -0
- package/dist/esm-es5/index-deb1a83e.js +4 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/input-shims-0314bbe5.js +4 -0
- package/dist/esm-es5/input.utils-09c71bc7.js +4 -0
- package/dist/esm-es5/ion-accordion_2.entry.js +1 -1
- package/dist/esm-es5/ion-action-sheet.entry.js +1 -1
- package/dist/esm-es5/ion-alert.entry.js +1 -1
- package/dist/esm-es5/ion-app_8.entry.js +1 -1
- package/dist/esm-es5/ion-avatar_3.entry.js +1 -1
- package/dist/esm-es5/ion-back-button.entry.js +1 -1
- package/dist/esm-es5/ion-backdrop.entry.js +1 -1
- package/dist/esm-es5/ion-breadcrumb_2.entry.js +1 -1
- package/dist/esm-es5/ion-button_2.entry.js +1 -1
- package/dist/esm-es5/ion-card_5.entry.js +1 -1
- package/dist/esm-es5/ion-checkbox.entry.js +1 -1
- package/dist/esm-es5/ion-chip.entry.js +1 -1
- package/dist/esm-es5/ion-col_3.entry.js +1 -1
- package/dist/esm-es5/ion-datetime-button.entry.js +1 -1
- package/dist/esm-es5/ion-datetime_3.entry.js +1 -1
- package/dist/esm-es5/ion-fab_3.entry.js +1 -1
- package/dist/esm-es5/ion-img.entry.js +1 -1
- package/dist/esm-es5/ion-infinite-scroll_2.entry.js +1 -1
- package/dist/esm-es5/ion-input-password-toggle.entry.js +1 -1
- package/dist/esm-es5/ion-input.entry.js +1 -1
- package/dist/esm-es5/ion-item-option_3.entry.js +1 -1
- package/dist/esm-es5/ion-item_8.entry.js +1 -1
- package/dist/esm-es5/ion-loading.entry.js +1 -1
- package/dist/esm-es5/ion-menu_3.entry.js +1 -1
- package/dist/esm-es5/ion-modal.entry.js +1 -1
- package/dist/esm-es5/ion-nav_2.entry.js +1 -1
- package/dist/esm-es5/ion-picker-column-option.entry.js +1 -1
- package/dist/esm-es5/ion-picker-column.entry.js +1 -1
- package/dist/esm-es5/ion-picker.entry.js +1 -1
- package/dist/esm-es5/ion-popover.entry.js +1 -1
- package/dist/esm-es5/ion-progress-bar.entry.js +1 -1
- package/dist/esm-es5/ion-radio_2.entry.js +1 -1
- package/dist/esm-es5/ion-range.entry.js +1 -1
- package/dist/esm-es5/ion-refresher_2.entry.js +1 -1
- package/dist/esm-es5/ion-reorder_2.entry.js +1 -1
- package/dist/esm-es5/ion-ripple-effect.entry.js +1 -1
- package/dist/esm-es5/ion-route_4.entry.js +1 -1
- package/dist/esm-es5/ion-searchbar.entry.js +1 -1
- package/dist/esm-es5/ion-segment_2.entry.js +1 -1
- package/dist/esm-es5/ion-select_3.entry.js +1 -1
- package/dist/esm-es5/ion-spinner.entry.js +1 -1
- package/dist/esm-es5/ion-split-pane.entry.js +1 -1
- package/dist/esm-es5/ion-tab-bar_2.entry.js +1 -1
- package/dist/esm-es5/ion-tab_2.entry.js +1 -1
- package/dist/esm-es5/ion-text.entry.js +1 -1
- package/dist/esm-es5/ion-textarea.entry.js +1 -1
- package/dist/esm-es5/ion-toast.entry.js +1 -1
- package/dist/esm-es5/ion-toggle.entry.js +1 -1
- package/dist/esm-es5/ionic-global-aba82484.js +4 -0
- package/dist/esm-es5/ionic.js +1 -1
- package/dist/esm-es5/ios.transition-903646a5.js +4 -0
- package/dist/esm-es5/keyboard-52278bd7.js +4 -0
- package/dist/esm-es5/{keyboard-f89a5eae.js → keyboard-73175e24.js} +1 -1
- package/dist/esm-es5/keyboard-controller-ec5c2bfa.js +4 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/md.transition-92c7f8a6.js +4 -0
- package/dist/esm-es5/notch-controller-55b09e11.js +4 -0
- package/dist/esm-es5/overlays-d1a2f8a8.js +4 -0
- package/dist/esm-es5/status-tap-97e323a9.js +4 -0
- package/dist/html.html-data.json +102 -102
- package/dist/ionic/index.esm.js +1 -1
- package/dist/ionic/ionic.esm.js +1 -1
- package/dist/ionic/ionic.js +1 -1
- package/dist/ionic/p-0047371d.system.entry.js +4 -0
- package/dist/ionic/p-019fe44c.system.entry.js +4 -0
- package/dist/ionic/p-05399319.entry.js +4 -0
- package/dist/ionic/{p-de6fd4fb.system.entry.js → p-067db520.system.entry.js} +1 -1
- package/dist/ionic/{p-47c92e81.js → p-06e58c4e.js} +1 -1
- package/dist/ionic/p-06fee233.js +4 -0
- package/dist/ionic/p-0956b807.system.entry.js +4 -0
- package/dist/ionic/{p-6418a407.system.entry.js → p-0b2cb317.system.entry.js} +1 -1
- package/dist/ionic/p-0b61b67e.system.js +4 -0
- package/dist/ionic/p-0bfdb16f.system.js +4 -0
- package/dist/ionic/p-0c06e09b.system.js +4 -0
- package/dist/ionic/p-0dc1d769.entry.js +4 -0
- package/dist/ionic/p-0f9c24fe.system.js +4 -0
- package/dist/ionic/{p-3ef8ff43.entry.js → p-1350a9c2.entry.js} +1 -1
- package/dist/ionic/p-14616c10.system.entry.js +4 -0
- package/dist/ionic/p-149da974.system.js +4 -0
- package/dist/ionic/{p-ddd6d918.entry.js → p-16b7cfc2.entry.js} +1 -1
- package/dist/ionic/p-192e07b1.system.entry.js +4 -0
- package/dist/ionic/{p-00c9cfa0.entry.js → p-1955f63a.entry.js} +1 -1
- package/dist/ionic/{p-eae596b8.system.js → p-19ea7bff.system.js} +1 -1
- package/dist/ionic/p-1ca23ae9.system.entry.js +4 -0
- package/dist/ionic/{p-ad4a3c01.system.js → p-1d524f20.system.js} +1 -1
- package/dist/ionic/{p-6c810800.system.js → p-1dfc11b3.system.js} +1 -1
- package/dist/ionic/p-1e4371bd.js +4 -0
- package/dist/ionic/p-2067d815.system.entry.js +4 -0
- package/dist/ionic/p-2583e966.js +4 -0
- package/dist/ionic/p-263a3f91.system.js +4 -0
- package/dist/ionic/p-2690b1de.js +4 -0
- package/dist/ionic/{p-845c8117.js → p-27281edd.js} +1 -1
- package/dist/ionic/{p-3eca6ffb.entry.js → p-2b2a48ed.entry.js} +1 -1
- package/dist/ionic/p-2b7827c7.js +4 -0
- package/dist/ionic/{p-11cf4ee1.entry.js → p-2b87a770.entry.js} +1 -1
- package/dist/ionic/{p-c1c1b3c1.system.entry.js → p-2e2c1a93.system.entry.js} +1 -1
- package/dist/ionic/p-2e5ee828.system.entry.js +4 -0
- package/dist/ionic/p-2e6cf7f2.js +4 -0
- package/dist/ionic/{p-7f85fd7d.system.entry.js → p-2f244b7c.system.entry.js} +1 -1
- package/dist/ionic/{p-bc088eb6.system.js → p-30482ed4.system.js} +1 -1
- package/dist/ionic/{p-cc35239f.entry.js → p-33fb4e9d.entry.js} +1 -1
- package/dist/ionic/p-3447e604.system.entry.js +4 -0
- package/dist/ionic/{p-809941d0.js → p-34b11c24.js} +1 -1
- package/dist/ionic/{p-861785a6.entry.js → p-3b2c0ca4.entry.js} +1 -1
- package/dist/ionic/p-3c8001c7.system.entry.js +4 -0
- package/dist/ionic/{p-ca2083bc.system.entry.js → p-3e4a7bd8.system.entry.js} +1 -1
- package/dist/ionic/{p-39ed01f6.system.entry.js → p-40277321.system.entry.js} +1 -1
- package/dist/ionic/p-4029255b.system.entry.js +4 -0
- package/dist/ionic/{p-39166cd5.entry.js → p-4205a4d9.entry.js} +1 -1
- package/dist/ionic/p-428db536.entry.js +4 -0
- package/dist/ionic/p-42f9a951.system.entry.js +4 -0
- package/dist/ionic/{p-3657cf1a.system.entry.js → p-44d98be5.system.entry.js} +1 -1
- package/dist/ionic/p-46bac798.entry.js +4 -0
- package/dist/ionic/{p-765a2b13.system.entry.js → p-488bc4e4.system.entry.js} +1 -1
- package/dist/ionic/p-49c26aa9.entry.js +4 -0
- package/dist/ionic/p-4ad055dc.system.entry.js +4 -0
- package/dist/ionic/{p-8c13b08d.entry.js → p-4b1364c9.entry.js} +1 -1
- package/dist/ionic/{p-d52f8930.entry.js → p-4bd23b81.entry.js} +1 -1
- package/dist/ionic/p-4d81423b.entry.js +4 -0
- package/dist/ionic/p-4e7b0cee.entry.js +4 -0
- package/dist/ionic/p-4fe468c2.entry.js +4 -0
- package/dist/ionic/p-51ae8a06.system.entry.js +4 -0
- package/dist/ionic/{p-1c6bb45f.entry.js → p-51d30486.entry.js} +1 -1
- package/dist/ionic/{p-e4f401d7.entry.js → p-52c20808.entry.js} +1 -1
- package/dist/ionic/p-56435093.js +4 -0
- package/dist/ionic/{p-b6fbbe81.system.entry.js → p-57f94155.system.entry.js} +1 -1
- package/dist/ionic/p-59a394ad.system.js +5 -0
- package/dist/ionic/{p-b760b2fa.system.entry.js → p-59cda258.system.entry.js} +1 -1
- package/dist/ionic/{p-91459095.entry.js → p-5d43e642.entry.js} +1 -1
- package/dist/ionic/p-5d5d5073.entry.js +4 -0
- package/dist/ionic/p-5d6c0bf8.system.js +4 -0
- package/dist/ionic/{p-0bee79fc.system.entry.js → p-5d7ea80a.system.entry.js} +1 -1
- package/dist/ionic/p-5e94453a.entry.js +4 -0
- package/dist/ionic/{p-7cbcee2c.system.entry.js → p-5e97855d.system.entry.js} +1 -1
- package/dist/ionic/{p-5a0f3c6f.entry.js → p-5ef51d63.entry.js} +1 -1
- package/dist/ionic/p-600a4ea0.js +4 -0
- package/dist/ionic/p-62b04b4c.entry.js +4 -0
- package/dist/ionic/p-663fe7c8.system.entry.js +4 -0
- package/dist/ionic/p-68da7fc8.system.js +4 -0
- package/dist/ionic/{p-d7bd9057.system.entry.js → p-6bbad9e4.system.entry.js} +1 -1
- package/dist/ionic/p-6ca2a6af.entry.js +4 -0
- package/dist/ionic/p-6f465cce.js +4 -0
- package/dist/ionic/{p-21a0f452.entry.js → p-70325536.entry.js} +1 -1
- package/dist/ionic/p-714841be.system.js +4 -0
- package/dist/ionic/p-72812e99.js +4 -0
- package/dist/ionic/p-7414228b.js +5 -0
- package/dist/ionic/{p-00cbf542.entry.js → p-76bb8eb2.entry.js} +1 -1
- package/dist/ionic/p-792919fd.system.js +4 -0
- package/dist/ionic/p-7b30edcc.js +4 -0
- package/dist/ionic/p-7e07fb64.entry.js +4 -0
- package/dist/ionic/p-7e497250.system.entry.js +4 -0
- package/dist/ionic/{p-dab508d0.system.js → p-8985cdb6.system.js} +1 -1
- package/dist/ionic/{p-4525cc2f.js → p-89b61afc.js} +1 -1
- package/dist/ionic/{p-0a7a7ab9.entry.js → p-89bd4ed2.entry.js} +1 -1
- package/dist/ionic/{p-0476b3cc.system.js → p-9146695e.system.js} +1 -1
- package/dist/ionic/{p-444c76ee.system.entry.js → p-91d713b7.system.entry.js} +1 -1
- package/dist/ionic/p-933e9e71.entry.js +4 -0
- package/dist/ionic/p-96cc4814.js +4 -0
- package/dist/ionic/{p-e00617fb.entry.js → p-99859f95.entry.js} +1 -1
- package/dist/ionic/{p-c9525721.system.js → p-9ea607bd.system.js} +2 -2
- package/dist/ionic/p-9f8740b2.entry.js +4 -0
- package/dist/ionic/p-a15ddedb.system.js +4 -0
- package/dist/ionic/p-a8775bf9.entry.js +4 -0
- package/dist/ionic/{p-abe01542.system.js → p-a93873de.system.js} +1 -1
- package/dist/ionic/p-abc5c0a4.system.entry.js +4 -0
- package/dist/ionic/p-abe101da.system.js +4 -0
- package/dist/ionic/p-aed9cc5b.entry.js +4 -0
- package/dist/ionic/{p-30c57db4.system.entry.js → p-aee3f804.system.entry.js} +1 -1
- package/dist/ionic/{p-5b6645a1.system.js → p-b06ac4a5.system.js} +1 -1
- package/dist/ionic/{p-eecf5384.system.entry.js → p-b2a2c6cf.system.entry.js} +1 -1
- package/dist/ionic/p-b69c1e65.system.entry.js +4 -0
- package/dist/ionic/p-b719790b.js +4 -0
- package/dist/ionic/{p-c0e7cab8.entry.js → p-b7836cec.entry.js} +1 -1
- package/dist/ionic/p-b8157bb5.system.entry.js +4 -0
- package/dist/ionic/p-bae531fb.system.entry.js +4 -0
- package/dist/ionic/{p-f41cce45.system.entry.js → p-bd9fd891.system.entry.js} +1 -1
- package/dist/ionic/{p-cf7d3a87.system.entry.js → p-c342dbdf.system.entry.js} +1 -1
- package/dist/ionic/p-c468af8a.system.js +4 -0
- package/dist/ionic/p-c57d792e.entry.js +4 -0
- package/dist/ionic/p-c61cc894.js +4 -0
- package/dist/ionic/{p-f3bc485f.system.entry.js → p-c76e43a2.system.entry.js} +1 -1
- package/dist/ionic/{p-60c38dee.js → p-c7e16491.js} +1 -1
- package/dist/ionic/p-c8e78b70.system.entry.js +4 -0
- package/dist/ionic/{p-cd6bd33e.entry.js → p-cb9da2a3.entry.js} +1 -1
- package/dist/ionic/p-cc3e2b52.entry.js +4 -0
- package/dist/ionic/{p-77cda5c7.entry.js → p-ce58e8e0.entry.js} +1 -1
- package/dist/ionic/p-d073ba84.entry.js +4 -0
- package/dist/ionic/p-d0f8d0aa.entry.js +4 -0
- package/dist/ionic/p-d47265c8.js +4 -0
- package/dist/ionic/{p-4ee57cf5.js → p-d60342e3.js} +1 -1
- package/dist/ionic/p-d65d9c9c.system.entry.js +4 -0
- package/dist/ionic/p-d6e463ee.system.entry.js +4 -0
- package/dist/ionic/{p-886a05f9.system.js → p-d75bce6a.system.js} +1 -1
- package/dist/ionic/p-d8ace0cb.entry.js +4 -0
- package/dist/ionic/p-d8dcfbf3.system.entry.js +4 -0
- package/dist/ionic/{p-84e08e08.system.entry.js → p-da5e7dbe.system.entry.js} +1 -1
- package/dist/ionic/{p-1253d402.entry.js → p-dc672c3a.entry.js} +1 -1
- package/dist/ionic/{p-9ced646a.system.js → p-dfb78785.system.js} +1 -1
- package/dist/ionic/p-e351e0e3.entry.js +4 -0
- package/dist/ionic/{p-2f8773b2.system.entry.js → p-e6e98f68.system.entry.js} +1 -1
- package/dist/ionic/{p-84030740.js → p-e8cc3bad.js} +1 -1
- package/dist/ionic/{p-9ea9eef2.entry.js → p-e9119176.entry.js} +1 -1
- package/dist/ionic/{p-d312edb3.system.entry.js → p-ed3f6648.system.entry.js} +1 -1
- package/dist/ionic/p-eec4b4ce.entry.js +4 -0
- package/dist/ionic/{p-aa037934.system.js → p-f08654ea.system.js} +1 -1
- package/dist/ionic/p-f22b3a75.js +4 -0
- package/dist/ionic/p-f367478b.js +4 -0
- package/dist/ionic/p-f36c9945.system.entry.js +4 -0
- package/dist/ionic/{p-8ff1e95d.system.js → p-f687573e.system.js} +1 -1
- package/dist/ionic/p-fc9b4e5a.entry.js +4 -0
- package/dist/ionic/{p-6a95a932.system.entry.js → p-fdfa74cc.system.entry.js} +1 -1
- package/dist/ionic/p-fec56d82.js +4 -0
- package/dist/ionic/p-ff4b7e40.system.js +4 -0
- package/dist/types/components/app/app.d.ts +2 -0
- package/dist/types/global/ionic-global.d.ts +0 -2
- package/dist/types/stencil-public-runtime.d.ts +4 -0
- package/dist/types/utils/focus-visible.d.ts +0 -1
- package/hydrate/index.d.ts +6 -0
- package/hydrate/index.js +502 -372
- package/hydrate/index.mjs +502 -372
- package/package.json +2 -2
- package/dist/cjs/ionic-global-4503ea83.js +0 -462
- package/dist/esm/ionic-global-b1979612.js +0 -448
- package/dist/esm-es5/animation-840e1209.js +0 -4
- package/dist/esm-es5/app-globals-537d56c1.js +0 -4
- package/dist/esm-es5/capacitor-fcd09564.js +0 -4
- package/dist/esm-es5/data-8389220e.js +0 -4
- package/dist/esm-es5/focus-visible-b960316e.js +0 -4
- package/dist/esm-es5/index-07e10d19.js +0 -4
- package/dist/esm-es5/index-3f9b7dcc.js +0 -4
- package/dist/esm-es5/index-40662748.js +0 -4
- package/dist/esm-es5/index-4e02bb5d.js +0 -5
- package/dist/esm-es5/index-a4bd9891.js +0 -4
- package/dist/esm-es5/input-shims-d4681aea.js +0 -4
- package/dist/esm-es5/input.utils-c7e363b4.js +0 -4
- package/dist/esm-es5/ionic-global-b1979612.js +0 -4
- package/dist/esm-es5/ios.transition-e50705d1.js +0 -4
- package/dist/esm-es5/keyboard-630cb801.js +0 -4
- package/dist/esm-es5/keyboard-controller-00b92ab3.js +0 -4
- package/dist/esm-es5/md.transition-58674b20.js +0 -4
- package/dist/esm-es5/notch-controller-e45ab374.js +0 -4
- package/dist/esm-es5/overlays-a2dfa4a7.js +0 -4
- package/dist/esm-es5/status-tap-a9f0d61d.js +0 -4
- package/dist/ionic/p-01b0e865.system.js +0 -4
- package/dist/ionic/p-073dacf3.entry.js +0 -4
- package/dist/ionic/p-07e807fb.js +0 -4
- package/dist/ionic/p-0a31c7b9.system.entry.js +0 -4
- package/dist/ionic/p-0f1ba402.entry.js +0 -4
- package/dist/ionic/p-16917861.system.js +0 -4
- package/dist/ionic/p-179c573b.system.entry.js +0 -4
- package/dist/ionic/p-20ffa318.entry.js +0 -4
- package/dist/ionic/p-23889fd8.entry.js +0 -4
- package/dist/ionic/p-25a2d298.js +0 -4
- package/dist/ionic/p-28b059c3.system.entry.js +0 -4
- package/dist/ionic/p-2d8341d0.system.js +0 -4
- package/dist/ionic/p-2f2fd67f.entry.js +0 -4
- package/dist/ionic/p-31f1eb81.entry.js +0 -4
- package/dist/ionic/p-37fbd57a.system.entry.js +0 -4
- package/dist/ionic/p-4175803c.system.js +0 -4
- package/dist/ionic/p-41ec2afd.entry.js +0 -4
- package/dist/ionic/p-460070eb.system.js +0 -4
- package/dist/ionic/p-466434d4.system.js +0 -4
- package/dist/ionic/p-46db4410.system.entry.js +0 -4
- package/dist/ionic/p-480cfc61.entry.js +0 -4
- package/dist/ionic/p-487a3ae7.system.js +0 -5
- package/dist/ionic/p-4a274d8d.entry.js +0 -4
- package/dist/ionic/p-4b528ed3.js +0 -5
- package/dist/ionic/p-4fbde654.js +0 -4
- package/dist/ionic/p-51b9d14a.js +0 -4
- package/dist/ionic/p-52371477.system.entry.js +0 -4
- package/dist/ionic/p-5328e386.system.entry.js +0 -4
- package/dist/ionic/p-57eb8bf5.entry.js +0 -4
- package/dist/ionic/p-58812aa8.system.entry.js +0 -4
- package/dist/ionic/p-5c456cd2.system.entry.js +0 -4
- package/dist/ionic/p-5e03c97e.system.entry.js +0 -4
- package/dist/ionic/p-5fb843ce.entry.js +0 -4
- package/dist/ionic/p-5fd711d1.entry.js +0 -4
- package/dist/ionic/p-67bb048a.system.entry.js +0 -4
- package/dist/ionic/p-69f80fd3.entry.js +0 -4
- package/dist/ionic/p-73216388.entry.js +0 -4
- package/dist/ionic/p-736d36fb.system.js +0 -4
- package/dist/ionic/p-73b45a64.entry.js +0 -4
- package/dist/ionic/p-7a86440f.entry.js +0 -4
- package/dist/ionic/p-82b38b14.system.js +0 -4
- package/dist/ionic/p-833104fe.system.entry.js +0 -4
- package/dist/ionic/p-86b6a057.system.entry.js +0 -4
- package/dist/ionic/p-877dee4e.system.entry.js +0 -4
- package/dist/ionic/p-902f1e0d.entry.js +0 -4
- package/dist/ionic/p-90b717c3.entry.js +0 -4
- package/dist/ionic/p-958d1ddf.entry.js +0 -4
- package/dist/ionic/p-9647f627.system.entry.js +0 -4
- package/dist/ionic/p-969bb0cd.system.entry.js +0 -4
- package/dist/ionic/p-98612ecd.system.entry.js +0 -4
- package/dist/ionic/p-99322726.js +0 -4
- package/dist/ionic/p-9a41931a.system.js +0 -4
- package/dist/ionic/p-9fa489bf.system.js +0 -4
- package/dist/ionic/p-9fb5d3f0.js +0 -4
- package/dist/ionic/p-a60688ea.system.entry.js +0 -4
- package/dist/ionic/p-a7c80b6e.js +0 -4
- package/dist/ionic/p-a97cc6e0.entry.js +0 -4
- package/dist/ionic/p-aa28a06a.system.entry.js +0 -4
- package/dist/ionic/p-ab51df52.js +0 -4
- package/dist/ionic/p-b84b226d.entry.js +0 -4
- package/dist/ionic/p-b95e719d.js +0 -4
- package/dist/ionic/p-b9d74da7.system.js +0 -4
- package/dist/ionic/p-bb816352.system.entry.js +0 -4
- package/dist/ionic/p-bc0d6e7d.system.entry.js +0 -4
- package/dist/ionic/p-bc60a88f.entry.js +0 -4
- package/dist/ionic/p-cf05bb26.entry.js +0 -4
- package/dist/ionic/p-d247bdc6.js +0 -4
- package/dist/ionic/p-d32dc2ca.system.entry.js +0 -4
- package/dist/ionic/p-df2f4a29.entry.js +0 -4
- package/dist/ionic/p-e079f4f4.system.entry.js +0 -4
- package/dist/ionic/p-e35fa668.js +0 -4
- package/dist/ionic/p-e44c11d0.entry.js +0 -4
- package/dist/ionic/p-e6867fc0.js +0 -4
- package/dist/ionic/p-efd6e0d2.system.entry.js +0 -4
- package/dist/ionic/p-f0e951e5.system.entry.js +0 -4
- package/dist/ionic/p-f4a57fb7.js +0 -4
- package/dist/ionic/p-f7f11c42.js +0 -4
- package/dist/ionic/p-f8234ebd.js +0 -4
package/hydrate/index.mjs
CHANGED
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { Readable } from 'stream';
|
|
5
5
|
|
|
6
|
+
const modeResolutionChain = [];
|
|
7
|
+
|
|
6
8
|
function hydrateFactory($stencilWindow, $stencilHydrateOpts, $stencilHydrateResults, $stencilAfterHydrate, $stencilHydrateResolve) {
|
|
7
9
|
var globalThis = $stencilWindow;
|
|
8
10
|
var self = $stencilWindow;
|
|
@@ -126,7 +128,7 @@ const NAMESPACE = 'ionic';
|
|
|
126
128
|
const BUILD = /* ionic */ { allRenderFn: false, appendChildSlotFix: false, asyncLoading: true, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: true, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: true, cmpWillUpdate: false, connectedCallback: true, constructableCSS: false, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: true, hostListenerTargetDocument: true, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: true, hydrateServerSide: true, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: true, mode: true, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: true, propString: true, reflect: true, scoped: true, scopedSlotTextContentFix: true, scriptDataOpts: false, shadowDelegatesFocus: true, shadowDom: true, shadowDomShim: true, slot: true, slotChildNodesFix: false, slotRelocation: true, state: true, style: true, svg: true, taskQueue: true, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: true, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: true, watchCallback: true };
|
|
127
129
|
|
|
128
130
|
/*
|
|
129
|
-
Stencil Hydrate Platform v4.21.0 | MIT Licensed | https://stenciljs.com
|
|
131
|
+
Stencil Hydrate Platform v4.21.0-dev.1726257631.b82b008 | MIT Licensed | https://stenciljs.com
|
|
130
132
|
*/
|
|
131
133
|
var __defProp = Object.defineProperty;
|
|
132
134
|
var __export = (target, all) => {
|
|
@@ -607,7 +609,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
607
609
|
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
608
610
|
if (styleContainerNode.nodeName === "HEAD") {
|
|
609
611
|
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
610
|
-
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling :
|
|
612
|
+
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
611
613
|
styleContainerNode.insertBefore(styleElm, referenceNode2);
|
|
612
614
|
} else if ("host" in styleContainerNode) {
|
|
613
615
|
styleContainerNode.prepend(styleElm);
|
|
@@ -2368,7 +2370,7 @@ var Build = {
|
|
|
2368
2370
|
isTesting: false
|
|
2369
2371
|
};
|
|
2370
2372
|
var styles = /* @__PURE__ */ new Map();
|
|
2371
|
-
|
|
2373
|
+
|
|
2372
2374
|
|
|
2373
2375
|
const transitionEndAsync = (el, expectedDuration = 0) => {
|
|
2374
2376
|
return new Promise((resolve) => {
|
|
@@ -2772,55 +2774,6 @@ class Config {
|
|
|
2772
2774
|
}
|
|
2773
2775
|
const config = /*@__PURE__*/ new Config();
|
|
2774
2776
|
|
|
2775
|
-
const win$1 = typeof window !== 'undefined' ? window : undefined;
|
|
2776
|
-
const doc = typeof document !== 'undefined' ? document : undefined;
|
|
2777
|
-
|
|
2778
|
-
/**
|
|
2779
|
-
* CloseWatcher is a newer API that lets
|
|
2780
|
-
* use detect the hardware back button event
|
|
2781
|
-
* in a web browser: https://caniuse.com/?search=closewatcher
|
|
2782
|
-
* However, not every browser supports it yet.
|
|
2783
|
-
*
|
|
2784
|
-
* This needs to be a function so that we can
|
|
2785
|
-
* check the config once it has been set.
|
|
2786
|
-
* Otherwise, this code would be evaluated the
|
|
2787
|
-
* moment this file is evaluated which could be
|
|
2788
|
-
* before the config is set.
|
|
2789
|
-
*/
|
|
2790
|
-
const shouldUseCloseWatcher = () => config.get('experimentalCloseWatcher', false) && win$1 !== undefined && 'CloseWatcher' in win$1;
|
|
2791
|
-
const OVERLAY_BACK_BUTTON_PRIORITY = 100;
|
|
2792
|
-
const MENU_BACK_BUTTON_PRIORITY = 99; // 1 less than overlay priority since menu is displayed behind overlays
|
|
2793
|
-
|
|
2794
|
-
/**
|
|
2795
|
-
* Logs a warning to the console with an Ionic prefix
|
|
2796
|
-
* to indicate the library that is warning the developer.
|
|
2797
|
-
*
|
|
2798
|
-
* @param message - The string message to be logged to the console.
|
|
2799
|
-
*/
|
|
2800
|
-
const printIonWarning = (message, ...params) => {
|
|
2801
|
-
return console.warn(`[Ionic Warning]: ${message}`, ...params);
|
|
2802
|
-
};
|
|
2803
|
-
/*
|
|
2804
|
-
* Logs an error to the console with an Ionic prefix
|
|
2805
|
-
* to indicate the library that is warning the developer.
|
|
2806
|
-
*
|
|
2807
|
-
* @param message - The string message to be logged to the console.
|
|
2808
|
-
* @param params - Additional arguments to supply to the console.error.
|
|
2809
|
-
*/
|
|
2810
|
-
const printIonError = (message, ...params) => {
|
|
2811
|
-
return console.error(`[Ionic Error]: ${message}`, ...params);
|
|
2812
|
-
};
|
|
2813
|
-
/**
|
|
2814
|
-
* Prints an error informing developers that an implementation requires an element to be used
|
|
2815
|
-
* within a specific selector.
|
|
2816
|
-
*
|
|
2817
|
-
* @param el The web component element this is requiring the element.
|
|
2818
|
-
* @param targetSelectors The selector or selectors that were not found.
|
|
2819
|
-
*/
|
|
2820
|
-
const printRequiredElementError = (el, ...targetSelectors) => {
|
|
2821
|
-
return console.error(`<${el.tagName.toLowerCase()}> must be used inside ${targetSelectors.join(' or ')}.`);
|
|
2822
|
-
};
|
|
2823
|
-
|
|
2824
2777
|
const getPlatforms = (win) => setupPlatforms(win);
|
|
2825
2778
|
const isPlatform = (winOrPlatform, platform) => {
|
|
2826
2779
|
if (typeof winOrPlatform === 'string') {
|
|
@@ -3261,6 +3214,36 @@ class Accordion {
|
|
|
3261
3214
|
}
|
|
3262
3215
|
let accordionIds = 0;
|
|
3263
3216
|
|
|
3217
|
+
/**
|
|
3218
|
+
* Logs a warning to the console with an Ionic prefix
|
|
3219
|
+
* to indicate the library that is warning the developer.
|
|
3220
|
+
*
|
|
3221
|
+
* @param message - The string message to be logged to the console.
|
|
3222
|
+
*/
|
|
3223
|
+
const printIonWarning = (message, ...params) => {
|
|
3224
|
+
return console.warn(`[Ionic Warning]: ${message}`, ...params);
|
|
3225
|
+
};
|
|
3226
|
+
/*
|
|
3227
|
+
* Logs an error to the console with an Ionic prefix
|
|
3228
|
+
* to indicate the library that is warning the developer.
|
|
3229
|
+
*
|
|
3230
|
+
* @param message - The string message to be logged to the console.
|
|
3231
|
+
* @param params - Additional arguments to supply to the console.error.
|
|
3232
|
+
*/
|
|
3233
|
+
const printIonError = (message, ...params) => {
|
|
3234
|
+
return console.error(`[Ionic Error]: ${message}`, ...params);
|
|
3235
|
+
};
|
|
3236
|
+
/**
|
|
3237
|
+
* Prints an error informing developers that an implementation requires an element to be used
|
|
3238
|
+
* within a specific selector.
|
|
3239
|
+
*
|
|
3240
|
+
* @param el The web component element this is requiring the element.
|
|
3241
|
+
* @param targetSelectors The selector or selectors that were not found.
|
|
3242
|
+
*/
|
|
3243
|
+
const printRequiredElementError = (el, ...targetSelectors) => {
|
|
3244
|
+
return console.error(`<${el.tagName.toLowerCase()}> must be used inside ${targetSelectors.join(' or ')}.`);
|
|
3245
|
+
};
|
|
3246
|
+
|
|
3264
3247
|
const accordionGroupIosCss = ":host{display:block}:host(.accordion-group-expand-inset){-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:16px;margin-bottom:16px}:host(.accordion-group-expand-inset) ::slotted(ion-accordion.accordion-expanding),:host(.accordion-group-expand-inset) ::slotted(ion-accordion.accordion-expanded){border-bottom:none}";
|
|
3265
3248
|
var IonAccordionGroupIosStyle0 = accordionGroupIosCss;
|
|
3266
3249
|
|
|
@@ -3499,6 +3482,9 @@ class AccordionGroup {
|
|
|
3499
3482
|
}; }
|
|
3500
3483
|
}
|
|
3501
3484
|
|
|
3485
|
+
const win$1 = typeof window !== 'undefined' ? window : undefined;
|
|
3486
|
+
const doc = typeof document !== 'undefined' ? document : undefined;
|
|
3487
|
+
|
|
3502
3488
|
const getCapacitor = () => {
|
|
3503
3489
|
if (win$1 !== undefined) {
|
|
3504
3490
|
return win$1.Capacitor;
|
|
@@ -4473,6 +4459,22 @@ const focusElementInContext = (hostToFocus, fallbackElement) => {
|
|
|
4473
4459
|
}
|
|
4474
4460
|
};
|
|
4475
4461
|
|
|
4462
|
+
/**
|
|
4463
|
+
* CloseWatcher is a newer API that lets
|
|
4464
|
+
* use detect the hardware back button event
|
|
4465
|
+
* in a web browser: https://caniuse.com/?search=closewatcher
|
|
4466
|
+
* However, not every browser supports it yet.
|
|
4467
|
+
*
|
|
4468
|
+
* This needs to be a function so that we can
|
|
4469
|
+
* check the config once it has been set.
|
|
4470
|
+
* Otherwise, this code would be evaluated the
|
|
4471
|
+
* moment this file is evaluated which could be
|
|
4472
|
+
* before the config is set.
|
|
4473
|
+
*/
|
|
4474
|
+
const shouldUseCloseWatcher = () => config.get('experimentalCloseWatcher', false) && win$1 !== undefined && 'CloseWatcher' in win$1;
|
|
4475
|
+
const OVERLAY_BACK_BUTTON_PRIORITY = 100;
|
|
4476
|
+
const MENU_BACK_BUTTON_PRIORITY = 99; // 1 less than overlay priority since menu is displayed behind overlays
|
|
4477
|
+
|
|
4476
4478
|
// TODO(FW-2832): types
|
|
4477
4479
|
const attachComponent = async (delegate, container, component, cssClasses, componentProps, inline) => {
|
|
4478
4480
|
var _a;
|
|
@@ -7297,84 +7299,6 @@ const buttonClass$2 = (button) => {
|
|
|
7297
7299
|
return Object.assign({ 'alert-button': true, 'ion-focusable': true, 'ion-activatable': true, [`alert-button-role-${button.role}`]: button.role !== undefined }, getClassMap(button.cssClass));
|
|
7298
7300
|
};
|
|
7299
7301
|
|
|
7300
|
-
const ION_FOCUSED = 'ion-focused';
|
|
7301
|
-
const ION_FOCUSABLE = 'ion-focusable';
|
|
7302
|
-
const FOCUS_KEYS = [
|
|
7303
|
-
'Tab',
|
|
7304
|
-
'ArrowDown',
|
|
7305
|
-
'Space',
|
|
7306
|
-
'Escape',
|
|
7307
|
-
' ',
|
|
7308
|
-
'Shift',
|
|
7309
|
-
'Enter',
|
|
7310
|
-
'ArrowLeft',
|
|
7311
|
-
'ArrowRight',
|
|
7312
|
-
'ArrowUp',
|
|
7313
|
-
'Home',
|
|
7314
|
-
'End',
|
|
7315
|
-
];
|
|
7316
|
-
let focusVisibleUtility = null;
|
|
7317
|
-
const initFocusVisibleUtility = () => {
|
|
7318
|
-
if (!focusVisibleUtility) {
|
|
7319
|
-
focusVisibleUtility = startFocusVisible();
|
|
7320
|
-
}
|
|
7321
|
-
return focusVisibleUtility;
|
|
7322
|
-
};
|
|
7323
|
-
const startFocusVisible = (rootEl) => {
|
|
7324
|
-
let currentFocus = [];
|
|
7325
|
-
let keyboardMode = true;
|
|
7326
|
-
const ref = rootEl ? rootEl.shadowRoot : document;
|
|
7327
|
-
const root = rootEl ? rootEl : document.body;
|
|
7328
|
-
const setFocus = (elements) => {
|
|
7329
|
-
currentFocus.forEach((el) => el.classList.remove(ION_FOCUSED));
|
|
7330
|
-
elements.forEach((el) => el.classList.add(ION_FOCUSED));
|
|
7331
|
-
currentFocus = elements;
|
|
7332
|
-
};
|
|
7333
|
-
const pointerDown = () => {
|
|
7334
|
-
keyboardMode = false;
|
|
7335
|
-
setFocus([]);
|
|
7336
|
-
};
|
|
7337
|
-
const onKeydown = (ev) => {
|
|
7338
|
-
keyboardMode = FOCUS_KEYS.includes(ev.key);
|
|
7339
|
-
if (!keyboardMode) {
|
|
7340
|
-
setFocus([]);
|
|
7341
|
-
}
|
|
7342
|
-
};
|
|
7343
|
-
const onFocusin = (ev) => {
|
|
7344
|
-
if (keyboardMode && ev.composedPath !== undefined) {
|
|
7345
|
-
const toFocus = ev.composedPath().filter((el) => {
|
|
7346
|
-
// TODO(FW-2832): type
|
|
7347
|
-
if (el.classList) {
|
|
7348
|
-
return el.classList.contains(ION_FOCUSABLE);
|
|
7349
|
-
}
|
|
7350
|
-
return false;
|
|
7351
|
-
});
|
|
7352
|
-
setFocus(toFocus);
|
|
7353
|
-
}
|
|
7354
|
-
};
|
|
7355
|
-
const onFocusout = () => {
|
|
7356
|
-
if (ref.activeElement === root) {
|
|
7357
|
-
setFocus([]);
|
|
7358
|
-
}
|
|
7359
|
-
};
|
|
7360
|
-
ref.addEventListener('keydown', onKeydown);
|
|
7361
|
-
ref.addEventListener('focusin', onFocusin);
|
|
7362
|
-
ref.addEventListener('focusout', onFocusout);
|
|
7363
|
-
ref.addEventListener('touchstart', pointerDown, { passive: true });
|
|
7364
|
-
ref.addEventListener('mousedown', pointerDown);
|
|
7365
|
-
const destroy = () => {
|
|
7366
|
-
ref.removeEventListener('keydown', onKeydown);
|
|
7367
|
-
ref.removeEventListener('focusin', onFocusin);
|
|
7368
|
-
ref.removeEventListener('focusout', onFocusout);
|
|
7369
|
-
ref.removeEventListener('touchstart', pointerDown);
|
|
7370
|
-
ref.removeEventListener('mousedown', pointerDown);
|
|
7371
|
-
};
|
|
7372
|
-
return {
|
|
7373
|
-
destroy,
|
|
7374
|
-
setFocus,
|
|
7375
|
-
};
|
|
7376
|
-
};
|
|
7377
|
-
|
|
7378
7302
|
const appCss = "html.plt-mobile ion-app{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}html.plt-mobile ion-app [contenteditable]{-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}ion-app.force-statusbar-padding{--ion-safe-area-top:20px}";
|
|
7379
7303
|
var IonAppStyle0 = appCss;
|
|
7380
7304
|
|
|
@@ -7382,6 +7306,8 @@ class App {
|
|
|
7382
7306
|
constructor(hostRef) {
|
|
7383
7307
|
registerInstance(this, hostRef);
|
|
7384
7308
|
}
|
|
7309
|
+
componentDidLoad() {
|
|
7310
|
+
}
|
|
7385
7311
|
/**
|
|
7386
7312
|
* @internal
|
|
7387
7313
|
* Used to set focus on an element that uses `ion-focusable`.
|
|
@@ -7393,12 +7319,13 @@ class App {
|
|
|
7393
7319
|
* presented as a result of keyboard action.)
|
|
7394
7320
|
*/
|
|
7395
7321
|
async setFocus(elements) {
|
|
7396
|
-
|
|
7397
|
-
|
|
7322
|
+
if (this.focusVisible) {
|
|
7323
|
+
this.focusVisible.setFocus(elements);
|
|
7324
|
+
}
|
|
7398
7325
|
}
|
|
7399
7326
|
render() {
|
|
7400
7327
|
const mode = getIonMode$1(this);
|
|
7401
|
-
return (hAsync(Host, { key: '
|
|
7328
|
+
return (hAsync(Host, { key: 'a562850f242d9d45573e35efdd4bd178254677ef', class: {
|
|
7402
7329
|
[mode]: true,
|
|
7403
7330
|
'ion-page': true,
|
|
7404
7331
|
'force-statusbar-padding': config.getBoolean('_forceStatusbarPadding'),
|
|
@@ -9204,6 +9131,77 @@ const updateScrollDetail = (detail, el, timestamp, shouldStart) => {
|
|
|
9204
9131
|
}
|
|
9205
9132
|
};
|
|
9206
9133
|
|
|
9134
|
+
const ION_FOCUSED = 'ion-focused';
|
|
9135
|
+
const ION_FOCUSABLE = 'ion-focusable';
|
|
9136
|
+
const FOCUS_KEYS = [
|
|
9137
|
+
'Tab',
|
|
9138
|
+
'ArrowDown',
|
|
9139
|
+
'Space',
|
|
9140
|
+
'Escape',
|
|
9141
|
+
' ',
|
|
9142
|
+
'Shift',
|
|
9143
|
+
'Enter',
|
|
9144
|
+
'ArrowLeft',
|
|
9145
|
+
'ArrowRight',
|
|
9146
|
+
'ArrowUp',
|
|
9147
|
+
'Home',
|
|
9148
|
+
'End',
|
|
9149
|
+
];
|
|
9150
|
+
const startFocusVisible = (rootEl) => {
|
|
9151
|
+
let currentFocus = [];
|
|
9152
|
+
let keyboardMode = true;
|
|
9153
|
+
const ref = rootEl ? rootEl.shadowRoot : document;
|
|
9154
|
+
const root = rootEl ? rootEl : document.body;
|
|
9155
|
+
const setFocus = (elements) => {
|
|
9156
|
+
currentFocus.forEach((el) => el.classList.remove(ION_FOCUSED));
|
|
9157
|
+
elements.forEach((el) => el.classList.add(ION_FOCUSED));
|
|
9158
|
+
currentFocus = elements;
|
|
9159
|
+
};
|
|
9160
|
+
const pointerDown = () => {
|
|
9161
|
+
keyboardMode = false;
|
|
9162
|
+
setFocus([]);
|
|
9163
|
+
};
|
|
9164
|
+
const onKeydown = (ev) => {
|
|
9165
|
+
keyboardMode = FOCUS_KEYS.includes(ev.key);
|
|
9166
|
+
if (!keyboardMode) {
|
|
9167
|
+
setFocus([]);
|
|
9168
|
+
}
|
|
9169
|
+
};
|
|
9170
|
+
const onFocusin = (ev) => {
|
|
9171
|
+
if (keyboardMode && ev.composedPath !== undefined) {
|
|
9172
|
+
const toFocus = ev.composedPath().filter((el) => {
|
|
9173
|
+
// TODO(FW-2832): type
|
|
9174
|
+
if (el.classList) {
|
|
9175
|
+
return el.classList.contains(ION_FOCUSABLE);
|
|
9176
|
+
}
|
|
9177
|
+
return false;
|
|
9178
|
+
});
|
|
9179
|
+
setFocus(toFocus);
|
|
9180
|
+
}
|
|
9181
|
+
};
|
|
9182
|
+
const onFocusout = () => {
|
|
9183
|
+
if (ref.activeElement === root) {
|
|
9184
|
+
setFocus([]);
|
|
9185
|
+
}
|
|
9186
|
+
};
|
|
9187
|
+
ref.addEventListener('keydown', onKeydown);
|
|
9188
|
+
ref.addEventListener('focusin', onFocusin);
|
|
9189
|
+
ref.addEventListener('focusout', onFocusout);
|
|
9190
|
+
ref.addEventListener('touchstart', pointerDown, { passive: true });
|
|
9191
|
+
ref.addEventListener('mousedown', pointerDown);
|
|
9192
|
+
const destroy = () => {
|
|
9193
|
+
ref.removeEventListener('keydown', onKeydown);
|
|
9194
|
+
ref.removeEventListener('focusin', onFocusin);
|
|
9195
|
+
ref.removeEventListener('focusout', onFocusout);
|
|
9196
|
+
ref.removeEventListener('touchstart', pointerDown);
|
|
9197
|
+
ref.removeEventListener('mousedown', pointerDown);
|
|
9198
|
+
};
|
|
9199
|
+
return {
|
|
9200
|
+
destroy,
|
|
9201
|
+
setFocus,
|
|
9202
|
+
};
|
|
9203
|
+
};
|
|
9204
|
+
|
|
9207
9205
|
/**
|
|
9208
9206
|
* Returns true if the selected day is equal to the reference day
|
|
9209
9207
|
*/
|
|
@@ -33262,8 +33260,105 @@ exports.hydrateApp = hydrateApp;
|
|
|
33262
33260
|
hydrateAppClosure($stencilWindow);
|
|
33263
33261
|
}
|
|
33264
33262
|
|
|
33263
|
+
// src/app-data/index.ts
|
|
33264
|
+
var BUILD = {
|
|
33265
|
+
allRenderFn: false,
|
|
33266
|
+
cmpDidLoad: true,
|
|
33267
|
+
cmpDidUnload: false,
|
|
33268
|
+
cmpDidUpdate: true,
|
|
33269
|
+
cmpDidRender: true,
|
|
33270
|
+
cmpWillLoad: true,
|
|
33271
|
+
cmpWillUpdate: true,
|
|
33272
|
+
cmpWillRender: true,
|
|
33273
|
+
connectedCallback: true,
|
|
33274
|
+
disconnectedCallback: true,
|
|
33275
|
+
element: true,
|
|
33276
|
+
event: true,
|
|
33277
|
+
hasRenderFn: true,
|
|
33278
|
+
lifecycle: true,
|
|
33279
|
+
hostListener: true,
|
|
33280
|
+
hostListenerTargetWindow: true,
|
|
33281
|
+
hostListenerTargetDocument: true,
|
|
33282
|
+
hostListenerTargetBody: true,
|
|
33283
|
+
hostListenerTargetParent: false,
|
|
33284
|
+
hostListenerTarget: true,
|
|
33285
|
+
member: true,
|
|
33286
|
+
method: true,
|
|
33287
|
+
mode: true,
|
|
33288
|
+
observeAttribute: true,
|
|
33289
|
+
prop: true,
|
|
33290
|
+
propMutable: true,
|
|
33291
|
+
reflect: true,
|
|
33292
|
+
scoped: true,
|
|
33293
|
+
shadowDom: true,
|
|
33294
|
+
slot: true,
|
|
33295
|
+
cssAnnotations: true,
|
|
33296
|
+
state: true,
|
|
33297
|
+
style: true,
|
|
33298
|
+
formAssociated: false,
|
|
33299
|
+
svg: true,
|
|
33300
|
+
updatable: true,
|
|
33301
|
+
vdomAttribute: true,
|
|
33302
|
+
vdomXlink: true,
|
|
33303
|
+
vdomClass: true,
|
|
33304
|
+
vdomFunctional: true,
|
|
33305
|
+
vdomKey: true,
|
|
33306
|
+
vdomListener: true,
|
|
33307
|
+
vdomRef: true,
|
|
33308
|
+
vdomPropOrAttr: true,
|
|
33309
|
+
vdomRender: true,
|
|
33310
|
+
vdomStyle: true,
|
|
33311
|
+
vdomText: true,
|
|
33312
|
+
watchCallback: true,
|
|
33313
|
+
taskQueue: true,
|
|
33314
|
+
hotModuleReplacement: false,
|
|
33315
|
+
isDebug: false,
|
|
33316
|
+
isDev: false,
|
|
33317
|
+
isTesting: false,
|
|
33318
|
+
hydrateServerSide: false,
|
|
33319
|
+
hydrateClientSide: false,
|
|
33320
|
+
lifecycleDOMEvents: false,
|
|
33321
|
+
lazyLoad: false,
|
|
33322
|
+
profile: false,
|
|
33323
|
+
slotRelocation: true,
|
|
33324
|
+
// TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior
|
|
33325
|
+
appendChildSlotFix: false,
|
|
33326
|
+
// TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior
|
|
33327
|
+
cloneNodeFix: false,
|
|
33328
|
+
hydratedAttribute: false,
|
|
33329
|
+
hydratedClass: true,
|
|
33330
|
+
// TODO(STENCIL-1305): remove this option
|
|
33331
|
+
scriptDataOpts: false,
|
|
33332
|
+
// TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior
|
|
33333
|
+
scopedSlotTextContentFix: false,
|
|
33334
|
+
// TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
|
|
33335
|
+
shadowDomShim: false,
|
|
33336
|
+
// TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior
|
|
33337
|
+
slotChildNodesFix: false,
|
|
33338
|
+
invisiblePrehydration: true,
|
|
33339
|
+
propBoolean: true,
|
|
33340
|
+
propNumber: true,
|
|
33341
|
+
propString: true,
|
|
33342
|
+
constructableCSS: true,
|
|
33343
|
+
cmpShouldUpdate: true,
|
|
33344
|
+
devTools: false,
|
|
33345
|
+
shadowDelegatesFocus: true,
|
|
33346
|
+
initializeNextTick: false,
|
|
33347
|
+
asyncLoading: true,
|
|
33348
|
+
asyncQueue: false,
|
|
33349
|
+
transformTagName: false,
|
|
33350
|
+
attachStyles: true,
|
|
33351
|
+
// TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior
|
|
33352
|
+
experimentalSlotFixes: false
|
|
33353
|
+
};
|
|
33354
|
+
var Env = {};
|
|
33355
|
+
var NAMESPACE = (
|
|
33356
|
+
/* default */
|
|
33357
|
+
"app"
|
|
33358
|
+
);
|
|
33359
|
+
|
|
33265
33360
|
/*
|
|
33266
|
-
Stencil Hydrate Runner v4.21.0 | MIT Licensed | https://stenciljs.com
|
|
33361
|
+
Stencil Hydrate Runner v4.21.0-dev.1726257631.b82b008 | MIT Licensed | https://stenciljs.com
|
|
33267
33362
|
*/
|
|
33268
33363
|
var __defProp = Object.defineProperty;
|
|
33269
33364
|
var __export = (target, all) => {
|
|
@@ -33584,8 +33679,8 @@ function jsCaseToCssCase(str) {
|
|
|
33584
33679
|
|
|
33585
33680
|
// src/mock-doc/custom-element-registry.ts
|
|
33586
33681
|
var MockCustomElementRegistry = class {
|
|
33587
|
-
constructor(
|
|
33588
|
-
this.win =
|
|
33682
|
+
constructor(win2) {
|
|
33683
|
+
this.win = win2;
|
|
33589
33684
|
}
|
|
33590
33685
|
define(tagName, cstr, options) {
|
|
33591
33686
|
if (tagName.toLowerCase() !== tagName) {
|
|
@@ -33607,19 +33702,19 @@ var MockCustomElementRegistry = class {
|
|
|
33607
33702
|
this.__whenDefined.delete(tagName);
|
|
33608
33703
|
}
|
|
33609
33704
|
}
|
|
33610
|
-
const
|
|
33611
|
-
if (
|
|
33612
|
-
const hosts =
|
|
33705
|
+
const doc2 = this.win.document;
|
|
33706
|
+
if (doc2 != null) {
|
|
33707
|
+
const hosts = doc2.querySelectorAll(tagName);
|
|
33613
33708
|
hosts.forEach((host) => {
|
|
33614
33709
|
if (upgradedElements.has(host) === false) {
|
|
33615
|
-
tempDisableCallbacks.add(
|
|
33616
|
-
const upgradedCmp = createCustomElement(this,
|
|
33710
|
+
tempDisableCallbacks.add(doc2);
|
|
33711
|
+
const upgradedCmp = createCustomElement(this, doc2, tagName);
|
|
33617
33712
|
for (let i = 0; i < host.childNodes.length; i++) {
|
|
33618
33713
|
const childNode = host.childNodes[i];
|
|
33619
33714
|
childNode.remove();
|
|
33620
33715
|
upgradedCmp.appendChild(childNode);
|
|
33621
33716
|
}
|
|
33622
|
-
tempDisableCallbacks.delete(
|
|
33717
|
+
tempDisableCallbacks.delete(doc2);
|
|
33623
33718
|
if (proxyElements.has(host)) {
|
|
33624
33719
|
proxyElements.set(host, upgradedCmp);
|
|
33625
33720
|
}
|
|
@@ -33673,8 +33768,8 @@ var MockCustomElementRegistry = class {
|
|
|
33673
33768
|
});
|
|
33674
33769
|
}
|
|
33675
33770
|
};
|
|
33676
|
-
function createCustomElement(
|
|
33677
|
-
const Cstr =
|
|
33771
|
+
function createCustomElement(customElements2, ownerDocument, tagName) {
|
|
33772
|
+
const Cstr = customElements2.get(tagName);
|
|
33678
33773
|
if (Cstr != null) {
|
|
33679
33774
|
const cmp = new Cstr(ownerDocument);
|
|
33680
33775
|
cmp.nodeName = tagName.toUpperCase();
|
|
@@ -33722,8 +33817,8 @@ function connectNode(ownerDocument, node) {
|
|
|
33722
33817
|
node.ownerDocument = ownerDocument;
|
|
33723
33818
|
if (node.nodeType === 1 /* ELEMENT_NODE */) {
|
|
33724
33819
|
if (ownerDocument != null && node.nodeName.includes("-")) {
|
|
33725
|
-
const
|
|
33726
|
-
if (
|
|
33820
|
+
const win2 = ownerDocument.defaultView;
|
|
33821
|
+
if (win2 != null && typeof node.connectedCallback === "function" && node.isConnected) {
|
|
33727
33822
|
fireConnectedCallback(node);
|
|
33728
33823
|
}
|
|
33729
33824
|
const shadowRoot = node.shadowRoot;
|
|
@@ -38131,7 +38226,7 @@ var OpenElementStack = class {
|
|
|
38131
38226
|
get currentTmplContentOrNode() {
|
|
38132
38227
|
return this._isInTemplate() ? this.treeAdapter.getTemplateContent(this.current) : this.current;
|
|
38133
38228
|
}
|
|
38134
|
-
constructor(
|
|
38229
|
+
constructor(document2, treeAdapter, handler) {
|
|
38135
38230
|
this.treeAdapter = treeAdapter;
|
|
38136
38231
|
this.handler = handler;
|
|
38137
38232
|
this.items = [];
|
|
@@ -38139,7 +38234,7 @@ var OpenElementStack = class {
|
|
|
38139
38234
|
this.stackTop = -1;
|
|
38140
38235
|
this.tmplCount = 0;
|
|
38141
38236
|
this.currentTagId = TAG_ID.UNKNOWN;
|
|
38142
|
-
this.current =
|
|
38237
|
+
this.current = document2;
|
|
38143
38238
|
}
|
|
38144
38239
|
//Index of element
|
|
38145
38240
|
_indexOf(element) {
|
|
@@ -38556,8 +38651,8 @@ var defaultTreeAdapter = {
|
|
|
38556
38651
|
getTemplateContent(templateElement) {
|
|
38557
38652
|
return templateElement.content;
|
|
38558
38653
|
},
|
|
38559
|
-
setDocumentType(
|
|
38560
|
-
const doctypeNode =
|
|
38654
|
+
setDocumentType(document2, name, publicId, systemId) {
|
|
38655
|
+
const doctypeNode = document2.childNodes.find((node) => node.nodeName === "#documentType");
|
|
38561
38656
|
if (doctypeNode) {
|
|
38562
38657
|
doctypeNode.name = name;
|
|
38563
38658
|
doctypeNode.publicId = publicId;
|
|
@@ -38570,14 +38665,14 @@ var defaultTreeAdapter = {
|
|
|
38570
38665
|
systemId,
|
|
38571
38666
|
parentNode: null
|
|
38572
38667
|
};
|
|
38573
|
-
defaultTreeAdapter.appendChild(
|
|
38668
|
+
defaultTreeAdapter.appendChild(document2, node);
|
|
38574
38669
|
}
|
|
38575
38670
|
},
|
|
38576
|
-
setDocumentMode(
|
|
38577
|
-
|
|
38671
|
+
setDocumentMode(document2, mode) {
|
|
38672
|
+
document2.mode = mode;
|
|
38578
38673
|
},
|
|
38579
|
-
getDocumentMode(
|
|
38580
|
-
return
|
|
38674
|
+
getDocumentMode(document2) {
|
|
38675
|
+
return document2.mode;
|
|
38581
38676
|
},
|
|
38582
38677
|
detachNode(node) {
|
|
38583
38678
|
if (node.parentNode) {
|
|
@@ -39058,7 +39153,7 @@ var defaultParserOptions = {
|
|
|
39058
39153
|
onParseError: null
|
|
39059
39154
|
};
|
|
39060
39155
|
var Parser = class {
|
|
39061
|
-
constructor(options,
|
|
39156
|
+
constructor(options, document2, fragmentContext = null, scriptHandler = null) {
|
|
39062
39157
|
this.fragmentContext = fragmentContext;
|
|
39063
39158
|
this.scriptHandler = scriptHandler;
|
|
39064
39159
|
this.currentToken = null;
|
|
@@ -39083,7 +39178,7 @@ var Parser = class {
|
|
|
39083
39178
|
if (this.onParseError) {
|
|
39084
39179
|
this.options.sourceCodeLocationInfo = true;
|
|
39085
39180
|
}
|
|
39086
|
-
this.document =
|
|
39181
|
+
this.document = document2 !== null && document2 !== void 0 ? document2 : this.treeAdapter.createDocument();
|
|
39087
39182
|
this.tokenizer = new Tokenizer(this.options, this);
|
|
39088
39183
|
this.activeFormattingElements = new FormattingElementList(this.treeAdapter);
|
|
39089
39184
|
this.fragmentContextID = fragmentContext ? getTagID(this.treeAdapter.getTagName(fragmentContext)) : TAG_ID.UNKNOWN;
|
|
@@ -42060,11 +42155,11 @@ function parseFragment(fragmentContext, html, options) {
|
|
|
42060
42155
|
// src/mock-doc/parse-util.ts
|
|
42061
42156
|
var docParser = /* @__PURE__ */ new WeakMap();
|
|
42062
42157
|
function parseDocumentUtil(ownerDocument, html) {
|
|
42063
|
-
const
|
|
42064
|
-
|
|
42065
|
-
|
|
42066
|
-
|
|
42067
|
-
return
|
|
42158
|
+
const doc2 = parse(html.trim(), getParser(ownerDocument));
|
|
42159
|
+
doc2.documentElement = doc2.firstElementChild;
|
|
42160
|
+
doc2.head = doc2.documentElement.firstElementChild;
|
|
42161
|
+
doc2.body = doc2.head.nextElementSibling;
|
|
42162
|
+
return doc2;
|
|
42068
42163
|
}
|
|
42069
42164
|
function parseFragmentUtil(ownerDocument, html) {
|
|
42070
42165
|
if (typeof html === "string") {
|
|
@@ -42082,9 +42177,9 @@ function getParser(ownerDocument) {
|
|
|
42082
42177
|
}
|
|
42083
42178
|
const treeAdapter = {
|
|
42084
42179
|
createDocument() {
|
|
42085
|
-
const
|
|
42086
|
-
|
|
42087
|
-
return
|
|
42180
|
+
const doc2 = ownerDocument.createElement("#document" /* DOCUMENT_NODE */);
|
|
42181
|
+
doc2["x-mode"] = "no-quirks";
|
|
42182
|
+
return doc2;
|
|
42088
42183
|
},
|
|
42089
42184
|
setNodeSourceCodeLocation(node, location2) {
|
|
42090
42185
|
node.sourceCodeLocation = location2;
|
|
@@ -42122,22 +42217,22 @@ function getParser(ownerDocument) {
|
|
|
42122
42217
|
getTemplateContent(templateElement) {
|
|
42123
42218
|
return templateElement.content;
|
|
42124
42219
|
},
|
|
42125
|
-
setDocumentType(
|
|
42126
|
-
let doctypeNode =
|
|
42220
|
+
setDocumentType(doc2, name, publicId, systemId) {
|
|
42221
|
+
let doctypeNode = doc2.childNodes.find((n) => n.nodeType === 10 /* DOCUMENT_TYPE_NODE */);
|
|
42127
42222
|
if (doctypeNode == null) {
|
|
42128
42223
|
doctypeNode = ownerDocument.createDocumentTypeNode();
|
|
42129
|
-
|
|
42224
|
+
doc2.insertBefore(doctypeNode, doc2.firstChild);
|
|
42130
42225
|
}
|
|
42131
42226
|
doctypeNode.nodeValue = "!DOCTYPE";
|
|
42132
42227
|
doctypeNode["x-name"] = name;
|
|
42133
42228
|
doctypeNode["x-publicId"] = publicId;
|
|
42134
42229
|
doctypeNode["x-systemId"] = systemId;
|
|
42135
42230
|
},
|
|
42136
|
-
setDocumentMode(
|
|
42137
|
-
|
|
42231
|
+
setDocumentMode(doc2, mode) {
|
|
42232
|
+
doc2["x-mode"] = mode;
|
|
42138
42233
|
},
|
|
42139
|
-
getDocumentMode(
|
|
42140
|
-
return
|
|
42234
|
+
getDocumentMode(doc2) {
|
|
42235
|
+
return doc2["x-mode"];
|
|
42141
42236
|
},
|
|
42142
42237
|
detachNode(node) {
|
|
42143
42238
|
node.remove();
|
|
@@ -42269,9 +42364,9 @@ var jquery_default = (
|
|
|
42269
42364
|
nodeName: "HTML"
|
|
42270
42365
|
}
|
|
42271
42366
|
}
|
|
42272
|
-
}, function(
|
|
42367
|
+
}, function(window2, noGlobal) {
|
|
42273
42368
|
"use strict";
|
|
42274
|
-
if (!
|
|
42369
|
+
if (!window2.document) {
|
|
42275
42370
|
throw new Error("jQuery requires a window with a document");
|
|
42276
42371
|
}
|
|
42277
42372
|
var arr = [];
|
|
@@ -42306,16 +42401,16 @@ var jquery_default = (
|
|
|
42306
42401
|
}
|
|
42307
42402
|
return type === "array" || length === 0 || typeof length === "number" && length > 0 && length - 1 in obj;
|
|
42308
42403
|
}
|
|
42309
|
-
var
|
|
42404
|
+
var document2 = window2.document;
|
|
42310
42405
|
var preservedScriptAttributes = {
|
|
42311
42406
|
type: true,
|
|
42312
42407
|
src: true,
|
|
42313
42408
|
nonce: true,
|
|
42314
42409
|
noModule: true
|
|
42315
42410
|
};
|
|
42316
|
-
function DOMEval(code, node,
|
|
42317
|
-
|
|
42318
|
-
var i2, script =
|
|
42411
|
+
function DOMEval(code, node, doc2) {
|
|
42412
|
+
doc2 = doc2 || document2;
|
|
42413
|
+
var i2, script = doc2.createElement("script");
|
|
42319
42414
|
script.text = code;
|
|
42320
42415
|
if (node) {
|
|
42321
42416
|
for (i2 in preservedScriptAttributes) {
|
|
@@ -42324,7 +42419,7 @@ var jquery_default = (
|
|
|
42324
42419
|
}
|
|
42325
42420
|
}
|
|
42326
42421
|
}
|
|
42327
|
-
|
|
42422
|
+
doc2.head.appendChild(script).parentNode.removeChild(script);
|
|
42328
42423
|
}
|
|
42329
42424
|
const jQuery = {};
|
|
42330
42425
|
var version = "4.0.0-pre+9352011a7.dirty +selector", rhtmlSuffix = /HTML$/i, jQueryOrig = function(selector, context) {
|
|
@@ -42461,8 +42556,8 @@ var jquery_default = (
|
|
|
42461
42556
|
},
|
|
42462
42557
|
// Evaluates a script in a provided context; falls back to the global one
|
|
42463
42558
|
// if not specified.
|
|
42464
|
-
globalEval: function(code, options,
|
|
42465
|
-
DOMEval(code, { nonce: options && options.nonce },
|
|
42559
|
+
globalEval: function(code, options, doc2) {
|
|
42560
|
+
DOMEval(code, { nonce: options && options.nonce }, doc2);
|
|
42466
42561
|
},
|
|
42467
42562
|
each: function(obj, callback) {
|
|
42468
42563
|
var length, i2 = 0;
|
|
@@ -42589,9 +42684,9 @@ var jquery_default = (
|
|
|
42589
42684
|
}
|
|
42590
42685
|
var pop = arr.pop;
|
|
42591
42686
|
var whitespace = "[\\x20\\t\\r\\n\\f]";
|
|
42592
|
-
var isIE =
|
|
42687
|
+
var isIE = document2.documentMode;
|
|
42593
42688
|
try {
|
|
42594
|
-
|
|
42689
|
+
document2.querySelector(":has(*,:jqfake)");
|
|
42595
42690
|
support.cssHas = false;
|
|
42596
42691
|
} catch (e) {
|
|
42597
42692
|
support.cssHas = true;
|
|
@@ -42623,7 +42718,7 @@ var jquery_default = (
|
|
|
42623
42718
|
var rleadingCombinator = new RegExp("^" + whitespace + "*([>+~]|" + whitespace + ")" + whitespace + "*");
|
|
42624
42719
|
var rdescend = new RegExp(whitespace + "|>");
|
|
42625
42720
|
var rsibling = /[+~]/;
|
|
42626
|
-
var documentElement =
|
|
42721
|
+
var documentElement = document2.documentElement;
|
|
42627
42722
|
var matches2 = documentElement.matches || documentElement.msMatchesSelector;
|
|
42628
42723
|
function createCache() {
|
|
42629
42724
|
var keys = [];
|
|
@@ -42792,10 +42887,10 @@ var jquery_default = (
|
|
|
42792
42887
|
1
|
|
42793
42888
|
);
|
|
42794
42889
|
if (compare & 1) {
|
|
42795
|
-
if (a ==
|
|
42890
|
+
if (a == document2 || a.ownerDocument == document2 && jQuery.contains(document2, a)) {
|
|
42796
42891
|
return -1;
|
|
42797
42892
|
}
|
|
42798
|
-
if (b ==
|
|
42893
|
+
if (b == document2 || b.ownerDocument == document2 && jQuery.contains(document2, b)) {
|
|
42799
42894
|
return 1;
|
|
42800
42895
|
}
|
|
42801
42896
|
return 0;
|
|
@@ -42951,14 +43046,14 @@ var jquery_default = (
|
|
|
42951
43046
|
});
|
|
42952
43047
|
}
|
|
42953
43048
|
function setDocument(node) {
|
|
42954
|
-
var subWindow,
|
|
42955
|
-
if (
|
|
43049
|
+
var subWindow, doc2 = node ? node.ownerDocument || node : document2;
|
|
43050
|
+
if (doc2 == document$1 || doc2.nodeType !== 9) {
|
|
42956
43051
|
return;
|
|
42957
43052
|
}
|
|
42958
|
-
document$1 =
|
|
43053
|
+
document$1 = doc2;
|
|
42959
43054
|
documentElement$1 = document$1.documentElement;
|
|
42960
43055
|
documentIsHTML = !jQuery.isXMLDoc(document$1);
|
|
42961
|
-
if (isIE &&
|
|
43056
|
+
if (isIE && document2 != document$1 && (subWindow = document$1.defaultView) && subWindow.top !== subWindow) {
|
|
42962
43057
|
subWindow.addEventListener("unload", unloadHandler);
|
|
42963
43058
|
}
|
|
42964
43059
|
}
|
|
@@ -43189,7 +43284,7 @@ var jquery_default = (
|
|
|
43189
43284
|
}),
|
|
43190
43285
|
// Miscellaneous
|
|
43191
43286
|
target: function(elem) {
|
|
43192
|
-
var hash =
|
|
43287
|
+
var hash = window2.location && window2.location.hash;
|
|
43193
43288
|
return hash && hash.slice(1) === elem.id;
|
|
43194
43289
|
},
|
|
43195
43290
|
root: function(elem) {
|
|
@@ -45179,9 +45274,9 @@ function createElement(ownerDocument, tagName) {
|
|
|
45179
45274
|
return new MockUListElement(ownerDocument);
|
|
45180
45275
|
}
|
|
45181
45276
|
if (ownerDocument != null && tagName.includes("-")) {
|
|
45182
|
-
const
|
|
45183
|
-
if (
|
|
45184
|
-
return createCustomElement(
|
|
45277
|
+
const win2 = ownerDocument.defaultView;
|
|
45278
|
+
if (win2 != null && win2.customElements != null) {
|
|
45279
|
+
return createCustomElement(win2.customElements, ownerDocument, tagName);
|
|
45185
45280
|
}
|
|
45186
45281
|
}
|
|
45187
45282
|
return new MockHTMLElement(ownerDocument, tagName);
|
|
@@ -45603,9 +45698,9 @@ var CanvasRenderingContext = class {
|
|
|
45603
45698
|
}
|
|
45604
45699
|
clearRect() {
|
|
45605
45700
|
}
|
|
45606
|
-
getImageData(_, __, w,
|
|
45701
|
+
getImageData(_, __, w, h2) {
|
|
45607
45702
|
return {
|
|
45608
|
-
data: new Array(w *
|
|
45703
|
+
data: new Array(w * h2 * 4)
|
|
45609
45704
|
};
|
|
45610
45705
|
}
|
|
45611
45706
|
toDataURL() {
|
|
@@ -45667,9 +45762,9 @@ var MockCanvasElement = class extends MockHTMLElement {
|
|
|
45667
45762
|
function fullUrl(elm, attrName) {
|
|
45668
45763
|
const val = elm.getAttribute(attrName) || "";
|
|
45669
45764
|
if (elm.ownerDocument != null) {
|
|
45670
|
-
const
|
|
45671
|
-
if (
|
|
45672
|
-
const loc =
|
|
45765
|
+
const win2 = elm.ownerDocument.defaultView;
|
|
45766
|
+
if (win2 != null) {
|
|
45767
|
+
const loc = win2.location;
|
|
45673
45768
|
if (loc != null) {
|
|
45674
45769
|
try {
|
|
45675
45770
|
const url = new URL(val, loc.href);
|
|
@@ -46374,10 +46469,10 @@ var MockWindow = class {
|
|
|
46374
46469
|
}
|
|
46375
46470
|
get Document() {
|
|
46376
46471
|
if (this.__docCstr == null) {
|
|
46377
|
-
const
|
|
46472
|
+
const win2 = this;
|
|
46378
46473
|
this.__docCstr = class extends MockDocument {
|
|
46379
46474
|
constructor() {
|
|
46380
|
-
super(false,
|
|
46475
|
+
super(false, win2);
|
|
46381
46476
|
throw new Error("Illegal constructor: cannot construct Document");
|
|
46382
46477
|
}
|
|
46383
46478
|
};
|
|
@@ -46894,14 +46989,14 @@ var MockWindow = class {
|
|
|
46894
46989
|
}
|
|
46895
46990
|
};
|
|
46896
46991
|
addGlobalsToWindowPrototype(MockWindow.prototype);
|
|
46897
|
-
function resetWindowDefaults(
|
|
46898
|
-
|
|
46899
|
-
|
|
46900
|
-
|
|
46901
|
-
|
|
46902
|
-
|
|
46903
|
-
|
|
46904
|
-
|
|
46992
|
+
function resetWindowDefaults(win2) {
|
|
46993
|
+
win2.__clearInterval = nativeClearInterval;
|
|
46994
|
+
win2.__clearTimeout = nativeClearTimeout;
|
|
46995
|
+
win2.__setInterval = nativeSetInterval;
|
|
46996
|
+
win2.__setTimeout = nativeSetTimeout;
|
|
46997
|
+
win2.__maxTimeout = 3e4;
|
|
46998
|
+
win2.__allowInterval = true;
|
|
46999
|
+
win2.URL = nativeURL;
|
|
46905
47000
|
}
|
|
46906
47001
|
function cloneWindow(srcWin, opts = {}) {
|
|
46907
47002
|
if (srcWin == null) {
|
|
@@ -46920,72 +47015,72 @@ function cloneWindow(srcWin, opts = {}) {
|
|
|
46920
47015
|
}
|
|
46921
47016
|
return clonedWin;
|
|
46922
47017
|
}
|
|
46923
|
-
function constrainTimeouts(
|
|
46924
|
-
|
|
46925
|
-
|
|
47018
|
+
function constrainTimeouts(win2) {
|
|
47019
|
+
win2.__allowInterval = false;
|
|
47020
|
+
win2.__maxTimeout = 0;
|
|
46926
47021
|
}
|
|
46927
|
-
function resetWindow(
|
|
46928
|
-
if (
|
|
46929
|
-
if (
|
|
46930
|
-
|
|
47022
|
+
function resetWindow(win2) {
|
|
47023
|
+
if (win2 != null) {
|
|
47024
|
+
if (win2.__timeouts) {
|
|
47025
|
+
win2.__timeouts.forEach((timeoutId) => {
|
|
46931
47026
|
nativeClearInterval(timeoutId);
|
|
46932
47027
|
nativeClearTimeout(timeoutId);
|
|
46933
47028
|
});
|
|
46934
|
-
|
|
47029
|
+
win2.__timeouts.clear();
|
|
46935
47030
|
}
|
|
46936
|
-
if (
|
|
46937
|
-
|
|
47031
|
+
if (win2.customElements && win2.customElements.clear) {
|
|
47032
|
+
win2.customElements.clear();
|
|
46938
47033
|
}
|
|
46939
|
-
resetDocument(
|
|
46940
|
-
resetPerformance(
|
|
46941
|
-
for (const key in
|
|
46942
|
-
if (
|
|
46943
|
-
delete
|
|
47034
|
+
resetDocument(win2.document);
|
|
47035
|
+
resetPerformance(win2.performance);
|
|
47036
|
+
for (const key in win2) {
|
|
47037
|
+
if (win2.hasOwnProperty(key) && key !== "document" && key !== "performance" && key !== "customElements") {
|
|
47038
|
+
delete win2[key];
|
|
46944
47039
|
}
|
|
46945
47040
|
}
|
|
46946
|
-
resetWindowDefaults(
|
|
46947
|
-
resetWindowDimensions(
|
|
46948
|
-
resetEventListeners(
|
|
46949
|
-
if (
|
|
47041
|
+
resetWindowDefaults(win2);
|
|
47042
|
+
resetWindowDimensions(win2);
|
|
47043
|
+
resetEventListeners(win2);
|
|
47044
|
+
if (win2.document != null) {
|
|
46950
47045
|
try {
|
|
46951
|
-
|
|
47046
|
+
win2.document.defaultView = win2;
|
|
46952
47047
|
} catch (e) {
|
|
46953
47048
|
}
|
|
46954
47049
|
}
|
|
46955
|
-
|
|
46956
|
-
|
|
46957
|
-
|
|
46958
|
-
|
|
46959
|
-
|
|
47050
|
+
win2.fetch = null;
|
|
47051
|
+
win2.Headers = null;
|
|
47052
|
+
win2.Request = null;
|
|
47053
|
+
win2.Response = null;
|
|
47054
|
+
win2.FetchError = null;
|
|
46960
47055
|
}
|
|
46961
47056
|
}
|
|
46962
|
-
function resetWindowDimensions(
|
|
47057
|
+
function resetWindowDimensions(win2) {
|
|
46963
47058
|
try {
|
|
46964
|
-
|
|
46965
|
-
|
|
46966
|
-
|
|
46967
|
-
|
|
46968
|
-
|
|
46969
|
-
|
|
46970
|
-
|
|
46971
|
-
|
|
46972
|
-
|
|
46973
|
-
|
|
46974
|
-
|
|
46975
|
-
|
|
46976
|
-
availHeight:
|
|
47059
|
+
win2.devicePixelRatio = 1;
|
|
47060
|
+
win2.innerHeight = 768;
|
|
47061
|
+
win2.innerWidth = 1366;
|
|
47062
|
+
win2.pageXOffset = 0;
|
|
47063
|
+
win2.pageYOffset = 0;
|
|
47064
|
+
win2.screenLeft = 0;
|
|
47065
|
+
win2.screenTop = 0;
|
|
47066
|
+
win2.screenX = 0;
|
|
47067
|
+
win2.screenY = 0;
|
|
47068
|
+
win2.scrollX = 0;
|
|
47069
|
+
win2.scrollY = 0;
|
|
47070
|
+
win2.screen = {
|
|
47071
|
+
availHeight: win2.innerHeight,
|
|
46977
47072
|
availLeft: 0,
|
|
46978
47073
|
availTop: 0,
|
|
46979
|
-
availWidth:
|
|
47074
|
+
availWidth: win2.innerWidth,
|
|
46980
47075
|
colorDepth: 24,
|
|
46981
|
-
height:
|
|
47076
|
+
height: win2.innerHeight,
|
|
46982
47077
|
keepAwake: false,
|
|
46983
47078
|
orientation: {
|
|
46984
47079
|
angle: 0,
|
|
46985
47080
|
type: "portrait-primary"
|
|
46986
47081
|
},
|
|
46987
47082
|
pixelDepth: 24,
|
|
46988
|
-
width:
|
|
47083
|
+
width: win2.innerWidth
|
|
46989
47084
|
};
|
|
46990
47085
|
} catch (e) {
|
|
46991
47086
|
}
|
|
@@ -46993,11 +47088,11 @@ function resetWindowDimensions(win) {
|
|
|
46993
47088
|
|
|
46994
47089
|
// src/mock-doc/document.ts
|
|
46995
47090
|
var MockDocument = class _MockDocument extends MockHTMLElement {
|
|
46996
|
-
constructor(html = null,
|
|
47091
|
+
constructor(html = null, win2 = null) {
|
|
46997
47092
|
super(null, null);
|
|
46998
47093
|
this.nodeName = "#document" /* DOCUMENT_NODE */;
|
|
46999
47094
|
this.nodeType = 9 /* DOCUMENT_NODE */;
|
|
47000
|
-
this.defaultView =
|
|
47095
|
+
this.defaultView = win2;
|
|
47001
47096
|
this.cookie = "";
|
|
47002
47097
|
this.referrer = "";
|
|
47003
47098
|
this.appendChild(this.createDocumentTypeNode());
|
|
@@ -47144,10 +47239,10 @@ var MockDocument = class _MockDocument extends MockHTMLElement {
|
|
|
47144
47239
|
}
|
|
47145
47240
|
createElement(tagName) {
|
|
47146
47241
|
if (tagName === "#document" /* DOCUMENT_NODE */) {
|
|
47147
|
-
const
|
|
47148
|
-
|
|
47149
|
-
|
|
47150
|
-
return
|
|
47242
|
+
const doc2 = new _MockDocument(false);
|
|
47243
|
+
doc2.nodeName = tagName;
|
|
47244
|
+
doc2.parentNode = null;
|
|
47245
|
+
return doc2;
|
|
47151
47246
|
}
|
|
47152
47247
|
return createElement(this, tagName);
|
|
47153
47248
|
}
|
|
@@ -47187,10 +47282,10 @@ var MockDocument = class _MockDocument extends MockHTMLElement {
|
|
|
47187
47282
|
title.textContent = value;
|
|
47188
47283
|
}
|
|
47189
47284
|
};
|
|
47190
|
-
function resetDocument(
|
|
47191
|
-
if (
|
|
47192
|
-
resetEventListeners(
|
|
47193
|
-
const documentElement =
|
|
47285
|
+
function resetDocument(doc2) {
|
|
47286
|
+
if (doc2 != null) {
|
|
47287
|
+
resetEventListeners(doc2);
|
|
47288
|
+
const documentElement = doc2.documentElement;
|
|
47194
47289
|
if (documentElement != null) {
|
|
47195
47290
|
resetElement(documentElement);
|
|
47196
47291
|
for (let i = 0, ii = documentElement.childNodes.length; i < ii; i++) {
|
|
@@ -47199,25 +47294,25 @@ function resetDocument(doc) {
|
|
|
47199
47294
|
childNode.childNodes.length = 0;
|
|
47200
47295
|
}
|
|
47201
47296
|
}
|
|
47202
|
-
for (const key in
|
|
47203
|
-
if (
|
|
47204
|
-
delete
|
|
47297
|
+
for (const key in doc2) {
|
|
47298
|
+
if (doc2.hasOwnProperty(key) && !DOC_KEY_KEEPERS.has(key)) {
|
|
47299
|
+
delete doc2[key];
|
|
47205
47300
|
}
|
|
47206
47301
|
}
|
|
47207
47302
|
try {
|
|
47208
|
-
|
|
47303
|
+
doc2.nodeName = "#document" /* DOCUMENT_NODE */;
|
|
47209
47304
|
} catch (e) {
|
|
47210
47305
|
}
|
|
47211
47306
|
try {
|
|
47212
|
-
|
|
47307
|
+
doc2.nodeType = 9 /* DOCUMENT_NODE */;
|
|
47213
47308
|
} catch (e) {
|
|
47214
47309
|
}
|
|
47215
47310
|
try {
|
|
47216
|
-
|
|
47311
|
+
doc2.cookie = "";
|
|
47217
47312
|
} catch (e) {
|
|
47218
47313
|
}
|
|
47219
47314
|
try {
|
|
47220
|
-
|
|
47315
|
+
doc2.referrer = "";
|
|
47221
47316
|
} catch (e) {
|
|
47222
47317
|
}
|
|
47223
47318
|
}
|
|
@@ -47273,9 +47368,33 @@ function createWindowFromHtml(templateHtml, uniqueId) {
|
|
|
47273
47368
|
templateWindow = new MockWindow(templateHtml);
|
|
47274
47369
|
templateWindows.set(uniqueId, templateWindow);
|
|
47275
47370
|
}
|
|
47276
|
-
const
|
|
47277
|
-
return
|
|
47371
|
+
const win2 = cloneWindow(templateWindow);
|
|
47372
|
+
return win2;
|
|
47278
47373
|
}
|
|
47374
|
+
var Build = {
|
|
47375
|
+
isDev: BUILD.isDev ? true : false,
|
|
47376
|
+
isBrowser: true,
|
|
47377
|
+
isServer: false,
|
|
47378
|
+
isTesting: BUILD.isTesting ? true : false
|
|
47379
|
+
};
|
|
47380
|
+
var hostRefs = BUILD.hotModuleReplacement ? window.__STENCIL_HOSTREFS__ || (window.__STENCIL_HOSTREFS__ = /* @__PURE__ */ new WeakMap()) : /* @__PURE__ */ new WeakMap();
|
|
47381
|
+
var STENCIL_DEV_MODE = BUILD.isTesting ? ["STENCIL:"] : [
|
|
47382
|
+
"%cstencil",
|
|
47383
|
+
"color: white;background:#4c47ff;font-weight: bold; font-size:10px; padding:2px 6px; border-radius: 5px"
|
|
47384
|
+
];
|
|
47385
|
+
var win = typeof window !== "undefined" ? window : {};
|
|
47386
|
+
var doc = win.document || { head: {} };
|
|
47387
|
+
var H = win.HTMLElement || class {
|
|
47388
|
+
};
|
|
47389
|
+
var supportsShadow = BUILD.shadowDom;
|
|
47390
|
+
var supportsConstructableStylesheets = BUILD.constructableCSS ? /* @__PURE__ */ (() => {
|
|
47391
|
+
try {
|
|
47392
|
+
new CSSStyleSheet();
|
|
47393
|
+
return typeof new CSSStyleSheet().replaceSync === "function";
|
|
47394
|
+
} catch (e) {
|
|
47395
|
+
}
|
|
47396
|
+
return false;
|
|
47397
|
+
})() : false;
|
|
47279
47398
|
|
|
47280
47399
|
// src/utils/helpers.ts
|
|
47281
47400
|
var isString = (v) => typeof v === "string";
|
|
@@ -47367,15 +47486,20 @@ var unwrapErr = (result) => {
|
|
|
47367
47486
|
}
|
|
47368
47487
|
};
|
|
47369
47488
|
|
|
47489
|
+
// src/runtime/mode.ts
|
|
47490
|
+
var setMode = (handler) => modeResolutionChain.push(handler);
|
|
47491
|
+
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
47492
|
+
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
47493
|
+
|
|
47370
47494
|
// src/compiler/html/canonical-link.ts
|
|
47371
|
-
var updateCanonicalLink = (
|
|
47495
|
+
var updateCanonicalLink = (doc2, href) => {
|
|
47372
47496
|
var _a2;
|
|
47373
|
-
let canonicalLinkElm =
|
|
47497
|
+
let canonicalLinkElm = doc2.head.querySelector('link[rel="canonical"]');
|
|
47374
47498
|
if (typeof href === "string") {
|
|
47375
47499
|
if (canonicalLinkElm == null) {
|
|
47376
|
-
canonicalLinkElm =
|
|
47500
|
+
canonicalLinkElm = doc2.createElement("link");
|
|
47377
47501
|
canonicalLinkElm.setAttribute("rel", "canonical");
|
|
47378
|
-
|
|
47502
|
+
doc2.head.appendChild(canonicalLinkElm);
|
|
47379
47503
|
}
|
|
47380
47504
|
canonicalLinkElm.setAttribute("href", href);
|
|
47381
47505
|
} else {
|
|
@@ -47389,11 +47513,11 @@ var updateCanonicalLink = (doc, href) => {
|
|
|
47389
47513
|
};
|
|
47390
47514
|
|
|
47391
47515
|
// src/compiler/html/relocate-meta-charset.ts
|
|
47392
|
-
var relocateMetaCharset = (
|
|
47393
|
-
const head =
|
|
47516
|
+
var relocateMetaCharset = (doc2) => {
|
|
47517
|
+
const head = doc2.head;
|
|
47394
47518
|
let charsetElm = head.querySelector("meta[charset]");
|
|
47395
47519
|
if (charsetElm == null) {
|
|
47396
|
-
charsetElm =
|
|
47520
|
+
charsetElm = doc2.createElement("meta");
|
|
47397
47521
|
charsetElm.setAttribute("charset", "utf-8");
|
|
47398
47522
|
} else {
|
|
47399
47523
|
charsetElm.remove();
|
|
@@ -47668,13 +47792,13 @@ var parseCss = (css, filePath) => {
|
|
|
47668
47792
|
const m = match(/^@([-\w]+)?document *([^{]+)/);
|
|
47669
47793
|
if (!m) return null;
|
|
47670
47794
|
const vendor = trim(m[1]);
|
|
47671
|
-
const
|
|
47795
|
+
const doc2 = trim(m[2]);
|
|
47672
47796
|
if (!open()) return error(`@document missing '{'`);
|
|
47673
47797
|
const style = comments().concat(rules());
|
|
47674
47798
|
if (!close()) return error(`@document missing '}'`);
|
|
47675
47799
|
return pos({
|
|
47676
47800
|
type: 3 /* Document */,
|
|
47677
|
-
document:
|
|
47801
|
+
document: doc2,
|
|
47678
47802
|
vendor,
|
|
47679
47803
|
rules: style
|
|
47680
47804
|
});
|
|
@@ -48000,11 +48124,11 @@ var serializeCssPage = (opts, node) => {
|
|
|
48000
48124
|
};
|
|
48001
48125
|
var serializeCssDocument = (opts, node) => {
|
|
48002
48126
|
const documentCss = serializeCssMapVisit(opts, node.rules);
|
|
48003
|
-
const
|
|
48127
|
+
const doc2 = "@" + (node.vendor || "") + "document " + node.document;
|
|
48004
48128
|
if (documentCss === "") {
|
|
48005
48129
|
return "";
|
|
48006
48130
|
}
|
|
48007
|
-
return
|
|
48131
|
+
return doc2 + "{" + documentCss + "}";
|
|
48008
48132
|
};
|
|
48009
48133
|
var serializeCssMapVisit = (opts, nodes) => {
|
|
48010
48134
|
let rtn = "";
|
|
@@ -48102,12 +48226,12 @@ var collectUsedSelectors = (usedSelectors, elm) => {
|
|
|
48102
48226
|
};
|
|
48103
48227
|
|
|
48104
48228
|
// src/compiler/html/remove-unused-styles.ts
|
|
48105
|
-
var removeUnusedStyles = (
|
|
48229
|
+
var removeUnusedStyles = (doc2, diagnostics) => {
|
|
48106
48230
|
try {
|
|
48107
|
-
const styleElms =
|
|
48231
|
+
const styleElms = doc2.head.querySelectorAll(`style[data-styles]`);
|
|
48108
48232
|
const styleLen = styleElms.length;
|
|
48109
48233
|
if (styleLen > 0) {
|
|
48110
|
-
const usedSelectors = getUsedSelectors(
|
|
48234
|
+
const usedSelectors = getUsedSelectors(doc2.documentElement);
|
|
48111
48235
|
for (let i = 0; i < styleLen; i++) {
|
|
48112
48236
|
removeUnusedStyleText(usedSelectors, diagnostics, styleElms[i]);
|
|
48113
48237
|
}
|
|
@@ -48240,49 +48364,49 @@ function collectAttributes(node) {
|
|
|
48240
48364
|
var SKIP_ATTRS = /* @__PURE__ */ new Set(["s-id", "c-id"]);
|
|
48241
48365
|
|
|
48242
48366
|
// src/hydrate/runner/patch-dom-implementation.ts
|
|
48243
|
-
function patchDomImplementation(
|
|
48244
|
-
let
|
|
48245
|
-
if (
|
|
48367
|
+
function patchDomImplementation(doc2, opts) {
|
|
48368
|
+
let win2;
|
|
48369
|
+
if (doc2.defaultView != null) {
|
|
48246
48370
|
opts.destroyWindow = true;
|
|
48247
|
-
patchWindow(
|
|
48248
|
-
|
|
48371
|
+
patchWindow(doc2.defaultView);
|
|
48372
|
+
win2 = doc2.defaultView;
|
|
48249
48373
|
} else {
|
|
48250
48374
|
opts.destroyWindow = true;
|
|
48251
48375
|
opts.destroyDocument = false;
|
|
48252
|
-
|
|
48376
|
+
win2 = new MockWindow(false);
|
|
48253
48377
|
}
|
|
48254
|
-
if (
|
|
48255
|
-
|
|
48378
|
+
if (win2.document !== doc2) {
|
|
48379
|
+
win2.document = doc2;
|
|
48256
48380
|
}
|
|
48257
|
-
if (
|
|
48258
|
-
|
|
48381
|
+
if (doc2.defaultView !== win2) {
|
|
48382
|
+
doc2.defaultView = win2;
|
|
48259
48383
|
}
|
|
48260
|
-
const
|
|
48261
|
-
if (typeof
|
|
48262
|
-
const elm =
|
|
48384
|
+
const HTMLElement2 = doc2.documentElement.constructor.prototype;
|
|
48385
|
+
if (typeof HTMLElement2.getRootNode !== "function") {
|
|
48386
|
+
const elm = doc2.createElement("unknown-element");
|
|
48263
48387
|
const HTMLUnknownElement = elm.constructor.prototype;
|
|
48264
48388
|
HTMLUnknownElement.getRootNode = getRootNode;
|
|
48265
48389
|
}
|
|
48266
|
-
if (typeof
|
|
48267
|
-
const
|
|
48268
|
-
if (
|
|
48269
|
-
|
|
48390
|
+
if (typeof doc2.createEvent === "function") {
|
|
48391
|
+
const CustomEvent2 = doc2.createEvent("CustomEvent").constructor;
|
|
48392
|
+
if (win2.CustomEvent !== CustomEvent2) {
|
|
48393
|
+
win2.CustomEvent = CustomEvent2;
|
|
48270
48394
|
}
|
|
48271
48395
|
}
|
|
48272
48396
|
try {
|
|
48273
|
-
|
|
48397
|
+
win2.__stencil_baseURI = doc2.baseURI;
|
|
48274
48398
|
} catch (e) {
|
|
48275
|
-
Object.defineProperty(
|
|
48399
|
+
Object.defineProperty(doc2, "baseURI", {
|
|
48276
48400
|
get() {
|
|
48277
|
-
const baseElm =
|
|
48401
|
+
const baseElm = doc2.querySelector("base[href]");
|
|
48278
48402
|
if (baseElm) {
|
|
48279
|
-
return new URL(baseElm.getAttribute("href"),
|
|
48403
|
+
return new URL(baseElm.getAttribute("href"), win2.location.href).href;
|
|
48280
48404
|
}
|
|
48281
|
-
return
|
|
48405
|
+
return win2.location.href;
|
|
48282
48406
|
}
|
|
48283
48407
|
});
|
|
48284
48408
|
}
|
|
48285
|
-
return
|
|
48409
|
+
return win2;
|
|
48286
48410
|
}
|
|
48287
48411
|
function getRootNode(opts) {
|
|
48288
48412
|
const isComposed = opts != null && opts.composed === true;
|
|
@@ -48435,10 +48559,10 @@ function renderCatchError(results, err2) {
|
|
|
48435
48559
|
}
|
|
48436
48560
|
|
|
48437
48561
|
// src/hydrate/runner/runtime-log.ts
|
|
48438
|
-
function runtimeLogging(
|
|
48562
|
+
function runtimeLogging(win2, opts, results) {
|
|
48439
48563
|
try {
|
|
48440
|
-
const pathname =
|
|
48441
|
-
|
|
48564
|
+
const pathname = win2.location.pathname;
|
|
48565
|
+
win2.console.error = (...msgs) => {
|
|
48442
48566
|
const errMsg = msgs.reduce((errMsg2, m) => {
|
|
48443
48567
|
if (m) {
|
|
48444
48568
|
if (m.stack != null) {
|
|
@@ -48458,7 +48582,7 @@ function runtimeLogging(win, opts, results) {
|
|
|
48458
48582
|
}
|
|
48459
48583
|
}
|
|
48460
48584
|
};
|
|
48461
|
-
|
|
48585
|
+
win2.console.debug = (...msgs) => {
|
|
48462
48586
|
renderBuildDiagnostic(results, "debug", "Hydrate Debug", [...msgs].join(", "));
|
|
48463
48587
|
if (opts.runtimeLogging) {
|
|
48464
48588
|
runtimeLog(pathname, "debug", msgs);
|
|
@@ -48466,7 +48590,7 @@ function runtimeLogging(win, opts, results) {
|
|
|
48466
48590
|
};
|
|
48467
48591
|
if (opts.runtimeLogging) {
|
|
48468
48592
|
["log", "warn", "assert", "info", "trace"].forEach((type) => {
|
|
48469
|
-
|
|
48593
|
+
win2.console[type] = (...msgs) => {
|
|
48470
48594
|
runtimeLog(pathname, type, msgs);
|
|
48471
48595
|
};
|
|
48472
48596
|
});
|
|
@@ -48480,58 +48604,58 @@ function runtimeLog(pathname, type, msgs) {
|
|
|
48480
48604
|
}
|
|
48481
48605
|
|
|
48482
48606
|
// src/hydrate/runner/window-initialize.ts
|
|
48483
|
-
function initializeWindow(
|
|
48607
|
+
function initializeWindow(win2, doc2, opts, results) {
|
|
48484
48608
|
if (typeof opts.url === "string") {
|
|
48485
48609
|
try {
|
|
48486
|
-
|
|
48610
|
+
win2.location.href = opts.url;
|
|
48487
48611
|
} catch (e) {
|
|
48488
48612
|
}
|
|
48489
48613
|
}
|
|
48490
48614
|
if (typeof opts.userAgent === "string") {
|
|
48491
48615
|
try {
|
|
48492
|
-
|
|
48616
|
+
win2.navigator.userAgent = opts.userAgent;
|
|
48493
48617
|
} catch (e) {
|
|
48494
48618
|
}
|
|
48495
48619
|
}
|
|
48496
48620
|
if (typeof opts.cookie === "string") {
|
|
48497
48621
|
try {
|
|
48498
|
-
|
|
48622
|
+
doc2.cookie = opts.cookie;
|
|
48499
48623
|
} catch (e) {
|
|
48500
48624
|
}
|
|
48501
48625
|
}
|
|
48502
48626
|
if (typeof opts.referrer === "string") {
|
|
48503
48627
|
try {
|
|
48504
|
-
|
|
48628
|
+
doc2.referrer = opts.referrer;
|
|
48505
48629
|
} catch (e) {
|
|
48506
48630
|
}
|
|
48507
48631
|
}
|
|
48508
48632
|
if (typeof opts.direction === "string") {
|
|
48509
48633
|
try {
|
|
48510
|
-
|
|
48634
|
+
doc2.documentElement.setAttribute("dir", opts.direction);
|
|
48511
48635
|
} catch (e) {
|
|
48512
48636
|
}
|
|
48513
48637
|
}
|
|
48514
48638
|
if (typeof opts.language === "string") {
|
|
48515
48639
|
try {
|
|
48516
|
-
|
|
48640
|
+
doc2.documentElement.setAttribute("lang", opts.language);
|
|
48517
48641
|
} catch (e) {
|
|
48518
48642
|
}
|
|
48519
48643
|
}
|
|
48520
48644
|
if (typeof opts.buildId === "string") {
|
|
48521
48645
|
try {
|
|
48522
|
-
|
|
48646
|
+
doc2.documentElement.setAttribute("data-stencil-build", opts.buildId);
|
|
48523
48647
|
} catch (e) {
|
|
48524
48648
|
}
|
|
48525
48649
|
}
|
|
48526
48650
|
try {
|
|
48527
|
-
|
|
48651
|
+
win2.customElements = null;
|
|
48528
48652
|
} catch (e) {
|
|
48529
48653
|
}
|
|
48530
48654
|
if (opts.constrainTimeouts) {
|
|
48531
|
-
constrainTimeouts(
|
|
48655
|
+
constrainTimeouts(win2);
|
|
48532
48656
|
}
|
|
48533
|
-
runtimeLogging(
|
|
48534
|
-
return
|
|
48657
|
+
runtimeLogging(win2, opts, results);
|
|
48658
|
+
return win2;
|
|
48535
48659
|
}
|
|
48536
48660
|
|
|
48537
48661
|
// src/hydrate/runner/render.ts
|
|
@@ -48548,44 +48672,44 @@ function renderToString(html, options, asStream) {
|
|
|
48548
48672
|
opts.constrainTimeouts = false;
|
|
48549
48673
|
return hydrateDocument(html, opts, asStream);
|
|
48550
48674
|
}
|
|
48551
|
-
function hydrateDocument(
|
|
48675
|
+
function hydrateDocument(doc2, options, asStream) {
|
|
48552
48676
|
const opts = normalizeHydrateOptions(options);
|
|
48553
|
-
let
|
|
48677
|
+
let win2 = null;
|
|
48554
48678
|
const results = generateHydrateResults(opts);
|
|
48555
48679
|
if (hasError(results.diagnostics)) {
|
|
48556
48680
|
return Promise.resolve(results);
|
|
48557
48681
|
}
|
|
48558
|
-
if (typeof
|
|
48682
|
+
if (typeof doc2 === "string") {
|
|
48559
48683
|
try {
|
|
48560
48684
|
opts.destroyWindow = true;
|
|
48561
48685
|
opts.destroyDocument = true;
|
|
48562
|
-
|
|
48686
|
+
win2 = new MockWindow(doc2);
|
|
48563
48687
|
if (!asStream) {
|
|
48564
|
-
return render(
|
|
48688
|
+
return render(win2, opts, results).then(() => results);
|
|
48565
48689
|
}
|
|
48566
|
-
return renderStream(
|
|
48690
|
+
return renderStream(win2, opts, results);
|
|
48567
48691
|
} catch (e) {
|
|
48568
|
-
if (
|
|
48569
|
-
|
|
48692
|
+
if (win2 && win2.close) {
|
|
48693
|
+
win2.close();
|
|
48570
48694
|
}
|
|
48571
|
-
|
|
48695
|
+
win2 = null;
|
|
48572
48696
|
renderCatchError(results, e);
|
|
48573
48697
|
return Promise.resolve(results);
|
|
48574
48698
|
}
|
|
48575
48699
|
}
|
|
48576
|
-
if (isValidDocument(
|
|
48700
|
+
if (isValidDocument(doc2)) {
|
|
48577
48701
|
try {
|
|
48578
48702
|
opts.destroyDocument = false;
|
|
48579
|
-
|
|
48703
|
+
win2 = patchDomImplementation(doc2, opts);
|
|
48580
48704
|
if (!asStream) {
|
|
48581
|
-
return render(
|
|
48705
|
+
return render(win2, opts, results).then(() => results);
|
|
48582
48706
|
}
|
|
48583
|
-
return renderStream(
|
|
48707
|
+
return renderStream(win2, opts, results);
|
|
48584
48708
|
} catch (e) {
|
|
48585
|
-
if (
|
|
48586
|
-
|
|
48709
|
+
if (win2 && win2.close) {
|
|
48710
|
+
win2.close();
|
|
48587
48711
|
}
|
|
48588
|
-
|
|
48712
|
+
win2 = null;
|
|
48589
48713
|
renderCatchError(results, e);
|
|
48590
48714
|
return Promise.resolve(results);
|
|
48591
48715
|
}
|
|
@@ -48593,75 +48717,81 @@ function hydrateDocument(doc, options, asStream) {
|
|
|
48593
48717
|
renderBuildError(results, `Invalid html or document. Must be either a valid "html" string, or DOM "document".`);
|
|
48594
48718
|
return Promise.resolve(results);
|
|
48595
48719
|
}
|
|
48596
|
-
async function render(
|
|
48720
|
+
async function render(win2, opts, results) {
|
|
48597
48721
|
if ("process" in globalThis && typeof process.on === "function" && !process.__stencilErrors) {
|
|
48598
48722
|
process.__stencilErrors = true;
|
|
48599
48723
|
process.on("unhandledRejection", (e) => {
|
|
48600
48724
|
console.log("unhandledRejection", e);
|
|
48601
48725
|
});
|
|
48602
48726
|
}
|
|
48603
|
-
initializeWindow(
|
|
48727
|
+
initializeWindow(win2, win2.document, opts, results);
|
|
48604
48728
|
const beforeHydrateFn = typeof opts.beforeHydrate === "function" ? opts.beforeHydrate : NOOP;
|
|
48605
48729
|
try {
|
|
48606
|
-
await Promise.resolve(beforeHydrateFn(
|
|
48607
|
-
return new Promise((resolve) =>
|
|
48730
|
+
await Promise.resolve(beforeHydrateFn(win2.document));
|
|
48731
|
+
return new Promise((resolve) => {
|
|
48732
|
+
if (Array.isArray(opts.modes)) {
|
|
48733
|
+
modeResolutionChain.length = 0;
|
|
48734
|
+
opts.modes.forEach((mode) => setMode(mode));
|
|
48735
|
+
}
|
|
48736
|
+
return hydrateFactory(win2, opts, results, afterHydrate, resolve);
|
|
48737
|
+
});
|
|
48608
48738
|
} catch (e) {
|
|
48609
48739
|
renderCatchError(results, e);
|
|
48610
|
-
return finalizeHydrate(
|
|
48740
|
+
return finalizeHydrate(win2, win2.document, opts, results);
|
|
48611
48741
|
}
|
|
48612
48742
|
}
|
|
48613
|
-
function renderStream(
|
|
48743
|
+
function renderStream(win2, opts, results) {
|
|
48614
48744
|
async function* processRender() {
|
|
48615
|
-
const renderResult = await render(
|
|
48745
|
+
const renderResult = await render(win2, opts, results);
|
|
48616
48746
|
yield renderResult.html;
|
|
48617
48747
|
}
|
|
48618
48748
|
return Readable.from(processRender());
|
|
48619
48749
|
}
|
|
48620
|
-
async function afterHydrate(
|
|
48750
|
+
async function afterHydrate(win2, opts, results, resolve) {
|
|
48621
48751
|
const afterHydrateFn = typeof opts.afterHydrate === "function" ? opts.afterHydrate : NOOP;
|
|
48622
48752
|
try {
|
|
48623
|
-
await Promise.resolve(afterHydrateFn(
|
|
48624
|
-
return resolve(finalizeHydrate(
|
|
48753
|
+
await Promise.resolve(afterHydrateFn(win2.document));
|
|
48754
|
+
return resolve(finalizeHydrate(win2, win2.document, opts, results));
|
|
48625
48755
|
} catch (e) {
|
|
48626
48756
|
renderCatchError(results, e);
|
|
48627
|
-
return resolve(finalizeHydrate(
|
|
48757
|
+
return resolve(finalizeHydrate(win2, win2.document, opts, results));
|
|
48628
48758
|
}
|
|
48629
48759
|
}
|
|
48630
|
-
function finalizeHydrate(
|
|
48760
|
+
function finalizeHydrate(win2, doc2, opts, results) {
|
|
48631
48761
|
try {
|
|
48632
|
-
inspectElement(results,
|
|
48762
|
+
inspectElement(results, doc2.documentElement, 0);
|
|
48633
48763
|
if (opts.removeUnusedStyles !== false) {
|
|
48634
48764
|
try {
|
|
48635
|
-
removeUnusedStyles(
|
|
48765
|
+
removeUnusedStyles(doc2, results.diagnostics);
|
|
48636
48766
|
} catch (e) {
|
|
48637
48767
|
renderCatchError(results, e);
|
|
48638
48768
|
}
|
|
48639
48769
|
}
|
|
48640
48770
|
if (typeof opts.title === "string") {
|
|
48641
48771
|
try {
|
|
48642
|
-
|
|
48772
|
+
doc2.title = opts.title;
|
|
48643
48773
|
} catch (e) {
|
|
48644
48774
|
renderCatchError(results, e);
|
|
48645
48775
|
}
|
|
48646
48776
|
}
|
|
48647
|
-
results.title =
|
|
48777
|
+
results.title = doc2.title;
|
|
48648
48778
|
if (opts.removeScripts) {
|
|
48649
|
-
removeScripts(
|
|
48779
|
+
removeScripts(doc2.documentElement);
|
|
48650
48780
|
}
|
|
48651
48781
|
try {
|
|
48652
|
-
updateCanonicalLink(
|
|
48782
|
+
updateCanonicalLink(doc2, opts.canonicalUrl);
|
|
48653
48783
|
} catch (e) {
|
|
48654
48784
|
renderCatchError(results, e);
|
|
48655
48785
|
}
|
|
48656
48786
|
try {
|
|
48657
|
-
relocateMetaCharset(
|
|
48787
|
+
relocateMetaCharset(doc2);
|
|
48658
48788
|
} catch (e) {
|
|
48659
48789
|
}
|
|
48660
48790
|
if (!hasError(results.diagnostics)) {
|
|
48661
48791
|
results.httpStatus = 200;
|
|
48662
48792
|
}
|
|
48663
48793
|
try {
|
|
48664
|
-
const metaStatus =
|
|
48794
|
+
const metaStatus = doc2.head.querySelector('meta[http-equiv="status"]');
|
|
48665
48795
|
if (metaStatus != null) {
|
|
48666
48796
|
const metaStatusContent = metaStatus.getAttribute("content");
|
|
48667
48797
|
if (metaStatusContent && metaStatusContent.length > 0) {
|
|
@@ -48671,35 +48801,35 @@ function finalizeHydrate(win, doc, opts, results) {
|
|
|
48671
48801
|
} catch (e) {
|
|
48672
48802
|
}
|
|
48673
48803
|
if (opts.clientHydrateAnnotations) {
|
|
48674
|
-
|
|
48804
|
+
doc2.documentElement.classList.add("hydrated");
|
|
48675
48805
|
}
|
|
48676
48806
|
if (opts.serializeToHtml) {
|
|
48677
|
-
results.html = serializeDocumentToString(
|
|
48807
|
+
results.html = serializeDocumentToString(doc2, opts);
|
|
48678
48808
|
}
|
|
48679
48809
|
} catch (e) {
|
|
48680
48810
|
renderCatchError(results, e);
|
|
48681
48811
|
}
|
|
48682
|
-
destroyWindow(
|
|
48812
|
+
destroyWindow(win2, doc2, opts, results);
|
|
48683
48813
|
return results;
|
|
48684
48814
|
}
|
|
48685
|
-
function destroyWindow(
|
|
48815
|
+
function destroyWindow(win2, doc2, opts, results) {
|
|
48686
48816
|
if (!opts.destroyWindow) {
|
|
48687
48817
|
return;
|
|
48688
48818
|
}
|
|
48689
48819
|
try {
|
|
48690
48820
|
if (!opts.destroyDocument) {
|
|
48691
|
-
|
|
48692
|
-
|
|
48821
|
+
win2.document = null;
|
|
48822
|
+
doc2.defaultView = null;
|
|
48693
48823
|
}
|
|
48694
|
-
if (
|
|
48695
|
-
|
|
48824
|
+
if (win2.close) {
|
|
48825
|
+
win2.close();
|
|
48696
48826
|
}
|
|
48697
48827
|
} catch (e) {
|
|
48698
48828
|
renderCatchError(results, e);
|
|
48699
48829
|
}
|
|
48700
48830
|
}
|
|
48701
|
-
function serializeDocumentToString(
|
|
48702
|
-
return serializeNodeToHtml(
|
|
48831
|
+
function serializeDocumentToString(doc2, opts) {
|
|
48832
|
+
return serializeNodeToHtml(doc2, {
|
|
48703
48833
|
approximateLineWidth: opts.approximateLineWidth,
|
|
48704
48834
|
outerHtml: false,
|
|
48705
48835
|
prettyHtml: opts.prettyHtml,
|
|
@@ -48711,8 +48841,8 @@ function serializeDocumentToString(doc, opts) {
|
|
|
48711
48841
|
fullDocument: opts.fullDocument
|
|
48712
48842
|
});
|
|
48713
48843
|
}
|
|
48714
|
-
function isValidDocument(
|
|
48715
|
-
return
|
|
48844
|
+
function isValidDocument(doc2) {
|
|
48845
|
+
return doc2 != null && doc2.nodeType === 9 && doc2.documentElement != null && doc2.documentElement.nodeType === 1 && doc2.body != null && doc2.body.nodeType === 1;
|
|
48716
48846
|
}
|
|
48717
48847
|
function removeScripts(elm) {
|
|
48718
48848
|
const children = elm.children;
|