@100mslive/roomkit-react 0.3.24-alpha.4 → 0.3.24-alpha.6
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +14 -16
- package/dist/index.cjs.css +2 -2
- package/dist/index.cjs.css.map +1 -1
- package/dist/index.cjs.js +535 -505
- 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 +557 -519
- package/dist/index.js.map +4 -4
- package/dist/meta.cjs.json +31 -31
- package/dist/meta.esbuild.json +31 -31
- package/package.json +7 -7
- package/src/Prebuilt/components/AuthToken.tsx +2 -2
- package/src/Prebuilt/components/ErrorBoundary.jsx +2 -2
- package/src/Prebuilt/components/Notifications/DeviceInUseError.tsx +12 -5
- package/src/Prebuilt/components/Notifications/PermissionErrorModal.tsx +14 -6
- package/src/Prebuilt/components/VideoLayouts/Grid.tsx +1 -1
- package/src/Prebuilt/components/hooks/useTileLayout.tsx +1 -0
package/dist/index.cjs.js
CHANGED
@@ -35,8 +35,8 @@ var __objRest = (source, exclude) => {
|
|
35
35
|
}
|
36
36
|
return target;
|
37
37
|
};
|
38
|
-
var __esm = (
|
39
|
-
return
|
38
|
+
var __esm = (fn, res) => function __init() {
|
39
|
+
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
40
40
|
};
|
41
41
|
var __commonJS = (cb, mod) => function __require() {
|
42
42
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
@@ -109,7 +109,7 @@ var __async = (__this, __arguments, generator) => {
|
|
109
109
|
var define_process_env_default;
|
110
110
|
var init_define_process_env = __esm({
|
111
111
|
"<define:process.env>"() {
|
112
|
-
define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_b080d535-70b8-4e74-91e8-809b92a993a3", 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.14-alpha.4", 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.4 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.24-alpha.4", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_b080d535-70b8-4e74-91e8-809b92a993a3", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.4/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.24-alpha.4", 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.12", 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.3.1-1", 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.10.2", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/27.1.12297006", 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: "608", 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", 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.13/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20241015.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.8/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", GOROOT_1_23_X64: "/opt/hostedtoolcache/go/1.23.2/x64", JOURNAL_STREAM: "8:19593", 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.24-alpha.4", 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: "11588215884", 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: "73e8ffadcba71e5b6c48fedf53923518066c4504", 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: "c355d64787f38a0d96690ca661ffd440bd11989a7bf7cf3dfe12c3f1a24d83ab", npm_package_exports___import: "./dist/index.js", STATS_BLT: "true", 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--1730270232759-0.1780717938756431:/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.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1730270232561-0.3096121968676704:/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.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1730270206459-0.910288666579854:/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.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1730270206272-0.16371821375495443:/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.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/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.4/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_f47b8baf-5ea4-4620-ab85-2c26add1612c", INVOCATION_ID: "a8948ea9c7d94b61b4a1ff6eff785219", 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: "693", 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_dependencies_react_dom: "^18.2.0", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 426", 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/27.1.12297006", 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.24-alpha.4", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.24-alpha.4", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_resolutions_axios: "^1.7.4", 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: "73e8ffadcba71e5b6c48fedf53923518066c4504", 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_b080d535-70b8-4e74-91e8-809b92a993a3", 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_b080d535-70b8-4e74-91e8-809b92a993a3", 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/27.1.12297006", 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-latest/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_knip: "^5.11.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/27.1.12297006", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_b080d535-70b8-4e74-91e8-809b92a993a3" };
|
112
|
+
define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_a8b45b4c-cfff-4c96-90f0-050a51be7b0b", 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.14-alpha.6", 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.4 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.24-alpha.6", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_a8b45b4c-cfff-4c96-90f0-050a51be7b0b", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.4/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.24-alpha.6", 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.12", 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.3.1-1", 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.10.2", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/27.1.12297006", 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: "607", 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", 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.13/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20241015.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.8/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", GOROOT_1_23_X64: "/opt/hostedtoolcache/go/1.23.2/x64", JOURNAL_STREAM: "8:20509", 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.24-alpha.6", 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: "11611449873", 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: "bddfa9de9e715b0daebe639ecd08454da5080576", 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: "4c562cd3565b6a6355ece98709456c9a0c74cd3f3ccb5861b8dbd1cae821d145", 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--1730375898337-0.7631033212359539:/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.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1730375898145-0.004213192783638853:/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.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1730375872539-0.3156930248273693:/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.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1730375872348-0.2885556953678776:/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.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/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.4/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_8f70b829-cf89-4be3-8e35-e9bdf7e1bf0f", INVOCATION_ID: "9c28b118c7924307a45232f7fe15865a", 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: "696", 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_dependencies_react_dom: "^18.2.0", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 415", 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/27.1.12297006", 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.24-alpha.6", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.24-alpha.6", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_resolutions_axios: "^1.7.4", 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: "bddfa9de9e715b0daebe639ecd08454da5080576", 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_a8b45b4c-cfff-4c96-90f0-050a51be7b0b", 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_a8b45b4c-cfff-4c96-90f0-050a51be7b0b", 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/27.1.12297006", 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-latest/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_knip: "^5.11.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/27.1.12297006", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_a8b45b4c-cfff-4c96-90f0-050a51be7b0b" };
|
113
113
|
}
|
114
114
|
});
|
115
115
|
|
@@ -2288,8 +2288,8 @@ var require_lodash = __commonJS({
|
|
2288
2288
|
function createBind(func, bitmask, thisArg) {
|
2289
2289
|
var isBind = bitmask & WRAP_BIND_FLAG, Ctor = createCtor(func);
|
2290
2290
|
function wrapper() {
|
2291
|
-
var
|
2292
|
-
return
|
2291
|
+
var fn = this && this !== root && this instanceof wrapper ? Ctor : func;
|
2292
|
+
return fn.apply(isBind ? thisArg : this, arguments);
|
2293
2293
|
}
|
2294
2294
|
return wrapper;
|
2295
2295
|
}
|
@@ -2355,8 +2355,8 @@ var require_lodash = __commonJS({
|
|
2355
2355
|
arity - length
|
2356
2356
|
);
|
2357
2357
|
}
|
2358
|
-
var
|
2359
|
-
return apply(
|
2358
|
+
var fn = this && this !== root && this instanceof wrapper ? Ctor : func;
|
2359
|
+
return apply(fn, this, args);
|
2360
2360
|
}
|
2361
2361
|
return wrapper;
|
2362
2362
|
}
|
@@ -2444,7 +2444,7 @@ var require_lodash = __commonJS({
|
|
2444
2444
|
arity - length
|
2445
2445
|
);
|
2446
2446
|
}
|
2447
|
-
var thisBinding = isBind ? thisArg : this,
|
2447
|
+
var thisBinding = isBind ? thisArg : this, fn = isBindKey ? thisBinding[func] : func;
|
2448
2448
|
length = args.length;
|
2449
2449
|
if (argPos) {
|
2450
2450
|
args = reorder(args, argPos);
|
@@ -2455,9 +2455,9 @@ var require_lodash = __commonJS({
|
|
2455
2455
|
args.length = ary2;
|
2456
2456
|
}
|
2457
2457
|
if (this && this !== root && this instanceof wrapper) {
|
2458
|
-
|
2458
|
+
fn = Ctor || createCtor(fn);
|
2459
2459
|
}
|
2460
|
-
return
|
2460
|
+
return fn.apply(thisBinding, args);
|
2461
2461
|
}
|
2462
2462
|
return wrapper;
|
2463
2463
|
}
|
@@ -2514,14 +2514,14 @@ var require_lodash = __commonJS({
|
|
2514
2514
|
function createPartial(func, bitmask, thisArg, partials) {
|
2515
2515
|
var isBind = bitmask & WRAP_BIND_FLAG, Ctor = createCtor(func);
|
2516
2516
|
function wrapper() {
|
2517
|
-
var argsIndex = -1, argsLength = arguments.length, leftIndex = -1, leftLength = partials.length, args = Array2(leftLength + argsLength),
|
2517
|
+
var argsIndex = -1, argsLength = arguments.length, leftIndex = -1, leftLength = partials.length, args = Array2(leftLength + argsLength), fn = this && this !== root && this instanceof wrapper ? Ctor : func;
|
2518
2518
|
while (++leftIndex < leftLength) {
|
2519
2519
|
args[leftIndex] = partials[leftIndex];
|
2520
2520
|
}
|
2521
2521
|
while (argsLength--) {
|
2522
2522
|
args[leftIndex++] = arguments[++argsIndex];
|
2523
2523
|
}
|
2524
|
-
return apply(
|
2524
|
+
return apply(fn, isBind ? thisArg : this, args);
|
2525
2525
|
}
|
2526
2526
|
return wrapper;
|
2527
2527
|
}
|
@@ -4151,7 +4151,7 @@ var require_lodash = __commonJS({
|
|
4151
4151
|
function eq(value, other) {
|
4152
4152
|
return value === other || value !== value && other !== other;
|
4153
4153
|
}
|
4154
|
-
var
|
4154
|
+
var gt2 = createRelationalOperation(baseGt);
|
4155
4155
|
var gte = createRelationalOperation(function(value, other) {
|
4156
4156
|
return value >= other;
|
4157
4157
|
});
|
@@ -4293,7 +4293,7 @@ var require_lodash = __commonJS({
|
|
4293
4293
|
function isWeakSet(value) {
|
4294
4294
|
return isObjectLike(value) && baseGetTag(value) == weakSetTag;
|
4295
4295
|
}
|
4296
|
-
var
|
4296
|
+
var lt = createRelationalOperation(baseLt);
|
4297
4297
|
var lte = createRelationalOperation(function(value, other) {
|
4298
4298
|
return value <= other;
|
4299
4299
|
});
|
@@ -4375,7 +4375,7 @@ var require_lodash = __commonJS({
|
|
4375
4375
|
var assignWith = createAssigner(function(object, source, srcIndex, customizer2) {
|
4376
4376
|
copyObject(source, keys(source), object, customizer2);
|
4377
4377
|
});
|
4378
|
-
var
|
4378
|
+
var at = flatRest(baseAt);
|
4379
4379
|
function create(prototype, properties) {
|
4380
4380
|
var result2 = baseCreate(prototype);
|
4381
4381
|
return properties == null ? result2 : baseAssign(result2, properties);
|
@@ -5109,7 +5109,7 @@ var require_lodash = __commonJS({
|
|
5109
5109
|
lodash.assignIn = assignIn;
|
5110
5110
|
lodash.assignInWith = assignInWith;
|
5111
5111
|
lodash.assignWith = assignWith;
|
5112
|
-
lodash.at =
|
5112
|
+
lodash.at = at;
|
5113
5113
|
lodash.before = before;
|
5114
5114
|
lodash.bind = bind;
|
5115
5115
|
lodash.bindAll = bindAll;
|
@@ -5290,7 +5290,7 @@ var require_lodash = __commonJS({
|
|
5290
5290
|
lodash.forOwn = forOwn;
|
5291
5291
|
lodash.forOwnRight = forOwnRight;
|
5292
5292
|
lodash.get = get;
|
5293
|
-
lodash.gt =
|
5293
|
+
lodash.gt = gt2;
|
5294
5294
|
lodash.gte = gte;
|
5295
5295
|
lodash.has = has;
|
5296
5296
|
lodash.hasIn = hasIn;
|
@@ -5343,7 +5343,7 @@ var require_lodash = __commonJS({
|
|
5343
5343
|
lodash.lastIndexOf = lastIndexOf;
|
5344
5344
|
lodash.lowerCase = lowerCase;
|
5345
5345
|
lodash.lowerFirst = lowerFirst;
|
5346
|
-
lodash.lt =
|
5346
|
+
lodash.lt = lt;
|
5347
5347
|
lodash.lte = lte;
|
5348
5348
|
lodash.max = max;
|
5349
5349
|
lodash.maxBy = maxBy;
|
@@ -5630,16 +5630,16 @@ var require_ua_parser = __commonJS({
|
|
5630
5630
|
return typeof len === UNDEF_TYPE ? str : str.substring(0, UA_MAX_LENGTH);
|
5631
5631
|
}
|
5632
5632
|
};
|
5633
|
-
var rgxMapper = function(
|
5634
|
-
var i = 0,
|
5633
|
+
var rgxMapper = function(ua2, arrays) {
|
5634
|
+
var i = 0, j, k2, p, q, matches, match18;
|
5635
5635
|
while (i < arrays.length && !matches) {
|
5636
5636
|
var regex = arrays[i], props = arrays[i + 1];
|
5637
|
-
|
5638
|
-
while (
|
5639
|
-
if (!regex[
|
5637
|
+
j = k2 = 0;
|
5638
|
+
while (j < regex.length && !matches) {
|
5639
|
+
if (!regex[j]) {
|
5640
5640
|
break;
|
5641
5641
|
}
|
5642
|
-
matches = regex[
|
5642
|
+
matches = regex[j++].exec(ua2);
|
5643
5643
|
if (!!matches) {
|
5644
5644
|
for (p = 0; p < props.length; p++) {
|
5645
5645
|
match18 = matches[++k2];
|
@@ -5671,8 +5671,8 @@ var require_ua_parser = __commonJS({
|
|
5671
5671
|
}, strMapper = function(str, map) {
|
5672
5672
|
for (var i in map) {
|
5673
5673
|
if (typeof map[i] === OBJ_TYPE && map[i].length > 0) {
|
5674
|
-
for (var
|
5675
|
-
if (has(map[i][
|
5674
|
+
for (var j = 0; j < map[i].length; j++) {
|
5675
|
+
if (has(map[i][j], str)) {
|
5676
5676
|
return i === UNKNOWN ? undefined2 : i;
|
5677
5677
|
}
|
5678
5678
|
}
|
@@ -6728,16 +6728,16 @@ var require_ua_parser = __commonJS({
|
|
6728
6728
|
[NAME, VERSION]
|
6729
6729
|
]
|
6730
6730
|
};
|
6731
|
-
var UAParser = function(
|
6732
|
-
if (typeof
|
6733
|
-
extensions =
|
6734
|
-
|
6731
|
+
var UAParser = function(ua2, extensions) {
|
6732
|
+
if (typeof ua2 === OBJ_TYPE) {
|
6733
|
+
extensions = ua2;
|
6734
|
+
ua2 = undefined2;
|
6735
6735
|
}
|
6736
6736
|
if (!(this instanceof UAParser)) {
|
6737
|
-
return new UAParser(
|
6737
|
+
return new UAParser(ua2, extensions).getResult();
|
6738
6738
|
}
|
6739
6739
|
var _navigator = typeof window2 !== UNDEF_TYPE && window2.navigator ? window2.navigator : undefined2;
|
6740
|
-
var _ua =
|
6740
|
+
var _ua = ua2 || (_navigator && _navigator.userAgent ? _navigator.userAgent : EMPTY);
|
6741
6741
|
var _uach = _navigator && _navigator.userAgentData ? _navigator.userAgentData : undefined2;
|
6742
6742
|
var _rgxmap = extensions ? extend(regexes, extensions) : regexes;
|
6743
6743
|
var _isSelfNav = _navigator && _navigator.userAgent == _ua;
|
@@ -6803,8 +6803,8 @@ var require_ua_parser = __commonJS({
|
|
6803
6803
|
this.getUA = function() {
|
6804
6804
|
return _ua;
|
6805
6805
|
};
|
6806
|
-
this.setUA = function(
|
6807
|
-
_ua = typeof
|
6806
|
+
this.setUA = function(ua3) {
|
6807
|
+
_ua = typeof ua3 === STR_TYPE && ua3.length > UA_MAX_LENGTH ? trim(ua3, UA_MAX_LENGTH) : ua3;
|
6808
6808
|
return this;
|
6809
6809
|
};
|
6810
6810
|
this.setUA(_ua);
|
@@ -6829,18 +6829,18 @@ var require_ua_parser = __commonJS({
|
|
6829
6829
|
window2.UAParser = UAParser;
|
6830
6830
|
}
|
6831
6831
|
}
|
6832
|
-
var $ = typeof window2 !== UNDEF_TYPE && (window2.jQuery || window2.Zepto);
|
6833
|
-
if ($ &&
|
6832
|
+
var $2 = typeof window2 !== UNDEF_TYPE && (window2.jQuery || window2.Zepto);
|
6833
|
+
if ($2 && !$2.ua) {
|
6834
6834
|
var parser = new UAParser();
|
6835
|
-
|
6836
|
-
|
6835
|
+
$2.ua = parser.getResult();
|
6836
|
+
$2.ua.get = function() {
|
6837
6837
|
return parser.getUA();
|
6838
6838
|
};
|
6839
|
-
|
6840
|
-
parser.setUA(
|
6839
|
+
$2.ua.set = function(ua2) {
|
6840
|
+
parser.setUA(ua2);
|
6841
6841
|
var result = parser.getResult();
|
6842
6842
|
for (var prop in result) {
|
6843
|
-
|
6843
|
+
$2.ua[prop] = result[prop];
|
6844
6844
|
}
|
6845
6845
|
};
|
6846
6846
|
}
|
@@ -7673,12 +7673,12 @@ var require_sdp = __commonJS({
|
|
7673
7673
|
return parsed;
|
7674
7674
|
};
|
7675
7675
|
SDPUtils2.writeRtpMap = function(codec) {
|
7676
|
-
let
|
7676
|
+
let pt = codec.payloadType;
|
7677
7677
|
if (codec.preferredPayloadType !== void 0) {
|
7678
|
-
|
7678
|
+
pt = codec.preferredPayloadType;
|
7679
7679
|
}
|
7680
7680
|
const channels = codec.channels || codec.numChannels || 1;
|
7681
|
-
return "a=rtpmap:" +
|
7681
|
+
return "a=rtpmap:" + pt + " " + codec.name + "/" + codec.clockRate + (channels !== 1 ? "/" + channels : "") + "\r\n";
|
7682
7682
|
};
|
7683
7683
|
SDPUtils2.parseExtmap = function(line) {
|
7684
7684
|
const parts = line.substring(9).split(" ");
|
@@ -7696,17 +7696,17 @@ var require_sdp = __commonJS({
|
|
7696
7696
|
const parsed = {};
|
7697
7697
|
let kv;
|
7698
7698
|
const parts = line.substring(line.indexOf(" ") + 1).split(";");
|
7699
|
-
for (let
|
7700
|
-
kv = parts[
|
7699
|
+
for (let j = 0; j < parts.length; j++) {
|
7700
|
+
kv = parts[j].trim().split("=");
|
7701
7701
|
parsed[kv[0].trim()] = kv[1];
|
7702
7702
|
}
|
7703
7703
|
return parsed;
|
7704
7704
|
};
|
7705
7705
|
SDPUtils2.writeFmtp = function(codec) {
|
7706
7706
|
let line = "";
|
7707
|
-
let
|
7707
|
+
let pt = codec.payloadType;
|
7708
7708
|
if (codec.preferredPayloadType !== void 0) {
|
7709
|
-
|
7709
|
+
pt = codec.preferredPayloadType;
|
7710
7710
|
}
|
7711
7711
|
if (codec.parameters && Object.keys(codec.parameters).length) {
|
7712
7712
|
const params = [];
|
@@ -7717,7 +7717,7 @@ var require_sdp = __commonJS({
|
|
7717
7717
|
params.push(param);
|
7718
7718
|
}
|
7719
7719
|
});
|
7720
|
-
line += "a=fmtp:" +
|
7720
|
+
line += "a=fmtp:" + pt + " " + params.join(";") + "\r\n";
|
7721
7721
|
}
|
7722
7722
|
return line;
|
7723
7723
|
};
|
@@ -7730,13 +7730,13 @@ var require_sdp = __commonJS({
|
|
7730
7730
|
};
|
7731
7731
|
SDPUtils2.writeRtcpFb = function(codec) {
|
7732
7732
|
let lines = "";
|
7733
|
-
let
|
7733
|
+
let pt = codec.payloadType;
|
7734
7734
|
if (codec.preferredPayloadType !== void 0) {
|
7735
|
-
|
7735
|
+
pt = codec.preferredPayloadType;
|
7736
7736
|
}
|
7737
7737
|
if (codec.rtcpFeedback && codec.rtcpFeedback.length) {
|
7738
7738
|
codec.rtcpFeedback.forEach((fb) => {
|
7739
|
-
lines += "a=rtcp-fb:" +
|
7739
|
+
lines += "a=rtcp-fb:" + pt + " " + fb.type + (fb.parameter && fb.parameter.length ? " " + fb.parameter : "") + "\r\n";
|
7740
7740
|
});
|
7741
7741
|
}
|
7742
7742
|
return lines;
|
@@ -7864,21 +7864,21 @@ var require_sdp = __commonJS({
|
|
7864
7864
|
const mline = lines[0].split(" ");
|
7865
7865
|
description.profile = mline[2];
|
7866
7866
|
for (let i = 3; i < mline.length; i++) {
|
7867
|
-
const
|
7867
|
+
const pt = mline[i];
|
7868
7868
|
const rtpmapline = SDPUtils2.matchPrefix(
|
7869
7869
|
mediaSection,
|
7870
|
-
"a=rtpmap:" +
|
7870
|
+
"a=rtpmap:" + pt + " "
|
7871
7871
|
)[0];
|
7872
7872
|
if (rtpmapline) {
|
7873
7873
|
const codec = SDPUtils2.parseRtpMap(rtpmapline);
|
7874
7874
|
const fmtps = SDPUtils2.matchPrefix(
|
7875
7875
|
mediaSection,
|
7876
|
-
"a=fmtp:" +
|
7876
|
+
"a=fmtp:" + pt + " "
|
7877
7877
|
);
|
7878
7878
|
codec.parameters = fmtps.length ? SDPUtils2.parseFmtp(fmtps[0]) : {};
|
7879
7879
|
codec.rtcpFeedback = SDPUtils2.matchPrefix(
|
7880
7880
|
mediaSection,
|
7881
|
-
"a=rtcp-fb:" +
|
7881
|
+
"a=rtcp-fb:" + pt + " "
|
7882
7882
|
).map(SDPUtils2.parseRtcpFb);
|
7883
7883
|
description.codecs.push(codec);
|
7884
7884
|
switch (codec.name.toUpperCase()) {
|
@@ -8677,8 +8677,8 @@ var require_parser = __commonJS({
|
|
8677
8677
|
media.push({ rtp: [], fmtp: [] });
|
8678
8678
|
location = media[media.length - 1];
|
8679
8679
|
}
|
8680
|
-
for (var
|
8681
|
-
var obj = grammar[type][
|
8680
|
+
for (var j = 0; j < (grammar[type] || []).length; j += 1) {
|
8681
|
+
var obj = grammar[type][j];
|
8682
8682
|
if (obj.reg.test(content)) {
|
8683
8683
|
return parseReg(obj, location, content);
|
8684
8684
|
}
|
@@ -8875,10 +8875,10 @@ var require_react_is_production_min = __commonJS({
|
|
8875
8875
|
var e = b2 ? Symbol.for("react.fragment") : 60107;
|
8876
8876
|
var f = b2 ? Symbol.for("react.strict_mode") : 60108;
|
8877
8877
|
var g = b2 ? Symbol.for("react.profiler") : 60114;
|
8878
|
-
var
|
8878
|
+
var h2 = b2 ? Symbol.for("react.provider") : 60109;
|
8879
8879
|
var k2 = b2 ? Symbol.for("react.context") : 60110;
|
8880
8880
|
var l2 = b2 ? Symbol.for("react.async_mode") : 60111;
|
8881
|
-
var
|
8881
|
+
var m = b2 ? Symbol.for("react.concurrent_mode") : 60111;
|
8882
8882
|
var n = b2 ? Symbol.for("react.forward_ref") : 60112;
|
8883
8883
|
var p = b2 ? Symbol.for("react.suspense") : 60113;
|
8884
8884
|
var q = b2 ? Symbol.for("react.suspense_list") : 60120;
|
@@ -8895,7 +8895,7 @@ var require_react_is_production_min = __commonJS({
|
|
8895
8895
|
case c2:
|
8896
8896
|
switch (a2 = a2.type, a2) {
|
8897
8897
|
case l2:
|
8898
|
-
case
|
8898
|
+
case m:
|
8899
8899
|
case e:
|
8900
8900
|
case g:
|
8901
8901
|
case f:
|
@@ -8907,7 +8907,7 @@ var require_react_is_production_min = __commonJS({
|
|
8907
8907
|
case n:
|
8908
8908
|
case t:
|
8909
8909
|
case r:
|
8910
|
-
case
|
8910
|
+
case h2:
|
8911
8911
|
return a2;
|
8912
8912
|
default:
|
8913
8913
|
return u;
|
@@ -8919,12 +8919,12 @@ var require_react_is_production_min = __commonJS({
|
|
8919
8919
|
}
|
8920
8920
|
}
|
8921
8921
|
function A(a2) {
|
8922
|
-
return z2(a2) ===
|
8922
|
+
return z2(a2) === m;
|
8923
8923
|
}
|
8924
8924
|
exports.AsyncMode = l2;
|
8925
|
-
exports.ConcurrentMode =
|
8925
|
+
exports.ConcurrentMode = m;
|
8926
8926
|
exports.ContextConsumer = k2;
|
8927
|
-
exports.ContextProvider =
|
8927
|
+
exports.ContextProvider = h2;
|
8928
8928
|
exports.Element = c2;
|
8929
8929
|
exports.ForwardRef = n;
|
8930
8930
|
exports.Fragment = e;
|
@@ -8942,7 +8942,7 @@ var require_react_is_production_min = __commonJS({
|
|
8942
8942
|
return z2(a2) === k2;
|
8943
8943
|
};
|
8944
8944
|
exports.isContextProvider = function(a2) {
|
8945
|
-
return z2(a2) ===
|
8945
|
+
return z2(a2) === h2;
|
8946
8946
|
};
|
8947
8947
|
exports.isElement = function(a2) {
|
8948
8948
|
return "object" === typeof a2 && null !== a2 && a2.$$typeof === c2;
|
@@ -8972,7 +8972,7 @@ var require_react_is_production_min = __commonJS({
|
|
8972
8972
|
return z2(a2) === p;
|
8973
8973
|
};
|
8974
8974
|
exports.isValidElementType = function(a2) {
|
8975
|
-
return "string" === typeof a2 || "function" === typeof a2 || a2 === e || a2 ===
|
8975
|
+
return "string" === typeof a2 || "function" === typeof a2 || a2 === e || a2 === m || a2 === g || a2 === f || a2 === p || a2 === q || "object" === typeof a2 && null !== a2 && (a2.$$typeof === t || a2.$$typeof === r || a2.$$typeof === h2 || a2.$$typeof === k2 || a2.$$typeof === n || a2.$$typeof === w || a2.$$typeof === x || a2.$$typeof === y2 || a2.$$typeof === v);
|
8976
8976
|
};
|
8977
8977
|
exports.typeOf = z2;
|
8978
8978
|
}
|
@@ -9361,7 +9361,7 @@ var require_factoryWithTypeCheckers = __commonJS({
|
|
9361
9361
|
shape: createShapeTypeChecker,
|
9362
9362
|
exact: createStrictShapeTypeChecker
|
9363
9363
|
};
|
9364
|
-
function
|
9364
|
+
function is2(x, y2) {
|
9365
9365
|
if (x === y2) {
|
9366
9366
|
return x !== 0 || 1 / x === 1 / y2;
|
9367
9367
|
} else {
|
@@ -9504,7 +9504,7 @@ var require_factoryWithTypeCheckers = __commonJS({
|
|
9504
9504
|
function validate(props, propName, componentName, location, propFullName) {
|
9505
9505
|
var propValue = props[propName];
|
9506
9506
|
for (var i = 0; i < expectedValues.length; i++) {
|
9507
|
-
if (
|
9507
|
+
if (is2(propValue, expectedValues[i])) {
|
9508
9508
|
return null;
|
9509
9509
|
}
|
9510
9510
|
}
|
@@ -14619,8 +14619,8 @@ var AuthToken = import_react39.default.memo(({ authTokenByRoomCodeEndpoint, defa
|
|
14619
14619
|
var convertError = (error) => {
|
14620
14620
|
console.error("[error]", { error });
|
14621
14621
|
console.warn(
|
14622
|
-
"If you think this is a mistake on our side, please reach out to us
|
14623
|
-
"https://
|
14622
|
+
"If you think this is a mistake on our side, please reach out to us on Dashboard:",
|
14623
|
+
"https://dashboard.100ms.live/dashboard"
|
14624
14624
|
);
|
14625
14625
|
return (0, import_ts_pattern3.match)([error.action, error.code]).with(["GET_TOKEN", 403], () => ({
|
14626
14626
|
title: "Psst! This room is currently inactive.",
|
@@ -19571,8 +19571,8 @@ function shimGetUserMedia(window2, browserDetails) {
|
|
19571
19571
|
navigator2.getUserMedia = getUserMedia_.bind(navigator2);
|
19572
19572
|
if (navigator2.mediaDevices.getUserMedia) {
|
19573
19573
|
const origGetUserMedia = navigator2.mediaDevices.getUserMedia.bind(navigator2.mediaDevices);
|
19574
|
-
navigator2.mediaDevices.getUserMedia = function(
|
19575
|
-
return shimConstraints_(
|
19574
|
+
navigator2.mediaDevices.getUserMedia = function(cs) {
|
19575
|
+
return shimConstraints_(cs, (c2) => origGetUserMedia(c2).then((stream) => {
|
19576
19576
|
if (c2.audio && !stream.getAudioTracks().length || c2.video && !stream.getVideoTracks().length) {
|
19577
19577
|
stream.getTracks().forEach((track) => {
|
19578
19578
|
track.stop();
|
@@ -19692,20 +19692,20 @@ function shimOnTrack(window2) {
|
|
19692
19692
|
}
|
19693
19693
|
function shimGetSendersWithDtmf(window2) {
|
19694
19694
|
if (typeof window2 === "object" && window2.RTCPeerConnection && !("getSenders" in window2.RTCPeerConnection.prototype) && "createDTMFSender" in window2.RTCPeerConnection.prototype) {
|
19695
|
-
const shimSenderWithDtmf = function(
|
19695
|
+
const shimSenderWithDtmf = function(pc2, track) {
|
19696
19696
|
return {
|
19697
19697
|
track,
|
19698
19698
|
get dtmf() {
|
19699
19699
|
if (this._dtmf === void 0) {
|
19700
19700
|
if (track.kind === "audio") {
|
19701
|
-
this._dtmf =
|
19701
|
+
this._dtmf = pc2.createDTMFSender(track);
|
19702
19702
|
} else {
|
19703
19703
|
this._dtmf = null;
|
19704
19704
|
}
|
19705
19705
|
}
|
19706
19706
|
return this._dtmf;
|
19707
19707
|
},
|
19708
|
-
_pc:
|
19708
|
+
_pc: pc2
|
19709
19709
|
};
|
19710
19710
|
};
|
19711
19711
|
if (!window2.RTCPeerConnection.prototype.getSenders) {
|
@@ -20060,11 +20060,11 @@ function shimAddTrackRemoveTrack(window2, browserDetails) {
|
|
20060
20060
|
}
|
20061
20061
|
return this.getSenders().find((s) => s.track === track);
|
20062
20062
|
};
|
20063
|
-
function replaceInternalStreamId(
|
20063
|
+
function replaceInternalStreamId(pc2, description) {
|
20064
20064
|
let sdp2 = description.sdp;
|
20065
|
-
Object.keys(
|
20066
|
-
const externalStream =
|
20067
|
-
const internalStream =
|
20065
|
+
Object.keys(pc2._reverseStreams || []).forEach((internalId) => {
|
20066
|
+
const externalStream = pc2._reverseStreams[internalId];
|
20067
|
+
const internalStream = pc2._streams[externalStream.id];
|
20068
20068
|
sdp2 = sdp2.replace(
|
20069
20069
|
new RegExp(internalStream.id, "g"),
|
20070
20070
|
externalStream.id
|
@@ -20075,11 +20075,11 @@ function shimAddTrackRemoveTrack(window2, browserDetails) {
|
|
20075
20075
|
sdp: sdp2
|
20076
20076
|
});
|
20077
20077
|
}
|
20078
|
-
function replaceExternalStreamId(
|
20078
|
+
function replaceExternalStreamId(pc2, description) {
|
20079
20079
|
let sdp2 = description.sdp;
|
20080
|
-
Object.keys(
|
20081
|
-
const externalStream =
|
20082
|
-
const internalStream =
|
20080
|
+
Object.keys(pc2._reverseStreams || []).forEach((internalId) => {
|
20081
|
+
const externalStream = pc2._reverseStreams[internalId];
|
20082
|
+
const internalStream = pc2._streams[externalStream.id];
|
20083
20083
|
sdp2 = sdp2.replace(
|
20084
20084
|
new RegExp(externalStream.id, "g"),
|
20085
20085
|
internalStream.id
|
@@ -20193,9 +20193,9 @@ function shimPeerConnection(window2, browserDetails) {
|
|
20193
20193
|
}
|
20194
20194
|
function fixNegotiationNeeded(window2, browserDetails) {
|
20195
20195
|
wrapPeerConnectionEvent(window2, "negotiationneeded", (e) => {
|
20196
|
-
const
|
20197
|
-
if (browserDetails.version < 72 ||
|
20198
|
-
if (
|
20196
|
+
const pc2 = e.target;
|
20197
|
+
if (browserDetails.version < 72 || pc2.getConfiguration && pc2.getConfiguration().sdpSemantics === "plan-b") {
|
20198
|
+
if (pc2.signalingState !== "stable") {
|
20199
20199
|
return;
|
20200
20200
|
}
|
20201
20201
|
}
|
@@ -20642,24 +20642,24 @@ function shimRemoteStreamsAPI(window2) {
|
|
20642
20642
|
});
|
20643
20643
|
const origSetRemoteDescription = window2.RTCPeerConnection.prototype.setRemoteDescription;
|
20644
20644
|
window2.RTCPeerConnection.prototype.setRemoteDescription = function setRemoteDescription() {
|
20645
|
-
const
|
20645
|
+
const pc2 = this;
|
20646
20646
|
if (!this._onaddstreampoly) {
|
20647
20647
|
this.addEventListener("track", this._onaddstreampoly = function(e) {
|
20648
20648
|
e.streams.forEach((stream) => {
|
20649
|
-
if (!
|
20650
|
-
|
20649
|
+
if (!pc2._remoteStreams) {
|
20650
|
+
pc2._remoteStreams = [];
|
20651
20651
|
}
|
20652
|
-
if (
|
20652
|
+
if (pc2._remoteStreams.indexOf(stream) >= 0) {
|
20653
20653
|
return;
|
20654
20654
|
}
|
20655
|
-
|
20655
|
+
pc2._remoteStreams.push(stream);
|
20656
20656
|
const event = new Event("addstream");
|
20657
20657
|
event.stream = stream;
|
20658
|
-
|
20658
|
+
pc2.dispatchEvent(event);
|
20659
20659
|
});
|
20660
20660
|
});
|
20661
20661
|
}
|
20662
|
-
return origSetRemoteDescription.apply(
|
20662
|
+
return origSetRemoteDescription.apply(pc2, arguments);
|
20663
20663
|
};
|
20664
20664
|
}
|
20665
20665
|
}
|
@@ -21025,13 +21025,13 @@ function shimSendThrowTypeError(window2) {
|
|
21025
21025
|
if (!(window2.RTCPeerConnection && "createDataChannel" in window2.RTCPeerConnection.prototype)) {
|
21026
21026
|
return;
|
21027
21027
|
}
|
21028
|
-
function wrapDcSend(dc,
|
21028
|
+
function wrapDcSend(dc, pc2) {
|
21029
21029
|
const origDataChannelSend = dc.send;
|
21030
21030
|
dc.send = function send() {
|
21031
21031
|
const data3 = arguments[0];
|
21032
21032
|
const length = data3.length || data3.size || data3.byteLength;
|
21033
|
-
if (dc.readyState === "open" &&
|
21034
|
-
throw new TypeError("Message too large (can send a maximum of " +
|
21033
|
+
if (dc.readyState === "open" && pc2.sctp && length > pc2.sctp.maxMessageSize) {
|
21034
|
+
throw new TypeError("Message too large (can send a maximum of " + pc2.sctp.maxMessageSize + " bytes)");
|
21035
21035
|
}
|
21036
21036
|
return origDataChannelSend.apply(dc, arguments);
|
21037
21037
|
};
|
@@ -21089,11 +21089,11 @@ function shimConnectionState(window2) {
|
|
21089
21089
|
proto[method] = function() {
|
21090
21090
|
if (!this._connectionstatechangepoly) {
|
21091
21091
|
this._connectionstatechangepoly = (e) => {
|
21092
|
-
const
|
21093
|
-
if (
|
21094
|
-
|
21092
|
+
const pc2 = e.target;
|
21093
|
+
if (pc2._lastConnectionState !== pc2.connectionState) {
|
21094
|
+
pc2._lastConnectionState = pc2.connectionState;
|
21095
21095
|
const newEvent = new Event("connectionstatechange", e);
|
21096
|
-
|
21096
|
+
pc2.dispatchEvent(newEvent);
|
21097
21097
|
}
|
21098
21098
|
return e;
|
21099
21099
|
};
|
@@ -21304,36 +21304,36 @@ var import_eventemitter2 = require("eventemitter2");
|
|
21304
21304
|
var import_eventemitter22 = require("eventemitter2");
|
21305
21305
|
var import_uuid8 = require("uuid");
|
21306
21306
|
var import_eventemitter23 = require("eventemitter2");
|
21307
|
-
var
|
21307
|
+
var Jt = __toESM(require_lib());
|
21308
21308
|
var import_eventemitter24 = __toESM(require("eventemitter2"));
|
21309
21309
|
var import_uuid9 = require("uuid");
|
21310
21310
|
var import_uuid10 = require("uuid");
|
21311
|
-
var
|
21312
|
-
var
|
21313
|
-
var
|
21314
|
-
var
|
21315
|
-
var
|
21316
|
-
var
|
21317
|
-
var
|
21318
|
-
var
|
21311
|
+
var ro = Object.defineProperty;
|
21312
|
+
var so = Object.defineProperties;
|
21313
|
+
var ao = Object.getOwnPropertyDescriptors;
|
21314
|
+
var ii = Object.getOwnPropertySymbols;
|
21315
|
+
var ls = Object.prototype.hasOwnProperty;
|
21316
|
+
var us = Object.prototype.propertyIsEnumerable;
|
21317
|
+
var ds = (a2, e, t) => e in a2 ? ro(a2, e, { enumerable: true, configurable: true, writable: true, value: t }) : a2[e] = t;
|
21318
|
+
var h = (a2, e) => {
|
21319
21319
|
for (var t in e || (e = {}))
|
21320
|
-
|
21321
|
-
if (
|
21322
|
-
for (var t of
|
21323
|
-
|
21320
|
+
ls.call(e, t) && ds(a2, t, e[t]);
|
21321
|
+
if (ii)
|
21322
|
+
for (var t of ii(e))
|
21323
|
+
us.call(e, t) && ds(a2, t, e[t]);
|
21324
21324
|
return a2;
|
21325
21325
|
};
|
21326
|
-
var
|
21327
|
-
var
|
21326
|
+
var M = (a2, e) => so(a2, ao(e));
|
21327
|
+
var Tr = (a2, e) => {
|
21328
21328
|
var t = {};
|
21329
21329
|
for (var i in a2)
|
21330
|
-
|
21331
|
-
if (a2 != null &&
|
21332
|
-
for (var i of
|
21333
|
-
e.indexOf(i) < 0 &&
|
21330
|
+
ls.call(a2, i) && e.indexOf(i) < 0 && (t[i] = a2[i]);
|
21331
|
+
if (a2 != null && ii)
|
21332
|
+
for (var i of ii(a2))
|
21333
|
+
e.indexOf(i) < 0 && us.call(a2, i) && (t[i] = a2[i]);
|
21334
21334
|
return t;
|
21335
21335
|
};
|
21336
|
-
var
|
21336
|
+
var co = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
|
21337
21337
|
var c = (a2, e, t) => new Promise((i, r) => {
|
21338
21338
|
var s = (d) => {
|
21339
21339
|
try {
|
@@ -21350,51 +21350,51 @@ var c = (a2, e, t) => new Promise((i, r) => {
|
|
21350
21350
|
}, n = (d) => d.done ? i(d.value) : Promise.resolve(d.value).then(s, o);
|
21351
21351
|
n((t = t.apply(a2, e)).next());
|
21352
21352
|
});
|
21353
|
-
var
|
21354
|
-
|
21353
|
+
var kr = co((Wc, fo) => {
|
21354
|
+
fo.exports = { version: "0.12.24-alpha.6", 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"] };
|
21355
21355
|
});
|
21356
|
-
var
|
21357
|
-
var
|
21358
|
-
var
|
21359
|
-
var
|
21360
|
-
var
|
21361
|
-
function
|
21356
|
+
var fr = ((n) => (n.Disconnected = "Disconnected", n.Preview = "Preview", n.Connecting = "Connecting", n.Connected = "Connected", n.Reconnecting = "Reconnecting", n.Disconnecting = "Disconnecting", n.Failed = "Failed", n))(fr || {});
|
21357
|
+
var lo = ((e) => (e.CHAT = "chat", e))(lo || {});
|
21358
|
+
var ps = ((t) => (t.INFO = "info", t.ERROR = "error", t))(ps || {});
|
21359
|
+
var vr = ((w) => (w.PEER_JOINED = "PEER_JOINED", w.PEER_LEFT = "PEER_LEFT", w.PEER_LIST = "PEER_LIST", w.NEW_MESSAGE = "NEW_MESSAGE", w.ERROR = "ERROR", w.RECONNECTING = "RECONNECTING", w.RECONNECTED = "RECONNECTED", w.TRACK_ADDED = "TRACK_ADDED", w.TRACK_REMOVED = "TRACK_REMOVED", w.TRACK_MUTED = "TRACK_MUTED", w.TRACK_UNMUTED = "TRACK_UNMUTED", w.TRACK_DEGRADED = "TRACK_DEGRADED", w.TRACK_RESTORED = "TRACK_RESTORED", w.TRACK_DESCRIPTION_CHANGED = "TRACK_DESCRIPTION_CHANGED", w.ROLE_UPDATED = "ROLE_UPDATED", w.CHANGE_TRACK_STATE_REQUEST = "CHANGE_TRACK_STATE_REQUEST", w.CHANGE_MULTI_TRACK_STATE_REQUEST = "CHANGE_MULTI_TRACK_STATE_REQUEST", w.ROOM_ENDED = "ROOM_ENDED", w.REMOVED_FROM_ROOM = "REMOVED_FROM_ROOM", w.DEVICE_CHANGE_UPDATE = "DEVICE_CHANGE_UPDATE", w.PLAYLIST_TRACK_ENDED = "PLAYLIST_TRACK_ENDED", w.NAME_UPDATED = "NAME_UPDATED", w.METADATA_UPDATED = "METADATA_UPDATED", w.POLL_CREATED = "POLL_CREATED", w.POLL_STARTED = "POLL_STARTED", w.POLL_STOPPED = "POLL_STOPPED", w.POLL_VOTES_UPDATED = "POLL_VOTES_UPDATED", w.POLLS_LIST = "POLLS_LIST", w.HAND_RAISE_CHANGED = "HAND_RAISE_CHANGED", w.TRANSCRIPTION_STATE_UPDATED = "TRANSCRIPTION_STATE_UPDATED", w))(vr || {});
|
21360
|
+
var hs = ((t) => (t.audio = "audio", t.video = "video", t))(hs || {});
|
21361
|
+
function Be(a2, e) {
|
21362
21362
|
let t, i;
|
21363
21363
|
if (e)
|
21364
21364
|
for (let r of e.auxiliaryTracks) {
|
21365
21365
|
let s = a2[r];
|
21366
|
-
|
21366
|
+
uo(s) && (i = ht(s) ? s : i, t = mt(s) ? s : t);
|
21367
21367
|
}
|
21368
21368
|
return { video: t, audio: i };
|
21369
21369
|
}
|
21370
|
-
function
|
21370
|
+
function ht(a2) {
|
21371
21371
|
return a2 && a2.type === "audio";
|
21372
21372
|
}
|
21373
|
-
function
|
21373
|
+
function mt(a2) {
|
21374
21374
|
return a2 && a2.type === "video";
|
21375
21375
|
}
|
21376
|
-
function
|
21376
|
+
function uo(a2) {
|
21377
21377
|
return a2 && a2.source === "screen";
|
21378
21378
|
}
|
21379
|
-
function
|
21379
|
+
function ai(a2) {
|
21380
21380
|
return a2 && a2.source === "audioplaylist";
|
21381
21381
|
}
|
21382
|
-
function
|
21382
|
+
function St(a2) {
|
21383
21383
|
return a2 && a2.source === "videoplaylist";
|
21384
21384
|
}
|
21385
|
-
function
|
21385
|
+
function ms(a2) {
|
21386
21386
|
return a2 ? !!(a2 != null && a2.degraded) : false;
|
21387
21387
|
}
|
21388
|
-
function
|
21388
|
+
function Je(a2, e) {
|
21389
21389
|
return e && a2.tracks[e] ? a2.tracks[e].enabled : false;
|
21390
21390
|
}
|
21391
|
-
function
|
21391
|
+
function gt(a2) {
|
21392
21392
|
var r;
|
21393
21393
|
let e = false, t = false, i = false;
|
21394
21394
|
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 };
|
21395
21395
|
}
|
21396
|
-
var
|
21397
|
-
var
|
21396
|
+
var gs = ((d) => (d[d.VERBOSE = 0] = "VERBOSE", d[d.DEBUG = 1] = "DEBUG", d[d.INFO = 2] = "INFO", d[d.WARN = 3] = "WARN", d[d.TIME = 4] = "TIME", d[d.TIMEEND = 5] = "TIMEEND", d[d.ERROR = 6] = "ERROR", d[d.NONE = 7] = "NONE", d))(gs || {});
|
21397
|
+
var po = typeof window != "undefined" && typeof window.expect != "undefined";
|
21398
21398
|
var l = class {
|
21399
21399
|
static v(e, ...t) {
|
21400
21400
|
this.log(0, e, ...t);
|
@@ -21460,30 +21460,30 @@ var l = class {
|
|
21460
21460
|
}
|
21461
21461
|
}
|
21462
21462
|
};
|
21463
|
-
l.level =
|
21464
|
-
var
|
21463
|
+
l.level = po ? 7 : 0;
|
21464
|
+
var me = new import_ua_parser_js.UAParser();
|
21465
21465
|
var B = typeof window != "undefined";
|
21466
|
-
var gs;
|
21467
|
-
var Be = typeof window == "undefined" && !((gs = he.getBrowser().name) != null && gs.toLowerCase().includes("electron"));
|
21468
|
-
var po = () => !Be;
|
21469
|
-
var uc = po();
|
21470
21466
|
var Ts;
|
21467
|
+
var Ve = typeof window == "undefined" && !((Ts = me.getBrowser().name) != null && Ts.toLowerCase().includes("electron"));
|
21468
|
+
var mo = () => !Ve;
|
21469
|
+
var pc = mo();
|
21471
21470
|
var fs;
|
21472
|
-
var Es = (fs = (Ts = he.getBrowser()) == null ? void 0 : Ts.name) == null ? void 0 : fs.toLowerCase().includes("safari");
|
21473
21471
|
var vs;
|
21472
|
+
var Ps = (vs = (fs = me.getBrowser()) == null ? void 0 : fs.name) == null ? void 0 : vs.toLowerCase().includes("safari");
|
21474
21473
|
var Ms;
|
21475
|
-
var
|
21476
|
-
var bs = ((
|
21477
|
-
|
21474
|
+
var ys;
|
21475
|
+
var bs = ((ys = (Ms = me.getBrowser()) == null ? void 0 : Ms.name) == null ? void 0 : ys.toLowerCase()) === "firefox";
|
21476
|
+
var As = ((i) => (i.CUSTOM = "CUSTOM", i.LOCAL = "LOCAL", i.HMS = "HMS", i))(As || {});
|
21477
|
+
function So() {
|
21478
21478
|
if (B && window) {
|
21479
21479
|
let a2 = window.location.hostname;
|
21480
21480
|
return a2 === "localhost" || a2 === "127.0.0.1" ? "LOCAL" : a2.includes("app.100ms.live") ? "HMS" : "CUSTOM";
|
21481
21481
|
}
|
21482
21482
|
return "CUSTOM";
|
21483
21483
|
}
|
21484
|
-
var
|
21484
|
+
var ze = So();
|
21485
21485
|
var P4 = { 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, NO_DATA: 3015 }, 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 } };
|
21486
|
-
var
|
21486
|
+
var k = class a extends Error {
|
21487
21487
|
constructor(t, i, r, s, o, n = false) {
|
21488
21488
|
super(s);
|
21489
21489
|
this.code = t;
|
@@ -21502,127 +21502,154 @@ var M = class a extends Error {
|
|
21502
21502
|
toString() {
|
21503
21503
|
var t;
|
21504
21504
|
return `{
|
21505
|
-
|
21506
|
-
|
21507
|
-
|
21508
|
-
|
21509
|
-
|
21510
|
-
|
21511
|
-
|
21512
|
-
|
21505
|
+
code: ${this.code};
|
21506
|
+
name: ${this.name};
|
21507
|
+
action: ${this.action};
|
21508
|
+
message: ${this.message};
|
21509
|
+
description: ${this.description};
|
21510
|
+
isTerminal: ${this.isTerminal};
|
21511
|
+
nativeError: ${(t = this.nativeError) == null ? void 0 : t.message};
|
21512
|
+
}`;
|
21513
|
+
}
|
21514
|
+
};
|
21515
|
+
var $ = class extends k {
|
21516
|
+
constructor(t, i, r, s, o, n) {
|
21517
|
+
super(t, i, r, s, o, false);
|
21518
|
+
this.code = t;
|
21519
|
+
this.name = i;
|
21520
|
+
this.message = s;
|
21521
|
+
this.description = o;
|
21522
|
+
this.trackType = n;
|
21513
21523
|
}
|
21514
|
-
|
21515
|
-
|
21524
|
+
toAnalyticsProperties() {
|
21525
|
+
return M(h({}, super.toAnalyticsProperties()), { track_type: this.trackType });
|
21526
|
+
}
|
21527
|
+
toString() {
|
21528
|
+
var t;
|
21529
|
+
return `{
|
21530
|
+
code: ${this.code};
|
21531
|
+
name: ${this.name};
|
21532
|
+
action: ${this.action};
|
21533
|
+
message: ${this.message};
|
21534
|
+
description: ${this.description};
|
21535
|
+
isTerminal: ${this.isTerminal};
|
21536
|
+
nativeError: ${(t = this.nativeError) == null ? void 0 : t.message};
|
21537
|
+
trackType: ${this.trackType};
|
21538
|
+
}`;
|
21539
|
+
}
|
21540
|
+
};
|
21541
|
+
var Is = ((r) => (r.AUDIO = "audio", r.VIDEO = "video", r.AUDIO_VIDEO = "audio, video", r.SCREEN = "screen", r))(Is || {});
|
21542
|
+
var go = ["join", "offer", "answer", "trickle", "on-error", "JOIN"];
|
21516
21543
|
var S = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
|
21517
|
-
return new
|
21544
|
+
return new k(P4.WebSocketConnectionErrors.FAILED_TO_CONNECT, "WebsocketFailedToConnect", a2, `[WS]: ${e}`, `[WS]: ${e}`);
|
21518
21545
|
}, WebSocketConnectionLost(a2, e = "") {
|
21519
|
-
return new
|
21546
|
+
return new k(P4.WebSocketConnectionErrors.WEBSOCKET_CONNECTION_LOST, "WebSocketConnectionLost", a2, "Network connection lost", e);
|
21520
21547
|
}, AbnormalClose(a2, e = "") {
|
21521
|
-
return new
|
21548
|
+
return new k(P4.WebSocketConnectionErrors.ABNORMAL_CLOSE, "WebSocketAbnormalClose", a2, "Websocket closed abnormally", e);
|
21522
21549
|
} }, APIErrors: { ServerErrors(a2, e, t = "", i = true) {
|
21523
|
-
return new
|
21550
|
+
return new k(a2, "ServerErrors", e, `[${e}]: Server error ${t}`, t, i);
|
21524
21551
|
}, EndpointUnreachable(a2, e = "") {
|
21525
|
-
return new
|
21552
|
+
return new k(P4.APIErrors.ENDPOINT_UNREACHABLE, "EndpointUnreachable", a2, `Endpoint is not reachable - ${e}`, e);
|
21526
21553
|
}, InvalidTokenFormat(a2, e = "") {
|
21527
|
-
return new
|
21554
|
+
return new k(P4.APIErrors.INVALID_TOKEN_FORMAT, "InvalidTokenFormat", a2, `Token is not in proper JWT format - ${e}`, e, true);
|
21528
21555
|
}, InitConfigNotAvailable(a2, e = "") {
|
21529
|
-
return new
|
21556
|
+
return new k(P4.APIErrors.INIT_CONFIG_NOT_AVAILABLE, "InitError", a2, `[INIT]: ${e}`, `[INIT]: ${e}`);
|
21530
21557
|
} }, TracksErrors: { GenericTrack(a2, e = "") {
|
21531
|
-
return new
|
21558
|
+
return new $(P4.TracksErrors.GENERIC_TRACK, "GenericTrack", a2, `[TRACK]: ${e}`, `[TRACK]: ${e}`, "audio, video");
|
21532
21559
|
}, CantAccessCaptureDevice(a2, e, t = "") {
|
21533
|
-
return new
|
21560
|
+
return new $(P4.TracksErrors.CANT_ACCESS_CAPTURE_DEVICE, "CantAccessCaptureDevice", a2, `User denied permission to access capture device - ${e}`, t, e);
|
21534
21561
|
}, DeviceNotAvailable(a2, e, t = "") {
|
21535
|
-
return new
|
21562
|
+
return new $(P4.TracksErrors.DEVICE_NOT_AVAILABLE, "DeviceNotAvailable", a2, `[TRACK]: Capture device is no longer available - ${e}`, t, e);
|
21536
21563
|
}, DeviceInUse(a2, e, t = "") {
|
21537
|
-
return new
|
21564
|
+
return new $(P4.TracksErrors.DEVICE_IN_USE, "DeviceInUse", a2, `[TRACK]: Capture device is in use by another application - ${e}`, t, e);
|
21538
21565
|
}, DeviceLostMidway(a2, e, t = "") {
|
21539
|
-
return new
|
21566
|
+
return new $(P4.TracksErrors.DEVICE_LOST_MIDWAY, "DeviceLostMidway", a2, `Lost access to capture device midway - ${e}`, t, e);
|
21540
21567
|
}, NothingToReturn(a2, e = "", t = "There is no media to return. Please select either video or audio or both.") {
|
21541
|
-
return new
|
21568
|
+
return new $(P4.TracksErrors.NOTHING_TO_RETURN, "NothingToReturn", a2, t, e, "audio, video");
|
21542
21569
|
}, InvalidVideoSettings(a2, e = "") {
|
21543
|
-
return new
|
21570
|
+
return new $(P4.TracksErrors.INVALID_VIDEO_SETTINGS, "InvalidVideoSettings", a2, "Cannot enable simulcast when no video settings are provided", e, "video");
|
21544
21571
|
}, AutoplayBlocked(a2, e = "") {
|
21545
|
-
return new
|
21572
|
+
return new $(P4.TracksErrors.AUTOPLAY_ERROR, "AutoplayBlocked", a2, "Autoplay blocked because the user didn't interact with the document first", e, "audio");
|
21546
21573
|
}, CodecChangeNotPermitted(a2, e = "") {
|
21547
|
-
return new
|
21574
|
+
return new $(P4.TracksErrors.CODEC_CHANGE_NOT_PERMITTED, "CodecChangeNotPermitted", a2, "Codec can't be changed mid call.", e, "audio, video");
|
21548
21575
|
}, OverConstrained(a2, e, t = "") {
|
21549
|
-
return new
|
21576
|
+
return new $(P4.TracksErrors.OVER_CONSTRAINED, "OverConstrained", a2, `[TRACK]: Requested constraints cannot be satisfied with the device hardware - ${e}`, t, e);
|
21550
21577
|
}, NoAudioDetected(a2, e = "Please check the mic or use another audio input") {
|
21551
|
-
return new
|
21578
|
+
return new $(P4.TracksErrors.NO_AUDIO_DETECTED, "NoAudioDetected", a2, "No audio input detected from microphone", e, "audio");
|
21552
21579
|
}, SystemDeniedPermission(a2, e, t = "") {
|
21553
|
-
return new
|
21580
|
+
return new $(P4.TracksErrors.SYSTEM_DENIED_PERMISSION, "SystemDeniedPermission", a2, `Operating System denied permission to access capture device - ${e}`, t, e);
|
21554
21581
|
}, CurrentTabNotShared() {
|
21555
|
-
return new
|
21582
|
+
return new $(P4.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", "screen");
|
21556
21583
|
}, AudioPlaybackError(a2) {
|
21557
|
-
return new
|
21584
|
+
return new $(P4.TracksErrors.AUDIO_PLAYBACK_ERROR, "Audio playback error", "TRACK", a2, a2, "audio");
|
21558
21585
|
}, SelectedDeviceMissing(a2) {
|
21559
|
-
return new
|
21586
|
+
return new $(P4.TracksErrors.SELECTED_DEVICE_MISSING, "SelectedDeviceMissing", "TRACK", `Could not detect selected ${a2} device`, `Please check connection to the ${a2} device`, a2);
|
21560
21587
|
}, NoDataInTrack(a2) {
|
21561
|
-
return new
|
21588
|
+
return new $(P4.TracksErrors.NO_DATA, "Track does not have any data", "TRACK", a2, "This could possibily due to another application taking priority over the access to camera or microphone or due to an incoming call", "audio, video");
|
21562
21589
|
} }, WebrtcErrors: { CreateOfferFailed(a2, e = "") {
|
21563
|
-
return new
|
21590
|
+
return new k(P4.WebrtcErrors.CREATE_OFFER_FAILED, "CreateOfferFailed", a2, `[${a2.toString()}]: Failed to create offer. `, e);
|
21564
21591
|
}, CreateAnswerFailed(a2, e = "") {
|
21565
|
-
return new
|
21592
|
+
return new k(P4.WebrtcErrors.CREATE_ANSWER_FAILED, "CreateAnswerFailed", a2, `[${a2.toString()}]: Failed to create answer. `, e);
|
21566
21593
|
}, SetLocalDescriptionFailed(a2, e = "") {
|
21567
|
-
return new
|
21594
|
+
return new k(P4.WebrtcErrors.SET_LOCAL_DESCRIPTION_FAILED, "SetLocalDescriptionFailed", a2, `[${a2.toString()}]: Failed to set offer. `, e);
|
21568
21595
|
}, SetRemoteDescriptionFailed(a2, e = "") {
|
21569
|
-
return new
|
21596
|
+
return new k(P4.WebrtcErrors.SET_REMOTE_DESCRIPTION_FAILED, "SetRemoteDescriptionFailed", a2, `[${a2.toString()}]: Failed to set answer. `, e, true);
|
21570
21597
|
}, ICEFailure(a2, e = "", t = false) {
|
21571
|
-
return new
|
21598
|
+
return new k(P4.WebrtcErrors.ICE_FAILURE, "ICEFailure", a2, `[${a2.toString()}]: Ice connection state FAILED`, e, t);
|
21572
21599
|
}, ICEDisconnected(a2, e = "") {
|
21573
|
-
return new
|
21600
|
+
return new k(P4.WebrtcErrors.ICE_DISCONNECTED, "ICEDisconnected", a2, `[${a2.toString()}]: Ice connection state DISCONNECTED`, e);
|
21574
21601
|
}, StatsFailed(a2, e = "") {
|
21575
|
-
return new
|
21602
|
+
return new k(P4.WebrtcErrors.STATS_FAILED, "StatsFailed", a2, `Failed to WebRTC get stats - ${e}`, e);
|
21576
21603
|
} }, WebsocketMethodErrors: { ServerErrors(a2, e, t) {
|
21577
|
-
return new
|
21604
|
+
return new k(a2, "ServerErrors", e, t, t, go.includes(e));
|
21578
21605
|
}, AlreadyJoined(a2, e = "") {
|
21579
|
-
return new
|
21606
|
+
return new k(P4.WebsocketMethodErrors.ALREADY_JOINED, "AlreadyJoined", a2, "[JOIN]: You have already joined this room.", e);
|
21580
21607
|
}, CannotJoinPreviewInProgress(a2, e = "") {
|
21581
|
-
return new
|
21608
|
+
return new k(P4.WebsocketMethodErrors.CANNOT_JOIN_PREVIEW_IN_PROGRESS, "CannotJoinPreviewInProgress", a2, "[JOIN]: Cannot join if preview is in progress", e);
|
21582
21609
|
} }, GenericErrors: { NotConnected(a2, e = "") {
|
21583
|
-
return new
|
21610
|
+
return new k(P4.GenericErrors.NOT_CONNECTED, "NotConnected", a2, "Client is not connected", e);
|
21584
21611
|
}, Signalling(a2, e) {
|
21585
|
-
return new
|
21612
|
+
return new k(P4.GenericErrors.SIGNALLING, "Signalling", a2, `Unknown signalling error: ${a2.toString()} ${e} `, e);
|
21586
21613
|
}, Unknown(a2, e) {
|
21587
|
-
return new
|
21614
|
+
return new k(P4.GenericErrors.UNKNOWN, "Unknown", a2, `Unknown exception: ${e}`, e);
|
21588
21615
|
}, NotReady(a2, e = "") {
|
21589
|
-
return new
|
21616
|
+
return new k(P4.GenericErrors.NOT_READY, "NotReady", a2, e, e);
|
21590
21617
|
}, JsonParsingFailed(a2, e, t = "") {
|
21591
|
-
return new
|
21618
|
+
return new k(P4.GenericErrors.JSON_PARSING_FAILED, "JsonParsingFailed", a2, `Failed to parse JSON message - ${e}`, t);
|
21592
21619
|
}, TrackMetadataMissing(a2, e = "") {
|
21593
|
-
return new
|
21620
|
+
return new k(P4.GenericErrors.TRACK_METADATA_MISSING, "TrackMetadataMissing", a2, "Track Metadata Missing", e);
|
21594
21621
|
}, RTCTrackMissing(a2, e = "") {
|
21595
|
-
return new
|
21622
|
+
return new k(P4.GenericErrors.RTC_TRACK_MISSING, "RTCTrackMissing", a2, "RTC Track missing", e);
|
21596
21623
|
}, PeerMetadataMissing(a2, e = "") {
|
21597
|
-
return new
|
21624
|
+
return new k(P4.GenericErrors.PEER_METADATA_MISSING, "PeerMetadataMissing", a2, "Peer Metadata Missing", e);
|
21598
21625
|
}, ValidationFailed(a2, e) {
|
21599
|
-
return new
|
21626
|
+
return new k(P4.GenericErrors.VALIDATION_FAILED, "ValidationFailed", "VALIDATION", a2, e ? JSON.stringify(e) : "");
|
21600
21627
|
}, InvalidRole(a2, e) {
|
21601
|
-
return new
|
21628
|
+
return new k(P4.GenericErrors.INVALID_ROLE, "InvalidRole", a2, "Invalid role. Join with valid role", e, true);
|
21602
21629
|
}, PreviewAlreadyInProgress(a2, e = "") {
|
21603
|
-
return new
|
21630
|
+
return new k(P4.GenericErrors.PREVIEW_IN_PROGRESS, "PreviewAlreadyInProgress", a2, "[Preview]: Cannot join if preview is in progress", e);
|
21604
21631
|
}, LocalStorageAccessDenied(a2 = "Access to localStorage has been denied") {
|
21605
|
-
return new
|
21632
|
+
return new k(P4.GenericErrors.LOCAL_STORAGE_ACCESS_DENIED, "LocalStorageAccessDenied", "NONE", "LocalStorageAccessDenied", a2);
|
21606
21633
|
}, MissingMediaDevices() {
|
21607
|
-
return new
|
21634
|
+
return new k(P4.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);
|
21608
21635
|
}, MissingRTCPeerConnection() {
|
21609
|
-
return new
|
21636
|
+
return new k(P4.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);
|
21610
21637
|
} }, MediaPluginErrors: { PlatformNotSupported(a2, e = "") {
|
21611
|
-
return new
|
21638
|
+
return new k(7001, "PlatformNotSupported", a2, "Check HMS Docs to see the list of supported platforms", e);
|
21612
21639
|
}, InitFailed(a2, e = "") {
|
21613
|
-
return new
|
21640
|
+
return new k(7002, "InitFailed", a2, "Plugin init failed", e);
|
21614
21641
|
}, ProcessingFailed(a2, e = "") {
|
21615
|
-
return new
|
21642
|
+
return new k(7003, "ProcessingFailed", a2, "Plugin processing failed", e);
|
21616
21643
|
}, AddAlreadyInProgress(a2, e = "") {
|
21617
|
-
return new
|
21644
|
+
return new k(7004, "AddAlreadyInProgress", a2, "Plugin add already in progress", e);
|
21618
21645
|
}, DeviceNotSupported(a2, e = "") {
|
21619
|
-
return new
|
21646
|
+
return new k(7005, "DeviceNotSupported", a2, "Check HMS Docs to see the list of supported devices", e);
|
21620
21647
|
} }, PlaylistErrors: { NoEntryToPlay(a2, e) {
|
21621
|
-
return new
|
21648
|
+
return new k(P4.PlaylistErrors.NO_ENTRY_TO_PLAY, "NoEntryToPlay", a2, "Reached end of playlist", e);
|
21622
21649
|
}, NoEntryPlaying(a2, e) {
|
21623
|
-
return new
|
21650
|
+
return new k(P4.PlaylistErrors.NO_ENTRY_IS_PLAYING, "NoEntryIsPlaying", a2, "No entry is playing at this time", e);
|
21624
21651
|
} } };
|
21625
|
-
var
|
21652
|
+
var yr = class {
|
21626
21653
|
constructor() {
|
21627
21654
|
this.valuesMap = /* @__PURE__ */ new Map();
|
21628
21655
|
}
|
@@ -21647,21 +21674,21 @@ var Mr = class {
|
|
21647
21674
|
return this.valuesMap.size;
|
21648
21675
|
}
|
21649
21676
|
};
|
21650
|
-
var
|
21677
|
+
var Rs = () => {
|
21651
21678
|
try {
|
21652
|
-
B && !localStorage && (window.localStorage = new
|
21679
|
+
B && !localStorage && (window.localStorage = new yr());
|
21653
21680
|
} catch (a2) {
|
21654
21681
|
l.e("Error initialising localStorage", S.GenericErrors.LocalStorageAccessDenied());
|
21655
21682
|
}
|
21656
21683
|
};
|
21657
|
-
var
|
21684
|
+
var Se = class {
|
21658
21685
|
constructor(e) {
|
21659
21686
|
this.key = e;
|
21660
21687
|
this.storage = null;
|
21661
21688
|
}
|
21662
21689
|
getStorage() {
|
21663
21690
|
try {
|
21664
|
-
return B && !this.storage && (
|
21691
|
+
return B && !this.storage && (Rs(), this.storage = window.localStorage), this.storage;
|
21665
21692
|
} catch (e) {
|
21666
21693
|
return l.e("Error initialising localStorage", S.GenericErrors.LocalStorageAccessDenied()), null;
|
21667
21694
|
}
|
@@ -21681,37 +21708,37 @@ var me = class {
|
|
21681
21708
|
(e = this.getStorage()) == null || e.removeItem(this.key);
|
21682
21709
|
}
|
21683
21710
|
};
|
21684
|
-
var
|
21685
|
-
let a2, e = new
|
21711
|
+
var oi = () => {
|
21712
|
+
let a2, e = new Se("hms-analytics-deviceId"), t = e.get();
|
21686
21713
|
return t ? a2 = t : (a2 = (0, import_uuid4.v4)(), e.set(a2)), a2;
|
21687
21714
|
};
|
21688
|
-
function
|
21715
|
+
function le(a2) {
|
21689
21716
|
return a2 != null;
|
21690
21717
|
}
|
21691
|
-
var
|
21692
|
-
function
|
21693
|
-
let t = "web", i =
|
21694
|
-
if (
|
21695
|
-
return
|
21696
|
-
let r =
|
21697
|
-
return s.type && (p = `${
|
21718
|
+
var Ls = kr().version;
|
21719
|
+
function Mt(a2 = "prod", e) {
|
21720
|
+
let t = "web", i = ze !== "LOCAL" && a2 === "prod" ? "prod" : "debug";
|
21721
|
+
if (Ve)
|
21722
|
+
return Ds({ os: "web_nodejs", os_version: process.version, sdk: t, sdk_version: Ls, env: i, domain: ze, is_prebuilt: !!(e != null && e.isPrebuilt), framework: "node", framework_version: process.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
|
21723
|
+
let r = me.getOS(), s = me.getDevice(), o = me.getBrowser(), n = Er(`web_${r.name}`), d = r.version || "", u = Er(`${o.name}_${o.version}`), p = u;
|
21724
|
+
return s.type && (p = `${Er(`${s.vendor}_${s.type}`)}/${u}`), Ds({ os: n, os_version: d, sdk: t, sdk_version: Ls, device_model: p, env: i, domain: ze, 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 });
|
21698
21725
|
}
|
21699
|
-
function
|
21726
|
+
function Er(a2) {
|
21700
21727
|
return a2.replace(/ /g, "_");
|
21701
21728
|
}
|
21702
|
-
var
|
21729
|
+
var Ds = (a2, e = ",") => Object.keys(a2).filter((t) => le(a2[t])).map((t) => `${t}:${a2[t]}`).join(e);
|
21703
21730
|
var C = class {
|
21704
21731
|
constructor({ name: e, level: t, properties: i, includesPII: r, timestamp: s }) {
|
21705
|
-
this.metadata = { peer: {}, userAgent:
|
21706
|
-
this.name = e, this.level = t, this.includesPII = r || false, this.properties = i || {}, this.timestamp = s || (/* @__PURE__ */ new Date()).getTime(), this.event_id = (0, import_uuid3.v4)(), this.device_id =
|
21732
|
+
this.metadata = { peer: {}, userAgent: Mt() };
|
21733
|
+
this.name = e, this.level = t, this.includesPII = r || false, this.properties = i || {}, this.timestamp = s || (/* @__PURE__ */ new Date()).getTime(), this.event_id = (0, import_uuid3.v4)(), this.device_id = oi();
|
21707
21734
|
}
|
21708
21735
|
toSignalParams() {
|
21709
|
-
return { name: this.name, info:
|
21736
|
+
return { name: this.name, info: M(h({}, this.properties), { timestamp: this.timestamp, domain: ze }), timestamp: (/* @__PURE__ */ new Date()).getTime() };
|
21710
21737
|
}
|
21711
21738
|
};
|
21712
|
-
var
|
21739
|
+
var y = class {
|
21713
21740
|
static connect(e, t, i = /* @__PURE__ */ new Date(), r = /* @__PURE__ */ new Date(), s) {
|
21714
|
-
let o = this.eventNameFor("connect", e === void 0), n = e ? 2 : 1, d = this.getPropertiesWithError(
|
21741
|
+
let o = this.eventNameFor("connect", e === void 0), n = e ? 2 : 1, d = this.getPropertiesWithError(M(h({}, t), { [this.KEY_REQUESTED_AT]: i == null ? void 0 : i.getTime(), [this.KEY_RESPONDED_AT]: r == null ? void 0 : r.getTime(), endpoint: s }), e);
|
21715
21742
|
return new C({ name: o, level: n, properties: d });
|
21716
21743
|
}
|
21717
21744
|
static disconnect(e, t) {
|
@@ -21719,13 +21746,13 @@ var k = class {
|
|
21719
21746
|
return new C({ name: i, level: r, properties: s });
|
21720
21747
|
}
|
21721
21748
|
static preview(i) {
|
21722
|
-
var r = i, { error: e } = r, t =
|
21749
|
+
var r = i, { error: e } = r, t = Tr(r, ["error"]);
|
21723
21750
|
let s = this.eventNameFor("preview", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(t, e);
|
21724
21751
|
return new C({ name: s, level: o, properties: n });
|
21725
21752
|
}
|
21726
21753
|
static join(i) {
|
21727
|
-
var r = i, { error: e } = r, t =
|
21728
|
-
let s = this.eventNameFor("join", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(
|
21754
|
+
var r = i, { error: e } = r, t = Tr(r, ["error"]);
|
21755
|
+
let s = this.eventNameFor("join", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(M(h({}, t), { is_preview_called: !!t.is_preview_called }), e);
|
21729
21756
|
return new C({ name: s, level: o, properties: n });
|
21730
21757
|
}
|
21731
21758
|
static publish({ devices: e, settings: t, error: i }) {
|
@@ -21771,7 +21798,7 @@ var k = class {
|
|
21771
21798
|
let i = "video.degradation.stats", r = 1, s = { degradedAt: e.degradedAt, trackId: e.trackId };
|
21772
21799
|
if (!t && e.degradedAt instanceof Date) {
|
21773
21800
|
let o = /* @__PURE__ */ new Date(), n = o.valueOf() - e.degradedAt.valueOf();
|
21774
|
-
s =
|
21801
|
+
s = M(h({}, s), { duration: n, restoredAt: o });
|
21775
21802
|
}
|
21776
21803
|
return new C({ name: i, level: r, properties: s });
|
21777
21804
|
}
|
@@ -21798,23 +21825,23 @@ var k = class {
|
|
21798
21825
|
return new C({ name: "krisp.stop", level: 1 });
|
21799
21826
|
}
|
21800
21827
|
static interruption({ started: e, type: t, reason: i, deviceInfo: r }) {
|
21801
|
-
return new C({ name: `${e ? "interruption.start" : "interruption.stop"}`, level: 1, properties:
|
21828
|
+
return new C({ name: `${e ? "interruption.start" : "interruption.stop"}`, level: 1, properties: h({ reason: i, type: t }, r) });
|
21802
21829
|
}
|
21803
21830
|
static eventNameFor(e, t) {
|
21804
21831
|
return `${e}.${t ? "success" : "failed"}`;
|
21805
21832
|
}
|
21806
21833
|
static getPropertiesWithError(e, t) {
|
21807
21834
|
let i = this.getErrorProperties(t);
|
21808
|
-
return e =
|
21835
|
+
return e = h(h({}, i), e), e;
|
21809
21836
|
}
|
21810
21837
|
static getErrorProperties(e) {
|
21811
|
-
return e ? e instanceof
|
21838
|
+
return e ? e instanceof k ? e.toAnalyticsProperties() : { error_name: e.name, error_message: e.message, error_description: e.cause } : {};
|
21812
21839
|
}
|
21813
21840
|
};
|
21814
|
-
|
21815
|
-
var
|
21841
|
+
y.KEY_REQUESTED_AT = "requested_at", y.KEY_RESPONDED_AT = "responded_at";
|
21842
|
+
var Pr = class {
|
21816
21843
|
constructor() {
|
21817
|
-
this.storage = new
|
21844
|
+
this.storage = new Se("hms-device-selection");
|
21818
21845
|
this.remember = false;
|
21819
21846
|
this.TAG = "[HMSDeviceStorage]";
|
21820
21847
|
}
|
@@ -21846,11 +21873,11 @@ var Er = class {
|
|
21846
21873
|
return e.deviceId === t.deviceId && (e.groupId === t.groupId || !e.groupId);
|
21847
21874
|
}
|
21848
21875
|
};
|
21849
|
-
var
|
21850
|
-
var
|
21851
|
-
var
|
21852
|
-
var
|
21853
|
-
function
|
21876
|
+
var X = new Pr();
|
21877
|
+
var br = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(br || {});
|
21878
|
+
var Ar = ((t) => (t.PLATFORM_NOT_SUPPORTED = "PLATFORM_NOT_SUPPORTED", t.DEVICE_NOT_SUPPORTED = "DEVICE_NOT_SUPPORTED", t))(Ar || {});
|
21879
|
+
var Hr = ((r) => (r.SPEAKERPHONE = "SPEAKERPHONE", r.WIRED = "WIRED", r.BLUETOOTH = "BLUETOOTH", r.EARPIECE = "EARPIECE", r))(Hr || {});
|
21880
|
+
function di(a2, e = 300) {
|
21854
21881
|
let t;
|
21855
21882
|
return function(...i) {
|
21856
21883
|
clearTimeout(t), t = void 0;
|
@@ -21860,14 +21887,14 @@ function ci(a2, e = 300) {
|
|
21860
21887
|
}, e);
|
21861
21888
|
};
|
21862
21889
|
}
|
21863
|
-
var
|
21864
|
-
var
|
21865
|
-
var
|
21866
|
-
var
|
21867
|
-
var
|
21868
|
-
var
|
21869
|
-
var
|
21870
|
-
var
|
21890
|
+
var Lr = ((t) => (t.SIP = "sip", t.REGULAR = "regular", t))(Lr || {});
|
21891
|
+
var Os = ((n) => (n.NONE = "none", n.INITIALISED = "initialised", n.STARTED = "started", n.PAUSED = "paused", n.RESUMED = "resumed", n.STOPPED = "stopped", n.FAILED = "failed", n))(Os || {});
|
21892
|
+
var xs = ((t) => (t.DVR = "dvr", t.NO_DVR = "no-dvr", t))(xs || {});
|
21893
|
+
var Us = ((i) => (i.REGULAR = "regular", i.SCREEN = "screen", i.COMPOSITE = "composite", i))(Us || {});
|
21894
|
+
var Bs = ((r) => (r.INITIALISED = "initialised", r.STARTED = "started", r.STOPPED = "stopped", r.FAILED = "failed", r))(Bs || {});
|
21895
|
+
var Vs = ((e) => (e.CAPTION = "caption", e))(Vs || {});
|
21896
|
+
var Dr = ((t) => (t.VOICE = "voice", t.MUSIC = "music", t))(Dr || {});
|
21897
|
+
var Fs = ((i) => (i.videoInput = "videoInput", i.audioInput = "audioInput", i.audioOutput = "audioOutput", i))(Fs || {});
|
21871
21898
|
var wr = class {
|
21872
21899
|
constructor() {
|
21873
21900
|
this.TAG = "[HMSIntersectionObserverWrapper]";
|
@@ -21895,8 +21922,8 @@ var wr = class {
|
|
21895
21922
|
return e || l.w(this.TAG, "IntersectionObserver is not supported, fallback will be used instead"), e;
|
21896
21923
|
}
|
21897
21924
|
};
|
21898
|
-
var
|
21899
|
-
var
|
21925
|
+
var Ks = new wr();
|
21926
|
+
var _r = class {
|
21900
21927
|
constructor() {
|
21901
21928
|
this.TAG = "[HMSResizeObserverWrapper]";
|
21902
21929
|
this.listeners = /* @__PURE__ */ new WeakMap();
|
@@ -21909,7 +21936,7 @@ var Dr = class {
|
|
21909
21936
|
(t = this.resizeObserver) == null || t.unobserve(e), this.listeners.delete(e);
|
21910
21937
|
};
|
21911
21938
|
this.createObserver = () => {
|
21912
|
-
this.isSupported() && !this.resizeObserver && (this.resizeObserver = new ResizeObserver(
|
21939
|
+
this.isSupported() && !this.resizeObserver && (this.resizeObserver = new ResizeObserver(di(this.handleResize, 300)));
|
21913
21940
|
};
|
21914
21941
|
this.handleResize = (e) => {
|
21915
21942
|
var t;
|
@@ -21923,43 +21950,43 @@ var Dr = class {
|
|
21923
21950
|
return e || l.w(this.TAG, "Resize Observer is not supported"), e;
|
21924
21951
|
}
|
21925
21952
|
};
|
21926
|
-
var
|
21927
|
-
var
|
21928
|
-
var
|
21929
|
-
var
|
21930
|
-
var
|
21931
|
-
var
|
21932
|
-
var
|
21953
|
+
var qs = new _r();
|
21954
|
+
var Nr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(Nr || {});
|
21955
|
+
var Or = ((t) => (t["2D"] = "2d", t.WEBGL = "webgl", t.WEBGL2 = "webgl2", t))(Or || {});
|
21956
|
+
var Qs = "https://event.100ms.live/v2/client/report";
|
21957
|
+
var zs = "https://event-nonprod.100ms.live/v2/client/report";
|
21958
|
+
var bt = Math.pow(2, 31) - 1;
|
21959
|
+
var st = class {
|
21933
21960
|
};
|
21934
|
-
|
21961
|
+
st.makePeerId = () => (0, import_uuid7.v4)();
|
21935
21962
|
var F = (a2) => a2.room;
|
21936
|
-
var
|
21937
|
-
var
|
21938
|
-
var
|
21939
|
-
var
|
21940
|
-
var
|
21941
|
-
var
|
21963
|
+
var Uo = (a2) => a2.errors;
|
21964
|
+
var dm = createSelector(Uo, (a2) => a2.length === 0 ? null : a2.at(-1));
|
21965
|
+
var lm = createSelector(F, (a2) => a2.id);
|
21966
|
+
var z = (a2) => a2.peers;
|
21967
|
+
var yi = (a2) => a2.messages.byID;
|
21968
|
+
var aa = (a2) => a2.messages.allIDs;
|
21942
21969
|
var O = (a2) => a2.tracks;
|
21943
|
-
var
|
21944
|
-
var
|
21945
|
-
var
|
21946
|
-
var
|
21947
|
-
var
|
21948
|
-
var
|
21949
|
-
var
|
21950
|
-
var
|
21951
|
-
var
|
21952
|
-
var
|
21953
|
-
var
|
21954
|
-
var
|
21955
|
-
var
|
21956
|
-
var
|
21957
|
-
var
|
21970
|
+
var Kr = (a2) => a2.appData;
|
21971
|
+
var Bo = (a2) => a2.speakers;
|
21972
|
+
var xe = createSelector([F], (a2) => a2 && a2.isConnected);
|
21973
|
+
var hm = createSelector([xe, F], (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));
|
21974
|
+
var Vo = (a2) => a2.hideLocalPeer;
|
21975
|
+
var ve = createSelector([F, z, Vo], (a2, e, t) => t ? a2.peers.filter((i) => a2.localPeer !== i).map((i) => e[i]) : a2.peers.map((i) => e[i]));
|
21976
|
+
var Fo = createSelector(O, (a2) => Object.values(a2));
|
21977
|
+
var re = createSelector(F, z, (a2, e) => e[a2.localPeer]);
|
21978
|
+
var Pe = createSelector(F, (a2) => a2.localPeer);
|
21979
|
+
var mm = createSelector(re, (a2) => a2 == null ? void 0 : a2.name);
|
21980
|
+
var Sm = createSelector(re, (a2) => a2 == null ? void 0 : a2.roleName);
|
21981
|
+
var ce = createSelector(re, (a2) => a2 == null ? void 0 : a2.audioTrack);
|
21982
|
+
var Z = createSelector(re, (a2) => a2 == null ? void 0 : a2.videoTrack);
|
21983
|
+
var Go = createSelector(re, (a2) => a2 == null ? void 0 : a2.auxiliaryTracks);
|
21984
|
+
var na = createSelector([ce, Z, Go], (a2, e, t) => {
|
21958
21985
|
let i = t ? [...t] : [];
|
21959
21986
|
return a2 && i.unshift(a2), e && i.unshift(e), i;
|
21960
21987
|
});
|
21961
|
-
var
|
21962
|
-
var
|
21988
|
+
var gm = createSelector(ve, (a2) => a2.filter((e) => !e.isLocal));
|
21989
|
+
var Tm = createSelector(z, Bo, (a2, e) => {
|
21963
21990
|
let t = Object.entries(e).sort((i, r) => {
|
21964
21991
|
var n, d;
|
21965
21992
|
let s = ((n = i[1]) == null ? void 0 : n.audioLevel) || 0;
|
@@ -21972,112 +21999,112 @@ var um = createSelector(Q, Uo, (a2, e) => {
|
|
21972
21999
|
}
|
21973
22000
|
return null;
|
21974
22001
|
});
|
21975
|
-
var
|
21976
|
-
let { video: t, audio: i } =
|
22002
|
+
var jr = createSelector(re, O, (a2, e) => {
|
22003
|
+
let { video: t, audio: i } = Be(e, a2);
|
21977
22004
|
return !!(t || i);
|
21978
22005
|
});
|
21979
|
-
var
|
22006
|
+
var Wo = createSelector(z, O, (a2, e) => {
|
21980
22007
|
let t;
|
21981
22008
|
for (let i in a2) {
|
21982
|
-
let r = a2[i], { video: s, audio: o } =
|
22009
|
+
let r = a2[i], { video: s, audio: o } = Be(e, r);
|
21983
22010
|
if (s)
|
21984
22011
|
return r;
|
21985
22012
|
o && !t && (t = r);
|
21986
22013
|
}
|
21987
22014
|
return t;
|
21988
22015
|
});
|
21989
|
-
var
|
21990
|
-
var
|
22016
|
+
var vm = createSelector(Wo, (a2) => !!a2);
|
22017
|
+
var Mm = createSelector(z, O, (a2, e) => {
|
21991
22018
|
for (let t in a2) {
|
21992
|
-
let i = a2[t], { audio: r, video: s } =
|
22019
|
+
let i = a2[t], { audio: r, video: s } = Be(e, i);
|
21993
22020
|
if (!s && r)
|
21994
22021
|
return i;
|
21995
22022
|
}
|
21996
22023
|
});
|
21997
|
-
var
|
22024
|
+
var ym = createSelector(z, O, (a2, e) => {
|
21998
22025
|
let t = [], i = [];
|
21999
22026
|
for (let r in a2) {
|
22000
|
-
let s = a2[r], { video: o, audio: n } =
|
22027
|
+
let s = a2[r], { video: o, audio: n } = Be(e, s);
|
22001
22028
|
o ? t.push(s) : n && i.push(s);
|
22002
22029
|
}
|
22003
22030
|
return t.concat(i);
|
22004
22031
|
});
|
22005
|
-
var
|
22032
|
+
var km = createSelector(z, O, (a2, e) => {
|
22006
22033
|
for (let t in e) {
|
22007
22034
|
let i = e[t];
|
22008
|
-
if (
|
22035
|
+
if (St(i) && mt(i) && i.peerId)
|
22009
22036
|
return a2[i.peerId];
|
22010
22037
|
}
|
22011
22038
|
});
|
22012
|
-
var
|
22039
|
+
var Em = createSelector(z, O, (a2, e) => {
|
22013
22040
|
for (let t in e) {
|
22014
22041
|
let i = e[t];
|
22015
|
-
if (
|
22042
|
+
if (ai(i) && i.peerId)
|
22016
22043
|
return a2[i.peerId];
|
22017
22044
|
}
|
22018
22045
|
});
|
22019
|
-
var
|
22020
|
-
var
|
22021
|
-
var
|
22022
|
-
var
|
22046
|
+
var Pm = createSelector(Fo, (a2) => a2.filter(ms));
|
22047
|
+
var bm = createSelector(aa, (a2) => a2.length);
|
22048
|
+
var Am = createSelector(yi, (a2) => Object.values(a2).filter((e) => !e.read).length);
|
22049
|
+
var Ht = createSelector(aa, yi, (a2, e) => {
|
22023
22050
|
let t = [];
|
22024
22051
|
return a2.forEach((i) => {
|
22025
22052
|
t.push(e[i]);
|
22026
22053
|
}), t;
|
22027
22054
|
});
|
22028
|
-
var
|
22055
|
+
var $o = createSelector(Ht, (a2) => a2.filter((e) => {
|
22029
22056
|
var t;
|
22030
22057
|
return !e.recipientPeer && !(e.recipientRoles && ((t = e.recipientRoles) == null ? void 0 : t.length) > 0);
|
22031
22058
|
}));
|
22032
|
-
var
|
22033
|
-
var
|
22034
|
-
var
|
22035
|
-
var
|
22036
|
-
var
|
22037
|
-
var
|
22038
|
-
var
|
22039
|
-
var
|
22040
|
-
var
|
22059
|
+
var Im = createSelector($o, (a2) => a2.filter((e) => !e.read).length);
|
22060
|
+
var se = createSelector([F], (a2) => a2 && a2.roomState);
|
22061
|
+
var da = createSelector(se, (a2) => a2 === "Preview");
|
22062
|
+
var Rm = createSelector(F, (a2) => a2.roomState !== "Disconnected");
|
22063
|
+
var Hm = createSelector(F, (a2) => !a2.transcriptions || a2.transcriptions.length <= 0 ? false : a2.transcriptions.some((e) => e.mode === "caption" && e.state === "started"));
|
22064
|
+
var Me = (a2) => a2.roles;
|
22065
|
+
var Cm = createSelector([Me], (a2) => Object.keys(a2));
|
22066
|
+
var ot = createSelector([re, Me], (a2, e) => a2 != null && a2.roleName ? e[a2.roleName] : null);
|
22067
|
+
var Ko = (a2) => {
|
22041
22068
|
var e;
|
22042
22069
|
return (e = a2.preview) == null ? void 0 : e.asRole;
|
22043
22070
|
};
|
22044
|
-
var
|
22045
|
-
var
|
22071
|
+
var la = createSelector([Ko, Me], (a2, e) => a2 ? e[a2] : null);
|
22072
|
+
var Lm = createSelector([ot], (a2) => {
|
22046
22073
|
var e;
|
22047
22074
|
return (e = a2 == null ? void 0 : a2.subscribeParams) != null && e.subscribeToRoles ? a2.subscribeParams.subscribeToRoles.length > 0 : false;
|
22048
22075
|
});
|
22049
|
-
var
|
22050
|
-
var
|
22051
|
-
var
|
22052
|
-
var
|
22053
|
-
var
|
22054
|
-
var
|
22055
|
-
var
|
22056
|
-
var
|
22057
|
-
var
|
22058
|
-
var
|
22059
|
-
var
|
22060
|
-
var
|
22061
|
-
var
|
22062
|
-
var
|
22063
|
-
var
|
22064
|
-
var
|
22065
|
-
var
|
22066
|
-
var
|
22067
|
-
var
|
22068
|
-
var
|
22069
|
-
var
|
22070
|
-
var
|
22071
|
-
var
|
22076
|
+
var ua = createSelector(ot, (a2) => a2 == null ? void 0 : a2.permissions);
|
22077
|
+
var Dm = createSelector(F, (a2) => a2.recording);
|
22078
|
+
var wm = createSelector(F, (a2) => a2.rtmp);
|
22079
|
+
var _m = createSelector(F, (a2) => a2.hls);
|
22080
|
+
var Nm = createSelector(F, (a2) => a2.transcriptions);
|
22081
|
+
var Om = createSelector(F, (a2) => a2.sessionId);
|
22082
|
+
var xm = createSelector(F, (a2) => a2.startedAt);
|
22083
|
+
var Um = createSelector(F, (a2) => !!a2.isLargeRoom);
|
22084
|
+
var Bm = createSelector(F, (a2) => !!a2.isEffectsEnabled);
|
22085
|
+
var Vm = createSelector(F, (a2) => !!a2.isVBEnabled);
|
22086
|
+
var Fm = createSelector(F, (a2) => a2.effectsKey);
|
22087
|
+
var pa = (a2) => a2.polls;
|
22088
|
+
var Km = createSelector(ve, (a2) => a2.filter((e) => e.isHandRaised));
|
22089
|
+
var qo = (a2) => a2.whiteboards;
|
22090
|
+
var qm = createSelector(qo, (a2) => Object.values(a2)[0]);
|
22091
|
+
var ma = (a2 = "audio") => (e) => e.playlist[a2].list;
|
22092
|
+
var Jr = (a2 = "audio") => (e) => e.playlist[a2].selection;
|
22093
|
+
var Sa = (a2 = "audio") => (e) => e.playlist[a2].progress;
|
22094
|
+
var ga = (a2 = "audio") => (e) => e.playlist[a2].currentTime;
|
22095
|
+
var Ta = (a2 = "audio") => (e) => e.playlist[a2].playbackRate;
|
22096
|
+
var fa = (a2 = "audio") => (e) => e.playlist[a2].volume;
|
22097
|
+
var va = (a2 = "audio") => createSelector(ma(a2), (e) => Object.values(e));
|
22098
|
+
var Ma = (a2 = "audio") => createSelector(ma(a2), Jr(a2), (e, t) => {
|
22072
22099
|
if (t.id)
|
22073
22100
|
return e[t.id];
|
22074
22101
|
});
|
22075
|
-
var
|
22076
|
-
var
|
22102
|
+
var ya = { selection: Jr("audio"), progress: Sa("audio"), currentTime: ga("audio"), playbackRate: Ta("audio"), volume: fa("audio"), list: va("audio"), selectedItem: Ma("audio") };
|
22103
|
+
var ka = { selection: Jr("video"), progress: Sa("video"), currentTime: ga("video"), playbackRate: Ta("video"), volume: fa("video"), list: va("video"), selectedItem: Ma("video") };
|
22077
22104
|
function H(a2) {
|
22078
22105
|
return (e) => (t) => a2(t, e);
|
22079
22106
|
}
|
22080
|
-
var
|
22107
|
+
var Ct = "HMS-Store:";
|
22081
22108
|
var b = class {
|
22082
22109
|
static v(e, ...t) {
|
22083
22110
|
this.log(0, e, ...t);
|
@@ -22107,23 +22134,23 @@ var b = class {
|
|
22107
22134
|
if (!(this.level.valueOf() > e.valueOf()))
|
22108
22135
|
switch (e) {
|
22109
22136
|
case 0: {
|
22110
|
-
console.log(
|
22137
|
+
console.log(Ct, ...t);
|
22111
22138
|
break;
|
22112
22139
|
}
|
22113
22140
|
case 1: {
|
22114
|
-
console.debug(
|
22141
|
+
console.debug(Ct, ...t);
|
22115
22142
|
break;
|
22116
22143
|
}
|
22117
22144
|
case 2: {
|
22118
|
-
console.info(
|
22145
|
+
console.info(Ct, ...t);
|
22119
22146
|
break;
|
22120
22147
|
}
|
22121
22148
|
case 3: {
|
22122
|
-
console.warn(
|
22149
|
+
console.warn(Ct, ...t);
|
22123
22150
|
break;
|
22124
22151
|
}
|
22125
22152
|
case 6: {
|
22126
|
-
console.error(
|
22153
|
+
console.error(Ct, ...t);
|
22127
22154
|
break;
|
22128
22155
|
}
|
22129
22156
|
case 4: {
|
@@ -22144,133 +22171,133 @@ var b = class {
|
|
22144
22171
|
}
|
22145
22172
|
};
|
22146
22173
|
b.level = 0;
|
22147
|
-
var
|
22148
|
-
var
|
22149
|
-
var
|
22150
|
-
var qo = (a2, e) => e;
|
22174
|
+
var Qr = (a2, e) => e;
|
22175
|
+
var Lt = (a2, e) => e;
|
22176
|
+
var Ea = (a2, e) => e;
|
22151
22177
|
var jo = (a2, e) => e;
|
22152
|
-
var
|
22153
|
-
var
|
22154
|
-
var
|
22178
|
+
var Jo = (a2, e) => e;
|
22179
|
+
var Y = createSelector([z, Qr], (a2, e) => e ? a2[e] : null);
|
22180
|
+
var zr = createSelector([O, Lt], (a2, e) => e ? a2[e] : null);
|
22181
|
+
var Qo = createSelector([O, Lt], (a2, e) => {
|
22155
22182
|
if (!e)
|
22156
22183
|
return null;
|
22157
22184
|
let t = a2[e];
|
22158
22185
|
return (t == null ? void 0 : t.type) === "video" ? t : null;
|
22159
22186
|
});
|
22160
|
-
var
|
22187
|
+
var zo = createSelector([O, Lt], (a2, e) => {
|
22161
22188
|
if (!e)
|
22162
22189
|
return null;
|
22163
22190
|
let t = a2[e];
|
22164
22191
|
return (t == null ? void 0 : t.type) === "audio" ? t : null;
|
22165
22192
|
});
|
22166
|
-
var
|
22193
|
+
var Yo = createSelector([O, Lt], (a2, e) => {
|
22167
22194
|
if (!e)
|
22168
22195
|
return null;
|
22169
22196
|
let t = a2[e];
|
22170
22197
|
return (t == null ? void 0 : t.type) === "audio" && (t == null ? void 0 : t.source) === "screen" ? t : null;
|
22171
22198
|
});
|
22172
|
-
var
|
22199
|
+
var Xo = createSelector([O, Lt], (a2, e) => {
|
22173
22200
|
if (!e)
|
22174
22201
|
return null;
|
22175
22202
|
let t = a2[e];
|
22176
22203
|
return (t == null ? void 0 : t.type) === "video" && (t == null ? void 0 : t.source) === "screen" ? t : null;
|
22177
22204
|
});
|
22178
|
-
var
|
22179
|
-
var
|
22180
|
-
var
|
22205
|
+
var Zo = createSelector([pa, Jo], (a2, e) => e ? a2[e] : null);
|
22206
|
+
var ee = H(Y);
|
22207
|
+
var rS = H(createSelector([Kr, jo], (a2, e) => {
|
22181
22208
|
if (a2)
|
22182
22209
|
return e ? a2[e] : a2;
|
22183
22210
|
}));
|
22184
|
-
function
|
22211
|
+
function sS(a2) {
|
22185
22212
|
return (e) => {
|
22186
22213
|
if (e.sessionStore)
|
22187
22214
|
return a2 ? e.sessionStore[a2] : e.sessionStore;
|
22188
22215
|
};
|
22189
22216
|
}
|
22190
|
-
var
|
22191
|
-
var
|
22192
|
-
var
|
22193
|
-
var
|
22194
|
-
var
|
22195
|
-
var
|
22196
|
-
var
|
22197
|
-
var
|
22198
|
-
let t =
|
22217
|
+
var oS = H(createSelector(Y, (a2) => a2 == null ? void 0 : a2.name));
|
22218
|
+
var nS = H(createSelector(Y, (a2) => a2 == null ? void 0 : a2.type));
|
22219
|
+
var ki = H(zr);
|
22220
|
+
var Pa = H(Qo);
|
22221
|
+
var cS = H(zo);
|
22222
|
+
var dS = H(Yo);
|
22223
|
+
var lS = H(Xo);
|
22224
|
+
var en = H((a2, e) => {
|
22225
|
+
let t = Y(a2, e);
|
22199
22226
|
if (t && t.videoTrack && t.videoTrack !== "")
|
22200
22227
|
return a2.tracks[t.videoTrack];
|
22201
22228
|
});
|
22202
|
-
var
|
22203
|
-
let t =
|
22229
|
+
var tn = H((a2, e) => {
|
22230
|
+
let t = Y(a2, e);
|
22204
22231
|
if (t && t.audioTrack && t.audioTrack !== "")
|
22205
22232
|
return a2.tracks[t.audioTrack];
|
22206
22233
|
});
|
22207
|
-
var
|
22208
|
-
let t =
|
22234
|
+
var pS = H((a2, e) => {
|
22235
|
+
let t = Y(a2, e);
|
22209
22236
|
return (t == null ? void 0 : t.auxiliaryTracks.map((i) => a2.tracks[i])) || [];
|
22210
22237
|
});
|
22211
|
-
var
|
22212
|
-
var
|
22213
|
-
var
|
22214
|
-
let t =
|
22215
|
-
return
|
22216
|
-
};
|
22217
|
-
var
|
22218
|
-
var
|
22238
|
+
var ba = (a2, e) => e ? a2.speakers[e] : null;
|
22239
|
+
var hS = H(createSelector(ba, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
|
22240
|
+
var rn = (a2, e) => {
|
22241
|
+
let t = tn(e)(a2);
|
22242
|
+
return ba(a2, t == null ? void 0 : t.id);
|
22243
|
+
};
|
22244
|
+
var mS = H(createSelector(rn, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
|
22245
|
+
var SS = H((a2, e) => {
|
22219
22246
|
if (e)
|
22220
22247
|
return a2.connectionQualities[e];
|
22221
22248
|
});
|
22222
|
-
var
|
22223
|
-
let t =
|
22249
|
+
var gS = H((a2, e) => {
|
22250
|
+
let t = Y(a2, e);
|
22224
22251
|
if (t) {
|
22225
|
-
let i = t == null ? void 0 : t.auxiliaryTracks.find((r) =>
|
22252
|
+
let i = t == null ? void 0 : t.auxiliaryTracks.find((r) => ht(a2.tracks[r]));
|
22226
22253
|
return i ? a2.tracks[i] : void 0;
|
22227
22254
|
}
|
22228
22255
|
});
|
22229
|
-
var
|
22256
|
+
var TS = H(createSelector(O, Y, (a2, e) => {
|
22230
22257
|
let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
|
22231
22258
|
let r = a2[i];
|
22232
|
-
return
|
22259
|
+
return St(r) && mt(r);
|
22233
22260
|
});
|
22234
22261
|
return t ? a2[t] : void 0;
|
22235
22262
|
}));
|
22236
|
-
var
|
22263
|
+
var fS = H(createSelector(O, Y, (a2, e) => {
|
22237
22264
|
let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
|
22238
22265
|
let r = a2[i];
|
22239
|
-
return
|
22266
|
+
return St(r) && ht(r);
|
22240
22267
|
});
|
22241
22268
|
return t ? a2[t] : void 0;
|
22242
22269
|
}));
|
22243
|
-
var
|
22270
|
+
var vS = H(createSelector(O, Y, (a2, e) => {
|
22244
22271
|
let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
|
22245
22272
|
let r = a2[i];
|
22246
|
-
return
|
22273
|
+
return ai(r) && ht(r);
|
22247
22274
|
});
|
22248
22275
|
return t ? a2[t] : void 0;
|
22249
22276
|
}));
|
22250
|
-
var
|
22251
|
-
var
|
22252
|
-
var
|
22253
|
-
let t =
|
22254
|
-
return
|
22277
|
+
var Aa = H(createSelector(O, Y, (a2, e) => Be(a2, e)));
|
22278
|
+
var Ia = (a2) => createSelector(Aa(a2), (e) => e.audio);
|
22279
|
+
var yS = H((a2, e) => {
|
22280
|
+
let t = Y(a2, e);
|
22281
|
+
return Je(a2, t == null ? void 0 : t.audioTrack);
|
22255
22282
|
});
|
22256
|
-
var
|
22257
|
-
let t =
|
22258
|
-
return
|
22283
|
+
var kS = H((a2, e) => {
|
22284
|
+
let t = Y(a2, e);
|
22285
|
+
return Je(a2, t == null ? void 0 : t.videoTrack);
|
22259
22286
|
});
|
22260
|
-
var
|
22287
|
+
var Ra = H((a2, e) => {
|
22261
22288
|
if (e && a2.tracks[e])
|
22262
22289
|
return a2.tracks[e].volume === 0;
|
22263
22290
|
});
|
22264
|
-
var
|
22265
|
-
let t =
|
22266
|
-
return
|
22291
|
+
var ES = H((a2, e) => {
|
22292
|
+
let t = Y(a2, e);
|
22293
|
+
return Ra(t == null ? void 0 : t.audioTrack)(a2);
|
22267
22294
|
});
|
22268
|
-
var
|
22269
|
-
let t =
|
22270
|
-
return
|
22295
|
+
var PS = H((a2, e) => {
|
22296
|
+
let t = Ia(e)(a2);
|
22297
|
+
return Ra(t == null ? void 0 : t.id)(a2);
|
22271
22298
|
});
|
22272
|
-
var
|
22273
|
-
let t =
|
22299
|
+
var Ha = H((a2, e) => {
|
22300
|
+
let t = zr(a2, e);
|
22274
22301
|
if (t) {
|
22275
22302
|
if (t.type !== "audio") {
|
22276
22303
|
b.w("Please pass audio track here");
|
@@ -22279,16 +22306,16 @@ var Ia = H((a2, e) => {
|
|
22279
22306
|
return t.volume;
|
22280
22307
|
}
|
22281
22308
|
});
|
22282
|
-
var
|
22283
|
-
let t =
|
22284
|
-
return
|
22309
|
+
var bS = H((a2, e) => {
|
22310
|
+
let t = Y(a2, e);
|
22311
|
+
return Ha(t == null ? void 0 : t.audioTrack)(a2);
|
22285
22312
|
});
|
22286
|
-
var
|
22287
|
-
let t =
|
22288
|
-
return
|
22313
|
+
var AS = H((a2, e) => {
|
22314
|
+
let t = Ia(e)(a2);
|
22315
|
+
return Ha(t == null ? void 0 : t.id)(a2);
|
22289
22316
|
});
|
22290
|
-
var
|
22291
|
-
let t =
|
22317
|
+
var IS = H((a2, e) => {
|
22318
|
+
let t = zr(a2, e);
|
22292
22319
|
if (t) {
|
22293
22320
|
if (t.type !== "video") {
|
22294
22321
|
b.w("Please pass video track here");
|
@@ -22297,53 +22324,53 @@ var yS = H((a2, e) => {
|
|
22297
22324
|
return t.layer;
|
22298
22325
|
}
|
22299
22326
|
});
|
22300
|
-
var
|
22327
|
+
var Ca = createSelector([Ht, Pe, Qr], (a2, e, t) => {
|
22301
22328
|
if (t)
|
22302
22329
|
return a2.filter((i) => {
|
22303
22330
|
var r;
|
22304
22331
|
return !i.recipientPeer && !((r = i.recipientRoles) != null && r.length) || i.sender && ![e, t].includes(i.sender) ? false : [e, t].includes(i.recipientPeer);
|
22305
22332
|
});
|
22306
22333
|
});
|
22307
|
-
var
|
22334
|
+
var La = createSelector([Ht, Ea], (a2, e) => {
|
22308
22335
|
if (e)
|
22309
22336
|
return a2.filter((t) => {
|
22310
22337
|
var i, r;
|
22311
22338
|
return (i = t.recipientRoles) != null && i.length ? (r = t.recipientRoles) == null ? void 0 : r.includes(e) : false;
|
22312
22339
|
});
|
22313
22340
|
});
|
22314
|
-
var
|
22341
|
+
var sn = createSelector(Ht, (a2) => a2.filter((e) => {
|
22315
22342
|
var t;
|
22316
22343
|
return !e.recipientPeer && !((t = e.recipientRoles) != null && t.length);
|
22317
22344
|
}));
|
22318
|
-
var
|
22319
|
-
var
|
22320
|
-
var
|
22321
|
-
var
|
22322
|
-
var
|
22323
|
-
var
|
22324
|
-
var
|
22325
|
-
var
|
22326
|
-
var
|
22345
|
+
var an = createSelector([La, Ea], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
|
22346
|
+
var on = createSelector([Ca, Qr], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
|
22347
|
+
var RS = createSelector(sn, (a2) => a2.filter((e) => !e.read).length);
|
22348
|
+
var HS = H(Ca);
|
22349
|
+
var CS = H(La);
|
22350
|
+
var LS = H(an);
|
22351
|
+
var DS = H(on);
|
22352
|
+
var Da = H(Zo);
|
22353
|
+
var $S = createSelector([z, O], (a2, e) => Object.values(a2).map((i) => {
|
22327
22354
|
var r;
|
22328
22355
|
return { peer: i, isAudioEnabled: i.audioTrack ? (r = e[i.audioTrack]) == null ? void 0 : r.enabled : false };
|
22329
22356
|
}));
|
22330
|
-
var
|
22331
|
-
var
|
22332
|
-
var
|
22333
|
-
var
|
22334
|
-
var
|
22357
|
+
var nn = (a2) => a2.roleChangeRequests[0] || null;
|
22358
|
+
var KS = createSelector([nn, z, Me], (a2, e, t) => a2 ? { requestedBy: a2.requestedBy ? e[a2.requestedBy] : void 0, role: t[a2.roleName], token: a2.token } : null);
|
22359
|
+
var qS = createSelector([ot], (a2) => gt(a2));
|
22360
|
+
var jS = createSelector([la], (a2) => gt(a2));
|
22361
|
+
var dn = createSelector([Z, O], (a2, e) => {
|
22335
22362
|
let t = null;
|
22336
22363
|
return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
|
22337
22364
|
});
|
22338
|
-
var
|
22365
|
+
var ln = createSelector([ce, O], (a2, e) => {
|
22339
22366
|
let t = null;
|
22340
22367
|
return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
|
22341
22368
|
});
|
22342
|
-
var
|
22343
|
-
var
|
22369
|
+
var hn = ((n) => (n[n.STARTING = 0] = "STARTING", n[n.INIT_FETCHED = 1] = "INIT_FETCHED", n[n.SIGNAL_CONNECTED = 2] = "SIGNAL_CONNECTED", n[n.ICE_ESTABLISHED = 3] = "ICE_ESTABLISHED", n[n.MEDIA_CAPTURED = 4] = "MEDIA_CAPTURED", n[n.MEDIA_PUBLISHED = 5] = "MEDIA_PUBLISHED", n[n.COMPLETED = 6] = "COMPLETED", n))(hn || {});
|
22370
|
+
var ts = class {
|
22344
22371
|
constructor() {
|
22345
22372
|
this.TAG = "[HTTPAnalyticsTransport]";
|
22346
|
-
this.failedEvents = new
|
22373
|
+
this.failedEvents = new Se("client-events");
|
22347
22374
|
this.isConnected = true;
|
22348
22375
|
this.env = null;
|
22349
22376
|
this.websocketURL = "";
|
@@ -22359,7 +22386,7 @@ var es = class {
|
|
22359
22386
|
this.addEventToStorage(e);
|
22360
22387
|
return;
|
22361
22388
|
}
|
22362
|
-
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" ?
|
22389
|
+
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" ? Qs : zs;
|
22363
22390
|
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) => {
|
22364
22391
|
if (r.status === 401) {
|
22365
22392
|
this.removeFromStorage(e);
|
@@ -22385,8 +22412,8 @@ var es = class {
|
|
22385
22412
|
i > -1 && (t.splice(i, 1), this.failedEvents.set(t));
|
22386
22413
|
}
|
22387
22414
|
};
|
22388
|
-
var
|
22389
|
-
var
|
22415
|
+
var Ae = new ts();
|
22416
|
+
var Ft = class {
|
22390
22417
|
static handleError(e) {
|
22391
22418
|
if (e.status === 404)
|
22392
22419
|
throw S.APIErrors.EndpointUnreachable("FEEDBACK", e.statusText);
|
@@ -22396,14 +22423,14 @@ var Vt = class {
|
|
22396
22423
|
static sendFeedback(s) {
|
22397
22424
|
return c(this, arguments, function* ({ token: e, eventEndpoint: t = "https://event.100ms.live", info: i, feedback: r }) {
|
22398
22425
|
l.d(this.TAG, `sendFeedback: feedbackEndpoint=${t} peerId=${i.peer.peer_id} session=${i.peer.session_id} `);
|
22399
|
-
let o = new URL("v2/client/feedback", t), n =
|
22426
|
+
let o = new URL("v2/client/feedback", t), n = M(h({}, i), { payload: r });
|
22400
22427
|
try {
|
22401
22428
|
let d = yield fetch(o, { headers: { Authorization: `Bearer ${e}` }, body: JSON.stringify(n), method: "POST" });
|
22402
22429
|
try {
|
22403
22430
|
this.handleError(d);
|
22404
22431
|
return;
|
22405
22432
|
} catch (u) {
|
22406
|
-
throw l.e(this.TAG, "error", u.message, d.status), u instanceof
|
22433
|
+
throw l.e(this.TAG, "error", u.message, d.status), u instanceof k ? u : S.APIErrors.ServerErrors(d.status, "FEEDBACK", u.message);
|
22407
22434
|
}
|
22408
22435
|
} catch (d) {
|
22409
22436
|
let u = d;
|
@@ -22412,67 +22439,67 @@ var Vt = class {
|
|
22412
22439
|
});
|
22413
22440
|
}
|
22414
22441
|
};
|
22415
|
-
|
22416
|
-
var
|
22417
|
-
var
|
22418
|
-
var
|
22419
|
-
var
|
22442
|
+
Ft.TAG = "[FeedbackService]";
|
22443
|
+
var is = ((f) => (f.FLAG_SERVER_SUB_DEGRADATION = "subscribeDegradation", f.FLAG_SERVER_SIMULCAST = "simulcast", f.FLAG_NON_WEBRTC_DISABLE_OFFER = "nonWebRTCDisableOffer", f.FLAG_PUBLISH_STATS = "publishStats", f.FLAG_SUBSCRIBE_STATS = "subscribeStats", f.FLAG_ON_DEMAND_TRACKS = "onDemandTracks", f.FLAG_DISABLE_VIDEO_TRACK_AUTO_UNSUBSCRIBE = "disableVideoTrackAutoUnsubscribe", f.FLAG_WHITEBOARD_ENABLED = "whiteboardEnabled", f.FLAG_EFFECTS_SDK_ENABLED = "effectsSDKEnabled", f.FLAG_VB_ENABLED = "vb", f.FLAG_HIPAA_ENABLED = "hipaa", f.FLAG_NOISE_CANCELLATION = "noiseCancellation", f.FLAG_SCALE_SCREENSHARE_BASED_ON_PIXELS = "scaleScreenshareBasedOnPixels", f.FLAG_DISABLE_NONE_LAYER_REQUEST = "disableNoneLayerRequest", f))(is || {});
|
22444
|
+
var J = ((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))(J || {});
|
22445
|
+
var ar = ((n) => (n.Disconnected = "Disconnected", n.Connecting = "Connecting", n.Joined = "Joined", n.Preview = "Preview", n.Failed = "Failed", n.Reconnecting = "Reconnecting", n.Leaving = "Leaving", n))(ar || {});
|
22446
|
+
var ut = ((t) => (t[t.Publish = 0] = "Publish", t[t.Subscribe = 1] = "Subscribe", t))(ut || {});
|
22420
22447
|
var wn = (a2) => a2.localPeer.id;
|
22421
|
-
var
|
22422
|
-
var
|
22423
|
-
var
|
22424
|
-
var
|
22425
|
-
var
|
22426
|
-
var
|
22427
|
-
var
|
22428
|
-
var
|
22429
|
-
var
|
22448
|
+
var _n = (a2) => a2.localPeer.audioTrack;
|
22449
|
+
var Nn = (a2) => a2.localPeer.videoTrack;
|
22450
|
+
var On = (a2, e) => e;
|
22451
|
+
var to = (a2, e) => e;
|
22452
|
+
var xn = (a2) => a2.remoteTrackStats;
|
22453
|
+
var io = (a2) => a2.peerStats;
|
22454
|
+
var os = (a2) => a2.localTrackStats;
|
22455
|
+
var Re = createSelector([io, wn], (a2, e) => a2[e]);
|
22456
|
+
var Un = createSelector(Re, (a2) => {
|
22430
22457
|
var e;
|
22431
22458
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.packetsLost;
|
22432
22459
|
});
|
22433
|
-
var
|
22460
|
+
var Bn = createSelector(Re, (a2) => {
|
22434
22461
|
var e;
|
22435
22462
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.jitter;
|
22436
22463
|
});
|
22437
|
-
var
|
22464
|
+
var Vn = createSelector(Re, (a2) => {
|
22438
22465
|
var e;
|
22439
22466
|
return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bitrate;
|
22440
22467
|
});
|
22441
|
-
var
|
22468
|
+
var Fn = createSelector(Re, (a2) => {
|
22442
22469
|
var e;
|
22443
22470
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bitrate;
|
22444
22471
|
});
|
22445
|
-
var
|
22472
|
+
var Gn = createSelector(Re, (a2) => {
|
22446
22473
|
var e;
|
22447
22474
|
return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.availableOutgoingBitrate;
|
22448
22475
|
});
|
22449
|
-
var
|
22476
|
+
var Wn = createSelector(Re, (a2) => {
|
22450
22477
|
var e;
|
22451
22478
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.availableIncomingBitrate;
|
22452
22479
|
});
|
22453
|
-
var
|
22480
|
+
var $n = createSelector(Re, (a2) => {
|
22454
22481
|
var e;
|
22455
22482
|
return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bytesSent;
|
22456
22483
|
});
|
22457
|
-
var
|
22484
|
+
var Kn = createSelector(Re, (a2) => {
|
22458
22485
|
var e;
|
22459
22486
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bytesReceived;
|
22460
22487
|
});
|
22461
|
-
var
|
22462
|
-
var
|
22463
|
-
var
|
22464
|
-
var jn = H(Kn);
|
22488
|
+
var qn = createSelector([io, On], (a2, e) => e ? a2[e] : void 0);
|
22489
|
+
var jn = createSelector([xn, to], (a2, e) => e ? a2[e] : void 0);
|
22490
|
+
var ns = createSelector([os, to], (a2, e) => e ? a2[e] : void 0);
|
22465
22491
|
var Jn = H(qn);
|
22466
|
-
var Qn =
|
22492
|
+
var Qn = H(jn);
|
22493
|
+
var zn = createSelector([os, _n], (a2, e) => {
|
22467
22494
|
var t;
|
22468
22495
|
return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
|
22469
22496
|
});
|
22470
|
-
var
|
22471
|
-
var
|
22497
|
+
var Yn = H(createSelector(ns, (a2) => a2 == null ? void 0 : a2[0]));
|
22498
|
+
var Xn = createSelector([os, Nn], (a2, e) => {
|
22472
22499
|
var t;
|
22473
22500
|
return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
|
22474
22501
|
});
|
22475
|
-
var
|
22502
|
+
var Zn = H(createSelector(ns, (a2) => a2));
|
22476
22503
|
|
22477
22504
|
// src/Prebuilt/components/Header/StreamActions.tsx
|
22478
22505
|
var import_react_sdk41 = require("@100mslive/react-sdk");
|
@@ -22581,7 +22608,7 @@ var RecordingStatus = () => {
|
|
22581
22608
|
};
|
22582
22609
|
var RecordingPauseStatus = () => {
|
22583
22610
|
const recording = (0, import_react_sdk41.useHMSStore)(import_react_sdk41.selectRecordingState);
|
22584
|
-
if (recording.hls && recording.hls.state ===
|
22611
|
+
if (recording.hls && recording.hls.state === Os.PAUSED) {
|
22585
22612
|
return /* @__PURE__ */ import_react88.default.createElement(
|
22586
22613
|
Tooltip,
|
22587
22614
|
{
|
@@ -22870,7 +22897,7 @@ init_define_process_env();
|
|
22870
22897
|
var import_react92 = require("react");
|
22871
22898
|
var import_react_sdk44 = require("@100mslive/react-sdk");
|
22872
22899
|
var useUnreadPollQuizPresent = () => {
|
22873
|
-
const localPeerID = (0, import_react_sdk44.useHMSStore)(
|
22900
|
+
const localPeerID = (0, import_react_sdk44.useHMSStore)(Pe);
|
22874
22901
|
const notification = (0, import_react_sdk44.useHMSNotifications)(import_react_sdk44.HMSNotificationTypes.POLL_STARTED);
|
22875
22902
|
const [unreadPollQuiz, setUnreadPollQuiz] = (0, import_react92.useState)(false);
|
22876
22903
|
(0, import_react92.useEffect)(() => {
|
@@ -27331,7 +27358,7 @@ var Chat = () => {
|
|
27331
27358
|
const listRef = (0, import_react153.useRef)(null);
|
27332
27359
|
const hmsActions = (0, import_react_sdk74.useHMSActions)();
|
27333
27360
|
const vanillaStore = (0, import_react_sdk74.useHMSVanillaStore)();
|
27334
|
-
const { enabled: isChatEnabled = true } = (0, import_react_sdk74.useHMSStore)(
|
27361
|
+
const { enabled: isChatEnabled = true } = (0, import_react_sdk74.useHMSStore)(sS("chatState" /* CHAT_STATE */)) || {};
|
27335
27362
|
const isMobile = (0, import_react_use27.useMedia)(config.media.md);
|
27336
27363
|
const isMobileHLSStream = useMobileHLSStream();
|
27337
27364
|
const isLandscapeStream = useLandscapeHLSStream();
|
@@ -27421,7 +27448,7 @@ var NewMessageIndicator = ({
|
|
27421
27448
|
scrollToBottom,
|
27422
27449
|
listRef
|
27423
27450
|
}) => {
|
27424
|
-
const unreadCount = (0, import_react_sdk74.useHMSStore)(
|
27451
|
+
const unreadCount = (0, import_react_sdk74.useHMSStore)(Am);
|
27425
27452
|
if (!unreadCount || !listRef.current) {
|
27426
27453
|
return null;
|
27427
27454
|
}
|
@@ -28378,7 +28405,7 @@ var VBPicker = ({ backgroundMedia = [] }) => {
|
|
28378
28405
|
const toggleVB = useSidepaneToggle(SIDE_PANE_OPTIONS.VB);
|
28379
28406
|
const hmsActions = (0, import_react_sdk82.useHMSActions)();
|
28380
28407
|
const localPeer = (0, import_react_sdk82.useHMSStore)(import_react_sdk82.selectLocalPeer);
|
28381
|
-
const role = (0, import_react_sdk82.useHMSStore)(
|
28408
|
+
const role = (0, import_react_sdk82.useHMSStore)(ot);
|
28382
28409
|
const isVideoOn = (0, import_react_sdk82.useHMSStore)(import_react_sdk82.selectIsLocalVideoEnabled);
|
28383
28410
|
const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
|
28384
28411
|
const trackSelector = (0, import_react_sdk82.selectVideoTrackByID)(localPeer == null ? void 0 : localPeer.videoTrack);
|
@@ -28387,12 +28414,12 @@ var VBPicker = ({ backgroundMedia = [] }) => {
|
|
28387
28414
|
const roomState = (0, import_react_sdk82.useHMSStore)(import_react_sdk82.selectRoomState);
|
28388
28415
|
const isLargeRoom = (0, import_react_sdk82.useHMSStore)(import_react_sdk82.selectIsLargeRoom);
|
28389
28416
|
const isEffectsSupported = VBHandler.isEffectsSupported();
|
28390
|
-
const isEffectsEnabled = (0, import_react_sdk82.useHMSStore)(
|
28391
|
-
const effectsKey = (0, import_react_sdk82.useHMSStore)(
|
28417
|
+
const isEffectsEnabled = (0, import_react_sdk82.useHMSStore)(Bm);
|
28418
|
+
const effectsKey = (0, import_react_sdk82.useHMSStore)(Fm);
|
28392
28419
|
const isMobile = (0, import_react_use33.useMedia)(config.media.md);
|
28393
28420
|
const [loadingEffects, setLoadingEffects] = useSetAppDataByKey(APP_DATA.loadingEffects);
|
28394
28421
|
const isPluginAdded = (0, import_react_sdk82.useHMSStore)((0, import_react_sdk82.selectIsLocalVideoPluginPresent)(((_a7 = VBHandler) == null ? void 0 : _a7.getName()) || ""));
|
28395
|
-
const background = (0, import_react_sdk82.useHMSStore)(
|
28422
|
+
const background = (0, import_react_sdk82.useHMSStore)(rS(APP_DATA.background));
|
28396
28423
|
const mediaList = backgroundMedia.map((media) => media.url || "");
|
28397
28424
|
const pluginLoadingRef = (0, import_react163.useRef)(false);
|
28398
28425
|
const isBlurSupported = (_b7 = VBHandler) == null ? void 0 : _b7.isBlurSupported();
|
@@ -29386,7 +29413,7 @@ var Grid = import_react175.default.forwardRef(
|
|
29386
29413
|
justifyContent: "center",
|
29387
29414
|
flexFlow: "row wrap",
|
29388
29415
|
minHeight: 0,
|
29389
|
-
"@
|
29416
|
+
"@lg": { gap: edgeToEdge ? 0 : "$4" }
|
29390
29417
|
}
|
29391
29418
|
},
|
29392
29419
|
tiles == null ? void 0 : tiles.map((tile) => {
|
@@ -29460,7 +29487,7 @@ var useTileLayout = ({
|
|
29460
29487
|
const matrix = new Array(maxRows).fill(null).map((_, i) => {
|
29461
29488
|
const numCols = Math.min(maxCols, noOfTilesInPage - i * maxCols);
|
29462
29489
|
const rowElements = [];
|
29463
|
-
for (let
|
29490
|
+
for (let j = 0; j < numCols; j++) {
|
29464
29491
|
if (index < page.length) {
|
29465
29492
|
rowElements.push(page[index++]);
|
29466
29493
|
}
|
@@ -29478,10 +29505,10 @@ var useTileLayout = ({
|
|
29478
29505
|
tileHeight = maxRowHeight;
|
29479
29506
|
} else {
|
29480
29507
|
const calcHeights = aspectRatios.map((aR) => tileWidth / aR);
|
29481
|
-
for (const
|
29482
|
-
if (
|
29483
|
-
if (tileHeight <
|
29484
|
-
tileHeight =
|
29508
|
+
for (const h2 of calcHeights) {
|
29509
|
+
if (h2 < maxRowHeight) {
|
29510
|
+
if (tileHeight < h2) {
|
29511
|
+
tileHeight = h2;
|
29485
29512
|
}
|
29486
29513
|
}
|
29487
29514
|
}
|
@@ -32883,7 +32910,7 @@ var ErrorBoundary = class extends import_react213.Component {
|
|
32883
32910
|
left: 0
|
32884
32911
|
}
|
32885
32912
|
},
|
32886
|
-
/* @__PURE__ */ import_react213.default.createElement("div", { style: { margin: "1.5rem", width: "100%" } }, /* @__PURE__ */ import_react213.default.createElement(Text, null, "Something went wrong"), /* @__PURE__ */ import_react213.default.createElement(Text, null, "Message: $", this.state.error), /* @__PURE__ */ import_react213.default.createElement("br", null), "Please reload to see if it works. If you think this is a mistake on our side, please reach out to us on", /* @__PURE__ */ import_react213.default.createElement("a", { href: "https://
|
32913
|
+
/* @__PURE__ */ import_react213.default.createElement("div", { style: { margin: "1.5rem", width: "100%" } }, /* @__PURE__ */ import_react213.default.createElement(Text, null, "Something went wrong"), /* @__PURE__ */ import_react213.default.createElement(Text, null, "Message: $", this.state.error), /* @__PURE__ */ import_react213.default.createElement("br", null), "Please reload to see if it works. If you think this is a mistake on our side, please reach out to us on", /* @__PURE__ */ import_react213.default.createElement("a", { href: "https://dashboard.100ms.live/dashboard", target: "_blank", rel: "noreferrer" }, "Dashboard")),
|
32887
32914
|
/* @__PURE__ */ import_react213.default.createElement(Flex, null, /* @__PURE__ */ import_react213.default.createElement(Tooltip, { title: "Reload page" }, /* @__PURE__ */ import_react213.default.createElement(
|
32888
32915
|
Button,
|
32889
32916
|
{
|
@@ -33764,15 +33791,17 @@ function DeviceInUseError() {
|
|
33764
33791
|
if (!error || error.code !== 3003) {
|
33765
33792
|
return;
|
33766
33793
|
}
|
33794
|
+
const errorTrackExceptionType = error == null ? void 0 : error.trackType;
|
33795
|
+
const hasAudio = errorTrackExceptionType === import_react_sdk113.HMSTrackExceptionTrackType.AUDIO;
|
33796
|
+
const hasVideo = errorTrackExceptionType === import_react_sdk113.HMSTrackExceptionTrackType.VIDEO;
|
33797
|
+
const hasAudioVideo = errorTrackExceptionType === import_react_sdk113.HMSTrackExceptionTrackType.AUDIO_VIDEO;
|
33798
|
+
const hasScreen = errorTrackExceptionType === import_react_sdk113.HMSTrackExceptionTrackType.SCREEN;
|
33767
33799
|
const errorMessage = error == null ? void 0 : error.message;
|
33768
33800
|
ToastManager.addToast({
|
33769
33801
|
title: `Error: ${errorMessage} - ${error == null ? void 0 : error.description}`,
|
33770
33802
|
action: /* @__PURE__ */ import_react225.default.createElement(Button, { outlined: true, variant: "standard", css: { w: "max-content" }, onClick: () => setShowDeviceInUseModal(true) }, "Help")
|
33771
33803
|
});
|
33772
|
-
|
33773
|
-
const hasVideo = errorMessage.includes("video");
|
33774
|
-
const hasScreen = errorMessage.includes("screen");
|
33775
|
-
if (hasAudio && hasVideo) {
|
33804
|
+
if (hasAudioVideo) {
|
33776
33805
|
setDeviceType("camera and microphone");
|
33777
33806
|
} else if (hasAudio) {
|
33778
33807
|
setDeviceType("microphone");
|
@@ -34168,8 +34197,8 @@ var import_react230 = require("react");
|
|
34168
34197
|
var import_react_sdk118 = require("@100mslive/react-sdk");
|
34169
34198
|
var MessageNotifications = () => {
|
34170
34199
|
var _a7, _b7;
|
34171
|
-
const notification = (0, import_react_sdk118.useHMSNotifications)(
|
34172
|
-
const amIScreenSharing = (0, import_react_sdk118.useHMSStore)(
|
34200
|
+
const notification = (0, import_react_sdk118.useHMSNotifications)(vr.NEW_MESSAGE);
|
34201
|
+
const amIScreenSharing = (0, import_react_sdk118.useHMSStore)(jr);
|
34173
34202
|
const logoURL = (_b7 = (_a7 = useRoomLayout()) == null ? void 0 : _a7.logo) == null ? void 0 : _b7.url;
|
34174
34203
|
const { pipWindow } = usePIPWindow();
|
34175
34204
|
const { showNotification } = (0, import_react_sdk118.useAwayNotifications)();
|
@@ -34248,11 +34277,12 @@ var PermissionErrorModal = ({ error }) => {
|
|
34248
34277
|
if (!error || (error == null ? void 0 : error.code) !== 3001 && (error == null ? void 0 : error.code) !== 3011 || (error == null ? void 0 : error.code) === 3001 && (error == null ? void 0 : error.message.includes("screen"))) {
|
34249
34278
|
return;
|
34250
34279
|
}
|
34251
|
-
const
|
34252
|
-
const hasAudio =
|
34253
|
-
const hasVideo =
|
34254
|
-
const
|
34255
|
-
|
34280
|
+
const errorTrackExceptionType = error == null ? void 0 : error.trackType;
|
34281
|
+
const hasAudio = errorTrackExceptionType === import_react_sdk120.HMSTrackExceptionTrackType.AUDIO;
|
34282
|
+
const hasVideo = errorTrackExceptionType === import_react_sdk120.HMSTrackExceptionTrackType.VIDEO;
|
34283
|
+
const hasAudioVideo = errorTrackExceptionType === import_react_sdk120.HMSTrackExceptionTrackType.AUDIO_VIDEO;
|
34284
|
+
const hasScreen = errorTrackExceptionType === import_react_sdk120.HMSTrackExceptionTrackType.SCREEN;
|
34285
|
+
if (hasAudioVideo) {
|
34256
34286
|
setDeviceType("camera and microphone");
|
34257
34287
|
} else if (hasAudio) {
|
34258
34288
|
setDeviceType("microphone");
|