native-fn 1.1.3 → 1.1.4
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/dist/native.cjs +1 -1
- package/dist/native.min.cjs +1 -1
- package/dist/native.min.mjs +1 -1
- package/dist/native.mjs +1 -1
- package/dist/native.umd.js +1 -1
- package/dist/native.umd.min.js +1 -1
- package/dist/plugin/appearance/index.cjs +732 -0
- package/dist/plugin/appearance/index.d.ts +22 -0
- package/dist/plugin/appearance/index.mjs +726 -0
- package/dist/plugin/appearance/src/constants/index.d.ts +1 -0
- package/dist/plugin/appearance/src/errors/not-supported-error.d.ts +2 -0
- package/dist/plugin/appearance/src/errors/permission-not-granted-error.d.ts +2 -0
- package/dist/plugin/appearance/src/plugin/appearance/constants/index.d.ts +8 -0
- package/dist/plugin/appearance/src/plugin/appearance/cores/index.d.ts +3 -0
- package/dist/plugin/appearance/src/plugin/appearance/index.d.ts +4 -0
- package/dist/plugin/appearance/src/plugin/appearance/types/appearance.d.ts +9 -0
- package/dist/plugin/appearance/src/plugin/appearance/types/index.d.ts +1 -0
- package/dist/plugin/appearance/src/plugin/badge/cores/index.d.ts +3 -0
- package/dist/plugin/appearance/src/plugin/badge/index.d.ts +3 -0
- package/dist/plugin/appearance/src/plugin/badge/types/badge.d.ts +10 -0
- package/dist/plugin/appearance/src/plugin/badge/types/index.d.ts +1 -0
- package/dist/plugin/appearance/src/plugin/battery/cores/index.d.ts +3 -0
- package/dist/plugin/appearance/src/plugin/battery/index.d.ts +3 -0
- package/dist/plugin/appearance/src/plugin/battery/types/battery.d.ts +26 -0
- package/dist/plugin/appearance/src/plugin/battery/types/index.d.ts +1 -0
- package/dist/plugin/appearance/src/plugin/clipboard/cores/index.d.ts +3 -0
- package/dist/plugin/appearance/src/plugin/clipboard/index.d.ts +3 -0
- package/dist/plugin/appearance/src/plugin/clipboard/types/clipboard.d.ts +6 -0
- package/dist/plugin/appearance/src/plugin/clipboard/types/index.d.ts +1 -0
- package/dist/plugin/appearance/src/plugin/dimension/constants/index.d.ts +44 -0
- package/dist/plugin/appearance/src/plugin/dimension/cores/index.d.ts +3 -0
- package/dist/plugin/appearance/src/plugin/dimension/index.d.ts +4 -0
- package/dist/plugin/appearance/src/plugin/dimension/types/dimensions.d.ts +34 -0
- package/dist/plugin/appearance/src/plugin/dimension/types/index.d.ts +1 -0
- package/dist/plugin/appearance/src/plugin/dimension/utils/create-env-observer.d.ts +24 -0
- package/dist/plugin/appearance/src/plugin/fullscreen/cores/index.d.ts +37 -0
- package/dist/plugin/appearance/src/plugin/fullscreen/index.d.ts +3 -0
- package/dist/plugin/appearance/src/plugin/fullscreen/types/fullscreen.d.ts +15 -0
- package/dist/plugin/appearance/src/plugin/fullscreen/types/index.d.ts +1 -0
- package/dist/plugin/appearance/src/plugin/geolocation/cores/index.d.ts +3 -0
- package/dist/plugin/appearance/src/plugin/geolocation/index.d.ts +3 -0
- package/dist/plugin/appearance/src/plugin/geolocation/types/geolocation.d.ts +12 -0
- package/dist/plugin/appearance/src/plugin/geolocation/types/index.d.ts +1 -0
- package/dist/plugin/appearance/src/plugin/notification/cores/index.d.ts +3 -0
- package/dist/plugin/appearance/src/plugin/notification/index.d.ts +3 -0
- package/dist/plugin/appearance/src/plugin/notification/types/index.d.ts +1 -0
- package/dist/plugin/appearance/src/plugin/notification/types/notification.d.ts +27 -0
- package/dist/plugin/appearance/src/plugin/open/constants/index.d.ts +40 -0
- package/dist/plugin/appearance/src/plugin/open/cores/index.d.ts +55 -0
- package/dist/plugin/appearance/src/plugin/open/errors/url-open-error.d.ts +2 -0
- package/dist/plugin/appearance/src/plugin/open/errors/user-cancel-error.d.ts +2 -0
- package/dist/plugin/appearance/src/plugin/open/index.d.ts +4 -0
- package/dist/plugin/appearance/src/plugin/open/types/index.d.ts +1 -0
- package/dist/plugin/appearance/src/plugin/open/types/open.d.ts +187 -0
- package/dist/plugin/appearance/src/plugin/permission/constants/index.d.ts +22 -0
- package/dist/plugin/appearance/src/plugin/permission/cores/index.d.ts +3 -0
- package/dist/plugin/appearance/src/plugin/permission/index.d.ts +3 -0
- package/dist/plugin/appearance/src/plugin/permission/types/index.d.ts +1 -0
- package/dist/plugin/appearance/src/plugin/permission/types/permission.d.ts +10 -0
- package/dist/plugin/appearance/src/plugin/pip/cores/index.d.ts +12 -0
- package/dist/plugin/appearance/src/plugin/pip/index.d.ts +3 -0
- package/dist/plugin/appearance/src/plugin/pip/types/index.d.ts +1 -0
- package/dist/plugin/appearance/src/plugin/pip/types/pip.d.ts +15 -0
- package/dist/plugin/appearance/src/plugin/platform/constants/index.d.ts +42 -0
- package/dist/plugin/appearance/src/plugin/platform/cores/index.d.ts +65 -0
- package/dist/plugin/appearance/src/plugin/platform/index.d.ts +4 -0
- package/dist/plugin/appearance/src/plugin/platform/types/index.d.ts +1 -0
- package/dist/plugin/appearance/src/plugin/platform/types/platform.d.ts +42 -0
- package/dist/plugin/appearance/src/plugin/theme/constants/index.d.ts +2 -0
- package/dist/plugin/appearance/src/plugin/theme/cores/index.d.ts +3 -0
- package/dist/plugin/appearance/src/plugin/theme/index.d.ts +3 -0
- package/dist/plugin/appearance/src/plugin/theme/types/index.d.ts +1 -0
- package/dist/plugin/appearance/src/plugin/theme/types/theme.d.ts +6 -0
- package/dist/plugin/appearance/src/plugin/vibration/cores/index.d.ts +3 -0
- package/dist/plugin/appearance/src/plugin/vibration/index.d.ts +3 -0
- package/dist/plugin/appearance/src/plugin/vibration/types/index.d.ts +1 -0
- package/dist/plugin/appearance/src/plugin/vibration/types/vibration.d.ts +10 -0
- package/dist/plugin/appearance/src/types/event-listener.d.ts +35 -0
- package/dist/plugin/appearance/src/types/index.d.ts +4 -0
- package/dist/plugin/appearance/src/types/listener-entry.d.ts +5 -0
- package/dist/plugin/appearance/src/types/native.d.ts +31 -0
- package/dist/plugin/appearance/src/types/subscription-manager.d.ts +4 -0
- package/dist/plugin/appearance/src/utils/assign.d.ts +1 -0
- package/dist/plugin/appearance/src/utils/compare-version.d.ts +1 -0
- package/dist/plugin/appearance/src/utils/create-custom-error.d.ts +6 -0
- package/dist/plugin/appearance/src/utils/create-hidden-element.d.ts +1 -0
- package/dist/plugin/appearance/src/utils/create-subscription-manager.d.ts +2 -0
- package/dist/plugin/appearance/src/utils/defer.d.ts +1 -0
- package/dist/plugin/appearance/src/utils/dispatch-click-event.d.ts +1 -0
- package/dist/plugin/appearance/src/utils/event-listener.d.ts +3 -0
- package/dist/plugin/appearance/src/utils/get-topmost-window.d.ts +1 -0
- package/dist/plugin/appearance/src/utils/is-secure-context.d.ts +1 -0
- package/dist/plugin/appearance/src/utils/keys.d.ts +1 -0
- package/dist/plugin/appearance/src/utils/now.d.ts +1 -0
- package/dist/plugin/appearance/src/utils/pad-start.d.ts +1 -0
- package/dist/plugin/appearance/src/utils/random-string.d.ts +1 -0
- package/dist/plugin/appearance/src/utils/request.d.ts +6 -0
- package/dist/plugin/appearance/src/utils/set-style.d.ts +3 -0
- package/dist/plugin/badge/index.cjs +110 -0
- package/dist/plugin/badge/index.d.ts +16 -0
- package/dist/plugin/badge/index.mjs +108 -0
- package/dist/plugin/badge/src/constants/index.d.ts +1 -0
- package/dist/plugin/badge/src/errors/not-supported-error.d.ts +2 -0
- package/dist/plugin/badge/src/errors/permission-not-granted-error.d.ts +2 -0
- package/dist/plugin/badge/src/plugin/appearance/constants/index.d.ts +8 -0
- package/dist/plugin/badge/src/plugin/appearance/cores/index.d.ts +3 -0
- package/dist/plugin/badge/src/plugin/appearance/index.d.ts +4 -0
- package/dist/plugin/badge/src/plugin/appearance/types/appearance.d.ts +9 -0
- package/dist/plugin/badge/src/plugin/appearance/types/index.d.ts +1 -0
- package/dist/plugin/badge/src/plugin/badge/cores/index.d.ts +3 -0
- package/dist/plugin/badge/src/plugin/badge/index.d.ts +3 -0
- package/dist/plugin/badge/src/plugin/badge/types/badge.d.ts +10 -0
- package/dist/plugin/badge/src/plugin/badge/types/index.d.ts +1 -0
- package/dist/plugin/badge/src/plugin/battery/cores/index.d.ts +3 -0
- package/dist/plugin/badge/src/plugin/battery/index.d.ts +3 -0
- package/dist/plugin/badge/src/plugin/battery/types/battery.d.ts +26 -0
- package/dist/plugin/badge/src/plugin/battery/types/index.d.ts +1 -0
- package/dist/plugin/badge/src/plugin/clipboard/cores/index.d.ts +3 -0
- package/dist/plugin/badge/src/plugin/clipboard/index.d.ts +3 -0
- package/dist/plugin/badge/src/plugin/clipboard/types/clipboard.d.ts +6 -0
- package/dist/plugin/badge/src/plugin/clipboard/types/index.d.ts +1 -0
- package/dist/plugin/badge/src/plugin/dimension/constants/index.d.ts +44 -0
- package/dist/plugin/badge/src/plugin/dimension/cores/index.d.ts +3 -0
- package/dist/plugin/badge/src/plugin/dimension/index.d.ts +4 -0
- package/dist/plugin/badge/src/plugin/dimension/types/dimensions.d.ts +34 -0
- package/dist/plugin/badge/src/plugin/dimension/types/index.d.ts +1 -0
- package/dist/plugin/badge/src/plugin/dimension/utils/create-env-observer.d.ts +24 -0
- package/dist/plugin/badge/src/plugin/fullscreen/cores/index.d.ts +37 -0
- package/dist/plugin/badge/src/plugin/fullscreen/index.d.ts +3 -0
- package/dist/plugin/badge/src/plugin/fullscreen/types/fullscreen.d.ts +15 -0
- package/dist/plugin/badge/src/plugin/fullscreen/types/index.d.ts +1 -0
- package/dist/plugin/badge/src/plugin/geolocation/cores/index.d.ts +3 -0
- package/dist/plugin/badge/src/plugin/geolocation/index.d.ts +3 -0
- package/dist/plugin/badge/src/plugin/geolocation/types/geolocation.d.ts +12 -0
- package/dist/plugin/badge/src/plugin/geolocation/types/index.d.ts +1 -0
- package/dist/plugin/badge/src/plugin/notification/cores/index.d.ts +3 -0
- package/dist/plugin/badge/src/plugin/notification/index.d.ts +3 -0
- package/dist/plugin/badge/src/plugin/notification/types/index.d.ts +1 -0
- package/dist/plugin/badge/src/plugin/notification/types/notification.d.ts +27 -0
- package/dist/plugin/badge/src/plugin/open/constants/index.d.ts +40 -0
- package/dist/plugin/badge/src/plugin/open/cores/index.d.ts +55 -0
- package/dist/plugin/badge/src/plugin/open/errors/url-open-error.d.ts +2 -0
- package/dist/plugin/badge/src/plugin/open/errors/user-cancel-error.d.ts +2 -0
- package/dist/plugin/badge/src/plugin/open/index.d.ts +4 -0
- package/dist/plugin/badge/src/plugin/open/types/index.d.ts +1 -0
- package/dist/plugin/badge/src/plugin/open/types/open.d.ts +187 -0
- package/dist/plugin/badge/src/plugin/permission/constants/index.d.ts +22 -0
- package/dist/plugin/badge/src/plugin/permission/cores/index.d.ts +3 -0
- package/dist/plugin/badge/src/plugin/permission/index.d.ts +3 -0
- package/dist/plugin/badge/src/plugin/permission/types/index.d.ts +1 -0
- package/dist/plugin/badge/src/plugin/permission/types/permission.d.ts +10 -0
- package/dist/plugin/badge/src/plugin/pip/cores/index.d.ts +12 -0
- package/dist/plugin/badge/src/plugin/pip/index.d.ts +3 -0
- package/dist/plugin/badge/src/plugin/pip/types/index.d.ts +1 -0
- package/dist/plugin/badge/src/plugin/pip/types/pip.d.ts +15 -0
- package/dist/plugin/badge/src/plugin/platform/constants/index.d.ts +42 -0
- package/dist/plugin/badge/src/plugin/platform/cores/index.d.ts +65 -0
- package/dist/plugin/badge/src/plugin/platform/index.d.ts +4 -0
- package/dist/plugin/badge/src/plugin/platform/types/index.d.ts +1 -0
- package/dist/plugin/badge/src/plugin/platform/types/platform.d.ts +42 -0
- package/dist/plugin/badge/src/plugin/theme/constants/index.d.ts +2 -0
- package/dist/plugin/badge/src/plugin/theme/cores/index.d.ts +3 -0
- package/dist/plugin/badge/src/plugin/theme/index.d.ts +3 -0
- package/dist/plugin/badge/src/plugin/theme/types/index.d.ts +1 -0
- package/dist/plugin/badge/src/plugin/theme/types/theme.d.ts +6 -0
- package/dist/plugin/badge/src/plugin/vibration/cores/index.d.ts +3 -0
- package/dist/plugin/badge/src/plugin/vibration/index.d.ts +3 -0
- package/dist/plugin/badge/src/plugin/vibration/types/index.d.ts +1 -0
- package/dist/plugin/badge/src/plugin/vibration/types/vibration.d.ts +10 -0
- package/dist/plugin/badge/src/types/event-listener.d.ts +35 -0
- package/dist/plugin/badge/src/types/index.d.ts +4 -0
- package/dist/plugin/badge/src/types/listener-entry.d.ts +5 -0
- package/dist/plugin/badge/src/types/native.d.ts +31 -0
- package/dist/plugin/badge/src/types/subscription-manager.d.ts +4 -0
- package/dist/plugin/badge/src/utils/assign.d.ts +1 -0
- package/dist/plugin/badge/src/utils/compare-version.d.ts +1 -0
- package/dist/plugin/badge/src/utils/create-custom-error.d.ts +6 -0
- package/dist/plugin/badge/src/utils/create-hidden-element.d.ts +1 -0
- package/dist/plugin/badge/src/utils/create-subscription-manager.d.ts +2 -0
- package/dist/plugin/badge/src/utils/defer.d.ts +1 -0
- package/dist/plugin/badge/src/utils/dispatch-click-event.d.ts +1 -0
- package/dist/plugin/badge/src/utils/event-listener.d.ts +3 -0
- package/dist/plugin/badge/src/utils/get-topmost-window.d.ts +1 -0
- package/dist/plugin/badge/src/utils/is-secure-context.d.ts +1 -0
- package/dist/plugin/badge/src/utils/keys.d.ts +1 -0
- package/dist/plugin/badge/src/utils/now.d.ts +1 -0
- package/dist/plugin/badge/src/utils/pad-start.d.ts +1 -0
- package/dist/plugin/badge/src/utils/random-string.d.ts +1 -0
- package/dist/plugin/badge/src/utils/request.d.ts +6 -0
- package/dist/plugin/badge/src/utils/set-style.d.ts +3 -0
- package/dist/plugin/battery/index.cjs +402 -0
- package/dist/plugin/battery/index.d.ts +32 -0
- package/dist/plugin/battery/index.mjs +400 -0
- package/dist/plugin/battery/src/constants/index.d.ts +1 -0
- package/dist/plugin/battery/src/errors/not-supported-error.d.ts +2 -0
- package/dist/plugin/battery/src/errors/permission-not-granted-error.d.ts +2 -0
- package/dist/plugin/battery/src/plugin/appearance/constants/index.d.ts +8 -0
- package/dist/plugin/battery/src/plugin/appearance/cores/index.d.ts +3 -0
- package/dist/plugin/battery/src/plugin/appearance/index.d.ts +4 -0
- package/dist/plugin/battery/src/plugin/appearance/types/appearance.d.ts +9 -0
- package/dist/plugin/battery/src/plugin/appearance/types/index.d.ts +1 -0
- package/dist/plugin/battery/src/plugin/badge/cores/index.d.ts +3 -0
- package/dist/plugin/battery/src/plugin/badge/index.d.ts +3 -0
- package/dist/plugin/battery/src/plugin/badge/types/badge.d.ts +10 -0
- package/dist/plugin/battery/src/plugin/badge/types/index.d.ts +1 -0
- package/dist/plugin/battery/src/plugin/battery/cores/index.d.ts +3 -0
- package/dist/plugin/battery/src/plugin/battery/index.d.ts +3 -0
- package/dist/plugin/battery/src/plugin/battery/types/battery.d.ts +26 -0
- package/dist/plugin/battery/src/plugin/battery/types/index.d.ts +1 -0
- package/dist/plugin/battery/src/plugin/clipboard/cores/index.d.ts +3 -0
- package/dist/plugin/battery/src/plugin/clipboard/index.d.ts +3 -0
- package/dist/plugin/battery/src/plugin/clipboard/types/clipboard.d.ts +6 -0
- package/dist/plugin/battery/src/plugin/clipboard/types/index.d.ts +1 -0
- package/dist/plugin/battery/src/plugin/dimension/constants/index.d.ts +44 -0
- package/dist/plugin/battery/src/plugin/dimension/cores/index.d.ts +3 -0
- package/dist/plugin/battery/src/plugin/dimension/index.d.ts +4 -0
- package/dist/plugin/battery/src/plugin/dimension/types/dimensions.d.ts +34 -0
- package/dist/plugin/battery/src/plugin/dimension/types/index.d.ts +1 -0
- package/dist/plugin/battery/src/plugin/dimension/utils/create-env-observer.d.ts +24 -0
- package/dist/plugin/battery/src/plugin/fullscreen/cores/index.d.ts +37 -0
- package/dist/plugin/battery/src/plugin/fullscreen/index.d.ts +3 -0
- package/dist/plugin/battery/src/plugin/fullscreen/types/fullscreen.d.ts +15 -0
- package/dist/plugin/battery/src/plugin/fullscreen/types/index.d.ts +1 -0
- package/dist/plugin/battery/src/plugin/geolocation/cores/index.d.ts +3 -0
- package/dist/plugin/battery/src/plugin/geolocation/index.d.ts +3 -0
- package/dist/plugin/battery/src/plugin/geolocation/types/geolocation.d.ts +12 -0
- package/dist/plugin/battery/src/plugin/geolocation/types/index.d.ts +1 -0
- package/dist/plugin/battery/src/plugin/notification/cores/index.d.ts +3 -0
- package/dist/plugin/battery/src/plugin/notification/index.d.ts +3 -0
- package/dist/plugin/battery/src/plugin/notification/types/index.d.ts +1 -0
- package/dist/plugin/battery/src/plugin/notification/types/notification.d.ts +27 -0
- package/dist/plugin/battery/src/plugin/open/constants/index.d.ts +40 -0
- package/dist/plugin/battery/src/plugin/open/cores/index.d.ts +55 -0
- package/dist/plugin/battery/src/plugin/open/errors/url-open-error.d.ts +2 -0
- package/dist/plugin/battery/src/plugin/open/errors/user-cancel-error.d.ts +2 -0
- package/dist/plugin/battery/src/plugin/open/index.d.ts +4 -0
- package/dist/plugin/battery/src/plugin/open/types/index.d.ts +1 -0
- package/dist/plugin/battery/src/plugin/open/types/open.d.ts +187 -0
- package/dist/plugin/battery/src/plugin/permission/constants/index.d.ts +22 -0
- package/dist/plugin/battery/src/plugin/permission/cores/index.d.ts +3 -0
- package/dist/plugin/battery/src/plugin/permission/index.d.ts +3 -0
- package/dist/plugin/battery/src/plugin/permission/types/index.d.ts +1 -0
- package/dist/plugin/battery/src/plugin/permission/types/permission.d.ts +10 -0
- package/dist/plugin/battery/src/plugin/pip/cores/index.d.ts +12 -0
- package/dist/plugin/battery/src/plugin/pip/index.d.ts +3 -0
- package/dist/plugin/battery/src/plugin/pip/types/index.d.ts +1 -0
- package/dist/plugin/battery/src/plugin/pip/types/pip.d.ts +15 -0
- package/dist/plugin/battery/src/plugin/platform/constants/index.d.ts +42 -0
- package/dist/plugin/battery/src/plugin/platform/cores/index.d.ts +65 -0
- package/dist/plugin/battery/src/plugin/platform/index.d.ts +4 -0
- package/dist/plugin/battery/src/plugin/platform/types/index.d.ts +1 -0
- package/dist/plugin/battery/src/plugin/platform/types/platform.d.ts +42 -0
- package/dist/plugin/battery/src/plugin/theme/constants/index.d.ts +2 -0
- package/dist/plugin/battery/src/plugin/theme/cores/index.d.ts +3 -0
- package/dist/plugin/battery/src/plugin/theme/index.d.ts +3 -0
- package/dist/plugin/battery/src/plugin/theme/types/index.d.ts +1 -0
- package/dist/plugin/battery/src/plugin/theme/types/theme.d.ts +6 -0
- package/dist/plugin/battery/src/plugin/vibration/cores/index.d.ts +3 -0
- package/dist/plugin/battery/src/plugin/vibration/index.d.ts +3 -0
- package/dist/plugin/battery/src/plugin/vibration/types/index.d.ts +1 -0
- package/dist/plugin/battery/src/plugin/vibration/types/vibration.d.ts +10 -0
- package/dist/plugin/battery/src/types/event-listener.d.ts +35 -0
- package/dist/plugin/battery/src/types/index.d.ts +4 -0
- package/dist/plugin/battery/src/types/listener-entry.d.ts +5 -0
- package/dist/plugin/battery/src/types/native.d.ts +31 -0
- package/dist/plugin/battery/src/types/subscription-manager.d.ts +4 -0
- package/dist/plugin/battery/src/utils/assign.d.ts +1 -0
- package/dist/plugin/battery/src/utils/compare-version.d.ts +1 -0
- package/dist/plugin/battery/src/utils/create-custom-error.d.ts +6 -0
- package/dist/plugin/battery/src/utils/create-hidden-element.d.ts +1 -0
- package/dist/plugin/battery/src/utils/create-subscription-manager.d.ts +2 -0
- package/dist/plugin/battery/src/utils/defer.d.ts +1 -0
- package/dist/plugin/battery/src/utils/dispatch-click-event.d.ts +1 -0
- package/dist/plugin/battery/src/utils/event-listener.d.ts +3 -0
- package/dist/plugin/battery/src/utils/get-topmost-window.d.ts +1 -0
- package/dist/plugin/battery/src/utils/is-secure-context.d.ts +1 -0
- package/dist/plugin/battery/src/utils/keys.d.ts +1 -0
- package/dist/plugin/battery/src/utils/now.d.ts +1 -0
- package/dist/plugin/battery/src/utils/pad-start.d.ts +1 -0
- package/dist/plugin/battery/src/utils/random-string.d.ts +1 -0
- package/dist/plugin/battery/src/utils/request.d.ts +6 -0
- package/dist/plugin/battery/src/utils/set-style.d.ts +3 -0
- package/dist/plugin/clipboard/index.cjs +621 -0
- package/dist/plugin/clipboard/index.d.ts +11 -0
- package/dist/plugin/clipboard/index.mjs +619 -0
- package/dist/plugin/clipboard/src/constants/index.d.ts +1 -0
- package/dist/plugin/clipboard/src/errors/not-supported-error.d.ts +2 -0
- package/dist/plugin/clipboard/src/errors/permission-not-granted-error.d.ts +2 -0
- package/dist/plugin/clipboard/src/plugin/appearance/constants/index.d.ts +8 -0
- package/dist/plugin/clipboard/src/plugin/appearance/cores/index.d.ts +3 -0
- package/dist/plugin/clipboard/src/plugin/appearance/index.d.ts +4 -0
- package/dist/plugin/clipboard/src/plugin/appearance/types/appearance.d.ts +9 -0
- package/dist/plugin/clipboard/src/plugin/appearance/types/index.d.ts +1 -0
- package/dist/plugin/clipboard/src/plugin/badge/cores/index.d.ts +3 -0
- package/dist/plugin/clipboard/src/plugin/badge/index.d.ts +3 -0
- package/dist/plugin/clipboard/src/plugin/badge/types/badge.d.ts +10 -0
- package/dist/plugin/clipboard/src/plugin/badge/types/index.d.ts +1 -0
- package/dist/plugin/clipboard/src/plugin/battery/cores/index.d.ts +3 -0
- package/dist/plugin/clipboard/src/plugin/battery/index.d.ts +3 -0
- package/dist/plugin/clipboard/src/plugin/battery/types/battery.d.ts +26 -0
- package/dist/plugin/clipboard/src/plugin/battery/types/index.d.ts +1 -0
- package/dist/plugin/clipboard/src/plugin/clipboard/cores/index.d.ts +3 -0
- package/dist/plugin/clipboard/src/plugin/clipboard/index.d.ts +3 -0
- package/dist/plugin/clipboard/src/plugin/clipboard/types/clipboard.d.ts +6 -0
- package/dist/plugin/clipboard/src/plugin/clipboard/types/index.d.ts +1 -0
- package/dist/plugin/clipboard/src/plugin/dimension/constants/index.d.ts +44 -0
- package/dist/plugin/clipboard/src/plugin/dimension/cores/index.d.ts +3 -0
- package/dist/plugin/clipboard/src/plugin/dimension/index.d.ts +4 -0
- package/dist/plugin/clipboard/src/plugin/dimension/types/dimensions.d.ts +34 -0
- package/dist/plugin/clipboard/src/plugin/dimension/types/index.d.ts +1 -0
- package/dist/plugin/clipboard/src/plugin/dimension/utils/create-env-observer.d.ts +24 -0
- package/dist/plugin/clipboard/src/plugin/fullscreen/cores/index.d.ts +37 -0
- package/dist/plugin/clipboard/src/plugin/fullscreen/index.d.ts +3 -0
- package/dist/plugin/clipboard/src/plugin/fullscreen/types/fullscreen.d.ts +15 -0
- package/dist/plugin/clipboard/src/plugin/fullscreen/types/index.d.ts +1 -0
- package/dist/plugin/clipboard/src/plugin/geolocation/cores/index.d.ts +3 -0
- package/dist/plugin/clipboard/src/plugin/geolocation/index.d.ts +3 -0
- package/dist/plugin/clipboard/src/plugin/geolocation/types/geolocation.d.ts +12 -0
- package/dist/plugin/clipboard/src/plugin/geolocation/types/index.d.ts +1 -0
- package/dist/plugin/clipboard/src/plugin/notification/cores/index.d.ts +3 -0
- package/dist/plugin/clipboard/src/plugin/notification/index.d.ts +3 -0
- package/dist/plugin/clipboard/src/plugin/notification/types/index.d.ts +1 -0
- package/dist/plugin/clipboard/src/plugin/notification/types/notification.d.ts +27 -0
- package/dist/plugin/clipboard/src/plugin/open/constants/index.d.ts +40 -0
- package/dist/plugin/clipboard/src/plugin/open/cores/index.d.ts +55 -0
- package/dist/plugin/clipboard/src/plugin/open/errors/url-open-error.d.ts +2 -0
- package/dist/plugin/clipboard/src/plugin/open/errors/user-cancel-error.d.ts +2 -0
- package/dist/plugin/clipboard/src/plugin/open/index.d.ts +4 -0
- package/dist/plugin/clipboard/src/plugin/open/types/index.d.ts +1 -0
- package/dist/plugin/clipboard/src/plugin/open/types/open.d.ts +187 -0
- package/dist/plugin/clipboard/src/plugin/permission/constants/index.d.ts +22 -0
- package/dist/plugin/clipboard/src/plugin/permission/cores/index.d.ts +3 -0
- package/dist/plugin/clipboard/src/plugin/permission/index.d.ts +3 -0
- package/dist/plugin/clipboard/src/plugin/permission/types/index.d.ts +1 -0
- package/dist/plugin/clipboard/src/plugin/permission/types/permission.d.ts +10 -0
- package/dist/plugin/clipboard/src/plugin/pip/cores/index.d.ts +12 -0
- package/dist/plugin/clipboard/src/plugin/pip/index.d.ts +3 -0
- package/dist/plugin/clipboard/src/plugin/pip/types/index.d.ts +1 -0
- package/dist/plugin/clipboard/src/plugin/pip/types/pip.d.ts +15 -0
- package/dist/plugin/clipboard/src/plugin/platform/constants/index.d.ts +42 -0
- package/dist/plugin/clipboard/src/plugin/platform/cores/index.d.ts +65 -0
- package/dist/plugin/clipboard/src/plugin/platform/index.d.ts +4 -0
- package/dist/plugin/clipboard/src/plugin/platform/types/index.d.ts +1 -0
- package/dist/plugin/clipboard/src/plugin/platform/types/platform.d.ts +42 -0
- package/dist/plugin/clipboard/src/plugin/theme/constants/index.d.ts +2 -0
- package/dist/plugin/clipboard/src/plugin/theme/cores/index.d.ts +3 -0
- package/dist/plugin/clipboard/src/plugin/theme/index.d.ts +3 -0
- package/dist/plugin/clipboard/src/plugin/theme/types/index.d.ts +1 -0
- package/dist/plugin/clipboard/src/plugin/theme/types/theme.d.ts +6 -0
- package/dist/plugin/clipboard/src/plugin/vibration/cores/index.d.ts +3 -0
- package/dist/plugin/clipboard/src/plugin/vibration/index.d.ts +3 -0
- package/dist/plugin/clipboard/src/plugin/vibration/types/index.d.ts +1 -0
- package/dist/plugin/clipboard/src/plugin/vibration/types/vibration.d.ts +10 -0
- package/dist/plugin/clipboard/src/types/event-listener.d.ts +35 -0
- package/dist/plugin/clipboard/src/types/index.d.ts +4 -0
- package/dist/plugin/clipboard/src/types/listener-entry.d.ts +5 -0
- package/dist/plugin/clipboard/src/types/native.d.ts +31 -0
- package/dist/plugin/clipboard/src/types/subscription-manager.d.ts +4 -0
- package/dist/plugin/clipboard/src/utils/assign.d.ts +1 -0
- package/dist/plugin/clipboard/src/utils/compare-version.d.ts +1 -0
- package/dist/plugin/clipboard/src/utils/create-custom-error.d.ts +6 -0
- package/dist/plugin/clipboard/src/utils/create-hidden-element.d.ts +1 -0
- package/dist/plugin/clipboard/src/utils/create-subscription-manager.d.ts +2 -0
- package/dist/plugin/clipboard/src/utils/defer.d.ts +1 -0
- package/dist/plugin/clipboard/src/utils/dispatch-click-event.d.ts +1 -0
- package/dist/plugin/clipboard/src/utils/event-listener.d.ts +3 -0
- package/dist/plugin/clipboard/src/utils/get-topmost-window.d.ts +1 -0
- package/dist/plugin/clipboard/src/utils/is-secure-context.d.ts +1 -0
- package/dist/plugin/clipboard/src/utils/keys.d.ts +1 -0
- package/dist/plugin/clipboard/src/utils/now.d.ts +1 -0
- package/dist/plugin/clipboard/src/utils/pad-start.d.ts +1 -0
- package/dist/plugin/clipboard/src/utils/random-string.d.ts +1 -0
- package/dist/plugin/clipboard/src/utils/request.d.ts +6 -0
- package/dist/plugin/clipboard/src/utils/set-style.d.ts +3 -0
- package/dist/plugin/dimension/index.cjs +737 -0
- package/dist/plugin/dimension/index.d.ts +82 -0
- package/dist/plugin/dimension/index.mjs +731 -0
- package/dist/plugin/dimension/src/constants/index.d.ts +1 -0
- package/dist/plugin/dimension/src/errors/not-supported-error.d.ts +2 -0
- package/dist/plugin/dimension/src/errors/permission-not-granted-error.d.ts +2 -0
- package/dist/plugin/dimension/src/plugin/appearance/constants/index.d.ts +8 -0
- package/dist/plugin/dimension/src/plugin/appearance/cores/index.d.ts +3 -0
- package/dist/plugin/dimension/src/plugin/appearance/index.d.ts +4 -0
- package/dist/plugin/dimension/src/plugin/appearance/types/appearance.d.ts +9 -0
- package/dist/plugin/dimension/src/plugin/appearance/types/index.d.ts +1 -0
- package/dist/plugin/dimension/src/plugin/badge/cores/index.d.ts +3 -0
- package/dist/plugin/dimension/src/plugin/badge/index.d.ts +3 -0
- package/dist/plugin/dimension/src/plugin/badge/types/badge.d.ts +10 -0
- package/dist/plugin/dimension/src/plugin/badge/types/index.d.ts +1 -0
- package/dist/plugin/dimension/src/plugin/battery/cores/index.d.ts +3 -0
- package/dist/plugin/dimension/src/plugin/battery/index.d.ts +3 -0
- package/dist/plugin/dimension/src/plugin/battery/types/battery.d.ts +26 -0
- package/dist/plugin/dimension/src/plugin/battery/types/index.d.ts +1 -0
- package/dist/plugin/dimension/src/plugin/clipboard/cores/index.d.ts +3 -0
- package/dist/plugin/dimension/src/plugin/clipboard/index.d.ts +3 -0
- package/dist/plugin/dimension/src/plugin/clipboard/types/clipboard.d.ts +6 -0
- package/dist/plugin/dimension/src/plugin/clipboard/types/index.d.ts +1 -0
- package/dist/plugin/dimension/src/plugin/dimension/constants/index.d.ts +44 -0
- package/dist/plugin/dimension/src/plugin/dimension/cores/index.d.ts +3 -0
- package/dist/plugin/dimension/src/plugin/dimension/index.d.ts +4 -0
- package/dist/plugin/dimension/src/plugin/dimension/types/dimensions.d.ts +34 -0
- package/dist/plugin/dimension/src/plugin/dimension/types/index.d.ts +1 -0
- package/dist/plugin/dimension/src/plugin/dimension/utils/create-env-observer.d.ts +24 -0
- package/dist/plugin/dimension/src/plugin/fullscreen/cores/index.d.ts +37 -0
- package/dist/plugin/dimension/src/plugin/fullscreen/index.d.ts +3 -0
- package/dist/plugin/dimension/src/plugin/fullscreen/types/fullscreen.d.ts +15 -0
- package/dist/plugin/dimension/src/plugin/fullscreen/types/index.d.ts +1 -0
- package/dist/plugin/dimension/src/plugin/geolocation/cores/index.d.ts +3 -0
- package/dist/plugin/dimension/src/plugin/geolocation/index.d.ts +3 -0
- package/dist/plugin/dimension/src/plugin/geolocation/types/geolocation.d.ts +12 -0
- package/dist/plugin/dimension/src/plugin/geolocation/types/index.d.ts +1 -0
- package/dist/plugin/dimension/src/plugin/notification/cores/index.d.ts +3 -0
- package/dist/plugin/dimension/src/plugin/notification/index.d.ts +3 -0
- package/dist/plugin/dimension/src/plugin/notification/types/index.d.ts +1 -0
- package/dist/plugin/dimension/src/plugin/notification/types/notification.d.ts +27 -0
- package/dist/plugin/dimension/src/plugin/open/constants/index.d.ts +40 -0
- package/dist/plugin/dimension/src/plugin/open/cores/index.d.ts +55 -0
- package/dist/plugin/dimension/src/plugin/open/errors/url-open-error.d.ts +2 -0
- package/dist/plugin/dimension/src/plugin/open/errors/user-cancel-error.d.ts +2 -0
- package/dist/plugin/dimension/src/plugin/open/index.d.ts +4 -0
- package/dist/plugin/dimension/src/plugin/open/types/index.d.ts +1 -0
- package/dist/plugin/dimension/src/plugin/open/types/open.d.ts +187 -0
- package/dist/plugin/dimension/src/plugin/permission/constants/index.d.ts +22 -0
- package/dist/plugin/dimension/src/plugin/permission/cores/index.d.ts +3 -0
- package/dist/plugin/dimension/src/plugin/permission/index.d.ts +3 -0
- package/dist/plugin/dimension/src/plugin/permission/types/index.d.ts +1 -0
- package/dist/plugin/dimension/src/plugin/permission/types/permission.d.ts +10 -0
- package/dist/plugin/dimension/src/plugin/pip/cores/index.d.ts +12 -0
- package/dist/plugin/dimension/src/plugin/pip/index.d.ts +3 -0
- package/dist/plugin/dimension/src/plugin/pip/types/index.d.ts +1 -0
- package/dist/plugin/dimension/src/plugin/pip/types/pip.d.ts +15 -0
- package/dist/plugin/dimension/src/plugin/platform/constants/index.d.ts +42 -0
- package/dist/plugin/dimension/src/plugin/platform/cores/index.d.ts +65 -0
- package/dist/plugin/dimension/src/plugin/platform/index.d.ts +4 -0
- package/dist/plugin/dimension/src/plugin/platform/types/index.d.ts +1 -0
- package/dist/plugin/dimension/src/plugin/platform/types/platform.d.ts +42 -0
- package/dist/plugin/dimension/src/plugin/theme/constants/index.d.ts +2 -0
- package/dist/plugin/dimension/src/plugin/theme/cores/index.d.ts +3 -0
- package/dist/plugin/dimension/src/plugin/theme/index.d.ts +3 -0
- package/dist/plugin/dimension/src/plugin/theme/types/index.d.ts +1 -0
- package/dist/plugin/dimension/src/plugin/theme/types/theme.d.ts +6 -0
- package/dist/plugin/dimension/src/plugin/vibration/cores/index.d.ts +3 -0
- package/dist/plugin/dimension/src/plugin/vibration/index.d.ts +3 -0
- package/dist/plugin/dimension/src/plugin/vibration/types/index.d.ts +1 -0
- package/dist/plugin/dimension/src/plugin/vibration/types/vibration.d.ts +10 -0
- package/dist/plugin/dimension/src/types/event-listener.d.ts +35 -0
- package/dist/plugin/dimension/src/types/index.d.ts +4 -0
- package/dist/plugin/dimension/src/types/listener-entry.d.ts +5 -0
- package/dist/plugin/dimension/src/types/native.d.ts +31 -0
- package/dist/plugin/dimension/src/types/subscription-manager.d.ts +4 -0
- package/dist/plugin/dimension/src/utils/assign.d.ts +1 -0
- package/dist/plugin/dimension/src/utils/compare-version.d.ts +1 -0
- package/dist/plugin/dimension/src/utils/create-custom-error.d.ts +6 -0
- package/dist/plugin/dimension/src/utils/create-hidden-element.d.ts +1 -0
- package/dist/plugin/dimension/src/utils/create-subscription-manager.d.ts +2 -0
- package/dist/plugin/dimension/src/utils/defer.d.ts +1 -0
- package/dist/plugin/dimension/src/utils/dispatch-click-event.d.ts +1 -0
- package/dist/plugin/dimension/src/utils/event-listener.d.ts +3 -0
- package/dist/plugin/dimension/src/utils/get-topmost-window.d.ts +1 -0
- package/dist/plugin/dimension/src/utils/is-secure-context.d.ts +1 -0
- package/dist/plugin/dimension/src/utils/keys.d.ts +1 -0
- package/dist/plugin/dimension/src/utils/now.d.ts +1 -0
- package/dist/plugin/dimension/src/utils/pad-start.d.ts +1 -0
- package/dist/plugin/dimension/src/utils/random-string.d.ts +1 -0
- package/dist/plugin/dimension/src/utils/request.d.ts +6 -0
- package/dist/plugin/dimension/src/utils/set-style.d.ts +3 -0
- package/dist/plugin/fullscreen/index.cjs +1035 -0
- package/dist/plugin/fullscreen/index.d.ts +55 -0
- package/dist/plugin/fullscreen/index.mjs +1033 -0
- package/dist/plugin/fullscreen/src/constants/index.d.ts +1 -0
- package/dist/plugin/fullscreen/src/errors/not-supported-error.d.ts +2 -0
- package/dist/plugin/fullscreen/src/errors/permission-not-granted-error.d.ts +2 -0
- package/dist/plugin/fullscreen/src/plugin/appearance/constants/index.d.ts +8 -0
- package/dist/plugin/fullscreen/src/plugin/appearance/cores/index.d.ts +3 -0
- package/dist/plugin/fullscreen/src/plugin/appearance/index.d.ts +4 -0
- package/dist/plugin/fullscreen/src/plugin/appearance/types/appearance.d.ts +9 -0
- package/dist/plugin/fullscreen/src/plugin/appearance/types/index.d.ts +1 -0
- package/dist/plugin/fullscreen/src/plugin/badge/cores/index.d.ts +3 -0
- package/dist/plugin/fullscreen/src/plugin/badge/index.d.ts +3 -0
- package/dist/plugin/fullscreen/src/plugin/badge/types/badge.d.ts +10 -0
- package/dist/plugin/fullscreen/src/plugin/badge/types/index.d.ts +1 -0
- package/dist/plugin/fullscreen/src/plugin/battery/cores/index.d.ts +3 -0
- package/dist/plugin/fullscreen/src/plugin/battery/index.d.ts +3 -0
- package/dist/plugin/fullscreen/src/plugin/battery/types/battery.d.ts +26 -0
- package/dist/plugin/fullscreen/src/plugin/battery/types/index.d.ts +1 -0
- package/dist/plugin/fullscreen/src/plugin/clipboard/cores/index.d.ts +3 -0
- package/dist/plugin/fullscreen/src/plugin/clipboard/index.d.ts +3 -0
- package/dist/plugin/fullscreen/src/plugin/clipboard/types/clipboard.d.ts +6 -0
- package/dist/plugin/fullscreen/src/plugin/clipboard/types/index.d.ts +1 -0
- package/dist/plugin/fullscreen/src/plugin/dimension/constants/index.d.ts +44 -0
- package/dist/plugin/fullscreen/src/plugin/dimension/cores/index.d.ts +3 -0
- package/dist/plugin/fullscreen/src/plugin/dimension/index.d.ts +4 -0
- package/dist/plugin/fullscreen/src/plugin/dimension/types/dimensions.d.ts +34 -0
- package/dist/plugin/fullscreen/src/plugin/dimension/types/index.d.ts +1 -0
- package/dist/plugin/fullscreen/src/plugin/dimension/utils/create-env-observer.d.ts +24 -0
- package/dist/plugin/fullscreen/src/plugin/fullscreen/cores/index.d.ts +37 -0
- package/dist/plugin/fullscreen/src/plugin/fullscreen/index.d.ts +3 -0
- package/dist/plugin/fullscreen/src/plugin/fullscreen/types/fullscreen.d.ts +15 -0
- package/dist/plugin/fullscreen/src/plugin/fullscreen/types/index.d.ts +1 -0
- package/dist/plugin/fullscreen/src/plugin/geolocation/cores/index.d.ts +3 -0
- package/dist/plugin/fullscreen/src/plugin/geolocation/index.d.ts +3 -0
- package/dist/plugin/fullscreen/src/plugin/geolocation/types/geolocation.d.ts +12 -0
- package/dist/plugin/fullscreen/src/plugin/geolocation/types/index.d.ts +1 -0
- package/dist/plugin/fullscreen/src/plugin/notification/cores/index.d.ts +3 -0
- package/dist/plugin/fullscreen/src/plugin/notification/index.d.ts +3 -0
- package/dist/plugin/fullscreen/src/plugin/notification/types/index.d.ts +1 -0
- package/dist/plugin/fullscreen/src/plugin/notification/types/notification.d.ts +27 -0
- package/dist/plugin/fullscreen/src/plugin/open/constants/index.d.ts +40 -0
- package/dist/plugin/fullscreen/src/plugin/open/cores/index.d.ts +55 -0
- package/dist/plugin/fullscreen/src/plugin/open/errors/url-open-error.d.ts +2 -0
- package/dist/plugin/fullscreen/src/plugin/open/errors/user-cancel-error.d.ts +2 -0
- package/dist/plugin/fullscreen/src/plugin/open/index.d.ts +4 -0
- package/dist/plugin/fullscreen/src/plugin/open/types/index.d.ts +1 -0
- package/dist/plugin/fullscreen/src/plugin/open/types/open.d.ts +187 -0
- package/dist/plugin/fullscreen/src/plugin/permission/constants/index.d.ts +22 -0
- package/dist/plugin/fullscreen/src/plugin/permission/cores/index.d.ts +3 -0
- package/dist/plugin/fullscreen/src/plugin/permission/index.d.ts +3 -0
- package/dist/plugin/fullscreen/src/plugin/permission/types/index.d.ts +1 -0
- package/dist/plugin/fullscreen/src/plugin/permission/types/permission.d.ts +10 -0
- package/dist/plugin/fullscreen/src/plugin/pip/cores/index.d.ts +12 -0
- package/dist/plugin/fullscreen/src/plugin/pip/index.d.ts +3 -0
- package/dist/plugin/fullscreen/src/plugin/pip/types/index.d.ts +1 -0
- package/dist/plugin/fullscreen/src/plugin/pip/types/pip.d.ts +15 -0
- package/dist/plugin/fullscreen/src/plugin/platform/constants/index.d.ts +42 -0
- package/dist/plugin/fullscreen/src/plugin/platform/cores/index.d.ts +65 -0
- package/dist/plugin/fullscreen/src/plugin/platform/index.d.ts +4 -0
- package/dist/plugin/fullscreen/src/plugin/platform/types/index.d.ts +1 -0
- package/dist/plugin/fullscreen/src/plugin/platform/types/platform.d.ts +42 -0
- package/dist/plugin/fullscreen/src/plugin/theme/constants/index.d.ts +2 -0
- package/dist/plugin/fullscreen/src/plugin/theme/cores/index.d.ts +3 -0
- package/dist/plugin/fullscreen/src/plugin/theme/index.d.ts +3 -0
- package/dist/plugin/fullscreen/src/plugin/theme/types/index.d.ts +1 -0
- package/dist/plugin/fullscreen/src/plugin/theme/types/theme.d.ts +6 -0
- package/dist/plugin/fullscreen/src/plugin/vibration/cores/index.d.ts +3 -0
- package/dist/plugin/fullscreen/src/plugin/vibration/index.d.ts +3 -0
- package/dist/plugin/fullscreen/src/plugin/vibration/types/index.d.ts +1 -0
- package/dist/plugin/fullscreen/src/plugin/vibration/types/vibration.d.ts +10 -0
- package/dist/plugin/fullscreen/src/types/event-listener.d.ts +35 -0
- package/dist/plugin/fullscreen/src/types/index.d.ts +4 -0
- package/dist/plugin/fullscreen/src/types/listener-entry.d.ts +5 -0
- package/dist/plugin/fullscreen/src/types/native.d.ts +31 -0
- package/dist/plugin/fullscreen/src/types/subscription-manager.d.ts +4 -0
- package/dist/plugin/fullscreen/src/utils/assign.d.ts +1 -0
- package/dist/plugin/fullscreen/src/utils/compare-version.d.ts +1 -0
- package/dist/plugin/fullscreen/src/utils/create-custom-error.d.ts +6 -0
- package/dist/plugin/fullscreen/src/utils/create-hidden-element.d.ts +1 -0
- package/dist/plugin/fullscreen/src/utils/create-subscription-manager.d.ts +2 -0
- package/dist/plugin/fullscreen/src/utils/defer.d.ts +1 -0
- package/dist/plugin/fullscreen/src/utils/dispatch-click-event.d.ts +1 -0
- package/dist/plugin/fullscreen/src/utils/event-listener.d.ts +3 -0
- package/dist/plugin/fullscreen/src/utils/get-topmost-window.d.ts +1 -0
- package/dist/plugin/fullscreen/src/utils/is-secure-context.d.ts +1 -0
- package/dist/plugin/fullscreen/src/utils/keys.d.ts +1 -0
- package/dist/plugin/fullscreen/src/utils/now.d.ts +1 -0
- package/dist/plugin/fullscreen/src/utils/pad-start.d.ts +1 -0
- package/dist/plugin/fullscreen/src/utils/random-string.d.ts +1 -0
- package/dist/plugin/fullscreen/src/utils/request.d.ts +6 -0
- package/dist/plugin/fullscreen/src/utils/set-style.d.ts +3 -0
- package/dist/plugin/geolocation/index.cjs +681 -0
- package/dist/plugin/geolocation/index.d.ts +19 -0
- package/dist/plugin/geolocation/index.mjs +679 -0
- package/dist/plugin/geolocation/src/constants/index.d.ts +1 -0
- package/dist/plugin/geolocation/src/errors/not-supported-error.d.ts +2 -0
- package/dist/plugin/geolocation/src/errors/permission-not-granted-error.d.ts +2 -0
- package/dist/plugin/geolocation/src/plugin/appearance/constants/index.d.ts +8 -0
- package/dist/plugin/geolocation/src/plugin/appearance/cores/index.d.ts +3 -0
- package/dist/plugin/geolocation/src/plugin/appearance/index.d.ts +4 -0
- package/dist/plugin/geolocation/src/plugin/appearance/types/appearance.d.ts +9 -0
- package/dist/plugin/geolocation/src/plugin/appearance/types/index.d.ts +1 -0
- package/dist/plugin/geolocation/src/plugin/badge/cores/index.d.ts +3 -0
- package/dist/plugin/geolocation/src/plugin/badge/index.d.ts +3 -0
- package/dist/plugin/geolocation/src/plugin/badge/types/badge.d.ts +10 -0
- package/dist/plugin/geolocation/src/plugin/badge/types/index.d.ts +1 -0
- package/dist/plugin/geolocation/src/plugin/battery/cores/index.d.ts +3 -0
- package/dist/plugin/geolocation/src/plugin/battery/index.d.ts +3 -0
- package/dist/plugin/geolocation/src/plugin/battery/types/battery.d.ts +26 -0
- package/dist/plugin/geolocation/src/plugin/battery/types/index.d.ts +1 -0
- package/dist/plugin/geolocation/src/plugin/clipboard/cores/index.d.ts +3 -0
- package/dist/plugin/geolocation/src/plugin/clipboard/index.d.ts +3 -0
- package/dist/plugin/geolocation/src/plugin/clipboard/types/clipboard.d.ts +6 -0
- package/dist/plugin/geolocation/src/plugin/clipboard/types/index.d.ts +1 -0
- package/dist/plugin/geolocation/src/plugin/dimension/constants/index.d.ts +44 -0
- package/dist/plugin/geolocation/src/plugin/dimension/cores/index.d.ts +3 -0
- package/dist/plugin/geolocation/src/plugin/dimension/index.d.ts +4 -0
- package/dist/plugin/geolocation/src/plugin/dimension/types/dimensions.d.ts +34 -0
- package/dist/plugin/geolocation/src/plugin/dimension/types/index.d.ts +1 -0
- package/dist/plugin/geolocation/src/plugin/dimension/utils/create-env-observer.d.ts +24 -0
- package/dist/plugin/geolocation/src/plugin/fullscreen/cores/index.d.ts +37 -0
- package/dist/plugin/geolocation/src/plugin/fullscreen/index.d.ts +3 -0
- package/dist/plugin/geolocation/src/plugin/fullscreen/types/fullscreen.d.ts +15 -0
- package/dist/plugin/geolocation/src/plugin/fullscreen/types/index.d.ts +1 -0
- package/dist/plugin/geolocation/src/plugin/geolocation/cores/index.d.ts +3 -0
- package/dist/plugin/geolocation/src/plugin/geolocation/index.d.ts +3 -0
- package/dist/plugin/geolocation/src/plugin/geolocation/types/geolocation.d.ts +12 -0
- package/dist/plugin/geolocation/src/plugin/geolocation/types/index.d.ts +1 -0
- package/dist/plugin/geolocation/src/plugin/notification/cores/index.d.ts +3 -0
- package/dist/plugin/geolocation/src/plugin/notification/index.d.ts +3 -0
- package/dist/plugin/geolocation/src/plugin/notification/types/index.d.ts +1 -0
- package/dist/plugin/geolocation/src/plugin/notification/types/notification.d.ts +27 -0
- package/dist/plugin/geolocation/src/plugin/open/constants/index.d.ts +40 -0
- package/dist/plugin/geolocation/src/plugin/open/cores/index.d.ts +55 -0
- package/dist/plugin/geolocation/src/plugin/open/errors/url-open-error.d.ts +2 -0
- package/dist/plugin/geolocation/src/plugin/open/errors/user-cancel-error.d.ts +2 -0
- package/dist/plugin/geolocation/src/plugin/open/index.d.ts +4 -0
- package/dist/plugin/geolocation/src/plugin/open/types/index.d.ts +1 -0
- package/dist/plugin/geolocation/src/plugin/open/types/open.d.ts +187 -0
- package/dist/plugin/geolocation/src/plugin/permission/constants/index.d.ts +22 -0
- package/dist/plugin/geolocation/src/plugin/permission/cores/index.d.ts +3 -0
- package/dist/plugin/geolocation/src/plugin/permission/index.d.ts +3 -0
- package/dist/plugin/geolocation/src/plugin/permission/types/index.d.ts +1 -0
- package/dist/plugin/geolocation/src/plugin/permission/types/permission.d.ts +10 -0
- package/dist/plugin/geolocation/src/plugin/pip/cores/index.d.ts +12 -0
- package/dist/plugin/geolocation/src/plugin/pip/index.d.ts +3 -0
- package/dist/plugin/geolocation/src/plugin/pip/types/index.d.ts +1 -0
- package/dist/plugin/geolocation/src/plugin/pip/types/pip.d.ts +15 -0
- package/dist/plugin/geolocation/src/plugin/platform/constants/index.d.ts +42 -0
- package/dist/plugin/geolocation/src/plugin/platform/cores/index.d.ts +65 -0
- package/dist/plugin/geolocation/src/plugin/platform/index.d.ts +4 -0
- package/dist/plugin/geolocation/src/plugin/platform/types/index.d.ts +1 -0
- package/dist/plugin/geolocation/src/plugin/platform/types/platform.d.ts +42 -0
- package/dist/plugin/geolocation/src/plugin/theme/constants/index.d.ts +2 -0
- package/dist/plugin/geolocation/src/plugin/theme/cores/index.d.ts +3 -0
- package/dist/plugin/geolocation/src/plugin/theme/index.d.ts +3 -0
- package/dist/plugin/geolocation/src/plugin/theme/types/index.d.ts +1 -0
- package/dist/plugin/geolocation/src/plugin/theme/types/theme.d.ts +6 -0
- package/dist/plugin/geolocation/src/plugin/vibration/cores/index.d.ts +3 -0
- package/dist/plugin/geolocation/src/plugin/vibration/index.d.ts +3 -0
- package/dist/plugin/geolocation/src/plugin/vibration/types/index.d.ts +1 -0
- package/dist/plugin/geolocation/src/plugin/vibration/types/vibration.d.ts +10 -0
- package/dist/plugin/geolocation/src/types/event-listener.d.ts +35 -0
- package/dist/plugin/geolocation/src/types/index.d.ts +4 -0
- package/dist/plugin/geolocation/src/types/listener-entry.d.ts +5 -0
- package/dist/plugin/geolocation/src/types/native.d.ts +31 -0
- package/dist/plugin/geolocation/src/types/subscription-manager.d.ts +4 -0
- package/dist/plugin/geolocation/src/utils/assign.d.ts +1 -0
- package/dist/plugin/geolocation/src/utils/compare-version.d.ts +1 -0
- package/dist/plugin/geolocation/src/utils/create-custom-error.d.ts +6 -0
- package/dist/plugin/geolocation/src/utils/create-hidden-element.d.ts +1 -0
- package/dist/plugin/geolocation/src/utils/create-subscription-manager.d.ts +2 -0
- package/dist/plugin/geolocation/src/utils/defer.d.ts +1 -0
- package/dist/plugin/geolocation/src/utils/dispatch-click-event.d.ts +1 -0
- package/dist/plugin/geolocation/src/utils/event-listener.d.ts +3 -0
- package/dist/plugin/geolocation/src/utils/get-topmost-window.d.ts +1 -0
- package/dist/plugin/geolocation/src/utils/is-secure-context.d.ts +1 -0
- package/dist/plugin/geolocation/src/utils/keys.d.ts +1 -0
- package/dist/plugin/geolocation/src/utils/now.d.ts +1 -0
- package/dist/plugin/geolocation/src/utils/pad-start.d.ts +1 -0
- package/dist/plugin/geolocation/src/utils/random-string.d.ts +1 -0
- package/dist/plugin/geolocation/src/utils/request.d.ts +6 -0
- package/dist/plugin/geolocation/src/utils/set-style.d.ts +3 -0
- package/dist/plugin/notification/index.cjs +268 -0
- package/dist/plugin/notification/index.d.ts +34 -0
- package/dist/plugin/notification/index.mjs +266 -0
- package/dist/plugin/notification/src/constants/index.d.ts +1 -0
- package/dist/plugin/notification/src/errors/not-supported-error.d.ts +2 -0
- package/dist/plugin/notification/src/errors/permission-not-granted-error.d.ts +2 -0
- package/dist/plugin/notification/src/plugin/appearance/constants/index.d.ts +8 -0
- package/dist/plugin/notification/src/plugin/appearance/cores/index.d.ts +3 -0
- package/dist/plugin/notification/src/plugin/appearance/index.d.ts +4 -0
- package/dist/plugin/notification/src/plugin/appearance/types/appearance.d.ts +9 -0
- package/dist/plugin/notification/src/plugin/appearance/types/index.d.ts +1 -0
- package/dist/plugin/notification/src/plugin/badge/cores/index.d.ts +3 -0
- package/dist/plugin/notification/src/plugin/badge/index.d.ts +3 -0
- package/dist/plugin/notification/src/plugin/badge/types/badge.d.ts +10 -0
- package/dist/plugin/notification/src/plugin/badge/types/index.d.ts +1 -0
- package/dist/plugin/notification/src/plugin/battery/cores/index.d.ts +3 -0
- package/dist/plugin/notification/src/plugin/battery/index.d.ts +3 -0
- package/dist/plugin/notification/src/plugin/battery/types/battery.d.ts +26 -0
- package/dist/plugin/notification/src/plugin/battery/types/index.d.ts +1 -0
- package/dist/plugin/notification/src/plugin/clipboard/cores/index.d.ts +3 -0
- package/dist/plugin/notification/src/plugin/clipboard/index.d.ts +3 -0
- package/dist/plugin/notification/src/plugin/clipboard/types/clipboard.d.ts +6 -0
- package/dist/plugin/notification/src/plugin/clipboard/types/index.d.ts +1 -0
- package/dist/plugin/notification/src/plugin/dimension/constants/index.d.ts +44 -0
- package/dist/plugin/notification/src/plugin/dimension/cores/index.d.ts +3 -0
- package/dist/plugin/notification/src/plugin/dimension/index.d.ts +4 -0
- package/dist/plugin/notification/src/plugin/dimension/types/dimensions.d.ts +34 -0
- package/dist/plugin/notification/src/plugin/dimension/types/index.d.ts +1 -0
- package/dist/plugin/notification/src/plugin/dimension/utils/create-env-observer.d.ts +24 -0
- package/dist/plugin/notification/src/plugin/fullscreen/cores/index.d.ts +37 -0
- package/dist/plugin/notification/src/plugin/fullscreen/index.d.ts +3 -0
- package/dist/plugin/notification/src/plugin/fullscreen/types/fullscreen.d.ts +15 -0
- package/dist/plugin/notification/src/plugin/fullscreen/types/index.d.ts +1 -0
- package/dist/plugin/notification/src/plugin/geolocation/cores/index.d.ts +3 -0
- package/dist/plugin/notification/src/plugin/geolocation/index.d.ts +3 -0
- package/dist/plugin/notification/src/plugin/geolocation/types/geolocation.d.ts +12 -0
- package/dist/plugin/notification/src/plugin/geolocation/types/index.d.ts +1 -0
- package/dist/plugin/notification/src/plugin/notification/cores/index.d.ts +3 -0
- package/dist/plugin/notification/src/plugin/notification/index.d.ts +3 -0
- package/dist/plugin/notification/src/plugin/notification/types/index.d.ts +1 -0
- package/dist/plugin/notification/src/plugin/notification/types/notification.d.ts +27 -0
- package/dist/plugin/notification/src/plugin/open/constants/index.d.ts +40 -0
- package/dist/plugin/notification/src/plugin/open/cores/index.d.ts +55 -0
- package/dist/plugin/notification/src/plugin/open/errors/url-open-error.d.ts +2 -0
- package/dist/plugin/notification/src/plugin/open/errors/user-cancel-error.d.ts +2 -0
- package/dist/plugin/notification/src/plugin/open/index.d.ts +4 -0
- package/dist/plugin/notification/src/plugin/open/types/index.d.ts +1 -0
- package/dist/plugin/notification/src/plugin/open/types/open.d.ts +187 -0
- package/dist/plugin/notification/src/plugin/permission/constants/index.d.ts +22 -0
- package/dist/plugin/notification/src/plugin/permission/cores/index.d.ts +3 -0
- package/dist/plugin/notification/src/plugin/permission/index.d.ts +3 -0
- package/dist/plugin/notification/src/plugin/permission/types/index.d.ts +1 -0
- package/dist/plugin/notification/src/plugin/permission/types/permission.d.ts +10 -0
- package/dist/plugin/notification/src/plugin/pip/cores/index.d.ts +12 -0
- package/dist/plugin/notification/src/plugin/pip/index.d.ts +3 -0
- package/dist/plugin/notification/src/plugin/pip/types/index.d.ts +1 -0
- package/dist/plugin/notification/src/plugin/pip/types/pip.d.ts +15 -0
- package/dist/plugin/notification/src/plugin/platform/constants/index.d.ts +42 -0
- package/dist/plugin/notification/src/plugin/platform/cores/index.d.ts +65 -0
- package/dist/plugin/notification/src/plugin/platform/index.d.ts +4 -0
- package/dist/plugin/notification/src/plugin/platform/types/index.d.ts +1 -0
- package/dist/plugin/notification/src/plugin/platform/types/platform.d.ts +42 -0
- package/dist/plugin/notification/src/plugin/theme/constants/index.d.ts +2 -0
- package/dist/plugin/notification/src/plugin/theme/cores/index.d.ts +3 -0
- package/dist/plugin/notification/src/plugin/theme/index.d.ts +3 -0
- package/dist/plugin/notification/src/plugin/theme/types/index.d.ts +1 -0
- package/dist/plugin/notification/src/plugin/theme/types/theme.d.ts +6 -0
- package/dist/plugin/notification/src/plugin/vibration/cores/index.d.ts +3 -0
- package/dist/plugin/notification/src/plugin/vibration/index.d.ts +3 -0
- package/dist/plugin/notification/src/plugin/vibration/types/index.d.ts +1 -0
- package/dist/plugin/notification/src/plugin/vibration/types/vibration.d.ts +10 -0
- package/dist/plugin/notification/src/types/event-listener.d.ts +35 -0
- package/dist/plugin/notification/src/types/index.d.ts +4 -0
- package/dist/plugin/notification/src/types/listener-entry.d.ts +5 -0
- package/dist/plugin/notification/src/types/native.d.ts +31 -0
- package/dist/plugin/notification/src/types/subscription-manager.d.ts +4 -0
- package/dist/plugin/notification/src/utils/assign.d.ts +1 -0
- package/dist/plugin/notification/src/utils/compare-version.d.ts +1 -0
- package/dist/plugin/notification/src/utils/create-custom-error.d.ts +6 -0
- package/dist/plugin/notification/src/utils/create-hidden-element.d.ts +1 -0
- package/dist/plugin/notification/src/utils/create-subscription-manager.d.ts +2 -0
- package/dist/plugin/notification/src/utils/defer.d.ts +1 -0
- package/dist/plugin/notification/src/utils/dispatch-click-event.d.ts +1 -0
- package/dist/plugin/notification/src/utils/event-listener.d.ts +3 -0
- package/dist/plugin/notification/src/utils/get-topmost-window.d.ts +1 -0
- package/dist/plugin/notification/src/utils/is-secure-context.d.ts +1 -0
- package/dist/plugin/notification/src/utils/keys.d.ts +1 -0
- package/dist/plugin/notification/src/utils/now.d.ts +1 -0
- package/dist/plugin/notification/src/utils/pad-start.d.ts +1 -0
- package/dist/plugin/notification/src/utils/random-string.d.ts +1 -0
- package/dist/plugin/notification/src/utils/request.d.ts +6 -0
- package/dist/plugin/notification/src/utils/set-style.d.ts +3 -0
- package/dist/plugin/open/index.cjs +2137 -0
- package/dist/plugin/open/index.d.ts +435 -0
- package/dist/plugin/open/index.mjs +2132 -0
- package/dist/plugin/open/src/constants/index.d.ts +1 -0
- package/dist/plugin/open/src/errors/not-supported-error.d.ts +2 -0
- package/dist/plugin/open/src/errors/permission-not-granted-error.d.ts +2 -0
- package/dist/plugin/open/src/plugin/appearance/constants/index.d.ts +8 -0
- package/dist/plugin/open/src/plugin/appearance/cores/index.d.ts +3 -0
- package/dist/plugin/open/src/plugin/appearance/index.d.ts +4 -0
- package/dist/plugin/open/src/plugin/appearance/types/appearance.d.ts +9 -0
- package/dist/plugin/open/src/plugin/appearance/types/index.d.ts +1 -0
- package/dist/plugin/open/src/plugin/badge/cores/index.d.ts +3 -0
- package/dist/plugin/open/src/plugin/badge/index.d.ts +3 -0
- package/dist/plugin/open/src/plugin/badge/types/badge.d.ts +10 -0
- package/dist/plugin/open/src/plugin/badge/types/index.d.ts +1 -0
- package/dist/plugin/open/src/plugin/battery/cores/index.d.ts +3 -0
- package/dist/plugin/open/src/plugin/battery/index.d.ts +3 -0
- package/dist/plugin/open/src/plugin/battery/types/battery.d.ts +26 -0
- package/dist/plugin/open/src/plugin/battery/types/index.d.ts +1 -0
- package/dist/plugin/open/src/plugin/clipboard/cores/index.d.ts +3 -0
- package/dist/plugin/open/src/plugin/clipboard/index.d.ts +3 -0
- package/dist/plugin/open/src/plugin/clipboard/types/clipboard.d.ts +6 -0
- package/dist/plugin/open/src/plugin/clipboard/types/index.d.ts +1 -0
- package/dist/plugin/open/src/plugin/dimension/constants/index.d.ts +44 -0
- package/dist/plugin/open/src/plugin/dimension/cores/index.d.ts +3 -0
- package/dist/plugin/open/src/plugin/dimension/index.d.ts +4 -0
- package/dist/plugin/open/src/plugin/dimension/types/dimensions.d.ts +34 -0
- package/dist/plugin/open/src/plugin/dimension/types/index.d.ts +1 -0
- package/dist/plugin/open/src/plugin/dimension/utils/create-env-observer.d.ts +24 -0
- package/dist/plugin/open/src/plugin/fullscreen/cores/index.d.ts +37 -0
- package/dist/plugin/open/src/plugin/fullscreen/index.d.ts +3 -0
- package/dist/plugin/open/src/plugin/fullscreen/types/fullscreen.d.ts +15 -0
- package/dist/plugin/open/src/plugin/fullscreen/types/index.d.ts +1 -0
- package/dist/plugin/open/src/plugin/geolocation/cores/index.d.ts +3 -0
- package/dist/plugin/open/src/plugin/geolocation/index.d.ts +3 -0
- package/dist/plugin/open/src/plugin/geolocation/types/geolocation.d.ts +12 -0
- package/dist/plugin/open/src/plugin/geolocation/types/index.d.ts +1 -0
- package/dist/plugin/open/src/plugin/notification/cores/index.d.ts +3 -0
- package/dist/plugin/open/src/plugin/notification/index.d.ts +3 -0
- package/dist/plugin/open/src/plugin/notification/types/index.d.ts +1 -0
- package/dist/plugin/open/src/plugin/notification/types/notification.d.ts +27 -0
- package/dist/plugin/open/src/plugin/open/constants/index.d.ts +40 -0
- package/dist/plugin/open/src/plugin/open/cores/index.d.ts +55 -0
- package/dist/plugin/open/src/plugin/open/errors/url-open-error.d.ts +2 -0
- package/dist/plugin/open/src/plugin/open/errors/user-cancel-error.d.ts +2 -0
- package/dist/plugin/open/src/plugin/open/index.d.ts +4 -0
- package/dist/plugin/open/src/plugin/open/types/index.d.ts +1 -0
- package/dist/plugin/open/src/plugin/open/types/open.d.ts +187 -0
- package/dist/plugin/open/src/plugin/permission/constants/index.d.ts +22 -0
- package/dist/plugin/open/src/plugin/permission/cores/index.d.ts +3 -0
- package/dist/plugin/open/src/plugin/permission/index.d.ts +3 -0
- package/dist/plugin/open/src/plugin/permission/types/index.d.ts +1 -0
- package/dist/plugin/open/src/plugin/permission/types/permission.d.ts +10 -0
- package/dist/plugin/open/src/plugin/pip/cores/index.d.ts +12 -0
- package/dist/plugin/open/src/plugin/pip/index.d.ts +3 -0
- package/dist/plugin/open/src/plugin/pip/types/index.d.ts +1 -0
- package/dist/plugin/open/src/plugin/pip/types/pip.d.ts +15 -0
- package/dist/plugin/open/src/plugin/platform/constants/index.d.ts +42 -0
- package/dist/plugin/open/src/plugin/platform/cores/index.d.ts +65 -0
- package/dist/plugin/open/src/plugin/platform/index.d.ts +4 -0
- package/dist/plugin/open/src/plugin/platform/types/index.d.ts +1 -0
- package/dist/plugin/open/src/plugin/platform/types/platform.d.ts +42 -0
- package/dist/plugin/open/src/plugin/theme/constants/index.d.ts +2 -0
- package/dist/plugin/open/src/plugin/theme/cores/index.d.ts +3 -0
- package/dist/plugin/open/src/plugin/theme/index.d.ts +3 -0
- package/dist/plugin/open/src/plugin/theme/types/index.d.ts +1 -0
- package/dist/plugin/open/src/plugin/theme/types/theme.d.ts +6 -0
- package/dist/plugin/open/src/plugin/vibration/cores/index.d.ts +3 -0
- package/dist/plugin/open/src/plugin/vibration/index.d.ts +3 -0
- package/dist/plugin/open/src/plugin/vibration/types/index.d.ts +1 -0
- package/dist/plugin/open/src/plugin/vibration/types/vibration.d.ts +10 -0
- package/dist/plugin/open/src/types/event-listener.d.ts +35 -0
- package/dist/plugin/open/src/types/index.d.ts +4 -0
- package/dist/plugin/open/src/types/listener-entry.d.ts +5 -0
- package/dist/plugin/open/src/types/native.d.ts +31 -0
- package/dist/plugin/open/src/types/subscription-manager.d.ts +4 -0
- package/dist/plugin/open/src/utils/assign.d.ts +1 -0
- package/dist/plugin/open/src/utils/compare-version.d.ts +1 -0
- package/dist/plugin/open/src/utils/create-custom-error.d.ts +6 -0
- package/dist/plugin/open/src/utils/create-hidden-element.d.ts +1 -0
- package/dist/plugin/open/src/utils/create-subscription-manager.d.ts +2 -0
- package/dist/plugin/open/src/utils/defer.d.ts +1 -0
- package/dist/plugin/open/src/utils/dispatch-click-event.d.ts +1 -0
- package/dist/plugin/open/src/utils/event-listener.d.ts +3 -0
- package/dist/plugin/open/src/utils/get-topmost-window.d.ts +1 -0
- package/dist/plugin/open/src/utils/is-secure-context.d.ts +1 -0
- package/dist/plugin/open/src/utils/keys.d.ts +1 -0
- package/dist/plugin/open/src/utils/now.d.ts +1 -0
- package/dist/plugin/open/src/utils/pad-start.d.ts +1 -0
- package/dist/plugin/open/src/utils/random-string.d.ts +1 -0
- package/dist/plugin/open/src/utils/request.d.ts +6 -0
- package/dist/plugin/open/src/utils/set-style.d.ts +3 -0
- package/dist/plugin/permission/index.cjs +131 -0
- package/dist/plugin/permission/index.d.ts +36 -0
- package/dist/plugin/permission/index.mjs +129 -0
- package/dist/plugin/permission/src/constants/index.d.ts +1 -0
- package/dist/plugin/permission/src/errors/not-supported-error.d.ts +2 -0
- package/dist/plugin/permission/src/errors/permission-not-granted-error.d.ts +2 -0
- package/dist/plugin/permission/src/plugin/appearance/constants/index.d.ts +8 -0
- package/dist/plugin/permission/src/plugin/appearance/cores/index.d.ts +3 -0
- package/dist/plugin/permission/src/plugin/appearance/index.d.ts +4 -0
- package/dist/plugin/permission/src/plugin/appearance/types/appearance.d.ts +9 -0
- package/dist/plugin/permission/src/plugin/appearance/types/index.d.ts +1 -0
- package/dist/plugin/permission/src/plugin/badge/cores/index.d.ts +3 -0
- package/dist/plugin/permission/src/plugin/badge/index.d.ts +3 -0
- package/dist/plugin/permission/src/plugin/badge/types/badge.d.ts +10 -0
- package/dist/plugin/permission/src/plugin/badge/types/index.d.ts +1 -0
- package/dist/plugin/permission/src/plugin/battery/cores/index.d.ts +3 -0
- package/dist/plugin/permission/src/plugin/battery/index.d.ts +3 -0
- package/dist/plugin/permission/src/plugin/battery/types/battery.d.ts +26 -0
- package/dist/plugin/permission/src/plugin/battery/types/index.d.ts +1 -0
- package/dist/plugin/permission/src/plugin/clipboard/cores/index.d.ts +3 -0
- package/dist/plugin/permission/src/plugin/clipboard/index.d.ts +3 -0
- package/dist/plugin/permission/src/plugin/clipboard/types/clipboard.d.ts +6 -0
- package/dist/plugin/permission/src/plugin/clipboard/types/index.d.ts +1 -0
- package/dist/plugin/permission/src/plugin/dimension/constants/index.d.ts +44 -0
- package/dist/plugin/permission/src/plugin/dimension/cores/index.d.ts +3 -0
- package/dist/plugin/permission/src/plugin/dimension/index.d.ts +4 -0
- package/dist/plugin/permission/src/plugin/dimension/types/dimensions.d.ts +34 -0
- package/dist/plugin/permission/src/plugin/dimension/types/index.d.ts +1 -0
- package/dist/plugin/permission/src/plugin/dimension/utils/create-env-observer.d.ts +24 -0
- package/dist/plugin/permission/src/plugin/fullscreen/cores/index.d.ts +37 -0
- package/dist/plugin/permission/src/plugin/fullscreen/index.d.ts +3 -0
- package/dist/plugin/permission/src/plugin/fullscreen/types/fullscreen.d.ts +15 -0
- package/dist/plugin/permission/src/plugin/fullscreen/types/index.d.ts +1 -0
- package/dist/plugin/permission/src/plugin/geolocation/cores/index.d.ts +3 -0
- package/dist/plugin/permission/src/plugin/geolocation/index.d.ts +3 -0
- package/dist/plugin/permission/src/plugin/geolocation/types/geolocation.d.ts +12 -0
- package/dist/plugin/permission/src/plugin/geolocation/types/index.d.ts +1 -0
- package/dist/plugin/permission/src/plugin/notification/cores/index.d.ts +3 -0
- package/dist/plugin/permission/src/plugin/notification/index.d.ts +3 -0
- package/dist/plugin/permission/src/plugin/notification/types/index.d.ts +1 -0
- package/dist/plugin/permission/src/plugin/notification/types/notification.d.ts +27 -0
- package/dist/plugin/permission/src/plugin/open/constants/index.d.ts +40 -0
- package/dist/plugin/permission/src/plugin/open/cores/index.d.ts +55 -0
- package/dist/plugin/permission/src/plugin/open/errors/url-open-error.d.ts +2 -0
- package/dist/plugin/permission/src/plugin/open/errors/user-cancel-error.d.ts +2 -0
- package/dist/plugin/permission/src/plugin/open/index.d.ts +4 -0
- package/dist/plugin/permission/src/plugin/open/types/index.d.ts +1 -0
- package/dist/plugin/permission/src/plugin/open/types/open.d.ts +187 -0
- package/dist/plugin/permission/src/plugin/permission/constants/index.d.ts +22 -0
- package/dist/plugin/permission/src/plugin/permission/cores/index.d.ts +3 -0
- package/dist/plugin/permission/src/plugin/permission/index.d.ts +3 -0
- package/dist/plugin/permission/src/plugin/permission/types/index.d.ts +1 -0
- package/dist/plugin/permission/src/plugin/permission/types/permission.d.ts +10 -0
- package/dist/plugin/permission/src/plugin/pip/cores/index.d.ts +12 -0
- package/dist/plugin/permission/src/plugin/pip/index.d.ts +3 -0
- package/dist/plugin/permission/src/plugin/pip/types/index.d.ts +1 -0
- package/dist/plugin/permission/src/plugin/pip/types/pip.d.ts +15 -0
- package/dist/plugin/permission/src/plugin/platform/constants/index.d.ts +42 -0
- package/dist/plugin/permission/src/plugin/platform/cores/index.d.ts +65 -0
- package/dist/plugin/permission/src/plugin/platform/index.d.ts +4 -0
- package/dist/plugin/permission/src/plugin/platform/types/index.d.ts +1 -0
- package/dist/plugin/permission/src/plugin/platform/types/platform.d.ts +42 -0
- package/dist/plugin/permission/src/plugin/theme/constants/index.d.ts +2 -0
- package/dist/plugin/permission/src/plugin/theme/cores/index.d.ts +3 -0
- package/dist/plugin/permission/src/plugin/theme/index.d.ts +3 -0
- package/dist/plugin/permission/src/plugin/theme/types/index.d.ts +1 -0
- package/dist/plugin/permission/src/plugin/theme/types/theme.d.ts +6 -0
- package/dist/plugin/permission/src/plugin/vibration/cores/index.d.ts +3 -0
- package/dist/plugin/permission/src/plugin/vibration/index.d.ts +3 -0
- package/dist/plugin/permission/src/plugin/vibration/types/index.d.ts +1 -0
- package/dist/plugin/permission/src/plugin/vibration/types/vibration.d.ts +10 -0
- package/dist/plugin/permission/src/types/event-listener.d.ts +35 -0
- package/dist/plugin/permission/src/types/index.d.ts +4 -0
- package/dist/plugin/permission/src/types/listener-entry.d.ts +5 -0
- package/dist/plugin/permission/src/types/native.d.ts +31 -0
- package/dist/plugin/permission/src/types/subscription-manager.d.ts +4 -0
- package/dist/plugin/permission/src/utils/assign.d.ts +1 -0
- package/dist/plugin/permission/src/utils/compare-version.d.ts +1 -0
- package/dist/plugin/permission/src/utils/create-custom-error.d.ts +6 -0
- package/dist/plugin/permission/src/utils/create-hidden-element.d.ts +1 -0
- package/dist/plugin/permission/src/utils/create-subscription-manager.d.ts +2 -0
- package/dist/plugin/permission/src/utils/defer.d.ts +1 -0
- package/dist/plugin/permission/src/utils/dispatch-click-event.d.ts +1 -0
- package/dist/plugin/permission/src/utils/event-listener.d.ts +3 -0
- package/dist/plugin/permission/src/utils/get-topmost-window.d.ts +1 -0
- package/dist/plugin/permission/src/utils/is-secure-context.d.ts +1 -0
- package/dist/plugin/permission/src/utils/keys.d.ts +1 -0
- package/dist/plugin/permission/src/utils/now.d.ts +1 -0
- package/dist/plugin/permission/src/utils/pad-start.d.ts +1 -0
- package/dist/plugin/permission/src/utils/random-string.d.ts +1 -0
- package/dist/plugin/permission/src/utils/request.d.ts +6 -0
- package/dist/plugin/permission/src/utils/set-style.d.ts +3 -0
- package/dist/plugin/pip/index.cjs +648 -0
- package/dist/plugin/pip/index.d.ts +30 -0
- package/dist/plugin/pip/index.mjs +646 -0
- package/dist/plugin/pip/src/constants/index.d.ts +1 -0
- package/dist/plugin/pip/src/errors/not-supported-error.d.ts +2 -0
- package/dist/plugin/pip/src/errors/permission-not-granted-error.d.ts +2 -0
- package/dist/plugin/pip/src/plugin/appearance/constants/index.d.ts +8 -0
- package/dist/plugin/pip/src/plugin/appearance/cores/index.d.ts +3 -0
- package/dist/plugin/pip/src/plugin/appearance/index.d.ts +4 -0
- package/dist/plugin/pip/src/plugin/appearance/types/appearance.d.ts +9 -0
- package/dist/plugin/pip/src/plugin/appearance/types/index.d.ts +1 -0
- package/dist/plugin/pip/src/plugin/badge/cores/index.d.ts +3 -0
- package/dist/plugin/pip/src/plugin/badge/index.d.ts +3 -0
- package/dist/plugin/pip/src/plugin/badge/types/badge.d.ts +10 -0
- package/dist/plugin/pip/src/plugin/badge/types/index.d.ts +1 -0
- package/dist/plugin/pip/src/plugin/battery/cores/index.d.ts +3 -0
- package/dist/plugin/pip/src/plugin/battery/index.d.ts +3 -0
- package/dist/plugin/pip/src/plugin/battery/types/battery.d.ts +26 -0
- package/dist/plugin/pip/src/plugin/battery/types/index.d.ts +1 -0
- package/dist/plugin/pip/src/plugin/clipboard/cores/index.d.ts +3 -0
- package/dist/plugin/pip/src/plugin/clipboard/index.d.ts +3 -0
- package/dist/plugin/pip/src/plugin/clipboard/types/clipboard.d.ts +6 -0
- package/dist/plugin/pip/src/plugin/clipboard/types/index.d.ts +1 -0
- package/dist/plugin/pip/src/plugin/dimension/constants/index.d.ts +44 -0
- package/dist/plugin/pip/src/plugin/dimension/cores/index.d.ts +3 -0
- package/dist/plugin/pip/src/plugin/dimension/index.d.ts +4 -0
- package/dist/plugin/pip/src/plugin/dimension/types/dimensions.d.ts +34 -0
- package/dist/plugin/pip/src/plugin/dimension/types/index.d.ts +1 -0
- package/dist/plugin/pip/src/plugin/dimension/utils/create-env-observer.d.ts +24 -0
- package/dist/plugin/pip/src/plugin/fullscreen/cores/index.d.ts +37 -0
- package/dist/plugin/pip/src/plugin/fullscreen/index.d.ts +3 -0
- package/dist/plugin/pip/src/plugin/fullscreen/types/fullscreen.d.ts +15 -0
- package/dist/plugin/pip/src/plugin/fullscreen/types/index.d.ts +1 -0
- package/dist/plugin/pip/src/plugin/geolocation/cores/index.d.ts +3 -0
- package/dist/plugin/pip/src/plugin/geolocation/index.d.ts +3 -0
- package/dist/plugin/pip/src/plugin/geolocation/types/geolocation.d.ts +12 -0
- package/dist/plugin/pip/src/plugin/geolocation/types/index.d.ts +1 -0
- package/dist/plugin/pip/src/plugin/notification/cores/index.d.ts +3 -0
- package/dist/plugin/pip/src/plugin/notification/index.d.ts +3 -0
- package/dist/plugin/pip/src/plugin/notification/types/index.d.ts +1 -0
- package/dist/plugin/pip/src/plugin/notification/types/notification.d.ts +27 -0
- package/dist/plugin/pip/src/plugin/open/constants/index.d.ts +40 -0
- package/dist/plugin/pip/src/plugin/open/cores/index.d.ts +55 -0
- package/dist/plugin/pip/src/plugin/open/errors/url-open-error.d.ts +2 -0
- package/dist/plugin/pip/src/plugin/open/errors/user-cancel-error.d.ts +2 -0
- package/dist/plugin/pip/src/plugin/open/index.d.ts +4 -0
- package/dist/plugin/pip/src/plugin/open/types/index.d.ts +1 -0
- package/dist/plugin/pip/src/plugin/open/types/open.d.ts +187 -0
- package/dist/plugin/pip/src/plugin/permission/constants/index.d.ts +22 -0
- package/dist/plugin/pip/src/plugin/permission/cores/index.d.ts +3 -0
- package/dist/plugin/pip/src/plugin/permission/index.d.ts +3 -0
- package/dist/plugin/pip/src/plugin/permission/types/index.d.ts +1 -0
- package/dist/plugin/pip/src/plugin/permission/types/permission.d.ts +10 -0
- package/dist/plugin/pip/src/plugin/pip/cores/index.d.ts +12 -0
- package/dist/plugin/pip/src/plugin/pip/index.d.ts +3 -0
- package/dist/plugin/pip/src/plugin/pip/types/index.d.ts +1 -0
- package/dist/plugin/pip/src/plugin/pip/types/pip.d.ts +15 -0
- package/dist/plugin/pip/src/plugin/platform/constants/index.d.ts +42 -0
- package/dist/plugin/pip/src/plugin/platform/cores/index.d.ts +65 -0
- package/dist/plugin/pip/src/plugin/platform/index.d.ts +4 -0
- package/dist/plugin/pip/src/plugin/platform/types/index.d.ts +1 -0
- package/dist/plugin/pip/src/plugin/platform/types/platform.d.ts +42 -0
- package/dist/plugin/pip/src/plugin/theme/constants/index.d.ts +2 -0
- package/dist/plugin/pip/src/plugin/theme/cores/index.d.ts +3 -0
- package/dist/plugin/pip/src/plugin/theme/index.d.ts +3 -0
- package/dist/plugin/pip/src/plugin/theme/types/index.d.ts +1 -0
- package/dist/plugin/pip/src/plugin/theme/types/theme.d.ts +6 -0
- package/dist/plugin/pip/src/plugin/vibration/cores/index.d.ts +3 -0
- package/dist/plugin/pip/src/plugin/vibration/index.d.ts +3 -0
- package/dist/plugin/pip/src/plugin/vibration/types/index.d.ts +1 -0
- package/dist/plugin/pip/src/plugin/vibration/types/vibration.d.ts +10 -0
- package/dist/plugin/pip/src/types/event-listener.d.ts +35 -0
- package/dist/plugin/pip/src/types/index.d.ts +4 -0
- package/dist/plugin/pip/src/types/listener-entry.d.ts +5 -0
- package/dist/plugin/pip/src/types/native.d.ts +31 -0
- package/dist/plugin/pip/src/types/subscription-manager.d.ts +4 -0
- package/dist/plugin/pip/src/utils/assign.d.ts +1 -0
- package/dist/plugin/pip/src/utils/compare-version.d.ts +1 -0
- package/dist/plugin/pip/src/utils/create-custom-error.d.ts +6 -0
- package/dist/plugin/pip/src/utils/create-hidden-element.d.ts +1 -0
- package/dist/plugin/pip/src/utils/create-subscription-manager.d.ts +2 -0
- package/dist/plugin/pip/src/utils/defer.d.ts +1 -0
- package/dist/plugin/pip/src/utils/dispatch-click-event.d.ts +1 -0
- package/dist/plugin/pip/src/utils/event-listener.d.ts +3 -0
- package/dist/plugin/pip/src/utils/get-topmost-window.d.ts +1 -0
- package/dist/plugin/pip/src/utils/is-secure-context.d.ts +1 -0
- package/dist/plugin/pip/src/utils/keys.d.ts +1 -0
- package/dist/plugin/pip/src/utils/now.d.ts +1 -0
- package/dist/plugin/pip/src/utils/pad-start.d.ts +1 -0
- package/dist/plugin/pip/src/utils/random-string.d.ts +1 -0
- package/dist/plugin/pip/src/utils/request.d.ts +6 -0
- package/dist/plugin/pip/src/utils/set-style.d.ts +3 -0
- package/dist/plugin/platform/index.cjs +773 -0
- package/dist/plugin/platform/index.d.ts +285 -0
- package/dist/plugin/platform/index.mjs +763 -0
- package/dist/plugin/platform/src/constants/index.d.ts +1 -0
- package/dist/plugin/platform/src/errors/not-supported-error.d.ts +2 -0
- package/dist/plugin/platform/src/errors/permission-not-granted-error.d.ts +2 -0
- package/dist/plugin/platform/src/plugin/appearance/constants/index.d.ts +8 -0
- package/dist/plugin/platform/src/plugin/appearance/cores/index.d.ts +3 -0
- package/dist/plugin/platform/src/plugin/appearance/index.d.ts +4 -0
- package/dist/plugin/platform/src/plugin/appearance/types/appearance.d.ts +9 -0
- package/dist/plugin/platform/src/plugin/appearance/types/index.d.ts +1 -0
- package/dist/plugin/platform/src/plugin/badge/cores/index.d.ts +3 -0
- package/dist/plugin/platform/src/plugin/badge/index.d.ts +3 -0
- package/dist/plugin/platform/src/plugin/badge/types/badge.d.ts +10 -0
- package/dist/plugin/platform/src/plugin/badge/types/index.d.ts +1 -0
- package/dist/plugin/platform/src/plugin/battery/cores/index.d.ts +3 -0
- package/dist/plugin/platform/src/plugin/battery/index.d.ts +3 -0
- package/dist/plugin/platform/src/plugin/battery/types/battery.d.ts +26 -0
- package/dist/plugin/platform/src/plugin/battery/types/index.d.ts +1 -0
- package/dist/plugin/platform/src/plugin/clipboard/cores/index.d.ts +3 -0
- package/dist/plugin/platform/src/plugin/clipboard/index.d.ts +3 -0
- package/dist/plugin/platform/src/plugin/clipboard/types/clipboard.d.ts +6 -0
- package/dist/plugin/platform/src/plugin/clipboard/types/index.d.ts +1 -0
- package/dist/plugin/platform/src/plugin/dimension/constants/index.d.ts +44 -0
- package/dist/plugin/platform/src/plugin/dimension/cores/index.d.ts +3 -0
- package/dist/plugin/platform/src/plugin/dimension/index.d.ts +4 -0
- package/dist/plugin/platform/src/plugin/dimension/types/dimensions.d.ts +34 -0
- package/dist/plugin/platform/src/plugin/dimension/types/index.d.ts +1 -0
- package/dist/plugin/platform/src/plugin/dimension/utils/create-env-observer.d.ts +24 -0
- package/dist/plugin/platform/src/plugin/fullscreen/cores/index.d.ts +37 -0
- package/dist/plugin/platform/src/plugin/fullscreen/index.d.ts +3 -0
- package/dist/plugin/platform/src/plugin/fullscreen/types/fullscreen.d.ts +15 -0
- package/dist/plugin/platform/src/plugin/fullscreen/types/index.d.ts +1 -0
- package/dist/plugin/platform/src/plugin/geolocation/cores/index.d.ts +3 -0
- package/dist/plugin/platform/src/plugin/geolocation/index.d.ts +3 -0
- package/dist/plugin/platform/src/plugin/geolocation/types/geolocation.d.ts +12 -0
- package/dist/plugin/platform/src/plugin/geolocation/types/index.d.ts +1 -0
- package/dist/plugin/platform/src/plugin/notification/cores/index.d.ts +3 -0
- package/dist/plugin/platform/src/plugin/notification/index.d.ts +3 -0
- package/dist/plugin/platform/src/plugin/notification/types/index.d.ts +1 -0
- package/dist/plugin/platform/src/plugin/notification/types/notification.d.ts +27 -0
- package/dist/plugin/platform/src/plugin/open/constants/index.d.ts +40 -0
- package/dist/plugin/platform/src/plugin/open/cores/index.d.ts +55 -0
- package/dist/plugin/platform/src/plugin/open/errors/url-open-error.d.ts +2 -0
- package/dist/plugin/platform/src/plugin/open/errors/user-cancel-error.d.ts +2 -0
- package/dist/plugin/platform/src/plugin/open/index.d.ts +4 -0
- package/dist/plugin/platform/src/plugin/open/types/index.d.ts +1 -0
- package/dist/plugin/platform/src/plugin/open/types/open.d.ts +187 -0
- package/dist/plugin/platform/src/plugin/permission/constants/index.d.ts +22 -0
- package/dist/plugin/platform/src/plugin/permission/cores/index.d.ts +3 -0
- package/dist/plugin/platform/src/plugin/permission/index.d.ts +3 -0
- package/dist/plugin/platform/src/plugin/permission/types/index.d.ts +1 -0
- package/dist/plugin/platform/src/plugin/permission/types/permission.d.ts +10 -0
- package/dist/plugin/platform/src/plugin/pip/cores/index.d.ts +12 -0
- package/dist/plugin/platform/src/plugin/pip/index.d.ts +3 -0
- package/dist/plugin/platform/src/plugin/pip/types/index.d.ts +1 -0
- package/dist/plugin/platform/src/plugin/pip/types/pip.d.ts +15 -0
- package/dist/plugin/platform/src/plugin/platform/constants/index.d.ts +42 -0
- package/dist/plugin/platform/src/plugin/platform/cores/index.d.ts +65 -0
- package/dist/plugin/platform/src/plugin/platform/index.d.ts +4 -0
- package/dist/plugin/platform/src/plugin/platform/types/index.d.ts +1 -0
- package/dist/plugin/platform/src/plugin/platform/types/platform.d.ts +42 -0
- package/dist/plugin/platform/src/plugin/theme/constants/index.d.ts +2 -0
- package/dist/plugin/platform/src/plugin/theme/cores/index.d.ts +3 -0
- package/dist/plugin/platform/src/plugin/theme/index.d.ts +3 -0
- package/dist/plugin/platform/src/plugin/theme/types/index.d.ts +1 -0
- package/dist/plugin/platform/src/plugin/theme/types/theme.d.ts +6 -0
- package/dist/plugin/platform/src/plugin/vibration/cores/index.d.ts +3 -0
- package/dist/plugin/platform/src/plugin/vibration/index.d.ts +3 -0
- package/dist/plugin/platform/src/plugin/vibration/types/index.d.ts +1 -0
- package/dist/plugin/platform/src/plugin/vibration/types/vibration.d.ts +10 -0
- package/dist/plugin/platform/src/types/event-listener.d.ts +35 -0
- package/dist/plugin/platform/src/types/index.d.ts +4 -0
- package/dist/plugin/platform/src/types/listener-entry.d.ts +5 -0
- package/dist/plugin/platform/src/types/native.d.ts +31 -0
- package/dist/plugin/platform/src/types/subscription-manager.d.ts +4 -0
- package/dist/plugin/platform/src/utils/assign.d.ts +1 -0
- package/dist/plugin/platform/src/utils/compare-version.d.ts +1 -0
- package/dist/plugin/platform/src/utils/create-custom-error.d.ts +6 -0
- package/dist/plugin/platform/src/utils/create-hidden-element.d.ts +1 -0
- package/dist/plugin/platform/src/utils/create-subscription-manager.d.ts +2 -0
- package/dist/plugin/platform/src/utils/defer.d.ts +1 -0
- package/dist/plugin/platform/src/utils/dispatch-click-event.d.ts +1 -0
- package/dist/plugin/platform/src/utils/event-listener.d.ts +3 -0
- package/dist/plugin/platform/src/utils/get-topmost-window.d.ts +1 -0
- package/dist/plugin/platform/src/utils/is-secure-context.d.ts +1 -0
- package/dist/plugin/platform/src/utils/keys.d.ts +1 -0
- package/dist/plugin/platform/src/utils/now.d.ts +1 -0
- package/dist/plugin/platform/src/utils/pad-start.d.ts +1 -0
- package/dist/plugin/platform/src/utils/random-string.d.ts +1 -0
- package/dist/plugin/platform/src/utils/request.d.ts +6 -0
- package/dist/plugin/platform/src/utils/set-style.d.ts +3 -0
- package/dist/plugin/theme/index.cjs +643 -0
- package/dist/plugin/theme/index.d.ts +11 -0
- package/dist/plugin/theme/index.mjs +641 -0
- package/dist/plugin/theme/src/constants/index.d.ts +1 -0
- package/dist/plugin/theme/src/errors/not-supported-error.d.ts +2 -0
- package/dist/plugin/theme/src/errors/permission-not-granted-error.d.ts +2 -0
- package/dist/plugin/theme/src/plugin/appearance/constants/index.d.ts +8 -0
- package/dist/plugin/theme/src/plugin/appearance/cores/index.d.ts +3 -0
- package/dist/plugin/theme/src/plugin/appearance/index.d.ts +4 -0
- package/dist/plugin/theme/src/plugin/appearance/types/appearance.d.ts +9 -0
- package/dist/plugin/theme/src/plugin/appearance/types/index.d.ts +1 -0
- package/dist/plugin/theme/src/plugin/badge/cores/index.d.ts +3 -0
- package/dist/plugin/theme/src/plugin/badge/index.d.ts +3 -0
- package/dist/plugin/theme/src/plugin/badge/types/badge.d.ts +10 -0
- package/dist/plugin/theme/src/plugin/badge/types/index.d.ts +1 -0
- package/dist/plugin/theme/src/plugin/battery/cores/index.d.ts +3 -0
- package/dist/plugin/theme/src/plugin/battery/index.d.ts +3 -0
- package/dist/plugin/theme/src/plugin/battery/types/battery.d.ts +26 -0
- package/dist/plugin/theme/src/plugin/battery/types/index.d.ts +1 -0
- package/dist/plugin/theme/src/plugin/clipboard/cores/index.d.ts +3 -0
- package/dist/plugin/theme/src/plugin/clipboard/index.d.ts +3 -0
- package/dist/plugin/theme/src/plugin/clipboard/types/clipboard.d.ts +6 -0
- package/dist/plugin/theme/src/plugin/clipboard/types/index.d.ts +1 -0
- package/dist/plugin/theme/src/plugin/dimension/constants/index.d.ts +44 -0
- package/dist/plugin/theme/src/plugin/dimension/cores/index.d.ts +3 -0
- package/dist/plugin/theme/src/plugin/dimension/index.d.ts +4 -0
- package/dist/plugin/theme/src/plugin/dimension/types/dimensions.d.ts +34 -0
- package/dist/plugin/theme/src/plugin/dimension/types/index.d.ts +1 -0
- package/dist/plugin/theme/src/plugin/dimension/utils/create-env-observer.d.ts +24 -0
- package/dist/plugin/theme/src/plugin/fullscreen/cores/index.d.ts +37 -0
- package/dist/plugin/theme/src/plugin/fullscreen/index.d.ts +3 -0
- package/dist/plugin/theme/src/plugin/fullscreen/types/fullscreen.d.ts +15 -0
- package/dist/plugin/theme/src/plugin/fullscreen/types/index.d.ts +1 -0
- package/dist/plugin/theme/src/plugin/geolocation/cores/index.d.ts +3 -0
- package/dist/plugin/theme/src/plugin/geolocation/index.d.ts +3 -0
- package/dist/plugin/theme/src/plugin/geolocation/types/geolocation.d.ts +12 -0
- package/dist/plugin/theme/src/plugin/geolocation/types/index.d.ts +1 -0
- package/dist/plugin/theme/src/plugin/notification/cores/index.d.ts +3 -0
- package/dist/plugin/theme/src/plugin/notification/index.d.ts +3 -0
- package/dist/plugin/theme/src/plugin/notification/types/index.d.ts +1 -0
- package/dist/plugin/theme/src/plugin/notification/types/notification.d.ts +27 -0
- package/dist/plugin/theme/src/plugin/open/constants/index.d.ts +40 -0
- package/dist/plugin/theme/src/plugin/open/cores/index.d.ts +55 -0
- package/dist/plugin/theme/src/plugin/open/errors/url-open-error.d.ts +2 -0
- package/dist/plugin/theme/src/plugin/open/errors/user-cancel-error.d.ts +2 -0
- package/dist/plugin/theme/src/plugin/open/index.d.ts +4 -0
- package/dist/plugin/theme/src/plugin/open/types/index.d.ts +1 -0
- package/dist/plugin/theme/src/plugin/open/types/open.d.ts +187 -0
- package/dist/plugin/theme/src/plugin/permission/constants/index.d.ts +22 -0
- package/dist/plugin/theme/src/plugin/permission/cores/index.d.ts +3 -0
- package/dist/plugin/theme/src/plugin/permission/index.d.ts +3 -0
- package/dist/plugin/theme/src/plugin/permission/types/index.d.ts +1 -0
- package/dist/plugin/theme/src/plugin/permission/types/permission.d.ts +10 -0
- package/dist/plugin/theme/src/plugin/pip/cores/index.d.ts +12 -0
- package/dist/plugin/theme/src/plugin/pip/index.d.ts +3 -0
- package/dist/plugin/theme/src/plugin/pip/types/index.d.ts +1 -0
- package/dist/plugin/theme/src/plugin/pip/types/pip.d.ts +15 -0
- package/dist/plugin/theme/src/plugin/platform/constants/index.d.ts +42 -0
- package/dist/plugin/theme/src/plugin/platform/cores/index.d.ts +65 -0
- package/dist/plugin/theme/src/plugin/platform/index.d.ts +4 -0
- package/dist/plugin/theme/src/plugin/platform/types/index.d.ts +1 -0
- package/dist/plugin/theme/src/plugin/platform/types/platform.d.ts +42 -0
- package/dist/plugin/theme/src/plugin/theme/constants/index.d.ts +2 -0
- package/dist/plugin/theme/src/plugin/theme/cores/index.d.ts +3 -0
- package/dist/plugin/theme/src/plugin/theme/index.d.ts +3 -0
- package/dist/plugin/theme/src/plugin/theme/types/index.d.ts +1 -0
- package/dist/plugin/theme/src/plugin/theme/types/theme.d.ts +6 -0
- package/dist/plugin/theme/src/plugin/vibration/cores/index.d.ts +3 -0
- package/dist/plugin/theme/src/plugin/vibration/index.d.ts +3 -0
- package/dist/plugin/theme/src/plugin/vibration/types/index.d.ts +1 -0
- package/dist/plugin/theme/src/plugin/vibration/types/vibration.d.ts +10 -0
- package/dist/plugin/theme/src/types/event-listener.d.ts +35 -0
- package/dist/plugin/theme/src/types/index.d.ts +4 -0
- package/dist/plugin/theme/src/types/listener-entry.d.ts +5 -0
- package/dist/plugin/theme/src/types/native.d.ts +31 -0
- package/dist/plugin/theme/src/types/subscription-manager.d.ts +4 -0
- package/dist/plugin/theme/src/utils/assign.d.ts +1 -0
- package/dist/plugin/theme/src/utils/compare-version.d.ts +1 -0
- package/dist/plugin/theme/src/utils/create-custom-error.d.ts +6 -0
- package/dist/plugin/theme/src/utils/create-hidden-element.d.ts +1 -0
- package/dist/plugin/theme/src/utils/create-subscription-manager.d.ts +2 -0
- package/dist/plugin/theme/src/utils/defer.d.ts +1 -0
- package/dist/plugin/theme/src/utils/dispatch-click-event.d.ts +1 -0
- package/dist/plugin/theme/src/utils/event-listener.d.ts +3 -0
- package/dist/plugin/theme/src/utils/get-topmost-window.d.ts +1 -0
- package/dist/plugin/theme/src/utils/is-secure-context.d.ts +1 -0
- package/dist/plugin/theme/src/utils/keys.d.ts +1 -0
- package/dist/plugin/theme/src/utils/now.d.ts +1 -0
- package/dist/plugin/theme/src/utils/pad-start.d.ts +1 -0
- package/dist/plugin/theme/src/utils/random-string.d.ts +1 -0
- package/dist/plugin/theme/src/utils/request.d.ts +6 -0
- package/dist/plugin/theme/src/utils/set-style.d.ts +3 -0
- package/dist/plugin/vibration/index.cjs +110 -0
- package/dist/plugin/vibration/index.d.ts +16 -0
- package/dist/plugin/vibration/index.mjs +108 -0
- package/dist/plugin/vibration/src/constants/index.d.ts +1 -0
- package/dist/plugin/vibration/src/errors/not-supported-error.d.ts +2 -0
- package/dist/plugin/vibration/src/errors/permission-not-granted-error.d.ts +2 -0
- package/dist/plugin/vibration/src/plugin/appearance/constants/index.d.ts +8 -0
- package/dist/plugin/vibration/src/plugin/appearance/cores/index.d.ts +3 -0
- package/dist/plugin/vibration/src/plugin/appearance/index.d.ts +4 -0
- package/dist/plugin/vibration/src/plugin/appearance/types/appearance.d.ts +9 -0
- package/dist/plugin/vibration/src/plugin/appearance/types/index.d.ts +1 -0
- package/dist/plugin/vibration/src/plugin/badge/cores/index.d.ts +3 -0
- package/dist/plugin/vibration/src/plugin/badge/index.d.ts +3 -0
- package/dist/plugin/vibration/src/plugin/badge/types/badge.d.ts +10 -0
- package/dist/plugin/vibration/src/plugin/badge/types/index.d.ts +1 -0
- package/dist/plugin/vibration/src/plugin/battery/cores/index.d.ts +3 -0
- package/dist/plugin/vibration/src/plugin/battery/index.d.ts +3 -0
- package/dist/plugin/vibration/src/plugin/battery/types/battery.d.ts +26 -0
- package/dist/plugin/vibration/src/plugin/battery/types/index.d.ts +1 -0
- package/dist/plugin/vibration/src/plugin/clipboard/cores/index.d.ts +3 -0
- package/dist/plugin/vibration/src/plugin/clipboard/index.d.ts +3 -0
- package/dist/plugin/vibration/src/plugin/clipboard/types/clipboard.d.ts +6 -0
- package/dist/plugin/vibration/src/plugin/clipboard/types/index.d.ts +1 -0
- package/dist/plugin/vibration/src/plugin/dimension/constants/index.d.ts +44 -0
- package/dist/plugin/vibration/src/plugin/dimension/cores/index.d.ts +3 -0
- package/dist/plugin/vibration/src/plugin/dimension/index.d.ts +4 -0
- package/dist/plugin/vibration/src/plugin/dimension/types/dimensions.d.ts +34 -0
- package/dist/plugin/vibration/src/plugin/dimension/types/index.d.ts +1 -0
- package/dist/plugin/vibration/src/plugin/dimension/utils/create-env-observer.d.ts +24 -0
- package/dist/plugin/vibration/src/plugin/fullscreen/cores/index.d.ts +37 -0
- package/dist/plugin/vibration/src/plugin/fullscreen/index.d.ts +3 -0
- package/dist/plugin/vibration/src/plugin/fullscreen/types/fullscreen.d.ts +15 -0
- package/dist/plugin/vibration/src/plugin/fullscreen/types/index.d.ts +1 -0
- package/dist/plugin/vibration/src/plugin/geolocation/cores/index.d.ts +3 -0
- package/dist/plugin/vibration/src/plugin/geolocation/index.d.ts +3 -0
- package/dist/plugin/vibration/src/plugin/geolocation/types/geolocation.d.ts +12 -0
- package/dist/plugin/vibration/src/plugin/geolocation/types/index.d.ts +1 -0
- package/dist/plugin/vibration/src/plugin/notification/cores/index.d.ts +3 -0
- package/dist/plugin/vibration/src/plugin/notification/index.d.ts +3 -0
- package/dist/plugin/vibration/src/plugin/notification/types/index.d.ts +1 -0
- package/dist/plugin/vibration/src/plugin/notification/types/notification.d.ts +27 -0
- package/dist/plugin/vibration/src/plugin/open/constants/index.d.ts +40 -0
- package/dist/plugin/vibration/src/plugin/open/cores/index.d.ts +55 -0
- package/dist/plugin/vibration/src/plugin/open/errors/url-open-error.d.ts +2 -0
- package/dist/plugin/vibration/src/plugin/open/errors/user-cancel-error.d.ts +2 -0
- package/dist/plugin/vibration/src/plugin/open/index.d.ts +4 -0
- package/dist/plugin/vibration/src/plugin/open/types/index.d.ts +1 -0
- package/dist/plugin/vibration/src/plugin/open/types/open.d.ts +187 -0
- package/dist/plugin/vibration/src/plugin/permission/constants/index.d.ts +22 -0
- package/dist/plugin/vibration/src/plugin/permission/cores/index.d.ts +3 -0
- package/dist/plugin/vibration/src/plugin/permission/index.d.ts +3 -0
- package/dist/plugin/vibration/src/plugin/permission/types/index.d.ts +1 -0
- package/dist/plugin/vibration/src/plugin/permission/types/permission.d.ts +10 -0
- package/dist/plugin/vibration/src/plugin/pip/cores/index.d.ts +12 -0
- package/dist/plugin/vibration/src/plugin/pip/index.d.ts +3 -0
- package/dist/plugin/vibration/src/plugin/pip/types/index.d.ts +1 -0
- package/dist/plugin/vibration/src/plugin/pip/types/pip.d.ts +15 -0
- package/dist/plugin/vibration/src/plugin/platform/constants/index.d.ts +42 -0
- package/dist/plugin/vibration/src/plugin/platform/cores/index.d.ts +65 -0
- package/dist/plugin/vibration/src/plugin/platform/index.d.ts +4 -0
- package/dist/plugin/vibration/src/plugin/platform/types/index.d.ts +1 -0
- package/dist/plugin/vibration/src/plugin/platform/types/platform.d.ts +42 -0
- package/dist/plugin/vibration/src/plugin/theme/constants/index.d.ts +2 -0
- package/dist/plugin/vibration/src/plugin/theme/cores/index.d.ts +3 -0
- package/dist/plugin/vibration/src/plugin/theme/index.d.ts +3 -0
- package/dist/plugin/vibration/src/plugin/theme/types/index.d.ts +1 -0
- package/dist/plugin/vibration/src/plugin/theme/types/theme.d.ts +6 -0
- package/dist/plugin/vibration/src/plugin/vibration/cores/index.d.ts +3 -0
- package/dist/plugin/vibration/src/plugin/vibration/index.d.ts +3 -0
- package/dist/plugin/vibration/src/plugin/vibration/types/index.d.ts +1 -0
- package/dist/plugin/vibration/src/plugin/vibration/types/vibration.d.ts +10 -0
- package/dist/plugin/vibration/src/types/event-listener.d.ts +35 -0
- package/dist/plugin/vibration/src/types/index.d.ts +4 -0
- package/dist/plugin/vibration/src/types/listener-entry.d.ts +5 -0
- package/dist/plugin/vibration/src/types/native.d.ts +31 -0
- package/dist/plugin/vibration/src/types/subscription-manager.d.ts +4 -0
- package/dist/plugin/vibration/src/utils/assign.d.ts +1 -0
- package/dist/plugin/vibration/src/utils/compare-version.d.ts +1 -0
- package/dist/plugin/vibration/src/utils/create-custom-error.d.ts +6 -0
- package/dist/plugin/vibration/src/utils/create-hidden-element.d.ts +1 -0
- package/dist/plugin/vibration/src/utils/create-subscription-manager.d.ts +2 -0
- package/dist/plugin/vibration/src/utils/defer.d.ts +1 -0
- package/dist/plugin/vibration/src/utils/dispatch-click-event.d.ts +1 -0
- package/dist/plugin/vibration/src/utils/event-listener.d.ts +3 -0
- package/dist/plugin/vibration/src/utils/get-topmost-window.d.ts +1 -0
- package/dist/plugin/vibration/src/utils/is-secure-context.d.ts +1 -0
- package/dist/plugin/vibration/src/utils/keys.d.ts +1 -0
- package/dist/plugin/vibration/src/utils/now.d.ts +1 -0
- package/dist/plugin/vibration/src/utils/pad-start.d.ts +1 -0
- package/dist/plugin/vibration/src/utils/random-string.d.ts +1 -0
- package/dist/plugin/vibration/src/utils/request.d.ts +6 -0
- package/dist/plugin/vibration/src/utils/set-style.d.ts +3 -0
- package/package.json +29 -29
|
@@ -0,0 +1,2132 @@
|
|
|
1
|
+
function resolveWindowsVersion(string) {
|
|
2
|
+
if (typeof string === 'undefined')
|
|
3
|
+
return '';
|
|
4
|
+
var mapped = {
|
|
5
|
+
'4.90': 'ME',
|
|
6
|
+
'NT3.51': 'NT 3.11',
|
|
7
|
+
'NT4.0': 'NT 4.0',
|
|
8
|
+
'NT 5.0': '2000',
|
|
9
|
+
'NT 5.1': 'XP',
|
|
10
|
+
'NT 5.2': 'XP',
|
|
11
|
+
'NT 6.0': 'Vista',
|
|
12
|
+
'NT 6.1': '7',
|
|
13
|
+
'NT 6.2': '8',
|
|
14
|
+
'NT 6.3': '8.1',
|
|
15
|
+
'NT 6.4': '10',
|
|
16
|
+
'NT 10.0': '10',
|
|
17
|
+
'ARM': 'RT'
|
|
18
|
+
}[string];
|
|
19
|
+
if (typeof mapped !== 'undefined')
|
|
20
|
+
return mapped;
|
|
21
|
+
return string;
|
|
22
|
+
}
|
|
23
|
+
function resolveUnderscoreVersion(string) {
|
|
24
|
+
if (typeof string === 'undefined')
|
|
25
|
+
return '';
|
|
26
|
+
return string.replace(/_/g, '.');
|
|
27
|
+
}
|
|
28
|
+
var OS;
|
|
29
|
+
(function (OS) {
|
|
30
|
+
OS["Unknown"] = "Unknown";
|
|
31
|
+
OS["Android"] = "Android";
|
|
32
|
+
OS["iOS"] = "iOS";
|
|
33
|
+
OS["Windows"] = "Windows";
|
|
34
|
+
OS["MacOS"] = "MacOS";
|
|
35
|
+
})(OS || (OS = {}));
|
|
36
|
+
var Devices;
|
|
37
|
+
(function (Devices) {
|
|
38
|
+
Devices["Unknown"] = "Unknown";
|
|
39
|
+
Devices["Mobile"] = "Mobile";
|
|
40
|
+
Devices["Desktop"] = "Desktop";
|
|
41
|
+
})(Devices || (Devices = {}));
|
|
42
|
+
var Engines;
|
|
43
|
+
(function (Engines) {
|
|
44
|
+
Engines["Unknown"] = "Unknown";
|
|
45
|
+
Engines["EdgeHTML"] = "EdgeHTML";
|
|
46
|
+
Engines["ArkWeb"] = "ArkWeb";
|
|
47
|
+
Engines["Blink"] = "Blink";
|
|
48
|
+
Engines["Presto"] = "Presto";
|
|
49
|
+
Engines["WebKit"] = "WebKit";
|
|
50
|
+
Engines["Trident"] = "Trident";
|
|
51
|
+
Engines["NetFront"] = "NetFront";
|
|
52
|
+
Engines["KHTML"] = "KHTML";
|
|
53
|
+
Engines["Tasman"] = "Tasman";
|
|
54
|
+
Engines["Gecko"] = "Gecko";
|
|
55
|
+
})(Engines || (Engines = {}));
|
|
56
|
+
var Browsers;
|
|
57
|
+
(function (Browsers) {
|
|
58
|
+
Browsers["Unknown"] = "Unknown";
|
|
59
|
+
Browsers["Chrome"] = "Chrome";
|
|
60
|
+
Browsers["Safari"] = "Safari";
|
|
61
|
+
Browsers["Edge"] = "Edge";
|
|
62
|
+
Browsers["Firefox"] = "Firefox";
|
|
63
|
+
Browsers["Opera"] = "Opera";
|
|
64
|
+
Browsers["IE"] = "IE";
|
|
65
|
+
Browsers["SamsungInternet"] = "SamsungInternet";
|
|
66
|
+
})(Browsers || (Browsers = {}));
|
|
67
|
+
var USER_AGENT = (function () {
|
|
68
|
+
if (typeof globalThis.navigator.userAgent !== 'undefined')
|
|
69
|
+
return globalThis.navigator.userAgent;
|
|
70
|
+
return '';
|
|
71
|
+
})();
|
|
72
|
+
var HIGH_ENTROPY_BRAND_NAME_MAP = {
|
|
73
|
+
'Google Chrome': 'Chrome',
|
|
74
|
+
'Microsoft Edge': 'Edge',
|
|
75
|
+
'Microsoft Edge WebView2': 'Edge WebView2',
|
|
76
|
+
'Android WebView': 'Chrome WebView',
|
|
77
|
+
'HeadlessChrome': 'Chrome Headless',
|
|
78
|
+
'OperaMobile': 'Opera Mobi',
|
|
79
|
+
};
|
|
80
|
+
var OS_RESOLVER_MAP = [
|
|
81
|
+
[/windows nt (6\.[23]); arm/i, OS.Windows, resolveWindowsVersion],
|
|
82
|
+
[/windows (?:phone|mobile|iot)(?: os)?[\/ ]?([\d.]*( se)?)/i, OS.Windows, resolveWindowsVersion],
|
|
83
|
+
[/windows[\/ ](1[01]|2000|3\.1|7|8(\.1)?|9[58]|me|server 20\d\d( r2)?|vista|xp)/i, OS.Windows, resolveWindowsVersion],
|
|
84
|
+
[/windows nt ?([\d.)]*)(?!.+xbox)/i, OS.Windows, resolveWindowsVersion],
|
|
85
|
+
[/\bwin(?=3| ?9|n)(?:nt| 9x )?([\d.;]*)/i, OS.Windows, resolveWindowsVersion],
|
|
86
|
+
[/windows ce\/?([\d.]*)/i, OS.Windows, resolveWindowsVersion],
|
|
87
|
+
[/[adehimnop]{4,7}\b(?:.*os (\w+) like mac|; opera)/i, OS.iOS, resolveUnderscoreVersion],
|
|
88
|
+
[/(?:ios;fbsv|ios(?=.+ip(?:ad|hone))|ip(?:ad|hone)(?: |.+i(?:pad)?)os)[\/ ]([\w.]+)/i, OS.iOS, resolveUnderscoreVersion],
|
|
89
|
+
[/cfnetwork\/.+darwin/i, OS.iOS, resolveUnderscoreVersion],
|
|
90
|
+
[/mac os x ?([\w. ]*)/i, OS.MacOS, resolveUnderscoreVersion],
|
|
91
|
+
[/(?:macintosh|mac_powerpc\b)(?!.+(haiku|morphos))/i, OS.MacOS, resolveUnderscoreVersion],
|
|
92
|
+
[/droid ([\w.]+)\b.+(android[- ]x86)/i, OS.Android],
|
|
93
|
+
[/android\w*[-\/.; ]?([\d.]*)/i, OS.Android],
|
|
94
|
+
];
|
|
95
|
+
var ENGINE_RESOLVER_MAP = [
|
|
96
|
+
[/windows.+ edge\/([\w.]+)/i, Engines.EdgeHTML],
|
|
97
|
+
[/arkweb\/([\w.]+)/i, Engines.ArkWeb],
|
|
98
|
+
[/webkit\/537\.36.+chrome\/(?!27)([\w.]+)/i, Engines.Blink],
|
|
99
|
+
[/presto\/([\w.]+)/i, Engines.Presto],
|
|
100
|
+
[/webkit\/([\w.]+)/i, Engines.WebKit],
|
|
101
|
+
[/trident\/([\w.]+)/i, Engines.Trident],
|
|
102
|
+
[/netfront\/([\w.]+)/i, Engines.NetFront],
|
|
103
|
+
[/khtml[\/ ]\(?([\w.]+)/i, Engines.KHTML],
|
|
104
|
+
[/tasman[\/ ]\(?([\w.]+)/i, Engines.Tasman],
|
|
105
|
+
[/rv:([\w.]{1,9})\b.+gecko/i, Engines.Gecko]
|
|
106
|
+
];
|
|
107
|
+
var BROWSER_RESOLVER_MAP = [
|
|
108
|
+
[/\b(?:crmo|crios)\/([\w.]+)/i, Browsers.Chrome],
|
|
109
|
+
[/webview.+edge\/([\w.]+)/i, Browsers.Edge],
|
|
110
|
+
[/edg(?:e|ios|a)?\/([\w.]+)/i, Browsers.Edge],
|
|
111
|
+
[/opera mini\/([-\w.]+)/i, Browsers.Opera],
|
|
112
|
+
[/opera [mobileta]{3,6}\b.+version\/([-\w.]+)/i, Browsers.Opera],
|
|
113
|
+
[/opera(?:.+version\/|[\/ ]+)([\w.]+)/i, Browsers.Opera],
|
|
114
|
+
[/opios[\/ ]+([\w.]+)/i, Browsers.Opera],
|
|
115
|
+
[/\bop(?:rg)?x\/([\w.]+)/i, Browsers.Opera],
|
|
116
|
+
[/\bopr\/([\w.]+)/i, Browsers.Opera],
|
|
117
|
+
[/iemobile(?:browser|boat|jet)[\/ ]?([\d.]*)/i, Browsers.IE],
|
|
118
|
+
[/(?:ms|\()ie ([\w.]+)/i, Browsers.IE],
|
|
119
|
+
[/trident.+rv[: ]([\w.]{1,9})\b.+like gecko/i, Browsers.IE],
|
|
120
|
+
[/\bfocus\/([\w.]+)/i, Browsers.Firefox],
|
|
121
|
+
[/\bopt\/([\w.]+)/i, Browsers.Opera],
|
|
122
|
+
[/coast\/([\w.]+)/i, Browsers.Opera],
|
|
123
|
+
[/fxios\/([\w.-]+)/i, Browsers.Firefox],
|
|
124
|
+
[/samsungbrowser\/([\w.]+)/i, Browsers.SamsungInternet],
|
|
125
|
+
[/headlesschrome(?:\/([\w.]+)| )/i, Browsers.Chrome],
|
|
126
|
+
[/wv\).+chrome\/([\w.]+).+edgw\//i, Browsers.Edge],
|
|
127
|
+
[/ wv\).+(chrome)\/([\w.]+)/i, Browsers.Chrome],
|
|
128
|
+
[/chrome\/([\w.]+) mobile/i, Browsers.Chrome],
|
|
129
|
+
[/chrome\/v?([\w.]+)/i, Browsers.Chrome],
|
|
130
|
+
[/version\/([\w.,]+) .*mobile(?:\/\w+ | ?)safari/i, Browsers.Safari],
|
|
131
|
+
[/iphone .*mobile(?:\/\w+ | ?)safari/i, Browsers.Safari],
|
|
132
|
+
[/version\/([\w.,]+) .*safari/i, Browsers.Safari],
|
|
133
|
+
[/webkit.+?(?:mobile ?safari|safari)(\/[\w.]+)/i, Browsers.Safari, '1'],
|
|
134
|
+
[/(?:mobile|tablet);.*firefox\/([\w.-]+)/i, Browsers.Firefox],
|
|
135
|
+
[/mobile vr; rv:([\w.]+)\).+firefox/i, Browsers.Firefox],
|
|
136
|
+
[/firefox\/([\w.]+)/i, Browsers.Firefox],
|
|
137
|
+
];
|
|
138
|
+
|
|
139
|
+
var _a, _b, _c, _d, _e;
|
|
140
|
+
var AppOpenState;
|
|
141
|
+
(function (AppOpenState) {
|
|
142
|
+
AppOpenState[AppOpenState["Scheme"] = 0] = "Scheme";
|
|
143
|
+
AppOpenState[AppOpenState["Universal"] = 1] = "Universal";
|
|
144
|
+
AppOpenState[AppOpenState["Intent"] = 2] = "Intent";
|
|
145
|
+
AppOpenState[AppOpenState["Fallback"] = 3] = "Fallback";
|
|
146
|
+
AppOpenState[AppOpenState["Store"] = 4] = "Store";
|
|
147
|
+
})(AppOpenState || (AppOpenState = {}));
|
|
148
|
+
var SettingType;
|
|
149
|
+
(function (SettingType) {
|
|
150
|
+
SettingType["General"] = "general";
|
|
151
|
+
SettingType["Network"] = "network";
|
|
152
|
+
SettingType["Display"] = "display";
|
|
153
|
+
SettingType["Appearance"] = "appearance";
|
|
154
|
+
SettingType["Accessibility"] = "accessibility";
|
|
155
|
+
SettingType["Battery"] = "battery";
|
|
156
|
+
SettingType["Datetime"] = "datetime";
|
|
157
|
+
SettingType["Language"] = "language";
|
|
158
|
+
SettingType["Accounts"] = "accounts";
|
|
159
|
+
SettingType["Storage"] = "storage";
|
|
160
|
+
})(SettingType || (SettingType = {}));
|
|
161
|
+
var CameraType;
|
|
162
|
+
(function (CameraType) {
|
|
163
|
+
CameraType["Image"] = "image";
|
|
164
|
+
CameraType["Video"] = "video";
|
|
165
|
+
})(CameraType || (CameraType = {}));
|
|
166
|
+
var CaptureType;
|
|
167
|
+
(function (CaptureType) {
|
|
168
|
+
CaptureType["User"] = "user";
|
|
169
|
+
CaptureType["Environment"] = "environment";
|
|
170
|
+
})(CaptureType || (CaptureType = {}));
|
|
171
|
+
var ExplorerStartIn;
|
|
172
|
+
(function (ExplorerStartIn) {
|
|
173
|
+
ExplorerStartIn["Desktop"] = "desktop";
|
|
174
|
+
ExplorerStartIn["Documents"] = "documents";
|
|
175
|
+
ExplorerStartIn["Downloads"] = "downloads";
|
|
176
|
+
ExplorerStartIn["Music"] = "music";
|
|
177
|
+
ExplorerStartIn["Pictures"] = "pictures";
|
|
178
|
+
ExplorerStartIn["Videos"] = "videos";
|
|
179
|
+
})(ExplorerStartIn || (ExplorerStartIn = {}));
|
|
180
|
+
var DirectoryExploreMode;
|
|
181
|
+
(function (DirectoryExploreMode) {
|
|
182
|
+
DirectoryExploreMode["Read"] = "read";
|
|
183
|
+
DirectoryExploreMode["ReadWrite"] = "readwrite";
|
|
184
|
+
})(DirectoryExploreMode || (DirectoryExploreMode = {}));
|
|
185
|
+
var SETTING_URL = (_a = {},
|
|
186
|
+
_a[OS.Android] = (_b = {},
|
|
187
|
+
_b[SettingType.General] = 'intent:#Intent;action=android.settings.SETTINGS;end',
|
|
188
|
+
_b[SettingType.Network] = 'intent:#Intent;action=android.settings.WIFI_SETTINGS;end',
|
|
189
|
+
_b[SettingType.Display] = 'intent:#Intent;action=android.settings.DISPLAY_SETTINGS;end',
|
|
190
|
+
_b[SettingType.Appearance] = 'intent:#Intent;action=android.settings.DISPLAY_SETTINGS;end',
|
|
191
|
+
_b[SettingType.Accessibility] = 'intent:#Intent;action=android.settings.ACCESSIBILITY_SETTINGS;end',
|
|
192
|
+
_b[SettingType.Battery] = 'intent:#Intent;action=android.settings.BATTERY_SAVER_SETTINGS;end',
|
|
193
|
+
_b[SettingType.Datetime] = 'intent:#Intent;action=android.settings.DATE_SETTINGS;end',
|
|
194
|
+
_b[SettingType.Language] = 'intent:#Intent;action=android.settings.LOCALE_SETTINGS;end',
|
|
195
|
+
_b[SettingType.Accounts] = 'intent:#Intent;action=android.settings.SYNC_SETTINGS;end',
|
|
196
|
+
_b[SettingType.Storage] = 'intent:#Intent;action=android.settings.INTERNAL_STORAGE_SETTINGS;end',
|
|
197
|
+
_b),
|
|
198
|
+
_a[OS.Windows] = (_c = {},
|
|
199
|
+
_c[SettingType.General] = 'ms-settings:system',
|
|
200
|
+
_c[SettingType.Network] = 'ms-settings:network',
|
|
201
|
+
_c[SettingType.Display] = 'ms-settings:display',
|
|
202
|
+
_c[SettingType.Appearance] = 'ms-settings:colors',
|
|
203
|
+
_c[SettingType.Accessibility] = 'ms-settings:easeofaccess',
|
|
204
|
+
_c[SettingType.Battery] = 'ms-settings:batterysaver',
|
|
205
|
+
_c[SettingType.Datetime] = 'ms-settings:dateandtime',
|
|
206
|
+
_c[SettingType.Language] = 'ms-settings:regionlanguage',
|
|
207
|
+
_c[SettingType.Accounts] = 'ms-settings:emailandaccounts',
|
|
208
|
+
_c[SettingType.Storage] = 'ms-settings:storagesense',
|
|
209
|
+
_c),
|
|
210
|
+
_a[OS.MacOS] = (_d = {},
|
|
211
|
+
_d[SettingType.General] = 'x-apple.systempreferences:',
|
|
212
|
+
_d[SettingType.Network] = 'x-apple.systempreferences:com.apple.preference.network',
|
|
213
|
+
_d[SettingType.Display] = 'x-apple.systempreferences:com.apple.preference.displays',
|
|
214
|
+
_d[SettingType.Appearance] = 'x-apple.systempreferences:com.apple.preference.general',
|
|
215
|
+
_d[SettingType.Accessibility] = 'x-apple.systempreferences:com.apple.preference.universalaccess',
|
|
216
|
+
_d[SettingType.Battery] = 'x-apple.systempreferences:com.apple.preference.energysaver',
|
|
217
|
+
_d[SettingType.Datetime] = 'x-apple.systempreferences:com.apple.preference.datetime',
|
|
218
|
+
_d[SettingType.Language] = 'x-apple.systempreferences:com.apple.Localization',
|
|
219
|
+
_d[SettingType.Accounts] = 'x-apple.systempreferences:com.apple.preferences.internetaccounts',
|
|
220
|
+
_d[SettingType.Storage] = 'x-apple.systempreferences:',
|
|
221
|
+
_d),
|
|
222
|
+
_a['MacOS13+'] = (_e = {},
|
|
223
|
+
_e[SettingType.General] = 'x-apple.systempreferences:com.apple.General-Settings.extension',
|
|
224
|
+
_e[SettingType.Network] = 'x-apple.systempreferences:com.apple.Network-Settings.extension',
|
|
225
|
+
_e[SettingType.Display] = 'x-apple.systempreferences:com.apple.Displays-Settings.extension',
|
|
226
|
+
_e[SettingType.Appearance] = 'x-apple.systempreferences:com.apple.Appearance-Settings.extension',
|
|
227
|
+
_e[SettingType.Accessibility] = 'x-apple.systempreferences:com.apple.Accessibility-Settings.extension',
|
|
228
|
+
_e[SettingType.Battery] = 'x-apple.systempreferences:com.apple.Battery-Settings.extension',
|
|
229
|
+
_e[SettingType.Datetime] = 'x-apple.systempreferences:com.apple.Date-Time-Settings.extension',
|
|
230
|
+
_e[SettingType.Language] = 'x-apple.systempreferences:com.apple.Localization-Settings.extension',
|
|
231
|
+
_e[SettingType.Accounts] = 'x-apple.systempreferences:com.apple.Internet-Accounts-Settings.extension',
|
|
232
|
+
_e[SettingType.Storage] = 'x-apple.systempreferences:com.apple.settings.Storage',
|
|
233
|
+
_e),
|
|
234
|
+
_a);
|
|
235
|
+
|
|
236
|
+
function compareVersion(lhs, rhs) {
|
|
237
|
+
var pa = lhs.split('.');
|
|
238
|
+
var pb = rhs.split('.');
|
|
239
|
+
var length = Math.max(pa.length, pb.length);
|
|
240
|
+
for (var i = 0; i < length; i++) {
|
|
241
|
+
var a = void 0;
|
|
242
|
+
var b = void 0;
|
|
243
|
+
if (i < pa.length)
|
|
244
|
+
a = parseInt(pa[i], 10);
|
|
245
|
+
else
|
|
246
|
+
a = 0;
|
|
247
|
+
if (i < pb.length)
|
|
248
|
+
b = parseInt(pb[i], 10);
|
|
249
|
+
else
|
|
250
|
+
b = 0;
|
|
251
|
+
if (a > b)
|
|
252
|
+
return 1;
|
|
253
|
+
if (a < b)
|
|
254
|
+
return -1;
|
|
255
|
+
}
|
|
256
|
+
return 0;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
var IE_WRAPPER_STORE = [];
|
|
260
|
+
var MEDIA_QUERY_LIST_WRAPPER_STORE = [];
|
|
261
|
+
function isEventListenerCallback(callback) {
|
|
262
|
+
return (typeof callback === 'function' ||
|
|
263
|
+
(typeof callback === 'object' && callback !== null && typeof callback.handleEvent === 'function'));
|
|
264
|
+
}
|
|
265
|
+
function isMediaQueryListTarget(target) {
|
|
266
|
+
return typeof target.media === 'string' && typeof target.matches === 'boolean';
|
|
267
|
+
}
|
|
268
|
+
function findIEWrapper(target, type, callback) {
|
|
269
|
+
for (var i = 0; i < IE_WRAPPER_STORE.length; i++) {
|
|
270
|
+
var wrapper = IE_WRAPPER_STORE[i];
|
|
271
|
+
if (wrapper.target === target && wrapper.type === type && wrapper.callback === callback)
|
|
272
|
+
return wrapper.wrapper;
|
|
273
|
+
}
|
|
274
|
+
return undefined;
|
|
275
|
+
}
|
|
276
|
+
function setIEWrapper(target, type, callback, wrapper) {
|
|
277
|
+
IE_WRAPPER_STORE.push({ target: target, type: type, callback: callback, wrapper: wrapper });
|
|
278
|
+
}
|
|
279
|
+
function removeIEWrapper(target, type, callback) {
|
|
280
|
+
for (var i = 0; i < IE_WRAPPER_STORE.length; i++) {
|
|
281
|
+
var wrapper = IE_WRAPPER_STORE[i];
|
|
282
|
+
if (wrapper.target === target && wrapper.type === type && wrapper.callback === callback) {
|
|
283
|
+
IE_WRAPPER_STORE.splice(i, 1);
|
|
284
|
+
return wrapper.wrapper;
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
return undefined;
|
|
288
|
+
}
|
|
289
|
+
function findMediaQueryListWrapper(target, type, callback) {
|
|
290
|
+
for (var i = 0; i < MEDIA_QUERY_LIST_WRAPPER_STORE.length; i++) {
|
|
291
|
+
var wrapper = MEDIA_QUERY_LIST_WRAPPER_STORE[i];
|
|
292
|
+
if (wrapper.target === target && wrapper.type === type && wrapper.callback === callback)
|
|
293
|
+
return wrapper.wrapper;
|
|
294
|
+
}
|
|
295
|
+
return undefined;
|
|
296
|
+
}
|
|
297
|
+
function setMediaQueryListWrapper(target, type, callback, wrapper) {
|
|
298
|
+
MEDIA_QUERY_LIST_WRAPPER_STORE.push({ target: target, type: type, callback: callback, wrapper: wrapper });
|
|
299
|
+
}
|
|
300
|
+
function removeMediaQueryListWrapper(target, type, callback) {
|
|
301
|
+
for (var i = 0; i < MEDIA_QUERY_LIST_WRAPPER_STORE.length; i++) {
|
|
302
|
+
var wrapper = MEDIA_QUERY_LIST_WRAPPER_STORE[i];
|
|
303
|
+
if (wrapper.target === target && wrapper.type === type && wrapper.callback === callback) {
|
|
304
|
+
MEDIA_QUERY_LIST_WRAPPER_STORE.splice(i, 1);
|
|
305
|
+
return wrapper.wrapper;
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
return undefined;
|
|
309
|
+
}
|
|
310
|
+
function createMediaQueryListWrapper(callback) {
|
|
311
|
+
return function (event) {
|
|
312
|
+
if (typeof callback === 'function') {
|
|
313
|
+
callback.call(this, event);
|
|
314
|
+
}
|
|
315
|
+
else if (callback && typeof callback.handleEvent === 'function') {
|
|
316
|
+
callback.handleEvent(event);
|
|
317
|
+
}
|
|
318
|
+
};
|
|
319
|
+
}
|
|
320
|
+
function capitalize(_) {
|
|
321
|
+
var groups = [];
|
|
322
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
323
|
+
groups[_i - 1] = arguments[_i];
|
|
324
|
+
}
|
|
325
|
+
var result = '';
|
|
326
|
+
for (var i = 0; i < groups.length - 2; i++) {
|
|
327
|
+
var arg = groups[i];
|
|
328
|
+
if (typeof arg !== 'undefined')
|
|
329
|
+
result = result + arg.charAt(0).toUpperCase() + arg.slice(1);
|
|
330
|
+
}
|
|
331
|
+
return result;
|
|
332
|
+
}
|
|
333
|
+
function withVendor(target, type) {
|
|
334
|
+
if (target === globalThis.document && ['deviceready', 'pause', 'resume', 'backbutton', 'menubutton', 'searchbutton', 'startcallbutton', 'endcallbutton', 'volumedownbutton', 'volumeupbutton', 'activated', 'cordovacallbackerror'].indexOf(type) > -1)
|
|
335
|
+
return type;
|
|
336
|
+
if (typeof target.webkitEnterFullscreen === 'function' && ['webkitbeginfullscreen', 'webkitendfullscreen', 'webkitpresentationmodechanged'].indexOf(type) > -1)
|
|
337
|
+
return type;
|
|
338
|
+
var types;
|
|
339
|
+
if (typeof LEGACY_TYPE_MAP[type] !== 'undefined')
|
|
340
|
+
types = LEGACY_TYPE_MAP[type];
|
|
341
|
+
else if (EVENT_TYPE_REGEXP.test(type))
|
|
342
|
+
types = [type, type.replace(EVENT_TYPE_REGEXP, capitalize)];
|
|
343
|
+
else
|
|
344
|
+
types = [type];
|
|
345
|
+
for (var i = 0; i < VENDORS.length; i++) {
|
|
346
|
+
for (var j = 0; j < types.length; j++) {
|
|
347
|
+
var name_1 = VENDORS[i] + types[j];
|
|
348
|
+
if (typeof target['on' + name_1] !== 'undefined')
|
|
349
|
+
return name_1;
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
return type;
|
|
353
|
+
}
|
|
354
|
+
function preventDefaultPolyfill() {
|
|
355
|
+
this.returnValue = false;
|
|
356
|
+
}
|
|
357
|
+
function stopPropagationPolyfill() {
|
|
358
|
+
this.cancelBubble = true;
|
|
359
|
+
}
|
|
360
|
+
var EVENT_TYPE_REGEXP = /(animation)(start|iteration|end|cancel)|(transition)(start|run|end|cancel)|(fullscreen)(change|error)|(lost|got)(pointer)(capture)|(pointer)(lock)(change|error)|(pointer)(cancel|down|enter|leave|move|out|over|up)/i;
|
|
361
|
+
var VENDORS = ['', 'webkit', 'moz', 'ms', 'MS', 'o', 'O'];
|
|
362
|
+
var LEGACY_TYPE_MAP = {
|
|
363
|
+
'wheel': ['wheel', 'mousewheel', 'DOMMouseScroll'],
|
|
364
|
+
'focus': ['focus', 'focusin'],
|
|
365
|
+
'blur': ['blur', 'focusout'],
|
|
366
|
+
'beforeinput': ['beforeinput', 'textInput'],
|
|
367
|
+
};
|
|
368
|
+
var EventListener = {
|
|
369
|
+
useStd: typeof globalThis.document.addEventListener === 'function',
|
|
370
|
+
add: function (target, eventListenerOptions) {
|
|
371
|
+
if (typeof eventListenerOptions.type === 'undefined')
|
|
372
|
+
return;
|
|
373
|
+
if (typeof target === 'undefined')
|
|
374
|
+
return;
|
|
375
|
+
var callback = eventListenerOptions.callback;
|
|
376
|
+
var type = withVendor(target, eventListenerOptions.type);
|
|
377
|
+
var options = eventListenerOptions.options;
|
|
378
|
+
if (isMediaQueryListTarget(target)) {
|
|
379
|
+
if (typeof target.addListener === 'function') {
|
|
380
|
+
try {
|
|
381
|
+
var wrapper = findMediaQueryListWrapper(target, type, callback);
|
|
382
|
+
if (typeof wrapper === 'undefined') {
|
|
383
|
+
setMediaQueryListWrapper(target, type, callback, wrapper = createMediaQueryListWrapper(callback));
|
|
384
|
+
}
|
|
385
|
+
return target.addListener(wrapper);
|
|
386
|
+
}
|
|
387
|
+
catch (_) {
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
if (typeof target.addEventListener === 'function') {
|
|
392
|
+
try {
|
|
393
|
+
if (isEventListenerCallback(callback)) {
|
|
394
|
+
return target.addEventListener(type, callback, options);
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
catch (_) {
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
if (typeof target.attachEvent === 'function') {
|
|
401
|
+
var existing = findIEWrapper(target, type, callback);
|
|
402
|
+
if (typeof existing === 'function')
|
|
403
|
+
return;
|
|
404
|
+
var wrapper = function (event) {
|
|
405
|
+
if (typeof event === 'undefined')
|
|
406
|
+
event = globalThis.event;
|
|
407
|
+
if (typeof event === 'undefined')
|
|
408
|
+
return;
|
|
409
|
+
try {
|
|
410
|
+
Object.defineProperty(event, 'currentTarget', { value: target, configurable: true });
|
|
411
|
+
}
|
|
412
|
+
catch (_) {
|
|
413
|
+
}
|
|
414
|
+
if (typeof event.preventDefault !== 'function')
|
|
415
|
+
event.preventDefault = preventDefaultPolyfill.bind(event);
|
|
416
|
+
if (typeof event.stopPropagation !== 'function')
|
|
417
|
+
event.stopPropagation = stopPropagationPolyfill.bind(event);
|
|
418
|
+
if (typeof callback === 'function')
|
|
419
|
+
callback.call(target, event);
|
|
420
|
+
else if (callback && typeof callback.handleEvent === 'function')
|
|
421
|
+
callback.handleEvent(event);
|
|
422
|
+
};
|
|
423
|
+
setIEWrapper(target, type, callback, wrapper);
|
|
424
|
+
return target.attachEvent('on' + type, wrapper);
|
|
425
|
+
}
|
|
426
|
+
},
|
|
427
|
+
remove: function (target, eventListenerOptions) {
|
|
428
|
+
if (typeof eventListenerOptions.type === 'undefined')
|
|
429
|
+
return;
|
|
430
|
+
if (typeof target === 'undefined')
|
|
431
|
+
return;
|
|
432
|
+
var callback = eventListenerOptions.callback;
|
|
433
|
+
var type = withVendor(target, eventListenerOptions.type);
|
|
434
|
+
var options = eventListenerOptions.options;
|
|
435
|
+
if (isMediaQueryListTarget(target)) {
|
|
436
|
+
if (typeof target.removeListener === 'function') {
|
|
437
|
+
try {
|
|
438
|
+
var wrapper = removeMediaQueryListWrapper(target, type, callback);
|
|
439
|
+
if (typeof wrapper === 'function')
|
|
440
|
+
return target.removeListener(wrapper);
|
|
441
|
+
}
|
|
442
|
+
catch (_) {
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
return;
|
|
446
|
+
}
|
|
447
|
+
if (typeof target.removeEventListener === 'function') {
|
|
448
|
+
try {
|
|
449
|
+
if (isEventListenerCallback(callback)) {
|
|
450
|
+
return target.removeEventListener(type, callback, options);
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
catch (_) {
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
if (typeof target.detachEvent === 'function') {
|
|
457
|
+
var wrapper = removeIEWrapper(target, type, callback);
|
|
458
|
+
if (typeof wrapper === 'function')
|
|
459
|
+
target.detachEvent('on' + type, wrapper);
|
|
460
|
+
return;
|
|
461
|
+
}
|
|
462
|
+
},
|
|
463
|
+
};
|
|
464
|
+
|
|
465
|
+
var currentUserAgent = USER_AGENT;
|
|
466
|
+
var parsedCache = null;
|
|
467
|
+
var parsedFromHighEntropyValuesOS = {};
|
|
468
|
+
var parsedFromHighEntropyValuesBrowser = {};
|
|
469
|
+
var parsedFromHighEntropyValuesEngine = {};
|
|
470
|
+
var parsedFromHighEntropyValuesDevice = null;
|
|
471
|
+
var parsedFromNavigatorGPU = {};
|
|
472
|
+
function resolveVersion(string, resolver) {
|
|
473
|
+
if (typeof resolver === 'function')
|
|
474
|
+
return resolver(string);
|
|
475
|
+
if (typeof resolver === 'string')
|
|
476
|
+
return resolver;
|
|
477
|
+
if (typeof string === 'undefined')
|
|
478
|
+
return '';
|
|
479
|
+
return string;
|
|
480
|
+
}
|
|
481
|
+
function normalizeBrand(entry) {
|
|
482
|
+
if (entry === null || typeof entry === 'undefined')
|
|
483
|
+
return { brand: '', version: '' };
|
|
484
|
+
if (typeof entry === 'string')
|
|
485
|
+
return { brand: entry, version: '' };
|
|
486
|
+
return { brand: entry.brand, version: entry.version };
|
|
487
|
+
}
|
|
488
|
+
function invalidateCache() {
|
|
489
|
+
parsedCache = null;
|
|
490
|
+
parsedFromHighEntropyValuesOS = {};
|
|
491
|
+
parsedFromHighEntropyValuesBrowser = {};
|
|
492
|
+
parsedFromHighEntropyValuesEngine = {};
|
|
493
|
+
parsedFromHighEntropyValuesDevice = null;
|
|
494
|
+
parsedFromNavigatorGPU = {};
|
|
495
|
+
}
|
|
496
|
+
function getParsedCache() {
|
|
497
|
+
if (parsedCache !== null && parsedCache.userAgent === currentUserAgent)
|
|
498
|
+
return parsedCache;
|
|
499
|
+
parsedCache = {
|
|
500
|
+
userAgent: currentUserAgent,
|
|
501
|
+
os: parseOS(),
|
|
502
|
+
browser: parseBrowser(),
|
|
503
|
+
engine: parseEngine(),
|
|
504
|
+
};
|
|
505
|
+
return parsedCache;
|
|
506
|
+
}
|
|
507
|
+
function parseOS() {
|
|
508
|
+
var result = { name: OS.Unknown, version: '' };
|
|
509
|
+
for (var i = 0; i < OS_RESOLVER_MAP.length; i++) {
|
|
510
|
+
var map = OS_RESOLVER_MAP[i];
|
|
511
|
+
var matched = currentUserAgent.match(map[0]);
|
|
512
|
+
if (matched !== null) {
|
|
513
|
+
result.name = map[1];
|
|
514
|
+
result.version = resolveVersion(matched[1], map[2]);
|
|
515
|
+
break;
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
if (result.name === OS.iOS && compareVersion(result.version, '18.6') === 0) {
|
|
519
|
+
var version = /\) Version\/([\d.]+)/.exec(currentUserAgent);
|
|
520
|
+
if (version !== null) {
|
|
521
|
+
var major = parseInt(version[1].split('.')[0], 10);
|
|
522
|
+
if (major >= 26)
|
|
523
|
+
result.version = version[1];
|
|
524
|
+
}
|
|
525
|
+
}
|
|
526
|
+
if (currentUserAgent === USER_AGENT) {
|
|
527
|
+
if (typeof parsedFromHighEntropyValuesOS.name !== 'undefined')
|
|
528
|
+
result.name = parsedFromHighEntropyValuesOS.name;
|
|
529
|
+
if (typeof parsedFromHighEntropyValuesOS.version !== 'undefined')
|
|
530
|
+
result.version = parsedFromHighEntropyValuesOS.version;
|
|
531
|
+
if (result.name === OS.MacOS && typeof globalThis.navigator.standalone !== 'undefined' && globalThis.navigator.maxTouchPoints > 2)
|
|
532
|
+
result.name = OS.iOS;
|
|
533
|
+
}
|
|
534
|
+
return result;
|
|
535
|
+
}
|
|
536
|
+
function parseBrowser() {
|
|
537
|
+
var result = { name: Browsers.Unknown, version: '' };
|
|
538
|
+
for (var i = 0; i < BROWSER_RESOLVER_MAP.length; i++) {
|
|
539
|
+
var map = BROWSER_RESOLVER_MAP[i];
|
|
540
|
+
var matched = currentUserAgent.match(map[0]);
|
|
541
|
+
if (matched !== null) {
|
|
542
|
+
result.name = map[1];
|
|
543
|
+
result.version = resolveVersion(matched[1], map[2]);
|
|
544
|
+
break;
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
if (currentUserAgent === USER_AGENT) {
|
|
548
|
+
if (typeof parsedFromHighEntropyValuesBrowser.name !== 'undefined')
|
|
549
|
+
result.name = parsedFromHighEntropyValuesBrowser.name;
|
|
550
|
+
if (typeof parsedFromHighEntropyValuesBrowser.version !== 'undefined')
|
|
551
|
+
result.version = parsedFromHighEntropyValuesBrowser.version;
|
|
552
|
+
}
|
|
553
|
+
return result;
|
|
554
|
+
}
|
|
555
|
+
function parseEngine() {
|
|
556
|
+
var result = { name: Engines.Unknown, version: '' };
|
|
557
|
+
for (var i = 0; i < ENGINE_RESOLVER_MAP.length; i++) {
|
|
558
|
+
var map = ENGINE_RESOLVER_MAP[i];
|
|
559
|
+
var matched = currentUserAgent.match(map[0]);
|
|
560
|
+
if (matched !== null) {
|
|
561
|
+
result.name = map[1];
|
|
562
|
+
result.version = resolveVersion(matched[1], map[2]);
|
|
563
|
+
break;
|
|
564
|
+
}
|
|
565
|
+
}
|
|
566
|
+
if (currentUserAgent === USER_AGENT) {
|
|
567
|
+
if (typeof parsedFromHighEntropyValuesEngine.name !== 'undefined')
|
|
568
|
+
result.name = parsedFromHighEntropyValuesEngine.name;
|
|
569
|
+
if (typeof parsedFromHighEntropyValuesEngine.version !== 'undefined')
|
|
570
|
+
result.version = parsedFromHighEntropyValuesEngine.version;
|
|
571
|
+
}
|
|
572
|
+
return result;
|
|
573
|
+
}
|
|
574
|
+
function getIsWebview() {
|
|
575
|
+
return /; ?wv|applewebkit(?!.*safari)/i.test(currentUserAgent);
|
|
576
|
+
}
|
|
577
|
+
function parseFromHighEntropyValues() {
|
|
578
|
+
if (typeof globalThis.navigator === 'undefined' || typeof globalThis.navigator.userAgentData === 'undefined' || typeof globalThis.navigator.userAgentData.getHighEntropyValues === 'undefined')
|
|
579
|
+
return Promise.resolve();
|
|
580
|
+
return globalThis.navigator.userAgentData
|
|
581
|
+
.getHighEntropyValues(['brands', 'fullVersionList', 'mobile', 'model', 'platform', 'platformVersion', 'architecture', 'formFactors', 'bitness', 'uaFullVersion', 'wow64'])
|
|
582
|
+
.then(function (result) {
|
|
583
|
+
try {
|
|
584
|
+
var brands = result.fullVersionList || result.brands || [];
|
|
585
|
+
var platformVersion = result.platformVersion;
|
|
586
|
+
var platform = result.platform;
|
|
587
|
+
var browserName = getParsedCache().browser.name;
|
|
588
|
+
var prevBrandName = null;
|
|
589
|
+
for (var i = 0; i < brands.length; i++) {
|
|
590
|
+
var brand = normalizeBrand(brands[i]);
|
|
591
|
+
var brandVersion = brand.version;
|
|
592
|
+
var brandName = brand.brand;
|
|
593
|
+
if (/not.a.brand/i.test(brandName))
|
|
594
|
+
continue;
|
|
595
|
+
if (prevBrandName === null || (/Chrom/.test(prevBrandName) && brandName !== 'Chromium') || (prevBrandName === 'Edge' && /WebView2/.test(brandName))) {
|
|
596
|
+
brandName = HIGH_ENTROPY_BRAND_NAME_MAP[brandName] || brandName;
|
|
597
|
+
prevBrandName = browserName;
|
|
598
|
+
if (prevBrandName === null || /Chrom/.test(prevBrandName) || !/Chrom/.test(brandName)) {
|
|
599
|
+
browserName = brandName;
|
|
600
|
+
if (browserName === 'Chrome' || browserName === 'Chrome WebView' || browserName === 'Chrome Headless')
|
|
601
|
+
parsedFromHighEntropyValuesBrowser.name = Browsers.Chrome;
|
|
602
|
+
else if (browserName === 'Edge' || browserName === 'Edge WebView2')
|
|
603
|
+
parsedFromHighEntropyValuesBrowser.name = Browsers.Edge;
|
|
604
|
+
else if (browserName === 'Opera Mobi')
|
|
605
|
+
parsedFromHighEntropyValuesBrowser.name = Browsers.Opera;
|
|
606
|
+
parsedFromHighEntropyValuesBrowser.version = brandVersion;
|
|
607
|
+
}
|
|
608
|
+
prevBrandName = brandName;
|
|
609
|
+
}
|
|
610
|
+
if (brandName === 'Chromium')
|
|
611
|
+
parsedFromHighEntropyValuesEngine.version = brandVersion;
|
|
612
|
+
}
|
|
613
|
+
if (typeof platformVersion === 'string') {
|
|
614
|
+
if (getParsedCache().os.name === OS.Windows)
|
|
615
|
+
parsedFromHighEntropyValuesOS.version = parseInt(platformVersion.split('.')[0], 10) >= 13 ? '11' : '10';
|
|
616
|
+
else
|
|
617
|
+
parsedFromHighEntropyValuesOS.version = platformVersion;
|
|
618
|
+
}
|
|
619
|
+
if (typeof platform === 'string') {
|
|
620
|
+
if (/android/i.test(platform))
|
|
621
|
+
parsedFromHighEntropyValuesOS.name = OS.Android;
|
|
622
|
+
else if (/ios|iphone|ipad/i.test(platform))
|
|
623
|
+
parsedFromHighEntropyValuesOS.name = OS.iOS;
|
|
624
|
+
else if (/windows|win32/i.test(platform))
|
|
625
|
+
parsedFromHighEntropyValuesOS.name = OS.Windows;
|
|
626
|
+
else if (/macos|macintel/i.test(platform))
|
|
627
|
+
parsedFromHighEntropyValuesOS.name = OS.MacOS;
|
|
628
|
+
}
|
|
629
|
+
if (result.mobile === true)
|
|
630
|
+
parsedFromHighEntropyValuesDevice = Devices.Mobile;
|
|
631
|
+
parsedCache = null;
|
|
632
|
+
}
|
|
633
|
+
catch (_) {
|
|
634
|
+
}
|
|
635
|
+
})
|
|
636
|
+
.catch(function () {
|
|
637
|
+
});
|
|
638
|
+
}
|
|
639
|
+
function parseFromNavigatorGPU() {
|
|
640
|
+
if (typeof globalThis.navigator === 'undefined' || typeof globalThis.navigator.gpu === 'undefined')
|
|
641
|
+
return Promise.resolve();
|
|
642
|
+
return globalThis.navigator.gpu
|
|
643
|
+
.requestAdapter()
|
|
644
|
+
.then(function (adapter) {
|
|
645
|
+
if (adapter !== null) {
|
|
646
|
+
var info = adapter.info;
|
|
647
|
+
parsedFromNavigatorGPU.architecture = info.architecture;
|
|
648
|
+
parsedFromNavigatorGPU.description = info.description;
|
|
649
|
+
parsedFromNavigatorGPU.device = info.device;
|
|
650
|
+
parsedFromNavigatorGPU.vendor = info.vendor;
|
|
651
|
+
}
|
|
652
|
+
})
|
|
653
|
+
.catch(function () {
|
|
654
|
+
});
|
|
655
|
+
}
|
|
656
|
+
Promise.all([
|
|
657
|
+
parseFromHighEntropyValues(),
|
|
658
|
+
parseFromNavigatorGPU(),
|
|
659
|
+
]).then(function () {
|
|
660
|
+
});
|
|
661
|
+
EventListener.add(globalThis, {
|
|
662
|
+
type: 'languagechange', callback: function () {
|
|
663
|
+
}
|
|
664
|
+
});
|
|
665
|
+
var Platform = {
|
|
666
|
+
get os() {
|
|
667
|
+
return getParsedCache().os;
|
|
668
|
+
},
|
|
669
|
+
get browser() {
|
|
670
|
+
return getParsedCache().browser;
|
|
671
|
+
},
|
|
672
|
+
get userAgent() {
|
|
673
|
+
return currentUserAgent;
|
|
674
|
+
},
|
|
675
|
+
set userAgent(value) {
|
|
676
|
+
if (currentUserAgent === value)
|
|
677
|
+
return;
|
|
678
|
+
currentUserAgent = value;
|
|
679
|
+
invalidateCache();
|
|
680
|
+
if (value === USER_AGENT) {
|
|
681
|
+
Promise.all([
|
|
682
|
+
parseFromHighEntropyValues(),
|
|
683
|
+
parseFromNavigatorGPU(),
|
|
684
|
+
]).then(function () {
|
|
685
|
+
});
|
|
686
|
+
}
|
|
687
|
+
},
|
|
688
|
+
get isWebview() {
|
|
689
|
+
return getIsWebview();
|
|
690
|
+
}};
|
|
691
|
+
|
|
692
|
+
function getTopmostWindow() {
|
|
693
|
+
try {
|
|
694
|
+
if (globalThis.top !== null && globalThis.top !== globalThis.window) {
|
|
695
|
+
void globalThis.top.location.href;
|
|
696
|
+
return globalThis.top;
|
|
697
|
+
}
|
|
698
|
+
}
|
|
699
|
+
catch (_) {
|
|
700
|
+
}
|
|
701
|
+
return window;
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
function setStyle(element, styles) {
|
|
705
|
+
var elementStyle = element.style;
|
|
706
|
+
for (var key in styles) {
|
|
707
|
+
var style = styles[key];
|
|
708
|
+
if (typeof style !== 'undefined')
|
|
709
|
+
elementStyle[key] = style;
|
|
710
|
+
}
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
function createHiddenElement(tagName, focusable) {
|
|
714
|
+
if (focusable === void 0) { focusable = true; }
|
|
715
|
+
var element = globalThis.document.createElement(tagName);
|
|
716
|
+
if (typeof element.width !== 'undefined')
|
|
717
|
+
element.width = '0';
|
|
718
|
+
if (typeof element.height !== 'undefined')
|
|
719
|
+
element.height = '0';
|
|
720
|
+
if (typeof element.border !== 'undefined')
|
|
721
|
+
element.border = '0';
|
|
722
|
+
if (typeof element.frameBorder !== 'undefined')
|
|
723
|
+
element.frameBorder = '0';
|
|
724
|
+
if (typeof element.scrolling !== 'undefined')
|
|
725
|
+
element.scrolling = 'no';
|
|
726
|
+
if (typeof element.cellPadding !== 'undefined')
|
|
727
|
+
element.cellPadding = '0';
|
|
728
|
+
if (typeof element.cellSpacing !== 'undefined')
|
|
729
|
+
element.cellSpacing = '0';
|
|
730
|
+
if (typeof element.frame !== 'undefined')
|
|
731
|
+
element.frame = 'void';
|
|
732
|
+
if (typeof element.rules !== 'undefined')
|
|
733
|
+
element.rules = 'none';
|
|
734
|
+
if (typeof element.noWrap !== 'undefined')
|
|
735
|
+
element.noWrap = true;
|
|
736
|
+
element.tabIndex = -1;
|
|
737
|
+
element.setAttribute('role', 'presentation');
|
|
738
|
+
if (focusable) {
|
|
739
|
+
setStyle(element, {
|
|
740
|
+
width: '1px',
|
|
741
|
+
height: '1px',
|
|
742
|
+
});
|
|
743
|
+
}
|
|
744
|
+
else {
|
|
745
|
+
element.setAttribute('aria-hidden', 'true');
|
|
746
|
+
setStyle(element, {
|
|
747
|
+
width: '0',
|
|
748
|
+
height: '0',
|
|
749
|
+
zIndex: '-9999',
|
|
750
|
+
display: 'none',
|
|
751
|
+
visibility: 'hidden',
|
|
752
|
+
pointerEvents: 'none',
|
|
753
|
+
});
|
|
754
|
+
}
|
|
755
|
+
setStyle(element, {
|
|
756
|
+
position: 'absolute',
|
|
757
|
+
top: '0',
|
|
758
|
+
left: '0',
|
|
759
|
+
padding: '0',
|
|
760
|
+
margin: '0',
|
|
761
|
+
border: 'none',
|
|
762
|
+
outline: 'hidden',
|
|
763
|
+
clip: 'rect(1px, 1px, 1px, 1px)',
|
|
764
|
+
clipPath: 'inset(50%)',
|
|
765
|
+
overflow: 'hidden',
|
|
766
|
+
whiteSpace: 'nowrap',
|
|
767
|
+
});
|
|
768
|
+
return element;
|
|
769
|
+
}
|
|
770
|
+
|
|
771
|
+
function dispatchClickEvent(element, view) {
|
|
772
|
+
if (view === void 0) { view = window; }
|
|
773
|
+
var fake;
|
|
774
|
+
try {
|
|
775
|
+
fake = new MouseEvent('click', {
|
|
776
|
+
bubbles: true,
|
|
777
|
+
cancelable: true,
|
|
778
|
+
view: view
|
|
779
|
+
});
|
|
780
|
+
}
|
|
781
|
+
catch (_) {
|
|
782
|
+
fake = globalThis.document.createEvent('MouseEvents');
|
|
783
|
+
fake.initMouseEvent('click', true, true, view, 0, 0, 0, 0, 0, false, false, false, false, 0, null);
|
|
784
|
+
}
|
|
785
|
+
element.dispatchEvent(fake);
|
|
786
|
+
}
|
|
787
|
+
|
|
788
|
+
function now() {
|
|
789
|
+
if (typeof Date.now === 'function')
|
|
790
|
+
return Date.now();
|
|
791
|
+
return (new Date).getTime();
|
|
792
|
+
}
|
|
793
|
+
|
|
794
|
+
function randomString(length) {
|
|
795
|
+
var chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789';
|
|
796
|
+
var result = '';
|
|
797
|
+
var seed = new Date().getTime();
|
|
798
|
+
for (var i = 0; i < length; i++) {
|
|
799
|
+
seed = (seed * 9301 + 49297) % 233280;
|
|
800
|
+
result += chars.charAt(seed % 62);
|
|
801
|
+
}
|
|
802
|
+
return result;
|
|
803
|
+
}
|
|
804
|
+
|
|
805
|
+
function padStart(string, length, pad) {
|
|
806
|
+
length = length >> 0;
|
|
807
|
+
if (typeof string !== 'string')
|
|
808
|
+
string = String(string);
|
|
809
|
+
if (string.length >= length)
|
|
810
|
+
return string;
|
|
811
|
+
length = length - string.length;
|
|
812
|
+
if (length > pad.length)
|
|
813
|
+
pad += pad.repeat(length / pad.length);
|
|
814
|
+
return pad.slice(0, length) + string;
|
|
815
|
+
}
|
|
816
|
+
|
|
817
|
+
function createCustomError(name, Base) {
|
|
818
|
+
if (Base === void 0) { Base = Error; }
|
|
819
|
+
function CustomError(message) {
|
|
820
|
+
if (!(this instanceof CustomError))
|
|
821
|
+
return new CustomError(message);
|
|
822
|
+
var error = (function () {
|
|
823
|
+
if (typeof message === 'undefined')
|
|
824
|
+
return new Base('');
|
|
825
|
+
return new Base(message);
|
|
826
|
+
})();
|
|
827
|
+
if (typeof Object.setPrototypeOf === 'function')
|
|
828
|
+
Object.setPrototypeOf(error, CustomError.prototype);
|
|
829
|
+
else
|
|
830
|
+
error.__proto__ = CustomError.prototype;
|
|
831
|
+
error.name = name;
|
|
832
|
+
if (typeof message !== 'undefined')
|
|
833
|
+
error.message = message;
|
|
834
|
+
if (typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
835
|
+
try {
|
|
836
|
+
Object.defineProperty(error, Symbol.toStringTag, {
|
|
837
|
+
value: name,
|
|
838
|
+
writable: false,
|
|
839
|
+
enumerable: false,
|
|
840
|
+
configurable: true
|
|
841
|
+
});
|
|
842
|
+
}
|
|
843
|
+
catch (_) {
|
|
844
|
+
}
|
|
845
|
+
}
|
|
846
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
847
|
+
Error.captureStackTrace(error, CustomError);
|
|
848
|
+
}
|
|
849
|
+
else if (Base.captureStackTrace && typeof Base.captureStackTrace === 'function') {
|
|
850
|
+
Base.captureStackTrace(error, CustomError);
|
|
851
|
+
}
|
|
852
|
+
else {
|
|
853
|
+
try {
|
|
854
|
+
var tempError = new Base();
|
|
855
|
+
if (tempError.stack)
|
|
856
|
+
error.stack = tempError.stack;
|
|
857
|
+
}
|
|
858
|
+
catch (_) {
|
|
859
|
+
}
|
|
860
|
+
}
|
|
861
|
+
return error;
|
|
862
|
+
}
|
|
863
|
+
CustomError.prototype = Object.create(Base.prototype, {
|
|
864
|
+
constructor: {
|
|
865
|
+
value: CustomError,
|
|
866
|
+
writable: true,
|
|
867
|
+
enumerable: false,
|
|
868
|
+
configurable: true
|
|
869
|
+
}
|
|
870
|
+
});
|
|
871
|
+
try {
|
|
872
|
+
Object.defineProperty(CustomError.prototype, 'name', {
|
|
873
|
+
value: name,
|
|
874
|
+
writable: true,
|
|
875
|
+
enumerable: false,
|
|
876
|
+
configurable: true
|
|
877
|
+
});
|
|
878
|
+
}
|
|
879
|
+
catch (_) {
|
|
880
|
+
try {
|
|
881
|
+
CustomError.prototype.name = name;
|
|
882
|
+
}
|
|
883
|
+
catch (_) {
|
|
884
|
+
}
|
|
885
|
+
}
|
|
886
|
+
try {
|
|
887
|
+
Object.defineProperty(CustomError, 'name', {
|
|
888
|
+
value: name,
|
|
889
|
+
writable: false,
|
|
890
|
+
enumerable: false,
|
|
891
|
+
configurable: true
|
|
892
|
+
});
|
|
893
|
+
}
|
|
894
|
+
catch (_) {
|
|
895
|
+
}
|
|
896
|
+
return CustomError;
|
|
897
|
+
}
|
|
898
|
+
|
|
899
|
+
var URLOpenError = createCustomError('URLOpenError');
|
|
900
|
+
|
|
901
|
+
var UserCancelledError = createCustomError('UserCancelledError');
|
|
902
|
+
|
|
903
|
+
var NotSupportedError = createCustomError('NotSupportedError');
|
|
904
|
+
|
|
905
|
+
var Open = {
|
|
906
|
+
app: app,
|
|
907
|
+
telephone: telephone,
|
|
908
|
+
message: message,
|
|
909
|
+
mail: mail,
|
|
910
|
+
file: file,
|
|
911
|
+
directory: directory,
|
|
912
|
+
setting: setting,
|
|
913
|
+
camera: camera,
|
|
914
|
+
contact: contact,
|
|
915
|
+
share: share,
|
|
916
|
+
calendar: calendar,
|
|
917
|
+
supported: {
|
|
918
|
+
get intent() {
|
|
919
|
+
return canOpenIntentURL();
|
|
920
|
+
},
|
|
921
|
+
get universal() {
|
|
922
|
+
return canOpenUniversalURL();
|
|
923
|
+
},
|
|
924
|
+
get setting() {
|
|
925
|
+
return canOpenSetting();
|
|
926
|
+
},
|
|
927
|
+
get directory() {
|
|
928
|
+
return canOpenDirectory();
|
|
929
|
+
},
|
|
930
|
+
get camera() {
|
|
931
|
+
return canOpenCamera();
|
|
932
|
+
},
|
|
933
|
+
get contact() {
|
|
934
|
+
return canOpenContact();
|
|
935
|
+
},
|
|
936
|
+
get share() {
|
|
937
|
+
return canOpenShare();
|
|
938
|
+
},
|
|
939
|
+
get calendar() {
|
|
940
|
+
return canOpenCalendar();
|
|
941
|
+
},
|
|
942
|
+
},
|
|
943
|
+
Constants: {
|
|
944
|
+
AppOpenState: AppOpenState,
|
|
945
|
+
SettingType: SettingType,
|
|
946
|
+
CameraType: CameraType,
|
|
947
|
+
CaptureType: CaptureType,
|
|
948
|
+
},
|
|
949
|
+
Errors: {
|
|
950
|
+
URLOpenError: URLOpenError,
|
|
951
|
+
NotSupportedError: NotSupportedError,
|
|
952
|
+
UserCancelledError: UserCancelledError,
|
|
953
|
+
}
|
|
954
|
+
};
|
|
955
|
+
var resolveFileCleanup = undefined;
|
|
956
|
+
function resolveFocusEventConfig() {
|
|
957
|
+
var top = getTopmostWindow();
|
|
958
|
+
var topDocument = top.document;
|
|
959
|
+
var eventType = {};
|
|
960
|
+
var eventTarget = {};
|
|
961
|
+
var isCordova = typeof globalThis.cordova !== 'undefined';
|
|
962
|
+
var isIOS = Platform.os.name === OS.iOS;
|
|
963
|
+
var isIOSOver8 = isIOS && compareVersion(Platform.os.version, '8.0') >= 0;
|
|
964
|
+
var isIOSUnder8 = isIOS && !isIOSOver8;
|
|
965
|
+
var isStandard = EventListener.useStd;
|
|
966
|
+
if (isCordova) {
|
|
967
|
+
eventType.focus = 'resume';
|
|
968
|
+
eventType.blur = 'pause';
|
|
969
|
+
eventTarget.focus = topDocument;
|
|
970
|
+
eventTarget.blur = topDocument;
|
|
971
|
+
}
|
|
972
|
+
else if (isIOSOver8) {
|
|
973
|
+
eventType.visibilitychange = 'visibilitychange';
|
|
974
|
+
eventTarget.visibilitychange = topDocument;
|
|
975
|
+
}
|
|
976
|
+
else if (isIOSUnder8) {
|
|
977
|
+
eventType.focus = 'pageshow';
|
|
978
|
+
eventType.blur = 'pagehide';
|
|
979
|
+
eventTarget.focus = top;
|
|
980
|
+
eventTarget.blur = top;
|
|
981
|
+
}
|
|
982
|
+
else if (isStandard) {
|
|
983
|
+
eventType.focus = 'focus';
|
|
984
|
+
eventType.blur = 'blur';
|
|
985
|
+
eventType.visibilitychange = 'visibilitychange';
|
|
986
|
+
eventTarget.focus = top;
|
|
987
|
+
eventTarget.blur = top;
|
|
988
|
+
eventTarget.visibilitychange = topDocument;
|
|
989
|
+
}
|
|
990
|
+
else {
|
|
991
|
+
eventType.focus = 'focus';
|
|
992
|
+
eventType.blur = 'blur';
|
|
993
|
+
eventType.visibilitychange = 'visibilitychange';
|
|
994
|
+
eventTarget.focus = topDocument;
|
|
995
|
+
eventTarget.blur = topDocument;
|
|
996
|
+
eventTarget.visibilitychange = topDocument;
|
|
997
|
+
}
|
|
998
|
+
return {
|
|
999
|
+
type: eventType,
|
|
1000
|
+
target: eventTarget
|
|
1001
|
+
};
|
|
1002
|
+
}
|
|
1003
|
+
function getTrackId(bundle) {
|
|
1004
|
+
try {
|
|
1005
|
+
var xhr = new XMLHttpRequest();
|
|
1006
|
+
xhr.open('GET', 'https://itunes.apple.com/lookup?bundleId=' + bundle, false);
|
|
1007
|
+
xhr.send();
|
|
1008
|
+
if (xhr.status === 200) {
|
|
1009
|
+
try {
|
|
1010
|
+
return parseLookupBundleIdResponse(JSON.parse(xhr.response));
|
|
1011
|
+
}
|
|
1012
|
+
catch (_) {
|
|
1013
|
+
return undefined;
|
|
1014
|
+
}
|
|
1015
|
+
}
|
|
1016
|
+
return undefined;
|
|
1017
|
+
}
|
|
1018
|
+
catch (_) {
|
|
1019
|
+
return undefined;
|
|
1020
|
+
}
|
|
1021
|
+
}
|
|
1022
|
+
function parseLookupBundleIdResponse(response) {
|
|
1023
|
+
if (typeof response.results === 'undefined')
|
|
1024
|
+
return undefined;
|
|
1025
|
+
var results = response.results;
|
|
1026
|
+
if (results.length === 0)
|
|
1027
|
+
return undefined;
|
|
1028
|
+
var result = results[0];
|
|
1029
|
+
if (typeof result === 'undefined')
|
|
1030
|
+
return undefined;
|
|
1031
|
+
return '' + result.trackId;
|
|
1032
|
+
}
|
|
1033
|
+
function parseIntentURL(intent) {
|
|
1034
|
+
var parsed = {};
|
|
1035
|
+
var split = intent.split('#Intent;');
|
|
1036
|
+
var host = split[0].substring(9);
|
|
1037
|
+
var suffix = split[1];
|
|
1038
|
+
var parameterString = suffix.substring(0, suffix.length - 4);
|
|
1039
|
+
var parameters = parameterString.split(';');
|
|
1040
|
+
var extras = {};
|
|
1041
|
+
for (var i = 0; i < parameters.length; i++) {
|
|
1042
|
+
var part = parameters[i];
|
|
1043
|
+
var index = part.indexOf('=');
|
|
1044
|
+
if (index !== -1)
|
|
1045
|
+
extras[part.substring(0, index)] = part.substring(index + 1);
|
|
1046
|
+
}
|
|
1047
|
+
if (typeof extras['scheme'] !== 'undefined')
|
|
1048
|
+
parsed.scheme = (extras['scheme'] + '://' + host);
|
|
1049
|
+
if (typeof extras['package'] !== 'undefined')
|
|
1050
|
+
parsed.packageName = extras['package'];
|
|
1051
|
+
if (typeof extras['S.browser_fallback_url'] !== 'undefined')
|
|
1052
|
+
parsed.fallback = extras['S.browser_fallback_url'];
|
|
1053
|
+
return parsed;
|
|
1054
|
+
}
|
|
1055
|
+
function createIntentURL(scheme, packageName, fallback) {
|
|
1056
|
+
var split = scheme.split('://');
|
|
1057
|
+
var prefix = split[0];
|
|
1058
|
+
var suffix = split[1];
|
|
1059
|
+
var intent = 'intent://';
|
|
1060
|
+
if (typeof suffix !== 'undefined')
|
|
1061
|
+
intent += suffix;
|
|
1062
|
+
intent += '#Intent;'
|
|
1063
|
+
+ 'scheme=' + prefix + ';'
|
|
1064
|
+
+ 'action=android.intent.action.VIEW;'
|
|
1065
|
+
+ 'category=android.intent.category.BROWSABLE;';
|
|
1066
|
+
if (typeof packageName !== 'undefined')
|
|
1067
|
+
intent += 'package=' + packageName + ';';
|
|
1068
|
+
if (typeof fallback !== 'undefined' && typeof fallback === 'string')
|
|
1069
|
+
intent += 'S.browser_fallback_url=' + globalThis.encodeURIComponent(fallback) + ';';
|
|
1070
|
+
else if (typeof packageName !== 'undefined')
|
|
1071
|
+
intent += 'S.browser_fallback_url=' + globalThis.encodeURIComponent(createAppStoreURL(packageName, OS.Android)) + ';';
|
|
1072
|
+
return intent + 'end';
|
|
1073
|
+
}
|
|
1074
|
+
function createAppStoreURL(packageName, os) {
|
|
1075
|
+
if (typeof packageName === 'undefined')
|
|
1076
|
+
return undefined;
|
|
1077
|
+
switch (os) {
|
|
1078
|
+
case OS.Android:
|
|
1079
|
+
return 'market://details?id=' + packageName;
|
|
1080
|
+
case OS.iOS:
|
|
1081
|
+
return 'itms-apps://itunes.apple.com/app/id' + packageName + '?mt=8';
|
|
1082
|
+
case OS.Windows:
|
|
1083
|
+
return 'ms-windows-store://pdp/?ProductId=' + packageName;
|
|
1084
|
+
case OS.MacOS:
|
|
1085
|
+
return 'macappstore://itunes.apple.com/app/id' + packageName + '?mt=12';
|
|
1086
|
+
default:
|
|
1087
|
+
throw new URLOpenError('Unsupported OS: \"' + Platform.userAgent + '\"');
|
|
1088
|
+
}
|
|
1089
|
+
}
|
|
1090
|
+
function createWebStoreURL(packageName, os) {
|
|
1091
|
+
if (typeof packageName === 'undefined')
|
|
1092
|
+
return undefined;
|
|
1093
|
+
switch (os) {
|
|
1094
|
+
case OS.Android:
|
|
1095
|
+
return 'https://play.google.com/store/apps/details?id=' + packageName;
|
|
1096
|
+
case OS.iOS:
|
|
1097
|
+
return 'https://itunes.apple.com/app/id' + packageName + '?mt=8';
|
|
1098
|
+
case OS.Windows:
|
|
1099
|
+
return 'https://apps.microsoft.com/detail/' + packageName;
|
|
1100
|
+
case OS.MacOS:
|
|
1101
|
+
return 'https://apps.apple.com/app/id' + packageName + '?mt=12';
|
|
1102
|
+
default:
|
|
1103
|
+
throw new URLOpenError('Unsupported OS: \"' + Platform.userAgent + '\"');
|
|
1104
|
+
}
|
|
1105
|
+
}
|
|
1106
|
+
function getDefaultTimeoutByOS(os) {
|
|
1107
|
+
switch (os) {
|
|
1108
|
+
case OS.iOS:
|
|
1109
|
+
return 2000;
|
|
1110
|
+
case OS.Android:
|
|
1111
|
+
return 1000;
|
|
1112
|
+
default:
|
|
1113
|
+
return 750;
|
|
1114
|
+
}
|
|
1115
|
+
}
|
|
1116
|
+
function canOpenIntentURL() {
|
|
1117
|
+
if (Platform.os.name !== OS.Android)
|
|
1118
|
+
return false;
|
|
1119
|
+
var version = Platform.browser.version;
|
|
1120
|
+
if (Platform.browser.name === Browsers.SamsungInternet && compareVersion(version, '17.0.1.69') >= 0 && compareVersion(version, '17.0.7.34') < 0)
|
|
1121
|
+
return false;
|
|
1122
|
+
if (Platform.browser.name === Browsers.Firefox && compareVersion(version, '41.0') < 0)
|
|
1123
|
+
return false;
|
|
1124
|
+
if (Platform.browser.name === Browsers.Firefox && compareVersion(version, '59.0') >= 0 && compareVersion(version, '68.11.0') < 0)
|
|
1125
|
+
return false;
|
|
1126
|
+
if (Platform.browser.name === Browsers.Firefox && compareVersion(version, '80.0') >= 0 && compareVersion(version, '82.0') < 0)
|
|
1127
|
+
return false;
|
|
1128
|
+
if (Platform.browser.name === Browsers.Firefox && compareVersion(version, '96.0') >= 0 && compareVersion(version, '107.0') < 0)
|
|
1129
|
+
return false;
|
|
1130
|
+
if (Platform.browser.name === Browsers.Opera && compareVersion(version, '14.0') < 0)
|
|
1131
|
+
return false;
|
|
1132
|
+
return !(/(?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/[\w.]+;/i.test(Platform.userAgent) || /instagram[\/ ][-\w.]+/i.test(Platform.userAgent) || /micromessenger\/([\w.]+)/i.test(Platform.userAgent) || /musical_ly(?:.+app_?version\/|_)[\w.]+/i.test(Platform.userAgent) || /ultralite app_version\/[\w.]+/i.test(Platform.userAgent));
|
|
1133
|
+
}
|
|
1134
|
+
function canOpenUniversalURL() {
|
|
1135
|
+
return Platform.os.name === OS.iOS && compareVersion(Platform.os.version, '9.0') >= 0;
|
|
1136
|
+
}
|
|
1137
|
+
function canOpenSetting() {
|
|
1138
|
+
var os = Platform.os.name;
|
|
1139
|
+
var version = Platform.os.version;
|
|
1140
|
+
if (os === OS.Unknown)
|
|
1141
|
+
return false;
|
|
1142
|
+
if (os === OS.Android && !canOpenIntentURL())
|
|
1143
|
+
return false;
|
|
1144
|
+
if (os === OS.iOS)
|
|
1145
|
+
return false;
|
|
1146
|
+
if (os === OS.Windows && (version === 'Vista' || version === 'XP' || version === '2000' || version === 'NT 4.0' || version === 'NT 3.11' || version === 'ME' || compareVersion(version, '10') < 0))
|
|
1147
|
+
return false;
|
|
1148
|
+
return !(os === OS.MacOS && compareVersion(version, '10.10') < 0);
|
|
1149
|
+
}
|
|
1150
|
+
function canOpenDirectory() {
|
|
1151
|
+
return typeof globalThis.showDirectoryPicker !== 'undefined' || typeof createHiddenElement('input').webkitdirectory !== 'undefined';
|
|
1152
|
+
}
|
|
1153
|
+
function canOpenCamera() {
|
|
1154
|
+
var os = Platform.os.name;
|
|
1155
|
+
var version = Platform.os.version;
|
|
1156
|
+
return !Platform.isWebview && ((os === OS.iOS && compareVersion(version, '10.3.1') === 0) || (os === OS.Android && compareVersion(version, '3.0') >= 0));
|
|
1157
|
+
}
|
|
1158
|
+
function canOpenContact() {
|
|
1159
|
+
return typeof globalThis.navigator.contacts !== 'undefined';
|
|
1160
|
+
}
|
|
1161
|
+
function canOpenShare() {
|
|
1162
|
+
return typeof globalThis.navigator.share !== 'undefined';
|
|
1163
|
+
}
|
|
1164
|
+
function canOpenCalendar() {
|
|
1165
|
+
return Platform.os.name === OS.iOS && compareVersion(Platform.os.version, '15.0') >= 0 && Platform.browser.name === Browsers.Safari && !Platform.isWebview;
|
|
1166
|
+
}
|
|
1167
|
+
function pushURL(urls, url, state, condition) {
|
|
1168
|
+
if (condition === void 0) { condition = false; }
|
|
1169
|
+
if ((typeof url === 'function' || typeof url === 'string') && condition)
|
|
1170
|
+
urls.push([state, url]);
|
|
1171
|
+
}
|
|
1172
|
+
function joining(values, mapfn, separator) {
|
|
1173
|
+
if (mapfn === void 0) { mapfn = undefined; }
|
|
1174
|
+
if (separator === void 0) { separator = ','; }
|
|
1175
|
+
var length = values.length;
|
|
1176
|
+
var result = '';
|
|
1177
|
+
for (var i = 0; i < length; i++) {
|
|
1178
|
+
if (i !== 0)
|
|
1179
|
+
result += separator;
|
|
1180
|
+
if (typeof mapfn !== 'undefined')
|
|
1181
|
+
result += mapfn(values[i]);
|
|
1182
|
+
else
|
|
1183
|
+
result += values[i];
|
|
1184
|
+
}
|
|
1185
|
+
return result;
|
|
1186
|
+
}
|
|
1187
|
+
function escapeURIComponentString(value) {
|
|
1188
|
+
return globalThis.encodeURIComponent(value)
|
|
1189
|
+
.replace(/[!'()*]/g, function (char) {
|
|
1190
|
+
return '%' + char.charCodeAt(0).toString(16);
|
|
1191
|
+
});
|
|
1192
|
+
}
|
|
1193
|
+
function escapeURIComponentMailAddressString(value) {
|
|
1194
|
+
return escapeURIComponentString(value)
|
|
1195
|
+
.replace(/%22/g, '"')
|
|
1196
|
+
.replace(/%40/g, '@')
|
|
1197
|
+
.replace(/%2C/gi, ',');
|
|
1198
|
+
}
|
|
1199
|
+
function escapeICSString(value) {
|
|
1200
|
+
return value
|
|
1201
|
+
.replace(/\\/g, '\\\\')
|
|
1202
|
+
.replace(/;/g, '\\;')
|
|
1203
|
+
.replace(/,/g, '\\,')
|
|
1204
|
+
.replace(/\r\n|\n|\r/g, '\\n');
|
|
1205
|
+
}
|
|
1206
|
+
function utf8ByteLength(value) {
|
|
1207
|
+
if (typeof globalThis.TextEncoder !== 'undefined')
|
|
1208
|
+
return new TextEncoder().encode(value).length;
|
|
1209
|
+
return globalThis.unescape(globalThis.encodeURIComponent(value)).length;
|
|
1210
|
+
}
|
|
1211
|
+
function foldICSString(value) {
|
|
1212
|
+
if (utf8ByteLength(value) <= 75)
|
|
1213
|
+
return value;
|
|
1214
|
+
var out = '';
|
|
1215
|
+
var current = '';
|
|
1216
|
+
var currentBytes = 0;
|
|
1217
|
+
for (var i = 0; i < value.length; i++) {
|
|
1218
|
+
var char = value[i];
|
|
1219
|
+
var charBytes = utf8ByteLength(value[i]);
|
|
1220
|
+
if (current !== '' && currentBytes + charBytes > 75) {
|
|
1221
|
+
out += current + '\r\n ';
|
|
1222
|
+
current = char;
|
|
1223
|
+
currentBytes = charBytes;
|
|
1224
|
+
}
|
|
1225
|
+
else {
|
|
1226
|
+
current += char;
|
|
1227
|
+
currentBytes += charBytes;
|
|
1228
|
+
}
|
|
1229
|
+
}
|
|
1230
|
+
out += current;
|
|
1231
|
+
return out;
|
|
1232
|
+
}
|
|
1233
|
+
function urlToString(value) {
|
|
1234
|
+
if (value instanceof URL)
|
|
1235
|
+
return value.toString();
|
|
1236
|
+
return value;
|
|
1237
|
+
}
|
|
1238
|
+
function dateToICSDateString(date, allDay) {
|
|
1239
|
+
if (allDay === void 0) { allDay = false; }
|
|
1240
|
+
if (allDay) {
|
|
1241
|
+
return date.getUTCFullYear()
|
|
1242
|
+
+ padStart(date.getUTCMonth() + 1, 2, '0')
|
|
1243
|
+
+ padStart(date.getUTCDate(), 2, '0');
|
|
1244
|
+
}
|
|
1245
|
+
return date.getUTCFullYear()
|
|
1246
|
+
+ padStart(date.getUTCMonth() + 1, 2, '0')
|
|
1247
|
+
+ padStart(date.getUTCDate(), 2, '0')
|
|
1248
|
+
+ 'T'
|
|
1249
|
+
+ padStart(date.getUTCHours(), 2, '0')
|
|
1250
|
+
+ padStart(date.getUTCMinutes(), 2, '0')
|
|
1251
|
+
+ padStart(date.getUTCSeconds(), 2, '0')
|
|
1252
|
+
+ 'Z';
|
|
1253
|
+
}
|
|
1254
|
+
function getURLOpenError(tried) {
|
|
1255
|
+
var triedURLString = '';
|
|
1256
|
+
for (var i = 0; i < tried.length; i++)
|
|
1257
|
+
triedURLString += '\n' + (i + 1) + ': ' + tried[i];
|
|
1258
|
+
if (triedURLString.length > 0)
|
|
1259
|
+
triedURLString = '\n' + triedURLString + '\n';
|
|
1260
|
+
return new URLOpenError('Failed to open any of the provided URLs: ' + triedURLString);
|
|
1261
|
+
}
|
|
1262
|
+
function openURLViaHref(url, index) {
|
|
1263
|
+
var top = getTopmostWindow();
|
|
1264
|
+
var topDocument = top.document;
|
|
1265
|
+
var anchor = undefined;
|
|
1266
|
+
try {
|
|
1267
|
+
if (index === 0) {
|
|
1268
|
+
top.location.href = url;
|
|
1269
|
+
return;
|
|
1270
|
+
}
|
|
1271
|
+
anchor = createHiddenElement('a');
|
|
1272
|
+
anchor.href = url;
|
|
1273
|
+
topDocument.body.appendChild(anchor);
|
|
1274
|
+
dispatchClickEvent(anchor, top);
|
|
1275
|
+
return anchor;
|
|
1276
|
+
}
|
|
1277
|
+
catch (_) {
|
|
1278
|
+
}
|
|
1279
|
+
finally {
|
|
1280
|
+
if (typeof anchor !== 'undefined') {
|
|
1281
|
+
try {
|
|
1282
|
+
topDocument.body.removeChild(anchor);
|
|
1283
|
+
}
|
|
1284
|
+
catch (_) {
|
|
1285
|
+
}
|
|
1286
|
+
}
|
|
1287
|
+
}
|
|
1288
|
+
}
|
|
1289
|
+
function openURLViaIframe(url) {
|
|
1290
|
+
var top = getTopmostWindow();
|
|
1291
|
+
var topDocument = top.document;
|
|
1292
|
+
var iframe = undefined;
|
|
1293
|
+
try {
|
|
1294
|
+
iframe = createHiddenElement('iframe');
|
|
1295
|
+
if (typeof iframe === 'undefined')
|
|
1296
|
+
return;
|
|
1297
|
+
iframe.src = url;
|
|
1298
|
+
topDocument.body.appendChild(iframe);
|
|
1299
|
+
globalThis.setTimeout(function () {
|
|
1300
|
+
if (typeof iframe !== 'undefined') {
|
|
1301
|
+
try {
|
|
1302
|
+
topDocument.body.removeChild(iframe);
|
|
1303
|
+
}
|
|
1304
|
+
catch (_) {
|
|
1305
|
+
}
|
|
1306
|
+
}
|
|
1307
|
+
}, 500);
|
|
1308
|
+
}
|
|
1309
|
+
catch (_) {
|
|
1310
|
+
}
|
|
1311
|
+
return iframe;
|
|
1312
|
+
}
|
|
1313
|
+
function isDocumentHidden() {
|
|
1314
|
+
var top = getTopmostWindow();
|
|
1315
|
+
var topDocument = top.document;
|
|
1316
|
+
if (topDocument.visibilityState === 'hidden')
|
|
1317
|
+
return true;
|
|
1318
|
+
if (topDocument.webkitVisibilityState === 'hidden')
|
|
1319
|
+
return true;
|
|
1320
|
+
if (topDocument.mozVisibilityState === 'hidden')
|
|
1321
|
+
return true;
|
|
1322
|
+
if (topDocument.msVisibilityState === 'hidden')
|
|
1323
|
+
return true;
|
|
1324
|
+
if (typeof topDocument.hidden !== 'undefined')
|
|
1325
|
+
return topDocument.hidden;
|
|
1326
|
+
if (typeof topDocument.webkitHidden !== 'undefined')
|
|
1327
|
+
return topDocument.webkitHidden;
|
|
1328
|
+
if (typeof topDocument.mozHidden !== 'undefined')
|
|
1329
|
+
return topDocument.mozHidden;
|
|
1330
|
+
if (typeof topDocument.msHidden !== 'undefined')
|
|
1331
|
+
return topDocument.msHidden;
|
|
1332
|
+
if (typeof topDocument.hasFocus === 'function')
|
|
1333
|
+
return !topDocument.hasFocus();
|
|
1334
|
+
return true;
|
|
1335
|
+
}
|
|
1336
|
+
function hasFocus(document) {
|
|
1337
|
+
if (typeof document.hasFocus === 'function')
|
|
1338
|
+
return document.hasFocus();
|
|
1339
|
+
return false;
|
|
1340
|
+
}
|
|
1341
|
+
function focus(target) {
|
|
1342
|
+
try {
|
|
1343
|
+
target.focus({ preventScroll: true });
|
|
1344
|
+
}
|
|
1345
|
+
catch (_) {
|
|
1346
|
+
try {
|
|
1347
|
+
target.focus();
|
|
1348
|
+
}
|
|
1349
|
+
catch (_) {
|
|
1350
|
+
}
|
|
1351
|
+
}
|
|
1352
|
+
}
|
|
1353
|
+
function restoreFocus() {
|
|
1354
|
+
var top = getTopmostWindow();
|
|
1355
|
+
var topDocument = top.document;
|
|
1356
|
+
focus(top);
|
|
1357
|
+
if (hasFocus(topDocument))
|
|
1358
|
+
return true;
|
|
1359
|
+
if (topDocument.body.tabIndex < 0)
|
|
1360
|
+
topDocument.body.tabIndex = -1;
|
|
1361
|
+
focus(topDocument.body);
|
|
1362
|
+
if (hasFocus(topDocument))
|
|
1363
|
+
return true;
|
|
1364
|
+
var input = undefined;
|
|
1365
|
+
try {
|
|
1366
|
+
input = createHiddenElement('input');
|
|
1367
|
+
if (typeof input === 'undefined')
|
|
1368
|
+
return false;
|
|
1369
|
+
input.type = 'text';
|
|
1370
|
+
input.readOnly = true;
|
|
1371
|
+
topDocument.body.appendChild(input);
|
|
1372
|
+
focus(input);
|
|
1373
|
+
try {
|
|
1374
|
+
input.select();
|
|
1375
|
+
}
|
|
1376
|
+
catch (_) {
|
|
1377
|
+
}
|
|
1378
|
+
if (hasFocus(topDocument))
|
|
1379
|
+
return true;
|
|
1380
|
+
}
|
|
1381
|
+
catch (_) {
|
|
1382
|
+
}
|
|
1383
|
+
finally {
|
|
1384
|
+
if (typeof input !== 'undefined' && input !== null) {
|
|
1385
|
+
try {
|
|
1386
|
+
input.blur();
|
|
1387
|
+
}
|
|
1388
|
+
catch (_) {
|
|
1389
|
+
}
|
|
1390
|
+
try {
|
|
1391
|
+
topDocument.body.removeChild(input);
|
|
1392
|
+
}
|
|
1393
|
+
catch (_) {
|
|
1394
|
+
}
|
|
1395
|
+
}
|
|
1396
|
+
}
|
|
1397
|
+
return hasFocus(topDocument);
|
|
1398
|
+
}
|
|
1399
|
+
function resolveFile(from) {
|
|
1400
|
+
if (Object.prototype.toString.call(from) === '[object Promise]') {
|
|
1401
|
+
var handle_1 = from;
|
|
1402
|
+
return new Promise(function (resolve, reject) {
|
|
1403
|
+
handle_1
|
|
1404
|
+
.then(function (handles) {
|
|
1405
|
+
var getFiles = [];
|
|
1406
|
+
for (var i = 0; i < handles.length; i++)
|
|
1407
|
+
getFiles[i] = handles[i].getFile();
|
|
1408
|
+
Promise.all(getFiles)
|
|
1409
|
+
.then(resolve)
|
|
1410
|
+
.catch(reject);
|
|
1411
|
+
})
|
|
1412
|
+
.catch(function (error) {
|
|
1413
|
+
if (error.name === 'AbortError')
|
|
1414
|
+
return reject(new UserCancelledError('User cancelled the operation.'));
|
|
1415
|
+
return reject(new NotSupportedError(error.message));
|
|
1416
|
+
});
|
|
1417
|
+
});
|
|
1418
|
+
}
|
|
1419
|
+
else {
|
|
1420
|
+
var input_1 = from;
|
|
1421
|
+
var config_1 = resolveFocusEventConfig();
|
|
1422
|
+
var top_1 = getTopmostWindow();
|
|
1423
|
+
var topDocument_1 = top_1.document;
|
|
1424
|
+
return new Promise(function (resolve, reject) {
|
|
1425
|
+
var resolved = false;
|
|
1426
|
+
function cleanup() {
|
|
1427
|
+
resolveFileCleanup = undefined;
|
|
1428
|
+
try {
|
|
1429
|
+
EventListener.remove(config_1.target.focus, { type: config_1.type.focus, callback: onFocus });
|
|
1430
|
+
EventListener.remove(config_1.target.visibilitychange, { type: config_1.type.visibilitychange, callback: onVisibilityChange });
|
|
1431
|
+
EventListener.remove(topDocument_1, { type: 'click', callback: onClick });
|
|
1432
|
+
}
|
|
1433
|
+
catch (_) {
|
|
1434
|
+
}
|
|
1435
|
+
}
|
|
1436
|
+
function done(success) {
|
|
1437
|
+
if (resolved)
|
|
1438
|
+
return;
|
|
1439
|
+
resolved = true;
|
|
1440
|
+
var fileList = input_1.files;
|
|
1441
|
+
var files = [];
|
|
1442
|
+
if (fileList === null)
|
|
1443
|
+
return resolve(files);
|
|
1444
|
+
for (var i = 0; i < fileList.length; i++)
|
|
1445
|
+
files.push(fileList[i]);
|
|
1446
|
+
cleanup();
|
|
1447
|
+
if (success)
|
|
1448
|
+
resolve(files);
|
|
1449
|
+
else
|
|
1450
|
+
reject(new UserCancelledError('User cancelled the operation.'));
|
|
1451
|
+
}
|
|
1452
|
+
function onFocus() {
|
|
1453
|
+
globalThis.setTimeout(function () {
|
|
1454
|
+
if (input_1.value.length > 0)
|
|
1455
|
+
done(true);
|
|
1456
|
+
else
|
|
1457
|
+
done(false);
|
|
1458
|
+
}, 1000);
|
|
1459
|
+
}
|
|
1460
|
+
function onVisibilityChange() {
|
|
1461
|
+
if (!isDocumentHidden())
|
|
1462
|
+
onFocus();
|
|
1463
|
+
}
|
|
1464
|
+
function onClick() {
|
|
1465
|
+
done(false);
|
|
1466
|
+
}
|
|
1467
|
+
input_1.onchange = function () {
|
|
1468
|
+
done(true);
|
|
1469
|
+
};
|
|
1470
|
+
if (typeof resolveFileCleanup !== 'undefined')
|
|
1471
|
+
resolveFileCleanup();
|
|
1472
|
+
if (typeof input_1.oncancel !== 'undefined') {
|
|
1473
|
+
input_1.oncancel = function () {
|
|
1474
|
+
done(false);
|
|
1475
|
+
};
|
|
1476
|
+
}
|
|
1477
|
+
else {
|
|
1478
|
+
input_1.onclick = function () {
|
|
1479
|
+
EventListener.add(config_1.target.visibilitychange, { type: config_1.type.visibilitychange, callback: onVisibilityChange });
|
|
1480
|
+
EventListener.add(config_1.target.focus, { type: config_1.type.focus, callback: onFocus });
|
|
1481
|
+
globalThis.setTimeout(function () {
|
|
1482
|
+
EventListener.add(topDocument_1, { type: 'click', callback: onClick });
|
|
1483
|
+
}, 100);
|
|
1484
|
+
resolveFileCleanup = function () {
|
|
1485
|
+
done(false);
|
|
1486
|
+
};
|
|
1487
|
+
};
|
|
1488
|
+
}
|
|
1489
|
+
dispatchClickEvent(input_1);
|
|
1490
|
+
});
|
|
1491
|
+
}
|
|
1492
|
+
}
|
|
1493
|
+
function resolveFileWithPath(from) {
|
|
1494
|
+
if (Object.prototype.toString.call(from) === '[object Promise]') {
|
|
1495
|
+
var handle_2 = from;
|
|
1496
|
+
return new Promise(function (resolve, reject) {
|
|
1497
|
+
handle_2
|
|
1498
|
+
.then(function (handle) {
|
|
1499
|
+
var tasks = [];
|
|
1500
|
+
var fileWithPaths = [];
|
|
1501
|
+
function walkDirectory(directory, basePath) {
|
|
1502
|
+
if (basePath === void 0) { basePath = ''; }
|
|
1503
|
+
return new Promise(function (resolve, reject) {
|
|
1504
|
+
var iterator = directory.entries();
|
|
1505
|
+
function pump() {
|
|
1506
|
+
iterator
|
|
1507
|
+
.next()
|
|
1508
|
+
.then(function (result) {
|
|
1509
|
+
if (result.done)
|
|
1510
|
+
return resolve();
|
|
1511
|
+
var name = result.value[0];
|
|
1512
|
+
var handle = result.value[1];
|
|
1513
|
+
var path;
|
|
1514
|
+
if (basePath === '')
|
|
1515
|
+
path = name;
|
|
1516
|
+
else
|
|
1517
|
+
path = basePath + '/' + name;
|
|
1518
|
+
if (handle.kind === 'file') {
|
|
1519
|
+
tasks.push(handle
|
|
1520
|
+
.getFile()
|
|
1521
|
+
.then(function (file) {
|
|
1522
|
+
fileWithPaths.push({
|
|
1523
|
+
file: file,
|
|
1524
|
+
relativePath: path,
|
|
1525
|
+
});
|
|
1526
|
+
}));
|
|
1527
|
+
}
|
|
1528
|
+
else {
|
|
1529
|
+
tasks.push(walkDirectory(handle, path));
|
|
1530
|
+
}
|
|
1531
|
+
pump();
|
|
1532
|
+
})
|
|
1533
|
+
.catch(reject);
|
|
1534
|
+
}
|
|
1535
|
+
pump();
|
|
1536
|
+
});
|
|
1537
|
+
}
|
|
1538
|
+
walkDirectory(handle, handle.name)
|
|
1539
|
+
.then(function () {
|
|
1540
|
+
Promise.all(tasks)
|
|
1541
|
+
.then(function () {
|
|
1542
|
+
resolve(fileWithPaths);
|
|
1543
|
+
})
|
|
1544
|
+
.catch(reject);
|
|
1545
|
+
})
|
|
1546
|
+
.catch(reject);
|
|
1547
|
+
})
|
|
1548
|
+
.catch(function (error) {
|
|
1549
|
+
if (error.name === 'AbortError')
|
|
1550
|
+
return reject(new UserCancelledError('User cancelled the operation.'));
|
|
1551
|
+
return reject(new NotSupportedError(error.message));
|
|
1552
|
+
});
|
|
1553
|
+
});
|
|
1554
|
+
}
|
|
1555
|
+
else {
|
|
1556
|
+
var input_2 = from;
|
|
1557
|
+
return new Promise(function (resolve, reject) {
|
|
1558
|
+
resolveFile(input_2)
|
|
1559
|
+
.then(function (files) {
|
|
1560
|
+
var fileWithPaths = [];
|
|
1561
|
+
for (var i = 0; i < files.length; i++) {
|
|
1562
|
+
var file_1 = files[i];
|
|
1563
|
+
fileWithPaths.push({
|
|
1564
|
+
file: file_1,
|
|
1565
|
+
relativePath: file_1.webkitRelativePath,
|
|
1566
|
+
});
|
|
1567
|
+
}
|
|
1568
|
+
resolve(fileWithPaths);
|
|
1569
|
+
})
|
|
1570
|
+
.catch(reject);
|
|
1571
|
+
});
|
|
1572
|
+
}
|
|
1573
|
+
}
|
|
1574
|
+
function tryOpenURL(url, index, timeout) {
|
|
1575
|
+
var config = resolveFocusEventConfig();
|
|
1576
|
+
var top = getTopmostWindow();
|
|
1577
|
+
var topDocument = top.document;
|
|
1578
|
+
var a = undefined;
|
|
1579
|
+
var iframe = undefined;
|
|
1580
|
+
return new Promise(function (resolve, reject) {
|
|
1581
|
+
var timeoutId;
|
|
1582
|
+
var resolved = false;
|
|
1583
|
+
function cleanup() {
|
|
1584
|
+
if (typeof timeoutId !== 'undefined') {
|
|
1585
|
+
clearTimeout(timeoutId);
|
|
1586
|
+
timeoutId = undefined;
|
|
1587
|
+
}
|
|
1588
|
+
try {
|
|
1589
|
+
EventListener.remove(config.target.blur, { type: config.type.blur, callback: onBlur });
|
|
1590
|
+
EventListener.remove(config.target.focus, { type: config.type.focus, callback: onFocus });
|
|
1591
|
+
EventListener.remove(config.target.visibilitychange, { type: config.type.visibilitychange, callback: onVisibilityChange });
|
|
1592
|
+
}
|
|
1593
|
+
catch (_) {
|
|
1594
|
+
}
|
|
1595
|
+
if (typeof a !== 'undefined') {
|
|
1596
|
+
try {
|
|
1597
|
+
topDocument.body.removeChild(a);
|
|
1598
|
+
}
|
|
1599
|
+
catch (_) {
|
|
1600
|
+
}
|
|
1601
|
+
}
|
|
1602
|
+
if (typeof iframe !== 'undefined') {
|
|
1603
|
+
try {
|
|
1604
|
+
topDocument.body.removeChild(iframe);
|
|
1605
|
+
}
|
|
1606
|
+
catch (_) {
|
|
1607
|
+
}
|
|
1608
|
+
}
|
|
1609
|
+
}
|
|
1610
|
+
function done(success) {
|
|
1611
|
+
if (resolved)
|
|
1612
|
+
return;
|
|
1613
|
+
resolved = true;
|
|
1614
|
+
cleanup();
|
|
1615
|
+
if (success)
|
|
1616
|
+
resolve();
|
|
1617
|
+
else
|
|
1618
|
+
reject();
|
|
1619
|
+
}
|
|
1620
|
+
function onBlur() {
|
|
1621
|
+
if (typeof timeoutId !== 'undefined') {
|
|
1622
|
+
clearTimeout(timeoutId);
|
|
1623
|
+
timeoutId = undefined;
|
|
1624
|
+
}
|
|
1625
|
+
EventListener.remove(config.target.blur, { type: config.type.blur, callback: onBlur });
|
|
1626
|
+
EventListener.add(config.target.focus, { type: config.type.focus, callback: onFocus });
|
|
1627
|
+
}
|
|
1628
|
+
function onFocus() {
|
|
1629
|
+
done(true);
|
|
1630
|
+
}
|
|
1631
|
+
function onVisibilityChange() {
|
|
1632
|
+
if (isDocumentHidden())
|
|
1633
|
+
onBlur();
|
|
1634
|
+
else
|
|
1635
|
+
onFocus();
|
|
1636
|
+
}
|
|
1637
|
+
timeoutId = globalThis.setTimeout(function () {
|
|
1638
|
+
done(false);
|
|
1639
|
+
}, timeout);
|
|
1640
|
+
EventListener.add(config.target.blur, { type: config.type.blur, callback: onBlur });
|
|
1641
|
+
EventListener.add(config.target.visibilitychange, { type: config.type.visibilitychange, callback: onVisibilityChange });
|
|
1642
|
+
if (!hasFocus(topDocument))
|
|
1643
|
+
restoreFocus();
|
|
1644
|
+
try {
|
|
1645
|
+
if (typeof globalThis.cordova !== 'undefined') {
|
|
1646
|
+
globalThis.open(url, '_system');
|
|
1647
|
+
}
|
|
1648
|
+
else {
|
|
1649
|
+
a = openURLViaHref(url, index);
|
|
1650
|
+
iframe = openURLViaIframe(url);
|
|
1651
|
+
}
|
|
1652
|
+
}
|
|
1653
|
+
catch (_) {
|
|
1654
|
+
done(false);
|
|
1655
|
+
}
|
|
1656
|
+
});
|
|
1657
|
+
}
|
|
1658
|
+
function getAndroidAppInfo(options) {
|
|
1659
|
+
if (typeof options[OS.Android] !== 'undefined')
|
|
1660
|
+
return options[OS.Android];
|
|
1661
|
+
return options.android;
|
|
1662
|
+
}
|
|
1663
|
+
function getIOSAppInfo(options) {
|
|
1664
|
+
if (typeof options[OS.iOS] !== 'undefined')
|
|
1665
|
+
return options[OS.iOS];
|
|
1666
|
+
return options.ios;
|
|
1667
|
+
}
|
|
1668
|
+
function getWindowsAppInfo(options) {
|
|
1669
|
+
if (typeof options[OS.Windows] !== 'undefined')
|
|
1670
|
+
return options[OS.Windows];
|
|
1671
|
+
return options.windows;
|
|
1672
|
+
}
|
|
1673
|
+
function getMacOSAppInfo(options) {
|
|
1674
|
+
if (typeof options[OS.MacOS] !== 'undefined')
|
|
1675
|
+
return options[OS.MacOS];
|
|
1676
|
+
return options.macos;
|
|
1677
|
+
}
|
|
1678
|
+
function app(options) {
|
|
1679
|
+
var os = Platform.os.name;
|
|
1680
|
+
var urls = [];
|
|
1681
|
+
var tried = [];
|
|
1682
|
+
var infos = {};
|
|
1683
|
+
var timeout;
|
|
1684
|
+
if (os === OS.Android) {
|
|
1685
|
+
var option = getAndroidAppInfo(options);
|
|
1686
|
+
if (typeof option === 'undefined')
|
|
1687
|
+
return Promise.reject(getURLOpenError(tried));
|
|
1688
|
+
timeout = option.timeout;
|
|
1689
|
+
infos.scheme = urlToString(option.scheme);
|
|
1690
|
+
infos.intent = urlToString(option.intent);
|
|
1691
|
+
infos.packageName = option.packageName;
|
|
1692
|
+
infos.fallback = urlToString(option.fallback);
|
|
1693
|
+
infos.appStore = createAppStoreURL(infos.packageName, OS.Android);
|
|
1694
|
+
infos.webStore = createWebStoreURL(infos.packageName, OS.Android);
|
|
1695
|
+
infos.allowAppStore = option.allowAppStore;
|
|
1696
|
+
infos.allowWebStore = option.allowWebStore;
|
|
1697
|
+
if (typeof infos.intent !== 'undefined' && (typeof infos.scheme === 'undefined' || typeof infos.packageName === 'undefined' || typeof infos.fallback === 'undefined')) {
|
|
1698
|
+
var parsed = parseIntentURL(infos.intent);
|
|
1699
|
+
if (typeof parsed.scheme !== 'undefined' && typeof infos.scheme === 'undefined')
|
|
1700
|
+
infos.scheme = parsed.scheme;
|
|
1701
|
+
if (typeof parsed.packageName !== 'undefined' && typeof infos.packageName === 'undefined')
|
|
1702
|
+
infos.packageName = parsed.packageName;
|
|
1703
|
+
if (typeof parsed.fallback !== 'undefined' && typeof infos.fallback === 'undefined')
|
|
1704
|
+
infos.fallback = parsed.fallback;
|
|
1705
|
+
}
|
|
1706
|
+
if (typeof infos.scheme !== 'undefined' && typeof infos.intent === 'undefined')
|
|
1707
|
+
infos.intent = createIntentURL(infos.scheme, infos.packageName, infos.fallback);
|
|
1708
|
+
}
|
|
1709
|
+
else if (os === OS.iOS) {
|
|
1710
|
+
var option = getIOSAppInfo(options);
|
|
1711
|
+
if (typeof option === 'undefined')
|
|
1712
|
+
return Promise.reject(getURLOpenError(tried));
|
|
1713
|
+
timeout = option.timeout;
|
|
1714
|
+
infos.scheme = urlToString(option.scheme);
|
|
1715
|
+
infos.bundleId = option.bundleId;
|
|
1716
|
+
infos.trackId = option.trackId;
|
|
1717
|
+
infos.universal = urlToString(option.universal);
|
|
1718
|
+
infos.fallback = urlToString(option.fallback);
|
|
1719
|
+
infos.appStore = createAppStoreURL(infos.trackId, OS.iOS);
|
|
1720
|
+
infos.webStore = createWebStoreURL(infos.trackId, OS.iOS);
|
|
1721
|
+
infos.allowAppStore = option.allowAppStore;
|
|
1722
|
+
infos.allowWebStore = option.allowWebStore;
|
|
1723
|
+
if (typeof infos.bundleId !== 'undefined' && typeof infos.trackId === 'undefined')
|
|
1724
|
+
infos.trackId = getTrackId(infos.bundleId);
|
|
1725
|
+
}
|
|
1726
|
+
else if (os === OS.Windows) {
|
|
1727
|
+
var option = getWindowsAppInfo(options);
|
|
1728
|
+
if (typeof option === 'undefined')
|
|
1729
|
+
return Promise.reject(getURLOpenError(tried));
|
|
1730
|
+
timeout = option.timeout;
|
|
1731
|
+
infos.scheme = urlToString(option.scheme);
|
|
1732
|
+
infos.productId = option.productId;
|
|
1733
|
+
infos.fallback = urlToString(option.fallback);
|
|
1734
|
+
infos.appStore = createAppStoreURL(infos.productId, OS.Windows);
|
|
1735
|
+
infos.webStore = createWebStoreURL(infos.productId, OS.Windows);
|
|
1736
|
+
infos.allowAppStore = option.allowAppStore;
|
|
1737
|
+
infos.allowWebStore = option.allowWebStore;
|
|
1738
|
+
}
|
|
1739
|
+
else if (os === OS.MacOS) {
|
|
1740
|
+
var option = getMacOSAppInfo(options);
|
|
1741
|
+
if (typeof option === 'undefined')
|
|
1742
|
+
return Promise.reject(getURLOpenError(tried));
|
|
1743
|
+
timeout = option.timeout;
|
|
1744
|
+
infos.scheme = urlToString(option.scheme);
|
|
1745
|
+
infos.bundleId = option.bundleId;
|
|
1746
|
+
infos.trackId = option.trackId;
|
|
1747
|
+
infos.fallback = urlToString(option.fallback);
|
|
1748
|
+
infos.appStore = createAppStoreURL(infos.trackId, OS.MacOS);
|
|
1749
|
+
infos.webStore = createWebStoreURL(infos.trackId, OS.MacOS);
|
|
1750
|
+
infos.allowAppStore = option.allowAppStore;
|
|
1751
|
+
infos.allowWebStore = option.allowWebStore;
|
|
1752
|
+
if (typeof infos.bundleId !== 'undefined' && typeof infos.trackId === 'undefined')
|
|
1753
|
+
infos.trackId = getTrackId(infos.bundleId);
|
|
1754
|
+
}
|
|
1755
|
+
pushURL(urls, infos.intent, AppOpenState.Intent, canOpenIntentURL());
|
|
1756
|
+
pushURL(urls, infos.universal, AppOpenState.Universal, canOpenUniversalURL());
|
|
1757
|
+
pushURL(urls, infos.scheme, AppOpenState.Scheme, true);
|
|
1758
|
+
pushURL(urls, infos.fallback, AppOpenState.Fallback, true);
|
|
1759
|
+
pushURL(urls, infos.appStore, AppOpenState.Store, infos.allowAppStore);
|
|
1760
|
+
pushURL(urls, infos.webStore, AppOpenState.Store, infos.allowWebStore);
|
|
1761
|
+
if (typeof timeout === 'undefined')
|
|
1762
|
+
timeout = getDefaultTimeoutByOS(os);
|
|
1763
|
+
return new Promise(function (resolve, reject) {
|
|
1764
|
+
function openURLSequential(index) {
|
|
1765
|
+
if (index === void 0) { index = 0; }
|
|
1766
|
+
if (index >= urls.length)
|
|
1767
|
+
return reject(getURLOpenError(tried));
|
|
1768
|
+
var entry = urls[index];
|
|
1769
|
+
var state = entry[0];
|
|
1770
|
+
var url = entry[1];
|
|
1771
|
+
if (typeof url === 'string') {
|
|
1772
|
+
tried[index] = url;
|
|
1773
|
+
return tryOpenURL(url, index, timeout)
|
|
1774
|
+
.then(function () {
|
|
1775
|
+
resolve(state);
|
|
1776
|
+
})
|
|
1777
|
+
.catch(function () {
|
|
1778
|
+
openURLSequential(index + 1);
|
|
1779
|
+
});
|
|
1780
|
+
}
|
|
1781
|
+
else {
|
|
1782
|
+
tried[index] = '[function fallback]';
|
|
1783
|
+
url();
|
|
1784
|
+
resolve(state);
|
|
1785
|
+
}
|
|
1786
|
+
}
|
|
1787
|
+
return openURLSequential();
|
|
1788
|
+
});
|
|
1789
|
+
}
|
|
1790
|
+
function openMessenger(options, type) {
|
|
1791
|
+
if (typeof options.to === 'string')
|
|
1792
|
+
options.to = escapeURIComponentMailAddressString(options.to);
|
|
1793
|
+
if (typeof options.cc === 'string')
|
|
1794
|
+
options.cc = escapeURIComponentMailAddressString(options.cc);
|
|
1795
|
+
if (typeof options.bcc === 'string')
|
|
1796
|
+
options.bcc = escapeURIComponentMailAddressString(options.bcc);
|
|
1797
|
+
if (typeof options.subject === 'string')
|
|
1798
|
+
options.subject = escapeURIComponentString(options.subject);
|
|
1799
|
+
if (typeof options.body === 'string')
|
|
1800
|
+
options.body = escapeURIComponentString(options.body);
|
|
1801
|
+
if (typeof options.to === 'object')
|
|
1802
|
+
options.to = joining(options.to, escapeURIComponentMailAddressString);
|
|
1803
|
+
if (typeof options.cc === 'object')
|
|
1804
|
+
options.cc = joining(options.cc, escapeURIComponentMailAddressString);
|
|
1805
|
+
if (typeof options.bcc === 'object')
|
|
1806
|
+
options.bcc = joining(options.bcc, escapeURIComponentMailAddressString);
|
|
1807
|
+
var params = [];
|
|
1808
|
+
var url = type + ':';
|
|
1809
|
+
if (typeof options.to === 'string')
|
|
1810
|
+
url += options.to;
|
|
1811
|
+
if (typeof options.cc === 'string')
|
|
1812
|
+
params.push('cc=' + options.cc);
|
|
1813
|
+
if (typeof options.bcc === 'string')
|
|
1814
|
+
params.push('bcc=' + options.bcc);
|
|
1815
|
+
if (typeof options.subject === 'string')
|
|
1816
|
+
params.push('subject=' + options.subject);
|
|
1817
|
+
if (typeof options.body === 'string')
|
|
1818
|
+
params.push('body=' + options.body);
|
|
1819
|
+
return tryOpenURL(url + '?' + joining(params, undefined, '&'), 0, getDefaultTimeoutByOS(Platform.os.name));
|
|
1820
|
+
}
|
|
1821
|
+
function telephone(options) {
|
|
1822
|
+
return openMessenger(options, 'tel');
|
|
1823
|
+
}
|
|
1824
|
+
function message(options) {
|
|
1825
|
+
return openMessenger(options, 'sms');
|
|
1826
|
+
}
|
|
1827
|
+
function mail(options) {
|
|
1828
|
+
return openMessenger(options, 'mailto');
|
|
1829
|
+
}
|
|
1830
|
+
function setting(type) {
|
|
1831
|
+
var os = Platform.os.name;
|
|
1832
|
+
var version = Platform.os.version;
|
|
1833
|
+
if (!canOpenSetting())
|
|
1834
|
+
return Promise.reject(getURLOpenError([]));
|
|
1835
|
+
var urls = [];
|
|
1836
|
+
switch (os) {
|
|
1837
|
+
case OS.Android:
|
|
1838
|
+
if (type !== SettingType.General) {
|
|
1839
|
+
if (type === SettingType.Accessibility && compareVersion(version, '1.6') >= 0)
|
|
1840
|
+
urls.push(SETTING_URL['Android'][SettingType.Accessibility]);
|
|
1841
|
+
else if (type === SettingType.Battery && compareVersion(version, '5.1') >= 0)
|
|
1842
|
+
urls.push(SETTING_URL['Android'][SettingType.Battery]);
|
|
1843
|
+
else if (type === SettingType.Accounts && compareVersion(version, '1.5') >= 0)
|
|
1844
|
+
urls.push(SETTING_URL['Android'][SettingType.Accounts]);
|
|
1845
|
+
else if (type === SettingType.Storage && compareVersion(version, '3.0') >= 0)
|
|
1846
|
+
urls.push(SETTING_URL['Android'][SettingType.Storage]);
|
|
1847
|
+
else
|
|
1848
|
+
urls.push(SETTING_URL['Android'][type]);
|
|
1849
|
+
}
|
|
1850
|
+
urls.push(SETTING_URL['Android'][SettingType.General]);
|
|
1851
|
+
break;
|
|
1852
|
+
case OS.Windows:
|
|
1853
|
+
urls.push(SETTING_URL['Windows'][type]);
|
|
1854
|
+
break;
|
|
1855
|
+
case OS.MacOS:
|
|
1856
|
+
if (type === SettingType.Appearance && compareVersion(version, '10.14') < 0) {
|
|
1857
|
+
urls.push(SETTING_URL['MacOS'][SettingType.General]);
|
|
1858
|
+
break;
|
|
1859
|
+
}
|
|
1860
|
+
if (compareVersion(version, '13.0') < 0)
|
|
1861
|
+
urls.push(SETTING_URL['MacOS'][type]);
|
|
1862
|
+
else
|
|
1863
|
+
urls.push(SETTING_URL['MacOS13+'][type]);
|
|
1864
|
+
break;
|
|
1865
|
+
}
|
|
1866
|
+
return new Promise(function (resolve, reject) {
|
|
1867
|
+
function openURLSequential(index) {
|
|
1868
|
+
if (index === void 0) { index = 0; }
|
|
1869
|
+
if (index >= urls.length)
|
|
1870
|
+
return reject(getURLOpenError([]));
|
|
1871
|
+
var url = urls[index];
|
|
1872
|
+
return tryOpenURL(url, index, 750)
|
|
1873
|
+
.then(function () {
|
|
1874
|
+
resolve();
|
|
1875
|
+
})
|
|
1876
|
+
.catch(function () {
|
|
1877
|
+
openURLSequential(index + 1);
|
|
1878
|
+
});
|
|
1879
|
+
}
|
|
1880
|
+
return openURLSequential();
|
|
1881
|
+
});
|
|
1882
|
+
}
|
|
1883
|
+
function file(options) {
|
|
1884
|
+
if (typeof globalThis.showOpenFilePicker !== 'undefined') {
|
|
1885
|
+
var openFilePickerOption = {};
|
|
1886
|
+
if (typeof options !== 'undefined') {
|
|
1887
|
+
if (typeof options.multiple !== 'undefined')
|
|
1888
|
+
openFilePickerOption.multiple = options.multiple;
|
|
1889
|
+
if (typeof options.id !== 'undefined')
|
|
1890
|
+
openFilePickerOption.id = options.id;
|
|
1891
|
+
if (typeof options.startIn !== 'undefined')
|
|
1892
|
+
openFilePickerOption.startIn = options.startIn;
|
|
1893
|
+
if (typeof options.accept !== 'undefined') {
|
|
1894
|
+
var accepts = {};
|
|
1895
|
+
openFilePickerOption.excludeAcceptAllOption = true;
|
|
1896
|
+
openFilePickerOption.types = [{
|
|
1897
|
+
description: '',
|
|
1898
|
+
accept: accepts,
|
|
1899
|
+
}];
|
|
1900
|
+
for (var i = 0; i < options.accept.length; i++) {
|
|
1901
|
+
var accept = options.accept[i];
|
|
1902
|
+
if (/^\.\w+/i.test(accept)) {
|
|
1903
|
+
if (typeof accepts['application/octet-stream'] === 'undefined')
|
|
1904
|
+
accepts['application/octet-stream'] = [];
|
|
1905
|
+
accepts['application/octet-stream'].push(accept);
|
|
1906
|
+
}
|
|
1907
|
+
else if (/^\w+\/\w+$/i.test(accept)) {
|
|
1908
|
+
accepts[accept] = [];
|
|
1909
|
+
}
|
|
1910
|
+
}
|
|
1911
|
+
}
|
|
1912
|
+
}
|
|
1913
|
+
return resolveFile(globalThis.showOpenFilePicker(openFilePickerOption));
|
|
1914
|
+
}
|
|
1915
|
+
var input = createHiddenElement('input');
|
|
1916
|
+
input.type = 'file';
|
|
1917
|
+
if (typeof options !== 'undefined') {
|
|
1918
|
+
if (typeof options.multiple !== 'undefined')
|
|
1919
|
+
input.multiple = options.multiple;
|
|
1920
|
+
if (typeof options.accept !== 'undefined')
|
|
1921
|
+
input.accept = joining(options.accept);
|
|
1922
|
+
}
|
|
1923
|
+
return resolveFile(input);
|
|
1924
|
+
}
|
|
1925
|
+
function directory(options) {
|
|
1926
|
+
if (!canOpenDirectory())
|
|
1927
|
+
return Promise.reject(new NotSupportedError('\'window.showDirectoryPicker\' and \'HTMLInputElement.prototype.webkitdirectory\' does not supported.'));
|
|
1928
|
+
if (typeof globalThis.showDirectoryPicker !== 'undefined') {
|
|
1929
|
+
var openDirectoryPickerOption = {};
|
|
1930
|
+
if (typeof options !== 'undefined') {
|
|
1931
|
+
if (typeof options.id !== 'undefined')
|
|
1932
|
+
openDirectoryPickerOption.id = options.id;
|
|
1933
|
+
if (typeof options.startIn !== 'undefined')
|
|
1934
|
+
openDirectoryPickerOption.startIn = options.startIn;
|
|
1935
|
+
if (typeof options.mode !== 'undefined')
|
|
1936
|
+
openDirectoryPickerOption.mode = options.mode;
|
|
1937
|
+
}
|
|
1938
|
+
return resolveFileWithPath(globalThis.showDirectoryPicker(openDirectoryPickerOption));
|
|
1939
|
+
}
|
|
1940
|
+
var input = createHiddenElement('input');
|
|
1941
|
+
input.type = 'file';
|
|
1942
|
+
input.webkitdirectory = true;
|
|
1943
|
+
return resolveFileWithPath(input);
|
|
1944
|
+
}
|
|
1945
|
+
function camera(options) {
|
|
1946
|
+
var input = createHiddenElement('input');
|
|
1947
|
+
input.type = 'file';
|
|
1948
|
+
input.accept = 'image/*;capture=camera';
|
|
1949
|
+
input.capture = 'environment';
|
|
1950
|
+
if (typeof options !== 'undefined') {
|
|
1951
|
+
if (typeof options.type !== 'undefined') {
|
|
1952
|
+
if (options.type === CameraType.Image)
|
|
1953
|
+
input.accept = 'image/*;capture=camera';
|
|
1954
|
+
else
|
|
1955
|
+
input.accept = 'video/*;capture=camcorder';
|
|
1956
|
+
}
|
|
1957
|
+
if (typeof options.capture !== 'undefined') {
|
|
1958
|
+
if (options.capture === CaptureType.Environment)
|
|
1959
|
+
input.capture = 'environment';
|
|
1960
|
+
else
|
|
1961
|
+
input.capture = 'user';
|
|
1962
|
+
}
|
|
1963
|
+
}
|
|
1964
|
+
return resolveFile(input);
|
|
1965
|
+
}
|
|
1966
|
+
function contact(options) {
|
|
1967
|
+
return new Promise(function (resolve, reject) {
|
|
1968
|
+
if (!canOpenContact())
|
|
1969
|
+
return reject(new NotSupportedError('\'navigator.contacts\' does not supported.'));
|
|
1970
|
+
var multiple = false;
|
|
1971
|
+
if (typeof options !== 'undefined' && typeof options.multiple !== 'undefined')
|
|
1972
|
+
multiple = options.multiple;
|
|
1973
|
+
globalThis.navigator.contacts
|
|
1974
|
+
.getProperties()
|
|
1975
|
+
.then(function (properties) {
|
|
1976
|
+
globalThis.navigator.contacts
|
|
1977
|
+
.select(properties, { multiple: multiple })
|
|
1978
|
+
.then(function (contacts) {
|
|
1979
|
+
resolve(contacts);
|
|
1980
|
+
});
|
|
1981
|
+
});
|
|
1982
|
+
});
|
|
1983
|
+
}
|
|
1984
|
+
function share(options) {
|
|
1985
|
+
return new Promise(function (resolve, reject) {
|
|
1986
|
+
if (!canOpenShare())
|
|
1987
|
+
return reject(new NotSupportedError('\'navigator.share\' does not supported.'));
|
|
1988
|
+
if (!globalThis.navigator.canShare(options))
|
|
1989
|
+
return reject(new NotSupportedError('The provided data cannot be shared on this device.'));
|
|
1990
|
+
globalThis.navigator.share(options)
|
|
1991
|
+
.then(function () {
|
|
1992
|
+
resolve();
|
|
1993
|
+
})
|
|
1994
|
+
.catch(function (error) {
|
|
1995
|
+
if (error.name === 'AbortError')
|
|
1996
|
+
return reject(new UserCancelledError('User cancelled the operation.'));
|
|
1997
|
+
return reject(new NotSupportedError(error.message));
|
|
1998
|
+
});
|
|
1999
|
+
});
|
|
2000
|
+
}
|
|
2001
|
+
function calendar(options) {
|
|
2002
|
+
var timestamp = now();
|
|
2003
|
+
var ics = 'BEGIN:VCALENDAR\r\nVERSION:2.0\r\n';
|
|
2004
|
+
if (globalThis.document.title !== '') {
|
|
2005
|
+
ics += foldICSString('PRODID:-//' + escapeICSString(globalThis.document.title) + '//EN') + '\r\n';
|
|
2006
|
+
}
|
|
2007
|
+
else {
|
|
2008
|
+
ics += foldICSString('PRODID:-//' + escapeICSString(globalThis.location.host) + '//EN') + '\r\n';
|
|
2009
|
+
}
|
|
2010
|
+
ics += 'BEGIN:VEVENT\r\n'
|
|
2011
|
+
+ 'UID:' + timestamp + '-' + randomString(10) + '\r\n'
|
|
2012
|
+
+ 'DTSTAMP:' + dateToICSDateString(new Date()) + '\r\n';
|
|
2013
|
+
if (options.allDay === true) {
|
|
2014
|
+
ics += 'DTSTART;VALUE=DATE:' + dateToICSDateString(options.startDate, true) + '\r\n'
|
|
2015
|
+
+ 'DTEND;VALUE=DATE:' + dateToICSDateString(options.endDate, true) + '\r\n';
|
|
2016
|
+
}
|
|
2017
|
+
else {
|
|
2018
|
+
ics += 'DTSTART:' + dateToICSDateString(options.startDate) + '\r\n'
|
|
2019
|
+
+ 'DTEND:' + dateToICSDateString(options.endDate) + '\r\n';
|
|
2020
|
+
}
|
|
2021
|
+
if (typeof options.title !== 'undefined') {
|
|
2022
|
+
ics += foldICSString('SUMMARY:' + escapeICSString(options.title)) + '\r\n';
|
|
2023
|
+
}
|
|
2024
|
+
if (typeof options.description !== 'undefined') {
|
|
2025
|
+
ics += foldICSString('DESCRIPTION:' + escapeICSString(options.description)) + '\r\n';
|
|
2026
|
+
}
|
|
2027
|
+
if (typeof options.location !== 'undefined') {
|
|
2028
|
+
ics += foldICSString('LOCATION:' + escapeICSString(options.location)) + '\r\n';
|
|
2029
|
+
}
|
|
2030
|
+
if (typeof options.recur !== 'undefined') {
|
|
2031
|
+
var rrule = 'FREQ=' + options.recur.frequency;
|
|
2032
|
+
if (typeof options.recur.interval !== 'undefined' && options.recur.interval > 1) {
|
|
2033
|
+
rrule += ';INTERVAL=' + String(options.recur.interval);
|
|
2034
|
+
}
|
|
2035
|
+
if (typeof options.recur.count !== 'undefined') {
|
|
2036
|
+
rrule += ';COUNT=' + String(options.recur.count);
|
|
2037
|
+
}
|
|
2038
|
+
if (typeof options.recur.until !== 'undefined') {
|
|
2039
|
+
rrule += ';UNTIL=' + dateToICSDateString(options.recur.until);
|
|
2040
|
+
}
|
|
2041
|
+
if (typeof options.recur.byMonth !== 'undefined' && options.recur.byMonth.length > 0) {
|
|
2042
|
+
rrule += ';BYMONTH=' + joining(options.recur.byMonth);
|
|
2043
|
+
}
|
|
2044
|
+
if (typeof options.recur.byWeekNo !== 'undefined' && options.recur.byWeekNo.length > 0) {
|
|
2045
|
+
rrule += ';BYWEEKNO=' + joining(options.recur.byWeekNo);
|
|
2046
|
+
}
|
|
2047
|
+
if (typeof options.recur.byYearDay !== 'undefined' && options.recur.byYearDay.length > 0) {
|
|
2048
|
+
rrule += ';BYYEARDAY=' + joining(options.recur.byYearDay);
|
|
2049
|
+
}
|
|
2050
|
+
if (typeof options.recur.byMonthDay !== 'undefined' && options.recur.byMonthDay.length > 0) {
|
|
2051
|
+
rrule += ';BYMONTHDAY=' + joining(options.recur.byMonthDay);
|
|
2052
|
+
}
|
|
2053
|
+
if (typeof options.recur.byDay !== 'undefined' && options.recur.byDay.length > 0) {
|
|
2054
|
+
rrule += ';BYDAY=' + joining(options.recur.byDay);
|
|
2055
|
+
}
|
|
2056
|
+
if (typeof options.recur.byHour !== 'undefined' && options.recur.byHour.length > 0) {
|
|
2057
|
+
rrule += ';BYHOUR=' + joining(options.recur.byHour);
|
|
2058
|
+
}
|
|
2059
|
+
if (typeof options.recur.byMinute !== 'undefined' && options.recur.byMinute.length > 0) {
|
|
2060
|
+
rrule += ';BYMINUTE=' + joining(options.recur.byMinute);
|
|
2061
|
+
}
|
|
2062
|
+
if (typeof options.recur.bySecond !== 'undefined' && options.recur.bySecond.length > 0) {
|
|
2063
|
+
rrule += ';BYSECOND=' + joining(options.recur.bySecond);
|
|
2064
|
+
}
|
|
2065
|
+
if (typeof options.recur.bySetPos !== 'undefined' && options.recur.bySetPos.length > 0) {
|
|
2066
|
+
rrule += ';BYSETPOS=' + joining(options.recur.bySetPos);
|
|
2067
|
+
}
|
|
2068
|
+
if (typeof options.recur.weekStart !== 'undefined' && options.recur.weekStart !== 'MO') {
|
|
2069
|
+
rrule += ';WKST=' + options.recur.weekStart;
|
|
2070
|
+
}
|
|
2071
|
+
ics += foldICSString('RRULE:' + rrule) + '\r\n';
|
|
2072
|
+
}
|
|
2073
|
+
if (typeof options.alarm !== 'undefined') {
|
|
2074
|
+
for (var i = 0; i < options.alarm.length; i++) {
|
|
2075
|
+
var alarm = options.alarm[i];
|
|
2076
|
+
ics += 'BEGIN:VALARM\r\n'
|
|
2077
|
+
+ 'ACTION:DISPLAY\r\n';
|
|
2078
|
+
if (typeof alarm.datetime !== 'undefined') {
|
|
2079
|
+
ics += 'TRIGGER;VALUE=DATE-TIME:' + dateToICSDateString(alarm.datetime) + '\r\n';
|
|
2080
|
+
}
|
|
2081
|
+
else {
|
|
2082
|
+
var duration = '';
|
|
2083
|
+
if (typeof alarm.before === 'undefined' || alarm.before) {
|
|
2084
|
+
duration += '-';
|
|
2085
|
+
}
|
|
2086
|
+
duration += 'P';
|
|
2087
|
+
if (typeof alarm.weeks !== 'undefined' && alarm.weeks > 0) {
|
|
2088
|
+
duration += String(alarm.weeks) + 'W';
|
|
2089
|
+
}
|
|
2090
|
+
else {
|
|
2091
|
+
if (typeof alarm.days !== 'undefined' && alarm.days > 0) {
|
|
2092
|
+
duration += String(alarm.days) + 'D';
|
|
2093
|
+
}
|
|
2094
|
+
var hasHours = (typeof alarm.hours !== 'undefined' && alarm.hours > 0);
|
|
2095
|
+
var hasMinutes = (typeof alarm.minutes !== 'undefined' && alarm.minutes > 0);
|
|
2096
|
+
var hasSeconds = (typeof alarm.seconds !== 'undefined' && alarm.seconds > 0);
|
|
2097
|
+
if (hasHours || hasMinutes || hasSeconds) {
|
|
2098
|
+
duration += 'T';
|
|
2099
|
+
if (hasHours) {
|
|
2100
|
+
duration += String(alarm.hours) + 'H';
|
|
2101
|
+
}
|
|
2102
|
+
if (hasMinutes) {
|
|
2103
|
+
duration += String(alarm.minutes) + 'M';
|
|
2104
|
+
}
|
|
2105
|
+
if (hasSeconds) {
|
|
2106
|
+
duration += String(alarm.seconds) + 'S';
|
|
2107
|
+
}
|
|
2108
|
+
}
|
|
2109
|
+
}
|
|
2110
|
+
ics += 'TRIGGER:' + duration + '\r\n';
|
|
2111
|
+
}
|
|
2112
|
+
if (typeof alarm.description !== 'undefined') {
|
|
2113
|
+
ics += foldICSString('DESCRIPTION:' + escapeICSString(alarm.description)) + '\r\n';
|
|
2114
|
+
}
|
|
2115
|
+
else {
|
|
2116
|
+
ics += 'DESCRIPTION:Reminder\r\n';
|
|
2117
|
+
}
|
|
2118
|
+
if (typeof alarm.datetime === 'undefined' && typeof alarm.repeat !== 'undefined' && typeof alarm.repeatDuration !== 'undefined') {
|
|
2119
|
+
ics += 'REPEAT:' + String(alarm.repeat) + '\r\n';
|
|
2120
|
+
ics += 'DURATION:PT' + String(alarm.repeatDuration) + 'M\r\n';
|
|
2121
|
+
}
|
|
2122
|
+
ics += 'END:VALARM\r\n';
|
|
2123
|
+
}
|
|
2124
|
+
}
|
|
2125
|
+
ics += 'END:VEVENT\r\nEND:VCALENDAR';
|
|
2126
|
+
var anchor = createHiddenElement('a');
|
|
2127
|
+
anchor.href = 'data:text/calendar;charset=utf-8,' + globalThis.encodeURIComponent(ics);
|
|
2128
|
+
anchor.download = 'event-' + timestamp + '.ics';
|
|
2129
|
+
dispatchClickEvent(anchor);
|
|
2130
|
+
}
|
|
2131
|
+
|
|
2132
|
+
export { AppOpenState, CameraType, CaptureType, DirectoryExploreMode, ExplorerStartIn, SETTING_URL, SettingType, Open as default };
|