@100mslive/roomkit-react 0.3.11-alpha.7 → 0.3.12-alpha.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{HLSView-6WWKBVGS.js → HLSView-2BPYWKSN.js} +2 -2
- package/dist/{HLSView-QAQYL76T.css → HLSView-OAQTW322.css} +3 -3
- package/dist/{HLSView-QAQYL76T.css.map → HLSView-OAQTW322.css.map} +1 -1
- package/dist/Prebuilt/common/constants.d.ts +3 -0
- package/dist/{chunk-QYLNZM7J.js → chunk-D5F44IP2.js} +597 -509
- package/dist/chunk-D5F44IP2.js.map +7 -0
- package/dist/index.cjs.css +2 -2
- package/dist/index.cjs.css.map +1 -1
- package/dist/index.cjs.js +659 -597
- package/dist/index.cjs.js.map +4 -4
- package/dist/index.css +2 -2
- package/dist/index.css.map +1 -1
- package/dist/index.js +1 -1
- package/dist/meta.cjs.json +66 -66
- package/dist/meta.esbuild.json +76 -76
- package/package.json +7 -7
- package/src/Prebuilt/common/constants.ts +3 -0
- package/src/Prebuilt/components/MoreSettings/CaptionContent.tsx +11 -4
- package/src/Prebuilt/components/MoreSettings/SplitComponents/DesktopOptions.tsx +40 -3
- package/src/Prebuilt/components/MoreSettings/SplitComponents/MwebOptions.tsx +20 -1
- package/src/Prebuilt/components/Notifications/Notifications.tsx +44 -3
- package/src/Prebuilt/components/VideoLayouts/GridLayout.tsx +0 -16
- package/src/Prebuilt/plugins/CaptionsViewer.tsx +10 -2
- package/dist/chunk-QYLNZM7J.js.map +0 -7
- /package/dist/{HLSView-6WWKBVGS.js.map → HLSView-2BPYWKSN.js.map} +0 -0
@@ -14,13 +14,13 @@ var __export = (target, all) => {
|
|
14
14
|
for (var name in all)
|
15
15
|
__defProp(target, name, { get: all[name], enumerable: true });
|
16
16
|
};
|
17
|
-
var __copyProps = (
|
17
|
+
var __copyProps = (to, from, except, desc) => {
|
18
18
|
if (from && typeof from === "object" || typeof from === "function") {
|
19
19
|
for (let key of __getOwnPropNames(from))
|
20
|
-
if (!__hasOwnProp.call(
|
21
|
-
__defProp(
|
20
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
21
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
22
22
|
}
|
23
|
-
return
|
23
|
+
return to;
|
24
24
|
};
|
25
25
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
26
26
|
// If the importer is in node compatibility mode or this is not an ESM
|
@@ -35,7 +35,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
35
35
|
var define_process_env_default;
|
36
36
|
var init_define_process_env = __esm({
|
37
37
|
"<define:process.env>"() {
|
38
|
-
define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_87dc0576-065d-4bb7-8f6f-d7f9dae2128d", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_devDependencies__types_node: "^16.11.17", npm_package_exports___index_css: "./dist/index.css", npm_package_exports___require: "./dist/index.cjs.js", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_dependencies_screenfull: "^5.1.0", npm_package_dependencies_react_draggable: "^4.4.5", npm_package_dependencies__radix_ui_react_switch: "1.0.0", npm_package_dependencies__100mslive_hms_whiteboard: "0.0.1-alpha.7", USER: "runner", npm_package_devDependencies_jest: "26.6.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.22 npm/? node/v18.20.2 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_scripts_babel: "npx storybook@latest babelrc", CI: "true", npm_package_devDependencies__size_limit_file: "^5.0.3", npm_config_bin_links: "true", npm_config_wrap_output: "", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", npm_package_dependencies__100mslive_react_sdk: "0.10.11-alpha.7", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_87dc0576-065d-4bb7-8f6f-d7f9dae2128d", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.2/x64/bin/node", npm_config_init_version: "1.0.0", npm_package_dependencies__emoji_mart_react: "^1.0.1", npm_package_dependencies__emoji_mart_data: "^1.0.6", npm_package_dependencies__100mslive_hms_virtual_background: "1.13.11-alpha.7", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_dependencies__100mslive_types_prebuilt: "0.12.8", npm_package_peerDependencies_react: ">=17.0.2 <19.0.0", npm_package_devDependencies__storybook_addon_links: "^7.0.27", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_devDependencies__typescript_eslint_parser: "^5.4.0", npm_package_dependencies__radix_ui_react_dialog: "1.0.4", npm_package_devDependencies__types_react_window: "^1.8.5", npm_package_files_1: "src", npm_package_repository_directory: "packages/roomkit-react", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_scripts_controller: "cd packages/hls-controller && yarn start", npm_package_dependencies__stitches_react: "^1.2.8", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "100mslive", npm_package_engines_node: ">=16", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-8.7", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/26.3.11579264", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", YARN_WRAP_OUTPUT: "false", npm_config_version_tag_prefix: "v", GITHUB_REPOSITORY_OWNER_ID: "73883131", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu22", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_scripts_lint_fix: "yarn lint --fix", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", npm_package_devDependencies__storybook_addon_a11y: "^7.0.27", SYSTEMD_EXEC_PID: "588", npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_keywords_1: "react", GOROOT_1_20_X64: "/opt/hostedtoolcache/go/1.20.14/x64", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_devDependencies_react: "^18.1.0", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_2: "prebuilt", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.10/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240516.1.0", npm_package_devDependencies_prettier: "^2.4.1", npm_package_devDependencies_babel_jest: "^26.6.0", npm_package_scripts_dev: "node ../../scripts/dev", npm_package_keywords_3: "roomkit", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.3/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", FORCE_COLOR: "true", npm_package_dependencies__radix_ui_react_toast: "1.0.0", npm_package_dependencies__radix_ui_react_radio_group: "1.0.0", npm_package_dependencies__100mslive_hms_noise_cancellation: "0.0.1", npm_package_devDependencies__babel_preset_typescript: "^7.22.5", npm_package_exports___default: "./dist/index.js", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "8:17135", GITHUB_WORKFLOW: "Publish Packages", _: "/usr/local/bin/yarn", npm_package_devDependencies_ts_jest: "26.5.6", npm_package_devDependencies_lerna: "^5.6.2", npm_package_devDependencies__types_jest: "^27.0.3", npm_package_devDependencies__commitlint_config_conventional: "^15.0.0", npm_package_private: "true", npm_package_dependencies__radix_ui_react_accordion: "1.0.0", npm_package_devDependencies__babel_preset_react: "^7.22.5", npm_package_module: "dist/index.js", npm_package_scripts_lint: "eslint -c .eslintrc --no-error-on-unmatched-pattern src --ext .js --ext .jsx --ext .ts --ext .tsx", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^5.4.0", npm_config_registry: "https://registry.yarnpkg.com", npm_package_dependencies_react_window: "^1.8.7", npm_package_dependencies__100mslive_hls_player: "0.3.11-alpha.7", npm_package_devDependencies__types_lodash_merge: "^4.6.6", npm_package_devDependencies__storybook_cli: "^7.0.27", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", STATS_D: "false", GITHUB_RUN_ID: "9220697286", STATS_VMFE: "true", npm_package_workspaces_0: "packages/*", npm_package_scripts_store: "cd packages/hms-video-store && yarn start", npm_package_devDependencies__babel_core: "^7.18.2", npm_package_dependencies_ts_pattern: "4.3.0", npm_package_devDependencies__storybook_addon_interactions: "^7.0.27", npm_package_devDependencies__storybook_addon_actions: "^7.0.27", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "361d36f30fc8719e81d889901337ef3936cd88bc", GITHUB_BASE_REF: "", ImageOS: "ubuntu22", npm_package_workspaces_1: "examples/*", npm_package_scripts_start: 'concurrently "yarn dev" "yarn types"', npm_config_ignore_scripts: "", NX_TASK_HASH: "9d96eb401dc2045675a81d8e5bd4cb69d9cb51d2c43b846c5a67e9a76d00a8a4", npm_package_exports___import: "./dist/index.js", GITHUB_WORKFLOW_REF: "100mslive/web-sdks/.github/workflows/publish.yml@refs/heads/publish-alpha", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_scripts_prebuilt: "cd packages/roomkit-react && yarn start", npm_package_devDependencies_postcss_loader: "^6.2.1", npm_package_devDependencies_esbuild_loader: "^4.0.2", PATH: "/tmp/yarn--1716537953325-0.03320129787940629:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.2/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.2/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.2/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1716537953126-0.5077671552247847:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.2/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.2/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.2/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1716537926973-0.09729400508481811:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.2/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.2/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.2/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1716537926791-0.08446416483312769:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.2/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.2/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.2/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.2/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", NODE: "/opt/hostedtoolcache/node/18.20.2/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_cf113649-e348-4ac1-9cb4-f0c0a6afaa96", INVOCATION_ID: "585e74742f154f589c7ff9dbaa0f303a", NPM_CONFIG_USERCONFIG: "/home/runner/work/_temp/.npmrc", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", npm_package_scripts_size: "size-limit", npm_package_devDependencies_size_limit: "^5.0.3", npm_package_name: "@100mslive/roomkit-react", npm_package_devDependencies__storybook_react_webpack5: "^7.0.27", npm_package_repository_type: "git", GITHUB_ACTION: "__run_3", GITHUB_RUN_NUMBER: "554", GITHUB_TRIGGERING_ACTOR: "github-actions[bot]", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "20 KB", npm_package_devDependencies__commitlint_cli: "^15.0.0", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_size_limit_1_limit: "20 KB", npm_package_devDependencies_eslint_plugin_simple_import_sort: "^8.0.0", npm_package_devDependencies_eslint: "^8.9.0", npm_package_dependencies_react_intersection_observer: "^9.4.3", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 302", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "publish-alpha", GITHUB_REPOSITORY: "100mslive/web-sdks", STATS_D_D: "false", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_size_limit_2_limit: "400 KB", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_size_limit_3_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_cypress_open: "cypress open", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_devDependencies_concurrently: "^6.4.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_dependencies__100mslive_react_icons: "0.10.11-alpha.7", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.11-alpha.7", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", npm_package_devDependencies__types_react: "^18.1.0", npm_package_sideEffects: "false", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_source: "src/index.ts", GITHUB_REF_PROTECTED: "true", npm_config_argv: '{"remain":[],"cooked":["run","test"],"original":["test"]}', npm_package_size_limit_5_limit: "20 KB", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies_nx: "^14.5.1", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_uuid: "^8.3.2", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies_emoji_mart: "^5.2.2", GITHUB_WORKSPACE: "/home/runner/work/web-sdks/web-sdks", ACCEPT_EULA: "Y", GITHUB_JOB: "publish_packages", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_size_limit_6_limit: "150 KB", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_devDependencies_cypress: "^9.5.2", GITHUB_SHA: "361d36f30fc8719e81d889901337ef3936cd88bc", GITHUB_RUN_ATTEMPT: "1", npm_package_size_limit_7_limit: "100 KB", npm_package_size_limit_4_path: "packages/hms-virtual-background/dist/index.cjs.js", npm_config_version_git_tag: "true", npm_config_version_git_sign: "", npm_package_dependencies_qrcode_react: "^3.1.0", GITHUB_REF: "refs/heads/publish-alpha", GITHUB_ACTOR: "github-actions[bot]", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "MIT", npm_package_size_limit_5_path: "packages/hms-virtual-background/dist/index.js", npm_config_strict_ssl: "true", LEIN_HOME: "/usr/local/lib/lein", npm_package_size_limit_6_path: "packages/react-icons/dist/index.cjs.js", npm_package_scripts_format: "prettier -w src/**", npm_package_devDependencies_eslint_plugin_prettier: "^4.0.0", npm_package_devDependencies_eslint_config_react_app: "^7.0.0", NX_TASK_TARGET_PROJECT: "@100mslive/roomkit-react", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_87dc0576-065d-4bb7-8f6f-d7f9dae2128d", JAVA_HOME: "/usr/lib/jvm/temurin-11-jdk-amd64", PWD: "/home/runner/work/web-sdks/web-sdks/packages/roomkit-react", GITHUB_ACTOR_ID: "41898282", RUNNER_WORKSPACE: "/home/runner/work/web-sdks", npm_execpath: "/usr/local/lib/node_modules/yarn/bin/yarn.js", npm_package_size_limit_7_path: "packages/react-icons/dist/index.js", npm_package_scripts_ybys: "yarn && yarn build --no-private && yarn storybook", npm_package_dependencies__radix_ui_react_progress: "1.0.0", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", STATS_TIS: "mining", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", LEIN_JAR: "/usr/local/lib/lein/self-installs/leiningen-2.11.2-standalone.jar", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_87dc0576-065d-4bb7-8f6f-d7f9dae2128d", npm_package_scripts_prestart: "rm -rf dist && yarn types:build", npm_package_author_name: "100ms", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", npm_package_scripts_build_storybook: "sb build", npm_package_devDependencies_postcss: "^8.4.5", npm_package_devDependencies_esbuild: "^0.18.13", npm_config_save_prefix: "^", npm_config_ignore_optional: "", npm_package_dependencies_worker_timers: "^7.0.40", npm_package_typings: "dist/index.d.ts", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/25.2.9519653", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_scripts_storybook: "sb dev -p 6006", npm_package_devDependencies_esbuild_plugin_postcss2: "0.1.1", npm_package_dependencies_react_swipeable: "^7.0.1", npm_package_devDependencies_babel_plugin_react_require: "3.1.3", npm_package_devDependencies__storybook_testing_library: "^0.2.0", npm_package_devDependencies__storybook_addon_essentials: "^7.0.27", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", STATS_EXTP: "https://provjobdsettingscdn.blob.core.windows.net/settings/provjobdsettings-0.5.172+1/provjobd.data", npm_package_scripts_reactsdk: "cd packages/react-sdk && yarn start", npm_package_dependencies_react_use: "^17.4.0", npm_package_dependencies__radix_ui_react_collapsible: "1.0.0", npm_package_devDependencies_storybook_dark_mode: "^3.0.0", npm_package_devDependencies__storybook_react: "^7.0.27", INIT_CWD: "/home/runner/work/web-sdks/web-sdks", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_87dc0576-065d-4bb7-8f6f-d7f9dae2128d" };
|
38
|
+
define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_d9e70c58-3ac7-4ff1-b0ea-3339cd9dd05d", GIT_CLONE_PROTECTION_ACTIVE: "false", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_devDependencies__types_node: "^16.11.17", npm_package_exports___index_css: "./dist/index.css", npm_package_exports___require: "./dist/index.cjs.js", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_dependencies_screenfull: "^5.1.0", npm_package_dependencies_react_draggable: "^4.4.5", npm_package_dependencies__radix_ui_react_switch: "1.0.0", npm_package_dependencies__100mslive_hms_whiteboard: "0.0.2-alpha.0", USER: "runner", npm_package_devDependencies_jest: "26.6.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.22 npm/? node/v18.20.3 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_scripts_babel: "npx storybook@latest babelrc", CI: "true", npm_package_devDependencies__size_limit_file: "^5.0.3", npm_config_bin_links: "true", npm_config_wrap_output: "", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", npm_package_dependencies__100mslive_react_sdk: "0.10.12-alpha.0", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_d9e70c58-3ac7-4ff1-b0ea-3339cd9dd05d", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.3/x64/bin/node", npm_config_init_version: "1.0.0", npm_package_dependencies__emoji_mart_react: "^1.0.1", npm_package_dependencies__emoji_mart_data: "^1.0.6", npm_package_dependencies__100mslive_hms_virtual_background: "1.13.12-alpha.0", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_dependencies__100mslive_types_prebuilt: "0.12.8", npm_package_peerDependencies_react: ">=17.0.2 <19.0.0", npm_package_devDependencies__storybook_addon_links: "^7.0.27", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_devDependencies__typescript_eslint_parser: "^5.4.0", npm_package_dependencies__radix_ui_react_dialog: "1.0.4", npm_package_devDependencies__types_react_window: "^1.8.5", npm_package_files_1: "src", npm_package_repository_directory: "packages/roomkit-react", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_scripts_controller: "cd packages/hls-controller && yarn start", npm_package_dependencies__stitches_react: "^1.2.8", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "100mslive", npm_package_engines_node: ">=16", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-8.7", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/26.3.11579264", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", YARN_WRAP_OUTPUT: "false", npm_config_version_tag_prefix: "v", GITHUB_REPOSITORY_OWNER_ID: "73883131", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu22", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_scripts_lint_fix: "yarn lint --fix", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", npm_package_devDependencies__storybook_addon_a11y: "^7.0.27", SYSTEMD_EXEC_PID: "594", npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_keywords_1: "react", GOROOT_1_20_X64: "/opt/hostedtoolcache/go/1.20.14/x64", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_devDependencies_react: "^18.1.0", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_2: "prebuilt", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.10/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240526.1.0", npm_package_devDependencies_prettier: "^2.4.1", npm_package_devDependencies_babel_jest: "^26.6.0", npm_package_scripts_dev: "node ../../scripts/dev", npm_package_keywords_3: "roomkit", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.3/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", FORCE_COLOR: "true", npm_package_dependencies__radix_ui_react_toast: "1.0.0", npm_package_dependencies__radix_ui_react_radio_group: "1.0.0", npm_package_dependencies__100mslive_hms_noise_cancellation: "0.0.1", npm_package_devDependencies__babel_preset_typescript: "^7.22.5", npm_package_exports___default: "./dist/index.js", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "8:3986", GITHUB_WORKFLOW: "Publish Packages", _: "/usr/local/bin/yarn", npm_package_devDependencies_ts_jest: "26.5.6", npm_package_devDependencies_lerna: "^5.6.2", npm_package_devDependencies__types_jest: "^27.0.3", npm_package_devDependencies__commitlint_config_conventional: "^15.0.0", npm_package_private: "true", npm_package_dependencies__radix_ui_react_accordion: "1.0.0", npm_package_devDependencies__babel_preset_react: "^7.22.5", npm_package_module: "dist/index.js", npm_package_scripts_lint: "eslint -c .eslintrc --no-error-on-unmatched-pattern src --ext .js --ext .jsx --ext .ts --ext .tsx", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^5.4.0", npm_config_registry: "https://registry.yarnpkg.com", npm_package_dependencies_react_window: "^1.8.7", npm_package_dependencies__100mslive_hls_player: "0.3.12-alpha.0", npm_package_devDependencies__types_lodash_merge: "^4.6.6", npm_package_devDependencies__storybook_cli: "^7.0.27", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", STATS_D: "false", GITHUB_RUN_ID: "9269035618", STATS_VMFE: "true", npm_package_workspaces_0: "packages/*", npm_package_scripts_store: "cd packages/hms-video-store && yarn start", npm_package_devDependencies__babel_core: "^7.18.2", npm_package_dependencies_ts_pattern: "4.3.0", npm_package_devDependencies__storybook_addon_interactions: "^7.0.27", npm_package_devDependencies__storybook_addon_actions: "^7.0.27", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "5e32c0c62aba5aa7786a01912511da6ac33461a2", GITHUB_BASE_REF: "", ImageOS: "ubuntu22", npm_package_workspaces_1: "examples/*", npm_package_scripts_start: 'concurrently "yarn dev" "yarn types"', npm_config_ignore_scripts: "", NX_TASK_HASH: "a032bdda38522f03fc4df5ac19864f12bd248241bd91a11225af8148788acdf6", npm_package_exports___import: "./dist/index.js", GITHUB_WORKFLOW_REF: "100mslive/web-sdks/.github/workflows/publish.yml@refs/heads/publish-alpha", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_scripts_prebuilt: "cd packages/roomkit-react && yarn start", npm_package_devDependencies_postcss_loader: "^6.2.1", npm_package_devDependencies_esbuild_loader: "^4.0.2", PATH: "/tmp/yarn--1716898360070-0.881364093455451:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.3/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1716898359878-0.8488005882304257:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.3/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1716898334486-0.8594319896409424:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.3/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1716898334308-0.23460802030975314:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.3/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", NODE: "/opt/hostedtoolcache/node/18.20.3/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_ba133ce6-833f-402a-8dd1-b021c5a4b24a", INVOCATION_ID: "f4fd7e7f03a246579fee24c687ded40c", NPM_CONFIG_USERCONFIG: "/home/runner/work/_temp/.npmrc", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", npm_package_scripts_size: "size-limit", npm_package_devDependencies_size_limit: "^5.0.3", npm_package_name: "@100mslive/roomkit-react", npm_package_devDependencies__storybook_react_webpack5: "^7.0.27", npm_package_repository_type: "git", GITHUB_ACTION: "__run_3", GITHUB_RUN_NUMBER: "557", GITHUB_TRIGGERING_ACTOR: "raviteja83", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "20 KB", npm_package_devDependencies__commitlint_cli: "^15.0.0", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_size_limit_1_limit: "20 KB", npm_package_devDependencies_eslint_plugin_simple_import_sort: "^8.0.0", npm_package_devDependencies_eslint: "^8.9.0", npm_package_dependencies_react_intersection_observer: "^9.4.3", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 423", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "publish-alpha", GITHUB_REPOSITORY: "100mslive/web-sdks", STATS_D_D: "false", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_size_limit_2_limit: "400 KB", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_size_limit_3_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_cypress_open: "cypress open", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_devDependencies_concurrently: "^6.4.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_dependencies__100mslive_react_icons: "0.10.12-alpha.0", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.12-alpha.0", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", npm_package_devDependencies__types_react: "^18.1.0", npm_package_sideEffects: "false", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_source: "src/index.ts", GITHUB_REF_PROTECTED: "true", npm_config_argv: '{"remain":[],"cooked":["run","test"],"original":["test"]}', npm_package_size_limit_5_limit: "20 KB", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies_nx: "^14.5.1", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_uuid: "^8.3.2", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies_emoji_mart: "^5.2.2", GITHUB_WORKSPACE: "/home/runner/work/web-sdks/web-sdks", ACCEPT_EULA: "Y", GITHUB_JOB: "publish_packages", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_size_limit_6_limit: "150 KB", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_devDependencies_cypress: "^9.5.2", GITHUB_SHA: "5e32c0c62aba5aa7786a01912511da6ac33461a2", GITHUB_RUN_ATTEMPT: "1", npm_package_size_limit_7_limit: "100 KB", npm_package_size_limit_4_path: "packages/hms-virtual-background/dist/index.cjs.js", npm_config_version_git_tag: "true", npm_config_version_git_sign: "", npm_package_dependencies_qrcode_react: "^3.1.0", GITHUB_REF: "refs/heads/publish-alpha", GITHUB_ACTOR: "raviteja83", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "MIT", npm_package_size_limit_5_path: "packages/hms-virtual-background/dist/index.js", npm_config_strict_ssl: "true", LEIN_HOME: "/usr/local/lib/lein", npm_package_size_limit_6_path: "packages/react-icons/dist/index.cjs.js", npm_package_scripts_format: "prettier -w src/**", npm_package_devDependencies_eslint_plugin_prettier: "^4.0.0", npm_package_devDependencies_eslint_config_react_app: "^7.0.0", NX_TASK_TARGET_PROJECT: "@100mslive/roomkit-react", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_d9e70c58-3ac7-4ff1-b0ea-3339cd9dd05d", JAVA_HOME: "/usr/lib/jvm/temurin-11-jdk-amd64", PWD: "/home/runner/work/web-sdks/web-sdks/packages/roomkit-react", GITHUB_ACTOR_ID: "6763261", RUNNER_WORKSPACE: "/home/runner/work/web-sdks", npm_execpath: "/usr/local/lib/node_modules/yarn/bin/yarn.js", npm_package_size_limit_7_path: "packages/react-icons/dist/index.js", npm_package_scripts_ybys: "yarn && yarn build --no-private && yarn storybook", npm_package_dependencies__radix_ui_react_progress: "1.0.0", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", STATS_TIS: "mining", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", LEIN_JAR: "/usr/local/lib/lein/self-installs/leiningen-2.11.2-standalone.jar", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_d9e70c58-3ac7-4ff1-b0ea-3339cd9dd05d", npm_package_scripts_prestart: "rm -rf dist && yarn types:build", npm_package_author_name: "100ms", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", npm_package_scripts_build_storybook: "sb build", npm_package_devDependencies_postcss: "^8.4.5", npm_package_devDependencies_esbuild: "^0.18.13", npm_config_save_prefix: "^", npm_config_ignore_optional: "", npm_package_dependencies_worker_timers: "^7.0.40", npm_package_typings: "dist/index.d.ts", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/25.2.9519653", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_scripts_storybook: "sb dev -p 6006", npm_package_devDependencies_esbuild_plugin_postcss2: "0.1.1", npm_package_dependencies_react_swipeable: "^7.0.1", npm_package_devDependencies_babel_plugin_react_require: "3.1.3", npm_package_devDependencies__storybook_testing_library: "^0.2.0", npm_package_devDependencies__storybook_addon_essentials: "^7.0.27", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", STATS_EXTP: "https://provjobdsettingscdn.blob.core.windows.net/settings/provjobdsettings-0.5.181+6/provjobd.data", npm_package_scripts_reactsdk: "cd packages/react-sdk && yarn start", npm_package_dependencies_react_use: "^17.4.0", npm_package_dependencies__radix_ui_react_collapsible: "1.0.0", npm_package_devDependencies_storybook_dark_mode: "^3.0.0", npm_package_devDependencies__storybook_react: "^7.0.27", INIT_CWD: "/home/runner/work/web-sdks/web-sdks", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_d9e70c58-3ac7-4ff1-b0ea-3339cd9dd05d" };
|
39
39
|
}
|
40
40
|
});
|
41
41
|
|
@@ -730,7 +730,7 @@ var require_lodash = __commonJS({
|
|
730
730
|
return string.match(reUnicodeWord) || [];
|
731
731
|
}
|
732
732
|
var runInContext = function runInContext2(context) {
|
733
|
-
context = context == null ? root :
|
733
|
+
context = context == null ? root : _2.defaults(root.Object(), context, _2.pick(root, contextProps));
|
734
734
|
var Array2 = context.Array, Date2 = context.Date, Error2 = context.Error, Function2 = context.Function, Math2 = context.Math, Object2 = context.Object, RegExp2 = context.RegExp, String2 = context.String, TypeError2 = context.TypeError;
|
735
735
|
var arrayProto = Array2.prototype, funcProto = Function2.prototype, objectProto = Object2.prototype;
|
736
736
|
var coreJsData = context["__core-js_shared__"];
|
@@ -2857,8 +2857,8 @@ var require_lodash = __commonJS({
|
|
2857
2857
|
return { "start": start, "end": end };
|
2858
2858
|
}
|
2859
2859
|
function getWrapDetails(source) {
|
2860
|
-
var
|
2861
|
-
return
|
2860
|
+
var match17 = source.match(reWrapDetails);
|
2861
|
+
return match17 ? match17[1].split(reSplitDetails) : [];
|
2862
2862
|
}
|
2863
2863
|
function hasPath(object, path, hasFunc) {
|
2864
2864
|
path = castPath(path, object);
|
@@ -3126,8 +3126,8 @@ var require_lodash = __commonJS({
|
|
3126
3126
|
if (string.charCodeAt(0) === 46) {
|
3127
3127
|
result2.push("");
|
3128
3128
|
}
|
3129
|
-
string.replace(rePropName, function(
|
3130
|
-
result2.push(quote ? subString.replace(reEscapeChar, "$1") : number ||
|
3129
|
+
string.replace(rePropName, function(match17, number, quote, subString) {
|
3130
|
+
result2.push(quote ? subString.replace(reEscapeChar, "$1") : number || match17);
|
3131
3131
|
});
|
3132
3132
|
return result2;
|
3133
3133
|
});
|
@@ -4693,7 +4693,7 @@ var require_lodash = __commonJS({
|
|
4693
4693
|
"g"
|
4694
4694
|
);
|
4695
4695
|
var sourceURL = "//# sourceURL=" + (hasOwnProperty.call(options, "sourceURL") ? (options.sourceURL + "").replace(/\s/g, " ") : "lodash.templateSources[" + ++templateCounter + "]") + "\n";
|
4696
|
-
string.replace(reDelimiters, function(
|
4696
|
+
string.replace(reDelimiters, function(match17, escapeValue, interpolateValue, esTemplateValue, evaluateValue, offset) {
|
4697
4697
|
interpolateValue || (interpolateValue = esTemplateValue);
|
4698
4698
|
source += string.slice(index, offset).replace(reUnescapedString, escapeStringChar);
|
4699
4699
|
if (escapeValue) {
|
@@ -4707,8 +4707,8 @@ var require_lodash = __commonJS({
|
|
4707
4707
|
if (interpolateValue) {
|
4708
4708
|
source += "' +\n((__t = (" + interpolateValue + ")) == null ? '' : __t) +\n'";
|
4709
4709
|
}
|
4710
|
-
index = offset +
|
4711
|
-
return
|
4710
|
+
index = offset + match17.length;
|
4711
|
+
return match17;
|
4712
4712
|
});
|
4713
4713
|
source += "';\n";
|
4714
4714
|
var variable = hasOwnProperty.call(options, "variable") && options.variable;
|
@@ -4796,13 +4796,13 @@ var require_lodash = __commonJS({
|
|
4796
4796
|
}
|
4797
4797
|
if (isRegExp(separator)) {
|
4798
4798
|
if (string.slice(end).search(separator)) {
|
4799
|
-
var
|
4799
|
+
var match17, substring = result2;
|
4800
4800
|
if (!separator.global) {
|
4801
4801
|
separator = RegExp2(separator.source, toString(reFlags.exec(separator)) + "g");
|
4802
4802
|
}
|
4803
4803
|
separator.lastIndex = 0;
|
4804
|
-
while (
|
4805
|
-
var newEnd =
|
4804
|
+
while (match17 = separator.exec(substring)) {
|
4805
|
+
var newEnd = match17.index;
|
4806
4806
|
}
|
4807
4807
|
result2 = result2.slice(0, newEnd === undefined2 ? end : newEnd);
|
4808
4808
|
}
|
@@ -5504,17 +5504,17 @@ var require_lodash = __commonJS({
|
|
5504
5504
|
}
|
5505
5505
|
return lodash;
|
5506
5506
|
};
|
5507
|
-
var
|
5507
|
+
var _2 = runInContext();
|
5508
5508
|
if (typeof define == "function" && typeof define.amd == "object" && define.amd) {
|
5509
|
-
root._ =
|
5509
|
+
root._ = _2;
|
5510
5510
|
define(function() {
|
5511
|
-
return
|
5511
|
+
return _2;
|
5512
5512
|
});
|
5513
5513
|
} else if (freeModule) {
|
5514
|
-
(freeModule.exports =
|
5515
|
-
freeExports._ =
|
5514
|
+
(freeModule.exports = _2)._ = _2;
|
5515
|
+
freeExports._ = _2;
|
5516
5516
|
} else {
|
5517
|
-
root._ =
|
5517
|
+
root._ = _2;
|
5518
5518
|
}
|
5519
5519
|
}).call(exports);
|
5520
5520
|
}
|
@@ -5556,38 +5556,38 @@ var require_ua_parser = __commonJS({
|
|
5556
5556
|
return typeof len === UNDEF_TYPE ? str : str.substring(0, UA_MAX_LENGTH);
|
5557
5557
|
}
|
5558
5558
|
};
|
5559
|
-
var rgxMapper = function(
|
5560
|
-
var i = 0, j2,
|
5559
|
+
var rgxMapper = function(ua2, arrays) {
|
5560
|
+
var i = 0, j2, k, p, q, matches, match17;
|
5561
5561
|
while (i < arrays.length && !matches) {
|
5562
5562
|
var regex = arrays[i], props = arrays[i + 1];
|
5563
|
-
j2 =
|
5563
|
+
j2 = k = 0;
|
5564
5564
|
while (j2 < regex.length && !matches) {
|
5565
5565
|
if (!regex[j2]) {
|
5566
5566
|
break;
|
5567
5567
|
}
|
5568
|
-
matches = regex[j2++].exec(
|
5568
|
+
matches = regex[j2++].exec(ua2);
|
5569
5569
|
if (!!matches) {
|
5570
5570
|
for (p = 0; p < props.length; p++) {
|
5571
|
-
|
5572
|
-
|
5573
|
-
if (typeof
|
5574
|
-
if (
|
5575
|
-
if (typeof
|
5576
|
-
this[
|
5571
|
+
match17 = matches[++k];
|
5572
|
+
q = props[p];
|
5573
|
+
if (typeof q === OBJ_TYPE && q.length > 0) {
|
5574
|
+
if (q.length === 2) {
|
5575
|
+
if (typeof q[1] == FUNC_TYPE) {
|
5576
|
+
this[q[0]] = q[1].call(this, match17);
|
5577
5577
|
} else {
|
5578
|
-
this[
|
5578
|
+
this[q[0]] = q[1];
|
5579
5579
|
}
|
5580
|
-
} else if (
|
5581
|
-
if (typeof
|
5582
|
-
this[
|
5580
|
+
} else if (q.length === 3) {
|
5581
|
+
if (typeof q[1] === FUNC_TYPE && !(q[1].exec && q[1].test)) {
|
5582
|
+
this[q[0]] = match17 ? q[1].call(this, match17, q[2]) : undefined2;
|
5583
5583
|
} else {
|
5584
|
-
this[
|
5584
|
+
this[q[0]] = match17 ? match17.replace(q[1], q[2]) : undefined2;
|
5585
5585
|
}
|
5586
|
-
} else if (
|
5587
|
-
this[
|
5586
|
+
} else if (q.length === 4) {
|
5587
|
+
this[q[0]] = match17 ? q[3].call(this, match17.replace(q[1], q[2])) : undefined2;
|
5588
5588
|
}
|
5589
5589
|
} else {
|
5590
|
-
this[
|
5590
|
+
this[q] = match17 ? match17 : undefined2;
|
5591
5591
|
}
|
5592
5592
|
}
|
5593
5593
|
}
|
@@ -6654,16 +6654,16 @@ var require_ua_parser = __commonJS({
|
|
6654
6654
|
[NAME, VERSION]
|
6655
6655
|
]
|
6656
6656
|
};
|
6657
|
-
var UAParser = function(
|
6658
|
-
if (typeof
|
6659
|
-
extensions =
|
6660
|
-
|
6657
|
+
var UAParser = function(ua2, extensions) {
|
6658
|
+
if (typeof ua2 === OBJ_TYPE) {
|
6659
|
+
extensions = ua2;
|
6660
|
+
ua2 = undefined2;
|
6661
6661
|
}
|
6662
6662
|
if (!(this instanceof UAParser)) {
|
6663
|
-
return new UAParser(
|
6663
|
+
return new UAParser(ua2, extensions).getResult();
|
6664
6664
|
}
|
6665
6665
|
var _navigator = typeof window2 !== UNDEF_TYPE && window2.navigator ? window2.navigator : undefined2;
|
6666
|
-
var _ua =
|
6666
|
+
var _ua = ua2 || (_navigator && _navigator.userAgent ? _navigator.userAgent : EMPTY);
|
6667
6667
|
var _uach = _navigator && _navigator.userAgentData ? _navigator.userAgentData : undefined2;
|
6668
6668
|
var _rgxmap = extensions ? extend(regexes, extensions) : regexes;
|
6669
6669
|
var _isSelfNav = _navigator && _navigator.userAgent == _ua;
|
@@ -6729,8 +6729,8 @@ var require_ua_parser = __commonJS({
|
|
6729
6729
|
this.getUA = function() {
|
6730
6730
|
return _ua;
|
6731
6731
|
};
|
6732
|
-
this.setUA = function(
|
6733
|
-
_ua = typeof
|
6732
|
+
this.setUA = function(ua3) {
|
6733
|
+
_ua = typeof ua3 === STR_TYPE && ua3.length > UA_MAX_LENGTH ? trim(ua3, UA_MAX_LENGTH) : ua3;
|
6734
6734
|
return this;
|
6735
6735
|
};
|
6736
6736
|
this.setUA(_ua);
|
@@ -6762,8 +6762,8 @@ var require_ua_parser = __commonJS({
|
|
6762
6762
|
$2.ua.get = function() {
|
6763
6763
|
return parser.getUA();
|
6764
6764
|
};
|
6765
|
-
$2.ua.set = function(
|
6766
|
-
parser.setUA(
|
6765
|
+
$2.ua.set = function(ua2) {
|
6766
|
+
parser.setUA(ua2);
|
6767
6767
|
var result = parser.getResult();
|
6768
6768
|
for (var prop in result) {
|
6769
6769
|
$2.ua[prop] = result[prop];
|
@@ -7599,12 +7599,12 @@ var require_sdp = __commonJS({
|
|
7599
7599
|
return parsed;
|
7600
7600
|
};
|
7601
7601
|
SDPUtils2.writeRtpMap = function(codec) {
|
7602
|
-
let
|
7602
|
+
let pt2 = codec.payloadType;
|
7603
7603
|
if (codec.preferredPayloadType !== void 0) {
|
7604
|
-
|
7604
|
+
pt2 = codec.preferredPayloadType;
|
7605
7605
|
}
|
7606
7606
|
const channels = codec.channels || codec.numChannels || 1;
|
7607
|
-
return "a=rtpmap:" +
|
7607
|
+
return "a=rtpmap:" + pt2 + " " + codec.name + "/" + codec.clockRate + (channels !== 1 ? "/" + channels : "") + "\r\n";
|
7608
7608
|
};
|
7609
7609
|
SDPUtils2.parseExtmap = function(line) {
|
7610
7610
|
const parts = line.substring(9).split(" ");
|
@@ -7630,9 +7630,9 @@ var require_sdp = __commonJS({
|
|
7630
7630
|
};
|
7631
7631
|
SDPUtils2.writeFmtp = function(codec) {
|
7632
7632
|
let line = "";
|
7633
|
-
let
|
7633
|
+
let pt2 = codec.payloadType;
|
7634
7634
|
if (codec.preferredPayloadType !== void 0) {
|
7635
|
-
|
7635
|
+
pt2 = codec.preferredPayloadType;
|
7636
7636
|
}
|
7637
7637
|
if (codec.parameters && Object.keys(codec.parameters).length) {
|
7638
7638
|
const params = [];
|
@@ -7643,7 +7643,7 @@ var require_sdp = __commonJS({
|
|
7643
7643
|
params.push(param);
|
7644
7644
|
}
|
7645
7645
|
});
|
7646
|
-
line += "a=fmtp:" +
|
7646
|
+
line += "a=fmtp:" + pt2 + " " + params.join(";") + "\r\n";
|
7647
7647
|
}
|
7648
7648
|
return line;
|
7649
7649
|
};
|
@@ -7656,13 +7656,13 @@ var require_sdp = __commonJS({
|
|
7656
7656
|
};
|
7657
7657
|
SDPUtils2.writeRtcpFb = function(codec) {
|
7658
7658
|
let lines = "";
|
7659
|
-
let
|
7659
|
+
let pt2 = codec.payloadType;
|
7660
7660
|
if (codec.preferredPayloadType !== void 0) {
|
7661
|
-
|
7661
|
+
pt2 = codec.preferredPayloadType;
|
7662
7662
|
}
|
7663
7663
|
if (codec.rtcpFeedback && codec.rtcpFeedback.length) {
|
7664
7664
|
codec.rtcpFeedback.forEach((fb) => {
|
7665
|
-
lines += "a=rtcp-fb:" +
|
7665
|
+
lines += "a=rtcp-fb:" + pt2 + " " + fb.type + (fb.parameter && fb.parameter.length ? " " + fb.parameter : "") + "\r\n";
|
7666
7666
|
});
|
7667
7667
|
}
|
7668
7668
|
return lines;
|
@@ -7790,21 +7790,21 @@ var require_sdp = __commonJS({
|
|
7790
7790
|
const mline = lines[0].split(" ");
|
7791
7791
|
description.profile = mline[2];
|
7792
7792
|
for (let i = 3; i < mline.length; i++) {
|
7793
|
-
const
|
7793
|
+
const pt2 = mline[i];
|
7794
7794
|
const rtpmapline = SDPUtils2.matchPrefix(
|
7795
7795
|
mediaSection,
|
7796
|
-
"a=rtpmap:" +
|
7796
|
+
"a=rtpmap:" + pt2 + " "
|
7797
7797
|
)[0];
|
7798
7798
|
if (rtpmapline) {
|
7799
7799
|
const codec = SDPUtils2.parseRtpMap(rtpmapline);
|
7800
7800
|
const fmtps = SDPUtils2.matchPrefix(
|
7801
7801
|
mediaSection,
|
7802
|
-
"a=fmtp:" +
|
7802
|
+
"a=fmtp:" + pt2 + " "
|
7803
7803
|
);
|
7804
7804
|
codec.parameters = fmtps.length ? SDPUtils2.parseFmtp(fmtps[0]) : {};
|
7805
7805
|
codec.rtcpFeedback = SDPUtils2.matchPrefix(
|
7806
7806
|
mediaSection,
|
7807
|
-
"a=rtcp-fb:" +
|
7807
|
+
"a=rtcp-fb:" + pt2 + " "
|
7808
7808
|
).map(SDPUtils2.parseRtcpFb);
|
7809
7809
|
description.codecs.push(codec);
|
7810
7810
|
switch (codec.name.toUpperCase()) {
|
@@ -8562,16 +8562,16 @@ var require_grammar = __commonJS({
|
|
8562
8562
|
var require_parser = __commonJS({
|
8563
8563
|
"../../node_modules/sdp-transform/lib/parser.js"(exports) {
|
8564
8564
|
init_define_process_env();
|
8565
|
-
var toIntIfInt = function(
|
8566
|
-
return String(Number(
|
8565
|
+
var toIntIfInt = function(v2) {
|
8566
|
+
return String(Number(v2)) === v2 ? Number(v2) : v2;
|
8567
8567
|
};
|
8568
|
-
var attachProperties = function(
|
8568
|
+
var attachProperties = function(match17, location, names, rawName) {
|
8569
8569
|
if (rawName && !names) {
|
8570
|
-
location[rawName] = toIntIfInt(
|
8570
|
+
location[rawName] = toIntIfInt(match17[1]);
|
8571
8571
|
} else {
|
8572
8572
|
for (var i = 0; i < names.length; i += 1) {
|
8573
|
-
if (
|
8574
|
-
location[names[i]] = toIntIfInt(
|
8573
|
+
if (match17[i + 1] != null) {
|
8574
|
+
location[names[i]] = toIntIfInt(match17[i + 1]);
|
8575
8575
|
}
|
8576
8576
|
}
|
8577
8577
|
}
|
@@ -8676,13 +8676,13 @@ var require_writer = __commonJS({
|
|
8676
8676
|
var i = 1;
|
8677
8677
|
var args = arguments;
|
8678
8678
|
var len = args.length;
|
8679
|
-
return formatStr.replace(formatRegExp, function(
|
8679
|
+
return formatStr.replace(formatRegExp, function(x) {
|
8680
8680
|
if (i >= len) {
|
8681
|
-
return
|
8681
|
+
return x;
|
8682
8682
|
}
|
8683
8683
|
var arg = args[i];
|
8684
8684
|
i += 1;
|
8685
|
-
switch (
|
8685
|
+
switch (x) {
|
8686
8686
|
case "%%":
|
8687
8687
|
return "%";
|
8688
8688
|
case "%s":
|
@@ -9120,6 +9120,9 @@ var POLL_VIEWS = {
|
|
9120
9120
|
VOTE: "VOTE",
|
9121
9121
|
RESULTS: "RESULTS"
|
9122
9122
|
};
|
9123
|
+
var CAPTION_TOAST = {
|
9124
|
+
captionToast: "captionToast"
|
9125
|
+
};
|
9123
9126
|
var SUBSCRIBED_NOTIFICATIONS = {
|
9124
9127
|
PEER_JOINED: "PEER_JOINED",
|
9125
9128
|
PEER_LEFT: "PEER_LEFT",
|
@@ -10955,8 +10958,8 @@ function useBorderAudioLevel(audioTrackId) {
|
|
10955
10958
|
});
|
10956
10959
|
return ref;
|
10957
10960
|
}
|
10958
|
-
var sigmoid = (
|
10959
|
-
return 1 / (1 + Math.exp(-
|
10961
|
+
var sigmoid = (z) => {
|
10962
|
+
return 1 / (1 + Math.exp(-z));
|
10960
10963
|
};
|
10961
10964
|
|
10962
10965
|
// src/AudioLevel/AudioLevel.tsx
|
@@ -10968,7 +10971,7 @@ import { selectTrackAudioByID, useHMSVanillaStore } from "@100mslive/react-sdk";
|
|
10968
10971
|
var audio_level_default = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAABABAMAAAAHc7SNAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsIAAA7CARUoSoAAAAAtUExURQAAAP///////////////////////////////////////////////////////6FIq5sAAAAOdFJOUwA/QJqbnJ2euLnc3d7+2IFKrQAAAa9JREFUaN7dmcFRxDAMRXNgW4AbV24ZSkgrlAAFUAqlpITtgT0QnB22BnY3iWXHSlYz5H/NoJNO8bP8JTlyVW1k923/MveYdnc623PuUe3jsux37tEDcN24eFR7HJb9TD2qvQ/LfqUexR7a41Xx7bDsMfWo2j+NlnpU7TsBiOKdAOqoeCcAUTwFYFK8pn0GgFLttWVxAEq1pwJo1Z4KoFV7KoBW7YEAT0uK729pfxuAZcX/3Fr2TwAx05cVDwWIu11RPBQg7lZ0XlR7JIDsdkXxCIDp5GXf2v0GBxBP3pTfAIB48qb83h7AWtlhANbKDgOwVnYYgLWywwCsn/u/AO5HMIqwcwOovdNwLESNG8BQioNfKa52YwBsakC04/MF9C1Rw4HdjhU1SCyKqOCvZCGLhXgMgKgGiUWRI9hr+aSG+bU8sP4LyliIxwW4xOI1j8pKZlB/Tjt794ANpKzdAzOgaOzdAzKiCVpmkACWM4MEIFVCyQzfQWXnPao9eA+rG+dxfXB8L1jNB4pN+bCfd4re59Gqoz9alflQ+zzb7ZROwTWlUziEIO8UZCs7hc1+AbiVW6XSE8knAAAAAElFTkSuQmCC";
|
10969
10972
|
|
10970
10973
|
// src/AudioLevel/AudioLevel.tsx
|
10971
|
-
var positionValues = new Array(101).fill(0).reduce((acc,
|
10974
|
+
var positionValues = new Array(101).fill(0).reduce((acc, _2, index) => {
|
10972
10975
|
acc[index] = Math.round(index / 100 * 4) / 4;
|
10973
10976
|
return acc;
|
10974
10977
|
}, {});
|
@@ -11091,12 +11094,12 @@ var formatBytes = (bytes, unit = "B", decimals = 2) => {
|
|
11091
11094
|
if (!bytes) {
|
11092
11095
|
return "-";
|
11093
11096
|
}
|
11094
|
-
const
|
11095
|
-
const
|
11097
|
+
const k = 1024;
|
11098
|
+
const dm2 = decimals < 0 ? 0 : decimals;
|
11096
11099
|
const sizes = ["", "K", "M", "G", "T", "P", "E", "Z", "Y"].map((size) => size + unit);
|
11097
|
-
let i = Math.floor(Math.log(bytes) / Math.log(
|
11100
|
+
let i = Math.floor(Math.log(bytes) / Math.log(k));
|
11098
11101
|
i === 0 && i++;
|
11099
|
-
return `${parseFloat((bytes / Math.pow(
|
11102
|
+
return `${parseFloat((bytes / Math.pow(k, i)).toFixed(dm2))} ${sizes[i]}`;
|
11100
11103
|
};
|
11101
11104
|
|
11102
11105
|
// src/Stats/StyledStats.tsx
|
@@ -11852,7 +11855,7 @@ var Collapsible = {
|
|
11852
11855
|
// src/Prebuilt/App.tsx
|
11853
11856
|
init_define_process_env();
|
11854
11857
|
import React181, { useEffect as useEffect74, useRef as useRef30 } from "react";
|
11855
|
-
import { match as
|
11858
|
+
import { match as match16 } from "ts-pattern";
|
11856
11859
|
import {
|
11857
11860
|
HMSReactiveStore,
|
11858
11861
|
HMSRoomProvider,
|
@@ -12369,12 +12372,12 @@ var formatTime = (timeInSeconds) => {
|
|
12369
12372
|
const hour = hours !== 0 ? `${hours < 10 ? "0" : ""}${hours}:` : "";
|
12370
12373
|
return `${hour}${minutes < 10 ? "0" : ""}${minutes}:${seconds < 10 ? "0" : ""}${seconds}`;
|
12371
12374
|
};
|
12372
|
-
var compareArrays = (a2,
|
12373
|
-
if (a2.length !==
|
12375
|
+
var compareArrays = (a2, b) => {
|
12376
|
+
if (a2.length !== b.length)
|
12374
12377
|
return false;
|
12375
12378
|
else {
|
12376
12379
|
for (var i = 0; i < a2.length; i++) {
|
12377
|
-
if (a2[i] !==
|
12380
|
+
if (a2[i] !== b[i]) {
|
12378
12381
|
return false;
|
12379
12382
|
}
|
12380
12383
|
}
|
@@ -14646,8 +14649,24 @@ init_define_process_env();
|
|
14646
14649
|
import React55, { Fragment as Fragment6, useState as useState23 } from "react";
|
14647
14650
|
import { HMSHLSPlayer } from "@100mslive/hls-player";
|
14648
14651
|
import { match as match4 } from "ts-pattern";
|
14649
|
-
import {
|
14650
|
-
|
14652
|
+
import {
|
14653
|
+
HMSTranscriptionMode as HMSTranscriptionMode2,
|
14654
|
+
selectAppData as selectAppData3,
|
14655
|
+
selectIsTranscriptionAllowedByMode,
|
14656
|
+
selectIsTranscriptionEnabled as selectIsTranscriptionEnabled3,
|
14657
|
+
selectLocalPeerID as selectLocalPeerID4,
|
14658
|
+
useHMSActions as useHMSActions17,
|
14659
|
+
useHMSStore as useHMSStore22
|
14660
|
+
} from "@100mslive/react-sdk";
|
14661
|
+
import {
|
14662
|
+
BrbIcon,
|
14663
|
+
CheckIcon as CheckIcon4,
|
14664
|
+
HamburgerMenuIcon,
|
14665
|
+
InfoIcon as InfoIcon2,
|
14666
|
+
OpenCaptionIcon as OpenCaptionIcon2,
|
14667
|
+
PipIcon as PipIcon2,
|
14668
|
+
SettingsIcon as SettingsIcon3
|
14669
|
+
} from "@100mslive/react-icons";
|
14651
14670
|
|
14652
14671
|
// src/Prebuilt/components/PIP/index.jsx
|
14653
14672
|
init_define_process_env();
|
@@ -14813,8 +14832,8 @@ var PipManager = class {
|
|
14813
14832
|
/**
|
14814
14833
|
* @private {boolean} on - whether pip is on/off
|
14815
14834
|
*/
|
14816
|
-
this.callListeners = (
|
14817
|
-
this.listeners.forEach((listener) => listener?.(
|
14835
|
+
this.callListeners = (on) => {
|
14836
|
+
this.listeners.forEach((listener) => listener?.(on));
|
14818
14837
|
};
|
14819
14838
|
this.reset();
|
14820
14839
|
}
|
@@ -15766,11 +15785,11 @@ var formatBytes2 = (bytes, unit = "B", decimals = 2) => {
|
|
15766
15785
|
return "-";
|
15767
15786
|
if (bytes === 0)
|
15768
15787
|
return "0 " + unit;
|
15769
|
-
const
|
15770
|
-
const
|
15788
|
+
const k = 1024;
|
15789
|
+
const dm2 = decimals < 0 ? 0 : decimals;
|
15771
15790
|
const sizes = ["", "K", "M", "G", "T", "P", "E", "Z", "Y"].map((size) => size + unit);
|
15772
|
-
const i = Math.floor(Math.log(bytes) / Math.log(
|
15773
|
-
return parseFloat((bytes / Math.pow(
|
15791
|
+
const i = Math.floor(Math.log(bytes) / Math.log(k));
|
15792
|
+
return parseFloat((bytes / Math.pow(k, i)).toFixed(dm2)) + " " + sizes[i];
|
15774
15793
|
};
|
15775
15794
|
|
15776
15795
|
// src/Prebuilt/components/MoreSettings/BulkRoleChangeModal.jsx
|
@@ -15894,6 +15913,7 @@ var CaptionContent = ({ isMobile, onExit }) => {
|
|
15894
15913
|
const DURATION = 2e3;
|
15895
15914
|
const actions = useHMSActions14();
|
15896
15915
|
const isTranscriptionEnabled = useHMSStore18(selectIsTranscriptionEnabled2);
|
15916
|
+
const [toastId, setToastId] = useSetAppDataByKey(CAPTION_TOAST.captionToast);
|
15897
15917
|
const [isCaptionEnabled, setIsCaptionEnabled] = useSetIsCaptionEnabled();
|
15898
15918
|
return /* @__PURE__ */ React50.createElement(React50.Fragment, null, /* @__PURE__ */ React50.createElement(
|
15899
15919
|
Text,
|
@@ -15961,34 +15981,38 @@ var CaptionContent = ({ isMobile, onExit }) => {
|
|
15961
15981
|
"data-testid": "popup_change_btn",
|
15962
15982
|
onClick: async () => {
|
15963
15983
|
try {
|
15984
|
+
ToastManager.removeToast(toastId);
|
15964
15985
|
if (isTranscriptionEnabled) {
|
15965
15986
|
await actions.stopTranscription({
|
15966
15987
|
mode: HMSTranscriptionMode.CAPTION
|
15967
15988
|
});
|
15968
|
-
ToastManager.addToast({
|
15989
|
+
const id2 = ToastManager.addToast({
|
15969
15990
|
title: `Disabling Closed Caption for everyone.`,
|
15970
15991
|
variant: "standard",
|
15971
15992
|
duration: DURATION,
|
15972
15993
|
icon: /* @__PURE__ */ React50.createElement(Loading, { color: "currentColor" })
|
15973
15994
|
});
|
15995
|
+
setToastId(id2);
|
15974
15996
|
onExit();
|
15975
15997
|
return;
|
15976
15998
|
}
|
15977
15999
|
await actions.startTranscription({
|
15978
16000
|
mode: HMSTranscriptionMode.CAPTION
|
15979
16001
|
});
|
15980
|
-
ToastManager.addToast({
|
16002
|
+
const id = ToastManager.addToast({
|
15981
16003
|
title: `Enabling Closed Caption for everyone.`,
|
15982
16004
|
variant: "standard",
|
15983
16005
|
duration: DURATION,
|
15984
16006
|
icon: /* @__PURE__ */ React50.createElement(Loading, { color: "currentColor" })
|
15985
16007
|
});
|
16008
|
+
setToastId(id);
|
15986
16009
|
} catch (err) {
|
15987
|
-
ToastManager.addToast({
|
16010
|
+
const id = ToastManager.addToast({
|
15988
16011
|
title: `Failed to ${isTranscriptionEnabled ? "disabled" : "enabled"} closed caption`,
|
15989
16012
|
variant: "error",
|
15990
16013
|
icon: /* @__PURE__ */ React50.createElement(AlertTriangleIcon5, { style: { marginRight: "0.5rem" } })
|
15991
16014
|
});
|
16015
|
+
setToastId(id);
|
15992
16016
|
}
|
15993
16017
|
onExit();
|
15994
16018
|
}
|
@@ -16263,6 +16287,8 @@ var DesktopOptions = ({
|
|
16263
16287
|
const { isBRBOn, toggleBRB } = useMyMetadata();
|
16264
16288
|
const isPipOn = PictureInPicture.isOn();
|
16265
16289
|
const isBRBEnabled = !!elements?.brb;
|
16290
|
+
const isTranscriptionAllowed = useHMSStore22(selectIsTranscriptionAllowedByMode(HMSTranscriptionMode2.CAPTION));
|
16291
|
+
const isTranscriptionEnabled = useHMSStore22(selectIsTranscriptionEnabled3);
|
16266
16292
|
useDropdownList({ open: openModals.size > 0, name: "MoreSettings" });
|
16267
16293
|
const updateState = (modalName, value) => {
|
16268
16294
|
setOpenModals((modals) => {
|
@@ -16299,6 +16325,18 @@ var DesktopOptions = ({
|
|
16299
16325
|
}
|
16300
16326
|
},
|
16301
16327
|
isBRBEnabled && screenType !== "hls_live_streaming" ? /* @__PURE__ */ React55.createElement(Dropdown.Item, { onClick: toggleBRB, "data-testid": "brb_btn" }, /* @__PURE__ */ React55.createElement(BrbIcon, null), /* @__PURE__ */ React55.createElement(Text, { variant: "sm", css: { ml: "$4", color: "$on_surface_high" } }, "Be Right Back"), /* @__PURE__ */ React55.createElement(Flex, { justify: "end", css: { color: "$on_surface_high", flexGrow: "1" } }, isBRBOn ? /* @__PURE__ */ React55.createElement(CheckIcon4, null) : null)) : null,
|
16328
|
+
isTranscriptionAllowed ? /* @__PURE__ */ React55.createElement(
|
16329
|
+
Dropdown.Item,
|
16330
|
+
{
|
16331
|
+
"data-testid": "closed_caption_admin",
|
16332
|
+
onClick: () => {
|
16333
|
+
updateState(MODALS.CAPTION, true);
|
16334
|
+
}
|
16335
|
+
},
|
16336
|
+
/* @__PURE__ */ React55.createElement(OpenCaptionIcon2, null),
|
16337
|
+
/* @__PURE__ */ React55.createElement(Flex, { direction: "column", css: { flexGrow: "1" } }, /* @__PURE__ */ React55.createElement(Text, { variant: "sm", css: { ml: "$4", color: "$on_surface_high" } }, "Closed Captions"), /* @__PURE__ */ React55.createElement(Text, { variant: "caption", css: { ml: "$4", color: "$on_surface_medium" } }, isTranscriptionEnabled ? "Enabled" : "Disabled")),
|
16338
|
+
/* @__PURE__ */ React55.createElement(Switch, { id: "closed_caption_start_stop", checked: isTranscriptionEnabled, disabled: false })
|
16339
|
+
) : null,
|
16302
16340
|
screenType !== "hls_live_streaming" ? /* @__PURE__ */ React55.createElement(Dropdown.Item, { css: { p: 0, "&:empty": { display: "none" } } }, /* @__PURE__ */ React55.createElement(
|
16303
16341
|
PIP,
|
16304
16342
|
{
|
@@ -16358,8 +16396,11 @@ import React61, { useRef as useRef16, useState as useState28 } from "react";
|
|
16358
16396
|
import { useClickAway } from "react-use";
|
16359
16397
|
import { match as match5 } from "ts-pattern";
|
16360
16398
|
import {
|
16399
|
+
HMSTranscriptionMode as HMSTranscriptionMode3,
|
16361
16400
|
selectIsConnectedToRoom as selectIsConnectedToRoom7,
|
16362
16401
|
selectIsLocalVideoEnabled as selectIsLocalVideoEnabled4,
|
16402
|
+
selectIsTranscriptionAllowedByMode as selectIsTranscriptionAllowedByMode2,
|
16403
|
+
selectIsTranscriptionEnabled as selectIsTranscriptionEnabled4,
|
16363
16404
|
selectPeerCount as selectPeerCount3,
|
16364
16405
|
selectPermissions as selectPermissions8,
|
16365
16406
|
useHMSActions as useHMSActions23,
|
@@ -16368,12 +16409,14 @@ import {
|
|
16368
16409
|
} from "@100mslive/react-sdk";
|
16369
16410
|
import {
|
16370
16411
|
BrbIcon as BrbIcon2,
|
16412
|
+
ClosedCaptionIcon as ClosedCaptionIcon2,
|
16371
16413
|
CrossIcon as CrossIcon12,
|
16372
16414
|
EmojiIcon as EmojiIcon2,
|
16373
16415
|
HamburgerMenuIcon as HamburgerMenuIcon2,
|
16374
16416
|
HandIcon as HandIcon2,
|
16375
16417
|
HandRaiseSlashedIcon,
|
16376
16418
|
InfoIcon as InfoIcon3,
|
16419
|
+
OpenCaptionIcon as OpenCaptionIcon3,
|
16377
16420
|
PeopleIcon,
|
16378
16421
|
QuizActiveIcon,
|
16379
16422
|
QuizIcon,
|
@@ -16392,8 +16435,8 @@ init_define_process_env();
|
|
16392
16435
|
|
16393
16436
|
// ../../node_modules/reselect/es/index.js
|
16394
16437
|
init_define_process_env();
|
16395
|
-
function defaultEqualityCheck(a2,
|
16396
|
-
return a2 ===
|
16438
|
+
function defaultEqualityCheck(a2, b) {
|
16439
|
+
return a2 === b;
|
16397
16440
|
}
|
16398
16441
|
function areArgumentsShallowlyEqual(equalityCheck, prev, next) {
|
16399
16442
|
if (prev === null || next === null || prev.length !== next.length) {
|
@@ -16470,8 +16513,8 @@ var createSelector = createSelectorCreator(defaultMemoize);
|
|
16470
16513
|
// ../hms-video-store/dist/index.js
|
16471
16514
|
var import_ua_parser_js = __toESM(require_ua_parser());
|
16472
16515
|
var import_lodash3 = __toESM(require_lodash2());
|
16473
|
-
import { v4 as
|
16474
|
-
import { v4 as
|
16516
|
+
import { v4 as Qa } from "uuid";
|
16517
|
+
import { v4 as ja } from "uuid";
|
16475
16518
|
|
16476
16519
|
// ../../node_modules/webrtc-adapter/src/js/adapter_core.js
|
16477
16520
|
init_define_process_env();
|
@@ -16484,8 +16527,8 @@ init_define_process_env();
|
|
16484
16527
|
var logDisabled_ = true;
|
16485
16528
|
var deprecationWarnings_ = true;
|
16486
16529
|
function extractVersion(uastring, expr, pos) {
|
16487
|
-
const
|
16488
|
-
return
|
16530
|
+
const match17 = uastring.match(expr);
|
16531
|
+
return match17 && match17.length >= pos && parseInt(match17[pos], 10);
|
16489
16532
|
}
|
16490
16533
|
function wrapPeerConnectionEvent(window2, eventNameToWrap, wrapper) {
|
16491
16534
|
if (!window2.RTCPeerConnection) {
|
@@ -16761,9 +16804,9 @@ function shimGetUserMedia(window2, browserDetails) {
|
|
16761
16804
|
}
|
16762
16805
|
constraints = JSON.parse(JSON.stringify(constraints));
|
16763
16806
|
if (constraints && typeof constraints.audio === "object") {
|
16764
|
-
const remap = function(obj, a2,
|
16765
|
-
if (a2 in obj && !(
|
16766
|
-
obj[
|
16807
|
+
const remap = function(obj, a2, b) {
|
16808
|
+
if (a2 in obj && !(b in obj)) {
|
16809
|
+
obj[b] = obj[a2];
|
16767
16810
|
delete obj[a2];
|
16768
16811
|
}
|
16769
16812
|
};
|
@@ -16787,7 +16830,7 @@ function shimGetUserMedia(window2, browserDetails) {
|
|
16787
16830
|
if (matches) {
|
16788
16831
|
return navigator2.mediaDevices.enumerateDevices().then((devices) => {
|
16789
16832
|
devices = devices.filter((d2) => d2.kind === "videoinput");
|
16790
|
-
let dev = devices.find((d2) => matches.some((
|
16833
|
+
let dev = devices.find((d2) => matches.some((match17) => d2.label.toLowerCase().includes(match17)));
|
16791
16834
|
if (!dev && devices.length && matches.includes("back")) {
|
16792
16835
|
dev = devices[devices.length - 1];
|
16793
16836
|
}
|
@@ -16915,15 +16958,15 @@ function shimOnTrack(window2) {
|
|
16915
16958
|
window2.RTCPeerConnection.prototype.setRemoteDescription = function setRemoteDescription() {
|
16916
16959
|
if (!this._ontrackpoly) {
|
16917
16960
|
this._ontrackpoly = (e) => {
|
16918
|
-
e.stream.addEventListener("addtrack", (
|
16961
|
+
e.stream.addEventListener("addtrack", (te) => {
|
16919
16962
|
let receiver;
|
16920
16963
|
if (window2.RTCPeerConnection.prototype.getReceivers) {
|
16921
|
-
receiver = this.getReceivers().find((r) => r.track && r.track.id ===
|
16964
|
+
receiver = this.getReceivers().find((r) => r.track && r.track.id === te.track.id);
|
16922
16965
|
} else {
|
16923
|
-
receiver = { track:
|
16966
|
+
receiver = { track: te.track };
|
16924
16967
|
}
|
16925
16968
|
const event = new Event("track");
|
16926
|
-
event.track =
|
16969
|
+
event.track = te.track;
|
16927
16970
|
event.receiver = receiver;
|
16928
16971
|
event.transceiver = { receiver };
|
16929
16972
|
event.streams = [e.stream];
|
@@ -17505,9 +17548,9 @@ function shimGetUserMedia2(window2, browserDetails) {
|
|
17505
17548
|
navigator2.mediaDevices.getUserMedia(constraints).then(onSuccess, onError);
|
17506
17549
|
};
|
17507
17550
|
if (!(browserDetails.version > 55 && "autoGainControl" in navigator2.mediaDevices.getSupportedConstraints())) {
|
17508
|
-
const remap = function(obj, a2,
|
17509
|
-
if (a2 in obj && !(
|
17510
|
-
obj[
|
17551
|
+
const remap = function(obj, a2, b) {
|
17552
|
+
if (a2 in obj && !(b in obj)) {
|
17553
|
+
obj[b] = obj[a2];
|
17511
17554
|
delete obj[a2];
|
17512
17555
|
}
|
17513
17556
|
};
|
@@ -18214,11 +18257,11 @@ function shimMaxMessageSize(window2, browserDetails) {
|
|
18214
18257
|
});
|
18215
18258
|
};
|
18216
18259
|
const getRemoteFirefoxVersion = function(description) {
|
18217
|
-
const
|
18218
|
-
if (
|
18260
|
+
const match17 = description.sdp.match(/mozilla...THIS_IS_SDPARTA-(\d+)/);
|
18261
|
+
if (match17 === null || match17.length < 2) {
|
18219
18262
|
return -1;
|
18220
18263
|
}
|
18221
|
-
const version = parseInt(
|
18264
|
+
const version = parseInt(match17[1], 10);
|
18222
18265
|
return version !== version ? -1 : version;
|
18223
18266
|
};
|
18224
18267
|
const getCanSendMaxMessageSize = function(remoteIsFirefox) {
|
@@ -18243,12 +18286,12 @@ function shimMaxMessageSize(window2, browserDetails) {
|
|
18243
18286
|
if (browserDetails.browser === "firefox" && browserDetails.version === 57) {
|
18244
18287
|
maxMessageSize = 65535;
|
18245
18288
|
}
|
18246
|
-
const
|
18289
|
+
const match17 = import_sdp.default.matchPrefix(
|
18247
18290
|
description.sdp,
|
18248
18291
|
"a=max-message-size:"
|
18249
18292
|
);
|
18250
|
-
if (
|
18251
|
-
maxMessageSize = parseInt(
|
18293
|
+
if (match17.length > 0) {
|
18294
|
+
maxMessageSize = parseInt(match17[0].substring(19), 10);
|
18252
18295
|
} else if (browserDetails.browser === "firefox" && remoteIsFirefox !== -1) {
|
18253
18296
|
maxMessageSize = 2147483637;
|
18254
18297
|
}
|
@@ -18568,88 +18611,88 @@ var adapter = adapterFactory({ window: typeof window === "undefined" ? void 0 :
|
|
18568
18611
|
|
18569
18612
|
// ../hms-video-store/dist/index.js
|
18570
18613
|
var import_lodash4 = __toESM(require_lodash2());
|
18571
|
-
import { v4 as to } from "uuid";
|
18572
18614
|
import { v4 as ao } from "uuid";
|
18573
18615
|
import { v4 as lo } from "uuid";
|
18574
|
-
import {
|
18575
|
-
|
18576
|
-
|
18577
|
-
import { v4 as Fo } from "uuid";
|
18616
|
+
import { v4 as mo } from "uuid";
|
18617
|
+
import { EventEmitter2 as So } from "eventemitter2";
|
18618
|
+
var _t = __toESM(require_lib());
|
18578
18619
|
import { EventEmitter2 as Go } from "eventemitter2";
|
18579
|
-
import
|
18580
|
-
import {
|
18581
|
-
import
|
18582
|
-
|
18583
|
-
|
18584
|
-
var
|
18585
|
-
var
|
18586
|
-
var
|
18587
|
-
var
|
18588
|
-
var
|
18620
|
+
import { v4 as Ko } from "uuid";
|
18621
|
+
import { EventEmitter2 as qo } from "eventemitter2";
|
18622
|
+
import jo from "eventemitter2";
|
18623
|
+
import { v4 as Jo } from "uuid";
|
18624
|
+
import { v4 as Yo } from "uuid";
|
18625
|
+
var _a = Object.defineProperty;
|
18626
|
+
var Na = Object.defineProperties;
|
18627
|
+
var Oa = Object.getOwnPropertyDescriptors;
|
18628
|
+
var Wt = Object.getOwnPropertySymbols;
|
18629
|
+
var qr = Object.prototype.hasOwnProperty;
|
18630
|
+
var jr = Object.prototype.propertyIsEnumerable;
|
18631
|
+
var Kr = (a2, e, t) => e in a2 ? _a(a2, e, { enumerable: true, configurable: true, writable: true, value: t }) : a2[e] = t;
|
18589
18632
|
var S = (a2, e) => {
|
18590
18633
|
for (var t in e || (e = {}))
|
18591
|
-
|
18592
|
-
if (
|
18593
|
-
for (var t of
|
18594
|
-
|
18634
|
+
qr.call(e, t) && Kr(a2, t, e[t]);
|
18635
|
+
if (Wt)
|
18636
|
+
for (var t of Wt(e))
|
18637
|
+
jr.call(e, t) && Kr(a2, t, e[t]);
|
18595
18638
|
return a2;
|
18596
18639
|
};
|
18597
|
-
var
|
18598
|
-
var
|
18640
|
+
var v = (a2, e) => Na(a2, Oa(e));
|
18641
|
+
var er = (a2, e) => {
|
18599
18642
|
var t = {};
|
18600
18643
|
for (var i in a2)
|
18601
|
-
|
18602
|
-
if (a2 != null &&
|
18603
|
-
for (var i of
|
18604
|
-
e.indexOf(i) < 0 &&
|
18644
|
+
qr.call(a2, i) && e.indexOf(i) < 0 && (t[i] = a2[i]);
|
18645
|
+
if (a2 != null && Wt)
|
18646
|
+
for (var i of Wt(a2))
|
18647
|
+
e.indexOf(i) < 0 && jr.call(a2, i) && (t[i] = a2[i]);
|
18605
18648
|
return t;
|
18606
18649
|
};
|
18607
|
-
var
|
18608
|
-
var
|
18609
|
-
|
18650
|
+
var Ba = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
|
18651
|
+
var cr = Ba((Ic, Ja) => {
|
18652
|
+
Ja.exports = { version: "0.12.12-alpha.0", license: "MIT", repository: { type: "git", url: "https://github.com/100mslive/web-sdks.git", directory: "packages/hms-video-store" }, main: "dist/index.cjs.js", module: "dist/index.js", typings: "dist/index.d.ts", files: ["dist", "src"], engines: { node: ">=12" }, exports: { ".": { require: "./dist/index.cjs.js", import: "./dist/index.js", default: "./dist/index.js" } }, sideEffects: false, scripts: { prestart: "rm -rf dist && yarn types:build", start: 'concurrently "yarn dev" "yarn types"', dev: "node ../../scripts/dev", "build:only": "node ../../scripts/build", build: "yarn build:only && yarn types:build", types: "tsc -w", "types:build": "tsc -p tsconfig.json", format: "prettier --write src/**/*.ts", test: "jest --maxWorkers=1", "test:watch": "jest --watch", "test:coverage": "jest --coverage", lint: "eslint -c ../../.eslintrc .", "lint:fix": "yarn lint --fix", prepare: "yarn build", size: "size-limit", analyze: "size-limit --why", docs: "rm -rf ./docs && typedoc && rm -f ./docs/README.md && mkdir ./docs/home &&mv ./docs/modules.md ./docs/home/content.md && node ../../scripts/docs-store && npx prettier --write './docs/**/*'" }, name: "@100mslive/hms-video-store", author: "100ms", dependencies: { eventemitter2: "^6.4.9", immer: "^9.0.6", "lodash.isequal": "^4.5.0", reselect: "4.0.0", "sdp-transform": "^2.14.1", "ua-parser-js": "^1.0.1", uuid: "^8.3.2", "webrtc-adapter": "^8.0.0", zustand: "3.5.7" }, devDependencies: { "@types/dom-screen-wake-lock": "^1.0.1", "@types/lodash.isequal": "^4.5.8", "@types/sdp-transform": "^2.4.4", "@types/ua-parser-js": "^0.7.36", "@types/uuid": "^8.3.0", "jest-canvas-mock": "^2.3.1", "jsdom-worker": "^0.3.0", tslib: "^2.2.0" }, description: "@100mslive Core SDK which abstracts the complexities of webRTC while providing a reactive store for data management with a unidirectional data flow", keywords: ["video", "webrtc", "conferencing", "100ms"] };
|
18610
18653
|
});
|
18611
|
-
var
|
18612
|
-
var
|
18613
|
-
var
|
18614
|
-
var
|
18615
|
-
var
|
18654
|
+
var tr = ((n) => (n.Disconnected = "Disconnected", n.Preview = "Preview", n.Connecting = "Connecting", n.Connected = "Connected", n.Reconnecting = "Reconnecting", n.Disconnecting = "Disconnecting", n.Failed = "Failed", n))(tr || {});
|
18655
|
+
var Va = ((e) => (e.CHAT = "chat", e))(Va || {});
|
18656
|
+
var Jr = ((t) => (t.INFO = "info", t.ERROR = "error", t))(Jr || {});
|
18657
|
+
var ir = ((D) => (D.PEER_JOINED = "PEER_JOINED", D.PEER_LEFT = "PEER_LEFT", D.PEER_LIST = "PEER_LIST", D.NEW_MESSAGE = "NEW_MESSAGE", D.ERROR = "ERROR", D.RECONNECTING = "RECONNECTING", D.RECONNECTED = "RECONNECTED", D.TRACK_ADDED = "TRACK_ADDED", D.TRACK_REMOVED = "TRACK_REMOVED", D.TRACK_MUTED = "TRACK_MUTED", D.TRACK_UNMUTED = "TRACK_UNMUTED", D.TRACK_DEGRADED = "TRACK_DEGRADED", D.TRACK_RESTORED = "TRACK_RESTORED", D.TRACK_DESCRIPTION_CHANGED = "TRACK_DESCRIPTION_CHANGED", D.ROLE_UPDATED = "ROLE_UPDATED", D.CHANGE_TRACK_STATE_REQUEST = "CHANGE_TRACK_STATE_REQUEST", D.CHANGE_MULTI_TRACK_STATE_REQUEST = "CHANGE_MULTI_TRACK_STATE_REQUEST", D.ROOM_ENDED = "ROOM_ENDED", D.REMOVED_FROM_ROOM = "REMOVED_FROM_ROOM", D.DEVICE_CHANGE_UPDATE = "DEVICE_CHANGE_UPDATE", D.PLAYLIST_TRACK_ENDED = "PLAYLIST_TRACK_ENDED", D.NAME_UPDATED = "NAME_UPDATED", D.METADATA_UPDATED = "METADATA_UPDATED", D.POLL_CREATED = "POLL_CREATED", D.POLL_STARTED = "POLL_STARTED", D.POLL_STOPPED = "POLL_STOPPED", D.POLL_VOTES_UPDATED = "POLL_VOTES_UPDATED", D.POLLS_LIST = "POLLS_LIST", D.HAND_RAISE_CHANGED = "HAND_RAISE_CHANGED", D.TRANSCRIPTION_STATE_UPDATED = "TRANSCRIPTION_STATE_UPDATED", D))(ir || {});
|
18658
|
+
var Qr = ((t) => (t.audio = "audio", t.video = "video", t))(Qr || {});
|
18616
18659
|
function Ce(a2, e) {
|
18617
18660
|
let t, i;
|
18618
18661
|
if (e)
|
18619
18662
|
for (let r of e.auxiliaryTracks) {
|
18620
18663
|
let s = a2[r];
|
18621
|
-
|
18664
|
+
Fa(s) && (i = it(s) ? s : i, t = rt(s) ? s : t);
|
18622
18665
|
}
|
18623
18666
|
return { video: t, audio: i };
|
18624
18667
|
}
|
18625
|
-
function
|
18668
|
+
function it(a2) {
|
18626
18669
|
return a2 && a2.type === "audio";
|
18627
18670
|
}
|
18628
|
-
function
|
18671
|
+
function rt(a2) {
|
18629
18672
|
return a2 && a2.type === "video";
|
18630
18673
|
}
|
18631
|
-
function
|
18674
|
+
function Fa(a2) {
|
18632
18675
|
return a2 && a2.source === "screen";
|
18633
18676
|
}
|
18634
|
-
function
|
18677
|
+
function qt(a2) {
|
18635
18678
|
return a2 && a2.source === "audioplaylist";
|
18636
18679
|
}
|
18637
|
-
function
|
18680
|
+
function st(a2) {
|
18638
18681
|
return a2 && a2.source === "videoplaylist";
|
18639
18682
|
}
|
18640
|
-
function
|
18683
|
+
function zr(a2) {
|
18641
18684
|
return a2 ? !!(a2 != null && a2.degraded) : false;
|
18642
18685
|
}
|
18643
18686
|
function Ue(a2, e) {
|
18644
18687
|
return e && a2.tracks[e] ? a2.tracks[e].enabled : false;
|
18645
18688
|
}
|
18646
|
-
function
|
18689
|
+
function at(a2) {
|
18647
18690
|
var r;
|
18648
18691
|
let e = false, t = false, i = false;
|
18649
18692
|
return (r = a2 == null ? void 0 : a2.publishParams) != null && r.allowed && (e = a2.publishParams.allowed.includes("video"), t = a2.publishParams.allowed.includes("audio"), i = a2.publishParams.allowed.includes("screen")), { video: e, audio: t, screen: i };
|
18650
18693
|
}
|
18651
|
-
var
|
18652
|
-
var
|
18694
|
+
var Xr = ((l) => (l[l.VERBOSE = 0] = "VERBOSE", l[l.DEBUG = 1] = "DEBUG", l[l.INFO = 2] = "INFO", l[l.WARN = 3] = "WARN", l[l.TIME = 4] = "TIME", l[l.TIMEEND = 5] = "TIMEEND", l[l.ERROR = 6] = "ERROR", l[l.NONE = 7] = "NONE", l))(Xr || {});
|
18695
|
+
var Ga = typeof window != "undefined" && typeof window.expect != "undefined";
|
18653
18696
|
var d = class {
|
18654
18697
|
static v(e, ...t) {
|
18655
18698
|
this.log(0, e, ...t);
|
@@ -18715,26 +18758,26 @@ var d = class {
|
|
18715
18758
|
}
|
18716
18759
|
}
|
18717
18760
|
};
|
18718
|
-
d.level =
|
18719
|
-
var
|
18761
|
+
d.level = Ga ? 7 : 0;
|
18762
|
+
var he = new import_ua_parser_js.UAParser();
|
18720
18763
|
var N = typeof window != "undefined";
|
18721
|
-
var Xr;
|
18722
|
-
var Le = typeof window == "undefined" && !((Xr = pe.getBrowser().name) != null && Xr.toLowerCase().includes("electron"));
|
18723
|
-
var Ba = () => !Le;
|
18724
|
-
var xn = Ba();
|
18725
18764
|
var Zr;
|
18765
|
+
var Le = typeof window == "undefined" && !((Zr = he.getBrowser().name) != null && Zr.toLowerCase().includes("electron"));
|
18766
|
+
var $a = () => !Le;
|
18767
|
+
var Fn = $a();
|
18726
18768
|
var es;
|
18727
|
-
var
|
18728
|
-
var rs = ((
|
18729
|
-
|
18769
|
+
var ts;
|
18770
|
+
var rs = ((ts = (es = he.getBrowser()) == null ? void 0 : es.name) == null ? void 0 : ts.toLowerCase()) === "firefox";
|
18771
|
+
var ss = ((i) => (i.CUSTOM = "CUSTOM", i.LOCAL = "LOCAL", i.HMS = "HMS", i))(ss || {});
|
18772
|
+
function Ka() {
|
18730
18773
|
if (N && window) {
|
18731
18774
|
let a2 = window.location.hostname;
|
18732
18775
|
return a2 === "localhost" || a2 === "127.0.0.1" ? "LOCAL" : a2.includes("app.100ms.live") ? "HMS" : "CUSTOM";
|
18733
18776
|
}
|
18734
18777
|
return "CUSTOM";
|
18735
18778
|
}
|
18736
|
-
var
|
18737
|
-
var
|
18779
|
+
var Ve = Ka();
|
18780
|
+
var M = { WebSocketConnectionErrors: { FAILED_TO_CONNECT: 1e3, WEBSOCKET_CONNECTION_LOST: 1003, ABNORMAL_CLOSE: 1006 }, APIErrors: { SERVER_ERRORS: 2e3, INIT_CONFIG_NOT_AVAILABLE: 2002, ENDPOINT_UNREACHABLE: 2003, INVALID_TOKEN_FORMAT: 2004 }, TracksErrors: { GENERIC_TRACK: 3e3, CANT_ACCESS_CAPTURE_DEVICE: 3001, DEVICE_NOT_AVAILABLE: 3002, DEVICE_IN_USE: 3003, DEVICE_LOST_MIDWAY: 3004, NOTHING_TO_RETURN: 3005, INVALID_VIDEO_SETTINGS: 3006, CODEC_CHANGE_NOT_PERMITTED: 3007, AUTOPLAY_ERROR: 3008, OVER_CONSTRAINED: 3009, NO_AUDIO_DETECTED: 3010, SYSTEM_DENIED_PERMISSION: 3011, CURRENT_TAB_NOT_SHARED: 3012, AUDIO_PLAYBACK_ERROR: 3013, SELECTED_DEVICE_MISSING: 3014 }, WebrtcErrors: { CREATE_OFFER_FAILED: 4001, CREATE_ANSWER_FAILED: 4002, SET_LOCAL_DESCRIPTION_FAILED: 4003, SET_REMOTE_DESCRIPTION_FAILED: 4004, ICE_FAILURE: 4005, ICE_DISCONNECTED: 4006, STATS_FAILED: 4007 }, WebsocketMethodErrors: { SERVER_ERRORS: 5e3, ALREADY_JOINED: 5001, CANNOT_JOIN_PREVIEW_IN_PROGRESS: 5002 }, GenericErrors: { NOT_CONNECTED: 6e3, SIGNALLING: 6001, UNKNOWN: 6002, NOT_READY: 6003, JSON_PARSING_FAILED: 6004, TRACK_METADATA_MISSING: 6005, RTC_TRACK_MISSING: 6006, PEER_METADATA_MISSING: 6007, INVALID_ROLE: 6008, PREVIEW_IN_PROGRESS: 6009, MISSING_MEDIADEVICES: 6010, MISSING_RTCPEERCONNECTION: 6011, LOCAL_STORAGE_ACCESS_DENIED: 6012, VALIDATION_FAILED: 6013 }, PlaylistErrors: { NO_ENTRY_TO_PLAY: 8001, NO_ENTRY_IS_PLAYING: 8002 } };
|
18738
18781
|
var f = class a extends Error {
|
18739
18782
|
constructor(t, i, r, s, o, n = false) {
|
18740
18783
|
super(s);
|
@@ -18764,99 +18807,99 @@ var f = class a extends Error {
|
|
18764
18807
|
}`;
|
18765
18808
|
}
|
18766
18809
|
};
|
18767
|
-
var
|
18810
|
+
var qa = ["join", "offer", "answer", "trickle", "on-error", "JOIN"];
|
18768
18811
|
var m = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
|
18769
|
-
return new f(
|
18812
|
+
return new f(M.WebSocketConnectionErrors.FAILED_TO_CONNECT, "WebsocketFailedToConnect", a2, `[WS]: ${e}`, `[WS]: ${e}`);
|
18770
18813
|
}, WebSocketConnectionLost(a2, e = "") {
|
18771
|
-
return new f(
|
18814
|
+
return new f(M.WebSocketConnectionErrors.WEBSOCKET_CONNECTION_LOST, "WebSocketConnectionLost", a2, "Network connection lost", e);
|
18772
18815
|
}, AbnormalClose(a2, e = "") {
|
18773
|
-
return new f(
|
18816
|
+
return new f(M.WebSocketConnectionErrors.ABNORMAL_CLOSE, "WebSocketAbnormalClose", a2, "Websocket closed abnormally", e);
|
18774
18817
|
} }, APIErrors: { ServerErrors(a2, e, t = "", i = true) {
|
18775
18818
|
return new f(a2, "ServerErrors", e, `[${e}]: Server error ${t}`, t, i);
|
18776
18819
|
}, EndpointUnreachable(a2, e = "") {
|
18777
|
-
return new f(
|
18820
|
+
return new f(M.APIErrors.ENDPOINT_UNREACHABLE, "EndpointUnreachable", a2, `Endpoint is not reachable - ${e}`, e);
|
18778
18821
|
}, InvalidTokenFormat(a2, e = "") {
|
18779
|
-
return new f(
|
18822
|
+
return new f(M.APIErrors.INVALID_TOKEN_FORMAT, "InvalidTokenFormat", a2, `Token is not in proper JWT format - ${e}`, e, true);
|
18780
18823
|
}, InitConfigNotAvailable(a2, e = "") {
|
18781
|
-
return new f(
|
18824
|
+
return new f(M.APIErrors.INIT_CONFIG_NOT_AVAILABLE, "InitError", a2, `[INIT]: ${e}`, `[INIT]: ${e}`);
|
18782
18825
|
} }, TracksErrors: { GenericTrack(a2, e = "") {
|
18783
|
-
return new f(
|
18826
|
+
return new f(M.TracksErrors.GENERIC_TRACK, "GenericTrack", a2, `[TRACK]: ${e}`, `[TRACK]: ${e}`);
|
18784
18827
|
}, CantAccessCaptureDevice(a2, e, t = "") {
|
18785
|
-
return new f(
|
18828
|
+
return new f(M.TracksErrors.CANT_ACCESS_CAPTURE_DEVICE, "CantAccessCaptureDevice", a2, `User denied permission to access capture device - ${e}`, t);
|
18786
18829
|
}, DeviceNotAvailable(a2, e, t = "") {
|
18787
|
-
return new f(
|
18830
|
+
return new f(M.TracksErrors.DEVICE_NOT_AVAILABLE, "DeviceNotAvailable", a2, `[TRACK]: Capture device is no longer available - ${e}`, t);
|
18788
18831
|
}, DeviceInUse(a2, e, t = "") {
|
18789
|
-
return new f(
|
18832
|
+
return new f(M.TracksErrors.DEVICE_IN_USE, "DeviceInUse", a2, `[TRACK]: Capture device is in use by another application - ${e}`, t);
|
18790
18833
|
}, DeviceLostMidway(a2, e, t = "") {
|
18791
|
-
return new f(
|
18834
|
+
return new f(M.TracksErrors.DEVICE_LOST_MIDWAY, "DeviceLostMidway", a2, `Lost access to capture device midway - ${e}`, t);
|
18792
18835
|
}, NothingToReturn(a2, e = "", t = "There is no media to return. Please select either video or audio or both.") {
|
18793
|
-
return new f(
|
18836
|
+
return new f(M.TracksErrors.NOTHING_TO_RETURN, "NothingToReturn", a2, t, e);
|
18794
18837
|
}, InvalidVideoSettings(a2, e = "") {
|
18795
|
-
return new f(
|
18838
|
+
return new f(M.TracksErrors.INVALID_VIDEO_SETTINGS, "InvalidVideoSettings", a2, "Cannot enable simulcast when no video settings are provided", e);
|
18796
18839
|
}, AutoplayBlocked(a2, e = "") {
|
18797
|
-
return new f(
|
18840
|
+
return new f(M.TracksErrors.AUTOPLAY_ERROR, "AutoplayBlocked", a2, "Autoplay blocked because the user didn't interact with the document first", e);
|
18798
18841
|
}, CodecChangeNotPermitted(a2, e = "") {
|
18799
|
-
return new f(
|
18842
|
+
return new f(M.TracksErrors.CODEC_CHANGE_NOT_PERMITTED, "CodecChangeNotPermitted", a2, "Codec can't be changed mid call.", e);
|
18800
18843
|
}, OverConstrained(a2, e, t = "") {
|
18801
|
-
return new f(
|
18844
|
+
return new f(M.TracksErrors.OVER_CONSTRAINED, "OverConstrained", a2, `[TRACK]: Requested constraints cannot be satisfied with the device hardware - ${e}`, t);
|
18802
18845
|
}, NoAudioDetected(a2, e = "Please check the mic or use another audio input") {
|
18803
|
-
return new f(
|
18846
|
+
return new f(M.TracksErrors.NO_AUDIO_DETECTED, "NoAudioDetected", a2, "No audio input detected from microphone", e);
|
18804
18847
|
}, SystemDeniedPermission(a2, e, t = "") {
|
18805
|
-
return new f(
|
18848
|
+
return new f(M.TracksErrors.SYSTEM_DENIED_PERMISSION, "SystemDeniedPermission", a2, `Operating System denied permission to access capture device - ${e}`, t);
|
18806
18849
|
}, CurrentTabNotShared() {
|
18807
|
-
return new f(
|
18850
|
+
return new f(M.TracksErrors.CURRENT_TAB_NOT_SHARED, "CurrentTabNotShared", "TRACK", "The app requires you to share the current tab", "You must screen share the current tab in order to proceed");
|
18808
18851
|
}, AudioPlaybackError(a2) {
|
18809
|
-
return new f(
|
18852
|
+
return new f(M.TracksErrors.AUDIO_PLAYBACK_ERROR, "Audio playback error", "TRACK", a2, a2);
|
18810
18853
|
}, SelectedDeviceMissing(a2) {
|
18811
|
-
return new f(
|
18854
|
+
return new f(M.TracksErrors.SELECTED_DEVICE_MISSING, "SelectedDeviceMissing", "TRACK", `Could not detect selected ${a2} device`, `Please check connection to the ${a2} device`, false);
|
18812
18855
|
} }, WebrtcErrors: { CreateOfferFailed(a2, e = "") {
|
18813
|
-
return new f(
|
18856
|
+
return new f(M.WebrtcErrors.CREATE_OFFER_FAILED, "CreateOfferFailed", a2, `[${a2.toString()}]: Failed to create offer. `, e);
|
18814
18857
|
}, CreateAnswerFailed(a2, e = "") {
|
18815
|
-
return new f(
|
18858
|
+
return new f(M.WebrtcErrors.CREATE_ANSWER_FAILED, "CreateAnswerFailed", a2, `[${a2.toString()}]: Failed to create answer. `, e);
|
18816
18859
|
}, SetLocalDescriptionFailed(a2, e = "") {
|
18817
|
-
return new f(
|
18860
|
+
return new f(M.WebrtcErrors.SET_LOCAL_DESCRIPTION_FAILED, "SetLocalDescriptionFailed", a2, `[${a2.toString()}]: Failed to set offer. `, e);
|
18818
18861
|
}, SetRemoteDescriptionFailed(a2, e = "") {
|
18819
|
-
return new f(
|
18862
|
+
return new f(M.WebrtcErrors.SET_REMOTE_DESCRIPTION_FAILED, "SetRemoteDescriptionFailed", a2, `[${a2.toString()}]: Failed to set answer. `, e, true);
|
18820
18863
|
}, ICEFailure(a2, e = "", t = false) {
|
18821
|
-
return new f(
|
18864
|
+
return new f(M.WebrtcErrors.ICE_FAILURE, "ICEFailure", a2, `[${a2.toString()}]: Ice connection state FAILED`, e, t);
|
18822
18865
|
}, ICEDisconnected(a2, e = "") {
|
18823
|
-
return new f(
|
18866
|
+
return new f(M.WebrtcErrors.ICE_DISCONNECTED, "ICEDisconnected", a2, `[${a2.toString()}]: Ice connection state DISCONNECTED`, e);
|
18824
18867
|
}, StatsFailed(a2, e = "") {
|
18825
|
-
return new f(
|
18868
|
+
return new f(M.WebrtcErrors.STATS_FAILED, "StatsFailed", a2, `Failed to WebRTC get stats - ${e}`, e);
|
18826
18869
|
} }, WebsocketMethodErrors: { ServerErrors(a2, e, t) {
|
18827
|
-
return new f(a2, "ServerErrors", e, t, t,
|
18870
|
+
return new f(a2, "ServerErrors", e, t, t, qa.includes(e));
|
18828
18871
|
}, AlreadyJoined(a2, e = "") {
|
18829
|
-
return new f(
|
18872
|
+
return new f(M.WebsocketMethodErrors.ALREADY_JOINED, "AlreadyJoined", a2, "[JOIN]: You have already joined this room.", e);
|
18830
18873
|
}, CannotJoinPreviewInProgress(a2, e = "") {
|
18831
|
-
return new f(
|
18874
|
+
return new f(M.WebsocketMethodErrors.CANNOT_JOIN_PREVIEW_IN_PROGRESS, "CannotJoinPreviewInProgress", a2, "[JOIN]: Cannot join if preview is in progress", e);
|
18832
18875
|
} }, GenericErrors: { NotConnected(a2, e = "") {
|
18833
|
-
return new f(
|
18876
|
+
return new f(M.GenericErrors.NOT_CONNECTED, "NotConnected", a2, "Client is not connected", e);
|
18834
18877
|
}, Signalling(a2, e) {
|
18835
|
-
return new f(
|
18878
|
+
return new f(M.GenericErrors.SIGNALLING, "Signalling", a2, `Unknown signalling error: ${a2.toString()} ${e} `, e);
|
18836
18879
|
}, Unknown(a2, e) {
|
18837
|
-
return new f(
|
18880
|
+
return new f(M.GenericErrors.UNKNOWN, "Unknown", a2, `Unknown exception: ${e}`, e);
|
18838
18881
|
}, NotReady(a2, e = "") {
|
18839
|
-
return new f(
|
18882
|
+
return new f(M.GenericErrors.NOT_READY, "NotReady", a2, e, e);
|
18840
18883
|
}, JsonParsingFailed(a2, e, t = "") {
|
18841
|
-
return new f(
|
18884
|
+
return new f(M.GenericErrors.JSON_PARSING_FAILED, "JsonParsingFailed", a2, `Failed to parse JSON message - ${e}`, t);
|
18842
18885
|
}, TrackMetadataMissing(a2, e = "") {
|
18843
|
-
return new f(
|
18886
|
+
return new f(M.GenericErrors.TRACK_METADATA_MISSING, "TrackMetadataMissing", a2, "Track Metadata Missing", e);
|
18844
18887
|
}, RTCTrackMissing(a2, e = "") {
|
18845
|
-
return new f(
|
18888
|
+
return new f(M.GenericErrors.RTC_TRACK_MISSING, "RTCTrackMissing", a2, "RTC Track missing", e);
|
18846
18889
|
}, PeerMetadataMissing(a2, e = "") {
|
18847
|
-
return new f(
|
18890
|
+
return new f(M.GenericErrors.PEER_METADATA_MISSING, "PeerMetadataMissing", a2, "Peer Metadata Missing", e);
|
18848
18891
|
}, ValidationFailed(a2, e) {
|
18849
|
-
return new f(
|
18892
|
+
return new f(M.GenericErrors.VALIDATION_FAILED, "ValidationFailed", "VALIDATION", a2, e ? JSON.stringify(e) : "");
|
18850
18893
|
}, InvalidRole(a2, e) {
|
18851
|
-
return new f(
|
18894
|
+
return new f(M.GenericErrors.INVALID_ROLE, "InvalidRole", a2, "Invalid role. Join with valid role", e, true);
|
18852
18895
|
}, PreviewAlreadyInProgress(a2, e = "") {
|
18853
|
-
return new f(
|
18896
|
+
return new f(M.GenericErrors.PREVIEW_IN_PROGRESS, "PreviewAlreadyInProgress", a2, "[Preview]: Cannot join if preview is in progress", e);
|
18854
18897
|
}, LocalStorageAccessDenied(a2 = "Access to localStorage has been denied") {
|
18855
|
-
return new f(
|
18898
|
+
return new f(M.GenericErrors.LOCAL_STORAGE_ACCESS_DENIED, "LocalStorageAccessDenied", "NONE", "LocalStorageAccessDenied", a2);
|
18856
18899
|
}, MissingMediaDevices() {
|
18857
|
-
return new f(
|
18900
|
+
return new f(M.GenericErrors.MISSING_MEDIADEVICES, "MissingMediaDevices", "JOIN", "navigator.mediaDevices is undefined. 100ms SDK won't work on this website as WebRTC is not supported on HTTP endpoints(missing navigator.mediaDevices). Please ensure you're using the SDK either on localhost or a valid HTTPS endpoint.", "", true);
|
18858
18901
|
}, MissingRTCPeerConnection() {
|
18859
|
-
return new f(
|
18902
|
+
return new f(M.GenericErrors.MISSING_RTCPEERCONNECTION, "MissingRTCPeerConnection", "JOIN", "RTCPeerConnection which is a core requirement for WebRTC call was not found, this could be due to an unsupported browser or browser extensions blocking WebRTC", "", true);
|
18860
18903
|
} }, MediaPluginErrors: { PlatformNotSupported(a2, e = "") {
|
18861
18904
|
return new f(7001, "PlatformNotSupported", a2, "Check HMS Docs to see the list of supported platforms", e);
|
18862
18905
|
}, InitFailed(a2, e = "") {
|
@@ -18868,11 +18911,11 @@ var m = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
|
|
18868
18911
|
}, DeviceNotSupported(a2, e = "") {
|
18869
18912
|
return new f(7005, "DeviceNotSupported", a2, "Check HMS Docs to see the list of supported devices", e);
|
18870
18913
|
} }, PlaylistErrors: { NoEntryToPlay(a2, e) {
|
18871
|
-
return new f(
|
18914
|
+
return new f(M.PlaylistErrors.NO_ENTRY_TO_PLAY, "NoEntryToPlay", a2, "Reached end of playlist", e);
|
18872
18915
|
}, NoEntryPlaying(a2, e) {
|
18873
|
-
return new f(
|
18916
|
+
return new f(M.PlaylistErrors.NO_ENTRY_IS_PLAYING, "NoEntryIsPlaying", a2, "No entry is playing at this time", e);
|
18874
18917
|
} } };
|
18875
|
-
var
|
18918
|
+
var ar = class {
|
18876
18919
|
constructor() {
|
18877
18920
|
this.valuesMap = /* @__PURE__ */ new Map();
|
18878
18921
|
}
|
@@ -18897,9 +18940,9 @@ var sr = class {
|
|
18897
18940
|
return this.valuesMap.size;
|
18898
18941
|
}
|
18899
18942
|
};
|
18900
|
-
var
|
18943
|
+
var as = () => {
|
18901
18944
|
try {
|
18902
|
-
N && !localStorage && (window.localStorage = new
|
18945
|
+
N && !localStorage && (window.localStorage = new ar());
|
18903
18946
|
} catch (a2) {
|
18904
18947
|
d.e("Error initialising localStorage", m.GenericErrors.LocalStorageAccessDenied());
|
18905
18948
|
}
|
@@ -18911,7 +18954,7 @@ var ne = class {
|
|
18911
18954
|
}
|
18912
18955
|
getStorage() {
|
18913
18956
|
try {
|
18914
|
-
return N && !this.storage && (
|
18957
|
+
return N && !this.storage && (as(), this.storage = window.localStorage), this.storage;
|
18915
18958
|
} catch (e) {
|
18916
18959
|
return d.e("Error initialising localStorage", m.GenericErrors.LocalStorageAccessDenied()), null;
|
18917
18960
|
}
|
@@ -18931,37 +18974,37 @@ var ne = class {
|
|
18931
18974
|
(e = this.getStorage()) == null || e.removeItem(this.key);
|
18932
18975
|
}
|
18933
18976
|
};
|
18934
|
-
var
|
18977
|
+
var os = () => {
|
18935
18978
|
let a2, e = new ne("hms-analytics-deviceId"), t = e.get();
|
18936
|
-
return t ? a2 = t : (a2 =
|
18979
|
+
return t ? a2 = t : (a2 = ja(), e.set(a2)), a2;
|
18937
18980
|
};
|
18938
18981
|
function re(a2) {
|
18939
18982
|
return a2 != null;
|
18940
18983
|
}
|
18941
|
-
var
|
18942
|
-
function
|
18943
|
-
let t = "web", i =
|
18984
|
+
var cs = cr().version;
|
18985
|
+
function ot(a2 = "prod", e) {
|
18986
|
+
let t = "web", i = Ve !== "LOCAL" && a2 === "prod" ? "prod" : "debug";
|
18944
18987
|
if (Le)
|
18945
|
-
return
|
18946
|
-
let r =
|
18947
|
-
return s.type && (
|
18988
|
+
return ds({ os: "web_nodejs", os_version: process.version, sdk: t, sdk_version: cs, env: i, domain: Ve, is_prebuilt: !!(e != null && e.isPrebuilt), framework: "node", framework_version: process.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
|
18989
|
+
let r = he.getOS(), s = he.getDevice(), o = he.getBrowser(), n = dr(`web_${r.name}`), l = r.version || "", p = dr(`${o.name}_${o.version}`), u = p;
|
18990
|
+
return s.type && (u = `${dr(`${s.vendor}_${s.type}`)}/${p}`), ds({ os: n, os_version: l, sdk: t, sdk_version: cs, device_model: u, env: i, domain: Ve, is_prebuilt: !!(e != null && e.isPrebuilt), framework: e == null ? void 0 : e.type, framework_version: e == null ? void 0 : e.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
|
18948
18991
|
}
|
18949
|
-
function
|
18992
|
+
function dr(a2) {
|
18950
18993
|
return a2.replace(/ /g, "_");
|
18951
18994
|
}
|
18952
|
-
var
|
18995
|
+
var ds = (a2, e = ",") => Object.keys(a2).filter((t) => re(a2[t])).map((t) => `${t}:${a2[t]}`).join(e);
|
18953
18996
|
var C = class {
|
18954
18997
|
constructor({ name: e, level: t, properties: i, includesPII: r, timestamp: s }) {
|
18955
|
-
this.metadata = { peer: {}, userAgent:
|
18956
|
-
this.name = e, this.level = t, this.includesPII = r || false, this.properties = i || {}, this.timestamp = s || (/* @__PURE__ */ new Date()).getTime(), this.event_id =
|
18998
|
+
this.metadata = { peer: {}, userAgent: ot() };
|
18999
|
+
this.name = e, this.level = t, this.includesPII = r || false, this.properties = i || {}, this.timestamp = s || (/* @__PURE__ */ new Date()).getTime(), this.event_id = Qa(), this.device_id = os();
|
18957
19000
|
}
|
18958
19001
|
toSignalParams() {
|
18959
|
-
return { name: this.name, info:
|
19002
|
+
return { name: this.name, info: v(S({}, this.properties), { timestamp: this.timestamp, domain: Ve }), timestamp: (/* @__PURE__ */ new Date()).getTime() };
|
18960
19003
|
}
|
18961
19004
|
};
|
18962
|
-
var
|
19005
|
+
var P3 = class {
|
18963
19006
|
static connect(e, t, i = /* @__PURE__ */ new Date(), r = /* @__PURE__ */ new Date(), s) {
|
18964
|
-
let o = this.eventNameFor("connect", e === void 0), n = e ? 2 : 1, l = this.getPropertiesWithError(
|
19007
|
+
let o = this.eventNameFor("connect", e === void 0), n = e ? 2 : 1, l = this.getPropertiesWithError(v(S({}, t), { [this.KEY_REQUESTED_AT]: i == null ? void 0 : i.getTime(), [this.KEY_RESPONDED_AT]: r == null ? void 0 : r.getTime(), endpoint: s }), e);
|
18965
19008
|
return new C({ name: o, level: n, properties: l });
|
18966
19009
|
}
|
18967
19010
|
static disconnect(e, t) {
|
@@ -18969,13 +19012,13 @@ var k = class {
|
|
18969
19012
|
return new C({ name: i, level: r, properties: s });
|
18970
19013
|
}
|
18971
19014
|
static preview(i) {
|
18972
|
-
var r = i, { error: e } = r, t =
|
19015
|
+
var r = i, { error: e } = r, t = er(r, ["error"]);
|
18973
19016
|
let s = this.eventNameFor("preview", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(t, e);
|
18974
19017
|
return new C({ name: s, level: o, properties: n });
|
18975
19018
|
}
|
18976
19019
|
static join(i) {
|
18977
|
-
var r = i, { error: e } = r, t =
|
18978
|
-
let s = this.eventNameFor("join", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(
|
19020
|
+
var r = i, { error: e } = r, t = er(r, ["error"]);
|
19021
|
+
let s = this.eventNameFor("join", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(v(S({}, t), { is_preview_called: !!t.is_preview_called }), e);
|
18979
19022
|
return new C({ name: s, level: o, properties: n });
|
18980
19023
|
}
|
18981
19024
|
static publish({ devices: e, settings: t, error: i }) {
|
@@ -19018,7 +19061,7 @@ var k = class {
|
|
19018
19061
|
let i = "video.degradation.stats", r = 1, s = { degradedAt: e.degradedAt, trackId: e.trackId };
|
19019
19062
|
if (!t && e.degradedAt instanceof Date) {
|
19020
19063
|
let o = /* @__PURE__ */ new Date(), n = o.valueOf() - e.degradedAt.valueOf();
|
19021
|
-
s =
|
19064
|
+
s = v(S({}, s), { duration: n, restoredAt: o });
|
19022
19065
|
}
|
19023
19066
|
return new C({ name: i, level: r, properties: s });
|
19024
19067
|
}
|
@@ -19049,8 +19092,8 @@ var k = class {
|
|
19049
19092
|
return e ? e instanceof f ? e.toAnalyticsProperties() : { error_name: e.name, error_message: e.message, error_description: e.cause } : {};
|
19050
19093
|
}
|
19051
19094
|
};
|
19052
|
-
|
19053
|
-
var
|
19095
|
+
P3.KEY_REQUESTED_AT = "requested_at", P3.KEY_RESPONDED_AT = "responded_at";
|
19096
|
+
var lr = class {
|
19054
19097
|
constructor() {
|
19055
19098
|
this.storage = new ne("hms-device-selection");
|
19056
19099
|
this.remember = false;
|
@@ -19084,10 +19127,10 @@ var dr = class {
|
|
19084
19127
|
return e.deviceId === t.deviceId && (e.groupId === t.groupId || !e.groupId);
|
19085
19128
|
}
|
19086
19129
|
};
|
19087
|
-
var
|
19088
|
-
var
|
19089
|
-
var
|
19090
|
-
function
|
19130
|
+
var j = new lr();
|
19131
|
+
var ur = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(ur || {});
|
19132
|
+
var pr = ((t) => (t.PLATFORM_NOT_SUPPORTED = "PLATFORM_NOT_SUPPORTED", t.DEVICE_NOT_SUPPORTED = "DEVICE_NOT_SUPPORTED", t))(pr || {});
|
19133
|
+
function Qt(a2, e = 300) {
|
19091
19134
|
let t;
|
19092
19135
|
return function(...i) {
|
19093
19136
|
clearTimeout(t), t = void 0;
|
@@ -19097,14 +19140,14 @@ function jt(a2, e = 300) {
|
|
19097
19140
|
}, e);
|
19098
19141
|
};
|
19099
19142
|
}
|
19100
|
-
var
|
19101
|
-
var
|
19102
|
-
var
|
19103
|
-
var
|
19104
|
-
var
|
19105
|
-
var
|
19106
|
-
var
|
19107
|
-
var
|
19143
|
+
var hr = ((t) => (t.SIP = "sip", t.REGULAR = "regular", t))(hr || {});
|
19144
|
+
var Ss = ((n) => (n.NONE = "none", n.INITIALISED = "initialised", n.STARTED = "started", n.PAUSED = "paused", n.RESUMED = "resumed", n.STOPPED = "stopped", n.FAILED = "failed", n))(Ss || {});
|
19145
|
+
var gs = ((t) => (t.DVR = "dvr", t.NO_DVR = "no-dvr", t))(gs || {});
|
19146
|
+
var Ts = ((i) => (i.REGULAR = "regular", i.SCREEN = "screen", i.COMPOSITE = "composite", i))(Ts || {});
|
19147
|
+
var fs = ((r) => (r.INITIALISED = "initialised", r.STARTED = "started", r.STOPPED = "stopped", r.FAILED = "failed", r))(fs || {});
|
19148
|
+
var vs = ((e) => (e.CAPTION = "caption", e))(vs || {});
|
19149
|
+
var Ms = ((i) => (i.videoInput = "videoInput", i.audioInput = "audioInput", i.audioOutput = "audioOutput", i))(Ms || {});
|
19150
|
+
var mr = class {
|
19108
19151
|
constructor() {
|
19109
19152
|
this.TAG = "[HMSIntersectionObserverWrapper]";
|
19110
19153
|
this.listeners = /* @__PURE__ */ new WeakMap();
|
@@ -19131,8 +19174,8 @@ var hr = class {
|
|
19131
19174
|
return e || d.w(this.TAG, "IntersectionObserver is not supported, fallback will be used instead"), e;
|
19132
19175
|
}
|
19133
19176
|
};
|
19134
|
-
var
|
19135
|
-
var
|
19177
|
+
var ks = new mr();
|
19178
|
+
var Sr = class {
|
19136
19179
|
constructor() {
|
19137
19180
|
this.TAG = "[HMSResizeObserverWrapper]";
|
19138
19181
|
this.listeners = /* @__PURE__ */ new WeakMap();
|
@@ -19145,7 +19188,7 @@ var mr = class {
|
|
19145
19188
|
(t = this.resizeObserver) == null || t.unobserve(e), this.listeners.delete(e);
|
19146
19189
|
};
|
19147
19190
|
this.createObserver = () => {
|
19148
|
-
this.isSupported() && !this.resizeObserver && (this.resizeObserver = new ResizeObserver(
|
19191
|
+
this.isSupported() && !this.resizeObserver && (this.resizeObserver = new ResizeObserver(Qt(this.handleResize, 300)));
|
19149
19192
|
};
|
19150
19193
|
this.handleResize = (e) => {
|
19151
19194
|
var t;
|
@@ -19159,43 +19202,43 @@ var mr = class {
|
|
19159
19202
|
return e || d.w(this.TAG, "Resize Observer is not supported"), e;
|
19160
19203
|
}
|
19161
19204
|
};
|
19162
|
-
var
|
19163
|
-
var
|
19164
|
-
var
|
19165
|
-
var
|
19166
|
-
var
|
19167
|
-
var
|
19205
|
+
var As = new Sr();
|
19206
|
+
var gr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(gr || {});
|
19207
|
+
var Tr = ((t) => (t["2D"] = "2d", t.WEBGL = "webgl", t.WEBGL2 = "webgl2", t))(Tr || {});
|
19208
|
+
var bs = "https://event.100ms.live/v2/client/report";
|
19209
|
+
var Hs = "https://event-nonprod.100ms.live/v2/client/report";
|
19210
|
+
var pt = Math.pow(2, 31) - 1;
|
19168
19211
|
var Qe = class {
|
19169
19212
|
};
|
19170
|
-
Qe.makePeerId = () =>
|
19171
|
-
var
|
19172
|
-
var
|
19173
|
-
var
|
19174
|
-
var
|
19175
|
-
var
|
19176
|
-
var
|
19177
|
-
var
|
19178
|
-
var
|
19179
|
-
var
|
19180
|
-
var
|
19181
|
-
var He = createSelector([
|
19182
|
-
var
|
19183
|
-
var
|
19184
|
-
var
|
19185
|
-
var
|
19186
|
-
var
|
19187
|
-
var fe = createSelector(
|
19188
|
-
var
|
19189
|
-
var
|
19190
|
-
var
|
19191
|
-
var
|
19192
|
-
var
|
19193
|
-
var Vs = createSelector([
|
19213
|
+
Qe.makePeerId = () => mo();
|
19214
|
+
var U = (a2) => a2.room;
|
19215
|
+
var go = (a2) => a2.errors;
|
19216
|
+
var bh = createSelector(go, (a2) => a2.length === 0 ? null : a2.at(-1));
|
19217
|
+
var Hh = createSelector(U, (a2) => a2.id);
|
19218
|
+
var W = (a2) => a2.peers;
|
19219
|
+
var ni = (a2) => a2.messages.byID;
|
19220
|
+
var Us = (a2) => a2.messages.allIDs;
|
19221
|
+
var _ = (a2) => a2.tracks;
|
19222
|
+
var Rr = (a2) => a2.appData;
|
19223
|
+
var To = (a2) => a2.speakers;
|
19224
|
+
var He = createSelector([U], (a2) => a2 && a2.isConnected);
|
19225
|
+
var Dh = createSelector([He, U], (a2, e) => a2 ? e.peerCount !== void 0 ? e.peerCount || 1 : e.peers.length : Math.max(e.peerCount !== void 0 ? e.peerCount : e.peers.length - 1, 0));
|
19226
|
+
var fo = (a2) => a2.hideLocalPeer;
|
19227
|
+
var ue = createSelector([U, W, fo], (a2, e, t) => t ? a2.peers.filter((i) => a2.localPeer !== i).map((i) => e[i]) : a2.peers.map((i) => e[i]));
|
19228
|
+
var vo = createSelector(_, (a2) => Object.values(a2));
|
19229
|
+
var Y = createSelector(U, W, (a2, e) => e[a2.localPeer]);
|
19230
|
+
var fe = createSelector(U, (a2) => a2.localPeer);
|
19231
|
+
var wh = createSelector(Y, (a2) => a2 == null ? void 0 : a2.name);
|
19232
|
+
var _h = createSelector(Y, (a2) => a2 == null ? void 0 : a2.roleName);
|
19233
|
+
var ie = createSelector(Y, (a2) => a2 == null ? void 0 : a2.audioTrack);
|
19234
|
+
var J = createSelector(Y, (a2) => a2 == null ? void 0 : a2.videoTrack);
|
19235
|
+
var Mo = createSelector(Y, (a2) => a2 == null ? void 0 : a2.auxiliaryTracks);
|
19236
|
+
var Vs = createSelector([ie, J, Mo], (a2, e, t) => {
|
19194
19237
|
let i = t ? [...t] : [];
|
19195
19238
|
return a2 && i.unshift(a2), e && i.unshift(e), i;
|
19196
19239
|
});
|
19197
|
-
var
|
19198
|
-
var
|
19240
|
+
var Nh = createSelector(ue, (a2) => a2.filter((e) => !e.isLocal));
|
19241
|
+
var Oh = createSelector(W, To, (a2, e) => {
|
19199
19242
|
let t = Object.entries(e).sort((i, r) => {
|
19200
19243
|
var n, l;
|
19201
19244
|
let s = ((n = i[1]) == null ? void 0 : n.audioLevel) || 0;
|
@@ -19208,11 +19251,11 @@ var Dh = createSelector(G, ho, (a2, e) => {
|
|
19208
19251
|
}
|
19209
19252
|
return null;
|
19210
19253
|
});
|
19211
|
-
var
|
19254
|
+
var Hr = createSelector(Y, _, (a2, e) => {
|
19212
19255
|
let { video: t, audio: i } = Ce(e, a2);
|
19213
19256
|
return !!(t || i);
|
19214
19257
|
});
|
19215
|
-
var
|
19258
|
+
var yo = createSelector(W, _, (a2, e) => {
|
19216
19259
|
let t;
|
19217
19260
|
for (let i in a2) {
|
19218
19261
|
let r = a2[i], { video: s, audio: o } = Ce(e, r);
|
@@ -19222,15 +19265,15 @@ var To = createSelector(G, w, (a2, e) => {
|
|
19222
19265
|
}
|
19223
19266
|
return t;
|
19224
19267
|
});
|
19225
|
-
var
|
19226
|
-
var
|
19268
|
+
var Uh = createSelector(yo, (a2) => !!a2);
|
19269
|
+
var Bh = createSelector(W, _, (a2, e) => {
|
19227
19270
|
for (let t in a2) {
|
19228
19271
|
let i = a2[t], { audio: r, video: s } = Ce(e, i);
|
19229
19272
|
if (!s && r)
|
19230
19273
|
return i;
|
19231
19274
|
}
|
19232
19275
|
});
|
19233
|
-
var
|
19276
|
+
var Vh = createSelector(W, _, (a2, e) => {
|
19234
19277
|
let t = [], i = [];
|
19235
19278
|
for (let r in a2) {
|
19236
19279
|
let s = a2[r], { video: o, audio: n } = Ce(e, s);
|
@@ -19238,82 +19281,82 @@ var Oh = createSelector(G, w, (a2, e) => {
|
|
19238
19281
|
}
|
19239
19282
|
return t.concat(i);
|
19240
19283
|
});
|
19241
|
-
var
|
19284
|
+
var Fh = createSelector(W, _, (a2, e) => {
|
19242
19285
|
for (let t in e) {
|
19243
19286
|
let i = e[t];
|
19244
|
-
if (
|
19287
|
+
if (st(i) && rt(i) && i.peerId)
|
19245
19288
|
return a2[i.peerId];
|
19246
19289
|
}
|
19247
19290
|
});
|
19248
|
-
var
|
19291
|
+
var Gh = createSelector(W, _, (a2, e) => {
|
19249
19292
|
for (let t in e) {
|
19250
19293
|
let i = e[t];
|
19251
|
-
if (
|
19294
|
+
if (qt(i) && i.peerId)
|
19252
19295
|
return a2[i.peerId];
|
19253
19296
|
}
|
19254
19297
|
});
|
19255
|
-
var
|
19256
|
-
var
|
19257
|
-
var
|
19258
|
-
var
|
19298
|
+
var Wh = createSelector(vo, (a2) => a2.filter(zr));
|
19299
|
+
var $h = createSelector(Us, (a2) => a2.length);
|
19300
|
+
var Kh = createSelector(ni, (a2) => Object.values(a2).filter((e) => !e.read).length);
|
19301
|
+
var gt = createSelector(Us, ni, (a2, e) => {
|
19259
19302
|
let t = [];
|
19260
19303
|
return a2.forEach((i) => {
|
19261
19304
|
t.push(e[i]);
|
19262
19305
|
}), t;
|
19263
19306
|
});
|
19264
|
-
var
|
19307
|
+
var Po = createSelector(gt, (a2) => a2.filter((e) => {
|
19265
19308
|
var t;
|
19266
19309
|
return !e.recipientPeer && !(e.recipientRoles && ((t = e.recipientRoles) == null ? void 0 : t.length) > 0);
|
19267
19310
|
}));
|
19268
|
-
var
|
19269
|
-
var
|
19270
|
-
var
|
19271
|
-
var
|
19272
|
-
var
|
19273
|
-
var
|
19274
|
-
var
|
19275
|
-
var
|
19276
|
-
var
|
19311
|
+
var qh = createSelector(Po, (a2) => a2.filter((e) => !e.read).length);
|
19312
|
+
var X = createSelector([U], (a2) => a2 && a2.roomState);
|
19313
|
+
var Gs = createSelector(X, (a2) => a2 === "Preview");
|
19314
|
+
var jh = createSelector(U, (a2) => a2.roomState !== "Disconnected");
|
19315
|
+
var Jh = createSelector(U, (a2) => !a2.transcriptions || a2.transcriptions.length <= 0 ? false : a2.transcriptions.some((e) => e.mode === "caption" && e.state === "started"));
|
19316
|
+
var pe = (a2) => a2.roles;
|
19317
|
+
var Qh = createSelector([pe], (a2) => Object.keys(a2));
|
19318
|
+
var Ye = createSelector([Y, pe], (a2, e) => a2 != null && a2.roleName ? e[a2.roleName] : null);
|
19319
|
+
var Eo = (a2) => {
|
19277
19320
|
var e;
|
19278
19321
|
return (e = a2.preview) == null ? void 0 : e.asRole;
|
19279
19322
|
};
|
19280
|
-
var
|
19281
|
-
var
|
19323
|
+
var Ws = createSelector([Eo, pe], (a2, e) => a2 ? e[a2] : null);
|
19324
|
+
var zh = createSelector([Ye], (a2) => {
|
19282
19325
|
var e;
|
19283
19326
|
return (e = a2 == null ? void 0 : a2.subscribeParams) != null && e.subscribeToRoles ? a2.subscribeParams.subscribeToRoles.length > 0 : false;
|
19284
19327
|
});
|
19285
|
-
var
|
19286
|
-
var
|
19287
|
-
var
|
19288
|
-
var
|
19289
|
-
var
|
19290
|
-
var
|
19291
|
-
var
|
19292
|
-
var
|
19293
|
-
var
|
19294
|
-
var
|
19295
|
-
var
|
19296
|
-
var
|
19297
|
-
var
|
19298
|
-
var
|
19299
|
-
var
|
19300
|
-
var
|
19301
|
-
var
|
19302
|
-
var
|
19303
|
-
var
|
19304
|
-
var
|
19305
|
-
var
|
19306
|
-
var
|
19328
|
+
var $s = createSelector(Ye, (a2) => a2 == null ? void 0 : a2.permissions);
|
19329
|
+
var Yh = createSelector(U, (a2) => a2.recording);
|
19330
|
+
var Xh = createSelector(U, (a2) => a2.rtmp);
|
19331
|
+
var Zh = createSelector(U, (a2) => a2.hls);
|
19332
|
+
var em = createSelector(U, (a2) => a2.transcriptions);
|
19333
|
+
var tm = createSelector(U, (a2) => a2.sessionId);
|
19334
|
+
var im = createSelector(U, (a2) => a2.startedAt);
|
19335
|
+
var rm = createSelector(U, (a2) => !!a2.isLargeRoom);
|
19336
|
+
var sm = createSelector(U, (a2) => !!a2.isEffectsEnabled);
|
19337
|
+
var am = createSelector(U, (a2) => a2.effectsKey);
|
19338
|
+
var Ks = (a2) => a2.polls;
|
19339
|
+
var dm = createSelector(ue, (a2) => a2.filter((e) => e.isHandRaised));
|
19340
|
+
var ko = (a2) => a2.whiteboards;
|
19341
|
+
var lm = createSelector(ko, (a2) => Object.values(a2)[0]);
|
19342
|
+
var js = (a2 = "audio") => (e) => e.playlist[a2].list;
|
19343
|
+
var Cr = (a2 = "audio") => (e) => e.playlist[a2].selection;
|
19344
|
+
var Js = (a2 = "audio") => (e) => e.playlist[a2].progress;
|
19345
|
+
var Qs = (a2 = "audio") => (e) => e.playlist[a2].currentTime;
|
19346
|
+
var zs = (a2 = "audio") => (e) => e.playlist[a2].playbackRate;
|
19347
|
+
var Ys = (a2 = "audio") => (e) => e.playlist[a2].volume;
|
19348
|
+
var Xs = (a2 = "audio") => createSelector(js(a2), (e) => Object.values(e));
|
19349
|
+
var Zs = (a2 = "audio") => createSelector(js(a2), Cr(a2), (e, t) => {
|
19307
19350
|
if (t.id)
|
19308
19351
|
return e[t.id];
|
19309
19352
|
});
|
19310
|
-
var
|
19311
|
-
var
|
19312
|
-
function
|
19353
|
+
var ea = { selection: Cr("audio"), progress: Js("audio"), currentTime: Qs("audio"), playbackRate: zs("audio"), volume: Ys("audio"), list: Xs("audio"), selectedItem: Zs("audio") };
|
19354
|
+
var ta = { selection: Cr("video"), progress: Js("video"), currentTime: Qs("video"), playbackRate: zs("video"), volume: Ys("video"), list: Xs("video"), selectedItem: Zs("video") };
|
19355
|
+
function R(a2) {
|
19313
19356
|
return (e) => (t) => a2(t, e);
|
19314
19357
|
}
|
19315
|
-
var
|
19316
|
-
var
|
19358
|
+
var Tt = "HMS-Store:";
|
19359
|
+
var E = class {
|
19317
19360
|
static v(e, ...t) {
|
19318
19361
|
this.log(0, e, ...t);
|
19319
19362
|
}
|
@@ -19342,23 +19385,23 @@ var P3 = class {
|
|
19342
19385
|
if (!(this.level.valueOf() > e.valueOf()))
|
19343
19386
|
switch (e) {
|
19344
19387
|
case 0: {
|
19345
|
-
console.log(
|
19388
|
+
console.log(Tt, ...t);
|
19346
19389
|
break;
|
19347
19390
|
}
|
19348
19391
|
case 1: {
|
19349
|
-
console.debug(
|
19392
|
+
console.debug(Tt, ...t);
|
19350
19393
|
break;
|
19351
19394
|
}
|
19352
19395
|
case 2: {
|
19353
|
-
console.info(
|
19396
|
+
console.info(Tt, ...t);
|
19354
19397
|
break;
|
19355
19398
|
}
|
19356
19399
|
case 3: {
|
19357
|
-
console.warn(
|
19400
|
+
console.warn(Tt, ...t);
|
19358
19401
|
break;
|
19359
19402
|
}
|
19360
19403
|
case 6: {
|
19361
|
-
console.error(
|
19404
|
+
console.error(Tt, ...t);
|
19362
19405
|
break;
|
19363
19406
|
}
|
19364
19407
|
case 4: {
|
@@ -19378,203 +19421,203 @@ var P3 = class {
|
|
19378
19421
|
}
|
19379
19422
|
}
|
19380
19423
|
};
|
19381
|
-
|
19382
|
-
var
|
19383
|
-
var
|
19384
|
-
var
|
19385
|
-
var
|
19386
|
-
var
|
19387
|
-
var
|
19388
|
-
var
|
19389
|
-
var
|
19424
|
+
E.level = 0;
|
19425
|
+
var Lr = (a2, e) => e;
|
19426
|
+
var ft = (a2, e) => e;
|
19427
|
+
var ia = (a2, e) => e;
|
19428
|
+
var Ao = (a2, e) => e;
|
19429
|
+
var Io = (a2, e) => e;
|
19430
|
+
var $ = createSelector([W, Lr], (a2, e) => e ? a2[e] : null);
|
19431
|
+
var Dr = createSelector([_, ft], (a2, e) => e ? a2[e] : null);
|
19432
|
+
var Ro = createSelector([_, ft], (a2, e) => {
|
19390
19433
|
if (!e)
|
19391
19434
|
return null;
|
19392
19435
|
let t = a2[e];
|
19393
19436
|
return (t == null ? void 0 : t.type) === "video" ? t : null;
|
19394
19437
|
});
|
19395
|
-
var
|
19438
|
+
var bo = createSelector([_, ft], (a2, e) => {
|
19396
19439
|
if (!e)
|
19397
19440
|
return null;
|
19398
19441
|
let t = a2[e];
|
19399
19442
|
return (t == null ? void 0 : t.type) === "audio" ? t : null;
|
19400
19443
|
});
|
19401
|
-
var
|
19444
|
+
var Ho = createSelector([_, ft], (a2, e) => {
|
19402
19445
|
if (!e)
|
19403
19446
|
return null;
|
19404
19447
|
let t = a2[e];
|
19405
19448
|
return (t == null ? void 0 : t.type) === "audio" && (t == null ? void 0 : t.source) === "screen" ? t : null;
|
19406
19449
|
});
|
19407
|
-
var
|
19450
|
+
var Co = createSelector([_, ft], (a2, e) => {
|
19408
19451
|
if (!e)
|
19409
19452
|
return null;
|
19410
19453
|
let t = a2[e];
|
19411
19454
|
return (t == null ? void 0 : t.type) === "video" && (t == null ? void 0 : t.source) === "screen" ? t : null;
|
19412
19455
|
});
|
19413
|
-
var
|
19414
|
-
var
|
19415
|
-
var
|
19456
|
+
var Lo = createSelector([Ks, Io], (a2, e) => e ? a2[e] : null);
|
19457
|
+
var Q = R($);
|
19458
|
+
var ym = R(createSelector([Rr, Ao], (a2, e) => {
|
19416
19459
|
if (a2)
|
19417
19460
|
return e ? a2[e] : a2;
|
19418
19461
|
}));
|
19419
|
-
function
|
19462
|
+
function Pm(a2) {
|
19420
19463
|
return (e) => {
|
19421
19464
|
if (e.sessionStore)
|
19422
19465
|
return a2 ? e.sessionStore[a2] : e.sessionStore;
|
19423
19466
|
};
|
19424
19467
|
}
|
19425
|
-
var
|
19426
|
-
var
|
19427
|
-
var
|
19428
|
-
var
|
19429
|
-
var
|
19430
|
-
var
|
19431
|
-
var
|
19432
|
-
var
|
19433
|
-
let t =
|
19468
|
+
var km = R(createSelector($, (a2) => a2 == null ? void 0 : a2.name));
|
19469
|
+
var Am = R(createSelector($, (a2) => a2 == null ? void 0 : a2.type));
|
19470
|
+
var ci = R(Dr);
|
19471
|
+
var ra = R(Ro);
|
19472
|
+
var Im = R(bo);
|
19473
|
+
var Rm = R(Ho);
|
19474
|
+
var bm = R(Co);
|
19475
|
+
var Do = R((a2, e) => {
|
19476
|
+
let t = $(a2, e);
|
19434
19477
|
if (t && t.videoTrack && t.videoTrack !== "")
|
19435
19478
|
return a2.tracks[t.videoTrack];
|
19436
19479
|
});
|
19437
|
-
var
|
19438
|
-
let t =
|
19480
|
+
var wo = R((a2, e) => {
|
19481
|
+
let t = $(a2, e);
|
19439
19482
|
if (t && t.audioTrack && t.audioTrack !== "")
|
19440
19483
|
return a2.tracks[t.audioTrack];
|
19441
19484
|
});
|
19442
|
-
var
|
19443
|
-
let t =
|
19485
|
+
var Cm = R((a2, e) => {
|
19486
|
+
let t = $(a2, e);
|
19444
19487
|
return (t == null ? void 0 : t.auxiliaryTracks.map((i) => a2.tracks[i])) || [];
|
19445
19488
|
});
|
19446
|
-
var
|
19447
|
-
var
|
19448
|
-
var
|
19449
|
-
let t =
|
19450
|
-
return
|
19451
|
-
};
|
19452
|
-
var
|
19453
|
-
var
|
19489
|
+
var sa = (a2, e) => e ? a2.speakers[e] : null;
|
19490
|
+
var Lm = R(createSelector(sa, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
|
19491
|
+
var _o = (a2, e) => {
|
19492
|
+
let t = wo(e)(a2);
|
19493
|
+
return sa(a2, t == null ? void 0 : t.id);
|
19494
|
+
};
|
19495
|
+
var Dm = R(createSelector(_o, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
|
19496
|
+
var wm = R((a2, e) => {
|
19454
19497
|
if (e)
|
19455
19498
|
return a2.connectionQualities[e];
|
19456
19499
|
});
|
19457
|
-
var
|
19458
|
-
let t =
|
19500
|
+
var _m = R((a2, e) => {
|
19501
|
+
let t = $(a2, e);
|
19459
19502
|
if (t) {
|
19460
|
-
let i = t == null ? void 0 : t.auxiliaryTracks.find((r) =>
|
19503
|
+
let i = t == null ? void 0 : t.auxiliaryTracks.find((r) => it(a2.tracks[r]));
|
19461
19504
|
return i ? a2.tracks[i] : void 0;
|
19462
19505
|
}
|
19463
19506
|
});
|
19464
|
-
var
|
19507
|
+
var Nm = R(createSelector(_, $, (a2, e) => {
|
19465
19508
|
let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
|
19466
19509
|
let r = a2[i];
|
19467
|
-
return
|
19510
|
+
return st(r) && rt(r);
|
19468
19511
|
});
|
19469
19512
|
return t ? a2[t] : void 0;
|
19470
19513
|
}));
|
19471
|
-
var
|
19514
|
+
var Om = R(createSelector(_, $, (a2, e) => {
|
19472
19515
|
let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
|
19473
19516
|
let r = a2[i];
|
19474
|
-
return
|
19517
|
+
return st(r) && it(r);
|
19475
19518
|
});
|
19476
19519
|
return t ? a2[t] : void 0;
|
19477
19520
|
}));
|
19478
|
-
var
|
19521
|
+
var xm = R(createSelector(_, $, (a2, e) => {
|
19479
19522
|
let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
|
19480
19523
|
let r = a2[i];
|
19481
|
-
return
|
19524
|
+
return qt(r) && it(r);
|
19482
19525
|
});
|
19483
19526
|
return t ? a2[t] : void 0;
|
19484
19527
|
}));
|
19485
|
-
var
|
19486
|
-
var
|
19487
|
-
var
|
19488
|
-
let t =
|
19528
|
+
var aa = R(createSelector(_, $, (a2, e) => Ce(a2, e)));
|
19529
|
+
var oa = (a2) => createSelector(aa(a2), (e) => e.audio);
|
19530
|
+
var Bm = R((a2, e) => {
|
19531
|
+
let t = $(a2, e);
|
19489
19532
|
return Ue(a2, t == null ? void 0 : t.audioTrack);
|
19490
19533
|
});
|
19491
|
-
var
|
19492
|
-
let t =
|
19534
|
+
var Vm = R((a2, e) => {
|
19535
|
+
let t = $(a2, e);
|
19493
19536
|
return Ue(a2, t == null ? void 0 : t.videoTrack);
|
19494
19537
|
});
|
19495
|
-
var
|
19538
|
+
var na = R((a2, e) => {
|
19496
19539
|
if (e && a2.tracks[e])
|
19497
19540
|
return a2.tracks[e].volume === 0;
|
19498
19541
|
});
|
19499
|
-
var
|
19500
|
-
let t =
|
19501
|
-
return
|
19542
|
+
var Fm = R((a2, e) => {
|
19543
|
+
let t = $(a2, e);
|
19544
|
+
return na(t == null ? void 0 : t.audioTrack)(a2);
|
19502
19545
|
});
|
19503
|
-
var
|
19504
|
-
let t =
|
19505
|
-
return
|
19546
|
+
var Gm = R((a2, e) => {
|
19547
|
+
let t = oa(e)(a2);
|
19548
|
+
return na(t == null ? void 0 : t.id)(a2);
|
19506
19549
|
});
|
19507
|
-
var
|
19508
|
-
let t =
|
19550
|
+
var ca = R((a2, e) => {
|
19551
|
+
let t = Dr(a2, e);
|
19509
19552
|
if (t) {
|
19510
19553
|
if (t.type !== "audio") {
|
19511
|
-
|
19554
|
+
E.w("Please pass audio track here");
|
19512
19555
|
return;
|
19513
19556
|
}
|
19514
19557
|
return t.volume;
|
19515
19558
|
}
|
19516
19559
|
});
|
19517
|
-
var
|
19518
|
-
let t =
|
19519
|
-
return
|
19560
|
+
var Wm = R((a2, e) => {
|
19561
|
+
let t = $(a2, e);
|
19562
|
+
return ca(t == null ? void 0 : t.audioTrack)(a2);
|
19520
19563
|
});
|
19521
|
-
var
|
19522
|
-
let t =
|
19523
|
-
return
|
19564
|
+
var $m = R((a2, e) => {
|
19565
|
+
let t = oa(e)(a2);
|
19566
|
+
return ca(t == null ? void 0 : t.id)(a2);
|
19524
19567
|
});
|
19525
|
-
var
|
19526
|
-
let t =
|
19568
|
+
var Km = R((a2, e) => {
|
19569
|
+
let t = Dr(a2, e);
|
19527
19570
|
if (t) {
|
19528
19571
|
if (t.type !== "video") {
|
19529
|
-
|
19572
|
+
E.w("Please pass video track here");
|
19530
19573
|
return;
|
19531
19574
|
}
|
19532
19575
|
return t.layer;
|
19533
19576
|
}
|
19534
19577
|
});
|
19535
|
-
var
|
19578
|
+
var da = createSelector([gt, fe, Lr], (a2, e, t) => {
|
19536
19579
|
if (t)
|
19537
19580
|
return a2.filter((i) => {
|
19538
19581
|
var r;
|
19539
19582
|
return !i.recipientPeer && !((r = i.recipientRoles) != null && r.length) || i.sender && ![e, t].includes(i.sender) ? false : [e, t].includes(i.recipientPeer);
|
19540
19583
|
});
|
19541
19584
|
});
|
19542
|
-
var
|
19585
|
+
var la = createSelector([gt, ia], (a2, e) => {
|
19543
19586
|
if (e)
|
19544
19587
|
return a2.filter((t) => {
|
19545
19588
|
var i, r;
|
19546
19589
|
return (i = t.recipientRoles) != null && i.length ? (r = t.recipientRoles) == null ? void 0 : r.includes(e) : false;
|
19547
19590
|
});
|
19548
19591
|
});
|
19549
|
-
var
|
19592
|
+
var No = createSelector(gt, (a2) => a2.filter((e) => {
|
19550
19593
|
var t;
|
19551
19594
|
return !e.recipientPeer && !((t = e.recipientRoles) != null && t.length);
|
19552
19595
|
}));
|
19553
|
-
var
|
19554
|
-
var
|
19555
|
-
var
|
19556
|
-
var
|
19557
|
-
var
|
19558
|
-
var
|
19559
|
-
var
|
19560
|
-
var
|
19561
|
-
var
|
19596
|
+
var Oo = createSelector([la, ia], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
|
19597
|
+
var xo = createSelector([da, Lr], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
|
19598
|
+
var qm = createSelector(No, (a2) => a2.filter((e) => !e.read).length);
|
19599
|
+
var jm = R(da);
|
19600
|
+
var Jm = R(la);
|
19601
|
+
var Qm = R(Oo);
|
19602
|
+
var zm = R(xo);
|
19603
|
+
var ua = R(Lo);
|
19604
|
+
var cS = createSelector([W, _], (a2, e) => Object.values(a2).map((i) => {
|
19562
19605
|
var r;
|
19563
19606
|
return { peer: i, isAudioEnabled: i.audioTrack ? (r = e[i.audioTrack]) == null ? void 0 : r.enabled : false };
|
19564
19607
|
}));
|
19565
|
-
var
|
19566
|
-
var
|
19567
|
-
var
|
19568
|
-
var
|
19569
|
-
var
|
19608
|
+
var Uo = (a2) => a2.roleChangeRequests[0] || null;
|
19609
|
+
var dS = createSelector([Uo, W, pe], (a2, e, t) => a2 ? { requestedBy: a2.requestedBy ? e[a2.requestedBy] : void 0, role: t[a2.roleName], token: a2.token } : null);
|
19610
|
+
var lS = createSelector([Ye], (a2) => at(a2));
|
19611
|
+
var uS = createSelector([Ws], (a2) => at(a2));
|
19612
|
+
var Vo = createSelector([J, _], (a2, e) => {
|
19570
19613
|
let t = null;
|
19571
19614
|
return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
|
19572
19615
|
});
|
19573
|
-
var
|
19616
|
+
var Fo = createSelector([ie, _], (a2, e) => {
|
19574
19617
|
let t = null;
|
19575
19618
|
return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
|
19576
19619
|
});
|
19577
|
-
var
|
19620
|
+
var xr = class {
|
19578
19621
|
constructor() {
|
19579
19622
|
this.TAG = "[HTTPAnalyticsTransport]";
|
19580
19623
|
this.failedEvents = new ne("client-events");
|
@@ -19593,7 +19636,7 @@ var Or = class {
|
|
19593
19636
|
this.addEventToStorage(e);
|
19594
19637
|
return;
|
19595
19638
|
}
|
19596
|
-
let t = { event: e.name, payload: e.properties, event_id: String(e.timestamp), peer: e.metadata.peer, timestamp: e.timestamp, device_id: e.device_id, cluster: { websocket_url: this.websocketURL } }, i = this.env === "prod" ?
|
19639
|
+
let t = { event: e.name, payload: e.properties, event_id: String(e.timestamp), peer: e.metadata.peer, timestamp: e.timestamp, device_id: e.device_id, cluster: { websocket_url: this.websocketURL } }, i = this.env === "prod" ? bs : Hs;
|
19597
19640
|
fetch(i, { method: "POST", headers: { "Content-Type": "application/json", Authorization: `Bearer ${e.metadata.token}`, user_agent_v2: e.metadata.userAgent }, body: JSON.stringify(t) }).then((r) => {
|
19598
19641
|
if (r.status === 401) {
|
19599
19642
|
this.removeFromStorage(e);
|
@@ -19619,66 +19662,66 @@ var Or = class {
|
|
19619
19662
|
i > -1 && (t.splice(i, 1), this.failedEvents.set(t));
|
19620
19663
|
}
|
19621
19664
|
};
|
19622
|
-
var Me = new
|
19623
|
-
var
|
19624
|
-
var
|
19625
|
-
var
|
19626
|
-
var
|
19627
|
-
var
|
19628
|
-
var
|
19629
|
-
var
|
19630
|
-
var
|
19631
|
-
var
|
19632
|
-
var
|
19633
|
-
var
|
19634
|
-
var
|
19635
|
-
var
|
19665
|
+
var Me = new xr();
|
19666
|
+
var K = ((s) => (s[s.ConnectFailed = 0] = "ConnectFailed", s[s.SignalDisconnect = 1] = "SignalDisconnect", s[s.JoinWSMessageFailed = 2] = "JoinWSMessageFailed", s[s.PublishIceConnectionFailed = 3] = "PublishIceConnectionFailed", s[s.SubscribeIceConnectionFailed = 4] = "SubscribeIceConnectionFailed", s))(K || {});
|
19667
|
+
var Fi = ((n) => (n.Disconnected = "Disconnected", n.Connecting = "Connecting", n.Joined = "Joined", n.Preview = "Preview", n.Failed = "Failed", n.Reconnecting = "Reconnecting", n.Leaving = "Leaving", n))(Fi || {});
|
19668
|
+
var zi = ((t) => (t[t.Publish = 0] = "Publish", t[t.Subscribe = 1] = "Subscribe", t))(zi || {});
|
19669
|
+
var cn = (a2) => a2.localPeer.id;
|
19670
|
+
var dn = (a2) => a2.localPeer.audioTrack;
|
19671
|
+
var ln = (a2) => a2.localPeer.videoTrack;
|
19672
|
+
var un = (a2, e) => e;
|
19673
|
+
var Ca = (a2, e) => e;
|
19674
|
+
var pn = (a2) => a2.remoteTrackStats;
|
19675
|
+
var La = (a2) => a2.peerStats;
|
19676
|
+
var Gr = (a2) => a2.localTrackStats;
|
19677
|
+
var Pe = createSelector([La, cn], (a2, e) => a2[e]);
|
19678
|
+
var hn = createSelector(Pe, (a2) => {
|
19636
19679
|
var e;
|
19637
19680
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.packetsLost;
|
19638
19681
|
});
|
19639
|
-
var
|
19682
|
+
var mn = createSelector(Pe, (a2) => {
|
19640
19683
|
var e;
|
19641
19684
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.jitter;
|
19642
19685
|
});
|
19643
|
-
var
|
19686
|
+
var Sn = createSelector(Pe, (a2) => {
|
19644
19687
|
var e;
|
19645
19688
|
return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bitrate;
|
19646
19689
|
});
|
19647
|
-
var
|
19690
|
+
var gn = createSelector(Pe, (a2) => {
|
19648
19691
|
var e;
|
19649
19692
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bitrate;
|
19650
19693
|
});
|
19651
|
-
var
|
19694
|
+
var Tn = createSelector(Pe, (a2) => {
|
19652
19695
|
var e;
|
19653
19696
|
return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.availableOutgoingBitrate;
|
19654
19697
|
});
|
19655
|
-
var
|
19698
|
+
var fn = createSelector(Pe, (a2) => {
|
19656
19699
|
var e;
|
19657
19700
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.availableIncomingBitrate;
|
19658
19701
|
});
|
19659
|
-
var
|
19702
|
+
var vn = createSelector(Pe, (a2) => {
|
19660
19703
|
var e;
|
19661
19704
|
return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bytesSent;
|
19662
19705
|
});
|
19663
|
-
var
|
19706
|
+
var Mn = createSelector(Pe, (a2) => {
|
19664
19707
|
var e;
|
19665
19708
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bytesReceived;
|
19666
19709
|
});
|
19667
|
-
var
|
19668
|
-
var
|
19669
|
-
var
|
19670
|
-
var
|
19671
|
-
var
|
19672
|
-
var
|
19710
|
+
var yn = createSelector([La, un], (a2, e) => e ? a2[e] : void 0);
|
19711
|
+
var Pn = createSelector([pn, Ca], (a2, e) => e ? a2[e] : void 0);
|
19712
|
+
var Wr = createSelector([Gr, Ca], (a2, e) => e ? a2[e] : void 0);
|
19713
|
+
var En = R(yn);
|
19714
|
+
var kn = R(Pn);
|
19715
|
+
var An = createSelector([Gr, dn], (a2, e) => {
|
19673
19716
|
var t;
|
19674
19717
|
return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
|
19675
19718
|
});
|
19676
|
-
var
|
19677
|
-
var
|
19719
|
+
var In = R(createSelector(Wr, (a2) => a2 == null ? void 0 : a2[0]));
|
19720
|
+
var Rn = createSelector([Gr, ln], (a2, e) => {
|
19678
19721
|
var t;
|
19679
19722
|
return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
|
19680
19723
|
});
|
19681
|
-
var
|
19724
|
+
var bn = R(createSelector(Wr, (a2) => a2));
|
19682
19725
|
|
19683
19726
|
// src/Prebuilt/components/Header/StreamActions.tsx
|
19684
19727
|
import {
|
@@ -19945,7 +19988,7 @@ var RecordingStatus = () => {
|
|
19945
19988
|
};
|
19946
19989
|
var RecordingPauseStatus = () => {
|
19947
19990
|
const recording = useHMSStore26(selectRecordingState2);
|
19948
|
-
if (recording.hls && recording.hls.state ===
|
19991
|
+
if (recording.hls && recording.hls.state === Ss.PAUSED) {
|
19949
19992
|
return /* @__PURE__ */ React57.createElement(
|
19950
19993
|
Tooltip,
|
19951
19994
|
{
|
@@ -20333,6 +20376,9 @@ var MwebOptions = ({
|
|
20333
20376
|
const toggleVB = useSidepaneToggle(SIDE_PANE_OPTIONS.VB);
|
20334
20377
|
const isLocalVideoEnabled = useHMSStore30(selectIsLocalVideoEnabled4);
|
20335
20378
|
const { startRecording, isRecordingLoading } = useRecordingHandler();
|
20379
|
+
const isTranscriptionAllowed = useHMSStore30(selectIsTranscriptionAllowedByMode2(HMSTranscriptionMode3.CAPTION));
|
20380
|
+
const isTranscriptionEnabled = useHMSStore30(selectIsTranscriptionEnabled4);
|
20381
|
+
const [isCaptionEnabled] = useSetIsCaptionEnabled();
|
20336
20382
|
useDropdownList({ open: openModals.size > 0 || openOptionsSheet || openSettingsSheet, name: "MoreSettings" });
|
20337
20383
|
const updateState = (modalName, value) => {
|
20338
20384
|
setOpenModals((modals) => {
|
@@ -20401,6 +20447,17 @@ var MwebOptions = ({
|
|
20401
20447
|
isHandRaised ? /* @__PURE__ */ React61.createElement(HandRaiseSlashedIcon, null) : /* @__PURE__ */ React61.createElement(HandIcon2, null),
|
20402
20448
|
/* @__PURE__ */ React61.createElement(ActionTile.Title, null, isHandRaised ? "Lower" : "Raise", " Hand")
|
20403
20449
|
) : null,
|
20450
|
+
isTranscriptionAllowed ? /* @__PURE__ */ React61.createElement(
|
20451
|
+
ActionTile.Root,
|
20452
|
+
{
|
20453
|
+
onClick: () => {
|
20454
|
+
setOpenOptionsSheet(false);
|
20455
|
+
updateState(MODALS2.CAPTION, true);
|
20456
|
+
}
|
20457
|
+
},
|
20458
|
+
isTranscriptionEnabled && isCaptionEnabled ? /* @__PURE__ */ React61.createElement(ClosedCaptionIcon2, null) : /* @__PURE__ */ React61.createElement(OpenCaptionIcon3, null),
|
20459
|
+
/* @__PURE__ */ React61.createElement(ActionTile.Title, null, "Closed Caption")
|
20460
|
+
) : null,
|
20404
20461
|
isLocalVideoEnabled && !!elements?.virtual_background ? /* @__PURE__ */ React61.createElement(
|
20405
20462
|
ActionTile.Root,
|
20406
20463
|
{
|
@@ -22472,7 +22529,7 @@ var PrevMenu = () => {
|
|
22472
22529
|
const hmsActions = useHMSActions29();
|
22473
22530
|
const polls = useHMSStore45(selectPolls2);
|
22474
22531
|
const sortedPolls = useMemo7(
|
22475
|
-
() => polls?.sort((a2,
|
22532
|
+
() => polls?.sort((a2, b) => (b?.createdAt?.getTime?.() || 0) - (a2?.createdAt?.getTime?.() || 0))?.sort((a2, b) => (b?.state === "started" ? 1 : 0) - (a2?.state === "started" ? 1 : 0)),
|
22476
22533
|
[polls]
|
22477
22534
|
);
|
22478
22535
|
const permissions = useHMSStore45(selectPermissions15);
|
@@ -23980,7 +24037,7 @@ var usePinnedMessages = () => {
|
|
23980
24037
|
if (pinnedMessages[indexToRemove]) {
|
23981
24038
|
await hmsActions.sessionStore.set(
|
23982
24039
|
"pinnedMessages" /* PINNED_MESSAGES */,
|
23983
|
-
pinnedMessages.filter((
|
24040
|
+
pinnedMessages.filter((_2, index) => index !== indexToRemove)
|
23984
24041
|
).catch((err) => ToastManager.addToast({ title: err.description }));
|
23985
24042
|
}
|
23986
24043
|
},
|
@@ -24253,13 +24310,13 @@ var usePinnedBy = (messageId) => {
|
|
24253
24310
|
const pinnedMessages = useHMSStore55(selectSessionStore4("pinnedMessages" /* PINNED_MESSAGES */));
|
24254
24311
|
const [pinnedBy, setPinnedBy] = useState46("");
|
24255
24312
|
useEffect29(() => {
|
24256
|
-
let
|
24313
|
+
let match17 = "";
|
24257
24314
|
pinnedMessages?.forEach((pinnedMessage) => {
|
24258
24315
|
if (pinnedMessage.id === messageId) {
|
24259
|
-
|
24316
|
+
match17 = pinnedMessage.pinnedBy;
|
24260
24317
|
}
|
24261
24318
|
});
|
24262
|
-
setPinnedBy(
|
24319
|
+
setPinnedBy(match17);
|
24263
24320
|
}, [messageId, pinnedMessages]);
|
24264
24321
|
return pinnedBy;
|
24265
24322
|
};
|
@@ -25340,7 +25397,7 @@ var StickIndicator = ({ total, index }) => {
|
|
25340
25397
|
if (total < 2) {
|
25341
25398
|
return null;
|
25342
25399
|
}
|
25343
|
-
return /* @__PURE__ */ React117.createElement(Flex, { direction: "column", css: { gap: "$1" } }, [...Array(sticksCount)].map((
|
25400
|
+
return /* @__PURE__ */ React117.createElement(Flex, { direction: "column", css: { gap: "$1" } }, [...Array(sticksCount)].map((_2, i) => /* @__PURE__ */ React117.createElement(
|
25344
25401
|
Box,
|
25345
25402
|
{
|
25346
25403
|
css: {
|
@@ -25473,7 +25530,7 @@ var Chat = () => {
|
|
25473
25530
|
const listRef = useRef24(null);
|
25474
25531
|
const hmsActions = useHMSActions41();
|
25475
25532
|
const vanillaStore = useHMSVanillaStore10();
|
25476
|
-
const { enabled: isChatEnabled = true } = useHMSStore62(
|
25533
|
+
const { enabled: isChatEnabled = true } = useHMSStore62(Pm("chatState" /* CHAT_STATE */)) || {};
|
25477
25534
|
const isMobile = useMedia19(config.media.md);
|
25478
25535
|
const isMobileHLSStream = useMobileHLSStream();
|
25479
25536
|
const isLandscapeStream = useLandscapeHLSStream();
|
@@ -25562,7 +25619,7 @@ var NewMessageIndicator = ({
|
|
25562
25619
|
scrollToBottom,
|
25563
25620
|
listRef
|
25564
25621
|
}) => {
|
25565
|
-
const unreadCount = useHMSStore62(
|
25622
|
+
const unreadCount = useHMSStore62(Kh);
|
25566
25623
|
if (!unreadCount || !listRef.current) {
|
25567
25624
|
return null;
|
25568
25625
|
}
|
@@ -26661,7 +26718,7 @@ var VBPicker = ({ backgroundMedia = [] }) => {
|
|
26661
26718
|
const toggleVB = useSidepaneToggle(SIDE_PANE_OPTIONS.VB);
|
26662
26719
|
const hmsActions = useHMSActions44();
|
26663
26720
|
const localPeer = useHMSStore70(selectLocalPeer6);
|
26664
|
-
const role = useHMSStore70(
|
26721
|
+
const role = useHMSStore70(Ye);
|
26665
26722
|
const isVideoOn = useHMSStore70(selectIsLocalVideoEnabled6);
|
26666
26723
|
const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
|
26667
26724
|
const trackSelector = selectVideoTrackByID4(localPeer?.videoTrack);
|
@@ -26669,12 +26726,12 @@ var VBPicker = ({ backgroundMedia = [] }) => {
|
|
26669
26726
|
const [blurAmount, setBlurAmount] = useState56(VBHandler.getBlurAmount() || 0.5);
|
26670
26727
|
const roomState = useHMSStore70(selectRoomState4);
|
26671
26728
|
const isLargeRoom = useHMSStore70(selectIsLargeRoom3);
|
26672
|
-
const isEffectsEnabled = useHMSStore70(
|
26673
|
-
const effectsKey = useHMSStore70(
|
26729
|
+
const isEffectsEnabled = useHMSStore70(sm);
|
26730
|
+
const effectsKey = useHMSStore70(am);
|
26674
26731
|
const isMobile = useMedia23(config.media.md);
|
26675
26732
|
const [loadingEffects, setLoadingEffects] = useSetAppDataByKey(APP_DATA.loadingEffects);
|
26676
26733
|
const isPluginAdded = useHMSStore70(selectIsLocalVideoPluginPresent(VBHandler?.getName() || ""));
|
26677
|
-
const background = useHMSStore70(
|
26734
|
+
const background = useHMSStore70(ym(APP_DATA.background));
|
26678
26735
|
const mediaList = backgroundMedia.length ? backgroundMedia.map((media) => media.url || "") : defaultMedia2;
|
26679
26736
|
const inPreview = roomState === HMSRoomState4.Preview;
|
26680
26737
|
const showVideoTile = isVideoOn && isLargeRoom && !inPreview;
|
@@ -27154,7 +27211,7 @@ var PreviewJoin = ({
|
|
27154
27211
|
speakerAutoSelectionBlacklist: ["Yeti Stereo Microphone"]
|
27155
27212
|
},
|
27156
27213
|
captureNetworkQualityInPreview: true,
|
27157
|
-
handleError: (
|
27214
|
+
handleError: (_2, method) => {
|
27158
27215
|
if (method === "preview") {
|
27159
27216
|
setPreviewError(true);
|
27160
27217
|
}
|
@@ -27411,12 +27468,10 @@ import {
|
|
27411
27468
|
selectLocalPeerRoleName as selectLocalPeerRoleName5,
|
27412
27469
|
selectPeers as selectPeers3,
|
27413
27470
|
selectPeerScreenSharing as selectPeerScreenSharing2,
|
27414
|
-
selectTranscriptionsState,
|
27415
27471
|
selectWhiteboard as selectWhiteboard2,
|
27416
27472
|
useHMSStore as useHMSStore80,
|
27417
27473
|
useHMSVanillaStore as useHMSVanillaStore12
|
27418
27474
|
} from "@100mslive/react-sdk";
|
27419
|
-
import { AlertTriangleIcon as AlertTriangleIcon8 } from "@100mslive/react-icons";
|
27420
27475
|
|
27421
27476
|
// src/Prebuilt/components/VideoLayouts/EqualProminence.tsx
|
27422
27477
|
init_define_process_env();
|
@@ -27633,7 +27688,7 @@ var Pagination = ({
|
|
27633
27688
|
if (numPages <= 1) {
|
27634
27689
|
return null;
|
27635
27690
|
}
|
27636
|
-
return /* @__PURE__ */ React140.createElement(StyledPagination.Root, { css: { flexShrink: 0 } }, /* @__PURE__ */ React140.createElement(StyledPagination.Chevron, { disabled: disableLeft, onClick: prevPage }, /* @__PURE__ */ React140.createElement(ChevronLeftIcon7, { width: 16, height: 16, style: { cursor: disableLeft ? "not-allowed" : "pointer" } })), numPages <= 5 ? /* @__PURE__ */ React140.createElement(StyledPagination.Dots, null, [...Array(numPages)].map((
|
27691
|
+
return /* @__PURE__ */ React140.createElement(StyledPagination.Root, { css: { flexShrink: 0 } }, /* @__PURE__ */ React140.createElement(StyledPagination.Chevron, { disabled: disableLeft, onClick: prevPage }, /* @__PURE__ */ React140.createElement(ChevronLeftIcon7, { width: 16, height: 16, style: { cursor: disableLeft ? "not-allowed" : "pointer" } })), numPages <= 5 ? /* @__PURE__ */ React140.createElement(StyledPagination.Dots, null, [...Array(numPages)].map((_2, i) => /* @__PURE__ */ React140.createElement(
|
27637
27692
|
StyledPagination.Dot,
|
27638
27693
|
{
|
27639
27694
|
key: i,
|
@@ -27740,7 +27795,7 @@ var useTileLayout = ({
|
|
27740
27795
|
}
|
27741
27796
|
const maxRows = Math.ceil(noOfTilesInPage / maxCols);
|
27742
27797
|
let index = 0;
|
27743
|
-
const matrix = new Array(maxRows).fill(null).map((
|
27798
|
+
const matrix = new Array(maxRows).fill(null).map((_2, i) => {
|
27744
27799
|
const numCols = Math.min(maxCols, noOfTilesInPage - i * maxCols);
|
27745
27800
|
const rowElements = [];
|
27746
27801
|
for (let j2 = 0; j2 < numCols; j2++) {
|
@@ -27772,10 +27827,10 @@ var useTileLayout = ({
|
|
27772
27827
|
tileHeight = maxRowHeight;
|
27773
27828
|
const calcWidths = aspectRatios.map((aR) => tileHeight * aR);
|
27774
27829
|
tileWidth = 0;
|
27775
|
-
for (const
|
27776
|
-
if (
|
27777
|
-
if (tileWidth <
|
27778
|
-
tileWidth =
|
27830
|
+
for (const w of calcWidths) {
|
27831
|
+
if (w < width) {
|
27832
|
+
if (tileWidth < w) {
|
27833
|
+
tileWidth = w;
|
27779
27834
|
}
|
27780
27835
|
}
|
27781
27836
|
}
|
@@ -28457,7 +28512,7 @@ var PeersSorter = class {
|
|
28457
28512
|
this.speaker = void 0;
|
28458
28513
|
this.tilesPerPage = tilesPerPage;
|
28459
28514
|
const peerIds = new Set(peers.map((peer) => peer.id));
|
28460
|
-
this.peers.forEach((
|
28515
|
+
this.peers.forEach((_2, key) => {
|
28461
28516
|
if (!peerIds.has(key)) {
|
28462
28517
|
this.peers.delete(key);
|
28463
28518
|
}
|
@@ -28597,16 +28652,6 @@ var GridLayout = ({
|
|
28597
28652
|
hideMetadataOnTile: hide_metadata_on_tile,
|
28598
28653
|
objectFit: video_object_fit
|
28599
28654
|
};
|
28600
|
-
const transcriptionStates = useHMSStore80(selectTranscriptionsState);
|
28601
|
-
useEffect48(() => {
|
28602
|
-
if (transcriptionStates && transcriptionStates.length > 0 && transcriptionStates[0].error) {
|
28603
|
-
ToastManager.addToast({
|
28604
|
-
title: `Failed to enable Closed Caption`,
|
28605
|
-
variant: "error",
|
28606
|
-
icon: /* @__PURE__ */ React151.createElement(AlertTriangleIcon8, { style: { marginRight: "0.5rem" } })
|
28607
|
-
});
|
28608
|
-
}
|
28609
|
-
}, [transcriptionStates]);
|
28610
28655
|
useEffect48(() => {
|
28611
28656
|
if (mainPage !== 0) {
|
28612
28657
|
return;
|
@@ -28798,7 +28843,12 @@ var PDFView = () => {
|
|
28798
28843
|
init_define_process_env();
|
28799
28844
|
import React154, { useEffect as useEffect51, useState as useState66 } from "react";
|
28800
28845
|
import { useMedia as useMedia36 } from "react-use";
|
28801
|
-
import {
|
28846
|
+
import {
|
28847
|
+
selectIsTranscriptionEnabled as selectIsTranscriptionEnabled5,
|
28848
|
+
selectPeerNameByID as selectPeerNameByID5,
|
28849
|
+
useHMSStore as useHMSStore82,
|
28850
|
+
useTranscript
|
28851
|
+
} from "@100mslive/react-sdk";
|
28802
28852
|
var SimpleQueue = class {
|
28803
28853
|
constructor(capacity = 3, MAX_STORAGE_TIME = 5e3) {
|
28804
28854
|
this.capacity = capacity;
|
@@ -28952,6 +29002,7 @@ var CaptionsViewer = () => {
|
|
28952
29002
|
const [captionQueue] = useState66(new CaptionMaintainerQueue());
|
28953
29003
|
const [currentData, setCurrentData] = useState66([]);
|
28954
29004
|
const isCaptionEnabled = useIsCaptionEnabled();
|
29005
|
+
const isTranscriptionEnabled = useHMSStore82(selectIsTranscriptionEnabled5);
|
28955
29006
|
useEffect51(() => {
|
28956
29007
|
const timeInterval = setInterval(() => {
|
28957
29008
|
if (!captionQueue) {
|
@@ -28974,7 +29025,7 @@ var CaptionsViewer = () => {
|
|
28974
29025
|
}
|
28975
29026
|
return false;
|
28976
29027
|
});
|
28977
|
-
if (dataToShow.length <= 0 || screenType === "hls_live_streaming" || !isCaptionEnabled) {
|
29028
|
+
if (dataToShow.length <= 0 || screenType === "hls_live_streaming" || !isCaptionEnabled || !isTranscriptionEnabled) {
|
28978
29029
|
return null;
|
28979
29030
|
}
|
28980
29031
|
return /* @__PURE__ */ React154.createElement(
|
@@ -29019,7 +29070,7 @@ var useCloseScreenshareWhiteboard = () => {
|
|
29019
29070
|
};
|
29020
29071
|
|
29021
29072
|
// src/Prebuilt/layouts/VideoStreamingSection.tsx
|
29022
|
-
var HLSView = React155.lazy(() => import("./HLSView-
|
29073
|
+
var HLSView = React155.lazy(() => import("./HLSView-2BPYWKSN.js"));
|
29023
29074
|
var VideoStreamingSection = ({
|
29024
29075
|
screenType,
|
29025
29076
|
elements,
|
@@ -29932,9 +29983,11 @@ init_define_process_env();
|
|
29932
29983
|
// src/Prebuilt/components/Notifications/Notifications.tsx
|
29933
29984
|
init_define_process_env();
|
29934
29985
|
import React173, { useCallback as useCallback36, useEffect as useEffect70 } from "react";
|
29986
|
+
import { match as match15 } from "ts-pattern";
|
29935
29987
|
import {
|
29936
29988
|
HMSNotificationTypes as HMSNotificationTypes10,
|
29937
29989
|
HMSRoomState as HMSRoomState10,
|
29990
|
+
HMSTranscriptionState,
|
29938
29991
|
selectIsLocalScreenShared as selectIsLocalScreenShared3,
|
29939
29992
|
selectLocalPeerID as selectLocalPeerID16,
|
29940
29993
|
selectPeerNameByID as selectPeerNameByID6,
|
@@ -29945,7 +29998,7 @@ import {
|
|
29945
29998
|
useHMSStore as useHMSStore93,
|
29946
29999
|
useHMSVanillaStore as useHMSVanillaStore16
|
29947
30000
|
} from "@100mslive/react-sdk";
|
29948
|
-
import { GroupIcon as GroupIcon2 } from "@100mslive/react-icons";
|
30001
|
+
import { AlertTriangleIcon as AlertTriangleIcon8, ClosedCaptionIcon as ClosedCaptionIcon3, GroupIcon as GroupIcon2, OpenCaptionIcon as OpenCaptionIcon4 } from "@100mslive/react-icons";
|
29949
30002
|
|
29950
30003
|
// src/Prebuilt/components/Notifications/AutoplayBlockedModal.tsx
|
29951
30004
|
init_define_process_env();
|
@@ -30035,7 +30088,7 @@ import {
|
|
30035
30088
|
PeopleRemoveIcon as PeopleRemoveIcon4,
|
30036
30089
|
PoorConnectivityIcon as PoorConnectivityIcon2
|
30037
30090
|
} from "@100mslive/react-icons";
|
30038
|
-
var ChatAction = React167.forwardRef((
|
30091
|
+
var ChatAction = React167.forwardRef((_2, ref) => {
|
30039
30092
|
const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
|
30040
30093
|
const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
|
30041
30094
|
if (isChatOpen) {
|
@@ -30596,6 +30649,7 @@ function Notifications() {
|
|
30596
30649
|
const { showNotification } = useAwayNotifications2();
|
30597
30650
|
const amIScreenSharing = useHMSStore93(selectIsLocalScreenShared3);
|
30598
30651
|
const logoURL = useRoomLayout()?.logo?.url;
|
30652
|
+
const [toastId, setToastId] = useSetAppDataByKey(CAPTION_TOAST.captionToast);
|
30599
30653
|
const handleRoleChangeDenied = useCallback36((request) => {
|
30600
30654
|
ToastManager.addToast({
|
30601
30655
|
title: `${request.peerName} denied your request to join the ${request.role.name} role`,
|
@@ -30712,6 +30766,40 @@ function Notifications() {
|
|
30712
30766
|
});
|
30713
30767
|
}
|
30714
30768
|
break;
|
30769
|
+
case HMSNotificationTypes10.TRANSCRIPTION_STATE_UPDATED:
|
30770
|
+
const transcriptionStates = notification.data;
|
30771
|
+
if (transcriptionStates && transcriptionStates.length > 0) {
|
30772
|
+
let id = "";
|
30773
|
+
match15({ state: transcriptionStates[0].state, error: transcriptionStates[0].error }).when(
|
30774
|
+
({ error }) => !!error,
|
30775
|
+
() => {
|
30776
|
+
ToastManager.removeToast(toastId);
|
30777
|
+
id = ToastManager.addToast({
|
30778
|
+
title: `Failed to enable Closed Caption`,
|
30779
|
+
variant: "error",
|
30780
|
+
icon: /* @__PURE__ */ React173.createElement(AlertTriangleIcon8, { style: { marginRight: "0.5rem" } })
|
30781
|
+
});
|
30782
|
+
}
|
30783
|
+
).with({ state: HMSTranscriptionState.STARTED }, () => {
|
30784
|
+
ToastManager.removeToast(toastId);
|
30785
|
+
id = ToastManager.addToast({
|
30786
|
+
title: `Closed Captioning enabled for everyone`,
|
30787
|
+
variant: "standard",
|
30788
|
+
duration: 2e3,
|
30789
|
+
icon: /* @__PURE__ */ React173.createElement(OpenCaptionIcon4, { style: { marginRight: "0.5rem" } })
|
30790
|
+
});
|
30791
|
+
}).with({ state: HMSTranscriptionState.STOPPED }, () => {
|
30792
|
+
ToastManager.removeToast(toastId);
|
30793
|
+
id = ToastManager.addToast({
|
30794
|
+
title: `Closed Captioning disabled for everyone`,
|
30795
|
+
variant: "standard",
|
30796
|
+
duration: 2e3,
|
30797
|
+
icon: /* @__PURE__ */ React173.createElement(ClosedCaptionIcon3, { style: { marginRight: "0.5rem" } })
|
30798
|
+
});
|
30799
|
+
}).otherwise(() => null);
|
30800
|
+
setToastId(id);
|
30801
|
+
}
|
30802
|
+
break;
|
30715
30803
|
default:
|
30716
30804
|
break;
|
30717
30805
|
}
|
@@ -31179,7 +31267,7 @@ var AppStates = ({ activeState }) => {
|
|
31179
31267
|
const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
|
31180
31268
|
const { isLeaveScreenEnabled } = useRoomLayoutLeaveScreen();
|
31181
31269
|
useAutoStartStreaming();
|
31182
|
-
return
|
31270
|
+
return match16({ activeState, isPreviewScreenEnabled, isLeaveScreenEnabled }).with({ activeState: "preview" /* PREVIEW */, isPreviewScreenEnabled: true }, () => /* @__PURE__ */ React181.createElement(PreviewScreen, null)).with({ activeState: "leave" /* LEAVE */, isLeaveScreenEnabled: true }, () => /* @__PURE__ */ React181.createElement(LeaveScreen, null)).otherwise(() => /* @__PURE__ */ React181.createElement(ConferenceScreen, null));
|
31183
31271
|
};
|
31184
31272
|
var BackSwipe = () => {
|
31185
31273
|
const isConnectedToRoom = useHMSStore98(selectIsConnectedToRoom13);
|
@@ -31356,4 +31444,4 @@ lodash/lodash.js:
|
|
31356
31444
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
31357
31445
|
*)
|
31358
31446
|
*/
|
31359
|
-
//# sourceMappingURL=chunk-
|
31447
|
+
//# sourceMappingURL=chunk-D5F44IP2.js.map
|