@100mslive/roomkit-react 0.3.14-alpha.9 → 0.3.14
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{HLSView-MWFODCX2.js → HLSView-67SFNI2P.js} +2 -2
- package/dist/{HLSView-PJMAGWYH.css → HLSView-TYHCIAWX.css} +3 -3
- package/dist/{HLSView-PJMAGWYH.css.map → HLSView-TYHCIAWX.css.map} +1 -1
- package/dist/{chunk-VO7L2JWV.js → chunk-VCXILOW6.js} +502 -502
- package/dist/{chunk-VO7L2JWV.js.map → chunk-VCXILOW6.js.map} +4 -4
- package/dist/index.cjs.css +2 -2
- package/dist/index.cjs.css.map +1 -1
- package/dist/index.cjs.js +480 -480
- package/dist/index.cjs.js.map +4 -4
- package/dist/index.css +2 -2
- package/dist/index.css.map +1 -1
- package/dist/index.js +1 -1
- package/dist/meta.cjs.json +14 -14
- package/dist/meta.esbuild.json +24 -24
- package/package.json +7 -7
- /package/dist/{HLSView-MWFODCX2.js.map → HLSView-67SFNI2P.js.map} +0 -0
package/dist/index.cjs.js
CHANGED
@@ -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_64e68346-fe70-4da2-95d3-209214f9bdaf", 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.4-alpha.9", USER: "runner", npm_package_devDependencies_jest: "26.6.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.22 npm/? node/v18.20.3 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_scripts_babel: "npx storybook@latest babelrc", CI: "true", npm_package_devDependencies__size_limit_file: "^5.0.3", npm_config_bin_links: "true", npm_config_wrap_output: "", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", npm_package_dependencies__100mslive_react_sdk: "0.10.14-alpha.9", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_64e68346-fe70-4da2-95d3-209214f9bdaf", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.3/x64/bin/node", npm_config_init_version: "1.0.0", npm_package_dependencies__emoji_mart_react: "^1.0.1", npm_package_dependencies__emoji_mart_data: "^1.0.6", npm_package_dependencies__100mslive_hms_virtual_background: "1.13.14-alpha.9", 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.9", npm_package_peerDependencies_react: ">=17.0.2 <19.0.0", npm_package_devDependencies__storybook_addon_links: "^7.0.27", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_devDependencies__typescript_eslint_parser: "^5.4.0", npm_package_dependencies__radix_ui_react_dialog: "1.0.4", npm_package_devDependencies__types_react_window: "^1.8.5", npm_package_files_1: "src", npm_package_repository_directory: "packages/roomkit-react", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_scripts_controller: "cd packages/hls-controller && yarn start", npm_package_dependencies__stitches_react: "^1.2.8", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "100mslive", npm_package_engines_node: ">=16", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-8.8", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/26.3.11579264", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", YARN_WRAP_OUTPUT: "false", npm_config_version_tag_prefix: "v", GITHUB_REPOSITORY_OWNER_ID: "73883131", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu22", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_scripts_lint_fix: "yarn lint --fix", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", npm_package_devDependencies__storybook_addon_a11y: "^7.0.27", SYSTEMD_EXEC_PID: "592", npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_keywords_1: "react", GOROOT_1_20_X64: "/opt/hostedtoolcache/go/1.20.14/x64", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_devDependencies_react: "^18.1.0", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_2: "prebuilt", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.11/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240616.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.4/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", FORCE_COLOR: "true", npm_package_dependencies__radix_ui_react_toast: "1.0.0", npm_package_dependencies__radix_ui_react_radio_group: "1.0.0", npm_package_dependencies__100mslive_hms_noise_cancellation: "0.0.1", npm_package_devDependencies__babel_preset_typescript: "^7.22.5", npm_package_exports___default: "./dist/index.js", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "8:16186", 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.14-alpha.9", 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: "9643076846", 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: "3caf5ae1abb71e5e7dede48bc4b9b8dfa5a25a8a", 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: "45931fde6bf77d2d1cd3b95a11a2f9c9943817998bd64fda1e0d9d0cbbf7acbf", 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--1719221877947-0.7338311406643205:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.3/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1719221877752-0.7893639730050881:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.3/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1719221852672-0.07427928548185037:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.3/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1719221852496-0.7880008360495065:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.3/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", NODE: "/opt/hostedtoolcache/node/18.20.3/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_b19dd9ee-c4a0-4f55-ae8f-3ea51e07fb3d", INVOCATION_ID: "0c5c352daeb1430cbd335645819f2fd5", 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: "586", GITHUB_TRIGGERING_ACTOR: "github-actions[bot]", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "20 KB", npm_package_devDependencies__commitlint_cli: "^15.0.0", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_size_limit_1_limit: "20 KB", npm_package_devDependencies_eslint_plugin_simple_import_sort: "^8.0.0", npm_package_devDependencies_eslint: "^8.9.0", npm_package_dependencies_react_intersection_observer: "^9.4.3", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 469", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "publish-alpha", GITHUB_REPOSITORY: "100mslive/web-sdks", STATS_D_D: "false", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_size_limit_2_limit: "400 KB", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_size_limit_3_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_cypress_open: "cypress open", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_devDependencies_concurrently: "^6.4.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_dependencies__100mslive_react_icons: "0.10.14-alpha.9", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.14-alpha.9", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", npm_package_devDependencies__types_react: "^18.1.0", npm_package_sideEffects: "false", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_source: "src/index.ts", GITHUB_REF_PROTECTED: "true", npm_config_argv: '{"remain":[],"cooked":["run","test"],"original":["test"]}', npm_package_size_limit_5_limit: "20 KB", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies_nx: "^14.5.1", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_uuid: "^8.3.2", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies_emoji_mart: "^5.2.2", GITHUB_WORKSPACE: "/home/runner/work/web-sdks/web-sdks", ACCEPT_EULA: "Y", GITHUB_JOB: "publish_packages", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_size_limit_6_limit: "150 KB", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_devDependencies_cypress: "^9.5.2", GITHUB_SHA: "3caf5ae1abb71e5e7dede48bc4b9b8dfa5a25a8a", 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_64e68346-fe70-4da2-95d3-209214f9bdaf", 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_64e68346-fe70-4da2-95d3-209214f9bdaf", npm_package_scripts_prestart: "rm -rf dist && yarn types:build", npm_package_author_name: "100ms", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", npm_package_scripts_build_storybook: "sb build", npm_package_devDependencies_postcss: "^8.4.5", npm_package_devDependencies_esbuild: "^0.18.13", npm_config_save_prefix: "^", npm_config_ignore_optional: "", npm_package_dependencies_worker_timers: "^7.0.40", npm_package_typings: "dist/index.d.ts", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/25.2.9519653", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_scripts_storybook: "sb dev -p 6006", npm_package_devDependencies_esbuild_plugin_postcss2: "0.1.1", npm_package_dependencies_react_swipeable: "^7.0.1", npm_package_devDependencies_babel_plugin_react_require: "3.1.3", npm_package_devDependencies__storybook_testing_library: "^0.2.0", npm_package_devDependencies__storybook_addon_essentials: "^7.0.27", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", STATS_EXTP: "https://provjobdsettingscdn.blob.core.windows.net/settings/provjobdsettings-0.5.181+6/provjobd.data", npm_package_scripts_reactsdk: "cd packages/react-sdk && yarn start", npm_package_dependencies_react_use: "^17.4.0", npm_package_dependencies__radix_ui_react_collapsible: "1.0.0", npm_package_devDependencies_storybook_dark_mode: "^3.0.0", npm_package_devDependencies__storybook_react: "^7.0.27", INIT_CWD: "/home/runner/work/web-sdks/web-sdks", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_64e68346-fe70-4da2-95d3-209214f9bdaf" };
|
112
|
+
define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_adf1cb44-4add-420a-8726-a8aa368ea6c1", 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.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.3 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_scripts_babel: "npx storybook@latest babelrc", CI: "true", npm_package_devDependencies__size_limit_file: "^5.0.3", npm_config_bin_links: "true", npm_config_wrap_output: "", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", npm_package_dependencies__100mslive_react_sdk: "0.10.14", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_adf1cb44-4add-420a-8726-a8aa368ea6c1", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.3/x64/bin/node", npm_config_init_version: "1.0.0", npm_package_dependencies__emoji_mart_react: "^1.0.1", npm_package_dependencies__emoji_mart_data: "^1.0.6", npm_package_dependencies__100mslive_hms_virtual_background: "1.13.14", 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.9", npm_package_peerDependencies_react: ">=17.0.2 <19.0.0", npm_package_devDependencies__storybook_addon_links: "^7.0.27", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_devDependencies__typescript_eslint_parser: "^5.4.0", npm_package_dependencies__radix_ui_react_dialog: "1.0.4", npm_package_devDependencies__types_react_window: "^1.8.5", npm_package_files_1: "src", npm_package_repository_directory: "packages/roomkit-react", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_scripts_controller: "cd packages/hls-controller && yarn start", npm_package_dependencies__stitches_react: "^1.2.8", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "100mslive", npm_package_engines_node: ">=16", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-8.8", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/26.3.11579264", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", YARN_WRAP_OUTPUT: "false", npm_config_version_tag_prefix: "v", GITHUB_REPOSITORY_OWNER_ID: "73883131", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu22", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_scripts_lint_fix: "yarn lint --fix", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", npm_package_devDependencies__storybook_addon_a11y: "^7.0.27", SYSTEMD_EXEC_PID: "590", npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_keywords_1: "react", GOROOT_1_20_X64: "/opt/hostedtoolcache/go/1.20.14/x64", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_devDependencies_react: "^18.1.0", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_2: "prebuilt", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.11/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240616.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.4/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", FORCE_COLOR: "true", npm_package_dependencies__radix_ui_react_toast: "1.0.0", npm_package_dependencies__radix_ui_react_radio_group: "1.0.0", npm_package_dependencies__100mslive_hms_noise_cancellation: "0.0.1", npm_package_devDependencies__babel_preset_typescript: "^7.22.5", npm_package_exports___default: "./dist/index.js", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "8:17356", 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.14", 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: "9661682152", 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: "0e76f9d5dee8b4eec991bda145a3157c5a45593c", 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: "47454ed0ee5d58c3391b12a9b53aeb874ce6bb5490bc16eb310b06e384f5e05e", npm_package_exports___import: "./dist/index.js", GITHUB_WORKFLOW_REF: "100mslive/web-sdks/.github/workflows/publish.yml@refs/heads/main", 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--1719315399128-0.44404788583932464:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.3/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1719315398936-0.3483133545131931:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.3/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1719315373455-0.3101961994568032:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.3/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1719315373276-0.05068429302590238:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.3/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", NODE: "/opt/hostedtoolcache/node/18.20.3/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_773c3b95-d96e-4a9e-b282-40e69d50cd6e", INVOCATION_ID: "16e7598366e54b1c8e6d3f822ca83364", 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: "589", GITHUB_TRIGGERING_ACTOR: "eswarclynn", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "20 KB", npm_package_devDependencies__commitlint_cli: "^15.0.0", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_size_limit_1_limit: "20 KB", npm_package_devDependencies_eslint_plugin_simple_import_sort: "^8.0.0", npm_package_devDependencies_eslint: "^8.9.0", npm_package_dependencies_react_intersection_observer: "^9.4.3", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 362", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "main", GITHUB_REPOSITORY: "100mslive/web-sdks", STATS_D_D: "false", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_size_limit_2_limit: "400 KB", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_size_limit_3_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_cypress_open: "cypress open", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_devDependencies_concurrently: "^6.4.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_dependencies__100mslive_react_icons: "0.10.14", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.14", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", npm_package_devDependencies__types_react: "^18.1.0", npm_package_sideEffects: "false", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_source: "src/index.ts", GITHUB_REF_PROTECTED: "true", npm_config_argv: '{"remain":[],"cooked":["run","test"],"original":["test"]}', npm_package_size_limit_5_limit: "20 KB", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies_nx: "^14.5.1", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_uuid: "^8.3.2", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies_emoji_mart: "^5.2.2", GITHUB_WORKSPACE: "/home/runner/work/web-sdks/web-sdks", ACCEPT_EULA: "Y", GITHUB_JOB: "publish_packages", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_size_limit_6_limit: "150 KB", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_devDependencies_cypress: "^9.5.2", GITHUB_SHA: "0e76f9d5dee8b4eec991bda145a3157c5a45593c", 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/main", GITHUB_ACTOR: "eswarclynn", 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_adf1cb44-4add-420a-8726-a8aa368ea6c1", JAVA_HOME: "/usr/lib/jvm/temurin-11-jdk-amd64", PWD: "/home/runner/work/web-sdks/web-sdks/packages/roomkit-react", GITHUB_ACTOR_ID: "64120992", 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_adf1cb44-4add-420a-8726-a8aa368ea6c1", npm_package_scripts_prestart: "rm -rf dist && yarn types:build", npm_package_author_name: "100ms", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", npm_package_scripts_build_storybook: "sb build", npm_package_devDependencies_postcss: "^8.4.5", npm_package_devDependencies_esbuild: "^0.18.13", npm_config_save_prefix: "^", npm_config_ignore_optional: "", npm_package_dependencies_worker_timers: "^7.0.40", npm_package_typings: "dist/index.d.ts", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/25.2.9519653", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_scripts_storybook: "sb dev -p 6006", npm_package_devDependencies_esbuild_plugin_postcss2: "0.1.1", npm_package_dependencies_react_swipeable: "^7.0.1", npm_package_devDependencies_babel_plugin_react_require: "3.1.3", npm_package_devDependencies__storybook_testing_library: "^0.2.0", npm_package_devDependencies__storybook_addon_essentials: "^7.0.27", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", STATS_EXTP: "https://provjobdsettingscdn.blob.core.windows.net/settings/provjobdsettings-0.5.181+6/provjobd.data", npm_package_scripts_reactsdk: "cd packages/react-sdk && yarn start", npm_package_dependencies_react_use: "^17.4.0", npm_package_dependencies__radix_ui_react_collapsible: "1.0.0", npm_package_devDependencies_storybook_dark_mode: "^3.0.0", npm_package_devDependencies__storybook_react: "^7.0.27", INIT_CWD: "/home/runner/work/web-sdks/web-sdks", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_adf1cb44-4add-420a-8726-a8aa368ea6c1" };
|
113
113
|
}
|
114
114
|
});
|
115
115
|
|
@@ -2790,12 +2790,12 @@ var init_formatBytes = __esm({
|
|
2790
2790
|
if (!bytes) {
|
2791
2791
|
return "-";
|
2792
2792
|
}
|
2793
|
-
const
|
2793
|
+
const k3 = 1024;
|
2794
2794
|
const dm2 = decimals < 0 ? 0 : decimals;
|
2795
2795
|
const sizes = ["", "K", "M", "G", "T", "P", "E", "Z", "Y"].map((size) => size + unit);
|
2796
|
-
let i2 = Math.floor(Math.log(bytes) / Math.log(
|
2796
|
+
let i2 = Math.floor(Math.log(bytes) / Math.log(k3));
|
2797
2797
|
i2 === 0 && i2++;
|
2798
|
-
return `${parseFloat((bytes / Math.pow(
|
2798
|
+
return `${parseFloat((bytes / Math.pow(k3, i2)).toFixed(dm2))} ${sizes[i2]}`;
|
2799
2799
|
};
|
2800
2800
|
}
|
2801
2801
|
});
|
@@ -12637,8 +12637,8 @@ var init_PIPManager = __esm({
|
|
12637
12637
|
/**
|
12638
12638
|
* @private {boolean} on - whether pip is on/off
|
12639
12639
|
*/
|
12640
|
-
this.callListeners = (
|
12641
|
-
this.listeners.forEach((listener) => listener == null ? void 0 : listener(
|
12640
|
+
this.callListeners = (on2) => {
|
12641
|
+
this.listeners.forEach((listener) => listener == null ? void 0 : listener(on2));
|
12642
12642
|
};
|
12643
12643
|
this.reset();
|
12644
12644
|
}
|
@@ -14519,10 +14519,10 @@ var require_ua_parser = __commonJS({
|
|
14519
14519
|
}
|
14520
14520
|
};
|
14521
14521
|
var rgxMapper = function(ua2, arrays) {
|
14522
|
-
var i2 = 0, j3,
|
14522
|
+
var i2 = 0, j3, k3, p2, q3, matches, match18;
|
14523
14523
|
while (i2 < arrays.length && !matches) {
|
14524
14524
|
var regex = arrays[i2], props = arrays[i2 + 1];
|
14525
|
-
j3 =
|
14525
|
+
j3 = k3 = 0;
|
14526
14526
|
while (j3 < regex.length && !matches) {
|
14527
14527
|
if (!regex[j3]) {
|
14528
14528
|
break;
|
@@ -14530,7 +14530,7 @@ var require_ua_parser = __commonJS({
|
|
14530
14530
|
matches = regex[j3++].exec(ua2);
|
14531
14531
|
if (!!matches) {
|
14532
14532
|
for (p2 = 0; p2 < props.length; p2++) {
|
14533
|
-
match18 = matches[++
|
14533
|
+
match18 = matches[++k3];
|
14534
14534
|
q3 = props[p2];
|
14535
14535
|
if (typeof q3 === OBJ_TYPE && q3.length > 0) {
|
14536
14536
|
if (q3.length === 2) {
|
@@ -16876,11 +16876,11 @@ function shimOnTrack(window2) {
|
|
16876
16876
|
get() {
|
16877
16877
|
return this._ontrack;
|
16878
16878
|
},
|
16879
|
-
set(
|
16879
|
+
set(f3) {
|
16880
16880
|
if (this._ontrack) {
|
16881
16881
|
this.removeEventListener("track", this._ontrack);
|
16882
16882
|
}
|
16883
|
-
this.addEventListener("track", this._ontrack =
|
16883
|
+
this.addEventListener("track", this._ontrack = f3);
|
16884
16884
|
},
|
16885
16885
|
enumerable: true,
|
16886
16886
|
configurable: true
|
@@ -17888,12 +17888,12 @@ function shimRemoteStreamsAPI(window2) {
|
|
17888
17888
|
get() {
|
17889
17889
|
return this._onaddstream;
|
17890
17890
|
},
|
17891
|
-
set(
|
17891
|
+
set(f3) {
|
17892
17892
|
if (this._onaddstream) {
|
17893
17893
|
this.removeEventListener("addstream", this._onaddstream);
|
17894
17894
|
this.removeEventListener("track", this._onaddstreampoly);
|
17895
17895
|
}
|
17896
|
-
this.addEventListener("addstream", this._onaddstream =
|
17896
|
+
this.addEventListener("addstream", this._onaddstream = f3);
|
17897
17897
|
this.addEventListener("track", this._onaddstreampoly = (e) => {
|
17898
17898
|
e.streams.forEach((stream) => {
|
17899
17899
|
if (!this._remoteStreams) {
|
@@ -19343,14 +19343,14 @@ function M(n2, r2, t2) {
|
|
19343
19343
|
}
|
19344
19344
|
return e.o;
|
19345
19345
|
}
|
19346
|
-
function A(e, i2, o2, a11, c3, s2,
|
19346
|
+
function A(e, i2, o2, a11, c3, s2, v2) {
|
19347
19347
|
if ("production" !== define_process_env_default.NODE_ENV && c3 === o2 && n(5), r(c3)) {
|
19348
19348
|
var p2 = M(e, c3, s2 && i2 && 3 !== i2.i && !u(i2.R, a11) ? s2.concat(a11) : void 0);
|
19349
19349
|
if (f(o2, a11, p2), !r(p2))
|
19350
19350
|
return;
|
19351
19351
|
e.m = false;
|
19352
19352
|
} else
|
19353
|
-
|
19353
|
+
v2 && o2.add(c3);
|
19354
19354
|
if (t(c3) && !y(c3)) {
|
19355
19355
|
if (!e.h.D && e._ < 1)
|
19356
19356
|
return;
|
@@ -19383,8 +19383,8 @@ function N(n2, r2, t2) {
|
|
19383
19383
|
var e = s(r2) ? b("MapSet").F(r2, t2) : v(r2) ? b("MapSet").T(r2, t2) : n2.O ? function(n3, r3) {
|
19384
19384
|
var t3 = Array.isArray(n3), e2 = { i: t3 ? 1 : 0, A: r3 ? r3.A : _(), P: false, I: false, R: {}, l: r3, t: n3, k: null, o: null, j: null, C: false }, i2 = e2, o2 = en;
|
19385
19385
|
t3 && (i2 = [e2], o2 = on);
|
19386
|
-
var u2 = Proxy.revocable(i2, o2), a11 = u2.revoke,
|
19387
|
-
return e2.k =
|
19386
|
+
var u2 = Proxy.revocable(i2, o2), a11 = u2.revoke, f3 = u2.proxy;
|
19387
|
+
return e2.k = f3, e2.j = a11, f3;
|
19388
19388
|
}(r2, t2) : b("ES5").J(r2, t2);
|
19389
19389
|
return (t2 ? t2.A : _()).p.push(e), e;
|
19390
19390
|
}
|
@@ -19519,26 +19519,26 @@ var init_immer_esm = __esm({
|
|
19519
19519
|
});
|
19520
19520
|
};
|
19521
19521
|
}
|
19522
|
-
var
|
19522
|
+
var f3;
|
19523
19523
|
if ("function" != typeof i3 && n(6), void 0 !== o2 && "function" != typeof o2 && n(7), t(r3)) {
|
19524
|
-
var c3 = w(e2), s2 = N(e2, r3, void 0),
|
19524
|
+
var c3 = w(e2), s2 = N(e2, r3, void 0), v2 = true;
|
19525
19525
|
try {
|
19526
|
-
|
19526
|
+
f3 = i3(s2), v2 = false;
|
19527
19527
|
} finally {
|
19528
|
-
|
19528
|
+
v2 ? g(c3) : O(c3);
|
19529
19529
|
}
|
19530
|
-
return "undefined" != typeof Promise &&
|
19530
|
+
return "undefined" != typeof Promise && f3 instanceof Promise ? f3.then(function(n2) {
|
19531
19531
|
return j(c3, o2), P3(n2, c3);
|
19532
19532
|
}, function(n2) {
|
19533
19533
|
throw g(c3), n2;
|
19534
|
-
}) : (j(c3, o2), P3(
|
19534
|
+
}) : (j(c3, o2), P3(f3, c3));
|
19535
19535
|
}
|
19536
19536
|
if (!r3 || "object" != typeof r3) {
|
19537
|
-
if (void 0 === (
|
19537
|
+
if (void 0 === (f3 = i3(r3)) && (f3 = r3), f3 === H && (f3 = void 0), e2.D && d(f3, true), o2) {
|
19538
19538
|
var p2 = [], l2 = [];
|
19539
|
-
b("Patches").M(r3,
|
19539
|
+
b("Patches").M(r3, f3, p2, l2), o2(p2, l2);
|
19540
19540
|
}
|
19541
|
-
return
|
19541
|
+
return f3;
|
19542
19542
|
}
|
19543
19543
|
n(21, r3);
|
19544
19544
|
}, this.produceWithPatches = function(n2, r3) {
|
@@ -20144,8 +20144,8 @@ var require_grammar = __commonJS({
|
|
20144
20144
|
var require_parser = __commonJS({
|
20145
20145
|
"../../node_modules/sdp-transform/lib/parser.js"(exports) {
|
20146
20146
|
init_define_process_env();
|
20147
|
-
var toIntIfInt = function(
|
20148
|
-
return String(Number(
|
20147
|
+
var toIntIfInt = function(v2) {
|
20148
|
+
return String(Number(v2)) === v2 ? Number(v2) : v2;
|
20149
20149
|
};
|
20150
20150
|
var attachProperties = function(match18, location, names, rawName) {
|
20151
20151
|
if (rawName && !names) {
|
@@ -20378,7 +20378,7 @@ function xe(a11, e) {
|
|
20378
20378
|
if (e)
|
20379
20379
|
for (let r2 of e.auxiliaryTracks) {
|
20380
20380
|
let s2 = a11[r2];
|
20381
|
-
|
20381
|
+
eo(s2) && (i2 = ut(s2) ? s2 : i2, t2 = pt(s2) ? s2 : t2);
|
20382
20382
|
}
|
20383
20383
|
return { video: t2, audio: i2 };
|
20384
20384
|
}
|
@@ -20388,7 +20388,7 @@ function ut(a11) {
|
|
20388
20388
|
function pt(a11) {
|
20389
20389
|
return a11 && a11.type === "video";
|
20390
20390
|
}
|
20391
|
-
function
|
20391
|
+
function eo(a11) {
|
20392
20392
|
return a11 && a11.source === "screen";
|
20393
20393
|
}
|
20394
20394
|
function ii(a11) {
|
@@ -20411,7 +20411,7 @@ function mt(a11) {
|
|
20411
20411
|
let e = false, t2 = false, i2 = false;
|
20412
20412
|
return (r2 = a11 == null ? void 0 : a11.publishParams) != null && r2.allowed && (e = a11.publishParams.allowed.includes("video"), t2 = a11.publishParams.allowed.includes("audio"), i2 = a11.publishParams.allowed.includes("screen")), { video: e, audio: t2, screen: i2 };
|
20413
20413
|
}
|
20414
|
-
function
|
20414
|
+
function so() {
|
20415
20415
|
if (O2 && window) {
|
20416
20416
|
let a11 = window.location.hostname;
|
20417
20417
|
return a11 === "localhost" || a11 === "127.0.0.1" ? "LOCAL" : a11.includes("app.100ms.live") ? "HMS" : "CUSTOM";
|
@@ -20445,11 +20445,11 @@ function Tt(a11 = "prod", e) {
|
|
20445
20445
|
function yr(a11) {
|
20446
20446
|
return a11.replace(/ /g, "_");
|
20447
20447
|
}
|
20448
|
-
function
|
20448
|
+
function po(a11, e) {
|
20449
20449
|
let t2 = a11.toLowerCase();
|
20450
20450
|
return t2.includes("device not found") ? S2.TracksErrors.DeviceNotAvailable("TRACK", e, a11) : t2.includes("permission denied") ? S2.TracksErrors.CantAccessCaptureDevice("TRACK", e, a11) : S2.TracksErrors.GenericTrack("TRACK", a11);
|
20451
20451
|
}
|
20452
|
-
function
|
20452
|
+
function ho(a11, e = "") {
|
20453
20453
|
if (adapter_core_default.browserDetails.browser === "chrome" && a11.name === "NotAllowedError" && a11.message.includes("denied by system"))
|
20454
20454
|
return S2.TracksErrors.SystemDeniedPermission("TRACK", e, a11.message);
|
20455
20455
|
if (adapter_core_default.browserDetails.browser === "firefox" && a11.name === "NotFoundError") {
|
@@ -20468,11 +20468,11 @@ function po(a11, e = "") {
|
|
20468
20468
|
case "TypeError":
|
20469
20469
|
return S2.TracksErrors.NothingToReturn("TRACK", a11.message);
|
20470
20470
|
default:
|
20471
|
-
return
|
20471
|
+
return po(a11.message, e);
|
20472
20472
|
}
|
20473
20473
|
}
|
20474
20474
|
function Ae(a11, e) {
|
20475
|
-
let t2 =
|
20475
|
+
let t2 = ho(a11, e);
|
20476
20476
|
return t2.addNativeError(a11), t2;
|
20477
20477
|
}
|
20478
20478
|
function ys(a11) {
|
@@ -20535,12 +20535,12 @@ function ai(a11, e = 300) {
|
|
20535
20535
|
}, e);
|
20536
20536
|
};
|
20537
20537
|
}
|
20538
|
-
function
|
20538
|
+
function ws(a11, e) {
|
20539
20539
|
return function(i2) {
|
20540
20540
|
return !(0, import_lodash3.default)(a11[i2], e[i2]);
|
20541
20541
|
};
|
20542
20542
|
}
|
20543
|
-
function
|
20543
|
+
function Us(a11, e) {
|
20544
20544
|
return function(i2) {
|
20545
20545
|
return !(0, import_lodash4.default)(a11[i2], e[i2]);
|
20546
20546
|
};
|
@@ -20548,16 +20548,16 @@ function xs(a11, e) {
|
|
20548
20548
|
function A2(a11) {
|
20549
20549
|
return (e) => (t2) => a11(t2, e);
|
20550
20550
|
}
|
20551
|
-
function
|
20551
|
+
function Bm(a11) {
|
20552
20552
|
return (e) => {
|
20553
20553
|
if (e.sessionStore)
|
20554
20554
|
return a11 ? e.sessionStore[a11] : e.sessionStore;
|
20555
20555
|
};
|
20556
20556
|
}
|
20557
|
-
function
|
20557
|
+
function Ea(a11) {
|
20558
20558
|
return a11 instanceof se || a11 instanceof U2;
|
20559
20559
|
}
|
20560
|
-
function
|
20560
|
+
function Oa(a11, e) {
|
20561
20561
|
var r2;
|
20562
20562
|
let t2 = $t.parse(a11.sdp);
|
20563
20563
|
if (!((r2 = t2.origin) != null && r2.username.startsWith("mozilla")))
|
@@ -20569,17 +20569,17 @@ function Na(a11, e) {
|
|
20569
20569
|
n2 && (s2.msid = (p2 = s2.msid) == null ? void 0 : p2.replace(/\s(.+)/, ` ${n2}`));
|
20570
20570
|
}), { type: a11.type, sdp: $t.write(t2) };
|
20571
20571
|
}
|
20572
|
-
function
|
20572
|
+
function xa(a11, e) {
|
20573
20573
|
var s2;
|
20574
20574
|
if (!(a11 != null && a11.sdp) || !e)
|
20575
20575
|
return;
|
20576
20576
|
let i2 = $t.parse(a11.sdp).media.find((o2) => oe(o2.mid) && parseInt(o2.mid) === parseInt(e));
|
20577
20577
|
return (s2 = i2 == null ? void 0 : i2.msid) == null ? void 0 : s2.split(" ")[1];
|
20578
20578
|
}
|
20579
|
-
function
|
20579
|
+
function Ua(a11) {
|
20580
20580
|
return a11.sdp.includes("usedtx=1") ? a11 : { type: a11.type, sdp: a11.sdp.replace("useinbandfec=1", "useinbandfec=1;usedtx=1") };
|
20581
20581
|
}
|
20582
|
-
function
|
20582
|
+
function un2(a11, e, t2, i2) {
|
20583
20583
|
try {
|
20584
20584
|
let r2 = new URL("/init", a11);
|
20585
20585
|
return i2 && i2.trim().length > 0 && r2.searchParams.set("region", i2.trim()), r2.searchParams.set("peer_id", e), r2.searchParams.set("user_agent_v2", t2), r2.toString();
|
@@ -20588,9 +20588,9 @@ function ln2(a11, e, t2, i2) {
|
|
20588
20588
|
throw d2.e(ur, s2.name, s2.message), s2;
|
20589
20589
|
}
|
20590
20590
|
}
|
20591
|
-
function
|
20591
|
+
function pn2(a11, e) {
|
20592
20592
|
var t2;
|
20593
|
-
return M2(m({}, a11), { rtcConfiguration: M2(m({}, a11.rtcConfiguration), { iceServers:
|
20593
|
+
return M2(m({}, a11), { rtcConfiguration: M2(m({}, a11.rtcConfiguration), { iceServers: Ba((t2 = a11.rtcConfiguration) == null ? void 0 : t2.ice_servers, e) }) });
|
20594
20594
|
}
|
20595
20595
|
function pr(a11) {
|
20596
20596
|
if (!a11 || a11.length === 0)
|
@@ -20606,7 +20606,7 @@ function pr(a11) {
|
|
20606
20606
|
throw S2.APIErrors.InvalidTokenFormat("INIT", `couldn't parse to json - ${i2.message}`);
|
20607
20607
|
}
|
20608
20608
|
}
|
20609
|
-
var import_ua_parser_js, import_lodash3, import_uuid3, import_uuid4, import_lodash4, import_uuid5, import_uuid6, import_uuid7, import_eventemitter2, import_eventemitter22, import_uuid8, import_eventemitter23, $t, import_eventemitter24, import_uuid9, import_uuid10,
|
20609
|
+
var import_ua_parser_js, import_lodash3, import_uuid3, import_uuid4, import_lodash4, import_uuid5, import_uuid6, import_uuid7, import_eventemitter2, import_eventemitter22, import_uuid8, import_eventemitter23, $t, import_eventemitter24, import_uuid9, import_uuid10, ja, Ja, Qa, Zt, za, is, rs, Ya, ts, m, M2, mr, Xa, J, c2, Mr, Sr, ei, ti, Za, ss, gr, as, cs, to, d2, Je, ge, O2, ds, Ue, ro, ic, Te, ps, Tr, ls, us, hs, ri, Re, Ie, ms, Qe, k2, f2, ao, S2, vr, Ss, le, gs, Ts, St, gt, fs, vs, H2, y2, kr, Q2, Pr, Er, ne, si, lo, uo, ft, He, Ce, Ps, So, go, oi, br, bs, Rs, Is, As, Hs, Be, Cs, Ls, ee, Ve, z2, Fe, De, ze, ce, se, Ye, vt, fo, _s, Rr, Ns, Ir, Os, Xe, Ar, Hr, Mt, Ze, xs, Mo, yo, yt, ni, ko, ci, Cr, pe, di, ve, F, et, li, tt, Bs, Vs, kt, G2, Fs, Gs, Me, Dr, wr, Ws, $s, U2, _r, Ge, fe, Ks, qs, bo, Or, Ro, js, Js, Pt, Nr, xr, ui, pi, it, rt, We, Et, he, hi, st, we, mi, Si, gi, bt, B2, Ho, Kh, qh, K, Ti, Qs, N2, zs, Ur, Co, _e, Qh, Lo, me, Do, te, ye, zh, Yh, ae, Y2, wo, Ys, Xh, Zh, Br, Xs, Vr, _o, tm, im, rm, sm, am, om, nm, cm, Rt, No, dm, ie, Zs, lm, um, Se, pm, at, Oo, ea, hm, ta, mm, Sm, gm, Tm, fm, vm, Mm, ym, km, ia, Rm, xo, Im, sa, Fr, aa, oa, na, ca, da, la, ua, pa, It, b2, Gr, At, ha, Uo, Bo, q2, Wr, Vo, Fo, Go, Wo, $o, X2, Um, Fm, Gm, fi, ma, Wm, $m, Km, Ko, qo, jm, Sa, Jm, jo, Qm, zm, Ym, Xm, Zm, eS, ga, Ta, iS, rS, fa, sS, aS, va, oS, nS, cS, Ma, ya, Jo, Qo, zo, dS, lS, uS, pS, hS, ka, bS, Yo, RS, IS, AS, Zo, en2, Mi, Ht, yi, Pa, $r, ki, Pi, ba, Ra, Ia, Kr, Aa, qr, $e, jr, Ei, re, Ct, _2, Lt, bi, Ri, Ha, Ca, ot, La, Ii, rn2, de, Ne, Ai, sn2, Da, wa, Hi, Ke, Ci, Dt, Li, Di, wi, wt, Jr, Pe, _t, Nt, _i, Ni, _a7, Ot, Oi, xt, xi, V, Ut, Ui, Bi, Vi, nt, Fi, Gi, C, Wi, $i, Bt, Ki, Vt, qi, ji, Ji, Qi, zi, Yi, Xi, Zi, er, j2, Na, tr, ir, rr, sr, ar, or, ct, dt, nr, cr, Ft, Gt, zr, Wt, Xr, lr, Ee, qe, Kt, qt, jt, Ba, ur, Jt, Qt, Va, I2, zt, Ga, hr, lt, $a, Wa, Mn, yn, kn, Yt, Pn, En, bn, Rn, Ka, In, qa, Zr, be, An, Hn, Cn, Ln, Dn, wn, _n, Nn, On, xn, es, Un, Bn, Vn, Fn, Gn, Wn;
|
20610
20610
|
var init_dist = __esm({
|
20611
20611
|
"../hms-video-store/dist/index.js"() {
|
20612
20612
|
"use strict";
|
@@ -20637,15 +20637,15 @@ var init_dist = __esm({
|
|
20637
20637
|
import_uuid9 = require("uuid");
|
20638
20638
|
import_uuid10 = require("uuid");
|
20639
20639
|
init_es();
|
20640
|
-
|
20641
|
-
|
20642
|
-
|
20640
|
+
ja = Object.defineProperty;
|
20641
|
+
Ja = Object.defineProperties;
|
20642
|
+
Qa = Object.getOwnPropertyDescriptors;
|
20643
20643
|
Zt = Object.getOwnPropertySymbols;
|
20644
|
-
|
20644
|
+
za = Object.getPrototypeOf;
|
20645
20645
|
is = Object.prototype.hasOwnProperty;
|
20646
20646
|
rs = Object.prototype.propertyIsEnumerable;
|
20647
|
-
|
20648
|
-
ts = (a11, e, t2) => e in a11 ?
|
20647
|
+
Ya = Reflect.get;
|
20648
|
+
ts = (a11, e, t2) => e in a11 ? ja(a11, e, { enumerable: true, configurable: true, writable: true, value: t2 }) : a11[e] = t2;
|
20649
20649
|
m = (a11, e) => {
|
20650
20650
|
for (var t2 in e || (e = {}))
|
20651
20651
|
is.call(e, t2) && ts(a11, t2, e[t2]);
|
@@ -20654,7 +20654,7 @@ var init_dist = __esm({
|
|
20654
20654
|
rs.call(e, t2) && ts(a11, t2, e[t2]);
|
20655
20655
|
return a11;
|
20656
20656
|
};
|
20657
|
-
M2 = (a11, e) =>
|
20657
|
+
M2 = (a11, e) => Ja(a11, Qa(e));
|
20658
20658
|
mr = (a11, e) => {
|
20659
20659
|
var t2 = {};
|
20660
20660
|
for (var i2 in a11)
|
@@ -20664,8 +20664,8 @@ var init_dist = __esm({
|
|
20664
20664
|
e.indexOf(i2) < 0 && rs.call(a11, i2) && (t2[i2] = a11[i2]);
|
20665
20665
|
return t2;
|
20666
20666
|
};
|
20667
|
-
|
20668
|
-
J = (a11, e, t2) => za(
|
20667
|
+
Xa = (a11, e) => () => (e || a11((e = { exports: {} }).exports, e), e.exports);
|
20668
|
+
J = (a11, e, t2) => Ya(za(a11), t2, e);
|
20669
20669
|
c2 = (a11, e, t2) => new Promise((i2, r2) => {
|
20670
20670
|
var s2 = (l2) => {
|
20671
20671
|
try {
|
@@ -20682,18 +20682,18 @@ var init_dist = __esm({
|
|
20682
20682
|
}, n2 = (l2) => l2.done ? i2(l2.value) : Promise.resolve(l2.value).then(s2, o2);
|
20683
20683
|
n2((t2 = t2.apply(a11, e)).next());
|
20684
20684
|
});
|
20685
|
-
Mr =
|
20686
|
-
|
20685
|
+
Mr = Xa((Fc, no) => {
|
20686
|
+
no.exports = { version: "0.12.14", 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"] };
|
20687
20687
|
});
|
20688
20688
|
Sr = ((n2) => (n2.Disconnected = "Disconnected", n2.Preview = "Preview", n2.Connecting = "Connecting", n2.Connected = "Connected", n2.Reconnecting = "Reconnecting", n2.Disconnecting = "Disconnecting", n2.Failed = "Failed", n2))(Sr || {});
|
20689
20689
|
ei = () => ({ room: { id: "", isConnected: false, name: "", peers: [], localPeer: "", roomState: "Disconnected", recording: { browser: { running: false }, server: { running: false }, hls: { running: false } }, rtmp: { running: false }, hls: { running: false, variants: [] }, sessionId: "" }, peers: {}, tracks: {}, playlist: { audio: { list: {}, selection: { id: "", hasPrevious: false, hasNext: false }, progress: 0, volume: 0, currentTime: 0, playbackRate: 1 }, video: { list: {}, selection: { id: "", hasPrevious: false, hasNext: false }, progress: 0, volume: 0, currentTime: 0, playbackRate: 1 } }, messages: { byID: {}, allIDs: [] }, speakers: {}, connectionQualities: {}, settings: { audioInputDeviceId: "", audioOutputDeviceId: "", videoInputDeviceId: "" }, devices: { audioInput: [], audioOutput: [], videoInput: [] }, roles: {}, roleChangeRequests: [], errors: [], sessionStore: {}, templateAppData: {}, polls: {}, whiteboards: {}, hideLocalPeer: false });
|
20690
20690
|
ti = () => ({ peerStats: {}, remoteTrackStats: {}, localTrackStats: {}, localPeer: { id: "" } });
|
20691
|
-
|
20691
|
+
Za = ((e) => (e.CHAT = "chat", e))(Za || {});
|
20692
20692
|
ss = ((t2) => (t2.INFO = "info", t2.ERROR = "error", t2))(ss || {});
|
20693
20693
|
gr = ((D2) => (D2.PEER_JOINED = "PEER_JOINED", D2.PEER_LEFT = "PEER_LEFT", D2.PEER_LIST = "PEER_LIST", D2.NEW_MESSAGE = "NEW_MESSAGE", D2.ERROR = "ERROR", D2.RECONNECTING = "RECONNECTING", D2.RECONNECTED = "RECONNECTED", D2.TRACK_ADDED = "TRACK_ADDED", D2.TRACK_REMOVED = "TRACK_REMOVED", D2.TRACK_MUTED = "TRACK_MUTED", D2.TRACK_UNMUTED = "TRACK_UNMUTED", D2.TRACK_DEGRADED = "TRACK_DEGRADED", D2.TRACK_RESTORED = "TRACK_RESTORED", D2.TRACK_DESCRIPTION_CHANGED = "TRACK_DESCRIPTION_CHANGED", D2.ROLE_UPDATED = "ROLE_UPDATED", D2.CHANGE_TRACK_STATE_REQUEST = "CHANGE_TRACK_STATE_REQUEST", D2.CHANGE_MULTI_TRACK_STATE_REQUEST = "CHANGE_MULTI_TRACK_STATE_REQUEST", D2.ROOM_ENDED = "ROOM_ENDED", D2.REMOVED_FROM_ROOM = "REMOVED_FROM_ROOM", D2.DEVICE_CHANGE_UPDATE = "DEVICE_CHANGE_UPDATE", D2.PLAYLIST_TRACK_ENDED = "PLAYLIST_TRACK_ENDED", D2.NAME_UPDATED = "NAME_UPDATED", D2.METADATA_UPDATED = "METADATA_UPDATED", D2.POLL_CREATED = "POLL_CREATED", D2.POLL_STARTED = "POLL_STARTED", D2.POLL_STOPPED = "POLL_STOPPED", D2.POLL_VOTES_UPDATED = "POLL_VOTES_UPDATED", D2.POLLS_LIST = "POLLS_LIST", D2.HAND_RAISE_CHANGED = "HAND_RAISE_CHANGED", D2.TRANSCRIPTION_STATE_UPDATED = "TRANSCRIPTION_STATE_UPDATED", D2))(gr || {});
|
20694
20694
|
as = ((t2) => (t2.audio = "audio", t2.video = "video", t2))(as || {});
|
20695
20695
|
cs = ((l2) => (l2[l2.VERBOSE = 0] = "VERBOSE", l2[l2.DEBUG = 1] = "DEBUG", l2[l2.INFO = 2] = "INFO", l2[l2.WARN = 3] = "WARN", l2[l2.TIME = 4] = "TIME", l2[l2.TIMEEND = 5] = "TIMEEND", l2[l2.ERROR = 6] = "ERROR", l2[l2.NONE = 7] = "NONE", l2))(cs || {});
|
20696
|
-
|
20696
|
+
to = typeof window != "undefined" && typeof window.expect != "undefined";
|
20697
20697
|
d2 = class {
|
20698
20698
|
static v(e, ...t2) {
|
20699
20699
|
this.log(0, e, ...t2);
|
@@ -20759,7 +20759,7 @@ var init_dist = __esm({
|
|
20759
20759
|
}
|
20760
20760
|
}
|
20761
20761
|
};
|
20762
|
-
d2.level =
|
20762
|
+
d2.level = to ? 7 : 0;
|
20763
20763
|
Je = class {
|
20764
20764
|
constructor(e) {
|
20765
20765
|
this.tracks = new Array();
|
@@ -20772,8 +20772,8 @@ var init_dist = __esm({
|
|
20772
20772
|
ge = new import_ua_parser_js.UAParser();
|
20773
20773
|
O2 = typeof window != "undefined";
|
20774
20774
|
Ue = typeof window == "undefined" && !((ds = ge.getBrowser().name) != null && ds.toLowerCase().includes("electron"));
|
20775
|
-
|
20776
|
-
|
20775
|
+
ro = () => !Ue;
|
20776
|
+
ic = ro();
|
20777
20777
|
Te = () => ge.getDevice().type === "mobile";
|
20778
20778
|
ps = () => typeof document != "undefined" && document.hidden;
|
20779
20779
|
Tr = () => {
|
@@ -20886,9 +20886,9 @@ var init_dist = __esm({
|
|
20886
20886
|
}
|
20887
20887
|
};
|
20888
20888
|
ms = ((i2) => (i2.CUSTOM = "CUSTOM", i2.LOCAL = "LOCAL", i2.HMS = "HMS", i2))(ms || {});
|
20889
|
-
Qe =
|
20890
|
-
|
20891
|
-
|
20889
|
+
Qe = so();
|
20890
|
+
k2 = { WebSocketConnectionErrors: { FAILED_TO_CONNECT: 1e3, WEBSOCKET_CONNECTION_LOST: 1003, ABNORMAL_CLOSE: 1006 }, APIErrors: { SERVER_ERRORS: 2e3, INIT_CONFIG_NOT_AVAILABLE: 2002, ENDPOINT_UNREACHABLE: 2003, INVALID_TOKEN_FORMAT: 2004 }, TracksErrors: { GENERIC_TRACK: 3e3, CANT_ACCESS_CAPTURE_DEVICE: 3001, DEVICE_NOT_AVAILABLE: 3002, DEVICE_IN_USE: 3003, DEVICE_LOST_MIDWAY: 3004, NOTHING_TO_RETURN: 3005, INVALID_VIDEO_SETTINGS: 3006, CODEC_CHANGE_NOT_PERMITTED: 3007, AUTOPLAY_ERROR: 3008, OVER_CONSTRAINED: 3009, NO_AUDIO_DETECTED: 3010, SYSTEM_DENIED_PERMISSION: 3011, CURRENT_TAB_NOT_SHARED: 3012, AUDIO_PLAYBACK_ERROR: 3013, SELECTED_DEVICE_MISSING: 3014 }, WebrtcErrors: { CREATE_OFFER_FAILED: 4001, CREATE_ANSWER_FAILED: 4002, SET_LOCAL_DESCRIPTION_FAILED: 4003, SET_REMOTE_DESCRIPTION_FAILED: 4004, ICE_FAILURE: 4005, ICE_DISCONNECTED: 4006, STATS_FAILED: 4007 }, WebsocketMethodErrors: { SERVER_ERRORS: 5e3, ALREADY_JOINED: 5001, CANNOT_JOIN_PREVIEW_IN_PROGRESS: 5002 }, GenericErrors: { NOT_CONNECTED: 6e3, SIGNALLING: 6001, UNKNOWN: 6002, NOT_READY: 6003, JSON_PARSING_FAILED: 6004, TRACK_METADATA_MISSING: 6005, RTC_TRACK_MISSING: 6006, PEER_METADATA_MISSING: 6007, INVALID_ROLE: 6008, PREVIEW_IN_PROGRESS: 6009, MISSING_MEDIADEVICES: 6010, MISSING_RTCPEERCONNECTION: 6011, LOCAL_STORAGE_ACCESS_DENIED: 6012, VALIDATION_FAILED: 6013 }, PlaylistErrors: { NO_ENTRY_TO_PLAY: 8001, NO_ENTRY_IS_PLAYING: 8002 } };
|
20891
|
+
f2 = class a2 extends Error {
|
20892
20892
|
constructor(t2, i2, r2, s2, o2, n2 = false) {
|
20893
20893
|
super(s2);
|
20894
20894
|
this.code = t2;
|
@@ -20917,113 +20917,113 @@ var init_dist = __esm({
|
|
20917
20917
|
}`;
|
20918
20918
|
}
|
20919
20919
|
};
|
20920
|
-
|
20920
|
+
ao = ["join", "offer", "answer", "trickle", "on-error", "JOIN"];
|
20921
20921
|
S2 = { WebSocketConnectionErrors: { FailedToConnect(a11, e = "") {
|
20922
|
-
return new
|
20922
|
+
return new f2(k2.WebSocketConnectionErrors.FAILED_TO_CONNECT, "WebsocketFailedToConnect", a11, `[WS]: ${e}`, `[WS]: ${e}`);
|
20923
20923
|
}, WebSocketConnectionLost(a11, e = "") {
|
20924
|
-
return new
|
20924
|
+
return new f2(k2.WebSocketConnectionErrors.WEBSOCKET_CONNECTION_LOST, "WebSocketConnectionLost", a11, "Network connection lost", e);
|
20925
20925
|
}, AbnormalClose(a11, e = "") {
|
20926
|
-
return new
|
20926
|
+
return new f2(k2.WebSocketConnectionErrors.ABNORMAL_CLOSE, "WebSocketAbnormalClose", a11, "Websocket closed abnormally", e);
|
20927
20927
|
} }, APIErrors: { ServerErrors(a11, e, t2 = "", i2 = true) {
|
20928
|
-
return new
|
20928
|
+
return new f2(a11, "ServerErrors", e, `[${e}]: Server error ${t2}`, t2, i2);
|
20929
20929
|
}, EndpointUnreachable(a11, e = "") {
|
20930
|
-
return new
|
20930
|
+
return new f2(k2.APIErrors.ENDPOINT_UNREACHABLE, "EndpointUnreachable", a11, `Endpoint is not reachable - ${e}`, e);
|
20931
20931
|
}, InvalidTokenFormat(a11, e = "") {
|
20932
|
-
return new
|
20932
|
+
return new f2(k2.APIErrors.INVALID_TOKEN_FORMAT, "InvalidTokenFormat", a11, `Token is not in proper JWT format - ${e}`, e, true);
|
20933
20933
|
}, InitConfigNotAvailable(a11, e = "") {
|
20934
|
-
return new
|
20934
|
+
return new f2(k2.APIErrors.INIT_CONFIG_NOT_AVAILABLE, "InitError", a11, `[INIT]: ${e}`, `[INIT]: ${e}`);
|
20935
20935
|
} }, TracksErrors: { GenericTrack(a11, e = "") {
|
20936
|
-
return new
|
20936
|
+
return new f2(k2.TracksErrors.GENERIC_TRACK, "GenericTrack", a11, `[TRACK]: ${e}`, `[TRACK]: ${e}`);
|
20937
20937
|
}, CantAccessCaptureDevice(a11, e, t2 = "") {
|
20938
|
-
return new
|
20938
|
+
return new f2(k2.TracksErrors.CANT_ACCESS_CAPTURE_DEVICE, "CantAccessCaptureDevice", a11, `User denied permission to access capture device - ${e}`, t2);
|
20939
20939
|
}, DeviceNotAvailable(a11, e, t2 = "") {
|
20940
|
-
return new
|
20940
|
+
return new f2(k2.TracksErrors.DEVICE_NOT_AVAILABLE, "DeviceNotAvailable", a11, `[TRACK]: Capture device is no longer available - ${e}`, t2);
|
20941
20941
|
}, DeviceInUse(a11, e, t2 = "") {
|
20942
|
-
return new
|
20942
|
+
return new f2(k2.TracksErrors.DEVICE_IN_USE, "DeviceInUse", a11, `[TRACK]: Capture device is in use by another application - ${e}`, t2);
|
20943
20943
|
}, DeviceLostMidway(a11, e, t2 = "") {
|
20944
|
-
return new
|
20944
|
+
return new f2(k2.TracksErrors.DEVICE_LOST_MIDWAY, "DeviceLostMidway", a11, `Lost access to capture device midway - ${e}`, t2);
|
20945
20945
|
}, NothingToReturn(a11, e = "", t2 = "There is no media to return. Please select either video or audio or both.") {
|
20946
|
-
return new
|
20946
|
+
return new f2(k2.TracksErrors.NOTHING_TO_RETURN, "NothingToReturn", a11, t2, e);
|
20947
20947
|
}, InvalidVideoSettings(a11, e = "") {
|
20948
|
-
return new
|
20948
|
+
return new f2(k2.TracksErrors.INVALID_VIDEO_SETTINGS, "InvalidVideoSettings", a11, "Cannot enable simulcast when no video settings are provided", e);
|
20949
20949
|
}, AutoplayBlocked(a11, e = "") {
|
20950
|
-
return new
|
20950
|
+
return new f2(k2.TracksErrors.AUTOPLAY_ERROR, "AutoplayBlocked", a11, "Autoplay blocked because the user didn't interact with the document first", e);
|
20951
20951
|
}, CodecChangeNotPermitted(a11, e = "") {
|
20952
|
-
return new
|
20952
|
+
return new f2(k2.TracksErrors.CODEC_CHANGE_NOT_PERMITTED, "CodecChangeNotPermitted", a11, "Codec can't be changed mid call.", e);
|
20953
20953
|
}, OverConstrained(a11, e, t2 = "") {
|
20954
|
-
return new
|
20954
|
+
return new f2(k2.TracksErrors.OVER_CONSTRAINED, "OverConstrained", a11, `[TRACK]: Requested constraints cannot be satisfied with the device hardware - ${e}`, t2);
|
20955
20955
|
}, NoAudioDetected(a11, e = "Please check the mic or use another audio input") {
|
20956
|
-
return new
|
20956
|
+
return new f2(k2.TracksErrors.NO_AUDIO_DETECTED, "NoAudioDetected", a11, "No audio input detected from microphone", e);
|
20957
20957
|
}, SystemDeniedPermission(a11, e, t2 = "") {
|
20958
|
-
return new
|
20958
|
+
return new f2(k2.TracksErrors.SYSTEM_DENIED_PERMISSION, "SystemDeniedPermission", a11, `Operating System denied permission to access capture device - ${e}`, t2);
|
20959
20959
|
}, CurrentTabNotShared() {
|
20960
|
-
return new
|
20960
|
+
return new f2(k2.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");
|
20961
20961
|
}, AudioPlaybackError(a11) {
|
20962
|
-
return new
|
20962
|
+
return new f2(k2.TracksErrors.AUDIO_PLAYBACK_ERROR, "Audio playback error", "TRACK", a11, a11);
|
20963
20963
|
}, SelectedDeviceMissing(a11) {
|
20964
|
-
return new
|
20964
|
+
return new f2(k2.TracksErrors.SELECTED_DEVICE_MISSING, "SelectedDeviceMissing", "TRACK", `Could not detect selected ${a11} device`, `Please check connection to the ${a11} device`, false);
|
20965
20965
|
} }, WebrtcErrors: { CreateOfferFailed(a11, e = "") {
|
20966
|
-
return new
|
20966
|
+
return new f2(k2.WebrtcErrors.CREATE_OFFER_FAILED, "CreateOfferFailed", a11, `[${a11.toString()}]: Failed to create offer. `, e);
|
20967
20967
|
}, CreateAnswerFailed(a11, e = "") {
|
20968
|
-
return new
|
20968
|
+
return new f2(k2.WebrtcErrors.CREATE_ANSWER_FAILED, "CreateAnswerFailed", a11, `[${a11.toString()}]: Failed to create answer. `, e);
|
20969
20969
|
}, SetLocalDescriptionFailed(a11, e = "") {
|
20970
|
-
return new
|
20970
|
+
return new f2(k2.WebrtcErrors.SET_LOCAL_DESCRIPTION_FAILED, "SetLocalDescriptionFailed", a11, `[${a11.toString()}]: Failed to set offer. `, e);
|
20971
20971
|
}, SetRemoteDescriptionFailed(a11, e = "") {
|
20972
|
-
return new
|
20972
|
+
return new f2(k2.WebrtcErrors.SET_REMOTE_DESCRIPTION_FAILED, "SetRemoteDescriptionFailed", a11, `[${a11.toString()}]: Failed to set answer. `, e, true);
|
20973
20973
|
}, ICEFailure(a11, e = "", t2 = false) {
|
20974
|
-
return new
|
20974
|
+
return new f2(k2.WebrtcErrors.ICE_FAILURE, "ICEFailure", a11, `[${a11.toString()}]: Ice connection state FAILED`, e, t2);
|
20975
20975
|
}, ICEDisconnected(a11, e = "") {
|
20976
|
-
return new
|
20976
|
+
return new f2(k2.WebrtcErrors.ICE_DISCONNECTED, "ICEDisconnected", a11, `[${a11.toString()}]: Ice connection state DISCONNECTED`, e);
|
20977
20977
|
}, StatsFailed(a11, e = "") {
|
20978
|
-
return new
|
20978
|
+
return new f2(k2.WebrtcErrors.STATS_FAILED, "StatsFailed", a11, `Failed to WebRTC get stats - ${e}`, e);
|
20979
20979
|
} }, WebsocketMethodErrors: { ServerErrors(a11, e, t2) {
|
20980
|
-
return new
|
20980
|
+
return new f2(a11, "ServerErrors", e, t2, t2, ao.includes(e));
|
20981
20981
|
}, AlreadyJoined(a11, e = "") {
|
20982
|
-
return new
|
20982
|
+
return new f2(k2.WebsocketMethodErrors.ALREADY_JOINED, "AlreadyJoined", a11, "[JOIN]: You have already joined this room.", e);
|
20983
20983
|
}, CannotJoinPreviewInProgress(a11, e = "") {
|
20984
|
-
return new
|
20984
|
+
return new f2(k2.WebsocketMethodErrors.CANNOT_JOIN_PREVIEW_IN_PROGRESS, "CannotJoinPreviewInProgress", a11, "[JOIN]: Cannot join if preview is in progress", e);
|
20985
20985
|
} }, GenericErrors: { NotConnected(a11, e = "") {
|
20986
|
-
return new
|
20986
|
+
return new f2(k2.GenericErrors.NOT_CONNECTED, "NotConnected", a11, "Client is not connected", e);
|
20987
20987
|
}, Signalling(a11, e) {
|
20988
|
-
return new
|
20988
|
+
return new f2(k2.GenericErrors.SIGNALLING, "Signalling", a11, `Unknown signalling error: ${a11.toString()} ${e} `, e);
|
20989
20989
|
}, Unknown(a11, e) {
|
20990
|
-
return new
|
20990
|
+
return new f2(k2.GenericErrors.UNKNOWN, "Unknown", a11, `Unknown exception: ${e}`, e);
|
20991
20991
|
}, NotReady(a11, e = "") {
|
20992
|
-
return new
|
20992
|
+
return new f2(k2.GenericErrors.NOT_READY, "NotReady", a11, e, e);
|
20993
20993
|
}, JsonParsingFailed(a11, e, t2 = "") {
|
20994
|
-
return new
|
20994
|
+
return new f2(k2.GenericErrors.JSON_PARSING_FAILED, "JsonParsingFailed", a11, `Failed to parse JSON message - ${e}`, t2);
|
20995
20995
|
}, TrackMetadataMissing(a11, e = "") {
|
20996
|
-
return new
|
20996
|
+
return new f2(k2.GenericErrors.TRACK_METADATA_MISSING, "TrackMetadataMissing", a11, "Track Metadata Missing", e);
|
20997
20997
|
}, RTCTrackMissing(a11, e = "") {
|
20998
|
-
return new
|
20998
|
+
return new f2(k2.GenericErrors.RTC_TRACK_MISSING, "RTCTrackMissing", a11, "RTC Track missing", e);
|
20999
20999
|
}, PeerMetadataMissing(a11, e = "") {
|
21000
|
-
return new
|
21000
|
+
return new f2(k2.GenericErrors.PEER_METADATA_MISSING, "PeerMetadataMissing", a11, "Peer Metadata Missing", e);
|
21001
21001
|
}, ValidationFailed(a11, e) {
|
21002
|
-
return new
|
21002
|
+
return new f2(k2.GenericErrors.VALIDATION_FAILED, "ValidationFailed", "VALIDATION", a11, e ? JSON.stringify(e) : "");
|
21003
21003
|
}, InvalidRole(a11, e) {
|
21004
|
-
return new
|
21004
|
+
return new f2(k2.GenericErrors.INVALID_ROLE, "InvalidRole", a11, "Invalid role. Join with valid role", e, true);
|
21005
21005
|
}, PreviewAlreadyInProgress(a11, e = "") {
|
21006
|
-
return new
|
21006
|
+
return new f2(k2.GenericErrors.PREVIEW_IN_PROGRESS, "PreviewAlreadyInProgress", a11, "[Preview]: Cannot join if preview is in progress", e);
|
21007
21007
|
}, LocalStorageAccessDenied(a11 = "Access to localStorage has been denied") {
|
21008
|
-
return new
|
21008
|
+
return new f2(k2.GenericErrors.LOCAL_STORAGE_ACCESS_DENIED, "LocalStorageAccessDenied", "NONE", "LocalStorageAccessDenied", a11);
|
21009
21009
|
}, MissingMediaDevices() {
|
21010
|
-
return new
|
21010
|
+
return new f2(k2.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);
|
21011
21011
|
}, MissingRTCPeerConnection() {
|
21012
|
-
return new
|
21012
|
+
return new f2(k2.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);
|
21013
21013
|
} }, MediaPluginErrors: { PlatformNotSupported(a11, e = "") {
|
21014
|
-
return new
|
21014
|
+
return new f2(7001, "PlatformNotSupported", a11, "Check HMS Docs to see the list of supported platforms", e);
|
21015
21015
|
}, InitFailed(a11, e = "") {
|
21016
|
-
return new
|
21016
|
+
return new f2(7002, "InitFailed", a11, "Plugin init failed", e);
|
21017
21017
|
}, ProcessingFailed(a11, e = "") {
|
21018
|
-
return new
|
21018
|
+
return new f2(7003, "ProcessingFailed", a11, "Plugin processing failed", e);
|
21019
21019
|
}, AddAlreadyInProgress(a11, e = "") {
|
21020
|
-
return new
|
21020
|
+
return new f2(7004, "AddAlreadyInProgress", a11, "Plugin add already in progress", e);
|
21021
21021
|
}, DeviceNotSupported(a11, e = "") {
|
21022
|
-
return new
|
21022
|
+
return new f2(7005, "DeviceNotSupported", a11, "Check HMS Docs to see the list of supported devices", e);
|
21023
21023
|
} }, PlaylistErrors: { NoEntryToPlay(a11, e) {
|
21024
|
-
return new
|
21024
|
+
return new f2(k2.PlaylistErrors.NO_ENTRY_TO_PLAY, "NoEntryToPlay", a11, "Reached end of playlist", e);
|
21025
21025
|
}, NoEntryPlaying(a11, e) {
|
21026
|
-
return new
|
21026
|
+
return new f2(k2.PlaylistErrors.NO_ENTRY_IS_PLAYING, "NoEntryIsPlaying", a11, "No entry is playing at this time", e);
|
21027
21027
|
} } };
|
21028
21028
|
vr = class {
|
21029
21029
|
constructor() {
|
@@ -21205,7 +21205,7 @@ var init_dist = __esm({
|
|
21205
21205
|
return e = m(m({}, i2), e), e;
|
21206
21206
|
}
|
21207
21207
|
static getErrorProperties(e) {
|
21208
|
-
return e ? e instanceof
|
21208
|
+
return e ? e instanceof f2 ? e.toAnalyticsProperties() : { error_name: e.name, error_message: e.message, error_description: e.cause } : {};
|
21209
21209
|
}
|
21210
21210
|
};
|
21211
21211
|
y2.KEY_REQUESTED_AT = "requested_at", y2.KEY_RESPONDED_AT = "responded_at";
|
@@ -21312,8 +21312,8 @@ var init_dist = __esm({
|
|
21312
21312
|
delete this.addedTimestamps[e], delete this.initTime[e], delete this.pluginAdded[e], delete this.pluginSampleRate[e];
|
21313
21313
|
}
|
21314
21314
|
};
|
21315
|
-
|
21316
|
-
|
21315
|
+
lo = 48e3;
|
21316
|
+
uo = () => navigator.userAgent.indexOf("Firefox") !== -1;
|
21317
21317
|
ft = class {
|
21318
21318
|
constructor(e, t2, i2) {
|
21319
21319
|
this.eventBus = t2;
|
@@ -21478,7 +21478,7 @@ var init_dist = __esm({
|
|
21478
21478
|
});
|
21479
21479
|
}
|
21480
21480
|
createAudioContext() {
|
21481
|
-
this.audioContext || (
|
21481
|
+
this.audioContext || (uo() ? this.audioContext = new AudioContext() : this.audioContext = new AudioContext({ sampleRate: lo }));
|
21482
21482
|
}
|
21483
21483
|
};
|
21484
21484
|
He = { audioContext: null, getAudioContext() {
|
@@ -21528,8 +21528,8 @@ var init_dist = __esm({
|
|
21528
21528
|
}
|
21529
21529
|
};
|
21530
21530
|
})()`;
|
21531
|
-
|
21532
|
-
|
21531
|
+
So = 35;
|
21532
|
+
go = 5;
|
21533
21533
|
oi = class {
|
21534
21534
|
constructor(e, t2, i2) {
|
21535
21535
|
this.track = e;
|
@@ -21579,7 +21579,7 @@ var init_dist = __esm({
|
|
21579
21579
|
});
|
21580
21580
|
}
|
21581
21581
|
sendAudioLevel(e = 0) {
|
21582
|
-
if (e = e >
|
21582
|
+
if (e = e > So ? e : 0, Math.abs(this.audioLevel - e) > go) {
|
21583
21583
|
this.audioLevel = e;
|
21584
21584
|
let i2 = { track: this.track, audioLevel: this.audioLevel };
|
21585
21585
|
this.audioLevelEvent.publish(i2);
|
@@ -21626,7 +21626,8 @@ var init_dist = __esm({
|
|
21626
21626
|
As = ((r2) => (r2.INITIALISED = "initialised", r2.STARTED = "started", r2.STOPPED = "stopped", r2.FAILED = "failed", r2))(As || {});
|
21627
21627
|
Hs = ((e) => (e.CAPTION = "caption", e))(Hs || {});
|
21628
21628
|
Be = { f: "high", h: "medium", q: "low" };
|
21629
|
-
Cs = ((
|
21629
|
+
Cs = ((t2) => (t2.VOICE = "voice", t2.MUSIC = "music", t2))(Cs || {});
|
21630
|
+
Ls = ((i2) => (i2.videoInput = "videoInput", i2.audioInput = "audioInput", i2.audioOutput = "audioOutput", i2))(Ls || {});
|
21630
21631
|
ee = class {
|
21631
21632
|
constructor() {
|
21632
21633
|
this._volume = 1;
|
@@ -21653,7 +21654,7 @@ var init_dist = __esm({
|
|
21653
21654
|
return this._deviceId = e, this;
|
21654
21655
|
}
|
21655
21656
|
audioMode(e = "voice") {
|
21656
|
-
return this._audioMode = e, this._audioMode === "music"
|
21657
|
+
return this._audioMode = e, this._audioMode === "music" ? this._maxBitrate = 320 : this._maxBitrate = 32, this;
|
21657
21658
|
}
|
21658
21659
|
advanced(e) {
|
21659
21660
|
return this._advanced = e, this;
|
@@ -21664,7 +21665,7 @@ var init_dist = __esm({
|
|
21664
21665
|
};
|
21665
21666
|
Ve = class {
|
21666
21667
|
constructor(e, t2, i2, r2, s2, o2) {
|
21667
|
-
this.volume = e, this.codec = t2, this.maxBitrate = i2, this.deviceId = r2, this.advanced = s2, this.audioMode = o2, this.audioMode === "music"
|
21668
|
+
this.volume = e, this.codec = t2, this.maxBitrate = i2, this.deviceId = r2, this.advanced = s2, this.audioMode = o2, this.audioMode === "music" ? this.maxBitrate = 320 : this.maxBitrate = 32;
|
21668
21669
|
}
|
21669
21670
|
toConstraints() {
|
21670
21671
|
return { deviceId: this.deviceId, advanced: this.audioMode === "music" ? [] : this.advanced };
|
@@ -21784,11 +21785,11 @@ var init_dist = __esm({
|
|
21784
21785
|
yield this.transceiver.sender.replaceTrack(this.processedTrack || this.nativeTrack);
|
21785
21786
|
});
|
21786
21787
|
this.handleSettingsChange = (t3) => c2(this, null, function* () {
|
21787
|
-
let i3 = this.stream, r3 =
|
21788
|
+
let i3 = this.stream, r3 = ws(t3, this.settings);
|
21788
21789
|
(r3("maxBitrate") || r3("audioMode")) && t3.maxBitrate && (yield i3.setMaxBitrateAndFramerate(this, t3)), (r3("advanced") || r3("audioMode")) && (yield this.replaceTrackWith(t3));
|
21789
21790
|
});
|
21790
21791
|
this.handleDeviceChange = (t3, i3 = false) => c2(this, null, function* () {
|
21791
|
-
if (
|
21792
|
+
if (ws(t3, this.settings)("deviceId")) {
|
21792
21793
|
this.manuallySelectedDeviceId = i3 ? this.manuallySelectedDeviceId : t3.deviceId, d2.d(this.TAG, "device change", "manual selection:", this.manuallySelectedDeviceId, "new device:", t3.deviceId), yield this.replaceTrackWith(t3);
|
21793
21794
|
let s3 = this.nativeTrack.getSettings().groupId;
|
21794
21795
|
!i3 && t3.deviceId && (Q2.updateSelection("audioInput", { deviceId: t3.deviceId, groupId: s3 }), this.eventBus.deviceChange.publish({ isUserSelection: true, type: "audioInput", selection: { deviceId: t3.deviceId, groupId: s3 } }));
|
@@ -21949,8 +21950,8 @@ var init_dist = __esm({
|
|
21949
21950
|
}
|
21950
21951
|
};
|
21951
21952
|
vt = { none: -1, low: 0, medium: 1, high: 2 };
|
21952
|
-
|
21953
|
-
|
21953
|
+
fo = 0.5;
|
21954
|
+
_s = (a11, e) => {
|
21954
21955
|
let t2 = "high", i2 = e.width > e.height ? "width" : "height", r2 = [...a11].sort((o2, n2) => vt[o2.layer] - vt[n2.layer]), s2 = e[i2] * ((window == null ? void 0 : window.devicePixelRatio) || 1);
|
21955
21956
|
for (let o2 = 0; o2 < r2.length; o2++) {
|
21956
21957
|
let { resolution: n2, layer: l2 } = r2[o2], u2 = n2[i2];
|
@@ -21959,7 +21960,7 @@ var init_dist = __esm({
|
|
21959
21960
|
break;
|
21960
21961
|
} else {
|
21961
21962
|
let p2 = r2[o2 + 1], h2 = p2 ? p2.resolution[i2] : Number.POSITIVE_INFINITY;
|
21962
|
-
if ((s2 - u2) / (h2 - u2) <
|
21963
|
+
if ((s2 - u2) / (h2 - u2) < fo) {
|
21963
21964
|
t2 = l2;
|
21964
21965
|
break;
|
21965
21966
|
}
|
@@ -21994,7 +21995,7 @@ var init_dist = __esm({
|
|
21994
21995
|
return e || d2.w(this.TAG, "IntersectionObserver is not supported, fallback will be used instead"), e;
|
21995
21996
|
}
|
21996
21997
|
};
|
21997
|
-
|
21998
|
+
Ns = new Rr();
|
21998
21999
|
Ir = class {
|
21999
22000
|
constructor() {
|
22000
22001
|
this.TAG = "[HMSResizeObserverWrapper]";
|
@@ -22022,7 +22023,7 @@ var init_dist = __esm({
|
|
22022
22023
|
return e || d2.w(this.TAG, "Resize Observer is not supported"), e;
|
22023
22024
|
}
|
22024
22025
|
};
|
22025
|
-
|
22026
|
+
Os = new Ir();
|
22026
22027
|
Xe = class {
|
22027
22028
|
constructor(e) {
|
22028
22029
|
this.track = e;
|
@@ -22066,7 +22067,7 @@ var init_dist = __esm({
|
|
22066
22067
|
return Array.from(this.videoElements);
|
22067
22068
|
}
|
22068
22069
|
init() {
|
22069
|
-
O2 && (this.resizeObserver =
|
22070
|
+
O2 && (this.resizeObserver = Os, this.intersectionObserver = Ns);
|
22070
22071
|
}
|
22071
22072
|
isElementInViewport(e) {
|
22072
22073
|
let t2 = e.offsetTop, i2 = e.offsetLeft, r2 = e.offsetWidth, s2 = e.offsetHeight, { hidden: o2 } = e, { opacity: n2, display: l2 } = getComputedStyle(e);
|
@@ -22086,7 +22087,7 @@ var init_dist = __esm({
|
|
22086
22087
|
let { width: r2, height: s2 } = i2;
|
22087
22088
|
if (r2 === 0 || s2 === 0)
|
22088
22089
|
continue;
|
22089
|
-
let o2 =
|
22090
|
+
let o2 = _s(this.track.getSimulcastDefinitions(), { width: r2, height: s2 });
|
22090
22091
|
e ? e = vt[o2] > vt[e] ? o2 : e : e = o2;
|
22091
22092
|
}
|
22092
22093
|
e && (d2.d(this.TAG, `selecting max layer ${e} for the track`, `${this.track}`), yield this.track.setPreferredLayer(e));
|
@@ -22174,9 +22175,9 @@ var init_dist = __esm({
|
|
22174
22175
|
delete this.addedTimestamps[e], delete this.initTime[e], delete this.processingAvgs[e], delete this.pluginAdded[e], delete this.pluginInputFrameRate[e], delete this.pluginFrameRate[e];
|
22175
22176
|
}
|
22176
22177
|
};
|
22177
|
-
|
22178
|
-
|
22179
|
-
|
22178
|
+
xs = 24;
|
22179
|
+
Mo = 320;
|
22180
|
+
yo = 240;
|
22180
22181
|
yt = class {
|
22181
22182
|
constructor(e, t2) {
|
22182
22183
|
this.TAG = "[VideoPluginsManager]";
|
@@ -22221,7 +22222,7 @@ var init_dist = __esm({
|
|
22221
22222
|
d2.w(this.TAG, `plugin - ${e.getName()} already added.`);
|
22222
22223
|
return;
|
22223
22224
|
}
|
22224
|
-
let r2 = this.hmsTrack.getMediaTrackSettings().frameRate ||
|
22225
|
+
let r2 = this.hmsTrack.getMediaTrackSettings().frameRate || xs, s2 = 0;
|
22225
22226
|
t2 && t2 > 0 ? (d2.i(this.TAG, `adding plugin ${e.getName()} with framerate ${t2}`), t2 < r2 && (s2 = Math.ceil(r2 / t2) - 1), this.analytics.added(i2, r2, t2)) : (d2.i(this.TAG, `adding plugin ${e.getName()}`), this.analytics.added(i2, r2)), d2.i(this.TAG, "numFrames to skip processing", s2), this.pluginNumFramesToSkip[i2] = s2, this.pluginNumFramesSkipped[i2] = s2, this.validateAndThrow(i2, e);
|
22226
22227
|
try {
|
22227
22228
|
if (yield this.analytics.initWithTime(i2, () => c2(this, null, function* () {
|
@@ -22309,7 +22310,7 @@ var init_dist = __esm({
|
|
22309
22310
|
pluginsLoop() {
|
22310
22311
|
return c2(this, null, function* () {
|
22311
22312
|
for (; this.pluginsLoopRunning; ) {
|
22312
|
-
let e = this.hmsTrack.getMediaTrackSettings().frameRate ||
|
22313
|
+
let e = this.hmsTrack.getMediaTrackSettings().frameRate || xs, t2 = Math.floor(1e3 / e);
|
22313
22314
|
if (!this.hmsTrack.enabled || this.hmsTrack.nativeTrack.readyState === "ended") {
|
22314
22315
|
this.pluginsLoopState === "running" && this.resetCanvases(), this.pluginsLoopState = "paused", yield this.reusableWorker.sleep(t2);
|
22315
22316
|
continue;
|
@@ -22385,7 +22386,7 @@ var init_dist = __esm({
|
|
22385
22386
|
return c2(this, null, function* () {
|
22386
22387
|
if (!this.inputCanvas || !this.inputVideo)
|
22387
22388
|
return;
|
22388
|
-
let { width: e =
|
22389
|
+
let { width: e = Mo, height: t2 = yo } = this.hmsTrack.getMediaTrackSettings();
|
22389
22390
|
this.inputCanvas.height !== t2 && (this.inputCanvas.height = t2), this.inputCanvas.width !== e && (this.inputCanvas.width = e), this.inputCanvas.getContext("2d").drawImage(this.inputVideo, 0, 0, e, t2);
|
22390
22391
|
});
|
22391
22392
|
}
|
@@ -22444,7 +22445,7 @@ var init_dist = __esm({
|
|
22444
22445
|
return Array.from(this.plugins).map((e) => e.getName());
|
22445
22446
|
}
|
22446
22447
|
};
|
22447
|
-
|
22448
|
+
ko = ["init_response_time", "ws_connect_time", "on_policy_change_time", "local_audio_track_time", "local_video_track_time", "peer_list_time", "room_state_time", "join_response_time"];
|
22448
22449
|
ci = class {
|
22449
22450
|
constructor() {
|
22450
22451
|
this.eventPerformanceMeasures = {};
|
@@ -22465,7 +22466,7 @@ var init_dist = __esm({
|
|
22465
22466
|
return (t2 = this.eventPerformanceMeasures[e]) == null ? void 0 : t2.duration;
|
22466
22467
|
}
|
22467
22468
|
getTimes(...e) {
|
22468
|
-
return [...
|
22469
|
+
return [...ko, ...e].reduce((t2, i2) => M2(m({}, t2), { [i2]: this.getTimeTaken(i2) }), {});
|
22469
22470
|
}
|
22470
22471
|
cleanup() {
|
22471
22472
|
this.eventPerformanceMeasures = {};
|
@@ -22484,7 +22485,6 @@ var init_dist = __esm({
|
|
22484
22485
|
}
|
22485
22486
|
getTracksToPublish() {
|
22486
22487
|
return c2(this, arguments, function* (e = Cr) {
|
22487
|
-
var T, g2, f2, P8;
|
22488
22488
|
let t2 = this.getAVTrackSettings(e);
|
22489
22489
|
if (!t2)
|
22490
22490
|
return [];
|
@@ -22492,13 +22492,13 @@ var init_dist = __esm({
|
|
22492
22492
|
if (u2 && p2)
|
22493
22493
|
return [];
|
22494
22494
|
let h2 = { audio: i2 && !n2 && (e.isAudioMuted ? "empty" : true), video: r2 && !o2 && (e.isVideoMuted ? "empty" : true) };
|
22495
|
-
h2.audio &&
|
22495
|
+
h2.audio && this.analyticsTimer.start("local_audio_track_time"), h2.video && this.analyticsTimer.start("local_video_track_time");
|
22496
22496
|
try {
|
22497
22497
|
d2.d(this.TAG, "Init Local Tracks", { fetchTrackOptions: h2 }), s2 = yield this.getLocalTracks(h2, t2, l2);
|
22498
|
-
} catch (
|
22499
|
-
s2 = yield this.retryGetLocalTracks(
|
22498
|
+
} catch (T) {
|
22499
|
+
s2 = yield this.retryGetLocalTracks(T, t2, h2, l2);
|
22500
22500
|
}
|
22501
|
-
return h2.audio &&
|
22501
|
+
return h2.audio && this.analyticsTimer.end("local_audio_track_time"), h2.video && this.analyticsTimer.end("local_video_track_time"), o2 && r2 && !u2 && s2.push(o2), n2 && i2 && !p2 && s2.push(n2), s2;
|
22502
22502
|
});
|
22503
22503
|
}
|
22504
22504
|
getLocalTracks() {
|
@@ -22529,8 +22529,8 @@ var init_dist = __esm({
|
|
22529
22529
|
r2.srcObject = e, r2.addEventListener("loadedmetadata", () => c2(this, null, function* () {
|
22530
22530
|
let { videoWidth: l2, videoHeight: u2 } = r2, p2 = i2.screen, h2 = p2.width * p2.height, T = l2 / u2, g2 = p2.width / p2.height;
|
22531
22531
|
if (T > g2) {
|
22532
|
-
let
|
22533
|
-
l2 * u2 > h2 ? (
|
22532
|
+
let v2 = t2.video, E2 = T / g2, P8 = Math.sqrt(E2);
|
22533
|
+
l2 * u2 > h2 ? (v2.width = l2 / P8, v2.height = u2 / P8) : (v2.height = u2 * P8, v2.width = l2 * P8), yield e.getVideoTracks()[0].applyConstraints(v2);
|
22534
22534
|
}
|
22535
22535
|
}));
|
22536
22536
|
});
|
@@ -22548,8 +22548,8 @@ var init_dist = __esm({
|
|
22548
22548
|
d2.d("retrieving screenshare with ", { config: i2 }, { constraints: s2 }), o2 = yield navigator.mediaDevices.getDisplayMedia(s2), t2 && (yield this.optimizeScreenShareConstraint(o2, s2));
|
22549
22549
|
} catch (g2) {
|
22550
22550
|
d2.w(this.TAG, "error in getting screenshare - ", g2);
|
22551
|
-
let
|
22552
|
-
throw this.eventBus.analytics.publish(y2.publish({ error:
|
22551
|
+
let v2 = Ae(g2, "screen");
|
22552
|
+
throw this.eventBus.analytics.publish(y2.publish({ error: v2, devices: this.deviceManager.getDevices(), settings: new ze(r2 == null ? void 0 : r2.video, r2 == null ? void 0 : r2.audio, false) })), v2;
|
22553
22553
|
}
|
22554
22554
|
let n2 = [], l2 = new Ge(o2), u2 = o2.getVideoTracks()[0], p2 = new F(l2, u2, "screen", this.eventBus, r2 == null ? void 0 : r2.video, this.store.getRoom());
|
22555
22555
|
p2.setSimulcastDefinitons(this.store.getSimulcastDefinitionsForPeer(this.store.getLocalPeer(), "screen"));
|
@@ -22557,7 +22557,7 @@ var init_dist = __esm({
|
|
22557
22557
|
let g2 = this.validateCurrentTabCapture(p2, i2.forceCurrentTab);
|
22558
22558
|
p2.isCurrentTab = g2, yield p2.cropTo(i2.cropTarget);
|
22559
22559
|
} catch (g2) {
|
22560
|
-
throw o2.getTracks().forEach((
|
22560
|
+
throw o2.getTracks().forEach((v2) => v2.stop()), g2;
|
22561
22561
|
}
|
22562
22562
|
n2.push(p2);
|
22563
22563
|
let h2 = o2.getAudioTracks()[0];
|
@@ -22631,16 +22631,16 @@ var init_dist = __esm({
|
|
22631
22631
|
}
|
22632
22632
|
retryGetLocalTracks(e, t2, i2, r2) {
|
22633
22633
|
return c2(this, null, function* () {
|
22634
|
-
if (e instanceof
|
22634
|
+
if (e instanceof f2 && e.action === "TRACK") {
|
22635
22635
|
this.observer.onFailure(e);
|
22636
|
-
let s2 = e.code ===
|
22636
|
+
let s2 = e.code === k2.TracksErrors.OVER_CONSTRAINED, o2 = e.message.includes("audio"), n2 = e.message.includes("video");
|
22637
22637
|
if (s2) {
|
22638
22638
|
let l2 = new De().video(new Fe()).audio(new Ve()).build();
|
22639
22639
|
d2.w(this.TAG, "Fetch AV Tracks failed with overconstrained error", { fetchTrackOptions: i2 }, { error: e });
|
22640
22640
|
try {
|
22641
22641
|
return yield this.getLocalTracks(i2, l2, r2);
|
22642
22642
|
} catch (u2) {
|
22643
|
-
let p2 = u2 instanceof
|
22643
|
+
let p2 = u2 instanceof f2 ? u2.nativeError : u2, h2 = u2;
|
22644
22644
|
if ((p2 == null ? void 0 : p2.name) === "OverconstrainedError") {
|
22645
22645
|
let T = S2.TracksErrors.GenericTrack("TRACK", "Overconstrained error after dropping all constraints");
|
22646
22646
|
T.addNativeError(p2), h2 = T;
|
@@ -22740,7 +22740,7 @@ var init_dist = __esm({
|
|
22740
22740
|
return new Fe(i3, r3, s3, o3, l2, u2, n3, p2);
|
22741
22741
|
};
|
22742
22742
|
this.handleSettingsChange = (t3) => c2(this, null, function* () {
|
22743
|
-
let i3 = this.stream, r3 =
|
22743
|
+
let i3 = this.stream, r3 = Us(t3, this.settings);
|
22744
22744
|
if (r3("maxBitrate") && t3.maxBitrate && (yield i3.setMaxBitrateAndFramerate(this)), r3("width") || r3("height") || r3("advanced"))
|
22745
22745
|
if (this.source === "video") {
|
22746
22746
|
let s3 = yield this.replaceTrackWith(t3);
|
@@ -22749,7 +22749,7 @@ var init_dist = __esm({
|
|
22749
22749
|
yield this.nativeTrack.applyConstraints(t3.toConstraints());
|
22750
22750
|
});
|
22751
22751
|
this.handleDeviceChange = (t3, i3 = false) => c2(this, null, function* () {
|
22752
|
-
if (
|
22752
|
+
if (Us(t3, this.settings)("deviceId") && this.source === "regular") {
|
22753
22753
|
if (this.enabled) {
|
22754
22754
|
delete t3.facingMode;
|
22755
22755
|
let o3 = yield this.replaceTrackWith(t3);
|
@@ -22923,17 +22923,17 @@ var init_dist = __esm({
|
|
22923
22923
|
et = "renegotiation-callback-id";
|
22924
22924
|
li = "ion-sfu";
|
22925
22925
|
tt = "SUBSCRIBE_ICE_CONNECTION_CALLBACK_ID";
|
22926
|
-
|
22927
|
-
|
22926
|
+
Bs = "https://event.100ms.live/v2/client/report";
|
22927
|
+
Vs = "https://event-nonprod.100ms.live/v2/client/report";
|
22928
22928
|
kt = Math.pow(2, 31) - 1;
|
22929
22929
|
G2 = { DEVICE_CHANGE: "device-change", LOCAL_AUDIO_ENABLED: "local-audio-enabled", LOCAL_VIDEO_ENABLED: "local-video-enabled", STATS_UPDATE: "stats-update", RTC_STATS_UPDATE: "rtc-stats-update", TRACK_DEGRADED: "track-degraded", TRACK_RESTORED: "track-restored", TRACK_AUDIO_LEVEL_UPDATE: "track-audio-level-update", LOCAL_AUDIO_SILENCE: "local-audio-silence", ANALYTICS: "analytics", AUDIO_PLUGIN_FAILED: "audio-plugin-failed", POLICY_CHANGE: "policy-change", LOCAL_ROLE_UPDATE: "local-role-update", AUDIO_TRACK_UPDATE: "audio-track-update", AUDIO_TRACK_ADDED: "audio-track-added", AUDIO_TRACK_REMOVED: "audio-track-removed", AUTOPLAY_ERROR: "autoplay-error", LEAVE: "leave" };
|
22930
|
-
|
22931
|
-
|
22930
|
+
Fs = "2.5";
|
22931
|
+
Gs = "20240521";
|
22932
22932
|
Me = "_handraise";
|
22933
22933
|
Dr = 1e3;
|
22934
22934
|
wr = 64;
|
22935
|
-
|
22936
|
-
|
22935
|
+
Ws = "https://whiteboard.100ms.live";
|
22936
|
+
$s = "https://whiteboard-qa.100ms.live";
|
22937
22937
|
U2 = class a7 extends Ye {
|
22938
22938
|
constructor(t2, i2, r2) {
|
22939
22939
|
super(t2, i2, r2);
|
@@ -23150,7 +23150,7 @@ var init_dist = __esm({
|
|
23150
23150
|
return this.audio;
|
23151
23151
|
}
|
23152
23152
|
};
|
23153
|
-
|
23153
|
+
Ks = (a11, e, t2, i2) => c2(void 0, null, function* () {
|
23154
23154
|
var o2;
|
23155
23155
|
let r2, s2 = {};
|
23156
23156
|
if ((o2 = e.transceiver) != null && o2.sender.track) {
|
@@ -23172,11 +23172,11 @@ var init_dist = __esm({
|
|
23172
23172
|
break;
|
23173
23173
|
}
|
23174
23174
|
}), Object.keys(m({}, l2)).forEach((p2) => {
|
23175
|
-
var
|
23176
|
-
let h2 = (
|
23175
|
+
var P8, w2;
|
23176
|
+
let h2 = (P8 = l2[p2]) == null ? void 0 : P8.codecId, T = h2 ? n2[h2] : void 0, g2;
|
23177
23177
|
T && (g2 = T.substring(T.indexOf("/") + 1));
|
23178
|
-
let
|
23179
|
-
s2[p2] = M2(m({},
|
23178
|
+
let v2 = M2(m({}, l2[p2]), { rid: (w2 = l2[p2]) == null ? void 0 : w2.rid }), E2 = u2[v2.ssrc];
|
23179
|
+
s2[p2] = M2(m({}, v2), { bitrate: Pt("bytesSent", v2, i2 == null ? void 0 : i2[p2]), packetsLost: E2 == null ? void 0 : E2.packetsLost, jitter: E2 == null ? void 0 : E2.jitter, roundTripTime: E2 == null ? void 0 : E2.roundTripTime, totalRoundTripTime: E2 == null ? void 0 : E2.totalRoundTripTime, peerName: t2, peerID: e.peerId, enabled: e.enabled, codec: g2 });
|
23180
23180
|
});
|
23181
23181
|
} catch (n2) {
|
23182
23182
|
a11.analytics.publish(y2.rtcStatsFailed(S2.WebrtcErrors.StatsFailed("TRACK", `Error getting local track stats ${e.trackId} - ${n2.message}`))), d2.w("[HMSWebrtcStats]", "Error in getting local track stats", e, n2, n2.name);
|
@@ -23184,7 +23184,7 @@ var init_dist = __esm({
|
|
23184
23184
|
return s2;
|
23185
23185
|
}
|
23186
23186
|
});
|
23187
|
-
|
23187
|
+
qs = (a11, e, t2, i2) => c2(void 0, null, function* () {
|
23188
23188
|
var l2;
|
23189
23189
|
let r2;
|
23190
23190
|
try {
|
@@ -23192,10 +23192,10 @@ var init_dist = __esm({
|
|
23192
23192
|
} catch (u2) {
|
23193
23193
|
a11.analytics.publish(y2.rtcStatsFailed(S2.WebrtcErrors.StatsFailed("TRACK", `Error getting remote track stats ${e.trackId} - ${u2.message}`))), d2.w("[HMSWebrtcStats]", "Error in getting remote track stats", e, u2);
|
23194
23194
|
}
|
23195
|
-
let s2 =
|
23195
|
+
let s2 = bo(r2), o2 = Pt("bytesReceived", s2, i2), n2 = Nr("packetsLost", s2, i2);
|
23196
23196
|
return s2 != null && s2.remote && Object.assign(s2.remote, { packetsLostRate: Nr("packetsLost", s2.remote, i2 == null ? void 0 : i2.remote) }), s2 && M2(m({}, s2), { bitrate: o2, packetsLostRate: n2, peerID: e.peerId, enabled: e.enabled, peerName: t2, codec: s2.codec });
|
23197
23197
|
});
|
23198
|
-
|
23198
|
+
bo = (a11) => {
|
23199
23199
|
let e, t2, i2 = {};
|
23200
23200
|
a11 == null || a11.forEach((o2) => {
|
23201
23201
|
switch (o2.type) {
|
@@ -23219,10 +23219,10 @@ var init_dist = __esm({
|
|
23219
23219
|
return r2 && (s2 = r2.substring(r2.indexOf("/") + 1)), e && Object.assign(e, { remote: t2, codec: s2 });
|
23220
23220
|
};
|
23221
23221
|
Or = (a11, e, t2) => {
|
23222
|
-
let i2 =
|
23222
|
+
let i2 = Ro(e), r2 = Pt(a11 === "publish" ? "bytesSent" : "bytesReceived", i2, t2 && t2[a11]);
|
23223
23223
|
return i2 && Object.assign(i2, { bitrate: r2 });
|
23224
23224
|
};
|
23225
|
-
|
23225
|
+
Ro = (a11) => {
|
23226
23226
|
let e;
|
23227
23227
|
return a11 == null || a11.forEach((t2) => {
|
23228
23228
|
t2.type === "transport" && (e = a11 == null ? void 0 : a11.get(t2.selectedCandidatePairId));
|
@@ -23230,13 +23230,13 @@ var init_dist = __esm({
|
|
23230
23230
|
t2.type === "candidate-pair" && t2.selected && (e = t2);
|
23231
23231
|
}), e;
|
23232
23232
|
};
|
23233
|
-
|
23233
|
+
js = (a11) => {
|
23234
23234
|
let e = { packetsLost: 0, jitter: 0 };
|
23235
23235
|
return a11 == null || a11.forEach((t2) => {
|
23236
23236
|
t2.packetsLost && (e.packetsLost += t2.packetsLost), t2.jitter > e.jitter && (e.jitter = t2.jitter);
|
23237
23237
|
}), e;
|
23238
23238
|
};
|
23239
|
-
|
23239
|
+
Js = (a11, e) => Array.from(new Set(a11.concat(e)));
|
23240
23240
|
Pt = (a11, e, t2) => Nr(a11, e, t2) * 8;
|
23241
23241
|
Nr = (a11, e, t2) => {
|
23242
23242
|
let i2 = e && e[a11], r2 = t2 ? t2[a11] : null;
|
@@ -23260,20 +23260,20 @@ var init_dist = __esm({
|
|
23260
23260
|
yield this.updateLocalPeerStats(), yield this.updateLocalTrackStats(), yield this.updateRemoteTrackStats();
|
23261
23261
|
});
|
23262
23262
|
this.updateLocalPeerStats = () => c2(this, null, function* () {
|
23263
|
-
var p2, h2, T, g2,
|
23263
|
+
var p2, h2, T, g2, v2, E2;
|
23264
23264
|
let e2 = this.getLocalPeerStats(), t3;
|
23265
23265
|
try {
|
23266
23266
|
t3 = yield (h2 = (p2 = this.getStats).publish) == null ? void 0 : h2.call(p2);
|
23267
|
-
} catch (
|
23268
|
-
this.eventBus.analytics.publish(y2.rtcStatsFailed(S2.WebrtcErrors.StatsFailed("PUBLISH",
|
23267
|
+
} catch (P8) {
|
23268
|
+
this.eventBus.analytics.publish(y2.rtcStatsFailed(S2.WebrtcErrors.StatsFailed("PUBLISH", P8.message))), d2.w(this.TAG, "Error in getting publish stats", P8);
|
23269
23269
|
}
|
23270
23270
|
let i3 = t3 && Or("publish", t3, e2), r3;
|
23271
23271
|
try {
|
23272
23272
|
r3 = yield (g2 = (T = this.getStats).subscribe) == null ? void 0 : g2.call(T);
|
23273
|
-
} catch (
|
23274
|
-
this.eventBus.analytics.publish(y2.rtcStatsFailed(S2.WebrtcErrors.StatsFailed("SUBSCRIBE",
|
23273
|
+
} catch (P8) {
|
23274
|
+
this.eventBus.analytics.publish(y2.rtcStatsFailed(S2.WebrtcErrors.StatsFailed("SUBSCRIBE", P8.message))), d2.w(this.TAG, "Error in getting subscribe stats", P8);
|
23275
23275
|
}
|
23276
|
-
let s2 = r3 && Or("subscribe", r3, e2), { packetsLost: o2, jitter: n2 } =
|
23276
|
+
let s2 = r3 && Or("subscribe", r3, e2), { packetsLost: o2, jitter: n2 } = js(r3), l2 = xr(o2, (v2 = e2 == null ? void 0 : e2.subscribe) == null ? void 0 : v2.packetsLost, s2 == null ? void 0 : s2.timestamp, (E2 = e2 == null ? void 0 : e2.subscribe) == null ? void 0 : E2.timestamp), u2 = s2 && Object.assign(s2, { packetsLostRate: l2, jitter: n2, packetsLost: o2 });
|
23277
23277
|
this.peerStats[this.localPeerID] = { publish: i3, subscribe: u2 };
|
23278
23278
|
});
|
23279
23279
|
this.updateRemoteTrackStats = () => c2(this, null, function* () {
|
@@ -23283,17 +23283,17 @@ var init_dist = __esm({
|
|
23283
23283
|
t3.includes(r3) || delete this.remoteTrackStats[r3];
|
23284
23284
|
});
|
23285
23285
|
for (let r3 of e2) {
|
23286
|
-
let s2 = r3.peerId && ((i3 = this.store.getPeerById(r3.peerId)) == null ? void 0 : i3.name), o2 = this.getRemoteTrackStats(r3.trackId), n2 = yield
|
23286
|
+
let s2 = r3.peerId && ((i3 = this.store.getPeerById(r3.peerId)) == null ? void 0 : i3.name), o2 = this.getRemoteTrackStats(r3.trackId), n2 = yield qs(this.eventBus, r3, s2, o2);
|
23287
23287
|
n2 && (this.remoteTrackStats[r3.trackId] = n2);
|
23288
23288
|
}
|
23289
23289
|
});
|
23290
23290
|
this.updateLocalTrackStats = () => c2(this, null, function* () {
|
23291
23291
|
var i3;
|
23292
|
-
let e2 = this.store.getLocalPeerTracks().reduce((r3, s2) => (r3[s2.getTrackIDBeingSent()] = s2, r3), {}), t3 =
|
23292
|
+
let e2 = this.store.getLocalPeerTracks().reduce((r3, s2) => (r3[s2.getTrackIDBeingSent()] = s2, r3), {}), t3 = Js(Object.keys(this.localTrackStats), Object.keys(e2));
|
23293
23293
|
for (let r3 of t3) {
|
23294
23294
|
let s2 = e2[r3];
|
23295
23295
|
if (s2) {
|
23296
|
-
let o2 = (i3 = this.store.getLocalPeer()) == null ? void 0 : i3.name, n2 = yield
|
23296
|
+
let o2 = (i3 = this.store.getLocalPeer()) == null ? void 0 : i3.name, n2 = yield Ks(this.eventBus, s2, o2, this.localTrackStats[r3]);
|
23297
23297
|
n2 && (this.localTrackStats[r3] = n2);
|
23298
23298
|
} else
|
23299
23299
|
delete this.localTrackStats[r3];
|
@@ -23862,34 +23862,34 @@ var init_dist = __esm({
|
|
23862
23862
|
}
|
23863
23863
|
};
|
23864
23864
|
B2 = (a11) => a11.room;
|
23865
|
-
|
23866
|
-
|
23867
|
-
|
23865
|
+
Ho = (a11) => a11.errors;
|
23866
|
+
Kh = createSelector(Ho, (a11) => a11.length === 0 ? null : a11.at(-1));
|
23867
|
+
qh = createSelector(B2, (a11) => a11.id);
|
23868
23868
|
K = (a11) => a11.peers;
|
23869
23869
|
Ti = (a11) => a11.messages.byID;
|
23870
|
-
|
23870
|
+
Qs = (a11) => a11.messages.allIDs;
|
23871
23871
|
N2 = (a11) => a11.tracks;
|
23872
|
-
|
23872
|
+
zs = (a11) => a11.settings;
|
23873
23873
|
Ur = (a11) => a11.appData;
|
23874
|
-
|
23874
|
+
Co = (a11) => a11.speakers;
|
23875
23875
|
_e = createSelector([B2], (a11) => a11 && a11.isConnected);
|
23876
|
-
|
23877
|
-
|
23878
|
-
me = createSelector([B2, K,
|
23879
|
-
|
23876
|
+
Qh = createSelector([_e, B2], (a11, e) => a11 ? e.peerCount !== void 0 ? e.peerCount || 1 : e.peers.length : Math.max(e.peerCount !== void 0 ? e.peerCount : e.peers.length - 1, 0));
|
23877
|
+
Lo = (a11) => a11.hideLocalPeer;
|
23878
|
+
me = createSelector([B2, K, Lo], (a11, e, t2) => t2 ? a11.peers.filter((i2) => a11.localPeer !== i2).map((i2) => e[i2]) : a11.peers.map((i2) => e[i2]));
|
23879
|
+
Do = createSelector(N2, (a11) => Object.values(a11));
|
23880
23880
|
te = createSelector(B2, K, (a11, e) => e[a11.localPeer]);
|
23881
23881
|
ye = createSelector(B2, (a11) => a11.localPeer);
|
23882
|
-
|
23883
|
-
|
23882
|
+
zh = createSelector(te, (a11) => a11 == null ? void 0 : a11.name);
|
23883
|
+
Yh = createSelector(te, (a11) => a11 == null ? void 0 : a11.roleName);
|
23884
23884
|
ae = createSelector(te, (a11) => a11 == null ? void 0 : a11.audioTrack);
|
23885
23885
|
Y2 = createSelector(te, (a11) => a11 == null ? void 0 : a11.videoTrack);
|
23886
|
-
|
23887
|
-
|
23886
|
+
wo = createSelector(te, (a11) => a11 == null ? void 0 : a11.auxiliaryTracks);
|
23887
|
+
Ys = createSelector([ae, Y2, wo], (a11, e, t2) => {
|
23888
23888
|
let i2 = t2 ? [...t2] : [];
|
23889
23889
|
return a11 && i2.unshift(a11), e && i2.unshift(e), i2;
|
23890
23890
|
});
|
23891
|
-
|
23892
|
-
|
23891
|
+
Xh = createSelector(me, (a11) => a11.filter((e) => !e.isLocal));
|
23892
|
+
Zh = createSelector(K, Co, (a11, e) => {
|
23893
23893
|
let t2 = Object.entries(e).sort((i2, r2) => {
|
23894
23894
|
var n2, l2;
|
23895
23895
|
let s2 = ((n2 = i2[1]) == null ? void 0 : n2.audioLevel) || 0;
|
@@ -23906,7 +23906,7 @@ var init_dist = __esm({
|
|
23906
23906
|
let e = te(a11);
|
23907
23907
|
return je(a11, e == null ? void 0 : e.videoTrack);
|
23908
23908
|
};
|
23909
|
-
|
23909
|
+
Xs = (a11) => {
|
23910
23910
|
let e = te(a11);
|
23911
23911
|
return ns(a11, e == null ? void 0 : e.videoTrack);
|
23912
23912
|
};
|
@@ -23914,7 +23914,7 @@ var init_dist = __esm({
|
|
23914
23914
|
let { video: t2, audio: i2 } = xe(e, a11);
|
23915
23915
|
return !!(t2 || i2);
|
23916
23916
|
});
|
23917
|
-
|
23917
|
+
_o = createSelector(K, N2, (a11, e) => {
|
23918
23918
|
let t2;
|
23919
23919
|
for (let i2 in a11) {
|
23920
23920
|
let r2 = a11[i2], { video: s2, audio: o2 } = xe(e, r2);
|
@@ -23924,15 +23924,15 @@ var init_dist = __esm({
|
|
23924
23924
|
}
|
23925
23925
|
return t2;
|
23926
23926
|
});
|
23927
|
-
|
23928
|
-
|
23927
|
+
tm = createSelector(_o, (a11) => !!a11);
|
23928
|
+
im = createSelector(K, N2, (a11, e) => {
|
23929
23929
|
for (let t2 in a11) {
|
23930
23930
|
let i2 = a11[t2], { audio: r2, video: s2 } = xe(e, i2);
|
23931
23931
|
if (!s2 && r2)
|
23932
23932
|
return i2;
|
23933
23933
|
}
|
23934
23934
|
});
|
23935
|
-
|
23935
|
+
rm = createSelector(K, N2, (a11, e) => {
|
23936
23936
|
let t2 = [], i2 = [];
|
23937
23937
|
for (let r2 in a11) {
|
23938
23938
|
let s2 = a11[r2], { video: o2, audio: n2 } = xe(e, s2);
|
@@ -23940,77 +23940,77 @@ var init_dist = __esm({
|
|
23940
23940
|
}
|
23941
23941
|
return t2.concat(i2);
|
23942
23942
|
});
|
23943
|
-
|
23943
|
+
sm = createSelector(K, N2, (a11, e) => {
|
23944
23944
|
for (let t2 in e) {
|
23945
23945
|
let i2 = e[t2];
|
23946
23946
|
if (ht(i2) && pt(i2) && i2.peerId)
|
23947
23947
|
return a11[i2.peerId];
|
23948
23948
|
}
|
23949
23949
|
});
|
23950
|
-
|
23950
|
+
am = createSelector(K, N2, (a11, e) => {
|
23951
23951
|
for (let t2 in e) {
|
23952
23952
|
let i2 = e[t2];
|
23953
23953
|
if (ii(i2) && i2.peerId)
|
23954
23954
|
return a11[i2.peerId];
|
23955
23955
|
}
|
23956
23956
|
});
|
23957
|
-
|
23958
|
-
|
23959
|
-
|
23960
|
-
Rt = createSelector(
|
23957
|
+
om = createSelector(Do, (a11) => a11.filter(os));
|
23958
|
+
nm = createSelector(Qs, (a11) => a11.length);
|
23959
|
+
cm = createSelector(Ti, (a11) => Object.values(a11).filter((e) => !e.read).length);
|
23960
|
+
Rt = createSelector(Qs, Ti, (a11, e) => {
|
23961
23961
|
let t2 = [];
|
23962
23962
|
return a11.forEach((i2) => {
|
23963
23963
|
t2.push(e[i2]);
|
23964
23964
|
}), t2;
|
23965
23965
|
});
|
23966
|
-
|
23966
|
+
No = createSelector(Rt, (a11) => a11.filter((e) => {
|
23967
23967
|
var t2;
|
23968
23968
|
return !e.recipientPeer && !(e.recipientRoles && ((t2 = e.recipientRoles) == null ? void 0 : t2.length) > 0);
|
23969
23969
|
}));
|
23970
|
-
|
23970
|
+
dm = createSelector(No, (a11) => a11.filter((e) => !e.read).length);
|
23971
23971
|
ie = createSelector([B2], (a11) => a11 && a11.roomState);
|
23972
|
-
|
23973
|
-
|
23974
|
-
|
23972
|
+
Zs = createSelector(ie, (a11) => a11 === "Preview");
|
23973
|
+
lm = createSelector(B2, (a11) => a11.roomState !== "Disconnected");
|
23974
|
+
um = createSelector(B2, (a11) => !a11.transcriptions || a11.transcriptions.length <= 0 ? false : a11.transcriptions.some((e) => e.mode === "caption" && e.state === "started"));
|
23975
23975
|
Se = (a11) => a11.roles;
|
23976
|
-
|
23976
|
+
pm = createSelector([Se], (a11) => Object.keys(a11));
|
23977
23977
|
at = createSelector([te, Se], (a11, e) => a11 != null && a11.roleName ? e[a11.roleName] : null);
|
23978
|
-
|
23978
|
+
Oo = (a11) => {
|
23979
23979
|
var e;
|
23980
23980
|
return (e = a11.preview) == null ? void 0 : e.asRole;
|
23981
23981
|
};
|
23982
|
-
|
23983
|
-
|
23982
|
+
ea = createSelector([Oo, Se], (a11, e) => a11 ? e[a11] : null);
|
23983
|
+
hm = createSelector([at], (a11) => {
|
23984
23984
|
var e;
|
23985
23985
|
return (e = a11 == null ? void 0 : a11.subscribeParams) != null && e.subscribeToRoles ? a11.subscribeParams.subscribeToRoles.length > 0 : false;
|
23986
23986
|
});
|
23987
|
-
|
23988
|
-
|
23989
|
-
|
23990
|
-
|
23991
|
-
|
23992
|
-
|
23993
|
-
|
23994
|
-
|
23995
|
-
|
23996
|
-
|
23997
|
-
|
23998
|
-
|
23999
|
-
|
24000
|
-
|
24001
|
-
|
23987
|
+
ta = createSelector(at, (a11) => a11 == null ? void 0 : a11.permissions);
|
23988
|
+
mm = createSelector(B2, (a11) => a11.recording);
|
23989
|
+
Sm = createSelector(B2, (a11) => a11.rtmp);
|
23990
|
+
gm = createSelector(B2, (a11) => a11.hls);
|
23991
|
+
Tm = createSelector(B2, (a11) => a11.transcriptions);
|
23992
|
+
fm = createSelector(B2, (a11) => a11.sessionId);
|
23993
|
+
vm = createSelector(B2, (a11) => a11.startedAt);
|
23994
|
+
Mm = createSelector(B2, (a11) => !!a11.isLargeRoom);
|
23995
|
+
ym = createSelector(B2, (a11) => !!a11.isEffectsEnabled);
|
23996
|
+
km = createSelector(B2, (a11) => a11.effectsKey);
|
23997
|
+
ia = (a11) => a11.polls;
|
23998
|
+
Rm = createSelector(me, (a11) => a11.filter((e) => e.isHandRaised));
|
23999
|
+
xo = (a11) => a11.whiteboards;
|
24000
|
+
Im = createSelector(xo, (a11) => Object.values(a11)[0]);
|
24001
|
+
sa = (a11 = "audio") => (e) => e.playlist[a11].list;
|
24002
24002
|
Fr = (a11 = "audio") => (e) => e.playlist[a11].selection;
|
24003
|
-
|
24004
|
-
|
24005
|
-
|
24006
|
-
|
24007
|
-
|
24008
|
-
|
24003
|
+
aa = (a11 = "audio") => (e) => e.playlist[a11].progress;
|
24004
|
+
oa = (a11 = "audio") => (e) => e.playlist[a11].currentTime;
|
24005
|
+
na = (a11 = "audio") => (e) => e.playlist[a11].playbackRate;
|
24006
|
+
ca = (a11 = "audio") => (e) => e.playlist[a11].volume;
|
24007
|
+
da = (a11 = "audio") => createSelector(sa(a11), (e) => Object.values(e));
|
24008
|
+
la = (a11 = "audio") => createSelector(sa(a11), Fr(a11), (e, t2) => {
|
24009
24009
|
if (t2.id)
|
24010
24010
|
return e[t2.id];
|
24011
24011
|
});
|
24012
|
-
|
24013
|
-
|
24012
|
+
ua = { selection: Fr("audio"), progress: aa("audio"), currentTime: oa("audio"), playbackRate: na("audio"), volume: ca("audio"), list: da("audio"), selectedItem: la("audio") };
|
24013
|
+
pa = { selection: Fr("video"), progress: aa("video"), currentTime: oa("video"), playbackRate: na("video"), volume: ca("video"), list: da("video"), selectedItem: la("video") };
|
24014
24014
|
It = "HMS-Store:";
|
24015
24015
|
b2 = class {
|
24016
24016
|
static v(e, ...t2) {
|
@@ -24080,124 +24080,124 @@ var init_dist = __esm({
|
|
24080
24080
|
b2.level = 0;
|
24081
24081
|
Gr = (a11, e) => e;
|
24082
24082
|
At = (a11, e) => e;
|
24083
|
-
|
24084
|
-
xo = (a11, e) => e;
|
24083
|
+
ha = (a11, e) => e;
|
24085
24084
|
Uo = (a11, e) => e;
|
24085
|
+
Bo = (a11, e) => e;
|
24086
24086
|
q2 = createSelector([K, Gr], (a11, e) => e ? a11[e] : null);
|
24087
24087
|
Wr = createSelector([N2, At], (a11, e) => e ? a11[e] : null);
|
24088
|
-
|
24088
|
+
Vo = createSelector([N2, At], (a11, e) => {
|
24089
24089
|
if (!e)
|
24090
24090
|
return null;
|
24091
24091
|
let t2 = a11[e];
|
24092
24092
|
return (t2 == null ? void 0 : t2.type) === "video" ? t2 : null;
|
24093
24093
|
});
|
24094
|
-
|
24094
|
+
Fo = createSelector([N2, At], (a11, e) => {
|
24095
24095
|
if (!e)
|
24096
24096
|
return null;
|
24097
24097
|
let t2 = a11[e];
|
24098
24098
|
return (t2 == null ? void 0 : t2.type) === "audio" ? t2 : null;
|
24099
24099
|
});
|
24100
|
-
|
24100
|
+
Go = createSelector([N2, At], (a11, e) => {
|
24101
24101
|
if (!e)
|
24102
24102
|
return null;
|
24103
24103
|
let t2 = a11[e];
|
24104
24104
|
return (t2 == null ? void 0 : t2.type) === "audio" && (t2 == null ? void 0 : t2.source) === "screen" ? t2 : null;
|
24105
24105
|
});
|
24106
|
-
|
24106
|
+
Wo = createSelector([N2, At], (a11, e) => {
|
24107
24107
|
if (!e)
|
24108
24108
|
return null;
|
24109
24109
|
let t2 = a11[e];
|
24110
24110
|
return (t2 == null ? void 0 : t2.type) === "video" && (t2 == null ? void 0 : t2.source) === "screen" ? t2 : null;
|
24111
24111
|
});
|
24112
|
-
|
24112
|
+
$o = createSelector([ia, Bo], (a11, e) => e ? a11[e] : null);
|
24113
24113
|
X2 = A2(q2);
|
24114
|
-
|
24114
|
+
Um = A2(createSelector([Ur, Uo], (a11, e) => {
|
24115
24115
|
if (a11)
|
24116
24116
|
return e ? a11[e] : a11;
|
24117
24117
|
}));
|
24118
|
-
|
24119
|
-
|
24118
|
+
Fm = A2(createSelector(q2, (a11) => a11 == null ? void 0 : a11.name));
|
24119
|
+
Gm = A2(createSelector(q2, (a11) => a11 == null ? void 0 : a11.type));
|
24120
24120
|
fi = A2(Wr);
|
24121
|
-
|
24122
|
-
|
24123
|
-
|
24124
|
-
|
24125
|
-
|
24121
|
+
ma = A2(Vo);
|
24122
|
+
Wm = A2(Fo);
|
24123
|
+
$m = A2(Go);
|
24124
|
+
Km = A2(Wo);
|
24125
|
+
Ko = A2((a11, e) => {
|
24126
24126
|
let t2 = q2(a11, e);
|
24127
24127
|
if (t2 && t2.videoTrack && t2.videoTrack !== "")
|
24128
24128
|
return a11.tracks[t2.videoTrack];
|
24129
24129
|
});
|
24130
|
-
|
24130
|
+
qo = A2((a11, e) => {
|
24131
24131
|
let t2 = q2(a11, e);
|
24132
24132
|
if (t2 && t2.audioTrack && t2.audioTrack !== "")
|
24133
24133
|
return a11.tracks[t2.audioTrack];
|
24134
24134
|
});
|
24135
|
-
|
24135
|
+
jm = A2((a11, e) => {
|
24136
24136
|
let t2 = q2(a11, e);
|
24137
24137
|
return (t2 == null ? void 0 : t2.auxiliaryTracks.map((i2) => a11.tracks[i2])) || [];
|
24138
24138
|
});
|
24139
|
-
|
24140
|
-
|
24141
|
-
|
24142
|
-
let t2 =
|
24143
|
-
return
|
24144
|
-
};
|
24145
|
-
|
24146
|
-
|
24139
|
+
Sa = (a11, e) => e ? a11.speakers[e] : null;
|
24140
|
+
Jm = A2(createSelector(Sa, (a11) => (a11 == null ? void 0 : a11.audioLevel) || 0));
|
24141
|
+
jo = (a11, e) => {
|
24142
|
+
let t2 = qo(e)(a11);
|
24143
|
+
return Sa(a11, t2 == null ? void 0 : t2.id);
|
24144
|
+
};
|
24145
|
+
Qm = A2(createSelector(jo, (a11) => (a11 == null ? void 0 : a11.audioLevel) || 0));
|
24146
|
+
zm = A2((a11, e) => {
|
24147
24147
|
if (e)
|
24148
24148
|
return a11.connectionQualities[e];
|
24149
24149
|
});
|
24150
|
-
|
24150
|
+
Ym = A2((a11, e) => {
|
24151
24151
|
let t2 = q2(a11, e);
|
24152
24152
|
if (t2) {
|
24153
24153
|
let i2 = t2 == null ? void 0 : t2.auxiliaryTracks.find((r2) => ut(a11.tracks[r2]));
|
24154
24154
|
return i2 ? a11.tracks[i2] : void 0;
|
24155
24155
|
}
|
24156
24156
|
});
|
24157
|
-
|
24157
|
+
Xm = A2(createSelector(N2, q2, (a11, e) => {
|
24158
24158
|
let t2 = e == null ? void 0 : e.auxiliaryTracks.find((i2) => {
|
24159
24159
|
let r2 = a11[i2];
|
24160
24160
|
return ht(r2) && pt(r2);
|
24161
24161
|
});
|
24162
24162
|
return t2 ? a11[t2] : void 0;
|
24163
24163
|
}));
|
24164
|
-
|
24164
|
+
Zm = A2(createSelector(N2, q2, (a11, e) => {
|
24165
24165
|
let t2 = e == null ? void 0 : e.auxiliaryTracks.find((i2) => {
|
24166
24166
|
let r2 = a11[i2];
|
24167
24167
|
return ht(r2) && ut(r2);
|
24168
24168
|
});
|
24169
24169
|
return t2 ? a11[t2] : void 0;
|
24170
24170
|
}));
|
24171
|
-
|
24171
|
+
eS = A2(createSelector(N2, q2, (a11, e) => {
|
24172
24172
|
let t2 = e == null ? void 0 : e.auxiliaryTracks.find((i2) => {
|
24173
24173
|
let r2 = a11[i2];
|
24174
24174
|
return ii(r2) && ut(r2);
|
24175
24175
|
});
|
24176
24176
|
return t2 ? a11[t2] : void 0;
|
24177
24177
|
}));
|
24178
|
-
|
24179
|
-
|
24180
|
-
|
24178
|
+
ga = A2(createSelector(N2, q2, (a11, e) => xe(a11, e)));
|
24179
|
+
Ta = (a11) => createSelector(ga(a11), (e) => e.audio);
|
24180
|
+
iS = A2((a11, e) => {
|
24181
24181
|
let t2 = q2(a11, e);
|
24182
24182
|
return je(a11, t2 == null ? void 0 : t2.audioTrack);
|
24183
24183
|
});
|
24184
|
-
|
24184
|
+
rS = A2((a11, e) => {
|
24185
24185
|
let t2 = q2(a11, e);
|
24186
24186
|
return je(a11, t2 == null ? void 0 : t2.videoTrack);
|
24187
24187
|
});
|
24188
|
-
|
24188
|
+
fa = A2((a11, e) => {
|
24189
24189
|
if (e && a11.tracks[e])
|
24190
24190
|
return a11.tracks[e].volume === 0;
|
24191
24191
|
});
|
24192
|
-
|
24192
|
+
sS = A2((a11, e) => {
|
24193
24193
|
let t2 = q2(a11, e);
|
24194
|
-
return
|
24194
|
+
return fa(t2 == null ? void 0 : t2.audioTrack)(a11);
|
24195
24195
|
});
|
24196
|
-
|
24197
|
-
let t2 =
|
24198
|
-
return
|
24196
|
+
aS = A2((a11, e) => {
|
24197
|
+
let t2 = Ta(e)(a11);
|
24198
|
+
return fa(t2 == null ? void 0 : t2.id)(a11);
|
24199
24199
|
});
|
24200
|
-
|
24200
|
+
va = A2((a11, e) => {
|
24201
24201
|
let t2 = Wr(a11, e);
|
24202
24202
|
if (t2) {
|
24203
24203
|
if (t2.type !== "audio") {
|
@@ -24207,15 +24207,15 @@ var init_dist = __esm({
|
|
24207
24207
|
return t2.volume;
|
24208
24208
|
}
|
24209
24209
|
});
|
24210
|
-
|
24210
|
+
oS = A2((a11, e) => {
|
24211
24211
|
let t2 = q2(a11, e);
|
24212
|
-
return
|
24212
|
+
return va(t2 == null ? void 0 : t2.audioTrack)(a11);
|
24213
24213
|
});
|
24214
|
-
|
24215
|
-
let t2 =
|
24216
|
-
return
|
24214
|
+
nS = A2((a11, e) => {
|
24215
|
+
let t2 = Ta(e)(a11);
|
24216
|
+
return va(t2 == null ? void 0 : t2.id)(a11);
|
24217
24217
|
});
|
24218
|
-
|
24218
|
+
cS = A2((a11, e) => {
|
24219
24219
|
let t2 = Wr(a11, e);
|
24220
24220
|
if (t2) {
|
24221
24221
|
if (t2.type !== "video") {
|
@@ -24225,52 +24225,52 @@ var init_dist = __esm({
|
|
24225
24225
|
return t2.layer;
|
24226
24226
|
}
|
24227
24227
|
});
|
24228
|
-
|
24228
|
+
Ma = createSelector([Rt, ye, Gr], (a11, e, t2) => {
|
24229
24229
|
if (t2)
|
24230
24230
|
return a11.filter((i2) => {
|
24231
24231
|
var r2;
|
24232
24232
|
return !i2.recipientPeer && !((r2 = i2.recipientRoles) != null && r2.length) || i2.sender && ![e, t2].includes(i2.sender) ? false : [e, t2].includes(i2.recipientPeer);
|
24233
24233
|
});
|
24234
24234
|
});
|
24235
|
-
|
24235
|
+
ya = createSelector([Rt, ha], (a11, e) => {
|
24236
24236
|
if (e)
|
24237
24237
|
return a11.filter((t2) => {
|
24238
24238
|
var i2, r2;
|
24239
24239
|
return (i2 = t2.recipientRoles) != null && i2.length ? (r2 = t2.recipientRoles) == null ? void 0 : r2.includes(e) : false;
|
24240
24240
|
});
|
24241
24241
|
});
|
24242
|
-
|
24242
|
+
Jo = createSelector(Rt, (a11) => a11.filter((e) => {
|
24243
24243
|
var t2;
|
24244
24244
|
return !e.recipientPeer && !((t2 = e.recipientRoles) != null && t2.length);
|
24245
24245
|
}));
|
24246
|
-
|
24247
|
-
|
24248
|
-
|
24249
|
-
|
24250
|
-
|
24251
|
-
|
24252
|
-
|
24253
|
-
|
24254
|
-
|
24246
|
+
Qo = createSelector([ya, ha], (a11) => a11 ? a11.filter((e) => !e.read).length : 0);
|
24247
|
+
zo = createSelector([Ma, Gr], (a11) => a11 ? a11.filter((e) => !e.read).length : 0);
|
24248
|
+
dS = createSelector(Jo, (a11) => a11.filter((e) => !e.read).length);
|
24249
|
+
lS = A2(Ma);
|
24250
|
+
uS = A2(ya);
|
24251
|
+
pS = A2(Qo);
|
24252
|
+
hS = A2(zo);
|
24253
|
+
ka = A2($o);
|
24254
|
+
bS = createSelector([K, N2], (a11, e) => Object.values(a11).map((i2) => {
|
24255
24255
|
var r2;
|
24256
24256
|
return { peer: i2, isAudioEnabled: i2.audioTrack ? (r2 = e[i2.audioTrack]) == null ? void 0 : r2.enabled : false };
|
24257
24257
|
}));
|
24258
|
-
|
24259
|
-
|
24260
|
-
|
24261
|
-
|
24262
|
-
|
24258
|
+
Yo = (a11) => a11.roleChangeRequests[0] || null;
|
24259
|
+
RS = createSelector([Yo, K, Se], (a11, e, t2) => a11 ? { requestedBy: a11.requestedBy ? e[a11.requestedBy] : void 0, role: t2[a11.roleName], token: a11.token } : null);
|
24260
|
+
IS = createSelector([at], (a11) => mt(a11));
|
24261
|
+
AS = createSelector([ea], (a11) => mt(a11));
|
24262
|
+
Zo = createSelector([Y2, N2], (a11, e) => {
|
24263
24263
|
let t2 = null;
|
24264
24264
|
return a11 && (t2 = e[a11]), (t2 == null ? void 0 : t2.plugins) || [];
|
24265
24265
|
});
|
24266
|
-
|
24266
|
+
en2 = createSelector([ae, N2], (a11, e) => {
|
24267
24267
|
let t2 = null;
|
24268
24268
|
return a11 && (t2 = e[a11]), (t2 == null ? void 0 : t2.plugins) || [];
|
24269
24269
|
});
|
24270
24270
|
Mi = { 0: "PEER_JOINED", 1: "PEER_LEFT", 8: "ROLE_UPDATED", 10: "NAME_UPDATED", 11: "METADATA_UPDATED", 12: "HAND_RAISE_CHANGED" };
|
24271
24271
|
Ht = { 0: "TRACK_ADDED", 1: "TRACK_REMOVED", 2: "TRACK_MUTED", 3: "TRACK_UNMUTED", 5: "TRACK_DEGRADED", 6: "TRACK_RESTORED", 4: "TRACK_DESCRIPTION_CHANGED" };
|
24272
24272
|
yi = { 0: "POLL_CREATED", 1: "POLL_STARTED", 2: "POLL_STOPPED", 4: "POLL_VOTES_UPDATED", 3: "POLLS_LIST" };
|
24273
|
-
|
24273
|
+
Pa = { TRANSCRIPTION_STATE_UPDATED: "TRANSCRIPTION_STATE_UPDATED" };
|
24274
24274
|
$r = "hmsNotification";
|
24275
24275
|
ki = class {
|
24276
24276
|
constructor(e) {
|
@@ -24349,14 +24349,14 @@ var init_dist = __esm({
|
|
24349
24349
|
this.emitEvent(t2);
|
24350
24350
|
}
|
24351
24351
|
sendPollUpdate(e, t2) {
|
24352
|
-
let i2 = yi[e], r2 = this.store.getState(
|
24352
|
+
let i2 = yi[e], r2 = this.store.getState(ka(t2));
|
24353
24353
|
if (i2) {
|
24354
24354
|
let s2 = this.createNotification(i2, r2, "info");
|
24355
24355
|
this.emitEvent(s2);
|
24356
24356
|
}
|
24357
24357
|
}
|
24358
24358
|
sendTranscriptionUpdate(e) {
|
24359
|
-
let t2 = this.createNotification(
|
24359
|
+
let t2 = this.createNotification(Pa.TRANSCRIPTION_STATE_UPDATED, e, "info");
|
24360
24360
|
this.emitEvent(t2);
|
24361
24361
|
}
|
24362
24362
|
emitEvent(e) {
|
@@ -24393,21 +24393,21 @@ var init_dist = __esm({
|
|
24393
24393
|
delete this.queuedUpdates[e], window && this.timers[e] && (window.clearTimeout(this.timers[e]), delete this.timers[e]);
|
24394
24394
|
}
|
24395
24395
|
};
|
24396
|
-
|
24396
|
+
ba = (a11, e) => {
|
24397
24397
|
let t2 = Ct(Object.keys(a11), Object.keys(e));
|
24398
24398
|
for (let i2 of t2) {
|
24399
24399
|
let r2 = a11[i2], s2 = e[i2];
|
24400
24400
|
$e(r2, s2) ? (re(r2.auxiliaryTracks, s2.auxiliaryTracks) && (s2.auxiliaryTracks = r2.auxiliaryTracks), r2.groups && re(r2.groups, s2.groups) && (s2.groups = r2.groups), Object.assign(r2, s2)) : jr(r2, s2) ? delete a11[i2] : Ei(r2, s2) && (a11[i2] = s2);
|
24401
24401
|
}
|
24402
24402
|
};
|
24403
|
-
|
24403
|
+
Ra = (a11, e) => {
|
24404
24404
|
let t2 = Ct(Object.keys(a11), Object.keys(e));
|
24405
24405
|
for (let i2 of t2) {
|
24406
24406
|
let r2 = a11[i2], s2 = e[i2];
|
24407
24407
|
$e(r2, s2) ? (qr(r2, s2), Object.assign(r2, s2)) : jr(r2, s2) ? delete a11[i2] : Ei(r2, s2) && (a11[i2] = s2);
|
24408
24408
|
}
|
24409
24409
|
};
|
24410
|
-
|
24410
|
+
Ia = (a11, e) => {
|
24411
24411
|
let t2 = Ct(Object.keys(a11), Object.keys(e));
|
24412
24412
|
for (let i2 of t2) {
|
24413
24413
|
let r2 = a11[i2], s2 = e[i2];
|
@@ -24421,7 +24421,7 @@ var init_dist = __esm({
|
|
24421
24421
|
$e(r2, s2) ? Object.assign(r2, s2) : jr(r2, s2) ? delete a11[i2] : Ei(r2, s2) && (a11[i2] = s2);
|
24422
24422
|
}
|
24423
24423
|
};
|
24424
|
-
|
24424
|
+
Aa = (a11, e, t2) => {
|
24425
24425
|
let i2 = t2.reduce((s2, o2) => (s2[o2.firstTrackId] = Object.values(e[o2.getTrackIDBeingSent()] || {}).sort((n2, l2) => !n2.rid || !l2.rid ? 0 : n2.rid < l2.rid ? -1 : 1), s2), {}), r2 = Ct(Object.keys(a11), Object.keys(i2));
|
24426
24426
|
for (let s2 of r2) {
|
24427
24427
|
if (!i2[s2]) {
|
@@ -24550,7 +24550,7 @@ var init_dist = __esm({
|
|
24550
24550
|
}
|
24551
24551
|
pause() {
|
24552
24552
|
return c2(this, null, function* () {
|
24553
|
-
let e = this.type === "audio" ?
|
24553
|
+
let e = this.type === "audio" ? ua : pa, t2 = this.store.getState(e.selection);
|
24554
24554
|
if (!t2.id) {
|
24555
24555
|
b2.w("No item is currently playing to pause");
|
24556
24556
|
return;
|
@@ -24706,10 +24706,10 @@ var init_dist = __esm({
|
|
24706
24706
|
return Math.ceil(Math.min(Math.max(s2 * 100, 0), 100));
|
24707
24707
|
}
|
24708
24708
|
};
|
24709
|
-
|
24710
|
-
|
24709
|
+
Ha = 2e4;
|
24710
|
+
Ca = 1e4;
|
24711
24711
|
ot = { name: "diagnostics-role", priority: 1, publishParams: { allowed: ["audio", "video"], audio: { bitRate: 32, codec: "opus" }, video: { bitRate: 100, codec: "vp8", frameRate: 30, height: 720, width: 1280 }, screen: { bitRate: 100, codec: "vp8", frameRate: 10, height: 1080, width: 1920 } }, subscribeParams: { subscribeToRoles: [], maxSubsBitRate: 3200 }, permissions: { browserRecording: false, changeRole: false, endRoom: false, hlsStreaming: false, mute: false, pollRead: false, pollWrite: false, removeOthers: false, rtmpStreaming: false, unmute: false } };
|
24712
|
-
|
24712
|
+
La = "https://100ms.live/test-audio.wav";
|
24713
24713
|
Ii = class {
|
24714
24714
|
constructor() {
|
24715
24715
|
this.networkScores = [];
|
@@ -24730,10 +24730,10 @@ var init_dist = __esm({
|
|
24730
24730
|
return this.networkScores.reduce((e, t2) => e + t2, 0) / this.networkScores.length;
|
24731
24731
|
}
|
24732
24732
|
};
|
24733
|
-
|
24733
|
+
rn2 = (a11) => !!a11 && !isNaN(a11);
|
24734
24734
|
de = (a11) => a11[a11.length - 1];
|
24735
24735
|
Ne = (a11, e) => {
|
24736
|
-
let t2 = a11.filter((i2) =>
|
24736
|
+
let t2 = a11.filter((i2) => rn2(e(i2)));
|
24737
24737
|
return t2.reduce((i2, r2) => i2 + (e(r2) || 0), 0) / t2.length;
|
24738
24738
|
};
|
24739
24739
|
Ai = class {
|
@@ -24747,33 +24747,33 @@ var init_dist = __esm({
|
|
24747
24747
|
}
|
24748
24748
|
handleStatsUpdate(e) {
|
24749
24749
|
return c2(this, null, function* () {
|
24750
|
-
var n2, l2, u2, p2, h2, T, g2,
|
24750
|
+
var n2, l2, u2, p2, h2, T, g2, v2;
|
24751
24751
|
let t2 = e.getLocalPeerStats();
|
24752
24752
|
t2 && this.peerStatsList.push(t2);
|
24753
24753
|
let i2 = (u2 = (l2 = (n2 = this.sdk.getLocalPeer()) == null ? void 0 : n2.audioTrack) == null ? void 0 : l2.nativeTrack) == null ? void 0 : u2.id, r2 = (T = (h2 = (p2 = this.sdk.getLocalPeer()) == null ? void 0 : p2.videoTrack) == null ? void 0 : h2.nativeTrack) == null ? void 0 : T.id, s2 = e.getLocalTrackStats();
|
24754
24754
|
s2 && (i2 && this.localAudioTrackStatsList.push(s2[i2]), r2 && this.localVideoTrackStatsList.push(s2[r2]));
|
24755
|
-
let o2 = yield (
|
24756
|
-
o2 == null || o2.forEach((
|
24757
|
-
if (
|
24758
|
-
let
|
24759
|
-
|
24755
|
+
let o2 = yield (v2 = (g2 = this.sdk.getWebrtcInternals()) == null ? void 0 : g2.getSubscribePeerConnection()) == null ? void 0 : v2.getStats();
|
24756
|
+
o2 == null || o2.forEach((E2) => {
|
24757
|
+
if (E2.type === "inbound-rtp") {
|
24758
|
+
let P8 = E2.kind === "audio" ? this.remoteAudioTrackStatsList : this.remoteVideoTrackStatsList, w2 = Pt("bytesReceived", E2, de(P8));
|
24759
|
+
P8.push(M2(m({}, E2), { bitrate: w2 }));
|
24760
24760
|
}
|
24761
24761
|
});
|
24762
24762
|
});
|
24763
24763
|
}
|
24764
24764
|
buildReport() {
|
24765
|
-
var T, g2,
|
24766
|
-
let e = (T = de(this.peerStatsList)) == null ? void 0 : T.publish, t2 = (g2 = de(this.peerStatsList)) == null ? void 0 : g2.subscribe, i2 = e != null && e.responsesReceived ? ((e == null ? void 0 : e.totalRoundTripTime) || 0) / e.responsesReceived : 0, r2 = t2 != null && t2.responsesReceived ? ((t2 == null ? void 0 : t2.totalRoundTripTime) || 0) / t2.responsesReceived : 0, s2 = Number(((i2 + r2) / 2 * 1e3).toFixed(2)), o2 = ((
|
24765
|
+
var T, g2, v2, E2, P8, w2, Oe, Xt;
|
24766
|
+
let e = (T = de(this.peerStatsList)) == null ? void 0 : T.publish, t2 = (g2 = de(this.peerStatsList)) == null ? void 0 : g2.subscribe, i2 = e != null && e.responsesReceived ? ((e == null ? void 0 : e.totalRoundTripTime) || 0) / e.responsesReceived : 0, r2 = t2 != null && t2.responsesReceived ? ((t2 == null ? void 0 : t2.totalRoundTripTime) || 0) / t2.responsesReceived : 0, s2 = Number(((i2 + r2) / 2 * 1e3).toFixed(2)), o2 = ((v2 = de(this.remoteAudioTrackStatsList)) == null ? void 0 : v2.packetsReceived) || 0, n2 = ((E2 = de(this.remoteVideoTrackStatsList)) == null ? void 0 : E2.packetsReceived) || 0, l2 = this.localAudioTrackStatsList.map((x2) => x2 ? Ne(Object.values(x2), ($) => $.bitrate) : 0), u2 = this.localVideoTrackStatsList.map((x2) => x2 ? Ne(Object.values(x2), ($) => $.bitrate) : 0), p2 = de(this.localAudioTrackStatsList), h2 = de(this.localVideoTrackStatsList);
|
24767
24767
|
return { combined: { roundTripTime: s2, packetsReceived: o2 + n2, packetsLost: (t2 == null ? void 0 : t2.packetsLost) || 0, bytesSent: (e == null ? void 0 : e.bytesSent) || 0, bytesReceived: (t2 == null ? void 0 : t2.bytesReceived) || 0, bitrateSent: Ne(this.peerStatsList, (x2) => {
|
24768
24768
|
var $;
|
24769
24769
|
return ($ = x2.publish) == null ? void 0 : $.bitrate;
|
24770
24770
|
}), bitrateReceived: Ne(this.peerStatsList, (x2) => {
|
24771
24771
|
var $;
|
24772
24772
|
return ($ = x2.subscribe) == null ? void 0 : $.bitrate;
|
24773
|
-
}) }, audio: { roundTripTime: s2, packetsReceived: o2, packetsLost: ((
|
24773
|
+
}) }, audio: { roundTripTime: s2, packetsReceived: o2, packetsLost: ((P8 = de(this.remoteAudioTrackStatsList)) == null ? void 0 : P8.packetsLost) || 0, bytesReceived: ((w2 = de(this.remoteAudioTrackStatsList)) == null ? void 0 : w2.bytesReceived) || 0, bitrateSent: Ne(l2, (x2) => x2), bitrateReceived: Ne(this.remoteAudioTrackStatsList, (x2) => x2.bitrate), bytesSent: p2 ? Object.values(p2).reduce((x2, $) => x2 + ($.bytesSent || 0), 0) : 0 }, video: { roundTripTime: s2, packetsLost: ((Oe = de(this.remoteVideoTrackStatsList)) == null ? void 0 : Oe.packetsLost) || 0, bytesReceived: ((Xt = de(this.remoteVideoTrackStatsList)) == null ? void 0 : Xt.bytesReceived) || 0, packetsReceived: n2, bitrateSent: Ne(u2, (x2) => x2), bitrateReceived: Ne(this.remoteVideoTrackStatsList, (x2) => x2.bitrate), bytesSent: h2 ? Object.values(h2).reduce((x2, $) => x2 + ($.bytesSent || 0), 0) : 0 } };
|
24774
24774
|
}
|
24775
24775
|
};
|
24776
|
-
|
24776
|
+
sn2 = ((n2) => (n2[n2.STARTING = 0] = "STARTING", n2[n2.INIT_FETCHED = 1] = "INIT_FETCHED", n2[n2.SIGNAL_CONNECTED = 2] = "SIGNAL_CONNECTED", n2[n2.ICE_ESTABLISHED = 3] = "ICE_ESTABLISHED", n2[n2.MEDIA_CAPTURED = 4] = "MEDIA_CAPTURED", n2[n2.MEDIA_PUBLISHED = 5] = "MEDIA_PUBLISHED", n2[n2.COMPLETED = 6] = "COMPLETED", n2))(sn2 || {});
|
24777
24777
|
Hi = class {
|
24778
24778
|
constructor(e, t2, i2, r2) {
|
24779
24779
|
this.sdk = e;
|
@@ -24802,9 +24802,9 @@ var init_dist = __esm({
|
|
24802
24802
|
this.onChangeTrackStateRequest = this.sdkListener.onChangeTrackStateRequest.bind(this.sdkListener);
|
24803
24803
|
this.onChangeMultiTrackStateRequest = this.sdkListener.onChangeMultiTrackStateRequest.bind(this.sdkListener);
|
24804
24804
|
this.onRemovedFromRoom = this.sdkListener.onRemovedFromRoom.bind(this.sdkListener);
|
24805
|
-
this.onNetworkQuality = (
|
24805
|
+
this.onNetworkQuality = (Da = this.sdkListener.onNetworkQuality) == null ? void 0 : Da.bind(this.sdkListener);
|
24806
24806
|
this.onPreview = this.sdkListener.onPreview.bind(this.sdkListener);
|
24807
|
-
this.onDeviceChange = (
|
24807
|
+
this.onDeviceChange = (wa = this.sdkListener.onDeviceChange) == null ? void 0 : wa.bind(this.sdkListener);
|
24808
24808
|
this.onSessionStoreUpdate = this.sdkListener.onSessionStoreUpdate.bind(this.sdkListener);
|
24809
24809
|
this.onPollsUpdate = this.sdkListener.onPollsUpdate.bind(this.sdkListener);
|
24810
24810
|
this.onWhiteboardUpdate = this.sdkListener.onWhiteboardUpdate.bind(this.sdkListener);
|
@@ -24856,7 +24856,7 @@ var init_dist = __esm({
|
|
24856
24856
|
var t2, i2;
|
24857
24857
|
this.sdkListener.onJoin(e), (t2 = this.sdk.getWebrtcInternals()) == null || t2.onStatsChange((r2) => this.statsCollector.handleStatsUpdate(r2)), (i2 = this.sdk.getWebrtcInternals()) == null || i2.start(), this.cleanupTimer = window.setTimeout(() => {
|
24858
24858
|
this.cleanupAndReport();
|
24859
|
-
},
|
24859
|
+
}, Ha);
|
24860
24860
|
}
|
24861
24861
|
onError(e) {
|
24862
24862
|
this.sdkListener.onError(e), this.errors.push(e), e != null && e.isTerminal && this.cleanupAndReport();
|
@@ -24915,7 +24915,7 @@ var init_dist = __esm({
|
|
24915
24915
|
constructor(e, t2) {
|
24916
24916
|
this.sdk = e;
|
24917
24917
|
this.sdkListener = t2;
|
24918
|
-
this.recordedAudio =
|
24918
|
+
this.recordedAudio = La;
|
24919
24919
|
this.sdk.setIsDiagnostics(true), this.initSdkWithLocalPeer();
|
24920
24920
|
}
|
24921
24921
|
get localPeer() {
|
@@ -24952,7 +24952,7 @@ var init_dist = __esm({
|
|
24952
24952
|
(t2 = (e = this.localPeer) == null ? void 0 : e.videoTrack) == null || t2.cleanup(), this.localPeer && (this.localPeer.videoTrack = void 0);
|
24953
24953
|
}
|
24954
24954
|
startMicCheck(s2) {
|
24955
|
-
return c2(this, arguments, function* ({ inputDevice: e, onError: t2, onStop: i2, time: r2 =
|
24955
|
+
return c2(this, arguments, function* ({ inputDevice: e, onError: t2, onStop: i2, time: r2 = Ca }) {
|
24956
24956
|
var u2, p2, h2, T;
|
24957
24957
|
this.initSdkWithLocalPeer((g2) => {
|
24958
24958
|
this.stopMicCheck(), t2 == null || t2(g2);
|
@@ -24967,9 +24967,9 @@ var init_dist = __esm({
|
|
24967
24967
|
this.mediaRecorder.ondataavailable = function(g2) {
|
24968
24968
|
n2.push(g2.data);
|
24969
24969
|
}, this.mediaRecorder.onstop = () => {
|
24970
|
-
var
|
24971
|
-
let g2 = new Blob(n2, { type: (
|
24972
|
-
this.recordedAudio = URL.createObjectURL(g2), (
|
24970
|
+
var v2, E2;
|
24971
|
+
let g2 = new Blob(n2, { type: (v2 = this.mediaRecorder) == null ? void 0 : v2.mimeType });
|
24972
|
+
this.recordedAudio = URL.createObjectURL(g2), (E2 = this.onStopMicCheck) == null || E2.call(this);
|
24973
24973
|
}, this.mediaRecorder.start();
|
24974
24974
|
let l2 = setTimeout(() => {
|
24975
24975
|
this.stopMicCheck();
|
@@ -25114,7 +25114,7 @@ var init_dist = __esm({
|
|
25114
25114
|
b2.d("layer none will be ignored");
|
25115
25115
|
return;
|
25116
25116
|
}
|
25117
|
-
if (((r2 = this.store.getState(
|
25117
|
+
if (((r2 = this.store.getState(ma(e))) == null ? void 0 : r2.preferredLayer) === t2) {
|
25118
25118
|
b2.d(`preferred layer is already ${t2}`);
|
25119
25119
|
return;
|
25120
25120
|
}
|
@@ -25456,7 +25456,7 @@ var init_dist = __esm({
|
|
25456
25456
|
}
|
25457
25457
|
endRoom(e, t2) {
|
25458
25458
|
return c2(this, null, function* () {
|
25459
|
-
let i2 = this.store.getState(
|
25459
|
+
let i2 = this.store.getState(ta);
|
25460
25460
|
if (!(i2 != null && i2.endRoom)) {
|
25461
25461
|
b2.w("You are not allowed to perform this action - endRoom");
|
25462
25462
|
return;
|
@@ -25545,7 +25545,7 @@ var init_dist = __esm({
|
|
25545
25545
|
return c2(this, null, function* () {
|
25546
25546
|
if (typeof e == "string") {
|
25547
25547
|
let i2 = this.getTrackById(e);
|
25548
|
-
i2 &&
|
25548
|
+
i2 && Ea(i2) ? yield this.sdk.changeTrackState(i2, t2) : this.logPossibleInconsistency(`No remote track with ID ${e} found for change track state`);
|
25549
25549
|
} else
|
25550
25550
|
Array.isArray(e) && e.forEach((i2) => this.setRemoteTrackEnabled(i2, t2));
|
25551
25551
|
});
|
@@ -25638,7 +25638,7 @@ var init_dist = __esm({
|
|
25638
25638
|
return M2(m({}, u2), { answer: u2.answer ? m({}, u2.answer) : void 0, options: (p2 = u2.options) == null ? void 0 : p2.map((T) => m({}, T)), responses: (h2 = u2.responses) == null ? void 0 : h2.map((T) => m({}, T)) });
|
25639
25639
|
}) }), o2;
|
25640
25640
|
}, {});
|
25641
|
-
|
25641
|
+
Ia(r2.polls, s2);
|
25642
25642
|
}, i2), t2.forEach((r2) => this.hmsNotifications.sendPollUpdate(e, r2.id));
|
25643
25643
|
}
|
25644
25644
|
onWhiteboardUpdate(e) {
|
@@ -25666,26 +25666,26 @@ var init_dist = __esm({
|
|
25666
25666
|
e = `${e}_fullSync`, b2.time(`store-sync-${e}`);
|
25667
25667
|
let t2 = {}, i2 = [], r2 = {}, s2 = {}, o2 = {}, n2, l2 = this.sdk.getPeers();
|
25668
25668
|
for (let g2 of l2) {
|
25669
|
-
let
|
25670
|
-
t2[
|
25671
|
-
let
|
25672
|
-
for (let
|
25673
|
-
if (!
|
25669
|
+
let v2 = _2.convertPeer(g2);
|
25670
|
+
t2[v2.id] = v2, i2.push(v2.id), o2[v2.id] = { peerID: v2.id, downlinkQuality: g2.networkQuality || -1 };
|
25671
|
+
let E2 = [g2.audioTrack, g2.videoTrack, ...g2.auxiliaryTracks];
|
25672
|
+
for (let P8 of E2) {
|
25673
|
+
if (!P8)
|
25674
25674
|
continue;
|
25675
|
-
let w2 = _2.convertTrack(
|
25675
|
+
let w2 = _2.convertTrack(P8);
|
25676
25676
|
r2[w2.id] = w2;
|
25677
25677
|
}
|
25678
25678
|
if (g2.isLocal) {
|
25679
|
-
let
|
25680
|
-
n2 = this.getPreviewFields(
|
25679
|
+
let P8 = g2;
|
25680
|
+
n2 = this.getPreviewFields(P8), Object.assign(s2, this.getMediaSettings(P8));
|
25681
25681
|
}
|
25682
25682
|
}
|
25683
25683
|
let u2 = this.sdk.getRecordingState(), p2 = this.sdk.getRTMPState(), h2 = this.sdk.getHLSState(), T = this.sdk.getTranscriptionState();
|
25684
25684
|
this.setState((g2) => {
|
25685
|
-
var
|
25685
|
+
var P8;
|
25686
25686
|
g2.room.peers = i2;
|
25687
|
-
let
|
25688
|
-
|
25687
|
+
let v2 = g2.peers, E2 = g2.tracks;
|
25688
|
+
ba(v2, t2), Ra(E2, r2), Object.assign(g2.settings, s2), g2.room.isConnected && Object.assign(g2.connectionQualities, o2), (P8 = g2.preview) != null && P8.localPeer && (n2 != null && n2.localPeer) ? Object.assign(g2.preview, n2) : g2.preview = n2, Object.assign(g2.roles, _2.convertRoles(this.sdk.getRoles())), Object.assign(g2.playlist, _2.convertPlaylist(this.sdk.getPlaylistManager())), Object.assign(g2.room, _2.convertRecordingStreamingState(u2, p2, h2, T)), Object.assign(g2.templateAppData, this.sdk.getTemplateAppData());
|
25689
25689
|
}, e), b2.timeEnd(`store-sync-${e}`);
|
25690
25690
|
}
|
25691
25691
|
onPreview(e) {
|
@@ -25814,7 +25814,7 @@ var init_dist = __esm({
|
|
25814
25814
|
i2.room.roomState = "Failed", i2.errors.push(t2);
|
25815
25815
|
}, "errorTerminal")) : this.store.getState().errors.length < 50 && this.setState((r2) => {
|
25816
25816
|
r2.errors.push(t2);
|
25817
|
-
}, "error"), this.syncRoomState("errorSync"), this.hmsNotifications.sendError(t2), b2.e("received error from sdk", t2 instanceof
|
25817
|
+
}, "error"), this.syncRoomState("errorSync"), this.hmsNotifications.sendError(t2), b2.e("received error from sdk", t2 instanceof f2 ? `${t2}` : t2);
|
25818
25818
|
}
|
25819
25819
|
handleTrackRemove(e, t2) {
|
25820
25820
|
this.setState((i2) => {
|
@@ -25851,7 +25851,7 @@ var init_dist = __esm({
|
|
25851
25851
|
}
|
25852
25852
|
getMediaSettings(e) {
|
25853
25853
|
var s2;
|
25854
|
-
let t2 = this.store.getState(
|
25854
|
+
let t2 = this.store.getState(zs), i2 = e.audioTrack, r2 = e.videoTrack;
|
25855
25855
|
return { audioInputDeviceId: (i2 == null ? void 0 : i2.settings.deviceId) || t2.audioInputDeviceId, videoInputDeviceId: (r2 == null ? void 0 : r2.settings.deviceId) || t2.videoInputDeviceId, audioOutputDeviceId: (s2 = this.sdk.getAudioOutput().getDevice()) == null ? void 0 : s2.deviceId };
|
25856
25856
|
}
|
25857
25857
|
getPreviewFields(e) {
|
@@ -25874,7 +25874,7 @@ var init_dist = __esm({
|
|
25874
25874
|
let t2 = this.store.getState(te);
|
25875
25875
|
if ((t2 == null ? void 0 : t2.videoTrack) !== e)
|
25876
25876
|
return false;
|
25877
|
-
let i2 = this.store.getState(
|
25877
|
+
let i2 = this.store.getState(Xs), r2 = this.store.getState(Br);
|
25878
25878
|
return i2 && !r2;
|
25879
25879
|
}
|
25880
25880
|
logPossibleInconsistency(e) {
|
@@ -25934,13 +25934,13 @@ var init_dist = __esm({
|
|
25934
25934
|
this.syncRoomState("roleUpdate");
|
25935
25935
|
}
|
25936
25936
|
getStoreLocalTrackIDfromSDKTrack(e) {
|
25937
|
-
return this.store.getState(
|
25937
|
+
return this.store.getState(Ys).find((i2) => {
|
25938
25938
|
var r2;
|
25939
25939
|
return ((r2 = this.getTrackById(i2)) == null ? void 0 : r2.trackId) === e.trackId;
|
25940
25940
|
});
|
25941
25941
|
}
|
25942
25942
|
updateMidCallPreviewRoomState(e, t2) {
|
25943
|
-
t2.isLocal && e === 8 && this.store.getState(
|
25943
|
+
t2.isLocal && e === 8 && this.store.getState(Zs) && this.setState((i2) => {
|
25944
25944
|
i2.room.roomState = "Connected";
|
25945
25945
|
}, "midCallPreviewCompleted");
|
25946
25946
|
}
|
@@ -25976,8 +25976,8 @@ var init_dist = __esm({
|
|
25976
25976
|
try {
|
25977
25977
|
let g2 = false;
|
25978
25978
|
for (; !g2; ) {
|
25979
|
-
let { value:
|
25980
|
-
g2 =
|
25979
|
+
let { value: v2, done: E2 } = yield h2.read();
|
25980
|
+
g2 = E2, v2 && (n2 += v2.byteLength, this.sendScore({ scoreMap: r2, downloadedSize: n2, startTime: o2 }));
|
25981
25981
|
}
|
25982
25982
|
} catch (g2) {
|
25983
25983
|
g2.name !== "AbortError" && d2.d(this.TAG, g2);
|
@@ -26023,8 +26023,8 @@ var init_dist = __esm({
|
|
26023
26023
|
r3 && (yield this.diffRolesAndPublishTracks({ oldRole: e2, newRole: t3 }), (s3 = this.listener) == null || s3.onPeerUpdate(8, r3));
|
26024
26024
|
});
|
26025
26025
|
this.diffRolesAndPublishTracks = (i3) => c2(this, [i3], function* ({ oldRole: e2, newRole: t3 }) {
|
26026
|
-
var g2,
|
26027
|
-
let r3 = new Set(e2.publishParams.allowed), s3 = new Set(t3.publishParams.allowed), o3 = this.removeTrack(r3, s3, "video"), n2 = this.removeTrack(r3, s3, "audio"), l2 = this.removeTrack(r3, s3, "screen"), u2 = this.hasSimulcastDifference((g2 = e2.publishParams.simulcast) == null ? void 0 : g2.video, (
|
26026
|
+
var g2, v2, E2, P8, w2, Oe;
|
26027
|
+
let r3 = new Set(e2.publishParams.allowed), s3 = new Set(t3.publishParams.allowed), o3 = this.removeTrack(r3, s3, "video"), n2 = this.removeTrack(r3, s3, "audio"), l2 = this.removeTrack(r3, s3, "screen"), u2 = this.hasSimulcastDifference((g2 = e2.publishParams.simulcast) == null ? void 0 : g2.video, (v2 = t3.publishParams.simulcast) == null ? void 0 : v2.video), p2 = this.hasSimulcastDifference((E2 = e2.publishParams.simulcast) == null ? void 0 : E2.screen, (P8 = t3.publishParams.simulcast) == null ? void 0 : P8.screen), h2 = (Oe = (w2 = this.store.getLocalPeer()) == null ? void 0 : w2.videoTrack) == null ? void 0 : Oe.enabled;
|
26028
26028
|
yield this.removeAudioTrack(n2), yield this.removeVideoTracks(o3 || u2), yield this.removeScreenTracks(l2 || p2);
|
26029
26029
|
let T = this.getSettings();
|
26030
26030
|
u2 && (T.isVideoMuted = !h2), yield this.publish(T), yield this.syncDevices(T, t3);
|
@@ -26104,7 +26104,7 @@ var init_dist = __esm({
|
|
26104
26104
|
this.addEventToStorage(e);
|
26105
26105
|
return;
|
26106
26106
|
}
|
26107
|
-
let t2 = { 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 } }, i2 = this.env === "prod" ?
|
26107
|
+
let t2 = { 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 } }, i2 = this.env === "prod" ? Bs : Vs;
|
26108
26108
|
fetch(i2, { method: "POST", headers: { "Content-Type": "application/json", Authorization: `Bearer ${e.metadata.token}`, user_agent_v2: e.metadata.userAgent }, body: JSON.stringify(t2) }).then((r2) => {
|
26109
26109
|
if (r2.status === 401) {
|
26110
26110
|
this.removeFromStorage(e);
|
@@ -26483,7 +26483,7 @@ var init_dist = __esm({
|
|
26483
26483
|
e.metadata.token = (r2 = this.store.getConfig()) == null ? void 0 : r2.authToken, e.metadata.peer = { session_id: t2 == null ? void 0 : t2.sessionId, room_id: t2 == null ? void 0 : t2.id, room_name: t2 == null ? void 0 : t2.name, template_id: t2 == null ? void 0 : t2.templateId, joined_at: (s2 = t2 == null ? void 0 : t2.joinedAt) == null ? void 0 : s2.getTime(), session_started_at: (o2 = t2 == null ? void 0 : t2.startedAt) == null ? void 0 : o2.getTime(), role: (n2 = i2 == null ? void 0 : i2.role) == null ? void 0 : n2.name, user_name: i2 == null ? void 0 : i2.name, user_data: i2 == null ? void 0 : i2.metadata, peer_id: i2 == null ? void 0 : i2.peerId }, Pe.sendEvent(e);
|
26484
26484
|
}
|
26485
26485
|
};
|
26486
|
-
|
26486
|
+
_a7 = { autoplayFailed: void 0, initialized: false, autoplayCheckPromise: void 0 };
|
26487
26487
|
Ot = class {
|
26488
26488
|
constructor(e, t2, i2) {
|
26489
26489
|
this.store = e;
|
@@ -26492,7 +26492,7 @@ var init_dist = __esm({
|
|
26492
26492
|
this.autoPausedTracks = /* @__PURE__ */ new Set();
|
26493
26493
|
this.TAG = "[AudioSinkManager]:";
|
26494
26494
|
this.volume = 100;
|
26495
|
-
this.state = m({},
|
26495
|
+
this.state = m({}, _a7);
|
26496
26496
|
this.timer = null;
|
26497
26497
|
this.autoUnpauseTimer = null;
|
26498
26498
|
this.earpieceSelected = false;
|
@@ -26599,7 +26599,7 @@ var init_dist = __esm({
|
|
26599
26599
|
}
|
26600
26600
|
cleanup() {
|
26601
26601
|
var e;
|
26602
|
-
(e = this.audioSink) == null || e.remove(), this.audioSink = void 0, this.timer && (clearInterval(this.timer), this.timer = null), this.autoUnpauseTimer && (clearInterval(this.autoUnpauseTimer), this.autoUnpauseTimer = null), this.eventBus.audioTrackAdded.unsubscribe(this.handleTrackAdd), this.eventBus.audioTrackRemoved.unsubscribe(this.handleTrackRemove), this.eventBus.audioTrackUpdate.unsubscribe(this.handleTrackUpdate), this.eventBus.deviceChange.unsubscribe(this.handleAudioDeviceChange), this.autoPausedTracks = /* @__PURE__ */ new Set(), this.state = m({},
|
26602
|
+
(e = this.audioSink) == null || e.remove(), this.audioSink = void 0, this.timer && (clearInterval(this.timer), this.timer = null), this.autoUnpauseTimer && (clearInterval(this.autoUnpauseTimer), this.autoUnpauseTimer = null), this.eventBus.audioTrackAdded.unsubscribe(this.handleTrackAdd), this.eventBus.audioTrackRemoved.unsubscribe(this.handleTrackRemove), this.eventBus.audioTrackUpdate.unsubscribe(this.handleTrackUpdate), this.eventBus.deviceChange.unsubscribe(this.handleAudioDeviceChange), this.autoPausedTracks = /* @__PURE__ */ new Set(), this.state = m({}, _a7);
|
26603
26603
|
}
|
26604
26604
|
playAudioFor(e) {
|
26605
26605
|
return c2(this, null, function* () {
|
@@ -27282,7 +27282,7 @@ var init_dist = __esm({
|
|
27282
27282
|
}
|
27283
27283
|
};
|
27284
27284
|
Bt = (a11, e, t2) => {
|
27285
|
-
let i2 = t2 === "qa" ?
|
27285
|
+
let i2 = t2 === "qa" ? $s : Ws, r2 = new URL(i2);
|
27286
27286
|
return r2.searchParams.set("endpoint", `https://${e}`), r2.searchParams.set("token", a11), r2.toString();
|
27287
27287
|
};
|
27288
27288
|
Ki = class {
|
@@ -27410,8 +27410,8 @@ var init_dist = __esm({
|
|
27410
27410
|
var h2, T;
|
27411
27411
|
let p2 = (h2 = e == null ? void 0 : e.questions) == null ? void 0 : h2.find((g2) => g2.index === n2.question);
|
27412
27412
|
if (p2) {
|
27413
|
-
let g2 = { id: n2.response_id, questionIndex: n2.question, option: n2.option, options: n2.options, text: n2.text, responseFinal: u2, peer: { peerid: l2.peerid, userHash: l2.hash, userid: l2.userid, username: l2.username }, skipped: n2.skipped, type: n2.type, update: n2.update },
|
27414
|
-
(T = r2.questions) != null && T[n2.question - 1] && (r2.questions[n2.question - 1].responses = [...
|
27413
|
+
let g2 = { id: n2.response_id, questionIndex: n2.question, option: n2.option, options: n2.options, text: n2.text, responseFinal: u2, peer: { peerid: l2.peerid, userHash: l2.hash, userid: l2.userid, username: l2.username }, skipped: n2.skipped, type: n2.type, update: n2.update }, v2 = p2.responses && !t2 ? [...p2.responses] : [];
|
27414
|
+
(T = r2.questions) != null && T[n2.question - 1] && (r2.questions[n2.question - 1].responses = [...v2, g2]);
|
27415
27415
|
}
|
27416
27416
|
}), this.store.setPoll(r2), (o2 = this.listener) == null || o2.onPollsUpdate(4, [r2]);
|
27417
27417
|
});
|
@@ -27426,9 +27426,9 @@ var init_dist = __esm({
|
|
27426
27426
|
}
|
27427
27427
|
for (let l2 of r2) {
|
27428
27428
|
let u2 = yield this.transport.signal.getPollQuestions({ poll_id: l2.poll_id, index: 0, count: 50 }), p2 = qi(l2), h2 = this.store.getPoll(l2.poll_id);
|
27429
|
-
p2.questions = u2.questions.map(({ question: T, options: g2, answer:
|
27430
|
-
var
|
27431
|
-
return M2(m({}, T), { options: g2, answer:
|
27429
|
+
p2.questions = u2.questions.map(({ question: T, options: g2, answer: v2 }, E2) => {
|
27430
|
+
var P8, w2;
|
27431
|
+
return M2(m({}, T), { options: g2, answer: v2, responses: (w2 = (P8 = h2 == null ? void 0 : h2.questions) == null ? void 0 : P8[E2]) == null ? void 0 : w2.responses });
|
27432
27432
|
}), t2.push(p2), this.store.setPoll(p2);
|
27433
27433
|
}
|
27434
27434
|
return (n2 = this.listener) == null || n2.onPollsUpdate(3, t2), t2;
|
@@ -27762,7 +27762,7 @@ var init_dist = __esm({
|
|
27762
27762
|
toSdkError(e) {
|
27763
27763
|
if (!(e != null && e.code))
|
27764
27764
|
return;
|
27765
|
-
let t2 = e.message || "error in streaming/recording", i2 = new
|
27765
|
+
let t2 = e.message || "error in streaming/recording", i2 = new f2(e.code, "ServerErrors", "NONE", t2, t2);
|
27766
27766
|
return d2.e(this.TAG, "error in streaming/recording", i2), i2;
|
27767
27767
|
}
|
27768
27768
|
};
|
@@ -27942,7 +27942,7 @@ var init_dist = __esm({
|
|
27942
27942
|
}
|
27943
27943
|
};
|
27944
27944
|
j2 = ((s2) => (s2[s2.ConnectFailed = 0] = "ConnectFailed", s2[s2.SignalDisconnect = 1] = "SignalDisconnect", s2[s2.JoinWSMessageFailed = 2] = "JoinWSMessageFailed", s2[s2.PublishIceConnectionFailed = 3] = "PublishIceConnectionFailed", s2[s2.SubscribeIceConnectionFailed = 4] = "SubscribeIceConnectionFailed", s2))(j2 || {});
|
27945
|
-
|
27945
|
+
Na = { 0: [], 1: [], 2: [1], 3: [1], 4: [1] };
|
27946
27946
|
tr = ((n2) => (n2.Disconnected = "Disconnected", n2.Connecting = "Connecting", n2.Joined = "Joined", n2.Preview = "Preview", n2.Failed = "Failed", n2.Reconnecting = "Reconnecting", n2.Leaving = "Leaving", n2))(tr || {});
|
27947
27947
|
ir = class {
|
27948
27948
|
constructor(e) {
|
@@ -27978,18 +27978,18 @@ var init_dist = __esm({
|
|
27978
27978
|
d2.d(this.TAG, `schedule: Already a task for ${j2[e]} scheduled, waiting for its completion`), yield g2.promise;
|
27979
27979
|
return;
|
27980
27980
|
}
|
27981
|
-
let
|
27981
|
+
let v2 = new ir((E2, P8) => {
|
27982
27982
|
});
|
27983
|
-
this.inProgress.set(e,
|
27983
|
+
this.inProgress.set(e, v2), this.sendEvent(t2, e);
|
27984
27984
|
}
|
27985
|
-
let u2 = false, p2 =
|
27985
|
+
let u2 = false, p2 = Na[e];
|
27986
27986
|
for (let g2 in p2) {
|
27987
|
-
let
|
27987
|
+
let v2 = p2[parseInt(g2)];
|
27988
27988
|
try {
|
27989
|
-
let
|
27990
|
-
|
27991
|
-
} catch (
|
27992
|
-
d2.d(this.TAG, `schedule: Stopping retry task of ${j2[e]} as it's dependency ${j2[
|
27989
|
+
let E2 = this.inProgress.get(v2);
|
27990
|
+
E2 && (d2.d(this.TAG, `schedule: Suspending retry task of ${j2[e]}, waiting for ${j2[v2]} to recover`), yield E2.promise, d2.d(this.TAG, `schedule: Resuming retry task ${j2[e]} as it's dependency ${j2[v2]} is recovered`));
|
27991
|
+
} catch (E2) {
|
27992
|
+
d2.d(this.TAG, `schedule: Stopping retry task of ${j2[e]} as it's dependency ${j2[v2]} failed to recover`), u2 = true;
|
27993
27993
|
break;
|
27994
27994
|
}
|
27995
27995
|
}
|
@@ -28198,16 +28198,16 @@ var init_dist = __esm({
|
|
28198
28198
|
Object.keys(r2).forEach((s2) => {
|
28199
28199
|
let o2 = r2[s2], n2 = this.store.getLocalPeerTracks().find((l2) => l2.getTrackIDBeingSent() === s2);
|
28200
28200
|
Object.keys(o2).forEach((l2) => {
|
28201
|
-
var g2,
|
28201
|
+
var g2, v2, E2;
|
28202
28202
|
let u2 = o2[l2];
|
28203
28203
|
if (!n2)
|
28204
28204
|
return;
|
28205
|
-
let p2 = this.getTrackIdentifier(n2.trackId, u2), h2 = M2(m({}, u2), { availableOutgoingBitrate: (
|
28205
|
+
let p2 = this.getTrackIdentifier(n2.trackId, u2), h2 = M2(m({}, u2), { availableOutgoingBitrate: (v2 = (g2 = t2.getLocalPeerStats()) == null ? void 0 : g2.publish) == null ? void 0 : v2.availableOutgoingBitrate });
|
28206
28206
|
if (p2 && this.trackAnalytics.has(p2))
|
28207
|
-
(
|
28207
|
+
(E2 = this.trackAnalytics.get(p2)) == null || E2.pushTempStat(h2);
|
28208
28208
|
else if (n2) {
|
28209
|
-
let
|
28210
|
-
|
28209
|
+
let P8 = new zr({ track: n2, sampleWindowSize: this.sampleWindowSize, rid: u2.rid, ssrc: u2.ssrc.toString(), kind: u2.kind });
|
28210
|
+
P8.pushTempStat(h2), this.trackAnalytics.set(this.getTrackIdentifier(n2.trackId, u2), P8);
|
28211
28211
|
}
|
28212
28212
|
let T = this.trackAnalytics.get(p2);
|
28213
28213
|
T != null && T.shouldCreateSample() && (i2 = true);
|
@@ -28251,20 +28251,20 @@ var init_dist = __esm({
|
|
28251
28251
|
handleStatsUpdate(t2) {
|
28252
28252
|
let i2 = t2.getAllRemoteTracksStats(), r2 = false;
|
28253
28253
|
Object.keys(i2).forEach((s2) => {
|
28254
|
-
var
|
28255
|
-
let o2 = this.store.getTrackById(s2), n2 = i2[s2], l2 = (
|
28256
|
-
let Oe = (w2 == null ? void 0 : w2.jitterBufferDelay) || 0, Xt = (w2 == null ? void 0 : w2.jitterBufferEmittedCount) || 0, x2 = ((
|
28254
|
+
var v2, E2;
|
28255
|
+
let o2 = this.store.getTrackById(s2), n2 = i2[s2], l2 = (v2 = this.trackAnalytics.get(s2)) == null ? void 0 : v2.getLatestStat(), p2 = ((P8, w2) => {
|
28256
|
+
let Oe = (w2 == null ? void 0 : w2.jitterBufferDelay) || 0, Xt = (w2 == null ? void 0 : w2.jitterBufferEmittedCount) || 0, x2 = ((P8 == null ? void 0 : P8.jitterBufferDelay) || 0) - Oe, $ = ((P8 == null ? void 0 : P8.jitterBufferEmittedCount) || 0) - Xt;
|
28257
28257
|
return $ > 0 ? x2 * 1e3 / $ : (w2 == null ? void 0 : w2.calculatedJitterBufferDelay) || 0;
|
28258
28258
|
})(n2, l2), h2 = this.calculateAvSyncForStat(n2, t2), T = M2(m({}, n2), { calculatedJitterBufferDelay: p2, avSync: h2 });
|
28259
28259
|
if (n2.kind === "video") {
|
28260
|
-
let
|
28261
|
-
T.expectedFrameHeight =
|
28260
|
+
let P8 = o2.getPreferredLayerDefinition();
|
28261
|
+
T.expectedFrameHeight = P8 == null ? void 0 : P8.resolution.height, T.expectedFrameWidth = P8 == null ? void 0 : P8.resolution.width;
|
28262
28262
|
}
|
28263
28263
|
if (this.trackAnalytics.has(s2))
|
28264
|
-
(
|
28264
|
+
(E2 = this.trackAnalytics.get(s2)) == null || E2.pushTempStat(T);
|
28265
28265
|
else if (o2) {
|
28266
|
-
let
|
28267
|
-
|
28266
|
+
let P8 = new Xr({ track: o2, sampleWindowSize: this.sampleWindowSize, ssrc: n2.ssrc.toString(), kind: n2.kind });
|
28267
|
+
P8.pushTempStat(T), this.trackAnalytics.set(s2, P8);
|
28268
28268
|
}
|
28269
28269
|
let g2 = this.trackAnalytics.get(s2);
|
28270
28270
|
g2 != null && g2.shouldCreateSample() && (r2 = true);
|
@@ -28330,7 +28330,7 @@ var init_dist = __esm({
|
|
28330
28330
|
return c2(this, null, function* () {
|
28331
28331
|
try {
|
28332
28332
|
let i2 = yield this.nativeConnection.createOffer(t2);
|
28333
|
-
return d2.d(Ee, `[role=${this.role}] createOffer offer=${JSON.stringify(i2, null, 1)}`),
|
28333
|
+
return d2.d(Ee, `[role=${this.role}] createOffer offer=${JSON.stringify(i2, null, 1)}`), Ua(Oa(i2, e));
|
28334
28334
|
} catch (i2) {
|
28335
28335
|
throw S2.WebrtcErrors.CreateOfferFailed(this.action, i2.message);
|
28336
28336
|
}
|
@@ -28545,7 +28545,7 @@ var init_dist = __esm({
|
|
28545
28545
|
});
|
28546
28546
|
let s2 = this.remoteStreams.get(r2), o2 = t2.track.kind === "audio" ? se : U2, n2 = new o2(s2, t2.track);
|
28547
28547
|
t2.track.kind === "video" && s2.setVideoLayerLocally("none", "addTrack", "subscribeConnection"), n2.transceiver = t2.transceiver;
|
28548
|
-
let l2 =
|
28548
|
+
let l2 = xa(this.remoteDescription, (u2 = t2.transceiver) == null ? void 0 : u2.mid);
|
28549
28549
|
l2 && n2.setSdpTrackId(l2), s2.tracks.push(n2), this.observer.onTrackAdd(n2);
|
28550
28550
|
};
|
28551
28551
|
}
|
@@ -28568,7 +28568,7 @@ var init_dist = __esm({
|
|
28568
28568
|
});
|
28569
28569
|
}
|
28570
28570
|
};
|
28571
|
-
|
28571
|
+
Ba = (a11, e) => !e || e.length === 0 ? a11 : e.map((i2) => ({ urls: i2.urls, credentialType: "password", credential: i2.password, username: i2.userName }));
|
28572
28572
|
ur = "[InitService]";
|
28573
28573
|
Jt = class {
|
28574
28574
|
static handleError(e, t2) {
|
@@ -28584,15 +28584,15 @@ var init_dist = __esm({
|
|
28584
28584
|
static fetchInitConfig(n2) {
|
28585
28585
|
return c2(this, arguments, function* ({ token: e, peerId: t2, userAgent: i2, initEndpoint: r2 = "https://prod-init.100ms.live", region: s2 = "", iceServers: o2 }) {
|
28586
28586
|
d2.d(ur, `fetchInitConfig: initEndpoint=${r2} token=${e} peerId=${t2} region=${s2} `);
|
28587
|
-
let l2 =
|
28587
|
+
let l2 = un2(r2, t2, i2, s2);
|
28588
28588
|
try {
|
28589
28589
|
let u2 = yield fetch(l2, { headers: { Authorization: `Bearer ${e}` } });
|
28590
28590
|
try {
|
28591
28591
|
let p2 = yield u2.clone().json();
|
28592
|
-
return this.handleError(u2, p2), d2.d(ur, `config is ${JSON.stringify(p2, null, 2)}`),
|
28592
|
+
return this.handleError(u2, p2), d2.d(ur, `config is ${JSON.stringify(p2, null, 2)}`), pn2(p2, o2);
|
28593
28593
|
} catch (p2) {
|
28594
28594
|
let h2 = yield u2.text();
|
28595
|
-
throw d2.e(ur, "json error", p2.message, h2), p2 instanceof
|
28595
|
+
throw d2.e(ur, "json error", p2.message, h2), p2 instanceof f2 ? p2 : S2.APIErrors.ServerErrors(u2.status, "INIT", p2.message);
|
28596
28596
|
}
|
28597
28597
|
} catch (u2) {
|
28598
28598
|
let p2 = u2;
|
@@ -28646,7 +28646,7 @@ var init_dist = __esm({
|
|
28646
28646
|
this.callbacks.set(i2, { resolve: n2, reject: l2, metadata: { method: e } });
|
28647
28647
|
});
|
28648
28648
|
} catch (o2) {
|
28649
|
-
if (o2 instanceof
|
28649
|
+
if (o2 instanceof f2)
|
28650
28650
|
throw o2;
|
28651
28651
|
let n2 = o2;
|
28652
28652
|
throw S2.WebsocketMethodErrors.ServerErrors(Number(n2.code), fr(e), n2.message);
|
@@ -28966,7 +28966,7 @@ var init_dist = __esm({
|
|
28966
28966
|
});
|
28967
28967
|
}
|
28968
28968
|
};
|
28969
|
-
|
28969
|
+
Va = () => {
|
28970
28970
|
if (!O2 || typeof navigator.connection == "undefined")
|
28971
28971
|
return;
|
28972
28972
|
let a11 = navigator.connection;
|
@@ -29002,7 +29002,7 @@ var init_dist = __esm({
|
|
29002
29002
|
} catch (t3) {
|
29003
29003
|
d2.d(I2, "[role=SUBSCRIBE] onOffer renegotiation FAILED \u274C", t3), this.state = "Failed";
|
29004
29004
|
let i3;
|
29005
|
-
t3 instanceof
|
29005
|
+
t3 instanceof f2 ? i3 = t3 : i3 = S2.GenericErrors.Unknown("PUBLISH", t3.message), this.observer.onFailure(i3), this.eventBus.analytics.publish(y2.subscribeFail(i3));
|
29006
29006
|
}
|
29007
29007
|
}), onTrickle: (e2) => c2(this, null, function* () {
|
29008
29008
|
let t3 = e2.target === 0 ? this.publishConnection : this.subscribeConnection;
|
@@ -29050,8 +29050,8 @@ var init_dist = __esm({
|
|
29050
29050
|
}), onConnectionStateChange: (e2) => c2(this, null, function* () {
|
29051
29051
|
var i3, r3, s3, o3, n3, l3, u3, p3;
|
29052
29052
|
(e2 === "disconnected" ? d2.w.bind(d2) : d2.d.bind(d2))(I2, `Publish connection state change: ${e2}`), e2 === "connected" && ((i3 = this.connectivityListener) == null || i3.onICESuccess(true), (r3 = this.publishConnection) == null || r3.handleSelectedIceCandidatePairs()), e2 === "disconnected" && setTimeout(() => {
|
29053
|
-
var h2, T, g2,
|
29054
|
-
((h2 = this.publishConnection) == null ? void 0 : h2.connectionState) === "disconnected" && this.handleIceConnectionFailure(0, S2.WebrtcErrors.ICEDisconnected("PUBLISH", `local candidate - ${(
|
29053
|
+
var h2, T, g2, v2, E2, P8, w2;
|
29054
|
+
((h2 = this.publishConnection) == null ? void 0 : h2.connectionState) === "disconnected" && this.handleIceConnectionFailure(0, S2.WebrtcErrors.ICEDisconnected("PUBLISH", `local candidate - ${(v2 = (g2 = (T = this.publishConnection) == null ? void 0 : T.selectedCandidatePair) == null ? void 0 : g2.local) == null ? void 0 : v2.candidate}; remote candidate - ${(w2 = (P8 = (E2 = this.publishConnection) == null ? void 0 : E2.selectedCandidatePair) == null ? void 0 : P8.remote) == null ? void 0 : w2.candidate}`));
|
29055
29055
|
}, 5e3), e2 === "failed" && (yield this.handleIceConnectionFailure(0, S2.WebrtcErrors.ICEFailure("PUBLISH", `local candidate - ${(n3 = (o3 = (s3 = this.publishConnection) == null ? void 0 : s3.selectedCandidatePair) == null ? void 0 : o3.local) == null ? void 0 : n3.candidate}; remote candidate - ${(p3 = (u3 = (l3 = this.publishConnection) == null ? void 0 : l3.selectedCandidatePair) == null ? void 0 : u3.remote) == null ? void 0 : p3.candidate}`)));
|
29056
29056
|
}), onIceCandidate: (e2) => {
|
29057
29057
|
var t3;
|
@@ -29075,8 +29075,8 @@ var init_dist = __esm({
|
|
29075
29075
|
}), onConnectionStateChange: (e2) => c2(this, null, function* () {
|
29076
29076
|
var i3, r3, s3, o3, n3, l3;
|
29077
29077
|
(e2 === "disconnected" ? d2.w.bind(d2) : d2.d.bind(d2))(I2, `Subscribe connection state change: ${e2}`), e2 === "failed" && (yield this.handleIceConnectionFailure(1, S2.WebrtcErrors.ICEFailure("SUBSCRIBE", `local candidate - ${(s3 = (r3 = (i3 = this.subscribeConnection) == null ? void 0 : i3.selectedCandidatePair) == null ? void 0 : r3.local) == null ? void 0 : s3.candidate}; remote candidate - ${(l3 = (n3 = (o3 = this.subscribeConnection) == null ? void 0 : o3.selectedCandidatePair) == null ? void 0 : n3.remote) == null ? void 0 : l3.candidate}`))), e2 === "disconnected" && setTimeout(() => {
|
29078
|
-
var u3, p3, h2, T, g2,
|
29079
|
-
((u3 = this.subscribeConnection) == null ? void 0 : u3.connectionState) === "disconnected" && this.handleIceConnectionFailure(1, S2.WebrtcErrors.ICEDisconnected("SUBSCRIBE", `local candidate - ${(T = (h2 = (p3 = this.subscribeConnection) == null ? void 0 : p3.selectedCandidatePair) == null ? void 0 : h2.local) == null ? void 0 : T.candidate}; remote candidate - ${(
|
29078
|
+
var u3, p3, h2, T, g2, v2, E2;
|
29079
|
+
((u3 = this.subscribeConnection) == null ? void 0 : u3.connectionState) === "disconnected" && this.handleIceConnectionFailure(1, S2.WebrtcErrors.ICEDisconnected("SUBSCRIBE", `local candidate - ${(T = (h2 = (p3 = this.subscribeConnection) == null ? void 0 : p3.selectedCandidatePair) == null ? void 0 : h2.local) == null ? void 0 : T.candidate}; remote candidate - ${(E2 = (v2 = (g2 = this.subscribeConnection) == null ? void 0 : g2.selectedCandidatePair) == null ? void 0 : v2.remote) == null ? void 0 : E2.candidate}`));
|
29080
29080
|
}, 5e3), e2 === "connected" && this.handleSubscribeConnectionConnected();
|
29081
29081
|
}), onIceCandidate: (e2) => {
|
29082
29082
|
var t3;
|
@@ -29120,8 +29120,8 @@ var init_dist = __esm({
|
|
29120
29120
|
h2 !== this.state && (this.state = h2, yield this.observer.onStateChange(this.state, T));
|
29121
29121
|
});
|
29122
29122
|
this.retryScheduler = new rr(l2, this.sendErrorAnalyticsEvent.bind(this)), this.eventBus.statsUpdate.subscribe((h2) => {
|
29123
|
-
var g2,
|
29124
|
-
let T = ((
|
29123
|
+
var g2, v2;
|
29124
|
+
let T = ((v2 = (g2 = h2.getLocalPeerStats()) == null ? void 0 : g2.subscribe) == null ? void 0 : v2.bitrate) || 0;
|
29125
29125
|
this.maxSubscribeBitrate = Math.max(this.maxSubscribeBitrate, T);
|
29126
29126
|
}), this.eventBus.localAudioEnabled.subscribe(({ track: h2 }) => this.trackUpdate(h2)), this.eventBus.localVideoEnabled.subscribe(({ track: h2 }) => this.trackUpdate(h2));
|
29127
29127
|
}
|
@@ -29161,7 +29161,7 @@ var init_dist = __esm({
|
|
29161
29161
|
try {
|
29162
29162
|
return yield this.internalConnect(e, t2, i2, o2);
|
29163
29163
|
} catch (n2) {
|
29164
|
-
if (n2 instanceof
|
29164
|
+
if (n2 instanceof f2 && ([k2.WebSocketConnectionErrors.WEBSOCKET_CONNECTION_LOST, k2.WebSocketConnectionErrors.FAILED_TO_CONNECT, k2.WebSocketConnectionErrors.ABNORMAL_CLOSE, k2.APIErrors.ENDPOINT_UNREACHABLE].includes(n2.code) || n2.code.toString().startsWith("5") || n2.code.toString().startsWith("429"))) {
|
29165
29165
|
let u2 = () => c2(this, null, function* () {
|
29166
29166
|
return yield this.internalConnect(e, t2, i2, o2), !!(this.initConfig && this.initConfig.endpoint);
|
29167
29167
|
});
|
@@ -29263,7 +29263,7 @@ var init_dist = __esm({
|
|
29263
29263
|
yield this.negotiateJoin({ name: e, data: t2, autoSubscribeVideo: i2, isWebRTC: r2 });
|
29264
29264
|
} catch (o2) {
|
29265
29265
|
d2.e(I2, "Join negotiation failed \u274C", o2);
|
29266
|
-
let n2 = o2 instanceof
|
29266
|
+
let n2 = o2 instanceof f2 ? o2 : S2.WebsocketMethodErrors.ServerErrors(500, "JOIN", `Websocket join error - ${o2.message}`), l2 = parseInt(`${n2.code / 100}`) === 5 || [k2.WebSocketConnectionErrors.WEBSOCKET_CONNECTION_LOST, 429].includes(n2.code);
|
29267
29267
|
if (n2.code === 410 && (n2.isTerminal = true), l2) {
|
29268
29268
|
this.joinRetryCount = 0, n2.isTerminal = false;
|
29269
29269
|
let u2 = () => c2(this, null, function* () {
|
@@ -29329,7 +29329,7 @@ var init_dist = __esm({
|
|
29329
29329
|
this.callbacks.delete(et), d2.timeEnd("renegotiation-offer-exchange"), yield this.publishConnection.setRemoteDescription(r2), t2.promise.resolve(true), d2.d(I2, "[role=PUBLISH] onRenegotiationNeeded DONE \u2705");
|
29330
29330
|
} catch (i2) {
|
29331
29331
|
let r2;
|
29332
|
-
i2 instanceof
|
29332
|
+
i2 instanceof f2 ? r2 = i2 : r2 = S2.GenericErrors.Unknown("PUBLISH", i2.message), t2.promise.reject(r2), d2.d(I2, "[role=PUBLISH] onRenegotiationNeeded FAILED \u274C");
|
29333
29333
|
}
|
29334
29334
|
}
|
29335
29335
|
});
|
@@ -29363,7 +29363,7 @@ var init_dist = __esm({
|
|
29363
29363
|
throw S2.APIErrors.InitConfigNotAvailable("INIT", "Init Config not found");
|
29364
29364
|
d2.d(I2, "\u23F3 internal connect: connecting to ws endpoint", this.initConfig.endpoint);
|
29365
29365
|
let i2 = new URL(this.initConfig.endpoint);
|
29366
|
-
i2.searchParams.set("peer", t2), i2.searchParams.set("token", e), i2.searchParams.set("user_agent_v2", this.store.getUserAgent()), i2.searchParams.set("protocol_version",
|
29366
|
+
i2.searchParams.set("peer", t2), i2.searchParams.set("token", e), i2.searchParams.set("user_agent_v2", this.store.getUserAgent()), i2.searchParams.set("protocol_version", Fs), i2.searchParams.set("protocol_spec", Gs), this.endpoint = i2.toString(), this.analyticsTimer.start("ws_connect_time"), yield this.signal.open(this.endpoint), this.analyticsTimer.end("ws_connect_time"), this.analyticsTimer.start("on_policy_change_time"), this.analyticsTimer.start("room_state_time"), d2.d(I2, "\u2705 internal connect: connected to ws endpoint");
|
29367
29367
|
});
|
29368
29368
|
}
|
29369
29369
|
initRtcStatsMonitor() {
|
@@ -29429,17 +29429,17 @@ var init_dist = __esm({
|
|
29429
29429
|
}
|
29430
29430
|
getAdditionalAnalyticsProperties() {
|
29431
29431
|
var o2, n2, l2, u2, p2, h2, T, g2;
|
29432
|
-
let e =
|
29432
|
+
let e = Va(), t2 = typeof document != "undefined" && document.hidden, i2 = this.store.getRemoteVideoTracks().filter((v2) => v2.degraded).length, r2 = (u2 = (l2 = (n2 = (o2 = this.getWebrtcInternals()) == null ? void 0 : o2.getCurrentStats()) == null ? void 0 : n2.getLocalPeerStats()) == null ? void 0 : l2.publish) == null ? void 0 : u2.bitrate, s2 = (g2 = (T = (h2 = (p2 = this.getWebrtcInternals()) == null ? void 0 : p2.getCurrentStats()) == null ? void 0 : h2.getLocalPeerStats()) == null ? void 0 : T.subscribe) == null ? void 0 : g2.bitrate;
|
29433
29433
|
return { network_info: e, document_hidden: t2, num_degraded_tracks: i2, bitrate: { publish: r2, subscribe: s2 }, max_sub_bitrate: this.maxSubscribeBitrate, recent_pong_response_times: this.signal.getPongResponseTimes(), transport_state: this.state };
|
29434
29434
|
}
|
29435
29435
|
};
|
29436
|
-
|
29436
|
+
Ga = { published: false, isInitialised: false, isReconnecting: false, isPreviewInProgress: false, isPreviewCalled: false, isJoinInProgress: false, deviceManagersInitialised: false };
|
29437
29437
|
hr = class {
|
29438
29438
|
constructor() {
|
29439
29439
|
this.TAG = "[HMSSdk]:";
|
29440
29440
|
this.transportState = "Disconnected";
|
29441
29441
|
this.analyticsTimer = new ci();
|
29442
|
-
this.sdkState = m({},
|
29442
|
+
this.sdkState = m({}, Ga);
|
29443
29443
|
this.isDiagnostics = false;
|
29444
29444
|
this.playlistSettings = { video: { bitrate: Dr }, audio: { bitrate: wr } };
|
29445
29445
|
this.handleAutoplayError = (e) => {
|
@@ -29509,7 +29509,7 @@ var init_dist = __esm({
|
|
29509
29509
|
var s2, o2, n2, l2;
|
29510
29510
|
if (e.error && e.type) {
|
29511
29511
|
let u2 = e.type.includes("audio") ? (s2 = this.localPeer) == null ? void 0 : s2.audioTrack : (o2 = this.localPeer) == null ? void 0 : o2.videoTrack;
|
29512
|
-
(n2 = this.errorListener) == null || n2.onError(e.error), [
|
29512
|
+
(n2 = this.errorListener) == null || n2.onError(e.error), [k2.TracksErrors.CANT_ACCESS_CAPTURE_DEVICE, k2.TracksErrors.DEVICE_IN_USE, k2.TracksErrors.DEVICE_NOT_AVAILABLE].includes(e.error.code) && u2 && (u2.setEnabled(false), (l2 = this.listener) == null || l2.onTrackUpdate(2, u2, this.localPeer));
|
29513
29513
|
}
|
29514
29514
|
})();
|
29515
29515
|
};
|
@@ -29545,7 +29545,7 @@ var init_dist = __esm({
|
|
29545
29545
|
(i2 = this.notificationManager) == null || i2.setListener(this.listener), this.audioSinkManager.setListener(this.listener), this.interactivityCenter.setListener(this.listener);
|
29546
29546
|
return;
|
29547
29547
|
}
|
29548
|
-
this.sdkState.isInitialised = true, this.store = new Nt(), this.eventBus = new Ut(), this.pluginUsageTracker = new Oi(this.eventBus), this.wakeLockManager = new _i(), this.networkTestManager = new wi(this.eventBus, this.listener), this.playlistManager = new bt(this, this.eventBus), this.deviceManager = new xt(this.store, this.eventBus), this.audioSinkManager = new Ot(this.store, this.deviceManager, this.eventBus), this.audioOutput = new xi(this.deviceManager, this.audioSinkManager), this.audioSinkManager.setListener(this.listener), this.eventBus.autoplayError.subscribe(this.handleAutoplayError), this.localTrackManager = new ve(this.store, this.observer, this.deviceManager, this.eventBus, this.analyticsTimer), this.analyticsEventsService = new Ni(this.store), this.transport = new zt(this.observer, this.deviceManager, this.store, this.eventBus, this.analyticsEventsService, this.analyticsTimer, this.pluginUsageTracker),
|
29548
|
+
this.sdkState.isInitialised = true, this.store = new Nt(), this.eventBus = new Ut(), this.pluginUsageTracker = new Oi(this.eventBus), this.wakeLockManager = new _i(), this.networkTestManager = new wi(this.eventBus, this.listener), this.playlistManager = new bt(this, this.eventBus), this.deviceManager = new xt(this.store, this.eventBus), this.audioSinkManager = new Ot(this.store, this.deviceManager, this.eventBus), this.audioOutput = new xi(this.deviceManager, this.audioSinkManager), this.audioSinkManager.setListener(this.listener), this.eventBus.autoplayError.subscribe(this.handleAutoplayError), this.localTrackManager = new ve(this.store, this.observer, this.deviceManager, this.eventBus, this.analyticsTimer), this.analyticsEventsService = new Ni(this.store), this.transport = new zt(this.observer, this.deviceManager, this.store, this.eventBus, this.analyticsEventsService, this.analyticsTimer, this.pluginUsageTracker), "onInitSuccess" in e && this.transport.setConnectivityListener(e), this.sessionStore = new Zi(this.transport), this.interactivityCenter = new Vt(this.transport, this.store, this.listener), this.eventBus.analytics.subscribe(this.sendAnalyticsEvent), this.eventBus.deviceChange.subscribe(this.handleDeviceChange), this.eventBus.audioPluginFailed.subscribe(this.handleAudioPluginError);
|
29549
29549
|
}
|
29550
29550
|
validateJoined(e) {
|
29551
29551
|
if (!this.localPeer)
|
@@ -29672,8 +29672,8 @@ var init_dist = __esm({
|
|
29672
29672
|
n2 != null && n2.autoManageWakeLock && this.wakeLockManager.acquireLock(), this.localPeer ? (this.localPeer.name = e.userName, this.localPeer.role = this.store.getPolicyForRole(s2), this.localPeer.customerUserId = r2, this.localPeer.metadata = e.metaData, delete this.localPeer.asRole) : this.createAndAddLocalPeerToStore(e, s2, r2), this.roleChangeManager = new wt(this.store, this.transport, this.deviceManager, this.getAndPublishTracks.bind(this), this.removeTrack.bind(this), this.listener), this.eventBus.localRoleUpdate.subscribe(this.handleLocalRoleUpdate), d2.d(this.TAG, `\u23F3 Joining room ${i2}`), d2.time(`join-room-${i2}`);
|
29673
29673
|
try {
|
29674
29674
|
yield this.transport.join(e.authToken, this.localPeer.peerId, { name: e.userName, metaData: e.metaData }, e.initEndpoint, e.autoVideoSubscribe, e.iceServers), d2.d(this.TAG, `\u2705 Joined room ${i2}`), this.analyticsTimer.start("peer_list_time"), yield this.notifyJoin(), this.sdkState.isJoinInProgress = false, yield this.publish(e.settings, o2);
|
29675
|
-
} catch (
|
29676
|
-
throw this.analyticsTimer.end("join_time"), this.sdkState.isJoinInProgress = false, (g2 = this.listener) == null || g2.onError(
|
29675
|
+
} catch (v2) {
|
29676
|
+
throw this.analyticsTimer.end("join_time"), this.sdkState.isJoinInProgress = false, (g2 = this.listener) == null || g2.onError(v2), this.sendJoinAnalyticsEvent(this.sdkState.isPreviewCalled, v2), d2.e(this.TAG, "Unable to join room", v2), v2;
|
29677
29677
|
}
|
29678
29678
|
d2.timeEnd(`join-room-${i2}`);
|
29679
29679
|
});
|
@@ -29683,7 +29683,7 @@ var init_dist = __esm({
|
|
29683
29683
|
}
|
29684
29684
|
cleanup() {
|
29685
29685
|
var e, t2, i2;
|
29686
|
-
this.cleanDeviceManagers(), this.eventBus.analytics.unsubscribe(this.sendAnalyticsEvent), this.analyticsTimer.cleanup(), Q2.cleanup(), this.playlistManager.cleanup(), (e = this.wakeLockManager) == null || e.cleanup(), ve.cleanup(), this.notificationManager = void 0, d2.cleanup(), this.sdkState = m({},
|
29686
|
+
this.cleanDeviceManagers(), this.eventBus.analytics.unsubscribe(this.sendAnalyticsEvent), this.analyticsTimer.cleanup(), Q2.cleanup(), this.playlistManager.cleanup(), (e = this.wakeLockManager) == null || e.cleanup(), ve.cleanup(), this.notificationManager = void 0, d2.cleanup(), this.sdkState = m({}, Ga), this.localPeer && ((t2 = this.localPeer.audioTrack) == null || t2.cleanup(), this.localPeer.audioTrack = void 0, (i2 = this.localPeer.videoTrack) == null || i2.cleanup(), this.localPeer.videoTrack = void 0), this.store.cleanup(), this.listener = void 0, this.roleChangeManager && this.eventBus.localRoleUpdate.unsubscribe(this.handleLocalRoleUpdate);
|
29687
29687
|
}
|
29688
29688
|
leave(e) {
|
29689
29689
|
return this.internalLeave(e);
|
@@ -30286,22 +30286,22 @@ var init_dist = __esm({
|
|
30286
30286
|
};
|
30287
30287
|
}
|
30288
30288
|
};
|
30289
|
-
|
30289
|
+
$a = (a11, e, t2) => {
|
30290
30290
|
let i2;
|
30291
|
-
t2.getState(ie) === "Connected" && (i2 =
|
30292
|
-
["Connected", "Reconnecting"].includes(r2) ? i2 || (i2 =
|
30291
|
+
t2.getState(ie) === "Connected" && (i2 = Wa(a11, e, t2)), t2.subscribe((r2) => {
|
30292
|
+
["Connected", "Reconnecting"].includes(r2) ? i2 || (i2 = Wa(a11, e, t2)) : ["Disconnected", "Failed"].includes(r2) && i2 && (kn(e, r2), i2(), i2 = void 0);
|
30293
30293
|
}, ie);
|
30294
30294
|
};
|
30295
|
-
|
30295
|
+
Wa = (a11, e, t2) => {
|
30296
30296
|
var s2, o2;
|
30297
|
-
let i2 =
|
30297
|
+
let i2 = Mn(t2, e);
|
30298
30298
|
(s2 = a11.getWebrtcInternals()) == null || s2.start();
|
30299
|
-
let r2 = (o2 = a11.getWebrtcInternals()) == null ? void 0 : o2.onStatsChange((n2) =>
|
30299
|
+
let r2 = (o2 = a11.getWebrtcInternals()) == null ? void 0 : o2.onStatsChange((n2) => yn(e, n2, t2, a11));
|
30300
30300
|
return () => {
|
30301
30301
|
i2(), r2 && r2();
|
30302
30302
|
};
|
30303
30303
|
};
|
30304
|
-
|
30304
|
+
Mn = (a11, e) => {
|
30305
30305
|
let t2, i2, r2;
|
30306
30306
|
return a11.getState(ye) ? e.namedSetState((s2) => {
|
30307
30307
|
s2.localPeer.id = a11.getState(ye);
|
@@ -30325,7 +30325,7 @@ var init_dist = __esm({
|
|
30325
30325
|
t2 == null || t2(), i2 == null || i2(), r2 == null || r2();
|
30326
30326
|
};
|
30327
30327
|
};
|
30328
|
-
|
30328
|
+
yn = (a11, e, t2, i2) => {
|
30329
30329
|
let r2 = t2.getState(N2);
|
30330
30330
|
a11.namedSetState((s2) => {
|
30331
30331
|
let o2 = t2.getState(ye), n2 = {}, l2 = Object.keys(r2).filter((p2) => r2[p2].peerId !== o2);
|
@@ -30335,10 +30335,10 @@ var init_dist = __esm({
|
|
30335
30335
|
}
|
30336
30336
|
Kr(s2.remoteTrackStats, n2);
|
30337
30337
|
let u2 = { [o2]: e.getLocalPeerStats() };
|
30338
|
-
Kr(s2.peerStats, u2),
|
30338
|
+
Kr(s2.peerStats, u2), Aa(s2.localTrackStats, e.getLocalTrackStats(), i2.store.getLocalPeerTracks());
|
30339
30339
|
}, "webrtc-stats");
|
30340
30340
|
};
|
30341
|
-
|
30341
|
+
kn = (a11, e = "resetState") => {
|
30342
30342
|
a11.namedSetState((t2) => {
|
30343
30343
|
Object.assign(t2, ti());
|
30344
30344
|
}, e);
|
@@ -30359,65 +30359,65 @@ var init_dist = __esm({
|
|
30359
30359
|
var n2, l2;
|
30360
30360
|
o2 === "Connected" && i2((l2 = (n2 = this.sdk) == null ? void 0 : n2.getWebrtcInternals()) == null ? void 0 : l2.getSubscribePeerConnection());
|
30361
30361
|
}, ie);
|
30362
|
-
}), this.sdk &&
|
30362
|
+
}), this.sdk && $a(this.sdk, this.store, this.hmsStore);
|
30363
30363
|
}
|
30364
30364
|
};
|
30365
|
-
|
30366
|
-
|
30367
|
-
|
30368
|
-
|
30369
|
-
|
30370
|
-
|
30371
|
-
|
30365
|
+
Pn = (a11) => a11.localPeer.id;
|
30366
|
+
En = (a11) => a11.localPeer.audioTrack;
|
30367
|
+
bn = (a11) => a11.localPeer.videoTrack;
|
30368
|
+
Rn = (a11, e) => e;
|
30369
|
+
Ka = (a11, e) => e;
|
30370
|
+
In = (a11) => a11.remoteTrackStats;
|
30371
|
+
qa = (a11) => a11.peerStats;
|
30372
30372
|
Zr = (a11) => a11.localTrackStats;
|
30373
|
-
be = createSelector([
|
30374
|
-
|
30373
|
+
be = createSelector([qa, Pn], (a11, e) => a11[e]);
|
30374
|
+
An = createSelector(be, (a11) => {
|
30375
30375
|
var e;
|
30376
30376
|
return (e = a11 == null ? void 0 : a11.subscribe) == null ? void 0 : e.packetsLost;
|
30377
30377
|
});
|
30378
|
-
|
30378
|
+
Hn = createSelector(be, (a11) => {
|
30379
30379
|
var e;
|
30380
30380
|
return (e = a11 == null ? void 0 : a11.subscribe) == null ? void 0 : e.jitter;
|
30381
30381
|
});
|
30382
|
-
|
30382
|
+
Cn = createSelector(be, (a11) => {
|
30383
30383
|
var e;
|
30384
30384
|
return (e = a11 == null ? void 0 : a11.publish) == null ? void 0 : e.bitrate;
|
30385
30385
|
});
|
30386
|
-
|
30386
|
+
Ln = createSelector(be, (a11) => {
|
30387
30387
|
var e;
|
30388
30388
|
return (e = a11 == null ? void 0 : a11.subscribe) == null ? void 0 : e.bitrate;
|
30389
30389
|
});
|
30390
|
-
|
30390
|
+
Dn = createSelector(be, (a11) => {
|
30391
30391
|
var e;
|
30392
30392
|
return (e = a11 == null ? void 0 : a11.publish) == null ? void 0 : e.availableOutgoingBitrate;
|
30393
30393
|
});
|
30394
|
-
|
30394
|
+
wn = createSelector(be, (a11) => {
|
30395
30395
|
var e;
|
30396
30396
|
return (e = a11 == null ? void 0 : a11.subscribe) == null ? void 0 : e.availableIncomingBitrate;
|
30397
30397
|
});
|
30398
|
-
|
30398
|
+
_n = createSelector(be, (a11) => {
|
30399
30399
|
var e;
|
30400
30400
|
return (e = a11 == null ? void 0 : a11.publish) == null ? void 0 : e.bytesSent;
|
30401
30401
|
});
|
30402
|
-
|
30402
|
+
Nn = createSelector(be, (a11) => {
|
30403
30403
|
var e;
|
30404
30404
|
return (e = a11 == null ? void 0 : a11.subscribe) == null ? void 0 : e.bytesReceived;
|
30405
30405
|
});
|
30406
|
-
|
30407
|
-
|
30408
|
-
es = createSelector([Zr,
|
30409
|
-
xn = A2(Nn);
|
30406
|
+
On = createSelector([qa, Rn], (a11, e) => e ? a11[e] : void 0);
|
30407
|
+
xn = createSelector([In, Ka], (a11, e) => e ? a11[e] : void 0);
|
30408
|
+
es = createSelector([Zr, Ka], (a11, e) => e ? a11[e] : void 0);
|
30410
30409
|
Un = A2(On);
|
30411
|
-
Bn =
|
30410
|
+
Bn = A2(xn);
|
30411
|
+
Vn = createSelector([Zr, En], (a11, e) => {
|
30412
30412
|
var t2;
|
30413
30413
|
return e ? (t2 = a11[e]) == null ? void 0 : t2[0] : void 0;
|
30414
30414
|
});
|
30415
|
-
|
30416
|
-
|
30415
|
+
Fn = A2(createSelector(es, (a11) => a11 == null ? void 0 : a11[0]));
|
30416
|
+
Gn = createSelector([Zr, bn], (a11, e) => {
|
30417
30417
|
var t2;
|
30418
30418
|
return e ? (t2 = a11[e]) == null ? void 0 : t2[0] : void 0;
|
30419
30419
|
});
|
30420
|
-
|
30420
|
+
Wn = A2(createSelector(es, (a11) => a11));
|
30421
30421
|
}
|
30422
30422
|
});
|
30423
30423
|
|
@@ -36886,7 +36886,7 @@ var init_Chat = __esm({
|
|
36886
36886
|
const listRef = (0, import_react149.useRef)(null);
|
36887
36887
|
const hmsActions2 = (0, import_react_sdk73.useHMSActions)();
|
36888
36888
|
const vanillaStore = (0, import_react_sdk73.useHMSVanillaStore)();
|
36889
|
-
const { enabled: isChatEnabled = true } = (0, import_react_sdk73.useHMSStore)(
|
36889
|
+
const { enabled: isChatEnabled = true } = (0, import_react_sdk73.useHMSStore)(Bm("chatState" /* CHAT_STATE */)) || {};
|
36890
36890
|
const isMobile = (0, import_react_use24.useMedia)(config.media.md);
|
36891
36891
|
const isMobileHLSStream = useMobileHLSStream();
|
36892
36892
|
const isLandscapeStream = useLandscapeHLSStream();
|
@@ -36976,7 +36976,7 @@ var init_Chat = __esm({
|
|
36976
36976
|
scrollToBottom,
|
36977
36977
|
listRef
|
36978
36978
|
}) => {
|
36979
|
-
const unreadCount = (0, import_react_sdk73.useHMSStore)(
|
36979
|
+
const unreadCount = (0, import_react_sdk73.useHMSStore)(cm);
|
36980
36980
|
if (!unreadCount || !listRef.current) {
|
36981
36981
|
return null;
|
36982
36982
|
}
|
@@ -38191,12 +38191,12 @@ var init_VBPicker = __esm({
|
|
38191
38191
|
const [blurAmount, setBlurAmount] = (0, import_react159.useState)(VBHandler.getBlurAmount() || 0.5);
|
38192
38192
|
const roomState = (0, import_react_sdk81.useHMSStore)(import_react_sdk81.selectRoomState);
|
38193
38193
|
const isLargeRoom = (0, import_react_sdk81.useHMSStore)(import_react_sdk81.selectIsLargeRoom);
|
38194
|
-
const isEffectsEnabled = (0, import_react_sdk81.useHMSStore)(
|
38195
|
-
const effectsKey = (0, import_react_sdk81.useHMSStore)(
|
38194
|
+
const isEffectsEnabled = (0, import_react_sdk81.useHMSStore)(ym);
|
38195
|
+
const effectsKey = (0, import_react_sdk81.useHMSStore)(km);
|
38196
38196
|
const isMobile = (0, import_react_use30.useMedia)(config.media.md);
|
38197
38197
|
const [loadingEffects, setLoadingEffects] = useSetAppDataByKey(APP_DATA.loadingEffects);
|
38198
38198
|
const isPluginAdded = (0, import_react_sdk81.useHMSStore)((0, import_react_sdk81.selectIsLocalVideoPluginPresent)(((_a8 = VBHandler) == null ? void 0 : _a8.getName()) || ""));
|
38199
|
-
const background = (0, import_react_sdk81.useHMSStore)(
|
38199
|
+
const background = (0, import_react_sdk81.useHMSStore)(Um(APP_DATA.background));
|
38200
38200
|
const mediaList = backgroundMedia.length ? backgroundMedia.map((media) => media.url || "") : defaultMedia2;
|
38201
38201
|
const inPreview = roomState === import_react_sdk81.HMSRoomState.Preview;
|
38202
38202
|
const showVideoTile = isVideoOn && isLargeRoom && !inPreview;
|
@@ -40123,9 +40123,9 @@ var init_ScreenshareLayout = __esm({
|
|
40123
40123
|
}
|
40124
40124
|
});
|
40125
40125
|
|
40126
|
-
// ../../../../../../../tmp/tmp-
|
40127
|
-
var
|
40128
|
-
"../../../../../../../tmp/tmp-
|
40126
|
+
// ../../../../../../../tmp/tmp-2815-lzHDPVmI0tsz/1904f2f03760/index.css
|
40127
|
+
var init_f2f03760 = __esm({
|
40128
|
+
"../../../../../../../tmp/tmp-2815-lzHDPVmI0tsz/1904f2f03760/index.css"() {
|
40129
40129
|
}
|
40130
40130
|
});
|
40131
40131
|
|
@@ -40147,7 +40147,7 @@ var init_WhiteboardLayout = __esm({
|
|
40147
40147
|
init_ProminenceLayout();
|
40148
40148
|
init_useUISettings();
|
40149
40149
|
init_constants();
|
40150
|
-
|
40150
|
+
init_f2f03760();
|
40151
40151
|
WhiteboardEmbed = () => {
|
40152
40152
|
const isMobile = (0, import_react_use42.useMedia)(config.media.md);
|
40153
40153
|
const { token, endpoint, zoomToContent } = (0, import_react_sdk93.useWhiteboard)(isMobile);
|
@@ -45417,10 +45417,10 @@ var require_react_is_production_min = __commonJS({
|
|
45417
45417
|
var c3 = b3 ? Symbol.for("react.element") : 60103;
|
45418
45418
|
var d3 = b3 ? Symbol.for("react.portal") : 60106;
|
45419
45419
|
var e = b3 ? Symbol.for("react.fragment") : 60107;
|
45420
|
-
var
|
45420
|
+
var f3 = b3 ? Symbol.for("react.strict_mode") : 60108;
|
45421
45421
|
var g2 = b3 ? Symbol.for("react.profiler") : 60114;
|
45422
45422
|
var h2 = b3 ? Symbol.for("react.provider") : 60109;
|
45423
|
-
var
|
45423
|
+
var k3 = b3 ? Symbol.for("react.context") : 60110;
|
45424
45424
|
var l2 = b3 ? Symbol.for("react.async_mode") : 60111;
|
45425
45425
|
var m2 = b3 ? Symbol.for("react.concurrent_mode") : 60111;
|
45426
45426
|
var n2 = b3 ? Symbol.for("react.forward_ref") : 60112;
|
@@ -45428,7 +45428,7 @@ var require_react_is_production_min = __commonJS({
|
|
45428
45428
|
var q3 = b3 ? Symbol.for("react.suspense_list") : 60120;
|
45429
45429
|
var r2 = b3 ? Symbol.for("react.memo") : 60115;
|
45430
45430
|
var t2 = b3 ? Symbol.for("react.lazy") : 60116;
|
45431
|
-
var
|
45431
|
+
var v2 = b3 ? Symbol.for("react.block") : 60121;
|
45432
45432
|
var w2 = b3 ? Symbol.for("react.fundamental") : 60117;
|
45433
45433
|
var x2 = b3 ? Symbol.for("react.responder") : 60118;
|
45434
45434
|
var y3 = b3 ? Symbol.for("react.scope") : 60119;
|
@@ -45442,12 +45442,12 @@ var require_react_is_production_min = __commonJS({
|
|
45442
45442
|
case m2:
|
45443
45443
|
case e:
|
45444
45444
|
case g2:
|
45445
|
-
case
|
45445
|
+
case f3:
|
45446
45446
|
case p2:
|
45447
45447
|
return a11;
|
45448
45448
|
default:
|
45449
45449
|
switch (a11 = a11 && a11.$$typeof, a11) {
|
45450
|
-
case
|
45450
|
+
case k3:
|
45451
45451
|
case n2:
|
45452
45452
|
case t2:
|
45453
45453
|
case r2:
|
@@ -45467,7 +45467,7 @@ var require_react_is_production_min = __commonJS({
|
|
45467
45467
|
}
|
45468
45468
|
exports.AsyncMode = l2;
|
45469
45469
|
exports.ConcurrentMode = m2;
|
45470
|
-
exports.ContextConsumer =
|
45470
|
+
exports.ContextConsumer = k3;
|
45471
45471
|
exports.ContextProvider = h2;
|
45472
45472
|
exports.Element = c3;
|
45473
45473
|
exports.ForwardRef = n2;
|
@@ -45476,14 +45476,14 @@ var require_react_is_production_min = __commonJS({
|
|
45476
45476
|
exports.Memo = r2;
|
45477
45477
|
exports.Portal = d3;
|
45478
45478
|
exports.Profiler = g2;
|
45479
|
-
exports.StrictMode =
|
45479
|
+
exports.StrictMode = f3;
|
45480
45480
|
exports.Suspense = p2;
|
45481
45481
|
exports.isAsyncMode = function(a11) {
|
45482
45482
|
return A3(a11) || z3(a11) === l2;
|
45483
45483
|
};
|
45484
45484
|
exports.isConcurrentMode = A3;
|
45485
45485
|
exports.isContextConsumer = function(a11) {
|
45486
|
-
return z3(a11) ===
|
45486
|
+
return z3(a11) === k3;
|
45487
45487
|
};
|
45488
45488
|
exports.isContextProvider = function(a11) {
|
45489
45489
|
return z3(a11) === h2;
|
@@ -45510,13 +45510,13 @@ var require_react_is_production_min = __commonJS({
|
|
45510
45510
|
return z3(a11) === g2;
|
45511
45511
|
};
|
45512
45512
|
exports.isStrictMode = function(a11) {
|
45513
|
-
return z3(a11) ===
|
45513
|
+
return z3(a11) === f3;
|
45514
45514
|
};
|
45515
45515
|
exports.isSuspense = function(a11) {
|
45516
45516
|
return z3(a11) === p2;
|
45517
45517
|
};
|
45518
45518
|
exports.isValidElementType = function(a11) {
|
45519
|
-
return "string" === typeof a11 || "function" === typeof a11 || a11 === e || a11 === m2 || a11 === g2 || a11 ===
|
45519
|
+
return "string" === typeof a11 || "function" === typeof a11 || a11 === e || a11 === m2 || a11 === g2 || a11 === f3 || a11 === p2 || a11 === q3 || "object" === typeof a11 && null !== a11 && (a11.$$typeof === t2 || a11.$$typeof === r2 || a11.$$typeof === h2 || a11.$$typeof === k3 || a11.$$typeof === n2 || a11.$$typeof === w2 || a11.$$typeof === x2 || a11.$$typeof === y3 || a11.$$typeof === v2);
|
45520
45520
|
};
|
45521
45521
|
exports.typeOf = z3;
|
45522
45522
|
}
|