trtc-cloud-js-sdk 2.9.4-beta.2 → 2.9.4-beta.21
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.
- package/package.json +2 -2
- package/trtc-cloud-js-sdk.js +1 -1
package/trtc-cloud-js-sdk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,A){"object"==typeof exports&&"undefined"!=typeof module?A(exports,require("trtc-sdk-v5"),require("trtc-sdk-v5/plugins/video-effect/virtual-background"),require("events")):"function"==typeof define&&define.amd?define(["exports","trtc-sdk-v5","trtc-sdk-v5/plugins/video-effect/virtual-background","events"],A):A((e="undefined"!=typeof globalThis?globalThis:e||self).TRTCCloud={},e.TRTC,e.virtualBackground,e.events)}(this,(function(e,A,t,i){function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=o(A),n=function(e,A){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,A){e.__proto__=A}||function(e,A){for(var t in A)Object.prototype.hasOwnProperty.call(A,t)&&(e[t]=A[t])},n(e,A)};var s=function(){return s=Object.assign||function(e){for(var A,t=1,i=arguments.length;t<i;t++)for(var o in A=arguments[t])Object.prototype.hasOwnProperty.call(A,o)&&(e[o]=A[o]);return e},s.apply(this,arguments)};function a(e,A,t,i){return new(t||(t=Promise))((function(o,r){function n(e){try{a(i.next(e))}catch(A){r(A)}}function s(e){try{a(i.throw(e))}catch(A){r(A)}}function a(e){var A;e.done?o(e.value):(A=e.value,A instanceof t?A:new t((function(e){e(A)}))).then(n,s)}a((i=i.apply(e,A||[])).next())}))}function g(e,A){var t,i,o,r,n={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(s){return function(a){return function(s){if(t)throw new TypeError("Generator is already executing.");for(;r&&(r=0,s[0]&&(n=0)),n;)try{if(t=1,i&&(o=2&s[0]?i.return:s[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,s[1])).done)return o;switch(i=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return n.label++,{value:s[1],done:!1};case 5:n.label++,i=s[1],s=[0];continue;case 7:s=n.ops.pop(),n.trys.pop();continue;default:if(!(o=n.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){n=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){n.label=s[1];break}if(6===s[0]&&n.label<o[1]){n.label=o[1],o=s;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(s);break}o[2]&&n.ops.pop(),n.trys.pop();continue}s=A.call(e,n)}catch(a){s=[6,a],i=0}finally{t=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,a])}}}function c(e,A,t){if(t||2===arguments.length)for(var i,o=0,r=A.length;o<r;o++)!i&&o in A||(i||(i=Array.prototype.slice.call(A,0,o)),i[o]=A[o]);return e.concat(i||Array.prototype.slice.call(A))}var C="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function u(e,A){return e(A={exports:{}},A.exports),A.exports}var I,d,l,h,B,E,Q,p,f=u((function(e){var A=Object.prototype.hasOwnProperty,t="~";function i(){}function o(e,A,t){this.fn=e,this.context=A,this.once=t||!1}function r(e,A,i,r,n){if("function"!=typeof i)throw new TypeError("The listener must be a function");var s=new o(i,r||e,n),a=t?t+A:A;return e._events[a]?e._events[a].fn?e._events[a]=[e._events[a],s]:e._events[a].push(s):(e._events[a]=s,e._eventsCount++),e}function n(e,A){0==--e._eventsCount?e._events=new i:delete e._events[A]}function s(){this._events=new i,this._eventsCount=0}Object.create&&(i.prototype=Object.create(null),(new i).__proto__||(t=!1)),s.prototype.eventNames=function(){var e,i,o=[];if(0===this._eventsCount)return o;for(i in e=this._events)A.call(e,i)&&o.push(t?i.slice(1):i);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},s.prototype.listeners=function(e){var A=t?t+e:e,i=this._events[A];if(!i)return[];if(i.fn)return[i.fn];for(var o=0,r=i.length,n=new Array(r);o<r;o++)n[o]=i[o].fn;return n},s.prototype.listenerCount=function(e){var A=t?t+e:e,i=this._events[A];return i?i.fn?1:i.length:0},s.prototype.emit=function(e,A,i,o,r,n){var s=t?t+e:e;if(!this._events[s])return!1;var a,g,c=this._events[s],C=arguments.length;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),C){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,A),!0;case 3:return c.fn.call(c.context,A,i),!0;case 4:return c.fn.call(c.context,A,i,o),!0;case 5:return c.fn.call(c.context,A,i,o,r),!0;case 6:return c.fn.call(c.context,A,i,o,r,n),!0}for(g=1,a=new Array(C-1);g<C;g++)a[g-1]=arguments[g];c.fn.apply(c.context,a)}else{var u,I=c.length;for(g=0;g<I;g++)switch(c[g].once&&this.removeListener(e,c[g].fn,void 0,!0),C){case 1:c[g].fn.call(c[g].context);break;case 2:c[g].fn.call(c[g].context,A);break;case 3:c[g].fn.call(c[g].context,A,i);break;case 4:c[g].fn.call(c[g].context,A,i,o);break;default:if(!a)for(u=1,a=new Array(C-1);u<C;u++)a[u-1]=arguments[u];c[g].fn.apply(c[g].context,a)}}return!0},s.prototype.on=function(e,A,t){return r(this,e,A,t,!1)},s.prototype.once=function(e,A,t){return r(this,e,A,t,!0)},s.prototype.removeListener=function(e,A,i,o){var r=t?t+e:e;if(!this._events[r])return this;if(!A)return n(this,r),this;var s=this._events[r];if(s.fn)s.fn!==A||o&&!s.once||i&&s.context!==i||n(this,r);else{for(var a=0,g=[],c=s.length;a<c;a++)(s[a].fn!==A||o&&!s[a].once||i&&s[a].context!==i)&&g.push(s[a]);g.length?this._events[r]=1===g.length?g[0]:g:n(this,r)}return this},s.prototype.removeAllListeners=function(e){var A;return e?(A=t?t+e:e,this._events[A]&&n(this,A)):(this._events=new i,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=t,s.EventEmitter=s,e.exports=s}));e.TRTCVideoResolution=void 0,(I=e.TRTCVideoResolution||(e.TRTCVideoResolution={}))[I.TRTCVideoResolution_120_120=1]="TRTCVideoResolution_120_120",I[I.TRTCVideoResolution_160_160=3]="TRTCVideoResolution_160_160",I[I.TRTCVideoResolution_270_270=5]="TRTCVideoResolution_270_270",I[I.TRTCVideoResolution_480_480=7]="TRTCVideoResolution_480_480",I[I.TRTCVideoResolution_160_120=50]="TRTCVideoResolution_160_120",I[I.TRTCVideoResolution_240_180=52]="TRTCVideoResolution_240_180",I[I.TRTCVideoResolution_280_210=54]="TRTCVideoResolution_280_210",I[I.TRTCVideoResolution_320_240=56]="TRTCVideoResolution_320_240",I[I.TRTCVideoResolution_400_300=58]="TRTCVideoResolution_400_300",I[I.TRTCVideoResolution_480_360=60]="TRTCVideoResolution_480_360",I[I.TRTCVideoResolution_640_480=62]="TRTCVideoResolution_640_480",I[I.TRTCVideoResolution_960_720=64]="TRTCVideoResolution_960_720",I[I.TRTCVideoResolution_160_90=100]="TRTCVideoResolution_160_90",I[I.TRTCVideoResolution_256_144=102]="TRTCVideoResolution_256_144",I[I.TRTCVideoResolution_320_180=104]="TRTCVideoResolution_320_180",I[I.TRTCVideoResolution_480_270=106]="TRTCVideoResolution_480_270",I[I.TRTCVideoResolution_640_360=108]="TRTCVideoResolution_640_360",I[I.TRTCVideoResolution_960_540=110]="TRTCVideoResolution_960_540",I[I.TRTCVideoResolution_1280_720=112]="TRTCVideoResolution_1280_720",I[I.TRTCVideoResolution_1920_1080=114]="TRTCVideoResolution_1920_1080",e.TRTCVideoStreamType=void 0,(d=e.TRTCVideoStreamType||(e.TRTCVideoStreamType={}))[d.TRTCVideoStreamTypeBig=0]="TRTCVideoStreamTypeBig",d[d.TRTCVideoStreamTypeSmall=1]="TRTCVideoStreamTypeSmall",d[d.TRTCVideoStreamTypeSub=2]="TRTCVideoStreamTypeSub",e.TRTCVideoFillMode=void 0,(l=e.TRTCVideoFillMode||(e.TRTCVideoFillMode={}))[l.TRTCVideoFillMode_Fill=0]="TRTCVideoFillMode_Fill",l[l.TRTCVideoFillMode_Fit=1]="TRTCVideoFillMode_Fit",e.TRTCVideoMirrorType=void 0,(h=e.TRTCVideoMirrorType||(e.TRTCVideoMirrorType={}))[h.TRTCVideoMirrorType_Auto=0]="TRTCVideoMirrorType_Auto",h[h.TRTCVideoMirrorType_Enable=1]="TRTCVideoMirrorType_Enable",h[h.TRTCVideoMirrorType_Disable=2]="TRTCVideoMirrorType_Disable",e.TRTCBeautyStyle=void 0,(B=e.TRTCBeautyStyle||(e.TRTCBeautyStyle={}))[B.TRTCBeautyStyleSmooth=0]="TRTCBeautyStyleSmooth",B[B.TRTCBeautyStyleNature=1]="TRTCBeautyStyleNature",e.TRTCAppScene=void 0,(E=e.TRTCAppScene||(e.TRTCAppScene={}))[E.TRTCAppSceneVideoCall=0]="TRTCAppSceneVideoCall",E[E.TRTCAppSceneLIVE=1]="TRTCAppSceneLIVE",E[E.TRTCAppSceneAudioCall=2]="TRTCAppSceneAudioCall",E[E.TRTCAppSceneVoiceChatRoom=3]="TRTCAppSceneVoiceChatRoom",e.TRTCRoleType=void 0,(Q=e.TRTCRoleType||(e.TRTCRoleType={}))[Q.TRTCRoleAnchor=20]="TRTCRoleAnchor",Q[Q.TRTCRoleAudience=21]="TRTCRoleAudience",e.TRTCAudioQuality=void 0,(p=e.TRTCAudioQuality||(e.TRTCAudioQuality={}))[p.TRTCAudioQualitySpeech=1]="TRTCAudioQualitySpeech",p[p.TRTCAudioQualityDefault=2]="TRTCAudioQualityDefault",p[p.TRTCAudioQualityMusic=3]="TRTCAudioQualityMusic";var T,v,y=function(e,A,t,i,o){void 0===e&&(e=""),void 0===A&&(A=""),void 0===t&&(t=""),void 0===i&&(i=""),void 0===o&&(o=""),this.deviceId=e,this.deviceName=A,this.kind=t,this.label=i,this.groupId=o};e.TRTCDeviceState=void 0,(T=e.TRTCDeviceState||(e.TRTCDeviceState={}))[T.TRTCDeviceStateAdd=0]="TRTCDeviceStateAdd",T[T.TRTCDeviceStateRemove=1]="TRTCDeviceStateRemove",T[T.TRTCDeviceStateActive=2]="TRTCDeviceStateActive",e.TRTCDeviceType=void 0,(v=e.TRTCDeviceType||(e.TRTCDeviceType={}))[v.TRTCDeviceTypeUnknow=-1]="TRTCDeviceTypeUnknow",v[v.TRTCDeviceTypeMic=0]="TRTCDeviceTypeMic",v[v.TRTCDeviceTypeSpeaker=1]="TRTCDeviceTypeSpeaker",v[v.TRTCDeviceTypeCamera=2]="TRTCDeviceTypeCamera";var m,R=function(A,t,i,o,r,n,s,a,g,c,C){void 0===A&&(A=0),void 0===t&&(t=""),void 0===i&&(i=""),void 0===o&&(o=0),void 0===r&&(r=""),void 0===n&&(n=e.TRTCRoleType.TRTCRoleAnchor),void 0===s&&(s=null),void 0===g&&(g=null),void 0===c&&(c=null),void 0===C&&(C=30),this.sdkAppId=A,this.userId=t,this.userSig=i,this.roomId=o,this.strRoomId=r,this.role=n,this.privateMapKey=s,this.streamId=g,this.userDefineRecordId=c,this.frameWorkType=C},w=function(A,t,i,o){void 0===A&&(A=e.TRTCVideoResolution.TRTCVideoResolution_640_360),void 0===t&&(t=e.TRTCVideoResolutionMode.TRTCVideoResolutionModeLandscape),void 0===i&&(i=15),void 0===o&&(o=550),this.videoResolution=A,this.resMode=t,this.videoFps=i,this.videoBitrate=o};e.TRTCVideoRotation=void 0,(m=e.TRTCVideoRotation||(e.TRTCVideoRotation={}))[m.TRTCVideoRotation0=0]="TRTCVideoRotation0",m[m.TRTCVideoRotation90=1]="TRTCVideoRotation90",m[m.TRTCVideoRotation180=2]="TRTCVideoRotation180",m[m.TRTCVideoRotation270=3]="TRTCVideoRotation270";var D,S=function(A,t,i){void 0===A&&(A=e.TRTCVideoRotation.TRTCVideoRotation0),void 0===t&&(t=e.TRTCVideoFillMode.TRTCVideoFillMode_Fit),void 0===i&&(i=e.TRTCVideoMirrorType.TRTCVideoMirrorType_Disable),this.rotation=A,this.fillMode=t,this.mirrorType=i};e.TRTCQuality=void 0,(D=e.TRTCQuality||(e.TRTCQuality={}))[D.TRTCQuality_Unknown=0]="TRTCQuality_Unknown",D[D.TRTCQuality_Excellent=1]="TRTCQuality_Excellent",D[D.TRTCQuality_Good=2]="TRTCQuality_Good",D[D.TRTCQuality_Poor=3]="TRTCQuality_Poor",D[D.TRTCQuality_Bad=4]="TRTCQuality_Bad",D[D.TRTCQuality_Vbad=5]="TRTCQuality_Vbad",D[D.TRTCQuality_Down=6]="TRTCQuality_Down";var M,b,L,N=function(A,t){void 0===A&&(A=""),void 0===t&&(t=e.TRTCQuality.TRTCQuality_Unknown),this.userId=A,this.quality=t},_=function(e,A){void 0===e&&(e=""),void 0===A&&(A=0),this.userId=e,this.volume=A},k=function(e,A,t){void 0===e&&(e=0),void 0===A&&(A=0),void 0===t&&(t=null),this.appId=e,this.bizId=A,this.url=t},G=function(A,t,i,o,r,n,s){void 0===A&&(A=0),void 0===t&&(t=0),void 0===i&&(i=0),void 0===o&&(o=0),void 0===n&&(n=0),void 0===s&&(s=e.TRTCVideoStreamType.TRTCVideoStreamTypeBig),this.width=A,this.height=t,this.frameRate=i,this.videoBitrate=o,this.audioBitrate=n,this.streamType=s},F=function(A,t,i,o,r,n,s,a,g,c,C,u,I,d){void 0===A&&(A=""),void 0===i&&(i=0),void 0===o&&(o=0),void 0===r&&(r=0),void 0===n&&(n=0),void 0===a&&(a=0),void 0===d&&(d=e.TRTCVideoStreamType.TRTCVideoStreamTypeBig),this.userId=A,this.width=i,this.height=o,this.frameRate=r,this.videoBitrate=n,this.audioBitrate=a,this.streamType=d},V=function(e,A,t,i,o,r,n,s,a,g,c){void 0===e&&(e=0),void 0===A&&(A=0),void 0===o&&(o=0),void 0===r&&(r=0),void 0===n&&(n=0),void 0===s&&(s=[]),void 0===a&&(a=0),void 0===g&&(g=[]),void 0===c&&(c=0),this.upLoss=e,this.downLoss=A,this.rtt=o,this.receivedBytes=r,this.sentBytes=n,this.localStatisticsArray=s,this.localStatisticsArraySize=a,this.remoteStatisticsArray=g,this.remoteStatisticsArraySize=c};e.TRTCVideoResolutionMode=void 0,(M=e.TRTCVideoResolutionMode||(e.TRTCVideoResolutionMode={}))[M.TRTCVideoResolutionModeLandscape=0]="TRTCVideoResolutionModeLandscape",M[M.TRTCVideoResolutionModePortrait=1]="TRTCVideoResolutionModePortrait",e.TRTCVideoQosPreference=void 0,(b=e.TRTCVideoQosPreference||(e.TRTCVideoQosPreference={}))[b.TRTCVideoQosPreferenceSmooth=1]="TRTCVideoQosPreferenceSmooth",b[b.TRTCVideoQosPreferenceClear=2]="TRTCVideoQosPreferenceClear",e.TRTCQosControlMode=void 0,(L=e.TRTCQosControlMode||(e.TRTCQosControlMode={}))[L.TRTCQosControlModeClient=0]="TRTCQosControlModeClient",L[L.TRTCQosControlModeServer=1]="TRTCQosControlModeServer";var P,Y,x=function(A,t){void 0===A&&(A=e.TRTCVideoQosPreference.TRTCVideoQosPreferenceClear),void 0===t&&(t=e.TRTCQosControlMode.TRTCQosControlModeServer),this.preference=A,this.controlMode=t},H=function(e,A,t,i){void 0===e&&(e=new ArrayBuffer(0)),void 0===A&&(A=0),void 0===t&&(t=0),void 0===i&&(i=0),this.buffer=e,this.length=A,this.width=t,this.height=i};e.TRTCLogLevel=void 0,(P=e.TRTCLogLevel||(e.TRTCLogLevel={}))[P.TRTCLogLevelVerbose=0]="TRTCLogLevelVerbose",P[P.TRTCLogLevelDebug=1]="TRTCLogLevelDebug",P[P.TRTCLogLevelInfo=2]="TRTCLogLevelInfo",P[P.TRTCLogLevelWarn=3]="TRTCLogLevelWarn",P[P.TRTCLogLevelError=4]="TRTCLogLevelError",P[P.TRTCLogLevelFatal=5]="TRTCLogLevelFatal",P[P.TRTCLogLevelNone=6]="TRTCLogLevelNone",e.TRTCScreenCaptureSourceType=void 0,(Y=e.TRTCScreenCaptureSourceType||(e.TRTCScreenCaptureSourceType={}))[Y.TRTCScreenCaptureSourceTypeUnknown=-1]="TRTCScreenCaptureSourceTypeUnknown",Y[Y.TRTCScreenCaptureSourceTypeWindow=0]="TRTCScreenCaptureSourceTypeWindow",Y[Y.TRTCScreenCaptureSourceTypeScreen=1]="TRTCScreenCaptureSourceTypeScreen",Y[Y.TRTCScreenCaptureSourceTypeCustom=2]="TRTCScreenCaptureSourceTypeCustom";var U,O=function(A,t,i,o,r,n){void 0===A&&(A=e.TRTCScreenCaptureSourceType.TRTCScreenCaptureSourceTypeUnknown),void 0===t&&(t=""),void 0===i&&(i=""),void 0===o&&(o=new H),void 0===r&&(r=new H),void 0===n&&(n=!1),this.type=A,this.sourceId=t,this.sourceName=i,this.thumbBGRA=o,this.iconBGRA=r,this.isMinimizeWindow=n},J=function(e,A,t,i){void 0===e&&(e=0),void 0===A&&(A=0),void 0===t&&(t=0),void 0===i&&(i=0),this.left=e,this.top=A,this.right=t,this.bottom=i},K=function(A,t,i,o,r,n,s,a,g,c,C,u,I,d,l){void 0===A&&(A=e.TRTCTranscodingConfigMode.TRTCTranscodingConfigMode_Unknown),void 0===t&&(t=0),void 0===i&&(i=0),void 0===o&&(o=0),void 0===r&&(r=0),void 0===n&&(n=0),void 0===s&&(s=15),void 0===a&&(a=2),void 0===g&&(g=0),void 0===c&&(c=""),void 0===C&&(C=64),void 0===u&&(u=48e3),void 0===I&&(I=1),void 0===d&&(d=[]),void 0===l&&(l=""),this.mode=A,this.appId=t,this.bizId=i,this.videoWidth=o,this.videoHeight=r,this.videoBitrate=n,this.videoFramerate=s,this.videoGOP=a,this.backgroundColor=g,this.backgroundImage=c,this.audioSampleRate=C,this.audioBitrate=u,this.audioChannels=I,this.mixUsersArray=d,this.mixUsersArraySize=d.length,this.streamId=l};e.TRTCTranscodingConfigMode=void 0,(U=e.TRTCTranscodingConfigMode||(e.TRTCTranscodingConfigMode={}))[U.TRTCTranscodingConfigMode_Unknown=0]="TRTCTranscodingConfigMode_Unknown",U[U.TRTCTranscodingConfigMode_Manual=1]="TRTCTranscodingConfigMode_Manual",U[U.TRTCTranscodingConfigMode_Template_PureAudio=2]="TRTCTranscodingConfigMode_Template_PureAudio",U[U.TRTCTranscodingConfigMode_Template_PresetLayout=3]="TRTCTranscodingConfigMode_Template_PresetLayout",U[U.TRTCTranscodingConfigMode_Template_ScreenSharing=4]="TRTCTranscodingConfigMode_Template_ScreenSharing",U[U.TRTC_TranscodingConfigMode_Unknown=5]="TRTC_TranscodingConfigMode_Unknown",U[U.TRTC_TranscodingConfigMode_Manual=6]="TRTC_TranscodingConfigMode_Manual",U[U.TRTC_TranscodingConfigMode_Template_PureAudio=7]="TRTC_TranscodingConfigMode_Template_PureAudio",U[U.TRTC_TranscodingConfigMode_Template_PresetLayout=8]="TRTC_TranscodingConfigMode_Template_PresetLayout",U[U.TRTC_TranscodingConfigMode_Template_ScreenSharing=9]="TRTC_TranscodingConfigMode_Template_ScreenSharing";var z,Z,W=function(A,t,i,o,r,n,s,a){void 0===A&&(A=""),void 0===t&&(t=""),void 0===i&&(i=null),void 0===o&&(o=0),void 0===r&&(r=!1),void 0===n&&(n=e.TRTCVideoStreamType.TRTCVideoStreamTypeBig),void 0===s&&(s=e.TRTCMixInputType.TRTCMixInputTypeUndefined),void 0===a&&(a=0),this.userId=A,this.roomId=t,this.rect=i,this.zOrder=o,this.pureAudio=r,this.streamType=n,this.inputType=s,this.renderMode=a};e.TRTCMixInputType=void 0,(z=e.TRTCMixInputType||(e.TRTCMixInputType={}))[z.TRTCMixInputTypeUndefined=0]="TRTCMixInputTypeUndefined",z[z.TRTCMixInputTypeAudioVideo=1]="TRTCMixInputTypeAudioVideo",z[z.TRTCMixInputTypePureVideo=2]="TRTCMixInputTypePureVideo",z[z.TRTCMixInputTypePureAudio=3]="TRTCMixInputTypePureAudio",e.TRTCCameraCaptureMode=void 0,(Z=e.TRTCCameraCaptureMode||(e.TRTCCameraCaptureMode={}))[Z.TRTCCameraResolutionStrategyAuto=0]="TRTCCameraResolutionStrategyAuto",Z[Z.TRTCCameraResolutionStrategyPerformance=1]="TRTCCameraResolutionStrategyPerformance",Z[Z.TRTCCameraResolutionStrategyHighQuality=2]="TRTCCameraResolutionStrategyHighQuality",Z[Z.TRTCCameraCaptureManual=3]="TRTCCameraCaptureManual";var j,q=function(e,A,t,i,o,r){void 0===e&&(e=!0),void 0===A&&(A=!0),void 0===t&&(t=!0),void 0===i&&(i=0),void 0===o&&(o=0),void 0===r&&(r=!1),this.enableCaptureMouse=e,this.enableHighLight=A,this.enableHighPerformance=t,this.highLightColor=i,this.highLightWidth=o,this.enableCaptureChildWindow=r},X="onError",$="onWarning",ee="rtc",Ae="live",te="VirtualBackground",ie="BasicBeauty",oe="blur",re="image",ne={20:"anchor",21:"audience"},se={0:ee,1:Ae,2:ee,3:Ae};!function(e){e[e.ActiveExitRoom=0]="ActiveExitRoom",e[e.KickedExitRoom=1]="KickedExitRoom"}(j||(j={}));var ae="enum";function ge(){return Math.floor(performance.now())}var ce=function(e){return void 0===e},Ce=function(e){return"number"==typeof e},ue=function(e){return"boolean"==typeof e};function Ie(e){if("string"!=typeof e)return e;var A;try{var t=JSON.parse(e);A="object"==typeof t&&t?t:e}catch(i){A=e}return A}function de(e){return null==e}function le(){for(var e=[],A=0;A<arguments.length;A++)e[A]=arguments[A];return e.reduce((function(e,A){return Object.keys(A).forEach((function(t){e[t]&&"object"==typeof e[t]?e[t]=le(e[t],A[t]):e[t]=A[t]})),e}),{})}var he,Be,Ee=function(e){return e&&e.Math===Math&&e},Qe=Ee("object"==typeof globalThis&&globalThis)||Ee("object"==typeof window&&window)||Ee("object"==typeof self&&self)||Ee("object"==typeof C&&C)||function(){return this}()||C||Function("return this")(),pe=function(e){try{return!!e()}catch(A){return!0}},fe=!pe((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),Te=!pe((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),ve=Function.prototype.call,ye=Te?ve.bind(ve):function(){return ve.apply(ve,arguments)},me={}.propertyIsEnumerable,Re=Object.getOwnPropertyDescriptor,we={f:Re&&!me.call({1:2},1)?function(e){var A=Re(this,e);return!!A&&A.enumerable}:me},De=function(e,A){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:A}},Se=Function.prototype,Me=Se.call,be=Te&&Se.bind.bind(Me,Me),Le=Te?be:function(e){return function(){return Me.apply(e,arguments)}},Ne=Le({}.toString),_e=Le("".slice),ke=function(e){return _e(Ne(e),8,-1)},Ge=Object,Fe=Le("".split),Ve=pe((function(){return!Ge("z").propertyIsEnumerable(0)}))?function(e){return"String"===ke(e)?Fe(e,""):Ge(e)}:Ge,Pe=function(e){return null==e},Ye=TypeError,xe=function(e){if(Pe(e))throw Ye("Can't call method on "+e);return e},He=function(e){return Ve(xe(e))},Ue="object"==typeof document&&document.all,Oe={all:Ue,IS_HTMLDDA:void 0===Ue&&void 0!==Ue},Je=Oe.all,Ke=Oe.IS_HTMLDDA?function(e){return"function"==typeof e||e===Je}:function(e){return"function"==typeof e},ze=Oe.all,Ze=Oe.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:Ke(e)||e===ze}:function(e){return"object"==typeof e?null!==e:Ke(e)},We=function(e,A){return arguments.length<2?(t=Qe[e],Ke(t)?t:void 0):Qe[e]&&Qe[e][A];var t},je=Le({}.isPrototypeOf),qe="undefined"!=typeof navigator&&String(navigator.userAgent)||"",Xe=Qe.process,$e=Qe.Deno,eA=Xe&&Xe.versions||$e&&$e.version,AA=eA&&eA.v8;AA&&(Be=(he=AA.split("."))[0]>0&&he[0]<4?1:+(he[0]+he[1])),!Be&&qe&&(!(he=qe.match(/Edge\/(\d+)/))||he[1]>=74)&&(he=qe.match(/Chrome\/(\d+)/))&&(Be=+he[1]);var tA=Be,iA=Qe.String,oA=!!Object.getOwnPropertySymbols&&!pe((function(){var e=Symbol("symbol detection");return!iA(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&tA&&tA<41})),rA=oA&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,nA=Object,sA=rA?function(e){return"symbol"==typeof e}:function(e){var A=We("Symbol");return Ke(A)&&je(A.prototype,nA(e))},aA=String,gA=TypeError,cA=function(e){if(Ke(e))return e;throw gA(function(e){try{return aA(e)}catch(A){return"Object"}}(e)+" is not a function")},CA=function(e,A){var t=e[A];return Pe(t)?void 0:cA(t)},uA=TypeError,IA=Object.defineProperty,dA=function(e,A){try{IA(Qe,e,{value:A,configurable:!0,writable:!0})}catch(t){Qe[e]=A}return A},lA="__core-js_shared__",hA=Qe[lA]||dA(lA,{}),BA=u((function(e){(e.exports=function(e,A){return hA[e]||(hA[e]=void 0!==A?A:{})})("versions",[]).push({version:"3.32.1",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.32.1/LICENSE",source:"https://github.com/zloirock/core-js"})})),EA=Object,QA=function(e){return EA(xe(e))},pA=Le({}.hasOwnProperty),fA=Object.hasOwn||function(e,A){return pA(QA(e),A)},TA=0,vA=Math.random(),yA=Le(1..toString),mA=function(e){return"Symbol("+(void 0===e?"":e)+")_"+yA(++TA+vA,36)},RA=Qe.Symbol,wA=BA("wks"),DA=rA?RA.for||RA:RA&&RA.withoutSetter||mA,SA=function(e){return fA(wA,e)||(wA[e]=oA&&fA(RA,e)?RA[e]:DA("Symbol."+e)),wA[e]},MA=TypeError,bA=SA("toPrimitive"),LA=function(e,A){if(!Ze(e)||sA(e))return e;var t,i=CA(e,bA);if(i){if(void 0===A&&(A="default"),t=ye(i,e,A),!Ze(t)||sA(t))return t;throw MA("Can't convert object to primitive value")}return void 0===A&&(A="number"),function(e,A){var t,i;if("string"===A&&Ke(t=e.toString)&&!Ze(i=ye(t,e)))return i;if(Ke(t=e.valueOf)&&!Ze(i=ye(t,e)))return i;if("string"!==A&&Ke(t=e.toString)&&!Ze(i=ye(t,e)))return i;throw uA("Can't convert object to primitive value")}(e,A)},NA=function(e){var A=LA(e,"string");return sA(A)?A:A+""},_A=Qe.document,kA=Ze(_A)&&Ze(_A.createElement),GA=function(e){return kA?_A.createElement(e):{}},FA=!fe&&!pe((function(){return 7!==Object.defineProperty(GA("div"),"a",{get:function(){return 7}}).a})),VA=Object.getOwnPropertyDescriptor,PA={f:fe?VA:function(e,A){if(e=He(e),A=NA(A),FA)try{return VA(e,A)}catch(t){}if(fA(e,A))return De(!ye(we.f,e,A),e[A])}},YA=fe&&pe((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),xA=String,HA=TypeError,UA=function(e){if(Ze(e))return e;throw HA(xA(e)+" is not an object")},OA=TypeError,JA=Object.defineProperty,KA=Object.getOwnPropertyDescriptor,zA="enumerable",ZA="configurable",WA="writable",jA={f:fe?YA?function(e,A,t){if(UA(e),A=NA(A),UA(t),"function"==typeof e&&"prototype"===A&&"value"in t&&WA in t&&!t[WA]){var i=KA(e,A);i&&i[WA]&&(e[A]=t.value,t={configurable:ZA in t?t[ZA]:i[ZA],enumerable:zA in t?t[zA]:i[zA],writable:!1})}return JA(e,A,t)}:JA:function(e,A,t){if(UA(e),A=NA(A),UA(t),FA)try{return JA(e,A,t)}catch(i){}if("get"in t||"set"in t)throw OA("Accessors not supported");return"value"in t&&(e[A]=t.value),e}},qA=fe?function(e,A,t){return jA.f(e,A,De(1,t))}:function(e,A,t){return e[A]=t,e},XA=Function.prototype,$A=fe&&Object.getOwnPropertyDescriptor,et=fA(XA,"name"),At={EXISTS:et,PROPER:et&&"something"===function(){}.name,CONFIGURABLE:et&&(!fe||fe&&$A(XA,"name").configurable)},tt=Le(Function.toString);Ke(hA.inspectSource)||(hA.inspectSource=function(e){return tt(e)});var it,ot,rt,nt=hA.inspectSource,st=Qe.WeakMap,at=Ke(st)&&/native code/.test(String(st)),gt=BA("keys"),ct=function(e){return gt[e]||(gt[e]=mA(e))},Ct={},ut="Object already initialized",It=Qe.TypeError,dt=Qe.WeakMap;if(at||hA.state){var lt=hA.state||(hA.state=new dt);lt.get=lt.get,lt.has=lt.has,lt.set=lt.set,it=function(e,A){if(lt.has(e))throw It(ut);return A.facade=e,lt.set(e,A),A},ot=function(e){return lt.get(e)||{}},rt=function(e){return lt.has(e)}}else{var ht=ct("state");Ct[ht]=!0,it=function(e,A){if(fA(e,ht))throw It(ut);return A.facade=e,qA(e,ht,A),A},ot=function(e){return fA(e,ht)?e[ht]:{}},rt=function(e){return fA(e,ht)}}var Bt={set:it,get:ot,has:rt,enforce:function(e){return rt(e)?ot(e):it(e,{})},getterFor:function(e){return function(A){var t;if(!Ze(A)||(t=ot(A)).type!==e)throw It("Incompatible receiver, "+e+" required");return t}}},Et=u((function(e){var A=At.CONFIGURABLE,t=Bt.enforce,i=Bt.get,o=String,r=Object.defineProperty,n=Le("".slice),s=Le("".replace),a=Le([].join),g=fe&&!pe((function(){return 8!==r((function(){}),"length",{value:8}).length})),c=String(String).split("String"),C=e.exports=function(e,i,C){"Symbol("===n(o(i),0,7)&&(i="["+s(o(i),/^Symbol\(([^)]*)\)/,"$1")+"]"),C&&C.getter&&(i="get "+i),C&&C.setter&&(i="set "+i),(!fA(e,"name")||A&&e.name!==i)&&(fe?r(e,"name",{value:i,configurable:!0}):e.name=i),g&&C&&fA(C,"arity")&&e.length!==C.arity&&r(e,"length",{value:C.arity});try{C&&fA(C,"constructor")&&C.constructor?fe&&r(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(I){}var u=t(e);return fA(u,"source")||(u.source=a(c,"string"==typeof i?i:"")),e};Function.prototype.toString=C((function(){return Ke(this)&&i(this).source||nt(this)}),"toString")})),Qt=function(e,A,t,i){i||(i={});var o=i.enumerable,r=void 0!==i.name?i.name:A;if(Ke(t)&&Et(t,r,i),i.global)o?e[A]=t:dA(A,t);else{try{i.unsafe?e[A]&&(o=!0):delete e[A]}catch(n){}o?e[A]=t:jA.f(e,A,{value:t,enumerable:!1,configurable:!i.nonConfigurable,writable:!i.nonWritable})}return e},pt=Math.ceil,ft=Math.floor,Tt=Math.trunc||function(e){var A=+e;return(A>0?ft:pt)(A)},vt=function(e){var A=+e;return A!=A||0===A?0:Tt(A)},yt=Math.max,mt=Math.min,Rt=Math.min,wt=function(e){return e>0?Rt(vt(e),9007199254740991):0},Dt=function(e){return wt(e.length)},St=function(e){return function(A,t,i){var o,r=He(A),n=Dt(r),s=function(e,A){var t=vt(e);return t<0?yt(t+A,0):mt(t,A)}(i,n);if(e&&t!=t){for(;n>s;)if((o=r[s++])!=o)return!0}else for(;n>s;s++)if((e||s in r)&&r[s]===t)return e||s||0;return!e&&-1}},Mt={includes:St(!0),indexOf:St(!1)}.indexOf,bt=Le([].push),Lt=function(e,A){var t,i=He(e),o=0,r=[];for(t in i)!fA(Ct,t)&&fA(i,t)&&bt(r,t);for(;A.length>o;)fA(i,t=A[o++])&&(~Mt(r,t)||bt(r,t));return r},Nt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],_t=Nt.concat("length","prototype"),kt={f:Object.getOwnPropertyNames||function(e){return Lt(e,_t)}},Gt={f:Object.getOwnPropertySymbols},Ft=Le([].concat),Vt=We("Reflect","ownKeys")||function(e){var A=kt.f(UA(e)),t=Gt.f;return t?Ft(A,t(e)):A},Pt=function(e,A,t){for(var i=Vt(A),o=jA.f,r=PA.f,n=0;n<i.length;n++){var s=i[n];fA(e,s)||t&&fA(t,s)||o(e,s,r(A,s))}},Yt=/#|\.prototype\./,xt=function(e,A){var t=Ut[Ht(e)];return t===Jt||t!==Ot&&(Ke(A)?pe(A):!!A)},Ht=xt.normalize=function(e){return String(e).replace(Yt,".").toLowerCase()},Ut=xt.data={},Ot=xt.NATIVE="N",Jt=xt.POLYFILL="P",Kt=xt,zt=PA.f,Zt=function(e,A){var t,i,o,r,n,s=e.target,a=e.global,g=e.stat;if(t=a?Qe:g?Qe[s]||dA(s,{}):(Qe[s]||{}).prototype)for(i in A){if(r=A[i],o=e.dontCallGetSet?(n=zt(t,i))&&n.value:t[i],!Kt(a?i:s+(g?".":"#")+i,e.forced)&&void 0!==o){if(typeof r==typeof o)continue;Pt(r,o)}(e.sham||o&&o.sham)&&qA(r,"sham",!0),Qt(t,i,r,e)}},Wt={};Wt[SA("toStringTag")]="z";var jt,qt="[object z]"===String(Wt),Xt=SA("toStringTag"),$t=Object,ei="Arguments"===ke(function(){return arguments}()),Ai=qt?ke:function(e){var A,t,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=function(e,A){try{return e[A]}catch(t){}}(A=$t(e),Xt))?t:ei?ke(A):"Object"===(i=ke(A))&&Ke(A.callee)?"Arguments":i},ti=String,ii=function(e){if("Symbol"===Ai(e))throw TypeError("Cannot convert a Symbol value to a string");return ti(e)},oi=function(){var e=UA(this),A="";return e.hasIndices&&(A+="d"),e.global&&(A+="g"),e.ignoreCase&&(A+="i"),e.multiline&&(A+="m"),e.dotAll&&(A+="s"),e.unicode&&(A+="u"),e.unicodeSets&&(A+="v"),e.sticky&&(A+="y"),A},ri=Qe.RegExp,ni=pe((function(){var e=ri("a","y");return e.lastIndex=2,null!==e.exec("abcd")})),si=ni||pe((function(){return!ri("a","y").sticky})),ai={BROKEN_CARET:ni||pe((function(){var e=ri("^r","gy");return e.lastIndex=2,null!==e.exec("str")})),MISSED_STICKY:si,UNSUPPORTED_Y:ni},gi=Object.keys||function(e){return Lt(e,Nt)},ci=fe&&!YA?Object.defineProperties:function(e,A){UA(e);for(var t,i=He(A),o=gi(A),r=o.length,n=0;r>n;)jA.f(e,t=o[n++],i[t]);return e},Ci={f:ci},ui=We("document","documentElement"),Ii="prototype",di="script",li=ct("IE_PROTO"),hi=function(){},Bi=function(e){return"<"+di+">"+e+"</"+di+">"},Ei=function(e){e.write(Bi("")),e.close();var A=e.parentWindow.Object;return e=null,A},Qi=function(){try{jt=new ActiveXObject("htmlfile")}catch(o){}var e,A,t;Qi="undefined"!=typeof document?document.domain&&jt?Ei(jt):(A=GA("iframe"),t="java"+di+":",A.style.display="none",ui.appendChild(A),A.src=String(t),(e=A.contentWindow.document).open(),e.write(Bi("document.F=Object")),e.close(),e.F):Ei(jt);for(var i=Nt.length;i--;)delete Qi[Ii][Nt[i]];return Qi()};Ct[li]=!0;var pi,fi,Ti=Object.create||function(e,A){var t;return null!==e?(hi[Ii]=UA(e),t=new hi,hi[Ii]=null,t[li]=e):t=Qi(),void 0===A?t:Ci.f(t,A)},vi=Qe.RegExp,yi=pe((function(){var e=vi(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),mi=Qe.RegExp,Ri=pe((function(){var e=mi("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),wi=Bt.get,Di=BA("native-string-replace",String.prototype.replace),Si=RegExp.prototype.exec,Mi=Si,bi=Le("".charAt),Li=Le("".indexOf),Ni=Le("".replace),_i=Le("".slice),ki=(fi=/b*/g,ye(Si,pi=/a/,"a"),ye(Si,fi,"a"),0!==pi.lastIndex||0!==fi.lastIndex),Gi=ai.BROKEN_CARET,Fi=void 0!==/()??/.exec("")[1];(ki||Fi||Gi||yi||Ri)&&(Mi=function(e){var A,t,i,o,r,n,s,a=this,g=wi(a),c=ii(e),C=g.raw;if(C)return C.lastIndex=a.lastIndex,A=ye(Mi,C,c),a.lastIndex=C.lastIndex,A;var u=g.groups,I=Gi&&a.sticky,d=ye(oi,a),l=a.source,h=0,B=c;if(I&&(d=Ni(d,"y",""),-1===Li(d,"g")&&(d+="g"),B=_i(c,a.lastIndex),a.lastIndex>0&&(!a.multiline||a.multiline&&"\n"!==bi(c,a.lastIndex-1))&&(l="(?: "+l+")",B=" "+B,h++),t=new RegExp("^(?:"+l+")",d)),Fi&&(t=new RegExp("^"+l+"$(?!\\s)",d)),ki&&(i=a.lastIndex),o=ye(Si,I?t:a,B),I?o?(o.input=_i(o.input,h),o[0]=_i(o[0],h),o.index=a.lastIndex,a.lastIndex+=o[0].length):a.lastIndex=0:ki&&o&&(a.lastIndex=a.global?o.index+o[0].length:i),Fi&&o&&o.length>1&&ye(Di,o[0],t,(function(){for(r=1;r<arguments.length-2;r++)void 0===arguments[r]&&(o[r]=void 0)})),o&&u)for(o.groups=n=Ti(null),r=0;r<u.length;r++)n[(s=u[r])[0]]=o[s[1]];return o});var Vi=Mi;Zt({target:"RegExp",proto:!0,forced:/./.exec!==Vi},{exec:Vi});var Pi="\t\n\v\f\r \u2028\u2029\ufeff",Yi=Le("".replace),xi=RegExp("^["+Pi+"]+"),Hi=RegExp("(^|[^"+Pi+"])["+Pi+"]+$"),Ui=function(e){return function(A){var t=ii(xe(A));return 1&e&&(t=Yi(t,xi,"")),2&e&&(t=Yi(t,Hi,"$1")),t}},Oi={start:Ui(1),end:Ui(2),trim:Ui(3)}.trim,Ji=Le("".charAt),Ki=Qe.parseFloat,zi=Qe.Symbol,Zi=zi&&zi.iterator,Wi=1/Ki(Pi+"-0")!=-Infinity||Zi&&!pe((function(){Ki(Object(Zi))}))?function(e){var A=Oi(ii(e)),t=Ki(A);return 0===t&&"-"===Ji(A,0)?-0:t}:Ki;Zt({global:!0,forced:parseFloat!==Wi},{parseFloat:Wi});var ji=function(e){if("Function"===ke(e))return Le(e)},qi=SA("species"),Xi=RegExp.prototype,$i=Le("".charAt),eo=Le("".charCodeAt),Ao=Le("".slice),to=function(e){return function(A,t){var i,o,r=ii(xe(A)),n=vt(t),s=r.length;return n<0||n>=s?e?"":void 0:(i=eo(r,n))<55296||i>56319||n+1===s||(o=eo(r,n+1))<56320||o>57343?e?$i(r,n):i:e?Ao(r,n,n+2):o-56320+(i-55296<<10)+65536}},io={codeAt:to(!1),charAt:to(!0)}.charAt,oo=function(e,A,t){return A+(t?io(e,A).length:1)},ro=TypeError,no=function(e,A){var t=e.exec;if(Ke(t)){var i=ye(t,e,A);return null!==i&&UA(i),i}if("RegExp"===ke(e))return ye(Vi,e,A);throw ro("RegExp#exec called on incompatible receiver")};!function(e,A,t,i){var o=SA(e),r=!pe((function(){var A={};return A[o]=function(){return 7},7!==""[e](A)})),n=r&&!pe((function(){var A=!1,t=/a/;return"split"===e&&((t={}).constructor={},t.constructor[qi]=function(){return t},t.flags="",t[o]=/./[o]),t.exec=function(){return A=!0,null},t[o](""),!A}));if(!r||!n||t){var s=ji(/./[o]),a=A(o,""[e],(function(e,A,t,i,o){var n=ji(e),a=A.exec;return a===Vi||a===Xi.exec?r&&!o?{done:!0,value:s(A,t,i)}:{done:!0,value:n(t,A,i)}:{done:!1}}));Qt(String.prototype,e,a[0]),Qt(Xi,o,a[1])}i&&qA(Xi[o],"sham",!0)}("match",(function(e,A,t){return[function(A){var t=xe(this),i=Pe(A)?void 0:CA(A,e);return i?ye(i,A,t):new RegExp(A)[e](ii(t))},function(e){var i=UA(this),o=ii(e),r=t(A,i,o);if(r.done)return r.value;if(!i.global)return no(i,o);var n=i.unicode;i.lastIndex=0;for(var s,a=[],g=0;null!==(s=no(i,o));){var c=ii(s[0]);a[g]=c,""===c&&(i.lastIndex=oo(o,wt(i.lastIndex),n)),g++}return 0===g?null:a}]}));var so=Array.isArray||function(e){return"Array"===ke(e)},ao=TypeError,go=function(e){if(e>9007199254740991)throw ao("Maximum allowed index exceeded");return e},co=function(e,A,t){var i=NA(A);i in e?jA.f(e,i,De(0,t)):e[i]=t},Co=function(){},uo=[],Io=We("Reflect","construct"),lo=/^\s*(?:class|function)\b/,ho=Le(lo.exec),Bo=!lo.exec(Co),Eo=function(e){if(!Ke(e))return!1;try{return Io(Co,uo,e),!0}catch(A){return!1}},Qo=function(e){if(!Ke(e))return!1;switch(Ai(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Bo||!!ho(lo,nt(e))}catch(A){return!0}};Qo.sham=!0;var po,fo=!Io||pe((function(){var e;return Eo(Eo.call)||!Eo(Object)||!Eo((function(){e=!0}))||e}))?Qo:Eo,To=SA("species"),vo=Array,yo=function(e,A){return new(function(e){var A;return so(e)&&(A=e.constructor,(fo(A)&&(A===vo||so(A.prototype))||Ze(A)&&null===(A=A[To]))&&(A=void 0)),void 0===A?vo:A}(e))(0===A?0:A)},mo=SA("species"),Ro=SA("isConcatSpreadable"),wo=tA>=51||!pe((function(){var e=[];return e[Ro]=!1,e.concat()[0]!==e})),Do=function(e){if(!Ze(e))return!1;var A=e[Ro];return void 0!==A?!!A:so(e)};Zt({target:"Array",proto:!0,arity:1,forced:!(wo&&(po="concat",tA>=51||!pe((function(){var e=[];return(e.constructor={})[mo]=function(){return{foo:1}},1!==e[po](Boolean).foo}))))},{concat:function(e){var A,t,i,o,r,n=QA(this),s=yo(n,0),a=0;for(A=-1,i=arguments.length;A<i;A++)if(Do(r=-1===A?n:arguments[A]))for(o=Dt(r),go(a+o),t=0;t<o;t++,a++)t in r&&co(s,a,r[t]);else go(a+1),co(s,a++,r);return s.length=a,s}});var So=window.navigator&&window.navigator.userAgent||"",Mo=/AppleWebKit\/([\d.]+)/i.exec(So);Mo&&parseFloat(Mo.pop());var bo=/iPad/i.test(So),Lo=/iPhone/i.test(So)&&!bo,No=/iPod/i.test(So),_o=Lo||bo||No,ko=/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i.test(So);_o&&function(){var e=So.match(/OS (\d+)_/i);e&&e[1]&&e[1]}();var Go=/Android/i.test(So);Go&&function(){var e=So.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!e)return null;var A=e[1]&&parseFloat(e[1]),t=e[2]&&parseFloat(e[2]);A&&t&&parseFloat("".concat(e[1],".").concat(e[2]))}();Go&&/webkit/i.test(So),/Firefox/i.test(So)&&function(){var e=So.match(/Firefox\/(\d+)/);e&&e[1]&&parseFloat(e[1])}();var Fo=/Edge\//i.test(So);Fo&&function(){var e=So.match(/Edge\/(\d+)/i);if(e&&e[1])e[1]}();var Vo=/Edg\//i.test(So);Vo&&function(){var e=So.match(/Edg\/(\d+)/);e&&e[1]&&parseFloat(e[1])}();var Po=/SogouMobileBrowser\//i.test(So);Po&&function(){var e=So.match(/SogouMobileBrowser\/(\d+)/);e&&e[1]&&parseFloat(e[1])}();var Yo=/MetaSr\s/i.test(So);Yo&&function(){var e=So.match(/MetaSr(\s\d+(\.\d+)+)/);e&&e[1]&&parseFloat(e[1])}();var xo=/TBS\/\d+/i.test(So);xo&&function(){var e=So.match(/TBS\/(\d+)/i);if(e&&e[1])e[1]}();var Ho=/XWEB\/\d+/i.test(So);Ho&&function(){var e=So.match(/XWEB\/(\d+)/i);if(e&&e[1])e[1]}(),/MSIE\s8\.0/.test(So),/MSIE\/\d+/i.test(So)&&function(){var e=/MSIE\s(\d+)\.\d/.exec(So),A=e&&parseFloat(e[1]);!A&&/Trident\/7.0/i.test(So)&&/rv:11.0/.test(So)&&(A=11)}(),/(micromessenger|webbrowser)/i.test(So)&&function(){var e=So.match(/MicroMessenger\/(\d+)/i);if(e&&e[1])e[1]}();var Uo=!xo&&/MQQBrowser\/\d+/i.test(So)&&/COVC\/\d+/i.test(So),Oo=!xo&&/MQQBrowser\/\d+/i.test(So)&&!/COVC\/\d+/i.test(So);(Oo||Uo)&&function(){var e=So.match(/ MQQBrowser\/([\d.]+)/);e&&e[1]&&e[1]}();var Jo=!xo&&/ QQBrowser\/\d+/i.test(So);Jo&&function(){var e=So.match(/ QQBrowser\/([\d.]+)/);e&&e[1]&&e[1]}();var Ko=!xo&&/QQBrowserLite\/\d+/i.test(So);Ko&&function(){var e=So.match(/QQBrowserLite\/([\d.]+)/);e&&e[1]&&e[1]}();var zo=!xo&&/MQBHD\/\d+/i.test(So);zo&&function(){var e=So.match(/MQBHD\/([\d.]+)/);e&&e[1]&&e[1]}(),/Windows/i.test(So),!_o&&/MAC OS X/i.test(So),!Go&&/Linux/i.test(So),/MicroMessenger/i.test(So),/UCBrowser/i.test(So),/Electron/i.test(So);var Zo=/MiuiBrowser/i.test(So);Zo&&function(){var e=So.match(/MiuiBrowser\/([\d.]+)/);e&&e[1]&&e[1]}();var Wo=/HuaweiBrowser/i.test(So);/Huawei/i.test(So),Wo&&function(){var e=So.match(/HuaweiBrowser\/([\d.]+)/);e&&e[1]&&e[1]}();var jo=/SamsungBrowser/i.test(So);jo&&function(){var e=So.match(/SamsungBrowser\/([\d.]+)/);e&&e[1]&&e[1]}();var qo=/HeyTapBrowser/i.test(So);qo&&function(){var e=So.match(/HeyTapBrowser\/([\d.]+)/);e&&e[1]&&e[1]}();var Xo=/VivoBrowser/i.test(So);Xo&&function(){var e=So.match(/VivoBrowser\/([\d.]+)/);e&&e[1]&&e[1]}();var $o,er,Ar,tr=/Chrome/i.test(So),ir=!Fo&&!Yo&&!Po&&!xo&&!Ho&&!Vo&&!Jo&&!Zo&&!Wo&&!jo&&!qo&&!Xo&&/Chrome/i.test(So);ir&&function(){var e=So.match(/Chrome\/(\d+)/);e&&e[1]&&parseFloat(e[1])}(),ir&&function(){var e=So.match(/Chrome\/([\d.]+)/);e&&e[1]&&e[1]}(),!tr&&!Oo&&!Uo&&!Ko&&!zo&&/Safari/i.test(So)&&function(){var e=So.match(/Version\/([\d.]+)/);e&&e[1]&&e[1]}(),"file:"===location.protocol||"localhost"===location.hostname||/^\d+\.\d+\.\d+\.\d+$/.test(location.hostname),function(e){e.LIVE="live",e.RTC="rtc"}($o||($o={})),function(e){e.CONTAIN="contain",e.COVER="cover",e.FILL="fill"}(er||(er={})),function(e){e[e.exitRoom=0]="exitRoom",e[e.banned=1]="banned",e[e.roomDisband=2]="roomDisband"}(Ar||(Ar={}));var or=-3340,rr=-1301,nr=-1314,sr=-1315,ar=-1316,gr=-1302,cr=-1317,Cr=-1318,ur=-1319,Ir=-70252,dr={code:-1001,message:"参数错误, 请检查参数格式、是否非空等"},lr={code:-1005,message:"not supported"},hr="2.9.4-beta.2",Br=Object.defineProperty,Er=(e,A,t)=>((e,A,t)=>A in e?Br(e,A,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[A]=t)(e,"symbol"!=typeof A?A+"":A,t);var Qr,pr=(Qr="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0,function(e={}){var A,t,i=e;i.ready=new Promise(((e,i)=>{A=e,t=i}));var o=Object.assign({},i),r="";"undefined"!=typeof document&&document.currentScript&&(r=document.currentScript.src),Qr&&(r=Qr),r=0!==r.indexOf("blob:")?r.substr(0,r.replace(/[?#].*/,"").lastIndexOf("/")+1):"";var n,s=i.print||console.log.bind(console),a=i.printErr||console.error.bind(console);Object.assign(i,o),o=null,i.arguments&&i.arguments,i.thisProgram&&i.thisProgram,i.quit&&i.quit,i.wasmBinary&&(n=i.wasmBinary),"object"!=typeof WebAssembly&&v("no native wasm support detected");var g,c,C,u,I,d,l,h,B=!1,E=[],Q=[],p=[],f=0,T=null;function v(e){i.onAbort&&i.onAbort(e),a(e="Aborted("+e+")"),B=!0,e+=". Build with -sASSERTIONS for more info.";var A=new WebAssembly.RuntimeError(e);throw t(A),A}var y,m,R="data:application/octet-stream;base64,",w=e=>e.startsWith(R);function D(e){return Promise.resolve().then((()=>function(e){if(e==y&&n)return new Uint8Array(n);var A=function(e){if(w(e))return function(e){for(var A=atob(e),t=new Uint8Array(A.length),i=0;i<A.length;++i)t[i]=A.charCodeAt(i);return t}(e.slice(R.length))}(e);if(A)return A;throw"both async and sync fetching of the wasm failed"}(e)))}w(y="data:application/octet-stream;base64,AGFzbQEAAAAB8gEfYAJ/fwBgAX8Bf2ADf39/AX9gAX8AYAN/f38AYAJ/fwF/YAR/f39/AGAAAGAFf39/f38AYAZ/f39/f38AYAR/f39/AX9gB39/f39/f38AYAN/fn8BfmAFf3x8fHwAYAZ/fHx8fHwAYAV/f39/fwF8YAl/f39/f39/f38AYAN/f38BfGAKf39/f39/f39/fwBgDX9/f39/f39/f39/f38AYAJ/fABgAn5/AX9gAn99AGABfAF8YAZ/fH9/f38Bf2AGf39/f39/AX9gAnx/AXxgBH9/fn4AYAZ/f3x8fHwAYAd/f3x8fHx8AGAFf39/f38BfwKXARkBYQFhA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AEGAAmsiBSQAAkAgAiADTA0AIARBgMAEcQ0AIAUgAUH/AXEgAiADayIDQYACIANBgAJJIgEbECYaIAFFBEADQCAAIAVBgAIQHSADQYACayIDQf8BSw0ACwsgACAFIAMQHQsgBUGAAmokAAuBAwEEfyMAQfAAayICJAAgACgCACIDQQRrKAIAIQQgA0EIaygCACEFIAJCADcCUCACQgA3AlggAkIANwJgIAJCADcAZyACQgA3AkggAkEANgJEIAJBvMsANgJAIAIgADYCPCACIAE2AjggACAFaiEDAkAgBCABQQAQHgRAQQAgAyAFGyEADAELIAAgA04EQCACQgA3AC8gAkIANwIYIAJCADcCICACQgA3AiggAkIANwIQIAJBADYCDCACIAE2AgggAiAANgIEIAIgBDYCACACQQE2AjAgBCACIAMgA0EBQQAgBCgCACgCFBEJACACKAIYDQELQQAhACAEIAJBOGogA0EBQQAgBCgCACgCGBEIAAJAAkAgAigCXA4CAAECCyACKAJMQQAgAigCWEEBRhtBACACKAJUQQFGG0EAIAIoAmBBAUYbIQAMAQsgAigCUEEBRwRAIAIoAmANASACKAJUQQFHDQEgAigCWEEBRw0BCyACKAJIIQALIAJB8ABqJAAgAAvQAQEFfyMAQRBrIgYkACAGQQRqIgIQPyMAQRBrIgUkAAJ/IAItAAtBB3YEQCACKAIEDAELIAItAAtB/wBxCyEEA0ACQAJ/IAItAAtBB3YEQCACKAIADAELIAILIQMgBSABOQMAIAICfyADIARBAWogBRBGIgNBAE4EQCADIARNDQIgAwwBCyAEQQF0QQFyCyIEECsMAQsLIAIgAxArIAAgAikCADcCACAAIAIoAgg2AgggAkIANwIAIAJBADYCCCAFQRBqJAAgAhBBIAZBEGokAAuABAEDfyACQYAETwRAIAAgASACEBIgAA8LIAAgAmohAwJAIAAgAXNBA3FFBEACQCAAQQNxRQRAIAAhAgwBCyACRQRAIAAhAgwBCyAAIQIDQCACIAEtAAA6AAAgAUEBaiEBIAJBAWoiAkEDcUUNASACIANJDQALCwJAIANBfHEiBEHAAEkNACACIARBQGoiBUsNAANAIAIgASgCADYCACACIAEoAgQ2AgQgAiABKAIINgIIIAIgASgCDDYCDCACIAEoAhA2AhAgAiABKAIUNgIUIAIgASgCGDYCGCACIAEoAhw2AhwgAiABKAIgNgIgIAIgASgCJDYCJCACIAEoAig2AiggAiABKAIsNgIsIAIgASgCMDYCMCACIAEoAjQ2AjQgAiABKAI4NgI4IAIgASgCPDYCPCABQUBrIQEgAkFAayICIAVNDQALCyACIARPDQEDQCACIAEoAgA2AgAgAUEEaiEBIAJBBGoiAiAESQ0ACwwBCyADQQRJBEAgACECDAELIAAgA0EEayIESwRAIAAhAgwBCyAAIQIDQCACIAEtAAA6AAAgAiABLQABOgABIAIgAS0AAjoAAiACIAEtAAM6AAMgAUEEaiEBIAJBBGoiAiAETQ0ACwsgAiADSQRAA0AgAiABLQAAOgAAIAFBAWohASACQQFqIgIgA0cNAAsLIAALCwAgASACIAAQQhoLEgAgAUEBdEHQyQBqQQIgABBCC/kBAQR/An8gARAqIQIjAEEQayIFJAACfyAALQALQQd2BEAgACgCBAwBCyAALQALQf8AcQsiBEEATwRAAkAgAiAALQALQQd2BH8gACgCCEH/////B3FBAWsFQQoLIgMgBGtNBEAgAkUNAQJ/IAAtAAtBB3YEQCAAKAIADAELIAALIgMgBAR/IAIgA2ogAyAEEEUgASACQQAgAyAEaiABSxtBACABIANPG2oFIAELIAIQRSAAIAIgBGoiARAxIAVBADoADyABIANqIAUtAA86AAAMAQsgACADIAIgBGogA2sgBEEAIAIgARBECyAFQRBqJAAgAAwBCxAnAAsL8gICAn8BfgJAIAJFDQAgACABOgAAIAAgAmoiA0EBayABOgAAIAJBA0kNACAAIAE6AAIgACABOgABIANBA2sgAToAACADQQJrIAE6AAAgAkEHSQ0AIAAgAToAAyADQQRrIAE6AAAgAkEJSQ0AIABBACAAa0EDcSIEaiIDIAFB/wFxQYGChAhsIgE2AgAgAyACIARrQXxxIgRqIgJBBGsgATYCACAEQQlJDQAgAyABNgIIIAMgATYCBCACQQhrIAE2AgAgAkEMayABNgIAIARBGUkNACADIAE2AhggAyABNgIUIAMgATYCECADIAE2AgwgAkEQayABNgIAIAJBFGsgATYCACACQRhrIAE2AgAgAkEcayABNgIAIAQgA0EEcUEYciIEayICQSBJDQAgAa1CgYCAgBB+IQUgAyAEaiEBA0AgASAFNwMYIAEgBTcDECABIAU3AwggASAFNwMAIAFBIGohASACQSBrIgJBH0sNAAsLIAALBQAQDAALUgECf0G40wAoAgAiASAAQQdqQXhxIgJqIQACQCACQQAgACABTRsNACAAPwBBEHRLBEAgABARRQ0BC0G40wAgADYCACABDwtByN0AQTA2AgBBfwuDAQIFfwF+AkAgAEKAgICAEFQEQCAAIQcMAQsDQCABQQFrIgEgACAAQgqAIgdCCn59p0EwcjoAACAAQv////+fAVYhBSAHIQAgBQ0ACwsgB6ciAgRAA0AgAUEBayIBIAIgAkEKbiIDQQpsa0EwcjoAACACQQlLIQYgAyECIAYNAAsLIAELegEDfwJAAkAgACIBQQNxRQ0AIAEtAABFBEBBAA8LA0AgAUEBaiIBQQNxRQ0BIAEtAAANAAsMAQsDQCABIgJBBGohASACKAIAIgNBf3MgA0GBgoQIa3FBgIGChHhxRQ0ACwNAIAIiAUEBaiECIAEtAAANAAsLIAEgAGsLvwQBCX8CQAJ/IAAtAAtBB3YEQCAAKAIEDAELIAAtAAtB/wBxCyICIAFJBEAjAEEQayIGJAAgASACayIFBEAgBSAALQALQQd2BH8gACgCCEH/////B3FBAWsFQQoLIgICfyAALQALQQd2BEAgACgCBAwBCyAALQALQf8AcQsiAWtLBEAjAEEQayIEJAACQCAFIAJrIAFqIgNB7////wcgAmtNBEACfyAALQALQQd2BEAgACgCAAwBCyAACyEHIARBBGoiCCAAIAJB5////wNJBH8gBCACQQF0NgIMIAQgAiADajYCBCMAQRBrIgMkACAIKAIAIARBDGoiCSgCAEkhCiADQRBqJAAgCSAIIAobKAIAIgNBC08EfyADQRBqQXBxIgMgA0EBayIDIANBC0YbBUEKC0EBagVB7////wcLEDAgBCgCBCEDIAQoAgg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GAAgACABKAIIQQAQHgRAIAEgAiADED0LC50BAQJ/IwBBQGoiAyQAAn9BASAAIAFBABAeDQAaQQAgAUUNABpBACABQezLABAgIgFFDQAaIANBDGpBAEE0ECYaIANBATYCOCADQX82AhQgAyAANgIQIAMgATYCCCABIANBCGogAigCAEEBIAEoAgAoAhwRBgAgAygCICIAQQFGBEAgAiADKAIYNgIACyAAQQFGCyEEIANBQGskACAECwoAIAAgAUEAEB4LTgIBfwF8IwBBEGsiAiQAIAJBADYCDCABKAIEQbTOACACQQxqEAkhAyACKAIMIgEEQCABEAILIAAgA0QAAAAAAAAAAGI6ADggAkEQaiQACzcBAX8jAEEQayICJAAgAiABLQA4NgIIIABBtM4AIAJBCGoQCDYCBCAAQbTUADYCACACQRBqJAALqAEBBX8gACgCVCIDKAIAIQUgAygCBCIEIAAoAhQgACgCHCIHayIGIAQgBkkbIgYEQCAFIAcgBhAiGiADIAMoAgAgBmoiBTYCACADIAMoAgQgBmsiBDYCBAsgBCACIAIgBEsbIgQEQCAFIAEgBBAiGiADIAMoAgAgBGoiBTYCACADIAMoAgQgBGs2AgQLIAVBADoAACAAIAAoAiwiATYCHCAAIAE2AhQgAguVAQECfyMAQRBrIgIkAEHEABAcIQEgACgCBCIAEAEgAiAANgIIIAFBqCwgAkEIahAINgIEIAFBtNQANgIAIAFBATYCHCABQbTUADYCGCABQQE2AhQgAUG01AA2AhAgAUEBNgIMIAFBtNQANgIIIAFBADoAICABQoCAgIAwNwI8IAFBADsANyABQQA7ACsgAkEQaiQAIAELigUCBn4CfyABIAEoAgBBB2pBeHEiAUEQajYCACAAIQkgASkDACEDIAEpAwghBSMAQSBrIgAkAAJAIAVC////////////AIMiBEKAgICAgIDAgDx9IARCgICAgICAwP/DAH1UBEAgBUIEhiADQjyIhCEEIANC//////////8PgyIDQoGAgICAgICACFoEQCAEQoGAgICAgICAwAB8IQIMAgsgBEKAgICAgICAgEB9IQIgA0KAgICAgICAgAhSDQEgAiAEQgGDfCECDAELIANQIARCgICAgICAwP//AFQgBEKAgICAgIDA//8AURtFBEAgBUIEhiADQjyIhEL/////////A4NCgICAgICAgPz/AIQhAgwBC0KAgICAgICA+P8AIQIgBEL///////+//8MAVg0AQgAhAiAEQjCIpyIBQZH3AEkNACADIQIgBUL///////8/g0KAgICAgIDAAIQiBCEGAkAgAUGB9wBrIghBwABxBEAgAyAIQUBqrYYhBkIAIQIMAQsgCEUNACAGIAitIgeGIAJBwAAgCGutiIQhBiACIAeGIQILIAAgAjcDECAAIAY3AxgCQEGB+AAgAWsiAUHAAHEEQCAEIAFBQGqtiCEDQgAhBAwBCyABRQ0AIARBwAAgAWuthiADIAGtIgKIhCEDIAQgAoghBAsgACADNwMAIAAgBDcDCCAAKQMIQgSGIAApAwAiA0I8iIQhAiAAKQMQIAApAxiEQgBSrSADQv//////////D4OEIgNCgYCAgICAgIAIWgRAIAJCAXwhAgwBCyADQoCAgICAgICACFINACACQgGDIAJ8IQILIABBIGokACAJIAIgBUKAgICAgICAgIB/g4S/OQMAC0ABAn8jAEEQayICJAAgAiABNgIMIAJBtNQANgIIIAJBCGogABEBACEDIAIoAgwiAQRAIAEQAwsgAkEQaiQAIAMLBABCAAsEAEEAC/YCAQh/IwBBIGsiAyQAIAMgACgCHCIENgIQIAAoAhQhBSADIAI2AhwgAyABNgIYIAMgBSAEayIBNgIUIAEgAmohBUECIQcCfwJAAkACQCAAKAI8IANBEGoiAUECIANBDGoQDSIEBH9ByN0AIAQ2AgBBfwVBAAsEQCABIQQMAQsDQCAFIAMoAgwiBkYNAiAGQQBIBEAgASEEDAQLIAEgBiABKAIEIghLIglBA3RqIgQgBiAIQQAgCRtrIgggBCgCAGo2AgAgAUEMQQQgCRtqIgEgASgCACAIazYCACAFIAZrIQUgACgCPCAEIgEgByAJayIHIANBDGoQDSIGBH9ByN0AIAY2AgBBfwVBAAtFDQALCyAFQX9HDQELIAAgACgCLCIBNgIcIAAgATYCFCAAIAEgACgCMGo2AhAgAgwBCyAAQQA2AhwgAEIANw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gCCCICNgIAIAMgAygCCEGAgICAeHEgBCgCDEH/////B3FyNgIIIAMgAygCCEGAgICAeHI2AgggAyAFNgIECyACIAYgBUEBahAjIARBEGokAAwBCxAnAAsLIANBKGogAUGwlgIgAxBTIAMoAiwhAiADQQA2AiwgAygCKCEFAkAgASgCDCIERQRAIAEgAjYCDCABIAU2AggMAQsgBBADIAMoAiwhBCABIAI2AgwgASAFNgIIIARFDQAgBBADIANBADYCLAsgAywAC0EASARAIAMoAgAQGQsgA0EANgIoQeTTAC0AAEEBcUUEQEEBQYguQQAQBSECQeTTAEEBOgAAQeDTACACNgIACwJ/QeDTACgCACABKAIEQeAJIANBKGpBABAEIhBEAAAAAAAA8EFjIBBEAAAAAAAAAABmcQRAIBCrDAELQQALIQIgAygCKCIFBEAgBRACCyABKAIcIgUEQCAFEAMLIAEgAjYCHCABQbTUADYCGCACEAEgAyACNgIoIAEoAhQiAhABIAMgAjYCMCADQQA2AjxB7NMALQAAQQFxRQRAQQNBjC5BABAFIQJB7NMAQQE6AABB6NMAIAI2AgALQejTACgCACABKAIEQfAIIANBPGogA0EoahAEGiADKAI8IgIEQCACEAILIAEoAhwiAhABIAMgAjYCKCABKAIMIgIQASADIAI2AjAgA0EANgI8QezTAC0AAEEBcUUEQEEDQYwuQQAQBSECQezTAEEBOgAAQejTACACNgIAC0Ho0wAoAgAgASgCBEHwCCADQTxqIANBKGoQBBogAygCPCICBEAgAhACCyABKAIcIgIQASADIAI2AiggA0EANgI8QczTAC0AAEEBcUUEQEECQZwtQQAQBSECQczTAEEBOgAAQcjTACACNgIAC0HI0wAoAgAgASgCBEHGCSADQTxqIANBKGoQBBogAygCPCICBEAgAhACCyAAIAEoAhwiATYCBCAAQbTUADYCACABEAEgAywAJ0EASARAIAMoAhwQGQsgA0FAayQADwsQNwALEDcACxA3AAvYAgECfyMAQRBrIgEkACAAKAIUIgIQASABIAI2AgggAUEANgIEQczTAC0AAEEBcUUEQEECQZwtQQAQBSECQczTAEEBOgAAQcjTACACNgIAC0HI0wAoAgAgACgCBEH9CCABQQRqIAFBCGoQBBogASgCBCICBEAgAhACCyAAKAIMIgIQASABIAI2AgggAUEANgIEQczTAC0AAEEBcUUEQEECQZwtQQAQBSECQczTAEEBOgAAQcjTACACNgIAC0HI0wAoAgAgACgCBEH9CCABQQRqIAFBCGoQBBogASgCBCICBEAgAhACCyAAKAIcIgIQASABIAI2AgggAUEANgIEQczTAC0AAEEBcUUEQEECQZwtQQAQBSECQczTAEEBOgAAQcjTACACNgIAC0HI0wAoAgAgACgCBEHSCSABQQRqIAFBCGoQBBogASgCBCIABEAgABACCyABQRBqJAALBQBBxCsLNQEBfyABIAAoAgQiAkEBdWohASAAKAIAIQAgASACQQFxBH8gASgCACAAaigCAAUgAAsRAwALLwACfyAALAArQQBIBEAgAEEANgIkIAAoAiAMAQsgAEEAOgArIABBIGoLQQA6AAALPQEBfyABIAAoAgQiBkEBdWohASAAKAIAIQAgASACIAMgBCAFIAZBAXEEfyABKAIAIABqKAIABSAACxENAAuLCQEEfyMAQRBrIggkACMAQYACayIFJAAgBUHEAGoiBiABECEgBSAGQf4RECUiBigCCDYCWCAFIAYpAgA3A1AgBkIANwIAIAZBADYCCCAFIAVB0ABqQZQUEBoiBigCCDYCaCAFIAYpAgA3A2AgBkIANwIAIAZBADYCCCAFQThqIgYgAhAhIAUgBUHgAGogBSgCOCAGIAUtAEMiBsBBAEgiBxsgBSgCPCAGIAcbEBsiBigCCDYCeCAFIAYpAgA3A3AgBkIANwIAIAZBADYCCCAFIAVB8ABqQdkREBoiBigCCDYCiAEgBSAGKQIANwOAASAGQgA3AgAgBkEANgIIIAVBLGoiBiABIAOgECEgBSAFQYABaiAFKAIsIAYgBS0ANyIGwEEASCIHGyAFKAIwIAYgBxsQGyIGKAIINgKYASAFIAYpAgA3A5ABIAZCADcCACAGQQA2AgggBSAFQZABakGUFBAaIgYoAgg2AqgBIAUgBikCADcDoAEgBkIANwIAIAZBADYCCCAFQSBqIgYgAiAEoBAhIAUg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wZV9pbmZvRQAAAAAIKAAAKCgAAOwlAAAAAAAATCYAAB8AAAAtAAAAIQAAACIAAAAuAAAAAAAAAJwoAAAvAAAAMAAAADEAAABTdDlleGNlcHRpb24AAAAA4CcAAIwoAAAAAAAAyCgAABYAAAAyAAAAMwAAAFN0MTFsb2dpY19lcnJvcgAIKAAAuCgAAJwoAAAAAAAA/CgAABYAAAA0AAAAMwAAAFN0MTJsZW5ndGhfZXJyb3IAAAAACCgAAOgoAADIKAAAU3Q5dHlwZV9pbmZvAAAAAOAnAAAIKQBBoNIACwljFAAAAAAAAAUAQbTSAAsBGQBBzNIACw4aAAAAGwAAAMgqAAAABABB5NIACwEBAEH00gALBf////8KAEG40wALA8AwAQ==")||(m=y,y=i.locateFile?i.locateFile(m,r):r+m);var S=e=>{for(;e.length>0;)e.shift()(i)};function M(e){this.excPtr=e,this.ptr=e-24,this.set_type=function(e){d[this.ptr+4>>2]=e},this.get_type=function(){return d[this.ptr+4>>2]},this.set_destructor=function(e){d[this.ptr+8>>2]=e},this.get_destructor=function(){return d[this.ptr+8>>2]},this.set_caught=function(e){e=e?1:0,g[this.ptr+12|0]=e},this.get_caught=function(){return 0!=g[this.ptr+12|0]},this.set_rethrown=function(e){e=e?1:0,g[this.ptr+13|0]=e},this.get_rethrown=function(){return 0!=g[this.ptr+13|0]},this.init=function(e,A){this.set_adjusted_ptr(0),this.set_type(e),this.set_destructor(A)},this.set_adjusted_ptr=function(e){d[this.ptr+16>>2]=e},this.get_adjusted_ptr=function(){return d[this.ptr+16>>2]},this.get_exception_ptr=function(){if(eA(this.get_type()))return d[this.excPtr>>2];var e=this.get_adjusted_ptr();return 0!==e?e:this.excPtr}}i.noExitRuntime;var b,L,N,_=e=>{for(var A="",t=e;c[t];)A+=b[c[t++]];return A},k={},G={},F={},V=e=>{throw new L(e)},P=e=>{throw new N(e)},Y=(e,A,t)=>{function i(A){var i=t(A);i.length!==e.length&&P("Mismatched type converter count");for(var o=0;o<e.length;++o)x(e[o],i[o])}e.forEach((function(e){F[e]=A}));var o=new Array(A.length),r=[],n=0;A.forEach(((e,A)=>{G.hasOwnProperty(e)?o[A]=G[e]:(r.push(e),k.hasOwnProperty(e)||(k[e]=[]),k[e].push((()=>{o[A]=G[e],++n===r.length&&i(o)})))})),0===r.length&&i(o)};function x(e,A,t={}){if(!("argPackAdvance"in A))throw new TypeError("registerType registeredInstance requires argPackAdvance");return function(e,A,t={}){var i=A.name;if(e||V(`type "${i}" must have a positive integer typeid pointer`),G.hasOwnProperty(e)){if(t.ignoreDuplicateRegistrations)return;V(`Cannot register type '${i}' twice`)}if(G[e]=A,delete F[e],k.hasOwnProperty(e)){var o=k[e];delete k[e],o.forEach((e=>e()))}}(e,A,t)}var H,U=e=>{V(e.$$.ptrType.registeredClass.name+" instance already deleted")},O=!1,J=e=>{},K=e=>{e.count.value-=1,0===e.count.value&&(e=>{e.smartPtr?e.smartPtrType.rawDestructor(e.smartPtr):e.ptrType.registeredClass.rawDestructor(e.ptr)})(e)},z=(e,A,t)=>{if(A===t)return e;if(void 0===t.baseClass)return null;var i=z(e,A,t.baseClass);return null===i?null:t.downcast(i)},Z={},W=[],j=()=>{for(;W.length;){var e=W.pop();e.$$.deleteScheduled=!1,e.delete()}},q={},X=(e,A)=>(A.ptrType&&A.ptr||P("makeClassHandle requires ptr and ptrType"),!!A.smartPtrType!=!!A.smartPtr&&P("Both smartPtrType and smartPtr must be specified"),A.count={value:1},$(Object.create(e,{$$:{value:A}}))),$=e=>"undefined"==typeof FinalizationRegistry?($=e=>e,e):(O=new FinalizationRegistry((e=>{K(e.$$)})),J=e=>O.unregister(e),($=e=>{var A=e.$$;if(A.smartPtr){var t={$$:A};O.register(e,t,e)}return e})(e));function ee(){}var Ae=(e,A)=>Object.defineProperty(A,"name",{value:e}),te=(e,A,t)=>{if(void 0===e[A].overloadTable){var i=e[A];e[A]=function(){return e[A].overloadTable.hasOwnProperty(arguments.length)||V(`Function '${t}' called with an invalid number of arguments (${arguments.length}) - expects one of (${e[A].overloadTable})!`),e[A].overloadTable[arguments.length].apply(this,arguments)},e[A].overloadTable=[],e[A].overloadTable[i.argCount]=i}};function ie(e,A,t,i,o,r,n,s){this.name=e,this.constructor=A,this.instancePrototype=t,this.rawDestructor=i,this.baseClass=o,this.getActualType=r,this.upcast=n,this.downcast=s,this.pureVirtualFunctions=[]}var oe=(e,A,t)=>{for(;A!==t;)A.upcast||V(`Expected null or instance of ${t.name}, got an instance of ${A.name}`),e=A.upcast(e),A=A.baseClass;return e};function re(e,A){if(null===A)return this.isReference&&V(`null is not a valid ${this.name}`),0;A.$$||V(`Cannot pass "${Se(A)}" as a ${this.name}`),A.$$.ptr||V(`Cannot pass deleted object as a pointer of type ${this.name}`);var t=A.$$.ptrType.registeredClass;return oe(A.$$.ptr,t,this.registeredClass)}function ne(e,A){var t;if(null===A)return this.isReference&&V(`null is not a valid ${this.name}`),this.isSmartPointer?(t=this.rawConstructor(),null!==e&&e.push(this.rawDestructor,t),t):0;A.$$||V(`Cannot pass "${Se(A)}" as a ${this.name}`),A.$$.ptr||V(`Cannot pass deleted object as a pointer of type ${this.name}`),!this.isConst&&A.$$.ptrType.isConst&&V(`Cannot convert argument of type ${A.$$.smartPtrType?A.$$.smartPtrType.name:A.$$.ptrType.name} to parameter type ${this.name}`);var i=A.$$.ptrType.registeredClass;if(t=oe(A.$$.ptr,i,this.registeredClass),this.isSmartPointer)switch(void 0===A.$$.smartPtr&&V("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:A.$$.smartPtrType===this?t=A.$$.smartPtr:V(`Cannot convert argument of type ${A.$$.smartPtrType?A.$$.smartPtrType.name:A.$$.ptrType.name} to parameter type ${this.name}`);break;case 1:t=A.$$.smartPtr;break;case 2:if(A.$$.smartPtrType===this)t=A.$$.smartPtr;else{var o=A.clone();t=this.rawShare(t,me.toHandle((()=>o.delete()))),null!==e&&e.push(this.rawDestructor,t)}break;default:V("Unsupporting sharing policy")}return t}function se(e,A){if(null===A)return this.isReference&&V(`null is not a valid ${this.name}`),0;A.$$||V(`Cannot pass "${Se(A)}" as a ${this.name}`),A.$$.ptr||V(`Cannot pass deleted object as a pointer of type ${this.name}`),A.$$.ptrType.isConst&&V(`Cannot convert argument of type ${A.$$.ptrType.name} to parameter type ${this.name}`);var t=A.$$.ptrType.registeredClass;return oe(A.$$.ptr,t,this.registeredClass)}function ae(e){return this.fromWireType(d[e>>2])}function ge(e,A,t,i,o,r,n,s,a,g,c){this.name=e,this.registeredClass=A,this.isReference=t,this.isConst=i,this.isSmartPointer=o,this.pointeeType=r,this.sharingPolicy=n,this.rawGetPointee=s,this.rawConstructor=a,this.rawShare=g,this.rawDestructor=c,o||void 0!==A.baseClass?this.toWireType=ne:i?(this.toWireType=re,this.destructorFunction=null):(this.toWireType=se,this.destructorFunction=null)}var ce,Ce,ue=[],Ie=e=>{var A=ue[e];return A||(e>=ue.length&&(ue.length=e+1),ue[e]=A=ce.get(e)),A},de=(e,A,t)=>e.includes("j")?((e,A,t)=>{var o=i["dynCall_"+e];return t&&t.length?o.apply(null,[A].concat(t)):o.call(null,A)})(e,A,t):Ie(A).apply(null,t),le=(e,A)=>{var t,i,o,r=(e=_(e)).includes("j")?(t=e,i=A,o=[],function(){return o.length=0,Object.assign(o,arguments),de(t,i,o)}):Ie(A);return"function"!=typeof r&&V(`unknown function pointer with signature ${e}: ${A}`),r},he=e=>{var A=Xe(e),t=_(A);return $e(A),t},Be=(e,A)=>{var t=[],i={};throw A.forEach((function e(A){i[A]||G[A]||(F[A]?F[A].forEach(e):(t.push(A),i[A]=!0))})),new Ce(`${e}: `+t.map(he).join([", "]))},Ee=(e,A)=>{for(var t=[],i=0;i<e;i++)t.push(d[A+4*i>>2]);return t},Qe=e=>{for(;e.length;){var A=e.pop();e.pop()(A)}};function pe(e,A,t,i,o,r){var n=A.length;n<2&&V("argTypes array size mismatch! Must at least get return value and 'this' types!");for(var s=null!==A[1]&&null!==t,a=!1,g=1;g<A.length;++g)if(null!==A[g]&&void 0===A[g].destructorFunction){a=!0;break}var c="void"!==A[0].name,C=n-2,u=new Array(C),I=[],d=[];return Ae(e,(function(){var t;arguments.length!==C&&V(`function ${e} called with ${arguments.length} arguments, expected ${C}`),d.length=0,I.length=s?2:1,I[0]=o,s&&(t=A[1].toWireType(d,this),I[1]=t);for(var r=0;r<C;++r)u[r]=A[r+2].toWireType(d,arguments[r]),I.push(u[r]);return function(e){if(a)Qe(d);else for(var i=s?1:2;i<A.length;i++){var o=1===i?t:u[i-2];null!==A[i].destructorFunction&&A[i].destructorFunction(o)}if(c)return A[0].fromWireType(e)}(i.apply(null,I))}))}var fe=(e,A,t)=>(e instanceof Object||V(`${t} with invalid "this": ${e}`),e instanceof A.registeredClass.constructor||V(`${t} incompatible with "this" of type ${e.constructor.name}`),e.$$.ptr||V(`cannot call emscripten binding method ${t} on deleted object`),oe(e.$$.ptr,e.$$.ptrType.registeredClass,A.registeredClass));function Te(){this.allocated=[void 0],this.freelist=[]}var ve=new Te,ye=e=>{e>=ve.reserved&&0==--ve.get(e).refcount&&ve.free(e)},me={toValue:e=>(e||V("Cannot use deleted val. handle = "+e),ve.get(e).value),toHandle:e=>{switch(e){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:return ve.allocate({refcount:1,value:e})}}};function Re(e){return this.fromWireType(I[e>>2])}var we,De,Se=e=>{if(null===e)return"null";var A=typeof e;return"object"===A||"array"===A||"function"===A?e.toString():""+e},Me=(e,A)=>{switch(A){case 4:return function(e){return this.fromWireType(l[e>>2])};case 8:return function(e){return this.fromWireType(h[e>>3])};default:throw new TypeError(`invalid float width (${A}): ${e}`)}},be=(e,A,t)=>{switch(A){case 1:return t?e=>g[0|e]:e=>c[0|e];case 2:return t?e=>C[e>>1]:e=>u[e>>1];case 4:return t?e=>I[e>>2]:e=>d[e>>2];default:throw new TypeError(`invalid integer width (${A}): ${e}`)}},Le="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,Ne=(e,A,t)=>{for(var i=A+t,o=A;e[o]&&!(o>=i);)++o;if(o-A>16&&e.buffer&&Le)return Le.decode(e.subarray(A,o));for(var r="";A<o;){var n=e[A++];if(128&n){var s=63&e[A++];if(192!=(224&n)){var a=63&e[A++];if((n=224==(240&n)?(15&n)<<12|s<<6|a:(7&n)<<18|s<<12|a<<6|63&e[A++])<65536)r+=String.fromCharCode(n);else{var g=n-65536;r+=String.fromCharCode(55296|g>>10,56320|1023&g)}}else r+=String.fromCharCode((31&n)<<6|s)}else r+=String.fromCharCode(n)}return r},_e=(e,A)=>e?Ne(c,e,A):"",ke="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0,Ge=(e,A)=>{for(var t=e,i=t>>1,o=i+A/2;!(i>=o)&&u[i];)++i;if((t=i<<1)-e>32&&ke)return ke.decode(c.subarray(e,t));for(var r="",n=0;!(n>=A/2);++n){var s=C[e+2*n>>1];if(0==s)break;r+=String.fromCharCode(s)}return r},Fe=(e,A,t)=>{if(void 0===t&&(t=2147483647),t<2)return 0;for(var i=A,o=(t-=2)<2*e.length?t/2:e.length,r=0;r<o;++r){var n=e.charCodeAt(r);C[A>>1]=n,A+=2}return C[A>>1]=0,A-i},Ve=e=>2*e.length,Pe=(e,A)=>{for(var t=0,i="";!(t>=A/4);){var o=I[e+4*t>>2];if(0==o)break;if(++t,o>=65536){var r=o-65536;i+=String.fromCharCode(55296|r>>10,56320|1023&r)}else i+=String.fromCharCode(o)}return i},Ye=(e,A,t)=>{if(void 0===t&&(t=2147483647),t<4)return 0;for(var i=A,o=i+t-4,r=0;r<e.length;++r){var n=e.charCodeAt(r);if(n>=55296&&n<=57343&&(n=65536+((1023&n)<<10)|1023&e.charCodeAt(++r)),I[A>>2]=n,(A+=4)+4>o)break}return I[A>>2]=0,A-i},xe=e=>{for(var A=0,t=0;t<e.length;++t){var i=e.charCodeAt(t);i>=55296&&i<=57343&&++t,A+=4}return A},He=(e,A)=>{var t=G[e];return void 0===t&&V(A+" has unknown type "+he(e)),t},Ue=(e,A,t)=>{var i=[],o=e.toWireType(i,t);return i.length&&(d[A>>2]=me.toHandle(i)),o},Oe={},Je=[],Ke=Reflect.construct,ze=[null,[],[]];(()=>{for(var e=new Array(256),A=0;A<256;++A)e[A]=String.fromCharCode(A);b=e})(),L=i.BindingError=class extends Error{constructor(e){super(e),this.name="BindingError"}},N=i.InternalError=class extends Error{constructor(e){super(e),this.name="InternalError"}},Object.assign(ee.prototype,{isAliasOf(e){if(!(this instanceof ee))return!1;if(!(e instanceof ee))return!1;var A=this.$$.ptrType.registeredClass,t=this.$$.ptr;e.$$=e.$$;for(var i=e.$$.ptrType.registeredClass,o=e.$$.ptr;A.baseClass;)t=A.upcast(t),A=A.baseClass;for(;i.baseClass;)o=i.upcast(o),i=i.baseClass;return A===i&&t===o},clone(){if(this.$$.ptr||U(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var e,A=$(Object.create(Object.getPrototypeOf(this),{$$:{value:(e=this.$$,{count:e.count,deleteScheduled:e.deleteScheduled,preservePointerOnDelete:e.preservePointerOnDelete,ptr:e.ptr,ptrType:e.ptrType,smartPtr:e.smartPtr,smartPtrType:e.smartPtrType})}}));return A.$$.count.value+=1,A.$$.deleteScheduled=!1,A},delete(){this.$$.ptr||U(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&V("Object already scheduled for deletion"),J(this),K(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)},isDeleted(){return!this.$$.ptr},deleteLater(){return this.$$.ptr||U(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&V("Object already scheduled for deletion"),W.push(this),1===W.length&&H&&H(j),this.$$.deleteScheduled=!0,this}}),i.getInheritedInstanceCount=()=>Object.keys(q).length,i.getLiveInheritedInstances=()=>{var e=[];for(var A in q)q.hasOwnProperty(A)&&e.push(q[A]);return e},i.flushPendingDeletes=j,i.setDelayFunction=e=>{H=e,W.length&&H&&H(j)},Object.assign(ge.prototype,{getPointee(e){return this.rawGetPointee&&(e=this.rawGetPointee(e)),e},destructor(e){this.rawDestructor&&this.rawDestructor(e)},argPackAdvance:8,readValueFromPointer:ae,deleteObject(e){null!==e&&e.delete()},fromWireType:function(e){var A=this.getPointee(e);if(!A)return this.destructor(e),null;var t=((e,A)=>(A=((e,A)=>{for(void 0===A&&V("ptr should not be undefined");e.baseClass;)A=e.upcast(A),e=e.baseClass;return A})(e,A),q[A]))(this.registeredClass,A);if(void 0!==t){if(0===t.$$.count.value)return t.$$.ptr=A,t.$$.smartPtr=e,t.clone();var i=t.clone();return this.destructor(e),i}function o(){return this.isSmartPointer?X(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:A,smartPtrType:this,smartPtr:e}):X(this.registeredClass.instancePrototype,{ptrType:this,ptr:e})}var r,n=this.registeredClass.getActualType(A),s=Z[n];if(!s)return o.call(this);r=this.isConst?s.constPointerType:s.pointerType;var a=z(A,this.registeredClass,r.registeredClass);return null===a?o.call(this):this.isSmartPointer?X(r.registeredClass.instancePrototype,{ptrType:r,ptr:a,smartPtrType:this,smartPtr:e}):X(r.registeredClass.instancePrototype,{ptrType:r,ptr:a})}}),Ce=i.UnboundTypeError=(we=Error,(De=Ae("UnboundTypeError",(function(e){this.name="UnboundTypeError",this.message=e;var A=new Error(e).stack;void 0!==A&&(this.stack=this.toString()+"\n"+A.replace(/^Error(:[^\n]*)?\n/,""))}))).prototype=Object.create(we.prototype),De.prototype.constructor=De,De.prototype.toString=function(){return void 0===this.message?this.name:`${this.name}: ${this.message}`},De),Object.assign(Te.prototype,{get(e){return this.allocated[e]},has(e){return void 0!==this.allocated[e]},allocate(e){var A=this.freelist.pop()||this.allocated.length;return this.allocated[A]=e,A},free(e){this.allocated[e]=void 0,this.freelist.push(e)}}),ve.allocated.push({value:void 0},{value:null},{value:!0},{value:!1}),ve.reserved=ve.allocated.length,i.count_emval_handles=()=>{for(var e=0,A=ve.reserved;A<ve.allocated.length;++A)void 0!==ve.allocated[A]&&++e;return e};var Ze,We={w:(e,A,t)=>{throw new M(e).init(A,t),e},q:(e,A,t,i,o)=>{},u:(e,A,t,i)=>{x(e,{name:A=_(A),fromWireType:function(e){return!!e},toWireType:function(e,A){return A?t:i},argPackAdvance:8,readValueFromPointer:function(e){return this.fromWireType(c[e])},destructorFunction:null})},y:(e,A,t,o,r,n,s,a,g,c,C,u,I)=>{C=_(C),n=le(r,n),a&&(a=le(s,a)),c&&(c=le(g,c)),I=le(u,I);var d=(e=>{if(void 0===e)return"_unknown";var A=(e=e.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return A>=48&&A<=57?`_${e}`:e})(C);((e,A,t)=>{i.hasOwnProperty(e)?(V(`Cannot register public name '${e}' twice`),te(i,e,e),i.hasOwnProperty(t)&&V(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`),i[e].overloadTable[t]=A):i[e]=A})(d,(function(){Be(`Cannot construct ${C} due to unbound types`,[o])})),Y([e,A,t],o?[o]:[],(function(A){var t,r;A=A[0],r=o?(t=A.registeredClass).instancePrototype:ee.prototype;var s=Ae(C,(function(){if(Object.getPrototypeOf(this)!==g)throw new L("Use 'new' to construct "+C);if(void 0===u.constructor_body)throw new L(C+" has no accessible constructor");var e=u.constructor_body[arguments.length];if(void 0===e)throw new L(`Tried to invoke ctor of ${C} with invalid number of parameters (${arguments.length}) - expected (${Object.keys(u.constructor_body).toString()}) parameters instead!`);return e.apply(this,arguments)})),g=Object.create(r,{constructor:{value:s}});s.prototype=g;var u=new ie(C,s,g,I,t,n,a,c);u.baseClass&&(void 0===u.baseClass.__derivedClasses&&(u.baseClass.__derivedClasses=[]),u.baseClass.__derivedClasses.push(u));var l=new ge(C,u,!0,!1,!1),h=new ge(C+"*",u,!1,!1,!1),B=new ge(C+" const*",u,!1,!0,!1);return Z[e]={pointerType:h,constPointerType:B},((e,A,t)=>{i.hasOwnProperty(e)||P("Replacing nonexistant public symbol"),i[e].overloadTable,i[e]=A,i[e].argCount=t})(d,s),[l,h,B]}))},x:(e,A,t,i,o,r)=>{var n=Ee(A,t);o=le(i,o),Y([],[e],(function(e){var t=`constructor ${(e=e[0]).name}`;if(void 0===e.registeredClass.constructor_body&&(e.registeredClass.constructor_body=[]),void 0!==e.registeredClass.constructor_body[A-1])throw new L(`Cannot register multiple constructors with identical number of parameters (${A-1}) for class '${e.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return e.registeredClass.constructor_body[A-1]=()=>{Be(`Cannot construct ${e.name} due to unbound types`,n)},Y([],n,(i=>(i.splice(1,0,null),e.registeredClass.constructor_body[A-1]=pe(t,i,null,o,r),[]))),[]}))},h:(e,A,t,i,o,r,n,s,a)=>{var g=Ee(t,i);A=(e=>{const A=(e=e.trim()).indexOf("(");return-1!==A?e.substr(0,A):e})(A=_(A)),r=le(o,r),Y([],[e],(function(e){var i=`${(e=e[0]).name}.${A}`;function o(){Be(`Cannot call ${i} due to unbound types`,g)}A.startsWith("@@")&&(A=Symbol[A.substring(2)]),s&&e.registeredClass.pureVirtualFunctions.push(A);var a=e.registeredClass.instancePrototype,c=a[A];return void 0===c||void 0===c.overloadTable&&c.className!==e.name&&c.argCount===t-2?(o.argCount=t-2,o.className=e.name,a[A]=o):(te(a,A,i),a[A].overloadTable[t-2]=o),Y([],g,(function(o){var s=pe(i,o,e,r,n);return void 0===a[A].overloadTable?(s.argCount=t-2,a[A]=s):a[A].overloadTable[t-2]=s,[]})),[]}))},k:(e,A,t,i,o,r,n,s,a,g)=>{A=_(A),o=le(i,o),Y([],[e],(function(e){var i=`${(e=e[0]).name}.${A}`,c={get(){Be(`Cannot access ${i} due to unbound types`,[t,n])},enumerable:!0,configurable:!0};return c.set=a?()=>Be(`Cannot access ${i} due to unbound types`,[t,n]):e=>V(i+" is a read-only property"),Object.defineProperty(e.registeredClass.instancePrototype,A,c),Y([],a?[t,n]:[t],(function(t){var n=t[0],c={get(){var A=fe(this,e,i+" getter");return n.fromWireType(o(r,A))},enumerable:!0};if(a){a=le(s,a);var C=t[1];c.set=function(A){var t=fe(this,e,i+" setter"),o=[];a(g,t,C.toWireType(o,A)),Qe(o)}}return Object.defineProperty(e.registeredClass.instancePrototype,A,c),[]})),[]}))},t:(e,A)=>{x(e,{name:A=_(A),fromWireType:e=>{var A=me.toValue(e);return ye(e),A},toWireType:(e,A)=>me.toHandle(A),argPackAdvance:8,readValueFromPointer:Re,destructorFunction:null})},p:(e,A,t)=>{x(e,{name:A=_(A),fromWireType:e=>e,toWireType:(e,A)=>A,argPackAdvance:8,readValueFromPointer:Me(A,t),destructorFunction:null})},g:(e,A,t,i,o)=>{A=_(A);var r=e=>e;if(0===i){var n=32-8*t;r=e=>e<<n>>>n}var s=A.includes("unsigned");x(e,{name:A,fromWireType:r,toWireType:s?function(e,A){return this.name,A>>>0}:function(e,A){return this.name,A},argPackAdvance:8,readValueFromPointer:be(A,t,0!==i),destructorFunction:null})},a:(e,A,t)=>{var i=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][A];function o(e){var A=d[e>>2],t=d[e+4>>2];return new i(g.buffer,t,A)}x(e,{name:t=_(t),fromWireType:o,argPackAdvance:8,readValueFromPointer:o},{ignoreDuplicateRegistrations:!0})},o:(e,A)=>{var t="std::string"===(A=_(A));x(e,{name:A,fromWireType(e){var A,i=d[e>>2],o=e+4;if(t)for(var r=o,n=0;n<=i;++n){var s=o+n;if(n==i||0==c[s]){var a=_e(r,s-r);void 0===A?A=a:(A+=String.fromCharCode(0),A+=a),r=s+1}}else{var g=new Array(i);for(n=0;n<i;++n)g[n]=String.fromCharCode(c[o+n]);A=g.join("")}return $e(e),A},toWireType(e,A){var i;A instanceof ArrayBuffer&&(A=new Uint8Array(A));var o="string"==typeof A;o||A instanceof Uint8Array||A instanceof Uint8ClampedArray||A instanceof Int8Array||V("Cannot pass non-string to std::string"),i=t&&o?(e=>{for(var A=0,t=0;t<e.length;++t){var i=e.charCodeAt(t);i<=127?A++:i<=2047?A+=2:i>=55296&&i<=57343?(A+=4,++t):A+=3}return A})(A):A.length;var r=qe(4+i+1),n=r+4;if(d[r>>2]=i,t&&o)((e,A,t,i)=>{if(!(i>0))return 0;for(var o=t+i-1,r=0;r<e.length;++r){var n=e.charCodeAt(r);if(n>=55296&&n<=57343&&(n=65536+((1023&n)<<10)|1023&e.charCodeAt(++r)),n<=127){if(t>=o)break;A[t++]=n}else if(n<=2047){if(t+1>=o)break;A[t++]=192|n>>6,A[t++]=128|63&n}else if(n<=65535){if(t+2>=o)break;A[t++]=224|n>>12,A[t++]=128|n>>6&63,A[t++]=128|63&n}else{if(t+3>=o)break;A[t++]=240|n>>18,A[t++]=128|n>>12&63,A[t++]=128|n>>6&63,A[t++]=128|63&n}}A[t]=0})(A,c,n,i+1);else if(o)for(var s=0;s<i;++s){var a=A.charCodeAt(s);a>255&&($e(n),V("String has UTF-16 code units that do not fit in 8 bits")),c[n+s]=a}else for(s=0;s<i;++s)c[n+s]=A[s];return null!==e&&e.push($e,r),r},argPackAdvance:8,readValueFromPointer:ae,destructorFunction(e){$e(e)}})},l:(e,A,t)=>{var i,o,r,n,s;t=_(t),2===A?(i=Ge,o=Fe,n=Ve,r=()=>u,s=1):4===A&&(i=Pe,o=Ye,n=xe,r=()=>d,s=2),x(e,{name:t,fromWireType:e=>{for(var t,o=d[e>>2],n=r(),a=e+4,g=0;g<=o;++g){var c=e+4+g*A;if(g==o||0==n[c>>s]){var C=i(a,c-a);void 0===t?t=C:(t+=String.fromCharCode(0),t+=C),a=c+A}}return $e(e),t},toWireType:(e,i)=>{"string"!=typeof i&&V(`Cannot pass non-string to C++ string type ${t}`);var r=n(i),a=qe(4+r+A);return d[a>>2]=r>>s,o(i,a+4,r+A),null!==e&&e.push($e,a),a},argPackAdvance:8,readValueFromPointer:Re,destructorFunction(e){$e(e)}})},v:(e,A)=>{x(e,{isVoid:!0,name:A=_(A),argPackAdvance:0,fromWireType:()=>{},toWireType:(e,A)=>{}})},j:(e,A,t)=>(e=me.toValue(e),A=He(A,"emval::as"),Ue(A,t,e)),e:(e,A,t,i,o)=>{var r,n;return(e=Je[e])(A=me.toValue(A),A[t=void 0===(n=Oe[r=t])?_(r):n],i,o)},d:ye,f:(e,A,t)=>{var i=((e,A)=>{for(var t=new Array(e),i=0;i<e;++i)t[i]=He(d[A+4*i>>2],"parameter "+i);return t})(e,A),o=i.shift();e--;var r,n,s=new Array(e),a=`methodCaller<(${i.map((e=>e.name)).join(", ")}) => ${o.name}>`;return r=Ae(a,((A,r,n,a)=>{for(var g=0,c=0;c<e;++c)s[c]=i[c].readValueFromPointer(a+g),g+=i[c].argPackAdvance;var C=1===t?Ke(r,s):r.apply(A,s);for(c=0;c<e;++c)i[c].deleteObject&&i[c].deleteObject(s[c]);return Ue(o,n,C)})),n=Je.length,Je.push(r),n},b:e=>{e>4&&(ve.get(e).refcount+=1)},c:e=>{var A=me.toValue(e);Qe(A),ye(e)},i:(e,A)=>{var t=(e=He(e,"_emval_take_value")).readValueFromPointer(A);return me.toHandle(t)},m:()=>{v("")},s:(e,A,t)=>c.copyWithin(e,A,A+t),r:e=>{c.length,v("OOM")},n:(e,A,t,i)=>{for(var o,r,n,g=0,C=0;C<t;C++){var u=d[A>>2],I=d[A+4>>2];A+=8;for(var l=0;l<I;l++)o=e,r=c[u+l],n=void 0,n=ze[o],0===r||10===r?((1===o?s:a)(Ne(n,0)),n.length=0):n.push(r);g+=I}return d[i>>2]=g,0}},je=function(){var e={a:We};function A(e,A){var t,o;return je=e.exports,t=je.z.buffer,i.HEAP8=g=new Int8Array(t),i.HEAP16=C=new Int16Array(t),i.HEAPU8=c=new Uint8Array(t),i.HEAPU16=u=new Uint16Array(t),i.HEAP32=I=new Int32Array(t),i.HEAPU32=d=new Uint32Array(t),i.HEAPF32=l=new Float32Array(t),i.HEAPF64=h=new Float64Array(t),ce=je.C,o=je.A,Q.unshift(o),function(){if(f--,i.monitorRunDependencies&&i.monitorRunDependencies(f),0==f&&T){var e=T;T=null,e()}}(),je}if(f++,i.monitorRunDependencies&&i.monitorRunDependencies(f),i.instantiateWasm)try{return i.instantiateWasm(e,A)}catch(e){a(`Module.instantiateWasm callback failed with error: ${e}`),t(e)}return function(e,A,t,i){return function(e,A,t){return D(e).then((e=>WebAssembly.instantiate(e,A))).then((e=>e)).then(t,(e=>{a(`failed to asynchronously prepare wasm: ${e}`),v(e)}))}(A,t,i)}(0,y,e,(function(e){A(e.instance)})).catch(t),{}}(),qe=e=>(qe=je.B)(e),Xe=e=>(Xe=je.D)(e),$e=e=>($e=je.E)(e),eA=e=>(eA=je.F)(e);function AA(){function e(){Ze||(Ze=!0,i.calledRun=!0,B||(S(Q),A(i),i.onRuntimeInitialized&&i.onRuntimeInitialized(),function(){if(i.postRun)for("function"==typeof i.postRun&&(i.postRun=[i.postRun]);i.postRun.length;)e=i.postRun.shift(),p.unshift(e);var e;S(p)}()))}f>0||(function(){if(i.preRun)for("function"==typeof i.preRun&&(i.preRun=[i.preRun]);i.preRun.length;)e=i.preRun.shift(),E.unshift(e);var e;S(E)}(),f>0||(i.setStatus?(i.setStatus("Running..."),setTimeout((function(){setTimeout((function(){i.setStatus("")}),1),e()}),1)):e()))}if(i.dynCall_jiji=(e,A,t,o,r)=>(i.dynCall_jiji=je.G)(e,A,t,o,r),i._vertexShaderSource=10528,T=function e(){Ze||AA(),Ze||(T=e)},i.preInit)for("function"==typeof i.preInit&&(i.preInit=[i.preInit]);i.preInit.length>0;)i.preInit.pop()();return AA(),e.ready}),fr=pr,Tr=0,vr=class e{constructor(e){this.core=e,Er(this,"seq"),Er(this,"_core"),Er(this,"log"),Er(this,"beautyParams"),Tr+=1,this.seq=Tr,this._core=e,this.log=e.log.createChild({id:`${this.getAlias()}${Tr}`}),this.log.info("created")}getName(){return e.Name}getAlias(){return"bb"}getValidateRule(e){switch(e){case"start":case"update":return function(e){return{name:"BasicBeautyOptions",type:"object",required:!0,allowEmpty:!1,properties:{beauty:{required:!1,type:"number"},brightness:{required:!1,type:"number"},ruddy:{required:!1,type:"number"}},validate(A,t,i,o){const{RtcError:r,ErrorCode:n,ErrorCodeDictionary:s}=e.errorModule;if(e.utils.isOverseaSdkAppId(A.sdkAppId))throw new r({code:n.INVALID_OPERATION,extraCode:s.INVALID_OPERATION,message:"This feature is not yet available in your country or region. If you have any questions, you can go to the community for consultation: https://zhiliao.qq.com/s/cWSPGIIM62CC/c3TPGIIM62CQ"})}}}(this._core);case"stop":return this._core,{name:"StopBasicBeautyOptions",required:!1}}}getGroup(){return"bb"}async start(e){this._core.room.videoManager.Wasm||(this._core.room.videoManager.Wasm=await fr()),this._core.room.videoManager.renderMode="webgl";const A=this._core.utils.isUndefined(e.beauty)?.5:e.beauty,t=this._core.utils.isUndefined(e.brightness)?.5:e.brightness,i=this._core.utils.isUndefined(e.ruddy)?.5:e.ruddy;return this._core.room.videoManager.setBeautyParams({beauty:A,brightness:t,ruddy:i})}async update(e){const A=this._core.utils.isUndefined(e.beauty)?.5:e.beauty,t=this._core.utils.isUndefined(e.brightness)?.5:e.brightness,i=this._core.utils.isUndefined(e.ruddy)?.5:e.ruddy;return this._core.room.videoManager.setBeautyParams({beauty:A,brightness:t,ruddy:i})}async stop(){return this._core.room.videoManager.renderMode="auto",this._core.room.videoManager.stopBeauty()}destroy(){this._core.room.videoManager.renderMode="auto"}};Er(vr,"Name","BasicBeauty");var yr,mr,Rr,wr=vr;e.TRTCMediaMixingErrorCode=void 0,(yr=e.TRTCMediaMixingErrorCode||(e.TRTCMediaMixingErrorCode={}))[yr.Success=0]="Success",yr[yr.Error=-1]="Error",yr[yr.InvalidParams=-2]="InvalidParams",yr[yr.NotFoundSource=-3]="NotFoundSource",yr[yr.ImageSourceLoadFailed=-4]="ImageSourceLoadFailed",yr[yr.CameraNotAuthorized=-5]="CameraNotAuthorized",yr[yr.CameraIsOccupied=-6]="CameraIsOccupied",yr[yr.CameraDisconnected=-7]="CameraDisconnected",e.TRTCMediaSourceType=void 0,(mr=e.TRTCMediaSourceType||(e.TRTCMediaSourceType={}))[mr.kCamera=0]="kCamera",mr[mr.kScreen=1]="kScreen",mr[mr.kImage=2]="kImage",mr[mr.kPhoneMirror=4]="kPhoneMirror",mr[mr.kText=5]="kText",mr[mr.kVideo=6]="kVideo",e.TRTCMediaMixingEvent=void 0,(Rr=e.TRTCMediaMixingEvent||(e.TRTCMediaMixingEvent={})).onSourceSelected="onSourceSelected",Rr.onSourceMoved="onSourceMoved",Rr.onSourceResized="onSourceResized",Rr.onRightButtonClicked="onRightButtonClicked",Rr.onError="onError",Rr.onSourcePlugged="onSourcePlugged",Rr.onSourceConnected="onSourceConnected",Rr.onSourceDisconnected="onSourceDisconnected",Rr.onSourceUnplugged="onSourceUnplugged",Rr.onMediaSourceSizeChanged="onMediaSourceSizeChanged";var Dr,Sr=function(){function e(e,A){if(this.logRegion="tc",this.loggerManager=e,A){var t=A.sdkAppId,i=A.userId,o=A.seq;this.seq=o,e&&(this.logger=e.createLogger({id:"".concat(this.logRegion).concat(o),userId:i,sdkAppId:t}))}else this.logger=e;this.logger||(this.logger={debug:function(e){console.debug(e)},info:function(e){console.info(e)},warn:function(e){console.warn(e)},error:function(e){console.error(e)}})}return e.prototype.getLogMessage=function(e){var A=this;return e.map((function(e){return A.getStringifyMessage(e)})).join(" ")},e.prototype.getStringifyMessage=function(e){var A=this;if("object"!=typeof e)return e;if(e instanceof HTMLElement)return"".concat(e.tagName.toLocaleLowerCase(),"#").concat(e.id);if(e instanceof Array){var t=[];return Object.keys(e).forEach((function(i){return t[i]=A.getStringifyMessage(e[i])})),JSON.stringify(t)}if(e instanceof Object){var i={};return Object.keys(e).forEach((function(t){return i[t]=A.getStringifyMessage(e[t])})),JSON.stringify(i)}return e},e.prototype.update=function(e){var A=e.userId,t=e.sdkAppId;this.loggerManager&&this.loggerManager.createLogger&&(this.logger=this.loggerManager.createLogger({id:"".concat(this.logRegion).concat(this.seq),userId:A,sdkAppId:t}))},e.prototype.log=function(){for(var e=[],A=0;A<arguments.length;A++)e[A]=arguments[A];var t=this.getLogMessage(e);this.logger&&this.logger.info&&this.logger.info(t)},e.prototype.debug=function(){for(var e=[],A=0;A<arguments.length;A++)e[A]=arguments[A];var t=this.getLogMessage(e);this.logger.debug(t)},e.prototype.info=function(){for(var e=[],A=0;A<arguments.length;A++)e[A]=arguments[A];var t=this.getLogMessage(e);this.logger&&this.logger.info&&this.logger.info(t)},e.prototype.warn=function(){for(var e=[],A=0;A<arguments.length;A++)e[A]=arguments[A];var t=this.getLogMessage(e);this.logger&&this.logger.warn&&this.logger.warn(t)},e.prototype.error=function(){for(var e=[],A=0;A<arguments.length;A++)e[A]=arguments[A];var t=this.getLogMessage(e);this.logger&&this.logger.error&&this.logger.error(t)},e}(),Mr=new Sr(null),br=function(){function e(e,A,t){void 0===t&&(t={calcPositionOnly:!1,canExceedContainer:!1}),this.logPrefix="[Movable]",this.movable=null,this.container=null,this.options={calcPositionOnly:!1,canExceedContainer:!1},this.callbacksMap=new Map,this.originLeft=0,this.originTop=0,this.moveStartOfLeft=0,this.moveStartOfTop=0,this.movable=e,this.container=A||document.body,this.options={calcPositionOnly:!!t.calcPositionOnly||!1,canExceedContainer:!!t.canExceedContainer||!1},this.setStyle(),this.onMouseDown=this.onMouseDown.bind(this),this.onMouseMove=this.onMouseMove.bind(this),this.onMouseUp=this.onMouseUp.bind(this),this.onMouseMove5px=this.onMouseMove5px.bind(this),this.onMouseUp5px=this.onMouseUp5px.bind(this),this.movable.addEventListener("mousedown",this.onMouseDown,!1)}return e.prototype.setStyle=function(){this.movable?(this.movable.style.position="absolute",this.movable.style.cursor="move"):Mr.error("".concat(this.logPrefix,"setStyle 'movable' is null"))},e.prototype.onMouseDown=function(e){if(0===e.button){if(e.preventDefault(),document.defaultView&&this.movable){var A=document.defaultView.getComputedStyle(this.movable);this.originLeft=window.parseInt(A.left),this.originTop=window.parseInt(A.top)}else Mr.error("".concat(this.logPrefix,"onMouseDown 'movable' is null"));this.moveStartOfLeft=e.screenX,this.moveStartOfTop=e.screenY,document.addEventListener("mousemove",this.onMouseMove5px,!1),document.addEventListener("mouseup",this.onMouseUp5px,!1)}},e.prototype.onMouseMove5px=function(e){var A=e.screenX-(this.moveStartOfLeft||0),t=e.screenY-(this.moveStartOfTop||0);Math.abs(A)>=5||Math.abs(t)>=5?(document.removeEventListener("mousemove",this.onMouseMove5px,!1),document.removeEventListener("mouseup",this.onMouseUp5px,!1),document.addEventListener("mousemove",this.onMouseMove,!1),document.addEventListener("mouseup",this.onMouseUp,!1)):Mr.debug("".concat(this.logPrefix,"on Movable mouse move less than 5px"))},e.prototype.onMouseUp5px=function(){document.removeEventListener("mousemove",this.onMouseMove5px,!1),document.removeEventListener("mouseup",this.onMouseUp5px,!1)},e.prototype.onMouseMove=function(e){if(this.movable&&this.container){var A=e.screenX-this.moveStartOfLeft,t=e.screenY-this.moveStartOfTop,i=this.originLeft+A,o=this.originTop+t,r=this.movable.offsetWidth,n=this.movable.offsetHeight,s=this.container.offsetWidth,a=this.container.offsetHeight;this.options.canExceedContainer||(i<0?i=0:i>s-r&&(i=s-r),o<0?o=0:o>a-n&&(o=a-n)),!this.options.calcPositionOnly&&this.movable&&(this.movable.style.left=i+"px",this.movable.style.top=o+"px"),this.emit("move",i,o)}else Mr.error("".concat(this.logPrefix,"onMouseMove error:No 'movable' and 'container'."))},e.prototype.onMouseUp=function(){document.removeEventListener("mousemove",this.onMouseMove,!1),document.removeEventListener("mouseup",this.onMouseUp,!1),this.originLeft=0,this.originTop=0,this.moveStartOfLeft=0,this.moveStartOfTop=0},e.prototype.on=function(e,A){var t=this.callbacksMap.get(e);t?t.push(A):this.callbacksMap.set(e,[A])},e.prototype.off=function(e,A){var t=this.callbacksMap.get(e);t&&(t=t.filter((function(e){return e!=A})),this.callbacksMap.set(e,t))},e.prototype.emit=function(e){for(var A=[],t=1;t<arguments.length;t++)A[t-1]=arguments[t];var i=this.callbacksMap.get(e);i&&i.forEach((function(e){try{e.apply(null,A)}catch(t){console.error("[Movable]emit error:",e,t)}}))},e.prototype.destroy=function(){var e;null===(e=this.movable)||void 0===e||e.removeEventListener("mousedown",this.onMouseDown,!1),this.callbacksMap.clear(),this.movable=null,this.container=null},e}();!function(e){e[e.Both=0]="Both",e[e.Corner=1]="Corner",e[e.Edge=2]="Edge"}(Dr||(Dr={}));var Lr="trtc-resizable-top-left-anchor",Nr="trtc-resizable-top-anchor",_r="trtc-resizable-top-right-anchor",kr="trtc-resizable-left-anchor",Gr="trtc-resizable-right-anchor",Fr="trtc-resizable-bottom-left-anchor",Vr="trtc-resizable-bottom-anchor",Pr="trtc-resizable-bottom-right-anchor",Yr={resizeAnchor:{position:"absolute",width:"".concat(8,"px"),height:"".concat(8,"px"),border:"1px solid #3D7EFD",backgroundColor:"#FFFFFF"},topLeftAnchor:{top:"-".concat(4,"px"),left:"-".concat(4,"px"),cursor:"nw-resize"},topAnchor:{top:"-".concat(4,"px"),left:"calc(50% - ".concat(4,"px)"),cursor:"n-resize"},topRightAnchor:{top:"-".concat(4,"px"),right:"-".concat(4,"px"),cursor:"ne-resize"},leftAnchor:{top:"calc(50% - ".concat(4,"px)"),left:"-".concat(4,"px"),cursor:"w-resize"},rightAnchor:{top:"calc(50% - ".concat(4,"px)"),right:"-".concat(4,"px"),cursor:"e-resize"},bottomLeftAnchor:{bottom:"-".concat(4,"px"),left:"-".concat(4,"px"),cursor:"sw-resize"},bottomAnchor:{bottom:"-".concat(4,"px"),left:"calc(50% - ".concat(4,"px)"),cursor:"s-resize"},bottomRightAnchor:{bottom:"-".concat(4,"px"),right:"-".concat(4,"px"),cursor:"se-resize"}};function xr(e,A){for(var t in A)e.style[t]=A[t]}var Hr=function(){function e(e,A,t){void 0===t&&(t={keepRatio:!1,stopPropagation:!1,anchorMode:Dr.Both,canExceedContainer:!1}),this.logPrefix="[Resizable]",this.container=null,this.options={keepRatio:!1,stopPropagation:!1,anchorMode:Dr.Both,canExceedContainer:!1},this.callbacksMap=new Map,this.topLeftAnchor=null,this.topAnchor=null,this.topRightAnchor=null,this.leftAnchor=null,this.rightAnchor=null,this.bottomLeftAnchor=null,this.bottomAnchor=null,this.bottomRightAnchor=null,this.currentAnchor=null,this.resizeStartLeft=0,this.resizeStartTop=0,this.originLeft=0,this.originTop=0,this.originWidth=0,this.originHeight=0,this.resizeTarget=e,this.container=A||document.body,this.options={keepRatio:!!t.keepRatio||!1,stopPropagation:!!t.stopPropagation||!1,anchorMode:t.anchorMode||Dr.Both,canExceedContainer:!!t.canExceedContainer||!1},this.mousedown=this.mousedown.bind(this),this.mousemove=this.mousemove.bind(this),this.mouseup=this.mouseup.bind(this),this.currentAnchor=null,this.createResizeAnchor(),this.resizeTarget.classList.add("trtc-resizable"),this.resizeTarget.style.position="absolute",this.resizeTarget.style.border="1px solid #3D7EFD",this.resizeTarget.style.boxSizing="border-box",this.resizeTarget.style.zIndex="9999",this.initResizeEvent()}return e.prototype.createResizeAnchor=function(){var e,A,t,i,o,r,n,s,a=document.createElement("div");a.className="trtc-resizable-resize-anchor ".concat(Lr),xr(a,Object.assign({},Yr.resizeAnchor,Yr.topLeftAnchor)),this.topLeftAnchor=a;var g=document.createElement("div");g.className="trtc-resizable-resize-anchor ".concat(Nr),xr(g,Object.assign({},Yr.resizeAnchor,Yr.topAnchor)),this.topAnchor=g;var c=document.createElement("div");c.className="trtc-resizable-resize-anchor ".concat(_r),xr(c,Object.assign({},Yr.resizeAnchor,Yr.topRightAnchor)),this.topRightAnchor=c;var C=document.createElement("div");C.className="trtc-resizable-resize-anchor ".concat(kr),xr(C,Object.assign({},Yr.resizeAnchor,Yr.leftAnchor)),this.leftAnchor=C;var u=document.createElement("div");u.className="trtc-resizable-resize-anchor ".concat(Gr),xr(u,Object.assign({},Yr.resizeAnchor,Yr.rightAnchor)),this.rightAnchor=u;var I=document.createElement("div");I.className="trtc-resizable-resize-anchor ".concat(Fr),xr(I,Object.assign({},Yr.resizeAnchor,Yr.bottomLeftAnchor)),this.bottomLeftAnchor=I;var d=document.createElement("div");d.className="trtc-resizable-resize-anchor ".concat(Vr),xr(d,Object.assign({},Yr.resizeAnchor,Yr.bottomAnchor)),this.bottomAnchor=d;var l=document.createElement("div");l.className="trtc-resizable-resize-anchor ".concat(Pr),xr(l,Object.assign({},Yr.resizeAnchor,Yr.bottomRightAnchor)),this.bottomRightAnchor=l,this.options.anchorMode!==Dr.Both&&this.options.anchorMode!==Dr.Edge||(null===(e=this.resizeTarget)||void 0===e||e.appendChild(g),null===(A=this.resizeTarget)||void 0===A||A.appendChild(C),null===(t=this.resizeTarget)||void 0===t||t.appendChild(u),null===(i=this.resizeTarget)||void 0===i||i.appendChild(d)),this.options.anchorMode!==Dr.Both&&this.options.anchorMode!==Dr.Corner||(null===(o=this.resizeTarget)||void 0===o||o.appendChild(a),null===(r=this.resizeTarget)||void 0===r||r.appendChild(c),null===(n=this.resizeTarget)||void 0===n||n.appendChild(I),null===(s=this.resizeTarget)||void 0===s||s.appendChild(l))},e.prototype.initResizeEvent=function(){var e,A,t,i,o,r,n,s;null===(e=this.topLeftAnchor)||void 0===e||e.addEventListener("mousedown",this.mousedown,!1),null===(A=this.topAnchor)||void 0===A||A.addEventListener("mousedown",this.mousedown,!1),null===(t=this.topRightAnchor)||void 0===t||t.addEventListener("mousedown",this.mousedown,!1),null===(i=this.leftAnchor)||void 0===i||i.addEventListener("mousedown",this.mousedown,!1),null===(o=this.rightAnchor)||void 0===o||o.addEventListener("mousedown",this.mousedown,!1),null===(r=this.bottomLeftAnchor)||void 0===r||r.addEventListener("mousedown",this.mousedown,!1),null===(n=this.bottomAnchor)||void 0===n||n.addEventListener("mousedown",this.mousedown,!1),null===(s=this.bottomRightAnchor)||void 0===s||s.addEventListener("mousedown",this.mousedown,!1)},e.prototype.mousedown=function(e){if(0===e.button){if(e.preventDefault(),this.options.stopPropagation&&e.stopPropagation(),this.currentAnchor=e.target,this.resizeStartLeft=e.screenX,this.resizeStartTop=e.screenY,document.defaultView&&this.resizeTarget){var A=document.defaultView.getComputedStyle(this.resizeTarget);this.originTop=window.parseInt(A.top),this.originLeft=window.parseInt(A.left),this.originWidth=this.resizeTarget.offsetWidth,this.originHeight=this.resizeTarget.offsetHeight,Mr.debug("resize origin:",this.originTop,this.originLeft,this.originWidth,this.originHeight)}else Mr.error("".concat(this.logPrefix,"mouseDown 'resizeTarget' is null"));document.addEventListener("mousemove",this.mousemove,!1),document.addEventListener("mouseup",this.mouseup,!1)}},e.prototype.mousemove=function(e){if(this.container&&this.resizeTarget&&this.currentAnchor){var A,t=this.currentAnchor.classList[1],i=this.originLeft,o=this.originTop,r=this.originWidth,n=this.originHeight;switch(t){case Lr:o=(A=this._resizeTop(e)).top,n=A.height,i=(A=this._resizeLeft(e)).left,r=A.width,this.options.keepRatio&&(r/this.originWidth<n/this.originHeight?(n=r*this.originHeight/this.originWidth,o=this.originTop+this.originHeight-n):(r=n*this.originWidth/this.originHeight,i=this.originLeft+this.originWidth-r));break;case Nr:o=(A=this._resizeTop(e)).top,n=A.height,this.options.keepRatio&&((r=this.originWidth*n/this.originHeight)<20?(r=20,n=this.originHeight*r/this.originWidth,o=this.originTop+this.originHeight-n):!this.options.canExceedContainer&&r>this.container.offsetWidth-this.originLeft&&(r=this.container.offsetWidth-this.originLeft,n=this.originHeight*r/this.originWidth,o=this.originTop+this.originHeight-n));break;case _r:o=(A=this._resizeTop(e)).top,n=A.height,r=this._resizeRight(e),this.options.keepRatio&&(r/this.originWidth<n/this.originHeight?(n=r*this.originHeight/this.originWidth,o=this.originTop+this.originHeight-n):r=n*this.originWidth/this.originHeight);break;case kr:i=(A=this._resizeLeft(e)).left,r=A.width,this.options.keepRatio&&((n=this.originHeight*r/this.originWidth)<20?(n=20,r=this.originWidth*n/this.originHeight,i=this.originLeft+this.originWidth-r):!this.options.canExceedContainer&&n>this.container.offsetHeight-this.originTop&&(n=this.container.offsetHeight-this.originTop,r=this.originWidth*n/this.originHeight,i=this.originLeft+this.originWidth-r));break;case Gr:r=this._resizeRight(e),this.options.keepRatio&&((n=r*this.originHeight/this.originWidth)<20?r=(n=20)*this.originWidth/this.originHeight:!this.options.canExceedContainer&&n>this.container.offsetHeight-this.originTop&&(r=(n=this.container.offsetHeight-this.originTop)*this.originWidth/this.originHeight));break;case Fr:n=this._resizeBottom(e),i=(A=this._resizeLeft(e)).left,r=A.width,this.options.keepRatio&&(r/this.originWidth<n/this.originHeight?n=r*this.originHeight/this.originWidth:(r=n*this.originWidth/this.originHeight,i=this.originLeft+this.originWidth-r));break;case Vr:n=this._resizeBottom(e),this.options.keepRatio&&((r=n*this.originWidth/this.originHeight)<20?n=(r=20)*this.originHeight/this.originWidth:!this.options.canExceedContainer&&r>this.container.offsetWidth-this.originLeft&&(n=(r=this.container.offsetWidth-this.originLeft)*this.originHeight/this.originWidth));break;case Pr:n=this._resizeBottom(e),r=this._resizeRight(e),this.options.keepRatio&&(r/this.originWidth<n/this.originHeight?n=r*this.originHeight/this.originWidth:r=n*this.originWidth/this.originHeight)}this.resizeTarget.style.left=i+"px",this.resizeTarget.style.top=o+"px",this.resizeTarget.style.height=n+"px",this.resizeTarget.style.width=r+"px",this.emit("resize",i,o,r,n)}else Mr.error("".concat(this.logPrefix,"mouseMove error. No valid inner info:"),this.container,this.resizeTarget,this.currentAnchor)},e.prototype._resizeLeft=function(e){var A=e.screenX-this.resizeStartLeft,t=this.originLeft+A,i=this.originWidth-A;return!this.options.canExceedContainer&&t<0?(t=0,i=this.originWidth+this.originLeft):t>this.originLeft+this.originWidth-20&&(t=this.originLeft+this.originWidth-20,i=20),{left:t,width:i}},e.prototype._resizeTop=function(e){var A=e.screenY-this.resizeStartTop,t=this.originTop+A,i=this.originHeight-A;return!this.options.canExceedContainer&&t<0?(t=0,i=this.originHeight+this.originTop):t>this.originTop+this.originHeight-20&&(t=this.originTop+this.originHeight-20,i=20),{top:t,height:i}},e.prototype._resizeRight=function(e){if(!this.container)return Mr.error("".concat(this.logPrefix,"_resizeRight error. No container:"),this.container),0;var A=e.screenX-this.resizeStartLeft,t=this.originWidth+A;return t<20?t=20:!this.options.canExceedContainer&&t>this.container.offsetWidth-this.originLeft&&(t=this.container.offsetWidth-this.originLeft),t},e.prototype._resizeBottom=function(e){if(!this.container)return Mr.error("".concat(this.logPrefix,"_resizeBottom error. No container:"),this.container),0;var A=e.screenY-this.resizeStartTop,t=this.originHeight+A;return t<20?t=20:!this.options.canExceedContainer&&t>this.container.offsetHeight-this.originTop&&(t=this.container.offsetHeight-this.originTop),t},e.prototype.mouseup=function(){document.removeEventListener("mousemove",this.mousemove,!1),document.removeEventListener("mouseup",this.mouseup,!1),this.currentAnchor=null,this.resizeStartLeft=0,this.resizeStartTop=0,this.originLeft=0,this.originTop=0,this.originWidth=0,this.originHeight=0},e.prototype.on=function(e,A){var t=this.callbacksMap.get(e);t?t.push(A):this.callbacksMap.set(e,[A])},e.prototype.off=function(e,A){var t=this.callbacksMap.get(e);t&&(t=t.filter((function(e){return e!=A})),this.callbacksMap.set(e,t))},e.prototype.emit=function(e){for(var A=[],t=1;t<arguments.length;t++)A[t-1]=arguments[t];var i=this.callbacksMap.get(e);i&&i.slice().forEach((function(e){try{e.apply(null,A)}catch(t){console.error("[Resizable]emit error:",e,t)}}))},e.prototype.destroy=function(){var e,A,t,i,o,r,n,s,a,g,c,C,u,I,d,l;null===(e=this.topLeftAnchor)||void 0===e||e.removeEventListener("mousedown",this.mousedown,!1),null===(A=this.topAnchor)||void 0===A||A.removeEventListener("mousedown",this.mousedown,!1),null===(t=this.topRightAnchor)||void 0===t||t.removeEventListener("mousedown",this.mousedown,!1),null===(i=this.leftAnchor)||void 0===i||i.removeEventListener("mousedown",this.mousedown,!1),null===(o=this.rightAnchor)||void 0===o||o.removeEventListener("mousedown",this.mousedown,!1),null===(r=this.bottomLeftAnchor)||void 0===r||r.removeEventListener("mousedown",this.mousedown,!1),null===(n=this.bottomAnchor)||void 0===n||n.removeEventListener("mousedown",this.mousedown,!1),null===(s=this.bottomRightAnchor)||void 0===s||s.removeEventListener("mousedown",this.mousedown,!1),this.callbacksMap.clear(),this.options.anchorMode!==Dr.Both&&this.options.anchorMode!==Dr.Edge||(this.topAnchor&&(null===(a=this.resizeTarget)||void 0===a||a.removeChild(this.topAnchor)),this.leftAnchor&&(null===(g=this.resizeTarget)||void 0===g||g.removeChild(this.leftAnchor)),this.rightAnchor&&(null===(c=this.resizeTarget)||void 0===c||c.removeChild(this.rightAnchor)),this.bottomAnchor&&(null===(C=this.resizeTarget)||void 0===C||C.removeChild(this.bottomAnchor))),this.options.anchorMode!==Dr.Both&&this.options.anchorMode!==Dr.Corner||(this.topLeftAnchor&&(null===(u=this.resizeTarget)||void 0===u||u.removeChild(this.topLeftAnchor)),this.topRightAnchor&&(null===(I=this.resizeTarget)||void 0===I||I.removeChild(this.topRightAnchor)),this.bottomLeftAnchor&&(null===(d=this.resizeTarget)||void 0===d||d.removeChild(this.bottomLeftAnchor)),this.bottomRightAnchor&&(null===(l=this.resizeTarget)||void 0===l||l.removeChild(this.bottomRightAnchor))),this.topLeftAnchor=null,this.topAnchor=null,this.topRightAnchor=null,this.leftAnchor=null,this.rightAnchor=null,this.bottomLeftAnchor=null,this.bottomAnchor=null,this.bottomRightAnchor=null,this.resizeTarget=null,this.container=null,this.currentAnchor=null,this.resizeStartLeft=0,this.resizeStartTop=0,this.originLeft=0,this.originTop=0,this.originWidth=0,this.originHeight=0},e}(),Ur=function(){var A=new Map;for(var t in e.TRTCVideoResolution)if(isNaN(Number(t))){var i=e.TRTCVideoResolution[t],o=t.split("_");A.set(i,{width:parseInt(o[1]),height:parseInt(o[2])})}return A}(),Or=function(){function A(A){if(this.logPrefix="[TRTCMediaMixingDesigner]",this.mixingVideoWidth=640,this.mixingVideoHeight=360,this.canExceedContainer=!1,this.movableHandler=null,this.resizableHandler=null,this.previewScale=1,this.previewWidth=0,this.previewHeight=0,this.previewLeft=0,this.previewTop=0,this.BOUNDARY_ADSORPTION_THRESHOLD=10,this.newSelected=null,this.clickedMediaSources=[],this.oldSelectedIndex=-1,this.mousedownLeft=null,this.mousedownTop=null,this.eventButton=null,this.resizeObserver=null,this.container=A.view,this.container.style.position="relative",this.videoResolution=A.videoResolution,this.resMode=A.resMode,Ur.has(A.videoResolution)){var t=Ur.get(A.videoResolution),o=t.width,r=t.height;this.resMode===e.TRTCVideoResolutionMode.TRTCVideoResolutionModeLandscape?(this.mixingVideoWidth=o,this.mixingVideoHeight=r):(this.mixingVideoWidth=r,this.mixingVideoHeight=o)}this.updatePreviewProperty(),this.canExceedContainer=A.canExceedContainer||!1,this.eventEmitter=new i.EventEmitter,this.mediaList=[],this.selectedMediaIndex=-1,this.moveAndResizeOverlay=document.createElement("div"),this.moveAndResizeOverlay.style.position="relative",this.container.appendChild(this.moveAndResizeOverlay),this.initMediaMovable(),this.initMediaResizable(),this.initContainerMouseEventHander(),this.initContainerResizeObserver()}return A.prototype.updateOptions=function(A){if(!de(A.videoResolution)||!de(A.resMode)){if(this.resMode=de(A.resMode)?this.resMode:A.resMode,A.videoResolution&&Ur.has(A.videoResolution)){var t=Ur.get(A.videoResolution),i=t.width,o=t.height;this.resMode===e.TRTCVideoResolutionMode.TRTCVideoResolutionModeLandscape?(this.mixingVideoWidth=i,this.mixingVideoHeight=o):(this.mixingVideoWidth=o,this.mixingVideoHeight=i)}this.updatePreviewProperty(),this.updateOverlay()}},A.prototype.addMedia=function(e){this.mediaList.unshift(e),e.isSelected&&(this.selectedMediaIndex=0,this.updateOverlay())},A.prototype.removeMedia=function(e){var A=this.mediaList.findIndex((function(A){return A.id===e.id}));-1!==A&&(this.mediaList.splice(A,1),(this.selectedMediaIndex===A||e.isSelected)&&(this.selectedMediaIndex=-1,this.updateOverlay()))},A.prototype.updateMedia=function(e){var A=this.mediaList.findIndex((function(A){return A.id===e.id}));-1!==A&&(this.mediaList[A]=Object.assign({},this.mediaList[A],e),e.isSelected&&(this.selectedMediaIndex=A,this.updateOverlay()))},A.prototype.on=function(e,A){var t;null===(t=this.eventEmitter)||void 0===t||t.on(e,A)},A.prototype.off=function(e,A){var t;null===(t=this.eventEmitter)||void 0===t||t.off(e,A)},A.prototype.destroy=function(){var e,A,t,i,o;this.resizeObserver&&(this.container&&this.resizeObserver.unobserve(this.container),this.resizeObserver.disconnect(),this.resizeObserver=null),null===(e=this.movableHandler)||void 0===e||e.destroy(),null===(A=this.resizableHandler)||void 0===A||A.destroy(),this.movableHandler=null,this.resizableHandler=null,null===(t=this.container)||void 0===t||t.removeEventListener("contextmenu",this.onRightButtonClicked,!1),null===(i=this.container)||void 0===i||i.removeEventListener("mousedown",this.onContainerMousedown,!1),this.moveAndResizeOverlay&&(null===(o=this.container)||void 0===o||o.removeChild(this.moveAndResizeOverlay),this.moveAndResizeOverlay=null),this.container=null,this.eventEmitter=null,this.mediaList=[]},A.prototype.initMediaMovable=function(){this.onMove=this.onMove.bind(this),this.movableHandler=new br(this.moveAndResizeOverlay,this.container,{canExceedContainer:this.canExceedContainer,calcPositionOnly:!1}),this.movableHandler.on("move",this.onMove)},A.prototype.initMediaResizable=function(){this.onResize=this.onResize.bind(this),this.resizableHandler=new Hr(this.moveAndResizeOverlay,this.container,{keepRatio:!0,stopPropagation:!0,canExceedContainer:this.canExceedContainer,anchorMode:0}),this.resizableHandler.on("resize",this.onResize)},A.prototype.initContainerMouseEventHander=function(){this.container?(this.onContainerMousedown=this.onContainerMousedown.bind(this),this.onContainerMousemove=this.onContainerMousemove.bind(this),this.onContainerMouseup=this.onContainerMouseup.bind(this),this.container.addEventListener("mousedown",this.onContainerMousedown,!1),this.onRightButtonClicked=this.onRightButtonClicked.bind(this),this.container.addEventListener("contextmenu",this.onRightButtonClicked,!1)):Mr.error("".concat(this.logPrefix,"initContainerMouseEventHander failed, no container view"))},A.prototype.initContainerResizeObserver=function(){this.container&&(this.onPreviewAreaResize=this.onPreviewAreaResize.bind(this),this.resizeObserver=new ResizeObserver(this.onPreviewAreaResize),this.resizeObserver.observe(this.container))},A.prototype.onPreviewAreaResize=function(e){Mr.log("".concat(this.logPrefix,"onPreviewAreaResize:"),e);for(var A=0,t=e;A<t.length;A++){if(t[A].target===this.container){this.updatePreviewProperty(),this.updateOverlay();break}}},A.prototype.updatePreviewProperty=function(){if(this.container){var e=this.container.offsetWidth,A=this.container.offsetHeight,t=e/this.mixingVideoWidth,i=A/this.mixingVideoHeight;this.previewScale=t>i?t:i,this.previewWidth=this.mixingVideoWidth*this.previewScale,this.previewHeight=this.mixingVideoHeight*this.previewScale,this.previewLeft=(e-this.previewWidth)/2,this.previewTop=(A-this.previewHeight)/2}else Mr.error("".concat(this.logPrefix,"calcPreviewScale failed, no HTML element to display"))},A.prototype.updateOverlay=function(){if(this.moveAndResizeOverlay){var e=void 0,A=void 0,t=void 0,i=void 0;if(this.selectedMediaIndex>=0){var o={left:this.mediaList[this.selectedMediaIndex].rect.left*this.previewScale,top:this.mediaList[this.selectedMediaIndex].rect.top*this.previewScale,right:this.mediaList[this.selectedMediaIndex].rect.right*this.previewScale,bottom:this.mediaList[this.selectedMediaIndex].rect.bottom*this.previewScale};e="".concat(o.left+this.previewLeft,"px"),A="".concat(o.top+this.previewTop,"px"),t="".concat(o.right-o.left,"px"),i="".concat(o.bottom-o.top,"px"),this.moveAndResizeOverlay.style.overflow="visible"}else e="".concat(this.previewLeft,"px"),A="".concat(this.previewTop,"px"),t="0px",i="0px",this.moveAndResizeOverlay.style.overflow="hidden";this.moveAndResizeOverlay.style.left=e,this.moveAndResizeOverlay.style.top=A,this.moveAndResizeOverlay.style.width=t,this.moveAndResizeOverlay.style.height=i}},A.prototype.onMove=function(e,A){var t;Mr.log("".concat(this.logPrefix,"onMove: ").concat(e," ").concat(A));var i=this.mediaList[this.selectedMediaIndex];if(i&&this.moveAndResizeOverlay){var o={left:e-this.previewLeft,top:A-this.previewTop,right:e-this.previewLeft+this.moveAndResizeOverlay.offsetWidth,bottom:A-this.previewTop+this.moveAndResizeOverlay.offsetHeight};this.doAdsorption(o);var r={left:Math.round(o.left/this.previewScale),top:Math.round(o.top/this.previewScale),right:Math.round(o.right/this.previewScale),bottom:Math.round(o.bottom/this.previewScale)};null===(t=this.eventEmitter)||void 0===t||t.emit("onSourceMoved",s({},i),r)}else Mr.warn("".concat(this.logPrefix,"onMove no selected media"))},A.prototype.doAdsorption=function(e){var A=this.BOUNDARY_ADSORPTION_THRESHOLD;Math.abs(e.left)<A&&(e.right=e.right-e.left,e.left=0),Math.abs(e.top)<A&&(e.bottom=e.bottom-e.top,e.top=0),Math.abs(e.right-this.previewWidth)<A&&(e.left=e.left+this.previewWidth-e.right,e.right=this.previewWidth),Math.abs(e.bottom-this.previewHeight)<A&&(e.top=e.top+this.previewHeight-e.bottom,e.bottom=this.previewHeight)},A.prototype.onResize=function(e,A,t,i){var o;Mr.log("".concat(this.logPrefix,"onResize: ").concat(e," ").concat(A," ").concat(t," ").concat(i));var r=this.mediaList[this.selectedMediaIndex];if(r){var n={left:e-this.previewLeft,top:A-this.previewTop,right:e-this.previewLeft+t,bottom:A-this.previewTop+i},a={left:Math.round(n.left/this.previewScale),top:Math.round(n.top/this.previewScale),right:Math.round(n.right/this.previewScale),bottom:Math.round(n.bottom/this.previewScale)};null===(o=this.eventEmitter)||void 0===o||o.emit("onSourceResized",s({},r),a)}else Mr.warn("".concat(this.logPrefix,"onResize no selected media"))},A.prototype.emitOnSelect=function(e){var A;if(e){for(var t=this.mediaList.length,i=0;i<t;i++)if(e.id===this.mediaList[i].id){this.selectedMediaIndex=i;break}}else this.selectedMediaIndex=-1;this.updateOverlay(),null===(A=this.eventEmitter)||void 0===A||A.emit("onSourceSelected",e?s({},e):null)},A.prototype.onContainerMousedown=function(e){Mr.log("".concat(this.logPrefix,"onContainerMousedown event:"),e,e.target,e.currentTarget);var A=e.target;if(this.eventButton=e.button,A&&this.container){Mr.log("".concat(this.logPrefix,"onContainerMousedown mix video image clicked"));var t=this.container.getBoundingClientRect(),i=e.clientX-t.x-this.previewLeft,o=e.clientY-t.y-this.previewTop,r=i/this.previewScale,n=o/this.previewScale;Mr.log("".concat(this.logPrefix,"onContainerMousedown click point coordinates in mix video:"),i,o,r,n);for(var s=0;s<this.mediaList.length;s++){var a=this.mediaList[s];a.rect&&r>=a.rect.left&&r<=a.rect.right&&n>=a.rect.top&&n<=a.rect.bottom&&(this.clickedMediaSources.push(a),this.mediaList[this.selectedMediaIndex]&&a.id===this.mediaList[this.selectedMediaIndex].id&&(this.oldSelectedIndex=this.clickedMediaSources.length-1))}this.mousedownLeft=e.screenX,this.mousedownTop=e.screenY,this.clickedMediaSources.length>0?2===this.eventButton&&-1===this.oldSelectedIndex?(this.newSelected=this.clickedMediaSources[0],Mr.log("".concat(this.logPrefix,"onContainerMousedown find clicked media source:"),this.newSelected),this.emitOnSelect(this.newSelected),this.clickedMediaSources.splice(0,this.clickedMediaSources.length)):(document.addEventListener("mousemove",this.onContainerMousemove,!1),document.addEventListener("mouseup",this.onContainerMouseup,!1)):(this.newSelected=null,Mr.log("".concat(this.logPrefix,"onContainerMousedown find clicked media source:"),this.newSelected),this.emitOnSelect(null),this.mousedownLeft=null,this.mousedownTop=null,this.eventButton=null)}},A.prototype.onContainerMousemove=function(e){var A;if(e.target&&this.container&&null!==this.mousedownLeft&&null!==this.mousedownTop){var t=e.screenX-this.mousedownLeft,i=e.screenY-this.mousedownTop;(Math.abs(t)>=5||Math.abs(i)>=5)&&(this.oldSelectedIndex>=0?(Mr.log("".concat(this.logPrefix,"onContainerMousemove move or resize old selected media source, clear data:"),this.clickedMediaSources,this.oldSelectedIndex),this.clickedMediaSources.splice(0,this.clickedMediaSources.length),this.oldSelectedIndex=-1):this.clickedMediaSources.length>0&&(this.newSelected=this.clickedMediaSources[0],Mr.log("".concat(this.logPrefix,"onContainerMousemove find clicked media source:"),this.newSelected),this.emitOnSelect(this.newSelected),this.clickedMediaSources.splice(0,this.clickedMediaSources.length),null===(A=this.moveAndResizeOverlay)||void 0===A||A.dispatchEvent(new MouseEvent("mousedown",{screenX:this.mousedownLeft,screenY:this.mousedownTop,button:this.eventButton}))))}},A.prototype.onContainerMouseup=function(e){if(document.removeEventListener("mousemove",this.onContainerMousemove,!1),document.removeEventListener("mouseup",this.onContainerMouseup,!1),Mr.log("".concat(this.logPrefix,"onContainerMouseup data:"),this.clickedMediaSources,this.oldSelectedIndex),e.target&&this.container){if(this.clickedMediaSources.length>0)if(this.oldSelectedIndex>=0){if(0===this.eventButton){var A=(this.oldSelectedIndex+1)%this.clickedMediaSources.length;this.newSelected=this.clickedMediaSources[A],Mr.log("".concat(this.logPrefix,"onContainerMouseup find clicked media source:"),this.newSelected),this.emitOnSelect(this.newSelected)}}else this.newSelected=this.clickedMediaSources[0],Mr.log("".concat(this.logPrefix,"onContainerMouseup find clicked media source:"),this.newSelected),this.emitOnSelect(this.newSelected)}else Mr.log("".concat(this.logPrefix,"onContainerMouseup click outside of mixing video image")),this.emitOnSelect(null);this.mousedownLeft=null,this.mousedownTop=null,this.clickedMediaSources.splice(0,this.clickedMediaSources.length),this.oldSelectedIndex=-1,this.newSelected=null,this.eventButton=null},A.prototype.onRightButtonClicked=function(e){var A;Mr.log("".concat(this.logPrefix,"onRightButtonClicked:"),e.target,e.currentTarget,e.buttons),e.preventDefault(),null===(A=this.eventEmitter)||void 0===A||A.emit("onRightButtonClicked",s({},this.mediaList[this.selectedMediaIndex]))},A}(),Jr=function(){function A(t){if(this.logPrefix="[TRTCMediaMixingManager]",this.mediaMixingDesigner=null,this.windowID=0,this.resizeObserver=null,this.sourceList=[],this.trtcSourceMap=new Map,this.mixVideoTrack=null,this.selectedSource=null,this.view=null,this.captureLocal=!1,A.mediaMixingManager)return A.mediaMixingManager;A.mediaMixingManager=this,this.logger=t.logger,this.trtc=t.trtc,this.trtcCloud=t.trtcCloud,this.eventEmitter=new i.EventEmitter,this.publishParams={videoEncoderParams:{videoResolution:e.TRTCVideoResolution.TRTCVideoResolution_1920_1080,resMode:e.TRTCVideoResolutionMode.TRTCVideoResolutionModeLandscape,videoFps:30,videoBitrate:3e3,minVideoBitrate:3e3,enableAdjustRes:!0},canvasColor:0},this.onSourceSelected=this.onSourceSelected.bind(this),this.onSourceMoved=this.onSourceMoved.bind(this),this.onSourceResized=this.onSourceResized.bind(this),this.onRightButtonClicked=this.onRightButtonClicked.bind(this),this.onPreviewAreaResize=this.onPreviewAreaResize.bind(this),this.onVisibilityChange=this.onVisibilityChange.bind(this),document.addEventListener("visibilitychange",this.onVisibilityChange)}return A.prototype.destroy=function(){document.removeEventListener("visibilitychange",this.onVisibilityChange),this.resizeObserver&&this.view&&(this.resizeObserver.unobserve(this.view),this.resizeObserver.disconnect()),this.view=null,this.windowID=0,this.destroyDesigner(),this.eventEmitter=null},A.prototype.updateLocalVideo=function(e){return a(this,void 0,void 0,(function(){var A;return g(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,this.trtc.updateLocalVideo(e)];case 1:return t.sent(),[3,3];case 2:if((A=t.sent()).code!==r.default.ERROR_CODE.OPERATION_ABORT)throw A;return[3,3];case 3:return[2]}}))}))},A.prototype.startLocalVideo=function(e){return a(this,void 0,Promise,(function(){var A;return g(this,(function(t){switch(t.label){case 0:t.trys.push([0,8,,9]),t.label=1;case 1:return t.trys.push([1,3,,7]),[4,this.trtc.startLocalVideo(e)];case 2:return t.sent(),[3,7];case 3:return(A=t.sent()).code!==r.default.ERROR_CODE.OPERATION_ABORT?[3,5]:[4,this.updateLocalVideo(e)];case 4:return t.sent(),[3,6];case 5:throw A;case 6:return[3,7];case 7:return[3,9];case 8:return t.sent(),[3,9];case 9:return[2]}}))}))},A.prototype.setDisplayParams=function(e){return a(this,void 0,Promise,(function(){var A,t,i,o;return g(this,(function(r){switch(r.label){case 0:return this.logger.log("".concat(this.logPrefix,"setDisplayParams:"),e),this.view=e,A=this._getCanvasSize(this.publishParams.videoEncoderParams.videoResolution,this.publishParams.videoEncoderParams.resMode),t=A.width,i=A.height,o=this,[4,this.trtc.startPlugin("VideoMixer",{view:e,canvasInfo:{width:t,height:i,canvasColor:String(this.publishParams.canvasColor)}})];case 1:return o.mixVideoTrack=r.sent(),this.initResizeObserver(),this.createDesigner(),[2]}}))}))},A.prototype._getTRTCSourceKey=function(A){var t;return((t={})[e.TRTCMediaSourceType.kCamera]="camera",t[e.TRTCMediaSourceType.kScreen]="screen",t[e.TRTCMediaSourceType.kText]="text",t[e.TRTCMediaSourceType.kVideo]="video",t[e.TRTCMediaSourceType.kImage]="image",t)[A.type]},A.prototype._getTRTCFillMode=function(A){var t;return((t={})[e.TRTCVideoFillMode.TRTCVideoFillMode_Fill]="cover",t[e.TRTCVideoFillMode.TRTCVideoFillMode_Fit]="contain",t)[A]},A.prototype._getTRTCVideoProfile=function(A,t){var i,o=((i={})[e.TRTCVideoResolution.TRTCVideoResolution_480_270]={width:480,height:270},i[e.TRTCVideoResolution.TRTCVideoResolution_640_360]={width:640,height:360},i[e.TRTCVideoResolution.TRTCVideoResolution_960_540]={width:960,height:540},i[e.TRTCVideoResolution.TRTCVideoResolution_1280_720]={width:1280,height:720},i[e.TRTCVideoResolution.TRTCVideoResolution_1920_1080]={width:1920,height:1080},i);return{width:o[A].width,height:o[A].height,frameRate:t,bitrate:1e3}},A.prototype._getTRTCLayout=function(A){var t,i,o,r,n,s,a,g,c,C,u,I,d,l,h,B,E={zIndex:(null===(o=A.layout)||void 0===o?void 0:o.zOrder)||0};if(ce(null===(r=A.layout)||void 0===r?void 0:r.rect)||(E.x=null===(n=A.layout)||void 0===n?void 0:n.rect.left,E.y=null===(s=A.layout)||void 0===s?void 0:s.rect.top,E.width=(null===(a=A.layout)||void 0===a?void 0:a.rect.right)-(null===(g=A.layout)||void 0===g?void 0:g.rect.left),E.height=(null===(c=A.layout)||void 0===c?void 0:c.rect.bottom)-(null===(C=A.layout)||void 0===C?void 0:C.rect.top)),ce(null===(u=A.layout)||void 0===u?void 0:u.fillMode)||(E.fillMode=this._getTRTCFillMode(null===(I=A.layout)||void 0===I?void 0:I.fillMode)),!ce(null===(d=A.layout)||void 0===d?void 0:d.mirror)){var Q=((t={})[e.TRTCVideoMirrorType.TRTCVideoMirrorType_Auto]=!0,t[e.TRTCVideoMirrorType.TRTCVideoMirrorType_Enable]=!0,t[e.TRTCVideoMirrorType.TRTCVideoMirrorType_Disable]=!1,t);E.mirror=Q[null===(l=A.layout)||void 0===l?void 0:l.mirror]}if(!ce(null===(h=A.layout)||void 0===h?void 0:h.rotation)){var p=((i={})[e.TRTCVideoRotation.TRTCVideoRotation0]=0,i[e.TRTCVideoRotation.TRTCVideoRotation90]=90,i[e.TRTCVideoRotation.TRTCVideoRotation180]=180,i[e.TRTCVideoRotation.TRTCVideoRotation270]=270,i);E.rotation=p[null===(B=A.layout)||void 0===B?void 0:B.rotation]}return E},A.prototype._getTRTCSourceItem=function(A){var t,i,o,r,n,a,g,c,C;switch(A.type){case e.TRTCMediaSourceType.kScreen:return C=e.TRTCVideoResolution.TRTCVideoResolution_1920_1080,{id:A.id,profile:this._getTRTCVideoProfile((null===(t=A.screen)||void 0===t?void 0:t.resolution)||C,(null===(i=A.screen)||void 0===i?void 0:i.fps)||15),layout:this._getTRTCLayout(A)};case e.TRTCMediaSourceType.kCamera:return C=e.TRTCVideoResolution.TRTCVideoResolution_1280_720,{id:A.id,cameraId:null===(o=A.camera)||void 0===o?void 0:o.cameraId,profile:this._getTRTCVideoProfile((null===(r=A.camera)||void 0===r?void 0:r.resolution)||C,(null===(n=A.camera)||void 0===n?void 0:n.fps)||15),videoTrack:null===(a=A.camera)||void 0===a?void 0:a.videoTrack,layout:this._getTRTCLayout(A)};case e.TRTCMediaSourceType.kText:return s(s({id:A.id},A.text||{}),{layout:this._getTRTCLayout(A)});case e.TRTCMediaSourceType.kImage:return{id:A.id,url:null===(g=A.image)||void 0===g?void 0:g.url,layout:this._getTRTCLayout(A)};case e.TRTCMediaSourceType.kVideo:return{id:A.id,url:null===(c=A.video)||void 0===c?void 0:c.url,layout:this._getTRTCLayout(A)};default:return null}},A.prototype._getCanvasSize=function(A,t){var i,o,r=((i={})[e.TRTCVideoResolution.TRTCVideoResolution_480_270]={width:480,height:270},i[e.TRTCVideoResolution.TRTCVideoResolution_640_360]={width:640,height:360},i[e.TRTCVideoResolution.TRTCVideoResolution_960_540]={width:960,height:540},i[e.TRTCVideoResolution.TRTCVideoResolution_1280_720]={width:1280,height:720},i[e.TRTCVideoResolution.TRTCVideoResolution_1920_1080]={width:1920,height:1080},i)[A],n=r.width,s=r.height;return t===e.TRTCVideoResolutionMode.TRTCVideoResolutionModePortrait&&(n=(o=[s,n])[0],s=o[1]),{width:n,height:s}},A.prototype.addMediaSource=function(e){var A;return a(this,void 0,Promise,(function(){var t,i,o,r,n;return g(this,(function(s){switch(s.label){case 0:if(this.logger.log("".concat(this.logPrefix,"addMediaSource:"),e),-1!==this.findMediaSourceIndex(e))throw new Error("Media source already existed");return(t=Ie(JSON.stringify(e))).isSelected&&this.selectedSource&&this.unselectMediaSource(this.selectedSource),i=this._getTRTCSourceKey(t),o=this._getTRTCSourceItem(t),(r=this.trtcSourceMap.get(i)||[]).push(o),this.trtcSourceMap.set(i,r),i&&o?[4,this.trtc.updatePlugin("VideoMixer",(n={},n[i]=r,n))]:[3,2];case 1:s.sent(),s.label=2;case 2:return null===(A=this.mediaMixingDesigner)||void 0===A||A.addMedia({id:t.id,rect:this._getDesignerMediaRect(e),isSelected:t.isSelected||!0,origin:t}),t.isSelected&&(this.selectedSource=t),this.sourceList.push(t),[2]}}))}))},A.prototype.removeMediaSource=function(e){var A,t;return a(this,void 0,Promise,(function(){var i,o,r,n,s;return g(this,(function(a){if(this.logger.log("".concat(this.logPrefix,"removeMediaSource:"),e),-1===(i=this.findMediaSourceIndex(e)))throw new Error("Not existing media source to remove");return o=this._getTRTCSourceKey(e),r=this.trtcSourceMap.get(o)||[],n=r.findIndex((function(A){return A.id===e.id})),r.splice(n,1),this.trtc.updatePlugin("VideoMixer",((s={})[o]=r,s)),null===(A=this.mediaMixingDesigner)||void 0===A||A.removeMedia({id:e.id,rect:null===(t=e.layout)||void 0===t?void 0:t.rect,isSelected:e.isSelected||!1,origin:Ie(JSON.stringify(e))}),this.trtcSourceMap.set(o,r),this.sourceList.splice(i,1),[2]}))}))},A.prototype._getDesignerMediaRect=function(A){var t,i,o=(null===(t=A.layout)||void 0===t?void 0:t.rect)||{left:0,top:0,right:0,bottom:0},r=o.left,n=o.top,s=o.right,a=o.bottom,g=s-r,c=a-n;switch(null===(i=A.layout)||void 0===i?void 0:i.rotation){case e.TRTCVideoRotation.TRTCVideoRotation0:case e.TRTCVideoRotation.TRTCVideoRotation180:return{left:r,top:n,right:s,bottom:a};case e.TRTCVideoRotation.TRTCVideoRotation90:case e.TRTCVideoRotation.TRTCVideoRotation270:return{left:r,top:n,right:r+c,bottom:n+g};default:return{left:r,top:n,right:s,bottom:a}}},A.prototype._getPluginMediaRect=function(A){var t,i,o=(null===(t=A.layout)||void 0===t?void 0:t.rect)||{left:0,top:0,right:0,bottom:0},r=o.left,n=o.top,s=o.right,a=o.bottom;switch(null===(i=A.layout)||void 0===i?void 0:i.rotation){case e.TRTCVideoRotation.TRTCVideoRotation0:case e.TRTCVideoRotation.TRTCVideoRotation180:return{left:r,top:n,right:s,bottom:a};case e.TRTCVideoRotation.TRTCVideoRotation90:case e.TRTCVideoRotation.TRTCVideoRotation270:return{left:r,top:n,right:r+(a-n),bottom:n+(s-r)};default:return{left:r,top:n,right:s,bottom:a}}},A.prototype.updateMediaSource=function(e){var A;return a(this,void 0,Promise,(function(){var t,i,o,r,n,a,c;return g(this,(function(g){if(this.logger.log("".concat(this.logPrefix,"updateMediaSource:"),e),-1===(t=this.findMediaSourceIndex(e)))throw new Error("Not existing media source to update");return i=s(s({},this.sourceList[t]),Ie(JSON.stringify(e))),e.isSelected&&this.unselectMediaSource(this.selectedSource),o=this._getTRTCSourceKey(i),r=this._getTRTCSourceItem(i),n=this.trtcSourceMap.get(o)||[],a=n.findIndex((function(A){return A.id===e.id})),n[a]=r,this.trtc.updatePlugin("VideoMixer",((c={})[o]=n,c)),null===(A=this.mediaMixingDesigner)||void 0===A||A.updateMedia({id:e.id,rect:this._getDesignerMediaRect(e),isSelected:e.isSelected||!1,origin:Ie(JSON.stringify(e))}),this.trtcSourceMap.set(o,n),this.sourceList[t]=i,[2]}))}))},A.prototype.setPhoneMirrorParam=function(e,A){},A.prototype.setScreenCaptureProperty=function(e,A){},A.prototype.startPublish=function(){return a(this,void 0,Promise,(function(){return g(this,(function(e){switch(e.label){case 0:return this.logger.log("".concat(this.logPrefix,"startPublish")),[4,this.trtc.startLocalVideo({option:{videoTrack:this.mixVideoTrack}})];case 1:return e.sent(),[2]}}))}))},A.prototype.stopPublish=function(){return a(this,void 0,Promise,(function(){return g(this,(function(e){switch(e.label){case 0:return this.logger.log("".concat(this.logPrefix,"stopPublish")),[4,this.trtc.stopLocalVideo()];case 1:return e.sent(),[2]}}))}))},A.prototype.updatePublishParams=function(e){var A;return a(this,void 0,Promise,(function(){var t,i,o;return g(this,(function(r){switch(r.label){case 0:return this.logger.log("".concat(this.logPrefix,"updatePublishParams:"),e),this.publishParams=e,t=this._getCanvasSize(e.videoEncoderParams.videoResolution,e.videoEncoderParams.resMode),i=t.width,o=t.height,[4,this.trtc.updatePlugin("VideoMixer",{canvasInfo:{width:i,height:o,canvasColor:String(e.canvasColor)}})];case 1:return r.sent(),[4,this.updateLocalVideo({option:{profile:{width:i,height:o}}})];case 2:return r.sent(),null===(A=this.mediaMixingDesigner)||void 0===A||A.updateOptions({videoResolution:this.publishParams.videoEncoderParams.videoResolution,resMode:this.publishParams.videoEncoderParams.resMode}),[2]}}))}))},A.prototype.setMediaServerPath=function(e){return a(this,void 0,Promise,(function(){var A,t,i,o;return g(this,(function(r){return A="",e&&""!==e.trim()?A=e:(t=globalThis.process,i=t.resourcesPath,o=t.execPath,A=o.endsWith("electron.exe")?"..\\..\\..\\..\\node_modules\\trtc-electron-sdk\\build\\Release\\liteav_media_server.exe":"".concat(i,"\\liteav_media_server.exe")),this.logger.log("".concat(this.logPrefix," server path:").concat(A)),[2]}))}))},A.prototype.on=function(e,A){var t;null===(t=this.eventEmitter)||void 0===t||t.on(e,A)},A.prototype.off=function(e,A){var t;null===(t=this.eventEmitter)||void 0===t||t.off(e,A)},A.prototype.initResizeObserver=function(){this.view&&(this.resizeObserver=new ResizeObserver(this.onPreviewAreaResize),this.resizeObserver.observe(this.view))},A.prototype.onPreviewAreaResize=function(e){this.logger.log("".concat(this.logPrefix,"onPreviewAreaResize:"),e);for(var A=0,t=e;A<t.length;A++){var i=t[A];if(this.windowID&&i.target===this.view){this.setDisplayRect();break}}},A.prototype.onVisibilityChange=function(){this.logger.log("".concat(this.logPrefix,"onVisibilityChange document.hidden:").concat(document.hidden)),document.hidden?this.setDisplayParams(this.windowID,{left:0,right:0,top:0,bottom:0}):this.setDisplayRect()},A.prototype.setDisplayRect=function(){if(this.windowID&&this.view){var e=this.view.getBoundingClientRect(),A={left:e.left*window.devicePixelRatio,right:e.right*window.devicePixelRatio,top:e.top*window.devicePixelRatio,bottom:e.bottom*window.devicePixelRatio};this.nodeMediaMixingPlugin.setDisplayParams(this.windowID,A)}},A.prototype.createDesigner=function(){var A,t;this.view&&(this.mediaMixingDesigner=new Or({view:this.view,videoResolution:(null===(A=this.publishParams)||void 0===A?void 0:A.videoEncoderParams.videoResolution)||e.TRTCVideoResolution.TRTCVideoResolution_1920_1080,resMode:(null===(t=this.publishParams)||void 0===t?void 0:t.videoEncoderParams.resMode)||e.TRTCVideoResolutionMode.TRTCVideoResolutionModeLandscape,canExceedContainer:!0,logger:this.logger}),this.listenDesignerEvent())},A.prototype.destroyDesigner=function(){var e;this.mediaMixingDesigner&&(this.unlistenDesignerEvent(),null===(e=this.mediaMixingDesigner)||void 0===e||e.destroy(),this.mediaMixingDesigner=null)},A.prototype.listenDesignerEvent=function(){var e,A,t,i,o;null===(e=this.mediaMixingDesigner)||void 0===e||e.on("onError",this.onError),null===(A=this.mediaMixingDesigner)||void 0===A||A.on("onSourceSelected",this.onSourceSelected),null===(t=this.mediaMixingDesigner)||void 0===t||t.on("onSourceMoved",this.onSourceMoved),null===(i=this.mediaMixingDesigner)||void 0===i||i.on("onSourceResized",this.onSourceResized),null===(o=this.mediaMixingDesigner)||void 0===o||o.on("onRightButtonClicked",this.onRightButtonClicked)},A.prototype.unlistenDesignerEvent=function(){var e,A,t,i,o;null===(e=this.mediaMixingDesigner)||void 0===e||e.off("onError",this.onError),null===(A=this.mediaMixingDesigner)||void 0===A||A.off("onSourceSelected",this.onSourceSelected),null===(t=this.mediaMixingDesigner)||void 0===t||t.off("onSourceMoved",this.onSourceMoved),null===(i=this.mediaMixingDesigner)||void 0===i||i.off("onSourceResized",this.onSourceResized),null===(o=this.mediaMixingDesigner)||void 0===o||o.off("onRightButtonClicked",this.onRightButtonClicked)},A.prototype.onError=function(e,A){this.logger.log("".concat(this.logPrefix,"onError:"),e,A)},A.prototype.onSourceSelected=function(e){var A;this.logger.log("".concat(this.logPrefix,"onSourceSelected:"),e),(null==e?void 0:e.origin)?this.updateMediaSource(s(s({},e.origin),{isSelected:!0})):this.selectedSource&&this.updateMediaSource(s(s({},this.selectedSource),{isSelected:!1})),null===(A=this.eventEmitter)||void 0===A||A.emit("onSourceSelected",e?e.origin:null)},A.prototype.onSourceMoved=function(e,A){var t,i;if(this.logger.log("".concat(this.logPrefix,"onSourceMoved:"),e,A),null==e?void 0:e.origin){var o=s(s({},e.origin),{layout:s(s({},e.origin.layout),{rect:A})});this.updateMediaSource(le(o,{layout:{rect:this._getPluginMediaRect(o)}})),(null===(t=this.selectedSource)||void 0===t?void 0:t.id)===e.origin.id&&(this.selectedSource=this.sourceList.find((function(A){return A.id===e.origin.id})))}null===(i=this.eventEmitter)||void 0===i||i.emit("onSourceMoved",e.origin,A)},A.prototype.onSourceResized=function(e,A){var t,i;if(this.logger.log("".concat(this.logPrefix,"onSourceResized:"),e,A),null==e?void 0:e.origin){var o=s(s({},e.origin),{layout:s(s({},e.origin.layout),{rect:A})});this.updateMediaSource(le(o,{layout:{rect:this._getPluginMediaRect(o)}})),(null===(t=this.selectedSource)||void 0===t?void 0:t.id)===e.origin.id&&(this.selectedSource=this.sourceList.find((function(A){return A.id===e.origin.id})))}null===(i=this.eventEmitter)||void 0===i||i.emit("onSourceResized",e.origin,A)},A.prototype.onRightButtonClicked=function(e){var A;this.logger.log("".concat(this.logPrefix,"onRightButtonClicked:"),e),null===(A=this.eventEmitter)||void 0===A||A.emit("onRightButtonClicked",e.origin)},A.prototype.isSameMediaSource=function(e,A){return e.id===A.id},A.prototype.isMediaSourceExisted=function(e){var A=this;return this.sourceList.some((function(t){return A.isSameMediaSource(t,e)}))},A.prototype.findMediaSourceIndex=function(e){return this.sourceList.findIndex((function(A){return A.id===e.id}))},A.prototype.unselectMediaSource=function(e){var A,t;return a(this,void 0,Promise,(function(){var i;return g(this,(function(o){return e?(-1!==(i=this.findMediaSourceIndex(e))&&(this.sourceList[i].isSelected=!1),null===(A=this.mediaMixingDesigner)||void 0===A||A.updateMedia({id:e.id,rect:null===(t=e.layout)||void 0===t?void 0:t.rect,isSelected:e.isSelected||!1,origin:Ie(JSON.stringify(e))}),[2]):[2]}))}))},A.prototype.handleCppCallbackEvent=function(A){this.logger.log("".concat(this.logPrefix," event:"),A);var t=A[0],i=A[1];switch(t){case e.TRTCMediaMixingEvent.onMediaSourceSizeChanged:this.onMediaSourceSizeChanged(i);break;case"onPhoneMirrorSourceChanged":this.onPhoneMirrorSourceChanged(i)}},A.prototype.onMediaSourceSizeChanged=function(A){var t,i=this.findMediaSourceIndex(A);if(-1!==i){var o=this.sourceList[i];o=Ie(JSON.stringify(o));var r={width:A.width,height:A.height};null===(t=this.eventEmitter)||void 0===t||t.emit(e.TRTCMediaMixingEvent.onMediaSourceSizeChanged,o,r)}else this.logger.warn("".concat(this.logPrefix,"onMediaSourceSizeChanged media source not existed:"),A)},A.prototype.onPhoneMirrorSourceChanged=function(A){var t,i,o,r,n=A.phoneMirrorSource,s=A.state;if(null!=s)switch(s){case 0:null===(t=this.eventEmitter)||void 0===t||t.emit(e.TRTCMediaMixingEvent.onSourcePlugged,n,"Plugged");break;case 1:null===(i=this.eventEmitter)||void 0===i||i.emit(e.TRTCMediaMixingEvent.onSourceConnected,n,"Connected");break;case 2:null===(o=this.eventEmitter)||void 0===o||o.emit(e.TRTCMediaMixingEvent.onSourceDisconnected,n,"Disconnected");break;case 3:null===(r=this.eventEmitter)||void 0===r||r.emit(e.TRTCMediaMixingEvent.onSourceUnplugged,n,"Unplugged");break;default:this.logger.warn("".concat(this.logPrefix,"onPhoneMirrorSourceChanged invalid data:"),A)}else this.logger.warn("".concat(this.logPrefix,"onPhoneMirrorSourceChanged invalid data:"),A)},A.mediaMixingManager=null,A}(),Kr=Object.defineProperty,zr=Object.getOwnPropertySymbols,Zr=Object.prototype.hasOwnProperty,Wr=Object.prototype.propertyIsEnumerable,jr=(e,A,t)=>A in e?Kr(e,A,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[A]=t,qr=(e,A)=>{for(var t in A||(A={}))Zr.call(A,t)&&jr(e,t,A[t]);if(zr)for(var t of zr(A))Wr.call(A,t)&&jr(e,t,A[t]);return e},Xr=(e,A,t)=>jr(e,"symbol"!=typeof A?A+"":A,t),$r={x:{required:!0,type:"number"},y:{required:!0,type:"number"},width:{required:!0,type:"number",notLessThanZero:!0,min:1,max:3840},height:{required:!0,type:"number",notLessThanZero:!0,min:1,max:3840},zIndex:{required:!0,type:"number"},fillMode:{required:!1,type:"string"},mirror:{required:!1,type:"boolean"},rotation:{required:!1,type:"number"},hidden:{required:!1,type:"boolean"}},en=(e,A=!1)=>({type:"object",required:A,properties:{canvasColor:{required:!1,type:["string",CanvasGradient,CanvasPattern]},width:{required:!0,type:"number",notLessThanZero:!0,min:1,max:3840},height:{required:!0,type:"number",notLessThanZero:!0,min:1,max:3840},frameRate:{required:!1,type:"number",notLessThanZero:!0}},validate(A,t,i){const{RtcError:o,ErrorCode:r,ErrorCodeDictionary:n}=e.errorModule;if(!A)return;const{width:s,height:a}=A;if(s&&a&&s*a>8294400)throw new o({code:r.INVALID_PARAMETER,message:"The mix resolution cannot be set higher than 3840 * 2160."})}}),An=e=>({required:!1,type:["string",HTMLElement,null],validate(A,t,i){const{RtcError:o,ErrorCode:r,ErrorCodeDictionary:n}=e.errorModule;if(e.utils.isString(A)&&!document.getElementById(A))throw new o({code:r.INVALID_PARAMETER,extraCode:n.INVALID_ELEMENT_ID,fnName:i,messageParams:{key:t}})}}),tn=(e,A=!0)=>({type:"object",required:A,properties:qr({},$r),validate(A,t,i){const{RtcError:o,ErrorCode:r,ErrorCodeDictionary:n}=e.errorModule;if(A){if(A.fillMode&&!["contain","cover","fill"].includes(A.fillMode))throw new o({code:r.INVALID_PARAMETER,extraCode:n.INVALID_PARAMETER_TYPE,message:"The fillMode parameter must be 'contain', 'cover' or 'fill'",fnName:i});if(A.rotation&&![0,90,180,270].includes(A.rotation))throw new o({code:r.INVALID_PARAMETER,extraCode:n.INVALID_PARAMETER_TYPE,message:"The rotation parameter must be 0, 90, 180 or 270",fnName:i})}}}),on=e=>({type:"array",required:!1,arrayItem:{type:"object",properties:{id:{required:!0,type:"string"},cameraId:{required:!1,type:"string"},videoTrack:{required:!1,instanceof:MediaStreamTrack},profile:{required:!1,type:["string","object"],properties:{width:{type:"number"},height:{type:"number"},frameRate:{type:"number"},bitrate:{type:"number"}}},layout:qr({},tn(e))}}}),rn=e=>({type:"array",required:!1,arrayItem:{type:"object",properties:{id:{required:!0,type:"string"},profile:{required:!1,type:["string","object"],properties:{width:{type:"number"},height:{type:"number"},frameRate:{type:"number"},bitrate:{type:"number"}}},captureElement:{required:!1,type:HTMLElement},preferDisplaySurface:{required:!1,type:"string"},layout:qr({},tn(e))},validate(A,t,i){const{RtcError:o,ErrorCode:r,ErrorCodeDictionary:n}=e.errorModule;if(!e.rtcDectection.isScreenCaptureApiAvailable())throw new o({code:r.ENV_NOT_SUPPORTED,fnName:i,extraCode:n.NOT_SUPPORTED_SCREEN_SHARE})}}}),nn=e=>({type:"array",required:!1,arrayItem:{type:"object",properties:{id:{required:!0,type:"string"},content:{required:!0,type:"string"},font:{required:!1,type:"string"},color:{required:!1,type:["string",CanvasGradient,CanvasPattern]},layout:qr({},tn(e))}}}),sn=e=>({type:"array",required:!1,arrayItem:{type:"object",properties:{id:{required:!0,type:"string"},url:{required:!0,type:"string"},layout:qr({},tn(e))}}}),an=e=>({type:"array",required:!1,arrayItem:{type:"object",properties:{id:{required:!0,type:"string"},url:{required:!0,type:"string"},layout:qr({},tn(e))}}});var gn=0,cn=class e{constructor(e){this.core=e,Xr(this,"seq"),Xr(this,"log"),Xr(this,"localMixVideoTrack",null),Xr(this,"_mixVideoConfig"),gn+=1,this.seq=gn,this.log=e.log.createChild({id:`${this.getAlias()}${gn}`}),this.log.info("created")}getName(){return e.Name}getAlias(){return"vmix"}getValidateRule(e){switch(e){case"start":return function(e){return{name:"VideoMixerOptions",type:"object",required:!0,allowEmpty:!1,properties:{view:qr({},An(e)),canvasInfo:qr({},en(e,!0)),camera:qr({},on(e)),screen:qr({},rn(e)),text:qr({},nn(e)),image:qr({},sn(e)),video:qr({},an(e))}}}(this.core);case"update":return function(e){return{name:"VideoMixerOptions",type:"object",required:!1,allowEmpty:!1,properties:{view:qr({},An(e)),canvasInfo:qr({},en(e)),camera:qr({},on(e)),screen:qr({},rn(e)),text:qr({},nn(e)),image:qr({},sn(e)),video:qr({},an(e))}}}(this.core);case"stop":return this.core,{name:"StopVideoMixerOptions",required:!1}}}getGroup(){return"vmix"}async start(e){this.localMixVideoTrack||(this.localMixVideoTrack=new this.core.LocalMixVideoTrack(this.core.room.videoManager)),this._mixVideoConfig={canvasInfo:{width:1920,height:1080}},e=this.core.utils.deepCloneBasic(e),await this.parseMixOptions(e);const{view:A}=e;return this._updatePreview({view:A,track:this.localMixVideoTrack}),await this.localMixVideoTrack.startMix(),this.localMixVideoTrack._outputTrack}async update(e){const{RtcError:A,ErrorCode:t}=this.core.errorModule;if(!this.localMixVideoTrack)throw new A({code:t.INVALID_OPERATION,message:"mixTrack doesn't initialize!"});e=this.core.utils.deepCloneBasic(e),await this.parseMixOptions(e);const{view:i}=e;return await this._updatePreview({view:i,track:this.localMixVideoTrack,prevConfig:this._mixVideoConfig}),this.localMixVideoTrack._outputTrack}async parseMixOptions(e){if(this.localMixVideoTrack)try{const{canvasInfo:A,camera:t,screen:i,text:o,image:r,video:n}=e;if(A){const{canvasColor:e,width:t,height:i,frameRate:o}=A;e&&this.localMixVideoTrack.setMixBackground(e),o&&this.localMixVideoTrack.setFps(o),this.localMixVideoTrack.resizeMixCanvas(t,i),this._mixVideoConfig.canvasInfo=A}t&&(this._mixVideoConfig.camera=await this.parseCameraOptions(this.localMixVideoTrack,t,this._mixVideoConfig.camera)),i&&(this._mixVideoConfig.screen=await this.parseScreenOptions(this.localMixVideoTrack,i,this._mixVideoConfig.screen)),o&&(this._mixVideoConfig.text=await this.parseTextOptions(this.localMixVideoTrack,o,this._mixVideoConfig.text)),r&&(this._mixVideoConfig.image=await this.parseImageOptions(this.localMixVideoTrack,r,this._mixVideoConfig.image)),n&&(this._mixVideoConfig.video=await this.parseVideoOptions(this.localMixVideoTrack,n,this._mixVideoConfig.video))}catch(e){this.log.error("parse mix options failed",e)}}async parseCameraOptions(e,A,t=[]){var i,o;const r=new Set(A.map((e=>e.id))),n=t.filter((e=>!r.has(e.id))).map((e=>e.id));for(const g of n)e.removeCameraSource(g);const s=new Map(t.map((e=>[e.id,e]))),a=[];for(const g of A){const{id:A,layout:r,profile:n}=g;try{if(t.some((e=>e.id===A))){const t=null==(i=e.inputLocalVideoTracks.get(A))?void 0:i.mediaTrack;await this.updateCameraProfile(g);const s=null==(o=e.inputLocalVideoTracks.get(A))?void 0:o.mediaTrack;let a;n&&(a=this.core.utils.isString(n)?this.core.constants.videoProfileMap[n]:n),s!==t?e.updateCameraSource(A,r,s,a):e.updateCameraSource(A,r,null,a)}else{const t=await this.captureCamera(g);try{e.addCameraSource(A,t,r)}catch(e){throw t.close(),e}}a.push(g)}catch(e){this.log.error(`${A} mix failed.`,e),s.has(A)&&a.push(s.get(A))}}return a}async parseScreenOptions(e,A,t=[]){const i=new Set(A.map((e=>e.id))),o=t.filter((e=>!i.has(e.id))).map((e=>e.id));for(const s of o)e.removeScreenSource(s);const r=new Map(t.map((e=>[e.id,e]))),n=[];for(const s of A){const{id:A,layout:i}=s;try{if(t.some((e=>e.id===A)))e.updateScreenSource(A,i);else{const t=await this.captureScreen(s);try{e.addScreenSource(A,t,i)}catch(e){throw t.close(),e}}n.push(s)}catch(e){this.log.error(`${A} mix failed.`,e),r.has(A)&&n.push(r.get(A))}}return n}async parseTextOptions(e,A,t=[]){const i=new Set(A.map((e=>e.id))),o=t.filter((e=>!i.has(e.id))).map((e=>e.id));for(const s of o)e.removeTextSource(s);const r=new Map(t.map((e=>[e.id,e]))),n=[];for(const s of A){const{id:A}=s;try{t.some((e=>e.id===A))?e.updateTextSource(s):e.addTextSource(s),n.push(s)}catch(e){this.log.error(`${A} mix failed.`,e),r.has(A)&&n.push(r.get(A))}}return n}async parseImageOptions(e,A,t=[]){const i=new Set(A.map((e=>e.id))),o=t.filter((e=>!i.has(e.id))).map((e=>e.id));for(const s of o)e.removeImageSource(s);const r=new Map(t.map((e=>[e.id,e]))),n=[];for(const s of A){const{id:A,url:i,layout:o}=s;try{const r=t.find((e=>e.id===A));if(r){let t;r.url!==i&&(t=await this.core.utils.loadImage(i)),e.updateImageSource(A,o,t)}else{const t=await this.core.utils.loadImage(i);e.addImageSource(A,t,o)}n.push(s)}catch(e){this.log.error(`${A} mix failed.`,e),r.has(A)&&n.push(r.get(A))}}return n}async parseVideoOptions(e,A,t=[]){const i=new Set(A.map((e=>e.id))),o=t.filter((e=>!i.has(e.id))).map((e=>e.id));for(const s of o)e.removeVideoSource(s);const r=new Map(t.map((e=>[e.id,e]))),n=[];for(const s of A){const{id:A,url:i,layout:o}=s;try{const r=t.find((e=>e.id===A));let a;if(r)r.url!==i&&(a=await this.core.utils.loadVideo(i)),e.updateVideoSource(A,o,a);else{const t=await this.core.utils.loadVideo(i);e.addVideoSource(A,t,o)}n.push(s)}catch(e){this.log.error(`${A} mix failed.`,e),r.has(A)&&n.push(r.get(A))}}return n}async captureCamera(e){const{id:A,cameraId:t,videoTrack:i,profile:o}=e,r=new this.core.LocalVideoTrack;r.log.id+=`-${A}`;const n={};return t?n.deviceId=t:this.core.utils.isUndefined(i)||(n.customSource=i),this.core.utils.isUndefined(o)||(this.core.utils.isString(o)?this.core.constants.videoProfileMap[o]&&r.setProfile(this.core.constants.videoProfileMap[o]):r.setProfile(o)),await r.capture(n),r}async updateCameraProfile(e){var A;const{id:t,cameraId:i,videoTrack:o,profile:r}=e,n=null==(A=this.localMixVideoTrack)?void 0:A.inputLocalVideoTracks.get(t);n&&(i?await n.switchDevice(i):this.core.utils.isUndefined(o)||await n.setInputMediaStreamTrack(o),this.core.utils.isUndefined(r)||(this.core.utils.isString(r)?this.core.constants.videoProfileMap[r]&&n.setProfile(this.core.constants.videoProfileMap[r]):n.setProfile(r),i&&n.isNeedToSwitchDevice(i)||await n.applyProfile()))}async captureScreen(e){const{id:A,profile:t,captureElement:i,preferDisplaySurface:o}=e,r=new this.core.LocalScreenTrack;r.log.id+=`-${A}`;const n={};return this.core.utils.isUndefined(t)||(this.core.utils.isString(t)?this.core.constants.screenProfileMap[t]&&r.setProfile(this.core.constants.screenProfileMap[t]):r.setProfile(t)),i&&(n.captureElement=i),o&&(n.preferDisplaySurface=o),await r.capture(n),r.mediaTrack.addEventListener(this.core.constants.NAME.ENDED,(()=>{var e,t;null==(e=this.localMixVideoTrack)||e.removeScreenSource(A),(null==(t=this._mixVideoConfig)?void 0:t.screen)&&(this._mixVideoConfig.screen=this._mixVideoConfig.screen.filter((e=>e.id!==A)))})),r}async _updatePreview({view:e,track:A,prevConfig:t}){if(this.core.utils.isUndefined(e)&&t&&t.view){const e=this.core.utils.getViewListFromView(t.view);e.length>0&&await A.play(e)}if(!this.core.utils.isUndefined(e)){const t=this.core.utils.getViewListFromView(e);t.length>0?await A.play(t):A.stop()}}stop(){var e;null==(e=this.localMixVideoTrack)||e.close(),this.localMixVideoTrack=null,delete this._mixVideoConfig}};Xr(cn,"Name","VideoMixer");var Cn=cn,un=r.default._loggerManager;un.info("TRTCCloud Version: ".concat(hr));var In,dn,ln,hn="trtcCloud",Bn=1;navigator&&navigator.mediaDevices&&navigator.mediaDevices.addEventListener&&navigator.mediaDevices.addEventListener("devicechange",(In=function(){0!==En.size&&Array.from(En.values()).forEach((function(e){e.fn()}))},dn=30,function(){for(var e=this,A=[],t=0;t<arguments.length;t++)A[t]=arguments[t];ln>0&&clearTimeout(ln),ln=window.setTimeout((function(){In.apply(e,A),ln=-1}),dn)}));var En=new Map,Qn=function(A){function i(t){void 0===t&&(t={});var o=A.call(this)||this;o._version="",o._frameWorkType=30,o._component=0,o._language=0,o._networkProxy={},o._localView=null,o._autoRecvAudio=!0,o._autoRecvVideo=!1,o._localTestView=null,o._isVideoPublish=!0,o._localRenderParams={rotation:e.TRTCVideoRotation.TRTCVideoRotation0,fillMode:e.TRTCVideoFillMode.TRTCVideoFillMode_Fill,mirrorType:e.TRTCVideoMirrorType.TRTCVideoMirrorType_Auto},o._encoderMirror=void 0,o._videoProfile={},o._isAudioPublish=!0,o._audioProfile=r.default.TYPE.AUDIO_PROFILE_STANDARD,o._captureVolume=100,o._isSharingScreen=!1,o._remoteStreamConfig=new Map,o._remoteStreamMap=new Map,o._cameraList=[],o._microphoneList=[],o._speakerList=[],o._currentCamera={},o._currentMicrophone={},o._currentSpeaker={},o._currentCameraId="",o._currentMicrophoneId="",o._currentSpeakerId="",o._screenShareParams={option:{}},o._isMobile=ko,o._isFrontCamera=!0,o._smallStreamVideoProfile=void 0,o._qosPreference=void 0,o._defaultVideoProfile={width:640,height:480,frameRate:15,bitrate:900},o._defaultScreenProfile={width:1920,height:1080,frameRate:15,bitrate:1500},o._defaultSmallVideoProfile={width:160,height:120,frameRate:15,bitrate:200},o._isVirtualBackground=!1,o._isTestVirtualBackground=!1,o._isBeautyEnabled=!1,o._isTestBeautyEnabled=!1,o._remoteStatisticsUserIdList=[],o._hasJoinedRoom=!1,o._isExitingRoom=!1,o._version=hr;var n=t.frameWorkType,s=void 0===n?30:n,a=t.component,g=void 0===a?0:a,c=t.language,C=void 0===c?0:c;return o._frameWorkType=s,o._component=g,o._language=C,o._trtc=r.default.create({enableSEI:i.enableSEI,assetsPath:i.assetsPath,plugins:[Cn]}),o._testTrtc=r.default.create(),o._log=r.default._loggerManager,o.logger=new Sr(un,{seq:Bn++}),o._echoCancellation=void 0,o._noiseSuppression=void 0,o._autoGainControl=void 0,o._addTRTCEvents(),o.handleDeviceChange=o.handleDeviceChange.bind(o),En.set(o,{fn:o.handleDeviceChange,self:o}),o}return function(e,A){if("function"!=typeof A&&null!==A)throw new TypeError("Class extends value "+String(A)+" is not a constructor or null");function t(){this.constructor=e}n(e,A),e.prototype=null===A?Object.create(A):(t.prototype=A.prototype,new t)}(i,A),i.getTRTCShareInstance=function(e){return i.shareInstance||(i.shareInstance=new i(e)),i.shareInstance},i.setLogLevel=function(A,t){var i,o=((i={})[e.TRTCLogLevel.TRTCLogLevelVerbose]=0,i[e.TRTCLogLevel.TRTCLogLevelDebug]=1,i[e.TRTCLogLevel.TRTCLogLevelInfo]=2,i[e.TRTCLogLevel.TRTCLogLevelWarn]=3,i[e.TRTCLogLevel.TRTCLogLevelError]=4,i[e.TRTCLogLevel.TRTCLogLevelFatal]=4,i[e.TRTCLogLevel.TRTCLogLevelNone]=5,i),n=o[A];ce(n)&&(n=o[e.TRTCLogLevel.TRTCLogLevelInfo]);var s=!ue(t)||t;r.default.setLogLevel(n,s)},i.destroyTRTCShareInstance=function(){i.shareInstance&&(i.shareInstance._destroy(),i.shareInstance=null),Array.from(i.subCloudMap.keys()).forEach((function(e){return e._destroy()}))},i.callExperimentalAPI=function(e){console.log("static ".concat(hn,".callExperimentalAPI"),e);var A=Ie(e);if(A!==e){var t=A.api,o=A.params;if(t&&o)try{switch(t){case"enableSEI":i.enableSEI=o.enable;break;case"setAssetsPath":i.assetsPath=o.assetsPath}}catch(r){throw r}}},i.prototype.createSubCloud=function(){if(this!==i.shareInstance)return null;var e=new i;return i.subCloudMap.set(e,e),e},i.prototype.destroy=function(){this!==i.shareInstance?(i.subCloudMap.get(this)&&i.subCloudMap.delete(this),this._destroy()):i.destroyTRTCShareInstance()},i.prototype._destroy=function(){En.delete(this),this.removeAllListeners(),this._trtc.off("*"),this._trtc.destroy(),this._trtc=null,this._testTrtc.off("*"),this._testTrtc.destroy(),this._testTrtc=null},i.prototype.getSDKVersion=function(){return this._version||""},i.prototype.enterRoom=function(e,A){return a(this,void 0,Promise,(function(){var t,i,o,r,n,a,c,C,u,I,d,l,h,B,E,Q,p,f;return g(this,(function(g){switch(g.label){case 0:if(t=e.sdkAppId,i=e.userId,o=e.userSig,r=e.roomId,n=e.strRoomId,a=e.role,c=e.privateMapKey,C=e.businessInfo,u=e.enableAutoPlayDialog,I=e.proxy,d=e.streamId,l=e.userDefineRecordId,this.logger.update({sdkAppId:t,userId:i}),this.logger.info("".concat(hn,".enterRoom with params: "),e,A),I&&(this._networkProxy=I),!(t&&i&&o))return[3,5];g.label=1;case 1:return g.trys.push([1,3,,4]),h={sdkAppId:t,userId:i,userSig:o,roomId:r,strRoomId:n,role:ne[a],scene:se[A],autoReceiveAudio:this._autoRecvAudio,autoReceiveVideo:this._autoRecvVideo,frameWorkType:this._frameWorkType,component:this._component,language:this._language},h=c?s(s({},h),{privateMapKey:c}):h,h=C?s(s({},h),{businessInfo:C}):h,B=u||this._enableAutoPlayDialog,h=ue(B)?s(s({},h),{enableAutoPlayDialog:B}):h,h=this._networkProxy?s(s({},h),{proxy:this._networkProxy}):h,h=d?s(s({},h),{streamId:d}):h,h=l?s(s({},h),{userDefineRecordId:l}):h,h=void 0!==this._latencyLevel?s(s({},h),{latencyLevel:this._latencyLevel}):h,E=ge(),[4,this._trtc.enterRoom(h)];case 2:return g.sent(),this._hasJoinedRoom=!0,Q=ge()-E,this.emit("onEnterRoom",Q),[3,4];case 3:return p=g.sent(),f=(f=this._transformTRTCErrorCode(p,"enterRoom"))<0?f:-1,this.emit("onEnterRoom",f),this._callFunctionErrorManage(p,"enterRoom"),[3,4];case 4:return[3,6];case 5:this._emitError(dr),g.label=6;case 6:return[2]}}))}))},i.prototype.exitRoom=function(){return a(this,void 0,Promise,(function(){var e;return g(this,(function(A){switch(A.label){case 0:return A.trys.push([0,2,,3]),this.logger.info("".concat(hn,".exitRoom")),this._isExitingRoom=!0,this._isSharingScreen&&this.stopScreenShare(),this.resetTRTCCloud(),this.stopLocalPreview(),this.stopLocalAudio(),[4,this._trtc.exitRoom()];case 1:return A.sent(),this._hasJoinedRoom=!1,this._isExitingRoom=!1,this.emit("onExitRoom",Ar.exitRoom),[3,3];case 2:return e=A.sent(),this._callFunctionErrorManage(e,"exitRoom"),[3,3];case 3:return[2]}}))}))},i.prototype.switchRole=function(e){return a(this,void 0,void 0,(function(){var A;return g(this,(function(t){switch(t.label){case 0:this.logger.info("".concat(hn,".switchRole with param: "),e),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,this._trtc.switchRole(ne[e])];case 2:return t.sent(),this.emit("onSwitchRole",0,"switch role success, role = ".concat(e,", ").concat(ne[e])),[3,4];case 3:return A=t.sent(),this.emit("onSwitchRole",null==A?void 0:A.getCode(),A.message),[3,4];case 4:return[2]}}))}))},i.prototype.setDefaultStreamRecvMode=function(e,A){return a(this,void 0,void 0,(function(){return g(this,(function(t){return this.logger.info("".concat(hn,".setDefaultStreamRecvMode with param: "),{autoRecvAudio:e,autoRecvVideo:A}),ue(e)&&(this._autoRecvAudio=e),ue(A)&&(this._autoRecvVideo=A),[2]}))}))},i.prototype.resetTRTCCloud=function(){this._setIsAudioPublish(!0),this._echoCancellation=void 0,this._noiseSuppression=void 0,this._autoGainControl=void 0,this._isVirtualBackground=!1,this._isTestVirtualBackground=!1,this._remoteStatisticsUserIdList=[],this._resetBeautyStyle()},i.prototype._updateLocalVideo=function(){return a(this,void 0,void 0,(function(){var e;return g(this,(function(A){switch(A.label){case 0:return A.trys.push([0,2,,3]),[4,this._trtc.updateLocalVideo(this._generateLocalVideoData())];case 1:return A.sent(),[3,3];case 2:if((e=A.sent()).code!==r.default.ERROR_CODE.OPERATION_ABORT)throw e;return[3,3];case 3:return[2]}}))}))},i.prototype._updateLocalTestVideo=function(){return a(this,void 0,void 0,(function(){var e;return g(this,(function(A){switch(A.label){case 0:return A.trys.push([0,2,,3]),[4,this._testTrtc.updateLocalVideo(this._generateLocalTestVideoData())];case 1:return A.sent(),[3,3];case 2:if((e=A.sent()).code!==r.default.ERROR_CODE.OPERATION_ABORT)throw e;return[3,3];case 3:return[2]}}))}))},i.prototype._updateLocalScreen=function(){return a(this,void 0,void 0,(function(){var e;return g(this,(function(A){switch(A.label){case 0:return A.trys.push([0,2,,3]),[4,this._trtc.updateScreenShare(this._getScreenShareParams())];case 1:return A.sent(),[3,3];case 2:if((e=A.sent()).code!==r.default.ERROR_CODE.OPERATION_ABORT)throw e;return[3,3];case 3:return[2]}}))}))},i.prototype._updateRemoteVideo=function(e,A){return a(this,void 0,void 0,(function(){var t;return g(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,this._trtc.updateRemoteVideo(this._generateRemoteVideoData(e,A))];case 1:return i.sent(),[3,3];case 2:if((t=i.sent()).code!==r.default.ERROR_CODE.OPERATION_ABORT)throw t;return[3,3];case 3:return[2]}}))}))},i.prototype.startLocalPreview=function(){for(var e=[],A=0;A<arguments.length;A++)e[A]=arguments[A];return a(this,void 0,Promise,(function(){var A,t,i,o,n;return g(this,(function(s){switch(s.label){case 0:this.logger.info("".concat(hn,".startLocalPreview with params: "),e),1===c([],e,!0).length?t=c([],e,!0)[0]:2===c([],e,!0).length&&(n=c([],e,!0),A=n[0],t=n[1]),ce(A)||(this._setIsMobile(!0),this._setIsFrontCamera(A)),this._setLocalView(t),s.label=1;case 1:s.trys.push([1,9,,10]),s.label=2;case 2:return s.trys.push([2,4,,8]),[4,this._trtc.startLocalVideo(this._generateLocalVideoData())];case 3:return s.sent(),[3,8];case 4:return(i=s.sent()).code!==r.default.ERROR_CODE.OPERATION_ABORT?[3,6]:[4,this._updateLocalVideo()];case 5:return s.sent(),[3,7];case 6:throw i;case 7:return[3,8];case 8:return this.emit("onCameraDidReady"),[3,10];case 9:return o=s.sent(),this._callFunctionErrorManage(o,"startLocalPreview"),[3,10];case 10:return[2]}}))}))},i.prototype.updateLocalView=function(e){return a(this,void 0,void 0,(function(){return g(this,(function(A){switch(A.label){case 0:return this.logger.info("".concat(hn,".updateLocalView with param: "),e),this._setLocalView(e),[4,this._updateLocalVideo()];case 1:return A.sent(),[2]}}))}))},i.prototype.stopLocalPreview=function(){return a(this,void 0,void 0,(function(){var e;return g(this,(function(A){switch(A.label){case 0:this.logger.info("".concat(hn,".stopLocalPreview")),A.label=1;case 1:return A.trys.push([1,3,,4]),this._setLocalView(null),[4,this._trtc.stopLocalVideo()];case 2:return A.sent(),[3,4];case 3:return e=A.sent(),console.warn("".concat(hn," stopLocalPreview error: ").concat(e)),this._callFunctionErrorManage(e,"stopLocalPreview"),[3,4];case 4:return[2]}}))}))},i.prototype.muteLocalVideo=function(e){return void 0===e&&(e=!1),a(this,void 0,void 0,(function(){var A;return g(this,(function(t){switch(t.label){case 0:this.logger.info("".concat(hn,".muteLocalVideo with params: "),e),t.label=1;case 1:return t.trys.push([1,3,,4]),this._setIsVideoPublish(!e),[4,this._updateLocalVideo()];case 2:return t.sent(),[3,4];case 3:return A=t.sent(),this._callFunctionErrorManage(A,"muteLocalVideo"),[3,4];case 4:return[2]}}))}))},i.prototype.startRemoteView=function(A,t,i){return a(this,void 0,void 0,(function(){var o,n;return g(this,(function(s){switch(s.label){case 0:this.logger.info("".concat(hn,".startRemoteView with params: "),A,t,i),s.label=1;case 1:if(s.trys.push([1,9,,10]),this._setRemoteStreamConfig(A,i,{view:t,small:i===e.TRTCVideoStreamType.TRTCVideoStreamTypeSmall}),!this._remoteStreamMap.get("".concat(A,"_").concat(this._getTRTCStreamType(i))))return[2];s.label=2;case 2:return s.trys.push([2,4,,8]),[4,this._trtc.startRemoteVideo(this._generateRemoteVideoData(A,i))];case 3:return s.sent(),[3,8];case 4:return(o=s.sent()).code!==r.default.ERROR_CODE.OPERATION_ABORT?[3,6]:[4,this._updateRemoteVideo(A,i)];case 5:return s.sent(),[3,7];case 6:throw o;case 7:return[3,8];case 8:return[3,10];case 9:return n=s.sent(),this._callFunctionErrorManage(n,"startRemoteView"),[3,10];case 10:return[2]}}))}))},i.prototype.updateRemoteView=function(e,A,t){return a(this,void 0,void 0,(function(){return g(this,(function(i){switch(i.label){case 0:return this.logger.info("".concat(hn,".updateRemoteView with params: "),e,A,t),this._setRemoteStreamConfig(e,t,{view:A}),this._remoteStreamMap.get("".concat(e,"_").concat(this._getTRTCStreamType(t)))?[4,this._updateRemoteVideo(e,t)]:[2];case 1:return i.sent(),[2]}}))}))},i.prototype.stopRemoteView=function(e,A){return a(this,void 0,void 0,(function(){var t;return g(this,(function(i){switch(i.label){case 0:this.logger.info("".concat(hn,".stopRemoteView with params: "),e,A),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this._trtc.stopRemoteVideo({userId:e,streamType:this._getTRTCStreamType(A)})];case 2:return i.sent(),[3,4];case 3:return t=i.sent(),this._callFunctionErrorManage(t,"stopRemoteView"),[3,4];case 4:return[2]}}))}))},i.prototype.stopAllRemoteView=function(){return a(this,void 0,void 0,(function(){var e;return g(this,(function(A){switch(A.label){case 0:this.logger.info("".concat(hn,".stopAllRemoteView")),A.label=1;case 1:return A.trys.push([1,3,,4]),[4,this._trtc.stopRemoteVideo({userId:"*"})];case 2:return A.sent(),[3,4];case 3:return e=A.sent(),this._callFunctionErrorManage(e,"stopAllRemoteView"),[3,4];case 4:return[2]}}))}))},i.prototype.setVideoEncoderParam=function(A){return a(this,void 0,void 0,(function(){var t,i;return g(this,(function(o){switch(o.label){case 0:this.logger.info("".concat(hn,".setVideoEncoderParam with params: "),A),o.label=1;case 1:return o.trys.push([1,4,,5]),t=this._getTRTCVideoProfile(e.TRTCVideoStreamType.TRTCVideoStreamTypeBig,A),this._setVideoProfile(t),[4,this._updateLocalVideo()];case 2:return o.sent(),[4,this._updateLocalTestVideo()];case 3:return o.sent(),[3,5];case 4:return i=o.sent(),this._callFunctionErrorManage(i,"setVideoEncoderParam"),[3,5];case 5:return[2]}}))}))},i.prototype.setNetworkQosParam=function(e){return a(this,void 0,void 0,(function(){var A,t,i=this;return g(this,(function(o){return this.logger.info("".concat(hn,".setNetworkQosParam with params: "),e),A=e.preference,t=this._getTRTCQosPreference(A),this._setQosPreference(t),this._setScreenShareParams({qosPreference:t}),[2,new Promise((function(e,A){Promise.all([i._updateLocalVideo(),i._updateLocalScreen()]).then((function(){e(!0)})).catch((function(e){i._callFunctionErrorManage(e,"setNetworkQosParam"),A(e)}))}))]}))}))},i.prototype.setLocalRenderParams=function(e){return a(this,void 0,void 0,(function(){var A;return g(this,(function(t){switch(t.label){case 0:this.logger.info("".concat(hn,".setLocalRenderParams with params: "),e),Object.assign(this._localRenderParams,e),t.label=1;case 1:return t.trys.push([1,4,,5]),[4,this._updateLocalVideo()];case 2:return t.sent(),[4,this._updateLocalTestVideo()];case 3:return t.sent(),[3,5];case 4:return A=t.sent(),this._callFunctionErrorManage(A,"setLocalRenderParams"),[3,5];case 5:return[2]}}))}))},i.prototype.setVideoEncoderMirror=function(e){return a(this,void 0,void 0,(function(){var A;return g(this,(function(t){switch(t.label){case 0:this.logger.info("".concat(hn,".setVideoEncoderMirror with params: "),e),this._encoderMirror=e,t.label=1;case 1:return t.trys.push([1,3,,4]),[4,this._updateLocalVideo()];case 2:return t.sent(),[3,4];case 3:return A=t.sent(),this._callFunctionErrorManage(A,"setVideoEncoderMirror"),[3,4];case 4:return[2]}}))}))},i.prototype.setRemoteRenderParams=function(e,A,t){return a(this,void 0,void 0,(function(){var i;return g(this,(function(o){switch(o.label){case 0:this.logger.info("".concat(hn,".setRemoteRenderParams with params: "),e,A,t),o.label=1;case 1:return o.trys.push([1,3,,4]),this._setRemoteStreamConfig(e,A,t),[4,this._updateRemoteVideo(e,A)];case 2:return o.sent(),[3,4];case 3:return i=o.sent(),this._callFunctionErrorManage(i,"setRemoteRenderParams"),[3,4];case 4:return[2]}}))}))},i.prototype._updateLocalAudio=function(){return a(this,void 0,void 0,(function(){var e;return g(this,(function(A){switch(A.label){case 0:return A.trys.push([0,2,,3]),[4,this._trtc.updateLocalAudio(this._generateLocalAudioData())];case 1:return A.sent(),[3,3];case 2:if((e=A.sent()).code!==r.default.ERROR_CODE.OPERATION_ABORT)throw e;return[3,3];case 3:return[2]}}))}))},i.prototype._updateLocalTestAudio=function(){return a(this,void 0,void 0,(function(){var e;return g(this,(function(A){switch(A.label){case 0:return A.trys.push([0,2,,3]),[4,this._testTrtc.updateLocalAudio(this._generateLocalTestAudioData())];case 1:return A.sent(),[3,3];case 2:if((e=A.sent()).code!==r.default.ERROR_CODE.OPERATION_ABORT)throw e;return[3,3];case 3:return[2]}}))}))},i.prototype.startLocalAudio=function(A){return void 0===A&&(A=e.TRTCAudioQuality.TRTCAudioQualityDefault),a(this,void 0,void 0,(function(){var t,i,o;return g(this,(function(n){switch(n.label){case 0:A===e.TRTCAudioQuality.TRTCAudioQualitySpeech?this.logger.warn("Web trtcCloud not support audioQuality of TRTCAudioQualitySpeech, and will use TRTCAudioQualityDefault"):this.logger.info("".concat(hn,".startLocalAudio with params: "),A),t=this._getTRTCAudioQuality(A),n.label=1;case 1:n.trys.push([1,9,,10]),this._setAudioProfile(t),n.label=2;case 2:return n.trys.push([2,4,,8]),[4,this._trtc.startLocalAudio(this._generateLocalAudioData())];case 3:return n.sent(),[3,8];case 4:return(i=n.sent()).code!==r.default.ERROR_CODE.OPERATION_ABORT?[3,6]:[4,this._updateLocalAudio()];case 5:return n.sent(),[3,7];case 6:throw i;case 7:return[3,8];case 8:return this.emit("onMicDidReady"),[3,10];case 9:return o=n.sent(),console.warn("".concat(hn," startLocalAudio error: ").concat(o)),this._callFunctionErrorManage(o,"startLocalAudio"),[3,10];case 10:return[2]}}))}))},i.prototype.stopLocalAudio=function(){return a(this,void 0,void 0,(function(){var e;return g(this,(function(A){switch(A.label){case 0:this.logger.info("".concat(hn,".stopLocalAudio")),A.label=1;case 1:return A.trys.push([1,3,,4]),[4,this._trtc.stopLocalAudio()];case 2:return A.sent(),[3,4];case 3:return e=A.sent(),this._callFunctionErrorManage(e,"stopLocalAudio"),[3,4];case 4:return[2]}}))}))},i.prototype.muteLocalAudio=function(e){return void 0===e&&(e=!1),a(this,void 0,void 0,(function(){var A;return g(this,(function(t){switch(t.label){case 0:this.logger.info("".concat(hn,".muteLocalAudio with params: "),e),t.label=1;case 1:return t.trys.push([1,3,,4]),this._setIsAudioPublish(!e),[4,this._updateLocalAudio()];case 2:return t.sent(),[3,4];case 3:return A=t.sent(),this._callFunctionErrorManage(A,"muteLocalAudio"),[3,4];case 4:return[2]}}))}))},i.prototype.setAudioCaptureVolume=function(e){return a(this,void 0,void 0,(function(){var A;return g(this,(function(t){switch(t.label){case 0:this.logger.info("".concat(hn,".setAudioCaptureVolume with params: "),e),t.label=1;case 1:return t.trys.push([1,3,,4]),this._setCaptureVolume(e),[4,this._updateLocalAudio()];case 2:return t.sent(),[3,4];case 3:return A=t.sent(),this._callFunctionErrorManage(A,"setAudioCaptureVolume"),[3,4];case 4:return[2]}}))}))},i.prototype.muteRemoteAudio=function(e,A){return void 0===A&&(A=!1),a(this,void 0,void 0,(function(){var t;return g(this,(function(i){switch(i.label){case 0:this.logger.info("".concat(hn,".muteRemoteAudio with params: "),e,A),i.label=1;case 1:return i.trys.push([1,3,,4]),e?[4,this._trtc.muteRemoteAudio(e,A)]:(this._emitError(dr),[2]);case 2:return i.sent(),[3,4];case 3:return t=i.sent(),this._callFunctionErrorManage(t,"muteRemoteAudio"),[3,4];case 4:return[2]}}))}))},i.prototype.muteAllRemoteAudio=function(e){this.logger.info("".concat(hn,".muteAllRemoteAudio with params: "),e);try{this._trtc.muteRemoteAudio("*",e)}catch(A){this._callFunctionErrorManage(A,"muteAllRemoteAudio")}},i.prototype.setRemoteAudioVolume=function(e,A){this.logger.info("".concat(hn,".setRemoteAudioVolume with params: "),e,A);try{this._trtc.setRemoteAudioVolume(e,A)}catch(t){this._callFunctionErrorManage(t,"setRemoteAudioVolume")}},i.prototype.enableAudioVolumeEvaluation=function(e){this.logger.info("".concat(hn,".enableAudioVolumeEvaluation with params: "),e);try{this._trtc.enableAudioVolumeEvaluation(e)}catch(A){this._callFunctionErrorManage(A,"enableAudioVolumeEvaluation")}},i.prototype.enableSmallVideoStream=function(A,t){return a(this,void 0,Promise,(function(){var i;return g(this,(function(o){switch(o.label){case 0:return this.logger.info("".concat(hn,".enableSmallVideoStream with params: "),A,t),A?(i=this._getTRTCVideoProfile(e.TRTCVideoStreamType.TRTCVideoStreamTypeSmall,t),this._setSmallStreamVideoProfile(i)):this._setSmallStreamVideoProfile(void 0),[4,this._updateLocalVideo()];case 1:return o.sent(),[2]}}))}))},i.prototype.snapshotVideo=function(A,t){var i="";return i=""===A&&t===e.TRTCVideoStreamType.TRTCVideoStreamTypeBig?this._trtc.getVideoSnapshot():""===A&&t===e.TRTCVideoStreamType.TRTCVideoStreamTypeSub?this._trtc.getVideoSnapshot({streamType:this._getTRTCStreamType(t)}):this._trtc.getVideoSnapshot({userId:A,streamType:this._getTRTCStreamType(t)}),this.emit("onSnapshotComplete",A,t,i),i},i.prototype.startScreenShare=function(A,t,i){return a(this,void 0,void 0,(function(){var o,n,s,a,c,C;return g(this,(function(g){switch(g.label){case 0:this.logger.info("".concat(hn,".startScreenShare with params: "),A,t,i),g.label=1;case 1:return g.trys.push([1,3,,4]),n=(o=i||{}).screenAudio,s=void 0!==n&&n,a=o.videoTrack,c=this._getTRTCVideoProfile(e.TRTCVideoStreamType.TRTCVideoStreamTypeSub,i),this._setScreenShareParams({view:A,profile:c,systemAudio:s,videoTrack:a}),[4,this._trtc.startScreenShare(this._getScreenShareParams())];case 2:return g.sent(),this._isSharingScreen=!0,[3,4];case 3:if((C=g.sent()).code!==r.default.ERROR_CODE.OPERATION_ABORT)throw console.error("Start share screen error:",C,C.code,C.name,C.message),C;return[3,4];case 4:return[2]}}))}))},i.prototype.setSubStreamEncoderParam=function(A){return a(this,void 0,void 0,(function(){var t,i;return g(this,(function(o){switch(o.label){case 0:this.logger.info("".concat(hn,".setSubStreamEncoderParam with params: "),A),t=this._getTRTCVideoProfile(e.TRTCVideoStreamType.TRTCVideoStreamTypeSub,A),this._setScreenShareParams({profile:t}),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,this._updateLocalScreen()];case 2:return o.sent(),[3,4];case 3:return i=o.sent(),this._callFunctionErrorManage(i,"setSubStreamEncoderParam"),[3,4];case 4:return[2]}}))}))},i.prototype.stopScreenShare=function(){return a(this,void 0,Promise,(function(){var e;return g(this,(function(A){switch(A.label){case 0:this.logger.info("".concat(hn,".stopScreenShare")),A.label=1;case 1:return A.trys.push([1,3,,4]),[4,this._trtc.stopScreenShare()];case 2:return A.sent(),this._clearScreenShareParams(),this._isSharingScreen=!1,this.emit("onScreenCaptureStopped",0),[3,4];case 3:return e=A.sent(),this._callFunctionErrorManage(e,"stopScreenShare"),[3,4];case 4:return[2]}}))}))},i.prototype.startScreenCapture=function(){this._emitError(lr)},i.prototype.pauseScreenCapture=function(){this._emitError(lr)},i.prototype.resumeScreenCapture=function(){this._emitError(lr)},i.prototype.getScreenCaptureSources=function(){this._emitError(lr)},i.prototype.selectScreenCaptureTarget=function(){this._emitError(lr)},i.prototype.getCameraDevicesList=function(){return a(this,void 0,Promise,(function(){var e,A,t;return g(this,(function(i){switch(i.label){case 0:this.logger.info("".concat(hn,".getCameraDevicesList")),i.label=1;case 1:return i.trys.push([1,5,,6]),[4,r.default.getCameraList()];case 2:return e=i.sent(),A=e.map((function(e){return s(s({},e),{deviceName:e.label})})),this._cameraList=e,"{}"!==JSON.stringify(this._currentCamera)?[3,4]:(this._currentCamera=this.getDefaultDeviceInfo(e),this._currentCameraId=this._currentCamera.deviceId,[4,this.setCurrentCameraDevice(this._currentCameraId)]);case 3:i.sent(),i.label=4;case 4:return[2,Promise.resolve(A)];case 5:return t=i.sent(),this._callFunctionErrorManage(t,"getCameraDevicesList"),[2,Promise.resolve([])];case 6:return[2]}}))}))},i.prototype.setCurrentCameraDevice=function(e){var A;return a(this,void 0,Promise,(function(){var t;return g(this,(function(i){switch(i.label){case 0:this.logger.info("".concat(hn,".setCurrentCameraDevice with params: "),{cameraId:e}),i.label=1;case 1:return i.trys.push([1,4,,5]),e?(this._currentCameraId=e,[4,this._updateLocalVideo()]):[2,!1];case 2:return i.sent(),[4,this._updateLocalTestVideo()];case 3:return i.sent(),this._currentCamera=this._cameraList.find((function(A){return A.deviceId===e}))||{},[3,5];case 4:throw t=i.sent(),this._currentCameraId=null===(A=this._currentCamera)||void 0===A?void 0:A.cameraId,this._callFunctionErrorManage(t,"setCurrentCameraDevice"),t;case 5:return[2]}}))}))},i.prototype.getCurrentCameraDevice=function(){this.logger.info("".concat(hn,".getCurrentCameraDevice"));var e=this._currentCamera,A=e.deviceId,t=e.label,i=e.kind,o=e.groupId;return new y(A,t,i,t,o)},i.prototype.isFrontCamera=function(){return this._getIsFrontCamera()},i.prototype.switchCamera=function(e){return a(this,void 0,void 0,(function(){return g(this,(function(A){switch(A.label){case 0:return this.logger.info("".concat(hn,".switchCamera with params: "),e),this._setIsFrontCamera(e),[4,this._updateLocalVideo()];case 1:return A.sent(),[2]}}))}))},i.prototype._onVirtualBackgroundError=function(e){this._emitError({code:-1006,message:e.message?e.message:"virtual background error"})},i.prototype.setVirtualBackground=function(e){return a(this,void 0,void 0,(function(){var A,t,i,o,r;return g(this,(function(n){switch(n.label){case 0:return n.trys.push([0,10,,11]),A=e.enable,t=e.type,i=e.blurLevel,o=e.imagePath,A?this._isVirtualBackground?t!==oe?[3,2]:[4,this._trtc.updatePlugin(te,{type:t,blurLevel:i})]:[3,5]:[3,8];case 1:n.sent(),n.label=2;case 2:return t!==re?[3,4]:[4,this._trtc.updatePlugin(te,{type:t,src:o})];case 3:n.sent(),n.label=4;case 4:return[3,7];case 5:return[4,this._trtc.startPlugin(te,s(s({},e),{src:o,onAbort:this._onVirtualBackgroundError.bind(this)}))];case 6:n.sent(),this._isVirtualBackground=!0,n.label=7;case 7:return[3,9];case 8:this._trtc.stopPlugin(te),this._isVirtualBackground=!1,n.label=9;case 9:return[3,11];case 10:throw r=n.sent(),this.logger.error("".concat(hn,".setVirtualBackground fail: "),r),r;case 11:return[2]}}))}))},i.prototype.setTestVirtualBackground=function(e){return a(this,void 0,void 0,(function(){var A,t,i,o,r;return g(this,(function(n){switch(n.label){case 0:return n.trys.push([0,10,,11]),A=e.enable,t=e.type,i=e.blurLevel,o=e.imagePath,A?this._isTestVirtualBackground?t!==oe?[3,2]:[4,this._testTrtc.updatePlugin(te,{type:t,blurLevel:i})]:[3,5]:[3,8];case 1:n.sent(),n.label=2;case 2:return t!==re?[3,4]:[4,this._testTrtc.updatePlugin(te,{type:t,src:o})];case 3:n.sent(),n.label=4;case 4:return[3,7];case 5:return[4,this._testTrtc.startPlugin(te,s(s({},e),{src:o,onAbort:this._onVirtualBackgroundError.bind(this)}))];case 6:n.sent(),this._isTestVirtualBackground=!0,n.label=7;case 7:return[3,9];case 8:this._testTrtc.stopPlugin(te),this._isTestVirtualBackground=!1,n.label=9;case 9:return[3,11];case 10:throw r=n.sent(),this.logger.error("".concat(hn,".setTestVirtualBackground fail: "),r),r;case 11:return[2]}}))}))},i.prototype.useVirtualBackground=function(e){return a(this,void 0,void 0,(function(){return g(this,(function(A){switch(A.label){case 0:return this._trtc?[4,this._trtc.use({plugin:t.VirtualBackground,assetsPath:e})]:[3,2];case 1:A.sent(),A.label=2;case 2:return this._testTrtc?[4,this._testTrtc.use({plugin:t.VirtualBackground,assetsPath:e})]:[3,4];case 3:A.sent(),A.label=4;case 4:return[2]}}))}))},i.prototype.setBeautyStyle=function(e,A,t,i){return a(this,void 0,void 0,(function(){return g(this,(function(o){switch(o.label){case 0:return[4,this._handleBeautyStyleParam(this._trtc,this._isBeautyEnabled,e,A,t,i,!1)];case 1:return o.sent(),[2]}}))}))},i.prototype.setTestBeautyStyle=function(e,A,t,i){return a(this,void 0,void 0,(function(){return g(this,(function(o){switch(o.label){case 0:return[4,this._handleBeautyStyleParam(this._testTrtc,this._isTestBeautyEnabled,e,A,t,i,!0)];case 1:return o.sent(),[2]}}))}))},i.prototype.useBeautyStyle=function(e){return a(this,void 0,void 0,(function(){return g(this,(function(A){switch(A.label){case 0:return this._trtc?[4,this._trtc.use({plugin:wr,assetsPath:e})]:[3,2];case 1:A.sent(),A.label=2;case 2:return this._testTrtc?[4,this._testTrtc.use({plugin:wr,assetsPath:e})]:[3,4];case 3:A.sent(),A.label=4;case 4:return[2]}}))}))},i.prototype._handleBeautyStyleParam=function(e,A,t,i,o,r,n){return a(this,void 0,void 0,(function(){var t,s,a,c,C;return g(this,(function(g){switch(g.label){case 0:if(i<0||i>9)throw new Error("beautyLevel must be between 0 and 9");if(o<0||o>9)throw new Error("whitenessLevel must be between 0 and 9");if(r<0||r>9)throw new Error("ruddinessLevel must be between 0 and 9");g.label=1;case 1:return g.trys.push([1,8,,9]),s=o/9,a=r/9,0===(t=i/9)&&0===s&&0===a?[4,e.stopPlugin(ie)]:[3,3];case 2:return g.sent(),n?this._isTestBeautyEnabled=!1:this._isBeautyEnabled=!1,[3,7];case 3:return c={beauty:t,brightness:s,ruddy:a},A?[3,5]:[4,e.startPlugin(ie,c)];case 4:return g.sent(),n?this._isTestBeautyEnabled=!0:this._isBeautyEnabled=!0,[3,7];case 5:return[4,e.updatePlugin(ie,c)];case 6:g.sent(),g.label=7;case 7:return[3,9];case 8:throw C=g.sent(),n?this.logger.error("".concat(hn,".").concat("setTestBeautyStyle"," fail: "),C):this.logger.error("".concat(hn,".").concat("setBeautyStyle"," fail: "),C),C;case 9:return[2]}}))}))},i.prototype._resetBeautyStyle=function(){return a(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return this._isBeautyEnabled?[4,this._trtc.stopPlugin(ie)]:[3,2];case 1:e.sent(),this._isBeautyEnabled=!1,e.label=2;case 2:return this._isTestBeautyEnabled?[4,this._testTrtc.stopPlugin(ie)]:[3,4];case 3:e.sent(),this._isTestBeautyEnabled=!1,e.label=4;case 4:return[2]}}))}))},i.prototype.getMicDevicesList=function(){return a(this,void 0,Promise,(function(){var e,A,t;return g(this,(function(i){switch(i.label){case 0:this.logger.info("".concat(hn,".getMicDevicesList")),i.label=1;case 1:return i.trys.push([1,5,,6]),[4,r.default.getMicrophoneList()];case 2:return e=i.sent(),A=e.map((function(e){return s(s({},e),{deviceName:e.label})})),this._microphoneList=e,"{}"!==JSON.stringify(this._currentMicrophone)?[3,4]:(this._currentMicrophone=this.getDefaultDeviceInfo(e),this._currentMicrophoneId=this._currentMicrophone.deviceId,[4,this.setCurrentMicDevice(this._currentMicrophoneId)]);case 3:i.sent(),i.label=4;case 4:return[2,Promise.resolve(A)];case 5:return t=i.sent(),this._callFunctionErrorManage(t,"getMicDevicesList"),[2,Promise.resolve([])];case 6:return[2]}}))}))},i.prototype.setCurrentMicDevice=function(e){var A;return a(this,void 0,Promise,(function(){var t;return g(this,(function(i){switch(i.label){case 0:this.logger.info("".concat(hn,".setCurrentMicDevice with params: "),{micId:e}),i.label=1;case 1:return i.trys.push([1,4,,5]),e?(this._setCurrentMicrophoneId(e),[4,this._updateLocalAudio()]):[2,!1];case 2:return i.sent(),[4,this._updateLocalTestAudio()];case 3:return i.sent(),this._currentMicrophone=this._microphoneList.find((function(A){return A.deviceId===e}))||{},[3,5];case 4:throw t=i.sent(),this._setCurrentMicrophoneId(null===(A=this._currentMicrophone)||void 0===A?void 0:A.deviceId),this._callFunctionErrorManage(t,"setCurrentMicDevice"),t;case 5:return[2]}}))}))},i.prototype.getCurrentMicDevice=function(){this.logger.info("".concat(hn,".getCurrentMicDevice"));var e=this._currentMicrophone,A=e.deviceId,t=e.label,i=e.kind,o=e.groupId;return new y(A,t,i,t,o)},i.prototype.getSpeakerDevicesList=function(){return a(this,void 0,Promise,(function(){var e,A,t;return g(this,(function(i){switch(i.label){case 0:this.logger.info("".concat(hn,".getSpeakerDevicesList")),i.label=1;case 1:return i.trys.push([1,5,,6]),[4,r.default.getSpeakerList()];case 2:return e=i.sent(),A=e.map((function(e){return s(s({},e),{deviceName:e.label})})),this._speakerList=e,"{}"!==JSON.stringify(this._currentSpeaker)?[3,4]:(this._currentSpeaker=this.getDefaultDeviceInfo(e),this._currentSpeakerId=this._currentSpeaker.deviceId,[4,this.setCurrentSpeakerDevice(this._currentSpeakerId)]);case 3:i.sent(),i.label=4;case 4:return[2,Promise.resolve(A)];case 5:return t=i.sent(),this._callFunctionErrorManage(t,"getSpeakerDevicesList"),[2,Promise.resolve([])];case 6:return[2]}}))}))},i.prototype.setCurrentSpeakerDevice=function(e){return a(this,void 0,Promise,(function(){var A;return g(this,(function(t){switch(t.label){case 0:this.logger.info("".concat(hn,".setCurrentSpeakerDevice with params: "),{speakerId:e}),t.label=1;case 1:return t.trys.push([1,3,,4]),e?[4,r.default.setCurrentSpeaker(e)]:[2,!1];case 2:return t.sent(),this._setCurrentSpeakerId(e),this._currentSpeaker=this._speakerList.find((function(A){return A.deviceId===e}))||{},[3,4];case 3:throw A=t.sent(),this._callFunctionErrorManage(A,"setCurrentSpeakerDevice"),A;case 4:return[2]}}))}))},i.prototype.getCurrentSpeakerDevice=function(){this.logger.info("".concat(hn,".getCurrentSpeakerDevice"));var e=this._currentSpeaker,A=e.deviceId,t=e.label,i=e.kind,o=e.groupId;return new y(A,t,i,t,o)},i.prototype.startCameraDeviceTest=function(e){return a(this,void 0,void 0,(function(){var A;return g(this,(function(t){switch(t.label){case 0:if(this.logger.info("".concat(hn,".startCameraDeviceTest with params: "),e),!e)return[2];this._setLocalTestView(e),t.label=1;case 1:return t.trys.push([1,3,,7]),[4,this._testTrtc.startLocalVideo(this._generateLocalTestVideoData())];case 2:return t.sent(),[3,7];case 3:return(A=t.sent()).code!==r.default.ERROR_CODE.OPERATION_ABORT?[3,5]:[4,this._updateLocalTestVideo()];case 4:return t.sent(),[3,6];case 5:throw this._callFunctionErrorManage(A,"startCameraDeviceTest"),A;case 6:return[3,7];case 7:return[2]}}))}))},i.prototype.stopCameraDeviceTest=function(){return a(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return this.logger.info("".concat(hn,".stopCameraDeviceTest")),this._setLocalTestView(null),[4,this._testTrtc.stopLocalVideo()];case 1:return e.sent(),[2]}}))}))},i.prototype.startMicDeviceTest=function(e){return a(this,void 0,void 0,(function(){var A,t=this;return g(this,(function(i){switch(i.label){case 0:this.logger.info("".concat(hn,".startMicDeviceTest with params: "),e),i.label=1;case 1:return i.trys.push([1,3,,7]),[4,this._testTrtc.startLocalAudio(this._generateLocalTestAudioData())];case 2:return i.sent(),[3,7];case 3:return(A=i.sent()).code!==r.default.ERROR_CODE.OPERATION_ABORT?[3,5]:[4,this._updateLocalTestAudio()];case 4:return i.sent(),[3,6];case 5:throw this._callFunctionErrorManage(A,"startMicDeviceTest"),A;case 6:return[3,7];case 7:return this._testTrtc.on(r.default.EVENT.AUDIO_VOLUME,(function(e){null==e||e.result.forEach((function(e){var A=e.userId,i=e.volume;""===A&&t.emit("onTestMicVolume",i)}))})),[4,this._testTrtc.enableAudioVolumeEvaluation(e)];case 8:return i.sent(),[2]}}))}))},i.prototype.stopMicDeviceTest=function(){return a(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return this.logger.info("".concat(hn,".stopMicDeviceTest")),[4,this._testTrtc.stopLocalAudio()];case 1:return e.sent(),[2]}}))}))},i.prototype.callExperimentalAPI=function(e){return a(this,void 0,void 0,(function(){var A,t,i;return g(this,(function(o){switch(o.label){case 0:if(this.logger.info("".concat(hn,".callExperimentalAPI"),e),(A=Ie(e))===e)return[2];if(t=A.api,i=A.params,!t||!i)return[2];o.label=1;case 1:switch(o.trys.push([1,19,,20]),t){case"setFramework":return[3,2];case"enableAudioAEC":return[3,3];case"enableAudioANS":return[3,4];case"enableAudioAGC":return[3,5];case"KeyMetricsStats":return[3,6];case"setNetworkProxy":return[3,7];case"enableVirtualBackground":return[3,8];case"enableTestVirtualBackground":return[3,10];case"enableTestBeautyStyle":return[3,12];case"setVideoEncodeParamEx":return[3,14];case"enableAutoPlayDialog":return[3,15];case"setAudienceLatencyLevel":return[3,16]}return[3,17];case 2:return this._handleSetFrameWork(i),[3,18];case 3:return this._echoCancellation=Boolean(i.enable),[3,18];case 4:return this._noiseSuppression=Boolean(i.enable),[3,18];case 5:return this._autoGainControl=Boolean(i.enable),[3,18];case 6:return this._handleKeyMetricsStats(i),[3,18];case 7:return this._networkProxy=i,[3,18];case 8:return[4,this.setVirtualBackground(i)];case 9:return o.sent(),[3,18];case 10:return[4,this.setTestVirtualBackground(i)];case 11:return o.sent(),[3,18];case 12:return[4,this.setTestBeautyStyle(i.style,i.beautyLevel,i.whitenessLevel,i.ruddinessLevel)];case 13:return o.sent(),[3,18];case 14:return this._setVideoEncodeParamEx(i),[3,18];case 15:return this._enableAutoPlayDialog=Boolean(i.enable),[3,18];case 16:return this._latencyLevel=i.latencyLevel,[3,18];case 17:return[3,18];case 18:return[3,20];case 19:throw o.sent();case 20:return[2]}}))}))},i.prototype._handleSetFrameWork=function(e){var A=e.frameWork,t=e.component,i=e.language;Ce(A)&&(this._frameWorkType=A),Ce(t)&&(this._component=t),Ce(i)&&(this._language=i)},i.prototype._handleKeyMetricsStats=function(e){var A=e.key,t=e.opt,i=e.value,o=e.version,n=t===ae;r.default._addKVStat({type:t,key:A,value:i,version:o,useUV:n,base:100})},i.prototype._setVideoEncodeParamEx=function(A){return a(this,void 0,void 0,(function(){return g(this,(function(t){switch(t.label){case 0:switch(A.streamType){case e.TRTCVideoStreamType.TRTCVideoStreamTypeBig:return[3,1];case e.TRTCVideoStreamType.TRTCVideoStreamTypeSub:return[3,3]}return[3,5];case 1:return[4,this.setVideoEncoderParam(A)];case 2:case 4:return t.sent(),[3,6];case 3:return[4,this.setSubStreamEncoderParam(A)];case 5:return[3,6];case 6:return[2]}}))}))},i.prototype._emitError=function(e){e&&this.emit&&this.emit(X,e.code,e.message)},i.prototype._emitWarning=function(e){this.emit&&this.emit($,e)},i.prototype._transformTRTCServerError=function(e){return-8===e.extraCode?Ir:0===String(e.extraCode).indexOf("70")?0-e.extraCode:void 0},i.prototype._transformTRTCInvalidOperationError=function(e,A){return"enterRoom"!==A||5104!==e.extraCode&&5998!==e.code?e.code:or},i.prototype._transformTRTCDeviceError=function(e,A){var t=["startLocalPreview","updateLocalView","muteLocalVideo","setVideoEncoderParam","setCurrentCameraDevice","switchCamera","setLocalRenderParams","enableSmallVideoStream","startCameraDeviceTest"].includes(A),i=["startLocalAudio","muteLocalAudio","setAudioCaptureVolume","setCurrentMicDevice","startMicDeviceTest"].includes(A);switch(e.extraCode){case 5301:case 5305:case 5306:case 5307:case 5308:case 5309:if(t)return rr;if(i)return gr;break;case 5302:if(t)return nr;if(i)return cr;break;case 5303:if(t)return ar;if(i)return ur;break;case 5304:if(t)return sr;if(i)return Cr}},i.prototype._transformTRTCErrorCode=function(e,A){var t=null==e?void 0:e.code;if(e&&e.code)switch(e.code){case r.default.ERROR_CODE.DEVICE_ERROR:t=this._transformTRTCDeviceError(e,A);break;case r.default.ERROR_CODE.SERVER_ERROR:t=this._transformTRTCServerError(e);break;case r.default.ERROR_CODE.INVALID_OPERATION:case r.default.ERROR_CODE.OPERATION_ABORT:t=this._transformTRTCInvalidOperationError(e,A)}return t},i.prototype._callFunctionErrorManage=function(e,A){if(!e||e.code!==r.default.ERROR_CODE.OPERATION_ABORT){this.logger.warn("(".concat(A,") failed - ").concat(e.code," - ").concat(e.message));var t=this._transformTRTCErrorCode(e,A);this.emit(X,t,e.message)}},i.prototype._getTRTCResolution=function(A){var t=(e.TRTCVideoResolution[A]||"").split("_");return{width:+(t.length>1&&t[1]),height:+(t.length>2&&t[2])}},i.prototype._getTRTCVideoProfile=function(A,t){void 0===t&&(t={});var i=t.videoWidth,o=t.videoHeight,r=t.videoResolution,n=t.videoFps,s=t.videoBitrate,a=t.resMode,g=t.resolutionMode,c={};switch(A){case e.TRTCVideoStreamType.TRTCVideoStreamTypeSub:c=this._defaultScreenProfile;break;case e.TRTCVideoStreamType.TRTCVideoStreamTypeSmall:c=this._defaultSmallVideoProfile;break;case e.TRTCVideoStreamType.TRTCVideoStreamTypeBig:default:c=this._defaultVideoProfile}if(ce(r))ce(i)||(c.width=i),ce(o)||(c.height=o);else{var C=this._getTRTCResolution(r);c.width=C.width,c.height=C.height}if(!ce(a)&&a===e.TRTCVideoResolutionMode.TRTCVideoResolutionModePortrait||!ce(g)&&g===e.TRTCVideoResolutionMode.TRTCVideoResolutionModePortrait){var u=c.height,I=c.width;c.width=u,c.height=I}return n&&(c.frameRate=n),s&&(c.bitrate=s),c},i.prototype._getTRTCStreamType=function(A){var t;return((t={})[e.TRTCVideoStreamType.TRTCVideoStreamTypeBig]=r.default.TYPE.STREAM_TYPE_MAIN,t[e.TRTCVideoStreamType.TRTCVideoStreamTypeSmall]=r.default.TYPE.STREAM_TYPE_MAIN,t[e.TRTCVideoStreamType.TRTCVideoStreamTypeSub]=r.default.TYPE.STREAM_TYPE_SUB,t)[A]},i.prototype._getTRTCFillMode=function(A){var t;return((t={})[e.TRTCVideoFillMode.TRTCVideoFillMode_Fill]=er.COVER,t[e.TRTCVideoFillMode.TRTCVideoFillMode_Fit]=er.CONTAIN,t)[A]},i.prototype._getLocalRenderMirror=function(A){var t;return A===e.TRTCVideoMirrorType.TRTCVideoMirrorType_Auto?!this._getIsMobile()||this._getIsFrontCamera():((t={})[e.TRTCVideoMirrorType.TRTCVideoMirrorType_Enable]=!0,t[e.TRTCVideoMirrorType.TRTCVideoMirrorType_Disable]=!1,t)[A]},i.prototype._getTRTCLocalMirror=function(e,A){var t=this._getLocalRenderMirror(e);return ce(A)?!!t&&"both":t&&A?"both":t&&!A?"view":!t&&A?"publish":!(!t&&!A)&&"view"},i.prototype._getTRTCRemoteMirror=function(A){var t;return((t={})[e.TRTCVideoMirrorType.TRTCVideoMirrorType_Auto]=!1,t[e.TRTCVideoMirrorType.TRTCVideoMirrorType_Enable]=!0,t[e.TRTCVideoMirrorType.TRTCVideoMirrorType_Disable]=!1,t)[A]},i.prototype._getTRTCQosPreference=function(A){var t;return((t={})[e.TRTCVideoQosPreference.TRTCVideoQosPreferenceSmooth]=r.default.TYPE.QOS_PREFERENCE_SMOOTH,t[e.TRTCVideoQosPreference.TRTCVideoQosPreferenceClear]=r.default.TYPE.QOS_PREFERENCE_CLEAR,t)[A]},i.prototype._getTRTCAudioQuality=function(A){var t;return((t={})[e.TRTCAudioQuality.TRTCAudioQualitySpeech]=r.default.TYPE.AUDIO_PROFILE_STANDARD,t[e.TRTCAudioQuality.TRTCAudioQualityDefault]=r.default.TYPE.AUDIO_PROFILE_STANDARD,t[e.TRTCAudioQuality.TRTCAudioQualityMusic]=r.default.TYPE.AUDIO_PROFILE_HIGH_STEREO,t)[A]},i.prototype._getTRTCCloudDeviceType=function(A){return{camera:e.TRTCDeviceType.TRTCDeviceTypeCamera,microphone:e.TRTCDeviceType.TRTCDeviceTypeMic,speaker:e.TRTCDeviceType.TRTCDeviceTypeSpeaker}[A]},i.prototype._getTRTCCloudDeviceState=function(A){return{add:e.TRTCDeviceState.TRTCDeviceStateAdd,remove:e.TRTCDeviceState.TRTCDeviceStateRemove,active:e.TRTCDeviceState.TRTCDeviceStateActive}[A]},i.prototype._getTRTCCloudQuality=function(A){return[e.TRTCQuality.TRTCQuality_Unknown,e.TRTCQuality.TRTCQuality_Excellent,e.TRTCQuality.TRTCQuality_Good,e.TRTCQuality.TRTCQuality_Poor,e.TRTCQuality.TRTCQuality_Bad,e.TRTCQuality.TRTCQuality_Vbad,e.TRTCQuality.TRTCQuality_Down][A]},i.prototype._generateLocalVideoData=function(){var e={view:this._getLocalView(),publish:this._getIsVideoPublish(),option:{profile:this._getVideoProfile(),small:this._getSmallStreamVideoProfile()||!1,mirror:this._getTRTCLocalMirror(this._localRenderParams.mirrorType,this._encoderMirror),fillMode:this._getTRTCFillMode(this._localRenderParams.fillMode)}};return this._getIsMobile()?e&&Object.assign(e.option,{useFrontCamera:this._getIsFrontCamera()}):e&&Object.assign(e.option,{cameraId:this._getCurrentCameraId()}),this._getQosPreference()&&e&&Object.assign(e.option,{qosPreference:this._getQosPreference()}),e},i.prototype._generateLocalTestVideoData=function(){return{view:this._getLocalTestView(),publish:!1,option:{cameraId:this._getCurrentCameraId(),profile:this._getVideoProfile(),mirror:this._getTRTCLocalMirror(this._localRenderParams.mirrorType,this._encoderMirror),fillMode:this._getTRTCFillMode(this._localRenderParams.fillMode)}}},i.prototype._generateLocalAudioData=function(){var e={publish:this._getIsAudioPublish(),option:{microphoneId:this._getCurrentMicrophoneId(),profile:this._getAudioProfile(),captureVolume:this._getCaptureVolume()}};return ue(this._echoCancellation)&&(e.option.echoCancellation=this._echoCancellation),ue(this._autoGainControl)&&(e.option.autoGainControl=this._autoGainControl),ue(this._noiseSuppression)&&(e.option.noiseSuppression=this._noiseSuppression),e},i.prototype._generateLocalTestAudioData=function(){return{publish:!1,option:{microphoneId:this._getCurrentMicrophoneId(),profile:this._getAudioProfile()}}},i.prototype._generateRemoteVideoData=function(e,A){return this._remoteStreamConfig.get("".concat(e,"_").concat(this._getTRTCStreamType(A)))},i.prototype._addTRTCEvents=function(){var A=this;this._trtc.on(r.default.EVENT.ERROR,(function(e){e&&A.emit("onError",e.code,e.message)})),this._trtc.on(r.default.EVENT.REMOTE_USER_ENTER,(function(e){(null==e?void 0:e.userId)&&A.emit("onRemoteUserEnterRoom",e.userId)})),this._trtc.on(r.default.EVENT.REMOTE_USER_EXIT,(function(e){(null==e?void 0:e.userId)&&A.emit("onRemoteUserLeaveRoom",e.userId)})),this._trtc.on(r.default.EVENT.REMOTE_AUDIO_AVAILABLE,(function(e){(null==e?void 0:e.userId)&&A.emit("onUserAudioAvailable",e.userId,!0)})),this._trtc.on(r.default.EVENT.REMOTE_AUDIO_UNAVAILABLE,(function(e){(null==e?void 0:e.userId)&&A.emit("onUserAudioAvailable",e.userId,!1)})),this._trtc.on(r.default.EVENT.REMOTE_VIDEO_AVAILABLE,(function(e){A._emitVideoAvailable(e,!0)})),this._trtc.on(r.default.EVENT.REMOTE_VIDEO_UNAVAILABLE,(function(e){A._emitVideoAvailable(e,!1)})),this._trtc.on(r.default.EVENT.AUDIO_VOLUME,(function(e){(null==e?void 0:e.result)&&A.emit("onUserVoiceVolume",null==e?void 0:e.result,((null==e?void 0:e.result)||[]).length)})),this._trtc.on(r.default.EVENT.KICKED_OUT,(function(e){var t={banned:Ar.banned,room_disband:Ar.roomDisband};Ce(t[e.reason])&&A.emit("onExitRoom",t[e.reason])})),this._trtc.on(r.default.EVENT.NETWORK_QUALITY,(function(e){var t=e.uplinkNetworkQuality,i=e.downlinkNetworkQuality,o=new N("",A._getTRTCCloudQuality(t)),r=[];A._remoteStatisticsUserIdList.length>0&&(r=A._remoteStatisticsUserIdList.map((function(e){return new N(e,A._getTRTCCloudQuality(i))}))),A.emit("onNetworkQuality",o,r)})),this._trtc.on(r.default.EVENT.AUTOPLAY_FAILED,(function(e){A.emit("onAutoPlayFailed",e)})),this._trtc.on(r.default.EVENT.SEI_MESSAGE,(function(e){if(e.data&&"object"==typeof e.data&&e.data instanceof ArrayBuffer){for(var t=new Uint8Array(e.data),i="",o=0;o<t.length;o++)i+=String.fromCharCode(t[o]);e.stringData=i}A.emit("onRecvSEIMsg",e.userId,JSON.stringify(e))})),this._trtc.on(r.default.EVENT.STATISTICS,(function(t){var i,o=t.rtt,r=t.upLoss,n=t.downLoss,s=t.bytesSent,a=t.bytesReceived,g=t.localStatistics,c=t.remoteStatistics;A._remoteStatisticsUserIdList=c.map((function(e){return e.userId}));var C={big:e.TRTCVideoStreamType.TRTCVideoStreamTypeBig,small:e.TRTCVideoStreamType.TRTCVideoStreamTypeSmall,sub:e.TRTCVideoStreamType.TRTCVideoStreamTypeSub},u=(null===(i=g.video)||void 0===i?void 0:i.length)>0?g.video.map((function(e){var A=new G;return A.width=e.width,A.height=e.height,A.frameRate=e.frameRate,A.videoBitrate=e.bitrate,A.audioBitrate=g.audio.bitrate||0,A.streamType=C[e.videoType],A})):[];if(0===u.length&&g.audio.bitrate>0){var I=new G;I.audioBitrate=g.audio.bitrate||0,u.push(I)}var d=[];c.forEach((function(e){var A=[],t=e.userId,i=e.audio.bitrate;if(e.video&&e.video.forEach((function(e){var o=new F;o.userId=t,o.width=e.width,o.height=e.height,o.frameRate=e.frameRate,o.videoBitrate=e.bitrate,o.audioBitrate=i||0,o.streamType=C[e.videoType],A.push(o)})),0===A.length){var o=new F;o.userId=t,o.audioBitrate=i||0,A.push(o)}d.push.apply(d,A)}));var l=new V;l.upLoss=r,l.downLoss=n,l.rtt=o,l.sentBytes=s,l.receivedBytes=a,l.localStatisticsArray=u,l.localStatisticsArraySize=u.length,l.remoteStatisticsArray=d,l.remoteStatisticsArraySize=d.length,A.emit("onStatistics",l)})),this._trtc.on(r.default.EVENT.SCREEN_SHARE_STOPPED,(function(){A.emit("onScreenCaptureStopped",0),A._clearScreenShareParams(),A._isSharingScreen=!1})),this._trtc.on(r.default.EVENT.PUBLISH_STATE_CHANGED,(function(t){var i=t.mediaType;"started"===t.state&&("audio"===i?A.emit("onSendFirstLocalAudioFrame"):"video"===i?A.emit("onSendFirstLocalVideoFrame",e.TRTCVideoStreamType.TRTCVideoStreamTypeBig):"screen"===i&&A.emit("onSendFirstLocalVideoFrame",e.TRTCVideoStreamType.TRTCVideoStreamTypeSub))})),this._trtc.on(r.default.EVENT.VIDEO_PLAY_STATE_CHANGED,(function(t){var i,o=t.userId,n=t.streamType,s=t.state,a=((i={})[r.default.TYPE.STREAM_TYPE_MAIN]=e.TRTCVideoStreamType.TRTCVideoStreamTypeBig,i[r.default.TYPE.STREAM_TYPE_SUB]=e.TRTCVideoStreamType.TRTCVideoStreamTypeSub,i);"PLAYING"===s&&A.emit("onFirstVideoFrame",o,a[n],0,0)})),this._trtc.on(r.default.EVENT.AUDIO_PLAY_STATE_CHANGED,(function(e){var t=e.userId;"PLAYING"===e.state&&A.emit("onFirstAudioFrame",t)})),this._trtc.on(r.default.EVENT.DEVICE_CHANGED,(function(e){var t=e.type,i=e.device,o=e.action,r=i.deviceId;if("active"===o){switch(t){case"camera":A._currentCameraId=r,A._currentCamera=i;break;case"microphone":A._currentMicrophoneId=r,A._currentMicrophone=i;break;case"speaker":A._currentSpeakerId=r,A._currentSpeaker=i}A.emitOnDeviceChange(r,A._getTRTCCloudDeviceType(t),A._getTRTCCloudDeviceState(o))}})),this._trtc.on(r.default.EVENT.CUSTOM_MESSAGE,(function(e){e&&A.emit("onRecvCustomCmdMsg",e.userId,e.cmdId,e.seq,null==e?void 0:e.data)})),this._trtc.on(r.default.EVENT.CONNECTION_STATE_CHANGED,(function(e){A._hasJoinedRoom&&!A._isExitingRoom&&("CONNECTED"===e.prevState&&"DISCONNECTED"===e.state?A.emit("onConnectionLost"):"DISCONNECTED"===e.prevState&&"CONNECTING"===e.state?A.emit("onTryToReconnect"):"CONNECTING"===e.prevState&&"CONNECTED"===e.state&&A.emit("onConnectionRecovery"))}))},i.prototype._removeTRTCEvents=function(){this._trtc.off("*")},i.prototype._emitVideoAvailable=function(e,A){var t=e.userId,i=e.streamType;A?this._remoteStreamMap.set("".concat(t,"_").concat(i),!0):this._remoteStreamMap.delete("".concat(t,"_").concat(i)),i===r.default.TYPE.STREAM_TYPE_SUB?t&&this.emit("onUserSubStreamAvailable",t,A):t&&this.emit("onUserVideoAvailable",t,A)},i.prototype._setLocalView=function(e){this._localView=e},i.prototype._getLocalView=function(){return this._localView},i.prototype._setIsMobile=function(e){this._isMobile=e},i.prototype._getIsMobile=function(){return this._isMobile},i.prototype._setIsFrontCamera=function(e){this._isFrontCamera=e},i.prototype._getIsFrontCamera=function(){return this._isFrontCamera},i.prototype._getSmallStreamVideoProfile=function(){return this._smallStreamVideoProfile},i.prototype._setSmallStreamVideoProfile=function(e){this._smallStreamVideoProfile=e},i.prototype._setIsVideoPublish=function(e){this._isVideoPublish=e},i.prototype._getIsVideoPublish=function(){return this._isVideoPublish},i.prototype._setVideoProfile=function(e){this._videoProfile=e},i.prototype._getVideoProfile=function(){return this._videoProfile},i.prototype._setQosPreference=function(e){this._qosPreference=e},i.prototype._getQosPreference=function(){return this._qosPreference},i.prototype._setLocalTestView=function(e){this._localTestView=e},i.prototype._getLocalTestView=function(){return this._localTestView},i.prototype._setScreenShareParams=function(e){var A=e.view,t=e.systemAudio,i=e.fillMode,o=e.profile,r=e.videoTrack,n=e.qosPreference;ce(A)||(this._screenShareParams.view=A),ce(t)||(this._screenShareParams.option.systemAudio=t),ce(i)||(this._screenShareParams.option.fillMode=i),ce(o)||(this._screenShareParams.option.profile=o),ce(r)||(this._screenShareParams.option.videoTrack=r),ce(n)||(this._screenShareParams.option.qosPreference=n)},i.prototype._clearScreenShareParams=function(){var e,A,t,i,o;(null===(e=this._screenShareParams)||void 0===e?void 0:e.view)&&delete this._screenShareParams.view,(null===(t=null===(A=this._screenShareParams)||void 0===A?void 0:A.option)||void 0===t?void 0:t.systemAudio)&&delete this._screenShareParams.option.systemAudio,(null===(o=null===(i=this._screenShareParams)||void 0===i?void 0:i.option)||void 0===o?void 0:o.videoTrack)&&delete this._screenShareParams.option.videoTrack},i.prototype._getScreenShareParams=function(){return this._screenShareParams},i.prototype._setIsAudioPublish=function(e){this._isAudioPublish=e},i.prototype._getIsAudioPublish=function(){return this._isAudioPublish},i.prototype._setAudioProfile=function(e){this._audioProfile=e},i.prototype._getAudioProfile=function(){return this._audioProfile},i.prototype._getCaptureVolume=function(){return this._captureVolume},i.prototype._setCaptureVolume=function(e){this._captureVolume=e},i.prototype._setCurrentCameraId=function(e){this._currentCameraId=e},i.prototype._getCurrentCameraId=function(){return this._currentCameraId},i.prototype._setCurrentMicrophoneId=function(e){this._currentMicrophoneId=e},i.prototype._getCurrentMicrophoneId=function(){return this._currentMicrophoneId},i.prototype._setCurrentSpeakerId=function(e){this._currentSpeakerId=e},i.prototype._getCurrentSpeakerId=function(){return this._currentSpeakerId},i.prototype._setRemoteStreamConfig=function(A,t,i){var o=this._remoteStreamConfig.get("".concat(A,"_").concat(this._getTRTCStreamType(t)));o||(o={userId:A,streamType:this._getTRTCStreamType(t),option:{mirror:this._getTRTCRemoteMirror(e.TRTCVideoMirrorType.TRTCVideoMirrorType_Disable),fillMode:this._getTRTCFillMode(e.TRTCVideoFillMode.TRTCVideoFillMode_Fit)}});var r=i.view,n=i.mirrorType,s=i.fillMode,a=i.small;ce(r)||(o.view=r),ce(n)||(o.option.mirror=this._getTRTCRemoteMirror(n)),ce(s)||(o.option.fillMode=this._getTRTCFillMode(s)),ce(a)||(o.option.small=a),this._remoteStreamConfig.set("".concat(A,"_").concat(this._getTRTCStreamType(t)),o)},i.prototype.handleDeviceChange=function(){return a(this,void 0,void 0,(function(){var A=this;return g(this,(function(t){return r.default.getCameraList().then((function(t){return a(A,void 0,void 0,(function(){return g(this,(function(A){switch(A.label){case 0:return this._cameraList.length===t.length?[2]:[4,this.deviceChangeManage(this._cameraList,t,e.TRTCDeviceType.TRTCDeviceTypeCamera)];case 1:return A.sent(),this._cameraList=t,[2]}}))}))})),r.default.getMicrophoneList().then((function(t){return a(A,void 0,void 0,(function(){return g(this,(function(A){switch(A.label){case 0:return[4,this.deviceChangeManage(this._microphoneList,t,e.TRTCDeviceType.TRTCDeviceTypeMic)];case 1:return A.sent(),this._microphoneList=t,[2]}}))}))})),r.default.getSpeakerList().then((function(t){return a(A,void 0,void 0,(function(){return g(this,(function(A){switch(A.label){case 0:return[4,this.deviceChangeManage(this._speakerList,t,e.TRTCDeviceType.TRTCDeviceTypeSpeaker)];case 1:return A.sent(),this._speakerList=t,[2]}}))}))})),[2]}))}))},i.prototype.isSameDevice=function(e,A){var t=e&&e.deviceId&&e.groupId&&e.label,i=A&&A.deviceId&&A.groupId&&A.label;return!(!t||!i)&&(e.deviceId===A.deviceId&&e.groupId===A.groupId&&e.label===A.label)},i.prototype.deviceChangeManage=function(A,t,i){return a(this,void 0,void 0,(function(){var o,r,n,s,a;return g(this,(function(g){switch(g.label){case 0:return o=void 0,A.length!==t.length&&(r=(t||[]).map((function(e){return e.deviceId})),n=new y,A.length>t.length?(n=A.filter((function(e){return!r.includes(e.deviceId)}))[0]||{},o=e.TRTCDeviceState.TRTCDeviceStateRemove):(r=(A||[]).map((function(e){return e.deviceId})),n=t.filter((function(e){return!r.includes(e.deviceId)}))[0]||{},o=e.TRTCDeviceState.TRTCDeviceStateAdd),s=n.deviceId,this.emitOnDeviceChange(s,i,o)),a=this.getDefaultDeviceInfo(t),i!==e.TRTCDeviceType.TRTCDeviceTypeCamera||o!==e.TRTCDeviceState.TRTCDeviceStateRemove?[3,3]:this.isSameDevice(this._currentCamera,a)?[2]:a.deviceId?[4,this.autoChangeDevice(i,a)]:[3,2];case 1:g.sent(),g.label=2;case 2:g.label=3;case 3:return i!==e.TRTCDeviceType.TRTCDeviceTypeMic?[3,6]:this.isSameDevice(this._currentMicrophone,a)?[2]:a.deviceId?[4,this.autoChangeDevice(i,a)]:[3,5];case 4:g.sent(),g.label=5;case 5:g.label=6;case 6:return i!==e.TRTCDeviceType.TRTCDeviceTypeSpeaker?[3,9]:this.isSameDevice(this._currentSpeaker,a)?[2]:a.deviceId?[4,this.autoChangeDevice(i,a)]:[3,8];case 7:g.sent(),g.label=8;case 8:g.label=9;case 9:return[2]}}))}))},i.prototype.getDefaultDeviceInfo=function(e){var A=new y;if(0===e.length)return A;var t=e.filter((function(e){return"default"===e.deviceId}));return A=t.length>0?t[0]:e[0]},i.prototype.autoChangeDevice=function(A,t){return a(this,void 0,void 0,(function(){var i,o,n,s,a;return g(this,(function(g){switch(g.label){case 0:if(i=t.deviceId,A!==e.TRTCDeviceType.TRTCDeviceTypeCamera)return[3,8];g.label=1;case 1:return g.trys.push([1,3,,4]),[4,this._trtc.updateLocalVideo({option:{cameraId:i}})];case 2:return g.sent(),[3,4];case 3:return o=g.sent(),console.log("error",JSON.stringify(o)),o.code,r.default.ERROR_CODE.OPERATION_ABORT,[3,4];case 4:return g.trys.push([4,6,,7]),[4,this._testTrtc.updateLocalVideo({option:{cameraId:i}})];case 5:return g.sent(),[3,7];case 6:return n=g.sent(),console.log("testTRTC error",JSON.stringify(n)),n.code,r.default.ERROR_CODE.OPERATION_ABORT,[3,7];case 7:this._currentCameraId=i,this._currentCamera=t,this.emitOnDeviceChange(i,A,e.TRTCDeviceState.TRTCDeviceStateActive),g.label=8;case 8:if(A!==e.TRTCDeviceType.TRTCDeviceTypeMic)return[3,16];g.label=9;case 9:return g.trys.push([9,11,,12]),[4,this._trtc.updateLocalAudio({option:{microphoneId:i}})];case 10:return g.sent(),[3,12];case 11:return s=g.sent(),console.log("error",JSON.stringify(s)),s.code,r.default.ERROR_CODE.OPERATION_ABORT,[3,12];case 12:return g.trys.push([12,14,,15]),[4,this._testTrtc.updateLocalAudio({option:{microphoneId:i}})];case 13:return g.sent(),[3,15];case 14:return a=g.sent(),console.log("testTRTC error",JSON.stringify(a)),a.code,r.default.ERROR_CODE.OPERATION_ABORT,[3,15];case 15:this._currentMicrophoneId=i,this._currentMicrophone=t,this.emitOnDeviceChange(i,A,e.TRTCDeviceState.TRTCDeviceStateActive),g.label=16;case 16:return A!==e.TRTCDeviceType.TRTCDeviceTypeSpeaker?[3,18]:[4,r.default.setCurrentSpeaker(i)];case 17:g.sent(),this._currentSpeakerId=i,this._currentSpeaker=t,this.emitOnDeviceChange(i,A,e.TRTCDeviceState.TRTCDeviceStateActive),g.label=18;case 18:return[2]}}))}))},i.prototype.emitOnDeviceChange=function(e,A,t){this.emit("onDeviceChange",e,A,t)},i.prototype.getMediaMixingManager=function(){return new Jr({logger:this.logger,trtc:this._trtc,trtcCloud:this})},i.shareInstance=null,i.subCloudMap=new Map,i.enableSEI=!1,i.assetsPath="",i}(f);e.Rect=J,e.TRTCDeviceInfo=y,e.TRTCImageBuffer=H,e.TRTCLocalStatistics=G,e.TRTCMixUser=W,e.TRTCNetworkQosParam=x,e.TRTCParams=R,e.TRTCPublishCDNParam=k,e.TRTCQualityInfo=N,e.TRTCRemoteStatistics=F,e.TRTCRenderParams=S,e.TRTCScreenCaptureProperty=q,e.TRTCScreenCaptureSourceInfo=O,e.TRTCStatistics=V,e.TRTCTranscodingConfig=K,e.TRTCVideoEncParam=w,e.TRTCVolumeInfo=_,e.default=Qn,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
1
|
+
!function(e,A){"object"==typeof exports&&"undefined"!=typeof module?A(exports,require("trtc-sdk-v5"),require("trtc-sdk-v5/plugins/video-effect/virtual-background"),require("events")):"function"==typeof define&&define.amd?define(["exports","trtc-sdk-v5","trtc-sdk-v5/plugins/video-effect/virtual-background","events"],A):A((e="undefined"!=typeof globalThis?globalThis:e||self).TRTCCloud={},e.TRTC,e.virtualBackground,e.events)}(this,(function(e,A,t,i){function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=o(A),n=function(e,A){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,A){e.__proto__=A}||function(e,A){for(var t in A)Object.prototype.hasOwnProperty.call(A,t)&&(e[t]=A[t])},n(e,A)};var s=function(){return s=Object.assign||function(e){for(var A,t=1,i=arguments.length;t<i;t++)for(var o in A=arguments[t])Object.prototype.hasOwnProperty.call(A,o)&&(e[o]=A[o]);return e},s.apply(this,arguments)};function a(e,A,t,i){return new(t||(t=Promise))((function(o,r){function n(e){try{a(i.next(e))}catch(A){r(A)}}function s(e){try{a(i.throw(e))}catch(A){r(A)}}function a(e){var A;e.done?o(e.value):(A=e.value,A instanceof t?A:new t((function(e){e(A)}))).then(n,s)}a((i=i.apply(e,A||[])).next())}))}function g(e,A){var t,i,o,r,n={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(s){return function(a){return function(s){if(t)throw new TypeError("Generator is already executing.");for(;r&&(r=0,s[0]&&(n=0)),n;)try{if(t=1,i&&(o=2&s[0]?i.return:s[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,s[1])).done)return o;switch(i=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return n.label++,{value:s[1],done:!1};case 5:n.label++,i=s[1],s=[0];continue;case 7:s=n.ops.pop(),n.trys.pop();continue;default:if(!(o=n.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){n=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){n.label=s[1];break}if(6===s[0]&&n.label<o[1]){n.label=o[1],o=s;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(s);break}o[2]&&n.ops.pop(),n.trys.pop();continue}s=A.call(e,n)}catch(a){s=[6,a],i=0}finally{t=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,a])}}}function c(e){var A="function"==typeof Symbol&&Symbol.iterator,t=A&&e[A],i=0;if(t)return t.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(A?"Object is not iterable.":"Symbol.iterator is not defined.")}function C(e,A,t){if(t||2===arguments.length)for(var i,o=0,r=A.length;o<r;o++)!i&&o in A||(i||(i=Array.prototype.slice.call(A,0,o)),i[o]=A[o]);return e.concat(i||Array.prototype.slice.call(A))}function u(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var A,t=e[Symbol.asyncIterator];return t?t.call(e):(e=c(e),A={},i("next"),i("throw"),i("return"),A[Symbol.asyncIterator]=function(){return this},A);function i(t){A[t]=e[t]&&function(A){return new Promise((function(i,o){(function(e,A,t,i){Promise.resolve(i).then((function(A){e({value:A,done:t})}),A)})(i,o,(A=e[t](A)).done,A.value)}))}}}var I="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function l(e,A){return e(A={exports:{}},A.exports),A.exports}var d,h,B,E,Q,p,f,T,v=l((function(e){var A=Object.prototype.hasOwnProperty,t="~";function i(){}function o(e,A,t){this.fn=e,this.context=A,this.once=t||!1}function r(e,A,i,r,n){if("function"!=typeof i)throw new TypeError("The listener must be a function");var s=new o(i,r||e,n),a=t?t+A:A;return e._events[a]?e._events[a].fn?e._events[a]=[e._events[a],s]:e._events[a].push(s):(e._events[a]=s,e._eventsCount++),e}function n(e,A){0==--e._eventsCount?e._events=new i:delete e._events[A]}function s(){this._events=new i,this._eventsCount=0}Object.create&&(i.prototype=Object.create(null),(new i).__proto__||(t=!1)),s.prototype.eventNames=function(){var e,i,o=[];if(0===this._eventsCount)return o;for(i in e=this._events)A.call(e,i)&&o.push(t?i.slice(1):i);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},s.prototype.listeners=function(e){var A=t?t+e:e,i=this._events[A];if(!i)return[];if(i.fn)return[i.fn];for(var o=0,r=i.length,n=new Array(r);o<r;o++)n[o]=i[o].fn;return n},s.prototype.listenerCount=function(e){var A=t?t+e:e,i=this._events[A];return i?i.fn?1:i.length:0},s.prototype.emit=function(e,A,i,o,r,n){var s=t?t+e:e;if(!this._events[s])return!1;var a,g,c=this._events[s],C=arguments.length;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),C){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,A),!0;case 3:return c.fn.call(c.context,A,i),!0;case 4:return c.fn.call(c.context,A,i,o),!0;case 5:return c.fn.call(c.context,A,i,o,r),!0;case 6:return c.fn.call(c.context,A,i,o,r,n),!0}for(g=1,a=new Array(C-1);g<C;g++)a[g-1]=arguments[g];c.fn.apply(c.context,a)}else{var u,I=c.length;for(g=0;g<I;g++)switch(c[g].once&&this.removeListener(e,c[g].fn,void 0,!0),C){case 1:c[g].fn.call(c[g].context);break;case 2:c[g].fn.call(c[g].context,A);break;case 3:c[g].fn.call(c[g].context,A,i);break;case 4:c[g].fn.call(c[g].context,A,i,o);break;default:if(!a)for(u=1,a=new Array(C-1);u<C;u++)a[u-1]=arguments[u];c[g].fn.apply(c[g].context,a)}}return!0},s.prototype.on=function(e,A,t){return r(this,e,A,t,!1)},s.prototype.once=function(e,A,t){return r(this,e,A,t,!0)},s.prototype.removeListener=function(e,A,i,o){var r=t?t+e:e;if(!this._events[r])return this;if(!A)return n(this,r),this;var s=this._events[r];if(s.fn)s.fn!==A||o&&!s.once||i&&s.context!==i||n(this,r);else{for(var a=0,g=[],c=s.length;a<c;a++)(s[a].fn!==A||o&&!s[a].once||i&&s[a].context!==i)&&g.push(s[a]);g.length?this._events[r]=1===g.length?g[0]:g:n(this,r)}return this},s.prototype.removeAllListeners=function(e){var A;return e?(A=t?t+e:e,this._events[A]&&n(this,A)):(this._events=new i,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=t,s.EventEmitter=s,e.exports=s}));e.TRTCVideoResolution=void 0,(d=e.TRTCVideoResolution||(e.TRTCVideoResolution={}))[d.TRTCVideoResolution_120_120=1]="TRTCVideoResolution_120_120",d[d.TRTCVideoResolution_160_160=3]="TRTCVideoResolution_160_160",d[d.TRTCVideoResolution_270_270=5]="TRTCVideoResolution_270_270",d[d.TRTCVideoResolution_480_480=7]="TRTCVideoResolution_480_480",d[d.TRTCVideoResolution_160_120=50]="TRTCVideoResolution_160_120",d[d.TRTCVideoResolution_240_180=52]="TRTCVideoResolution_240_180",d[d.TRTCVideoResolution_280_210=54]="TRTCVideoResolution_280_210",d[d.TRTCVideoResolution_320_240=56]="TRTCVideoResolution_320_240",d[d.TRTCVideoResolution_400_300=58]="TRTCVideoResolution_400_300",d[d.TRTCVideoResolution_480_360=60]="TRTCVideoResolution_480_360",d[d.TRTCVideoResolution_640_480=62]="TRTCVideoResolution_640_480",d[d.TRTCVideoResolution_960_720=64]="TRTCVideoResolution_960_720",d[d.TRTCVideoResolution_160_90=100]="TRTCVideoResolution_160_90",d[d.TRTCVideoResolution_256_144=102]="TRTCVideoResolution_256_144",d[d.TRTCVideoResolution_320_180=104]="TRTCVideoResolution_320_180",d[d.TRTCVideoResolution_480_270=106]="TRTCVideoResolution_480_270",d[d.TRTCVideoResolution_640_360=108]="TRTCVideoResolution_640_360",d[d.TRTCVideoResolution_960_540=110]="TRTCVideoResolution_960_540",d[d.TRTCVideoResolution_1280_720=112]="TRTCVideoResolution_1280_720",d[d.TRTCVideoResolution_1920_1080=114]="TRTCVideoResolution_1920_1080",e.TRTCVideoStreamType=void 0,(h=e.TRTCVideoStreamType||(e.TRTCVideoStreamType={}))[h.TRTCVideoStreamTypeBig=0]="TRTCVideoStreamTypeBig",h[h.TRTCVideoStreamTypeSmall=1]="TRTCVideoStreamTypeSmall",h[h.TRTCVideoStreamTypeSub=2]="TRTCVideoStreamTypeSub",e.TRTCVideoFillMode=void 0,(B=e.TRTCVideoFillMode||(e.TRTCVideoFillMode={}))[B.TRTCVideoFillMode_Fill=0]="TRTCVideoFillMode_Fill",B[B.TRTCVideoFillMode_Fit=1]="TRTCVideoFillMode_Fit",e.TRTCVideoMirrorType=void 0,(E=e.TRTCVideoMirrorType||(e.TRTCVideoMirrorType={}))[E.TRTCVideoMirrorType_Auto=0]="TRTCVideoMirrorType_Auto",E[E.TRTCVideoMirrorType_Enable=1]="TRTCVideoMirrorType_Enable",E[E.TRTCVideoMirrorType_Disable=2]="TRTCVideoMirrorType_Disable",e.TRTCBeautyStyle=void 0,(Q=e.TRTCBeautyStyle||(e.TRTCBeautyStyle={}))[Q.TRTCBeautyStyleSmooth=0]="TRTCBeautyStyleSmooth",Q[Q.TRTCBeautyStyleNature=1]="TRTCBeautyStyleNature",e.TRTCAppScene=void 0,(p=e.TRTCAppScene||(e.TRTCAppScene={}))[p.TRTCAppSceneVideoCall=0]="TRTCAppSceneVideoCall",p[p.TRTCAppSceneLIVE=1]="TRTCAppSceneLIVE",p[p.TRTCAppSceneAudioCall=2]="TRTCAppSceneAudioCall",p[p.TRTCAppSceneVoiceChatRoom=3]="TRTCAppSceneVoiceChatRoom",e.TRTCRoleType=void 0,(f=e.TRTCRoleType||(e.TRTCRoleType={}))[f.TRTCRoleAnchor=20]="TRTCRoleAnchor",f[f.TRTCRoleAudience=21]="TRTCRoleAudience",e.TRTCAudioQuality=void 0,(T=e.TRTCAudioQuality||(e.TRTCAudioQuality={}))[T.TRTCAudioQualitySpeech=1]="TRTCAudioQualitySpeech",T[T.TRTCAudioQualityDefault=2]="TRTCAudioQualityDefault",T[T.TRTCAudioQualityMusic=3]="TRTCAudioQualityMusic";var y,m,R=function(e,A,t,i,o){void 0===e&&(e=""),void 0===A&&(A=""),void 0===t&&(t=""),void 0===i&&(i=""),void 0===o&&(o=""),this.deviceId=e,this.deviceName=A,this.kind=t,this.label=i,this.groupId=o};e.TRTCDeviceState=void 0,(y=e.TRTCDeviceState||(e.TRTCDeviceState={}))[y.TRTCDeviceStateAdd=0]="TRTCDeviceStateAdd",y[y.TRTCDeviceStateRemove=1]="TRTCDeviceStateRemove",y[y.TRTCDeviceStateActive=2]="TRTCDeviceStateActive",e.TRTCDeviceType=void 0,(m=e.TRTCDeviceType||(e.TRTCDeviceType={}))[m.TRTCDeviceTypeUnknow=-1]="TRTCDeviceTypeUnknow",m[m.TRTCDeviceTypeMic=0]="TRTCDeviceTypeMic",m[m.TRTCDeviceTypeSpeaker=1]="TRTCDeviceTypeSpeaker",m[m.TRTCDeviceTypeCamera=2]="TRTCDeviceTypeCamera";var w,S=function(A,t,i,o,r,n,s,a,g,c,C){void 0===A&&(A=0),void 0===t&&(t=""),void 0===i&&(i=""),void 0===o&&(o=0),void 0===r&&(r=""),void 0===n&&(n=e.TRTCRoleType.TRTCRoleAnchor),void 0===s&&(s=null),void 0===g&&(g=null),void 0===c&&(c=null),void 0===C&&(C=30),this.sdkAppId=A,this.userId=t,this.userSig=i,this.roomId=o,this.strRoomId=r,this.role=n,this.privateMapKey=s,this.streamId=g,this.userDefineRecordId=c,this.frameWorkType=C},M=function(A,t,i,o){void 0===A&&(A=e.TRTCVideoResolution.TRTCVideoResolution_640_360),void 0===t&&(t=e.TRTCVideoResolutionMode.TRTCVideoResolutionModeLandscape),void 0===i&&(i=15),void 0===o&&(o=550),this.videoResolution=A,this.resMode=t,this.videoFps=i,this.videoBitrate=o};e.TRTCVideoRotation=void 0,(w=e.TRTCVideoRotation||(e.TRTCVideoRotation={}))[w.TRTCVideoRotation0=0]="TRTCVideoRotation0",w[w.TRTCVideoRotation90=1]="TRTCVideoRotation90",w[w.TRTCVideoRotation180=2]="TRTCVideoRotation180",w[w.TRTCVideoRotation270=3]="TRTCVideoRotation270";var D,b=function(A,t,i){void 0===A&&(A=e.TRTCVideoRotation.TRTCVideoRotation0),void 0===t&&(t=e.TRTCVideoFillMode.TRTCVideoFillMode_Fit),void 0===i&&(i=e.TRTCVideoMirrorType.TRTCVideoMirrorType_Disable),this.rotation=A,this.fillMode=t,this.mirrorType=i};e.TRTCQuality=void 0,(D=e.TRTCQuality||(e.TRTCQuality={}))[D.TRTCQuality_Unknown=0]="TRTCQuality_Unknown",D[D.TRTCQuality_Excellent=1]="TRTCQuality_Excellent",D[D.TRTCQuality_Good=2]="TRTCQuality_Good",D[D.TRTCQuality_Poor=3]="TRTCQuality_Poor",D[D.TRTCQuality_Bad=4]="TRTCQuality_Bad",D[D.TRTCQuality_Vbad=5]="TRTCQuality_Vbad",D[D.TRTCQuality_Down=6]="TRTCQuality_Down";var L,N,_,G=function(A,t){void 0===A&&(A=""),void 0===t&&(t=e.TRTCQuality.TRTCQuality_Unknown),this.userId=A,this.quality=t},k=function(e,A){void 0===e&&(e=""),void 0===A&&(A=0),this.userId=e,this.volume=A},F=function(e,A,t){void 0===e&&(e=0),void 0===A&&(A=0),void 0===t&&(t=null),this.appId=e,this.bizId=A,this.url=t},V=function(A,t,i,o,r,n,s){void 0===A&&(A=0),void 0===t&&(t=0),void 0===i&&(i=0),void 0===o&&(o=0),void 0===n&&(n=0),void 0===s&&(s=e.TRTCVideoStreamType.TRTCVideoStreamTypeBig),this.width=A,this.height=t,this.frameRate=i,this.videoBitrate=o,this.audioBitrate=n,this.streamType=s},P=function(A,t,i,o,r,n,s,a,g,c,C,u,I,l){void 0===A&&(A=""),void 0===i&&(i=0),void 0===o&&(o=0),void 0===r&&(r=0),void 0===n&&(n=0),void 0===a&&(a=0),void 0===l&&(l=e.TRTCVideoStreamType.TRTCVideoStreamTypeBig),this.userId=A,this.width=i,this.height=o,this.frameRate=r,this.videoBitrate=n,this.audioBitrate=a,this.streamType=l},x=function(e,A,t,i,o,r,n,s,a,g,c){void 0===e&&(e=0),void 0===A&&(A=0),void 0===o&&(o=0),void 0===r&&(r=0),void 0===n&&(n=0),void 0===s&&(s=[]),void 0===a&&(a=0),void 0===g&&(g=[]),void 0===c&&(c=0),this.upLoss=e,this.downLoss=A,this.rtt=o,this.receivedBytes=r,this.sentBytes=n,this.localStatisticsArray=s,this.localStatisticsArraySize=a,this.remoteStatisticsArray=g,this.remoteStatisticsArraySize=c};e.TRTCVideoResolutionMode=void 0,(L=e.TRTCVideoResolutionMode||(e.TRTCVideoResolutionMode={}))[L.TRTCVideoResolutionModeLandscape=0]="TRTCVideoResolutionModeLandscape",L[L.TRTCVideoResolutionModePortrait=1]="TRTCVideoResolutionModePortrait",e.TRTCVideoQosPreference=void 0,(N=e.TRTCVideoQosPreference||(e.TRTCVideoQosPreference={}))[N.TRTCVideoQosPreferenceSmooth=1]="TRTCVideoQosPreferenceSmooth",N[N.TRTCVideoQosPreferenceClear=2]="TRTCVideoQosPreferenceClear",e.TRTCQosControlMode=void 0,(_=e.TRTCQosControlMode||(e.TRTCQosControlMode={}))[_.TRTCQosControlModeClient=0]="TRTCQosControlModeClient",_[_.TRTCQosControlModeServer=1]="TRTCQosControlModeServer";var Y,H,U=function(A,t){void 0===A&&(A=e.TRTCVideoQosPreference.TRTCVideoQosPreferenceClear),void 0===t&&(t=e.TRTCQosControlMode.TRTCQosControlModeServer),this.preference=A,this.controlMode=t},O=function(e,A,t,i){void 0===e&&(e=new ArrayBuffer(0)),void 0===A&&(A=0),void 0===t&&(t=0),void 0===i&&(i=0),this.buffer=e,this.length=A,this.width=t,this.height=i};e.TRTCLogLevel=void 0,(Y=e.TRTCLogLevel||(e.TRTCLogLevel={}))[Y.TRTCLogLevelVerbose=0]="TRTCLogLevelVerbose",Y[Y.TRTCLogLevelDebug=1]="TRTCLogLevelDebug",Y[Y.TRTCLogLevelInfo=2]="TRTCLogLevelInfo",Y[Y.TRTCLogLevelWarn=3]="TRTCLogLevelWarn",Y[Y.TRTCLogLevelError=4]="TRTCLogLevelError",Y[Y.TRTCLogLevelFatal=5]="TRTCLogLevelFatal",Y[Y.TRTCLogLevelNone=6]="TRTCLogLevelNone",e.TRTCScreenCaptureSourceType=void 0,(H=e.TRTCScreenCaptureSourceType||(e.TRTCScreenCaptureSourceType={}))[H.TRTCScreenCaptureSourceTypeUnknown=-1]="TRTCScreenCaptureSourceTypeUnknown",H[H.TRTCScreenCaptureSourceTypeWindow=0]="TRTCScreenCaptureSourceTypeWindow",H[H.TRTCScreenCaptureSourceTypeScreen=1]="TRTCScreenCaptureSourceTypeScreen",H[H.TRTCScreenCaptureSourceTypeCustom=2]="TRTCScreenCaptureSourceTypeCustom";var K,J=function(A,t,i,o,r,n){void 0===A&&(A=e.TRTCScreenCaptureSourceType.TRTCScreenCaptureSourceTypeUnknown),void 0===t&&(t=""),void 0===i&&(i=""),void 0===o&&(o=new O),void 0===r&&(r=new O),void 0===n&&(n=!1),this.type=A,this.sourceId=t,this.sourceName=i,this.thumbBGRA=o,this.iconBGRA=r,this.isMinimizeWindow=n},j=function(e,A,t,i){void 0===e&&(e=0),void 0===A&&(A=0),void 0===t&&(t=0),void 0===i&&(i=0),this.left=e,this.top=A,this.right=t,this.bottom=i},z=function(A,t,i,o,r,n,s,a,g,c,C,u,I,l,d){void 0===A&&(A=e.TRTCTranscodingConfigMode.TRTCTranscodingConfigMode_Unknown),void 0===t&&(t=0),void 0===i&&(i=0),void 0===o&&(o=0),void 0===r&&(r=0),void 0===n&&(n=0),void 0===s&&(s=15),void 0===a&&(a=2),void 0===g&&(g=0),void 0===c&&(c=""),void 0===C&&(C=64),void 0===u&&(u=48e3),void 0===I&&(I=1),void 0===l&&(l=[]),void 0===d&&(d=""),this.mode=A,this.appId=t,this.bizId=i,this.videoWidth=o,this.videoHeight=r,this.videoBitrate=n,this.videoFramerate=s,this.videoGOP=a,this.backgroundColor=g,this.backgroundImage=c,this.audioSampleRate=C,this.audioBitrate=u,this.audioChannels=I,this.mixUsersArray=l,this.mixUsersArraySize=l.length,this.streamId=d};e.TRTCTranscodingConfigMode=void 0,(K=e.TRTCTranscodingConfigMode||(e.TRTCTranscodingConfigMode={}))[K.TRTCTranscodingConfigMode_Unknown=0]="TRTCTranscodingConfigMode_Unknown",K[K.TRTCTranscodingConfigMode_Manual=1]="TRTCTranscodingConfigMode_Manual",K[K.TRTCTranscodingConfigMode_Template_PureAudio=2]="TRTCTranscodingConfigMode_Template_PureAudio",K[K.TRTCTranscodingConfigMode_Template_PresetLayout=3]="TRTCTranscodingConfigMode_Template_PresetLayout",K[K.TRTCTranscodingConfigMode_Template_ScreenSharing=4]="TRTCTranscodingConfigMode_Template_ScreenSharing",K[K.TRTC_TranscodingConfigMode_Unknown=5]="TRTC_TranscodingConfigMode_Unknown",K[K.TRTC_TranscodingConfigMode_Manual=6]="TRTC_TranscodingConfigMode_Manual",K[K.TRTC_TranscodingConfigMode_Template_PureAudio=7]="TRTC_TranscodingConfigMode_Template_PureAudio",K[K.TRTC_TranscodingConfigMode_Template_PresetLayout=8]="TRTC_TranscodingConfigMode_Template_PresetLayout",K[K.TRTC_TranscodingConfigMode_Template_ScreenSharing=9]="TRTC_TranscodingConfigMode_Template_ScreenSharing";var Z,W,X=function(A,t,i,o,r,n,s,a){void 0===A&&(A=""),void 0===t&&(t=""),void 0===i&&(i=null),void 0===o&&(o=0),void 0===r&&(r=!1),void 0===n&&(n=e.TRTCVideoStreamType.TRTCVideoStreamTypeBig),void 0===s&&(s=e.TRTCMixInputType.TRTCMixInputTypeUndefined),void 0===a&&(a=0),this.userId=A,this.roomId=t,this.rect=i,this.zOrder=o,this.pureAudio=r,this.streamType=n,this.inputType=s,this.renderMode=a};e.TRTCMixInputType=void 0,(Z=e.TRTCMixInputType||(e.TRTCMixInputType={}))[Z.TRTCMixInputTypeUndefined=0]="TRTCMixInputTypeUndefined",Z[Z.TRTCMixInputTypeAudioVideo=1]="TRTCMixInputTypeAudioVideo",Z[Z.TRTCMixInputTypePureVideo=2]="TRTCMixInputTypePureVideo",Z[Z.TRTCMixInputTypePureAudio=3]="TRTCMixInputTypePureAudio",e.TRTCCameraCaptureMode=void 0,(W=e.TRTCCameraCaptureMode||(e.TRTCCameraCaptureMode={}))[W.TRTCCameraResolutionStrategyAuto=0]="TRTCCameraResolutionStrategyAuto",W[W.TRTCCameraResolutionStrategyPerformance=1]="TRTCCameraResolutionStrategyPerformance",W[W.TRTCCameraResolutionStrategyHighQuality=2]="TRTCCameraResolutionStrategyHighQuality",W[W.TRTCCameraCaptureManual=3]="TRTCCameraCaptureManual";var q,$=function(e,A,t,i,o,r){void 0===e&&(e=!0),void 0===A&&(A=!0),void 0===t&&(t=!0),void 0===i&&(i=0),void 0===o&&(o=0),void 0===r&&(r=!1),this.enableCaptureMouse=e,this.enableHighLight=A,this.enableHighPerformance=t,this.highLightColor=i,this.highLightWidth=o,this.enableCaptureChildWindow=r},ee="onError",Ae="onWarning",te="rtc",ie="live",oe="VirtualBackground",re="BasicBeauty",ne="blur",se="image",ae={20:"anchor",21:"audience"},ge={0:te,1:ie,2:te,3:ie};!function(e){e[e.ActiveExitRoom=0]="ActiveExitRoom",e[e.KickedExitRoom=1]="KickedExitRoom"}(q||(q={}));var ce="enum";function Ce(){return Math.floor(performance.now())}var ue=function(e){return void 0===e},Ie=function(e){return"number"==typeof e},le=function(e){return"boolean"==typeof e};function de(e){if("string"!=typeof e)return e;var A;try{var t=JSON.parse(e);A="object"==typeof t&&t?t:e}catch(i){A=e}return A}function he(e){return null==e}function Be(){for(var e=[],A=0;A<arguments.length;A++)e[A]=arguments[A];return e.reduce((function(e,A){return Object.keys(A).forEach((function(t){e[t]&&"object"==typeof e[t]?e[t]=Be(e[t],A[t]):e[t]=A[t]})),e}),{})}function Ee(e){var A=null;return[Date,RegExp,Set,WeakSet,Map,WeakMap,Error].includes(null==e?void 0:e.constructor)?A=new e.constructor(e):Array.isArray(e)?(A=[],e.forEach((function(e,t){A[t]=Ee(e)}))):"object"==typeof e&&null!==e?(A={},Object.keys(e).forEach((function(t){Object.hasOwnProperty.call(e,t)&&(A[t]=Ee(e[t]))}))):A=e,A}var Qe,pe,fe=function(e){return e&&e.Math===Math&&e},Te=fe("object"==typeof globalThis&&globalThis)||fe("object"==typeof window&&window)||fe("object"==typeof self&&self)||fe("object"==typeof I&&I)||function(){return this}()||I||Function("return this")(),ve=function(e){try{return!!e()}catch(A){return!0}},ye=!ve((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),me=!ve((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),Re=Function.prototype.call,we=me?Re.bind(Re):function(){return Re.apply(Re,arguments)},Se={}.propertyIsEnumerable,Me=Object.getOwnPropertyDescriptor,De={f:Me&&!Se.call({1:2},1)?function(e){var A=Me(this,e);return!!A&&A.enumerable}:Se},be=function(e,A){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:A}},Le=Function.prototype,Ne=Le.call,_e=me&&Le.bind.bind(Ne,Ne),Ge=me?_e:function(e){return function(){return Ne.apply(e,arguments)}},ke=Ge({}.toString),Fe=Ge("".slice),Ve=function(e){return Fe(ke(e),8,-1)},Pe=Object,xe=Ge("".split),Ye=ve((function(){return!Pe("z").propertyIsEnumerable(0)}))?function(e){return"String"===Ve(e)?xe(e,""):Pe(e)}:Pe,He=function(e){return null==e},Ue=TypeError,Oe=function(e){if(He(e))throw Ue("Can't call method on "+e);return e},Ke=function(e){return Ye(Oe(e))},Je="object"==typeof document&&document.all,je={all:Je,IS_HTMLDDA:void 0===Je&&void 0!==Je},ze=je.all,Ze=je.IS_HTMLDDA?function(e){return"function"==typeof e||e===ze}:function(e){return"function"==typeof e},We=je.all,Xe=je.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:Ze(e)||e===We}:function(e){return"object"==typeof e?null!==e:Ze(e)},qe=function(e,A){return arguments.length<2?(t=Te[e],Ze(t)?t:void 0):Te[e]&&Te[e][A];var t},$e=Ge({}.isPrototypeOf),eA="undefined"!=typeof navigator&&String(navigator.userAgent)||"",AA=Te.process,tA=Te.Deno,iA=AA&&AA.versions||tA&&tA.version,oA=iA&&iA.v8;oA&&(pe=(Qe=oA.split("."))[0]>0&&Qe[0]<4?1:+(Qe[0]+Qe[1])),!pe&&eA&&(!(Qe=eA.match(/Edge\/(\d+)/))||Qe[1]>=74)&&(Qe=eA.match(/Chrome\/(\d+)/))&&(pe=+Qe[1]);var rA=pe,nA=Te.String,sA=!!Object.getOwnPropertySymbols&&!ve((function(){var e=Symbol("symbol detection");return!nA(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&rA&&rA<41})),aA=sA&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,gA=Object,cA=aA?function(e){return"symbol"==typeof e}:function(e){var A=qe("Symbol");return Ze(A)&&$e(A.prototype,gA(e))},CA=String,uA=TypeError,IA=function(e){if(Ze(e))return e;throw uA(function(e){try{return CA(e)}catch(A){return"Object"}}(e)+" is not a function")},lA=function(e,A){var t=e[A];return He(t)?void 0:IA(t)},dA=TypeError,hA=Object.defineProperty,BA=function(e,A){try{hA(Te,e,{value:A,configurable:!0,writable:!0})}catch(t){Te[e]=A}return A},EA="__core-js_shared__",QA=Te[EA]||BA(EA,{}),pA=l((function(e){(e.exports=function(e,A){return QA[e]||(QA[e]=void 0!==A?A:{})})("versions",[]).push({version:"3.32.1",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.32.1/LICENSE",source:"https://github.com/zloirock/core-js"})})),fA=Object,TA=function(e){return fA(Oe(e))},vA=Ge({}.hasOwnProperty),yA=Object.hasOwn||function(e,A){return vA(TA(e),A)},mA=0,RA=Math.random(),wA=Ge(1..toString),SA=function(e){return"Symbol("+(void 0===e?"":e)+")_"+wA(++mA+RA,36)},MA=Te.Symbol,DA=pA("wks"),bA=aA?MA.for||MA:MA&&MA.withoutSetter||SA,LA=function(e){return yA(DA,e)||(DA[e]=sA&&yA(MA,e)?MA[e]:bA("Symbol."+e)),DA[e]},NA=TypeError,_A=LA("toPrimitive"),GA=function(e,A){if(!Xe(e)||cA(e))return e;var t,i=lA(e,_A);if(i){if(void 0===A&&(A="default"),t=we(i,e,A),!Xe(t)||cA(t))return t;throw NA("Can't convert object to primitive value")}return void 0===A&&(A="number"),function(e,A){var t,i;if("string"===A&&Ze(t=e.toString)&&!Xe(i=we(t,e)))return i;if(Ze(t=e.valueOf)&&!Xe(i=we(t,e)))return i;if("string"!==A&&Ze(t=e.toString)&&!Xe(i=we(t,e)))return i;throw dA("Can't convert object to primitive value")}(e,A)},kA=function(e){var A=GA(e,"string");return cA(A)?A:A+""},FA=Te.document,VA=Xe(FA)&&Xe(FA.createElement),PA=function(e){return VA?FA.createElement(e):{}},xA=!ye&&!ve((function(){return 7!==Object.defineProperty(PA("div"),"a",{get:function(){return 7}}).a})),YA=Object.getOwnPropertyDescriptor,HA={f:ye?YA:function(e,A){if(e=Ke(e),A=kA(A),xA)try{return YA(e,A)}catch(t){}if(yA(e,A))return be(!we(De.f,e,A),e[A])}},UA=ye&&ve((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),OA=String,KA=TypeError,JA=function(e){if(Xe(e))return e;throw KA(OA(e)+" is not an object")},jA=TypeError,zA=Object.defineProperty,ZA=Object.getOwnPropertyDescriptor,WA="enumerable",XA="configurable",qA="writable",$A={f:ye?UA?function(e,A,t){if(JA(e),A=kA(A),JA(t),"function"==typeof e&&"prototype"===A&&"value"in t&&qA in t&&!t[qA]){var i=ZA(e,A);i&&i[qA]&&(e[A]=t.value,t={configurable:XA in t?t[XA]:i[XA],enumerable:WA in t?t[WA]:i[WA],writable:!1})}return zA(e,A,t)}:zA:function(e,A,t){if(JA(e),A=kA(A),JA(t),xA)try{return zA(e,A,t)}catch(i){}if("get"in t||"set"in t)throw jA("Accessors not supported");return"value"in t&&(e[A]=t.value),e}},et=ye?function(e,A,t){return $A.f(e,A,be(1,t))}:function(e,A,t){return e[A]=t,e},At=Function.prototype,tt=ye&&Object.getOwnPropertyDescriptor,it=yA(At,"name"),ot={EXISTS:it,PROPER:it&&"something"===function(){}.name,CONFIGURABLE:it&&(!ye||ye&&tt(At,"name").configurable)},rt=Ge(Function.toString);Ze(QA.inspectSource)||(QA.inspectSource=function(e){return rt(e)});var nt,st,at,gt=QA.inspectSource,ct=Te.WeakMap,Ct=Ze(ct)&&/native code/.test(String(ct)),ut=pA("keys"),It=function(e){return ut[e]||(ut[e]=SA(e))},lt={},dt="Object already initialized",ht=Te.TypeError,Bt=Te.WeakMap;if(Ct||QA.state){var Et=QA.state||(QA.state=new Bt);Et.get=Et.get,Et.has=Et.has,Et.set=Et.set,nt=function(e,A){if(Et.has(e))throw ht(dt);return A.facade=e,Et.set(e,A),A},st=function(e){return Et.get(e)||{}},at=function(e){return Et.has(e)}}else{var Qt=It("state");lt[Qt]=!0,nt=function(e,A){if(yA(e,Qt))throw ht(dt);return A.facade=e,et(e,Qt,A),A},st=function(e){return yA(e,Qt)?e[Qt]:{}},at=function(e){return yA(e,Qt)}}var pt={set:nt,get:st,has:at,enforce:function(e){return at(e)?st(e):nt(e,{})},getterFor:function(e){return function(A){var t;if(!Xe(A)||(t=st(A)).type!==e)throw ht("Incompatible receiver, "+e+" required");return t}}},ft=l((function(e){var A=ot.CONFIGURABLE,t=pt.enforce,i=pt.get,o=String,r=Object.defineProperty,n=Ge("".slice),s=Ge("".replace),a=Ge([].join),g=ye&&!ve((function(){return 8!==r((function(){}),"length",{value:8}).length})),c=String(String).split("String"),C=e.exports=function(e,i,C){"Symbol("===n(o(i),0,7)&&(i="["+s(o(i),/^Symbol\(([^)]*)\)/,"$1")+"]"),C&&C.getter&&(i="get "+i),C&&C.setter&&(i="set "+i),(!yA(e,"name")||A&&e.name!==i)&&(ye?r(e,"name",{value:i,configurable:!0}):e.name=i),g&&C&&yA(C,"arity")&&e.length!==C.arity&&r(e,"length",{value:C.arity});try{C&&yA(C,"constructor")&&C.constructor?ye&&r(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(I){}var u=t(e);return yA(u,"source")||(u.source=a(c,"string"==typeof i?i:"")),e};Function.prototype.toString=C((function(){return Ze(this)&&i(this).source||gt(this)}),"toString")})),Tt=function(e,A,t,i){i||(i={});var o=i.enumerable,r=void 0!==i.name?i.name:A;if(Ze(t)&&ft(t,r,i),i.global)o?e[A]=t:BA(A,t);else{try{i.unsafe?e[A]&&(o=!0):delete e[A]}catch(n){}o?e[A]=t:$A.f(e,A,{value:t,enumerable:!1,configurable:!i.nonConfigurable,writable:!i.nonWritable})}return e},vt=Math.ceil,yt=Math.floor,mt=Math.trunc||function(e){var A=+e;return(A>0?yt:vt)(A)},Rt=function(e){var A=+e;return A!=A||0===A?0:mt(A)},wt=Math.max,St=Math.min,Mt=Math.min,Dt=function(e){return e>0?Mt(Rt(e),9007199254740991):0},bt=function(e){return Dt(e.length)},Lt=function(e){return function(A,t,i){var o,r=Ke(A),n=bt(r),s=function(e,A){var t=Rt(e);return t<0?wt(t+A,0):St(t,A)}(i,n);if(e&&t!=t){for(;n>s;)if((o=r[s++])!=o)return!0}else for(;n>s;s++)if((e||s in r)&&r[s]===t)return e||s||0;return!e&&-1}},Nt={includes:Lt(!0),indexOf:Lt(!1)}.indexOf,_t=Ge([].push),Gt=function(e,A){var t,i=Ke(e),o=0,r=[];for(t in i)!yA(lt,t)&&yA(i,t)&&_t(r,t);for(;A.length>o;)yA(i,t=A[o++])&&(~Nt(r,t)||_t(r,t));return r},kt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ft=kt.concat("length","prototype"),Vt={f:Object.getOwnPropertyNames||function(e){return Gt(e,Ft)}},Pt={f:Object.getOwnPropertySymbols},xt=Ge([].concat),Yt=qe("Reflect","ownKeys")||function(e){var A=Vt.f(JA(e)),t=Pt.f;return t?xt(A,t(e)):A},Ht=function(e,A,t){for(var i=Yt(A),o=$A.f,r=HA.f,n=0;n<i.length;n++){var s=i[n];yA(e,s)||t&&yA(t,s)||o(e,s,r(A,s))}},Ut=/#|\.prototype\./,Ot=function(e,A){var t=Jt[Kt(e)];return t===zt||t!==jt&&(Ze(A)?ve(A):!!A)},Kt=Ot.normalize=function(e){return String(e).replace(Ut,".").toLowerCase()},Jt=Ot.data={},jt=Ot.NATIVE="N",zt=Ot.POLYFILL="P",Zt=Ot,Wt=HA.f,Xt=function(e,A){var t,i,o,r,n,s=e.target,a=e.global,g=e.stat;if(t=a?Te:g?Te[s]||BA(s,{}):(Te[s]||{}).prototype)for(i in A){if(r=A[i],o=e.dontCallGetSet?(n=Wt(t,i))&&n.value:t[i],!Zt(a?i:s+(g?".":"#")+i,e.forced)&&void 0!==o){if(typeof r==typeof o)continue;Ht(r,o)}(e.sham||o&&o.sham)&&et(r,"sham",!0),Tt(t,i,r,e)}},qt={};qt[LA("toStringTag")]="z";var $t,ei="[object z]"===String(qt),Ai=LA("toStringTag"),ti=Object,ii="Arguments"===Ve(function(){return arguments}()),oi=ei?Ve:function(e){var A,t,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=function(e,A){try{return e[A]}catch(t){}}(A=ti(e),Ai))?t:ii?Ve(A):"Object"===(i=Ve(A))&&Ze(A.callee)?"Arguments":i},ri=String,ni=function(e){if("Symbol"===oi(e))throw TypeError("Cannot convert a Symbol value to a string");return ri(e)},si=function(){var e=JA(this),A="";return e.hasIndices&&(A+="d"),e.global&&(A+="g"),e.ignoreCase&&(A+="i"),e.multiline&&(A+="m"),e.dotAll&&(A+="s"),e.unicode&&(A+="u"),e.unicodeSets&&(A+="v"),e.sticky&&(A+="y"),A},ai=Te.RegExp,gi=ve((function(){var e=ai("a","y");return e.lastIndex=2,null!==e.exec("abcd")})),ci=gi||ve((function(){return!ai("a","y").sticky})),Ci={BROKEN_CARET:gi||ve((function(){var e=ai("^r","gy");return e.lastIndex=2,null!==e.exec("str")})),MISSED_STICKY:ci,UNSUPPORTED_Y:gi},ui=Object.keys||function(e){return Gt(e,kt)},Ii=ye&&!UA?Object.defineProperties:function(e,A){JA(e);for(var t,i=Ke(A),o=ui(A),r=o.length,n=0;r>n;)$A.f(e,t=o[n++],i[t]);return e},li={f:Ii},di=qe("document","documentElement"),hi="prototype",Bi="script",Ei=It("IE_PROTO"),Qi=function(){},pi=function(e){return"<"+Bi+">"+e+"</"+Bi+">"},fi=function(e){e.write(pi("")),e.close();var A=e.parentWindow.Object;return e=null,A},Ti=function(){try{$t=new ActiveXObject("htmlfile")}catch(o){}var e,A,t;Ti="undefined"!=typeof document?document.domain&&$t?fi($t):(A=PA("iframe"),t="java"+Bi+":",A.style.display="none",di.appendChild(A),A.src=String(t),(e=A.contentWindow.document).open(),e.write(pi("document.F=Object")),e.close(),e.F):fi($t);for(var i=kt.length;i--;)delete Ti[hi][kt[i]];return Ti()};lt[Ei]=!0;var vi,yi,mi=Object.create||function(e,A){var t;return null!==e?(Qi[hi]=JA(e),t=new Qi,Qi[hi]=null,t[Ei]=e):t=Ti(),void 0===A?t:li.f(t,A)},Ri=Te.RegExp,wi=ve((function(){var e=Ri(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),Si=Te.RegExp,Mi=ve((function(){var e=Si("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),Di=pt.get,bi=pA("native-string-replace",String.prototype.replace),Li=RegExp.prototype.exec,Ni=Li,_i=Ge("".charAt),Gi=Ge("".indexOf),ki=Ge("".replace),Fi=Ge("".slice),Vi=(yi=/b*/g,we(Li,vi=/a/,"a"),we(Li,yi,"a"),0!==vi.lastIndex||0!==yi.lastIndex),Pi=Ci.BROKEN_CARET,xi=void 0!==/()??/.exec("")[1];(Vi||xi||Pi||wi||Mi)&&(Ni=function(e){var A,t,i,o,r,n,s,a=this,g=Di(a),c=ni(e),C=g.raw;if(C)return C.lastIndex=a.lastIndex,A=we(Ni,C,c),a.lastIndex=C.lastIndex,A;var u=g.groups,I=Pi&&a.sticky,l=we(si,a),d=a.source,h=0,B=c;if(I&&(l=ki(l,"y",""),-1===Gi(l,"g")&&(l+="g"),B=Fi(c,a.lastIndex),a.lastIndex>0&&(!a.multiline||a.multiline&&"\n"!==_i(c,a.lastIndex-1))&&(d="(?: "+d+")",B=" "+B,h++),t=new RegExp("^(?:"+d+")",l)),xi&&(t=new RegExp("^"+d+"$(?!\\s)",l)),Vi&&(i=a.lastIndex),o=we(Li,I?t:a,B),I?o?(o.input=Fi(o.input,h),o[0]=Fi(o[0],h),o.index=a.lastIndex,a.lastIndex+=o[0].length):a.lastIndex=0:Vi&&o&&(a.lastIndex=a.global?o.index+o[0].length:i),xi&&o&&o.length>1&&we(bi,o[0],t,(function(){for(r=1;r<arguments.length-2;r++)void 0===arguments[r]&&(o[r]=void 0)})),o&&u)for(o.groups=n=mi(null),r=0;r<u.length;r++)n[(s=u[r])[0]]=o[s[1]];return o});var Yi=Ni;Xt({target:"RegExp",proto:!0,forced:/./.exec!==Yi},{exec:Yi});var Hi="\t\n\v\f\r \u2028\u2029\ufeff",Ui=Ge("".replace),Oi=RegExp("^["+Hi+"]+"),Ki=RegExp("(^|[^"+Hi+"])["+Hi+"]+$"),Ji=function(e){return function(A){var t=ni(Oe(A));return 1&e&&(t=Ui(t,Oi,"")),2&e&&(t=Ui(t,Ki,"$1")),t}},ji={start:Ji(1),end:Ji(2),trim:Ji(3)}.trim,zi=Ge("".charAt),Zi=Te.parseFloat,Wi=Te.Symbol,Xi=Wi&&Wi.iterator,qi=1/Zi(Hi+"-0")!=-Infinity||Xi&&!ve((function(){Zi(Object(Xi))}))?function(e){var A=ji(ni(e)),t=Zi(A);return 0===t&&"-"===zi(A,0)?-0:t}:Zi;Xt({global:!0,forced:parseFloat!==qi},{parseFloat:qi});var $i=function(e){if("Function"===Ve(e))return Ge(e)},eo=LA("species"),Ao=RegExp.prototype,to=Ge("".charAt),io=Ge("".charCodeAt),oo=Ge("".slice),ro=function(e){return function(A,t){var i,o,r=ni(Oe(A)),n=Rt(t),s=r.length;return n<0||n>=s?e?"":void 0:(i=io(r,n))<55296||i>56319||n+1===s||(o=io(r,n+1))<56320||o>57343?e?to(r,n):i:e?oo(r,n,n+2):o-56320+(i-55296<<10)+65536}},no={codeAt:ro(!1),charAt:ro(!0)}.charAt,so=function(e,A,t){return A+(t?no(e,A).length:1)},ao=TypeError,go=function(e,A){var t=e.exec;if(Ze(t)){var i=we(t,e,A);return null!==i&&JA(i),i}if("RegExp"===Ve(e))return we(Yi,e,A);throw ao("RegExp#exec called on incompatible receiver")};!function(e,A,t,i){var o=LA(e),r=!ve((function(){var A={};return A[o]=function(){return 7},7!==""[e](A)})),n=r&&!ve((function(){var A=!1,t=/a/;return"split"===e&&((t={}).constructor={},t.constructor[eo]=function(){return t},t.flags="",t[o]=/./[o]),t.exec=function(){return A=!0,null},t[o](""),!A}));if(!r||!n||t){var s=$i(/./[o]),a=A(o,""[e],(function(e,A,t,i,o){var n=$i(e),a=A.exec;return a===Yi||a===Ao.exec?r&&!o?{done:!0,value:s(A,t,i)}:{done:!0,value:n(t,A,i)}:{done:!1}}));Tt(String.prototype,e,a[0]),Tt(Ao,o,a[1])}i&&et(Ao[o],"sham",!0)}("match",(function(e,A,t){return[function(A){var t=Oe(this),i=He(A)?void 0:lA(A,e);return i?we(i,A,t):new RegExp(A)[e](ni(t))},function(e){var i=JA(this),o=ni(e),r=t(A,i,o);if(r.done)return r.value;if(!i.global)return go(i,o);var n=i.unicode;i.lastIndex=0;for(var s,a=[],g=0;null!==(s=go(i,o));){var c=ni(s[0]);a[g]=c,""===c&&(i.lastIndex=so(o,Dt(i.lastIndex),n)),g++}return 0===g?null:a}]}));var co=Array.isArray||function(e){return"Array"===Ve(e)},Co=TypeError,uo=function(e){if(e>9007199254740991)throw Co("Maximum allowed index exceeded");return e},Io=function(e,A,t){var i=kA(A);i in e?$A.f(e,i,be(0,t)):e[i]=t},lo=function(){},ho=[],Bo=qe("Reflect","construct"),Eo=/^\s*(?:class|function)\b/,Qo=Ge(Eo.exec),po=!Eo.exec(lo),fo=function(e){if(!Ze(e))return!1;try{return Bo(lo,ho,e),!0}catch(A){return!1}},To=function(e){if(!Ze(e))return!1;switch(oi(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return po||!!Qo(Eo,gt(e))}catch(A){return!0}};To.sham=!0;var vo,yo=!Bo||ve((function(){var e;return fo(fo.call)||!fo(Object)||!fo((function(){e=!0}))||e}))?To:fo,mo=LA("species"),Ro=Array,wo=function(e,A){return new(function(e){var A;return co(e)&&(A=e.constructor,(yo(A)&&(A===Ro||co(A.prototype))||Xe(A)&&null===(A=A[mo]))&&(A=void 0)),void 0===A?Ro:A}(e))(0===A?0:A)},So=LA("species"),Mo=LA("isConcatSpreadable"),Do=rA>=51||!ve((function(){var e=[];return e[Mo]=!1,e.concat()[0]!==e})),bo=function(e){if(!Xe(e))return!1;var A=e[Mo];return void 0!==A?!!A:co(e)};Xt({target:"Array",proto:!0,arity:1,forced:!(Do&&(vo="concat",rA>=51||!ve((function(){var e=[];return(e.constructor={})[So]=function(){return{foo:1}},1!==e[vo](Boolean).foo}))))},{concat:function(e){var A,t,i,o,r,n=TA(this),s=wo(n,0),a=0;for(A=-1,i=arguments.length;A<i;A++)if(bo(r=-1===A?n:arguments[A]))for(o=bt(r),uo(a+o),t=0;t<o;t++,a++)t in r&&Io(s,a,r[t]);else uo(a+1),Io(s,a++,r);return s.length=a,s}});var Lo=window.navigator&&window.navigator.userAgent||"",No=/AppleWebKit\/([\d.]+)/i.exec(Lo);No&&parseFloat(No.pop());var _o=/iPad/i.test(Lo),Go=/iPhone/i.test(Lo)&&!_o,ko=/iPod/i.test(Lo),Fo=Go||_o||ko,Vo=/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i.test(Lo);Fo&&function(){var e=Lo.match(/OS (\d+)_/i);e&&e[1]&&e[1]}();var Po=/Android/i.test(Lo);Po&&function(){var e=Lo.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!e)return null;var A=e[1]&&parseFloat(e[1]),t=e[2]&&parseFloat(e[2]);A&&t&&parseFloat("".concat(e[1],".").concat(e[2]))}();Po&&/webkit/i.test(Lo),/Firefox/i.test(Lo)&&function(){var e=Lo.match(/Firefox\/(\d+)/);e&&e[1]&&parseFloat(e[1])}();var xo=/Edge\//i.test(Lo);xo&&function(){var e=Lo.match(/Edge\/(\d+)/i);if(e&&e[1])e[1]}();var Yo=/Edg\//i.test(Lo);Yo&&function(){var e=Lo.match(/Edg\/(\d+)/);e&&e[1]&&parseFloat(e[1])}();var Ho=/SogouMobileBrowser\//i.test(Lo);Ho&&function(){var e=Lo.match(/SogouMobileBrowser\/(\d+)/);e&&e[1]&&parseFloat(e[1])}();var Uo=/MetaSr\s/i.test(Lo);Uo&&function(){var e=Lo.match(/MetaSr(\s\d+(\.\d+)+)/);e&&e[1]&&parseFloat(e[1])}();var Oo=/TBS\/\d+/i.test(Lo);Oo&&function(){var e=Lo.match(/TBS\/(\d+)/i);if(e&&e[1])e[1]}();var Ko=/XWEB\/\d+/i.test(Lo);Ko&&function(){var e=Lo.match(/XWEB\/(\d+)/i);if(e&&e[1])e[1]}(),/MSIE\s8\.0/.test(Lo),/MSIE\/\d+/i.test(Lo)&&function(){var e=/MSIE\s(\d+)\.\d/.exec(Lo),A=e&&parseFloat(e[1]);!A&&/Trident\/7.0/i.test(Lo)&&/rv:11.0/.test(Lo)&&(A=11)}(),/(micromessenger|webbrowser)/i.test(Lo)&&function(){var e=Lo.match(/MicroMessenger\/(\d+)/i);if(e&&e[1])e[1]}();var Jo=!Oo&&/MQQBrowser\/\d+/i.test(Lo)&&/COVC\/\d+/i.test(Lo),jo=!Oo&&/MQQBrowser\/\d+/i.test(Lo)&&!/COVC\/\d+/i.test(Lo);(jo||Jo)&&function(){var e=Lo.match(/ MQQBrowser\/([\d.]+)/);e&&e[1]&&e[1]}();var zo=!Oo&&/ QQBrowser\/\d+/i.test(Lo);zo&&function(){var e=Lo.match(/ QQBrowser\/([\d.]+)/);e&&e[1]&&e[1]}();var Zo=!Oo&&/QQBrowserLite\/\d+/i.test(Lo);Zo&&function(){var e=Lo.match(/QQBrowserLite\/([\d.]+)/);e&&e[1]&&e[1]}();var Wo=!Oo&&/MQBHD\/\d+/i.test(Lo);Wo&&function(){var e=Lo.match(/MQBHD\/([\d.]+)/);e&&e[1]&&e[1]}(),/Windows/i.test(Lo),!Fo&&/MAC OS X/i.test(Lo),!Po&&/Linux/i.test(Lo),/MicroMessenger/i.test(Lo),/UCBrowser/i.test(Lo),/Electron/i.test(Lo);var Xo=/MiuiBrowser/i.test(Lo);Xo&&function(){var e=Lo.match(/MiuiBrowser\/([\d.]+)/);e&&e[1]&&e[1]}();var qo=/HuaweiBrowser/i.test(Lo);/Huawei/i.test(Lo),qo&&function(){var e=Lo.match(/HuaweiBrowser\/([\d.]+)/);e&&e[1]&&e[1]}();var $o=/SamsungBrowser/i.test(Lo);$o&&function(){var e=Lo.match(/SamsungBrowser\/([\d.]+)/);e&&e[1]&&e[1]}();var er=/HeyTapBrowser/i.test(Lo);er&&function(){var e=Lo.match(/HeyTapBrowser\/([\d.]+)/);e&&e[1]&&e[1]}();var Ar=/VivoBrowser/i.test(Lo);Ar&&function(){var e=Lo.match(/VivoBrowser\/([\d.]+)/);e&&e[1]&&e[1]}();var tr,ir,or,rr=/Chrome/i.test(Lo),nr=!xo&&!Uo&&!Ho&&!Oo&&!Ko&&!Yo&&!zo&&!Xo&&!qo&&!$o&&!er&&!Ar&&/Chrome/i.test(Lo);nr&&function(){var e=Lo.match(/Chrome\/(\d+)/);e&&e[1]&&parseFloat(e[1])}(),nr&&function(){var e=Lo.match(/Chrome\/([\d.]+)/);e&&e[1]&&e[1]}(),!rr&&!jo&&!Jo&&!Zo&&!Wo&&/Safari/i.test(Lo)&&function(){var e=Lo.match(/Version\/([\d.]+)/);e&&e[1]&&e[1]}(),"file:"===location.protocol||"localhost"===location.hostname||/^\d+\.\d+\.\d+\.\d+$/.test(location.hostname),function(e){e.LIVE="live",e.RTC="rtc"}(tr||(tr={})),function(e){e.CONTAIN="contain",e.COVER="cover",e.FILL="fill"}(ir||(ir={})),function(e){e[e.exitRoom=0]="exitRoom",e[e.banned=1]="banned",e[e.roomDisband=2]="roomDisband"}(or||(or={}));var sr=-3340,ar=-1301,gr=-1314,cr=-1315,Cr=-1316,ur=-1302,Ir=-1317,lr=-1318,dr=-1319,hr=-70252,Br={code:-1001,message:"参数错误, 请检查参数格式、是否非空等"},Er={code:-1005,message:"not supported"},Qr="2.9.4-beta.21",pr=Object.defineProperty,fr=(e,A,t)=>((e,A,t)=>A in e?pr(e,A,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[A]=t)(e,"symbol"!=typeof A?A+"":A,t);var Tr,vr=(Tr="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0,function(e={}){var A,t,i=e;i.ready=new Promise(((e,i)=>{A=e,t=i}));var o=Object.assign({},i),r="";"undefined"!=typeof document&&document.currentScript&&(r=document.currentScript.src),Tr&&(r=Tr),r=0!==r.indexOf("blob:")?r.substr(0,r.replace(/[?#].*/,"").lastIndexOf("/")+1):"";var n,s=i.print||console.log.bind(console),a=i.printErr||console.error.bind(console);Object.assign(i,o),o=null,i.arguments&&i.arguments,i.thisProgram&&i.thisProgram,i.quit&&i.quit,i.wasmBinary&&(n=i.wasmBinary),"object"!=typeof WebAssembly&&v("no native wasm support detected");var g,c,C,u,I,l,d,h,B=!1,E=[],Q=[],p=[],f=0,T=null;function v(e){i.onAbort&&i.onAbort(e),a(e="Aborted("+e+")"),B=!0,e+=". Build with -sASSERTIONS for more info.";var A=new WebAssembly.RuntimeError(e);throw t(A),A}var y,m,R="data:application/octet-stream;base64,",w=e=>e.startsWith(R);function S(e){return Promise.resolve().then((()=>function(e){if(e==y&&n)return new Uint8Array(n);var A=function(e){if(w(e))return function(e){for(var A=atob(e),t=new Uint8Array(A.length),i=0;i<A.length;++i)t[i]=A.charCodeAt(i);return t}(e.slice(R.length))}(e);if(A)return A;throw"both async and sync fetching of the wasm failed"}(e)))}w(y="data:application/octet-stream;base64,AGFzbQEAAAAB8gEfYAJ/fwBgAX8Bf2ADf39/AX9gAX8AYAN/f38AYAJ/fwF/YAR/f39/AGAAAGAFf39/f38AYAZ/f39/f38AYAR/f39/AX9gB39/f39/f38AYAN/fn8BfmAFf3x8fHwAYAZ/fHx8fHwAYAV/f39/fwF8YAl/f39/f39/f38AYAN/f38BfGAKf39/f39/f39/fwBgDX9/f39/f39/f39/f38AYAJ/fABgAn5/AX9gAn99AGABfAF8YAZ/fH9/f38Bf2AGf39/f39/AX9gAnx/AXxgBH9/fn4AYAZ/f3x8fHwAYAd/f3x8fHx8AGAFf39/f38BfwKXARkBYQFhAAQBYQFiAAMBYQFjAAMBYQFkAAMBYQFlAA8BYQFmAAIBYQFnAAgBYQFoAAUBYQFpABABYQFqABEBYQFrABIBYQFsAAQBYQFtAAcBYQFuAAoBYQFvAAABYQFwAAQBYQFxAAsBYQFyAAEBYQFzAAQBYQF0AAABYQF1AAYBYQF2AAABYQF3AAQBYQF4AAkBYQF5ABMDZmUDBQIBBAIIBRQCBAUFAgcBFQEAAwEWAAQABAUFBRcHBwMBBgUEBQMAAwIECwQCAQUYBgEZChoBAwcDBhsHAQEBCQkICAQCBgYCAgAAAgEABQwBAgMBAAMAAwEcDR0OAAAAAAAeAAQFAXABNzcFBgEBgAKAAgYNAn8BQaDiBAt/AUEACwchCAF6AgABQQA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EAgACEHDAELA0AgAUEBayIBIAAgAEIKgCIHQgp+fadBMHI6AAAgAEL/////nwFWIQUgByEAIAUNAAsLIAenIgIEQANAIAFBAWsiASACIAJBCm4iA0EKbGtBMHI6AAAgAkEJSyEGIAMhAiAGDQALCyABC3oBA38CQAJAIAAiAUEDcUUNACABLQAARQRAQQAPCwNAIAFBAWoiAUEDcUUNASABLQAADQALDAELA0AgASICQQRqIQEgAigCACIDQX9zIANBgYKECGtxQYCBgoR4cUUNAAsDQCACIgFBAWohAiABLQAADQALCyABIABrC78EAQl/AkACfyAALQALQQd2BEAgACgCBAwBCyAALQALQf8AcQsiAiABSQRAIwBBEGsiBiQAIAEgAmsiBQRAIAUgAC0AC0EHdgR/IAAoAghB/////wdxQQFrBUEKCyICAn8gAC0AC0EHdgRAIAAoAgQMAQsgAC0AC0H/AHELIgFrSwRAIwBBEGsiBCQAAkAgBSACayABaiIDQe////8HIAJrTQRAAn8gAC0AC0EHdgRAIAAoAgAMAQsgAAshByAEQQRqIgggACACQef///8DSQR/IAQgAkEBdDYCDCAEIAIgA2o2AgQjAEEQayIDJAAgCCgCACAEQQxqIgkoAgBJIQogA0EQaiQAIAkgCCAKGygCACIDQQtPBH8gA0EQakFwcSIDIANBAWsiAyADQQtGGwVBCgtBAWoFQe////8HCxAwIAQoAgQhAyAEKAIIGiABBEAgAyAHIAEQIwsgAkEKRwRAIAcQGQsgACADNgIAIAAgACgCCEGAgICAeHEgBCgCCEH/////B3FyNgIIIAAgACgCCEGAgICAeHI2AgggBEEQaiQADAELECcACyAAIAE2AgQLIAECfyAALQALQQd2BEAgACgCAAwBCyAACyICaiAFEEAgACABIAVqIgAQMSAGQQA6AA8gACACaiAGLQAPOgAACyAGQRBqJAAMAQsCfyAALQALQQd2BEAgACgCAAwBCyAACyEEIwBBEGsiAiQAIAAgARAxIAJBADoADyABIARqIAItAA86AAAgAkEQaiQACwsGACAAEBkL0igBDH8jAEEQayIKJAACQAJAAkACQAJAAkACQAJAAkAgAEH0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DGoQCSEDIAIoAgwiAQRAIAEQAQsgACADRAAAAAAAAAAAYjoAOCACQRBqJAALNwEBfyMAQRBrIgIkACACIAEtADg2AgggAEGUzwAgAkEIahAHNgIEIABBlNUANgIAIAJBEGokAAuoAQEFfyAAKAJUIgMoAgAhBSADKAIEIgQgACgCFCAAKAIcIgdrIgYgBCAGSRsiBgRAIAUgByAGECIaIAMgAygCACAGaiIFNgIAIAMgAygCBCAGayIENgIECyAEIAIgAiAESxsiBARAIAUgASAEECIaIAMgAygCACAEaiIFNgIAIAMgAygCBCAEazYCBAsgBUEAOgAAIAAgACgCLCIBNgIcIAAgATYCFCACC5wBAQJ/IwBBEGsiAiQAQcgAEBwhASAAKAIEIgAQAiACIAA2AgggAUGELSACQQhqEAc2AgQgAUGU1QA2AgAgAUEBNgIcIAFBlNUANgIYIAFBATYCFCABQZTVADYCECABQQE2AgwgAUGU1QA2AgggAUEAOgAgIAFBADYCRCABQoCAgIAwNwI8IAFBADsANyABQQA7ACsgAkEQaiQAIAELigUCBn4CfyABIAEoAgBBB2pBeHEiAUEQajYCACAAIQkgASkDACEDIAEpAwghBSMAQSBrIgAkAAJAIAVC////////////AIMiBEKAgICAgIDAgDx9IARCgICAgICAwP/DAH1UBEAgBUIEhiADQjyIhCEEIANC//////////8PgyIDQoGAgICAgICACFoEQCAEQoGAgICAgICAwAB8IQIMAgsgBEKAgICAgICAgEB9IQIgA0KAgICAgICAgAhSDQEgAiAEQgGDfCECDAELIANQIARCgICAgICAwP//AFQgBEKAgICAgIDA//8AURtFBEAgBUIEhiADQjyIhEL/////////A4NCgICAgICAgPz/AIQhAgwBC0KAgICAgICA+P8AIQIgBEL///////+//8MAVg0AQgAhAiAEQjCIpyIBQZH3AEkNACADIQIgBUL///////8/g0KAgICAgIDAAIQiBCEGAkAgAUGB9wBrIghBwABxBEAgAyAIQUBqrYYhBkIAIQIMAQsgCEUNACAGIAitIgeGIAJBwAAgCGutiIQhBiACIAeGIQILIAAgAjcDECAAIAY3Axg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QALIAVBAWoiBUEHRw0ACyMAQRBrIgwkAEHOJRAqIQcCfyAGQYgBaiIFLQALQQd2BEAgBSgCBAwBCyAFLQALQf8AcQshCAJ/An8jAEEQayIJJAAgBkH4AGohAiAHIAhqIgRB7////wdNBEACQCAEQQtJBEAgAkIANwIAIAJBADYCCCACIAItAAtBgAFxIARB/wBxcjoACyACIAItAAtB/wBxOgALDAELIARBC08EfyAEQRBqQXBxIgogCkEBayIKIApBC0YbBUEKC0EBaiIKEBwhCyACIAIoAghBgICAgHhxIApB/////wdxcjYCCCACIAIoAghBgICAgHhyNgIIIAIgCzYCACACIAQ2AgQLIAlBEGokACACDAELECcACyIELQALQQd2BEAgBCgCAAwBCyAECyIEQc4lIAcQIyAEIAdqIgQCfyAFLQALQQd2BEAgBSgCAAwBCyAFCyAIECMgBCAIakEBEEAgDEEQaiQAIA0gAkGoKRAaIgIpAgA3AgAgDSACKAIINgIIIAJCADcCACACQQA2AgggBiwAgwFBAEgEQCAGKAJ4EBkLIAYsAJMBQQBIBEAgBigCiAEQGQsgBigClAEiBQRAIAYoApgBIgQgBSICRwRAA0AgBEEMayICKAIAIgcEQCAEQQhrIAc2AgAgBxAZCyACIgQgBUcNAAsgBigClAEhAgsgBiAFNgKYASACEBkLIAZBoAFqJAAgA0EcaiADKAIoIA0gAy0AMyICwEEASCIFGyADKAIsIAIgBRsQGxogAywAM0EATg0DIAMoAigQGQwDCyADQRxqQYEhEBoaDAILIANBHGpB5CsQGhoMAQsgA0EcakHNKxAaGgsCQAJAIAEoAjAgAS0ANyICIALAIgZBAEgbIgRBAWoiBUHw////B0kEQAJAAkAgBUELTwRAIAVBD3JBAWoiBxAcIQIgAyAFNgIsIAMgAjYCKCADIAdBgICAgHhyNgIwDAELIANBADYCMCADQgA3AyggAyAFOgAzIANBKGohAiAERQ0BCyACIAFBLGoiBSgCACAFIAZBAEgbIAQQMgsgAiAEakEKOwAAIANBHGogAygCKCADQShqIAMtADMiAsBBAEgiBRsgAygCLCACIAUb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ygCLCEEIAEgAjYCDCABIAU2AgggBEUNACAEEAMgA0EANgIsCyADLAALQQBIBEAgAygCABAZCyADQQA2AihBxNQALQAAQQFxRQRAQQFB6C5BABAFIQJBxNQAQQE6AABBwNQAIAI2AgALAn9BwNQAKAIAIAEoAgRB6QkgA0EoakEAEAQiEEQAAAAAAADwQWMgEEQAAAAAAAAAAGZxBEAgEKsMAQtBAAshAiADKAIoIgUEQCAFEAELIAEoAhwiBQRAIAUQAwsgASACNgIcIAFBlNUANgIYIAIQAiADIAI2AiggASgCFCICEAIgAyACNgIwIANBADYCPEHM1AAtAABBAXFFBEBBA0HsLkEAEAUhAkHM1ABBAToAAEHI1AAgAjYCAAtByNQAKAIAIAEoAgRB8AggA0E8aiADQShqEAQaIAMoAjwiAgRAIAIQAQsgASgCHCICEAIgAyACNgIoIAEoAgwiAhACIAMgAjYCMCADQQA2AjxBzNQALQAAQQFxRQRAQQNB7C5BABAFIQJBzNQAQQE6AABByNQAIAI2AgALQcjUACgCACABKAIEQfAIIANBPGogA0EoahAEGiADKAI8IgIEQCACEAELIAEoAhwiAhACIAMgAjYCKCADQQA2AjxBrNQALQAAQQFxRQRAQQJB/C1BABAFIQJBrNQAQQE6AABBqNQAIAI2AgALQajUACgCACABKAIEQc8JIANBPGogA0EoahAEGiADKAI8IgIEQCACEAELIAAgASgCHCIBNgIEIABBlNUANgIAIAEQAiADLAAnQQBIBEAgAygCHBAZCyADQUBrJAAPCxA3AAsQNwALEDcAC9gCAQJ/IwBBEGsiASQAIAAoAhQiAhACIAEgAjYCCCABQQA2AgRBrNQALQAAQQFxRQRAQQJB/C1BABAFIQJBrNQAQQE6AABBqNQAIAI2AgALQajUACgCACAAKAIEQf0IIAFBBGogAUEIahAEGiABKAIEIgIEQCACEAELIAAoAgwiAhACIAEgAjYCCCABQQA2AgRBrNQALQAAQQFxRQRAQQJB/C1BABAFIQJBrNQAQQE6AABBqNQAIAI2AgALQajUACgCACAAKAIEQf0IIAFBBGogAUEIahAEGiABK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AAB4AAAAMCcAAAgoAAB5AAAAMCcAABQoAABmAAAAMCcAACAoAABkAAAAMCcAACwoAAAAAAAATCYAACEAAAAmAAAAIwAAACQAAAAnAAAAKAAAACkAAAAqAAAAAAAAALAoAAAhAAAAKwAAACMAAAAkAAAAJwAAACwAAAAtAAAALgAAAE4xMF9fY3h4YWJpdjEyMF9fc2lfY2xhc3NfdHlwZV9pbmZvRQAAAABoKAAAiCgAAEwmAAAAAAAArCYAACEAAAAvAAAAIwAAACQAAAAwAAAAAAAAAPwoAAAxAAAAMgAAADMAAABTdDlleGNlcHRpb24AAAAAQCgAAOwoAAAAAAAAKCkAABgAAAA0AAAANQAAAFN0MTFsb2dpY19lcnJvcgBoKAAAGCkAAPwoAAAAAAAAXCkAABgAAAA2AAAANQAAAFN0MTJsZW5ndGhfZXJyb3IAAAAAaCgAAEgpAAAoKQAAU3Q5dHlwZV9pbmZvAAAAAEAoAABoKQBBgNMACwnAFAAAAAAAAAUAQZTTAAsBGwBBrNMACw4cAAAAHQAAACgrAAAABABBxNMACwEBAEHU0wALBf////8KAEGY1AALAyAxAQ==")||(m=y,y=i.locateFile?i.locateFile(m,r):r+m);var M=e=>{for(;e.length>0;)e.shift()(i)};function D(e){this.excPtr=e,this.ptr=e-24,this.set_type=function(e){l[this.ptr+4>>2]=e},this.get_type=function(){return l[this.ptr+4>>2]},this.set_destructor=function(e){l[this.ptr+8>>2]=e},this.get_destructor=function(){return l[this.ptr+8>>2]},this.set_caught=function(e){e=e?1:0,g[this.ptr+12|0]=e},this.get_caught=function(){return 0!=g[this.ptr+12|0]},this.set_rethrown=function(e){e=e?1:0,g[this.ptr+13|0]=e},this.get_rethrown=function(){return 0!=g[this.ptr+13|0]},this.init=function(e,A){this.set_adjusted_ptr(0),this.set_type(e),this.set_destructor(A)},this.set_adjusted_ptr=function(e){l[this.ptr+16>>2]=e},this.get_adjusted_ptr=function(){return l[this.ptr+16>>2]},this.get_exception_ptr=function(){if(eA(this.get_type()))return l[this.excPtr>>2];var e=this.get_adjusted_ptr();return 0!==e?e:this.excPtr}}i.noExitRuntime;var b,L,N,_=e=>{for(var A="",t=e;c[t];)A+=b[c[t++]];return A},G={},k={},F={},V=e=>{throw new L(e)},P=e=>{throw new N(e)},x=(e,A,t)=>{function i(A){var i=t(A);i.length!==e.length&&P("Mismatched type converter count");for(var o=0;o<e.length;++o)Y(e[o],i[o])}e.forEach((function(e){F[e]=A}));var o=new Array(A.length),r=[],n=0;A.forEach(((e,A)=>{k.hasOwnProperty(e)?o[A]=k[e]:(r.push(e),G.hasOwnProperty(e)||(G[e]=[]),G[e].push((()=>{o[A]=k[e],++n===r.length&&i(o)})))})),0===r.length&&i(o)};function Y(e,A,t={}){if(!("argPackAdvance"in A))throw new TypeError("registerType registeredInstance requires argPackAdvance");return function(e,A,t={}){var i=A.name;if(e||V(`type "${i}" must have a positive integer typeid pointer`),k.hasOwnProperty(e)){if(t.ignoreDuplicateRegistrations)return;V(`Cannot register type '${i}' twice`)}if(k[e]=A,delete F[e],G.hasOwnProperty(e)){var o=G[e];delete G[e],o.forEach((e=>e()))}}(e,A,t)}var H,U=e=>{V(e.$$.ptrType.registeredClass.name+" instance already deleted")},O=!1,K=e=>{},J=e=>{e.count.value-=1,0===e.count.value&&(e=>{e.smartPtr?e.smartPtrType.rawDestructor(e.smartPtr):e.ptrType.registeredClass.rawDestructor(e.ptr)})(e)},j=(e,A,t)=>{if(A===t)return e;if(void 0===t.baseClass)return null;var i=j(e,A,t.baseClass);return null===i?null:t.downcast(i)},z={},Z=[],W=()=>{for(;Z.length;){var e=Z.pop();e.$$.deleteScheduled=!1,e.delete()}},X={},q=(e,A)=>(A.ptrType&&A.ptr||P("makeClassHandle requires ptr and ptrType"),!!A.smartPtrType!=!!A.smartPtr&&P("Both smartPtrType and smartPtr must be specified"),A.count={value:1},$(Object.create(e,{$$:{value:A}}))),$=e=>"undefined"==typeof FinalizationRegistry?($=e=>e,e):(O=new FinalizationRegistry((e=>{J(e.$$)})),K=e=>O.unregister(e),($=e=>{var A=e.$$;if(A.smartPtr){var t={$$:A};O.register(e,t,e)}return e})(e));function ee(){}var Ae=(e,A)=>Object.defineProperty(A,"name",{value:e}),te=(e,A,t)=>{if(void 0===e[A].overloadTable){var i=e[A];e[A]=function(){return e[A].overloadTable.hasOwnProperty(arguments.length)||V(`Function '${t}' called with an invalid number of arguments (${arguments.length}) - expects one of (${e[A].overloadTable})!`),e[A].overloadTable[arguments.length].apply(this,arguments)},e[A].overloadTable=[],e[A].overloadTable[i.argCount]=i}};function ie(e,A,t,i,o,r,n,s){this.name=e,this.constructor=A,this.instancePrototype=t,this.rawDestructor=i,this.baseClass=o,this.getActualType=r,this.upcast=n,this.downcast=s,this.pureVirtualFunctions=[]}var oe=(e,A,t)=>{for(;A!==t;)A.upcast||V(`Expected null or instance of ${t.name}, got an instance of ${A.name}`),e=A.upcast(e),A=A.baseClass;return e};function re(e,A){if(null===A)return this.isReference&&V(`null is not a valid ${this.name}`),0;A.$$||V(`Cannot pass "${Me(A)}" as a ${this.name}`),A.$$.ptr||V(`Cannot pass deleted object as a pointer of type ${this.name}`);var t=A.$$.ptrType.registeredClass;return oe(A.$$.ptr,t,this.registeredClass)}function ne(e,A){var t;if(null===A)return this.isReference&&V(`null is not a valid ${this.name}`),this.isSmartPointer?(t=this.rawConstructor(),null!==e&&e.push(this.rawDestructor,t),t):0;A.$$||V(`Cannot pass "${Me(A)}" as a ${this.name}`),A.$$.ptr||V(`Cannot pass deleted object as a pointer of type ${this.name}`),!this.isConst&&A.$$.ptrType.isConst&&V(`Cannot convert argument of type ${A.$$.smartPtrType?A.$$.smartPtrType.name:A.$$.ptrType.name} to parameter type ${this.name}`);var i=A.$$.ptrType.registeredClass;if(t=oe(A.$$.ptr,i,this.registeredClass),this.isSmartPointer)switch(void 0===A.$$.smartPtr&&V("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:A.$$.smartPtrType===this?t=A.$$.smartPtr:V(`Cannot convert argument of type ${A.$$.smartPtrType?A.$$.smartPtrType.name:A.$$.ptrType.name} to parameter type ${this.name}`);break;case 1:t=A.$$.smartPtr;break;case 2:if(A.$$.smartPtrType===this)t=A.$$.smartPtr;else{var o=A.clone();t=this.rawShare(t,me.toHandle((()=>o.delete()))),null!==e&&e.push(this.rawDestructor,t)}break;default:V("Unsupporting sharing policy")}return t}function se(e,A){if(null===A)return this.isReference&&V(`null is not a valid ${this.name}`),0;A.$$||V(`Cannot pass "${Me(A)}" as a ${this.name}`),A.$$.ptr||V(`Cannot pass deleted object as a pointer of type ${this.name}`),A.$$.ptrType.isConst&&V(`Cannot convert argument of type ${A.$$.ptrType.name} to parameter type ${this.name}`);var t=A.$$.ptrType.registeredClass;return oe(A.$$.ptr,t,this.registeredClass)}function ae(e){return this.fromWireType(l[e>>2])}function ge(e,A,t,i,o,r,n,s,a,g,c){this.name=e,this.registeredClass=A,this.isReference=t,this.isConst=i,this.isSmartPointer=o,this.pointeeType=r,this.sharingPolicy=n,this.rawGetPointee=s,this.rawConstructor=a,this.rawShare=g,this.rawDestructor=c,o||void 0!==A.baseClass?this.toWireType=ne:i?(this.toWireType=re,this.destructorFunction=null):(this.toWireType=se,this.destructorFunction=null)}var ce,Ce,ue=[],Ie=e=>{var A=ue[e];return A||(e>=ue.length&&(ue.length=e+1),ue[e]=A=ce.get(e)),A},le=(e,A,t)=>e.includes("j")?((e,A,t)=>{var o=i["dynCall_"+e];return t&&t.length?o.apply(null,[A].concat(t)):o.call(null,A)})(e,A,t):Ie(A).apply(null,t),de=(e,A)=>{var t,i,o,r=(e=_(e)).includes("j")?(t=e,i=A,o=[],function(){return o.length=0,Object.assign(o,arguments),le(t,i,o)}):Ie(A);return"function"!=typeof r&&V(`unknown function pointer with signature ${e}: ${A}`),r},he=e=>{var A=qe(e),t=_(A);return $e(A),t},Be=(e,A)=>{var t=[],i={};throw A.forEach((function e(A){i[A]||k[A]||(F[A]?F[A].forEach(e):(t.push(A),i[A]=!0))})),new Ce(`${e}: `+t.map(he).join([", "]))},Ee=(e,A)=>{for(var t=[],i=0;i<e;i++)t.push(l[A+4*i>>2]);return t},Qe=e=>{for(;e.length;){var A=e.pop();e.pop()(A)}};function pe(e,A,t,i,o,r){var n=A.length;n<2&&V("argTypes array size mismatch! Must at least get return value and 'this' types!");for(var s=null!==A[1]&&null!==t,a=!1,g=1;g<A.length;++g)if(null!==A[g]&&void 0===A[g].destructorFunction){a=!0;break}var c="void"!==A[0].name,C=n-2,u=new Array(C),I=[],l=[];return Ae(e,(function(){var t;arguments.length!==C&&V(`function ${e} called with ${arguments.length} arguments, expected ${C}`),l.length=0,I.length=s?2:1,I[0]=o,s&&(t=A[1].toWireType(l,this),I[1]=t);for(var r=0;r<C;++r)u[r]=A[r+2].toWireType(l,arguments[r]),I.push(u[r]);return function(e){if(a)Qe(l);else for(var i=s?1:2;i<A.length;i++){var o=1===i?t:u[i-2];null!==A[i].destructorFunction&&A[i].destructorFunction(o)}if(c)return A[0].fromWireType(e)}(i.apply(null,I))}))}var fe=(e,A,t)=>(e instanceof Object||V(`${t} with invalid "this": ${e}`),e instanceof A.registeredClass.constructor||V(`${t} incompatible with "this" of type ${e.constructor.name}`),e.$$.ptr||V(`cannot call emscripten binding method ${t} on deleted object`),oe(e.$$.ptr,e.$$.ptrType.registeredClass,A.registeredClass));function Te(){this.allocated=[void 0],this.freelist=[]}var ve=new Te,ye=e=>{e>=ve.reserved&&0==--ve.get(e).refcount&&ve.free(e)},me={toValue:e=>(e||V("Cannot use deleted val. handle = "+e),ve.get(e).value),toHandle:e=>{switch(e){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:return ve.allocate({refcount:1,value:e})}}};function Re(e){return this.fromWireType(I[e>>2])}var we,Se,Me=e=>{if(null===e)return"null";var A=typeof e;return"object"===A||"array"===A||"function"===A?e.toString():""+e},De=(e,A)=>{switch(A){case 4:return function(e){return this.fromWireType(d[e>>2])};case 8:return function(e){return this.fromWireType(h[e>>3])};default:throw new TypeError(`invalid float width (${A}): ${e}`)}},be=(e,A,t)=>{switch(A){case 1:return t?e=>g[0|e]:e=>c[0|e];case 2:return t?e=>C[e>>1]:e=>u[e>>1];case 4:return t?e=>I[e>>2]:e=>l[e>>2];default:throw new TypeError(`invalid integer width (${A}): ${e}`)}},Le="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,Ne=(e,A,t)=>{for(var i=A+t,o=A;e[o]&&!(o>=i);)++o;if(o-A>16&&e.buffer&&Le)return Le.decode(e.subarray(A,o));for(var r="";A<o;){var n=e[A++];if(128&n){var s=63&e[A++];if(192!=(224&n)){var a=63&e[A++];if((n=224==(240&n)?(15&n)<<12|s<<6|a:(7&n)<<18|s<<12|a<<6|63&e[A++])<65536)r+=String.fromCharCode(n);else{var g=n-65536;r+=String.fromCharCode(55296|g>>10,56320|1023&g)}}else r+=String.fromCharCode((31&n)<<6|s)}else r+=String.fromCharCode(n)}return r},_e=(e,A)=>e?Ne(c,e,A):"",Ge="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0,ke=(e,A)=>{for(var t=e,i=t>>1,o=i+A/2;!(i>=o)&&u[i];)++i;if((t=i<<1)-e>32&&Ge)return Ge.decode(c.subarray(e,t));for(var r="",n=0;!(n>=A/2);++n){var s=C[e+2*n>>1];if(0==s)break;r+=String.fromCharCode(s)}return r},Fe=(e,A,t)=>{if(void 0===t&&(t=2147483647),t<2)return 0;for(var i=A,o=(t-=2)<2*e.length?t/2:e.length,r=0;r<o;++r){var n=e.charCodeAt(r);C[A>>1]=n,A+=2}return C[A>>1]=0,A-i},Ve=e=>2*e.length,Pe=(e,A)=>{for(var t=0,i="";!(t>=A/4);){var o=I[e+4*t>>2];if(0==o)break;if(++t,o>=65536){var r=o-65536;i+=String.fromCharCode(55296|r>>10,56320|1023&r)}else i+=String.fromCharCode(o)}return i},xe=(e,A,t)=>{if(void 0===t&&(t=2147483647),t<4)return 0;for(var i=A,o=i+t-4,r=0;r<e.length;++r){var n=e.charCodeAt(r);if(n>=55296&&n<=57343&&(n=65536+((1023&n)<<10)|1023&e.charCodeAt(++r)),I[A>>2]=n,(A+=4)+4>o)break}return I[A>>2]=0,A-i},Ye=e=>{for(var A=0,t=0;t<e.length;++t){var i=e.charCodeAt(t);i>=55296&&i<=57343&&++t,A+=4}return A},He=(e,A)=>{var t=k[e];return void 0===t&&V(A+" has unknown type "+he(e)),t},Ue=(e,A,t)=>{var i=[],o=e.toWireType(i,t);return i.length&&(l[A>>2]=me.toHandle(i)),o},Oe={},Ke=[],Je=Reflect.construct,je=[null,[],[]];(()=>{for(var e=new Array(256),A=0;A<256;++A)e[A]=String.fromCharCode(A);b=e})(),L=i.BindingError=class extends Error{constructor(e){super(e),this.name="BindingError"}},N=i.InternalError=class extends Error{constructor(e){super(e),this.name="InternalError"}},Object.assign(ee.prototype,{isAliasOf(e){if(!(this instanceof ee))return!1;if(!(e instanceof ee))return!1;var A=this.$$.ptrType.registeredClass,t=this.$$.ptr;e.$$=e.$$;for(var i=e.$$.ptrType.registeredClass,o=e.$$.ptr;A.baseClass;)t=A.upcast(t),A=A.baseClass;for(;i.baseClass;)o=i.upcast(o),i=i.baseClass;return A===i&&t===o},clone(){if(this.$$.ptr||U(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var e,A=$(Object.create(Object.getPrototypeOf(this),{$$:{value:(e=this.$$,{count:e.count,deleteScheduled:e.deleteScheduled,preservePointerOnDelete:e.preservePointerOnDelete,ptr:e.ptr,ptrType:e.ptrType,smartPtr:e.smartPtr,smartPtrType:e.smartPtrType})}}));return A.$$.count.value+=1,A.$$.deleteScheduled=!1,A},delete(){this.$$.ptr||U(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&V("Object already scheduled for deletion"),K(this),J(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)},isDeleted(){return!this.$$.ptr},deleteLater(){return this.$$.ptr||U(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&V("Object already scheduled for deletion"),Z.push(this),1===Z.length&&H&&H(W),this.$$.deleteScheduled=!0,this}}),i.getInheritedInstanceCount=()=>Object.keys(X).length,i.getLiveInheritedInstances=()=>{var e=[];for(var A in X)X.hasOwnProperty(A)&&e.push(X[A]);return e},i.flushPendingDeletes=W,i.setDelayFunction=e=>{H=e,Z.length&&H&&H(W)},Object.assign(ge.prototype,{getPointee(e){return this.rawGetPointee&&(e=this.rawGetPointee(e)),e},destructor(e){this.rawDestructor&&this.rawDestructor(e)},argPackAdvance:8,readValueFromPointer:ae,deleteObject(e){null!==e&&e.delete()},fromWireType:function(e){var A=this.getPointee(e);if(!A)return this.destructor(e),null;var t=((e,A)=>(A=((e,A)=>{for(void 0===A&&V("ptr should not be undefined");e.baseClass;)A=e.upcast(A),e=e.baseClass;return A})(e,A),X[A]))(this.registeredClass,A);if(void 0!==t){if(0===t.$$.count.value)return t.$$.ptr=A,t.$$.smartPtr=e,t.clone();var i=t.clone();return this.destructor(e),i}function o(){return this.isSmartPointer?q(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:A,smartPtrType:this,smartPtr:e}):q(this.registeredClass.instancePrototype,{ptrType:this,ptr:e})}var r,n=this.registeredClass.getActualType(A),s=z[n];if(!s)return o.call(this);r=this.isConst?s.constPointerType:s.pointerType;var a=j(A,this.registeredClass,r.registeredClass);return null===a?o.call(this):this.isSmartPointer?q(r.registeredClass.instancePrototype,{ptrType:r,ptr:a,smartPtrType:this,smartPtr:e}):q(r.registeredClass.instancePrototype,{ptrType:r,ptr:a})}}),Ce=i.UnboundTypeError=(we=Error,(Se=Ae("UnboundTypeError",(function(e){this.name="UnboundTypeError",this.message=e;var A=new Error(e).stack;void 0!==A&&(this.stack=this.toString()+"\n"+A.replace(/^Error(:[^\n]*)?\n/,""))}))).prototype=Object.create(we.prototype),Se.prototype.constructor=Se,Se.prototype.toString=function(){return void 0===this.message?this.name:`${this.name}: ${this.message}`},Se),Object.assign(Te.prototype,{get(e){return this.allocated[e]},has(e){return void 0!==this.allocated[e]},allocate(e){var A=this.freelist.pop()||this.allocated.length;return this.allocated[A]=e,A},free(e){this.allocated[e]=void 0,this.freelist.push(e)}}),ve.allocated.push({value:void 0},{value:null},{value:!0},{value:!1}),ve.reserved=ve.allocated.length,i.count_emval_handles=()=>{for(var e=0,A=ve.reserved;A<ve.allocated.length;++A)void 0!==ve.allocated[A]&&++e;return e};var ze,Ze={w:(e,A,t)=>{throw new D(e).init(A,t),e},q:(e,A,t,i,o)=>{},u:(e,A,t,i)=>{Y(e,{name:A=_(A),fromWireType:function(e){return!!e},toWireType:function(e,A){return A?t:i},argPackAdvance:8,readValueFromPointer:function(e){return this.fromWireType(c[e])},destructorFunction:null})},y:(e,A,t,o,r,n,s,a,g,c,C,u,I)=>{C=_(C),n=de(r,n),a&&(a=de(s,a)),c&&(c=de(g,c)),I=de(u,I);var l=(e=>{if(void 0===e)return"_unknown";var A=(e=e.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return A>=48&&A<=57?`_${e}`:e})(C);((e,A,t)=>{i.hasOwnProperty(e)?(V(`Cannot register public name '${e}' twice`),te(i,e,e),i.hasOwnProperty(t)&&V(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`),i[e].overloadTable[t]=A):i[e]=A})(l,(function(){Be(`Cannot construct ${C} due to unbound types`,[o])})),x([e,A,t],o?[o]:[],(function(A){var t,r;A=A[0],r=o?(t=A.registeredClass).instancePrototype:ee.prototype;var s=Ae(C,(function(){if(Object.getPrototypeOf(this)!==g)throw new L("Use 'new' to construct "+C);if(void 0===u.constructor_body)throw new L(C+" has no accessible constructor");var e=u.constructor_body[arguments.length];if(void 0===e)throw new L(`Tried to invoke ctor of ${C} with invalid number of parameters (${arguments.length}) - expected (${Object.keys(u.constructor_body).toString()}) parameters instead!`);return e.apply(this,arguments)})),g=Object.create(r,{constructor:{value:s}});s.prototype=g;var u=new ie(C,s,g,I,t,n,a,c);u.baseClass&&(void 0===u.baseClass.__derivedClasses&&(u.baseClass.__derivedClasses=[]),u.baseClass.__derivedClasses.push(u));var d=new ge(C,u,!0,!1,!1),h=new ge(C+"*",u,!1,!1,!1),B=new ge(C+" const*",u,!1,!0,!1);return z[e]={pointerType:h,constPointerType:B},((e,A,t)=>{i.hasOwnProperty(e)||P("Replacing nonexistant public symbol"),i[e].overloadTable,i[e]=A,i[e].argCount=t})(l,s),[d,h,B]}))},x:(e,A,t,i,o,r)=>{var n=Ee(A,t);o=de(i,o),x([],[e],(function(e){var t=`constructor ${(e=e[0]).name}`;if(void 0===e.registeredClass.constructor_body&&(e.registeredClass.constructor_body=[]),void 0!==e.registeredClass.constructor_body[A-1])throw new L(`Cannot register multiple constructors with identical number of parameters (${A-1}) for class '${e.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return e.registeredClass.constructor_body[A-1]=()=>{Be(`Cannot construct ${e.name} due to unbound types`,n)},x([],n,(i=>(i.splice(1,0,null),e.registeredClass.constructor_body[A-1]=pe(t,i,null,o,r),[]))),[]}))},i:(e,A,t,i,o,r,n,s,a)=>{var g=Ee(t,i);A=(e=>{const A=(e=e.trim()).indexOf("(");return-1!==A?e.substr(0,A):e})(A=_(A)),r=de(o,r),x([],[e],(function(e){var i=`${(e=e[0]).name}.${A}`;function o(){Be(`Cannot call ${i} due to unbound types`,g)}A.startsWith("@@")&&(A=Symbol[A.substring(2)]),s&&e.registeredClass.pureVirtualFunctions.push(A);var a=e.registeredClass.instancePrototype,c=a[A];return void 0===c||void 0===c.overloadTable&&c.className!==e.name&&c.argCount===t-2?(o.argCount=t-2,o.className=e.name,a[A]=o):(te(a,A,i),a[A].overloadTable[t-2]=o),x([],g,(function(o){var s=pe(i,o,e,r,n);return void 0===a[A].overloadTable?(s.argCount=t-2,a[A]=s):a[A].overloadTable[t-2]=s,[]})),[]}))},k:(e,A,t,i,o,r,n,s,a,g)=>{A=_(A),o=de(i,o),x([],[e],(function(e){var i=`${(e=e[0]).name}.${A}`,c={get(){Be(`Cannot access ${i} due to unbound types`,[t,n])},enumerable:!0,configurable:!0};return c.set=a?()=>Be(`Cannot access ${i} due to unbound types`,[t,n]):e=>V(i+" is a read-only property"),Object.defineProperty(e.registeredClass.instancePrototype,A,c),x([],a?[t,n]:[t],(function(t){var n=t[0],c={get(){var A=fe(this,e,i+" getter");return n.fromWireType(o(r,A))},enumerable:!0};if(a){a=de(s,a);var C=t[1];c.set=function(A){var t=fe(this,e,i+" setter"),o=[];a(g,t,C.toWireType(o,A)),Qe(o)}}return Object.defineProperty(e.registeredClass.instancePrototype,A,c),[]})),[]}))},t:(e,A)=>{Y(e,{name:A=_(A),fromWireType:e=>{var A=me.toValue(e);return ye(e),A},toWireType:(e,A)=>me.toHandle(A),argPackAdvance:8,readValueFromPointer:Re,destructorFunction:null})},p:(e,A,t)=>{Y(e,{name:A=_(A),fromWireType:e=>e,toWireType:(e,A)=>A,argPackAdvance:8,readValueFromPointer:De(A,t),destructorFunction:null})},g:(e,A,t,i,o)=>{A=_(A);var r=e=>e;if(0===i){var n=32-8*t;r=e=>e<<n>>>n}var s=A.includes("unsigned");Y(e,{name:A,fromWireType:r,toWireType:s?function(e,A){return this.name,A>>>0}:function(e,A){return this.name,A},argPackAdvance:8,readValueFromPointer:be(A,t,0!==i),destructorFunction:null})},a:(e,A,t)=>{var i=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][A];function o(e){var A=l[e>>2],t=l[e+4>>2];return new i(g.buffer,t,A)}Y(e,{name:t=_(t),fromWireType:o,argPackAdvance:8,readValueFromPointer:o},{ignoreDuplicateRegistrations:!0})},o:(e,A)=>{var t="std::string"===(A=_(A));Y(e,{name:A,fromWireType(e){var A,i=l[e>>2],o=e+4;if(t)for(var r=o,n=0;n<=i;++n){var s=o+n;if(n==i||0==c[s]){var a=_e(r,s-r);void 0===A?A=a:(A+=String.fromCharCode(0),A+=a),r=s+1}}else{var g=new Array(i);for(n=0;n<i;++n)g[n]=String.fromCharCode(c[o+n]);A=g.join("")}return $e(e),A},toWireType(e,A){var i;A instanceof ArrayBuffer&&(A=new Uint8Array(A));var o="string"==typeof A;o||A instanceof Uint8Array||A instanceof Uint8ClampedArray||A instanceof Int8Array||V("Cannot pass non-string to std::string"),i=t&&o?(e=>{for(var A=0,t=0;t<e.length;++t){var i=e.charCodeAt(t);i<=127?A++:i<=2047?A+=2:i>=55296&&i<=57343?(A+=4,++t):A+=3}return A})(A):A.length;var r=Xe(4+i+1),n=r+4;if(l[r>>2]=i,t&&o)((e,A,t,i)=>{if(!(i>0))return 0;for(var o=t+i-1,r=0;r<e.length;++r){var n=e.charCodeAt(r);if(n>=55296&&n<=57343&&(n=65536+((1023&n)<<10)|1023&e.charCodeAt(++r)),n<=127){if(t>=o)break;A[t++]=n}else if(n<=2047){if(t+1>=o)break;A[t++]=192|n>>6,A[t++]=128|63&n}else if(n<=65535){if(t+2>=o)break;A[t++]=224|n>>12,A[t++]=128|n>>6&63,A[t++]=128|63&n}else{if(t+3>=o)break;A[t++]=240|n>>18,A[t++]=128|n>>12&63,A[t++]=128|n>>6&63,A[t++]=128|63&n}}A[t]=0})(A,c,n,i+1);else if(o)for(var s=0;s<i;++s){var a=A.charCodeAt(s);a>255&&($e(n),V("String has UTF-16 code units that do not fit in 8 bits")),c[n+s]=a}else for(s=0;s<i;++s)c[n+s]=A[s];return null!==e&&e.push($e,r),r},argPackAdvance:8,readValueFromPointer:ae,destructorFunction(e){$e(e)}})},l:(e,A,t)=>{var i,o,r,n,s;t=_(t),2===A?(i=ke,o=Fe,n=Ve,r=()=>u,s=1):4===A&&(i=Pe,o=xe,n=Ye,r=()=>l,s=2),Y(e,{name:t,fromWireType:e=>{for(var t,o=l[e>>2],n=r(),a=e+4,g=0;g<=o;++g){var c=e+4+g*A;if(g==o||0==n[c>>s]){var C=i(a,c-a);void 0===t?t=C:(t+=String.fromCharCode(0),t+=C),a=c+A}}return $e(e),t},toWireType:(e,i)=>{"string"!=typeof i&&V(`Cannot pass non-string to C++ string type ${t}`);var r=n(i),a=Xe(4+r+A);return l[a>>2]=r>>s,o(i,a+4,r+A),null!==e&&e.push($e,a),a},argPackAdvance:8,readValueFromPointer:Re,destructorFunction(e){$e(e)}})},v:(e,A)=>{Y(e,{isVoid:!0,name:A=_(A),argPackAdvance:0,fromWireType:()=>{},toWireType:(e,A)=>{}})},j:(e,A,t)=>(e=me.toValue(e),A=He(A,"emval::as"),Ue(A,t,e)),e:(e,A,t,i,o)=>{var r,n;return(e=Ke[e])(A=me.toValue(A),A[t=void 0===(n=Oe[r=t])?_(r):n],i,o)},d:ye,f:(e,A,t)=>{var i=((e,A)=>{for(var t=new Array(e),i=0;i<e;++i)t[i]=He(l[A+4*i>>2],"parameter "+i);return t})(e,A),o=i.shift();e--;var r,n,s=new Array(e),a=`methodCaller<(${i.map((e=>e.name)).join(", ")}) => ${o.name}>`;return r=Ae(a,((A,r,n,a)=>{for(var g=0,c=0;c<e;++c)s[c]=i[c].readValueFromPointer(a+g),g+=i[c].argPackAdvance;var C=1===t?Je(r,s):r.apply(A,s);for(c=0;c<e;++c)i[c].deleteObject&&i[c].deleteObject(s[c]);return Ue(o,n,C)})),n=Ke.length,Ke.push(r),n},c:e=>{e>4&&(ve.get(e).refcount+=1)},b:e=>{var A=me.toValue(e);Qe(A),ye(e)},h:(e,A)=>{var t=(e=He(e,"_emval_take_value")).readValueFromPointer(A);return me.toHandle(t)},m:()=>{v("")},s:(e,A,t)=>c.copyWithin(e,A,A+t),r:e=>{c.length,v("OOM")},n:(e,A,t,i)=>{for(var o,r,n,g=0,C=0;C<t;C++){var u=l[A>>2],I=l[A+4>>2];A+=8;for(var d=0;d<I;d++)o=e,r=c[u+d],n=void 0,n=je[o],0===r||10===r?((1===o?s:a)(Ne(n,0)),n.length=0):n.push(r);g+=I}return l[i>>2]=g,0}},We=function(){var e={a:Ze};function A(e,A){var t,o;return We=e.exports,t=We.z.buffer,i.HEAP8=g=new Int8Array(t),i.HEAP16=C=new Int16Array(t),i.HEAPU8=c=new Uint8Array(t),i.HEAPU16=u=new Uint16Array(t),i.HEAP32=I=new Int32Array(t),i.HEAPU32=l=new Uint32Array(t),i.HEAPF32=d=new Float32Array(t),i.HEAPF64=h=new Float64Array(t),ce=We.C,o=We.A,Q.unshift(o),function(){if(f--,i.monitorRunDependencies&&i.monitorRunDependencies(f),0==f&&T){var e=T;T=null,e()}}(),We}if(f++,i.monitorRunDependencies&&i.monitorRunDependencies(f),i.instantiateWasm)try{return i.instantiateWasm(e,A)}catch(e){a(`Module.instantiateWasm callback failed with error: ${e}`),t(e)}return function(e,A,t,i){return function(e,A,t){return S(e).then((e=>WebAssembly.instantiate(e,A))).then((e=>e)).then(t,(e=>{a(`failed to asynchronously prepare wasm: ${e}`),v(e)}))}(A,t,i)}(0,y,e,(function(e){A(e.instance)})).catch(t),{}}(),Xe=e=>(Xe=We.B)(e),qe=e=>(qe=We.D)(e),$e=e=>($e=We.E)(e),eA=e=>(eA=We.F)(e);function AA(){function e(){ze||(ze=!0,i.calledRun=!0,B||(M(Q),A(i),i.onRuntimeInitialized&&i.onRuntimeInitialized(),function(){if(i.postRun)for("function"==typeof i.postRun&&(i.postRun=[i.postRun]);i.postRun.length;)e=i.postRun.shift(),p.unshift(e);var e;M(p)}()))}f>0||(function(){if(i.preRun)for("function"==typeof i.preRun&&(i.preRun=[i.preRun]);i.preRun.length;)e=i.preRun.shift(),E.unshift(e);var e;M(E)}(),f>0||(i.setStatus?(i.setStatus("Running..."),setTimeout((function(){setTimeout((function(){i.setStatus("")}),1),e()}),1)):e()))}if(i.dynCall_jiji=(e,A,t,o,r)=>(i.dynCall_jiji=We.G)(e,A,t,o,r),i._vertexShaderSource=10624,T=function e(){ze||AA(),ze||(T=e)},i.preInit)for("function"==typeof i.preInit&&(i.preInit=[i.preInit]);i.preInit.length>0;)i.preInit.pop()();return AA(),e.ready}),yr=vr,mr=0,Rr=class e{constructor(e){this.core=e,fr(this,"seq"),fr(this,"_core"),fr(this,"log"),fr(this,"beautyParams"),mr+=1,this.seq=mr,this._core=e,this.log=e.log.createChild({id:`${this.getAlias()}${mr}`}),this.log.info("created")}getName(){return e.Name}getAlias(){return"bb"}getValidateRule(e){switch(e){case"start":case"update":return function(e){return{name:"BasicBeautyOptions",type:"object",required:!0,allowEmpty:!1,properties:{beauty:{required:!1,type:"number"},brightness:{required:!1,type:"number"},ruddy:{required:!1,type:"number"}},validate(A,t,i,o){const{RtcError:r,ErrorCode:n,ErrorCodeDictionary:s}=e.errorModule;if(e.utils.isOverseaSdkAppId(A.sdkAppId))throw new r({code:n.INVALID_OPERATION,extraCode:s.INVALID_OPERATION,message:"This feature is not yet available in your country or region. If you have any questions, you can go to the community for consultation: https://zhiliao.qq.com/s/cWSPGIIM62CC/c3TPGIIM62CQ"})}}}(this._core);case"stop":return this._core,{name:"StopBasicBeautyOptions",required:!1}}}getGroup(){return"bb"}async start(e){this._core.room.videoManager.Wasm||(this._core.room.videoManager.Wasm=await yr()),this._core.room.videoManager.renderMode="webgl";const A=this._core.utils.isUndefined(e.beauty)?.5:e.beauty,t=this._core.utils.isUndefined(e.brightness)?.5:e.brightness,i=this._core.utils.isUndefined(e.ruddy)?.5:e.ruddy;return this._core.room.videoManager.setBeautyParams({beauty:A,brightness:t,ruddy:i})}async update(e){const A=this._core.utils.isUndefined(e.beauty)?.5:e.beauty,t=this._core.utils.isUndefined(e.brightness)?.5:e.brightness,i=this._core.utils.isUndefined(e.ruddy)?.5:e.ruddy;return this._core.room.videoManager.setBeautyParams({beauty:A,brightness:t,ruddy:i})}async stop(){return this._core.room.videoManager.renderMode="auto",this._core.room.videoManager.stopBeauty()}destroy(){this._core.room.videoManager.renderMode="auto"}};fr(Rr,"Name","BasicBeauty");var wr,Sr,Mr,Dr=Rr;e.TRTCMediaMixingErrorCode=void 0,(wr=e.TRTCMediaMixingErrorCode||(e.TRTCMediaMixingErrorCode={}))[wr.Success=0]="Success",wr[wr.Error=-1]="Error",wr[wr.InvalidParams=-2]="InvalidParams",wr[wr.NotFoundSource=-3]="NotFoundSource",wr[wr.ImageSourceLoadFailed=-4]="ImageSourceLoadFailed",wr[wr.CameraNotAuthorized=-5]="CameraNotAuthorized",wr[wr.CameraIsOccupied=-6]="CameraIsOccupied",wr[wr.CameraDisconnected=-7]="CameraDisconnected",e.TRTCMediaSourceType=void 0,(Sr=e.TRTCMediaSourceType||(e.TRTCMediaSourceType={}))[Sr.kCamera=0]="kCamera",Sr[Sr.kScreen=1]="kScreen",Sr[Sr.kImage=2]="kImage",Sr[Sr.kPhoneMirror=4]="kPhoneMirror",Sr[Sr.kText=5]="kText",Sr[Sr.kVideo=6]="kVideo",e.TRTCMediaMixingEvent=void 0,(Mr=e.TRTCMediaMixingEvent||(e.TRTCMediaMixingEvent={})).onSourceSelected="onSourceSelected",Mr.onSourceMoved="onSourceMoved",Mr.onSourceResized="onSourceResized",Mr.onRightButtonClicked="onRightButtonClicked",Mr.onError="onError",Mr.onSourcePlugged="onSourcePlugged",Mr.onSourceConnected="onSourceConnected",Mr.onSourceDisconnected="onSourceDisconnected",Mr.onSourceUnplugged="onSourceUnplugged",Mr.onMediaSourceSizeChanged="onMediaSourceSizeChanged";var br,Lr=function(){function e(e,A){if(this.logRegion="tc",this.loggerManager=e,A){var t=A.sdkAppId,i=A.userId,o=A.seq;this.seq=o,e&&(this.logger=e.createLogger({id:"".concat(this.logRegion).concat(o),userId:i,sdkAppId:t}))}else this.logger=e;this.logger||(this.logger={debug:function(e){console.debug(e)},info:function(e){console.info(e)},warn:function(e){console.warn(e)},error:function(e){console.error(e)}})}return e.prototype.getLogMessage=function(e){var A=this;return e.map((function(e){return A.getStringifyMessage(e)})).join(" ")},e.prototype.getStringifyMessage=function(e){var A=this;if("object"!=typeof e)return e;if(e instanceof HTMLElement)return"".concat(e.tagName.toLocaleLowerCase(),"#").concat(e.id);if(e instanceof Array){var t=[];return Object.keys(e).forEach((function(i){return t[i]=A.getStringifyMessage(e[i])})),JSON.stringify(t)}if(e instanceof Object){var i={};return Object.keys(e).forEach((function(t){return i[t]=A.getStringifyMessage(e[t])})),JSON.stringify(i)}return e},e.prototype.update=function(e){var A=e.userId,t=e.sdkAppId;this.loggerManager&&this.loggerManager.createLogger&&(this.logger=this.loggerManager.createLogger({id:"".concat(this.logRegion).concat(this.seq),userId:A,sdkAppId:t}))},e.prototype.log=function(){for(var e=[],A=0;A<arguments.length;A++)e[A]=arguments[A];var t=this.getLogMessage(e);this.logger&&this.logger.info&&this.logger.info(t)},e.prototype.debug=function(){for(var e=[],A=0;A<arguments.length;A++)e[A]=arguments[A];var t=this.getLogMessage(e);this.logger.debug(t)},e.prototype.info=function(){for(var e=[],A=0;A<arguments.length;A++)e[A]=arguments[A];var t=this.getLogMessage(e);this.logger&&this.logger.info&&this.logger.info(t)},e.prototype.warn=function(){for(var e=[],A=0;A<arguments.length;A++)e[A]=arguments[A];var t=this.getLogMessage(e);this.logger&&this.logger.warn&&this.logger.warn(t)},e.prototype.error=function(){for(var e=[],A=0;A<arguments.length;A++)e[A]=arguments[A];var t=this.getLogMessage(e);this.logger&&this.logger.error&&this.logger.error(t)},e}(),Nr=new Lr(null),_r=function(){function e(e,A,t){void 0===t&&(t={calcPositionOnly:!1,canExceedContainer:!1}),this.logPrefix="[Movable]",this.movable=null,this.container=null,this.options={calcPositionOnly:!1,canExceedContainer:!1},this.callbacksMap=new Map,this.originLeft=0,this.originTop=0,this.moveStartOfLeft=0,this.moveStartOfTop=0,this.movable=e,this.container=A||document.body,this.options={calcPositionOnly:!!t.calcPositionOnly||!1,canExceedContainer:!!t.canExceedContainer||!1},this.setStyle(),this.onMouseDown=this.onMouseDown.bind(this),this.onMouseMove=this.onMouseMove.bind(this),this.onMouseUp=this.onMouseUp.bind(this),this.onMouseMove5px=this.onMouseMove5px.bind(this),this.onMouseUp5px=this.onMouseUp5px.bind(this),this.movable.addEventListener("mousedown",this.onMouseDown,!1)}return e.prototype.setStyle=function(){this.movable?(this.movable.style.position="absolute",this.movable.style.cursor="move"):Nr.debug("".concat(this.logPrefix,"setStyle 'movable' is null"))},e.prototype.onMouseDown=function(e){if(0===e.button){if(e.preventDefault(),document.defaultView&&this.movable){var A=document.defaultView.getComputedStyle(this.movable);this.originLeft=window.parseInt(A.left),this.originTop=window.parseInt(A.top)}else Nr.debug("".concat(this.logPrefix,"onMouseDown 'movable' is null"));this.moveStartOfLeft=e.screenX,this.moveStartOfTop=e.screenY,document.addEventListener("mousemove",this.onMouseMove5px,!1),document.addEventListener("mouseup",this.onMouseUp5px,!1)}},e.prototype.onMouseMove5px=function(e){var A=e.screenX-(this.moveStartOfLeft||0),t=e.screenY-(this.moveStartOfTop||0);Math.abs(A)>=5||Math.abs(t)>=5?(document.removeEventListener("mousemove",this.onMouseMove5px,!1),document.removeEventListener("mouseup",this.onMouseUp5px,!1),document.addEventListener("mousemove",this.onMouseMove,!1),document.addEventListener("mouseup",this.onMouseUp,!1)):Nr.debug("".concat(this.logPrefix,"on Movable mouse move less than 5px"))},e.prototype.onMouseUp5px=function(){document.removeEventListener("mousemove",this.onMouseMove5px,!1),document.removeEventListener("mouseup",this.onMouseUp5px,!1)},e.prototype.onMouseMove=function(e){if(this.movable&&this.container){var A=e.screenX-this.moveStartOfLeft,t=e.screenY-this.moveStartOfTop,i=this.originLeft+A,o=this.originTop+t,r=this.movable.offsetWidth,n=this.movable.offsetHeight,s=this.container.offsetWidth,a=this.container.offsetHeight;this.options.canExceedContainer||(i<0?i=0:i>s-r&&(i=s-r),o<0?o=0:o>a-n&&(o=a-n)),!this.options.calcPositionOnly&&this.movable&&(this.movable.style.left="".concat(i,"px"),this.movable.style.top="".concat(o,"px")),this.emit("move",i,o)}else Nr.debug("".concat(this.logPrefix,"onMouseMove error:No 'movable' and 'container'."))},e.prototype.onMouseUp=function(){document.removeEventListener("mousemove",this.onMouseMove,!1),document.removeEventListener("mouseup",this.onMouseUp,!1),this.originLeft=0,this.originTop=0,this.moveStartOfLeft=0,this.moveStartOfTop=0},e.prototype.on=function(e,A){var t=this.callbacksMap.get(e);t?t.push(A):this.callbacksMap.set(e,[A])},e.prototype.off=function(e,A){var t=this.callbacksMap.get(e);t&&(t=t.filter((function(e){return e!=A})),this.callbacksMap.set(e,t))},e.prototype.emit=function(e){for(var A=[],t=1;t<arguments.length;t++)A[t-1]=arguments[t];var i=this.callbacksMap.get(e);i&&i.forEach((function(e){try{e.apply(null,A)}catch(t){console.error("[Movable]emit error:",e,t)}}))},e.prototype.destroy=function(){var e;null===(e=this.movable)||void 0===e||e.removeEventListener("mousedown",this.onMouseDown,!1),this.callbacksMap.clear(),this.movable=null,this.container=null},e}();!function(e){e[e.Both=0]="Both",e[e.Corner=1]="Corner",e[e.Edge=2]="Edge"}(br||(br={}));var Gr="trtc-resizable-top-left-anchor",kr="trtc-resizable-top-anchor",Fr="trtc-resizable-top-right-anchor",Vr="trtc-resizable-left-anchor",Pr="trtc-resizable-right-anchor",xr="trtc-resizable-bottom-left-anchor",Yr="trtc-resizable-bottom-anchor",Hr="trtc-resizable-bottom-right-anchor",Ur={resizeAnchor:{position:"absolute",width:"".concat(8,"px"),height:"".concat(8,"px"),border:"1px solid #3D7EFD",backgroundColor:"#FFFFFF"},topLeftAnchor:{top:"-".concat(4,"px"),left:"-".concat(4,"px"),cursor:"nw-resize"},topAnchor:{top:"-".concat(4,"px"),left:"calc(50% - ".concat(4,"px)"),cursor:"n-resize"},topRightAnchor:{top:"-".concat(4,"px"),right:"-".concat(4,"px"),cursor:"ne-resize"},leftAnchor:{top:"calc(50% - ".concat(4,"px)"),left:"-".concat(4,"px"),cursor:"w-resize"},rightAnchor:{top:"calc(50% - ".concat(4,"px)"),right:"-".concat(4,"px"),cursor:"e-resize"},bottomLeftAnchor:{bottom:"-".concat(4,"px"),left:"-".concat(4,"px"),cursor:"sw-resize"},bottomAnchor:{bottom:"-".concat(4,"px"),left:"calc(50% - ".concat(4,"px)"),cursor:"s-resize"},bottomRightAnchor:{bottom:"-".concat(4,"px"),right:"-".concat(4,"px"),cursor:"se-resize"}};function Or(e,A){for(var t in A)e.style[t]=A[t]}var Kr=function(){function e(e,A,t){void 0===t&&(t={keepRatio:!1,stopPropagation:!1,anchorMode:br.Both,canExceedContainer:!1}),this.logPrefix="[Resizable]",this.container=null,this.options={keepRatio:!1,stopPropagation:!1,anchorMode:br.Both,canExceedContainer:!1},this.callbacksMap=new Map,this.topLeftAnchor=null,this.topAnchor=null,this.topRightAnchor=null,this.leftAnchor=null,this.rightAnchor=null,this.bottomLeftAnchor=null,this.bottomAnchor=null,this.bottomRightAnchor=null,this.currentAnchor=null,this.resizeStartLeft=0,this.resizeStartTop=0,this.originLeft=0,this.originTop=0,this.originWidth=0,this.originHeight=0,this.resizeTarget=e,this.container=A||document.body,this.options={keepRatio:!!t.keepRatio||!1,stopPropagation:!!t.stopPropagation||!1,anchorMode:t.anchorMode||br.Both,canExceedContainer:!!t.canExceedContainer||!1},this.mousedown=this.mousedown.bind(this),this.mousemove=this.mousemove.bind(this),this.mouseup=this.mouseup.bind(this),this.currentAnchor=null,this.createResizeAnchor(),this.resizeTarget.classList.add("trtc-resizable"),this.resizeTarget.style.position="absolute",this.resizeTarget.style.border="1px solid #3D7EFD",this.resizeTarget.style.boxSizing="border-box",this.initResizeEvent()}return e.prototype.createResizeAnchor=function(){var e,A,t,i,o,r,n,s,a=document.createElement("div");a.className="trtc-resizable-resize-anchor ".concat(Gr),Or(a,Object.assign({},Ur.resizeAnchor,Ur.topLeftAnchor)),this.topLeftAnchor=a;var g=document.createElement("div");g.className="trtc-resizable-resize-anchor ".concat(kr),Or(g,Object.assign({},Ur.resizeAnchor,Ur.topAnchor)),this.topAnchor=g;var c=document.createElement("div");c.className="trtc-resizable-resize-anchor ".concat(Fr),Or(c,Object.assign({},Ur.resizeAnchor,Ur.topRightAnchor)),this.topRightAnchor=c;var C=document.createElement("div");C.className="trtc-resizable-resize-anchor ".concat(Vr),Or(C,Object.assign({},Ur.resizeAnchor,Ur.leftAnchor)),this.leftAnchor=C;var u=document.createElement("div");u.className="trtc-resizable-resize-anchor ".concat(Pr),Or(u,Object.assign({},Ur.resizeAnchor,Ur.rightAnchor)),this.rightAnchor=u;var I=document.createElement("div");I.className="trtc-resizable-resize-anchor ".concat(xr),Or(I,Object.assign({},Ur.resizeAnchor,Ur.bottomLeftAnchor)),this.bottomLeftAnchor=I;var l=document.createElement("div");l.className="trtc-resizable-resize-anchor ".concat(Yr),Or(l,Object.assign({},Ur.resizeAnchor,Ur.bottomAnchor)),this.bottomAnchor=l;var d=document.createElement("div");d.className="trtc-resizable-resize-anchor ".concat(Hr),Or(d,Object.assign({},Ur.resizeAnchor,Ur.bottomRightAnchor)),this.bottomRightAnchor=d,this.options.anchorMode!==br.Both&&this.options.anchorMode!==br.Edge||(null===(e=this.resizeTarget)||void 0===e||e.appendChild(g),null===(A=this.resizeTarget)||void 0===A||A.appendChild(C),null===(t=this.resizeTarget)||void 0===t||t.appendChild(u),null===(i=this.resizeTarget)||void 0===i||i.appendChild(l)),this.options.anchorMode!==br.Both&&this.options.anchorMode!==br.Corner||(null===(o=this.resizeTarget)||void 0===o||o.appendChild(a),null===(r=this.resizeTarget)||void 0===r||r.appendChild(c),null===(n=this.resizeTarget)||void 0===n||n.appendChild(I),null===(s=this.resizeTarget)||void 0===s||s.appendChild(d))},e.prototype.initResizeEvent=function(){var e,A,t,i,o,r,n,s;null===(e=this.topLeftAnchor)||void 0===e||e.addEventListener("mousedown",this.mousedown,!1),null===(A=this.topAnchor)||void 0===A||A.addEventListener("mousedown",this.mousedown,!1),null===(t=this.topRightAnchor)||void 0===t||t.addEventListener("mousedown",this.mousedown,!1),null===(i=this.leftAnchor)||void 0===i||i.addEventListener("mousedown",this.mousedown,!1),null===(o=this.rightAnchor)||void 0===o||o.addEventListener("mousedown",this.mousedown,!1),null===(r=this.bottomLeftAnchor)||void 0===r||r.addEventListener("mousedown",this.mousedown,!1),null===(n=this.bottomAnchor)||void 0===n||n.addEventListener("mousedown",this.mousedown,!1),null===(s=this.bottomRightAnchor)||void 0===s||s.addEventListener("mousedown",this.mousedown,!1)},e.prototype.mousedown=function(e){if(0===e.button){if(e.preventDefault(),this.options.stopPropagation&&e.stopPropagation(),this.currentAnchor=e.target,this.resizeStartLeft=e.screenX,this.resizeStartTop=e.screenY,document.defaultView&&this.resizeTarget){var A=document.defaultView.getComputedStyle(this.resizeTarget);this.originTop=window.parseInt(A.top),this.originLeft=window.parseInt(A.left),this.originWidth=this.resizeTarget.offsetWidth,this.originHeight=this.resizeTarget.offsetHeight,Nr.debug("resize origin:",this.originTop,this.originLeft,this.originWidth,this.originHeight)}else Nr.debug("".concat(this.logPrefix,"mouseDown 'resizeTarget' is null"));document.addEventListener("mousemove",this.mousemove,!1),document.addEventListener("mouseup",this.mouseup,!1)}},e.prototype.mousemove=function(e){if(this.container&&this.resizeTarget&&this.currentAnchor){var A,t=this.currentAnchor.classList[1],i=this.originLeft,o=this.originTop,r=this.originWidth,n=this.originHeight;switch(t){case Gr:o=(A=this._resizeTop(e)).top,n=A.height,i=(A=this._resizeLeft(e)).left,r=A.width,this.options.keepRatio&&(r/this.originWidth<n/this.originHeight?(n=r*this.originHeight/this.originWidth,o=this.originTop+this.originHeight-n):(r=n*this.originWidth/this.originHeight,i=this.originLeft+this.originWidth-r));break;case kr:o=(A=this._resizeTop(e)).top,n=A.height,this.options.keepRatio&&((r=this.originWidth*n/this.originHeight)<20?(r=20,n=this.originHeight*r/this.originWidth,o=this.originTop+this.originHeight-n):!this.options.canExceedContainer&&r>this.container.offsetWidth-this.originLeft&&(r=this.container.offsetWidth-this.originLeft,n=this.originHeight*r/this.originWidth,o=this.originTop+this.originHeight-n));break;case Fr:o=(A=this._resizeTop(e)).top,n=A.height,r=this._resizeRight(e),this.options.keepRatio&&(r/this.originWidth<n/this.originHeight?(n=r*this.originHeight/this.originWidth,o=this.originTop+this.originHeight-n):r=n*this.originWidth/this.originHeight);break;case Vr:i=(A=this._resizeLeft(e)).left,r=A.width,this.options.keepRatio&&((n=this.originHeight*r/this.originWidth)<20?(n=20,r=this.originWidth*n/this.originHeight,i=this.originLeft+this.originWidth-r):!this.options.canExceedContainer&&n>this.container.offsetHeight-this.originTop&&(n=this.container.offsetHeight-this.originTop,r=this.originWidth*n/this.originHeight,i=this.originLeft+this.originWidth-r));break;case Pr:r=this._resizeRight(e),this.options.keepRatio&&((n=r*this.originHeight/this.originWidth)<20?r=(n=20)*this.originWidth/this.originHeight:!this.options.canExceedContainer&&n>this.container.offsetHeight-this.originTop&&(r=(n=this.container.offsetHeight-this.originTop)*this.originWidth/this.originHeight));break;case xr:n=this._resizeBottom(e),i=(A=this._resizeLeft(e)).left,r=A.width,this.options.keepRatio&&(r/this.originWidth<n/this.originHeight?n=r*this.originHeight/this.originWidth:(r=n*this.originWidth/this.originHeight,i=this.originLeft+this.originWidth-r));break;case Yr:n=this._resizeBottom(e),this.options.keepRatio&&((r=n*this.originWidth/this.originHeight)<20?n=(r=20)*this.originHeight/this.originWidth:!this.options.canExceedContainer&&r>this.container.offsetWidth-this.originLeft&&(n=(r=this.container.offsetWidth-this.originLeft)*this.originHeight/this.originWidth));break;case Hr:n=this._resizeBottom(e),r=this._resizeRight(e),this.options.keepRatio&&(r/this.originWidth<n/this.originHeight?n=r*this.originHeight/this.originWidth:r=n*this.originWidth/this.originHeight)}this.resizeTarget.style.left="".concat(i,"px"),this.resizeTarget.style.top="".concat(o,"px"),this.resizeTarget.style.height="".concat(n,"px"),this.resizeTarget.style.width="".concat(r,"px"),this.emit("resize",i,o,r,n)}else Nr.debug("".concat(this.logPrefix,"mouseMove error. No valid inner info:"),this.container,this.resizeTarget,this.currentAnchor)},e.prototype._resizeLeft=function(e){var A=e.screenX-this.resizeStartLeft,t=this.originLeft+A,i=this.originWidth-A;return!this.options.canExceedContainer&&t<0?(t=0,i=this.originWidth+this.originLeft):t>this.originLeft+this.originWidth-20&&(t=this.originLeft+this.originWidth-20,i=20),{left:t,width:i}},e.prototype._resizeTop=function(e){var A=e.screenY-this.resizeStartTop,t=this.originTop+A,i=this.originHeight-A;return!this.options.canExceedContainer&&t<0?(t=0,i=this.originHeight+this.originTop):t>this.originTop+this.originHeight-20&&(t=this.originTop+this.originHeight-20,i=20),{top:t,height:i}},e.prototype._resizeRight=function(e){if(!this.container)return Nr.debug("".concat(this.logPrefix,"_resizeRight error. No container:"),this.container),0;var A=e.screenX-this.resizeStartLeft,t=this.originWidth+A;return t<20?t=20:!this.options.canExceedContainer&&t>this.container.offsetWidth-this.originLeft&&(t=this.container.offsetWidth-this.originLeft),t},e.prototype._resizeBottom=function(e){if(!this.container)return Nr.debug("".concat(this.logPrefix,"_resizeBottom error. No container:"),this.container),0;var A=e.screenY-this.resizeStartTop,t=this.originHeight+A;return t<20?t=20:!this.options.canExceedContainer&&t>this.container.offsetHeight-this.originTop&&(t=this.container.offsetHeight-this.originTop),t},e.prototype.mouseup=function(){document.removeEventListener("mousemove",this.mousemove,!1),document.removeEventListener("mouseup",this.mouseup,!1),this.currentAnchor=null,this.resizeStartLeft=0,this.resizeStartTop=0,this.originLeft=0,this.originTop=0,this.originWidth=0,this.originHeight=0},e.prototype.on=function(e,A){var t=this.callbacksMap.get(e);t?t.push(A):this.callbacksMap.set(e,[A])},e.prototype.off=function(e,A){var t=this.callbacksMap.get(e);t&&(t=t.filter((function(e){return e!=A})),this.callbacksMap.set(e,t))},e.prototype.emit=function(e){for(var A=[],t=1;t<arguments.length;t++)A[t-1]=arguments[t];var i=this.callbacksMap.get(e);i&&i.slice().forEach((function(e){try{e.apply(null,A)}catch(t){console.error("[Resizable]emit error:",e,t)}}))},e.prototype.destroy=function(){var e,A,t,i,o,r,n,s,a,g,c,C,u,I,l,d;null===(e=this.topLeftAnchor)||void 0===e||e.removeEventListener("mousedown",this.mousedown,!1),null===(A=this.topAnchor)||void 0===A||A.removeEventListener("mousedown",this.mousedown,!1),null===(t=this.topRightAnchor)||void 0===t||t.removeEventListener("mousedown",this.mousedown,!1),null===(i=this.leftAnchor)||void 0===i||i.removeEventListener("mousedown",this.mousedown,!1),null===(o=this.rightAnchor)||void 0===o||o.removeEventListener("mousedown",this.mousedown,!1),null===(r=this.bottomLeftAnchor)||void 0===r||r.removeEventListener("mousedown",this.mousedown,!1),null===(n=this.bottomAnchor)||void 0===n||n.removeEventListener("mousedown",this.mousedown,!1),null===(s=this.bottomRightAnchor)||void 0===s||s.removeEventListener("mousedown",this.mousedown,!1),this.callbacksMap.clear(),this.options.anchorMode!==br.Both&&this.options.anchorMode!==br.Edge||(this.topAnchor&&(null===(a=this.resizeTarget)||void 0===a||a.removeChild(this.topAnchor)),this.leftAnchor&&(null===(g=this.resizeTarget)||void 0===g||g.removeChild(this.leftAnchor)),this.rightAnchor&&(null===(c=this.resizeTarget)||void 0===c||c.removeChild(this.rightAnchor)),this.bottomAnchor&&(null===(C=this.resizeTarget)||void 0===C||C.removeChild(this.bottomAnchor))),this.options.anchorMode!==br.Both&&this.options.anchorMode!==br.Corner||(this.topLeftAnchor&&(null===(u=this.resizeTarget)||void 0===u||u.removeChild(this.topLeftAnchor)),this.topRightAnchor&&(null===(I=this.resizeTarget)||void 0===I||I.removeChild(this.topRightAnchor)),this.bottomLeftAnchor&&(null===(l=this.resizeTarget)||void 0===l||l.removeChild(this.bottomLeftAnchor)),this.bottomRightAnchor&&(null===(d=this.resizeTarget)||void 0===d||d.removeChild(this.bottomRightAnchor))),this.topLeftAnchor=null,this.topAnchor=null,this.topRightAnchor=null,this.leftAnchor=null,this.rightAnchor=null,this.bottomLeftAnchor=null,this.bottomAnchor=null,this.bottomRightAnchor=null,this.resizeTarget=null,this.container=null,this.currentAnchor=null,this.resizeStartLeft=0,this.resizeStartTop=0,this.originLeft=0,this.originTop=0,this.originWidth=0,this.originHeight=0},e}(),Jr=function(){var A=new Map;for(var t in e.TRTCVideoResolution)if(isNaN(Number(t))){var i=e.TRTCVideoResolution[t],o=t.split("_");A.set(i,{width:parseInt(o[1]),height:parseInt(o[2])})}return A}(),jr=function(){function A(A){if(this.logPrefix="[TRTCMediaMixingDesigner]",this.mixingVideoWidth=640,this.mixingVideoHeight=360,this.canExceedContainer=!1,this.movableHandler=null,this.resizableHandler=null,this.previewScale=1,this.previewWidth=0,this.previewHeight=0,this.previewLeft=0,this.previewTop=0,this.BOUNDARY_ADSORPTION_THRESHOLD=10,this.newSelected=null,this.clickedMediaSources=[],this.oldSelectedIndex=-1,this.mousedownLeft=null,this.mousedownTop=null,this.eventButton=null,this.resizeObserver=null,this.logger=A.logger,this.container=A.view,this.container.style.position="relative",this.videoResolution=A.videoResolution,this.resMode=A.resMode,Jr.has(A.videoResolution)){var t=Jr.get(A.videoResolution),o=t.width,r=t.height;this.resMode===e.TRTCVideoResolutionMode.TRTCVideoResolutionModeLandscape?(this.mixingVideoWidth=o,this.mixingVideoHeight=r):(this.mixingVideoWidth=r,this.mixingVideoHeight=o)}this.updatePreviewProperty(),this.canExceedContainer=A.canExceedContainer||!1,this.eventEmitter=new i.EventEmitter,this.mediaList=[],this.selectedMediaIndex=-1,this.moveAndResizeOverlay=document.createElement("div"),this.moveAndResizeOverlay.style.position="relative",this.container.appendChild(this.moveAndResizeOverlay),this.initMediaMovable(),this.initMediaResizable(),this.initContainerMouseEventHander(),this.initContainerResizeObserver()}return A.prototype.updateOptions=function(A){if(!he(A.videoResolution)||!he(A.resMode)){if(this.resMode=he(A.resMode)?this.resMode:A.resMode,A.videoResolution&&Jr.has(A.videoResolution)){var t=Jr.get(A.videoResolution),i=t.width,o=t.height;this.resMode===e.TRTCVideoResolutionMode.TRTCVideoResolutionModeLandscape?(this.mixingVideoWidth=i,this.mixingVideoHeight=o):(this.mixingVideoWidth=o,this.mixingVideoHeight=i)}this.updatePreviewProperty(),this.updateOverlay()}},A.prototype.addMedia=function(e){this.mediaList.unshift(e),e.isSelected&&(this.selectedMediaIndex=0,this.updateOverlay())},A.prototype.removeMedia=function(e){var A=this.mediaList.findIndex((function(A){return A.id===e.id}));-1!==A&&(this.mediaList.splice(A,1),(this.selectedMediaIndex===A||e.isSelected)&&(this.selectedMediaIndex=-1,this.updateOverlay()))},A.prototype.updateMedia=function(e){var A=this.mediaList.findIndex((function(A){return A.id===e.id}));-1!==A&&(this.mediaList[A]=Object.assign({},this.mediaList[A],e),e.isSelected&&(this.selectedMediaIndex=A,this.updateOverlay()))},A.prototype.on=function(e,A){var t;null===(t=this.eventEmitter)||void 0===t||t.on(e,A)},A.prototype.off=function(e,A){var t;null===(t=this.eventEmitter)||void 0===t||t.off(e,A)},A.prototype.destroy=function(){var e,A,t,i,o;this.resizeObserver&&(this.container&&this.resizeObserver.unobserve(this.container),this.resizeObserver.disconnect(),this.resizeObserver=null),null===(e=this.movableHandler)||void 0===e||e.destroy(),null===(A=this.resizableHandler)||void 0===A||A.destroy(),this.movableHandler=null,this.resizableHandler=null,null===(t=this.container)||void 0===t||t.removeEventListener("contextmenu",this.onRightButtonClicked,!1),null===(i=this.container)||void 0===i||i.removeEventListener("mousedown",this.onContainerMousedown,!1),this.moveAndResizeOverlay&&(null===(o=this.container)||void 0===o||o.removeChild(this.moveAndResizeOverlay),this.moveAndResizeOverlay=null),this.container=null,this.eventEmitter=null,this.mediaList=[]},A.prototype.initMediaMovable=function(){this.onMove=this.onMove.bind(this),this.movableHandler=new _r(this.moveAndResizeOverlay,this.container,{canExceedContainer:this.canExceedContainer,calcPositionOnly:!1}),this.movableHandler.on("move",this.onMove)},A.prototype.initMediaResizable=function(){this.onResize=this.onResize.bind(this),this.resizableHandler=new Kr(this.moveAndResizeOverlay,this.container,{keepRatio:!0,stopPropagation:!0,canExceedContainer:this.canExceedContainer,anchorMode:0}),this.resizableHandler.on("resize",this.onResize)},A.prototype.initContainerMouseEventHander=function(){this.container?(this.onContainerMousedown=this.onContainerMousedown.bind(this),this.onContainerMousemove=this.onContainerMousemove.bind(this),this.onContainerMouseup=this.onContainerMouseup.bind(this),document.addEventListener("mousedown",this.onContainerMousedown,!1),this.onRightButtonClicked=this.onRightButtonClicked.bind(this),this.container.addEventListener("contextmenu",this.onRightButtonClicked,!1)):this.logger.error("".concat(this.logPrefix,"initContainerMouseEventHander failed, no container view"))},A.prototype.initContainerResizeObserver=function(){this.container&&(this.onPreviewAreaResize=this.onPreviewAreaResize.bind(this),this.resizeObserver=new ResizeObserver(this.onPreviewAreaResize),this.resizeObserver.observe(this.container))},A.prototype.onPreviewAreaResize=function(e){for(var A=0,t=e;A<t.length;A++){if(t[A].target===this.container){this.updatePreviewProperty(),this.updateOverlay();break}}},A.prototype.updatePreviewProperty=function(){if(this.container){var e=this.container.offsetWidth,A=this.container.offsetHeight,t=e/this.mixingVideoWidth,i=A/this.mixingVideoHeight;this.previewScale=t>i?t:i,this.previewWidth=this.mixingVideoWidth*this.previewScale,this.previewHeight=this.mixingVideoHeight*this.previewScale,this.previewLeft=(e-this.previewWidth)/2,this.previewTop=(A-this.previewHeight)/2}else this.logger.debug("".concat(this.logPrefix,"calcPreviewScale failed, no HTML element to display"))},A.prototype.updateOverlay=function(){if(this.moveAndResizeOverlay){var e=void 0,A=void 0,t=void 0,i=void 0;if(this.selectedMediaIndex>=0){var o={left:this.mediaList[this.selectedMediaIndex].rect.left*this.previewScale,top:this.mediaList[this.selectedMediaIndex].rect.top*this.previewScale,right:this.mediaList[this.selectedMediaIndex].rect.right*this.previewScale,bottom:this.mediaList[this.selectedMediaIndex].rect.bottom*this.previewScale};e="".concat(o.left+this.previewLeft,"px"),A="".concat(o.top+this.previewTop,"px"),t="".concat(o.right-o.left,"px"),i="".concat(o.bottom-o.top,"px"),this.moveAndResizeOverlay.style.display="block"}else e="".concat(this.previewLeft,"px"),A="".concat(this.previewTop,"px"),t="0px",i="0px",this.moveAndResizeOverlay.style.display="none";this.moveAndResizeOverlay.style.left=e,this.moveAndResizeOverlay.style.top=A,this.moveAndResizeOverlay.style.width=t,this.moveAndResizeOverlay.style.height=i}},A.prototype.onMove=function(e,A){var t;this.logger.debug("".concat(this.logPrefix,"onMove: ").concat(e," ").concat(A));var i=this.mediaList[this.selectedMediaIndex];if(i&&this.moveAndResizeOverlay){var o={left:e-this.previewLeft,top:A-this.previewTop,right:e-this.previewLeft+this.moveAndResizeOverlay.offsetWidth,bottom:A-this.previewTop+this.moveAndResizeOverlay.offsetHeight};this.doAdsorption(o);var r={left:Math.round(o.left/this.previewScale),top:Math.round(o.top/this.previewScale),right:Math.round(o.right/this.previewScale),bottom:Math.round(o.bottom/this.previewScale)};null===(t=this.eventEmitter)||void 0===t||t.emit("onSourceMoved",s({},i),r)}else this.logger.debug("".concat(this.logPrefix,"onMove no selected media"))},A.prototype.doAdsorption=function(e){var A=this.BOUNDARY_ADSORPTION_THRESHOLD;Math.abs(e.left)<A&&(e.right=e.right-e.left,e.left=0),Math.abs(e.top)<A&&(e.bottom=e.bottom-e.top,e.top=0),Math.abs(e.right-this.previewWidth)<A&&(e.left=e.left+this.previewWidth-e.right,e.right=this.previewWidth),Math.abs(e.bottom-this.previewHeight)<A&&(e.top=e.top+this.previewHeight-e.bottom,e.bottom=this.previewHeight)},A.prototype.onResize=function(e,A,t,i){var o;this.logger.debug("".concat(this.logPrefix,"onResize: ").concat(e," ").concat(A," ").concat(t," ").concat(i));var r=this.mediaList[this.selectedMediaIndex];if(r){var n={left:e-this.previewLeft,top:A-this.previewTop,right:e-this.previewLeft+t,bottom:A-this.previewTop+i},a={left:Math.round(n.left/this.previewScale),top:Math.round(n.top/this.previewScale),right:Math.round(n.right/this.previewScale),bottom:Math.round(n.bottom/this.previewScale)};null===(o=this.eventEmitter)||void 0===o||o.emit("onSourceResized",s({},r),a)}else this.logger.debug("".concat(this.logPrefix,"onResize no selected media"))},A.prototype.emitOnSelect=function(e){var A;if(e){for(var t=this.mediaList.length,i=0;i<t;i++)if(e.id===this.mediaList[i].id){this.selectedMediaIndex=i;break}}else this.selectedMediaIndex=-1;this.updateOverlay(),null===(A=this.eventEmitter)||void 0===A||A.emit("onSourceSelected",e?s({},e):null)},A.prototype.onContainerMousedown=function(e){this.logger.debug("".concat(this.logPrefix,"onContainerMousedown event:"),e,e.target,e.currentTarget);var A=e.target;if(this.eventButton=e.button,A&&this.container){if(this.container.contains(A)){this.logger.debug("".concat(this.logPrefix,"onContainerMousedown mix video image clicked"));var t=this.container.getBoundingClientRect(),i=e.clientX-t.x-this.previewLeft,o=e.clientY-t.y-this.previewTop,r=i/this.previewScale,n=o/this.previewScale;this.logger.debug("".concat(this.logPrefix,"onContainerMousedown click point coordinates in mix video:"),i,o,r,n);for(var s=0;s<this.mediaList.length;s++){var a=this.mediaList[s];a.rect&&r>=a.rect.left&&r<=a.rect.right&&n>=a.rect.top&&n<=a.rect.bottom&&(this.clickedMediaSources.push(a),this.mediaList[this.selectedMediaIndex]&&a.id===this.mediaList[this.selectedMediaIndex].id&&(this.oldSelectedIndex=this.clickedMediaSources.length-1))}this.mousedownLeft=e.screenX,this.mousedownTop=e.screenY}this.clickedMediaSources.length>0?2===this.eventButton&&-1===this.oldSelectedIndex?(this.newSelected=this.clickedMediaSources[0],this.logger.debug("".concat(this.logPrefix,"onContainerMousedown find clicked media source:"),this.newSelected),this.emitOnSelect(this.newSelected),this.clickedMediaSources.splice(0,this.clickedMediaSources.length)):(document.addEventListener("mousemove",this.onContainerMousemove,!1),document.addEventListener("mouseup",this.onContainerMouseup,!1)):(this.newSelected=null,this.logger.debug("".concat(this.logPrefix,"onContainerMousedown find clicked media source:"),this.newSelected),this.emitOnSelect(null),this.mousedownLeft=null,this.mousedownTop=null,this.eventButton=null)}},A.prototype.onContainerMousemove=function(e){var A;if(e.target&&this.container&&null!==this.mousedownLeft&&null!==this.mousedownTop){var t=e.screenX-this.mousedownLeft,i=e.screenY-this.mousedownTop;(Math.abs(t)>=5||Math.abs(i)>=5)&&(this.oldSelectedIndex>=0?(this.logger.debug("".concat(this.logPrefix,"onContainerMousemove move or resize old selected media source, clear data:"),this.clickedMediaSources,this.oldSelectedIndex),this.clickedMediaSources.splice(0,this.clickedMediaSources.length),this.oldSelectedIndex=-1):this.clickedMediaSources.length>0&&(this.newSelected=this.clickedMediaSources[0],this.logger.debug("".concat(this.logPrefix,"onContainerMousemove find clicked media source:"),this.newSelected),this.emitOnSelect(this.newSelected),this.clickedMediaSources.splice(0,this.clickedMediaSources.length),null===(A=this.moveAndResizeOverlay)||void 0===A||A.dispatchEvent(new MouseEvent("mousedown",{screenX:this.mousedownLeft,screenY:this.mousedownTop,button:this.eventButton}))))}},A.prototype.onContainerMouseup=function(e){if(document.removeEventListener("mousemove",this.onContainerMousemove,!1),document.removeEventListener("mouseup",this.onContainerMouseup,!1),this.logger.debug("".concat(this.logPrefix,"onContainerMouseup data:"),this.clickedMediaSources,this.oldSelectedIndex),e.target&&this.container){if(this.clickedMediaSources.length>0)if(this.oldSelectedIndex>=0){if(0===this.eventButton){var A=(this.oldSelectedIndex+1)%this.clickedMediaSources.length;this.newSelected=this.clickedMediaSources[A],this.logger.debug("".concat(this.logPrefix,"onContainerMouseup find clicked media source:"),this.newSelected),this.emitOnSelect(this.newSelected)}}else this.newSelected=this.clickedMediaSources[0],this.logger.debug("".concat(this.logPrefix,"onContainerMouseup find clicked media source:"),this.newSelected),this.emitOnSelect(this.newSelected)}else this.logger.debug("".concat(this.logPrefix,"onContainerMouseup click outside of mixing video image")),this.emitOnSelect(null);this.mousedownLeft=null,this.mousedownTop=null,this.clickedMediaSources.splice(0,this.clickedMediaSources.length),this.oldSelectedIndex=-1,this.newSelected=null,this.eventButton=null},A.prototype.onRightButtonClicked=function(e){var A;this.logger.debug("".concat(this.logPrefix,"onRightButtonClicked:"),e.target,e.currentTarget,e.buttons),e.preventDefault(),null===(A=this.eventEmitter)||void 0===A||A.emit("onRightButtonClicked",s({},this.mediaList[this.selectedMediaIndex]))},A}(),zr=function(){function A(t){if(this.logPrefix="[TRTCMediaMixingManager]",this.eventEmitter=new i.EventEmitter,this.publishParams={videoEncoderParams:{videoResolution:e.TRTCVideoResolution.TRTCVideoResolution_1280_720,resMode:e.TRTCVideoResolutionMode.TRTCVideoResolutionModeLandscape,videoFps:15,videoBitrate:1800},canvasColor:0},this.mediaMixingDesigner=null,this.sourceList=[],this.trtcSourceMap=new Map,this.mixVideoTrack=null,this.selectedSource=null,this.view=null,A.mediaMixingManager)return A.mediaMixingManager;A.mediaMixingManager=this,this.logger=t.logger,this.trtc=t.trtc,this.trtcCloud=t.trtcCloud,this.onSourceSelected=this.onSourceSelected.bind(this),this.onSourceMoved=this.onSourceMoved.bind(this),this.onSourceResized=this.onSourceResized.bind(this),this.onRightButtonClicked=this.onRightButtonClicked.bind(this)}return A.prototype.destroy=function(){this.view=null,this.destroyDesigner(),this.eventEmitter=null},A.prototype.bindPreviewArea=function(e){return a(this,void 0,Promise,(function(){var A,t,i,o,r=this;return g(this,(function(n){switch(n.label){case 0:return this.logger.log("".concat(this.logPrefix," bindPreviewArea:"),e),this.view=e,A=this._getCanvasSize(this.publishParams.videoEncoderParams.videoResolution,this.publishParams.videoEncoderParams.resMode),t=A.width,i=A.height,[4,this.trtc.startPlugin("VideoMixer",{view:e,canvasInfo:{width:t,height:i,canvasColor:String(this.publishParams.canvasColor)},onScreenShareStop:function(e){var A,t=r.sourceList.find((function(A){return A.id===e}));r.removeMediaSource(t),null===(A=r.eventEmitter)||void 0===A||A.emit("onSourceDisconnected",t||null)}})];case 1:return o=n.sent(),console.log("startPlugin result",o,o.track),this.mixVideoTrack=o.track,this.createDesigner(),[2]}}))}))},A.prototype._getTRTCSourceKey=function(A){var t;return((t={})[e.TRTCMediaSourceType.kCamera]="camera",t[e.TRTCMediaSourceType.kScreen]="screen",t[e.TRTCMediaSourceType.kText]="text",t[e.TRTCMediaSourceType.kVideo]="video",t[e.TRTCMediaSourceType.kImage]="image",t)[A.type]},A.prototype._getTRTCFillMode=function(A){var t;return((t={})[e.TRTCVideoFillMode.TRTCVideoFillMode_Fill]="cover",t[e.TRTCVideoFillMode.TRTCVideoFillMode_Fit]="contain",t)[A]},A.prototype._getTRTCVideoProfile=function(A,t){var i,o=((i={})[e.TRTCVideoResolution.TRTCVideoResolution_480_270]={width:480,height:270},i[e.TRTCVideoResolution.TRTCVideoResolution_640_360]={width:640,height:360},i[e.TRTCVideoResolution.TRTCVideoResolution_960_540]={width:960,height:540},i[e.TRTCVideoResolution.TRTCVideoResolution_1280_720]={width:1280,height:720},i[e.TRTCVideoResolution.TRTCVideoResolution_1920_1080]={width:1920,height:1080},i);return{width:o[A].width,height:o[A].height,frameRate:t,bitrate:1e3}},A.prototype._getTRTCLayout=function(A){var t,i,o,r,n,s,a,g,c,C,u,I,l,d,h,B,E={zIndex:(null===(o=A.layout)||void 0===o?void 0:o.zOrder)||0};if(ue(null===(r=A.layout)||void 0===r?void 0:r.rect)||(E.x=null===(n=A.layout)||void 0===n?void 0:n.rect.left,E.y=null===(s=A.layout)||void 0===s?void 0:s.rect.top,E.width=(null===(a=A.layout)||void 0===a?void 0:a.rect.right)-(null===(g=A.layout)||void 0===g?void 0:g.rect.left),E.height=(null===(c=A.layout)||void 0===c?void 0:c.rect.bottom)-(null===(C=A.layout)||void 0===C?void 0:C.rect.top)),ue(null===(u=A.layout)||void 0===u?void 0:u.fillMode)||(E.fillMode=this._getTRTCFillMode(null===(I=A.layout)||void 0===I?void 0:I.fillMode)),!ue(null===(l=A.layout)||void 0===l?void 0:l.mirror)){var Q=((t={})[e.TRTCVideoMirrorType.TRTCVideoMirrorType_Auto]=!0,t[e.TRTCVideoMirrorType.TRTCVideoMirrorType_Enable]=!0,t[e.TRTCVideoMirrorType.TRTCVideoMirrorType_Disable]=!1,t);E.mirror=Q[null===(d=A.layout)||void 0===d?void 0:d.mirror]}if(!ue(null===(h=A.layout)||void 0===h?void 0:h.rotation)){var p=((i={})[e.TRTCVideoRotation.TRTCVideoRotation0]=0,i[e.TRTCVideoRotation.TRTCVideoRotation90]=90,i[e.TRTCVideoRotation.TRTCVideoRotation180]=180,i[e.TRTCVideoRotation.TRTCVideoRotation270]=270,i);E.rotation=p[null===(B=A.layout)||void 0===B?void 0:B.rotation]}return E},A.prototype._getTRTCSourceItem=function(A){var t,i,o,r,n,a,g,c,C;switch(A.type){case e.TRTCMediaSourceType.kScreen:return C=e.TRTCVideoResolution.TRTCVideoResolution_1920_1080,{id:A.id,profile:this._getTRTCVideoProfile((null===(t=A.screen)||void 0===t?void 0:t.resolution)||C,(null===(i=A.screen)||void 0===i?void 0:i.fps)||15),layout:this._getTRTCLayout(A)};case e.TRTCMediaSourceType.kCamera:return C=e.TRTCVideoResolution.TRTCVideoResolution_1280_720,{id:A.id,cameraId:null===(o=A.camera)||void 0===o?void 0:o.cameraId,profile:this._getTRTCVideoProfile((null===(r=A.camera)||void 0===r?void 0:r.resolution)||C,(null===(n=A.camera)||void 0===n?void 0:n.fps)||15),videoTrack:null===(a=A.camera)||void 0===a?void 0:a.videoTrack,layout:this._getTRTCLayout(A)};case e.TRTCMediaSourceType.kText:return s(s({id:A.id},A.text||{}),{layout:this._getTRTCLayout(A)});case e.TRTCMediaSourceType.kImage:return{id:A.id,url:null===(g=A.image)||void 0===g?void 0:g.url,layout:this._getTRTCLayout(A)};case e.TRTCMediaSourceType.kVideo:return{id:A.id,url:null===(c=A.video)||void 0===c?void 0:c.url,layout:this._getTRTCLayout(A)};default:return null}},A.prototype._getCanvasSize=function(A,t){var i,o,r=((i={})[e.TRTCVideoResolution.TRTCVideoResolution_480_270]={width:480,height:270},i[e.TRTCVideoResolution.TRTCVideoResolution_640_360]={width:640,height:360},i[e.TRTCVideoResolution.TRTCVideoResolution_960_540]={width:960,height:540},i[e.TRTCVideoResolution.TRTCVideoResolution_1280_720]={width:1280,height:720},i[e.TRTCVideoResolution.TRTCVideoResolution_1920_1080]={width:1920,height:1080},i)[A],n=r.width,s=r.height;return t===e.TRTCVideoResolutionMode.TRTCVideoResolutionModePortrait&&(n=(o=[s,n])[0],s=o[1]),{width:n,height:s}},A.prototype.addMediaSource=function(e){var A;return a(this,void 0,Promise,(function(){var t,i,o,r,n;return g(this,(function(s){switch(s.label){case 0:if(this.logger.log("".concat(this.logPrefix,"addMediaSource:"),e),-1!==this.findMediaSourceIndex(e))throw new Error("Media source already existed");if((t=de(JSON.stringify(e))).isSelected&&(this.unselectMediaSource(this.selectedSource),this.selectedSource=e),i=this._getTRTCSourceKey(t),!(o=this._getTRTCSourceItem(t))||!i)throw new Error("Invalid media source");return(r=Ee(this.trtcSourceMap.get(i))||[]).push(o),[4,this.trtc.updatePlugin("VideoMixer",(n={},n[i]=r,n))];case 1:if(s.sent().result.failedDetails.find((function(A){return A.id===e.id})))throw new Error("Failed to add media source");return this.trtcSourceMap.set(i,r),null===(A=this.mediaMixingDesigner)||void 0===A||A.addMedia({id:t.id,rect:this._getDesignerMediaRect(e),isSelected:t.isSelected||!0,origin:t}),t.isSelected&&(this.selectedSource=t),this.sourceList.push(t),[2]}}))}))},A.prototype.removeMediaSource=function(e){var A,t,i;return a(this,void 0,Promise,(function(){var o,r,n,s,a;return g(this,(function(g){switch(g.label){case 0:if(this.logger.log("".concat(this.logPrefix,"removeMediaSource:"),e),-1===(o=this.findMediaSourceIndex(e)))throw new Error("Not existing media source to remove");return r=this._getTRTCSourceKey(e),n=Ee(this.trtcSourceMap.get(r))||[],s=n.findIndex((function(A){return A.id===e.id})),n.splice(s,1),[4,this.trtc.updatePlugin("VideoMixer",(a={},a[r]=n,a))];case 1:if(g.sent().result.failedDetails.find((function(A){return A.id===e.id})))throw new Error("Failed to remove media source");return null===(A=this.mediaMixingDesigner)||void 0===A||A.removeMedia({id:e.id,rect:null===(t=e.layout)||void 0===t?void 0:t.rect,isSelected:e.isSelected||!1,origin:de(JSON.stringify(e))}),(null===(i=this.selectedSource)||void 0===i?void 0:i.id)===e.id&&(this.selectedSource=null),this.trtcSourceMap.set(r,n),this.sourceList.splice(o,1),[2]}}))}))},A.prototype._getDesignerMediaRect=function(A){var t,i,o=(null===(t=A.layout)||void 0===t?void 0:t.rect)||{left:0,top:0,right:0,bottom:0},r=o.left,n=o.top,s=o.right,a=o.bottom,g=s-r,c=a-n;switch(null===(i=A.layout)||void 0===i?void 0:i.rotation){case e.TRTCVideoRotation.TRTCVideoRotation0:case e.TRTCVideoRotation.TRTCVideoRotation180:return{left:r,top:n,right:s,bottom:a};case e.TRTCVideoRotation.TRTCVideoRotation90:case e.TRTCVideoRotation.TRTCVideoRotation270:return{left:r,top:n,right:r+c,bottom:n+g};default:return{left:r,top:n,right:s,bottom:a}}},A.prototype._getPluginMediaRect=function(A){var t,i,o=(null===(t=A.layout)||void 0===t?void 0:t.rect)||{left:0,top:0,right:0,bottom:0},r=o.left,n=o.top,s=o.right,a=o.bottom;switch(null===(i=A.layout)||void 0===i?void 0:i.rotation){case e.TRTCVideoRotation.TRTCVideoRotation0:case e.TRTCVideoRotation.TRTCVideoRotation180:return{left:r,top:n,right:s,bottom:a};case e.TRTCVideoRotation.TRTCVideoRotation90:case e.TRTCVideoRotation.TRTCVideoRotation270:return{left:r,top:n,right:r+(a-n),bottom:n+(s-r)};default:return{left:r,top:n,right:s,bottom:a}}},A.prototype.updateMediaSource=function(e){var A,t;return a(this,void 0,Promise,(function(){var i,o,r,n,a,c,C;return g(this,(function(g){switch(g.label){case 0:if(this.logger.log("".concat(this.logPrefix,"updateMediaSource:"),e),-1===(i=this.findMediaSourceIndex(e)))throw new Error("Not existing media source to update");return o=s(s({},this.sourceList[i]),de(JSON.stringify(e))),e.isSelected?(this.unselectMediaSource(this.selectedSource),this.selectedSource=e):(null===(A=this.selectedSource)||void 0===A?void 0:A.id)===e.id&&(this.selectedSource=null),r=this._getTRTCSourceKey(o),n=this._getTRTCSourceItem(o),a=Ee(this.trtcSourceMap.get(r))||[],c=a.findIndex((function(A){return A.id===e.id})),a[c]=n,[4,this.trtc.updatePlugin("VideoMixer",(C={},C[r]=a,C))];case 1:if(g.sent().result.failedDetails.find((function(A){return A.id===e.id})))throw new Error("Failed to update media source");return null===(t=this.mediaMixingDesigner)||void 0===t||t.updateMedia({id:e.id,rect:this._getDesignerMediaRect(e),isSelected:e.isSelected||!1,origin:de(JSON.stringify(e))}),this.trtcSourceMap.set(r,a),this.sourceList[i]=o,[2]}}))}))},A.prototype.startPublish=function(){return a(this,void 0,Promise,(function(){return g(this,(function(A){switch(A.label){case 0:return this.logger.log("".concat(this.logPrefix," startPublish")),[4,this.trtcCloud.setLocalRenderParams({rotation:e.TRTCVideoRotation.TRTCVideoRotation0,fillMode:e.TRTCVideoFillMode.TRTCVideoFillMode_Fit,mirrorType:e.TRTCVideoMirrorType.TRTCVideoMirrorType_Disable})];case 1:return A.sent(),[4,this.trtcCloud._startPublishVideoTrack({videoTrack:this.mixVideoTrack})];case 2:return A.sent(),[2]}}))}))},A.prototype.stopPublish=function(){return a(this,void 0,Promise,(function(){return g(this,(function(e){switch(e.label){case 0:return this.logger.log("".concat(this.logPrefix," stopPublish")),[4,this.trtcCloud._stopPublishVideoTrack()];case 1:return e.sent(),[2]}}))}))},A.prototype.updatePublishParams=function(e){var A,t,i,o,n;return a(this,void 0,Promise,(function(){var s,a,c,C,I,l,d,h,B,E,Q,p,f,T,v,y,m,R,w,S,M,D,b,L;return g(this,(function(g){switch(g.label){case 0:this.logger.log("".concat(this.logPrefix,"updatePublishParams:"),e),s=this.publishParams,this.publishParams=e,a=this._getCanvasSize(e.videoEncoderParams.videoResolution,e.videoEncoderParams.resMode),c=a.width,C=a.height,g.label=1;case 1:return g.trys.push([1,3,,4]),[4,this.trtc.updatePlugin("VideoMixer",{canvasInfo:{width:c,height:C,canvasColor:String(e.canvasColor)}})];case 2:return g.sent(),[3,4];case 3:if((I=g.sent()).code!==r.default.ERROR_CODE.OPERATION_ABORT)throw I;return[3,4];case 4:null===(i=this.mediaMixingDesigner)||void 0===i||i.updateOptions({videoResolution:this.publishParams.videoEncoderParams.videoResolution,resMode:this.publishParams.videoEncoderParams.resMode}),g.label=5;case 5:g.trys.push([5,11,12,17]),l=u(this.sourceList),g.label=6;case 6:return[4,l.next()];case 7:return(d=g.sent()).done?[3,10]:(h=d.value).layout?(B=h.layout.rect||{left:0,top:0,right:0,bottom:0},E=B.left,Q=B.top,p=B.right,f=B.bottom,T=this._getCanvasSize(s.videoEncoderParams.videoResolution),v=T.width,y=T.height,m=this._getCanvasSize(e.videoEncoderParams.videoResolution),R=m.width,w=m.height,S=E*R/v,M=Q*w/y,D=p*R/v,b=f*w/y,h.layout.rect={left:S,top:M,right:D,bottom:b},[4,this.updateMediaSource(h)]):[3,9];case 8:g.sent(),null===(o=this.eventEmitter)||void 0===o||o.emit("onSourceResized",h,null===(n=h.layout)||void 0===n?void 0:n.rect),g.label=9;case 9:return[3,6];case 10:return[3,17];case 11:return L=g.sent(),A={error:L},[3,17];case 12:return g.trys.push([12,,15,16]),d&&!d.done&&(t=l.return)?[4,t.call(l)]:[3,14];case 13:g.sent(),g.label=14;case 14:return[3,16];case 15:if(A)throw A.error;return[7];case 16:return[7];case 17:return[4,this.trtcCloud.setVideoEncoderParam(e.videoEncoderParams)];case 18:return g.sent(),[2]}}))}))},A.prototype.on=function(e,A){var t;null===(t=this.eventEmitter)||void 0===t||t.on(e,A)},A.prototype.off=function(e,A){var t;null===(t=this.eventEmitter)||void 0===t||t.off(e,A)},A.prototype.onVisibilityChange=function(){this.logger.log("".concat(this.logPrefix,"onVisibilityChange document.hidden:").concat(document.hidden)),document.hidden?this.bindPreviewArea(null):this.bindPreviewArea(this.view)},A.prototype.createDesigner=function(){var A,t;this.view&&(this.mediaMixingDesigner=new jr({view:this.view,videoResolution:(null===(A=this.publishParams)||void 0===A?void 0:A.videoEncoderParams.videoResolution)||e.TRTCVideoResolution.TRTCVideoResolution_1920_1080,resMode:(null===(t=this.publishParams)||void 0===t?void 0:t.videoEncoderParams.resMode)||e.TRTCVideoResolutionMode.TRTCVideoResolutionModeLandscape,canExceedContainer:!0,logger:this.logger}),this.listenDesignerEvent())},A.prototype.destroyDesigner=function(){var e;this.mediaMixingDesigner&&(this.unlistenDesignerEvent(),null===(e=this.mediaMixingDesigner)||void 0===e||e.destroy(),this.mediaMixingDesigner=null)},A.prototype.listenDesignerEvent=function(){var e,A,t,i,o;null===(e=this.mediaMixingDesigner)||void 0===e||e.on("onError",this.onError),null===(A=this.mediaMixingDesigner)||void 0===A||A.on("onSourceSelected",this.onSourceSelected),null===(t=this.mediaMixingDesigner)||void 0===t||t.on("onSourceMoved",this.onSourceMoved),null===(i=this.mediaMixingDesigner)||void 0===i||i.on("onSourceResized",this.onSourceResized),null===(o=this.mediaMixingDesigner)||void 0===o||o.on("onRightButtonClicked",this.onRightButtonClicked)},A.prototype.unlistenDesignerEvent=function(){var e,A,t,i,o;null===(e=this.mediaMixingDesigner)||void 0===e||e.off("onError",this.onError),null===(A=this.mediaMixingDesigner)||void 0===A||A.off("onSourceSelected",this.onSourceSelected),null===(t=this.mediaMixingDesigner)||void 0===t||t.off("onSourceMoved",this.onSourceMoved),null===(i=this.mediaMixingDesigner)||void 0===i||i.off("onSourceResized",this.onSourceResized),null===(o=this.mediaMixingDesigner)||void 0===o||o.off("onRightButtonClicked",this.onRightButtonClicked)},A.prototype.onError=function(e,A){this.logger.log("".concat(this.logPrefix,"onError:"),e,A)},A.prototype.onSourceSelected=function(e){var A;return a(this,void 0,void 0,(function(){return g(this,(function(t){switch(t.label){case 0:return this.logger.debug("".concat(this.logPrefix,"onSourceSelected: "),e,this.selectedSource),e&&this.selectedSource&&e.origin.id===this.selectedSource.id?[2]:(null==e?void 0:e.origin)?(this.updateMediaSource(s(s({},e.origin),{isSelected:!0})),[3,3]):[3,1];case 1:return this.selectedSource?[4,this.updateMediaSource(s(s({},this.selectedSource),{isSelected:!1}))]:[3,3];case 2:t.sent(),this.selectedSource=null,t.label=3;case 3:return null===(A=this.eventEmitter)||void 0===A||A.emit("onSourceSelected",e?e.origin:null),[2]}}))}))},A.prototype.onSourceMoved=function(e,A){var t,i;if(this.logger.debug("".concat(this.logPrefix,"onSourceMoved:"),e,A),null==e?void 0:e.origin){var o=s(s({},e.origin),{layout:s(s({},e.origin.layout),{rect:A})});this.updateMediaSource(Be(o,{layout:{rect:this._getPluginMediaRect(o)}})),(null===(t=this.selectedSource)||void 0===t?void 0:t.id)===e.origin.id&&(this.selectedSource=this.sourceList.find((function(A){return A.id===e.origin.id}))),null===(i=this.eventEmitter)||void 0===i||i.emit("onSourceMoved",e.origin,this._getPluginMediaRect(o))}},A.prototype.onSourceResized=function(e,A){var t,i;if(this.logger.debug("".concat(this.logPrefix,"onSourceResized:"),e,A),null==e?void 0:e.origin){var o=s(s({},e.origin),{layout:s(s({},e.origin.layout),{rect:A})});this.updateMediaSource(Be(o,{layout:{rect:this._getPluginMediaRect(o)}})),(null===(t=this.selectedSource)||void 0===t?void 0:t.id)===e.origin.id&&(this.selectedSource=this.sourceList.find((function(A){return A.id===e.origin.id})))}null===(i=this.eventEmitter)||void 0===i||i.emit("onSourceResized",e.origin,A)},A.prototype.onRightButtonClicked=function(e){var A;this.logger.debug("".concat(this.logPrefix,"onRightButtonClicked:"),e),null===(A=this.eventEmitter)||void 0===A||A.emit("onRightButtonClicked",e.origin)},A.prototype.isSameMediaSource=function(e,A){return e.id===A.id},A.prototype.isMediaSourceExisted=function(e){var A=this;return this.sourceList.some((function(t){return A.isSameMediaSource(t,e)}))},A.prototype.findMediaSourceIndex=function(e){return this.sourceList.findIndex((function(A){return A.id===e.id}))},A.prototype.unselectMediaSource=function(e){var A,t;return a(this,void 0,Promise,(function(){var i;return g(this,(function(o){return e?(-1!==(i=this.findMediaSourceIndex(e))&&(this.sourceList[i].isSelected=!1),null===(A=this.mediaMixingDesigner)||void 0===A||A.updateMedia({id:e.id,rect:null===(t=e.layout)||void 0===t?void 0:t.rect,isSelected:!1,origin:de(JSON.stringify(e))}),[2]):[2]}))}))},A.mediaMixingManager=null,A}(),Zr=Object.defineProperty,Wr=Object.getOwnPropertySymbols,Xr=Object.prototype.hasOwnProperty,qr=Object.prototype.propertyIsEnumerable,$r=(e,A,t)=>A in e?Zr(e,A,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[A]=t,en=(e,A)=>{for(var t in A||(A={}))Xr.call(A,t)&&$r(e,t,A[t]);if(Wr)for(var t of Wr(A))qr.call(A,t)&&$r(e,t,A[t]);return e},An=(e,A,t)=>$r(e,"symbol"!=typeof A?A+"":A,t),tn={x:{required:!0,type:"number"},y:{required:!0,type:"number"},width:{required:!0,type:"number",notLessThanZero:!0,min:1,max:3840},height:{required:!0,type:"number",notLessThanZero:!0,min:1,max:3840},zIndex:{required:!0,type:"number"},fillMode:{required:!1,type:"string"},mirror:{required:!1,type:"boolean"},rotation:{required:!1,type:"number"},hidden:{required:!1,type:"boolean"}},on=(e,A=!1)=>({type:"object",required:A,properties:{canvasColor:{required:!1,type:["string",CanvasGradient,CanvasPattern]},width:{required:!0,type:"number",notLessThanZero:!0,min:1,max:3840},height:{required:!0,type:"number",notLessThanZero:!0,min:1,max:3840},frameRate:{required:!1,type:"number",notLessThanZero:!0,min:1,max:60}},validate(A,t,i){const{RtcError:o,ErrorCode:r,ErrorCodeDictionary:n}=e.errorModule;if(!A)return;const{width:s,height:a}=A;if(s&&a&&s*a>8294400)throw new o({code:r.INVALID_PARAMETER,message:"The mix resolution cannot be set higher than 3840 * 2160."})}}),rn=e=>({required:!1,type:["string",HTMLElement,null],validate(A,t,i){const{RtcError:o,ErrorCode:r,ErrorCodeDictionary:n}=e.errorModule;if(e.utils.isString(A)&&!document.getElementById(A))throw new o({code:r.INVALID_PARAMETER,extraCode:n.INVALID_ELEMENT_ID,fnName:i,messageParams:{key:t}})}}),nn=(e,A=!0)=>({type:"object",required:A,properties:en({},tn),validate(A,t,i){const{RtcError:o,ErrorCode:r,ErrorCodeDictionary:n}=e.errorModule;if(A){if(A.fillMode&&!["contain","cover","fill"].includes(A.fillMode))throw new o({code:r.INVALID_PARAMETER,extraCode:n.INVALID_PARAMETER_TYPE,message:"The fillMode parameter must be 'contain', 'cover' or 'fill'",fnName:i});if(A.rotation&&![0,90,180,270].includes(A.rotation))throw new o({code:r.INVALID_PARAMETER,extraCode:n.INVALID_PARAMETER_TYPE,message:"The rotation parameter must be 0, 90, 180 or 270",fnName:i})}}}),sn=e=>({type:"array",required:!1,arrayItem:{type:"object",properties:{id:{required:!0,type:"string"},cameraId:{required:!1,type:"string"},videoTrack:{required:!1,instanceof:MediaStreamTrack},profile:{required:!1,type:["string","object"],properties:{width:{type:"number"},height:{type:"number"},frameRate:{type:"number"},bitrate:{type:"number"}}},layout:en({},nn(e))}}}),an=e=>({type:"array",required:!1,arrayItem:{type:"object",properties:{id:{required:!0,type:"string"},profile:{required:!1,type:["string","object"],properties:{width:{type:"number"},height:{type:"number"},frameRate:{type:"number"},bitrate:{type:"number"}}},captureElement:{required:!1,type:HTMLElement},preferDisplaySurface:{required:!1,type:"string"},layout:en({},nn(e))},validate(A,t,i){const{RtcError:o,ErrorCode:r,ErrorCodeDictionary:n}=e.errorModule;if(!e.rtcDectection.isScreenCaptureApiAvailable())throw new o({code:r.ENV_NOT_SUPPORTED,fnName:i,extraCode:n.NOT_SUPPORTED_SCREEN_SHARE})}}}),gn=e=>({type:"array",required:!1,arrayItem:{type:"object",properties:{id:{required:!0,type:"string"},content:{required:!0,type:"string"},font:{required:!1,type:"string"},color:{required:!1,type:["string",CanvasGradient,CanvasPattern]},layout:en({},nn(e))}}}),cn=e=>({type:"array",required:!1,arrayItem:{type:"object",properties:{id:{required:!0,type:"string"},url:{required:!0,type:"string"},layout:en({},nn(e))}}}),Cn=e=>({type:"array",required:!1,arrayItem:{type:"object",properties:{id:{required:!0,type:"string"},url:{required:!0,type:"string"},layout:en({},nn(e))}}});var un=0,In=class e{constructor(e){this.core=e,An(this,"seq"),An(this,"log"),An(this,"localMixVideoTrack",null),An(this,"_mixVideoConfig"),An(this,"onScreenShareStop"),un+=1,this.seq=un,this.log=e.log.createChild({id:`${this.getAlias()}${un}`}),this.log.info("created")}getName(){return e.Name}getAlias(){return"vmix"}getValidateRule(e){switch(e){case"start":return function(e){return{name:"VideoMixerOptions",type:"object",required:!0,allowEmpty:!1,properties:{view:en({},rn(e)),canvasInfo:en({},on(e,!0)),camera:en({},sn(e)),screen:en({},an(e)),text:en({},gn(e)),image:en({},cn(e)),video:en({},Cn(e))},validate(A,t,i,o){const{RtcError:r,ErrorCode:n,ErrorCodeDictionary:s}=e.errorModule;if(e.environment.isMobile())throw new r({code:n.ENV_NOT_SUPPORTED,message:"VideoMixer is not supported on mobile devices currently"});const{onScreenShareStop:a}=A;if(a&&!e.utils.isFunction(a))throw new r({code:n.INVALID_PARAMETER,extraCode:s.INVALID_PARAMETER_TYPE,fnName:i,messageParams:{key:"onScreenShareStop",value:typeof a,rule:{type:"Function"}}})}}}(this.core);case"update":return function(e){return{name:"VideoMixerOptions",type:"object",required:!1,allowEmpty:!1,properties:{view:en({},rn(e)),canvasInfo:en({},on(e)),camera:en({},sn(e)),screen:en({},an(e)),text:en({},gn(e)),image:en({},cn(e)),video:en({},Cn(e))}}}(this.core);case"stop":return this.core,{name:"StopVideoMixerOptions",required:!1}}}getGroup(){return"vmix"}async start(e){this.localMixVideoTrack||(this.localMixVideoTrack=new this.core.LocalMixVideoTrack(this.core.room.videoManager)),this._mixVideoConfig={canvasInfo:{width:1920,height:1080}},e=this.core.utils.deepCloneBasic(e);const{view:A,onScreenShareStop:t}=e,i=await this.parseMixOptions(e);return t&&(this.onScreenShareStop=t,this._mixVideoConfig.onScreenShareStop=t),this._updatePreview({view:A,track:this.localMixVideoTrack}),this.core.utils.isUndefined(A)||(this._mixVideoConfig.view=A),await this.localMixVideoTrack.startMix(),{track:this.localMixVideoTrack._outputTrack,result:i}}async update(e){const{RtcError:A,ErrorCode:t}=this.core.errorModule;if(!this.localMixVideoTrack)throw new A({code:t.INVALID_OPERATION,message:"mixTrack doesn't initialize!"});e=this.core.utils.deepCloneBasic(e);const{view:i}=e,o=await this.parseMixOptions(e);return await this._updatePreview({view:i,track:this.localMixVideoTrack,prevConfig:this._mixVideoConfig}),this.core.utils.isUndefined(i)||(this._mixVideoConfig.view=i),{track:this.localMixVideoTrack._outputTrack,result:o}}async parseMixOptions(e){let A={successOptions:{},failedDetails:[]};const{RtcError:t,ErrorCode:i,ErrorCodeDictionary:o}=this.core.errorModule;if(!this.localMixVideoTrack||!this._mixVideoConfig)return A;const r=[],n=en({},e),{canvasInfo:s,camera:a,screen:g,text:c,image:C,video:u}=e;let I=0,l=0;if(s){const{canvasColor:e,width:A,height:t,frameRate:i}=s;e&&this.localMixVideoTrack.setMixBackground(e),i&&this.localMixVideoTrack.setFps(i),this.localMixVideoTrack.resizeMixCanvas(A,t),this._mixVideoConfig.canvasInfo=s}if(a){I++;const{finalOptions:e,errors:A}=await this.parseCameraOptions(this.localMixVideoTrack,a,this._mixVideoConfig.camera);this._mixVideoConfig.camera=e,n.camera=e,A.length>0&&(r.push(...A),A.length===a.length&&l++)}if(g){I++;const{finalOptions:e,errors:A}=await this.parseScreenOptions(this.localMixVideoTrack,g,this._mixVideoConfig.screen);this._mixVideoConfig.screen=e,n.screen=e,A.length>0&&(r.push(...A),A.length===g.length&&l++)}if(c){I++;const{finalOptions:e,errors:A}=await this.parseTextOptions(this.localMixVideoTrack,c,this._mixVideoConfig.text);this._mixVideoConfig.text=e,n.text=e,A.length>0&&(r.push(...A),A.length===c.length&&l++)}if(C){I++;const{finalOptions:e,errors:A}=await this.parseImageOptions(this.localMixVideoTrack,C,this._mixVideoConfig.image);this._mixVideoConfig.image=e,n.image=e,A.length>0&&(r.push(...A),A.length===C.length&&l++)}if(u){I++;const{finalOptions:e,errors:A}=await this.parseVideoOptions(this.localMixVideoTrack,u,this._mixVideoConfig.video);this._mixVideoConfig.video=e,n.video=e,A.length>0&&(r.push(...A),A.length===u.length&&l++)}if(l>0&&l===I)throw new t({code:i.INVALID_PARAMETER,message:"all sources mix failed",data:{failedDetails:r}});return A={successOptions:n,failedDetails:r},A}async parseCameraOptions(e,A,t=[]){var i,o;const r=new Set(A.map((e=>e.id))),n=t.filter((e=>!r.has(e.id))).map((e=>e.id));for(const c of n)e.removeCameraSource(c);const s=new Map(t.map((e=>[e.id,e]))),a=[],g=[];for(const c of A){const{id:A,layout:t,profile:r}=c;try{if(e.inputLocalVideoTracks.has(A)){const n=null==(i=e.inputLocalVideoTracks.get(A))?void 0:i.mediaTrack;await this.updateCameraProfile(c);const s=null==(o=e.inputLocalVideoTracks.get(A))?void 0:o.mediaTrack;let a;r&&(a=this.core.utils.isString(r)?this.core.constants.videoProfileMap[r]:r),s!==n?e.updateCameraSource(A,t,s,a):e.updateCameraSource(A,t,null,a)}else{const i=await this.captureCamera(c);try{e.addCameraSource(A,i,t)}catch(e){throw i.close(),e}}a.push(c)}catch(e){g.push({id:A,error:e}),s.has(A)&&a.push(s.get(A))}}return{finalOptions:a,errors:g}}async parseScreenOptions(e,A,t=[]){const i=new Set(A.map((e=>e.id))),o=t.filter((e=>!i.has(e.id))).map((e=>e.id));for(const a of o)e.removeScreenSource(a);const r=new Map(t.map((e=>[e.id,e]))),n=[],s=[];for(const a of A){const{id:A,layout:t}=a;try{if(e.inputLocalScreenTracks.has(A))e.updateScreenSource(A,t);else{const i=await this.captureScreen(a);try{e.addScreenSource(A,i,t)}catch(e){throw i.close(),e}}n.push(a)}catch(e){s.push({id:A,error:e}),r.has(A)&&n.push(r.get(A))}}return{finalOptions:n,errors:s}}async parseTextOptions(e,A,t=[]){const i=new Set(A.map((e=>e.id))),o=t.filter((e=>!i.has(e.id))).map((e=>e.id));for(const a of o)e.removeTextSource(a);const r=new Map(t.map((e=>[e.id,e]))),n=[],s=[];for(const a of A){const{id:A}=a;try{t.some((e=>e.id===A))?e.updateTextSource(a):e.addTextSource(a),n.push(a)}catch(e){s.push({id:A,error:e}),r.has(A)&&n.push(r.get(A))}}return{finalOptions:n,errors:s}}async parseImageOptions(e,A,t=[]){const i=new Set(A.map((e=>e.id))),o=t.filter((e=>!i.has(e.id))).map((e=>e.id));for(const a of o)e.removeImageSource(a);const r=new Map(t.map((e=>[e.id,e]))),n=[],s=[];for(const a of A){const{id:A,url:i,layout:o}=a;try{const r=t.find((e=>e.id===A));if(r){let t;r.url!==i&&(t=await this.core.utils.loadImage(i)),e.updateImageSource(A,o,t)}else{const t=await this.core.utils.loadImage(i);e.addImageSource(A,t,o)}n.push(a)}catch(e){s.push({id:A,error:e}),r.has(A)&&n.push(r.get(A))}}return{finalOptions:n,errors:s}}async parseVideoOptions(e,A,t=[]){const i=new Set(A.map((e=>e.id))),o=t.filter((e=>!i.has(e.id))).map((e=>e.id));for(const a of o)e.removeVideoSource(a);const r=new Map(t.map((e=>[e.id,e]))),n=[],s=[];for(const a of A){const{id:A,url:i,layout:o}=a;try{const r=t.find((e=>e.id===A));let s;if(r)r.url!==i&&(s=await this.core.utils.loadVideo(i)),e.updateVideoSource(A,o,s);else{const t=await this.core.utils.loadVideo(i);e.addVideoSource(A,t,o)}n.push(a)}catch(e){s.push({id:A,error:e}),r.has(A)&&n.push(r.get(A))}}return{finalOptions:n,errors:s}}async captureCamera(e){const{id:A,cameraId:t,videoTrack:i,profile:o}=e,r=new this.core.LocalVideoTrack;r.log.id+=`-${A}`;const n={};return t?n.deviceId=t:this.core.utils.isUndefined(i)||(n.customSource=i),this.core.utils.isUndefined(o)||(this.core.utils.isString(o)?this.core.constants.videoProfileMap[o]&&r.setProfile(this.core.constants.videoProfileMap[o]):r.setProfile(o)),await r.capture(n),r}async updateCameraProfile(e){var A;const{id:t,cameraId:i,videoTrack:o,profile:r}=e,n=null==(A=this.localMixVideoTrack)?void 0:A.inputLocalVideoTracks.get(t);n&&(i?await n.switchDevice(i):this.core.utils.isUndefined(o)||await n.setInputMediaStreamTrack(o),this.core.utils.isUndefined(r)||(this.core.utils.isString(r)?this.core.constants.videoProfileMap[r]&&n.setProfile(this.core.constants.videoProfileMap[r]):n.setProfile(r),i&&n.isNeedToSwitchDevice(i)||await n.applyProfile()))}async captureScreen(e){const{id:A,profile:t,captureElement:i,preferDisplaySurface:o}=e,r=new this.core.LocalScreenTrack;r.log.id+=`-${A}`;const n={};return this.core.utils.isUndefined(t)||(this.core.utils.isString(t)?this.core.constants.screenProfileMap[t]&&r.setProfile(this.core.constants.screenProfileMap[t]):r.setProfile(t)),i&&(n.captureElement=i),o&&(n.preferDisplaySurface=o),await r.capture(n),r.mediaTrack.addEventListener(this.core.constants.NAME.ENDED,(()=>{var e,t,i;null==(e=this.localMixVideoTrack)||e.removeScreenSource(A),(null==(t=this._mixVideoConfig)?void 0:t.screen)&&(this._mixVideoConfig.screen=this._mixVideoConfig.screen.filter((e=>e.id!==A))),null==(i=this.onScreenShareStop)||i.call(this,A)})),r}async _updatePreview({view:e,track:A,prevConfig:t}){if(this.core.utils.isUndefined(e)&&t&&t.view){const e=this.core.utils.getViewListFromView(t.view);e.length>0&&await A.play(e)}if(!this.core.utils.isUndefined(e)){const t=this.core.utils.getViewListFromView(e);t.length>0?await A.play(t):A.stop()}}stop(){var e;null==(e=this.localMixVideoTrack)||e.close(),this.localMixVideoTrack=null,delete this.onScreenShareStop,delete this._mixVideoConfig}};An(In,"Name","VideoMixer");var ln=In,dn=r.default._loggerManager;dn.info("TRTCCloud Version: ".concat(Qr));var hn,Bn,En,Qn="trtcCloud",pn=1;navigator&&navigator.mediaDevices&&navigator.mediaDevices.addEventListener&&navigator.mediaDevices.addEventListener("devicechange",(hn=function(){0!==fn.size&&Array.from(fn.values()).forEach((function(e){e.fn()}))},Bn=30,function(){for(var e=this,A=[],t=0;t<arguments.length;t++)A[t]=arguments[t];En>0&&clearTimeout(En),En=window.setTimeout((function(){hn.apply(e,A),En=-1}),Bn)}));var fn=new Map,Tn=function(A){function i(t){void 0===t&&(t={});var o=A.call(this)||this;o._version="",o._frameWorkType=30,o._component=0,o._language=0,o._networkProxy={},o._localView=null,o._autoRecvAudio=!0,o._autoRecvVideo=!1,o._localTestView=null,o._isVideoPublish=!0,o._localRenderParams={rotation:e.TRTCVideoRotation.TRTCVideoRotation0,fillMode:e.TRTCVideoFillMode.TRTCVideoFillMode_Fill,mirrorType:e.TRTCVideoMirrorType.TRTCVideoMirrorType_Auto},o._encoderMirror=void 0,o._videoProfile={},o._isAudioPublish=!0,o._audioProfile=r.default.TYPE.AUDIO_PROFILE_STANDARD,o._captureVolume=100,o._playoutVolume=100,o._isSharingScreen=!1,o._remoteStreamConfig=new Map,o._remoteStreamMap=new Map,o._cameraList=[],o._microphoneList=[],o._speakerList=[],o._currentCamera={},o._currentMicrophone={},o._currentSpeaker={},o._currentCameraId="",o._currentMicrophoneId="",o._currentSpeakerId="",o._screenShareParams={option:{}},o._isMobile=Vo,o._isFrontCamera=!0,o._cameraVideoTrack=null,o._smallStreamVideoProfile=void 0,o._qosPreference=void 0,o._defaultVideoProfile={width:640,height:480,frameRate:15,bitrate:900},o._defaultScreenProfile={width:1920,height:1080,frameRate:15,bitrate:1500},o._defaultSmallVideoProfile={width:160,height:120,frameRate:15,bitrate:200},o._isVirtualBackground=!1,o._isTestVirtualBackground=!1,o._isBeautyEnabled=!1,o._isTestBeautyEnabled=!1,o._remoteStatisticsUserIdList=[],o._hasJoinedRoom=!1,o._isExitingRoom=!1,o._version=Qr;var n=t.frameWorkType,s=void 0===n?30:n,a=t.component,g=void 0===a?0:a,c=t.language,C=void 0===c?0:c;return o._frameWorkType=s,o._component=g,o._language=C,o._trtc=r.default.create({enableSEI:i.enableSEI,assetsPath:i.assetsPath,plugins:[ln]}),o._testTrtc=r.default.create(),o._log=r.default._loggerManager,o.logger=new Lr(dn,{seq:pn++}),o._echoCancellation=void 0,o._noiseSuppression=void 0,o._autoGainControl=void 0,o._addTRTCEvents(),o.handleDeviceChange=o.handleDeviceChange.bind(o),fn.set(o,{fn:o.handleDeviceChange,self:o}),o}return function(e,A){if("function"!=typeof A&&null!==A)throw new TypeError("Class extends value "+String(A)+" is not a constructor or null");function t(){this.constructor=e}n(e,A),e.prototype=null===A?Object.create(A):(t.prototype=A.prototype,new t)}(i,A),i.getTRTCShareInstance=function(e){return i.shareInstance||(i.shareInstance=new i(e)),i.shareInstance},i.setLogLevel=function(A,t){var i,o=((i={})[e.TRTCLogLevel.TRTCLogLevelVerbose]=0,i[e.TRTCLogLevel.TRTCLogLevelDebug]=1,i[e.TRTCLogLevel.TRTCLogLevelInfo]=2,i[e.TRTCLogLevel.TRTCLogLevelWarn]=3,i[e.TRTCLogLevel.TRTCLogLevelError]=4,i[e.TRTCLogLevel.TRTCLogLevelFatal]=4,i[e.TRTCLogLevel.TRTCLogLevelNone]=5,i),n=o[A];ue(n)&&(n=o[e.TRTCLogLevel.TRTCLogLevelInfo]);var s=!le(t)||t;r.default.setLogLevel(n,s)},i.destroyTRTCShareInstance=function(){i.shareInstance&&(i.shareInstance._destroy(),i.shareInstance=null),Array.from(i.subCloudMap.keys()).forEach((function(e){return e._destroy()}))},i.callExperimentalAPI=function(e){console.log("static ".concat(Qn,".callExperimentalAPI"),e);var A=de(e);if(A!==e){var t=A.api,o=A.params;if(t&&o)try{switch(t){case"enableSEI":i.enableSEI=o.enable;break;case"setAssetsPath":i.assetsPath=o.assetsPath}}catch(r){throw r}}},i.prototype.createSubCloud=function(){if(this!==i.shareInstance)return null;var e=new i;return i.subCloudMap.set(e,e),e},i.prototype.destroy=function(){this!==i.shareInstance?(i.subCloudMap.get(this)&&i.subCloudMap.delete(this),this._destroy()):i.destroyTRTCShareInstance()},i.prototype._destroy=function(){fn.delete(this),this.removeAllListeners(),this._trtc.off("*"),this._trtc.destroy(),this._trtc=null,this._testTrtc.off("*"),this._testTrtc.destroy(),this._testTrtc=null},i.prototype.getSDKVersion=function(){return this._version||""},i.prototype.enterRoom=function(e,A){return a(this,void 0,Promise,(function(){var t,i,o,r,n,a,c,C,u,I,l,d,h,B,E,Q,p,f;return g(this,(function(g){switch(g.label){case 0:if(t=e.sdkAppId,i=e.userId,o=e.userSig,r=e.roomId,n=e.strRoomId,a=e.role,c=e.privateMapKey,C=e.businessInfo,u=e.enableAutoPlayDialog,I=e.proxy,l=e.streamId,d=e.userDefineRecordId,this.logger.update({sdkAppId:t,userId:i}),this.logger.info("".concat(Qn,".enterRoom with params: "),e,A),I&&(this._networkProxy=I),!(t&&i&&o))return[3,5];g.label=1;case 1:return g.trys.push([1,3,,4]),h={sdkAppId:t,userId:i,userSig:o,roomId:r,strRoomId:n,role:ae[a],scene:ge[A],autoReceiveAudio:this._autoRecvAudio,autoReceiveVideo:this._autoRecvVideo,frameWorkType:this._frameWorkType,component:this._component,language:this._language},h=c?s(s({},h),{privateMapKey:c}):h,h=C?s(s({},h),{businessInfo:C}):h,B=u||this._enableAutoPlayDialog,h=le(B)?s(s({},h),{enableAutoPlayDialog:B}):h,h=this._networkProxy?s(s({},h),{proxy:this._networkProxy}):h,h=l?s(s({},h),{streamId:l}):h,h=d?s(s({},h),{userDefineRecordId:d}):h,h=void 0!==this._latencyLevel?s(s({},h),{latencyLevel:this._latencyLevel}):h,E=Ce(),[4,this._trtc.enterRoom(h)];case 2:return g.sent(),this._hasJoinedRoom=!0,Q=Ce()-E,this.emit("onEnterRoom",Q),[3,4];case 3:return p=g.sent(),f=(f=this._transformTRTCErrorCode(p,"enterRoom"))<0?f:-1,this.emit("onEnterRoom",f),this._callFunctionErrorManage(p,"enterRoom"),[3,4];case 4:return[3,6];case 5:this._emitError(Br),g.label=6;case 6:return[2]}}))}))},i.prototype.exitRoom=function(){return a(this,void 0,Promise,(function(){var e;return g(this,(function(A){switch(A.label){case 0:return A.trys.push([0,2,,3]),this.logger.info("".concat(Qn,".exitRoom")),this._isExitingRoom=!0,this._isSharingScreen&&this.stopScreenShare(),this.resetTRTCCloud(),this.stopLocalPreview(),this.stopLocalAudio(),[4,this._trtc.exitRoom()];case 1:return A.sent(),this._hasJoinedRoom=!1,this._isExitingRoom=!1,this.emit("onExitRoom",or.exitRoom),[3,3];case 2:return e=A.sent(),this._callFunctionErrorManage(e,"exitRoom"),[3,3];case 3:return[2]}}))}))},i.prototype.switchRole=function(e){return a(this,void 0,void 0,(function(){var A;return g(this,(function(t){switch(t.label){case 0:this.logger.info("".concat(Qn,".switchRole with param: "),e),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,this._trtc.switchRole(ae[e])];case 2:return t.sent(),this.emit("onSwitchRole",0,"switch role success, role = ".concat(e,", ").concat(ae[e])),[3,4];case 3:return A=t.sent(),this.emit("onSwitchRole",null==A?void 0:A.getCode(),A.message),[3,4];case 4:return[2]}}))}))},i.prototype.setDefaultStreamRecvMode=function(e,A){return a(this,void 0,void 0,(function(){return g(this,(function(t){return this.logger.info("".concat(Qn,".setDefaultStreamRecvMode with param: "),{autoRecvAudio:e,autoRecvVideo:A}),le(e)&&(this._autoRecvAudio=e),le(A)&&(this._autoRecvVideo=A),[2]}))}))},i.prototype.resetTRTCCloud=function(){this._setIsAudioPublish(!0),this._echoCancellation=void 0,this._noiseSuppression=void 0,this._autoGainControl=void 0,this._isVirtualBackground=!1,this._isTestVirtualBackground=!1,this._remoteStatisticsUserIdList=[],this._resetBeautyStyle()},i.prototype._updateLocalVideo=function(){return a(this,void 0,void 0,(function(){var e;return g(this,(function(A){switch(A.label){case 0:return A.trys.push([0,2,,3]),[4,this._trtc.updateLocalVideo(this._generateLocalVideoData())];case 1:return A.sent(),[3,3];case 2:if((e=A.sent()).code!==r.default.ERROR_CODE.OPERATION_ABORT)throw e;return[3,3];case 3:return[2]}}))}))},i.prototype._updateLocalTestVideo=function(){return a(this,void 0,void 0,(function(){var e;return g(this,(function(A){switch(A.label){case 0:return A.trys.push([0,2,,3]),[4,this._testTrtc.updateLocalVideo(this._generateLocalTestVideoData())];case 1:return A.sent(),[3,3];case 2:if((e=A.sent()).code!==r.default.ERROR_CODE.OPERATION_ABORT)throw e;return[3,3];case 3:return[2]}}))}))},i.prototype._updateLocalScreen=function(){return a(this,void 0,void 0,(function(){var e;return g(this,(function(A){switch(A.label){case 0:return A.trys.push([0,2,,3]),[4,this._trtc.updateScreenShare(this._getScreenShareParams())];case 1:return A.sent(),[3,3];case 2:if((e=A.sent()).code!==r.default.ERROR_CODE.OPERATION_ABORT)throw e;return[3,3];case 3:return[2]}}))}))},i.prototype._updateRemoteVideo=function(e,A){return a(this,void 0,void 0,(function(){var t;return g(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,this._trtc.updateRemoteVideo(this._generateRemoteVideoData(e,A))];case 1:return i.sent(),[3,3];case 2:if((t=i.sent()).code!==r.default.ERROR_CODE.OPERATION_ABORT)throw t;return[3,3];case 3:return[2]}}))}))},i.prototype.startLocalPreview=function(){for(var e=[],A=0;A<arguments.length;A++)e[A]=arguments[A];return a(this,void 0,Promise,(function(){var A,t,i,o,n;return g(this,(function(s){switch(s.label){case 0:this.logger.info("".concat(Qn,".startLocalPreview with params: "),e),1===C([],e,!0).length?t=C([],e,!0)[0]:2===C([],e,!0).length&&(n=C([],e,!0),A=n[0],t=n[1]),ue(A)||(this._setIsMobile(!0),this._setIsFrontCamera(A)),this._setLocalView(t),s.label=1;case 1:s.trys.push([1,9,,10]),s.label=2;case 2:return s.trys.push([2,4,,8]),[4,this._trtc.startLocalVideo(this._generateLocalVideoData())];case 3:return s.sent(),[3,8];case 4:return(i=s.sent()).code!==r.default.ERROR_CODE.OPERATION_ABORT?[3,6]:[4,this._updateLocalVideo()];case 5:return s.sent(),[3,7];case 6:throw i;case 7:return[3,8];case 8:return this.emit("onCameraDidReady"),[3,10];case 9:return o=s.sent(),this._callFunctionErrorManage(o,"startLocalPreview"),[3,10];case 10:return[2]}}))}))},i.prototype.updateLocalView=function(e){return a(this,void 0,void 0,(function(){return g(this,(function(A){switch(A.label){case 0:return this.logger.info("".concat(Qn,".updateLocalView with param: "),e),this._setLocalView(e),[4,this._updateLocalVideo()];case 1:return A.sent(),[2]}}))}))},i.prototype.stopLocalPreview=function(){return a(this,void 0,void 0,(function(){var e;return g(this,(function(A){switch(A.label){case 0:this.logger.info("".concat(Qn,".stopLocalPreview")),A.label=1;case 1:return A.trys.push([1,3,,4]),this._setLocalView(null),[4,this._trtc.stopLocalVideo()];case 2:return A.sent(),[3,4];case 3:return e=A.sent(),console.warn("".concat(Qn," stopLocalPreview error: ").concat(e)),this._callFunctionErrorManage(e,"stopLocalPreview"),[3,4];case 4:return[2]}}))}))},i.prototype.muteLocalVideo=function(e){return void 0===e&&(e=!1),a(this,void 0,void 0,(function(){var A;return g(this,(function(t){switch(t.label){case 0:this.logger.info("".concat(Qn,".muteLocalVideo with params: "),e),t.label=1;case 1:return t.trys.push([1,3,,4]),this._setIsVideoPublish(!e),[4,this._updateLocalVideo()];case 2:return t.sent(),[3,4];case 3:return A=t.sent(),this._callFunctionErrorManage(A,"muteLocalVideo"),[3,4];case 4:return[2]}}))}))},i.prototype.startRemoteView=function(A,t,i){return a(this,void 0,void 0,(function(){var o,n;return g(this,(function(s){switch(s.label){case 0:this.logger.info("".concat(Qn,".startRemoteView with params: "),A,t,i),s.label=1;case 1:if(s.trys.push([1,9,,10]),this._setRemoteStreamConfig(A,i,{view:t,small:i===e.TRTCVideoStreamType.TRTCVideoStreamTypeSmall}),!this._remoteStreamMap.get("".concat(A,"_").concat(this._getTRTCStreamType(i))))return[2];s.label=2;case 2:return s.trys.push([2,4,,8]),[4,this._trtc.startRemoteVideo(this._generateRemoteVideoData(A,i))];case 3:return s.sent(),[3,8];case 4:return(o=s.sent()).code!==r.default.ERROR_CODE.OPERATION_ABORT?[3,6]:[4,this._updateRemoteVideo(A,i)];case 5:return s.sent(),[3,7];case 6:throw o;case 7:return[3,8];case 8:return[3,10];case 9:return n=s.sent(),this._callFunctionErrorManage(n,"startRemoteView"),[3,10];case 10:return[2]}}))}))},i.prototype.updateRemoteView=function(e,A,t){return a(this,void 0,void 0,(function(){return g(this,(function(i){switch(i.label){case 0:return this.logger.info("".concat(Qn,".updateRemoteView with params: "),e,A,t),this._setRemoteStreamConfig(e,t,{view:A}),this._remoteStreamMap.get("".concat(e,"_").concat(this._getTRTCStreamType(t)))?[4,this._updateRemoteVideo(e,t)]:[2];case 1:return i.sent(),[2]}}))}))},i.prototype.stopRemoteView=function(e,A){return a(this,void 0,void 0,(function(){var t;return g(this,(function(i){switch(i.label){case 0:this.logger.info("".concat(Qn,".stopRemoteView with params: "),e,A),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this._trtc.stopRemoteVideo({userId:e,streamType:this._getTRTCStreamType(A)})];case 2:return i.sent(),[3,4];case 3:return t=i.sent(),this._callFunctionErrorManage(t,"stopRemoteView"),[3,4];case 4:return[2]}}))}))},i.prototype.stopAllRemoteView=function(){return a(this,void 0,void 0,(function(){var e;return g(this,(function(A){switch(A.label){case 0:this.logger.info("".concat(Qn,".stopAllRemoteView")),A.label=1;case 1:return A.trys.push([1,3,,4]),[4,this._trtc.stopRemoteVideo({userId:"*"})];case 2:return A.sent(),[3,4];case 3:return e=A.sent(),this._callFunctionErrorManage(e,"stopAllRemoteView"),[3,4];case 4:return[2]}}))}))},i.prototype.setVideoEncoderParam=function(A){return a(this,void 0,void 0,(function(){var t,i;return g(this,(function(o){switch(o.label){case 0:this.logger.info("".concat(Qn,".setVideoEncoderParam with params: "),A),o.label=1;case 1:return o.trys.push([1,4,,5]),t=this._getTRTCVideoProfile(e.TRTCVideoStreamType.TRTCVideoStreamTypeBig,A),this._setVideoProfile(t),[4,this._updateLocalVideo()];case 2:return o.sent(),[4,this._updateLocalTestVideo()];case 3:return o.sent(),[3,5];case 4:return i=o.sent(),this._callFunctionErrorManage(i,"setVideoEncoderParam"),[3,5];case 5:return[2]}}))}))},i.prototype.setNetworkQosParam=function(e){return a(this,void 0,void 0,(function(){var A,t,i=this;return g(this,(function(o){return this.logger.info("".concat(Qn,".setNetworkQosParam with params: "),e),A=e.preference,t=this._getTRTCQosPreference(A),this._setQosPreference(t),this._setScreenShareParams({qosPreference:t}),[2,new Promise((function(e,A){Promise.all([i._updateLocalVideo(),i._updateLocalScreen()]).then((function(){e(!0)})).catch((function(e){i._callFunctionErrorManage(e,"setNetworkQosParam"),A(e)}))}))]}))}))},i.prototype.setLocalRenderParams=function(e){return a(this,void 0,void 0,(function(){var A;return g(this,(function(t){switch(t.label){case 0:this.logger.info("".concat(Qn,".setLocalRenderParams with params: "),e),Object.assign(this._localRenderParams,e),t.label=1;case 1:return t.trys.push([1,4,,5]),[4,this._updateLocalVideo()];case 2:return t.sent(),[4,this._updateLocalTestVideo()];case 3:return t.sent(),[3,5];case 4:return A=t.sent(),this._callFunctionErrorManage(A,"setLocalRenderParams"),[3,5];case 5:return[2]}}))}))},i.prototype.setVideoEncoderMirror=function(e){return a(this,void 0,void 0,(function(){var A;return g(this,(function(t){switch(t.label){case 0:this.logger.info("".concat(Qn,".setVideoEncoderMirror with params: "),e),this._encoderMirror=e,t.label=1;case 1:return t.trys.push([1,3,,4]),[4,this._updateLocalVideo()];case 2:return t.sent(),[3,4];case 3:return A=t.sent(),this._callFunctionErrorManage(A,"setVideoEncoderMirror"),[3,4];case 4:return[2]}}))}))},i.prototype.setRemoteRenderParams=function(e,A,t){return a(this,void 0,void 0,(function(){var i;return g(this,(function(o){switch(o.label){case 0:this.logger.info("".concat(Qn,".setRemoteRenderParams with params: "),e,A,t),o.label=1;case 1:return o.trys.push([1,3,,4]),this._setRemoteStreamConfig(e,A,t),[4,this._updateRemoteVideo(e,A)];case 2:return o.sent(),[3,4];case 3:return i=o.sent(),this._callFunctionErrorManage(i,"setRemoteRenderParams"),[3,4];case 4:return[2]}}))}))},i.prototype._updateLocalAudio=function(){return a(this,void 0,void 0,(function(){var e;return g(this,(function(A){switch(A.label){case 0:return A.trys.push([0,2,,3]),[4,this._trtc.updateLocalAudio(this._generateLocalAudioData())];case 1:return A.sent(),[3,3];case 2:if((e=A.sent()).code!==r.default.ERROR_CODE.OPERATION_ABORT)throw e;return[3,3];case 3:return[2]}}))}))},i.prototype._updateLocalTestAudio=function(){return a(this,void 0,void 0,(function(){var e;return g(this,(function(A){switch(A.label){case 0:return A.trys.push([0,2,,3]),[4,this._testTrtc.updateLocalAudio(this._generateLocalTestAudioData())];case 1:return A.sent(),[3,3];case 2:if((e=A.sent()).code!==r.default.ERROR_CODE.OPERATION_ABORT)throw e;return[3,3];case 3:return[2]}}))}))},i.prototype.startLocalAudio=function(A){return void 0===A&&(A=e.TRTCAudioQuality.TRTCAudioQualityDefault),a(this,void 0,void 0,(function(){var t,i,o;return g(this,(function(n){switch(n.label){case 0:A===e.TRTCAudioQuality.TRTCAudioQualitySpeech?this.logger.warn("Web trtcCloud not support audioQuality of TRTCAudioQualitySpeech, and will use TRTCAudioQualityDefault"):this.logger.info("".concat(Qn,".startLocalAudio with params: "),A),t=this._getTRTCAudioQuality(A),n.label=1;case 1:n.trys.push([1,9,,10]),this._setAudioProfile(t),n.label=2;case 2:return n.trys.push([2,4,,8]),[4,this._trtc.startLocalAudio(this._generateLocalAudioData())];case 3:return n.sent(),[3,8];case 4:return(i=n.sent()).code!==r.default.ERROR_CODE.OPERATION_ABORT?[3,6]:[4,this._updateLocalAudio()];case 5:return n.sent(),[3,7];case 6:throw i;case 7:return[3,8];case 8:return this.emit("onMicDidReady"),[3,10];case 9:return o=n.sent(),console.warn("".concat(Qn," startLocalAudio error: ").concat(o)),this._callFunctionErrorManage(o,"startLocalAudio"),[3,10];case 10:return[2]}}))}))},i.prototype.stopLocalAudio=function(){return a(this,void 0,void 0,(function(){var e;return g(this,(function(A){switch(A.label){case 0:this.logger.info("".concat(Qn,".stopLocalAudio")),A.label=1;case 1:return A.trys.push([1,3,,4]),[4,this._trtc.stopLocalAudio()];case 2:return A.sent(),[3,4];case 3:return e=A.sent(),this._callFunctionErrorManage(e,"stopLocalAudio"),[3,4];case 4:return[2]}}))}))},i.prototype.muteLocalAudio=function(e){return void 0===e&&(e=!1),a(this,void 0,void 0,(function(){var A;return g(this,(function(t){switch(t.label){case 0:this.logger.info("".concat(Qn,".muteLocalAudio with params: "),e),t.label=1;case 1:return t.trys.push([1,3,,4]),this._setIsAudioPublish(!e),[4,this._updateLocalAudio()];case 2:return t.sent(),[3,4];case 3:return A=t.sent(),this._callFunctionErrorManage(A,"muteLocalAudio"),[3,4];case 4:return[2]}}))}))},i.prototype.setAudioCaptureVolume=function(e){return a(this,void 0,void 0,(function(){var A;return g(this,(function(t){switch(t.label){case 0:this.logger.info("".concat(Qn,".setAudioCaptureVolume with params: "),e),t.label=1;case 1:return t.trys.push([1,3,,4]),this._setCaptureVolume(e),[4,this._updateLocalAudio()];case 2:return t.sent(),[3,4];case 3:return A=t.sent(),this._callFunctionErrorManage(A,"setAudioCaptureVolume"),[3,4];case 4:return[2]}}))}))},i.prototype.getAudioCaptureVolume=function(){return this.logger.info("".concat(Qn,".getAudioCaptureVolume")),this._getCaptureVolume()},i.prototype.setAudioPlayoutVolume=function(e){return a(this,void 0,void 0,(function(){var A;return g(this,(function(t){switch(t.label){case 0:this.logger.info("".concat(Qn,".setAudioPlayoutVolume with params: "),e),t.label=1;case 1:return t.trys.push([1,3,,4]),this._playoutVolume=e,[4,this._trtc.setRemoteAudioVolume("*",e)];case 2:return t.sent(),[3,4];case 3:return A=t.sent(),this._callFunctionErrorManage(A,"setAudioPlayoutVolume"),[3,4];case 4:return[2]}}))}))},i.prototype.getAudioPlayoutVolume=function(){return this.logger.info("".concat(Qn,".getAudioPlayoutVolume")),this._playoutVolume},i.prototype.muteRemoteAudio=function(e,A){return void 0===A&&(A=!1),a(this,void 0,void 0,(function(){var t;return g(this,(function(i){switch(i.label){case 0:this.logger.info("".concat(Qn,".muteRemoteAudio with params: "),e,A),i.label=1;case 1:return i.trys.push([1,3,,4]),e?[4,this._trtc.muteRemoteAudio(e,A)]:(this._emitError(Br),[2]);case 2:return i.sent(),[3,4];case 3:return t=i.sent(),this._callFunctionErrorManage(t,"muteRemoteAudio"),[3,4];case 4:return[2]}}))}))},i.prototype.muteAllRemoteAudio=function(e){this.logger.info("".concat(Qn,".muteAllRemoteAudio with params: "),e);try{this._trtc.muteRemoteAudio("*",e)}catch(A){this._callFunctionErrorManage(A,"muteAllRemoteAudio")}},i.prototype.setRemoteAudioVolume=function(e,A){this.logger.info("".concat(Qn,".setRemoteAudioVolume with params: "),e,A);try{this._trtc.setRemoteAudioVolume(e,A)}catch(t){this._callFunctionErrorManage(t,"setRemoteAudioVolume")}},i.prototype.enableAudioVolumeEvaluation=function(e){this.logger.info("".concat(Qn,".enableAudioVolumeEvaluation with params: "),e);try{this._trtc.enableAudioVolumeEvaluation(e)}catch(A){this._callFunctionErrorManage(A,"enableAudioVolumeEvaluation")}},i.prototype.enableSmallVideoStream=function(A,t){return a(this,void 0,Promise,(function(){var i;return g(this,(function(o){switch(o.label){case 0:return this.logger.info("".concat(Qn,".enableSmallVideoStream with params: "),A,t),A?(i=this._getTRTCVideoProfile(e.TRTCVideoStreamType.TRTCVideoStreamTypeSmall,t),this._setSmallStreamVideoProfile(i)):this._setSmallStreamVideoProfile(void 0),[4,this._updateLocalVideo()];case 1:return o.sent(),[2]}}))}))},i.prototype.snapshotVideo=function(A,t){var i="";return i=""===A&&t===e.TRTCVideoStreamType.TRTCVideoStreamTypeBig?this._trtc.getVideoSnapshot():""===A&&t===e.TRTCVideoStreamType.TRTCVideoStreamTypeSub?this._trtc.getVideoSnapshot({streamType:this._getTRTCStreamType(t)}):this._trtc.getVideoSnapshot({userId:A,streamType:this._getTRTCStreamType(t)}),this.emit("onSnapshotComplete",A,t,i),i},i.prototype.startScreenShare=function(A,t,i){return a(this,void 0,void 0,(function(){var o,n,s,a,c,C;return g(this,(function(g){switch(g.label){case 0:this.logger.info("".concat(Qn,".startScreenShare with params: "),A,t,i),g.label=1;case 1:return g.trys.push([1,3,,4]),n=(o=i||{}).screenAudio,s=void 0!==n&&n,a=o.videoTrack,c=this._getTRTCVideoProfile(e.TRTCVideoStreamType.TRTCVideoStreamTypeSub,i),this._setScreenShareParams({view:A,profile:c,systemAudio:s,videoTrack:a}),[4,this._trtc.startScreenShare(this._getScreenShareParams())];case 2:return g.sent(),this._isSharingScreen=!0,[3,4];case 3:if((C=g.sent()).code!==r.default.ERROR_CODE.OPERATION_ABORT)throw console.error("Start share screen error:",C,C.code,C.name,C.message),C;return[3,4];case 4:return[2]}}))}))},i.prototype.setSubStreamEncoderParam=function(A){return a(this,void 0,void 0,(function(){var t,i;return g(this,(function(o){switch(o.label){case 0:this.logger.info("".concat(Qn,".setSubStreamEncoderParam with params: "),A),t=this._getTRTCVideoProfile(e.TRTCVideoStreamType.TRTCVideoStreamTypeSub,A),this._setScreenShareParams({profile:t}),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,this._updateLocalScreen()];case 2:return o.sent(),[3,4];case 3:return i=o.sent(),this._callFunctionErrorManage(i,"setSubStreamEncoderParam"),[3,4];case 4:return[2]}}))}))},i.prototype.stopScreenShare=function(){return a(this,void 0,Promise,(function(){var e;return g(this,(function(A){switch(A.label){case 0:this.logger.info("".concat(Qn,".stopScreenShare")),A.label=1;case 1:return A.trys.push([1,3,,4]),[4,this._trtc.stopScreenShare()];case 2:return A.sent(),this._clearScreenShareParams(),this._isSharingScreen=!1,this.emit("onScreenCaptureStopped",0),[3,4];case 3:return e=A.sent(),this._callFunctionErrorManage(e,"stopScreenShare"),[3,4];case 4:return[2]}}))}))},i.prototype._startPublishVideoTrack=function(e){var A=e.videoTrack;return a(this,void 0,void 0,(function(){var e;return g(this,(function(t){switch(t.label){case 0:this._cameraVideoTrack=A,t.label=1;case 1:t.trys.push([1,6,,7]),t.label=2;case 2:return t.trys.push([2,4,,5]),[4,this._trtc.startLocalVideo(this._generateLocalVideoData())];case 3:return t.sent(),[3,5];case 4:throw t.sent();case 5:return[3,7];case 6:return e=t.sent(),this._callFunctionErrorManage(e,"startPublishVideoTrack"),[3,7];case 7:return[2]}}))}))},i.prototype._stopPublishVideoTrack=function(){return a(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return this._cameraVideoTrack=null,[4,this._trtc.stopLocalVideo()];case 1:return e.sent(),[2]}}))}))},i.prototype.startScreenCapture=function(){this._emitError(Er)},i.prototype.pauseScreenCapture=function(){this._emitError(Er)},i.prototype.resumeScreenCapture=function(){this._emitError(Er)},i.prototype.getScreenCaptureSources=function(){this._emitError(Er)},i.prototype.selectScreenCaptureTarget=function(){this._emitError(Er)},i.prototype.getCameraDevicesList=function(){return a(this,void 0,Promise,(function(){var e,A,t;return g(this,(function(i){switch(i.label){case 0:this.logger.info("".concat(Qn,".getCameraDevicesList")),i.label=1;case 1:return i.trys.push([1,5,,6]),[4,r.default.getCameraList()];case 2:return e=i.sent(),A=e.map((function(e){return s(s({},e),{deviceName:e.label})})),this._cameraList=e,"{}"!==JSON.stringify(this._currentCamera)?[3,4]:(this._currentCamera=this.getDefaultDeviceInfo(e),this._currentCameraId=this._currentCamera.deviceId,[4,this.setCurrentCameraDevice(this._currentCameraId)]);case 3:i.sent(),i.label=4;case 4:return[2,Promise.resolve(A)];case 5:return t=i.sent(),this._callFunctionErrorManage(t,"getCameraDevicesList"),[2,Promise.resolve([])];case 6:return[2]}}))}))},i.prototype.setCurrentCameraDevice=function(e){var A;return a(this,void 0,Promise,(function(){var t;return g(this,(function(i){switch(i.label){case 0:this.logger.info("".concat(Qn,".setCurrentCameraDevice with params: "),{cameraId:e}),i.label=1;case 1:return i.trys.push([1,4,,5]),e?(this._currentCameraId=e,[4,this._updateLocalVideo()]):[2,!1];case 2:return i.sent(),[4,this._updateLocalTestVideo()];case 3:return i.sent(),this._currentCamera=this._cameraList.find((function(A){return A.deviceId===e}))||{},[3,5];case 4:throw t=i.sent(),this._currentCameraId=null===(A=this._currentCamera)||void 0===A?void 0:A.cameraId,this._callFunctionErrorManage(t,"setCurrentCameraDevice"),t;case 5:return[2]}}))}))},i.prototype.getCurrentCameraDevice=function(){this.logger.info("".concat(Qn,".getCurrentCameraDevice"));var e=this._currentCamera,A=e.deviceId,t=e.label,i=e.kind,o=e.groupId;return new R(A,t,i,t,o)},i.prototype.isFrontCamera=function(){return this._getIsFrontCamera()},i.prototype.switchCamera=function(e){return a(this,void 0,void 0,(function(){return g(this,(function(A){switch(A.label){case 0:return this.logger.info("".concat(Qn,".switchCamera with params: "),e),this._setIsFrontCamera(e),[4,this._updateLocalVideo()];case 1:return A.sent(),[2]}}))}))},i.prototype._onVirtualBackgroundError=function(e){this._emitError({code:-1006,message:e.message?e.message:"virtual background error"})},i.prototype.setVirtualBackground=function(e){return a(this,void 0,void 0,(function(){var A,t,i,o,r;return g(this,(function(n){switch(n.label){case 0:return n.trys.push([0,10,,11]),A=e.enable,t=e.type,i=e.blurLevel,o=e.imagePath,A?this._isVirtualBackground?t!==ne?[3,2]:[4,this._trtc.updatePlugin(oe,{type:t,blurLevel:i})]:[3,5]:[3,8];case 1:n.sent(),n.label=2;case 2:return t!==se?[3,4]:[4,this._trtc.updatePlugin(oe,{type:t,src:o})];case 3:n.sent(),n.label=4;case 4:return[3,7];case 5:return[4,this._trtc.startPlugin(oe,s(s({},e),{src:o,onAbort:this._onVirtualBackgroundError.bind(this)}))];case 6:n.sent(),this._isVirtualBackground=!0,n.label=7;case 7:return[3,9];case 8:this._trtc.stopPlugin(oe),this._isVirtualBackground=!1,n.label=9;case 9:return[3,11];case 10:throw r=n.sent(),this.logger.error("".concat(Qn,".setVirtualBackground fail: "),r),r;case 11:return[2]}}))}))},i.prototype.setTestVirtualBackground=function(e){return a(this,void 0,void 0,(function(){var A,t,i,o,r;return g(this,(function(n){switch(n.label){case 0:return n.trys.push([0,10,,11]),A=e.enable,t=e.type,i=e.blurLevel,o=e.imagePath,A?this._isTestVirtualBackground?t!==ne?[3,2]:[4,this._testTrtc.updatePlugin(oe,{type:t,blurLevel:i})]:[3,5]:[3,8];case 1:n.sent(),n.label=2;case 2:return t!==se?[3,4]:[4,this._testTrtc.updatePlugin(oe,{type:t,src:o})];case 3:n.sent(),n.label=4;case 4:return[3,7];case 5:return[4,this._testTrtc.startPlugin(oe,s(s({},e),{src:o,onAbort:this._onVirtualBackgroundError.bind(this)}))];case 6:n.sent(),this._isTestVirtualBackground=!0,n.label=7;case 7:return[3,9];case 8:this._testTrtc.stopPlugin(oe),this._isTestVirtualBackground=!1,n.label=9;case 9:return[3,11];case 10:throw r=n.sent(),this.logger.error("".concat(Qn,".setTestVirtualBackground fail: "),r),r;case 11:return[2]}}))}))},i.prototype.useVirtualBackground=function(e){return a(this,void 0,void 0,(function(){return g(this,(function(A){switch(A.label){case 0:return this._trtc?[4,this._trtc.use({plugin:t.VirtualBackground,assetsPath:e})]:[3,2];case 1:A.sent(),A.label=2;case 2:return this._testTrtc?[4,this._testTrtc.use({plugin:t.VirtualBackground,assetsPath:e})]:[3,4];case 3:A.sent(),A.label=4;case 4:return[2]}}))}))},i.prototype.setBeautyStyle=function(e,A,t,i){return a(this,void 0,void 0,(function(){return g(this,(function(o){switch(o.label){case 0:return[4,this._handleBeautyStyleParam(this._trtc,this._isBeautyEnabled,e,A,t,i,!1)];case 1:return o.sent(),[2]}}))}))},i.prototype.setTestBeautyStyle=function(e,A,t,i){return a(this,void 0,void 0,(function(){return g(this,(function(o){switch(o.label){case 0:return[4,this._handleBeautyStyleParam(this._testTrtc,this._isTestBeautyEnabled,e,A,t,i,!0)];case 1:return o.sent(),[2]}}))}))},i.prototype.useBeautyStyle=function(e){return a(this,void 0,void 0,(function(){return g(this,(function(A){switch(A.label){case 0:return this._trtc?[4,this._trtc.use({plugin:Dr,assetsPath:e})]:[3,2];case 1:A.sent(),A.label=2;case 2:return this._testTrtc?[4,this._testTrtc.use({plugin:Dr,assetsPath:e})]:[3,4];case 3:A.sent(),A.label=4;case 4:return[2]}}))}))},i.prototype._handleBeautyStyleParam=function(e,A,t,i,o,r,n){return a(this,void 0,void 0,(function(){var t,s,a,c,C;return g(this,(function(g){switch(g.label){case 0:if(i<0||i>9)throw new Error("beautyLevel must be between 0 and 9");if(o<0||o>9)throw new Error("whitenessLevel must be between 0 and 9");if(r<0||r>9)throw new Error("ruddinessLevel must be between 0 and 9");g.label=1;case 1:return g.trys.push([1,8,,9]),s=o/9,a=r/9,0===(t=i/9)&&0===s&&0===a?[4,e.stopPlugin(re)]:[3,3];case 2:return g.sent(),n?this._isTestBeautyEnabled=!1:this._isBeautyEnabled=!1,[3,7];case 3:return c={beauty:t,brightness:s,ruddy:a},A?[3,5]:[4,e.startPlugin(re,c)];case 4:return g.sent(),n?this._isTestBeautyEnabled=!0:this._isBeautyEnabled=!0,[3,7];case 5:return[4,e.updatePlugin(re,c)];case 6:g.sent(),g.label=7;case 7:return[3,9];case 8:throw C=g.sent(),n?this.logger.error("".concat(Qn,".").concat("setTestBeautyStyle"," fail: "),C):this.logger.error("".concat(Qn,".").concat("setBeautyStyle"," fail: "),C),C;case 9:return[2]}}))}))},i.prototype._resetBeautyStyle=function(){return a(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return this._isBeautyEnabled?[4,this._trtc.stopPlugin(re)]:[3,2];case 1:e.sent(),this._isBeautyEnabled=!1,e.label=2;case 2:return this._isTestBeautyEnabled?[4,this._testTrtc.stopPlugin(re)]:[3,4];case 3:e.sent(),this._isTestBeautyEnabled=!1,e.label=4;case 4:return[2]}}))}))},i.prototype.getMicDevicesList=function(){return a(this,void 0,Promise,(function(){var e,A,t;return g(this,(function(i){switch(i.label){case 0:this.logger.info("".concat(Qn,".getMicDevicesList")),i.label=1;case 1:return i.trys.push([1,5,,6]),[4,r.default.getMicrophoneList()];case 2:return e=i.sent(),A=e.map((function(e){return s(s({},e),{deviceName:e.label})})),this._microphoneList=e,"{}"!==JSON.stringify(this._currentMicrophone)?[3,4]:(this._currentMicrophone=this.getDefaultDeviceInfo(e),this._currentMicrophoneId=this._currentMicrophone.deviceId,[4,this.setCurrentMicDevice(this._currentMicrophoneId)]);case 3:i.sent(),i.label=4;case 4:return[2,Promise.resolve(A)];case 5:return t=i.sent(),this._callFunctionErrorManage(t,"getMicDevicesList"),[2,Promise.resolve([])];case 6:return[2]}}))}))},i.prototype.setCurrentMicDevice=function(e){var A;return a(this,void 0,Promise,(function(){var t;return g(this,(function(i){switch(i.label){case 0:this.logger.info("".concat(Qn,".setCurrentMicDevice with params: "),{micId:e}),i.label=1;case 1:return i.trys.push([1,4,,5]),e?(this._setCurrentMicrophoneId(e),[4,this._updateLocalAudio()]):[2,!1];case 2:return i.sent(),[4,this._updateLocalTestAudio()];case 3:return i.sent(),this._currentMicrophone=this._microphoneList.find((function(A){return A.deviceId===e}))||{},[3,5];case 4:throw t=i.sent(),this._setCurrentMicrophoneId(null===(A=this._currentMicrophone)||void 0===A?void 0:A.deviceId),this._callFunctionErrorManage(t,"setCurrentMicDevice"),t;case 5:return[2]}}))}))},i.prototype.getCurrentMicDevice=function(){this.logger.info("".concat(Qn,".getCurrentMicDevice"));var e=this._currentMicrophone,A=e.deviceId,t=e.label,i=e.kind,o=e.groupId;return new R(A,t,i,t,o)},i.prototype.getSpeakerDevicesList=function(){return a(this,void 0,Promise,(function(){var e,A,t;return g(this,(function(i){switch(i.label){case 0:this.logger.info("".concat(Qn,".getSpeakerDevicesList")),i.label=1;case 1:return i.trys.push([1,5,,6]),[4,r.default.getSpeakerList()];case 2:return e=i.sent(),A=e.map((function(e){return s(s({},e),{deviceName:e.label})})),this._speakerList=e,"{}"!==JSON.stringify(this._currentSpeaker)?[3,4]:(this._currentSpeaker=this.getDefaultDeviceInfo(e),this._currentSpeakerId=this._currentSpeaker.deviceId,[4,this.setCurrentSpeakerDevice(this._currentSpeakerId)]);case 3:i.sent(),i.label=4;case 4:return[2,Promise.resolve(A)];case 5:return t=i.sent(),this._callFunctionErrorManage(t,"getSpeakerDevicesList"),[2,Promise.resolve([])];case 6:return[2]}}))}))},i.prototype.setCurrentSpeakerDevice=function(e){return a(this,void 0,Promise,(function(){var A;return g(this,(function(t){switch(t.label){case 0:this.logger.info("".concat(Qn,".setCurrentSpeakerDevice with params: "),{speakerId:e}),t.label=1;case 1:return t.trys.push([1,3,,4]),e?[4,r.default.setCurrentSpeaker(e)]:[2,!1];case 2:return t.sent(),this._setCurrentSpeakerId(e),this._currentSpeaker=this._speakerList.find((function(A){return A.deviceId===e}))||{},[3,4];case 3:throw A=t.sent(),this._callFunctionErrorManage(A,"setCurrentSpeakerDevice"),A;case 4:return[2]}}))}))},i.prototype.getCurrentSpeakerDevice=function(){this.logger.info("".concat(Qn,".getCurrentSpeakerDevice"));var e=this._currentSpeaker,A=e.deviceId,t=e.label,i=e.kind,o=e.groupId;return new R(A,t,i,t,o)},i.prototype.startCameraDeviceTest=function(e){return a(this,void 0,void 0,(function(){var A;return g(this,(function(t){switch(t.label){case 0:if(this.logger.info("".concat(Qn,".startCameraDeviceTest with params: "),e),!e)return[2];this._setLocalTestView(e),t.label=1;case 1:return t.trys.push([1,3,,7]),[4,this._testTrtc.startLocalVideo(this._generateLocalTestVideoData())];case 2:return t.sent(),[3,7];case 3:return(A=t.sent()).code!==r.default.ERROR_CODE.OPERATION_ABORT?[3,5]:[4,this._updateLocalTestVideo()];case 4:return t.sent(),[3,6];case 5:throw this._callFunctionErrorManage(A,"startCameraDeviceTest"),A;case 6:return[3,7];case 7:return[2]}}))}))},i.prototype.stopCameraDeviceTest=function(){return a(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return this.logger.info("".concat(Qn,".stopCameraDeviceTest")),this._setLocalTestView(null),[4,this._testTrtc.stopLocalVideo()];case 1:return e.sent(),[2]}}))}))},i.prototype.startMicDeviceTest=function(e){return a(this,void 0,void 0,(function(){var A,t=this;return g(this,(function(i){switch(i.label){case 0:this.logger.info("".concat(Qn,".startMicDeviceTest with params: "),e),i.label=1;case 1:return i.trys.push([1,3,,7]),[4,this._testTrtc.startLocalAudio(this._generateLocalTestAudioData())];case 2:return i.sent(),[3,7];case 3:return(A=i.sent()).code!==r.default.ERROR_CODE.OPERATION_ABORT?[3,5]:[4,this._updateLocalTestAudio()];case 4:return i.sent(),[3,6];case 5:throw this._callFunctionErrorManage(A,"startMicDeviceTest"),A;case 6:return[3,7];case 7:return this._testTrtc.on(r.default.EVENT.AUDIO_VOLUME,(function(e){null==e||e.result.forEach((function(e){var A=e.userId,i=e.volume;""===A&&t.emit("onTestMicVolume",i)}))})),[4,this._testTrtc.enableAudioVolumeEvaluation(e)];case 8:return i.sent(),[2]}}))}))},i.prototype.stopMicDeviceTest=function(){return a(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return this.logger.info("".concat(Qn,".stopMicDeviceTest")),[4,this._testTrtc.stopLocalAudio()];case 1:return e.sent(),[2]}}))}))},i.prototype.callExperimentalAPI=function(e){return a(this,void 0,void 0,(function(){var A,t,i;return g(this,(function(o){switch(o.label){case 0:if(this.logger.info("".concat(Qn,".callExperimentalAPI"),e),(A=de(e))===e)return[2];if(t=A.api,i=A.params,!t||!i)return[2];o.label=1;case 1:switch(o.trys.push([1,19,,20]),t){case"setFramework":return[3,2];case"enableAudioAEC":return[3,3];case"enableAudioANS":return[3,4];case"enableAudioAGC":return[3,5];case"KeyMetricsStats":return[3,6];case"setNetworkProxy":return[3,7];case"enableVirtualBackground":return[3,8];case"enableTestVirtualBackground":return[3,10];case"enableTestBeautyStyle":return[3,12];case"setVideoEncodeParamEx":return[3,14];case"enableAutoPlayDialog":return[3,15];case"setAudienceLatencyLevel":return[3,16]}return[3,17];case 2:return this._handleSetFrameWork(i),[3,18];case 3:return this._echoCancellation=Boolean(i.enable),[3,18];case 4:return this._noiseSuppression=Boolean(i.enable),[3,18];case 5:return this._autoGainControl=Boolean(i.enable),[3,18];case 6:return this._handleKeyMetricsStats(i),[3,18];case 7:return this._networkProxy=i,[3,18];case 8:return[4,this.setVirtualBackground(i)];case 9:return o.sent(),[3,18];case 10:return[4,this.setTestVirtualBackground(i)];case 11:return o.sent(),[3,18];case 12:return[4,this.setTestBeautyStyle(i.style,i.beautyLevel,i.whitenessLevel,i.ruddinessLevel)];case 13:return o.sent(),[3,18];case 14:return this._setVideoEncodeParamEx(i),[3,18];case 15:return this._enableAutoPlayDialog=Boolean(i.enable),[3,18];case 16:return this._latencyLevel=i.latencyLevel,[3,18];case 17:return[3,18];case 18:return[3,20];case 19:throw o.sent();case 20:return[2]}}))}))},i.prototype._handleSetFrameWork=function(e){var A=e.frameWork,t=e.component,i=e.language;Ie(A)&&(this._frameWorkType=A),Ie(t)&&(this._component=t),Ie(i)&&(this._language=i)},i.prototype._handleKeyMetricsStats=function(e){var A=e.key,t=e.opt,i=e.value,o=e.version,n=t===ce;r.default._addKVStat({type:t,key:A,value:i,version:o,useUV:n,base:100})},i.prototype._setVideoEncodeParamEx=function(A){return a(this,void 0,void 0,(function(){return g(this,(function(t){switch(t.label){case 0:switch(A.streamType){case e.TRTCVideoStreamType.TRTCVideoStreamTypeBig:return[3,1];case e.TRTCVideoStreamType.TRTCVideoStreamTypeSub:return[3,3]}return[3,5];case 1:return[4,this.setVideoEncoderParam(A)];case 2:case 4:return t.sent(),[3,6];case 3:return[4,this.setSubStreamEncoderParam(A)];case 5:return[3,6];case 6:return[2]}}))}))},i.prototype._emitError=function(e){e&&this.emit&&this.emit(ee,e.code,e.message)},i.prototype._emitWarning=function(e){this.emit&&this.emit(Ae,e)},i.prototype._transformTRTCServerError=function(e){return-8===e.extraCode?hr:0===String(e.extraCode).indexOf("70")?0-e.extraCode:void 0},i.prototype._transformTRTCInvalidOperationError=function(e,A){return"enterRoom"!==A||5104!==e.extraCode&&5998!==e.code?e.code:sr},i.prototype._isCameraError=function(e){return["startLocalPreview","updateLocalView","muteLocalVideo","setVideoEncoderParam","setCurrentCameraDevice","switchCamera","setLocalRenderParams","enableSmallVideoStream","startCameraDeviceTest"].includes(e)},i.prototype._isMicError=function(e){return["startLocalAudio","muteLocalAudio","setAudioCaptureVolume","setCurrentMicDevice","startMicDeviceTest"].includes(e)},i.prototype._transformTRTCDeviceError=function(e,A){var t=this._isCameraError(A),i=this._isMicError(A);switch(e.extraCode){case 5301:case 5305:case 5306:case 5307:case 5308:case 5309:if(t)return ar;if(i)return ur;break;case 5302:if(t)return gr;if(i)return Ir;break;case 5303:if(t)return Cr;if(i)return dr;break;case 5304:if(t)return cr;if(i)return lr}},i.prototype._transformTRTCUnKnowError=function(e,A){var t=this._isCameraError(A),i=this._isMicError(A);return t?ar:i?ur:e.code},i.prototype._transformTRTCErrorCode=function(e,A){var t=null==e?void 0:e.code;if(e&&e.code)switch(e.code){case r.default.ERROR_CODE.DEVICE_ERROR:t=this._transformTRTCDeviceError(e,A);break;case r.default.ERROR_CODE.SERVER_ERROR:t=this._transformTRTCServerError(e);break;case r.default.ERROR_CODE.INVALID_OPERATION:case r.default.ERROR_CODE.OPERATION_ABORT:t=this._transformTRTCInvalidOperationError(e,A);break;case r.default.ERROR_CODE.UNKNOWN_ERROR:t=this._transformTRTCUnKnowError(e,A)}return t},i.prototype._callFunctionErrorManage=function(e,A){if(!e||e.code!==r.default.ERROR_CODE.OPERATION_ABORT){this.logger.warn("(".concat(A,") failed - ").concat(e.code," - ").concat(e.message));var t=this._transformTRTCErrorCode(e,A);this.emit(ee,t,e.message)}},i.prototype._getTRTCResolution=function(A){var t=(e.TRTCVideoResolution[A]||"").split("_");return{width:+(t.length>1&&t[1]),height:+(t.length>2&&t[2])}},i.prototype._getTRTCVideoProfile=function(A,t){void 0===t&&(t={});var i=t.videoWidth,o=t.videoHeight,r=t.videoResolution,n=t.videoFps,s=t.videoBitrate,a=t.resMode,g=t.resolutionMode,c={};switch(A){case e.TRTCVideoStreamType.TRTCVideoStreamTypeSub:c=this._defaultScreenProfile;break;case e.TRTCVideoStreamType.TRTCVideoStreamTypeSmall:c=this._defaultSmallVideoProfile;break;case e.TRTCVideoStreamType.TRTCVideoStreamTypeBig:default:c=this._defaultVideoProfile}if(ue(r))ue(i)||(c.width=i),ue(o)||(c.height=o);else{var C=this._getTRTCResolution(r);c.width=C.width,c.height=C.height}if(!ue(a)&&a===e.TRTCVideoResolutionMode.TRTCVideoResolutionModePortrait||!ue(g)&&g===e.TRTCVideoResolutionMode.TRTCVideoResolutionModePortrait){var u=c.height,I=c.width;c.width=u,c.height=I}return n&&(c.frameRate=n),s&&(c.bitrate=s),c},i.prototype._getTRTCStreamType=function(A){var t;return((t={})[e.TRTCVideoStreamType.TRTCVideoStreamTypeBig]=r.default.TYPE.STREAM_TYPE_MAIN,t[e.TRTCVideoStreamType.TRTCVideoStreamTypeSmall]=r.default.TYPE.STREAM_TYPE_MAIN,t[e.TRTCVideoStreamType.TRTCVideoStreamTypeSub]=r.default.TYPE.STREAM_TYPE_SUB,t)[A]},i.prototype._getTRTCFillMode=function(A){var t;return((t={})[e.TRTCVideoFillMode.TRTCVideoFillMode_Fill]=ir.COVER,t[e.TRTCVideoFillMode.TRTCVideoFillMode_Fit]=ir.CONTAIN,t)[A]},i.prototype._getLocalRenderMirror=function(A){var t;return A===e.TRTCVideoMirrorType.TRTCVideoMirrorType_Auto?!this._getIsMobile()||this._getIsFrontCamera():((t={})[e.TRTCVideoMirrorType.TRTCVideoMirrorType_Enable]=!0,t[e.TRTCVideoMirrorType.TRTCVideoMirrorType_Disable]=!1,t)[A]},i.prototype._getTRTCLocalMirror=function(e,A){var t=this._getLocalRenderMirror(e);return ue(A)?!!t&&"both":t&&A?"both":t&&!A?"view":!t&&A?"publish":!(!t&&!A)&&"view"},i.prototype._getTRTCRemoteMirror=function(A){var t;return((t={})[e.TRTCVideoMirrorType.TRTCVideoMirrorType_Auto]=!1,t[e.TRTCVideoMirrorType.TRTCVideoMirrorType_Enable]=!0,t[e.TRTCVideoMirrorType.TRTCVideoMirrorType_Disable]=!1,t)[A]},i.prototype._getTRTCQosPreference=function(A){var t;return((t={})[e.TRTCVideoQosPreference.TRTCVideoQosPreferenceSmooth]=r.default.TYPE.QOS_PREFERENCE_SMOOTH,t[e.TRTCVideoQosPreference.TRTCVideoQosPreferenceClear]=r.default.TYPE.QOS_PREFERENCE_CLEAR,t)[A]},i.prototype._getTRTCAudioQuality=function(A){var t;return((t={})[e.TRTCAudioQuality.TRTCAudioQualitySpeech]=r.default.TYPE.AUDIO_PROFILE_STANDARD,t[e.TRTCAudioQuality.TRTCAudioQualityDefault]=r.default.TYPE.AUDIO_PROFILE_STANDARD,t[e.TRTCAudioQuality.TRTCAudioQualityMusic]=r.default.TYPE.AUDIO_PROFILE_HIGH_STEREO,t)[A]},i.prototype._getTRTCCloudDeviceType=function(A){return{camera:e.TRTCDeviceType.TRTCDeviceTypeCamera,microphone:e.TRTCDeviceType.TRTCDeviceTypeMic,speaker:e.TRTCDeviceType.TRTCDeviceTypeSpeaker}[A]},i.prototype._getTRTCCloudDeviceState=function(A){return{add:e.TRTCDeviceState.TRTCDeviceStateAdd,remove:e.TRTCDeviceState.TRTCDeviceStateRemove,active:e.TRTCDeviceState.TRTCDeviceStateActive}[A]},i.prototype._getTRTCCloudQuality=function(A){return[e.TRTCQuality.TRTCQuality_Unknown,e.TRTCQuality.TRTCQuality_Excellent,e.TRTCQuality.TRTCQuality_Good,e.TRTCQuality.TRTCQuality_Poor,e.TRTCQuality.TRTCQuality_Bad,e.TRTCQuality.TRTCQuality_Vbad,e.TRTCQuality.TRTCQuality_Down][A]},i.prototype._generateLocalVideoData=function(){var e={view:this._getLocalView(),publish:this._getIsVideoPublish(),option:{profile:this._getVideoProfile(),small:this._getSmallStreamVideoProfile()||!1,mirror:this._getTRTCLocalMirror(this._localRenderParams.mirrorType,this._encoderMirror),fillMode:this._getTRTCFillMode(this._localRenderParams.fillMode)}};return this._cameraVideoTrack?e&&Object.assign(e.option,{videoTrack:this._cameraVideoTrack}):this._getIsMobile()?e&&Object.assign(e.option,{useFrontCamera:this._getIsFrontCamera()}):e&&Object.assign(e.option,{cameraId:this._getCurrentCameraId()}),this._getQosPreference()&&e&&Object.assign(e.option,{qosPreference:this._getQosPreference()}),e},i.prototype._generateLocalTestVideoData=function(){return{view:this._getLocalTestView(),publish:!1,option:{cameraId:this._getCurrentCameraId(),profile:this._getVideoProfile(),mirror:this._getTRTCLocalMirror(this._localRenderParams.mirrorType,this._encoderMirror),fillMode:this._getTRTCFillMode(this._localRenderParams.fillMode)}}},i.prototype._generateLocalAudioData=function(){var e={publish:this._getIsAudioPublish(),option:{microphoneId:this._getCurrentMicrophoneId(),profile:this._getAudioProfile(),captureVolume:this._getCaptureVolume()}};return le(this._echoCancellation)&&(e.option.echoCancellation=this._echoCancellation),le(this._autoGainControl)&&(e.option.autoGainControl=this._autoGainControl),le(this._noiseSuppression)&&(e.option.noiseSuppression=this._noiseSuppression),e},i.prototype._generateLocalTestAudioData=function(){return{publish:!1,option:{microphoneId:this._getCurrentMicrophoneId(),profile:this._getAudioProfile()}}},i.prototype._generateRemoteVideoData=function(e,A){return this._remoteStreamConfig.get("".concat(e,"_").concat(this._getTRTCStreamType(A)))},i.prototype._addTRTCEvents=function(){var A=this;this._trtc.on(r.default.EVENT.ERROR,(function(e){e&&A.emit("onError",e.code,e.message)})),this._trtc.on(r.default.EVENT.REMOTE_USER_ENTER,(function(e){(null==e?void 0:e.userId)&&A.emit("onRemoteUserEnterRoom",e.userId)})),this._trtc.on(r.default.EVENT.REMOTE_USER_EXIT,(function(e){(null==e?void 0:e.userId)&&A.emit("onRemoteUserLeaveRoom",e.userId)})),this._trtc.on(r.default.EVENT.REMOTE_AUDIO_AVAILABLE,(function(e){(null==e?void 0:e.userId)&&A.emit("onUserAudioAvailable",e.userId,!0)})),this._trtc.on(r.default.EVENT.REMOTE_AUDIO_UNAVAILABLE,(function(e){(null==e?void 0:e.userId)&&A.emit("onUserAudioAvailable",e.userId,!1)})),this._trtc.on(r.default.EVENT.REMOTE_VIDEO_AVAILABLE,(function(e){A._emitVideoAvailable(e,!0)})),this._trtc.on(r.default.EVENT.REMOTE_VIDEO_UNAVAILABLE,(function(e){A._emitVideoAvailable(e,!1)})),this._trtc.on(r.default.EVENT.AUDIO_VOLUME,(function(e){(null==e?void 0:e.result)&&A.emit("onUserVoiceVolume",null==e?void 0:e.result,((null==e?void 0:e.result)||[]).length)})),this._trtc.on(r.default.EVENT.KICKED_OUT,(function(e){var t={banned:or.banned,room_disband:or.roomDisband};Ie(t[e.reason])&&A.emit("onExitRoom",t[e.reason])})),this._trtc.on(r.default.EVENT.NETWORK_QUALITY,(function(e){var t=e.uplinkNetworkQuality,i=e.downlinkNetworkQuality,o=new G("",A._getTRTCCloudQuality(t)),r=[];A._remoteStatisticsUserIdList.length>0&&(r=A._remoteStatisticsUserIdList.map((function(e){return new G(e,A._getTRTCCloudQuality(i))}))),A.emit("onNetworkQuality",o,r)})),this._trtc.on(r.default.EVENT.AUTOPLAY_FAILED,(function(e){A.emit("onAutoPlayFailed",e)})),this._trtc.on(r.default.EVENT.SEI_MESSAGE,(function(e){if(e.data&&"object"==typeof e.data&&e.data instanceof ArrayBuffer){for(var t=new Uint8Array(e.data),i="",o=0;o<t.length;o++)i+=String.fromCharCode(t[o]);e.stringData=i}A.emit("onRecvSEIMsg",e.userId,JSON.stringify(e))})),this._trtc.on(r.default.EVENT.STATISTICS,(function(t){var i,o=t.rtt,r=t.upLoss,n=t.downLoss,s=t.bytesSent,a=t.bytesReceived,g=t.localStatistics,c=t.remoteStatistics;A._remoteStatisticsUserIdList=c.map((function(e){return e.userId}));var C={big:e.TRTCVideoStreamType.TRTCVideoStreamTypeBig,small:e.TRTCVideoStreamType.TRTCVideoStreamTypeSmall,sub:e.TRTCVideoStreamType.TRTCVideoStreamTypeSub},u=(null===(i=g.video)||void 0===i?void 0:i.length)>0?g.video.map((function(e){var A=new V;return A.width=e.width,A.height=e.height,A.frameRate=e.frameRate,A.videoBitrate=e.bitrate,A.audioBitrate=g.audio.bitrate||0,A.streamType=C[e.videoType],A})):[];if(0===u.length&&g.audio.bitrate>0){var I=new V;I.audioBitrate=g.audio.bitrate||0,u.push(I)}var l=[];c.forEach((function(e){var A=[],t=e.userId,i=e.audio.bitrate;if(e.video&&e.video.forEach((function(e){var o=new P;o.userId=t,o.width=e.width,o.height=e.height,o.frameRate=e.frameRate,o.videoBitrate=e.bitrate,o.audioBitrate=i||0,o.streamType=C[e.videoType],A.push(o)})),0===A.length){var o=new P;o.userId=t,o.audioBitrate=i||0,A.push(o)}l.push.apply(l,A)}));var d=new x;d.upLoss=r,d.downLoss=n,d.rtt=o,d.sentBytes=s,d.receivedBytes=a,d.localStatisticsArray=u,d.localStatisticsArraySize=u.length,d.remoteStatisticsArray=l,d.remoteStatisticsArraySize=l.length,A.emit("onStatistics",d)})),this._trtc.on(r.default.EVENT.SCREEN_SHARE_STOPPED,(function(){A.emit("onScreenCaptureStopped",0),A._clearScreenShareParams(),A._isSharingScreen=!1})),this._trtc.on(r.default.EVENT.PUBLISH_STATE_CHANGED,(function(t){var i=t.mediaType;"started"===t.state&&("audio"===i?A.emit("onSendFirstLocalAudioFrame"):"video"===i?A.emit("onSendFirstLocalVideoFrame",e.TRTCVideoStreamType.TRTCVideoStreamTypeBig):"screen"===i&&A.emit("onSendFirstLocalVideoFrame",e.TRTCVideoStreamType.TRTCVideoStreamTypeSub))})),this._trtc.on(r.default.EVENT.FIRST_VIDEO_FRAME,(function(e){var t=e.userId,i=e.streamType,o=e.width,r=e.height;A.emit("onFirstVideoFrame",t,i,o,r)})),this._trtc.on(r.default.EVENT.AUDIO_PLAY_STATE_CHANGED,(function(e){var t=e.userId;"PLAYING"===e.state&&A.emit("onFirstAudioFrame",t)})),this._trtc.on(r.default.EVENT.DEVICE_CHANGED,(function(e){var t=e.type,i=e.device,o=e.action,r=i.deviceId;if("active"===o){switch(t){case"camera":A._currentCameraId=r,A._currentCamera=i;break;case"microphone":A._currentMicrophoneId=r,A._currentMicrophone=i;break;case"speaker":A._currentSpeakerId=r,A._currentSpeaker=i}A.emitOnDeviceChange(r,A._getTRTCCloudDeviceType(t),A._getTRTCCloudDeviceState(o))}})),this._trtc.on(r.default.EVENT.CUSTOM_MESSAGE,(function(e){e&&A.emit("onRecvCustomCmdMsg",e.userId,e.cmdId,e.seq,null==e?void 0:e.data)})),this._trtc.on(r.default.EVENT.CONNECTION_STATE_CHANGED,(function(e){A._hasJoinedRoom&&!A._isExitingRoom&&("CONNECTED"===e.prevState&&"DISCONNECTED"===e.state?A.emit("onConnectionLost"):"DISCONNECTED"===e.prevState&&"CONNECTING"===e.state?A.emit("onTryToReconnect"):"CONNECTING"===e.prevState&&"CONNECTED"===e.state&&A.emit("onConnectionRecovery"))}))},i.prototype._removeTRTCEvents=function(){this._trtc.off("*")},i.prototype._emitVideoAvailable=function(e,A){var t=e.userId,i=e.streamType;A?this._remoteStreamMap.set("".concat(t,"_").concat(i),!0):this._remoteStreamMap.delete("".concat(t,"_").concat(i)),i===r.default.TYPE.STREAM_TYPE_SUB?t&&this.emit("onUserSubStreamAvailable",t,A):t&&this.emit("onUserVideoAvailable",t,A)},i.prototype._setLocalView=function(e){this._localView=e},i.prototype._getLocalView=function(){return this._localView},i.prototype._setIsMobile=function(e){this._isMobile=e},i.prototype._getIsMobile=function(){return this._isMobile},i.prototype._setIsFrontCamera=function(e){this._isFrontCamera=e},i.prototype._getIsFrontCamera=function(){return this._isFrontCamera},i.prototype._getSmallStreamVideoProfile=function(){return this._smallStreamVideoProfile},i.prototype._setSmallStreamVideoProfile=function(e){this._smallStreamVideoProfile=e},i.prototype._setIsVideoPublish=function(e){this._isVideoPublish=e},i.prototype._getIsVideoPublish=function(){return this._isVideoPublish},i.prototype._setVideoProfile=function(e){this._videoProfile=e},i.prototype._getVideoProfile=function(){return this._videoProfile},i.prototype._setQosPreference=function(e){this._qosPreference=e},i.prototype._getQosPreference=function(){return this._qosPreference},i.prototype._setLocalTestView=function(e){this._localTestView=e},i.prototype._getLocalTestView=function(){return this._localTestView},i.prototype._setScreenShareParams=function(e){var A=e.view,t=e.systemAudio,i=e.fillMode,o=e.profile,r=e.videoTrack,n=e.qosPreference;ue(A)||(this._screenShareParams.view=A),ue(t)||(this._screenShareParams.option.systemAudio=t),ue(i)||(this._screenShareParams.option.fillMode=i),ue(o)||(this._screenShareParams.option.profile=o),ue(r)||(this._screenShareParams.option.videoTrack=r),ue(n)||(this._screenShareParams.option.qosPreference=n)},i.prototype._clearScreenShareParams=function(){var e,A,t,i,o;(null===(e=this._screenShareParams)||void 0===e?void 0:e.view)&&delete this._screenShareParams.view,(null===(t=null===(A=this._screenShareParams)||void 0===A?void 0:A.option)||void 0===t?void 0:t.systemAudio)&&delete this._screenShareParams.option.systemAudio,(null===(o=null===(i=this._screenShareParams)||void 0===i?void 0:i.option)||void 0===o?void 0:o.videoTrack)&&delete this._screenShareParams.option.videoTrack},i.prototype._getScreenShareParams=function(){return this._screenShareParams},i.prototype._setIsAudioPublish=function(e){this._isAudioPublish=e},i.prototype._getIsAudioPublish=function(){return this._isAudioPublish},i.prototype._setAudioProfile=function(e){this._audioProfile=e},i.prototype._getAudioProfile=function(){return this._audioProfile},i.prototype._getCaptureVolume=function(){return this._captureVolume},i.prototype._setCaptureVolume=function(e){this._captureVolume=e},i.prototype._setCurrentCameraId=function(e){this._currentCameraId=e},i.prototype._getCurrentCameraId=function(){return this._currentCameraId},i.prototype._setCurrentMicrophoneId=function(e){this._currentMicrophoneId=e},i.prototype._getCurrentMicrophoneId=function(){return this._currentMicrophoneId},i.prototype._setCurrentSpeakerId=function(e){this._currentSpeakerId=e},i.prototype._getCurrentSpeakerId=function(){return this._currentSpeakerId},i.prototype._setRemoteStreamConfig=function(A,t,i){var o=this._remoteStreamConfig.get("".concat(A,"_").concat(this._getTRTCStreamType(t)));o||(o={userId:A,streamType:this._getTRTCStreamType(t),option:{mirror:this._getTRTCRemoteMirror(e.TRTCVideoMirrorType.TRTCVideoMirrorType_Disable),fillMode:this._getTRTCFillMode(e.TRTCVideoFillMode.TRTCVideoFillMode_Fit)}});var r=i.view,n=i.mirrorType,s=i.fillMode,a=i.small;ue(r)||(o.view=r),ue(n)||(o.option.mirror=this._getTRTCRemoteMirror(n)),ue(s)||(o.option.fillMode=this._getTRTCFillMode(s)),ue(a)||(o.option.small=a),this._remoteStreamConfig.set("".concat(A,"_").concat(this._getTRTCStreamType(t)),o)},i.prototype.handleDeviceChange=function(){return a(this,void 0,void 0,(function(){var A=this;return g(this,(function(t){return r.default.getCameraList().then((function(t){return a(A,void 0,void 0,(function(){return g(this,(function(A){switch(A.label){case 0:return this._cameraList.length===t.length?[2]:[4,this.deviceChangeManage(this._cameraList,t,e.TRTCDeviceType.TRTCDeviceTypeCamera)];case 1:return A.sent(),this._cameraList=t,[2]}}))}))})),r.default.getMicrophoneList().then((function(t){return a(A,void 0,void 0,(function(){return g(this,(function(A){switch(A.label){case 0:return[4,this.deviceChangeManage(this._microphoneList,t,e.TRTCDeviceType.TRTCDeviceTypeMic)];case 1:return A.sent(),this._microphoneList=t,[2]}}))}))})),r.default.getSpeakerList().then((function(t){return a(A,void 0,void 0,(function(){return g(this,(function(A){switch(A.label){case 0:return[4,this.deviceChangeManage(this._speakerList,t,e.TRTCDeviceType.TRTCDeviceTypeSpeaker)];case 1:return A.sent(),this._speakerList=t,[2]}}))}))})),[2]}))}))},i.prototype.isSameDevice=function(e,A){var t=e&&e.deviceId&&e.groupId&&e.label,i=A&&A.deviceId&&A.groupId&&A.label;return!(!t||!i)&&(e.deviceId===A.deviceId&&e.groupId===A.groupId&&e.label===A.label)},i.prototype.deviceChangeManage=function(A,t,i){return a(this,void 0,void 0,(function(){var o,r,n,s,a;return g(this,(function(g){switch(g.label){case 0:return o=void 0,A.length!==t.length&&(r=(t||[]).map((function(e){return e.deviceId})),n=new R,A.length>t.length?(n=A.filter((function(e){return!r.includes(e.deviceId)}))[0]||{},o=e.TRTCDeviceState.TRTCDeviceStateRemove):(r=(A||[]).map((function(e){return e.deviceId})),n=t.filter((function(e){return!r.includes(e.deviceId)}))[0]||{},o=e.TRTCDeviceState.TRTCDeviceStateAdd),s=n.deviceId,this.emitOnDeviceChange(s,i,o)),a=this.getDefaultDeviceInfo(t),i!==e.TRTCDeviceType.TRTCDeviceTypeCamera||o!==e.TRTCDeviceState.TRTCDeviceStateRemove?[3,3]:this.isSameDevice(this._currentCamera,a)?[2]:a.deviceId?[4,this.autoChangeDevice(i,a)]:[3,2];case 1:g.sent(),g.label=2;case 2:g.label=3;case 3:return i!==e.TRTCDeviceType.TRTCDeviceTypeMic?[3,6]:this.isSameDevice(this._currentMicrophone,a)?[2]:a.deviceId?[4,this.autoChangeDevice(i,a)]:[3,5];case 4:g.sent(),g.label=5;case 5:g.label=6;case 6:return i!==e.TRTCDeviceType.TRTCDeviceTypeSpeaker?[3,9]:this.isSameDevice(this._currentSpeaker,a)?[2]:a.deviceId?[4,this.autoChangeDevice(i,a)]:[3,8];case 7:g.sent(),g.label=8;case 8:g.label=9;case 9:return[2]}}))}))},i.prototype.getDefaultDeviceInfo=function(e){var A=new R;if(0===e.length)return A;var t=e.filter((function(e){return"default"===e.deviceId}));return A=t.length>0?t[0]:e[0]},i.prototype.autoChangeDevice=function(A,t){return a(this,void 0,void 0,(function(){var i,o,n;return g(this,(function(s){switch(s.label){case 0:return i=t.deviceId,A!==e.TRTCDeviceType.TRTCDeviceTypeCamera?[3,6]:(this._setCurrentCameraId(i),[4,this._updateLocalVideo()]);case 1:s.sent(),s.label=2;case 2:return s.trys.push([2,4,,5]),[4,this._testTrtc.updateLocalVideo({option:{cameraId:i}})];case 3:return s.sent(),[3,5];case 4:return o=s.sent(),console.log("testTRTC error",JSON.stringify(o)),o.code,r.default.ERROR_CODE.OPERATION_ABORT,[3,5];case 5:this._currentCameraId=i,this._currentCamera=t,this.emitOnDeviceChange(i,A,e.TRTCDeviceState.TRTCDeviceStateActive),s.label=6;case 6:return A!==e.TRTCDeviceType.TRTCDeviceTypeMic?[3,12]:(this._setCurrentMicrophoneId(i),[4,this._updateLocalAudio()]);case 7:s.sent(),s.label=8;case 8:return s.trys.push([8,10,,11]),[4,this._testTrtc.updateLocalAudio({option:{microphoneId:i}})];case 9:return s.sent(),[3,11];case 10:return n=s.sent(),console.log("testTRTC error",JSON.stringify(n)),n.code,r.default.ERROR_CODE.OPERATION_ABORT,[3,11];case 11:this._currentMicrophoneId=i,this._currentMicrophone=t,this.emitOnDeviceChange(i,A,e.TRTCDeviceState.TRTCDeviceStateActive),s.label=12;case 12:return A!==e.TRTCDeviceType.TRTCDeviceTypeSpeaker?[3,14]:[4,r.default.setCurrentSpeaker(i)];case 13:s.sent(),this._currentSpeakerId=i,this._currentSpeaker=t,this.emitOnDeviceChange(i,A,e.TRTCDeviceState.TRTCDeviceStateActive),s.label=14;case 14:return[2]}}))}))},i.prototype.emitOnDeviceChange=function(e,A,t){this.emit("onDeviceChange",e,A,t)},i.prototype.getMediaMixingManager=function(){return new zr({logger:this.logger,trtc:this._trtc,trtcCloud:this})},i.shareInstance=null,i.subCloudMap=new Map,i.enableSEI=!1,i.assetsPath="",i}(v);e.Rect=j,e.TRTCDeviceInfo=R,e.TRTCImageBuffer=O,e.TRTCLocalStatistics=V,e.TRTCMixUser=X,e.TRTCNetworkQosParam=U,e.TRTCParams=S,e.TRTCPublishCDNParam=F,e.TRTCQualityInfo=G,e.TRTCRemoteStatistics=P,e.TRTCRenderParams=b,e.TRTCScreenCaptureProperty=$,e.TRTCScreenCaptureSourceInfo=J,e.TRTCStatistics=x,e.TRTCTranscodingConfig=z,e.TRTCVideoEncParam=M,e.TRTCVolumeInfo=k,e.default=Tn,Object.defineProperty(e,"__esModule",{value:!0})}));
|