@100mslive/roomkit-react 0.3.14-alpha.9 → 0.3.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -107,7 +107,7 @@ var __async = (__this, __arguments, generator) => {
107
107
  var define_process_env_default;
108
108
  var init_define_process_env = __esm({
109
109
  "<define:process.env>"() {
110
- 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" };
110
+ 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" };
111
111
  }
112
112
  });
113
113
 
@@ -5629,10 +5629,10 @@ var require_ua_parser = __commonJS({
5629
5629
  }
5630
5630
  };
5631
5631
  var rgxMapper = function(ua2, arrays) {
5632
- var i2 = 0, j3, k2, p2, q3, matches, match17;
5632
+ var i2 = 0, j3, k3, p2, q3, matches, match17;
5633
5633
  while (i2 < arrays.length && !matches) {
5634
5634
  var regex = arrays[i2], props = arrays[i2 + 1];
5635
- j3 = k2 = 0;
5635
+ j3 = k3 = 0;
5636
5636
  while (j3 < regex.length && !matches) {
5637
5637
  if (!regex[j3]) {
5638
5638
  break;
@@ -5640,7 +5640,7 @@ var require_ua_parser = __commonJS({
5640
5640
  matches = regex[j3++].exec(ua2);
5641
5641
  if (!!matches) {
5642
5642
  for (p2 = 0; p2 < props.length; p2++) {
5643
- match17 = matches[++k2];
5643
+ match17 = matches[++k3];
5644
5644
  q3 = props[p2];
5645
5645
  if (typeof q3 === OBJ_TYPE && q3.length > 0) {
5646
5646
  if (q3.length === 2) {
@@ -8634,8 +8634,8 @@ var require_grammar = __commonJS({
8634
8634
  var require_parser = __commonJS({
8635
8635
  "../../node_modules/sdp-transform/lib/parser.js"(exports) {
8636
8636
  init_define_process_env();
8637
- var toIntIfInt = function(v3) {
8638
- return String(Number(v3)) === v3 ? Number(v3) : v3;
8637
+ var toIntIfInt = function(v2) {
8638
+ return String(Number(v2)) === v2 ? Number(v2) : v2;
8639
8639
  };
8640
8640
  var attachProperties = function(match17, location, names, rawName) {
8641
8641
  if (rawName && !names) {
@@ -8871,10 +8871,10 @@ var require_react_is_production_min = __commonJS({
8871
8871
  var c3 = b3 ? Symbol.for("react.element") : 60103;
8872
8872
  var d3 = b3 ? Symbol.for("react.portal") : 60106;
8873
8873
  var e = b3 ? Symbol.for("react.fragment") : 60107;
8874
- var f2 = b3 ? Symbol.for("react.strict_mode") : 60108;
8874
+ var f3 = b3 ? Symbol.for("react.strict_mode") : 60108;
8875
8875
  var g2 = b3 ? Symbol.for("react.profiler") : 60114;
8876
8876
  var h2 = b3 ? Symbol.for("react.provider") : 60109;
8877
- var k2 = b3 ? Symbol.for("react.context") : 60110;
8877
+ var k3 = b3 ? Symbol.for("react.context") : 60110;
8878
8878
  var l2 = b3 ? Symbol.for("react.async_mode") : 60111;
8879
8879
  var m2 = b3 ? Symbol.for("react.concurrent_mode") : 60111;
8880
8880
  var n2 = b3 ? Symbol.for("react.forward_ref") : 60112;
@@ -8882,7 +8882,7 @@ var require_react_is_production_min = __commonJS({
8882
8882
  var q3 = b3 ? Symbol.for("react.suspense_list") : 60120;
8883
8883
  var r2 = b3 ? Symbol.for("react.memo") : 60115;
8884
8884
  var t2 = b3 ? Symbol.for("react.lazy") : 60116;
8885
- var v3 = b3 ? Symbol.for("react.block") : 60121;
8885
+ var v2 = b3 ? Symbol.for("react.block") : 60121;
8886
8886
  var w2 = b3 ? Symbol.for("react.fundamental") : 60117;
8887
8887
  var x2 = b3 ? Symbol.for("react.responder") : 60118;
8888
8888
  var y3 = b3 ? Symbol.for("react.scope") : 60119;
@@ -8896,12 +8896,12 @@ var require_react_is_production_min = __commonJS({
8896
8896
  case m2:
8897
8897
  case e:
8898
8898
  case g2:
8899
- case f2:
8899
+ case f3:
8900
8900
  case p2:
8901
8901
  return a11;
8902
8902
  default:
8903
8903
  switch (a11 = a11 && a11.$$typeof, a11) {
8904
- case k2:
8904
+ case k3:
8905
8905
  case n2:
8906
8906
  case t2:
8907
8907
  case r2:
@@ -8921,7 +8921,7 @@ var require_react_is_production_min = __commonJS({
8921
8921
  }
8922
8922
  exports.AsyncMode = l2;
8923
8923
  exports.ConcurrentMode = m2;
8924
- exports.ContextConsumer = k2;
8924
+ exports.ContextConsumer = k3;
8925
8925
  exports.ContextProvider = h2;
8926
8926
  exports.Element = c3;
8927
8927
  exports.ForwardRef = n2;
@@ -8930,14 +8930,14 @@ var require_react_is_production_min = __commonJS({
8930
8930
  exports.Memo = r2;
8931
8931
  exports.Portal = d3;
8932
8932
  exports.Profiler = g2;
8933
- exports.StrictMode = f2;
8933
+ exports.StrictMode = f3;
8934
8934
  exports.Suspense = p2;
8935
8935
  exports.isAsyncMode = function(a11) {
8936
8936
  return A3(a11) || z3(a11) === l2;
8937
8937
  };
8938
8938
  exports.isConcurrentMode = A3;
8939
8939
  exports.isContextConsumer = function(a11) {
8940
- return z3(a11) === k2;
8940
+ return z3(a11) === k3;
8941
8941
  };
8942
8942
  exports.isContextProvider = function(a11) {
8943
8943
  return z3(a11) === h2;
@@ -8964,13 +8964,13 @@ var require_react_is_production_min = __commonJS({
8964
8964
  return z3(a11) === g2;
8965
8965
  };
8966
8966
  exports.isStrictMode = function(a11) {
8967
- return z3(a11) === f2;
8967
+ return z3(a11) === f3;
8968
8968
  };
8969
8969
  exports.isSuspense = function(a11) {
8970
8970
  return z3(a11) === p2;
8971
8971
  };
8972
8972
  exports.isValidElementType = function(a11) {
8973
- return "string" === typeof a11 || "function" === typeof a11 || a11 === e || a11 === m2 || a11 === g2 || a11 === f2 || a11 === p2 || a11 === q3 || "object" === typeof a11 && null !== a11 && (a11.$$typeof === t2 || a11.$$typeof === r2 || a11.$$typeof === h2 || a11.$$typeof === k2 || a11.$$typeof === n2 || a11.$$typeof === w2 || a11.$$typeof === x2 || a11.$$typeof === y3 || a11.$$typeof === v3);
8973
+ 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);
8974
8974
  };
8975
8975
  exports.typeOf = z3;
8976
8976
  }
@@ -12134,12 +12134,12 @@ var formatBytes = (bytes, unit = "B", decimals = 2) => {
12134
12134
  if (!bytes) {
12135
12135
  return "-";
12136
12136
  }
12137
- const k2 = 1024;
12137
+ const k3 = 1024;
12138
12138
  const dm2 = decimals < 0 ? 0 : decimals;
12139
12139
  const sizes = ["", "K", "M", "G", "T", "P", "E", "Z", "Y"].map((size) => size + unit);
12140
- let i2 = Math.floor(Math.log(bytes) / Math.log(k2));
12140
+ let i2 = Math.floor(Math.log(bytes) / Math.log(k3));
12141
12141
  i2 === 0 && i2++;
12142
- return `${parseFloat((bytes / Math.pow(k2, i2)).toFixed(dm2))} ${sizes[i2]}`;
12142
+ return `${parseFloat((bytes / Math.pow(k3, i2)).toFixed(dm2))} ${sizes[i2]}`;
12143
12143
  };
12144
12144
 
12145
12145
  // src/Stats/StyledStats.tsx
@@ -16070,8 +16070,8 @@ var PipManager = class {
16070
16070
  /**
16071
16071
  * @private {boolean} on - whether pip is on/off
16072
16072
  */
16073
- this.callListeners = (on3) => {
16074
- this.listeners.forEach((listener) => listener == null ? void 0 : listener(on3));
16073
+ this.callListeners = (on2) => {
16074
+ this.listeners.forEach((listener) => listener == null ? void 0 : listener(on2));
16075
16075
  };
16076
16076
  this.reset();
16077
16077
  }
@@ -17776,8 +17776,8 @@ var createSelector = createSelectorCreator(defaultMemoize);
17776
17776
  // ../hms-video-store/dist/index.js
17777
17777
  var import_ua_parser_js = __toESM(require_ua_parser());
17778
17778
  var import_lodash3 = __toESM(require_lodash2());
17779
- import { v4 as no } from "uuid";
17780
- import { v4 as ao } from "uuid";
17779
+ import { v4 as co } from "uuid";
17780
+ import { v4 as oo } from "uuid";
17781
17781
 
17782
17782
  // ../../node_modules/webrtc-adapter/src/js/adapter_core.js
17783
17783
  init_define_process_env();
@@ -18208,11 +18208,11 @@ function shimOnTrack(window2) {
18208
18208
  get() {
18209
18209
  return this._ontrack;
18210
18210
  },
18211
- set(f2) {
18211
+ set(f3) {
18212
18212
  if (this._ontrack) {
18213
18213
  this.removeEventListener("track", this._ontrack);
18214
18214
  }
18215
- this.addEventListener("track", this._ontrack = f2);
18215
+ this.addEventListener("track", this._ontrack = f3);
18216
18216
  },
18217
18217
  enumerable: true,
18218
18218
  configurable: true
@@ -19195,12 +19195,12 @@ function shimRemoteStreamsAPI(window2) {
19195
19195
  get() {
19196
19196
  return this._onaddstream;
19197
19197
  },
19198
- set(f2) {
19198
+ set(f3) {
19199
19199
  if (this._onaddstream) {
19200
19200
  this.removeEventListener("addstream", this._onaddstream);
19201
19201
  this.removeEventListener("track", this._onaddstreampoly);
19202
19202
  }
19203
- this.addEventListener("addstream", this._onaddstream = f2);
19203
+ this.addEventListener("addstream", this._onaddstream = f3);
19204
19204
  this.addEventListener("track", this._onaddstreampoly = (e) => {
19205
19205
  e.streams.forEach((stream) => {
19206
19206
  if (!this._remoteStreams) {
@@ -19875,10 +19875,10 @@ var adapter_core_default = adapter;
19875
19875
 
19876
19876
  // ../hms-video-store/dist/index.js
19877
19877
  var import_lodash4 = __toESM(require_lodash2());
19878
- import { v4 as fo } from "uuid";
19879
- import { v4 as ko } from "uuid";
19880
- import { v4 as Ro } from "uuid";
19881
- import { EventEmitter2 as Io } from "eventemitter2";
19878
+ import { v4 as vo } from "uuid";
19879
+ import { v4 as Po } from "uuid";
19880
+ import { v4 as Io } from "uuid";
19881
+ import { EventEmitter2 as Ao } from "eventemitter2";
19882
19882
 
19883
19883
  // ../../node_modules/immer/dist/immer.esm.mjs
19884
19884
  init_define_process_env();
@@ -20012,14 +20012,14 @@ function M(n2, r2, t2) {
20012
20012
  }
20013
20013
  return e.o;
20014
20014
  }
20015
- function A(e, i2, o2, a11, c3, s2, v3) {
20015
+ function A(e, i2, o2, a11, c3, s2, v2) {
20016
20016
  if ("production" !== define_process_env_default.NODE_ENV && c3 === o2 && n(5), r(c3)) {
20017
20017
  var p2 = M(e, c3, s2 && i2 && 3 !== i2.i && !u(i2.R, a11) ? s2.concat(a11) : void 0);
20018
20018
  if (f(o2, a11, p2), !r(p2))
20019
20019
  return;
20020
20020
  e.m = false;
20021
20021
  } else
20022
- v3 && o2.add(c3);
20022
+ v2 && o2.add(c3);
20023
20023
  if (t(c3) && !y(c3)) {
20024
20024
  if (!e.h.D && e._ < 1)
20025
20025
  return;
@@ -20052,8 +20052,8 @@ function N(n2, r2, t2) {
20052
20052
  var e = s(r2) ? b("MapSet").F(r2, t2) : v(r2) ? b("MapSet").T(r2, t2) : n2.O ? function(n3, r3) {
20053
20053
  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;
20054
20054
  t3 && (i2 = [e2], o2 = on);
20055
- var u2 = Proxy.revocable(i2, o2), a11 = u2.revoke, f2 = u2.proxy;
20056
- return e2.k = f2, e2.j = a11, f2;
20055
+ var u2 = Proxy.revocable(i2, o2), a11 = u2.revoke, f3 = u2.proxy;
20056
+ return e2.k = f3, e2.j = a11, f3;
20057
20057
  }(r2, t2) : b("ES5").J(r2, t2);
20058
20058
  return (t2 ? t2.A : _()).p.push(e), e;
20059
20059
  }
@@ -20186,26 +20186,26 @@ var un = function() {
20186
20186
  });
20187
20187
  };
20188
20188
  }
20189
- var f2;
20189
+ var f3;
20190
20190
  if ("function" != typeof i3 && n(6), void 0 !== o2 && "function" != typeof o2 && n(7), t(r3)) {
20191
- var c3 = w(e2), s2 = N(e2, r3, void 0), v3 = true;
20191
+ var c3 = w(e2), s2 = N(e2, r3, void 0), v2 = true;
20192
20192
  try {
20193
- f2 = i3(s2), v3 = false;
20193
+ f3 = i3(s2), v2 = false;
20194
20194
  } finally {
20195
- v3 ? g(c3) : O(c3);
20195
+ v2 ? g(c3) : O(c3);
20196
20196
  }
20197
- return "undefined" != typeof Promise && f2 instanceof Promise ? f2.then(function(n2) {
20197
+ return "undefined" != typeof Promise && f3 instanceof Promise ? f3.then(function(n2) {
20198
20198
  return j(c3, o2), P3(n2, c3);
20199
20199
  }, function(n2) {
20200
20200
  throw g(c3), n2;
20201
- }) : (j(c3, o2), P3(f2, c3));
20201
+ }) : (j(c3, o2), P3(f3, c3));
20202
20202
  }
20203
20203
  if (!r3 || "object" != typeof r3) {
20204
- if (void 0 === (f2 = i3(r3)) && (f2 = r3), f2 === H && (f2 = void 0), e2.D && d(f2, true), o2) {
20204
+ if (void 0 === (f3 = i3(r3)) && (f3 = r3), f3 === H && (f3 = void 0), e2.D && d(f3, true), o2) {
20205
20205
  var p2 = [], l2 = [];
20206
- b("Patches").M(r3, f2, p2, l2), o2(p2, l2);
20206
+ b("Patches").M(r3, f3, p2, l2), o2(p2, l2);
20207
20207
  }
20208
- return f2;
20208
+ return f3;
20209
20209
  }
20210
20210
  n(21, r3);
20211
20211
  }, this.produceWithPatches = function(n2, r3) {
@@ -20328,21 +20328,21 @@ var vanilla_default = create;
20328
20328
 
20329
20329
  // ../hms-video-store/dist/index.js
20330
20330
  var $t = __toESM(require_lib());
20331
- import { EventEmitter2 as en2 } from "eventemitter2";
20332
- import { v4 as on2 } from "uuid";
20333
- import { EventEmitter2 as nn2 } from "eventemitter2";
20334
- import cn2 from "eventemitter2";
20335
- import { v4 as dn2 } from "uuid";
20336
- import { v4 as pn2 } from "uuid";
20337
- var qa = Object.defineProperty;
20338
- var ja = Object.defineProperties;
20339
- var Ja = Object.getOwnPropertyDescriptors;
20331
+ import { EventEmitter2 as tn2 } from "eventemitter2";
20332
+ import { v4 as nn2 } from "uuid";
20333
+ import { EventEmitter2 as cn2 } from "eventemitter2";
20334
+ import dn2 from "eventemitter2";
20335
+ import { v4 as ln2 } from "uuid";
20336
+ import { v4 as hn } from "uuid";
20337
+ var ja = Object.defineProperty;
20338
+ var Ja = Object.defineProperties;
20339
+ var Qa = Object.getOwnPropertyDescriptors;
20340
20340
  var Zt = Object.getOwnPropertySymbols;
20341
- var Qa = Object.getPrototypeOf;
20341
+ var za = Object.getPrototypeOf;
20342
20342
  var is = Object.prototype.hasOwnProperty;
20343
20343
  var rs = Object.prototype.propertyIsEnumerable;
20344
- var za = Reflect.get;
20345
- var ts = (a11, e, t2) => e in a11 ? qa(a11, e, { enumerable: true, configurable: true, writable: true, value: t2 }) : a11[e] = t2;
20344
+ var Ya = Reflect.get;
20345
+ var ts = (a11, e, t2) => e in a11 ? ja(a11, e, { enumerable: true, configurable: true, writable: true, value: t2 }) : a11[e] = t2;
20346
20346
  var m = (a11, e) => {
20347
20347
  for (var t2 in e || (e = {}))
20348
20348
  is.call(e, t2) && ts(a11, t2, e[t2]);
@@ -20351,7 +20351,7 @@ var m = (a11, e) => {
20351
20351
  rs.call(e, t2) && ts(a11, t2, e[t2]);
20352
20352
  return a11;
20353
20353
  };
20354
- var M2 = (a11, e) => ja(a11, Ja(e));
20354
+ var M2 = (a11, e) => Ja(a11, Qa(e));
20355
20355
  var mr = (a11, e) => {
20356
20356
  var t2 = {};
20357
20357
  for (var i2 in a11)
@@ -20361,8 +20361,8 @@ var mr = (a11, e) => {
20361
20361
  e.indexOf(i2) < 0 && rs.call(a11, i2) && (t2[i2] = a11[i2]);
20362
20362
  return t2;
20363
20363
  };
20364
- var Ya = (a11, e) => () => (e || a11((e = { exports: {} }).exports, e), e.exports);
20365
- var J = (a11, e, t2) => za(Qa(a11), t2, e);
20364
+ var Xa = (a11, e) => () => (e || a11((e = { exports: {} }).exports, e), e.exports);
20365
+ var J = (a11, e, t2) => Ya(za(a11), t2, e);
20366
20366
  var c2 = (a11, e, t2) => new Promise((i2, r2) => {
20367
20367
  var s2 = (l2) => {
20368
20368
  try {
@@ -20379,13 +20379,13 @@ var c2 = (a11, e, t2) => new Promise((i2, r2) => {
20379
20379
  }, n2 = (l2) => l2.done ? i2(l2.value) : Promise.resolve(l2.value).then(s2, o2);
20380
20380
  n2((t2 = t2.apply(a11, e)).next());
20381
20381
  });
20382
- var Mr = Ya((Vc, oo) => {
20383
- oo.exports = { version: "0.12.14-alpha.9", 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"] };
20382
+ var Mr = Xa((Fc, no) => {
20383
+ 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"] };
20384
20384
  });
20385
20385
  var 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 || {});
20386
20386
  var 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 });
20387
20387
  var ti = () => ({ peerStats: {}, remoteTrackStats: {}, localTrackStats: {}, localPeer: { id: "" } });
20388
- var Xa = ((e) => (e.CHAT = "chat", e))(Xa || {});
20388
+ var Za = ((e) => (e.CHAT = "chat", e))(Za || {});
20389
20389
  var ss = ((t2) => (t2.INFO = "info", t2.ERROR = "error", t2))(ss || {});
20390
20390
  var 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 || {});
20391
20391
  var as = ((t2) => (t2.audio = "audio", t2.video = "video", t2))(as || {});
@@ -20394,7 +20394,7 @@ function xe(a11, e) {
20394
20394
  if (e)
20395
20395
  for (let r2 of e.auxiliaryTracks) {
20396
20396
  let s2 = a11[r2];
20397
- Za(s2) && (i2 = ut(s2) ? s2 : i2, t2 = pt(s2) ? s2 : t2);
20397
+ eo(s2) && (i2 = ut(s2) ? s2 : i2, t2 = pt(s2) ? s2 : t2);
20398
20398
  }
20399
20399
  return { video: t2, audio: i2 };
20400
20400
  }
@@ -20404,7 +20404,7 @@ function ut(a11) {
20404
20404
  function pt(a11) {
20405
20405
  return a11 && a11.type === "video";
20406
20406
  }
20407
- function Za(a11) {
20407
+ function eo(a11) {
20408
20408
  return a11 && a11.source === "screen";
20409
20409
  }
20410
20410
  function ii(a11) {
@@ -20428,7 +20428,7 @@ function mt(a11) {
20428
20428
  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 };
20429
20429
  }
20430
20430
  var 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 || {});
20431
- var eo = typeof window != "undefined" && typeof window.expect != "undefined";
20431
+ var to = typeof window != "undefined" && typeof window.expect != "undefined";
20432
20432
  var d2 = class {
20433
20433
  static v(e, ...t2) {
20434
20434
  this.log(0, e, ...t2);
@@ -20494,7 +20494,7 @@ var d2 = class {
20494
20494
  }
20495
20495
  }
20496
20496
  };
20497
- d2.level = eo ? 7 : 0;
20497
+ d2.level = to ? 7 : 0;
20498
20498
  var Je = class {
20499
20499
  constructor(e) {
20500
20500
  this.tracks = new Array();
@@ -20508,8 +20508,8 @@ var ge = new import_ua_parser_js.UAParser();
20508
20508
  var O2 = typeof window != "undefined";
20509
20509
  var ds;
20510
20510
  var Ue = typeof window == "undefined" && !((ds = ge.getBrowser().name) != null && ds.toLowerCase().includes("electron"));
20511
- var io = () => !Ue;
20512
- var tc = io();
20511
+ var ro = () => !Ue;
20512
+ var ic = ro();
20513
20513
  var Te = () => ge.getDevice().type === "mobile";
20514
20514
  var ps = () => typeof document != "undefined" && document.hidden;
20515
20515
  var Tr = () => {
@@ -20624,16 +20624,16 @@ var Ie = class extends Re {
20624
20624
  }
20625
20625
  };
20626
20626
  var ms = ((i2) => (i2.CUSTOM = "CUSTOM", i2.LOCAL = "LOCAL", i2.HMS = "HMS", i2))(ms || {});
20627
- function ro() {
20627
+ function so() {
20628
20628
  if (O2 && window) {
20629
20629
  let a11 = window.location.hostname;
20630
20630
  return a11 === "localhost" || a11 === "127.0.0.1" ? "LOCAL" : a11.includes("app.100ms.live") ? "HMS" : "CUSTOM";
20631
20631
  }
20632
20632
  return "CUSTOM";
20633
20633
  }
20634
- var Qe = ro();
20635
- var E2 = { 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 } };
20636
- var v2 = class a2 extends Error {
20634
+ var Qe = so();
20635
+ var 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 } };
20636
+ var f2 = class a2 extends Error {
20637
20637
  constructor(t2, i2, r2, s2, o2, n2 = false) {
20638
20638
  super(s2);
20639
20639
  this.code = t2;
@@ -20676,113 +20676,113 @@ function fr(a11) {
20676
20676
  return "NONE";
20677
20677
  }
20678
20678
  }
20679
- var so = ["join", "offer", "answer", "trickle", "on-error", "JOIN"];
20679
+ var ao = ["join", "offer", "answer", "trickle", "on-error", "JOIN"];
20680
20680
  var S2 = { WebSocketConnectionErrors: { FailedToConnect(a11, e = "") {
20681
- return new v2(E2.WebSocketConnectionErrors.FAILED_TO_CONNECT, "WebsocketFailedToConnect", a11, `[WS]: ${e}`, `[WS]: ${e}`);
20681
+ return new f2(k2.WebSocketConnectionErrors.FAILED_TO_CONNECT, "WebsocketFailedToConnect", a11, `[WS]: ${e}`, `[WS]: ${e}`);
20682
20682
  }, WebSocketConnectionLost(a11, e = "") {
20683
- return new v2(E2.WebSocketConnectionErrors.WEBSOCKET_CONNECTION_LOST, "WebSocketConnectionLost", a11, "Network connection lost", e);
20683
+ return new f2(k2.WebSocketConnectionErrors.WEBSOCKET_CONNECTION_LOST, "WebSocketConnectionLost", a11, "Network connection lost", e);
20684
20684
  }, AbnormalClose(a11, e = "") {
20685
- return new v2(E2.WebSocketConnectionErrors.ABNORMAL_CLOSE, "WebSocketAbnormalClose", a11, "Websocket closed abnormally", e);
20685
+ return new f2(k2.WebSocketConnectionErrors.ABNORMAL_CLOSE, "WebSocketAbnormalClose", a11, "Websocket closed abnormally", e);
20686
20686
  } }, APIErrors: { ServerErrors(a11, e, t2 = "", i2 = true) {
20687
- return new v2(a11, "ServerErrors", e, `[${e}]: Server error ${t2}`, t2, i2);
20687
+ return new f2(a11, "ServerErrors", e, `[${e}]: Server error ${t2}`, t2, i2);
20688
20688
  }, EndpointUnreachable(a11, e = "") {
20689
- return new v2(E2.APIErrors.ENDPOINT_UNREACHABLE, "EndpointUnreachable", a11, `Endpoint is not reachable - ${e}`, e);
20689
+ return new f2(k2.APIErrors.ENDPOINT_UNREACHABLE, "EndpointUnreachable", a11, `Endpoint is not reachable - ${e}`, e);
20690
20690
  }, InvalidTokenFormat(a11, e = "") {
20691
- return new v2(E2.APIErrors.INVALID_TOKEN_FORMAT, "InvalidTokenFormat", a11, `Token is not in proper JWT format - ${e}`, e, true);
20691
+ return new f2(k2.APIErrors.INVALID_TOKEN_FORMAT, "InvalidTokenFormat", a11, `Token is not in proper JWT format - ${e}`, e, true);
20692
20692
  }, InitConfigNotAvailable(a11, e = "") {
20693
- return new v2(E2.APIErrors.INIT_CONFIG_NOT_AVAILABLE, "InitError", a11, `[INIT]: ${e}`, `[INIT]: ${e}`);
20693
+ return new f2(k2.APIErrors.INIT_CONFIG_NOT_AVAILABLE, "InitError", a11, `[INIT]: ${e}`, `[INIT]: ${e}`);
20694
20694
  } }, TracksErrors: { GenericTrack(a11, e = "") {
20695
- return new v2(E2.TracksErrors.GENERIC_TRACK, "GenericTrack", a11, `[TRACK]: ${e}`, `[TRACK]: ${e}`);
20695
+ return new f2(k2.TracksErrors.GENERIC_TRACK, "GenericTrack", a11, `[TRACK]: ${e}`, `[TRACK]: ${e}`);
20696
20696
  }, CantAccessCaptureDevice(a11, e, t2 = "") {
20697
- return new v2(E2.TracksErrors.CANT_ACCESS_CAPTURE_DEVICE, "CantAccessCaptureDevice", a11, `User denied permission to access capture device - ${e}`, t2);
20697
+ return new f2(k2.TracksErrors.CANT_ACCESS_CAPTURE_DEVICE, "CantAccessCaptureDevice", a11, `User denied permission to access capture device - ${e}`, t2);
20698
20698
  }, DeviceNotAvailable(a11, e, t2 = "") {
20699
- return new v2(E2.TracksErrors.DEVICE_NOT_AVAILABLE, "DeviceNotAvailable", a11, `[TRACK]: Capture device is no longer available - ${e}`, t2);
20699
+ return new f2(k2.TracksErrors.DEVICE_NOT_AVAILABLE, "DeviceNotAvailable", a11, `[TRACK]: Capture device is no longer available - ${e}`, t2);
20700
20700
  }, DeviceInUse(a11, e, t2 = "") {
20701
- return new v2(E2.TracksErrors.DEVICE_IN_USE, "DeviceInUse", a11, `[TRACK]: Capture device is in use by another application - ${e}`, t2);
20701
+ return new f2(k2.TracksErrors.DEVICE_IN_USE, "DeviceInUse", a11, `[TRACK]: Capture device is in use by another application - ${e}`, t2);
20702
20702
  }, DeviceLostMidway(a11, e, t2 = "") {
20703
- return new v2(E2.TracksErrors.DEVICE_LOST_MIDWAY, "DeviceLostMidway", a11, `Lost access to capture device midway - ${e}`, t2);
20703
+ return new f2(k2.TracksErrors.DEVICE_LOST_MIDWAY, "DeviceLostMidway", a11, `Lost access to capture device midway - ${e}`, t2);
20704
20704
  }, NothingToReturn(a11, e = "", t2 = "There is no media to return. Please select either video or audio or both.") {
20705
- return new v2(E2.TracksErrors.NOTHING_TO_RETURN, "NothingToReturn", a11, t2, e);
20705
+ return new f2(k2.TracksErrors.NOTHING_TO_RETURN, "NothingToReturn", a11, t2, e);
20706
20706
  }, InvalidVideoSettings(a11, e = "") {
20707
- return new v2(E2.TracksErrors.INVALID_VIDEO_SETTINGS, "InvalidVideoSettings", a11, "Cannot enable simulcast when no video settings are provided", e);
20707
+ return new f2(k2.TracksErrors.INVALID_VIDEO_SETTINGS, "InvalidVideoSettings", a11, "Cannot enable simulcast when no video settings are provided", e);
20708
20708
  }, AutoplayBlocked(a11, e = "") {
20709
- return new v2(E2.TracksErrors.AUTOPLAY_ERROR, "AutoplayBlocked", a11, "Autoplay blocked because the user didn't interact with the document first", e);
20709
+ return new f2(k2.TracksErrors.AUTOPLAY_ERROR, "AutoplayBlocked", a11, "Autoplay blocked because the user didn't interact with the document first", e);
20710
20710
  }, CodecChangeNotPermitted(a11, e = "") {
20711
- return new v2(E2.TracksErrors.CODEC_CHANGE_NOT_PERMITTED, "CodecChangeNotPermitted", a11, "Codec can't be changed mid call.", e);
20711
+ return new f2(k2.TracksErrors.CODEC_CHANGE_NOT_PERMITTED, "CodecChangeNotPermitted", a11, "Codec can't be changed mid call.", e);
20712
20712
  }, OverConstrained(a11, e, t2 = "") {
20713
- return new v2(E2.TracksErrors.OVER_CONSTRAINED, "OverConstrained", a11, `[TRACK]: Requested constraints cannot be satisfied with the device hardware - ${e}`, t2);
20713
+ return new f2(k2.TracksErrors.OVER_CONSTRAINED, "OverConstrained", a11, `[TRACK]: Requested constraints cannot be satisfied with the device hardware - ${e}`, t2);
20714
20714
  }, NoAudioDetected(a11, e = "Please check the mic or use another audio input") {
20715
- return new v2(E2.TracksErrors.NO_AUDIO_DETECTED, "NoAudioDetected", a11, "No audio input detected from microphone", e);
20715
+ return new f2(k2.TracksErrors.NO_AUDIO_DETECTED, "NoAudioDetected", a11, "No audio input detected from microphone", e);
20716
20716
  }, SystemDeniedPermission(a11, e, t2 = "") {
20717
- return new v2(E2.TracksErrors.SYSTEM_DENIED_PERMISSION, "SystemDeniedPermission", a11, `Operating System denied permission to access capture device - ${e}`, t2);
20717
+ return new f2(k2.TracksErrors.SYSTEM_DENIED_PERMISSION, "SystemDeniedPermission", a11, `Operating System denied permission to access capture device - ${e}`, t2);
20718
20718
  }, CurrentTabNotShared() {
20719
- return new v2(E2.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");
20719
+ 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");
20720
20720
  }, AudioPlaybackError(a11) {
20721
- return new v2(E2.TracksErrors.AUDIO_PLAYBACK_ERROR, "Audio playback error", "TRACK", a11, a11);
20721
+ return new f2(k2.TracksErrors.AUDIO_PLAYBACK_ERROR, "Audio playback error", "TRACK", a11, a11);
20722
20722
  }, SelectedDeviceMissing(a11) {
20723
- return new v2(E2.TracksErrors.SELECTED_DEVICE_MISSING, "SelectedDeviceMissing", "TRACK", `Could not detect selected ${a11} device`, `Please check connection to the ${a11} device`, false);
20723
+ return new f2(k2.TracksErrors.SELECTED_DEVICE_MISSING, "SelectedDeviceMissing", "TRACK", `Could not detect selected ${a11} device`, `Please check connection to the ${a11} device`, false);
20724
20724
  } }, WebrtcErrors: { CreateOfferFailed(a11, e = "") {
20725
- return new v2(E2.WebrtcErrors.CREATE_OFFER_FAILED, "CreateOfferFailed", a11, `[${a11.toString()}]: Failed to create offer. `, e);
20725
+ return new f2(k2.WebrtcErrors.CREATE_OFFER_FAILED, "CreateOfferFailed", a11, `[${a11.toString()}]: Failed to create offer. `, e);
20726
20726
  }, CreateAnswerFailed(a11, e = "") {
20727
- return new v2(E2.WebrtcErrors.CREATE_ANSWER_FAILED, "CreateAnswerFailed", a11, `[${a11.toString()}]: Failed to create answer. `, e);
20727
+ return new f2(k2.WebrtcErrors.CREATE_ANSWER_FAILED, "CreateAnswerFailed", a11, `[${a11.toString()}]: Failed to create answer. `, e);
20728
20728
  }, SetLocalDescriptionFailed(a11, e = "") {
20729
- return new v2(E2.WebrtcErrors.SET_LOCAL_DESCRIPTION_FAILED, "SetLocalDescriptionFailed", a11, `[${a11.toString()}]: Failed to set offer. `, e);
20729
+ return new f2(k2.WebrtcErrors.SET_LOCAL_DESCRIPTION_FAILED, "SetLocalDescriptionFailed", a11, `[${a11.toString()}]: Failed to set offer. `, e);
20730
20730
  }, SetRemoteDescriptionFailed(a11, e = "") {
20731
- return new v2(E2.WebrtcErrors.SET_REMOTE_DESCRIPTION_FAILED, "SetRemoteDescriptionFailed", a11, `[${a11.toString()}]: Failed to set answer. `, e, true);
20731
+ return new f2(k2.WebrtcErrors.SET_REMOTE_DESCRIPTION_FAILED, "SetRemoteDescriptionFailed", a11, `[${a11.toString()}]: Failed to set answer. `, e, true);
20732
20732
  }, ICEFailure(a11, e = "", t2 = false) {
20733
- return new v2(E2.WebrtcErrors.ICE_FAILURE, "ICEFailure", a11, `[${a11.toString()}]: Ice connection state FAILED`, e, t2);
20733
+ return new f2(k2.WebrtcErrors.ICE_FAILURE, "ICEFailure", a11, `[${a11.toString()}]: Ice connection state FAILED`, e, t2);
20734
20734
  }, ICEDisconnected(a11, e = "") {
20735
- return new v2(E2.WebrtcErrors.ICE_DISCONNECTED, "ICEDisconnected", a11, `[${a11.toString()}]: Ice connection state DISCONNECTED`, e);
20735
+ return new f2(k2.WebrtcErrors.ICE_DISCONNECTED, "ICEDisconnected", a11, `[${a11.toString()}]: Ice connection state DISCONNECTED`, e);
20736
20736
  }, StatsFailed(a11, e = "") {
20737
- return new v2(E2.WebrtcErrors.STATS_FAILED, "StatsFailed", a11, `Failed to WebRTC get stats - ${e}`, e);
20737
+ return new f2(k2.WebrtcErrors.STATS_FAILED, "StatsFailed", a11, `Failed to WebRTC get stats - ${e}`, e);
20738
20738
  } }, WebsocketMethodErrors: { ServerErrors(a11, e, t2) {
20739
- return new v2(a11, "ServerErrors", e, t2, t2, so.includes(e));
20739
+ return new f2(a11, "ServerErrors", e, t2, t2, ao.includes(e));
20740
20740
  }, AlreadyJoined(a11, e = "") {
20741
- return new v2(E2.WebsocketMethodErrors.ALREADY_JOINED, "AlreadyJoined", a11, "[JOIN]: You have already joined this room.", e);
20741
+ return new f2(k2.WebsocketMethodErrors.ALREADY_JOINED, "AlreadyJoined", a11, "[JOIN]: You have already joined this room.", e);
20742
20742
  }, CannotJoinPreviewInProgress(a11, e = "") {
20743
- return new v2(E2.WebsocketMethodErrors.CANNOT_JOIN_PREVIEW_IN_PROGRESS, "CannotJoinPreviewInProgress", a11, "[JOIN]: Cannot join if preview is in progress", e);
20743
+ return new f2(k2.WebsocketMethodErrors.CANNOT_JOIN_PREVIEW_IN_PROGRESS, "CannotJoinPreviewInProgress", a11, "[JOIN]: Cannot join if preview is in progress", e);
20744
20744
  } }, GenericErrors: { NotConnected(a11, e = "") {
20745
- return new v2(E2.GenericErrors.NOT_CONNECTED, "NotConnected", a11, "Client is not connected", e);
20745
+ return new f2(k2.GenericErrors.NOT_CONNECTED, "NotConnected", a11, "Client is not connected", e);
20746
20746
  }, Signalling(a11, e) {
20747
- return new v2(E2.GenericErrors.SIGNALLING, "Signalling", a11, `Unknown signalling error: ${a11.toString()} ${e} `, e);
20747
+ return new f2(k2.GenericErrors.SIGNALLING, "Signalling", a11, `Unknown signalling error: ${a11.toString()} ${e} `, e);
20748
20748
  }, Unknown(a11, e) {
20749
- return new v2(E2.GenericErrors.UNKNOWN, "Unknown", a11, `Unknown exception: ${e}`, e);
20749
+ return new f2(k2.GenericErrors.UNKNOWN, "Unknown", a11, `Unknown exception: ${e}`, e);
20750
20750
  }, NotReady(a11, e = "") {
20751
- return new v2(E2.GenericErrors.NOT_READY, "NotReady", a11, e, e);
20751
+ return new f2(k2.GenericErrors.NOT_READY, "NotReady", a11, e, e);
20752
20752
  }, JsonParsingFailed(a11, e, t2 = "") {
20753
- return new v2(E2.GenericErrors.JSON_PARSING_FAILED, "JsonParsingFailed", a11, `Failed to parse JSON message - ${e}`, t2);
20753
+ return new f2(k2.GenericErrors.JSON_PARSING_FAILED, "JsonParsingFailed", a11, `Failed to parse JSON message - ${e}`, t2);
20754
20754
  }, TrackMetadataMissing(a11, e = "") {
20755
- return new v2(E2.GenericErrors.TRACK_METADATA_MISSING, "TrackMetadataMissing", a11, "Track Metadata Missing", e);
20755
+ return new f2(k2.GenericErrors.TRACK_METADATA_MISSING, "TrackMetadataMissing", a11, "Track Metadata Missing", e);
20756
20756
  }, RTCTrackMissing(a11, e = "") {
20757
- return new v2(E2.GenericErrors.RTC_TRACK_MISSING, "RTCTrackMissing", a11, "RTC Track missing", e);
20757
+ return new f2(k2.GenericErrors.RTC_TRACK_MISSING, "RTCTrackMissing", a11, "RTC Track missing", e);
20758
20758
  }, PeerMetadataMissing(a11, e = "") {
20759
- return new v2(E2.GenericErrors.PEER_METADATA_MISSING, "PeerMetadataMissing", a11, "Peer Metadata Missing", e);
20759
+ return new f2(k2.GenericErrors.PEER_METADATA_MISSING, "PeerMetadataMissing", a11, "Peer Metadata Missing", e);
20760
20760
  }, ValidationFailed(a11, e) {
20761
- return new v2(E2.GenericErrors.VALIDATION_FAILED, "ValidationFailed", "VALIDATION", a11, e ? JSON.stringify(e) : "");
20761
+ return new f2(k2.GenericErrors.VALIDATION_FAILED, "ValidationFailed", "VALIDATION", a11, e ? JSON.stringify(e) : "");
20762
20762
  }, InvalidRole(a11, e) {
20763
- return new v2(E2.GenericErrors.INVALID_ROLE, "InvalidRole", a11, "Invalid role. Join with valid role", e, true);
20763
+ return new f2(k2.GenericErrors.INVALID_ROLE, "InvalidRole", a11, "Invalid role. Join with valid role", e, true);
20764
20764
  }, PreviewAlreadyInProgress(a11, e = "") {
20765
- return new v2(E2.GenericErrors.PREVIEW_IN_PROGRESS, "PreviewAlreadyInProgress", a11, "[Preview]: Cannot join if preview is in progress", e);
20765
+ return new f2(k2.GenericErrors.PREVIEW_IN_PROGRESS, "PreviewAlreadyInProgress", a11, "[Preview]: Cannot join if preview is in progress", e);
20766
20766
  }, LocalStorageAccessDenied(a11 = "Access to localStorage has been denied") {
20767
- return new v2(E2.GenericErrors.LOCAL_STORAGE_ACCESS_DENIED, "LocalStorageAccessDenied", "NONE", "LocalStorageAccessDenied", a11);
20767
+ return new f2(k2.GenericErrors.LOCAL_STORAGE_ACCESS_DENIED, "LocalStorageAccessDenied", "NONE", "LocalStorageAccessDenied", a11);
20768
20768
  }, MissingMediaDevices() {
20769
- return new v2(E2.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);
20769
+ 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);
20770
20770
  }, MissingRTCPeerConnection() {
20771
- return new v2(E2.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);
20771
+ 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);
20772
20772
  } }, MediaPluginErrors: { PlatformNotSupported(a11, e = "") {
20773
- return new v2(7001, "PlatformNotSupported", a11, "Check HMS Docs to see the list of supported platforms", e);
20773
+ return new f2(7001, "PlatformNotSupported", a11, "Check HMS Docs to see the list of supported platforms", e);
20774
20774
  }, InitFailed(a11, e = "") {
20775
- return new v2(7002, "InitFailed", a11, "Plugin init failed", e);
20775
+ return new f2(7002, "InitFailed", a11, "Plugin init failed", e);
20776
20776
  }, ProcessingFailed(a11, e = "") {
20777
- return new v2(7003, "ProcessingFailed", a11, "Plugin processing failed", e);
20777
+ return new f2(7003, "ProcessingFailed", a11, "Plugin processing failed", e);
20778
20778
  }, AddAlreadyInProgress(a11, e = "") {
20779
- return new v2(7004, "AddAlreadyInProgress", a11, "Plugin add already in progress", e);
20779
+ return new f2(7004, "AddAlreadyInProgress", a11, "Plugin add already in progress", e);
20780
20780
  }, DeviceNotSupported(a11, e = "") {
20781
- return new v2(7005, "DeviceNotSupported", a11, "Check HMS Docs to see the list of supported devices", e);
20781
+ return new f2(7005, "DeviceNotSupported", a11, "Check HMS Docs to see the list of supported devices", e);
20782
20782
  } }, PlaylistErrors: { NoEntryToPlay(a11, e) {
20783
- return new v2(E2.PlaylistErrors.NO_ENTRY_TO_PLAY, "NoEntryToPlay", a11, "Reached end of playlist", e);
20783
+ return new f2(k2.PlaylistErrors.NO_ENTRY_TO_PLAY, "NoEntryToPlay", a11, "Reached end of playlist", e);
20784
20784
  }, NoEntryPlaying(a11, e) {
20785
- return new v2(E2.PlaylistErrors.NO_ENTRY_IS_PLAYING, "NoEntryIsPlaying", a11, "No entry is playing at this time", e);
20785
+ return new f2(k2.PlaylistErrors.NO_ENTRY_IS_PLAYING, "NoEntryIsPlaying", a11, "No entry is playing at this time", e);
20786
20786
  } } };
20787
20787
  var vr = class {
20788
20788
  constructor() {
@@ -20845,7 +20845,7 @@ var le = class {
20845
20845
  };
20846
20846
  var gs = () => {
20847
20847
  let a11, e = new le("hms-analytics-deviceId"), t2 = e.get();
20848
- return t2 ? a11 = t2 : (a11 = ao(), e.set(a11)), a11;
20848
+ return t2 ? a11 = t2 : (a11 = oo(), e.set(a11)), a11;
20849
20849
  };
20850
20850
  var Ts = "[VALIDATIONS]";
20851
20851
  function oe(a11) {
@@ -20878,7 +20878,7 @@ var vs = (a11, e = ",") => Object.keys(a11).filter((t2) => oe(a11[t2])).map((t2)
20878
20878
  var H2 = class {
20879
20879
  constructor({ name: e, level: t2, properties: i2, includesPII: r2, timestamp: s2 }) {
20880
20880
  this.metadata = { peer: {}, userAgent: Tt() };
20881
- this.name = e, this.level = t2, this.includesPII = r2 || false, this.properties = i2 || {}, this.timestamp = s2 || (/* @__PURE__ */ new Date()).getTime(), this.event_id = no(), this.device_id = gs();
20881
+ this.name = e, this.level = t2, this.includesPII = r2 || false, this.properties = i2 || {}, this.timestamp = s2 || (/* @__PURE__ */ new Date()).getTime(), this.event_id = co(), this.device_id = gs();
20882
20882
  }
20883
20883
  toSignalParams() {
20884
20884
  return { name: this.name, info: M2(m({}, this.properties), { timestamp: this.timestamp, domain: Qe }), timestamp: (/* @__PURE__ */ new Date()).getTime() };
@@ -20977,7 +20977,7 @@ var y2 = class {
20977
20977
  return e = m(m({}, i2), e), e;
20978
20978
  }
20979
20979
  static getErrorProperties(e) {
20980
- return e ? e instanceof v2 ? e.toAnalyticsProperties() : { error_name: e.name, error_message: e.message, error_description: e.cause } : {};
20980
+ return e ? e instanceof f2 ? e.toAnalyticsProperties() : { error_name: e.name, error_message: e.message, error_description: e.cause } : {};
20981
20981
  }
20982
20982
  };
20983
20983
  y2.KEY_REQUESTED_AT = "requested_at", y2.KEY_RESPONDED_AT = "responded_at";
@@ -21084,8 +21084,8 @@ var si = class {
21084
21084
  delete this.addedTimestamps[e], delete this.initTime[e], delete this.pluginAdded[e], delete this.pluginSampleRate[e];
21085
21085
  }
21086
21086
  };
21087
- var co = 48e3;
21088
- var lo = () => navigator.userAgent.indexOf("Firefox") !== -1;
21087
+ var lo = 48e3;
21088
+ var uo = () => navigator.userAgent.indexOf("Firefox") !== -1;
21089
21089
  var ft = class {
21090
21090
  constructor(e, t2, i2) {
21091
21091
  this.eventBus = t2;
@@ -21250,14 +21250,14 @@ var ft = class {
21250
21250
  });
21251
21251
  }
21252
21252
  createAudioContext() {
21253
- this.audioContext || (lo() ? this.audioContext = new AudioContext() : this.audioContext = new AudioContext({ sampleRate: co }));
21253
+ this.audioContext || (uo() ? this.audioContext = new AudioContext() : this.audioContext = new AudioContext({ sampleRate: lo }));
21254
21254
  }
21255
21255
  };
21256
- function uo(a11, e) {
21256
+ function po(a11, e) {
21257
21257
  let t2 = a11.toLowerCase();
21258
21258
  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);
21259
21259
  }
21260
- function po(a11, e = "") {
21260
+ function ho(a11, e = "") {
21261
21261
  if (adapter_core_default.browserDetails.browser === "chrome" && a11.name === "NotAllowedError" && a11.message.includes("denied by system"))
21262
21262
  return S2.TracksErrors.SystemDeniedPermission("TRACK", e, a11.message);
21263
21263
  if (adapter_core_default.browserDetails.browser === "firefox" && a11.name === "NotFoundError") {
@@ -21276,11 +21276,11 @@ function po(a11, e = "") {
21276
21276
  case "TypeError":
21277
21277
  return S2.TracksErrors.NothingToReturn("TRACK", a11.message);
21278
21278
  default:
21279
- return uo(a11.message, e);
21279
+ return po(a11.message, e);
21280
21280
  }
21281
21281
  }
21282
21282
  function Ae(a11, e) {
21283
- let t2 = po(a11, e);
21283
+ let t2 = ho(a11, e);
21284
21284
  return t2.addNativeError(a11), t2;
21285
21285
  }
21286
21286
  function ys(a11) {
@@ -21390,8 +21390,8 @@ function ai(a11, e = 300) {
21390
21390
  }, e);
21391
21391
  };
21392
21392
  }
21393
- var mo = 35;
21394
- var So = 5;
21393
+ var So = 35;
21394
+ var go = 5;
21395
21395
  var oi = class {
21396
21396
  constructor(e, t2, i2) {
21397
21397
  this.track = e;
@@ -21441,7 +21441,7 @@ var oi = class {
21441
21441
  });
21442
21442
  }
21443
21443
  sendAudioLevel(e = 0) {
21444
- if (e = e > mo ? e : 0, Math.abs(this.audioLevel - e) > So) {
21444
+ if (e = e > So ? e : 0, Math.abs(this.audioLevel - e) > go) {
21445
21445
  this.audioLevel = e;
21446
21446
  let i2 = { track: this.track, audioLevel: this.audioLevel };
21447
21447
  this.audioLevelEvent.publish(i2);
@@ -21488,7 +21488,8 @@ var Is = ((i2) => (i2.REGULAR = "regular", i2.SCREEN = "screen", i2.COMPOSITE =
21488
21488
  var As = ((r2) => (r2.INITIALISED = "initialised", r2.STARTED = "started", r2.STOPPED = "stopped", r2.FAILED = "failed", r2))(As || {});
21489
21489
  var Hs = ((e) => (e.CAPTION = "caption", e))(Hs || {});
21490
21490
  var Be = { f: "high", h: "medium", q: "low" };
21491
- var Cs = ((i2) => (i2.videoInput = "videoInput", i2.audioInput = "audioInput", i2.audioOutput = "audioOutput", i2))(Cs || {});
21491
+ var Cs = ((t2) => (t2.VOICE = "voice", t2.MUSIC = "music", t2))(Cs || {});
21492
+ var Ls = ((i2) => (i2.videoInput = "videoInput", i2.audioInput = "audioInput", i2.audioOutput = "audioOutput", i2))(Ls || {});
21492
21493
  var ee = class {
21493
21494
  constructor() {
21494
21495
  this._volume = 1;
@@ -21515,7 +21516,7 @@ var ee = class {
21515
21516
  return this._deviceId = e, this;
21516
21517
  }
21517
21518
  audioMode(e = "voice") {
21518
- return this._audioMode = e, this._audioMode === "music" && (this._maxBitrate = 320), this;
21519
+ return this._audioMode = e, this._audioMode === "music" ? this._maxBitrate = 320 : this._maxBitrate = 32, this;
21519
21520
  }
21520
21521
  advanced(e) {
21521
21522
  return this._advanced = e, this;
@@ -21526,7 +21527,7 @@ var ee = class {
21526
21527
  };
21527
21528
  var Ve = class {
21528
21529
  constructor(e, t2, i2, r2, s2, o2) {
21529
- this.volume = e, this.codec = t2, this.maxBitrate = i2, this.deviceId = r2, this.advanced = s2, this.audioMode = o2, this.audioMode === "music" && (this.maxBitrate = 320);
21530
+ 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;
21530
21531
  }
21531
21532
  toConstraints() {
21532
21533
  return { deviceId: this.deviceId, advanced: this.audioMode === "music" ? [] : this.advanced };
@@ -21629,7 +21630,7 @@ var ze = class {
21629
21630
  return this.audio && (e = m(m({}, this.audio.toAnalyticsProperties()), e)), this.video && (e = m(m({}, this.video.toAnalyticsProperties()), e)), e;
21630
21631
  }
21631
21632
  };
21632
- function Ds(a11, e) {
21633
+ function ws(a11, e) {
21633
21634
  return function(i2) {
21634
21635
  return !(0, import_lodash3.default)(a11[i2], e[i2]);
21635
21636
  };
@@ -21651,11 +21652,11 @@ var ce = class a3 extends Ie {
21651
21652
  yield this.transceiver.sender.replaceTrack(this.processedTrack || this.nativeTrack);
21652
21653
  });
21653
21654
  this.handleSettingsChange = (t3) => c2(this, null, function* () {
21654
- let i3 = this.stream, r3 = Ds(t3, this.settings);
21655
+ let i3 = this.stream, r3 = ws(t3, this.settings);
21655
21656
  (r3("maxBitrate") || r3("audioMode")) && t3.maxBitrate && (yield i3.setMaxBitrateAndFramerate(this, t3)), (r3("advanced") || r3("audioMode")) && (yield this.replaceTrackWith(t3));
21656
21657
  });
21657
21658
  this.handleDeviceChange = (t3, i3 = false) => c2(this, null, function* () {
21658
- if (Ds(t3, this.settings)("deviceId")) {
21659
+ if (ws(t3, this.settings)("deviceId")) {
21659
21660
  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);
21660
21661
  let s3 = this.nativeTrack.getSettings().groupId;
21661
21662
  !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 } }));
@@ -21816,8 +21817,8 @@ var Ye = class extends Re {
21816
21817
  }
21817
21818
  };
21818
21819
  var vt = { none: -1, low: 0, medium: 1, high: 2 };
21819
- var To = 0.5;
21820
- var ws = (a11, e) => {
21820
+ var fo = 0.5;
21821
+ var _s = (a11, e) => {
21821
21822
  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);
21822
21823
  for (let o2 = 0; o2 < r2.length; o2++) {
21823
21824
  let { resolution: n2, layer: l2 } = r2[o2], u2 = n2[i2];
@@ -21826,7 +21827,7 @@ var ws = (a11, e) => {
21826
21827
  break;
21827
21828
  } else {
21828
21829
  let p2 = r2[o2 + 1], h2 = p2 ? p2.resolution[i2] : Number.POSITIVE_INFINITY;
21829
- if ((s2 - u2) / (h2 - u2) < To) {
21830
+ if ((s2 - u2) / (h2 - u2) < fo) {
21830
21831
  t2 = l2;
21831
21832
  break;
21832
21833
  }
@@ -21861,7 +21862,7 @@ var Rr = class {
21861
21862
  return e || d2.w(this.TAG, "IntersectionObserver is not supported, fallback will be used instead"), e;
21862
21863
  }
21863
21864
  };
21864
- var _s = new Rr();
21865
+ var Ns = new Rr();
21865
21866
  var Ir = class {
21866
21867
  constructor() {
21867
21868
  this.TAG = "[HMSResizeObserverWrapper]";
@@ -21889,7 +21890,7 @@ var Ir = class {
21889
21890
  return e || d2.w(this.TAG, "Resize Observer is not supported"), e;
21890
21891
  }
21891
21892
  };
21892
- var Ns = new Ir();
21893
+ var Os = new Ir();
21893
21894
  var Xe = class {
21894
21895
  constructor(e) {
21895
21896
  this.track = e;
@@ -21913,7 +21914,7 @@ var Xe = class {
21913
21914
  e2.srcObject = null, e2.removeEventListener("pause", this.resumeVideoPlayback), (t2 = this.resizeObserver) == null || t2.unobserve(e2), (i2 = this.intersectionObserver) == null || i2.unobserve(e2);
21914
21915
  }), this.videoElements.clear(), this.resizeObserver = void 0, this.intersectionObserver = void 0;
21915
21916
  };
21916
- this.init(), this.id = fo();
21917
+ this.init(), this.id = vo();
21917
21918
  }
21918
21919
  updateSinks(e = false) {
21919
21920
  for (let t2 of this.videoElements)
@@ -21933,7 +21934,7 @@ var Xe = class {
21933
21934
  return Array.from(this.videoElements);
21934
21935
  }
21935
21936
  init() {
21936
- O2 && (this.resizeObserver = Ns, this.intersectionObserver = _s);
21937
+ O2 && (this.resizeObserver = Os, this.intersectionObserver = Ns);
21937
21938
  }
21938
21939
  isElementInViewport(e) {
21939
21940
  let t2 = e.offsetTop, i2 = e.offsetLeft, r2 = e.offsetWidth, s2 = e.offsetHeight, { hidden: o2 } = e, { opacity: n2, display: l2 } = getComputedStyle(e);
@@ -21953,7 +21954,7 @@ var Xe = class {
21953
21954
  let { width: r2, height: s2 } = i2;
21954
21955
  if (r2 === 0 || s2 === 0)
21955
21956
  continue;
21956
- let o2 = ws(this.track.getSimulcastDefinitions(), { width: r2, height: s2 });
21957
+ let o2 = _s(this.track.getSimulcastDefinitions(), { width: r2, height: s2 });
21957
21958
  e ? e = vt[o2] > vt[e] ? o2 : e : e = o2;
21958
21959
  }
21959
21960
  e && (d2.d(this.TAG, `selecting max layer ${e} for the track`, `${this.track}`), yield this.track.setPreferredLayer(e));
@@ -22041,9 +22042,9 @@ var Ze = class {
22041
22042
  delete this.addedTimestamps[e], delete this.initTime[e], delete this.processingAvgs[e], delete this.pluginAdded[e], delete this.pluginInputFrameRate[e], delete this.pluginFrameRate[e];
22042
22043
  }
22043
22044
  };
22044
- var Os = 24;
22045
- var vo = 320;
22046
- var Mo = 240;
22045
+ var xs = 24;
22046
+ var Mo = 320;
22047
+ var yo = 240;
22047
22048
  var yt = class {
22048
22049
  constructor(e, t2) {
22049
22050
  this.TAG = "[VideoPluginsManager]";
@@ -22088,7 +22089,7 @@ var yt = class {
22088
22089
  d2.w(this.TAG, `plugin - ${e.getName()} already added.`);
22089
22090
  return;
22090
22091
  }
22091
- let r2 = this.hmsTrack.getMediaTrackSettings().frameRate || Os, s2 = 0;
22092
+ let r2 = this.hmsTrack.getMediaTrackSettings().frameRate || xs, s2 = 0;
22092
22093
  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);
22093
22094
  try {
22094
22095
  if (yield this.analytics.initWithTime(i2, () => c2(this, null, function* () {
@@ -22176,7 +22177,7 @@ var yt = class {
22176
22177
  pluginsLoop() {
22177
22178
  return c2(this, null, function* () {
22178
22179
  for (; this.pluginsLoopRunning; ) {
22179
- let e = this.hmsTrack.getMediaTrackSettings().frameRate || Os, t2 = Math.floor(1e3 / e);
22180
+ let e = this.hmsTrack.getMediaTrackSettings().frameRate || xs, t2 = Math.floor(1e3 / e);
22180
22181
  if (!this.hmsTrack.enabled || this.hmsTrack.nativeTrack.readyState === "ended") {
22181
22182
  this.pluginsLoopState === "running" && this.resetCanvases(), this.pluginsLoopState = "paused", yield this.reusableWorker.sleep(t2);
22182
22183
  continue;
@@ -22252,7 +22253,7 @@ var yt = class {
22252
22253
  return c2(this, null, function* () {
22253
22254
  if (!this.inputCanvas || !this.inputVideo)
22254
22255
  return;
22255
- let { width: e = vo, height: t2 = Mo } = this.hmsTrack.getMediaTrackSettings();
22256
+ let { width: e = Mo, height: t2 = yo } = this.hmsTrack.getMediaTrackSettings();
22256
22257
  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);
22257
22258
  });
22258
22259
  }
@@ -22311,7 +22312,7 @@ var ni = class {
22311
22312
  return Array.from(this.plugins).map((e) => e.getName());
22312
22313
  }
22313
22314
  };
22314
- var yo = ["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"];
22315
+ var 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"];
22315
22316
  var ci = class {
22316
22317
  constructor() {
22317
22318
  this.eventPerformanceMeasures = {};
@@ -22332,7 +22333,7 @@ var ci = class {
22332
22333
  return (t2 = this.eventPerformanceMeasures[e]) == null ? void 0 : t2.duration;
22333
22334
  }
22334
22335
  getTimes(...e) {
22335
- return [...yo, ...e].reduce((t2, i2) => M2(m({}, t2), { [i2]: this.getTimeTaken(i2) }), {});
22336
+ return [...ko, ...e].reduce((t2, i2) => M2(m({}, t2), { [i2]: this.getTimeTaken(i2) }), {});
22336
22337
  }
22337
22338
  cleanup() {
22338
22339
  this.eventPerformanceMeasures = {};
@@ -22353,7 +22354,6 @@ var ve = class a5 {
22353
22354
  }
22354
22355
  getTracksToPublish() {
22355
22356
  return c2(this, arguments, function* (e = Cr) {
22356
- var T, g2, f2, P7;
22357
22357
  let t2 = this.getAVTrackSettings(e);
22358
22358
  if (!t2)
22359
22359
  return [];
@@ -22361,13 +22361,13 @@ var ve = class a5 {
22361
22361
  if (u2 && p2)
22362
22362
  return [];
22363
22363
  let h2 = { audio: i2 && !n2 && (e.isAudioMuted ? "empty" : true), video: r2 && !o2 && (e.isVideoMuted ? "empty" : true) };
22364
- h2.audio && ((T = this.analyticsTimer) == null || T.start("local_audio_track_time")), h2.video && ((g2 = this.analyticsTimer) == null || g2.start("local_video_track_time"));
22364
+ h2.audio && this.analyticsTimer.start("local_audio_track_time"), h2.video && this.analyticsTimer.start("local_video_track_time");
22365
22365
  try {
22366
22366
  d2.d(this.TAG, "Init Local Tracks", { fetchTrackOptions: h2 }), s2 = yield this.getLocalTracks(h2, t2, l2);
22367
- } catch (k2) {
22368
- s2 = yield this.retryGetLocalTracks(k2, t2, h2, l2);
22367
+ } catch (T) {
22368
+ s2 = yield this.retryGetLocalTracks(T, t2, h2, l2);
22369
22369
  }
22370
- return h2.audio && ((f2 = this.analyticsTimer) == null || f2.end("local_audio_track_time")), h2.video && ((P7 = this.analyticsTimer) == null || P7.end("local_video_track_time")), o2 && r2 && !u2 && s2.push(o2), n2 && i2 && !p2 && s2.push(n2), s2;
22370
+ 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;
22371
22371
  });
22372
22372
  }
22373
22373
  getLocalTracks() {
@@ -22398,8 +22398,8 @@ var ve = class a5 {
22398
22398
  r2.srcObject = e, r2.addEventListener("loadedmetadata", () => c2(this, null, function* () {
22399
22399
  let { videoWidth: l2, videoHeight: u2 } = r2, p2 = i2.screen, h2 = p2.width * p2.height, T = l2 / u2, g2 = p2.width / p2.height;
22400
22400
  if (T > g2) {
22401
- let f2 = t2.video, P7 = T / g2, k2 = Math.sqrt(P7);
22402
- l2 * u2 > h2 ? (f2.width = l2 / k2, f2.height = u2 / k2) : (f2.height = u2 * k2, f2.width = l2 * k2), yield e.getVideoTracks()[0].applyConstraints(f2);
22401
+ let v2 = t2.video, E2 = T / g2, P7 = Math.sqrt(E2);
22402
+ l2 * u2 > h2 ? (v2.width = l2 / P7, v2.height = u2 / P7) : (v2.height = u2 * P7, v2.width = l2 * P7), yield e.getVideoTracks()[0].applyConstraints(v2);
22403
22403
  }
22404
22404
  }));
22405
22405
  });
@@ -22417,8 +22417,8 @@ var ve = class a5 {
22417
22417
  d2.d("retrieving screenshare with ", { config: i2 }, { constraints: s2 }), o2 = yield navigator.mediaDevices.getDisplayMedia(s2), t2 && (yield this.optimizeScreenShareConstraint(o2, s2));
22418
22418
  } catch (g2) {
22419
22419
  d2.w(this.TAG, "error in getting screenshare - ", g2);
22420
- let f2 = Ae(g2, "screen");
22421
- throw this.eventBus.analytics.publish(y2.publish({ error: f2, devices: this.deviceManager.getDevices(), settings: new ze(r2 == null ? void 0 : r2.video, r2 == null ? void 0 : r2.audio, false) })), f2;
22420
+ let v2 = Ae(g2, "screen");
22421
+ 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;
22422
22422
  }
22423
22423
  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());
22424
22424
  p2.setSimulcastDefinitons(this.store.getSimulcastDefinitionsForPeer(this.store.getLocalPeer(), "screen"));
@@ -22426,7 +22426,7 @@ var ve = class a5 {
22426
22426
  let g2 = this.validateCurrentTabCapture(p2, i2.forceCurrentTab);
22427
22427
  p2.isCurrentTab = g2, yield p2.cropTo(i2.cropTarget);
22428
22428
  } catch (g2) {
22429
- throw o2.getTracks().forEach((f2) => f2.stop()), g2;
22429
+ throw o2.getTracks().forEach((v2) => v2.stop()), g2;
22430
22430
  }
22431
22431
  n2.push(p2);
22432
22432
  let h2 = o2.getAudioTracks()[0];
@@ -22439,7 +22439,7 @@ var ve = class a5 {
22439
22439
  }
22440
22440
  setScreenCaptureHandleConfig(e) {
22441
22441
  var t2;
22442
- !((t2 = navigator.mediaDevices) != null && t2.setCaptureHandleConfig) || this.isInIframe() || (e = e || {}, Object.assign(e, { handle: ko(), exposeOrigin: false, permittedOrigins: [window.location.origin] }), d2.d("setting capture handle - ", e.handle), navigator.mediaDevices.setCaptureHandleConfig(e), this.captureHandleIdentifier = e.handle);
22442
+ !((t2 = navigator.mediaDevices) != null && t2.setCaptureHandleConfig) || this.isInIframe() || (e = e || {}, Object.assign(e, { handle: Po(), exposeOrigin: false, permittedOrigins: [window.location.origin] }), d2.d("setting capture handle - ", e.handle), navigator.mediaDevices.setCaptureHandleConfig(e), this.captureHandleIdentifier = e.handle);
22443
22443
  }
22444
22444
  validateCurrentTabCapture(e, t2) {
22445
22445
  let i2 = e.getCaptureHandle(), r2 = !!(this.captureHandleIdentifier && (i2 == null ? void 0 : i2.handle) === this.captureHandleIdentifier);
@@ -22500,16 +22500,16 @@ var ve = class a5 {
22500
22500
  }
22501
22501
  retryGetLocalTracks(e, t2, i2, r2) {
22502
22502
  return c2(this, null, function* () {
22503
- if (e instanceof v2 && e.action === "TRACK") {
22503
+ if (e instanceof f2 && e.action === "TRACK") {
22504
22504
  this.observer.onFailure(e);
22505
- let s2 = e.code === E2.TracksErrors.OVER_CONSTRAINED, o2 = e.message.includes("audio"), n2 = e.message.includes("video");
22505
+ let s2 = e.code === k2.TracksErrors.OVER_CONSTRAINED, o2 = e.message.includes("audio"), n2 = e.message.includes("video");
22506
22506
  if (s2) {
22507
22507
  let l2 = new De().video(new Fe()).audio(new Ve()).build();
22508
22508
  d2.w(this.TAG, "Fetch AV Tracks failed with overconstrained error", { fetchTrackOptions: i2 }, { error: e });
22509
22509
  try {
22510
22510
  return yield this.getLocalTracks(i2, l2, r2);
22511
22511
  } catch (u2) {
22512
- let p2 = u2 instanceof v2 ? u2.nativeError : u2, h2 = u2;
22512
+ let p2 = u2 instanceof f2 ? u2.nativeError : u2, h2 = u2;
22513
22513
  if ((p2 == null ? void 0 : p2.name) === "OverconstrainedError") {
22514
22514
  let T = S2.TracksErrors.GenericTrack("TRACK", "Overconstrained error after dropping all constraints");
22515
22515
  T.addNativeError(p2), h2 = T;
@@ -22588,7 +22588,7 @@ var ve = class a5 {
22588
22588
  return o2;
22589
22589
  }
22590
22590
  };
22591
- function xs(a11, e) {
22591
+ function Us(a11, e) {
22592
22592
  return function(i2) {
22593
22593
  return !(0, import_lodash4.default)(a11[i2], e[i2]);
22594
22594
  };
@@ -22614,7 +22614,7 @@ var F = class a6 extends Ye {
22614
22614
  return new Fe(i3, r3, s3, o3, l2, u2, n3, p2);
22615
22615
  };
22616
22616
  this.handleSettingsChange = (t3) => c2(this, null, function* () {
22617
- let i3 = this.stream, r3 = xs(t3, this.settings);
22617
+ let i3 = this.stream, r3 = Us(t3, this.settings);
22618
22618
  if (r3("maxBitrate") && t3.maxBitrate && (yield i3.setMaxBitrateAndFramerate(this)), r3("width") || r3("height") || r3("advanced"))
22619
22619
  if (this.source === "video") {
22620
22620
  let s3 = yield this.replaceTrackWith(t3);
@@ -22623,7 +22623,7 @@ var F = class a6 extends Ye {
22623
22623
  yield this.nativeTrack.applyConstraints(t3.toConstraints());
22624
22624
  });
22625
22625
  this.handleDeviceChange = (t3, i3 = false) => c2(this, null, function* () {
22626
- if (xs(t3, this.settings)("deviceId") && this.source === "regular") {
22626
+ if (Us(t3, this.settings)("deviceId") && this.source === "regular") {
22627
22627
  if (this.enabled) {
22628
22628
  delete t3.facingMode;
22629
22629
  let o3 = yield this.replaceTrackWith(t3);
@@ -22797,17 +22797,17 @@ var F = class a6 extends Ye {
22797
22797
  var et = "renegotiation-callback-id";
22798
22798
  var li = "ion-sfu";
22799
22799
  var tt = "SUBSCRIBE_ICE_CONNECTION_CALLBACK_ID";
22800
- var Us = "https://event.100ms.live/v2/client/report";
22801
- var Bs = "https://event-nonprod.100ms.live/v2/client/report";
22800
+ var Bs = "https://event.100ms.live/v2/client/report";
22801
+ var Vs = "https://event-nonprod.100ms.live/v2/client/report";
22802
22802
  var kt = Math.pow(2, 31) - 1;
22803
22803
  var 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" };
22804
- var Vs = "2.5";
22805
- var Fs = "20240521";
22804
+ var Fs = "2.5";
22805
+ var Gs = "20240521";
22806
22806
  var Me = "_handraise";
22807
22807
  var Dr = 1e3;
22808
22808
  var wr = 64;
22809
- var Gs = "https://whiteboard.100ms.live";
22810
- var Ws = "https://whiteboard-qa.100ms.live";
22809
+ var Ws = "https://whiteboard.100ms.live";
22810
+ var $s = "https://whiteboard-qa.100ms.live";
22811
22811
  var U2 = class a7 extends Ye {
22812
22812
  constructor(t2, i2, r2) {
22813
22813
  super(t2, i2, r2);
@@ -23024,7 +23024,7 @@ var fe = class extends Je {
23024
23024
  return this.audio;
23025
23025
  }
23026
23026
  };
23027
- var $s = (a11, e, t2, i2) => c2(void 0, null, function* () {
23027
+ var Ks = (a11, e, t2, i2) => c2(void 0, null, function* () {
23028
23028
  var o2;
23029
23029
  let r2, s2 = {};
23030
23030
  if ((o2 = e.transceiver) != null && o2.sender.track) {
@@ -23046,11 +23046,11 @@ var $s = (a11, e, t2, i2) => c2(void 0, null, function* () {
23046
23046
  break;
23047
23047
  }
23048
23048
  }), Object.keys(m({}, l2)).forEach((p2) => {
23049
- var k2, w2;
23050
- let h2 = (k2 = l2[p2]) == null ? void 0 : k2.codecId, T = h2 ? n2[h2] : void 0, g2;
23049
+ var P7, w2;
23050
+ let h2 = (P7 = l2[p2]) == null ? void 0 : P7.codecId, T = h2 ? n2[h2] : void 0, g2;
23051
23051
  T && (g2 = T.substring(T.indexOf("/") + 1));
23052
- let f2 = M2(m({}, l2[p2]), { rid: (w2 = l2[p2]) == null ? void 0 : w2.rid }), P7 = u2[f2.ssrc];
23053
- s2[p2] = M2(m({}, f2), { bitrate: Pt("bytesSent", f2, i2 == null ? void 0 : i2[p2]), packetsLost: P7 == null ? void 0 : P7.packetsLost, jitter: P7 == null ? void 0 : P7.jitter, roundTripTime: P7 == null ? void 0 : P7.roundTripTime, totalRoundTripTime: P7 == null ? void 0 : P7.totalRoundTripTime, peerName: t2, peerID: e.peerId, enabled: e.enabled, codec: g2 });
23052
+ let v2 = M2(m({}, l2[p2]), { rid: (w2 = l2[p2]) == null ? void 0 : w2.rid }), E2 = u2[v2.ssrc];
23053
+ 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 });
23054
23054
  });
23055
23055
  } catch (n2) {
23056
23056
  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);
@@ -23058,7 +23058,7 @@ var $s = (a11, e, t2, i2) => c2(void 0, null, function* () {
23058
23058
  return s2;
23059
23059
  }
23060
23060
  });
23061
- var Ks = (a11, e, t2, i2) => c2(void 0, null, function* () {
23061
+ var qs = (a11, e, t2, i2) => c2(void 0, null, function* () {
23062
23062
  var l2;
23063
23063
  let r2;
23064
23064
  try {
@@ -23066,10 +23066,10 @@ var Ks = (a11, e, t2, i2) => c2(void 0, null, function* () {
23066
23066
  } catch (u2) {
23067
23067
  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);
23068
23068
  }
23069
- let s2 = Eo(r2), o2 = Pt("bytesReceived", s2, i2), n2 = Nr("packetsLost", s2, i2);
23069
+ let s2 = bo(r2), o2 = Pt("bytesReceived", s2, i2), n2 = Nr("packetsLost", s2, i2);
23070
23070
  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 });
23071
23071
  });
23072
- var Eo = (a11) => {
23072
+ var bo = (a11) => {
23073
23073
  let e, t2, i2 = {};
23074
23074
  a11 == null || a11.forEach((o2) => {
23075
23075
  switch (o2.type) {
@@ -23093,10 +23093,10 @@ var Eo = (a11) => {
23093
23093
  return r2 && (s2 = r2.substring(r2.indexOf("/") + 1)), e && Object.assign(e, { remote: t2, codec: s2 });
23094
23094
  };
23095
23095
  var Or = (a11, e, t2) => {
23096
- let i2 = bo(e), r2 = Pt(a11 === "publish" ? "bytesSent" : "bytesReceived", i2, t2 && t2[a11]);
23096
+ let i2 = Ro(e), r2 = Pt(a11 === "publish" ? "bytesSent" : "bytesReceived", i2, t2 && t2[a11]);
23097
23097
  return i2 && Object.assign(i2, { bitrate: r2 });
23098
23098
  };
23099
- var bo = (a11) => {
23099
+ var Ro = (a11) => {
23100
23100
  let e;
23101
23101
  return a11 == null || a11.forEach((t2) => {
23102
23102
  t2.type === "transport" && (e = a11 == null ? void 0 : a11.get(t2.selectedCandidatePairId));
@@ -23104,13 +23104,13 @@ var bo = (a11) => {
23104
23104
  t2.type === "candidate-pair" && t2.selected && (e = t2);
23105
23105
  }), e;
23106
23106
  };
23107
- var qs = (a11) => {
23107
+ var js = (a11) => {
23108
23108
  let e = { packetsLost: 0, jitter: 0 };
23109
23109
  return a11 == null || a11.forEach((t2) => {
23110
23110
  t2.packetsLost && (e.packetsLost += t2.packetsLost), t2.jitter > e.jitter && (e.jitter = t2.jitter);
23111
23111
  }), e;
23112
23112
  };
23113
- var js = (a11, e) => Array.from(new Set(a11.concat(e)));
23113
+ var Js = (a11, e) => Array.from(new Set(a11.concat(e)));
23114
23114
  var Pt = (a11, e, t2) => Nr(a11, e, t2) * 8;
23115
23115
  var Nr = (a11, e, t2) => {
23116
23116
  let i2 = e && e[a11], r2 = t2 ? t2[a11] : null;
@@ -23134,20 +23134,20 @@ var ui = class {
23134
23134
  yield this.updateLocalPeerStats(), yield this.updateLocalTrackStats(), yield this.updateRemoteTrackStats();
23135
23135
  });
23136
23136
  this.updateLocalPeerStats = () => c2(this, null, function* () {
23137
- var p2, h2, T, g2, f2, P7;
23137
+ var p2, h2, T, g2, v2, E2;
23138
23138
  let e2 = this.getLocalPeerStats(), t3;
23139
23139
  try {
23140
23140
  t3 = yield (h2 = (p2 = this.getStats).publish) == null ? void 0 : h2.call(p2);
23141
- } catch (k2) {
23142
- this.eventBus.analytics.publish(y2.rtcStatsFailed(S2.WebrtcErrors.StatsFailed("PUBLISH", k2.message))), d2.w(this.TAG, "Error in getting publish stats", k2);
23141
+ } catch (P7) {
23142
+ this.eventBus.analytics.publish(y2.rtcStatsFailed(S2.WebrtcErrors.StatsFailed("PUBLISH", P7.message))), d2.w(this.TAG, "Error in getting publish stats", P7);
23143
23143
  }
23144
23144
  let i3 = t3 && Or("publish", t3, e2), r3;
23145
23145
  try {
23146
23146
  r3 = yield (g2 = (T = this.getStats).subscribe) == null ? void 0 : g2.call(T);
23147
- } catch (k2) {
23148
- this.eventBus.analytics.publish(y2.rtcStatsFailed(S2.WebrtcErrors.StatsFailed("SUBSCRIBE", k2.message))), d2.w(this.TAG, "Error in getting subscribe stats", k2);
23147
+ } catch (P7) {
23148
+ this.eventBus.analytics.publish(y2.rtcStatsFailed(S2.WebrtcErrors.StatsFailed("SUBSCRIBE", P7.message))), d2.w(this.TAG, "Error in getting subscribe stats", P7);
23149
23149
  }
23150
- let s2 = r3 && Or("subscribe", r3, e2), { packetsLost: o2, jitter: n2 } = qs(r3), l2 = xr(o2, (f2 = e2 == null ? void 0 : e2.subscribe) == null ? void 0 : f2.packetsLost, s2 == null ? void 0 : s2.timestamp, (P7 = e2 == null ? void 0 : e2.subscribe) == null ? void 0 : P7.timestamp), u2 = s2 && Object.assign(s2, { packetsLostRate: l2, jitter: n2, packetsLost: o2 });
23150
+ 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 });
23151
23151
  this.peerStats[this.localPeerID] = { publish: i3, subscribe: u2 };
23152
23152
  });
23153
23153
  this.updateRemoteTrackStats = () => c2(this, null, function* () {
@@ -23157,17 +23157,17 @@ var ui = class {
23157
23157
  t3.includes(r3) || delete this.remoteTrackStats[r3];
23158
23158
  });
23159
23159
  for (let r3 of e2) {
23160
- let s2 = r3.peerId && ((i3 = this.store.getPeerById(r3.peerId)) == null ? void 0 : i3.name), o2 = this.getRemoteTrackStats(r3.trackId), n2 = yield Ks(this.eventBus, r3, s2, o2);
23160
+ 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);
23161
23161
  n2 && (this.remoteTrackStats[r3.trackId] = n2);
23162
23162
  }
23163
23163
  });
23164
23164
  this.updateLocalTrackStats = () => c2(this, null, function* () {
23165
23165
  var i3;
23166
- let e2 = this.store.getLocalPeerTracks().reduce((r3, s2) => (r3[s2.getTrackIDBeingSent()] = s2, r3), {}), t3 = js(Object.keys(this.localTrackStats), Object.keys(e2));
23166
+ let e2 = this.store.getLocalPeerTracks().reduce((r3, s2) => (r3[s2.getTrackIDBeingSent()] = s2, r3), {}), t3 = Js(Object.keys(this.localTrackStats), Object.keys(e2));
23167
23167
  for (let r3 of t3) {
23168
23168
  let s2 = e2[r3];
23169
23169
  if (s2) {
23170
- let o2 = (i3 = this.store.getLocalPeer()) == null ? void 0 : i3.name, n2 = yield $s(this.eventBus, s2, o2, this.localTrackStats[r3]);
23170
+ let o2 = (i3 = this.store.getLocalPeer()) == null ? void 0 : i3.name, n2 = yield Ks(this.eventBus, s2, o2, this.localTrackStats[r3]);
23171
23171
  n2 && (this.localTrackStats[r3] = n2);
23172
23172
  } else
23173
23173
  delete this.localTrackStats[r3];
@@ -23274,7 +23274,7 @@ var it = class {
23274
23274
  };
23275
23275
  var rt = class {
23276
23276
  };
23277
- rt.makePeerId = () => Ro();
23277
+ rt.makePeerId = () => Io();
23278
23278
  var We = class extends it {
23279
23279
  constructor(t2) {
23280
23280
  super(M2(m({}, t2), { peerId: rt.makePeerId(), isLocal: true }));
@@ -23374,7 +23374,7 @@ var st = class {
23374
23374
  });
23375
23375
  }
23376
23376
  };
23377
- var we = class extends Io {
23377
+ var we = class extends Ao {
23378
23378
  on(e, t2) {
23379
23379
  return super.on(e, t2);
23380
23380
  }
@@ -23736,34 +23736,34 @@ var bt = class extends we {
23736
23736
  }
23737
23737
  };
23738
23738
  var B2 = (a11) => a11.room;
23739
- var Ao = (a11) => a11.errors;
23740
- var Wh = createSelector(Ao, (a11) => a11.length === 0 ? null : a11.at(-1));
23741
- var $h = createSelector(B2, (a11) => a11.id);
23739
+ var Ho = (a11) => a11.errors;
23740
+ var Kh = createSelector(Ho, (a11) => a11.length === 0 ? null : a11.at(-1));
23741
+ var qh = createSelector(B2, (a11) => a11.id);
23742
23742
  var K = (a11) => a11.peers;
23743
23743
  var Ti = (a11) => a11.messages.byID;
23744
- var Js = (a11) => a11.messages.allIDs;
23744
+ var Qs = (a11) => a11.messages.allIDs;
23745
23745
  var N2 = (a11) => a11.tracks;
23746
- var Qs = (a11) => a11.settings;
23746
+ var zs = (a11) => a11.settings;
23747
23747
  var Ur = (a11) => a11.appData;
23748
- var Ho = (a11) => a11.speakers;
23748
+ var Co = (a11) => a11.speakers;
23749
23749
  var _e = createSelector([B2], (a11) => a11 && a11.isConnected);
23750
- var jh = 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));
23751
- var Co = (a11) => a11.hideLocalPeer;
23752
- var me = createSelector([B2, K, Co], (a11, e, t2) => t2 ? a11.peers.filter((i2) => a11.localPeer !== i2).map((i2) => e[i2]) : a11.peers.map((i2) => e[i2]));
23753
- var Lo = createSelector(N2, (a11) => Object.values(a11));
23750
+ var 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));
23751
+ var Lo = (a11) => a11.hideLocalPeer;
23752
+ var 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]));
23753
+ var Do = createSelector(N2, (a11) => Object.values(a11));
23754
23754
  var te = createSelector(B2, K, (a11, e) => e[a11.localPeer]);
23755
23755
  var ye = createSelector(B2, (a11) => a11.localPeer);
23756
- var Jh = createSelector(te, (a11) => a11 == null ? void 0 : a11.name);
23757
- var Qh = createSelector(te, (a11) => a11 == null ? void 0 : a11.roleName);
23756
+ var zh = createSelector(te, (a11) => a11 == null ? void 0 : a11.name);
23757
+ var Yh = createSelector(te, (a11) => a11 == null ? void 0 : a11.roleName);
23758
23758
  var ae = createSelector(te, (a11) => a11 == null ? void 0 : a11.audioTrack);
23759
23759
  var Y2 = createSelector(te, (a11) => a11 == null ? void 0 : a11.videoTrack);
23760
- var Do = createSelector(te, (a11) => a11 == null ? void 0 : a11.auxiliaryTracks);
23761
- var zs = createSelector([ae, Y2, Do], (a11, e, t2) => {
23760
+ var wo = createSelector(te, (a11) => a11 == null ? void 0 : a11.auxiliaryTracks);
23761
+ var Ys = createSelector([ae, Y2, wo], (a11, e, t2) => {
23762
23762
  let i2 = t2 ? [...t2] : [];
23763
23763
  return a11 && i2.unshift(a11), e && i2.unshift(e), i2;
23764
23764
  });
23765
- var zh = createSelector(me, (a11) => a11.filter((e) => !e.isLocal));
23766
- var Yh = createSelector(K, Ho, (a11, e) => {
23765
+ var Xh = createSelector(me, (a11) => a11.filter((e) => !e.isLocal));
23766
+ var Zh = createSelector(K, Co, (a11, e) => {
23767
23767
  let t2 = Object.entries(e).sort((i2, r2) => {
23768
23768
  var n2, l2;
23769
23769
  let s2 = ((n2 = i2[1]) == null ? void 0 : n2.audioLevel) || 0;
@@ -23780,7 +23780,7 @@ var Br = (a11) => {
23780
23780
  let e = te(a11);
23781
23781
  return je(a11, e == null ? void 0 : e.videoTrack);
23782
23782
  };
23783
- var Ys = (a11) => {
23783
+ var Xs = (a11) => {
23784
23784
  let e = te(a11);
23785
23785
  return ns(a11, e == null ? void 0 : e.videoTrack);
23786
23786
  };
@@ -23788,7 +23788,7 @@ var Vr = createSelector(te, N2, (a11, e) => {
23788
23788
  let { video: t2, audio: i2 } = xe(e, a11);
23789
23789
  return !!(t2 || i2);
23790
23790
  });
23791
- var wo = createSelector(K, N2, (a11, e) => {
23791
+ var _o = createSelector(K, N2, (a11, e) => {
23792
23792
  let t2;
23793
23793
  for (let i2 in a11) {
23794
23794
  let r2 = a11[i2], { video: s2, audio: o2 } = xe(e, r2);
@@ -23798,15 +23798,15 @@ var wo = createSelector(K, N2, (a11, e) => {
23798
23798
  }
23799
23799
  return t2;
23800
23800
  });
23801
- var Zh = createSelector(wo, (a11) => !!a11);
23802
- var em = createSelector(K, N2, (a11, e) => {
23801
+ var tm = createSelector(_o, (a11) => !!a11);
23802
+ var im = createSelector(K, N2, (a11, e) => {
23803
23803
  for (let t2 in a11) {
23804
23804
  let i2 = a11[t2], { audio: r2, video: s2 } = xe(e, i2);
23805
23805
  if (!s2 && r2)
23806
23806
  return i2;
23807
23807
  }
23808
23808
  });
23809
- var tm = createSelector(K, N2, (a11, e) => {
23809
+ var rm = createSelector(K, N2, (a11, e) => {
23810
23810
  let t2 = [], i2 = [];
23811
23811
  for (let r2 in a11) {
23812
23812
  let s2 = a11[r2], { video: o2, audio: n2 } = xe(e, s2);
@@ -23814,77 +23814,77 @@ var tm = createSelector(K, N2, (a11, e) => {
23814
23814
  }
23815
23815
  return t2.concat(i2);
23816
23816
  });
23817
- var im = createSelector(K, N2, (a11, e) => {
23817
+ var sm = createSelector(K, N2, (a11, e) => {
23818
23818
  for (let t2 in e) {
23819
23819
  let i2 = e[t2];
23820
23820
  if (ht(i2) && pt(i2) && i2.peerId)
23821
23821
  return a11[i2.peerId];
23822
23822
  }
23823
23823
  });
23824
- var rm = createSelector(K, N2, (a11, e) => {
23824
+ var am = createSelector(K, N2, (a11, e) => {
23825
23825
  for (let t2 in e) {
23826
23826
  let i2 = e[t2];
23827
23827
  if (ii(i2) && i2.peerId)
23828
23828
  return a11[i2.peerId];
23829
23829
  }
23830
23830
  });
23831
- var sm = createSelector(Lo, (a11) => a11.filter(os));
23832
- var am = createSelector(Js, (a11) => a11.length);
23833
- var om = createSelector(Ti, (a11) => Object.values(a11).filter((e) => !e.read).length);
23834
- var Rt = createSelector(Js, Ti, (a11, e) => {
23831
+ var om = createSelector(Do, (a11) => a11.filter(os));
23832
+ var nm = createSelector(Qs, (a11) => a11.length);
23833
+ var cm = createSelector(Ti, (a11) => Object.values(a11).filter((e) => !e.read).length);
23834
+ var Rt = createSelector(Qs, Ti, (a11, e) => {
23835
23835
  let t2 = [];
23836
23836
  return a11.forEach((i2) => {
23837
23837
  t2.push(e[i2]);
23838
23838
  }), t2;
23839
23839
  });
23840
- var _o = createSelector(Rt, (a11) => a11.filter((e) => {
23840
+ var No = createSelector(Rt, (a11) => a11.filter((e) => {
23841
23841
  var t2;
23842
23842
  return !e.recipientPeer && !(e.recipientRoles && ((t2 = e.recipientRoles) == null ? void 0 : t2.length) > 0);
23843
23843
  }));
23844
- var nm = createSelector(_o, (a11) => a11.filter((e) => !e.read).length);
23844
+ var dm = createSelector(No, (a11) => a11.filter((e) => !e.read).length);
23845
23845
  var ie = createSelector([B2], (a11) => a11 && a11.roomState);
23846
- var Xs = createSelector(ie, (a11) => a11 === "Preview");
23847
- var cm = createSelector(B2, (a11) => a11.roomState !== "Disconnected");
23848
- var dm = createSelector(B2, (a11) => !a11.transcriptions || a11.transcriptions.length <= 0 ? false : a11.transcriptions.some((e) => e.mode === "caption" && e.state === "started"));
23846
+ var Zs = createSelector(ie, (a11) => a11 === "Preview");
23847
+ var lm = createSelector(B2, (a11) => a11.roomState !== "Disconnected");
23848
+ var um = createSelector(B2, (a11) => !a11.transcriptions || a11.transcriptions.length <= 0 ? false : a11.transcriptions.some((e) => e.mode === "caption" && e.state === "started"));
23849
23849
  var Se = (a11) => a11.roles;
23850
- var lm = createSelector([Se], (a11) => Object.keys(a11));
23850
+ var pm = createSelector([Se], (a11) => Object.keys(a11));
23851
23851
  var at = createSelector([te, Se], (a11, e) => a11 != null && a11.roleName ? e[a11.roleName] : null);
23852
- var No = (a11) => {
23852
+ var Oo = (a11) => {
23853
23853
  var e;
23854
23854
  return (e = a11.preview) == null ? void 0 : e.asRole;
23855
23855
  };
23856
- var Zs = createSelector([No, Se], (a11, e) => a11 ? e[a11] : null);
23857
- var um = createSelector([at], (a11) => {
23856
+ var ea = createSelector([Oo, Se], (a11, e) => a11 ? e[a11] : null);
23857
+ var hm = createSelector([at], (a11) => {
23858
23858
  var e;
23859
23859
  return (e = a11 == null ? void 0 : a11.subscribeParams) != null && e.subscribeToRoles ? a11.subscribeParams.subscribeToRoles.length > 0 : false;
23860
23860
  });
23861
- var ea = createSelector(at, (a11) => a11 == null ? void 0 : a11.permissions);
23862
- var pm = createSelector(B2, (a11) => a11.recording);
23863
- var hm = createSelector(B2, (a11) => a11.rtmp);
23864
- var mm = createSelector(B2, (a11) => a11.hls);
23865
- var Sm = createSelector(B2, (a11) => a11.transcriptions);
23866
- var gm = createSelector(B2, (a11) => a11.sessionId);
23867
- var Tm = createSelector(B2, (a11) => a11.startedAt);
23868
- var fm = createSelector(B2, (a11) => !!a11.isLargeRoom);
23869
- var vm = createSelector(B2, (a11) => !!a11.isEffectsEnabled);
23870
- var Mm = createSelector(B2, (a11) => a11.effectsKey);
23871
- var ta = (a11) => a11.polls;
23872
- var Em = createSelector(me, (a11) => a11.filter((e) => e.isHandRaised));
23873
- var Oo = (a11) => a11.whiteboards;
23874
- var bm = createSelector(Oo, (a11) => Object.values(a11)[0]);
23875
- var ra = (a11 = "audio") => (e) => e.playlist[a11].list;
23861
+ var ta = createSelector(at, (a11) => a11 == null ? void 0 : a11.permissions);
23862
+ var mm = createSelector(B2, (a11) => a11.recording);
23863
+ var Sm = createSelector(B2, (a11) => a11.rtmp);
23864
+ var gm = createSelector(B2, (a11) => a11.hls);
23865
+ var Tm = createSelector(B2, (a11) => a11.transcriptions);
23866
+ var fm = createSelector(B2, (a11) => a11.sessionId);
23867
+ var vm = createSelector(B2, (a11) => a11.startedAt);
23868
+ var Mm = createSelector(B2, (a11) => !!a11.isLargeRoom);
23869
+ var ym = createSelector(B2, (a11) => !!a11.isEffectsEnabled);
23870
+ var km = createSelector(B2, (a11) => a11.effectsKey);
23871
+ var ia = (a11) => a11.polls;
23872
+ var Rm = createSelector(me, (a11) => a11.filter((e) => e.isHandRaised));
23873
+ var xo = (a11) => a11.whiteboards;
23874
+ var Im = createSelector(xo, (a11) => Object.values(a11)[0]);
23875
+ var sa = (a11 = "audio") => (e) => e.playlist[a11].list;
23876
23876
  var Fr = (a11 = "audio") => (e) => e.playlist[a11].selection;
23877
- var sa = (a11 = "audio") => (e) => e.playlist[a11].progress;
23878
- var aa = (a11 = "audio") => (e) => e.playlist[a11].currentTime;
23879
- var oa = (a11 = "audio") => (e) => e.playlist[a11].playbackRate;
23880
- var na = (a11 = "audio") => (e) => e.playlist[a11].volume;
23881
- var ca = (a11 = "audio") => createSelector(ra(a11), (e) => Object.values(e));
23882
- var da = (a11 = "audio") => createSelector(ra(a11), Fr(a11), (e, t2) => {
23877
+ var aa = (a11 = "audio") => (e) => e.playlist[a11].progress;
23878
+ var oa = (a11 = "audio") => (e) => e.playlist[a11].currentTime;
23879
+ var na = (a11 = "audio") => (e) => e.playlist[a11].playbackRate;
23880
+ var ca = (a11 = "audio") => (e) => e.playlist[a11].volume;
23881
+ var da = (a11 = "audio") => createSelector(sa(a11), (e) => Object.values(e));
23882
+ var la = (a11 = "audio") => createSelector(sa(a11), Fr(a11), (e, t2) => {
23883
23883
  if (t2.id)
23884
23884
  return e[t2.id];
23885
23885
  });
23886
- var la = { selection: Fr("audio"), progress: sa("audio"), currentTime: aa("audio"), playbackRate: oa("audio"), volume: na("audio"), list: ca("audio"), selectedItem: da("audio") };
23887
- var ua = { selection: Fr("video"), progress: sa("video"), currentTime: aa("video"), playbackRate: oa("video"), volume: na("video"), list: ca("video"), selectedItem: da("video") };
23886
+ var ua = { selection: Fr("audio"), progress: aa("audio"), currentTime: oa("audio"), playbackRate: na("audio"), volume: ca("audio"), list: da("audio"), selectedItem: la("audio") };
23887
+ var pa = { selection: Fr("video"), progress: aa("video"), currentTime: oa("video"), playbackRate: na("video"), volume: ca("video"), list: da("video"), selectedItem: la("video") };
23888
23888
  function A2(a11) {
23889
23889
  return (e) => (t2) => a11(t2, e);
23890
23890
  }
@@ -23957,130 +23957,130 @@ var b2 = class {
23957
23957
  b2.level = 0;
23958
23958
  var Gr = (a11, e) => e;
23959
23959
  var At = (a11, e) => e;
23960
- var pa = (a11, e) => e;
23961
- var xo = (a11, e) => e;
23960
+ var ha = (a11, e) => e;
23962
23961
  var Uo = (a11, e) => e;
23962
+ var Bo = (a11, e) => e;
23963
23963
  var q2 = createSelector([K, Gr], (a11, e) => e ? a11[e] : null);
23964
23964
  var Wr = createSelector([N2, At], (a11, e) => e ? a11[e] : null);
23965
- var Bo = createSelector([N2, At], (a11, e) => {
23965
+ var Vo = createSelector([N2, At], (a11, e) => {
23966
23966
  if (!e)
23967
23967
  return null;
23968
23968
  let t2 = a11[e];
23969
23969
  return (t2 == null ? void 0 : t2.type) === "video" ? t2 : null;
23970
23970
  });
23971
- var Vo = createSelector([N2, At], (a11, e) => {
23971
+ var Fo = createSelector([N2, At], (a11, e) => {
23972
23972
  if (!e)
23973
23973
  return null;
23974
23974
  let t2 = a11[e];
23975
23975
  return (t2 == null ? void 0 : t2.type) === "audio" ? t2 : null;
23976
23976
  });
23977
- var Fo = createSelector([N2, At], (a11, e) => {
23977
+ var Go = createSelector([N2, At], (a11, e) => {
23978
23978
  if (!e)
23979
23979
  return null;
23980
23980
  let t2 = a11[e];
23981
23981
  return (t2 == null ? void 0 : t2.type) === "audio" && (t2 == null ? void 0 : t2.source) === "screen" ? t2 : null;
23982
23982
  });
23983
- var Go = createSelector([N2, At], (a11, e) => {
23983
+ var Wo = createSelector([N2, At], (a11, e) => {
23984
23984
  if (!e)
23985
23985
  return null;
23986
23986
  let t2 = a11[e];
23987
23987
  return (t2 == null ? void 0 : t2.type) === "video" && (t2 == null ? void 0 : t2.source) === "screen" ? t2 : null;
23988
23988
  });
23989
- var Wo = createSelector([ta, Uo], (a11, e) => e ? a11[e] : null);
23989
+ var $o = createSelector([ia, Bo], (a11, e) => e ? a11[e] : null);
23990
23990
  var X2 = A2(q2);
23991
- var Om = A2(createSelector([Ur, xo], (a11, e) => {
23991
+ var Um = A2(createSelector([Ur, Uo], (a11, e) => {
23992
23992
  if (a11)
23993
23993
  return e ? a11[e] : a11;
23994
23994
  }));
23995
- function xm(a11) {
23995
+ function Bm(a11) {
23996
23996
  return (e) => {
23997
23997
  if (e.sessionStore)
23998
23998
  return a11 ? e.sessionStore[a11] : e.sessionStore;
23999
23999
  };
24000
24000
  }
24001
- var Bm = A2(createSelector(q2, (a11) => a11 == null ? void 0 : a11.name));
24002
- var Vm = A2(createSelector(q2, (a11) => a11 == null ? void 0 : a11.type));
24001
+ var Fm = A2(createSelector(q2, (a11) => a11 == null ? void 0 : a11.name));
24002
+ var Gm = A2(createSelector(q2, (a11) => a11 == null ? void 0 : a11.type));
24003
24003
  var fi = A2(Wr);
24004
- var ha = A2(Bo);
24005
- var Fm = A2(Vo);
24006
- var Gm = A2(Fo);
24007
- var Wm = A2(Go);
24008
- var $o = A2((a11, e) => {
24004
+ var ma = A2(Vo);
24005
+ var Wm = A2(Fo);
24006
+ var $m = A2(Go);
24007
+ var Km = A2(Wo);
24008
+ var Ko = A2((a11, e) => {
24009
24009
  let t2 = q2(a11, e);
24010
24010
  if (t2 && t2.videoTrack && t2.videoTrack !== "")
24011
24011
  return a11.tracks[t2.videoTrack];
24012
24012
  });
24013
- var Ko = A2((a11, e) => {
24013
+ var qo = A2((a11, e) => {
24014
24014
  let t2 = q2(a11, e);
24015
24015
  if (t2 && t2.audioTrack && t2.audioTrack !== "")
24016
24016
  return a11.tracks[t2.audioTrack];
24017
24017
  });
24018
- var Km = A2((a11, e) => {
24018
+ var jm = A2((a11, e) => {
24019
24019
  let t2 = q2(a11, e);
24020
24020
  return (t2 == null ? void 0 : t2.auxiliaryTracks.map((i2) => a11.tracks[i2])) || [];
24021
24021
  });
24022
- var ma = (a11, e) => e ? a11.speakers[e] : null;
24023
- var qm = A2(createSelector(ma, (a11) => (a11 == null ? void 0 : a11.audioLevel) || 0));
24024
- var qo = (a11, e) => {
24025
- let t2 = Ko(e)(a11);
24026
- return ma(a11, t2 == null ? void 0 : t2.id);
24027
- };
24028
- var jm = A2(createSelector(qo, (a11) => (a11 == null ? void 0 : a11.audioLevel) || 0));
24029
- var Jm = A2((a11, e) => {
24022
+ var Sa = (a11, e) => e ? a11.speakers[e] : null;
24023
+ var Jm = A2(createSelector(Sa, (a11) => (a11 == null ? void 0 : a11.audioLevel) || 0));
24024
+ var jo = (a11, e) => {
24025
+ let t2 = qo(e)(a11);
24026
+ return Sa(a11, t2 == null ? void 0 : t2.id);
24027
+ };
24028
+ var Qm = A2(createSelector(jo, (a11) => (a11 == null ? void 0 : a11.audioLevel) || 0));
24029
+ var zm = A2((a11, e) => {
24030
24030
  if (e)
24031
24031
  return a11.connectionQualities[e];
24032
24032
  });
24033
- var Qm = A2((a11, e) => {
24033
+ var Ym = A2((a11, e) => {
24034
24034
  let t2 = q2(a11, e);
24035
24035
  if (t2) {
24036
24036
  let i2 = t2 == null ? void 0 : t2.auxiliaryTracks.find((r2) => ut(a11.tracks[r2]));
24037
24037
  return i2 ? a11.tracks[i2] : void 0;
24038
24038
  }
24039
24039
  });
24040
- var zm = A2(createSelector(N2, q2, (a11, e) => {
24040
+ var Xm = A2(createSelector(N2, q2, (a11, e) => {
24041
24041
  let t2 = e == null ? void 0 : e.auxiliaryTracks.find((i2) => {
24042
24042
  let r2 = a11[i2];
24043
24043
  return ht(r2) && pt(r2);
24044
24044
  });
24045
24045
  return t2 ? a11[t2] : void 0;
24046
24046
  }));
24047
- var Ym = A2(createSelector(N2, q2, (a11, e) => {
24047
+ var Zm = A2(createSelector(N2, q2, (a11, e) => {
24048
24048
  let t2 = e == null ? void 0 : e.auxiliaryTracks.find((i2) => {
24049
24049
  let r2 = a11[i2];
24050
24050
  return ht(r2) && ut(r2);
24051
24051
  });
24052
24052
  return t2 ? a11[t2] : void 0;
24053
24053
  }));
24054
- var Xm = A2(createSelector(N2, q2, (a11, e) => {
24054
+ var eS = A2(createSelector(N2, q2, (a11, e) => {
24055
24055
  let t2 = e == null ? void 0 : e.auxiliaryTracks.find((i2) => {
24056
24056
  let r2 = a11[i2];
24057
24057
  return ii(r2) && ut(r2);
24058
24058
  });
24059
24059
  return t2 ? a11[t2] : void 0;
24060
24060
  }));
24061
- var Sa = A2(createSelector(N2, q2, (a11, e) => xe(a11, e)));
24062
- var ga = (a11) => createSelector(Sa(a11), (e) => e.audio);
24063
- var eS = A2((a11, e) => {
24061
+ var ga = A2(createSelector(N2, q2, (a11, e) => xe(a11, e)));
24062
+ var Ta = (a11) => createSelector(ga(a11), (e) => e.audio);
24063
+ var iS = A2((a11, e) => {
24064
24064
  let t2 = q2(a11, e);
24065
24065
  return je(a11, t2 == null ? void 0 : t2.audioTrack);
24066
24066
  });
24067
- var tS = A2((a11, e) => {
24067
+ var rS = A2((a11, e) => {
24068
24068
  let t2 = q2(a11, e);
24069
24069
  return je(a11, t2 == null ? void 0 : t2.videoTrack);
24070
24070
  });
24071
- var Ta = A2((a11, e) => {
24071
+ var fa = A2((a11, e) => {
24072
24072
  if (e && a11.tracks[e])
24073
24073
  return a11.tracks[e].volume === 0;
24074
24074
  });
24075
- var iS = A2((a11, e) => {
24075
+ var sS = A2((a11, e) => {
24076
24076
  let t2 = q2(a11, e);
24077
- return Ta(t2 == null ? void 0 : t2.audioTrack)(a11);
24077
+ return fa(t2 == null ? void 0 : t2.audioTrack)(a11);
24078
24078
  });
24079
- var rS = A2((a11, e) => {
24080
- let t2 = ga(e)(a11);
24081
- return Ta(t2 == null ? void 0 : t2.id)(a11);
24079
+ var aS = A2((a11, e) => {
24080
+ let t2 = Ta(e)(a11);
24081
+ return fa(t2 == null ? void 0 : t2.id)(a11);
24082
24082
  });
24083
- var fa = A2((a11, e) => {
24083
+ var va = A2((a11, e) => {
24084
24084
  let t2 = Wr(a11, e);
24085
24085
  if (t2) {
24086
24086
  if (t2.type !== "audio") {
@@ -24090,15 +24090,15 @@ var fa = A2((a11, e) => {
24090
24090
  return t2.volume;
24091
24091
  }
24092
24092
  });
24093
- var sS = A2((a11, e) => {
24093
+ var oS = A2((a11, e) => {
24094
24094
  let t2 = q2(a11, e);
24095
- return fa(t2 == null ? void 0 : t2.audioTrack)(a11);
24095
+ return va(t2 == null ? void 0 : t2.audioTrack)(a11);
24096
24096
  });
24097
- var aS = A2((a11, e) => {
24098
- let t2 = ga(e)(a11);
24099
- return fa(t2 == null ? void 0 : t2.id)(a11);
24097
+ var nS = A2((a11, e) => {
24098
+ let t2 = Ta(e)(a11);
24099
+ return va(t2 == null ? void 0 : t2.id)(a11);
24100
24100
  });
24101
- var oS = A2((a11, e) => {
24101
+ var cS = A2((a11, e) => {
24102
24102
  let t2 = Wr(a11, e);
24103
24103
  if (t2) {
24104
24104
  if (t2.type !== "video") {
@@ -24108,52 +24108,52 @@ var oS = A2((a11, e) => {
24108
24108
  return t2.layer;
24109
24109
  }
24110
24110
  });
24111
- var va = createSelector([Rt, ye, Gr], (a11, e, t2) => {
24111
+ var Ma = createSelector([Rt, ye, Gr], (a11, e, t2) => {
24112
24112
  if (t2)
24113
24113
  return a11.filter((i2) => {
24114
24114
  var r2;
24115
24115
  return !i2.recipientPeer && !((r2 = i2.recipientRoles) != null && r2.length) || i2.sender && ![e, t2].includes(i2.sender) ? false : [e, t2].includes(i2.recipientPeer);
24116
24116
  });
24117
24117
  });
24118
- var Ma = createSelector([Rt, pa], (a11, e) => {
24118
+ var ya = createSelector([Rt, ha], (a11, e) => {
24119
24119
  if (e)
24120
24120
  return a11.filter((t2) => {
24121
24121
  var i2, r2;
24122
24122
  return (i2 = t2.recipientRoles) != null && i2.length ? (r2 = t2.recipientRoles) == null ? void 0 : r2.includes(e) : false;
24123
24123
  });
24124
24124
  });
24125
- var jo = createSelector(Rt, (a11) => a11.filter((e) => {
24125
+ var Jo = createSelector(Rt, (a11) => a11.filter((e) => {
24126
24126
  var t2;
24127
24127
  return !e.recipientPeer && !((t2 = e.recipientRoles) != null && t2.length);
24128
24128
  }));
24129
- var Jo = createSelector([Ma, pa], (a11) => a11 ? a11.filter((e) => !e.read).length : 0);
24130
- var Qo = createSelector([va, Gr], (a11) => a11 ? a11.filter((e) => !e.read).length : 0);
24131
- var nS = createSelector(jo, (a11) => a11.filter((e) => !e.read).length);
24132
- var cS = A2(va);
24133
- var dS = A2(Ma);
24134
- var lS = A2(Jo);
24135
- var uS = A2(Qo);
24136
- var ya = A2(Wo);
24137
- var PS = createSelector([K, N2], (a11, e) => Object.values(a11).map((i2) => {
24129
+ var Qo = createSelector([ya, ha], (a11) => a11 ? a11.filter((e) => !e.read).length : 0);
24130
+ var zo = createSelector([Ma, Gr], (a11) => a11 ? a11.filter((e) => !e.read).length : 0);
24131
+ var dS = createSelector(Jo, (a11) => a11.filter((e) => !e.read).length);
24132
+ var lS = A2(Ma);
24133
+ var uS = A2(ya);
24134
+ var pS = A2(Qo);
24135
+ var hS = A2(zo);
24136
+ var ka = A2($o);
24137
+ var bS = createSelector([K, N2], (a11, e) => Object.values(a11).map((i2) => {
24138
24138
  var r2;
24139
24139
  return { peer: i2, isAudioEnabled: i2.audioTrack ? (r2 = e[i2.audioTrack]) == null ? void 0 : r2.enabled : false };
24140
24140
  }));
24141
- var zo = (a11) => a11.roleChangeRequests[0] || null;
24142
- var ES = createSelector([zo, K, Se], (a11, e, t2) => a11 ? { requestedBy: a11.requestedBy ? e[a11.requestedBy] : void 0, role: t2[a11.roleName], token: a11.token } : null);
24143
- var bS = createSelector([at], (a11) => mt(a11));
24144
- var RS = createSelector([Zs], (a11) => mt(a11));
24145
- var Xo = createSelector([Y2, N2], (a11, e) => {
24141
+ var Yo = (a11) => a11.roleChangeRequests[0] || null;
24142
+ var 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);
24143
+ var IS = createSelector([at], (a11) => mt(a11));
24144
+ var AS = createSelector([ea], (a11) => mt(a11));
24145
+ var Zo = createSelector([Y2, N2], (a11, e) => {
24146
24146
  let t2 = null;
24147
24147
  return a11 && (t2 = e[a11]), (t2 == null ? void 0 : t2.plugins) || [];
24148
24148
  });
24149
- var Zo = createSelector([ae, N2], (a11, e) => {
24149
+ var en2 = createSelector([ae, N2], (a11, e) => {
24150
24150
  let t2 = null;
24151
24151
  return a11 && (t2 = e[a11]), (t2 == null ? void 0 : t2.plugins) || [];
24152
24152
  });
24153
24153
  var Mi = { 0: "PEER_JOINED", 1: "PEER_LEFT", 8: "ROLE_UPDATED", 10: "NAME_UPDATED", 11: "METADATA_UPDATED", 12: "HAND_RAISE_CHANGED" };
24154
24154
  var Ht = { 0: "TRACK_ADDED", 1: "TRACK_REMOVED", 2: "TRACK_MUTED", 3: "TRACK_UNMUTED", 5: "TRACK_DEGRADED", 6: "TRACK_RESTORED", 4: "TRACK_DESCRIPTION_CHANGED" };
24155
24155
  var yi = { 0: "POLL_CREATED", 1: "POLL_STARTED", 2: "POLL_STOPPED", 4: "POLL_VOTES_UPDATED", 3: "POLLS_LIST" };
24156
- var ka = { TRANSCRIPTION_STATE_UPDATED: "TRANSCRIPTION_STATE_UPDATED" };
24156
+ var Pa = { TRANSCRIPTION_STATE_UPDATED: "TRANSCRIPTION_STATE_UPDATED" };
24157
24157
  var $r = "hmsNotification";
24158
24158
  var ki = class {
24159
24159
  constructor(e) {
@@ -24171,7 +24171,7 @@ var ki = class {
24171
24171
  this.eventEmitter.removeListener($r, i2);
24172
24172
  };
24173
24173
  };
24174
- this.store = e, this.eventEmitter = new en2({ maxListeners: Object.keys(gr).length });
24174
+ this.store = e, this.eventEmitter = new tn2({ maxListeners: Object.keys(gr).length });
24175
24175
  }
24176
24176
  sendPlaylistTrackEnded(e) {
24177
24177
  let t2 = this.createNotification("PLAYLIST_TRACK_ENDED", e, "info");
@@ -24232,14 +24232,14 @@ var ki = class {
24232
24232
  this.emitEvent(t2);
24233
24233
  }
24234
24234
  sendPollUpdate(e, t2) {
24235
- let i2 = yi[e], r2 = this.store.getState(ya(t2));
24235
+ let i2 = yi[e], r2 = this.store.getState(ka(t2));
24236
24236
  if (i2) {
24237
24237
  let s2 = this.createNotification(i2, r2, "info");
24238
24238
  this.emitEvent(s2);
24239
24239
  }
24240
24240
  }
24241
24241
  sendTranscriptionUpdate(e) {
24242
- let t2 = this.createNotification(ka.TRANSCRIPTION_STATE_UPDATED, e, "info");
24242
+ let t2 = this.createNotification(Pa.TRANSCRIPTION_STATE_UPDATED, e, "info");
24243
24243
  this.emitEvent(t2);
24244
24244
  }
24245
24245
  emitEvent(e) {
@@ -24276,24 +24276,24 @@ var Pi = class {
24276
24276
  delete this.queuedUpdates[e], window && this.timers[e] && (window.clearTimeout(this.timers[e]), delete this.timers[e]);
24277
24277
  }
24278
24278
  };
24279
- function Pa(a11) {
24279
+ function Ea(a11) {
24280
24280
  return a11 instanceof se || a11 instanceof U2;
24281
24281
  }
24282
- var Ea = (a11, e) => {
24282
+ var ba = (a11, e) => {
24283
24283
  let t2 = Ct(Object.keys(a11), Object.keys(e));
24284
24284
  for (let i2 of t2) {
24285
24285
  let r2 = a11[i2], s2 = e[i2];
24286
24286
  $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);
24287
24287
  }
24288
24288
  };
24289
- var ba = (a11, e) => {
24289
+ var Ra = (a11, e) => {
24290
24290
  let t2 = Ct(Object.keys(a11), Object.keys(e));
24291
24291
  for (let i2 of t2) {
24292
24292
  let r2 = a11[i2], s2 = e[i2];
24293
24293
  $e(r2, s2) ? (qr(r2, s2), Object.assign(r2, s2)) : jr(r2, s2) ? delete a11[i2] : Ei(r2, s2) && (a11[i2] = s2);
24294
24294
  }
24295
24295
  };
24296
- var Ra = (a11, e) => {
24296
+ var Ia = (a11, e) => {
24297
24297
  let t2 = Ct(Object.keys(a11), Object.keys(e));
24298
24298
  for (let i2 of t2) {
24299
24299
  let r2 = a11[i2], s2 = e[i2];
@@ -24307,7 +24307,7 @@ var Kr = (a11, e) => {
24307
24307
  $e(r2, s2) ? Object.assign(r2, s2) : jr(r2, s2) ? delete a11[i2] : Ei(r2, s2) && (a11[i2] = s2);
24308
24308
  }
24309
24309
  };
24310
- var Ia = (a11, e, t2) => {
24310
+ var Aa = (a11, e, t2) => {
24311
24311
  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));
24312
24312
  for (let s2 of r2) {
24313
24313
  if (!i2[s2]) {
@@ -24436,7 +24436,7 @@ var Lt = class {
24436
24436
  }
24437
24437
  pause() {
24438
24438
  return c2(this, null, function* () {
24439
- let e = this.type === "audio" ? la : ua, t2 = this.store.getState(e.selection);
24439
+ let e = this.type === "audio" ? ua : pa, t2 = this.store.getState(e.selection);
24440
24440
  if (!t2.id) {
24441
24441
  b2.w("No item is currently playing to pause");
24442
24442
  return;
@@ -24592,10 +24592,10 @@ var Ri = class {
24592
24592
  return Math.ceil(Math.min(Math.max(s2 * 100, 0), 100));
24593
24593
  }
24594
24594
  };
24595
- var Aa = 2e4;
24596
- var Ha = 1e4;
24595
+ var Ha = 2e4;
24596
+ var Ca = 1e4;
24597
24597
  var 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 } };
24598
- var Ca = "https://100ms.live/test-audio.wav";
24598
+ var La = "https://100ms.live/test-audio.wav";
24599
24599
  var Ii = class {
24600
24600
  constructor() {
24601
24601
  this.networkScores = [];
@@ -24616,10 +24616,10 @@ var Ii = class {
24616
24616
  return this.networkScores.reduce((e, t2) => e + t2, 0) / this.networkScores.length;
24617
24617
  }
24618
24618
  };
24619
- var tn2 = (a11) => !!a11 && !isNaN(a11);
24619
+ var rn2 = (a11) => !!a11 && !isNaN(a11);
24620
24620
  var de = (a11) => a11[a11.length - 1];
24621
24621
  var Ne = (a11, e) => {
24622
- let t2 = a11.filter((i2) => tn2(e(i2)));
24622
+ let t2 = a11.filter((i2) => rn2(e(i2)));
24623
24623
  return t2.reduce((i2, r2) => i2 + (e(r2) || 0), 0) / t2.length;
24624
24624
  };
24625
24625
  var Ai = class {
@@ -24633,35 +24633,35 @@ var Ai = class {
24633
24633
  }
24634
24634
  handleStatsUpdate(e) {
24635
24635
  return c2(this, null, function* () {
24636
- var n2, l2, u2, p2, h2, T, g2, f2;
24636
+ var n2, l2, u2, p2, h2, T, g2, v2;
24637
24637
  let t2 = e.getLocalPeerStats();
24638
24638
  t2 && this.peerStatsList.push(t2);
24639
24639
  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();
24640
24640
  s2 && (i2 && this.localAudioTrackStatsList.push(s2[i2]), r2 && this.localVideoTrackStatsList.push(s2[r2]));
24641
- let o2 = yield (f2 = (g2 = this.sdk.getWebrtcInternals()) == null ? void 0 : g2.getSubscribePeerConnection()) == null ? void 0 : f2.getStats();
24642
- o2 == null || o2.forEach((P7) => {
24643
- if (P7.type === "inbound-rtp") {
24644
- let k2 = P7.kind === "audio" ? this.remoteAudioTrackStatsList : this.remoteVideoTrackStatsList, w2 = Pt("bytesReceived", P7, de(k2));
24645
- k2.push(M2(m({}, P7), { bitrate: w2 }));
24641
+ let o2 = yield (v2 = (g2 = this.sdk.getWebrtcInternals()) == null ? void 0 : g2.getSubscribePeerConnection()) == null ? void 0 : v2.getStats();
24642
+ o2 == null || o2.forEach((E2) => {
24643
+ if (E2.type === "inbound-rtp") {
24644
+ let P7 = E2.kind === "audio" ? this.remoteAudioTrackStatsList : this.remoteVideoTrackStatsList, w2 = Pt("bytesReceived", E2, de(P7));
24645
+ P7.push(M2(m({}, E2), { bitrate: w2 }));
24646
24646
  }
24647
24647
  });
24648
24648
  });
24649
24649
  }
24650
24650
  buildReport() {
24651
- var T, g2, f2, P7, k2, w2, Oe, Xt;
24652
- 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 = ((f2 = de(this.remoteAudioTrackStatsList)) == null ? void 0 : f2.packetsReceived) || 0, n2 = ((P7 = de(this.remoteVideoTrackStatsList)) == null ? void 0 : P7.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);
24651
+ var T, g2, v2, E2, P7, w2, Oe, Xt;
24652
+ 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);
24653
24653
  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) => {
24654
24654
  var $;
24655
24655
  return ($ = x2.publish) == null ? void 0 : $.bitrate;
24656
24656
  }), bitrateReceived: Ne(this.peerStatsList, (x2) => {
24657
24657
  var $;
24658
24658
  return ($ = x2.subscribe) == null ? void 0 : $.bitrate;
24659
- }) }, audio: { roundTripTime: s2, packetsReceived: o2, packetsLost: ((k2 = de(this.remoteAudioTrackStatsList)) == null ? void 0 : k2.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 } };
24659
+ }) }, audio: { roundTripTime: s2, packetsReceived: o2, packetsLost: ((P7 = de(this.remoteAudioTrackStatsList)) == null ? void 0 : P7.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 } };
24660
24660
  }
24661
24661
  };
24662
- var rn2 = ((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))(rn2 || {});
24663
- var La;
24662
+ var 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 || {});
24664
24663
  var Da;
24664
+ var wa;
24665
24665
  var Hi = class {
24666
24666
  constructor(e, t2, i2, r2) {
24667
24667
  this.sdk = e;
@@ -24690,9 +24690,9 @@ var Hi = class {
24690
24690
  this.onChangeTrackStateRequest = this.sdkListener.onChangeTrackStateRequest.bind(this.sdkListener);
24691
24691
  this.onChangeMultiTrackStateRequest = this.sdkListener.onChangeMultiTrackStateRequest.bind(this.sdkListener);
24692
24692
  this.onRemovedFromRoom = this.sdkListener.onRemovedFromRoom.bind(this.sdkListener);
24693
- this.onNetworkQuality = (La = this.sdkListener.onNetworkQuality) == null ? void 0 : La.bind(this.sdkListener);
24693
+ this.onNetworkQuality = (Da = this.sdkListener.onNetworkQuality) == null ? void 0 : Da.bind(this.sdkListener);
24694
24694
  this.onPreview = this.sdkListener.onPreview.bind(this.sdkListener);
24695
- this.onDeviceChange = (Da = this.sdkListener.onDeviceChange) == null ? void 0 : Da.bind(this.sdkListener);
24695
+ this.onDeviceChange = (wa = this.sdkListener.onDeviceChange) == null ? void 0 : wa.bind(this.sdkListener);
24696
24696
  this.onSessionStoreUpdate = this.sdkListener.onSessionStoreUpdate.bind(this.sdkListener);
24697
24697
  this.onPollsUpdate = this.sdkListener.onPollsUpdate.bind(this.sdkListener);
24698
24698
  this.onWhiteboardUpdate = this.sdkListener.onWhiteboardUpdate.bind(this.sdkListener);
@@ -24744,7 +24744,7 @@ var Hi = class {
24744
24744
  var t2, i2;
24745
24745
  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(() => {
24746
24746
  this.cleanupAndReport();
24747
- }, Aa);
24747
+ }, Ha);
24748
24748
  }
24749
24749
  onError(e) {
24750
24750
  this.sdkListener.onError(e), this.errors.push(e), e != null && e.isTerminal && this.cleanupAndReport();
@@ -24803,7 +24803,7 @@ var Dt = class {
24803
24803
  constructor(e, t2) {
24804
24804
  this.sdk = e;
24805
24805
  this.sdkListener = t2;
24806
- this.recordedAudio = Ca;
24806
+ this.recordedAudio = La;
24807
24807
  this.sdk.setIsDiagnostics(true), this.initSdkWithLocalPeer();
24808
24808
  }
24809
24809
  get localPeer() {
@@ -24840,7 +24840,7 @@ var Dt = class {
24840
24840
  (t2 = (e = this.localPeer) == null ? void 0 : e.videoTrack) == null || t2.cleanup(), this.localPeer && (this.localPeer.videoTrack = void 0);
24841
24841
  }
24842
24842
  startMicCheck(s2) {
24843
- return c2(this, arguments, function* ({ inputDevice: e, onError: t2, onStop: i2, time: r2 = Ha }) {
24843
+ return c2(this, arguments, function* ({ inputDevice: e, onError: t2, onStop: i2, time: r2 = Ca }) {
24844
24844
  var u2, p2, h2, T;
24845
24845
  this.initSdkWithLocalPeer((g2) => {
24846
24846
  this.stopMicCheck(), t2 == null || t2(g2);
@@ -24855,9 +24855,9 @@ var Dt = class {
24855
24855
  this.mediaRecorder.ondataavailable = function(g2) {
24856
24856
  n2.push(g2.data);
24857
24857
  }, this.mediaRecorder.onstop = () => {
24858
- var f2, P7;
24859
- let g2 = new Blob(n2, { type: (f2 = this.mediaRecorder) == null ? void 0 : f2.mimeType });
24860
- this.recordedAudio = URL.createObjectURL(g2), (P7 = this.onStopMicCheck) == null || P7.call(this);
24858
+ var v2, E2;
24859
+ let g2 = new Blob(n2, { type: (v2 = this.mediaRecorder) == null ? void 0 : v2.mimeType });
24860
+ this.recordedAudio = URL.createObjectURL(g2), (E2 = this.onStopMicCheck) == null || E2.call(this);
24861
24861
  }, this.mediaRecorder.start();
24862
24862
  let l2 = setTimeout(() => {
24863
24863
  this.stopMicCheck();
@@ -25002,7 +25002,7 @@ var Li = class {
25002
25002
  b2.d("layer none will be ignored");
25003
25003
  return;
25004
25004
  }
25005
- if (((r2 = this.store.getState(ha(e))) == null ? void 0 : r2.preferredLayer) === t2) {
25005
+ if (((r2 = this.store.getState(ma(e))) == null ? void 0 : r2.preferredLayer) === t2) {
25006
25006
  b2.d(`preferred layer is already ${t2}`);
25007
25007
  return;
25008
25008
  }
@@ -25344,7 +25344,7 @@ var Li = class {
25344
25344
  }
25345
25345
  endRoom(e, t2) {
25346
25346
  return c2(this, null, function* () {
25347
- let i2 = this.store.getState(ea);
25347
+ let i2 = this.store.getState(ta);
25348
25348
  if (!(i2 != null && i2.endRoom)) {
25349
25349
  b2.w("You are not allowed to perform this action - endRoom");
25350
25350
  return;
@@ -25433,7 +25433,7 @@ var Li = class {
25433
25433
  return c2(this, null, function* () {
25434
25434
  if (typeof e == "string") {
25435
25435
  let i2 = this.getTrackById(e);
25436
- i2 && Pa(i2) ? yield this.sdk.changeTrackState(i2, t2) : this.logPossibleInconsistency(`No remote track with ID ${e} found for change track state`);
25436
+ i2 && Ea(i2) ? yield this.sdk.changeTrackState(i2, t2) : this.logPossibleInconsistency(`No remote track with ID ${e} found for change track state`);
25437
25437
  } else
25438
25438
  Array.isArray(e) && e.forEach((i2) => this.setRemoteTrackEnabled(i2, t2));
25439
25439
  });
@@ -25526,7 +25526,7 @@ var Li = class {
25526
25526
  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)) });
25527
25527
  }) }), o2;
25528
25528
  }, {});
25529
- Ra(r2.polls, s2);
25529
+ Ia(r2.polls, s2);
25530
25530
  }, i2), t2.forEach((r2) => this.hmsNotifications.sendPollUpdate(e, r2.id));
25531
25531
  }
25532
25532
  onWhiteboardUpdate(e) {
@@ -25554,26 +25554,26 @@ var Li = class {
25554
25554
  e = `${e}_fullSync`, b2.time(`store-sync-${e}`);
25555
25555
  let t2 = {}, i2 = [], r2 = {}, s2 = {}, o2 = {}, n2, l2 = this.sdk.getPeers();
25556
25556
  for (let g2 of l2) {
25557
- let f2 = _2.convertPeer(g2);
25558
- t2[f2.id] = f2, i2.push(f2.id), o2[f2.id] = { peerID: f2.id, downlinkQuality: g2.networkQuality || -1 };
25559
- let P7 = [g2.audioTrack, g2.videoTrack, ...g2.auxiliaryTracks];
25560
- for (let k2 of P7) {
25561
- if (!k2)
25557
+ let v2 = _2.convertPeer(g2);
25558
+ t2[v2.id] = v2, i2.push(v2.id), o2[v2.id] = { peerID: v2.id, downlinkQuality: g2.networkQuality || -1 };
25559
+ let E2 = [g2.audioTrack, g2.videoTrack, ...g2.auxiliaryTracks];
25560
+ for (let P7 of E2) {
25561
+ if (!P7)
25562
25562
  continue;
25563
- let w2 = _2.convertTrack(k2);
25563
+ let w2 = _2.convertTrack(P7);
25564
25564
  r2[w2.id] = w2;
25565
25565
  }
25566
25566
  if (g2.isLocal) {
25567
- let k2 = g2;
25568
- n2 = this.getPreviewFields(k2), Object.assign(s2, this.getMediaSettings(k2));
25567
+ let P7 = g2;
25568
+ n2 = this.getPreviewFields(P7), Object.assign(s2, this.getMediaSettings(P7));
25569
25569
  }
25570
25570
  }
25571
25571
  let u2 = this.sdk.getRecordingState(), p2 = this.sdk.getRTMPState(), h2 = this.sdk.getHLSState(), T = this.sdk.getTranscriptionState();
25572
25572
  this.setState((g2) => {
25573
- var k2;
25573
+ var P7;
25574
25574
  g2.room.peers = i2;
25575
- let f2 = g2.peers, P7 = g2.tracks;
25576
- Ea(f2, t2), ba(P7, r2), Object.assign(g2.settings, s2), g2.room.isConnected && Object.assign(g2.connectionQualities, o2), (k2 = g2.preview) != null && k2.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());
25575
+ let v2 = g2.peers, E2 = g2.tracks;
25576
+ ba(v2, t2), Ra(E2, r2), Object.assign(g2.settings, s2), g2.room.isConnected && Object.assign(g2.connectionQualities, o2), (P7 = g2.preview) != null && P7.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());
25577
25577
  }, e), b2.timeEnd(`store-sync-${e}`);
25578
25578
  }
25579
25579
  onPreview(e) {
@@ -25702,7 +25702,7 @@ var Li = class {
25702
25702
  i2.room.roomState = "Failed", i2.errors.push(t2);
25703
25703
  }, "errorTerminal")) : this.store.getState().errors.length < 50 && this.setState((r2) => {
25704
25704
  r2.errors.push(t2);
25705
- }, "error"), this.syncRoomState("errorSync"), this.hmsNotifications.sendError(t2), b2.e("received error from sdk", t2 instanceof v2 ? `${t2}` : t2);
25705
+ }, "error"), this.syncRoomState("errorSync"), this.hmsNotifications.sendError(t2), b2.e("received error from sdk", t2 instanceof f2 ? `${t2}` : t2);
25706
25706
  }
25707
25707
  handleTrackRemove(e, t2) {
25708
25708
  this.setState((i2) => {
@@ -25739,7 +25739,7 @@ var Li = class {
25739
25739
  }
25740
25740
  getMediaSettings(e) {
25741
25741
  var s2;
25742
- let t2 = this.store.getState(Qs), i2 = e.audioTrack, r2 = e.videoTrack;
25742
+ let t2 = this.store.getState(zs), i2 = e.audioTrack, r2 = e.videoTrack;
25743
25743
  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 };
25744
25744
  }
25745
25745
  getPreviewFields(e) {
@@ -25762,7 +25762,7 @@ var Li = class {
25762
25762
  let t2 = this.store.getState(te);
25763
25763
  if ((t2 == null ? void 0 : t2.videoTrack) !== e)
25764
25764
  return false;
25765
- let i2 = this.store.getState(Ys), r2 = this.store.getState(Br);
25765
+ let i2 = this.store.getState(Xs), r2 = this.store.getState(Br);
25766
25766
  return i2 && !r2;
25767
25767
  }
25768
25768
  logPossibleInconsistency(e) {
@@ -25822,13 +25822,13 @@ var Li = class {
25822
25822
  this.syncRoomState("roleUpdate");
25823
25823
  }
25824
25824
  getStoreLocalTrackIDfromSDKTrack(e) {
25825
- return this.store.getState(zs).find((i2) => {
25825
+ return this.store.getState(Ys).find((i2) => {
25826
25826
  var r2;
25827
25827
  return ((r2 = this.getTrackById(i2)) == null ? void 0 : r2.trackId) === e.trackId;
25828
25828
  });
25829
25829
  }
25830
25830
  updateMidCallPreviewRoomState(e, t2) {
25831
- t2.isLocal && e === 8 && this.store.getState(Xs) && this.setState((i2) => {
25831
+ t2.isLocal && e === 8 && this.store.getState(Zs) && this.setState((i2) => {
25832
25832
  i2.room.roomState = "Connected";
25833
25833
  }, "midCallPreviewCompleted");
25834
25834
  }
@@ -25864,8 +25864,8 @@ var wi = class {
25864
25864
  try {
25865
25865
  let g2 = false;
25866
25866
  for (; !g2; ) {
25867
- let { value: f2, done: P7 } = yield h2.read();
25868
- g2 = P7, f2 && (n2 += f2.byteLength, this.sendScore({ scoreMap: r2, downloadedSize: n2, startTime: o2 }));
25867
+ let { value: v2, done: E2 } = yield h2.read();
25868
+ g2 = E2, v2 && (n2 += v2.byteLength, this.sendScore({ scoreMap: r2, downloadedSize: n2, startTime: o2 }));
25869
25869
  }
25870
25870
  } catch (g2) {
25871
25871
  g2.name !== "AbortError" && d2.d(this.TAG, g2);
@@ -25911,8 +25911,8 @@ var wt = class {
25911
25911
  r3 && (yield this.diffRolesAndPublishTracks({ oldRole: e2, newRole: t3 }), (s3 = this.listener) == null || s3.onPeerUpdate(8, r3));
25912
25912
  });
25913
25913
  this.diffRolesAndPublishTracks = (i3) => c2(this, [i3], function* ({ oldRole: e2, newRole: t3 }) {
25914
- var g2, f2, P7, k2, w2, Oe;
25915
- 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, (f2 = t3.publishParams.simulcast) == null ? void 0 : f2.video), p2 = this.hasSimulcastDifference((P7 = e2.publishParams.simulcast) == null ? void 0 : P7.screen, (k2 = t3.publishParams.simulcast) == null ? void 0 : k2.screen), h2 = (Oe = (w2 = this.store.getLocalPeer()) == null ? void 0 : w2.videoTrack) == null ? void 0 : Oe.enabled;
25914
+ var g2, v2, E2, P7, w2, Oe;
25915
+ 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, (P7 = t3.publishParams.simulcast) == null ? void 0 : P7.screen), h2 = (Oe = (w2 = this.store.getLocalPeer()) == null ? void 0 : w2.videoTrack) == null ? void 0 : Oe.enabled;
25916
25916
  yield this.removeAudioTrack(n2), yield this.removeVideoTracks(o3 || u2), yield this.removeScreenTracks(l2 || p2);
25917
25917
  let T = this.getSettings();
25918
25918
  u2 && (T.isVideoMuted = !h2), yield this.publish(T), yield this.syncDevices(T, t3);
@@ -25992,7 +25992,7 @@ var Jr = class {
25992
25992
  this.addEventToStorage(e);
25993
25993
  return;
25994
25994
  }
25995
- 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" ? Us : Bs;
25995
+ 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;
25996
25996
  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) => {
25997
25997
  if (r2.status === 401) {
25998
25998
  this.removeFromStorage(e);
@@ -26371,7 +26371,7 @@ var Ni = class {
26371
26371
  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);
26372
26372
  }
26373
26373
  };
26374
- var wa = { autoplayFailed: void 0, initialized: false, autoplayCheckPromise: void 0 };
26374
+ var _a7 = { autoplayFailed: void 0, initialized: false, autoplayCheckPromise: void 0 };
26375
26375
  var Ot = class {
26376
26376
  constructor(e, t2, i2) {
26377
26377
  this.store = e;
@@ -26380,7 +26380,7 @@ var Ot = class {
26380
26380
  this.autoPausedTracks = /* @__PURE__ */ new Set();
26381
26381
  this.TAG = "[AudioSinkManager]:";
26382
26382
  this.volume = 100;
26383
- this.state = m({}, wa);
26383
+ this.state = m({}, _a7);
26384
26384
  this.timer = null;
26385
26385
  this.autoUnpauseTimer = null;
26386
26386
  this.earpieceSelected = false;
@@ -26483,11 +26483,11 @@ var Ot = class {
26483
26483
  return;
26484
26484
  this.state.initialized = true;
26485
26485
  let t2 = document.createElement("div");
26486
- t2.id = `HMS-SDK-audio-sink-${on2()}`, (e && document.getElementById(e) || document.body).append(t2), this.audioSink = t2, d2.d(this.TAG, "audio sink created", this.audioSink);
26486
+ t2.id = `HMS-SDK-audio-sink-${nn2()}`, (e && document.getElementById(e) || document.body).append(t2), this.audioSink = t2, d2.d(this.TAG, "audio sink created", this.audioSink);
26487
26487
  }
26488
26488
  cleanup() {
26489
26489
  var e;
26490
- (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({}, wa);
26490
+ (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);
26491
26491
  }
26492
26492
  playAudioFor(e) {
26493
26493
  return c2(this, null, function* () {
@@ -26742,7 +26742,7 @@ var V = class {
26742
26742
  };
26743
26743
  var Ut = class {
26744
26744
  constructor() {
26745
- this.eventEmitter = new nn2();
26745
+ this.eventEmitter = new cn2();
26746
26746
  this.analytics = new V(G2.ANALYTICS, this.eventEmitter);
26747
26747
  this.deviceChange = new V(G2.DEVICE_CHANGE, this.eventEmitter);
26748
26748
  this.localAudioEnabled = new V(G2.LOCAL_AUDIO_ENABLED, this.eventEmitter);
@@ -27170,7 +27170,7 @@ var $i = class {
27170
27170
  }
27171
27171
  };
27172
27172
  var Bt = (a11, e, t2) => {
27173
- let i2 = t2 === "qa" ? Ws : Gs, r2 = new URL(i2);
27173
+ let i2 = t2 === "qa" ? $s : Ws, r2 = new URL(i2);
27174
27174
  return r2.searchParams.set("endpoint", `https://${e}`), r2.searchParams.set("token", a11), r2.toString();
27175
27175
  };
27176
27176
  var Ki = class {
@@ -27298,8 +27298,8 @@ var Vt = class {
27298
27298
  var h2, T;
27299
27299
  let p2 = (h2 = e == null ? void 0 : e.questions) == null ? void 0 : h2.find((g2) => g2.index === n2.question);
27300
27300
  if (p2) {
27301
- 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 }, f2 = p2.responses && !t2 ? [...p2.responses] : [];
27302
- (T = r2.questions) != null && T[n2.question - 1] && (r2.questions[n2.question - 1].responses = [...f2, g2]);
27301
+ 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] : [];
27302
+ (T = r2.questions) != null && T[n2.question - 1] && (r2.questions[n2.question - 1].responses = [...v2, g2]);
27303
27303
  }
27304
27304
  }), this.store.setPoll(r2), (o2 = this.listener) == null || o2.onPollsUpdate(4, [r2]);
27305
27305
  });
@@ -27314,9 +27314,9 @@ var Vt = class {
27314
27314
  }
27315
27315
  for (let l2 of r2) {
27316
27316
  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);
27317
- p2.questions = u2.questions.map(({ question: T, options: g2, answer: f2 }, P7) => {
27318
- var k2, w2;
27319
- return M2(m({}, T), { options: g2, answer: f2, responses: (w2 = (k2 = h2 == null ? void 0 : h2.questions) == null ? void 0 : k2[P7]) == null ? void 0 : w2.responses });
27317
+ p2.questions = u2.questions.map(({ question: T, options: g2, answer: v2 }, E2) => {
27318
+ var P7, w2;
27319
+ return M2(m({}, T), { options: g2, answer: v2, responses: (w2 = (P7 = h2 == null ? void 0 : h2.questions) == null ? void 0 : P7[E2]) == null ? void 0 : w2.responses });
27320
27320
  }), t2.push(p2), this.store.setPoll(p2);
27321
27321
  }
27322
27322
  return (n2 = this.listener) == null || n2.onPollsUpdate(3, t2), t2;
@@ -27650,7 +27650,7 @@ var Qi = class {
27650
27650
  toSdkError(e) {
27651
27651
  if (!(e != null && e.code))
27652
27652
  return;
27653
- let t2 = e.message || "error in streaming/recording", i2 = new v2(e.code, "ServerErrors", "NONE", t2, t2);
27653
+ let t2 = e.message || "error in streaming/recording", i2 = new f2(e.code, "ServerErrors", "NONE", t2, t2);
27654
27654
  return d2.e(this.TAG, "error in streaming/recording", i2), i2;
27655
27655
  }
27656
27656
  };
@@ -27830,7 +27830,7 @@ var er = class {
27830
27830
  }
27831
27831
  };
27832
27832
  var 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 || {});
27833
- var _a7 = { 0: [], 1: [], 2: [1], 3: [1], 4: [1] };
27833
+ var Na = { 0: [], 1: [], 2: [1], 3: [1], 4: [1] };
27834
27834
  var 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 || {});
27835
27835
  var ir = class {
27836
27836
  constructor(e) {
@@ -27866,18 +27866,18 @@ var rr = class {
27866
27866
  d2.d(this.TAG, `schedule: Already a task for ${j2[e]} scheduled, waiting for its completion`), yield g2.promise;
27867
27867
  return;
27868
27868
  }
27869
- let f2 = new ir((P7, k2) => {
27869
+ let v2 = new ir((E2, P7) => {
27870
27870
  });
27871
- this.inProgress.set(e, f2), this.sendEvent(t2, e);
27871
+ this.inProgress.set(e, v2), this.sendEvent(t2, e);
27872
27872
  }
27873
- let u2 = false, p2 = _a7[e];
27873
+ let u2 = false, p2 = Na[e];
27874
27874
  for (let g2 in p2) {
27875
- let f2 = p2[parseInt(g2)];
27875
+ let v2 = p2[parseInt(g2)];
27876
27876
  try {
27877
- let P7 = this.inProgress.get(f2);
27878
- P7 && (d2.d(this.TAG, `schedule: Suspending retry task of ${j2[e]}, waiting for ${j2[f2]} to recover`), yield P7.promise, d2.d(this.TAG, `schedule: Resuming retry task ${j2[e]} as it's dependency ${j2[f2]} is recovered`));
27879
- } catch (P7) {
27880
- d2.d(this.TAG, `schedule: Stopping retry task of ${j2[e]} as it's dependency ${j2[f2]} failed to recover`), u2 = true;
27877
+ let E2 = this.inProgress.get(v2);
27878
+ 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`));
27879
+ } catch (E2) {
27880
+ d2.d(this.TAG, `schedule: Stopping retry task of ${j2[e]} as it's dependency ${j2[v2]} failed to recover`), u2 = true;
27881
27881
  break;
27882
27882
  }
27883
27883
  }
@@ -28086,16 +28086,16 @@ var Gt = class extends ct {
28086
28086
  Object.keys(r2).forEach((s2) => {
28087
28087
  let o2 = r2[s2], n2 = this.store.getLocalPeerTracks().find((l2) => l2.getTrackIDBeingSent() === s2);
28088
28088
  Object.keys(o2).forEach((l2) => {
28089
- var g2, f2, P7;
28089
+ var g2, v2, E2;
28090
28090
  let u2 = o2[l2];
28091
28091
  if (!n2)
28092
28092
  return;
28093
- let p2 = this.getTrackIdentifier(n2.trackId, u2), h2 = M2(m({}, u2), { availableOutgoingBitrate: (f2 = (g2 = t2.getLocalPeerStats()) == null ? void 0 : g2.publish) == null ? void 0 : f2.availableOutgoingBitrate });
28093
+ 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 });
28094
28094
  if (p2 && this.trackAnalytics.has(p2))
28095
- (P7 = this.trackAnalytics.get(p2)) == null || P7.pushTempStat(h2);
28095
+ (E2 = this.trackAnalytics.get(p2)) == null || E2.pushTempStat(h2);
28096
28096
  else if (n2) {
28097
- let k2 = new zr({ track: n2, sampleWindowSize: this.sampleWindowSize, rid: u2.rid, ssrc: u2.ssrc.toString(), kind: u2.kind });
28098
- k2.pushTempStat(h2), this.trackAnalytics.set(this.getTrackIdentifier(n2.trackId, u2), k2);
28097
+ let P7 = new zr({ track: n2, sampleWindowSize: this.sampleWindowSize, rid: u2.rid, ssrc: u2.ssrc.toString(), kind: u2.kind });
28098
+ P7.pushTempStat(h2), this.trackAnalytics.set(this.getTrackIdentifier(n2.trackId, u2), P7);
28099
28099
  }
28100
28100
  let T = this.trackAnalytics.get(p2);
28101
28101
  T != null && T.shouldCreateSample() && (i2 = true);
@@ -28139,20 +28139,20 @@ var Wt = class extends ct {
28139
28139
  handleStatsUpdate(t2) {
28140
28140
  let i2 = t2.getAllRemoteTracksStats(), r2 = false;
28141
28141
  Object.keys(i2).forEach((s2) => {
28142
- var f2, P7;
28143
- let o2 = this.store.getTrackById(s2), n2 = i2[s2], l2 = (f2 = this.trackAnalytics.get(s2)) == null ? void 0 : f2.getLatestStat(), p2 = ((k2, w2) => {
28144
- let Oe = (w2 == null ? void 0 : w2.jitterBufferDelay) || 0, Xt = (w2 == null ? void 0 : w2.jitterBufferEmittedCount) || 0, x2 = ((k2 == null ? void 0 : k2.jitterBufferDelay) || 0) - Oe, $ = ((k2 == null ? void 0 : k2.jitterBufferEmittedCount) || 0) - Xt;
28142
+ var v2, E2;
28143
+ let o2 = this.store.getTrackById(s2), n2 = i2[s2], l2 = (v2 = this.trackAnalytics.get(s2)) == null ? void 0 : v2.getLatestStat(), p2 = ((P7, w2) => {
28144
+ let Oe = (w2 == null ? void 0 : w2.jitterBufferDelay) || 0, Xt = (w2 == null ? void 0 : w2.jitterBufferEmittedCount) || 0, x2 = ((P7 == null ? void 0 : P7.jitterBufferDelay) || 0) - Oe, $ = ((P7 == null ? void 0 : P7.jitterBufferEmittedCount) || 0) - Xt;
28145
28145
  return $ > 0 ? x2 * 1e3 / $ : (w2 == null ? void 0 : w2.calculatedJitterBufferDelay) || 0;
28146
28146
  })(n2, l2), h2 = this.calculateAvSyncForStat(n2, t2), T = M2(m({}, n2), { calculatedJitterBufferDelay: p2, avSync: h2 });
28147
28147
  if (n2.kind === "video") {
28148
- let k2 = o2.getPreferredLayerDefinition();
28149
- T.expectedFrameHeight = k2 == null ? void 0 : k2.resolution.height, T.expectedFrameWidth = k2 == null ? void 0 : k2.resolution.width;
28148
+ let P7 = o2.getPreferredLayerDefinition();
28149
+ T.expectedFrameHeight = P7 == null ? void 0 : P7.resolution.height, T.expectedFrameWidth = P7 == null ? void 0 : P7.resolution.width;
28150
28150
  }
28151
28151
  if (this.trackAnalytics.has(s2))
28152
- (P7 = this.trackAnalytics.get(s2)) == null || P7.pushTempStat(T);
28152
+ (E2 = this.trackAnalytics.get(s2)) == null || E2.pushTempStat(T);
28153
28153
  else if (o2) {
28154
- let k2 = new Xr({ track: o2, sampleWindowSize: this.sampleWindowSize, ssrc: n2.ssrc.toString(), kind: n2.kind });
28155
- k2.pushTempStat(T), this.trackAnalytics.set(s2, k2);
28154
+ let P7 = new Xr({ track: o2, sampleWindowSize: this.sampleWindowSize, ssrc: n2.ssrc.toString(), kind: n2.kind });
28155
+ P7.pushTempStat(T), this.trackAnalytics.set(s2, P7);
28156
28156
  }
28157
28157
  let g2 = this.trackAnalytics.get(s2);
28158
28158
  g2 != null && g2.shouldCreateSample() && (r2 = true);
@@ -28196,7 +28196,7 @@ var Xr = class extends dt {
28196
28196
  }
28197
28197
  };
28198
28198
  var lr = ((t2) => (t2[t2.Publish = 0] = "Publish", t2[t2.Subscribe = 1] = "Subscribe", t2))(lr || {});
28199
- function Na(a11, e) {
28199
+ function Oa(a11, e) {
28200
28200
  var r2;
28201
28201
  let t2 = $t.parse(a11.sdp);
28202
28202
  if (!((r2 = t2.origin) != null && r2.username.startsWith("mozilla")))
@@ -28208,14 +28208,14 @@ function Na(a11, e) {
28208
28208
  n2 && (s2.msid = (p2 = s2.msid) == null ? void 0 : p2.replace(/\s(.+)/, ` ${n2}`));
28209
28209
  }), { type: a11.type, sdp: $t.write(t2) };
28210
28210
  }
28211
- function Oa(a11, e) {
28211
+ function xa(a11, e) {
28212
28212
  var s2;
28213
28213
  if (!(a11 != null && a11.sdp) || !e)
28214
28214
  return;
28215
28215
  let i2 = $t.parse(a11.sdp).media.find((o2) => oe(o2.mid) && parseInt(o2.mid) === parseInt(e));
28216
28216
  return (s2 = i2 == null ? void 0 : i2.msid) == null ? void 0 : s2.split(" ")[1];
28217
28217
  }
28218
- function xa(a11) {
28218
+ function Ua(a11) {
28219
28219
  return a11.sdp.includes("usedtx=1") ? a11 : { type: a11.type, sdp: a11.sdp.replace("useinbandfec=1", "useinbandfec=1;usedtx=1") };
28220
28220
  }
28221
28221
  var Ee = "[HMSConnection]";
@@ -28240,7 +28240,7 @@ var qe = class {
28240
28240
  return c2(this, null, function* () {
28241
28241
  try {
28242
28242
  let i2 = yield this.nativeConnection.createOffer(t2);
28243
- return d2.d(Ee, `[role=${this.role}] createOffer offer=${JSON.stringify(i2, null, 1)}`), xa(Na(i2, e));
28243
+ return d2.d(Ee, `[role=${this.role}] createOffer offer=${JSON.stringify(i2, null, 1)}`), Ua(Oa(i2, e));
28244
28244
  } catch (i2) {
28245
28245
  throw S2.WebrtcErrors.CreateOfferFailed(this.action, i2.message);
28246
28246
  }
@@ -28390,7 +28390,7 @@ var jt = class a9 extends qe {
28390
28390
  this.remoteStreams = /* @__PURE__ */ new Map();
28391
28391
  this.MAX_RETRIES = 3;
28392
28392
  this.pendingMessageQueue = [];
28393
- this.eventEmitter = new cn2({ maxListeners: 60 });
28393
+ this.eventEmitter = new dn2({ maxListeners: 60 });
28394
28394
  this.handlePendingApiMessages = () => {
28395
28395
  this.eventEmitter.emit("open", true), this.pendingMessageQueue.length > 0 && (d2.d(this.TAG, "Found pending message queue, sending messages"), this.pendingMessageQueue.forEach((t3) => this.sendOverApiDataChannel(t3)), this.pendingMessageQueue.length = 0);
28396
28396
  };
@@ -28455,7 +28455,7 @@ var jt = class a9 extends qe {
28455
28455
  });
28456
28456
  let s2 = this.remoteStreams.get(r2), o2 = t2.track.kind === "audio" ? se : U2, n2 = new o2(s2, t2.track);
28457
28457
  t2.track.kind === "video" && s2.setVideoLayerLocally("none", "addTrack", "subscribeConnection"), n2.transceiver = t2.transceiver;
28458
- let l2 = Oa(this.remoteDescription, (u2 = t2.transceiver) == null ? void 0 : u2.mid);
28458
+ let l2 = xa(this.remoteDescription, (u2 = t2.transceiver) == null ? void 0 : u2.mid);
28459
28459
  l2 && n2.setSdpTrackId(l2), s2.tracks.push(n2), this.observer.onTrackAdd(n2);
28460
28460
  };
28461
28461
  }
@@ -28464,7 +28464,7 @@ var jt = class a9 extends qe {
28464
28464
  }
28465
28465
  sendOverApiDataChannelWithResponse(t2, i2) {
28466
28466
  return c2(this, null, function* () {
28467
- let r2 = dn2();
28467
+ let r2 = ln2();
28468
28468
  if (t2.method === "prefer-video-track-state" && this.isFlagEnabled("disableVideoTrackAutoUnsubscribe") && t2.params.max_spatial_layer === "none")
28469
28469
  return d2.d(this.TAG, "video auto unsubscribe is disabled, request is ignored"), { id: r2 };
28470
28470
  let s2 = JSON.stringify(m({ id: i2 || r2, jsonrpc: "2.0" }, t2));
@@ -28478,7 +28478,7 @@ var jt = class a9 extends qe {
28478
28478
  });
28479
28479
  }
28480
28480
  };
28481
- var Ua = (a11, e) => !e || e.length === 0 ? a11 : e.map((i2) => ({ urls: i2.urls, credentialType: "password", credential: i2.password, username: i2.userName }));
28481
+ var Ba = (a11, e) => !e || e.length === 0 ? a11 : e.map((i2) => ({ urls: i2.urls, credentialType: "password", credential: i2.password, username: i2.userName }));
28482
28482
  var ur = "[InitService]";
28483
28483
  var Jt = class {
28484
28484
  static handleError(e, t2) {
@@ -28494,15 +28494,15 @@ var Jt = class {
28494
28494
  static fetchInitConfig(n2) {
28495
28495
  return c2(this, arguments, function* ({ token: e, peerId: t2, userAgent: i2, initEndpoint: r2 = "https://prod-init.100ms.live", region: s2 = "", iceServers: o2 }) {
28496
28496
  d2.d(ur, `fetchInitConfig: initEndpoint=${r2} token=${e} peerId=${t2} region=${s2} `);
28497
- let l2 = ln2(r2, t2, i2, s2);
28497
+ let l2 = un2(r2, t2, i2, s2);
28498
28498
  try {
28499
28499
  let u2 = yield fetch(l2, { headers: { Authorization: `Bearer ${e}` } });
28500
28500
  try {
28501
28501
  let p2 = yield u2.clone().json();
28502
- return this.handleError(u2, p2), d2.d(ur, `config is ${JSON.stringify(p2, null, 2)}`), un2(p2, o2);
28502
+ return this.handleError(u2, p2), d2.d(ur, `config is ${JSON.stringify(p2, null, 2)}`), pn2(p2, o2);
28503
28503
  } catch (p2) {
28504
28504
  let h2 = yield u2.text();
28505
- throw d2.e(ur, "json error", p2.message, h2), p2 instanceof v2 ? p2 : S2.APIErrors.ServerErrors(u2.status, "INIT", p2.message);
28505
+ throw d2.e(ur, "json error", p2.message, h2), p2 instanceof f2 ? p2 : S2.APIErrors.ServerErrors(u2.status, "INIT", p2.message);
28506
28506
  }
28507
28507
  } catch (u2) {
28508
28508
  let p2 = u2;
@@ -28511,7 +28511,7 @@ var Jt = class {
28511
28511
  });
28512
28512
  }
28513
28513
  };
28514
- function ln2(a11, e, t2, i2) {
28514
+ function un2(a11, e, t2, i2) {
28515
28515
  try {
28516
28516
  let r2 = new URL("/init", a11);
28517
28517
  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();
@@ -28520,9 +28520,9 @@ function ln2(a11, e, t2, i2) {
28520
28520
  throw d2.e(ur, s2.name, s2.message), s2;
28521
28521
  }
28522
28522
  }
28523
- function un2(a11, e) {
28523
+ function pn2(a11, e) {
28524
28524
  var t2;
28525
- return M2(m({}, a11), { rtcConfiguration: M2(m({}, a11.rtcConfiguration), { iceServers: Ua((t2 = a11.rtcConfiguration) == null ? void 0 : t2.ice_servers, e) }) });
28525
+ return M2(m({}, a11), { rtcConfiguration: M2(m({}, a11.rtcConfiguration), { iceServers: Ba((t2 = a11.rtcConfiguration) == null ? void 0 : t2.ice_servers, e) }) });
28526
28526
  }
28527
28527
  var Qt = class {
28528
28528
  constructor(e) {
@@ -28562,14 +28562,14 @@ var Qt = class {
28562
28562
  internalCall(e, t2) {
28563
28563
  return c2(this, null, function* () {
28564
28564
  var s2;
28565
- let i2 = pn2(), r2 = { method: e, params: t2, id: i2, jsonrpc: "2.0" };
28565
+ let i2 = hn(), r2 = { method: e, params: t2, id: i2, jsonrpc: "2.0" };
28566
28566
  (s2 = this.socket) == null || s2.send(JSON.stringify(r2));
28567
28567
  try {
28568
28568
  return yield new Promise((n2, l2) => {
28569
28569
  this.callbacks.set(i2, { resolve: n2, reject: l2, metadata: { method: e } });
28570
28570
  });
28571
28571
  } catch (o2) {
28572
- if (o2 instanceof v2)
28572
+ if (o2 instanceof f2)
28573
28573
  throw o2;
28574
28574
  let n2 = o2;
28575
28575
  throw S2.WebsocketMethodErrors.ServerErrors(Number(n2.code), fr(e), n2.message);
@@ -28889,7 +28889,7 @@ var Qt = class {
28889
28889
  });
28890
28890
  }
28891
28891
  };
28892
- var Ba = () => {
28892
+ var Va = () => {
28893
28893
  if (!O2 || typeof navigator.connection == "undefined")
28894
28894
  return;
28895
28895
  let a11 = navigator.connection;
@@ -28925,7 +28925,7 @@ var zt = class {
28925
28925
  } catch (t3) {
28926
28926
  d2.d(I2, "[role=SUBSCRIBE] onOffer renegotiation FAILED \u274C", t3), this.state = "Failed";
28927
28927
  let i3;
28928
- t3 instanceof v2 ? i3 = t3 : i3 = S2.GenericErrors.Unknown("PUBLISH", t3.message), this.observer.onFailure(i3), this.eventBus.analytics.publish(y2.subscribeFail(i3));
28928
+ t3 instanceof f2 ? i3 = t3 : i3 = S2.GenericErrors.Unknown("PUBLISH", t3.message), this.observer.onFailure(i3), this.eventBus.analytics.publish(y2.subscribeFail(i3));
28929
28929
  }
28930
28930
  }), onTrickle: (e2) => c2(this, null, function* () {
28931
28931
  let t3 = e2.target === 0 ? this.publishConnection : this.subscribeConnection;
@@ -28973,8 +28973,8 @@ var zt = class {
28973
28973
  }), onConnectionStateChange: (e2) => c2(this, null, function* () {
28974
28974
  var i3, r3, s3, o3, n3, l3, u3, p3;
28975
28975
  (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(() => {
28976
- var h2, T, g2, f2, P7, k2, w2;
28977
- ((h2 = this.publishConnection) == null ? void 0 : h2.connectionState) === "disconnected" && this.handleIceConnectionFailure(0, S2.WebrtcErrors.ICEDisconnected("PUBLISH", `local candidate - ${(f2 = (g2 = (T = this.publishConnection) == null ? void 0 : T.selectedCandidatePair) == null ? void 0 : g2.local) == null ? void 0 : f2.candidate}; remote candidate - ${(w2 = (k2 = (P7 = this.publishConnection) == null ? void 0 : P7.selectedCandidatePair) == null ? void 0 : k2.remote) == null ? void 0 : w2.candidate}`));
28976
+ var h2, T, g2, v2, E2, P7, w2;
28977
+ ((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 = (P7 = (E2 = this.publishConnection) == null ? void 0 : E2.selectedCandidatePair) == null ? void 0 : P7.remote) == null ? void 0 : w2.candidate}`));
28978
28978
  }, 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}`)));
28979
28979
  }), onIceCandidate: (e2) => {
28980
28980
  var t3;
@@ -28998,8 +28998,8 @@ var zt = class {
28998
28998
  }), onConnectionStateChange: (e2) => c2(this, null, function* () {
28999
28999
  var i3, r3, s3, o3, n3, l3;
29000
29000
  (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(() => {
29001
- var u3, p3, h2, T, g2, f2, P7;
29002
- ((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 - ${(P7 = (f2 = (g2 = this.subscribeConnection) == null ? void 0 : g2.selectedCandidatePair) == null ? void 0 : f2.remote) == null ? void 0 : P7.candidate}`));
29001
+ var u3, p3, h2, T, g2, v2, E2;
29002
+ ((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}`));
29003
29003
  }, 5e3), e2 === "connected" && this.handleSubscribeConnectionConnected();
29004
29004
  }), onIceCandidate: (e2) => {
29005
29005
  var t3;
@@ -29043,8 +29043,8 @@ var zt = class {
29043
29043
  h2 !== this.state && (this.state = h2, yield this.observer.onStateChange(this.state, T));
29044
29044
  });
29045
29045
  this.retryScheduler = new rr(l2, this.sendErrorAnalyticsEvent.bind(this)), this.eventBus.statsUpdate.subscribe((h2) => {
29046
- var g2, f2;
29047
- let T = ((f2 = (g2 = h2.getLocalPeerStats()) == null ? void 0 : g2.subscribe) == null ? void 0 : f2.bitrate) || 0;
29046
+ var g2, v2;
29047
+ let T = ((v2 = (g2 = h2.getLocalPeerStats()) == null ? void 0 : g2.subscribe) == null ? void 0 : v2.bitrate) || 0;
29048
29048
  this.maxSubscribeBitrate = Math.max(this.maxSubscribeBitrate, T);
29049
29049
  }), this.eventBus.localAudioEnabled.subscribe(({ track: h2 }) => this.trackUpdate(h2)), this.eventBus.localVideoEnabled.subscribe(({ track: h2 }) => this.trackUpdate(h2));
29050
29050
  }
@@ -29084,7 +29084,7 @@ var zt = class {
29084
29084
  try {
29085
29085
  return yield this.internalConnect(e, t2, i2, o2);
29086
29086
  } catch (n2) {
29087
- if (n2 instanceof v2 && ([E2.WebSocketConnectionErrors.WEBSOCKET_CONNECTION_LOST, E2.WebSocketConnectionErrors.FAILED_TO_CONNECT, E2.WebSocketConnectionErrors.ABNORMAL_CLOSE, E2.APIErrors.ENDPOINT_UNREACHABLE].includes(n2.code) || n2.code.toString().startsWith("5") || n2.code.toString().startsWith("429"))) {
29087
+ 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"))) {
29088
29088
  let u2 = () => c2(this, null, function* () {
29089
29089
  return yield this.internalConnect(e, t2, i2, o2), !!(this.initConfig && this.initConfig.endpoint);
29090
29090
  });
@@ -29186,7 +29186,7 @@ var zt = class {
29186
29186
  yield this.negotiateJoin({ name: e, data: t2, autoSubscribeVideo: i2, isWebRTC: r2 });
29187
29187
  } catch (o2) {
29188
29188
  d2.e(I2, "Join negotiation failed \u274C", o2);
29189
- let n2 = o2 instanceof v2 ? o2 : S2.WebsocketMethodErrors.ServerErrors(500, "JOIN", `Websocket join error - ${o2.message}`), l2 = parseInt(`${n2.code / 100}`) === 5 || [E2.WebSocketConnectionErrors.WEBSOCKET_CONNECTION_LOST, 429].includes(n2.code);
29189
+ 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);
29190
29190
  if (n2.code === 410 && (n2.isTerminal = true), l2) {
29191
29191
  this.joinRetryCount = 0, n2.isTerminal = false;
29192
29192
  let u2 = () => c2(this, null, function* () {
@@ -29252,7 +29252,7 @@ var zt = class {
29252
29252
  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");
29253
29253
  } catch (i2) {
29254
29254
  let r2;
29255
- i2 instanceof v2 ? r2 = i2 : r2 = S2.GenericErrors.Unknown("PUBLISH", i2.message), t2.promise.reject(r2), d2.d(I2, "[role=PUBLISH] onRenegotiationNeeded FAILED \u274C");
29255
+ i2 instanceof f2 ? r2 = i2 : r2 = S2.GenericErrors.Unknown("PUBLISH", i2.message), t2.promise.reject(r2), d2.d(I2, "[role=PUBLISH] onRenegotiationNeeded FAILED \u274C");
29256
29256
  }
29257
29257
  }
29258
29258
  });
@@ -29286,7 +29286,7 @@ var zt = class {
29286
29286
  throw S2.APIErrors.InitConfigNotAvailable("INIT", "Init Config not found");
29287
29287
  d2.d(I2, "\u23F3 internal connect: connecting to ws endpoint", this.initConfig.endpoint);
29288
29288
  let i2 = new URL(this.initConfig.endpoint);
29289
- i2.searchParams.set("peer", t2), i2.searchParams.set("token", e), i2.searchParams.set("user_agent_v2", this.store.getUserAgent()), i2.searchParams.set("protocol_version", Vs), i2.searchParams.set("protocol_spec", Fs), 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");
29289
+ 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");
29290
29290
  });
29291
29291
  }
29292
29292
  initRtcStatsMonitor() {
@@ -29352,7 +29352,7 @@ var zt = class {
29352
29352
  }
29353
29353
  getAdditionalAnalyticsProperties() {
29354
29354
  var o2, n2, l2, u2, p2, h2, T, g2;
29355
- let e = Ba(), t2 = typeof document != "undefined" && document.hidden, i2 = this.store.getRemoteVideoTracks().filter((f2) => f2.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;
29355
+ 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;
29356
29356
  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 };
29357
29357
  }
29358
29358
  };
@@ -29370,13 +29370,13 @@ function pr(a11) {
29370
29370
  throw S2.APIErrors.InvalidTokenFormat("INIT", `couldn't parse to json - ${i2.message}`);
29371
29371
  }
29372
29372
  }
29373
- var Fa = { published: false, isInitialised: false, isReconnecting: false, isPreviewInProgress: false, isPreviewCalled: false, isJoinInProgress: false, deviceManagersInitialised: false };
29373
+ var Ga = { published: false, isInitialised: false, isReconnecting: false, isPreviewInProgress: false, isPreviewCalled: false, isJoinInProgress: false, deviceManagersInitialised: false };
29374
29374
  var hr = class {
29375
29375
  constructor() {
29376
29376
  this.TAG = "[HMSSdk]:";
29377
29377
  this.transportState = "Disconnected";
29378
29378
  this.analyticsTimer = new ci();
29379
- this.sdkState = m({}, Fa);
29379
+ this.sdkState = m({}, Ga);
29380
29380
  this.isDiagnostics = false;
29381
29381
  this.playlistSettings = { video: { bitrate: Dr }, audio: { bitrate: wr } };
29382
29382
  this.handleAutoplayError = (e) => {
@@ -29446,7 +29446,7 @@ var hr = class {
29446
29446
  var s2, o2, n2, l2;
29447
29447
  if (e.error && e.type) {
29448
29448
  let u2 = e.type.includes("audio") ? (s2 = this.localPeer) == null ? void 0 : s2.audioTrack : (o2 = this.localPeer) == null ? void 0 : o2.videoTrack;
29449
- (n2 = this.errorListener) == null || n2.onError(e.error), [E2.TracksErrors.CANT_ACCESS_CAPTURE_DEVICE, E2.TracksErrors.DEVICE_IN_USE, E2.TracksErrors.DEVICE_NOT_AVAILABLE].includes(e.error.code) && u2 && (u2.setEnabled(false), (l2 = this.listener) == null || l2.onTrackUpdate(2, u2, this.localPeer));
29449
+ (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));
29450
29450
  }
29451
29451
  })();
29452
29452
  };
@@ -29482,7 +29482,7 @@ var hr = class {
29482
29482
  (i2 = this.notificationManager) == null || i2.setListener(this.listener), this.audioSinkManager.setListener(this.listener), this.interactivityCenter.setListener(this.listener);
29483
29483
  return;
29484
29484
  }
29485
- 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), e.onInitSuccess && 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);
29485
+ 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);
29486
29486
  }
29487
29487
  validateJoined(e) {
29488
29488
  if (!this.localPeer)
@@ -29609,8 +29609,8 @@ var hr = class {
29609
29609
  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}`);
29610
29610
  try {
29611
29611
  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);
29612
- } catch (f2) {
29613
- throw this.analyticsTimer.end("join_time"), this.sdkState.isJoinInProgress = false, (g2 = this.listener) == null || g2.onError(f2), this.sendJoinAnalyticsEvent(this.sdkState.isPreviewCalled, f2), d2.e(this.TAG, "Unable to join room", f2), f2;
29612
+ } catch (v2) {
29613
+ 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;
29614
29614
  }
29615
29615
  d2.timeEnd(`join-room-${i2}`);
29616
29616
  });
@@ -29620,7 +29620,7 @@ var hr = class {
29620
29620
  }
29621
29621
  cleanup() {
29622
29622
  var e, t2, i2;
29623
- 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({}, Fa), 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);
29623
+ 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);
29624
29624
  }
29625
29625
  leave(e) {
29626
29626
  return this.internalLeave(e);
@@ -30223,22 +30223,22 @@ var lt = class a10 {
30223
30223
  };
30224
30224
  }
30225
30225
  };
30226
- var Wa = (a11, e, t2) => {
30226
+ var $a = (a11, e, t2) => {
30227
30227
  let i2;
30228
- t2.getState(ie) === "Connected" && (i2 = Ga(a11, e, t2)), t2.subscribe((r2) => {
30229
- ["Connected", "Reconnecting"].includes(r2) ? i2 || (i2 = Ga(a11, e, t2)) : ["Disconnected", "Failed"].includes(r2) && i2 && (yn(e, r2), i2(), i2 = void 0);
30228
+ t2.getState(ie) === "Connected" && (i2 = Wa(a11, e, t2)), t2.subscribe((r2) => {
30229
+ ["Connected", "Reconnecting"].includes(r2) ? i2 || (i2 = Wa(a11, e, t2)) : ["Disconnected", "Failed"].includes(r2) && i2 && (kn(e, r2), i2(), i2 = void 0);
30230
30230
  }, ie);
30231
30231
  };
30232
- var Ga = (a11, e, t2) => {
30232
+ var Wa = (a11, e, t2) => {
30233
30233
  var s2, o2;
30234
- let i2 = vn2(t2, e);
30234
+ let i2 = Mn(t2, e);
30235
30235
  (s2 = a11.getWebrtcInternals()) == null || s2.start();
30236
- let r2 = (o2 = a11.getWebrtcInternals()) == null ? void 0 : o2.onStatsChange((n2) => Mn(e, n2, t2, a11));
30236
+ let r2 = (o2 = a11.getWebrtcInternals()) == null ? void 0 : o2.onStatsChange((n2) => yn(e, n2, t2, a11));
30237
30237
  return () => {
30238
30238
  i2(), r2 && r2();
30239
30239
  };
30240
30240
  };
30241
- var vn2 = (a11, e) => {
30241
+ var Mn = (a11, e) => {
30242
30242
  let t2, i2, r2;
30243
30243
  return a11.getState(ye) ? e.namedSetState((s2) => {
30244
30244
  s2.localPeer.id = a11.getState(ye);
@@ -30262,7 +30262,7 @@ var vn2 = (a11, e) => {
30262
30262
  t2 == null || t2(), i2 == null || i2(), r2 == null || r2();
30263
30263
  };
30264
30264
  };
30265
- var Mn = (a11, e, t2, i2) => {
30265
+ var yn = (a11, e, t2, i2) => {
30266
30266
  let r2 = t2.getState(N2);
30267
30267
  a11.namedSetState((s2) => {
30268
30268
  let o2 = t2.getState(ye), n2 = {}, l2 = Object.keys(r2).filter((p2) => r2[p2].peerId !== o2);
@@ -30272,10 +30272,10 @@ var Mn = (a11, e, t2, i2) => {
30272
30272
  }
30273
30273
  Kr(s2.remoteTrackStats, n2);
30274
30274
  let u2 = { [o2]: e.getLocalPeerStats() };
30275
- Kr(s2.peerStats, u2), Ia(s2.localTrackStats, e.getLocalTrackStats(), i2.store.getLocalPeerTracks());
30275
+ Kr(s2.peerStats, u2), Aa(s2.localTrackStats, e.getLocalTrackStats(), i2.store.getLocalPeerTracks());
30276
30276
  }, "webrtc-stats");
30277
30277
  };
30278
- var yn = (a11, e = "resetState") => {
30278
+ var kn = (a11, e = "resetState") => {
30279
30279
  a11.namedSetState((t2) => {
30280
30280
  Object.assign(t2, ti());
30281
30281
  }, e);
@@ -30296,65 +30296,65 @@ var Yt = class {
30296
30296
  var n2, l2;
30297
30297
  o2 === "Connected" && i2((l2 = (n2 = this.sdk) == null ? void 0 : n2.getWebrtcInternals()) == null ? void 0 : l2.getSubscribePeerConnection());
30298
30298
  }, ie);
30299
- }), this.sdk && Wa(this.sdk, this.store, this.hmsStore);
30299
+ }), this.sdk && $a(this.sdk, this.store, this.hmsStore);
30300
30300
  }
30301
30301
  };
30302
- var kn = (a11) => a11.localPeer.id;
30303
- var Pn = (a11) => a11.localPeer.audioTrack;
30304
- var En = (a11) => a11.localPeer.videoTrack;
30305
- var bn = (a11, e) => e;
30306
- var $a = (a11, e) => e;
30307
- var Rn = (a11) => a11.remoteTrackStats;
30308
- var Ka = (a11) => a11.peerStats;
30302
+ var Pn = (a11) => a11.localPeer.id;
30303
+ var En = (a11) => a11.localPeer.audioTrack;
30304
+ var bn = (a11) => a11.localPeer.videoTrack;
30305
+ var Rn = (a11, e) => e;
30306
+ var Ka = (a11, e) => e;
30307
+ var In = (a11) => a11.remoteTrackStats;
30308
+ var qa = (a11) => a11.peerStats;
30309
30309
  var Zr = (a11) => a11.localTrackStats;
30310
- var be = createSelector([Ka, kn], (a11, e) => a11[e]);
30311
- var In = createSelector(be, (a11) => {
30310
+ var be = createSelector([qa, Pn], (a11, e) => a11[e]);
30311
+ var An = createSelector(be, (a11) => {
30312
30312
  var e;
30313
30313
  return (e = a11 == null ? void 0 : a11.subscribe) == null ? void 0 : e.packetsLost;
30314
30314
  });
30315
- var An = createSelector(be, (a11) => {
30315
+ var Hn = createSelector(be, (a11) => {
30316
30316
  var e;
30317
30317
  return (e = a11 == null ? void 0 : a11.subscribe) == null ? void 0 : e.jitter;
30318
30318
  });
30319
- var Hn = createSelector(be, (a11) => {
30319
+ var Cn = createSelector(be, (a11) => {
30320
30320
  var e;
30321
30321
  return (e = a11 == null ? void 0 : a11.publish) == null ? void 0 : e.bitrate;
30322
30322
  });
30323
- var Cn = createSelector(be, (a11) => {
30323
+ var Ln = createSelector(be, (a11) => {
30324
30324
  var e;
30325
30325
  return (e = a11 == null ? void 0 : a11.subscribe) == null ? void 0 : e.bitrate;
30326
30326
  });
30327
- var Ln = createSelector(be, (a11) => {
30327
+ var Dn = createSelector(be, (a11) => {
30328
30328
  var e;
30329
30329
  return (e = a11 == null ? void 0 : a11.publish) == null ? void 0 : e.availableOutgoingBitrate;
30330
30330
  });
30331
- var Dn = createSelector(be, (a11) => {
30331
+ var wn = createSelector(be, (a11) => {
30332
30332
  var e;
30333
30333
  return (e = a11 == null ? void 0 : a11.subscribe) == null ? void 0 : e.availableIncomingBitrate;
30334
30334
  });
30335
- var wn = createSelector(be, (a11) => {
30335
+ var _n = createSelector(be, (a11) => {
30336
30336
  var e;
30337
30337
  return (e = a11 == null ? void 0 : a11.publish) == null ? void 0 : e.bytesSent;
30338
30338
  });
30339
- var _n = createSelector(be, (a11) => {
30339
+ var Nn = createSelector(be, (a11) => {
30340
30340
  var e;
30341
30341
  return (e = a11 == null ? void 0 : a11.subscribe) == null ? void 0 : e.bytesReceived;
30342
30342
  });
30343
- var Nn = createSelector([Ka, bn], (a11, e) => e ? a11[e] : void 0);
30344
- var On = createSelector([Rn, $a], (a11, e) => e ? a11[e] : void 0);
30345
- var es = createSelector([Zr, $a], (a11, e) => e ? a11[e] : void 0);
30346
- var xn = A2(Nn);
30343
+ var On = createSelector([qa, Rn], (a11, e) => e ? a11[e] : void 0);
30344
+ var xn = createSelector([In, Ka], (a11, e) => e ? a11[e] : void 0);
30345
+ var es = createSelector([Zr, Ka], (a11, e) => e ? a11[e] : void 0);
30347
30346
  var Un = A2(On);
30348
- var Bn = createSelector([Zr, Pn], (a11, e) => {
30347
+ var Bn = A2(xn);
30348
+ var Vn = createSelector([Zr, En], (a11, e) => {
30349
30349
  var t2;
30350
30350
  return e ? (t2 = a11[e]) == null ? void 0 : t2[0] : void 0;
30351
30351
  });
30352
- var Vn = A2(createSelector(es, (a11) => a11 == null ? void 0 : a11[0]));
30353
- var Fn = createSelector([Zr, En], (a11, e) => {
30352
+ var Fn = A2(createSelector(es, (a11) => a11 == null ? void 0 : a11[0]));
30353
+ var Gn = createSelector([Zr, bn], (a11, e) => {
30354
30354
  var t2;
30355
30355
  return e ? (t2 = a11[e]) == null ? void 0 : t2[0] : void 0;
30356
30356
  });
30357
- var Gn = A2(createSelector(es, (a11) => a11));
30357
+ var Wn = A2(createSelector(es, (a11) => a11));
30358
30358
 
30359
30359
  // src/Prebuilt/components/Header/StreamActions.tsx
30360
30360
  import {
@@ -36178,7 +36178,7 @@ var Chat = () => {
36178
36178
  const listRef = useRef24(null);
36179
36179
  const hmsActions2 = useHMSActions41();
36180
36180
  const vanillaStore = useHMSVanillaStore10();
36181
- const { enabled: isChatEnabled = true } = useHMSStore62(xm("chatState" /* CHAT_STATE */)) || {};
36181
+ const { enabled: isChatEnabled = true } = useHMSStore62(Bm("chatState" /* CHAT_STATE */)) || {};
36182
36182
  const isMobile = useMedia19(config.media.md);
36183
36183
  const isMobileHLSStream = useMobileHLSStream();
36184
36184
  const isLandscapeStream = useLandscapeHLSStream();
@@ -36268,7 +36268,7 @@ var NewMessageIndicator = ({
36268
36268
  scrollToBottom,
36269
36269
  listRef
36270
36270
  }) => {
36271
- const unreadCount = useHMSStore62(om);
36271
+ const unreadCount = useHMSStore62(cm);
36272
36272
  if (!unreadCount || !listRef.current) {
36273
36273
  return null;
36274
36274
  }
@@ -37387,12 +37387,12 @@ var VBPicker = ({ backgroundMedia = [] }) => {
37387
37387
  const [blurAmount, setBlurAmount] = useState56(VBHandler.getBlurAmount() || 0.5);
37388
37388
  const roomState = useHMSStore70(selectRoomState4);
37389
37389
  const isLargeRoom = useHMSStore70(selectIsLargeRoom3);
37390
- const isEffectsEnabled = useHMSStore70(vm);
37391
- const effectsKey = useHMSStore70(Mm);
37390
+ const isEffectsEnabled = useHMSStore70(ym);
37391
+ const effectsKey = useHMSStore70(km);
37392
37392
  const isMobile = useMedia23(config.media.md);
37393
37393
  const [loadingEffects, setLoadingEffects] = useSetAppDataByKey(APP_DATA.loadingEffects);
37394
37394
  const isPluginAdded = useHMSStore70(selectIsLocalVideoPluginPresent(((_a8 = VBHandler) == null ? void 0 : _a8.getName()) || ""));
37395
- const background = useHMSStore70(Om(APP_DATA.background));
37395
+ const background = useHMSStore70(Um(APP_DATA.background));
37396
37396
  const mediaList = backgroundMedia.length ? backgroundMedia.map((media) => media.url || "") : defaultMedia2;
37397
37397
  const inPreview = roomState === HMSRoomState4.Preview;
37398
37398
  const showVideoTile = isVideoOn && isLargeRoom && !inPreview;
@@ -39764,7 +39764,7 @@ var useCloseScreenshareWhiteboard = () => {
39764
39764
  };
39765
39765
 
39766
39766
  // src/Prebuilt/layouts/VideoStreamingSection.tsx
39767
- var HLSView = React155.lazy(() => import("./HLSView-MWFODCX2.js"));
39767
+ var HLSView = React155.lazy(() => import("./HLSView-67SFNI2P.js"));
39768
39768
  var VideoStreamingSection = ({
39769
39769
  screenType,
39770
39770
  elements,
@@ -42937,4 +42937,4 @@ object-assign/index.js:
42937
42937
  @license MIT
42938
42938
  *)
42939
42939
  */
42940
- //# sourceMappingURL=chunk-VO7L2JWV.js.map
42940
+ //# sourceMappingURL=chunk-VCXILOW6.js.map