native-fn 1.1.0 → 1.1.2
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/index.d.ts +57 -45
- package/dist/native.cjs +1029 -930
- package/dist/native.min.cjs +1 -1
- package/dist/native.min.mjs +1 -1
- package/dist/native.mjs +1029 -930
- package/dist/native.umd.js +1029 -930
- package/dist/native.umd.min.js +1 -1
- package/dist/src/plugin/fullscreen/cores/index.d.ts +3 -3
- package/dist/src/plugin/notification/types/notification.d.ts +4 -4
- package/dist/src/plugin/open/constants/index.d.ts +12 -0
- package/dist/src/plugin/open/types/open.d.ts +4 -4
- package/dist/src/plugin/pip/cores/index.d.ts +3 -3
- package/dist/src/plugin/platform/cores/index.d.ts +1 -1
- package/dist/src/plugin/platform/types/platform.d.ts +2 -3
- package/dist/src/plugin/vibration/types/vibration.d.ts +1 -0
- package/dist/src/types/native.d.ts +15 -1
- package/package.json +1 -50
- package/dist/plugin/app/index.cjs +0 -1800
- package/dist/plugin/app/index.d.ts +0 -4
- package/dist/plugin/app/index.min.cjs +0 -1
- package/dist/plugin/app/index.min.mjs +0 -1
- package/dist/plugin/app/index.mjs +0 -1798
- package/dist/plugin/app/index.umd.js +0 -1806
- package/dist/plugin/app/index.umd.min.js +0 -1
- package/dist/plugin/app/src/constants/platform.d.ts +0 -67
- package/dist/plugin/app/src/constants/user-agent.d.ts +0 -1
- package/dist/plugin/app/src/errors/plugin-not-extended-error.d.ts +0 -2
- package/dist/plugin/app/src/errors/url-open-error.d.ts +0 -2
- package/dist/plugin/app/src/plugin/app/constants/app.d.ts +0 -12
- package/dist/plugin/app/src/plugin/app/constants/index.d.ts +0 -25
- package/dist/plugin/app/src/plugin/app/cores/app.d.ts +0 -3
- package/dist/plugin/app/src/plugin/app/cores/index.d.ts +0 -14
- package/dist/plugin/app/src/plugin/app/errors/url-open-error.d.ts +0 -2
- package/dist/plugin/app/src/plugin/app/index.d.ts +0 -3
- package/dist/plugin/app/src/plugin/app/types/app.d.ts +0 -72
- package/dist/plugin/app/src/plugin/app/types/index.d.ts +0 -1
- package/dist/plugin/app/src/plugin/app/utils/event-listener-utils.d.ts +0 -3
- package/dist/plugin/app/src/plugin/app/utils/try-open-url.d.ts +0 -16
- package/dist/plugin/app/src/plugin/appearance/constants/index.d.ts +0 -11
- package/dist/plugin/app/src/plugin/appearance/cores/index.d.ts +0 -3
- package/dist/plugin/app/src/plugin/appearance/index.d.ts +0 -3
- package/dist/plugin/app/src/plugin/appearance/types/appearance.d.ts +0 -9
- package/dist/plugin/app/src/plugin/appearance/types/index.d.ts +0 -1
- package/dist/plugin/app/src/plugin/camera/constants/camera.d.ts +0 -4
- package/dist/plugin/app/src/plugin/camera/constants/inedx.d.ts +0 -4
- package/dist/plugin/app/src/plugin/camera/cores/camera.d.ts +0 -3
- package/dist/plugin/app/src/plugin/camera/cores/index.d.ts +0 -3
- package/dist/plugin/app/src/plugin/camera/index.d.ts +0 -8
- package/dist/plugin/app/src/plugin/camera/types/camera.d.ts +0 -4
- package/dist/plugin/app/src/plugin/camera/types/index.d.ts +0 -13
- package/dist/plugin/app/src/plugin/camera/utils/try-open-camera.d.ts +0 -2
- package/dist/plugin/app/src/plugin/clipboard/constants/clipboard.d.ts +0 -4
- package/dist/plugin/app/src/plugin/clipboard/cores/clipboard.d.ts +0 -3
- package/dist/plugin/app/src/plugin/clipboard/cores/index.d.ts +0 -3
- package/dist/plugin/app/src/plugin/clipboard/errors/unsupported-color-error.d.ts +0 -2
- package/dist/plugin/app/src/plugin/clipboard/index.d.ts +0 -3
- package/dist/plugin/app/src/plugin/clipboard/types/appearance.d.ts +0 -13
- package/dist/plugin/app/src/plugin/clipboard/types/clipboard.d.ts +0 -6
- package/dist/plugin/app/src/plugin/clipboard/types/index.d.ts +0 -1
- package/dist/plugin/app/src/plugin/clipboard/utils/copy.d.ts +0 -1
- package/dist/plugin/app/src/plugin/clipboard/utils/html-string-to-plain-string.d.ts +0 -1
- package/dist/plugin/app/src/plugin/dimension/constants/index.d.ts +0 -4
- package/dist/plugin/app/src/plugin/dimension/cores/index.d.ts +0 -3
- package/dist/plugin/app/src/plugin/dimension/index.d.ts +0 -3
- package/dist/plugin/app/src/plugin/dimension/types/dimension.d.ts +0 -11
- package/dist/plugin/app/src/plugin/dimension/types/dimensions.d.ts +0 -13
- package/dist/plugin/app/src/plugin/dimension/types/index.d.ts +0 -1
- package/dist/plugin/app/src/plugin/fullscreen/cores/fullscreen.d.ts +0 -3
- package/dist/plugin/app/src/plugin/fullscreen/cores/index.d.ts +0 -35
- package/dist/plugin/app/src/plugin/fullscreen/index.d.ts +0 -3
- package/dist/plugin/app/src/plugin/fullscreen/types/fullscreen-electron.d.ts +0 -10
- package/dist/plugin/app/src/plugin/fullscreen/types/fullscreen.d.ts +0 -12
- package/dist/plugin/app/src/plugin/fullscreen/types/index.d.ts +0 -1
- package/dist/plugin/app/src/plugin/media/constants/media.d.ts +0 -5
- package/dist/plugin/app/src/plugin/media/cores/media.d.ts +0 -3
- package/dist/plugin/app/src/plugin/media/index.d.ts +0 -5
- package/dist/plugin/app/src/plugin/media/types/index.d.ts +0 -13
- package/dist/plugin/app/src/plugin/media/types/media.d.ts +0 -4
- package/dist/plugin/app/src/plugin/media/utils/try-open-camera.d.ts +0 -2
- package/dist/plugin/app/src/plugin/platform/constants/index.d.ts +0 -43
- package/dist/plugin/app/src/plugin/platform/cores/index.d.ts +0 -52
- package/dist/plugin/app/src/plugin/platform/cores/platform.d.ts +0 -3
- package/dist/plugin/app/src/plugin/platform/index.d.ts +0 -3
- package/dist/plugin/app/src/plugin/platform/types/index.d.ts +0 -1
- package/dist/plugin/app/src/plugin/platform/types/platform.d.ts +0 -34
- package/dist/plugin/app/src/plugin/theme/constants/index.d.ts +0 -2
- package/dist/plugin/app/src/plugin/theme/constants/theme.d.ts +0 -14
- package/dist/plugin/app/src/plugin/theme/cores/index.d.ts +0 -3
- package/dist/plugin/app/src/plugin/theme/cores/theme.d.ts +0 -3
- package/dist/plugin/app/src/plugin/theme/errors/easing-error.d.ts +0 -6
- package/dist/plugin/app/src/plugin/theme/errors/unsupported-color-error.d.ts +0 -2
- package/dist/plugin/app/src/plugin/theme/index.d.ts +0 -3
- package/dist/plugin/app/src/plugin/theme/types/color.d.ts +0 -17
- package/dist/plugin/app/src/plugin/theme/types/easing-syntax.d.ts +0 -16
- package/dist/plugin/app/src/plugin/theme/types/index.d.ts +0 -1
- package/dist/plugin/app/src/plugin/theme/types/theme.d.ts +0 -6
- package/dist/plugin/app/src/plugin/theme/utils/parse-color.d.ts +0 -2
- package/dist/plugin/app/src/plugin/theme/utils/parse-easing-function.d.ts +0 -2
- package/dist/plugin/app/src/types/clipboard-utils.d.ts +0 -4
- package/dist/plugin/app/src/types/event-listener-util.d.ts +0 -11
- package/dist/plugin/app/src/types/index.d.ts +0 -1
- package/dist/plugin/app/src/types/listener-entry.d.ts +0 -6
- package/dist/plugin/app/src/types/native.d.ts +0 -17
- package/dist/plugin/app/src/types/platform.d.ts +0 -16
- package/dist/plugin/app/src/utils/assign.d.ts +0 -1
- package/dist/plugin/app/src/utils/clipboard-utils.d.ts +0 -4
- package/dist/plugin/app/src/utils/compare-version.d.ts +0 -1
- package/dist/plugin/app/src/utils/create-custom-error.d.ts +0 -6
- package/dist/plugin/app/src/utils/create-hidden-element.d.ts +0 -1
- package/dist/plugin/app/src/utils/dispatch-click-event.d.ts +0 -1
- package/dist/plugin/app/src/utils/dynamic-import.d.ts +0 -1
- package/dist/plugin/app/src/utils/event-listener-utils.d.ts +0 -3
- package/dist/plugin/app/src/utils/fullscreen-utils.d.ts +0 -44
- package/dist/plugin/app/src/utils/get-tag-name.d.ts +0 -1
- package/dist/plugin/app/src/utils/get-topmost-window.d.ts +0 -1
- package/dist/plugin/app/src/utils/is-secure-context.d.ts +0 -1
- package/dist/plugin/app/src/utils/request.d.ts +0 -6
- package/dist/plugin/app/src/utils/require.d.ts +0 -1
- package/dist/plugin/appearance/index.cjs +0 -857
- package/dist/plugin/appearance/index.d.ts +0 -4
- package/dist/plugin/appearance/index.min.cjs +0 -1
- package/dist/plugin/appearance/index.min.mjs +0 -1
- package/dist/plugin/appearance/index.mjs +0 -855
- package/dist/plugin/appearance/index.umd.js +0 -863
- package/dist/plugin/appearance/index.umd.min.js +0 -1
- package/dist/plugin/appearance/src/constants/platform.d.ts +0 -67
- package/dist/plugin/appearance/src/errors/plugin-not-extended-error.d.ts +0 -2
- package/dist/plugin/appearance/src/plugin/app/constants/index.d.ts +0 -25
- package/dist/plugin/appearance/src/plugin/app/cores/index.d.ts +0 -14
- package/dist/plugin/appearance/src/plugin/app/errors/url-open-error.d.ts +0 -2
- package/dist/plugin/appearance/src/plugin/app/index.d.ts +0 -3
- package/dist/plugin/appearance/src/plugin/app/types/app.d.ts +0 -72
- package/dist/plugin/appearance/src/plugin/app/types/index.d.ts +0 -1
- package/dist/plugin/appearance/src/plugin/app/utils/try-open-url.d.ts +0 -16
- package/dist/plugin/appearance/src/plugin/appearance/constants/index.d.ts +0 -11
- package/dist/plugin/appearance/src/plugin/appearance/cores/index.d.ts +0 -3
- package/dist/plugin/appearance/src/plugin/appearance/index.d.ts +0 -3
- package/dist/plugin/appearance/src/plugin/appearance/types/appearance.d.ts +0 -9
- package/dist/plugin/appearance/src/plugin/appearance/types/index.d.ts +0 -1
- package/dist/plugin/appearance/src/plugin/camera/constants/inedx.d.ts +0 -4
- package/dist/plugin/appearance/src/plugin/camera/cores/index.d.ts +0 -3
- package/dist/plugin/appearance/src/plugin/camera/index.d.ts +0 -8
- package/dist/plugin/appearance/src/plugin/camera/types/camera.d.ts +0 -4
- package/dist/plugin/appearance/src/plugin/camera/types/index.d.ts +0 -13
- package/dist/plugin/appearance/src/plugin/camera/utils/try-open-camera.d.ts +0 -2
- package/dist/plugin/appearance/src/plugin/clipboard/cores/index.d.ts +0 -3
- package/dist/plugin/appearance/src/plugin/clipboard/index.d.ts +0 -3
- package/dist/plugin/appearance/src/plugin/clipboard/types/appearance.d.ts +0 -13
- package/dist/plugin/appearance/src/plugin/clipboard/types/clipboard.d.ts +0 -6
- package/dist/plugin/appearance/src/plugin/clipboard/types/index.d.ts +0 -1
- package/dist/plugin/appearance/src/plugin/dimension/constants/index.d.ts +0 -4
- package/dist/plugin/appearance/src/plugin/dimension/cores/index.d.ts +0 -3
- package/dist/plugin/appearance/src/plugin/dimension/index.d.ts +0 -3
- package/dist/plugin/appearance/src/plugin/dimension/types/dimension.d.ts +0 -11
- package/dist/plugin/appearance/src/plugin/dimension/types/dimensions.d.ts +0 -13
- package/dist/plugin/appearance/src/plugin/dimension/types/index.d.ts +0 -1
- package/dist/plugin/appearance/src/plugin/fullscreen/cores/index.d.ts +0 -35
- package/dist/plugin/appearance/src/plugin/fullscreen/index.d.ts +0 -3
- package/dist/plugin/appearance/src/plugin/fullscreen/types/fullscreen.d.ts +0 -12
- package/dist/plugin/appearance/src/plugin/fullscreen/types/index.d.ts +0 -1
- package/dist/plugin/appearance/src/plugin/platform/constants/index.d.ts +0 -43
- package/dist/plugin/appearance/src/plugin/platform/cores/index.d.ts +0 -52
- package/dist/plugin/appearance/src/plugin/platform/index.d.ts +0 -3
- package/dist/plugin/appearance/src/plugin/platform/types/index.d.ts +0 -1
- package/dist/plugin/appearance/src/plugin/platform/types/platform.d.ts +0 -34
- package/dist/plugin/appearance/src/plugin/theme/constants/index.d.ts +0 -2
- package/dist/plugin/appearance/src/plugin/theme/cores/index.d.ts +0 -3
- package/dist/plugin/appearance/src/plugin/theme/errors/easing-error.d.ts +0 -6
- package/dist/plugin/appearance/src/plugin/theme/errors/unsupported-color-error.d.ts +0 -2
- package/dist/plugin/appearance/src/plugin/theme/index.d.ts +0 -3
- package/dist/plugin/appearance/src/plugin/theme/types/color.d.ts +0 -17
- package/dist/plugin/appearance/src/plugin/theme/types/easing-syntax.d.ts +0 -16
- package/dist/plugin/appearance/src/plugin/theme/types/index.d.ts +0 -1
- package/dist/plugin/appearance/src/plugin/theme/types/theme.d.ts +0 -6
- package/dist/plugin/appearance/src/plugin/theme/utils/parse-color.d.ts +0 -2
- package/dist/plugin/appearance/src/plugin/theme/utils/parse-easing-function.d.ts +0 -2
- package/dist/plugin/appearance/src/types/event-listener-util.d.ts +0 -11
- package/dist/plugin/appearance/src/types/index.d.ts +0 -1
- package/dist/plugin/appearance/src/types/listener-entry.d.ts +0 -6
- package/dist/plugin/appearance/src/types/native.d.ts +0 -17
- package/dist/plugin/appearance/src/types/platform.d.ts +0 -16
- package/dist/plugin/appearance/src/utils/assign.d.ts +0 -1
- package/dist/plugin/appearance/src/utils/compare-version.d.ts +0 -1
- package/dist/plugin/appearance/src/utils/create-custom-error.d.ts +0 -6
- package/dist/plugin/appearance/src/utils/create-hidden-element.d.ts +0 -1
- package/dist/plugin/appearance/src/utils/dispatch-click-event.d.ts +0 -1
- package/dist/plugin/appearance/src/utils/event-listener-utils.d.ts +0 -3
- package/dist/plugin/appearance/src/utils/get-topmost-window.d.ts +0 -1
- package/dist/plugin/appearance/src/utils/is-secure-context.d.ts +0 -1
- package/dist/plugin/appearance/src/utils/request.d.ts +0 -6
- package/dist/plugin/camera/index.cjs +0 -653
- package/dist/plugin/camera/index.d.ts +0 -34
- package/dist/plugin/camera/index.min.cjs +0 -1
- package/dist/plugin/camera/index.min.mjs +0 -1
- package/dist/plugin/camera/index.mjs +0 -651
- package/dist/plugin/camera/index.umd.js +0 -659
- package/dist/plugin/camera/index.umd.min.js +0 -1
- package/dist/plugin/camera/src/constants/platform.d.ts +0 -67
- package/dist/plugin/camera/src/constants/user-agent.d.ts +0 -1
- package/dist/plugin/camera/src/errors/plugin-not-extended-error.d.ts +0 -2
- package/dist/plugin/camera/src/errors/url-open-error.d.ts +0 -2
- package/dist/plugin/camera/src/plugin/app/constants/app.d.ts +0 -12
- package/dist/plugin/camera/src/plugin/app/constants/index.d.ts +0 -12
- package/dist/plugin/camera/src/plugin/app/cores/app.d.ts +0 -3
- package/dist/plugin/camera/src/plugin/app/cores/index.d.ts +0 -13
- package/dist/plugin/camera/src/plugin/app/errors/url-open-error.d.ts +0 -2
- package/dist/plugin/camera/src/plugin/app/index.d.ts +0 -12
- package/dist/plugin/camera/src/plugin/app/types/app.d.ts +0 -54
- package/dist/plugin/camera/src/plugin/app/types/index.d.ts +0 -16
- package/dist/plugin/camera/src/plugin/app/utils/try-open-url.d.ts +0 -16
- package/dist/plugin/camera/src/plugin/appearance/constants/index.d.ts +0 -11
- package/dist/plugin/camera/src/plugin/appearance/cores/index.d.ts +0 -3
- package/dist/plugin/camera/src/plugin/appearance/index.d.ts +0 -8
- package/dist/plugin/camera/src/plugin/appearance/types/appearance.d.ts +0 -12
- package/dist/plugin/camera/src/plugin/appearance/types/index.d.ts +0 -13
- package/dist/plugin/camera/src/plugin/camera/constants/camera.d.ts +0 -4
- package/dist/plugin/camera/src/plugin/camera/constants/inedx.d.ts +0 -4
- package/dist/plugin/camera/src/plugin/camera/cores/camera.d.ts +0 -3
- package/dist/plugin/camera/src/plugin/camera/cores/index.d.ts +0 -3
- package/dist/plugin/camera/src/plugin/camera/index.d.ts +0 -8
- package/dist/plugin/camera/src/plugin/camera/types/camera.d.ts +0 -4
- package/dist/plugin/camera/src/plugin/camera/types/index.d.ts +0 -13
- package/dist/plugin/camera/src/plugin/camera/utils/try-open-camera.d.ts +0 -2
- package/dist/plugin/camera/src/plugin/clipboard/constants/clipboard.d.ts +0 -4
- package/dist/plugin/camera/src/plugin/clipboard/cores/clipboard.d.ts +0 -3
- package/dist/plugin/camera/src/plugin/clipboard/cores/index.d.ts +0 -3
- package/dist/plugin/camera/src/plugin/clipboard/errors/unsupported-color-error.d.ts +0 -2
- package/dist/plugin/camera/src/plugin/clipboard/index.d.ts +0 -5
- package/dist/plugin/camera/src/plugin/clipboard/types/clipboard.d.ts +0 -4
- package/dist/plugin/camera/src/plugin/clipboard/types/index.d.ts +0 -11
- package/dist/plugin/camera/src/plugin/clipboard/utils/copy.d.ts +0 -1
- package/dist/plugin/camera/src/plugin/clipboard/utils/html-string-to-plain-string.d.ts +0 -1
- package/dist/plugin/camera/src/plugin/fullscreen/cores/fullscreen.d.ts +0 -3
- package/dist/plugin/camera/src/plugin/fullscreen/cores/index.d.ts +0 -35
- package/dist/plugin/camera/src/plugin/fullscreen/index.d.ts +0 -5
- package/dist/plugin/camera/src/plugin/fullscreen/types/fullscreen-electron.d.ts +0 -10
- package/dist/plugin/camera/src/plugin/fullscreen/types/fullscreen.d.ts +0 -10
- package/dist/plugin/camera/src/plugin/fullscreen/types/index.d.ts +0 -11
- package/dist/plugin/camera/src/plugin/platform/constants/index.d.ts +0 -42
- package/dist/plugin/camera/src/plugin/platform/cores/index.d.ts +0 -28
- package/dist/plugin/camera/src/plugin/platform/cores/platform.d.ts +0 -3
- package/dist/plugin/camera/src/plugin/platform/index.d.ts +0 -12
- package/dist/plugin/camera/src/plugin/platform/types/index.d.ts +0 -11
- package/dist/plugin/camera/src/plugin/platform/types/platform.d.ts +0 -18
- package/dist/plugin/camera/src/plugin/theme/constants/index.d.ts +0 -2
- package/dist/plugin/camera/src/plugin/theme/constants/theme.d.ts +0 -14
- package/dist/plugin/camera/src/plugin/theme/cores/index.d.ts +0 -3
- package/dist/plugin/camera/src/plugin/theme/cores/theme.d.ts +0 -3
- package/dist/plugin/camera/src/plugin/theme/errors/easing-error.d.ts +0 -6
- package/dist/plugin/camera/src/plugin/theme/errors/unsupported-color-error.d.ts +0 -2
- package/dist/plugin/camera/src/plugin/theme/index.d.ts +0 -5
- package/dist/plugin/camera/src/plugin/theme/types/color.d.ts +0 -17
- package/dist/plugin/camera/src/plugin/theme/types/easing-syntax.d.ts +0 -16
- package/dist/plugin/camera/src/plugin/theme/types/index.d.ts +0 -11
- package/dist/plugin/camera/src/plugin/theme/types/theme.d.ts +0 -4
- package/dist/plugin/camera/src/plugin/theme/utils/parse-color.d.ts +0 -2
- package/dist/plugin/camera/src/plugin/theme/utils/parse-easing-function.d.ts +0 -2
- package/dist/plugin/camera/src/types/clipboard-utils.d.ts +0 -4
- package/dist/plugin/camera/src/types/event-listener-util.d.ts +0 -11
- package/dist/plugin/camera/src/types/index.d.ts +0 -1
- package/dist/plugin/camera/src/types/native.d.ts +0 -27
- package/dist/plugin/camera/src/types/platform.d.ts +0 -16
- package/dist/plugin/camera/src/utils/assign.d.ts +0 -1
- package/dist/plugin/camera/src/utils/clipboard-utils.d.ts +0 -4
- package/dist/plugin/camera/src/utils/compare-version.d.ts +0 -1
- package/dist/plugin/camera/src/utils/create-custom-error.d.ts +0 -6
- package/dist/plugin/camera/src/utils/create-hidden-element.d.ts +0 -1
- package/dist/plugin/camera/src/utils/dispatch-click-event.d.ts +0 -1
- package/dist/plugin/camera/src/utils/dynamic-import.d.ts +0 -1
- package/dist/plugin/camera/src/utils/event-listener-utils.d.ts +0 -3
- package/dist/plugin/camera/src/utils/fullscreen-utils.d.ts +0 -44
- package/dist/plugin/camera/src/utils/get-tag-name.d.ts +0 -1
- package/dist/plugin/camera/src/utils/get-topmost-window.d.ts +0 -1
- package/dist/plugin/camera/src/utils/is-secure-context.d.ts +0 -1
- package/dist/plugin/camera/src/utils/require.d.ts +0 -1
- package/dist/plugin/clipboard/index.cjs +0 -512
- package/dist/plugin/clipboard/index.d.ts +0 -4
- package/dist/plugin/clipboard/index.min.cjs +0 -1
- package/dist/plugin/clipboard/index.min.mjs +0 -1
- package/dist/plugin/clipboard/index.mjs +0 -510
- package/dist/plugin/clipboard/index.umd.js +0 -518
- package/dist/plugin/clipboard/index.umd.min.js +0 -1
- package/dist/plugin/clipboard/src/constants/platform.d.ts +0 -67
- package/dist/plugin/clipboard/src/constants/user-agent.d.ts +0 -1
- package/dist/plugin/clipboard/src/errors/plugin-not-extended-error.d.ts +0 -2
- package/dist/plugin/clipboard/src/errors/url-open-error.d.ts +0 -2
- package/dist/plugin/clipboard/src/plugin/app/constants/app.d.ts +0 -12
- package/dist/plugin/clipboard/src/plugin/app/constants/index.d.ts +0 -25
- package/dist/plugin/clipboard/src/plugin/app/cores/app.d.ts +0 -3
- package/dist/plugin/clipboard/src/plugin/app/cores/index.d.ts +0 -14
- package/dist/plugin/clipboard/src/plugin/app/errors/url-open-error.d.ts +0 -2
- package/dist/plugin/clipboard/src/plugin/app/index.d.ts +0 -3
- package/dist/plugin/clipboard/src/plugin/app/types/app.d.ts +0 -72
- package/dist/plugin/clipboard/src/plugin/app/types/index.d.ts +0 -1
- package/dist/plugin/clipboard/src/plugin/app/utils/try-open-url.d.ts +0 -16
- package/dist/plugin/clipboard/src/plugin/appearance/constants/index.d.ts +0 -11
- package/dist/plugin/clipboard/src/plugin/appearance/cores/index.d.ts +0 -3
- package/dist/plugin/clipboard/src/plugin/appearance/index.d.ts +0 -3
- package/dist/plugin/clipboard/src/plugin/appearance/types/appearance.d.ts +0 -9
- package/dist/plugin/clipboard/src/plugin/appearance/types/index.d.ts +0 -1
- package/dist/plugin/clipboard/src/plugin/camera/constants/camera.d.ts +0 -4
- package/dist/plugin/clipboard/src/plugin/camera/constants/inedx.d.ts +0 -4
- package/dist/plugin/clipboard/src/plugin/camera/cores/camera.d.ts +0 -3
- package/dist/plugin/clipboard/src/plugin/camera/cores/index.d.ts +0 -3
- package/dist/plugin/clipboard/src/plugin/camera/index.d.ts +0 -8
- package/dist/plugin/clipboard/src/plugin/camera/types/camera.d.ts +0 -4
- package/dist/plugin/clipboard/src/plugin/camera/types/index.d.ts +0 -13
- package/dist/plugin/clipboard/src/plugin/camera/utils/try-open-camera.d.ts +0 -2
- package/dist/plugin/clipboard/src/plugin/clipboard/constants/clipboard.d.ts +0 -4
- package/dist/plugin/clipboard/src/plugin/clipboard/cores/clipboard.d.ts +0 -3
- package/dist/plugin/clipboard/src/plugin/clipboard/cores/index.d.ts +0 -3
- package/dist/plugin/clipboard/src/plugin/clipboard/errors/unsupported-color-error.d.ts +0 -2
- package/dist/plugin/clipboard/src/plugin/clipboard/index.d.ts +0 -3
- package/dist/plugin/clipboard/src/plugin/clipboard/types/appearance.d.ts +0 -13
- package/dist/plugin/clipboard/src/plugin/clipboard/types/clipboard.d.ts +0 -6
- package/dist/plugin/clipboard/src/plugin/clipboard/types/index.d.ts +0 -1
- package/dist/plugin/clipboard/src/plugin/clipboard/utils/copy.d.ts +0 -1
- package/dist/plugin/clipboard/src/plugin/clipboard/utils/html-string-to-plain-string.d.ts +0 -1
- package/dist/plugin/clipboard/src/plugin/dimension/constants/index.d.ts +0 -4
- package/dist/plugin/clipboard/src/plugin/dimension/cores/index.d.ts +0 -3
- package/dist/plugin/clipboard/src/plugin/dimension/index.d.ts +0 -3
- package/dist/plugin/clipboard/src/plugin/dimension/types/dimension.d.ts +0 -11
- package/dist/plugin/clipboard/src/plugin/dimension/types/dimensions.d.ts +0 -13
- package/dist/plugin/clipboard/src/plugin/dimension/types/index.d.ts +0 -1
- package/dist/plugin/clipboard/src/plugin/fullscreen/cores/fullscreen.d.ts +0 -3
- package/dist/plugin/clipboard/src/plugin/fullscreen/cores/index.d.ts +0 -35
- package/dist/plugin/clipboard/src/plugin/fullscreen/index.d.ts +0 -3
- package/dist/plugin/clipboard/src/plugin/fullscreen/types/fullscreen-electron.d.ts +0 -10
- package/dist/plugin/clipboard/src/plugin/fullscreen/types/fullscreen.d.ts +0 -12
- package/dist/plugin/clipboard/src/plugin/fullscreen/types/index.d.ts +0 -1
- package/dist/plugin/clipboard/src/plugin/platform/constants/index.d.ts +0 -43
- package/dist/plugin/clipboard/src/plugin/platform/cores/index.d.ts +0 -52
- package/dist/plugin/clipboard/src/plugin/platform/cores/platform.d.ts +0 -3
- package/dist/plugin/clipboard/src/plugin/platform/index.d.ts +0 -3
- package/dist/plugin/clipboard/src/plugin/platform/types/index.d.ts +0 -1
- package/dist/plugin/clipboard/src/plugin/platform/types/platform.d.ts +0 -34
- package/dist/plugin/clipboard/src/plugin/theme/constants/index.d.ts +0 -2
- package/dist/plugin/clipboard/src/plugin/theme/constants/theme.d.ts +0 -14
- package/dist/plugin/clipboard/src/plugin/theme/cores/index.d.ts +0 -3
- package/dist/plugin/clipboard/src/plugin/theme/cores/theme.d.ts +0 -3
- package/dist/plugin/clipboard/src/plugin/theme/errors/easing-error.d.ts +0 -6
- package/dist/plugin/clipboard/src/plugin/theme/errors/unsupported-color-error.d.ts +0 -2
- package/dist/plugin/clipboard/src/plugin/theme/index.d.ts +0 -3
- package/dist/plugin/clipboard/src/plugin/theme/types/color.d.ts +0 -17
- package/dist/plugin/clipboard/src/plugin/theme/types/easing-syntax.d.ts +0 -16
- package/dist/plugin/clipboard/src/plugin/theme/types/index.d.ts +0 -1
- package/dist/plugin/clipboard/src/plugin/theme/types/theme.d.ts +0 -6
- package/dist/plugin/clipboard/src/plugin/theme/utils/parse-color.d.ts +0 -2
- package/dist/plugin/clipboard/src/plugin/theme/utils/parse-easing-function.d.ts +0 -2
- package/dist/plugin/clipboard/src/types/clipboard-utils.d.ts +0 -4
- package/dist/plugin/clipboard/src/types/event-listener-util.d.ts +0 -11
- package/dist/plugin/clipboard/src/types/index.d.ts +0 -1
- package/dist/plugin/clipboard/src/types/listener-entry.d.ts +0 -6
- package/dist/plugin/clipboard/src/types/native.d.ts +0 -17
- package/dist/plugin/clipboard/src/types/platform.d.ts +0 -16
- package/dist/plugin/clipboard/src/utils/assign.d.ts +0 -1
- package/dist/plugin/clipboard/src/utils/clipboard-utils.d.ts +0 -4
- package/dist/plugin/clipboard/src/utils/compare-version.d.ts +0 -1
- package/dist/plugin/clipboard/src/utils/create-custom-error.d.ts +0 -6
- package/dist/plugin/clipboard/src/utils/create-hidden-element.d.ts +0 -1
- package/dist/plugin/clipboard/src/utils/dispatch-click-event.d.ts +0 -1
- package/dist/plugin/clipboard/src/utils/dynamic-import.d.ts +0 -1
- package/dist/plugin/clipboard/src/utils/event-listener-utils.d.ts +0 -3
- package/dist/plugin/clipboard/src/utils/fullscreen-utils.d.ts +0 -44
- package/dist/plugin/clipboard/src/utils/get-tag-name.d.ts +0 -1
- package/dist/plugin/clipboard/src/utils/get-topmost-window.d.ts +0 -1
- package/dist/plugin/clipboard/src/utils/is-secure-context.d.ts +0 -1
- package/dist/plugin/clipboard/src/utils/request.d.ts +0 -6
- package/dist/plugin/clipboard/src/utils/require.d.ts +0 -1
- package/dist/plugin/dimension/index.cjs +0 -110
- package/dist/plugin/dimension/index.d.ts +0 -4
- package/dist/plugin/dimension/index.min.cjs +0 -1
- package/dist/plugin/dimension/index.min.mjs +0 -1
- package/dist/plugin/dimension/index.mjs +0 -108
- package/dist/plugin/dimension/index.umd.js +0 -116
- package/dist/plugin/dimension/index.umd.min.js +0 -1
- package/dist/plugin/dimension/src/errors/plugin-not-extended-error.d.ts +0 -2
- package/dist/plugin/dimension/src/plugin/app/constants/index.d.ts +0 -25
- package/dist/plugin/dimension/src/plugin/app/cores/index.d.ts +0 -14
- package/dist/plugin/dimension/src/plugin/app/errors/url-open-error.d.ts +0 -2
- package/dist/plugin/dimension/src/plugin/app/index.d.ts +0 -3
- package/dist/plugin/dimension/src/plugin/app/types/app.d.ts +0 -72
- package/dist/plugin/dimension/src/plugin/app/types/index.d.ts +0 -1
- package/dist/plugin/dimension/src/plugin/appearance/constants/index.d.ts +0 -11
- package/dist/plugin/dimension/src/plugin/appearance/cores/index.d.ts +0 -3
- package/dist/plugin/dimension/src/plugin/appearance/index.d.ts +0 -3
- package/dist/plugin/dimension/src/plugin/appearance/types/appearance.d.ts +0 -9
- package/dist/plugin/dimension/src/plugin/appearance/types/index.d.ts +0 -1
- package/dist/plugin/dimension/src/plugin/clipboard/cores/index.d.ts +0 -3
- package/dist/plugin/dimension/src/plugin/clipboard/index.d.ts +0 -3
- package/dist/plugin/dimension/src/plugin/clipboard/types/appearance.d.ts +0 -13
- package/dist/plugin/dimension/src/plugin/clipboard/types/clipboard.d.ts +0 -6
- package/dist/plugin/dimension/src/plugin/clipboard/types/index.d.ts +0 -1
- package/dist/plugin/dimension/src/plugin/dimension/constants/index.d.ts +0 -4
- package/dist/plugin/dimension/src/plugin/dimension/cores/index.d.ts +0 -3
- package/dist/plugin/dimension/src/plugin/dimension/index.d.ts +0 -3
- package/dist/plugin/dimension/src/plugin/dimension/types/dimension.d.ts +0 -11
- package/dist/plugin/dimension/src/plugin/dimension/types/dimensions.d.ts +0 -13
- package/dist/plugin/dimension/src/plugin/dimension/types/index.d.ts +0 -1
- package/dist/plugin/dimension/src/plugin/fullscreen/cores/index.d.ts +0 -35
- package/dist/plugin/dimension/src/plugin/fullscreen/index.d.ts +0 -3
- package/dist/plugin/dimension/src/plugin/fullscreen/types/fullscreen.d.ts +0 -12
- package/dist/plugin/dimension/src/plugin/fullscreen/types/index.d.ts +0 -1
- package/dist/plugin/dimension/src/plugin/platform/constants/index.d.ts +0 -43
- package/dist/plugin/dimension/src/plugin/platform/cores/index.d.ts +0 -52
- package/dist/plugin/dimension/src/plugin/platform/index.d.ts +0 -3
- package/dist/plugin/dimension/src/plugin/platform/types/index.d.ts +0 -1
- package/dist/plugin/dimension/src/plugin/platform/types/platform.d.ts +0 -34
- package/dist/plugin/dimension/src/plugin/theme/constants/index.d.ts +0 -2
- package/dist/plugin/dimension/src/plugin/theme/cores/index.d.ts +0 -3
- package/dist/plugin/dimension/src/plugin/theme/index.d.ts +0 -3
- package/dist/plugin/dimension/src/plugin/theme/types/index.d.ts +0 -1
- package/dist/plugin/dimension/src/plugin/theme/types/theme.d.ts +0 -6
- package/dist/plugin/dimension/src/types/event-listener-util.d.ts +0 -11
- package/dist/plugin/dimension/src/types/index.d.ts +0 -1
- package/dist/plugin/dimension/src/types/listener-entry.d.ts +0 -6
- package/dist/plugin/dimension/src/types/native.d.ts +0 -17
- package/dist/plugin/dimension/src/utils/assign.d.ts +0 -1
- package/dist/plugin/dimension/src/utils/compare-version.d.ts +0 -1
- package/dist/plugin/dimension/src/utils/create-custom-error.d.ts +0 -6
- package/dist/plugin/dimension/src/utils/create-hidden-element.d.ts +0 -1
- package/dist/plugin/dimension/src/utils/dispatch-click-event.d.ts +0 -1
- package/dist/plugin/dimension/src/utils/event-listener-utils.d.ts +0 -3
- package/dist/plugin/dimension/src/utils/get-topmost-window.d.ts +0 -1
- package/dist/plugin/dimension/src/utils/is-secure-context.d.ts +0 -1
- package/dist/plugin/dimension/src/utils/request.d.ts +0 -6
- package/dist/plugin/fullscreen/index.cjs +0 -1008
- package/dist/plugin/fullscreen/index.d.ts +0 -4
- package/dist/plugin/fullscreen/index.min.cjs +0 -1
- package/dist/plugin/fullscreen/index.min.mjs +0 -1
- package/dist/plugin/fullscreen/index.mjs +0 -1006
- package/dist/plugin/fullscreen/index.umd.js +0 -1014
- package/dist/plugin/fullscreen/index.umd.min.js +0 -1
- package/dist/plugin/fullscreen/src/constants/platform.d.ts +0 -67
- package/dist/plugin/fullscreen/src/constants/user-agent.d.ts +0 -1
- package/dist/plugin/fullscreen/src/errors/plugin-not-extended-error.d.ts +0 -2
- package/dist/plugin/fullscreen/src/errors/url-open-error.d.ts +0 -2
- package/dist/plugin/fullscreen/src/plugin/app/constants/app.d.ts +0 -12
- package/dist/plugin/fullscreen/src/plugin/app/constants/index.d.ts +0 -25
- package/dist/plugin/fullscreen/src/plugin/app/cores/app.d.ts +0 -3
- package/dist/plugin/fullscreen/src/plugin/app/cores/index.d.ts +0 -14
- package/dist/plugin/fullscreen/src/plugin/app/errors/url-open-error.d.ts +0 -2
- package/dist/plugin/fullscreen/src/plugin/app/index.d.ts +0 -3
- package/dist/plugin/fullscreen/src/plugin/app/types/app.d.ts +0 -72
- package/dist/plugin/fullscreen/src/plugin/app/types/index.d.ts +0 -1
- package/dist/plugin/fullscreen/src/plugin/app/utils/try-open-url.d.ts +0 -16
- package/dist/plugin/fullscreen/src/plugin/appearance/constants/index.d.ts +0 -11
- package/dist/plugin/fullscreen/src/plugin/appearance/cores/index.d.ts +0 -3
- package/dist/plugin/fullscreen/src/plugin/appearance/index.d.ts +0 -3
- package/dist/plugin/fullscreen/src/plugin/appearance/types/appearance.d.ts +0 -9
- package/dist/plugin/fullscreen/src/plugin/appearance/types/index.d.ts +0 -1
- package/dist/plugin/fullscreen/src/plugin/camera/constants/camera.d.ts +0 -4
- package/dist/plugin/fullscreen/src/plugin/camera/constants/inedx.d.ts +0 -4
- package/dist/plugin/fullscreen/src/plugin/camera/cores/camera.d.ts +0 -3
- package/dist/plugin/fullscreen/src/plugin/camera/cores/index.d.ts +0 -3
- package/dist/plugin/fullscreen/src/plugin/camera/index.d.ts +0 -8
- package/dist/plugin/fullscreen/src/plugin/camera/types/camera.d.ts +0 -4
- package/dist/plugin/fullscreen/src/plugin/camera/types/index.d.ts +0 -13
- package/dist/plugin/fullscreen/src/plugin/camera/utils/try-open-camera.d.ts +0 -2
- package/dist/plugin/fullscreen/src/plugin/clipboard/cores/clipboard.d.ts +0 -3
- package/dist/plugin/fullscreen/src/plugin/clipboard/cores/index.d.ts +0 -3
- package/dist/plugin/fullscreen/src/plugin/clipboard/index.d.ts +0 -3
- package/dist/plugin/fullscreen/src/plugin/clipboard/types/appearance.d.ts +0 -13
- package/dist/plugin/fullscreen/src/plugin/clipboard/types/clipboard.d.ts +0 -6
- package/dist/plugin/fullscreen/src/plugin/clipboard/types/index.d.ts +0 -1
- package/dist/plugin/fullscreen/src/plugin/dimension/constants/index.d.ts +0 -4
- package/dist/plugin/fullscreen/src/plugin/dimension/cores/index.d.ts +0 -3
- package/dist/plugin/fullscreen/src/plugin/dimension/index.d.ts +0 -3
- package/dist/plugin/fullscreen/src/plugin/dimension/types/dimension.d.ts +0 -11
- package/dist/plugin/fullscreen/src/plugin/dimension/types/dimensions.d.ts +0 -13
- package/dist/plugin/fullscreen/src/plugin/dimension/types/index.d.ts +0 -1
- package/dist/plugin/fullscreen/src/plugin/fullscreen/cores/fullscreen.d.ts +0 -3
- package/dist/plugin/fullscreen/src/plugin/fullscreen/cores/index.d.ts +0 -35
- package/dist/plugin/fullscreen/src/plugin/fullscreen/index.d.ts +0 -3
- package/dist/plugin/fullscreen/src/plugin/fullscreen/types/fullscreen-electron.d.ts +0 -10
- package/dist/plugin/fullscreen/src/plugin/fullscreen/types/fullscreen.d.ts +0 -12
- package/dist/plugin/fullscreen/src/plugin/fullscreen/types/index.d.ts +0 -1
- package/dist/plugin/fullscreen/src/plugin/platform/constants/index.d.ts +0 -43
- package/dist/plugin/fullscreen/src/plugin/platform/cores/index.d.ts +0 -52
- package/dist/plugin/fullscreen/src/plugin/platform/cores/platform.d.ts +0 -3
- package/dist/plugin/fullscreen/src/plugin/platform/index.d.ts +0 -3
- package/dist/plugin/fullscreen/src/plugin/platform/types/index.d.ts +0 -1
- package/dist/plugin/fullscreen/src/plugin/platform/types/platform.d.ts +0 -34
- package/dist/plugin/fullscreen/src/plugin/theme/constants/index.d.ts +0 -2
- package/dist/plugin/fullscreen/src/plugin/theme/constants/theme.d.ts +0 -14
- package/dist/plugin/fullscreen/src/plugin/theme/cores/index.d.ts +0 -3
- package/dist/plugin/fullscreen/src/plugin/theme/cores/theme.d.ts +0 -3
- package/dist/plugin/fullscreen/src/plugin/theme/errors/easing-error.d.ts +0 -6
- package/dist/plugin/fullscreen/src/plugin/theme/errors/unsupported-color-error.d.ts +0 -2
- package/dist/plugin/fullscreen/src/plugin/theme/index.d.ts +0 -3
- package/dist/plugin/fullscreen/src/plugin/theme/types/color.d.ts +0 -17
- package/dist/plugin/fullscreen/src/plugin/theme/types/easing-syntax.d.ts +0 -16
- package/dist/plugin/fullscreen/src/plugin/theme/types/index.d.ts +0 -1
- package/dist/plugin/fullscreen/src/plugin/theme/types/theme.d.ts +0 -6
- package/dist/plugin/fullscreen/src/plugin/theme/utils/parse-color.d.ts +0 -2
- package/dist/plugin/fullscreen/src/plugin/theme/utils/parse-easing-function.d.ts +0 -2
- package/dist/plugin/fullscreen/src/types/clipboard-utils.d.ts +0 -4
- package/dist/plugin/fullscreen/src/types/event-listener-util.d.ts +0 -11
- package/dist/plugin/fullscreen/src/types/index.d.ts +0 -1
- package/dist/plugin/fullscreen/src/types/listener-entry.d.ts +0 -6
- package/dist/plugin/fullscreen/src/types/native.d.ts +0 -17
- package/dist/plugin/fullscreen/src/types/platform.d.ts +0 -16
- package/dist/plugin/fullscreen/src/utils/assign.d.ts +0 -1
- package/dist/plugin/fullscreen/src/utils/clipboard-utils.d.ts +0 -4
- package/dist/plugin/fullscreen/src/utils/compare-version.d.ts +0 -1
- package/dist/plugin/fullscreen/src/utils/create-custom-error.d.ts +0 -6
- package/dist/plugin/fullscreen/src/utils/create-hidden-element.d.ts +0 -1
- package/dist/plugin/fullscreen/src/utils/dispatch-click-event.d.ts +0 -1
- package/dist/plugin/fullscreen/src/utils/dynamic-import.d.ts +0 -1
- package/dist/plugin/fullscreen/src/utils/event-listener-utils.d.ts +0 -3
- package/dist/plugin/fullscreen/src/utils/fullscreen-utils.d.ts +0 -44
- package/dist/plugin/fullscreen/src/utils/get-tag-name.d.ts +0 -1
- package/dist/plugin/fullscreen/src/utils/get-topmost-window.d.ts +0 -1
- package/dist/plugin/fullscreen/src/utils/is-secure-context.d.ts +0 -1
- package/dist/plugin/fullscreen/src/utils/request.d.ts +0 -6
- package/dist/plugin/fullscreen/src/utils/require.d.ts +0 -1
- package/dist/plugin/media/index.cjs +0 -241
- package/dist/plugin/media/index.d.ts +0 -33
- package/dist/plugin/media/index.min.cjs +0 -1
- package/dist/plugin/media/index.min.mjs +0 -1
- package/dist/plugin/media/index.mjs +0 -239
- package/dist/plugin/media/index.umd.js +0 -247
- package/dist/plugin/media/index.umd.min.js +0 -1
- package/dist/plugin/media/src/constants/platform.d.ts +0 -35
- package/dist/plugin/media/src/constants/user-agent.d.ts +0 -1
- package/dist/plugin/media/src/errors/url-open-error.d.ts +0 -2
- package/dist/plugin/media/src/plugin/app/constants/app.d.ts +0 -13
- package/dist/plugin/media/src/plugin/app/cores/app.d.ts +0 -3
- package/dist/plugin/media/src/plugin/app/errors/url-open-error.d.ts +0 -2
- package/dist/plugin/media/src/plugin/app/index.d.ts +0 -12
- package/dist/plugin/media/src/plugin/app/types/app.d.ts +0 -43
- package/dist/plugin/media/src/plugin/app/types/index.d.ts +0 -16
- package/dist/plugin/media/src/plugin/app/utils/try-open-url.d.ts +0 -1
- package/dist/plugin/media/src/plugin/media/constants/media.d.ts +0 -5
- package/dist/plugin/media/src/plugin/media/cores/media.d.ts +0 -3
- package/dist/plugin/media/src/plugin/media/index.d.ts +0 -5
- package/dist/plugin/media/src/plugin/media/types/index.d.ts +0 -13
- package/dist/plugin/media/src/plugin/media/types/media.d.ts +0 -4
- package/dist/plugin/media/src/plugin/media/utils/try-open-camera.d.ts +0 -2
- package/dist/plugin/media/src/plugin/platform/cores/platform.d.ts +0 -3
- package/dist/plugin/media/src/plugin/platform/index.d.ts +0 -5
- package/dist/plugin/media/src/plugin/platform/types/index.d.ts +0 -7
- package/dist/plugin/media/src/plugin/platform/types/platform.d.ts +0 -13
- package/dist/plugin/media/src/plugin/theme/constants/theme.d.ts +0 -16
- package/dist/plugin/media/src/plugin/theme/cores/theme.d.ts +0 -3
- package/dist/plugin/media/src/plugin/theme/errors/easing-error.d.ts +0 -6
- package/dist/plugin/media/src/plugin/theme/errors/unsupported-color-error.d.ts +0 -2
- package/dist/plugin/media/src/plugin/theme/index.d.ts +0 -17
- package/dist/plugin/media/src/plugin/theme/types/color.d.ts +0 -17
- package/dist/plugin/media/src/plugin/theme/types/easing-syntax.d.ts +0 -16
- package/dist/plugin/media/src/plugin/theme/types/index.d.ts +0 -23
- package/dist/plugin/media/src/plugin/theme/types/theme.d.ts +0 -23
- package/dist/plugin/media/src/plugin/theme/utils/parse-color.d.ts +0 -2
- package/dist/plugin/media/src/plugin/theme/utils/parse-easing-function.d.ts +0 -2
- package/dist/plugin/media/src/types/event-listener-util.d.ts +0 -11
- package/dist/plugin/media/src/types/index.d.ts +0 -2
- package/dist/plugin/media/src/types/native.d.ts +0 -27
- package/dist/plugin/media/src/utils/assign.d.ts +0 -1
- package/dist/plugin/media/src/utils/create-custom-error.d.ts +0 -1
- package/dist/plugin/media/src/utils/dispatch-click-event.d.ts +0 -1
- package/dist/plugin/media/src/utils/event-listener-utils.d.ts +0 -3
- package/dist/plugin/media/src/utils/get-topmost-window.d.ts +0 -1
- package/dist/plugin/platform/index.cjs +0 -687
- package/dist/plugin/platform/index.d.ts +0 -4
- package/dist/plugin/platform/index.min.cjs +0 -1
- package/dist/plugin/platform/index.min.mjs +0 -1
- package/dist/plugin/platform/index.mjs +0 -685
- package/dist/plugin/platform/index.umd.js +0 -693
- package/dist/plugin/platform/index.umd.min.js +0 -1
- package/dist/plugin/platform/src/constants/platform.d.ts +0 -66
- package/dist/plugin/platform/src/constants/user-agent.d.ts +0 -1
- package/dist/plugin/platform/src/errors/plugin-not-extended-error.d.ts +0 -2
- package/dist/plugin/platform/src/errors/url-open-error.d.ts +0 -2
- package/dist/plugin/platform/src/plugin/app/constants/app.d.ts +0 -12
- package/dist/plugin/platform/src/plugin/app/constants/index.d.ts +0 -25
- package/dist/plugin/platform/src/plugin/app/cores/app.d.ts +0 -3
- package/dist/plugin/platform/src/plugin/app/cores/index.d.ts +0 -14
- package/dist/plugin/platform/src/plugin/app/errors/url-open-error.d.ts +0 -2
- package/dist/plugin/platform/src/plugin/app/index.d.ts +0 -3
- package/dist/plugin/platform/src/plugin/app/types/app.d.ts +0 -72
- package/dist/plugin/platform/src/plugin/app/types/index.d.ts +0 -1
- package/dist/plugin/platform/src/plugin/app/utils/event-listener-utils.d.ts +0 -3
- package/dist/plugin/platform/src/plugin/app/utils/try-open-url.d.ts +0 -1
- package/dist/plugin/platform/src/plugin/appearance/constants/index.d.ts +0 -11
- package/dist/plugin/platform/src/plugin/appearance/cores/index.d.ts +0 -3
- package/dist/plugin/platform/src/plugin/appearance/index.d.ts +0 -3
- package/dist/plugin/platform/src/plugin/appearance/types/appearance.d.ts +0 -9
- package/dist/plugin/platform/src/plugin/appearance/types/index.d.ts +0 -1
- package/dist/plugin/platform/src/plugin/camera/constants/camera.d.ts +0 -4
- package/dist/plugin/platform/src/plugin/camera/constants/inedx.d.ts +0 -4
- package/dist/plugin/platform/src/plugin/camera/cores/camera.d.ts +0 -3
- package/dist/plugin/platform/src/plugin/camera/cores/index.d.ts +0 -3
- package/dist/plugin/platform/src/plugin/camera/index.d.ts +0 -8
- package/dist/plugin/platform/src/plugin/camera/types/camera.d.ts +0 -4
- package/dist/plugin/platform/src/plugin/camera/types/index.d.ts +0 -13
- package/dist/plugin/platform/src/plugin/camera/utils/try-open-camera.d.ts +0 -2
- package/dist/plugin/platform/src/plugin/clipboard/constants/clipboard.d.ts +0 -4
- package/dist/plugin/platform/src/plugin/clipboard/cores/clipboard.d.ts +0 -3
- package/dist/plugin/platform/src/plugin/clipboard/cores/index.d.ts +0 -3
- package/dist/plugin/platform/src/plugin/clipboard/errors/unsupported-color-error.d.ts +0 -2
- package/dist/plugin/platform/src/plugin/clipboard/index.d.ts +0 -3
- package/dist/plugin/platform/src/plugin/clipboard/types/appearance.d.ts +0 -13
- package/dist/plugin/platform/src/plugin/clipboard/types/clipboard.d.ts +0 -6
- package/dist/plugin/platform/src/plugin/clipboard/types/index.d.ts +0 -1
- package/dist/plugin/platform/src/plugin/clipboard/utils/copy.d.ts +0 -1
- package/dist/plugin/platform/src/plugin/clipboard/utils/html-string-to-plain-string.d.ts +0 -1
- package/dist/plugin/platform/src/plugin/dimension/constants/index.d.ts +0 -4
- package/dist/plugin/platform/src/plugin/dimension/cores/index.d.ts +0 -3
- package/dist/plugin/platform/src/plugin/dimension/index.d.ts +0 -3
- package/dist/plugin/platform/src/plugin/dimension/types/dimension.d.ts +0 -11
- package/dist/plugin/platform/src/plugin/dimension/types/dimensions.d.ts +0 -13
- package/dist/plugin/platform/src/plugin/dimension/types/index.d.ts +0 -1
- package/dist/plugin/platform/src/plugin/fullscreen/cores/fullscreen.d.ts +0 -3
- package/dist/plugin/platform/src/plugin/fullscreen/cores/index.d.ts +0 -35
- package/dist/plugin/platform/src/plugin/fullscreen/index.d.ts +0 -3
- package/dist/plugin/platform/src/plugin/fullscreen/types/fullscreen.d.ts +0 -12
- package/dist/plugin/platform/src/plugin/fullscreen/types/index.d.ts +0 -1
- package/dist/plugin/platform/src/plugin/media/constants/media.d.ts +0 -5
- package/dist/plugin/platform/src/plugin/media/cores/media.d.ts +0 -3
- package/dist/plugin/platform/src/plugin/media/index.d.ts +0 -5
- package/dist/plugin/platform/src/plugin/media/types/index.d.ts +0 -13
- package/dist/plugin/platform/src/plugin/media/types/media.d.ts +0 -4
- package/dist/plugin/platform/src/plugin/media/utils/try-open-camera.d.ts +0 -2
- package/dist/plugin/platform/src/plugin/platform/constants/index.d.ts +0 -43
- package/dist/plugin/platform/src/plugin/platform/cores/index.d.ts +0 -52
- package/dist/plugin/platform/src/plugin/platform/cores/platform.d.ts +0 -3
- package/dist/plugin/platform/src/plugin/platform/index.d.ts +0 -3
- package/dist/plugin/platform/src/plugin/platform/types/index.d.ts +0 -1
- package/dist/plugin/platform/src/plugin/platform/types/platform.d.ts +0 -34
- package/dist/plugin/platform/src/plugin/theme/constants/index.d.ts +0 -2
- package/dist/plugin/platform/src/plugin/theme/constants/theme.d.ts +0 -14
- package/dist/plugin/platform/src/plugin/theme/cores/index.d.ts +0 -3
- package/dist/plugin/platform/src/plugin/theme/cores/theme.d.ts +0 -3
- package/dist/plugin/platform/src/plugin/theme/errors/easing-error.d.ts +0 -6
- package/dist/plugin/platform/src/plugin/theme/errors/unsupported-color-error.d.ts +0 -2
- package/dist/plugin/platform/src/plugin/theme/index.d.ts +0 -3
- package/dist/plugin/platform/src/plugin/theme/types/color.d.ts +0 -17
- package/dist/plugin/platform/src/plugin/theme/types/easing-syntax.d.ts +0 -16
- package/dist/plugin/platform/src/plugin/theme/types/index.d.ts +0 -1
- package/dist/plugin/platform/src/plugin/theme/types/theme.d.ts +0 -6
- package/dist/plugin/platform/src/plugin/theme/utils/parse-color.d.ts +0 -2
- package/dist/plugin/platform/src/plugin/theme/utils/parse-easing-function.d.ts +0 -2
- package/dist/plugin/platform/src/types/clipboard-utils.d.ts +0 -4
- package/dist/plugin/platform/src/types/event-listener-util.d.ts +0 -11
- package/dist/plugin/platform/src/types/index.d.ts +0 -1
- package/dist/plugin/platform/src/types/listener-entry.d.ts +0 -6
- package/dist/plugin/platform/src/types/native.d.ts +0 -17
- package/dist/plugin/platform/src/utils/assign.d.ts +0 -1
- package/dist/plugin/platform/src/utils/clipboard-utils.d.ts +0 -4
- package/dist/plugin/platform/src/utils/compare-version.d.ts +0 -1
- package/dist/plugin/platform/src/utils/create-custom-error.d.ts +0 -6
- package/dist/plugin/platform/src/utils/create-hidden-element.d.ts +0 -1
- package/dist/plugin/platform/src/utils/dispatch-click-event.d.ts +0 -1
- package/dist/plugin/platform/src/utils/dynamic-import.d.ts +0 -1
- package/dist/plugin/platform/src/utils/event-listener-utils.d.ts +0 -3
- package/dist/plugin/platform/src/utils/fullscreen-utils.d.ts +0 -44
- package/dist/plugin/platform/src/utils/get-tag-name.d.ts +0 -1
- package/dist/plugin/platform/src/utils/get-topmost-window.d.ts +0 -1
- package/dist/plugin/platform/src/utils/is-secure-context.d.ts +0 -1
- package/dist/plugin/platform/src/utils/request.d.ts +0 -6
- package/dist/plugin/theme/index.cjs +0 -742
- package/dist/plugin/theme/index.d.ts +0 -4
- package/dist/plugin/theme/index.min.cjs +0 -1
- package/dist/plugin/theme/index.min.mjs +0 -1
- package/dist/plugin/theme/index.mjs +0 -740
- package/dist/plugin/theme/index.umd.js +0 -748
- package/dist/plugin/theme/index.umd.min.js +0 -1
- package/dist/plugin/theme/src/constants/platform.d.ts +0 -67
- package/dist/plugin/theme/src/constants/user-agent.d.ts +0 -1
- package/dist/plugin/theme/src/errors/plugin-not-extended-error.d.ts +0 -2
- package/dist/plugin/theme/src/errors/url-open-error.d.ts +0 -2
- package/dist/plugin/theme/src/plugin/app/constants/app.d.ts +0 -12
- package/dist/plugin/theme/src/plugin/app/constants/index.d.ts +0 -25
- package/dist/plugin/theme/src/plugin/app/cores/app.d.ts +0 -3
- package/dist/plugin/theme/src/plugin/app/cores/index.d.ts +0 -14
- package/dist/plugin/theme/src/plugin/app/errors/url-open-error.d.ts +0 -2
- package/dist/plugin/theme/src/plugin/app/index.d.ts +0 -3
- package/dist/plugin/theme/src/plugin/app/types/app.d.ts +0 -72
- package/dist/plugin/theme/src/plugin/app/types/index.d.ts +0 -1
- package/dist/plugin/theme/src/plugin/app/utils/event-listener-utils.d.ts +0 -3
- package/dist/plugin/theme/src/plugin/app/utils/try-open-url.d.ts +0 -16
- package/dist/plugin/theme/src/plugin/appearance/constants/index.d.ts +0 -11
- package/dist/plugin/theme/src/plugin/appearance/cores/index.d.ts +0 -3
- package/dist/plugin/theme/src/plugin/appearance/index.d.ts +0 -3
- package/dist/plugin/theme/src/plugin/appearance/types/appearance.d.ts +0 -9
- package/dist/plugin/theme/src/plugin/appearance/types/index.d.ts +0 -1
- package/dist/plugin/theme/src/plugin/camera/constants/camera.d.ts +0 -4
- package/dist/plugin/theme/src/plugin/camera/constants/inedx.d.ts +0 -4
- package/dist/plugin/theme/src/plugin/camera/cores/camera.d.ts +0 -3
- package/dist/plugin/theme/src/plugin/camera/cores/index.d.ts +0 -3
- package/dist/plugin/theme/src/plugin/camera/index.d.ts +0 -8
- package/dist/plugin/theme/src/plugin/camera/types/camera.d.ts +0 -4
- package/dist/plugin/theme/src/plugin/camera/types/index.d.ts +0 -13
- package/dist/plugin/theme/src/plugin/camera/utils/try-open-camera.d.ts +0 -2
- package/dist/plugin/theme/src/plugin/clipboard/constants/clipboard.d.ts +0 -4
- package/dist/plugin/theme/src/plugin/clipboard/cores/clipboard.d.ts +0 -3
- package/dist/plugin/theme/src/plugin/clipboard/cores/index.d.ts +0 -3
- package/dist/plugin/theme/src/plugin/clipboard/errors/unsupported-color-error.d.ts +0 -2
- package/dist/plugin/theme/src/plugin/clipboard/index.d.ts +0 -3
- package/dist/plugin/theme/src/plugin/clipboard/types/appearance.d.ts +0 -13
- package/dist/plugin/theme/src/plugin/clipboard/types/clipboard.d.ts +0 -6
- package/dist/plugin/theme/src/plugin/clipboard/types/index.d.ts +0 -1
- package/dist/plugin/theme/src/plugin/clipboard/utils/copy.d.ts +0 -1
- package/dist/plugin/theme/src/plugin/clipboard/utils/html-string-to-plain-string.d.ts +0 -1
- package/dist/plugin/theme/src/plugin/dimension/constants/index.d.ts +0 -4
- package/dist/plugin/theme/src/plugin/dimension/cores/index.d.ts +0 -3
- package/dist/plugin/theme/src/plugin/dimension/index.d.ts +0 -3
- package/dist/plugin/theme/src/plugin/dimension/types/dimension.d.ts +0 -11
- package/dist/plugin/theme/src/plugin/dimension/types/dimensions.d.ts +0 -13
- package/dist/plugin/theme/src/plugin/dimension/types/index.d.ts +0 -1
- package/dist/plugin/theme/src/plugin/fullscreen/cores/fullscreen.d.ts +0 -3
- package/dist/plugin/theme/src/plugin/fullscreen/cores/index.d.ts +0 -35
- package/dist/plugin/theme/src/plugin/fullscreen/index.d.ts +0 -3
- package/dist/plugin/theme/src/plugin/fullscreen/types/fullscreen-electron.d.ts +0 -10
- package/dist/plugin/theme/src/plugin/fullscreen/types/fullscreen.d.ts +0 -12
- package/dist/plugin/theme/src/plugin/fullscreen/types/index.d.ts +0 -1
- package/dist/plugin/theme/src/plugin/media/constants/media.d.ts +0 -5
- package/dist/plugin/theme/src/plugin/media/cores/media.d.ts +0 -3
- package/dist/plugin/theme/src/plugin/media/index.d.ts +0 -5
- package/dist/plugin/theme/src/plugin/media/types/index.d.ts +0 -13
- package/dist/plugin/theme/src/plugin/media/types/media.d.ts +0 -4
- package/dist/plugin/theme/src/plugin/media/utils/try-open-camera.d.ts +0 -2
- package/dist/plugin/theme/src/plugin/platform/constants/index.d.ts +0 -43
- package/dist/plugin/theme/src/plugin/platform/cores/index.d.ts +0 -52
- package/dist/plugin/theme/src/plugin/platform/cores/platform.d.ts +0 -3
- package/dist/plugin/theme/src/plugin/platform/index.d.ts +0 -3
- package/dist/plugin/theme/src/plugin/platform/types/index.d.ts +0 -1
- package/dist/plugin/theme/src/plugin/platform/types/platform.d.ts +0 -34
- package/dist/plugin/theme/src/plugin/theme/constants/index.d.ts +0 -2
- package/dist/plugin/theme/src/plugin/theme/constants/theme.d.ts +0 -14
- package/dist/plugin/theme/src/plugin/theme/cores/index.d.ts +0 -3
- package/dist/plugin/theme/src/plugin/theme/cores/theme.d.ts +0 -3
- package/dist/plugin/theme/src/plugin/theme/errors/easing-error.d.ts +0 -6
- package/dist/plugin/theme/src/plugin/theme/errors/unsupported-color-error.d.ts +0 -2
- package/dist/plugin/theme/src/plugin/theme/index.d.ts +0 -3
- package/dist/plugin/theme/src/plugin/theme/types/color.d.ts +0 -17
- package/dist/plugin/theme/src/plugin/theme/types/easing-syntax.d.ts +0 -16
- package/dist/plugin/theme/src/plugin/theme/types/index.d.ts +0 -1
- package/dist/plugin/theme/src/plugin/theme/types/theme.d.ts +0 -6
- package/dist/plugin/theme/src/plugin/theme/utils/parse-color.d.ts +0 -2
- package/dist/plugin/theme/src/plugin/theme/utils/parse-easing-function.d.ts +0 -2
- package/dist/plugin/theme/src/types/clipboard-utils.d.ts +0 -4
- package/dist/plugin/theme/src/types/event-listener-util.d.ts +0 -11
- package/dist/plugin/theme/src/types/index.d.ts +0 -1
- package/dist/plugin/theme/src/types/listener-entry.d.ts +0 -6
- package/dist/plugin/theme/src/types/native.d.ts +0 -17
- package/dist/plugin/theme/src/types/platform.d.ts +0 -16
- package/dist/plugin/theme/src/utils/assign.d.ts +0 -1
- package/dist/plugin/theme/src/utils/clipboard-utils.d.ts +0 -4
- package/dist/plugin/theme/src/utils/compare-version.d.ts +0 -1
- package/dist/plugin/theme/src/utils/create-custom-error.d.ts +0 -6
- package/dist/plugin/theme/src/utils/create-hidden-element.d.ts +0 -1
- package/dist/plugin/theme/src/utils/dispatch-click-event.d.ts +0 -1
- package/dist/plugin/theme/src/utils/dynamic-import.d.ts +0 -1
- package/dist/plugin/theme/src/utils/event-listener-utils.d.ts +0 -3
- package/dist/plugin/theme/src/utils/fullscreen-utils.d.ts +0 -44
- package/dist/plugin/theme/src/utils/get-tag-name.d.ts +0 -1
- package/dist/plugin/theme/src/utils/get-topmost-window.d.ts +0 -1
- package/dist/plugin/theme/src/utils/is-secure-context.d.ts +0 -1
- package/dist/plugin/theme/src/utils/request.d.ts +0 -6
- package/dist/plugin/theme/src/utils/require.d.ts +0 -1
- package/dist/src/constants/platform.d.ts +0 -67
- package/dist/src/constants/user-agent.d.ts +0 -1
- package/dist/src/errors/plugin-not-extended-error.d.ts +0 -2
- package/dist/src/errors/url-open-error.d.ts +0 -2
- package/dist/src/plugin/Display/constants/index.d.ts +0 -4
- package/dist/src/plugin/Display/cores/index.d.ts +0 -3
- package/dist/src/plugin/Display/index.d.ts +0 -3
- package/dist/src/plugin/Display/types/display.d.ts +0 -13
- package/dist/src/plugin/Display/types/index.d.ts +0 -1
- package/dist/src/plugin/app/constants/app.d.ts +0 -12
- package/dist/src/plugin/app/constants/index.d.ts +0 -33
- package/dist/src/plugin/app/cores/app.d.ts +0 -3
- package/dist/src/plugin/app/cores/index.d.ts +0 -21
- package/dist/src/plugin/app/errors/url-open-error.d.ts +0 -2
- package/dist/src/plugin/app/index.d.ts +0 -3
- package/dist/src/plugin/app/types/app.d.ts +0 -132
- package/dist/src/plugin/app/types/index.d.ts +0 -1
- package/dist/src/plugin/app/utils/event-listener-utils.d.ts +0 -3
- package/dist/src/plugin/app/utils/try-open-url.d.ts +0 -16
- package/dist/src/plugin/appearance/types/appearanceInstance.d.ts +0 -9
- package/dist/src/plugin/camera/constants/camera.d.ts +0 -4
- package/dist/src/plugin/camera/constants/inedx.d.ts +0 -4
- package/dist/src/plugin/camera/cores/camera.d.ts +0 -3
- package/dist/src/plugin/camera/cores/index.d.ts +0 -3
- package/dist/src/plugin/camera/index.d.ts +0 -8
- package/dist/src/plugin/camera/types/camera.d.ts +0 -4
- package/dist/src/plugin/camera/types/index.d.ts +0 -13
- package/dist/src/plugin/camera/utils/try-open-camera.d.ts +0 -2
- package/dist/src/plugin/clipboard/constants/clipboard.d.ts +0 -4
- package/dist/src/plugin/clipboard/cores/clipboard.d.ts +0 -3
- package/dist/src/plugin/clipboard/errors/unsupported-color-error.d.ts +0 -2
- package/dist/src/plugin/clipboard/types/appearance.d.ts +0 -13
- package/dist/src/plugin/clipboard/utils/copy.d.ts +0 -1
- package/dist/src/plugin/clipboard/utils/html-string-to-plain-string.d.ts +0 -1
- package/dist/src/plugin/dimension/types/dimension.d.ts +0 -11
- package/dist/src/plugin/fullscreen/cores/fullscreen.d.ts +0 -3
- package/dist/src/plugin/fullscreen/types/fullscreen-electron.d.ts +0 -10
- package/dist/src/plugin/geolocation/constants/index.d.ts +0 -2
- package/dist/src/plugin/media/constants/media.d.ts +0 -5
- package/dist/src/plugin/media/cores/media.d.ts +0 -3
- package/dist/src/plugin/media/index.d.ts +0 -5
- package/dist/src/plugin/media/types/index.d.ts +0 -13
- package/dist/src/plugin/media/types/media.d.ts +0 -4
- package/dist/src/plugin/media/utils/try-open-camera.d.ts +0 -2
- package/dist/src/plugin/network/cores/index.d.ts +0 -15
- package/dist/src/plugin/network/index.d.ts +0 -3
- package/dist/src/plugin/network/types/index.d.ts +0 -1
- package/dist/src/plugin/network/types/network.d.ts +0 -4
- package/dist/src/plugin/open/errors/not-supported-error.d.ts +0 -2
- package/dist/src/plugin/platform/cores/platform.d.ts +0 -3
- package/dist/src/plugin/pwa/cores/index.d.ts +0 -3
- package/dist/src/plugin/pwa/index.d.ts +0 -3
- package/dist/src/plugin/pwa/types/index.d.ts +0 -1
- package/dist/src/plugin/pwa/types/pwa.d.ts +0 -8
- package/dist/src/plugin/speech/cores/index.d.ts +0 -53
- package/dist/src/plugin/speech/index.d.ts +0 -3
- package/dist/src/plugin/speech/types/index.d.ts +0 -1
- package/dist/src/plugin/speech/types/speech.d.ts +0 -9
- package/dist/src/plugin/theme/constants/theme.d.ts +0 -14
- package/dist/src/plugin/theme/cores/theme.d.ts +0 -3
- package/dist/src/plugin/theme/errors/easing-error.d.ts +0 -6
- package/dist/src/plugin/theme/errors/unsupported-color-error.d.ts +0 -2
- package/dist/src/plugin/theme/types/color.d.ts +0 -17
- package/dist/src/plugin/theme/types/easing-syntax.d.ts +0 -16
- package/dist/src/plugin/theme/utils/parse-color.d.ts +0 -2
- package/dist/src/plugin/theme/utils/parse-easing-function.d.ts +0 -2
- package/dist/src/types/clipboard-utils.d.ts +0 -4
- package/dist/src/types/event-listener-util.d.ts +0 -11
- package/dist/src/types/platform.d.ts +0 -16
- package/dist/src/utils/clipboard-utils.d.ts +0 -4
- package/dist/src/utils/create-env-observer.d.ts +0 -8
- package/dist/src/utils/dynamic-import.d.ts +0 -1
- package/dist/src/utils/event-listener-utils.d.ts +0 -3
- package/dist/src/utils/fullscreen-utils.d.ts +0 -44
- package/dist/src/utils/get-tag-name.d.ts +0 -1
- package/dist/src/utils/require.d.ts +0 -1
|
@@ -1,1806 +0,0 @@
|
|
|
1
|
-
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
3
|
-
typeof define === 'function' && define.amd ? define(factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.App = factory());
|
|
5
|
-
})(this, (function () { 'use strict';
|
|
6
|
-
|
|
7
|
-
function resolveWindowsVersion(string) {
|
|
8
|
-
if (typeof string === 'undefined')
|
|
9
|
-
return '';
|
|
10
|
-
var mapped = {
|
|
11
|
-
'4.90': 'ME',
|
|
12
|
-
'NT3.51': 'NT 3.11',
|
|
13
|
-
'NT4.0': 'NT 4.0',
|
|
14
|
-
'NT 5.0': '2000',
|
|
15
|
-
'NT 5.1': 'XP',
|
|
16
|
-
'NT 5.2': 'XP',
|
|
17
|
-
'NT 6.0': 'Vista',
|
|
18
|
-
'NT 6.1': '7',
|
|
19
|
-
'NT 6.2': '8',
|
|
20
|
-
'NT 6.3': '8.1',
|
|
21
|
-
'NT 6.4': '10',
|
|
22
|
-
'NT 10.0': '10',
|
|
23
|
-
'ARM': 'RT'
|
|
24
|
-
}[string];
|
|
25
|
-
if (typeof mapped !== 'undefined')
|
|
26
|
-
return mapped;
|
|
27
|
-
return string;
|
|
28
|
-
}
|
|
29
|
-
function resolveUnderscoreVersion(string) {
|
|
30
|
-
if (typeof string === 'undefined')
|
|
31
|
-
return '';
|
|
32
|
-
return string.replace(/_/g, '.');
|
|
33
|
-
}
|
|
34
|
-
var OS;
|
|
35
|
-
(function (OS) {
|
|
36
|
-
OS["Unknown"] = "Unknown";
|
|
37
|
-
OS["Android"] = "Android";
|
|
38
|
-
OS["iOS"] = "iOS";
|
|
39
|
-
OS["Windows"] = "Windows";
|
|
40
|
-
OS["MacOS"] = "MacOS";
|
|
41
|
-
})(OS || (OS = {}));
|
|
42
|
-
var Devices;
|
|
43
|
-
(function (Devices) {
|
|
44
|
-
Devices["Unknown"] = "Unknown";
|
|
45
|
-
Devices["Mobile"] = "Mobile";
|
|
46
|
-
Devices["Desktop"] = "Desktop";
|
|
47
|
-
})(Devices || (Devices = {}));
|
|
48
|
-
var Engines;
|
|
49
|
-
(function (Engines) {
|
|
50
|
-
Engines["Unknown"] = "Unknown";
|
|
51
|
-
Engines["EdgeHTML"] = "EdgeHTML";
|
|
52
|
-
Engines["ArkWeb"] = "ArkWeb";
|
|
53
|
-
Engines["Blink"] = "Blink";
|
|
54
|
-
Engines["Presto"] = "Presto";
|
|
55
|
-
Engines["WebKit"] = "WebKit";
|
|
56
|
-
Engines["Trident"] = "Trident";
|
|
57
|
-
Engines["NetFront"] = "NetFront";
|
|
58
|
-
Engines["KHTML"] = "KHTML";
|
|
59
|
-
Engines["Tasman"] = "Tasman";
|
|
60
|
-
Engines["Gecko"] = "Gecko";
|
|
61
|
-
})(Engines || (Engines = {}));
|
|
62
|
-
var Browsers;
|
|
63
|
-
(function (Browsers) {
|
|
64
|
-
Browsers["Unknown"] = "Unknown";
|
|
65
|
-
Browsers["Chrome"] = "Chrome";
|
|
66
|
-
Browsers["Safari"] = "Safari";
|
|
67
|
-
Browsers["Edge"] = "Edge";
|
|
68
|
-
Browsers["Firefox"] = "Firefox";
|
|
69
|
-
Browsers["Opera"] = "Opera";
|
|
70
|
-
Browsers["IE"] = "IE";
|
|
71
|
-
Browsers["SamsungInternet"] = "SamsungInternet";
|
|
72
|
-
})(Browsers || (Browsers = {}));
|
|
73
|
-
var USER_AGENT = typeof globalThis.navigator !== 'undefined' && typeof globalThis.navigator.userAgent === 'string' ? globalThis.navigator.userAgent : '';
|
|
74
|
-
var HIGH_ENTROPY_BRAND_NAME_MAP = {
|
|
75
|
-
'Google Chrome': 'Chrome',
|
|
76
|
-
'Microsoft Edge': 'Edge',
|
|
77
|
-
'Microsoft Edge WebView2': 'Edge WebView2',
|
|
78
|
-
'Android WebView': 'Chrome WebView',
|
|
79
|
-
'HeadlessChrome': 'Chrome Headless',
|
|
80
|
-
'OperaMobile': 'Opera Mobi',
|
|
81
|
-
};
|
|
82
|
-
var RTL_LANGUAGES = ['ae', 'ar', 'arc', 'bcc', 'bqi', 'ckb', 'dv', 'fa', 'glk', 'he', 'iw', 'ku', 'mzn', 'nqo', 'pnb', 'ps', 'sd', 'ug', 'ur', 'yi'];
|
|
83
|
-
var OS_RESOLVER_MAP = [
|
|
84
|
-
[/windows nt (6\.[23]); arm/i, OS.Windows, resolveWindowsVersion],
|
|
85
|
-
[/windows (?:phone|mobile|iot)(?: os)?[\/ ]?([\d.]*( se)?)/i, OS.Windows, resolveWindowsVersion],
|
|
86
|
-
[/windows[\/ ](1[01]|2000|3\.1|7|8(\.1)?|9[58]|me|server 20\d\d( r2)?|vista|xp)/i, OS.Windows, resolveWindowsVersion],
|
|
87
|
-
[/windows nt ?([\d.)]*)(?!.+xbox)/i, OS.Windows, resolveWindowsVersion],
|
|
88
|
-
[/\bwin(?=3| ?9|n)(?:nt| 9x )?([\d.;]*)/i, OS.Windows, resolveWindowsVersion],
|
|
89
|
-
[/windows ce\/?([\d.]*)/i, OS.Windows, resolveWindowsVersion],
|
|
90
|
-
[/[adehimnop]{4,7}\b(?:.*os (\w+) like mac|; opera)/i, OS.iOS, resolveUnderscoreVersion],
|
|
91
|
-
[/(?:ios;fbsv|ios(?=.+ip(?:ad|hone))|ip(?:ad|hone)(?: |.+i(?:pad)?)os)[\/ ]([\w.]+)/i, OS.iOS, resolveUnderscoreVersion],
|
|
92
|
-
[/cfnetwork\/.+darwin/i, OS.iOS, resolveUnderscoreVersion],
|
|
93
|
-
[/mac os x ?([\w. ]*)/i, OS.MacOS, resolveUnderscoreVersion],
|
|
94
|
-
[/(?:macintosh|mac_powerpc\b)(?!.+(haiku|morphos))/i, OS.MacOS, resolveUnderscoreVersion],
|
|
95
|
-
[/droid ([\w.]+)\b.+(android[- ]x86)/i, OS.Android],
|
|
96
|
-
[/android\w*[-\/.; ]?([\d.]*)/i, OS.Android],
|
|
97
|
-
];
|
|
98
|
-
var ENGINE_RESOLVER_MAP = [
|
|
99
|
-
[/windows.+ edge\/([\w.]+)/i, Engines.EdgeHTML],
|
|
100
|
-
[/arkweb\/([\w.]+)/i, Engines.ArkWeb],
|
|
101
|
-
[/webkit\/537\.36.+chrome\/(?!27)([\w.]+)/i, Engines.Blink],
|
|
102
|
-
[/presto\/([\w.]+)/i, Engines.Presto],
|
|
103
|
-
[/webkit\/([\w.]+)/i, Engines.WebKit],
|
|
104
|
-
[/trident\/([\w.]+)/i, Engines.Trident],
|
|
105
|
-
[/netfront\/([\w.]+)/i, Engines.NetFront],
|
|
106
|
-
[/khtml[\/ ]\(?([\w.]+)/i, Engines.KHTML],
|
|
107
|
-
[/tasman[\/ ]\(?([\w.]+)/i, Engines.Tasman],
|
|
108
|
-
[/rv:([\w.]{1,9})\b.+gecko/i, Engines.Gecko]
|
|
109
|
-
];
|
|
110
|
-
var BROWSER_RESOLVER_MAP = [
|
|
111
|
-
[/\b(?:crmo|crios)\/([\w.]+)/i, Browsers.Chrome],
|
|
112
|
-
[/webview.+edge\/([\w.]+)/i, Browsers.Edge],
|
|
113
|
-
[/edg(?:e|ios|a)?\/([\w.]+)/i, Browsers.Edge],
|
|
114
|
-
[/opera mini\/([-\w.]+)/i, Browsers.Opera],
|
|
115
|
-
[/opera [mobileta]{3,6}\b.+version\/([-\w.]+)/i, Browsers.Opera],
|
|
116
|
-
[/opera(?:.+version\/|[\/ ]+)([\w.]+)/i, Browsers.Opera],
|
|
117
|
-
[/opios[\/ ]+([\w.]+)/i, Browsers.Opera],
|
|
118
|
-
[/\bop(?:rg)?x\/([\w.]+)/i, Browsers.Opera],
|
|
119
|
-
[/\bopr\/([\w.]+)/i, Browsers.Opera],
|
|
120
|
-
[/iemobile(?:browser|boat|jet)[\/ ]?([\d.]*)/i, Browsers.IE],
|
|
121
|
-
[/(?:ms|\()ie ([\w.]+)/i, Browsers.IE],
|
|
122
|
-
[/trident.+rv[: ]([\w.]{1,9})\b.+like gecko/i, Browsers.IE],
|
|
123
|
-
[/\bfocus\/([\w.]+)/i, Browsers.Firefox],
|
|
124
|
-
[/\bopt\/([\w.]+)/i, Browsers.Opera],
|
|
125
|
-
[/coast\/([\w.]+)/i, Browsers.Opera],
|
|
126
|
-
[/fxios\/([\w.-]+)/i, Browsers.Firefox],
|
|
127
|
-
[/samsungbrowser\/([\w.]+)/i, Browsers.SamsungInternet],
|
|
128
|
-
[/headlesschrome(?:\/([\w.]+)| )/i, Browsers.Chrome],
|
|
129
|
-
[/wv\).+chrome\/([\w.]+).+edgw\//i, Browsers.Edge],
|
|
130
|
-
[/ wv\).+(chrome)\/([\w.]+)/i, Browsers.Chrome],
|
|
131
|
-
[/chrome\/([\w.]+) mobile/i, Browsers.Chrome],
|
|
132
|
-
[/chrome\/v?([\w.]+)/i, Browsers.Chrome],
|
|
133
|
-
[/version\/([\w.,]+) .*mobile(?:\/\w+ | ?)safari/i, Browsers.Safari],
|
|
134
|
-
[/iphone .*mobile(?:\/\w+ | ?)safari/i, Browsers.Safari],
|
|
135
|
-
[/version\/([\w.,]+) .*safari/i, Browsers.Safari],
|
|
136
|
-
[/webkit.+?(?:mobile ?safari|safari)(\/[\w.]+)/i, Browsers.Safari, '1'],
|
|
137
|
-
[/(?:mobile|tablet);.*firefox\/([\w.-]+)/i, Browsers.Firefox],
|
|
138
|
-
[/mobile vr; rv:([\w.]+)\).+firefox/i, Browsers.Firefox],
|
|
139
|
-
[/firefox\/([\w.]+)/i, Browsers.Firefox],
|
|
140
|
-
];
|
|
141
|
-
var BOT_REGEXP = [
|
|
142
|
-
/ daum[ /]/i,
|
|
143
|
-
/ deusu\//i,
|
|
144
|
-
/(?:^|[^g])news(?!sapphire)/i,
|
|
145
|
-
/(?<! (?:channel\/|google\/))google(?!(app|\/google| pixel))/i,
|
|
146
|
-
/(?<! cu)bots?(?:\b|_)/i,
|
|
147
|
-
/(?<!lib)http/i,
|
|
148
|
-
/(?<![hg]m)score/i,
|
|
149
|
-
/(?<!cam)scan/i,
|
|
150
|
-
/24x7/i,
|
|
151
|
-
/@[a-z][\w-]+\./i,
|
|
152
|
-
/\(\)/i,
|
|
153
|
-
/\.com\b/i,
|
|
154
|
-
/\b\w+\.ai/i,
|
|
155
|
-
/\bmanus-user\//i,
|
|
156
|
-
/\bort\//i,
|
|
157
|
-
/\bperl\b/i,
|
|
158
|
-
/\bsecurityheaders\b/i,
|
|
159
|
-
/\btime\//i,
|
|
160
|
-
/\|/i,
|
|
161
|
-
/^[\w .\-(?:)%]+(?:\/v?\d+(?:\.\d+)?(?:\.\d{1,10})*?)?(?:,|$)/i,
|
|
162
|
-
/^[^ ]{50,}$/i,
|
|
163
|
-
/^\d+\b/i,
|
|
164
|
-
/^\W/i,
|
|
165
|
-
/^\w*search\b/i,
|
|
166
|
-
/^\w+\/[\w()]*$/i,
|
|
167
|
-
/^\w+\/\d\.\d\s\([\w@]+\)$/i,
|
|
168
|
-
/^active/i,
|
|
169
|
-
/^ad muncher/i,
|
|
170
|
-
/^amaya/i,
|
|
171
|
-
/^apache\//i,
|
|
172
|
-
/^avsdevicesdk\//i,
|
|
173
|
-
/^azure/i,
|
|
174
|
-
/^biglotron/i,
|
|
175
|
-
/^bot/i,
|
|
176
|
-
/^bw\//i,
|
|
177
|
-
/^clamav[ /]/i,
|
|
178
|
-
/^client\//i,
|
|
179
|
-
/^cobweb\//i,
|
|
180
|
-
/^custom/i,
|
|
181
|
-
/^ddg[_-]android/i,
|
|
182
|
-
/^discourse/i,
|
|
183
|
-
/^dispatch\/\d/i,
|
|
184
|
-
/^downcast\//i,
|
|
185
|
-
/^duckduckgo/i,
|
|
186
|
-
/^email/i,
|
|
187
|
-
/^facebook/i,
|
|
188
|
-
/^getright\//i,
|
|
189
|
-
/^gozilla\//i,
|
|
190
|
-
/^hobbit/i,
|
|
191
|
-
/^hotzonu/i,
|
|
192
|
-
/^hwcdn\//i,
|
|
193
|
-
/^igetter\//i,
|
|
194
|
-
/^jeode\//i,
|
|
195
|
-
/^jetty\//i,
|
|
196
|
-
/^jigsaw/i,
|
|
197
|
-
/^microsoft bits/i,
|
|
198
|
-
/^movabletype/i,
|
|
199
|
-
/^mozilla\/\d\.\d\s[\w.-]+$/i,
|
|
200
|
-
/^mozilla\/\d\.\d\s\(compatible;?(?:\s[\w-.]+\/\d+\.\d+)?\)$/i,
|
|
201
|
-
/^navermailapp/i,
|
|
202
|
-
/^netsurf/i,
|
|
203
|
-
/^offline/i,
|
|
204
|
-
/^openai\//i,
|
|
205
|
-
/^owler/i,
|
|
206
|
-
/^php/i,
|
|
207
|
-
/^postman/i,
|
|
208
|
-
/^python/i,
|
|
209
|
-
/^rank/i,
|
|
210
|
-
/^read/i,
|
|
211
|
-
/^reed/i,
|
|
212
|
-
/^rest/i,
|
|
213
|
-
/^rss/i,
|
|
214
|
-
/^snapchat/i,
|
|
215
|
-
/^space bison/i,
|
|
216
|
-
/^svn/i,
|
|
217
|
-
/^swcd /i,
|
|
218
|
-
/^taringa/i,
|
|
219
|
-
/^thumbor\//i,
|
|
220
|
-
/^track/i,
|
|
221
|
-
/^w3c/i,
|
|
222
|
-
/^webbandit\//i,
|
|
223
|
-
/^webcopier/i,
|
|
224
|
-
/^wget/i,
|
|
225
|
-
/^whatsapp/i,
|
|
226
|
-
/^wordpress/i,
|
|
227
|
-
/^xenu link sleuth/i,
|
|
228
|
-
/^yahoo/i,
|
|
229
|
-
/^yandex/i,
|
|
230
|
-
/^zdm\/\d/i,
|
|
231
|
-
/^zoom marketplace\//i,
|
|
232
|
-
/advisor/i,
|
|
233
|
-
/agent\b/i,
|
|
234
|
-
/analyzer/i,
|
|
235
|
-
/archive/i,
|
|
236
|
-
/ask jeeves\/teoma/i,
|
|
237
|
-
/audit/i,
|
|
238
|
-
/bit\.ly\//i,
|
|
239
|
-
/bluecoat drtr/i,
|
|
240
|
-
/browsex/i,
|
|
241
|
-
/burpcollaborator/i,
|
|
242
|
-
/capture/i,
|
|
243
|
-
/catch/i,
|
|
244
|
-
/check\b/i,
|
|
245
|
-
/checker/i,
|
|
246
|
-
/chrome-lighthouse/i,
|
|
247
|
-
/chromeframe/i,
|
|
248
|
-
/classifier/i,
|
|
249
|
-
/cloudflare/i,
|
|
250
|
-
/convertify/i,
|
|
251
|
-
/crawl/i,
|
|
252
|
-
/cypress\//i,
|
|
253
|
-
/dareboost/i,
|
|
254
|
-
/datanyze/i,
|
|
255
|
-
/dejaclick/i,
|
|
256
|
-
/detect/i,
|
|
257
|
-
/dmbrowser/i,
|
|
258
|
-
/download/i,
|
|
259
|
-
/exaleadcloudview/i,
|
|
260
|
-
/feed/i,
|
|
261
|
-
/fetcher/i,
|
|
262
|
-
/firephp/i,
|
|
263
|
-
/functionize/i,
|
|
264
|
-
/grab/i,
|
|
265
|
-
/headless/i,
|
|
266
|
-
/httrack/i,
|
|
267
|
-
/hubspot marketing grader/i,
|
|
268
|
-
/ibisbrowser/i,
|
|
269
|
-
/infrawatch/i,
|
|
270
|
-
/insight/i,
|
|
271
|
-
/inspect/i,
|
|
272
|
-
/iplabel/i,
|
|
273
|
-
/java(?!;)/i,
|
|
274
|
-
/library/i,
|
|
275
|
-
/linkcheck/i,
|
|
276
|
-
/mail\.ru\//i,
|
|
277
|
-
/manager/i,
|
|
278
|
-
/measure/i,
|
|
279
|
-
/neustar wpm/i,
|
|
280
|
-
/node\b/i,
|
|
281
|
-
/nutch/i,
|
|
282
|
-
/offbyone/i,
|
|
283
|
-
/onetrust/i,
|
|
284
|
-
/optimize/i,
|
|
285
|
-
/pageburst/i,
|
|
286
|
-
/pagespeed/i,
|
|
287
|
-
/parser/i,
|
|
288
|
-
/phantomjs/i,
|
|
289
|
-
/pingdom/i,
|
|
290
|
-
/powermarks/i,
|
|
291
|
-
/preview/i,
|
|
292
|
-
/proxy/i,
|
|
293
|
-
/ptst[ /]\d/i,
|
|
294
|
-
/retriever/i,
|
|
295
|
-
/rexx;/i,
|
|
296
|
-
/rigor/i,
|
|
297
|
-
/rss\b/i,
|
|
298
|
-
/scrape/i,
|
|
299
|
-
/server/i,
|
|
300
|
-
/sogou/i,
|
|
301
|
-
/sparkler\//i,
|
|
302
|
-
/speedcurve/i,
|
|
303
|
-
/spider/i,
|
|
304
|
-
/splash/i,
|
|
305
|
-
/statuscake/i,
|
|
306
|
-
/supercleaner/i,
|
|
307
|
-
/synapse/i,
|
|
308
|
-
/synthetic/i,
|
|
309
|
-
/tools/i,
|
|
310
|
-
/torrent/i,
|
|
311
|
-
/transcoder/i,
|
|
312
|
-
/url/i,
|
|
313
|
-
/validator/i,
|
|
314
|
-
/virtuoso/i,
|
|
315
|
-
/wappalyzer/i,
|
|
316
|
-
/webglance/i,
|
|
317
|
-
/webkit2png/i,
|
|
318
|
-
/whatcms\//i,
|
|
319
|
-
/xtate\//i
|
|
320
|
-
];
|
|
321
|
-
|
|
322
|
-
var _a$1, _b, _c, _d, _e;
|
|
323
|
-
var AppOpenState;
|
|
324
|
-
(function (AppOpenState) {
|
|
325
|
-
AppOpenState[AppOpenState["Scheme"] = 0] = "Scheme";
|
|
326
|
-
AppOpenState[AppOpenState["Universal"] = 1] = "Universal";
|
|
327
|
-
AppOpenState[AppOpenState["Intent"] = 2] = "Intent";
|
|
328
|
-
AppOpenState[AppOpenState["Fallback"] = 3] = "Fallback";
|
|
329
|
-
AppOpenState[AppOpenState["Store"] = 4] = "Store";
|
|
330
|
-
})(AppOpenState || (AppOpenState = {}));
|
|
331
|
-
var MessengerType;
|
|
332
|
-
(function (MessengerType) {
|
|
333
|
-
MessengerType["Telephone"] = "telephone";
|
|
334
|
-
MessengerType["Message"] = "message";
|
|
335
|
-
MessengerType["Mail"] = "mail";
|
|
336
|
-
})(MessengerType || (MessengerType = {}));
|
|
337
|
-
var SettingType;
|
|
338
|
-
(function (SettingType) {
|
|
339
|
-
SettingType["General"] = "general";
|
|
340
|
-
SettingType["Network"] = "network";
|
|
341
|
-
SettingType["Display"] = "display";
|
|
342
|
-
SettingType["Appearance"] = "appearance";
|
|
343
|
-
SettingType["Accessibility"] = "accessibility";
|
|
344
|
-
SettingType["Battery"] = "battery";
|
|
345
|
-
SettingType["Datetime"] = "datetime";
|
|
346
|
-
SettingType["Language"] = "language";
|
|
347
|
-
SettingType["Accounts"] = "accounts";
|
|
348
|
-
SettingType["Storage"] = "storage";
|
|
349
|
-
})(SettingType || (SettingType = {}));
|
|
350
|
-
var SETTING_URL = (_a$1 = {},
|
|
351
|
-
_a$1[OS.Android] = (_b = {},
|
|
352
|
-
_b[SettingType.General] = 'intent:#Intent;action=android.settings.SETTINGS;end',
|
|
353
|
-
_b[SettingType.Network] = 'intent:#Intent;action=android.settings.WIFI_SETTINGS;end',
|
|
354
|
-
_b[SettingType.Display] = 'intent:#Intent;action=android.settings.DISPLAY_SETTINGS;end',
|
|
355
|
-
_b[SettingType.Appearance] = 'intent:#Intent;action=android.settings.DISPLAY_SETTINGS;end',
|
|
356
|
-
_b[SettingType.Accessibility] = 'intent:#Intent;action=android.settings.ACCESSIBILITY_SETTINGS;end',
|
|
357
|
-
_b[SettingType.Battery] = 'intent:#Intent;action=android.settings.BATTERY_SAVER_SETTINGS;end',
|
|
358
|
-
_b[SettingType.Datetime] = 'intent:#Intent;action=android.settings.DATE_SETTINGS;end',
|
|
359
|
-
_b[SettingType.Language] = 'intent:#Intent;action=android.settings.LOCALE_SETTINGS;end',
|
|
360
|
-
_b[SettingType.Accounts] = 'intent:#Intent;action=android.settings.SYNC_SETTINGS;end',
|
|
361
|
-
_b[SettingType.Storage] = 'intent:#Intent;action=android.settings.INTERNAL_STORAGE_SETTINGS;end',
|
|
362
|
-
_b),
|
|
363
|
-
_a$1[OS.Windows] = (_c = {},
|
|
364
|
-
_c[SettingType.General] = 'ms-settings:system',
|
|
365
|
-
_c[SettingType.Network] = 'ms-settings:network',
|
|
366
|
-
_c[SettingType.Display] = 'ms-settings:display',
|
|
367
|
-
_c[SettingType.Appearance] = 'ms-settings:colors',
|
|
368
|
-
_c[SettingType.Accessibility] = 'ms-settings:easeofaccess',
|
|
369
|
-
_c[SettingType.Battery] = 'ms-settings:batterysaver',
|
|
370
|
-
_c[SettingType.Datetime] = 'ms-settings:dateandtime',
|
|
371
|
-
_c[SettingType.Language] = 'ms-settings:regionlanguage',
|
|
372
|
-
_c[SettingType.Accounts] = 'ms-settings:emailandaccounts',
|
|
373
|
-
_c[SettingType.Storage] = 'ms-settings:storagesense',
|
|
374
|
-
_c),
|
|
375
|
-
_a$1[OS.MacOS] = (_d = {},
|
|
376
|
-
_d[SettingType.General] = 'x-apple.systempreferences:',
|
|
377
|
-
_d[SettingType.Network] = 'x-apple.systempreferences:com.apple.preference.network',
|
|
378
|
-
_d[SettingType.Display] = 'x-apple.systempreferences:com.apple.preference.displays',
|
|
379
|
-
_d[SettingType.Appearance] = 'x-apple.systempreferences:com.apple.preference.general',
|
|
380
|
-
_d[SettingType.Accessibility] = 'x-apple.systempreferences:com.apple.preference.universalaccess',
|
|
381
|
-
_d[SettingType.Battery] = 'x-apple.systempreferences:com.apple.preference.energysaver',
|
|
382
|
-
_d[SettingType.Datetime] = 'x-apple.systempreferences:com.apple.preference.datetime',
|
|
383
|
-
_d[SettingType.Language] = 'x-apple.systempreferences:com.apple.Localization',
|
|
384
|
-
_d[SettingType.Accounts] = 'x-apple.systempreferences:com.apple.preferences.internetaccounts',
|
|
385
|
-
_d[SettingType.Storage] = 'x-apple.systempreferences:',
|
|
386
|
-
_d),
|
|
387
|
-
_a$1['MacOS13+'] = (_e = {},
|
|
388
|
-
_e[SettingType.General] = 'x-apple.systempreferences:com.apple.General-Settings.extension',
|
|
389
|
-
_e[SettingType.Network] = 'x-apple.systempreferences:com.apple.Network-Settings.extension',
|
|
390
|
-
_e[SettingType.Display] = 'x-apple.systempreferences:com.apple.Displays-Settings.extension',
|
|
391
|
-
_e[SettingType.Appearance] = 'x-apple.systempreferences:com.apple.Appearance-Settings.extension',
|
|
392
|
-
_e[SettingType.Accessibility] = 'x-apple.systempreferences:com.apple.Accessibility-Settings.extension',
|
|
393
|
-
_e[SettingType.Battery] = 'x-apple.systempreferences:com.apple.Battery-Settings.extension',
|
|
394
|
-
_e[SettingType.Datetime] = 'x-apple.systempreferences:com.apple.Date-Time-Settings.extension',
|
|
395
|
-
_e[SettingType.Language] = 'x-apple.systempreferences:com.apple.Localization-Settings.extension',
|
|
396
|
-
_e[SettingType.Accounts] = 'x-apple.systempreferences:com.apple.Internet-Accounts-Settings.extension',
|
|
397
|
-
_e[SettingType.Storage] = 'x-apple.systempreferences:com.apple.settings.Storage',
|
|
398
|
-
_e),
|
|
399
|
-
_a$1);
|
|
400
|
-
|
|
401
|
-
function createCustomError(name, Base) {
|
|
402
|
-
if (Base === void 0) { Base = Error; }
|
|
403
|
-
function CustomError(message) {
|
|
404
|
-
if (!(this instanceof CustomError))
|
|
405
|
-
return new CustomError(message);
|
|
406
|
-
var error = new Base(message || '');
|
|
407
|
-
if (typeof Object.setPrototypeOf === 'function')
|
|
408
|
-
Object.setPrototypeOf(error, CustomError.prototype);
|
|
409
|
-
else
|
|
410
|
-
error.__proto__ = CustomError.prototype;
|
|
411
|
-
error.name = name;
|
|
412
|
-
if (typeof message !== 'undefined')
|
|
413
|
-
error.message = message;
|
|
414
|
-
if (typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
415
|
-
try {
|
|
416
|
-
Object.defineProperty(error, Symbol.toStringTag, {
|
|
417
|
-
value: name,
|
|
418
|
-
writable: false,
|
|
419
|
-
enumerable: false,
|
|
420
|
-
configurable: true
|
|
421
|
-
});
|
|
422
|
-
}
|
|
423
|
-
catch (_) {
|
|
424
|
-
}
|
|
425
|
-
}
|
|
426
|
-
if (typeof Error.captureStackTrace === 'function') {
|
|
427
|
-
Error.captureStackTrace(error, CustomError);
|
|
428
|
-
}
|
|
429
|
-
else if (Base.captureStackTrace && typeof Base.captureStackTrace === 'function') {
|
|
430
|
-
Base.captureStackTrace(error, CustomError);
|
|
431
|
-
}
|
|
432
|
-
else {
|
|
433
|
-
try {
|
|
434
|
-
var tempError = new Base();
|
|
435
|
-
if (tempError.stack)
|
|
436
|
-
error.stack = tempError.stack;
|
|
437
|
-
}
|
|
438
|
-
catch (_) {
|
|
439
|
-
}
|
|
440
|
-
}
|
|
441
|
-
return error;
|
|
442
|
-
}
|
|
443
|
-
CustomError.prototype = Object.create(Base.prototype, {
|
|
444
|
-
constructor: {
|
|
445
|
-
value: CustomError,
|
|
446
|
-
writable: true,
|
|
447
|
-
enumerable: false,
|
|
448
|
-
configurable: true
|
|
449
|
-
}
|
|
450
|
-
});
|
|
451
|
-
try {
|
|
452
|
-
Object.defineProperty(CustomError.prototype, 'name', {
|
|
453
|
-
value: name,
|
|
454
|
-
writable: true,
|
|
455
|
-
enumerable: false,
|
|
456
|
-
configurable: true
|
|
457
|
-
});
|
|
458
|
-
}
|
|
459
|
-
catch (_) {
|
|
460
|
-
try {
|
|
461
|
-
CustomError.prototype.name = name;
|
|
462
|
-
}
|
|
463
|
-
catch (_) {
|
|
464
|
-
}
|
|
465
|
-
}
|
|
466
|
-
try {
|
|
467
|
-
Object.defineProperty(CustomError, 'name', {
|
|
468
|
-
value: name,
|
|
469
|
-
writable: false,
|
|
470
|
-
enumerable: false,
|
|
471
|
-
configurable: true
|
|
472
|
-
});
|
|
473
|
-
}
|
|
474
|
-
catch (_) {
|
|
475
|
-
}
|
|
476
|
-
return CustomError;
|
|
477
|
-
}
|
|
478
|
-
|
|
479
|
-
var URLOpenError = createCustomError('URLOpenError');
|
|
480
|
-
|
|
481
|
-
function compareVersion(lhs, rhs) {
|
|
482
|
-
var pa = lhs.split('.');
|
|
483
|
-
var pb = rhs.split('.');
|
|
484
|
-
var length = Math.max(pa.length, pb.length);
|
|
485
|
-
for (var i = 0; i < length; i++) {
|
|
486
|
-
var a = void 0;
|
|
487
|
-
var b = void 0;
|
|
488
|
-
if (i < pa.length)
|
|
489
|
-
a = parseInt(pa[i], 10);
|
|
490
|
-
else
|
|
491
|
-
a = 0;
|
|
492
|
-
if (i < pb.length)
|
|
493
|
-
b = parseInt(pb[i], 10);
|
|
494
|
-
else
|
|
495
|
-
b = 0;
|
|
496
|
-
if (a > b)
|
|
497
|
-
return 1;
|
|
498
|
-
if (a < b)
|
|
499
|
-
return -1;
|
|
500
|
-
}
|
|
501
|
-
return 0;
|
|
502
|
-
}
|
|
503
|
-
|
|
504
|
-
function getTopmostWindow() {
|
|
505
|
-
try {
|
|
506
|
-
if (globalThis.top && globalThis.top !== window) {
|
|
507
|
-
void globalThis.top.location.href;
|
|
508
|
-
return globalThis.top;
|
|
509
|
-
}
|
|
510
|
-
}
|
|
511
|
-
catch (_) {
|
|
512
|
-
}
|
|
513
|
-
return window;
|
|
514
|
-
}
|
|
515
|
-
|
|
516
|
-
function createHiddenElement(tagName, focusable) {
|
|
517
|
-
if (focusable === void 0) { focusable = true; }
|
|
518
|
-
if (typeof globalThis.document === 'undefined')
|
|
519
|
-
return undefined;
|
|
520
|
-
var element = globalThis.document.createElement(tagName);
|
|
521
|
-
if ('width' in element)
|
|
522
|
-
element.width = '0';
|
|
523
|
-
if ('height' in element)
|
|
524
|
-
element.height = '0';
|
|
525
|
-
if ('border' in element)
|
|
526
|
-
element.border = '0';
|
|
527
|
-
if ('frameBorder' in element)
|
|
528
|
-
element.frameBorder = '0';
|
|
529
|
-
if ('scrolling' in element)
|
|
530
|
-
element.scrolling = 'no';
|
|
531
|
-
if ('cellPadding' in element)
|
|
532
|
-
element.cellPadding = '0';
|
|
533
|
-
if ('cellSpacing' in element)
|
|
534
|
-
element.cellSpacing = '0';
|
|
535
|
-
if ('frame' in element)
|
|
536
|
-
element.frame = 'void';
|
|
537
|
-
if ('rules' in element)
|
|
538
|
-
element.rules = 'none';
|
|
539
|
-
if ('noWrap' in element)
|
|
540
|
-
element.noWrap = true;
|
|
541
|
-
element.tabIndex = -1;
|
|
542
|
-
element.setAttribute('role', 'presentation');
|
|
543
|
-
if (focusable) {
|
|
544
|
-
element.style.width = '1px';
|
|
545
|
-
element.style.height = '1px';
|
|
546
|
-
}
|
|
547
|
-
else {
|
|
548
|
-
element.setAttribute('aria-hidden', 'true');
|
|
549
|
-
element.style.width = '0';
|
|
550
|
-
element.style.height = '0';
|
|
551
|
-
element.style.zIndex = '-9999';
|
|
552
|
-
element.style.display = 'none';
|
|
553
|
-
element.style.visibility = 'hidden';
|
|
554
|
-
element.style.pointerEvents = 'none';
|
|
555
|
-
}
|
|
556
|
-
element.style.position = 'absolute';
|
|
557
|
-
element.style.top = '0';
|
|
558
|
-
element.style.left = '0';
|
|
559
|
-
element.style.padding = '0';
|
|
560
|
-
element.style.margin = '0';
|
|
561
|
-
element.style.border = 'none';
|
|
562
|
-
element.style.outline = 'none';
|
|
563
|
-
element.style.clip = 'rect(1px, 1px, 1px, 1px)';
|
|
564
|
-
element.style.clipPath = 'inset(50%)';
|
|
565
|
-
element.style.overflow = 'hidden';
|
|
566
|
-
element.style.whiteSpace = 'nowrap';
|
|
567
|
-
return element;
|
|
568
|
-
}
|
|
569
|
-
|
|
570
|
-
function dispatchClickEvent(element, view) {
|
|
571
|
-
if (view === void 0) { view = window; }
|
|
572
|
-
var fake;
|
|
573
|
-
try {
|
|
574
|
-
fake = new MouseEvent('click', {
|
|
575
|
-
bubbles: true,
|
|
576
|
-
cancelable: true,
|
|
577
|
-
view: view
|
|
578
|
-
});
|
|
579
|
-
}
|
|
580
|
-
catch (_) {
|
|
581
|
-
fake = globalThis.document.createEvent('MouseEvents');
|
|
582
|
-
fake.initMouseEvent('click', true, true, view, 0, 0, 0, 0, 0, false, false, false, false, 0, null);
|
|
583
|
-
}
|
|
584
|
-
element.dispatchEvent(fake);
|
|
585
|
-
}
|
|
586
|
-
|
|
587
|
-
function capitalize(_) {
|
|
588
|
-
var groups = [];
|
|
589
|
-
for (var _i = 1; _i < arguments.length; _i++) {
|
|
590
|
-
groups[_i - 1] = arguments[_i];
|
|
591
|
-
}
|
|
592
|
-
var result = '';
|
|
593
|
-
for (var i = 0; i < groups.length - 2; i++) {
|
|
594
|
-
var arg = groups[i];
|
|
595
|
-
if (typeof arg !== 'undefined')
|
|
596
|
-
result = result + arg.charAt(0).toUpperCase() + arg.slice(1);
|
|
597
|
-
}
|
|
598
|
-
return result;
|
|
599
|
-
}
|
|
600
|
-
function preventDefaultPolyfill() {
|
|
601
|
-
this.returnValue = false;
|
|
602
|
-
}
|
|
603
|
-
function stopPropagationPolyfill() {
|
|
604
|
-
this.cancelBubble = true;
|
|
605
|
-
}
|
|
606
|
-
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;
|
|
607
|
-
var VENDORS = ['', 'webkit', 'moz', 'ms', 'MS', 'o', 'O'];
|
|
608
|
-
var LEGACY_TYPE_MAP = {
|
|
609
|
-
'wheel': ['wheel', 'mousewheel', 'DOMMouseScroll'],
|
|
610
|
-
'focus': ['focus', 'focusin'],
|
|
611
|
-
'blur': ['blur', 'focusout'],
|
|
612
|
-
'beforeinput': ['beforeinput', 'textInput'],
|
|
613
|
-
};
|
|
614
|
-
var EventListenerUtils = {
|
|
615
|
-
useStd: typeof globalThis.document !== 'undefined' && typeof globalThis.document.addEventListener === 'function',
|
|
616
|
-
add: function (target, eventListenerOptions) {
|
|
617
|
-
if (eventListenerOptions === void 0) { eventListenerOptions = { callback: null, options: false }; }
|
|
618
|
-
var callback = eventListenerOptions.callback;
|
|
619
|
-
if (typeof target === 'undefined' || callback === null)
|
|
620
|
-
return;
|
|
621
|
-
var type = EventListenerUtils.withVender(target, eventListenerOptions.type);
|
|
622
|
-
var options = eventListenerOptions.options;
|
|
623
|
-
if (typeof target.addEventListener === 'function') {
|
|
624
|
-
try {
|
|
625
|
-
return target.addEventListener(type, callback, options);
|
|
626
|
-
}
|
|
627
|
-
catch (_) {
|
|
628
|
-
}
|
|
629
|
-
}
|
|
630
|
-
if (typeof target.addListener === 'function') {
|
|
631
|
-
if (typeof target.matches === 'boolean') {
|
|
632
|
-
try {
|
|
633
|
-
return target.addListener(callback);
|
|
634
|
-
}
|
|
635
|
-
catch (_) {
|
|
636
|
-
}
|
|
637
|
-
}
|
|
638
|
-
else {
|
|
639
|
-
try {
|
|
640
|
-
return target.addListener(type, callback);
|
|
641
|
-
}
|
|
642
|
-
catch (_) {
|
|
643
|
-
}
|
|
644
|
-
}
|
|
645
|
-
}
|
|
646
|
-
function wrapper(event) {
|
|
647
|
-
if (typeof event === 'undefined')
|
|
648
|
-
event = globalThis.event;
|
|
649
|
-
if (typeof event === 'undefined')
|
|
650
|
-
return;
|
|
651
|
-
event.currentTarget = target;
|
|
652
|
-
if (typeof event.preventDefault !== 'function')
|
|
653
|
-
event.preventDefault = preventDefaultPolyfill;
|
|
654
|
-
if (typeof event.stopPropagation !== 'function')
|
|
655
|
-
event.stopPropagation = stopPropagationPolyfill;
|
|
656
|
-
if (typeof callback === 'function')
|
|
657
|
-
callback.call(target, event);
|
|
658
|
-
else if (callback && typeof callback.handleEvent === 'function')
|
|
659
|
-
callback.handleEvent.call(target, event);
|
|
660
|
-
}
|
|
661
|
-
if (typeof target.attachEvent === 'function') {
|
|
662
|
-
if (callback.__ieWrapper)
|
|
663
|
-
return target.attachEvent('on' + type, callback.__ieWrapper);
|
|
664
|
-
return target.attachEvent('on' + type, callback.__ieWrapper = wrapper);
|
|
665
|
-
}
|
|
666
|
-
},
|
|
667
|
-
remove: function (target, eventListenerOptions) {
|
|
668
|
-
if (eventListenerOptions === void 0) { eventListenerOptions = { callback: null, options: false }; }
|
|
669
|
-
var callback = eventListenerOptions.callback;
|
|
670
|
-
if (typeof target === 'undefined' || callback === null)
|
|
671
|
-
return;
|
|
672
|
-
var type = EventListenerUtils.withVender(target, eventListenerOptions.type);
|
|
673
|
-
var options = eventListenerOptions.options;
|
|
674
|
-
if (typeof target.removeEventListener === 'function') {
|
|
675
|
-
try {
|
|
676
|
-
return target.removeEventListener(type, callback, options);
|
|
677
|
-
}
|
|
678
|
-
catch (_) {
|
|
679
|
-
}
|
|
680
|
-
}
|
|
681
|
-
if (typeof target.removeListener === 'function') {
|
|
682
|
-
if (typeof target.matches === 'boolean') {
|
|
683
|
-
try {
|
|
684
|
-
return target.removeListener(callback);
|
|
685
|
-
}
|
|
686
|
-
catch (_) {
|
|
687
|
-
}
|
|
688
|
-
}
|
|
689
|
-
else {
|
|
690
|
-
try {
|
|
691
|
-
return target.removeListener(type, callback);
|
|
692
|
-
}
|
|
693
|
-
catch (_) {
|
|
694
|
-
}
|
|
695
|
-
}
|
|
696
|
-
}
|
|
697
|
-
if (typeof target.detachEvent === 'function') {
|
|
698
|
-
var wrapper = callback.__ieWrapper;
|
|
699
|
-
if (typeof wrapper !== 'undefined') {
|
|
700
|
-
target.detachEvent('on' + type, wrapper);
|
|
701
|
-
delete callback.__ieWrapper;
|
|
702
|
-
}
|
|
703
|
-
return;
|
|
704
|
-
}
|
|
705
|
-
},
|
|
706
|
-
withVender: function (target, type) {
|
|
707
|
-
if (typeof type === 'undefined')
|
|
708
|
-
return '';
|
|
709
|
-
if (target === globalThis.document && ['deviceready', 'pause', 'resume', 'backbutton', 'menubutton', 'searchbutton', 'startcallbutton', 'endcallbutton', 'volumedownbutton', 'volumeupbutton', 'activated', 'cordovacallbackerror'].indexOf(type) > -1)
|
|
710
|
-
return type;
|
|
711
|
-
if (typeof target.webkitEnterFullscreen !== 'undefined' && ['webkitbeginfullscreen', 'webkitendfullscreen', 'webkitpresentationmodechanged'].indexOf(type) > -1)
|
|
712
|
-
return type;
|
|
713
|
-
var types;
|
|
714
|
-
if (type in LEGACY_TYPE_MAP)
|
|
715
|
-
types = LEGACY_TYPE_MAP[type];
|
|
716
|
-
else if (EVENT_TYPE_REGEXP.test(type))
|
|
717
|
-
types = [type, type.replace(EVENT_TYPE_REGEXP, capitalize)];
|
|
718
|
-
else
|
|
719
|
-
types = [type];
|
|
720
|
-
for (var i = 0; i < VENDORS.length; i++) {
|
|
721
|
-
for (var j = 0; j < types.length; j++) {
|
|
722
|
-
var name_1 = VENDORS[i] + types[j];
|
|
723
|
-
if (typeof target['on' + name_1] !== 'undefined')
|
|
724
|
-
return name_1;
|
|
725
|
-
}
|
|
726
|
-
}
|
|
727
|
-
return '';
|
|
728
|
-
}
|
|
729
|
-
};
|
|
730
|
-
|
|
731
|
-
var userAgent = USER_AGENT;
|
|
732
|
-
var Platform = {
|
|
733
|
-
get os() {
|
|
734
|
-
return getOS();
|
|
735
|
-
},
|
|
736
|
-
get engine() {
|
|
737
|
-
return getEngine();
|
|
738
|
-
},
|
|
739
|
-
get browser() {
|
|
740
|
-
return getBrowser();
|
|
741
|
-
},
|
|
742
|
-
get userAgent() {
|
|
743
|
-
return userAgent;
|
|
744
|
-
},
|
|
745
|
-
set userAgent(value) {
|
|
746
|
-
userAgent = value;
|
|
747
|
-
},
|
|
748
|
-
get locale() {
|
|
749
|
-
return getLocale();
|
|
750
|
-
},
|
|
751
|
-
get device() {
|
|
752
|
-
return getDevice();
|
|
753
|
-
},
|
|
754
|
-
get renderer() {
|
|
755
|
-
return getRenderer();
|
|
756
|
-
},
|
|
757
|
-
get isWebview() {
|
|
758
|
-
return getIsWebview();
|
|
759
|
-
},
|
|
760
|
-
get isNode() {
|
|
761
|
-
return getIsNode();
|
|
762
|
-
},
|
|
763
|
-
get isStandalone() {
|
|
764
|
-
return getIsStandalone();
|
|
765
|
-
},
|
|
766
|
-
get isBot() {
|
|
767
|
-
return getIsBot();
|
|
768
|
-
},
|
|
769
|
-
Constants: {
|
|
770
|
-
OS: OS,
|
|
771
|
-
Engines: Engines,
|
|
772
|
-
Browsers: Browsers,
|
|
773
|
-
Devices: Devices,
|
|
774
|
-
},
|
|
775
|
-
Errors: {},
|
|
776
|
-
};
|
|
777
|
-
var parsedFromHighEntropyValuesOS = {};
|
|
778
|
-
var parsedFromHighEntropyValuesBrowser = {};
|
|
779
|
-
var parsedFromHighEntropyValuesEngine = {};
|
|
780
|
-
var parsedFromHighEntropyValuesDevice = null;
|
|
781
|
-
function resolveVersion(string, resolver) {
|
|
782
|
-
if (typeof resolver === 'function')
|
|
783
|
-
return resolver(string);
|
|
784
|
-
if (typeof resolver === 'string')
|
|
785
|
-
return resolver;
|
|
786
|
-
if (typeof string === 'undefined')
|
|
787
|
-
return '';
|
|
788
|
-
return string;
|
|
789
|
-
}
|
|
790
|
-
function normalizeBrand(entry) {
|
|
791
|
-
if (entry === null || typeof entry === 'undefined')
|
|
792
|
-
return { brand: '', version: '' };
|
|
793
|
-
if (typeof entry === 'string')
|
|
794
|
-
return { brand: entry, version: '' };
|
|
795
|
-
return { brand: entry.brand, version: entry.version };
|
|
796
|
-
}
|
|
797
|
-
function normalizeLocale(locale) {
|
|
798
|
-
if (locale === null || typeof locale === 'undefined')
|
|
799
|
-
return locale;
|
|
800
|
-
if (locale.length === 0)
|
|
801
|
-
return null;
|
|
802
|
-
locale = locale.replace(/_/g, '-');
|
|
803
|
-
if (locale === 'C' || locale.toLowerCase() === 'posix')
|
|
804
|
-
return 'en-US';
|
|
805
|
-
if (locale.indexOf('.') !== -1)
|
|
806
|
-
return normalizeLocale(locale.split('.')[0]);
|
|
807
|
-
if (locale.indexOf('@') !== -1)
|
|
808
|
-
return normalizeLocale(locale.split('@')[0]);
|
|
809
|
-
var parts = locale.split('-');
|
|
810
|
-
if (parts.length === 0)
|
|
811
|
-
return null;
|
|
812
|
-
parts[0] = parts[0].toLowerCase();
|
|
813
|
-
if (parts.length > 1 && parts[1].length === 2)
|
|
814
|
-
parts[1] = parts[1].toUpperCase();
|
|
815
|
-
if (parts.length > 2 && parts[1].length === 4)
|
|
816
|
-
parts[1] = parts[1].charAt(0).toUpperCase() + parts[1].slice(1).toLowerCase();
|
|
817
|
-
return parts.join('-');
|
|
818
|
-
}
|
|
819
|
-
function getRenderer() {
|
|
820
|
-
if (typeof globalThis.document === 'undefined')
|
|
821
|
-
return '';
|
|
822
|
-
var canvas = globalThis.document.createElement('canvas');
|
|
823
|
-
if (typeof canvas.getContext !== 'function')
|
|
824
|
-
return '';
|
|
825
|
-
var context = canvas.getContext('webgl2') || canvas.getContext('experimental-webgl') || canvas.getContext('webgl');
|
|
826
|
-
if (context === null)
|
|
827
|
-
return '';
|
|
828
|
-
if (context instanceof WebGLRenderingContext || 'getParameter' in context && typeof context.getParameter === 'function') {
|
|
829
|
-
var extension = context.getExtension('WEBGL_debug_renderer_info');
|
|
830
|
-
if (extension === null)
|
|
831
|
-
return context.getParameter(context.RENDERER);
|
|
832
|
-
else
|
|
833
|
-
return context.getParameter(extension.UNMASKED_RENDERER_WEBGL);
|
|
834
|
-
}
|
|
835
|
-
else {
|
|
836
|
-
return '';
|
|
837
|
-
}
|
|
838
|
-
}
|
|
839
|
-
function getLocale() {
|
|
840
|
-
var locale = {
|
|
841
|
-
language: null,
|
|
842
|
-
languages: [],
|
|
843
|
-
timezone: null,
|
|
844
|
-
timezoneOffset: 0,
|
|
845
|
-
isRTL: false,
|
|
846
|
-
};
|
|
847
|
-
var isRTL = null;
|
|
848
|
-
function addLanguages(language) {
|
|
849
|
-
for (var i = 0; i < language.length; i++)
|
|
850
|
-
addLanguage(language[i]);
|
|
851
|
-
}
|
|
852
|
-
function addLanguage(language) {
|
|
853
|
-
language = normalizeLocale(language);
|
|
854
|
-
if (typeof language === "string" && locale.languages.indexOf(language) === -1) {
|
|
855
|
-
if (locale.language === null)
|
|
856
|
-
locale.language = language;
|
|
857
|
-
locale.languages.push(language);
|
|
858
|
-
}
|
|
859
|
-
}
|
|
860
|
-
if (typeof Intl !== 'undefined') {
|
|
861
|
-
try {
|
|
862
|
-
addLanguage(Intl.DateTimeFormat().resolvedOptions().locale);
|
|
863
|
-
}
|
|
864
|
-
catch (_) {
|
|
865
|
-
}
|
|
866
|
-
try {
|
|
867
|
-
locale.timezone = Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
868
|
-
}
|
|
869
|
-
catch (_) {
|
|
870
|
-
}
|
|
871
|
-
}
|
|
872
|
-
if (typeof globalThis.navigator !== 'undefined') {
|
|
873
|
-
if (typeof globalThis.navigator.languages !== 'undefined')
|
|
874
|
-
addLanguages(globalThis.navigator.languages);
|
|
875
|
-
if (typeof globalThis.navigator.language !== 'undefined')
|
|
876
|
-
addLanguage(globalThis.navigator.language);
|
|
877
|
-
if (typeof globalThis.navigator.userLanguage !== 'undefined')
|
|
878
|
-
addLanguage(globalThis.navigator.userLanguage);
|
|
879
|
-
if (typeof globalThis.navigator.browserLanguage !== 'undefined')
|
|
880
|
-
addLanguage(globalThis.navigator.browserLanguage);
|
|
881
|
-
if (typeof globalThis.navigator.systemLanguage !== 'undefined')
|
|
882
|
-
addLanguage(globalThis.navigator.systemLanguage);
|
|
883
|
-
}
|
|
884
|
-
try {
|
|
885
|
-
locale.timezoneOffset = new Date().getTimezoneOffset();
|
|
886
|
-
}
|
|
887
|
-
catch (_) {
|
|
888
|
-
}
|
|
889
|
-
if (typeof locale.language === 'string') {
|
|
890
|
-
if (typeof Intl !== 'undefined' && typeof Intl.Locale !== 'undefined') {
|
|
891
|
-
try {
|
|
892
|
-
var intlLocale = new Intl.Locale(locale.language);
|
|
893
|
-
if (typeof intlLocale.getTextInfo === 'function')
|
|
894
|
-
isRTL = intlLocale.getTextInfo().direction === 'rtl';
|
|
895
|
-
else if (typeof intlLocale.textInfo !== 'undefined')
|
|
896
|
-
isRTL = intlLocale.textInfo.direction === 'rtl';
|
|
897
|
-
}
|
|
898
|
-
catch (_) {
|
|
899
|
-
}
|
|
900
|
-
}
|
|
901
|
-
if (typeof isRTL !== 'boolean') {
|
|
902
|
-
var matched = /^([A-Za-z]{1,8})(?:[-_][A-Za-z0-9]{1,8})*$/.exec(locale.language);
|
|
903
|
-
if (matched !== null) {
|
|
904
|
-
var language = matched[1].toLowerCase();
|
|
905
|
-
for (var i = 0; i < RTL_LANGUAGES.length; i++) {
|
|
906
|
-
if (RTL_LANGUAGES[i] === language) {
|
|
907
|
-
isRTL = true;
|
|
908
|
-
break;
|
|
909
|
-
}
|
|
910
|
-
}
|
|
911
|
-
}
|
|
912
|
-
}
|
|
913
|
-
}
|
|
914
|
-
if (typeof isRTL === 'boolean')
|
|
915
|
-
locale.isRTL = isRTL;
|
|
916
|
-
return locale;
|
|
917
|
-
}
|
|
918
|
-
function getOS() {
|
|
919
|
-
var result = { name: OS.Unknown, version: '' };
|
|
920
|
-
for (var i = 0; i < OS_RESOLVER_MAP.length; i++) {
|
|
921
|
-
var map = OS_RESOLVER_MAP[i];
|
|
922
|
-
var regexp = map[0];
|
|
923
|
-
var os = map[1];
|
|
924
|
-
var resolver = map[2];
|
|
925
|
-
var matched = Platform.userAgent.match(regexp);
|
|
926
|
-
if (matched !== null) {
|
|
927
|
-
result.name = os;
|
|
928
|
-
result.version = resolveVersion(matched[1], resolver);
|
|
929
|
-
break;
|
|
930
|
-
}
|
|
931
|
-
}
|
|
932
|
-
if (result.name === OS.iOS && compareVersion(result.version, '18.6') === 0) {
|
|
933
|
-
var version = /\) Version\/([\d.]+)/.exec(Platform.userAgent);
|
|
934
|
-
if (version !== null && parseInt(version[1].substring(0, 2), 10) >= 26)
|
|
935
|
-
result.version = version[1];
|
|
936
|
-
}
|
|
937
|
-
if (Platform.userAgent === USER_AGENT) {
|
|
938
|
-
if (typeof parsedFromHighEntropyValuesOS.name !== 'undefined')
|
|
939
|
-
result.name = parsedFromHighEntropyValuesOS.name;
|
|
940
|
-
if (typeof parsedFromHighEntropyValuesOS.version !== 'undefined')
|
|
941
|
-
result.version = parsedFromHighEntropyValuesOS.version;
|
|
942
|
-
}
|
|
943
|
-
return result;
|
|
944
|
-
}
|
|
945
|
-
function getEngine() {
|
|
946
|
-
var result = { name: Engines.Unknown, version: '' };
|
|
947
|
-
for (var i = 0; i < ENGINE_RESOLVER_MAP.length; i++) {
|
|
948
|
-
var map = ENGINE_RESOLVER_MAP[i];
|
|
949
|
-
var regexp = map[0];
|
|
950
|
-
var engine = map[1];
|
|
951
|
-
var resolver = map[2];
|
|
952
|
-
var matched = Platform.userAgent.match(regexp);
|
|
953
|
-
if (matched !== null) {
|
|
954
|
-
result.name = engine;
|
|
955
|
-
result.version = resolveVersion(matched[1], resolver);
|
|
956
|
-
break;
|
|
957
|
-
}
|
|
958
|
-
}
|
|
959
|
-
if (Platform.userAgent === USER_AGENT) {
|
|
960
|
-
if (typeof parsedFromHighEntropyValuesEngine.name !== 'undefined')
|
|
961
|
-
result.name = parsedFromHighEntropyValuesEngine.name;
|
|
962
|
-
if (typeof parsedFromHighEntropyValuesEngine.version !== 'undefined')
|
|
963
|
-
result.version = parsedFromHighEntropyValuesEngine.version;
|
|
964
|
-
}
|
|
965
|
-
return result;
|
|
966
|
-
}
|
|
967
|
-
function getBrowser() {
|
|
968
|
-
var result = { name: Browsers.Unknown, version: '' };
|
|
969
|
-
for (var i = 0; i < BROWSER_RESOLVER_MAP.length; i++) {
|
|
970
|
-
var map = BROWSER_RESOLVER_MAP[i];
|
|
971
|
-
var regexp = map[0];
|
|
972
|
-
var browser = map[1];
|
|
973
|
-
var resolver = map[2];
|
|
974
|
-
var matched = Platform.userAgent.match(regexp);
|
|
975
|
-
if (matched !== null) {
|
|
976
|
-
result.name = browser;
|
|
977
|
-
result.version = resolveVersion(matched[1], resolver);
|
|
978
|
-
break;
|
|
979
|
-
}
|
|
980
|
-
}
|
|
981
|
-
if (Platform.userAgent === USER_AGENT) {
|
|
982
|
-
if (typeof parsedFromHighEntropyValuesBrowser.name !== 'undefined')
|
|
983
|
-
result.name = parsedFromHighEntropyValuesBrowser.name;
|
|
984
|
-
if (typeof parsedFromHighEntropyValuesBrowser.version !== 'undefined')
|
|
985
|
-
result.version = parsedFromHighEntropyValuesBrowser.version;
|
|
986
|
-
}
|
|
987
|
-
return result;
|
|
988
|
-
}
|
|
989
|
-
function getDevice() {
|
|
990
|
-
if (Platform.userAgent === USER_AGENT && parsedFromHighEntropyValuesDevice !== null)
|
|
991
|
-
return parsedFromHighEntropyValuesDevice;
|
|
992
|
-
if (Platform.os.name === OS.iOS || Platform.os.name === OS.Android)
|
|
993
|
-
return Devices.Mobile;
|
|
994
|
-
if (Platform.os.name === OS.Windows || Platform.os.name === OS.MacOS)
|
|
995
|
-
return Devices.Desktop;
|
|
996
|
-
return Devices.Unknown;
|
|
997
|
-
}
|
|
998
|
-
function getIsWebview() {
|
|
999
|
-
return /; ?wv|applewebkit(?!.*safari)/i.test(Platform.userAgent);
|
|
1000
|
-
}
|
|
1001
|
-
function getIsNode() {
|
|
1002
|
-
return typeof globalThis.process !== 'undefined' && typeof globalThis.process.versions !== 'undefined' && typeof globalThis.process.versions.node !== 'undefined';
|
|
1003
|
-
}
|
|
1004
|
-
function getIsStandalone() {
|
|
1005
|
-
if (Platform.os.name === OS.iOS)
|
|
1006
|
-
return 'standalone' in globalThis.navigator && !!globalThis.navigator.standalone;
|
|
1007
|
-
if (!('matchMedia' in globalThis))
|
|
1008
|
-
return false;
|
|
1009
|
-
return globalThis.matchMedia('(display-mode: standalone)').matches;
|
|
1010
|
-
}
|
|
1011
|
-
function getIsBot() {
|
|
1012
|
-
for (var i = 0; i < BOT_REGEXP.length; i++)
|
|
1013
|
-
if (BOT_REGEXP[i].test(Platform.userAgent))
|
|
1014
|
-
return true;
|
|
1015
|
-
return false;
|
|
1016
|
-
}
|
|
1017
|
-
function parseFromHighEntropyValues() {
|
|
1018
|
-
if (typeof globalThis.navigator !== 'undefined' && typeof globalThis.navigator.userAgentData !== 'undefined' && typeof globalThis.navigator.userAgentData.getHighEntropyValues !== 'undefined') {
|
|
1019
|
-
globalThis.navigator.userAgentData.getHighEntropyValues(['brands', 'fullVersionList', 'mobile', 'model', 'platform', 'platformVersion', 'architecture', 'formFactors', 'bitness', 'uaFullVersion', 'wow64'])
|
|
1020
|
-
.then(function (result) {
|
|
1021
|
-
try {
|
|
1022
|
-
var brands = result.fullVersionList || result.brands || [];
|
|
1023
|
-
var platformVersion = result.platformVersion;
|
|
1024
|
-
var platform = result.platform;
|
|
1025
|
-
var browserName = Platform.browser.name;
|
|
1026
|
-
var prevBrandName = null;
|
|
1027
|
-
for (var i = 0; i < brands.length; i++) {
|
|
1028
|
-
var brand = normalizeBrand(brands[i]);
|
|
1029
|
-
var brandVersion = brand.version;
|
|
1030
|
-
var brandName = brand.brand;
|
|
1031
|
-
if (/not.a.brand/i.test(brandName))
|
|
1032
|
-
continue;
|
|
1033
|
-
if (prevBrandName === null || (/Chrom/.test(prevBrandName) && brandName !== 'Chromium') || (prevBrandName === 'Edge' && /WebView2/.test(brandName))) {
|
|
1034
|
-
brandName = HIGH_ENTROPY_BRAND_NAME_MAP[brandName] || brandName;
|
|
1035
|
-
prevBrandName = browserName;
|
|
1036
|
-
if (prevBrandName === null || /Chrom/.test(prevBrandName) || !/Chrom/.test(brandName)) {
|
|
1037
|
-
browserName = brandName;
|
|
1038
|
-
if (browserName === 'Chrome' || browserName === 'Chrome WebView' || browserName === 'Chrome Headless')
|
|
1039
|
-
parsedFromHighEntropyValuesBrowser.name = Browsers.Chrome;
|
|
1040
|
-
else if (browserName === 'Edge' || browserName === 'Edge WebView2')
|
|
1041
|
-
parsedFromHighEntropyValuesBrowser.name = Browsers.Edge;
|
|
1042
|
-
else if (browserName === 'Opera Mobi')
|
|
1043
|
-
parsedFromHighEntropyValuesBrowser.name = Browsers.Opera;
|
|
1044
|
-
parsedFromHighEntropyValuesBrowser.version = brandVersion;
|
|
1045
|
-
}
|
|
1046
|
-
prevBrandName = brandName;
|
|
1047
|
-
}
|
|
1048
|
-
if (brandName === 'Chromium')
|
|
1049
|
-
parsedFromHighEntropyValuesEngine.version = brandVersion;
|
|
1050
|
-
}
|
|
1051
|
-
if (typeof platformVersion === 'string') {
|
|
1052
|
-
if (Platform.os.name === OS.Windows)
|
|
1053
|
-
parsedFromHighEntropyValuesOS.version = parseInt(platformVersion.split('.')[0], 10) >= 13 ? '11' : '10';
|
|
1054
|
-
else
|
|
1055
|
-
parsedFromHighEntropyValuesOS.version = platformVersion;
|
|
1056
|
-
}
|
|
1057
|
-
if (typeof platform === 'string') {
|
|
1058
|
-
if (/android/i.test(platform))
|
|
1059
|
-
parsedFromHighEntropyValuesOS.name = OS.Android;
|
|
1060
|
-
else if (/ios|iphone|ipad/i.test(platform))
|
|
1061
|
-
parsedFromHighEntropyValuesOS.name = OS.iOS;
|
|
1062
|
-
else if (/windows|win32/i.test(platform))
|
|
1063
|
-
parsedFromHighEntropyValuesOS.name = OS.Windows;
|
|
1064
|
-
else if (/macos|macintel/i.test(platform))
|
|
1065
|
-
parsedFromHighEntropyValuesOS.name = OS.MacOS;
|
|
1066
|
-
}
|
|
1067
|
-
if (result.mobile === true)
|
|
1068
|
-
parsedFromHighEntropyValuesDevice = Devices.Mobile;
|
|
1069
|
-
}
|
|
1070
|
-
catch (_) {
|
|
1071
|
-
}
|
|
1072
|
-
});
|
|
1073
|
-
}
|
|
1074
|
-
}
|
|
1075
|
-
parseFromHighEntropyValues();
|
|
1076
|
-
|
|
1077
|
-
var _a;
|
|
1078
|
-
var App = {
|
|
1079
|
-
open: open,
|
|
1080
|
-
messenger: (_a = {},
|
|
1081
|
-
_a[MessengerType.Telephone] = openMessengerTelephone,
|
|
1082
|
-
_a[MessengerType.Message] = openMessengerMessage,
|
|
1083
|
-
_a[MessengerType.Mail] = openMessengerMail,
|
|
1084
|
-
_a),
|
|
1085
|
-
setting: setting,
|
|
1086
|
-
Constants: {
|
|
1087
|
-
AppOpenState: AppOpenState,
|
|
1088
|
-
MessengerType: MessengerType,
|
|
1089
|
-
SettingType: SettingType
|
|
1090
|
-
},
|
|
1091
|
-
Errors: {
|
|
1092
|
-
URLOpenError: URLOpenError,
|
|
1093
|
-
}
|
|
1094
|
-
};
|
|
1095
|
-
function getTrackId(bundle) {
|
|
1096
|
-
try {
|
|
1097
|
-
var xhr = new XMLHttpRequest();
|
|
1098
|
-
xhr.open('GET', 'https://itunes.apple.com/lookup?bundleId=' + bundle, false);
|
|
1099
|
-
xhr.send();
|
|
1100
|
-
if (xhr.status === 200) {
|
|
1101
|
-
try {
|
|
1102
|
-
return parseLookupBundleIdResponse(JSON.parse(xhr.response));
|
|
1103
|
-
}
|
|
1104
|
-
catch (_) {
|
|
1105
|
-
return undefined;
|
|
1106
|
-
}
|
|
1107
|
-
}
|
|
1108
|
-
return undefined;
|
|
1109
|
-
}
|
|
1110
|
-
catch (_) {
|
|
1111
|
-
return undefined;
|
|
1112
|
-
}
|
|
1113
|
-
}
|
|
1114
|
-
function parseLookupBundleIdResponse(response) {
|
|
1115
|
-
if (typeof response.results === 'undefined')
|
|
1116
|
-
return undefined;
|
|
1117
|
-
var results = response.results;
|
|
1118
|
-
if (results.length === 0)
|
|
1119
|
-
return undefined;
|
|
1120
|
-
var result = results[0];
|
|
1121
|
-
if (typeof result === 'undefined')
|
|
1122
|
-
return undefined;
|
|
1123
|
-
return "" + result.trackId;
|
|
1124
|
-
}
|
|
1125
|
-
function createIntentURL(scheme, packageName, fallback) {
|
|
1126
|
-
var split = scheme.split('://');
|
|
1127
|
-
var prefix = split[0];
|
|
1128
|
-
var suffix = split[1];
|
|
1129
|
-
var intent = 'intent://';
|
|
1130
|
-
if (typeof suffix !== 'undefined')
|
|
1131
|
-
intent = intent + suffix;
|
|
1132
|
-
intent = intent + '#Intent;'
|
|
1133
|
-
+ 'scheme=' + prefix + ';'
|
|
1134
|
-
+ 'action=android.intent.action.VIEW;'
|
|
1135
|
-
+ 'category=android.intent.category.BROWSABLE;';
|
|
1136
|
-
if (typeof packageName !== 'undefined')
|
|
1137
|
-
intent = intent + 'package=' + packageName + ';';
|
|
1138
|
-
if (typeof fallback !== 'undefined' && typeof fallback === 'string')
|
|
1139
|
-
intent = intent + 'S.browser_fallback_url=' + encodeURIComponent(fallback) + ';';
|
|
1140
|
-
else if (typeof packageName !== 'undefined')
|
|
1141
|
-
intent = intent + 'S.browser_fallback_url=' + encodeURIComponent(createAppStoreURL(packageName, OS.Android)) + ';';
|
|
1142
|
-
return intent + 'end';
|
|
1143
|
-
}
|
|
1144
|
-
function parseIntentURL(intent) {
|
|
1145
|
-
var parsed = {};
|
|
1146
|
-
var split = intent.split('#Intent;');
|
|
1147
|
-
var host = split[0].substring(9);
|
|
1148
|
-
var suffix = split[1];
|
|
1149
|
-
var parameterString = suffix.substring(0, suffix.length - 4);
|
|
1150
|
-
var parameters = parameterString.split(';');
|
|
1151
|
-
var extras = {};
|
|
1152
|
-
for (var i = 0; i < parameters.length; i++) {
|
|
1153
|
-
var part = parameters[i];
|
|
1154
|
-
var index = part.indexOf('=');
|
|
1155
|
-
if (index !== -1)
|
|
1156
|
-
extras[part.substring(0, index)] = part.substring(index + 1);
|
|
1157
|
-
}
|
|
1158
|
-
if (typeof extras['scheme'] !== 'undefined')
|
|
1159
|
-
parsed.scheme = (extras['scheme'] + '://' + host);
|
|
1160
|
-
if (typeof extras['package'] !== 'undefined')
|
|
1161
|
-
parsed.packageName = extras['package'];
|
|
1162
|
-
if (typeof extras['S.browser_fallback_url'] !== 'undefined')
|
|
1163
|
-
parsed.fallback = extras['S.browser_fallback_url'];
|
|
1164
|
-
return parsed;
|
|
1165
|
-
}
|
|
1166
|
-
function createAppStoreURL(packageName, os) {
|
|
1167
|
-
if (typeof packageName === 'undefined')
|
|
1168
|
-
return undefined;
|
|
1169
|
-
switch (os) {
|
|
1170
|
-
case OS.Android:
|
|
1171
|
-
return 'market://details?id=' + packageName;
|
|
1172
|
-
case OS.iOS:
|
|
1173
|
-
return 'itms-apps://itunes.apple.com/app/id' + packageName + '?mt=8';
|
|
1174
|
-
case OS.Windows:
|
|
1175
|
-
return 'ms-windows-store://pdp/?ProductId=' + packageName;
|
|
1176
|
-
case OS.MacOS:
|
|
1177
|
-
return 'macappstore://itunes.apple.com/app/id' + packageName + '?mt=12';
|
|
1178
|
-
default:
|
|
1179
|
-
throw new URLOpenError('Unsupported OS: \"' + Platform.userAgent + '\"');
|
|
1180
|
-
}
|
|
1181
|
-
}
|
|
1182
|
-
function createWebStoreURL(packageName, os) {
|
|
1183
|
-
if (typeof packageName === 'undefined')
|
|
1184
|
-
return undefined;
|
|
1185
|
-
switch (os) {
|
|
1186
|
-
case OS.Android:
|
|
1187
|
-
return 'https://play.google.com/store/apps/details?id=' + packageName;
|
|
1188
|
-
case OS.iOS:
|
|
1189
|
-
return 'https://itunes.apple.com/app/id' + packageName + '?mt=8';
|
|
1190
|
-
case OS.Windows:
|
|
1191
|
-
return 'https://apps.microsoft.com/detail/' + packageName;
|
|
1192
|
-
case OS.MacOS:
|
|
1193
|
-
return 'https://apps.apple.com/app/id' + packageName + '?mt=12';
|
|
1194
|
-
default:
|
|
1195
|
-
throw new URLOpenError('Unsupported OS: \"' + Platform.userAgent + '\"');
|
|
1196
|
-
}
|
|
1197
|
-
}
|
|
1198
|
-
function getDefaultTimeoutByOS(os) {
|
|
1199
|
-
switch (os) {
|
|
1200
|
-
case OS.iOS:
|
|
1201
|
-
return 2000;
|
|
1202
|
-
case OS.Android:
|
|
1203
|
-
return 1000;
|
|
1204
|
-
default:
|
|
1205
|
-
return 750;
|
|
1206
|
-
}
|
|
1207
|
-
}
|
|
1208
|
-
function canOpenIntentURL() {
|
|
1209
|
-
if (Platform.os.name !== OS.Android)
|
|
1210
|
-
return false;
|
|
1211
|
-
var version = Platform.browser.version;
|
|
1212
|
-
if (Platform.browser.name === Browsers.SamsungInternet && compareVersion(version, '17.0.1.69') >= 0 && compareVersion(version, '17.0.7.34') < 0)
|
|
1213
|
-
return false;
|
|
1214
|
-
if (Platform.browser.name === Browsers.Firefox && compareVersion(version, '41.0') < 0)
|
|
1215
|
-
return false;
|
|
1216
|
-
if (Platform.browser.name === Browsers.Firefox && compareVersion(version, '58.0') >= 0 && compareVersion(version, '68.11.0') < 0)
|
|
1217
|
-
return false;
|
|
1218
|
-
if (Platform.browser.name === Browsers.Firefox && compareVersion(version, '79.0') >= 0 && compareVersion(version, '81.2.0') < 0)
|
|
1219
|
-
return false;
|
|
1220
|
-
if (Platform.browser.name === Browsers.Firefox && compareVersion(version, '96.0') >= 0 && compareVersion(version, '107.0') < 0)
|
|
1221
|
-
return false;
|
|
1222
|
-
if (Platform.browser.name === Browsers.Opera && compareVersion(version, '14.0') < 0)
|
|
1223
|
-
return false;
|
|
1224
|
-
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));
|
|
1225
|
-
}
|
|
1226
|
-
function canOpenUniversalURL() {
|
|
1227
|
-
return Platform.os.name === OS.iOS && compareVersion(Platform.os.version, '9.0') >= 0;
|
|
1228
|
-
}
|
|
1229
|
-
function getURLOpenError(tried) {
|
|
1230
|
-
var triedURLString = '';
|
|
1231
|
-
for (var i = 0; i < tried.length; i++)
|
|
1232
|
-
triedURLString += '\n' + (i + 1) + ': ' + tried[i];
|
|
1233
|
-
if (triedURLString.length > 0)
|
|
1234
|
-
triedURLString = '\n' + triedURLString + '\n';
|
|
1235
|
-
return new URLOpenError('Failed to open any of the provided URLs: ' + triedURLString);
|
|
1236
|
-
}
|
|
1237
|
-
function openURLViaHref(url, index) {
|
|
1238
|
-
var top = getTopmostWindow();
|
|
1239
|
-
var topDocument = top.document;
|
|
1240
|
-
var a = undefined;
|
|
1241
|
-
try {
|
|
1242
|
-
if (index === 0) {
|
|
1243
|
-
top.location.href = url;
|
|
1244
|
-
return;
|
|
1245
|
-
}
|
|
1246
|
-
a = createHiddenElement('a');
|
|
1247
|
-
if (typeof a === 'undefined')
|
|
1248
|
-
return;
|
|
1249
|
-
a.href = url;
|
|
1250
|
-
topDocument.body.appendChild(a);
|
|
1251
|
-
dispatchClickEvent(a, top);
|
|
1252
|
-
return a;
|
|
1253
|
-
}
|
|
1254
|
-
catch (_) {
|
|
1255
|
-
}
|
|
1256
|
-
finally {
|
|
1257
|
-
if (typeof a !== 'undefined') {
|
|
1258
|
-
try {
|
|
1259
|
-
topDocument.body.removeChild(a);
|
|
1260
|
-
}
|
|
1261
|
-
catch (_) {
|
|
1262
|
-
}
|
|
1263
|
-
}
|
|
1264
|
-
}
|
|
1265
|
-
}
|
|
1266
|
-
function openURLViaIframe(url) {
|
|
1267
|
-
var top = getTopmostWindow();
|
|
1268
|
-
var topDocument = top.document;
|
|
1269
|
-
var iframe = undefined;
|
|
1270
|
-
try {
|
|
1271
|
-
iframe = createHiddenElement('iframe');
|
|
1272
|
-
if (typeof iframe === 'undefined')
|
|
1273
|
-
return;
|
|
1274
|
-
iframe.src = url;
|
|
1275
|
-
topDocument.body.appendChild(iframe);
|
|
1276
|
-
globalThis.setTimeout(function () {
|
|
1277
|
-
if (typeof iframe !== 'undefined') {
|
|
1278
|
-
try {
|
|
1279
|
-
topDocument.body.removeChild(iframe);
|
|
1280
|
-
}
|
|
1281
|
-
catch (_) {
|
|
1282
|
-
}
|
|
1283
|
-
}
|
|
1284
|
-
}, 500);
|
|
1285
|
-
}
|
|
1286
|
-
catch (_) {
|
|
1287
|
-
}
|
|
1288
|
-
return iframe;
|
|
1289
|
-
}
|
|
1290
|
-
function isDocumentHidden() {
|
|
1291
|
-
var top = getTopmostWindow();
|
|
1292
|
-
var topDocument = top.document;
|
|
1293
|
-
if (topDocument.visibilityState === 'hidden')
|
|
1294
|
-
return true;
|
|
1295
|
-
if (topDocument.webkitVisibilityState === 'hidden')
|
|
1296
|
-
return true;
|
|
1297
|
-
if (topDocument.mozVisibilityState === 'hidden')
|
|
1298
|
-
return true;
|
|
1299
|
-
if (topDocument.msVisibilityState === 'hidden')
|
|
1300
|
-
return true;
|
|
1301
|
-
if (typeof topDocument.hidden !== 'undefined')
|
|
1302
|
-
return topDocument.hidden;
|
|
1303
|
-
if (typeof topDocument.webkitHidden !== 'undefined')
|
|
1304
|
-
return topDocument.webkitHidden;
|
|
1305
|
-
if (typeof topDocument.mozHidden !== 'undefined')
|
|
1306
|
-
return topDocument.mozHidden;
|
|
1307
|
-
if (typeof topDocument.msHidden !== 'undefined')
|
|
1308
|
-
return topDocument.msHidden;
|
|
1309
|
-
if (typeof topDocument.hasFocus === 'function')
|
|
1310
|
-
return !topDocument.hasFocus();
|
|
1311
|
-
return true;
|
|
1312
|
-
}
|
|
1313
|
-
function hasFocus(document) {
|
|
1314
|
-
if (typeof document.hasFocus === 'function')
|
|
1315
|
-
return document.hasFocus();
|
|
1316
|
-
return false;
|
|
1317
|
-
}
|
|
1318
|
-
function focus(target) {
|
|
1319
|
-
try {
|
|
1320
|
-
target.focus({ preventScroll: true });
|
|
1321
|
-
}
|
|
1322
|
-
catch (_) {
|
|
1323
|
-
try {
|
|
1324
|
-
target.focus();
|
|
1325
|
-
}
|
|
1326
|
-
catch (_) {
|
|
1327
|
-
}
|
|
1328
|
-
}
|
|
1329
|
-
}
|
|
1330
|
-
function restoreFocus() {
|
|
1331
|
-
var top = getTopmostWindow();
|
|
1332
|
-
var topDocument = top.document;
|
|
1333
|
-
focus(top);
|
|
1334
|
-
if (hasFocus(topDocument))
|
|
1335
|
-
return true;
|
|
1336
|
-
if (topDocument.body.tabIndex < 0)
|
|
1337
|
-
topDocument.body.tabIndex = -1;
|
|
1338
|
-
focus(topDocument.body);
|
|
1339
|
-
if (hasFocus(topDocument))
|
|
1340
|
-
return true;
|
|
1341
|
-
var input = undefined;
|
|
1342
|
-
try {
|
|
1343
|
-
input = createHiddenElement('input');
|
|
1344
|
-
if (typeof input === 'undefined')
|
|
1345
|
-
return false;
|
|
1346
|
-
input.type = 'text';
|
|
1347
|
-
input.readOnly = true;
|
|
1348
|
-
topDocument.body.appendChild(input);
|
|
1349
|
-
focus(input);
|
|
1350
|
-
try {
|
|
1351
|
-
input.select();
|
|
1352
|
-
}
|
|
1353
|
-
catch (_) {
|
|
1354
|
-
}
|
|
1355
|
-
if (hasFocus(topDocument))
|
|
1356
|
-
return true;
|
|
1357
|
-
}
|
|
1358
|
-
catch (_) {
|
|
1359
|
-
}
|
|
1360
|
-
finally {
|
|
1361
|
-
if (typeof input !== 'undefined' && input !== null) {
|
|
1362
|
-
try {
|
|
1363
|
-
input.blur();
|
|
1364
|
-
}
|
|
1365
|
-
catch (_) {
|
|
1366
|
-
}
|
|
1367
|
-
try {
|
|
1368
|
-
topDocument.body.removeChild(input);
|
|
1369
|
-
}
|
|
1370
|
-
catch (_) {
|
|
1371
|
-
}
|
|
1372
|
-
}
|
|
1373
|
-
}
|
|
1374
|
-
return hasFocus(topDocument);
|
|
1375
|
-
}
|
|
1376
|
-
function tryOpenURL(url, index, timeout) {
|
|
1377
|
-
var top = getTopmostWindow();
|
|
1378
|
-
var topDocument = top.document;
|
|
1379
|
-
var eventType = { focus: undefined, blur: undefined, visibilitychange: undefined };
|
|
1380
|
-
var eventTarget = { focus: undefined, blur: undefined, visibilitychange: undefined };
|
|
1381
|
-
if (typeof globalThis.cordova !== 'undefined') {
|
|
1382
|
-
eventTarget = { focus: topDocument, blur: topDocument };
|
|
1383
|
-
eventType = { focus: 'resume', blur: 'pause' };
|
|
1384
|
-
}
|
|
1385
|
-
else if (Platform.os.name === OS.iOS) {
|
|
1386
|
-
if (compareVersion(Platform.os.version, '8.0') >= 0) {
|
|
1387
|
-
eventTarget = { visibilitychange: topDocument };
|
|
1388
|
-
eventType = { visibilitychange: 'visibilitychange' };
|
|
1389
|
-
}
|
|
1390
|
-
else {
|
|
1391
|
-
eventTarget = { focus: top, blur: top };
|
|
1392
|
-
eventType = { focus: 'pageshow', blur: 'pagehide' };
|
|
1393
|
-
}
|
|
1394
|
-
}
|
|
1395
|
-
else {
|
|
1396
|
-
if (EventListenerUtils.useStd) {
|
|
1397
|
-
eventTarget = { focus: top, blur: top, visibilitychange: topDocument };
|
|
1398
|
-
eventType = { focus: 'focus', blur: 'blur', visibilitychange: 'visibilitychange' };
|
|
1399
|
-
}
|
|
1400
|
-
else {
|
|
1401
|
-
eventTarget = { focus: topDocument, blur: topDocument, visibilitychange: topDocument };
|
|
1402
|
-
eventType = { focus: 'focus', blur: 'blur', visibilitychange: 'visibilitychange' };
|
|
1403
|
-
}
|
|
1404
|
-
}
|
|
1405
|
-
var a = undefined;
|
|
1406
|
-
var iframe = undefined;
|
|
1407
|
-
return new Promise(function (resolve, reject) {
|
|
1408
|
-
var timeoutId;
|
|
1409
|
-
var resolved = false;
|
|
1410
|
-
function cleanup() {
|
|
1411
|
-
if (typeof timeoutId !== 'undefined') {
|
|
1412
|
-
clearTimeout(timeoutId);
|
|
1413
|
-
timeoutId = undefined;
|
|
1414
|
-
}
|
|
1415
|
-
try {
|
|
1416
|
-
EventListenerUtils.remove(eventTarget.blur, { type: eventType.blur, callback: onBlur });
|
|
1417
|
-
EventListenerUtils.remove(eventTarget.focus, { type: eventType.focus, callback: onFocus });
|
|
1418
|
-
EventListenerUtils.remove(eventTarget.visibilitychange, { type: eventType.visibilitychange, callback: onVisibilityChange });
|
|
1419
|
-
}
|
|
1420
|
-
catch (_) {
|
|
1421
|
-
}
|
|
1422
|
-
if (typeof a !== 'undefined') {
|
|
1423
|
-
try {
|
|
1424
|
-
topDocument.body.removeChild(a);
|
|
1425
|
-
}
|
|
1426
|
-
catch (_) {
|
|
1427
|
-
}
|
|
1428
|
-
}
|
|
1429
|
-
if (typeof iframe !== 'undefined') {
|
|
1430
|
-
try {
|
|
1431
|
-
topDocument.body.removeChild(iframe);
|
|
1432
|
-
}
|
|
1433
|
-
catch (_) {
|
|
1434
|
-
}
|
|
1435
|
-
}
|
|
1436
|
-
}
|
|
1437
|
-
function done(success) {
|
|
1438
|
-
if (resolved)
|
|
1439
|
-
return;
|
|
1440
|
-
resolved = true;
|
|
1441
|
-
try {
|
|
1442
|
-
cleanup();
|
|
1443
|
-
if (success)
|
|
1444
|
-
resolve();
|
|
1445
|
-
else
|
|
1446
|
-
reject();
|
|
1447
|
-
}
|
|
1448
|
-
catch (_) {
|
|
1449
|
-
resolve();
|
|
1450
|
-
}
|
|
1451
|
-
}
|
|
1452
|
-
function onBlur() {
|
|
1453
|
-
if (typeof timeoutId !== 'undefined') {
|
|
1454
|
-
clearTimeout(timeoutId);
|
|
1455
|
-
timeoutId = undefined;
|
|
1456
|
-
}
|
|
1457
|
-
EventListenerUtils.remove(eventTarget.blur, { type: eventType.blur, callback: onBlur });
|
|
1458
|
-
EventListenerUtils.add(eventTarget.focus, { type: eventType.focus, callback: onFocus });
|
|
1459
|
-
}
|
|
1460
|
-
function onFocus() {
|
|
1461
|
-
done(true);
|
|
1462
|
-
}
|
|
1463
|
-
function onVisibilityChange() {
|
|
1464
|
-
if (isDocumentHidden())
|
|
1465
|
-
done(true);
|
|
1466
|
-
}
|
|
1467
|
-
timeoutId = globalThis.setTimeout(function () {
|
|
1468
|
-
done(false);
|
|
1469
|
-
}, timeout);
|
|
1470
|
-
EventListenerUtils.add(eventTarget.blur, { type: eventType.blur, callback: onBlur });
|
|
1471
|
-
EventListenerUtils.add(eventTarget.visibilitychange, { type: eventType.visibilitychange, callback: onVisibilityChange });
|
|
1472
|
-
if (!hasFocus(topDocument))
|
|
1473
|
-
restoreFocus();
|
|
1474
|
-
try {
|
|
1475
|
-
if (typeof globalThis.cordova !== 'undefined') {
|
|
1476
|
-
globalThis.open(url, '_system');
|
|
1477
|
-
}
|
|
1478
|
-
else {
|
|
1479
|
-
a = openURLViaHref(url, index);
|
|
1480
|
-
iframe = openURLViaIframe(url);
|
|
1481
|
-
}
|
|
1482
|
-
}
|
|
1483
|
-
catch (_) {
|
|
1484
|
-
done(false);
|
|
1485
|
-
}
|
|
1486
|
-
});
|
|
1487
|
-
}
|
|
1488
|
-
function open(options) {
|
|
1489
|
-
var os = Platform.os.name;
|
|
1490
|
-
var urls = [];
|
|
1491
|
-
var tried = [];
|
|
1492
|
-
var infos = {};
|
|
1493
|
-
var timeout;
|
|
1494
|
-
if (os === OS.Android) {
|
|
1495
|
-
var option = options[OS.Android] || options['android'];
|
|
1496
|
-
if (typeof option === 'undefined')
|
|
1497
|
-
return Promise.reject(getURLOpenError(tried));
|
|
1498
|
-
timeout = option.timeout;
|
|
1499
|
-
infos.scheme = urlToString(option.scheme);
|
|
1500
|
-
infos.intent = urlToString(option.intent);
|
|
1501
|
-
infos.packageName = option.packageName;
|
|
1502
|
-
infos.fallback = urlToString(option.fallback);
|
|
1503
|
-
infos.appStore = createAppStoreURL(infos.packageName, OS.Android);
|
|
1504
|
-
infos.webStore = createWebStoreURL(infos.packageName, OS.Android);
|
|
1505
|
-
infos.allowAppStore = option.allowAppStore;
|
|
1506
|
-
infos.allowWebStore = option.allowWebStore;
|
|
1507
|
-
if (typeof infos.intent !== 'undefined' && (typeof infos.scheme === 'undefined' || typeof infos.packageName === 'undefined' || typeof infos.fallback === 'undefined')) {
|
|
1508
|
-
var parsed = parseIntentURL(infos.intent);
|
|
1509
|
-
if (typeof parsed.scheme !== 'undefined' && typeof infos.scheme === 'undefined')
|
|
1510
|
-
infos.scheme = parsed.scheme;
|
|
1511
|
-
if (typeof parsed.packageName !== 'undefined' && typeof infos.packageName === 'undefined')
|
|
1512
|
-
infos.packageName = parsed.packageName;
|
|
1513
|
-
if (typeof parsed.fallback !== 'undefined' && typeof infos.fallback === 'undefined')
|
|
1514
|
-
infos.fallback = parsed.fallback;
|
|
1515
|
-
}
|
|
1516
|
-
if (typeof infos.scheme !== 'undefined' && typeof infos.intent === 'undefined')
|
|
1517
|
-
infos.intent = createIntentURL(infos.scheme, infos.packageName, infos.fallback);
|
|
1518
|
-
}
|
|
1519
|
-
else if (os === OS.iOS) {
|
|
1520
|
-
var option = options[OS.iOS] || options['ios'];
|
|
1521
|
-
if (typeof option === 'undefined')
|
|
1522
|
-
return Promise.reject(getURLOpenError(tried));
|
|
1523
|
-
timeout = option.timeout;
|
|
1524
|
-
infos.scheme = urlToString(option.scheme);
|
|
1525
|
-
infos.bundleId = option.bundleId;
|
|
1526
|
-
infos.trackId = option.trackId;
|
|
1527
|
-
infos.universal = urlToString(option.universal);
|
|
1528
|
-
infos.fallback = urlToString(option.fallback);
|
|
1529
|
-
infos.appStore = createAppStoreURL(infos.trackId, OS.iOS);
|
|
1530
|
-
infos.webStore = createWebStoreURL(infos.trackId, OS.iOS);
|
|
1531
|
-
infos.allowAppStore = option.allowAppStore;
|
|
1532
|
-
infos.allowWebStore = option.allowWebStore;
|
|
1533
|
-
if (typeof infos.bundleId !== 'undefined' && typeof infos.trackId === 'undefined')
|
|
1534
|
-
infos.trackId = getTrackId(infos.bundleId);
|
|
1535
|
-
}
|
|
1536
|
-
else if (os === OS.Windows) {
|
|
1537
|
-
var option = options[OS.Windows] || options['windows'];
|
|
1538
|
-
if (typeof option === 'undefined')
|
|
1539
|
-
return Promise.reject(getURLOpenError(tried));
|
|
1540
|
-
timeout = option.timeout;
|
|
1541
|
-
infos.scheme = urlToString(option.scheme);
|
|
1542
|
-
infos.productId = option.productId;
|
|
1543
|
-
infos.fallback = urlToString(option.fallback);
|
|
1544
|
-
infos.appStore = createAppStoreURL(infos.productId, OS.Windows);
|
|
1545
|
-
infos.webStore = createWebStoreURL(infos.productId, OS.Windows);
|
|
1546
|
-
infos.allowAppStore = option.allowAppStore;
|
|
1547
|
-
infos.allowWebStore = option.allowWebStore;
|
|
1548
|
-
}
|
|
1549
|
-
else if (os === OS.MacOS) {
|
|
1550
|
-
var option = options[OS.MacOS] || options['macos'];
|
|
1551
|
-
if (typeof option === 'undefined')
|
|
1552
|
-
return Promise.reject(getURLOpenError(tried));
|
|
1553
|
-
timeout = option.timeout;
|
|
1554
|
-
infos.scheme = urlToString(option.scheme);
|
|
1555
|
-
infos.bundleId = option.bundleId;
|
|
1556
|
-
infos.trackId = option.trackId;
|
|
1557
|
-
infos.fallback = urlToString(option.fallback);
|
|
1558
|
-
infos.appStore = createAppStoreURL(infos.trackId, OS.MacOS);
|
|
1559
|
-
infos.webStore = createWebStoreURL(infos.trackId, OS.MacOS);
|
|
1560
|
-
infos.allowAppStore = option.allowAppStore;
|
|
1561
|
-
infos.allowWebStore = option.allowWebStore;
|
|
1562
|
-
if (typeof infos.bundleId !== 'undefined' && typeof infos.trackId === 'undefined')
|
|
1563
|
-
infos.trackId = getTrackId(infos.bundleId);
|
|
1564
|
-
}
|
|
1565
|
-
pushURL(urls, infos.intent, AppOpenState.Intent, canOpenIntentURL());
|
|
1566
|
-
pushURL(urls, infos.universal, AppOpenState.Universal, canOpenUniversalURL());
|
|
1567
|
-
pushURL(urls, infos.scheme, AppOpenState.Scheme, true);
|
|
1568
|
-
pushURL(urls, infos.fallback, AppOpenState.Fallback, true);
|
|
1569
|
-
pushURL(urls, infos.appStore, AppOpenState.Store, infos.allowAppStore);
|
|
1570
|
-
pushURL(urls, infos.webStore, AppOpenState.Store, infos.allowWebStore);
|
|
1571
|
-
if (typeof timeout === 'undefined')
|
|
1572
|
-
timeout = getDefaultTimeoutByOS(os);
|
|
1573
|
-
return new Promise(function (resolve, reject) {
|
|
1574
|
-
function openURLSequential(index) {
|
|
1575
|
-
if (index === void 0) { index = 0; }
|
|
1576
|
-
if (index >= urls.length)
|
|
1577
|
-
return reject(getURLOpenError(tried));
|
|
1578
|
-
var entry = urls[index];
|
|
1579
|
-
var state = entry[0];
|
|
1580
|
-
var url = entry[1];
|
|
1581
|
-
if (typeof url === 'string') {
|
|
1582
|
-
tried[index] = url;
|
|
1583
|
-
return tryOpenURL(url, index, timeout)
|
|
1584
|
-
.then(function () {
|
|
1585
|
-
resolve(state);
|
|
1586
|
-
})
|
|
1587
|
-
.catch(function () {
|
|
1588
|
-
openURLSequential(index + 1);
|
|
1589
|
-
});
|
|
1590
|
-
}
|
|
1591
|
-
else {
|
|
1592
|
-
tried[index] = '[function fallback]';
|
|
1593
|
-
url();
|
|
1594
|
-
resolve(state);
|
|
1595
|
-
}
|
|
1596
|
-
}
|
|
1597
|
-
return openURLSequential();
|
|
1598
|
-
});
|
|
1599
|
-
}
|
|
1600
|
-
function pushURL(urls, url, state, condition) {
|
|
1601
|
-
if (condition === void 0) { condition = false; }
|
|
1602
|
-
if ((typeof url === 'function' || typeof url === 'string') && condition)
|
|
1603
|
-
urls.push([state, url]);
|
|
1604
|
-
}
|
|
1605
|
-
function isArrayLike(value) {
|
|
1606
|
-
if (value == null || typeof value === 'string')
|
|
1607
|
-
return false;
|
|
1608
|
-
var length = value.length;
|
|
1609
|
-
return typeof length === 'number' && length >= 0 && !(length % 1);
|
|
1610
|
-
}
|
|
1611
|
-
function joining(values, mapfn, separator) {
|
|
1612
|
-
if (separator === void 0) { separator = ','; }
|
|
1613
|
-
var length = values.length;
|
|
1614
|
-
var result = '';
|
|
1615
|
-
for (var i = 0; i < length; i++) {
|
|
1616
|
-
result = result + mapfn(values[i]);
|
|
1617
|
-
if (i !== length - 1)
|
|
1618
|
-
result = result + separator;
|
|
1619
|
-
}
|
|
1620
|
-
return result;
|
|
1621
|
-
}
|
|
1622
|
-
function encode(value) {
|
|
1623
|
-
return encodeURIComponent(value)
|
|
1624
|
-
.replace(/[!'()*]/g, function (c) {
|
|
1625
|
-
return '%' + c.charCodeAt(0).toString(16);
|
|
1626
|
-
});
|
|
1627
|
-
}
|
|
1628
|
-
function urlToString(value) {
|
|
1629
|
-
if (value instanceof URL)
|
|
1630
|
-
return value.toString();
|
|
1631
|
-
return value;
|
|
1632
|
-
}
|
|
1633
|
-
function stringifiableToString(value) {
|
|
1634
|
-
if (typeof value === 'string')
|
|
1635
|
-
return encode(value);
|
|
1636
|
-
if (typeof value === 'number' || typeof value === 'boolean')
|
|
1637
|
-
return encode(String(value));
|
|
1638
|
-
if (value == null)
|
|
1639
|
-
return '';
|
|
1640
|
-
if (isArrayLike(value))
|
|
1641
|
-
return joining(value, function (v) {
|
|
1642
|
-
return stringifiableToString(v);
|
|
1643
|
-
});
|
|
1644
|
-
if (value instanceof HTMLInputElement) {
|
|
1645
|
-
var type = value.type;
|
|
1646
|
-
if (type === 'checkbox') {
|
|
1647
|
-
return encode(value.checked.toString());
|
|
1648
|
-
}
|
|
1649
|
-
else if (type === 'radio') {
|
|
1650
|
-
if (value.checked)
|
|
1651
|
-
return encode(value.value);
|
|
1652
|
-
else
|
|
1653
|
-
return '';
|
|
1654
|
-
}
|
|
1655
|
-
else if (type === 'file') {
|
|
1656
|
-
var files = value.files;
|
|
1657
|
-
if (files === null)
|
|
1658
|
-
return '';
|
|
1659
|
-
return joining(files, function (file) {
|
|
1660
|
-
return encode(file.name);
|
|
1661
|
-
});
|
|
1662
|
-
}
|
|
1663
|
-
else {
|
|
1664
|
-
return encode(value.value);
|
|
1665
|
-
}
|
|
1666
|
-
}
|
|
1667
|
-
if (value instanceof HTMLSelectElement) {
|
|
1668
|
-
if (value.multiple)
|
|
1669
|
-
return joining(value.selectedOptions, function (option) {
|
|
1670
|
-
return encode(option.value);
|
|
1671
|
-
});
|
|
1672
|
-
return encode(value.value);
|
|
1673
|
-
}
|
|
1674
|
-
if (value instanceof HTMLTextAreaElement)
|
|
1675
|
-
return encode(value.value);
|
|
1676
|
-
if (value instanceof HTMLElement)
|
|
1677
|
-
return encode(value.innerText);
|
|
1678
|
-
if (value instanceof Node)
|
|
1679
|
-
return stringifiableToString(value.textContent);
|
|
1680
|
-
return encode(value.toString());
|
|
1681
|
-
}
|
|
1682
|
-
function normalize(value) {
|
|
1683
|
-
if (value instanceof HTMLFormElement)
|
|
1684
|
-
return normalize(new FormData(value));
|
|
1685
|
-
if (value instanceof FormData) {
|
|
1686
|
-
var result_1 = {};
|
|
1687
|
-
value.forEach(function (value, key) {
|
|
1688
|
-
var name;
|
|
1689
|
-
if (value instanceof File)
|
|
1690
|
-
name = value.name;
|
|
1691
|
-
else
|
|
1692
|
-
name = value;
|
|
1693
|
-
if (Object.prototype.hasOwnProperty.call(result_1, key)) {
|
|
1694
|
-
var prev = result_1[key];
|
|
1695
|
-
if (Array.isArray(prev))
|
|
1696
|
-
prev.push(name);
|
|
1697
|
-
else
|
|
1698
|
-
result_1[key] = [prev, name];
|
|
1699
|
-
}
|
|
1700
|
-
else {
|
|
1701
|
-
result_1[key] = name;
|
|
1702
|
-
}
|
|
1703
|
-
});
|
|
1704
|
-
return normalize(result_1);
|
|
1705
|
-
}
|
|
1706
|
-
var result = {};
|
|
1707
|
-
var keys = Object.keys(value);
|
|
1708
|
-
for (var i = 0; i < keys.length; i++) {
|
|
1709
|
-
var key = keys[i];
|
|
1710
|
-
result[key] = stringifiableToString(value[key]);
|
|
1711
|
-
}
|
|
1712
|
-
if (typeof result.to === 'undefined')
|
|
1713
|
-
result.to = '';
|
|
1714
|
-
if (typeof result.cc === 'undefined')
|
|
1715
|
-
result.cc = '';
|
|
1716
|
-
if (typeof result.bcc === 'undefined')
|
|
1717
|
-
result.bcc = '';
|
|
1718
|
-
if (typeof result.subject === 'undefined')
|
|
1719
|
-
result.subject = '';
|
|
1720
|
-
if (typeof result.body === 'undefined')
|
|
1721
|
-
result.body = '';
|
|
1722
|
-
return result;
|
|
1723
|
-
}
|
|
1724
|
-
function openMessenger(options, type) {
|
|
1725
|
-
options = normalize(options);
|
|
1726
|
-
return tryOpenURL(type
|
|
1727
|
-
+ ':' + options.to
|
|
1728
|
-
+ '?cc=' + options.cc
|
|
1729
|
-
+ '&bcc=' + options.bcc
|
|
1730
|
-
+ '&subject=' + options.subject
|
|
1731
|
-
+ '&body=' + options.body, 0, getDefaultTimeoutByOS(Platform.os.name));
|
|
1732
|
-
}
|
|
1733
|
-
function openMessengerTelephone(options) {
|
|
1734
|
-
return openMessenger(options, 'tel');
|
|
1735
|
-
}
|
|
1736
|
-
function openMessengerMessage(options) {
|
|
1737
|
-
return openMessenger(options, 'sms');
|
|
1738
|
-
}
|
|
1739
|
-
function openMessengerMail(options) {
|
|
1740
|
-
return openMessenger(options, 'mailto');
|
|
1741
|
-
}
|
|
1742
|
-
function setting(type) {
|
|
1743
|
-
var os = Platform.os.name;
|
|
1744
|
-
var version = Platform.os.version;
|
|
1745
|
-
if (os === OS.Unknown)
|
|
1746
|
-
return Promise.reject(getURLOpenError([]));
|
|
1747
|
-
if (os === OS.Android && !canOpenIntentURL())
|
|
1748
|
-
return Promise.reject(getURLOpenError([]));
|
|
1749
|
-
if (os === OS.iOS)
|
|
1750
|
-
return Promise.reject(getURLOpenError([]));
|
|
1751
|
-
if (os === OS.Windows && (version === 'Vista' || version === 'XP' || version === '2000' || version === 'NT 4.0' || version === 'NT 3.11' || version === 'ME' || compareVersion(version, '10') < 0))
|
|
1752
|
-
return Promise.reject(getURLOpenError([]));
|
|
1753
|
-
if (os === OS.MacOS && compareVersion(version, '10.10') < 0)
|
|
1754
|
-
return Promise.reject(getURLOpenError([]));
|
|
1755
|
-
var urls = [];
|
|
1756
|
-
switch (os) {
|
|
1757
|
-
case OS.Android:
|
|
1758
|
-
if (type !== SettingType.General) {
|
|
1759
|
-
if (type === SettingType.Accessibility && compareVersion(version, '1.6') >= 0)
|
|
1760
|
-
urls.push(SETTING_URL['Android'][SettingType.Accessibility]);
|
|
1761
|
-
else if (type === SettingType.Battery && compareVersion(version, '5.1') >= 0)
|
|
1762
|
-
urls.push(SETTING_URL['Android'][SettingType.Battery]);
|
|
1763
|
-
else if (type === SettingType.Accounts && compareVersion(version, '1.5') >= 0)
|
|
1764
|
-
urls.push(SETTING_URL['Android'][SettingType.Accounts]);
|
|
1765
|
-
else if (type === SettingType.Storage && compareVersion(version, '3.0') >= 0)
|
|
1766
|
-
urls.push(SETTING_URL['Android'][SettingType.Storage]);
|
|
1767
|
-
else
|
|
1768
|
-
urls.push(SETTING_URL['Android'][type]);
|
|
1769
|
-
}
|
|
1770
|
-
urls.push(SETTING_URL['Android'][SettingType.General]);
|
|
1771
|
-
break;
|
|
1772
|
-
case OS.Windows:
|
|
1773
|
-
urls.push(SETTING_URL['Windows'][type]);
|
|
1774
|
-
break;
|
|
1775
|
-
case OS.MacOS:
|
|
1776
|
-
if (type === SettingType.Appearance && compareVersion(version, '10.14') < 0) {
|
|
1777
|
-
urls.push(SETTING_URL['MacOS'][SettingType.General]);
|
|
1778
|
-
break;
|
|
1779
|
-
}
|
|
1780
|
-
if (compareVersion(version, '13.0') < 0)
|
|
1781
|
-
urls.push(SETTING_URL['MacOS'][type]);
|
|
1782
|
-
else
|
|
1783
|
-
urls.push(SETTING_URL['MacOS13+'][type]);
|
|
1784
|
-
break;
|
|
1785
|
-
}
|
|
1786
|
-
return new Promise(function (resolve, reject) {
|
|
1787
|
-
function openURLSequential(index) {
|
|
1788
|
-
if (index === void 0) { index = 0; }
|
|
1789
|
-
if (index >= urls.length)
|
|
1790
|
-
return reject(getURLOpenError([]));
|
|
1791
|
-
var url = urls[index];
|
|
1792
|
-
return tryOpenURL(url, index, 750)
|
|
1793
|
-
.then(function () {
|
|
1794
|
-
resolve();
|
|
1795
|
-
})
|
|
1796
|
-
.catch(function () {
|
|
1797
|
-
openURLSequential(index + 1);
|
|
1798
|
-
});
|
|
1799
|
-
}
|
|
1800
|
-
return openURLSequential();
|
|
1801
|
-
});
|
|
1802
|
-
}
|
|
1803
|
-
|
|
1804
|
-
return App;
|
|
1805
|
-
|
|
1806
|
-
}));
|