@100mslive/roomkit-react 0.3.17-alpha.2 → 0.3.17-alpha.4
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{HLSView-DRQ5LA2D.js → HLSView-3TZCJ2RD.js} +2 -2
- package/dist/{HLSView-XS66ENNF.css → HLSView-EZ2C52TT.css} +3 -3
- package/dist/{HLSView-XS66ENNF.css.map → HLSView-EZ2C52TT.css.map} +1 -1
- package/dist/{chunk-UBM3HDE3.js → chunk-BSNLB7LM.js} +320 -317
- package/dist/chunk-BSNLB7LM.js.map +7 -0
- package/dist/index.cjs.css +2 -2
- package/dist/index.cjs.css.map +1 -1
- package/dist/index.cjs.js +312 -309
- package/dist/index.cjs.js.map +4 -4
- package/dist/index.css +2 -2
- package/dist/index.css.map +1 -1
- package/dist/index.js +1 -1
- package/dist/meta.cjs.json +33 -33
- package/dist/meta.esbuild.json +42 -42
- package/package.json +7 -7
- package/src/Prebuilt/components/AppData/AppData.tsx +1 -1
- package/dist/chunk-UBM3HDE3.js.map +0 -7
- /package/dist/{HLSView-DRQ5LA2D.js.map → HLSView-3TZCJ2RD.js.map} +0 -0
@@ -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_48ea7de6-a087-4e8c-b2e8-f1411a2373eb", 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.7-alpha.2", USER: "runner", npm_package_devDependencies_jest: "26.6.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.22 npm/? node/v18.20.4 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_scripts_babel: "npx storybook@latest babelrc", CI: "true", npm_package_devDependencies__size_limit_file: "^5.0.3", npm_config_bin_links: "true", npm_config_wrap_output: "", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", npm_package_dependencies__100mslive_react_sdk: "0.10.17-alpha.2", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_48ea7de6-a087-4e8c-b2e8-f1411a2373eb", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.4/x64/bin/node", npm_config_init_version: "1.0.0", npm_package_dependencies__emoji_mart_react: "^1.0.1", npm_package_dependencies__emoji_mart_data: "^1.0.6", npm_package_dependencies__100mslive_hms_virtual_background: "1.13.17-alpha.2", 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.11", 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.9", 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: "591", 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.12/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240721.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.5/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:18870", 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.17-alpha.2", 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: "10160065200", 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: "4eac5aec26328f724b6b1a7c9d7df52ed701e193", 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: "73f6dd085fb0b36d5ff9ad4b919f86a2b508012b6e85528e4ba4b26fbb227564", 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--1722332907389-0.950546307253586:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1722332907173-0.5892400736054275:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1722332877817-0.38109870340778995:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1722332877615-0.4848152856065213:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", NODE: "/opt/hostedtoolcache/node/18.20.4/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_606a117c-da89-4f00-a48d-a604ba2cb741", INVOCATION_ID: "17909a63c321492e8184d25c2eeef284", 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: "619", GITHUB_TRIGGERING_ACTOR: "github-actions[bot]", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "20 KB", npm_package_devDependencies__commitlint_cli: "^15.0.0", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_size_limit_1_limit: "20 KB", npm_package_devDependencies_eslint_plugin_simple_import_sort: "^8.0.0", npm_package_devDependencies_eslint: "^8.9.0", npm_package_dependencies_react_intersection_observer: "^9.4.3", npm_package_dependencies_react_dom: "^18.2.0", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 158", 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.17-alpha.2", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.17-alpha.2", 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: "4eac5aec26328f724b6b1a7c9d7df52ed701e193", 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_48ea7de6-a087-4e8c-b2e8-f1411a2373eb", 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_48ea7de6-a087-4e8c-b2e8-f1411a2373eb", 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_knip: "^5.11.0", npm_package_devDependencies__storybook_react: "^7.0.27", INIT_CWD: "/home/runner/work/web-sdks/web-sdks", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_48ea7de6-a087-4e8c-b2e8-f1411a2373eb" };
|
110
|
+
define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_44ec2323-f968-4461-ab24-834c57c01fd1", 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.7-alpha.4", USER: "runner", npm_package_devDependencies_jest: "26.6.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.22 npm/? node/v18.20.4 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_scripts_babel: "npx storybook@latest babelrc", CI: "true", npm_package_devDependencies__size_limit_file: "^5.0.3", npm_config_bin_links: "true", npm_config_wrap_output: "", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", npm_package_dependencies__100mslive_react_sdk: "0.10.17-alpha.4", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_44ec2323-f968-4461-ab24-834c57c01fd1", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.4/x64/bin/node", npm_config_init_version: "1.0.0", npm_package_dependencies__emoji_mart_react: "^1.0.1", npm_package_dependencies__emoji_mart_data: "^1.0.6", npm_package_dependencies__100mslive_hms_virtual_background: "1.13.17-alpha.4", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_dependencies__100mslive_types_prebuilt: "0.12.11", 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.9", 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.12/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240721.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.5/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:20500", 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.17-alpha.4", npm_package_devDependencies__types_lodash_merge: "^4.6.6", npm_package_devDependencies__storybook_cli: "^7.0.27", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", STATS_D: "false", GITHUB_RUN_ID: "10180749533", 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: "6cb88fbfba742fca285241866c60d6f2bc256a03", 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: "ada74856433e8d79fe54dbcb7a85f9392888fc046b01d19734ae66e7fa44c116", 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--1722431057605-0.6242477955794548:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1722431057403-0.6015645421246856:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1722431031644-0.46007401146532745:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1722431031462-0.8074288001712242:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", NODE: "/opt/hostedtoolcache/node/18.20.4/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_dd6774ec-d5d9-4e0a-addb-61db748334f7", INVOCATION_ID: "988bc724adb345e5973a321210ef8382", 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: "621", GITHUB_TRIGGERING_ACTOR: "github-actions[bot]", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "20 KB", npm_package_devDependencies__commitlint_cli: "^15.0.0", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_size_limit_1_limit: "20 KB", npm_package_devDependencies_eslint_plugin_simple_import_sort: "^8.0.0", npm_package_devDependencies_eslint: "^8.9.0", npm_package_dependencies_react_intersection_observer: "^9.4.3", npm_package_dependencies_react_dom: "^18.2.0", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 21", 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.17-alpha.4", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.17-alpha.4", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_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: "6cb88fbfba742fca285241866c60d6f2bc256a03", 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_44ec2323-f968-4461-ab24-834c57c01fd1", 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_44ec2323-f968-4461-ab24-834c57c01fd1", 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_knip: "^5.11.0", npm_package_devDependencies__storybook_react: "^7.0.27", INIT_CWD: "/home/runner/work/web-sdks/web-sdks", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_44ec2323-f968-4461-ab24-834c57c01fd1" };
|
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 i = 0, j2,
|
5632
|
+
var i = 0, j2, k, p, q2, matches, match17;
|
5633
5633
|
while (i < arrays.length && !matches) {
|
5634
5634
|
var regex = arrays[i], props = arrays[i + 1];
|
5635
|
-
j2 =
|
5635
|
+
j2 = k = 0;
|
5636
5636
|
while (j2 < regex.length && !matches) {
|
5637
5637
|
if (!regex[j2]) {
|
5638
5638
|
break;
|
@@ -5640,7 +5640,7 @@ var require_ua_parser = __commonJS({
|
|
5640
5640
|
matches = regex[j2++].exec(ua2);
|
5641
5641
|
if (!!matches) {
|
5642
5642
|
for (p = 0; p < props.length; p++) {
|
5643
|
-
match17 = matches[++
|
5643
|
+
match17 = matches[++k];
|
5644
5644
|
q2 = props[p];
|
5645
5645
|
if (typeof q2 === OBJ_TYPE && q2.length > 0) {
|
5646
5646
|
if (q2.length === 2) {
|
@@ -8668,9 +8668,9 @@ var require_parser = __commonJS({
|
|
8668
8668
|
var validLine = RegExp.prototype.test.bind(/^([a-z])=(.*)/);
|
8669
8669
|
exports.parse = function(sdp2) {
|
8670
8670
|
var session = {}, media = [], location = session;
|
8671
|
-
sdp2.split(/(\r\n|\r|\n)/).filter(validLine).forEach(function(
|
8672
|
-
var type =
|
8673
|
-
var content =
|
8671
|
+
sdp2.split(/(\r\n|\r|\n)/).filter(validLine).forEach(function(l2) {
|
8672
|
+
var type = l2[0];
|
8673
|
+
var content = l2.slice(2);
|
8674
8674
|
if (type === "m") {
|
8675
8675
|
media.push({ rtp: [], fmtp: [] });
|
8676
8676
|
location = media[media.length - 1];
|
@@ -8869,13 +8869,13 @@ var require_react_is_production_min = __commonJS({
|
|
8869
8869
|
init_define_process_env();
|
8870
8870
|
var b2 = "function" === typeof Symbol && Symbol.for;
|
8871
8871
|
var c = b2 ? Symbol.for("react.element") : 60103;
|
8872
|
-
var
|
8872
|
+
var d = b2 ? Symbol.for("react.portal") : 60106;
|
8873
8873
|
var e = b2 ? Symbol.for("react.fragment") : 60107;
|
8874
8874
|
var f2 = b2 ? Symbol.for("react.strict_mode") : 60108;
|
8875
8875
|
var g = b2 ? Symbol.for("react.profiler") : 60114;
|
8876
8876
|
var h = b2 ? Symbol.for("react.provider") : 60109;
|
8877
|
-
var
|
8878
|
-
var
|
8877
|
+
var k = b2 ? Symbol.for("react.context") : 60110;
|
8878
|
+
var l2 = b2 ? Symbol.for("react.async_mode") : 60111;
|
8879
8879
|
var m2 = b2 ? Symbol.for("react.concurrent_mode") : 60111;
|
8880
8880
|
var n = b2 ? Symbol.for("react.forward_ref") : 60112;
|
8881
8881
|
var p = b2 ? Symbol.for("react.suspense") : 60113;
|
@@ -8886,13 +8886,13 @@ var require_react_is_production_min = __commonJS({
|
|
8886
8886
|
var w = b2 ? Symbol.for("react.fundamental") : 60117;
|
8887
8887
|
var x = b2 ? Symbol.for("react.responder") : 60118;
|
8888
8888
|
var y2 = b2 ? Symbol.for("react.scope") : 60119;
|
8889
|
-
function
|
8889
|
+
function z2(a2) {
|
8890
8890
|
if ("object" === typeof a2 && null !== a2) {
|
8891
8891
|
var u = a2.$$typeof;
|
8892
8892
|
switch (u) {
|
8893
8893
|
case c:
|
8894
8894
|
switch (a2 = a2.type, a2) {
|
8895
|
-
case
|
8895
|
+
case l2:
|
8896
8896
|
case m2:
|
8897
8897
|
case e:
|
8898
8898
|
case g:
|
@@ -8901,7 +8901,7 @@ var require_react_is_production_min = __commonJS({
|
|
8901
8901
|
return a2;
|
8902
8902
|
default:
|
8903
8903
|
switch (a2 = a2 && a2.$$typeof, a2) {
|
8904
|
-
case
|
8904
|
+
case k:
|
8905
8905
|
case n:
|
8906
8906
|
case t:
|
8907
8907
|
case r:
|
@@ -8911,68 +8911,68 @@ var require_react_is_production_min = __commonJS({
|
|
8911
8911
|
return u;
|
8912
8912
|
}
|
8913
8913
|
}
|
8914
|
-
case
|
8914
|
+
case d:
|
8915
8915
|
return u;
|
8916
8916
|
}
|
8917
8917
|
}
|
8918
8918
|
}
|
8919
|
-
function
|
8920
|
-
return
|
8919
|
+
function A2(a2) {
|
8920
|
+
return z2(a2) === m2;
|
8921
8921
|
}
|
8922
|
-
exports.AsyncMode =
|
8922
|
+
exports.AsyncMode = l2;
|
8923
8923
|
exports.ConcurrentMode = m2;
|
8924
|
-
exports.ContextConsumer =
|
8924
|
+
exports.ContextConsumer = k;
|
8925
8925
|
exports.ContextProvider = h;
|
8926
8926
|
exports.Element = c;
|
8927
8927
|
exports.ForwardRef = n;
|
8928
8928
|
exports.Fragment = e;
|
8929
8929
|
exports.Lazy = t;
|
8930
8930
|
exports.Memo = r;
|
8931
|
-
exports.Portal =
|
8931
|
+
exports.Portal = d;
|
8932
8932
|
exports.Profiler = g;
|
8933
8933
|
exports.StrictMode = f2;
|
8934
8934
|
exports.Suspense = p;
|
8935
8935
|
exports.isAsyncMode = function(a2) {
|
8936
|
-
return
|
8936
|
+
return A2(a2) || z2(a2) === l2;
|
8937
8937
|
};
|
8938
|
-
exports.isConcurrentMode =
|
8938
|
+
exports.isConcurrentMode = A2;
|
8939
8939
|
exports.isContextConsumer = function(a2) {
|
8940
|
-
return
|
8940
|
+
return z2(a2) === k;
|
8941
8941
|
};
|
8942
8942
|
exports.isContextProvider = function(a2) {
|
8943
|
-
return
|
8943
|
+
return z2(a2) === h;
|
8944
8944
|
};
|
8945
8945
|
exports.isElement = function(a2) {
|
8946
8946
|
return "object" === typeof a2 && null !== a2 && a2.$$typeof === c;
|
8947
8947
|
};
|
8948
8948
|
exports.isForwardRef = function(a2) {
|
8949
|
-
return
|
8949
|
+
return z2(a2) === n;
|
8950
8950
|
};
|
8951
8951
|
exports.isFragment = function(a2) {
|
8952
|
-
return
|
8952
|
+
return z2(a2) === e;
|
8953
8953
|
};
|
8954
8954
|
exports.isLazy = function(a2) {
|
8955
|
-
return
|
8955
|
+
return z2(a2) === t;
|
8956
8956
|
};
|
8957
8957
|
exports.isMemo = function(a2) {
|
8958
|
-
return
|
8958
|
+
return z2(a2) === r;
|
8959
8959
|
};
|
8960
8960
|
exports.isPortal = function(a2) {
|
8961
|
-
return
|
8961
|
+
return z2(a2) === d;
|
8962
8962
|
};
|
8963
8963
|
exports.isProfiler = function(a2) {
|
8964
|
-
return
|
8964
|
+
return z2(a2) === g;
|
8965
8965
|
};
|
8966
8966
|
exports.isStrictMode = function(a2) {
|
8967
|
-
return
|
8967
|
+
return z2(a2) === f2;
|
8968
8968
|
};
|
8969
8969
|
exports.isSuspense = function(a2) {
|
8970
|
-
return
|
8970
|
+
return z2(a2) === p;
|
8971
8971
|
};
|
8972
8972
|
exports.isValidElementType = function(a2) {
|
8973
|
-
return "string" === typeof a2 || "function" === typeof a2 || a2 === e || a2 === m2 || a2 === g || a2 === f2 || a2 === p || a2 === q2 || "object" === typeof a2 && null !== a2 && (a2.$$typeof === t || a2.$$typeof === r || a2.$$typeof === h || a2.$$typeof ===
|
8973
|
+
return "string" === typeof a2 || "function" === typeof a2 || a2 === e || a2 === m2 || a2 === g || a2 === f2 || a2 === p || a2 === q2 || "object" === typeof a2 && null !== a2 && (a2.$$typeof === t || a2.$$typeof === r || a2.$$typeof === h || a2.$$typeof === k || a2.$$typeof === n || a2.$$typeof === w || a2.$$typeof === x || a2.$$typeof === y2 || a2.$$typeof === v);
|
8974
8974
|
};
|
8975
|
-
exports.typeOf =
|
8975
|
+
exports.typeOf = z2;
|
8976
8976
|
}
|
8977
8977
|
});
|
8978
8978
|
|
@@ -12001,8 +12001,8 @@ function useBorderAudioLevel(audioTrackId) {
|
|
12001
12001
|
});
|
12002
12002
|
return ref;
|
12003
12003
|
}
|
12004
|
-
var sigmoid = (
|
12005
|
-
return 1 / (1 + Math.exp(-
|
12004
|
+
var sigmoid = (z2) => {
|
12005
|
+
return 1 / (1 + Math.exp(-z2));
|
12006
12006
|
};
|
12007
12007
|
|
12008
12008
|
// src/AudioLevel/AudioLevel.tsx
|
@@ -12134,12 +12134,12 @@ var formatBytes = (bytes, unit = "B", decimals = 2) => {
|
|
12134
12134
|
if (!bytes) {
|
12135
12135
|
return "-";
|
12136
12136
|
}
|
12137
|
-
const
|
12137
|
+
const k = 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 i = Math.floor(Math.log(bytes) / Math.log(
|
12140
|
+
let i = Math.floor(Math.log(bytes) / Math.log(k));
|
12141
12141
|
i === 0 && i++;
|
12142
|
-
return `${parseFloat((bytes / Math.pow(
|
12142
|
+
return `${parseFloat((bytes / Math.pow(k, i)).toFixed(dm2))} ${sizes[i]}`;
|
12143
12143
|
};
|
12144
12144
|
|
12145
12145
|
// src/Stats/StyledStats.tsx
|
@@ -13751,7 +13751,7 @@ var AppData = React23.memo(() => {
|
|
13751
13751
|
const updatedSettings = __spreadProps(__spreadValues({}, uiSettings), {
|
13752
13752
|
[UI_SETTINGS.isAudioOnly]: void 0,
|
13753
13753
|
[UI_SETTINGS.uiViewMode]: uiSettings.uiViewMode || UI_MODE_GRID,
|
13754
|
-
[UI_SETTINGS.maxTileCount]: ((_b8 = (_a8 = elements == null ? void 0 : elements.video_tile_layout) == null ? void 0 : _a8.grid) == null ? void 0 : _b8.tiles_in_view) || 9
|
13754
|
+
[UI_SETTINGS.maxTileCount]: Number((_b8 = (_a8 = elements == null ? void 0 : elements.video_tile_layout) == null ? void 0 : _a8.grid) == null ? void 0 : _b8.tiles_in_view) || 9
|
13755
13755
|
});
|
13756
13756
|
hmsActions.setAppData(APP_DATA.uiSettings, updatedSettings, true);
|
13757
13757
|
}, [preferences, hmsActions, elements == null ? void 0 : elements.video_tile_layout]);
|
@@ -17330,7 +17330,7 @@ var PinnedBy = ({
|
|
17330
17330
|
|
17331
17331
|
// src/Prebuilt/components/PIP/PIPChat.tsx
|
17332
17332
|
var PIPChat = () => {
|
17333
|
-
var _a7, _b7, _c, _d,
|
17333
|
+
var _a7, _b7, _c, _d, _e, _f, _g, _h, _i, _j;
|
17334
17334
|
const messages = useHMSStore19(selectHMSMessages2);
|
17335
17335
|
const localPeerID = useHMSStore19(selectLocalPeerID3);
|
17336
17336
|
const count = useHMSStore19(selectUnreadHMSMessagesCount2);
|
@@ -17468,7 +17468,7 @@ var PIPChat = () => {
|
|
17468
17468
|
borderRadius: "4px",
|
17469
17469
|
padding: "0 2px"
|
17470
17470
|
},
|
17471
|
-
defaultValue: ((
|
17471
|
+
defaultValue: ((_e = elements.chat) == null ? void 0 : _e.public_chat_enabled) ? "Everyone" : (_g = (_f = elements.chat) == null ? void 0 : _f.roles_whitelist) == null ? void 0 : _g[0]
|
17472
17472
|
},
|
17473
17473
|
(_i = (_h = elements.chat) == null ? void 0 : _h.roles_whitelist) == null ? void 0 : _i.map((role) => /* @__PURE__ */ React49.createElement("option", { key: role, value: role }, role)),
|
17474
17474
|
((_j = elements.chat) == null ? void 0 : _j.public_chat_enabled) ? /* @__PURE__ */ React49.createElement("option", { value: "Everyone" }, "Everyone") : ""
|
@@ -18109,7 +18109,7 @@ var useTracksWithLabel = () => {
|
|
18109
18109
|
return tracksWithLabels;
|
18110
18110
|
};
|
18111
18111
|
var LocalPeerStats = () => {
|
18112
|
-
var _a7, _b7, _c, _d,
|
18112
|
+
var _a7, _b7, _c, _d, _e, _f, _g, _h, _i;
|
18113
18113
|
const stats = useHMSStatsStore3(selectHMSStats3.localPeerStats);
|
18114
18114
|
if (!stats) {
|
18115
18115
|
return null;
|
@@ -18118,7 +18118,7 @@ var LocalPeerStats = () => {
|
|
18118
18118
|
StatsRow2,
|
18119
18119
|
{
|
18120
18120
|
label: "Available Outgoing Bitrate",
|
18121
|
-
value: formatBytes((
|
18121
|
+
value: formatBytes((_e = stats.publish) == null ? void 0 : _e.availableOutgoingBitrate, "b/s")
|
18122
18122
|
}
|
18123
18123
|
), /* @__PURE__ */ React55.createElement(StatsRow2, { label: "Total Bytes Sent", value: formatBytes((_f = stats.publish) == null ? void 0 : _f.bytesSent) }), /* @__PURE__ */ React55.createElement(StatsRow2, { label: "Total Bytes Received", value: formatBytes((_g = stats.subscribe) == null ? void 0 : _g.bytesReceived) }), /* @__PURE__ */ React55.createElement(
|
18124
18124
|
StatsRow2,
|
@@ -19339,8 +19339,8 @@ function shimGetUserMedia(window2, browserDetails) {
|
|
19339
19339
|
}
|
19340
19340
|
if (matches) {
|
19341
19341
|
return navigator2.mediaDevices.enumerateDevices().then((devices) => {
|
19342
|
-
devices = devices.filter((
|
19343
|
-
let dev = devices.find((
|
19342
|
+
devices = devices.filter((d) => d.kind === "videoinput");
|
19343
|
+
let dev = devices.find((d) => matches.some((match17) => d.label.toLowerCase().includes(match17)));
|
19344
19344
|
if (!dev && devices.length && matches.includes("back")) {
|
19345
19345
|
dev = devices[devices.length - 1];
|
19346
19346
|
}
|
@@ -21009,7 +21009,7 @@ function shimParameterlessSetLocalDescription(window2, browserDetails) {
|
|
21009
21009
|
return nativeSetLocalDescription.apply(this, [desc]);
|
21010
21010
|
}
|
21011
21011
|
const func = desc.type === "offer" ? this.createOffer : this.createAnswer;
|
21012
|
-
return func.apply(this).then((
|
21012
|
+
return func.apply(this).then((d) => nativeSetLocalDescription.apply(this, [d]));
|
21013
21013
|
};
|
21014
21014
|
}
|
21015
21015
|
|
@@ -21123,8 +21123,8 @@ var adapter = adapterFactory({ window: typeof window === "undefined" ? void 0 :
|
|
21123
21123
|
var import_lodash4 = __toESM(require_lodash2());
|
21124
21124
|
import { v4 as vo } from "uuid";
|
21125
21125
|
import { v4 as Po } from "uuid";
|
21126
|
-
import { v4 as
|
21127
|
-
import { EventEmitter2 as
|
21126
|
+
import { v4 as Ro } from "uuid";
|
21127
|
+
import { EventEmitter2 as Ao } from "eventemitter2";
|
21128
21128
|
var Kt = __toESM(require_lib());
|
21129
21129
|
import { EventEmitter2 as tn } from "eventemitter2";
|
21130
21130
|
import { v4 as nn } from "uuid";
|
@@ -21135,38 +21135,38 @@ import { v4 as hn } from "uuid";
|
|
21135
21135
|
var ja = Object.defineProperty;
|
21136
21136
|
var Ja = Object.defineProperties;
|
21137
21137
|
var Qa = Object.getOwnPropertyDescriptors;
|
21138
|
-
var
|
21139
|
-
var
|
21140
|
-
var
|
21141
|
-
var
|
21138
|
+
var Zt = Object.getOwnPropertySymbols;
|
21139
|
+
var ss = Object.prototype.hasOwnProperty;
|
21140
|
+
var as = Object.prototype.propertyIsEnumerable;
|
21141
|
+
var rs = (a2, e, t) => e in a2 ? ja(a2, e, { enumerable: true, configurable: true, writable: true, value: t }) : a2[e] = t;
|
21142
21142
|
var m = (a2, e) => {
|
21143
21143
|
for (var t in e || (e = {}))
|
21144
|
-
|
21145
|
-
if (
|
21146
|
-
for (var t of
|
21147
|
-
|
21144
|
+
ss.call(e, t) && rs(a2, t, e[t]);
|
21145
|
+
if (Zt)
|
21146
|
+
for (var t of Zt(e))
|
21147
|
+
as.call(e, t) && rs(a2, t, e[t]);
|
21148
21148
|
return a2;
|
21149
21149
|
};
|
21150
21150
|
var M = (a2, e) => Ja(a2, Qa(e));
|
21151
|
-
var
|
21151
|
+
var mr = (a2, e) => {
|
21152
21152
|
var t = {};
|
21153
21153
|
for (var i in a2)
|
21154
|
-
|
21155
|
-
if (a2 != null &&
|
21156
|
-
for (var i of
|
21157
|
-
e.indexOf(i) < 0 &&
|
21154
|
+
ss.call(a2, i) && e.indexOf(i) < 0 && (t[i] = a2[i]);
|
21155
|
+
if (a2 != null && Zt)
|
21156
|
+
for (var i of Zt(a2))
|
21157
|
+
e.indexOf(i) < 0 && as.call(a2, i) && (t[i] = a2[i]);
|
21158
21158
|
return t;
|
21159
21159
|
};
|
21160
21160
|
var Xa = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
|
21161
|
-
var
|
21162
|
-
no.exports = { version: "0.12.17-alpha.
|
21161
|
+
var vr = Xa((Ac, no) => {
|
21162
|
+
no.exports = { version: "0.12.17-alpha.4", 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"] };
|
21163
21163
|
});
|
21164
|
-
var
|
21164
|
+
var Sr = ((n) => (n.Disconnected = "Disconnected", n.Preview = "Preview", n.Connecting = "Connecting", n.Connected = "Connected", n.Reconnecting = "Reconnecting", n.Disconnecting = "Disconnecting", n.Failed = "Failed", n))(Sr || {});
|
21165
21165
|
var Za = ((e) => (e.CHAT = "chat", e))(Za || {});
|
21166
|
-
var
|
21167
|
-
var
|
21168
|
-
var
|
21169
|
-
function
|
21166
|
+
var os = ((t) => (t.INFO = "info", t.ERROR = "error", t))(os || {});
|
21167
|
+
var gr = ((w) => (w.PEER_JOINED = "PEER_JOINED", w.PEER_LEFT = "PEER_LEFT", w.PEER_LIST = "PEER_LIST", w.NEW_MESSAGE = "NEW_MESSAGE", w.ERROR = "ERROR", w.RECONNECTING = "RECONNECTING", w.RECONNECTED = "RECONNECTED", w.TRACK_ADDED = "TRACK_ADDED", w.TRACK_REMOVED = "TRACK_REMOVED", w.TRACK_MUTED = "TRACK_MUTED", w.TRACK_UNMUTED = "TRACK_UNMUTED", w.TRACK_DEGRADED = "TRACK_DEGRADED", w.TRACK_RESTORED = "TRACK_RESTORED", w.TRACK_DESCRIPTION_CHANGED = "TRACK_DESCRIPTION_CHANGED", w.ROLE_UPDATED = "ROLE_UPDATED", w.CHANGE_TRACK_STATE_REQUEST = "CHANGE_TRACK_STATE_REQUEST", w.CHANGE_MULTI_TRACK_STATE_REQUEST = "CHANGE_MULTI_TRACK_STATE_REQUEST", w.ROOM_ENDED = "ROOM_ENDED", w.REMOVED_FROM_ROOM = "REMOVED_FROM_ROOM", w.DEVICE_CHANGE_UPDATE = "DEVICE_CHANGE_UPDATE", w.PLAYLIST_TRACK_ENDED = "PLAYLIST_TRACK_ENDED", w.NAME_UPDATED = "NAME_UPDATED", w.METADATA_UPDATED = "METADATA_UPDATED", w.POLL_CREATED = "POLL_CREATED", w.POLL_STARTED = "POLL_STARTED", w.POLL_STOPPED = "POLL_STOPPED", w.POLL_VOTES_UPDATED = "POLL_VOTES_UPDATED", w.POLLS_LIST = "POLLS_LIST", w.HAND_RAISE_CHANGED = "HAND_RAISE_CHANGED", w.TRANSCRIPTION_STATE_UPDATED = "TRANSCRIPTION_STATE_UPDATED", w))(gr || {});
|
21168
|
+
var ns = ((t) => (t.audio = "audio", t.video = "video", t))(ns || {});
|
21169
|
+
function Ue(a2, e) {
|
21170
21170
|
let t, i;
|
21171
21171
|
if (e)
|
21172
21172
|
for (let r of e.auxiliaryTracks) {
|
@@ -21184,16 +21184,16 @@ function pt(a2) {
|
|
21184
21184
|
function eo(a2) {
|
21185
21185
|
return a2 && a2.source === "screen";
|
21186
21186
|
}
|
21187
|
-
function
|
21187
|
+
function ii(a2) {
|
21188
21188
|
return a2 && a2.source === "audioplaylist";
|
21189
21189
|
}
|
21190
21190
|
function ht(a2) {
|
21191
21191
|
return a2 && a2.source === "videoplaylist";
|
21192
21192
|
}
|
21193
|
-
function
|
21193
|
+
function cs(a2) {
|
21194
21194
|
return a2 ? !!(a2 != null && a2.degraded) : false;
|
21195
21195
|
}
|
21196
|
-
function
|
21196
|
+
function Je(a2, e) {
|
21197
21197
|
return e && a2.tracks[e] ? a2.tracks[e].enabled : false;
|
21198
21198
|
}
|
21199
21199
|
function mt(a2) {
|
@@ -21201,9 +21201,9 @@ function mt(a2) {
|
|
21201
21201
|
let e = false, t = false, i = false;
|
21202
21202
|
return (r = a2 == null ? void 0 : a2.publishParams) != null && r.allowed && (e = a2.publishParams.allowed.includes("video"), t = a2.publishParams.allowed.includes("audio"), i = a2.publishParams.allowed.includes("screen")), { video: e, audio: t, screen: i };
|
21203
21203
|
}
|
21204
|
-
var
|
21204
|
+
var ls = ((d) => (d[d.VERBOSE = 0] = "VERBOSE", d[d.DEBUG = 1] = "DEBUG", d[d.INFO = 2] = "INFO", d[d.WARN = 3] = "WARN", d[d.TIME = 4] = "TIME", d[d.TIMEEND = 5] = "TIMEEND", d[d.ERROR = 6] = "ERROR", d[d.NONE = 7] = "NONE", d))(ls || {});
|
21205
21205
|
var to = typeof window != "undefined" && typeof window.expect != "undefined";
|
21206
|
-
var
|
21206
|
+
var l = class {
|
21207
21207
|
static v(e, ...t) {
|
21208
21208
|
this.log(0, e, ...t);
|
21209
21209
|
}
|
@@ -21268,26 +21268,26 @@ var d = class {
|
|
21268
21268
|
}
|
21269
21269
|
}
|
21270
21270
|
};
|
21271
|
-
|
21272
|
-
var
|
21273
|
-
var
|
21274
|
-
var
|
21275
|
-
var
|
21276
|
-
var ro = () => !
|
21271
|
+
l.level = to ? 7 : 0;
|
21272
|
+
var fe = new import_ua_parser_js.UAParser();
|
21273
|
+
var U = typeof window != "undefined";
|
21274
|
+
var us;
|
21275
|
+
var Be = typeof window == "undefined" && !((us = fe.getBrowser().name) != null && us.toLowerCase().includes("electron"));
|
21276
|
+
var ro = () => !Be;
|
21277
21277
|
var ic = ro();
|
21278
|
+
var ps;
|
21278
21279
|
var hs;
|
21279
|
-
var
|
21280
|
-
var gs = ((ms = (hs = ge.getBrowser()) == null ? void 0 : hs.name) == null ? void 0 : ms.toLowerCase()) === "firefox";
|
21280
|
+
var gs = ((hs = (ps = fe.getBrowser()) == null ? void 0 : ps.name) == null ? void 0 : hs.toLowerCase()) === "firefox";
|
21281
21281
|
var Ts = ((i) => (i.CUSTOM = "CUSTOM", i.LOCAL = "LOCAL", i.HMS = "HMS", i))(Ts || {});
|
21282
21282
|
function so() {
|
21283
|
-
if (
|
21283
|
+
if (U && window) {
|
21284
21284
|
let a2 = window.location.hostname;
|
21285
21285
|
return a2 === "localhost" || a2 === "127.0.0.1" ? "LOCAL" : a2.includes("app.100ms.live") ? "HMS" : "CUSTOM";
|
21286
21286
|
}
|
21287
21287
|
return "CUSTOM";
|
21288
21288
|
}
|
21289
|
-
var
|
21290
|
-
var
|
21289
|
+
var ze = so();
|
21290
|
+
var P3 = { 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 } };
|
21291
21291
|
var f = class a extends Error {
|
21292
21292
|
constructor(t, i, r, s, o, n = false) {
|
21293
21293
|
super(s);
|
@@ -21319,97 +21319,97 @@ var f = class a extends Error {
|
|
21319
21319
|
};
|
21320
21320
|
var ao = ["join", "offer", "answer", "trickle", "on-error", "JOIN"];
|
21321
21321
|
var S = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
|
21322
|
-
return new f(
|
21322
|
+
return new f(P3.WebSocketConnectionErrors.FAILED_TO_CONNECT, "WebsocketFailedToConnect", a2, `[WS]: ${e}`, `[WS]: ${e}`);
|
21323
21323
|
}, WebSocketConnectionLost(a2, e = "") {
|
21324
|
-
return new f(
|
21324
|
+
return new f(P3.WebSocketConnectionErrors.WEBSOCKET_CONNECTION_LOST, "WebSocketConnectionLost", a2, "Network connection lost", e);
|
21325
21325
|
}, AbnormalClose(a2, e = "") {
|
21326
|
-
return new f(
|
21326
|
+
return new f(P3.WebSocketConnectionErrors.ABNORMAL_CLOSE, "WebSocketAbnormalClose", a2, "Websocket closed abnormally", e);
|
21327
21327
|
} }, APIErrors: { ServerErrors(a2, e, t = "", i = true) {
|
21328
21328
|
return new f(a2, "ServerErrors", e, `[${e}]: Server error ${t}`, t, i);
|
21329
21329
|
}, EndpointUnreachable(a2, e = "") {
|
21330
|
-
return new f(
|
21330
|
+
return new f(P3.APIErrors.ENDPOINT_UNREACHABLE, "EndpointUnreachable", a2, `Endpoint is not reachable - ${e}`, e);
|
21331
21331
|
}, InvalidTokenFormat(a2, e = "") {
|
21332
|
-
return new f(
|
21332
|
+
return new f(P3.APIErrors.INVALID_TOKEN_FORMAT, "InvalidTokenFormat", a2, `Token is not in proper JWT format - ${e}`, e, true);
|
21333
21333
|
}, InitConfigNotAvailable(a2, e = "") {
|
21334
|
-
return new f(
|
21334
|
+
return new f(P3.APIErrors.INIT_CONFIG_NOT_AVAILABLE, "InitError", a2, `[INIT]: ${e}`, `[INIT]: ${e}`);
|
21335
21335
|
} }, TracksErrors: { GenericTrack(a2, e = "") {
|
21336
|
-
return new f(
|
21336
|
+
return new f(P3.TracksErrors.GENERIC_TRACK, "GenericTrack", a2, `[TRACK]: ${e}`, `[TRACK]: ${e}`);
|
21337
21337
|
}, CantAccessCaptureDevice(a2, e, t = "") {
|
21338
|
-
return new f(
|
21338
|
+
return new f(P3.TracksErrors.CANT_ACCESS_CAPTURE_DEVICE, "CantAccessCaptureDevice", a2, `User denied permission to access capture device - ${e}`, t);
|
21339
21339
|
}, DeviceNotAvailable(a2, e, t = "") {
|
21340
|
-
return new f(
|
21340
|
+
return new f(P3.TracksErrors.DEVICE_NOT_AVAILABLE, "DeviceNotAvailable", a2, `[TRACK]: Capture device is no longer available - ${e}`, t);
|
21341
21341
|
}, DeviceInUse(a2, e, t = "") {
|
21342
|
-
return new f(
|
21342
|
+
return new f(P3.TracksErrors.DEVICE_IN_USE, "DeviceInUse", a2, `[TRACK]: Capture device is in use by another application - ${e}`, t);
|
21343
21343
|
}, DeviceLostMidway(a2, e, t = "") {
|
21344
|
-
return new f(
|
21344
|
+
return new f(P3.TracksErrors.DEVICE_LOST_MIDWAY, "DeviceLostMidway", a2, `Lost access to capture device midway - ${e}`, t);
|
21345
21345
|
}, NothingToReturn(a2, e = "", t = "There is no media to return. Please select either video or audio or both.") {
|
21346
|
-
return new f(
|
21346
|
+
return new f(P3.TracksErrors.NOTHING_TO_RETURN, "NothingToReturn", a2, t, e);
|
21347
21347
|
}, InvalidVideoSettings(a2, e = "") {
|
21348
|
-
return new f(
|
21348
|
+
return new f(P3.TracksErrors.INVALID_VIDEO_SETTINGS, "InvalidVideoSettings", a2, "Cannot enable simulcast when no video settings are provided", e);
|
21349
21349
|
}, AutoplayBlocked(a2, e = "") {
|
21350
|
-
return new f(
|
21350
|
+
return new f(P3.TracksErrors.AUTOPLAY_ERROR, "AutoplayBlocked", a2, "Autoplay blocked because the user didn't interact with the document first", e);
|
21351
21351
|
}, CodecChangeNotPermitted(a2, e = "") {
|
21352
|
-
return new f(
|
21352
|
+
return new f(P3.TracksErrors.CODEC_CHANGE_NOT_PERMITTED, "CodecChangeNotPermitted", a2, "Codec can't be changed mid call.", e);
|
21353
21353
|
}, OverConstrained(a2, e, t = "") {
|
21354
|
-
return new f(
|
21354
|
+
return new f(P3.TracksErrors.OVER_CONSTRAINED, "OverConstrained", a2, `[TRACK]: Requested constraints cannot be satisfied with the device hardware - ${e}`, t);
|
21355
21355
|
}, NoAudioDetected(a2, e = "Please check the mic or use another audio input") {
|
21356
|
-
return new f(
|
21356
|
+
return new f(P3.TracksErrors.NO_AUDIO_DETECTED, "NoAudioDetected", a2, "No audio input detected from microphone", e);
|
21357
21357
|
}, SystemDeniedPermission(a2, e, t = "") {
|
21358
|
-
return new f(
|
21358
|
+
return new f(P3.TracksErrors.SYSTEM_DENIED_PERMISSION, "SystemDeniedPermission", a2, `Operating System denied permission to access capture device - ${e}`, t);
|
21359
21359
|
}, CurrentTabNotShared() {
|
21360
|
-
return new f(
|
21360
|
+
return new f(P3.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");
|
21361
21361
|
}, AudioPlaybackError(a2) {
|
21362
|
-
return new f(
|
21362
|
+
return new f(P3.TracksErrors.AUDIO_PLAYBACK_ERROR, "Audio playback error", "TRACK", a2, a2);
|
21363
21363
|
}, SelectedDeviceMissing(a2) {
|
21364
|
-
return new f(
|
21364
|
+
return new f(P3.TracksErrors.SELECTED_DEVICE_MISSING, "SelectedDeviceMissing", "TRACK", `Could not detect selected ${a2} device`, `Please check connection to the ${a2} device`, false);
|
21365
21365
|
} }, WebrtcErrors: { CreateOfferFailed(a2, e = "") {
|
21366
|
-
return new f(
|
21366
|
+
return new f(P3.WebrtcErrors.CREATE_OFFER_FAILED, "CreateOfferFailed", a2, `[${a2.toString()}]: Failed to create offer. `, e);
|
21367
21367
|
}, CreateAnswerFailed(a2, e = "") {
|
21368
|
-
return new f(
|
21368
|
+
return new f(P3.WebrtcErrors.CREATE_ANSWER_FAILED, "CreateAnswerFailed", a2, `[${a2.toString()}]: Failed to create answer. `, e);
|
21369
21369
|
}, SetLocalDescriptionFailed(a2, e = "") {
|
21370
|
-
return new f(
|
21370
|
+
return new f(P3.WebrtcErrors.SET_LOCAL_DESCRIPTION_FAILED, "SetLocalDescriptionFailed", a2, `[${a2.toString()}]: Failed to set offer. `, e);
|
21371
21371
|
}, SetRemoteDescriptionFailed(a2, e = "") {
|
21372
|
-
return new f(
|
21372
|
+
return new f(P3.WebrtcErrors.SET_REMOTE_DESCRIPTION_FAILED, "SetRemoteDescriptionFailed", a2, `[${a2.toString()}]: Failed to set answer. `, e, true);
|
21373
21373
|
}, ICEFailure(a2, e = "", t = false) {
|
21374
|
-
return new f(
|
21374
|
+
return new f(P3.WebrtcErrors.ICE_FAILURE, "ICEFailure", a2, `[${a2.toString()}]: Ice connection state FAILED`, e, t);
|
21375
21375
|
}, ICEDisconnected(a2, e = "") {
|
21376
|
-
return new f(
|
21376
|
+
return new f(P3.WebrtcErrors.ICE_DISCONNECTED, "ICEDisconnected", a2, `[${a2.toString()}]: Ice connection state DISCONNECTED`, e);
|
21377
21377
|
}, StatsFailed(a2, e = "") {
|
21378
|
-
return new f(
|
21378
|
+
return new f(P3.WebrtcErrors.STATS_FAILED, "StatsFailed", a2, `Failed to WebRTC get stats - ${e}`, e);
|
21379
21379
|
} }, WebsocketMethodErrors: { ServerErrors(a2, e, t) {
|
21380
21380
|
return new f(a2, "ServerErrors", e, t, t, ao.includes(e));
|
21381
21381
|
}, AlreadyJoined(a2, e = "") {
|
21382
|
-
return new f(
|
21382
|
+
return new f(P3.WebsocketMethodErrors.ALREADY_JOINED, "AlreadyJoined", a2, "[JOIN]: You have already joined this room.", e);
|
21383
21383
|
}, CannotJoinPreviewInProgress(a2, e = "") {
|
21384
|
-
return new f(
|
21384
|
+
return new f(P3.WebsocketMethodErrors.CANNOT_JOIN_PREVIEW_IN_PROGRESS, "CannotJoinPreviewInProgress", a2, "[JOIN]: Cannot join if preview is in progress", e);
|
21385
21385
|
} }, GenericErrors: { NotConnected(a2, e = "") {
|
21386
|
-
return new f(
|
21386
|
+
return new f(P3.GenericErrors.NOT_CONNECTED, "NotConnected", a2, "Client is not connected", e);
|
21387
21387
|
}, Signalling(a2, e) {
|
21388
|
-
return new f(
|
21388
|
+
return new f(P3.GenericErrors.SIGNALLING, "Signalling", a2, `Unknown signalling error: ${a2.toString()} ${e} `, e);
|
21389
21389
|
}, Unknown(a2, e) {
|
21390
|
-
return new f(
|
21390
|
+
return new f(P3.GenericErrors.UNKNOWN, "Unknown", a2, `Unknown exception: ${e}`, e);
|
21391
21391
|
}, NotReady(a2, e = "") {
|
21392
|
-
return new f(
|
21392
|
+
return new f(P3.GenericErrors.NOT_READY, "NotReady", a2, e, e);
|
21393
21393
|
}, JsonParsingFailed(a2, e, t = "") {
|
21394
|
-
return new f(
|
21394
|
+
return new f(P3.GenericErrors.JSON_PARSING_FAILED, "JsonParsingFailed", a2, `Failed to parse JSON message - ${e}`, t);
|
21395
21395
|
}, TrackMetadataMissing(a2, e = "") {
|
21396
|
-
return new f(
|
21396
|
+
return new f(P3.GenericErrors.TRACK_METADATA_MISSING, "TrackMetadataMissing", a2, "Track Metadata Missing", e);
|
21397
21397
|
}, RTCTrackMissing(a2, e = "") {
|
21398
|
-
return new f(
|
21398
|
+
return new f(P3.GenericErrors.RTC_TRACK_MISSING, "RTCTrackMissing", a2, "RTC Track missing", e);
|
21399
21399
|
}, PeerMetadataMissing(a2, e = "") {
|
21400
|
-
return new f(
|
21400
|
+
return new f(P3.GenericErrors.PEER_METADATA_MISSING, "PeerMetadataMissing", a2, "Peer Metadata Missing", e);
|
21401
21401
|
}, ValidationFailed(a2, e) {
|
21402
|
-
return new f(
|
21402
|
+
return new f(P3.GenericErrors.VALIDATION_FAILED, "ValidationFailed", "VALIDATION", a2, e ? JSON.stringify(e) : "");
|
21403
21403
|
}, InvalidRole(a2, e) {
|
21404
|
-
return new f(
|
21404
|
+
return new f(P3.GenericErrors.INVALID_ROLE, "InvalidRole", a2, "Invalid role. Join with valid role", e, true);
|
21405
21405
|
}, PreviewAlreadyInProgress(a2, e = "") {
|
21406
|
-
return new f(
|
21406
|
+
return new f(P3.GenericErrors.PREVIEW_IN_PROGRESS, "PreviewAlreadyInProgress", a2, "[Preview]: Cannot join if preview is in progress", e);
|
21407
21407
|
}, LocalStorageAccessDenied(a2 = "Access to localStorage has been denied") {
|
21408
|
-
return new f(
|
21408
|
+
return new f(P3.GenericErrors.LOCAL_STORAGE_ACCESS_DENIED, "LocalStorageAccessDenied", "NONE", "LocalStorageAccessDenied", a2);
|
21409
21409
|
}, MissingMediaDevices() {
|
21410
|
-
return new f(
|
21410
|
+
return new f(P3.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);
|
21411
21411
|
}, MissingRTCPeerConnection() {
|
21412
|
-
return new f(
|
21412
|
+
return new f(P3.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);
|
21413
21413
|
} }, MediaPluginErrors: { PlatformNotSupported(a2, e = "") {
|
21414
21414
|
return new f(7001, "PlatformNotSupported", a2, "Check HMS Docs to see the list of supported platforms", e);
|
21415
21415
|
}, InitFailed(a2, e = "") {
|
@@ -21421,11 +21421,11 @@ var S = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
|
|
21421
21421
|
}, DeviceNotSupported(a2, e = "") {
|
21422
21422
|
return new f(7005, "DeviceNotSupported", a2, "Check HMS Docs to see the list of supported devices", e);
|
21423
21423
|
} }, PlaylistErrors: { NoEntryToPlay(a2, e) {
|
21424
|
-
return new f(
|
21424
|
+
return new f(P3.PlaylistErrors.NO_ENTRY_TO_PLAY, "NoEntryToPlay", a2, "Reached end of playlist", e);
|
21425
21425
|
}, NoEntryPlaying(a2, e) {
|
21426
|
-
return new f(
|
21426
|
+
return new f(P3.PlaylistErrors.NO_ENTRY_IS_PLAYING, "NoEntryIsPlaying", a2, "No entry is playing at this time", e);
|
21427
21427
|
} } };
|
21428
|
-
var
|
21428
|
+
var fr = class {
|
21429
21429
|
constructor() {
|
21430
21430
|
this.valuesMap = /* @__PURE__ */ new Map();
|
21431
21431
|
}
|
@@ -21452,21 +21452,21 @@ var vr = class {
|
|
21452
21452
|
};
|
21453
21453
|
var fs = () => {
|
21454
21454
|
try {
|
21455
|
-
|
21455
|
+
U && !localStorage && (window.localStorage = new fr());
|
21456
21456
|
} catch (a2) {
|
21457
|
-
|
21457
|
+
l.e("Error initialising localStorage", S.GenericErrors.LocalStorageAccessDenied());
|
21458
21458
|
}
|
21459
21459
|
};
|
21460
|
-
var
|
21460
|
+
var pe = class {
|
21461
21461
|
constructor(e) {
|
21462
21462
|
this.key = e;
|
21463
21463
|
this.storage = null;
|
21464
21464
|
}
|
21465
21465
|
getStorage() {
|
21466
21466
|
try {
|
21467
|
-
return
|
21467
|
+
return U && !this.storage && (fs(), this.storage = window.localStorage), this.storage;
|
21468
21468
|
} catch (e) {
|
21469
|
-
return
|
21469
|
+
return l.e("Error initialising localStorage", S.GenericErrors.LocalStorageAccessDenied()), null;
|
21470
21470
|
}
|
21471
21471
|
}
|
21472
21472
|
get() {
|
@@ -21485,49 +21485,49 @@ var le = class {
|
|
21485
21485
|
}
|
21486
21486
|
};
|
21487
21487
|
var vs = () => {
|
21488
|
-
let a2, e = new
|
21488
|
+
let a2, e = new pe("hms-analytics-deviceId"), t = e.get();
|
21489
21489
|
return t ? a2 = t : (a2 = oo(), e.set(a2)), a2;
|
21490
21490
|
};
|
21491
|
-
function
|
21491
|
+
function ne(a2) {
|
21492
21492
|
return a2 != null;
|
21493
21493
|
}
|
21494
|
-
var ys =
|
21495
|
-
function
|
21496
|
-
let t = "web", i =
|
21497
|
-
if (
|
21498
|
-
return ks({ os: "web_nodejs", os_version: process.version, sdk: t, sdk_version: ys, env: i, domain:
|
21499
|
-
let r =
|
21500
|
-
return s.type && (p = `${
|
21494
|
+
var ys = vr().version;
|
21495
|
+
function Tt(a2 = "prod", e) {
|
21496
|
+
let t = "web", i = ze !== "LOCAL" && a2 === "prod" ? "prod" : "debug";
|
21497
|
+
if (Be)
|
21498
|
+
return ks({ os: "web_nodejs", os_version: process.version, sdk: t, sdk_version: ys, env: i, domain: ze, is_prebuilt: !!(e != null && e.isPrebuilt), framework: "node", framework_version: process.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
|
21499
|
+
let r = fe.getOS(), s = fe.getDevice(), o = fe.getBrowser(), n = Mr(`web_${r.name}`), d = r.version || "", u = Mr(`${o.name}_${o.version}`), p = u;
|
21500
|
+
return s.type && (p = `${Mr(`${s.vendor}_${s.type}`)}/${u}`), ks({ os: n, os_version: d, sdk: t, sdk_version: ys, device_model: p, env: i, domain: ze, is_prebuilt: !!(e != null && e.isPrebuilt), framework: e == null ? void 0 : e.type, framework_version: e == null ? void 0 : e.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
|
21501
21501
|
}
|
21502
|
-
function
|
21502
|
+
function Mr(a2) {
|
21503
21503
|
return a2.replace(/ /g, "_");
|
21504
21504
|
}
|
21505
|
-
var ks = (a2, e = ",") => Object.keys(a2).filter((t) =>
|
21505
|
+
var ks = (a2, e = ",") => Object.keys(a2).filter((t) => ne(a2[t])).map((t) => `${t}:${a2[t]}`).join(e);
|
21506
21506
|
var H = class {
|
21507
21507
|
constructor({ name: e, level: t, properties: i, includesPII: r, timestamp: s }) {
|
21508
|
-
this.metadata = { peer: {}, userAgent:
|
21508
|
+
this.metadata = { peer: {}, userAgent: Tt() };
|
21509
21509
|
this.name = e, this.level = t, this.includesPII = r || false, this.properties = i || {}, this.timestamp = s || (/* @__PURE__ */ new Date()).getTime(), this.event_id = co(), this.device_id = vs();
|
21510
21510
|
}
|
21511
21511
|
toSignalParams() {
|
21512
|
-
return { name: this.name, info: M(m({}, this.properties), { timestamp: this.timestamp, domain:
|
21512
|
+
return { name: this.name, info: M(m({}, this.properties), { timestamp: this.timestamp, domain: ze }), timestamp: (/* @__PURE__ */ new Date()).getTime() };
|
21513
21513
|
}
|
21514
21514
|
};
|
21515
21515
|
var y = class {
|
21516
21516
|
static connect(e, t, i = /* @__PURE__ */ new Date(), r = /* @__PURE__ */ new Date(), s) {
|
21517
|
-
let o = this.eventNameFor("connect", e === void 0), n = e ? 2 : 1,
|
21518
|
-
return new H({ name: o, level: n, properties:
|
21517
|
+
let o = this.eventNameFor("connect", e === void 0), n = e ? 2 : 1, d = this.getPropertiesWithError(M(m({}, t), { [this.KEY_REQUESTED_AT]: i == null ? void 0 : i.getTime(), [this.KEY_RESPONDED_AT]: r == null ? void 0 : r.getTime(), endpoint: s }), e);
|
21518
|
+
return new H({ name: o, level: n, properties: d });
|
21519
21519
|
}
|
21520
21520
|
static disconnect(e, t) {
|
21521
21521
|
let i = "disconnected", r = e ? 2 : 1, s = this.getPropertiesWithError(t, e);
|
21522
21522
|
return new H({ name: i, level: r, properties: s });
|
21523
21523
|
}
|
21524
21524
|
static preview(i) {
|
21525
|
-
var r = i, { error: e } = r, t =
|
21525
|
+
var r = i, { error: e } = r, t = mr(r, ["error"]);
|
21526
21526
|
let s = this.eventNameFor("preview", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(t, e);
|
21527
21527
|
return new H({ name: s, level: o, properties: n });
|
21528
21528
|
}
|
21529
21529
|
static join(i) {
|
21530
|
-
var r = i, { error: e } = r, t =
|
21530
|
+
var r = i, { error: e } = r, t = mr(r, ["error"]);
|
21531
21531
|
let s = this.eventNameFor("join", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(M(m({}, t), { is_preview_called: !!t.is_preview_called }), e);
|
21532
21532
|
return new H({ name: s, level: o, properties: n });
|
21533
21533
|
}
|
@@ -21552,8 +21552,8 @@ var y = class {
|
|
21552
21552
|
return new H({ name: "audioPlaybackError", level: 2, properties: this.getErrorProperties(e) });
|
21553
21553
|
}
|
21554
21554
|
static deviceChange({ isUserSelection: e, selection: t, type: i, devices: r, error: s }) {
|
21555
|
-
let o = this.eventNameFor(s ? "publish" : `device.${i}`, s === void 0), n = s ? 2 : 1,
|
21556
|
-
return new H({ name: o, level: n, properties:
|
21555
|
+
let o = this.eventNameFor(s ? "publish" : `device.${i}`, s === void 0), n = s ? 2 : 1, d = this.getPropertiesWithError({ selection: t, devices: r, isUserSelection: e }, s);
|
21556
|
+
return new H({ name: o, level: n, properties: d });
|
21557
21557
|
}
|
21558
21558
|
static performance(e) {
|
21559
21559
|
let t = "perf.stats", i = 1, r = e.toAnalyticsProperties();
|
@@ -21597,6 +21597,9 @@ var y = class {
|
|
21597
21597
|
static krispStop() {
|
21598
21598
|
return new H({ name: "krisp.stop", level: 1 });
|
21599
21599
|
}
|
21600
|
+
static interruption(e, t, i) {
|
21601
|
+
return new H({ name: `${e ? "interruption.start" : "interruption.stop"}`, level: 1, properties: m({ type: t }, i) });
|
21602
|
+
}
|
21600
21603
|
static eventNameFor(e, t) {
|
21601
21604
|
return `${e}.${t ? "success" : "failed"}`;
|
21602
21605
|
}
|
@@ -21609,9 +21612,9 @@ var y = class {
|
|
21609
21612
|
}
|
21610
21613
|
};
|
21611
21614
|
y.KEY_REQUESTED_AT = "requested_at", y.KEY_RESPONDED_AT = "responded_at";
|
21612
|
-
var
|
21615
|
+
var yr = class {
|
21613
21616
|
constructor() {
|
21614
|
-
this.storage = new
|
21617
|
+
this.storage = new pe("hms-device-selection");
|
21615
21618
|
this.remember = false;
|
21616
21619
|
this.TAG = "[HMSDeviceStorage]";
|
21617
21620
|
}
|
@@ -21626,7 +21629,7 @@ var kr = class {
|
|
21626
21629
|
return;
|
21627
21630
|
let r = this.devices[e].find((o) => this.isSame({ deviceId: t, groupId: i }, o));
|
21628
21631
|
if (!r) {
|
21629
|
-
|
21632
|
+
l.w(this.TAG, `Could not find device with deviceId: ${t}, groupId: ${i}`);
|
21630
21633
|
return;
|
21631
21634
|
}
|
21632
21635
|
let s = this.storage.get() || {};
|
@@ -21643,10 +21646,10 @@ var kr = class {
|
|
21643
21646
|
return e.deviceId === t.deviceId && (e.groupId === t.groupId || !e.groupId);
|
21644
21647
|
}
|
21645
21648
|
};
|
21646
|
-
var
|
21647
|
-
var
|
21648
|
-
var
|
21649
|
-
function
|
21649
|
+
var J = new yr();
|
21650
|
+
var kr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(kr || {});
|
21651
|
+
var Pr = ((t) => (t.PLATFORM_NOT_SUPPORTED = "PLATFORM_NOT_SUPPORTED", t.DEVICE_NOT_SUPPORTED = "DEVICE_NOT_SUPPORTED", t))(Pr || {});
|
21652
|
+
function ai(a2, e = 300) {
|
21650
21653
|
let t;
|
21651
21654
|
return function(...i) {
|
21652
21655
|
clearTimeout(t), t = void 0;
|
@@ -21656,15 +21659,15 @@ function oi(a2, e = 300) {
|
|
21656
21659
|
}, e);
|
21657
21660
|
};
|
21658
21661
|
}
|
21659
|
-
var
|
21660
|
-
var
|
21661
|
-
var
|
21662
|
-
var
|
21662
|
+
var Ir = ((t) => (t.SIP = "sip", t.REGULAR = "regular", t))(Ir || {});
|
21663
|
+
var Is = ((n) => (n.NONE = "none", n.INITIALISED = "initialised", n.STARTED = "started", n.PAUSED = "paused", n.RESUMED = "resumed", n.STOPPED = "stopped", n.FAILED = "failed", n))(Is || {});
|
21664
|
+
var Rs = ((t) => (t.DVR = "dvr", t.NO_DVR = "no-dvr", t))(Rs || {});
|
21665
|
+
var As = ((i) => (i.REGULAR = "regular", i.SCREEN = "screen", i.COMPOSITE = "composite", i))(As || {});
|
21663
21666
|
var Hs = ((r) => (r.INITIALISED = "initialised", r.STARTED = "started", r.STOPPED = "stopped", r.FAILED = "failed", r))(Hs || {});
|
21664
21667
|
var Cs = ((e) => (e.CAPTION = "caption", e))(Cs || {});
|
21665
|
-
var
|
21668
|
+
var Rr = ((t) => (t.VOICE = "voice", t.MUSIC = "music", t))(Rr || {});
|
21666
21669
|
var Ls = ((i) => (i.videoInput = "videoInput", i.audioInput = "audioInput", i.audioOutput = "audioOutput", i))(Ls || {});
|
21667
|
-
var
|
21670
|
+
var Ar = class {
|
21668
21671
|
constructor() {
|
21669
21672
|
this.TAG = "[HMSIntersectionObserverWrapper]";
|
21670
21673
|
this.listeners = /* @__PURE__ */ new WeakMap();
|
@@ -21687,12 +21690,12 @@ var Hr = class {
|
|
21687
21690
|
this.createObserver();
|
21688
21691
|
}
|
21689
21692
|
isSupported() {
|
21690
|
-
let e =
|
21691
|
-
return e ||
|
21693
|
+
let e = U && typeof window.IntersectionObserver != "undefined";
|
21694
|
+
return e || l.w(this.TAG, "IntersectionObserver is not supported, fallback will be used instead"), e;
|
21692
21695
|
}
|
21693
21696
|
};
|
21694
|
-
var Ns = new
|
21695
|
-
var
|
21697
|
+
var Ns = new Ar();
|
21698
|
+
var Hr = class {
|
21696
21699
|
constructor() {
|
21697
21700
|
this.TAG = "[HMSResizeObserverWrapper]";
|
21698
21701
|
this.listeners = /* @__PURE__ */ new WeakMap();
|
@@ -21705,7 +21708,7 @@ var Cr = class {
|
|
21705
21708
|
(t = this.resizeObserver) == null || t.unobserve(e), this.listeners.delete(e);
|
21706
21709
|
};
|
21707
21710
|
this.createObserver = () => {
|
21708
|
-
this.isSupported() && !this.resizeObserver && (this.resizeObserver = new ResizeObserver(
|
21711
|
+
this.isSupported() && !this.resizeObserver && (this.resizeObserver = new ResizeObserver(ai(this.handleResize, 300)));
|
21709
21712
|
};
|
21710
21713
|
this.handleResize = (e) => {
|
21711
21714
|
var t;
|
@@ -21715,51 +21718,51 @@ var Cr = class {
|
|
21715
21718
|
this.createObserver();
|
21716
21719
|
}
|
21717
21720
|
isSupported() {
|
21718
|
-
let e =
|
21719
|
-
return e ||
|
21721
|
+
let e = U && typeof window.ResizeObserver != "undefined";
|
21722
|
+
return e || l.w(this.TAG, "Resize Observer is not supported"), e;
|
21720
21723
|
}
|
21721
21724
|
};
|
21722
|
-
var Os = new
|
21723
|
-
var
|
21724
|
-
var
|
21725
|
+
var Os = new Hr();
|
21726
|
+
var Cr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(Cr || {});
|
21727
|
+
var Lr = ((t) => (t["2D"] = "2d", t.WEBGL = "webgl", t.WEBGL2 = "webgl2", t))(Lr || {});
|
21725
21728
|
var Bs = "https://event.100ms.live/v2/client/report";
|
21726
21729
|
var Vs = "https://event-nonprod.100ms.live/v2/client/report";
|
21727
21730
|
var Pt = Math.pow(2, 31) - 1;
|
21728
21731
|
var rt = class {
|
21729
21732
|
};
|
21730
|
-
rt.makePeerId = () =>
|
21733
|
+
rt.makePeerId = () => Ro();
|
21731
21734
|
var B = (a2) => a2.room;
|
21732
21735
|
var Ho = (a2) => a2.errors;
|
21733
21736
|
var Kh = createSelector(Ho, (a2) => a2.length === 0 ? null : a2.at(-1));
|
21734
21737
|
var qh = createSelector(B, (a2) => a2.id);
|
21735
21738
|
var K = (a2) => a2.peers;
|
21736
|
-
var
|
21739
|
+
var Ti = (a2) => a2.messages.byID;
|
21737
21740
|
var Qs = (a2) => a2.messages.allIDs;
|
21738
21741
|
var N = (a2) => a2.tracks;
|
21739
|
-
var
|
21742
|
+
var Vr = (a2) => a2.appData;
|
21740
21743
|
var Co = (a2) => a2.speakers;
|
21741
|
-
var
|
21742
|
-
var Qh = createSelector([
|
21744
|
+
var Ne = createSelector([B], (a2) => a2 && a2.isConnected);
|
21745
|
+
var Qh = createSelector([Ne, B], (a2, e) => a2 ? e.peerCount !== void 0 ? e.peerCount || 1 : e.peers.length : Math.max(e.peerCount !== void 0 ? e.peerCount : e.peers.length - 1, 0));
|
21743
21746
|
var Lo = (a2) => a2.hideLocalPeer;
|
21744
|
-
var
|
21747
|
+
var ge = createSelector([B, K, Lo], (a2, e, t) => t ? a2.peers.filter((i) => a2.localPeer !== i).map((i) => e[i]) : a2.peers.map((i) => e[i]));
|
21745
21748
|
var Do = createSelector(N, (a2) => Object.values(a2));
|
21746
21749
|
var te = createSelector(B, K, (a2, e) => e[a2.localPeer]);
|
21747
|
-
var
|
21750
|
+
var ke = createSelector(B, (a2) => a2.localPeer);
|
21748
21751
|
var zh = createSelector(te, (a2) => a2 == null ? void 0 : a2.name);
|
21749
21752
|
var Yh = createSelector(te, (a2) => a2 == null ? void 0 : a2.roleName);
|
21750
|
-
var
|
21751
|
-
var
|
21753
|
+
var oe = createSelector(te, (a2) => a2 == null ? void 0 : a2.audioTrack);
|
21754
|
+
var z = createSelector(te, (a2) => a2 == null ? void 0 : a2.videoTrack);
|
21752
21755
|
var wo = createSelector(te, (a2) => a2 == null ? void 0 : a2.auxiliaryTracks);
|
21753
|
-
var Ys = createSelector([
|
21756
|
+
var Ys = createSelector([oe, z, wo], (a2, e, t) => {
|
21754
21757
|
let i = t ? [...t] : [];
|
21755
21758
|
return a2 && i.unshift(a2), e && i.unshift(e), i;
|
21756
21759
|
});
|
21757
|
-
var Xh = createSelector(
|
21760
|
+
var Xh = createSelector(ge, (a2) => a2.filter((e) => !e.isLocal));
|
21758
21761
|
var Zh = createSelector(K, Co, (a2, e) => {
|
21759
21762
|
let t = Object.entries(e).sort((i, r) => {
|
21760
|
-
var n,
|
21763
|
+
var n, d;
|
21761
21764
|
let s = ((n = i[1]) == null ? void 0 : n.audioLevel) || 0;
|
21762
|
-
return (((
|
21765
|
+
return (((d = r[1]) == null ? void 0 : d.audioLevel) || 0) > s ? 1 : -1;
|
21763
21766
|
});
|
21764
21767
|
if (t.length > 0 && t[0][1].audioLevel && t[0][1].audioLevel > 0) {
|
21765
21768
|
let i = t[0][1].peerID;
|
@@ -21768,14 +21771,14 @@ var Zh = createSelector(K, Co, (a2, e) => {
|
|
21768
21771
|
}
|
21769
21772
|
return null;
|
21770
21773
|
});
|
21771
|
-
var
|
21772
|
-
let { video: t, audio: i } =
|
21774
|
+
var Gr = createSelector(te, N, (a2, e) => {
|
21775
|
+
let { video: t, audio: i } = Ue(e, a2);
|
21773
21776
|
return !!(t || i);
|
21774
21777
|
});
|
21775
21778
|
var _o = createSelector(K, N, (a2, e) => {
|
21776
21779
|
let t;
|
21777
21780
|
for (let i in a2) {
|
21778
|
-
let r = a2[i], { video: s, audio: o } =
|
21781
|
+
let r = a2[i], { video: s, audio: o } = Ue(e, r);
|
21779
21782
|
if (s)
|
21780
21783
|
return r;
|
21781
21784
|
o && !t && (t = r);
|
@@ -21785,7 +21788,7 @@ var _o = createSelector(K, N, (a2, e) => {
|
|
21785
21788
|
var tm = createSelector(_o, (a2) => !!a2);
|
21786
21789
|
var im = createSelector(K, N, (a2, e) => {
|
21787
21790
|
for (let t in a2) {
|
21788
|
-
let i = a2[t], { audio: r, video: s } =
|
21791
|
+
let i = a2[t], { audio: r, video: s } = Ue(e, i);
|
21789
21792
|
if (!s && r)
|
21790
21793
|
return i;
|
21791
21794
|
}
|
@@ -21793,7 +21796,7 @@ var im = createSelector(K, N, (a2, e) => {
|
|
21793
21796
|
var rm = createSelector(K, N, (a2, e) => {
|
21794
21797
|
let t = [], i = [];
|
21795
21798
|
for (let r in a2) {
|
21796
|
-
let s = a2[r], { video: o, audio: n } =
|
21799
|
+
let s = a2[r], { video: o, audio: n } = Ue(e, s);
|
21797
21800
|
o ? t.push(s) : n && i.push(s);
|
21798
21801
|
}
|
21799
21802
|
return t.concat(i);
|
@@ -21808,20 +21811,20 @@ var sm = createSelector(K, N, (a2, e) => {
|
|
21808
21811
|
var am = createSelector(K, N, (a2, e) => {
|
21809
21812
|
for (let t in e) {
|
21810
21813
|
let i = e[t];
|
21811
|
-
if (
|
21814
|
+
if (ii(i) && i.peerId)
|
21812
21815
|
return a2[i.peerId];
|
21813
21816
|
}
|
21814
21817
|
});
|
21815
|
-
var om = createSelector(Do, (a2) => a2.filter(
|
21818
|
+
var om = createSelector(Do, (a2) => a2.filter(cs));
|
21816
21819
|
var nm = createSelector(Qs, (a2) => a2.length);
|
21817
|
-
var cm = createSelector(
|
21818
|
-
var
|
21820
|
+
var cm = createSelector(Ti, (a2) => Object.values(a2).filter((e) => !e.read).length);
|
21821
|
+
var Rt = createSelector(Qs, Ti, (a2, e) => {
|
21819
21822
|
let t = [];
|
21820
21823
|
return a2.forEach((i) => {
|
21821
21824
|
t.push(e[i]);
|
21822
21825
|
}), t;
|
21823
21826
|
});
|
21824
|
-
var No = createSelector(
|
21827
|
+
var No = createSelector(Rt, (a2) => a2.filter((e) => {
|
21825
21828
|
var t;
|
21826
21829
|
return !e.recipientPeer && !(e.recipientRoles && ((t = e.recipientRoles) == null ? void 0 : t.length) > 0);
|
21827
21830
|
}));
|
@@ -21830,14 +21833,14 @@ var ie = createSelector([B], (a2) => a2 && a2.roomState);
|
|
21830
21833
|
var Zs = createSelector(ie, (a2) => a2 === "Preview");
|
21831
21834
|
var lm = createSelector(B, (a2) => a2.roomState !== "Disconnected");
|
21832
21835
|
var um = createSelector(B, (a2) => !a2.transcriptions || a2.transcriptions.length <= 0 ? false : a2.transcriptions.some((e) => e.mode === "caption" && e.state === "started"));
|
21833
|
-
var
|
21834
|
-
var pm = createSelector([
|
21835
|
-
var at = createSelector([te,
|
21836
|
+
var Te = (a2) => a2.roles;
|
21837
|
+
var pm = createSelector([Te], (a2) => Object.keys(a2));
|
21838
|
+
var at = createSelector([te, Te], (a2, e) => a2 != null && a2.roleName ? e[a2.roleName] : null);
|
21836
21839
|
var Oo = (a2) => {
|
21837
21840
|
var e;
|
21838
21841
|
return (e = a2.preview) == null ? void 0 : e.asRole;
|
21839
21842
|
};
|
21840
|
-
var ea = createSelector([Oo,
|
21843
|
+
var ea = createSelector([Oo, Te], (a2, e) => a2 ? e[a2] : null);
|
21841
21844
|
var hm = createSelector([at], (a2) => {
|
21842
21845
|
var e;
|
21843
21846
|
return (e = a2 == null ? void 0 : a2.subscribeParams) != null && e.subscribeToRoles ? a2.subscribeParams.subscribeToRoles.length > 0 : false;
|
@@ -21853,26 +21856,26 @@ var Mm = createSelector(B, (a2) => !!a2.isLargeRoom);
|
|
21853
21856
|
var ym = createSelector(B, (a2) => !!a2.isEffectsEnabled);
|
21854
21857
|
var km = createSelector(B, (a2) => a2.effectsKey);
|
21855
21858
|
var ia = (a2) => a2.polls;
|
21856
|
-
var
|
21859
|
+
var Im = createSelector(ge, (a2) => a2.filter((e) => e.isHandRaised));
|
21857
21860
|
var xo = (a2) => a2.whiteboards;
|
21858
|
-
var
|
21861
|
+
var Rm = createSelector(xo, (a2) => Object.values(a2)[0]);
|
21859
21862
|
var sa = (a2 = "audio") => (e) => e.playlist[a2].list;
|
21860
|
-
var
|
21863
|
+
var Wr = (a2 = "audio") => (e) => e.playlist[a2].selection;
|
21861
21864
|
var aa = (a2 = "audio") => (e) => e.playlist[a2].progress;
|
21862
21865
|
var oa = (a2 = "audio") => (e) => e.playlist[a2].currentTime;
|
21863
21866
|
var na = (a2 = "audio") => (e) => e.playlist[a2].playbackRate;
|
21864
21867
|
var ca = (a2 = "audio") => (e) => e.playlist[a2].volume;
|
21865
21868
|
var da = (a2 = "audio") => createSelector(sa(a2), (e) => Object.values(e));
|
21866
|
-
var la = (a2 = "audio") => createSelector(sa(a2),
|
21869
|
+
var la = (a2 = "audio") => createSelector(sa(a2), Wr(a2), (e, t) => {
|
21867
21870
|
if (t.id)
|
21868
21871
|
return e[t.id];
|
21869
21872
|
});
|
21870
|
-
var ua = { selection:
|
21871
|
-
var pa = { selection:
|
21872
|
-
function
|
21873
|
+
var ua = { selection: Wr("audio"), progress: aa("audio"), currentTime: oa("audio"), playbackRate: na("audio"), volume: ca("audio"), list: da("audio"), selectedItem: la("audio") };
|
21874
|
+
var pa = { selection: Wr("video"), progress: aa("video"), currentTime: oa("video"), playbackRate: na("video"), volume: ca("video"), list: da("video"), selectedItem: la("video") };
|
21875
|
+
function A(a2) {
|
21873
21876
|
return (e) => (t) => a2(t, e);
|
21874
21877
|
}
|
21875
|
-
var
|
21878
|
+
var At = "HMS-Store:";
|
21876
21879
|
var b = class {
|
21877
21880
|
static v(e, ...t) {
|
21878
21881
|
this.log(0, e, ...t);
|
@@ -21902,23 +21905,23 @@ var b = class {
|
|
21902
21905
|
if (!(this.level.valueOf() > e.valueOf()))
|
21903
21906
|
switch (e) {
|
21904
21907
|
case 0: {
|
21905
|
-
console.log(
|
21908
|
+
console.log(At, ...t);
|
21906
21909
|
break;
|
21907
21910
|
}
|
21908
21911
|
case 1: {
|
21909
|
-
console.debug(
|
21912
|
+
console.debug(At, ...t);
|
21910
21913
|
break;
|
21911
21914
|
}
|
21912
21915
|
case 2: {
|
21913
|
-
console.info(
|
21916
|
+
console.info(At, ...t);
|
21914
21917
|
break;
|
21915
21918
|
}
|
21916
21919
|
case 3: {
|
21917
|
-
console.warn(
|
21920
|
+
console.warn(At, ...t);
|
21918
21921
|
break;
|
21919
21922
|
}
|
21920
21923
|
case 6: {
|
21921
|
-
console.error(
|
21924
|
+
console.error(At, ...t);
|
21922
21925
|
break;
|
21923
21926
|
}
|
21924
21927
|
case 4: {
|
@@ -21939,13 +21942,13 @@ var b = class {
|
|
21939
21942
|
}
|
21940
21943
|
};
|
21941
21944
|
b.level = 0;
|
21942
|
-
var
|
21945
|
+
var $r = (a2, e) => e;
|
21943
21946
|
var Ht = (a2, e) => e;
|
21944
21947
|
var ha = (a2, e) => e;
|
21945
21948
|
var Uo = (a2, e) => e;
|
21946
21949
|
var Bo = (a2, e) => e;
|
21947
|
-
var q = createSelector([K,
|
21948
|
-
var
|
21950
|
+
var q = createSelector([K, $r], (a2, e) => e ? a2[e] : null);
|
21951
|
+
var Kr = createSelector([N, Ht], (a2, e) => e ? a2[e] : null);
|
21949
21952
|
var Vo = createSelector([N, Ht], (a2, e) => {
|
21950
21953
|
if (!e)
|
21951
21954
|
return null;
|
@@ -21971,8 +21974,8 @@ var Wo = createSelector([N, Ht], (a2, e) => {
|
|
21971
21974
|
return (t == null ? void 0 : t.type) === "video" && (t == null ? void 0 : t.source) === "screen" ? t : null;
|
21972
21975
|
});
|
21973
21976
|
var $o = createSelector([ia, Bo], (a2, e) => e ? a2[e] : null);
|
21974
|
-
var
|
21975
|
-
var Um =
|
21977
|
+
var Y = A(q);
|
21978
|
+
var Um = A(createSelector([Vr, Uo], (a2, e) => {
|
21976
21979
|
if (a2)
|
21977
21980
|
return e ? a2[e] : a2;
|
21978
21981
|
}));
|
@@ -21982,90 +21985,90 @@ function Bm(a2) {
|
|
21982
21985
|
return a2 ? e.sessionStore[a2] : e.sessionStore;
|
21983
21986
|
};
|
21984
21987
|
}
|
21985
|
-
var Fm =
|
21986
|
-
var Gm =
|
21987
|
-
var
|
21988
|
-
var ma =
|
21989
|
-
var Wm =
|
21990
|
-
var $m =
|
21991
|
-
var Km =
|
21992
|
-
var Ko =
|
21988
|
+
var Fm = A(createSelector(q, (a2) => a2 == null ? void 0 : a2.name));
|
21989
|
+
var Gm = A(createSelector(q, (a2) => a2 == null ? void 0 : a2.type));
|
21990
|
+
var fi = A(Kr);
|
21991
|
+
var ma = A(Vo);
|
21992
|
+
var Wm = A(Fo);
|
21993
|
+
var $m = A(Go);
|
21994
|
+
var Km = A(Wo);
|
21995
|
+
var Ko = A((a2, e) => {
|
21993
21996
|
let t = q(a2, e);
|
21994
21997
|
if (t && t.videoTrack && t.videoTrack !== "")
|
21995
21998
|
return a2.tracks[t.videoTrack];
|
21996
21999
|
});
|
21997
|
-
var qo =
|
22000
|
+
var qo = A((a2, e) => {
|
21998
22001
|
let t = q(a2, e);
|
21999
22002
|
if (t && t.audioTrack && t.audioTrack !== "")
|
22000
22003
|
return a2.tracks[t.audioTrack];
|
22001
22004
|
});
|
22002
|
-
var jm =
|
22005
|
+
var jm = A((a2, e) => {
|
22003
22006
|
let t = q(a2, e);
|
22004
22007
|
return (t == null ? void 0 : t.auxiliaryTracks.map((i) => a2.tracks[i])) || [];
|
22005
22008
|
});
|
22006
22009
|
var Sa = (a2, e) => e ? a2.speakers[e] : null;
|
22007
|
-
var Jm =
|
22010
|
+
var Jm = A(createSelector(Sa, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
|
22008
22011
|
var jo = (a2, e) => {
|
22009
22012
|
let t = qo(e)(a2);
|
22010
22013
|
return Sa(a2, t == null ? void 0 : t.id);
|
22011
22014
|
};
|
22012
|
-
var Qm =
|
22013
|
-
var zm =
|
22015
|
+
var Qm = A(createSelector(jo, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
|
22016
|
+
var zm = A((a2, e) => {
|
22014
22017
|
if (e)
|
22015
22018
|
return a2.connectionQualities[e];
|
22016
22019
|
});
|
22017
|
-
var Ym =
|
22020
|
+
var Ym = A((a2, e) => {
|
22018
22021
|
let t = q(a2, e);
|
22019
22022
|
if (t) {
|
22020
22023
|
let i = t == null ? void 0 : t.auxiliaryTracks.find((r) => ut(a2.tracks[r]));
|
22021
22024
|
return i ? a2.tracks[i] : void 0;
|
22022
22025
|
}
|
22023
22026
|
});
|
22024
|
-
var Xm =
|
22027
|
+
var Xm = A(createSelector(N, q, (a2, e) => {
|
22025
22028
|
let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
|
22026
22029
|
let r = a2[i];
|
22027
22030
|
return ht(r) && pt(r);
|
22028
22031
|
});
|
22029
22032
|
return t ? a2[t] : void 0;
|
22030
22033
|
}));
|
22031
|
-
var Zm =
|
22034
|
+
var Zm = A(createSelector(N, q, (a2, e) => {
|
22032
22035
|
let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
|
22033
22036
|
let r = a2[i];
|
22034
22037
|
return ht(r) && ut(r);
|
22035
22038
|
});
|
22036
22039
|
return t ? a2[t] : void 0;
|
22037
22040
|
}));
|
22038
|
-
var eS =
|
22041
|
+
var eS = A(createSelector(N, q, (a2, e) => {
|
22039
22042
|
let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
|
22040
22043
|
let r = a2[i];
|
22041
|
-
return
|
22044
|
+
return ii(r) && ut(r);
|
22042
22045
|
});
|
22043
22046
|
return t ? a2[t] : void 0;
|
22044
22047
|
}));
|
22045
|
-
var ga =
|
22048
|
+
var ga = A(createSelector(N, q, (a2, e) => Ue(a2, e)));
|
22046
22049
|
var Ta = (a2) => createSelector(ga(a2), (e) => e.audio);
|
22047
|
-
var iS =
|
22050
|
+
var iS = A((a2, e) => {
|
22048
22051
|
let t = q(a2, e);
|
22049
|
-
return
|
22052
|
+
return Je(a2, t == null ? void 0 : t.audioTrack);
|
22050
22053
|
});
|
22051
|
-
var rS =
|
22054
|
+
var rS = A((a2, e) => {
|
22052
22055
|
let t = q(a2, e);
|
22053
|
-
return
|
22056
|
+
return Je(a2, t == null ? void 0 : t.videoTrack);
|
22054
22057
|
});
|
22055
|
-
var fa =
|
22058
|
+
var fa = A((a2, e) => {
|
22056
22059
|
if (e && a2.tracks[e])
|
22057
22060
|
return a2.tracks[e].volume === 0;
|
22058
22061
|
});
|
22059
|
-
var sS =
|
22062
|
+
var sS = A((a2, e) => {
|
22060
22063
|
let t = q(a2, e);
|
22061
22064
|
return fa(t == null ? void 0 : t.audioTrack)(a2);
|
22062
22065
|
});
|
22063
|
-
var aS =
|
22066
|
+
var aS = A((a2, e) => {
|
22064
22067
|
let t = Ta(e)(a2);
|
22065
22068
|
return fa(t == null ? void 0 : t.id)(a2);
|
22066
22069
|
});
|
22067
|
-
var va =
|
22068
|
-
let t =
|
22070
|
+
var va = A((a2, e) => {
|
22071
|
+
let t = Kr(a2, e);
|
22069
22072
|
if (t) {
|
22070
22073
|
if (t.type !== "audio") {
|
22071
22074
|
b.w("Please pass audio track here");
|
@@ -22074,16 +22077,16 @@ var va = I((a2, e) => {
|
|
22074
22077
|
return t.volume;
|
22075
22078
|
}
|
22076
22079
|
});
|
22077
|
-
var oS =
|
22080
|
+
var oS = A((a2, e) => {
|
22078
22081
|
let t = q(a2, e);
|
22079
22082
|
return va(t == null ? void 0 : t.audioTrack)(a2);
|
22080
22083
|
});
|
22081
|
-
var nS =
|
22084
|
+
var nS = A((a2, e) => {
|
22082
22085
|
let t = Ta(e)(a2);
|
22083
22086
|
return va(t == null ? void 0 : t.id)(a2);
|
22084
22087
|
});
|
22085
|
-
var cS =
|
22086
|
-
let t =
|
22088
|
+
var cS = A((a2, e) => {
|
22089
|
+
let t = Kr(a2, e);
|
22087
22090
|
if (t) {
|
22088
22091
|
if (t.type !== "video") {
|
22089
22092
|
b.w("Please pass video track here");
|
@@ -22092,53 +22095,53 @@ var cS = I((a2, e) => {
|
|
22092
22095
|
return t.layer;
|
22093
22096
|
}
|
22094
22097
|
});
|
22095
|
-
var Ma = createSelector([
|
22098
|
+
var Ma = createSelector([Rt, ke, $r], (a2, e, t) => {
|
22096
22099
|
if (t)
|
22097
22100
|
return a2.filter((i) => {
|
22098
22101
|
var r;
|
22099
22102
|
return !i.recipientPeer && !((r = i.recipientRoles) != null && r.length) || i.sender && ![e, t].includes(i.sender) ? false : [e, t].includes(i.recipientPeer);
|
22100
22103
|
});
|
22101
22104
|
});
|
22102
|
-
var ya = createSelector([
|
22105
|
+
var ya = createSelector([Rt, ha], (a2, e) => {
|
22103
22106
|
if (e)
|
22104
22107
|
return a2.filter((t) => {
|
22105
22108
|
var i, r;
|
22106
22109
|
return (i = t.recipientRoles) != null && i.length ? (r = t.recipientRoles) == null ? void 0 : r.includes(e) : false;
|
22107
22110
|
});
|
22108
22111
|
});
|
22109
|
-
var Jo = createSelector(
|
22112
|
+
var Jo = createSelector(Rt, (a2) => a2.filter((e) => {
|
22110
22113
|
var t;
|
22111
22114
|
return !e.recipientPeer && !((t = e.recipientRoles) != null && t.length);
|
22112
22115
|
}));
|
22113
22116
|
var Qo = createSelector([ya, ha], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
|
22114
|
-
var zo = createSelector([Ma,
|
22117
|
+
var zo = createSelector([Ma, $r], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
|
22115
22118
|
var dS = createSelector(Jo, (a2) => a2.filter((e) => !e.read).length);
|
22116
|
-
var lS =
|
22117
|
-
var uS =
|
22118
|
-
var pS =
|
22119
|
-
var hS =
|
22120
|
-
var ka =
|
22119
|
+
var lS = A(Ma);
|
22120
|
+
var uS = A(ya);
|
22121
|
+
var pS = A(Qo);
|
22122
|
+
var hS = A(zo);
|
22123
|
+
var ka = A($o);
|
22121
22124
|
var bS = createSelector([K, N], (a2, e) => Object.values(a2).map((i) => {
|
22122
22125
|
var r;
|
22123
22126
|
return { peer: i, isAudioEnabled: i.audioTrack ? (r = e[i.audioTrack]) == null ? void 0 : r.enabled : false };
|
22124
22127
|
}));
|
22125
22128
|
var Yo = (a2) => a2.roleChangeRequests[0] || null;
|
22126
|
-
var
|
22127
|
-
var
|
22128
|
-
var
|
22129
|
-
var Zo = createSelector([
|
22129
|
+
var IS = createSelector([Yo, K, Te], (a2, e, t) => a2 ? { requestedBy: a2.requestedBy ? e[a2.requestedBy] : void 0, role: t[a2.roleName], token: a2.token } : null);
|
22130
|
+
var RS = createSelector([at], (a2) => mt(a2));
|
22131
|
+
var AS = createSelector([ea], (a2) => mt(a2));
|
22132
|
+
var Zo = createSelector([z, N], (a2, e) => {
|
22130
22133
|
let t = null;
|
22131
22134
|
return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
|
22132
22135
|
});
|
22133
|
-
var en = createSelector([
|
22136
|
+
var en = createSelector([oe, N], (a2, e) => {
|
22134
22137
|
let t = null;
|
22135
22138
|
return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
|
22136
22139
|
});
|
22137
22140
|
var sn = ((n) => (n[n.STARTING = 0] = "STARTING", n[n.INIT_FETCHED = 1] = "INIT_FETCHED", n[n.SIGNAL_CONNECTED = 2] = "SIGNAL_CONNECTED", n[n.ICE_ESTABLISHED = 3] = "ICE_ESTABLISHED", n[n.MEDIA_CAPTURED = 4] = "MEDIA_CAPTURED", n[n.MEDIA_PUBLISHED = 5] = "MEDIA_PUBLISHED", n[n.COMPLETED = 6] = "COMPLETED", n))(sn || {});
|
22138
|
-
var
|
22141
|
+
var zr = class {
|
22139
22142
|
constructor() {
|
22140
22143
|
this.TAG = "[HTTPAnalyticsTransport]";
|
22141
|
-
this.failedEvents = new
|
22144
|
+
this.failedEvents = new pe("client-events");
|
22142
22145
|
this.isConnected = true;
|
22143
22146
|
this.env = null;
|
22144
22147
|
this.websocketURL = "";
|
@@ -22164,7 +22167,7 @@ var Yr = class {
|
|
22164
22167
|
throw Error(r.statusText);
|
22165
22168
|
this.removeFromStorage(e);
|
22166
22169
|
}).catch((r) => {
|
22167
|
-
|
22170
|
+
l.v(this.TAG, "Failed to send event", r, e), this.addEventToStorage(e);
|
22168
22171
|
});
|
22169
22172
|
}
|
22170
22173
|
flushFailedEvents() {
|
@@ -22180,66 +22183,66 @@ var Yr = class {
|
|
22180
22183
|
i > -1 && (t.splice(i, 1), this.failedEvents.set(t));
|
22181
22184
|
}
|
22182
22185
|
};
|
22183
|
-
var
|
22186
|
+
var Ee = new zr();
|
22184
22187
|
var j = ((s) => (s[s.ConnectFailed = 0] = "ConnectFailed", s[s.SignalDisconnect = 1] = "SignalDisconnect", s[s.JoinWSMessageFailed = 2] = "JoinWSMessageFailed", s[s.PublishIceConnectionFailed = 3] = "PublishIceConnectionFailed", s[s.SubscribeIceConnectionFailed = 4] = "SubscribeIceConnectionFailed", s))(j || {});
|
22185
|
-
var
|
22186
|
-
var
|
22188
|
+
var tr = ((n) => (n.Disconnected = "Disconnected", n.Connecting = "Connecting", n.Joined = "Joined", n.Preview = "Preview", n.Failed = "Failed", n.Reconnecting = "Reconnecting", n.Leaving = "Leaving", n))(tr || {});
|
22189
|
+
var lr = ((t) => (t[t.Publish = 0] = "Publish", t[t.Subscribe = 1] = "Subscribe", t))(lr || {});
|
22187
22190
|
var Pn = (a2) => a2.localPeer.id;
|
22188
22191
|
var En = (a2) => a2.localPeer.audioTrack;
|
22189
22192
|
var bn = (a2) => a2.localPeer.videoTrack;
|
22190
|
-
var
|
22193
|
+
var In = (a2, e) => e;
|
22191
22194
|
var Ka = (a2, e) => e;
|
22192
|
-
var
|
22195
|
+
var Rn = (a2) => a2.remoteTrackStats;
|
22193
22196
|
var qa = (a2) => a2.peerStats;
|
22194
|
-
var
|
22195
|
-
var
|
22196
|
-
var
|
22197
|
+
var ts = (a2) => a2.localTrackStats;
|
22198
|
+
var Ie = createSelector([qa, Pn], (a2, e) => a2[e]);
|
22199
|
+
var An = createSelector(Ie, (a2) => {
|
22197
22200
|
var e;
|
22198
22201
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.packetsLost;
|
22199
22202
|
});
|
22200
|
-
var Hn = createSelector(
|
22203
|
+
var Hn = createSelector(Ie, (a2) => {
|
22201
22204
|
var e;
|
22202
22205
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.jitter;
|
22203
22206
|
});
|
22204
|
-
var Cn = createSelector(
|
22207
|
+
var Cn = createSelector(Ie, (a2) => {
|
22205
22208
|
var e;
|
22206
22209
|
return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bitrate;
|
22207
22210
|
});
|
22208
|
-
var Ln = createSelector(
|
22211
|
+
var Ln = createSelector(Ie, (a2) => {
|
22209
22212
|
var e;
|
22210
22213
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bitrate;
|
22211
22214
|
});
|
22212
|
-
var Dn = createSelector(
|
22215
|
+
var Dn = createSelector(Ie, (a2) => {
|
22213
22216
|
var e;
|
22214
22217
|
return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.availableOutgoingBitrate;
|
22215
22218
|
});
|
22216
|
-
var wn = createSelector(
|
22219
|
+
var wn = createSelector(Ie, (a2) => {
|
22217
22220
|
var e;
|
22218
22221
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.availableIncomingBitrate;
|
22219
22222
|
});
|
22220
|
-
var _n = createSelector(
|
22223
|
+
var _n = createSelector(Ie, (a2) => {
|
22221
22224
|
var e;
|
22222
22225
|
return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bytesSent;
|
22223
22226
|
});
|
22224
|
-
var Nn = createSelector(
|
22227
|
+
var Nn = createSelector(Ie, (a2) => {
|
22225
22228
|
var e;
|
22226
22229
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bytesReceived;
|
22227
22230
|
});
|
22228
|
-
var On = createSelector([qa,
|
22229
|
-
var xn = createSelector([
|
22230
|
-
var
|
22231
|
-
var Un =
|
22232
|
-
var Bn =
|
22233
|
-
var Vn = createSelector([
|
22231
|
+
var On = createSelector([qa, In], (a2, e) => e ? a2[e] : void 0);
|
22232
|
+
var xn = createSelector([Rn, Ka], (a2, e) => e ? a2[e] : void 0);
|
22233
|
+
var is = createSelector([ts, Ka], (a2, e) => e ? a2[e] : void 0);
|
22234
|
+
var Un = A(On);
|
22235
|
+
var Bn = A(xn);
|
22236
|
+
var Vn = createSelector([ts, En], (a2, e) => {
|
22234
22237
|
var t;
|
22235
22238
|
return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
|
22236
22239
|
});
|
22237
|
-
var Fn =
|
22238
|
-
var Gn = createSelector([
|
22240
|
+
var Fn = A(createSelector(is, (a2) => a2 == null ? void 0 : a2[0]));
|
22241
|
+
var Gn = createSelector([ts, bn], (a2, e) => {
|
22239
22242
|
var t;
|
22240
22243
|
return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
|
22241
22244
|
});
|
22242
|
-
var Wn =
|
22245
|
+
var Wn = A(createSelector(is, (a2) => a2));
|
22243
22246
|
|
22244
22247
|
// src/Prebuilt/components/Header/StreamActions.tsx
|
22245
22248
|
import {
|
@@ -22438,7 +22441,7 @@ var RecordingStatus = () => {
|
|
22438
22441
|
};
|
22439
22442
|
var RecordingPauseStatus = () => {
|
22440
22443
|
const recording = useHMSStore30(selectRecordingState2);
|
22441
|
-
if (recording.hls && recording.hls.state ===
|
22444
|
+
if (recording.hls && recording.hls.state === Is.PAUSED) {
|
22442
22445
|
return /* @__PURE__ */ React64.createElement(
|
22443
22446
|
Tooltip,
|
22444
22447
|
{
|
@@ -22717,7 +22720,7 @@ init_define_process_env();
|
|
22717
22720
|
import { useEffect as useEffect21, useState as useState31 } from "react";
|
22718
22721
|
import { HMSNotificationTypes, useHMSNotifications, useHMSStore as useHMSStore33 } from "@100mslive/react-sdk";
|
22719
22722
|
var useUnreadPollQuizPresent = () => {
|
22720
|
-
const localPeerID = useHMSStore33(
|
22723
|
+
const localPeerID = useHMSStore33(ke);
|
22721
22724
|
const notification = useHMSNotifications(HMSNotificationTypes.POLL_STARTED);
|
22722
22725
|
const [unreadPollQuiz, setUnreadPollQuiz] = useState31(false);
|
22723
22726
|
useEffect21(() => {
|
@@ -23912,7 +23915,7 @@ var RoleOptions = ({ roleName, peerList }) => {
|
|
23912
23915
|
|
23913
23916
|
// src/Prebuilt/components/hooks/useGroupOnStageActions.tsx
|
23914
23917
|
init_define_process_env();
|
23915
|
-
import { match as match7, P as
|
23918
|
+
import { match as match7, P as P4 } from "ts-pattern";
|
23916
23919
|
import { selectPermissions as selectPermissions12, useHMSActions as useHMSActions30, useHMSStore as useHMSStore41 } from "@100mslive/react-sdk";
|
23917
23920
|
var useGroupOnStageActions = ({ peers }) => {
|
23918
23921
|
var _a7;
|
@@ -23929,9 +23932,9 @@ var useGroupOnStageActions = ({ peers }) => {
|
|
23929
23932
|
const offStageRolePeers = peers.filter(
|
23930
23933
|
(peer) => match7({ on_stage_role, bring_to_stage_label, roleName: peer.roleName }).with(
|
23931
23934
|
{
|
23932
|
-
on_stage_role:
|
23933
|
-
bring_to_stage_label:
|
23934
|
-
roleName:
|
23935
|
+
on_stage_role: P4.when((role) => !!role),
|
23936
|
+
bring_to_stage_label: P4.when((label) => !!label),
|
23937
|
+
roleName: P4.when((role) => !!role && off_stage_roles.includes(role))
|
23935
23938
|
},
|
23936
23939
|
() => true
|
23937
23940
|
).otherwise(() => false)
|
@@ -26789,7 +26792,7 @@ function EmojiPicker({ onSelect }) {
|
|
26789
26792
|
)));
|
26790
26793
|
}
|
26791
26794
|
var ChatFooter = ({ onSend, children }) => {
|
26792
|
-
var _a7, _b7, _c, _d,
|
26795
|
+
var _a7, _b7, _c, _d, _e;
|
26793
26796
|
const hmsActions = useHMSActions39();
|
26794
26797
|
const inputRef = useRef23(null);
|
26795
26798
|
const [draftMessage, setDraftMessage] = useChatDraftMessage();
|
@@ -26903,7 +26906,7 @@ var ChatFooter = ({ onSend, children }) => {
|
|
26903
26906
|
},
|
26904
26907
|
/* @__PURE__ */ React116.createElement(PauseCircleIcon2, null),
|
26905
26908
|
/* @__PURE__ */ React116.createElement(Text, { variant: "sm", css: { fontWeight: "$semiBold" } }, "Pause Chat")
|
26906
|
-
)))) : null), selection && /* @__PURE__ */ React116.createElement(Flex, { align: ((
|
26909
|
+
)))) : null), selection && /* @__PURE__ */ React116.createElement(Flex, { align: ((_e = inputRef.current) == null ? void 0 : _e.scrollHeight) === 32 ? "center" : "end", css: { gap: "$4", w: "100%" } }, /* @__PURE__ */ React116.createElement(
|
26907
26910
|
Flex,
|
26908
26911
|
{
|
26909
26912
|
align: "end",
|
@@ -28674,7 +28677,7 @@ var SidePane = ({
|
|
28674
28677
|
tileProps,
|
28675
28678
|
hideControls = false
|
28676
28679
|
}) => {
|
28677
|
-
var _a7, _b7, _c, _d,
|
28680
|
+
var _a7, _b7, _c, _d, _e, _f, _g;
|
28678
28681
|
const isMobile = useMedia24(config.media.md);
|
28679
28682
|
const sidepane = useHMSStore71(selectAppData8(APP_DATA.sidePane));
|
28680
28683
|
const activeScreensharePeerId = useHMSStore71(selectAppData8(APP_DATA.activeScreensharePeerId));
|
@@ -28684,7 +28687,7 @@ var SidePane = ({
|
|
28684
28687
|
const layoutMode = useUISettings(UI_SETTINGS.layoutMode);
|
28685
28688
|
const isLandscapeHLSStream = useLandscapeHLSStream();
|
28686
28689
|
const isMobileHLSStream = useMobileHLSStream();
|
28687
|
-
const backgroundMedia = ((_c = (_b7 = preview_elements == null ? void 0 : preview_elements.virtual_background) == null ? void 0 : _b7.background_media) == null ? void 0 : _c.length) ? (_d = preview_elements == null ? void 0 : preview_elements.virtual_background) == null ? void 0 : _d.background_media : ((
|
28690
|
+
const backgroundMedia = ((_c = (_b7 = preview_elements == null ? void 0 : preview_elements.virtual_background) == null ? void 0 : _b7.background_media) == null ? void 0 : _c.length) ? (_d = preview_elements == null ? void 0 : preview_elements.virtual_background) == null ? void 0 : _d.background_media : ((_e = elements == null ? void 0 : elements.virtual_background) == null ? void 0 : _e.background_media) || [];
|
28688
28691
|
const tileLayout = {
|
28689
28692
|
hideParticipantNameOnTile: tileProps == null ? void 0 : tileProps.hide_participant_name_on_tile,
|
28690
28693
|
roundedVideoTile: tileProps == null ? void 0 : tileProps.rounded_video_tile,
|
@@ -30799,7 +30802,7 @@ var useCloseScreenshareWhiteboard = () => {
|
|
30799
30802
|
};
|
30800
30803
|
|
30801
30804
|
// src/Prebuilt/layouts/VideoStreamingSection.tsx
|
30802
|
-
var HLSView = React157.lazy(() => import("./HLSView-
|
30805
|
+
var HLSView = React157.lazy(() => import("./HLSView-3TZCJ2RD.js"));
|
30803
30806
|
var VideoStreamingSection = ({
|
30804
30807
|
screenType,
|
30805
30808
|
elements,
|
@@ -31151,7 +31154,7 @@ var PreviousRoleInMetadata = () => {
|
|
31151
31154
|
|
31152
31155
|
// src/Prebuilt/components/ConferenceScreen.tsx
|
31153
31156
|
var ConferenceScreen = () => {
|
31154
|
-
var _a7, _b7, _c, _d,
|
31157
|
+
var _a7, _b7, _c, _d, _e, _f;
|
31155
31158
|
const { userName, endpoints, onJoin: onJoinFunc } = useHMSPrebuiltContext();
|
31156
31159
|
const screenProps = useRoomLayoutConferencingScreen();
|
31157
31160
|
const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
|
@@ -31250,7 +31253,7 @@ var ConferenceScreen = () => {
|
|
31250
31253
|
flex: "1 1 0",
|
31251
31254
|
minHeight: 0,
|
31252
31255
|
// @ts-ignore
|
31253
|
-
px: ((
|
31256
|
+
px: ((_e = (_d = (_c = screenProps == null ? void 0 : screenProps.elements) == null ? void 0 : _c.video_tile_layout) == null ? void 0 : _d.grid) == null ? void 0 : _e.edge_to_edge) ? 0 : "$10",
|
31254
31257
|
// TODO: padding to be controlled by section/element
|
31255
31258
|
paddingBottom: "env(safe-area-inset-bottom)",
|
31256
31259
|
"@lg": {
|
@@ -31571,7 +31574,7 @@ import { ExitIcon as ExitIcon3 } from "@100mslive/react-icons";
|
|
31571
31574
|
init_define_process_env();
|
31572
31575
|
import React164, { useContext as useContext5, useEffect as useEffect61 } from "react";
|
31573
31576
|
import { usePreviousDistinct } from "react-use";
|
31574
|
-
import { match as match13, P as
|
31577
|
+
import { match as match13, P as P5 } from "ts-pattern";
|
31575
31578
|
import { HMSRoomState as HMSRoomState8, selectRoomState as selectRoomState8, useHMSStore as useHMSStore89 } from "@100mslive/react-sdk";
|
31576
31579
|
|
31577
31580
|
// src/Prebuilt/components/hooks/useRedirectToLeave.tsx
|
@@ -31623,7 +31626,7 @@ var useAppStateManager = () => {
|
|
31623
31626
|
if (!roomLayout) {
|
31624
31627
|
return;
|
31625
31628
|
}
|
31626
|
-
match13([roomState, prevRoomState]).with([HMSRoomState8.Connected,
|
31629
|
+
match13([roomState, prevRoomState]).with([HMSRoomState8.Connected, P5.any], () => setActiveState("meeting" /* MEETING */)).with(
|
31627
31630
|
[HMSRoomState8.Disconnecting, HMSRoomState8.Connected],
|
31628
31631
|
[HMSRoomState8.Disconnecting, HMSRoomState8.Connecting],
|
31629
31632
|
[HMSRoomState8.Disconnecting, HMSRoomState8.Reconnecting],
|
@@ -31637,7 +31640,7 @@ var useAppStateManager = () => {
|
|
31637
31640
|
VBHandler.reset();
|
31638
31641
|
redirectToLeave(1e3);
|
31639
31642
|
}
|
31640
|
-
).with([HMSRoomState8.Disconnected,
|
31643
|
+
).with([HMSRoomState8.Disconnected, P5.nullish], () => {
|
31641
31644
|
setActiveState(isPreviewScreenEnabled ? "preview" /* PREVIEW */ : "meeting" /* MEETING */);
|
31642
31645
|
}).otherwise(() => {
|
31643
31646
|
});
|
@@ -31693,7 +31696,7 @@ var LeaveScreen = () => {
|
|
31693
31696
|
init_define_process_env();
|
31694
31697
|
import React166, { useEffect as useEffect62, useState as useState70 } from "react";
|
31695
31698
|
import { useMedia as useMedia40 } from "react-use";
|
31696
|
-
import { match as match14, P as
|
31699
|
+
import { match as match14, P as P6 } from "ts-pattern";
|
31697
31700
|
import { RefreshIcon } from "@100mslive/react-icons";
|
31698
31701
|
var MwebLandscapePrompt = () => {
|
31699
31702
|
const [showMwebLandscapePrompt, setShowMwebLandscapePrompt] = useState70(false);
|
@@ -31713,7 +31716,7 @@ var MwebLandscapePrompt = () => {
|
|
31713
31716
|
const angle = window.screen.orientation.angle;
|
31714
31717
|
const type = window.screen.orientation.type || "";
|
31715
31718
|
setShowMwebLandscapePrompt(
|
31716
|
-
match14({ angle, isLandscapeHLSStream, isLandscape, type }).with({ isLandscapeHLSStream: true }, () => false).with({ angle:
|
31719
|
+
match14({ angle, isLandscapeHLSStream, isLandscape, type }).with({ isLandscapeHLSStream: true }, () => false).with({ angle: P6.when((angle2) => angle2 && angle2 >= 90) }, ({ type: type2 }) => type2.includes("landscape")).otherwise(() => isLandscape)
|
31717
31720
|
);
|
31718
31721
|
};
|
31719
31722
|
handleRotation();
|
@@ -32510,7 +32513,7 @@ function Notifications() {
|
|
32510
32513
|
}, []);
|
32511
32514
|
useCustomEvent4({ type: ROLE_CHANGE_DECLINED, onEvent: handleRoleChangeDenied });
|
32512
32515
|
useEffect73(() => {
|
32513
|
-
var _a8, _b8, _c, _d,
|
32516
|
+
var _a8, _b8, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n2, _o2, _p, _q;
|
32514
32517
|
if (!notification || isNotificationDisabled) {
|
32515
32518
|
return;
|
32516
32519
|
}
|
@@ -32524,7 +32527,7 @@ function Notifications() {
|
|
32524
32527
|
ToastManager.addToast({
|
32525
32528
|
title: `Error: ${(_d = notification.data) == null ? void 0 : _d.message}`
|
32526
32529
|
});
|
32527
|
-
} else if (((
|
32530
|
+
} else if (((_e = notification.data) == null ? void 0 : _e.message) === "role limit reached") {
|
32528
32531
|
ToastManager.addToast({
|
32529
32532
|
title: "The room is currently full, try joining later",
|
32530
32533
|
close: true,
|
@@ -34114,4 +34117,4 @@ object-assign/index.js:
|
|
34114
34117
|
@license MIT
|
34115
34118
|
*)
|
34116
34119
|
*/
|
34117
|
-
//# sourceMappingURL=chunk-
|
34120
|
+
//# sourceMappingURL=chunk-BSNLB7LM.js.map
|