@trtc/calls-uikit-react 4.5.3-beta.1 → 4.5.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. package/package.json +4 -3
  2. package/src/Components/TUICallKit/TUICallKit.tsx +19 -0
  3. package/src/Components/components/SingleCall/MediaContainer/hooks/useGetLargeViewName.ts +9 -2
  4. package/src/Components/components/common/AutoPlayDialog/AutoPlayDialog.module.scss +33 -0
  5. package/src/Components/components/common/AutoPlayDialog/AutoPlayDialog.tsx +57 -0
  6. package/src/Components/components/common/AutoPlayDialog/index.ts +3 -0
  7. package/src/TUICallService/CallService/UIKitModal.ts +50 -12
  8. package/src/TUICallService/CallService/engineEventHandler.ts +4 -2
  9. package/src/TUICallService/CallService/index.ts +14 -14
  10. package/src/TUICallService/CallService/miniProgram.ts +4 -1
  11. package/src/TUICallService/UIKitModal/UIKitModal.ts +14 -5
  12. package/src/TUICallService/locales/en.ts +3 -0
  13. package/src/TUICallService/locales/ja_JP.ts +4 -2
  14. package/src/TUICallService/locales/zh-cn.ts +3 -0
  15. package/src/TUICallService/utils/env.ts +11 -1
  16. package/src/TUICallService/utils/permission.ts +294 -0
  17. package/src/TUICallService/utils/validate/avoidRepeatedCall.ts +5 -1
  18. package/src/index.ts +1 -1
  19. package/tuicall-uikit-react.es.js +2951 -2627
  20. package/tuicall-uikit-react.umd.js +4 -4
  21. package/types/Components/TUICallKit/TUICallKit.d.ts +2 -2
  22. package/types/Components/components/GroupCall/GroupCall.d.ts +1 -2
  23. package/types/Components/components/GroupCall/MediaContainer/AudioStream/AudioStream.d.ts +1 -2
  24. package/types/Components/components/GroupCall/MediaContainer/MediaContainer.d.ts +1 -2
  25. package/types/Components/components/GroupCall/MediaContainer/StreamLoading/StreamLoading.d.ts +1 -1
  26. package/types/Components/components/GroupCall/Waiting/Waiting.d.ts +1 -2
  27. package/types/Components/components/SingleCall/MediaContainer/AudioStream/AudioStream.d.ts +1 -2
  28. package/types/Components/components/SingleCall/MediaContainer/MediaContainer.d.ts +1 -2
  29. package/types/Components/components/SingleCall/SingleCall.d.ts +1 -1
  30. package/types/Components/components/SingleCall/Waiting/Waiting.d.ts +1 -2
  31. package/types/Components/components/base/Avatar/Avatar.d.ts +2 -2
  32. package/types/Components/components/base/Drag/Drag.d.ts +2 -2
  33. package/types/Components/components/base/Grid/Col/Col.d.ts +2 -2
  34. package/types/Components/components/base/Grid/Row/Row.d.ts +1 -1
  35. package/types/Components/components/base/GridLayout/GridLayout.d.ts +1 -2
  36. package/types/Components/components/base/GridLayout/GridPlusItem/GridPlusItem.d.ts +2 -2
  37. package/types/Components/components/base/Icon/Icon.d.ts +2 -2
  38. package/types/Components/components/base/Loading/Circle/Cilrcle.d.ts +1 -2
  39. package/types/Components/components/base/Loading/Dot/Dot.d.ts +1 -2
  40. package/types/Components/components/base/Loading/Loading.d.ts +2 -2
  41. package/types/Components/components/base/Message/Message.d.ts +2 -2
  42. package/types/Components/components/base/Message/MessageIcon/Error.d.ts +1 -1
  43. package/types/Components/components/base/Message/MessageIcon/Info.d.ts +1 -1
  44. package/types/Components/components/base/Message/MessageIcon/Success.d.ts +1 -1
  45. package/types/Components/components/base/Message/MessageIcon/Warning.d.ts +1 -1
  46. package/types/Components/components/base/Overlayer/Overlayer.d.ts +2 -2
  47. package/types/Components/components/base/Text/Text.d.ts +1 -2
  48. package/types/Components/components/base/Time/Time.d.ts +1 -2
  49. package/types/Components/components/base/ToggleWindow/ToggleWindow.d.ts +1 -1
  50. package/types/Components/components/base/ToggleWindow/ToggleWindowItem/ToggleWindowItem.d.ts +1 -2
  51. package/types/Components/components/common/AutoPlayDialog/AutoPlayDialog.d.ts +1 -0
  52. package/types/Components/components/common/AutoPlayDialog/index.d.ts +2 -0
  53. package/types/Components/components/common/ButtonPanel/ButtonPanel.d.ts +1 -2
  54. package/types/Components/components/common/ButtonPanel/ButtonPanelH5/ButtonPanelH5.d.ts +2 -2
  55. package/types/Components/components/common/ButtonPanel/ButtonPanelPC/ButtonPanelPC.d.ts +1 -2
  56. package/types/Components/components/common/ButtonPanel/button/Accept/Accept.d.ts +1 -2
  57. package/types/Components/components/common/ButtonPanel/button/BackgroundBlur/BackgroundBlur.d.ts +1 -2
  58. package/types/Components/components/common/ButtonPanel/button/Camera.d.ts +1 -2
  59. package/types/Components/components/common/ButtonPanel/button/FullScreen/FullScreen.d.ts +1 -2
  60. package/types/Components/components/common/ButtonPanel/button/Hangup/Hangup.d.ts +1 -2
  61. package/types/Components/components/common/ButtonPanel/button/Microphone.d.ts +1 -2
  62. package/types/Components/components/common/ButtonPanel/button/Minimize/Minimize.d.ts +1 -2
  63. package/types/Components/components/common/ButtonPanel/button/Reject/Reject.d.ts +1 -2
  64. package/types/Components/components/common/ButtonPanel/button/Speaker.d.ts +1 -2
  65. package/types/Components/components/common/ButtonPanel/button/SwitchAudioCall.d.ts +1 -2
  66. package/types/Components/components/common/ButtonPanel/button/SwitchCamera.d.ts +1 -2
  67. package/types/Components/components/common/CallMessage/CallMessage.d.ts +1 -1
  68. package/types/Components/components/common/CallMessage/CallMessageC2C/CallMessageC2C.d.ts +1 -2
  69. package/types/Components/components/common/CallMessage/CallMessageGroup/CallMessageGroup.d.ts +1 -2
  70. package/types/Components/components/common/DeviceSelector/DeviceSelector.d.ts +1 -2
  71. package/types/Components/components/common/FloatingWindow/FloatingWindow.d.ts +2 -2
  72. package/types/Components/components/common/FloatingWindow/FloatingWindowGroupCall/FloatingWindowGroupCall.d.ts +2 -2
  73. package/types/Components/components/common/FloatingWindow/FloatingWindowSingleCall/FloatingWindowSingleCall.d.ts +2 -2
  74. package/types/Components/components/common/MicrophoneVolumn/MicrophoneVolumn.d.ts +2 -2
  75. package/types/Components/components/common/OverlayStream/OverlayStream.d.ts +2 -2
  76. package/types/Components/components/common/Player/Player.d.ts +2 -2
  77. package/types/Components/components/common/Pusher/Pusher.d.ts +1 -1
  78. package/types/Components/components/common/StreamInfo/StreamInfo.d.ts +1 -2
  79. package/types/Components/components/common/StreamInfo/StreamInfoH5/StreamInfoH5.d.ts +1 -2
  80. package/types/Components/components/common/StreamInfo/StreamInfoPC/StreamInfoPC.d.ts +1 -2
  81. package/types/Components/components/common/Tip/Tip.d.ts +2 -2
  82. package/types/Components/components/common/TopBar/TopBar.d.ts +1 -2
  83. package/types/Components/components/common/TopBar/h5/TopBarH5.d.ts +1 -2
  84. package/types/Components/components/common/TopBar/pc/TopBarPC.d.ts +1 -2
  85. package/types/TUICallService/CallService/UIKitModal.d.ts +1 -1
  86. package/types/TUICallService/locales/en.d.ts +3 -0
  87. package/types/TUICallService/locales/ja_JP.d.ts +2 -0
  88. package/types/TUICallService/locales/zh-cn.d.ts +3 -0
  89. package/types/TUICallService/utils/env.d.ts +1 -0
  90. package/types/TUICallService/utils/permission.d.ts +88 -0
@@ -1,8 +1,8 @@
1
- (function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode("._message-c2c-container_14m8l_1{display:flex;flex-direction:row;align-items:center;word-break:break-all}._message-c2c-container_14m8l_1 ._call-content_14m8l_7{padding-left:8px}._message-c2c-container_14m8l_1._c2c_14m8l_10{cursor:pointer}._message-c2c-container_14m8l_1 ._icon_14m8l_13{width:20px;height:20px}._message-group-container_hjjzg_1._group_hjjzg_1{cursor:default}.tk-time{font-family:PingFang SC;font-size:16px;font-weight:500;line-height:20px;letter-spacing:0px;text-align:center}[data-uikit-theme=light] .tk-time,[data-uikit-theme=dark] .tk-time{color:var(--uikit-basic-color-white-1);transition:background-color .3s ease-out,border-color .3s ease-out}.tk-row-container{width:100%;box-sizing:border-box;margin:0;padding:0;list-style:none;display:flex;flex-flow:row wrap;flex-direction:row;flex-wrap:nowrap}.tk-row-container.tk-row-justify-left{justify-content:flex-start}.tk-row-container.tk-row-justify-center{justify-content:center}.tk-row-container.tk-row-justify-right{justify-content:flex-end}.tk-col-container{display:flex;box-sizing:border-box;overflow:hidden;align-items:center}.tk-col-container.tk-col-justify-content-start{justify-content:flex-start}.tk-col-container.tk-col-justify-content-center{justify-content:center}.tk-col-container.tk-col-justify-content-end{justify-content:flex-end}.tk-col-container.tk-col-align-items-start{align-items:flex-start}.tk-col-container.tk-col-align-items-center{align-items:center}.tk-col-container.tk-col-align-items-end{align-items:flex-end}.tk-col-12{flex:0 0 100%;max-width:100%}.tk-col-push-12{left:100%}.tk-col-pull-12{right:100%}.tk-col-offset-12{margin-left:100%}.tk-col-order-12{order:12}.tk-col-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.tk-col-push-11{left:91.6666666667%}.tk-col-pull-11{right:91.6666666667%}.tk-col-offset-11{margin-left:91.6666666667%}.tk-col-order-11{order:11}.tk-col-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.tk-col-push-10{left:83.3333333333%}.tk-col-pull-10{right:83.3333333333%}.tk-col-offset-10{margin-left:83.3333333333%}.tk-col-order-10{order:10}.tk-col-9{flex:0 0 75%;max-width:75%}.tk-col-push-9{left:75%}.tk-col-pull-9{right:75%}.tk-col-offset-9{margin-left:75%}.tk-col-order-9{order:9}.tk-col-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.tk-col-push-8{left:66.6666666667%}.tk-col-pull-8{right:66.6666666667%}.tk-col-offset-8{margin-left:66.6666666667%}.tk-col-order-8{order:8}.tk-col-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.tk-col-push-7{left:58.3333333333%}.tk-col-pull-7{right:58.3333333333%}.tk-col-offset-7{margin-left:58.3333333333%}.tk-col-order-7{order:7}.tk-col-6{flex:0 0 50%;max-width:50%}.tk-col-push-6{left:50%}.tk-col-pull-6{right:50%}.tk-col-offset-6{margin-left:50%}.tk-col-order-6{order:6}.tk-col-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.tk-col-push-5{left:41.6666666667%}.tk-col-pull-5{right:41.6666666667%}.tk-col-offset-5{margin-left:41.6666666667%}.tk-col-order-5{order:5}.tk-col-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.tk-col-push-4{left:33.3333333333%}.tk-col-pull-4{right:33.3333333333%}.tk-col-offset-4{margin-left:33.3333333333%}.tk-col-order-4{order:4}.tk-col-3{flex:0 0 25%;max-width:25%}.tk-col-push-3{left:25%}.tk-col-pull-3{right:25%}.tk-col-offset-3{margin-left:25%}.tk-col-order-3{order:3}.tk-col-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.tk-col-push-2{left:16.6666666667%}.tk-col-pull-2{right:16.6666666667%}.tk-col-offset-2{margin-left:16.6666666667%}.tk-col-order-2{order:2}.tk-col-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.tk-col-push-1{left:8.3333333333%}.tk-col-pull-1{right:8.3333333333%}.tk-col-offset-1{margin-left:8.3333333333%}.tk-col-order-1{order:1}.tk-col-0{display:none}.tk-col-push-0{left:auto}.tk-col-pull-0{right:auto}.tk-col-offset-0{margin-left:0}.tk-col-order-0{order:0}.tk-circle-container{width:30px;height:30px;margin:0 auto;position:absolute;z-index:1}.tk-circle-container .tk-circle-loading{animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.tk-circle-container svg{height:100%;width:100%}.tk-dot-container{position:absolute;display:flex;justify-content:space-between;align-items:center;width:50px;height:50px;margin:0 auto;z-index:1}.tk-dot-container .dot:nth-child(1){opacity:0;animation-duration:.8s;animation-delay:0s;animation-play-state:running}.tk-dot-container .dot:nth-child(2){opacity:.083;animation-duration:.8s;animation-delay:.2666666667s;animation-play-state:running}.tk-dot-container .dot:nth-child(3){opacity:.1667;animation-duration:.8s;animation-delay:.5333333333s;animation-play-state:running}.tk-dot-container .dot{width:20%;height:20%;border-radius:50%;background-color:currentColor;animation-duration:1.8s;animation-name:dotting;animation-timing-function:linear;animation-iteration-count:infinite;animation-fill-mode:both}[data-uikit-theme=light] .tk-dot-container .dot,[data-uikit-theme=dark] .tk-dot-container .dot{color:var(--uikit-basic-color-white-1);transition:background-color .3s ease-out,border-color .3s ease-out}@keyframes dotting{0%{opacity:.15}1%{opacity:.8}33%{opacity:.8}34%{opacity:.15}to{opacity:.15}}.tk-overlayer-container,.tk-overlayer-container .overlay{position:absolute;width:100%;height:100%}[data-uikit-theme=light] .tk-overlayer-container .overlay,[data-uikit-theme=dark] .tk-overlayer-container .overlay{background-color:var(--uikit-basic-color-black-4);transition:background-color .3s ease-out,border-color .3s ease-out}.tk-loading-container{display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;width:100%;height:100%;background:none}.tk-loading-container.tk-loading-overlayer{position:absolute;width:100%;height:100%}[data-uikit-theme=light] .tk-loading-container.tk-loading-overlayer,[data-uikit-theme=dark] .tk-loading-container.tk-loading-overlayer{background-color:var(--uikit-basic-color-black-4);transition:background-color .3s ease-out,border-color .3s ease-out}.tk-btn-container{display:flex}[data-uikit-theme=light] .tk-btn-container,[data-uikit-theme=dark] .tk-btn-container{color:var(--uikit-basic-color-white-2);transition:background-color .3s ease-out,border-color .3s ease-out}.tk-btn-container{transition-property:width,height,left,top;transition-duration:.3s;transition-timing-function:ease-in}.tk-btn-container.pc{cursor:pointer}.tk-btn-container.tk-flex-vertical{flex-direction:column;align-items:center}.tk-btn-container.tk-flex-vertical.tk-size-s.pc{height:auto;width:20px;font-size:12px;padding-left:0;padding-right:0}.tk-btn-container.tk-flex-vertical.tk-size-s.pc .tk-icon{width:20px;height:20px}.tk-btn-container.tk-flex-vertical.tk-size-s.pc .tk-icon .img{width:100%;height:100%}.tk-btn-container.tk-flex-vertical.tk-size-s.pc .tk-loading{font-size:20px}.tk-btn-container.tk-flex-vertical.tk-size-s.mobile{height:auto;width:40px;font-size:12px;padding-left:0;padding-right:0}.tk-btn-container.tk-flex-vertical.tk-size-s.mobile .tk-icon{width:40px;height:40px}.tk-btn-container.tk-flex-vertical.tk-size-s.mobile .tk-icon .img{width:100%;height:100%}.tk-btn-container.tk-flex-vertical.tk-size-s.mobile .tk-loading{font-size:40px}.tk-btn-container.tk-flex-vertical.tk-size-m.pc{height:auto;width:60px;font-size:12px;padding-left:0;padding-right:0}.tk-btn-container.tk-flex-vertical.tk-size-m.pc .tk-icon{width:60px;height:60px}.tk-btn-container.tk-flex-vertical.tk-size-m.pc .tk-icon .img{width:100%;height:100%}.tk-btn-container.tk-flex-vertical.tk-size-m.pc .tk-loading{font-size:60px}.tk-btn-container.tk-flex-vertical.tk-size-m.pc .tk-icon{width:40px;height:40px}.tk-btn-container.tk-flex-vertical.tk-size-m.mobile{height:auto;width:60px;font-size:12px;padding-left:0;padding-right:0}.tk-btn-container.tk-flex-vertical.tk-size-m.mobile .tk-icon .img{width:100%;height:100%}.tk-btn-container.tk-flex-vertical.tk-size-m.mobile .tk-loading{font-size:60px}.tk-btn-container.tk-flex-vertical.tk-size-m.mobile .tk-icon{width:60px;height:60px}.tk-btn-container.tk-flex-vertical.tk-size-l.pc{height:auto;width:60px;font-size:12px;padding-left:0;padding-right:0}.tk-btn-container.tk-flex-vertical.tk-size-l.pc .tk-icon{width:60px;height:60px}.tk-btn-container.tk-flex-vertical.tk-size-l.pc .tk-icon .img{width:100%;height:100%}.tk-btn-container.tk-flex-vertical.tk-size-l.pc .tk-loading{font-size:60px}.tk-btn-container.tk-flex-vertical.tk-size-l.mobile{height:auto;width:80px;font-size:12px;padding-left:0;padding-right:0}.tk-btn-container.tk-flex-vertical.tk-size-l.mobile .tk-icon{width:80px;height:80px}.tk-btn-container.tk-flex-vertical.tk-size-l.mobile .tk-icon .img{width:100%;height:100%}.tk-btn-container.tk-flex-vertical.tk-size-l.mobile .tk-loading{font-size:80px}.tk-btn-container.tk-flex-horizontal{flex-direction:row;align-items:center}.tk-btn-container.tk-flex-horizontal.tk-size-s{height:36px;width:12px;font-size:12px;padding-left:0;padding-right:0}.tk-btn-container.tk-flex-horizontal.tk-size-s .tk-icon{width:12px;height:12px}.tk-btn-container.tk-flex-horizontal.tk-size-s .tk-icon .img{width:100%;height:100%}.tk-btn-container.tk-flex-horizontal.tk-size-s .tk-loading{font-size:12px}.tk-btn-container.tk-flex-horizontal.tk-size-m{height:40px;width:16px;font-size:12px;padding-left:0;padding-right:0}.tk-btn-container.tk-flex-horizontal.tk-size-m .tk-icon{width:16px;height:16px}.tk-btn-container.tk-flex-horizontal.tk-size-m .tk-icon .img{width:100%;height:100%}.tk-btn-container.tk-flex-horizontal.tk-size-m .tk-loading{font-size:16px}.tk-btn-container.tk-flex-horizontal.tk-size-l{height:60px;width:18px;font-size:12px;padding-left:0;padding-right:0}.tk-btn-container.tk-flex-horizontal.tk-size-l .tk-icon{width:18px;height:18px}.tk-btn-container.tk-flex-horizontal.tk-size-l .tk-icon .img{width:100%;height:100%}.tk-btn-container.tk-flex-horizontal.tk-size-l .tk-loading{font-size:18px}.tk-btn-container.tk-ghost{background:none}.tk-btn-container .tk-content{margin-top:8px;text-align:center;line-height:15px;font-style:normal;font-weight:400;max-height:30px;overflow:hidden;-webkit-user-select:none;user-select:none}.tk-btn-container .tk-icon{transition-property:width,height,left,top;transition-duration:.3s;transition-timing-function:ease-in}.tk-btn-container .tk-icon.tk-size-s{height:36px;width:12px;font-size:12px;padding-left:0;padding-right:0}.tk-btn-container .tk-icon.tk-size-s .tk-icon{width:12px;height:12px}.tk-btn-container .tk-icon.tk-size-s .tk-icon .img{width:100%;height:100%}.tk-btn-container .tk-icon.tk-size-s .tk-loading{font-size:12px}.tk-btn-container .tk-icon.tk-size-m{height:40px;width:16px;font-size:12px;padding-left:0;padding-right:0}.tk-btn-container .tk-icon.tk-size-m .tk-icon{width:16px;height:16px}.tk-btn-container .tk-icon.tk-size-m .tk-icon .img{width:100%;height:100%}.tk-btn-container .tk-icon.tk-size-m .tk-loading{font-size:16px}.tk-btn-container .tk-icon.tk-size-l{height:60px;width:18px;font-size:12px;padding-left:0;padding-right:0}.tk-btn-container .tk-icon.tk-size-l .tk-icon{width:18px;height:18px}.tk-btn-container .tk-icon.tk-size-l .tk-icon .img{width:100%;height:100%}.tk-btn-container .tk-icon.tk-size-l .tk-loading{font-size:18px}._minimize-desk-container_gxy8f_1{margin-right:10px;width:20px!important;height:20px!important}._minimize-desk-container_gxy8f_1 .tk-icon{width:20px!important;height:20px!important}._minimize-mobile-container_gxy8f_11{margin-left:10px;width:24px!important;height:24px!important}._minimize-mobile-container_gxy8f_11 .tk-icon{width:24px!important;height:24px!important}.subtitle-content{position:relative;padding:10px 12px;color:#fff;background-color:#000000b8;opacity:.72;border-radius:8px;overflow-y:auto;overflow-x:hidden;bottom:10px;font-size:12px}.subtitle-content::-webkit-scrollbar{width:0;background:transparent}.subtitle-content{scrollbar-width:none}.subtitle-content:not(.subtitle-content--h5){width:640px;min-width:640px;height:180px;max-height:180px}.subtitle-content:not(.subtitle-content--h5) .subtitle-content__settings-btn{position:fixed;top:6px;right:6px;cursor:pointer;z-index:999}.subtitle-content--h5{position:relative;width:350px;min-width:350px;height:116px;max-height:116px;bottom:24px}.subtitle-content--h5 .subtitle-content__settings-btn{position:fixed;top:30%;right:4px;cursor:pointer;z-index:999;transform:translateY(-50%)}.sender-name{font-family:PingFang SC;font-weight:400;font-style:normal;font-size:12px;line-height:16px;letter-spacing:0px;color:#ffffffbf}.custom-select-wrapper{position:relative;width:100%}.custom-select{height:36px;padding:0 32px 0 12px;border:1px solid #DCDFE6;border-radius:4px;font-size:14px;color:#606266;background:#FFFFFF;cursor:pointer;display:flex;align-items:center;transition:all .3s}.custom-select:hover:not(.is-disabled){border-color:#c0c4cc}.custom-select.is-open{border-color:#409eff;box-shadow:0 0 0 2px #409eff33}.custom-select.is-disabled{background:#F5F7FA;color:#c0c4cc;cursor:not-allowed;border-color:#e4e7ed}.select-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.select-arrow{position:absolute;right:12px;top:50%;transform:translateY(-50%);pointer-events:none;transition:transform .3s}.select-arrow.is-open{transform:translateY(-50%) rotate(180deg)}.custom-options{position:absolute;top:100%;left:0;right:0;background:#FFFFFF;border:1px solid #DCDFE6;border-radius:4px;box-shadow:0 2px 12px #0000001a;z-index:1000;margin-top:4px;overflow:hidden;max-height:200px;overflow-y:auto}.custom-option{padding:8px 12px;font-size:14px;color:#606266;cursor:pointer;transition:all .2s}.custom-option:hover{background:#F5F7FA;color:#409eff}.custom-option.is-selected{color:#409eff;font-weight:500}.custom-option.is-selected:hover{background:#F5F7FA;color:#409eff}.custom-options::-webkit-scrollbar{width:4px}.custom-options::-webkit-scrollbar-track{background:transparent}.custom-options::-webkit-scrollbar-thumb{background:rgba(0,0,0,.1);border-radius:2px}.custom-options::-webkit-scrollbar-thumb:hover{background:rgba(0,0,0,.2)}.custom-options{scrollbar-width:thin;scrollbar-color:rgba(0,0,0,.1) transparent}.subtitle-settings-overlay-pc{position:absolute;top:50%;left:50%;width:489px;height:430px;transform:translate(-50%,-50%);display:flex;align-items:center;justify-content:center;z-index:1000;font-family:PingFang SC;box-shadow:0 2px 6px 0 var(--Black-8)}.subtitle-settings-modal-pc{background:white;border-radius:12px;width:480px;height:430px;overflow:hidden}.modal-header-pc{display:flex;align-items:center;justify-content:space-between;padding:24px 24px 10px}.modal-title-pc{font-size:16px;font-weight:600;color:#000000e5}.close-btn-pc{background:none;border:none;cursor:pointer;padding:4px;border-radius:4px;transition:background-color .2s}.close-btn-pc:hover{background-color:#f5f5f5}.modal-content-pc{padding:24px}.setting-item-pc{margin-bottom:24px}.setting-item-pc:last-child{margin-bottom:0}.setting-label-pc{display:block;font-size:14px;font-weight:400;color:#4f586b;margin-bottom:8px}.modal-footer-pc{display:flex;justify-content:flex-end;gap:20px;padding:16px 24px 24px}.btn-pc{width:72px;height:32px;font-size:14px;font-weight:500;cursor:pointer;border-radius:26px;transition:all .2s;border:1px solid transparent}.btn-pc.btn-cancel-pc{color:#1c66e5;border-color:#1c66e5;background-color:#fff}.btn-pc.btn-confirm-pc{background:#1C66E5;color:#fff}.subtitle-settings-overlay{position:fixed;top:0;left:0;right:0;bottom:0;width:100vw;height:100vh;background-color:#00000080;z-index:1000;display:flex;align-items:center;justify-content:center;font-family:PingFang SC}.subtitle-settings-modal{background-color:#fff;border-radius:12px;width:90%;max-width:400px;max-height:80vh;display:flex;flex-direction:column;overflow:hidden;animation:modalSlideIn .3s ease-out}@keyframes modalSlideIn{0%{opacity:0;transform:scale(.9) translateY(-20px)}to{opacity:1;transform:scale(1) translateY(0)}}.modal-header{text-align:center;padding:20px 20px 16px}.modal-title{font-size:18px;font-weight:500;color:#333;margin:0}.modal-content{flex:1;overflow-y:auto;padding:16px 0}.modal-footer{display:flex;gap:12px;padding:16px 20px 20px}.btn{flex:1;height:44px;border-radius:10px;border:none;font-size:16px;font-weight:500;cursor:pointer;transition:all .2s}.btn.btn-cancel{color:#1c66e5;border:1px solid #1C66E5;background-color:#fff}.btn.btn-confirm{background-color:#1677ff;color:#fff}.setting-group{margin-bottom:12px}.setting-group:last-child{margin-bottom:0}.group-title{font-size:13px;color:#666;padding:0 20px 8px;margin-bottom:2px}.group-content{background:white;border-radius:8px;margin:0 16px;overflow:hidden;border:1px solid #f0f0f0}.setting-section{border-bottom:1px solid #f0f0f0}.setting-section:last-child{border-bottom:none}.section-header{display:flex;align-items:center;justify-content:space-between;padding:16px;cursor:pointer;transition:background-color .2s}.section-header:active{background-color:#f8f8f8}.section-title{font-size:16px;color:#333;font-weight:400}.section-value{display:flex;align-items:center;font-size:14px;color:#666;gap:4px}.arrow-icon{flex-shrink:0}.toggle-switch{width:44px;height:24px;background-color:#ccc;border-radius:12px;position:relative;cursor:pointer;transition:background-color .3s}.toggle-switch.active{background-color:#1677ff}.toggle-slider{width:20px;height:20px;background-color:#fff;border-radius:50%;position:absolute;top:2px;left:2px;transition:transform .3s;box-shadow:0 2px 4px #0003}.toggle-switch.active .toggle-slider{transform:translate(20px)}.language-selector-overlay{position:fixed;top:0;left:0;right:0;bottom:0;width:100%;height:100vh;background-color:#00000080;z-index:1100;display:flex;flex-direction:column;justify-content:flex-end;overflow:hidden}.language-selector{max-height:70vh;display:flex;flex-direction:column;background-color:#fff;border-radius:16px 16px 0 0;padding-bottom:env(safe-area-inset-bottom);transform:translateY(0);animation:slideUp .3s ease-out}@keyframes slideUp{0%{transform:translateY(100%)}to{transform:translateY(0)}}.selector-header{text-align:center;padding:16px 16px 12px;border-bottom:1px solid #e5e5e5;background:white;border-radius:16px 16px 0 0}.selector-title{font-size:12px;font-weight:400;color:#0006;margin:0}.language-list{flex:1;overflow-y:auto;padding:0 16px 16px;max-height:50vh}.language-item{font-family:PingFang SC;font-weight:400;font-style:Regular;font-size:16px;leading-trim:NONE;line-height:100%;letter-spacing:0px;text-align:center;text-transform:capitalize;display:flex;align-items:center;justify-content:center;padding:16px 0;border-bottom:1px solid #f0f0f0;cursor:pointer;transition:background-color .2s}.language-item:active{background-color:#f8f8f8}.language-item.selected{color:#1677ff}.language-item span{font-size:16px;color:inherit}.language-item:last-child{border-bottom:none}.check-icon{flex-shrink:0}.ai-transcriber-switch{display:flex;align-items:center;gap:8px;padding:8px 12px;border-radius:20px;color:#fff;font-size:14px;font-weight:400;font-family:PingFang SC;cursor:pointer}.ai-transcriber-switch__label{white-space:nowrap}.ai-transcriber-switch__toggle{position:relative;width:32px;height:20px;background:rgba(255,255,255,.3019607843);border-radius:10px;transition:background-color .3s ease;cursor:pointer}.ai-transcriber-switch__toggle--active{background:#1C66E5}.ai-transcriber-switch__slider{position:absolute;top:3px;left:2px;width:14px;height:14px;border-radius:50%;background:white;transition:transform .3s ease;box-shadow:0 2px 4px #0003}.ai-transcriber-switch__toggle--active .ai-transcriber-switch__slider{transform:translate(14px)}.tk-message-container{display:flex;flex-direction:row;align-items:center;width:fit-content;margin-bottom:10px;border-radius:6px}[data-uikit-theme=light] .tk-message-container,[data-uikit-theme=dark] .tk-message-container{box-shadow:0 1px 5px var(--uikit-basic-color-black-8),0 8px 12px var(--uikit-basic-color-black-8),0 12px 26px var(--uikit-basic-color-black-8);transition:background-color .3s ease-out,border-color .3s ease-out}.tk-message-container{padding:10px}[data-uikit-theme=light] .tk-message-container{background-color:var(--uikit-theme-light-toast-color-default);color:var(--uikit-theme-light-text-color-primary);transition:background-color .3s ease-out,border-color .3s ease-out}[data-uikit-theme=dark] .tk-message-container{background-color:var(--uikit-theme-dark-toast-color-default);color:var(--uikit-theme-dark-text-color-primary);transition:background-color .3s ease-out,border-color .3s ease-out}[data-uikit-theme=light] .tk-message-container svg{margin-right:4px;fill:var(--uikit-theme-light-text-color-primary);transition:background-color .3s ease-out,border-color .3s ease-out}[data-uikit-theme=dark] .tk-message-container svg{margin-right:4px;fill:var(--uikit-theme-dark-text-color-primary);transition:background-color .3s ease-out,border-color .3s ease-out}.tk-message-container.tk-message-plaintext{background:none;border:0;box-shadow:none;margin:0;padding:0}[data-uikit-theme=light] .tk-message-container.tk-message-plaintext,[data-uikit-theme=dark] .tk-message-container.tk-message-plaintext{color:var(--uikit-basic-color-white-1);transition:background-color .3s ease-out,border-color .3s ease-out}.tk-message-container .tk-message-icon{width:1em!important;height:1em!important}.tk-message-container .tk-message-icon.tip-icon{margin-right:8px}.tk-message-container .tk-message-icon.close-icon{margin-left:24px}.message-list-container{top:0;position:fixed;left:0;width:100%;display:flex;justify-content:center}._top-bar-container_1m8fv_1{width:100%;height:5.8%;position:absolute;display:flex;align-items:center;z-index:5}._top-bar-container_1m8fv_1 ._top-bar_1m8fv_1{height:24px}._full-screen-container_16bjq_1{width:20px!important;height:20px!important;margin-right:10px}._full-screen-container_16bjq_1 .tk-icon{line-height:20px;width:20px!important;height:20px!important}._single-top-bar_v1223_1{position:absolute;width:100%;height:20px;line-height:20px;margin-top:20px;z-index:2;display:flex;align-items:center;justify-content:flex-end}._topbar-center_v1223_13{position:absolute;left:50%;transform:translate(-50%);display:flex;align-items:center;justify-content:center}._topbar-right-controls_v1223_22{margin-right:10px;display:flex;align-items:center;gap:16px;z-index:3}._btn-icon_oeiwp_1{width:50%!important;height:50%!important}._btn-icon-container_oeiwp_6{display:flex;align-items:center;justify-content:center;border-radius:50%;border:0px}[data-uikit-theme=light] ._btn-icon-container_oeiwp_6,[data-uikit-theme=dark] ._btn-icon-container_oeiwp_6{background-color:var(--uikit-basic-color-white-1);transition:background-color .3s ease-out,border-color .3s ease-out}[data-uikit-theme=light] ._btn-icon-container_oeiwp_6.close,[data-uikit-theme=dark] ._btn-icon-container_oeiwp_6.close,[data-uikit-theme=light] ._btn-icon-container_oeiwp_6.disabled,[data-uikit-theme=dark] ._btn-icon-container_oeiwp_6.disabled{background-color:var(--uikit-basic-color-black-5);transition:background-color .3s ease-out,border-color .3s ease-out}._arrow-btn_oeiwp_38{padding:4px;width:12px!important;height:12px!important;margin:20px 0 0;transform:translateY(-50%)}._arrow-btn_oeiwp_38 .tk-icon{width:12px!important;height:12px!important}._tk-btn_oeiwp_50{transition-property:width,height,left,top;transition-duration:.3s;transition-timing-function:ease-in;width:70px!important}[data-uikit-theme=light] ._accept-icon-container_171af_1{background-color:var(--uikit-theme-light-button-color-accept);transition:background-color .3s ease-out,border-color .3s ease-out}[data-uikit-theme=dark] ._accept-icon-container_171af_1{background-color:var(--uikit-theme-dark-button-color-accept);transition:background-color .3s ease-out,border-color .3s ease-out}[data-uikit-theme=light] ._reject-icon-container_mg9y1_1{background-color:var(--uikit-theme-light-button-color-hangup);transition:background-color .3s ease-out,border-color .3s ease-out}[data-uikit-theme=dark] ._reject-icon-container_mg9y1_1{background-color:var(--uikit-theme-dark-button-color-hangup);transition:background-color .3s ease-out,border-color .3s ease-out}.tk-popup__arrow{left:50%;width:10px;height:10px;z-index:-1;margin-top:-3px;position:absolute}[data-uikit-theme=light] .tk-popup__arrow,[data-uikit-theme=dark] .tk-popup__arrow{background-color:var(--uikit-basic-color-black-4);border:.5px solid var(--uikit-basic-color-white-7);transition:background-color .3s ease-out,border-color .3s ease-out}.tk-popup__arrow{backdrop-filter:blur(15px);-webkit-backdrop-filter:blur(15px);transform:rotate(45deg) translate(-50%);border-top-left-radius:100%}.tk-popup__content{backdrop-filter:blur(15px);-webkit-backdrop-filter:blur(15px);border-radius:6px;padding:3px;font-size:14px}[data-uikit-theme=light] .tk-popup__content,[data-uikit-theme=dark] .tk-popup__content{background-color:var(--uikit-basic-color-black-4);border:.5px solid var(--uikit-basic-color-white-7);color:var(--uikit-basic-color-white-1);transition:background-color .3s ease-out,border-color .3s ease-out}._device-selector-container_n6s5h_1{width:180px;display:flex;flex-direction:column;align-items:center;padding:6px;font-weight:500}._device-selector-container_n6s5h_1 ._device-item_n6s5h_9{width:100%;overflow:hidden;padding:5px 3px;text-overflow:ellipsis;white-space:nowrap;font-size:14px;text-align:left;line-height:20px;cursor:pointer}[data-uikit-theme=light] ._device-selector-container_n6s5h_1 ._device-item_n6s5h_9._control-item_n6s5h_20,[data-uikit-theme=dark] ._device-selector-container_n6s5h_1 ._device-item_n6s5h_9._control-item_n6s5h_20{border-top:1px solid var(--uikit-basic-color-white-7);transition:background-color .3s ease-out,border-color .3s ease-out}._device-selector-container_n6s5h_1 ._device-item_n6s5h_9._control-item_n6s5h_20{padding-left:6px}[data-uikit-theme=light] ._device-selector-container_n6s5h_1 ._device-item_n6s5h_9._btn_n6s5h_31,[data-uikit-theme=dark] ._device-selector-container_n6s5h_1 ._device-item_n6s5h_9._btn_n6s5h_31{border-top:1px solid var(--uikit-basic-color-white-2);transition:background-color .3s ease-out,border-color .3s ease-out}._device-selector-container_n6s5h_1 ._device-item_n6s5h_9:hover{border-radius:5px}[data-uikit-theme=light] ._device-selector-container_n6s5h_1 ._device-item_n6s5h_9:hover,[data-uikit-theme=dark] ._device-selector-container_n6s5h_1 ._device-item_n6s5h_9:hover{background:var(--uikit-basic-color-white-7);transition:background-color .3s ease-out,border-color .3s ease-out}[data-uikit-theme=light] ._device-selector-container_n6s5h_1 ._device-item_n6s5h_9._select_n6s5h_50,[data-uikit-theme=dark] ._device-selector-container_n6s5h_1 ._device-item_n6s5h_9._select_n6s5h_50{background-color:var(--uikit-basic-color-white-6);transition:background-color .3s ease-out,border-color .3s ease-out}._device-selector-container_n6s5h_1 ._device-item_n6s5h_9._select_n6s5h_50{border-radius:3px}._scroll-container_n6s5h_62{width:100%;overflow:hidden;border-radius:3px}._scroll-container_n6s5h_62 ._scroll-content_n6s5h_67{max-height:60px;margin-right:-20px;overflow:hidden auto;padding-right:20px}[data-uikit-theme=light] ._hangup-icon-container_7aq1c_1{background-color:var(--uikit-theme-light-button-color-hangup);transition:background-color .3s ease-out,border-color .3s ease-out}[data-uikit-theme=dark] ._hangup-icon-container_7aq1c_1{background-color:var(--uikit-theme-dark-button-color-hangup);transition:background-color .3s ease-out,border-color .3s ease-out}[data-uikit-theme=light] ._background-blur-icon-container_1g5wa_1,[data-uikit-theme=dark] ._background-blur-icon-container_1g5wa_1{background-color:var(--uikit-basic-color-white-1);transition:background-color .3s ease-out,border-color .3s ease-out}[data-uikit-theme=light] ._background-blur-icon-container_1g5wa_1._close_1g5wa_9,[data-uikit-theme=dark] ._background-blur-icon-container_1g5wa_1._close_1g5wa_9{background-color:var(--uikit-basic-color-black-5);transition:background-color .3s ease-out,border-color .3s ease-out}._button-panel-h5-container_f9br3_1{display:flex;flex-direction:column;align-items:center;position:absolute;box-sizing:border-box;bottom:0;width:100%;height:14%;border-radius:10px 10px 0 0;z-index:5;transition-property:width,height,left,top;transition-duration:.3s;transition-timing-function:ease-in}._button-panel-h5-container_f9br3_1._groupcall_f9br3_16{background:none}[data-uikit-theme=light] ._button-panel-h5-container_f9br3_1._groupcall_f9br3_16._show-panel-background_f9br3_19,[data-uikit-theme=dark] ._button-panel-h5-container_f9br3_1._groupcall_f9br3_16._show-panel-background_f9br3_19{background-color:var(--uikit-basic-color-gray-dark-3);transition:background-color .3s ease-out,border-color .3s ease-out}._button-panel-h5-container_f9br3_1._open_f9br3_27{height:27%}._button-panel-h5-container_f9br3_1 ._singlecall-panel_f9br3_30{width:72%;max-width:400px;position:absolute;bottom:6vh}._button-panel-h5-container_f9br3_1 ._groupcall-panel_f9br3_36{width:72%;position:absolute;top:6%}._button-panel-h5-container_f9br3_1 ._groupcall-panel_f9br3_36._close_f9br3_41{top:27%;margin-left:9.3vw}._button-panel-h5-container_f9br3_1 ._toggle-panel-btn_f9br3_45{position:absolute;left:8.2vw;bottom:6vh;z-index:1}._button-panel-h5-container_f9br3_1 ._toggle-panel-btn_f9br3_45._close_f9br3_41{width:8vw!important;height:8vw!important;top:32%}._button-panel-h5-container_f9br3_1 ._toggle-panel-btn_f9br3_45._close_f9br3_41 .prefix-icon{width:8vw!important;height:8vw!important}._button-panel-pc-container_x4npp_1{position:absolute;width:55%;margin:0 auto;bottom:6%;left:50%;z-index:2;transform:translate(-50%)}.tk-avatar-container{display:flex;align-items:center;justify-content:center;border:0px;padding:0;overflow:hidden}[data-uikit-theme=light] .tk-avatar-container,[data-uikit-theme=dark] .tk-avatar-container{background-color:var(--uikit-basic-color-white-1);transition:background-color .3s ease-out,border-color .3s ease-out}.tk-avatar-container.tk-avatar-shape-round{border-radius:6px}.tk-avatar-container.tk-avatar-shape-circle{border-radius:50%}.tk-avatar-container img{width:100%;height:100%;object-fit:fill}._microphone-container_nczz7_1{height:20px;width:20px;flex-shrink:0}._microphone-container_nczz7_1 svg{width:100%;height:100%}._overlay-stream-container_1aqie_1{width:100%;height:100%;position:absolute;top:0}._overlay-stream-container_1aqie_1 ._blur_1aqie_7{width:100%;height:100%;left:0;top:0;position:absolute}[data-uikit-theme=light] ._overlay-stream-container_1aqie_1 ._blur_1aqie_7 .overlay{background-color:var(--uikit-basic-color-black-3);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}[data-uikit-theme=light] ._overlay-stream-container_1aqie_1 ._blur_1aqie_7{transition:background-color .3s ease-out,border-color .3s ease-out}[data-uikit-theme=dark] ._overlay-stream-container_1aqie_1 ._blur_1aqie_7 .overlay{background-color:var(--uikit-basic-color-black-3);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}[data-uikit-theme=dark] ._overlay-stream-container_1aqie_1 ._blur_1aqie_7{transition:background-color .3s ease-out,border-color .3s ease-out}._overlay-stream-container_1aqie_1._pc_1aqie_30 ._user-info-container_1aqie_30{position:absolute;display:flex;flex-direction:column;align-content:center;align-items:center;justify-content:center;width:100%;height:100%;z-index:1}[data-uikit-theme=light] ._overlay-stream-container_1aqie_1._pc_1aqie_30 ._user-info-container_1aqie_30,[data-uikit-theme=dark] ._overlay-stream-container_1aqie_1._pc_1aqie_30 ._user-info-container_1aqie_30{color:var(--uikit-basic-color-white-1);transition:background-color .3s ease-out,border-color .3s ease-out}._overlay-stream-container_1aqie_1._pc_1aqie_30 ._user-info-container_1aqie_30 ._avatar_1aqie_49{width:100px;height:100px}._overlay-stream-container_1aqie_1._pc_1aqie_30 ._user-info-container_1aqie_30 ._avatar_1aqie_49._float_1aqie_53,._overlay-stream-container_1aqie_1._pc_1aqie_30 ._user-info-container_1aqie_30 ._avatar_1aqie_49._small_1aqie_57{width:40px;height:40px}._overlay-stream-container_1aqie_1._pc_1aqie_30 ._user-info-container_1aqie_30 ._avatar_1aqie_49._small_1aqie_57._float_1aqie_53{width:20px;height:20px}._overlay-stream-container_1aqie_1._pc_1aqie_30 ._user-info-container_1aqie_30 ._username_1aqie_65{display:flex;flex-direction:row;align-items:center;justify-content:center;width:100%}._overlay-stream-container_1aqie_1._pc_1aqie_30 ._user-info-container_1aqie_30 ._username_1aqie_65 ._nick_1aqie_72{text-align:center;font-family:PingFang SC;font-size:40px;font-style:normal;font-weight:500;line-height:normal;max-width:50%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._overlay-stream-container_1aqie_1._pc_1aqie_30 ._user-info-container_1aqie_30 ._username_1aqie_65 ._nick_1aqie_72._float_1aqie_53,._overlay-stream-container_1aqie_1._pc_1aqie_30 ._user-info-container_1aqie_30 ._username_1aqie_65 ._nick_1aqie_72._small_1aqie_57{font-size:20px}._overlay-stream-container_1aqie_1._pc_1aqie_30 ._user-info-container_1aqie_30 ._username_1aqie_65 ._nick_1aqie_72._small_1aqie_57._float_1aqie_53{font-size:12px}._overlay-stream-container_1aqie_1._mobile_1aqie_96 ._user-info-container_1aqie_30{position:absolute;display:flex;flex-direction:column;align-content:center;align-items:center;top:26%;width:100%;z-index:1}[data-uikit-theme=light] ._overlay-stream-container_1aqie_1._mobile_1aqie_96 ._user-info-container_1aqie_30,[data-uikit-theme=dark] ._overlay-stream-container_1aqie_1._mobile_1aqie_96 ._user-info-container_1aqie_30{color:var(--uikit-basic-color-white-1);transition:background-color .3s ease-out,border-color .3s ease-out}._overlay-stream-container_1aqie_1._mobile_1aqie_96 ._user-info-container_1aqie_30 ._avatar_1aqie_49{width:100px;height:100px}._overlay-stream-container_1aqie_1._mobile_1aqie_96 ._user-info-container_1aqie_30 ._avatar_1aqie_49._float_1aqie_53,._overlay-stream-container_1aqie_1._mobile_1aqie_96 ._user-info-container_1aqie_30 ._avatar_1aqie_49._small_1aqie_57{width:40px;height:40px}._overlay-stream-container_1aqie_1._mobile_1aqie_96 ._user-info-container_1aqie_30 ._avatar_1aqie_49._small_1aqie_57._float_1aqie_53{width:20px;height:20px}._overlay-stream-container_1aqie_1._mobile_1aqie_96 ._user-info-container_1aqie_30 ._username_1aqie_65{display:flex;flex-direction:row;align-items:center;justify-content:center;width:100%}._overlay-stream-container_1aqie_1._mobile_1aqie_96 ._user-info-container_1aqie_30 ._username_1aqie_65 ._nick_1aqie_72{text-align:center;margin-top:12px;font-family:PingFang SC;font-size:18px;font-style:normal;font-weight:500;line-height:normal;max-width:50%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._overlay-stream-container_1aqie_1._mobile_1aqie_96 ._user-info-container_1aqie_30 ._username_1aqie_65 ._nick_1aqie_72._small_1aqie_57{font-size:15px}._overlay-stream-container_1aqie_1._mobile_1aqie_96 ._user-info-container_1aqie_30 ._tip_1aqie_153{margin-top:12px}._singlecall-waiting-container_pmvxi_1{z-index:1}.tk-togglewindow-container{position:relative;width:100%;height:100%;border-radius:6px}.tk-togglewindowitem-container{position:absolute;border-radius:12px;overflow:hidden}.tk-togglewindowitem-container.mobile{border-radius:0}.tk-togglewindowitem-container.tk-togglewindowitem-big{top:0;left:0;right:0;bottom:0;width:100%;height:100%}[data-uikit-theme=light] .tk-togglewindowitem-container.tk-togglewindowitem-big,[data-uikit-theme=dark] .tk-togglewindowitem-container.tk-togglewindowitem-big{background-color:var(--uikit-basic-color-black-2);transition:background-color .3s ease-out,border-color .3s ease-out}.tk-togglewindowitem-container.tk-togglewindowitem-small{top:2%;left:2%;width:22%;height:21%;z-index:2;border-radius:12px}[data-uikit-theme=light] .tk-togglewindowitem-container.tk-togglewindowitem-small,[data-uikit-theme=dark] .tk-togglewindowitem-container.tk-togglewindowitem-small{background-color:var(--uikit-basic-color-black-2);transition:background-color .3s ease-out,border-color .3s ease-out}.tk-togglewindowitem-container.tk-togglewindowitem-small.mobile{width:24.3%;height:19.7%;border-radius:5px;left:98%;position:absolute;top:8%;transform:translate(-100%)}.tk-text{display:inline-block;overflow:hidden;text-align:center;line-height:normal;white-space:nowrap}.tk-text.tk-text--line-clamp{display:-webkit-inline-box;-webkit-box-orient:vertical;white-space:normal}._stream-info-container-h5_182j9_1{width:calc(100% - 16px);display:flex;z-index:1;position:absolute;left:0;bottom:0;text-wrap:nowrap;margin:8px;background:none}[data-uikit-theme=light] ._stream-info-container-h5_182j9_1,[data-uikit-theme=dark] ._stream-info-container-h5_182j9_1{color:var(--uikit-basic-color-white-1);transition:background-color .3s ease-out,border-color .3s ease-out}._stream-info-container-h5_182j9_1._single_182j9_20{height:20px}._stream-info-container-pc_fw50h_1{width:100%;height:25px;display:flex;z-index:1;position:absolute;left:0;bottom:0}[data-uikit-theme=light] ._stream-info-container-pc_fw50h_1,[data-uikit-theme=dark] ._stream-info-container-pc_fw50h_1{color:var(--uikit-basic-color-white-1);transition:background-color .3s ease-out,border-color .3s ease-out}._stream-info-container-pc_fw50h_1{text-wrap:nowrap;background:none;justify-content:space-between}._stream-info-container-pc_fw50h_1 ._stream-info-content_fw50h_23{display:flex;max-width:60%;flex-direction:row;align-content:center;align-items:center;padding:2px 10px}[data-uikit-theme=light] ._stream-info-container-pc_fw50h_1 ._stream-info-content_fw50h_23,[data-uikit-theme=dark] ._stream-info-container-pc_fw50h_1 ._stream-info-content_fw50h_23{background-color:var(--uikit-basic-color-black-5);transition:background-color .3s ease-out,border-color .3s ease-out}._stream-info-container-pc_fw50h_1 ._stream-info-content_fw50h_23 ._nick_fw50h_39{overflow:hidden;text-overflow:ellipsis}._stream-info-container-pc_fw50h_1 ._stream-info-netWork_fw50h_43{width:20px;height:20px}._player-container_dhuca_1{width:100%;height:100%;position:relative}[data-uikit-theme=light] ._player-container_dhuca_1,[data-uikit-theme=dark] ._player-container_dhuca_1{background-color:var(--uikit-basic-color-white-6);transition:background-color .3s ease-out,border-color .3s ease-out}._pusher-container_1ncng_1{width:100%;height:100%;position:relative}[data-uikit-theme=light] ._pusher-container_1ncng_1,[data-uikit-theme=dark] ._pusher-container_1ncng_1{background-color:var(--uikit-basic-color-white-6);transition:background-color .3s ease-out,border-color .3s ease-out}._single-stream-container_1hpym_1{width:100%;height:100%;position:absolute;z-index:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}._single-stream-container_1hpym_1._pc_1hpym_11{border-radius:12px;overflow:hidden}[data-uikit-theme=light] ._single-stream-container_1hpym_1._pc_1hpym_11,[data-uikit-theme=dark] ._single-stream-container_1hpym_1._pc_1hpym_11{background-color:var(--uikit-basic-color-black-2);transition:background-color .3s ease-out,border-color .3s ease-out}._single-stream-container_1hpym_1._pc_1hpym_11 ._single-call-audio-stream_1hpym_23 .overlay{border-radius:12px;overflow:hidden}._single-stream-container_1hpym_1._float_1hpym_27{position:absolute;visibility:hidden}._single-container_1l7n2_1{width:100%;height:100%}._single-container_1l7n2_1 ._singlecall-tip_1l7n2_5{position:absolute;top:56%;left:50%;transform:translate(-50%);z-index:5}._single-container_1l7n2_1._mobile_1l7n2_12{animation:_pulldown_1l7n2_1 .5s linear}._single-container_1l7n2_1._mobile_1l7n2_12 ._singlecall-tip_1l7n2_5{position:absolute;max-width:80%;top:53.6vh;left:50%;transform:translate(-50%);z-index:5}@keyframes _pulldown_1l7n2_1{0%{transform:translateY(-100%)}to{transform:translateY(0)}}._groupcall-waiting-container_1xkt1_1{z-index:1}[data-uikit-theme=light] ._waiting-mobile_1xkt1_5 ._tip_1xkt1_5,[data-uikit-theme=dark] ._waiting-mobile_1xkt1_5 ._tip_1xkt1_5{color:var(--uikit-basic-color-white-1);transition:background-color .3s ease-out,border-color .3s ease-out}._waiting-mobile_1xkt1_5 ._tip_1xkt1_5{z-index:1}._waiting-mobile_1xkt1_5 ._groupcall-info_1xkt1_16{display:flex;flex-direction:column;align-items:center;margin-top:24px;z-index:1}[data-uikit-theme=light] ._waiting-mobile_1xkt1_5 ._groupcall-info_1xkt1_16,[data-uikit-theme=dark] ._waiting-mobile_1xkt1_5 ._groupcall-info_1xkt1_16{color:var(--uikit-basic-color-white-1);transition:background-color .3s ease-out,border-color .3s ease-out}._waiting-mobile_1xkt1_5 ._groupcall-info_1xkt1_16{width:100%}._waiting-mobile_1xkt1_5 ._groupcall-info_1xkt1_16 ._tip_1xkt1_5{text-align:center}._waiting-mobile_1xkt1_5 ._groupcall-info_1xkt1_16 ._avatar-group_1xkt1_37{display:flex;flex-wrap:wrap;margin-top:12px;align-items:center;justify-content:center;max-width:70%}._waiting-mobile_1xkt1_5 ._groupcall-info_1xkt1_16 ._avatar-group_1xkt1_37 ._avatar-item_1xkt1_45{width:10vw;height:10vw;margin-left:10px;margin-top:10px}.tk-gridplus-item-container{transition-property:width,height,left,top;transition-duration:.3s;transition-timing-function:ease-in}.tk-gridplus-item-container.center{transform:translate(50%)}._stream-container_1n8ml_1{width:100%;height:100%;position:absolute;z-index:1}._stream-container_1n8ml_1._mobile_1n8ml_7{top:5.5vh}._stream-container_1n8ml_1._pc_1n8ml_10{border-radius:12px;overflow:hidden}._stream-container_1n8ml_1._float_1n8ml_14{position:absolute;visibility:hidden}._groupcall-gridplus-container_1n8ml_19{width:100%;height:100%}._groupcall-gridplus-container_1n8ml_19._mobile_1n8ml_7._center_1n8ml_23{margin-top:24vh}._groupcall-gridplus-container_1n8ml_19._mobile_1n8ml_7._two-layout_1n8ml_26{margin-top:15vh}._groupcall-gridplus-container_1n8ml_19._pc_1n8ml_10._two-layout_1n8ml_26{margin-top:20%}._groupcall-gridplus-container_1n8ml_19._float_1n8ml_14{margin:0;position:absolute;top:0;right:0;left:0;bottom:0;border:0}._groupcall-gridplus-container_1n8ml_19._float_1n8ml_14 .tk-gridplus-item-container{width:100%!important;height:100%!important}._groupcall-gridplus-container_1n8ml_19._float_1n8ml_14 .tk-gridplus-item-container ._hidden_1n8ml_45{visibility:hidden}._groupcall-gridplus-container_1n8ml_19 ._userinfo_1n8ml_48{z-index:1}[data-uikit-theme=light] ._groupcall-gridplus-container_1n8ml_19 ._userinfo_1n8ml_48,[data-uikit-theme=dark] ._groupcall-gridplus-container_1n8ml_19 ._userinfo_1n8ml_48{color:var(--uikit-basic-color-white-1);transition:background-color .3s ease-out,border-color .3s ease-out}._groupcall-gridplus-container_1n8ml_19 ._userinfo_1n8ml_48{text-align:right;font-family:PingFang SC;font-size:20px;font-style:normal;font-weight:500;line-height:normal}._group-container_bky89_1{width:100%;height:100%}._group-container_bky89_1._mobile_bky89_5{animation:_pulldown_bky89_1 .3s linear}@keyframes _pulldown_bky89_1{0%{transform:translateY(-100%)}to{transform:translateY(0)}}.ai-subtitle-pc{position:absolute;z-index:1;left:50%;transform:translate(-50%);width:auto;height:auto;bottom:110px}.ai-subtitle-pc.ai-subtitle-pc--expanded{position:absolute!important;top:0!important;left:0!important;right:0!important;bottom:0!important;width:100%!important;height:100%!important;background-color:transparent;transform:none!important;z-index:1000}.ai-subtitle-pc:not(.ai-subtitle-pc--expanded) .ai-subtitle-pc .ai-subtitle-pc__content{position:relative;width:auto;height:auto}.ai-subtitle-pc--expanded .ai-subtitle-pc .ai-subtitle-pc__content{display:none}.ai-subtitle-pc--expanded .ai-subtitle-pc .ai-subtitle-pc__settings{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);z-index:1001}.ai-subtitle-pc:not(.ai-subtitle-pc--expanded) .ai-subtitle-pc .ai-subtitle-pc__settings{display:none}.ai-subtitle-h5{position:absolute;z-index:100;left:50%;transform:translate(-50%);width:auto;height:auto;bottom:26%}.ai-subtitle-h5.ai-subtitle-h5--expanded{position:absolute!important;top:0!important;left:0!important;right:0!important;bottom:0!important;width:100%!important;height:100%!important;background-color:transparent;transform:none!important;z-index:1000}.ai-subtitle-h5:not(.ai-subtitle-h5--expanded) .ai-subtitle-h5 .ai-subtitle-h5__content{position:relative;width:auto;height:auto}.ai-subtitle-h5--expanded .ai-subtitle-h5 .ai-subtitle-h5__content{display:none}.ai-subtitle-h5--expanded .ai-subtitle-h5 .ai-subtitle-h5__settings{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);z-index:1001}.ai-subtitle-h5:not(.ai-subtitle-h5--expanded) .ai-subtitle-h5 .ai-subtitle-h5__settings{display:none}._floating-window-pc-groupcall-container_1es4b_1{width:80px;height:100px;top:100px;right:10px;display:flex;z-index:99;flex-direction:column;align-items:center;border-radius:12px;box-sizing:border-box;overflow:hidden}[data-uikit-theme=light] ._floating-window-pc-groupcall-container_1es4b_1{background-color:var(--uikit-theme-light-floating-color-default);box-shadow:0 0 10px 0 var(--uikit-basic-color-black-8);transition:background-color .3s ease-out,border-color .3s ease-out}[data-uikit-theme=dark] ._floating-window-pc-groupcall-container_1es4b_1{background-color:var(--uikit-theme-dark-floating-color-default);box-shadow:0 0 10px 0 var(--uikit-basic-color-black-8);transition:background-color .3s ease-out,border-color .3s ease-out}._floating-window-pc-groupcall-container_1es4b_1 ._click-overlay_1es4b_1{position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;z-index:11}._floating-window-pc-groupcall-container_1es4b_1 ._call-status_1es4b_1{display:flex;flex-direction:column;align-content:center;align-items:center;width:100%;height:100%}._floating-window-pc-groupcall-container_1es4b_1 ._call-status_1es4b_1 ._video-stream_1es4b_1{position:absolute;width:100%;height:100%;top:0;left:0;box-sizing:border-box}._floating-window-pc-groupcall-container_1es4b_1 ._call-status_1es4b_1 ._video-stream_1es4b_1._hidden_1es4b_1{visibility:hidden!important;opacity:0}._floating-window-pc-groupcall-container_1es4b_1 ._call-status_1es4b_1 ._audio-stream_1es4b_1{display:flex;align-items:center;flex-direction:column;position:absolute;width:100%;height:100%;top:0;left:0}._floating-window-pc-groupcall-container_1es4b_1 ._call-status_1es4b_1{height:80px;width:100%;position:relative;padding:8px 18px;box-sizing:border-box}._floating-window-pc-groupcall-container_1es4b_1 ._call-status_1es4b_1._video_1es4b_1{padding:8px}._floating-window-pc-groupcall-container_1es4b_1 ._call-status_1es4b_1 ._earphone_1es4b_1{height:36px;width:36px;top:8px;position:absolute}[data-uikit-theme=light] ._floating-window-pc-groupcall-container_1es4b_1 ._call-status_1es4b_1 ._info_1es4b_1{color:var(--uikit-theme-light-text-color-success);transition:background-color .3s ease-out,border-color .3s ease-out}[data-uikit-theme=dark] ._floating-window-pc-groupcall-container_1es4b_1 ._call-status_1es4b_1 ._info_1es4b_1{color:var(--uikit-theme-dark-text-color-success);transition:background-color .3s ease-out,border-color .3s ease-out}._floating-window-pc-groupcall-container_1es4b_1 ._call-status_1es4b_1 ._info_1es4b_1{text-align:center;font-family:PingFang SC;font-size:12px;font-style:normal;font-weight:500;line-height:16px;position:absolute;bottom:8px}._floating-window-pc-groupcall-container_1es4b_1 ._device-status_1es4b_1{display:flex;flex-direction:row;align-items:center;height:20px;width:100%;position:relative;justify-content:space-evenly}[data-uikit-theme=light] ._floating-window-pc-groupcall-container_1es4b_1 ._device-status_1es4b_1{background-color:var(--uikit-theme-light-floating-color-operate);transition:background-color .3s ease-out,border-color .3s ease-out}[data-uikit-theme=dark] ._floating-window-pc-groupcall-container_1es4b_1 ._device-status_1es4b_1{background-color:var(--uikit-theme-dark-floating-color-operate);transition:background-color .3s ease-out,border-color .3s ease-out}._floating-window-pc-groupcall-container_1es4b_1 ._device-status_1es4b_1 ._icon_1es4b_1{display:flex;width:16px;height:16px;position:absolute}._floating-window-pc-groupcall-container_1es4b_1 ._device-status_1es4b_1 ._camera_1es4b_1{left:14px}._floating-window-pc-groupcall-container_1es4b_1 ._device-status_1es4b_1 ._micphone_1es4b_1{right:14px}._floating-window-h5-groupcall-container_1es4b_1{width:72px;height:90px;top:100px;right:0;display:flex;z-index:99;flex-direction:column;align-items:center;border-radius:12px;box-sizing:border-box;overflow:hidden}[data-uikit-theme=light] ._floating-window-h5-groupcall-container_1es4b_1{background-color:var(--uikit-theme-light-floating-color-default);box-shadow:0 0 10px 0 var(--uikit-basic-color-black-8);transition:background-color .3s ease-out,border-color .3s ease-out}[data-uikit-theme=dark] ._floating-window-h5-groupcall-container_1es4b_1{background-color:var(--uikit-theme-dark-floating-color-default);box-shadow:0 0 10px 0 var(--uikit-basic-color-black-8);transition:background-color .3s ease-out,border-color .3s ease-out}._floating-window-h5-groupcall-container_1es4b_1 ._click-overlay_1es4b_1{position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;z-index:11}._floating-window-h5-groupcall-container_1es4b_1 ._call-status_1es4b_1{display:flex;flex-direction:column;align-content:center;align-items:center;width:100%;height:100%}._floating-window-h5-groupcall-container_1es4b_1 ._call-status_1es4b_1 ._video-stream_1es4b_1{position:absolute;width:100%;height:100%;top:0;left:0;box-sizing:border-box}._floating-window-h5-groupcall-container_1es4b_1 ._call-status_1es4b_1 ._video-stream_1es4b_1._hidden_1es4b_1{visibility:hidden!important;opacity:0}._floating-window-h5-groupcall-container_1es4b_1 ._call-status_1es4b_1 ._audio-stream_1es4b_1{display:flex;align-items:center;flex-direction:column;position:absolute;width:100%;height:100%;top:0;left:0}._floating-window-h5-groupcall-container_1es4b_1 ._call-status_1es4b_1{height:70px;width:100%;position:relative;padding:8px 18px;box-sizing:border-box}._floating-window-h5-groupcall-container_1es4b_1 ._call-status_1es4b_1._video_1es4b_1{padding:8px}._floating-window-h5-groupcall-container_1es4b_1 ._call-status_1es4b_1 ._earphone_1es4b_1{height:36px;width:36px;top:8px;position:absolute}[data-uikit-theme=light] ._floating-window-h5-groupcall-container_1es4b_1 ._call-status_1es4b_1 ._info_1es4b_1{color:var(--uikit-theme-light-text-color-success);transition:background-color .3s ease-out,border-color .3s ease-out}[data-uikit-theme=dark] ._floating-window-h5-groupcall-container_1es4b_1 ._call-status_1es4b_1 ._info_1es4b_1{color:var(--uikit-theme-dark-text-color-success);transition:background-color .3s ease-out,border-color .3s ease-out}._floating-window-h5-groupcall-container_1es4b_1 ._call-status_1es4b_1 ._info_1es4b_1{text-align:center;font-family:PingFang SC;font-size:12px;font-style:normal;font-weight:500;line-height:16px;position:absolute;bottom:8px}._floating-window-h5-groupcall-container_1es4b_1 ._device-status_1es4b_1{display:flex;flex-direction:row;align-items:center;height:20px;width:100%;position:relative;justify-content:space-evenly}[data-uikit-theme=light] ._floating-window-h5-groupcall-container_1es4b_1 ._device-status_1es4b_1{background-color:var(--uikit-theme-light-floating-color-operate);transition:background-color .3s ease-out,border-color .3s ease-out}[data-uikit-theme=dark] ._floating-window-h5-groupcall-container_1es4b_1 ._device-status_1es4b_1{background-color:var(--uikit-theme-dark-floating-color-operate);transition:background-color .3s ease-out,border-color .3s ease-out}._floating-window-h5-groupcall-container_1es4b_1 ._device-status_1es4b_1 ._icon_1es4b_1{display:flex;width:16px;height:16px;position:absolute}._floating-window-h5-groupcall-container_1es4b_1 ._device-status_1es4b_1 ._camera_1es4b_1{left:14px}._floating-window-h5-groupcall-container_1es4b_1 ._device-status_1es4b_1 ._micphone_1es4b_1{right:14px}._floating-window-h5-singlecall-container_1wchz_1{width:110px;height:196px;top:100px;right:0;display:flex;z-index:99;flex-direction:column;align-items:center;border-radius:12px;overflow:hidden}[data-uikit-theme=light] ._floating-window-h5-singlecall-container_1wchz_1{background-color:var(--uikit-theme-light-floating-color-default);border:1px solid var(--uikit-theme-light-floating-color-default);box-shadow:0 0 10px 0 var(--uikit-basic-color-black-8);transition:background-color .3s ease-out,border-color .3s ease-out}[data-uikit-theme=dark] ._floating-window-h5-singlecall-container_1wchz_1{background-color:var(--uikit-theme-dark-floating-color-default);border:1px solid var(--uikit-theme-dark-floating-color-default);box-shadow:0 0 10px 0 var(--uikit-basic-color-black-8);transition:background-color .3s ease-out,border-color .3s ease-out}._floating-window-h5-singlecall-container_1wchz_1._audio-call_1wchz_1{width:72px;height:72px;border-radius:12px;box-sizing:border-box}[data-uikit-theme=light] ._floating-window-h5-singlecall-container_1wchz_1._audio-call_1wchz_1{background-color:var(--uikit-theme-light-floating-color-default);box-shadow:0 0 10px 0 var(--uikit-basic-color-black-8);transition:background-color .3s ease-out,border-color .3s ease-out}[data-uikit-theme=dark] ._floating-window-h5-singlecall-container_1wchz_1._audio-call_1wchz_1{background-color:var(--uikit-theme-dark-floating-color-default);box-shadow:0 0 10px 0 var(--uikit-basic-color-black-8);transition:background-color .3s ease-out,border-color .3s ease-out}._floating-window-h5-singlecall-container_1wchz_1 ._click-overlay_1wchz_1{position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;z-index:11}._floating-window-h5-singlecall-container_1wchz_1 ._call-status_1wchz_1{display:flex;flex-direction:column;align-content:center;align-items:center;padding:8px 18px;width:100%;height:100%;z-index:0;position:relative;box-sizing:border-box}._floating-window-h5-singlecall-container_1wchz_1 ._call-status_1wchz_1._video_1wchz_1{padding:8px}[data-uikit-theme=light] ._floating-window-h5-singlecall-container_1wchz_1 ._call-status_1wchz_1 ._info_1wchz_1,[data-uikit-theme=dark] ._floating-window-h5-singlecall-container_1wchz_1 ._call-status_1wchz_1 ._info_1wchz_1{color:var(--uikit-basic-color-white-1);transition:background-color .3s ease-out,border-color .3s ease-out}._floating-window-h5-singlecall-container_1wchz_1 ._call-status_1wchz_1 ._info_1wchz_1{text-align:center;font-family:PingFang SC;font-size:12px;font-style:normal;font-weight:500;line-height:16px;position:absolute;bottom:8px}._floating-window-h5-singlecall-container_1wchz_1 ._call-status_1wchz_1 ._video-stream_1wchz_1{position:absolute;width:100%;height:100%;top:0;left:0;box-sizing:border-box;z-index:0}._floating-window-h5-singlecall-container_1wchz_1 ._call-status_1wchz_1 ._video-stream_1wchz_1._hidden_1wchz_1{visibility:hidden}._floating-window-h5-singlecall-container_1wchz_1 ._call-status_1wchz_1 ._audio-stream_1wchz_1{display:flex;align-items:center;flex-direction:column;position:absolute;width:100%;height:100%;left:0;top:0}[data-uikit-theme=light] ._floating-window-h5-singlecall-container_1wchz_1 ._call-status_1wchz_1 ._audio-stream_1wchz_1 ._info_1wchz_1{color:var(--uikit-theme-light-text-color-success);transition:background-color .3s ease-out,border-color .3s ease-out}[data-uikit-theme=dark] ._floating-window-h5-singlecall-container_1wchz_1 ._call-status_1wchz_1 ._audio-stream_1wchz_1 ._info_1wchz_1{color:var(--uikit-theme-dark-text-color-success);transition:background-color .3s ease-out,border-color .3s ease-out}._floating-window-h5-singlecall-container_1wchz_1 ._call-status_1wchz_1 ._earphone_1wchz_1{height:36px;width:36px;position:absolute;top:8px}._floating-window-h5-singlecall-container_1wchz_1 ._tip_1wchz_1{position:absolute;bottom:0}._floating-window-pc-singlecall-container_1wchz_1{width:196px;height:110px;top:100px;right:10px;display:flex;z-index:99;flex-direction:column;align-items:center;border-radius:12px;overflow:hidden}[data-uikit-theme=light] ._floating-window-pc-singlecall-container_1wchz_1{box-shadow:0 0 10px 0 var(--uikit-basic-color-black-8);background-color:var(--uikit-theme-light-floating-color-default);border:1px solid var(--uikit-theme-light-floating-color-default);transition:background-color .3s ease-out,border-color .3s ease-out}[data-uikit-theme=dark] ._floating-window-pc-singlecall-container_1wchz_1{box-shadow:0 0 10px 0 var(--uikit-basic-color-black-8);background-color:var(--uikit-theme-dark-floating-color-default);border:1px solid var(--uikit-theme-dark-floating-color-default);transition:background-color .3s ease-out,border-color .3s ease-out}._floating-window-pc-singlecall-container_1wchz_1._audio-call_1wchz_1{width:72px;height:72px;border-radius:12px;box-sizing:border-box}[data-uikit-theme=light] ._floating-window-pc-singlecall-container_1wchz_1._audio-call_1wchz_1{box-shadow:0 0 10px 0 var(--uikit-basic-color-black-8);background-color:var(--uikit-theme-light-floating-color-default);transition:background-color .3s ease-out,border-color .3s ease-out}[data-uikit-theme=dark] ._floating-window-pc-singlecall-container_1wchz_1._audio-call_1wchz_1{box-shadow:0 0 10px 0 var(--uikit-basic-color-black-8);background-color:var(--uikit-theme-dark-floating-color-default);transition:background-color .3s ease-out,border-color .3s ease-out}._floating-window-pc-singlecall-container_1wchz_1 ._click-overlay_1wchz_1{position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;z-index:11}._floating-window-pc-singlecall-container_1wchz_1 ._call-status_1wchz_1{display:flex;flex-direction:column;align-content:center;align-items:center;padding:8px 18px;width:100%;height:100%;z-index:0;position:relative;box-sizing:border-box}._floating-window-pc-singlecall-container_1wchz_1 ._call-status_1wchz_1._video_1wchz_1{padding:8px}[data-uikit-theme=light] ._floating-window-pc-singlecall-container_1wchz_1 ._call-status_1wchz_1 ._info_1wchz_1,[data-uikit-theme=dark] ._floating-window-pc-singlecall-container_1wchz_1 ._call-status_1wchz_1 ._info_1wchz_1{color:var(--uikit-basic-color-white-1);transition:background-color .3s ease-out,border-color .3s ease-out}._floating-window-pc-singlecall-container_1wchz_1 ._call-status_1wchz_1 ._info_1wchz_1{text-align:center;font-family:PingFang SC;font-size:12px;font-style:normal;font-weight:500;line-height:16px;position:absolute;bottom:8px}._floating-window-pc-singlecall-container_1wchz_1 ._call-status_1wchz_1 ._video-stream_1wchz_1{position:absolute;width:100%;height:100%;top:0;left:0;box-sizing:border-box;z-index:0}._floating-window-pc-singlecall-container_1wchz_1 ._call-status_1wchz_1 ._video-stream_1wchz_1._hidden_1wchz_1{visibility:hidden}._floating-window-pc-singlecall-container_1wchz_1 ._call-status_1wchz_1 ._video-stream_1wchz_1 .tk-togglewindowitem-small{border-radius:3px;width:32%;height:31%}._floating-window-pc-singlecall-container_1wchz_1 ._call-status_1wchz_1 ._audio-stream_1wchz_1{display:flex;align-items:center;flex-direction:column;position:absolute;width:100%;height:100%;left:0;top:0}[data-uikit-theme=light] ._floating-window-pc-singlecall-container_1wchz_1 ._call-status_1wchz_1 ._audio-stream_1wchz_1 ._info_1wchz_1{color:var(--uikit-theme-light-text-color-success);transition:background-color .3s ease-out,border-color .3s ease-out}[data-uikit-theme=dark] ._floating-window-pc-singlecall-container_1wchz_1 ._call-status_1wchz_1 ._audio-stream_1wchz_1 ._info_1wchz_1{color:var(--uikit-theme-dark-text-color-success);transition:background-color .3s ease-out,border-color .3s ease-out}._floating-window-pc-singlecall-container_1wchz_1 ._call-status_1wchz_1 ._earphone_1wchz_1{height:36px;width:36px;position:absolute;top:8px}._floating-window-pc-singlecall-container_1wchz_1 ._tip_1wchz_1{position:absolute;bottom:0}:root{--uikit-theme-light-bg-color-topbar: #f9fafc;--uikit-theme-light-bg-color-operate: #fff;--uikit-theme-light-bg-color-input: #f0f2f7;--uikit-theme-light-bg-color-bubble-reciprocal: #f0f2f7;--uikit-theme-light-bg-color-bubble-own: #cce2ff;--uikit-theme-light-bg-color-default: #f0f2f7;--uikit-theme-light-bg-color-tag-mask: rgba(255, 255, 255, .55);--uikit-theme-light-bg-color-mask: rgba(0, 0, 0, .55);--uikit-theme-light-text-color-primary: rgba(0, 0, 0, .9);--uikit-theme-light-text-color-secondary: rgba(0, 0, 0, .55);--uikit-theme-light-text-color-tertiary: rgba(0, 0, 0, .4);--uikit-theme-light-text-color-disable: rgba(0, 0, 0, .28);--uikit-theme-light-text-color-link: #1c66e5;--uikit-theme-light-text-color-link-hover: #4588f5;--uikit-theme-light-text-color-link-disabled: #cce2ff;--uikit-theme-light-text-color-anti-primary: rgba(0, 0, 0, .9);--uikit-theme-light-text-color-anti-secondary: rgba(0, 0, 0, .55);--uikit-theme-light-text-color-warning: #ff7200;--uikit-theme-light-text-color-success: #0abf77;--uikit-theme-light-text-color-error: #e54545;--uikit-theme-light-dropdown-color-default: #fff;--uikit-theme-light-dropdown-color-hover: #f9fafc;--uikit-theme-light-dropdown-color-active: #cce2ff;--uikit-theme-light-list-color-default: #fff;--uikit-theme-light-list-color-hover: #f9fafc;--uikit-theme-light-list-color-active: #ebf3ff;--uikit-theme-light-stroke-color-primary: #e6e9f0;--uikit-theme-light-stroke-color-secondary: #f0f2f7;--uikit-theme-light-shadow-color: rgba(0, 0, 0, .06);--uikit-theme-light-floating-color-default: #ffffff;--uikit-theme-light-floating-color-operate: #F0F2F7;--uikit-theme-light-toast-color-default: #EBF3FF;--uikit-theme-light-toast-color-success: #DCFAE9;--uikit-theme-light-toast-color-warning: #ffd6b2;--uikit-theme-light-toast-color-error: #ffe7e6;--uikit-theme-light-button-color-hangup: #E54545;--uikit-theme-light-button-color-accept: #0ABF77;color-scheme:light dark}:root{--uikit-theme-dark-bg-color-topbar: #131417;--uikit-theme-dark-bg-color-operate: #1f2024;--uikit-theme-dark-bg-color-input: #2b2c30;--uikit-theme-dark-bg-color-bubble-reciprocal: #2b2c30;--uikit-theme-dark-bg-color-bubble-own: #5c9dff;--uikit-theme-dark-bg-color-default: #131417;--uikit-theme-dark-bg-color-tag-mask: rgba(0, 0, 0, .55);--uikit-theme-dark-bg-color-mask: rgba(0, 0, 0, .55);--uikit-theme-dark-text-color-primary: rgba(255, 255, 255, .93);--uikit-theme-dark-text-color-secondary: rgba(255, 255, 255, .55);--uikit-theme-dark-text-color-tertiary: rgba(255, 255, 255, .3);--uikit-theme-dark-text-color-disable: rgba(255, 255, 255, .28);--uikit-theme-dark-text-color-link: #4086ff;--uikit-theme-dark-text-color-link-hover: #2b6ad6;--uikit-theme-dark-text-color-link-disabled: #243047;--uikit-theme-dark-text-color-anti-primary: rgba(0, 0, 0, .9);--uikit-theme-dark-text-color-anti-secondary: rgba(0, 0, 0, .55);--uikit-theme-dark-text-color-warning: #e37f32;--uikit-theme-dark-text-color-success: #38a673;--uikit-theme-dark-text-color-error: #e6594c;--uikit-theme-dark-dropdown-color-default: #2b2c30;--uikit-theme-dark-dropdown-color-hover: #3a3c42;--uikit-theme-dark-dropdown-color-active: #1f2024;--uikit-theme-dark-list-color-default: #1f2024;--uikit-theme-dark-list-color-hover: #2b2c30;--uikit-theme-dark-list-color-active: #243047;--uikit-theme-dark-stroke-color-primary: #3a3c42;--uikit-theme-dark-stroke-color-secondary: #2b2c30;--uikit-theme-dark-shadow-color: rgba(0, 0, 0, .06);--uikit-theme-dark-floating-color-default: #2B2C30;--uikit-theme-dark-floating-color-operate: #3A3C42;--uikit-theme-dark-toast-color-default: #243047;--uikit-theme-dark-toast-color-success: #22352C;--uikit-theme-dark-toast-color-warning: #35231A;--uikit-theme-dark-toast-color-error: #422324;--uikit-theme-dark-button-color-hangup: #E6594C;--uikit-theme-dark-button-color-accept: #38A673;color-scheme:light dark}:root{--uikit-basic-color-white-1: #FFFFFF;--uikit-basic-color-white-2: rgba(255, 255, 255, .9);--uikit-basic-color-white-4: rgba(255, 255, 255, .55);--uikit-basic-color-white-6: rgba(255, 255, 255, .3);--uikit-basic-color-white-7: rgba(255, 255, 255, .14);--uikit-basic-color-black-1: rgb(0, 0, 0);--uikit-basic-color-black-2: rgba(0, 0, 0, .9);--uikit-basic-color-black-3: rgba(0, 0, 0, .72);--uikit-basic-color-black-4: rgba(0, 0, 0, .55);--uikit-basic-color-black-5: rgba(0, 0, 0, .4);--uikit-basic-color-black-8: rgba(0, 0, 0, .06);--uikit-basic-color-gray-dark-3: rgb(43, 44, 48)}._tuicallkit-container_h8knf_98{position:relative;width:960px;height:630px;border-radius:12px;overflow:hidden}._tuicallkit-container_h8knf_98._float_h8knf_105{position:absolute;visibility:hidden}._tuicallkit-container_h8knf_98._mobile_h8knf_109{background:none;border-radius:0;width:100%;height:100%}")),document.head.appendChild(t)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}})();
2
- var fg=Object.defineProperty;var Sg=(b,z,R)=>z in b?fg(b,z,{enumerable:!0,configurable:!0,writable:!0,value:R}):b[z]=R;var O=(b,z,R)=>(Sg(b,typeof z!="symbol"?z+"":z,R),R);(function(b,z){typeof exports=="object"&&typeof module<"u"?z(exports,require("@trtc/call-engine-lite-js"),require("@tencentcloud/tui-core-lite"),require("@tencentcloud/lite-chat/basic"),require("react/jsx-runtime"),require("react"),require("react-dom"),require("react-dom/client")):typeof define=="function"&&define.amd?define(["exports","@trtc/call-engine-lite-js","@tencentcloud/tui-core-lite","@tencentcloud/lite-chat/basic","react/jsx-runtime","react","react-dom","react-dom/client"],z):(b=typeof globalThis<"u"?globalThis:b||self,z(b["tuicall-uikit-react"]={},b.callEngineLiteJs,b.TUICoreLite,b.TencentCloudChat,b.jsxRuntime,b.React,b.ReactDOM,b.ReactDOMClient))})(this,function(b,z,R,Ga,M,g,Za,Fa){var Wr,Re,Ge,Ze,Fe;"use strict";function Pa(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const a=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,a.get?a:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const it=Pa(g),Kr=Pa(Za);var d=(t=>(t.CALL="call",t.CUSTOM="custom",t))(d||{}),G=(t=>(t[t.UNKNOWN=0]="UNKNOWN",t[t.AUDIO=1]="AUDIO",t[t.VIDEO=2]="VIDEO",t))(G||{}),X=(t=>(t.UNKNOWN="unknown",t.CALLEE="callee",t.CALLER="caller",t))(X||{}),x=(t=>(t.IDLE="idle",t.CALLING="calling",t.CONNECTED="connected",t))(x||{}),Dn=(t=>(t.CONTAIN="contain",t.COVER="cover",t.FILL="fill",t))(Dn||{}),Tn=(t=>(t.RESOLUTION_360P="360p",t.RESOLUTION_480P="480p",t.RESOLUTION_540P="540p",t.RESOLUTION_720P="720p",t.RESOLUTION_1080P="1080p",t))(Tn||{}),Wa=(t=>(t.EN="en",t["ZH-CN"]="zh-cn",t.JA_JP="ja_JP",t))(Wa||{});const ne={IDLE:"idle",BE_INVITED:"be-invited",DIALING_C2C:"dialing-c2c",DIALING_GROUP:"dialing-group",CALLING_C2C_AUDIO:"calling-c2c-audio",CALLING_C2C_VIDEO:"calling-c2c-video",CALLING_GROUP_AUDIO:"calling-group-audio",CALLING_GROUP_VIDEO:"calling-group-video"},$r={unknown:0,audio:1,video:2};var ae=(t=>(t.MICROPHONE="microphone",t.CAMERA="camera",t.SPEAKER="speaker",t))(ae||{}),rt=(t=>(t[t.FRONT=0]="FRONT",t[t.BACK=1]="BACK",t))(rt||{}),ot=(t=>(t.Camera="camera",t.Microphone="microphone",t.SwitchCamera="switchCamera",t.InviteUser="inviteUser",t))(ot||{}),Bt=(t=>(t.Open="open",t.Close="close",t))(Bt||{}),be=(t=>(t.LOCAL="local",t.REMOTE="remote",t))(be||{}),Yt=(t=>(t.LocalInLargeView="local",t.RemoteInLargeView="remote",t))(Yt||{}),pt=(t=>(t[t.INVITE=1]="INVITE",t[t.CANCEL_INVITE=2]="CANCEL_INVITE",t[t.ACCEPT_INVITE=3]="ACCEPT_INVITE",t[t.REJECT_INVITE=4]="REJECT_INVITE",t[t.INVITE_TIMEOUT=5]="INVITE_TIMEOUT",t))(pt||{});const Ha={SWITCH_TO_AUDIO_CALL_FAILED:60001,SWITCH_TO_VIDEO_CALL_FAILED:60002,MICROPHONE_UNAVAILABLE:60003,CAMERA_UNAVAILABLE:60004,BAN_DEVICE:60005,NOT_SUPPORTED_WEBRTC:60006,ERROR_BLACKLIST:20007},Ja={SWITCH_TO_AUDIO_CALL_FAILED:"switchToAudioCall-call-failed",SWITCH_TO_VIDEO_CALL_FAILED:"switchToVideoCall-call-failed",MICROPHONE_UNAVAILABLE:"microphone-unavailable",CAMERA_UNAVAILABLE:"camera-unavailable",BAN_DEVICE:"ban-device",NOT_SUPPORTED_WEBRTC:"not-supported-webrtc",ERROR_BLACKLIST:"blacklist-user-tips"};var Xa=(t=>(t[t.NORMAL=0]="NORMAL",t[t.RELEASE=1]="RELEASE",t[t.WARNING=2]="WARNING",t[t.ERROR=3]="ERROR",t[t.NONE=4]="NONE",t))(Xa||{});const En={CALL_STATUS:"callStatus",CALL_ROLE:"callRole",CALL_MEDIA_TYPE:"callMediaType",LOCAL_USER_INFO:"localUserInfo",LOCAL_USER_INFO_EXCLUDE_VOLUMN:"localUserInfoExcludeVolume",REMOTE_USER_INFO_LIST:"remoteUserInfoList",REMOTE_USER_INFO_EXCLUDE_VOLUMN_LIST:"remoteUserInfoExcludeVolumeList",CALLER_USER_INFO:"callerUserInfo",IS_GROUP:"isGroup",CALL_DURATION:"callDuration",CALL_TIPS:"callTips",TOAST_INFO:"toastInfo",IS_MINIMIZED:"isMinimized",ENABLE_FLOAT_WINDOW:"enableFloatWindow",BIG_SCREEN_USER_ID:"bigScreenUserId",LANGUAGE:"language",IS_CLICKABLE:"isClickable",DISPLAY_MODE:"displayMode",VIDEO_RESOLUTION:"videoResolution",PUSHER:"pusher",PLAYER:"player",IS_EAR_PHONE:"isEarPhone",IS_MUTE_SPEAKER:"isMuteSpeaker",IS_SHOW_AUTO_PLAY_DIALOG:"isShowAutoPlayDialog",SHOW_PERMISSION_TIP:"SHOW_PERMISSION_TIP",NETWORK_STATUS:"NetWorkStatus",CALL_ID:"callID",GROUP_ID:"groupID",ROOM_ID:"roomID",ROOM_ID_TYPE:"roomIdType",SHOW_SELECT_USER:"showSelectUser",IS_SHOW_ENABLE_VIRTUAL_BACKGROUND:"isShowEnableVirtualBackground",ENABLE_VIRTUAL_BACKGROUND:"enableVirtualBackground",GROUP_CALL_MEMBERS:"groupCallMembers",PUSHER_ID:"pusherId",IS_FORCE_USE_V2_API:"isForceUseV2API",MODAL_ERROR:"modalError",TRANSCRIBER_ROBOT_ID:"transcriberRobotId",REALTIME_MESSAGE_LIST:"realtimeMessageList",IS_AI_TRANSCRIBER_ENABLED:"isAITranscriberEnabled",IS_AI_TRANSCRIBER_RUNNING:"isAITranscriberRunning"},s={PREFIX:"【CallService】",AUDIO:"audio",VIDEO:"video",LOCAL_VIDEO:"localVideo",ERROR:"error",TIMEOUT:"timeout",RAF:"raf",INTERVAL:"interval",DEFAULT:"default",BOOLEAN:"boolean",STRING:"string",NUMBER:"number",OBJECT:"object",ARRAY:"array",FUNCTION:"function",UNDEFINED:"undefined",UNKNOWN:"unknown",ALL:"all",MYSELF:"myself",DEVICE_LIST:"deviceList",CAMERA_POSITION:"cameraPosition",CUSTOM_UI_CONFIG:"customUIConfig",TRANSLATE:"translate",...{INITIAL_PUSHER:"initialPusher",NEW_PUSHER:"newPusher"},...En,...{INNER_ATTR_KIT_INFO:"inner_attr_kit_info"}},qr="https://web.sdk.qcloud.com/component/TUIKit/assets/call.png",eo="https://web.sdk.qcloud.com/component/TUIKit/assets/call-video-reverse.svg",to=3,no=4;var Fn=(t=>(t[t.TUI_CALL_KIT=14]="TUI_CALL_KIT",t[t.TIM_CALL_KIT=15]="TIM_CALL_KIT",t))(Fn||{}),Pn=(t=>(t[t.NUMBER_ROOM_ID=1]="NUMBER_ROOM_ID",t[t.STRING_ROOM_ID=2]="STRING_ROOM_ID",t))(Pn||{});async function ao(t){if(!t)return!1;try{const e=await new Promise((n,a)=>{const i=new XMLHttpRequest;i.open("HEAD",t,!0),i.onload=()=>n(i),i.onerror=()=>a(i),i.send()});return e.status===200&&e.getResponseHeader("Content-Type")==="audio/mpeg"}catch(e){return console.warn(e),!1}}function hn(t){if(typeof t!="object"||t===null)return t;let e=Array.isArray(t)?[]:{};for(let n in t)t.hasOwnProperty(n)&&(e[n]=hn(t[n]));return e}const io=/^(https?:\/\/)?([\da-z.-]+)\.([a-z.]{2,6})([/\w .-]*)*\/?$/i,ro=/(https?:\/\/[^\s]+)/g;function oo(){var n,a;const t=(n=uni.getAccountInfoSync)==null?void 0:n.call(uni),e=(a=t==null?void 0:t.miniProgram)==null?void 0:a.envVersion;return e==="develop"||e==="trial"}function Ka(t){if(!t||typeof t!="string")return null;if(t.includes("<a ")||t.includes("<a>")){const n=t.match(/href=["']([^"']+)["']/);return n?n[1]:null}if(io.test(t.trim()))return t.trim();const e=t.match(ro);return e?e[0]:null}function so(t){if(!t||typeof t!="string")return"";let e=t.replace(/<[^>]+>/g,"");e=e.replace(/&nbsp;/g," ").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&").replace(/&quot;/g,'"'),e=e.replace(/\s+/g," ").trim();const n=Ka(t);return n&&!e.includes(n)?e?`${e}
3
- ${n}`:n:e}function lo(t){var e;try{const n=(e=ft==null?void 0:ft.getTim)==null?void 0:e.call(ft);if(n&&typeof n.callExperimentalAPI=="function"){const a={id:t.id,title:t.title,type:t.type,content:t.content,platform:"miniprogram"};n.callExperimentalAPI("reportModalView",JSON.stringify(a))}}catch(n){console.warn("[UIKitModal] reportModalView failed:",n)}}const co=t=>new Promise(e=>{if(lo(t),!oo()){e({action:"confirm"});return}const n=Ka(t.content),a=so(t.content),i=!!n;uni.showModal({title:t.title||"",content:a,cancelText:"取消",confirmText:i?"复制链接":"确认",success:r=>{var l,c;const o=r.confirm?"confirm":"cancel";r.confirm?(i&&n&&uni.setClipboardData({data:n,success:()=>{uni.showToast({title:"链接已复制",icon:"success"})}}),(l=t.onConfirm)==null||l.call(t)):(c=t.onCancel)==null||c.call(t),e({action:o,raw:r})},fail:()=>{var r;(r=t.onCancel)==null||r.call(t),e({action:"cancel"})}})}),Mo={openModal:t=>co(t)},uo={hangup:"挂断",reject:"拒绝",accept:"接受",camera:"摄像头",microphone:"麦克风",speaker:"扬声器","open camera":"打开摄像头","close camera":"关闭摄像头","open microphone":"打开麦克风","close microphone":"关闭麦克风","video-to-audio":"转语音通话","virtual-background":"模糊背景","other side reject call":"对方已拒绝","reject call":"{{ userList }} 拒绝通话",cancel:"取消通话","other side line busy":"对方忙线","in busy":"{{ userList }} 正在忙","call timeout":"呼叫超时","end call":"{{ userList }} 结束通话","caller calling message":"等待对方接受邀请","callee calling video message":"邀请你视频通话","callee calling audio message":"邀请你语音通话","no microphone access":"没有麦克风权限","no camera access":"没有摄像头权限","invite member":"邀请成员","Invited group call":"邀请你加入多人通话","Those involved":"参与通话的有:",waiting:"等待接听...",me:"(我)","browser-authorization":"浏览器授权","mac-privacy":"系统偏好设置 -> 安全与隐私 -> 隐私","win-privacy":"设置 -> 隐私和安全性 -> 应用权限","mac-preferences":"打开系统偏好设置","win-preferences":"打开系统设置","Please enter userID":"请输入 userID","View more":"查看更多","people selected":"人已选中","Select all":"全选",Cancel:"取消",Done:"完成","exist group call":"当前群组中已经存在群组通话","camera enabled":"摄像头已开","camera disabled":"摄像头已关","microphone enabled":"麦克风已开","microphone disabled":"麦克风已关","speaker enabled":"扬声器已开","speaker disabled":"扬声器已关","open speaker":"开启扬声器","close speaker":"关闭扬声器","wait to be called":"等待接听",answered:"已接通","people in the call":"人参与通话","failed to obtain speakers":"无法获取扬声器","you have a new call":"您有一个新的通话","switch camera":"翻转",join:"加入","people on the call":"人正在通话","Supports a maximum of 9 people for simultaneous calls":"最多支持9人同时通话",you:"(你)","The network is poor during your current call":"当前通话你的网络不佳","The other user network is poor during the current call":"当前通话对方网络不佳","TUICallKit init is not complete":"TUICallKit 初始化登录未完成,需要在 init 完成后使用此 API","auto play failed":"音频播放被拦截,请点击恢复播放","click to resume":"恢复播放","Video call":"发起视频通话","Voice call":"发起语音通话","Call End":"通话结束","Switch voice call":"切换语音通话","Switch video call":"切换视频通话","Call duration":"通话时长","Call Cancel":"已取消","Other Side Cancel":"对方已取消",Decline:"已拒绝","Other Side Decline":"对方已拒绝","No answer":"超时无应答","Other Side No Answer":"对方无应答",Answered:"已接听","Other Side Line Busy":"对方忙线中","Line Busy":"忙线无应答",timeout:"{{ userList }} 超时","kick out":"被踢",call:"通话","video-call":"视频通话","audio-call":"音频通话",search:"搜索","search-result":"搜索结果","Wechat scan right QR code":"微信扫右二维码","Use-phone-and-computer":"用手机与电脑互打体验视频通话","Scan the QR code above":"扫描上方二维码","no-user":"未搜索到用户","member-not-added":"未添加成员","not-login":"未登录","login-status-expire":"登录状态已失效,请刷新网页重试","experience-multi-call":"体验多人通话请下载全功能demo:","not-support-multi-call":"多人通话接口未开放","input-phone-userID":"请输入手机号/用户ID",userID:"用户ID","already-enter":"已经进入当前通话","image-resolution":"分辨率","default-image-resolution":"默认分辨率","invited-person":"添加成员","be-rejected":"对方已拒绝,","be-no-response":"对方无应答,","be-line-busy":"对方忙线中,","be-canceled":"对方已取消","voice-call-end":"语音通话结束","video-call-end":"视频通话结束","method-call-failed":"同步操作失败","failed-to-obtain-permission":"权限获取失败","environment-detection-failed":"环境检测失败","switchToAudioCall-call-failed":"切语音调用失败","switchToVideoCall-call-failed":"切视频调用失败","microphone-unavailable":"没有可用的麦克风设备","camera-unavailable":"没有可用的摄像头设备","ban-device":"用户禁止使用设备","not-supported-webrtc":"当前环境不支持 WebRTC","blacklist-user-tips":"发起通话失败,被对方拉入黑名单,禁止发起!","is-already-calling":"TUICallKit 已在通话状态","need-init":"TUICallKit 发起通话前需保证 TUICallKitAPI.init() 方法执行成功","can't call yourself":"不能呼叫自己","accept-error":"接通失败","accept-device-error":"接通失败,通话设备获取失败","call-error":"发起通话失败","error.10001":"您的应用还未开通音视频通话(TUICallKit)能力,首次使用,您可以去<a href='https://cloud.tencent.com/document/product/647/104662'>开通服务</a>申请免费体验,或购买通话能力套餐包:<a href='https://console.cloud.tencent.com/trtc'>购买页面</a>","error.10002":"您暂不支持使用该能力,请前往<a href='https://buy.cloud.tencent.com/avc?addRavLicense=1&position=1600110000&ravLicenseType=1&regionId=1'>购买页</a>购买开通","error.10004":"摄像头/麦克风权限被拒绝,请检查浏览器设置,确保已允许使用您的摄像头和麦克风。如果您确认已授予权限,请前往<a href='https://web.sdk.qcloud.com/trtc/webrtc/demo/detect/index.html'>音视频能力检测</a>检查您的设备和环境是否支持通话","error.10005":"未检测到麦克风设备。请确保您的设备已连接麦克风,并检查系统或浏览器设置中麦克风是否可用。","error.10006":"未检测到摄像头设备。请确保您的摄像头已连接,并检查系统或浏览器设置中摄像头是否可用。","error.10007":"当前浏览器环境不支持 WebRTC 功能。请前往<a href='https://web.sdk.qcloud.com/trtc/webrtc/demo/detect/index.html'>音视频能力检测</a>检查您的设备和环境兼容性","error.10008":"TUICallEngine 尚未完成初始化或登录。请确保在调用此功能前,已成功执行 init 或 login 操作。解决方案:<a href='https://cloud.tencent.com/document/product/647/78769#3a61f42b-e06f-49af-88bf-362d40025887'>查看文档</a>","error.10012":"检测到当前页面正处于 http 协议下,为确保生产环境用户顺畅接入和体验 TUICallEngine SDK 的全部功能,请使用 https 协议(或 localhost)访问音视频应用页面。详情请前往:<a href='https://web.sdk.qcloud.com/trtc/webrtc/v5/doc/zh-cn/tutorial-05-info-browser.html#h2-3'>查看文档</a>","error.10013":"呼叫失败:您已被对方拉黑或您拉黑了对方","error.10014":"发起通话失败,用户 ID 无效,请确认该用户已注册。",error:"错误","ai-subtitle":"AI 字幕","ai-subtitle-settings":"AI 字幕设置","recognition-language":"识别语言","translation-language":"翻译语言","subtitle-display-settings":"字幕显示设置","subtitle-display-bilingual":"字幕显示双语","no-translation":"不翻译","show-bilingual":"显示双语","show-original-only":"仅显示原文",save:"保存","select-recognition-language":"请选择识别语言","select-translation-language":"请选择翻译语言",confirm:"确定","recognition-and-translation-settings":"识别与翻译设置"},Io={hangup:"Hang up",reject:"Decline",accept:"Accept",camera:"Camera",microphone:"Microphone",speaker:"speaker","open camera":"Open Camera","close camera":"Close Camera","open microphone":"Open Microphone","close microphone":"Close Microphone","video-to-audio":"Switch to audio","virtual-background":"Blur Background","other side reject call":"other side reject call","reject call":"{{ userList }} Reject Call",cancel:"Cancel Call","other side line busy":"other side line busy","in busy":"{{ userList }} in busy","call timeout":"call timeout","no response from the other side":"no response from the other side","end call":"{{ userList }} end call","caller calling message":"Awaiting response","callee calling video message":"invites you to a video call","callee calling audio message":"invites you to a voice call","no microphone access":"no microphone access","no camera access":"no camera access","invite member":"Invite Member","Invited group call":"invites you to a group call",waiting:"Calling...",me:"(me)","browser-authorization":"Browser authorization","mac-privacy":"System Preferences -> Security and Privacy -> Privacy","win-privacy":"Setting -> Privacy and Security -> App permissions","mac-preferences":"Open System Preferences","win-preferences":"Open Setting","Please enter userID":"Please enter userID","View more":"View more","people selected":"people selected","Select all":"Select all",Cancel:"Cancel",Done:"Done","exist group call":"A group call already exists in the current group","camera enabled":"Camera On","camera disabled":"Camera Off","microphone enabled":"Unmuted","microphone disabled":"Muted","speaker enabled":"Speaker On","speaker disabled":"Speaker Off","open speaker":"Turn on speaker","close speaker":"Turn off speaker","wait to be called":"Waiting",answered:"Connected","people in the call":" other(s) in the call","failed to obtain speakers":"failed to obtain speakers","you have a new call":"You have a new call","switch camera":"Switch",join:"Join","people on the call":"people on the call","Supports a maximum of 9 people for simultaneous calls":"Supports a maximum of 9 people for simultaneous calls",you:"(you)","The network is poor during your current call":"The network is poor during your current call","The other user network is poor during the current call":"The other party's network is poor during the current call","TUICallKit init is not complete":"TUICallKit init is not complete. You need to use this API after the init API is finished.","auto play failed":"Audio playback was blocked","click to resume":"Resume playback","Video call":"Video call","Voice call":"Voice call","Call End":"Call End","Switch voice call":"Switch voice call","Switch video call":"Switch video call","Call duration":"Duration","Call Cancel":"Canceled","Other Side Cancel":"Call canceled by caller",Decline:"Declined","Other Side Decline":"Call declined by user","No answer":"Call not answered","Other Side No Answer":"Call wasn't answered",Answered:"Answered","Other Side Line Busy":"Line busy","Line Busy":"Line busy. Call not received.","Those involved":"Those involved in the call are",call:"call","video-call":"video call","audio-call":"audio call",search:"search","search-result":"search result","no-user":"user not found","member-not-added":"member not added","input-phone-userID":"phone number or userID","not-login":"not logged in","login-status-expire":"login status is invalid, please refresh the page and try again","experience-multi-call":"experience multi-person calls, please download the full-featured demo: ","not-support-multi-call":"multi-person call interface is not open",userID:"userID","already-enter":"entered the call","camera-opened":"Camera on","camera-closed":"Camera off","microphone-opened":"Mic on","microphone-closed":"Mic off",timeout:"{{ userList }} timeout","kick out":"kick out","image-resolution":"Resolution","default-image-resolution":"Default","invited-person":"Invite","be-rejected":"Call declined, ","be-no-response":"No response, ","be-line-busy":"Line busy, ","be-canceled":"The call is canceled, ","voice-call-end":"Voice call ended","video-call-end":"Video call ended","method-call-failed":"Failed to sync the operation","failed-to-obtain-permission":"Failed to obtain permissions","environment-detection-failed":"Failed to check the environment","switchToAudioCall-call-failed":"switch to audio call method failed","switchToVideoCall-call-failed":"switch to video call method failed","microphone-unavailable":"No mic found","camera-unavailable":"No camera found","ban-device":"Device access denied","not-supported-webrtc":"Your current environment does not support WebRTC","blacklist-user-tips":"The identifier is in blacklist. Failed to send this message!","is-already-calling":"TUICallKit is already on a call","need-init":"Before initiating a call with TUICallKit, ensure that the TUICallKitAPI.init() method has executed successfully. ","can't call yourself":"Can't call yourself","Use-phone-and-computer":"Use your mobile phone and computer to experience video calls","Wechat scan right QR code":"Wechat scan right QR code","Scan the QR code above":"Scan the QR code above","accept-error":"Accept failed","accept-device-error":"Accept failed, unable to auth calling device","call-error":"Start call failed","error.10001":"Your application has not enabled audio/video call (TUICallKit) capability. For first-time use, you can go to <a href='https://cloud.tencent.com/document/product/647/104662'>Enable Service</a> to apply for a free trial, or purchase call capability packages: <a href='https://console.cloud.tencent.com/trtc'>Purchase Page</a>","error.10002":"You do not currently support using this capability. Please go to the <a href='https://buy.cloud.tencent.com/avc?addRavLicense=1&position=1600110000&ravLicenseType=1&regionId=1'>purchase page</a> to buy and activate it","error.10004":"Camera/microphone permission was denied. Please check browser settings to ensure camera and microphone access is allowed. If you have confirmed permission is granted, please go to <a href='https://web.sdk.qcloud.com/trtc/webrtc/demo/detect/index.html'>Audio/Video Capability Detection</a> to check if your device and environment support calls","error.10005":"No microphone device detected. Please ensure your device has a microphone connected and check if the microphone is available in system or browser settings.","error.10006":"No camera device detected. Please ensure your camera is connected and check if the camera is available in system or browser settings.","error.10007":"Current browser environment does not support WebRTC functionality. Please go to <a href='https://web.sdk.qcloud.com/trtc/webrtc/demo/detect/index.html'>Audio/Video Capability Detection</a> to check your device and environment compatibility","error.10008":"TUICallEngine has not completed initialization or login. Please ensure you have successfully executed init or login operations before calling this function. Solution: <a href='https://cloud.tencent.com/document/product/647/78769#3a61f42b-e06f-49af-88bf-362d40025887'>View Documentation</a>","error.10012":"Detected that the current page is under HTTP protocol. To ensure smooth access and full functionality of TUICallEngine SDK for production environment users, please use HTTPS protocol (or localhost) to access the audio/video application page. For details, please visit: <a href='https://web.sdk.qcloud.com/trtc/webrtc/v5/doc/zh-cn/tutorial-05-info-browser.html#h2-3'>View Documentation</a>","error.10013":"Call failed: You have been blocked by the other party or you have blocked the other party","error.10014":"Call initiation failed. User ID is invalid. Please confirm that the user is registered.",error:"Error","ai-subtitle":"AI Subtitle","ai-subtitle-settings":"AI Subtitle Settings","recognition-language":"Recognition Language","translation-language":"Translation Language","subtitle-display-settings":"Subtitle Display Settings","subtitle-display-bilingual":"Show Bilingual Subtitles","no-translation":"No Translation","show-bilingual":"Show Bilingual","show-original-only":"Show Original Only",save:"Save","select-recognition-language":"Please select recognition language","select-translation-language":"Please select translation language",confirm:"Confirm","recognition-and-translation-settings":"Recognition & Translation Settings"},go={hangup:"通話終了",reject:"拒否",accept:"応答",camera:"カメラ",microphone:"マイク",speaker:"スピーカー","virtual-background":"ボケ背景","other side reject call":"通話が拒否されました","reject call":"{{ userList }} 通話拒否",cancel:"通話をキャンセル","other side line busy":"相手が通話中です","in busy":"{{ userList }} 通話中","call timeout":"呼び出しタイムアウト","end call":"{{ userList }} 通話終了","caller calling message":"応答を待っています","callee calling video message":"ビデオ通話に招待されました","callee calling audio message":"音声通話に招待されました","no microphone access":"マイクにアクセスできません","no camera access":"カメラにアクセスできません","invite member":"メンバーを招待する","browser-authorization":"ブラウザ認証","mac-privacy":"システム環境設定 -> セキュリティとプライバシー ->プライバシー","win-privacy":"設定 -> セキュリティとプライバシー ->アプリのアクセス許可","mac-preferences":"システム環境設定を開く","win-preferences":"システム設定を開く","Please enter userID":"ユーザーIDを入力してください","View more":"もっと見る","people selected":"人が選択されました","Select all":"すべて選択",Cancel:"キャンセル",Done:"完了","exist group call":"現在のグループには既にグループ通話が存在しています","Video call":"ビデオ通話を開始","Voice call":"音声通話を開始","Call End":"通話終了","Switch audio call":"音声通話に切り替える","Switch video call":"ビデオ通話に切り替える","Call duration":"通話時間","Call Cancel":"通話をキャンセルする","Other Side Cancel":"相手がキャンセルしました",Decline:"通話を拒否する","Other Side Decline":"相手が拒否しました","No answer":"無応答","Other Side No Answer":"相手からの返答はありません",Answered:"応答しました","Other Side Line Busy":"相手は現在忙しくて対応できません","Line Busy":"忙しいので応答できません","open camera":"オープンカメラ","close camera":"カメラを閉じる","open microphone":"オープンマイク","close microphone":"マイクを閉じる","camera enabled":"カメラオン","camera disabled":"カメラオフ","microphone enabled":"マイクオン","microphone disabled":"マイクオフ","speaker enabled":"スピーカーオン","speaker disabled":"スピーカーオフ","open speaker":"スピーカーをオンにする","close speaker":"スピーカーの電源を切ります","wait to be called":"待機中",answered:"接続済み","people in the call":"通話に参加している人たち","failed to obtain speakers":"スピーカーが見つかりません","you have a new call":"新しい通話があります","switch camera":"切り替え",join:"参加する","people on the call":"人が通話中です","Supports a maximum of 9 people for simultaneous calls":"最大で9人まで同時通話が可能です",you:"(あなた)","The network is poor during your current call":"現在の通話で、あなたのネットワークは不良です","The other user network is poor during the current call":"現在の通話で、相手側のネットワークが不良です","TUICallKit init is not complete":"TUICallKitの初期化ログインが完了していません。init が完了した後にこのAPIを使用する必要があります。","auto play failed":"オーディオ再生がブロックされました","click to resume":"再生を再開",timeout:"{{ userList }} タイムアウト","kick out":"キックアウトされました","Invited group call":"グループ通話に招待されました。","Those involved":"参加者:",call:"通話","video-call":"ビデオ通話","audio-call":"音声通話",search:"検索","search-result":"検索結果","Wechat scan right QR code":"WeChatで右側にあるQRコードを読み取ります。","Use-phone-and-computer":"携帯電話とコンピュータを使用してビデオ通話を体験してください","Scan the QR code above":"上のQRコードを読み取ります。","no-user":"ユーザーが見つかりませんでした","member-not-added":"メンバーが追加されていません","not-login":"ログインしていません","login-status-expire":"ログインの有効期限が過ぎています。ページを更新してもう一度お試しください","experience-multi-call":"複数人で同時に音声通話できるグループ通話機能を体験するには、全機能のデモをダウンロードしてください","not-support-multi-call":"グループ通話インターフェイスが開いていません","input-phone-userID":"携帯電話番号/ユーザーIDを入力してください",userID:"ユーザーID","already-enter":"すでに通話に参加しています",waiting:"応答を待っています...","camera-opened":"カメラがオンになっています","camera-closed":"カメラがオフになっています","microphone-opened":"マイクがオンになっています","microphone-closed":"マイクがオフになっています","image-resolution":"解像度","default-image-resolution":"デフォルト解像度","invited-person":"メンバーを招待","video-to-audio":"音声通話に切り替えます",me:"(自分)","be-rejected":"通話が拒否されました, ","be-no-response":"応答なし, ","be-line-busy":"相手が通話中です, ","be-canceled":"相手が通話をキャンセルしました","voice-call-end":"音声通話が終了しました","video-call-end":"ビデオ通話が終了しました","method-call-failed":"操作の同期に失敗しました","failed-to-obtain-permission":"権限の取得に失敗しました","environment-detection-failed":"環境の検出に失敗しました","switchToAudioCall-call-failed":"音声通話に切り替えることはできません","switchToVideoCall-call-failed":"ビデオ通話に切り替えることはできません","microphone-unavailable":"使用できるマイクがありません","camera-unavailable":"使用できるカメラがありません","ban-device":"デバイスへのアクセスが拒否されました","not-supported-webrtc":"現在の環境はWebRTCをサポートしていません","blacklist-user-tips":"ユーザーはブラックリストに登録され、通話が開始できませんでした","is-already-calling":"TUICallKit はすでに通話中です","need-init":"TUICallKitで通話を開始する前に、TUICallKitAPI.init() メソッドが正常に実行されたことを確認してください。","can't call yourself":"自分に電話をかけることができません","accept-error":"接続できませんでした","accept-device-error":"接続できませんでした。発信側デバイスを認証できません","call-error":"通話が開始できませんでした","error.10001":"あなたのアプリケーションは音声・ビデオ通話(TUICallKit)機能を有効にしていません。初めてご利用の場合、<a href='https://cloud.tencent.com/document/product/647/104662'>サービスを有効にする</a>で無料体験を申請するか、通話機能パッケージを購入してください:<a href='https://console.cloud.tencent.com/trtc'>購入ページ</a>","error.10002":"現在この機能を使用することはできません。<a href='https://buy.cloud.tencent.com/avc?addRavLicense=1&position=1600110000&ravLicenseType=1&regionId=1'>購入ページ</a>で購入して有効にしてください","error.10004":"カメラ/マイクのアクセス許可が拒否されました。ブラウザ設定を確認し、カメラとマイクの使用が許可されていることを確認してください。許可されている場合は、<a href='https://web.sdk.qcloud.com/trtc/webrtc/demo/detect/index.html'>音声・ビデオ機能検出</a>にアクセスして、お使いのデバイスと環境が通話をサポートしているか確認してください","error.10005":"マイクデバイスが検出されませんでした。デバイスにマイクが接続されていることを確認し、システムまたはブラウザ設定でマイクが利用可能かどうかを確認してください。","error.10006":"カメラデバイスが検出されませんでした。カメラが接続されていることを確認し、システムまたはブラウザ設定でカメラが利用可能かどうかを確認してください。","error.10007":"現在のブラウザ環境はWebRTC機能をサポートしていません。<a href='https://web.sdk.qcloud.com/trtc/webrtc/demo/detect/index.html'>音声・ビデオ機能検出</a>にアクセスして、お使いのデバイスと環境の互換性を確認してください","error.10008":"TUICallEngineが初期化またはログインを完了していません。この機能を呼び出す前に、initまたはlogin操作が正常に実行されていることを確認してください。解決策:<a href='https://cloud.tencent.com/document/product/647/78769#3a61f42b-e06f-49af-88bf-362d40025887'>ドキュメントを確認</a>","error.10012":"現在のページがHTTPプロトコル下にあることが検出されました。本番環境のユーザーがTUICallEngine SDKの全機能をスムーズに利用できるようにするため、音声・ビデオアプリケーションページにはHTTPSプロトコル(またはlocalhost)を使用してアクセスしてください。詳細については、<a href='https://web.sdk.qcloud.com/trtc/webrtc/v5/doc/zh-cn/tutorial-05-info-browser.html#h2-3'>ドキュメントを確認</a>してください","error.10013":"通話失敗:相手にブロックされているか、または相手をブロックしています","error.10014":"通話の開始に失敗しました。ユーザーIDが無効です。ユーザーが登録されていることを確認してください。",error:"エラー","ai-subtitle":"AI字幕","ai-subtitle-settings":"AI字幕設定","recognition-language":"認識言語","translation-language":"翻訳言語","subtitle-display-settings":"字幕表示設定","subtitle-display-bilingual":"バイリンガル字幕を表示","no-translation":"翻訳しない","show-bilingual":"バイリンガル表示","show-original-only":"原文のみ表示",save:"保存","select-recognition-language":"認識言語を選択してください","select-translation-language":"翻訳言語を選択してください",confirm:"確認","recognition-and-translation-settings":"認識と翻訳の設定"},Rt=typeof wx<"u"&&typeof wx.getSystemInfoSync=="function"&&!!wx.getSystemInfoSync().fontSizeSetting,$a=typeof uni<"u"&&typeof uni>"u",qa=Rt||$a,ei=typeof uni<"u",ti=function(){return(typeof uni<"u"||typeof window<"u")&&!qa}(),No=function(){return Rt?wx:ei?uni:window}(),Je=ti&&window&&window.navigator&&window.navigator.userAgent||"",Ao=/Android/i.test(Je),Do=/(?:Windows Phone)/.test(Je),To=/(?:SymbianOS)/.test(Je),Eo=/iPad/i.test(Je)||/iPhone/i.test(Je)||/iPod/i.test(Je),ni=Ao||Do||To||Eo,Wn=ti&&!ni,ho=Wn&&Je.includes("Windows NT"),Co=Wn&&Je.includes("Mac");let ai=!1;Rt&&(ai=(((Wr=wx.getSystemInfoSync())==null?void 0:Wr.system)||"").includes("Harmony"));let ii=(Re=class{constructor(){O(this,"global",No);O(this,"isPC",!1);O(this,"isH5",!1);O(this,"isWeChat",!1);O(this,"isApp",!1);O(this,"isUniPlatform",!1);O(this,"isOfficial",!1);O(this,"isWIN",!1);O(this,"isMAC",!1);O(this,"isWxHarmony",!1);this.initEnv()}static getInstance(){return Re.instance||(Re.instance=new Re),Re.instance}initEnv(){this.isPC=Wn,this.isH5=ni,this.isWeChat=Rt,this.isApp=$a&&!Rt,this.isUniPlatform=ei,this.isWIN=ho,this.isMAC=Co,this.isWxHarmony=ai}initOfficial(e){this.isOfficial=e===1400187352||e===1400188366}},O(Re,"instance"),Re);const Hn=function(t){return typeof t===s.UNDEFINED},Jn=function(t){if(typeof t!==s.OBJECT||t===null)return!1;const e=Object.getPrototypeOf(t);if(e===null)return!0;let n=e;for(;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);return e===n},ri=function(t){return typeof t===s.STRING},Lo=function(t){return typeof t===s.BOOLEAN},po=function(t){return t!==null&&(typeof t===s.NUMBER&&!isNaN(t-0)||typeof t===s.OBJECT&&t.constructor===Number)};function oi(t){const e=Math.floor(t/3600),n=Math.floor(t%3600/60),a=Math.floor(t%60);let i=e>9?`${e}`:`0${e}`;return i+=n>9?`:${n}`:`:0${n}`,i+=a>9?`:${a}`:`:0${a}`,i}function jo(t){if(typeof t===s.STRING)try{return!!JSON.parse(t)}catch(e){return console.debug(e),!1}return!1}const Cn=function(t){return!t||!jo(t)?t:JSON.parse(t)};function si(t){var e;return((e=t==null?void 0:t.message)==null?void 0:e.indexOf("is ongoing, please avoid repeated calls"))!==-1}function yo(t){const{message:e}=t;return(e==null?void 0:e.indexOf("NotAllowedError: Permission denied"))!==-1}function Xn(){return Date.now()}const Ln=function(t){return typeof t===s.FUNCTION},fo=()=>{if(ii.getInstance().isWeChat)return"zh-cn";const t=((navigator==null?void 0:navigator.language)||(navigator==null?void 0:navigator.userLanguage)||"").substr(0,2);let e="en";switch(t){case"zh":e="zh-cn";break;case"ja":e="ja_JP";break;default:e="en"}return e};function So(t){}function Oo(t,e){return t.replace(/{{\s*(\w+)(\s*,\s*[^}]+)?\s*}}/g,(n,a)=>{const i=a.trim();return e[i]!==void 0?String(e[i]):n})}function mo(){var n;const t=navigator.userAgent||"",e=t.toLowerCase();return e.includes("miniprogram")||window.__wxjs_environment==="miniprogram"?"miniprogram":e.includes("webview")||e.includes(" wv")||(n=window.webkit)!=null&&n.messageHandlers?"webview":/Android|iPhone|iPad|iPod|Mobile/i.test(t)?"mobile-browser":"pc-browser"}function zo(){return/iPad|iPhone|iPod/.test(navigator.userAgent||"")}function li(){return/Android/.test(navigator.userAgent||"")}function wo(t){if(typeof window>"u")return;let e=!1;const n=mo();console.log(`[ExitDetection] Environment: ${n}, iOS: ${zo()}, Android: ${li()}`);const a=(c,u)=>{if(!e){e=!0,console.log(`[ExitDetection] Exit triggered by: ${c}`);try{t(u)}catch(I){console.error("[ExitDetection] Callback error:",I)}setTimeout(()=>{e=!1},1e3)}},i=c=>{var N;const I=(((N=performance==null?void 0:performance.getEntriesByType)==null?void 0:N.call(performance,"navigation"))||[])[0];if(!(I&&I.type==="navigate"))return a("beforeunload",c),c.returnValue="",""},r=c=>{c.persisted||a("pagehide",c)},o=()=>{document.visibilityState==="hidden"&&console.log("[ExitDetection] Visibility changed to hidden (not triggering exit)")},l=()=>{a("freeze")};window.addEventListener&&window.addEventListener("pagehide",r,{capture:!0}),(n==="pc-browser"||li())&&window.addEventListener("beforeunload",i),document.addEventListener("visibilitychange",o),"onfreeze"in document&&document.addEventListener("freeze",l),window.addEventListener("unload",c=>{a("unload",c)}),console.log(`[ExitDetection] Listeners registered for environment: ${n}`)}const se={OTHER_SIDE:"other side",CANCEL:"cancel",OTHER_SIDE_REJECT_CALL:"other side reject call",REJECT_CALL:"reject call",OTHER_SIDE_LINE_BUSY:"other side line busy",IN_BUSY:"in busy",CALL_TIMEOUT:"call timeout",END_CALL:"end call",TIMEOUT:"timeout",KICK_OUT:"kick out",CALLER_CALLING_MSG:"caller calling message",CALLER_GROUP_CALLING_MSG:"wait to be called",CALLEE_CALLING_VIDEO_MSG:"callee calling video message",CALLEE_CALLING_AUDIO_MSG:"callee calling audio message",NO_MICROPHONE_DEVICE_PERMISSION:"no microphone access",NO_CAMERA_DEVICE_PERMISSION:"no camera access",EXIST_GROUP_CALL:"exist group call",LOCAL_NETWORK_IS_POOR:"The network is poor during your current call",REMOTE_NETWORK_IS_POOR:"The other user network is poor during the current call"},jt={"zh-cn":uo,en:Io,ja_JP:go};function _e(t){var a,i;const e=h.getData(d.CALL,s.LANGUAGE);let n="";if(ri(t))n=((a=jt==null?void 0:jt[e])==null?void 0:a[t])||"";else if(Jn(t)){const{key:r,options:o}=t;n=((i=jt==null?void 0:jt[e])==null?void 0:i[r])||"",n=Oo(n,o)}return n}class Uo{constructor(){O(this,"defaultStore",{callStatus:x.IDLE,callRole:X.UNKNOWN,callMediaType:G.UNKNOWN,localUserInfo:{userId:""},localUserInfoExcludeVolume:{userId:""},remoteUserInfoList:[],remoteUserInfoExcludeVolumeList:[],callerUserInfo:{userId:""},isGroup:!1,callDuration:"00:00:00",callTips:"",toastInfo:{text:""},isMinimized:!1,enableFloatWindow:!1,bigScreenUserId:"",language:fo(),isClickable:!1,deviceList:{cameraList:[],microphoneList:[],currentCamera:{},currentMicrophone:{}},showPermissionTip:!1,netWorkQualityList:[],isMuteSpeaker:!1,isShowAutoPlayDialog:!1,callID:"",groupID:"",roomID:0,roomIdType:0,cameraPosition:rt.FRONT,groupCallMembers:[],displayMode:Dn.COVER,videoResolution:Tn.RESOLUTION_720P,showSelectUser:!1,pusher:{},player:[],isEarPhone:!1,pusherId:"",isShowEnableVirtualBackground:!1,enableVirtualBackground:!1,customUIConfig:{button:{},viewBackground:{},layoutMode:Yt.RemoteInLargeView},translate:_e,isForceUseV2API:!1,transcriberRobotId:null,realtimeMessageList:[],isAITranscriberEnabled:!1,isAITranscriberRunning:!1});O(this,"store",hn(this.defaultStore));O(this,"prevStore",hn(this.defaultStore))}update(e,n){switch(e){case s.CALL_TIPS:const a=this.getData(e);this.prevStore[e]=a;default:this.store[e]=n}}getPrevData(e){return e?this.prevStore[e]:this.prevStore}getData(e){return e?this.store[e]:this.store}reset(e=[]){e.length===0&&(e=Object.keys(this.store));const n=e.reduce((a,i)=>({...a,[i]:this.defaultStore[i]}),{});this.store={...this.defaultStore,...this.store,...n}}}let yt=(Ge=class{constructor(){O(this,"task");O(this,"storeMap");O(this,"timerId",-1);this.storeMap={[d.CALL]:new Uo},this.task={}}static getInstance(){return Ge.instance||(Ge.instance=new Ge),Ge.instance}watch(e,n,a){this.task[e]||(this.task[e]={});const i=this.task[e];Object.keys(n).forEach(r=>{const o=n[r];i[r]||(i[r]=new Map),i[r].set(o,1);const{notifyRangeWhenWatch:l}=a||{};if(l===s.ALL&&this.notify(e,r),l===s.MYSELF){const c=this.getData(e,r);o.call(this,c)}})}unwatch(e,n){if(!this.task[e])return;const a=this.task[e];Object.keys(n).forEach(i=>{a[i].delete(n[i])})}update(e,n,a){var i;(ri(a)||po(a)||Lo(a))&&this.storeMap[e].store[n]===a||((i=this.storeMap[e])==null||i.update(n,a),this.notify(e,n))}getPrevData(e,n){var a;return(a=this.storeMap[e])==null?void 0:a.getPrevData(n)}getData(e,n){var a;return(a=this.storeMap[e])==null?void 0:a.getData(n)}notify(e,n){if(!this.task[e])return;const a=this.task[e];if(a[n]){const i=a[n],r=this.getData(e,n);for(const[o]of i.entries())o.call(this,r)}}reset(e,n=[],a=!1){if(e in this.storeMap){const i=this.storeMap[e];n.length===0&&(n=Object.keys(i==null?void 0:i.store)),i.reset(n),a&&n.forEach(r=>{this.notify(e,r)})}}updateStore(e,n){const a=n||d.CALL;Object.keys(e).forEach(i=>{this.update(a,i,e[i])})}},O(Ge,"instance"),Ge);const vo=yt.getInstance(),xo=[-1001,-1002,-1101,60003,60004,60006,-1201,3e4,20007,101002],bo={"-1001":{id:10001,key:"error.10001"},"-1002":{id:10002,key:"error.10002"},"-1101":{id:10004,key:"error.10004"},60003:{id:10005,key:"error.10005"},60004:{id:10006,key:"error.10006"},60006:{id:10007,key:"error.10007"},"-1201":{id:10008,key:"error.10008"},3e4:{id:10012,key:"error.10012"},20007:{id:10013,key:"error.10013"},101002:{id:10014,key:"error.10014"}},_o=[-1001,-1002,101002],ko={"-1001":{id:10001,content:"您的应用还未开通音视频通话能力"},"-1002":{id:10002,content:"您暂不支持使用该能力,请前往购买页购买开通"},101002:{id:10014,content:"发起通话失败,用户 ID 无效,请确认该用户已注册"}};function Gt(t){!t||!(t!=null&&t.code)||(Vo(t),Qo(t))}function Vo(t){if(!xo.includes(t.code))return;const e=bo[t.code.toString()];if(e){let n=_e(e.key);vo.update(d.CALL,s.MODAL_ERROR,{id:e.id,content:n,title:_e("error")})}}function Qo(t){if(!_o.includes(t.code))return;const e=ko[t.code.toString()];e&&Mo.openModal({id:e.id,content:e.content,title:"错误",type:"error"})}const Bo="data:audio/mpeg;base64,SUQzAwAAAAAAGFRYWFgAAAAOAAAAVFhYWABpc29taXNvMv/zNGQAAqwAvnihCAADQAF4CUAQAFYAg3Lh8u+XUD5///wx//wQOAhKAgb/////xOoH4g8Hz4Pq8RoAbdTgMsMt9hcb990EP//zNGQQBPDjEgDItAAFWcIoAYoQAN9P/03QQ//umn//91SXL5uXP+pf8WYTvzgJPAQ+p/7f///1//6f///WH///F4BtJhNFkP/zNGQGA/jjNADHiAAEQDJcAYkQAGWrn6vw6ljfPtj/////////9Pv9sL/mL/QezSepgwrimv07//////y3u602OiyhOYb+LP/zNGQIBKTBKADoCACDoCZMAckAAKHKCUIAFsqGZXtSZ/////////Sn/Vy3nVUOJBqSX2UAkQxBddzv//////yq3lcgaTmTQ//zNGQHA9SrJgA8AliD4C5IAApYAKh3FKlMunKHm8H/2//77vkdqB2xfsXaHiDKBGtFKqONF3/////Z9VXClT5ND+syHkjBq//zNGQLBITJIAA8AmQEiDI4AAjSAGa1Vffm3ff/1/0//11tvZpAaIw3dBiIrjJgHQrGVWmdBU1f/////oDqEKrV1OpBUTjQtv/zNGQHAsjDKAAwAl4D0Co8AAmCBHIQNtld6fm0+/VigZzuMnGZlkAMLMJFv/////33UIWeFQkKsaceBsangecHzYXKI//////zNGQUA4QjKAA3CAID8CpEABMCBPfuStx4FQVHYMgKcO6jIJh//////9uIlspQkGQ2YyZscAV83Bv/////ncL6BEiWHyA2K//zNEQbAogfJgAx5hAEwDJcCAsEBtICgF3/////WJaIuuqMCCVGucgkrtwiwBO//////pW4YFRWQhaRRhZZnVwGhf////+ocv/zNEQmApgVJAANjwAFkC5YCApeAolD4kQb+EQJYNKwLWGmc6sqMBwJvf////6tDEOWDgFJk1VywKMGoM2f////+N1JmgJuPv/zNGQuA4AbJAAl5hIDwC48AAIGBEho7wTL5b6kSO7IUAA5uDABYNNjGDBSJEN//////xtQsszVy27IcWBbQkLgzv7YmZYW///zNGQ2AqzFNAgcA1+D8CZIAAhMAP/3/rozCAsBjIqCY/DBWMfQZp1f/////0F6phXSNisgAJjo6icT2vpvM/Vf9v///97eu//zNGRDA4gdJgBhghIDwCZAABGMAFVWERbCdaMYNCKs///2f//QMOBhFBEL+ykPDBIJgp1sjvOMAd/////1OEsNl3MST2Q0Yf/zNGRKA2DJKAAsBWYD8Co8AAmEBLDHj+M/IhcksnAgg6G+qLIYz5etEeeW8HZsorB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QAVFzeJk/7P/kwP/xdhRMTrUACv00/4g//yAYf/0BQbq//pt9g1oUDAfr3yAL///7FGQEAAB8EdotFKAADOPK8KKIAAJoU3AYUoAANQPtAwQgAP+AxFdH6KK//4gAd///B////BD9H016OkYCe3SqJGCu+B0/r73zwNf/hHDKd+qi7+p+cxcl//jwEfT/+P/7FGQDi/BqHdqHHOAADUO7EOKUAAE8RXEAAOEQMo6qwKAeyEBJ///+Vb//ANW//92///8KH9SigwdO3T/8VO/9f/6COA4f//8PfsIGaP/0NARX//1CMt///8uB+YAAa//7FEQJAABpHdkFKOAADSAbuKAIAILIjWoYcoAIYRGtAwRwARUWcSd/h7/6f/wsYeWC/366YgCYLj3T/22c32bxMM/7WRrB/v1ylhwEMScPdPX1ajOS+LG8Tjn/8riDhP/7FGQCgABnCV4GFEAADYEbUMEIAAGwd2gcoQAAM47rg5RwAJveumxH+WvR/+DdnBer034t8WXfvR//GQZmt//0Fif///BP/+hwIa///Nf///wqXf/1IwFkb//wi3/1Pf/7FEQGAABjEVkFKKAADSOrIKOcAAKAUWQYooAAUpGswwRwAF//QA7//6iH/7//E1CP66uDpoqjowL/6/GGwzFQx/T3Vp/9XC73/yvuUKYdmmN6evmjf5L5ZKr/8hlL/f/7FGQCgAB5FF2GBKAADYOrUMEIAAGod2YcVoAANI6rg4pQAEZrqH8GxT/UqjT/+aDlf/6dvj/r/4+rR//UH//+wTMuo///86//9QGR//+wCCxv//+MCD//BP//oAIP///7FGQFAABgEdsNFKAAC2I68KOcAAMggWoYVQAAP46tAwQgAMzq//QwCv//4WM/+a0//YWHBbCL/5Hi/IAIkheLBSvsvr6F98kyv/4Zg7A3/0+pcfN//8bL5ar/+8wV/v/7FGQCgACDFF0GFKAADkQLYMCIAAGod2occoAANg7rw4pQAKbXi7oTBez1IPl9X/4G2b//1b7/r6/a/Gy//6HAX//+gDAv///nHf/xoBf//hF////ILP0V//lQuP//qP/7FGQDj/BVHVmBQC2QC6O6wDQHsgGEd2gUI4AAMA7sA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oGHOAAHAR7IMKoAEHoUXAYIoAAN4ouwwJQAJMo4L+/GGRO5GDSsD6QvjG9fNboTfJPksA//C1e/+mM1DFieDM2ev6P/znv/TTUFWfBvry+rRX//Av//f/7FGQCj/BsHdqHCOAADOO64OKcAAFoeWYGgFZALo8rAFAeyU0FoaSv//8eb//BP//oBxb///mikv//l3//6goCl9xsv//QB///wDBOsgH11f/Lut0AUMOtP//x9gABgP/7FGQHg7BiHVoAIDuiDKO7KBQCsoFMR3ShAPBQLA7rwFAeyAA//w9f//wv8E4XP9PQKb34R//k//6gO///wIPbwsWVCQAH+vqEz/BaM//J//ooLn//zANEjecHf/1CHf/7FGQOD/BhEduo4DugDAO60CgHsgGAd2YFAazAMo8rQKAdmECUIWv//+cP//ygIPB+LdP//4XGHQKLSAB8sp9///gRz/1f/0BL//6gRf///qIW6d9Kj0GAOV6X4woKy//7FGQTgABrEV4lBEAADKO68KOcAAP0jWwYVQAAYxCsQwpQAXAtahrDftmZs3zB+574qD6cse/9MRcBIeDP8bl0EsFxX9dkG+oozcPjTz5K/v8wMJ//8BHT///QS//oA//7FGQID5BmHVsHHKAADWOq8OOIAAF0d2QGgFZAKQ7r1KAKyFl//6O3///KF8x//UG+///qE2NPghkC//nhE///xf/H//qAn//1Acd///8d//KgUb//5H///8g+jtSyH//7FGQOAABfHdqFFKAADKPLAKOIAAQMjWgYc4AIXJHs1w4gAHFZYQsxfPm9an5UMLFJFwLHfTz+qkfhO5MzGhOKAwIIAB/+eWEJo1J//8fTL//6D/EW4ur/+oa9H/+oCv/7FGQED5BpHdsHHKAADGAba+AIAAFcd2YGgLZAKo6rgKAeyD////OKgAACgCAPywNf5D/5H/+weG//+MQ/8LHf/ygKW//+RlvQFP/fKAv///CIhp///K//rOB7v//4h//7FGQKgABlHVoFHOAADYO60KacAAPgjWoYdQAISRGsgw4gAP//+Fm0fS6nKwoLipAoLfN6ZzRJELiHPPAuT6+iakSfJZnKgP/5YuIHOM/1+iY2D/T/g1+P8JX/+YA////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QAOJQFb//mgr///8o3/6HAr///CD///+NflUKoAz///ED9f//zjSoQN//6BhH/wW703//B8Dka3//8VurAAMAP/7FGQHD7BWHVoAQDswDEOrGAgCsgFIR24AAOEANI7sAAAIIAP/8Bb//4dvhKhPTt/80KM3/wXqBN//6g///16AQh69aqw3G/6/5LEHT//+Qf/+YBKt//6Y7T/x8M//yv/7FGQNj/BiHdmADRLQDGO6wDQHsgFsd2IGgLZAMQ7rQNAeyIQP//6wg0fhRv/1mQLN///kgf+B5ar/+4S//+gFF//hzs//j4g///CTf//+EfMf83FZYDzhSL86ui0F+f/7FGQTAABcEdsFFKAADOO68KOUAAPkjWwYdQAAVBGsgwpQAQBawuFYDq/7TfrP4+LkRyRyr/8LYRr/0+NLg6Tfr0/NJzlKyxa42v6c8KFwOMLjHrxdn4zEPgqSLBOuzf/7FGQKgAC8FVuGHUAAFsKK8MOcAAF4A3CcAQAoMYBqQ4AAABE+n/8TlxQXC3/NyligMxJw2zb4osIIuKrAH+c4H/83QUFBcgrxKCrlHvg0DT//iIO1TEFNRTMuMTAwVQ==";class Yo{constructor(){O(this,"_bellContext",null);O(this,"_isMuteBell",!1);O(this,"_calleeBellFilePath",ci);O(this,"_callRole",X.UNKNOWN);O(this,"_callStatus",x.IDLE);O(this,"_isPlaying",!1);this._bellContext=new Audio,this._bellContext.loop=!0}setBellSrc(){try{let e=Bo;this._callRole===X.CALLEE&&(e=this._calleeBellFilePath||ci),this._bellContext.src=e}catch(e){console.warn(`${s.PREFIX}Failed to setBellSrc, ${e}`)}}setBellProperties(e){this._callRole=e.callRole||this._callRole,this._callStatus=e.callStatus||this._callStatus,this._calleeBellFilePath=e.calleeBellFilePath||this._calleeBellFilePath,this._isMuteBell=Hn(e.isMuteBell)?this._isMuteBell:e.isMuteBell}async play(){try{if(this._callStatus!==x.CALLING)return;if(this._callStatus!==x.CALLING||this._isPlaying){console.warn(`${s.PREFIX}play skipped, callStatus: ${this._callStatus}, isPlaying: ${this._isPlaying}`);return}if(this._isPlaying=!0,this.setBellSrc(),this._callRole===X.CALLEE&&!this._isMuteBell){if(!this._isPlaying||this._callStatus!==x.CALLING)return;await this._bellContext.play();return}if(this._callRole===X.CALLER){if(!this._isPlaying||this._callStatus!==x.CALLING)return;await this._bellContext.play();return}}catch(e){console.warn(`${s.PREFIX}Failed to play audio file, ${e}`)}}async stop(){var e;try{this._isPlaying=!1,await((e=this._bellContext)==null?void 0:e.pause())}catch(n){console.warn(`${s.PREFIX}Failed to stop audio file, ${n}`)}}async setBellMute(e){this._callStatus!==x.CALLING&&this._callRole!==X.CALLEE||(e?await this.stop():await this.play())}destroy(){try{this._isMuteBell=!1,this._calleeBellFilePath="",this._callRole=X.UNKNOWN,this._callStatus=x.IDLE,this._isPlaying=!1,this._bellContext.pause(),this._bellContext=null}catch(e){console.warn(`${s.PREFIX}Failed to destroy, ${e}`)}}_delay(e){return new Promise(n=>setTimeout(n,e))}_delayCallback(e,n){setTimeout(e,n)}}function ee(){return function(t,e,n){const a=n.value,i=new Set;return n.value=async function(...r){var o,l;if(i.has(this)){console.warn(`${s.PREFIX}previous ${e}() is ongoing, please avoid repeated calls`),(l=(o=this==null?void 0:this.getTUICallEngineInstance())==null?void 0:o.reportLog)==null||l.call(o,{name:"TUICallKit.avoidRepeatedCall.fail",data:{name:e},error:`previous ${e}() is ongoing`});return}try{i.add(this);const c=await a.apply(this,r);return i.delete(this),c}catch(c){throw i.delete(this),c}},n.value.clearCallState=function(r){i.delete(r)},n}}const Z=yt.getInstance();function pn(t,e){const n={userId:t,nick:"",avatar:"",remark:"",displayUserInfo:"",isAudioAvailable:!1,isVideoAvailable:!1,isEnter:!1,domId:e||t};return e?n:{...n,isEnter:!1}}async function Ro(t,e){var a,i,r,o,l;let n=pn(t,s.LOCAL_VIDEO);try{if(!e)return n;const c=await e.getMyProfile(),u=Z==null?void 0:Z.getData(d.CALL,s.LOCAL_USER_INFO);return(c==null?void 0:c.code)===0&&(n={...n,...u,userId:(a=c==null?void 0:c.data)==null?void 0:a.userID,nick:(i=c==null?void 0:c.data)==null?void 0:i.nick,avatar:(r=c==null?void 0:c.data)==null?void 0:r.avatar,displayUserInfo:((o=c==null?void 0:c.data)==null?void 0:o.nick)||((l=c==null?void 0:c.data)==null?void 0:l.userID)}),n}catch(c){return console.error(`${s.PREFIX}getMyProfile failed, error: ${c}.`),n}}async function Zt(t,e){let n=t.map(a=>pn(a));try{if(!e)return n;if(e!=null&&e.getFriendProfile){const a=await e.getFriendProfile({userIDList:t});if(a.code===0){const{friendList:i=[],failureUserIDList:r=[]}=a.data;let o=r.map(I=>I.userID);if(r.length>0){const I=await e.getUserProfile({userIDList:r.map(N=>N.userID)});(I==null?void 0:I.code)===0&&(o=(I==null?void 0:I.data)||[])}const l=Z==null?void 0:Z.getData(d.CALL,s.REMOTE_USER_INFO_LIST),c=i.map(I=>I.userID),u=o.map(I=>I.userID);n=t.map(I=>{var S,j,y,f,U,m,k;const N=pn(I),A=c.indexOf(I),T=u.indexOf(I);let D="",E="",C="",L="";A!==-1&&(D=((S=i[A])==null?void 0:S.remark)||"",E=((y=(j=i[A])==null?void 0:j.profile)==null?void 0:y.nick)||"",C=D||E||N.userId||"",L=((U=(f=i[A])==null?void 0:f.profile)==null?void 0:U.avatar)||""),T!==-1&&(E=((m=o[T])==null?void 0:m.nick)||"",C=E||N.userId||"",L=((k=o[T])==null?void 0:k.avatar)||"");const p=l.find(Q=>Q.userId===I)||{};return{...N,...p,remark:D,nick:E,displayUserInfo:C,avatar:L}})}return n}else{const a=await e.getUserProfile({userIDList:t}),i=Z==null?void 0:Z.getData(d.CALL,s.REMOTE_USER_INFO_LIST);return n=t.map(r=>{const o=pn(r),l=i.find(u=>u.userId===r)||{},c=(a.data||[]).find(u=>u.userID===r)||{};return{...o,...l,nick:(c==null?void 0:c.nick)||"",displayUserInfo:(c==null?void 0:c.nick)||r,avatar:(c==null?void 0:c.avatar)||""}}),n}}catch(a){return console.error(`${s.PREFIX}getRemoteUserProfile failed, error: ${a}.`),n}}function jn(){const t=Z.getData(d.CALL,s.CALL_STATUS);if(t===x.IDLE)return ne.IDLE;const e=Z.getData(d.CALL,s.IS_GROUP);if(t===x.CALLING)return e?ne.DIALING_GROUP:ne.DIALING_C2C;const n=Z.getData(d.CALL,s.CALL_MEDIA_TYPE);return e?n===G.AUDIO?ne.CALLING_GROUP_AUDIO:ne.CALLING_GROUP_VIDEO:n===G.AUDIO?ne.CALLING_C2C_AUDIO:ne.CALLING_C2C_VIDEO}async function Go(t,e,n,a){let i=[];try{const r=await e.getGroupMemberList({groupID:t,count:n,offset:a});if(r.code===0)return r.data.memberList||i}catch(r){return console.error(`${s.PREFIX}getGroupMember failed, error: ${r}.`),i}}async function Zo(t,e){let n={};try{return(await e.getGroupProfile({groupID:t})).data.group||n}catch(a){return console.warn(`${s.PREFIX}getGroupProfile failed, error: ${a}.`),n}}function Mi(t,e){t===0&&e?(Z.update(d.CALL,s.ROOM_ID,e),Z.update(d.CALL,s.ROOM_ID_TYPE,Pn.STRING_ROOM_ID)):(Z.update(d.CALL,s.ROOM_ID,t),Z.update(d.CALL,s.ROOM_ID_TYPE,Pn.NUMBER_ROOM_ID))}function Te(t){return t||{}}function Kn(t){if(t.length===0)return;let e=Z.getData(d.CALL,s.REMOTE_USER_INFO_LIST);t.forEach(n=>{e=e.filter(a=>a.userId!==n)}),Z.update(d.CALL,s.REMOTE_USER_INFO_LIST,e),Z.update(d.CALL,s.REMOTE_USER_INFO_EXCLUDE_VOLUMN_LIST,e)}function $n(t){t==null||t.getDeviceList("speaker").then(n=>{const a=Z.getData(d.CALL,s.DEVICE_LIST),i=(n==null?void 0:n[0])||{};Z.update(d.CALL,s.DEVICE_LIST,{...a,speakerList:n,currentSpeaker:i})}).catch(n=>{console.error(`${s.PREFIX}updateSpeakerList failed, error: ${JSON.stringify(n)}.`)}),Z.getData(d.CALL,s.CALL_MEDIA_TYPE)===G.VIDEO&&(t==null||t.getDeviceList("camera").then(n=>{const a=Z.getData(d.CALL,s.DEVICE_LIST),i=(n==null?void 0:n[0])||{};Z.update(d.CALL,s.DEVICE_LIST,{...a,cameraList:n,currentCamera:i})}).catch(n=>{console.error(`${s.PREFIX}updateCameraList failed, error: ${n}.`)})),t==null||t.getDeviceList("microphones").then(n=>{const a=Z.getData(d.CALL,s.DEVICE_LIST),i=(n==null?void 0:n[0])||{};Z.update(d.CALL,s.DEVICE_LIST,{...a,microphoneList:n,currentMicrophone:i})}).catch(n=>{console.error(`${s.PREFIX}updateMicrophoneList failed, error: ${n}.`)})}function qn(t,e,n){let a="";if(yo(t)){e===G.AUDIO&&(a=se.NO_MICROPHONE_DEVICE_PERMISSION),e===G.VIDEO&&(a=se.NO_CAMERA_DEVICE_PERMISSION);const i=n==null?void 0:n.getDevicePermission();i!=null&&i.audio||Z.update(d.CALL,s.SHOW_PERMISSION_TIP,!0),a&&Z.update(d.CALL,s.TOAST_INFO,{content:a,type:s.ERROR}),console.error(`${s.PREFIX}call failed, error: ${t.message}.`)}}function st(t,e){let n=Z.getData(d.CALL,s.LOCAL_USER_INFO);e===s.AUDIO&&(n={...n,isAudioAvailable:t}),e===s.VIDEO&&(n={...n,isVideoAvailable:t}),Z.update(d.CALL,s.LOCAL_USER_INFO,n),Z.update(d.CALL,s.LOCAL_USER_INFO_EXCLUDE_VOLUMN,n)}class yn{static generateTaskID(){return this.currentTaskID++}static run(e=s.TIMEOUT,n,a){e===s.INTERVAL?a={delay:2e3,count:0,backgroundTask:!0,...a}:a={delay:2e3,count:0,backgroundTask:!0,...a},Jn(n)&&(a={...a,...n}),Ln(e)&&(n=e,e=s.TIMEOUT);const i={taskID:this.generateTaskID(),loopCount:0,intervalID:null,timeoutID:null,taskName:e,callback:n,...a};return this.taskMap.set(i.taskID,i),e===s.INTERNAL?this.interval(i):this.timeout(i),i.taskID}static interval(e){const n=()=>{e.callback(),e.loopCount+=1,this.isBreakLoop(e)};return e.intervalID=setInterval(n,e.delay)}static timeout(e){const n=()=>{if(e.callback(),e.loopCount+=1,!this.isBreakLoop(e))return e.timeoutID=setTimeout(n,e.delay)};return e.timeoutID=setTimeout(n,e.delay)}static hasTask(e){return this.taskMap.has(e)}static clearTask(e){if(!this.taskMap.has(e))return!0;const{intervalID:n,timeoutID:a,onVisibilitychange:i}=this.taskMap.get(e);return n&&clearInterval(n),a&&clearTimeout(a),i&&document.removeEventListener("visibilitychange",i),this.taskMap.delete(e),!0}static isBreakLoop(e){return this.taskMap.has(e.taskID)?e.count!==0&&e.loopCount>=e.count?(this.clearTask(e.taskID),!0):!1:!0}}O(yn,"taskMap",new Map),O(yn,"currentTaskID",1);const Fo=function(t){if(t===null||typeof t>"u")return!0;if(typeof t=="boolean")return!1;if(typeof t=="number")return t===0;if(typeof t=="string"||typeof t=="function"||Array.isArray(t))return t.length===0;if(t instanceof Error)return t.message==="";if(Jn(t)){for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}return!1},ea="_local_user_id",Dt=class Dt{constructor(){O(this,"_viewConfig",{viewBackground:{local:{},remote:{}}});O(this,"_isSetViewBackgroundConfig",{remote:!1,local:!1});O(this,"_tuiCallEngine",null);O(this,"_tuiStore",null)}static getInstance(){return Dt.instance||(Dt.instance=new Dt),Dt.instance}_updateViewBackground(){var a,i,r;const e=(a=this._tuiStore)==null?void 0:a.getData(d.CALL,s.CUSTOM_UI_CONFIG),{userId:n}=(i=this._tuiStore)==null?void 0:i.getData(d.CALL,s.LOCAL_USER_INFO);Object.keys(this._viewConfig.viewBackground.remote).includes(n)&&delete this._viewConfig.viewBackground.remote[n],(r=this._tuiStore)==null||r.update(d.CALL,s.CUSTOM_UI_CONFIG,{...e,viewBackground:{...this._viewConfig.viewBackground.remote,...this._viewConfig.viewBackground.local}})}setEngineInstance(e){this._tuiCallEngine=e}setTUIStore(e){this._tuiStore=e}updateViewBackgroundUserId(e){var n,a;if(e==="local"){const{userId:i}=(n=this._tuiStore)==null?void 0:n.getData(d.CALL,s.LOCAL_USER_INFO);if(Object.keys(this._viewConfig.viewBackground.remote).includes(i)&&(delete this._viewConfig.viewBackground.remote[i],this._updateViewBackground()),!this._isSetViewBackgroundConfig.local)return;const r=this._viewConfig.viewBackground.local,o=r[i]||r[ea];r[i]=r[ea],this._viewConfig.viewBackground.local={[i]:o},this._updateViewBackground()}else{let i=this._viewConfig.viewBackground.remote;this._isSetViewBackgroundConfig.remote&&Object.keys(i).includes("*")&&(((a=this._tuiStore)==null?void 0:a.getData(d.CALL,s.REMOTE_USER_INFO_LIST)).map(l=>l.userId).forEach(l=>{Object.keys(i).includes(l)||(i[l]=i["*"])}),this._viewConfig.viewBackground.remote=i,this._updateViewBackground())}}hideFeatureButton(e){var a,i,r,o,l;(i=(a=this._tuiCallEngine)==null?void 0:a.reportLog)==null||i.call(a,{name:"TUICallKit.hideFeatureButton.start",data:{buttonName:e}});const n=(r=this._tuiStore)==null?void 0:r.getData(d.CALL,s.CUSTOM_UI_CONFIG);(l=this._tuiStore)==null||l.update(d.CALL,s.CUSTOM_UI_CONFIG,{...n,button:{...n.button,[e]:{...((o=n.button)==null?void 0:o[e])||{},show:!1}}})}setLocalViewBackgroundImage(e){var a,i,r;(i=(a=this._tuiCallEngine)==null?void 0:a.reportLog)==null||i.call(a,{name:"TUICallKit.setLocalViewBackgroundImage.start",data:{url:e}}),this._isSetViewBackgroundConfig.local=!0;let{userId:n}=(r=this._tuiStore)==null?void 0:r.getData(d.CALL,s.LOCAL_USER_INFO);Fo(n)&&(n=ea),this._viewConfig.viewBackground.local={[n]:e},this._updateViewBackground()}setRemoteViewBackgroundImage(e,n){var a,i;(i=(a=this._tuiCallEngine)==null?void 0:a.reportLog)==null||i.call(a,{name:"TUICallKit.setRemoteViewBackgroundImage.start",data:{userId:e,url:n}}),this._isSetViewBackgroundConfig.remote=!0,e==="*"&&(this._viewConfig.viewBackground.remote={}),this._viewConfig.viewBackground.remote[e]=n,this._updateViewBackground()}setLayoutMode(e){var a,i;(i=(a=this._tuiCallEngine)==null?void 0:a.reportLog)==null||i.call(a,{name:"TUICallKit.setLayoutMode.start",data:{layoutMode:e}});const n=this._tuiStore.getData(d.CALL,s.CUSTOM_UI_CONFIG);this._tuiStore.update(d.CALL,s.CUSTOM_UI_CONFIG,{...n,layoutMode:e})}setCameraDefaultState(e){var a,i;(i=(a=this._tuiCallEngine)==null?void 0:a.reportLog)==null||i.call(a,{name:"TUICallKit.setCameraDefaultState.start",data:{isOpen:e}});const n=hn(this._tuiStore.getData(d.CALL,s.CUSTOM_UI_CONFIG));Object.keys(n.button).includes(ot.Camera)||(n.button[ot.Camera]={}),n.button[ot.Camera].state=e?Bt.Open:Bt.Close,this._tuiStore.update(d.CALL,s.CUSTOM_UI_CONFIG,n)}};O(Dt,"instance");let fn=Dt;const Sn=yt.getInstance(),Oe={audioCall:()=>"Voice call",videoCall:()=>"Video call",switchToAudio:()=>"Switch audio call",switchToVideo:()=>"Switch video call",hangup:({callDuration:t})=>`${_e("Call duration")}:${t}`},Tt=class Tt{constructor(e){O(this,"_callService");var n,a,i;this._callService=e.callService,R.TUICore.registerEvent(R.TUIConstants.TUILogin.EVENT.LOGIN_STATE_CHANGED,R.TUIConstants.TUILogin.EVENT_SUB_KEY.USER_LOGIN_SUCCESS,this),(n=R.TUIConstants.TUIChat)!=null&&n.EVENT&&R.TUICore.registerEvent((a=R.TUIConstants.TUIChat.EVENT)==null?void 0:a.CHAT_STATE_CHANGED,(i=R.TUIConstants.TUIChat.EVENT_SUB_KEY)==null?void 0:i.CHAT_OPENED,this),R.TUICore.registerService(R.TUIConstants.TUICalling.SERVICE.NAME,this),R.TUICore.registerExtension(R.TUIConstants.TUIChat.EXTENSION.INPUT_MORE.EXT_ID,this)}static getInstance(e){return Tt.instance||(Tt.instance=new Tt(e)),Tt.instance}callTUIService(e){const{message:n}=e||{};R.TUICore.callService({serviceName:R.TUIConstants.TUIChat.SERVICE.NAME,method:R.TUIConstants.TUIChat.SERVICE.METHOD.UPDATE_MESSAGE_LIST,params:{message:n}})}onGetExtension(e,n){var a,i;if(e===R.TUIConstants.TUIChat.EXTENSION.INPUT_MORE.EXT_ID){if((i=(a=this._callService.getTUICallEngineInstance())==null?void 0:a.reportLog)==null||i.call(a,{name:"TUICallKit.onGetExtension",data:{extensionID:e,params:n}}),Hn(n))return[];if([R.TUIConstants.TUIChat.TYPE.ROOM,R.TUIConstants.TUIChat.TYPE.CUSTOMER_SERVICE].includes(n.chatType))return[];let r=[];const o={weight:1e3,text:"语音通话",icon:qr,data:{name:"voiceCall"},listener:{onClicked:async c=>await this._handleTUICoreOnClick(c,c.type||G.AUDIO)}},l={weight:900,text:"视频通话",icon:eo,data:{name:"videoCall"},listener:{onClicked:async c=>await this._handleTUICoreOnClick(c,c.type||G.VIDEO)}};return n!=null&&n.chatType?r=[o,l]:(!(n!=null&&n.filterVoice)&&r.push(o),!(n!=null&&n.filterVideo)&&r.push(l)),r}}async onCall(e,n){e===R.TUIConstants.TUICalling.SERVICE.METHOD.START_CALL&&await this._handleTUICoreOnClick(n,n.type)}async onNotifyEvent(e,n,a){var i,r,o,l,c,u,I,N;try{if(e===R.TUIConstants.TUILogin.EVENT.LOGIN_STATE_CHANGED)if(n===R.TUIConstants.TUILogin.EVENT_SUB_KEY.USER_LOGIN_SUCCESS){const{chat:A,userID:T,userSig:D,SDKAppID:E}=R.TUILogin.getContext();await((i=this._callService)==null?void 0:i.init({tim:A,userID:T,userSig:D,sdkAppID:E,isFromChat:!0,component:Fn.TIM_CALL_KIT})),(r=this._callService)==null||r.setIsFromChat(!0),(o=this._callService)==null||o.setLogLevel(Xa.NORMAL),this._addListenChatEvent()}else n===R.TUIConstants.TUILogin.EVENT_SUB_KEY.USER_LOGOUT_SUCCESS&&(this._removeListenChatEvent(),await((l=this._callService)==null?void 0:l.destroyed()));if((c=R.TUIConstants.TUIChat)!=null&&c.EVENT&&e===R.TUIConstants.TUIChat.EVENT.CHAT_STATE_CHANGED&&n===R.TUIConstants.TUIChat.EVENT_SUB_KEY.CHAT_OPENED){if((u=this._callService)==null||u.setCurrentGroupId((a==null?void 0:a.groupID)||""),Sn.getData(d.CALL,s.CALL_STATUS)!==x.IDLE)return;const A=(I=this._callService)==null?void 0:I.getCurrentGroupId(),T=A?await this.getGroupAttributes((N=this._callService)==null?void 0:N.getTim(),A):{};await this.updateStoreBasedOnGroupAttributes(T)}}catch(A){console.error(`${s.PREFIX}TUICore onNotifyEvent failed, error: ${A}.`)}}async updateStoreBasedOnGroupAttributes(e){var n,a,i,r;(i=(a=(n=this._callService)==null?void 0:n.getTUICallEngineInstance())==null?void 0:a.reportLog)==null||i.call(a,{name:"TUICallKit.getJoinGroupCallInfo.success",data:{groupAttributes:e}});try{const{call_id:o="",group_id:l="",room_id:c=0,room_id_type:u=0,call_media_type:I=s.UNKNOWN,user_list:N}=e[s.INNER_ATTR_KIT_INFO]?JSON.parse(e[s.INNER_ATTR_KIT_INFO]):{};let A=(N||[]).map(D=>D.userid);A.length>0&&(A=await Zt(A,(r=this._callService)==null?void 0:r.getTim()));const T={[s.CALL_ID]:o,[s.GROUP_ID]:l,[s.GROUP_CALL_MEMBERS]:A,[s.ROOM_ID]:c,[s.CALL_MEDIA_TYPE]:$r[I],[s.ROOM_ID_TYPE]:u};Sn.updateStore(T,d.CALL)}catch(o){console.warn(`${s.PREFIX}updateStoreBasedOnGroupAttributes fail, error: ${o}`)}}async getGroupAttributes(e,n){if(!n)return{};try{const{data:a}=await e.getGroupAttributes({groupID:n,keyList:[]});return(a==null?void 0:a.groupAttributes)||{}}catch(a){return console.warn(`${s.PREFIX}getGroupAttributes fail: ${a}`),{}}}isLineBusy(e){var i;const n=Cn(e.payload.data),a=Cn(n==null?void 0:n.data);return(a==null?void 0:a.line_busy)==="line_busy"||(a==null?void 0:a.line_busy)===""||((i=a==null?void 0:a.data)==null?void 0:i.message)==="lineBusy"}async getCallKitMessage(e,n){var A,T,D,E;const a=Cn(e.payload.data);if((a==null?void 0:a.businessID)!==1)return{};let i="";const r=Cn(a==null?void 0:a.data),o=r.call_type,l=a.inviteeList,c=(A=r==null?void 0:r.data)==null?void 0:A.inviter,u=Sn.getData(d.CALL,s.LOCAL_USER_INFO).userId,I=c===u,N=(T=r==null?void 0:r.data)==null?void 0:T.cmd;switch(a==null?void 0:a.actionType){case pt.INVITE:{i=Oe[N]({callDuration:oi(r==null?void 0:r.call_end)});break}case pt.CANCEL_INVITE:i=I?"Call Cancel":"Other Side Cancel";break;case pt.ACCEPT_INVITE:["switchToAudio","switchToVideo"].includes(N)?i=(D=Oe==null?void 0:Oe[N])==null?void 0:D.call(Oe):i=_e("Answered");break;case pt.REJECT_INVITE:this.isLineBusy(e)?i=I?"Line Busy":"Other Side Line Busy":i=I?"Other Side Decline":"Decline";break;case pt.INVITE_TIMEOUT:["switchToAudio","switchToVideo"].includes(N)?i=(E=Oe==null?void 0:Oe[N])==null?void 0:E.call(Oe):i=I?"Other Side No Answer":"No answer";break}return{messageCardContent:i,callMediaType:o,inviteeList:l}}_addListenChatEvent(){var e,n;if(!((e=this._callService)!=null&&e.getTim())){console.warn(`${s.PREFIX}add tim event listener failed, tim is empty.`);return}(n=this._callService)==null||n.getTim().on(Ga.EVENT.GROUP_ATTRIBUTES_UPDATED,this._handleGroupAttributesUpdated,this)}_removeListenChatEvent(){var e,n;if(!((e=this._callService)!=null&&e.getTim())){console.warn(`${s.PREFIX}remove tim event listener failed, tim is empty.`);return}(n=this._callService)==null||n.getTim().off(Ga.EVENT.GROUP_ATTRIBUTES_UPDATED,this._handleGroupAttributesUpdated,this)}async _handleTUICoreOnClick(e,n){var a;try{const{groupID:i,userIDList:r=[],version:o="",...l}=e;await((a=this._callService)==null?void 0:a.calls({chatGroupID:i,userIDList:r,type:n,...l}))}catch(i){e!=null&&e.version||console.warn("Please upgrade to the latest Chat UIKit components."),console.debug(i)}}async _handleGroupAttributesUpdated(e){var r;if(Sn.getData(d.CALL,s.CALL_STATUS)!==x.IDLE)return;const n=(e==null?void 0:e.data)||{},{groupID:a="",groupAttributes:i={}}=n;a===((r=this._callService)==null?void 0:r.getCurrentGroupId())&&await this.updateStoreBasedOnGroupAttributes(i)}};O(Tt,"instance");let ta=Tt;const Po=0,Wo=1,ui=2;function Ho({retryFunction:t,settings:e,onError:n,onRetrying:a,onRetryFailed:i,context:r}){return function(...o){const l=e.retries||5;let c=0,u=-1,I=Po;const N=async(A,T)=>{const D=r||this;try{const E=await t.apply(D,o);c=0,A(E)}catch(E){const C=()=>{clearTimeout(u),c=0,I=ui,T(E)},L=()=>{I!==ui&&c<l?(c++,I=Wo,Ln(a)&&a.call(D,c,C),u=setTimeout(()=>{u=-1,N(A,T)},Hn(e.timeout)?1e3:e.timeout)):(C(),Ln(i)&&i.call(D,E))};Ln(n)?n.call(D,E,L,T,o):L()}};return new Promise(N)}}function Jo(t){return function(e,n,a){const{retries:i=5,timeout:r=2e3,onError:o,onRetrying:l,onRetryFailed:c}=t,u=Ho({retryFunction:a.value,settings:{retries:i,timeout:r},onError:o,onRetrying:l,onRetryFailed:c,context:null});return a.value=function(...I){return u.apply(this,I)},a}}var Xo=Object.defineProperty,Ko=Object.getOwnPropertyDescriptor,$o=(t,e,n,a)=>{for(var i=a>1?void 0:a?Ko(e,n):e,r=t.length-1,o;r>=0;r--)(o=t[r])&&(i=(a?o(e,n,i):o(i))||i);return a&&i&&Xo(e,n,i),i};const _=yt.getInstance(),qo=fn.getInstance(),Ii=(Ze=class{constructor(e){O(this,"_callService");this._callService=e.callService}static getInstance(e){return Ze.instance||(Ze.instance=new Ze(e)),Ze.instance}addListenTuiCallEngineEvent(){var n,a;const e=(n=this._callService)==null?void 0:n.getTUICallEngineInstance();if(!e){console.warn(`${s.PREFIX}add engine event listener failed, engine is empty.`);return}e.on(z.TUICallEvent.ERROR,this._handleError,this),e.on(z.TUICallEvent.ON_CALL_RECEIVED,this._handleNewInvitationReceived,this),(a=z.TUICallEvent)!=null&&a.ON_CALL_BEGIN&&e.on(z.TUICallEvent.ON_CALL_BEGIN,this._handleOnCallBegin,this),e.on(z.TUICallEvent.USER_ENTER,this._handleUserEnter,this),e.on(z.TUICallEvent.USER_LEAVE,this._handleUserLeave,this),e.on(z.TUICallEvent.REJECT,this._handleInviteeReject,this),e.on(z.TUICallEvent.NO_RESP,this._handleNoResponse,this),e.on(z.TUICallEvent.LINE_BUSY,this._handleLineBusy,this),e.on(z.TUICallEvent.ON_CALL_NOT_CONNECTED,this._handleCallNotConnected,this),e.on(z.TUICallEvent.ON_USER_INVITING,this._handleOnUserInviting,this),e.on(z.TUICallEvent.SDK_READY,this._handleSDKReady,this),e.on(z.TUICallEvent.KICKED_OUT,this._handleKickedOut,this),e.on(z.TUICallEvent.MESSAGE_SENT_BY_ME,this._messageSentByMe,this),z.TUICallEvent.CALL_MESSAGE&&e.on(z.TUICallEvent.CALL_MESSAGE,this._handleCallMessage,this),z.TUICallEvent.ON_USER_NETWORK_QUALITY_CHANGED&&e.on(z.TUICallEvent.ON_USER_NETWORK_QUALITY_CHANGED,this._handleNetworkQuality,this),e.on(z.TUICallEvent.CALLING_END,this._handleCallingEnd,this),e.on(z.TUICallEvent.CALL_TYPE_CHANGED,this._handleCallTypeChange,this),e.on(z.TUICallEvent.USER_VOICE_VOLUME,this._handleUserVoiceVolume,this),e.on(z.TUICallEvent.DEVICED_UPDATED,this._handleDeviceUpdate,this),e.on(z.TUICallEvent.USER_VIDEO_AVAILABLE,this._handleUserVideoAvailable,this),e.on(z.TUICallEvent.USER_AUDIO_AVAILABLE,this._handleUserAudioAvailable,this)}removeListenTuiCallEngineEvent(){var n,a;const e=(n=this._callService)==null?void 0:n.getTUICallEngineInstance();e.off(z.TUICallEvent.ERROR,this._handleError,this),e.off(z.TUICallEvent.ON_CALL_RECEIVED,this._handleNewInvitationReceived,this),(a=z.TUICallEvent)!=null&&a.ON_CALL_BEGIN&&e.off(z.TUICallEvent.ON_CALL_BEGIN,this._handleOnCallBegin,this),e.off(z.TUICallEvent.USER_ENTER,this._handleUserEnter,this),e.off(z.TUICallEvent.USER_LEAVE,this._handleUserLeave,this),e.off(z.TUICallEvent.REJECT,this._handleInviteeReject,this),e.off(z.TUICallEvent.NO_RESP,this._handleNoResponse,this),e.off(z.TUICallEvent.LINE_BUSY,this._handleLineBusy,this),e.off(z.TUICallEvent.ON_CALL_NOT_CONNECTED,this._handleCallNotConnected,this),e.off(z.TUICallEvent.ON_USER_INVITING,this._handleOnUserInviting,this),e.off(z.TUICallEvent.SDK_READY,this._handleSDKReady,this),e.off(z.TUICallEvent.KICKED_OUT,this._handleKickedOut,this),e.off(z.TUICallEvent.MESSAGE_SENT_BY_ME,this._messageSentByMe,this),z.TUICallEvent.ON_USER_NETWORK_QUALITY_CHANGED&&e.off(z.TUICallEvent.ON_USER_NETWORK_QUALITY_CHANGED,this._handleNetworkQuality,this),e.off(z.TUICallEvent.CALLING_END,this._handleCallingEnd,this),e.off(z.TUICallEvent.CALL_TYPE_CHANGED,this._handleCallTypeChange,this),e.off(z.TUICallEvent.USER_VOICE_VOLUME,this._handleUserVoiceVolume,this),e.off(z.TUICallEvent.DEVICED_UPDATED,this._handleDeviceUpdate,this),e.off(z.TUICallEvent.USER_VIDEO_AVAILABLE,this._handleUserVideoAvailable,this),e.off(z.TUICallEvent.USER_AUDIO_AVAILABLE,this._handleUserAudioAvailable,this)}_callerChangeToConnected(){var a,i,r;const e=_.getData(d.CALL,s.CALL_ROLE);_.getData(d.CALL,s.CALL_STATUS)===x.CALLING&&e===X.CALLER&&((i=(a=this._callService)==null?void 0:a._bellContext)==null||i.stop(),_.update(d.CALL,s.CALL_STATUS,x.CONNECTED),(r=this._callService)==null||r.startTimer())}_unNormalEventsManager(e,n){var r,o;console.log(`${s.PREFIX}${n} event data: ${JSON.stringify(e)}.`);const a=_.getData(d.CALL,s.IS_GROUP),i=_.getData(d.CALL,s.REMOTE_USER_INFO_LIST);switch(n){case z.TUICallEvent.REJECT:case z.TUICallEvent.LINE_BUSY:{const{userID:l}=Te(e);let c=n===z.TUICallEvent.REJECT?se.OTHER_SIDE_REJECT_CALL:se.OTHER_SIDE_LINE_BUSY,u="";a&&(u=(i.find(I=>I.userId===l)||{}).displayUserInfo||l,c=n===z.TUICallEvent.REJECT?se.REJECT_CALL:se.IN_BUSY),_.update(d.CALL,s.TOAST_INFO,{content:{key:c,options:{userList:u}}}),l&&Kn([l]),_.getData(d.CALL,s.REMOTE_USER_INFO_LIST).length===0&&((r=this._callService)==null||r._resetCallStore());break}case z.TUICallEvent.NO_RESP:{const{userIDList:l=[]}=Te(e),c=a?se.TIMEOUT:se.CALL_TIMEOUT,u=l.map(I=>(i.find(A=>A.userId===I)||{}).displayUserInfo||I);_.update(d.CALL,s.TOAST_INFO,{content:{key:c,options:{userList:u.join()}}}),l.length>0&&Kn(l);break}case z.TUICallEvent.ON_CALL_NOT_CONNECTED:{(o=this._callService)==null||o._resetCallStore();break}}}_handleError(e){var o;const{code:n,message:a}=e||{},i=Object.values(Ha).indexOf(n);let r="";if(i!==-1){const l=Object.keys(Ha)[i];r=_e(Ja[l]),r&&_.update(d.CALL,s.TOAST_INFO,{content:Ja[l],type:s.ERROR})}(o=this._callService)==null||o.executeExternalAfterCalling(),console.error(`${s.PREFIX}_handleError, errorCode: ${n}; errorMessage: ${r||a}.`)}async _handleNewInvitationReceived(e){var C,L,p,S;console.log(`${s.PREFIX}onCallReceived event data: ${JSON.stringify(e)}.`);const{callerId:n="",callMediaType:a,inviteData:i={},calleeIdList:r=[],chatGroupID:o="",roomID:l,strRoomID:c}=Te(e),u=_.getData(d.CALL,s.LOCAL_USER_INFO),I=[n,...r.filter(j=>j!==u.userId)],N=a||i.callType,A=N===G.AUDIO?se.CALLEE_CALLING_AUDIO_MSG:se.CALLEE_CALLING_VIDEO_MSG;let T={[s.CALL_ROLE]:X.CALLEE,[s.IS_GROUP]:!!o||r.length>1,[s.CALL_STATUS]:x.CALLING,[s.CALL_MEDIA_TYPE]:N,[s.CALL_TIPS]:A,[s.CALLER_USER_INFO]:{userId:n},[s.GROUP_ID]:o};Mi(l,c),_.updateStore(T,d.CALL),(C=this._callService)==null||C.executeExternalBeforeCalling(),(L=this._callService)!=null&&L.statusChanged&&((p=this._callService)==null||p.statusChanged({oldStatus:ne.IDLE,newStatus:ne.BE_INVITED}));const D=await Zt(I,(S=this._callService)==null?void 0:S.getTim()),[E]=D.filter(j=>j.userId===n);D.length>0&&_.updateStore({[s.REMOTE_USER_INFO_LIST]:D,[s.REMOTE_USER_INFO_EXCLUDE_VOLUMN_LIST]:D,[s.CALLER_USER_INFO]:{userId:n,nick:(E==null?void 0:E.nick)||"",avatar:(E==null?void 0:E.avatar)||"",displayUserInfo:(E==null?void 0:E.remark)||(E==null?void 0:E.nick)||n}},d.CALL)}async _handleOnCallBegin(e){var n,a;(a=(n=this._callService)==null?void 0:n._bellContext)==null||a.stop(),this._callerChangeToConnected(),_.update(d.CALL,s.CALL_TIPS,{text:"answered",duration:2e3}),await this._callService.openMicrophone(),console.log(`${s.PREFIX}accept event data: ${JSON.stringify(e)}.`)}async _handleUserEnter(e){const{userID:n,data:a}=Te(e);this._callerChangeToConnected(),await this._addUserToRemoteUserInfoList(n);let i=_.getData(d.CALL,s.REMOTE_USER_INFO_LIST);i=i.map(r=>(r.userId===n&&(r.isEnter=!0),r)),i.length>0&&(_.update(d.CALL,s.REMOTE_USER_INFO_LIST,i),_.update(d.CALL,s.REMOTE_USER_INFO_EXCLUDE_VOLUMN_LIST,i),qo.updateViewBackgroundUserId("remote")),console.log(`${s.PREFIX}userEnter event data: ${JSON.stringify(e)}.`)}_handleUserLeave(e){console.log(`${s.PREFIX}userLeave event data: ${JSON.stringify(e)}.`);const{data:n,userID:a}=Te(e);if(_.getData(d.CALL,s.IS_GROUP)){const r=(_.getData(d.CALL,s.REMOTE_USER_INFO_LIST).find(o=>o.userId===a)||{}).displayUserInfo||a;_.update(d.CALL,s.TOAST_INFO,{content:{key:se.END_CALL,options:{userList:r}}})}a&&Kn([a])}_handleInviteeReject(e){this._unNormalEventsManager(e,z.TUICallEvent.REJECT)}_handleNoResponse(e){this._unNormalEventsManager(e,z.TUICallEvent.NO_RESP)}_handleLineBusy(e){this._unNormalEventsManager(e,z.TUICallEvent.LINE_BUSY)}_handleCallNotConnected(e){var n,a,i;(a=(n=this==null?void 0:this._callService)==null?void 0:n._cleanupAvoidRepeatCallState)==null||a.call(n),(i=this._callService)==null||i.executeExternalAfterCalling(),this._unNormalEventsManager(e,z.TUICallEvent.ON_CALL_NOT_CONNECTED)}async _handleOnUserInviting(e){const{userID:n}=Te(e);n&&n!==_.getData(d.CALL,s.LOCAL_USER_INFO).userId&&await this._addUserToRemoteUserInfoList(n)}_handleCallingEnd(e){var n,a;console.log(`${s.PREFIX}callEnd event data: ${JSON.stringify(e)}.`),(n=this._callService)==null||n.executeExternalAfterCalling(),(a=this._callService)==null||a._resetCallStore()}async _handleSDKReady(e){var a;let n=_.getData(d.CALL,s.LOCAL_USER_INFO);n=await Ro(n.userId,(a=this._callService)==null?void 0:a.getTim()),_.update(d.CALL,s.LOCAL_USER_INFO,n),_.update(d.CALL,s.LOCAL_USER_INFO_EXCLUDE_VOLUMN,n)}_handleKickedOut(e){var n,a,i;console.log(`${s.PREFIX}kickOut event data: ${JSON.stringify(e)}.`),(n=this._callService)!=null&&n.kickedOut&&((a=this._callService)==null||a.kickedOut(e)),_.update(d.CALL,s.CALL_TIPS,se.KICK_OUT),(i=this._callService)==null||i._resetCallStore()}_messageSentByMe(e){var a,i;const n=e==null?void 0:e.data;(a=this._callService)!=null&&a.onMessageSentByMe&&((i=this._callService)==null||i.onMessageSentByMe(n))}_handleCallMessage(e){const n=Te(e);this._callService._chatCombine.callTUIService({message:n})}_handleCallTypeChange(e){const{newCallType:n,type:a}=Te(e);_.update(d.CALL,s.CALL_MEDIA_TYPE,n||a)}_handleNetworkQuality(e){const{networkQualityList:n=[]}=Te(e);_.update(d.CALL,s.NETWORK_STATUS,n);const a=_.getData(d.CALL,s.IS_GROUP),i=_.getData(d.CALL,s.LOCAL_USER_INFO);if(_.getData(d.CALL,s.REMOTE_USER_INFO_LIST),!a&&n.find(o=>(i==null?void 0:i.userId)===(o==null?void 0:o.userId)&&(o==null?void 0:o.quality)>=no)){_.update(d.CALL,s.CALL_TIPS,se.LOCAL_NETWORK_IS_POOR);return}}async _startRemoteView(e){var n;if(!e){console.warn(`${s.PREFIX}_startRemoteView userID is empty`);return}if(!document.getElementById(e))return console.warn(`${s.PREFIX}_startRemoteView can't find HTMLElement sid: ${e}`),Promise.reject();try{const a=_.getData(d.CALL,s.DISPLAY_MODE);await((n=this._callService)==null?void 0:n.getTUICallEngineInstance().startRemoteView({userID:e,videoViewDomID:e,options:{objectFit:a}}))}catch(a){return console.error(`${s.PREFIX}_startRemoteView error: ${a}.`),Promise.reject(a)}}_setRemoteUserInfoAudioVideoAvailable(e,n,a){let i=_.getData(d.CALL,s.REMOTE_USER_INFO_LIST);i=i.map(r=>{if(r.userId===a){if(n===s.AUDIO)return{...r,isAudioAvailable:e};if(n===s.VIDEO)return{...r,isVideoAvailable:e}}return r}),i.length>0&&(_.update(d.CALL,s.REMOTE_USER_INFO_LIST,i),_.update(d.CALL,s.REMOTE_USER_INFO_EXCLUDE_VOLUMN_LIST,i))}async _handleUserVideoAvailable(e){const{userID:n,isVideoAvailable:a}=Te(e);console.log(`${s.PREFIX}_handleUserVideoAvailable event data: ${JSON.stringify(e)}.`),this._setRemoteUserInfoAudioVideoAvailable(a,s.VIDEO,n);try{a&&await this._startRemoteView(n)}catch(i){console.error(`${s.PREFIX}_startRemoteView failed, error: ${i}.`)}}_handleUserAudioAvailable(e){const{userID:n,isAudioAvailable:a}=Te(e);console.log(`${s.PREFIX}_handleUserAudioAvailable event data: ${JSON.stringify(e)}.`),this._setRemoteUserInfoAudioVideoAvailable(a,s.AUDIO,n)}_handleUserVoiceVolume(e){try{const{volumeMap:n}=Te(e);if((n||[]).length===0)return;const a=_.getData(d.CALL,s.LOCAL_USER_INFO);let i=_.getData(d.CALL,s.REMOTE_USER_INFO_LIST);const[r]=n.filter(c=>c.userId===a.userId),o=n.reduce((c,u)=>u.userId!==a.userId?{...c,[u.userId]:u.audioVolume}:c,{});a.volume=r.audioVolume,i=i.map(c=>({...c,volume:o[c.userId]}));const l={[s.LOCAL_USER_INFO]:a,[s.REMOTE_USER_INFO_LIST]:i};_.updateStore(l,d.CALL)}catch(n){console.debug(n)}}_handleDeviceUpdate(e){const{cameraList:n,microphoneList:a,speakerList:i,currentCamera:r,currentMicrophone:o,currentSpeaker:l}=e;_.update(d.CALL,s.DEVICE_LIST,{cameraList:n,microphoneList:a,speakerList:i,currentCamera:r,currentMicrophone:o,currentSpeaker:l})}async _addUserToRemoteUserInfoList(e){var i;let n=_.getData(d.CALL,s.REMOTE_USER_INFO_LIST);if(!n.find(r=>(r==null?void 0:r.userId)===e)){n.push({userId:e}),_.update(d.CALL,s.REMOTE_USER_INFO_LIST,n),_.update(d.CALL,s.REMOTE_USER_INFO_EXCLUDE_VOLUMN_LIST,n);const[r]=await Zt([e],(i=this._callService)==null?void 0:i.getTim());n=_.getData(d.CALL,s.REMOTE_USER_INFO_LIST),n.forEach(o=>{(o==null?void 0:o.userId)===e&&(o=Object.assign(o,r))}),_.update(d.CALL,s.REMOTE_USER_INFO_LIST,n),_.update(d.CALL,s.REMOTE_USER_INFO_EXCLUDE_VOLUMN_LIST,n)}}},O(Ze,"instance"),Ze);$o([Jo({retries:5,timeout:200,onRetrying(t){console.warn(`${s.PREFIX}_startRemoteView, retrying [${t}]`)}})],Ii.prototype,"_startRemoteView",1);let es=Ii;const Ee=yt.getInstance(),Et=class Et{constructor(e){O(this,"_callService");O(this,"eventListeners",new Map);O(this,"getTranscriberManager",()=>{var a,i;const e=(a=this._callService)==null?void 0:a.getTUICallEngineInstance();if(!e)return console.warn(`${s.PREFIX}Failed to get call engine instance.`),null;const n=(i=e.getTRTCCloudInstance)==null?void 0:i.call(e);return!n||!n.getAITranscriberManager?(console.warn(`${s.PREFIX}AI Transcriber not supported.`),null):n.getAITranscriberManager()});O(this,"triggerEvent",(e,n)=>{const a=this.eventListeners.get(e);a&&a.forEach(i=>{try{i(n)}catch(r){console.error(`${s.PREFIX}Error in event callback for ${e}:`,r)}})});O(this,"startRealtimeTranscriber",async e=>{const n=this.getTranscriberManager();if(!n)return null;try{const a=await n.startRealtimeTranscriber(e);return Ee.update(d.CALL,s.TRANSCRIBER_ROBOT_ID,a),Ee.update(d.CALL,s.IS_AI_TRANSCRIBER_RUNNING,!0),a}catch(a){throw console.error(`${s.PREFIX}startRealtimeTranscriber error:`,a),a}});O(this,"stopRealtimeTranscriber",async()=>{const e=this.getTranscriberManager();if(e)try{const n=Ee.getData(d.CALL,s.TRANSCRIBER_ROBOT_ID);n&&await e.stopRealtimeTranscriber(n),Ee.update(d.CALL,s.TRANSCRIBER_ROBOT_ID,null),Ee.update(d.CALL,s.IS_AI_TRANSCRIBER_RUNNING,!1)}catch(n){throw console.error(`${s.PREFIX}stopRealtimeTranscriber error:`,n),n}});O(this,"updateRealTimeTranscriber",async e=>{const n=this.getTranscriberManager();if(!n)return null;try{const a=Ee.getData(d.CALL,s.TRANSCRIBER_ROBOT_ID);a&&await n.stopRealtimeTranscriber(a);const i=await n.startRealtimeTranscriber(e);return Ee.update(d.CALL,s.TRANSCRIBER_ROBOT_ID,i),i}catch(a){throw console.error(`${s.PREFIX}updateRealTimeTranscriber error:`,a),a}});O(this,"subscribeEvent",(e,n)=>{var a;this.eventListeners.has(e)||this.eventListeners.set(e,[]),(a=this.eventListeners.get(e))==null||a.push(n)});O(this,"unsubscribeEvent",(e,n)=>{const a=this.eventListeners.get(e);if(a){const i=a.indexOf(n);i>-1&&a.splice(i,1),a.length===0&&this.eventListeners.delete(e)}});O(this,"onReceiveTranscriberMessage",(e,n)=>{const{segmentId:a}=n;let i=Ee.getData(d.CALL,s.REALTIME_MESSAGE_LIST)||[];const r=i.findIndex(o=>o.segmentId===a);r>=0?i[r]=n:i.push(n),Ee.update(d.CALL,s.REALTIME_MESSAGE_LIST,[...i]),this.triggerEvent("onReceiveTranscriberMessage",{roomId:e,message:n})});O(this,"onRealtimeTranscriberStarted",(e,n,a)=>{this.triggerEvent("onRealtimeTranscriberStarted",{roomId:e,transcriberRobotId:n,sourceLanguage:a})});O(this,"onRealtimeTranscriberStopped",(e,n)=>{this.triggerEvent("onRealtimeTranscriberStopped",{roomId:e,transcriberRobotId:n})});O(this,"onRealtimeTranscriberError",(e,n,a,i)=>{this.triggerEvent("onRealtimeTranscriberError",{roomId:e,transcriberRobotId:n,error:a,errorMessage:i})});O(this,"bindEvent",()=>{const e=this.getTranscriberManager();if(e)try{e.addListener({onReceiveTranscriberMessage:this.onReceiveTranscriberMessage,onRealtimeTranscriberStarted:this.onRealtimeTranscriberStarted,onRealtimeTranscriberStopped:this.onRealtimeTranscriberStopped,onRealtimeTranscriberError:this.onRealtimeTranscriberError})}catch(n){console.error(`${s.PREFIX}bindEvent error:`,n)}});O(this,"unbindEvent",()=>{const e=this.getTranscriberManager();if(e)try{e.removeListener({onReceiveTranscriberMessage:this.onReceiveTranscriberMessage,onRealtimeTranscriberStarted:this.onRealtimeTranscriberStarted,onRealtimeTranscriberStopped:this.onRealtimeTranscriberStopped,onRealtimeTranscriberError:this.onRealtimeTranscriberError})}catch(n){console.error(`${s.PREFIX}unbindEvent error:`,n)}});O(this,"reset",()=>{Ee.update(d.CALL,s.TRANSCRIBER_ROBOT_ID,null),Ee.update(d.CALL,s.REALTIME_MESSAGE_LIST,[]),Ee.update(d.CALL,s.IS_AI_TRANSCRIBER_ENABLED,!1),this.eventListeners.clear()});this._callService=e.callService}static getInstance(e){return Et.instance||(Et.instance=new Et(e)),Et.instance}};O(Et,"instance");let na=Et;var ts=Object.defineProperty,ns=Object.getOwnPropertyDescriptor,te=(t,e,n,a)=>{for(var i=a>1?void 0:a?ns(e,n):e,r=t.length-1,o;r>=0;r--)(o=t[r])&&(i=(a?o(e,n,i):o(i))||i);return a&&i&&ts(e,n,i),i};const w=ii.getInstance(),h=yt.getInstance(),ke=fn.getInstance();ke.setTUIStore(h);const gi="4.5.3-beta.1",di="react",K=(Fe=class{constructor(){O(this,"_tuiCallEngine");O(this,"_aiAssistant",null);O(this,"_tim",null);O(this,"_TUICore",null);O(this,"_timerId",-1);O(this,"_startTimeStamp",Xn());O(this,"_bellContext",null);O(this,"_isFromChat",!1);O(this,"_currentGroupId","");O(this,"_offlinePushInfo",null);O(this,"_permissionCheckTimer",null);O(this,"_chatCombine",null);O(this,"_engineEventHandler",null);O(this,"_wasmReadyPromise");O(this,"_wasmReadyResolve");O(this,"_isInitialized",!1);O(this,"_handleAutoPlayFailed",()=>{var e,n;(n=(e=this._tuiCallEngine)==null?void 0:e.reportLog)==null||n.call(e,{name:"TUICallkit.onAutoPlayFailed"}),h.update(d.CALL,s.IS_SHOW_AUTO_PLAY_DIALOG,!0)});O(this,"beforeCalling");O(this,"afterCalling");O(this,"onMinimized");O(this,"onMessageSentByMe");O(this,"kickedOut");O(this,"statusChanged");O(this,"_handleCallStatusChange",async e=>{var n,a,i,r,o,l;try{const c={callRole:h.getData(d.CALL,s.CALL_ROLE),callStatus:h.getData(d.CALL,s.CALL_STATUS)};if((a=(n=this._tuiCallEngine)==null?void 0:n.reportLog)==null||a.call(n,{name:"TUICallkit._handleCallStatusChange.start",data:{bellParams:c}}),this._bellContext.setBellProperties(c),e===x.CALLING)(i=this==null?void 0:this._bellContext)==null||i.play();else{if((o=(r=this._tuiCallEngine)==null?void 0:r.reportLog)==null||o.call(r,{name:"TUICallkit._bellContext.stop"}),e===x.CONNECTED){const u=h.getData(d.CALL,s.IS_GROUP),I=h.getData(d.CALL,s.CALL_MEDIA_TYPE),N=h.getData(d.CALL,s.REMOTE_USER_INFO_LIST),A=u?ne.DIALING_GROUP:ne.DIALING_C2C;h.update(d.CALL,s.CALL_TIPS,""),this.statusChanged&&this.statusChanged({oldStatus:A,newStatus:jn()}),!u&&I===G.VIDEO&&this.switchScreen(N[0].domId)}await((l=this==null?void 0:this._bellContext)==null?void 0:l.stop())}}catch(c){console.warn(`${s.PREFIX}handleCallStatusChange, ${c}.`)}});console.log(`${s.PREFIX}version: ${gi}`),this._wasmReadyPromise=new Promise(e=>{this._wasmReadyResolve=e}),this._loadWasm(),this._watchTUIStore(),this._engineEventHandler=es.getInstance({callService:this}),this._chatCombine=ta.getInstance({callService:this}),this._aiAssistant=na.getInstance({callService:this}),wo(this.handleExceptionExit.bind(this))}static getInstance(){return Fe.instance||(Fe.instance=new Fe),Fe.instance}_loadWasm(){z.TUICallEngine.once("ready",()=>this._wasmReadyResolve())}async init(e){if(this._isInitialized){console.warn("TUICallKit has already been initialized.");return}await this._wasmReadyPromise,this._isInitialized||(await this._doInit(e),this._isInitialized=!0)}async _doInit(e){var n,a,i,r,o,l,c;try{if(this._tuiCallEngine)return;let{userID:u,tim:I,userSig:N,sdkAppID:A,SDKAppID:T,isFromChat:D,component:E=Fn.TUI_CALL_KIT}=e;this._TUICore&&(A=this._TUICore.SDKAppID,I=this._TUICore.tim),this._tim=I,console.log(`${s.PREFIX}init sdkAppId: ${A||T}, userId: ${u}`);let C="web";C=`${C}-${di}`,this._tuiCallEngine=z.TUICallEngine.createInstance({tim:I,SDKAppID:A||T,frameWork:di,language:7,callkitVersion:gi,isFromChat:D||!1,component:E,scene:C}),ke.setEngineInstance(this._tuiCallEngine),this._addListenTuiCallEngineEvent(),this._bellContext&&((n=this._bellContext)==null||n.destroy()),this._bellContext=new Yo,h.update(d.CALL,s.LOCAL_USER_INFO,{userId:u}),h.update(d.CALL,s.LOCAL_USER_INFO_EXCLUDE_VOLUMN,{userId:u}),ke.updateViewBackgroundUserId("local"),(a=this._aiAssistant)==null||a.bindEvent(),await this._tuiCallEngine.login({userID:u,userSig:N,assetsPath:""});const L=h.getData(d.CALL,s.CUSTOM_UI_CONFIG),p=(r=(i=this._tuiCallEngine)==null?void 0:i.getTRTCCloudInstance)==null?void 0:r.call(i);p==null||p.callExperimentalAPI(JSON.stringify({api:"enableAutoPlayDialog",params:{enable:0}})),(o=p==null?void 0:p.on)==null||o.call(p,"onAutoPlayFailed",this._handleAutoPlayFailed),(c=(l=this._tuiCallEngine)==null?void 0:l.reportLog)==null||c.call(l,{name:"TUICallkit.init",data:{uiConfig:L}})}catch(u){throw console.error(`${s.PREFIX}init failed, error: ${u}.`),u}}async destroyed(){var e,n,a,i,r,o;try{this._isInitialized=!1;const l=h.getData(d.CALL,s.CALL_STATUS);if(l!==x.IDLE)throw new Error(`please destroyed when status is idle, current status: ${l}`);if(this._tuiCallEngine){this._removeListenTuiCallEngineEvent();const c=(n=(e=this._tuiCallEngine)==null?void 0:e.getTRTCCloudInstance)==null?void 0:n.call(e);(a=c==null?void 0:c.off)==null||a.call(c,"onAutoPlayFailed",this._handleAutoPlayFailed),await this._tuiCallEngine.destroyInstance(),this._tuiCallEngine=null}(i=this._aiAssistant)==null||i.unbindEvent(),(r=this._aiAssistant)==null||r.reset(),(o=this._bellContext)==null||o.destroy(),this._bellContext=null}catch(l){throw console.error(`${s.PREFIX}destroyed failed, error: ${l}.`),l}}async inviteUser(e){if(h.getData(d.CALL,s.CALL_STATUS)!==x.IDLE)try{const{userIDList:n}=e;let a=await Zt(n,this.getTim());const i=h.getData(d.CALL,s.REMOTE_USER_INFO_LIST);if(n.filter(o=>!i.some(l=>l.userId===o)).length===0)return;h.update(d.CALL,s.REMOTE_USER_INFO_LIST,[...i,...a]),h.update(d.CALL,s.REMOTE_USER_INFO_EXCLUDE_VOLUMN_LIST,[...i,...a]),this._tuiCallEngine&&await this._tuiCallEngine.inviteUser(e)}catch(n){console.error(`${s.PREFIX}inviteUser failed, error: ${n}.`)}}async calls(e){if(h.getData(d.CALL,s.CALL_STATUS)===x.IDLE)try{h.update(d.CALL,s.PUSHER_ID,s.NEW_PUSHER);const{userIDList:n,type:a,chatGroupID:i,offlinePushInfo:r}=e;if(h.getData(d.CALL,s.CALL_STATUS)!==x.IDLE)return;const o=n.map(c=>({userId:c}));await this._updateCallStoreBeforeCall(a,o,i),this.executeExternalBeforeCalling(),e.offlinePushInfo={...this.getDefaultOfflinePushInfo(),...r};const l=await this._tuiCallEngine.calls(e);await this._updateCallStoreAfterCall(n,l)}catch(n){Gt(n),this._handleCallError(n,"calls")}}async join(e){if(h.getData(d.CALL,s.CALL_STATUS)!==x.CONNECTED)try{h.update(d.CALL,s.PUSHER_ID,s.NEW_PUSHER);const n={[s.CALL_ROLE]:X.CALLEE,[s.IS_GROUP]:!0,[s.CALL_STATUS]:x.CONNECTED,[s.CALL_MEDIA_TYPE]:h.getData(d.CALL,s.CALL_MEDIA_TYPE)||G.AUDIO};h.updateStore(n,d.CALL);const a=await this._tuiCallEngine.join(e);h.update(d.CALL,s.IS_CLICKABLE,!0),this.startTimer(),$n(this._tuiCallEngine),await this._tuiCallEngine.setVideoQuality(h.getData(d.CALL,s.VIDEO_RESOLUTION));const i=h.getData(d.CALL,s.LOCAL_USER_INFO);h.update(d.CALL,s.LOCAL_USER_INFO,{...i,isEnter:!0}),h.update(d.CALL,s.LOCAL_USER_INFO_EXCLUDE_VOLUMN,{...i,isEnter:!0}),await this.openMicrophone(),st(!0,s.AUDIO)}catch(n){Gt(n),this._handleCallError(n,"join")}}getTUICallEngineInstance(){return(this==null?void 0:this._tuiCallEngine)||null}setLogLevel(e){var n;(n=this==null?void 0:this._tuiCallEngine)==null||n.setLogLevel(e)}setLanguage(e){e&&Object.values(Wa).includes(e)&&(h.update(d.CALL,s.LANGUAGE,e),h.update(d.CALL,s.TRANSLATE,_e.bind(null)))}enableFloatWindow(e){h.update(d.CALL,s.ENABLE_FLOAT_WINDOW,e)}async setSelfInfo(e){const{nickName:n,avatar:a}=e;try{await this._tuiCallEngine.setSelfInfo({nickName:n,avatar:a})}catch(i){console.error(`${s.PREFIX}setSelfInfo failed, error: ${i}.`)}}async enableVirtualBackground(e){h.update(d.CALL,s.IS_SHOW_ENABLE_VIRTUAL_BACKGROUND,e)}async enableAIVoice(e){try{await this._tuiCallEngine.enableAIVoice(e),console.log(`${s.PREFIX}enableAIVoice: ${e}.`)}catch(n){throw console.error(`${s.PREFIX}enableAIVoice failed, error: ${n}.`),n}}async enableAITranscriber(e){try{h.update(d.CALL,s.IS_AI_TRANSCRIBER_ENABLED,e),console.log(`${s.PREFIX}enableAITranscriber: ${e}.`)}catch(n){throw console.error(`${s.PREFIX}enableAITranscriber failed, error: ${n}.`),n}}async setCallingBell(e){let n=!0;if(n=await ao(e),!n){console.warn(`${s.PREFIX}setCallingBell failed, filePath: ${e}.`);return}const a={calleeBellFilePath:e};this._bellContext.setBellProperties(a)}async enableMuteMode(e){try{const n={isMuteBell:e};this._bellContext.setBellProperties(n),await this._bellContext.setBellMute(e)}catch(n){console.warn(`${s.PREFIX}enableMuteMode failed, error: ${n}.`)}}hideFeatureButton(e){ke.hideFeatureButton(e)}setLocalViewBackgroundImage(e){ke.setLocalViewBackgroundImage(e)}setRemoteViewBackgroundImage(e,n){ke.setRemoteViewBackgroundImage(e,n)}setLayoutMode(e){ke.setLayoutMode(e)}setCameraDefaultState(e){ke.setCameraDefaultState(e)}callExperimentalAPI(e){var r,o,l,c,u,I;const n=JSON.parse(e);if(n===e)return;const{api:a,params:i}=n;if(!(!a||!i))try{switch(a){case"setAssetsPath":(o=(r=z.TUICallEngine)==null?void 0:r.callExperimentalAPI)==null||o.call(r,e);break;case"forceUseV2API":const{enable:N}=i;h.update(d.CALL,s.IS_FORCE_USE_V2_API,!!N);break;case"setWaterMark":(c=(l=this._tuiCallEngine)==null?void 0:l.callExperimentalAPI)==null||c.call(l,e);break;default:break}}catch(N){(I=(u=this._tuiCallEngine)==null?void 0:u.reportLog)==null||I.call(u,{name:"TUICallKit.callExperimentalAPI.fail",data:{error:N}})}}async accept(){var n,a,i,r;const e=h.getData(d.CALL,s.CALL_STATUS);if((a=(n=this._tuiCallEngine)==null?void 0:n.reportLog)==null||a.call(n,{name:"TUICallKit.accept.start",data:{callStatus:e}}),e!==x.CONNECTED)try{h.update(d.CALL,s.CALL_STATUS,x.CONNECTED),$n(this._tuiCallEngine);const o=await this._tuiCallEngine.accept();await this._handleAcceptResponse(o)}catch(o){if((r=(i=this._tuiCallEngine)==null?void 0:i.reportLog)==null||r.call(i,{name:"TUICallKit.accept.fail",level:"error",error:o}),si(o))return;Gt(o),qn(o,G.AUDIO,this._tuiCallEngine),this._resetCallStore()}}async _handleAcceptResponse(e){var n,a;if(e){(a=this._chatCombine)==null||a.callTUIService({message:(n=e==null?void 0:e.data)==null?void 0:n.message}),h.update(d.CALL,s.IS_CLICKABLE,!0),this.startTimer();const i=h.getData(d.CALL,s.CALL_MEDIA_TYPE),r=this._getFeatureButtonDefaultState(ot.Camera)===Bt.Close;i===G.VIDEO&&!r&&await this.openCamera(s.LOCAL_VIDEO),await this._tuiCallEngine.setVideoQuality(h.getData(d.CALL,s.VIDEO_RESOLUTION));const o=h.getData(d.CALL,s.LOCAL_USER_INFO);h.update(d.CALL,s.LOCAL_USER_INFO,{...o,isEnter:!0}),h.update(d.CALL,s.LOCAL_USER_INFO_EXCLUDE_VOLUMN,{...o,isEnter:!0}),st(!0,s.AUDIO)}}async hangup(){if(h.getData(d.CALL,s.CALL_STATUS)!==x.IDLE){try{const e=await this._tuiCallEngine.hangup();e==null||e.forEach(n=>{var a,i;(n==null?void 0:n.code)===0&&((i=this._chatCombine)==null||i.callTUIService({message:(a=n==null?void 0:n.data)==null?void 0:a.message}))})}catch(e){Gt(e),console.debug(e)}this._resetCallStore()}}async reject(){var e,n;if(h.getData(d.CALL,s.CALL_STATUS)!==x.IDLE){try{const a=await this._tuiCallEngine.reject();(a==null?void 0:a.code)===0&&((n=this._chatCombine)==null||n.callTUIService({message:(e=a==null?void 0:a.data)==null?void 0:e.message}))}catch(a){Gt(a),console.debug(a)}this._resetCallStore()}}async openCamera(e){try{if(w.isH5||w.isWeChat){const a=h.getData(d.CALL,s.CAMERA_POSITION)===rt.FRONT;this._tuiCallEngine.openCamera(e,a)}else await this._tuiCallEngine.openCamera(e);st(!0,s.VIDEO)}catch(n){qn(n,G.VIDEO,this._tuiCallEngine),console.error(`${s.PREFIX}openCamera error: ${n}.`)}}async closeCamera(){try{await this._tuiCallEngine.closeCamera(),st(!1,s.VIDEO)}catch(e){console.error(`${s.PREFIX}closeCamera error: ${e}.`)}}async openMicrophone(){try{await this._tuiCallEngine.openMicrophone(),st(!0,s.AUDIO)}catch(e){console.error(`${s.PREFIX}openMicrophone failed, error: ${e}.`)}}async closeMicrophone(){try{await this._tuiCallEngine.closeMicrophone(),st(!1,s.AUDIO)}catch(e){console.error(`${s.PREFIX}closeMicrophone failed, error: ${e}.`)}}unMuteSpeaker(){var e,n;try{const a=(n=(e=this._tuiCallEngine)==null?void 0:e.getTRTCCloudInstance)==null?void 0:n.call(e);a&&(a.muteAllRemoteAudio(!1),h.update(d.CALL,s.IS_MUTE_SPEAKER,!1))}catch(a){console.error(`${s.PREFIX}unMuteSpeaker failed, error: ${a}.`)}}muteSpeaker(){var e,n;try{const a=(n=(e=this._tuiCallEngine)==null?void 0:e.getTRTCCloudInstance)==null?void 0:n.call(e);a&&(a.muteAllRemoteAudio(!0),h.update(d.CALL,s.IS_MUTE_SPEAKER,!0))}catch(a){console.error(`${s.PREFIX}muteSpeaker failed, error: ${a}.`)}}switchScreen(e){e&&h.update(d.CALL,s.BIG_SCREEN_USER_ID,e)}async switchCallMediaType(){var e,n;try{const a=h.getData(d.CALL,s.CALL_MEDIA_TYPE);if(a===G.AUDIO){console.warn(`${s.PREFIX}switchCallMediaType failed, ${a} not support.`);return}const i=await this._tuiCallEngine.switchCallMediaType(G.AUDIO);(i==null?void 0:i.code)===0&&((n=this._chatCombine)==null||n.callTUIService({message:(e=i==null?void 0:i.data)==null?void 0:e.message})),h.update(d.CALL,s.CALL_MEDIA_TYPE,G.AUDIO);const o=h.getData(d.CALL,s.IS_GROUP)?ne.CALLING_GROUP_VIDEO:ne.CALLING_C2C_VIDEO,l=jn();this.statusChanged&&this.statusChanged({oldStatus:o,newStatus:l})}catch(a){console.error(`${s.PREFIX}switchCallMediaType failed, error: ${a}.`)}}async switchCamera(){const n=h.getData(d.CALL,s.CAMERA_POSITION)===rt.BACK?rt.FRONT:rt.BACK;try{await this._tuiCallEngine.switchCamera(n),h.update(d.CALL,s.CAMERA_POSITION,n)}catch(a){console.error(`${s.PREFIX}_switchCamera failed, error: ${a}.`)}}async setBlurBackground(e){try{await this._tuiCallEngine.setBlurBackground(e?to:0),h.update(d.CALL,s.ENABLE_VIRTUAL_BACKGROUND,e)}catch(n){console.error(`${s.PREFIX}_setBlurBackground failed, error: ${n}.`)}}async switchDevice(e){try{await this._tuiCallEngine.switchDevice(e)}catch(n){console.error(`${s.PREFIX}_switchDevice failed, error: ${n}.`)}}async getDeviceList(e){try{return await this._tuiCallEngine.getDeviceList(e)}catch(n){this._handleCallError(n,"call")}}_addListenTuiCallEngineEvent(){this._engineEventHandler.addListenTuiCallEngineEvent()}_removeListenTuiCallEngineEvent(){this._engineEventHandler.removeListenTuiCallEngineEvent()}setCallback(e){const{beforeCalling:n,afterCalling:a,onMinimized:i,onMessageSentByMe:r,kickedOut:o,statusChanged:l}=e;n&&(this.beforeCalling=n),a&&(this.afterCalling=a),i&&(this.onMinimized=i),r&&(this.onMessageSentByMe=r),o&&(this.kickedOut=o),l&&(this.statusChanged=l)}toggleMinimize(){const e=h.getData(d.CALL,s.IS_MINIMIZED);h.update(d.CALL,s.IS_MINIMIZED,!e),console.log(`${s.PREFIX}toggleMinimize: ${e} -> ${!e}.`),this.onMinimized&&this.onMinimized(e,!e)}executeExternalBeforeCalling(){this.beforeCalling&&this.beforeCalling()}executeExternalAfterCalling(){this.afterCalling&&this.afterCalling()}async handleExceptionExit(e){var n,a;try{const i=h.getData(d.CALL,s.CALL_STATUS),r=h.getData(d.CALL,s.CALL_ROLE);if((a=(n=this._tuiCallEngine)==null?void 0:n.reportLog)==null||a.call(n,{name:"TUICallkit.handleExceptionExit",data:{callStatus:i,callRole:r,source:(e==null?void 0:e.type)||"unknown"}}),i===x.IDLE)return;console.log(`${s.PREFIX} handleExceptionExit triggered, status: ${i}, role: ${r}, event: ${e==null?void 0:e.type}`),i===x.CALLING&&(r===X.CALLER?await(this==null?void 0:this.hangup()):await(this==null?void 0:this.reject())),i===x.CONNECTED&&await(this==null?void 0:this.hangup()),this==null||this._resetCallStore()}catch(i){console.error(`${s.PREFIX} handleExceptionExit failed, error: ${i}.`)}e&&(e.returnValue="")}setVideoDisplayMode(e){h.update(d.CALL,s.DISPLAY_MODE,e)}async setVideoResolution(e){var n;try{if(!e)return;h.update(d.CALL,s.VIDEO_RESOLUTION,e),await((n=this._tuiCallEngine)==null?void 0:n.setVideoQuality(e))}catch(a){console.warn(`${s.PREFIX}setVideoResolution failed, error: ${a}.`)}}startTimer(){this._timerId===-1&&(this._startTimeStamp=Xn(),this._timerId=yn.run(s.TIMEOUT,this._updateCallDuration.bind(this),{delay:1e3}))}_handleCallError(e,n){if(this._permissionCheckTimer&&clearInterval(this._permissionCheckTimer),!si(e))throw qn(e,G.AUDIO,this._tuiCallEngine),console.error(`${s.PREFIX}${n} failed, error: ${e}.`),this._resetCallStore(),e}async _updateCallStoreBeforeCall(e,n,a){let i=se.CALLER_CALLING_MSG;(a||h.getData(d.CALL,s.IS_MINIMIZED)||n.length>1)&&(i=se.CALLER_GROUP_CALLING_MSG),console.warn(`呼叫前更新 call status: ${!!a||n.length>1}, ${a}, ${JSON.stringify(n)}`);let r={[s.CALL_MEDIA_TYPE]:e,[s.CALL_ROLE]:X.CALLER,[s.REMOTE_USER_INFO_LIST]:n,[s.REMOTE_USER_INFO_EXCLUDE_VOLUMN_LIST]:n,[s.IS_GROUP]:!!a||n.length>1,[s.CALL_TIPS]:i,[s.GROUP_ID]:a};h.updateStore({...r,[s.CALL_STATUS]:x.CALLING},d.CALL),this.statusChanged&&this.statusChanged({oldStatus:ne.IDLE,newStatus:a||n.length>1?ne.DIALING_GROUP:ne.DIALING_C2C}),$n(this._tuiCallEngine);const o=await Zt(n.map(l=>l.userId),this.getTim());o.length>0&&(h.update(d.CALL,s.REMOTE_USER_INFO_LIST,o),h.update(d.CALL,s.REMOTE_USER_INFO_EXCLUDE_VOLUMN_LIST,o))}async _updateCallStoreAfterCall(e,n){var a,i;if(n){h.update(d.CALL,s.IS_CLICKABLE,!0),Mi(n==null?void 0:n.roomID,n==null?void 0:n.strRoomID);const r=h.getData(d.CALL,s.CALL_MEDIA_TYPE);if(n.code===0){(i=this._chatCombine)==null||i.callTUIService({message:(a=n==null?void 0:n.data)==null?void 0:a.message});try{await this._tuiCallEngine.setVideoQuality(h.getData(d.CALL,s.VIDEO_RESOLUTION))}catch(c){console.warn(`${s.PREFIX}setVideoQuality failed, error: ${c}.`)}}else{this._resetCallStore();return}const o=this._getFeatureButtonDefaultState(ot.Camera)===Bt.Close;r===G.VIDEO&&!o&&await this.openCamera(s.LOCAL_VIDEO);const l=h.getData(d.CALL,s.LOCAL_USER_INFO);h.update(d.CALL,s.LOCAL_USER_INFO,{...l,isEnter:!0}),h.update(d.CALL,s.LOCAL_USER_INFO_EXCLUDE_VOLUMN,{...l,isEnter:!0}),st(!0,s.AUDIO)}else this._permissionCheckTimer&&clearInterval(this._permissionCheckTimer),this._permissionCheckTimer=null,this._resetCallStore()}_getFeatureButtonDefaultState(e){var a;const{button:n}=h.getData(d.CALL,s.CUSTOM_UI_CONFIG);return(a=n==null?void 0:n[e])==null?void 0:a.state}_updateCallDuration(){const e=Math.round((Xn()-this._startTimeStamp)/1e3),n=oi(e);h.update(d.CALL,s.CALL_DURATION,n)}_stopTimer(){this._timerId!==-1&&(yn.clearTask(this._timerId),this._timerId=-1)}_cleanupAvoidRepeatCallState(e){var a,i;(i=(a=this._tuiCallEngine)==null?void 0:a.reportLog)==null||i.call(a,{name:"TUICallkit._cleanupAvoidRepeatCallState",data:{methodName:e}});let n=[];e?n=[this[e]]:n=[this.calls,this.accept,this.hangup,this.reject,this.join,this.inviteUser],n==null||n.forEach(r=>{var o;(o=r==null?void 0:r.clearCallState)==null||o.call(r,this)})}_resetCallStore(){var r;this._cleanupAvoidRepeatCallState(),(r=this._bellContext)==null||r.stop();const e=jn();this._stopTimer();let n=Object.keys(En).filter(o=>{switch(En[o]){case s.CALL_STATUS:case s.LANGUAGE:case s.IS_GROUP:case s.DISPLAY_MODE:case s.VIDEO_RESOLUTION:case s.ENABLE_FLOAT_WINDOW:case s.LOCAL_USER_INFO:case s.IS_SHOW_ENABLE_VIRTUAL_BACKGROUND:case s.IS_AI_TRANSCRIBER_ENABLED:case s.IS_FORCE_USE_V2_API:case s.LOCAL_USER_INFO_EXCLUDE_VOLUMN:return!1;default:return!0}});n=n.map(o=>En[o]),h.reset(d.CALL,n),h.getData(d.CALL,s.CALL_STATUS)!==x.IDLE&&h.reset(d.CALL,[s.CALL_STATUS],!0),h.reset(d.CALL,[s.IS_MINIMIZED],!0),h.reset(d.CALL,[s.IS_EAR_PHONE],!0),h.reset(d.CALL,[s.PUSHER_ID],!0),h.reset(d.CALL,[s.ENABLE_VIRTUAL_BACKGROUND],!0),h.reset(d.CALL,[s.IS_MUTE_SPEAKER],!0),h.update(d.CALL,s.LOCAL_USER_INFO,{...h.getData(d.CALL,s.LOCAL_USER_INFO),isVideoAvailable:!1,isAudioAvailable:!1}),h.update(d.CALL,s.LOCAL_USER_INFO_EXCLUDE_VOLUMN,{...h.getData(d.CALL,s.LOCAL_USER_INFO_EXCLUDE_VOLUMN),isVideoAvailable:!1,isAudioAvailable:!1}),h.update(d.CALL,s.REMOTE_USER_INFO_LIST,[]),h.update(d.CALL,s.REMOTE_USER_INFO_EXCLUDE_VOLUMN_LIST,[]),h.update(d.CALL,s.CAMERA_POSITION,rt.FRONT);const i=jn();e!==i&&this.statusChanged&&this.statusChanged({oldStatus:e,newStatus:i})}async getGroupMemberList(e,n){const a=h.getData(d.CALL,s.GROUP_ID);return await Go(a,this.getTim(),e,n)}async getGroupProfile(){const e=h.getData(d.CALL,s.GROUP_ID);return await Zo(e,this.getTim())}_watchTUIStore(){h==null||h.watch(d.CALL,{[s.CALL_STATUS]:this._handleCallStatusChange})}_unwatchTUIStore(){h==null||h.unwatch(d.CALL,{[s.CALL_STATUS]:this._handleCallStatusChange})}bindTUICore(e){this._TUICore=e}getTim(){var e,n;return this._tim?this._tim:this._tuiCallEngine?((e=this._tuiCallEngine)==null?void 0:e.tim)||((n=this._tuiCallEngine)==null?void 0:n.getTim()):(console.warn(`${s.PREFIX}getTim warning: _tuiCallEngine Instance is not available.`),null)}setIsFromChat(e){this._isFromChat=e}setCurrentGroupId(e){this._currentGroupId=e}getCurrentGroupId(){return this._currentGroupId}setDefaultOfflinePushInfo(e){this._offlinePushInfo=e}getDefaultOfflinePushInfo(){const e=h.getData(d.CALL,s.LOCAL_USER_INFO);return this._offlinePushInfo?this._offlinePushInfo:{title:(e==null?void 0:e.displayUserInfo)||"",description:_e("you have a new call")}}async getCallMessage(e){return await this._chatCombine.getCallKitMessage(e,this.getTim())}},O(Fe,"instance"),Fe);te([ee()],K.prototype,"init",1),te([ee()],K.prototype,"inviteUser",1),te([ee()],K.prototype,"calls",1),te([ee()],K.prototype,"join",1),te([ee()],K.prototype,"accept",1),te([ee()],K.prototype,"hangup",1),te([ee()],K.prototype,"reject",1),te([ee()],K.prototype,"openCamera",1),te([ee()],K.prototype,"closeCamera",1),te([ee()],K.prototype,"openMicrophone",1),te([ee()],K.prototype,"closeMicrophone",1),te([ee()],K.prototype,"unMuteSpeaker",1),te([ee()],K.prototype,"muteSpeaker",1),te([ee()],K.prototype,"switchScreen",1),te([ee()],K.prototype,"switchCallMediaType",1),te([ee()],K.prototype,"switchCamera",1),te([ee()],K.prototype,"setBlurBackground",1),te([ee()],K.prototype,"switchDevice",1);let ft=K;const V=ft.getInstance();function v(...t){const e=[],n={}.hasOwnProperty;for(let a=0;a<t.length;a++){const i=t[a];if(!i)continue;const r=typeof i;if(r==="string"||r==="number")e.push(i);else if(Array.isArray(i)){if(i.length){const o=v.apply(null,i);o&&e.push(o)}}else if(r==="object"){if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]")){e.push(i.toString());continue}for(const o in i)n.call(i,o)&&i[o]&&e.push(o)}}return e.join(" ")}function F(t){const{url:e,style:n,className:a,onClick:i=()=>null}=t;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DUuOTA3MjNaIiBmaWxsPSIjMTQ3QUZGIiBzdHlsZT0iZmlsbDojMTQ3QUZGO2ZpbGw6Y29sb3IoZGlzcGxheS1wMyAwLjA3ODQgMC40Nzg0IDEuMDAwMCk7ZmlsbC1vcGFjaXR5OjE7Ii8+Cjwvc3ZnPgo=",aa={"message-c2c-container":"_message-c2c-container_14m8l_1","call-content":"_call-content_14m8l_7",c2c:"_c2c_14m8l_10",icon:"_icon_14m8l_13"};function rs(t){const{message:e={},onClick:n}=t,[a,i]=g.useState(),[r,o]=g.useState(),[l,c]=g.useState([]),[u,I]=g.useState();function N(p){I(()=>p)}const A={[s.TRANSLATE]:N};g.useEffect(()=>(h.watch(d.CALL,A,{notifyRangeWhenWatch:s.MYSELF}),h.watch(d.CALL,A),()=>{h.unwatch(d.CALL,A)}),[]),g.useEffect(()=>{V.getCallMessage(e).then(p=>{const{callMediaType:S,messageCardContent:j="",inviteeList:y=[]}=p||{};o(S),i(j),c(y)})},[e]);const T=typeof u=="function"?u(a):a,D=r===G.AUDIO?is:as,E=v([aa["message-c2c-container"],"c2c"]),C=()=>{typeof n=="function"&&n({callMediaType:r,inviteeList:l})},L=v([aa.icon]);return M.jsxs("div",{className:E,onClick:C,children:[M.jsx("div",{className:L,children:M.jsx(F,{url:D})}),M.jsx("span",{className:aa["call-content"],children:T})]})}const Ni={"message-group-container":"_message-group-container_hjjzg_1",group:"_group_hjjzg_1"};function os(t){const{message:e={},onClick:n}=t,[a,i]=g.useState(),[r,o]=g.useState();g.useEffect(()=>{V.getCallMessage(e).then(c=>{const{callType:u,messageCardContent:I=""}=c||{};o(u),i(I)})},[e]);const l=v([Ni["message-group-container"],"group"]);return M.jsx("div",{className:l,children:M.jsx("span",{className:Ni["call-content"],children:a})})}function ss(t){const{callType:e="C2C"}=t;return e==="C2C"?M.jsx(rs,{...t}):M.jsx(os,{...t})}const B="tk",vg="";function Ai(t){const{callDuration:e,style:n}=t;return M.jsx("div",{className:`${B}-time`,style:n,children:e})}const xg="",Di=g.createContext({gutter:void 0});function St(t){const{className:e="",children:n=[],gutter:a,style:i,justify:r="center"}=t,o=g.useMemo(()=>({gutter:a}),[a]),l=v([`${B}-row-container`,`${B}-row-justify-${r}`,e]),c=()=>((n==null?void 0:n.length)||0)<2?n:g.Children.map(n,I=>{var N;if(((N=I==null?void 0:I.type)==null?void 0:N.displayName)==="Col")return I});return M.jsx("div",{className:l,style:i,children:M.jsx(Di.Provider,{value:o,children:c()})})}const bg="";function we(t){const{span:e=12,children:n,style:a={},justify:i="center",align:r="start"}=t,{gutter:o}=g.useContext(Di),l=v([`${B}-col-container`,`${B}-col-${e}`,`${B}-col-justify-content-${i}`,`${B}-col-align-items-${r}`]),u=(()=>{if(typeof o=="number")return{paddingLeft:`${o/2}px`,paddingRight:`${o/2}px`}})();return M.jsx("div",{className:l,style:{...u,...a},children:n})}we.displayName="Col";const ls="data:image/svg+xml;base64,PHN2ZyB0PSIxNzAwMDU0NjMzMjQxIiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjU3NjciIHdpZHRoPSI2NCIgaGVpZ2h0PSI2NCI+PHBhdGggZD0iTTUyMC42NjUwOTkgNjQuNTY0MTMxYTI5LjI0NDM0MSAyOS4yNDQzNDEgMCAwIDAtNy4wNzEzOTQtMC44OTQxOTZjLTE2LjIxMDk4NCAwLTI5LjM1MDAwMSAxMy4xNDA5NzQtMjkuMzUwMDAxIDI5LjM1IDAgMTUuODI5NDM0IDEyLjUzODMyIDI4LjY5NjQ3NCAyOC4yMjI5NjEgMjkuMjkzMjU4djAuMDcyMzk2YzAuMzc1NjggMCAwLjc1MTM2LTAuMDEzNjk3IDEuMTI3MDQtMC4wMTM2OTYgMjE2LjQ5MzQzMiAwIDM4OS42MjkwODYgMTczLjk0MTgwMSAzODkuNjI5MDg2IDM5MC40MzMyNzUgMCAyMTYuNDk1Mzg4LTE3My4xMzU2NTQgMzg4LjgyNjg1Mi0zODkuNjI5MDg2IDM4OC44MjY4NTNzLTM4OS42MzEwNDItMTcyLjMzMzQyMS0zODkuNjMxMDQyLTM4OC44Mjg4MDljMC0wLjI3MDAyIDAuMDA5NzgzLTAuNTM2MTI3IDAuMDA5NzgzLTAuODA0MTloLTAuMDA5NzgzYzAtMTYuMjA5MDI3LTEzLjE0MDk3NC0yOS4zNTAwMDEtMjkuMzUwMDAxLTI5LjM1MDAwMXMtMjkuMzUwMDAxIDEzLjEzOTAxNy0yOS4zNTAwMDEgMjkuMzUwMDAxYzAgMC4wNTQ3ODcgMC4wMDc4MjcgMC4xMDk1NzMgMC4wMDc4MjcgMC4xNjQzNi0wLjAwMTk1NyAwLjIxMzI3Ny0wLjAwNzgyNyAwLjQyNDU5Ny0wLjAwNzgyNyAwLjYzOTgzIDAgMjQ3LjYwODM0NiAyMDAuNzIyNjk4IDQ0OC4zMzEwNDQgNDQ4LjMzMTA0NCA0NDguMzMxMDQzIDI0Ny42MDYzODkgMCA0NDguMzI5MDg3LTIwMC43MjI2OTggNDQ4LjMyOTA4Ny00NDguMzMxMDQzLTAuMDAxOTU3LTI0NS4yNDA3NzktMTk2LjkxNjk4MS00NDQuNDU0ODg3LTQ0MS4yNTc2OTMtNDQ4LjIzOTA4MXoiIGZpbGw9IiNmZmZmZmYiIHAtaWQ9IjU3NjgiPjwvcGF0aD48L3N2Zz4=",_g="";function cs(t){const{size:e}=t;return M.jsx("div",{className:`${B}-circle-container`,style:{width:e,height:e},children:M.jsx("img",{alt:"",style:{width:"100%",height:"100%"},className:`${B}-circle-loading`,src:ls})})}const kg="";function Ms(t){const{size:e}=t;return M.jsxs("div",{className:`${B}-dot-container`,style:{width:e,height:e},children:[M.jsx("div",{className:"dot"}),M.jsx("div",{className:"dot"}),M.jsx("div",{className:"dot"})]})}const Vg="";function Ti(t){const{style:e,className:n,background:a,showOverlayer:i=!0,fit:r="cover",defaultSrc:o,onError:l}=t,c=v([n,`${B}-overlayer-container`]),[u,I]=g.useState(a||o),[N,A]=g.useState({objectFit:r}),T={width:"100%",height:"100%"};g.useEffect(()=>{A({objectFit:r})},[r]);function D(E){l==null||l(E),I(o)}return M.jsxs("div",{className:c,children:[i&&M.jsx("div",{style:e,className:"overlay"}),u&&M.jsx("img",{alt:"bg",style:{...T,...N},src:u,onError:D})]})}const Qg="";function ia(t){const{theme:e="circle",size:n,showOverlayer:a=!0,children:i,style:r={},showLoading:o=!0,fit:l}=t,c=()=>e==="dot"?M.jsx(Ms,{size:n}):M.jsx(cs,{size:n}),u=v([`${B}-loading-container`,{[`${B}-loading-overlayer`]:a}]);return M.jsxs("div",{className:u,style:r,children:[a&&M.jsx(Ti,{fit:l}),o&&c(),i]})}const Bg="",he=g.forwardRef((t,e)=>{const{icon:n,iconSize:a,content:i,loading:r,children:o,showText:l=!0,ghost:c=!1,onClick:u=y=>null,isStopPropagation:I=!1,size:N="middle",direction:A="vertical",className:T="",iconClassName:D="",isMobile:E=!1,style:C,...L}=t,p=y=>{I&&y.stopPropagation(),!r&&(u==null||u(y))},S=()=>{const y=v([`${B}-icon`,D,{[`${B}-size-s`]:N==="small",[`${B}-size-m`]:N==="middle",[`${B}-size-l`]:N==="large"}]),f=a?{width:a,height:a}:{};return M.jsx("div",{className:y,onClick:p,style:f,children:r?M.jsx(ia,{showOverlayer:!1}):n})},j=()=>l&&M.jsx("div",{className:`${B}-content`,children:i||o});return M.jsxs("div",{ref:e,style:C,className:v([T,`${B}-btn-container`,{mobile:E,pc:!E,[`${B}-flex-vertical`]:A==="vertical",[`${B}-flex-horizontal`]:A==="horizontal",[`${B}-size-s`]:N==="small",[`${B}-size-m`]:N==="middle",[`${B}-size-l`]:N==="large",[`${B}-ghost`]:c===!0}]),...L,children:[n&&S(),j()]})}),us="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZm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0NzYyIDE4IDIuOTk5OTEgMThIMTQuOTk5OUMxNS41NTIyIDE4IDE1Ljk5OTkgMTcuNTUyMyAxNS45OTk5IDE3VjExLjUiIHN0cm9rZT0iI0Q1RTBGMiIgc3Ryb2tlLXdpZHRoPSIxLjUiLz4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMS40OTk5IDMuNVY4LjVIMTYuNDk5OVYzLjVIMTEuNDk5OVpNMTAuOTk5OSAyQzEwLjQ0NzYgMiA5Ljk5OTkxIDIuNDQ3NzIgOS45OTk5MSAzVjlDOS45OTk5MSA5LjU1MjI4IDEwLjQ0NzYgMTAgMTAuOTk5OSAxMEgxNi45OTk5QzE3LjU1MjIgMTAgMTcuOTk5OSA5LjU1MjI4IDE3Ljk5OTkgOVYzQzE3Ljk5OTkgMi40NDc3MiAxNy41NTIyIDIgMTYuOTk5OSAySDEwLjk5OTlaIiBmaWxsPSIjRDVFMEYyIi8+Cjwvc3ZnPgo=",Ei={"minimize-desk-container":"_minimize-desk-container_gxy8f_1","minimize-mobile-container":"_minimize-mobile-container_gxy8f_11"};function hi(){const t=!w.isPC,e=()=>{try{document.fullscreenElement&&document.exitFullscreen()}catch(a){console.debug(a)}V.toggleMinimize()},n=M.jsx(F,{url:t?Is:us});return M.jsx(he,{className:t?Ei["minimize-mobile-container"]:Ei["minimize-desk-container"],icon:n,onClick:e,isMobile:t})}function Ot(){const[t,e]=g.useState(!1),[n,a]=g.useState(!1),[i,r]=g.useState([]),o=g.useCallback(A=>A?A instanceof Map?Array.from(A.entries()).map(([T,D])=>({language:String(T),text:l(D)})):typeof A=="object"?Object.entries(A).map(([T,D])=>({language:String(T),text:l(D)})):[]:[],[]),l=g.useCallback(A=>{if(A==null)return"";if(typeof A=="string")return A;if(typeof A=="object")try{return JSON.stringify(A)}catch(T){return console.warn("Failed to stringify translation content:",T),"[Invalid Object]"}return String(A)},[]),c=g.useCallback(A=>A.map(T=>({roundId:T.segmentId,sender:T.speakerUserId,nick:"",text:T.sourceText,end:T.isCompleted,translation:o(T.translationTexts)})),[o]),u=g.useCallback(A=>{e(A||!1)},[]),I=g.useCallback(A=>{a(A||!1)},[]),N=g.useCallback(A=>{if(A&&A.length>0){const T=c(A);r(T)}else r([])},[c]);return g.useEffect(()=>{try{const A=h.getData(d.CALL,s.IS_AI_TRANSCRIBER_ENABLED),T=h.getData(d.CALL,s.IS_AI_TRANSCRIBER_RUNNING),D=h.getData(d.CALL,s.REALTIME_MESSAGE_LIST);A!==void 0&&e(A),T!==void 0&&a(T),D&&N(D),s.IS_AI_TRANSCRIBER_ENABLED&&s.IS_AI_TRANSCRIBER_RUNNING&&s.REALTIME_MESSAGE_LIST&&h.watch(d.CALL,{[s.IS_AI_TRANSCRIBER_ENABLED]:u,[s.IS_AI_TRANSCRIBER_RUNNING]:I,[s.REALTIME_MESSAGE_LIST]:N})}catch(A){console.warn("AI Assistant hook initialization failed:",A),e(!0),a(!1)}return()=>{try{s.IS_AI_TRANSCRIBER_ENABLED&&s.IS_AI_TRANSCRIBER_RUNNING&&s.REALTIME_MESSAGE_LIST&&h.unwatch(d.CALL,{[s.IS_AI_TRANSCRIBER_ENABLED]:u,[s.IS_AI_TRANSCRIBER_RUNNING]:I,[s.REALTIME_MESSAGE_LIST]:N})}catch(A){console.warn("AI Assistant hook cleanup failed:",A)}}},[u,I,N]),{isAITranscriberEnabled:t,isAITranscriberRunning:n,subtitleInfoList:i}}const gs="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTMiIGhlaWdodD0iMTQiIHZpZXdCb3g9IjAgMCAxMyAxNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTkuMDYyMTggNi43NUM5LjA2MjE4IDguNDA2ODUgNy43MTkwMyA5Ljc1IDYuMDYyMTggOS43NUM0LjQwNTMyIDkuNzUgMy4wNjIxOCA4LjQ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R5PSIwLjQyIi8+Cjwvc3ZnPgo=",Yg="",Ns=({onOpenSettings:t,className:e})=>{const[n,a]=g.useState(!1),i=g.useRef(null),{subtitleInfoList:r,isAITranscriberRunning:o}=Ot(),l=!w.isPC,c=l?ds:gs,u=l?24:20,I=D=>{if(D==null)return{language:"Unknown",text:""};if(typeof D=="string")try{const E=JSON.parse(D);return E&&typeof E=="object"?{language:E.language||"Unknown",text:E.text||D}:{language:"Unknown",text:D}}catch{return{language:"Unknown",text:D}}return{language:"Unknown",text:String(D)}},N=D=>I(D).text;if(g.useEffect(()=>{i.current&&(i.current.scrollTop=i.current.scrollHeight)},[r]),!o||!Array.isArray(r)||r.length===0)return null;const A=()=>{l||a(!0)},T=()=>{l||a(!1)};return M.jsxs("div",{ref:i,className:`subtitle-content ${l?"subtitle-content--h5":""} ${e||""}`,onMouseEnter:A,onMouseLeave:T,children:[M.jsx("div",{className:`subtitle-content__settings-btn ${l?"subtitle-content__settings-btn--h5":""}`,style:{display:l||n?"block":"none"},onClick:t,children:M.jsx("img",{src:c,width:u,height:u,alt:"Settings"})}),r.map((D,E)=>M.jsxs("div",{children:[E!==0&&M.jsx("div",{style:{height:"16px"}}),M.jsx("div",{className:"sender-name",children:`${(D==null?void 0:D.nick)||(D==null?void 0:D.sender)}:`}),M.jsx("div",{children:D==null?void 0:D.text}),Array.isArray(D==null?void 0:D.translation)&&D.translation.map((C,L)=>M.jsx("div",{children:M.jsx("span",{children:N(C==null?void 0:C.text)})},L))]},D.roundId))]})},P=g.createContext({}),Ci=g.createContext({}),ra=g.createContext({focusItem:null,setFocusItem:()=>{}}),ge=g.createContext({localUserInfo:{userId:""},remoteList:[]}),Li=g.createContext(!1),Ft=g.createContext({}),pi=g.createContext({t:h.getData(d.CALL,s.TRANSLATE)});function ie(){return g.useContext(pi)}const On=t=>{const[e,n]=g.useState([]),[a,i]=g.useState(),r=l=>{var c,u,I;switch(t){case ae.CAMERA:n((l==null?void 0:l.cameraList)||[]),i(((c=l==null?void 0:l.currentCamera)==null?void 0:c.deviceId)||"");break;case ae.MICROPHONE:i(((u=l==null?void 0:l.currentMicrophone)==null?void 0:u.deviceId)||""),n((l==null?void 0:l.microphoneList)||[]);break;case ae.SPEAKER:i(((I=l==null?void 0:l.currentSpeaker)==null?void 0:I.deviceId)||""),n((l==null?void 0:l.speakerList)||[]);break}},o={[s.DEVICE_LIST]:r};return g.useEffect(()=>(h.watch(d.CALL,o,{notifyRangeWhenWatch:s.MYSELF}),()=>{h.unwatch(d.CALL,o)}),[]),[{deviceList:e,currentDeviceId:a},{setCurrentDeviceId:i}]};function oa(){const[t,e]=g.useState(h.getData(d.CALL,s.CALL_DURATION)),n=i=>{e(i)},a={[s.CALL_DURATION]:n};return g.useEffect(()=>(h.watch(d.CALL,a,{notifyRangeWhenWatch:s.MYSELF}),()=>{h.unwatch(d.CALL,a)}),[]),t}const Rg="",sa=({value:t,options:e,placeholder:n="Please select",disabled:a=!1,onChange:i})=>{const[r,o]=g.useState(!1),l=g.useRef(null),c=(()=>{const N=e.find(A=>A.value===t);return N?N.label:n})(),u=()=>{a||o(!r)},I=N=>{i(N),o(!1)};return g.useEffect(()=>{const N=A=>{l.current&&!l.current.contains(A.target)&&o(!1)};return document.addEventListener("mousedown",N),()=>{document.removeEventListener("mousedown",N)}},[]),M.jsxs("div",{className:"custom-select-wrapper",ref:l,children:[M.jsxs("div",{className:`custom-select ${r?"is-open":""} ${a?"is-disabled":""}`,onClick:u,children:[M.jsx("span",{className:"select-text",children:c}),M.jsx("svg",{className:`select-arrow ${r?"is-open":""}`,width:"12",height:"8",viewBox:"0 0 12 8",fill:"none",children:M.jsx("path",{d:"M1 1L6 6L11 1",stroke:"#C0C4CC",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})]}),r&&M.jsx("div",{className:"custom-options",children:e.map(N=>M.jsx("div",{className:`custom-option ${t===N.value?"is-selected":""}`,onClick:()=>I(N.value),children:N.label},N.value))})]})},Gg="",As=({visible:t,onVisibleChange:e,onConfirm:n})=>{const{t:a}=ie(),i=g.useRef({recognitionLanguage:"zh",translationLanguage:"",subtitleDisplay:"both"}),[r,o]=g.useState("zh"),[l,c]=g.useState(""),[u,I]=g.useState("both");g.useEffect(()=>{t&&(o(i.current.recognitionLanguage),c(i.current.translationLanguage),I(i.current.subtitleDisplay))},[t]);const N=[{value:"zh",label:"中文"},{value:"en",label:"English"}],T=[{value:"",label:a("no-translation")},{value:"zh",label:"Chinese (中文)"},{value:"en",label:"English (英语)"},{value:"vi",label:"Vietnamese (越南语)"},{value:"ja",label:"Japanese (日语)"},{value:"ko",label:"Korean (韩语)"},{value:"id",label:"Indonesian (印尼语)"},{value:"th",label:"Thai (泰语)"},{value:"pt",label:"Portuguese (葡萄牙语)"},{value:"ar",label:"Arabic (阿拉伯语)"},{value:"es",label:"Spanish (西班牙语)"},{value:"fr",label:"French (法语)"},{value:"ms",label:"Malay (马来语)"},{value:"de",label:"German (德语)"},{value:"it",label:"Italian (意大利语)"},{value:"ru",label:"Russian (俄语)"}].filter(y=>y.value===""||y.value!==r),D=[{value:"both",label:a("show-bilingual")},{value:"original",label:a("show-original-only")}],E=()=>{C()},C=()=>{e(!1)},L=y=>{const f=String(y);o(f),l===f&&c("")},p=y=>{c(String(y))},S=y=>{I(String(y))},j=async()=>{try{i.current={recognitionLanguage:r,translationLanguage:l,subtitleDisplay:u};const y=l?[l]:[];await V._aiAssistant.updateRealTimeTranscriber({sourceLanguage:r,translationLanguages:y}),n({recognitionLanguage:r,translationLanguage:l,subtitleDisplay:u}),C()}catch(y){console.error("Failed to update AI transcriber settings:",y)}};return t?M.jsx("div",{className:"subtitle-settings-overlay-pc",onClick:E,children:M.jsxs("div",{className:"subtitle-settings-modal-pc",onClick:y=>y.stopPropagation(),children:[M.jsxs("div",{className:"modal-header-pc",children:[M.jsx("h3",{className:"modal-title-pc",children:a("ai-subtitle-settings")}),M.jsx("button",{className:"close-btn-pc",onClick:C,children:M.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:M.jsx("path",{d:"M12 4L4 12M4 4L12 12",stroke:"#666",strokeWidth:"2",strokeLinecap:"round"})})})]}),M.jsxs("div",{className:"modal-content-pc",children:[M.jsxs("div",{className:"setting-item-pc",children:[M.jsx("label",{className:"setting-label-pc",children:a("recognition-language")}),M.jsx(sa,{value:r,options:N,onChange:L})]}),M.jsxs("div",{className:"setting-item-pc",children:[M.jsx("label",{className:"setting-label-pc",children:a("translation-language")}),M.jsx(sa,{value:l,options:T,onChange:p})]}),M.jsxs("div",{className:"setting-item-pc",children:[M.jsx("label",{className:"setting-label-pc",children:a("subtitle-display-settings")}),M.jsx(sa,{value:u,options:D,onChange:S})]})]}),M.jsxs("div",{className:"modal-footer-pc",children:[M.jsx("button",{className:"btn-pc btn-cancel-pc",onClick:C,children:a("Cancel")}),M.jsx("button",{className:"btn-pc btn-confirm-pc",onClick:j,children:a("save")})]})]})}):null},Zg="",Ds=({visible:t,onVisibleChange:e,onConfirm:n})=>{const{t:a}=ie(),i=g.useRef({recognitionLanguage:"zh",translationLanguage:"",subtitleEnabled:!0}),[r,o]=g.useState("zh"),[l,c]=g.useState(""),[u,I]=g.useState(!0),[N,A]=g.useState(!1),[T,D]=g.useState(!1);g.useEffect(()=>{t&&(o(i.current.recognitionLanguage),c(i.current.translationLanguage),I(i.current.subtitleEnabled),A(!1),D(!1))},[t]);const E=[{value:"zh",label:"中文"},{value:"en",label:"English"}],L=[{value:"",label:a("no-translation")},{value:"zh",label:"Chinese (中文)"},{value:"en",label:"English (英语)"},{value:"vi",label:"Vietnamese (越南语)"},{value:"ja",label:"Japanese (日语)"},{value:"ko",label:"Korean (韩语)"},{value:"id",label:"Indonesian (印尼语)"},{value:"th",label:"Thai (泰语)"},{value:"pt",label:"Portuguese (葡萄牙语)"},{value:"ar",label:"Arabic (阿拉伯语)"},{value:"es",label:"Spanish (西班牙语)"},{value:"fr",label:"French (法语)"},{value:"ms",label:"Malay (马来语)"},{value:"de",label:"German (德语)"},{value:"it",label:"Italian (意大利语)"},{value:"ru",label:"Russian (俄语)"}].filter(m=>m.value===""||m.value!==r),p=m=>{const Q=[...E,...L].find(H=>H.value===m);return(Q==null?void 0:Q.label)||""},S=()=>{e(!1)},j=m=>{o(m),A(!1),l===m&&c("")},y=m=>{c(m),D(!1)},f=()=>{I(!u)},U=async()=>{try{i.current={recognitionLanguage:r,translationLanguage:l,subtitleEnabled:u};const m=l?[l]:[];await V._aiAssistant.updateRealTimeTranscriber({sourceLanguage:r,translationLanguages:m}),n({recognitionLanguage:r,translationLanguage:l,subtitleEnabled:u}),S()}catch(m){console.error("Failed to update AI transcriber settings:",m)}};return t?M.jsxs("div",{className:"subtitle-settings-overlay",children:[M.jsxs("div",{className:"subtitle-settings-modal",onClick:m=>m.stopPropagation(),children:[M.jsx("div",{className:"modal-header",children:M.jsx("h3",{className:"modal-title",children:a("ai-subtitle-settings")})}),M.jsx("div",{className:"modal-content",children:M.jsxs("div",{className:"setting-group",children:[M.jsx("div",{className:"group-title",children:a("recognition-and-translation-settings")}),M.jsxs("div",{className:"group-content",children:[M.jsx("div",{className:"setting-section",children:M.jsxs("div",{className:"section-header",onClick:()=>A(!0),children:[M.jsx("span",{className:"section-title",children:a("recognition-language")}),M.jsxs("span",{className:"section-value",children:[p(r),M.jsx("svg",{className:"arrow-icon",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:M.jsx("path",{d:"M6 4L10 8L6 12",stroke:"#999",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})]})]})}),M.jsx("div",{className:"setting-section",children:M.jsxs("div",{className:"section-header",onClick:()=>D(!0),children:[M.jsx("span",{className:"section-title",children:a("translation-language")}),M.jsxs("span",{className:"section-value",children:[p(l)||a("no-translation"),M.jsx("svg",{className:"arrow-icon",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:M.jsx("path",{d:"M6 4L10 8L6 12",stroke:"#999",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})]})]})}),M.jsx("div",{className:"setting-section",children:M.jsxs("div",{className:"section-header",children:[M.jsx("span",{className:"section-title",children:a("subtitle-display-bilingual")}),M.jsx("div",{className:`toggle-switch ${u?"active":""}`,onClick:f,children:M.jsx("div",{className:"toggle-slider"})})]})})]})]})}),M.jsxs("div",{className:"modal-footer",children:[M.jsx("button",{className:"btn btn-cancel",onClick:S,children:a("Cancel")}),M.jsx("button",{className:"btn btn-confirm",onClick:U,children:a("confirm")})]})]}),N&&M.jsx("div",{className:"language-selector-overlay",onClick:()=>A(!1),children:M.jsxs("div",{className:"language-selector",onClick:m=>m.stopPropagation(),children:[M.jsxs("div",{className:"selector-header",children:[M.jsx("h3",{className:"selector-title",children:a("select-recognition-language")}),M.jsx("div",{className:"header-placeholder"})]}),M.jsx("div",{className:"language-list",children:E.map(m=>M.jsx("div",{className:`language-item ${r===m.value?"selected":""}`,onClick:()=>j(m.value),children:M.jsx("span",{children:m.label})},m.value))})]})}),T&&M.jsx("div",{className:"language-selector-overlay",onClick:()=>D(!1),children:M.jsxs("div",{className:"language-selector",onClick:m=>m.stopPropagation(),children:[M.jsxs("div",{className:"selector-header",children:[M.jsx("h3",{className:"selector-title",children:a("select-translation-language")}),M.jsx("div",{className:"header-placeholder"})]}),M.jsx("div",{className:"language-list",children:L.map(m=>M.jsx("div",{className:`language-item ${l===m.value?"selected":""}`,onClick:()=>y(m.value),children:M.jsx("span",{children:m.label})},m.value))})]})})]}):null},Fg="",Ts=()=>{const{isAITranscriberRunning:t}=Ot(),{t:e}=ie(),n=async()=>{try{t?await V._aiAssistant.stopRealtimeTranscriber():await V._aiAssistant.startRealtimeTranscriber({sourceLanguage:"zh",translationLanguages:["en"]})}catch(a){console.error("Failed to toggle AI transcriber:",a)}};return M.jsxs("div",{className:"ai-transcriber-switch",onClick:n,children:[M.jsx("span",{className:"ai-transcriber-switch__label",children:e("ai-subtitle")}),M.jsx("div",{className:`ai-transcriber-switch__toggle ${t?"ai-transcriber-switch__toggle--active":""}`,children:M.jsx("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E1MSA3LjUyNzU0QzUuNzIwNDMgNi44ODQ3MSA2LjU4MDY1IDYuNTM4NTcgNy42NTU5MiA2LjUzODU3QzguNjIzNjYgNi41Mzg1NyA5LjUzNzYzIDYuNzM2MzcgOS41Mzc2MyA2LjczNjM3VjguMDIyMDJaIiBmaWxsPSJ3aGl0ZSIgZmlsbC1vcGFjaXR5PSIwLjkiLz4KPHJlY3QgeD0iMTAiIHk9IjE0LjU5MTYiIHdpZHRoPSIxMCIgaGVpZ2h0PSI1IiByeD0iMi41IiBmaWxsPSIjNjc2QTcwIi8+CjxyZWN0IHg9IjEwLjQ5OTciIHk9IjE1LjA5MTYiIHdpZHRoPSI0IiBoZWlnaHQ9IjQiIHJ4PSIyIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K",Cs=()=>{const{isAITranscriberRunning:t}=Ot(),e=async()=>{try{t?await V._aiAssistant.stopRealtimeTranscriber():await V._aiAssistant.startRealtimeTranscriber({sourceLanguage:"zh",translationLanguages:["en"]})}catch(n){console.error("Failed to toggle AI transcriber:",n)}};return M.jsx("div",{onClick:e,children:M.jsx("img",{src:t?Es:hs,width:"24px",height:"24px",alt:"AI Assistant Toggle"})})},Ls="data:image/svg+xml;base64,PHN2ZyB0PSIxNzAwMTIzNzY2MjQ3IiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjgyODIiIHdpZHRoPSIzMiIgaGVpZ2h0PSIzMiI+PHBhdGggZD0iTTU1Ny4yIDUxMmwyMzMuNC0yMzMuNGMxMi41LTEyLjUgMTIuNS0zMi44IDAtNDUuMnMtMzIuOC0xMi41LTQ1LjIgMEw1MTIgNDY2LjggMjc4LjYgMjMzLjRjLTEyLjUtMTIuNS0zMi44LTEyLjUtNDUuMiAwcy0xMi41IDMyLjggMCA0NS4yTDQ2Ni44IDUxMiAyMzMuNCA3NDUuNGMtMTIuNSAxMi41LTEyLjUgMzIuOCAwIDQ1LjIgNi4yIDYuMiAxNC40IDkuNCAyMi42IDkuNHMxNi40LTMuMSAyMi42LTkuNEw1MTIgNTU3LjJsMjMzLjQgMjMzLjRjNi4yIDYuMiAxNC40IDkuNCAyMi42IDkuNHMxNi40LTMuMSAyMi42LTkuNGMxMi41LTEyLjUgMTIuNS0zMi44IDAtNDUuMkw1NTcuMiA1MTJ6IiBwLWlkPSI4MjgzIj48L3BhdGg+PC9zdmc+";function ps(){return M.jsx("svg",{width:"20",height:"19",viewBox:"0 0 20 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:M.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.99967 16.9987C14.1418 16.9987 17.4997 13.6409 17.4997 9.4987C17.4997 5.35657 14.1418 1.9987 9.99967 1.9987C5.85754 1.9987 2.49967 5.35657 2.49967 9.4987C2.49967 13.6409 5.85754 16.9987 9.99967 16.9987ZM19.1663 9.4987C19.1663 14.5613 15.0623 18.6654 9.99967 18.6654C4.93707 18.6654 0.833008 14.5613 0.833008 9.4987C0.833008 4.43609 4.93707 0.332031 9.99967 0.332031C15.0623 0.332032 19.1663 4.43609 19.1663 9.4987ZM9.16634 14.082V7.83203H10.833V14.082H9.16634ZM10.833 6.58203H9.16309V4.91211H10.833V6.58203Z",fillOpacity:"0.9"})})}function js(){return M.jsx("svg",{width:"20",height:"19",viewBox:"0 0 20 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:M.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.0016 17.0007C14.1438 17.0007 17.5016 13.6428 17.5016 9.50065C17.5016 5.35852 14.1438 2.00065 10.0016 2.00065C5.85949 2.00065 2.50163 5.35852 2.50163 9.50065C2.50163 13.6428 5.85949 17.0007 10.0016 17.0007ZM19.1683 9.50065C19.1683 14.5632 15.0642 18.6673 10.0016 18.6673C4.93902 18.6673 0.834961 14.5632 0.834961 9.50065C0.834961 4.43804 4.93902 0.333984 10.0016 0.333984C15.0642 0.333985 19.1683 4.43804 19.1683 9.50065ZM6.17119 12.1526L8.82313 9.50065L6.17119 6.84872L7.34969 5.67021L10.0016 8.32215L12.653 5.67078L13.8315 6.84929L11.1801 9.50065L13.8315 12.152L12.653 13.3306L10.0016 10.6792L7.34969 13.3311L6.17119 12.1526Z",fill:"#E54545"})})}function ys(){return M.jsxs("svg",{width:"20",height:"19",viewBox:"0 0 20 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[M.jsx("path",{d:"M5.58317 9.57612L9.17951 13.2052L14.6332 7.05264L13.5732 6.16634L8.97764 10.4388L6.42478 8.66748L5.58317 9.57612Z",fill:"#0ABF77"}),M.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.1663 9.49967C19.1663 14.5623 15.0623 18.6663 9.99967 18.6663C4.93706 18.6663 0.833008 14.5623 0.833008 9.49967C0.833008 4.43706 4.93706 0.333008 9.99967 0.333008C15.0623 0.333008 19.1663 4.43706 19.1663 9.49967ZM17.4997 9.49967C17.4997 13.6418 14.1418 16.9997 9.99967 16.9997C5.85754 16.9997 2.49967 13.6418 2.49967 9.49967C2.49967 5.35754 5.85754 1.99967 9.99967 1.99967C14.1418 1.99967 17.4997 5.35754 17.4997 9.49967Z",fill:"#0ABF77"})]})}function fs(){return M.jsx("svg",{width:"20",height:"19",viewBox:"0 0 20 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:M.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.99967 1.9987C14.1418 1.9987 17.4997 5.35653 17.4997 9.4987C17.4997 13.6408 14.1418 16.9987 9.99967 16.9987C5.85754 16.9987 2.49967 13.6408 2.49967 9.4987C2.49967 5.35653 5.85754 1.9987 9.99967 1.9987ZM19.1663 9.4987C19.1663 4.43612 15.0623 0.332031 9.99967 0.332031C4.93707 0.332031 0.833008 4.43612 0.833008 9.4987C0.833008 14.5613 4.93707 18.6654 9.99967 18.6654C15.0623 18.6654 19.1663 14.5613 19.1663 9.4987ZM9.16634 4.91536V11.1654H10.833V4.91536H9.16634ZM10.833 12.4154H9.16309V14.0853H10.833V12.4154Z",fill:"#FF7200"})})}const Pg="",Ss={info:M.jsx(ps,{}),waring:M.jsx(fs,{}),success:M.jsx(ys,{}),error:M.jsx(js,{})};function ji(t){const{icon:e,showIcon:n=!0,duration:a=3e3,theme:i="info",style:r,closeBtn:o,showCloseBtn:l,className:c,children:u,plaintext:I=!1,onClose:N=()=>null}=t,A=g.useRef(void 0),T=v([c,`${B}-message-container`,{[`${B}-message-plaintext`]:I}]);g.useEffect(()=>(A.current&&clearTimeout(A.current),a>0&&(A.current=setTimeout(()=>{N==null||N()},a)),()=>{A&&clearTimeout(A.current)}),[a,N]);const D=()=>e||M.jsx(M.Fragment,{children:Ss[i]}),E=()=>o||M.jsx(F,{onClick:N,className:v([`${B}-message-icon`,"close-icon"]),url:Ls});return M.jsxs("div",{className:T,style:r,children:[n&&!I&&D(),u,l&&!I&&E()]})}function yi(t){const{className:e,style:n}=t,[a,i]=g.useState(null),[r,o]=g.useState(!0),[l,c]=g.useState(0),{t:u}=ie(),I=v([e]);function N(T){if(typeof T=="object"){const{text:D="",duration:E=0}=T;i(D),c(E)}else i(T)}const A=g.useMemo(()=>{if(typeof u=="function"&&a!==null)return u(a)},[u,a]);return g.useEffect(()=>(h.watch(d.CALL,{[s.CALL_TIPS]:N},{notifyRangeWhenWatch:s.MYSELF}),()=>{h.unwatch(d.CALL,{[s.CALL_TIPS]:N})}),[]),M.jsx("div",{className:I,style:n,children:r&&M.jsx(ji,{style:{whiteSpace:"nowrap"},duration:l,onClose:()=>o(!1),plaintext:!0,children:A})})}const fi={"top-bar-container":"_top-bar-container_1m8fv_1","top-bar":"_top-bar_1m8fv_1"};function Os(t){const{callDuration:e}=t,{isGroupCall:n,callStatus:a,callRole:i,allowedMinimized:r}=g.useContext(P),{isAITranscriberEnabled:o}=Ot(),l=n&&(a===x.CONNECTED||i===X.CALLER),c=a===x.CONNECTED&&o;return M.jsx("div",{className:fi["top-bar-container"],children:M.jsxs(St,{className:fi["top-bar"],children:[M.jsx(we,{justify:"start",span:4,children:M.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px"},children:[r&&M.jsx(hi,{}),c&&M.jsx(Cs,{})]})}),M.jsx(we,{align:"center",span:4,children:a===x.CONNECTED?M.jsx(Ai,{callDuration:e}):l&&M.jsx(yi,{})}),M.jsx(we,{span:4})]})})}const Si=!!(typeof window<"u"&&window.document&&window.document.createElement);function ms(t){const e=document.getElementById(t);!document.fullscreenElement&&e?e.requestFullscreen().catch(n=>{console.error(`Error attempting to enable fullscreen mode: ${n.message} (${n.name})`)}):document.exitFullscreen()}function zs(){}const ws="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik00LjY2NjgzIDkuMzMzMzdIMy4zMzM1VjQuMDAwMDRDMy4zMzM1IDMuNjMxODUgMy42MzE5NyAzLjMzMzM3IDQuMDAwMTYgMy4zMzMzN0w5LjMzMzUgMy4zMzMzN1Y0LjY2NjcxSDUuNjA5NjNMOS44MDQ5IDguODYxOTlMOC44NjIwOSA5LjgwNDhMNC42NjY4MyA1LjYwOTUyVjkuMzMzMzdaTTE1LjMzMzMgMTAuNjY2N0gxNi42NjY3VjE2QzE2LjY2NjcgMTYuMzY4MiAxNi4zNjgyIDE2LjY2NjcgMTYgMTYuNjY2N0wxMC42NjY3IDE2LjY2NjdMMTAuNjY2NyAxNS4zMzMzSDE0LjM5MDVMMTAuMTk1MyAxMS4xMzhMMTEuMTM4MSAxMC4xOTUyTDE1LjMzMzMgMTQuMzkwNVYxMC42NjY3WiIgZmlsbD0id2hpdGUiLz4KPHBhdGggZD0iTTAuNjY2NjY3IDEuMzMzMzNDMC42NjY2NjcgMC45NjUxNDQgMC45NjUxNDQgMC42NjY2NjcgMS4zMzMzMyAwLjY2NjY2N0gxOC42NjY3QzE5LjAzNDkgMC42NjY2NjcgMTkuMzMzMyAwLjk2NTE0NCAxOS4zMzMzIDEuMzMzMzNWMTguNjY2N0MxOS4zMzMzIDE5LjAzNDkgMTkuMDM0OSAxOS4zMzMzIDE4LjY2NjcgMTkuMzMzM0gxLjMzMzMzQzAuOTY1MTQzIDE5LjMzMzMgMC42NjY2NjcgMTkuMDM0OSAwLjY2NjY2NyAxOC42NjY3VjEuMzMzMzNaIiBzdHJva2U9IndoaXRlIiBzdHJva2Utd2lkdGg9IjEuMzMzMzMiLz4KPC9zdmc+",Us={"full-screen-container":"_full-screen-container_16bjq_1"};function vs(t){const{domID:e}=t,n=M.jsx(F,{url:ws});return M.jsx(he,{className:Us["full-screen-container"],icon:n,onClick:()=>{typeof e=="string"&&ms(e)}})}const la={"single-top-bar":"_single-top-bar_v1223_1","topbar-center":"_topbar-center_v1223_13","topbar-right-controls":"_topbar-right-controls_v1223_22"};function xs(t){const{callDuration:e}=t,{isGroupCall:n,callStatus:a,allowedMinimized:i,allowedFullScreen:r}=g.useContext(P),{isAITranscriberEnabled:o}=Ot(),l=a===x.CONNECTED&&!n,c=a===x.CONNECTED&&o;return M.jsxs("div",{className:la["single-top-bar"],children:[M.jsx("div",{className:la["topbar-center"],children:l&&M.jsx(Ai,{callDuration:e})}),M.jsxs("div",{className:la["topbar-right-controls"],children:[c&&M.jsx(Ts,{}),i&&M.jsx(hi,{}),r&&M.jsx(vs,{domID:"tuicallkit-id"})]})]})}function Oi(){const t=!w.isPC,e=oa();return M.jsxs(M.Fragment,{children:[t&&M.jsx(Os,{callDuration:e}),!t&&M.jsx(xs,{callDuration:e})]})}const bs="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAiIGhlaWdodD0iMzAiIHZpZXdC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OTlaIiBmaWxsPSJ3aGl0ZSIvPgo8L2c+CjxkZWZzPgo8Y2xpcFBhdGggaWQ9ImNsaXAwXzIyXzE2OTciPgo8cmVjdCB3aWR0aD0iMzAiIGhlaWdodD0iMzAiIGZpbGw9IndoaXRlIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg==",Ce="tk",J={"btn-icon":"_btn-icon_oeiwp_1","btn-icon-container":"_btn-icon-container_oeiwp_6","arrow-btn":"_arrow-btn_oeiwp_38","tk-btn":"_tk-btn_oeiwp_50"},_s={"accept-icon-container":"_accept-icon-container_171af_1"};function Xe(t){const{t:e}=ie(),n=()=>V.accept(),a=v([J["btn-icon-container"],_s["accept-icon-container"],{mobile:!w.isPC,pc:w.isPC}]),i=M.jsx(F,{className:J["btn-icon"],url:bs});return M.jsx(he,{className:J[`${Ce}-btn`],icon:i,iconClassName:a,onClick:n,...t,children:e("accept")})}const mi="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAiIGhlaWdodD0iMzAiIHZpZXdCb3g9IjAgMCAzMCAzMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTMwIDE2LjA1MDlDMzAgMTMuODE0NiAyOC43NzIyIDExLjcxOTQgMjYuNjg1NSAxMC45MTVDMjMuMDU5MSA5LjUxNzI2IDE5LjExOSA4Ljc1MDk4IDE1IDguNzUwOThDMTAuODgwOSA4Ljc1MDk4IDYuOTQwODYgOS41MTcyNiAzLjMxNDUzIDEwLjkxNUMxLjIyNzg0IDExLjcxOTQgMCAxMy44MTQ2IDAgMTYuMDUwOVYxOS42NDc2QzAgMjAuNTE1MyAwLjczNDAwMyAyMS4yMDIgMS41OTk3OCAyMS4xNDQzTDcuOTc0NzggMjAuNzE5M0M4Ljc2MjcyIDIwLjY2NjggOS4zNzUgMjAuMDEyMyA5LjM3NSAxOS4yMjI2VjE2LjIwOUM5LjM3NSAxNS44NTY0IDkuNjIwMzQgMTUuNTUwMyA5Ljk2NjQ0IDE1LjQ4MzFDMTEuNTk1NSAxNS4xNjY3IDEzLjI3ODQgMTUuMDAxIDE1IDE1LjAwMUMxNi43MjE2IDE1LjAwMSAxOC40MDQ1IDE1LjE2NjcgMjAuMDMzNiAxNS40ODMxQzIwLjM3OTcgMTUuNTUwMyAyMC42MjUgMTUuODU2NCAyMC42MjUgMTYuMjA5VjE5LjIyMjZDMjAuNjI1IDIwLjAxMjMgMjEuMjM3MyAyMC42NjY4IDIyLjAyNTIgMjAuNzE5M0wyOC40MDAyIDIxLjE0NDNDMjkuMjY2IDIxLjIwMiAzMCAyMC41MTUzIDMwIDE5LjY0NzZWMTYuMDUwOVoiIGZpbGw9IndoaXRlIi8+Cjwvc3ZnPgo=",ks={"reject-icon-container":"_reject-icon-container_mg9y1_1"};function Ke(t){const{t:e}=ie(),n=()=>V.reject(),a=v([J["btn-icon-container"],ks["reject-icon-container"],{mobile:!w.isPC,pc:w.isPC}]),i=M.jsx(F,{className:J["btn-icon"],url:mi});return M.jsx(he,{className:J[`${Ce}-btn`],icon:i,iconClassName:a,onClick:n,...t,children:e("reject")})}var zi=function(e){return e.reduce(function(n,a){var i=a[0],r=a[1];return n[i]=r,n},{})},wi=typeof window<"u"&&window.document&&window.document.createElement?it.useLayoutEffect:it.useEffect,Me="top",Le="bottom",pe="right",ue="left",ca="auto",Pt=[Me,Le,pe,ue],mt="start",Wt="end",Vs="clippingParents",Ui="viewport",Ht="popper",Qs="reference",vi=Pt.reduce(function(t,e){return t.concat([e+"-"+mt,e+"-"+Wt])},[]),xi=[].concat(Pt,[ca]).reduce(function(t,e){return t.concat([e,e+"-"+mt,e+"-"+Wt])},[]),Bs="beforeRead",Ys="read",Rs="afterRead",Gs="beforeMain",Zs="main",Fs="afterMain",Ps="beforeWrite",Ws="write",Hs="afterWrite",Js=[Bs,Ys,Rs,Gs,Zs,Fs,Ps,Ws,Hs];function Ue(t){return t?(t.nodeName||"").toLowerCase():null}function de(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function lt(t){var e=de(t).Element;return t instanceof e||t instanceof Element}function je(t){var e=de(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function Ma(t){if(typeof ShadowRoot>"u")return!1;var e=de(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function Xs(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var a=e.styles[n]||{},i=e.attributes[n]||{},r=e.elements[n];!je(r)||!Ue(r)||(Object.assign(r.style,a),Object.keys(i).forEach(function(o){var l=i[o];l===!1?r.removeAttribute(o):r.setAttribute(o,l===!0?"":l)}))})}function Ks(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(a){var i=e.elements[a],r=e.attributes[a]||{},o=Object.keys(e.styles.hasOwnProperty(a)?e.styles[a]:n[a]),l=o.reduce(function(c,u){return c[u]="",c},{});!je(i)||!Ue(i)||(Object.assign(i.style,l),Object.keys(r).forEach(function(c){i.removeAttribute(c)}))})}}const $s={name:"applyStyles",enabled:!0,phase:"write",fn:Xs,effect:Ks,requires:["computeStyles"]};function ve(t){return t.split("-")[0]}var ct=Math.max,mn=Math.min,zt=Math.round;function ua(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function bi(){return!/^((?!chrome|android).)*safari/i.test(ua())}function wt(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var a=t.getBoundingClientRect(),i=1,r=1;e&&je(t)&&(i=t.offsetWidth>0&&zt(a.width)/t.offsetWidth||1,r=t.offsetHeight>0&&zt(a.height)/t.offsetHeight||1);var o=lt(t)?de(t):window,l=o.visualViewport,c=!bi()&&n,u=(a.left+(c&&l?l.offsetLeft:0))/i,I=(a.top+(c&&l?l.offsetTop:0))/r,N=a.width/i,A=a.height/r;return{width:N,height:A,top:I,right:u+N,bottom:I+A,left:u,x:u,y:I}}function Ia(t){var e=wt(t),n=t.offsetWidth,a=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-a)<=1&&(a=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:a}}function _i(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&Ma(n)){var a=e;do{if(a&&t.isSameNode(a))return!0;a=a.parentNode||a.host}while(a)}return!1}function Ve(t){return de(t).getComputedStyle(t)}function qs(t){return["table","td","th"].indexOf(Ue(t))>=0}function $e(t){return((lt(t)?t.ownerDocument:t.document)||window.document).documentElement}function zn(t){return Ue(t)==="html"?t:t.assignedSlot||t.parentNode||(Ma(t)?t.host:null)||$e(t)}function ki(t){return!je(t)||Ve(t).position==="fixed"?null:t.offsetParent}function el(t){var e=/firefox/i.test(ua()),n=/Trident/i.test(ua());if(n&&je(t)){var a=Ve(t);if(a.position==="fixed")return null}var i=zn(t);for(Ma(i)&&(i=i.host);je(i)&&["html","body"].indexOf(Ue(i))<0;){var r=Ve(i);if(r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].indexOf(r.willChange)!==-1||e&&r.willChange==="filter"||e&&r.filter&&r.filter!=="none")return i;i=i.parentNode}return null}function Jt(t){for(var e=de(t),n=ki(t);n&&qs(n)&&Ve(n).position==="static";)n=ki(n);return n&&(Ue(n)==="html"||Ue(n)==="body"&&Ve(n).position==="static")?e:n||el(t)||e}function ga(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Xt(t,e,n){return ct(t,mn(e,n))}function tl(t,e,n){var a=Xt(t,e,n);return a>n?n:a}function Vi(){return{top:0,right:0,bottom:0,left:0}}function Qi(t){return Object.assign({},Vi(),t)}function Bi(t,e){return e.reduce(function(n,a){return n[a]=t,n},{})}var nl=function(e,n){return e=typeof e=="function"?e(Object.assign({},n.rects,{placement:n.placement})):e,Qi(typeof e!="number"?e:Bi(e,Pt))};function al(t){var e,n=t.state,a=t.name,i=t.options,r=n.elements.arrow,o=n.modifiersData.popperOffsets,l=ve(n.placement),c=ga(l),u=[ue,pe].indexOf(l)>=0,I=u?"height":"width";if(!(!r||!o)){var N=nl(i.padding,n),A=Ia(r),T=c==="y"?Me:ue,D=c==="y"?Le:pe,E=n.rects.reference[I]+n.rects.reference[c]-o[c]-n.rects.popper[I],C=o[c]-n.rects.reference[c],L=Jt(r),p=L?c==="y"?L.clientHeight||0:L.clientWidth||0:0,S=E/2-C/2,j=N[T],y=p-A[I]-N[D],f=p/2-A[I]/2+S,U=Xt(j,f,y),m=c;n.modifiersData[a]=(e={},e[m]=U,e.centerOffset=U-f,e)}}function il(t){var e=t.state,n=t.options,a=n.element,i=a===void 0?"[data-popper-arrow]":a;i!=null&&(typeof i=="string"&&(i=e.elements.popper.querySelector(i),!i)||_i(e.elements.popper,i)&&(e.elements.arrow=i))}const rl={name:"arrow",enabled:!0,phase:"main",fn:al,effect:il,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ut(t){return t.split("-")[1]}var ol={top:"auto",right:"auto",bottom:"auto",left:"auto"};function sl(t,e){var n=t.x,a=t.y,i=e.devicePixelRatio||1;return{x:zt(n*i)/i||0,y:zt(a*i)/i||0}}function Yi(t){var e,n=t.popper,a=t.popperRect,i=t.placement,r=t.variation,o=t.offsets,l=t.position,c=t.gpuAcceleration,u=t.adaptive,I=t.roundOffsets,N=t.isFixed,A=o.x,T=A===void 0?0:A,D=o.y,E=D===void 0?0:D,C=typeof I=="function"?I({x:T,y:E}):{x:T,y:E};T=C.x,E=C.y;var L=o.hasOwnProperty("x"),p=o.hasOwnProperty("y"),S=ue,j=Me,y=window;if(u){var f=Jt(n),U="clientHeight",m="clientWidth";if(f===de(n)&&(f=$e(n),Ve(f).position!=="static"&&l==="absolute"&&(U="scrollHeight",m="scrollWidth")),f=f,i===Me||(i===ue||i===pe)&&r===Wt){j=Le;var k=N&&f===y&&y.visualViewport?y.visualViewport.height:f[U];E-=k-a.height,E*=c?1:-1}if(i===ue||(i===Me||i===Le)&&r===Wt){S=pe;var Q=N&&f===y&&y.visualViewport?y.visualViewport.width:f[m];T-=Q-a.width,T*=c?1:-1}}var H=Object.assign({position:l},u&&ol),oe=I===!0?sl({x:T,y:E},de(n)):{x:T,y:E};if(T=oe.x,E=oe.y,c){var $;return Object.assign({},H,($={},$[j]=p?"0":"",$[S]=L?"0":"",$.transform=(y.devicePixelRatio||1)<=1?"translate("+T+"px, "+E+"px)":"translate3d("+T+"px, "+E+"px, 0)",$))}return Object.assign({},H,(e={},e[j]=p?E+"px":"",e[S]=L?T+"px":"",e.transform="",e))}function ll(t){var e=t.state,n=t.options,a=n.gpuAcceleration,i=a===void 0?!0:a,r=n.adaptive,o=r===void 0?!0:r,l=n.roundOffsets,c=l===void 0?!0:l,u={placement:ve(e.placement),variation:Ut(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:i,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,Yi(Object.assign({},u,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:o,roundOffsets:c})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,Yi(Object.assign({},u,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const cl={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:ll,data:{}};var wn={passive:!0};function Ml(t){var e=t.state,n=t.instance,a=t.options,i=a.scroll,r=i===void 0?!0:i,o=a.resize,l=o===void 0?!0:o,c=de(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return r&&u.forEach(function(I){I.addEventListener("scroll",n.update,wn)}),l&&c.addEventListener("resize",n.update,wn),function(){r&&u.forEach(function(I){I.removeEventListener("scroll",n.update,wn)}),l&&c.removeEventListener("resize",n.update,wn)}}const ul={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Ml,data:{}};var Il={left:"right",right:"left",bottom:"top",top:"bottom"};function Un(t){return t.replace(/left|right|bottom|top/g,function(e){return Il[e]})}var gl={start:"end",end:"start"};function Ri(t){return t.replace(/start|end/g,function(e){return gl[e]})}function da(t){var e=de(t),n=e.pageXOffset,a=e.pageYOffset;return{scrollLeft:n,scrollTop:a}}function Na(t){return wt($e(t)).left+da(t).scrollLeft}function dl(t,e){var n=de(t),a=$e(t),i=n.visualViewport,r=a.clientWidth,o=a.clientHeight,l=0,c=0;if(i){r=i.width,o=i.height;var u=bi();(u||!u&&e==="fixed")&&(l=i.offsetLeft,c=i.offsetTop)}return{width:r,height:o,x:l+Na(t),y:c}}function Nl(t){var e,n=$e(t),a=da(t),i=(e=t.ownerDocument)==null?void 0:e.body,r=ct(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=ct(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),l=-a.scrollLeft+Na(t),c=-a.scrollTop;return Ve(i||n).direction==="rtl"&&(l+=ct(n.clientWidth,i?i.clientWidth:0)-r),{width:r,height:o,x:l,y:c}}function Aa(t){var e=Ve(t),n=e.overflow,a=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+a)}function Gi(t){return["html","body","#document"].indexOf(Ue(t))>=0?t.ownerDocument.body:je(t)&&Aa(t)?t:Gi(zn(t))}function Kt(t,e){var n;e===void 0&&(e=[]);var a=Gi(t),i=a===((n=t.ownerDocument)==null?void 0:n.body),r=de(a),o=i?[r].concat(r.visualViewport||[],Aa(a)?a:[]):a,l=e.concat(o);return i?l:l.concat(Kt(zn(o)))}function Da(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Al(t,e){var n=wt(t,!1,e==="fixed");return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}function Zi(t,e,n){return e===Ui?Da(dl(t,n)):lt(e)?Al(e,n):Da(Nl($e(t)))}function Dl(t){var e=Kt(zn(t)),n=["absolute","fixed"].indexOf(Ve(t).position)>=0,a=n&&je(t)?Jt(t):t;return lt(a)?e.filter(function(i){return lt(i)&&_i(i,a)&&Ue(i)!=="body"}):[]}function Tl(t,e,n,a){var i=e==="clippingParents"?Dl(t):[].concat(e),r=[].concat(i,[n]),o=r[0],l=r.reduce(function(c,u){var I=Zi(t,u,a);return c.top=ct(I.top,c.top),c.right=mn(I.right,c.right),c.bottom=mn(I.bottom,c.bottom),c.left=ct(I.left,c.left),c},Zi(t,o,a));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function Fi(t){var e=t.reference,n=t.element,a=t.placement,i=a?ve(a):null,r=a?Ut(a):null,o=e.x+e.width/2-n.width/2,l=e.y+e.height/2-n.height/2,c;switch(i){case Me:c={x:o,y:e.y-n.height};break;case Le:c={x:o,y:e.y+e.height};break;case pe:c={x:e.x+e.width,y:l};break;case ue:c={x:e.x-n.width,y:l};break;default:c={x:e.x,y:e.y}}var u=i?ga(i):null;if(u!=null){var I=u==="y"?"height":"width";switch(r){case mt:c[u]=c[u]-(e[I]/2-n[I]/2);break;case Wt:c[u]=c[u]+(e[I]/2-n[I]/2);break}}return c}function $t(t,e){e===void 0&&(e={});var n=e,a=n.placement,i=a===void 0?t.placement:a,r=n.strategy,o=r===void 0?t.strategy:r,l=n.boundary,c=l===void 0?Vs:l,u=n.rootBoundary,I=u===void 0?Ui:u,N=n.elementContext,A=N===void 0?Ht:N,T=n.altBoundary,D=T===void 0?!1:T,E=n.padding,C=E===void 0?0:E,L=Qi(typeof C!="number"?C:Bi(C,Pt)),p=A===Ht?Qs:Ht,S=t.rects.popper,j=t.elements[D?p:A],y=Tl(lt(j)?j:j.contextElement||$e(t.elements.popper),c,I,o),f=wt(t.elements.reference),U=Fi({reference:f,element:S,strategy:"absolute",placement:i}),m=Da(Object.assign({},S,U)),k=A===Ht?m:f,Q={top:y.top-k.top+L.top,bottom:k.bottom-y.bottom+L.bottom,left:y.left-k.left+L.left,right:k.right-y.right+L.right},H=t.modifiersData.offset;if(A===Ht&&H){var oe=H[i];Object.keys(Q).forEach(function($){var fe=[pe,Le].indexOf($)>=0?1:-1,Se=[Me,Le].indexOf($)>=0?"y":"x";Q[$]+=oe[Se]*fe})}return Q}function El(t,e){e===void 0&&(e={});var n=e,a=n.placement,i=n.boundary,r=n.rootBoundary,o=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,u=c===void 0?xi:c,I=Ut(a),N=I?l?vi:vi.filter(function(D){return Ut(D)===I}):Pt,A=N.filter(function(D){return u.indexOf(D)>=0});A.length===0&&(A=N);var T=A.reduce(function(D,E){return D[E]=$t(t,{placement:E,boundary:i,rootBoundary:r,padding:o})[ve(E)],D},{});return Object.keys(T).sort(function(D,E){return T[D]-T[E]})}function hl(t){if(ve(t)===ca)return[];var e=Un(t);return[Ri(t),e,Ri(e)]}function Cl(t){var e=t.state,n=t.options,a=t.name;if(!e.modifiersData[a]._skip){for(var i=n.mainAxis,r=i===void 0?!0:i,o=n.altAxis,l=o===void 0?!0:o,c=n.fallbackPlacements,u=n.padding,I=n.boundary,N=n.rootBoundary,A=n.altBoundary,T=n.flipVariations,D=T===void 0?!0:T,E=n.allowedAutoPlacements,C=e.options.placement,L=ve(C),p=L===C,S=c||(p||!D?[Un(C)]:hl(C)),j=[C].concat(S).reduce(function(nt,xe){return nt.concat(ve(xe)===ca?El(e,{placement:xe,boundary:I,rootBoundary:N,padding:u,flipVariations:D,allowedAutoPlacements:E}):xe)},[]),y=e.rects.reference,f=e.rects.popper,U=new Map,m=!0,k=j[0],Q=0;Q<j.length;Q++){var H=j[Q],oe=ve(H),$=Ut(H)===mt,fe=[Me,Le].indexOf(oe)>=0,Se=fe?"width":"height",q=$t(e,{placement:H,boundary:I,rootBoundary:N,altBoundary:A,padding:u}),De=fe?$?pe:ue:$?Le:Me;y[Se]>f[Se]&&(De=Un(De));var kt=Un(De),Pe=[];if(r&&Pe.push(q[oe]<=0),l&&Pe.push(q[De]<=0,q[kt]<=0),Pe.every(function(nt){return nt})){k=H,m=!1;break}U.set(H,Pe)}if(m)for(var Vt=D?3:1,In=function(xe){var Ct=j.find(function(Qt){var We=U.get(Qt);if(We)return We.slice(0,xe).every(function(gn){return gn})});if(Ct)return k=Ct,"break"},ht=Vt;ht>0;ht--){var ze=In(ht);if(ze==="break")break}e.placement!==k&&(e.modifiersData[a]._skip=!0,e.placement=k,e.reset=!0)}}const Ll={name:"flip",enabled:!0,phase:"main",fn:Cl,requiresIfExists:["offset"],data:{_skip:!1}};function Pi(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function Wi(t){return[Me,pe,Le,ue].some(function(e){return t[e]>=0})}function pl(t){var e=t.state,n=t.name,a=e.rects.reference,i=e.rects.popper,r=e.modifiersData.preventOverflow,o=$t(e,{elementContext:"reference"}),l=$t(e,{altBoundary:!0}),c=Pi(o,a),u=Pi(l,i,r),I=Wi(c),N=Wi(u);e.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:I,hasPopperEscaped:N},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":I,"data-popper-escaped":N})}const jl={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:pl};function yl(t,e,n){var a=ve(t),i=[ue,Me].indexOf(a)>=0?-1:1,r=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,o=r[0],l=r[1];return o=o||0,l=(l||0)*i,[ue,pe].indexOf(a)>=0?{x:l,y:o}:{x:o,y:l}}function fl(t){var e=t.state,n=t.options,a=t.name,i=n.offset,r=i===void 0?[0,0]:i,o=xi.reduce(function(I,N){return I[N]=yl(N,e.rects,r),I},{}),l=o[e.placement],c=l.x,u=l.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=c,e.modifiersData.popperOffsets.y+=u),e.modifiersData[a]=o}const Sl={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:fl};function Ol(t){var e=t.state,n=t.name;e.modifiersData[n]=Fi({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const ml={name:"popperOffsets",enabled:!0,phase:"read",fn:Ol,data:{}};function zl(t){return t==="x"?"y":"x"}function wl(t){var e=t.state,n=t.options,a=t.name,i=n.mainAxis,r=i===void 0?!0:i,o=n.altAxis,l=o===void 0?!1:o,c=n.boundary,u=n.rootBoundary,I=n.altBoundary,N=n.padding,A=n.tether,T=A===void 0?!0:A,D=n.tetherOffset,E=D===void 0?0:D,C=$t(e,{boundary:c,rootBoundary:u,padding:N,altBoundary:I}),L=ve(e.placement),p=Ut(e.placement),S=!p,j=ga(L),y=zl(j),f=e.modifiersData.popperOffsets,U=e.rects.reference,m=e.rects.popper,k=typeof E=="function"?E(Object.assign({},e.rects,{placement:e.placement})):E,Q=typeof k=="number"?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),H=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,oe={x:0,y:0};if(f){if(r){var $,fe=j==="y"?Me:ue,Se=j==="y"?Le:pe,q=j==="y"?"height":"width",De=f[j],kt=De+C[fe],Pe=De-C[Se],Vt=T?-m[q]/2:0,In=p===mt?U[q]:m[q],ht=p===mt?-m[q]:-U[q],ze=e.elements.arrow,nt=T&&ze?Ia(ze):{width:0,height:0},xe=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Vi(),Ct=xe[fe],Qt=xe[Se],We=Xt(0,U[q],nt[q]),gn=S?U[q]/2-Vt-We-Ct-Q.mainAxis:In-We-Ct-Q.mainAxis,Va=S?-U[q]/2+Vt+We+Qt+Q.mainAxis:ht+We+Qt+Q.mainAxis,dn=e.elements.arrow&&Jt(e.elements.arrow),Qa=dn?j==="y"?dn.clientTop||0:dn.clientLeft||0:0,Yn=($=H==null?void 0:H[j])!=null?$:0,Ba=De+gn-Yn-Qa,Rn=De+Va-Yn,Gn=Xt(T?mn(kt,Ba):kt,De,T?ct(Pe,Rn):Pe);f[j]=Gn,oe[j]=Gn-De}if(l){var Zn,Ya=j==="x"?Me:ue,Ra=j==="x"?Le:pe,He=f[y],Lt=y==="y"?"height":"width",Y=He+C[Ya],at=He-C[Ra],Nn=[Me,ue].indexOf(L)!==-1,An=(Zn=H==null?void 0:H[y])!=null?Zn:0,Hr=Nn?Y:He-U[Lt]-m[Lt]-An+Q.altAxis,Jr=Nn?He+U[Lt]+m[Lt]-An-Q.altAxis:at,Xr=T&&Nn?tl(Hr,He,Jr):Xt(T?Hr:Y,He,T?Jr:at);f[y]=Xr,oe[y]=Xr-He}e.modifiersData[a]=oe}}const Ul={name:"preventOverflow",enabled:!0,phase:"main",fn:wl,requiresIfExists:["offset"]};function vl(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function xl(t){return t===de(t)||!je(t)?da(t):vl(t)}function bl(t){var e=t.getBoundingClientRect(),n=zt(e.width)/t.offsetWidth||1,a=zt(e.height)/t.offsetHeight||1;return n!==1||a!==1}function _l(t,e,n){n===void 0&&(n=!1);var a=je(e),i=je(e)&&bl(e),r=$e(e),o=wt(t,i,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(a||!a&&!n)&&((Ue(e)!=="body"||Aa(r))&&(l=xl(e)),je(e)?(c=wt(e,!0),c.x+=e.clientLeft,c.y+=e.clientTop):r&&(c.x=Na(r))),{x:o.left+l.scrollLeft-c.x,y:o.top+l.scrollTop-c.y,width:o.width,height:o.height}}function kl(t){var e=new Map,n=new Set,a=[];t.forEach(function(r){e.set(r.name,r)});function i(r){n.add(r.name);var o=[].concat(r.requires||[],r.requiresIfExists||[]);o.forEach(function(l){if(!n.has(l)){var c=e.get(l);c&&i(c)}}),a.push(r)}return t.forEach(function(r){n.has(r.name)||i(r)}),a}function Vl(t){var e=kl(t);return Js.reduce(function(n,a){return n.concat(e.filter(function(i){return i.phase===a}))},[])}function Ql(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function Bl(t){var e=t.reduce(function(n,a){var i=n[a.name];return n[a.name]=i?Object.assign({},i,a,{options:Object.assign({},i.options,a.options),data:Object.assign({},i.data,a.data)}):a,n},{});return Object.keys(e).map(function(n){return e[n]})}var Hi={placement:"bottom",modifiers:[],strategy:"absolute"};function Ji(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some(function(a){return!(a&&typeof a.getBoundingClientRect=="function")})}function Yl(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,a=n===void 0?[]:n,i=e.defaultOptions,r=i===void 0?Hi:i;return function(l,c,u){u===void 0&&(u=r);var I={placement:"bottom",orderedModifiers:[],options:Object.assign({},Hi,r),modifiersData:{},elements:{reference:l,popper:c},attributes:{},styles:{}},N=[],A=!1,T={state:I,setOptions:function(L){var p=typeof L=="function"?L(I.options):L;E(),I.options=Object.assign({},r,I.options,p),I.scrollParents={reference:lt(l)?Kt(l):l.contextElement?Kt(l.contextElement):[],popper:Kt(c)};var S=Vl(Bl([].concat(a,I.options.modifiers)));return I.orderedModifiers=S.filter(function(j){return j.enabled}),D(),T.update()},forceUpdate:function(){if(!A){var L=I.elements,p=L.reference,S=L.popper;if(Ji(p,S)){I.rects={reference:_l(p,Jt(S),I.options.strategy==="fixed"),popper:Ia(S)},I.reset=!1,I.placement=I.options.placement,I.orderedModifiers.forEach(function(Q){return I.modifiersData[Q.name]=Object.assign({},Q.data)});for(var j=0;j<I.orderedModifiers.length;j++){if(I.reset===!0){I.reset=!1,j=-1;continue}var y=I.orderedModifiers[j],f=y.fn,U=y.options,m=U===void 0?{}:U,k=y.name;typeof f=="function"&&(I=f({state:I,options:m,name:k,instance:T})||I)}}}},update:Ql(function(){return new Promise(function(C){T.forceUpdate(),C(I)})}),destroy:function(){E(),A=!0}};if(!Ji(l,c))return T;T.setOptions(u).then(function(C){!A&&u.onFirstUpdate&&u.onFirstUpdate(C)});function D(){I.orderedModifiers.forEach(function(C){var L=C.name,p=C.options,S=p===void 0?{}:p,j=C.effect;if(typeof j=="function"){var y=j({state:I,name:L,instance:T,options:S}),f=function(){};N.push(y||f)}})}function E(){N.forEach(function(C){return C()}),N=[]}return T}}var Rl=[ul,ml,cl,$s,Sl,Ll,Ul,rl,jl],Gl=Yl({defaultModifiers:Rl});function Zl(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Fl=typeof Element<"u",Pl=typeof Map=="function",Wl=typeof Set=="function",Hl=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function vn(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var n,a,i;if(Array.isArray(t)){if(n=t.length,n!=e.length)return!1;for(a=n;a--!==0;)if(!vn(t[a],e[a]))return!1;return!0}var r;if(Pl&&t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(r=t.entries();!(a=r.next()).done;)if(!e.has(a.value[0]))return!1;for(r=t.entries();!(a=r.next()).done;)if(!vn(a.value[1],e.get(a.value[0])))return!1;return!0}if(Wl&&t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(r=t.entries();!(a=r.next()).done;)if(!e.has(a.value[0]))return!1;return!0}if(Hl&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(e)){if(n=t.length,n!=e.length)return!1;for(a=n;a--!==0;)if(t[a]!==e[a])return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf&&typeof t.valueOf=="function"&&typeof e.valueOf=="function")return t.valueOf()===e.valueOf();if(t.toString!==Object.prototype.toString&&typeof t.toString=="function"&&typeof e.toString=="function")return t.toString()===e.toString();if(i=Object.keys(t),n=i.length,n!==Object.keys(e).length)return!1;for(a=n;a--!==0;)if(!Object.prototype.hasOwnProperty.call(e,i[a]))return!1;if(Fl&&t instanceof Element)return!1;for(a=n;a--!==0;)if(!((i[a]==="_owner"||i[a]==="__v"||i[a]==="__o")&&t.$$typeof)&&!vn(t[i[a]],e[i[a]]))return!1;return!0}return t!==t&&e!==e}var Jl=function(e,n){try{return vn(e,n)}catch(a){if((a.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw a}};const Xl=Zl(Jl);var Kl=[],$l=function(e,n,a){a===void 0&&(a={});var i=it.useRef(null),r={onFirstUpdate:a.onFirstUpdate,placement:a.placement||"bottom",strategy:a.strategy||"absolute",modifiers:a.modifiers||Kl},o=it.useState({styles:{popper:{position:r.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),l=o[0],c=o[1],u=it.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(T){var D=T.state,E=Object.keys(D.elements);Kr.flushSync(function(){c({styles:zi(E.map(function(C){return[C,D.styles[C]||{}]})),attributes:zi(E.map(function(C){return[C,D.attributes[C]]}))})})},requires:["computeStyles"]}},[]),I=it.useMemo(function(){var A={onFirstUpdate:r.onFirstUpdate,placement:r.placement,strategy:r.strategy,modifiers:[].concat(r.modifiers,[u,{name:"applyStyles",enabled:!1}])};return Xl(i.current,A)?i.current||A:(i.current=A,A)},[r.onFirstUpdate,r.placement,r.strategy,r.modifiers,u]),N=it.useRef();return wi(function(){N.current&&N.current.setOptions(I)},[I]),wi(function(){if(!(e==null||n==null)){var A=a.createPopper||Gl,T=A(e,n,I);return N.current=T,function(){T.destroy(),N.current=null}}},[e,n,a.createPopper]),{state:N.current?N.current.state:null,styles:l.styles,attributes:l.attributes,update:N.current?N.current.update:null,forceUpdate:N.current?N.current.forceUpdate:null}};function ql(t,e){if(!Si)return null;let n;return typeof t=="string"&&(n=document.querySelector(t)),typeof t=="function"&&(n=t(e)),typeof t=="object"&&t instanceof window.HTMLElement&&(n=t),n&&n.nodeType===1?n:document.body}const qt=g.forwardRef((t,e)=>{const{attach:n,children:a,triggerNode:i,className:r,style:o={}}=t,l=g.useMemo(()=>{if(!Si)return null;const c=document.createElement("div");return c.className=`${Ce}-portal-wrapper ${r}`,Object.keys(o).forEach(u=>{c.style[u]=o[u]}),c},[Ce,r]);return g.useEffect(()=>{var u;const c=ql(n,i);return(u=c==null?void 0:c.appendChild)==null||u.call(c,l),()=>{var I;(I=c==null?void 0:c.removeChild)==null||I.call(c,l)}},[l,n,i]),g.useImperativeHandle(e,()=>l),Za.createPortal(a,l)});qt.displayName="Portal";const ec={debounceTime:0,config:{attributes:!0,childList:!0,characterData:!0,subtree:!0}};function tc(t,e,n=ec){const a=g.useRef(null);g.useEffect(()=>{!e||typeof e!="function"||(a.current=new MutationObserver(e))},[e,n]),g.useEffect(()=>{if(!t||!(t!=null&&t.nodeType))return;const{config:i}=n;try{a.current.observe(t,i)}catch(r){console.error(r)}return()=>{a.current.disconnect()}},[t,n])}function nc(...t){let e=window==null?void 0:window.document,n="",a=()=>{},i={};if(typeof t[0]=="string"?[n,a,i]=t:[e,n,a,i]=t,!!e)return e==null||e.addEventListener(n,a,i),()=>{e==null||e.removeEventListener(n,a,i)}}function ac(t,e){let n=()=>{};g.useEffect(()=>(n=nc("click",i=>{const r=t.map(c=>c==null?void 0:c.current),o=i.composedPath(),l=[];for(let c=0;c<r.length;c++)l[c]=o.includes(r[c]);l.every(c=>!c)&&e()},{passive:!0}),()=>{n==null||n()}),[t,e])}function ic({props:t,key:e,onChange:n,defaultOptions:a}){const i=Reflect.has(t,e),r=t[e],o=a[e];if(i)return[r,n||zs];const[l,c]=g.useState(o);return[l,u=>{c(u),n==null||n(u)}]}function rc({trigger:t,visible:e,disabled:n,onVisibleChange:a}){const i=g.useRef(null);function r(){return n?{}:{onMouseEnter:()=>{t==="hover"&&(clearTimeout(i.current),a(!0))},onMouseLeave:()=>{t==="hover"&&(clearTimeout(i.current),a(!1))}}}function o(c){return n?{}:{onClick:I=>{var N,A;t==="click"&&a(!e),(A=(N=c.props)==null?void 0:N.onClick)==null||A.call(N,I)},onTouchStart:()=>{t==="hover"&&a(!0)},onMouseEnter:()=>{t==="hover"&&a(!0)},onMouseLeave:()=>{t==="hover"&&a(!1)}}}function l(c){const u=g.isValidElement(c)?c:M.jsx("span",{className:"t-trigger",children:c}),I=o(u);return g.cloneElement(u,I)}return{getTriggerNode:l,getPopupProps:r}}const Wg="",Ta=g.forwardRef((t,e)=>{const{children:n,content:a,trigger:i="hover",disabled:r=!1,teleported:o=!0}=t,[l,c]=g.useState(null),[u,I]=g.useState(null),[N,A]=g.useState(null),T=g.useRef(null),D=g.useRef(void 0),E=g.useRef(null),{styles:C}=$l(l,u,{modifiers:[{name:"arrow",options:{element:N}}],placement:"top"}),[L,p]=ic({props:t,key:"visible",onChange:t.onVisibleChange,defaultOptions:{visible:!1}});ac([E],()=>L&&p(!1));const{getTriggerNode:S,getPopupProps:j}=rc({trigger:i,disabled:r,visible:L,onVisibleChange:p}),y=g.useCallback(()=>{clearTimeout(D.current),D.current=setTimeout(()=>{var k;return(k=u==null?void 0:u.update)==null?void 0:k.call(u)},0)},[u,C]);tc(l,y),g.useEffect(()=>()=>clearTimeout(D.current),[]);const f=g.cloneElement(S(n),{ref:c}),U=M.jsxs("div",{style:{...C.popper,paddingBottom:"10px"},ref:I,...j(),children:[M.jsx("div",{ref:T,className:v(`${Ce}-popup__content`),children:a}),M.jsx("div",{ref:N,style:C.arrow,className:`${Ce}-popup__arrow`})]}),m=o?M.jsx(qt,{children:U}):U;return M.jsxs("div",{ref:E,children:[f,L&&m]})}),qe={"device-selector-container":"_device-selector-container_n6s5h_1","device-item":"_device-item_n6s5h_9","control-item":"_control-item_n6s5h_20",btn:"_btn_n6s5h_31",select:"_select_n6s5h_50","scroll-container":"_scroll-container_n6s5h_62","scroll-content":"_scroll-content_n6s5h_67"};function Ea(t){const{deviceType:e,isShowControlBtn:n=!0}=t,{localUserInfo:a}=g.useContext(ge),{isMuteSpeaker:i}=g.useContext(P),[{deviceList:r,currentDeviceId:o},{setCurrentDeviceId:l}]=On(e),{t:c}=ie(),u=v([qe["device-item"],qe["control-item"]]),I=async D=>{try{await V.switchDevice({deviceType:e,deviceId:D}),l(D)}catch(E){console.debug(E)}},N=async()=>{e===ae.CAMERA&&(a!=null&&a.isVideoAvailable?await V.closeCamera():await V.openCamera("localVideo")),e===ae.MICROPHONE&&(a!=null&&a.isAudioAvailable?await V.closeMicrophone():await V.openMicrophone()),e===ae.SPEAKER&&(i?await V.unMuteSpeaker():await V.muteSpeaker())},A=()=>{if(e===ae.CAMERA)return a!=null&&a.isVideoAvailable?c("close camera"):c("open camera");if(e===ae.MICROPHONE)return a!=null&&a.isAudioAvailable?c("close microphone"):c("open microphone");if(e===ae.SPEAKER)return c(i?"open speaker":"close speaker")};function T(){return(r==null?void 0:r.length)>0?r==null?void 0:r.map(D=>{const{deviceId:E,label:C}=D;return M.jsx("div",{className:v([qe["device-item"],{[qe.select]:o===E}]),onClick:()=>I(E),children:C},E)}):M.jsx("div",{className:qe["device-item"],children:c("failed to obtain speakers")})}return M.jsxs("div",{className:qe["device-selector-container"],children:[M.jsx("div",{className:qe["scroll-container"],children:M.jsx("div",{className:qe["scroll-content"],children:T()})}),n&&M.jsx("div",{onClick:N,className:u,children:A()})]})}const oc="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAiIGhlaWdodD0iMzAiIHZpZXdCb3g9IjAgMCAzMCAzMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik00IDE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3IDEzLjM2MjUgMjQuNjI1IDE1IDI0LjYyNUMxOS45NzA2IDI0LjYyNSAyNCAyMC41OTU2IDI0IDE1LjYyNVYxMy43NUgyNlYxNS42MjVDMjYgMjEuMzYzIDIxLjYwNjUgMjYuMDc0OSAxNiAyNi41ODAyVjMwSDE0VjI2LjU4MDJDMTIuMjU0MyAyNi40MjI4IDEwLjYyNjIgMjUuODU3NyA5LjIxMTc3IDI0Ljk4MDdaTTEyLjI5ODMgMjEuMjYyNUwyMS4yNSAxMC40Nzg0VjE1LjYyNUMyMS4yNSAxOS4wNzY4IDE4LjQ1MTggMjEuODc1IDE1IDIxLjg3NUMxNC4wMzIzIDIxLjg3NSAxMy4xMTYgMjEuNjU1MSAxMi4yOTgzIDIxLjI2MjVaIiBmaWxsPSJ3aGl0ZSIgc3R5bGU9ImZpbGw6d2hpdGU7ZmlsbDp3aGl0ZTtmaWxsLW9wYWNpdHk6MTsiLz4KPHBhdGggZD0iTTYuNDE4OTUgMjQuMDg0TDIyLjA5MzkgNS4yMDkzOCIgc3Ryb2tlPSJ3aGl0ZSIgc3R5bGU9InN0cm9rZTp3aGl0ZTtzdHJva2U6d2hpdGU7c3Ryb2tlLW9wYWNpdHk6MTsiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InNxdWFyZSIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPgo8L3N2Zz4K";function Ie(t){const{localUserInfo:e}=g.useContext(ge),n=g.useMemo(()=>e==null?void 0:e.isAudioAvailable,[e]),[{deviceList:a}]=On(ae.MICROPHONE),[i,r]=g.useState(!0),{t:o}=ie(),l=g.useCallback(async()=>{r(!1),n?await V.closeMicrophone():await V.openMicrophone(),r(!0)},[n,r]),c=v([J["btn-icon-container"],{mobile:!w.isPC,pc:w.isPC,close:!n,disabled:!i}]),u=o(n?"microphone enabled":"microphone disabled"),I=M.jsx(F,{className:J["btn-icon"],url:n?oc:sc});return M.jsx(Ta,{content:M.jsx(Ea,{deviceType:ae.MICROPHONE}),disabled:!w.isPC||!((a==null?void 0:a.length)>0),teleported:!1,children:M.jsx("div",{style:{display:"flex"},children:M.jsx(he,{className:J[`${Ce}-btn`],iconClassName:c,icon:I,loading:!i,onClick:l,...t,children:u})})})}const lc="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjYiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyNiAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTguOTE2NSA4LjE5OTc4SDkuNzY2NVY3LjM0OTc4VjUuNjQ5NzhWNC43OTk3OEg4LjkxNjVINC44MzMxN0gzLjk4MzE3VjUuNjQ5NzhWNy4zNDk3OFY4LjE5OTc4SDQuODMzMTdIOC45MTY1Wk0xLjAxNjUgMS42NjY2MkMxLjAxNjUgMS41ODM3OCAxLjA4MzY2IDEuNTE2NjMgMS4xNjY1IDEuNTE2NjNIMTcuODMzMkMxNy45MTYgMS41MTY2MyAxNy45ODMyIDEuNTgzNzggMTcuOTgzMiAxLjY2NjYzVjE4LjMzMzNDMTcuOTgzMiAxOC40MTYxIDE3LjkxNiAxOC40ODMzIDE3LjgzMzIgMTguNDgzM0gxLjE2NjVDMS4wODM2NiAxOC40ODMzIDEuMDE2NSAxOC40MTYxIDEuMDE2NSAxOC4zMzMzVjEuNjY2NjJaTTIxLjIxNDMgNS4wMjIyNEMyMS4yMTQzIDQuOTYzOTYgMjEuMjQ4IDQuOTEwOTYgMjEuMzAwOCA0Ljg4NjMxTDI0Ljc2OTYgMy4yNjc1NkMyNC44NjkgMy4yMjExNSAyNC45ODMgMy4yOTM3NSAyNC45ODMgMy40MDM0OUwyNC45ODMgMTYuNTk2NEMyNC45ODMgMTYuNzA2MiAyNC44NjkgMTYuNzc4OCAyNC43Njk2IDE2LjczMjRMMjEuMzAwOCAxNS4xMTM2QzIxLjI0OCAxNS4wODkgMjEuMjE0MyAxNS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Cjwvc3ZnPgo=";function ye(t){const{localUserInfo:e}=g.useContext(ge),n=g.useMemo(()=>e==null?void 0:e.isVideoAvailable,[e==null?void 0:e.isVideoAvailable]),[a,i]=g.useState(!0),{t:r}=ie(),[{deviceList:o}]=On(ae.CAMERA),l=g.useCallback(async()=>{i(!1),n?await V.closeCamera():await V.openCamera("localVideo"),i(!0)},[n]),c=v([J["btn-icon-container"],{mobile:!w.isPC,pc:w.isPC,close:!n,disabled:!a}]),u=M.jsx(F,{url:n?lc:cc,className:J["btn-icon"]}),I=r(n?"camera enabled":"camera disabled");return M.jsx(Ta,{content:M.jsx(Ea,{deviceType:ae.CAMERA}),disabled:!w.isPC||!((o==null?void 0:o.length)>0),teleported:!1,children:M.jsx("div",{style:{display:"flex"},children:M.jsx(he,{className:J[`${Ce}-btn`],iconClassName:c,icon:u,loading:!a,onClick:l,...t,children:I})})})}const Mc={"hangup-icon-container":"_hangup-icon-container_7aq1c_1"};function re(t){const e=g.useContext(Li),{t:n}=ie(),a=()=>V.hangup(),i=v([J["btn-icon-container"],Mc["hangup-icon-container"],{mobile:!w.isPC,pc:w.isPC}]),r=M.jsx(F,{className:J["btn-icon"],url:mi});return M.jsx(he,{loading:!e,className:J[`${Ce}-btn`],iconClassName:i,icon:r,onClick:a,...t,children:n("hangup")})}const uc="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAiIGhlaWdodD0iMzAiIHZpZXdCb3g9IjAgMCAzMCAzMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0yMS4xMzUxIDIuMzcyODZMMjIuMDAwNyAyLjg3MzU5QzI2LjE4MjcgNS4yOTI3NSAyOSA5LjgxNjc5IDI5IDE1QzI5IDIwLjE4MzMgMjYuMTgyNyAyNC43MDczIDIyLjAwMDcgMjcuMTI2NUw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YgMjEuNDU0OEgyLjI1MTY0QzEuNjU5OSAyMS40NTQ4IDEuMTgwMjEgMjAuOTc1MSAxLjE4MDIxIDIwLjM4MzRWOS42MzQ1OUMxLjE4MDIxIDkuMDQ0MDEgMS42NTgxIDguNTY0NzkgMi4yNDg2NyA4LjU2MzE2TDguMzIyMTUgOC41NDYzNkM4LjU3MzQyIDguNTQ1NjcgOC44MTY0NiA4LjQ1NjY4IDkuMDA4NzcgOC4yOTQ5NkwxNC41OTQ2IDMuNTk3NjFDMTUuMjkxNiAzLjAxMTUxIDE2LjM1NTYgMy41MDY5OSAxNi4zNTU2IDQuNDE3NjNWNi40ODI4OFoiIGZpbGw9IndoaXRlIi8+CjxwYXRoIGQ9Ik00LjU2MzcyIDI1LjI2ODNMMjIuMTQwNyA0LjA4MzY1IiBzdHJva2U9IndoaXRlIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJzcXVhcmUiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPC9zdmc+Cg==";function et(t){const[{deviceList:e,currentDeviceId:n}]=On(ae.SPEAKER),{isMuteSpeaker:a}=g.useContext(P),{t:i}=ie(),r=u=>{if(w.isPC){const I=e.find(N=>N.deviceId===u);return I?I.label:i("speaker enabled")}else return i(a?"speaker disabled":"speaker enabled")},o=g.useCallback(()=>{a?V.unMuteSpeaker():V.muteSpeaker()},[a]),l=M.jsx(F,{url:a?Ic:uc,className:J["btn-icon"]}),c=v([J["btn-icon-container"],{mobile:!w.isPC,pc:w.isPC,close:a}]);return M.jsx(Ta,{trigger:w.isPC?"hover":"click",disabled:!(e.length>0&&w.isPC),content:M.jsx(Ea,{deviceType:ae.SPEAKER}),teleported:!1,children:M.jsx("div",{style:{display:"flex"},children:M.jsx(he,{className:J[`${Ce}-btn`],iconClassName:c,icon:l,onClick:o,...t,children:r(n)})})})}const Xi="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjgiIGhlaWdodD0iMjgiIHZpZXdCb3g9I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gMTAuNjY4NSAxMy45MDkxIDEwLjY2ODVDMTMuMzMwMiAxMC42Njg1IDEyLjc3OTcgMTAuNzc5IDEyLjI3NzEgMTAuOTc4OEwxMS43MjI5IDkuNTg0OTVaTTguMjUgMTkuOTE4NVYxNC45MTg1SDkuNzVDOS43NSAxNy4yNTMgMTEuNjgwNyAxOS4xNjg1IDE0LjA5MDkgMTkuMTY4NUMxNC42Njk4IDE5LjE2ODUgMTUuMjIwMyAxOS4wNTc5IDE1LjcyMjkgMTguODU4MUwxNi4yNzcxIDIwLjI1MkMxNS42MDA2IDIwLjUyMDkgMTQuODYyMyAyMC42Njg1IDE0LjA5MDkgMjAuNjY4NUMxMi4zNzIzIDIwLjY2ODUgMTAuODIxMiAxOS45MzU2IDkuNzUgMTguNzY2VjE5LjkxODVIOC4yNVoiIGZpbGw9IndoaXRlIi8+Cjwvc3ZnPgo=";function gc(t){const e=()=>V.switchCamera(),n=M.jsx(F,{url:Xi});return M.jsx(he,{style:{width:"28px",height:"28px"},iconSize:"28px",icon:n,onClick:e,...t})}const dc="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjgiIGhlaWdodD0iMjgiIHZpZXdCb3g9IjAgMCAyOCAyOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xIDJDMSAxLjQ0NzcyIDEuNDQ3NzIgMSAyIDFIMjZDMjYuNTUyMyAxIDI3IDEuNDQ3NzIgMjcgMlYyNkMyNyAyNi41NTIzIDI2LjU1MjMgMjcgMjYgMjdIMkMxLjQ0NzcyIDI3IDEgMjYuNTUyMyAxIDI2VjJaTTE1LjY1MjggMTYuODAxM0MxNy4xMzg1IDE2LjE2MDggMTguMTc4NiAxNC42ODMgMTguMTc4NiAxMi45NjI0QzE4LjE3ODYgMTAuNjU0NiAxNi4zMDc4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0LjYwNzEgNC44MjEyOVpNMjAuMjY4IDEuMzkyODZMMTYuMzcyNiA1LjI4ODIxTDE1LjI1NjQgNC4xNzE5OUwxOC4wMzU1IDEuMzkyODZIMjAuMjY4WiIgZmlsbD0iIzIyMjYyRSIvPgo8L3N2Zz4K",Ac={"background-blur-icon-container":"_background-blur-icon-container_1g5wa_1",close:"_close_1g5wa_9"};function vt(){const{enableVirtualBackground:t}=g.useContext(P),[e,n]=g.useState(!0),{t:a}=ie(),i=M.jsx(F,{url:t?Nc:dc,className:J["btn-icon"]}),r=v([J["btn-icon-container"],Ac["background-blur-icon-container"],{mobile:!w.isPC,pc:w.isPC,close:!t}]),o=async()=>{n(!1),await V.setBlurBackground(!t),n(!0)};return M.jsx(he,{loading:!e,className:J[`${Ce}-btn`],iconClassName:r,icon:i,onClick:o,children:a("virtual-background")})}const ha={pc:{singleCall:{video:{calling:[[{component:ye,name:"camera",props:{}},{component:Ie,name:"microphone",props:{}},{component:re}]],accept:[[{component:ye,name:"camera",props:{}},{component:Ke,name:""},{component:Xe,name:""}]],connected:[[{component:ye,name:"camera",props:{}},{component:Ie,name:"microphone",props:{}},{component:et,name:"speaker",props:{}},{component:re,name:""}]]},audio:{calling:[[{component:Ie,name:"microphone",props:{}},{component:re,name:""}]],accept:[[{component:Ke,name:""},{component:Xe,name:""}]],connected:[[{component:Ie,name:"microphone",props:{}},{component:et,name:"speaker",props:{}},{component:re,name:""}]]}},groupCall:{video:{calling:[[{component:ye,name:"camera",props:{}},{component:Ie,name:"microphone",props:{}},{component:re,name:""}]],accept:[[{component:Ke,name:""},{component:Xe,name:""}]],connected:[[{component:ye,name:"camera",props:{}},{component:Ie,name:"microphone",props:{}},{component:re,name:""}]]},audio:{calling:[[{component:ye,name:"camera",props:{}},{component:Ie,name:"microphone",props:{}},{component:re,name:""}]],accept:[[{component:Ke,name:""},{component:Xe,name:""}]],connected:[[{component:ye,name:"camera",props:{}},{component:Ie,name:"microphone",props:{}},{component:re,name:""}]]}}},h5:{singleCall:{video:{calling:[[{component:re,props:{showText:!1}}]],accept:[[{component:Ke,name:"",props:{showText:!1}},{component:Xe,name:"",props:{showText:!1}}]],connected:[[{component:Ie,name:"microphone",props:{}},{component:et,name:"speaker",props:{}},{component:ye,name:"camera",props:{}}],[{component:vt,name:"backgroundBlur",props:{style:{justifyContent:"center",alignItems:"center",visibility:"hidden"}}},{component:re,name:"",props:{showText:!1}},{component:gc,name:"switchCamera",props:{style:{justifyContent:"center",alignItems:"center"}}}]]},audio:{calling:[[{component:re,name:"",props:{showText:!1}}]],accept:[[{component:Ke,name:""},{component:Xe,name:""}]],connected:[[{component:Ie,name:"microphone",props:{}},{component:re,name:""},{component:et,name:"speaker",props:{}}]]}},groupCall:{video:{calling:[[{component:Ie,name:"microphone",props:{}},{component:et,name:"speaker",props:{}},{component:ye,name:"camera",props:{}}],[{component:re,name:"",props:{showText:!1}}]],accept:[[{component:Ke,name:"",props:{showText:!1}},{component:Xe,name:"",props:{showText:!1}}]],connected:[[{component:Ie,name:"microphone",props:{}},{component:et,name:"speaker",props:{}},{component:ye,name:"camera",props:{}}],[{component:re,name:"",props:{showText:!1}}]]},audio:{calling:[[{component:Ie,name:"microphone",props:{}},{component:et,name:"speaker",props:{}},{component:ye,name:"camera",props:{}}],[{component:re,name:"",props:{showText:!1}}]],accept:[[{component:Ke,name:"",props:{showText:!1}},{component:Xe,name:"",props:{showText:!1}}]],connected:[[{component:Ie,name:"microphone",props:{}},{component:et,name:"speaker",props:{}},{component:ye,name:"camera",props:{}}],[{component:re,name:"",props:{showText:!1}}]]}}}},Dc=500;function Ca(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError("Expected a function");const n=(...a)=>{const i=e?e.apply(this,a):a[0],{cache:r}=n;if(r.has(i))return r.get(i);const o=t.apply(this,a);return n.cache=r.set(i,o)||r,o};return n.cache=new(Ca.Cache||Map),n}Ca.Cache=Map;function Tc(t){const e=Ca(t,n=>{const{cache:a}=e;return a.size===Dc&&a.clear(),n});return e}const Ec=".".charCodeAt(0),hc=/\\(\\)?/g,Cc=RegExp(`[^.[\\]]+|\\[(?:([^"'][^[]*)|(["'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))`,"g"),Ki=Tc(t=>{const e=[];return t.charCodeAt(0)===Ec&&e.push(""),t.replace(Cc,(n,a,i,r)=>{let o=n;i?o=r.replace(hc,"$1"):a&&(o=a.trim()),e.push(o)}),e});function Lc(t){return t==null||typeof t=="string"&&t.trim().length===0?!0:Array.isArray(t)||typeof t=="object"?Object.keys(t).length===0:!1}function La(t,e,n,a,i){Object.keys(t).forEach(r=>{const o=t[r],l=Lc(n)?r:`${n}.${r}`;if(typeof o=="object")if(Array.isArray(o))for(let c=0;c<o.length;c++){const u=`${l}[${c}]`;La(o[c],e,u,a,i)}else La(o,e,l,a,i);else if(e(o)){const c=typeof i=="function"?i({key:o,value:l}):l;a.push(c)}})}function en(t){if(typeof t!="object"||t===null)return t;const e=Array.isArray(t)?[]:{};return Object.keys(t).forEach(n=>{e[n]=en(t[n])}),e}function $i(t,e){if(typeof t!="object"||t===null)return t;if(e in t){const n=en(t);return delete n[e],n}}const pc="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAiIGhlaWdodD0iMzAiIHZpZXdCb3g9IjAgMCAzMCAzMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBvcGFjaXR5PSIwLjUiIGN4PSIxNSIgY3k9IjE1IiByPSIxNSIgZmlsbD0iIzIyMjYyRSIgc3R5bGU9ImZpbGw6IzIyMjYyRTtmaWxsOmNvbG9yKGRpc3BsYXktcDMgMC4xMzMzIDAuMTQ5MCAwLjE4MDQpO2ZpbGwtb3BhY2l0eToxOyIvPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD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uMDY1OCAxMi45MzU4QzE5LjIxOCAxMi43NzU2IDE5LjQ3MTEgMTIuNzY5MSAxOS42MzEzIDEyLjkyMTNMMjAuNTAxMyAxMy43NDc3QzIwLjY2MTUgMTMuODk5OSAyMC42NjggMTQuMTUzMSAyMC41MTU4IDE0LjMxMzJMMTUuNDgzMyAxOS42MTFDMTUuMjIwNCAxOS44ODc2IDE0Ljc3OTQgMTkuODg3NiAxNC41MTY2IDE5LjYxMUw5LjQ4Mzc1IDE0LjMxMzNaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K",Qe={"button-panel-h5-container":"_button-panel-h5-container_f9br3_1",groupcall:"_groupcall_f9br3_16","show-panel-background":"_show-panel-background_f9br3_19",open:"_open_f9br3_27","singlecall-panel":"_singlecall-panel_f9br3_30","groupcall-panel":"_groupcall-panel_f9br3_36",close:"_close_f9br3_41","toggle-panel-btn":"_toggle-panel-btn_f9br3_45"};function yc(t){const{buttons:e=[]}=t,{isGroupCall:n}=g.useContext(P),{focusItem:a}=g.useContext(ra),[i,r]=g.useState(!0);g.useEffect(()=>{r(a===null)},[a,r]);const[o,l]=g.useState(!1);g.useEffect(()=>{a!==null&&!o&&l(!0)},[a,o]);const c=v([Qe["button-panel-h5-container"],{[Qe.open]:i,[Qe.groupcall]:n,[Qe["show-panel-background"]]:o}]),u=()=>e.map((D,E)=>{const C=E===0?D.filter(p=>{var S;return((S=p==null?void 0:p.props)==null?void 0:S.show)!==!1}):D,L=()=>C.map((p,S)=>{const j=C.length>2?S===0?"start":S===C.length-1?"end":"center":"center",{component:y,props:f}=p,U={};if((f==null?void 0:f.show)===!1){if(E===0)return;U.visibility="hidden"}const m=12/C.length,k=$i(f,"show"),Q=g.createElement(y,{isMobile:!0,...k});return M.jsx(we,{style:{overflow:"visible",...f==null?void 0:f.style,...U},span:m,justify:j,children:Q},`col-${S}`)});return M.jsx(St,{style:{marginTop:E===1?"2.4vh":0},children:L()},`row-${E}`)}),I=()=>{r(!i)},N=()=>{const D=i?M.jsx(F,{url:jc}):M.jsx(F,{url:pc});return M.jsx(he,{className:v([Qe["toggle-panel-btn"],{[Qe.close]:!i}]),icon:D,onClick:I})},A=()=>{const D=e.flat(),E=()=>D.map((C,L)=>{const{component:p,props:S}=C;if((S==null?void 0:S.show)===!1)return;const j=g.createElement(p,{isMobile:!0,size:"small",showText:!1}),y=12/D.length;return M.jsx(we,{style:{overflow:"visible"},span:y,children:j},L)});return M.jsx(St,{children:E()})},T=()=>n&&!i?A():u();return M.jsxs("div",{className:c,children:[o&&N(),M.jsx("div",{className:v([{[Qe["groupcall-panel"]]:n,[Qe["singlecall-panel"]]:!n,[Qe.close]:!i}]),children:T()})]})}const fc={"button-panel-pc-container":"_button-panel-pc-container_x4npp_1"};function Sc(t){const{buttons:e=[]}=t,n=()=>e.map((a,i)=>{const r=()=>a.map((o,l)=>{const{component:c,props:u}=o;if((u==null?void 0:u.show)===!1)return;const I=$i(t,"show"),N=g.createElement(c,{...I}),A=Math.floor(12/a.length);return M.jsx(we,{style:{justifyContent:"center"},span:A,children:N},l)});return M.jsx(St,{children:r()},i)});return M.jsx("div",{className:fc["button-panel-pc-container"],children:n()})}function Oc(){const{button:t}=g.useContext(Ft),e=[];function n(i){return Object.keys(t).includes(i)}function a({key:i,value:r}){var c;const o=r.split(".");let l=o.slice(0,o.length-1);return l.push("props"),l.push("show"),l=l.join("."),{path:l,value:(c=t[i])==null?void 0:c.show}}return La(ha,n,"",e,a),e}function tn(t,e,n){if(typeof t!="object")return;const a=Ki(e);let i=t;for(let r=0;r<a.length;r++){if(i==null)return;const o=a[r];r!==a.length-1?i=i==null?void 0:i[o]:Object.assign(i,{[o]:n})}}function nn(t,e,n){if(typeof t!="object")return;const a=Ki(e);let i=t;for(let r=0;r<a.length;r++){if(i==null)return;const o=a[r];r!==a.length-1?i=i==null?void 0:i[o]:Array.isArray(i)&&i.splice(o,0,n)}}const mc=!w.isPC;function qi(){const{callStatus:t,isGroupCall:e,callRole:n,callType:a,isShowEnableVirtualBackground:i}=g.useContext(P),{localUserInfo:r}=g.useContext(ge),o=Oc(),[l,c]=g.useState(h.getData(d.CALL,s.IS_CLICKABLE)),u=g.useMemo(()=>l,[l]),I=D=>{c(D)};g.useEffect(()=>(h.watch(d.CALL,{[s.IS_CLICKABLE]:I},{notifyRangeWhenWatch:s.MYSELF}),()=>{h.unwatch(d.CALL,{[s.IS_CLICKABLE]:I})}),[]);const N=D=>{const E=en(D);return nn(E,"pc.singleCall.video.calling[0][2]",{component:vt,props:{}}),nn(E,"pc.singleCall.video.accept[0][1]",{component:vt,props:{}}),nn(E,"pc.singleCall.video.connected[0][3]",{component:vt,props:{}}),nn(E,"pc.groupCall.video.calling[0][2]",{component:vt,props:{}}),nn(E,"pc.groupCall.video.connected[0][2]",{component:vt,props:{}}),E},A=(D,E,C)=>{const L=en(D);return E?(tn(L,"h5.singleCall.video.connected[1][2].props.show",!0),C&&N(L)):(tn(L,"h5.singleCall.video.connected[1][2].props.show",!1),C&&(tn(L,"pc.singleCall.video.connected[0][3].props.show",!1),tn(L,"pc.groupCall.video.connected[0][2].props.show",!1))),L},T=g.useMemo(()=>{var j,y,f;let D=en(ha);i&&(D=N(ha)),t===x.CONNECTED&&(D=A(D,r==null?void 0:r.isVideoAvailable,i)),o==null||o.forEach(U=>{const{path:m,value:k}=U;tn(D,m,k)});const E=w.isPC?"pc":"h5",C=e?"groupCall":"singleCall",L=a===G.AUDIO?"audio":"video",p=t===x.CALLING?n===X.CALLER?"calling":"accept":t,S=((f=(y=(j=D==null?void 0:D[E])==null?void 0:j[C])==null?void 0:y[L])==null?void 0:f[p])||[];return S.length===1&&S.unshift([]),S},[e,a,t,n,i,o,r==null?void 0:r.isVideoAvailable]);return M.jsx(Li.Provider,{value:u,children:mc?M.jsx(yc,{buttons:T}):M.jsx(Sc,{buttons:T})})}const le="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCIgdmlld0JveD0iMCAwIDEwMCAxMDA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DYuNTc3OSA1My4zMzQ3IDQ3LjEyNSA1MC45OTk5IDQ3LjEyNUM0OC42NjUgNDcuMTI1IDQ2LjQ1NzkgNDYuNTc3OSA0NC40OTk5IDQ1LjYwNDhaIiBmaWxsPSIjRDVFMEYyIi8+CjxkZWZzPgo8bGluZWFyR3JhZGllbnQgaWQ9InBhaW50MF9saW5lYXJfMjk2NF8xNzU4IiB4MT0iNzMuNSIgeTE9Ii01IiB4Mj0iNSIgeTI9Ijk4LjUiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KPHN0b3Agc3RvcC1jb2xvcj0iIzdDODU5QiIvPgo8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiM3NDdDOTAiLz4KPC9saW5lYXJHcmFkaWVudD4KPC9kZWZzPgo8L3N2Zz4K",nd="";function er(t){const{shape:e="round",image:n,icon:a,children:i,className:r,style:o}=t,l=I=>{I.target.src=le},c=()=>typeof n=="string"?M.jsx("img",{src:n,onError:l}):a||i,u=v([r,`${B}-avatar-container`,`${B}-avatar-shape-${e}`]);return M.jsx("div",{className:u,style:o,children:c()})}const zc="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9Im5vbmUiIHZpZXdCb3g9IjAgMCAxNiAxNiIgY2xhc3M9ImRlc2lnbi1pY29uZm9udCI+CiAgICA8cGF0aAogICAgICBmaWxsLXJ1bGU9ImV2ZW5vZGQiCiAgICAgIGNsaXAtcnVsZT0iZXZlbm9kZCIKICAgICAgZD0iTTQuODI4MjUgMTIuNDc1OUM1LjU4MTcyIDEyLjkwNDggNi40Mzc0MiAxMy4xOTc4IDcuMzMzMzMgMTMuMjk2N1YxNS4wMDAyQzcuMzMzMzMgMTUuMTg0MyA3LjQ4MjU3IDE1LjMzMzUgNy42NjY2NyAxNS4zMzM1SDguMzMzMzNDOC41MTc0MyAxNS4zMzM1IDguNjY2NjcgMTUuMTg0MyA4Lj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LjMzMjE1TDIuOTkzNTIgNy4zMjUwMkMzLjE3ODM5IDcuMzIzMDMgMy4zMjk1NiA3LjQ3MTg4IDMuMzMwNDMgNy42NTY3NkwzLjMzMzMzIDguMjczNDdDMy4zMzMzMyA4LjY2MTkxIDMuNDM3MSA5LjA1NjcyIDMuNjI0NTUgOS40MzY5OFoiCiAgICAgIGZpbGw9IiNmZmYiCiAgICAvPgogICAgPHJlY3QgeD0iLjYwOTg2MyIgeT0iMTMuNDUxNCIgd2lkdGg9IjE5LjAxMjciIGhlaWdodD0iMS41IiByeD0iLjc1IiB0cmFuc2Zvcm09InJvdGF0ZSgtNDUgLjYwOTg2MyAxMy40NTE0KSIgZmlsbD0iI0ZFM0M0NCIgLz4KICA8L3N2Zz4=",wc={"microphone-container":"_microphone-container_nczz7_1"};function tr(t){const{close:e,style:n={},volume:a=0}=t,i=()=>M.jsx(F,{url:zc}),r=()=>M.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",className:"",viewBox:"0 0 16 16",children:[M.jsxs("g",{children:[a>0&&M.jsx("path",{d:"M8.62462 7.17395C8.90076 7.17395 9.12462 7.38807 9.12462 7.65221C9.12462 7.89434 8.93651 8.09444 8.69246 8.12611L8.62462 8.13047H7.3335C7.05735 8.13047 6.8335 7.91635 6.8335 7.65221C6.8335 7.41009 7.0216 7.20998 7.26565 7.17832L7.3335 7.17395H8.62462Z",fill:"#43D92B"}),a>5&&M.jsx("path",{d:"M8.62462 5.57971C8.90076 5.57971 9.12462 5.79384 9.12462 6.05797C9.12462 6.3001 8.93651 6.5002 8.69246 6.53187L8.62462 6.53623H7.3335C7.05735 6.53623 6.8335 6.32211 6.8335 6.05797C6.8335 5.81585 7.0216 5.61575 7.26565 5.58408L7.3335 5.57971H8.62462Z",fill:"#43D92B"}),a>10&&M.jsx("path",{d:"M8.62462 3.98547C8.90076 3.98547 9.12462 4.1996 9.12462 4.46373C9.12462 4.70586 8.93651 4.90596 8.69246 4.93763L8.62462 4.942H7.3335C7.05735 4.942 6.8335 4.72787 6.8335 4.46373C6.8335 4.22161 7.0216 4.02151 7.26565 3.98984L7.3335 3.98547H8.62462Z",fill:"#43D92B"})]}),M.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.3301 3.45938C11.2517 1.89175 9.77808 0.658081 8 0.658081C6.17253 0.658081 4.66667 1.96123 4.66667 3.59077V7.72539L4.66994 7.85678C4.7483 9.42442 6.22192 10.6581 8 10.6581C9.82747 10.6581 11.3333 9.35493 11.3333 7.72539V3.59077L11.3301 3.45938ZM6.0035 3.54179C6.06337 2.69234 6.92083 1.99146 8.00016 1.99146C9.11947 1.99146 10.0002 2.74521 10.0002 3.63675V7.67949L9.99682 7.77446C9.93695 8.62391 9.07949 9.32479 8.00016 9.32479C6.88086 9.32479 6.00016 8.57103 6.00016 7.67949V3.63675L6.0035 3.54179ZM8.33333 15.3333C8.51743 15.3333 8.66667 15.1841 8.66667 15V13.2964C11.5402 12.9793 14 10.6655 14 8.27322V7.68092C14 7.49682 13.8508 7.34758 13.6667 7.34758H13C12.8159 7.34758 12.6667 7.49682 12.6667 7.68092V8.27322L12.6634 8.39309C12.5681 10.1524 10.3982 11.9979 8.00396 12C8.00264 12 8.00132 12 8 12C7.99868 12 7.99736 12 7.99604 12C5.54737 11.9979 3.33333 10.0675 3.33333 8.27322L3.33043 7.65652C3.32956 7.47164 3.17839 7.32278 2.99352 7.32477L2.32975 7.33191C2.14706 7.33387 2 7.48252 2 7.66522V8.27322L2.00292 8.4162C2.09825 10.757 4.51708 12.9856 7.33333 13.2964V15C7.33333 15.1841 7.48257 15.3333 7.66667 15.3333H8.33333Z",fill:"#fff"})]});return M.jsx("div",{className:wc["microphone-container"],style:n,children:e?i():r()})}const Ne={"overlay-stream-container":"_overlay-stream-container_1aqie_1",blur:"_blur_1aqie_7",pc:"_pc_1aqie_30","user-info-container":"_user-info-container_1aqie_30",avatar:"_avatar_1aqie_49",float:"_float_1aqie_53",small:"_small_1aqie_57",username:"_username_1aqie_65",nick:"_nick_1aqie_72",mobile:"_mobile_1aqie_96",tip:"_tip_1aqie_153"};function xt(t){const{avatar:e,username:n,isMobile:a,isSmall:i,blur:r=!0,theme:o="circle",children:l,className:c,tip:u="",volume:I,isMute:N=!1,showAvatar:A=!0,showUsername:T=!0,showOverlayer:D,showBackground:E=!0,showLoading:C=!0,showVolumn:L=!1,style:p={},showTip:S=!0,background:j="",fit:y,onError:f}=t,{isFloat:U}=g.useContext(P),m=v([c,Ne["overlay-stream-container"],{[Ne.mobile]:a,[Ne.pc]:!a}]),k=Q=>{f==null||f(Q)};return M.jsx("div",{className:m,style:p,children:M.jsxs(ia,{showLoading:C,size:40,theme:o,showOverlayer:!1,children:[M.jsxs("div",{className:Ne["user-info-container"],children:[A&&M.jsx(er,{className:v([Ne.avatar,{[Ne.small]:i,[Ne.float]:U}]),image:e}),T&&M.jsxs("div",{className:Ne.username,children:[M.jsx("div",{className:v([Ne.nick,{[Ne.small]:i,[Ne.float]:U}]),children:n}),L&&M.jsx(tr,{volume:I,close:N,style:{marginLeft:"10px"}})]}),S&&M.jsx("div",{className:Ne.tip,children:u}),l]}),E&&M.jsx(Ti,{showOverlayer:D,className:v({[Ne.blur]:r}),background:j,fit:y,defaultSrc:le,onError:k})]})})}function an(){const{viewBackground:t}=g.useContext(Ft);return t}const Uc={"singlecall-waiting-container":"_singlecall-waiting-container_pmvxi_1"};function vc(t){const{avatar:e,username:n,userId:a}=t,{localUserInfo:i}=g.useContext(ge),r=an(),[o,l]=g.useState(r[a]||e),[c,u]=g.useState(!r[a]),[I,N]=g.useState(r[a]?"fill":"cover");return g.useEffect(()=>{l(r[a]||e||le),u(!i.isVideoAvailable&&!r[a]),N(r[a]?"fill":"cover")},[r,a]),M.jsx(xt,{className:Uc["singlecall-waiting-container"],showLoading:!1,avatar:e||le,username:n,showAvatar:!w.isPC,background:o,showBackground:!i.isVideoAvailable,isMobile:!w.isPC,showOverlayer:c,fit:I})}const Id="";function xc(t,e){for(let n=0;n<t.length;n++)if(t[n]!==e)return t[n]}const nr=g.createContext({bigWindow:null});function bc(t){const{bigWindow:e,className:n,isMobile:a,showSmallWindow:i=!0,onToggle:r,children:o=null}=t,[l,c]=g.useState(e);g.useEffect(()=>{c(e)},[e]);const u=v([`${B}-togglewindow-container`,n]),I=g.useMemo(()=>{const N=[],A=[];o&&g.Children.map(o,D=>{var E,C;if(((E=D==null?void 0:D.type)==null?void 0:E.displayName)==="ToggleWindowItem"&&N.length<2&&(N.push(g.cloneElement(D,{isMobile:a,showSmallWindow:i})),A.push((C=D==null?void 0:D.props)==null?void 0:C.value)),N.length>=2)return null});const T=()=>{c(D=>{const E=xc(A,D);return r==null||r(E),E})};return N.map(D=>g.cloneElement(D,{updateBigWindow:T}))},[o]);return M.jsx("div",{className:u,children:M.jsx(nr.Provider,{value:{bigWindow:l},children:I})})}const gd="";function pa(t){const{children:e,value:n,isMobile:a,updateBigWindow:i,showSmallWindow:r,className:o}=t,{bigWindow:l}=g.useContext(nr),c=l!==n,u=v([o,`${B}-togglewindowitem-container`,`${B}-togglewindowitem-${c?"small":"big"}`,{mobile:a}]),I=()=>{let N;return!r&&c&&(N="hidden"),M.jsx("div",{onClick:()=>c&&i(),className:u,style:{visibility:N},children:e})};return M.jsx(M.Fragment,{children:I()})}pa.displayName="ToggleWindowItem";const dd="";function _c(t){const{maxWidth:e,truncated:n,lineClamp:a,children:i,className:r}=t,o=v([r,`${Ce}-text`]),l={maxWidth:e,textOverflow:n?"ellipsis":"auto",WebkitLineClamp:a};return M.jsx("span",{style:l,className:o,children:i})}const kc="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjgiIGhlaWdodD0iMjgiIHZpZXdCb3g9IjAgMCAyOCAyOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgZmlsdGVyPSJ1cmwoI2ZpbHRlcjBfZF8xMjRfNjQ3KSI+CjxjaXJjbGUgY3g9IjE0IiBje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GUlJpbTRBd2piRTdnTzBPckFUQVp6YnlDSUR3QnRmYkUzc0RZd3JPODlPdy8xN0VCTkVjUU9WSlZPM3lDZ0NPS2JxVlFEc1FNQlJSQTdVRlU2ZllPQUlvaHZwbElOeEE0RUZFSHNRRlhwOUEwQ2lpQyttVW8xRURzUVVBU3hBMVdsMHpjSUtJTDRaaXJWUU94QVFCSEVEbFNWVHQ4Z29BamltNmxVQTdFREFVVVFPMUJWT24yRGdDS0liNlpTRGNRT0JCUkI3RUJWNmZRTkFvb2d2cGxLTlJBN0VGQUVzUU5WcGRNM0NDaUMrR1lxMVVEc1FPRC9BYk1acm01TFdDOU9BQUFBQUVsRlRrU3VRbUNDIi8+CjwvZGVmcz4KPC9zdmc+",ja={"stream-info-container-h5":"_stream-info-container-h5_182j9_1",single:"_single_182j9_20"};function Bc(t){const{isSpkear:e,isMute:n,displayName:a,showUserName:i=!1,showSwitchCamera:r=!1,showNetWorkStatus:o=!1}=t,{isGroupCall:l}=g.useContext(P),c=v([ja["stream-info-container-h5"],{[ja.group]:l,[ja.single]:!l}]),u={width:"30px",height:"30px",background:"#22262e80",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center"},I=async()=>{await V.switchCamera()},N=()=>M.jsxs(St,{children:[M.jsxs(we,{span:6,align:"center",justify:"start",children:[i&&M.jsx(_c,{maxWidth:"100px",truncated:!0,children:a}),e&&M.jsx(F,{style:{width:"fit-content"},url:kc}),n&&M.jsx(F,{style:{width:"fit-content"},url:Vc})]}),M.jsxs(we,{span:6,align:"center",justify:"end",children:[o&&M.jsx(F,{style:{width:"24px",height:"24px",marginRight:"12px"},url:ar}),r&&M.jsx(he,{showText:!1,icon:M.jsx(F,{url:Xi}),style:u,iconSize:"15px",isStopPropagation:!0,onClick:I})]})]}),A=()=>M.jsx(St,{children:M.jsx(we,{span:12,justify:"start",children:n&&M.jsx(F,{style:{width:"fit-content"},url:Qc})})});return M.jsx("div",{className:c,children:l?N():A()})}const ya={"stream-info-container-pc":"_stream-info-container-pc_fw50h_1","stream-info-content":"_stream-info-content_fw50h_23",nick:"_nick_fw50h_39","stream-info-netWork":"_stream-info-netWork_fw50h_43"};function Yc(t){const{isMute:e,displayName:n,volume:a,isMe:i,showNetWorkStatus:r=!1}=t,{t:o}=ie();return M.jsxs("div",{className:ya["stream-info-container-pc"],children:[M.jsxs("div",{className:ya["stream-info-content"],children:[M.jsx(tr,{volume:a,close:e}),M.jsx("div",{className:ya.nick,children:n}),i&&M.jsx("div",{children:o("you")})]}),M.jsx("div",{className:"stream-info-netWork",children:r&&M.jsx(F,{style:{width:"20px",height:"20px"},url:ar})})]})}function ir(t){return w.isPC?M.jsx(Yc,{...t}):M.jsx(Bc,{...t})}var Rc=typeof global=="object"&&global&&global.Object===Object&&global;const rr=Rc;var Gc=typeof self=="object"&&self&&self.Object===Object&&self,Zc=rr||Gc||Function("return this")();const Be=Zc;var Fc=Be.Symbol;const bt=Fc;var or=Object.prototype,Pc=or.hasOwnProperty,Wc=or.toString,rn=bt?bt.toStringTag:void 0;function Hc(t){var e=Pc.call(t,rn),n=t[rn];try{t[rn]=void 0;var a=!0}catch{}var i=Wc.call(t);return a&&(e?t[rn]=n:delete t[rn]),i}var Jc=Object.prototype,Xc=Jc.toString;function Kc(t){return Xc.call(t)}var $c="[object Null]",qc="[object Undefined]",sr=bt?bt.toStringTag:void 0;function on(t){return t==null?t===void 0?qc:$c:sr&&sr in Object(t)?Hc(t):Kc(t)}function sn(t){return t!=null&&typeof t=="object"}var eM=Array.isArray;const xn=eM;function lr(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var tM="[object AsyncFunction]",nM="[object Function]",aM="[object GeneratorFunction]",iM="[object Proxy]";function cr(t){if(!lr(t))return!1;var e=on(t);return e==nM||e==aM||e==tM||e==iM}var rM=Be["__core-js_shared__"];const fa=rM;var Mr=function(){var t=/[^.]+$/.exec(fa&&fa.keys&&fa.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function oM(t){return!!Mr&&Mr in t}var sM=Function.prototype,lM=sM.toString;function Mt(t){if(t!=null){try{return lM.call(t)}catch{}try{return t+""}catch{}}return""}var cM=/[\\^$.*+?()[\]{}|]/g,MM=/^\[object .+?Constructor\]$/,uM=Function.prototype,IM=Object.prototype,gM=uM.toString,dM=IM.hasOwnProperty,NM=RegExp("^"+gM.call(dM).replace(cM,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function AM(t){if(!lr(t)||oM(t))return!1;var e=cr(t)?NM:MM;return e.test(Mt(t))}function DM(t,e){return t==null?void 0:t[e]}function _t(t,e){var n=DM(t,e);return AM(n)?n:void 0}var TM=_t(Be,"WeakMap");const Sa=TM;var EM=9007199254740991,hM=/^(?:0|[1-9]\d*)$/;function CM(t,e){var n=typeof t;return e=e??EM,!!e&&(n=="number"||n!="symbol"&&hM.test(t))&&t>-1&&t%1==0&&t<e}function ur(t,e){return t===e||t!==t&&e!==e}var LM=9007199254740991;function Ir(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=LM}function pM(t){return t!=null&&Ir(t.length)&&!cr(t)}var jM=Object.prototype;function yM(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||jM;return t===n}function fM(t,e){for(var n=-1,a=Array(t);++n<t;)a[n]=e(n);return a}var SM="[object Arguments]";function gr(t){return sn(t)&&on(t)==SM}var dr=Object.prototype,OM=dr.hasOwnProperty,mM=dr.propertyIsEnumerable,zM=gr(function(){return arguments}())?gr:function(t){return sn(t)&&OM.call(t,"callee")&&!mM.call(t,"callee")};const wM=zM;function UM(){return!1}var Nr=typeof b=="object"&&b&&!b.nodeType&&b,Ar=Nr&&typeof module=="object"&&module&&!module.nodeType&&module,vM=Ar&&Ar.exports===Nr,Dr=vM?Be.Buffer:void 0,xM=Dr?Dr.isBuffer:void 0,bM=xM||UM;const Oa=bM;var _M="[object Arguments]",kM="[object Array]",VM="[object Boolean]",QM="[object Date]",BM="[object Error]",YM="[object Function]",RM="[object Map]",GM="[object Number]",ZM="[object Object]",FM="[object RegExp]",PM="[object Set]",WM="[object String]",HM="[object WeakMap]",JM="[object ArrayBuffer]",XM="[object DataView]",KM="[object Float32Array]",$M="[object Float64Array]",qM="[object Int8Array]",eu="[object Int16Array]",tu="[object Int32Array]",nu="[object Uint8Array]",au="[object Uint8ClampedArray]",iu="[object Uint16Array]",ru="[object Uint32Array]",W={};W[KM]=W[$M]=W[qM]=W[eu]=W[tu]=W[nu]=W[au]=W[iu]=W[ru]=!0,W[_M]=W[kM]=W[JM]=W[VM]=W[XM]=W[QM]=W[BM]=W[YM]=W[RM]=W[GM]=W[ZM]=W[FM]=W[PM]=W[WM]=W[HM]=!1;function ou(t){return sn(t)&&Ir(t.length)&&!!W[on(t)]}function su(t){return function(e){return t(e)}}var Tr=typeof b=="object"&&b&&!b.nodeType&&b,ln=Tr&&typeof module=="object"&&module&&!module.nodeType&&module,lu=ln&&ln.exports===Tr,ma=lu&&rr.process,cu=function(){try{var t=ln&&ln.require&&ln.require("util").types;return t||ma&&ma.binding&&ma.binding("util")}catch{}}();const Er=cu;var hr=Er&&Er.isTypedArray,Mu=hr?su(hr):ou;const Cr=Mu;var uu=Object.prototype,Iu=uu.hasOwnProperty;function gu(t,e){var n=xn(t),a=!n&&wM(t),i=!n&&!a&&Oa(t),r=!n&&!a&&!i&&Cr(t),o=n||a||i||r,l=o?fM(t.length,String):[],c=l.length;for(var u in t)(e||Iu.call(t,u))&&!(o&&(u=="length"||i&&(u=="offset"||u=="parent")||r&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||CM(u,c)))&&l.push(u);return l}function du(t,e){return function(n){return t(e(n))}}var Nu=du(Object.keys,Object);const Au=Nu;var Du=Object.prototype,Tu=Du.hasOwnProperty;function Eu(t){if(!yM(t))return Au(t);var e=[];for(var n in Object(t))Tu.call(t,n)&&n!="constructor"&&e.push(n);return e}function hu(t){return pM(t)?gu(t):Eu(t)}var Cu=_t(Object,"create");const cn=Cu;function Lu(){this.__data__=cn?cn(null):{},this.size=0}function pu(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var ju="__lodash_hash_undefined__",yu=Object.prototype,fu=yu.hasOwnProperty;function Su(t){var e=this.__data__;if(cn){var n=e[t];return n===ju?void 0:n}return fu.call(e,t)?e[t]:void 0}var Ou=Object.prototype,mu=Ou.hasOwnProperty;function zu(t){var e=this.__data__;return cn?e[t]!==void 0:mu.call(e,t)}var wu="__lodash_hash_undefined__";function Uu(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=cn&&e===void 0?wu:e,this}function ut(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var a=t[e];this.set(a[0],a[1])}}ut.prototype.clear=Lu,ut.prototype.delete=pu,ut.prototype.get=Su,ut.prototype.has=zu,ut.prototype.set=Uu;function vu(){this.__data__=[],this.size=0}function bn(t,e){for(var n=t.length;n--;)if(ur(t[n][0],e))return n;return-1}var xu=Array.prototype,bu=xu.splice;function _u(t){var e=this.__data__,n=bn(e,t);if(n<0)return!1;var a=e.length-1;return n==a?e.pop():bu.call(e,n,1),--this.size,!0}function ku(t){var e=this.__data__,n=bn(e,t);return n<0?void 0:e[n][1]}function Vu(t){return bn(this.__data__,t)>-1}function Qu(t,e){var n=this.__data__,a=bn(n,t);return a<0?(++this.size,n.push([t,e])):n[a][1]=e,this}function Ye(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var a=t[e];this.set(a[0],a[1])}}Ye.prototype.clear=vu,Ye.prototype.delete=_u,Ye.prototype.get=ku,Ye.prototype.has=Vu,Ye.prototype.set=Qu;var Bu=_t(Be,"Map");const Mn=Bu;function Yu(){this.size=0,this.__data__={hash:new ut,map:new(Mn||Ye),string:new ut}}function Ru(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function _n(t,e){var n=t.__data__;return Ru(e)?n[typeof e=="string"?"string":"hash"]:n.map}function Gu(t){var e=_n(this,t).delete(t);return this.size-=e?1:0,e}function Zu(t){return _n(this,t).get(t)}function Fu(t){return _n(this,t).has(t)}function Pu(t,e){var n=_n(this,t),a=n.size;return n.set(t,e),this.size+=n.size==a?0:1,this}function It(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var a=t[e];this.set(a[0],a[1])}}It.prototype.clear=Yu,It.prototype.delete=Gu,It.prototype.get=Zu,It.prototype.has=Fu,It.prototype.set=Pu;function Wu(t,e){for(var n=-1,a=e.length,i=t.length;++n<a;)t[i+n]=e[n];return t}function Hu(){this.__data__=new Ye,this.size=0}function Ju(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}function Xu(t){return this.__data__.get(t)}function Ku(t){return this.__data__.has(t)}var $u=200;function qu(t,e){var n=this.__data__;if(n instanceof Ye){var a=n.__data__;if(!Mn||a.length<$u-1)return a.push([t,e]),this.size=++n.size,this;n=this.__data__=new It(a)}return n.set(t,e),this.size=n.size,this}function tt(t){var e=this.__data__=new Ye(t);this.size=e.size}tt.prototype.clear=Hu,tt.prototype.delete=Ju,tt.prototype.get=Xu,tt.prototype.has=Ku,tt.prototype.set=qu;function eI(t,e){for(var n=-1,a=t==null?0:t.length,i=0,r=[];++n<a;){var o=t[n];e(o,n,t)&&(r[i++]=o)}return r}function tI(){return[]}var nI=Object.prototype,aI=nI.propertyIsEnumerable,Lr=Object.getOwnPropertySymbols,iI=Lr?function(t){return t==null?[]:(t=Object(t),eI(Lr(t),function(e){return aI.call(t,e)}))}:tI;const rI=iI;function oI(t,e,n){var a=e(t);return xn(t)?a:Wu(a,n(t))}function pr(t){return oI(t,hu,rI)}var sI=_t(Be,"DataView");const za=sI;var lI=_t(Be,"Promise");const wa=lI;var cI=_t(Be,"Set");const Ua=cI;var jr="[object Map]",MI="[object Object]",yr="[object Promise]",fr="[object Set]",Sr="[object WeakMap]",Or="[object DataView]",uI=Mt(za),II=Mt(Mn),gI=Mt(wa),dI=Mt(Ua),NI=Mt(Sa),gt=on;(za&&gt(new za(new ArrayBuffer(1)))!=Or||Mn&&gt(new Mn)!=jr||wa&&gt(wa.resolve())!=yr||Ua&&gt(new Ua)!=fr||Sa&&gt(new Sa)!=Sr)&&(gt=function(t){var e=on(t),n=e==MI?t.constructor:void 0,a=n?Mt(n):"";if(a)switch(a){case uI:return Or;case II:return jr;case gI:return yr;case dI:return fr;case NI:return Sr}return e});const mr=gt;var AI=Be.Uint8Array;const zr=AI;var DI="__lodash_hash_undefined__";function TI(t){return this.__data__.set(t,DI),this}function EI(t){return this.__data__.has(t)}function kn(t){var e=-1,n=t==null?0:t.length;for(this.__data__=new It;++e<n;)this.add(t[e])}kn.prototype.add=kn.prototype.push=TI,kn.prototype.has=EI;function hI(t,e){for(var n=-1,a=t==null?0:t.length;++n<a;)if(e(t[n],n,t))return!0;return!1}function CI(t,e){return t.has(e)}var LI=1,pI=2;function wr(t,e,n,a,i,r){var o=n&LI,l=t.length,c=e.length;if(l!=c&&!(o&&c>l))return!1;var u=r.get(t),I=r.get(e);if(u&&I)return u==e&&I==t;var N=-1,A=!0,T=n&pI?new kn:void 0;for(r.set(t,e),r.set(e,t);++N<l;){var D=t[N],E=e[N];if(a)var C=o?a(E,D,N,e,t,r):a(D,E,N,t,e,r);if(C!==void 0){if(C)continue;A=!1;break}if(T){if(!hI(e,function(L,p){if(!CI(T,p)&&(D===L||i(D,L,n,a,r)))return T.push(p)})){A=!1;break}}else if(!(D===E||i(D,E,n,a,r))){A=!1;break}}return r.delete(t),r.delete(e),A}function jI(t){var e=-1,n=Array(t.size);return t.forEach(function(a,i){n[++e]=[i,a]}),n}function yI(t){var e=-1,n=Array(t.size);return t.forEach(function(a){n[++e]=a}),n}var fI=1,SI=2,OI="[object Boolean]",mI="[object Date]",zI="[object Error]",wI="[object Map]",UI="[object Number]",vI="[object RegExp]",xI="[object Set]",bI="[object String]",_I="[object Symbol]",kI="[object ArrayBuffer]",VI="[object DataView]",Ur=bt?bt.prototype:void 0,va=Ur?Ur.valueOf:void 0;function QI(t,e,n,a,i,r,o){switch(n){case VI:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case kI:return!(t.byteLength!=e.byteLength||!r(new zr(t),new zr(e)));case OI:case mI:case UI:return ur(+t,+e);case zI:return t.name==e.name&&t.message==e.message;case vI:case bI:return t==e+"";case wI:var l=jI;case xI:var c=a&fI;if(l||(l=yI),t.size!=e.size&&!c)return!1;var u=o.get(t);if(u)return u==e;a|=SI,o.set(t,e);var I=wr(l(t),l(e),a,i,r,o);return o.delete(t),I;case _I:if(va)return va.call(t)==va.call(e)}return!1}var BI=1,YI=Object.prototype,RI=YI.hasOwnProperty;function GI(t,e,n,a,i,r){var o=n&BI,l=pr(t),c=l.length,u=pr(e),I=u.length;if(c!=I&&!o)return!1;for(var N=c;N--;){var A=l[N];if(!(o?A in e:RI.call(e,A)))return!1}var T=r.get(t),D=r.get(e);if(T&&D)return T==e&&D==t;var E=!0;r.set(t,e),r.set(e,t);for(var C=o;++N<c;){A=l[N];var L=t[A],p=e[A];if(a)var S=o?a(p,L,A,e,t,r):a(L,p,A,t,e,r);if(!(S===void 0?L===p||i(L,p,n,a,r):S)){E=!1;break}C||(C=A=="constructor")}if(E&&!C){var j=t.constructor,y=e.constructor;j!=y&&"constructor"in t&&"constructor"in e&&!(typeof j=="function"&&j instanceof j&&typeof y=="function"&&y instanceof y)&&(E=!1)}return r.delete(t),r.delete(e),E}var ZI=1,vr="[object Arguments]",xr="[object Array]",Vn="[object Object]",FI=Object.prototype,br=FI.hasOwnProperty;function PI(t,e,n,a,i,r){var o=xn(t),l=xn(e),c=o?xr:mr(t),u=l?xr:mr(e);c=c==vr?Vn:c,u=u==vr?Vn:u;var I=c==Vn,N=u==Vn,A=c==u;if(A&&Oa(t)){if(!Oa(e))return!1;o=!0,I=!1}if(A&&!I)return r||(r=new tt),o||Cr(t)?wr(t,e,n,a,i,r):QI(t,e,c,n,a,i,r);if(!(n&ZI)){var T=I&&br.call(t,"__wrapped__"),D=N&&br.call(e,"__wrapped__");if(T||D){var E=T?t.value():t,C=D?e.value():e;return r||(r=new tt),i(E,C,n,a,r)}}return A?(r||(r=new tt),GI(t,e,n,a,i,r)):!1}function _r(t,e,n,a,i){return t===e?!0:t==null||e==null||!sn(t)&&!sn(e)?t!==t&&e!==e:PI(t,e,n,a,_r,i)}function kr(t,e){return _r(t,e)}function Vr(){const[t,e]=g.useState(h.getData(d.CALL,s.LOCAL_USER_INFO)),[n,a]=g.useState(h.getData(d.CALL,s.REMOTE_USER_INFO_LIST)),[i,r]=g.useState({}),o=u=>{t.volume!==u.volume&&e(u)},l=u=>{if(u.length!==n.length){a(u);return}kr(u,n)||a(u)},c={[s.LOCAL_USER_INFO]:o,[s.REMOTE_USER_INFO_LIST]:l};return g.useEffect(()=>(h.watch(d.CALL,c,{notifyRangeWhenWatch:s.MYSELF}),()=>{h.unwatch(d.CALL,c)}),[c]),g.useEffect(()=>{const u={};[t,...n].forEach(I=>{I.isAudioAvailable&&(u[I.domId]=I.volume)}),Object.keys(u).length!==0&&r(u)},[t,n]),i}const WI={"player-container":"_player-container_dhuca_1"};function Qr(t){const e=Vr(),{isGroupCall:n}=g.useContext(P),{streamInfo:a={},showStreamInfo:i=!0,isSpkear:r,style:o,renderAudioStream:l,className:c,loading:u,renderLoading:I,isLargeView:N=!1}=t,{domId:A,isAudioAvailable:T,displayUserInfo:D}=a,E=v([c,WI["player-container"]]),C=g.useMemo(()=>n?w.isPC?!0:!!N:!1,[N,n]);return M.jsxs("div",{id:A,style:o,className:E,children:[!u&&(l==null?void 0:l({volume:e[A],isMute:!T})),u&&(I==null?void 0:I()),i&&M.jsx(ir,{volume:e[A],isSpkear:r,isMute:!T,displayName:D,showUserName:C})]})}function HI(){const[t,e]=g.useState(h.getData(d.CALL,s.NETWORK_STATUS)),n=i=>{e(i)},a={[s.NETWORK_STATUS]:n};return g.useEffect(()=>(h.watch(d.CALL,a,{notifyRangeWhenWatch:s.MYSELF}),()=>{h.unwatch(d.CALL,a)}),[]),t}const JI={"pusher-container":"_pusher-container_1ncng_1"},Br=g.memo(t=>{var f,U;const{loading:e=!0,renderLoading:n,renderAudioStream:a,isSpkear:i,className:r,showStreamInfo:o=!0,isLargeView:l=!1}=t,{localUserInfo:{domId:c,nick:u,userId:I,isAudioAvailable:N,isVideoAvailable:A}}=g.useContext(ge),T=g.useContext(Ft),{isGroupCall:D}=g.useContext(P),E=HI(),C=g.useMemo(()=>{if(!E)return;const m=E.find(k=>k.userId===I);return!!(m&&m.quality>=4)},[E]),L=u||I,p=Vr(),S=v([r,JI["pusher-container"]]),j=g.useMemo(()=>D?w.isPC?!0:!!l:!1,[l,D]),y=!w.isPC&&A&&D&&l&&((U=(f=T==null?void 0:T.button)==null?void 0:f.switchCamera)==null?void 0:U.show)!==!1;return M.jsxs("div",{id:c,className:S,children:[!e&&(a==null?void 0:a()),e&&(n==null?void 0:n()),o&&M.jsx(ir,{volume:p[c],isSpkear:i,isMute:!N,displayName:L,isMe:!0,showUserName:j,showSwitchCamera:y,showNetWorkStatus:C})]},c)});function XI(t){const{avatar:e,username:n,isSmall:a,isVideoAvailable:i,userId:r,classnames:o,...l}=t,[c,u]=g.useState("hidden"),I=an(),{callType:N,isFloat:A}=g.useContext(P),T=g.useMemo(()=>N===G.AUDIO,[N]),[D,E]=g.useState(!I[r]),[C,L]=g.useState(I[r]?"fill":"cover"),[p,S]=g.useState(I[r]||e),[j,y]=g.useState(!1),f=v([o]);g.useEffect(()=>{u(T&&!a||!T&&!i?"":"hidden"),j||(E((T||!i)&&!I[r]),L(I[r]?"fill":"cover"),S(I[r]||e||le))},[A,a,T,i,I]);const U=()=>{y(!0),L("cover")};return M.jsx(xt,{className:f,showLoading:!1,avatar:e||le,showAvatar:!w.isPC,username:n,showVolumn:w.isPC&&N===G.AUDIO,isMobile:!w.isPC,isSmall:a,background:p,showOverlayer:D,fit:C,style:{visibility:c,zIndex:1},...l,onError:U})}function KI(){const{layoutMode:t}=g.useContext(Ft),{remoteList:e}=g.useContext(ge),{callStatus:n}=g.useContext(P),[a,i]=g.useState(be.LOCAL);return g.useEffect(()=>{var o;if(n===x.CALLING)return;if([Yt.RemoteInLargeView,Yt.LocalInLargeView].includes(t)){i(t);return}(o=e==null?void 0:e[0])!=null&&o.isEnter&&i(be.REMOTE)},[e,t,n]),[a,i]}const dt={"single-stream-container":"_single-stream-container_1hpym_1",pc:"_pc_1hpym_11","single-call-audio-stream":"_single-call-audio-stream_1hpym_23",float:"_float_1hpym_27"};function $I(){const{remoteList:t,localUserInfo:e}=g.useContext(ge),{callType:n,callStatus:a,isFloat:i}=g.useContext(P),[r,o]=KI(),l=g.useMemo(()=>n===G.AUDIO,[n]),[c,u]=g.useState(!1);g.useEffect(()=>{var D;(D=t==null?void 0:t[0])!=null&&D.isEnter&&u(!l)},[t,l]);function I(D){return M.jsx(XI,{...D})}const N=g.useMemo(()=>i?"#float":"#single-container",[i]),A=w.isPC&&a===x.CONNECTED&&!l&&!i,T=v([dt["single-stream-container"],{[dt.mobile]:!w.isPC,[dt.pc]:w.isPC,[dt.float]:i}]);return M.jsx("div",{id:"single-container",className:T,children:M.jsx(qt,{attach:N,style:{width:"100%",height:"100%",position:"relative"},children:M.jsxs(bc,{isMobile:!w.isPC,bigWindow:r,showSmallWindow:c,onToggle:o,children:[M.jsx(pa,{value:be.LOCAL,children:M.jsx(Br,{loading:a===x.CALLING&&(n===G.VIDEO?!(e!=null&&e.isVideoAvailable):!0),renderAudioStream:()=>{var D,E,C;return I({isVideoAvailable:e.isVideoAvailable,avatar:l?(D=t==null?void 0:t[0])==null?void 0:D.avatar:e.avatar,username:l?(E=t==null?void 0:t[0])==null?void 0:E.displayUserInfo:e.nick||e.userId,isSmall:r!==be.LOCAL,userId:l?(C=t==null?void 0:t[0])==null?void 0:C.userId:e.userId,classnames:dt["single-call-audio-stream"]})},showStreamInfo:A})},be.LOCAL),M.jsx(pa,{value:be.REMOTE,className:dt.remote,children:t.length!==0&&a===x.CONNECTED&&M.jsx(Qr,{renderAudioStream:D=>I({isVideoAvailable:t[0].isVideoAvailable,avatar:t[0].avatar,username:t[0].displayUserInfo,isSmall:r!==be.REMOTE,userId:t[0].userId,classnames:dt["single-call-audio-stream"],...D}),showStreamInfo:w.isPC&&!l&&!i,streamInfo:t[0]})},be.REMOTE)]})})})}const xa={"single-container":"_single-container_1l7n2_1","singlecall-tip":"_singlecall-tip_1l7n2_5",mobile:"_mobile_1l7n2_12",pulldown:"_pulldown_1l7n2_1"},qI=g.memo(()=>{const{remoteList:t}=g.useContext(ge),{callRole:e,callStatus:n,isFloat:a}=g.useContext(P),i=v([xa["single-container"],{[xa.mobile]:!w.isPC}]),r=()=>{if(!a)return M.jsx(Oi,{})},o=()=>{var c,u,I;if(n===x.CALLING&&!a)return M.jsx(vc,{avatar:(c=t==null?void 0:t[0])==null?void 0:c.avatar,username:(u=t==null?void 0:t[0])==null?void 0:u.displayUserInfo,callRole:e,userId:(I=t==null?void 0:t[0])==null?void 0:I.userId})},l=()=>{if(!a)return M.jsx(qi,{})};return M.jsxs("div",{className:i,children:[r(),o(),M.jsx($I,{}),M.jsx(yi,{className:xa["singlecall-tip"]}),l()]})}),Nt={"groupcall-waiting-container":"_groupcall-waiting-container_1xkt1_1","waiting-mobile":"_waiting-mobile_1xkt1_5",tip:"_tip_1xkt1_5","groupcall-info":"_groupcall-info_1xkt1_16","avatar-group":"_avatar-group_1xkt1_37","avatar-item":"_avatar-item_1xkt1_45"};function eg(t){const e=an(),{remoteList:n}=t,{t:a}=ie(),i=g.useContext(Ci),{avatar:r,userId:o,displayUserInfo:l}=i||{},[c,u]=g.useState(!e[o]),[I,N]=g.useState(e[o]?"fill":"cover"),[A,T]=g.useState(e[o]||r);g.useEffect(()=>{u(!e[o]),N(e[o]?"fill":"cover"),T(e[o]||r||le)},[e,o]);function D(){return M.jsx(xt,{className:v([Nt["groupcall-waiting-container"],Nt["waiting-mobile"]]),showLoading:!1,showAvatar:!0,blur:!0,tip:a("Invited group call"),showUsername:!0,username:l,avatar:r||le,theme:w.isPC?"circle":"dot",isMobile:!w.isPC,background:A,showOverlayer:c,fit:I,children:M.jsxs("div",{className:Nt["groupcall-info"],children:[M.jsxs("div",{className:Nt.tip,children:[n.length,a("people in the call"),":"]}),M.jsx("div",{className:Nt["avatar-group"],children:n==null?void 0:n.map(C=>M.jsx(er,{className:Nt["avatar-item"],image:C.avatar},C.userId))})]})})}function E(){return M.jsx(xt,{className:Nt["groupcall-waiting-container"],showLoading:!1,avatar:r||le,username:l,showAvatar:!w.isPC,isMobile:!w.isPC,tip:a("Invited group call"),background:A,showOverlayer:c,fit:I})}return w.isPC?M.jsx(E,{}):M.jsx(D,{})}function tg(t){const{isFloat:e}=g.useContext(P),n=100;let{rowHeight:a,unit:i="%",className:r,isMobile:o,onHandleFocusChange:l,enableFocus:c=!1,children:u}=t;const[I,N]=g.useState(null),A=g.useMemo(()=>{const L=u.length;if(L<=3)return[{x:0,y:0,w:6,h:6},{x:6,y:0,w:6,h:6},{x:3,y:6,w:6,h:6}];if(L===4)return[{x:0,y:0,w:6,h:6},{x:6,y:0,w:6,h:6},{x:0,y:6,w:6,h:6},{x:6,y:6,w:6,h:6}];const p=[{x:0,y:0,w:4,h:4}];for(let S=1;S<L;S++){const j=p[S-1].x+4===12;p[S]={x:p[S-1].x+4===12?0:p[S-1].x+4,y:p[S-1].y+(j?4:0),w:4,h:4}}return o||(L%3===1&&(p[L-1].x+=2),L%3===2&&(p[L-1].x+=2,p[L-2].x+=2)),p},[u,o]);function T(L){L===I?(N(null),l==null||l(null)):(N(L),l==null||l(L))}const D=n/12;a=D;const E=Object.keys(Array.from({length:A.length})),C=g.useMemo(()=>{const L=JSON.parse(JSON.stringify(A));let p,S;if(I!=null){if(E.length<5){const j=E.concat();j.splice(I,1),j.unshift(I)}else S=I%3,p=Math.floor(I/3);if(E.length<5){for(let y=0;y<L.length;y++){const f=L[y];y===0?(f.w+=6,f.h+=6):(f.x=(y-1)*4,f.y=12,f.w=4,f.h=4)}const j=L.shift();L.splice(I,0,j)}else{let j;S===0?(L[I+1]&&(L[I+1].x+=4),L[I+2]&&(L[I+2].y+=4),j={x:0,y:p*4,w:8,h:8}):S===2?(j={x:4,y:p*4,w:8,h:8},L[I-1].x=0,L[I-1].y+=4):S===1&&(j={x:4,y:p*4,w:8,h:8},L[I+1]&&(L[I+1].x=0,L[I+1].y+=4));const y=3-S;for(let f=I+y;f<L.length;f++){const U=L[f];U.y+=4}L[I]=j}return L}return L},[I,A]);return M.jsx("div",{className:r,children:u==null?void 0:u.map((L,p)=>{const{x:S,y:j,w:y,h:f}=C[p];let U={width:y*D+i,height:f*a+i,left:S*D+i,top:j*a+i,position:"absolute"};return e&&(U={width:"100%",height:"100%",left:"0px",top:"0px",position:"absolute"}),g.cloneElement(L,{style:U,updateFocusItem:()=>c&&T(p)})})})}const Ld="";function ba(t){const{index:e,children:n,className:a,style:i,updateFocusItem:r}=t,o=v([`${B}-gridplus-item-container`,a]);return M.jsx("div",{className:o,onClick:()=>r==null?void 0:r(e),style:{gridArea:`gridplus-item-${e}`,...i},children:n})}ba.displayname="GridPlusItem";function ng(t){const e=an(),{avatar:n,username:a,visible:i,userId:r}=t||{},[o,l]=g.useState(e[r]||n);return g.useEffect(()=>{l(e[r]||n||le)},[e,r]),M.jsx(xt,{showLoading:!1,showAvatar:!1,avatar:n||le,username:a,showUsername:w.isPC,isMobile:!w.isPC,showOverlayer:!1,blur:!1,background:o,style:{visibility:i?"":"hidden",zIndex:1}})}const ag=10;function Yr(){const[t,e]=g.useState(h.getData(d.CALL,s.LOCAL_USER_INFO)),[n,a]=g.useState(h.getData(d.CALL,s.REMOTE_USER_INFO_LIST)),[i,r]=g.useState([]),o=u=>{t.volume!==u.volume&&e(u)},l=u=>{if(u.length!==n.length){a(u);return}kr(u,n)||a(u)},c={[s.LOCAL_USER_INFO]:o,[s.REMOTE_USER_INFO_LIST]:l};return g.useEffect(()=>(h.watch(d.CALL,c,{notifyRangeWhenWatch:s.MYSELF}),()=>{h.unwatch(d.CALL,c)}),[]),g.useEffect(()=>{const u=[];[t,...n].forEach(I=>{I.isAudioAvailable&&I.volume>=ag&&u.push(I.domId)}),!(u.length===0&&i.length===0)&&r(u)},[t,n]),i}function ig(t){const{avatar:e,userId:n}=t||{},a=an(),[i,r]=g.useState(!a[n]),[o,l]=g.useState({objectFit:"cover"}),[c,u]=g.useState(a[n]||e||le),I={width:"100%",height:"100%"};g.useEffect(()=>{a[n]&&(l({objectFit:"fill"}),r(!1),u(a[n]||e||le))},[a,n]);const N=()=>{l({objectFit:"cover"}),r(!1),u(le)};return M.jsx(ia,{showOverlayer:i,theme:"dot",style:{zIndex:1,position:"absolute",top:0},children:M.jsx("img",{alt:"Failed to load the background image in loading",style:{...I,...o},src:c,onError:N})})}const me={"stream-container":"_stream-container_1n8ml_1",mobile:"_mobile_1n8ml_7",pc:"_pc_1n8ml_10",float:"_float_1n8ml_14","groupcall-gridplus-container":"_groupcall-gridplus-container_1n8ml_19",center:"_center_1n8ml_23","two-layout":"_two-layout_1n8ml_26",hidden:"_hidden_1n8ml_45",userinfo:"_userinfo_1n8ml_48"};function rg(){const{localUserInfo:t,remoteList:e}=g.useContext(ge),{callStatus:n,callType:a}=g.useContext(P),{focusItem:i,setFocusItem:r}=g.useContext(ra),{isFloat:o}=g.useContext(P),l=Yr(),c=g.useMemo(()=>n===x.CALLING&&(a===G.AUDIO&&!t.isAudioAvailable||a===G.VIDEO&&!t.isVideoAvailable),[t,n,a]);function u(T){return M.jsx(ig,{...T})}function I(T){return M.jsx(ng,{...T})}const N=g.useCallback(()=>e.map((T,D)=>M.jsx(ba,{index:D+1,children:M.jsx(Qr,{className:v({[me.hidden]:o&&!l.includes(T.domId)}),renderLoading:()=>u({avatar:T.avatar,username:T.displayUserInfo,userId:T.userId}),renderAudioStream:()=>I({avatar:T.avatar,username:T.displayUserInfo,visible:!T.isVideoAvailable,userId:T.userId}),loading:!T.isEnter,streamInfo:T,showStreamInfo:!o,isSpkear:l.includes(T.domId),isLargeView:i===D+1})},T.userId)),[e,l,i]),A=v([me["groupcall-gridplus-container"],{[me.pc]:w.isPC,[me.mobile]:!w.isPC,[me.float]:o,[me["two-layout"]]:e.length===1&&i===null&&!o}]);return M.jsx("div",{id:"group-container",className:v([me["stream-container"],{[me.mobile]:!w.isPC,[me.pc]:w.isPC,[me.float]:o}]),children:M.jsx(qt,{attach:o?"#float":"#group-container",style:{width:"100%",height:"100%",position:"relative"},children:M.jsxs(tg,{className:A,isMobile:!w.isPC,enableFocus:!w.isPC&&!o,unit:w.isPC?"%":"vw",onHandleFocusChange:r,children:[M.jsx(ba,{index:0,children:M.jsx(Br,{className:v({[me.hidden]:o&&!l.includes(t.domId)}),loading:c,showStreamInfo:!o,renderLoading:()=>u({avatar:t.avatar,username:t.nick||t.userId,userId:t.userId}),renderAudioStream:()=>I({avatar:t.avatar,username:t.nick||t.userId,visible:!t.isVideoAvailable,userId:t.userId}),isSpkear:l.includes(t.domId),isLargeView:i===0})},t.userId),...N()]})})})}const Rr={"group-container":"_group-container_bky89_1",mobile:"_mobile_bky89_5",pulldown:"_pulldown_bky89_1"};function og(){const{remoteList:t,localUserInfo:e}=g.useContext(ge),{callRole:n,callStatus:a,isFloat:i}=g.useContext(P),[r,o]=g.useState(null),l=g.useMemo(()=>({focusItem:r,setFocusItem:o}),[r,o]),c=()=>i?null:M.jsx(Oi,{}),u=()=>i?null:M.jsx(qi,{}),I=()=>a===x.CALLING&&n!==X.CALLER&&!i?M.jsx(eg,{remoteList:t,callRole:n}):null,N=()=>!i&&(n!==X.CALLER&&a===x.CONNECTED||n===X.CALLER)?M.jsx(xt,{blur:!0,showAvatar:!1,showLoading:!1,avatar:e.avatar||le,isMobile:!w.isPC}):null,A=v([Rr["group-container"],{[Rr.mobile]:!w.isPC}]);return M.jsx(ra.Provider,{value:l,children:M.jsxs("div",{className:A,children:[c(),I(),(n===X.CALLER||a===x.CONNECTED)&&M.jsx(rg,{}),u(),N()]})})}const wd="",sg=({customClass:t,customStyle:e})=>{const n=w.isPC,{isAITranscriberEnabled:a}=Ot(),[i,r]=g.useState(!1),o=()=>{r(!0)},l=()=>{r(!1)};return a?M.jsxs("div",{className:`
1
+ (function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode("._message-c2c-container_14m8l_1{display:flex;flex-direction:row;align-items:center;word-break:break-all}._message-c2c-container_14m8l_1 ._call-content_14m8l_7{padding-left:8px}._message-c2c-container_14m8l_1._c2c_14m8l_10{cursor:pointer}._message-c2c-container_14m8l_1 ._icon_14m8l_13{width:20px;height:20px}._message-group-container_hjjzg_1._group_hjjzg_1{cursor:default}.tk-time{font-family:PingFang SC;font-size:16px;font-weight:500;line-height:20px;letter-spacing:0px;text-align:center}[data-uikit-theme=light] .tk-time,[data-uikit-theme=dark] .tk-time{color:var(--uikit-basic-color-white-1);transition:background-color .3s ease-out,border-color .3s ease-out}.tk-row-container{width:100%;box-sizing:border-box;margin:0;padding:0;list-style:none;display:flex;flex-flow:row wrap;flex-direction:row;flex-wrap:nowrap}.tk-row-container.tk-row-justify-left{justify-content:flex-start}.tk-row-container.tk-row-justify-center{justify-content:center}.tk-row-container.tk-row-justify-right{justify-content:flex-end}.tk-col-container{display:flex;box-sizing:border-box;overflow:hidden;align-items:center}.tk-col-container.tk-col-justify-content-start{justify-content:flex-start}.tk-col-container.tk-col-justify-content-center{justify-content:center}.tk-col-container.tk-col-justify-content-end{justify-content:flex-end}.tk-col-container.tk-col-align-items-start{align-items:flex-start}.tk-col-container.tk-col-align-items-center{align-items:center}.tk-col-container.tk-col-align-items-end{align-items:flex-end}.tk-col-12{flex:0 0 100%;max-width:100%}.tk-col-push-12{left:100%}.tk-col-pull-12{right:100%}.tk-col-offset-12{margin-left:100%}.tk-col-order-12{order:12}.tk-col-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.tk-col-push-11{left:91.6666666667%}.tk-col-pull-11{right:91.6666666667%}.tk-col-offset-11{margin-left:91.6666666667%}.tk-col-order-11{order:11}.tk-col-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.tk-col-push-10{left:83.3333333333%}.tk-col-pull-10{right:83.3333333333%}.tk-col-offset-10{margin-left:83.3333333333%}.tk-col-order-10{order:10}.tk-col-9{flex:0 0 75%;max-width:75%}.tk-col-push-9{left:75%}.tk-col-pull-9{right:75%}.tk-col-offset-9{margin-left:75%}.tk-col-order-9{order:9}.tk-col-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.tk-col-push-8{left:66.6666666667%}.tk-col-pull-8{right:66.6666666667%}.tk-col-offset-8{margin-left:66.6666666667%}.tk-col-order-8{order:8}.tk-col-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.tk-col-push-7{left:58.3333333333%}.tk-col-pull-7{right:58.3333333333%}.tk-col-offset-7{margin-left:58.3333333333%}.tk-col-order-7{order:7}.tk-col-6{flex:0 0 50%;max-width:50%}.tk-col-push-6{left:50%}.tk-col-pull-6{right:50%}.tk-col-offset-6{margin-left:50%}.tk-col-order-6{order:6}.tk-col-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.tk-col-push-5{left:41.6666666667%}.tk-col-pull-5{right:41.6666666667%}.tk-col-offset-5{margin-left:41.6666666667%}.tk-col-order-5{order:5}.tk-col-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.tk-col-push-4{left:33.3333333333%}.tk-col-pull-4{right:33.3333333333%}.tk-col-offset-4{margin-left:33.3333333333%}.tk-col-order-4{order:4}.tk-col-3{flex:0 0 25%;max-width:25%}.tk-col-push-3{left:25%}.tk-col-pull-3{right:25%}.tk-col-offset-3{margin-left:25%}.tk-col-order-3{order:3}.tk-col-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.tk-col-push-2{left:16.6666666667%}.tk-col-pull-2{right:16.6666666667%}.tk-col-offset-2{margin-left:16.6666666667%}.tk-col-order-2{order:2}.tk-col-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.tk-col-push-1{left:8.3333333333%}.tk-col-pull-1{right:8.3333333333%}.tk-col-offset-1{margin-left:8.3333333333%}.tk-col-order-1{order:1}.tk-col-0{display:none}.tk-col-push-0{left:auto}.tk-col-pull-0{right:auto}.tk-col-offset-0{margin-left:0}.tk-col-order-0{order:0}.tk-circle-container{width:30px;height:30px;margin:0 auto;position:absolute;z-index:1}.tk-circle-container .tk-circle-loading{animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.tk-circle-container svg{height:100%;width:100%}.tk-dot-container{position:absolute;display:flex;justify-content:space-between;align-items:center;width:50px;height:50px;margin:0 auto;z-index:1}.tk-dot-container .dot:nth-child(1){opacity:0;animation-duration:.8s;animation-delay:0s;animation-play-state:running}.tk-dot-container .dot:nth-child(2){opacity:.083;animation-duration:.8s;animation-delay:.2666666667s;animation-play-state:running}.tk-dot-container .dot:nth-child(3){opacity:.1667;animation-duration:.8s;animation-delay:.5333333333s;animation-play-state:running}.tk-dot-container .dot{width:20%;height:20%;border-radius:50%;background-color:currentColor;animation-duration:1.8s;animation-name:dotting;animation-timing-function:linear;animation-iteration-count:infinite;animation-fill-mode:both}[data-uikit-theme=light] .tk-dot-container .dot,[data-uikit-theme=dark] .tk-dot-container .dot{color:var(--uikit-basic-color-white-1);transition:background-color .3s ease-out,border-color .3s ease-out}@keyframes dotting{0%{opacity:.15}1%{opacity:.8}33%{opacity:.8}34%{opacity:.15}to{opacity:.15}}.tk-overlayer-container,.tk-overlayer-container .overlay{position:absolute;width:100%;height:100%}[data-uikit-theme=light] .tk-overlayer-container .overlay,[data-uikit-theme=dark] .tk-overlayer-container .overlay{background-color:var(--uikit-basic-color-black-4);transition:background-color .3s ease-out,border-color .3s ease-out}.tk-loading-container{display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;width:100%;height:100%;background:none}.tk-loading-container.tk-loading-overlayer{position:absolute;width:100%;height:100%}[data-uikit-theme=light] .tk-loading-container.tk-loading-overlayer,[data-uikit-theme=dark] .tk-loading-container.tk-loading-overlayer{background-color:var(--uikit-basic-color-black-4);transition:background-color .3s ease-out,border-color .3s ease-out}.tk-btn-container{display:flex;transition-property:width,height,left,top;transition-duration:.3s;transition-timing-function:ease-in}[data-uikit-theme=light] .tk-btn-container,[data-uikit-theme=dark] .tk-btn-container{color:var(--uikit-basic-color-white-2);transition:background-color .3s ease-out,border-color .3s ease-out}.tk-btn-container.pc{cursor:pointer}.tk-btn-container.tk-flex-vertical{flex-direction:column;align-items:center}.tk-btn-container.tk-flex-vertical.tk-size-s.pc{height:auto;width:20px;font-size:12px;padding-left:0;padding-right:0}.tk-btn-container.tk-flex-vertical.tk-size-s.pc .tk-icon{width:20px;height:20px}.tk-btn-container.tk-flex-vertical.tk-size-s.pc .tk-icon .img{width:100%;height:100%}.tk-btn-container.tk-flex-vertical.tk-size-s.pc .tk-loading{font-size:20px}.tk-btn-container.tk-flex-vertical.tk-size-s.mobile{height:auto;width:40px;font-size:12px;padding-left:0;padding-right:0}.tk-btn-container.tk-flex-vertical.tk-size-s.mobile .tk-icon{width:40px;height:40px}.tk-btn-container.tk-flex-vertical.tk-size-s.mobile .tk-icon .img{width:100%;height:100%}.tk-btn-container.tk-flex-vertical.tk-size-s.mobile .tk-loading{font-size:40px}.tk-btn-container.tk-flex-vertical.tk-size-m.pc{height:auto;width:60px;font-size:12px;padding-left:0;padding-right:0}.tk-btn-container.tk-flex-vertical.tk-size-m.pc .tk-icon{width:60px;height:60px}.tk-btn-container.tk-flex-vertical.tk-size-m.pc .tk-icon .img{width:100%;height:100%}.tk-btn-container.tk-flex-vertical.tk-size-m.pc .tk-loading{font-size:60px}.tk-btn-container.tk-flex-vertical.tk-size-m.pc .tk-icon{width:40px;height:40px}.tk-btn-container.tk-flex-vertical.tk-size-m.mobile{height:auto;width:60px;font-size:12px;padding-left:0;padding-right:0}.tk-btn-container.tk-flex-vertical.tk-size-m.mobile .tk-icon .img{width:100%;height:100%}.tk-btn-container.tk-flex-vertical.tk-size-m.mobile .tk-loading{font-size:60px}.tk-btn-container.tk-flex-vertical.tk-size-m.mobile .tk-icon{width:60px;height:60px}.tk-btn-container.tk-flex-vertical.tk-size-l.pc{height:auto;width:60px;font-size:12px;padding-left:0;padding-right:0}.tk-btn-container.tk-flex-vertical.tk-size-l.pc .tk-icon{width:60px;height:60px}.tk-btn-container.tk-flex-vertical.tk-size-l.pc .tk-icon .img{width:100%;height:100%}.tk-btn-container.tk-flex-vertical.tk-size-l.pc .tk-loading{font-size:60px}.tk-btn-container.tk-flex-vertical.tk-size-l.mobile{height:auto;width:80px;font-size:12px;padding-left:0;padding-right:0}.tk-btn-container.tk-flex-vertical.tk-size-l.mobile .tk-icon{width:80px;height:80px}.tk-btn-container.tk-flex-vertical.tk-size-l.mobile .tk-icon .img{width:100%;height:100%}.tk-btn-container.tk-flex-vertical.tk-size-l.mobile .tk-loading{font-size:80px}.tk-btn-container.tk-flex-horizontal{flex-direction:row;align-items:center}.tk-btn-container.tk-flex-horizontal.tk-size-s{height:36px;width:12px;font-size:12px;padding-left:0;padding-right:0}.tk-btn-container.tk-flex-horizontal.tk-size-s .tk-icon{width:12px;height:12px}.tk-btn-container.tk-flex-horizontal.tk-size-s .tk-icon .img{width:100%;height:100%}.tk-btn-container.tk-flex-horizontal.tk-size-s .tk-loading{font-size:12px}.tk-btn-container.tk-flex-horizontal.tk-size-m{height:40px;width:16px;font-size:12px;padding-left:0;padding-right:0}.tk-btn-container.tk-flex-horizontal.tk-size-m .tk-icon{width:16px;height:16px}.tk-btn-container.tk-flex-horizontal.tk-size-m .tk-icon .img{width:100%;height:100%}.tk-btn-container.tk-flex-horizontal.tk-size-m .tk-loading{font-size:16px}.tk-btn-container.tk-flex-horizontal.tk-size-l{height:60px;width:18px;font-size:12px;padding-left:0;padding-right:0}.tk-btn-container.tk-flex-horizontal.tk-size-l .tk-icon{width:18px;height:18px}.tk-btn-container.tk-flex-horizontal.tk-size-l .tk-icon .img{width:100%;height:100%}.tk-btn-container.tk-flex-horizontal.tk-size-l .tk-loading{font-size:18px}.tk-btn-container.tk-ghost{background:none}.tk-btn-container .tk-content{margin-top:8px;text-align:center;line-height:15px;font-style:normal;font-weight:400;max-height:30px;overflow:hidden;-webkit-user-select:none;user-select:none}.tk-btn-container .tk-icon{transition-property:width,height,left,top;transition-duration:.3s;transition-timing-function:ease-in}.tk-btn-container .tk-icon.tk-size-s{height:36px;width:12px;font-size:12px;padding-left:0;padding-right:0}.tk-btn-container .tk-icon.tk-size-s .tk-icon{width:12px;height:12px}.tk-btn-container .tk-icon.tk-size-s .tk-icon .img{width:100%;height:100%}.tk-btn-container .tk-icon.tk-size-s .tk-loading{font-size:12px}.tk-btn-container .tk-icon.tk-size-m{height:40px;width:16px;font-size:12px;padding-left:0;padding-right:0}.tk-btn-container .tk-icon.tk-size-m .tk-icon{width:16px;height:16px}.tk-btn-container .tk-icon.tk-size-m .tk-icon .img{width:100%;height:100%}.tk-btn-container .tk-icon.tk-size-m .tk-loading{font-size:16px}.tk-btn-container .tk-icon.tk-size-l{height:60px;width:18px;font-size:12px;padding-left:0;padding-right:0}.tk-btn-container .tk-icon.tk-size-l .tk-icon{width:18px;height:18px}.tk-btn-container .tk-icon.tk-size-l .tk-icon .img{width:100%;height:100%}.tk-btn-container .tk-icon.tk-size-l .tk-loading{font-size:18px}._minimize-desk-container_gxy8f_1{margin-right:10px;width:20px!important;height:20px!important}._minimize-desk-container_gxy8f_1 .tk-icon{width:20px!important;height:20px!important}._minimize-mobile-container_gxy8f_11{margin-left:10px;width:24px!important;height:24px!important}._minimize-mobile-container_gxy8f_11 .tk-icon{width:24px!important;height:24px!important}.subtitle-content{position:relative;padding:10px 12px;color:#fff;background-color:#000000b8;opacity:.72;border-radius:8px;overflow-y:auto;overflow-x:hidden;bottom:10px;font-size:12px;scrollbar-width:none}.subtitle-content::-webkit-scrollbar{width:0;background:transparent}.subtitle-content:not(.subtitle-content--h5){width:640px;min-width:640px;height:180px;max-height:180px}.subtitle-content:not(.subtitle-content--h5) .subtitle-content__settings-btn{position:fixed;top:6px;right:6px;cursor:pointer;z-index:999}.subtitle-content--h5{position:relative;width:350px;min-width:350px;height:116px;max-height:116px;bottom:24px}.subtitle-content--h5 .subtitle-content__settings-btn{position:fixed;top:30%;right:4px;cursor:pointer;z-index:999;transform:translateY(-50%)}.sender-name{font-family:PingFang SC;font-weight:400;font-style:normal;font-size:12px;line-height:16px;letter-spacing:0px;color:#ffffffbf}.custom-select-wrapper{position:relative;width:100%}.custom-select{height:36px;padding:0 32px 0 12px;border:1px solid #DCDFE6;border-radius:4px;font-size:14px;color:#606266;background:#FFFFFF;cursor:pointer;display:flex;align-items:center;transition:all .3s}.custom-select:hover:not(.is-disabled){border-color:#c0c4cc}.custom-select.is-open{border-color:#409eff;box-shadow:0 0 0 2px #409eff33}.custom-select.is-disabled{background:#F5F7FA;color:#c0c4cc;cursor:not-allowed;border-color:#e4e7ed}.select-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.select-arrow{position:absolute;right:12px;top:50%;transform:translateY(-50%);pointer-events:none;transition:transform .3s}.select-arrow.is-open{transform:translateY(-50%) rotate(180deg)}.custom-options{position:absolute;top:100%;left:0;right:0;background:#FFFFFF;border:1px solid #DCDFE6;border-radius:4px;box-shadow:0 2px 12px #0000001a;z-index:1000;margin-top:4px;overflow:hidden;max-height:200px;overflow-y:auto}.custom-option{padding:8px 12px;font-size:14px;color:#606266;cursor:pointer;transition:all .2s}.custom-option:hover{background:#F5F7FA;color:#409eff}.custom-option.is-selected{color:#409eff;font-weight:500}.custom-option.is-selected:hover{background:#F5F7FA;color:#409eff}.custom-options::-webkit-scrollbar{width:4px}.custom-options::-webkit-scrollbar-track{background:transparent}.custom-options::-webkit-scrollbar-thumb{background:rgba(0,0,0,.1);border-radius:2px}.custom-options::-webkit-scrollbar-thumb:hover{background:rgba(0,0,0,.2)}.custom-options{scrollbar-width:thin;scrollbar-color:rgba(0,0,0,.1) transparent}.subtitle-settings-overlay-pc{position:absolute;top:50%;left:50%;width:489px;height:430px;transform:translate(-50%,-50%);display:flex;align-items:center;justify-content:center;z-index:1000;font-family:PingFang SC;box-shadow:0 2px 6px 0 var(--Black-8)}.subtitle-settings-modal-pc{background:white;border-radius:12px;width:480px;height:430px;overflow:hidden}.modal-header-pc{display:flex;align-items:center;justify-content:space-between;padding:24px 24px 10px}.modal-title-pc{font-size:16px;font-weight:600;color:#000000e5}.close-btn-pc{background:none;border:none;cursor:pointer;padding:4px;border-radius:4px;transition:background-color .2s}.close-btn-pc:hover{background-color:#f5f5f5}.modal-content-pc{padding:24px}.setting-item-pc{margin-bottom:24px}.setting-item-pc:last-child{margin-bottom:0}.setting-label-pc{display:block;font-size:14px;font-weight:400;color:#4f586b;margin-bottom:8px}.modal-footer-pc{display:flex;justify-content:flex-end;gap:20px;padding:16px 24px 24px}.btn-pc{width:72px;height:32px;font-size:14px;font-weight:500;cursor:pointer;border-radius:26px;transition:all .2s;border:1px solid transparent}.btn-pc.btn-cancel-pc{color:#1c66e5;border-color:#1c66e5;background-color:#fff}.btn-pc.btn-confirm-pc{background:#1C66E5;color:#fff}.subtitle-settings-overlay{position:fixed;top:0;left:0;right:0;bottom:0;width:100vw;height:100vh;background-color:#00000080;z-index:1000;display:flex;align-items:center;justify-content:center;font-family:PingFang SC}.subtitle-settings-modal{background-color:#fff;border-radius:12px;width:90%;max-width:400px;max-height:80vh;display:flex;flex-direction:column;overflow:hidden;animation:modalSlideIn .3s ease-out}@keyframes modalSlideIn{0%{opacity:0;transform:scale(.9) translateY(-20px)}to{opacity:1;transform:scale(1) translateY(0)}}.modal-header{text-align:center;padding:20px 20px 16px}.modal-title{font-size:18px;font-weight:500;color:#333;margin:0}.modal-content{flex:1;overflow-y:auto;padding:16px 0}.modal-footer{display:flex;gap:12px;padding:16px 20px 20px}.btn{flex:1;height:44px;border-radius:10px;border:none;font-size:16px;font-weight:500;cursor:pointer;transition:all .2s}.btn.btn-cancel{color:#1c66e5;border:1px solid #1C66E5;background-color:#fff}.btn.btn-confirm{background-color:#1677ff;color:#fff}.setting-group{margin-bottom:12px}.setting-group:last-child{margin-bottom:0}.group-title{font-size:13px;color:#666;padding:0 20px 8px;margin-bottom:2px}.group-content{background:white;border-radius:8px;margin:0 16px;overflow:hidden;border:1px solid #f0f0f0}.setting-section{border-bottom:1px solid #f0f0f0}.setting-section:last-child{border-bottom:none}.section-header{display:flex;align-items:center;justify-content:space-between;padding:16px;cursor:pointer;transition:background-color .2s}.section-header:active{background-color:#f8f8f8}.section-title{font-size:16px;color:#333;font-weight:400}.section-value{display:flex;align-items:center;font-size:14px;color:#666;gap:4px}.arrow-icon{flex-shrink:0}.toggle-switch{width:44px;height:24px;background-color:#ccc;border-radius:12px;position:relative;cursor:pointer;transition:background-color .3s}.toggle-switch.active{background-color:#1677ff}.toggle-slider{width:20px;height:20px;background-color:#fff;border-radius:50%;position:absolute;top:2px;left:2px;transition:transform .3s;box-shadow:0 2px 4px #0003}.toggle-switch.active .toggle-slider{transform:translate(20px)}.language-selector-overlay{position:fixed;top:0;left:0;right:0;bottom:0;width:100%;height:100vh;background-color:#00000080;z-index:1100;display:flex;flex-direction:column;justify-content:flex-end;overflow:hidden}.language-selector{max-height:70vh;display:flex;flex-direction:column;background-color:#fff;border-radius:16px 16px 0 0;padding-bottom:env(safe-area-inset-bottom);transform:translateY(0);animation:slideUp .3s ease-out}@keyframes slideUp{0%{transform:translateY(100%)}to{transform:translateY(0)}}.selector-header{text-align:center;padding:16px 16px 12px;border-bottom:1px solid #e5e5e5;background:white;border-radius:16px 16px 0 0}.selector-title{font-size:12px;font-weight:400;color:#0006;margin:0}.language-list{flex:1;overflow-y:auto;padding:0 16px 16px;max-height:50vh}.language-item{font-family:PingFang SC;font-weight:400;font-style:Regular;font-size:16px;leading-trim:NONE;line-height:100%;letter-spacing:0px;text-align:center;text-transform:capitalize;display:flex;align-items:center;justify-content:center;padding:16px 0;border-bottom:1px solid #f0f0f0;cursor:pointer;transition:background-color .2s}.language-item:active{background-color:#f8f8f8}.language-item.selected{color:#1677ff}.language-item span{font-size:16px;color:inherit}.language-item:last-child{border-bottom:none}.check-icon{flex-shrink:0}.ai-transcriber-switch{display:flex;align-items:center;gap:8px;padding:8px 12px;border-radius:20px;color:#fff;font-size:14px;font-weight:400;font-family:PingFang SC;cursor:pointer}.ai-transcriber-switch__label{white-space:nowrap}.ai-transcriber-switch__toggle{position:relative;width:32px;height:20px;background:rgba(255,255,255,.3019607843);border-radius:10px;transition:background-color .3s ease;cursor:pointer}.ai-transcriber-switch__toggle--active{background:#1C66E5}.ai-transcriber-switch__slider{position:absolute;top:3px;left:2px;width:14px;height:14px;border-radius:50%;background:white;transition:transform .3s ease;box-shadow:0 2px 4px #0003}.ai-transcriber-switch__toggle--active .ai-transcriber-switch__slider{transform:translate(14px)}.tk-message-container{display:flex;flex-direction:row;align-items:center;width:fit-content;margin-bottom:10px;border-radius:6px;padding:10px}[data-uikit-theme=light] .tk-message-container,[data-uikit-theme=dark] .tk-message-container{box-shadow:0 1px 5px var(--uikit-basic-color-black-8),0 8px 12px var(--uikit-basic-color-black-8),0 12px 26px var(--uikit-basic-color-black-8);transition:background-color .3s ease-out,border-color .3s ease-out}[data-uikit-theme=light] .tk-message-container{background-color:var(--uikit-theme-light-toast-color-default);color:var(--uikit-theme-light-text-color-primary);transition:background-color .3s ease-out,border-color .3s ease-out}[data-uikit-theme=dark] .tk-message-container{background-color:var(--uikit-theme-dark-toast-color-default);color:var(--uikit-theme-dark-text-color-primary);transition:background-color .3s ease-out,border-color .3s ease-out}[data-uikit-theme=light] .tk-message-container svg{margin-right:4px;fill:var(--uikit-theme-light-text-color-primary);transition:background-color .3s ease-out,border-color .3s ease-out}[data-uikit-theme=dark] .tk-message-container svg{margin-right:4px;fill:var(--uikit-theme-dark-text-color-primary);transition:background-color .3s ease-out,border-color .3s ease-out}.tk-message-container.tk-message-plaintext{background:none;border:0;box-shadow:none;margin:0;padding:0}[data-uikit-theme=light] .tk-message-container.tk-message-plaintext,[data-uikit-theme=dark] .tk-message-container.tk-message-plaintext{color:var(--uikit-basic-color-white-1);transition:background-color .3s ease-out,border-color .3s ease-out}.tk-message-container .tk-message-icon{width:1em!important;height:1em!important}.tk-message-container .tk-message-icon.tip-icon{margin-right:8px}.tk-message-container .tk-message-icon.close-icon{margin-left:24px}.message-list-container{top:0;position:fixed;left:0;width:100%;display:flex;justify-content:center}._top-bar-container_1m8fv_1{width:100%;height:5.8%;position:absolute;display:flex;align-items:center;z-index:5}._top-bar-container_1m8fv_1 ._top-bar_1m8fv_1{height:24px}._full-screen-container_16bjq_1{width:20px!important;height:20px!important;margin-right:10px}._full-screen-container_16bjq_1 .tk-icon{line-height:20px;width:20px!important;height:20px!important}._single-top-bar_v1223_1{position:absolute;width:100%;height:20px;line-height:20px;margin-top:20px;z-index:2;display:flex;align-items:center;justify-content:flex-end}._topbar-center_v1223_13{position:absolute;left:50%;transform:translate(-50%);display:flex;align-items:center;justify-content:center}._topbar-right-controls_v1223_22{margin-right:10px;display:flex;align-items:center;gap:16px;z-index:3}._btn-icon_oeiwp_1{width:50%!important;height:50%!important}._btn-icon-container_oeiwp_6{display:flex;align-items:center;justify-content:center;border-radius:50%;border:0px}[data-uikit-theme=light] ._btn-icon-container_oeiwp_6,[data-uikit-theme=dark] ._btn-icon-container_oeiwp_6{background-color:var(--uikit-basic-color-white-1);transition:background-color .3s ease-out,border-color .3s ease-out}[data-uikit-theme=light] ._btn-icon-container_oeiwp_6.close,[data-uikit-theme=dark] ._btn-icon-container_oeiwp_6.close,[data-uikit-theme=light] ._btn-icon-container_oeiwp_6.disabled,[data-uikit-theme=dark] ._btn-icon-container_oeiwp_6.disabled{background-color:var(--uikit-basic-color-black-5);transition:background-color .3s ease-out,border-color .3s ease-out}._arrow-btn_oeiwp_38{padding:4px;width:12px!important;height:12px!important;margin:20px 0 0;transform:translateY(-50%)}._arrow-btn_oeiwp_38 .tk-icon{width:12px!important;height:12px!important}._tk-btn_oeiwp_50{transition-property:width,height,left,top;transition-duration:.3s;transition-timing-function:ease-in;width:70px!important}[data-uikit-theme=light] ._accept-icon-container_171af_1{background-color:var(--uikit-theme-light-button-color-accept);transition:background-color .3s ease-out,border-color .3s ease-out}[data-uikit-theme=dark] ._accept-icon-container_171af_1{background-color:var(--uikit-theme-dark-button-color-accept);transition:background-color .3s ease-out,border-color .3s ease-out}[data-uikit-theme=light] ._reject-icon-container_mg9y1_1{background-color:var(--uikit-theme-light-button-color-hangup);transition:background-color .3s ease-out,border-color .3s ease-out}[data-uikit-theme=dark] ._reject-icon-container_mg9y1_1{background-color:var(--uikit-theme-dark-button-color-hangup);transition:background-color .3s ease-out,border-color .3s ease-out}.tk-popup__arrow{left:50%;width:10px;height:10px;z-index:-1;margin-top:-3px;position:absolute;backdrop-filter:blur(15px);-webkit-backdrop-filter:blur(15px);transform:rotate(45deg) translate(-50%);border-top-left-radius:100%}[data-uikit-theme=light] .tk-popup__arrow,[data-uikit-theme=dark] .tk-popup__arrow{background-color:var(--uikit-basic-color-black-4);border:.5px solid var(--uikit-basic-color-white-7);transition:background-color .3s ease-out,border-color .3s ease-out}.tk-popup__content{backdrop-filter:blur(15px);-webkit-backdrop-filter:blur(15px);border-radius:6px;padding:3px;font-size:14px}[data-uikit-theme=light] .tk-popup__content,[data-uikit-theme=dark] .tk-popup__content{background-color:var(--uikit-basic-color-black-4);border:.5px solid var(--uikit-basic-color-white-7);color:var(--uikit-basic-color-white-1);transition:background-color .3s ease-out,border-color .3s ease-out}._device-selector-container_1wi4a_1{width:180px;display:flex;flex-direction:column;align-items:center;padding:6px;font-weight:500}._device-selector-container_1wi4a_1 ._device-item_1wi4a_9{width:100%;overflow:hidden;padding:5px 3px;text-overflow:ellipsis;white-space:nowrap;font-size:14px;text-align:left;line-height:20px;cursor:pointer}._device-selector-container_1wi4a_1 ._device-item_1wi4a_9._control-item_1wi4a_20{padding-left:6px}[data-uikit-theme=light] ._device-selector-container_1wi4a_1 ._device-item_1wi4a_9._control-item_1wi4a_20,[data-uikit-theme=dark] ._device-selector-container_1wi4a_1 ._device-item_1wi4a_9._control-item_1wi4a_20{border-top:1px solid var(--uikit-basic-color-white-7);transition:background-color .3s ease-out,border-color .3s ease-out}[data-uikit-theme=light] ._device-selector-container_1wi4a_1 ._device-item_1wi4a_9._btn_1wi4a_31,[data-uikit-theme=dark] ._device-selector-container_1wi4a_1 ._device-item_1wi4a_9._btn_1wi4a_31{border-top:1px solid var(--uikit-basic-color-white-2);transition:background-color .3s ease-out,border-color .3s ease-out}._device-selector-container_1wi4a_1 ._device-item_1wi4a_9:hover{border-radius:5px}[data-uikit-theme=light] ._device-selector-container_1wi4a_1 ._device-item_1wi4a_9:hover,[data-uikit-theme=dark] ._device-selector-container_1wi4a_1 ._device-item_1wi4a_9:hover{background:var(--uikit-basic-color-white-7);transition:background-color .3s ease-out,border-color .3s ease-out}._device-selector-container_1wi4a_1 ._device-item_1wi4a_9._select_1wi4a_50{border-radius:3px}[data-uikit-theme=light] ._device-selector-container_1wi4a_1 ._device-item_1wi4a_9._select_1wi4a_50,[data-uikit-theme=dark] ._device-selector-container_1wi4a_1 ._device-item_1wi4a_9._select_1wi4a_50{background-color:var(--uikit-basic-color-white-6);transition:background-color .3s ease-out,border-color .3s ease-out}._scroll-container_1wi4a_62{width:100%;overflow:hidden;border-radius:3px}._scroll-container_1wi4a_62 ._scroll-content_1wi4a_67{max-height:60px;margin-right:-20px;overflow:hidden auto;padding-right:20px}[data-uikit-theme=light] ._hangup-icon-container_7aq1c_1{background-color:var(--uikit-theme-light-button-color-hangup);transition:background-color .3s ease-out,border-color .3s ease-out}[data-uikit-theme=dark] ._hangup-icon-container_7aq1c_1{background-color:var(--uikit-theme-dark-button-color-hangup);transition:background-color .3s ease-out,border-color .3s ease-out}[data-uikit-theme=light] ._background-blur-icon-container_1g5wa_1,[data-uikit-theme=dark] ._background-blur-icon-container_1g5wa_1{background-color:var(--uikit-basic-color-white-1);transition:background-color .3s ease-out,border-color .3s ease-out}[data-uikit-theme=light] ._background-blur-icon-container_1g5wa_1._close_1g5wa_9,[data-uikit-theme=dark] ._background-blur-icon-container_1g5wa_1._close_1g5wa_9{background-color:var(--uikit-basic-color-black-5);transition:background-color .3s ease-out,border-color .3s ease-out}._button-panel-h5-container_f9br3_1{display:flex;flex-direction:column;align-items:center;position:absolute;box-sizing:border-box;bottom:0;width:100%;height:14%;border-radius:10px 10px 0 0;z-index:5;transition-property:width,height,left,top;transition-duration:.3s;transition-timing-function:ease-in}._button-panel-h5-container_f9br3_1._groupcall_f9br3_16{background:none}[data-uikit-theme=light] ._button-panel-h5-container_f9br3_1._groupcall_f9br3_16._show-panel-background_f9br3_19,[data-uikit-theme=dark] ._button-panel-h5-container_f9br3_1._groupcall_f9br3_16._show-panel-background_f9br3_19{background-color:var(--uikit-basic-color-gray-dark-3);transition:background-color .3s ease-out,border-color .3s ease-out}._button-panel-h5-container_f9br3_1._open_f9br3_27{height:27%}._button-panel-h5-container_f9br3_1 ._singlecall-panel_f9br3_30{width:72%;max-width:400px;position:absolute;bottom:6vh}._button-panel-h5-container_f9br3_1 ._groupcall-panel_f9br3_36{width:72%;position:absolute;top:6%}._button-panel-h5-container_f9br3_1 ._groupcall-panel_f9br3_36._close_f9br3_41{top:27%;margin-left:9.3vw}._button-panel-h5-container_f9br3_1 ._toggle-panel-btn_f9br3_45{position:absolute;left:8.2vw;bottom:6vh;z-index:1}._button-panel-h5-container_f9br3_1 ._toggle-panel-btn_f9br3_45._close_f9br3_41{width:8vw!important;height:8vw!important;top:32%}._button-panel-h5-container_f9br3_1 ._toggle-panel-btn_f9br3_45._close_f9br3_41 .prefix-icon{width:8vw!important;height:8vw!important}._button-panel-pc-container_x4npp_1{position:absolute;width:55%;margin:0 auto;bottom:6%;left:50%;z-index:2;transform:translate(-50%)}.tk-avatar-container{display:flex;align-items:center;justify-content:center;border:0px;padding:0;overflow:hidden}[data-uikit-theme=light] .tk-avatar-container,[data-uikit-theme=dark] .tk-avatar-container{background-color:var(--uikit-basic-color-white-1);transition:background-color .3s ease-out,border-color .3s ease-out}.tk-avatar-container.tk-avatar-shape-round{border-radius:6px}.tk-avatar-container.tk-avatar-shape-circle{border-radius:50%}.tk-avatar-container img{width:100%;height:100%;object-fit:fill}._microphone-container_nczz7_1{height:20px;width:20px;flex-shrink:0}._microphone-container_nczz7_1 svg{width:100%;height:100%}._overlay-stream-container_1ygv7_1{width:100%;height:100%;position:absolute;top:0}._overlay-stream-container_1ygv7_1 ._blur_1ygv7_7{width:100%;height:100%;left:0;top:0;position:absolute}[data-uikit-theme=light] ._overlay-stream-container_1ygv7_1 ._blur_1ygv7_7{transition:background-color .3s ease-out,border-color .3s ease-out}[data-uikit-theme=light] ._overlay-stream-container_1ygv7_1 ._blur_1ygv7_7 .overlay{background-color:var(--uikit-basic-color-black-3);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}[data-uikit-theme=dark] ._overlay-stream-container_1ygv7_1 ._blur_1ygv7_7{transition:background-color .3s ease-out,border-color .3s ease-out}[data-uikit-theme=dark] ._overlay-stream-container_1ygv7_1 ._blur_1ygv7_7 .overlay{background-color:var(--uikit-basic-color-black-3);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}._overlay-stream-container_1ygv7_1._pc_1ygv7_30 ._user-info-container_1ygv7_30{position:absolute;display:flex;flex-direction:column;align-content:center;align-items:center;justify-content:center;width:100%;height:100%;z-index:1}[data-uikit-theme=light] ._overlay-stream-container_1ygv7_1._pc_1ygv7_30 ._user-info-container_1ygv7_30,[data-uikit-theme=dark] ._overlay-stream-container_1ygv7_1._pc_1ygv7_30 ._user-info-container_1ygv7_30{color:var(--uikit-basic-color-white-1);transition:background-color .3s ease-out,border-color .3s ease-out}._overlay-stream-container_1ygv7_1._pc_1ygv7_30 ._user-info-container_1ygv7_30 ._avatar_1ygv7_49{width:100px;height:100px}._overlay-stream-container_1ygv7_1._pc_1ygv7_30 ._user-info-container_1ygv7_30 ._avatar_1ygv7_49._float_1ygv7_53,._overlay-stream-container_1ygv7_1._pc_1ygv7_30 ._user-info-container_1ygv7_30 ._avatar_1ygv7_49._small_1ygv7_57{width:40px;height:40px}._overlay-stream-container_1ygv7_1._pc_1ygv7_30 ._user-info-container_1ygv7_30 ._avatar_1ygv7_49._small_1ygv7_57._float_1ygv7_53{width:20px;height:20px}._overlay-stream-container_1ygv7_1._pc_1ygv7_30 ._user-info-container_1ygv7_30 ._username_1ygv7_65{display:flex;flex-direction:row;align-items:center;justify-content:center;width:100%}._overlay-stream-container_1ygv7_1._pc_1ygv7_30 ._user-info-container_1ygv7_30 ._username_1ygv7_65 ._nick_1ygv7_72{text-align:center;font-family:PingFang SC;font-size:40px;font-style:normal;font-weight:500;line-height:normal;max-width:50%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._overlay-stream-container_1ygv7_1._pc_1ygv7_30 ._user-info-container_1ygv7_30 ._username_1ygv7_65 ._nick_1ygv7_72._float_1ygv7_53,._overlay-stream-container_1ygv7_1._pc_1ygv7_30 ._user-info-container_1ygv7_30 ._username_1ygv7_65 ._nick_1ygv7_72._small_1ygv7_57{font-size:20px}._overlay-stream-container_1ygv7_1._pc_1ygv7_30 ._user-info-container_1ygv7_30 ._username_1ygv7_65 ._nick_1ygv7_72._small_1ygv7_57._float_1ygv7_53{font-size:12px}._overlay-stream-container_1ygv7_1._mobile_1ygv7_96 ._user-info-container_1ygv7_30{position:absolute;display:flex;flex-direction:column;align-content:center;align-items:center;top:26%;width:100%;z-index:1}[data-uikit-theme=light] ._overlay-stream-container_1ygv7_1._mobile_1ygv7_96 ._user-info-container_1ygv7_30,[data-uikit-theme=dark] ._overlay-stream-container_1ygv7_1._mobile_1ygv7_96 ._user-info-container_1ygv7_30{color:var(--uikit-basic-color-white-1);transition:background-color .3s ease-out,border-color .3s ease-out}._overlay-stream-container_1ygv7_1._mobile_1ygv7_96 ._user-info-container_1ygv7_30 ._avatar_1ygv7_49{width:100px;height:100px}._overlay-stream-container_1ygv7_1._mobile_1ygv7_96 ._user-info-container_1ygv7_30 ._avatar_1ygv7_49._float_1ygv7_53,._overlay-stream-container_1ygv7_1._mobile_1ygv7_96 ._user-info-container_1ygv7_30 ._avatar_1ygv7_49._small_1ygv7_57{width:40px;height:40px}._overlay-stream-container_1ygv7_1._mobile_1ygv7_96 ._user-info-container_1ygv7_30 ._avatar_1ygv7_49._small_1ygv7_57._float_1ygv7_53{width:20px;height:20px}._overlay-stream-container_1ygv7_1._mobile_1ygv7_96 ._user-info-container_1ygv7_30 ._username_1ygv7_65{display:flex;flex-direction:row;align-items:center;justify-content:center;width:100%}._overlay-stream-container_1ygv7_1._mobile_1ygv7_96 ._user-info-container_1ygv7_30 ._username_1ygv7_65 ._nick_1ygv7_72{text-align:center;margin-top:12px;font-family:PingFang SC;font-size:18px;font-style:normal;font-weight:500;line-height:normal;max-width:50%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._overlay-stream-container_1ygv7_1._mobile_1ygv7_96 ._user-info-container_1ygv7_30 ._username_1ygv7_65 ._nick_1ygv7_72._small_1ygv7_57{font-size:15px}._overlay-stream-container_1ygv7_1._mobile_1ygv7_96 ._user-info-container_1ygv7_30 ._tip_1ygv7_153{margin-top:12px}._singlecall-waiting-container_pmvxi_1{z-index:1}.tk-togglewindow-container{position:relative;width:100%;height:100%;border-radius:6px}.tk-togglewindowitem-container{position:absolute;border-radius:12px;overflow:hidden}.tk-togglewindowitem-container.mobile{border-radius:0}.tk-togglewindowitem-container.tk-togglewindowitem-big{top:0;left:0;right:0;bottom:0;width:100%;height:100%}[data-uikit-theme=light] .tk-togglewindowitem-container.tk-togglewindowitem-big,[data-uikit-theme=dark] .tk-togglewindowitem-container.tk-togglewindowitem-big{background-color:var(--uikit-basic-color-black-2);transition:background-color .3s ease-out,border-color .3s ease-out}.tk-togglewindowitem-container.tk-togglewindowitem-small{top:2%;left:2%;width:22%;height:21%;z-index:2;border-radius:12px}[data-uikit-theme=light] .tk-togglewindowitem-container.tk-togglewindowitem-small,[data-uikit-theme=dark] .tk-togglewindowitem-container.tk-togglewindowitem-small{background-color:var(--uikit-basic-color-black-2);transition:background-color .3s ease-out,border-color .3s ease-out}.tk-togglewindowitem-container.tk-togglewindowitem-small.mobile{width:24.3%;height:19.7%;border-radius:5px;left:98%;position:absolute;top:8%;transform:translate(-100%)}.tk-text{display:inline-block;overflow:hidden;text-align:center;line-height:normal;white-space:nowrap}.tk-text.tk-text--line-clamp{display:-webkit-inline-box;-webkit-box-orient:vertical;white-space:normal}._stream-info-container-h5_182j9_1{width:calc(100% - 16px);display:flex;z-index:1;position:absolute;left:0;bottom:0;text-wrap:nowrap;margin:8px;background:none}[data-uikit-theme=light] ._stream-info-container-h5_182j9_1,[data-uikit-theme=dark] ._stream-info-container-h5_182j9_1{color:var(--uikit-basic-color-white-1);transition:background-color .3s ease-out,border-color .3s ease-out}._stream-info-container-h5_182j9_1._single_182j9_20{height:20px}._stream-info-container-pc_19fal_1{width:100%;height:25px;display:flex;z-index:1;position:absolute;left:0;bottom:0;text-wrap:nowrap;background:none;justify-content:space-between}[data-uikit-theme=light] ._stream-info-container-pc_19fal_1,[data-uikit-theme=dark] ._stream-info-container-pc_19fal_1{color:var(--uikit-basic-color-white-1);transition:background-color .3s ease-out,border-color .3s ease-out}._stream-info-container-pc_19fal_1 ._stream-info-content_19fal_21{display:flex;max-width:60%;flex-direction:row;align-content:center;align-items:center;padding:2px 10px}[data-uikit-theme=light] ._stream-info-container-pc_19fal_1 ._stream-info-content_19fal_21,[data-uikit-theme=dark] ._stream-info-container-pc_19fal_1 ._stream-info-content_19fal_21{background-color:var(--uikit-basic-color-black-5);transition:background-color .3s ease-out,border-color .3s ease-out}._stream-info-container-pc_19fal_1 ._stream-info-content_19fal_21 ._nick_19fal_37{overflow:hidden;text-overflow:ellipsis}._stream-info-container-pc_19fal_1 ._stream-info-netWork_19fal_41{width:20px;height:20px}._player-container_dhuca_1{width:100%;height:100%;position:relative}[data-uikit-theme=light] ._player-container_dhuca_1,[data-uikit-theme=dark] ._player-container_dhuca_1{background-color:var(--uikit-basic-color-white-6);transition:background-color .3s ease-out,border-color .3s ease-out}._pusher-container_1ncng_1{width:100%;height:100%;position:relative}[data-uikit-theme=light] ._pusher-container_1ncng_1,[data-uikit-theme=dark] ._pusher-container_1ncng_1{background-color:var(--uikit-basic-color-white-6);transition:background-color .3s ease-out,border-color .3s ease-out}._single-stream-container_1hpym_1{width:100%;height:100%;position:absolute;z-index:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}._single-stream-container_1hpym_1._pc_1hpym_11{border-radius:12px;overflow:hidden}[data-uikit-theme=light] ._single-stream-container_1hpym_1._pc_1hpym_11,[data-uikit-theme=dark] ._single-stream-container_1hpym_1._pc_1hpym_11{background-color:var(--uikit-basic-color-black-2);transition:background-color .3s ease-out,border-color .3s ease-out}._single-stream-container_1hpym_1._pc_1hpym_11 ._single-call-audio-stream_1hpym_23 .overlay{border-radius:12px;overflow:hidden}._single-stream-container_1hpym_1._float_1hpym_27{position:absolute;visibility:hidden}._single-container_1l7n2_1{width:100%;height:100%}._single-container_1l7n2_1 ._singlecall-tip_1l7n2_5{position:absolute;top:56%;left:50%;transform:translate(-50%);z-index:5}._single-container_1l7n2_1._mobile_1l7n2_12{animation:_pulldown_1l7n2_1 .5s linear}._single-container_1l7n2_1._mobile_1l7n2_12 ._singlecall-tip_1l7n2_5{position:absolute;max-width:80%;top:53.6vh;left:50%;transform:translate(-50%);z-index:5}@keyframes _pulldown_1l7n2_1{0%{transform:translateY(-100%)}to{transform:translateY(0)}}._groupcall-waiting-container_1ew1v_1,._waiting-mobile_1ew1v_5 ._tip_1ew1v_5{z-index:1}[data-uikit-theme=light] ._waiting-mobile_1ew1v_5 ._tip_1ew1v_5,[data-uikit-theme=dark] ._waiting-mobile_1ew1v_5 ._tip_1ew1v_5{color:var(--uikit-basic-color-white-1);transition:background-color .3s ease-out,border-color .3s ease-out}._waiting-mobile_1ew1v_5 ._groupcall-info_1ew1v_16{display:flex;flex-direction:column;align-items:center;margin-top:24px;z-index:1;width:100%}[data-uikit-theme=light] ._waiting-mobile_1ew1v_5 ._groupcall-info_1ew1v_16,[data-uikit-theme=dark] ._waiting-mobile_1ew1v_5 ._groupcall-info_1ew1v_16{color:var(--uikit-basic-color-white-1);transition:background-color .3s ease-out,border-color .3s ease-out}._waiting-mobile_1ew1v_5 ._groupcall-info_1ew1v_16 ._tip_1ew1v_5{text-align:center}._waiting-mobile_1ew1v_5 ._groupcall-info_1ew1v_16 ._avatar-group_1ew1v_35{display:flex;flex-wrap:wrap;margin-top:12px;align-items:center;justify-content:center;max-width:70%}._waiting-mobile_1ew1v_5 ._groupcall-info_1ew1v_16 ._avatar-group_1ew1v_35 ._avatar-item_1ew1v_43{width:10vw;height:10vw;margin-left:10px;margin-top:10px}.tk-gridplus-item-container{transition-property:width,height,left,top;transition-duration:.3s;transition-timing-function:ease-in}.tk-gridplus-item-container.center{transform:translate(50%)}._stream-container_d9ykp_1{width:100%;height:100%;position:absolute;z-index:1}._stream-container_d9ykp_1._mobile_d9ykp_7{top:5.5vh}._stream-container_d9ykp_1._pc_d9ykp_10{border-radius:12px;overflow:hidden}._stream-container_d9ykp_1._float_d9ykp_14{position:absolute;visibility:hidden}._groupcall-gridplus-container_d9ykp_19{width:100%;height:100%}._groupcall-gridplus-container_d9ykp_19._mobile_d9ykp_7._center_d9ykp_23{margin-top:24vh}._groupcall-gridplus-container_d9ykp_19._mobile_d9ykp_7._two-layout_d9ykp_26{margin-top:15vh}._groupcall-gridplus-container_d9ykp_19._pc_d9ykp_10._two-layout_d9ykp_26{margin-top:20%}._groupcall-gridplus-container_d9ykp_19._float_d9ykp_14{margin:0;position:absolute;top:0;right:0;left:0;bottom:0;border:0}._groupcall-gridplus-container_d9ykp_19._float_d9ykp_14 .tk-gridplus-item-container{width:100%!important;height:100%!important}._groupcall-gridplus-container_d9ykp_19._float_d9ykp_14 .tk-gridplus-item-container ._hidden_d9ykp_45{visibility:hidden}._groupcall-gridplus-container_d9ykp_19 ._userinfo_d9ykp_48{z-index:1;text-align:right;font-family:PingFang SC;font-size:20px;font-style:normal;font-weight:500;line-height:normal}[data-uikit-theme=light] ._groupcall-gridplus-container_d9ykp_19 ._userinfo_d9ykp_48,[data-uikit-theme=dark] ._groupcall-gridplus-container_d9ykp_19 ._userinfo_d9ykp_48{color:var(--uikit-basic-color-white-1);transition:background-color .3s ease-out,border-color .3s ease-out}._group-container_bky89_1{width:100%;height:100%}._group-container_bky89_1._mobile_bky89_5{animation:_pulldown_bky89_1 .3s linear}@keyframes _pulldown_bky89_1{0%{transform:translateY(-100%)}to{transform:translateY(0)}}.ai-subtitle-pc{position:absolute;z-index:1;left:50%;transform:translate(-50%);width:auto;height:auto;bottom:110px}.ai-subtitle-pc.ai-subtitle-pc--expanded{position:absolute!important;top:0!important;left:0!important;right:0!important;bottom:0!important;width:100%!important;height:100%!important;background-color:transparent;transform:none!important;z-index:1000}.ai-subtitle-pc:not(.ai-subtitle-pc--expanded) .ai-subtitle-pc .ai-subtitle-pc__content{position:relative;width:auto;height:auto}.ai-subtitle-pc--expanded .ai-subtitle-pc .ai-subtitle-pc__content{display:none}.ai-subtitle-pc--expanded .ai-subtitle-pc .ai-subtitle-pc__settings{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);z-index:1001}.ai-subtitle-pc:not(.ai-subtitle-pc--expanded) .ai-subtitle-pc .ai-subtitle-pc__settings{display:none}.ai-subtitle-h5{position:absolute;z-index:100;left:50%;transform:translate(-50%);width:auto;height:auto;bottom:26%}.ai-subtitle-h5.ai-subtitle-h5--expanded{position:absolute!important;top:0!important;left:0!important;right:0!important;bottom:0!important;width:100%!important;height:100%!important;background-color:transparent;transform:none!important;z-index:1000}.ai-subtitle-h5:not(.ai-subtitle-h5--expanded) .ai-subtitle-h5 .ai-subtitle-h5__content{position:relative;width:auto;height:auto}.ai-subtitle-h5--expanded .ai-subtitle-h5 .ai-subtitle-h5__content{display:none}.ai-subtitle-h5--expanded .ai-subtitle-h5 .ai-subtitle-h5__settings{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);z-index:1001}.ai-subtitle-h5:not(.ai-subtitle-h5--expanded) .ai-subtitle-h5 .ai-subtitle-h5__settings{display:none}._auto-play-dialog_o5mtr_1{position:absolute;top:5.2%;left:50%;transform:translate(-50%);z-index:2;width:90%;height:40px;display:flex;justify-content:space-between;align-items:center;padding:0 10px;border-radius:6px;font-size:14px;font-weight:400;font-family:PingFang SC}[data-uikit-theme=light] ._auto-play-dialog_o5mtr_1{background-color:var(--uikit-theme-light-floating-color-default);color:var(--uikit-theme-light-text-color-primary);transition:background-color .3s ease-out,border-color .3s ease-out}[data-uikit-theme=dark] ._auto-play-dialog_o5mtr_1{background-color:var(--uikit-theme-dark-floating-color-default);color:var(--uikit-theme-dark-text-color-primary);transition:background-color .3s ease-out,border-color .3s ease-out}._auto-play-dialog_o5mtr_1 ._auto-play-action_o5mtr_28{flex-shrink:0;margin-left:10px}[data-uikit-theme=light] ._auto-play-dialog_o5mtr_1 ._auto-play-action_o5mtr_28{color:var(--uikit-theme-light-text-color-link);transition:background-color .3s ease-out,border-color .3s ease-out}[data-uikit-theme=dark] ._auto-play-dialog_o5mtr_1 ._auto-play-action_o5mtr_28{color:var(--uikit-theme-dark-text-color-link);transition:background-color .3s ease-out,border-color .3s ease-out}._floating-window-pc-groupcall-container_1es4b_1{width:80px;height:100px;top:100px;right:10px;display:flex;z-index:99;flex-direction:column;align-items:center;border-radius:12px;box-sizing:border-box;overflow:hidden}[data-uikit-theme=light] ._floating-window-pc-groupcall-container_1es4b_1{background-color:var(--uikit-theme-light-floating-color-default);box-shadow:0 0 10px 0 var(--uikit-basic-color-black-8);transition:background-color .3s ease-out,border-color .3s ease-out}[data-uikit-theme=dark] ._floating-window-pc-groupcall-container_1es4b_1{background-color:var(--uikit-theme-dark-floating-color-default);box-shadow:0 0 10px 0 var(--uikit-basic-color-black-8);transition:background-color .3s ease-out,border-color .3s ease-out}._floating-window-pc-groupcall-container_1es4b_1 ._click-overlay_1es4b_1{position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;z-index:11}._floating-window-pc-groupcall-container_1es4b_1 ._call-status_1es4b_1{display:flex;flex-direction:column;align-content:center;align-items:center;width:100%;height:100%}._floating-window-pc-groupcall-container_1es4b_1 ._call-status_1es4b_1 ._video-stream_1es4b_1{position:absolute;width:100%;height:100%;top:0;left:0;box-sizing:border-box}._floating-window-pc-groupcall-container_1es4b_1 ._call-status_1es4b_1 ._video-stream_1es4b_1._hidden_1es4b_1{visibility:hidden!important;opacity:0}._floating-window-pc-groupcall-container_1es4b_1 ._call-status_1es4b_1 ._audio-stream_1es4b_1{display:flex;align-items:center;flex-direction:column;position:absolute;width:100%;height:100%;top:0;left:0}._floating-window-pc-groupcall-container_1es4b_1 ._call-status_1es4b_1{height:80px;width:100%;position:relative;padding:8px 18px;box-sizing:border-box}._floating-window-pc-groupcall-container_1es4b_1 ._call-status_1es4b_1._video_1es4b_1{padding:8px}._floating-window-pc-groupcall-container_1es4b_1 ._call-status_1es4b_1 ._earphone_1es4b_1{height:36px;width:36px;top:8px;position:absolute}._floating-window-pc-groupcall-container_1es4b_1 ._call-status_1es4b_1 ._info_1es4b_1{text-align:center;font-family:PingFang SC;font-size:12px;font-style:normal;font-weight:500;line-height:16px;position:absolute;bottom:8px}[data-uikit-theme=light] ._floating-window-pc-groupcall-container_1es4b_1 ._call-status_1es4b_1 ._info_1es4b_1{color:var(--uikit-theme-light-text-color-success);transition:background-color .3s ease-out,border-color .3s ease-out}[data-uikit-theme=dark] ._floating-window-pc-groupcall-container_1es4b_1 ._call-status_1es4b_1 ._info_1es4b_1{color:var(--uikit-theme-dark-text-color-success);transition:background-color .3s ease-out,border-color .3s ease-out}._floating-window-pc-groupcall-container_1es4b_1 ._device-status_1es4b_1{display:flex;flex-direction:row;align-items:center;height:20px;width:100%;position:relative;justify-content:space-evenly}[data-uikit-theme=light] ._floating-window-pc-groupcall-container_1es4b_1 ._device-status_1es4b_1{background-color:var(--uikit-theme-light-floating-color-operate);transition:background-color .3s ease-out,border-color .3s ease-out}[data-uikit-theme=dark] ._floating-window-pc-groupcall-container_1es4b_1 ._device-status_1es4b_1{background-color:var(--uikit-theme-dark-floating-color-operate);transition:background-color .3s ease-out,border-color .3s ease-out}._floating-window-pc-groupcall-container_1es4b_1 ._device-status_1es4b_1 ._icon_1es4b_1{display:flex;width:16px;height:16px;position:absolute}._floating-window-pc-groupcall-container_1es4b_1 ._device-status_1es4b_1 ._camera_1es4b_1{left:14px}._floating-window-pc-groupcall-container_1es4b_1 ._device-status_1es4b_1 ._micphone_1es4b_1{right:14px}._floating-window-h5-groupcall-container_1es4b_1{width:72px;height:90px;top:100px;right:0;display:flex;z-index:99;flex-direction:column;align-items:center;border-radius:12px;box-sizing:border-box;overflow:hidden}[data-uikit-theme=light] ._floating-window-h5-groupcall-container_1es4b_1{background-color:var(--uikit-theme-light-floating-color-default);box-shadow:0 0 10px 0 var(--uikit-basic-color-black-8);transition:background-color .3s ease-out,border-color .3s ease-out}[data-uikit-theme=dark] ._floating-window-h5-groupcall-container_1es4b_1{background-color:var(--uikit-theme-dark-floating-color-default);box-shadow:0 0 10px 0 var(--uikit-basic-color-black-8);transition:background-color .3s ease-out,border-color .3s ease-out}._floating-window-h5-groupcall-container_1es4b_1 ._click-overlay_1es4b_1{position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;z-index:11}._floating-window-h5-groupcall-container_1es4b_1 ._call-status_1es4b_1{display:flex;flex-direction:column;align-content:center;align-items:center;width:100%;height:100%}._floating-window-h5-groupcall-container_1es4b_1 ._call-status_1es4b_1 ._video-stream_1es4b_1{position:absolute;width:100%;height:100%;top:0;left:0;box-sizing:border-box}._floating-window-h5-groupcall-container_1es4b_1 ._call-status_1es4b_1 ._video-stream_1es4b_1._hidden_1es4b_1{visibility:hidden!important;opacity:0}._floating-window-h5-groupcall-container_1es4b_1 ._call-status_1es4b_1 ._audio-stream_1es4b_1{display:flex;align-items:center;flex-direction:column;position:absolute;width:100%;height:100%;top:0;left:0}._floating-window-h5-groupcall-container_1es4b_1 ._call-status_1es4b_1{height:70px;width:100%;position:relative;padding:8px 18px;box-sizing:border-box}._floating-window-h5-groupcall-container_1es4b_1 ._call-status_1es4b_1._video_1es4b_1{padding:8px}._floating-window-h5-groupcall-container_1es4b_1 ._call-status_1es4b_1 ._earphone_1es4b_1{height:36px;width:36px;top:8px;position:absolute}._floating-window-h5-groupcall-container_1es4b_1 ._call-status_1es4b_1 ._info_1es4b_1{text-align:center;font-family:PingFang SC;font-size:12px;font-style:normal;font-weight:500;line-height:16px;position:absolute;bottom:8px}[data-uikit-theme=light] ._floating-window-h5-groupcall-container_1es4b_1 ._call-status_1es4b_1 ._info_1es4b_1{color:var(--uikit-theme-light-text-color-success);transition:background-color .3s ease-out,border-color .3s ease-out}[data-uikit-theme=dark] ._floating-window-h5-groupcall-container_1es4b_1 ._call-status_1es4b_1 ._info_1es4b_1{color:var(--uikit-theme-dark-text-color-success);transition:background-color .3s ease-out,border-color .3s ease-out}._floating-window-h5-groupcall-container_1es4b_1 ._device-status_1es4b_1{display:flex;flex-direction:row;align-items:center;height:20px;width:100%;position:relative;justify-content:space-evenly}[data-uikit-theme=light] ._floating-window-h5-groupcall-container_1es4b_1 ._device-status_1es4b_1{background-color:var(--uikit-theme-light-floating-color-operate);transition:background-color .3s ease-out,border-color .3s ease-out}[data-uikit-theme=dark] ._floating-window-h5-groupcall-container_1es4b_1 ._device-status_1es4b_1{background-color:var(--uikit-theme-dark-floating-color-operate);transition:background-color .3s ease-out,border-color .3s ease-out}._floating-window-h5-groupcall-container_1es4b_1 ._device-status_1es4b_1 ._icon_1es4b_1{display:flex;width:16px;height:16px;position:absolute}._floating-window-h5-groupcall-container_1es4b_1 ._device-status_1es4b_1 ._camera_1es4b_1{left:14px}._floating-window-h5-groupcall-container_1es4b_1 ._device-status_1es4b_1 ._micphone_1es4b_1{right:14px}._floating-window-h5-singlecall-container_1wchz_1{width:110px;height:196px;top:100px;right:0;display:flex;z-index:99;flex-direction:column;align-items:center;border-radius:12px;overflow:hidden}[data-uikit-theme=light] ._floating-window-h5-singlecall-container_1wchz_1{background-color:var(--uikit-theme-light-floating-color-default);border:1px solid var(--uikit-theme-light-floating-color-default);box-shadow:0 0 10px 0 var(--uikit-basic-color-black-8);transition:background-color .3s ease-out,border-color .3s ease-out}[data-uikit-theme=dark] ._floating-window-h5-singlecall-container_1wchz_1{background-color:var(--uikit-theme-dark-floating-color-default);border:1px solid var(--uikit-theme-dark-floating-color-default);box-shadow:0 0 10px 0 var(--uikit-basic-color-black-8);transition:background-color .3s ease-out,border-color .3s ease-out}._floating-window-h5-singlecall-container_1wchz_1._audio-call_1wchz_1{width:72px;height:72px;border-radius:12px;box-sizing:border-box}[data-uikit-theme=light] ._floating-window-h5-singlecall-container_1wchz_1._audio-call_1wchz_1{background-color:var(--uikit-theme-light-floating-color-default);box-shadow:0 0 10px 0 var(--uikit-basic-color-black-8);transition:background-color .3s ease-out,border-color .3s ease-out}[data-uikit-theme=dark] ._floating-window-h5-singlecall-container_1wchz_1._audio-call_1wchz_1{background-color:var(--uikit-theme-dark-floating-color-default);box-shadow:0 0 10px 0 var(--uikit-basic-color-black-8);transition:background-color .3s ease-out,border-color .3s ease-out}._floating-window-h5-singlecall-container_1wchz_1 ._click-overlay_1wchz_1{position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;z-index:11}._floating-window-h5-singlecall-container_1wchz_1 ._call-status_1wchz_1{display:flex;flex-direction:column;align-content:center;align-items:center;padding:8px 18px;width:100%;height:100%;z-index:0;position:relative;box-sizing:border-box}._floating-window-h5-singlecall-container_1wchz_1 ._call-status_1wchz_1._video_1wchz_1{padding:8px}._floating-window-h5-singlecall-container_1wchz_1 ._call-status_1wchz_1 ._info_1wchz_1{text-align:center;font-family:PingFang SC;font-size:12px;font-style:normal;font-weight:500;line-height:16px;position:absolute;bottom:8px}[data-uikit-theme=light] ._floating-window-h5-singlecall-container_1wchz_1 ._call-status_1wchz_1 ._info_1wchz_1,[data-uikit-theme=dark] ._floating-window-h5-singlecall-container_1wchz_1 ._call-status_1wchz_1 ._info_1wchz_1{color:var(--uikit-basic-color-white-1);transition:background-color .3s ease-out,border-color .3s ease-out}._floating-window-h5-singlecall-container_1wchz_1 ._call-status_1wchz_1 ._video-stream_1wchz_1{position:absolute;width:100%;height:100%;top:0;left:0;box-sizing:border-box;z-index:0}._floating-window-h5-singlecall-container_1wchz_1 ._call-status_1wchz_1 ._video-stream_1wchz_1._hidden_1wchz_1{visibility:hidden}._floating-window-h5-singlecall-container_1wchz_1 ._call-status_1wchz_1 ._audio-stream_1wchz_1{display:flex;align-items:center;flex-direction:column;position:absolute;width:100%;height:100%;left:0;top:0}[data-uikit-theme=light] ._floating-window-h5-singlecall-container_1wchz_1 ._call-status_1wchz_1 ._audio-stream_1wchz_1 ._info_1wchz_1{color:var(--uikit-theme-light-text-color-success);transition:background-color .3s ease-out,border-color .3s ease-out}[data-uikit-theme=dark] ._floating-window-h5-singlecall-container_1wchz_1 ._call-status_1wchz_1 ._audio-stream_1wchz_1 ._info_1wchz_1{color:var(--uikit-theme-dark-text-color-success);transition:background-color .3s ease-out,border-color .3s ease-out}._floating-window-h5-singlecall-container_1wchz_1 ._call-status_1wchz_1 ._earphone_1wchz_1{height:36px;width:36px;position:absolute;top:8px}._floating-window-h5-singlecall-container_1wchz_1 ._tip_1wchz_1{position:absolute;bottom:0}._floating-window-pc-singlecall-container_1wchz_1{width:196px;height:110px;top:100px;right:10px;display:flex;z-index:99;flex-direction:column;align-items:center;border-radius:12px;overflow:hidden}[data-uikit-theme=light] ._floating-window-pc-singlecall-container_1wchz_1{box-shadow:0 0 10px 0 var(--uikit-basic-color-black-8);background-color:var(--uikit-theme-light-floating-color-default);border:1px solid var(--uikit-theme-light-floating-color-default);transition:background-color .3s ease-out,border-color .3s ease-out}[data-uikit-theme=dark] ._floating-window-pc-singlecall-container_1wchz_1{box-shadow:0 0 10px 0 var(--uikit-basic-color-black-8);background-color:var(--uikit-theme-dark-floating-color-default);border:1px solid var(--uikit-theme-dark-floating-color-default);transition:background-color .3s ease-out,border-color .3s ease-out}._floating-window-pc-singlecall-container_1wchz_1._audio-call_1wchz_1{width:72px;height:72px;border-radius:12px;box-sizing:border-box}[data-uikit-theme=light] ._floating-window-pc-singlecall-container_1wchz_1._audio-call_1wchz_1{box-shadow:0 0 10px 0 var(--uikit-basic-color-black-8);background-color:var(--uikit-theme-light-floating-color-default);transition:background-color .3s ease-out,border-color .3s ease-out}[data-uikit-theme=dark] ._floating-window-pc-singlecall-container_1wchz_1._audio-call_1wchz_1{box-shadow:0 0 10px 0 var(--uikit-basic-color-black-8);background-color:var(--uikit-theme-dark-floating-color-default);transition:background-color .3s ease-out,border-color .3s ease-out}._floating-window-pc-singlecall-container_1wchz_1 ._click-overlay_1wchz_1{position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;z-index:11}._floating-window-pc-singlecall-container_1wchz_1 ._call-status_1wchz_1{display:flex;flex-direction:column;align-content:center;align-items:center;padding:8px 18px;width:100%;height:100%;z-index:0;position:relative;box-sizing:border-box}._floating-window-pc-singlecall-container_1wchz_1 ._call-status_1wchz_1._video_1wchz_1{padding:8px}._floating-window-pc-singlecall-container_1wchz_1 ._call-status_1wchz_1 ._info_1wchz_1{text-align:center;font-family:PingFang SC;font-size:12px;font-style:normal;font-weight:500;line-height:16px;position:absolute;bottom:8px}[data-uikit-theme=light] ._floating-window-pc-singlecall-container_1wchz_1 ._call-status_1wchz_1 ._info_1wchz_1,[data-uikit-theme=dark] ._floating-window-pc-singlecall-container_1wchz_1 ._call-status_1wchz_1 ._info_1wchz_1{color:var(--uikit-basic-color-white-1);transition:background-color .3s ease-out,border-color .3s ease-out}._floating-window-pc-singlecall-container_1wchz_1 ._call-status_1wchz_1 ._video-stream_1wchz_1{position:absolute;width:100%;height:100%;top:0;left:0;box-sizing:border-box;z-index:0}._floating-window-pc-singlecall-container_1wchz_1 ._call-status_1wchz_1 ._video-stream_1wchz_1._hidden_1wchz_1{visibility:hidden}._floating-window-pc-singlecall-container_1wchz_1 ._call-status_1wchz_1 ._video-stream_1wchz_1 .tk-togglewindowitem-small{border-radius:3px;width:32%;height:31%}._floating-window-pc-singlecall-container_1wchz_1 ._call-status_1wchz_1 ._audio-stream_1wchz_1{display:flex;align-items:center;flex-direction:column;position:absolute;width:100%;height:100%;left:0;top:0}[data-uikit-theme=light] ._floating-window-pc-singlecall-container_1wchz_1 ._call-status_1wchz_1 ._audio-stream_1wchz_1 ._info_1wchz_1{color:var(--uikit-theme-light-text-color-success);transition:background-color .3s ease-out,border-color .3s ease-out}[data-uikit-theme=dark] ._floating-window-pc-singlecall-container_1wchz_1 ._call-status_1wchz_1 ._audio-stream_1wchz_1 ._info_1wchz_1{color:var(--uikit-theme-dark-text-color-success);transition:background-color .3s ease-out,border-color .3s ease-out}._floating-window-pc-singlecall-container_1wchz_1 ._call-status_1wchz_1 ._earphone_1wchz_1{height:36px;width:36px;position:absolute;top:8px}._floating-window-pc-singlecall-container_1wchz_1 ._tip_1wchz_1{position:absolute;bottom:0}._uikit-modal-mask_w3pbd_1{position:fixed;top:0;left:0;width:100vw;height:100vh;background:rgba(0,0,0,.6);z-index:9999;display:flex;align-items:center;justify-content:center}._uikit-modal-default_w3pbd_14{width:480px;max-width:calc(100% - 40px);box-shadow:0 2px 12px #00000026}._uikit-modal-container_w3pbd_20{box-sizing:border-box;background:#fff;position:relative;display:flex;flex-direction:column;overflow:hidden;padding:24px;border-radius:20px}._uikit-modal-header_w3pbd_31{display:flex;justify-content:space-between;align-items:center;padding-bottom:20px}._uikit-modal-type-icon_w3pbd_38{margin-right:6px}._uikit-modal-close-icon_w3pbd_42{cursor:pointer;color:#333}._uikit-modal-title_w3pbd_47{font-size:16px;line-height:24px;font-weight:600;color:#333;flex:1}._uikit-modal-body_w3pbd_55{flex:1;display:block;font-size:14px;font-weight:400;line-height:22px;color:#333;word-break:break-word}._uikit-modal-link_w3pbd_65{color:#006eff;text-decoration:none;transition:all .2s ease;cursor:pointer;border-bottom:1px solid transparent;margin:0 .2em}._uikit-modal-footer_w3pbd_74{padding-top:20px;box-sizing:border-box;display:flex;justify-content:flex-end;gap:12px}._uikit-modal-btn_w3pbd_82{min-width:88px;height:32px;padding:0 16px;border-radius:20px;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s ease;border:none;outline:none;white-space:nowrap}._uikit-modal-btn_w3pbd_82:active{transform:scale(.98)}._uikit-modal-btn-cancel_w3pbd_99{background:#f0f2f9;color:#333}._uikit-modal-btn-cancel_w3pbd_99:hover{background:#e5e7ed}._uikit-modal-btn-confirm_w3pbd_107{background:#1c66e5;color:#fff}._uikit-modal-btn-confirm_w3pbd_107:hover{background:#1557cc}._uikit-modal-header_w3pbd_31:empty,._uikit-modal-body_w3pbd_55:empty,._uikit-modal-footer_w3pbd_74:empty{padding:0}._uikit-modal-container-mobile_w3pbd_121{border-radius:12px;max-width:calc(100% - 32px);padding:0}._uikit-modal-container-mobile_w3pbd_121 ._uikit-modal-header_w3pbd_31{padding:20px 20px 16px;justify-content:flex-start}._uikit-modal-container-mobile_w3pbd_121 ._uikit-modal-body_w3pbd_55{padding:0 20px 20px;justify-content:flex-start}._uikit-modal-container-mobile_w3pbd_121 ._uikit-modal-footer_w3pbd_74{padding:0;border-top:.5px solid #e5e5e5;gap:0}._uikit-modal-container-mobile_w3pbd_121 ._uikit-modal-footer_w3pbd_74 ._uikit-modal-btn_w3pbd_82{flex:1;border-radius:0;height:56px;min-width:auto;background:#fff;font-size:17px}._uikit-modal-container-mobile_w3pbd_121 ._uikit-modal-footer_w3pbd_74 ._uikit-modal-btn_w3pbd_82:active{transform:none;background:#f5f5f5}._uikit-modal-container-mobile_w3pbd_121 ._uikit-modal-footer_w3pbd_74 ._uikit-modal-btn_w3pbd_82:hover{background:#fff}._uikit-modal-container-mobile_w3pbd_121 ._uikit-modal-footer_w3pbd_74 ._uikit-modal-btn-cancel_w3pbd_99{color:#666}._uikit-modal-container-mobile_w3pbd_121 ._uikit-modal-footer_w3pbd_74 ._uikit-modal-btn-cancel_w3pbd_99:first-child:last-child{border-radius:0 0 12px 12px}._uikit-modal-container-mobile_w3pbd_121 ._uikit-modal-footer_w3pbd_74 ._uikit-modal-btn-confirm_w3pbd_107{color:#1c66e5;border-left:.5px solid #e5e5e5;font-weight:600}:root{--uikit-theme-light-bg-color-topbar: #f9fafc;--uikit-theme-light-bg-color-operate: #fff;--uikit-theme-light-bg-color-input: #f0f2f7;--uikit-theme-light-bg-color-bubble-reciprocal: #f0f2f7;--uikit-theme-light-bg-color-bubble-own: #cce2ff;--uikit-theme-light-bg-color-default: #f0f2f7;--uikit-theme-light-bg-color-tag-mask: rgba(255, 255, 255, .55);--uikit-theme-light-bg-color-mask: rgba(0, 0, 0, .55);--uikit-theme-light-text-color-primary: rgba(0, 0, 0, .9);--uikit-theme-light-text-color-secondary: rgba(0, 0, 0, .55);--uikit-theme-light-text-color-tertiary: rgba(0, 0, 0, .4);--uikit-theme-light-text-color-disable: rgba(0, 0, 0, .28);--uikit-theme-light-text-color-link: #1c66e5;--uikit-theme-light-text-color-link-hover: #4588f5;--uikit-theme-light-text-color-link-disabled: #cce2ff;--uikit-theme-light-text-color-anti-primary: rgba(0, 0, 0, .9);--uikit-theme-light-text-color-anti-secondary: rgba(0, 0, 0, .55);--uikit-theme-light-text-color-warning: #ff7200;--uikit-theme-light-text-color-success: #0abf77;--uikit-theme-light-text-color-error: #e54545;--uikit-theme-light-dropdown-color-default: #fff;--uikit-theme-light-dropdown-color-hover: #f9fafc;--uikit-theme-light-dropdown-color-active: #cce2ff;--uikit-theme-light-list-color-default: #fff;--uikit-theme-light-list-color-hover: #f9fafc;--uikit-theme-light-list-color-active: #ebf3ff;--uikit-theme-light-stroke-color-primary: #e6e9f0;--uikit-theme-light-stroke-color-secondary: #f0f2f7;--uikit-theme-light-shadow-color: rgba(0, 0, 0, .06);--uikit-theme-light-floating-color-default: #ffffff;--uikit-theme-light-floating-color-operate: #F0F2F7;--uikit-theme-light-toast-color-default: #EBF3FF;--uikit-theme-light-toast-color-success: #DCFAE9;--uikit-theme-light-toast-color-warning: #ffd6b2;--uikit-theme-light-toast-color-error: #ffe7e6;--uikit-theme-light-button-color-hangup: #E54545;--uikit-theme-light-button-color-accept: #0ABF77;color-scheme:light dark}:root{--uikit-theme-dark-bg-color-topbar: #131417;--uikit-theme-dark-bg-color-operate: #1f2024;--uikit-theme-dark-bg-color-input: #2b2c30;--uikit-theme-dark-bg-color-bubble-reciprocal: #2b2c30;--uikit-theme-dark-bg-color-bubble-own: #5c9dff;--uikit-theme-dark-bg-color-default: #131417;--uikit-theme-dark-bg-color-tag-mask: rgba(0, 0, 0, .55);--uikit-theme-dark-bg-color-mask: rgba(0, 0, 0, .55);--uikit-theme-dark-text-color-primary: rgba(255, 255, 255, .93);--uikit-theme-dark-text-color-secondary: rgba(255, 255, 255, .55);--uikit-theme-dark-text-color-tertiary: rgba(255, 255, 255, .3);--uikit-theme-dark-text-color-disable: rgba(255, 255, 255, .28);--uikit-theme-dark-text-color-link: #4086ff;--uikit-theme-dark-text-color-link-hover: #2b6ad6;--uikit-theme-dark-text-color-link-disabled: #243047;--uikit-theme-dark-text-color-anti-primary: rgba(0, 0, 0, .9);--uikit-theme-dark-text-color-anti-secondary: rgba(0, 0, 0, .55);--uikit-theme-dark-text-color-warning: #e37f32;--uikit-theme-dark-text-color-success: #38a673;--uikit-theme-dark-text-color-error: #e6594c;--uikit-theme-dark-dropdown-color-default: #2b2c30;--uikit-theme-dark-dropdown-color-hover: #3a3c42;--uikit-theme-dark-dropdown-color-active: #1f2024;--uikit-theme-dark-list-color-default: #1f2024;--uikit-theme-dark-list-color-hover: #2b2c30;--uikit-theme-dark-list-color-active: #243047;--uikit-theme-dark-stroke-color-primary: #3a3c42;--uikit-theme-dark-stroke-color-secondary: #2b2c30;--uikit-theme-dark-shadow-color: rgba(0, 0, 0, .06);--uikit-theme-dark-floating-color-default: #2B2C30;--uikit-theme-dark-floating-color-operate: #3A3C42;--uikit-theme-dark-toast-color-default: #243047;--uikit-theme-dark-toast-color-success: #22352C;--uikit-theme-dark-toast-color-warning: #35231A;--uikit-theme-dark-toast-color-error: #422324;--uikit-theme-dark-button-color-hangup: #E6594C;--uikit-theme-dark-button-color-accept: #38A673;color-scheme:light dark}:root{--uikit-basic-color-white-1: #FFFFFF;--uikit-basic-color-white-2: rgba(255, 255, 255, .9);--uikit-basic-color-white-4: rgba(255, 255, 255, .55);--uikit-basic-color-white-6: rgba(255, 255, 255, .3);--uikit-basic-color-white-7: rgba(255, 255, 255, .14);--uikit-basic-color-black-1: rgb(0, 0, 0);--uikit-basic-color-black-2: rgba(0, 0, 0, .9);--uikit-basic-color-black-3: rgba(0, 0, 0, .72);--uikit-basic-color-black-4: rgba(0, 0, 0, .55);--uikit-basic-color-black-5: rgba(0, 0, 0, .4);--uikit-basic-color-black-8: rgba(0, 0, 0, .06);--uikit-basic-color-gray-dark-3: rgb(43, 44, 48)}._tuicallkit-container_h8knf_98{position:relative;width:960px;height:630px;border-radius:12px;overflow:hidden}._tuicallkit-container_h8knf_98._float_h8knf_105{position:absolute;visibility:hidden}._tuicallkit-container_h8knf_98._mobile_h8knf_109{background:none;border-radius:0;width:100%;height:100%}")),document.head.appendChild(t)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}})();
2
+ (function(x,w){typeof exports=="object"&&typeof module<"u"?w(exports,require("@trtc/call-engine-lite-js"),require("@tencentcloud/tui-core-lite"),require("@tencentcloud/lite-chat/basic"),require("react/jsx-runtime"),require("react"),require("react-dom"),require("react-dom/client")):typeof define=="function"&&define.amd?define(["exports","@trtc/call-engine-lite-js","@tencentcloud/tui-core-lite","@tencentcloud/lite-chat/basic","react/jsx-runtime","react","react-dom","react-dom/client"],w):(x=typeof globalThis<"u"?globalThis:x||self,w(x["tuicall-uikit-react"]={},x.callEngineLiteJs,x.TUICoreLite,x.TencentCloudChat,x.jsxRuntime,x.React,x.ReactDOM,x.ReactDOMClient))})(this,function(x,w,R,$a,M,d,qn,ea){var Mr,Fe,Pe,We,He;"use strict";var Kd=Object.defineProperty;var $d=(x,w,R)=>w in x?Kd(x,w,{enumerable:!0,configurable:!0,writable:!0,value:R}):x[w]=R;var m=(x,w,R)=>($d(x,typeof w!="symbol"?w+"":w,R),R);function qa(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const a=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,a.get?a:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const rt=qa(d),dr=qa(qn);var g=(t=>(t.CALL="call",t.CUSTOM="custom",t))(g||{}),G=(t=>(t[t.UNKNOWN=0]="UNKNOWN",t[t.AUDIO=1]="AUDIO",t[t.VIDEO=2]="VIDEO",t))(G||{}),X=(t=>(t.UNKNOWN="unknown",t.CALLEE="callee",t.CALLER="caller",t))(X||{}),b=(t=>(t.IDLE="idle",t.CALLING="calling",t.CONNECTED="connected",t))(b||{}),Cn=(t=>(t.CONTAIN="contain",t.COVER="cover",t.FILL="fill",t))(Cn||{}),pn=(t=>(t.RESOLUTION_360P="360p",t.RESOLUTION_480P="480p",t.RESOLUTION_540P="540p",t.RESOLUTION_720P="720p",t.RESOLUTION_1080P="1080p",t))(pn||{}),ei=(t=>(t.EN="en",t["ZH-CN"]="zh-cn",t.JA_JP="ja_JP",t))(ei||{});const ne={IDLE:"idle",BE_INVITED:"be-invited",DIALING_C2C:"dialing-c2c",DIALING_GROUP:"dialing-group",CALLING_C2C_AUDIO:"calling-c2c-audio",CALLING_C2C_VIDEO:"calling-c2c-video",CALLING_GROUP_AUDIO:"calling-group-audio",CALLING_GROUP_VIDEO:"calling-group-video"},gr={unknown:0,audio:1,video:2};var oe=(t=>(t.MICROPHONE="microphone",t.CAMERA="camera",t.SPEAKER="speaker",t))(oe||{}),st=(t=>(t[t.FRONT=0]="FRONT",t[t.BACK=1]="BACK",t))(st||{}),lt=(t=>(t.Camera="camera",t.Microphone="microphone",t.SwitchCamera="switchCamera",t.InviteUser="inviteUser",t))(lt||{}),Gt=(t=>(t.Open="open",t.Close="close",t))(Gt||{}),Ve=(t=>(t.LOCAL="local",t.REMOTE="remote",t))(Ve||{}),Zt=(t=>(t.LocalInLargeView="local",t.RemoteInLargeView="remote",t))(Zt||{}),ft=(t=>(t[t.INVITE=1]="INVITE",t[t.CANCEL_INVITE=2]="CANCEL_INVITE",t[t.ACCEPT_INVITE=3]="ACCEPT_INVITE",t[t.REJECT_INVITE=4]="REJECT_INVITE",t[t.INVITE_TIMEOUT=5]="INVITE_TIMEOUT",t))(ft||{});const ti={SWITCH_TO_AUDIO_CALL_FAILED:60001,SWITCH_TO_VIDEO_CALL_FAILED:60002,MICROPHONE_UNAVAILABLE:60003,CAMERA_UNAVAILABLE:60004,BAN_DEVICE:60005,NOT_SUPPORTED_WEBRTC:60006,ERROR_BLACKLIST:20007},ni={SWITCH_TO_AUDIO_CALL_FAILED:"switchToAudioCall-call-failed",SWITCH_TO_VIDEO_CALL_FAILED:"switchToVideoCall-call-failed",MICROPHONE_UNAVAILABLE:"microphone-unavailable",CAMERA_UNAVAILABLE:"camera-unavailable",BAN_DEVICE:"ban-device",NOT_SUPPORTED_WEBRTC:"not-supported-webrtc",ERROR_BLACKLIST:"blacklist-user-tips"};var ai=(t=>(t[t.NORMAL=0]="NORMAL",t[t.RELEASE=1]="RELEASE",t[t.WARNING=2]="WARNING",t[t.ERROR=3]="ERROR",t[t.NONE=4]="NONE",t))(ai||{});const Ln={CALL_STATUS:"callStatus",CALL_ROLE:"callRole",CALL_MEDIA_TYPE:"callMediaType",LOCAL_USER_INFO:"localUserInfo",LOCAL_USER_INFO_EXCLUDE_VOLUMN:"localUserInfoExcludeVolume",REMOTE_USER_INFO_LIST:"remoteUserInfoList",REMOTE_USER_INFO_EXCLUDE_VOLUMN_LIST:"remoteUserInfoExcludeVolumeList",CALLER_USER_INFO:"callerUserInfo",IS_GROUP:"isGroup",CALL_DURATION:"callDuration",CALL_TIPS:"callTips",TOAST_INFO:"toastInfo",IS_MINIMIZED:"isMinimized",ENABLE_FLOAT_WINDOW:"enableFloatWindow",BIG_SCREEN_USER_ID:"bigScreenUserId",LANGUAGE:"language",IS_CLICKABLE:"isClickable",DISPLAY_MODE:"displayMode",VIDEO_RESOLUTION:"videoResolution",PUSHER:"pusher",PLAYER:"player",IS_EAR_PHONE:"isEarPhone",IS_MUTE_SPEAKER:"isMuteSpeaker",IS_SHOW_AUTO_PLAY_DIALOG:"isShowAutoPlayDialog",SHOW_PERMISSION_TIP:"SHOW_PERMISSION_TIP",NETWORK_STATUS:"NetWorkStatus",CALL_ID:"callID",GROUP_ID:"groupID",ROOM_ID:"roomID",ROOM_ID_TYPE:"roomIdType",SHOW_SELECT_USER:"showSelectUser",IS_SHOW_ENABLE_VIRTUAL_BACKGROUND:"isShowEnableVirtualBackground",ENABLE_VIRTUAL_BACKGROUND:"enableVirtualBackground",GROUP_CALL_MEMBERS:"groupCallMembers",PUSHER_ID:"pusherId",IS_FORCE_USE_V2_API:"isForceUseV2API",MODAL_ERROR:"modalError",TRANSCRIBER_ROBOT_ID:"transcriberRobotId",REALTIME_MESSAGE_LIST:"realtimeMessageList",IS_AI_TRANSCRIBER_ENABLED:"isAITranscriberEnabled",IS_AI_TRANSCRIBER_RUNNING:"isAITranscriberRunning"},s={PREFIX:"【CallService】",AUDIO:"audio",VIDEO:"video",LOCAL_VIDEO:"localVideo",ERROR:"error",TIMEOUT:"timeout",RAF:"raf",INTERVAL:"interval",DEFAULT:"default",BOOLEAN:"boolean",STRING:"string",NUMBER:"number",OBJECT:"object",ARRAY:"array",FUNCTION:"function",UNDEFINED:"undefined",UNKNOWN:"unknown",ALL:"all",MYSELF:"myself",DEVICE_LIST:"deviceList",CAMERA_POSITION:"cameraPosition",CUSTOM_UI_CONFIG:"customUIConfig",TRANSLATE:"translate",...{INITIAL_PUSHER:"initialPusher",NEW_PUSHER:"newPusher"},...Ln,...{INNER_ATTR_KIT_INFO:"inner_attr_kit_info"}},Nr="https://web.sdk.qcloud.com/component/TUIKit/assets/call.png",Ar="https://web.sdk.qcloud.com/component/TUIKit/assets/call-video-reverse.svg",Dr=3,Tr=4;var ta=(t=>(t[t.TUI_CALL_KIT=14]="TUI_CALL_KIT",t[t.TIM_CALL_KIT=15]="TIM_CALL_KIT",t))(ta||{}),na=(t=>(t[t.NUMBER_ROOM_ID=1]="NUMBER_ROOM_ID",t[t.STRING_ROOM_ID=2]="STRING_ROOM_ID",t))(na||{});async function hr(t){if(!t)return!1;try{const e=await new Promise((n,a)=>{const i=new XMLHttpRequest;i.open("HEAD",t,!0),i.onload=()=>n(i),i.onerror=()=>a(i),i.send()});return e.status===200&&e.getResponseHeader("Content-Type")==="audio/mpeg"}catch(e){return console.warn(e),!1}}function fn(t){if(typeof t!="object"||t===null)return t;let e=Array.isArray(t)?[]:{};for(let n in t)t.hasOwnProperty(n)&&(e[n]=fn(t[n]));return e}const yt=typeof uni<"u"?uni:typeof wx<"u"?wx:void 0,Er=/^(https?:\/\/)?([\da-z.-]+)\.([a-z.]{2,6})([/\w .-]*)*\/?$/i,Cr=/(https?:\/\/[^\s]+)/g;function pr(){var n,a;const t=(n=yt.getAccountInfoSync)==null?void 0:n.call(yt),e=(a=t==null?void 0:t.miniProgram)==null?void 0:a.envVersion;return e==="develop"||e==="trial"}function ii(t){if(!t||typeof t!="string")return null;if(t.includes("<a ")||t.includes("<a>")){const n=t.match(/href=["']([^"']+)["']/);return n?n[1]:null}if(Er.test(t.trim()))return t.trim();const e=t.match(Cr);return e?e[0]:null}function Lr(t){if(!t||typeof t!="string")return"";let e=t.replace(/<[^>]+>/g,"");e=e.replace(/&nbsp;/g," ").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&").replace(/&quot;/g,'"'),e=e.replace(/\s+/g," ").trim();const n=ii(t);return n&&!e.includes(n)?e?`${e}
3
+ ${n}`:n:e}function fr(t){var e;try{const n=(e=mt==null?void 0:mt.getTim)==null?void 0:e.call(mt);if(n&&typeof n.callExperimentalAPI=="function"){const a={id:t.id,title:t.title,type:t.type,content:t.content,platform:"miniprogram"};n.callExperimentalAPI("reportModalView",JSON.stringify(a))}}catch(n){console.warn("[UIKitModal] reportModalView failed:",n)}}const yr=t=>new Promise(e=>{if(fr(t),!pr()){e({action:"confirm"});return}const n=ii(t.content),a=Lr(t.content),i=!!n;yt.showModal({title:t.title||"",content:a,cancelText:"取消",confirmText:i?"复制链接":"确认",success:o=>{var l,c;const r=o.confirm?"confirm":"cancel";o.confirm?(i&&n&&yt.setClipboardData({data:n,success:()=>{yt.showToast({title:"链接已复制",icon:"success"})}}),(l=t.onConfirm)==null||l.call(t)):(c=t.onCancel)==null||c.call(t),e({action:r,raw:o})},fail:()=>{var o;(o=t.onCancel)==null||o.call(t),e({action:"cancel"})}})}),jr={openModal:t=>yr(t)},Sr={hangup:"挂断",reject:"拒绝",accept:"接受",camera:"摄像头",microphone:"麦克风",speaker:"扬声器","open camera":"打开摄像头","close camera":"关闭摄像头","open microphone":"打开麦克风","close microphone":"关闭麦克风","video-to-audio":"转语音通话","virtual-background":"模糊背景","other side reject call":"对方已拒绝","reject call":"{{ userList }} 拒绝通话",cancel:"取消通话","other side line busy":"对方忙线","in busy":"{{ userList }} 正在忙","call timeout":"呼叫超时","end call":"{{ userList }} 结束通话","caller calling message":"等待对方接受邀请","callee calling video message":"邀请你视频通话","callee calling audio message":"邀请你语音通话","no microphone access":"没有麦克风权限","no camera access":"没有摄像头权限","invite member":"邀请成员","Invited group call":"邀请你加入多人通话","Those involved":"参与通话的有:",waiting:"等待接听...",me:"(我)","browser-authorization":"浏览器授权","mac-privacy":"系统偏好设置 -> 安全与隐私 -> 隐私","win-privacy":"设置 -> 隐私和安全性 -> 应用权限","mac-preferences":"打开系统偏好设置","win-preferences":"打开系统设置","Please enter userID":"请输入 userID","View more":"查看更多","people selected":"人已选中","Select all":"全选",Cancel:"取消",Done:"完成","exist group call":"当前群组中已经存在群组通话","camera enabled":"摄像头已开","camera disabled":"摄像头已关","microphone enabled":"麦克风已开","microphone disabled":"麦克风已关","speaker enabled":"扬声器已开","speaker disabled":"扬声器已关","open speaker":"开启扬声器","close speaker":"关闭扬声器","wait to be called":"等待接听",answered:"已接通","people in the call":"人参与通话","failed to obtain speakers":"无法获取扬声器","you have a new call":"您有一个新的通话","switch camera":"翻转",join:"加入","people on the call":"人正在通话","Supports a maximum of 9 people for simultaneous calls":"最多支持9人同时通话",you:"(你)","The network is poor during your current call":"当前通话你的网络不佳","The other user network is poor during the current call":"当前通话对方网络不佳","TUICallKit init is not complete":"TUICallKit 初始化登录未完成,需要在 init 完成后使用此 API","auto play failed":"音频播放被拦截,请点击恢复播放","click to resume":"恢复播放","Video call":"发起视频通话","Voice call":"发起语音通话","Call End":"通话结束","Switch voice call":"切换语音通话","Switch video call":"切换视频通话","Call duration":"通话时长","Call Cancel":"已取消","Other Side Cancel":"对方已取消",Decline:"已拒绝","Other Side Decline":"对方已拒绝","No answer":"超时无应答","Other Side No Answer":"对方无应答",Answered:"已接听","Other Side Line Busy":"对方忙线中","Line Busy":"忙线无应答",timeout:"{{ userList }} 超时","kick out":"被踢",call:"通话","video-call":"视频通话","audio-call":"音频通话",search:"搜索","search-result":"搜索结果","Wechat scan right QR code":"微信扫右二维码","Use-phone-and-computer":"用手机与电脑互打体验视频通话","Scan the QR code above":"扫描上方二维码","no-user":"未搜索到用户","member-not-added":"未添加成员","not-login":"未登录","login-status-expire":"登录状态已失效,请刷新网页重试","experience-multi-call":"体验多人通话请下载全功能demo:","not-support-multi-call":"多人通话接口未开放","input-phone-userID":"请输入手机号/用户ID",userID:"用户ID","already-enter":"已经进入当前通话","image-resolution":"分辨率","default-image-resolution":"默认分辨率","invited-person":"添加成员","be-rejected":"对方已拒绝,","be-no-response":"对方无应答,","be-line-busy":"对方忙线中,","be-canceled":"对方已取消","voice-call-end":"语音通话结束","video-call-end":"视频通话结束","method-call-failed":"同步操作失败","failed-to-obtain-permission":"权限获取失败","environment-detection-failed":"环境检测失败","switchToAudioCall-call-failed":"切语音调用失败","switchToVideoCall-call-failed":"切视频调用失败","microphone-unavailable":"没有可用的麦克风设备","camera-unavailable":"没有可用的摄像头设备","ban-device":"用户禁止使用设备","not-supported-webrtc":"当前环境不支持 WebRTC","blacklist-user-tips":"发起通话失败,被对方拉入黑名单,禁止发起!","is-already-calling":"TUICallKit 已在通话状态","need-init":"TUICallKit 发起通话前需保证 TUICallKitAPI.init() 方法执行成功","can't call yourself":"不能呼叫自己","accept-error":"接通失败","accept-device-error":"接通失败,通话设备获取失败","call-error":"发起通话失败","error.10001":"您的应用还未开通音视频通话(TUICallKit)能力,首次使用,您可以去<a href='https://cloud.tencent.com/document/product/647/104662'>开通服务</a>申请免费体验,或购买通话能力套餐包:<a href='https://console.cloud.tencent.com/trtc'>购买页面</a>","error.10002":"您暂不支持使用该能力,请前往<a href='https://buy.cloud.tencent.com/avc?addRavLicense=1&position=1600110000&ravLicenseType=1&regionId=1'>购买页</a>购买开通","error.10004":"摄像头/麦克风权限被拒绝,请检查浏览器设置,确保已允许使用您的摄像头和麦克风。如果您确认已授予权限,请前往<a href='https://web.sdk.qcloud.com/trtc/webrtc/demo/detect/index.html'>音视频能力检测</a>检查您的设备和环境是否支持通话","error.10005":"未检测到麦克风设备。请确保您的设备已连接麦克风,并检查系统或浏览器设置中麦克风是否可用。","error.10006":"未检测到摄像头设备。请确保您的摄像头已连接,并检查系统或浏览器设置中摄像头是否可用。","error.10007":"当前浏览器环境不支持 WebRTC 功能。请前往<a href='https://web.sdk.qcloud.com/trtc/webrtc/demo/detect/index.html'>音视频能力检测</a>检查您的设备和环境兼容性","error.10008":"TUICallEngine 尚未完成初始化或登录。请确保在调用此功能前,已成功执行 init 或 login 操作。解决方案:<a href='https://cloud.tencent.com/document/product/647/78769#3a61f42b-e06f-49af-88bf-362d40025887'>查看文档</a>","error.10012":"检测到当前页面正处于 http 协议下,为确保生产环境用户顺畅接入和体验 TUICallEngine SDK 的全部功能,请使用 https 协议(或 localhost)访问音视频应用页面。详情请前往:<a href='https://web.sdk.qcloud.com/trtc/webrtc/v5/doc/zh-cn/tutorial-05-info-browser.html#h2-3'>查看文档</a>","error.10013":"呼叫失败:您已被对方拉黑或您拉黑了对方","error.10014":"发起通话失败,用户 ID 无效,请确认该用户已注册。","error.10015":"未开通 TRTC 服务导致进房失败,请前往<a href='https://console.cloud.tencent.com/trtc'>控制台</a>为您的应用开通 TRTC 服务","error.10015.chat":"当前为 Chat 与 TUICallKit 融合场景,未开通 TRTC 服务导致进房失败,请前往 <a href='https://console.cloud.tencent.com/im/rtc-config'>IM 控制台</a>为您的应用开通 TRTC 服务","error.10016":"您的应用还未开通音视频通话(TUICallKit)能力,您可以去<a href='https://console.cloud.tencent.com/im/detail'>控制台</a>申请免费体验,或购买<a href='https://buy.cloud.tencent.com/avc'>通话能力套餐包</a>,有疑问请参考<a href='https://cloud.tencent.com/document/product/647/104662'>相关文档</a>",error:"错误","ai-subtitle":"AI 字幕","ai-subtitle-settings":"AI 字幕设置","recognition-language":"识别语言","translation-language":"翻译语言","subtitle-display-settings":"字幕显示设置","subtitle-display-bilingual":"字幕显示双语","no-translation":"不翻译","show-bilingual":"显示双语","show-original-only":"仅显示原文",save:"保存","select-recognition-language":"请选择识别语言","select-translation-language":"请选择翻译语言",confirm:"确定","recognition-and-translation-settings":"识别与翻译设置"},mr={hangup:"Hang up",reject:"Decline",accept:"Accept",camera:"Camera",microphone:"Microphone",speaker:"speaker","open camera":"Open Camera","close camera":"Close Camera","open microphone":"Open Microphone","close microphone":"Close Microphone","video-to-audio":"Switch to audio","virtual-background":"Blur Background","other side reject call":"other side reject call","reject call":"{{ userList }} Reject Call",cancel:"Cancel Call","other side line busy":"other side line busy","in busy":"{{ userList }} in busy","call timeout":"call timeout","no response from the other side":"no response from the other side","end call":"{{ userList }} end call","caller calling message":"Awaiting response","callee calling video message":"invites you to a video call","callee calling audio message":"invites you to a voice call","no microphone access":"no microphone access","no camera access":"no camera access","invite member":"Invite Member","Invited group call":"invites you to a group call",waiting:"Calling...",me:"(me)","browser-authorization":"Browser authorization","mac-privacy":"System Preferences -> Security and Privacy -> Privacy","win-privacy":"Setting -> Privacy and Security -> App permissions","mac-preferences":"Open System Preferences","win-preferences":"Open Setting","Please enter userID":"Please enter userID","View more":"View more","people selected":"people selected","Select all":"Select all",Cancel:"Cancel",Done:"Done","exist group call":"A group call already exists in the current group","camera enabled":"Camera On","camera disabled":"Camera Off","microphone enabled":"Unmuted","microphone disabled":"Muted","speaker enabled":"Speaker On","speaker disabled":"Speaker Off","open speaker":"Turn on speaker","close speaker":"Turn off speaker","wait to be called":"Waiting",answered:"Connected","people in the call":" other(s) in the call","failed to obtain speakers":"failed to obtain speakers","you have a new call":"You have a new call","switch camera":"Switch",join:"Join","people on the call":"people on the call","Supports a maximum of 9 people for simultaneous calls":"Supports a maximum of 9 people for simultaneous calls",you:"(you)","The network is poor during your current call":"The network is poor during your current call","The other user network is poor during the current call":"The other party's network is poor during the current call","TUICallKit init is not complete":"TUICallKit init is not complete. You need to use this API after the init API is finished.","auto play failed":"Audio playback was blocked","click to resume":"Resume playback","Video call":"Video call","Voice call":"Voice call","Call End":"Call End","Switch voice call":"Switch voice call","Switch video call":"Switch video call","Call duration":"Duration","Call Cancel":"Canceled","Other Side Cancel":"Call canceled by caller",Decline:"Declined","Other Side Decline":"Call declined by user","No answer":"Call not answered","Other Side No Answer":"Call wasn't answered",Answered:"Answered","Other Side Line Busy":"Line busy","Line Busy":"Line busy. Call not received.","Those involved":"Those involved in the call are",call:"call","video-call":"video call","audio-call":"audio call",search:"search","search-result":"search result","no-user":"user not found","member-not-added":"member not added","input-phone-userID":"phone number or userID","not-login":"not logged in","login-status-expire":"login status is invalid, please refresh the page and try again","experience-multi-call":"experience multi-person calls, please download the full-featured demo: ","not-support-multi-call":"multi-person call interface is not open",userID:"userID","already-enter":"entered the call","camera-opened":"Camera on","camera-closed":"Camera off","microphone-opened":"Mic on","microphone-closed":"Mic off",timeout:"{{ userList }} timeout","kick out":"kick out","image-resolution":"Resolution","default-image-resolution":"Default","invited-person":"Invite","be-rejected":"Call declined, ","be-no-response":"No response, ","be-line-busy":"Line busy, ","be-canceled":"The call is canceled, ","voice-call-end":"Voice call ended","video-call-end":"Video call ended","method-call-failed":"Failed to sync the operation","failed-to-obtain-permission":"Failed to obtain permissions","environment-detection-failed":"Failed to check the environment","switchToAudioCall-call-failed":"switch to audio call method failed","switchToVideoCall-call-failed":"switch to video call method failed","microphone-unavailable":"No mic found","camera-unavailable":"No camera found","ban-device":"Device access denied","not-supported-webrtc":"Your current environment does not support WebRTC","blacklist-user-tips":"The identifier is in blacklist. Failed to send this message!","is-already-calling":"TUICallKit is already on a call","need-init":"Before initiating a call with TUICallKit, ensure that the TUICallKitAPI.init() method has executed successfully. ","can't call yourself":"Can't call yourself","Use-phone-and-computer":"Use your mobile phone and computer to experience video calls","Wechat scan right QR code":"Wechat scan right QR code","Scan the QR code above":"Scan the QR code above","accept-error":"Accept failed","accept-device-error":"Accept failed, unable to auth calling device","call-error":"Start call failed","error.10001":"Your application has not enabled audio/video call (TUICallKit) capability. For first-time use, you can go to <a href='https://cloud.tencent.com/document/product/647/104662'>Enable Service</a> to apply for a free trial, or purchase call capability packages: <a href='https://console.cloud.tencent.com/trtc'>Purchase Page</a>","error.10002":"You do not currently support using this capability. Please go to the <a href='https://buy.cloud.tencent.com/avc?addRavLicense=1&position=1600110000&ravLicenseType=1&regionId=1'>purchase page</a> to buy and activate it","error.10004":"Camera/microphone permission was denied. Please check browser settings to ensure camera and microphone access is allowed. If you have confirmed permission is granted, please go to <a href='https://web.sdk.qcloud.com/trtc/webrtc/demo/detect/index.html'>Audio/Video Capability Detection</a> to check if your device and environment support calls","error.10005":"No microphone device detected. Please ensure your device has a microphone connected and check if the microphone is available in system or browser settings.","error.10006":"No camera device detected. Please ensure your camera is connected and check if the camera is available in system or browser settings.","error.10007":"Current browser environment does not support WebRTC functionality. Please go to <a href='https://web.sdk.qcloud.com/trtc/webrtc/demo/detect/index.html'>Audio/Video Capability Detection</a> to check your device and environment compatibility","error.10008":"TUICallEngine has not completed initialization or login. Please ensure you have successfully executed init or login operations before calling this function. Solution: <a href='https://cloud.tencent.com/document/product/647/78769#3a61f42b-e06f-49af-88bf-362d40025887'>View Documentation</a>","error.10012":"Detected that the current page is under HTTP protocol. To ensure smooth access and full functionality of TUICallEngine SDK for production environment users, please use HTTPS protocol (or localhost) to access the audio/video application page. For details, please visit: <a href='https://web.sdk.qcloud.com/trtc/webrtc/v5/doc/zh-cn/tutorial-05-info-browser.html#h2-3'>View Documentation</a>","error.10013":"Call failed: You have been blocked by the other party or you have blocked the other party","error.10014":"Call initiation failed. User ID is invalid. Please confirm that the user is registered.","error.10015":"Failed to enter the room because the TRTC service is not activated. Please go to the <a href='https://console.cloud.tencent.com/trtc'>console</a> to activate the TRTC service for your application","error.10015.chat":"You are currently in the Chat + TUICallKit integrated scenario. Failed to enter the room because the TRTC service is not activated. Please go to the <a href='https://console.cloud.tencent.com/im/rtc-config'>IM console</a> to activate the TRTC service for your application","error.10016":"Your application has not enabled the audio and video call (TUICallKit) capability. You can apply for a free trial in the <a href='https://console.cloud.tencent.com/im/detail'>console</a>, or purchase the <a href='https://buy.cloud.tencent.com/avc'>call capability package</a>. If you have any questions, please refer to the <a href='https://cloud.tencent.com/document/product/647/104662'>documentation</a>",error:"Error","ai-subtitle":"AI Subtitle","ai-subtitle-settings":"AI Subtitle Settings","recognition-language":"Recognition Language","translation-language":"Translation Language","subtitle-display-settings":"Subtitle Display Settings","subtitle-display-bilingual":"Show Bilingual Subtitles","no-translation":"No Translation","show-bilingual":"Show Bilingual","show-original-only":"Show Original Only",save:"Save","select-recognition-language":"Please select recognition language","select-translation-language":"Please select translation language",confirm:"Confirm","recognition-and-translation-settings":"Recognition & Translation Settings"},Or={hangup:"通話終了",reject:"拒否",accept:"応答",camera:"カメラ",microphone:"マイク",speaker:"スピーカー","virtual-background":"ボケ背景","other side reject call":"通話が拒否されました","reject call":"{{ userList }} 通話拒否",cancel:"通話をキャンセル","other side line busy":"相手が通話中です","in busy":"{{ userList }} 通話中","call timeout":"呼び出しタイムアウト","end call":"{{ userList }} 通話終了","caller calling message":"応答を待っています","callee calling video message":"ビデオ通話に招待されました","callee calling audio message":"音声通話に招待されました","no microphone access":"マイクにアクセスできません","no camera access":"カメラにアクセスできません","invite member":"メンバーを招待する","browser-authorization":"ブラウザ認証","mac-privacy":"システム環境設定 -> セキュリティとプライバシー ->プライバシー","win-privacy":"設定 -> セキュリティとプライバシー ->アプリのアクセス許可","mac-preferences":"システム環境設定を開く","win-preferences":"システム設定を開く","Please enter userID":"ユーザーIDを入力してください","View more":"もっと見る","people selected":"人が選択されました","Select all":"すべて選択",Cancel:"キャンセル",Done:"完了","exist group call":"現在のグループには既にグループ通話が存在しています","Video call":"ビデオ通話を開始","Voice call":"音声通話を開始","Call End":"通話終了","Switch audio call":"音声通話に切り替える","Switch video call":"ビデオ通話に切り替える","Call duration":"通話時間","Call Cancel":"通話をキャンセルする","Other Side Cancel":"相手がキャンセルしました",Decline:"通話を拒否する","Other Side Decline":"相手が拒否しました","No answer":"無応答","Other Side No Answer":"相手からの返答はありません",Answered:"応答しました","Other Side Line Busy":"相手は現在忙しくて対応できません","Line Busy":"忙しいので応答できません","open camera":"オープンカメラ","close camera":"カメラを閉じる","open microphone":"オープンマイク","close microphone":"マイクを閉じる","camera enabled":"カメラオン","camera disabled":"カメラオフ","microphone enabled":"マイクオン","microphone disabled":"マイクオフ","speaker enabled":"スピーカーオン","speaker disabled":"スピーカーオフ","open speaker":"スピーカーをオンにする","close speaker":"スピーカーの電源を切ります","wait to be called":"待機中",answered:"接続済み","people in the call":"通話に参加している人たち","failed to obtain speakers":"スピーカーが見つかりません","you have a new call":"新しい通話があります","switch camera":"切り替え",join:"参加する","people on the call":"人が通話中です","Supports a maximum of 9 people for simultaneous calls":"最大で9人まで同時通話が可能です",you:"(あなた)","The network is poor during your current call":"現在の通話で、あなたのネットワークは不良です","The other user network is poor during the current call":"現在の通話で、相手側のネットワークが不良です","TUICallKit init is not complete":"TUICallKitの初期化ログインが完了していません。init が完了した後にこのAPIを使用する必要があります。","auto play failed":"オーディオ再生がブロックされました","click to resume":"再生を再開",timeout:"{{ userList }} タイムアウト","kick out":"キックアウトされました","Invited group call":"グループ通話に招待されました。","Those involved":"参加者:",call:"通話","video-call":"ビデオ通話","audio-call":"音声通話",search:"検索","search-result":"検索結果","Wechat scan right QR code":"WeChatで右側にあるQRコードを読み取ります。","Use-phone-and-computer":"携帯電話とコンピュータを使用してビデオ通話を体験してください","Scan the QR code above":"上のQRコードを読み取ります。","no-user":"ユーザーが見つかりませんでした","member-not-added":"メンバーが追加されていません","not-login":"ログインしていません","login-status-expire":"ログインの有効期限が過ぎています。ページを更新してもう一度お試しください","experience-multi-call":"複数人で同時に音声通話できるグループ通話機能を体験するには、全機能のデモをダウンロードしてください","not-support-multi-call":"グループ通話インターフェイスが開いていません","input-phone-userID":"携帯電話番号/ユーザーIDを入力してください",userID:"ユーザーID","already-enter":"すでに通話に参加しています",waiting:"応答を待っています...","camera-opened":"カメラがオンになっています","camera-closed":"カメラがオフになっています","microphone-opened":"マイクがオンになっています","microphone-closed":"マイクがオフになっています","image-resolution":"解像度","default-image-resolution":"デフォルト解像度","invited-person":"メンバーを招待","video-to-audio":"音声通話に切り替えます",me:"(自分)","be-rejected":"通話が拒否されました, ","be-no-response":"応答なし, ","be-line-busy":"相手が通話中です, ","be-canceled":"相手が通話をキャンセルしました","voice-call-end":"音声通話が終了しました","video-call-end":"ビデオ通話が終了しました","method-call-failed":"操作の同期に失敗しました","failed-to-obtain-permission":"権限の取得に失敗しました","environment-detection-failed":"環境の検出に失敗しました","switchToAudioCall-call-failed":"音声通話に切り替えることはできません","switchToVideoCall-call-failed":"ビデオ通話に切り替えることはできません","microphone-unavailable":"使用できるマイクがありません","camera-unavailable":"使用できるカメラがありません","ban-device":"デバイスへのアクセスが拒否されました","not-supported-webrtc":"現在の環境はWebRTCをサポートしていません","blacklist-user-tips":"ユーザーはブラックリストに登録され、通話が開始できませんでした","is-already-calling":"TUICallKit はすでに通話中です","need-init":"TUICallKitで通話を開始する前に、TUICallKitAPI.init() メソッドが正常に実行されたことを確認してください。","can't call yourself":"自分に電話をかけることができません","accept-error":"接続できませんでした","accept-device-error":"接続できませんでした。発信側デバイスを認証できません","call-error":"通話が開始できませんでした","error.10001":"あなたのアプリケーションは音声・ビデオ通話(TUICallKit)機能を有効にしていません。初めてご利用の場合、<a href='https://cloud.tencent.com/document/product/647/104662'>サービスを有効にする</a>で無料体験を申請するか、通話機能パッケージを購入してください:<a href='https://console.cloud.tencent.com/trtc'>購入ページ</a>","error.10002":"現在この機能を使用することはできません。<a href='https://buy.cloud.tencent.com/avc?addRavLicense=1&position=1600110000&ravLicenseType=1&regionId=1'>購入ページ</a>で購入して有効にしてください","error.10004":"カメラ/マイクのアクセス許可が拒否されました。ブラウザ設定を確認し、カメラとマイクの使用が許可されていることを確認してください。許可されている場合は、<a href='https://web.sdk.qcloud.com/trtc/webrtc/demo/detect/index.html'>音声・ビデオ機能検出</a>にアクセスして、お使いのデバイスと環境が通話をサポートしているか確認してください","error.10005":"マイクデバイスが検出されませんでした。デバイスにマイクが接続されていることを確認し、システムまたはブラウザ設定でマイクが利用可能かどうかを確認してください。","error.10006":"カメラデバイスが検出されませんでした。カメラが接続されていることを確認し、システムまたはブラウザ設定でカメラが利用可能かどうかを確認してください。","error.10007":"現在のブラウザ環境はWebRTC機能をサポートしていません。<a href='https://web.sdk.qcloud.com/trtc/webrtc/demo/detect/index.html'>音声・ビデオ機能検出</a>にアクセスして、お使いのデバイスと環境の互換性を確認してください","error.10008":"TUICallEngineが初期化またはログインを完了していません。この機能を呼び出す前に、initまたはlogin操作が正常に実行されていることを確認してください。解決策:<a href='https://cloud.tencent.com/document/product/647/78769#3a61f42b-e06f-49af-88bf-362d40025887'>ドキュメントを確認</a>","error.10012":"現在のページがHTTPプロトコル下にあることが検出されました。本番環境のユーザーがTUICallEngine SDKの全機能をスムーズに利用できるようにするため、音声・ビデオアプリケーションページにはHTTPSプロトコル(またはlocalhost)を使用してアクセスしてください。詳細については、<a href='https://web.sdk.qcloud.com/trtc/webrtc/v5/doc/zh-cn/tutorial-05-info-browser.html#h2-3'>ドキュメントを確認</a>してください","error.10013":"通話失敗:相手にブロックされているか、または相手をブロックしています","error.10014":"通話の開始に失敗しました。ユーザーIDが無効です。ユーザーが登録されていることを確認してください。","error.10015.chat":"現在は Chat と TUICallKit の統合シナリオです。TRTC サービスが有効化されていないため、ルームへの入室に失敗しました。<a href='https://console.cloud.tencent.com/im/rtc-config'>IM コンソール</a>でアプリケーションの TRTC サービスを有効化してください","error.10016":"あなたのアプリケーションは音声・ビデオ通話(TUICallKit)機能を有効にしていません。<a href='https://console.cloud.tencent.com/im/detail'>コンソール</a>で無料体験を申請するか、<a href='https://buy.cloud.tencent.com/avc'>通話機能パッケージ</a>を購入してください。ご不明な点がある場合は、<a href='https://cloud.tencent.com/document/product/647/104662'>ドキュメント</a>をご参照ください",error:"エラー","ai-subtitle":"AI字幕","ai-subtitle-settings":"AI字幕設定","recognition-language":"認識言語","translation-language":"翻訳言語","subtitle-display-settings":"字幕表示設定","subtitle-display-bilingual":"バイリンガル字幕を表示","no-translation":"翻訳しない","show-bilingual":"バイリンガル表示","show-original-only":"原文のみ表示",save:"保存","select-recognition-language":"認識言語を選択してください","select-translation-language":"翻訳言語を選択してください",confirm:"確認","recognition-and-translation-settings":"認識と翻訳の設定"},Ft=typeof wx<"u"&&typeof wx.getSystemInfoSync=="function"&&!!wx.getSystemInfoSync().fontSizeSetting,oi=typeof uni<"u"&&typeof uni>"u",ri=Ft||oi,si=typeof uni<"u",li=function(){return(typeof uni<"u"||typeof window<"u")&&!ri}(),wr=function(){return Ft?wx:si?uni:window}(),Oe=li&&window&&window.navigator&&window.navigator.userAgent||"",Ur=/Android/i.test(Oe),zr=/(?:Windows Phone)/.test(Oe),vr=/(?:SymbianOS)/.test(Oe),br=/iPad/i.test(Oe)||/iPhone/i.test(Oe)||/iPod/i.test(Oe),ci=/OpenHarmony|HarmonyOS|ArkWeb/i.test(Oe),xr=ci&&/\bPC\b/i.test(Oe),_r=ci&&/Phone|Tablet|Mobile/i.test(Oe)&&!xr,Mi=Ur||zr||vr||br||_r,yn=li&&!Mi,kr=yn&&Oe.includes("Windows NT"),Vr=yn&&Oe.includes("Mac");let ui=!1;Ft&&(ui=(((Mr=wx.getSystemInfoSync())==null?void 0:Mr.system)||"").includes("Harmony"));let Ii=(Fe=class{constructor(){m(this,"global",wr);m(this,"isPC",!1);m(this,"isH5",!1);m(this,"isWeChat",!1);m(this,"isApp",!1);m(this,"isUniPlatform",!1);m(this,"isOfficial",!1);m(this,"isWIN",!1);m(this,"isMAC",!1);m(this,"isWxHarmony",!1);this.initEnv()}static getInstance(){return Fe.instance||(Fe.instance=new Fe),Fe.instance}initEnv(){this.isPC=yn,this.isH5=Mi,this.isWeChat=Ft,this.isApp=oi&&!Ft,this.isUniPlatform=si,this.isWIN=kr,this.isMAC=Vr,this.isWxHarmony=ui}initOfficial(e){this.isOfficial=e===1400187352||e===1400188366}},m(Fe,"instance"),Fe);const aa=function(t){return typeof t===s.UNDEFINED},ia=function(t){if(typeof t!==s.OBJECT||t===null)return!1;const e=Object.getPrototypeOf(t);if(e===null)return!0;let n=e;for(;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);return e===n},di=function(t){return typeof t===s.STRING},Qr=function(t){return typeof t===s.BOOLEAN},Br=function(t){return t!==null&&(typeof t===s.NUMBER&&!isNaN(t-0)||typeof t===s.OBJECT&&t.constructor===Number)};function gi(t){const e=Math.floor(t/3600),n=Math.floor(t%3600/60),a=Math.floor(t%60);let i=e>9?`${e}`:`0${e}`;return i+=n>9?`:${n}`:`:0${n}`,i+=a>9?`:${a}`:`:0${a}`,i}function Yr(t){if(typeof t===s.STRING)try{return!!JSON.parse(t)}catch(e){return console.debug(e),!1}return!1}const jn=function(t){return!t||!Yr(t)?t:JSON.parse(t)};function Ni(t){var e;return((e=t==null?void 0:t.message)==null?void 0:e.indexOf("is ongoing, please avoid repeated calls"))!==-1}function Rr(t){const{message:e}=t;return(e==null?void 0:e.indexOf("NotAllowedError: Permission denied"))!==-1}function oa(){return Date.now()}const Sn=function(t){return typeof t===s.FUNCTION},Gr=()=>{if(Ii.getInstance().isWeChat)return"zh-cn";const t=((navigator==null?void 0:navigator.language)||(navigator==null?void 0:navigator.userLanguage)||"").substr(0,2);let e="en";switch(t){case"zh":e="zh-cn";break;case"ja":e="ja_JP";break;default:e="en"}return e};function Zr(t){}function Fr(t,e){return t.replace(/{{\s*(\w+)(\s*,\s*[^}]+)?\s*}}/g,(n,a)=>{const i=a.trim();return e[i]!==void 0?String(e[i]):n})}function Pr(){var n;const t=navigator.userAgent||"",e=t.toLowerCase();return e.includes("miniprogram")||window.__wxjs_environment==="miniprogram"?"miniprogram":e.includes("webview")||e.includes(" wv")||(n=window.webkit)!=null&&n.messageHandlers?"webview":/Android|iPhone|iPad|iPod|Mobile/i.test(t)?"mobile-browser":"pc-browser"}function Wr(){return/iPad|iPhone|iPod/.test(navigator.userAgent||"")}function Ai(){return/Android/.test(navigator.userAgent||"")}function Hr(t){if(typeof window>"u")return;let e=!1;const n=Pr();console.log(`[ExitDetection] Environment: ${n}, iOS: ${Wr()}, Android: ${Ai()}`);const a=(c,u)=>{if(!e){e=!0,console.log(`[ExitDetection] Exit triggered by: ${c}`);try{t(u)}catch(I){console.error("[ExitDetection] Callback error:",I)}setTimeout(()=>{e=!1},1e3)}},i=c=>{var N;const I=(((N=performance==null?void 0:performance.getEntriesByType)==null?void 0:N.call(performance,"navigation"))||[])[0];if(!(I&&I.type==="navigate"))return a("beforeunload",c),c.returnValue="",""},o=c=>{c.persisted||a("pagehide",c)},r=()=>{document.visibilityState==="hidden"&&console.log("[ExitDetection] Visibility changed to hidden (not triggering exit)")},l=()=>{a("freeze")};window.addEventListener&&window.addEventListener("pagehide",o,{capture:!0}),(n==="pc-browser"||Ai())&&window.addEventListener("beforeunload",i),document.addEventListener("visibilitychange",r),"onfreeze"in document&&document.addEventListener("freeze",l),window.addEventListener("unload",c=>{a("unload",c)}),console.log(`[ExitDetection] Listeners registered for environment: ${n}`)}const le={OTHER_SIDE:"other side",CANCEL:"cancel",OTHER_SIDE_REJECT_CALL:"other side reject call",REJECT_CALL:"reject call",OTHER_SIDE_LINE_BUSY:"other side line busy",IN_BUSY:"in busy",CALL_TIMEOUT:"call timeout",END_CALL:"end call",TIMEOUT:"timeout",KICK_OUT:"kick out",CALLER_CALLING_MSG:"caller calling message",CALLER_GROUP_CALLING_MSG:"wait to be called",CALLEE_CALLING_VIDEO_MSG:"callee calling video message",CALLEE_CALLING_AUDIO_MSG:"callee calling audio message",NO_MICROPHONE_DEVICE_PERMISSION:"no microphone access",NO_CAMERA_DEVICE_PERMISSION:"no camera access",EXIST_GROUP_CALL:"exist group call",LOCAL_NETWORK_IS_POOR:"The network is poor during your current call",REMOTE_NETWORK_IS_POOR:"The other user network is poor during the current call"},jt={"zh-cn":Sr,en:mr,ja_JP:Or};function we(t){var a,i;const e=E.getData(g.CALL,s.LANGUAGE);let n="";if(di(t))n=((a=jt==null?void 0:jt[e])==null?void 0:a[t])||"";else if(ia(t)){const{key:o,options:r}=t;n=((i=jt==null?void 0:jt[e])==null?void 0:i[o])||"",n=Fr(n,r)}return n}class Jr{constructor(){m(this,"defaultStore",{callStatus:b.IDLE,callRole:X.UNKNOWN,callMediaType:G.UNKNOWN,localUserInfo:{userId:""},localUserInfoExcludeVolume:{userId:""},remoteUserInfoList:[],remoteUserInfoExcludeVolumeList:[],callerUserInfo:{userId:""},isGroup:!1,callDuration:"00:00:00",callTips:"",toastInfo:{text:""},isMinimized:!1,enableFloatWindow:!1,bigScreenUserId:"",language:Gr(),isClickable:!1,deviceList:{cameraList:[],microphoneList:[],currentCamera:{},currentMicrophone:{}},showPermissionTip:!1,netWorkQualityList:[],isMuteSpeaker:!1,isShowAutoPlayDialog:!1,callID:"",groupID:"",roomID:0,roomIdType:0,cameraPosition:st.FRONT,groupCallMembers:[],displayMode:Cn.COVER,videoResolution:pn.RESOLUTION_720P,showSelectUser:!1,pusher:{},player:[],isEarPhone:!1,pusherId:"",isShowEnableVirtualBackground:!1,enableVirtualBackground:!1,customUIConfig:{button:{},viewBackground:{},layoutMode:Zt.RemoteInLargeView},translate:we,isForceUseV2API:!1,transcriberRobotId:null,realtimeMessageList:[],isAITranscriberEnabled:!1,isAITranscriberRunning:!1});m(this,"store",fn(this.defaultStore));m(this,"prevStore",fn(this.defaultStore))}update(e,n){switch(e){case s.CALL_TIPS:const a=this.getData(e);this.prevStore[e]=a;default:this.store[e]=n}}getPrevData(e){return e?this.prevStore[e]:this.prevStore}getData(e){return e?this.store[e]:this.store}reset(e=[]){e.length===0&&(e=Object.keys(this.store));const n=e.reduce((a,i)=>({...a,[i]:this.defaultStore[i]}),{});this.store={...this.defaultStore,...this.store,...n}}}let St=(Pe=class{constructor(){m(this,"task");m(this,"storeMap");m(this,"timerId",-1);this.storeMap={[g.CALL]:new Jr},this.task={}}static getInstance(){return Pe.instance||(Pe.instance=new Pe),Pe.instance}watch(e,n,a){this.task[e]||(this.task[e]={});const i=this.task[e];Object.keys(n).forEach(o=>{const r=n[o];i[o]||(i[o]=new Map),i[o].set(r,1);const{notifyRangeWhenWatch:l}=a||{};if(l===s.ALL&&this.notify(e,o),l===s.MYSELF){const c=this.getData(e,o);r.call(this,c)}})}unwatch(e,n){if(!this.task[e])return;const a=this.task[e];Object.keys(n).forEach(i=>{a[i].delete(n[i])})}update(e,n,a){var i;(di(a)||Br(a)||Qr(a))&&this.storeMap[e].store[n]===a||((i=this.storeMap[e])==null||i.update(n,a),this.notify(e,n))}getPrevData(e,n){var a;return(a=this.storeMap[e])==null?void 0:a.getPrevData(n)}getData(e,n){var a;return(a=this.storeMap[e])==null?void 0:a.getData(n)}notify(e,n){if(!this.task[e])return;const a=this.task[e];if(a[n]){const i=a[n],o=this.getData(e,n);for(const[r]of i.entries())r.call(this,o)}}reset(e,n=[],a=!1){if(e in this.storeMap){const i=this.storeMap[e];n.length===0&&(n=Object.keys(i==null?void 0:i.store)),i.reset(n),a&&n.forEach(o=>{this.notify(e,o)})}}updateStore(e,n){const a=n||g.CALL;Object.keys(e).forEach(i=>{this.update(a,i,e[i])})}},m(Pe,"instance"),Pe);const Xr=St.getInstance(),Kr=[-1001,-1002,-1101,60003,60004,60006,-1201,3e4,20007,101002,101011,-3301],$r={"-1001":{id:10001,key:"error.10001"},"-1002":{id:10002,key:"error.10002"},"-1101":{id:10004,key:"error.10004"},60003:{id:10005,key:"error.10005"},60004:{id:10006,key:"error.10006"},60006:{id:10007,key:"error.10007"},"-1201":{id:10008,key:"error.10008"},3e4:{id:10012,key:"error.10012"},20007:{id:10013,key:"error.10013"},101002:{id:10014,key:"error.10014"},101011:{id:10016,key:"error.10016"},"-3301":{id:10015,key:"error.10015",chatKey:"error.10015.chat"}},qr=[-1001,-1002,101002,101011,-3301],es={"-1001":{id:10001,content:"您的应用还未开通音视频通话能力"},"-1002":{id:10002,content:"您暂不支持使用该能力,请前往购买页购买开通"},101002:{id:10014,content:"发起通话失败,用户 ID 无效,请确认该用户已注册"},101011:{id:10016,content:"您的应用还未开通音视频通话(TUICallKit)能力,您可以去控制台申请免费体验:https://console.cloud.tencent.com/im/detail 或购买通话能力套餐包:https://buy.cloud.tencent.com/avc 有疑问请参考:https://cloud.tencent.com/document/product/647/104662"},"-3301":{id:10015,content:"未开通 TRTC 服务导致进房失败,请到控制台为您的应用开通 TRTC 服务",chatContent:"当前为 Chat 融合场景,未开通 TRTC 服务导致进房失败,请到 IM 控制台为您的应用开通 TRTC 服务"}};function Pt(t,e=!1){!t||!(t!=null&&t.code)||(ts(t,e),ns(t,e))}function ts(t,e=!1){if(!Kr.includes(t.code))return;const n=$r[t.code.toString()];if(n){const a=e&&n.chatKey?n.chatKey:n.key;let i=we(a);Xr.update(g.CALL,s.MODAL_ERROR,{id:n.id,content:i,title:we("error")})}}function ns(t,e=!1){if(!qr.includes(t.code))return;const n=es[t.code.toString()];if(n){const a=e&&n.chatContent?n.chatContent:n.content;jr.openModal({id:n.id,content:a,title:"错误",type:"error"})}}const as="data:audio/mpeg;base64,SUQzAwAAAAAAGFRYWFgAAAAOAAAAVFhYWABpc29taXNvMv/zNGQAAqwAvnihCAADQAF4CUAQAFYAg3Lh8u+XUD5///wx//wQOAhKAgb/////xOoH4g8Hz4Pq8RoAbdTgMsMt9hcb990EP//zNGQQBPDjEgDItAAFWcIoAYoQAN9P/03QQ//umn//91SXL5uXP+pf8WYTvzgJPAQ+p/7f///1//6f///WH///F4BtJhNFkP/zNGQGA/jjNADHiAAEQDJcAYkQAGWrn6vw6ljfPtj/////////9Pv9sL/mL/QezSepgwrimv07//////y3u602OiyhOYb+LP/zNGQIBKTBKADoCACDoCZMAckAAKHKCUIAFsqGZXtSZ/////////Sn/Vy3nVUOJBqSX2UAkQxBddzv//////yq3lcgaTmTQ//zNGQHA9SrJgA8AliD4C5IAApYAKh3FKlMunKHm8H/2//77vkdqB2xfsXaHiDKBGtFKqONF3/////Z9VXClT5ND+syHkjBq//zNGQLBITJIAA8AmQEiDI4AAjSAGa1Vffm3ff/1/0//11tvZpAaIw3dBiIrjJgHQrGVWmdBU1f/////oDqEKrV1OpBUTjQtv/zNGQHAsjDKAAwAl4D0Co8AAmCBHIQNtld6fm0+/VigZzuMnGZlkAMLMJFv/////33UIWeFQkKsaceBsangecHzYXKI//////zNGQUA4QjKAA3CAID8CpEABMCBPfuStx4FQVHYMgKcO6jIJh//////9uIlspQkGQ2YyZscAV83Bv/////ncL6BEiWHyA2K//zNEQbAogfJgAx5hAEwDJcCAsEBtICgF3/////WJaIuuqMCCVGucgkrtwiwBO//////pW4YFRWQhaRRhZZnVwGhf////+ocv/zNEQmApgVJAANjwAFkC5YCApeAolD4kQb+EQJYNKwLWGmc6sqMBwJvf////6tDEOWDgFJk1VywKMGoM2f////+N1JmgJuPv/zNGQuA4AbJAAl5hIDwC48AAIGBEho7wTL5b6kSO7IUAA5uDABYNNjGDBSJEN//////xtQsszVy27IcWBbQkLgzv7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GQMAADTI1qGFOACE0QLAMKUAAGgSXK8IoAAL46sQ45QALyE//fCbBFxB/9fobDMv6f8pfg+oLgcED//Dr7//UBR//yv/6HBOv//wpv///ElAAgMAH+vqAy/Chf/6//7FGQGi/BoElwgoDugC6PKwBwCsgF8R2YUdQAAMIirwo5wAP/6gAf//UmMfURwD//MAJP//+A8NLP+n/9BwFp///qIf/rdQv/WBxhIsF2/ymU1CVYbSJQIf2aNBT/1cP/7FEQMAACqFFoGHOAAHAR7IMKoAEHoUXAYIoAAN4ouwwJQAJMo4L+/GGRO5GDSsD6QvjG9fNboTfJPksA//C1e/+mM1DFieDM2ev6P/znv/TTUFWfBvry+rRX//Av//f/7FGQCj/BsHdqHCOAADOO64OKcAAFoeWYGgFZALo8rAFAeyU0FoaSv//8eb//BP//oBxb///mikv//l3//6goCl9xsv//QB///wDBOsgH11f/Lut0AUMOtP//x9gABgP/7FGQHg7BiHVoAIDuiDKO7KBQCsoFMR3ShAPBQLA7rwFAeyAA//w9f//wv8E4XP9PQKb34R//k//6gO///wIPbwsWVCQAH+vqEz/BaM//J//ooLn//zANEjecHf/1CHf/7FGQOD/BhEduo4DugDAO60CgHsgGAd2YFAazAMo8rQKAdmECUIWv//+cP//ygIPB+LdP//4XGHQKLSAB8sp9///gRz/1f/0BL//6gRf///qIW6d9Kj0GAOV6X4woKy//7FGQTgABrEV4lBEAADKO68KOcAAP0jWwYVQAAYxCsQwpQAXAtahrDftmZs3zB+574qD6cse/9MRcBIeDP8bl0EsFxX9dkG+oozcPjTz5K/v8wMJ//8BHT///QS//oA//7FGQID5BmHVsHHKAADWOq8OOIAAF0d2QGgFZAKQ7r1KAKyFl//6O3///KF8x//UG+///qE2NPghkC//nhE///xf/H//qAn//1Acd///8d//KgUb//5H///8g+jtSyH//7FGQOAABfHdqFFKAADKPLAKOIAAQMjWgYc4AIXJHs1w4gAHFZYQsxfPm9an5UMLFJFwLHfTz+qkfhO5MzGhOKAwIIAB/+eWEJo1J//8fTL//6D/EW4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c4AANg7sAo5wAC9v//hIJj3/mv/54F///4sT///7D//zwdf//guIN///yrf/qKwgMb//wr///6Djqv/xCaaXKP/ppPhnF//7FEQGAACTFFsGHOAAE6O7YMCcAAHgS3QYIQAAOgluwwQgAOJT/4Y+op/+GTf/KZTUJcNpEp//T0Ic7ngQ//RwkEyf0+pcee2/BXfu//ZwUzf6fUuPPbfiXPbq//iQCv/7FGQCCfBpHdqHFOAADWOq4OUUAAF8d2qgFEoALQjrQAOJQFb//mgr///8o3/6HAr///CD///+NflUKoAz///ED9f//zjSoQN//6BhH/wW703//B8Dka3//8VurAAMAP/7FGQHD7BWHVoAQDswDEOrGAgCsgFIR24AAOEANI7sAAAIIAP/8Bb//4dvhKhPTt/80KM3/wXqBN//6g///16AQh69aqw3G/6/5LEHT//+Qf/+YBKt//6Y7T/x8M//yv/7FGQNj/BiHdmADRLQDGO6wDQHsgFsd2IGgLZAMQ7rQNAeyIQP//6wg0fhRv/1mQLN///kgf+B5ar/+4S//+gFF//hzs//j4g///CTf//+EfMf83FZYDzhSL86ui0F+f/7FGQTAABcEdsFFKAADOO68KOUAAPkjWwYdQAAVBGsgwpQAQBawuFYDq/7TfrP4+LkRyRyr/8LYRr/0+NLg6Tfr0/NJzlKyxa42v6c8KFwOMLjHrxdn4zEPgqSLBOuzf/7FGQKgAC8FVuGHUAAFsKK8MOcAAF4A3CcAQAoMYBqQ4AAABE+n/8TlxQXC3/NyligMxJw2zb4osIIuKrAH+c4H/83QUFBcgrxKCrlHvg0DT//iIO1TEFNRTMuMTAwVQ==";class is{constructor(){m(this,"_bellContext",null);m(this,"_isMuteBell",!1);m(this,"_calleeBellFilePath",Di);m(this,"_callRole",X.UNKNOWN);m(this,"_callStatus",b.IDLE);m(this,"_isPlaying",!1);this._bellContext=new Audio,this._bellContext.loop=!0}setBellSrc(){try{let e=as;this._callRole===X.CALLEE&&(e=this._calleeBellFilePath||Di),this._bellContext.src=e}catch(e){console.warn(`${s.PREFIX}Failed to setBellSrc, ${e}`)}}setBellProperties(e){this._callRole=e.callRole||this._callRole,this._callStatus=e.callStatus||this._callStatus,this._calleeBellFilePath=e.calleeBellFilePath||this._calleeBellFilePath,this._isMuteBell=aa(e.isMuteBell)?this._isMuteBell:e.isMuteBell}async play(){try{if(this._callStatus!==b.CALLING)return;if(this._callStatus!==b.CALLING||this._isPlaying){console.warn(`${s.PREFIX}play skipped, callStatus: ${this._callStatus}, isPlaying: ${this._isPlaying}`);return}if(this._isPlaying=!0,this.setBellSrc(),this._callRole===X.CALLEE&&!this._isMuteBell){if(!this._isPlaying||this._callStatus!==b.CALLING)return;await this._bellContext.play();return}if(this._callRole===X.CALLER){if(!this._isPlaying||this._callStatus!==b.CALLING)return;await this._bellContext.play();return}}catch(e){console.warn(`${s.PREFIX}Failed to play audio file, ${e}`)}}async stop(){var e;try{this._isPlaying=!1,await((e=this._bellContext)==null?void 0:e.pause())}catch(n){console.warn(`${s.PREFIX}Failed to stop audio file, ${n}`)}}async setBellMute(e){this._callStatus!==b.CALLING&&this._callRole!==X.CALLEE||(e?await this.stop():await this.play())}destroy(){try{this._isMuteBell=!1,this._calleeBellFilePath="",this._callRole=X.UNKNOWN,this._callStatus=b.IDLE,this._isPlaying=!1,this._bellContext.pause(),this._bellContext=null}catch(e){console.warn(`${s.PREFIX}Failed to destroy, ${e}`)}}_delay(e){return new Promise(n=>setTimeout(n,e))}_delayCallback(e,n){setTimeout(e,n)}}function ee(){return function(t,e,n){const a=n.value,i=new Set;return n.value=async function(...o){var r,l;if(i.has(this)){console.warn(`${s.PREFIX}previous ${e}() is ongoing, please avoid repeated calls`),(l=(r=this==null?void 0:this.getTUICallEngineInstance())==null?void 0:r.reportLog)==null||l.call(r,{name:"TUICallKit.avoidRepeatedCall.fail",data:{name:e},error:`previous ${e}() is ongoing`});return}try{i.add(this);const c=await a.apply(this,o);return i.delete(this),c}catch(c){throw i.delete(this),c}},n.value.clearCallState=function(o){i.delete(o)},n}}const Z=St.getInstance();function mn(t,e){const n={userId:t,nick:"",avatar:"",remark:"",displayUserInfo:"",isAudioAvailable:!1,isVideoAvailable:!1,isEnter:!1,domId:e||t};return e?n:{...n,isEnter:!1}}async function os(t,e){var a,i,o,r,l;let n=mn(t,s.LOCAL_VIDEO);try{if(!e)return n;const c=await e.getMyProfile(),u=Z==null?void 0:Z.getData(g.CALL,s.LOCAL_USER_INFO);return(c==null?void 0:c.code)===0&&(n={...n,...u,userId:(a=c==null?void 0:c.data)==null?void 0:a.userID,nick:(i=c==null?void 0:c.data)==null?void 0:i.nick,avatar:(o=c==null?void 0:c.data)==null?void 0:o.avatar,displayUserInfo:((r=c==null?void 0:c.data)==null?void 0:r.nick)||((l=c==null?void 0:c.data)==null?void 0:l.userID)}),n}catch(c){return console.error(`${s.PREFIX}getMyProfile failed, error: ${c}.`),n}}async function Wt(t,e){let n=t.map(a=>mn(a));try{if(!e)return n;if(e!=null&&e.getFriendProfile){const a=await e.getFriendProfile({userIDList:t});if(a.code===0){const{friendList:i=[],failureUserIDList:o=[]}=a.data;let r=o.map(I=>I.userID);if(o.length>0){const I=await e.getUserProfile({userIDList:o.map(N=>N.userID)});(I==null?void 0:I.code)===0&&(r=(I==null?void 0:I.data)||[])}const l=Z==null?void 0:Z.getData(g.CALL,s.REMOTE_USER_INFO_LIST),c=i.map(I=>I.userID),u=r.map(I=>I.userID);n=t.map(I=>{var S,f,y,j,z,O,Q;const N=mn(I),A=c.indexOf(I),T=u.indexOf(I);let D="",h="",C="",p="";A!==-1&&(D=((S=i[A])==null?void 0:S.remark)||"",h=((y=(f=i[A])==null?void 0:f.profile)==null?void 0:y.nick)||"",C=D||h||N.userId||"",p=((z=(j=i[A])==null?void 0:j.profile)==null?void 0:z.avatar)||""),T!==-1&&(h=((O=r[T])==null?void 0:O.nick)||"",C=h||N.userId||"",p=((Q=r[T])==null?void 0:Q.avatar)||"");const L=l.find(B=>B.userId===I)||{};return{...N,...L,remark:D,nick:h,displayUserInfo:C,avatar:p}})}return n}else{const a=await e.getUserProfile({userIDList:t}),i=Z==null?void 0:Z.getData(g.CALL,s.REMOTE_USER_INFO_LIST);return n=t.map(o=>{const r=mn(o),l=i.find(u=>u.userId===o)||{},c=(a.data||[]).find(u=>u.userID===o)||{};return{...r,...l,nick:(c==null?void 0:c.nick)||"",displayUserInfo:(c==null?void 0:c.nick)||o,avatar:(c==null?void 0:c.avatar)||""}}),n}}catch(a){return console.error(`${s.PREFIX}getRemoteUserProfile failed, error: ${a}.`),n}}function On(){const t=Z.getData(g.CALL,s.CALL_STATUS);if(t===b.IDLE)return ne.IDLE;const e=Z.getData(g.CALL,s.IS_GROUP);if(t===b.CALLING)return e?ne.DIALING_GROUP:ne.DIALING_C2C;const n=Z.getData(g.CALL,s.CALL_MEDIA_TYPE);return e?n===G.AUDIO?ne.CALLING_GROUP_AUDIO:ne.CALLING_GROUP_VIDEO:n===G.AUDIO?ne.CALLING_C2C_AUDIO:ne.CALLING_C2C_VIDEO}async function rs(t,e,n,a){let i=[];try{const o=await e.getGroupMemberList({groupID:t,count:n,offset:a});if(o.code===0)return o.data.memberList||i}catch(o){return console.error(`${s.PREFIX}getGroupMember failed, error: ${o}.`),i}}async function ss(t,e){let n={};try{return(await e.getGroupProfile({groupID:t})).data.group||n}catch(a){return console.warn(`${s.PREFIX}getGroupProfile failed, error: ${a}.`),n}}function Ti(t,e){t===0&&e?(Z.update(g.CALL,s.ROOM_ID,e),Z.update(g.CALL,s.ROOM_ID_TYPE,na.STRING_ROOM_ID)):(Z.update(g.CALL,s.ROOM_ID,t),Z.update(g.CALL,s.ROOM_ID_TYPE,na.NUMBER_ROOM_ID))}function he(t){return t||{}}function ra(t){if(t.length===0)return;let e=Z.getData(g.CALL,s.REMOTE_USER_INFO_LIST);t.forEach(n=>{e=e.filter(a=>a.userId!==n)}),Z.update(g.CALL,s.REMOTE_USER_INFO_LIST,e),Z.update(g.CALL,s.REMOTE_USER_INFO_EXCLUDE_VOLUMN_LIST,e)}function sa(t){t==null||t.getDeviceList("speaker").then(n=>{const a=Z.getData(g.CALL,s.DEVICE_LIST),i=(n==null?void 0:n[0])||{};Z.update(g.CALL,s.DEVICE_LIST,{...a,speakerList:n,currentSpeaker:i})}).catch(n=>{console.error(`${s.PREFIX}updateSpeakerList failed, error: ${JSON.stringify(n)}.`)}),Z.getData(g.CALL,s.CALL_MEDIA_TYPE)===G.VIDEO&&(t==null||t.getDeviceList("camera").then(n=>{const a=Z.getData(g.CALL,s.DEVICE_LIST),i=(n==null?void 0:n[0])||{};Z.update(g.CALL,s.DEVICE_LIST,{...a,cameraList:n,currentCamera:i})}).catch(n=>{console.error(`${s.PREFIX}updateCameraList failed, error: ${n}.`)})),t==null||t.getDeviceList("microphones").then(n=>{const a=Z.getData(g.CALL,s.DEVICE_LIST),i=(n==null?void 0:n[0])||{};Z.update(g.CALL,s.DEVICE_LIST,{...a,microphoneList:n,currentMicrophone:i})}).catch(n=>{console.error(`${s.PREFIX}updateMicrophoneList failed, error: ${n}.`)})}function la(t,e,n){let a="";if(Rr(t)){e===G.AUDIO&&(a=le.NO_MICROPHONE_DEVICE_PERMISSION),e===G.VIDEO&&(a=le.NO_CAMERA_DEVICE_PERMISSION);const i=n==null?void 0:n.getDevicePermission();i!=null&&i.audio||Z.update(g.CALL,s.SHOW_PERMISSION_TIP,!0),a&&Z.update(g.CALL,s.TOAST_INFO,{content:a,type:s.ERROR}),console.error(`${s.PREFIX}call failed, error: ${t.message}.`)}}function ct(t,e){let n=Z.getData(g.CALL,s.LOCAL_USER_INFO);e===s.AUDIO&&(n={...n,isAudioAvailable:t}),e===s.VIDEO&&(n={...n,isVideoAvailable:t}),Z.update(g.CALL,s.LOCAL_USER_INFO,n),Z.update(g.CALL,s.LOCAL_USER_INFO_EXCLUDE_VOLUMN,n)}class wn{static generateTaskID(){return this.currentTaskID++}static run(e=s.TIMEOUT,n,a){e===s.INTERVAL?a={delay:2e3,count:0,backgroundTask:!0,...a}:a={delay:2e3,count:0,backgroundTask:!0,...a},ia(n)&&(a={...a,...n}),Sn(e)&&(n=e,e=s.TIMEOUT);const i={taskID:this.generateTaskID(),loopCount:0,intervalID:null,timeoutID:null,taskName:e,callback:n,...a};return this.taskMap.set(i.taskID,i),e===s.INTERNAL?this.interval(i):this.timeout(i),i.taskID}static interval(e){const n=()=>{e.callback(),e.loopCount+=1,this.isBreakLoop(e)};return e.intervalID=setInterval(n,e.delay)}static timeout(e){const n=()=>{if(e.callback(),e.loopCount+=1,!this.isBreakLoop(e))return e.timeoutID=setTimeout(n,e.delay)};return e.timeoutID=setTimeout(n,e.delay)}static hasTask(e){return this.taskMap.has(e)}static clearTask(e){if(!this.taskMap.has(e))return!0;const{intervalID:n,timeoutID:a,onVisibilitychange:i}=this.taskMap.get(e);return n&&clearInterval(n),a&&clearTimeout(a),i&&document.removeEventListener("visibilitychange",i),this.taskMap.delete(e),!0}static isBreakLoop(e){return this.taskMap.has(e.taskID)?e.count!==0&&e.loopCount>=e.count?(this.clearTask(e.taskID),!0):!1:!0}}m(wn,"taskMap",new Map),m(wn,"currentTaskID",1);const ls=function(t){if(t===null||typeof t>"u")return!0;if(typeof t=="boolean")return!1;if(typeof t=="number")return t===0;if(typeof t=="string"||typeof t=="function"||Array.isArray(t))return t.length===0;if(t instanceof Error)return t.message==="";if(ia(t)){for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}return!1},ca="_local_user_id",ht=class ht{constructor(){m(this,"_viewConfig",{viewBackground:{local:{},remote:{}}});m(this,"_isSetViewBackgroundConfig",{remote:!1,local:!1});m(this,"_tuiCallEngine",null);m(this,"_tuiStore",null)}static getInstance(){return ht.instance||(ht.instance=new ht),ht.instance}_updateViewBackground(){var a,i,o;const e=(a=this._tuiStore)==null?void 0:a.getData(g.CALL,s.CUSTOM_UI_CONFIG),{userId:n}=(i=this._tuiStore)==null?void 0:i.getData(g.CALL,s.LOCAL_USER_INFO);Object.keys(this._viewConfig.viewBackground.remote).includes(n)&&delete this._viewConfig.viewBackground.remote[n],(o=this._tuiStore)==null||o.update(g.CALL,s.CUSTOM_UI_CONFIG,{...e,viewBackground:{...this._viewConfig.viewBackground.remote,...this._viewConfig.viewBackground.local}})}setEngineInstance(e){this._tuiCallEngine=e}setTUIStore(e){this._tuiStore=e}updateViewBackgroundUserId(e){var n,a;if(e==="local"){const{userId:i}=(n=this._tuiStore)==null?void 0:n.getData(g.CALL,s.LOCAL_USER_INFO);if(Object.keys(this._viewConfig.viewBackground.remote).includes(i)&&(delete this._viewConfig.viewBackground.remote[i],this._updateViewBackground()),!this._isSetViewBackgroundConfig.local)return;const o=this._viewConfig.viewBackground.local,r=o[i]||o[ca];o[i]=o[ca],this._viewConfig.viewBackground.local={[i]:r},this._updateViewBackground()}else{let i=this._viewConfig.viewBackground.remote;this._isSetViewBackgroundConfig.remote&&Object.keys(i).includes("*")&&(((a=this._tuiStore)==null?void 0:a.getData(g.CALL,s.REMOTE_USER_INFO_LIST)).map(l=>l.userId).forEach(l=>{Object.keys(i).includes(l)||(i[l]=i["*"])}),this._viewConfig.viewBackground.remote=i,this._updateViewBackground())}}hideFeatureButton(e){var a,i,o,r,l;(i=(a=this._tuiCallEngine)==null?void 0:a.reportLog)==null||i.call(a,{name:"TUICallKit.hideFeatureButton.start",data:{buttonName:e}});const n=(o=this._tuiStore)==null?void 0:o.getData(g.CALL,s.CUSTOM_UI_CONFIG);(l=this._tuiStore)==null||l.update(g.CALL,s.CUSTOM_UI_CONFIG,{...n,button:{...n.button,[e]:{...((r=n.button)==null?void 0:r[e])||{},show:!1}}})}setLocalViewBackgroundImage(e){var a,i,o;(i=(a=this._tuiCallEngine)==null?void 0:a.reportLog)==null||i.call(a,{name:"TUICallKit.setLocalViewBackgroundImage.start",data:{url:e}}),this._isSetViewBackgroundConfig.local=!0;let{userId:n}=(o=this._tuiStore)==null?void 0:o.getData(g.CALL,s.LOCAL_USER_INFO);ls(n)&&(n=ca),this._viewConfig.viewBackground.local={[n]:e},this._updateViewBackground()}setRemoteViewBackgroundImage(e,n){var a,i;(i=(a=this._tuiCallEngine)==null?void 0:a.reportLog)==null||i.call(a,{name:"TUICallKit.setRemoteViewBackgroundImage.start",data:{userId:e,url:n}}),this._isSetViewBackgroundConfig.remote=!0,e==="*"&&(this._viewConfig.viewBackground.remote={}),this._viewConfig.viewBackground.remote[e]=n,this._updateViewBackground()}setLayoutMode(e){var a,i;(i=(a=this._tuiCallEngine)==null?void 0:a.reportLog)==null||i.call(a,{name:"TUICallKit.setLayoutMode.start",data:{layoutMode:e}});const n=this._tuiStore.getData(g.CALL,s.CUSTOM_UI_CONFIG);this._tuiStore.update(g.CALL,s.CUSTOM_UI_CONFIG,{...n,layoutMode:e})}setCameraDefaultState(e){var a,i;(i=(a=this._tuiCallEngine)==null?void 0:a.reportLog)==null||i.call(a,{name:"TUICallKit.setCameraDefaultState.start",data:{isOpen:e}});const n=fn(this._tuiStore.getData(g.CALL,s.CUSTOM_UI_CONFIG));Object.keys(n.button).includes(lt.Camera)||(n.button[lt.Camera]={}),n.button[lt.Camera].state=e?Gt.Open:Gt.Close,this._tuiStore.update(g.CALL,s.CUSTOM_UI_CONFIG,n)}};m(ht,"instance");let Un=ht;const zn=St.getInstance(),Ue={audioCall:()=>"Voice call",videoCall:()=>"Video call",switchToAudio:()=>"Switch audio call",switchToVideo:()=>"Switch video call",hangup:({callDuration:t})=>`${we("Call duration")}:${t}`},Et=class Et{constructor(e){m(this,"_callService");var n,a,i;this._callService=e.callService,R.TUICore.registerEvent(R.TUIConstants.TUILogin.EVENT.LOGIN_STATE_CHANGED,R.TUIConstants.TUILogin.EVENT_SUB_KEY.USER_LOGIN_SUCCESS,this),(n=R.TUIConstants.TUIChat)!=null&&n.EVENT&&R.TUICore.registerEvent((a=R.TUIConstants.TUIChat.EVENT)==null?void 0:a.CHAT_STATE_CHANGED,(i=R.TUIConstants.TUIChat.EVENT_SUB_KEY)==null?void 0:i.CHAT_OPENED,this),R.TUICore.registerService(R.TUIConstants.TUICalling.SERVICE.NAME,this),R.TUICore.registerExtension(R.TUIConstants.TUIChat.EXTENSION.INPUT_MORE.EXT_ID,this)}static getInstance(e){return Et.instance||(Et.instance=new Et(e)),Et.instance}callTUIService(e){const{message:n}=e||{};R.TUICore.callService({serviceName:R.TUIConstants.TUIChat.SERVICE.NAME,method:R.TUIConstants.TUIChat.SERVICE.METHOD.UPDATE_MESSAGE_LIST,params:{message:n}})}onGetExtension(e,n){var a,i;if(e===R.TUIConstants.TUIChat.EXTENSION.INPUT_MORE.EXT_ID){if((i=(a=this._callService.getTUICallEngineInstance())==null?void 0:a.reportLog)==null||i.call(a,{name:"TUICallKit.onGetExtension",data:{extensionID:e,params:n}}),aa(n))return[];if([R.TUIConstants.TUIChat.TYPE.ROOM,R.TUIConstants.TUIChat.TYPE.CUSTOMER_SERVICE].includes(n.chatType))return[];let o=[];const r={weight:1e3,text:"语音通话",icon:Nr,data:{name:"voiceCall"},listener:{onClicked:async c=>await this._handleTUICoreOnClick(c,c.type||G.AUDIO)}},l={weight:900,text:"视频通话",icon:Ar,data:{name:"videoCall"},listener:{onClicked:async c=>await this._handleTUICoreOnClick(c,c.type||G.VIDEO)}};return n!=null&&n.chatType?o=[r,l]:(!(n!=null&&n.filterVoice)&&o.push(r),!(n!=null&&n.filterVideo)&&o.push(l)),o}}async onCall(e,n){e===R.TUIConstants.TUICalling.SERVICE.METHOD.START_CALL&&await this._handleTUICoreOnClick(n,n.type)}async onNotifyEvent(e,n,a){var i,o,r,l,c,u,I,N;try{if(e===R.TUIConstants.TUILogin.EVENT.LOGIN_STATE_CHANGED)if(n===R.TUIConstants.TUILogin.EVENT_SUB_KEY.USER_LOGIN_SUCCESS){const{chat:A,userID:T,userSig:D,SDKAppID:h}=R.TUILogin.getContext();await((i=this._callService)==null?void 0:i.init({tim:A,userID:T,userSig:D,sdkAppID:h,isFromChat:!0,component:ta.TIM_CALL_KIT})),(o=this._callService)==null||o.setIsFromChat(!0),(r=this._callService)==null||r.setLogLevel(ai.NORMAL),this._addListenChatEvent()}else n===R.TUIConstants.TUILogin.EVENT_SUB_KEY.USER_LOGOUT_SUCCESS&&(this._removeListenChatEvent(),await((l=this._callService)==null?void 0:l.destroyed()));if((c=R.TUIConstants.TUIChat)!=null&&c.EVENT&&e===R.TUIConstants.TUIChat.EVENT.CHAT_STATE_CHANGED&&n===R.TUIConstants.TUIChat.EVENT_SUB_KEY.CHAT_OPENED){if((u=this._callService)==null||u.setCurrentGroupId((a==null?void 0:a.groupID)||""),zn.getData(g.CALL,s.CALL_STATUS)!==b.IDLE)return;const A=(I=this._callService)==null?void 0:I.getCurrentGroupId(),T=A?await this.getGroupAttributes((N=this._callService)==null?void 0:N.getTim(),A):{};await this.updateStoreBasedOnGroupAttributes(T)}}catch(A){console.error(`${s.PREFIX}TUICore onNotifyEvent failed, error: ${A}.`)}}async updateStoreBasedOnGroupAttributes(e){var n,a,i,o;(i=(a=(n=this._callService)==null?void 0:n.getTUICallEngineInstance())==null?void 0:a.reportLog)==null||i.call(a,{name:"TUICallKit.getJoinGroupCallInfo.success",data:{groupAttributes:e}});try{const{call_id:r="",group_id:l="",room_id:c=0,room_id_type:u=0,call_media_type:I=s.UNKNOWN,user_list:N}=e[s.INNER_ATTR_KIT_INFO]?JSON.parse(e[s.INNER_ATTR_KIT_INFO]):{};let A=(N||[]).map(D=>D.userid);A.length>0&&(A=await Wt(A,(o=this._callService)==null?void 0:o.getTim()));const T={[s.CALL_ID]:r,[s.GROUP_ID]:l,[s.GROUP_CALL_MEMBERS]:A,[s.ROOM_ID]:c,[s.CALL_MEDIA_TYPE]:gr[I],[s.ROOM_ID_TYPE]:u};zn.updateStore(T,g.CALL)}catch(r){console.warn(`${s.PREFIX}updateStoreBasedOnGroupAttributes fail, error: ${r}`)}}async getGroupAttributes(e,n){if(!n)return{};try{const{data:a}=await e.getGroupAttributes({groupID:n,keyList:[]});return(a==null?void 0:a.groupAttributes)||{}}catch(a){return console.warn(`${s.PREFIX}getGroupAttributes fail: ${a}`),{}}}isLineBusy(e){var i;const n=jn(e.payload.data),a=jn(n==null?void 0:n.data);return(a==null?void 0:a.line_busy)==="line_busy"||(a==null?void 0:a.line_busy)===""||((i=a==null?void 0:a.data)==null?void 0:i.message)==="lineBusy"}async getCallKitMessage(e,n){var A,T,D,h;const a=jn(e.payload.data);if((a==null?void 0:a.businessID)!==1)return{};let i="";const o=jn(a==null?void 0:a.data),r=o.call_type,l=a.inviteeList,c=(A=o==null?void 0:o.data)==null?void 0:A.inviter,u=zn.getData(g.CALL,s.LOCAL_USER_INFO).userId,I=c===u,N=(T=o==null?void 0:o.data)==null?void 0:T.cmd;switch(a==null?void 0:a.actionType){case ft.INVITE:{i=Ue[N]({callDuration:gi(o==null?void 0:o.call_end)});break}case ft.CANCEL_INVITE:i=I?"Call Cancel":"Other Side Cancel";break;case ft.ACCEPT_INVITE:["switchToAudio","switchToVideo"].includes(N)?i=(D=Ue==null?void 0:Ue[N])==null?void 0:D.call(Ue):i=we("Answered");break;case ft.REJECT_INVITE:this.isLineBusy(e)?i=I?"Line Busy":"Other Side Line Busy":i=I?"Other Side Decline":"Decline";break;case ft.INVITE_TIMEOUT:["switchToAudio","switchToVideo"].includes(N)?i=(h=Ue==null?void 0:Ue[N])==null?void 0:h.call(Ue):i=I?"Other Side No Answer":"No answer";break}return{messageCardContent:i,callMediaType:r,inviteeList:l}}_addListenChatEvent(){var e,n;if(!((e=this._callService)!=null&&e.getTim())){console.warn(`${s.PREFIX}add tim event listener failed, tim is empty.`);return}(n=this._callService)==null||n.getTim().on($a.EVENT.GROUP_ATTRIBUTES_UPDATED,this._handleGroupAttributesUpdated,this)}_removeListenChatEvent(){var e,n;if(!((e=this._callService)!=null&&e.getTim())){console.warn(`${s.PREFIX}remove tim event listener failed, tim is empty.`);return}(n=this._callService)==null||n.getTim().off($a.EVENT.GROUP_ATTRIBUTES_UPDATED,this._handleGroupAttributesUpdated,this)}async _handleTUICoreOnClick(e,n){var a;try{const{groupID:i,userIDList:o=[],version:r="",...l}=e;await((a=this._callService)==null?void 0:a.calls({chatGroupID:i,userIDList:o,type:n,...l}))}catch(i){e!=null&&e.version||console.warn("Please upgrade to the latest Chat UIKit components."),console.debug(i)}}async _handleGroupAttributesUpdated(e){var o;if(zn.getData(g.CALL,s.CALL_STATUS)!==b.IDLE)return;const n=(e==null?void 0:e.data)||{},{groupID:a="",groupAttributes:i={}}=n;a===((o=this._callService)==null?void 0:o.getCurrentGroupId())&&await this.updateStoreBasedOnGroupAttributes(i)}};m(Et,"instance");let Ma=Et;const cs=0,Ms=1,hi=2;function us({retryFunction:t,settings:e,onError:n,onRetrying:a,onRetryFailed:i,context:o}){return function(...r){const l=e.retries||5;let c=0,u=-1,I=cs;const N=async(A,T)=>{const D=o||this;try{const h=await t.apply(D,r);c=0,A(h)}catch(h){const C=()=>{clearTimeout(u),c=0,I=hi,T(h)},p=()=>{I!==hi&&c<l?(c++,I=Ms,Sn(a)&&a.call(D,c,C),u=setTimeout(()=>{u=-1,N(A,T)},aa(e.timeout)?1e3:e.timeout)):(C(),Sn(i)&&i.call(D,h))};Sn(n)?n.call(D,h,p,T,r):p()}};return new Promise(N)}}function Is(t){return function(e,n,a){const{retries:i=5,timeout:o=2e3,onError:r,onRetrying:l,onRetryFailed:c}=t,u=us({retryFunction:a.value,settings:{retries:i,timeout:o},onError:r,onRetrying:l,onRetryFailed:c,context:null});return a.value=function(...I){return u.apply(this,I)},a}}var ds=Object.defineProperty,gs=Object.getOwnPropertyDescriptor,Ns=(t,e,n,a)=>{for(var i=a>1?void 0:a?gs(e,n):e,o=t.length-1,r;o>=0;o--)(r=t[o])&&(i=(a?r(e,n,i):r(i))||i);return a&&i&&ds(e,n,i),i};const k=St.getInstance(),As=Un.getInstance(),Ei=(We=class{constructor(e){m(this,"_callService");this._callService=e.callService}static getInstance(e){return We.instance||(We.instance=new We(e)),We.instance}addListenTuiCallEngineEvent(){var n,a;const e=(n=this._callService)==null?void 0:n.getTUICallEngineInstance();if(!e){console.warn(`${s.PREFIX}add engine event listener failed, engine is empty.`);return}e.on(w.TUICallEvent.ERROR,this._handleError,this),e.on(w.TUICallEvent.ON_CALL_RECEIVED,this._handleNewInvitationReceived,this),(a=w.TUICallEvent)!=null&&a.ON_CALL_BEGIN&&e.on(w.TUICallEvent.ON_CALL_BEGIN,this._handleOnCallBegin,this),e.on(w.TUICallEvent.USER_ENTER,this._handleUserEnter,this),e.on(w.TUICallEvent.USER_LEAVE,this._handleUserLeave,this),e.on(w.TUICallEvent.REJECT,this._handleInviteeReject,this),e.on(w.TUICallEvent.NO_RESP,this._handleNoResponse,this),e.on(w.TUICallEvent.LINE_BUSY,this._handleLineBusy,this),e.on(w.TUICallEvent.ON_CALL_NOT_CONNECTED,this._handleCallNotConnected,this),e.on(w.TUICallEvent.ON_USER_INVITING,this._handleOnUserInviting,this),e.on(w.TUICallEvent.SDK_READY,this._handleSDKReady,this),e.on(w.TUICallEvent.KICKED_OUT,this._handleKickedOut,this),e.on(w.TUICallEvent.MESSAGE_SENT_BY_ME,this._messageSentByMe,this),w.TUICallEvent.CALL_MESSAGE&&e.on(w.TUICallEvent.CALL_MESSAGE,this._handleCallMessage,this),w.TUICallEvent.ON_USER_NETWORK_QUALITY_CHANGED&&e.on(w.TUICallEvent.ON_USER_NETWORK_QUALITY_CHANGED,this._handleNetworkQuality,this),e.on(w.TUICallEvent.CALLING_END,this._handleCallingEnd,this),e.on(w.TUICallEvent.CALL_TYPE_CHANGED,this._handleCallTypeChange,this),e.on(w.TUICallEvent.USER_VOICE_VOLUME,this._handleUserVoiceVolume,this),e.on(w.TUICallEvent.DEVICED_UPDATED,this._handleDeviceUpdate,this),e.on(w.TUICallEvent.USER_VIDEO_AVAILABLE,this._handleUserVideoAvailable,this),e.on(w.TUICallEvent.USER_AUDIO_AVAILABLE,this._handleUserAudioAvailable,this)}removeListenTuiCallEngineEvent(){var n,a;const e=(n=this._callService)==null?void 0:n.getTUICallEngineInstance();e.off(w.TUICallEvent.ERROR,this._handleError,this),e.off(w.TUICallEvent.ON_CALL_RECEIVED,this._handleNewInvitationReceived,this),(a=w.TUICallEvent)!=null&&a.ON_CALL_BEGIN&&e.off(w.TUICallEvent.ON_CALL_BEGIN,this._handleOnCallBegin,this),e.off(w.TUICallEvent.USER_ENTER,this._handleUserEnter,this),e.off(w.TUICallEvent.USER_LEAVE,this._handleUserLeave,this),e.off(w.TUICallEvent.REJECT,this._handleInviteeReject,this),e.off(w.TUICallEvent.NO_RESP,this._handleNoResponse,this),e.off(w.TUICallEvent.LINE_BUSY,this._handleLineBusy,this),e.off(w.TUICallEvent.ON_CALL_NOT_CONNECTED,this._handleCallNotConnected,this),e.off(w.TUICallEvent.ON_USER_INVITING,this._handleOnUserInviting,this),e.off(w.TUICallEvent.SDK_READY,this._handleSDKReady,this),e.off(w.TUICallEvent.KICKED_OUT,this._handleKickedOut,this),e.off(w.TUICallEvent.MESSAGE_SENT_BY_ME,this._messageSentByMe,this),w.TUICallEvent.ON_USER_NETWORK_QUALITY_CHANGED&&e.off(w.TUICallEvent.ON_USER_NETWORK_QUALITY_CHANGED,this._handleNetworkQuality,this),e.off(w.TUICallEvent.CALLING_END,this._handleCallingEnd,this),e.off(w.TUICallEvent.CALL_TYPE_CHANGED,this._handleCallTypeChange,this),e.off(w.TUICallEvent.USER_VOICE_VOLUME,this._handleUserVoiceVolume,this),e.off(w.TUICallEvent.DEVICED_UPDATED,this._handleDeviceUpdate,this),e.off(w.TUICallEvent.USER_VIDEO_AVAILABLE,this._handleUserVideoAvailable,this),e.off(w.TUICallEvent.USER_AUDIO_AVAILABLE,this._handleUserAudioAvailable,this)}_callerChangeToConnected(){var a,i,o;const e=k.getData(g.CALL,s.CALL_ROLE);k.getData(g.CALL,s.CALL_STATUS)===b.CALLING&&e===X.CALLER&&((i=(a=this._callService)==null?void 0:a._bellContext)==null||i.stop(),k.update(g.CALL,s.CALL_STATUS,b.CONNECTED),(o=this._callService)==null||o.startTimer())}_unNormalEventsManager(e,n){var o,r;console.log(`${s.PREFIX}${n} event data: ${JSON.stringify(e)}.`);const a=k.getData(g.CALL,s.IS_GROUP),i=k.getData(g.CALL,s.REMOTE_USER_INFO_LIST);switch(n){case w.TUICallEvent.REJECT:case w.TUICallEvent.LINE_BUSY:{const{userID:l}=he(e);let c=n===w.TUICallEvent.REJECT?le.OTHER_SIDE_REJECT_CALL:le.OTHER_SIDE_LINE_BUSY,u="";a&&(u=(i.find(I=>I.userId===l)||{}).displayUserInfo||l,c=n===w.TUICallEvent.REJECT?le.REJECT_CALL:le.IN_BUSY),k.update(g.CALL,s.TOAST_INFO,{content:{key:c,options:{userList:u}}}),l&&ra([l]),k.getData(g.CALL,s.REMOTE_USER_INFO_LIST).length===0&&((o=this._callService)==null||o._resetCallStore());break}case w.TUICallEvent.NO_RESP:{const{userIDList:l=[]}=he(e),c=a?le.TIMEOUT:le.CALL_TIMEOUT,u=l.map(I=>(i.find(A=>A.userId===I)||{}).displayUserInfo||I);k.update(g.CALL,s.TOAST_INFO,{content:{key:c,options:{userList:u.join()}}}),l.length>0&&ra(l);break}case w.TUICallEvent.ON_CALL_NOT_CONNECTED:{(r=this._callService)==null||r._resetCallStore();break}}}_handleError(e){var r;const{code:n,message:a}=e||{},i=Object.values(ti).indexOf(n);let o="";if(i!==-1){const l=Object.keys(ti)[i];o=we(ni[l]),o&&k.update(g.CALL,s.TOAST_INFO,{content:ni[l],type:s.ERROR})}(r=this._callService)==null||r.executeExternalAfterCalling(),console.error(`${s.PREFIX}_handleError, errorCode: ${n}; errorMessage: ${o||a}.`)}async _handleNewInvitationReceived(e){var C,p,L,S;console.log(`${s.PREFIX}onCallReceived event data: ${JSON.stringify(e)}.`);const{callerId:n="",callMediaType:a,inviteData:i={},calleeIdList:o=[],chatGroupID:r="",roomID:l,strRoomID:c}=he(e),u=k.getData(g.CALL,s.LOCAL_USER_INFO),I=[n,...o.filter(f=>f!==u.userId)],N=a||i.callType,A=N===G.AUDIO?le.CALLEE_CALLING_AUDIO_MSG:le.CALLEE_CALLING_VIDEO_MSG;let T={[s.CALL_ROLE]:X.CALLEE,[s.IS_GROUP]:!!r||o.length>1,[s.CALL_STATUS]:b.CALLING,[s.CALL_MEDIA_TYPE]:N,[s.CALL_TIPS]:A,[s.CALLER_USER_INFO]:{userId:n},[s.GROUP_ID]:r};Ti(l,c),k.updateStore(T,g.CALL),(C=this._callService)==null||C.executeExternalBeforeCalling(),(p=this._callService)!=null&&p.statusChanged&&((L=this._callService)==null||L.statusChanged({oldStatus:ne.IDLE,newStatus:ne.BE_INVITED}));const D=await Wt(I,(S=this._callService)==null?void 0:S.getTim()),[h]=D.filter(f=>f.userId===n);D.length>0&&k.updateStore({[s.REMOTE_USER_INFO_LIST]:D,[s.REMOTE_USER_INFO_EXCLUDE_VOLUMN_LIST]:D,[s.CALLER_USER_INFO]:{userId:n,nick:(h==null?void 0:h.nick)||"",avatar:(h==null?void 0:h.avatar)||"",displayUserInfo:(h==null?void 0:h.remark)||(h==null?void 0:h.nick)||n}},g.CALL)}async _handleOnCallBegin(e){var n,a;(a=(n=this._callService)==null?void 0:n._bellContext)==null||a.stop(),this._callerChangeToConnected(),k.update(g.CALL,s.CALL_TIPS,{text:"answered",duration:2e3}),await this._callService.openMicrophone(),console.log(`${s.PREFIX}accept event data: ${JSON.stringify(e)}.`)}async _handleUserEnter(e){const{userID:n,data:a}=he(e);this._callerChangeToConnected(),await this._addUserToRemoteUserInfoList(n);let i=k.getData(g.CALL,s.REMOTE_USER_INFO_LIST);i=i.map(o=>(o.userId===n&&(o.isEnter=!0),o)),i.length>0&&(k.update(g.CALL,s.REMOTE_USER_INFO_LIST,i),k.update(g.CALL,s.REMOTE_USER_INFO_EXCLUDE_VOLUMN_LIST,i),As.updateViewBackgroundUserId("remote")),console.log(`${s.PREFIX}userEnter event data: ${JSON.stringify(e)}.`)}_handleUserLeave(e){console.log(`${s.PREFIX}userLeave event data: ${JSON.stringify(e)}.`);const{data:n,userID:a}=he(e);if(k.getData(g.CALL,s.IS_GROUP)){const o=(k.getData(g.CALL,s.REMOTE_USER_INFO_LIST).find(r=>r.userId===a)||{}).displayUserInfo||a;k.update(g.CALL,s.TOAST_INFO,{content:{key:le.END_CALL,options:{userList:o}}})}a&&ra([a])}_handleInviteeReject(e){this._unNormalEventsManager(e,w.TUICallEvent.REJECT)}_handleNoResponse(e){this._unNormalEventsManager(e,w.TUICallEvent.NO_RESP)}_handleLineBusy(e){this._unNormalEventsManager(e,w.TUICallEvent.LINE_BUSY)}_handleCallNotConnected(e){var n,a,i;(a=(n=this==null?void 0:this._callService)==null?void 0:n._cleanupAvoidRepeatCallState)==null||a.call(n),(i=this._callService)==null||i.executeExternalAfterCalling(),this._unNormalEventsManager(e,w.TUICallEvent.ON_CALL_NOT_CONNECTED)}async _handleOnUserInviting(e){const{userID:n}=he(e);n&&n!==k.getData(g.CALL,s.LOCAL_USER_INFO).userId&&await this._addUserToRemoteUserInfoList(n)}_handleCallingEnd(e){var n,a;console.log(`${s.PREFIX}callEnd event data: ${JSON.stringify(e)}.`),(n=this._callService)==null||n.executeExternalAfterCalling(),(a=this._callService)==null||a._resetCallStore()}async _handleSDKReady(e){var a;let n=k.getData(g.CALL,s.LOCAL_USER_INFO);n=await os(n.userId,(a=this._callService)==null?void 0:a.getTim()),k.update(g.CALL,s.LOCAL_USER_INFO,n),k.update(g.CALL,s.LOCAL_USER_INFO_EXCLUDE_VOLUMN,n)}_handleKickedOut(e){var n,a,i;console.log(`${s.PREFIX}kickOut event data: ${JSON.stringify(e)}.`),(n=this._callService)!=null&&n.kickedOut&&((a=this._callService)==null||a.kickedOut(e)),k.update(g.CALL,s.CALL_TIPS,le.KICK_OUT),(i=this._callService)==null||i._resetCallStore()}_messageSentByMe(e){var a,i;const n=e==null?void 0:e.data;(a=this._callService)!=null&&a.onMessageSentByMe&&((i=this._callService)==null||i.onMessageSentByMe(n))}_handleCallMessage(e){const n=he(e);this._callService._chatCombine.callTUIService({message:n})}_handleCallTypeChange(e){const{newCallType:n,type:a}=he(e);k.update(g.CALL,s.CALL_MEDIA_TYPE,n||a)}_handleNetworkQuality(e){const{networkQualityList:n=[]}=he(e);k.update(g.CALL,s.NETWORK_STATUS,n);const a=k.getData(g.CALL,s.IS_GROUP),i=k.getData(g.CALL,s.LOCAL_USER_INFO);if(k.getData(g.CALL,s.REMOTE_USER_INFO_LIST),!a&&n.find(r=>(i==null?void 0:i.userId)===(r==null?void 0:r.userId)&&(r==null?void 0:r.quality)>=Tr)){k.update(g.CALL,s.CALL_TIPS,le.LOCAL_NETWORK_IS_POOR);return}}async _startRemoteView(e){var n;if(!e){console.warn(`${s.PREFIX}_startRemoteView userID is empty`);return}if(!document.getElementById(e))return console.warn(`${s.PREFIX}_startRemoteView can't find HTMLElement sid: ${e}`),Promise.reject();try{const a=k.getData(g.CALL,s.DISPLAY_MODE);await((n=this._callService)==null?void 0:n.getTUICallEngineInstance().startRemoteView({userID:e,videoViewDomID:e,options:{objectFit:a}}))}catch(a){return console.error(`${s.PREFIX}_startRemoteView error: ${a}.`),Promise.reject(a)}}_setRemoteUserInfoAudioVideoAvailable(e,n,a){let i=k.getData(g.CALL,s.REMOTE_USER_INFO_LIST);i=i.map(o=>{if(o.userId===a){if(n===s.AUDIO)return{...o,isAudioAvailable:e};if(n===s.VIDEO)return{...o,isVideoAvailable:e}}return o}),i.length>0&&(k.update(g.CALL,s.REMOTE_USER_INFO_LIST,i),k.update(g.CALL,s.REMOTE_USER_INFO_EXCLUDE_VOLUMN_LIST,i))}async _handleUserVideoAvailable(e){const{userID:n,isVideoAvailable:a}=he(e);console.log(`${s.PREFIX}_handleUserVideoAvailable event data: ${JSON.stringify(e)}.`),this._setRemoteUserInfoAudioVideoAvailable(a,s.VIDEO,n);try{a&&await this._startRemoteView(n)}catch(i){console.error(`${s.PREFIX}_startRemoteView failed, error: ${i}.`)}}_handleUserAudioAvailable(e){const{userID:n,isAudioAvailable:a}=he(e);console.log(`${s.PREFIX}_handleUserAudioAvailable event data: ${JSON.stringify(e)}.`),this._setRemoteUserInfoAudioVideoAvailable(a,s.AUDIO,n)}_handleUserVoiceVolume(e){try{const{volumeMap:n}=he(e);if((n||[]).length===0)return;const a=k.getData(g.CALL,s.LOCAL_USER_INFO);let i=k.getData(g.CALL,s.REMOTE_USER_INFO_LIST);const[o]=n.filter(c=>c.userId===a.userId),r=n.reduce((c,u)=>u.userId!==a.userId?{...c,[u.userId]:u.audioVolume}:c,{});a.volume=o.audioVolume,i=i.map(c=>({...c,volume:r[c.userId]}));const l={[s.LOCAL_USER_INFO]:a,[s.REMOTE_USER_INFO_LIST]:i};k.updateStore(l,g.CALL)}catch(n){console.debug(n)}}_handleDeviceUpdate(e){const{cameraList:n,microphoneList:a,speakerList:i,currentCamera:o,currentMicrophone:r,currentSpeaker:l}=e;k.update(g.CALL,s.DEVICE_LIST,{cameraList:n,microphoneList:a,speakerList:i,currentCamera:o,currentMicrophone:r,currentSpeaker:l})}async _addUserToRemoteUserInfoList(e){var i;let n=k.getData(g.CALL,s.REMOTE_USER_INFO_LIST);if(!n.find(o=>(o==null?void 0:o.userId)===e)){n.push({userId:e}),k.update(g.CALL,s.REMOTE_USER_INFO_LIST,n),k.update(g.CALL,s.REMOTE_USER_INFO_EXCLUDE_VOLUMN_LIST,n);const[o]=await Wt([e],(i=this._callService)==null?void 0:i.getTim());n=k.getData(g.CALL,s.REMOTE_USER_INFO_LIST),n.forEach(r=>{(r==null?void 0:r.userId)===e&&(r=Object.assign(r,o))}),k.update(g.CALL,s.REMOTE_USER_INFO_LIST,n),k.update(g.CALL,s.REMOTE_USER_INFO_EXCLUDE_VOLUMN_LIST,n)}}},m(We,"instance"),We);Ns([Is({retries:5,timeout:200,onRetrying(t){console.warn(`${s.PREFIX}_startRemoteView, retrying [${t}]`)}})],Ei.prototype,"_startRemoteView",1);let Ds=Ei;const Ee=St.getInstance(),Ct=class Ct{constructor(e){m(this,"_callService");m(this,"eventListeners",new Map);m(this,"getTranscriberManager",()=>{var a,i;const e=(a=this._callService)==null?void 0:a.getTUICallEngineInstance();if(!e)return console.warn(`${s.PREFIX}Failed to get call engine instance.`),null;const n=(i=e.getTRTCCloudInstance)==null?void 0:i.call(e);return!n||!n.getAITranscriberManager?(console.warn(`${s.PREFIX}AI Transcriber not supported.`),null):n.getAITranscriberManager()});m(this,"triggerEvent",(e,n)=>{const a=this.eventListeners.get(e);a&&a.forEach(i=>{try{i(n)}catch(o){console.error(`${s.PREFIX}Error in event callback for ${e}:`,o)}})});m(this,"startRealtimeTranscriber",async e=>{const n=this.getTranscriberManager();if(!n)return null;try{const a=await n.startRealtimeTranscriber(e);return Ee.update(g.CALL,s.TRANSCRIBER_ROBOT_ID,a),Ee.update(g.CALL,s.IS_AI_TRANSCRIBER_RUNNING,!0),a}catch(a){throw console.error(`${s.PREFIX}startRealtimeTranscriber error:`,a),a}});m(this,"stopRealtimeTranscriber",async()=>{const e=this.getTranscriberManager();if(e)try{const n=Ee.getData(g.CALL,s.TRANSCRIBER_ROBOT_ID);n&&await e.stopRealtimeTranscriber(n),Ee.update(g.CALL,s.TRANSCRIBER_ROBOT_ID,null),Ee.update(g.CALL,s.IS_AI_TRANSCRIBER_RUNNING,!1)}catch(n){throw console.error(`${s.PREFIX}stopRealtimeTranscriber error:`,n),n}});m(this,"updateRealTimeTranscriber",async e=>{const n=this.getTranscriberManager();if(!n)return null;try{const a=Ee.getData(g.CALL,s.TRANSCRIBER_ROBOT_ID);a&&await n.stopRealtimeTranscriber(a);const i=await n.startRealtimeTranscriber(e);return Ee.update(g.CALL,s.TRANSCRIBER_ROBOT_ID,i),i}catch(a){throw console.error(`${s.PREFIX}updateRealTimeTranscriber error:`,a),a}});m(this,"subscribeEvent",(e,n)=>{var a;this.eventListeners.has(e)||this.eventListeners.set(e,[]),(a=this.eventListeners.get(e))==null||a.push(n)});m(this,"unsubscribeEvent",(e,n)=>{const a=this.eventListeners.get(e);if(a){const i=a.indexOf(n);i>-1&&a.splice(i,1),a.length===0&&this.eventListeners.delete(e)}});m(this,"onReceiveTranscriberMessage",(e,n)=>{const{segmentId:a}=n;let i=Ee.getData(g.CALL,s.REALTIME_MESSAGE_LIST)||[];const o=i.findIndex(r=>r.segmentId===a);o>=0?i[o]=n:i.push(n),Ee.update(g.CALL,s.REALTIME_MESSAGE_LIST,[...i]),this.triggerEvent("onReceiveTranscriberMessage",{roomId:e,message:n})});m(this,"onRealtimeTranscriberStarted",(e,n,a)=>{this.triggerEvent("onRealtimeTranscriberStarted",{roomId:e,transcriberRobotId:n,sourceLanguage:a})});m(this,"onRealtimeTranscriberStopped",(e,n)=>{this.triggerEvent("onRealtimeTranscriberStopped",{roomId:e,transcriberRobotId:n})});m(this,"onRealtimeTranscriberError",(e,n,a,i)=>{this.triggerEvent("onRealtimeTranscriberError",{roomId:e,transcriberRobotId:n,error:a,errorMessage:i})});m(this,"bindEvent",()=>{const e=this.getTranscriberManager();if(e)try{e.addListener({onReceiveTranscriberMessage:this.onReceiveTranscriberMessage,onRealtimeTranscriberStarted:this.onRealtimeTranscriberStarted,onRealtimeTranscriberStopped:this.onRealtimeTranscriberStopped,onRealtimeTranscriberError:this.onRealtimeTranscriberError})}catch(n){console.error(`${s.PREFIX}bindEvent error:`,n)}});m(this,"unbindEvent",()=>{const e=this.getTranscriberManager();if(e)try{e.removeListener({onReceiveTranscriberMessage:this.onReceiveTranscriberMessage,onRealtimeTranscriberStarted:this.onRealtimeTranscriberStarted,onRealtimeTranscriberStopped:this.onRealtimeTranscriberStopped,onRealtimeTranscriberError:this.onRealtimeTranscriberError})}catch(n){console.error(`${s.PREFIX}unbindEvent error:`,n)}});m(this,"reset",()=>{Ee.update(g.CALL,s.TRANSCRIBER_ROBOT_ID,null),Ee.update(g.CALL,s.REALTIME_MESSAGE_LIST,[]),Ee.update(g.CALL,s.IS_AI_TRANSCRIBER_ENABLED,!1),this.eventListeners.clear()});this._callService=e.callService}static getInstance(e){return Ct.instance||(Ct.instance=new Ct(e)),Ct.instance}};m(Ct,"instance");let ua=Ct;var Ts=Object.defineProperty,hs=Object.getOwnPropertyDescriptor,te=(t,e,n,a)=>{for(var i=a>1?void 0:a?hs(e,n):e,o=t.length-1,r;o>=0;o--)(r=t[o])&&(i=(a?r(e,n,i):r(i))||i);return a&&i&&Ts(e,n,i),i};const U=Ii.getInstance(),E=St.getInstance(),Qe=Un.getInstance();Qe.setTUIStore(E);const Ci="4.5.8",pi="react",K=(He=class{constructor(){m(this,"_tuiCallEngine");m(this,"_aiAssistant",null);m(this,"_tim",null);m(this,"_TUICore",null);m(this,"_timerId",-1);m(this,"_startTimeStamp",oa());m(this,"_bellContext",null);m(this,"_isFromChat",!1);m(this,"_currentGroupId","");m(this,"_offlinePushInfo",null);m(this,"_permissionCheckTimer",null);m(this,"_chatCombine",null);m(this,"_engineEventHandler",null);m(this,"_wasmReadyPromise");m(this,"_wasmReadyResolve");m(this,"_isInitialized",!1);m(this,"_handleAutoPlayFailed",e=>{var n,a;(a=(n=this._tuiCallEngine)==null?void 0:n.reportLog)==null||a.call(n,{name:"TUICallkit.onAutoPlayFailed"}),this._autoPlayResume=e==null?void 0:e.resume,E.update(g.CALL,s.IS_SHOW_AUTO_PLAY_DIALOG,!0)});m(this,"beforeCalling");m(this,"afterCalling");m(this,"onMinimized");m(this,"onMessageSentByMe");m(this,"kickedOut");m(this,"statusChanged");m(this,"_handleCallStatusChange",async e=>{var n,a,i,o,r,l;try{const c={callRole:E.getData(g.CALL,s.CALL_ROLE),callStatus:E.getData(g.CALL,s.CALL_STATUS)};if((a=(n=this._tuiCallEngine)==null?void 0:n.reportLog)==null||a.call(n,{name:"TUICallkit._handleCallStatusChange.start",data:{bellParams:c}}),this._bellContext.setBellProperties(c),e===b.CALLING)(i=this==null?void 0:this._bellContext)==null||i.play();else{if((r=(o=this._tuiCallEngine)==null?void 0:o.reportLog)==null||r.call(o,{name:"TUICallkit._bellContext.stop"}),e===b.CONNECTED){const u=E.getData(g.CALL,s.IS_GROUP),I=E.getData(g.CALL,s.CALL_MEDIA_TYPE),N=E.getData(g.CALL,s.REMOTE_USER_INFO_LIST),A=u?ne.DIALING_GROUP:ne.DIALING_C2C;E.update(g.CALL,s.CALL_TIPS,""),this.statusChanged&&this.statusChanged({oldStatus:A,newStatus:On()}),!u&&I===G.VIDEO&&this.switchScreen(N[0].domId)}await((l=this==null?void 0:this._bellContext)==null?void 0:l.stop())}}catch(c){console.warn(`${s.PREFIX}handleCallStatusChange, ${c}.`)}});console.log(`${s.PREFIX}version: ${Ci}`),this._wasmReadyPromise=new Promise(e=>{this._wasmReadyResolve=e}),this._loadWasm(),this._watchTUIStore(),this._engineEventHandler=Ds.getInstance({callService:this}),this._chatCombine=Ma.getInstance({callService:this}),this._aiAssistant=ua.getInstance({callService:this}),Hr(this.handleExceptionExit.bind(this))}static getInstance(){return He.instance||(He.instance=new He),He.instance}_loadWasm(){w.TUICallEngine.once("ready",()=>this._wasmReadyResolve())}async init(e){if(this._isInitialized){console.warn("TUICallKit has already been initialized.");return}await this._wasmReadyPromise,this._isInitialized||(await this._doInit(e),this._isInitialized=!0)}async _doInit(e){var n,a,i,o,r,l,c;try{if(this._tuiCallEngine)return;let{userID:u,tim:I,userSig:N,sdkAppID:A,SDKAppID:T,isFromChat:D,component:h=ta.TUI_CALL_KIT}=e;this._TUICore&&(A=this._TUICore.SDKAppID,I=this._TUICore.tim),this._tim=I,console.log(`${s.PREFIX}init sdkAppId: ${A||T}, userId: ${u}`);let C="web";C=`${C}-${pi}`,this._tuiCallEngine=w.TUICallEngine.createInstance({tim:I,SDKAppID:A||T,frameWork:pi,language:7,callkitVersion:Ci,isFromChat:D||!1,component:h,scene:C}),Qe.setEngineInstance(this._tuiCallEngine),this._addListenTuiCallEngineEvent(),this._bellContext&&((n=this._bellContext)==null||n.destroy()),this._bellContext=new is,E.update(g.CALL,s.LOCAL_USER_INFO,{userId:u}),E.update(g.CALL,s.LOCAL_USER_INFO_EXCLUDE_VOLUMN,{userId:u}),Qe.updateViewBackgroundUserId("local"),(a=this._aiAssistant)==null||a.bindEvent(),await this._tuiCallEngine.login({userID:u,userSig:N,assetsPath:""});const p=E.getData(g.CALL,s.CUSTOM_UI_CONFIG),L=(o=(i=this._tuiCallEngine)==null?void 0:i.getTRTCCloudInstance)==null?void 0:o.call(i);L==null||L.callExperimentalAPI(JSON.stringify({api:"enableAutoPlayDialog",params:{enable:0}})),(r=L==null?void 0:L.on)==null||r.call(L,"onAutoPlayFailed",this._handleAutoPlayFailed),(c=(l=this._tuiCallEngine)==null?void 0:l.reportLog)==null||c.call(l,{name:"TUICallkit.init",data:{uiConfig:p}})}catch(u){throw console.error(`${s.PREFIX}init failed, error: ${u}.`),u}}async destroyed(){var e,n,a,i,o,r;try{this._isInitialized=!1;const l=E.getData(g.CALL,s.CALL_STATUS);if(l!==b.IDLE)throw new Error(`please destroyed when status is idle, current status: ${l}`);if(this._tuiCallEngine){this._removeListenTuiCallEngineEvent();const c=(n=(e=this._tuiCallEngine)==null?void 0:e.getTRTCCloudInstance)==null?void 0:n.call(e);(a=c==null?void 0:c.off)==null||a.call(c,"onAutoPlayFailed",this._handleAutoPlayFailed),await this._tuiCallEngine.destroyInstance(),this._tuiCallEngine=null}(i=this._aiAssistant)==null||i.unbindEvent(),(o=this._aiAssistant)==null||o.reset(),(r=this._bellContext)==null||r.destroy(),this._bellContext=null}catch(l){throw console.error(`${s.PREFIX}destroyed failed, error: ${l}.`),l}}async inviteUser(e){if(E.getData(g.CALL,s.CALL_STATUS)!==b.IDLE)try{const{userIDList:n}=e;let a=await Wt(n,this.getTim());const i=E.getData(g.CALL,s.REMOTE_USER_INFO_LIST);if(n.filter(r=>!i.some(l=>l.userId===r)).length===0)return;E.update(g.CALL,s.REMOTE_USER_INFO_LIST,[...i,...a]),E.update(g.CALL,s.REMOTE_USER_INFO_EXCLUDE_VOLUMN_LIST,[...i,...a]),this._tuiCallEngine&&await this._tuiCallEngine.inviteUser(e)}catch(n){console.error(`${s.PREFIX}inviteUser failed, error: ${n}.`)}}async calls(e){if(E.getData(g.CALL,s.CALL_STATUS)===b.IDLE)try{E.update(g.CALL,s.PUSHER_ID,s.NEW_PUSHER);const{userIDList:n,type:a,chatGroupID:i,offlinePushInfo:o}=e;if(E.getData(g.CALL,s.CALL_STATUS)!==b.IDLE)return;const r=n.map(c=>({userId:c}));await this._updateCallStoreBeforeCall(a,r,i),this.executeExternalBeforeCalling(),e.offlinePushInfo={...this.getDefaultOfflinePushInfo(),...o};const l=await this._tuiCallEngine.calls(e);await this._updateCallStoreAfterCall(n,l)}catch(n){Pt(n,this._isFromChat),this._handleCallError(n,"calls")}}async join(e){if(E.getData(g.CALL,s.CALL_STATUS)!==b.CONNECTED)try{E.update(g.CALL,s.PUSHER_ID,s.NEW_PUSHER);const n={[s.CALL_ROLE]:X.CALLEE,[s.IS_GROUP]:!0,[s.CALL_STATUS]:b.CONNECTED,[s.CALL_MEDIA_TYPE]:E.getData(g.CALL,s.CALL_MEDIA_TYPE)||G.AUDIO};E.updateStore(n,g.CALL);const a=await this._tuiCallEngine.join(e);E.update(g.CALL,s.IS_CLICKABLE,!0),this.startTimer(),sa(this._tuiCallEngine),await this._tuiCallEngine.setVideoQuality(E.getData(g.CALL,s.VIDEO_RESOLUTION));const i=E.getData(g.CALL,s.LOCAL_USER_INFO);E.update(g.CALL,s.LOCAL_USER_INFO,{...i,isEnter:!0}),E.update(g.CALL,s.LOCAL_USER_INFO_EXCLUDE_VOLUMN,{...i,isEnter:!0}),await this.openMicrophone(),ct(!0,s.AUDIO)}catch(n){Pt(n,this._isFromChat),this._handleCallError(n,"join")}}getTUICallEngineInstance(){return(this==null?void 0:this._tuiCallEngine)||null}setLogLevel(e){var n;(n=this==null?void 0:this._tuiCallEngine)==null||n.setLogLevel(e)}setLanguage(e){e&&Object.values(ei).includes(e)&&(E.update(g.CALL,s.LANGUAGE,e),E.update(g.CALL,s.TRANSLATE,we.bind(null)))}enableFloatWindow(e){E.update(g.CALL,s.ENABLE_FLOAT_WINDOW,e)}async setSelfInfo(e){const{nickName:n,avatar:a}=e;try{await this._tuiCallEngine.setSelfInfo({nickName:n,avatar:a})}catch(i){console.error(`${s.PREFIX}setSelfInfo failed, error: ${i}.`)}}async enableVirtualBackground(e){E.update(g.CALL,s.IS_SHOW_ENABLE_VIRTUAL_BACKGROUND,e)}async enableAIVoice(e){try{await this._tuiCallEngine.enableAIVoice(e),console.log(`${s.PREFIX}enableAIVoice: ${e}.`)}catch(n){throw console.error(`${s.PREFIX}enableAIVoice failed, error: ${n}.`),n}}async enableAITranscriber(e){try{E.update(g.CALL,s.IS_AI_TRANSCRIBER_ENABLED,e),console.log(`${s.PREFIX}enableAITranscriber: ${e}.`)}catch(n){throw console.error(`${s.PREFIX}enableAITranscriber failed, error: ${n}.`),n}}async setCallingBell(e){let n=!0;if(n=await hr(e),!n){console.warn(`${s.PREFIX}setCallingBell failed, filePath: ${e}.`);return}const a={calleeBellFilePath:e};this._bellContext.setBellProperties(a)}async enableMuteMode(e){try{const n={isMuteBell:e};this._bellContext.setBellProperties(n),await this._bellContext.setBellMute(e)}catch(n){console.warn(`${s.PREFIX}enableMuteMode failed, error: ${n}.`)}}hideFeatureButton(e){Qe.hideFeatureButton(e)}setLocalViewBackgroundImage(e){Qe.setLocalViewBackgroundImage(e)}setRemoteViewBackgroundImage(e,n){Qe.setRemoteViewBackgroundImage(e,n)}setLayoutMode(e){Qe.setLayoutMode(e)}setCameraDefaultState(e){Qe.setCameraDefaultState(e)}callExperimentalAPI(e){var o,r,l,c;const n=JSON.parse(e);if(n===e)return;const{api:a,params:i}=n;if(!(!a||!i))try{switch(a){case"setAssetsPath":(r=(o=w.TUICallEngine)==null?void 0:o.callExperimentalAPI)==null||r.call(o,e);break;case"forceUseV2API":const{enable:u}=i;E.update(g.CALL,s.IS_FORCE_USE_V2_API,!!u);break;default:break}}catch(u){(c=(l=this._tuiCallEngine)==null?void 0:l.reportLog)==null||c.call(l,{name:"TUICallKit.callExperimentalAPI.fail",data:{error:u}})}}async accept(){var n,a,i,o;const e=E.getData(g.CALL,s.CALL_STATUS);if((a=(n=this._tuiCallEngine)==null?void 0:n.reportLog)==null||a.call(n,{name:"TUICallKit.accept.start",data:{callStatus:e}}),e!==b.CONNECTED)try{E.update(g.CALL,s.CALL_STATUS,b.CONNECTED),sa(this._tuiCallEngine);const r=await this._tuiCallEngine.accept();await this._handleAcceptResponse(r)}catch(r){if((o=(i=this._tuiCallEngine)==null?void 0:i.reportLog)==null||o.call(i,{name:"TUICallKit.accept.fail",level:"error",error:r}),Ni(r))return;Pt(r,this._isFromChat),la(r,G.AUDIO,this._tuiCallEngine),this._resetCallStore()}}async _handleAcceptResponse(e){var n,a;if(e){(a=this._chatCombine)==null||a.callTUIService({message:(n=e==null?void 0:e.data)==null?void 0:n.message}),E.update(g.CALL,s.IS_CLICKABLE,!0),this.startTimer();const i=E.getData(g.CALL,s.CALL_MEDIA_TYPE),o=this._getFeatureButtonDefaultState(lt.Camera)===Gt.Close;i===G.VIDEO&&!o&&await this.openCamera(s.LOCAL_VIDEO),await this._tuiCallEngine.setVideoQuality(E.getData(g.CALL,s.VIDEO_RESOLUTION));const r=E.getData(g.CALL,s.LOCAL_USER_INFO);E.update(g.CALL,s.LOCAL_USER_INFO,{...r,isEnter:!0}),E.update(g.CALL,s.LOCAL_USER_INFO_EXCLUDE_VOLUMN,{...r,isEnter:!0}),ct(!0,s.AUDIO)}}async hangup(){if(E.getData(g.CALL,s.CALL_STATUS)!==b.IDLE){try{const e=await this._tuiCallEngine.hangup();e==null||e.forEach(n=>{var a,i;(n==null?void 0:n.code)===0&&((i=this._chatCombine)==null||i.callTUIService({message:(a=n==null?void 0:n.data)==null?void 0:a.message}))})}catch(e){Pt(e,this._isFromChat),console.debug(e)}this._resetCallStore()}}async reject(){var e,n;if(E.getData(g.CALL,s.CALL_STATUS)!==b.IDLE){try{const a=await this._tuiCallEngine.reject();(a==null?void 0:a.code)===0&&((n=this._chatCombine)==null||n.callTUIService({message:(e=a==null?void 0:a.data)==null?void 0:e.message}))}catch(a){Pt(a,this._isFromChat),console.debug(a)}this._resetCallStore()}}async openCamera(e){try{if(U.isH5||U.isWeChat){const a=E.getData(g.CALL,s.CAMERA_POSITION)===st.FRONT;this._tuiCallEngine.openCamera(e,a)}else await this._tuiCallEngine.openCamera(e);ct(!0,s.VIDEO)}catch(n){la(n,G.VIDEO,this._tuiCallEngine),console.error(`${s.PREFIX}openCamera error: ${n}.`)}}async closeCamera(){try{await this._tuiCallEngine.closeCamera(),ct(!1,s.VIDEO)}catch(e){console.error(`${s.PREFIX}closeCamera error: ${e}.`)}}async openMicrophone(){try{await this._tuiCallEngine.openMicrophone(),ct(!0,s.AUDIO)}catch(e){console.error(`${s.PREFIX}openMicrophone failed, error: ${e}.`)}}async closeMicrophone(){try{await this._tuiCallEngine.closeMicrophone(),ct(!1,s.AUDIO)}catch(e){console.error(`${s.PREFIX}closeMicrophone failed, error: ${e}.`)}}unMuteSpeaker(){var e,n;try{const a=(n=(e=this._tuiCallEngine)==null?void 0:e.getTRTCCloudInstance)==null?void 0:n.call(e);a&&(a.muteAllRemoteAudio(!1),E.update(g.CALL,s.IS_MUTE_SPEAKER,!1))}catch(a){console.error(`${s.PREFIX}unMuteSpeaker failed, error: ${a}.`)}}muteSpeaker(){var e,n;try{const a=(n=(e=this._tuiCallEngine)==null?void 0:e.getTRTCCloudInstance)==null?void 0:n.call(e);a&&(a.muteAllRemoteAudio(!0),E.update(g.CALL,s.IS_MUTE_SPEAKER,!0))}catch(a){console.error(`${s.PREFIX}muteSpeaker failed, error: ${a}.`)}}switchScreen(e){e&&E.update(g.CALL,s.BIG_SCREEN_USER_ID,e)}async switchCallMediaType(){var e,n;try{const a=E.getData(g.CALL,s.CALL_MEDIA_TYPE);if(a===G.AUDIO){console.warn(`${s.PREFIX}switchCallMediaType failed, ${a} not support.`);return}const i=await this._tuiCallEngine.switchCallMediaType(G.AUDIO);(i==null?void 0:i.code)===0&&((n=this._chatCombine)==null||n.callTUIService({message:(e=i==null?void 0:i.data)==null?void 0:e.message})),E.update(g.CALL,s.CALL_MEDIA_TYPE,G.AUDIO);const r=E.getData(g.CALL,s.IS_GROUP)?ne.CALLING_GROUP_VIDEO:ne.CALLING_C2C_VIDEO,l=On();this.statusChanged&&this.statusChanged({oldStatus:r,newStatus:l})}catch(a){console.error(`${s.PREFIX}switchCallMediaType failed, error: ${a}.`)}}async switchCamera(){const n=E.getData(g.CALL,s.CAMERA_POSITION)===st.BACK?st.FRONT:st.BACK;try{await this._tuiCallEngine.switchCamera(n),E.update(g.CALL,s.CAMERA_POSITION,n)}catch(a){console.error(`${s.PREFIX}_switchCamera failed, error: ${a}.`)}}async setBlurBackground(e){try{await this._tuiCallEngine.setBlurBackground(e?Dr:0),E.update(g.CALL,s.ENABLE_VIRTUAL_BACKGROUND,e)}catch(n){console.error(`${s.PREFIX}_setBlurBackground failed, error: ${n}.`)}}async switchDevice(e){try{await this._tuiCallEngine.switchDevice(e)}catch(n){console.error(`${s.PREFIX}_switchDevice failed, error: ${n}.`)}}async getDeviceList(e){try{return await this._tuiCallEngine.getDeviceList(e)}catch(n){this._handleCallError(n,"call")}}_addListenTuiCallEngineEvent(){this._engineEventHandler.addListenTuiCallEngineEvent()}_removeListenTuiCallEngineEvent(){this._engineEventHandler.removeListenTuiCallEngineEvent()}setCallback(e){const{beforeCalling:n,afterCalling:a,onMinimized:i,onMessageSentByMe:o,kickedOut:r,statusChanged:l}=e;n&&(this.beforeCalling=n),a&&(this.afterCalling=a),i&&(this.onMinimized=i),o&&(this.onMessageSentByMe=o),r&&(this.kickedOut=r),l&&(this.statusChanged=l)}toggleMinimize(){const e=E.getData(g.CALL,s.IS_MINIMIZED);E.update(g.CALL,s.IS_MINIMIZED,!e),console.log(`${s.PREFIX}toggleMinimize: ${e} -> ${!e}.`),this.onMinimized&&this.onMinimized(e,!e)}executeExternalBeforeCalling(){this.beforeCalling&&this.beforeCalling()}executeExternalAfterCalling(){this.afterCalling&&this.afterCalling()}async handleExceptionExit(e){var n,a;try{const i=E.getData(g.CALL,s.CALL_STATUS),o=E.getData(g.CALL,s.CALL_ROLE);if((a=(n=this._tuiCallEngine)==null?void 0:n.reportLog)==null||a.call(n,{name:"TUICallkit.handleExceptionExit",data:{callStatus:i,callRole:o,source:(e==null?void 0:e.type)||"unknown"}}),i===b.IDLE)return;console.log(`${s.PREFIX} handleExceptionExit triggered, status: ${i}, role: ${o}, event: ${e==null?void 0:e.type}`),i===b.CALLING&&(o===X.CALLER?await(this==null?void 0:this.hangup()):await(this==null?void 0:this.reject())),i===b.CONNECTED&&await(this==null?void 0:this.hangup()),this==null||this._resetCallStore()}catch(i){console.error(`${s.PREFIX} handleExceptionExit failed, error: ${i}.`)}e&&(e.returnValue="")}setVideoDisplayMode(e){E.update(g.CALL,s.DISPLAY_MODE,e)}async setVideoResolution(e){var n;try{if(!e)return;E.update(g.CALL,s.VIDEO_RESOLUTION,e),await((n=this._tuiCallEngine)==null?void 0:n.setVideoQuality(e))}catch(a){console.warn(`${s.PREFIX}setVideoResolution failed, error: ${a}.`)}}startTimer(){this._timerId===-1&&(this._startTimeStamp=oa(),this._timerId=wn.run(s.TIMEOUT,this._updateCallDuration.bind(this),{delay:1e3}))}_handleCallError(e,n){if(this._permissionCheckTimer&&clearInterval(this._permissionCheckTimer),!Ni(e))throw la(e,G.AUDIO,this._tuiCallEngine),console.error(`${s.PREFIX}${n} failed, error: ${e}.`),this._resetCallStore(),e}async _updateCallStoreBeforeCall(e,n,a){let i=le.CALLER_CALLING_MSG;(a||E.getData(g.CALL,s.IS_MINIMIZED)||n.length>1)&&(i=le.CALLER_GROUP_CALLING_MSG),console.warn(`呼叫前更新 call status: ${!!a||n.length>1}, ${a}, ${JSON.stringify(n)}`);let o={[s.CALL_MEDIA_TYPE]:e,[s.CALL_ROLE]:X.CALLER,[s.REMOTE_USER_INFO_LIST]:n,[s.REMOTE_USER_INFO_EXCLUDE_VOLUMN_LIST]:n,[s.IS_GROUP]:!!a||n.length>1,[s.CALL_TIPS]:i,[s.GROUP_ID]:a};E.updateStore({...o,[s.CALL_STATUS]:b.CALLING},g.CALL),this.statusChanged&&this.statusChanged({oldStatus:ne.IDLE,newStatus:a||n.length>1?ne.DIALING_GROUP:ne.DIALING_C2C}),sa(this._tuiCallEngine);const r=await Wt(n.map(l=>l.userId),this.getTim());r.length>0&&(E.update(g.CALL,s.REMOTE_USER_INFO_LIST,r),E.update(g.CALL,s.REMOTE_USER_INFO_EXCLUDE_VOLUMN_LIST,r))}async _updateCallStoreAfterCall(e,n){var a,i;if(n){E.update(g.CALL,s.IS_CLICKABLE,!0),Ti(n==null?void 0:n.roomID,n==null?void 0:n.strRoomID);const o=E.getData(g.CALL,s.CALL_MEDIA_TYPE);if(n.code===0){(i=this._chatCombine)==null||i.callTUIService({message:(a=n==null?void 0:n.data)==null?void 0:a.message});try{await this._tuiCallEngine.setVideoQuality(E.getData(g.CALL,s.VIDEO_RESOLUTION))}catch(c){console.warn(`${s.PREFIX}setVideoQuality failed, error: ${c}.`)}}else{this._resetCallStore();return}const r=this._getFeatureButtonDefaultState(lt.Camera)===Gt.Close;o===G.VIDEO&&!r&&await this.openCamera(s.LOCAL_VIDEO);const l=E.getData(g.CALL,s.LOCAL_USER_INFO);E.update(g.CALL,s.LOCAL_USER_INFO,{...l,isEnter:!0}),E.update(g.CALL,s.LOCAL_USER_INFO_EXCLUDE_VOLUMN,{...l,isEnter:!0}),ct(!0,s.AUDIO)}else this._permissionCheckTimer&&clearInterval(this._permissionCheckTimer),this._permissionCheckTimer=null,this._resetCallStore()}_getFeatureButtonDefaultState(e){var a;const{button:n}=E.getData(g.CALL,s.CUSTOM_UI_CONFIG);return(a=n==null?void 0:n[e])==null?void 0:a.state}_updateCallDuration(){const e=Math.round((oa()-this._startTimeStamp)/1e3),n=gi(e);E.update(g.CALL,s.CALL_DURATION,n)}_stopTimer(){this._timerId!==-1&&(wn.clearTask(this._timerId),this._timerId=-1)}_cleanupAvoidRepeatCallState(e){var a,i;(i=(a=this._tuiCallEngine)==null?void 0:a.reportLog)==null||i.call(a,{name:"TUICallkit._cleanupAvoidRepeatCallState",data:{methodName:e}});let n=[];e?n=[this[e]]:n=[this.calls,this.accept,this.hangup,this.reject,this.join,this.inviteUser],n==null||n.forEach(o=>{var r;(r=o==null?void 0:o.clearCallState)==null||r.call(o,this)})}_resetCallStore(){var o;this._cleanupAvoidRepeatCallState(),(o=this._bellContext)==null||o.stop();const e=On();this._stopTimer();let n=Object.keys(Ln).filter(r=>{switch(Ln[r]){case s.CALL_STATUS:case s.LANGUAGE:case s.IS_GROUP:case s.DISPLAY_MODE:case s.VIDEO_RESOLUTION:case s.ENABLE_FLOAT_WINDOW:case s.LOCAL_USER_INFO:case s.IS_SHOW_ENABLE_VIRTUAL_BACKGROUND:case s.IS_AI_TRANSCRIBER_ENABLED:case s.IS_FORCE_USE_V2_API:case s.LOCAL_USER_INFO_EXCLUDE_VOLUMN:return!1;default:return!0}});n=n.map(r=>Ln[r]),E.reset(g.CALL,n),E.getData(g.CALL,s.CALL_STATUS)!==b.IDLE&&E.reset(g.CALL,[s.CALL_STATUS],!0),E.reset(g.CALL,[s.IS_MINIMIZED],!0),E.reset(g.CALL,[s.IS_EAR_PHONE],!0),E.reset(g.CALL,[s.PUSHER_ID],!0),E.reset(g.CALL,[s.ENABLE_VIRTUAL_BACKGROUND],!0),E.reset(g.CALL,[s.IS_MUTE_SPEAKER],!0),E.update(g.CALL,s.LOCAL_USER_INFO,{...E.getData(g.CALL,s.LOCAL_USER_INFO),isVideoAvailable:!1,isAudioAvailable:!1}),E.update(g.CALL,s.LOCAL_USER_INFO_EXCLUDE_VOLUMN,{...E.getData(g.CALL,s.LOCAL_USER_INFO_EXCLUDE_VOLUMN),isVideoAvailable:!1,isAudioAvailable:!1}),E.update(g.CALL,s.REMOTE_USER_INFO_LIST,[]),E.update(g.CALL,s.REMOTE_USER_INFO_EXCLUDE_VOLUMN_LIST,[]),E.update(g.CALL,s.CAMERA_POSITION,st.FRONT);const i=On();e!==i&&this.statusChanged&&this.statusChanged({oldStatus:e,newStatus:i})}async getGroupMemberList(e,n){const a=E.getData(g.CALL,s.GROUP_ID);return await rs(a,this.getTim(),e,n)}async getGroupProfile(){const e=E.getData(g.CALL,s.GROUP_ID);return await ss(e,this.getTim())}_watchTUIStore(){E==null||E.watch(g.CALL,{[s.CALL_STATUS]:this._handleCallStatusChange})}_unwatchTUIStore(){E==null||E.unwatch(g.CALL,{[s.CALL_STATUS]:this._handleCallStatusChange})}bindTUICore(e){this._TUICore=e}getTim(){var e,n;return this._tim?this._tim:this._tuiCallEngine?((e=this._tuiCallEngine)==null?void 0:e.tim)||((n=this._tuiCallEngine)==null?void 0:n.getTim()):(console.warn(`${s.PREFIX}getTim warning: _tuiCallEngine Instance is not available.`),null)}setIsFromChat(e){this._isFromChat=e}setCurrentGroupId(e){this._currentGroupId=e}getCurrentGroupId(){return this._currentGroupId}setDefaultOfflinePushInfo(e){this._offlinePushInfo=e}getDefaultOfflinePushInfo(){const e=E.getData(g.CALL,s.LOCAL_USER_INFO);return this._offlinePushInfo?this._offlinePushInfo:{title:(e==null?void 0:e.displayUserInfo)||"",description:we("you have a new call")}}async getCallMessage(e){return await this._chatCombine.getCallKitMessage(e,this.getTim())}},m(He,"instance"),He);te([ee()],K.prototype,"init",1),te([ee()],K.prototype,"inviteUser",1),te([ee()],K.prototype,"calls",1),te([ee()],K.prototype,"join",1),te([ee()],K.prototype,"accept",1),te([ee()],K.prototype,"hangup",1),te([ee()],K.prototype,"reject",1),te([ee()],K.prototype,"openCamera",1),te([ee()],K.prototype,"closeCamera",1),te([ee()],K.prototype,"openMicrophone",1),te([ee()],K.prototype,"closeMicrophone",1),te([ee()],K.prototype,"unMuteSpeaker",1),te([ee()],K.prototype,"muteSpeaker",1),te([ee()],K.prototype,"switchScreen",1),te([ee()],K.prototype,"switchCallMediaType",1),te([ee()],K.prototype,"switchCamera",1),te([ee()],K.prototype,"setBlurBackground",1),te([ee()],K.prototype,"switchDevice",1);let mt=K;const V=mt.getInstance();function v(...t){const e=[],n={}.hasOwnProperty;for(let a=0;a<t.length;a++){const i=t[a];if(!i)continue;const o=typeof i;if(o==="string"||o==="number")e.push(i);else if(Array.isArray(i)){if(i.length){const r=v.apply(null,i);r&&e.push(r)}}else if(o==="object"){if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]")){e.push(i.toString());continue}for(const r in i)n.call(i,r)&&i[r]&&e.push(r)}}return e.join(" ")}function F(t){const{url:e,style:n,className:a,onClick:i=()=>null}=t;return M.jsx("img",{className:a,style:{width:"100%",height:"100%",...n},src:e,onClick:i,alt:""})}const Es="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE1LjcxNDMgOS43ODc0NkMxNS43MTQzIDkuODQ0NjMgMTUuNjU0OSA5Ljk0NDY4IDE1LjUzNjIgMTAuMDg3NkMxNS40MTc1IDEwLjIzMDUgMTUuMjkwNCAxMC4zOTkyIDE1LjE1NDcgMTAuNTkzNkMxNS4wMTkxIDEwLjc4OCAxNC44OTE5IDEwLjk5OTUgMTQuNzczMiAxMS4yMjgyQzE0LjY1NDUgMTEuNDU2OSAxNC41OTUxIDExLjY5MTMgMTQuNTk1MSAxMS45MzE0QzE0LjU5NTEgMTIuMTcxNSAxNC42NTQ1IDEyLjQwMzEgMTQuNzczMiAxMi42MjYxQzE0Ljg5MTkgMTIuODQ5IDE1LjAxOTEgMTMuMDUyIDE1LjE1NDcgMTMuMjM0OUMxNS4yOTA0IDEzLjQxNzkgMTUuNDE3NSAxMy41Njk0IDE1LjUzNjIgMTMuNjg5NUMxNS42NTQ5IDEzLjgwOTUgMTUuNzE0MyAxMy44ODY3IDE1LjcxNDMgMTMuOTIxVjE1LjcyMTlDMTUuNzE0MyAxNS45MTYzIDE1LjY0MzYgMTYuMTM2NCAxNS41MDIzIDE2LjM4MjNDMTUuMzYxIDE2LjYyODEgMTUuMTg1OCAxNi44NTk3IDE0Ljk3NjcgMTcuMDc2OUMxNC43Njc1ID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kuOTcgMTAuODQ5NSAxOC42MDU0IDguMzY4NDQgMTYuMjEyNEM1Ljg1OSAxMy43OTIxIDQuMjcxNjMgMTAuOTg3IDQgNy40MzA3N0M0IDYuOTQ1MDIgNC4yMDIyOCA2LjQ4MTIgNC41NTgyNiA2LjE1MDdMNC44MjA1IDUuOTA3MjNaIiBmaWxsPSIjMTQ3QUZGIiBzdHlsZT0iZmlsbDojMTQ3QUZGO2ZpbGw6Y29sb3IoZGlzcGxheS1wMyAwLjA3ODQgMC40Nzg0IDEuMDAwMCk7ZmlsbC1vcGFjaXR5OjE7Ii8+Cjwvc3ZnPgo=",Ia={"message-c2c-container":"_message-c2c-container_14m8l_1","call-content":"_call-content_14m8l_7",c2c:"_c2c_14m8l_10",icon:"_icon_14m8l_13"};function ps(t){const{message:e={},onClick:n}=t,[a,i]=d.useState(),[o,r]=d.useState(),[l,c]=d.useState([]),[u,I]=d.useState();function N(L){I(()=>L)}const A={[s.TRANSLATE]:N};d.useEffect(()=>(E.watch(g.CALL,A,{notifyRangeWhenWatch:s.MYSELF}),E.watch(g.CALL,A),()=>{E.unwatch(g.CALL,A)}),[]),d.useEffect(()=>{V.getCallMessage(e).then(L=>{const{callMediaType:S,messageCardContent:f="",inviteeList:y=[]}=L||{};r(S),i(f),c(y)})},[e]);const T=typeof u=="function"?u(a):a,D=o===G.AUDIO?Cs:Es,h=v([Ia["message-c2c-container"],"c2c"]),C=()=>{typeof n=="function"&&n({callMediaType:o,inviteeList:l})},p=v([Ia.icon]);return M.jsxs("div",{className:h,onClick:C,children:[M.jsx("div",{className:p,children:M.jsx(F,{url:D})}),M.jsx("span",{className:Ia["call-content"],children:T})]})}const Li={"message-group-container":"_message-group-container_hjjzg_1",group:"_group_hjjzg_1"};function Ls(t){const{message:e={},onClick:n}=t,[a,i]=d.useState(),[o,r]=d.useState();d.useEffect(()=>{V.getCallMessage(e).then(c=>{const{callType:u,messageCardContent:I=""}=c||{};r(u),i(I)})},[e]);const l=v([Li["message-group-container"],"group"]);return M.jsx("div",{className:l,children:M.jsx("span",{className:Li["call-content"],children:a})})}function fs(t){const{callType:e="C2C"}=t;return e==="C2C"?M.jsx(ps,{...t}):M.jsx(Ls,{...t})}const Y="tk",ig="";function fi(t){const{callDuration:e,style:n}=t;return M.jsx("div",{className:`${Y}-time`,style:n,children:e})}const og="",yi=d.createContext({gutter:void 0});function Ot(t){const{className:e="",children:n=[],gutter:a,style:i,justify:o="center"}=t,r=d.useMemo(()=>({gutter:a}),[a]),l=v([`${Y}-row-container`,`${Y}-row-justify-${o}`,e]),c=()=>((n==null?void 0:n.length)||0)<2?n:d.Children.map(n,I=>{var N;if(((N=I==null?void 0:I.type)==null?void 0:N.displayName)==="Col")return I});return M.jsx("div",{className:l,style:i,children:M.jsx(yi.Provider,{value:r,children:c()})})}const rg="";function be(t){const{span:e=12,children:n,style:a={},justify:i="center",align:o="start"}=t,{gutter:r}=d.useContext(yi),l=v([`${Y}-col-container`,`${Y}-col-${e}`,`${Y}-col-justify-content-${i}`,`${Y}-col-align-items-${o}`]),u=(()=>{if(typeof r=="number")return{paddingLeft:`${r/2}px`,paddingRight:`${r/2}px`}})();return M.jsx("div",{className:l,style:{...u,...a},children:n})}be.displayName="Col";const ys="data:image/svg+xml;base64,PHN2ZyB0PSIxNzAwMDU0NjMzMjQxIiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjU3NjciIHdpZHRoPSI2NCIgaGVpZ2h0PSI2NCI+PHBhdGggZD0iTTUyMC42NjUwOTkgNjQuNTY0MTMxYTI5LjI0NDM0MSAyOS4yNDQzNDEgMCAwIDAtNy4wNzEzOTQtMC44OTQxOTZjLTE2LjIxMDk4NCAwLTI5LjM1MDAwMSAxMy4xNDA5NzQtMjkuMzUwMDAxIDI5LjM1IDAgMTUuODI5NDM0IDEyLjUzODMyIDI4LjY5NjQ3NCAyOC4yMjI5NjEgMjkuMjkzMjU4djAuMDcyMzk2YzAuMzc1NjggMCAwLjc1MTM2LTAuMDEzNjk3IDEuMTI3MDQtMC4wMTM2OTYgMjE2LjQ5MzQzMiAwIDM4OS42MjkwODYgMTczLjk0MTgwMSAzODkuNjI5MDg2IDM5MC40MzMyNzUgMCAyMTYuNDk1Mzg4LTE3My4xMzU2NTQgMzg4LjgyNjg1Mi0zODkuNjI5MDg2IDM4OC44MjY4NTNzLTM4OS42MzEwNDItMTcyLjMzMzQyMS0zODkuNjMxMDQyLTM4OC44Mjg4MDljMC0wLjI3MDAyIDAuMDA5NzgzLTAuNTM2MTI3IDAuMDA5NzgzLTAuODA0MTloLTAuMDA5NzgzYzAtMTYuMjA5MDI3LTEzLjE0MDk3NC0yOS4zNTAwMDEtMjkuMzUwMDAxLTI5LjM1MDAwMXMtMjkuMzUwMDAxIDEzLjEzOTAxNy0yOS4zNTAwMDEgMjkuMzUwMDAxYzAgMC4wNTQ3ODcgMC4wMDc4MjcgMC4xMDk1NzMgMC4wMDc4MjcgMC4xNjQzNi0wLjAwMTk1NyAwLjIxMzI3Ny0wLjAwNzgyNyAwLjQyNDU5Ny0wLjAwNzgyNyAwLjYzOTgzIDAgMjQ3LjYwODM0NiAyMDAuNzIyNjk4IDQ0OC4zMzEwNDQgNDQ4LjMzMTA0NCA0NDguMzMxMDQzIDI0Ny42MDYzODkgMCA0NDguMzI5MDg3LTIwMC43MjI2OTggNDQ4LjMyOTA4Ny00NDguMzMxMDQzLTAuMDAxOTU3LTI0NS4yNDA3NzktMTk2LjkxNjk4MS00NDQuNDU0ODg3LTQ0MS4yNTc2OTMtNDQ4LjIzOTA4MXoiIGZpbGw9IiNmZmZmZmYiIHAtaWQ9IjU3NjgiPjwvcGF0aD48L3N2Zz4=",sg="";function js(t){const{size:e}=t;return M.jsx("div",{className:`${Y}-circle-container`,style:{width:e,height:e},children:M.jsx("img",{alt:"",style:{width:"100%",height:"100%"},className:`${Y}-circle-loading`,src:ys})})}const lg="";function Ss(t){const{size:e}=t;return M.jsxs("div",{className:`${Y}-dot-container`,style:{width:e,height:e},children:[M.jsx("div",{className:"dot"}),M.jsx("div",{className:"dot"}),M.jsx("div",{className:"dot"})]})}const cg="";function ji(t){const{style:e,className:n,background:a,showOverlayer:i=!0,fit:o="cover",defaultSrc:r,onError:l}=t,c=v([n,`${Y}-overlayer-container`]),[u,I]=d.useState(a||r),[N,A]=d.useState({objectFit:o}),T={width:"100%",height:"100%"};d.useEffect(()=>{A({objectFit:o})},[o]);function D(h){l==null||l(h),I(r)}return M.jsxs("div",{className:c,children:[i&&M.jsx("div",{style:e,className:"overlay"}),u&&M.jsx("img",{alt:"bg",style:{...T,...N},src:u,onError:D})]})}const Mg="";function da(t){const{theme:e="circle",size:n,showOverlayer:a=!0,children:i,style:o={},showLoading:r=!0,fit:l}=t,c=()=>e==="dot"?M.jsx(Ss,{size:n}):M.jsx(js,{size:n}),u=v([`${Y}-loading-container`,{[`${Y}-loading-overlayer`]:a}]);return M.jsxs("div",{className:u,style:o,children:[a&&M.jsx(ji,{fit:l}),r&&c(),i]})}const ug="",Ce=d.forwardRef((t,e)=>{const{icon:n,iconSize:a,content:i,loading:o,children:r,showText:l=!0,ghost:c=!1,onClick:u=y=>null,isStopPropagation:I=!1,size:N="middle",direction:A="vertical",className:T="",iconClassName:D="",isMobile:h=!1,style:C,...p}=t,L=y=>{I&&y.stopPropagation(),!o&&(u==null||u(y))},S=()=>{const y=v([`${Y}-icon`,D,{[`${Y}-size-s`]:N==="small",[`${Y}-size-m`]:N==="middle",[`${Y}-size-l`]:N==="large"}]),j=a?{width:a,height:a}:{};return M.jsx("div",{className:y,onClick:L,style:j,children:o?M.jsx(da,{showOverlayer:!1}):n})},f=()=>l&&M.jsx("div",{className:`${Y}-content`,children:i||r});return M.jsxs("div",{ref:e,style:C,className:v([T,`${Y}-btn-container`,{mobile:h,pc:!h,[`${Y}-flex-vertical`]:A==="vertical",[`${Y}-flex-horizontal`]:A==="horizontal",[`${Y}-size-s`]:N==="small",[`${Y}-size-m`]:N==="middle",[`${Y}-size-l`]:N==="large",[`${Y}-ghost`]:c===!0}]),...p,children:[n&&S(),f()]})}),ms="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxyZWN0IHg9IjAuNzY5MjMxIiB5PSIwLjc2OTIzMSIgd2lkdGg9IjE4LjQ2MTUiIGhlaWdodD0iMTguNDYxNSIgcng9IjAuNzY5MjMxIiBzdHJva2U9IndoaXRlIiBzdHJva2Utd2lkdGg9IjEuNTM4NDYiLz4KICAgIDxwYXRoIGQ9Ik0xMS41Mzg1IDEyLjMwNzdDMTEuNTM4NSAxMS44ODI5IDExLjg4MjkgMTEuNTM4NSAxMi4zMDc3IDExLjUzODVIMTkuMjMwOFYxOC40NjE1QzE5LjIzMDggMTguODg2NCAxOC44ODY0IDE5LjIzMDggMTguNDYxNiAxOS4yMzA4SDExLjUzODVWMTIuMzA3N1oiIHN0cm9rZT0id2hpdGUiIHN0cm9rZS13aWR0aD0iMS41Mzg0NiIvPgogICAgPHBhdGggZD0iTTAuNzY5Mjg3IDAuNzY5MjI2TDguOTcyMyA4LjkyNDEyIiBzdHJva2U9IndoaXRlIiBzdHJva2Utd2lkdGg9IjEuNTM4NDYiLz4KICAgIDxwYXRoIGQ9Ik05LjQ5NjcgNC43MTcxNlY5LjQ0ODZINC43NDE0NiIgc3Ryb2tlPSJ3aGl0ZSIgc3Ryb2tlLXdpZHRoPSIxLjUzODQ2IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KICA8L3N2Zz4=",Os="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTguNDk5OTEgNEgyLjk5OTkxQzIuNDQ3NjIgNCAxLjk5OTkxIDQuNDQ3NzIgMS45OTk5MSA1VjE3QzEuOTk5OTEgMTcuNTUyMyAyLjQ0NzYyIDE4IDIuOTk5OTEgMThIMTQuOTk5OUMxNS41NTIyIDE4IDE1Ljk5OTkgMTcuNTUyMyAxNS45OTk5IDE3VjExLjUiIHN0cm9rZT0iI0Q1RTBGMiIgc3Ryb2tlLXdpZHRoPSIxLjUiLz4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMS40OTk5IDMuNVY4LjVIMTYuNDk5OVYzLjVIMTEuNDk5OVpNMTAuOTk5OSAyQzEwLjQ0NzYgMiA5Ljk5OTkxIDIuNDQ3NzIgOS45OTk5MSAzVjlDOS45OTk5MSA5LjU1MjI4IDEwLjQ0NzYgMTAgMTAuOTk5OSAxMEgxNi45OTk5QzE3LjU1MjIgMTAgMTcuOTk5OSA5LjU1MjI4IDE3Ljk5OTkgOVYzQzE3Ljk5OTkgMi40NDc3MiAxNy41NTIyIDIgMTYuOTk5OSAySDEwLjk5OTlaIiBmaWxsPSIjRDVFMEYyIi8+Cjwvc3ZnPgo=",Si={"minimize-desk-container":"_minimize-desk-container_gxy8f_1","minimize-mobile-container":"_minimize-mobile-container_gxy8f_11"};function mi(){const t=!U.isPC,e=()=>{try{document.fullscreenElement&&document.exitFullscreen()}catch(a){console.debug(a)}V.toggleMinimize()},n=M.jsx(F,{url:t?Os:ms});return M.jsx(Ce,{className:t?Si["minimize-mobile-container"]:Si["minimize-desk-container"],icon:n,onClick:e,isMobile:t})}function wt(){const[t,e]=d.useState(!1),[n,a]=d.useState(!1),[i,o]=d.useState([]),r=d.useCallback(A=>A?A instanceof Map?Array.from(A.entries()).map(([T,D])=>({language:String(T),text:l(D)})):typeof A=="object"?Object.entries(A).map(([T,D])=>({language:String(T),text:l(D)})):[]:[],[]),l=d.useCallback(A=>{if(A==null)return"";if(typeof A=="string")return A;if(typeof A=="object")try{return JSON.stringify(A)}catch(T){return console.warn("Failed to stringify translation content:",T),"[Invalid Object]"}return String(A)},[]),c=d.useCallback(A=>A.map(T=>({roundId:T.segmentId,sender:T.speakerUserId,nick:"",text:T.sourceText,end:T.isCompleted,translation:r(T.translationTexts)})),[r]),u=d.useCallback(A=>{e(A||!1)},[]),I=d.useCallback(A=>{a(A||!1)},[]),N=d.useCallback(A=>{if(A&&A.length>0){const T=c(A);o(T)}else o([])},[c]);return d.useEffect(()=>{try{const A=E.getData(g.CALL,s.IS_AI_TRANSCRIBER_ENABLED),T=E.getData(g.CALL,s.IS_AI_TRANSCRIBER_RUNNING),D=E.getData(g.CALL,s.REALTIME_MESSAGE_LIST);A!==void 0&&e(A),T!==void 0&&a(T),D&&N(D),s.IS_AI_TRANSCRIBER_ENABLED&&s.IS_AI_TRANSCRIBER_RUNNING&&s.REALTIME_MESSAGE_LIST&&E.watch(g.CALL,{[s.IS_AI_TRANSCRIBER_ENABLED]:u,[s.IS_AI_TRANSCRIBER_RUNNING]:I,[s.REALTIME_MESSAGE_LIST]:N})}catch(A){console.warn("AI Assistant hook initialization failed:",A),e(!0),a(!1)}return()=>{try{s.IS_AI_TRANSCRIBER_ENABLED&&s.IS_AI_TRANSCRIBER_RUNNING&&s.REALTIME_MESSAGE_LIST&&E.unwatch(g.CALL,{[s.IS_AI_TRANSCRIBER_ENABLED]:u,[s.IS_AI_TRANSCRIBER_RUNNING]:I,[s.REALTIME_MESSAGE_LIST]:N})}catch(A){console.warn("AI Assistant hook cleanup failed:",A)}}},[u,I,N]),{isAITranscriberEnabled:t,isAITranscriberRunning:n,subtitleInfoList:i}}const ws="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTMiIGhlaWdodD0iMTQiIHZpZXdCb3g9IjAg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IGQ9Ik0xLjg0NTI5IDkuMzQ0NDhMMS4xNTU4NiA4LjY1NTA1TDMuODExMTQgNS45OTk3N0wxLjE1NTg2IDMuMzQ0NDhMMS44NDUyOSAyLjY1NTA1TDUuMTkgNS45OTk3N0wxLjg0NTI5IDkuMzQ0NDhaIiBmaWxsPSJ3aGl0ZSIgZmlsbC1vcGFjaXR5PSIwLjQyIi8+Cjwvc3ZnPgo=",Ig="",zs=({onOpenSettings:t,className:e})=>{const[n,a]=d.useState(!1),i=d.useRef(null),{subtitleInfoList:o,isAITranscriberRunning:r}=wt(),l=!U.isPC,c=l?Us:ws,u=l?24:20,I=D=>{if(D==null)return{language:"Unknown",text:""};if(typeof D=="string")try{const h=JSON.parse(D);return h&&typeof h=="object"?{language:h.language||"Unknown",text:h.text||D}:{language:"Unknown",text:D}}catch{return{language:"Unknown",text:D}}return{language:"Unknown",text:String(D)}},N=D=>I(D).text;if(d.useEffect(()=>{i.current&&(i.current.scrollTop=i.current.scrollHeight)},[o]),!r||!Array.isArray(o)||o.length===0)return null;const A=()=>{l||a(!0)},T=()=>{l||a(!1)};return M.jsxs("div",{ref:i,className:`subtitle-content ${l?"subtitle-content--h5":""} ${e||""}`,onMouseEnter:A,onMouseLeave:T,children:[M.jsx("div",{className:`subtitle-content__settings-btn ${l?"subtitle-content__settings-btn--h5":""}`,style:{display:l||n?"block":"none"},onClick:t,children:M.jsx("img",{src:c,width:u,height:u,alt:"Settings"})}),o.map((D,h)=>M.jsxs("div",{children:[h!==0&&M.jsx("div",{style:{height:"16px"}}),M.jsx("div",{className:"sender-name",children:`${(D==null?void 0:D.nick)||(D==null?void 0:D.sender)}:`}),M.jsx("div",{children:D==null?void 0:D.text}),Array.isArray(D==null?void 0:D.translation)&&D.translation.map((C,p)=>M.jsx("div",{children:M.jsx("span",{children:N(C==null?void 0:C.text)})},p))]},D.roundId))]})},P=d.createContext({}),Oi=d.createContext({}),ga=d.createContext({focusItem:null,setFocusItem:()=>{}}),ge=d.createContext({localUserInfo:{userId:""},remoteList:[]}),wi=d.createContext(!1),Ht=d.createContext({}),Ui=d.createContext({t:E.getData(g.CALL,s.TRANSLATE)});function ae(){return d.useContext(Ui)}const vn=t=>{const[e,n]=d.useState([]),[a,i]=d.useState(),o=l=>{var c,u,I;switch(t){case oe.CAMERA:n((l==null?void 0:l.cameraList)||[]),i(((c=l==null?void 0:l.currentCamera)==null?void 0:c.deviceId)||"");break;case oe.MICROPHONE:i(((u=l==null?void 0:l.currentMicrophone)==null?void 0:u.deviceId)||""),n((l==null?void 0:l.microphoneList)||[]);break;case oe.SPEAKER:i(((I=l==null?void 0:l.currentSpeaker)==null?void 0:I.deviceId)||""),n((l==null?void 0:l.speakerList)||[]);break}},r={[s.DEVICE_LIST]:o};return d.useEffect(()=>(E.watch(g.CALL,r,{notifyRangeWhenWatch:s.MYSELF}),()=>{E.unwatch(g.CALL,r)}),[]),[{deviceList:e,currentDeviceId:a},{setCurrentDeviceId:i}]};function Na(){const[t,e]=d.useState(E.getData(g.CALL,s.CALL_DURATION)),n=i=>{e(i)},a={[s.CALL_DURATION]:n};return d.useEffect(()=>(E.watch(g.CALL,a,{notifyRangeWhenWatch:s.MYSELF}),()=>{E.unwatch(g.CALL,a)}),[]),t}const dg="",Aa=({value:t,options:e,placeholder:n="Please select",disabled:a=!1,onChange:i})=>{const[o,r]=d.useState(!1),l=d.useRef(null),c=(()=>{const N=e.find(A=>A.value===t);return N?N.label:n})(),u=()=>{a||r(!o)},I=N=>{i(N),r(!1)};return d.useEffect(()=>{const N=A=>{l.current&&!l.current.contains(A.target)&&r(!1)};return document.addEventListener("mousedown",N),()=>{document.removeEventListener("mousedown",N)}},[]),M.jsxs("div",{className:"custom-select-wrapper",ref:l,children:[M.jsxs("div",{className:`custom-select ${o?"is-open":""} ${a?"is-disabled":""}`,onClick:u,children:[M.jsx("span",{className:"select-text",children:c}),M.jsx("svg",{className:`select-arrow ${o?"is-open":""}`,width:"12",height:"8",viewBox:"0 0 12 8",fill:"none",children:M.jsx("path",{d:"M1 1L6 6L11 1",stroke:"#C0C4CC",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})]}),o&&M.jsx("div",{className:"custom-options",children:e.map(N=>M.jsx("div",{className:`custom-option ${t===N.value?"is-selected":""}`,onClick:()=>I(N.value),children:N.label},N.value))})]})},gg="",vs=({visible:t,onVisibleChange:e,onConfirm:n})=>{const{t:a}=ae(),i=d.useRef({recognitionLanguage:"zh",translationLanguage:"",subtitleDisplay:"both"}),[o,r]=d.useState("zh"),[l,c]=d.useState(""),[u,I]=d.useState("both");d.useEffect(()=>{t&&(r(i.current.recognitionLanguage),c(i.current.translationLanguage),I(i.current.subtitleDisplay))},[t]);const N=[{value:"zh",label:"中文"},{value:"en",label:"English"}],T=[{value:"",label:a("no-translation")},{value:"zh",label:"Chinese (中文)"},{value:"en",label:"English (英语)"},{value:"vi",label:"Vietnamese (越南语)"},{value:"ja",label:"Japanese (日语)"},{value:"ko",label:"Korean (韩语)"},{value:"id",label:"Indonesian (印尼语)"},{value:"th",label:"Thai (泰语)"},{value:"pt",label:"Portuguese (葡萄牙语)"},{value:"ar",label:"Arabic (阿拉伯语)"},{value:"es",label:"Spanish (西班牙语)"},{value:"fr",label:"French (法语)"},{value:"ms",label:"Malay (马来语)"},{value:"de",label:"German (德语)"},{value:"it",label:"Italian (意大利语)"},{value:"ru",label:"Russian (俄语)"}].filter(y=>y.value===""||y.value!==o),D=[{value:"both",label:a("show-bilingual")},{value:"original",label:a("show-original-only")}],h=()=>{C()},C=()=>{e(!1)},p=y=>{const j=String(y);r(j),l===j&&c("")},L=y=>{c(String(y))},S=y=>{I(String(y))},f=async()=>{try{i.current={recognitionLanguage:o,translationLanguage:l,subtitleDisplay:u};const y=l?[l]:[];await V._aiAssistant.updateRealTimeTranscriber({sourceLanguage:o,translationLanguages:y}),n({recognitionLanguage:o,translationLanguage:l,subtitleDisplay:u}),C()}catch(y){console.error("Failed to update AI transcriber settings:",y)}};return t?M.jsx("div",{className:"subtitle-settings-overlay-pc",onClick:h,children:M.jsxs("div",{className:"subtitle-settings-modal-pc",onClick:y=>y.stopPropagation(),children:[M.jsxs("div",{className:"modal-header-pc",children:[M.jsx("h3",{className:"modal-title-pc",children:a("ai-subtitle-settings")}),M.jsx("button",{className:"close-btn-pc",onClick:C,children:M.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:M.jsx("path",{d:"M12 4L4 12M4 4L12 12",stroke:"#666",strokeWidth:"2",strokeLinecap:"round"})})})]}),M.jsxs("div",{className:"modal-content-pc",children:[M.jsxs("div",{className:"setting-item-pc",children:[M.jsx("label",{className:"setting-label-pc",children:a("recognition-language")}),M.jsx(Aa,{value:o,options:N,onChange:p})]}),M.jsxs("div",{className:"setting-item-pc",children:[M.jsx("label",{className:"setting-label-pc",children:a("translation-language")}),M.jsx(Aa,{value:l,options:T,onChange:L})]}),M.jsxs("div",{className:"setting-item-pc",children:[M.jsx("label",{className:"setting-label-pc",children:a("subtitle-display-settings")}),M.jsx(Aa,{value:u,options:D,onChange:S})]})]}),M.jsxs("div",{className:"modal-footer-pc",children:[M.jsx("button",{className:"btn-pc btn-cancel-pc",onClick:C,children:a("Cancel")}),M.jsx("button",{className:"btn-pc btn-confirm-pc",onClick:f,children:a("save")})]})]})}):null},Ng="",bs=({visible:t,onVisibleChange:e,onConfirm:n})=>{const{t:a}=ae(),i=d.useRef({recognitionLanguage:"zh",translationLanguage:"",subtitleEnabled:!0}),[o,r]=d.useState("zh"),[l,c]=d.useState(""),[u,I]=d.useState(!0),[N,A]=d.useState(!1),[T,D]=d.useState(!1);d.useEffect(()=>{t&&(r(i.current.recognitionLanguage),c(i.current.translationLanguage),I(i.current.subtitleEnabled),A(!1),D(!1))},[t]);const h=[{value:"zh",label:"中文"},{value:"en",label:"English"}],p=[{value:"",label:a("no-translation")},{value:"zh",label:"Chinese (中文)"},{value:"en",label:"English (英语)"},{value:"vi",label:"Vietnamese (越南语)"},{value:"ja",label:"Japanese (日语)"},{value:"ko",label:"Korean (韩语)"},{value:"id",label:"Indonesian (印尼语)"},{value:"th",label:"Thai (泰语)"},{value:"pt",label:"Portuguese (葡萄牙语)"},{value:"ar",label:"Arabic (阿拉伯语)"},{value:"es",label:"Spanish (西班牙语)"},{value:"fr",label:"French (法语)"},{value:"ms",label:"Malay (马来语)"},{value:"de",label:"German (德语)"},{value:"it",label:"Italian (意大利语)"},{value:"ru",label:"Russian (俄语)"}].filter(O=>O.value===""||O.value!==o),L=O=>{const B=[...h,...p].find(H=>H.value===O);return(B==null?void 0:B.label)||""},S=()=>{e(!1)},f=O=>{r(O),A(!1),l===O&&c("")},y=O=>{c(O),D(!1)},j=()=>{I(!u)},z=async()=>{try{i.current={recognitionLanguage:o,translationLanguage:l,subtitleEnabled:u};const O=l?[l]:[];await V._aiAssistant.updateRealTimeTranscriber({sourceLanguage:o,translationLanguages:O}),n({recognitionLanguage:o,translationLanguage:l,subtitleEnabled:u}),S()}catch(O){console.error("Failed to update AI transcriber settings:",O)}};return t?M.jsxs("div",{className:"subtitle-settings-overlay",children:[M.jsxs("div",{className:"subtitle-settings-modal",onClick:O=>O.stopPropagation(),children:[M.jsx("div",{className:"modal-header",children:M.jsx("h3",{className:"modal-title",children:a("ai-subtitle-settings")})}),M.jsx("div",{className:"modal-content",children:M.jsxs("div",{className:"setting-group",children:[M.jsx("div",{className:"group-title",children:a("recognition-and-translation-settings")}),M.jsxs("div",{className:"group-content",children:[M.jsx("div",{className:"setting-section",children:M.jsxs("div",{className:"section-header",onClick:()=>A(!0),children:[M.jsx("span",{className:"section-title",children:a("recognition-language")}),M.jsxs("span",{className:"section-value",children:[L(o),M.jsx("svg",{className:"arrow-icon",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:M.jsx("path",{d:"M6 4L10 8L6 12",stroke:"#999",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})]})]})}),M.jsx("div",{className:"setting-section",children:M.jsxs("div",{className:"section-header",onClick:()=>D(!0),children:[M.jsx("span",{className:"section-title",children:a("translation-language")}),M.jsxs("span",{className:"section-value",children:[L(l)||a("no-translation"),M.jsx("svg",{className:"arrow-icon",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:M.jsx("path",{d:"M6 4L10 8L6 12",stroke:"#999",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})]})]})}),M.jsx("div",{className:"setting-section",children:M.jsxs("div",{className:"section-header",children:[M.jsx("span",{className:"section-title",children:a("subtitle-display-bilingual")}),M.jsx("div",{className:`toggle-switch ${u?"active":""}`,onClick:j,children:M.jsx("div",{className:"toggle-slider"})})]})})]})]})}),M.jsxs("div",{className:"modal-footer",children:[M.jsx("button",{className:"btn btn-cancel",onClick:S,children:a("Cancel")}),M.jsx("button",{className:"btn btn-confirm",onClick:z,children:a("confirm")})]})]}),N&&M.jsx("div",{className:"language-selector-overlay",onClick:()=>A(!1),children:M.jsxs("div",{className:"language-selector",onClick:O=>O.stopPropagation(),children:[M.jsxs("div",{className:"selector-header",children:[M.jsx("h3",{className:"selector-title",children:a("select-recognition-language")}),M.jsx("div",{className:"header-placeholder"})]}),M.jsx("div",{className:"language-list",children:h.map(O=>M.jsx("div",{className:`language-item ${o===O.value?"selected":""}`,onClick:()=>f(O.value),children:M.jsx("span",{children:O.label})},O.value))})]})}),T&&M.jsx("div",{className:"language-selector-overlay",onClick:()=>D(!1),children:M.jsxs("div",{className:"language-selector",onClick:O=>O.stopPropagation(),children:[M.jsxs("div",{className:"selector-header",children:[M.jsx("h3",{className:"selector-title",children:a("select-translation-language")}),M.jsx("div",{className:"header-placeholder"})]}),M.jsx("div",{className:"language-list",children:p.map(O=>M.jsx("div",{className:`language-item ${l===O.value?"selected":""}`,onClick:()=>y(O.value),children:M.jsx("span",{children:O.label})},O.value))})]})})]}):null},Ag="",xs=()=>{const{isAITranscriberRunning:t}=wt(),{t:e}=ae(),n=async()=>{try{t?await V._aiAssistant.stopRealtimeTranscriber():await V._aiAssistant.startRealtimeTranscriber({sourceLanguage:"zh",translationLanguages:["en"]})}catch(a){console.error("Failed to toggle AI transcriber:",a)}};return M.jsxs("div",{className:"ai-transcriber-switch",onClick:n,children:[M.jsx("span",{className:"ai-transcriber-switch__label",children:e("ai-subtitle")}),M.jsx("div",{className:`ai-transcriber-switch__toggle ${t?"ai-transcriber-switch__toggle--active":""}`,children:M.jsx("div",{className:"ai-transcriber-switch__slider"})})]})},_s="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE5IDEyLjExODJIMTcuMzMzVjMuNjY2OTlIMi42NjY5OVYxNi4zMzNIOC4xODk0NVYxOEgxVjJIMTlWMTIuMTE4MloiIGZpbGw9IndoaXRlIiBmaWxsLW9wYWNpdHk9IjAuOSIvPgo8cGF0aCBkPSJNMTUuNjY2NyA4LjAyMjAyQzE1LjY2NjcgOC4wMjIwMiAxNC45Njc3IDcuNzI1MzMgMTMuNzg0OSA3Ljc3NDc4QzEzLjA4NiA3LjgyNDIyIDEyLjU0ODQgNy45NzI1NyAxMi4xNzIgOC4zNjgxNUMxMS43NDE5IDguODEzMTkgMTEuNTI2OSA5LjM1NzExIDExLjUyNjkgMTAuMDQ5NEMxMS41MjY5IDEwLjc0MTcgMTEuNzQxOSAxMS4yMzYxIDEyLjExODMgMTEuNjMxN0MxMi40OTQ2IDExLjk3NzkgMTIuOTc4NSAxMi4xMjYyIDEzLjYyMzcgMTIuMTc1N0MxNC40MzAxIDEyLjI3NDUgMTUuNjY2NyAxMS45Nzc5IDE1LjY2NjcgMTEuOTc3OVYxMy4yNjM1QzE1LjY2NjcgMTMuMjYzNSAxNC43NTI3IDEzLjQ2MTMgMTMuNTE2MSAxMy40NjEzQzEyLjQ5NDYgMTMuNDYxMyAxMS42ODgyIDEzLjExNTIgMTEuM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guNjIzNjYgMTMuNDYxMyA3LjM4NzEgMTMuNDYxM0M2LjM2NTU5IDEzLjQ2MTMgNS41NTkxNCAxMy4xMTUyIDQuOTEzOTggMTIuNTIxOEM0LjMyMjU4IDExLjg3OSA0IDExLjA4NzggNCAxMC4wOTg4QzQgOS4wNjA0MyA0LjMyMjU4IDguMTcwMzYgNS4wMjE1MSA3LjUyNzU0QzUuNzIwNDMgNi44ODQ3MSA2LjU4MDY1IDYuNTM4NTcgNy42NTU5MiA2LjUzODU3QzguNjIzNjYgNi41Mzg1NyA5LjUzNzYzIDYuNzM2MzcgOS41Mzc2MyA2LjczNjM3VjguMDIyMDJaIiBmaWxsPSJ3aGl0ZSIgZmlsbC1vcGFjaXR5PSIwLjkiLz4KPHJlY3QgeD0iMTAiIHk9IjE0LjU5MTYiIHdpZHRoPSIxMCIgaGVpZ2h0PSI1IiByeD0iMi41IiBmaWxsPSIjNjc2QTcwIi8+CjxyZWN0IHg9IjEwLjQ5OTciIHk9IjE1LjA5MTYiIHdpZHRoPSI0IiBoZWlnaHQ9IjQiIHJ4PSIyIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K",Vs=()=>{const{isAITranscriberRunning:t}=wt(),e=async()=>{try{t?await V._aiAssistant.stopRealtimeTranscriber():await V._aiAssistant.startRealtimeTranscriber({sourceLanguage:"zh",translationLanguages:["en"]})}catch(n){console.error("Failed to toggle AI transcriber:",n)}};return M.jsx("div",{onClick:e,children:M.jsx("img",{src:t?_s:ks,width:"24px",height:"24px",alt:"AI Assistant Toggle"})})},Qs="data:image/svg+xml;base64,PHN2ZyB0PSIxNzAwMTIzNzY2MjQ3IiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjgyODIiIHdpZHRoPSIzMiIgaGVpZ2h0PSIzMiI+PHBhdGggZD0iTTU1Ny4yIDUxMmwyMzMuNC0yMzMuNGMxMi41LTEyLjUgMTIuNS0zMi44IDAtNDUuMnMtMzIuOC0xMi41LTQ1LjIgMEw1MTIgNDY2LjggMjc4LjYgMjMzLjRjLTEyLjUtMTIuNS0zMi44LTEyLjUtNDUuMiAwcy0xMi41IDMyLjggMCA0NS4yTDQ2Ni44IDUxMiAyMzMuNCA3NDUuNGMtMTIuNSAxMi41LTEyLjUgMzIuOCAwIDQ1LjIgNi4yIDYuMiAxNC40IDkuNCAyMi42IDkuNHMxNi40LTMuMSAyMi42LTkuNEw1MTIgNTU3LjJsMjMzLjQgMjMzLjRjNi4yIDYuMiAxNC40IDkuNCAyMi42IDkuNHMxNi40LTMuMSAyMi42LTkuNGMxMi41LTEyLjUgMTIuNS0zMi44IDAtNDUuMkw1NTcuMiA1MTJ6IiBwLWlkPSI4MjgzIj48L3BhdGg+PC9zdmc+";function Bs(){return M.jsx("svg",{width:"20",height:"19",viewBox:"0 0 20 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:M.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.99967 16.9987C14.1418 16.9987 17.4997 13.6409 17.4997 9.4987C17.4997 5.35657 14.1418 1.9987 9.99967 1.9987C5.85754 1.9987 2.49967 5.35657 2.49967 9.4987C2.49967 13.6409 5.85754 16.9987 9.99967 16.9987ZM19.1663 9.4987C19.1663 14.5613 15.0623 18.6654 9.99967 18.6654C4.93707 18.6654 0.833008 14.5613 0.833008 9.4987C0.833008 4.43609 4.93707 0.332031 9.99967 0.332031C15.0623 0.332032 19.1663 4.43609 19.1663 9.4987ZM9.16634 14.082V7.83203H10.833V14.082H9.16634ZM10.833 6.58203H9.16309V4.91211H10.833V6.58203Z",fillOpacity:"0.9"})})}function Ys(){return M.jsx("svg",{width:"20",height:"19",viewBox:"0 0 20 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:M.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.0016 17.0007C14.1438 17.0007 17.5016 13.6428 17.5016 9.50065C17.5016 5.35852 14.1438 2.00065 10.0016 2.00065C5.85949 2.00065 2.50163 5.35852 2.50163 9.50065C2.50163 13.6428 5.85949 17.0007 10.0016 17.0007ZM19.1683 9.50065C19.1683 14.5632 15.0642 18.6673 10.0016 18.6673C4.93902 18.6673 0.834961 14.5632 0.834961 9.50065C0.834961 4.43804 4.93902 0.333984 10.0016 0.333984C15.0642 0.333985 19.1683 4.43804 19.1683 9.50065ZM6.17119 12.1526L8.82313 9.50065L6.17119 6.84872L7.34969 5.67021L10.0016 8.32215L12.653 5.67078L13.8315 6.84929L11.1801 9.50065L13.8315 12.152L12.653 13.3306L10.0016 10.6792L7.34969 13.3311L6.17119 12.1526Z",fill:"#E54545"})})}function Rs(){return M.jsxs("svg",{width:"20",height:"19",viewBox:"0 0 20 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[M.jsx("path",{d:"M5.58317 9.57612L9.17951 13.2052L14.6332 7.05264L13.5732 6.16634L8.97764 10.4388L6.42478 8.66748L5.58317 9.57612Z",fill:"#0ABF77"}),M.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.1663 9.49967C19.1663 14.5623 15.0623 18.6663 9.99967 18.6663C4.93706 18.6663 0.833008 14.5623 0.833008 9.49967C0.833008 4.43706 4.93706 0.333008 9.99967 0.333008C15.0623 0.333008 19.1663 4.43706 19.1663 9.49967ZM17.4997 9.49967C17.4997 13.6418 14.1418 16.9997 9.99967 16.9997C5.85754 16.9997 2.49967 13.6418 2.49967 9.49967C2.49967 5.35754 5.85754 1.99967 9.99967 1.99967C14.1418 1.99967 17.4997 5.35754 17.4997 9.49967Z",fill:"#0ABF77"})]})}function Gs(){return M.jsx("svg",{width:"20",height:"19",viewBox:"0 0 20 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:M.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.99967 1.9987C14.1418 1.9987 17.4997 5.35653 17.4997 9.4987C17.4997 13.6408 14.1418 16.9987 9.99967 16.9987C5.85754 16.9987 2.49967 13.6408 2.49967 9.4987C2.49967 5.35653 5.85754 1.9987 9.99967 1.9987ZM19.1663 9.4987C19.1663 4.43612 15.0623 0.332031 9.99967 0.332031C4.93707 0.332031 0.833008 4.43612 0.833008 9.4987C0.833008 14.5613 4.93707 18.6654 9.99967 18.6654C15.0623 18.6654 19.1663 14.5613 19.1663 9.4987ZM9.16634 4.91536V11.1654H10.833V4.91536H9.16634ZM10.833 12.4154H9.16309V14.0853H10.833V12.4154Z",fill:"#FF7200"})})}const Dg="",Zs={info:M.jsx(Bs,{}),waring:M.jsx(Gs,{}),success:M.jsx(Rs,{}),error:M.jsx(Ys,{})};function zi(t){const{icon:e,showIcon:n=!0,duration:a=3e3,theme:i="info",style:o,closeBtn:r,showCloseBtn:l,className:c,children:u,plaintext:I=!1,onClose:N=()=>null}=t,A=d.useRef(void 0),T=v([c,`${Y}-message-container`,{[`${Y}-message-plaintext`]:I}]);d.useEffect(()=>(A.current&&clearTimeout(A.current),a>0&&(A.current=setTimeout(()=>{N==null||N()},a)),()=>{A&&clearTimeout(A.current)}),[a,N]);const D=()=>e||M.jsx(M.Fragment,{children:Zs[i]}),h=()=>r||M.jsx(F,{onClick:N,className:v([`${Y}-message-icon`,"close-icon"]),url:Qs});return M.jsxs("div",{className:T,style:o,children:[n&&!I&&D(),u,l&&!I&&h()]})}function vi(t){const{className:e,style:n}=t,[a,i]=d.useState(null),[o,r]=d.useState(!0),[l,c]=d.useState(0),{t:u}=ae(),I=v([e]);function N(T){if(typeof T=="object"){const{text:D="",duration:h=0}=T;i(D),c(h)}else i(T)}const A=d.useMemo(()=>{if(typeof u=="function"&&a!==null)return u(a)},[u,a]);return d.useEffect(()=>(E.watch(g.CALL,{[s.CALL_TIPS]:N},{notifyRangeWhenWatch:s.MYSELF}),()=>{E.unwatch(g.CALL,{[s.CALL_TIPS]:N})}),[]),M.jsx("div",{className:I,style:n,children:o&&M.jsx(zi,{style:{whiteSpace:"nowrap"},duration:l,onClose:()=>r(!1),plaintext:!0,children:A})})}const bi={"top-bar-container":"_top-bar-container_1m8fv_1","top-bar":"_top-bar_1m8fv_1"};function Fs(t){const{callDuration:e}=t,{isGroupCall:n,callStatus:a,callRole:i,allowedMinimized:o}=d.useContext(P),{isAITranscriberEnabled:r}=wt(),l=n&&(a===b.CONNECTED||i===X.CALLER),c=a===b.CONNECTED&&r;return M.jsx("div",{className:bi["top-bar-container"],children:M.jsxs(Ot,{className:bi["top-bar"],children:[M.jsx(be,{justify:"start",span:4,children:M.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px"},children:[o&&M.jsx(mi,{}),c&&M.jsx(Vs,{})]})}),M.jsx(be,{align:"center",span:4,children:a===b.CONNECTED?M.jsx(fi,{callDuration:e}):l&&M.jsx(vi,{})}),M.jsx(be,{span:4})]})})}const xi=!!(typeof window<"u"&&window.document&&window.document.createElement);function Ps(t){const e=document.getElementById(t);!document.fullscreenElement&&e?e.requestFullscreen().catch(n=>{console.error(`Error attempting to enable fullscreen mode: ${n.message} (${n.name})`)}):document.exitFullscreen()}function Ws(){}const Hs="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik00LjY2NjgzIDkuMzMzMzdIMy4zMzM1VjQuMDAwMDRDMy4zMzM1IDMuNjMxODUgMy42MzE5NyAzLjMzMzM3IDQuMDAwMTYgMy4zMzMzN0w5LjMzMzUgMy4zMzMzN1Y0LjY2NjcxSDUuNjA5NjNMOS44MDQ5IDguODYxOTlMOC44NjIwOSA5LjgwNDhMNC42NjY4MyA1LjYwOTUyVjkuMzMzMzdaTTE1LjMzMzMgMTAuNjY2N0gxNi42NjY3VjE2QzE2LjY2NjcgMTYuMzY4MiAxNi4zNjgyIDE2LjY2NjcgMTYgMTYuNjY2N0wxMC42NjY3IDE2LjY2NjdMMTAuNjY2NyAxNS4zMzMzSDE0LjM5MDVMMTAuMTk1MyAxMS4xMzhMMTEuMTM4MSAxMC4xOTUyTDE1LjMzMzMgMTQuMzkwNVYxMC42NjY3WiIgZmlsbD0id2hpdGUiLz4KPHBhdGggZD0iTTAuNjY2NjY3IDEuMzMzMzNDMC42NjY2NjcgMC45NjUxNDQgMC45NjUxNDQgMC42NjY2NjcgMS4zMzMzMyAwLjY2NjY2N0gxOC42NjY3QzE5LjAzNDkgMC42NjY2NjcgMTkuMzMzMyAwLjk2NTE0NCAxOS4zMzMzIDEuMzMzMzNWMTguNjY2N0MxOS4zMzMzIDE5LjAzNDkgMTkuMDM0OSAxOS4zMzMzIDE4LjY2NjcgMTkuMzMzM0gxLjMzMzMzQzAuOTY1MTQzIDE5LjMzMzMgMC42NjY2NjcgMTkuMDM0OSAwLjY2NjY2NyAxOC42NjY3VjEuMzMzMzNaIiBzdHJva2U9IndoaXRlIiBzdHJva2Utd2lkdGg9IjEuMzMzMzMiLz4KPC9zdmc+",Js={"full-screen-container":"_full-screen-container_16bjq_1"};function Xs(t){const{domID:e}=t,n=M.jsx(F,{url:Hs});return M.jsx(Ce,{className:Js["full-screen-container"],icon:n,onClick:()=>{typeof e=="string"&&Ps(e)}})}const Da={"single-top-bar":"_single-top-bar_v1223_1","topbar-center":"_topbar-center_v1223_13","topbar-right-controls":"_topbar-right-controls_v1223_22"};function Ks(t){const{callDuration:e}=t,{isGroupCall:n,callStatus:a,allowedMinimized:i,allowedFullScreen:o}=d.useContext(P),{isAITranscriberEnabled:r}=wt(),l=a===b.CONNECTED&&!n,c=a===b.CONNECTED&&r;return M.jsxs("div",{className:Da["single-top-bar"],children:[M.jsx("div",{className:Da["topbar-center"],children:l&&M.jsx(fi,{callDuration:e})}),M.jsxs("div",{className:Da["topbar-right-controls"],children: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Mi40NDM2IDEwLjkwMjcgMTIuMTk0M0wxMy4wMzM3IDEwLjA2MzNDMTMuNTkyMSA5LjUwNDk0IDEzLjYyMTkgOC42MDkyMyAxMy4xMDE5IDguMDE0OTNMOC44OTQ2NCAzLjIwNjZDOC4zMjMyNSAyLjU1MzU5IDcuMzE4NjcgMi41MjAxNCA2LjcwNTExIDMuMTMzN0w0LjE2MTgyIDUuNjc2OTlaIiBmaWxsPSJ3aGl0ZSIvPgo8L2c+CjxkZWZzPgo8Y2xpcFBhdGggaWQ9ImNsaXAwXzIyXzE2OTciPgo8cmVjdCB3aWR0aD0iMzAiIGhlaWdodD0iMzAiIGZpbGw9IndoaXRlIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg==",pe="tk",J={"btn-icon":"_btn-icon_oeiwp_1","btn-icon-container":"_btn-icon-container_oeiwp_6","arrow-btn":"_arrow-btn_oeiwp_38","tk-btn":"_tk-btn_oeiwp_50"},qs={"accept-icon-container":"_accept-icon-container_171af_1"};function qe(t){const{t:e}=ae(),n=()=>V.accept(),a=v([J["btn-icon-container"],qs["accept-icon-container"],{mobile:!U.isPC,pc:U.isPC}]),i=M.jsx(F,{className:J["btn-icon"],url:$s});return M.jsx(Ce,{className:J[`${pe}-btn`],icon:i,iconClassName:a,onClick:n,...t,children:e("accept")})}const ki="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAiIGhlaWdodD0iMzAiIHZpZXdCb3g9IjAgMCAzMCAzMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTMwIDE2LjA1MDlDMzAgMTMuODE0NiAyOC43NzIyIDExLjcxOTQgMjYuNjg1NSAxMC45MTVDMjMuMDU5MSA5LjUxNzI2IDE5LjExOSA4Ljc1MDk4IDE1IDguNzUwOThDMTAuODgwOSA4Ljc1MDk4IDYuOTQwODYgOS41MTcyNiAzLjMxNDUzIDEwLjkxNUMxLjIyNzg0IDExLjcxOTQgMCAxMy44MTQ2IDAgMTYuMDUwOVYxOS42NDc2QzAgMjAuNTE1MyAwLjczNDAwMyAyMS4yMDIgMS41OTk3OCAyMS4xNDQzTDcuOTc0NzggMjAuNzE5M0M4Ljc2MjcyIDIwLjY2NjggOS4zNzUgMjAuMDEyMyA5LjM3NSAxOS4yMjI2VjE2LjIwOUM5LjM3NSAxNS44NTY0IDkuNjIwMzQgMTUuNTUwMyA5Ljk2NjQ0IDE1LjQ4MzFDMTEuNTk1NSAxNS4xNjY3IDEzLjI3ODQgMTUuMDAxIDE1IDE1LjAwMUMxNi43MjE2IDE1LjAwMSAxOC40MDQ1IDE1LjE2NjcgMjAuMDMzNiAxNS40ODMxQzIwLjM3OTcgMTUuNTUwMyAyMC42MjUgMTUuODU2NCAyMC42MjUgMTYuMjA5VjE5LjIyMjZDMjAuNjI1IDIwLjAxMjMgMjEuMjM3MyAyMC42NjY4IDIyLjAyNTIgMjAuNzE5M0wyOC40MDAyIDIxLjE0NDNDMjkuMjY2IDIxLjIwMiAzMCAyMC41MTUzIDMwIDE5LjY0NzZWMTYuMDUwOVoiIGZpbGw9IndoaXRlIi8+Cjwvc3ZnPgo=",el={"reject-icon-container":"_reject-icon-container_mg9y1_1"};function et(t){const{t:e}=ae(),n=()=>V.reject(),a=v([J["btn-icon-container"],el["reject-icon-container"],{mobile:!U.isPC,pc:U.isPC}]),i=M.jsx(F,{className:J["btn-icon"],url:ki});return M.jsx(Ce,{className:J[`${pe}-btn`],icon:i,iconClassName:a,onClick:n,...t,children:e("reject")})}var Vi=function(e){return e.reduce(function(n,a){var i=a[0],o=a[1];return n[i]=o,n},{})},Qi=typeof window<"u"&&window.document&&window.document.createElement?rt.useLayoutEffect:rt.useEffect,ue="top",Le="bottom",fe="right",Ie="left",Ta="auto",Jt=[ue,Le,fe,Ie],Ut="start",Xt="end",tl="clippingParents",Bi="viewport",Kt="popper",nl="reference",Yi=Jt.reduce(function(t,e){return t.concat([e+"-"+Ut,e+"-"+Xt])},[]),Ri=[].concat(Jt,[Ta]).reduce(function(t,e){return t.concat([e,e+"-"+Ut,e+"-"+Xt])},[]),al="beforeRead",il="read",ol="afterRead",rl="beforeMain",sl="main",ll="afterMain",cl="beforeWrite",Ml="write",ul="afterWrite",Il=[al,il,ol,rl,sl,ll,cl,Ml,ul];function xe(t){return t?(t.nodeName||"").toLowerCase():null}function Ne(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Mt(t){var e=Ne(t).Element;return t instanceof e||t instanceof Element}function ye(t){var e=Ne(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function ha(t){if(typeof ShadowRoot>"u")return!1;var e=Ne(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function dl(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var a=e.styles[n]||{},i=e.attributes[n]||{},o=e.elements[n];!ye(o)||!xe(o)||(Object.assign(o.style,a),Object.keys(i).forEach(function(r){var l=i[r];l===!1?o.removeAttribute(r):o.setAttribute(r,l===!0?"":l)}))})}function gl(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(a){var i=e.elements[a],o=e.attributes[a]||{},r=Object.keys(e.styles.hasOwnProperty(a)?e.styles[a]:n[a]),l=r.reduce(function(c,u){return c[u]="",c},{});!ye(i)||!xe(i)||(Object.assign(i.style,l),Object.keys(o).forEach(function(c){i.removeAttribute(c)}))})}}const Nl={name:"applyStyles",enabled:!0,phase:"write",fn:dl,effect:gl,requires:["computeStyles"]};function _e(t){return t.split("-")[0]}var ut=Math.max,bn=Math.min,zt=Math.round;function Ea(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Gi(){return!/^((?!chrome|android).)*safari/i.test(Ea())}function vt(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var a=t.getBoundingClientRect(),i=1,o=1;e&&ye(t)&&(i=t.offsetWidth>0&&zt(a.width)/t.offsetWidth||1,o=t.offsetHeight>0&&zt(a.height)/t.offsetHeight||1);var r=Mt(t)?Ne(t):window,l=r.visualViewport,c=!Gi()&&n,u=(a.left+(c&&l?l.offsetLeft:0))/i,I=(a.top+(c&&l?l.offsetTop:0))/o,N=a.width/i,A=a.height/o;return{width:N,height:A,top:I,right:u+N,bottom:I+A,left:u,x:u,y:I}}function Ca(t){var e=vt(t),n=t.offsetWidth,a=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-a)<=1&&(a=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:a}}function Zi(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&ha(n)){var a=e;do{if(a&&t.isSameNode(a))return!0;a=a.parentNode||a.host}while(a)}return!1}function Be(t){return Ne(t).getComputedStyle(t)}function Al(t){return["table","td","th"].indexOf(xe(t))>=0}function tt(t){return((Mt(t)?t.ownerDocument:t.document)||window.document).documentElement}function xn(t){return xe(t)==="html"?t:t.assignedSlot||t.parentNode||(ha(t)?t.host:null)||tt(t)}function Fi(t){return!ye(t)||Be(t).position==="fixed"?null:t.offsetParent}function Dl(t){var e=/firefox/i.test(Ea()),n=/Trident/i.test(Ea());if(n&&ye(t)){var a=Be(t);if(a.position==="fixed")return null}var i=xn(t);for(ha(i)&&(i=i.host);ye(i)&&["html","body"].indexOf(xe(i))<0;){var o=Be(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||e&&o.willChange==="filter"||e&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function $t(t){for(var e=Ne(t),n=Fi(t);n&&Al(n)&&Be(n).position==="static";)n=Fi(n);return n&&(xe(n)==="html"||xe(n)==="body"&&Be(n).position==="static")?e:n||Dl(t)||e}function pa(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function qt(t,e,n){return ut(t,bn(e,n))}function Tl(t,e,n){var a=qt(t,e,n);return a>n?n:a}function Pi(){return{top:0,right:0,bottom:0,left:0}}function Wi(t){return Object.assign({},Pi(),t)}function Hi(t,e){return e.reduce(function(n,a){return n[a]=t,n},{})}var hl=function(e,n){return e=typeof e=="function"?e(Object.assign({},n.rects,{placement:n.placement})):e,Wi(typeof e!="number"?e:Hi(e,Jt))};function El(t){var e,n=t.state,a=t.name,i=t.options,o=n.elements.arrow,r=n.modifiersData.popperOffsets,l=_e(n.placement),c=pa(l),u=[Ie,fe].indexOf(l)>=0,I=u?"height":"width";if(!(!o||!r)){var N=hl(i.padding,n),A=Ca(o),T=c==="y"?ue:Ie,D=c==="y"?Le:fe,h=n.rects.reference[I]+n.rects.reference[c]-r[c]-n.rects.popper[I],C=r[c]-n.rects.reference[c],p=$t(o),L=p?c==="y"?p.clientHeight||0:p.clientWidth||0:0,S=h/2-C/2,f=N[T],y=L-A[I]-N[D],j=L/2-A[I]/2+S,z=qt(f,j,y),O=c;n.modifiersData[a]=(e={},e[O]=z,e.centerOffset=z-j,e)}}function Cl(t){var e=t.state,n=t.options,a=n.element,i=a===void 0?"[data-popper-arrow]":a;i!=null&&(typeof i=="string"&&(i=e.elements.popper.querySelector(i),!i)||Zi(e.elements.popper,i)&&(e.elements.arrow=i))}const pl={name:"arrow",enabled:!0,phase:"main",fn:El,effect:Cl,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function bt(t){return t.split("-")[1]}var Ll={top:"auto",right:"auto",bottom:"auto",left:"auto"};function fl(t,e){var n=t.x,a=t.y,i=e.devicePixelRatio||1;return{x:zt(n*i)/i||0,y:zt(a*i)/i||0}}function Ji(t){var e,n=t.popper,a=t.popperRect,i=t.placement,o=t.variation,r=t.offsets,l=t.position,c=t.gpuAcceleration,u=t.adaptive,I=t.roundOffsets,N=t.isFixed,A=r.x,T=A===void 0?0:A,D=r.y,h=D===void 0?0:D,C=typeof I=="function"?I({x:T,y:h}):{x:T,y:h};T=C.x,h=C.y;var p=r.hasOwnProperty("x"),L=r.hasOwnProperty("y"),S=Ie,f=ue,y=window;if(u){var j=$t(n),z="clientHeight",O="clientWidth";if(j===Ne(n)&&(j=tt(n),Be(j).position!=="static"&&l==="absolute"&&(z="scrollHeight",O="scrollWidth")),j=j,i===ue||(i===Ie||i===fe)&&o===Xt){f=Le;var Q=N&&j===y&&y.visualViewport?y.visualViewport.height:j[z];h-=Q-a.height,h*=c?1:-1}if(i===Ie||(i===ue||i===Le)&&o===Xt){S=fe;var B=N&&j===y&&y.visualViewport?y.visualViewport.width:j[O];T-=B-a.width,T*=c?1:-1}}var H=Object.assign({position:l},u&&Ll),se=I===!0?fl({x:T,y:h},Ne(n)):{x:T,y:h};if(T=se.x,h=se.y,c){var $;return Object.assign({},H,($={},$[f]=L?"0":"",$[S]=p?"0":"",$.transform=(y.devicePixelRatio||1)<=1?"translate("+T+"px, "+h+"px)":"translate3d("+T+"px, "+h+"px, 0)",$))}return Object.assign({},H,(e={},e[f]=L?h+"px":"",e[S]=p?T+"px":"",e.transform="",e))}function yl(t){var e=t.state,n=t.options,a=n.gpuAcceleration,i=a===void 0?!0:a,o=n.adaptive,r=o===void 0?!0:o,l=n.roundOffsets,c=l===void 0?!0:l,u={placement:_e(e.placement),variation:bt(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:i,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,Ji(Object.assign({},u,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:r,roundOffsets:c})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,Ji(Object.assign({},u,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const jl={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:yl,data:{}};var _n={passive:!0};function Sl(t){var e=t.state,n=t.instance,a=t.options,i=a.scroll,o=i===void 0?!0:i,r=a.resize,l=r===void 0?!0:r,c=Ne(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&u.forEach(function(I){I.addEventListener("scroll",n.update,_n)}),l&&c.addEventListener("resize",n.update,_n),function(){o&&u.forEach(function(I){I.removeEventListener("scroll",n.update,_n)}),l&&c.removeEventListener("resize",n.update,_n)}}const ml={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Sl,data:{}};var Ol={left:"right",right:"left",bottom:"top",top:"bottom"};function kn(t){return t.replace(/left|right|bottom|top/g,function(e){return Ol[e]})}var wl={start:"end",end:"start"};function Xi(t){return t.replace(/start|end/g,function(e){return wl[e]})}function La(t){var e=Ne(t),n=e.pageXOffset,a=e.pageYOffset;return{scrollLeft:n,scrollTop:a}}function fa(t){return vt(tt(t)).left+La(t).scrollLeft}function Ul(t,e){var n=Ne(t),a=tt(t),i=n.visualViewport,o=a.clientWidth,r=a.clientHeight,l=0,c=0;if(i){o=i.width,r=i.height;var u=Gi();(u||!u&&e==="fixed")&&(l=i.offsetLeft,c=i.offsetTop)}return{width:o,height:r,x:l+fa(t),y:c}}function zl(t){var e,n=tt(t),a=La(t),i=(e=t.ownerDocument)==null?void 0:e.body,o=ut(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),r=ut(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),l=-a.scrollLeft+fa(t),c=-a.scrollTop;return Be(i||n).direction==="rtl"&&(l+=ut(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:r,x:l,y:c}}function ya(t){var e=Be(t),n=e.overflow,a=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+a)}function Ki(t){return["html","body","#document"].indexOf(xe(t))>=0?t.ownerDocument.body:ye(t)&&ya(t)?t:Ki(xn(t))}function en(t,e){var n;e===void 0&&(e=[]);var a=Ki(t),i=a===((n=t.ownerDocument)==null?void 0:n.body),o=Ne(a),r=i?[o].concat(o.visualViewport||[],ya(a)?a:[]):a,l=e.concat(r);return i?l:l.concat(en(xn(r)))}function ja(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function vl(t,e){var n=vt(t,!1,e==="fixed");return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}function $i(t,e,n){return e===Bi?ja(Ul(t,n)):Mt(e)?vl(e,n):ja(zl(tt(t)))}function bl(t){var e=en(xn(t)),n=["absolute","fixed"].indexOf(Be(t).position)>=0,a=n&&ye(t)?$t(t):t;return Mt(a)?e.filter(function(i){return Mt(i)&&Zi(i,a)&&xe(i)!=="body"}):[]}function xl(t,e,n,a){var i=e==="clippingParents"?bl(t):[].concat(e),o=[].concat(i,[n]),r=o[0],l=o.reduce(function(c,u){var I=$i(t,u,a);return c.top=ut(I.top,c.top),c.right=bn(I.right,c.right),c.bottom=bn(I.bottom,c.bottom),c.left=ut(I.left,c.left),c},$i(t,r,a));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function qi(t){var e=t.reference,n=t.element,a=t.placement,i=a?_e(a):null,o=a?bt(a):null,r=e.x+e.width/2-n.width/2,l=e.y+e.height/2-n.height/2,c;switch(i){case ue:c={x:r,y:e.y-n.height};break;case Le:c={x:r,y:e.y+e.height};break;case fe:c={x:e.x+e.width,y:l};break;case Ie:c={x:e.x-n.width,y:l};break;default:c={x:e.x,y:e.y}}var u=i?pa(i):null;if(u!=null){var I=u==="y"?"height":"width";switch(o){case Ut:c[u]=c[u]-(e[I]/2-n[I]/2);break;case Xt:c[u]=c[u]+(e[I]/2-n[I]/2);break}}return c}function tn(t,e){e===void 0&&(e={});var n=e,a=n.placement,i=a===void 0?t.placement:a,o=n.strategy,r=o===void 0?t.strategy:o,l=n.boundary,c=l===void 0?tl:l,u=n.rootBoundary,I=u===void 0?Bi:u,N=n.elementContext,A=N===void 0?Kt:N,T=n.altBoundary,D=T===void 0?!1:T,h=n.padding,C=h===void 0?0:h,p=Wi(typeof C!="number"?C:Hi(C,Jt)),L=A===Kt?nl:Kt,S=t.rects.popper,f=t.elements[D?L:A],y=xl(Mt(f)?f:f.contextElement||tt(t.elements.popper),c,I,r),j=vt(t.elements.reference),z=qi({reference:j,element:S,strategy:"absolute",placement:i}),O=ja(Object.assign({},S,z)),Q=A===Kt?O:j,B={top:y.top-Q.top+p.top,bottom:Q.bottom-y.bottom+p.bottom,left:y.left-Q.left+p.left,right:Q.right-y.right+p.right},H=t.modifiersData.offset;if(A===Kt&&H){var se=H[i];Object.keys(B).forEach(function($){var Se=[fe,Le].indexOf($)>=0?1:-1,me=[ue,Le].indexOf($)>=0?"y":"x";B[$]+=se[me]*Se})}return B}function _l(t,e){e===void 0&&(e={});var n=e,a=n.placement,i=n.boundary,o=n.rootBoundary,r=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,u=c===void 0?Ri:c,I=bt(a),N=I?l?Yi:Yi.filter(function(D){return bt(D)===I}):Jt,A=N.filter(function(D){return u.indexOf(D)>=0});A.length===0&&(A=N);var T=A.reduce(function(D,h){return D[h]=tn(t,{placement:h,boundary:i,rootBoundary:o,padding:r})[_e(h)],D},{});return Object.keys(T).sort(function(D,h){return T[D]-T[h]})}function kl(t){if(_e(t)===Ta)return[];var e=kn(t);return[Xi(t),e,Xi(e)]}function Vl(t){var e=t.state,n=t.options,a=t.name;if(!e.modifiersData[a]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,r=n.altAxis,l=r===void 0?!0:r,c=n.fallbackPlacements,u=n.padding,I=n.boundary,N=n.rootBoundary,A=n.altBoundary,T=n.flipVariations,D=T===void 0?!0:T,h=n.allowedAutoPlacements,C=e.options.placement,p=_e(C),L=p===C,S=c||(L||!D?[kn(C)]:kl(C)),f=[C].concat(S).reduce(function(ot,ke){return ot.concat(_e(ke)===Ta?_l(e,{placement:ke,boundary:I,rootBoundary:N,padding:u,flipVariations:D,allowedAutoPlacements:h}):ke)},[]),y=e.rects.reference,j=e.rects.popper,z=new Map,O=!0,Q=f[0],B=0;B<f.length;B++){var H=f[B],se=_e(H),$=bt(H)===Ut,Se=[ue,Le].indexOf(se)>=0,me=Se?"width":"height",q=tn(e,{placement:H,boundary:I,rootBoundary:N,altBoundary:A,padding:u}),Te=Se?$?fe:Ie:$?Le:ue;y[me]>j[me]&&(Te=kn(Te));var Qt=kn(Te),Je=[];if(o&&Je.push(q[se]<=0),l&&Je.push(q[Te]<=0,q[Qt]<=0),Je.every(function(ot){return ot})){Q=H,O=!1;break}z.set(H,Je)}if(O)for(var Bt=D?3:1,An=function(ke){var Lt=f.find(function(Yt){var Xe=z.get(Yt);if(Xe)return Xe.slice(0,ke).every(function(Dn){return Dn})});if(Lt)return Q=Lt,"break"},pt=Bt;pt>0;pt--){var ve=An(pt);if(ve==="break")break}e.placement!==Q&&(e.modifiersData[a]._skip=!0,e.placement=Q,e.reset=!0)}}const Ql={name:"flip",enabled:!0,phase:"main",fn:Vl,requiresIfExists:["offset"],data:{_skip:!1}};function eo(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function to(t){return[ue,fe,Le,Ie].some(function(e){return t[e]>=0})}function Bl(t){var e=t.state,n=t.name,a=e.rects.reference,i=e.rects.popper,o=e.modifiersData.preventOverflow,r=tn(e,{elementContext:"reference"}),l=tn(e,{altBoundary:!0}),c=eo(r,a),u=eo(l,i,o),I=to(c),N=to(u);e.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:I,hasPopperEscaped:N},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":I,"data-popper-escaped":N})}const Yl={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Bl};function Rl(t,e,n){var a=_e(t),i=[Ie,ue].indexOf(a)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,r=o[0],l=o[1];return r=r||0,l=(l||0)*i,[Ie,fe].indexOf(a)>=0?{x:l,y:r}:{x:r,y:l}}function Gl(t){var e=t.state,n=t.options,a=t.name,i=n.offset,o=i===void 0?[0,0]:i,r=Ri.reduce(function(I,N){return I[N]=Rl(N,e.rects,o),I},{}),l=r[e.placement],c=l.x,u=l.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=c,e.modifiersData.popperOffsets.y+=u),e.modifiersData[a]=r}const Zl={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Gl};function Fl(t){var e=t.state,n=t.name;e.modifiersData[n]=qi({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const Pl={name:"popperOffsets",enabled:!0,phase:"read",fn:Fl,data:{}};function Wl(t){return t==="x"?"y":"x"}function Hl(t){var e=t.state,n=t.options,a=t.name,i=n.mainAxis,o=i===void 0?!0:i,r=n.altAxis,l=r===void 0?!1:r,c=n.boundary,u=n.rootBoundary,I=n.altBoundary,N=n.padding,A=n.tether,T=A===void 0?!0:A,D=n.tetherOffset,h=D===void 0?0:D,C=tn(e,{boundary:c,rootBoundary:u,padding:N,altBoundary:I}),p=_e(e.placement),L=bt(e.placement),S=!L,f=pa(p),y=Wl(f),j=e.modifiersData.popperOffsets,z=e.rects.reference,O=e.rects.popper,Q=typeof h=="function"?h(Object.assign({},e.rects,{placement:e.placement})):h,B=typeof Q=="number"?{mainAxis:Q,altAxis:Q}:Object.assign({mainAxis:0,altAxis:0},Q),H=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,se={x:0,y:0};if(j){if(o){var $,Se=f==="y"?ue:Ie,me=f==="y"?Le:fe,q=f==="y"?"height":"width",Te=j[f],Qt=Te+C[Se],Je=Te-C[me],Bt=T?-O[q]/2:0,An=L===Ut?z[q]:O[q],pt=L===Ut?-O[q]:-z[q],ve=e.elements.arrow,ot=T&&ve?Ca(ve):{width:0,height:0},ke=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Pi(),Lt=ke[Se],Yt=ke[me],Xe=qt(0,z[q],ot[q]),Dn=S?z[q]/2-Bt-Xe-Lt-B.mainAxis:An-Xe-Lt-B.mainAxis,Wa=S?-z[q]/2+Bt+Xe+Yt+B.mainAxis:pt+Xe+Yt+B.mainAxis,Tn=e.elements.arrow&&$t(e.elements.arrow),Ha=Tn?f==="y"?Tn.clientTop||0:Tn.clientLeft||0:0,Hn=($=H==null?void 0:H[f])!=null?$:0,Ja=Te+Dn-Hn-Ha,Jn=Te+Wa-Hn,Xn=qt(T?bn(Qt,Ja):Qt,Te,T?ut(Je,Jn):Je);j[f]=Xn,se[f]=Xn-Te}if(l){var Kn,Xa=f==="x"?ue:Ie,Ka=f==="x"?Le:fe,Ke=j[y],Rt=y==="y"?"height":"width",hn=Ke+C[Xa],_=Ke-C[Ka],$e=[ue,Ie].indexOf(p)!==-1,$n=(Kn=H==null?void 0:H[y])!=null?Kn:0,En=$e?hn:Ke-z[Rt]-O[Rt]-$n+B.altAxis,ur=$e?Ke+z[Rt]+O[Rt]-$n-B.altAxis:_,Ir=T&&$e?Tl(En,Ke,ur):qt(T?En:hn,Ke,T?ur:_);j[y]=Ir,se[y]=Ir-Ke}e.modifiersData[a]=se}}const Jl={name:"preventOverflow",enabled:!0,phase:"main",fn:Hl,requiresIfExists:["offset"]};function Xl(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function Kl(t){return t===Ne(t)||!ye(t)?La(t):Xl(t)}function $l(t){var e=t.getBoundingClientRect(),n=zt(e.width)/t.offsetWidth||1,a=zt(e.height)/t.offsetHeight||1;return n!==1||a!==1}function ql(t,e,n){n===void 0&&(n=!1);var a=ye(e),i=ye(e)&&$l(e),o=tt(e),r=vt(t,i,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(a||!a&&!n)&&((xe(e)!=="body"||ya(o))&&(l=Kl(e)),ye(e)?(c=vt(e,!0),c.x+=e.clientLeft,c.y+=e.clientTop):o&&(c.x=fa(o))),{x:r.left+l.scrollLeft-c.x,y:r.top+l.scrollTop-c.y,width:r.width,height:r.height}}function ec(t){var e=new Map,n=new Set,a=[];t.forEach(function(o){e.set(o.name,o)});function i(o){n.add(o.name);var r=[].concat(o.requires||[],o.requiresIfExists||[]);r.forEach(function(l){if(!n.has(l)){var c=e.get(l);c&&i(c)}}),a.push(o)}return t.forEach(function(o){n.has(o.name)||i(o)}),a}function tc(t){var e=ec(t);return Il.reduce(function(n,a){return n.concat(e.filter(function(i){return i.phase===a}))},[])}function nc(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function ac(t){var e=t.reduce(function(n,a){var i=n[a.name];return n[a.name]=i?Object.assign({},i,a,{options:Object.assign({},i.options,a.options),data:Object.assign({},i.data,a.data)}):a,n},{});return Object.keys(e).map(function(n){return e[n]})}var no={placement:"bottom",modifiers:[],strategy:"absolute"};function ao(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some(function(a){return!(a&&typeof a.getBoundingClientRect=="function")})}function ic(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,a=n===void 0?[]:n,i=e.defaultOptions,o=i===void 0?no:i;return function(l,c,u){u===void 0&&(u=o);var I={placement:"bottom",orderedModifiers:[],options:Object.assign({},no,o),modifiersData:{},elements:{reference:l,popper:c},attributes:{},styles:{}},N=[],A=!1,T={state:I,setOptions:function(p){var L=typeof p=="function"?p(I.options):p;h(),I.options=Object.assign({},o,I.options,L),I.scrollParents={reference:Mt(l)?en(l):l.contextElement?en(l.contextElement):[],popper:en(c)};var S=tc(ac([].concat(a,I.options.modifiers)));return I.orderedModifiers=S.filter(function(f){return f.enabled}),D(),T.update()},forceUpdate:function(){if(!A){var p=I.elements,L=p.reference,S=p.popper;if(ao(L,S)){I.rects={reference:ql(L,$t(S),I.options.strategy==="fixed"),popper:Ca(S)},I.reset=!1,I.placement=I.options.placement,I.orderedModifiers.forEach(function(B){return I.modifiersData[B.name]=Object.assign({},B.data)});for(var f=0;f<I.orderedModifiers.length;f++){if(I.reset===!0){I.reset=!1,f=-1;continue}var y=I.orderedModifiers[f],j=y.fn,z=y.options,O=z===void 0?{}:z,Q=y.name;typeof j=="function"&&(I=j({state:I,options:O,name:Q,instance:T})||I)}}}},update:nc(function(){return new Promise(function(C){T.forceUpdate(),C(I)})}),destroy:function(){h(),A=!0}};if(!ao(l,c))return T;T.setOptions(u).then(function(C){!A&&u.onFirstUpdate&&u.onFirstUpdate(C)});function D(){I.orderedModifiers.forEach(function(C){var p=C.name,L=C.options,S=L===void 0?{}:L,f=C.effect;if(typeof f=="function"){var y=f({state:I,name:p,instance:T,options:S}),j=function(){};N.push(y||j)}})}function h(){N.forEach(function(C){return C()}),N=[]}return T}}var oc=[ml,Pl,jl,Nl,Zl,Ql,Jl,pl,Yl],rc=ic({defaultModifiers:oc});function sc(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var lc=typeof Element<"u",cc=typeof Map=="function",Mc=typeof Set=="function",uc=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Vn(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var n,a,i;if(Array.isArray(t)){if(n=t.length,n!=e.length)return!1;for(a=n;a--!==0;)if(!Vn(t[a],e[a]))return!1;return!0}var o;if(cc&&t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(o=t.entries();!(a=o.next()).done;)if(!e.has(a.value[0]))return!1;for(o=t.entries();!(a=o.next()).done;)if(!Vn(a.value[1],e.get(a.value[0])))return!1;return!0}if(Mc&&t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(o=t.entries();!(a=o.next()).done;)if(!e.has(a.value[0]))return!1;return!0}if(uc&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(e)){if(n=t.length,n!=e.length)return!1;for(a=n;a--!==0;)if(t[a]!==e[a])return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf&&typeof t.valueOf=="function"&&typeof e.valueOf=="function")return t.valueOf()===e.valueOf();if(t.toString!==Object.prototype.toString&&typeof t.toString=="function"&&typeof e.toString=="function")return t.toString()===e.toString();if(i=Object.keys(t),n=i.length,n!==Object.keys(e).length)return!1;for(a=n;a--!==0;)if(!Object.prototype.hasOwnProperty.call(e,i[a]))return!1;if(lc&&t instanceof Element)return!1;for(a=n;a--!==0;)if(!((i[a]==="_owner"||i[a]==="__v"||i[a]==="__o")&&t.$$typeof)&&!Vn(t[i[a]],e[i[a]]))return!1;return!0}return t!==t&&e!==e}var Ic=function(e,n){try{return Vn(e,n)}catch(a){if((a.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw a}};const dc=sc(Ic);var gc=[],Nc=function(e,n,a){a===void 0&&(a={});var i=rt.useRef(null),o={onFirstUpdate:a.onFirstUpdate,placement:a.placement||"bottom",strategy:a.strategy||"absolute",modifiers:a.modifiers||gc},r=rt.useState({styles:{popper:{position:o.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),l=r[0],c=r[1],u=rt.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(T){var D=T.state,h=Object.keys(D.elements);dr.flushSync(function(){c({styles:Vi(h.map(function(C){return[C,D.styles[C]||{}]})),attributes:Vi(h.map(function(C){return[C,D.attributes[C]]}))})})},requires:["computeStyles"]}},[]),I=rt.useMemo(function(){var A={onFirstUpdate:o.onFirstUpdate,placement:o.placement,strategy:o.strategy,modifiers:[].concat(o.modifiers,[u,{name:"applyStyles",enabled:!1}])};return dc(i.current,A)?i.current||A:(i.current=A,A)},[o.onFirstUpdate,o.placement,o.strategy,o.modifiers,u]),N=rt.useRef();return Qi(function(){N.current&&N.current.setOptions(I)},[I]),Qi(function(){if(!(e==null||n==null)){var A=a.createPopper||rc,T=A(e,n,I);return N.current=T,function(){T.destroy(),N.current=null}}},[e,n,a.createPopper]),{state:N.current?N.current.state:null,styles:l.styles,attributes:l.attributes,update:N.current?N.current.update:null,forceUpdate:N.current?N.current.forceUpdate:null}};function Ac(t,e){if(!xi)return null;let n;return typeof t=="string"&&(n=document.querySelector(t)),typeof t=="function"&&(n=t(e)),typeof t=="object"&&t instanceof window.HTMLElement&&(n=t),n&&n.nodeType===1?n:document.body}const nn=d.forwardRef((t,e)=>{const{attach:n,children:a,triggerNode:i,className:o,style:r={}}=t,l=d.useMemo(()=>{if(!xi)return null;const c=document.createElement("div");return c.className=`${pe}-portal-wrapper ${o}`,Object.keys(r).forEach(u=>{c.style[u]=r[u]}),c},[pe,o]);return d.useEffect(()=>{var u;const c=Ac(n,i);return(u=c==null?void 0:c.appendChild)==null||u.call(c,l),()=>{var I;(I=c==null?void 0:c.removeChild)==null||I.call(c,l)}},[l,n,i]),d.useImperativeHandle(e,()=>l),qn.createPortal(a,l)});nn.displayName="Portal";const Dc={debounceTime:0,config:{attributes:!0,childList:!0,characterData:!0,subtree:!0}};function Tc(t,e,n=Dc){const a=d.useRef(null);d.useEffect(()=>{!e||typeof e!="function"||(a.current=new MutationObserver(e))},[e,n]),d.useEffect(()=>{if(!t||!(t!=null&&t.nodeType))return;const{config:i}=n;try{a.current.observe(t,i)}catch(o){console.error(o)}return()=>{a.current.disconnect()}},[t,n])}function hc(...t){let e=window==null?void 0:window.document,n="",a=()=>{},i={};if(typeof t[0]=="string"?[n,a,i]=t:[e,n,a,i]=t,!!e)return e==null||e.addEventListener(n,a,i),()=>{e==null||e.removeEventListener(n,a,i)}}function Ec(t,e){let n=()=>{};d.useEffect(()=>(n=hc("click",i=>{const o=t.map(c=>c==null?void 0:c.current),r=i.composedPath(),l=[];for(let c=0;c<o.length;c++)l[c]=r.includes(o[c]);l.every(c=>!c)&&e()},{passive:!0}),()=>{n==null||n()}),[t,e])}function Cc({props:t,key:e,onChange:n,defaultOptions:a}){const i=Reflect.has(t,e),o=t[e],r=a[e];if(i)return[o,n||Ws];const[l,c]=d.useState(r);return[l,u=>{c(u),n==null||n(u)}]}function pc({trigger:t,visible:e,disabled:n,onVisibleChange:a}){const i=d.useRef(null);function o(){return n?{}:{onMouseEnter:()=>{t==="hover"&&(clearTimeout(i.current),a(!0))},onMouseLeave:()=>{t==="hover"&&(clearTimeout(i.current),a(!1))}}}function r(c){return n?{}:{onClick:I=>{var N,A;t==="click"&&a(!e),(A=(N=c.props)==null?void 0:N.onClick)==null||A.call(N,I)},onTouchStart:()=>{t==="hover"&&a(!0)},onMouseEnter:()=>{t==="hover"&&a(!0)},onMouseLeave:()=>{t==="hover"&&a(!1)}}}function l(c){const u=d.isValidElement(c)?c:M.jsx("span",{className:"t-trigger",children:c}),I=r(u);return d.cloneElement(u,I)}return{getTriggerNode:l,getPopupProps:o}}const Tg="",Sa=d.forwardRef((t,e)=>{const{children:n,content:a,trigger:i="hover",disabled:o=!1,teleported:r=!0}=t,[l,c]=d.useState(null),[u,I]=d.useState(null),[N,A]=d.useState(null),T=d.useRef(null),D=d.useRef(void 0),h=d.useRef(null),{styles:C}=Nc(l,u,{modifiers:[{name:"arrow",options:{element:N}}],placement:"top"}),[p,L]=Cc({props:t,key:"visible",onChange:t.onVisibleChange,defaultOptions:{visible:!1}});Ec([h],()=>p&&L(!1));const{getTriggerNode:S,getPopupProps:f}=pc({trigger:i,disabled:o,visible:p,onVisibleChange:L}),y=d.useCallback(()=>{clearTimeout(D.current),D.current=setTimeout(()=>{var Q;return(Q=u==null?void 0:u.update)==null?void 0:Q.call(u)},0)},[u,C]);Tc(l,y),d.useEffect(()=>()=>clearTimeout(D.current),[]);const j=d.cloneElement(S(n),{ref:c}),z=M.jsxs("div",{style:{...C.popper,paddingBottom:"10px"},ref:I,...f(),children:[M.jsx("div",{ref:T,className:v(`${pe}-popup__content`),children:a}),M.jsx("div",{ref:N,style:C.arrow,className:`${pe}-popup__arrow`})]}),O=r?M.jsx(nn,{children:z}):z;return M.jsxs("div",{ref:h,children:[j,p&&O]})}),nt={"device-selector-container":"_device-selector-container_1wi4a_1","device-item":"_device-item_1wi4a_9","control-item":"_control-item_1wi4a_20",btn:"_btn_1wi4a_31",select:"_select_1wi4a_50","scroll-container":"_scroll-container_1wi4a_62","scroll-content":"_scroll-content_1wi4a_67"};function ma(t){const{deviceType:e,isShowControlBtn:n=!0}=t,{localUserInfo:a}=d.useContext(ge),{isMuteSpeaker:i}=d.useContext(P),[{deviceList:o,currentDeviceId:r},{setCurrentDeviceId:l}]=vn(e),{t:c}=ae(),u=v([nt["device-item"],nt["control-item"]]),I=async D=>{try{await V.switchDevice({deviceType:e,deviceId:D}),l(D)}catch(h){console.debug(h)}},N=async()=>{e===oe.CAMERA&&(a!=null&&a.isVideoAvailable?await V.closeCamera():await V.openCamera("localVideo")),e===oe.MICROPHONE&&(a!=null&&a.isAudioAvailable?await V.closeMicrophone():await V.openMicrophone()),e===oe.SPEAKER&&(i?await V.unMuteSpeaker():await V.muteSpeaker())},A=()=>{if(e===oe.CAMERA)return a!=null&&a.isVideoAvailable?c("close camera"):c("open camera");if(e===oe.MICROPHONE)return a!=null&&a.isAudioAvailable?c("close microphone"):c("open microphone");if(e===oe.SPEAKER)return c(i?"open speaker":"close speaker")};function T(){return(o==null?void 0:o.length)>0?o==null?void 0:o.map(D=>{const{deviceId:h,label:C}=D;return M.jsx("div",{className:v([nt["device-item"],{[nt.select]:r===h}]),onClick:()=>I(h),children:C},h)}):M.jsx("div",{className:nt["device-item"],children:c("failed to obtain speakers")})}return M.jsxs("div",{className:nt["device-selector-container"],children:[M.jsx("div",{className:nt["scroll-container"],children:M.jsx("div",{className:nt["scroll-content"],children:T()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e.isAudioAvailable,[e]),[{deviceList:a}]=vn(oe.MICROPHONE),[i,o]=d.useState(!0),{t:r}=ae(),l=d.useCallback(async()=>{o(!1),n?await V.closeMicrophone():await V.openMicrophone(),o(!0)},[n,o]),c=v([J["btn-icon-container"],{mobile:!U.isPC,pc:U.isPC,close:!n,disabled:!i}]),u=r(n?"microphone enabled":"microphone disabled"),I=M.jsx(F,{className:J["btn-icon"],url:n?Lc:fc});return M.jsx(Sa,{content:M.jsx(ma,{deviceType:oe.MICROPHONE}),disabled:!U.isPC||!((a==null?void 0:a.length)>0),teleported:!1,children:M.jsx("div",{style:{display:"flex"},children:M.jsx(Ce,{className:J[`${pe}-btn`],iconClassName:c,icon:I,loading:!i,onClick:l,...t,children:u})})})}const yc="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjYiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyNiAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTguOTE2NSA4LjE5OTc4SDkuNzY2NVY3LjM0OTc4VjUuNjQ5NzhWNC43OTk3OEg4LjkxNjVINC44MzMxN0gzLjk4MzE3VjUuNjQ5NzhWNy4zNDk3OFY4LjE5OTc4SDQuODMzMTdIOC45MTY1Wk0xLjAxNjUgMS42NjY2MkMxLjAxNjUgMS41ODM3OCAxLjA4MzY2IDEuNTE2NjMgMS4xNjY1IDEuNTE2NjNIMTcuODMzMkMxNy45MTYgMS41MTY2MyAxNy45ODMyIDEuNTgzNzggMTcuOTgzMiAxLjY2NjYzVjE4LjMzMzNDMTcuOTgzMiAxOC40MTYxIDE3LjkxNiAxOC40ODMzIDE3LjgzMzIgMTguNDgzM0gxLjE2NjVDMS4wODM2NiAxOC40ODMzIDEuMDE2NSAxOC40MTYxIDEuMDE2NSAxOC4zMzMzVjEuNjY2NjJaTTIxLjIxNDMgNS4wMjIyNEMyMS4yMTQzIDQuOTYzOTYgM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RlLTFfMjg3XzkpIi8+CjxwYXRoIGQ9Ik00LjU2MzQ4IDI1LjI2ODZMMjIuMTQwNSA0LjA4Mzg5IiBzdHJva2U9IndoaXRlIiBzdHlsZT0ic3Ryb2tlOndoaXRlO3N0cm9rZTp3aGl0ZTtzdHJva2Utb3BhY2l0eToxOyIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0ic3F1YXJlIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjwvc3ZnPgo=";function je(t){const{localUserInfo:e}=d.useContext(ge),n=d.useMemo(()=>e==null?void 0:e.isVideoAvailable,[e==null?void 0:e.isVideoAvailable]),[a,i]=d.useState(!0),{t:o}=ae(),[{deviceList:r}]=vn(oe.CAMERA),l=d.useCallback(async()=>{i(!1),n?await V.closeCamera():await V.openCamera("localVideo"),i(!0)},[n]),c=v([J["btn-icon-container"],{mobile:!U.isPC,pc:U.isPC,close:!n,disabled:!a}]),u=M.jsx(F,{url:n?yc:jc,className:J["btn-icon"]}),I=o(n?"camera enabled":"camera disabled");return M.jsx(Sa,{content:M.jsx(ma,{deviceType:oe.CAMERA}),disabled:!U.isPC||!((r==null?void 0:r.length)>0),teleported:!1,children:M.jsx("div",{style:{display:"flex"},children:M.jsx(Ce,{className:J[`${pe}-btn`],iconClassName:c,icon:u,loading:!a,onClick:l,...t,children:I})})})}const Sc={"hangup-icon-container":"_hangup-icon-container_7aq1c_1"};function re(t){const e=d.useContext(wi),{t:n}=ae(),a=()=>V.hangup(),i=v([J["btn-icon-container"],Sc["hangup-icon-container"],{mobile:!U.isPC,pc:U.isPC}]),o=M.jsx(F,{className:J["btn-icon"],url:ki});return M.jsx(Ce,{loading:!e,className:J[`${pe}-btn`],iconClassName:i,icon:o,onClick:a,...t,children:n("hangup")})}const mc="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAiIGhlaWdodD0iMzAiIHZpZXdCb3g9IjAgMCAzMCAzMCIgZmlsbD0ibm9uZSIgeG1sbn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TVDMjQgMTcuODY4OSAyMi42NDk5IDIwLjQzMjkgMjAuNTU1NCAyMS44MzE2TDE5LjcyMzcgMjIuMzg3TDE4LjYxMyAyMC43MjM4TDE5LjQ0NDYgMjAuMTY4NEMyMC45MzY5IDE5LjE3MTkgMjIgMTcuMjU4OSAyMiAxNUMyMiAxMy4yODQyIDIxLjM4NjYgMTEuNzY4IDIwLjQzNzcgMTAuNzAxNFpNMTYuMzU1NiA2LjQ4Mjg4TDMuOTI3NTYgMjEuNDU0OEgyLjI1MTY0QzEuNjU5OSAyMS40NTQ4IDEuMTgwMjEgMjAuOTc1MSAxLjE4MDIxIDIwLjM4MzRWOS42MzQ1OUMxLjE4MDIxIDkuMDQ0MDEgMS42NTgxIDguNTY0NzkgMi4yNDg2NyA4LjU2MzE2TDguMzIyMTUgOC41NDYzNkM4LjU3MzQyIDguNTQ1NjcgOC44MTY0NiA4LjQ1NjY4IDkuMDA4NzcgOC4yOTQ5NkwxNC41OTQ2IDMuNTk3NjFDMTUuMjkxNiAzLjAxMTUxIDE2LjM1NTYgMy41MDY5OSAxNi4zNTU2IDQuNDE3NjNWNi40ODI4OFoiIGZpbGw9IndoaXRlIi8+CjxwYXRoIGQ9Ik00LjU2MzcyIDI1LjI2ODNMMjIuMTQwNyA0LjA4MzY1IiBzdHJva2U9IndoaXRlIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJzcXVhcmUiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPC9zdmc+Cg==";function at(t){const[{deviceList:e,currentDeviceId:n}]=vn(oe.SPEAKER),{isMuteSpeaker:a}=d.useContext(P),{t:i}=ae(),o=u=>{if(U.isPC){const I=e.find(N=>N.deviceId===u);return I?I.label:i("speaker enabled")}else return i(a?"speaker disabled":"speaker enabled")},r=d.useCallback(()=>{a?V.unMuteSpeaker():V.muteSpeaker()},[a]),l=M.jsx(F,{url:a?Oc:mc,className:J["btn-icon"]}),c=v([J["btn-icon-container"],{mobile:!U.isPC,pc:U.isPC,close:a}]);return M.jsx(Sa,{trigger:U.isPC?"hover":"click",disabled:!(e.length>0&&U.isPC),content:M.jsx(ma,{deviceType:oe.SPEAKER}),teleported:!1,children:M.jsx("div",{style:{display:"flex"},children:M.jsx(Ce,{className:J[`${pe}-btn`],iconClassName:c,icon:l,onClick:r,...t,children:o(n)})})})}const io="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjgiIGhlaWdodD0iMjgiIHZpZXdCb3g9IjAgMCAyOCAyOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0yNS4wMTg0IDUuNzYzMzZDMjYuMTIyOSA1Ljc2MzM2IDI3LjAxODQgNi42NTg3OSAyNy4wMTg0IDcuNzYzMzZWMjMuMjkwOUMyNy4wMTg0IDI0LjM5NTUgMjYuMTIyOSAyNS4yOTA5IDI1LjAxODQgMjUuMjkwOUgyLjk4MTYzQzEuODc3MDYgMjUuMjkwOSAwLjk4MTYyOCAyNC4zOTU1IDAuOTgxNjI4IDIzLjI5MDlWNy43NjMzNkMwLjk4MTYyOCA2LjY1ODc5IDEuODc3MDYgNS43NjMzNiAyLjk4MTYzIDUuNzYzMzZINy4yNDM2QzcuODE0ODggNS43NjMzNiA4LjM1ODg4IDUuNTE5MDcgOC43Mzg0MiA1LjA5MjA5TDEwLjE0ODcgMy41MDU1QzEwLjUyODMgMy4wNzg1MiAxMS4wNzIzIDIuODM0MjMgMTEuNjQzNSAyLjgzNDIzSDE0SDE2LjM1NjVDMTYuOTI3NyAyLjgzNDIzIDE3LjQ3MTcgMy4wNzg1MiAxNy44NTEzIDMuNTA1NUwxOS4yNjE2IDUuMDkyMDlDMTkuNjQxMSA1LjUxOTA3IDIwLjE4NTEgNS43NjMzNiAyMC43NTY0IDUuNzYzMzZIMjUuMDE4NFpNMTEuNzIyOSA5LjU4NDk1QzEyLjM5OTQgOS4zMTYwMiAxMy4xMzc3IDkuMTY4NDYgMTMuOTA5MSA5LjE2ODQ2QzE1LjYyNzcgOS4xNjg0NiAxNy4xNzg4IDkuOTAxMzIgMTguMjUgMTEuMDcxVjkuOTE4NDZIMTkuNzVWMTQuOTEzOEwxOS43NSAxNC45MTg1SDE4LjI1TDE4LjI1IDE0LjkxNDRDMTguMjQ3OCAxMi41ODE3IDE2LjMxNzkgMTAuNjY4NSAxMy45MDkxIDEwLjY2ODVDMTMuMzMwMiAxMC42Njg1IDEyLjc3OTcgMTAuNzc5IDEyLjI3NzEgMTAuOTc4OEwxMS43MjI5IDkuNTg0OTVaTTguMjUgMTkuOTE4NVYxNC45MTg1SDkuNzVDOS43NSAxNy4yNTMgMTEuNjgwNyAxOS4xNjg1IDE0LjA5MDkgMTkuMTY4NUMxNC42Njk4IDE5LjE2ODUgMTUuMjIwMyAxOS4wNTc5IDE1LjcyMjkgMTguODU4MUwxNi4yNzcxIDIwLjI1MkMxNS42MDA2IDIwLjUyMDkgMTQuODYyMyAyMC42Njg1IDE0LjA5MDkgMjAuNjY4NUMxMi4zNzIzIDIwLjY2ODUgMTAuODIxMiAxOS45MzU2IDkuNzUgMTguNzY2VjE5LjkxODVIOC4yNVoiIGZpbGw9IndoaXRlIi8+Cjwvc3ZnPgo=";function wc(t){const e=()=>V.switchCamera(),n=M.jsx(F,{url:io});return M.jsx(Ce,{style:{width:"28px",height:"28px"},iconSize:"28px",icon:n,onClick:e,...t})}const Uc="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjgiIGhlaWdodD0iMjgiIHZpZXdCb3g9IjAgMCAyOCAyOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xIDJDMSAxLjQ0NzcyI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uMjY4VjE4LjAzNTVMOC4wMzQ2NiAxMS4zOTM3TDkuMTUwODggMTIuNTA5OUwxLjM5Mjg2IDIwLjI2OFpNMjQuNjA3MSAxNC44MjEyVjE3LjA1MzdMMjIuMTM0IDE5LjUyNjlMMjEuMDE3NyAxOC40MTA2TDI0LjYwNzEgMTQuODIxMlpNMjQuNjA3MSA0LjgyMTI5VjcuMDUzNzNMMTcuNTE0OSAxNC4xNDZMMTYuMzk4NyAxMy4wMjk4TDI0LjYwNzEgNC44MjEyOVpNMjAuMjY4IDEuMzkyODZMMTYuMzcyNiA1LjI4ODIxTDE1LjI1NjQgNC4xNzE5OUwxOC4wMzU1IDEuMzkyODZIMjAuMjY4WiIgZmlsbD0iIzIyMjYyRSIvPgo8L3N2Zz4K",vc={"background-blur-icon-container":"_background-blur-icon-container_1g5wa_1",close:"_close_1g5wa_9"};function xt(){const{enableVirtualBackground:t}=d.useContext(P),[e,n]=d.useState(!0),{t:a}=ae(),i=M.jsx(F,{url:t?zc:Uc,className:J["btn-icon"]}),o=v([J["btn-icon-container"],vc["background-blur-icon-container"],{mobile:!U.isPC,pc:U.isPC,close:!t}]),r=async()=>{n(!1),await V.setBlurBackground(!t),n(!0)};return M.jsx(Ce,{loading:!e,className:J[`${pe}-btn`],iconClassName:o,icon:i,onClick:r,children:a("virtual-background")})}const Oa={pc:{singleCall:{video:{calling:[[{component:je,name:"camera",props:{}},{component:de,name:"microphone",props:{}},{component:re}]],accept:[[{component:je,name:"camera",props:{}},{component:et,name:""},{component:qe,name:""}]],connected:[[{component:je,name:"camera",props:{}},{component:de,name:"microphone",props:{}},{component:at,name:"speaker",props:{}},{component:re,name:""}]]},audio:{calling:[[{component:de,name:"microphone",props:{}},{component:re,name:""}]],accept:[[{component:et,name:""},{component:qe,name:""}]],connected:[[{component:de,name:"microphone",props:{}},{component:at,name:"speaker",props:{}},{component:re,name:""}]]}},groupCall:{video:{calling:[[{component:je,name:"camera",props:{}},{component:de,name:"microphone",props:{}},{component:re,name:""}]],accept:[[{component:et,name:""},{component:qe,name:""}]],connected:[[{component:je,name:"camera",props:{}},{component:de,name:"microphone",props:{}},{component:re,name:""}]]},audio:{calling:[[{component:je,name:"camera",props:{}},{component:de,name:"microphone",props:{}},{component:re,name:""}]],accept:[[{component:et,name:""},{component:qe,name:""}]],connected:[[{component:je,name:"camera",props:{}},{component:de,name:"microphone",props:{}},{component:re,name:""}]]}}},h5:{singleCall:{video:{calling:[[{component:re,props:{showText:!1}}]],accept:[[{component:et,name:"",props:{showText:!1}},{component:qe,name:"",props:{showText:!1}}]],connected:[[{component:de,name:"microphone",props:{}},{component:at,name:"speaker",props:{}},{component:je,name:"camera",props:{}}],[{component:xt,name:"backgroundBlur",props:{style:{justifyContent:"center",alignItems:"center",visibility:"hidden"}}},{component:re,name:"",props:{showText:!1}},{component:wc,name:"switchCamera",props:{style:{justifyContent:"center",alignItems:"center"}}}]]},audio:{calling:[[{component:re,name:"",props:{showText:!1}}]],accept:[[{component:et,name:""},{component:qe,name:""}]],connected:[[{component:de,name:"microphone",props:{}},{component:re,name:""},{component:at,name:"speaker",props:{}}]]}},groupCall:{video:{calling:[[{component:de,name:"microphone",props:{}},{component:at,name:"speaker",props:{}},{component:je,name:"camera",props:{}}],[{component:re,name:"",props:{showText:!1}}]],accept:[[{component:et,name:"",props:{showText:!1}},{component:qe,name:"",props:{showText:!1}}]],connected:[[{component:de,name:"microphone",props:{}},{component:at,name:"speaker",props:{}},{component:je,name:"camera",props:{}}],[{component:re,name:"",props:{showText:!1}}]]},audio:{calling:[[{component:de,name:"microphone",props:{}},{component:at,name:"speaker",props:{}},{component:je,name:"camera",props:{}}],[{component:re,name:"",props:{showText:!1}}]],accept:[[{component:et,name:"",props:{showText:!1}},{component:qe,name:"",props:{showText:!1}}]],connected:[[{component:de,name:"microphone",props:{}},{component:at,name:"speaker",props:{}},{component:je,name:"camera",props:{}}],[{component:re,name:"",props:{showText:!1}}]]}}}},bc=500;function wa(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError("Expected a function");const n=(...a)=>{const i=e?e.apply(this,a):a[0],{cache:o}=n;if(o.has(i))return o.get(i);const r=t.apply(this,a);return n.cache=o.set(i,r)||o,r};return n.cache=new(wa.Cache||Map),n}wa.Cache=Map;function xc(t){const e=wa(t,n=>{const{cache:a}=e;return a.size===bc&&a.clear(),n});return e}const _c=".".charCodeAt(0),kc=/\\(\\)?/g,Vc=RegExp(`[^.[\\]]+|\\[(?:([^"'][^[]*)|(["'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))`,"g"),oo=xc(t=>{const e=[];return t.charCodeAt(0)===_c&&e.push(""),t.replace(Vc,(n,a,i,o)=>{let r=n;i?r=o.replace(kc,"$1"):a&&(r=a.trim()),e.push(r)}),e});function Qc(t){return t==null||typeof t=="string"&&t.trim().length===0?!0:Array.isArray(t)||typeof t=="object"?Object.keys(t).length===0:!1}function Ua(t,e,n,a,i){Object.keys(t).forEach(o=>{const r=t[o],l=Qc(n)?o:`${n}.${o}`;if(typeof r=="object")if(Array.isArray(r))for(let c=0;c<r.length;c++){const u=`${l}[${c}]`;Ua(r[c],e,u,a,i)}else Ua(r,e,l,a,i);else if(e(r)){const c=typeof i=="function"?i({key:r,value:l}):l;a.push(c)}})}function an(t){if(typeof t!="object"||t===null)return t;const e=Array.isArray(t)?[]:{};return Object.keys(t).forEach(n=>{e[n]=an(t[n])}),e}function ro(t,e){if(typeof t!="object"||t===null)return t;if(e in t){const n=an(t);return delete n[e],n}}const Bc="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAiIGhlaWdodD0iMzAiIHZpZXdCb3g9IjAgMCAzMCAzMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBvcGFjaXR5PSIwLjUiIGN4PSIxNSIgY3k9IjE1IiByPSIxNSIgZmlsbD0iIzIyMjY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zNzUgMTQuMzEzM0M5LjMzMTYgMTQuMTUzMSA5LjMzODA5IDEzLjg5OTkgOS40OTgyNSAxMy43NDc4TDEwLjM2ODMgMTIuOTIxM0MxMC41Mjg0IDEyLjc2OTEgMTAuNzgxNiAxMi43NzU2IDEwLjkzMzggMTIuOTM1OEwxNC45OTk5IDE3LjIxNTlMMTkuMDY1OCAxMi45MzU4QzE5LjIxOCAxMi43NzU2IDE5LjQ3MTEgMTIuNzY5MSAxOS42MzEzIDEyLjkyMTNMMjAuNTAxMyAxMy43NDc3QzIwLjY2MTUgMTMuODk5OSAyMC42NjggMTQuMTUzMSAyMC41MTU4IDE0LjMxMzJMMTUuNDgzMyAxOS42MTFDMTUuMjIwNCAxOS44ODc2IDE0Ljc3OTQgMTkuODg3NiAxNC41MTY2IDE5LjYxMUw5LjQ4Mzc1IDE0LjMxMzNaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K",Ye={"button-panel-h5-container":"_button-panel-h5-container_f9br3_1",groupcall:"_groupcall_f9br3_16","show-panel-background":"_show-panel-background_f9br3_19",open:"_open_f9br3_27","singlecall-panel":"_singlecall-panel_f9br3_30","groupcall-panel":"_groupcall-panel_f9br3_36",close:"_close_f9br3_41","toggle-panel-btn":"_toggle-panel-btn_f9br3_45"};function Rc(t){const{buttons:e=[]}=t,{isGroupCall:n}=d.useContext(P),{focusItem:a}=d.useContext(ga),[i,o]=d.useState(!0);d.useEffect(()=>{o(a===null)},[a,o]);const[r,l]=d.useState(!1);d.useEffect(()=>{a!==null&&!r&&l(!0)},[a,r]);const c=v([Ye["button-panel-h5-container"],{[Ye.open]:i,[Ye.groupcall]:n,[Ye["show-panel-background"]]:r}]),u=()=>e.map((D,h)=>{const C=h===0?D.filter(L=>{var S;return((S=L==null?void 0:L.props)==null?void 0:S.show)!==!1}):D,p=()=>C.map((L,S)=>{const f=C.length>2?S===0?"start":S===C.length-1?"end":"center":"center",{component:y,props:j}=L,z={};if((j==null?void 0:j.show)===!1){if(h===0)return;z.visibility="hidden"}const O=12/C.length,Q=ro(j,"show"),B=d.createElement(y,{isMobile:!0,...Q});return M.jsx(be,{style:{overflow:"visible",...j==null?void 0:j.style,...z},span:O,justify:f,children:B},`col-${S}`)});return M.jsx(Ot,{style:{marginTop:h===1?"2.4vh":0},children:p()},`row-${h}`)}),I=()=>{o(!i)},N=()=>{const D=i?M.jsx(F,{url:Yc}):M.jsx(F,{url:Bc});return M.jsx(Ce,{className:v([Ye["toggle-panel-btn"],{[Ye.close]:!i}]),icon:D,onClick:I})},A=()=>{const D=e.flat(),h=()=>D.map((C,p)=>{const{component:L,props:S}=C;if((S==null?void 0:S.show)===!1)return;const f=d.createElement(L,{isMobile:!0,size:"small",showText:!1}),y=12/D.length;return M.jsx(be,{style:{overflow:"visible"},span:y,children:f},p)});return M.jsx(Ot,{children:h()})},T=()=>n&&!i?A():u();return M.jsxs("div",{className:c,children:[r&&N(),M.jsx("div",{className:v([{[Ye["groupcall-panel"]]:n,[Ye["singlecall-panel"]]:!n,[Ye.close]:!i}]),children:T()})]})}const Gc={"button-panel-pc-container":"_button-panel-pc-container_x4npp_1"};function Zc(t){const{buttons:e=[]}=t,n=()=>e.map((a,i)=>{const o=()=>a.map((r,l)=>{const{component:c,props:u}=r;if((u==null?void 0:u.show)===!1)return;const I=ro(t,"show"),N=d.createElement(c,{...I}),A=Math.floor(12/a.length);return M.jsx(be,{style:{justifyContent:"center"},span:A,children:N},l)});return M.jsx(Ot,{children:o()},i)});return M.jsx("div",{className:Gc["button-panel-pc-container"],children:n()})}function Fc(){const{button:t}=d.useContext(Ht),e=[];function n(i){return Object.keys(t).includes(i)}function a({key:i,value:o}){var c;const r=o.split(".");let l=r.slice(0,r.length-1);return l.push("props"),l.push("show"),l=l.join("."),{path:l,value:(c=t[i])==null?void 0:c.show}}return Ua(Oa,n,"",e,a),e}function on(t,e,n){if(typeof t!="object")return;const a=oo(e);let i=t;for(let o=0;o<a.length;o++){if(i==null)return;const r=a[o];o!==a.length-1?i=i==null?void 0:i[r]:Object.assign(i,{[r]:n})}}function rn(t,e,n){if(typeof t!="object")return;const a=oo(e);let i=t;for(let o=0;o<a.length;o++){if(i==null)return;const r=a[o];o!==a.length-1?i=i==null?void 0:i[r]:Array.isArray(i)&&i.splice(r,0,n)}}const Pc=!U.isPC;function so(){const{callStatus:t,isGroupCall:e,callRole:n,callType:a,isShowEnableVirtualBackground:i}=d.useContext(P),{localUserInfo:o}=d.useContext(ge),r=Fc(),[l,c]=d.useState(E.getData(g.CALL,s.IS_CLICKABLE)),u=d.useMemo(()=>l,[l]),I=D=>{c(D)};d.useEffect(()=>(E.watch(g.CALL,{[s.IS_CLICKABLE]:I},{notifyRangeWhenWatch:s.MYSELF}),()=>{E.unwatch(g.CALL,{[s.IS_CLICKABLE]:I})}),[]);const N=D=>{const h=an(D);return rn(h,"pc.singleCall.video.calling[0][2]",{component:xt,props:{}}),rn(h,"pc.singleCall.video.accept[0][1]",{component:xt,props:{}}),rn(h,"pc.singleCall.video.connected[0][3]",{component:xt,props:{}}),rn(h,"pc.groupCall.video.calling[0][2]",{component:xt,props:{}}),rn(h,"pc.groupCall.video.connected[0][2]",{component:xt,props:{}}),h},A=(D,h,C)=>{const p=an(D);return h?(on(p,"h5.singleCall.video.connected[1][2].props.show",!0),C&&N(p)):(on(p,"h5.singleCall.video.connected[1][2].props.show",!1),C&&(on(p,"pc.singleCall.video.connected[0][3].props.show",!1),on(p,"pc.groupCall.video.connected[0][2].props.show",!1))),p},T=d.useMemo(()=>{var f,y,j;let D=an(Oa);i&&(D=N(Oa)),t===b.CONNECTED&&(D=A(D,o==null?void 0:o.isVideoAvailable,i)),r==null||r.forEach(z=>{const{path:O,value:Q}=z;on(D,O,Q)});const h=U.isPC?"pc":"h5",C=e?"groupCall":"singleCall",p=a===G.AUDIO?"audio":"video",L=t===b.CALLING?n===X.CALLER?"calling":"accept":t,S=((j=(y=(f=D==null?void 0:D[h])==null?void 0:f[C])==null?void 0:y[p])==null?void 0:j[L])||[];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c1QzU5LjA3NyAxNy44NzUgNjUuNjI0OSAyNC40MjI4IDY1LjYyNDkgMzIuNUM2NS42MjQ5IDM4LjE2MDQgNjIuNDA5MiA0My4wNjk3IDU3LjcwNDkgNDUuNTAwOEM1Ny42MzY5IDQ1LjUzNiA1Ny41Njg2IDQ1LjU3MDcgNTcuNDk5OSA0NS42MDQ4QzU1LjU0MTggNDYuNTc3OSA1My4zMzQ3IDQ3LjEyNSA1MC45OTk5IDQ3LjEyNUM0OC42NjUgNDcuMTI1IDQ2LjQ1NzkgNDYuNTc3OSA0NC40OTk5IDQ1LjYwNDhaIiBmaWxsPSIjRDVFMEYyIi8+CjxkZWZzPgo8bGluZWFyR3JhZGllbnQgaWQ9InBhaW50MF9saW5lYXJfMjk2NF8xNzU4IiB4MT0iNzMuNSIgeTE9Ii01IiB4Mj0iNSIgeTI9Ijk4LjUiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KPHN0b3Agc3RvcC1jb2xvcj0iIzdDODU5QiIvPgo8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiM3NDdDOTAiLz4KPC9saW5lYXJHcmFkaWVudD4KPC9kZWZzPgo8L3N2Zz4K",Sg="";function lo(t){const{shape:e="round",image:n,icon:a,children:i,className:o,style:r}=t,l=I=>{I.target.src=ce},c=()=>typeof n=="string"?M.jsx("img",{src:n,onError:l}):a||i,u=v([o,`${Y}-avatar-container`,`${Y}-avatar-shape-${e}`]);return M.jsx("div",{className:u,style:r,children:c()})}const Wc="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9Im5vbmUiIHZpZXdCb3g9IjAgMCAxNiAxNiIgY2xhc3M9ImRlc2lnbi1pY29uZm9udCI+CiAgICA8cGF0aAogICAgICBmaWxsLXJ1bGU9ImV2ZW5vZGQiCiAgICAgIGNsaXAtcnVsZT0iZXZlbm9kZCIKICAgICAgZD0iTTQuODI4MjU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1OTAxIDEwLjkwNjggMi4xNTQ3Wk0zLjYyNDU1IDkuNDM2OThMMi42NDYyMiAxMC40MTUzQzIuMjYyMDggOS43ODk4NSAyLjAzMTA4IDkuMTA4MDQgMi4wMDI5MiA4LjQxNjQ0TDIgOC4yNzM0N1Y3LjY2NTQ2QzIgNy40ODI3NyAyLjE0NzA2IDcuMzM0MTEgMi4zMjk3NSA3LjMzMjE1TDIuOTkzNTIgNy4zMjUwMkMzLjE3ODM5IDcuMzIzMDMgMy4zMjk1NiA3LjQ3MTg4IDMuMzMwNDMgNy42NTY3NkwzLjMzMzMzIDguMjczNDdDMy4zMzMzMyA4LjY2MTkxIDMuNDM3MSA5LjA1NjcyIDMuNjI0NTUgOS40MzY5OFoiCiAgICAgIGZpbGw9IiNmZmYiCiAgICAvPgogICAgPHJlY3QgeD0iLjYwOTg2MyIgeT0iMTMuNDUxNCIgd2lkdGg9IjE5LjAxMjciIGhlaWdodD0iMS41IiByeD0iLjc1IiB0cmFuc2Zvcm09InJvdGF0ZSgtNDUgLjYwOTg2MyAxMy40NTE0KSIgZmlsbD0iI0ZFM0M0NCIgLz4KICA8L3N2Zz4=",Hc={"microphone-container":"_microphone-container_nczz7_1"};function co(t){const{close:e,style:n={},volume:a=0}=t,i=()=>M.jsx(F,{url:Wc}),o=()=>M.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",className:"",viewBox:"0 0 16 16",children:[M.jsxs("g",{children:[a>0&&M.jsx("path",{d:"M8.62462 7.17395C8.90076 7.17395 9.12462 7.38807 9.12462 7.65221C9.12462 7.89434 8.93651 8.09444 8.69246 8.12611L8.62462 8.13047H7.3335C7.05735 8.13047 6.8335 7.91635 6.8335 7.65221C6.8335 7.41009 7.0216 7.20998 7.26565 7.17832L7.3335 7.17395H8.62462Z",fill:"#43D92B"}),a>5&&M.jsx("path",{d:"M8.62462 5.57971C8.90076 5.57971 9.12462 5.79384 9.12462 6.05797C9.12462 6.3001 8.93651 6.5002 8.69246 6.53187L8.62462 6.53623H7.3335C7.05735 6.53623 6.8335 6.32211 6.8335 6.05797C6.8335 5.81585 7.0216 5.61575 7.26565 5.58408L7.3335 5.57971H8.62462Z",fill:"#43D92B"}),a>10&&M.jsx("path",{d:"M8.62462 3.98547C8.90076 3.98547 9.12462 4.1996 9.12462 4.46373C9.12462 4.70586 8.93651 4.90596 8.69246 4.93763L8.62462 4.942H7.3335C7.05735 4.942 6.8335 4.72787 6.8335 4.46373C6.8335 4.22161 7.0216 4.02151 7.26565 3.98984L7.3335 3.98547H8.62462Z",fill:"#43D92B"})]}),M.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.3301 3.45938C11.2517 1.89175 9.77808 0.658081 8 0.658081C6.17253 0.658081 4.66667 1.96123 4.66667 3.59077V7.72539L4.66994 7.85678C4.7483 9.42442 6.22192 10.6581 8 10.6581C9.82747 10.6581 11.3333 9.35493 11.3333 7.72539V3.59077L11.3301 3.45938ZM6.0035 3.54179C6.06337 2.69234 6.92083 1.99146 8.00016 1.99146C9.11947 1.99146 10.0002 2.74521 10.0002 3.63675V7.67949L9.99682 7.77446C9.93695 8.62391 9.07949 9.32479 8.00016 9.32479C6.88086 9.32479 6.00016 8.57103 6.00016 7.67949V3.63675L6.0035 3.54179ZM8.33333 15.3333C8.51743 15.3333 8.66667 15.1841 8.66667 15V13.2964C11.5402 12.9793 14 10.6655 14 8.27322V7.68092C14 7.49682 13.8508 7.34758 13.6667 7.34758H13C12.8159 7.34758 12.6667 7.49682 12.6667 7.68092V8.27322L12.6634 8.39309C12.5681 10.1524 10.3982 11.9979 8.00396 12C8.00264 12 8.00132 12 8 12C7.99868 12 7.99736 12 7.99604 12C5.54737 11.9979 3.33333 10.0675 3.33333 8.27322L3.33043 7.65652C3.32956 7.47164 3.17839 7.32278 2.99352 7.32477L2.32975 7.33191C2.14706 7.33387 2 7.48252 2 7.66522V8.27322L2.00292 8.4162C2.09825 10.757 4.51708 12.9856 7.33333 13.2964V15C7.33333 15.1841 7.48257 15.3333 7.66667 15.3333H8.33333Z",fill:"#fff"})]});return M.jsx("div",{className:Hc["microphone-container"],style:n,children:e?i():o()})}const Ae={"overlay-stream-container":"_overlay-stream-container_1ygv7_1",blur:"_blur_1ygv7_7",pc:"_pc_1ygv7_30","user-info-container":"_user-info-container_1ygv7_30",avatar:"_avatar_1ygv7_49",float:"_float_1ygv7_53",small:"_small_1ygv7_57",username:"_username_1ygv7_65",nick:"_nick_1ygv7_72",mobile:"_mobile_1ygv7_96",tip:"_tip_1ygv7_153"};function _t(t){const{avatar:e,username:n,isMobile:a,isSmall:i,blur:o=!0,theme:r="circle",children:l,className:c,tip:u="",volume:I,isMute:N=!1,showAvatar:A=!0,showUsername:T=!0,showOverlayer:D,showBackground:h=!0,showLoading:C=!0,showVolumn:p=!1,style:L={},showTip:S=!0,background:f="",fit:y,onError:j}=t,{isFloat:z}=d.useContext(P),O=v([c,Ae["overlay-stream-container"],{[Ae.mobile]:a,[Ae.pc]:!a}]),Q=B=>{j==null||j(B)};return M.jsx("div",{className:O,style:L,children:M.jsxs(da,{showLoading:C,size:40,theme:r,showOverlayer:!1,children:[M.jsxs("div",{className:Ae["user-info-container"],children:[A&&M.jsx(lo,{className:v([Ae.avatar,{[Ae.small]:i,[Ae.float]:z}]),image:e}),T&&M.jsxs("div",{className:Ae.username,children:[M.jsx("div",{className:v([Ae.nick,{[Ae.small]:i,[Ae.float]:z}]),children:n}),p&&M.jsx(co,{volume:I,close:N,style:{marginLeft:"10px"}})]}),S&&M.jsx("div",{className:Ae.tip,children:u}),l]}),h&&M.jsx(ji,{showOverlayer:D,className:v({[Ae.blur]:o}),background:f,fit:y,defaultSrc:ce,onError:Q})]})})}function sn(){const{viewBackground:t}=d.useContext(Ht);return t}const Jc={"singlecall-waiting-container":"_singlecall-waiting-container_pmvxi_1"};function Xc(t){const{avatar:e,username:n,userId:a}=t,{localUserInfo:i}=d.useContext(ge),o=sn(),[r,l]=d.useState(o[a]||e),[c,u]=d.useState(!o[a]),[I,N]=d.useState(o[a]?"fill":"cover");return d.useEffect(()=>{l(o[a]||e||ce),u(!i.isVideoAvailable&&!o[a]),N(o[a]?"fill":"cover")},[o,a]),M.jsx(_t,{className:Jc["singlecall-waiting-container"],showLoading:!1,avatar:e||ce,username:n,showAvatar:!U.isPC,background:r,showBackground:!i.isVideoAvailable,isMobile:!U.isPC,showOverlayer:c,fit:I})}const kg="";function Kc(t,e){for(let n=0;n<t.length;n++)if(t[n]!==e)return t[n]}const Mo=d.createContext({bigWindow:null});function $c(t){const{bigWindow:e,className:n,isMobile:a,showSmallWindow:i=!0,onToggle:o,children:r=null}=t,[l,c]=d.useState(e);d.useEffect(()=>{c(e)},[e]);const u=v([`${Y}-togglewindow-container`,n]),I=d.useMemo(()=>{const N=[],A=[];r&&d.Children.map(r,D=>{var h,C;if(((h=D==null?void 0:D.type)==null?void 0:h.displayName)==="ToggleWindowItem"&&N.length<2&&(N.push(d.cloneElement(D,{isMobile:a,showSmallWindow:i})),A.push((C=D==null?void 0:D.props)==null?void 0:C.value)),N.length>=2)return null});const T=()=>{c(D=>{const h=Kc(A,D);return o==null||o(h),h})};return N.map(D=>d.cloneElement(D,{updateBigWindow:T}))},[r]);return M.jsx("div",{className:u,children:M.jsx(Mo.Provider,{value:{bigWindow:l},children:I})})}const Vg="";function za(t){const{children:e,value:n,isMobile:a,updateBigWindow:i,showSmallWindow:o,className:r}=t,{bigWindow:l}=d.useContext(Mo),c=l!==n,u=v([r,`${Y}-togglewindowitem-container`,`${Y}-togglewindowitem-${c?"small":"big"}`,{mobile:a}]),I=()=>{let N;return!o&&c&&(N="hidden"),M.jsx("div",{onClick:()=>c&&i(),className:u,style:{visibility:N},children:e})};return M.jsx(M.Fragment,{children:I()})}za.displayName="ToggleWindowItem";const Qg="";function qc(t){const{maxWidth:e,truncated:n,lineClamp:a,children:i,className:o}=t,r=v([o,`${pe}-text`]),l={maxWidth:e,textOverflow:n?"ellipsis":"auto",WebkitLineClamp:a};return M.jsx("span",{style:l,className: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dVRlhSVWI3Rnd6bTIxZWorN0ZEeXN4ZFphZC9paUIyb3VzRDNTSzFFRFErUVdPS01iQWJnS0RrWVluOHVDOFQ2SkVlb3NkMno4MWZLVm0vSlhXS0lKYmdHMXJDbWFZcE83TlJjNkRHZkdDSnNKOEdOS08vOEU5L25xdHRyaVVDR1FhNG00QTFBTjRBZURHRFhqQnFnNisxcnBncnRtMWQyUlJCWERrdDNuRktaSnB2R0lGUlJpbTRBd2piRTdnTzBPckFUQVp6YnlDSUR3QnRmYkUzc0RZd3JPODlPdy8xN0VCTkVjUU9WSlZPM3lDZ0NPS2JxVlFEc1FNQlJSQTdVRlU2ZllPQUlvaHZwbElOeEE0RUZFSHNRRlhwOUEwQ2lpQyttVW8xRURzUVVBU3hBMVdsMHpjSUtJTDRaaXJWUU94QVFCSEVEbFNWVHQ4Z29BamltNmxVQTdFREFVVVFPMUJWT24yRGdDS0liNlpTRGNRT0JCUkI3RUJWNmZRTkFvb2d2cGxLTlJBN0VGQUVzUU5WcGRNM0NDaUMrR1lxMVVEc1FPRC9BYk1acm01TFdDOU9BQUFBQUVsRlRrU3VRbUNDIi8+CjwvZGVmcz4KPC9zdmc+",va={"stream-info-container-h5":"_stream-info-container-h5_182j9_1",single:"_single_182j9_20"};function aM(t){const{isSpkear:e,isMute:n,displayName:a,showUserName:i=!1,showSwitchCamera:o=!1,showNetWorkStatus:r=!1}=t,{isGroupCall:l}=d.useContext(P),c=v([va["stream-info-container-h5"],{[va.group]:l,[va.single]:!l}]),u={width:"30px",height:"30px",background:"#22262e80",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center"},I=async()=>{await V.switchCamera()},N=()=>M.jsxs(Ot,{children:[M.jsxs(be,{span:6,align:"center",justify:"start",children:[i&&M.jsx(qc,{maxWidth:"100px",truncated:!0,children:a}),e&&M.jsx(F,{style:{width:"fit-content"},url:eM}),n&&M.jsx(F,{style:{width:"fit-content"},url:tM})]}),M.jsxs(be,{span:6,align:"center",justify:"end",children:[r&&M.jsx(F,{style:{width:"24px",height:"24px",marginRight:"12px"},url:uo}),o&&M.jsx(Ce,{showText:!1,icon:M.jsx(F,{url:io}),style:u,iconSize:"15px",isStopPropagation:!0,onClick:I})]})]}),A=()=>M.jsx(Ot,{children:M.jsx(be,{span:12,justify:"start",children:n&&M.jsx(F,{style:{width:"fit-content"},url:nM})})});return M.jsx("div",{className:c,children:l?N():A()})}const ba={"stream-info-container-pc":"_stream-info-container-pc_19fal_1","stream-info-content":"_stream-info-content_19fal_21",nick:"_nick_19fal_37","stream-info-netWork":"_stream-info-netWork_19fal_41"};function iM(t){const{isMute:e,displayName:n,volume:a,isMe:i,showNetWorkStatus:o=!1}=t,{t:r}=ae();return M.jsxs("div",{className:ba["stream-info-container-pc"],children:[M.jsxs("div",{className:ba["stream-info-content"],children:[M.jsx(co,{volume:a,close:e}),M.jsx("div",{className:ba.nick,children:n}),i&&M.jsx("div",{children:r("you")})]}),M.jsx("div",{className:"stream-info-netWork",children:o&&M.jsx(F,{style:{width:"20px",height:"20px"},url:uo})})]})}function Io(t){return U.isPC?M.jsx(iM,{...t}):M.jsx(aM,{...t})}var oM=typeof global=="object"&&global&&global.Object===Object&&global;const go=oM;var rM=typeof self=="object"&&self&&self.Object===Object&&self,sM=go||rM||Function("return this")();const Re=sM;var lM=Re.Symbol;const kt=lM;var No=Object.prototype,cM=No.hasOwnProperty,MM=No.toString,ln=kt?kt.toStringTag:void 0;function uM(t){var e=cM.call(t,ln),n=t[ln];try{t[ln]=void 0;var a=!0}catch{}var i=MM.call(t);return a&&(e?t[ln]=n:delete t[ln]),i}var IM=Object.prototype,dM=IM.toString;function gM(t){return dM.call(t)}var NM="[object Null]",AM="[object Undefined]",Ao=kt?kt.toStringTag:void 0;function cn(t){return t==null?t===void 0?AM:NM:Ao&&Ao in Object(t)?uM(t):gM(t)}function Mn(t){return t!=null&&typeof t=="object"}var DM=Array.isArray;const Qn=DM;function Do(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var TM="[object AsyncFunction]",hM="[object Function]",EM="[object GeneratorFunction]",CM="[object Proxy]";function To(t){if(!Do(t))return!1;var e=cn(t);return e==hM||e==EM||e==TM||e==CM}var pM=Re["__core-js_shared__"];const xa=pM;var ho=function(){var t=/[^.]+$/.exec(xa&&xa.keys&&xa.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function LM(t){return!!ho&&ho in t}var fM=Function.prototype,yM=fM.toString;function It(t){if(t!=null){try{return yM.call(t)}catch{}try{return t+""}catch{}}return""}var jM=/[\\^$.*+?()[\]{}|]/g,SM=/^\[object .+?Constructor\]$/,mM=Function.prototype,OM=Object.prototype,wM=mM.toString,UM=OM.hasOwnProperty,zM=RegExp("^"+wM.call(UM).replace(jM,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function vM(t){if(!Do(t)||LM(t))return!1;var e=To(t)?zM:SM;return e.test(It(t))}function bM(t,e){return t==null?void 0:t[e]}function Vt(t,e){var n=bM(t,e);return vM(n)?n:void 0}var xM=Vt(Re,"WeakMap");const _a=xM;var _M=9007199254740991,kM=/^(?:0|[1-9]\d*)$/;function VM(t,e){var n=typeof t;return e=e??_M,!!e&&(n=="number"||n!="symbol"&&kM.test(t))&&t>-1&&t%1==0&&t<e}function Eo(t,e){return t===e||t!==t&&e!==e}var QM=9007199254740991;function Co(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=QM}function BM(t){return t!=null&&Co(t.length)&&!To(t)}var YM=Object.prototype;function RM(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||YM;return t===n}function GM(t,e){for(var n=-1,a=Array(t);++n<t;)a[n]=e(n);return a}var ZM="[object Arguments]";function po(t){return Mn(t)&&cn(t)==ZM}var Lo=Object.prototype,FM=Lo.hasOwnProperty,PM=Lo.propertyIsEnumerable,WM=po(function(){return arguments}())?po:function(t){return Mn(t)&&FM.call(t,"callee")&&!PM.call(t,"callee")};const HM=WM;function JM(){return!1}var fo=typeof x=="object"&&x&&!x.nodeType&&x,yo=fo&&typeof module=="object"&&module&&!module.nodeType&&module,XM=yo&&yo.exports===fo,jo=XM?Re.Buffer:void 0,KM=jo?jo.isBuffer:void 0,$M=KM||JM;const ka=$M;var qM="[object Arguments]",eu="[object Array]",tu="[object Boolean]",nu="[object Date]",au="[object Error]",iu="[object Function]",ou="[object Map]",ru="[object Number]",su="[object Object]",lu="[object RegExp]",cu="[object Set]",Mu="[object String]",uu="[object WeakMap]",Iu="[object ArrayBuffer]",du="[object DataView]",gu="[object Float32Array]",Nu="[object Float64Array]",Au="[object Int8Array]",Du="[object Int16Array]",Tu="[object Int32Array]",hu="[object Uint8Array]",Eu="[object Uint8ClampedArray]",Cu="[object Uint16Array]",pu="[object Uint32Array]",W={};W[gu]=W[Nu]=W[Au]=W[Du]=W[Tu]=W[hu]=W[Eu]=W[Cu]=W[pu]=!0,W[qM]=W[eu]=W[Iu]=W[tu]=W[du]=W[nu]=W[au]=W[iu]=W[ou]=W[ru]=W[su]=W[lu]=W[cu]=W[Mu]=W[uu]=!1;function Lu(t){return Mn(t)&&Co(t.length)&&!!W[cn(t)]}function fu(t){return function(e){return t(e)}}var So=typeof x=="object"&&x&&!x.nodeType&&x,un=So&&typeof module=="object"&&module&&!module.nodeType&&module,yu=un&&un.exports===So,Va=yu&&go.process,ju=function(){try{var t=un&&un.require&&un.require("util").types;return t||Va&&Va.binding&&Va.binding("util")}catch{}}();const mo=ju;var Oo=mo&&mo.isTypedArray,Su=Oo?fu(Oo):Lu;const wo=Su;var mu=Object.prototype,Ou=mu.hasOwnProperty;function wu(t,e){var n=Qn(t),a=!n&&HM(t),i=!n&&!a&&ka(t),o=!n&&!a&&!i&&wo(t),r=n||a||i||o,l=r?GM(t.length,String):[],c=l.length;for(var u in t)(e||Ou.call(t,u))&&!(r&&(u=="length"||i&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||VM(u,c)))&&l.push(u);return l}function Uu(t,e){return function(n){return t(e(n))}}var zu=Uu(Object.keys,Object);const vu=zu;var bu=Object.prototype,xu=bu.hasOwnProperty;function _u(t){if(!RM(t))return vu(t);var e=[];for(var n in Object(t))xu.call(t,n)&&n!="constructor"&&e.push(n);return e}function ku(t){return BM(t)?wu(t):_u(t)}var Vu=Vt(Object,"create");const In=Vu;function Qu(){this.__data__=In?In(null):{},this.size=0}function Bu(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var Yu="__lodash_hash_undefined__",Ru=Object.prototype,Gu=Ru.hasOwnProperty;function Zu(t){var e=this.__data__;if(In){var n=e[t];return n===Yu?void 0:n}return Gu.call(e,t)?e[t]:void 0}var Fu=Object.prototype,Pu=Fu.hasOwnProperty;function Wu(t){var e=this.__data__;return In?e[t]!==void 0:Pu.call(e,t)}var Hu="__lodash_hash_undefined__";function Ju(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=In&&e===void 0?Hu:e,this}function dt(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var a=t[e];this.set(a[0],a[1])}}dt.prototype.clear=Qu,dt.prototype.delete=Bu,dt.prototype.get=Zu,dt.prototype.has=Wu,dt.prototype.set=Ju;function Xu(){this.__data__=[],this.size=0}function Bn(t,e){for(var n=t.length;n--;)if(Eo(t[n][0],e))return n;return-1}var Ku=Array.prototype,$u=Ku.splice;function qu(t){var e=this.__data__,n=Bn(e,t);if(n<0)return!1;var a=e.length-1;return n==a?e.pop():$u.call(e,n,1),--this.size,!0}function eI(t){var e=this.__data__,n=Bn(e,t);return n<0?void 0:e[n][1]}function tI(t){return Bn(this.__data__,t)>-1}function nI(t,e){var n=this.__data__,a=Bn(n,t);return a<0?(++this.size,n.push([t,e])):n[a][1]=e,this}function Ge(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var a=t[e];this.set(a[0],a[1])}}Ge.prototype.clear=Xu,Ge.prototype.delete=qu,Ge.prototype.get=eI,Ge.prototype.has=tI,Ge.prototype.set=nI;var aI=Vt(Re,"Map");const dn=aI;function iI(){this.size=0,this.__data__={hash:new dt,map:new(dn||Ge),string:new dt}}function oI(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function Yn(t,e){var n=t.__data__;return oI(e)?n[typeof e=="string"?"string":"hash"]:n.map}function rI(t){var e=Yn(this,t).delete(t);return this.size-=e?1:0,e}function sI(t){return Yn(this,t).get(t)}function lI(t){return Yn(this,t).has(t)}function cI(t,e){var n=Yn(this,t),a=n.size;return n.set(t,e),this.size+=n.size==a?0:1,this}function gt(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var a=t[e];this.set(a[0],a[1])}}gt.prototype.clear=iI,gt.prototype.delete=rI,gt.prototype.get=sI,gt.prototype.has=lI,gt.prototype.set=cI;function MI(t,e){for(var n=-1,a=e.length,i=t.length;++n<a;)t[i+n]=e[n];return t}function uI(){this.__data__=new Ge,this.size=0}function II(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}function dI(t){return this.__data__.get(t)}function gI(t){return this.__data__.has(t)}var NI=200;function AI(t,e){var n=this.__data__;if(n instanceof Ge){var a=n.__data__;if(!dn||a.length<NI-1)return a.push([t,e]),this.size=++n.size,this;n=this.__data__=new gt(a)}return n.set(t,e),this.size=n.size,this}function it(t){var e=this.__data__=new Ge(t);this.size=e.size}it.prototype.clear=uI,it.prototype.delete=II,it.prototype.get=dI,it.prototype.has=gI,it.prototype.set=AI;function DI(t,e){for(var n=-1,a=t==null?0:t.length,i=0,o=[];++n<a;){var r=t[n];e(r,n,t)&&(o[i++]=r)}return o}function TI(){return[]}var hI=Object.prototype,EI=hI.propertyIsEnumerable,Uo=Object.getOwnPropertySymbols,CI=Uo?function(t){return t==null?[]:(t=Object(t),DI(Uo(t),function(e){return EI.call(t,e)}))}:TI;const pI=CI;function LI(t,e,n){var a=e(t);return Qn(t)?a:MI(a,n(t))}function zo(t){return LI(t,ku,pI)}var fI=Vt(Re,"DataView");const Qa=fI;var yI=Vt(Re,"Promise");const Ba=yI;var jI=Vt(Re,"Set");const Ya=jI;var vo="[object Map]",SI="[object Object]",bo="[object Promise]",xo="[object Set]",_o="[object WeakMap]",ko="[object DataView]",mI=It(Qa),OI=It(dn),wI=It(Ba),UI=It(Ya),zI=It(_a),Nt=cn;(Qa&&Nt(new Qa(new ArrayBuffer(1)))!=ko||dn&&Nt(new dn)!=vo||Ba&&Nt(Ba.resolve())!=bo||Ya&&Nt(new Ya)!=xo||_a&&Nt(new _a)!=_o)&&(Nt=function(t){var e=cn(t),n=e==SI?t.constructor:void 0,a=n?It(n):"";if(a)switch(a){case mI:return ko;case OI:return vo;case wI:return bo;case UI:return xo;case zI:return _o}return e});const Vo=Nt;var vI=Re.Uint8Array;const Qo=vI;var bI="__lodash_hash_undefined__";function xI(t){return this.__data__.set(t,bI),this}function _I(t){return this.__data__.has(t)}function Rn(t){var e=-1,n=t==null?0:t.length;for(this.__data__=new gt;++e<n;)this.add(t[e])}Rn.prototype.add=Rn.prototype.push=xI,Rn.prototype.has=_I;function kI(t,e){for(var n=-1,a=t==null?0:t.length;++n<a;)if(e(t[n],n,t))return!0;return!1}function VI(t,e){return t.has(e)}var QI=1,BI=2;function Bo(t,e,n,a,i,o){var r=n&QI,l=t.length,c=e.length;if(l!=c&&!(r&&c>l))return!1;var u=o.get(t),I=o.get(e);if(u&&I)return u==e&&I==t;var N=-1,A=!0,T=n&BI?new Rn:void 0;for(o.set(t,e),o.set(e,t);++N<l;){var D=t[N],h=e[N];if(a)var C=r?a(h,D,N,e,t,o):a(D,h,N,t,e,o);if(C!==void 0){if(C)continue;A=!1;break}if(T){if(!kI(e,function(p,L){if(!VI(T,L)&&(D===p||i(D,p,n,a,o)))return T.push(L)})){A=!1;break}}else if(!(D===h||i(D,h,n,a,o))){A=!1;break}}return o.delete(t),o.delete(e),A}function YI(t){var e=-1,n=Array(t.size);return t.forEach(function(a,i){n[++e]=[i,a]}),n}function RI(t){var e=-1,n=Array(t.size);return t.forEach(function(a){n[++e]=a}),n}var GI=1,ZI=2,FI="[object Boolean]",PI="[object Date]",WI="[object Error]",HI="[object Map]",JI="[object Number]",XI="[object RegExp]",KI="[object Set]",$I="[object String]",qI="[object Symbol]",ed="[object ArrayBuffer]",td="[object DataView]",Yo=kt?kt.prototype:void 0,Ra=Yo?Yo.valueOf:void 0;function nd(t,e,n,a,i,o,r){switch(n){case td:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case ed:return!(t.byteLength!=e.byteLength||!o(new Qo(t),new Qo(e)));case FI:case PI:case JI:return Eo(+t,+e);case WI:return t.name==e.name&&t.message==e.message;case XI:case $I:return t==e+"";case HI:var l=YI;case KI:var c=a&GI;if(l||(l=RI),t.size!=e.size&&!c)return!1;var u=r.get(t);if(u)return u==e;a|=ZI,r.set(t,e);var I=Bo(l(t),l(e),a,i,o,r);return r.delete(t),I;case qI:if(Ra)return Ra.call(t)==Ra.call(e)}return!1}var ad=1,id=Object.prototype,od=id.hasOwnProperty;function rd(t,e,n,a,i,o){var r=n&ad,l=zo(t),c=l.length,u=zo(e),I=u.length;if(c!=I&&!r)return!1;for(var N=c;N--;){var A=l[N];if(!(r?A in e:od.call(e,A)))return!1}var T=o.get(t),D=o.get(e);if(T&&D)return T==e&&D==t;var h=!0;o.set(t,e),o.set(e,t);for(var C=r;++N<c;){A=l[N];var p=t[A],L=e[A];if(a)var S=r?a(L,p,A,e,t,o):a(p,L,A,t,e,o);if(!(S===void 0?p===L||i(p,L,n,a,o):S)){h=!1;break}C||(C=A=="constructor")}if(h&&!C){var f=t.constructor,y=e.constructor;f!=y&&"constructor"in t&&"constructor"in e&&!(typeof f=="function"&&f instanceof f&&typeof y=="function"&&y instanceof y)&&(h=!1)}return o.delete(t),o.delete(e),h}var sd=1,Ro="[object Arguments]",Go="[object Array]",Gn="[object Object]",ld=Object.prototype,Zo=ld.hasOwnProperty;function cd(t,e,n,a,i,o){var r=Qn(t),l=Qn(e),c=r?Go:Vo(t),u=l?Go:Vo(e);c=c==Ro?Gn:c,u=u==Ro?Gn:u;var I=c==Gn,N=u==Gn,A=c==u;if(A&&ka(t)){if(!ka(e))return!1;r=!0,I=!1}if(A&&!I)return o||(o=new it),r||wo(t)?Bo(t,e,n,a,i,o):nd(t,e,c,n,a,i,o);if(!(n&sd)){var T=I&&Zo.call(t,"__wrapped__"),D=N&&Zo.call(e,"__wrapped__");if(T||D){var h=T?t.value():t,C=D?e.value():e;return o||(o=new it),i(h,C,n,a,o)}}return A?(o||(o=new it),rd(t,e,n,a,i,o)):!1}function Fo(t,e,n,a,i){return t===e?!0:t==null||e==null||!Mn(t)&&!Mn(e)?t!==t&&e!==e:cd(t,e,n,a,Fo,i)}function Po(t,e){return Fo(t,e)}function Wo(){const[t,e]=d.useState(E.getData(g.CALL,s.LOCAL_USER_INFO)),[n,a]=d.useState(E.getData(g.CALL,s.REMOTE_USER_INFO_LIST)),[i,o]=d.useState({}),r=u=>{t.volume!==u.volume&&e(u)},l=u=>{if(u.length!==n.length){a(u);return}Po(u,n)||a(u)},c={[s.LOCAL_USER_INFO]:r,[s.REMOTE_USER_INFO_LIST]:l};return d.useEffect(()=>(E.watch(g.CALL,c,{notifyRangeWhenWatch:s.MYSELF}),()=>{E.unwatch(g.CALL,c)}),[c]),d.useEffect(()=>{const u={};[t,...n].forEach(I=>{I.isAudioAvailable&&(u[I.domId]=I.volume)}),Object.keys(u).length!==0&&o(u)},[t,n]),i}const Md={"player-container":"_player-container_dhuca_1"};function Ho(t){const e=Wo(),{isGroupCall:n}=d.useContext(P),{streamInfo:a={},showStreamInfo:i=!0,isSpkear:o,style:r,renderAudioStream:l,className:c,loading:u,renderLoading:I,isLargeView:N=!1}=t,{domId:A,isAudioAvailable:T,displayUserInfo:D}=a,h=v([c,Md["player-container"]]),C=d.useMemo(()=>n?U.isPC?!0:!!N:!1,[N,n]);return M.jsxs("div",{id:A,style:r,className:h,children:[!u&&(l==null?void 0:l({volume:e[A],isMute:!T})),u&&(I==null?void 0:I()),i&&M.jsx(Io,{volume:e[A],isSpkear:o,isMute:!T,displayName:D,showUserName:C})]})}function ud(){const[t,e]=d.useState(E.getData(g.CALL,s.NETWORK_STATUS)),n=i=>{e(i)},a={[s.NETWORK_STATUS]:n};return d.useEffect(()=>(E.watch(g.CALL,a,{notifyRangeWhenWatch:s.MYSELF}),()=>{E.unwatch(g.CALL,a)}),[]),t}const Id={"pusher-container":"_pusher-container_1ncng_1"},Jo=d.memo(t=>{var j,z;const{loading:e=!0,renderLoading:n,renderAudioStream:a,isSpkear:i,className:o,showStreamInfo:r=!0,isLargeView:l=!1}=t,{localUserInfo:{domId:c,nick:u,userId:I,isAudioAvailable:N,isVideoAvailable:A}}=d.useContext(ge),T=d.useContext(Ht),{isGroupCall:D}=d.useContext(P),h=ud(),C=d.useMemo(()=>{if(!h)return;const O=h.find(Q=>Q.userId===I);return!!(O&&O.quality>=4)},[h]),p=u||I,L=Wo(),S=v([o,Id["pusher-container"]]),f=d.useMemo(()=>D?U.isPC?!0:!!l:!1,[l,D]),y=!U.isPC&&A&&D&&l&&((z=(j=T==null?void 0:T.button)==null?void 0:j.switchCamera)==null?void 0:z.show)!==!1;return M.jsxs("div",{id:c,className:S,children:[!e&&(a==null?void 0:a()),e&&(n==null?void 0:n()),r&&M.jsx(Io,{volume:L[c],isSpkear:i,isMute:!N,displayName:p,isMe:!0,showUserName:f,showSwitchCamera:y,showNetWorkStatus:C})]},c)});function dd(t){const{avatar:e,username:n,isSmall:a,isVideoAvailable:i,userId:o,classnames:r,...l}=t,[c,u]=d.useState("hidden"),I=sn(),{callType:N,isFloat:A}=d.useContext(P),T=d.useMemo(()=>N===G.AUDIO,[N]),[D,h]=d.useState(!I[o]),[C,p]=d.useState(I[o]?"fill":"cover"),[L,S]=d.useState(I[o]||e),[f,y]=d.useState(!1),j=v([r]);d.useEffect(()=>{u(T&&!a||!T&&!i?"":"hidden"),f||(h((T||!i)&&!I[o]),p(I[o]?"fill":"cover"),S(I[o]||e||ce))},[A,a,T,i,I]);const z=()=>{y(!0),p("cover")};return M.jsx(_t,{className:j,showLoading:!1,avatar:e||ce,showAvatar:!U.isPC,username:n,showVolumn:U.isPC&&N===G.AUDIO,isMobile:!U.isPC,isSmall:a,background:L,showOverlayer:D,fit:C,style:{visibility:c,zIndex:1},...l,onError:z})}function gd(){var r;const{layoutMode:t}=d.useContext(Ht),{remoteList:e}=d.useContext(ge),{callStatus:n}=d.useContext(P),[a,i]=d.useState(Ve.LOCAL),o=!!((r=e==null?void 0:e[0])!=null&&r.isEnter);return d.useEffect(()=>{if(n===b.CALLING)return;if([Zt.RemoteInLargeView,Zt.LocalInLargeView].includes(t)){i(t);return}o&&i(Ve.REMOTE)},[o,t,n]),[a,i]}const At={"single-stream-container":"_single-stream-container_1hpym_1",pc:"_pc_1hpym_11","single-call-audio-stream":"_single-call-audio-stream_1hpym_23",float:"_float_1hpym_27"};function Nd(){const{remoteList:t,localUserInfo:e}=d.useContext(ge),{callType:n,callStatus:a,isFloat:i}=d.useContext(P),[o,r]=gd(),l=d.useMemo(()=>n===G.AUDIO,[n]),[c,u]=d.useState(!1);d.useEffect(()=>{var D;(D=t==null?void 0:t[0])!=null&&D.isEnter&&u(!l)},[t,l]);function I(D){return M.jsx(dd,{...D})}const N=d.useMemo(()=>i?"#float":"#single-container",[i]),A=U.isPC&&a===b.CONNECTED&&!l&&!i,T=v([At["single-stream-container"],{[At.mobile]:!U.isPC,[At.pc]:U.isPC,[At.float]:i}]);return M.jsx("div",{id:"single-container",className:T,children:M.jsx(nn,{attach:N,style:{width:"100%",height:"100%",position:"relative"},children:M.jsxs($c,{isMobile:!U.isPC,bigWindow:o,showSmallWindow:c,onToggle:r,children:[M.jsx(za,{value:Ve.LOCAL,children:M.jsx(Jo,{loading:a===b.CALLING&&(n===G.VIDEO?!(e!=null&&e.isVideoAvailable):!0),renderAudioStream:()=>{var D,h,C;return I({isVideoAvailable:e.isVideoAvailable,avatar:l?(D=t==null?void 0:t[0])==null?void 0:D.avatar:e.avatar,username:l?(h=t==null?void 0:t[0])==null?void 0:h.displayUserInfo:e.nick||e.userId,isSmall:o!==Ve.LOCAL,userId:l?(C=t==null?void 0:t[0])==null?void 0:C.userId:e.userId,classnames:At["single-call-audio-stream"]})},showStreamInfo:A})},Ve.LOCAL),M.jsx(za,{value:Ve.REMOTE,className:At.remote,children:t.length!==0&&a===b.CONNECTED&&M.jsx(Ho,{renderAudioStream:D=>I({isVideoAvailable:t[0].isVideoAvailable,avatar:t[0].avatar,username:t[0].displayUserInfo,isSmall:o!==Ve.REMOTE,userId:t[0].userId,classnames:At["single-call-audio-stream"],...D}),showStreamInfo:U.isPC&&!l&&!i,streamInfo:t[0]})},Ve.REMOTE)]})})})}const Ga={"single-container":"_single-container_1l7n2_1","singlecall-tip":"_singlecall-tip_1l7n2_5",mobile:"_mobile_1l7n2_12",pulldown:"_pulldown_1l7n2_1"},Ad=d.memo(()=>{const{remoteList:t}=d.useContext(ge),{callRole:e,callStatus:n,isFloat:a}=d.useContext(P),i=v([Ga["single-container"],{[Ga.mobile]:!U.isPC}]),o=()=>{if(!a)return M.jsx(_i,{})},r=()=>{var c,u,I;if(n===b.CALLING&&!a)return M.jsx(Xc,{avatar:(c=t==null?void 0:t[0])==null?void 0:c.avatar,username:(u=t==null?void 0:t[0])==null?void 0:u.displayUserInfo,callRole:e,userId:(I=t==null?void 0:t[0])==null?void 0:I.userId})},l=()=>{if(!a)return M.jsx(so,{})};return M.jsxs("div",{className:i,children:[o(),r(),M.jsx(Nd,{}),M.jsx(vi,{className:Ga["singlecall-tip"]}),l()]})}),Dt={"groupcall-waiting-container":"_groupcall-waiting-container_1ew1v_1","waiting-mobile":"_waiting-mobile_1ew1v_5",tip:"_tip_1ew1v_5","groupcall-info":"_groupcall-info_1ew1v_16","avatar-group":"_avatar-group_1ew1v_35","avatar-item":"_avatar-item_1ew1v_43"};function Dd(t){const e=sn(),{remoteList:n}=t,{t:a}=ae(),i=d.useContext(Oi),{avatar:o,userId:r,displayUserInfo:l}=i||{},[c,u]=d.useState(!e[r]),[I,N]=d.useState(e[r]?"fill":"cover"),[A,T]=d.useState(e[r]||o);d.useEffect(()=>{u(!e[r]),N(e[r]?"fill":"cover"),T(e[r]||o||ce)},[e,r]);function D(){return M.jsx(_t,{className:v([Dt["groupcall-waiting-container"],Dt["waiting-mobile"]]),showLoading:!1,showAvatar:!0,blur:!0,tip:a("Invited group call"),showUsername:!0,username:l,avatar:o||ce,theme:U.isPC?"circle":"dot",isMobile:!U.isPC,background:A,showOverlayer:c,fit:I,children:M.jsxs("div",{className:Dt["groupcall-info"],children:[M.jsxs("div",{className:Dt.tip,children:[n.length,a("people in the call"),":"]}),M.jsx("div",{className:Dt["avatar-group"],children:n==null?void 0:n.map(C=>M.jsx(lo,{className:Dt["avatar-item"],image:C.avatar},C.userId))})]})})}function h(){return M.jsx(_t,{className:Dt["groupcall-waiting-container"],showLoading:!1,avatar:o||ce,username:l,showAvatar:!U.isPC,isMobile:!U.isPC,tip:a("Invited group call"),background:A,showOverlayer:c,fit:I})}return U.isPC?M.jsx(h,{}):M.jsx(D,{})}function Td(t){const{isFloat:e}=d.useContext(P),n=100;let{rowHeight:a,unit:i="%",className:o,isMobile:r,onHandleFocusChange:l,enableFocus:c=!1,children:u}=t;const[I,N]=d.useState(null),A=d.useMemo(()=>{const p=u.length;if(p<=3)return[{x:0,y:0,w:6,h:6},{x:6,y:0,w:6,h:6},{x:3,y:6,w:6,h:6}];if(p===4)return[{x:0,y:0,w:6,h:6},{x:6,y:0,w:6,h:6},{x:0,y:6,w:6,h:6},{x:6,y:6,w:6,h:6}];const L=[{x:0,y:0,w:4,h:4}];for(let S=1;S<p;S++){const f=L[S-1].x+4===12;L[S]={x:L[S-1].x+4===12?0:L[S-1].x+4,y:L[S-1].y+(f?4:0),w:4,h:4}}return r||(p%3===1&&(L[p-1].x+=2),p%3===2&&(L[p-1].x+=2,L[p-2].x+=2)),L},[u,r]);function T(p){p===I?(N(null),l==null||l(null)):(N(p),l==null||l(p))}const D=n/12;a=D;const h=Object.keys(Array.from({length:A.length})),C=d.useMemo(()=>{const p=JSON.parse(JSON.stringify(A));let L,S;if(I!=null){if(h.length<5){const f=h.concat();f.splice(I,1),f.unshift(I)}else S=I%3,L=Math.floor(I/3);if(h.length<5){for(let y=0;y<p.length;y++){const j=p[y];y===0?(j.w+=6,j.h+=6):(j.x=(y-1)*4,j.y=12,j.w=4,j.h=4)}const f=p.shift();p.splice(I,0,f)}else{let f;S===0?(p[I+1]&&(p[I+1].x+=4),p[I+2]&&(p[I+2].y+=4),f={x:0,y:L*4,w:8,h:8}):S===2?(f={x:4,y:L*4,w:8,h:8},p[I-1].x=0,p[I-1].y+=4):S===1&&(f={x:4,y:L*4,w:8,h:8},p[I+1]&&(p[I+1].x=0,p[I+1].y+=4));const y=3-S;for(let j=I+y;j<p.length;j++){const z=p[j];z.y+=4}p[I]=f}return p}return p},[I,A]);return M.jsx("div",{className:o,children:u==null?void 0:u.map((p,L)=>{const{x:S,y:f,w:y,h:j}=C[L];let z={width:y*D+i,height:j*a+i,left:S*D+i,top:f*a+i,position:"absolute"};return e&&(z={width:"100%",height:"100%",left:"0px",top:"0px",position:"absolute"}),d.cloneElement(p,{style:z,updateFocusItem:()=>c&&T(L)})})})}const Wg="";function Za(t){const{index:e,children:n,className:a,style:i,updateFocusItem:o}=t,r=v([`${Y}-gridplus-item-container`,a]);return M.jsx("div",{className:r,onClick:()=>o==null?void 0:o(e),style:{gridArea:`gridplus-item-${e}`,...i},children:n})}Za.displayname="GridPlusItem";function hd(t){const e=sn(),{avatar:n,username:a,visible:i,userId:o}=t||{},[r,l]=d.useState(e[o]||n);return d.useEffect(()=>{l(e[o]||n||ce)},[e,o]),M.jsx(_t,{showLoading:!1,showAvatar:!1,avatar:n||ce,username:a,showUsername:U.isPC,isMobile:!U.isPC,showOverlayer:!1,blur:!1,background:r,style:{visibility:i?"":"hidden",zIndex:1}})}const Ed=10;function Xo(){const[t,e]=d.useState(E.getData(g.CALL,s.LOCAL_USER_INFO)),[n,a]=d.useState(E.getData(g.CALL,s.REMOTE_USER_INFO_LIST)),[i,o]=d.useState([]),r=u=>{t.volume!==u.volume&&e(u)},l=u=>{if(u.length!==n.length){a(u);return}Po(u,n)||a(u)},c={[s.LOCAL_USER_INFO]:r,[s.REMOTE_USER_INFO_LIST]:l};return d.useEffect(()=>(E.watch(g.CALL,c,{notifyRangeWhenWatch:s.MYSELF}),()=>{E.unwatch(g.CALL,c)}),[]),d.useEffect(()=>{const u=[];[t,...n].forEach(I=>{I.isAudioAvailable&&I.volume>=Ed&&u.push(I.domId)}),!(u.length===0&&i.length===0)&&o(u)},[t,n]),i}function Cd(t){const{avatar:e,userId:n}=t||{},a=sn(),[i,o]=d.useState(!a[n]),[r,l]=d.useState({objectFit:"cover"}),[c,u]=d.useState(a[n]||e||ce),I={width:"100%",height:"100%"};d.useEffect(()=>{a[n]&&(l({objectFit:"fill"}),o(!1),u(a[n]||e||ce))},[a,n]);const N=()=>{l({objectFit:"cover"}),o(!1),u(ce)};return M.jsx(da,{showOverlayer:i,theme:"dot",style:{zIndex:1,position:"absolute",top:0},children:M.jsx("img",{alt:"Failed to load the background image in loading",style:{...I,...r},src:c,onError:N})})}const ze={"stream-container":"_stream-container_d9ykp_1",mobile:"_mobile_d9ykp_7",pc:"_pc_d9ykp_10",float:"_float_d9ykp_14","groupcall-gridplus-container":"_groupcall-gridplus-container_d9ykp_19",center:"_center_d9ykp_23","two-layout":"_two-layout_d9ykp_26",hidden:"_hidden_d9ykp_45",userinfo:"_userinfo_d9ykp_48"};function pd(){const{localUserInfo:t,remoteList:e}=d.useContext(ge),{callStatus:n,callType:a}=d.useContext(P),{focusItem:i,setFocusItem:o}=d.useContext(ga),{isFloat:r}=d.useContext(P),l=Xo(),c=d.useMemo(()=>n===b.CALLING&&(a===G.AUDIO&&!t.isAudioAvailable||a===G.VIDEO&&!t.isVideoAvailable),[t,n,a]);function u(T){return M.jsx(Cd,{...T})}function I(T){return M.jsx(hd,{...T})}const N=d.useCallback(()=>e.map((T,D)=>M.jsx(Za,{index:D+1,children:M.jsx(Ho,{className:v({[ze.hidden]:r&&!l.includes(T.domId)}),renderLoading:()=>u({avatar:T.avatar,username:T.displayUserInfo,userId:T.userId}),renderAudioStream:()=>I({avatar:T.avatar,username:T.displayUserInfo,visible:!T.isVideoAvailable,userId:T.userId}),loading:!T.isEnter,streamInfo:T,showStreamInfo:!r,isSpkear:l.includes(T.domId),isLargeView:i===D+1})},T.userId)),[e,l,i]),A=v([ze["groupcall-gridplus-container"],{[ze.pc]:U.isPC,[ze.mobile]:!U.isPC,[ze.float]:r,[ze["two-layout"]]:e.length===1&&i===null&&!r}]);return M.jsx("div",{id:"group-container",className:v([ze["stream-container"],{[ze.mobile]:!U.isPC,[ze.pc]:U.isPC,[ze.float]:r}]),children:M.jsx(nn,{attach:r?"#float":"#group-container",style:{width:"100%",height:"100%",position:"relative"},children:M.jsxs(Td,{className:A,isMobile:!U.isPC,enableFocus:!U.isPC&&!r,unit:U.isPC?"%":"vw",onHandleFocusChange:o,children:[M.jsx(Za,{index:0,children:M.jsx(Jo,{className:v({[ze.hidden]:r&&!l.includes(t.domId)}),loading:c,showStreamInfo:!r,renderLoading:()=>u({avatar:t.avatar,username:t.nick||t.userId,userId:t.userId}),renderAudioStream:()=>I({avatar:t.avatar,username:t.nick||t.userId,visible:!t.isVideoAvailable,userId:t.userId}),isSpkear:l.includes(t.domId),isLargeView:i===0})},t.userId),...N()]})})})}const Ko={"group-container":"_group-container_bky89_1",mobile:"_mobile_bky89_5",pulldown:"_pulldown_bky89_1"};function Ld(){const{remoteList:t,localUserInfo:e}=d.useContext(ge),{callRole:n,callStatus:a,isFloat:i}=d.useContext(P),[o,r]=d.useState(null),l=d.useMemo(()=>({focusItem:o,setFocusItem:r}),[o,r]),c=()=>i?null:M.jsx(_i,{}),u=()=>i?null:M.jsx(so,{}),I=()=>a===b.CALLING&&n!==X.CALLER&&!i?M.jsx(Dd,{remoteList:t,callRole:n}):null,N=()=>!i&&(n!==X.CALLER&&a===b.CONNECTED||n===X.CALLER)?M.jsx(_t,{blur:!0,showAvatar:!1,showLoading:!1,avatar:e.avatar||ce,isMobile:!U.isPC}):null,A=v([Ko["group-container"],{[Ko.mobile]:!U.isPC}]);return M.jsx(ga.Provider,{value:l,children:M.jsxs("div",{className:A,children:[c(),I(),(n===X.CALLER||a===b.CONNECTED)&&M.jsx(pd,{}),u(),N()]})})}const nN="",fd=({customClass:t,customStyle:e})=>{const n=U.isPC,{isAITranscriberEnabled:a}=wt(),[i,o]=d.useState(!1),r=()=>{o(!0)},l=()=>{o(!1)};return a?M.jsxs("div",{className:`
4
4
  ${n?"ai-subtitle-pc":"ai-subtitle-h5"}
5
5
  ${t||""}
6
6
  ${i&&n?"ai-subtitle-pc--expanded":""}
7
7
  ${i&&!n?"ai-subtitle-h5--expanded":""}
8
- `,style:e,children:[M.jsx("div",{style:{display:i?"none":"block"},children:M.jsx(Ns,{onOpenSettings:o,className:n?"ai-subtitle-pc__content":"ai-subtitle-h5__content"})}),n&&M.jsx(As,{visible:i,onVisibleChange:r,onConfirm:l}),!n&&M.jsx(Ds,{visible:i,onVisibleChange:r,onConfirm:l})]}):null};let _a=0;const Qn=[];function lg(t){const{children:e,zIndex:n,id:a,renderCallback:i}=t,r={zIndex:n,top:"32px",width:"100%",position:"absolute",left:0,display:"flex",flexDirection:"column",alignItems:"center"};return g.useEffect(()=>{i==null||i()},[]),M.jsx("div",{style:r,id:a,children:e})}function cg(){return new Promise(t=>{const e=document.body,n="tdesign-message-container--top",a=Array.from(e.querySelectorAll(`#${n}`));if(a.length<1){const i=document.createElement("div");Fa.createRoot(i).render(M.jsx(lg,{id:n,zIndex:1,renderCallback:()=>{e.appendChild(i);const o=Array.from(e.querySelectorAll(`#${n}`));t(o[0])}}))}else t(a[0])})}async function Bn(t,e){const n=await cg(),{content:a,offset:i,onClose:r=So}=e,o=document.createElement("div");_a+=1;let l=null;const c={close:()=>{if(l){const I=l;l=null,Promise.resolve().then(()=>I.unmount())}o.remove(),c.closed=!0},key:_a,closed:!1};let u={...e.style};if(Array.isArray(i)&&i.length===2){const[I,N]=i;u={left:I,top:N,...u,position:"relative"}}return new Promise(I=>{l=Fa.createRoot(o),l.render(M.jsx(ji,{...e,theme:t,style:u,onClose:N=>{r(N),c.close()},children:a},_a)),n.appendChild(o),Qn.push(c),I(c)})}function Mg(t){Bn("info",t)}function ug(t){Bn("warn",t)}function Ig(t){Bn("success",t)}function gg(t){Bn("error",t)}function dg(){Qn==null||Qn.forEach(t=>t.close())}const Ng={info:Mg,warn:ug,success:Ig,error:gg,closeAll:dg},Gr="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjgiIGhlaWdodD0iMjgiIHZpZXdCb3g9IjAgMCAyOCAyOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTAuNzYwOTYxIDkuMzMxNTRDMC4wMDEyMzUwNyA3LjEzMzcxIDAuOTYyOTY4IDQuNzczMjMgMi44MzM0NSAzLjM5MDk3QzQuMjUxNTIgMi4zNDMwNCA1LjY3NjAzIDEuMjg0NyA2LjQ4ODg5IDAuNjgwMTI0QzYuODc1MTUgMC4zOTI4MzcgNy40MTY2MSAwLjQ1NTY4IDcuNzI4NDEgMC44MjIzOTdMMTIuMTU4IDYuMDMyMTRDMTIuNDQ3NiA2LjM3Mjc1IDEyLjQ0NzcgNi44NzI5NSAxMi4xNTgzIDcuMjEzNzNMOS40NDIyIDEwLjQxMTlDOS4xOTQ5NiAxMC43MDMxIDkuMTUzNzggMTEuMTE4MyA5LjM0OTI1IDExLjQ0NjVDMTAuMjI5MyAxMi45MjM4IDExLjE5NSAxNC4xODkxIDEyLjUgMTUuNDkzOEMxMy44MTI3IDE2LjgwNiAxNS4wNzc4IDE3Ljc1MjkgMTYuNTYzNSAxOC42MzA4QzE2Ljg5MTkgMTguODI0OCAxNy4zMDY1IDE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imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xLjkxNjUgNy41NjkzN1Y2LjgzODg3SDMuNDE2NVY3LjU2OTM3QzMuNDE2NSAxMC4xMDA3IDUuNDY4NTMgMTIuMTUyNyA3Ljk5OTg0IDEyLjE1MjdDMTAuNTMxMSAxMi4xNTI3IDEyLjU4MzIgMTAuMTAwNyAxMi41ODMyIDcuNTY5MzZWNi44Mzg4N0gxNC4wODMyVjcuNTY5MzZDMTQuMDgzMiAxMC42NzUxIDExLjc1NTcgMTMuMjM3MyA4Ljc0OTg4IDEzLjYwNjlWMTQuOTA4OUg3LjI0OTg4VjEzLjYwNjlDNC4yNDM5OCAxMy4yMzc0IDEuOTE2NSAxMC42NzUyIDEuOTE2NSA3LjU2OTM3WiIgZmlsbD0iI0FEQURBRCIvPgo8cmVjdCB4PSI0LjY2Njc1IiB5PSIxLjA5MDgyIiB3aWR0aD0iNi42NjY2NyIgaGVpZ2h0PSI5Ljg5NjkiIHJ4PSIzLjMzMzMzIiBmaWxsPSIjQURBREFEIi8+Cjwvc3ZnPgo=",ce={"floating-window-pc-groupcall-container":"_floating-window-pc-groupcall-container_1es4b_1","click-overlay":"_click-overlay_1es4b_1","call-status":"_call-status_1es4b_1","video-stream":"_video-stream_1es4b_1",hidden:"_hidden_1es4b_1","audio-stream":"_audio-stream_1es4b_1",video:"_video_1es4b_1",earphone:"_earphone_1es4b_1",info:"_info_1es4b_1","device-status":"_device-status_1es4b_1",icon:"_icon_1es4b_1",camera:"_camera_1es4b_1",micphone:"_micphone_1es4b_1","floating-window-h5-groupcall-container":"_floating-window-h5-groupcall-container_1es4b_1"};function hg(t){const{hasVideo:e,clickable:n}=t,{isGroupCall:a,callStatus:i}=g.useContext(P),{isFloat:r}=g.useContext(P),{localUserInfo:{isAudioAvailable:o,isVideoAvailable:l}}=g.useContext(ge),c=oa(),{t:u}=ie(),I=l?Ag:Tg,N=o?Dg:Eg,A=()=>{const D=v([ce["video-stream"]]);return M.jsxs(M.Fragment,{children:[M.jsx("div",{className:D,id:"float"}),!e&&M.jsxs("div",{className:ce["audio-stream"],children:[M.jsx("div",{className:ce.earphone,children:M.jsx(F,{url:Gr})}),M.jsx("div",{className:ce.info,children:i===x.CONNECTED?c:u("wait to be called")})]})]})},T=v([{[ce["floating-window-h5-groupcall-container"]]:!w.isPC,[ce["floating-window-pc-groupcall-container"]]:w.isPC}]);return M.jsxs("div",{onClick:()=>n&&V.toggleMinimize(),className:T,children:[M.jsx("div",{className:ce["click-overlay"]}),M.jsx("div",{className:v([ce["call-status"],{[ce.float]:r,[ce.video]:e}]),children:A()}),a&&r&&M.jsxs("div",{className:ce["device-status"],children:[M.jsx("div",{className:v([ce.icon,ce.camera]),children:M.jsx(F,{url:I})}),M.jsx("div",{className:v([ce.icon,ce.micphone]),children:M.jsx(F,{url:N})})]})]})}const Ae={"floating-window-h5-singlecall-container":"_floating-window-h5-singlecall-container_1wchz_1","audio-call":"_audio-call_1wchz_1","click-overlay":"_click-overlay_1wchz_1","call-status":"_call-status_1wchz_1",video:"_video_1wchz_1",info:"_info_1wchz_1","video-stream":"_video-stream_1wchz_1",hidden:"_hidden_1wchz_1","audio-stream":"_audio-stream_1wchz_1",earphone:"_earphone_1wchz_1",tip:"_tip_1wchz_1","floating-window-pc-singlecall-container":"_floating-window-pc-singlecall-container_1wchz_1"};function Cg(t){const{hasVideo:e,clickable:n}=t,{callStatus:a,callType:i}=g.useContext(P),{isFloat:r}=g.useContext(P),o=oa(),{t:l}=ie(),c=()=>{const I=v([Ae["video-stream"],{[Ae.hidden]:!e}]);return M.jsxs(M.Fragment,{children:[M.jsx("div",{className:I,id:"float"}),e?M.jsx("div",{className:Ae.info,children:a===x.CONNECTED?"":l("wait to be called")}):M.jsxs("div",{className:Ae["audio-stream"],children:[M.jsx("div",{className:Ae.earphone,children:M.jsx(F,{url:Gr})}),M.jsx("div",{className:Ae.info,children:a===x.CONNECTED?o:l("wait to be called")})]})]})},u=v([{[Ae["floating-window-h5-singlecall-container"]]:!w.isPC,[Ae["floating-window-pc-singlecall-container"]]:w.isPC,[Ae["audio-call"]]:i===G.AUDIO}]);return M.jsxs("div",{onClick:()=>{n&&V.toggleMinimize()},className:u,children:[M.jsx("div",{className:Ae["click-overlay"]}),M.jsx("div",{className:v([[Ae["call-status"]],{[Ae.float]:r,[Ae.video]:e}]),children:c()})]})}const At={touch:{start:"onTouchStart",move:"touchmove",stop:"touchend"},mouse:{start:"onMouseDown",move:"mousemove",stop:"mouseup"}}[w.isH5?"touch":"mouse"];function Zr(t){return w.isH5&&(t=t.touches[0]),{clientX:t.clientX,clientY:t.clientY}}function Lg(t){var y;const{nodeRef:e,children:n,onMoveStart:a,onMoveEnd:i,onPositionChange:r,initialPosition:o={left:"0px",top:"0px"}}=t,l=g.useRef(!1),c=g.useRef({}),u=g.useRef({left:0,top:0}),[I,N]=g.useState(o),[A,T]=g.useState();g.useEffect(()=>()=>{e.current&&(e.current.ownerDocument.removeEventListener(At.move,p),e.current.ownerDocument.removeEventListener(At.stop,S))},[e.current]);const D=f=>{var Se,q;const{clientX:U,clientY:m}=Zr(f),k=U-((Se=e.current)==null?void 0:Se.getBoundingClientRect().left),Q=m-((q=e.current)==null?void 0:q.getBoundingClientRect().top),H=document.documentElement.clientWidth,oe=document.documentElement.clientHeight,$=e.current.offsetWidth,fe=e.current.offsetHeight;return{oW:k,oH:Q,htmlWidth:H,htmlHeight:oe,bWidth:$,bHeight:fe}},E=f=>{const{clientX:U,clientY:m}=Zr(f),k=U-c.current.oW,Q=m-c.current.oH;return{left:k,top:Q}},C=f=>{l.current=!0,c.current=D(f),u.current=E(f),N({left:"0px",top:"0px"}),e.current.ownerDocument.addEventListener(At.move,p),e.current.ownerDocument.addEventListener(At.stop,S)},L=f=>{a==null||a();let{left:U,top:m}=E(f);U<0?U=0:U>c.current.htmlWidth-c.current.bWidth&&(U=c.current.htmlWidth-c.current.bWidth),m<0?m=0:m>c.current.htmlHeight-c.current.bHeight&&(m=c.current.htmlHeight-c.current.bHeight),u.current={left:U,top:m},r==null||r({left:U,top:m}),T({left:U,top:m})},p=f=>{l.current&&L(f)},S=f=>{l.current=!1;let U=u.current.left;U<(c.current.htmlWidth-c.current.bWidth)/2?U=0:U=c.current.htmlWidth-c.current.bWidth,u.current=w.isH5?{left:U,top:u.current.top}:{left:u.current.left,top:u.current.top},setTimeout(()=>{i==null||i()},0),e.current.ownerDocument.removeEventListener(At.move,p),e.current.ownerDocument.removeEventListener(At.stop,S)},j=g.useMemo(()=>`translate(${u.current.left}px, ${u.current.top}px)`,[u.current]);return M.jsx(M.Fragment,{children:g.cloneElement(n,{style:{...((y=n==null?void 0:n.props)==null?void 0:y.style)||{},position:"absolute",zIndex:999,touchAction:"none",...I,transform:j,userSelect:"none",WebkitUserSelect:"none"},[At.start]:C})})}function pg(t){const{isGroupCall:e}=g.useContext(P),n=g.useRef(void 0),[a,i]=g.useState(!0),r=t.show?"":"hidden";return M.jsx(Lg,{nodeRef:n,initialPosition:{right:"0px",top:"100px"},onMoveStart:()=>i(!1),onMoveEnd:()=>i(!0),children:M.jsx("div",{ref:n,style:{visibility:r},children:e?M.jsx(hg,{clickable:a,...t}):M.jsx(Cg,{clickable:a,...t})})})}const ka={"tuicallkit-container":"_tuicallkit-container_h8knf_98",float:"_float_h8knf_105",mobile:"_mobile_h8knf_109"};function un(t){const{style:e,className:n,allowedMinimized:a=!0,allowedFullScreen:i=!0,videoDisplayMode:r=Dn.COVER,videoResolution:o=Tn.RESOLUTION_720P,beforeCalling:l,afterCalling:c,onMinimized:u}=t,[I,N]=g.useState(h.getData(d.CALL,s.CALL_STATUS)),[A,T]=g.useState(h.getData(d.CALL,s.IS_GROUP)),[D,E]=g.useState(h.getData(d.CALL,s.CALLER_USER_INFO)),[C,L]=g.useState(h.getData(d.CALL,s.LOCAL_USER_INFO)),[p,S]=g.useState(h.getData(d.CALL,s.REMOTE_USER_INFO_LIST)),[j,y]=g.useState(h.getData(d.CALL,s.CALL_MEDIA_TYPE)),[f,U]=g.useState(h.getData(d.CALL,s.CALL_ROLE)),[m,k]=g.useState(h.getData(d.CALL,s.IS_EAR_PHONE)),[Q,H]=g.useState(!1),[oe,$]=g.useState(h.getData(d.CALL,s.ENABLE_VIRTUAL_BACKGROUND)),[fe,Se]=g.useState(h.getData(d.CALL,s.IS_SHOW_ENABLE_VIRTUAL_BACKGROUND)),[q,De]=g.useState(h.getData(d.CALL,s.IS_MUTE_SPEAKER)),kt=Yr(),Pe=g.useMemo(()=>({callStatus:I,callRole:f,callType:j,isEarPhone:m,isGroupCall:A,isFloat:Q,allowedMinimized:a,allowedFullScreen:i,enableVirtualBackground:oe,isShowEnableVirtualBackground:fe,isMuteSpeaker:q}),[I,f,j,m,A,Q,i,oe,fe,q]),Vt=g.useMemo(()=>({localUserInfo:C,remoteList:p}),[C,p]),[In,ht]=g.useState(h.getData(d.CALL,s.CUSTOM_UI_CONFIG)),[ze,nt]=g.useState({t:h.getData(d.CALL,s.TRANSLATE)}),xe=v([n,ka["tuicallkit-container"],{[ka.mobile]:!w.isPC,[ka.float]:Q}]),Ct=Y=>{N(Y)},Qt=Y=>{T(Y)},We=Y=>{E(Y)},gn=Y=>{L(Y)},Va=Y=>{S(Y)},dn=Y=>{y(Y)},Qa=Y=>{U(Y)},Yn=Y=>{k(Y)},Ba=Y=>{var An;const{content:at,type:Nn="info"}=Y||{};at&&Ng[Nn]({content:(An=ze==null?void 0:ze.t)==null?void 0:An.call(ze,at)})},Rn=Y=>{H(Y)},Gn=Y=>{$(Y)},Zn=Y=>{Se(Y)},Ya=Y=>{ht(Y)},Ra=Y=>{De(Y)},He=Y=>{nt({t:Y})},Lt={[s.CALL_STATUS]:Ct,[s.IS_GROUP]:Qt,[s.CALLER_USER_INFO]:We,[s.LOCAL_USER_INFO_EXCLUDE_VOLUMN]:gn,[s.REMOTE_USER_INFO_EXCLUDE_VOLUMN_LIST]:Va,[s.CALL_MEDIA_TYPE]:dn,[s.CALL_ROLE]:Qa,[s.IS_EAR_PHONE]:Yn,[s.TOAST_INFO]:Ba,[s.CUSTOM_UI_CONFIG]:Ya,[s.ENABLE_VIRTUAL_BACKGROUND]:Gn,[s.IS_SHOW_ENABLE_VIRTUAL_BACKGROUND]:Zn,[s.IS_MUTE_SPEAKER]:Ra,[s.TRANSLATE]:He};return g.useLayoutEffect(()=>{var at;const Y=(at=document.documentElement.dataset)==null?void 0:at.uikitTheme;["light","dark"].indexOf(Y)===-1&&(document.documentElement.dataset.uikitTheme="light")},[]),g.useEffect(()=>(h.watch(d.CALL,Lt,{notifyRangeWhenWatch:s.MYSELF}),h.watch(d.CALL,{[s.IS_MINIMIZED]:Rn}),()=>{h.unwatch(d.CALL,{...Lt,[s.IS_MINIMIZED]:Rn})}),[]),g.useEffect(()=>{V.enableFloatWindow(a),V.setVideoDisplayMode(r),V.setVideoResolution(o),V.setCallback({beforeCalling:l,afterCalling:c,onMinimized:u})},[l,c,V,r,o,a,u]),I!==x.IDLE&&M.jsx(ge.Provider,{value:Vt,children:M.jsx(Ci.Provider,{value:D,children:M.jsx(P.Provider,{value:Pe,children:M.jsx(Ft.Provider,{value:In,children:M.jsxs(pi.Provider,{value:ze,children:[M.jsxs("div",{style:{...e},className:xe,id:"tuicallkit-id",children:[!A&&M.jsx(qI,{}),A&&M.jsx(og,{}),M.jsx(sg,{})]}),M.jsx(qt,{attach:"body",children:M.jsx(pg,{show:Q,hasVideo:A?kt.length!==0:j===G.VIDEO,isAudioAvailable:C.isAudioAvailable})})]})})})})})}const Fr=t=>(t.component("TUICallKit",{server:V}),V.bindTUICore(t),un),Pr=t=>{t.component("TUICallKit",un),console.log("TUICallKit&mini installed",t)};un.plugin=Fr,un.install=Pr;const jg={AUDIO_CALL:1,VIDEO_CALL:2},yg="4.5.3-beta.1";b.CallMediaType=G,b.CallMessage=ss,b.CallRole=X,b.FeatureButton=ot,b.LayoutMode=Yt,b.NAME=s,b.STATUS=ne,b.StoreName=d,b.TUICallKit=un,b.TUICallKitAPI=V,b.TUICallType=jg,b.TUIGlobal=w,b.TUIStore=h,b.Version=yg,b.VideoDisplayMode=Dn,b.VideoResolution=Tn,b.install=Pr,b.plugin=Fr,b.t=_e,b.uiDesign=ke,Object.defineProperty(b,Symbol.toStringTag,{value:"Module"})});
8
+ `,style:e,children:[M.jsx("div",{style:{display:i?"none":"block"},children:M.jsx(zs,{onOpenSettings:r,className:n?"ai-subtitle-pc__content":"ai-subtitle-h5__content"})}),n&&M.jsx(vs,{visible:i,onVisibleChange:o,onConfirm:l}),!n&&M.jsx(bs,{visible:i,onVisibleChange:o,onConfirm:l})]}):null},$o={"auto-play-dialog":"_auto-play-dialog_o5mtr_1","auto-play-action":"_auto-play-action_o5mtr_28"};function yd(){const{t}=ae(),[e,n]=d.useState(E.getData(g.CALL,s.IS_SHOW_AUTO_PLAY_DIALOG)),a=o=>{n(o)};d.useEffect(()=>(E.watch(g.CALL,{[s.IS_SHOW_AUTO_PLAY_DIALOG]:a}),()=>{E.unwatch(g.CALL,{[s.IS_SHOW_AUTO_PLAY_DIALOG]:a})}),[]);const i=()=>{var o;E.update(g.CALL,s.IS_SHOW_AUTO_PLAY_DIALOG,!1),(o=V==null?void 0:V._autoPlayResume)==null||o.call(V)};return!e||!U.isH5?null:M.jsxs("div",{className:$o["auto-play-dialog"],children:[M.jsx("div",{children:typeof t=="function"?t("auto play failed"):""}),M.jsx("div",{className:$o["auto-play-action"],onClick:i,children:typeof t=="function"?t("click to resume"):""})]})}let Fa=0;const Zn=[];function jd(t){const{children:e,zIndex:n,id:a,renderCallback:i}=t,o={zIndex:n,top:"32px",width:"100%",position:"absolute",left:0,display:"flex",flexDirection:"column",alignItems:"center"};return d.useEffect(()=>{i==null||i()},[]),M.jsx("div",{style:o,id:a,children:e})}function Sd(){return new Promise(t=>{const e=document.body,n="tdesign-message-container--top",a=Array.from(e.querySelectorAll(`#${n}`));if(a.length<1){const i=document.createElement("div");ea.createRoot(i).render(M.jsx(jd,{id:n,zIndex:1,renderCallback:()=>{e.appendChild(i);const r=Array.from(e.querySelectorAll(`#${n}`));t(r[0])}}))}else t(a[0])})}async function Fn(t,e){const n=await Sd(),{content:a,offset:i,onClose:o=Zr}=e,r=document.createElement("div");Fa+=1;let l=null;const c={close:()=>{if(l){const I=l;l=null,Promise.resolve().then(()=>I.unmount())}r.remove(),c.closed=!0},key:Fa,closed:!1};let u={...e.style};if(Array.isArray(i)&&i.length===2){const[I,N]=i;u={left:I,top:N,...u,position:"relative"}}return new Promise(I=>{l=ea.createRoot(r),l.render(M.jsx(zi,{...e,theme:t,style:u,onClose:N=>{o(N),c.close()},children:a},Fa)),n.appendChild(r),Zn.push(c),I(c)})}function md(t){Fn("info",t)}function Od(t){Fn("warn",t)}function wd(t){Fn("success",t)}function Ud(t){Fn("error",t)}function zd(){Zn==null||Zn.forEach(t=>t.close())}const vd={info:md,warn:Od,success:wd,error:Ud,closeAll:zd},qo="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjgiIGhlaWdodD0iMjgiIHZpZXdCb3g9IjAgMCAyOCAyOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTAuNzYwOTYxIDkuMzMxNTRDMC4wMDEyMzUwNyA3LjEzMzcxIDAuOTYyOTY4IDQuNzczMjMgMi44MzM0NSAzLjM5MDk3QzQuMjUxNTIgMi4zNDMwNCA1LjY3NjAzIDEuMjg0NyA2LjQ4ODg5IDAuNjgwMTI0QzYuODc1MTUgMC4zOTI4MzcgNy40MTY2MSAwLjQ1NTY4IDcuNzI4NDEgMC44MjIzOTdMMTIuMTU4IDYuMDMyMTRDMTIuNDQ3NiA2LjM3Mjc1IDEyLjQ0NzcgNi44NzI5NSAxMi4xNTgzIDcuMjEzNzNMOS40NDIyIDEwLjQxMTlDOS4xOTQ5NiAxMC43MDMxIDkuMTUzNz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fMTMxXzE0NDkiIHJlc3VsdD0ic2hhcGUiLz4KPC9maWx0ZXI+CjwvZGVmcz4KPC9zdmc+Cg==",kd="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xLjkxNjUgNy41NjkzN1Y2LjgzODg3SDMuNDE2NVY3LjU2OTM3QzMuNDE2NSAxMC4xMDA3IDUuNDY4NTMgMTIuMTUyNyA3Ljk5OTg0IDEyLjE1MjdDMTAuNTMxMSAxMi4xNTI3IDEyLjU4MzIgMTAuMTAwNyAxMi41ODMyIDcuNTY5MzZWNi44Mzg4N0gxNC4wODMyVjcuNTY5MzZDMTQuMDgzMiAxMC42NzUxIDExLjc1NTcgMTMuMjM3MyA4Ljc0OTg4IDEzLjYwNjlWMTQuOTA4OUg3LjI0OTg4VjEzLjYwNjlDNC4yNDM5OCAxMy4yMzc0IDEuOTE2NSAxMC42NzUyIDEuOTE2NSA3LjU2OTM3WiIgZmlsbD0iI0FEQURBRCIvPgo8cmVjdCB4PSI0LjY2Njc1IiB5PSIxLjA5MDgyIiB3aWR0aD0iNi42NjY2NyIgaGVpZ2h0PSI5Ljg5NjkiIHJ4PSIzLjMzMzMzIiBmaWxsPSIjQURBREFEIi8+Cjwvc3ZnPgo=",Me={"floating-window-pc-groupcall-container":"_floating-window-pc-groupcall-container_1es4b_1","click-overlay":"_click-overlay_1es4b_1","call-status":"_call-status_1es4b_1","video-stream":"_video-stream_1es4b_1",hidden:"_hidden_1es4b_1","audio-stream":"_audio-stream_1es4b_1",video:"_video_1es4b_1",earphone:"_earphone_1es4b_1",info:"_info_1es4b_1","device-status":"_device-status_1es4b_1",icon:"_icon_1es4b_1",camera:"_camera_1es4b_1",micphone:"_micphone_1es4b_1","floating-window-h5-groupcall-container":"_floating-window-h5-groupcall-container_1es4b_1"};function Vd(t){const{hasVideo:e,clickable:n}=t,{isGroupCall:a,callStatus:i}=d.useContext(P),{isFloat:o}=d.useContext(P),{localUserInfo:{isAudioAvailable:r,isVideoAvailable:l}}=d.useContext(ge),c=Na(),{t:u}=ae(),I=l?bd:_d,N=r?xd:kd,A=()=>{const D=v([Me["video-stream"]]);return M.jsxs(M.Fragment,{children:[M.jsx("div",{className:D,id:"float"}),!e&&M.jsxs("div",{className:Me["audio-stream"],children:[M.jsx("div",{className:Me.earphone,children:M.jsx(F,{url:qo})}),M.jsx("div",{className:Me.info,children:i===b.CONNECTED?c:u("wait to be called")})]})]})},T=v([{[Me["floating-window-h5-groupcall-container"]]:!U.isPC,[Me["floating-window-pc-groupcall-container"]]:U.isPC}]);return M.jsxs("div",{onClick:()=>n&&V.toggleMinimize(),className:T,children:[M.jsx("div",{className:Me["click-overlay"]}),M.jsx("div",{className:v([Me["call-status"],{[Me.float]:o,[Me.video]:e}]),children:A()}),a&&o&&M.jsxs("div",{className:Me["device-status"],children:[M.jsx("div",{className:v([Me.icon,Me.camera]),children:M.jsx(F,{url:I})}),M.jsx("div",{className:v([Me.icon,Me.micphone]),children:M.jsx(F,{url:N})})]})]})}const De={"floating-window-h5-singlecall-container":"_floating-window-h5-singlecall-container_1wchz_1","audio-call":"_audio-call_1wchz_1","click-overlay":"_click-overlay_1wchz_1","call-status":"_call-status_1wchz_1",video:"_video_1wchz_1",info:"_info_1wchz_1","video-stream":"_video-stream_1wchz_1",hidden:"_hidden_1wchz_1","audio-stream":"_audio-stream_1wchz_1",earphone:"_earphone_1wchz_1",tip:"_tip_1wchz_1","floating-window-pc-singlecall-container":"_floating-window-pc-singlecall-container_1wchz_1"};function Qd(t){const{hasVideo:e,clickable:n}=t,{callStatus:a,callType:i}=d.useContext(P),{isFloat:o}=d.useContext(P),r=Na(),{t:l}=ae(),c=()=>{const I=v([De["video-stream"],{[De.hidden]:!e}]);return M.jsxs(M.Fragment,{children:[M.jsx("div",{className:I,id:"float"}),e?M.jsx("div",{className:De.info,children:a===b.CONNECTED?"":l("wait to be called")}):M.jsxs("div",{className:De["audio-stream"],children:[M.jsx("div",{className:De.earphone,children:M.jsx(F,{url:qo})}),M.jsx("div",{className:De.info,children:a===b.CONNECTED?r:l("wait to be called")})]})]})},u=v([{[De["floating-window-h5-singlecall-container"]]:!U.isPC,[De["floating-window-pc-singlecall-container"]]:U.isPC,[De["audio-call"]]:i===G.AUDIO}]);return M.jsxs("div",{onClick:()=>{n&&V.toggleMinimize()},className:u,children:[M.jsx("div",{className:De["click-overlay"]}),M.jsx("div",{className:v([[De["call-status"]],{[De.float]:o,[De.video]:e}]),children:c()})]})}const Tt={touch:{start:"onTouchStart",move:"touchmove",stop:"touchend"},mouse:{start:"onMouseDown",move:"mousemove",stop:"mouseup"}}[U.isH5?"touch":"mouse"];function er(t){return U.isH5&&(t=t.touches[0]),{clientX:t.clientX,clientY:t.clientY}}function Bd(t){var y;const{nodeRef:e,children:n,onMoveStart:a,onMoveEnd:i,onPositionChange:o,initialPosition:r={left:"0px",top:"0px"}}=t,l=d.useRef(!1),c=d.useRef({}),u=d.useRef({left:0,top:0}),[I,N]=d.useState(r),[A,T]=d.useState();d.useEffect(()=>()=>{e.current&&(e.current.ownerDocument.removeEventListener(Tt.move,L),e.current.ownerDocument.removeEventListener(Tt.stop,S))},[e.current]);const D=j=>{var me,q;const{clientX:z,clientY:O}=er(j),Q=z-((me=e.current)==null?void 0:me.getBoundingClientRect().left),B=O-((q=e.current)==null?void 0:q.getBoundingClientRect().top),H=document.documentElement.clientWidth,se=document.documentElement.clientHeight,$=e.current.offsetWidth,Se=e.current.offsetHeight;return{oW:Q,oH:B,htmlWidth:H,htmlHeight:se,bWidth:$,bHeight:Se}},h=j=>{const{clientX:z,clientY:O}=er(j),Q=z-c.current.oW,B=O-c.current.oH;return{left:Q,top:B}},C=j=>{l.current=!0,c.current=D(j),u.current=h(j),N({left:"0px",top:"0px"}),e.current.ownerDocument.addEventListener(Tt.move,L),e.current.ownerDocument.addEventListener(Tt.stop,S)},p=j=>{a==null||a();let{left:z,top:O}=h(j);z<0?z=0:z>c.current.htmlWidth-c.current.bWidth&&(z=c.current.htmlWidth-c.current.bWidth),O<0?O=0:O>c.current.htmlHeight-c.current.bHeight&&(O=c.current.htmlHeight-c.current.bHeight),u.current={left:z,top:O},o==null||o({left:z,top:O}),T({left:z,top:O})},L=j=>{l.current&&p(j)},S=j=>{l.current=!1;let z=u.current.left;z<(c.current.htmlWidth-c.current.bWidth)/2?z=0:z=c.current.htmlWidth-c.current.bWidth,u.current=U.isH5?{left:z,top:u.current.top}:{left:u.current.left,top:u.current.top},setTimeout(()=>{i==null||i()},0),e.current.ownerDocument.removeEventListener(Tt.move,L),e.current.ownerDocument.removeEventListener(Tt.stop,S)},f=d.useMemo(()=>`translate(${u.current.left}px, ${u.current.top}px)`,[u.current]);return M.jsx(M.Fragment,{children:d.cloneElement(n,{style:{...((y=n==null?void 0:n.props)==null?void 0:y.style)||{},position:"absolute",zIndex:999,touchAction:"none",...I,transform:f,userSelect:"none",WebkitUserSelect:"none"},[Tt.start]:C})})}function Yd(t){const{isGroupCall:e}=d.useContext(P),n=d.useRef(void 0),[a,i]=d.useState(!0),o=t.show?"":"hidden";return M.jsx(Bd,{nodeRef:n,initialPosition:{right:"0px",top:"100px"},onMoveStart:()=>i(!1),onMoveEnd:()=>i(!0),children:M.jsx("div",{ref:n,style:{visibility:o},children:e?M.jsx(Vd,{clickable:a,...t}):M.jsx(Qd,{clickable:a,...t})})})}function tr(){const t=navigator.userAgent,e=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(t);return{userAgent:t,platformCode:e?2:1}}function nr(){let t=sessionStorage.getItem("uikit_session_id");return t||(t=`session_${Date.now()}_${Math.random().toString(36).substring(2,11)}`,sessionStorage.setItem("uikit_session_id",t)),t}function ar(t){try{const e=V.getTim();if(e&&typeof e.callExperimentalAPI=="function"){const n={id:t.modalId,title:t.title,type:t.type,content:t.content};e.callExperimentalAPI("reportModalView",JSON.stringify(n))}}catch{console.info("[UIKitModal]",t)}}const ir=(()=>{let t={modalData:null,activeModalId:null,modalOpenTime:null};const e=new Set,n=()=>{e.forEach(r=>r())},a=r=>{const l=Date.now(),{userAgent:c,platformCode:u}=tr();t={modalData:r,activeModalId:r.id,modalOpenTime:l},ar({eventType:1,modalId:r.id,title:r.title,type:r.type,content:r.content,timestamp:l,sessionId:nr(),platformCode:u,userAgent:c}),n()},i=(r="confirm")=>{const{activeModalId:l,modalOpenTime:c,modalData:u}=t;if(l===null||!c||!u)return;const I=Date.now(),N=I-c,{userAgent:A,platformCode:T}=tr(),D={confirm:1,cancel:2,timeout:3,mask:2};ar({eventType:2,modalId:l,title:u.title,type:u.type,content:u.content,timestamp:I,stayDuration:N,closeReasonCode:D[r],sessionId:nr(),platformCode:T,userAgent:A}),t={modalData:null,activeModalId:null,modalOpenTime:null},n()},o=()=>({...t,openModal:a,closeModal:i,getState:o});return{getState:o,openModal:a,closeModal:i,subscribe:r=>(e.add(r),()=>e.delete(r))}})(),ie={"uikit-modal-mask":"_uikit-modal-mask_w3pbd_1","uikit-modal-default":"_uikit-modal-default_w3pbd_14","uikit-modal-container":"_uikit-modal-container_w3pbd_20","uikit-modal-header":"_uikit-modal-header_w3pbd_31","uikit-modal-type-icon":"_uikit-modal-type-icon_w3pbd_38","uikit-modal-close-icon":"_uikit-modal-close-icon_w3pbd_42","uikit-modal-title":"_uikit-modal-title_w3pbd_47","uikit-modal-body":"_uikit-modal-body_w3pbd_55","uikit-modal-link":"_uikit-modal-link_w3pbd_65","uikit-modal-footer":"_uikit-modal-footer_w3pbd_74","uikit-modal-btn":"_uikit-modal-btn_w3pbd_82","uikit-modal-btn-cancel":"_uikit-modal-btn-cancel_w3pbd_99","uikit-modal-btn-confirm":"_uikit-modal-btn-confirm_w3pbd_107","uikit-modal-container-mobile":"_uikit-modal-container-mobile_w3pbd_121"};let gn=null,Ze=null,Pn=null;const Rd=/^(https?:\/\/)?([\da-z.-]+)\.([a-z.]{2,6})([/\w .-]*)*\/?$/i,or=/(https?:\/\/[^\s]+)/g;function Wn(t){const e=document.createElement("div");return e.textContent=t,e.innerHTML}function Gd(t){const n=new DOMParser().parseFromString(t,"text/html");return n.querySelectorAll("a").forEach(i=>{if(i.getAttribute("href")){i.setAttribute("target","_blank"),i.setAttribute("rel","noopener noreferrer"),i.classList.add(ie["uikit-modal-link"]);const r=i.textContent||"";i.innerHTML=`<span style="padding: 0 0.2em; display: inline-block; color: var(--text-color-link)">${r}</span>`}}),n.body.innerHTML}const rr={success:()=>M.jsx("span",{style:{color:"green",marginRight:"6px"},children:"✓"}),info:()=>M.jsx("span",{style:{color:"#1890ff",marginRight:"6px"},children:"ℹ"}),error:()=>M.jsx("span",{style:{color:"red",marginRight:"6px"},children:"✕"}),warning:()=>M.jsx("span",{style:{color:"#faad14",marginRight:"6px"},children:"⚠"})},Zd=()=>{const{hostname:t,href:e}=window.location;return!!(t==="localhost"||t==="127.0.0.1"||t.startsWith("192.168.")||e.startsWith("https://web.sdk.qcloud.com/trtc/livekit"))},sr=()=>{gn&&(gn.unmount(),gn=null),Ze&&Ze.parentNode&&(Ze.parentNode.removeChild(Ze),Ze=null),Pn=null};function Fd(t){const{type:e="info",title:n="",content:a="",visible:i=!1,onConfirm:o,onCancel:r}=t,l=we("reject"),c=we("accept"),u=yn?`${ie["uikit-modal-default"]} ${ie["uikit-modal-container"]}`:`${ie["uikit-modal-default"]} ${ie["uikit-modal-container"]} ${ie["uikit-modal-container-mobile"]}`,I=d.useMemo(()=>{if(!a||typeof a!="string")return a;if(Rd.test(a.trim())){const T=a.trim(),D=T.startsWith("http")?T:`https://${T}`;return`<a href="${Wn(D)}" target="_blank" rel="noopener noreferrer" class="${ie["uikit-modal-link"]}">${Wn(T)}</a>`}return a.includes("<a ")||a.includes("<a>")?Gd(a):or.test(a)?Wn(a).replace(or,T=>`<a href="${T}" target="_blank" rel="noopener noreferrer" class="${ie["uikit-modal-link"]}">${T}</a>`):Wn(a)},[a]),N=rr[e]||rr.info;if(!i)return null;const A=M.jsx("div",{className:ie["uikit-modal-mask"],onClick:o,children:M.jsxs("div",{className:u,onClick:T=>T.stopPropagation(),children:[M.jsxs("div",{className:ie["uikit-modal-header"],children:[M.jsx(N,{}),M.jsx("span",{className:ie["uikit-modal-title"],children:n})]}),M.jsx("div",{className:ie["uikit-modal-body"],dangerouslySetInnerHTML:typeof I=="string"?{__html:I}:void 0,children:typeof I!="string"?I:null}),M.jsxs("div",{className:ie["uikit-modal-footer"],children:[M.jsx("button",{className:`${ie["uikit-modal-btn"]} ${ie["uikit-modal-btn-cancel"]}`,onClick:r,children:l||"Cancel"}),M.jsx("button",{className:`${ie["uikit-modal-btn"]} ${ie["uikit-modal-btn-confirm"]}`,onClick:o,children:c||"Confirm"})]})]})});return qn.createPortal(A,document.body)}function Pd(t){const{options:e}=t,[n,a]=d.useState(!0),i=d.useCallback(l=>{const{closeModal:c}=ir.getState();a(!1),c(l),Pn&&Pn({action:l}),setTimeout(sr,100)},[]),o=d.useCallback(()=>{var l;(l=e.onConfirm)==null||l.call(e),i("confirm")},[e,i]),r=d.useCallback(()=>{var l;(l=e.onCancel)==null||l.call(e),i("cancel")},[e,i]);return d.useEffect(()=>{const l=c=>{c.key==="Escape"&&r()};return document.addEventListener("keydown",l),()=>document.removeEventListener("keydown",l)},[r]),M.jsx(Fd,{...e,visible:n,onConfirm:o,onCancel:r})}const Wd=t=>new Promise(e=>{sr();const{openModal:n}=ir.getState();if(n({id:t.id,title:t.title,content:t.content,type:t.type,...t.onConfirm&&{onConfirm:t.onConfirm},...t.onCancel&&{onCancel:t.onCancel}}),!Zd()){e({action:"confirm"});return}Pn=e,Ze=document.createElement("div"),Ze.id="uikit-modal-root",document.body.appendChild(Ze),gn=ea.createRoot(Ze),gn.render(d.createElement(Pd,{options:t}))}),Hd={openModal:t=>Wd(t)},Pa={"tuicallkit-container":"_tuicallkit-container_h8knf_98",float:"_float_h8knf_105",mobile:"_mobile_h8knf_109"};function Nn(t){const{style:e,className:n,allowedMinimized:a=!0,allowedFullScreen:i=!0,videoDisplayMode:o=Cn.COVER,videoResolution:r=pn.RESOLUTION_720P,beforeCalling:l,afterCalling:c,onMinimized:u}=t,[I,N]=d.useState(E.getData(g.CALL,s.CALL_STATUS)),[A,T]=d.useState(E.getData(g.CALL,s.IS_GROUP)),[D,h]=d.useState(E.getData(g.CALL,s.CALLER_USER_INFO)),[C,p]=d.useState(E.getData(g.CALL,s.LOCAL_USER_INFO)),[L,S]=d.useState(E.getData(g.CALL,s.REMOTE_USER_INFO_LIST)),[f,y]=d.useState(E.getData(g.CALL,s.CALL_MEDIA_TYPE)),[j,z]=d.useState(E.getData(g.CALL,s.CALL_ROLE)),[O,Q]=d.useState(E.getData(g.CALL,s.IS_EAR_PHONE)),[B,H]=d.useState(!1),[se,$]=d.useState(E.getData(g.CALL,s.ENABLE_VIRTUAL_BACKGROUND)),[Se,me]=d.useState(E.getData(g.CALL,s.IS_SHOW_ENABLE_VIRTUAL_BACKGROUND)),[q,Te]=d.useState(E.getData(g.CALL,s.IS_MUTE_SPEAKER)),Qt=Xo(),Je=d.useMemo(()=>({callStatus:I,callRole:j,callType:f,isEarPhone:O,isGroupCall:A,isFloat:B,allowedMinimized:a,allowedFullScreen:i,enableVirtualBackground:se,isShowEnableVirtualBackground:Se,isMuteSpeaker:q}),[I,j,f,O,A,B,i,se,Se,q]),Bt=d.useMemo(()=>({localUserInfo:C,remoteList:L}),[C,L]),[An,pt]=d.useState(E.getData(g.CALL,s.CUSTOM_UI_CONFIG)),[ve,ot]=d.useState({t:E.getData(g.CALL,s.TRANSLATE)}),ke=v([n,Pa["tuicallkit-container"],{[Pa.mobile]:!U.isPC,[Pa.float]:B}]),Lt=_=>{N(_)},Yt=_=>{T(_)},Xe=_=>{h(_)},Dn=_=>{p(_)},Wa=_=>{S(_)},Tn=_=>{y(_)},Ha=_=>{z(_)},Hn=_=>{Q(_)},Ja=_=>{var En;const{content:$e,type:$n="info"}=_||{};$e&&vd[$n]({content:(En=ve==null?void 0:ve.t)==null?void 0:En.call(ve,$e)})},Jn=_=>{H(_)},Xn=_=>{$(_)},Kn=_=>{me(_)},Xa=_=>{pt(_)},Ka=_=>{Te(_)},Ke=_=>{ot({t:_})},Rt=_=>{_&&Hd.openModal({id:_==null?void 0:_.id,title:_==null?void 0:_.title,content:_==null?void 0:_.content,type:"error"})},hn={[s.CALL_STATUS]:Lt,[s.IS_GROUP]:Yt,[s.CALLER_USER_INFO]:Xe,[s.LOCAL_USER_INFO_EXCLUDE_VOLUMN]:Dn,[s.REMOTE_USER_INFO_EXCLUDE_VOLUMN_LIST]:Wa,[s.CALL_MEDIA_TYPE]:Tn,[s.CALL_ROLE]:Ha,[s.IS_EAR_PHONE]:Hn,[s.TOAST_INFO]:Ja,[s.CUSTOM_UI_CONFIG]:Xa,[s.ENABLE_VIRTUAL_BACKGROUND]:Xn,[s.IS_SHOW_ENABLE_VIRTUAL_BACKGROUND]:Kn,[s.IS_MUTE_SPEAKER]:Ka,[s.TRANSLATE]:Ke,[s.MODAL_ERROR]:Rt};return d.useLayoutEffect(()=>{var $e;const _=($e=document.documentElement.dataset)==null?void 0:$e.uikitTheme;["light","dark"].indexOf(_)===-1&&(document.documentElement.dataset.uikitTheme="light")},[]),d.useEffect(()=>(E.watch(g.CALL,hn,{notifyRangeWhenWatch:s.MYSELF}),E.watch(g.CALL,{[s.IS_MINIMIZED]:Jn}),()=>{E.unwatch(g.CALL,{...hn,[s.IS_MINIMIZED]:Jn})}),[]),d.useEffect(()=>{V.enableFloatWindow(a),V.setVideoDisplayMode(o),V.setVideoResolution(r),V.setCallback({beforeCalling:l,afterCalling:c,onMinimized:u})},[l,c,V,o,r,a,u]),I!==b.IDLE&&M.jsx(ge.Provider,{value:Bt,children:M.jsx(Oi.Provider,{value:D,children:M.jsx(P.Provider,{value:Je,children:M.jsx(Ht.Provider,{value:An,children:M.jsxs(Ui.Provider,{value:ve,children:[M.jsxs("div",{style:{...e},className:ke,id:"tuicallkit-id",children:[!A&&M.jsx(Ad,{}),A&&M.jsx(Ld,{}),M.jsx(yd,{}),M.jsx(fd,{})]}),M.jsx(nn,{attach:"body",children:M.jsx(Yd,{show:B,hasVideo:A?Qt.length!==0:f===G.VIDEO,isAudioAvailable:C.isAudioAvailable})})]})})})})})}const lr=t=>(t.component("TUICallKit",{server:V}),V.bindTUICore(t),Nn),cr=t=>{t.component("TUICallKit",Nn),console.log("TUICallKit&mini installed",t)};Nn.plugin=lr,Nn.install=cr;const Jd={AUDIO_CALL:1,VIDEO_CALL:2},Xd="4.5.8";x.CallMediaType=G,x.CallMessage=fs,x.CallRole=X,x.FeatureButton=lt,x.LayoutMode=Zt,x.NAME=s,x.STATUS=ne,x.StoreName=g,x.TUICallKit=Nn,x.TUICallKitAPI=V,x.TUICallType=Jd,x.TUIGlobal=U,x.TUIStore=E,x.Version=Xd,x.VideoDisplayMode=Cn,x.VideoResolution=pn,x.install=cr,x.plugin=lr,x.t=we,x.uiDesign=Qe,Object.defineProperty(x,Symbol.toStringTag,{value:"Module"})});