trtc-universal-js-sdk
Version:
Tencent Cloud RTC SDK for Web And Electron
1 lines • 88.9 kB
JavaScript
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("events"),require("axios"),require("rtc-beauty-plugin")):"function"==typeof define&&define.amd?define(["exports","events","axios","rtc-beauty-plugin"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).TRTC={},e.events,e.axios,e.RTCBeautyPlugin)}(this,(function(e,t,r,i){function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=n(r),a=n(i),s=function(e,t){return(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function u(e,t){function r(){this.constructor=e}s(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var c=function(){return(c=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)};function l(e,t,r,i){return new(r||(r=Promise))((function(n,o){function a(e){try{u(i.next(e))}catch(t){o(t)}}function s(e){try{u(i.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((i=i.apply(e,t||[])).next())}))}function d(e,t){var r,i,n,o,a={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,i&&(n=2&o[0]?i.return:o[0]?i.throw||((n=i.return)&&n.call(i),0):i.next)&&!(n=n.call(i,o[1])).done)return n;switch(i=0,n&&(o=[2&o[0],n.value]),o[0]){case 0:case 1:n=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(n=a.trys,(n=n.length>0&&n[n.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!n||o[1]>n[0]&&o[1]<n[3])){a.label=o[1];break}if(6===o[0]&&a.label<n[1]){a.label=n[1],n=o;break}if(n&&a.label<n[2]){a.label=n[2],a.ops.push(o);break}n[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(s){o=[6,s],i=0}finally{r=n=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function v(e,t,r){return t&&p(e.prototype,t),r&&p(e,r),e}function T(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var i,n,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(i=r.next()).done)&&(o.push(i.value),!t||o.length!==t);a=!0);}catch(u){s=!0,n=u}finally{try{a||null==r.return||r.return()}finally{if(s)throw n}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return m(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return m(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,i=new Array(t);r<t;r++)i[r]=e[r];return i}var g="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function y(e,t){return e(t={exports:{}},t.exports),t.exports}var R,C,S=function(e){return e&&e.Math==Math&&e},b=S("object"==typeof globalThis&&globalThis)||S("object"==typeof window&&window)||S("object"==typeof self&&self)||S("object"==typeof g&&g)||function(){return this}()||Function("return this")(),w=function(e){try{return!!e()}catch(t){return!0}},_=!w((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),V={}.propertyIsEnumerable,M=Object.getOwnPropertyDescriptor,A={f:M&&!V.call({1:2},1)?function(e){var t=M(this,e);return!!t&&t.enumerable}:V},x=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},E={}.toString,I=function(e){return E.call(e).slice(8,-1)},P="".split,L=w((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==I(e)?P.call(e,""):Object(e)}:Object,k=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},O=function(e){return L(k(e))},F=function(e){return"object"==typeof e?null!==e:"function"==typeof e},D=function(e){return"function"==typeof e?e:void 0},j=function(e,t){return arguments.length<2?D(b[e]):b[e]&&b[e][t]},B=j("navigator","userAgent")||"",Q=b.process,U=b.Deno,N=Q&&Q.versions||U&&U.version,W=N&&N.v8;W?C=(R=W.split("."))[0]<4?1:R[0]+R[1]:B&&(!(R=B.match(/Edge\/(\d+)/))||R[1]>=74)&&(R=B.match(/Chrome\/(\d+)/))&&(C=R[1]);var J=C&&+C,z=!!Object.getOwnPropertySymbols&&!w((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&J&&J<41})),G=z&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,H=G?function(e){return"symbol"==typeof e}:function(e){var t=j("Symbol");return"function"==typeof t&&Object(e)instanceof t},$=function(e,t){try{Object.defineProperty(b,e,{value:t,configurable:!0,writable:!0})}catch(r){b[e]=t}return t},K="__core-js_shared__",q=b[K]||$(K,{}),Y=y((function(e){(e.exports=function(e,t){return q[e]||(q[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.17.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),X=function(e){return Object(k(e))},Z={}.hasOwnProperty,ee=Object.hasOwn||function(e,t){return Z.call(X(e),t)},te=0,re=Math.random(),ie=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++te+re).toString(36)},ne=Y("wks"),oe=b.Symbol,ae=G?oe:oe&&oe.withoutSetter||ie,se=function(e){return ee(ne,e)&&(z||"string"==typeof ne[e])||(z&&ee(oe,e)?ne[e]=oe[e]:ne[e]=ae("Symbol."+e)),ne[e]},ue=se("toPrimitive"),ce=function(e,t){if(!F(e)||H(e))return e;var r,i=e[ue];if(void 0!==i){if(void 0===t&&(t="default"),r=i.call(e,t),!F(r)||H(r))return r;throw TypeError("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var r,i;if("string"===t&&"function"==typeof(r=e.toString)&&!F(i=r.call(e)))return i;if("function"==typeof(r=e.valueOf)&&!F(i=r.call(e)))return i;if("string"!==t&&"function"==typeof(r=e.toString)&&!F(i=r.call(e)))return i;throw TypeError("Can't convert object to primitive value")}(e,t)},le=function(e){var t=ce(e,"string");return H(t)?t:String(t)},de=b.document,fe=F(de)&&F(de.createElement),he=function(e){return fe?de.createElement(e):{}},pe=!_&&!w((function(){return 7!=Object.defineProperty(he("div"),"a",{get:function(){return 7}}).a})),ve=Object.getOwnPropertyDescriptor,Te={f:_?ve:function(e,t){if(e=O(e),t=le(t),pe)try{return ve(e,t)}catch(r){}if(ee(e,t))return x(!A.f.call(e,t),e[t])}},me=function(e){if(!F(e))throw TypeError(String(e)+" is not an object");return e},ge=Object.defineProperty,ye={f:_?ge:function(e,t,r){if(me(e),t=le(t),me(r),pe)try{return ge(e,t,r)}catch(i){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},Re=_?function(e,t,r){return ye.f(e,t,x(1,r))}:function(e,t,r){return e[t]=r,e},Ce=Function.toString;"function"!=typeof q.inspectSource&&(q.inspectSource=function(e){return Ce.call(e)});var Se,be,we,_e=q.inspectSource,Ve=b.WeakMap,Me="function"==typeof Ve&&/native code/.test(_e(Ve)),Ae=Y("keys"),xe=function(e){return Ae[e]||(Ae[e]=ie(e))},Ee={},Ie="Object already initialized",Pe=b.WeakMap;if(Me||q.state){var Le=q.state||(q.state=new Pe),ke=Le.get,Oe=Le.has,Fe=Le.set;Se=function(e,t){if(Oe.call(Le,e))throw new TypeError(Ie);return t.facade=e,Fe.call(Le,e,t),t},be=function(e){return ke.call(Le,e)||{}},we=function(e){return Oe.call(Le,e)}}else{var De=xe("state");Ee[De]=!0,Se=function(e,t){if(ee(e,De))throw new TypeError(Ie);return t.facade=e,Re(e,De,t),t},be=function(e){return ee(e,De)?e[De]:{}},we=function(e){return ee(e,De)}}var je={set:Se,get:be,has:we,enforce:function(e){return we(e)?be(e):Se(e,{})},getterFor:function(e){return function(t){var r;if(!F(t)||(r=be(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return r}}},Be=y((function(e){var t=je.get,r=je.enforce,i=String(String).split("String");(e.exports=function(e,t,n,o){var a,s=!!o&&!!o.unsafe,u=!!o&&!!o.enumerable,c=!!o&&!!o.noTargetGet;"function"==typeof n&&("string"!=typeof t||ee(n,"name")||Re(n,"name",t),(a=r(n)).source||(a.source=i.join("string"==typeof t?t:""))),e!==b?(s?!c&&e[t]&&(u=!0):delete e[t],u?e[t]=n:Re(e,t,n)):u?e[t]=n:$(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&t(this).source||_e(this)}))})),Qe=Math.ceil,Ue=Math.floor,Ne=function(e){return isNaN(e=+e)?0:(e>0?Ue:Qe)(e)},We=Math.min,Je=function(e){return e>0?We(Ne(e),9007199254740991):0},ze=Math.max,Ge=Math.min,He=function(e,t){var r=Ne(e);return r<0?ze(r+t,0):Ge(r,t)},$e=function(e){return function(t,r,i){var n,o=O(t),a=Je(o.length),s=He(i,a);if(e&&r!=r){for(;a>s;)if((n=o[s++])!=n)return!0}else for(;a>s;s++)if((e||s in o)&&o[s]===r)return e||s||0;return!e&&-1}},Ke={includes:$e(!0),indexOf:$e(!1)}.indexOf,qe=function(e,t){var r,i=O(e),n=0,o=[];for(r in i)!ee(Ee,r)&&ee(i,r)&&o.push(r);for(;t.length>n;)ee(i,r=t[n++])&&(~Ke(o,r)||o.push(r));return o},Ye=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Xe=Ye.concat("length","prototype"),Ze={f:Object.getOwnPropertyNames||function(e){return qe(e,Xe)}},et={f:Object.getOwnPropertySymbols},tt=j("Reflect","ownKeys")||function(e){var t=Ze.f(me(e)),r=et.f;return r?t.concat(r(e)):t},rt=function(e,t){for(var r=tt(t),i=ye.f,n=Te.f,o=0;o<r.length;o++){var a=r[o];ee(e,a)||i(e,a,n(t,a))}},it=/#|\.prototype\./,nt=function(e,t){var r=at[ot(e)];return r==ut||r!=st&&("function"==typeof t?w(t):!!t)},ot=nt.normalize=function(e){return String(e).replace(it,".").toLowerCase()},at=nt.data={},st=nt.NATIVE="N",ut=nt.POLYFILL="P",ct=nt,lt=Te.f,dt=function(e,t){var r,i,n,o,a,s=e.target,u=e.global,c=e.stat;if(r=u?b:c?b[s]||$(s,{}):(b[s]||{}).prototype)for(i in t){if(o=t[i],n=e.noTargetGet?(a=lt(r,i))&&a.value:r[i],!ct(u?i:s+(c?".":"#")+i,e.forced)&&void 0!==n){if(typeof o==typeof n)continue;rt(o,n)}(e.sham||n&&n.sham)&&Re(o,"sham",!0),Be(r,i,o,e)}},ft=Array.isArray||function(e){return"Array"==I(e)},ht=function(e,t,r){var i=le(t);i in e?ye.f(e,i,x(0,r)):e[i]=r},pt=se("species"),vt=function(e,t){return new(function(e){var t;return ft(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!ft(t.prototype)?F(t)&&null===(t=t[pt])&&(t=void 0):t=void 0),void 0===t?Array:t}(e))(0===t?0:t)},Tt=se("species"),mt=function(e){return J>=51||!w((function(){var t=[];return(t.constructor={})[Tt]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},gt=se("isConcatSpreadable"),yt=9007199254740991,Rt="Maximum allowed index exceeded",Ct=J>=51||!w((function(){var e=[];return e[gt]=!1,e.concat()[0]!==e})),St=mt("concat"),bt=function(e){if(!F(e))return!1;var t=e[gt];return void 0!==t?!!t:ft(e)};dt({target:"Array",proto:!0,forced:!Ct||!St},{concat:function(e){var t,r,i,n,o,a=X(this),s=vt(a,0),u=0;for(t=-1,i=arguments.length;t<i;t++)if(bt(o=-1===t?a:arguments[t])){if(u+(n=Je(o.length))>yt)throw TypeError(Rt);for(r=0;r<n;r++,u++)r in o&&ht(s,u,o[r])}else{if(u>=yt)throw TypeError(Rt);ht(s,u++,o)}return s.length=u,s}});var wt=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e},_t=[].slice,Vt={},Mt=function(e,t,r){if(!(t in Vt)){for(var i=[],n=0;n<t;n++)i[n]="a["+n+"]";Vt[t]=Function("C,a","return new C("+i.join(",")+")")}return Vt[t](e,r)},At=Function.bind||function(e){var t=wt(this),r=_t.call(arguments,1),i=function(){var n=r.concat(_t.call(arguments));return this instanceof i?Mt(t,n.length,n):t.apply(e,n)};return F(t.prototype)&&(i.prototype=t.prototype),i};dt({target:"Function",proto:!0},{bind:At});var xt=ye.f,Et=Function.prototype,It=Et.toString,Pt=/^\s*function ([^ (]*)/,Lt="name";_&&!(Lt in Et)&&xt(Et,Lt,{configurable:!0,get:function(){try{return It.call(this).match(Pt)[1]}catch(e){return""}}});var kt,Ot=function(e){if(H(e))throw TypeError("Cannot convert a Symbol value to a string");return String(e)},Ft=function(){var e=me(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},Dt=b.RegExp,jt={UNSUPPORTED_Y:w((function(){var e=Dt("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),BROKEN_CARET:w((function(){var e=Dt("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},Bt=Object.keys||function(e){return qe(e,Ye)},Qt=_?Object.defineProperties:function(e,t){me(e);for(var r,i=Bt(t),n=i.length,o=0;n>o;)ye.f(e,r=i[o++],t[r]);return e},Ut=j("document","documentElement"),Nt=xe("IE_PROTO"),Wt=function(){},Jt=function(e){return"<script>"+e+"</"+"script>"},zt=function(e){e.write(Jt("")),e.close();var t=e.parentWindow.Object;return e=null,t},Gt=function(){try{kt=new ActiveXObject("htmlfile")}catch(i){}var e,t;Gt="undefined"!=typeof document?document.domain&&kt?zt(kt):((t=he("iframe")).style.display="none",Ut.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Jt("document.F=Object")),e.close(),e.F):zt(kt);for(var r=Ye.length;r--;)delete Gt.prototype[Ye[r]];return Gt()};Ee[Nt]=!0;var Ht,$t,Kt=Object.create||function(e,t){var r;return null!==e?(Wt.prototype=me(e),r=new Wt,Wt.prototype=null,r[Nt]=e):r=Gt(),void 0===t?r:Qt(r,t)},qt=b.RegExp,Yt=w((function(){var e=qt(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),Xt=b.RegExp,Zt=w((function(){var e=Xt("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),er=je.get,tr=RegExp.prototype.exec,rr=Y("native-string-replace",String.prototype.replace),ir=tr,nr=(Ht=/a/,$t=/b*/g,tr.call(Ht,"a"),tr.call($t,"a"),0!==Ht.lastIndex||0!==$t.lastIndex),or=jt.UNSUPPORTED_Y||jt.BROKEN_CARET,ar=void 0!==/()??/.exec("")[1];(nr||ar||or||Yt||Zt)&&(ir=function(e){var t,r,i,n,o,a,s,u=this,c=er(u),l=Ot(e),d=c.raw;if(d)return d.lastIndex=u.lastIndex,t=ir.call(d,l),u.lastIndex=d.lastIndex,t;var f=c.groups,h=or&&u.sticky,p=Ft.call(u),v=u.source,T=0,m=l;if(h&&(-1===(p=p.replace("y","")).indexOf("g")&&(p+="g"),m=l.slice(u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&"\n"!==l.charAt(u.lastIndex-1))&&(v="(?: "+v+")",m=" "+m,T++),r=new RegExp("^(?:"+v+")",p)),ar&&(r=new RegExp("^"+v+"$(?!\\s)",p)),nr&&(i=u.lastIndex),n=tr.call(h?r:u,m),h?n?(n.input=n.input.slice(T),n[0]=n[0].slice(T),n.index=u.lastIndex,u.lastIndex+=n[0].length):u.lastIndex=0:nr&&n&&(u.lastIndex=u.global?n.index+n[0].length:i),ar&&n&&n.length>1&&rr.call(n[0],r,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(n[o]=void 0)})),n&&f)for(n.groups=a=Kt(null),o=0;o<f.length;o++)a[(s=f[o])[0]]=n[s[1]];return n});var sr=ir;dt({target:"RegExp",proto:!0,forced:/./.exec!==sr},{exec:sr});var ur="\t\n\v\f\r \u2028\u2029\ufeff",cr="["+ur+"]",lr=RegExp("^"+cr+cr+"*"),dr=RegExp(cr+cr+"*$"),fr=function(e){return function(t){var r=Ot(k(t));return 1&e&&(r=r.replace(lr,"")),2&e&&(r=r.replace(dr,"")),r}},hr={start:fr(1),end:fr(2),trim:fr(3)}.trim,pr=b.parseFloat,vr=1/pr(ur+"-0")!=-Infinity?function(e){var t=hr(Ot(e)),r=pr(t);return 0===r&&"-"==t.charAt(0)?-0:r}:pr;dt({global:!0,forced:parseFloat!=vr},{parseFloat:vr});var Tr=se("species"),mr=RegExp.prototype,gr=function(e,t,r,i){var n=se(e),o=!w((function(){var t={};return t[n]=function(){return 7},7!=""[e](t)})),a=o&&!w((function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[Tr]=function(){return r},r.flags="",r[n]=/./[n]),r.exec=function(){return t=!0,null},r[n](""),!t}));if(!o||!a||r){var s=/./[n],u=t(n,""[e],(function(e,t,r,i,n){var a=t.exec;return a===sr||a===mr.exec?o&&!n?{done:!0,value:s.call(t,r,i)}:{done:!0,value:e.call(r,t,i)}:{done:!1}}));Be(String.prototype,e,u[0]),Be(mr,n,u[1])}i&&Re(mr[n],"sham",!0)},yr=function(e){return function(t,r){var i,n,o=Ot(k(t)),a=Ne(r),s=o.length;return a<0||a>=s?e?"":void 0:(i=o.charCodeAt(a))<55296||i>56319||a+1===s||(n=o.charCodeAt(a+1))<56320||n>57343?e?o.charAt(a):i:e?o.slice(a,a+2):n-56320+(i-55296<<10)+65536}},Rr={codeAt:yr(!1),charAt:yr(!0)},Cr=Rr.charAt,Sr=function(e,t,r){return t+(r?Cr(e,t).length:1)},br=function(e,t){var r=e.exec;if("function"==typeof r){var i=r.call(e,t);if("object"!=typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==I(e))throw TypeError("RegExp#exec called on incompatible receiver");return sr.call(e,t)};gr("match",(function(e,t,r){return[function(t){var r=k(this),i=null==t?void 0:t[e];return void 0!==i?i.call(t,r):new RegExp(t)[e](Ot(r))},function(e){var i=me(this),n=Ot(e),o=r(t,i,n);if(o.done)return o.value;if(!i.global)return br(i,n);var a=i.unicode;i.lastIndex=0;for(var s,u=[],c=0;null!==(s=br(i,n));){var l=Ot(s[0]);u[c]=l,""===l&&(i.lastIndex=Sr(n,Je(i.lastIndex),a)),c++}return 0===c?null:u}]}));var wr,_r="onError",Vr="live",Mr="rtc",Ar="anchor",xr="audience",Er="standard",Ir="auxiliary",Pr={20:Ar,21:xr},Lr={0:Mr,1:Vr,2:Mr,3:Vr},kr={1:Er,2:Er,3:"high"},Or={0:"big",1:"small",2:Ir};function Fr(){return Math.floor(performance.now())}!function(e){e[e.ActiveExitRoom=0]="ActiveExitRoom",e[e.KickedExitRoom=1]="KickedExitRoom"}(wr||(wr={}));var Dr=function(e){return"function"==typeof e},jr=function(e){return void 0===e},Br=function(e){return"string"==typeof e};function Qr(e){return e+"-main"}function Ur(e){return e+"-"+Ir}function Nr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=function(){for(var t=0,r=e;t<r.length;t++)Wr(this,new(0,r[t])(this))},i=r.prototype,n=0,o=e;n<o.length;n++){var a=o[n];Wr(r,a),Wr(i,a.prototype)}return r}function Wr(e,t){for(var r=0,i=Reflect.ownKeys(t);r<i.length;r++){var n=i[r];if("constructor"!==n&&"prototype"!==n&&"name"!==n){var o=Object.getOwnPropertyDescriptor(t,n)||"";Object.defineProperty(e,n,o)}}}var Jr=window.navigator&&window.navigator.userAgent||"",zr=/AppleWebKit\/([\d.]+)/i.exec(Jr);zr&&parseFloat(zr.pop());var Gr=/iPad/i.test(Jr),Hr=/iPhone/i.test(Jr)&&!Gr,$r=/iPod/i.test(Jr),Kr=Hr||Gr||$r;Kr&&function(){var e=Jr.match(/OS (\d+)_/i);e&&e[1]&&e[1]}();var qr=/Android/i.test(Jr);qr&&function(){var e=Jr.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!e)return null;var t=e[1]&&parseFloat(e[1]),r=e[2]&&parseFloat(e[2]);t&&r&&parseFloat(e[1]+"."+e[2])}();qr&&/webkit/i.test(Jr);var Yr=/Firefox/i.test(Jr),Xr=Yr&&function(){var e=Jr.match(/Firefox\/(\d+)/);return e&&e[1]?parseFloat(e[1]):null}(),Zr=/Edge\//i.test(Jr),ei=Zr&&function(){var e=Jr.match(/Edge\/(\d+)/i);if(e&&e[1])return e[1]}(),ti=/Edg\//i.test(Jr),ri=ti&&function(){var e=Jr.match(/Edg\/(\d+)/);return e&&e[1]?parseFloat(e[1]):null}(),ii=/SogouMobileBrowser\//i.test(Jr),ni=ii&&function(){var e=Jr.match(/SogouMobileBrowser\/(\d+)/);return e&&e[1]?parseFloat(e[1]):null}(),oi=/MetaSr\s/i.test(Jr),ai=oi&&function(){var e=Jr.match(/MetaSr(\s\d+(\.\d+)+)/);return e&&e[1]?parseFloat(e[1]):null}(),si=/TBS\/\d+/i.test(Jr),ui=si&&function(){var e=Jr.match(/TBS\/(\d+)/i);if(e&&e[1])return e[1]}(),ci=/XWEB\/\d+/i.test(Jr),li=ci&&function(){var e=Jr.match(/XWEB\/(\d+)/i);if(e&&e[1])return e[1]}();/MSIE\s8\.0/.test(Jr),/MSIE\/\d+/i.test(Jr)&&function(){var e=/MSIE\s(\d+)\.\d/.exec(Jr),t=e&&parseFloat(e[1]);!t&&/Trident\/7.0/i.test(Jr)&&/rv:11.0/.test(Jr)&&(t=11)}();var di=/(micromessenger|webbrowser)/i.test(Jr),fi=di&&function(){var e=Jr.match(/MicroMessenger\/(\d+)/i);if(e&&e[1])return e[1]}(),hi=!si&&/MQQBrowser\/\d+/i.test(Jr)&&/COVC\/\d+/i.test(Jr),pi=!si&&/MQQBrowser\/\d+/i.test(Jr)&&!/COVC\/\d+/i.test(Jr),vi=(pi||hi)&&function(){var e=Jr.match(/ MQQBrowser\/([\d.]+)/);return e&&e[1]?e[1]:null}(),Ti=!si&&/ QQBrowser\/\d+/i.test(Jr),mi=Ti&&function(){var e=Jr.match(/ QQBrowser\/([\d.]+)/);return e&&e[1]?e[1]:null}(),gi=!si&&/QQBrowserLite\/\d+/i.test(Jr),yi=gi&&function(){var e=Jr.match(/QQBrowserLite\/([\d.]+)/);return e&&e[1]?e[1]:null}(),Ri=!si&&/MQBHD\/\d+/i.test(Jr),Ci=Ri&&function(){var e=Jr.match(/MQBHD\/([\d.]+)/);return e&&e[1]?e[1]:null}(),Si=/Windows/i.test(Jr),bi=!Kr&&/MAC OS X/i.test(Jr),wi=!qr&&/Linux/i.test(Jr);/MicroMessenger/i.test(Jr),/UCBrowser/i.test(Jr);var _i=/Electron/i.test(Jr),Vi=/MiuiBrowser/i.test(Jr),Mi=Vi&&function(){var e=Jr.match(/MiuiBrowser\/([\d.]+)/);return e&&e[1]?e[1]:null}(),Ai=/HuaweiBrowser/i.test(Jr);/Huawei/i.test(Jr);var xi=Ai&&function(){var e=Jr.match(/HuaweiBrowser\/([\d.]+)/);return e&&e[1]?e[1]:null}(),Ei=/SamsungBrowser/i.test(Jr),Ii=Ei&&function(){var e=Jr.match(/SamsungBrowser\/([\d.]+)/);return e&&e[1]?e[1]:null}(),Pi=/HeyTapBrowser/i.test(Jr),Li=Pi&&function(){var e=Jr.match(/HeyTapBrowser\/([\d.]+)/);return e&&e[1]?e[1]:null}(),ki=/VivoBrowser/i.test(Jr),Oi=ki&&function(){var e=Jr.match(/VivoBrowser\/([\d.]+)/);return e&&e[1]?e[1]:null}(),Fi=/Chrome/i.test(Jr),Di=!Zr&&!oi&&!ii&&!si&&!ci&&!ti&&!Ti&&!Vi&&!Ai&&!Ei&&!Pi&&!ki&&/Chrome/i.test(Jr);Di&&function(){var e=Jr.match(/Chrome\/(\d+)/);e&&e[1]&&parseFloat(e[1])}();var ji=Di&&function(){var e=Jr.match(/Chrome\/([\d.]+)/);return e&&e[1]?e[1]:null}(),Bi=!Fi&&!pi&&!hi&&!gi&&!Ri&&/Safari/i.test(Jr),Qi=Bi&&function(){var e=Jr.match(/Version\/([\d.]+)/);return e&&e[1]?e[1]:null}();"file:"===location.protocol||"localhost"===location.hostname||/^\d+\.\d+\.\d+\.\d+$/.test(location.hostname);var Ui,Ni=function(){if(jr(Ui))try{Ui=window.localStorage}catch(e){Ui=!1}return Ui},Wi=function(){var e=function(){},t="undefined",r=["trace","debug","info","warn","error"];function i(e,t){var r=e[t];if(Dr(r.bind))return r.bind(e);try{return Function.prototype.bind.call(r,e)}catch(i){return function(){return Function.prototype.apply.apply(r,[e,arguments])}}}function n(r){return"debug"===r&&(r="log"),("undefined"==typeof console?"undefined":f(console))!==t&&(void 0!==console[r]?i(console,r):void 0!==console.log?i(console,"log"):e)}function o(e,t){for(var i=0;i<r.length;i++){var n=r[i];this[n]=this.methodFactory(n,e,t)}this.log=this.debug}function a(e,r,i){return function(){("undefined"==typeof console?"undefined":f(console))!==t&&(o.call(this,r,i),this[e].apply(this,arguments))}}function s(e,t,r){return n(e)||a.apply(this,arguments)}function u(e,i,n){var a,u=this,c="loglevel";function l(){var e;if(("undefined"==typeof window?"undefined":f(window))!==t){try{Ni()&&(e=window.localStorage[c])}catch(r){}return void 0===u.levels[e]&&(e=void 0),e}}e&&(c+=":"+e),u.name=e,u.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},u.methodFactory=n||s,u.getLevel=function(){return a},u.setLevel=function(i,n){if(Br(i)&&void 0!==u.levels[i.toUpperCase()]&&(i=u.levels[i.toUpperCase()]),!("number"==typeof i&&i>=0&&i<=u.levels.SILENT))throw"log.setLevel() called with invalid level: "+i;if(a=i,!1!==n&&function(e){var i=(r[e]||"silent").toUpperCase();if(("undefined"==typeof window?"undefined":f(window))!==t)try{Ni()&&(window.localStorage[c]=i)}catch(n){}}(i),o.call(u,i,e),("undefined"==typeof console?"undefined":f(console))===t&&i<u.levels.SILENT)return"No console available for logging"},u.setDefaultLevel=function(e){l()||u.setLevel(e,!1)},u.enableAll=function(e){u.setLevel(u.levels.TRACE,e)},u.disableAll=function(e){u.setLevel(u.levels.SILENT,e)};var d=l();null==d&&(d=null==i?"WARN":i),u.setLevel(d,!1)}var c=new u,l={};c.getLogger=function(e){if(!Br(e)||""===e)throw new TypeError("You must supply a name when creating a logger.");var t=l[e];return t||(t=l[e]=new u(e,c.getLevel(),c.methodFactory)),t};var d=("undefined"==typeof window?"undefined":f(window))!==t?window.log:void 0;return c.noConflict=function(){return("undefined"==typeof window?"undefined":f(window))!==t&&window.log===c&&(window.log=d),c},c.getLoggers=function(){return l},c}(),Ji=Te.f,zi=w((function(){Ji(1)}));dt({target:"Object",stat:!0,forced:!_||zi,sham:!_},{getOwnPropertyDescriptor:function(e,t){return Ji(O(e),t)}});var Gi=!w((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Hi=xe("IE_PROTO"),$i=Object.prototype,Ki=Gi?Object.getPrototypeOf:function(e){return e=X(e),ee(e,Hi)?e[Hi]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?$i:null},qi=w((function(){Ki(1)}));dt({target:"Object",stat:!0,forced:qi,sham:!Gi},{getPrototypeOf:function(e){return Ki(X(e))}});var Yi=mt("slice"),Xi=se("species"),Zi=[].slice,en=Math.max;dt({target:"Array",proto:!0,forced:!Yi},{slice:function(e,t){var r,i,n,o=O(this),a=Je(o.length),s=He(e,a),u=He(void 0===t?a:t,a);if(ft(o)&&("function"!=typeof(r=o.constructor)||r!==Array&&!ft(r.prototype)?F(r)&&null===(r=r[Xi])&&(r=void 0):r=void 0,r===Array||void 0===r))return Zi.call(o,s,u);for(i=new(void 0===r?Array:r)(en(u-s,0)),n=0;s<u;s++,n++)s in o&&ht(i,n,o[s]);return i.length=n,i}});var tn={};tn[se("toStringTag")]="z";var rn="[object z]"===String(tn),nn=se("toStringTag"),on="Arguments"==I(function(){return arguments}()),an=rn?I:function(e){var t,r,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(r){}}(t=Object(e),nn))?r:on?I(t):"Object"==(i=I(t))&&"function"==typeof t.callee?"Arguments":i},sn=rn?{}.toString:function(){return"[object "+an(this)+"]"};rn||Be(Object.prototype,"toString",sn,{unsafe:!0});var un=Math.floor,cn="".replace,ln=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,dn=/\$([$&'`]|\d{1,2})/g,fn=function(e,t,r,i,n,o){var a=r+e.length,s=i.length,u=dn;return void 0!==n&&(n=X(n),u=ln),cn.call(o,u,(function(o,u){var c;switch(u.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,r);case"'":return t.slice(a);case"<":c=n[u.slice(1,-1)];break;default:var l=+u;if(0===l)return o;if(l>s){var d=un(l/10);return 0===d?o:d<=s?void 0===i[d-1]?u.charAt(1):i[d-1]+u.charAt(1):o}c=i[l-1]}return void 0===c?"":c}))},hn=se("replace"),pn=Math.max,vn=Math.min,Tn="$0"==="a".replace(/./,"$0"),mn=!!/./[hn]&&""===/./[hn]("a","$0");gr("replace",(function(e,t,r){var i=mn?"$":"$0";return[function(e,r){var i=k(this),n=null==e?void 0:e[hn];return void 0!==n?n.call(e,i,r):t.call(Ot(i),e,r)},function(e,n){var o=me(this),a=Ot(e);if("string"==typeof n&&-1===n.indexOf(i)&&-1===n.indexOf("$<")){var s=r(t,o,a,n);if(s.done)return s.value}var u="function"==typeof n;u||(n=Ot(n));var c=o.global;if(c){var l=o.unicode;o.lastIndex=0}for(var d=[];;){var f=br(o,a);if(null===f)break;if(d.push(f),!c)break;""===Ot(f[0])&&(o.lastIndex=Sr(a,Je(o.lastIndex),l))}for(var h,p="",v=0,T=0;T<d.length;T++){f=d[T];for(var m=Ot(f[0]),g=pn(vn(Ne(f.index),a.length),0),y=[],R=1;R<f.length;R++)y.push(void 0===(h=f[R])?h:String(h));var C=f.groups;if(u){var S=[m].concat(y,g,a);void 0!==C&&S.push(C);var b=Ot(n.apply(void 0,S))}else b=fn(m,a,g,y,C,n);g>=v&&(p+=a.slice(v,g)+b,v=g+m.length)}return p+a.slice(v)}]}),!!w((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!Tn||mn);var gn=function(e,t){var r=[][e];return!!r&&w((function(){r.call(null,t||function(){throw 1},1)}))},yn=[].join,Rn=L!=Object,Cn=gn("join",",");dt({target:"Array",proto:!0,forced:Rn||!Cn},{join:function(e){return yn.call(O(this),void 0===e?",":e)}}),dt({target:"Array",stat:!0},{isArray:ft});var Sn=mt("splice"),bn=Math.max,wn=Math.min,_n=9007199254740991,Vn="Maximum allowed length exceeded";dt({target:"Array",proto:!0,forced:!Sn},{splice:function(e,t){var r,i,n,o,a,s,u=X(this),c=Je(u.length),l=He(e,c),d=arguments.length;if(0===d?r=i=0:1===d?(r=0,i=c-l):(r=d-2,i=wn(bn(Ne(t),0),c-l)),c+r-i>_n)throw TypeError(Vn);for(n=vt(u,i),o=0;o<i;o++)(a=l+o)in u&&ht(n,o,u[a]);if(n.length=i,r<i){for(o=l;o<c-i;o++)s=o+r,(a=o+i)in u?u[s]=u[a]:delete u[s];for(o=c;o>c-i+r;o--)delete u[o-1]}else if(r>i)for(o=c-i;o>l;o--)s=o+r-1,(a=o+i-1)in u?u[s]=u[a]:delete u[s];for(o=0;o<r;o++)u[o+l]=arguments[o+2];return u.length=c-i+r,n}});var Mn=function(e){var t=Ot(k(this)),r="",i=Ne(e);if(i<0||Infinity==i)throw RangeError("Wrong number of repetitions");for(;i>0;(i>>>=1)&&(t+=t))1&i&&(r+=t);return r},An=Math.ceil,xn=function(e){return function(t,r,i){var n,o,a=Ot(k(t)),s=a.length,u=void 0===i?" ":Ot(i),c=Je(r);return c<=s||""==u?a:((o=Mn.call(u,An((n=c-s)/u.length))).length>n&&(o=o.slice(0,n)),e?a+o:o+a)}},En={start:xn(!1),end:xn(!0)}.start,In=Math.abs,Pn=Date.prototype,Ln=Pn.getTime,kn=Pn.toISOString,On=w((function(){return"0385-07-25T07:06:39.999Z"!=kn.call(new Date(-50000000000001))}))||!w((function(){kn.call(new Date(NaN))}))?function(){if(!isFinite(Ln.call(this)))throw RangeError("Invalid time value");var e=this,t=e.getUTCFullYear(),r=e.getUTCMilliseconds(),i=t<0?"-":t>9999?"+":"";return i+En(In(t),i?6:4,0)+"-"+En(e.getUTCMonth()+1,2,0)+"-"+En(e.getUTCDate(),2,0)+"T"+En(e.getUTCHours(),2,0)+":"+En(e.getUTCMinutes(),2,0)+":"+En(e.getUTCSeconds(),2,0)+"."+En(r,3,0)+"Z"}:kn;dt({target:"Date",proto:!0,forced:Date.prototype.toISOString!==On},{toISOString:On});var Fn=Date.prototype,Dn="Invalid Date",jn="toString",Bn=Fn.toString,Qn=Fn.getTime;String(new Date(NaN))!=Dn&&Be(Fn,jn,(function(){var e=Qn.call(this);return e==e?Bn.call(this):Dn}));var Un=function(e,t,r){if(wt(e),void 0===t)return e;switch(r){case 0:return function(){return e.call(t)};case 1:return function(r){return e.call(t,r)};case 2:return function(r,i){return e.call(t,r,i)};case 3:return function(r,i,n){return e.call(t,r,i,n)}}return function(){return e.apply(t,arguments)}},Nn=[].push,Wn=function(e){var t=1==e,r=2==e,i=3==e,n=4==e,o=6==e,a=7==e,s=5==e||o;return function(u,c,l,d){for(var f,h,p=X(u),v=L(p),T=Un(c,l,3),m=Je(v.length),g=0,y=d||vt,R=t?y(u,m):r||a?y(u,0):void 0;m>g;g++)if((s||g in v)&&(h=T(f=v[g],g,p),e))if(t)R[g]=h;else if(h)switch(e){case 3:return!0;case 5:return f;case 6:return g;case 2:Nn.call(R,f)}else switch(e){case 4:return!1;case 7:Nn.call(R,f)}return o?-1:i||n?n:R}},Jn={forEach:Wn(0),map:Wn(1),filter:Wn(2),some:Wn(3),every:Wn(4),find:Wn(5),findIndex:Wn(6),filterReject:Wn(7)}.some,zn=gn("some");dt({target:"Array",proto:!0,forced:!zn},{some:function(e){return Jn(this,e,arguments.length>1?arguments[1]:void 0)}});var Gn=se("match"),Hn=se("species"),$n=jt.UNSUPPORTED_Y,Kn=[].push,qn=Math.min,Yn=4294967295;gr("split",(function(e,t,r){var i;return i="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,r){var i,n,o=Ot(k(this)),a=void 0===r?Yn:r>>>0;if(0===a)return[];if(void 0===e)return[o];if(!F(i=e)||!(void 0!==(n=i[Gn])?n:"RegExp"==I(i)))return t.call(o,e,a);for(var s,u,c,l=[],d=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),f=0,h=new RegExp(e.source,d+"g");(s=sr.call(h,o))&&!((u=h.lastIndex)>f&&(l.push(o.slice(f,s.index)),s.length>1&&s.index<o.length&&Kn.apply(l,s.slice(1)),c=s[0].length,f=u,l.length>=a));)h.lastIndex===s.index&&h.lastIndex++;return f===o.length?!c&&h.test("")||l.push(""):l.push(o.slice(f)),l.length>a?l.slice(0,a):l}:"0".split(void 0,0).length?function(e,r){return void 0===e&&0===r?[]:t.call(this,e,r)}:t,[function(t,r){var n=k(this),o=null==t?void 0:t[e];return void 0!==o?o.call(t,n,r):i.call(Ot(n),t,r)},function(e,n){var o=me(this),a=Ot(e),s=r(i,o,a,n,i!==t);if(s.done)return s.value;var u=function(e,t){var r,i=me(e).constructor;return void 0===i||null==(r=me(i)[Hn])?t:wt(r)}(o,RegExp),c=o.unicode,l=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+($n?"g":"y"),d=new u($n?"^(?:"+o.source+")":o,l),f=void 0===n?Yn:n>>>0;if(0===f)return[];if(0===a.length)return null===br(d,a)?[a]:[];for(var h=0,p=0,v=[];p<a.length;){d.lastIndex=$n?0:p;var T,m=br(d,$n?a.slice(p):a);if(null===m||(T=qn(Je(d.lastIndex+($n?p:0)),a.length))===h)p=Sr(a,p,c);else{if(v.push(a.slice(h,p)),v.length===f)return v;for(var g=1;g<=m.length-1;g++)if(v.push(m[g]),v.length===f)return v;p=h=T}}return v.push(a.slice(h)),v}]}),!!w((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var r="ab".split(e);return 2!==r.length||"a"!==r[0]||"b"!==r[1]})),$n);var Xn=se("unscopables"),Zn=Array.prototype;null==Zn[Xn]&&ye.f(Zn,Xn,{configurable:!0,value:Kt(null)});var eo,to,ro,io=function(e){Zn[Xn][e]=!0},no={},oo=se("iterator"),ao=!1;[].keys&&("next"in(ro=[].keys())?(to=Ki(Ki(ro)))!==Object.prototype&&(eo=to):ao=!0),(null==eo||w((function(){var e={};return eo[oo].call(e)!==e})))&&(eo={}),"function"!=typeof eo[oo]&&Re(eo,oo,(function(){return this}));var so={IteratorPrototype:eo,BUGGY_SAFARI_ITERATORS:ao},uo=ye.f,co=se("toStringTag"),lo=function(e,t,r){e&&!ee(e=r?e:e.prototype,co)&&uo(e,co,{configurable:!0,value:t})},fo=so.IteratorPrototype,ho=function(){return this},po=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(r,[]),t=r instanceof Array}catch(i){}return function(r,i){return me(r),function(e){if(!F(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype")}(i),t?e.call(r,i):r.__proto__=i,r}}():void 0),vo=so.IteratorPrototype,To=so.BUGGY_SAFARI_ITERATORS,mo=se("iterator"),go="keys",yo="values",Ro="entries",Co=function(){return this},So=function(e,t,r,i,n,o,a){!function(e,t,r){var i=t+" Iterator";e.prototype=Kt(fo,{next:x(1,r)}),lo(e,i,!1),no[i]=ho}(r,t,i);var s,u,c,l=function(e){if(e===n&&v)return v;if(!To&&e in h)return h[e];switch(e){case go:case yo:case Ro:return function(){return new r(this,e)}}return function(){return new r(this)}},d=t+" Iterator",f=!1,h=e.prototype,p=h[mo]||h["@@iterator"]||n&&h[n],v=!To&&p||l(n),T="Array"==t&&h.entries||p;if(T&&(s=Ki(T.call(new e)))!==Object.prototype&&s.next&&(Ki(s)!==vo&&(po?po(s,vo):"function"!=typeof s[mo]&&Re(s,mo,Co)),lo(s,d,!0)),n==yo&&p&&p.name!==yo&&(f=!0,v=function(){return p.call(this)}),h[mo]!==v&&Re(h,mo,v),no[t]=v,n)if(u={values:l(yo),keys:o?v:l(go),entries:l(Ro)},a)for(c in u)(To||f||!(c in h))&&Be(h,c,u[c]);else dt({target:t,proto:!0,forced:To||f},u);return u},bo="Array Iterator",wo=je.set,_o=je.getterFor(bo),Vo=So(Array,"Array",(function(e,t){wo(this,{type:bo,target:O(e),index:0,kind:t})}),(function(){var e=_o(this),t=e.target,r=e.kind,i=e.index++;return!t||i>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:i,done:!1}:"values"==r?{value:t[i],done:!1}:{value:[i,t[i]],done:!1}}),"values");no.Arguments=no.Array,io("keys"),io("values"),io("entries");var Mo=Ze.f,Ao={}.toString,xo="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Eo={f:function(e){return xo&&"[object Window]"==Ao.call(e)?function(e){try{return Mo(e)}catch(t){return xo.slice()}}(e):Mo(O(e))}},Io=!w((function(){return Object.isExtensible(Object.preventExtensions({}))})),Po=y((function(e){var t=ye.f,r=!1,i=ie("meta"),n=0,o=Object.isExtensible||function(){return!0},a=function(e){t(e,i,{value:{objectID:"O"+n++,weakData:{}}})},s=e.exports={enable:function(){s.enable=function(){},r=!0;var e=Ze.f,t=[].splice,n={};n[i]=1,e(n).length&&(Ze.f=function(r){for(var n=e(r),o=0,a=n.length;o<a;o++)if(n[o]===i){t.call(n,o,1);break}return n},dt({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Eo.f}))},fastKey:function(e,t){if(!F(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!ee(e,i)){if(!o(e))return"F";if(!t)return"E";a(e)}return e[i].objectID},getWeakData:function(e,t){if(!ee(e,i)){if(!o(e))return!0;if(!t)return!1;a(e)}return e[i].weakData},onFreeze:function(e){return Io&&r&&o(e)&&!ee(e,i)&&a(e),e}};Ee[i]=!0}));Po.enable,Po.fastKey,Po.getWeakData,Po.onFreeze;var Lo=se("iterator"),ko=Array.prototype,Oo=se("iterator"),Fo=function(e){if(null!=e)return e[Oo]||e["@@iterator"]||no[an(e)]},Do=function(e,t,r){var i,n;me(e);try{if(void 0===(i=e.return)){if("throw"===t)throw r;return r}i=i.call(e)}catch(o){n=!0,i=o}if("throw"===t)throw r;if(n)throw i;return me(i),r},jo=function(e,t){this.stopped=e,this.result=t},Bo=function(e,t,r){var i,n,o,a,s,u,c,l,d=r&&r.that,f=!(!r||!r.AS_ENTRIES),h=!(!r||!r.IS_ITERATOR),p=!(!r||!r.INTERRUPTED),v=Un(t,d,1+f+p),T=function(e){return i&&Do(i,"normal",e),new jo(!0,e)},m=function(e){return f?(me(e),p?v(e[0],e[1],T):v(e[0],e[1])):p?v(e,T):v(e)};if(h)i=e;else{if("function"!=typeof(n=Fo(e)))throw TypeError("Target is not iterable");if(void 0!==(l=n)&&(no.Array===l||ko[Lo]===l)){for(o=0,a=Je(e.length);a>o;o++)if((s=m(e[o]))&&s instanceof jo)return s;return new jo(!1)}i=function(e,t){var r=arguments.length<2?Fo(e):t;if("function"!=typeof r)throw TypeError(String(e)+" is not iterable");return me(r.call(e))}(e,n)}for(u=i.next;!(c=u.call(i)).done;){try{s=m(c.value)}catch(g){Do(i,"throw",g)}if("object"==typeof s&&s&&s instanceof jo)return s}return new jo(!1)},Qo=function(e,t,r){if(!(e instanceof t))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation");return e},Uo=se("iterator"),No=!1;try{var Wo=0,Jo={next:function(){return{done:!!Wo++}},return:function(){No=!0}};Jo[Uo]=function(){return this},Array.from(Jo,(function(){throw 2}))}catch(tu){}var zo=function(e,t,r){for(var i in t)Be(e,i,t[i],r);return e},Go=se("species"),Ho=ye.f,$o=Po.fastKey,Ko=je.set,qo=je.getterFor,Yo={getConstructor:function(e,t,r,i){var n=e((function(e,o){Qo(e,n,t),Ko(e,{type:t,index:Kt(null),first:void 0,last:void 0,size:0}),_||(e.size=0),null!=o&&Bo(o,e[i],{that:e,AS_ENTRIES:r})})),o=qo(t),a=function(e,t,r){var i,n,a=o(e),u=s(e,t);return u?u.value=r:(a.last=u={index:n=$o(t,!0),key:t,value:r,previous:i=a.last,next:void 0,removed:!1},a.first||(a.first=u),i&&(i.next=u),_?a.size++:e.size++,"F"!==n&&(a.index[n]=u)),e},s=function(e,t){var r,i=o(e),n=$o(t);if("F"!==n)return i.index[n];for(r=i.first;r;r=r.next)if(r.key==t)return r};return zo(n.prototype,{clear:function(){for(var e=o(this),t=e.index,r=e.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete t[r.index],r=r.next;e.first=e.last=void 0,_?e.size=0:this.size=0},delete:function(e){var t=this,r=o(t),i=s(t,e);if(i){var n=i.next,a=i.previous;delete r.index[i.index],i.removed=!0,a&&(a.next=n),n&&(n.previous=a),r.first==i&&(r.first=n),r.last==i&&(r.last=a),_?r.size--:t.size--}return!!i},forEach:function(e){for(var t,r=o(this),i=Un(e,arguments.length>1?arguments[1]:void 0,3);t=t?t.next:r.first;)for(i(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!s(this,e)}}),zo(n.prototype,r?{get:function(e){var t=s(this,e);return t&&t.value},set:function(e,t){return a(this,0===e?0:e,t)}}:{add:function(e){return a(this,e=0===e?0:e,e)}}),_&&Ho(n.prototype,"size",{get:function(){return o(this).size}}),n},setStrong:function(e,t,r){var i=t+" Iterator",n=qo(t),o=qo(i);So(e,t,(function(e,t){Ko(this,{type:i,target:e,state:n(e),kind:t,last:void 0})}),(function(){for(var e=o(this),t=e.kind,r=e.last;r&&r.removed;)r=r.previous;return e.target&&(e.last=r=r?r.next:e.state.first)?"keys"==t?{value:r.key,done:!1}:"values"==t?{value:r.value,done:!1}:{value:[r.key,r.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),r?"entries":"values",!r,!0),function(e){var t=j(e),r=ye.f;_&&t&&!t[Go]&&r(t,Go,{configurable:!0,get:function(){return this}})}(t)}};!function(e,t,r){var i=-1!==e.indexOf("Map"),n=-1!==e.indexOf("Weak"),o=i?"set":"add",a=b[e],s=a&&a.prototype,u=a,c={},l=function(e){var t=s[e];Be(s,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(n&&!F(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return n&&!F(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(n&&!F(e))&&t.call(this,0===e?0:e)}:function(e,r){return t.call(this,0===e?0:e,r),this})};if(ct(e,"function"!=typeof a||!(n||s.forEach&&!w((function(){(new a).entries().next()})))))u=r.getConstructor(t,e,i,o),Po.enable();else if(ct(e,!0)){var d=new u,f=d[o](n?{}:-0,1)!=d,h=w((function(){d.has(1)})),p=function(e,t){if(!t&&!No)return!1;var r=!1;try{var i={};i[Uo]=function(){return{next:function(){return{done:r=!0}}}},e(i)}catch(tu){}return r}((function(e){new a(e)})),v=!n&&w((function(){for(var e=new a,t=5;t--;)e[o](t,t);return!e.has(-0)}));p||((u=t((function(t,r){Qo(t,u,e);var n=function(e,t,r){var i,n;return po&&"function"==typeof(i=t.constructor)&&i!==r&&F(n=i.prototype)&&n!==r.prototype&&po(e,n),e}(new a,t,u);return null!=r&&Bo(r,n[o],{that:n,AS_ENTRIES:i}),n}))).prototype=s,s.constructor=u),(h||v)&&(l("delete"),l("has"),i&&l("get")),(v||f)&&l(o),n&&s.clear&&delete s.clear}c[e]=u,dt({global:!0,forced:u!=a},c),lo(u,e),n||r.setStrong(u,e,i)}("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),Yo);var Xo=Rr.charAt,Zo="String Iterator",ea=je.set,ta=je.getterFor(Zo);So(String,"String",(function(e){ea(this,{type:Zo,string:Ot(e),index:0})}),(function(){var e,t=ta(this),r=t.string,i=t.index;return i>=r.length?{value:void 0,done:!0}:(e=Xo(r,i),t.index+=e.length,{value:e,done:!1})}));var ra={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},ia=he("span").classList,na=ia&&ia.constructor&&ia.constructor.prototype,oa=na===Object.prototype?void 0:na,aa=se("iterator"),sa=se("toStringTag"),ua=Vo.values,ca=function(e,t){if(e){if(e[aa]!==ua)try{Re(e,aa,ua)}catch(tu){e[aa]=ua}if(e[sa]||Re(e,sa,t),ra[t])for(var r in Vo)if(e[r]!==Vo[r])try{Re(e,r,Vo[r])}catch(tu){e[r]=Vo[r]}}};for(var la in ra)ca(b[la]&&b[la].prototype,la);ca(oa,"DOMTokenList");var da=[].slice,fa=/MSIE .\./.test(B),ha=function(e){return function(t,r){var i=arguments.length>2,n=i?da.call(arguments,2):void 0;return e(i?function(){("function"==typeof t?t:Function(t)).apply(this,n)}:t,r)}};dt({global:!0,bind:!0,forced:fa},{setTimeout:ha(b.setTimeout),setInterval:ha(b.setInterval)});var pa="toString",va=RegExp.prototype,Ta=va.toString,ma=w((function(){return"/a/b"!=Ta.call({source:"a",flags:"b"})})),ga=Ta.name!=pa;(ma||ga)&&Be(RegExp.prototype,pa,(function(){var e=me(this),t=Ot(e.source),r=e.flags;return"/"+t+"/"+Ot(void 0===r&&e instanceof RegExp&&!("flags"in va)?Ft.call(e):r)}),{unsafe:!0});var ya=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))},Ra=new(function(){function e(){h(this,e),this.intervalMap_=new Map}return v(e,[{key:"setInterval",value:function(e,t){var r=this,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=ya(),o=Fr(),a=o;this.intervalMap_.set(n,{rafId:null,timeoutId:null,onVisibilityChange:null});var s=function s(){if(i&&document.hidden){e();var u=setTimeout(s,t);r.setTimeoutId(n,u),o=Fr(),a=o}else{(a=Fr())-o>=t&&(o=a,e());var c=requestAnimationFrame(s);r.setRafId(n,c)}},u=requestAnimationFrame(s);if(this.setRafId(n,u),i){var c=function(){if(document.hidden){var e=Fr()-o;if(e>=t)s();else{var i=setTimeout(s,t-e);r.setTimeoutId(n,i)}}};document.addEventListener("visibilitychange",c),this.setOnVisibilityChange(n,c)}return n}},{key:"clearInterval",value:function(e){if(this.intervalMap_.has(e)){var t=this.intervalMap_.get(e),r=t.rafId,i=t.timeoutId,n=t.onVisibilityChange;cancelAnimationFrame(r),clearTimeout(i),document.removeEventListener("visibilitychange",n),this.intervalMap_.delete(e)}}},{key:"setTimeoutId",value:function(e,t){if(this.intervalMap_.has(e)){var r=this.intervalMap_.get(e);r.timeoutId&&clearTimeout(r.timeoutId),r.timeoutId=t}}},{key:"setRafId",value:function(e,t){if(this.intervalMap_.has(e)){var r=this.intervalMap_.get(e);r.rafId&&cancelAnimationFrame(r.rafId),r.rafId=t}}},{key:"setOnVisibilityChange",value:function(e,t){this.intervalMap_.has(e)&&(this.intervalMap_.get(e).onVisibilityChange=t)}}]),e}());(new Date).getTime();var Ca,Sa=function(){return(new Date).getTime()+0},ba=function(){var e=new Date;return e.setTime(Sa()),e.toLocaleString()};function wa(e){try{return JSON.stringify(e)}catch(tu){if(!Ca)try{var t={};t.a=t,JSON.stringify(t)}catch(r){Ca=r.message}if(tu.message===Ca)return"[Circular]";throw tu}}function _a(e){var t="",r=0;return e.length>1&&Br(e[0])&&(t=(t=e[0].replace(/(%?)(%([sdjo]))/g,(function(t,i,n,o){if(!i){var a=e[r+=1],s="";switch(o){case"s":s+=a;break;case"d":s+=+a;break;case"j":s=wa(a);break;case"o":var u=wa(a);"{"!==u[0]&&"["!==u[0]&&(u="<".concat(u,">")),s=function(e){if(!Object.getOwnPropertyDescriptor||!Object.getPrototypeOf)return Object.prototype.toString.call(e).slice(8,-1);for(;e;){var t=Object.getOwnPropertyDescriptor(e,"constructor");if(void 0!==t&&Dr(t.value)&&""!==t.value.name)return t.value.name;e=Object.getPrototypeOf(e)}return""}(a)+u}return s}return t}))).replace(/%{2,2}/g,"%"),r+=1),e.length>r&&(t&&(t+=" "),t+=e.slice(r).join(" ")),t}var Va=Object.prototype.hasOwnProperty;function Ma(){for(var e={},t=0;t<arguments.length;t+=1){var r=Object(arguments[t]);for(var i in r)Va.call(r,i)&&(e[i]="object"!==f(r[i])||Array.isArray(r[i])?r[i]:Ma(e[i],r[i]))}return e}function Aa(){try{throw new Error}catch(e){return e.stack}}function xa(e){var t=this,r=[],i=[];this.length=function(){return r.length},this.sent=function(){return i.length},this.push=function(t){r.push(t),r.length>e&&r.shift()},this.send=function(){return i.length||(i=r,r=[]),i},this.confirm=function(){i=[],t.content=""},this.fail=function(){r=i.concat(r),t.confirm();var n=1+r.length+i.length-e;n>0&&(i.splice(0,n),r=i.concat(r),t.confirm())}}var Ea,Ia,Pa,La=!!Aa();function ka(e){return"[".concat(e.timestamp,"] <").concat(e.level.label.toUpperCase(),">").concat(e.logger?" (".concat(e.logger,")"):"",": ").concat(e.message).concat(e.stacktrace?"\n".concat(e.stacktrace):"")}var Oa={interval:1e3,level:"trace",capacity:0,stacktrace:{levels:["trace","warn","error"],depth:3,excess:0},timestamp:function(){return(new Date).toISOString()},format:ka},Fa=-1,Da=!1,ja="",Ba="",Qa="",Ua=function(e){Da||(ja="".concat(e.sdkAppId),Ba="".concat(e.userId),Qa="".concat(e.version),Da=!0)},Na=function(e,t){if(!e||!e.getLogger)throw new TypeError("Argument is not a root loglevel object");if(Ea)throw new Error("You can assign a plugin only one time");Ea=e;var r=Ma(Oa,t);r.capacity=r.capacity||500;var i,n=r.interval;Fa=Ra.setInterval((function(){if(!Da)return;if(!a.sent()){if(!a.length())return;var e=a.send();a.content=i?'{"logs":['.concat(e.join(","),"]}"):e.join("\n"),function(e){if(!Da)return;var t=JSON.stringify({timestamp:ba(),sdkAppId:ja,userId:Ba,version:Qa,log:e});o.default.post("https://yun.tim.qq.com/v5/AVQualityReportSvc/C2S?sdkappid=1&cmdtype=jssdk_log",t).then((function(){a.confirm()})).catch((function(){a.fail()}))}(a.content)}}),n);var a=new xa(r.capacity);return Ia=e.methodFactory,Pa=function(e,t,n){var o=Ia(e,t,n),s=La&&r.stacktrace.levels.some((function(t){return t===e})),u=Ea.levels[e.toUpperCase()];return function(){for(var c=arguments.length,l=new Array(c),d=0;d<c;d++)l[d]=arguments[d];var f=_a(l),h=u>=t;if(h){var p=new Date;p.setTime(Sa());var v=p.toTimeString().replace(/.*(\d{2}:\d{2}:\d{2}).*/,"$1")+":".concat(p.getMilliseconds()),T="["+v+"] <"+e.toUpperCase()+"> "+f;o.apply(void 0,[T])}var m=ba(),g=s?Aa():"";if(g){var y=g.split("\n");y.splice(0,r.stacktrace.excess+3);var R=r.stacktrace.depth;if(R&&y.length!==R+1){var C=y.splice(0,R);g=C.join("\n"),y.length&&(g+="\n and ".concat(y.length," more"))}else g=y.join("\n")}var S=r.format({message:f,level:{label:e,value:u},logger:n||"",timestamp:m,stacktrace:g});void 0===i&&(i=!Br(S));var b="";if(i)try{b+=JSON.stringify(S)}catch(tu){return o.apply(void 0,l),void Ea.getLogger("logger").error(tu)}else b+=S;a.push(b)}},e.methodFactory=Pa,e.setLevel(e.getLevel()),e},Wa=function(){if(!Ea)throw new Error("You can't disable a not appled plugin");if(Pa!==Ea.methodFactory)throw new Error("You can't disable a plugin after appling another plugin");Ea.methodFactory=Ia,Ea.setLevel(Ea.getLevel()),Ea=void 0,Ra.clearInterval(Fa)},Ja=!1;Wi.setConfig=function(e){Ua(e)},Wi.setLogLevel=function(e){Wi.setLevel(e)},Wi.getLogLevel=function(e){return Wi.getLevel(e)},Wi.enableUploadLog=function(){Ja||(Na(Wi),Ja=!0)},Wi.disableUploadLog=function(){Ja&&(Wi.warn("disable upload log! Without log we are difficult to help you triage the issue you might run into!"),Wa(),Ja=!1)},Wi.enableUploadLog(),Wi.setLevel("INFO");var za,Ga,Ha,$a,Ka,qa,Ya,Xa,Za,es,ts,rs,is,ns,os,as,ss,us=function(){function e(t){h(this,e),this.id_=t.id,this.direction_=t.direction,this.type_=t.type,this.directionPrefix_="local"===this.direction_?"":"*"}return v(e,[{key:"log",value:function(e,t){Wi[e]("[".concat(this.directionPrefix_).concat(this.id_,"] ").concat(this.type_," ").concat(t))}},{key:"setId",value:function(e){this.id_=e}},{key:"info",value:function(e){this.log("info",e)}},{key:"debug",value:function(e){this.log("debug",e)}},{key:"warn",value:function(e){this.log("warn",e)}},{key:"error",value:function(e){this.log("error",e)}}]),e}();e.TRTCVideoResolution=void 0,(za=e.TRTCVideoResolution||(e.TRTCVideoResolution={}))[za.TRTCVideoResolution_120_120=1]="TRTCVideoResolution_120_120",za[za.TRTCVideoResolution_160_160=3]="TRTCVideoResolution_160_160",za[za.TRTCVideoResolution_270_270=5]="TRTCVideoResolution_270_270",za[za.TRTCVideoResolution_480_480=7]="TRTCVideoResolution_480_480",za[za.TRTCVideoResolution_160_120=50]="TRTCVideoResolution_160_120",za[za.TRTCVideoResolution_240_180=52]="TRTCVideoResolution_240_180",za[za.TRTCVideoResolution_280_210=54]="TRTCVideoResolution_280_210",za[za.TRTCVideoResolution_320_240=56]="TRTCVideoResolution_320_240",za[za.TRTC