UNPKG

zego-express-engine-webrtc

Version:

zego webrtc express sdk

1 lines 1.9 MB
!function(t,i){if("object"==typeof exports&&"object"==typeof module)module.exports=i(require("long"),require("protobufjs/minimal"),require("zego-express-logger"),require("localforage"));else if("function"==typeof define&&define.amd)define(["long","protobufjs/minimal","zego-express-logger","localforage"],i);else{var n="object"==typeof exports?i(require("long"),require("protobufjs/minimal"),require("zego-express-logger"),require("localforage")):i(t.long,t["protobufjs/minimal"],t["zego-express-logger"],t.localforage);for(var e in n)("object"==typeof exports?exports:t)[e]=n[e]}}("undefined"!=typeof self?self:this,(function(t,i,n,e){return function(){var r={955:function(t,i,n){var e;t.exports=(e=n(9021),n(754),n(4636),n(9506),n(7165),function(){var t=e,i=t.lib.BlockCipher,n=t.algo,r=[],s=[],o=[],u=[],a=[],c=[],h=[],f=[],l=[],d=[];!function(){for(var t=[],i=0;i<256;i++)t[i]=i<128?i<<1:i<<1^283;var n=0,e=0;for(i=0;i<256;i++){var v=e^e<<1^e<<2^e<<3^e<<4;r[n]=v=v>>>8^255&v^99,s[v]=n;var m,p=t[n],g=t[p],b=t[g];o[n]=(m=257*t[v]^16843008*v)<<24|m>>>8,u[n]=m<<16|m>>>16,a[n]=m<<8|m>>>24,c[n]=m,h[v]=(m=16843009*b^65537*g^257*p^16843008*n)<<24|m>>>8,f[v]=m<<16|m>>>16,l[v]=m<<8|m>>>24,d[v]=m,n?(n=p^t[t[t[b^p]]],e^=t[t[e]]):n=e=1}}();var v=[0,1,2,4,8,16,32,64,128,27,54],m=n.AES=i.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var t=this._keyPriorReset=this._key,i=t.words,n=t.sigBytes/4,e=4*((this._nRounds=n+6)+1),s=this._keySchedule=[],o=0;o<e;o++)o<n?s[o]=i[o]:(c=s[o-1],o%n?n>6&&o%n==4&&(c=r[c>>>24]<<24|r[c>>>16&255]<<16|r[c>>>8&255]<<8|r[255&c]):(c=r[(c=c<<8|c>>>24)>>>24]<<24|r[c>>>16&255]<<16|r[c>>>8&255]<<8|r[255&c],c^=v[o/n|0]<<24),s[o]=s[o-n]^c);for(var u=this._invKeySchedule=[],a=0;a<e;a++){if(o=e-a,a%4)var c=s[o];else c=s[o-4];u[a]=a<4||o<=4?c:h[r[c>>>24]]^f[r[c>>>16&255]]^l[r[c>>>8&255]]^d[r[255&c]]}}},encryptBlock:function(t,i){this._doCryptBlock(t,i,this._keySchedule,o,u,a,c,r)},decryptBlock:function(t,i){var n=t[i+1];t[i+1]=t[i+3],t[i+3]=n,this._doCryptBlock(t,i,this._invKeySchedule,h,f,l,d,s),n=t[i+1],t[i+1]=t[i+3],t[i+3]=n},_doCryptBlock:function(t,i,n,e,r,s,o,u){for(var a=this._nRounds,c=t[i]^n[0],h=t[i+1]^n[1],f=t[i+2]^n[2],l=t[i+3]^n[3],d=4,v=1;v<a;v++){var m=e[c>>>24]^r[h>>>16&255]^s[f>>>8&255]^o[255&l]^n[d++],p=e[h>>>24]^r[f>>>16&255]^s[l>>>8&255]^o[255&c]^n[d++],g=e[f>>>24]^r[l>>>16&255]^s[c>>>8&255]^o[255&h]^n[d++],b=e[l>>>24]^r[c>>>16&255]^s[h>>>8&255]^o[255&f]^n[d++];c=m,h=p,f=g,l=b}m=(u[c>>>24]<<24|u[h>>>16&255]<<16|u[f>>>8&255]<<8|u[255&l])^n[d++],p=(u[h>>>24]<<24|u[f>>>16&255]<<16|u[l>>>8&255]<<8|u[255&c])^n[d++],g=(u[f>>>24]<<24|u[l>>>16&255]<<16|u[c>>>8&255]<<8|u[255&h])^n[d++],b=(u[l>>>24]<<24|u[c>>>16&255]<<16|u[h>>>8&255]<<8|u[255&f])^n[d++],t[i]=m,t[i+1]=p,t[i+2]=g,t[i+3]=b},keySize:8});t.AES=i._createHelper(m)}(),e.AES)},7165:function(t,i,n){var e;t.exports=(e=n(9021),n(9506),void(e.lib.Cipher||function(t){var i=e,n=i.lib,r=n.Base,s=n.WordArray,o=n.BufferedBlockAlgorithm,u=i.enc,a=u.Base64,c=i.algo.EvpKDF,h=n.Cipher=o.extend({cfg:r.extend(),createEncryptor:function(t,i){return this.create(this._ENC_XFORM_MODE,t,i)},createDecryptor:function(t,i){return this.create(this._DEC_XFORM_MODE,t,i)},init:function(t,i,n){this.cfg=this.cfg.extend(n),this._xformMode=t,this._key=i,this.reset()},reset:function(){o.reset.call(this),this._doReset()},process:function(t){return this._append(t),this._process()},finalize:function(t){return t&&this._append(t),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function t(t){return"string"==typeof t?_:g}return function(i){return{encrypt:function(n,e,r){return t(e).encrypt(i,n,e,r)},decrypt:function(n,e,r){return t(e).decrypt(i,n,e,r)}}}}()}),f=(n.StreamCipher=h.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),i.mode={}),l=n.BlockCipherMode=r.extend({createEncryptor:function(t,i){return this.Encryptor.create(t,i)},createDecryptor:function(t,i){return this.Decryptor.create(t,i)},init:function(t,i){this._cipher=t,this._iv=i}}),d=f.CBC=function(){var i=l.extend();function n(i,n,e){var r,s=this._iv;s?(r=s,this._iv=t):r=this._prevBlock;for(var o=0;o<e;o++)i[n+o]^=r[o]}return i.Encryptor=i.extend({processBlock:function(t,i){var e=this._cipher,r=e.blockSize;n.call(this,t,i,r),e.encryptBlock(t,i),this._prevBlock=t.slice(i,i+r)}}),i.Decryptor=i.extend({processBlock:function(t,i){var e=this._cipher,r=e.blockSize,s=t.slice(i,i+r);e.decryptBlock(t,i),n.call(this,t,i,r),this._prevBlock=s}}),i}(),v=(i.pad={}).Pkcs7={pad:function(t,i){for(var n=4*i,e=n-t.sigBytes%n,r=e<<24|e<<16|e<<8|e,o=[],u=0;u<e;u+=4)o.push(r);var a=s.create(o,e);t.concat(a)},unpad:function(t){t.sigBytes-=255&t.words[t.sigBytes-1>>>2]}},m=(n.BlockCipher=h.extend({cfg:h.cfg.extend({mode:d,padding:v}),reset:function(){var t;h.reset.call(this);var i=this.cfg,n=i.iv,e=i.mode;this._xformMode==this._ENC_XFORM_MODE?t=e.createEncryptor:(t=e.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==t?this._mode.init(this,n&&n.words):(this._mode=t.call(e,this,n&&n.words),this._mode.__creator=t)},_doProcessBlock:function(t,i){this._mode.processBlock(t,i)},_doFinalize:function(){var t,i=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(i.pad(this._data,this.blockSize),t=this._process(!0)):(t=this._process(!0),i.unpad(t)),t},blockSize:4}),n.CipherParams=r.extend({init:function(t){this.mixIn(t)},toString:function(t){return(t||this.formatter).stringify(this)}})),p=(i.format={}).OpenSSL={stringify:function(t){var i=t.ciphertext,n=t.salt;return(n?s.create([1398893684,1701076831]).concat(n).concat(i):i).toString(a)},parse:function(t){var i,n=a.parse(t),e=n.words;return 1398893684==e[0]&&1701076831==e[1]&&(i=s.create(e.slice(2,4)),e.splice(0,4),n.sigBytes-=16),m.create({ciphertext:n,salt:i})}},g=n.SerializableCipher=r.extend({cfg:r.extend({format:p}),encrypt:function(t,i,n,e){e=this.cfg.extend(e);var r=t.createEncryptor(n,e),s=r.finalize(i),o=r.cfg;return m.create({ciphertext:s,key:n,iv:o.iv,algorithm:t,mode:o.mode,padding:o.padding,blockSize:t.blockSize,formatter:e.format})},decrypt:function(t,i,n,e){return e=this.cfg.extend(e),i=this._parse(i,e.format),t.createDecryptor(n,e).finalize(i.ciphertext)},_parse:function(t,i){return"string"==typeof t?i.parse(t,this):t}}),b=(i.kdf={}).OpenSSL={execute:function(t,i,n,e,r){if(e||(e=s.random(8)),r)o=c.create({keySize:i+n,hasher:r}).compute(t,e);else var o=c.create({keySize:i+n}).compute(t,e);var u=s.create(o.words.slice(i),4*n);return o.sigBytes=4*i,m.create({key:o,iv:u,salt:e})}},_=n.PasswordBasedCipher=g.extend({cfg:g.cfg.extend({kdf:b}),encrypt:function(t,i,n,e){var r=(e=this.cfg.extend(e)).kdf.execute(n,t.keySize,t.ivSize,e.salt,e.hasher);e.iv=r.iv;var s=g.encrypt.call(this,t,i,r.key,e);return s.mixIn(r),s},decrypt:function(t,i,n,e){e=this.cfg.extend(e),i=this._parse(i,e.format);var r=e.kdf.execute(n,t.keySize,t.ivSize,i.salt,e.hasher);return e.iv=r.iv,g.decrypt.call(this,t,i,r.key,e)}})}()))},9021:function(t,i,n){var e;t.exports=(e=e||function(t,i){var e;if("undefined"!=typeof window&&window.crypto&&(e=window.crypto),"undefined"!=typeof self&&self.crypto&&(e=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(e=globalThis.crypto),!e&&"undefined"!=typeof window&&window.msCrypto&&(e=window.msCrypto),!e&&void 0!==n.g&&n.g.crypto&&(e=n.g.crypto),!e)try{e=n(477)}catch(t){}var r=function(){if(e){if("function"==typeof e.getRandomValues)try{return e.getRandomValues(new Uint32Array(1))[0]}catch(t){}if("function"==typeof e.randomBytes)try{return e.randomBytes(4).readInt32LE()}catch(t){}}throw new Error("Native crypto module could not be used to get secure random number.")},s=Object.create||function(){function t(){}return function(i){var n;return t.prototype=i,n=new t,t.prototype=null,n}}(),o={},u=o.lib={},a=u.Base={extend:function(t){var i=s(this);return t&&i.mixIn(t),i.hasOwnProperty("init")&&this.init!==i.init||(i.init=function(){i.$super.init.apply(this,arguments)}),i.init.prototype=i,i.$super=this,i},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},c=u.WordArray=a.extend({init:function(t,n){t=this.words=t||[],this.sigBytes=n!=i?n:4*t.length},toString:function(t){return(t||f).stringify(this)},concat:function(t){var i=this.words,n=t.words,e=this.sigBytes,r=t.sigBytes;if(this.clamp(),e%4)for(var s=0;s<r;s++)i[e+s>>>2]|=(n[s>>>2]>>>24-s%4*8&255)<<24-(e+s)%4*8;else for(var o=0;o<r;o+=4)i[e+o>>>2]=n[o>>>2];return this.sigBytes+=r,this},clamp:function(){var i=this.words,n=this.sigBytes;i[n>>>2]&=4294967295<<32-n%4*8,i.length=t.ceil(n/4)},clone:function(){var t=a.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var i=[],n=0;n<t;n+=4)i.push(r());return new c.init(i,t)}}),h=o.enc={},f=h.Hex={stringify:function(t){for(var i=t.words,n=t.sigBytes,e=[],r=0;r<n;r++){var s=i[r>>>2]>>>24-r%4*8&255;e.push((s>>>4).toString(16)),e.push((15&s).toString(16))}return e.join("")},parse:function(t){for(var i=t.length,n=[],e=0;e<i;e+=2)n[e>>>3]|=parseInt(t.substr(e,2),16)<<24-e%8*4;return new c.init(n,i/2)}},l=h.Latin1={stringify:function(t){for(var i=t.words,n=t.sigBytes,e=[],r=0;r<n;r++)e.push(String.fromCharCode(i[r>>>2]>>>24-r%4*8&255));return e.join("")},parse:function(t){for(var i=t.length,n=[],e=0;e<i;e++)n[e>>>2]|=(255&t.charCodeAt(e))<<24-e%4*8;return new c.init(n,i)}},d=h.Utf8={stringify:function(t){try{return decodeURIComponent(escape(l.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return l.parse(unescape(encodeURIComponent(t)))}},v=u.BufferedBlockAlgorithm=a.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=d.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(i){var n,e=this._data,r=e.words,s=e.sigBytes,o=this.blockSize,u=s/(4*o),a=(u=i?t.ceil(u):t.max((0|u)-this._minBufferSize,0))*o,h=t.min(4*a,s);if(a){for(var f=0;f<a;f+=o)this._doProcessBlock(r,f);n=r.splice(0,a),e.sigBytes-=h}return new c.init(n,h)},clone:function(){var t=a.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0}),m=(u.Hasher=v.extend({cfg:a.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){v.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){return t&&this._append(t),this._doFinalize()},blockSize:16,_createHelper:function(t){return function(i,n){return new t.init(n).finalize(i)}},_createHmacHelper:function(t){return function(i,n){return new m.HMAC.init(t,n).finalize(i)}}}),o.algo={});return o}(Math),e)},754:function(t,i,n){var e;t.exports=(e=n(9021),function(){var t=e.lib.WordArray;function i(i,n,e){for(var r=[],s=0,o=0;o<n;o++)if(o%4){var u=e[i.charCodeAt(o-1)]<<o%4*2,a=e[i.charCodeAt(o)]>>>6-o%4*2;r[s>>>2]|=(u|a)<<24-s%4*8,s++}return t.create(r,s)}e.enc.Base64={stringify:function(t){var i=t.words,n=t.sigBytes,e=this._map;t.clamp();for(var r=[],s=0;s<n;s+=3)for(var o=(i[s>>>2]>>>24-s%4*8&255)<<16|(i[s+1>>>2]>>>24-(s+1)%4*8&255)<<8|i[s+2>>>2]>>>24-(s+2)%4*8&255,u=0;u<4&&s+.75*u<n;u++)r.push(e.charAt(o>>>6*(3-u)&63));var a=e.charAt(64);if(a)for(;r.length%4;)r.push(a);return r.join("")},parse:function(t){var n=t.length,e=this._map,r=this._reverseMap;if(!r){r=this._reverseMap=[];for(var s=0;s<e.length;s++)r[e.charCodeAt(s)]=s}var o=e.charAt(64);if(o){var u=t.indexOf(o);-1!==u&&(n=u)}return i(t,n,r)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),e.enc.Base64)},5178:function(t,i,n){var e;t.exports=(e=n(9021),e.enc.Utf8)},9506:function(t,i,n){var e,r,s,o,u,a,c;t.exports=(c=n(9021),n(5471),n(1025),o=(r=(e=c).lib).WordArray,a=(u=e.algo).EvpKDF=(s=r.Base).extend({cfg:s.extend({keySize:4,hasher:u.MD5,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,i){for(var n,e=this.cfg,r=e.hasher.create(),s=o.create(),u=s.words,a=e.keySize,c=e.iterations;u.length<a;){n&&r.update(n),n=r.update(t).finalize(i),r.reset();for(var h=1;h<c;h++)n=r.finalize(n),r.reset();s.concat(n)}return s.sigBytes=4*a,s}}),e.EvpKDF=function(t,i,n){return a.create(n).compute(t,i)},c.EvpKDF)},1025:function(t,i,n){var e,r;t.exports=(e=n(9021),r=e.enc.Utf8,void(e.algo.HMAC=e.lib.Base.extend({init:function(t,i){t=this._hasher=new t.init,"string"==typeof i&&(i=r.parse(i));var n=t.blockSize,e=4*n;i.sigBytes>e&&(i=t.finalize(i)),i.clamp();for(var s=this._oKey=i.clone(),o=this._iKey=i.clone(),u=s.words,a=o.words,c=0;c<n;c++)u[c]^=1549556828,a[c]^=909522486;s.sigBytes=o.sigBytes=e,this.reset()},reset:function(){var t=this._hasher;t.reset(),t.update(this._iKey)},update:function(t){return this._hasher.update(t),this},finalize:function(t){var i=this._hasher,n=i.finalize(t);return i.reset(),i.finalize(this._oKey.clone().concat(n))}})))},6440:function(t,i,n){var e;t.exports=(e=n(9021),function(){if("function"==typeof ArrayBuffer){var t=e.lib.WordArray,i=t.init,n=t.init=function(t){if(t instanceof ArrayBuffer&&(t=new Uint8Array(t)),(t instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array)&&(t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength)),t instanceof Uint8Array){for(var n=t.byteLength,e=[],r=0;r<n;r++)e[r>>>2]|=t[r]<<24-r%4*8;i.call(this,e,n)}else i.apply(this,arguments)};n.prototype=t}}(),e.lib.WordArray)},4636:function(t,i,n){var e;t.exports=(e=n(9021),function(t){var i=e,n=i.lib,r=n.WordArray,s=n.Hasher,o=i.algo,u=[];!function(){for(var i=0;i<64;i++)u[i]=4294967296*t.abs(t.sin(i+1))|0}();var a=o.MD5=s.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(t,i){for(var n=0;n<16;n++){var e=i+n,r=t[e];t[e]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8)}var s=this._hash.words,o=t[i+0],a=t[i+1],d=t[i+2],v=t[i+3],m=t[i+4],p=t[i+5],g=t[i+6],b=t[i+7],_=t[i+8],y=t[i+9],w=t[i+10],S=t[i+11],E=t[i+12],k=t[i+13],O=t[i+14],I=t[i+15],R=s[0],T=s[1],C=s[2],A=s[3];R=c(R,T,C,A,o,7,u[0]),A=c(A,R,T,C,a,12,u[1]),C=c(C,A,R,T,d,17,u[2]),T=c(T,C,A,R,v,22,u[3]),R=c(R,T,C,A,m,7,u[4]),A=c(A,R,T,C,p,12,u[5]),C=c(C,A,R,T,g,17,u[6]),T=c(T,C,A,R,b,22,u[7]),R=c(R,T,C,A,_,7,u[8]),A=c(A,R,T,C,y,12,u[9]),C=c(C,A,R,T,w,17,u[10]),T=c(T,C,A,R,S,22,u[11]),R=c(R,T,C,A,E,7,u[12]),A=c(A,R,T,C,k,12,u[13]),C=c(C,A,R,T,O,17,u[14]),R=h(R,T=c(T,C,A,R,I,22,u[15]),C,A,a,5,u[16]),A=h(A,R,T,C,g,9,u[17]),C=h(C,A,R,T,S,14,u[18]),T=h(T,C,A,R,o,20,u[19]),R=h(R,T,C,A,p,5,u[20]),A=h(A,R,T,C,w,9,u[21]),C=h(C,A,R,T,I,14,u[22]),T=h(T,C,A,R,m,20,u[23]),R=h(R,T,C,A,y,5,u[24]),A=h(A,R,T,C,O,9,u[25]),C=h(C,A,R,T,v,14,u[26]),T=h(T,C,A,R,_,20,u[27]),R=h(R,T,C,A,k,5,u[28]),A=h(A,R,T,C,d,9,u[29]),C=h(C,A,R,T,b,14,u[30]),R=f(R,T=h(T,C,A,R,E,20,u[31]),C,A,p,4,u[32]),A=f(A,R,T,C,_,11,u[33]),C=f(C,A,R,T,S,16,u[34]),T=f(T,C,A,R,O,23,u[35]),R=f(R,T,C,A,a,4,u[36]),A=f(A,R,T,C,m,11,u[37]),C=f(C,A,R,T,b,16,u[38]),T=f(T,C,A,R,w,23,u[39]),R=f(R,T,C,A,k,4,u[40]),A=f(A,R,T,C,o,11,u[41]),C=f(C,A,R,T,v,16,u[42]),T=f(T,C,A,R,g,23,u[43]),R=f(R,T,C,A,y,4,u[44]),A=f(A,R,T,C,E,11,u[45]),C=f(C,A,R,T,I,16,u[46]),R=l(R,T=f(T,C,A,R,d,23,u[47]),C,A,o,6,u[48]),A=l(A,R,T,C,b,10,u[49]),C=l(C,A,R,T,O,15,u[50]),T=l(T,C,A,R,p,21,u[51]),R=l(R,T,C,A,E,6,u[52]),A=l(A,R,T,C,v,10,u[53]),C=l(C,A,R,T,w,15,u[54]),T=l(T,C,A,R,a,21,u[55]),R=l(R,T,C,A,_,6,u[56]),A=l(A,R,T,C,I,10,u[57]),C=l(C,A,R,T,g,15,u[58]),T=l(T,C,A,R,k,21,u[59]),R=l(R,T,C,A,m,6,u[60]),A=l(A,R,T,C,S,10,u[61]),C=l(C,A,R,T,d,15,u[62]),T=l(T,C,A,R,y,21,u[63]),s[0]=s[0]+R|0,s[1]=s[1]+T|0,s[2]=s[2]+C|0,s[3]=s[3]+A|0},_doFinalize:function(){var i=this._data,n=i.words,e=8*this._nDataBytes,r=8*i.sigBytes;n[r>>>5]|=128<<24-r%32;var s=t.floor(e/4294967296),o=e;n[15+(r+64>>>9<<4)]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),n[14+(r+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),i.sigBytes=4*(n.length+1),this._process();for(var u=this._hash,a=u.words,c=0;c<4;c++){var h=a[c];a[c]=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8)}return u},clone:function(){var t=s.clone.call(this);return t._hash=this._hash.clone(),t}});function c(t,i,n,e,r,s,o){var u=t+(i&n|~i&e)+r+o;return(u<<s|u>>>32-s)+i}function h(t,i,n,e,r,s,o){var u=t+(i&e|n&~e)+r+o;return(u<<s|u>>>32-s)+i}function f(t,i,n,e,r,s,o){var u=t+(i^n^e)+r+o;return(u<<s|u>>>32-s)+i}function l(t,i,n,e,r,s,o){var u=t+(n^(i|~e))+r+o;return(u<<s|u>>>32-s)+i}i.MD5=s._createHelper(a),i.HmacMD5=s._createHmacHelper(a)}(Math),e.MD5)},5471:function(t,i,n){var e,r,s,o,u,a,c;t.exports=(c=n(9021),s=(r=(e=c).lib).WordArray,u=[],a=e.algo.SHA1=(o=r.Hasher).extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,i){for(var n=this._hash.words,e=n[0],r=n[1],s=n[2],o=n[3],a=n[4],c=0;c<80;c++){if(c<16)u[c]=0|t[i+c];else{var h=u[c-3]^u[c-8]^u[c-14]^u[c-16];u[c]=h<<1|h>>>31}var f=(e<<5|e>>>27)+a+u[c];f+=c<20?1518500249+(r&s|~r&o):c<40?1859775393+(r^s^o):c<60?(r&s|r&o|s&o)-1894007588:(r^s^o)-899497514,a=o,o=s,s=r<<30|r>>>2,r=e,e=f}n[0]=n[0]+e|0,n[1]=n[1]+r|0,n[2]=n[2]+s|0,n[3]=n[3]+o|0,n[4]=n[4]+a|0},_doFinalize:function(){var t=this._data,i=t.words,n=8*this._nDataBytes,e=8*t.sigBytes;return i[e>>>5]|=128<<24-e%32,i[14+(e+64>>>9<<4)]=Math.floor(n/4294967296),i[15+(e+64>>>9<<4)]=n,t.sigBytes=4*i.length,this._process(),this._hash},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}}),e.SHA1=o._createHelper(a),e.HmacSHA1=o._createHmacHelper(a),c.SHA1)},9728:function(t,i,n){"use strict";var e,r,s,o,u;n.d(i,{Xk:function(){return o},zN:function(){return u}}),function(t){t[t.AspectFill=0]="AspectFill",t[t.AspectFit=1]="AspectFit"}(e||(e={})),function(t){t[t.ZegoFontTypeSourceHanSans=0]="ZegoFontTypeSourceHanSans",t[t.ZegoFontTypeAlibabaSans=1]="ZegoFontTypeAlibabaSans",t[t.ZegoFontTypePangMenZhengDaoTitle=2]="ZegoFontTypePangMenZhengDaoTitle",t[t.ZegoFontTypeHappyZcool=3]="ZegoFontTypeHappyZcool"}(r||(r={})),function(t){t[t.ZegoAudioMixModeRaw=0]="ZegoAudioMixModeRaw",t[t.ZegoAudioMixModeFocused=1]="ZegoAudioMixModeFocused"}(s||(s={})),function(t){t[t.ZegoAudioCodecIDNormal=1]="ZegoAudioCodecIDNormal",t[t.ZegoAudioCodecIDNormal2=2]="ZegoAudioCodecIDNormal2",t[t.ZegoAudioCodecIDLow3=6]="ZegoAudioCodecIDLow3"}(o||(o={})),function(t){t[t.ZegoEncodeProfileDefault=0]="ZegoEncodeProfileDefault",t[t.ZegoEncodeProfileBaseline=1]="ZegoEncodeProfileBaseline",t[t.ZegoEncodeProfileMain=2]="ZegoEncodeProfileMain",t[t.ZegoEncodeProfileHigh=3]="ZegoEncodeProfileHigh"}(u||(u={}))},8899:function(t,i,n){"use strict";var e,r,s,o;n.d(i,{UF:function(){return s},eI:function(){return e},ju:function(){return o},kf:function(){return r}}),function(t){t[t.Off=0]="Off",t[t.TurningOn=1]="TurningOn",t[t.On=2]="On"}(e||(e={})),function(t){t[t.World=0]="World",t[t.Team=1]="Team",t[t.SecretTeam=2]="SecretTeam"}(r||(r={})),function(t){t[t.All=0]="All",t[t.World=1]="World",t[t.Team=2]="Team"}(s||(s={})),function(t){t[t.All=0]="All",t[t.World=1]="World",t[t.Team=2]="Team"}(o||(o={}))},166:function(t,i,n){"use strict";var e,r,s,o;n.d(i,{PP:function(){return o},SC:function(){return s}}),function(t){t[t.NONE=0]="NONE",t[t.MEN_TO_CHILD=1]="MEN_TO_CHILD",t[t.MEN_TO_WOMEN=2]="MEN_TO_WOMEN",t[t.WOMEN_TO_CHILD=3]="WOMEN_TO_CHILD",t[t.WOMEN_TO_MEN=4]="WOMEN_TO_MEN",t[t.FOREIGNER=5]="FOREIGNER",t[t.OPTIMUS_PRIME=6]="OPTIMUS_PRIME",t[t.ANDROID=7]="ANDROID",t[t.ETHEREAL=8]="ETHEREAL",t[t.MALE_MAGNETIC=9]="MALE_MAGNETIC",t[t.FEMALE_FRESH=10]="FEMALE_FRESH",t[t.MAJOR_C=11]="MAJOR_C",t[t.MINOR_A=12]="MINOR_A",t[t.HARMONIC_MINOR=13]="HARMONIC_MINOR",t[t.FEMALE_ENERGETIC=14]="FEMALE_ENERGETIC",t[t.RICHNESS=15]="RICHNESS",t[t.MUFFLED=16]="MUFFLED",t[t.ROUNDNESS=17]="ROUNDNESS",t[t.FALSETTO=18]="FALSETTO",t[t.FULLNESS=19]="FULLNESS",t[t.CLEAR=20]="CLEAR",t[t.HIGHLY_RESONANT=21]="HIGHLY_RESONANT",t[t.LOUD_CLEAR=22]="LOUD_CLEAR"}(e||(e={})),function(t){t[t.None=0]="None",t[t.SoftRoom=1]="SoftRoom",t[t.LargeRoom=2]="LargeRoom",t[t.ConcertHall=3]="ConcertHall",t[t.Valley=4]="Valley",t[t.RecordingStudio=5]="RecordingStudio",t[t.Basement=6]="Basement",t[t.KTV=7]="KTV",t[t.Popular=8]="Popular",t[t.Rock=9]="Rock",t[t.VocalConcert=10]="VocalConcert",t[t.GramoPhone=11]="GramoPhone",t[t.EnhancedKTV=12]="EnhancedKTV"}(r||(r={})),function(t){t[t.None=0]="None",t[t.Local=1]="Local",t[t.Publish=2]="Publish",t[t.All=3]="All"}(s||(s={})),function(t){t[t.AI=0]="AI",t[t.AIBalanced=1]="AIBalanced",t[t.AIAggressive=2]="AIAggressive"}(o||(o={}))},1290:function(t,i,n){"use strict";n.d(i,{BBG:function(){return e},Bnp:function(){return U},BsE:function(){return ft},CLV:function(){return vt},CcO:function(){return Z},E8q:function(){return C},EPo:function(){return wi},E_I:function(){return Ct},Eb9:function(){return Jt},Ehk:function(){return et},FGD:function(){return Qi},FSV:function(){return y},GV2:function(){return mt},HGP:function(){return dt},HHW:function(){return a},I2V:function(){return nt},I8R:function(){return Pi},IGr:function(){return di},IRO:function(){return Xt},ISq:function(){return Yt},Ifp:function(){return V},JFd:function(){return Si},JGn:function(){return rt},JX$:function(){return li},Jli:function(){return H},K15:function(){return ht},K4A:function(){return f},K74:function(){return oi},KBL:function(){return ni},KWc:function(){return A},KY4:function(){return g},Kw2:function(){return Ht},LBe:function(){return ji},La0:function(){return D},Lji:function(){return Ut},Loj:function(){return ct},M9m:function(){return w},MDS:function(){return Dt},MSI:function(){return ri},N$A:function(){return Yi},NYT:function(){return Li},Nw2:function(){return Nt},O2K:function(){return q},OKY:function(){return T},OYv:function(){return Ji},Ox5:function(){return Zt},Q4K:function(){return Y},Q4y:function(){return yt},Q9_:function(){return vi},QRg:function(){return N},QU$:function(){return lt},Qld:function(){return W},QpU:function(){return Ui},Qu8:function(){return I},R46:function(){return It},RM$:function(){return ii},Rbr:function(){return Mt},Rfl:function(){return it},RnN:function(){return Ai},SK:function(){return fi},SKc:function(){return Lt},SPm:function(){return E},Szn:function(){return o},Tk2:function(){return $t},TlX:function(){return gi},Toj:function(){return jt},UY3:function(){return Pt},V9q:function(){return v},VMq:function(){return B},VdQ:function(){return ci},W0Q:function(){return Et},W8t:function(){return xt},WaK:function(){return z},Wgj:function(){return r},WuQ:function(){return Hi},XLj:function(){return P},XO3:function(){return S},XQ0:function(){return s},XR3:function(){return at},Y9k:function(){return Vi},YNv:function(){return Di},YOg:function(){return Vt},Ywv:function(){return ki},ZIe:function(){return _},Ze2:function(){return Qt},_2$:function(){return Gt},_ny:function(){return ei},aSL:function(){return X},amU:function(){return pt},aww:function(){return Bt},b9b:function(){return $},bp1:function(){return Oi},bzn:function(){return Tt},c2i:function(){return gt},cDv:function(){return St},cIs:function(){return Kt},cuT:function(){return qt},d0o:function(){return st},d8C:function(){return tt},d9R:function(){return xi},de8:function(){return Q},dk2:function(){return d},dnG:function(){return m},dw7:function(){return zt},fcT:function(){return Fi},fgh:function(){return x},fjj:function(){return kt},fkL:function(){return O},gPJ:function(){return qi},gkP:function(){return c},hkn:function(){return At},iMZ:function(){return Bi},ibZ:function(){return _i},ifL:function(){return hi},it$:function(){return b},ivM:function(){return ai},kEb:function(){return si},kEs:function(){return Rt},kNG:function(){return Ni},kVV:function(){return zi},kc8:function(){return p},kkS:function(){return ti},lWs:function(){return G},mLk:function(){return u},mMR:function(){return bi},msE:function(){return R},n9B:function(){return J},n9u:function(){return K},nkr:function(){return Ri},ny0:function(){return ot},oLS:function(){return k},p1K:function(){return Wt},qPT:function(){return ut},rGc:function(){return h},rS5:function(){return j},rp8:function(){return Ft},ruA:function(){return Ot},s1U:function(){return l},sk8:function(){return yi},t6w:function(){return mi},u7D:function(){return wt},v$W:function(){return Ii},vBC:function(){return L},wQ8:function(){return bt},wT7:function(){return pi},x_Q:function(){return Gi},xcT:function(){return Mi},xcY:function(){return Ei},y4U:function(){return ui},z3d:function(){return M},zC0:function(){return F},zUi:function(){return Ti},z_2:function(){return _t},zub:function(){return Ci}});var e="zc.0",r="zc.1",s="zc.csr",o="zc.cs",u="zc.ds",a="zc.hvc.0",c="zc.sps.0",h="zc.sps.1",f="zc.sps.0.0",l="zc.spsr.0.0",d="zc.sps.1.0",v="zc.spsr.1.0",m="zc.smsi.0",p="zc.opsu",g="zc.opur",b="zc.sao",_="zc.stoto",y="zc.psh.0",w="zc.psh.1",S="zc.tsh.rngn.0",E="zc.tsh.rngn.1",k="zc.tsh.dgnb",O="zc.sc.al",I="zc.s.cmt",R="zc.s.sss",T="zsc.ssgn",C="zsc.ccgl",A="zsc.ccns",z="zsc.ucgl",N="zc.p.0.sp.0",D="zc.p.ps",P="zc.p.0.ocpss",M="zc.p.cps.0",x="zc.p.0.ocos",j="zc.p.0.oslds",q="zc.p.0.ogrd",L="zc.p.0.orpe",B="zc.p.0.orci.1",U="zc.p.0.oic",J="zc.p.0.ocsc",G="zc.p.0.oicsc",F="zc.p.0.rp",V="zc.p.0.spqt",H="zc.p.0.upq",Q="zc.p.0.orrs",Y="zc.p.0.orcs",K="zc.p.0.sci",Z="zc.p.0.psr",X="zc.p.0.sp.1",W="zc.p.0.od",$="zc.p.0.ssl.0",tt="zc.p.0.ssl.1",it="zc.p.0.heb",nt="zc.p.0.ss",et="zc.p.0.rgn",rt="zc.p.0.sgn",st="zc.p.0.hdgn",ot="zc.p.0.sb.0",ut="zc.p.0.scd",at="zc.p.0.scg",ct="zc.p.0.rsi",ht="zc.p.0.croic",ft="zc.p.0.tc",lt="zc.p.1.sp.0",dt="zc.p.ocpss.1",vt="zc.p.cps.1",mt="zc.p.hcsws.1",pt="zc.p.ocos.1",gt="zc.p.oslds.1",bt="zc.p.ormd.1",_t="zc.p.orpe.1",yt="zc.p.orci.1.1",wt="zc.p.oic.1",St="zc.p.ocsc.1",Et="zc.p.oicsc.1",kt="zc.p.opcsc.1",Ot="zc.p.rp.1",It="zc.p.spqt.1",Rt="zc.p.upq.1",Tt="zc.p.gs.1",Ct="zc.p.orrs.1",At="zc.p.orcs.1",zt="zc.p.orss.1",Nt="zc.p.ogrs.1",Dt="zc.p.gvc",Pt="zc.p.sci.1",Mt="zc.p.psr.1",xt="zc.p.1.sp.1",jt="zc.p.od.1",qt="zc.p.ssl.1",Lt="zc.p.ssl.1.1",Bt="zc.p.1.nqi",Ut="zc.p.1.rgn",Jt="zc.p.1.sgn",Gt="zc.p.1.hdgn",Ft="zc.p.1.scd",Vt="zc.p.1.scg",Ht="zc.p.1.oce",Qt="zc.p.1.smsbpm",Yt="zc.p.1.sms",Kt="zc.p.1.mst",Zt="zc.p.1.spsf",Xt="zc.p.1.rsi",Wt="zc.p.1.croic",$t="zc.uslq",ti="zc.sr.uud",ii="zc.hpqd.pl",ni="zc.hpqd.pu",ei="zc.hcid.pu",ri="zc.sr.sd",si="zc.sr.cisn",oi="zc.sr.chdtr",ui="zc.sr.sprd",ai="zc.sr.rrp.0",ci="zc.sr.ccptr",hi="zc.sr.srptc.0",fi="zc.sr.sct.0",li="zc.sr.csi.0",di="zc.sr.cic.0",vi="zc.sr.cnia.0",mi="zc.p.scv",pi="zc.sh.msbss",gi="zc.sh.ms",bi="zc.sh.psl",_i="zc.srs",yi="zc.irs",wi="zc.ssh",Si="zc.s.nqga",Ei="zc.ups.0",ki="zc.p.0.gqs",Oi="zc.p.1.gqs",Ii="zc.crh.a.0",Ri="zc.ctcc.a.0",Ti="zc.hrh.smt.0",Ci="zc.hrh.smt.1",Ai="zc.hrh.grdbc",zi="zc.vam.rv",Ni="zc.vam.iwg",Di="zc.vam.vam",Pi="zc.svc",Mi="zc.sac",xi="zc.rp",ji="zc.emo",qi="zc.asi",Li="zc.mpsv.0",Bi="zc.mpsa.0",Ui="zc.mm",Ji="zc.mpsv.1",Gi="zc.mpsa.1",Fi="zc.mapa.1",Vi="zc.mapv.1",Hi="zc.at",Qi="zc.rt",Yi="zc.ht"},4908:function(t,i,n){"use strict";n.d(i,{$7:function(){return It},$9:function(){return st},$H:function(){return Ut},$Q:function(){return Pt},$g:function(){return T},AW:function(){return Z},B$:function(){return u},BM:function(){return h},BY:function(){return jt},Bc:function(){return ft},CK:function(){return ot},Cp:function(){return U},D1:function(){return bt},E$:function(){return J},EV:function(){return lt},F:function(){return dt},FQ:function(){return ht},Fv:function(){return Bt},GV:function(){return vt},HF:function(){return xt},Hu:function(){return pt},Io:function(){return Tt},J8:function(){return N},Jd:function(){return ct},KZ:function(){return z},Kt:function(){return Mt},L1:function(){return c},Lk:function(){return H},MJ:function(){return j},Mc:function(){return Ct},Ms:function(){return v},Mw:function(){return et},ON:function(){return q},Of:function(){return St},Ov:function(){return it},Pe:function(){return tt},RI:function(){return zt},S2:function(){return _t},Sb:function(){return Rt},TW:function(){return K},Ux:function(){return rt},V0:function(){return Y},Vz:function(){return y},We:function(){return D},Wg:function(){return b},Xk:function(){return Q},YO:function(){return g},_F:function(){return X},_T:function(){return w},_g:function(){return $},_u:function(){return gt},aH:function(){return at},aT:function(){return _},br:function(){return E},bs:function(){return wt},eU:function(){return l},er:function(){return I},es:function(){return Dt},fF:function(){return A},fj:function(){return nt},fn:function(){return F},gf:function(){return C},gi:function(){return k},i6:function(){return a},iJ:function(){return Et},iN:function(){return S},jK:function(){return m},k1:function(){return L},kA:function(){return V},lZ:function(){return Lt},li:function(){return Nt},ns:function(){return kt},ny:function(){return M},oI:function(){return R},oW:function(){return O},oe:function(){return At},oq:function(){return f},ov:function(){return P},pO:function(){return d},pR:function(){return yt},r2:function(){return ut},rP:function(){return x},tI:function(){return G},v2:function(){return p},vB:function(){return mt},vW:function(){return o},wH:function(){return W},w_:function(){return qt},wd:function(){return Ot},x6:function(){return B}});var e=n(8627),r=n(5095),s="/sdk/init",o={event:s,error:{nn:e.ZEp},system_info:r.tK,servers:r.yp},u={event:"/sdk/login"},a={event:"listener"},c={event:"/sdk/on_listener",listener:r.tK,error:{en:e.ZEp}},h={event:"/sdk/off_listener",listener:r.tK,error:{en:e.ZEp}},f={event:s},l={event:"/sdk/create_stream",error:{rn:e.OrZ,en:e.LLz,un:e.t85,an:e.yK,cn:e.L8E,hn:e.FB3,ln:e.mrK,dn:e.zs3,vn:e.Be2,mn:e.JSm},stream_type:r.tK,screen:r.Gq,camera:r.Gq,custom:r.Gq,preview_conf:r.Gq,media_stream_id:r.tK},d={event:"/sdk/start_publish",error:{pn:e.LLz,gn:e.Q9p,bn:e.xfZ,_n:e.gSF,yn:e.PA0,wn:e.fzq,Sn:e.f43,En:e.qvY,kn:e.S4u,In:e.SRE,Rn:e.Xxx,Tn:e.g9p,Cn:e.jZ$,An:e.$wo,zn:e.SmZ,Nn:e.VU9,Dn:e.MrD,Pn:e.ZpF,Mn:e.iei,xn:e.aa2,jn:e.HCP,qn:e.dg1,Ln:e._68,Bn:e.kbF,Un:e.kOd,Jn:e.WP4,Gn:e.JDv,Fn:e.Q3v,Vn:e.RBR,Hn:e.NCg,Qn:e.xbZ,Yn:e.OdW,Kn:e.sJH,Zn:e.MrS},urls:r.yp,server_url:r.tK,publish_option:r.Gq,message:r.tK,stream_id:r.tK,stream_sid:r.Tr,room_id:r.tK,video_en_codec_id:r.Tr,cap_w:r.Tr,cap_h:r.Tr,w:r.Tr,h:r.Tr,video_en_fps:r.Tr,video_en_bps:r.Tr,audio_c_channel_count:r.Tr,audio_en_bps:r.Tr,aec_level:r.Tr,ans_level:r.Tr,agc:r.yS,traffic_control_min_video_bitrate:{bitrate:r.Tr,mode:r.Tr},cap_volume:r.Tr,enable_camera:r.yS,enable_mic:r.yS,video_activate:r.yS,audio_activate:r.yS,gw_version:r.Tr,use_na:r.Tr,is_dual_stream:r.Tr,is_mini:r.yS,is_peer:r.yS},v={event:"/publish/start",is_peer:r.yS,reason:r.tK,url:r.tK,ip:r.tK,peer_id:r.Tr,source_type:r.tK,net_protocol:r.tK,wait_consume:r.Tr,dispatch_consume:r.Tr,signal_consume:r.Tr,is_dual_stream:r.Tr,is_mini:r.yS,mini_error:r.Tr},m={event:"/publish/restart",stream_id:r.tK,server_url:r.tK,reason_code:r.Tr,is_dual_stream:r.Tr,is_mini:r.yS,mini_error:r.Tr},p={event:"/sdk/publish",room_id:r.tK,room_sid_string:r.tK,retry_btime:r.Tr,max_retry_interval:r.Tr,fail_cnt:r.Tr,continuous_fail_cnt:r.Tr,probe_ip_cnt:r.Tr,valid_probe_ip_cnt:r.Tr,poor_quality_retry_cnt:r.Tr,use_resource_type:r.yp,probe_not_trigger_retry_info:r.Gq,stop_reason:r.tK,child_error:r.Tr,try_time:r.Tr,try_cnt:r.Tr,server_url:r.tK,publish_begin_time:r.Tr,publish_state_time:r.Tr,bitrate:r.Tr,h:r.Tr,w:r.Tr,cap_w:r.Tr,cap_h:r.Tr,fps:r.Tr,use_na:r.Tr,env:r.Tr,webrtc_sid:r.Tr,stream_id:r.tK,itemtype:r.tK,total_d:r.Tr,valid_d:r.Tr,tempbroken_cnt:r.Tr},g={event:"/sdk/api/publish_video_c_size",webrtc_sid:r.Tr,w:r.Tr,h:r.Tr},b={event:"/sdk/play_video_size_changed",webrtc_sid:r.Tr,w:r.Tr,h:r.Tr},_={event:"/rtc/publish",tryidx:r.Tr,url:r.tK,ip:r.tK,net_protocol:r.tK,lsttime:r.Tr,denied_info:r.tK,dispatch_external_ip:r.tK,total_stat:r.Gq,room_id:r.tK,room_sid_string:r.tK,resource_type:r.tK,protocol:r.tK,stop_reason:r.tK,try_time:r.Tr},y={event:"/sdk/stop_publish",error:{en:e.LLz},stream_id:r.tK,stream_sid:r.Tr,room_id:r.tK},w={event:"/rtc/publish_stream_state_error"},S={event:"/sdk/start_play",error:{Xn:e.d49,Wn:e.ann,$n:e.clM,te:e.J79,ie:e.S4u,ne:e.RfS,ee:e.Q9p,re:e.xfZ,se:e.gSF,ue:e.PA0,ae:e.b1q,ce:e.RZs,he:e.XHx,fe:e.cMG,le:e.zML,de:e.ekj,zn:e.dqB,Nn:e.gHA,Pn:e.MK1,Dn:e.dXc,Mn:e.hje,xn:e.Zws,jn:e.SB8,Ln:e.B3d,qn:e.wxm,ve:e.Arx,Un:e.lgu,Jn:e.Tij,me:e.pWJ,pe:e.MuX,ge:e.I4J,Yn:e.OdW,be:e.ckD,_e:e.hYx,ye:e.T_8},room_id:r.tK,urls:r.yp,server_url:r.tK,video_layer:r.Tr,play_option:r.Gq,message:r.tK,stream_id:r.tK,stream_sid:r.Tr,resource_mode:r.Tr,src:r.tK,video_codec_id:r.tK,room_sid_string:r.tK,is_multi:r.yS,audio_activate:r.yS,video_activate:r.yS,gw_version:r.Tr,use_na:r.Tr,biz_product:r.Tr,is_peer:r.yS,is_mini:r.yS},E={event:"/play/start",tryidx:r.Tr,is_peer:r.yS,reason:r.tK,url:r.tK,ip:r.tK,peer_id:r.Tr,source_type:r.tK,net_protocol:r.tK,wait_consume:r.Tr,dispatch_consume:r.Tr,signal_consume:r.Tr,biz_product:r.Tr,is_mini:r.yS},k={event:"/play/restart",stream_id:r.tK,server_url:r.tK,reason_code:r.Tr,ip:r.tK,is_mini:r.yS},O={event:"/sdk/play",audio_cumulative_break_time:r.Tr,audio_cumulative_decode_time:r.Tr,video_cumulative_break_time:r.Tr,video_cumulative_decode_time:r.Tr,l3_a_break_time:r.Tr,l3_a_decode_time:r.Tr,l3_v_break_time:r.Tr,l3_v_decode_time:r.Tr,rtc_a_break_time:r.Tr,rtc_a_decode_time:r.Tr,rtc_v_break_time:r.Tr,rtc_v_decode_time:r.Tr,fft_audio:r.Tr,fft_video:r.Tr,room_id:r.tK,room_sid_string:r.tK,retry_btime:r.Tr,max_retry_interval:r.Tr,use_na:r.Tr,fail_cnt:r.Tr,continuous_fail_cnt:r.Tr,probe_ip_cnt:r.Tr,valid_probe_ip_cnt:r.Tr,poor_quality_retry_cnt:r.Tr,probe_not_trigger_retry_info:r.Gq,use_resource_type:r.yp,stop_reason:r.tK,child_error:r.Tr,try_time:r.Tr,try_cnt:r.Tr,webrtc_sid:r.Tr,itemtype:r.tK,server_url:r.tK,play_begin_time:r.Tr,play_state_time:r.Tr,play_state_cnt:r.Tr,first_frame_time:r.Tr,protocol:r.tK,dispatch_external_ip:r.tK,total_stat:r.Gq,w:r.Tr,h:r.Tr,abrc:r.Tr,vbrc:r.Tr,vinfo:r.Gq,total_d:r.Tr,valid_d:r.Tr,tempbroken_cnt:r.Tr},I={event:"/rtc/play",tryidx:r.Tr,url:r.tK,ip:r.tK,stream_id:r.tK,room_id:r.tK,room_sid_string:r.tK,net_protocol:r.tK,lsttime:r.Tr,denied_info:r.tK,stop_reason:r.tK,dispatch_external_ip:r.tK,env:r.Tr,resource_type:r.tK,protocol:r.tK,total_stat:r.Gq,vinfo:r.Gq,try_time:r.Tr},R={event:"/sdk/stop_play",error:{en:e.LLz},room_id:r.tK,stream_id:r.tK,webrtc_sid:r.Tr,stream_sid:r.Tr,biz_product:r.Tr},T={event:"/rtc/play_stream_state_error"},C={event:"/device/list",error:{rn:e.OrZ,we:e.s_m},dev_list:r.Gq,dev_kind:r.tK},A={event:"/device/audio_device_changed",error:{rn:e.OrZ,we:e.s_m},interrupt:r.Tr,device:r.tK,device_name:r.tK},z={event:"/device/video_device_changed",error:{rn:e.OrZ,we:e.s_m},interrupt:r.Tr,device:r.tK,device_name:r.tK},N={event:"/sdk/check_system",capability:r.Gq},D={event:"/sdk/remote_camera_update",stream_id:r.tK,camera_status:r.tK,status_code:r.Tr},P={event:"/sdk/remote_mic_update",stream_id:r.tK,mic_status:r.tK,status_code:r.Tr},M={event:"/sdk/destroy_stream",error:{Se:e.S5f},stop_reason:r.tK},x={event:"/device/api/audio_output",device:r.tK,device_name:r.tK,reason_type:r.tK},j={event:"/liveroom/recv_stream_update_info",stream_update_type:r.tK,stream_seq:r.Tr,stream_list:r.Gq,error:{Ee:e.sVF}},q={event:"/liveroom/send_stream_update_info",stream_update_type:r.tK,stream_extra_info:r.tK,stream_id:r.tK,svr_env:r.tK,send_seq:r.Tr,use_na:r.Tr},L={event:"/liveroom/get_current_stream_list",room_id:r.tK,room_sid_string:r.tK,stream_seq:r.Tr,stream_size:r.Tr,stream_list:r.Gq,use_ua:r.Tr,error:{en:e.LLz,NOT_LOGIN:e.S4u}},B={event:"/sdk/net_first_video_frame",webrtc_sid:r.Tr,fft_consumed:r.Gq,resource_type:r.tK,reliability:r.Tr,push_consumed:r.Tr,prepare_recv_consumed:r.Tr,connected_consumed:r.Tr,protocol:r.tK,biz_product:r.Tr,dev_changed:r.yS},U={event:"/sdk/net_first_audio_frame",webrtc_sid:r.Tr,fft_consumed:r.Gq,resource_type:r.tK,reliability:r.Tr,push_consumed:r.Tr,prepare_recv_consumed:r.Tr,connected_consumed:r.Tr,protocol:r.tK,biz_product:r.Tr,dev_changed:r.yS},J={event:"/app/lifecycle",state:r.tK},G={event:"/sdk/publish_volume_changed",old_cap_volume:r.Tr,cap_volume:r.Tr,change_duration:r.Tr,error:{en:e.ZEp}},F={event:"/sdk/listener"},V={event:"/sdk/net_probe",net_quality:r.Tr,node_list:r.yp},H={event:"/sdk/net_probe_result",is_switch:r.yS,is_publish:r.yS,stream_id:r.tK,result:r.Tr,node:r.tK,net_quality:r.Tr,probe_net_quality:r.Tr},Q={event:"/cloud_setting/cache",files:r.Gq},Y={event:"/cdn/play",protocol:r.tK,tryidx:r.Tr,url:r.tK,stop_reason:r.tK,biz_product:r.Tr},K={event:"/l3/play",protocol:r.tK,tryidx:r.Tr,url:r.tK,stop_reason:r.tK,biz_product:r.Tr,try_time:r.Tr},Z={event:"/sdk/play_src_changed",last_src:r.tK,src:r.tK,biz_product:r.Tr},X={event:"/publish/create_offer",sdp:r.tK,stream_type:r.tK,is_mini:r.yS,is_dual_stream:r.Tr},W={event:"/publish/set_local_sdp",sdp:r.tK,stream_type:r.tK,is_mini:r.yS,is_dual_stream:r.Tr},$={event:"/publish/create_session",sdp:r.tK,is_mini:r.yS,gw_nodes:r.yp,gw_nodes_ttl:r.Tr,gw_version:r.Tr,webrtc_sid:r.Tr},tt={event:"/publish/set_remote_sdp",sdp:r.tK,is_mini:r.yS,webrtc_sid:r.Tr,is_dual_stream:r.Tr},it={event:"/publish/ice_connected",webrtc_sid:r.Tr},nt={event:"/publish/rtc_publish_event",event_state:r.Tr,webrtc_sid:r.Tr},et={event:"/rtc/play_event_message",event_state:r.Tr,webrtc_sid:r.Tr},rt={event:"/rtc/recv_close_session",err_info:r.Gq},st={event:"/rtc/recv_reset_session"},ot={event:"/rtc/ice_connection_state_changed",ice_state:r.tK},ut={event:"/publish/send_media_desc",webrtc_sid:r.Tr},at={event:"/publish/send_ice_candidate",candidate_info:r.Gq},ct={event:"/play/create_offer",sdp:r.tK,is_mini:r.yS,stream_type:r.tK},ht={event:"/play/set_local_sdp",sdp:r.tK,is_mini:r.yS,stream_type:r.tK},ft={event:"/play/create_session",sdp:r.tK,is_mini:r.yS,gw_nodes:r.yp,gw_nodes_ttl:r.Tr,gw_version:r.Tr,webrtc_sid:r.Tr},lt={event:"/play/set_remote_sdp",sdp:r.tK,is_mini:r.yS,webrtc_sid:r.Tr},dt={event:"/play/ice_connected",webrtc_sid:r.Tr},vt={event:"/play/send_media_desc",webrtc_sid:r.Tr},mt={event:"/play/send_ice_candidate",candidate_info:r.Gq},pt={event:"/zegoconn/connect"},gt={event:"/sdk/net_ip_stack",ipv4:r.tK,ipv6:r.tK},bt={event:"/zegoconn/proxy_connect",service_no:r.Tr,proxy_link_sources:r.Tr,recv_time:r.Tr,connect_stream:r.Tr},_t={event:"/zegoconn/proxy_broken",service_no:r.Tr},yt={event:"/zegoconn/proxy_disconnect",service_no:r.Tr},wt={event:"/rtc/exception_update",stream:r.tK,code:r.Tr,message:r.tK},St={event:"/sdk/publish_target",error:{en:e.ZEp,ke:e.xU2,Oe:e.S4u,Ie:e.I7C,Re:e.HO9,Te:e.aUw,Ce:e.Oy0}},Et={event:"/mss/pushadd",error:{en:e.ZEp},stream_id:r.tK,url:r.tK},kt={event:"/mss/pushdel",error:{en:e.ZEp},stream_id:r.tK,url:r.tK},Ot={event:"/sdk/set_video_config",error:{en:e.ZEp,Se:e.S5f},video_params:r.Gq,video_conf:r.Gq},It={event:"/sdk/set_audio_config",error:{en:e.ZEp,Se:e.S5f},audio_params:r.Gq,audio_conf:r.Gq},Rt={event:"/sdk/api/publish_video_en_size",w:r.Tr,h:r.Tr},Tt={event:"/sdk/api/publish_video_en_bps",bitrate:r.Tr},Ct={event:"/sdk/api/publish_video_en_fps",fps:r.Tr},At={event:"/sdk/replace_track",error:{en:e.ZEp},track_kind:r.tK},zt={event:"/device/api/video_c",error:{en:e.ZEp,Ae:e.ckg,Se:e.S5f,ze:e.jut},device:r.tK,device_name:r.tK,facing_mode:r.tK},Nt={event:"/device/api/audio_c",error:{en:e.ZEp,Ae:e.ckg,Se:e.S5f},device:r.tK,device_name:r.tK},Dt={event:"/sdk/play_content_changed",webrtc_sid:r.Tr,video_activate:r.yS,audio_activate:r.yS,video_layer:r.Tr},Pt={event:"/sdk/mute_publish_video",mute_type:r.Tr,retain:r.yS},Mt={event:"/sdk/mute_publish_audio",mute_type:r.Tr},xt={event:"/device/enable_mic",enable:r.yS,stream_list:r.Gq},jt={event:"/device/enable_camera",enable:r.yS,stream_list:r.Gq},qt={event:"/sdk/mute_play_video",mute_type:r.Tr},Lt={event:"/sdk/mute_play_audio",mute_type:r.Tr},Bt={event:"/liveroom/send_stream_extra_info",error:{en:e.ZEp,Ne:e.PTE,Oe:e.S4u,ke:e.xU2,De:e.m6U,_zpg_kExtraInfoNull:e.PTE,_zpg_kExtraInfoTooLong:e.V2t},stream_id:r.tK,send_seq:r.Tr,stream_extra_info:r.Gq,room_id:r.tK,room_sid_string:r.tK,use_na:r.Tr},Ut={event:"/active/sei",action:r.Tr,info_type:r.Tr}},5095:function(t,i,n){"use strict";n.d(i,{Gq:function(){return e},Tr:function(){return o},tK:function(){return r},yS:function(){return u},yp:function(){return s}});var e=function(t){return t},r=function(t){return t},s=function(t){return t},o=function(t){return t},u=function(t){return t}},2638:function(t,i,n){"use strict";n.d(i,{Am:function(){return C},B7:function(){return x},B8:function(){return V},Bl:function(){return B},D2:function(){return L},Dg:function(){return m},EA:function(){return P},EN:function(){return J},Es:function(){return z},FV:function(){return _},Hb:function(){return c},Kk:function(){return E},Ks:function(){return a},LO:function(){return p},Lx:function(){return w},Mo:function(){return R},NI:function(){return D},NP:function(){return O},T_:function(){return k},UP:function(){return M},UV:function(){return A},X5:function(){return v},Xb:function(){return d},ZV:function(){return S},b3:function(){return U},bD:function(){return o},d7:function(){return b},di:function(){return y},eZ:function(){return G},ey:function(){return j},h7:function(){return F},jZ:function(){return I},ku:function(){return N},qP:function(){return q},qt:function(){return s},t0:function(){return r.t0},uv:function(){return g},wN:function(){return T},wl:function(){return Y},xb:function(){return l}});var e,r=n(3052),s="3.10.0",o="2025-7-8 16:40:33";!function(t){t[t.debug=0]="debug",t[t.info=1]="info",t[t.warn=2]="warn",t[t.error=3]="error",t[t.report=99]="report",t[t.disable=100]="disable"}(e||(e={}));var u,a,c;!function(t){t[t.disable=0]="disable",t[t.websocket=1]="websocket",t[t.https=2]="https"}(u||(u={})),function(t){t[t.SDKProject_ZegoWebRTC=6]="SDKProject_ZegoWebRTC",t[t.SDKProject_ZegoMiniProgram=7]="SDKProject_ZegoMiniProgram"}(a||(a={})),function(t){t[t.UDP=0]="UDP",t[t.RTMP=1]="RTMP",t[t.FLV=2]="FLV",t[t.HLS=3]="HLS",t[t.WEBRTC=4]="WEBRTC"}(c||(c={}));var h,f,l={disconnected:0,connecting:1,connected:2},d=1,v=2,m=3,p=256,g=1024,b=1e3,_=1,y=50,w=1,S=3600,E=52e6,k={waiting_url:1,tryPublish:2,update_info:3,publishing:4,stop:5,retryPublish:6},O={liveNone:0,liveBegin:2001,liveEnd:2002,liveUpdate:2003},I=101,R=(h=1,function(){return h++}),T=function(){var t=1;return function(){return t++}}();!function(t){t[t.ClientType_None=0]="ClientType_None",t[t.ClientType_H5=1]="ClientType_H5",t[t.ClientType_SmallPragram=2]="ClientType_SmallPragram",t[t.ClientType_Webrtc=3]="ClientType_Webrtc"}(f||(f={}));var C,A,z,N,D,P,M,x,j,q,L,B,U,J={added:12001,deleted:12002,updated:12003},G={start:0,error:1,retry:2},F={start:0,error:1,retry:2,stop:3};!function(t){t[t.Default=0]="Default",t[t.Extranet=1]="Extranet",t[t.Intranet=2]="Intranet"}(C||(C={})),function(t){t[t.logout=0]="logout",t[t.trylogin=1]="trylogin",t[t.login=2]="login"}(A||(A={})),function(t){t[t.logout=0]="logout",t[t.trylogin=1]="trylogin",t[t.login=2]="login",t[t.reconnect=3]="reconnect"}(z||(z={})),function(t){t[t.stop=0]="stop",t[t.start=1]="start"}(N||(N={})),function(t){t[t.CDN=0]="CDN",t[t.RTC=1]="RTC",t[t.L3=2]="L3",t[t.DG=3]="DG"}(D||(D={})),function(t){t[t.useAnalyzer=0]="useAnalyzer",t[t.useWorklet=1]="useWorklet"}(P||(P={})),function(t){t[t.Default=3]="Default",t[t.StandardVideoCall=4]="StandardVideoCall",t[t.HighVideoCall=5]="HighVideoCall",t[t.StandardChatroom=6]="StandardChatroom",t[t.HighQualityChatroom=7]="HighQualityChatroom",t[t.Broadcast=8]="Broadcast",t[t.Karaoke=9]="Karaoke",t[t.UNKNOWN=100]="UNKNOWN"}(M||(M={})),function(t){t.WIN32="WIN32",t.MAC="Mac",t.ANDROID="Android",t.LINUX="Linux",t.IOS="iOS",t.Harmony="Harmony",t.UNKNOWN="WTF"}(x||(x={})),function(t){t.CDN="cdn",t.L3="l3",t.RTC="rtc"}(j||(j={})),function(t){t[t.RTC=0]="RTC",t[t.CDN=1]="CDN",t[t.L3=2]="L3",t[t.DG=3]="DG",t[t.CUSTOM=5]="CUSTOM"}(q||(q={})),function(t){t[t.offline=0]="offline",t[t.online=1]="online"}(L||(L={})),function(t){t[t.MinQuality=0]="MinQuality",t[t.DieQuality=0]="DieQuality",t[t.PoorMinQuality=1]="PoorMinQuality",t[t.MiddleMinQuality=30]="MiddleMinQuality",t[t.GoodMinQuality=60]="GoodMinQuality",t[t.ExcellentMinQuality=85]="ExcellentMinQuality",t[t.MaxQuality=100]="MaxQuality"}(B||(B={})),function(t){t[t.Unknown=-1]="Unknown",t[t.Excellent=0]="Excellent",t[t.Good=1]="Good",t[t.Middle=2]="Middle",t[t.Poor=3]="Poor",t[t.Die=4]="Die"}(U||(U={}));var V,H,Q=function(){function t(t,i){void 0===t&&(t=null),void 0===i&&(i=null),this.next=null,this.prev=null,this._id=t,this._data=i}return Object.defineProperty(t.prototype,"id",{get:function(){return this._id?this._id:null},set:function(t){this._id=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"data",{get:function(){return this._data},set:function(t){this._data=t},enumerable:!1,configurable:!0}),t.prototype.hasNext=function(){return this.next&&this.next.id},t.prototype.hasPrev=function(){return this.prev&&this.prev.id},t}(),Y=function(){function t(){this.start=new Q,this.end=new Q,this._idCounter=0,this._numNodes=0,this.start.next=this.end,this.start.prev=null,this.end.prev=this.start,this.end.next=null}return t.prototype.insertBefore=function(t,i){var n=new Q(this._idCounter,i);return n.next=t,n.prev=t.prev,t.prev&&(t.prev.next=n),t.prev=n,++this._idCounter,++this._numNodes,n},t.prototype.addLast=function(t){return this.insertBefore(this.end,t)},t.prototype.add=function(t){return this.addLast(t)},t.prototype.getFirst=function(){return 0===this._numNodes?null:this.start.next},t.prototype.getLast=function(){return 0===this._numNodes?null:this.end.prev},t.prototype.size=function(){return this._numNodes},t.prototype.getFromFirst=function(t){var i=0,n=this.start.next;if(t>=0)for(;i<t&&null!==n;)n=n.next,++i;else n=null;if(null===n)throw"Index out of bounds.";return n},t.prototype.get=function(t){return 0===t?this.getFirst():t===this._numNodes-1?this.getLast():this.getFromFirst(t)},t.prototype.remove=function(t){return t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),--this._numNodes,t},t.prototype.removeFirst=function(){var t=null;return this._numNodes>0&&this.start.next&&(t=this.remove(this.start.next)),t},t.prototype.removeLast=function(){var t=null;return this._numNodes>0&&this.end.prev&&(t=this.remove(this.end.prev)),t},t.prototype.removeAll=function(){this.start.next=this.end,this.end.prev=this.start,this._numNodes=0,this._idCounter=0},t.prototype.each=function(t){for(var i=this.start;i.hasNext();)t(i=i.next)},t.prototype.find=function(t){for(var i=this.start,n=!1,e=null;i.hasNext()&&!n;)t(i=i.next)&&(e=i,n=!0);return e},t.prototype.map=function(t){for(var i=this.start,n=[];i.hasNext();)t(i=i.next)&&n.push(i);return n},t.prototype.push=function(t){return this.addLast(t)},t.prototype.unshift=function(t){this.insertBefore(this._numNodes>0?this.start.next:this.end,t)},t.prototype.pop=function(){return this.removeLast()},t.prototype.shift=function(){return this.removeFirst()},t}();!function(t){t.ONLY_BASELINE="only_baseline",t.HARD_SOFT_ENCODEC_FIRST="hard_or_soft_encodec_first",t.HIGH_PROFILE_FIRST="high_profile_first"}(V||(V={})),function(t){t[t.None=0]="None",t[t.Vocalist=1]="Vocalist",t[t.BackingSinging=2]="BackingSinging"}(H||(H={}))},8627:function(t,i,n){"use strict";n.d(i,{$wo:function(){return W},A1v:function(){return Ri},Arx:function(){return qt},B3d:function(){return Dt},BMv:function(){return Mi},Be2:function(){return pt},E9Y:function(){return w},F$4:function(){return R},FB3:function(){return ot},GY7:function(){return ci},HCP:function(){return rt},HED:function(){return S},HO9:function(){return O},I4J:function(){return Xt},I7C:function(){return vt},J79:function(){return a},JDv:function(){return bt},JSm:function(){return gt},KbN:function(){return Di},L8E:function(){return tt},LBO:function(){return Qt},LLz:function(){return q},MK1:function(){return Tt},MrD:function(){return ft},MrS:function(){return M},MuX:function(){return Zt},NCg:function(){return Ni},NJN:function(){return ki},O2H:function(){return Si},OdW:function(){return Wt},OrZ:function(){return L},Oy0:function(){return v},PA0:function(){return c},PTE:function(){return D},Q3v:function(){return _t},Q9p:function(){return d},QYE:function(){return Ci},Qo5:function(){return b},R54:function(){return wi},RBR:function(){return wt},RZs:function(){return Vt},RfS:function(){return et},S4u:function(){return s},S5f:function(){return h},S6t:function(){return pi},SB8:function(){return Mt},SQb:function(){return di},SRE:function(){return st},SmZ:function(){return V},Srw:function(){return y},T1C:function(){return oi},T_8:function(){return Ot},TgN:function(){return Pi},Tij:function(){return Bt},UZK:function(){return p},V2t:function(){return P},VEp:function(){return li},VU9:function(){return H},WP4:function(){return ht},WgV:function(){return Oi},XHx:function(){return jt},Xxx:function(){return A},YDn:function(){return Ht},ZEp:function(){return l},ZpF:function(){return F},Zws:function(){return Pt},_5H:function(){return Kt},_68:function(){return K},_9F:function(){return fi},_HD:function(){return g},aUw:function(){return T},aa2:function(){return X},akY:function(){return zi},akb:function(){return St},ann:function(){return It},aq0:function(){return Ti},b1q:function(){return Ft},bVX:function(){return x},cGQ:function(){return Rt},cMG:function(){return Yt},ckD:function(){return ti},ckg:function(){return _i},clM:function(){return o},d49:function(){return u},dNl:function(){return xi},dU8:function(){return vi},dXc:function(){return Jt},dg1:function(){return Q},dqB:function(){return Ct},drM:function(){return ni},ekj:function(){return xt},f43:function(){return nt},f5Z:function(){return ri},fFX:function(){return bi},fzq:function(){return it},g9p:function(){return k},gHA:function(){return At},gSF:function(){return E},hYx:function(){return ii},hje:function(){return Nt},iei:function(){return Y},jZ$:function(){return Z},jut:function(){return J},kOd:function(){return ct},kbF:function(){return at},lgu:function(){return Lt},lph:function(){return m},lwJ:function(){return Ii},m6U:function(){return dt},mHY:function