UNPKG

@tencentcloud/tuiroom-engine-wx

Version:
2 lines 230 kB
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@tencentcloud/chat"),require("@tencentcloud/trtc-component-wx")):"function"==typeof define&&define.amd?define(["exports","@tencentcloud/chat","@tencentcloud/trtc-component-wx"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).TUIRoomEngine={},e.TencentCloudChat,e.TRTCCloud)}(this,(function(e,t,n){function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=r(t),i=r(n);function a(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function s(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(t){i(t)}}function s(e){try{u(r.throw(e))}catch(t){i(t)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,p(r.key),r)}}function d(e,t,n){return t&&l(e.prototype,t),n&&l(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function f(){f=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function l(e,t,n,r){var i=t&&t.prototype instanceof y?t:y,a=Object.create(i.prototype),s=new k(r||[]);return o(a,"_invoke",{value:b(e,n,s)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=l;var v="suspendedStart",h="suspendedYield",p="executing",g="completed",m={};function y(){}function T(){}function R(){}var E={};c(E,a,(function(){return this}));var C=Object.getPrototypeOf,I=C&&C(C(N([])));I&&I!==n&&r.call(I,a)&&(E=I);var S=R.prototype=y.prototype=Object.create(E);function _(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function A(e,t){function n(o,i,a,s){var u=d(e[o],e,i);if("throw"!==u.type){var c=u.arg,l=c.value;return l&&"object"==typeof l&&r.call(l,"__await")?t.resolve(l.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(l).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(u.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function b(t,n,r){var o=v;return function(i,a){if(o===p)throw Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var u=w(s,r);if(u){if(u===m)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===v)throw o=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=p;var c=d(t,n,r);if("normal"===c.type){if(o=r.done?g:h,c.arg===m)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=g,r.method="throw",r.arg=c.arg)}}}function w(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,w(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var i=d(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function M(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(M,this),this.reset(!0)}function N(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(typeof t+" is not iterable")}return T.prototype=R,o(S,"constructor",{value:R,configurable:!0}),o(R,"constructor",{value:T,configurable:!0}),T.displayName=c(R,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===T||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,R):(e.__proto__=R,c(e,u,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},_(A.prototype),c(A.prototype,s,(function(){return this})),t.AsyncIterator=A,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new A(l(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},_(S),c(S,u,"Generator"),c(S,a,(function(){return this})),c(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=N,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(O),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return s.type="throw",s.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;O(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:N(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),m}},t}function v(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||m(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 h(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||m(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function g(e){return g="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},g(e)}function m(e,t){if(e){if("string"==typeof e)return u(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}"function"==typeof SuppressedError&&SuppressedError;var y="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},T=function(e){return e&&e.Math===Math&&e},R=T("object"==typeof globalThis&&globalThis)||T("object"==typeof window&&window)||T("object"==typeof self&&self)||T("object"==typeof y&&y)||T("object"==typeof y&&y)||function(){return this}()||Function("return this")(),E={},C=function(e){try{return!!e()}catch(t){return!0}},I=!C((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),S=!C((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),_=S,A=Function.prototype.call,b=_?A.bind(A):function(){return A.apply(A,arguments)},w={},M={}.propertyIsEnumerable,O=Object.getOwnPropertyDescriptor,k=O&&!M.call({1:2},1);w.f=k?function(e){var t=O(this,e);return!!t&&t.enumerable}:M;var N,U,D=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},P=S,L=Function.prototype,V=L.call,x=P&&L.bind.bind(V,V),F=P?x:function(e){return function(){return V.apply(e,arguments)}},j=F,$=j({}.toString),q=j("".slice),B=function(e){return q($(e),8,-1)},W=C,Q=B,J=Object,H=F("".split),Y=W((function(){return!J("z").propertyIsEnumerable(0)}))?function(e){return"String"===Q(e)?H(e,""):J(e)}:J,G=function(e){return null==e},K=G,z=TypeError,X=function(e){if(K(e))throw new z("Can't call method on "+e);return e},Z=Y,ee=X,te=function(e){return Z(ee(e))},ne="object"==typeof document&&document.all,re=void 0===ne&&void 0!==ne?function(e){return"function"==typeof e||e===ne}:function(e){return"function"==typeof e},oe=re,ie=function(e){return"object"==typeof e?null!==e:oe(e)},ae=R,se=re,ue=function(e,t){return arguments.length<2?(n=ae[e],se(n)?n:void 0):ae[e]&&ae[e][t];var n},ce=F({}.isPrototypeOf),le=R.navigator,de=le&&le.userAgent,fe=de?String(de):"",ve=R,he=fe,pe=ve.process,ge=ve.Deno,me=pe&&pe.versions||ge&&ge.version,ye=me&&me.v8;ye&&(U=(N=ye.split("."))[0]>0&&N[0]<4?1:+(N[0]+N[1])),!U&&he&&(!(N=he.match(/Edge\/(\d+)/))||N[1]>=74)&&(N=he.match(/Chrome\/(\d+)/))&&(U=+N[1]);var Te=U,Re=Te,Ee=C,Ce=R.String,Ie=!!Object.getOwnPropertySymbols&&!Ee((function(){var e=Symbol("symbol detection");return!Ce(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Re&&Re<41})),Se=Ie&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,_e=ue,Ae=re,be=ce,we=Object,Me=Se?function(e){return"symbol"==typeof e}:function(e){var t=_e("Symbol");return Ae(t)&&be(t.prototype,we(e))},Oe=String,ke=function(e){try{return Oe(e)}catch(t){return"Object"}},Ne=re,Ue=ke,De=TypeError,Pe=function(e){if(Ne(e))return e;throw new De(Ue(e)+" is not a function")},Le=Pe,Ve=G,xe=function(e,t){var n=e[t];return Ve(n)?void 0:Le(n)},Fe=b,je=re,$e=ie,qe=TypeError,Be={},We={get exports(){return Be},set exports(e){Be=e}},Qe=R,Je=Object.defineProperty,He=function(e,t){try{Je(Qe,e,{value:t,configurable:!0,writable:!0})}catch(n){Qe[e]=t}return t},Ye=R,Ge=He,Ke="__core-js_shared__",ze=We.exports=Ye[Ke]||Ge(Ke,{});(ze.versions||(ze.versions=[])).push({version:"3.41.0",mode:"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.41.0/LICENSE",source:"https://github.com/zloirock/core-js"});var Xe=Be,Ze=function(e,t){return Xe[e]||(Xe[e]=t||{})},et=X,tt=Object,nt=function(e){return tt(et(e))},rt=nt,ot=F({}.hasOwnProperty),it=Object.hasOwn||function(e,t){return ot(rt(e),t)},at=F,st=0,ut=Math.random(),ct=at(1..toString),lt=function(e){return"Symbol("+(void 0===e?"":e)+")_"+ct(++st+ut,36)},dt=Ze,ft=it,vt=lt,ht=Ie,pt=Se,gt=R.Symbol,mt=dt("wks"),yt=pt?gt.for||gt:gt&&gt.withoutSetter||vt,Tt=function(e){return ft(mt,e)||(mt[e]=ht&&ft(gt,e)?gt[e]:yt("Symbol."+e)),mt[e]},Rt=b,Et=ie,Ct=Me,It=xe,St=function(e,t){var n,r;if("string"===t&&je(n=e.toString)&&!$e(r=Fe(n,e)))return r;if(je(n=e.valueOf)&&!$e(r=Fe(n,e)))return r;if("string"!==t&&je(n=e.toString)&&!$e(r=Fe(n,e)))return r;throw new qe("Can't convert object to primitive value")},_t=TypeError,At=Tt("toPrimitive"),bt=function(e,t){if(!Et(e)||Ct(e))return e;var n,r=It(e,At);if(r){if(void 0===t&&(t="default"),n=Rt(r,e,t),!Et(n)||Ct(n))return n;throw new _t("Can't convert object to primitive value")}return void 0===t&&(t="number"),St(e,t)},wt=bt,Mt=Me,Ot=function(e){var t=wt(e,"string");return Mt(t)?t:t+""},kt=ie,Nt=R.document,Ut=kt(Nt)&&kt(Nt.createElement),Dt=function(e){return Ut?Nt.createElement(e):{}},Pt=Dt,Lt=!I&&!C((function(){return 7!==Object.defineProperty(Pt("div"),"a",{get:function(){return 7}}).a})),Vt=I,xt=b,Ft=w,jt=D,$t=te,qt=Ot,Bt=it,Wt=Lt,Qt=Object.getOwnPropertyDescriptor;E.f=Vt?Qt:function(e,t){if(e=$t(e),t=qt(t),Wt)try{return Qt(e,t)}catch(n){}if(Bt(e,t))return jt(!xt(Ft.f,e,t),e[t])};var Jt={},Ht=I&&C((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Yt=ie,Gt=String,Kt=TypeError,zt=function(e){if(Yt(e))return e;throw new Kt(Gt(e)+" is not an object")},Xt=I,Zt=Lt,en=Ht,tn=zt,nn=Ot,rn=TypeError,on=Object.defineProperty,an=Object.getOwnPropertyDescriptor,sn="enumerable",un="configurable",cn="writable";Jt.f=Xt?en?function(e,t,n){if(tn(e),t=nn(t),tn(n),"function"==typeof e&&"prototype"===t&&"value"in n&&cn in n&&!n[cn]){var r=an(e,t);r&&r[cn]&&(e[t]=n.value,n={configurable:un in n?n[un]:r[un],enumerable:sn in n?n[sn]:r[sn],writable:!1})}return on(e,t,n)}:on:function(e,t,n){if(tn(e),t=nn(t),tn(n),Zt)try{return on(e,t,n)}catch(r){}if("get"in n||"set"in n)throw new rn("Accessors not supported");return"value"in n&&(e[t]=n.value),e};var ln=Jt,dn=D,fn=I?function(e,t,n){return ln.f(e,t,dn(1,n))}:function(e,t,n){return e[t]=n,e},vn={},hn={get exports(){return vn},set exports(e){vn=e}},pn=I,gn=it,mn=Function.prototype,yn=pn&&Object.getOwnPropertyDescriptor,Tn=gn(mn,"name"),Rn={EXISTS:Tn,PROPER:Tn&&"something"===function(){}.name,CONFIGURABLE:Tn&&(!pn||pn&&yn(mn,"name").configurable)},En=re,Cn=Be,In=F(Function.toString);En(Cn.inspectSource)||(Cn.inspectSource=function(e){return In(e)});var Sn,_n,An,bn=Cn.inspectSource,wn=re,Mn=R.WeakMap,On=wn(Mn)&&/native code/.test(String(Mn)),kn=lt,Nn=Ze("keys"),Un=function(e){return Nn[e]||(Nn[e]=kn(e))},Dn={},Pn=On,Ln=R,Vn=ie,xn=fn,Fn=it,jn=Be,$n=Un,qn=Dn,Bn="Object already initialized",Wn=Ln.TypeError,Qn=Ln.WeakMap;if(Pn||jn.state){var Jn=jn.state||(jn.state=new Qn);Jn.get=Jn.get,Jn.has=Jn.has,Jn.set=Jn.set,Sn=function(e,t){if(Jn.has(e))throw new Wn(Bn);return t.facade=e,Jn.set(e,t),t},_n=function(e){return Jn.get(e)||{}},An=function(e){return Jn.has(e)}}else{var Hn=$n("state");qn[Hn]=!0,Sn=function(e,t){if(Fn(e,Hn))throw new Wn(Bn);return t.facade=e,xn(e,Hn,t),t},_n=function(e){return Fn(e,Hn)?e[Hn]:{}},An=function(e){return Fn(e,Hn)}}var Yn={set:Sn,get:_n,has:An,enforce:function(e){return An(e)?_n(e):Sn(e,{})},getterFor:function(e){return function(t){var n;if(!Vn(t)||(n=_n(t)).type!==e)throw new Wn("Incompatible receiver, "+e+" required");return n}}},Gn=F,Kn=C,zn=re,Xn=it,Zn=I,er=Rn.CONFIGURABLE,tr=bn,nr=Yn.enforce,rr=Yn.get,or=String,ir=Object.defineProperty,ar=Gn("".slice),sr=Gn("".replace),ur=Gn([].join),cr=Zn&&!Kn((function(){return 8!==ir((function(){}),"length",{value:8}).length})),lr=String(String).split("String"),dr=hn.exports=function(e,t,n){"Symbol("===ar(or(t),0,7)&&(t="["+sr(or(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!Xn(e,"name")||er&&e.name!==t)&&(Zn?ir(e,"name",{value:t,configurable:!0}):e.name=t),cr&&n&&Xn(n,"arity")&&e.length!==n.arity&&ir(e,"length",{value:n.arity});try{n&&Xn(n,"constructor")&&n.constructor?Zn&&ir(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(o){}var r=nr(e);return Xn(r,"source")||(r.source=ur(lr,"string"==typeof t?t:"")),e};Function.prototype.toString=dr((function(){return zn(this)&&rr(this).source||tr(this)}),"toString");var fr=re,vr=Jt,hr=vn,pr=He,gr=function(e,t,n,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:t;if(fr(n)&&hr(n,i,r),r.global)o?e[t]=n:pr(t,n);else{try{r.unsafe?e[t]&&(o=!0):delete e[t]}catch(a){}o?e[t]=n:vr.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e},mr={},yr=Math.ceil,Tr=Math.floor,Rr=Math.trunc||function(e){var t=+e;return(t>0?Tr:yr)(t)},Er=function(e){var t=+e;return t!=t||0===t?0:Rr(t)},Cr=Er,Ir=Math.max,Sr=Math.min,_r=function(e,t){var n=Cr(e);return n<0?Ir(n+t,0):Sr(n,t)},Ar=Er,br=Math.min,wr=function(e){var t=Ar(e);return t>0?br(t,9007199254740991):0},Mr=wr,Or=function(e){return Mr(e.length)},kr=te,Nr=_r,Ur=Or,Dr=function(e){return function(t,n,r){var o=kr(t),i=Ur(o);if(0===i)return!e&&-1;var a,s=Nr(r,i);if(e&&n!=n){for(;i>s;)if((a=o[s++])!=a)return!0}else for(;i>s;s++)if((e||s in o)&&o[s]===n)return e||s||0;return!e&&-1}},Pr={includes:Dr(!0),indexOf:Dr(!1)},Lr=it,Vr=te,xr=Pr.indexOf,Fr=Dn,jr=F([].push),$r=function(e,t){var n,r=Vr(e),o=0,i=[];for(n in r)!Lr(Fr,n)&&Lr(r,n)&&jr(i,n);for(;t.length>o;)Lr(r,n=t[o++])&&(~xr(i,n)||jr(i,n));return i},qr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Br=$r,Wr=qr.concat("length","prototype");mr.f=Object.getOwnPropertyNames||function(e){return Br(e,Wr)};var Qr={};Qr.f=Object.getOwnPropertySymbols;var Jr=ue,Hr=mr,Yr=Qr,Gr=zt,Kr=F([].concat),zr=Jr("Reflect","ownKeys")||function(e){var t=Hr.f(Gr(e)),n=Yr.f;return n?Kr(t,n(e)):t},Xr=it,Zr=zr,eo=E,to=Jt,no=function(e,t,n){for(var r=Zr(t),o=to.f,i=eo.f,a=0;a<r.length;a++){var s=r[a];Xr(e,s)||n&&Xr(n,s)||o(e,s,i(t,s))}},ro=C,oo=re,io=/#|\.prototype\./,ao=function(e,t){var n=uo[so(e)];return n===lo||n!==co&&(oo(t)?ro(t):!!t)},so=ao.normalize=function(e){return String(e).replace(io,".").toLowerCase()},uo=ao.data={},co=ao.NATIVE="N",lo=ao.POLYFILL="P",fo=ao,vo=R,ho=E.f,po=fn,go=gr,mo=He,yo=no,To=fo,Ro=function(e,t){var n,r,o,i,a,s=e.target,u=e.global,c=e.stat;if(n=u?vo:c?vo[s]||mo(s,{}):vo[s]&&vo[s].prototype)for(r in t){if(i=t[r],o=e.dontCallGetSet?(a=ho(n,r))&&a.value:n[r],!To(u?r:s+(c?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;yo(i,o)}(e.sham||o&&o.sham)&&po(i,"sham",!0),go(n,r,i,e)}},Eo={};Eo[Tt("toStringTag")]="z";var Co="[object z]"===String(Eo),Io=Co,So=re,_o=B,Ao=Tt("toStringTag"),bo=Object,wo="Arguments"===_o(function(){return arguments}()),Mo=Io?_o:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=bo(e),Ao))?n:wo?_o(t):"Object"===(r=_o(t))&&So(t.callee)?"Arguments":r},Oo=Mo,ko=String,No=function(e){if("Symbol"===Oo(e))throw new TypeError("Cannot convert a Symbol value to a string");return ko(e)},Uo={},Do=$r,Po=qr,Lo=Object.keys||function(e){return Do(e,Po)},Vo=I,xo=Ht,Fo=Jt,jo=zt,$o=te,qo=Lo;Uo.f=Vo&&!xo?Object.defineProperties:function(e,t){jo(e);for(var n,r=$o(t),o=qo(t),i=o.length,a=0;i>a;)Fo.f(e,n=o[a++],r[n]);return e};var Bo,Wo=ue("document","documentElement"),Qo=zt,Jo=Uo,Ho=qr,Yo=Dn,Go=Wo,Ko=Dt,zo="prototype",Xo="script",Zo=Un("IE_PROTO"),ei=function(){},ti=function(e){return"<"+Xo+">"+e+"</"+Xo+">"},ni=function(e){e.write(ti("")),e.close();var t=e.parentWindow.Object;return e=null,t},ri=function(){try{Bo=new ActiveXObject("htmlfile")}catch(o){}var e,t,n;ri="undefined"!=typeof document?document.domain&&Bo?ni(Bo):(t=Ko("iframe"),n="java"+Xo+":",t.style.display="none",Go.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(ti("document.F=Object")),e.close(),e.F):ni(Bo);for(var r=Ho.length;r--;)delete ri[zo][Ho[r]];return ri()};Yo[Zo]=!0;var oi=Object.create||function(e,t){var n;return null!==e?(ei[zo]=Qo(e),n=new ei,ei[zo]=null,n[Zo]=e):n=ri(),void 0===t?n:Jo.f(n,t)},ii={},ai=F([].slice),si=B,ui=te,ci=mr.f,li=ai,di="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];ii.f=function(e){return di&&"Window"===si(e)?function(e){try{return ci(e)}catch(t){return li(di)}}(e):ci(ui(e))};var fi=vn,vi=Jt,hi=function(e,t,n){return n.get&&fi(n.get,t,{getter:!0}),n.set&&fi(n.set,t,{setter:!0}),vi.f(e,t,n)},pi={},gi=Tt;pi.f=gi;var mi=R,yi=mi,Ti=it,Ri=pi,Ei=Jt.f,Ci=b,Ii=ue,Si=Tt,_i=gr,Ai=Jt.f,bi=it,wi=Tt("toStringTag"),Mi=function(e,t,n){e&&!n&&(e=e.prototype),e&&!bi(e,wi)&&Ai(e,wi,{configurable:!0,value:t})},Oi=B,ki=F,Ni=function(e){if("Function"===Oi(e))return ki(e)},Ui=Pe,Di=S,Pi=Ni(Ni.bind),Li=function(e,t){return Ui(e),void 0===t?e:Di?Pi(e,t):function(){return e.apply(t,arguments)}},Vi=B,xi=Array.isArray||function(e){return"Array"===Vi(e)},Fi=F,ji=C,$i=re,qi=Mo,Bi=bn,Wi=function(){},Qi=ue("Reflect","construct"),Ji=/^\s*(?:class|function)\b/,Hi=Fi(Ji.exec),Yi=!Ji.test(Wi),Gi=function(e){if(!$i(e))return!1;try{return Qi(Wi,[],e),!0}catch(t){return!1}},Ki=function(e){if(!$i(e))return!1;switch(qi(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Yi||!!Hi(Ji,Bi(e))}catch(t){return!0}};Ki.sham=!0;var zi=!Qi||ji((function(){var e;return Gi(Gi.call)||!Gi(Object)||!Gi((function(){e=!0}))||e}))?Ki:Gi,Xi=xi,Zi=zi,ea=ie,ta=Tt("species"),na=Array,ra=function(e){var t;return Xi(e)&&(t=e.constructor,(Zi(t)&&(t===na||Xi(t.prototype))||ea(t)&&null===(t=t[ta]))&&(t=void 0)),void 0===t?na:t},oa=function(e,t){return new(ra(e))(0===t?0:t)},ia=Li,aa=Y,sa=nt,ua=Or,ca=oa,la=F([].push),da=function(e){var t=1===e,n=2===e,r=3===e,o=4===e,i=6===e,a=7===e,s=5===e||i;return function(u,c,l,d){for(var f,v,h=sa(u),p=aa(h),g=ua(p),m=ia(c,l),y=0,T=d||ca,R=t?T(u,g):n||a?T(u,0):void 0;g>y;y++)if((s||y in p)&&(v=m(f=p[y],y,h),e))if(t)R[y]=v;else if(v)switch(e){case 3:return!0;case 5:return f;case 6:return y;case 2:la(R,f)}else switch(e){case 4:return!1;case 7:la(R,f)}return i?-1:r||o?o:R}},fa={forEach:da(0),map:da(1),filter:da(2),some:da(3),every:da(4),find:da(5),findIndex:da(6),filterReject:da(7)},va=Ro,ha=R,pa=b,ga=F,ma=I,ya=Ie,Ta=C,Ra=it,Ea=ce,Ca=zt,Ia=te,Sa=Ot,_a=No,Aa=D,ba=oi,wa=Lo,Ma=mr,Oa=ii,ka=Qr,Na=E,Ua=Jt,Da=Uo,Pa=w,La=gr,Va=hi,xa=Ze,Fa=Dn,ja=lt,$a=Tt,qa=pi,Ba=function(e){var t=yi.Symbol||(yi.Symbol={});Ti(t,e)||Ei(t,e,{value:Ri.f(e)})},Wa=function(){var e=Ii("Symbol"),t=e&&e.prototype,n=t&&t.valueOf,r=Si("toPrimitive");t&&!t[r]&&_i(t,r,(function(e){return Ci(n,this)}),{arity:1})},Qa=Mi,Ja=Yn,Ha=fa.forEach,Ya=Un("hidden"),Ga="Symbol",Ka="prototype",za=Ja.set,Xa=Ja.getterFor(Ga),Za=Object[Ka],es=ha.Symbol,ts=es&&es[Ka],ns=ha.RangeError,rs=ha.TypeError,os=ha.QObject,is=Na.f,as=Ua.f,ss=Oa.f,us=Pa.f,cs=ga([].push),ls=xa("symbols"),ds=xa("op-symbols"),fs=xa("wks"),vs=!os||!os[Ka]||!os[Ka].findChild,hs=function(e,t,n){var r=is(Za,t);r&&delete Za[t],as(e,t,n),r&&e!==Za&&as(Za,t,r)},ps=ma&&Ta((function(){return 7!==ba(as({},"a",{get:function(){return as(this,"a",{value:7}).a}})).a}))?hs:as,gs=function(e,t){var n=ls[e]=ba(ts);return za(n,{type:Ga,tag:e,description:t}),ma||(n.description=t),n},ms=function(e,t,n){e===Za&&ms(ds,t,n),Ca(e);var r=Sa(t);return Ca(n),Ra(ls,r)?(n.enumerable?(Ra(e,Ya)&&e[Ya][r]&&(e[Ya][r]=!1),n=ba(n,{enumerable:Aa(0,!1)})):(Ra(e,Ya)||as(e,Ya,Aa(1,ba(null))),e[Ya][r]=!0),ps(e,r,n)):as(e,r,n)},ys=function(e,t){Ca(e);var n=Ia(t),r=wa(n).concat(Cs(n));return Ha(r,(function(t){ma&&!pa(Ts,n,t)||ms(e,t,n[t])})),e},Ts=function(e){var t=Sa(e),n=pa(us,this,t);return!(this===Za&&Ra(ls,t)&&!Ra(ds,t))&&(!(n||!Ra(this,t)||!Ra(ls,t)||Ra(this,Ya)&&this[Ya][t])||n)},Rs=function(e,t){var n=Ia(e),r=Sa(t);if(n!==Za||!Ra(ls,r)||Ra(ds,r)){var o=is(n,r);return!o||!Ra(ls,r)||Ra(n,Ya)&&n[Ya][r]||(o.enumerable=!0),o}},Es=function(e){var t=ss(Ia(e)),n=[];return Ha(t,(function(e){Ra(ls,e)||Ra(Fa,e)||cs(n,e)})),n},Cs=function(e){var t=e===Za,n=ss(t?ds:Ia(e)),r=[];return Ha(n,(function(e){!Ra(ls,e)||t&&!Ra(Za,e)||cs(r,ls[e])})),r};ya||(es=function(){if(Ea(ts,this))throw new rs("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?_a(arguments[0]):void 0,t=ja(e),n=function(e){var r=void 0===this?ha:this;r===Za&&pa(n,ds,e),Ra(r,Ya)&&Ra(r[Ya],t)&&(r[Ya][t]=!1);var o=Aa(1,e);try{ps(r,t,o)}catch(i){if(!(i instanceof ns))throw i;hs(r,t,o)}};return ma&&vs&&ps(Za,t,{configurable:!0,set:n}),gs(t,e)},La(ts=es[Ka],"toString",(function(){return Xa(this).tag})),La(es,"withoutSetter",(function(e){return gs(ja(e),e)})),Pa.f=Ts,Ua.f=ms,Da.f=ys,Na.f=Rs,Ma.f=Oa.f=Es,ka.f=Cs,qa.f=function(e){return gs($a(e),e)},ma&&(Va(ts,"description",{configurable:!0,get:function(){return Xa(this).description}}),La(Za,"propertyIsEnumerable",Ts,{unsafe:!0}))),va({global:!0,constructor:!0,wrap:!0,forced:!ya,sham:!ya},{Symbol:es}),Ha(wa(fs),(function(e){Ba(e)})),va({target:Ga,stat:!0,forced:!ya},{useSetter:function(){vs=!0},useSimple:function(){vs=!1}}),va({target:"Object",stat:!0,forced:!ya,sham:!ma},{create:function(e,t){return void 0===t?ba(e):ys(ba(e),t)},defineProperty:ms,defineProperties:ys,getOwnPropertyDescriptor:Rs}),va({target:"Object",stat:!0,forced:!ya},{getOwnPropertyNames:Es}),Wa(),Qa(es,Ga),Fa[Ya]=!0;var Is=Ie&&!!Symbol.for&&!!Symbol.keyFor,Ss=Ro,_s=ue,As=it,bs=No,ws=Ze,Ms=Is,Os=ws("string-to-symbol-registry"),ks=ws("symbol-to-string-registry");Ss({target:"Symbol",stat:!0,forced:!Ms},{for:function(e){var t=bs(e);if(As(Os,t))return Os[t];var n=_s("Symbol")(t);return Os[t]=n,ks[n]=t,n}});var Ns=Ro,Us=it,Ds=Me,Ps=ke,Ls=Is,Vs=Ze("symbol-to-string-registry");Ns({target:"Symbol",stat:!0,forced:!Ls},{keyFor:function(e){if(!Ds(e))throw new TypeError(Ps(e)+" is not a symbol");if(Us(Vs,e))return Vs[e]}});var xs=S,Fs=Function.prototype,js=Fs.apply,$s=Fs.call,qs="object"==typeof Reflect&&Reflect.apply||(xs?$s.bind(js):function(){return $s.apply(js,arguments)}),Bs=xi,Ws=re,Qs=B,Js=No,Hs=F([].push),Ys=Ro,Gs=ue,Ks=qs,zs=b,Xs=F,Zs=C,eu=re,tu=Me,nu=ai,ru=function(e){if(Ws(e))return e;if(Bs(e)){for(var t=e.length,n=[],r=0;r<t;r++){var o=e[r];"string"==typeof o?Hs(n,o):"number"!=typeof o&&"Number"!==Qs(o)&&"String"!==Qs(o)||Hs(n,Js(o))}var i=n.length,a=!0;return function(e,t){if(a)return a=!1,t;if(Bs(this))return t;for(var r=0;r<i;r++)if(n[r]===e)return t}}},ou=Ie,iu=String,au=Gs("JSON","stringify"),su=Xs(/./.exec),uu=Xs("".charAt),cu=Xs("".charCodeAt),lu=Xs("".replace),du=Xs(1..toString),fu=/[\uD800-\uDFFF]/g,vu=/^[\uD800-\uDBFF]$/,hu=/^[\uDC00-\uDFFF]$/,pu=!ou||Zs((function(){var e=Gs("Symbol")("stringify detection");return"[null]"!==au([e])||"{}"!==au({a:e})||"{}"!==au(Object(e))})),gu=Zs((function(){return'"\\udf06\\ud834"'!==au("\udf06\ud834")||'"\\udead"'!==au("\udead")})),mu=function(e,t){var n=nu(arguments),r=ru(t);if(eu(r)||void 0!==e&&!tu(e))return n[1]=function(e,t){if(eu(r)&&(t=zs(r,this,iu(e),t)),!tu(t))return t},Ks(au,null,n)},yu=function(e,t,n){var r=uu(n,t-1),o=uu(n,t+1);return su(vu,e)&&!su(hu,o)||su(hu,e)&&!su(vu,r)?"\\u"+du(cu(e,0),16):e};au&&Ys({target:"JSON",stat:!0,arity:3,forced:pu||gu},{stringify:function(e,t,n){var r=nu(arguments),o=Ks(pu?mu:au,null,r);return gu&&"string"==typeof o?lu(o,fu,yu):o}});var Tu=Qr,Ru=nt;Ro({target:"Object",stat:!0,forced:!Ie||C((function(){Tu.f(1)}))},{getOwnPropertySymbols:function(e){var t=Tu.f;return t?t(Ru(e)):[]}});var Eu=Ro,Cu=I,Iu=F,Su=it,_u=re,Au=ce,bu=No,wu=hi,Mu=no,Ou=R.Symbol,ku=Ou&&Ou.prototype;if(Cu&&_u(Ou)&&(!("description"in ku)||void 0!==Ou().description)){var Nu={},Uu=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:bu(arguments[0]),t=Au(ku,this)?new Ou(e):void 0===e?Ou():Ou(e);return""===e&&(Nu[t]=!0),t};Mu(Uu,Ou),Uu.prototype=ku,ku.constructor=Uu;var Du="Symbol(description detection)"===String(Ou("description detection")),Pu=Iu(ku.valueOf),Lu=Iu(ku.toString),Vu=/^Symbol\((.*)\)[^)]+$/,xu=Iu("".replace),Fu=Iu("".slice);wu(ku,"description",{configurable:!0,get:function(){var e=Pu(this);if(Su(Nu,e))return"";var t=Lu(e),n=Du?Fu(t,7,-1):xu(t,Vu,"$1");return""===n?void 0:n}}),Eu({global:!0,constructor:!0,forced:!0},{Symbol:Uu})}var ju=TypeError,$u=function(e){if(e>9007199254740991)throw ju("Maximum allowed index exceeded");return e},qu=I,Bu=Jt,Wu=D,Qu=function(e,t,n){qu?Bu.f(e,t,Wu(0,n)):e[t]=n},Ju=C,Hu=Te,Yu=Tt("species"),Gu=function(e){return Hu>=51||!Ju((function(){var t=[];return(t.constructor={})[Yu]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Ku=Ro,zu=C,Xu=xi,Zu=ie,ec=nt,tc=Or,nc=$u,rc=Qu,oc=oa,ic=Gu,ac=Te,sc=Tt("isConcatSpreadable"),uc=ac>=51||!zu((function(){var e=[];return e[sc]=!1,e.concat()[0]!==e})),cc=function(e){if(!Zu(e))return!1;var t=e[sc];return void 0!==t?!!t:Xu(e)};Ku({target:"Array",proto:!0,arity:1,forced:!uc||!ic("concat")},{concat:function(e){var t,n,r,o,i,a=ec(this),s=oc(a,0),u=0;for(t=-1,r=arguments.length;t<r;t++)if(cc(i=-1===t?a:arguments[t]))for(o=tc(i),nc(u+o),n=0;n<o;n++,u++)n in i&&rc(s,u,i[n]);else nc(u+1),rc(s,u++,i);return s.length=u,s}});var lc=ke,dc=TypeError,fc=function(e,t){if(!delete e[t])throw new dc("Cannot delete property "+lc(t)+" of "+lc(e))},vc=nt,hc=_r,pc=Or,gc=fc,mc=Math.min,yc=[].copyWithin||function(e,t){var n=vc(this),r=pc(n),o=hc(e,r),i=hc(t,r),a=arguments.length>2?arguments[2]:void 0,s=mc((void 0===a?r:hc(a,r))-i,r-o),u=1;for(i<o&&o<i+s&&(u=-1,i+=s-1,o+=s-1);s-- >0;)i in n?n[o]=n[i]:gc(n,o),o+=u,i+=u;return n},Tc=Tt,Rc=oi,Ec=Jt.f,Cc=Tc("unscopables"),Ic=Array.prototype;void 0===Ic[Cc]&&Ec(Ic,Cc,{configurable:!0,value:Rc(null)});var Sc=function(e){Ic[Cc][e]=!0},_c=Sc;Ro({target:"Array",proto:!0},{copyWithin:yc}),_c("copyWithin");var Ac=C,bc=function(e,t){var n=[][e];return!!n&&Ac((function(){n.call(null,t||function(){return 1},1)}))},wc=fa.every;Ro({target:"Array",proto:!0,forced:!bc("every")},{every:function(e){return wc(this,e,arguments.length>1?arguments[1]:void 0)}});var Mc=fa.filter;Ro({target:"Array",proto:!0,forced:!Gu("filter")},{filter:function(e){return Mc(this,e,arguments.length>1?arguments[1]:void 0)}});var Oc=Ro,kc=fa.findIndex,Nc=Sc,Uc="findIndex",Dc=!0;Uc in[]&&Array(1)[Uc]((function(){Dc=!1})),Oc({target:"Array",proto:!0,forced:Dc},{findIndex:function(e){return kc(this,e,arguments.length>1?arguments[1]:void 0)}}),Nc(Uc);var Pc=fa.forEach,Lc=bc("forEach")?[].forEach:function(e){return Pc(this,e,arguments.length>1?arguments[1]:void 0)};Ro({target:"Array",proto:!0,forced:[].forEach!==Lc},{forEach:Lc});var Vc=Pr.includes,xc=Sc;Ro({target:"Array",proto:!0,forced:C((function(){return!Array(1).includes()}))},{includes:function(e){return Vc(this,e,arguments.length>1?arguments[1]:void 0)}}),xc("includes");var Fc=Ro,jc=Pr.indexOf,$c=bc,qc=Ni([].indexOf),Bc=!!qc&&1/qc([1],1,-0)<0;Fc({target:"Array",proto:!0,forced:Bc||!$c("indexOf")},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return Bc?qc(this,e,t)||0:jc(this,e,t)}}),Ro({target:"Array",stat:!0},{isArray:xi});var Wc,Qc,Jc,Hc={},Yc=!C((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Gc=it,Kc=re,zc=nt,Xc=Yc,Zc=Un("IE_PROTO"),el=Object,tl=el.prototype,nl=Xc?el.getPrototypeOf:function(e){var t=zc(e);if(Gc(t,Zc))return t[Zc];var n=t.constructor;return Kc(n)&&t instanceof n?n.prototype:t instanceof el?tl:null},rl=C,ol=re,il=ie,al=nl,sl=gr,ul=Tt("iterator"),cl=!1;[].keys&&("next"in(Jc=[].keys())?(Qc=al(al(Jc)))!==Object.prototype&&(Wc=Qc):cl=!0);var ll=!il(Wc)||rl((function(){var e={};return Wc[ul].call(e)!==e}));ll&&(Wc={}),ol(Wc[ul])||sl(Wc,ul,(function(){return this}));var dl={IteratorPrototype:Wc,BUGGY_SAFARI_ITERATORS:cl},fl=dl.IteratorPrototype,vl=oi,hl=D,pl=Mi,gl=Hc,ml=function(){return this},yl=F,Tl=Pe,Rl=ie,El=function(e){return Rl(e)||null===e},Cl=String,Il=TypeError,Sl=function(e,t,n){try{return yl(Tl(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(r){}},_l=ie,Al=X,bl=function(e){if(El(e))return e;throw new Il("Can't set "+Cl(e)+" as a prototype")},wl=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Sl(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(r){}return function(n,r){return Al(n),bl(r),_l(n)?(t?e(n,r):n.__proto__=r,n):n}}():void 0),Ml=Ro,Ol=b,kl=re,Nl=function(e,t,n,r){var o=t+" Iterator";return e.prototype=vl(fl,{next:hl(+!r,n)}),pl(e,o,!1),gl[o]=ml,e},Ul=nl,Dl=wl,Pl=Mi,Ll=fn,Vl=gr,xl=Hc,Fl=Rn.PROPER,jl=Rn.CONFIGURABLE,$l=dl.IteratorPrototype,ql=dl.BUGGY_SAFARI_ITERATORS,Bl=Tt("iterator"),Wl="keys",Ql="values",Jl="entries",Hl=function(){return this},Yl=function(e,t,n,r,o,i,a){Nl(n,t,r);var s,u,c,l=function(e){if(e===o&&p)return p;if(!ql&&e&&e in v)return v[e];switch(e){case Wl:case Ql:case Jl:return function(){return new n(this,e)}}return function(){return new n(this)}},d=t+" Iterator",f=!1,v=e.prototype,h=v[Bl]||v["@@iterator"]||o&&v[o],p=!ql&&h||l(o),g="Array"===t&&v.entries||h;if(g&&(s=Ul(g.call(new e)))!==Object.prototype&&s.next&&(Ul(s)!==$l&&(Dl?Dl(s,$l):kl(s[Bl])||Vl(s,Bl,Hl)),Pl(s,d,!0)),Fl&&o===Ql&&h&&h.name!==Ql&&(jl?Ll(v,"name",Ql):(f=!0,p=function(){return Ol(h,this)})),o)if(u={values:l(Ql),keys:i?p:l(Wl),entries:l(Jl)},a)for(c in u)(ql||f||!(c in v))&&Vl(v,c,u[c]);else Ml({target:t,proto:!0,forced:ql||f},u);return v[Bl]!==p&&Vl(v,Bl,p,{name:o}),xl[t]=p,u},Gl=function(e,t){return{value:e,done:t}},Kl=te,zl=Sc,Xl=Hc,Zl=Yn,ed=Jt.f,td=Yl,nd=Gl,rd=I,od="Array Iterator",id=Zl.set,ad=Zl.getterFor(od),sd=td(Array,"Array",(function(e,t){id(this,{type:od,target:Kl(e),index:0,kind:t})}),(function(){var e=ad(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,nd(void 0,!0);switch(e.kind){case"keys":return nd(n,!1);case"values":return nd(t[n],!1)}return nd([n,t[n]],!1)}),"values"),ud=Xl.Arguments=Xl.Array;if(zl("keys"),zl("values"),zl("entries"),rd&&"values"!==ud.name)try{ed(ud,"name",{value:"values"})}catch(VN){}var cd=Ro,ld=Y,dd=te,fd=bc,vd=F([].join);cd({target:"Array",proto:!0,forced:ld!==Object||!fd("join",",")},{join:function(e){return vd(dd(this),void 0===e?",":e)}});var hd=qs,pd=te,gd=Er,md=Or,yd=bc,Td=Math.min,Rd=[].lastIndexOf,Ed=!!Rd&&1/[1].lastIndexOf(1,-0)<0,Cd=yd("lastIndexOf"),Id=Ed||!Cd?function(e){if(Ed)return hd(Rd,this,arguments)||0;var t=pd(this),n=md(t);if(0===n)return-1;var r=n-1;for(arguments.length>1&&(r=Td(r,gd(arguments[1]))),r<0&&(r=n+r);r>=0;r--)if(r in t&&t[r]===e)return r||0;return-1}:Rd;Ro({target:"Array",proto:!0,forced:Id!==[].lastIndexOf},{lastIndexOf:Id});var Sd=fa.map;Ro({target:"Array",proto:!0,forced:!Gu("map")},{map:function(e){return Sd(this,e,arguments.length>1?arguments[1]:void 0)}});var _d=Ro,Ad=xi,bd=zi,wd=ie,Md=_r,Od=Or,kd=te,Nd=Qu,Ud=Tt,Dd=ai,Pd=Gu("slice"),Ld=Ud("species"),Vd=Array,xd=Math.max;_d({target:"Array",proto:!0,forced:!Pd},{slice:function(e,t){var n,r,o,i=kd(this),a=Od(i),s=Md(e,a),u=Md(void 0===t?a:t,a);if(Ad(i)&&(n=i.constructor,(bd(n)&&(n===Vd||Ad(n.prototype))||wd(n)&&null===(n=n[Ld]))&&(n=void 0),n===Vd||void 0===n))return Dd(i,s,u);for(r=new(void 0===n?Vd:n)(xd(u-s,0)),o=0;s<u;s++,o++)s in i&&Nd(r,o,i[s]);return r.length=o,r}});var Fd=I,jd=xi,$d=TypeError,qd=Object.getOwnPropertyDescriptor,Bd=Fd&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(VN){return VN instanceof TypeError}}(),Wd=Ro,Qd=nt,Jd=_r,Hd=Er,Yd=Or,Gd=Bd?function(e,t){if(jd(e)&&!qd(e,"length").writable)throw new $d("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t},Kd=$u,zd=oa,Xd=Qu,Zd=fc,ef=Gu("splice"),tf=Math.max,nf=Math.min;Wd({target:"Array",proto:!0,forced:!ef},{splice:function(e,t){var n,r,o,i,a,s,u=Qd(this),c=Yd(u),l=Jd(e,c),d=arguments.length;for(0===d?n=r=0:1===d?(n=0,r=c-l):(n=d-2,r=nf(tf(Hd(t),0),c-l)),Kd(c+n-r),o=zd(u,r),i=0;i<r;i++)(a=l+i)in u&&Xd(o,i,u[a]);if(o.length=r,n<r){for(i=l;i<c-r;i++)s=i+n,(a=i+r)in u?u[s]=u[a]:Zd(u,s);for(i=c;i>c-r+n;i--)Zd(u,i-1)}else if(n>r)for(i=c-r;i>l;i--)s=i+n-1,(a=i+r-1)in u?u[s]=u[a]:Zd(u,s);for(i=0;i<n;i++)u[i+l]=arguments[i+2];return Gd(u,c-r+n),o}});var rf="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView,of=gr,af=function(e,t,n){for(var r in t)of(e,r,t[r],n);return e},sf=ce,uf=TypeError,cf=function(e,t){if(sf(t,e))return e;throw new uf("Incorrect invocation")},lf=Er,df=wr,ff=RangeError,vf=function(e){if(void 0===e)return 0;var t=lf(e),n=df(t);if(t!==n)throw new ff("Wrong length or index");return n},hf=Math.sign||function(e){var t=+e;return 0===t||t!=t?t:t<0?-1:1},pf=4503599627370496,gf=hf,mf=function(e){return e+pf-pf},yf=Math.abs,Tf=function(e,t,n,r){var o=+e,i=yf(o),a=gf(o);if(i<r)return a*mf(i/r/t)*r*t;var s=(1+t/2220446049250313e-31)*i,u=s-(s-i);return u>n||u!=u?Infinity*a:a*u},Rf=Math.fround||function(e){return Tf(e,1.1920928955078125e-7,34028234663852886e22,11754943508222875e-54)},Ef=Array,Cf=Math.abs,If=Math.pow,Sf=Math.floor,_f=Math.log,Af=Math.LN2,bf={pack:function(e,t,n){var r,o,i,a=Ef(n),s=8*n-t-1,u=(1<<s)-1,c=u>>1,l=23===t?If(2,-24)-If(2,-77):0,d=e<0||0===e&&1/e<0?1:0,f=0;for((e=Cf(e))!=e||Infinity===e?(o=e!=e?1:0,r=u):(r=Sf(_f(e)/Af),e*(i=If(2,-r))<1&&(r--,i*=2),(e+=r+c>=1?l/i:l*If(2,1-c))*i>=2&&(r++,i/=2),r+c>=u?(o=0,r=u):r+c>=1?(o=(e*i-1)*If(2,t),r+=c):(o=e*If(2,c-1)*If(2,t),r=0));t>=8;)a[f++]=255&o,o/=256,t-=8;for(r=r<<t|o,s+=t;s>0;)a[f++]=255&r,r/=256,s-=8;return a[f-1]|=128*d,a},unpack:function(e,t){var n,r=e.length,o=8*r-t-1,i=(1<<o)-1,a=i>>1,s=o-7,u=r-1,c=e[u--],l=127&c;for(c>>=7;s>0;)l=256*l+e[u--],s-=8;for(n=l&(1<<-s)-1,l>>=-s,s+=t;s>0;)n=256*n+e[u--],s-=8;if(0===l)l=1-a;else{if(l===i)return n?NaN:c?-Infinity:Infinity;n+=If(2,t),l-=a}return(c?-1:1)*n*If(2,l-t)}},wf=nt,Mf=_r,Of=Or,kf=function(e){for(var t=wf(this),n=Of(t),r=arguments.length,o=Mf(r>1?arguments[1]:void 0,n),i=r>2?arguments[2]:void 0,a=void 0===i?n:Mf(i,n);a>o;)t[o++]=e;return t},Nf=re,Uf=ie,Df=wl,Pf=function(e,t,n){var r,o;return Df&&Nf(r=t.constructor)&&r!==n&&Uf(o=r.prototype)&&o!==n.prototype&&Df(e,o),e},Lf=R,Vf=F,xf=I,Ff=rf,jf=fn,$f=hi,qf=af,Bf=C,Wf=cf,Qf=Er,Jf=wr,Hf=vf,Yf=Rf,Gf=bf,Kf=nl,zf=wl,Xf=kf,Zf=ai,ev=Pf,tv=no,nv=Mi,rv=Yn,ov=Rn.PROPER,iv=Rn.CONFIGURABLE,av="ArrayBuffer",sv="DataView",uv="prototype",cv="Wrong index",lv=rv.getterFor(av),dv=rv.getterFor(sv),fv=rv.set,vv=Lf[av],hv=vv,pv=hv&&hv[uv],gv=Lf[sv],mv=gv&&gv[uv],yv=Object.prototype,Tv=Lf.Array,Rv=Lf.RangeError,Ev=Vf(Xf),Cv=Vf([].reverse),Iv=Gf.pack,Sv=Gf.unpack,_v=function(e){return[255&e]},Av=function(e){return[255&e,e>>8&255]},bv=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},wv=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},Mv=function(e){return Iv(Yf(e),23,4)},Ov=function(e){return Iv(e,52,8)},kv=function(e,t,n){$f(e[uv],t,{configurable:!0,get:function(){return n(this)[t]}})},Nv=function(e,t,n,r){var o=dv(e),i=Hf(n),a=!!r;if(i+t>o.byteLength)throw new Rv(cv);var s=o.bytes,u=i+o.byteOffset,c=Zf(s,u,u+t);return a?c:Cv(c)},Uv=function(e,t,n,r,o,i){var a=dv(e),s=Hf(n),u=r(+o),c=!!i;if(s+t>a.byteLength)throw new Rv(cv);for(var l=a.bytes,d=s+a.byteOffset,f=0;f<t;f++)l[d+f]=u[c?f:t-f-1]};if(Ff){var Dv=ov&&vv.name!==av;Bf((function(){vv(1)}))&&Bf((function(){new vv(-1)}))&&!Bf((function(){return new vv,new vv(1.5),new vv(NaN),1!==vv.length||Dv&&!iv}))?Dv&&iv&&jf(vv,"name",av):((hv=function(e){return Wf(this,pv),ev(new vv(Hf(e)),this,hv)})[uv]=pv,pv.constructor=hv,tv(hv,vv)),zf&&Kf(mv)!==yv&&zf(mv,yv);var Pv=new gv(new hv(2)),Lv=Vf(mv.setInt8);Pv.setInt8(0,2147483648),Pv.setInt8(1,2147483649),!Pv.getInt8(0)&&Pv.getInt8(1)||qf(mv,{setInt8:function(e,t){Lv(this,e,t<<24>>24)},setUint8:function(e,t){Lv(this,e,t<<24>>24)}},{unsafe:!0})}else pv=(hv=function(e){Wf(this,pv);var t=Hf(e);fv(this,{type:av,bytes:Ev(Tv(t),0),byteLength:t}),xf||(this.byteLength=t,this.detached=!1)})[uv],mv=(gv=function(e,t,n){Wf(this,mv),Wf(e,pv);var r=lv(e),o=r.byteLength,i=Qf(t);if(i<0||i>o)throw new Rv("Wrong offset");if(i+(n=void 0===n?o-i:Jf(n))>o)throw new Rv("Wrong length");fv(this,{type:sv,buffer:e,byteLength:n,byteOffset:i,bytes:r.bytes}),xf||(this.buffer=e,this.byteLength=n,this.byteOffset=i)})[uv],xf&&(kv(hv,"byteLength",lv),kv(gv,"buffer",dv),kv(gv,"byteLength",dv),kv(gv,"byteOffset",dv)),qf(mv,{getInt8:function(e){return Nv(this,1,e)[0]<<24>>24},getUint8:function(e){return Nv(this,1,e)[0]},getInt16:function(e){var t=Nv(this,2,e,arguments.length>1&&arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=Nv(this,2,e,arguments.length>1&&arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return wv(Nv(this,4,e,arguments.length>1&&arguments[1]))},getUint32:function(e){return wv(Nv(this,4,e,arguments.length>1&&arguments[1]))>>>0},getFloat32:function(e){return Sv(Nv(this,4,e,arguments.length>1&&arguments[1]),23)},getFloat64:function(e){return Sv(Nv(this,8,e,arguments.length>1&&arguments[1]),52)},setInt8:function(e,t){Uv(this,1,e,_v,t)},setUint8:function(e,t){Uv(this,1,e,_v,t)},setInt16:function(e,t){Uv(this,2,e,Av,t,arguments.length>2&&arguments[2])},setUint16:function(e,t){Uv(this,2,e,Av,t,arguments.length>2&&arguments[2])},setInt32:function(e,t){Uv(this,4,e,bv,t,arguments.length>2&&arguments[2])},setUint32:function(e,t){Uv(this,4,e,bv,t,arguments.length>2&&arguments[2])},setFloat32:function(e,t){Uv(this,4,e,Mv,t,arguments.length>2&&arguments[2])},setFloat64:function(e,t){Uv(this,8,e,Ov,t,arguments.length>2&&arguments[2])}});nv(hv,av),nv(gv,sv);var Vv={ArrayBuffer:hv,DataView:gv},xv=ue,Fv=hi,jv=I,$v=Tt("species"),qv=function(e){var t=xv(e);jv&&t&&!t[$v]&&Fv(t,$v,{configurable:!0,get:function(){return this}})},Bv=qv,Wv="ArrayBuffer",Qv=Vv[Wv];Ro({global:!0,constructor:!0,forced:R[Wv]!==Qv},{ArrayBuffer:Qv}),Bv(Wv);var Jv=Ro,Hv=Ni,Yv=C,Gv=zt,Kv=_r,zv=wr,Xv=Vv.ArrayBuffer,Zv=Vv.DataView,eh=Zv.prototype,th=Hv(Xv.prototype.slice),nh=Hv(eh.getUint8),rh=Hv(eh.setUint8);Jv({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:Yv((function(){return!new Xv(2).slice(1,void 0).byteLength}))},{slice:function(e,t){if(th&&void 0===t)return th(Gv(this),e);for(var n=Gv(this).byteLength,r=Kv(e,n),o=Kv(void 0===t?n:t,n),i=new Xv(zv(o-r)),a=new Zv(this),s=new Zv(i),u=0;r<o;)rh(s,u++,nh(a,r++));return i}}),Ro({global:!0,constructor:!0,forced:!rf},{DataView:Vv.DataView});var oh=Ro,ih=Date,ah=F(ih.prototype.getTime);oh({target:"Date",stat:!0},{now:function(){return ah(new ih)}});var sh=nt,uh=bt;Ro({target:"Date",proto:!0,arity:1,forced:C((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}))},{toJSON:function(e){var t=sh(this),n=uh(t,"number");return"number"!=typeof n||isFinite(n)?t.toISOString():null}});var ch=F,lh=gr,dh=Date.prototype,fh="Invalid Date",vh="toString",hh=ch(dh[vh]),ph=ch(dh.getTime);String(new Date(NaN))!==fh&&lh(dh,vh,(function(){var e=ph(this);return e==e?hh(this):fh}));var gh=F,mh=Pe,yh=ie,Th=it,Rh=ai,Eh=S,Ch=Function,Ih=gh([].concat),Sh=gh([].join),_h={},Ah=Eh?Ch.bind:function(e){var t=mh(this),n=t.prototype,r=Rh(arguments,1),o=function(){var n=Ih(r,Rh(arguments));return this instanceof o?function(e,t,n){if(!Th(_h,t)){for(var r=[],o=0;o<t;o++)r[o]="a["+o+"]";_h[t]=Ch("C,a","return new C("+Sh(r,",")+")")}return _h[t](e,n)}(t,n.length,n):t.apply(e,n)};return yh(n)&&(o.prototype=n),o},bh=Ah;Ro({target:"Function",proto:!0,forced:Function.bind!==bh},{bind:bh});var wh=I,Mh=Rn.EXISTS,Oh=F,kh=hi,Nh=Function.prototype,Uh=Oh(Nh.toString),Dh=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Ph=Oh(Dh.exec);wh&&!Mh&&kh(Nh,"name",{configurable:!0,get:function(){try{return Ph(Dh,Uh(this))[1]}catch(VN){return""}}});var Lh={},Vh={get exports(){return Lh},set exports(e){Lh=e}},xh=C((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),Fh=C,jh=ie,$h=B,qh=xh,Bh=Object.isExtensible,Wh=Fh((function(){Bh(1)}))||qh?function(e){return!!jh(e)&&((!qh||"ArrayBuffer"!==$h(e))&&(!Bh||Bh(e)))}:Bh,Qh=!C((function(){return Object.isExtensible(Object.preventExtensions({}))})),Jh=Ro,Hh=F,Yh=Dn,Gh=ie,Kh=it,zh=Jt.f,Xh=mr,Zh=ii,ep=Wh,tp=Qh,np=!1,rp=lt("meta"),op=0,ip=function(e){zh(e,rp,{value:{objectID:"O"+op++,weakData:{}}})},ap=Vh.exports={enable:function(){ap.enable=function(){},np=!0;var e=Xh.f,t=Hh([].splice),n={};n[rp]=1,e(n).length&&(Xh.f=function(n){for(var r=e(n),o=0,i=r.length;o<i;o++)if(r[o]===rp){t(r,o,1);break}return r},Jh({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Zh.f}))},fastKey:function(e,t){if(!Gh(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!Kh(e,rp)){if(!ep(e))return"F";if(!t)return"E";ip(e)}return e[rp].objectID},getWeakData:function(e,t){if(!Kh(e,rp)){if(!ep(e))return!0;if(!t)return!1;ip(e)}return e[rp].weakData},onFreeze:function(e){return tp&&np&&ep(e)&&!Kh(e,rp)&&ip(e),e}};Yh[rp]=!0;var sp=Hc,up=Tt("iterator"),cp=Array.prototype,lp=function(e){return void 0!==e&&(sp.Array===e||cp[up]===e)},dp=Mo,fp=xe,vp=G,hp=Hc,pp=Tt("iterator"),gp=function(e){if(!vp(e))return fp(e,pp)||fp(e,"@@iterator")||hp[dp(e)]},mp=b,yp=Pe,Tp=zt,Rp=ke,Ep=gp,Cp=TypeError,Ip=function(e,t){var n=arguments.length<2?Ep(e):t;if(yp(n))return Tp(mp(n,e));throw new Cp(Rp(e)+" is not iterable")},Sp=b,_p=zt,Ap=xe,bp=Li,wp=b,Mp=zt,Op=ke,kp=lp,Np=Or,Up=ce,Dp=Ip,Pp=gp,Lp=function(e,t,n){var r,o;_p(e);try{if(!(r=Ap(e,"return"))){if("throw"===t)throw n;return n}r=Sp(r,e)}catch(VN){o=!0,r=VN}if("throw"===t)throw n;if(o)throw r;return _p(r),n},Vp=TypeError,xp=function(e,t){this.stopped=e,this.result=t},Fp=xp.prototype,jp=function(e,t,n){var r,o,i,a,s,u,c,l=n&&n.that,d=!(!n||!n.AS_ENTRIES),f=!(!n||!n.IS_RECORD),v=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),p=bp(t,l),g=function(e){return r&&Lp(r,"normal",e),new xp(!0,e)},m=function(e){return d?(Mp(e),h?p(e[0],e[1],g):p(e[0],e[1])):h?p(e,g):p(e)};if(f)r=e.iterator;else if(v)r=e;else{if(!(o=Pp(e)))throw new Vp(Op(e)+" is not iterable");if(kp(o)){for(i=0,a=Np(e);a>i;i++)if((s=m(e[i]))&&Up(Fp,s))return s;return new xp(!1)}r=Dp(e,o)}for(u=f?e.next:r.next;!(c=wp(u,r)).done;){try{s=m(c.value)}catch(VN){Lp(r,"throw",VN)}if("object"==typeof s&&s&&Up(Fp,s))return s}return new xp(!1)},$p=Tt("iterator"),qp=!1;try{var Bp=0,Wp={next:function(){return{done:!!Bp++}},return:function(){qp=!0}};Wp[$p]=function(){return this},Array.from(Wp,(function(){throw 2}))}catch(VN){}var Qp=function(e,t){try{if(!t&&!qp)return!1}catch(VN){return!1}var n=!1;try{var r={};r[$p]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(VN){}return n},Jp=Ro,Hp=R,Yp=F,Gp=fo,Kp=gr,zp=Lh,Xp=jp,Zp=cf,eg=re,tg=G,ng=ie,rg=C,og=Qp,ig=Mi,ag=Pf,sg=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=Hp[e],s=a&&a.prototype,u=a,c={},l=function(e){var t=Yp(s[e]);Kp(s,e,"add"===e?function(e){return t(this,0===e?0:e),this}:"delete"===e?function(e){return!(o&&!ng(e))&&t(this,0===e?0:e)}:"get"===e?function(e){return o&&!ng(e)?void 0:t(this,0===e?0:e)}:"has"===e?function(e){return!(o&&!ng(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(Gp(e,!eg(a)||!(o||s.forEach&&!rg((function(){(new a).entries().next()})))))u=n.getConstructor(t,e,r,i),zp.enable();else if(Gp(e,!0)){var d=new u,f=d[i](o?{}:-0,1)!==d,v=rg((function(){d.has(1)})),h=og((function(e){new a(e)})),p=!o&&rg((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((u=t((function(e,t){Zp(e,s);var n=ag(new a,e,u);return tg(t)||Xp(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=s,s.constructor=u),(v||p)&&(l("delete"),l("has"),r&&l("get")),(p||f)&&l(i),o&&s.clear&&delete s.clear}return c[e]=u,Jp({global:!0,constructor:!0,forced:u!==a},c),ig(u,e),o||n.setStrong(u,e,r),u},ug=oi,cg=hi,lg=af,dg=Li,fg=cf,vg=G,hg=jp,pg=Yl,gg=Gl,mg=qv,yg=I,Tg=Lh.fastKey,Rg=Yn.set,Eg=Yn.getterFor,Cg={getConstructor:function(e,t,n,r){var o=e((function(e,o){fg(e,i),Rg(e,{type:t,index:ug(null),first:null,last:null,size:0}),yg||(e.size=0),vg(o)||hg(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=Eg(t),s=function(e,t,n){var r,o,i=a(e),s=u(e,t);return s?s.value=n:(i.last=s={index:o=Tg(t,!0),key:t,value:n,previous:r=i.last,next:null,removed:!1},i.first||(i.first=s),r&&(r.next=s),yg?i.size++:e.size++,"F"!==o&&(i.index[o]=s)),e},u=function(e,t){var n,r=a(e),o=Tg(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key===t)return n};return lg(i,{clear:function(){for(var e=a(this),t=e.first;t;)t.removed=!0,t.previous&&(t.previous=t.previous.next=null),t=t.next;e.first=e.last=null,e.index=ug(null),yg?e.size=0:this.size=0},delete:function(e){var t=this,n=a(t),r=u(t,e);if(r){var o=r.next,i=r.previous;delete n.index[r.index],r.removed=!0,i&&(i.next=o),o&&(o.previous=i),n.first===r&&(n.first=o),n.last===r&&(n.last=i),yg?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=a(this),r=dg(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!u(this,e)}}),lg(i,n?{get:function(e){var t=u(this,e);return t&&t.value},set:function(e,t){return s(this,0===e?0:e,t)}}:{add:function(e){return s(this,e=0===e?0:e,e)}}),yg&&cg(i,"size",{configurable:!0,get:function(){return a(this).size}}),o},setStrong:function(e,t,n){var r=t+" Iterator",o=Eg(t),i=Eg(r);pg(e,t,(function(e,t){Rg(this,{type:r,target:e,state:o(e),kind:t,last:null})}),(function(){for(var e=i(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?gg("keys"===t?n.key:"values"===t?n.value:[n.key,n.value],!1):(e.target=null,gg(void 0,!0))}),n?"entries":"values",!n,!0),mg(t)}};sg("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),Cg);var Ig=F(1..valueOf),Sg=X,_g=No,Ag="\t\n\v\f\r                 \u2028\u2029\ufeff",bg=F("".replace),wg=RegExp("^["+Ag+"]+"),Mg=RegExp("(^|[^"+Ag+"])["+Ag+"]+$"),Og=function(e){return function(t){var n=_g(Sg(t));return 1&e&&(n=bg(n,wg,"")),2&e&&(n=bg(n,Mg,"$1")),n}},kg={start:Og(1),end:Og(2),trim:Og(3)},Ng=Ro,Ug=I,Dg=R,Pg=mi,Lg=F,Vg=fo,xg=it,Fg=Pf,jg=ce,$g=Me,qg=bt,Bg=C,Wg=mr.f,Qg=E.f,Jg=Jt.f,Hg=Ig,Yg=kg.trim,Gg="Number",Kg=Dg[Gg];Pg[Gg];var zg=Kg.prototype,Xg=Dg.TypeError,Zg=Lg("".slice),em=Lg("".charCodeAt),tm=function(e){var t,n,r,o,i,a,s,u,c=qg(e,"number");if($g(c))throw new Xg("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=Yg(c),43===(t=em(c,0))||45===t){if(88===(n=em(c,2))||120===n)return NaN}else if(48===t){switch(em(c,1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+c}for(a=(i=Zg(c,2)).length,s=0;s<a;s++)if((u=em(i,s))<48||u>o)return NaN;return parseInt(i,r)}return+c},nm=Vg(Gg,!Kg(" 0o1")||!Kg("0b1")||Kg("+0x1")),rm=function(e){var t,n=arguments.length<1?0:Kg(function(e){var t=qg(e,"number");return"bigint"==typeof t?t:tm(t)}(e));return jg(zg,t=this)&&Bg((function(){Hg(t)}))?Fg(Object(n),this,rm):n};rm.prototype=zg,nm&&(zg.constructor=rm),Ng({global:!0,constructor:!0,wrap:!0,forced:nm},{Number:rm});nm&&function(e,t){for(var n,r=Ug?Wg(t):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),o=0;r.length>o;o++)xg(t,n=r[o])&&!xg(e,n)&&Jg(e,n,Qg(t,n))}(Pg[Gg],Kg);var om=I,im=F,am=b,sm=C,um=Lo,cm=Qr,lm=w,dm=nt,fm=Y,vm=Object.assign,hm=Object.defineProperty,pm=im([].concat),gm=!vm||sm((function(){if(om&&1!==vm({b:1},vm(hm({},"a",{enumerable:!0,get:function(){hm(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol("assign detection"),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!==vm({},e)[n]||um(vm({},t)).join("")!==r}))?function(e,t){for(var n=dm(e),r=arguments.length,o=1,i=cm.f,a=lm.f;r>o;)for(var s,u=fm(arguments[o++]),c=i?pm(um(u),i(u)):um(u),l=c.length,d=0;l>d;)s=c[d++],om&&!am(a,u,s)||(n[s]=u[s]);return n}:vm,mm=gm;Ro({target:"Object",stat:!0,arity:2,forced:Object.assign!==mm},{assign:mm}),Ro({target:"Object",stat:!0,sham:!I},{create:oi});var ym=nt,Tm=nl,Rm=Yc;Ro({target:"Object",stat:!0,forced:C((function(){Tm(1)})),sham:!Rm},{getPrototypeOf:function(e){return Tm(ym(e))}});var Em=nt,Cm=Lo;Ro({target:"Object",stat:!0,forced:C((function(){Cm(1)}))},{keys:function(e){return Cm(Em(e))}});var Im=Mo,Sm=Co?{}.toString:function(){return"[object "+Im(this)+"]"};Co||gr(Object.prototype,"toString",Sm,{unsafe:!0});var _m,Am,bm,wm,Mm=R,Om=fe,km=B,Nm=function(e){return Om.slice(0,e.length)===e},Um=Nm("Bun/")?"BUN":Nm("Cloudflare-Workers")?"CLOUDFLARE":Nm("Deno/")?"DENO":Nm("Node.js/")?"NODE":Mm.Bun&&"string"==typeof Bun.version?"BUN":Mm.Deno&&"object"==typeof Deno.version?"DENO":"process"===km(Mm.process)?"NODE":Mm.window&&Mm.document?"BROWSER":"REST",Dm="NODE"===Um,Pm=zi,Lm=ke,Vm=TypeError,xm=function(e){if(Pm(e))return e;throw new Vm(Lm(e)+" is not a constructor")},Fm=zt,jm=xm,$m=G,qm=Tt("species"),Bm=TypeError,Wm=function(e,t){if(e<t)throw new Bm("Not enough arguments");return e},Qm=/(?:ipad|iphone|ipod).*applewebkit/i.test(fe),Jm=R,Hm=qs,Ym=Li,Gm=re,Km=it,zm=C,Xm=Wo,Zm=ai,ey=Dt,ty=Wm,ny=Qm,ry=Dm,oy=Jm.setImmediate,iy=Jm.clearImmediate,ay=Jm.process,sy=Jm.Dispatch,uy=Jm.Function,cy=Jm.MessageChannel,ly=Jm.String,dy=0,fy={},vy="onreadystatechange";zm((function(){_m=Jm.location}));var hy=function(e){if(Km(fy,e)){var t=fy[e];delete fy[e],t()}},py=function(e){return function(){hy(e)}},gy=function(e){hy(e.data)},my=function(e){Jm.postMessage(ly(e),_m.protocol+"//"+_m.host)};oy&&iy||(oy=function(e){ty(arguments.length,1);var t=Gm(e)?e:uy(e),n=Zm(arguments,1);return fy[++dy]=function(){Hm(t,void 0,n)},Am(dy),dy},iy=function(e){delete fy[e]},ry?Am=function(e){ay.nextTick(py(e))}:sy&&sy.now?Am=function(e){sy.now(py(e))}:cy&&!ny?(wm=(bm=new cy).port2,bm.port1.onmessage=gy,Am=Ym(wm.postMessage,wm)):Jm.addEventListener&&Gm(Jm.postMessage)&&!Jm.importScripts&&_m&&"file:"!==_m.protocol&&!zm(my)?(Am=my,Jm.addEventListener("message",gy,!1)):Am=vy in ey("script")?function(e){Xm.appendChild(ey("script"))[vy]=function(){Xm.removeChild(this),hy(e)}}:function(e){setTimeout(py(e),0)});var yy={set:oy,clear:iy},Ty=R,Ry=I,Ey=Object.getOwnPropertyDescriptor,Cy=function(){this.head=null,this.tail=null};Cy.prototype={add:function(e){var t={item:e,next:null},n=this.tail;n?n.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}};var Iy,Sy,_y,Ay,by,wy=Cy,My=/ipad|iphone|ipod/i.test(fe)&&"undefined"!=typeof Pebble,Oy=/web0s(?!.*chrome)/i.test(fe),ky=R,Ny=function(e){if(!Ry)return Ty[e];var t=Ey(Ty,e);return t&&t.value},Uy=Li,Dy=yy.set,Py=wy,Ly=Qm,Vy=My,xy=Oy,Fy=Dm,jy=ky.MutationObserver||ky.WebKitMutationObserver,$y=ky.document,qy=ky.process,By=ky.Promise,Wy=Ny("queueMicrotask");if(!Wy){var Qy=new Py,Jy=function(){var e,t;for(Fy&&(e=qy.domain)&&e.exit();t=Qy.get();)try{t()}catch(VN){throw Qy.head&&Iy(),VN}e&&e.enter()};Ly||Fy||xy||!jy||!$y?!Vy&&By&&By.resolve?((Ay=By.resolve(void 0)).constructor=By,by=Uy(Ay.then,Ay),Iy=function(){by(Jy)}):Fy?Iy=function(){qy.nextTick(Jy)}:(Dy=Uy(Dy,ky),Iy=function(){Dy(Jy)}):(Sy=!0,_y=$y.createTextNode(""),new jy(Jy).observe(_y,{characterData:!0}),Iy=function(){_y.data=Sy=!Sy}),Wy=function(e){Qy.head||Iy(),Qy.add(e)}}var Hy=Wy,Yy=function(e){try{return{error:!1,value:e()}}catch(VN){return{error:!0,value:VN}}},Gy=R.Promise,Ky=R,zy=Gy,Xy=re,Zy=fo,eT=bn,tT=Tt,nT=Um,rT=Te;zy&&zy.prototype;var oT=tT("species"),iT=!1,aT=Xy(Ky.PromiseRejectionEvent),sT=Zy("Promise",(function(){var e=eT(zy),t=e!==String(zy);if(!t&&66===rT)return!0;if(!rT||rT<51||!/native code/.test(e)){var n=new zy((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};if((n.constructor={})[oT]=r,!(iT=n.then((function(){}))instanceof r))return!0}return!(t||"BROWSER"!==nT&&"DENO"!==nT||aT)})),uT={CONSTRUCTOR:sT,REJECTION_EVENT:aT,SUBCLASSING:iT},cT={},lT=Pe,dT=TypeError,fT=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw new dT("Bad Promise constructor");t=e,n=r})),this.resolve=lT(t),this.reject=lT(n)};cT.f=function(e){return new fT(e)};var vT,hT,pT,gT=Ro,mT=Dm,yT=R,TT=b,RT=gr,ET=wl,CT=Mi,IT=qv,ST=Pe,_T=re,AT=ie,bT=cf,wT=function(e,t){var n,r=Fm(e).constructor;return void 0===r||$m(n=Fm(r)[qm])?t:jm(n)},MT=yy.set,OT=Hy,kT=function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(VN){}},NT=Yy,UT=wy,DT=Yn,PT=Gy,LT=cT,VT="Promise",xT=uT.CONSTRUCTOR,FT=uT.REJECTION_EVENT,jT=uT.SUBCLASSING,$T=DT.getterFor(VT),qT=DT.set,BT=PT&&PT.prototype,WT=PT,QT=BT,JT=yT.TypeError,HT=yT.document,YT=yT.process,GT=LT.f,KT=GT,zT=!!(HT&&HT.createEvent&&yT.dispatchEvent),XT="unhandledrejection",ZT=function(e){var t;return!(!AT(e)||!_T(t=e.then))&&t},eR=function(e,t){var n,r,o,i=t.value,a=1===t.state,s=a?e.ok:e.fail,u=e.resolve,c=e.reject,l=e.domain;try{s?(a||(2===t.rejection&&iR(t),t.rejection=1),!0===s?n=i:(l&&l.enter(),n=s(i),l&&(l.exit(),o=!0)),n===e.promise?c(new JT("Promise-chain cycle")):(r=ZT(n))?TT(r,n,u,c):u(n)):c(i)}catch(VN){l&&!o&&l.exit(),c(VN)}},tR=function(e,t){e.notified||(e.notified=!0,OT((function(){for(var n,r=e.reactions;n=r.get();)eR(n,e);e.notified=!1,t&&!e.rejection&&rR(e)})))},nR=function(e,t,n){var r,o;zT?((r=HT.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),yT.dispatchEvent(r)):r={promise:t,reason:n},!FT&&(o=yT["on"+e])?o(r):e===XT&&kT("Unhandled promise rejection",n)},rR=function(e){TT(MT,yT,(function(){var t,n=e.facade,r=e.value;if(oR(e)&&(t=NT((function(){mT?YT.emit("unhandledRejection",r,n):nR(XT,n,r)})),e.rejection=mT||oR(e)?2:1,t.error))throw t.value}))},oR=function(e){return 1!==e.rejection&&!e.parent},iR=function(e){TT(MT,yT,(function(){var t=e.facade;mT?YT.emit("rejectionHandled",t):nR("rejectionhandled",t,e.value)}))},aR=function(e,t,n){return function(r){e(t,r,n)}},sR=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,tR(e,!0))},uR=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw new JT("Promise can't be resolved itself");var r=ZT(t);r?OT((function(){var n={done:!1};try{TT(r,t,aR(uR,n,e),aR(sR,n,e))}catch(VN){sR(n,VN,e)}})):(e.value=t,e.state=1,tR(e,!1))}catch(VN){sR({done:!1},VN,e)}}};if(xT&&(QT=(WT=function(e){bT(this,QT),ST(e),TT(vT,this);var t=$T(this);try{e(aR(uR,t),aR(sR,t))}catch(VN){sR(t,VN)}}).prototype,(vT=function(e){qT(this,{type:VT,done:!1,notified:!1,parent:!1,reactions:new UT,rejection:!1,state:0,value:null})}).prototype=RT(QT,"then",(function(e,t){var n=$T(this),r=GT(wT(this,WT));return n.parent=!0,r.ok=!_T(e)||e,r.fail=_T(t)&&t,r.domain=mT?YT.domain:void 0,0===n.state?n.reactions.add(r):OT((function(){eR(r,n)})),r.promise})),hT=function(){var e=new vT,t=$T(e);this.promise=e,this.resolve=aR(uR,t),this.reject=aR(sR,t)},LT.f=GT=function(e){return e===WT||undefined===e?new hT(e):KT(e)},_T(PT)&&BT!==Object.prototype)){pT=BT.then,jT||RT(BT,"then",(function(e,t){var n=this;return new WT((function(e,t){TT(pT,n,e,t)})).then(e,t)}),{unsafe:!0});try{delete BT.constructor}catch(VN){}ET&&ET(BT,QT)}gT({global:!0,constructor:!0,wrap:!0,forced:xT},{Promise:WT}),CT(WT,VT,!1),IT(VT);var cR=Gy,lR=uT.CONSTRUCTOR||!Qp((function(e){cR.all(e).then(void 0,(function(){}))})),dR=b,fR=Pe,vR=cT,hR=Yy,pR=jp;Ro({target:"Promise",stat:!0,forced:lR},{all:function(e){var t=this,n=vR.f(t),r=n.resolve,o=n.reject,i=hR((function(){var n=fR(t.resolve),i=[],a=0,s=1;pR(e,(function(e){var u=a++,c=!1;s++,dR(n,t,e).then((function(e){c||(c=!0,i[u]=e,--s||r(i))}),o)})),--s||r(i)}));return i.error&&o(i.value),n.promise}});var gR=Ro,mR=uT.CONSTRUCTOR,yR=Gy,TR=ue,RR=re,ER=gr,CR=yR&&yR.prototype;if(gR({target:"Promise",proto:!0,forced:mR,real:!0},{catch:function(e){return this.then(void 0,e)}}),RR(yR)){var IR=TR("Promise").prototype.catch;CR.catch!==IR&&ER(CR,"catch",IR,{unsafe:!0})}var SR=b,_R=Pe,AR=cT,bR=Yy,wR=jp;Ro({target:"Promise",stat:!0,forced:lR},{race:function(e){var t=this,n=AR.f(t),r=n.reject,o=bR((function(){var o=_R(t.resolve);wR(e,(function(e){SR(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var MR=cT;Ro({target:"Promise",stat:!0,forced:uT.CONSTRUCTOR},{reject:function(e){var t=MR.f(this);return(0,t.reject)(e),t.promise}});var OR=zt,kR=ie,NR=cT,UR=Ro,DR=uT.CONSTRUCTOR,PR=function(e,t){if(OR(e),kR(t)&&t.constructor===e)return t;var n=NR.f(e);return(0,n.resolve)(t),n.promise};ue("Promise"),UR({target:"Promise",stat:!0,forced:DR},{resolve:function(e){return PR(this,e)}});var LR=ie,VR=B,xR=Tt("match"),FR=function(e){var t;return LR(e)&&(void 0!==(t=e[xR])?!!t:"RegExp"===VR(e))},jR=zt,$R=function(){var e=jR(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},qR=b,BR=it,WR=ce,QR=$R,JR=RegExp.prototype,HR=function(e){var t=e.flags;return void 0!==t||"flags"in JR||BR(e,"flags")||!WR(JR,e)?t:qR(QR,e)},YR=C,GR=R.RegExp,KR=YR((function(){var e=GR("a","y");return e.lastIndex=2,null!==e.exec("abcd")})),zR=KR||YR((function(){return!GR("a","y").sticky})),XR={BROKEN_CARET:KR||YR((function(){var e=GR("^r","gy");return e.lastIndex=2,null!==e.exec("str")})),MISSED_STICKY:zR,UNSUPPORTED_Y:KR},ZR=Jt.f,eE=C,tE=R.RegExp,nE=eE((function(){var e=tE(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)})),rE=C,oE=R.RegExp,iE=rE((function(){var e=oE("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),aE=I,sE=R,uE=F,cE=fo,lE=Pf,dE=fn,fE=oi,vE=mr.f,hE=ce,pE=FR,gE=No,mE=HR,yE=XR,TE=function(e,t,n){n in e||ZR(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=e}})},RE=gr,EE=C,CE=it,IE=Yn.enforce,SE=qv,_E=nE,AE=iE,bE=Tt("match"),wE=sE.RegExp,ME=wE.prototype,OE=sE.SyntaxError,kE=uE(ME.exec),NE=uE("".charAt),UE=uE("".replace),DE=uE("".indexOf),PE=uE("".slice),LE=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,VE=/a/g,xE=/a/g,FE=new wE(VE)!==VE,jE=yE.MISSED_STICKY,$E=yE.UNSUPPORTED_Y,qE=aE&&(!FE||jE||_E||AE||EE((function(){return xE[bE]=!1,wE(VE)!==VE||wE(xE)===xE||"/a/i"!==String(wE(VE,"i"))})));if(cE("RegExp",qE)){for(var BE=function(e,t){var n,r,o,i,a,s,u=hE(ME,this),c=pE(e),l=void 0===t,d=[],f=e;if(!u&&c&&l&&e.constructor===BE)return e;if((c||hE(ME,e))&&(e=e.source,l&&(t=mE(f))),e=void 0===e?"":gE(e),t=void 0===t?"":gE(t),f=e,_E&&"dotAll"in VE&&(r=!!t&&DE(t,"s")>-1)&&(t=UE(t,/s/g,"")),n=t,jE&&"sticky"in VE&&(o=!!t&&DE(t,"y")>-1)&&$E&&(t=UE(t,/y/g,"")),AE&&(i=function(e){for(var t,n=e.length,r=0,o="",i=[],a=fE(null),s=!1,u=!1,c=0,l="";r<=n;r++){if("\\"===(t=NE(e,r)))t+=NE(e,++r);else if("]"===t)s=!1;else if(!s)switch(!0){case"["===t:s=!0;break;case"("===t:if(o+=t,"?:"===PE(e,r+1,r+3))continue;kE(LE,PE(e,r+1))&&(r+=2,u=!0),c++;continue;case">"===t&&u:if(""===l||CE(a,l))throw new OE("Invalid capture group name");a[l]=!0,i[i.length]=[l,c],u=!1,l="";continue}u?l+=t:o+=t}return[o,i]}(e),e=i[0],d=i[1]),a=lE(wE(e,t),u?this:ME,BE),(r||o||d.length)&&(s=IE(a),r&&(s.dotAll=!0,s.raw=BE(function(e){for(var t,n=e.length,r=0,o="",i=!1;r<=n;r++)"\\"!==(t=NE(e,r))?i||"."!==t?("["===t?i=!0:"]"===t&&(i=!1),o+=t):o+="[\\s\\S]":o+=t+NE(e,++r);return o}(e),n)),o&&(s.sticky=!0),d.length&&(s.groups=d)),e!==f)try{dE(a,"source",""===f?"(?:)":f)}catch(VN){}return a},WE=vE(wE),QE=0;WE.length>QE;)TE(BE,wE,WE[QE++]);ME.constructor=BE,BE.prototype=ME,RE(sE,"RegExp",BE,{constructor:!0})}SE("RegExp");var JE=b,HE=F,YE=No,GE=$R,KE=XR,zE=oi,XE=Yn.get,ZE=nE,eC=iE,tC=Ze("native-string-replace",String.prototype.replace),nC=RegExp.prototype.exec,rC=nC,oC=HE("".charAt),iC=HE("".indexOf),aC=HE("".replace),sC=HE("".slice),uC=function(){var e=/a/,t=/b*/g;return JE(nC,e,"a"),JE(nC,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),cC=KE.BROKEN_CARET,lC=void 0!==/()??/.exec("")[1];(uC||lC||cC||ZE||eC)&&(rC=function(e){var t,n,r,o,i,a,s,u=this,c=XE(u),l=YE(e),d=c.raw;if(d)return d.lastIndex=u.lastIndex,t=JE(rC,d,l),u.lastIndex=d.lastIndex,t;var f=c.groups,v=cC&&u.sticky,h=JE(GE,u),p=u.source,g=0,m=l;if(v&&(h=aC(h,"y",""),-1===iC(h,"g")&&(h+="g"),m=sC(l,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&"\n"!==oC(l,u.lastIndex-1))&&(p="(?: "+p+")",m=" "+m,g++),n=new RegExp("^(?:"+p+")",h)),lC&&(n=new RegExp("^"+p+"$(?!\\s)",h)),uC&&(r=u.lastIndex),o=JE(nC,v?n:u,m),v?o?(o.input=sC(o.input,g),o[0]=sC(o[0],g),o.index=u.lastIndex,u.lastIndex+=o[0].length):u.lastIndex=0:uC&&o&&(u.lastIndex=u.global?o.index+o[0].length:r),lC&&o&&o.length>1&&JE(tC,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&f)for(o.groups=a=zE(null),i=0;i<f.length;i++)a[(s=f[i])[0]]=o[s[1]];return o});var dC=rC;Ro({target:"RegExp",proto:!0,forced:/./.exec!==dC},{exec:dC});var fC=Rn.PROPER,vC=gr,hC=zt,pC=No,gC=C,mC=HR,yC="toString",TC=RegExp.prototype,RC=TC[yC],EC=gC((function(){return"/a/b"!==RC.call({source:"a",flags:"b"})})),CC=fC&&RC.name!==yC;(EC||CC)&&vC(TC,yC,(function(){var e=hC(this);return"/"+pC(e.source)+"/"+pC(mC(e))}),{unsafe:!0});var IC,SC=FR,_C=TypeError,AC=function(e){if(SC(e))throw new _C("The method doesn't accept regular expressions");return e},bC=Tt("match"),wC=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[bC]=!1,"/./"[e](t)}catch(r){}}return!1},MC=Ro,OC=Ni,kC=E.f,NC=wr,UC=No,DC=AC,PC=X,LC=wC,VC=OC("".slice),xC=Math.min,FC=LC("endsWith");MC({target:"String",proto:!0,forced:!!(FC||(IC=kC(String.prototype,"endsWith"),!IC||IC.writable))&&!FC},{endsWith:function(e){var t=UC(PC(this));DC(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,o=void 0===n?r:xC(NC(n),r),i=UC(e);return VC(t,o-i.length,o)===i}});var jC=Ro,$C=AC,qC=X,BC=No,WC=wC,QC=F("".indexOf);jC({target:"String",proto:!0,forced:!WC("includes")},{includes:function(e){return!!~QC(BC(qC(this)),BC($C(e)),arguments.length>1?arguments[1]:void 0)}});var JC=F,HC=Er,YC=No,GC=X,KC=JC("".charAt),zC=JC("".charCodeAt),XC=JC("".slice),ZC=function(e){return function(t,n){var r,o,i=YC(GC(t)),a=HC(n),s=i.length;return a<0||a>=s?e?"":void 0:(r=zC(i,a))<55296||r>56319||a+1===s||(o=zC(i,a+1))<56320||o>57343?e?KC(i,a):r:e?XC(i,a,a+2):o-56320+(r-55296<<10)+65536}},eI={codeAt:ZC(!1),charAt:ZC(!0)},tI=eI.charAt,nI=No,rI=Yn,oI=Yl,iI=Gl,aI="String Iterator",sI=rI.set,uI=rI.getterFor(aI);oI(String,"String",(function(e){sI(this,{type:aI,string:nI(e),index:0})}),(function(){var e,t=uI(this),n=t.string,r=t.index;return r>=n.length?iI(void 0,!0):(e=tI(n,r),t.index+=e.length,iI(e,!1))}));var cI=b,lI=gr,dI=dC,fI=C,vI=Tt,hI=fn,pI=vI("species"),gI=RegExp.prototype,mI=eI.charAt,yI=F,TI=nt,RI=Math.floor,EI=yI("".charAt),CI=yI("".replace),II=yI("".slice),SI=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,_I=/\$([$&'`]|\d{1,2})/g,AI=b,bI=zt,wI=re,MI=B,OI=dC,kI=TypeError,NI=qs,UI=b,DI=F,PI=function(e,t,n,r){var o=vI(e),i=!fI((function(){var t={};return t[o]=function(){return 7},7!==""[e](t)})),a=i&&!fI((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[pI]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var s=/./[o],u=t(o,""[e],(function(e,t,n,r,o){var a=t.exec;return a===dI||a===gI.exec?i&&!o?{done:!0,value:cI(s,t,n,r)}:{done:!0,value:cI(e,n,t,r)}:{done:!1}}));lI(String.prototype,e,u[0]),lI(gI,o,u[1])}r&&hI(gI[o],"sham",!0)},LI=C,VI=zt,xI=re,FI=G,jI=Er,$I=wr,qI=No,BI=X,WI=function(e,t,n){return t+(n?mI(e,t).length:1)},QI=xe,JI=function(e,t,n,r,o,i){var a=n+e.length,s=r.length,u=_I;return void 0!==o&&(o=TI(o),u=SI),CI(i,u,(function(i,u){var c;switch(EI(u,0)){case"$":return"$";case"&":return e;case"`":return II(t,0,n);case"'":return II(t,a);case"<":c=o[II(u,1,-1)];break;default:var l=+u;if(0===l)return i;if(l>s){var d=RI(l/10);return 0===d?i:d<=s?void 0===r[d-1]?EI(u,1):r[d-1]+EI(u,1):i}c=r[l-1]}return void 0===c?"":c}))},HI=function(e,t){var n=e.exec;if(wI(n)){var r=AI(n,e,t);return null!==r&&bI(r),r}if("RegExp"===MI(e))return AI(OI,e,t);throw new kI("RegExp#exec called on incompatible receiver")},YI=Tt("replace"),GI=Math.max,KI=Math.min,zI=DI([].concat),XI=DI([].push),ZI=DI("".indexOf),eS=DI("".slice),tS="$0"==="a".replace(/./,"$0"),nS=!!/./[YI]&&""===/./[YI]("a","$0");PI("replace",(function(e,t,n){var r=nS?"$":"$0";return[function(e,n){var r=BI(this),o=FI(e)?void 0:QI(e,YI);return o?UI(o,e,r,n):UI(t,qI(r),e,n)},function(e,o){var i=VI(this),a=qI(e);if("string"==typeof o&&-1===ZI(o,r)&&-1===ZI(o,"$<")){var s=n(t,i,a,o);if(s.done)return s.value}var u=xI(o);u||(o=qI(o));var c,l=i.global;l&&(c=i.unicode,i.lastIndex=0);for(var d,f=[];null!==(d=HI(i,a))&&(XI(f,d),l);){""===qI(d[0])&&(i.lastIndex=WI(a,$I(i.lastIndex),c))}for(var v,h="",p=0,g=0;g<f.length;g++){for(var m,y=qI((d=f[g])[0]),T=GI(KI(jI(d.index),a.length),0),R=[],E=1;E<d.length;E++)XI(R,void 0===(v=d[E])?v:String(v));var C=d.groups;if(u){var I=zI([y],R,T,a);void 0!==C&&XI(I,C),m=qI(NI(o,void 0,I))}else m=JI(y,a,T,R,C,o);T>=p&&(h+=eS(a,p,T)+m,p=T+y.length)}return h+eS(a,p)}]}),!!LI((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!tS||nS);var rS=Ro,oS=Ni,iS=E.f,aS=wr,sS=No,uS=AC,cS=X,lS=wC,dS=oS("".slice),fS=Math.min,vS=lS("startsWith"),hS=!vS&&!!function(){var e=iS(String.prototype,"startsWith");return e&&!e.writable}();rS({target:"String",proto:!0,forced:!hS&&!vS},{startsWith:function(e){var t=sS(cS(this));uS(e);var n=aS(fS(arguments.length>1?arguments[1]:void 0,t.length)),r=sS(e);return dS(t,n,n+r.length)===r}});var pS,gS,mS,yS={},TS={get exports(){return yS},set exports(e){yS=e}},RS=rf,ES=I,CS=R,IS=re,SS=ie,_S=it,AS=Mo,bS=ke,wS=fn,MS=gr,OS=hi,kS=ce,NS=nl,US=wl,DS=Tt,PS=lt,LS=Yn.enforce,VS=Yn.get,xS=CS.Int8Array,FS=xS&&xS.prototype,jS=CS.Uint8ClampedArray,$S=jS&&jS.prototype,qS=xS&&NS(xS),BS=FS&&NS(FS),WS=Object.prototype,QS=CS.TypeError,JS=DS("toStringTag"),HS=PS("TYPED_ARRAY_TAG"),YS="TypedArrayConstructor",GS=RS&&!!US&&"Opera"!==AS(CS.opera),KS=!1,zS={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},XS={BigInt64Array:8,BigUint64Array:8},ZS=function(e){var t=NS(e);if(SS(t)){var n=VS(t);return n&&_S(n,YS)?n[YS]:ZS(t)}},e_=function(e){if(!SS(e))return!1;var t=AS(e);return _S(zS,t)||_S(XS,t)};for(pS in zS)(mS=(gS=CS[pS])&&gS.prototype)?LS(mS)[YS]=gS:GS=!1;for(pS in XS)(mS=(gS=CS[pS])&&gS.prototype)&&(LS(mS)[YS]=gS);if((!GS||!IS(qS)||qS===Function.prototype)&&(qS=function(){throw new QS("Incorrect invocation")},GS))for(pS in zS)CS[pS]&&US(CS[pS],qS);if((!GS||!BS||BS===WS)&&(BS=qS.prototype,GS))for(pS in zS)CS[pS]&&US(CS[pS].prototype,BS);if(GS&&NS($S)!==BS&&US($S,BS),ES&&!_S(BS,JS))for(pS in KS=!0,OS(BS,JS,{configurable:!0,get:function(){return SS(this)?this[HS]:void 0}}),zS)CS[pS]&&wS(CS[pS],HS,pS);var t_={NATIVE_ARRAY_BUFFER_VIEWS:GS,TYPED_ARRAY_TAG:KS&&HS,aTypedArray:function(e){if(e_(e))return e;throw new QS("Target is not a typed array")},aTypedArrayConstructor:function(e){if(IS(e)&&(!US||kS(qS,e)))return e;throw new QS(bS(e)+" is not a typed array constructor")},exportTypedArrayMethod:function(e,t,n,r){if(ES){if(n)for(var o in zS){var i=CS[o];if(i&&_S(i.prototype,e))try{delete i.prototype[e]}catch(VN){try{i.prototype[e]=t}catch(a){}}}BS[e]&&!n||MS(BS,e,n?t:GS&&FS[e]||t,r)}},exportTypedArrayStaticMethod:function(e,t,n){var r,o;if(ES){if(US){if(n)for(r in zS)if((o=CS[r])&&_S(o,e))try{delete o[e]}catch(VN){}if(qS[e]&&!n)return;try{return MS(qS,e,n?t:GS&&qS[e]||t)}catch(VN){}}for(r in zS)!(o=CS[r])||o[e]&&!n||MS(o,e,t)}},getTypedArrayConstructor:ZS,isView:function(e){if(!SS(e))return!1;var t=AS(e);return"DataView"===t||_S(zS,t)||_S(XS,t)},isTypedArray:e_,TypedArray:qS,TypedArrayPrototype:BS},n_=R,r_=C,o_=Qp,i_=t_.NATIVE_ARRAY_BUFFER_VIEWS,a_=n_.ArrayBuffer,s_=n_.Int8Array,u_=!i_||!r_((function(){s_(1)}))||!r_((function(){new s_(-1)}))||!o_((function(e){new s_,new s_(null),new s_(1.5),new s_(e)}),!0)||r_((function(){return 1!==new s_(new a_(2),1,void 0).length})),c_=ie,l_=Math.floor,d_=Number.isInteger||function(e){return!c_(e)&&isFinite(e)&&l_(e)===e},f_=Er,v_=RangeError,h_=function(e){var t=f_(e);if(t<0)throw new v_("The argument can't be less than 0");return t},p_=RangeError,g_=function(e,t){var n=h_(e);if(n%t)throw new p_("Wrong offset");return n},m_=Math.round,y_=Mo,T_=bt,R_=TypeError,E_=function(e){var t=T_(e,"number");if("number"==typeof t)throw new R_("Can't convert number to bigint");return BigInt(t)},C_=Li,I_=b,S_=xm,__=nt,A_=Or,b_=Ip,w_=gp,M_=lp,O_=function(e){var t=y_(e);return"BigInt64Array"===t||"BigUint64Array"===t},k_=t_.aTypedArrayConstructor,N_=E_,U_=Or,D_=function(e,t,n){for(var r=0,o=arguments.length>2?n:U_(t),i=new e(o);o>r;)i[r]=t[r++];return i},P_=Ro,L_=R,V_=b,x_=I,F_=u_,j_=t_,$_=Vv,q_=cf,B_=D,W_=fn,Q_=d_,J_=wr,H_=vf,Y_=g_,G_=function(e){var t=m_(e);return t<0?0:t>255?255:255&t},K_=Ot,z_=it,X_=Mo,Z_=ie,eA=Me,tA=oi,nA=ce,rA=wl,oA=mr.f,iA=function(e){var t,n,r,o,i,a,s,u,c=S_(this),l=__(e),d=arguments.length,f=d>1?arguments[1]:void 0,v=void 0!==f,h=w_(l);if(h&&!M_(h))for(u=(s=b_(l,h)).next,l=[];!(a=I_(u,s)).done;)l.push(a.value);for(v&&d>2&&(f=C_(f,arguments[2])),n=A_(l),r=new(k_(c))(n),o=O_(r),t=0;n>t;t++)i=v?f(l[t],t):l[t],r[t]=o?N_(i):+i;return r},aA=fa.forEach,sA=qv,uA=hi,cA=Jt,lA=E,dA=D_,fA=Pf,vA=Yn.get,hA=Yn.set,pA=Yn.enforce,gA=cA.f,mA=lA.f,yA=L_.RangeError,TA=$_.ArrayBuffer,RA=TA.prototype,EA=$_.DataView,CA=j_.NATIVE_ARRAY_BUFFER_VIEWS,IA=j_.TYPED_ARRAY_TAG,SA=j_.TypedArray,_A=j_.TypedArrayPrototype,AA=j_.isTypedArray,bA="BYTES_PER_ELEMENT",wA="Wrong length",MA=function(e,t){uA(e,t,{configurable:!0,get:function(){return vA(this)[t]}})},OA=function(e){var t;return nA(RA,e)||"ArrayBuffer"===(t=X_(e))||"SharedArrayBuffer"===t},kA=function(e,t){return AA(e)&&!eA(t)&&t in e&&Q_(+t)&&t>=0},NA=function(e,t){return t=K_(t),kA(e,t)?B_(2,e[t]):mA(e,t)},UA=function(e,t,n){return t=K_(t),!(kA(e,t)&&Z_(n)&&z_(n,"value"))||z_(n,"get")||z_(n,"set")||n.configurable||z_(n,"writable")&&!n.writable||z_(n,"enumerable")&&!n.enumerable?gA(e,t,n):(e[t]=n.value,e)};x_?(CA||(lA.f=NA,cA.f=UA,MA(_A,"buffer"),MA(_A,"byteOffset"),MA(_A,"byteLength"),MA(_A,"length")),P_({target:"Object",stat:!0,forced:!CA},{getOwnPropertyDescriptor:NA,defineProperty:UA}),TS.exports=function(e,t,n){var r=e.match(/\d+/)[0]/8,o=e+(n?"Clamped":"")+"Array",i="get"+e,a="set"+e,s=L_[o],u=s,c=u&&u.prototype,l={},d=function(e,t){gA(e,t,{get:function(){return function(e,t){var n=vA(e);return n.view[i](t*r+n.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,o){var i=vA(e);i.view[a](t*r+i.byteOffset,n?G_(o):o,!0)}(this,t,e)},enumerable:!0})};CA?F_&&(u=t((function(e,t,n,o){return q_(e,c),fA(Z_(t)?OA(t)?void 0!==o?new s(t,Y_(n,r),o):void 0!==n?new s(t,Y_(n,r)):new s(t):AA(t)?dA(u,t):V_(iA,u,t):new s(H_(t)),e,u)})),rA&&rA(u,SA),aA(oA(s),(function(e){e in u||W_(u,e,s[e])})),u.prototype=c):(u=t((function(e,t,n,o){q_(e,c);var i,a,s,l=0,f=0;if(Z_(t)){if(!OA(t))return AA(t)?dA(u,t):V_(iA,u,t);i=t,f=Y_(n,r);var v=t.byteLength;if(void 0===o){if(v%r)throw new yA(wA);if((a=v-f)<0)throw new yA(wA)}else if((a=J_(o)*r)+f>v)throw new yA(wA);s=a/r}else s=H_(t),i=new TA(a=s*r);for(hA(e,{buffer:i,byteOffset:f,byteLength:a,length:s,view:new EA(i)});l<s;)d(e,l++)})),rA&&rA(u,SA),c=u.prototype=tA(_A)),c.constructor!==u&&W_(c,"constructor",u),pA(c).TypedArrayConstructor=u,IA&&W_(c,IA,o);var f=u!==s;l[o]=u,P_({global:!0,constructor:!0,forced:f,sham:!CA},l),bA in u||W_(u,bA,r),bA in c||W_(c,bA,r),sA(o)}):TS.exports=function(){},yS("Float32",(function(e){return function(t,n,r){return e(this,t,n,r)}})),yS("Float64",(function(e){return function(t,n,r){return e(this,t,n,r)}})),yS("Int8",(function(e){return function(t,n,r){return e(this,t,n,r)}})),yS("Int16",(function(e){return function(t,n,r){return e(this,t,n,r)}})),yS("Int32",(function(e){return function(t,n,r){return e(this,t,n,r)}})),yS("Uint8",(function(e){return function(t,n,r){return e(this,t,n,r)}})),yS("Uint8",(function(e){return function(t,n,r){return e(this,t,n,r)}}),!0),yS("Uint16",(function(e){return function(t,n,r){return e(this,t,n,r)}})),yS("Uint32",(function(e){return function(t,n,r){return e(this,t,n,r)}}));var DA=t_,PA=F(yc),LA=DA.aTypedArray;(0,DA.exportTypedArrayMethod)("copyWithin",(function(e,t){return PA(LA(this),e,t,arguments.length>2?arguments[2]:void 0)}));var VA=fa.every,xA=t_.aTypedArray;(0,t_.exportTypedArrayMethod)("every",(function(e){return VA(xA(this),e,arguments.length>1?arguments[1]:void 0)}));var FA=kf,jA=E_,$A=Mo,qA=b,BA=C,WA=t_.aTypedArray,QA=t_.exportTypedArrayMethod,JA=F("".slice);QA("fill",(function(e){var t=arguments.length;WA(this);var n="Big"===JA($A(this),0,3)?jA(e):+e;return qA(FA,this,n,t>1?arguments[1]:void 0,t>2?arguments[2]:void 0)}),BA((function(){var e=0;return new Int8Array(2).fill({valueOf:function(){return e++}}),1!==e})));var HA=D_,YA=t_.getTypedArrayConstructor,GA=fa.filter,KA=function(e,t){return HA(YA(e),t)},zA=t_.aTypedArray;(0,t_.exportTypedArrayMethod)("filter",(function(e){var t=GA(zA(this),e,arguments.length>1?arguments[1]:void 0);return KA(this,t)}));var XA=fa.find,ZA=t_.aTypedArray;(0,t_.exportTypedArrayMethod)("find",(function(e){return XA(ZA(this),e,arguments.length>1?arguments[1]:void 0)}));var eb=fa.findIndex,tb=t_.aTypedArray;(0,t_.exportTypedArrayMethod)("findIndex",(function(e){return eb(tb(this),e,arguments.length>1?arguments[1]:void 0)}));var nb=fa.forEach,rb=t_.aTypedArray;(0,t_.exportTypedArrayMethod)("forEach",(function(e){nb(rb(this),e,arguments.length>1?arguments[1]:void 0)}));var ob=Pr.includes,ib=t_.aTypedArray;(0,t_.exportTypedArrayMethod)("includes",(function(e){return ob(ib(this),e,arguments.length>1?arguments[1]:void 0)}));var ab=Pr.indexOf,sb=t_.aTypedArray;(0,t_.exportTypedArrayMethod)("indexOf",(function(e){return ab(sb(this),e,arguments.length>1?arguments[1]:void 0)}));var ub=R,cb=C,lb=F,db=t_,fb=sd,vb=Tt("iterator"),hb=ub.Uint8Array,pb=lb(fb.values),gb=lb(fb.keys),mb=lb(fb.entries),yb=db.aTypedArray,Tb=db.exportTypedArrayMethod,Rb=hb&&hb.prototype,Eb=!cb((function(){Rb[vb].call([1])})),Cb=!!Rb&&Rb.values&&Rb[vb]===Rb.values&&"values"===Rb.values.name,Ib=function(){return pb(yb(this))};Tb("entries",(function(){return mb(yb(this))}),Eb),Tb("keys",(function(){return gb(yb(this))}),Eb),Tb("values",Ib,Eb||!Cb,{name:"values"}),Tb(vb,Ib,Eb||!Cb,{name:"values"});var Sb=t_.aTypedArray,_b=t_.exportTypedArrayMethod,Ab=F([].join);_b("join",(function(e){return Ab(Sb(this),e)}));var bb=qs,wb=Id,Mb=t_.aTypedArray;(0,t_.exportTypedArrayMethod)("lastIndexOf",(function(e){var t=arguments.length;return bb(wb,Mb(this),t>1?[e,arguments[1]]:[e])}));var Ob=fa.map,kb=t_.aTypedArray,Nb=t_.getTypedArrayConstructor;(0,t_.exportTypedArrayMethod)("map",(function(e){return Ob(kb(this),e,arguments.length>1?arguments[1]:void 0,(function(e,t){return new(Nb(e))(t)}))}));var Ub=Pe,Db=nt,Pb=Y,Lb=Or,Vb=TypeError,xb="Reduce of empty array with no initial value",Fb=function(e){return function(t,n,r,o){var i=Db(t),a=Pb(i),s=Lb(i);if(Ub(n),0===s&&r<2)throw new Vb(xb);var u=e?s-1:0,c=e?-1:1;if(r<2)for(;;){if(u in a){o=a[u],u+=c;break}if(u+=c,e?u<0:s<=u)throw new Vb(xb)}for(;e?u>=0:s>u;u+=c)u in a&&(o=n(o,a[u],u,i));return o}},jb={left:Fb(!1),right:Fb(!0)},$b=jb.left,qb=t_.aTypedArray;(0,t_.exportTypedArrayMethod)("reduce",(function(e){var t=arguments.length;return $b(qb(this),e,t,t>1?arguments[1]:void 0)}));var Bb=jb.right,Wb=t_.aTypedArray;(0,t_.exportTypedArrayMethod)("reduceRight",(function(e){var t=arguments.length;return Bb(Wb(this),e,t,t>1?arguments[1]:void 0)}));var Qb=t_.aTypedArray,Jb=t_.exportTypedArrayMethod,Hb=Math.floor;Jb("reverse",(function(){for(var e,t=this,n=Qb(t).length,r=Hb(n/2),o=0;o<r;)e=t[o],t[o++]=t[--n],t[n]=e;return t}));var Yb=R,Gb=b,Kb=t_,zb=Or,Xb=g_,Zb=nt,ew=C,tw=Yb.RangeError,nw=Yb.Int8Array,rw=nw&&nw.prototype,ow=rw&&rw.set,iw=Kb.aTypedArray,aw=Kb.exportTypedArrayMethod,sw=!ew((function(){var e=new Uint8ClampedArray(2);return Gb(ow,e,{length:1,0:3},1),3!==e[1]})),uw=sw&&Kb.NATIVE_ARRAY_BUFFER_VIEWS&&ew((function(){var e=new nw(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]}));aw("set",(function(e){iw(this);var t=Xb(arguments.length>1?arguments[1]:void 0,1),n=Zb(e);if(sw)return Gb(ow,this,n,t);var r=this.length,o=zb(n),i=0;if(o+t>r)throw new tw("Wrong length");for(;i<o;)this[t+i]=n[i++]}),!sw||uw);var cw=ai,lw=t_.aTypedArray,dw=t_.getTypedArrayConstructor;(0,t_.exportTypedArrayMethod)("slice",(function(e,t){for(var n=cw(lw(this),e,t),r=dw(this),o=0,i=n.length,a=new r(i);i>o;)a[o]=n[o++];return a}),C((function(){new Int8Array(1).slice()})));var fw=fa.some,vw=t_.aTypedArray;(0,t_.exportTypedArrayMethod)("some",(function(e){return fw(vw(this),e,arguments.length>1?arguments[1]:void 0)}));var hw=ai,pw=Math.floor,gw=function(e,t){var n=e.length;if(n<8)for(var r,o,i=1;i<n;){for(o=i,r=e[i];o&&t(e[o-1],r)>0;)e[o]=e[--o];o!==i++&&(e[o]=r)}else for(var a=pw(n/2),s=gw(hw(e,0,a),t),u=gw(hw(e,a),t),c=s.length,l=u.length,d=0,f=0;d<c||f<l;)e[d+f]=d<c&&f<l?t(s[d],u[f])<=0?s[d++]:u[f++]:d<c?s[d++]:u[f++];return e},mw=gw,yw=fe.match(/firefox\/(\d+)/i),Tw=!!yw&&+yw[1],Rw=/MSIE|Trident/.test(fe),Ew=fe.match(/AppleWebKit\/(\d+)\./),Cw=!!Ew&&+Ew[1],Iw=Ni,Sw=C,_w=Pe,Aw=mw,bw=Tw,ww=Rw,Mw=Te,Ow=Cw,kw=t_.aTypedArray,Nw=t_.exportTypedArrayMethod,Uw=R.Uint16Array,Dw=Uw&&Iw(Uw.prototype.sort),Pw=!(!Dw||Sw((function(){Dw(new Uw(2),null)}))&&Sw((function(){Dw(new Uw(2),{})}))),Lw=!!Dw&&!Sw((function(){if(Mw)return Mw<74;if(bw)return bw<67;if(ww)return!0;if(Ow)return Ow<602;var e,t,n=new Uw(516),r=Array(516);for(e=0;e<516;e++)t=e%4,n[e]=515-e,r[e]=e-2*t+3;for(Dw(n,(function(e,t){return(e/4|0)-(t/4|0)})),e=0;e<516;e++)if(n[e]!==r[e])return!0}));Nw("sort",(function(e){return void 0!==e&&_w(e),Lw?Dw(this,e):Aw(kw(this),function(e){return function(t,n){return void 0!==e?+e(t,n)||0:n!=n?-1:t!=t?1:0===t&&0===n?1/t>0&&1/n<0?1:-1:t>n}}(e))}),!Lw||Pw);var Vw=wr,xw=_r,Fw=t_.aTypedArray,jw=t_.getTypedArrayConstructor;(0,t_.exportTypedArrayMethod)("subarray",(function(e,t){var n=Fw(this),r=n.length,o=xw(e,r);return new(jw(n))(n.buffer,n.byteOffset+o*n.BYTES_PER_ELEMENT,Vw((void 0===t?r:xw(t,r))-o))}));var $w=qs,qw=t_,Bw=C,Ww=ai,Qw=R.Int8Array,Jw=qw.aTypedArray,Hw=qw.exportTypedArrayMethod,Yw=[].toLocaleString,Gw=!!Qw&&Bw((function(){Yw.call(new Qw(1))}));Hw("toLocaleString",(function(){return $w(Yw,Gw?Ww(Jw(this)):Jw(this),Ww(arguments))}),Bw((function(){return[1,2].toLocaleString()!==new Qw([1,2]).toLocaleString()}))||!Bw((function(){Qw.prototype.toLocaleString.call([1,2])})));var Kw=t_.exportTypedArrayMethod,zw=C,Xw=F,Zw=R.Uint8Array,eM=Zw&&Zw.prototype||{},tM=[].toString,nM=Xw([].join);zw((function(){tM.call({})}))&&(tM=function(){return nM(this)});var rM=eM.toString!==tM;Kw("toString",tM,rM);var oM=F,iM=af,aM=Lh.getWeakData,sM=cf,uM=zt,cM=G,lM=ie,dM=jp,fM=it,vM=Yn.set,hM=Yn.getterFor,pM=fa.find,gM=fa.findIndex,mM=oM([].splice),yM=0,TM=function(e){return e.frozen||(e.frozen=new RM)},RM=function(){this.entries=[]},EM=function(e,t){return pM(e.entries,(function(e){return e[0]===t}))};RM.prototype={get:function(e){var t=EM(this,e);if(t)return t[1]},has:function(e){return!!EM(this,e)},set:function(e,t){var n=EM(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=gM(this.entries,(function(t){return t[0]===e}));return~t&&mM(this.entries,t,1),!!~t}};var CM,IM={getConstructor:function(e,t,n,r){var o=e((function(e,o){sM(e,i),vM(e,{type:t,id:yM++,frozen:null}),cM(o)||dM(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=hM(t),s=function(e,t,n){var r=a(e),o=aM(uM(t),!0);return!0===o?TM(r).set(t,n):o[r.id]=n,e};return iM(i,{delete:function(e){var t=a(this);if(!lM(e))return!1;var n=aM(e);return!0===n?TM(t).delete(e):n&&fM(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!lM(e))return!1;var n=aM(e);return!0===n?TM(t).has(e):n&&fM(n,t.id)}}),iM(i,n?{get:function(e){var t=a(this);if(lM(e)){var n=aM(e);if(!0===n)return TM(t).get(e);if(n)return n[t.id]}},set:function(e,t){return s(this,e,t)}}:{add:function(e){return s(this,e,!0)}}),o}},SM=Qh,_M=R,AM=F,bM=af,wM=Lh,MM=sg,OM=IM,kM=ie,NM=Yn.enforce,UM=C,DM=On,PM=Object,LM=Array.isArray,VM=PM.isExtensible,xM=PM.isFrozen,FM=PM.isSealed,jM=PM.freeze,$M=PM.seal,qM=!_M.ActiveXObject&&"ActiveXObject"in _M,BM=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},WM=MM("WeakMap",BM,OM),QM=WM.prototype,JM=AM(QM.set);if(DM)if(qM){CM=OM.getConstructor(BM,"WeakMap",!0),wM.enable();var HM=AM(QM.delete),YM=AM(QM.has),GM=AM(QM.get);bM(QM,{delete:function(e){if(kM(e)&&!VM(e)){var t=NM(this);return t.frozen||(t.frozen=new CM),HM(this,e)||t.frozen.delete(e)}return HM(this,e)},has:function(e){if(kM(e)&&!VM(e)){var t=NM(this);return t.frozen||(t.frozen=new CM),YM(this,e)||t.frozen.has(e)}return YM(this,e)},get:function(e){if(kM(e)&&!VM(e)){var t=NM(this);return t.frozen||(t.frozen=new CM),YM(this,e)?GM(this,e):t.frozen.get(e)}return GM(this,e)},set:function(e,t){if(kM(e)&&!VM(e)){var n=NM(this);n.frozen||(n.frozen=new CM),YM(this,e)?JM(this,e,t):n.frozen.set(e,t)}else JM(this,e,t);return this}})}else SM&&UM((function(){var e=jM([]);return JM(new WM,e,1),!xM(e)}))&&bM(QM,{set:function(e,t){var n;return LM(e)&&(xM(e)?n=jM:FM(e)&&(n=$M)),JM(this,e,t),n&&n(e),this}});var KM=R;Ro({global:!0,forced:KM.globalThis!==KM},{globalThis:KM});var zM={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},XM=Dt("span").classList,ZM=XM&&XM.constructor&&XM.constructor.prototype,eO=ZM===Object.prototype?void 0:ZM,tO=R,nO=zM,rO=eO,oO=Lc,iO=fn,aO=function(e){if(e&&e.forEach!==oO)try{iO(e,"forEach",oO)}catch(VN){e.forEach=oO}};for(var sO in nO)nO[sO]&&aO(tO[sO]&&tO[sO].prototype);aO(rO);var uO=R,cO=zM,lO=eO,dO=sd,fO=fn,vO=Mi,hO=Tt("iterator"),pO=dO.values,gO=function(e,t){if(e){if(e[hO]!==pO)try{fO(e,hO,pO)}catch(VN){e[hO]=pO}if(vO(e,t,!0),cO[t])for(var n in dO)if(e[n]!==dO[n])try{fO(e,n,dO[n])}catch(VN){e[n]=dO[n]}}};for(var mO in cO)gO(uO[mO]&&uO[mO].prototype,mO);gO(lO,"DOMTokenList");var yO=R,TO=qs,RO=re,EO=Um,CO=fe,IO=ai,SO=Wm,_O=yO.Function,AO=/MSIE .\./.test(CO)||"BUN"===EO&&function(){var e=yO.Bun.version.split(".");return e.length<3||"0"===e[0]&&(e[1]<3||"3"===e[1]&&"0"===e[2])}(),bO=function(e,t){var n=t?2:1;return AO?function(r,o){var i=SO(arguments.length,1)>n,a=RO(r)?r:_O(r),s=i?IO(arguments,n):[],u=i?function(){TO(a,this,s)}:a;return t?e(u,o):e(u)}:e},wO=Ro,MO=R,OO=bO(MO.setInterval,!0);wO({global:!0,bind:!0,forced:MO.setInterval!==OO},{setInterval:OO});var kO=Ro,NO=R,UO=bO(NO.setTimeout,!0);kO({global:!0,bind:!0,forced:NO.setTimeout!==UO},{setTimeout:UO});var DO,PO=(DO="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0,function(e){e=void 0!==(e=e||{})?e:{};var t,n,r=WXWebAssembly;e.ready=new Promise((function(e,r){t=e,n=r}));var o=Object.assign({},e),i="./this.program",a="object"==("undefined"==typeof window?"undefined":g(window)),s="function"==typeof importScripts;"object"==("undefined"==typeof process?"undefined":g(process))&&"object"==g(process.versions)&&process.versions.node;var u="";(a||s)&&(s?u=self.location.href:"undefined"!=typeof document&&document.currentScript&&(u=document.currentScript.src),DO&&(u=DO),u=0!==u.indexOf("blob:")?u.substr(0,u.replace(/[?#].*/,"").lastIndexOf("/")+1):"");var l,p=e.print||console.log.bind(console),m=e.printErr||console.warn.bind(console);Object.assign(e,o),o=null,e.arguments&&e.arguments,e.thisProgram&&(i=e.thisProgram),e.quit&&e.quit,e.wasmBinary&&e.wasmBinary,e.noExitRuntime,"object"!=g(r)&&j("no native wasm support detected");var y,T,R,E,C,I,S,_,A,b,w=!1,M="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function O(e,t,n){for(var r=t+n,o=t;e[o]&&!(o>=r);)++o;if(o-t>16&&e.buffer&&M)return M.decode(e.subarray(t,o));for(var i="";t<o;){var a=e[t++];if(128&a){var s=63&e[t++];if(192!=(224&a)){var u=63&e[t++];if((a=224==(240&a)?(15&a)<<12|s<<6|u:(7&a)<<18|s<<12|u<<6|63&e[t++])<65536)i+=String.fromCharCode(a);else{var c=a-65536;i+=String.fromCharCode(55296|c>>10,56320|1023&c)}}else i+=String.fromCharCode((31&a)<<6|s)}else i+=String.fromCharCode(a)}return i}function k(e,t){return e?O(R,e,t):""}function N(e,t,n,r){if(!(r>0))return 0;for(var o=n,i=n+r-1,a=0;a<e.length;++a){var s=e.charCodeAt(a);if(s>=55296&&s<=57343&&(s=65536+((1023&s)<<10)|1023&e.charCodeAt(++a)),s<=127){if(n>=i)break;t[n++]=s}else if(s<=2047){if(n+1>=i)break;t[n++]=192|s>>6,t[n++]=128|63&s}else if(s<=65535){if(n+2>=i)break;t[n++]=224|s>>12,t[n++]=128|s>>6&63,t[n++]=128|63&s}else{if(n+3>=i)break;t[n++]=240|s>>18,t[n++]=128|s>>12&63,t[n++]=128|s>>6&63,t[n++]=128|63&s}}return t[n]=0,n-o}function U(e){for(var t=0,n=0;n<e.length;++n){var r=e.charCodeAt(n);r>=55296&&r<=57343&&(r=65536+((1023&r)<<10)|1023&e.charCodeAt(++n)),r<=127?++t:t+=r<=2047?2:r<=65535?3:4}return t}e.INITIAL_MEMORY;var D,P=[],L=[],V=[],x=0,F=null;function j(t){e.onAbort&&e.onAbort(t),m(t="Aborted("+t+")"),w=!0,t+=". Build with -sASSERTIONS for more info.";var r=new Error(t);throw n(r),r}function $(t){for(;t.length>0;)t.shift()(e)}function q(e){switch(e){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError("Unknown type size: "+e)}}(D="RTCRoomEngine.wasm").startsWith("data:application/octet-stream;base64,")||(D=function(t){return e.locateFile?e.locateFile(t,u):u+t}(D));var B=void 0;function W(e){for(var t="",n=e;R[n];)t+=B[R[n++]];return t}var Q={},J={},H={};function Y(e){if(void 0===e)return"_unknown";var t=(e=e.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return t>=48&&t<=57?"_"+e:e}function G(e,t){return e=Y(e),function(){return t.apply(this,arguments)}}function K(e,t){var n=G(t,(function(e){this.name=t,this.message=e;var n=new Error(e).stack;void 0!==n&&(this.stack=this.toString()+"\n"+n.replace(/^Error(:[^\n]*)?\n/,""))}));return n.prototype=Object.create(e.prototype),n.prototype.constructor=n,n.prototype.toString=function(){return void 0===this.message?this.name:this.name+": "+this.message},n}var z=void 0;function X(e){throw new z(e)}var Z=void 0;function ee(e){throw new Z(e)}function te(e,t,n){function r(t){var r=n(t);r.length!==e.length&&ee("Mismatched type converter count");for(var o=0;o<e.length;++o)ne(e[o],r[o])}e.forEach((function(e){H[e]=t}));var o=new Array(t.length),i=[],a=0;t.forEach((function(e,t){J.hasOwnProperty(e)?o[t]=J[e]:(i.push(e),Q.hasOwnProperty(e)||(Q[e]=[]),Q[e].push((function(){o[t]=J[e],++a===i.length&&r(o)})))})),0===i.length&&r(o)}function ne(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!("argPackAdvance"in t))throw new TypeError("registerType registeredInstance requires argPackAdvance");var r=t.name;if(e||X('type "'+r+'" must have a positive integer typeid pointer'),J.hasOwnProperty(e)){if(n.ignoreDuplicateRegistrations)return;X("Cannot register type '"+r+"' twice")}if(J[e]=t,delete H[e],Q.hasOwnProperty(e)){var o=Q[e];delete Q[e],o.forEach((function(e){return e()}))}}function re(e){if(!(this instanceof _e))return!1;if(!(e instanceof _e))return!1;for(var t=this.$$.ptrType.registeredClass,n=this.$$.ptr,r=e.$$.ptrType.registeredClass,o=e.$$.ptr;t.baseClass;)n=t.upcast(n),t=t.baseClass;for(;r.baseClass;)o=r.upcast(o),r=r.baseClass;return t===r&&n===o}function oe(e){X(e.$$.ptrType.registeredClass.name+" instance already deleted")}var ie=!1;function ae(e){}function se(e){e.count.value-=1,0===e.count.value&&function(e){e.smartPtr?e.smartPtrType.rawDestructor(e.smartPtr):e.ptrType.registeredClass.rawDestructor(e.ptr)}(e)}function ue(e,t,n){if(t===n)return e;if(void 0===n.baseClass)return null;var r=ue(e,t,n.baseClass);return null===r?null:n.downcast(r)}var ce={};function le(){return Object.keys(ge).length}function de(){var e=[];for(var t in ge)ge.hasOwnProperty(t)&&e.push(ge[t]);return e}var fe=[];function ve(){for(;fe.length;){var e=fe.pop();e.$$.deleteScheduled=!1,e.delete()}}var he=void 0;function pe(e){he=e,fe.length&&he&&he(ve)}var ge={};function me(e,t){return t=function(e,t){for(void 0===t&&X("ptr should not be undefined");e.baseClass;)t=e.upcast(t),e=e.baseClass;return t}(e,t),ge[t]}function ye(e,t){return t.ptrType&&t.ptr||ee("makeClassHandle requires ptr and ptrType"),!!t.smartPtrType!=!!t.smartPtr&&ee("Both smartPtrType and smartPtr must be specified"),t.count={value:1},Re(Object.create(e,{$$:{value:t}}))}function Te(e){var t=this.getPointee(e);if(!t)return this.destructor(e),null;var n=me(this.registeredClass,t);if(void 0!==n){if(0===n.$$.count.value)return n.$$.ptr=t,n.$$.smartPtr=e,n.clone();var r=n.clone();return this.destructor(e),r}function o(){return this.isSmartPointer?ye(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:t,smartPtrType:this,smartPtr:e}):ye(this.registeredClass.instancePrototype,{ptrType:this,ptr:e})}var i,a=this.registeredClass.getActualType(t),s=ce[a];if(!s)return o.call(this);i=this.isConst?s.constPointerType:s.pointerType;var u=ue(t,this.registeredClass,i.registeredClass);return null===u?o.call(this):this.isSmartPointer?ye(i.registeredClass.instancePrototype,{ptrType:i,ptr:u,smartPtrType:this,smartPtr:e}):ye(i.registeredClass.instancePrototype,{ptrType:i,ptr:u})}function Re(e){return"undefined"==typeof FinalizationRegistry?(Re=function(e){return e},e):(ie=new FinalizationRegistry((function(e){se(e.$$)})),Re=function(e){var t=e.$$;if(t.smartPtr){var n={$$:t};ie.register(e,n,e)}return e},ae=function(e){return ie.unregister(e)},Re(e))}function Ee(){if(this.$$.ptr||oe(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var e,t=Re(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 t.$$.count.value+=1,t.$$.deleteScheduled=!1,t}function Ce(){this.$$.ptr||oe(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&X("Object already scheduled for deletion"),ae(this),se(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)}function Ie(){return!this.$$.ptr}function Se(){return this.$$.ptr||oe(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&X("Object already scheduled for deletion"),fe.push(this),1===fe.length&&he&&he(ve),this.$$.deleteScheduled=!0,this}function _e(){}function Ae(e,t,n){if(void 0===e[t].overloadTable){var r=e[t];e[t]=function(){return e[t].overloadTable.hasOwnProperty(arguments.length)||X("Function '"+n+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+e[t].overloadTable+")!"),e[t].overloadTable[arguments.length].apply(this,arguments)},e[t].overloadTable=[],e[t].overloadTable[r.argCount]=r}}function be(e,t,n,r,o,i,a,s){this.name=e,this.constructor=t,this.instancePrototype=n,this.rawDestructor=r,this.baseClass=o,this.getActualType=i,this.upcast=a,this.downcast=s,this.pureVirtualFunctions=[]}function we(e,t,n){for(;t!==n;)t.upcast||X("Expected null or instance of "+n.name+", got an instance of "+t.name),e=t.upcast(e),t=t.baseClass;return e}function Me(e,t){if(null===t)return this.isReference&&X("null is not a valid "+this.name),0;t.$$||X('Cannot pass "'+Ze(t)+'" as a '+this.name),t.$$.ptr||X("Cannot pass deleted object as a pointer of type "+this.name);var n=t.$$.ptrType.registeredClass;return we(t.$$.ptr,n,this.registeredClass)}function Oe(e,t){var n;if(null===t)return this.isReference&&X("null is not a valid "+this.name),this.isSmartPointer?(n=this.rawConstructor(),null!==e&&e.push(this.rawDestructor,n),n):0;t.$$||X('Cannot pass "'+Ze(t)+'" as a '+this.name),t.$$.ptr||X("Cannot pass deleted object as a pointer of type "+this.name),!this.isConst&&t.$$.ptrType.isConst&&X("Cannot convert argument of type "+(t.$$.smartPtrType?t.$$.smartPtrType.name:t.$$.ptrType.name)+" to parameter type "+this.name);var r=t.$$.ptrType.registeredClass;if(n=we(t.$$.ptr,r,this.registeredClass),this.isSmartPointer)switch(void 0===t.$$.smartPtr&&X("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:t.$$.smartPtrType===this?n=t.$$.smartPtr:X("Cannot convert argument of type "+(t.$$.smartPtrType?t.$$.smartPtrType.name:t.$$.ptrType.name)+" to parameter type "+this.name);break;case 1:n=t.$$.smartPtr;break;case 2:if(t.$$.smartPtrType===this)n=t.$$.smartPtr;else{var o=t.clone();n=this.rawShare(n,Xe.toHandle((function(){o.delete()}))),null!==e&&e.push(this.rawDestructor,n)}break;default:X("Unsupporting sharing policy")}return n}function ke(e,t){if(null===t)return this.isReference&&X("null is not a valid "+this.name),0;t.$$||X('Cannot pass "'+Ze(t)+'" as a '+this.name),t.$$.ptr||X("Cannot pass deleted object as a pointer of type "+this.name),t.$$.ptrType.isConst&&X("Cannot convert argument of type "+t.$$.ptrType.name+" to parameter type "+this.name);var n=t.$$.ptrType.registeredClass;return we(t.$$.ptr,n,this.registeredClass)}function Ne(e){return this.fromWireType(I[e>>2])}function Ue(e){return this.rawGetPointee&&(e=this.rawGetPointee(e)),e}function De(e){this.rawDestructor&&this.rawDestructor(e)}function Pe(e){null!==e&&e.delete()}function Le(e,t,n,r,o,i,a,s,u,c,l){this.name=e,this.registeredClass=t,this.isReference=n,this.isConst=r,this.isSmartPointer=o,this.pointeeType=i,this.sharingPolicy=a,this.rawGetPointee=s,this.rawConstructor=u,this.rawShare=c,this.rawDestructor=l,o||void 0!==t.baseClass?this.toWireType=Oe:r?(this.toWireType=Me,this.destructorFunction=null):(this.toWireType=ke,this.destructorFunction=null)}var Ve=[];function xe(e){var t=Ve[e];return t||(e>=Ve.length&&(Ve.length=e+1),Ve[e]=t=b.get(e)),t}function Fe(t,n,r){return t.includes("j")?function(t,n,r){var o=e["dynCall_"+t];return r&&r.length?o.apply(null,[n].concat(r)):o.call(null,n)}(t,n,r):xe(n).apply(null,r)}function je(e,t){var n,r,o,i=(e=W(e)).includes("j")?(n=e,r=t,o=[],function(){return o.length=0,Object.assign(o,arguments),Fe(n,r,o)}):xe(t);return"function"!=typeof i&&X("unknown function pointer with signature "+e+": "+t),i}var $e=void 0;function qe(e){var t=Ot(e),n=W(t);return wt(t),n}function Be(e,t){var n=[],r={};throw t.forEach((function e(t){r[t]||J[t]||(H[t]?H[t].forEach(e):(n.push(t),r[t]=!0))})),new $e(e+": "+n.map(qe).join([", "]))}function We(e){for(;e.length;){var t=e.pop();e.pop()(t)}}function Qe(e,t,n,r,o){var i=t.length;i<2&&X("argTypes array size mismatch! Must at least get return value and 'this' types!");for(var a=null!==t[1]&&null!==n,s=!1,u=1;u<t.length;++u)if(null!==t[u]&&void 0===t[u].destructorFunction){s=!0;break}var c="void"!==t[0].name,l=i-2,d=new Array(l),f=[],v=[];return function(){var n;arguments.length!==l&&X("function "+e+" called with "+arguments.length+" arguments, expected "+l+" args!"),v.length=0,f.length=a?2:1,f[0]=o,a&&(n=t[1].toWireType(v,this),f[1]=n);for(var i=0;i<l;++i)d[i]=t[i+2].toWireType(v,arguments[i]),f.push(d[i]);return function(e){if(s)We(v);else for(var r=a?1:2;r<t.length;r++){var o=1===r?n:d[r-2];null!==t[r].destructorFunction&&t[r].destructorFunction(o)}if(c)return t[0].fromWireType(e)}(r.apply(null,f))}}function Je(e,t){for(var n=[],r=0;r<e;r++)n.push(S[t+4*r>>2]);return n}var He=[],Ye=[{},{value:void 0},{value:null},{value:!0},{value:!1}];function Ge(e){e>4&&0==--Ye[e].refcount&&(Ye[e]=void 0,He.push(e))}function Ke(){for(var e=0,t=5;t<Ye.length;++t)void 0!==Ye[t]&&++e;return e}function ze(){for(var e=5;e<Ye.length;++e)if(void 0!==Ye[e])return Ye[e];return null}var Xe={toValue:function(e){return e||X("Cannot use deleted val. handle = "+e),Ye[e].value},toHandle:function(e){switch(e){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:var t=He.length?He.pop():Ye.length;return Ye[t]={refcount:1,value:e},t}}};function Ze(e){if(null===e)return"null";var t=g(e);return"object"===t||"array"===t||"function"===t?e.toString():""+e}function et(e,t){switch(t){case 2:return function(e){return this.fromWireType(_[e>>2])};case 3:return function(e){return this.fromWireType(A[e>>3])};default:throw new TypeError("Unknown float type: "+e)}}function tt(e,t,n){switch(t){case 0:return n?function(e){return T[e]}:function(e){return R[e]};case 1:return n?function(e){return E[e>>1]}:function(e){return C[e>>1]};case 2:return n?function(e){return I[e>>2]}:function(e){return S[e>>2]};default:throw new TypeError("Unknown integer type: "+e)}}var nt="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0;function rt(e,t){for(var n=e,r=n>>1,o=r+t/2;!(r>=o)&&C[r];)++r;if((n=r<<1)-e>32&&nt)return nt.decode(R.subarray(e,n));for(var i="",a=0;!(a>=t/2);++a){var s=E[e+2*a>>1];if(0==s)break;i+=String.fromCharCode(s)}return i}function ot(e,t,n){if(void 0===n&&(n=2147483647),n<2)return 0;for(var r=t,o=(n-=2)<2*e.length?n/2:e.length,i=0;i<o;++i){var a=e.charCodeAt(i);E[t>>1]=a,t+=2}return E[t>>1]=0,t-r}function it(e){return 2*e.length}function at(e,t){for(var n=0,r="";!(n>=t/4);){var o=I[e+4*n>>2];if(0==o)break;if(++n,o>=65536){var i=o-65536;r+=String.fromCharCode(55296|i>>10,56320|1023&i)}else r+=String.fromCharCode(o)}return r}function st(e,t,n){if(void 0===n&&(n=2147483647),n<4)return 0;for(var r=t,o=r+n-4,i=0;i<e.length;++i){var a=e.charCodeAt(i);if(a>=55296&&a<=57343&&(a=65536+((1023&a)<<10)|1023&e.charCodeAt(++i)),I[t>>2]=a,(t+=4)+4>o)break}return I[t>>2]=0,t-r}function ut(e){for(var t=0,n=0;n<e.length;++n){var r=e.charCodeAt(n);r>=55296&&r<=57343&&++n,t+=4}return t}function ct(e,t){var n=J[e];return void 0===n&&X(t+" has unknown type "+qe(e)),n}function lt(e,t){for(var n=new Array(e),r=0;r<e;++r)n[r]=ct(S[t+4*r>>2],"parameter "+r);return n}var dt={};function ft(e){var t=dt[e];return void 0===t?W(e):t}var vt=[];function ht(){if("object"==("undefined"==typeof globalThis?"undefined":g(globalThis)))return globalThis;function e(e){e.$$$embind_global$$$=e;var t="object"==("undefined"==typeof $$$embind_global$$$?"undefined":g($$$embind_global$$$))&&e.$$$embind_global$$$==e;return t||delete e.$$$embind_global$$$,t}if("object"==("undefined"==typeof $$$embind_global$$$?"undefined":g($$$embind_global$$$)))return $$$embind_global$$$;if("object"==("undefined"==typeof global?"undefined":g(global))&&e(global)?$$$embind_global$$$=global:"object"==("undefined"==typeof self?"undefined":g(self))&&e(self)&&($$$embind_global$$$=self),"object"==("undefined"==typeof $$$embind_global$$$?"undefined":g($$$embind_global$$$)))return $$$embind_global$$$;throw Error("unable to get global object.")}var pt,gt=[],mt={};pt=function(){return performance.now()};var yt={};function Tt(){if(!Tt.strings){var e={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==("undefined"==typeof navigator?"undefined":g(navigator))&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:i||"./this.program"};for(var t in yt)void 0===yt[t]?delete e[t]:e[t]=yt[t];var n=[];for(var t in e)n.push(t+"="+e[t]);Tt.strings=n}return Tt.strings}var Rt=[null,[],[]];function Et(e,t){var n=Rt[e];0===t||10===t?((1===e?p:m)(O(n,0)),n.length=0):n.push(t)}function Ct(e){return e%4==0&&(e%100!=0||e%400==0)}var It=[31,29,31,30,31,30,31,31,30,31,30,31],St=[31,28,31,30,31,30,31,31,30,31,30,31];function _t(e,t,n,r){var o=I[r+40>>2],i={tm_sec:I[r>>2],tm_min:I[r+4>>2],tm_hour:I[r+8>>2],tm_mday:I[r+12>>2],tm_mon:I[r+16>>2],tm_year:I[r+20>>2],tm_wday:I[r+24>>2],tm_yday:I[r+28>>2],tm_isdst:I[r+32>>2],tm_gmtoff:I[r+36>>2],tm_zone:o?k(o):""},a=k(n),s={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var u in s)a=a.replace(new RegExp(u,"g"),s[u]);var c=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],l=["January","February","March","April","May","June","July","August","September","October","November","December"];function d(e,t,n){for(var r="number"==typeof e?e.toString():e||"";r.length<t;)r=n[0]+r;return r}function f(e,t){return d(e,t,"0")}function v(e,t){function n(e){return e<0?-1:e>0?1:0}var r;return 0===(r=n(e.getFullYear()-t.getFullYear()))&&0===(r=n(e.getMonth()-t.getMonth()))&&(r=n(e.getDate()-t.getDate())),r}function h(e){switch(e.getDay()){case 0:return new Date(e.getFullYear()-1,11,29);case 1:return e;case 2:return new Date(e.getFullYear(),0,3);case 3:return new Date(e.getFullYear(),0,2);case 4:return new Date(e.getFullYear(),0,1);case 5:return new Date(e.getFullYear()-1,11,31);case 6:return new Date(e.getFullYear()-1,11,30)}}function p(e){var t=function(e,t){for(var n=new Date(e.getTime());t>0;){var r=Ct(n.getFullYear()),o=n.getMonth(),i=(r?It:St)[o];if(!(t>i-n.getDate()))return n.setDate(n.getDate()+t),n;t-=i-n.getDate()+1,n.setDate(1),o<11?n.setMonth(o+1):(n.setMonth(0),n.setFullYear(n.getFullYear()+1))}return n}(new Date(e.tm_year+1900,0,1),e.tm_yday),n=new Date(t.getFullYear(),0,4),r=new Date(t.getFullYear()+1,0,4),o=h(n),i=h(r);return v(o,t)<=0?v(i,t)<=0?t.getFullYear()+1:t.getFullYear():t.getFullYear()-1}var g={"%a":function(e){return c[e.tm_wday].substring(0,3)},"%A":function(e){return c[e.tm_wday]},"%b":function(e){return l[e.tm_mon].substring(0,3)},"%B":function(e){return l[e.tm_mon]},"%C":function(e){return f((e.tm_year+1900)/100|0,2)},"%d":function(e){return f(e.tm_mday,2)},"%e":function(e){return d(e.tm_mday,2," ")},"%g":function(e){return p(e).toString().substring(2)},"%G":function(e){return p(e)},"%H":function(e){return f(e.tm_hour,2)},"%I":function(e){var t=e.tm_hour;return 0==t?t=12:t>12&&(t-=12),f(t,2)},"%j":function(e){return f(e.tm_mday+function(e,t){for(var n=0,r=0;r<=t;n+=e[r++]);return n}(Ct(e.tm_year+1900)?It:St,e.tm_mon-1),3)},"%m":function(e){return f(e.tm_mon+1,2)},"%M":function(e){return f(e.tm_min,2)},"%n":function(){return"\n"},"%p":function(e){return e.tm_hour>=0&&e.tm_hour<12?"AM":"PM"},"%S":function(e){return f(e.tm_sec,2)},"%t":function(){return"\t"},"%u":function(e){return e.tm_wday||7},"%U":function(e){var t=e.tm_yday+7-e.tm_wday;return f(Math.floor(t/7),2)},"%V":function(e){var t=Math.floor((e.tm_yday+7-(e.tm_wday+6)%7)/7);if((e.tm_wday+371-e.tm_yday-2)%7<=2&&t++,t){if(53==t){var n=(e.tm_wday+371-e.tm_yday)%7;4==n||3==n&&Ct(e.tm_year)||(t=1)}}else{t=52;var r=(e.tm_wday+7-e.tm_yday-1)%7;(4==r||5==r&&Ct(e.tm_year%400-1))&&t++}return f(t,2)},"%w":function(e){return e.tm_wday},"%W":function(e){var t=e.tm_yday+7-(e.tm_wday+6)%7;return f(Math.floor(t/7),2)},"%y":function(e){return(e.tm_year+1900).toString().substring(2)},"%Y":function(e){return e.tm_year+1900},"%z":function(e){var t=e.tm_gmtoff,n=t>=0;return t=(t=Math.abs(t)/60)/60*100+t%60,(n?"+":"-")+String("0000"+t).slice(-4)},"%Z":function(e){return e.tm_zone},"%%":function(){return"%"}};for(var u in a=a.replace(/%%/g,"\0\0"),g)a.includes(u)&&(a=a.replace(new RegExp(u,"g"),g[u](i)));a=a.replace(/\0\0/g,"%");var m,y,R,E,C,S,_=(m=a,y=!1,E=R>0?R:U(m)+1,C=new Array(E),S=N(m,C,0,C.length),y&&(C.length=S),C);return _.length>t?0:(function(e,t){T.set(e,t)}(_,e),_.length-1)}!function(){for(var e=new Array(256),t=0;t<256;++t)e[t]=String.fromCharCode(t);B=e}(),z=e.BindingError=K(Error,"BindingError"),Z=e.InternalError=K(Error,"InternalError"),_e.prototype.isAliasOf=re,_e.prototype.clone=Ee,_e.prototype.delete=Ce,_e.prototype.isDeleted=Ie,_e.prototype.deleteLater=Se,e.getInheritedInstanceCount=le,e.getLiveInheritedInstances=de,e.flushPendingDeletes=ve,e.setDelayFunction=pe,Le.prototype.getPointee=Ue,Le.prototype.destructor=De,Le.prototype.argPackAdvance=8,Le.prototype.readValueFromPointer=Ne,Le.prototype.deleteObject=Pe,Le.prototype.fromWireType=Te,$e=e.UnboundTypeError=K(Error,"UnboundTypeError"),e.count_emval_handles=Ke,e.get_first_emval=ze;var At={__assert_fail:function(e,t,n,r){j("Assertion failed: "+k(e)+", at: "+[t?k(t):"unknown filename",n,r?k(r):"unknown function"])},_embind_register_bigint:function(e,t,n,r,o){},_embind_register_bool:function(e,t,n,r,o){var i=q(n);ne(e,{name:t=W(t),fromWireType:function(e){return!!e},toWireType:function(e,t){return t?r:o},argPackAdvance:8,readValueFromPointer:function(e){var r;if(1===n)r=T;else if(2===n)r=E;else{if(4!==n)throw new TypeError("Unknown boolean type size: "+t);r=I}return this.fromWireType(r[e>>i])},destructorFunction:null})},_embind_register_class:function(t,n,r,o,i,a,s,u,c,l,d,f,v){d=W(d),a=je(i,a),u&&(u=je(s,u)),l&&(l=je(c,l)),v=je(f,v);var h=Y(d);!function(t,n,r){e.hasOwnProperty(t)?((void 0===r||void 0!==e[t].overloadTable&&void 0!==e[t].overloadTable[r])&&X("Cannot register public name '"+t+"' twice"),Ae(e,t,t),e.hasOwnProperty(r)&&X("Cannot register multiple overloads of a function with the same number of arguments ("+r+")!"),e[t].overloadTable[r]=n):(e[t]=n,void 0!==r&&(e[t].numArguments=r))}(h,(function(){Be("Cannot construct "+d+" due to unbound types",[o])})),te([t,n,r],o?[o]:[],(function(n){var r,i;n=n[0],i=o?(r=n.registeredClass).instancePrototype:_e.prototype;var s=G(h,(function(){if(Object.getPrototypeOf(this)!==c)throw new z("Use 'new' to construct "+d);if(void 0===f.constructor_body)throw new z(d+" has no accessible constructor");var e=f.constructor_body[arguments.length];if(void 0===e)throw new z("Tried to invoke ctor of "+d+" with invalid number of parameters ("+arguments.length+") - expected ("+Object.keys(f.constructor_body).toString()+") parameters instead!");return e.apply(this,arguments)})),c=Object.create(i,{constructor:{value:s}});s.prototype=c;var f=new be(d,s,c,v,r,a,u,l),p=new Le(d,f,!0,!1,!1),g=new Le(d+"*",f,!1,!1,!1),m=new Le(d+" const*",f,!1,!0,!1);return ce[t]={pointerType:g,constPointerType:m},function(t,n,r){e.hasOwnProperty(t)||ee("Replacing nonexistant public symbol"),void 0!==e[t].overloadTable&&void 0!==r?e[t].overloadTable[r]=n:(e[t]=n,e[t].argCount=r)}(h,s),[p,g,m]}))},_embind_register_class_class_function:function(e,t,n,r,o,i,a){var s=Je(n,r);t=W(t),i=je(o,i),te([],[e],(function(e){var r=(e=e[0]).name+"."+t;function o(){Be("Cannot call "+r+" due to unbound types",s)}t.startsWith("@@")&&(t=Symbol[t.substring(2)]);var u=e.registeredClass.constructor;return void 0===u[t]?(o.argCount=n-1,u[t]=o):(Ae(u,t,r),u[t].overloadTable[n-1]=o),te([],s,(function(e){var o=[e[0],null].concat(e.slice(1)),s=Qe(r,o,null,i,a);return void 0===u[t].overloadTable?(s.argCount=n-1,u[t]=s):u[t].overloadTable[n-1]=s,[]})),[]}))},_embind_register_class_constructor:function(e,t,n,r,o,i){var a;t>0||j(a);var s=Je(t,n);o=je(r,o),te([],[e],(function(e){var n="constructor "+(e=e[0]).name;if(void 0===e.registeredClass.constructor_body&&(e.registeredClass.constructor_body=[]),void 0!==e.registeredClass.constructor_body[t-1])throw new z("Cannot register multiple constructors with identical number of parameters ("+(t-1)+") for class '"+e.name+"'! Overload resolution is currently only performed using the parameter count, not actual type info!");return e.registeredClass.constructor_body[t-1]=function(){Be("Cannot construct "+e.name+" due to unbound types",s)},te([],s,(function(r){return r.splice(1,0,null),e.registeredClass.constructor_body[t-1]=Qe(n,r,null,o,i),[]})),[]}))},_embind_register_class_function:function(e,t,n,r,o,i,a,s){var u=Je(n,r);t=W(t),i=je(o,i),te([],[e],(function(e){var r=(e=e[0]).name+"."+t;function o(){Be("Cannot call "+r+" due to unbound types",u)}t.startsWith("@@")&&(t=Symbol[t.substring(2)]),s&&e.registeredClass.pureVirtualFunctions.push(t);var c=e.registeredClass.instancePrototype,l=c[t];return void 0===l||void 0===l.overloadTable&&l.className!==e.name&&l.argCount===n-2?(o.argCount=n-2,o.className=e.name,c[t]=o):(Ae(c,t,r),c[t].overloadTable[n-2]=o),te([],u,(function(o){var s=Qe(r,o,e,i,a);return void 0===c[t].overloadTable?(s.argCount=n-2,c[t]=s):c[t].overloadTable[n-2]=s,[]})),[]}))},_embind_register_emval:function(e,t){ne(e,{name:t=W(t),fromWireType:function(e){var t=Xe.toValue(e);return Ge(e),t},toWireType:function(e,t){return Xe.toHandle(t)},argPackAdvance:8,readValueFromPointer:Ne,destructorFunction:null})},_embind_register_float:function(e,t,n){var r=q(n);ne(e,{name:t=W(t),fromWireType:function(e){return e},toWireType:function(e,t){return t},argPackAdvance:8,readValueFromPointer:et(t,r),destructorFunction:null})},_embind_register_integer:function(e,t,n,r,o){t=W(t);var i=q(n),a=function(e){return e};if(0===r){var s=32-8*n;a=function(e){return e<<s>>>s}}var u=t.includes("unsigned");ne(e,{name:t,fromWireType:a,toWireType:u?function(e,t){return this.name,t>>>0}:function(e,t){return this.name,t},argPackAdvance:8,readValueFromPointer:tt(t,i,0!==r),destructorFunction:null})},_embind_register_memory_view:function(e,t,n){var r=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][t];function o(e){var t=S,n=t[e>>=2],o=t[e+1];return new r(y,o,n)}ne(e,{name:n=W(n),fromWireType:o,argPackAdvance:8,readValueFromPointer:o},{ignoreDuplicateRegistrations:!0})},_embind_register_smart_ptr:function(e,t,n,r,o,i,a,s,u,c,l,d){n=W(n),i=je(o,i),s=je(a,s),c=je(u,c),d=je(l,d),te([e],[t],(function(e){return e=e[0],[new Le(n,e.registeredClass,!1,!1,!0,e,r,i,s,c,d)]}))},_embind_register_std_string:function(e,t){var n="std::string"===(t=W(t));ne(e,{name:t,fromWireType:function(e){var t,r=S[e>>2],o=e+4;if(n)for(var i=o,a=0;a<=r;++a){var s=o+a;if(a==r||0==R[s]){var u=k(i,s-i);void 0===t?t=u:(t+=String.fromCharCode(0),t+=u),i=s+1}}else{var c=new Array(r);for(a=0;a<r;++a)c[a]=String.fromCharCode(R[o+a]);t=c.join("")}return wt(e),t},toWireType:function(e,t){var r;t instanceof ArrayBuffer&&(t=new Uint8Array(t));var o="string"==typeof t;o||t instanceof Uint8Array||t instanceof Uint8ClampedArray||t instanceof Int8Array||X("Cannot pass non-string to std::string"),r=n&&o?U(t):t.length;var i=Mt(4+r+1),a=i+4;if(S[i>>2]=r,n&&o)N(t,R,a,r+1);else if(o)for(var s=0;s<r;++s){var u=t.charCodeAt(s);u>255&&(wt(a),X("String has UTF-16 code units that do not fit in 8 bits")),R[a+s]=u}else for(s=0;s<r;++s)R[a+s]=t[s];return null!==e&&e.push(wt,i),i},argPackAdvance:8,readValueFromPointer:Ne,destructorFunction:function(e){wt(e)}})},_embind_register_std_wstring:function(e,t,n){var r,o,i,a,s;n=W(n),2===t?(r=rt,o=ot,a=it,i=function(){return C},s=1):4===t&&(r=at,o=st,a=ut,i=function(){return S},s=2),ne(e,{name:n,fromWireType:function(e){for(var n,o=S[e>>2],a=i(),u=e+4,c=0;c<=o;++c){var l=e+4+c*t;if(c==o||0==a[l>>s]){var d=r(u,l-u);void 0===n?n=d:(n+=String.fromCharCode(0),n+=d),u=l+t}}return wt(e),n},toWireType:function(e,r){"string"!=typeof r&&X("Cannot pass non-string to C++ string type "+n);var i=a(r),u=Mt(4+i+t);return S[u>>2]=i>>s,o(r,u+4,i+t),null!==e&&e.push(wt,u),u},argPackAdvance:8,readValueFromPointer:Ne,destructorFunction:function(e){wt(e)}})},_embind_register_void:function(e,t){ne(e,{isVoid:!0,name:t=W(t),argPackAdvance:0,fromWireType:function(){},toWireType:function(e,t){}})},_emscripten_date_now:function(){return Date.now()},_emscripten_get_now_is_monotonic:function(){return!0},_emval_as:function(e,t,n){e=Xe.toValue(e),t=ct(t,"emval::as");var r=[],o=Xe.toHandle(r);return S[n>>2]=o,t.toWireType(r,e)},_emval_call:function(e,t,n,r){e=Xe.toValue(e);for(var o=lt(t,n),i=new Array(t),a=0;a<t;++a){var s=o[a];i[a]=s.readValueFromPointer(r),r+=s.argPackAdvance}var u=e.apply(void 0,i);return Xe.toHandle(u)},_emval_call_method:function(e,t,n,r,o){return(e=vt[e])(t=Xe.toValue(t),n=ft(n),function(e){var t=[];return S[e>>2]=Xe.toHandle(t),t}(r),o)},_emval_call_void_method:function(e,t,n,r){(e=vt[e])(t=Xe.toValue(t),n=ft(n),null,r)},_emval_decref:Ge,_emval_get_global:function(e){return 0===e?Xe.toHandle(ht()):(e=ft(e),Xe.toHandle(ht()[e]))},_emval_get_method_caller:function(e,t){var n=lt(e,t),r=n[0],o=r.name+"_$"+n.slice(1).map((function(e){return e.name})).join("_")+"$",i=gt[o];if(void 0!==i)return i;var a=new Array(e-1);return i=function(e){var t=vt.length;return vt.push(e),t}((function(t,o,i,s){for(var u=0,c=0;c<e-1;++c)a[c]=n[c+1].readValueFromPointer(s+u),u+=n[c+1].argPackAdvance;var l=t[o].apply(t,a);for(c=0;c<e-1;++c)n[c+1].deleteObject&&n[c+1].deleteObject(a[c]);if(!r.isVoid)return r.toWireType(i,l)})),gt[o]=i,i},_emval_get_module_property:function(t){return t=ft(t),Xe.toHandle(e[t])},_emval_get_property:function(e,t){return e=Xe.toValue(e),t=Xe.toValue(t),Xe.toHandle(e[t])},_emval_incref:function(e){e>4&&(Ye[e].refcount+=1)},_emval_instanceof:function(e,t){return(e=Xe.toValue(e))instanceof(t=Xe.toValue(t))},_emval_is_number:function(e){return"number"==typeof(e=Xe.toValue(e))},_emval_is_string:function(e){return"string"==typeof(e=Xe.toValue(e))},_emval_new:function(e,t,n,r){e=Xe.toValue(e);var o=mt[t];return o||(o=function(e){var t=new Array(e+1);return function(n,r,o){t[0]=n;for(var i=0;i<e;++i){var a=ct(S[r+4*i>>2],"parameter "+i);t[i+1]=a.readValueFromPointer(o),o+=a.argPackAdvance}var s=new(n.bind.apply(n,t));return Xe.toHandle(s)}}(t),mt[t]=o),o(e,n,r)},_emval_new_cstring:function(e){return Xe.toHandle(ft(e))},_emval_run_destructors:function(e){We(Xe.toValue(e)),Ge(e)},_emval_take_value:function(e,t){var n=(e=ct(e,"_emval_take_value")).readValueFromPointer(t);return Xe.toHandle(n)},abort:function(){j("")},emscripten_get_now:pt,emscripten_memcpy_big:function(e,t,n){R.copyWithin(e,t,t+n)},emscripten_resize_heap:function(e){R.length,j("OOM")},environ_get:function(e,t){var n=0;return Tt().forEach((function(r,o){var i=t+n;S[e+4*o>>2]=i,function(e,t,n){for(var r=0;r<e.length;++r)T[0|t++]=e.charCodeAt(r);n||(T[0|t]=0)}(r,i),n+=r.length+1})),0},environ_sizes_get:function(e,t){var n=Tt();S[e>>2]=n.length;var r=0;return n.forEach((function(e){r+=e.length+1})),S[t>>2]=r,0},fd_close:function(e){return 52},fd_seek:function(e,t,n,r,o){return 70},fd_write:function(e,t,n,r){for(var o=0,i=0;i<n;i++){var a=S[t>>2],s=S[t+4>>2];t+=8;for(var u=0;u<s;u++)Et(e,R[a+u]);o+=s}return S[r>>2]=o,0},setTempRet0:function(e){},strftime_l:function(e,t,n,r){return _t(e,t,n,r)}};!function(){var t,r={env:At,wasi_snapshot_preview1:At};function o(t,n){var r,o,i=t.exports;e.asm=i,l=e.asm.memory,r=l.buffer,y=r,e.HEAP8=T=new Int8Array(r),e.HEAP16=E=new Int16Array(r),e.HEAP32=I=new Int32Array(r),e.HEAPU8=R=new Uint8Array(r),e.HEAPU16=C=new Uint16Array(r),e.HEAPU32=S=new Uint32Array(r),e.HEAPF32=_=new Float32Array(r),e.HEAPF64=A=new Float64Array(r),b=e.asm.__indirect_function_table,o=e.asm.__wasm_call_ctors,L.unshift(o),function(){if(x--,e.monitorRunDependencies&&e.monitorRunDependencies(x),0==x&&F){var t=F;F=null,t()}}()}function i(e){o(e.instance)}if(x++,e.monitorRunDependencies&&e.monitorRunDependencies(x),e.instantiateWasm)try{return e.instantiateWasm(r,o)}catch(a){return m("Module.instantiateWasm callback failed with error: "+a),!1}(t=i,WXWebAssembly.instantiate("/static/RTCRoomEngine.wasm.br",r).then((function(e){return e})).then(t,(function(e){m("failed to asynchronously prepare wasm: "+e),j(e)}))).catch(n)}(),e.___wasm_call_ctors=function(){return(e.___wasm_call_ctors=e.asm.__wasm_call_ctors).apply(null,arguments)};var bt,wt=e._free=function(){return(wt=e._free=e.asm.free).apply(null,arguments)},Mt=e._malloc=function(){return(Mt=e._malloc=e.asm.malloc).apply(null,arguments)},Ot=e.___getTypeName=function(){return(Ot=e.___getTypeName=e.asm.__getTypeName).apply(null,arguments)};function kt(n){function r(){bt||(bt=!0,e.calledRun=!0,w||($(L),t(e),e.onRuntimeInitialized&&e.onRuntimeInitialized(),function(){if(e.postRun)for("function"==typeof e.postRun&&(e.postRun=[e.postRun]);e.postRun.length;)t=e.postRun.shift(),V.unshift(t);var t;$(V)}()))}x>0||(function(){if(e.preRun)for("function"==typeof e.preRun&&(e.preRun=[e.preRun]);e.preRun.length;)t=e.preRun.shift(),P.unshift(t);var t;$(P)}(),x>0||(e.setStatus?(e.setStatus("Running..."),setTimeout((function(){setTimeout((function(){e.setStatus("")}),1),r()}),1)):r()))}if(e.___embind_register_native_and_builtin_types=function(){return(e.___embind_register_native_and_builtin_types=e.asm.__embind_register_native_and_builtin_types).apply(null,arguments)},e.___errno_location=function(){return(e.___errno_location=e.asm.__errno_location).apply(null,arguments)},e.stackSave=function(){return(e.stackSave=e.asm.stackSave).apply(null,arguments)},e.stackRestore=function(){return(e.stackRestore=e.asm.stackRestore).apply(null,arguments)},e.stackAlloc=function(){return(e.stackAlloc=e.asm.stackAlloc).apply(null,arguments)},e.dynCall_vijii=function(){return(e.dynCall_vijii=e.asm.dynCall_vijii).apply(null,arguments)},e.dynCall_viji=function(){return(e.dynCall_viji=e.asm.dynCall_viji).apply(null,arguments)},e.dynCall_vijiiii=function(){return(e.dynCall_vijiiii=e.asm.dynCall_vijiiii).apply(null,arguments)},e.dynCall_viijii=function(){return(e.dynCall_viijii=e.asm.dynCall_viijii).apply(null,arguments)},e.dynCall_viij=function(){return(e.dynCall_viij=e.asm.dynCall_viij).apply(null,arguments)},e.dynCall_jiji=function(){return(e.dynCall_jiji=e.asm.dynCall_jiji).apply(null,arguments)},e.dynCall_iiiiij=function(){return(e.dynCall_iiiiij=e.asm.dynCall_iiiiij).apply(null,arguments)},e.dynCall_iiiiijj=function(){return(e.dynCall_iiiiijj=e.asm.dynCall_iiiiijj).apply(null,arguments)},e.dynCall_iiiiiijj=function(){return(e.dynCall_iiiiiijj=e.asm.dynCall_iiiiiijj).apply(null,arguments)},F=function e(){bt||kt(),bt||(F=e)},e.preInit)for("function"==typeof e.preInit&&(e.preInit=[e.preInit]);e.preInit.length>0;)e.preInit.pop()();kt();var Nt,Ut=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(t){i(t)}}function s(e){try{u(r.throw(e))}catch(t){i(t)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))};function Dt(e){if("string"!=typeof e)return e;var t;try{var n=JSON.parse(e);t="object"===g(n)&&n?n:e}catch(VN){t=e}return t}!function(e){e[e.APNs=0]="APNs",e[e.VoIP=1]="VoIP"}(Nt||(Nt={}));var Pt=function(){return d((function e(){c(this,e)}),null,[{key:"getDeviceInfo",value:function(){var t={osName:"",osVersion:"",deviceName:"",framework:""};if(e.isWXMiniProgram){var n=wx.getSystemInfoSync(),r=v(n.system.split(" "),2),o=r[0],i=r[1];return t.osName=o,t.osVersion=i,t.deviceName=n.model,t.framework="wxMiniProgram",t}var a=e.rtcDetect.getSystem().browser,s=e.rtcDetect.getSystem().OS,u=e.isElectron?"electron":"web";return t.osName=a.name,t.osVersion=a.version,t.deviceName=s,t.framework=u,t}}])}(),Lt=function(){function e(){c(this,e)}return d(e,null,[{key:"startInterval",value:function(t,n,r){var o=setInterval((function(){var n;(null===(n=null==e?void 0:e.timerMap)||void 0===n?void 0:n.has(t))&&e.timerMap.get(t).callback.onInterval(t)}),n);e.timerMap.set(t,{timer:o,callback:r})}},{key:"stopInterval",value:function(t){var n;if(null===(n=null==e?void 0:e.timerMap)||void 0===n?void 0:n.has(t)){var r=e.timerMap.get(t);r&&r.timer&&(clearInterval(r.timer),r.callback.delete(),e.timerMap.delete(t))}}},{key:"startTimeout",value:function(e,t){return Ut(this,void 0,void 0,f().mark((function n(){return f().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:setTimeout((function(){t.onTimeout(),t.delete()}),e);case 1:case"end":return n.stop()}}),n)})))}}])}();Lt.timerMap=new Map,e.JSTimer=Lt,e.JSSystemInfo=Pt,Ut=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(t){i(t)}}function s(e){try{u(r.throw(e))}catch(t){i(t)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))};var Vt=e.TIM,xt=function(){function e(t){return c(this,e),this.waitingReadyQueue=[],this.logger=t&&t.logger||console,this.onTIMReadyStateUpdate=this.onTIMReadyStateUpdate.bind(this),e.chatLoginManager||(e.chatLoginManager=this),e.chatLoginManager}return d(e,[{key:"login",value:function(t){return Ut(this,void 0,void 0,f().mark((function n(){var r,o,i,a,s,u=this;return f().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=Object.assign({},t),o=r.userId,i=r.userSig,a=r.chat,!this.isTIMVersionBelowV3(a)){n.next=3;break}throw new Error("Current chat version is not supported, please use v3.");case 3:if(e.chat=a,this.bindTIMEvent(),!(s=e.chat.getLoginUser())){n.next=21;break}if(s!==o){n.next=15;break}if(!e.chat.isReady()){n.next=12;break}return n.abrupt("return");case 12:return n.abrupt("return",new Promise((function(e,t){u.addLoginHandler({userId:o,resolve:e,reject:t})})));case 13:n.next=19;break;case 15:return n.next=17,this.doLogout();case 17:return n.next=19,this.doLogin({userId:o,userSig:i});case 19:n.next=23;break;case 21:return n.next=23,this.doLogin({userId:o,userSig:i});case 23:case"end":return n.stop()}}),n,this)})))}},{key:"doLogin",value:function(t){return Ut(this,void 0,void 0,f().mark((function n(){var r,o,i,a=this;return f().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=Object.assign({},t),o=r.userId,i=r.userSig,n.abrupt("return",new Promise((function(t,n){return Ut(a,void 0,void 0,f().mark((function r(){var a;return f().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,this.logger.debug("[tim] chat.login with userId: ",o),r.next=4,e.chat.login({userID:o,userSig:i});case 4:if(a=r.sent,this.logger.info("[tim] chat.login success:",a),!a.data.repeatLogin||!e.chat.isReady()){r.next=9;break}return t(!0),r.abrupt("return");case 9:this.addLoginHandler({userId:o,resolve:t,reject:n}),r.next=16;break;case 12:r.prev=12,r.t0=r.catch(0),this.logger.debug("[tim] chat.login error: ",r.t0,r.t0.code),2025===r.t0.code?this.addLoginHandler({userId:o,resolve:t,reject:n}):n(r.t0);case 16:case"end":return r.stop()}}),r,this,[[0,12]])})))})));case 2:case"end":return n.stop()}}),n)})))}},{key:"logout",value:function(){return Ut(this,void 0,void 0,f().mark((function t(){return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.doLogout();case 2:e.chat=null;case 3:case"end":return t.stop()}}),t,this)})))}},{key:"doLogout",value:function(){return Ut(this,void 0,void 0,f().mark((function t(){return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.chat){t.next=2;break}return t.abrupt("return");case 2:return this.logger.debug("[tim] chat.logout."),t.next=5,e.chat.logout();case 5:this.logger.info("[tim] chat.logout success.");case 6:case"end":return t.stop()}}),t,this)})))}},{key:"isTIMVersionBelowV3",value:function(e){return e&&"function"!=typeof e.addSignalingListener}},{key:"addLoginHandler",value:function(e){var t=this;this.waitingReadyQueue.push(e),setTimeout((function(){var n=t.waitingReadyQueue.findIndex((function(t){return t===e}));n<0||(t.waitingReadyQueue.splice(n,1),e.reject(new Error("login timeout")))}),2e3)}},{key:"onTIMReadyStateUpdate",value:function(t){if(this.logger.debug("onTIMReadyStateUpdate event:",t.name),t.name===Vt.EVENT.SDK_READY){var n=e.chat.getLoginUser();this.waitingReadyQueue.forEach((function(e){e.userId===n?e.resolve():e.reject(new Error("user ".concat(n," has Logged")))}))}else this.waitingReadyQueue.forEach((function(e){return e.reject(new Error("sdk not ready"))}));this.waitingReadyQueue=[]}},{key:"bindTIMEvent",value:function(){var t,n,r,o;null===(t=e.chat)||void 0===t||t.off(Vt.EVENT.SDK_READY,this.onTIMReadyStateUpdate),null===(n=e.chat)||void 0===n||n.off(Vt.EVENT.SDK_NOT_READY,this.onTIMReadyStateUpdate),null===(r=e.chat)||void 0===r||r.on(Vt.EVENT.SDK_READY,this.onTIMReadyStateUpdate),null===(o=e.chat)||void 0===o||o.on(Vt.EVENT.SDK_NOT_READY,this.onTIMReadyStateUpdate)}}])}(),Ft=(Ut=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(t){i(t)}}function s(e){try{u(r.throw(e))}catch(t){i(t)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},e.TIM),jt=Ft.TSignaling,$t=["callExperimentalAPI","invite","inviteInGroup","accept","reject","cancel","modifyInvitation","getUserStatus"],qt=function(){return d((function t(){c(this,t),this.chatLoginManager=new xt({logger:e.logger}),this.isExternalIncomingTim=!1,this.onError=this.onError.bind(this),this.onRoomCustomDataReceived=this.onRoomCustomDataReceived.bind(this),this.onKickedOut=this.onKickedOut.bind(this),this.onNetStateChange=this.onNetStateChange.bind(this),this.onServerConfigUpdated=this.onServerConfigUpdated.bind(this),this.onNewMessageReceived=this.onNewMessageReceived.bind(this),this.onNewInvitationReceived=this.onNewInvitationReceived.bind(this),this.onInviteeAccepted=this.onInviteeAccepted.bind(this),this.onInviteeRejected=this.onInviteeRejected.bind(this),this.onInvitationCancelled=this.onInvitationCancelled.bind(this),this.onInvitationTimeout=this.onInvitationTimeout.bind(this)}),[{key:"bindObserver",value:function(e){this.nativeObserver=e}},{key:"unBindObserver",value:function(){this.nativeObserver&&this.nativeObserver.delete(),this.nativeObserver=null}},{key:"getLoginUser",value:function(){var e,t=null===(e=this.tim)||void 0===e?void 0:e.getLoginUser();return null!=t?t:""}},{key:"callJS",value:function(t,n,r){return Ut(this,void 0,void 0,f().mark((function o(){var i;return f().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(o.prev=0,!(a=e.tim)||"function"==typeof a.addSignalingListener){o.next=4;break}return r.onError(-1,"The current npm package you are using, tim-js-sdk, does not match the current dependency version of TUIRoom. We recommend upgrading to the new npm package @tencentCloud/chat for continued support and updates."),o.abrupt("return");case 4:if(e.tim||"login"===t){o.next=7;break}return r.onError(2024,"please login firstly"),o.abrupt("return");case 7:i=Dt(n),"invite"!==t&&"inviteInGroup"!==t||(i.offlinePushInfo=Dt(i.offlinePushInfo)||{}),"callExperimentalAPI"!==t&&e.logger.debug("[tim] ".concat(t," with params"),i),"getUserStatus"==t&&(i.userIDList=Dt(i.userIDList)),o.t0=t,o.next="logout"===o.t0?14:"login"===o.t0||"updateMyProfile"===o.t0?17:20;break;case 14:return o.next=16,this.logout(r);case 16:case 19:return o.abrupt("break",22);case 17:return o.next=19,this[t](i,r);case 20:return o.next=22,this.timFunction(t,i,r);case 22:return o.prev=22,r.delete(),o.finish(22);case 25:case"end":return o.stop()}var a}),o,this,[[0,,22,25]])})))}},{key:"login",value:function(t,n){return Ut(this,void 0,void 0,f().mark((function r(){var o,i,a,s,u;return f().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return o=Object.assign({},t),i=o.sdkAppId,a=o.userId,s=o.userSig,u=o.testEnv,e.logger.debug("[tim] login with params",i,a),this.tim||(e.tim?(this.tim=e.tim,this.isExternalIncomingTim=!0):(this.tim=Ft.create({SDKAppID:i,testEnv:u}),e.tim=this.tim,this.isExternalIncomingTim=!1),this.bindTIMEvent()),r.prev=3,r.next=6,this.chatLoginManager.login({sdkAppId:i,userId:a,userSig:s,testEnv:u,chat:this.tim});case 6:n.onSuccess(null),r.next=12;break;case 9:r.prev=9,r.t0=r.catch(3),n.onError(r.t0.code||-1,r.t0.message);case 12:case"end":return r.stop()}}),r,this,[[3,9]])})))}},{key:"logout",value:function(t){return Ut(this,void 0,void 0,f().mark((function n(){return f().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(e.logger.debug("[tim] logout. isExternalIncomingTim: ",this.isExternalIncomingTim),!this.isExternalIncomingTim){n.next=6;break}e.tim=this.tim=null,t.onSuccess(null),n.next=17;break;case 6:return n.prev=6,n.next=9,this.chatLoginManager.logout();case 9:this.unbindTIMEvent(),e.tim=this.tim=null,t.onSuccess(null),n.next=17;break;case 14:n.prev=14,n.t0=n.catch(6),t.onError(n.t0.code||-1,n.t0.message);case 17:case"end":return n.stop()}}),n,this,[[6,14]])})))}},{key:"updateMyProfile",value:function(e,t){return Ut(this,void 0,void 0,f().mark((function n(){var r,o,i;return f().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=Object.assign({},e),o=r.nick,i=r.avatar,n.prev=1,n.next=4,this.tim.updateMyProfile({nick:o,avatar:i,gender:Ft.TYPES.GENDER_UNKNOWN,allowType:Ft.TYPES.ALLOW_TYPE_ALLOW_ANY});case 4:t.onSuccess(null),n.next=10;break;case 7:n.prev=7,n.t0=n.catch(1),t.onError(n.t0.code||-1,n.t0.message);case 10:case"end":return n.stop()}}),n,this,[[1,7]])})))}},{key:"timFunction",value:function(t,n,r){return Ut(this,void 0,void 0,f().mark((function o(){var i,a,s,u;return f().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(o.prev=0,s=null,!(n instanceof Array)){o.next=8;break}return o.next=5,(u=this.tim)[t].apply(u,h(n));case 5:s=o.sent,o.next=11;break;case 8:return o.next=10,this.tim[t](n);case 10:s=o.sent;case 11:"callExperimentalAPI"!==t&&e.logger.info("[tim] call ".concat(t," success")),"invite"!==t&&"inviteInGroup"!==t&&"modifyInvitation"!==t||(s=(null===(a=null===(i=null==s?void 0:s.data)||void 0===i?void 0:i.message)||void 0===a?void 0:a.payload)||{data:""}),this.handleTimFunctionResponse(t,s.data,r),o.next=20;break;case 16:o.prev=16,o.t0=o.catch(0),e.logger.warn("[tim] ".concat(t," error:"),o.t0),r.onError(o.t0.code||-1,o.t0.message);case 20:case"end":return o.stop()}}),o,this,[[0,16]])})))}},{key:"handleTimFunctionResponse",value:function(e,t,n){$t.includes(e)&&t?"string"==typeof t?n.onSuccess({response:t}):n.onSuccess({response:JSON.stringify(t)}):n.onSuccess(t)}},{key:"onKickedOut",value:function(e){var t,n;switch(e.data.type){case Ft.TYPES.KICKED_OUT_MULT_ACCOUNT:case Ft.TYPES.KICKED_OUT_MULT_DEVICE:case Ft.TYPES.KICKED_OUT_REST_API:null===(t=this.nativeObserver)||void 0===t||t.onJSEvent("onKickedOffline",{});break;case Ft.TYPES.KICKED_OUT_USERSIG_EXPIRED:null===(n=this.nativeObserver)||void 0===n||n.onJSEvent("onUserSigExpired",{})}}},{key:"onNetStateChange",value:function(e){var t,n;switch(e.data.state){case Ft.TYPES.NET_STATE_CONNECTED:null===(t=this.nativeObserver)||void 0===t||t.onJSEvent("onConnectSuccess",{});break;case Ft.TYPES.NET_STATE_DISCONNECTED:null===(n=this.nativeObserver)||void 0===n||n.onJSEvent("onConnectFailed",{})}}},{key:"onRoomCustomDataReceived",value:function(e){var t;null===(t=this.nativeObserver)||void 0===t||t.onJSEvent("onRoomCustomDataReceived",e)}},{key:"onError",value:function(e){console.error("".concat(TIMService.logPrefix," onError error:"),e)}},{key:"onServerConfigUpdated",value:function(e){var t;null===(t=this.nativeObserver)||void 0===t||t.onJSEvent("onServerConfigUpdated",JSON.stringify(null==e?void 0:e.data)||"")}},{key:"onNewMessageReceived",value:function(e){var t;null===(t=this.nativeObserver)||void 0===t||t.onJSEvent("onNewMessageReceived",JSON.stringify(null==e?void 0:e.data)||"")}},{key:"onNewInvitationReceived",value:function(e){var t;null===(t=this.nativeObserver)||void 0===t||t.onJSEvent("onNewInvitationReceived",(null==e?void 0:e.data)||{})}},{key:"onInviteeAccepted",value:function(e){var t;null===(t=this.nativeObserver)||void 0===t||t.onJSEvent("onInviteeAccepted",(null==e?void 0:e.data)||{})}},{key:"onInviteeRejected",value:function(e){var t;null===(t=this.nativeObserver)||void 0===t||t.onJSEvent("onInviteeRejected",(null==e?void 0:e.data)||{})}},{key:"onInvitationCancelled",value:function(e){var t;null===(t=this.nativeObserver)||void 0===t||t.onJSEvent("onInvitationCancelled",(null==e?void 0:e.data)||{})}},{key:"onInvitationTimeout",value:function(e){var t;null===(t=this.nativeObserver)||void 0===t||t.onJSEvent("onInvitationTimeout",(null==e?void 0:e.data)||{})}},{key:"bindTIMEvent",value:function(){var e,t,n,r,o,i,a,s,u,c,l;null===(e=this.tim)||void 0===e||e.on(Ft.EVENT.ERROR,this.onError),null===(t=this.tim)||void 0===t||t.on(Ft.EVENT.KICKED_OUT,this.onKickedOut),null===(n=this.tim)||void 0===n||n.on(Ft.EVENT.NET_STATE_CHANGE,this.onNetStateChange),null===(r=this.tim)||void 0===r||r.on(Ft.EVENT.ROOM_CUSTOM_DATA_RECEIVED,this.onRoomCustomDataReceived),null===(o=this.tim)||void 0===o||o.on(Ft.EVENT.SERVER_CONFIG_UPDATED,this.onServerConfigUpdated),null===(i=this.tim)||void 0===i||i.on(Ft.EVENT.MESSAGE_RECEIVED,this.onNewMessageReceived),null===(a=this.tim)||void 0===a||a.addSignalingListener(jt.NEW_INVITATION_RECEIVED,this.onNewInvitationReceived),null===(s=this.tim)||void 0===s||s.addSignalingListener(jt.INVITEE_ACCEPTED,this.onInviteeAccepted),null===(u=this.tim)||void 0===u||u.addSignalingListener(jt.INVITEE_REJECTED,this.onInviteeRejected),null===(c=this.tim)||void 0===c||c.addSignalingListener(jt.INVITATION_CANCELLED,this.onInvitationCancelled),null===(l=this.tim)||void 0===l||l.addSignalingListener(jt.INVITATION_TIMEOUT,this.onInvitationTimeout)}},{key:"unbindTIMEvent",value:function(){var e,t,n,r,o,i,a,s,u,c,l;null===(e=this.tim)||void 0===e||e.off(Ft.EVENT.ERROR,this.onError),null===(t=this.tim)||void 0===t||t.off(Ft.EVENT.KICKED_OUT,this.onKickedOut),null===(n=this.tim)||void 0===n||n.off(Ft.EVENT.NET_STATE_CHANGE,this.onNetStateChange),null===(r=this.tim)||void 0===r||r.off(Ft.EVENT.ROOM_CUSTOM_DATA_RECEIVED,this.onRoomCustomDataReceived),null===(o=this.tim)||void 0===o||o.off(Ft.EVENT.SERVER_CONFIG_UPDATED,this.onServerConfigUpdated),null===(i=this.tim)||void 0===i||i.off(Ft.EVENT.MESSAGE_RECEIVED,this.onNewMessageReceived),null===(a=this.tim)||void 0===a||a.removeSignalingListener(jt.NEW_INVITATION_RECEIVED,this.onNewInvitationReceived),null===(s=this.tim)||void 0===s||s.removeSignalingListener(jt.INVITEE_ACCEPTED,this.onInviteeAccepted),null===(u=this.tim)||void 0===u||u.removeSignalingListener(jt.INVITEE_REJECTED,this.onInviteeRejected),null===(c=this.tim)||void 0===c||c.removeSignalingListener(jt.INVITATION_CANCELLED,this.onInvitationCancelled),null===(l=this.tim)||void 0===l||l.removeSignalingListener(jt.INVITATION_TIMEOUT,this.onInvitationTimeout)}}],[{key:"getSDKVersion",value:function(){return Ft.VERSION}}])}();qt.logPrefix="[JSTim]",e.JSTim=qt;var Bt=e.TRTCDefine.TRTCVideoResolutionMode;function Wt(e){return"string"==typeof e?e.split(",").length>1?e.split(",").map((function(e){return document.getElementById(e)})).filter((function(e){return Boolean(e)})):Gt?document.getElementById(e):e:e}function Qt(e,t){var n=t;return"startLocalPreview"===e&&(1===n.length&&(n[0]=Wt(n[0])),2===n.length&&(n[1]=Wt(n[1]))),"updateLocalView"!==e&&"startScreenCapture"!==e||(n[0]=Wt(n[0])),"startRemoteView"!==e&&"updateRemoteView"!==e||(n[1]=Wt(n[1])),n}function Jt(t,n){var r=n;if("enterRoom"===t&&e.TRTCDefine.TRTCParams&&n instanceof Array&&n.length>0&&(r[0]=new e.TRTCDefine.TRTCParams(n[0].sdkAppId,n[0].userId,n[0].userSig,n[0].roomId,n[0].strRoomId,n[0].role)),"setVideoEncoderParam"===t&&e.TRTCDefine.TRTCVideoEncParam&&n instanceof Array&&n.length>0&&(r[0]=new e.TRTCDefine.TRTCVideoEncParam(n[0].videoResolution,Bt.TRTCVideoResolutionModeLandscape,n[0].videoFps,n[0].videoBitrate,n[0].minVideoBitrate)),"selectScreenCaptureTarget"===t&&e.TRTCDefine.TRTCScreenCaptureSourceInfo&&e.TRTCDefine.TRTCScreenCaptureProperty&&n instanceof Array&&3===n.length&&e.tempResult.screenSharingTargetList&&e.tempResult.screenSharingTargetList.length>0){var o=e.tempResult.screenSharingTargetList.filter((function(e){return e.sourceId===n[0].sourceId}));o.length>0&&(r[0]=o[0],r[1]=new e.TRTCDefine.Rect(n[1].left,n[1].top,n[1].right,n[1].bottom),r[2]=new e.TRTCDefine.TRTCScreenCaptureProperty(n[2].enableCaptureMouse,n[2].enableHighLight,n[2].enableHighPerformance,n[2].highLightColor,n[2].highLightWidth,n[2].enableCaptureChildWindow))}return"startScreenCapture"===t&&e.TRTCDefine.TRTCVideoEncParam&&n instanceof Array&&3===n.length&&(r[2]=new e.TRTCDefine.TRTCVideoEncParam(n[2].videoResolution,n[2].resMode,n[2].videoFps,n[2].videoBitrate,n[2].minVideoBitrate,n[2].enableAdjustRes)),"enableSmallVideoStream"===t&&e.TRTCDefine.TRTCVideoEncParam&&n instanceof Array&&2===n.length&&(r[1]=new e.TRTCDefine.TRTCVideoEncParam(n[1].videoResolution,n[1].resMode,n[1].videoFps,n[1].videoBitrate,n[1].minVideoBitrate,!1)),r}function Ht(t,n){"getScreenCaptureSources"===t&&(e.tempResult.screenSharingTargetList=n)}Ut=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(t){i(t)}}function s(e){try{u(r.throw(e))}catch(t){i(t)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))};var Yt=e.TRTCCloud,Gt=e.currentFrameWork===e.FRAMEWORK.ELECTRON,Kt=function(){function t(e){c(this,t),this.trtcCloud=e?Yt.getTRTCShareInstance():Yt.getTRTCShareInstance().createSubCloud(),this.isMainTRTCCloud=e,this.nativeObserver=null,this.onError=this.onError.bind(this),this.onWarning=this.onWarning.bind(this),this.onEnterRoom=this.onEnterRoom.bind(this),this.onExitRoom=this.onExitRoom.bind(this),this.onSwitchRole=this.onSwitchRole.bind(this),this.onUserVideoAvailable=this.onUserVideoAvailable.bind(this),this.onUserSubStreamAvailable=this.onUserSubStreamAvailable.bind(this),this.onUserAudioAvailable=this.onUserAudioAvailable.bind(this),this.onScreenCapturePaused=this.onScreenCapturePaused.bind(this),this.onScreenCaptureResumed=this.onScreenCaptureResumed.bind(this),this.onScreenCaptureStopped=this.onScreenCaptureStopped.bind(this),this.onFirstVideoFrame=this.onFirstVideoFrame.bind(this),this.onRemoteUserEnterRoom=this.onRemoteUserEnterRoom.bind(this),this.onRemoteUserLeaveRoom=this.onRemoteUserLeaveRoom.bind(this),this.onUserVoiceVolume=this.onUserVoiceVolume.bind(this),this.onNetworkQuality=this.onNetworkQuality.bind(this),this.onStatistics=this.onStatistics.bind(this),this.onMicDidReady=this.onMicDidReady.bind(this),this.onCameraDidReady=this.onCameraDidReady.bind(this),this.onSendFirstLocalAudioFrame=this.onSendFirstLocalAudioFrame.bind(this),this.onSendFirstLocalVideoFrame=this.onSendFirstLocalVideoFrame.bind(this),this.onReceiveSEIMessage=this.onReceiveSEIMessage.bind(this),this.onConnectionLost=this.onConnectionLost.bind(this),this.onConnectionRecovery=this.onConnectionRecovery.bind(this),this.bindTRTCEvent()}return d(t,[{key:"destroyTRTC",value:function(){this.unbindTRTCEvent(),this.isMainTRTCCloud||this.trtcCloud.destroy()}},{key:"getTRTCCloud",value:function(){return this.trtcCloud}},{key:"bindObserver",value:function(e){this.nativeObserver=e}},{key:"unBindObserver",value:function(){this.nativeObserver&&this.nativeObserver.delete(),this.nativeObserver=null}},{key:"callJS",value:function(t,n,r){return Ut(this,void 0,void 0,f().mark((function o(){var i,a,s,u,c,l;return f().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(o.prev=0,i=Dt(n),a=Qt(t,i),a=Gt?Jt(t,a):a,e.logger.debug("[trtcCloud] ".concat(t," params"),a,g(a)),s=null,!(a instanceof Array)){o.next=12;break}return o.next=9,(u=this.trtcCloud)[t].apply(u,h(a));case 9:s=o.sent,o.next=15;break;case 12:return o.next=14,this.trtcCloud[t](a);case 14:s=o.sent;case 15:e.logger.info("[trtcCloud] ".concat(t," success")),Gt&&Ht(t,s),r&&r.onSuccess(s),o.next=27;break;case 20:o.prev=20,o.t0=o.catch(0),e.logger&&e.logger.warn("[trtcCloud] ".concat(t," error"),o.t0),c=o.t0&&o.t0.code,l=o.t0&&o.t0.message,"startScreenShare"===t&&(c=o.t0&&o.t0.extraCode,l=JSON.stringify({name:o.t0.originError.name,message:l})),r&&r.onError(c,l);case 27:r.delete();case 28:case"end":return o.stop()}}),o,this,[[0,20]])})))}},{key:"onError",value:function(t,n){var r;e.logger.warn("[trtcCloud] onError",t,n),null===(r=this.nativeObserver)||void 0===r||r.onJSEvent("onError",{errCode:t,errMsg:n})}},{key:"onWarning",value:function(e,t,n){var r;null===(r=this.nativeObserver)||void 0===r||r.onJSEvent("onWarning",{warningCode:e,warningMsg:t,extraInfo:JSON.stringify({extraInfo:n})})}},{key:"onEnterRoom",value:function(e){var t;null===(t=this.nativeObserver)||void 0===t||t.onJSEvent("onEnterRoom",{result:e})}},{key:"onExitRoom",value:function(e){var t;null===(t=this.nativeObserver)||void 0===t||t.onJSEvent("onExitRoom",{reason:e})}},{key:"onSwitchRole",value:function(e,t){var n;null===(n=this.nativeObserver)||void 0===n||n.onJSEvent("onSwitchRole",{errorCode:e,errorMessage:t})}},{key:"onUserVideoAvailable",value:function(e,t){var n;null===(n=this.nativeObserver)||void 0===n||n.onJSEvent("onUserVideoAvailable",{userId:e,available:Boolean(t)})}},{key:"onUserSubStreamAvailable",value:function(e,t){var n;null===(n=this.nativeObserver)||void 0===n||n.onJSEvent("onUserSubStreamAvailable",{userId:e,available:Boolean(t)})}},{key:"onUserAudioAvailable",value:function(e,t){var n;null===(n=this.nativeObserver)||void 0===n||n.onJSEvent("onUserAudioAvailable",{userId:e,available:Boolean(t)})}},{key:"onFirstVideoFrame",value:function(e,t,n,r){var o;null===(o=this.nativeObserver)||void 0===o||o.onJSEvent("onFirstVideoFrame",{userId:e,streamType:t,width:n,height:r})}},{key:"onRemoteUserEnterRoom",value:function(e){var t;null===(t=this.nativeObserver)||void 0===t||t.onJSEvent("onRemoteUserEnterRoom",{userId:e})}},{key:"onRemoteUserLeaveRoom",value:function(e,t){var n;null===(n=this.nativeObserver)||void 0===n||n.onJSEvent("onRemoteUserLeaveRoom",{userId:e,reason:t})}},{key:"onUserVoiceVolume",value:function(e,t,n){var r;null===(r=this.nativeObserver)||void 0===r||r.onJSEvent("onUserVoiceVolume",{userVolumes:e,userVolumesCount:t,totalVolume:n})}},{key:"onNetworkQuality",value:function(e,t){var n;null===(n=this.nativeObserver)||void 0===n||n.onJSEvent("onNetworkQuality",{localQuality:e,remoteQuality:t,remoteQualityCount:t.length})}},{key:"onStatistics",value:function(e){var t;null===(t=this.nativeObserver)||void 0===t||t.onJSEvent("onStatistics",{statistics:e})}},{key:"onMicDidReady",value:function(){var e;null===(e=this.nativeObserver)||void 0===e||e.onJSEvent("onMicDidReady",{})}},{key:"onCameraDidReady",value:function(){var e;null===(e=this.nativeObserver)||void 0===e||e.onJSEvent("onCameraDidReady",{})}},{key:"onScreenCapturePaused",value:function(e){var t;null===(t=this.nativeObserver)||void 0===t||t.onJSEvent("onScreenCapturePaused",{reason:e})}},{key:"onScreenCaptureResumed",value:function(e){var t;null===(t=this.nativeObserver)||void 0===t||t.onJSEvent("onScreenCaptureResumed",{reason:e})}},{key:"onScreenCaptureStopped",value:function(e){var t;null===(t=this.nativeObserver)||void 0===t||t.onJSEvent("onScreenCaptureStopped",{reason:e})}},{key:"onSendFirstLocalAudioFrame",value:function(){var e;null===(e=this.nativeObserver)||void 0===e||e.onJSEvent("onSendFirstLocalAudioFrame",{})}},{key:"onSendFirstLocalVideoFrame",value:function(e){var t;null===(t=this.nativeObserver)||void 0===t||t.onJSEvent("onSendFirstLocalVideoFrame",{streamType:e})}},{key:"onReceiveSEIMessage",value:function(t,n){var r;try{var o=JSON.parse(n);null===(r=this.nativeObserver)||void 0===r||r.onJSEvent("onReceiveSEIMessage",{message:JSON.stringify(Object.assign(Object.assign({},o),{userId:t,data:o.stringData}))})}catch(VN){e.logger&&e.logger.warn("[trtcCloud] onReceiveSEIMessage error",VN)}}},{key:"onConnectionLost",value:function(){var e;null===(e=this.nativeObserver)||void 0===e||e.onJSEvent("onConnectionLost",{})}},{key:"onConnectionRecovery",value:function(){var e;null===(e=this.nativeObserver)||void 0===e||e.onJSEvent("onConnectionRecovery",{})}},{key:"bindTRTCEvent",value:function(){this.trtcCloud.on("onError",this.onError),this.trtcCloud.on("onWarning",this.onWarning),this.trtcCloud.on("onEnterRoom",this.onEnterRoom),this.trtcCloud.on("onExitRoom",this.onExitRoom),this.trtcCloud.on("onSwitchRole",this.onSwitchRole),this.trtcCloud.on("onUserVideoAvailable",this.onUserVideoAvailable),this.trtcCloud.on("onUserSubStreamAvailable",this.onUserSubStreamAvailable),this.trtcCloud.on("onUserAudioAvailable",this.onUserAudioAvailable),this.trtcCloud.on("onScreenCapturePaused",this.onScreenCapturePaused),this.trtcCloud.on("onScreenCaptureResumed",this.onScreenCaptureResumed),this.trtcCloud.on("onScreenCaptureStopped",this.onScreenCaptureStopped),this.trtcCloud.on("onFirstVideoFrame",this.onFirstVideoFrame),this.trtcCloud.on("onRemoteUserEnterRoom",this.onRemoteUserEnterRoom),this.trtcCloud.on("onRemoteUserLeaveRoom",this.onRemoteUserLeaveRoom),this.trtcCloud.on("onUserVoiceVolume",this.onUserVoiceVolume),this.trtcCloud.on("onNetworkQuality",this.onNetworkQuality),this.trtcCloud.on("onStatistics",this.onStatistics),this.trtcCloud.on("onMicDidReady",this.onMicDidReady),this.trtcCloud.on("onCameraDidReady",this.onCameraDidReady),this.trtcCloud.on("onSendFirstLocalAudioFrame",this.onSendFirstLocalAudioFrame),this.trtcCloud.on("onSendFirstLocalVideoFrame",this.onSendFirstLocalVideoFrame),this.trtcCloud.on("onRecvSEIMsg",this.onReceiveSEIMessage),this.trtcCloud.on("onConnectionLost",this.onConnectionLost),this.trtcCloud.on("onConnectionRecovery",this.onConnectionRecovery)}},{key:"unbindTRTCEvent",value:function(){this.trtcCloud.off("onError",this.onError),this.trtcCloud.off("onWarning",this.onWarning),this.trtcCloud.off("onEnterRoom",this.onEnterRoom),this.trtcCloud.off("onExitRoom",this.onExitRoom),this.trtcCloud.off("onSwitchRole",this.onSwitchRole),this.trtcCloud.off("onUserVideoAvailable",this.onUserVideoAvailable),this.trtcCloud.off("onUserSubStreamAvailable",this.onUserSubStreamAvailable),this.trtcCloud.off("onUserAudioAvailable",this.onUserAudioAvailable),this.trtcCloud.off("onScreenCapturePaused",this.onScreenCapturePaused),this.trtcCloud.off("onScreenCaptureResumed",this.onScreenCaptureResumed),this.trtcCloud.off("onScreenCaptureStopped",this.onScreenCaptureStopped),this.trtcCloud.off("onFirstVideoFrame",this.onFirstVideoFrame),this.trtcCloud.off("onRemoteUserEnterRoom",this.onRemoteUserEnterRoom),this.trtcCloud.off("onRemoteUserLeaveRoom",this.onRemoteUserLeaveRoom),this.trtcCloud.off("onUserVoiceVolume",this.onUserVoiceVolume),this.trtcCloud.off("onNetworkQuality",this.onNetworkQuality),this.trtcCloud.off("onStatistics",this.onStatistics),this.trtcCloud.off("onMicDidReady",this.onMicDidReady),this.trtcCloud.off("onCameraDidReady",this.onCameraDidReady),this.trtcCloud.off("onSendFirstLocalAudioFrame",this.onSendFirstLocalAudioFrame),this.trtcCloud.off("onSendFirstLocalVideoFrame",this.onSendFirstLocalVideoFrame),this.trtcCloud.off("onRecvSEIMsg",this.onReceiveSEIMessage),this.trtcCloud.off("onConnectionLost",this.onConnectionLost),this.trtcCloud.off("onConnectionRecovery",this.onConnectionRecovery)}}],[{key:"createTRTC",value:function(e){return new t(e)}},{key:"getSDKVersion",value:function(){return Yt.getTRTCShareInstance().getSDKVersion()}},{key:"log",value:function(n){return Ut(this,void 0,void 0,f().mark((function r(){var o,i,a;return f().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if("object"===g(o=Dt(n))){r.next=3;break}return r.abrupt("return");case 3:if(i="[".concat(o.file,": ").concat(o.line,"] ").concat(o.message),!e.isElectron){r.next=11;break}return a={api:"TuikitLog",params:o},e.logger.info(i),r.next=9,t.callExperimentalAPI(JSON.stringify(a));case 9:r.next=12;break;case 11:2===o.level?e.logger.error(i):console.log("[tuikit engine wasm] ["+o.file+":"+o.line+"] "+o.message);case 12:case"end":return r.stop()}}),r)})))}},{key:"callExperimentalAPI",value:function(e){return Ut(this,void 0,void 0,f().mark((function t(){var n;return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=Yt.getTRTCShareInstance(),t.next=3,n.callExperimentalAPI(e);case 3:case"end":return t.stop()}}),t)})))}}])}();return e.JSTRTC=Kt,e.ready}),LO={};!function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}function o(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function i(e,t,r,i,a){if("function"!=typeof r)throw new TypeError("The listener must be a function");var s=new o(r,i||e,a),u=n?n+t:t;return e._events[u]?e._events[u].fn?e._events[u]=[e._events[u],s]:e._events[u].push(s):(e._events[u]=s,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),s.prototype.eventNames=function(){var e,r,o=[];if(0===this._eventsCount)return o;for(r in e=this._events)t.call(e,r)&&o.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},s.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var o=0,i=r.length,a=new Array(i);o<i;o++)a[o]=r[o].fn;return a},s.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},s.prototype.emit=function(e,t,r,o,i,a){var s=n?n+e:e;if(!this._events[s])return!1;var u,c,l=this._events[s],d=arguments.length;if(l.fn){switch(l.once&&this.removeListener(e,l.fn,void 0,!0),d){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,t),!0;case 3:return l.fn.call(l.context,t,r),!0;case 4:return l.fn.call(l.context,t,r,o),!0;case 5:return l.fn.call(l.context,t,r,o,i),!0;case 6:return l.fn.call(l.context,t,r,o,i,a),!0}for(c=1,u=new Array(d-1);c<d;c++)u[c-1]=arguments[c];l.fn.apply(l.context,u)}else{var f,v=l.length;for(c=0;c<v;c++)switch(l[c].once&&this.removeListener(e,l[c].fn,void 0,!0),d){case 1:l[c].fn.call(l[c].context);break;case 2:l[c].fn.call(l[c].context,t);break;case 3:l[c].fn.call(l[c].context,t,r);break;case 4:l[c].fn.call(l[c].context,t,r,o);break;default:if(!u)for(f=1,u=new Array(d-1);f<d;f++)u[f-1]=arguments[f];l[c].fn.apply(l[c].context,u)}}return!0},s.prototype.on=function(e,t,n){return i(this,e,t,n,!1)},s.prototype.once=function(e,t,n){return i(this,e,t,n,!0)},s.prototype.removeListener=function(e,t,r,o){var i=n?n+e:e;if(!this._events[i])return this;if(!t)return a(this,i),this;var s=this._events[i];if(s.fn)s.fn!==t||o&&!s.once||r&&s.context!==r||a(this,i);else{for(var u=0,c=[],l=s.length;u<l;u++)(s[u].fn!==t||o&&!s[u].once||r&&s[u].context!==r)&&c.push(s[u]);c.length?this._events[i]=1===c.length?c[0]:c:a(this,i)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&a(this,t)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s}({get exports(){return LO},set exports(e){LO=e}});var VO,xO,FO,jO,$O,qO,BO,WO,QO,JO,HO,YO,GO,KO,zO,XO,ZO,ek,tk,nk,rk,ok,ik,ak,sk,uk,ck,lk,dk,fk=LO;e.TUIErrorCode=void 0,(VO=e.TUIErrorCode||(e.TUIErrorCode={}))[VO.ERR_SUCC=0]="ERR_SUCC",VO[VO.ERR_FAILED=-1]="ERR_FAILED",VO[VO.ERR_FREQ_LIMIT=-2]="ERR_FREQ_LIMIT",VO[VO.ERR_REPEAT_OPERATION=-3]="ERR_REPEAT_OPERATION",VO[VO.ERR_SDKAPPID_NOT_FOUND=-1e3]="ERR_SDKAPPID_NOT_FOUND",VO[VO.ERR_INVALID_PARAMETER=-1001]="ERR_INVALID_PARAMETER",VO[VO.ERR_SDK_NOT_INITIALIZED=-1002]="ERR_SDK_NOT_INITIALIZED",VO[VO.ERR_PERMISSION_DENIED=-1003]="ERR_PERMISSION_DENIED",VO[VO.ERR_REQUIRE_PAYMENT=-1004]="ERR_REQUIRE_PAYMENT",VO[VO.ERR_CAMERA_START_FAILED=-1100]="ERR_CAMERA_START_FAILED",VO[VO.ERR_CAMERA_NOT_AUTHORIZED=-1101]="ERR_CAMERA_NOT_AUTHORIZED",VO[VO.ERR_CAMERA_OCCUPIED=-1102]="ERR_CAMERA_OCCUPIED",VO[VO.ERR_CAMERA_DEVICE_EMPTY=-1103]="ERR_CAMERA_DEVICE_EMPTY",VO[VO.ERR_MICROPHONE_START_FAILED=-1104]="ERR_MICROPHONE_START_FAILED",VO[VO.ERR_MICROPHONE_NOT_AUTHORIZED=-1105]="ERR_MICROPHONE_NOT_AUTHORIZED",VO[VO.ERR_MICROPHONE_OCCUPIED=-1106]="ERR_MICROPHONE_OCCUPIED",VO[VO.ERR_MICROPHONE_DEVICE_EMPTY=-1107]="ERR_MICROPHONE_DEVICE_EMPTY",VO[VO.ERR_GET_SCREEN_SHARING_TARGET_FAILED=-1108]="ERR_GET_SCREEN_SHARING_TARGET_FAILED",VO[VO.ERR_START_SCREEN_SHARING_FAILED=-1109]="ERR_START_SCREEN_SHARING_FAILED",VO[VO.ERR_ALREADY_ROOM_OWNER=-1200]="ERR_ALREADY_ROOM_OWNER",VO[VO.ERR_IM_ATTRIBUTE_WRITE_CONFLICT=-1201]="ERR_IM_ATTRIBUTE_WRITE_CONFLICT",VO[VO.ERR_ALREADY_ROOM_ENTER=-1202]="ERR_ALREADY_ROOM_ENTER",VO[VO.ERR_DESTROY_ROOM_NO_PERMISSION=-1203]="ERR_DESTROY_ROOM_NO_PERMISSION",VO[VO.ERR_LIVE_REQUEST_SERVER_TIMEOUT=-1300]="ERR_LIVE_REQUEST_SERVER_TIMEOUT",VO[VO.ERR_LIVE_SERVER_PROCESS_FAILED=-1301]="ERR_LIVE_SERVER_PROCESS_FAILED",VO[VO.ERR_LIVE_DISCONNECTED=-1302]="ERR_LIVE_DISCONNECTED",VO[VO.ERR_LIVE_NO_AVAILABLE_HEVC_DECODERS=-1303]="ERR_LIVE_NO_AVAILABLE_HEVC_DECODERS",VO[VO.ERR_OPERATION_INVALID_BEFORE_ENTER_ROOM=-2101]="ERR_OPERATION_INVALID_BEFORE_ENTER_ROOM",VO[VO.ERR_EXIT_NOT_SUPPORTED_FOR_ROOM_OWNER=-2102]="ERR_EXIT_NOT_SUPPORTED_FOR_ROOM_OWNER",VO[VO.ERR_OPERATION_NOT_SUPPORTED_IN_CURRENT_ROOM_TYPE=-2103]="ERR_OPERATION_NOT_SUPPORTED_IN_CURRENT_ROOM_TYPE",VO[VO.ERR_ROOM_ID_INVALID=-2105]="ERR_ROOM_ID_INVALID",VO[VO.ERR_ROOM_NAME_INVALID=-2107]="ERR_ROOM_NAME_INVALID",VO[VO.ERR_ALREADY_IN_OTHER_ROOM=-2108]="ERR_ALREADY_IN_OTHER_ROOM",VO[VO.ERR_USER_NOT_EXIST=-2200]="ERR_USER_NOT_EXIST",VO[VO.ERR_NEED_OWNER_PERMISSION=-2300]="ERR_NEED_OWNER_PERMISSION",VO[VO.ERR_NEED_ADMIN_PERMISSION=-2301]="ERR_NEED_ADMIN_PERMISSION",VO[VO.ERR_REQUEST_NO_PERMISSION=-2310]="ERR_REQUEST_NO_PERMISSION",VO[VO.ERR_REQUEST_ID_INVALID=-2311]="ERR_REQUEST_ID_INVALID",VO[VO.ERR_REQUEST_ID_REPEAT=-2312]="ERR_REQUEST_ID_REPEAT",VO[VO.ERR_MAX_SEAT_COUNT_LIMIT=-2340]="ERR_MAX_SEAT_COUNT_LIMIT",VO[VO.ERR_SEAT_INDEX_NOT_EXIST=-2344]="ERR_SEAT_INDEX_NOT_EXIST",VO[VO.ERR_OPEN_MICROPHONE_NEED_SEAT_UNLOCK=-2360]="ERR_OPEN_MICROPHONE_NEED_SEAT_UNLOCK",VO[VO.ERR_OPEN_MICROPHONE_NEED_PERMISSION_FROM_ADMIN=-2361]="ERR_OPEN_MICROPHONE_NEED_PERMISSION_FROM_ADMIN",VO[VO.ERR_OPEN_CAMERA_NEED_SEAT_UNLOCK=-2370]="ERR_OPEN_CAMERA_NEED_SEAT_UNLOCK",VO[VO.ERR_OPEN_CAMERA_NEED_PERMISSION_FROM_ADMIN=-2371]="ERR_OPEN_CAMERA_NEED_PERMISSION_FROM_ADMIN",VO[VO.ERR_OPEN_SCREEN_SHARE_NEED_SEAT_UNLOCK=-2372]="ERR_OPEN_SCREEN_SHARE_NEED_SEAT_UNLOCK",VO[VO.ERR_OPEN_SCREEN_SHARE_NEED_PERMISSION_FROM_ADMIN=-2373]="ERR_OPEN_SCREEN_SHARE_NEED_PERMISSION_FROM_ADMIN",VO[VO.ERR_SEND_MESSAGE_DISABLED_FOR_ALL=-2380]="ERR_SEND_MESSAGE_DISABLED_FOR_ALL",VO[VO.ERR_SEND_MESSAGE_DISABLED_FOR_CURRENT=-2381]="ERR_SEND_MESSAGE_DISABLED_FOR_CURRENT",VO[VO.ERR_ROOM_ID_OCCUPIED=100003]="ERR_ROOM_ID_OCCUPIED",VO[VO.ERR_ROOM_ID_NOT_EXIST=100004]="ERR_ROOM_ID_NOT_EXIST",VO[VO.ERR_USER_NOT_ENTERED=100005]="ERR_USER_NOT_ENTERED",VO[VO.ERR_NEED_PASSWORD=100018]="ERR_NEED_PASSWORD",VO[VO.ERR_WRONG_PASSWORD=100019]="ERR_WRONG_PASSWORD",VO[VO.ERR_ROOM_USER_FULL=100008]="ERR_ROOM_USER_FULL",VO[VO.ERR_REQUEST_CONFLICT=100102]="ERR_REQUEST_CONFLICT",VO[VO.ERR_SEAT_OCCUPIED=100210]="ERR_SEAT_OCCUPIED",VO[VO.ERR_ALREADY_IN_SEAT=100203]="ERR_ALREADY_IN_SEAT",VO[VO.ERR_SEAT_LOCKED=100200]="ERR_SEAT_LOCKED",VO[VO.ERR_ALL_SEAT_OCCUPIED=100205]="ERR_ALL_SEAT_OCCUPIED",VO[VO.ERR_USER_NOT_IN_SEAT=100206]="ERR_USER_NOT_IN_SEAT",VO[VO.ERR_SEAT_NOT_SUPPORT_LINK_MIC=100211]="ERR_SEAT_NOT_SUPPORT_LINK_MIC",VO[VO.ERR_ROOM_ALREADY_CONNECTED=100401]="ERR_ROOM_ALREADY_CONNECTED",VO[VO.ERR_ROOM_CONNECTED_IN_OTHER=100403]="ERR_ROOM_CONNECTED_IN_OTHER",VO[VO.ERR_MAX_CONNECTED_COUNT_LIMIT=100404]="ERR_MAX_CONNECTED_COUNT_LIMIT",VO[VO.ERR_BATTLE_IN_RUNNING=100419]="ERR_BATTLE_IN_RUNNING",VO[VO.ERR_BATTLE_ID_NOT_EXIST=100411]="ERR_BATTLE_ID_NOT_EXIST",VO[VO.ERR_ROOM_BATTLEID_IN_OTHER=100415]="ERR_ROOM_BATTLEID_IN_OTHER",VO[VO.ERR_ROOM_METADATA_EXCEED_KEY_COUNT_LIMIT=100500]="ERR_ROOM_METADATA_EXCEED_KEY_COUNT_LIMIT",VO[VO.ERR_ROOM_METADATA_EXCEED_VALUE_SIZE_LIMIT=100501]="ERR_ROOM_METADATA_EXCEED_VALUE_SIZE_LIMIT",e.TUIRole=void 0,(xO=e.TUIRole||(e.TUIRole={}))[xO.kRoomOwner=0]="kRoomOwner",xO[xO.kAdministrator=1]="kAdministrator",xO[xO.kGeneralUser=2]="kGeneralUser",e.TUIVideoQuality=void 0,(FO=e.TUIVideoQuality||(e.TUIVideoQuality={}))[FO.kVideoQuality_360p=1]="kVideoQuality_360p",FO[FO.kVideoQuality_540p=2]="kVideoQuality_540p",FO[FO.kVideoQuality_720p=3]="kVideoQuality_720p",FO[FO.kVideoQuality_1080p=4]="kVideoQuality_1080p",e.TUIAudioQuality=void 0,(jO=e.TUIAudioQuality||(e.TUIAudioQuality={}))[jO.kAudioProfileSpeech=0]="kAudioProfileSpeech",jO[jO.kAudioProfileDefault=1]="kAudioProfileDefault",jO[jO.kAudioProfileMusic=2]="kAudioProfileMusic",e.TUIVideoStreamType=void 0,($O=e.TUIVideoStreamType||(e.TUIVideoStreamType={}))[$O.kCameraStream=0]="kCameraStream",$O[$O.kScreenStream=1]="kScreenStream",$O[$O.kCameraStreamLow=2]="kCameraStreamLow",e.TUINetworkQuality=void 0,(qO=e.TUINetworkQuality||(e.TUINetworkQuality={}))[qO.kQualityUnknown=0]="kQualityUnknown",qO[qO.kQualityExcellent=1]="kQualityExcellent",qO[qO.kQualityGood=2]="kQualityGood",qO[qO.kQualityPoor=3]="kQualityPoor",qO[qO.kQualityBad=4]="kQualityBad",qO[qO.kQualityVeryBad=5]="kQualityVeryBad",qO[qO.kQualityDown=6]="kQualityDown",e.TUIRoomType=void 0,(BO=e.TUIRoomType||(e.TUIRoomType={}))[BO.kConference=1]="kConference",BO[BO.kLive=2]="kLive",e.TUISeatMode=void 0,(WO=e.TUISeatMode||(e.TUISeatMode={}))[WO.kFreeToTake=1]="kFreeToTake",WO[WO.kApplyToTake=2]="kApplyToTake",e.TUIMediaDevice=void 0,(QO=e.TUIMediaDevice||(e.TUIMediaDevice={}))[QO.kMicrophone=1]="kMicrophone",QO[QO.kCamera=2]="kCamera",QO[QO.kScreen=3]="kScreen",e.TUICaptureSourceType=void 0,(JO=e.TUICaptureSourceType||(e.TUICaptureSourceType={}))[JO.kWindow=0]="kWindow",JO[JO.kScreen=1]="kScreen",e.TUIChangeReason=void 0,(HO=e.TUIChangeReason||(e.TUIChangeReason={}))[HO.kChangedBySelf=0]="kChangedBySelf",HO[HO.kChangedByAdmin=1]="kChangedByAdmin",e.TUIKickedOutOfRoomReason=void 0,(YO=e.TUIKickedOutOfRoomReason||(e.TUIKickedOutOfRoomReason={}))[YO.kKickedByAdmin=0]="kKickedByAdmin",YO[YO.kKickedByLoggedOnOtherDevice=1]="kKickedByLoggedOnOtherDevice",YO[YO.kKickedByServer=2]="kKickedByServer",YO[YO.kNetworkDisconnected=3]="kNetworkDisconnected",YO[YO.kJoinRoomStatusInvalidDuringOffline=4]="kJoinRoomStatusInvalidDuringOffline",YO[YO.kCountOfJoinedRoomsExceedLimit=5]="kCountOfJoinedRoomsExceedLimit",e.TUIRequestAction=void 0,(GO=e.TUIRequestAction||(e.TUIRequestAction={}))[GO.kInvalidAction=0]="kInvalidAction",GO[GO.kRequestToOpenRemoteCamera=1]="kRequestToOpenRemoteCamera",GO[GO.kRequestToOpenRemoteMicrophone=2]="kRequestToOpenRemoteMicrophone",GO[GO.kRequestToConnectOtherRoom=3]="kRequestToConnectOtherRoom",GO[GO.kRequestToTakeSeat=4]="kRequestToTakeSeat",GO[GO.kRequestRemoteUserOnSeat=5]="kRequestRemoteUserOnSeat",GO[GO.kApplyToAdminToOpenLocalCamera=6]="kApplyToAdminToOpenLocalCamera",GO[GO.kApplyToAdminToOpenLocalMicrophone=7]="kApplyToAdminToOpenLocalMicrophone",GO[GO.kApplyToAdminToOpenLocalScreenShare=8]="kApplyToAdminToOpenLocalScreenShare",e.TUIRequestCallbackType=void 0,(KO=e.TUIRequestCallbackType||(e.TUIRequestCallbackType={}))[KO.kRequestAccepted=0]="kRequestAccepted",KO[KO.kRequestRejected=1]="kRequestRejected",KO[KO.kRequestCancelled=2]="kRequestCancelled",KO[KO.kRequestTimeout=3]="kRequestTimeout",KO[KO.kRequestError=4]="kRequestError",e.TRTCRole=void 0,(zO=e.TRTCRole||(e.TRTCRole={}))[zO.kAnchor=0]="kAnchor",zO[zO.kAudience=1]="kAudience",e.TUIResolutionMode=void 0,(XO=e.TUIResolutionMode||(e.TUIResolutionMode={}))[XO.kResolutionMode_Landscape=0]="kResolutionMode_Landscape",XO[XO.kResolutionMode_Portrait=1]="kResolutionMode_Portrait",e.TUIRoomDismissedReason=void 0,(ZO=e.TUIRoomDismissedReason||(e.TUIRoomDismissedReason={}))[ZO.kByOwner=1]="kByOwner",ZO[ZO.kByServer=2]="kByServer",e.TUIMediaDeviceType=void 0,(ek=e.TUIMediaDeviceType||(e.TUIMediaDeviceType={}))[ek.kMediaDeviceTypeUnknown=-1]="kMediaDeviceTypeUnknown",ek[ek.kMediaDeviceTypeAudioInput=0]="kMediaDeviceTypeAudioInput",ek[ek.kMediaDeviceTypeAudioOutput=1]="kMediaDeviceTypeAudioOutput",ek[ek.kMediaDeviceTypeVideoCamera=2]="kMediaDeviceTypeVideoCamera",e.TUIMediaDeviceState=void 0,(tk=e.TUIMediaDeviceState||(e.TUIMediaDeviceState={}))[tk.kMediaDeviceStateAdd=0]="kMediaDeviceStateAdd",tk[tk.kMediaDeviceStateRemove=1]="kMediaDeviceStateRemove",tk[tk.kMediaDeviceStateActive=2]="kMediaDeviceStateActive",e.TUIAudioRoute=void 0,(nk=e.TUIAudioRoute||(e.TUIAudioRoute={}))[nk.kAudioRouteSpeakerphone=0]="kAudioRouteSpeakerphone",nk[nk.kAudioRouteEarpiece=1]="kAudioRouteEarpiece",e.TUIConferenceStatus=void 0,(rk=e.TUIConferenceStatus||(e.TUIConferenceStatus={}))[rk.kConferenceStatusNone=0]="kConferenceStatusNone",rk[rk.kConferenceStatusNotStarted=1]="kConferenceStatusNotStarted",rk[rk.kConferenceStatusRunning=2]="kConferenceStatusRunning",e.TUIConferenceCancelReason=void 0,(ok=e.TUIConferenceCancelReason||(e.TUIConferenceCancelReason={}))[ok.kConferenceCancelReasonCancelledByAdmin=0]="kConferenceCancelReasonCancelledByAdmin",ok[ok.kConferenceCancelReasonRemovedFromAttendees=1]="kConferenceCancelReasonRemovedFromAttendees",e.TUIInvitationStatus=void 0,(ik=e.TUIInvitationStatus||(e.TUIInvitationStatus={}))[ik.kNone=0]="kNone",ik[ik.kPending=1]="kPending",ik[ik.kTimeout=2]="kTimeout",ik[ik.kAccepted=3]="kAccepted",ik[ik.kRejected=4]="kRejected",e.TUIInvitationCode=void 0,(ak=e.TUIInvitationCode||(e.TUIInvitationCode={}))[ak.kSuccess=0]="kSuccess",ak[ak.kAlreadyInInvitationList=1]="kAlreadyInInvitationList",ak[ak.kAlreadyInConference=2]="kAlreadyInConference",e.TUIInvitationRejectedReason=void 0,(sk=e.TUIInvitationRejectedReason||(e.TUIInvitationRejectedReason={}))[sk.kRejectToEnter=0]="kRejectToEnter",sk[sk.kInOtherConference=1]="kInOtherConference",e.TUIRoomEvents=void 0,(uk=e.TUIRoomEvents||(e.TUIRoomEvents={})).onError="onError",uk.onKickedOutOfRoom="onKickedOutOfRoom",uk.onKickedOffLine="onKickedOffLine",uk.onUserSigExpired="onUserSigExpired",uk.onRoomDismissed="onRoomDismissed",uk.onRoomNameChanged="onRoomNameChanged",uk.onRoomSeatModeChanged="onRoomSeatModeChanged",uk.onRoomUserCountChanged="onRoomUserCountChanged",uk.onAllUserCameraDisableChanged="onAllUserCameraDisableChanged",uk.onAllUserMicrophoneDisableChanged="onAllUserMicrophoneDisableChanged",uk.onScreenShareForAllUserDisableChanged="onScreenShareForAllUserDisableChanged",uk.onSendMessageForAllUserDisableChanged="onSendMessageForAllUserDisableChanged",uk.onRoomMaxSeatCountChanged="onRoomMaxSeatCountChanged",uk.onRemoteUserEnterRoom="onRemoteUserEnterRoom",uk.onRemoteUserLeaveRoom="onRemoteUserLeaveRoom",uk.onUserInfoChanged="onUserInfoChanged",uk.onUserRoleChanged="onUserRoleChanged",uk.onUserVideoStateChanged="onUserVideoStateChanged",uk.onUserAudioStateChanged="onUserAudioStateChanged",uk.onSendMessageForUserDisableChanged="onSendMessageForUserDisableChanged",uk.onUserVoiceVolumeChanged="onUserVoiceVolumeChanged",uk.onUserNetworkQualityChanged="onUserNetworkQualityChanged",uk.onSeatListChanged="onSeatListChanged",uk.onKickedOffSeat="onKickedOffSeat",uk.onRequestReceived="onRequestReceived",uk.onRequestCancelled="onRequestCancelled",uk.onRequestProcessed="onRequestProcessed",uk.onReceiveTextMessage="onReceiveTextMessage",uk.onReceiveCustomMessage="onReceiveCustomMessage",uk.onDeviceChange="onDeviceChange",uk.onUserScreenCaptureStopped="onUserScreenCaptureStopped",e.TUIRoomDeviceMangerEvents=void 0,(ck=e.TUIRoomDeviceMangerEvents||(e.TUIRoomDeviceMangerEvents={})).onDeviceChanged="onDeviceChanged",ck.onTestMicVolume="onTestMicVolume",ck.onTestSpeakerVolume="onTestSpeakerVolume",e.TUIConferenceListManagerEvents=void 0,(lk=e.TUIConferenceListManagerEvents||(e.TUIConferenceListManagerEvents={})).onConferenceScheduled="onConferenceScheduled",lk.onConferenceWillStart="onConferenceWillStart",lk.onConferenceCancelled="onConferenceCancelled",lk.onConferenceInfoChanged="onConferenceInfoChanged",lk.onScheduleAttendeesChanged="onScheduleAttendeesChanged",lk.onConferenceStatusChanged="onConferenceStatusChanged",e.TUIConferenceInvitationManagerEvents=void 0,(dk=e.TUIConferenceInvitationManagerEvents||(e.TUIConferenceInvitationManagerEvents={})).onReceiveInvitation="onReceiveInvitation",dk.onInvitationHandledByOtherDevice="onInvitationHandledByOtherDevice",dk.onInvitationCancelled="onInvitationCancelled",dk.onInvitationAccepted="onInvitationAccepted",dk.onInvitationRejected="onInvitationRejected",dk.onInvitationTimeout="onInvitationTimeout",dk.onInvitationRevokedByAdmin="onInvitationRevokedByAdmin",dk.onInvitationAdded="onInvitationAdded",dk.onInvitationRemoved="onInvitationRemoved",dk.onInvitationStatusChanged="onInvitationStatusChanged";const vk=e=>"function"==typeof e,hk=e=>void 0===e,pk=e=>"string"==typeof e,gk=e=>"number"==typeof e;function mk(e){return Reflect.apply(Object.prototype.toString,e,[]).replace(/^\[object\s(\w+)\]$/,"$1").toLowerCase()}const yk=function(e){if(!e||"object"!=typeof e||"[object Object]"!=Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);if(null===t)return!0;const n=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Function.prototype.toString.call(n)===Function.prototype.toString.call(Object)};function Tk(e){if("string"!=typeof e)return e;let t;try{const n=JSON.parse(e);t="object"==typeof n&&n?n:e}catch(VN){t=e}return t}const Rk={[e.TUIRoomEvents.onError]:["code","message"],[e.TUIRoomEvents.onKickedOutOfRoom]:["roomId","reason","message"],[e.TUIRoomEvents.onKickedOffLine]:["message"],[e.TUIRoomEvents.onUserSigExpired]:[],[e.TUIRoomEvents.onRoomDismissed]:["roomId","reason"],[e.TUIRoomEvents.onRoomNameChanged]:["roomId","roomName"],[e.TUIRoomEvents.onRoomSeatModeChanged]:["roomId","seatMode"],[e.TUIRoomEvents.onRoomUserCountChanged]:["roomId","userCount"],[e.TUIRoomEvents.onAllUserCameraDisableChanged]:["roomId","isDisable"],[e.TUIRoomEvents.onAllUserMicrophoneDisableChanged]:["roomId","isDisable"],[e.TUIRoomEvents.onScreenShareForAllUserDisableChanged]:["roomId","isDisable"],[e.TUIRoomEvents.onSendMessageForAllUserDisableChanged]:["roomId","isDisable"],[e.TUIRoomEvents.onRoomMaxSeatCountChanged]:["roomId","maxSeatNumber"],[e.TUIRoomEvents.onRemoteUserEnterRoom]:["roomId","userInfo"],[e.TUIRoomEvents.onRemoteUserLeaveRoom]:["roomId","userInfo"],[e.TUIRoomEvents.onUserInfoChanged]:["userInfo"],[e.TUIRoomEvents.onUserRoleChanged]:["userInfo"],[e.TUIRoomEvents.onUserVideoStateChanged]:["userId","streamType","hasVideo","reason"],[e.TUIRoomEvents.onUserAudioStateChanged]:["userId","hasAudio","reason"],[e.TUIRoomEvents.onSendMessageForUserDisableChanged]:["roomId","userId","isDisable"],[e.TUIRoomEvents.onUserVoiceVolumeChanged]:["userVolumeList"],[e.TUIRoomEvents.onUserNetworkQualityChanged]:["userNetworkList"],[e.TUIRoomEvents.onSeatListChanged]:["seatList","seatedList","leftList"],[e.TUIRoomEvents.onKickedOffSeat]:["seatIndex","userInfo"],[e.TUIRoomEvents.onRequestReceived]:["request"],[e.TUIRoomEvents.onRequestCancelled]:["request","userInfo"],[e.TUIRoomEvents.onRequestProcessed]:["request","userInfo"],[e.TUIRoomEvents.onReceiveTextMessage]:["roomId","message"],[e.TUIRoomEvents.onReceiveCustomMessage]:["roomId","message"],[e.TUIRoomEvents.onUserScreenCaptureStopped]:["reason"],[e.TUIRoomEvents.onDeviceChange]:["deviceId","type","state"],[e.TUIRoomDeviceMangerEvents.onDeviceChanged]:["deviceId","type","state"],[e.TUIRoomDeviceMangerEvents.onTestMicVolume]:["volume"],[e.TUIRoomDeviceMangerEvents.onTestSpeakerVolume]:["volume"],[e.TUIConferenceListManagerEvents.onConferenceScheduled]:["conferenceInfo"],[e.TUIConferenceListManagerEvents.onConferenceWillStart]:["conferenceInfo"],[e.TUIConferenceListManagerEvents.onConferenceCancelled]:["roomId","reason","operateUser"],[e.TUIConferenceListManagerEvents.onConferenceInfoChanged]:["conferenceInfo","modifyFlag"],[e.TUIConferenceListManagerEvents.onScheduleAttendeesChanged]:["roomId","leftUsers","joinedUsers"],[e.TUIConferenceListManagerEvents.onConferenceStatusChanged]:["roomId","status"],[e.TUIConferenceInvitationManagerEvents.onReceiveInvitation]:["roomInfo","invitation","extensionInfo"],[e.TUIConferenceInvitationManagerEvents.onInvitationHandledByOtherDevice]:["roomInfo","accepted"],[e.TUIConferenceInvitationManagerEvents.onInvitationCancelled]:["roomInfo","invitation"],[e.TUIConferenceInvitationManagerEvents.onInvitationAccepted]:["roomInfo","invitation"],[e.TUIConferenceInvitationManagerEvents.onInvitationRejected]:["roomInfo","invitation","reason"],[e.TUIConferenceInvitationManagerEvents.onInvitationTimeout]:["roomInfo","invitation"],[e.TUIConferenceInvitationManagerEvents.onInvitationRevokedByAdmin]:["roomInfo","invitation","operateUser"],[e.TUIConferenceInvitationManagerEvents.onInvitationAdded]:["roomInfo","invitation"],[e.TUIConferenceInvitationManagerEvents.onInvitationRemoved]:["roomInfo","invitation"],[e.TUIConferenceInvitationManagerEvents.onInvitationStatusChanged]:["roomInfo","invitation"]};function Ek(e,t){const n=Tk(t),r={};return Rk[e].forEach(((e,t)=>{r[e]=n[t]})),r}class Ck extends Error{constructor(e){const{code:t,message:n,name:r}=e;super(n),this.code=t,this.message=n,this.name=r||""}}const Ik="INVALID_PARAMETER_REQUIRED",Sk="INVALID_PARAMETER_TYPE",_k="INVALID_PARAMETER_EMPTY",Ak="INVALID_PARAMETER_INSTANCE",bk="INVALID_PARAMETER_RANGE",wk="CANNOT_LESS_THAN_ZERO",Mk={INVALID_PARAMETER_REQUIRED:e=>{const{key:t,rule:n,fnName:r,value:o}=e;return`'${t||n.name}' is a required param when calling ${r}(), received: ${o}.`},INVALID_PARAMETER_TYPE:e=>{const{key:t,rule:n,fnName:r,value:o}=e,i=`${t||n.name}`;let a="";return a=Array.isArray(n.type)?n.type.join("|"):n.type,`'${i}' must be type of ${a} when calling ${r}(), received type: ${mk(o)}.`},INVALID_PARAMETER_EMPTY:e=>{const{key:t,rule:n,fnName:r,value:o}=e;return`'${t||n.name}' cannot be '${o}' when calling ${r}().`},INVALID_PARAMETER_INSTANCE:e=>{const{key:t,rule:n,fnName:r,value:o}=e;return`'${`${t||n.name}`}' must be instanceof ${`${n.instanceOf.name||n.instanceOf}`} when calling ${r}(), received type: ${mk(o)}.`},INVALID_PARAMETER_RANGE:e=>{const{key:t,rule:n,fnName:r,value:o}=e;return`'${t||n.name}' must be one of ${n.values.join("|")} when calling ${r}(), received: ${o}.`},CANNOT_LESS_THAN_ZERO:e=>{const{key:t,rule:n,fnName:r,value:o}=e;return`'${t||n.name}' cannot be less than 0 when calling ${r}().`},xxx:"lajfl "};function Ok(e){const{key:t,data:n}=e;return Mk[t]?vk(Mk[t])?Mk[t](n):pk(Mk[t])?Mk[t]:"":""}function kk(...e){return function(t,n,r){const o=r.value;return r.value=function(...t){return Uk.call(this,e,t,n,this.className),o.apply(this,t)},r}}function Nk(...e){return function(t,n,r){const o=r.value;return r.value=function(...t){return s(this,void 0,void 0,(function*(){return Uk.call(this,e,t,n,this.className),o.apply(this,t)}))},r}}function Uk(e,t,n,r){try{for(let o=0;o<e.length;o++)Dk.call(this,{rule:e[o],value:t[o],key:e[o].name,fnName:n,className:r})}catch(VN){throw console.error(VN,VN.code,VN.message),VN}}function Dk(t){const{rule:n,value:r,key:o,fnName:i,className:a}=t;if(hk(r)){if(n.required)throw new Ck({code:e.TUIErrorCode.ERR_INVALID_PARAMETER,message:Ok({key:Ik,data:{key:o,rule:n,fnName:i,value:r}})});return}if(Array.isArray(n.type)){if(!n.type.map((e=>e.toLowerCase())).includes(mk(r)))throw new Ck({code:e.TUIErrorCode.ERR_INVALID_PARAMETER,message:Ok({key:Sk,data:{key:o,rule:n,fnName:i,value:r}})})}else if(!hk(n.type)&&mk(r)!==n.type)throw new Ck({code:e.TUIErrorCode.ERR_INVALID_PARAMETER,message:Ok({key:Sk,data:{key:o,rule:n,fnName:i,value:r}})});if(!1===n.allowEmpty){const t=gk(r)&&(0===r||Number.isNaN(r)),a=pk(r)&&""===r.trim();if(t||a)throw new Ck({code:e.TUIErrorCode.ERR_INVALID_PARAMETER,message:Ok({key:_k,data:{key:o,rule:n,fnName:i,value:r}})})}if(n.notLessThanZero&&gk(r)&&r<0)throw new Ck({code:e.TUIErrorCode.ERR_INVALID_PARAMETER,message:Ok({key:wk,data:{key:o,rule:n,fnName:i,value:r}})});if(pk(n.instanceOf)){if(!r||r.name_!==n.instanceOf)throw new Ck({code:e.TUIErrorCode.ERR_INVALID_PARAMETER,message:Ok({key:Ak,data:{key:o,rule:n,fnName:i,value:r}})})}else if(vk(n.instanceOf)&&!(r instanceof n.instanceOf))throw new Ck({code:e.TUIErrorCode.ERR_INVALID_PARAMETER,message:Ok({key:Ak,data:{key:o,rule:n,fnName:i,value:r}})});if(n.values&&!n.values.includes(r))throw new Ck({code:e.TUIErrorCode.ERR_INVALID_PARAMETER,message:Ok({key:bk,data:{key:o,rule:n,fnName:i,value:r}})});const{properties:s}=n;yk(s)&&"object"===mk(r)&&Object.keys(s).forEach((e=>{Dk.call(this,{rule:s[e],value:r&&r[e],key:`${o}.${e}`,fnName:i,className:a})}));const{arrayItem:u}=n;yk(u)&&(e=>"array"===mk(e))(r)&&r.forEach(((e,t)=>{Dk.call(this,{rule:u,value:e,key:`${o}[${t}]`,fnName:i,className:a})})),vk(n.validate)&&n.validate.call(this,r,o,i,a,this)}const Pk=new WeakMap;function Lk(){return function(e,t,n){const r=n.value,o=e=>{const{fn:t,args:n,context:r,resolve:i,reject:a}=e;t.apply(r,n).then(i,a).finally((()=>{const e=Pk.get(r);e&&(e.shift(),e[0]&&o(Object.assign({},e[0])))}))};return n.value=function(...e){return new Promise(((n,i)=>{if(Pk.has(this)){const a=Pk.get(this),{length:s}=a;a.push({fn:r,args:e,context:this,resolve:n,reject:i,name:t}),0===s&&o({fn:r,args:e,context:this,resolve:n,reject:i})}else Pk.set(this,[{fn:r,args:e,context:this,resolve:n,reject:i,name:t}]),o({fn:r,args:e,context:this,resolve:n,reject:i})}))},n}}const Vk="string",xk="number",Fk="boolean",jk="array",$k="object",qk="null",Bk={ELECTRON:"electron",WEB:"web",MINI_PROGRAM:"miniProgram"},Wk={login:{name:"options",required:!0,type:$k,properties:{sdkAppId:{required:!0,type:xk,allowEmpty:!1},userId:{required:!0,type:Vk,allowEmpty:!1},userSig:{required:!0,type:Vk,allowEmpty:!1}}},setSelfInfo:{name:"options",required:!0,type:$k,properties:{userName:{required:!0,type:Vk},avatarUrl:{required:!0,type:Vk},customInfo:{required:!1,type:$k,allowEmpty:!1}}},createRoom:{name:"options",required:!0,type:$k,properties:{roomId:{required:!0,type:Vk,allowEmpty:!1},roomName:{type:Vk,allowEmpty:!1},roomType:{instanceof:e.TUIRoomType},isMicrophoneDisableForAllUser:{type:Fk},isScreenShareDisableForAllUser:{type:Fk},isCameraDisableForAllUser:{type:Fk},isMessageDisableForAllUser:{type:Fk},maxSeatCount:{type:xk},password:{type:Vk}}},enterRoom:{name:"options",required:!0,type:$k,properties:{roomId:{required:!0,type:Vk,allowEmpty:!1},roomType:{instanceof:e.TUIRoomType},options:{type:$k,properties:{password:{type:Vk}}}}},updateRoomNameByAdmin:{name:"options",require:!0,type:$k,properties:{roomName:{require:!0,type:Vk,allowEmpty:!1}}},setRoomMaxSeatCount:{name:"options",require:!0,type:$k,properties:{maxSeatCount:{require:!0,type:xk}}},getUserList:{name:"options",required:!1,type:$k,properties:{nextSequence:{type:xk}}},getUserInfo:{name:"options",required:!0,type:$k,properties:{userId:{required:!0,type:Vk,allowEmpty:!1}}},setCustomInfoForUser:{name:"options",required:!0,type:$k,properties:{userId:{required:!0,type:Vk,allowEmpty:!1},customInfo:{required:!0,type:$k,allowEmpty:!1}}},takeSeat:{name:"options",required:!0,type:$k,properties:{seatIndex:{required:!0,type:xk},timeout:{required:!0,type:xk},requestCallback:{instanceof:Function}}},getSeatList:{},openRemoteDeviceByAdmin:{name:"options",required:!0,type:$k,properties:{userId:{required:!0,type:Vk,allowEmpty:!1},timeout:{required:!0,type:xk},device:{require:!0,instanceof:e.TUIMediaDevice}}},closeRemoteDeviceByAdmin:{name:"options",required:!0,type:$k,properties:{userId:{required:!0,type:Vk,allowEmpty:!1},device:{required:!0,instanceof:e.TUIMediaDevice}}},takeUserOnSeatByAdmin:{name:"options",required:!0,type:$k,properties:{seatIndex:{required:!0,type:xk},userId:{required:!0,type:Vk,allowEmpty:!1},timeout:{required:!0,type:xk},requestCallback:{instanceof:Function}}},kickUserOffSeatByAdmin:{name:"options",required:!0,type:$k,properties:{seatIndex:{required:!0,type:xk},userId:{required:!0,type:Vk,allowEmpty:!1}}},cancelRequest:{name:"options",required:!0,type:$k,properties:{requestId:{required:!0,type:Vk,allowEmpty:!1}}},responseRemoteRequest:{name:"options",required:!0,type:$k,properties:{requestId:{required:!0,type:Vk,allowEmpty:!1},agree:{required:!0,type:Fk}}},setLocalVideoView:{name:"options",required:!0,type:$k,properties:{view:{required:!0,type:[Vk,jk,qk],allowEmpty:!1,validate:t=>{if(t instanceof Array){if(t.some((e=>null===e)))throw new Ck({code:e.TUIErrorCode.ERR_INVALID_PARAMETER,message:"When calling the setLocalVideoView interface with the view parameter as an array, the array content cannot contain null."})}}}}},openLocalCamera:{name:"options",type:$k,properties:{isFrontCamera:{type:Fk,allowEmpty:!1}}},closeLocalCamera:{},openLocalMicrophone:{},closeLocalMicrophone:{},setVideoResolutionMode:{name:"options",required:!0,type:$k,properties:{streamType:{required:!0,instanceof:e.TUIVideoStreamType},resolutionMode:{required:!0,instanceof:e.TUIResolutionMode}}},updateVideoQuality:{name:"options",required:!0,type:$k,properties:{quality:{required:!0,instanceof:e.TUIVideoQuality}}},updateVideoQualityEx:{name:"options",required:!0,type:$k,properties:{streamType:{required:!0,instanceof:e.TUIVideoStreamType},encoderParams:{required:!0,properties:{quality:{instanceof:e.TUIVideoQuality},fps:{type:xk},bitrate:{type:xk},resolutionMode:{instanceof:e.TUIResolutionMode}}}}},updateAudioQuality:{name:"options",required:!0,type:$k,properties:{quality:{required:!0,instanceof:e.TUIAudioQuality}}},muteRemoteAudioStream:{name:"options",required:!0,type:$k,properties:{userId:{required:!0,type:Vk,allowEmpty:!1},isMute:{required:!0,type:Fk}}},startPushLocalVideo:{},stopPushLocalVideo:{},setRemoteVideoView:{name:"options",required:!0,type:$k,properties:{userId:{required:!0,type:Vk,allowEmpty:!1},streamType:{required:!0,instanceof:e.TUIVideoStreamType},view:{required:!0,type:[Vk,jk],allowEmpty:!1}}},startPlayRemoteVideo:{name:"options",required:!0,type:$k,properties:{userId:{required:!0,type:Vk,allowEmpty:!1},streamType:{required:!0,instanceof:e.TUIVideoStreamType}}},stopPlayRemoteVideo:{name:"options",required:!0,type:$k,properties:{userId:{required:!0,type:Vk,allowEmpty:!1},streamType:{required:!0,instanceof:e.TUIVideoStreamType}}},changeUserRole:{name:"options",required:!0,type:$k,properties:{userId:{required:!0,type:Vk,allowEmpty:!1},userRole:{required:!0,instanceof:e.TUIRole}}},changeUserNameCard:{name:"options",required:!0,type:$k,properties:{userId:{required:!0,type:Vk,allowEmpty:!1},nameCard:{required:!0,type:Vk}}},kickRemoteUserOutOfRoom:{name:"options",required:!0,type:$k,properties:{userId:{required:!0,type:Vk,allowEmpty:!1}}},sendTextMessage:{name:"options",required:!0,type:$k,properties:{messageText:{require:!0,type:Vk,allowEmpty:!1}}},sendCustomMessage:{name:"options",required:!0,type:$k,properties:{messageText:{require:!0,type:Vk,allowEmpty:!1}}},startScreenSharing:{name:"options",type:$k,properties:{screenAudio:{type:Fk}}},stopScreenSharing:{},startScreenSharingElectron:{name:"targetId",required:!0,type:Vk},selectScreenSharingTarget:{name:"targetId",required:!0,type:Vk},setCurrentCameraDevice:{name:"options",required:!0,type:$k,properties:{deviceId:{require:!0,type:Vk}}},setCurrentMicDevice:{name:"options",required:!0,type:$k,properties:{deviceId:{require:!0,type:Vk}}},setCurrentSpeakerDevice:{name:"options",required:!0,type:$k,properties:{deviceId:{require:!0,type:Vk}}},disableDeviceForAllUserByAdmin:{name:"options",required:!0,type:$k,properties:{isDisable:{require:!0,type:Fk},device:{require:!0,instanceof:e.TUIMediaDevice}}},disableSendingMessageForAllUser:{name:"options",required:!0,type:$k,properties:{isDisable:{require:!0,type:Fk}}},disableSendingMessageByAdmin:{name:"options",required:!0,type:$k,properties:{userId:{require:!0,instanceof:Vk},isDisable:{require:!0,type:Fk}}},updateRoomSeatModeByAdmin:{name:"options",required:!0,type:$k,properties:{seatMode:{require:!0,instanceof:e.TUISeatMode}}},updateRoomPasswordByAdmin:{name:"options",required:!0,type:$k,properties:{password:{required:!0,type:Vk,allowEmpty:!1}}},applyToAdminToOpenLocalDevice:{name:"options",required:!0,type:$k,properties:{timeout:{required:!0,type:xk},device:{require:!0,instanceof:e.TUIMediaDevice}}},lockSeatByAdmin:{name:"options",required:!0,type:$k,properties:{seatIndex:{required:!0,type:xk},lockParams:{require:!0,type:$k,properties:{lockSeat:{require:!0,type:Fk},lockVideo:{require:!0,type:Fk},lockAudio:{require:!0,type:Fk}}}}}};class Qk{constructor(e,t){if(this.trtcCloud=e,t){const{userId:n,sdkAppId:r,seq:o}=t;this.seq=o,e._log&&(this.logger=e._log.createLogger({id:`roomEngine${o}`,userId:n,sdkAppId:r}))}else this.logger=e._log;this.logger||(this.logger={debug:t=>{e.logger&&e.logger.debug?e.logger.debug(t):console.debug(this.getTime(),t)},info:t=>{e.logger&&e.logger.info?e.logger.info(t):console.info(this.getTime(),t)},warn:t=>{e.logger&&e.logger.warn?e.logger.warn(t):console.warn(this.getTime(),t)},error:t=>{e.logger&&e.logger.error?e.logger.error(t):console.error(this.getTime(),t)}})}getLogMessage(e){try{return e.map((e=>"string"!=typeof e?JSON.stringify(e):e)).join(" ")}catch(VN){return e}}update(e){const{userId:t,sdkAppId:n}=e;this.trtcCloud._log&&this.trtcCloud._log.createLogger&&(this.logger=this.trtcCloud._log.createLogger({id:`roomEngine${this.seq}`,userId:t,sdkAppId:n}))}debug(...e){const t=this.getLogMessage(e);this.logger.debug(t)}info(...e){const t=this.getLogMessage(e);this.logger&&this.logger.info&&this.logger.info(t)}warn(...e){const t=this.getLogMessage(e);this.logger&&this.logger.warn&&this.logger.warn(t)}error(...e){const t=this.getLogMessage(e);this.logger&&this.logger.error&&this.logger.error(t)}getTime(){const e=new Date;return`${e.toLocaleTimeString("en-US",{hour12:!1})}.${function(e){let t;switch(e.toString().length){case 1:t=`00${e}`;break;case 2:t=`0${e}`;break;default:t=e}return t}(e.getMilliseconds())}`}}const Jk=new fk;class Hk{constructor(e){const{logger:t,trtcCloud:n}=e;return Hk.deviceManager||(this.logger=t,this.trtcCloud=n,Hk.deviceManager=this),Hk.deviceManager}setDeviceManagerWASM(e){this.deviceManagerWASM=e.getExtensionManager("TUIRoomDeviceManagerWASM")}JSCallNativeFunctionPromise(t,...n){return new Promise(((r,o)=>{const i=e=>{this.logger.info(`deviceManager.${t} success`,Tk(e)),r(Tk(e))},a=(e,n)=>{this.logger.warn(`deviceManager.${t} fail. `,e,n),o(new Ck({code:e,message:n}))};try{n.length>0?this.deviceManagerWASM[t](...n,i,a):this.deviceManagerWASM[t](i,a)}catch(VN){this.logger.warn(`deviceManager.${t} error. `,VN.code,VN.message),o(new Ck({code:VN.code||e.TUIErrorCode.ERR_FAILED,message:VN.message}))}}))}getDevicesList(e){return s(this,void 0,void 0,(function*(){return[]}))}setCurrentDevice(e){return s(this,void 0,void 0,(function*(){}))}getCurrentDevice(e){}startCameraDeviceTest(e){return s(this,void 0,void 0,(function*(){}))}stopCameraDeviceTest(){return s(this,void 0,void 0,(function*(){}))}startMicDeviceTest(e){return s(this,void 0,void 0,(function*(){}))}stopMicDeviceTest(){return s(this,void 0,void 0,(function*(){}))}startSpeakerDeviceTest(e){return s(this,void 0,void 0,(function*(){}))}stopSpeakerDeviceTest(){return s(this,void 0,void 0,(function*(){}))}isFrontCamera(){return!!vk(this.trtcCloud.isFrontCamera)&&this.trtcCloud.isFrontCamera()}switchCamera(e){return s(this,void 0,void 0,(function*(){this.logger.info("deviceManager.switchCamera with options: ",e);const{isFrontCamera:t}=e;this.deviceManagerWASM?yield this.JSCallNativeFunctionPromise("switchCamera",t):yield this.trtcCloud.switchCamera(t)}))}isAutoFocusEnabled(){return!!vk(this.trtcCloud.isAutoFocusEnabled)&&this.trtcCloud.isAutoFocusEnabled()}enableCameraTorch(e){vk(this.trtcCloud.enableCameraTorch)&&this.trtcCloud.enableCameraTorch(e.enabled)}setAudioRoute(e){vk(this.trtcCloud.setAudioRoute)&&this.trtcCloud.setAudioRoute(e.route)}on(e,t){Jk.on(e,t),this.handleTrtcCloudBindEvent(e)}handleTrtcCloudBindEvent(t){const n={[e.TUIRoomDeviceMangerEvents.onDeviceChanged]:"onDeviceChange",[e.TUIRoomDeviceMangerEvents.onTestMicVolume]:"onTestMicVolume",[e.TUIRoomDeviceMangerEvents.onTestSpeakerVolume]:"onTestSpeakerVolume"}[t]||t;this.trtcCloud.removeAllListeners&&this.trtcCloud.removeAllListeners(n),this.trtcCloud.on(n,((...n)=>{const r=Ek(t,n);"{}"===JSON.stringify(r)?Jk.emit(t):Jk.emit(t,r);[e.TUIRoomDeviceMangerEvents.onTestMicVolume,e.TUIRoomDeviceMangerEvents.onTestSpeakerVolume].includes(t)||this.logger.info(`DeviceManager received event: [${t}] ${JSON.stringify(r)}`)}))}off(e,t){Jk.off(e,t)}}var Yk;const Gk=(null===(Yk=null===navigator||void 0===navigator?void 0:navigator.userAgent)||void 0===Yk?void 0:Yk.toLowerCase().indexOf(" electron/"))>-1,Kk="undefined"!=typeof wx&&"function"==typeof wx.getSystemInfoSync&&Boolean(wx.getSystemInfoSync().fontSizeSetting),zk=new fk;class Xk{constructor(e){const{logger:t,roomEngineWASM:n}=e;return Xk.conferenceListManager||(this.logger=t,this.conferenceListManagerWASM=n.getExtensionManager("TUIConferenceListManagerWASM"),Xk.conferenceListManager=this,this.observerFunction=this.observerFunction.bind(this),this.conferenceListManagerWASM.setObserver(this.observerFunction)),Xk.conferenceListManager}JSCallNativeFunctionPromise(t,...n){return new Promise(((r,o)=>{const i=e=>{this.logger.info(`ConferenceListManager.${t} success`,Tk(e)),r(Tk(e))},a=(e,n)=>{this.logger.warn(`ConferenceListManager.${t} fail. `,e,n),o(new Ck({code:e,message:n}))};try{n.length>0?this.conferenceListManagerWASM[t](...n,i,a):this.conferenceListManagerWASM[t](i,a)}catch(VN){this.logger.warn(`ConferenceListManager.${t} error. `,VN.code,VN.message),o(new Ck({code:VN.code||e.TUIErrorCode.ERR_FAILED,message:VN.message}))}}))}scheduleConference(t){return s(this,void 0,void 0,(function*(){const{scheduleStartTime:n,scheduleEndTime:r,scheduleAttendees:o=[],reminderSecondsBeforeStart:i=0,roomId:a,roomName:s,roomType:u,maxSeatCount:c,isSeatEnabled:l=!1,seatMode:d=e.TUISeatMode.kFreeToTake,isMicrophoneDisableForAllUser:f,isScreenShareDisableForAllUser:v,isCameraDisableForAllUser:h,isMessageDisableForAllUser:p,password:g=""}=t;delete t.password,this.logger.info("conferenceListManager.scheduleConference with options: ",t);const m={scheduleStartTime:n,scheduleEndTime:r,scheduleAttendees:o,reminderSecondsBeforeStart:i,roomId:a,roomType:u,roomName:s,isSeatEnabled:l,seatMode:d,isMicrophoneDisableForAllUser:f,isScreenShareDisableForAllUser:v,isCameraDisableForAllUser:h,isMessageDisableForAllUser:p,maxSeatCount:c,password:g};yield this.JSCallNativeFunctionPromise("scheduleConference",m)}))}cancelConference(e){return s(this,void 0,void 0,(function*(){this.logger.info("conferenceListManager.cancelConference with options: ",e);const{roomId:t}=e;yield this.JSCallNativeFunctionPromise("cancelConference",t)}))}updateConferenceInfo(e){return s(this,void 0,void 0,(function*(){this.logger.info("conferenceListManager.updateConferenceInfo with options: ",e),yield this.JSCallNativeFunctionPromise("updateConferenceInfo",e)}))}fetchScheduledConferenceList(t){return s(this,void 0,void 0,(function*(){this.logger.info("conferenceListManager.fetchScheduledConferenceList with options: ",t);const{cursor:n,count:r}=t,o=t&&t.statusArray||[e.TUIConferenceStatus.kConferenceStatusNotStarted,e.TUIConferenceStatus.kConferenceStatusRunning];let i=0;for(let e=0;e<o.length;e++)i|=o[e];return yield this.JSCallNativeFunctionPromise("fetchScheduledConferenceList",i,n,r)}))}fetchAttendeeList(e){return s(this,void 0,void 0,(function*(){this.logger.info("conferenceListManager.fetchAttendeeList with options: ",e);const{roomId:t,cursor:n,count:r}=e;return yield this.JSCallNativeFunctionPromise("fetchAttendeeList",t,n,r)}))}addAttendeesByAdmin(e){return s(this,void 0,void 0,(function*(){this.logger.info("conferenceListManager.addAttendeesByAdmin with options: ",e);const{roomId:t,userIdList:n}=e;yield this.JSCallNativeFunctionPromise("addAttendeesByAdmin",t,n)}))}removeAttendeesByAdmin(e){return s(this,void 0,void 0,(function*(){this.logger.info("conferenceListManager.removeAttendeesByAdmin with options: ",e);const{roomId:t,userIdList:n}=e;yield this.JSCallNativeFunctionPromise("removeAttendeesByAdmin",t,n)}))}on(e,t){this.logger.info(`listen for event: ${e}`),zk.on(e,t)}observerFunction(e,t){const n=Ek(e,t);"{}"===JSON.stringify(n)?zk.emit(e):(this.handleConferenceChangedEvent(e,n),zk.emit(e,n)),this.logger.info(`ConferenceListManager received event: [${e}] ${JSON.stringify(n)}`)}handleConferenceChangedEvent(t,n){if(t===e.TUIConferenceListManagerEvents.onConferenceInfoChanged){const e=n.modifyFlag,{conferenceInfo:t}=n,r={basicRoomInfo:{roomId:t.basicRoomInfo.roomId}};e&Xk.ROOM_NAME&&(r.basicRoomInfo.roomName=t.basicRoomInfo.roomName),e&Xk.SCHEDULED_START_TIME&&(r.scheduleStartTime=t.scheduleStartTime),e&Xk.SCHEDULED_END_TIME&&(r.scheduleEndTime=t.scheduleEndTime),delete n.modifyFlag,delete n.conferenceInfo,n.conferenceModifyInfo=r}}off(e,t){zk.off(e,t)}}Xk.ROOM_NAME=1,Xk.SCHEDULED_START_TIME=65536,Xk.SCHEDULED_END_TIME=1<<17;const Zk=new fk;class eN{constructor(e){const{logger:t,roomEngineWASM:n}=e;return eN.conferenceInvitationManager||(this.logger=t,this.conferenceInvitationManagerWASM=n.getExtensionManager("TUIConferenceInvitationManagerWASM"),eN.conferenceInvitationManager=this,this.observerFunction=this.observerFunction.bind(this),this.conferenceInvitationManagerWASM.setObserver(this.observerFunction)),eN.conferenceInvitationManager}JSCallNativeFunctionPromise(t,...n){return new Promise(((r,o)=>{const i=e=>{this.logger.info(`ConferenceInvitationManager.${t} success`,Tk(e)),r(Tk(e))},a=(e,n)=>{this.logger.warn(`ConferenceInvitationManager.${t} fail. `,e,n),o(new Ck({code:e,message:n}))};try{n.length>0?this.conferenceInvitationManagerWASM[t](...n,i,a):this.conferenceInvitationManagerWASM[t](i,a)}catch(VN){this.logger.warn(`ConferenceInvitationManager.${t} error. `,VN.code,VN.message),o(new Ck({code:VN.code||e.TUIErrorCode.ERR_FAILED,message:VN.message}))}}))}inviteUsers(e){return s(this,void 0,void 0,(function*(){this.logger.info("conferenceInvitationManager.inviteUsers with options: ",e);const{roomId:t,userIdList:n,timeout:r,extensionInfo:o=""}=e;yield this.JSCallNativeFunctionPromise("inviteUsers",t,n,r,o)}))}cancelInvitation(e){return s(this,void 0,void 0,(function*(){this.logger.info("conferenceInvitationManager.cancelInvitation with options: ",e);const{roomId:t,userIdList:n}=e;yield this.JSCallNativeFunctionPromise("cancelInvitation",t,n)}))}accept(e){return s(this,void 0,void 0,(function*(){this.logger.info("conferenceInvitationManager.accept with options: ",e);const{roomId:t}=e;yield this.JSCallNativeFunctionPromise("accept",t)}))}reject(e){return s(this,void 0,void 0,(function*(){this.logger.info("conferenceInvitationManager.reject with options: ",e);const{roomId:t,reason:n}=e;yield this.JSCallNativeFunctionPromise("reject",t,n)}))}getInvitationList(e){return s(this,void 0,void 0,(function*(){this.logger.info("conferenceInvitationManager.getInvitationList with options: ",e);const{roomId:t,cursor:n,count:r}=e;return yield this.JSCallNativeFunctionPromise("getInvitationList",t,n,r)}))}on(e,t){this.logger.info(`listen for event: ${e}`),Zk.on(e,t)}observerFunction(e,t){const n=Ek(e,t);"{}"===JSON.stringify(n)?Zk.emit(e):Zk.emit(e,n),this.logger.info(`ConferenceListManager received event: [${e}] ${JSON.stringify(n)}`)}off(e,t){Zk.off(e,t)}}var tN,nN,rN,oN,iN,aN,sN,uN,cN,lN,dN,fN,vN,hN,pN,gN,mN,yN,TN;e.TRTCVideoResolution=void 0,(tN=e.TRTCVideoResolution||(e.TRTCVideoResolution={}))[tN.TRTCVideoResolution_120_120=1]="TRTCVideoResolution_120_120",tN[tN.TRTCVideoResolution_160_160=3]="TRTCVideoResolution_160_160",tN[tN.TRTCVideoResolution_270_270=5]="TRTCVideoResolution_270_270",tN[tN.TRTCVideoResolution_480_480=7]="TRTCVideoResolution_480_480",tN[tN.TRTCVideoResolution_160_120=50]="TRTCVideoResolution_160_120",tN[tN.TRTCVideoResolution_240_180=52]="TRTCVideoResolution_240_180",tN[tN.TRTCVideoResolution_280_210=54]="TRTCVideoResolution_280_210",tN[tN.TRTCVideoResolution_320_240=56]="TRTCVideoResolution_320_240",tN[tN.TRTCVideoResolution_400_300=58]="TRTCVideoResolution_400_300",tN[tN.TRTCVideoResolution_480_360=60]="TRTCVideoResolution_480_360",tN[tN.TRTCVideoResolution_640_480=62]="TRTCVideoResolution_640_480",tN[tN.TRTCVideoResolution_960_720=64]="TRTCVideoResolution_960_720",tN[tN.TRTCVideoResolution_160_90=100]="TRTCVideoResolution_160_90",tN[tN.TRTCVideoResolution_256_144=102]="TRTCVideoResolution_256_144",tN[tN.TRTCVideoResolution_320_180=104]="TRTCVideoResolution_320_180",tN[tN.TRTCVideoResolution_480_270=106]="TRTCVideoResolution_480_270",tN[tN.TRTCVideoResolution_640_360=108]="TRTCVideoResolution_640_360",tN[tN.TRTCVideoResolution_960_540=110]="TRTCVideoResolution_960_540",tN[tN.TRTCVideoResolution_1280_720=112]="TRTCVideoResolution_1280_720",tN[tN.TRTCVideoResolution_1920_1080=114]="TRTCVideoResolution_1920_1080",e.TRTCVideoStreamType=void 0,(nN=e.TRTCVideoStreamType||(e.TRTCVideoStreamType={}))[nN.TRTCVideoStreamTypeBig=0]="TRTCVideoStreamTypeBig",nN[nN.TRTCVideoStreamTypeSmall=1]="TRTCVideoStreamTypeSmall",nN[nN.TRTCVideoStreamTypeSub=2]="TRTCVideoStreamTypeSub",e.TRTCVideoFillMode=void 0,(rN=e.TRTCVideoFillMode||(e.TRTCVideoFillMode={}))[rN.TRTCVideoFillMode_Fill=0]="TRTCVideoFillMode_Fill",rN[rN.TRTCVideoFillMode_Fit=1]="TRTCVideoFillMode_Fit",e.TRTCVideoMirrorType=void 0,(oN=e.TRTCVideoMirrorType||(e.TRTCVideoMirrorType={}))[oN.TRTCVideoMirrorType_Auto=0]="TRTCVideoMirrorType_Auto",oN[oN.TRTCVideoMirrorType_Enable=1]="TRTCVideoMirrorType_Enable",oN[oN.TRTCVideoMirrorType_Disable=2]="TRTCVideoMirrorType_Disable",e.TRTCBeautyStyle=void 0,(iN=e.TRTCBeautyStyle||(e.TRTCBeautyStyle={}))[iN.TRTCBeautyStyleSmooth=0]="TRTCBeautyStyleSmooth",iN[iN.TRTCBeautyStyleNature=1]="TRTCBeautyStyleNature",e.TRTCAppScene=void 0,(aN=e.TRTCAppScene||(e.TRTCAppScene={}))[aN.TRTCAppSceneVideoCall=0]="TRTCAppSceneVideoCall",aN[aN.TRTCAppSceneLIVE=1]="TRTCAppSceneLIVE",aN[aN.TRTCAppSceneAudioCall=2]="TRTCAppSceneAudioCall",aN[aN.TRTCAppSceneVoiceChatRoom=3]="TRTCAppSceneVoiceChatRoom",e.TRTCRoleType=void 0,(sN=e.TRTCRoleType||(e.TRTCRoleType={}))[sN.TRTCRoleAnchor=20]="TRTCRoleAnchor",sN[sN.TRTCRoleAudience=21]="TRTCRoleAudience",e.TRTCAudioQuality=void 0,(uN=e.TRTCAudioQuality||(e.TRTCAudioQuality={}))[uN.TRTCAudioQualityDefault=0]="TRTCAudioQualityDefault",uN[uN.TRTCAudioQualitySpeech=1]="TRTCAudioQualitySpeech",uN[uN.TRTCAudioQualityMusic=3]="TRTCAudioQualityMusic";class RN{constructor(e="",t="",n="",r="",o=""){this.deviceId=e,this.deviceName=t,this.kind=n,this.label=r,this.groupId=o}}e.TRTCDeviceState=void 0,(cN=e.TRTCDeviceState||(e.TRTCDeviceState={}))[cN.TRTCDeviceStateAdd=0]="TRTCDeviceStateAdd",cN[cN.TRTCDeviceStateRemove=1]="TRTCDeviceStateRemove",cN[cN.TRTCDeviceStateActive=2]="TRTCDeviceStateActive",e.TRTCDeviceType=void 0,(lN=e.TRTCDeviceType||(e.TRTCDeviceType={}))[lN.TRTCDeviceTypeUnknow=-1]="TRTCDeviceTypeUnknow",lN[lN.TRTCDeviceTypeMic=0]="TRTCDeviceTypeMic",lN[lN.TRTCDeviceTypeSpeaker=1]="TRTCDeviceTypeSpeaker",lN[lN.TRTCDeviceTypeCamera=2]="TRTCDeviceTypeCamera";class EN{constructor(t=0,n="",r="",o=0,i="",a=e.TRTCRoleType.TRTCRoleAnchor,s=null,u=null,c=null,l=null,d=30){this.sdkAppId=t,this.userId=n,this.userSig=r,this.roomId=o,this.strRoomId=i,this.role=a,this.privateMapKey=s,this.streamId=c,this.userDefineRecordId=l,this.frameWorkType=d}}class CN{constructor(t=e.TRTCVideoResolution.TRTCVideoResolution_640_360,n=15,r=550){this.videoResolution=t,this.videoFps=n,this.videoBitrate=r}}e.TRTCVideoRotation=void 0,(dN=e.TRTCVideoRotation||(e.TRTCVideoRotation={}))[dN.TRTCVideoRotation0=0]="TRTCVideoRotation0",dN[dN.TRTCVideoRotation90=1]="TRTCVideoRotation90",dN[dN.TRTCVideoRotation180=2]="TRTCVideoRotation180",dN[dN.TRTCVideoRotation270=3]="TRTCVideoRotation270";e.TRTCQuality=void 0,(fN=e.TRTCQuality||(e.TRTCQuality={}))[fN.TRTCQuality_Unknown=0]="TRTCQuality_Unknown",fN[fN.TRTCQuality_Excellent=1]="TRTCQuality_Excellent",fN[fN.TRTCQuality_Good=2]="TRTCQuality_Good",fN[fN.TRTCQuality_Poor=3]="TRTCQuality_Poor",fN[fN.TRTCQuality_Bad=4]="TRTCQuality_Bad",fN[fN.TRTCQuality_Vbad=5]="TRTCQuality_Vbad",fN[fN.TRTCQuality_Down=6]="TRTCQuality_Down";class IN{constructor(t="",n=e.TRTCQuality.TRTCQuality_Unknown){this.userId=t,this.quality=n}}class SN{constructor(e="",t=0){this.userId=e,this.volume=t}}class _N{constructor(e=0,t=0,n=0,r=0,o=0,i=0,a=0,s=[],u=0,c=0){this.upLoss=e,this.downLoss=t,this.appCpu=n,this.systemCpu=r,this.rtt=o,this.receivedBytes=i,this.sentBytes=a,this.localStatisticsArray=s,this.localStatisticsArraySize=u,this.remoteStatisticsArraySize=c}}e.TRTCVideoResolutionMode=void 0,(vN=e.TRTCVideoResolutionMode||(e.TRTCVideoResolutionMode={}))[vN.TRTCVideoResolutionModeLandscape=0]="TRTCVideoResolutionModeLandscape",vN[vN.TRTCVideoResolutionModePortrait=1]="TRTCVideoResolutionModePortrait",e.TRTCVideoQosPreference=void 0,(hN=e.TRTCVideoQosPreference||(e.TRTCVideoQosPreference={}))[hN.TRTCVideoQosPreferenceSmooth=1]="TRTCVideoQosPreferenceSmooth",hN[hN.TRTCVideoQosPreferenceClear=2]="TRTCVideoQosPreferenceClear",e.TRTCQosControlMode=void 0,(pN=e.TRTCQosControlMode||(e.TRTCQosControlMode={}))[pN.TRTCQosControlModeClient=0]="TRTCQosControlModeClient",pN[pN.TRTCQosControlModeServer=1]="TRTCQosControlModeServer";class AN{constructor(e=new ArrayBuffer(0),t=0,n=0,r=0){this.buffer=e,this.length=t,this.width=n,this.height=r}}e.TRTCLogLevel=void 0,(gN=e.TRTCLogLevel||(e.TRTCLogLevel={}))[gN.TRTCLogLevelVerbose=0]="TRTCLogLevelVerbose",gN[gN.TRTCLogLevelDebug=1]="TRTCLogLevelDebug",gN[gN.TRTCLogLevelInfo=2]="TRTCLogLevelInfo",gN[gN.TRTCLogLevelWarn=3]="TRTCLogLevelWarn",gN[gN.TRTCLogLevelError=4]="TRTCLogLevelError",gN[gN.TRTCLogLevelFatal=5]="TRTCLogLevelFatal",gN[gN.TRTCLogLevelNone=6]="TRTCLogLevelNone",e.TRTCScreenCaptureSourceType=void 0,(mN=e.TRTCScreenCaptureSourceType||(e.TRTCScreenCaptureSourceType={}))[mN.TRTCScreenCaptureSourceTypeUnknown=-1]="TRTCScreenCaptureSourceTypeUnknown",mN[mN.TRTCScreenCaptureSourceTypeWindow=0]="TRTCScreenCaptureSourceTypeWindow",mN[mN.TRTCScreenCaptureSourceTypeScreen=1]="TRTCScreenCaptureSourceTypeScreen",mN[mN.TRTCScreenCaptureSourceTypeCustom=2]="TRTCScreenCaptureSourceTypeCustom";class bN{constructor(t=e.TRTCScreenCaptureSourceType.TRTCScreenCaptureSourceTypeUnknown,n="",r="",o=new AN,i=new AN,a=!1){this.type=t,this.sourceId=n,this.sourceName=r,this.thumbBGRA=o,this.iconBGRA=i,this.isMinimizeWindow=a}}class wN{constructor(e=0,t=0,n=0,r=0){this.left=e,this.top=t,this.right=n,this.bottom=r}}e.TRTCTranscodingConfigMode=void 0,(yN=e.TRTCTranscodingConfigMode||(e.TRTCTranscodingConfigMode={}))[yN.TRTCTranscodingConfigMode_Unknown=0]="TRTCTranscodingConfigMode_Unknown",yN[yN.TRTCTranscodingConfigMode_Manual=1]="TRTCTranscodingConfigMode_Manual",yN[yN.TRTCTranscodingConfigMode_Template_PureAudio=2]="TRTCTranscodingConfigMode_Template_PureAudio",yN[yN.TRTCTranscodingConfigMode_Template_PresetLayout=3]="TRTCTranscodingConfigMode_Template_PresetLayout",yN[yN.TRTCTranscodingConfigMode_Template_ScreenSharing=4]="TRTCTranscodingConfigMode_Template_ScreenSharing",yN[yN.TRTC_TranscodingConfigMode_Unknown=5]="TRTC_TranscodingConfigMode_Unknown",yN[yN.TRTC_TranscodingConfigMode_Manual=6]="TRTC_TranscodingConfigMode_Manual",yN[yN.TRTC_TranscodingConfigMode_Template_PureAudio=7]="TRTC_TranscodingConfigMode_Template_PureAudio",yN[yN.TRTC_TranscodingConfigMode_Template_PresetLayout=8]="TRTC_TranscodingConfigMode_Template_PresetLayout",yN[yN.TRTC_TranscodingConfigMode_Template_ScreenSharing=9]="TRTC_TranscodingConfigMode_Template_ScreenSharing";e.TRTCMixInputType=void 0,(TN=e.TRTCMixInputType||(e.TRTCMixInputType={}))[TN.TRTCMixInputTypeUndefined=0]="TRTCMixInputTypeUndefined",TN[TN.TRTCMixInputTypeAudioVideo=1]="TRTCMixInputTypeAudioVideo",TN[TN.TRTCMixInputTypePureVideo=2]="TRTCMixInputTypePureVideo",TN[TN.TRTCMixInputTypePureAudio=3]="TRTCMixInputTypePureAudio";const MN={TRTCDeviceInfo:RN,TRTCAudioQuality:e.TRTCAudioQuality,TRTCScreenCaptureSourceInfo:bN,Rect:wN,TRTCScreenCaptureSourceType:e.TRTCScreenCaptureSourceType,TRTCVideoEncParam:CN,TRTCVideoResolution:e.TRTCVideoResolution,TRTCVideoResolutionMode:e.TRTCVideoResolutionMode,TRTCVideoQosPreference:e.TRTCVideoQosPreference,TRTCBeautyStyle:e.TRTCBeautyStyle,TRTCVideoStreamType:e.TRTCVideoStreamType,TRTCVolumeInfo:SN,TRTCDeviceType:e.TRTCDeviceType,TRTCDeviceState:e.TRTCDeviceState,TRTCQualityInfo:IN,TRTCStatistics:_N,TRTCVideoFillMode:e.TRTCVideoFillMode,TRTCAppScene:e.TRTCAppScene,TRTCRoleType:e.TRTCRoleType,TRTCParams:EN,TRTCQuality:e.TRTCQuality},ON=Gk?Bk.ELECTRON:Kk?Bk.MINI_PROGRAM:Bk.WEB,kN={};kN.TIM=o.default,kN.TRTCCloud=i.default,kN.TRTCDefine=MN,kN.TIMDefine=o.default.TYPES,kN.FRAMEWORK=Bk,kN.currentFrameWork=ON;const NN=i.default.getTRTCShareInstance();kN.isWXMiniProgram=!0;const UN=new Qk(NN);kN.loggerManager=UN,kN.logger=UN,UN.info("TUIRoomEngine WX SDK Version:","3.1.0"),kN.roomInstanceMap=new Map;let DN=1;!function(){s(this,void 0,void 0,(function*(){yield PO(kN),LN.setModule(kN)}))}();const PN=new fk;class LN{static setModule(e){UN.info("TUIRoomEngineWASM ready!"),this.Module=e,this.isReady=!0,PN.emit("ready")}static once(e,t){PN.once(e,t),"ready"===e&&LN.isReady&&PN.emit("ready")}static getInstance(){return this.shareInstance||(this.shareInstance=new LN),this.shareInstance}constructor(){if(this.deviceManager=null,this.conferenceListManager=null,this.conferenceInvitationManager=null,this.roomId="",this.localVideoQuality=e.TUIVideoQuality.kVideoQuality_720p,this.localAudioQuality=e.TUIAudioQuality.kAudioProfileDefault,!LN.isReady)throw new Ck({code:e.TUIErrorCode.ERR_FAILED,message:"Please listen to the ready event and then execute the constructor method. ref: https://cloud.tencent.com/document/product/647/98556#once"});if(!LN.shareInstance){const e=!0;this.roomEngineWASM=new LN.Module.TUIRoomEngineWASM(e),this.trtcCloud=this.roomEngineWASM.getTRTCCloud(),this.observerFunction=this.observerFunction.bind(this),this.roomEngineWASM.setObserver(this.observerFunction),this.logger=new Qk(this.trtcCloud,{sdkAppId:LN.sdkAppId,userId:LN.userId,seq:DN}),DN+=1,kN.logger=this.logger,kN.wxMessageChannel=this.wxMessageChannel,LN.shareInstance=this}return LN.shareInstance}wxMessageChannel(e,t){"updatePusher"===e&&PN.emit("updatePusher",t)}static JSCallNativeFunctionPromise(t,...n){if(!this.Module||!this.Module.TUIRoomEngineWASM)throw new Ck({code:-1,message:`TUIRoomEngine is not ready, please listen to the ready event and re-execute the TUIRoomEngine.${t} method.`});return new Promise(((r,o)=>{const i=e=>{UN.info(`TUIRoomEngine.${t} success.`),r(Tk(e))},a=(e,n)=>{UN.warn(`TUIRoomEngine.${t} fail. `,e,n),o(new Ck({code:e,message:n}))};try{this.Module.TUIRoomEngineWASM[t](...n,i,a)}catch(VN){UN.warn(`TUIRoomEngine.${t} error. `,VN.code,VN.message),o(new Ck({code:VN.code||e.TUIErrorCode.ERR_FAILED,message:VN.message}))}}))}JSCallNativeFunctionPromise(t,...n){return new Promise(((r,o)=>{const i=e=>{this.logger.info(`roomEngine.${t} success`,Tk(e)),r(Tk(e))},a=(e,n)=>{this.logger.warn(`roomEngine.${t} fail. `,e,n),o(new Ck({code:e,message:n}))};try{n.length>0?this.roomEngineWASM[t](...n,i,a):this.roomEngineWASM[t](i,a)}catch(VN){this.logger.warn(`roomEngine.${t} error. `,VN.code,VN.message),o(new Ck({code:VN.code||e.TUIErrorCode.ERR_FAILED,message:VN.message}))}}))}JSCallNativeRequestFunctionPromise(t,...n){const r=n.splice(n.length-1,1)[0];return new Promise(((o,i)=>{const a=e=>{this.logger.info(`roomEngine.${t} success with request:`,Tk(e)),o(Tk(e))},s=(t,n,o,a,s)=>{t===e.TUIRequestCallbackType.kRequestError?(r({requestCallbackType:t,requestId:o,userId:a,code:n,message:s}),i(new Ck({code:n,message:s}))):r({requestCallbackType:t,requestId:o,userId:a,code:n,message:s})};try{this.roomEngineWASM[t](...n,a,s)}catch(VN){console.error(`roomEngine.${t} error. `,VN.code,VN.message),i(new Ck({code:VN.code||e.TUIErrorCode.ERR_FAILED,message:VN.message}))}}))}static login(e){return s(this,void 0,void 0,(function*(){LN.isReady||(yield kN.ready);const{sdkAppId:t,userId:n,userSig:r,tim:o}=e;LN.userId=n,LN.sdkAppId=t,o&&(kN.tim=o),UN.info("TUIRoomEngine.login with options: ",e),yield this.JSCallNativeFunctionPromise("login",t,n,r)}))}static setSelfInfo(e){return s(this,void 0,void 0,(function*(){UN.info("TUIRoomEngine.setSelfInfo with options: ",e);const{userName:t,avatarUrl:n,customInfo:r}=e,o={userName:t,avatarUrl:n,customInfo:JSON.stringify(r)};yield this.JSCallNativeFunctionPromise("setSelfInfo",o)}))}static getSelfInfo(){return s(this,void 0,void 0,(function*(){return yield this.JSCallNativeFunctionPromise("getSelfInfo")}))}static logout(){return s(this,void 0,void 0,(function*(){UN.info("TUIRoomEngine.logout."),yield this.JSCallNativeFunctionPromise("logout")}))}createRoom(t){return s(this,void 0,void 0,(function*(){const{roomId:n,roomName:r,roomType:o,maxSeatCount:i,isSeatEnabled:a=!1,seatMode:s=e.TUISeatMode.kFreeToTake,isMicrophoneDisableForAllUser:u,isScreenShareDisableForAllUser:c,isCameraDisableForAllUser:l,isMessageDisableForAllUser:d,password:f=""}=t;this.roomId=n,this.logger.update({sdkAppId:LN.sdkAppId,userId:LN.userId}),kN.roomInstanceMap.get(n)||kN.roomInstanceMap.set(n,{roomEngineWASM:this.roomEngineWASM,logger:this.logger}),delete t.password,this.logger.info("roomEngine.createRoom with options: ",t);const v={roomId:n,roomType:o,roomName:r,isSeatEnabled:a,seatMode:s,isMicrophoneDisableForAllUser:u,isScreenShareDisableForAllUser:c,isCameraDisableForAllUser:l,isMessageDisableForAllUser:d,maxSeatCount:i,password:f};yield this.JSCallNativeFunctionPromise("createRoom",v)}))}enterRoom(t){return s(this,void 0,void 0,(function*(){const{roomId:n,roomType:r=e.TUIRoomType.kConference,options:o={}}=t;delete t.options,this.logger.info("roomEngine.enterRoom with options: ",t),this.roomId=n,this.logger.update({sdkAppId:LN.sdkAppId,userId:LN.userId}),kN.roomInstanceMap.get(n)||kN.roomInstanceMap.set(n,{roomEngineWASM:this.roomEngineWASM,logger:this.logger});const i=yield this.JSCallNativeFunctionPromise("enterRoom",n,r,o);return this.handleDeviceManagerWASM(),i}))}destroyRoom(){return s(this,void 0,void 0,(function*(){this.logger.info("roomEngine.destroyRoom"),yield this.JSCallNativeFunctionPromise("destroyRoom"),this.roomId&&kN.roomInstanceMap.get(this.roomId)&&kN.roomInstanceMap.delete(this.roomId)}))}exitRoom(){return s(this,void 0,void 0,(function*(){this.logger.info("roomEngine.exitRoom"),yield this.JSCallNativeFunctionPromise("exitRoom",!1),this.roomId&&kN.roomInstanceMap.get(this.roomId)&&kN.roomInstanceMap.delete(this.roomId)}))}fetchRoomInfo(e){return s(this,void 0,void 0,(function*(){if(!e)return yield this.JSCallNativeFunctionPromise("fetchRoomInfo");const{roomId:t,roomType:n}=e;return yield this.JSCallNativeFunctionPromise("fetchRoomInfoById",t,n)}))}updateRoomNameByAdmin(e){return s(this,void 0,void 0,(function*(){this.logger.info("roomEngine.updateRoomNameByAdmin with options: ",e);const{roomName:t}=e;yield this.JSCallNativeFunctionPromise("updateRoomNameByAdmin",t)}))}updateRoomSeatModeByAdmin(e){return s(this,void 0,void 0,(function*(){this.logger.info("roomEngine.updateRoomSeatModeByAdmin with options: ",e);const{seatMode:t}=e;yield this.JSCallNativeFunctionPromise("updateRoomSeatModeByAdmin",t)}))}updateRoomPasswordByAdmin(e){return s(this,void 0,void 0,(function*(){this.logger.info("roomEngine.updateRoomPasswordByAdmin");const{password:t}=e;yield this.JSCallNativeFunctionPromise("updateRoomPasswordByAdmin",t)}))}getUserList(e){return s(this,void 0,void 0,(function*(){const t=e&&e.nextSequence||0;return yield this.JSCallNativeFunctionPromise("getUserList",t)}))}getUserInfo(e){return s(this,void 0,void 0,(function*(){const{userId:t}=e;return yield this.JSCallNativeFunctionPromise("getUserInfo",t)}))}setCustomInfoForUser(e){return s(this,void 0,void 0,(function*(){this.logger.info("roomEngine.setCustomInfoForUser with options: ",e);const{userId:t,customInfo:n}=e;return yield this.JSCallNativeFunctionPromise("setCustomInfoForUser",t,JSON.stringify(n))}))}setLocalVideoView(e){this.logger.info("roomEngine.setLocalVideoView with options: ",e);const{view:t}=e;this.JSCallNativeFunctionPromise("setLocalVideoView",t instanceof Array?t.join():t)}openLocalCamera(e={isFrontCamera:!0}){return s(this,void 0,void 0,(function*(){this.logger.info("roomEngine.openLocalCamera",e);const{isFrontCamera:t}=e,n=t?1:0;yield this.JSCallNativeFunctionPromise("openLocalCamera",n,this.localVideoQuality)}))}closeLocalCamera(){return s(this,void 0,void 0,(function*(){this.logger.info("roomEngine.closeLocalCamera"),yield this.JSCallNativeFunctionPromise("closeLocalCamera")}))}openLocalMicrophone(){return s(this,void 0,void 0,(function*(){this.logger.info("roomEngine.openLocalMicrophone");try{yield this.JSCallNativeFunctionPromise("openLocalMicrophone",this.localAudioQuality)}catch(e){if("you have been muted the audio"===e.message||"open microphone need apply to admin"===e.message)return void this.logger.warn(e);throw e}}))}closeLocalMicrophone(){return s(this,void 0,void 0,(function*(){this.logger.info("roomEngine.closeLocalMicrophone"),yield this.JSCallNativeFunctionPromise("closeLocalMicrophone")}))}updateVideoQuality(e){return s(this,void 0,void 0,(function*(){this.logger.info("roomEngine.updateVideoQuality with options: ",e);const{quality:t}=e;this.localVideoQuality=t,yield this.JSCallNativeFunctionPromise("updateVideoQuality",t)}))}setVideoResolutionMode(e){return s(this,void 0,void 0,(function*(){this.logger.info("roomEngine.setVideoResolutionMode with options: ",e);const{streamType:t,resolutionMode:n}=e;yield this.JSCallNativeFunctionPromise("setVideoResolutionMode",t,n)}))}updateVideoQualityEx(t){return s(this,void 0,void 0,(function*(){this.logger.info("roomEngine.updateVideoQualityEx with options: ",t);const{streamType:n,encoderParams:r}=t;r&&r.videoResolution&&n===e.TUIVideoStreamType.kCameraStream?this.localVideoQuality=r&&r.videoResolution:r&&r.quality&&(this.localVideoQuality=r&&r.quality,r.videoResolution=r.quality),yield this.JSCallNativeFunctionPromise("updateVideoQualityEx",n,r)}))}updateAudioQuality(e){return s(this,void 0,void 0,(function*(){this.logger.info("roomEngine.updateAudioQuality with options: ",e);const{quality:t}=e;this.localAudioQuality=t,yield this.JSCallNativeFunctionPromise("updateAudioQuality",t)}))}startPushLocalVideo(){return s(this,void 0,void 0,(function*(){this.logger.info("roomEngine.startPushLocalVideo"),yield this.JSCallNativeFunctionPromise("startPushLocalVideo")}))}stopPushLocalVideo(){return s(this,void 0,void 0,(function*(){this.logger.info("roomEngine.stopPushLocalVideo"),yield this.JSCallNativeFunctionPromise("stopPushLocalVideo")}))}muteLocalAudio(){return s(this,void 0,void 0,(function*(){this.logger.info("roomEngine.muteLocalAudio"),yield this.JSCallNativeFunctionPromise("muteLocalAudio")}))}unmuteLocalAudio(){return s(this,void 0,void 0,(function*(){this.logger.info("roomEngine.unmuteLocalAudio"),yield this.JSCallNativeFunctionPromise("unmuteLocalAudio")}))}setRemoteVideoView(e){return s(this,void 0,void 0,(function*(){this.logger.info("roomEngine.setRemoteVideoView with options: ",e);const{userId:t,streamType:n,view:r}=e;yield this.JSCallNativeFunctionPromise("setRemoteVideoView",t,n,r instanceof Array?r.join():r)}))}startPlayRemoteVideo(t){return s(this,void 0,void 0,(function*(){this.logger.info("roomEngine.startPlayRemoteVideo with options: ",t);const{userId:n,streamType:r}=t;return new Promise(((t,o)=>{const i=(...e)=>{console.log("roomEngine startPlayRemoteVideo playingCallback",...e),t()},a=(...e)=>{console.log("roomEngine startPlayRemoteVideo loadingCallback",...e)},s=(...e)=>{console.log("roomEngine startPlayRemoteVideo errorCallback",...e),o()};try{this.roomEngineWASM.startPlayRemoteVideo(n,r,i,a,s)}catch(VN){console.error("roomEngine.startPlayRemoteVideo error. ",VN.code,VN.message);const n=new Ck({code:VN.code||e.TUIErrorCode.ERR_FAILED,message:VN.message});o(n)}}))}))}stopPlayRemoteVideo(e){return s(this,void 0,void 0,(function*(){this.logger.info("roomEngine.stopPlayRemoteVideo with options: ",e);const{userId:t,streamType:n}=e;yield this.JSCallNativeFunctionPromise("stopPlayRemoteVideo",t,n)}))}muteRemoteAudioStream(e){return s(this,void 0,void 0,(function*(){this.logger.info("roomEngine.muteRemoteAudioStream with options",e);const{userId:t,isMute:n}=e;yield this.JSCallNativeFunctionPromise("muteRemoteAudioStream",t,n)}))}openRemoteDeviceByAdmin(e){return s(this,void 0,void 0,(function*(){this.logger.info("roomEngine.openRemoteDeviceByAdmin with options: ",e),e.requestCallback||(e.requestCallback=()=>{});const{userId:t,device:n,timeout:r,requestCallback:o}=e;return yield this.JSCallNativeRequestFunctionPromise("openRemoteDeviceByAdmin",t,n,r,o)}))}applyToAdminToOpenLocalDevice(e){return s(this,void 0,void 0,(function*(){this.logger.info("roomEngine.applyToAdminToOpenLocalDevice with options: ",e),e.requestCallback||(e.requestCallback=()=>{});const{device:t,timeout:n,requestCallback:r}=e;return yield this.JSCallNativeRequestFunctionPromise("applyToAdminToOpenLocalDevice",t,n,r)}))}closeRemoteDeviceByAdmin(e){return s(this,void 0,void 0,(function*(){this.logger.info("roomEngine.closeRemoteDeviceByAdmin with options: ",e);const{userId:t,device:n}=e;yield this.JSCallNativeFunctionPromise("closeRemoteDeviceByAdmin",t,n)}))}cancelRequest(e){return s(this,void 0,void 0,(function*(){this.logger.info("roomEngine.cancelRequest with options: ",e);const{requestId:t}=e;return yield this.JSCallNativeFunctionPromise("cancelRequest",t)}))}responseRemoteRequest(e){return s(this,void 0,void 0,(function*(){this.logger.info("roomEngine.responseRemoteRequest with options: ",e);const{requestId:t,agree:n}=e;return yield this.JSCallNativeFunctionPromise("responseRemoteRequest",t,n)}))}disableDeviceForAllUserByAdmin(e){return s(this,void 0,void 0,(function*(){this.logger.info("roomEngine.disableDeviceForAllUserByAdmin with options: ",e);const{device:t,isDisable:n}=e;yield this.JSCallNativeFunctionPromise("disableDeviceForAllUserByAdmin",t,n)}))}disableSendingMessageForAllUser(e){return s(this,void 0,void 0,(function*(){this.logger.info("roomEngine.disableSendingMessageForAllUser with options: ",e);const{isDisable:t}=e;yield this.JSCallNativeFunctionPromise("disableSendingMessageForAllUser",t)}))}disableSendingMessageByAdmin(e){return s(this,void 0,void 0,(function*(){const{userId:t,isDisable:n}=e;yield this.JSCallNativeFunctionPromise("disableSendingMessageByAdmin",t,n)}))}changeUserRole(e){return s(this,void 0,void 0,(function*(){this.logger.info("roomEngine.changeUserRole with options: ",e);const{userId:t,userRole:n}=e;yield this.JSCallNativeFunctionPromise("changeUserRole",t,n)}))}changeUserNameCard(e){return s(this,void 0,void 0,(function*(){this.logger.info("roomEngine.changeUserNameCard with options: ",e);const{userId:t,nameCard:n}=e;yield this.JSCallNativeFunctionPromise("changeUserNameCard",t,n)}))}kickRemoteUserOutOfRoom(e){return s(this,void 0,void 0,(function*(){this.logger.info("roomEngine.kickRemoteUserOutOfRoom with options: ",e);const{userId:t}=e;yield this.JSCallNativeFunctionPromise("kickRemoteUserOutOfRoom",t)}))}getSeatList(){return s(this,void 0,void 0,(function*(){return yield this.JSCallNativeFunctionPromise("getSeatList")}))}takeSeat(t){return s(this,void 0,void 0,(function*(){this.logger.info("roomEngine.takeSeat with options: ",t),t.requestCallback||(t.requestCallback=()=>{});const{seatIndex:n,timeout:r,requestCallback:o}=t;let i=!0,a={content:"",requestAction:0,requestId:"",timestamp:0,userId:"",userName:"",nameCard:"",avatarUrl:""};return new Promise(((t,s)=>{const u=e=>{const n=Tk(e);""===n.requestId?(i=!1,a=n):(this.logger.info("roomEngine.takeSeat success with requestId:",n.requestId),t(n))},c=(n,r,u,c,l)=>{const d={requestCallbackType:n,requestId:u,userId:c,code:r,message:l};if(o(d),n===e.TUIRequestCallbackType.kRequestAccepted&&!i)return this.logger.info("roomEngine.takeSeat success without request."),void t(a);this.logger.info("roomEngine.takeSeat response data:",d),n===e.TUIRequestCallbackType.kRequestError&&s(new Ck({code:r,message:l}))};try{this.roomEngineWASM.takeSeat(n,r,u,c)}catch(VN){console.error("roomEngine.takeSeat error. ",VN.code,VN.message),s(new Ck({code:VN.code||e.TUIErrorCode.ERR_FAILED,message:VN.message}))}}))}))}leaveSeat(){return s(this,void 0,void 0,(function*(){this.logger.info("roomEngine.leaveSeat"),yield this.JSCallNativeFunctionPromise("leaveSeat")}))}moveToSeat(e){return s(this,void 0,void 0,(function*(){this.logger.info("roomEngine.moveToSeat with options:",e);const{targetSeatIndex:t}=e;yield this.JSCallNativeFunctionPromise("moveToSeat",t)}))}takeUserOnSeatByAdmin(e){return s(this,void 0,void 0,(function*(){this.logger.info("roomEngine.takeUserOnSeatByAdmin with options: ",e),e.requestCallback||(e.requestCallback=()=>{});const{seatIndex:t,userId:n,timeout:r,requestCallback:o}=e;return yield this.JSCallNativeRequestFunctionPromise("takeUserOnSeatByAdmin",t,n,r,o)}))}kickUserOffSeatByAdmin(e){return s(this,void 0,void 0,(function*(){this.logger.info("roomEngine.kickUserOffSeatByAdmin with options: ",e);const{seatIndex:t,userId:n}=e;yield this.JSCallNativeFunctionPromise("kickUserOffSeatByAdmin",t,n)}))}lockSeatByAdmin(e){return s(this,void 0,void 0,(function*(){this.logger.info("roomEngine.lockSeatByAdmin with options: ",e);const{seatIndex:t,lockParams:n}=e;return yield this.JSCallNativeFunctionPromise("lockSeatByAdmin",t,n)}))}getSeatApplicationList(){return s(this,void 0,void 0,(function*(){return yield this.JSCallNativeFunctionPromise("getSeatApplicationList")}))}sendTextMessage(e){return s(this,void 0,void 0,(function*(){this.logger.warn("roomEngine.sendTextMessage is deprecated since v2.0.0, Please use roomEngine.getTIM.")}))}sendCustomMessage(e){return s(this,void 0,void 0,(function*(){this.logger.warn("roomEngine.sendCustomMessage is deprecated since v2.0.0, Please use roomEngine.getTIM.")}))}on(e,t){this.logger.info(`listen for event: ${e}`),PN.on(e,t)}observerFunction(t,n){const r=Ek(t,n);"{}"===JSON.stringify(r)?PN.emit(t):(this.supportForDeprecatedEvents(t,r),PN.emit(t,r));[e.TUIRoomEvents.onUserVoiceVolumeChanged,e.TUIRoomEvents.onUserNetworkQualityChanged,e.TUIRoomEvents.onReceiveTextMessage,e.TUIRoomEvents.onReceiveCustomMessage].includes(t)||(t!==e.TUIRoomEvents.onSeatListChanged?this.logger.info(`RoomEngine received event: [${t}] ${JSON.stringify(r)}`):this.logger.info(`RoomEngine received event: [onSeatListChanged] {seatedList: ${JSON.stringify(r.seatedList)}, leftList: ${JSON.stringify(r.leftList)}}`))}supportForDeprecatedEvents(t,n){switch(t){case e.TUIRoomEvents.onUserRoleChanged:n.userId=n.userInfo.userId,n.userRole=n.userInfo.userRole;break;case e.TUIRoomEvents.onKickedOffSeat:n.userId=n.userInfo.userId;break;case e.TUIRoomEvents.onRequestCancelled:case e.TUIRoomEvents.onRequestProcessed:n.userId=n.userInfo.userId,n.requestId=n.request.requestId}}off(e,t){PN.off(e,t)}getCameraDevicesList(){return s(this,void 0,void 0,(function*(){return[]}))}getMicDevicesList(){return s(this,void 0,void 0,(function*(){return[]}))}getSpeakerDevicesList(){return s(this,void 0,void 0,(function*(){return[]}))}setCurrentCameraDevice(e){return s(this,void 0,void 0,(function*(){}))}switchCamera(e){return s(this,void 0,void 0,(function*(){this.logger.info("roomEngine.switchCamera with options: ",e);const{isFrontCamera:t}=e;yield this.trtcCloud.switchCamera(t)}))}setCurrentMicDevice(e){return s(this,void 0,void 0,(function*(){}))}setCurrentSpeakerDevice(e){return s(this,void 0,void 0,(function*(){}))}getCurrentCameraDevice(){}getCurrentMicDevice(){}getCurrentSpeakerDevice(){}startCameraDeviceTest(e){return s(this,void 0,void 0,(function*(){}))}stopCameraDeviceTest(){return s(this,void 0,void 0,(function*(){}))}startMicDeviceTest(e){return s(this,void 0,void 0,(function*(){}))}stopMicDeviceTest(){return s(this,void 0,void 0,(function*(){}))}getMediaDeviceManager(){return this.deviceManager||(this.deviceManager=new Hk({logger:this.logger,Module:LN.Module,trtcCloud:this.trtcCloud}),this.deviceManagerWASM&&this.deviceManager.setDeviceManagerWASM(this.deviceManagerWASM)),this.deviceManager}handleDeviceManagerWASM(){try{this.deviceManagerWASM=this.roomEngineWASM.getMediaDeviceManager(),this.deviceManager&&this.deviceManager.setDeviceManagerWASM(this.deviceManagerWASM)}catch(VN){this.logger.error("handleDeviceManagerWASM error",VN)}}getConferenceListManager(){return this.conferenceListManager||(this.conferenceListManager=new Xk({logger:this.logger,Module:LN.Module,roomEngineWASM:this.roomEngineWASM})),this.conferenceListManager}getConferenceInvitationManager(){return this.conferenceInvitationManager||(this.conferenceInvitationManager=new eN({logger:this.logger,Module:LN.Module,roomEngineWASM:this.roomEngineWASM})),this.conferenceInvitationManager}getTRTCCloud(){return this.trtcCloud}getTIM(){return kN.tim}destroy(){this.logger.info("roomEngine.destroy"),this.roomEngineWASM.delete()}static callExperimentalAPI(e){return s(this,void 0,void 0,(function*(){UN.info("TUIRoomEngine.callExperimentalAPI",e);const t=Tk(e);if(t===e)return;const{api:n,params:r}=t;if(n&&r)if("setFramework"===n)yield LN.handleSetFramework(r);else yield LN.JSCallNativeFunctionPromise("callExperimentalAPI",e)}))}static handleSetFramework(e){return s(this,void 0,void 0,(function*(){const{component:t,language:n}=e,r={[Bk.ELECTRON]:2,[Bk.MINI_PROGRAM]:3,[Bk.WEB]:30},o={TUIRoomEngine:16,TUIRoomKit:18,TIMRoomKit:19,TUILiveKit:21,VoiceRoom:22,EngineLive:23,Classroom:24},i={vue2:5,vue3:6};if(o[t]&&i[n]){const e=JSON.stringify({api:"setFramework",params:{framework:r[ON],component:o[t],language:i[n]}});yield LN.JSCallNativeFunctionPromise("callExperimentalAPI",e)}}))}}LN.className="TUIRoomEngine",LN.isReady=!1,a([Nk(Wk.createRoom)],LN.prototype,"createRoom",null),a([Nk(Wk.enterRoom)],LN.prototype,"enterRoom",null),a([Nk(Wk.updateRoomNameByAdmin)],LN.prototype,"updateRoomNameByAdmin",null),a([Nk(Wk.updateRoomSeatModeByAdmin)],LN.prototype,"updateRoomSeatModeByAdmin",null),a([Nk(Wk.updateRoomPasswordByAdmin)],LN.prototype,"updateRoomPasswordByAdmin",null),a([Nk(Wk.getUserList)],LN.prototype,"getUserList",null),a([Nk(Wk.getUserInfo)],LN.prototype,"getUserInfo",null),a([Nk(Wk.setCustomInfoForUser)],LN.prototype,"setCustomInfoForUser",null),a([kk(Wk.setLocalVideoView)],LN.prototype,"setLocalVideoView",null),a([Nk(Wk.openLocalCamera)],LN.prototype,"openLocalCamera",null),a([Nk(Wk.updateVideoQuality)],LN.prototype,"updateVideoQuality",null),a([Nk(Wk.setVideoResolutionMode)],LN.prototype,"setVideoResolutionMode",null),a([Nk(Wk.updateVideoQualityEx)],LN.prototype,"updateVideoQualityEx",null),a([Nk(Wk.updateAudioQuality)],LN.prototype,"updateAudioQuality",null),a([kk(Wk.setRemoteVideoView)],LN.prototype,"setRemoteVideoView",null),a([kk(Wk.startPlayRemoteVideo)],LN.prototype,"startPlayRemoteVideo",null),a([Nk(Wk.stopPlayRemoteVideo)],LN.prototype,"stopPlayRemoteVideo",null),a([kk(Wk.muteRemoteAudioStream)],LN.prototype,"muteRemoteAudioStream",null),a([Nk(Wk.openRemoteDeviceByAdmin)],LN.prototype,"openRemoteDeviceByAdmin",null),a([Nk(Wk.applyToAdminToOpenLocalDevice)],LN.prototype,"applyToAdminToOpenLocalDevice",null),a([Nk(Wk.closeRemoteDeviceByAdmin)],LN.prototype,"closeRemoteDeviceByAdmin",null),a([Nk(Wk.cancelRequest)],LN.prototype,"cancelRequest",null),a([Nk(Wk.responseRemoteRequest)],LN.prototype,"responseRemoteRequest",null),a([Nk(Wk.disableDeviceForAllUserByAdmin)],LN.prototype,"disableDeviceForAllUserByAdmin",null),a([Nk(Wk.disableSendingMessageForAllUser)],LN.prototype,"disableSendingMessageForAllUser",null),a([Nk(Wk.disableSendingMessageByAdmin)],LN.prototype,"disableSendingMessageByAdmin",null),a([Nk(Wk.changeUserRole)],LN.prototype,"changeUserRole",null),a([Nk(Wk.changeUserNameCard)],LN.prototype,"changeUserNameCard",null),a([Nk(Wk.kickRemoteUserOutOfRoom)],LN.prototype,"kickRemoteUserOutOfRoom",null),a([Nk(Wk.takeSeat)],LN.prototype,"takeSeat",null),a([Nk(Wk.takeUserOnSeatByAdmin)],LN.prototype,"takeUserOnSeatByAdmin",null),a([Nk(Wk.kickUserOffSeatByAdmin)],LN.prototype,"kickUserOffSeatByAdmin",null),a([Nk(Wk.lockSeatByAdmin)],LN.prototype,"lockSeatByAdmin",null),a([Nk(Wk.setCurrentCameraDevice)],LN.prototype,"setCurrentCameraDevice",null),a([Nk(Wk.setCurrentMicDevice)],LN.prototype,"setCurrentMicDevice",null),a([Nk(Wk.setCurrentSpeakerDevice)],LN.prototype,"setCurrentSpeakerDevice",null),a([Nk(Wk.login),Lk()],LN,"login",null),a([Nk(Wk.setSelfInfo)],LN,"setSelfInfo",null),a([Lk()],LN,"logout",null),Object.defineProperty(e,"TIM",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"TencentCloudChat",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"TRTCCloud",{enumerable:!0,get:function(){return i.default}}),e.Rect=wN,e.TRTCDeviceInfo=RN,e.TRTCImageBuffer=AN,e.TRTCLocalStatistics=class{constructor(t=0,n=0,r=0,o=0,i=0,a=0,s=e.TRTCVideoStreamType.TRTCVideoStreamTypeBig){this.width=t,this.height=n,this.frameRate=r,this.videoBitrate=o,this.audioSampleRate=i,this.audioBitrate=a,this.streamType=s}},e.TRTCMixUser=class{constructor(t="",n="",r=null,o=0,i=!1,a=e.TRTCVideoStreamType.TRTCVideoStreamTypeBig,s=e.TRTCMixInputType.TRTCMixInputTypeUndefined,u=0){this.userId=t,this.roomId=n,this.rect=r,this.zOrder=o,this.pureAudio=i,this.streamType=a,this.inputType=s,this.renderMode=u}},e.TRTCNetworkQosParam=class{constructor(t=e.TRTCVideoQosPreference.TRTCVideoQosPreferenceClear,n=e.TRTCQosControlMode.TRTCQosControlModeServer){this.preference=t,this.controlMode=n}},e.TRTCParams=EN,e.TRTCPublishCDNParam=class{constructor(e=0,t=0,n=null){this.appId=e,this.bizId=t,this.url=n}},e.TRTCQualityInfo=IN,e.TRTCRenderParams=class{constructor(t=e.TRTCVideoRotation.TRTCVideoRotation0,n=e.TRTCVideoFillMode.TRTCVideoFillMode_Fit,r=e.TRTCVideoMirrorType.TRTCVideoMirrorType_Disable){this.rotation=t,this.fillMode=n,this.mirrorType=r}},e.TRTCScreenCaptureSourceInfo=bN,e.TRTCStatistics=_N,e.TRTCTranscodingConfig=class{constructor(t=e.TRTCTranscodingConfigMode.TRTCTranscodingConfigMode_Unknown,n=0,r=0,o=0,i=0,a=0,s=15,u=2,c=0,l="",d=64,f=48e3,v=1,h=[],p=""){this.mode=t,this.appId=n,this.bizId=r,this.videoWidth=o,this.videoHeight=i,this.videoBitrate=a,this.videoFramerate=s,this.videoGOP=u,this.backgroundColor=c,this.backgroundImage=l,this.audioSampleRate=d,this.audioBitrate=f,this.audioChannels=v,this.mixUsersArray=h,this.mixUsersArraySize=h.length,this.streamId=p}},e.TRTCVideoEncParam=CN,e.TRTCVolumeInfo=SN,e.TUIConferenceInvitationManager=eN,e.TUIConferenceListManager=Xk,e.TUIRoomDeviceManager=Hk,e.TUIRoomEngine=LN,e.default=LN,Object.defineProperty(e,"__esModule",{value:!0})}));