123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-libs"],{"00ce":function(e,t,n){"use strict";var r,i=SyntaxError,o=Function,s=TypeError,a=function(e){try{return o('"use strict"; return ('+e+").constructor;")()}catch(t){}},c=Object.getOwnPropertyDescriptor;if(c)try{c({},"")}catch(w){c=null}var u=function(){throw new s},l=c?function(){try{return u}catch(e){try{return c(arguments,"callee").get}catch(t){return u}}}():u,f=n("5156")(),h=Object.getPrototypeOf||function(e){return e.__proto__},d={},p="undefined"===typeof Uint8Array?r:h(Uint8Array),g={"%AggregateError%":"undefined"===typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"===typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":f?h([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":d,"%AsyncGenerator%":d,"%AsyncGeneratorFunction%":d,"%AsyncIteratorPrototype%":d,"%Atomics%":"undefined"===typeof Atomics?r:Atomics,"%BigInt%":"undefined"===typeof BigInt?r:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"===typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"===typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"===typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"===typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":d,"%Int8Array%":"undefined"===typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"===typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"===typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":f?h(h([][Symbol.iterator]())):r,"%JSON%":"object"===typeof JSON?JSON:r,"%Map%":"undefined"===typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!==typeof Map&&f?h((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"===typeof Promise?r:Promise,"%Proxy%":"undefined"===typeof Proxy?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"===typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"===typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!==typeof Set&&f?h((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"===typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":f?h(""[Symbol.iterator]()):r,"%Symbol%":f?Symbol:r,"%SyntaxError%":i,"%ThrowTypeError%":l,"%TypedArray%":p,"%TypeError%":s,"%Uint8Array%":"undefined"===typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"===typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"===typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"===typeof Uint32Array?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"===typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"===typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"===typeof WeakSet?r:WeakSet},v=function e(t){var n;if("%AsyncFunction%"===t)n=a("async function () {}");else if("%GeneratorFunction%"===t)n=a("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=a("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&(n=h(i.prototype))}return g[t]=n,n},y={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},m=n("0f7c"),I=n("a0d3"),_=m.call(Function.call,Array.prototype.concat),T=m.call(Function.apply,Array.prototype.splice),C=m.call(Function.call,String.prototype.replace),M=m.call(Function.call,String.prototype.slice),E=m.call(Function.call,RegExp.prototype.exec),A=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,S=/\\(\\)?/g,N=function(e){var t=M(e,0,1),n=M(e,-1);if("%"===t&&"%"!==n)throw new i("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new i("invalid intrinsic syntax, expected opening `%`");var r=[];return C(e,A,(function(e,t,n,i){r[r.length]=n?C(i,S,"$1"):t||e})),r},b=function(e,t){var n,r=e;if(I(y,r)&&(n=y[r],r="%"+n[0]+"%"),I(g,r)){var o=g[r];if(o===d&&(o=v(r)),"undefined"===typeof o&&!t)throw new s("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new i("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!==typeof e||0===e.length)throw new s("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!==typeof t)throw new s('"allowMissing" argument must be a boolean');if(null===E(/^%?[^%]*%?$/g,e))throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=N(e),r=n.length>0?n[0]:"",o=b("%"+r+"%",t),a=o.name,u=o.value,l=!1,f=o.alias;f&&(r=f[0],T(n,_([0,1],f)));for(var h=1,d=!0;h<n.length;h+=1){var p=n[h],v=M(p,0,1),y=M(p,-1);if(('"'===v||"'"===v||"`"===v||'"'===y||"'"===y||"`"===y)&&v!==y)throw new i("property names with quotes must have matching quotes");if("constructor"!==p&&d||(l=!0),r+="."+p,a="%"+r+"%",I(g,a))u=g[a];else if(null!=u){if(!(p in u)){if(!t)throw new s("base intrinsic for "+e+" exists, but the property is not available.");return}if(c&&h+1>=n.length){var m=c(u,p);d=!!m,u=d&&"get"in m&&!("originalValue"in m.get)?m.get:u[p]}else d=I(u,p),u=u[p];d&&!l&&(g[a]=u)}}return u}},"013f":function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return r}))},"014b":function(e,t,n){"use strict";var r=n("e53d"),i=n("07e3"),o=n("8e60"),s=n("63b6"),a=n("9138"),c=n("ebfd").KEY,u=n("294c"),l=n("dbdb"),f=n("45f2"),h=n("62a0"),d=n("5168"),p=n("ccb9"),g=n("6718"),v=n("47ee"),y=n("9003"),m=n("e4ae"),I=n("f772"),_=n("241e"),T=n("36c3"),C=n("1bc3"),M=n("aebd"),E=n("a159"),A=n("0395"),S=n("bf0b"),N=n("9aa9"),b=n("d9f6"),w=n("c3a1"),O=S.f,R=b.f,D=A.f,L=r.Symbol,U=r.JSON,x=U&&U.stringify,P="prototype",j=d("_hidden"),k=d("toPrimitive"),z={}.propertyIsEnumerable,G=l("symbol-registry"),B=l("symbols"),V=l("op-symbols"),Y=Object[P],H="function"==typeof L&&!!N.f,F=r.QObject,Q=!F||!F[P]||!F[P].findChild,$=o&&u((function(){return 7!=E(R({},"a",{get:function(){return R(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=O(Y,t);r&&delete Y[t],R(e,t,n),r&&e!==Y&&R(Y,t,r)}:R,K=function(e){var t=B[e]=E(L[P]);return t._k=e,t},W=H&&"symbol"==typeof L.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof L},q=function(e,t,n){return e===Y&&q(V,t,n),m(e),t=C(t,!0),m(n),i(B,t)?(n.enumerable?(i(e,j)&&e[j][t]&&(e[j][t]=!1),n=E(n,{enumerable:M(0,!1)})):(i(e,j)||R(e,j,M(1,{})),e[j][t]=!0),$(e,t,n)):R(e,t,n)},Z=function(e,t){m(e);var n,r=v(t=T(t)),i=0,o=r.length;while(o>i)q(e,n=r[i++],t[n]);return e},J=function(e,t){return void 0===t?E(e):Z(E(e),t)},X=function(e){var t=z.call(this,e=C(e,!0));return!(this===Y&&i(B,e)&&!i(V,e))&&(!(t||!i(this,e)||!i(B,e)||i(this,j)&&this[j][e])||t)},ee=function(e,t){if(e=T(e),t=C(t,!0),e!==Y||!i(B,t)||i(V,t)){var n=O(e,t);return!n||!i(B,t)||i(e,j)&&e[j][t]||(n.enumerable=!0),n}},te=function(e){var t,n=D(T(e)),r=[],o=0;while(n.length>o)i(B,t=n[o++])||t==j||t==c||r.push(t);return r},ne=function(e){var t,n=e===Y,r=D(n?V:T(e)),o=[],s=0;while(r.length>s)!i(B,t=r[s++])||n&&!i(Y,t)||o.push(B[t]);return o};H||(L=function(){if(this instanceof L)throw TypeError("Symbol is not a constructor!");var e=h(arguments.length>0?arguments[0]:void 0),t=function(n){this===Y&&t.call(V,n),i(this,j)&&i(this[j],e)&&(this[j][e]=!1),$(this,e,M(1,n))};return o&&Q&&$(Y,e,{configurable:!0,set:t}),K(e)},a(L[P],"toString",(function(){return this._k})),S.f=ee,b.f=q,n("6abf").f=A.f=te,n("355d").f=X,N.f=ne,o&&!n("b8e3")&&a(Y,"propertyIsEnumerable",X,!0),p.f=function(e){return K(d(e))}),s(s.G+s.W+s.F*!H,{Symbol:L});for(var re="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ie=0;re.length>ie;)d(re[ie++]);for(var oe=w(d.store),se=0;oe.length>se;)g(oe[se++]);s(s.S+s.F*!H,"Symbol",{for:function(e){return i(G,e+="")?G[e]:G[e]=L(e)},keyFor:function(e){if(!W(e))throw TypeError(e+" is not a symbol!");for(var t in G)if(G[t]===e)return t},useSetter:function(){Q=!0},useSimple:function(){Q=!1}}),s(s.S+s.F*!H,"Object",{create:J,defineProperty:q,defineProperties:Z,getOwnPropertyDescriptor:ee,getOwnPropertyNames:te,getOwnPropertySymbols:ne});var ae=u((function(){N.f(1)}));s(s.S+s.F*ae,"Object",{getOwnPropertySymbols:function(e){return N.f(_(e))}}),U&&s(s.S+s.F*(!H||u((function(){var e=L();return"[null]"!=x([e])||"{}"!=x({a:e})||"{}"!=x(Object(e))}))),"JSON",{stringify:function(e){var t,n,r=[e],i=1;while(arguments.length>i)r.push(arguments[i++]);if(n=t=r[1],(I(t)||void 0!==e)&&!W(e))return y(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!W(t))return t}),r[1]=t,x.apply(U,r)}}),L[P][k]||n("35e8")(L[P],k,L[P].valueOf),f(L,"Symbol"),f(Math,"Math",!0),f(r.JSON,"JSON",!0)},"01f9":function(e,t,n){"use strict";var r=n("2d00"),i=n("5ca1"),o=n("2aba"),s=n("32e9"),a=n("84f2"),c=n("41a0"),u=n("7f20"),l=n("38fd"),f=n("2b4c")("iterator"),h=!([].keys&&"next"in[].keys()),d="@@iterator",p="keys",g="values",v=function(){return this};e.exports=function(e,t,n,y,m,I,_){c(n,t,y);var T,C,M,E=function(e){if(!h&&e in b)return b[e];switch(e){case p:return function(){return new n(this,e)};case g:return function(){return new n(this,e)}}return function(){return new n(this,e)}},A=t+" Iterator",S=m==g,N=!1,b=e.prototype,w=b[f]||b[d]||m&&b[m],O=w||E(m),R=m?S?E("entries"):O:void 0,D="Array"==t&&b.entries||w;if(D&&(M=l(D.call(new e)),M!==Object.prototype&&M.next&&(u(M,A,!0),r||"function"==typeof M[f]||s(M,f,v))),S&&w&&w.name!==g&&(N=!0,O=function(){return w.call(this)}),r&&!_||!h&&!N&&b[f]||s(b,f,O),a[t]=O,a[A]=v,m)if(T={values:S?O:E(g),keys:I?O:E(p),entries:R},_)for(C in T)C in b||o(b,C,T[C]);else i(i.P+i.F*(h||N),t,T);return T}},"0293":function(e,t,n){var r=n("241e"),i=n("53e2");n("ce7e")("getPrototypeOf",(function(){return function(e){return i(r(e))}}))},"0298":function(e,t,n){"use strict";var r=n("5ca1"),i=n("4bf8"),o=n("6a99");r(r.P+r.F*n("79e5")((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})})),"Date",{toJSON:function(e){var t=i(this),n=o(t);return"number"!=typeof n||isFinite(n)?t.toISOString():null}})},"02de":function(e,t,n){"use strict";function r(e){var t=window.getComputedStyle(e),n="none"===t.display,r=null===e.offsetParent&&"fixed"!==t.position;return n||r}n.d(t,"a",(function(){return r}))},"02f4":function(e,t,n){var r=n("4588"),i=n("be13");e.exports=function(e){return function(t,n){var o,s,a=String(i(t)),c=r(n),u=a.length;return c<0||c>=u?e?"":void 0:(o=a.charCodeAt(c),o<55296||o>56319||c+1===u||(s=a.charCodeAt(c+1))<56320||s>57343?e?a.charAt(c):o:e?a.slice(c,c+2):s-56320+(o-55296<<10)+65536)}}},"036c":function(e,t,n){"use strict";var r=n("5ca1"),i=n("4588"),o=n("bef9"),s=n("9744"),a=1..toFixed,c=Math.floor,u=[0,0,0,0,0,0],l="Number.toFixed: incorrect invocation!",f="0",h=function(e,t){var n=-1,r=t;while(++n<6)r+=e*u[n],u[n]=r%1e7,r=c(r/1e7)},d=function(e){var t=6,n=0;while(--t>=0)n+=u[t],u[t]=c(n/e),n=n%e*1e7},p=function(){var e=6,t="";while(--e>=0)if(""!==t||0===e||0!==u[e]){var n=String(u[e]);t=""===t?n:t+s.call(f,7-n.length)+n}return t},g=function(e,t,n){return 0===t?n:t%2===1?g(e,t-1,n*e):g(e*e,t/2,n)},v=function(e){var t=0,n=e;while(n>=4096)t+=12,n/=4096;while(n>=2)t+=1,n/=2;return t};r(r.P+r.F*(!!a&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!n("79e5")((function(){a.call({})}))),"Number",{toFixed:function(e){var t,n,r,a,c=o(this,l),u=i(e),y="",m=f;if(u<0||u>20)throw RangeError(l);if(c!=c)return"NaN";if(c<=-1e21||c>=1e21)return String(c);if(c<0&&(y="-",c=-c),c>1e-21)if(t=v(c*g(2,69,1))-69,n=t<0?c*g(2,-t,1):c/g(2,t,1),n*=4503599627370496,t=52-t,t>0){h(0,n),r=u;while(r>=7)h(1e7,0),r-=7;h(g(10,r,1),0),r=t-1;while(r>=23)d(1<<23),r-=23;d(1<<r),h(1,1),d(2),m=p()}else h(0,n),h(1<<-t,0),m=p()+s.call(f,u);return u>0?(a=m.length,m=y+(a<=u?"0."+s.call(f,u-a)+m:m.slice(0,a-u)+"."+m.slice(a-u))):m=y+m,m}})},"0390":function(e,t,n){"use strict";var r=n("02f4")(!0);e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},"0395":function(e,t,n){var r=n("36c3"),i=n("6abf").f,o={}.toString,s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],a=function(e){try{return i(e)}catch(t){return s.slice()}};e.exports.f=function(e){return s&&"[object Window]"==o.call(e)?a(e):i(r(e))}},"042e":function(e,t,n){var r=n("5ca1");r(r.S,"Math",{fround:n("91ca")})},"044b":function(e,t){
- /*!
- * Determine if an object is a Buffer
- *
- * @author Feross Aboukhadijeh <https://feross.org>
- * @license MIT
- */
- e.exports=function(e){return null!=e&&null!=e.constructor&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},"049f":function(e,t,n){var r=n("5ca1");r(r.S,"Math",{log1p:n("d6c6")})},"04ff":function(e,t,n){var r=n("5ca1"),i=n("3ca5");r(r.S+r.F*(Number.parseInt!=i),"Number",{parseInt:i})},"061b":function(e,t,n){e.exports=n("fa99")},"06a7":function(e,t,n){var r=n("37a7"),i=n("cb7c"),o=r.get,s=r.key;r.exp({getOwnMetadata:function(e,t){return o(e,i(t),arguments.length<3?void 0:s(arguments[2]))}})},"06db":function(e,t,n){"use strict";var r=n("23c6"),i={};i[n("2b4c")("toStringTag")]="z",i+""!="[object z]"&&n("2aba")(Object.prototype,"toString",(function(){return"[object "+r(this)+"]"}),!0)},"07e3":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"097d":function(e,t,n){"use strict";var r=n("5ca1"),i=n("8378"),o=n("7726"),s=n("ebd6"),a=n("bcaa");r(r.P+r.R,"Promise",{finally:function(e){var t=s(this,i.Promise||o.Promise),n="function"==typeof e;return this.then(n?function(n){return a(t,e()).then((function(){return n}))}:e,n?function(n){return a(t,e()).then((function(){throw n}))}:e)}})},"09e0":function(e,t,n){var r=n("5ca1");r(r.S,"Math",{clamp:function(e,t,n){return Math.min(n,Math.max(t,e))}})},"09fa":function(e,t,n){var r=n("4588"),i=n("9def");e.exports=function(e){if(void 0===e)return 0;var t=r(e),n=i(t);if(t!==n)throw RangeError("Wrong length!");return n}},"0a06":function(e,t,n){"use strict";var r=n("2444"),i=n("c532"),o=n("f6b4"),s=n("5270");function a(e){this.defaults=e,this.interceptors={request:new o,response:new o}}a.prototype.request=function(e){"string"===typeof e&&(e=i.merge({url:arguments[0]},arguments[1])),e=i.merge(r,{method:"get"},this.defaults,e),e.method=e.method.toLowerCase();var t=[s,void 0],n=Promise.resolve(e);this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));while(t.length)n=n.then(t.shift(),t.shift());return n},i.forEach(["delete","get","head","options"],(function(e){a.prototype[e]=function(t,n){return this.request(i.merge(n||{},{method:e,url:t}))}})),i.forEach(["post","put","patch"],(function(e){a.prototype[e]=function(t,n,r){return this.request(i.merge(r||{},{method:e,url:t,data:n}))}})),e.exports=a},"0a49":function(e,t,n){var r=n("9b43"),i=n("626a"),o=n("4bf8"),s=n("9def"),a=n("cd1c");e.exports=function(e,t){var n=1==e,c=2==e,u=3==e,l=4==e,f=6==e,h=5==e||f,d=t||a;return function(t,a,p){for(var g,v,y=o(t),m=i(y),I=r(a,p,3),_=s(m.length),T=0,C=n?d(t,_):c?d(t,0):void 0;_>T;T++)if((h||T in m)&&(g=m[T],v=I(g,T,y),e))if(n)C[T]=v;else if(v)switch(e){case 3:return!0;case 5:return g;case 6:return T;case 2:C.push(g)}else if(l)return!1;return f?-1:u||l?l:C}}},"0b21":function(e,t,n){var r=n("5ca1");r(r.S,"Math",{sign:n("96fb")})},"0bfb":function(e,t,n){"use strict";var r=n("cb7c");e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},"0c00":function(e,t,n){var r=n("5ca1");r(r.S,"Math",{DEG_PER_RAD:Math.PI/180})},"0c36":function(e,t,n){var r=n("5ca1");r(r.G,{global:n("7726")})},"0cd8":function(e,t,n){"use strict";var r=n("5ca1"),i=n("7b23");r(r.P+r.F*!n("2f21")([].reduce,!0),"Array",{reduce:function(e){return i(this,e,arguments.length,arguments[1],!1)}})},"0d25":function(e,t,n){var r=n("5ca1"),i=n("8079")(),o=n("7726").process,s="process"==n("2d95")(o);r(r.G,{asap:function(e){var t=s&&o.domain;i(t?t.bind(e):e)}})},"0d58":function(e,t,n){var r=n("ce10"),i=n("e11e");e.exports=Object.keys||function(e){return r(e,i)}},"0d6d":function(e,t,n){var r=n("d3f4"),i=n("67ab").onFreeze;n("5eda")("freeze",(function(e){return function(t){return e&&r(t)?e(i(t)):t}}))},"0df6":function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},"0e15":function(e,t,n){var r=n("597f");e.exports=function(e,t,n){return void 0===n?r(e,t,!1):r(e,n,!1!==t)}},"0f7c":function(e,t,n){"use strict";var r=n("688e");e.exports=Function.prototype.bind||r},"0f88":function(e,t,n){var r,i=n("7726"),o=n("32e9"),s=n("ca5a"),a=s("typed_array"),c=s("view"),u=!(!i.ArrayBuffer||!i.DataView),l=u,f=0,h=9,d="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");while(f<h)(r=i[d[f++]])?(o(r.prototype,a,!0),o(r.prototype,c,!0)):l=!1;e.exports={ABV:u,CONSTR:l,TYPED:a,VIEW:c}},"0fc9":function(e,t,n){var r=n("3a38"),i=Math.max,o=Math.min;e.exports=function(e,t){return e=r(e),e<0?i(e+t,0):o(e,t)}},1098:function(e,t,n){"use strict";t.__esModule=!0;var r=n("17ed"),i=c(r),o=n("f893"),s=c(o),a="function"===typeof s.default&&"symbol"===typeof i.default?function(e){return typeof e}:function(e){return e&&"function"===typeof s.default&&e.constructor===s.default&&e!==s.default.prototype?"symbol":typeof e};function c(e){return e&&e.__esModule?e:{default:e}}t.default="function"===typeof s.default&&"symbol"===a(i.default)?function(e){return"undefined"===typeof e?"undefined":a(e)}:function(e){return e&&"function"===typeof s.default&&e.constructor===s.default&&e!==s.default.prototype?"symbol":"undefined"===typeof e?"undefined":a(e)}},"10ad":function(e,t,n){"use strict";var r,i=n("7726"),o=n("0a49")(0),s=n("2aba"),a=n("67ab"),c=n("7333"),u=n("643e"),l=n("d3f4"),f=n("b39a"),h=n("b39a"),d=!i.ActiveXObject&&"ActiveXObject"in i,p="WeakMap",g=a.getWeak,v=Object.isExtensible,y=u.ufstore,m=function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},I={get:function(e){if(l(e)){var t=g(e);return!0===t?y(f(this,p)).get(e):t?t[this._i]:void 0}},set:function(e,t){return u.def(f(this,p),e,t)}},_=e.exports=n("e0b8")(p,m,I,u,!0,!0);h&&d&&(r=u.getConstructor(m,p),c(r.prototype,I),a.NEED=!0,o(["delete","has","get","set"],(function(e){var t=_.prototype,n=t[e];s(t,e,(function(t,i){if(l(t)&&!v(t)){this._f||(this._f=new r);var o=this._f[e](t,i);return"set"==e?this:o}return n.call(this,t,i)}))})))},1169:function(e,t,n){var r=n("2d95");e.exports=Array.isArray||function(e){return"Array"==r(e)}},1173:function(e,t){e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},"11e9":function(e,t,n){var r=n("52a7"),i=n("4630"),o=n("6821"),s=n("6a99"),a=n("69a8"),c=n("c69a"),u=Object.getOwnPropertyDescriptor;t.f=n("9e1e")?u:function(e,t){if(e=o(e),t=s(t,!0),c)try{return u(e,t)}catch(n){}if(a(e,t))return i(!r.f.call(e,t),e[t])}},"130f":function(e,t,n){var r=n("5ca1"),i=n("1991");r(r.G+r.B,{setImmediate:i.set,clearImmediate:i.clear})},1325:function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return u}));var r=n("a142"),i=!1;if(!r["g"])try{var o={};Object.defineProperty(o,"passive",{get:function(){i=!0}}),window.addEventListener("test-passive",null,o)}catch(l){}function s(e,t,n,o){void 0===o&&(o=!1),r["g"]||e.addEventListener(t,n,!!i&&{capture:!1,passive:o})}function a(e,t,n){r["g"]||e.removeEventListener(t,n)}function c(e){e.stopPropagation()}function u(e,t){("boolean"!==typeof e.cancelable||e.cancelable)&&e.preventDefault(),t&&c(e)}},"13d9":function(e,t){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}}},1448:function(e,t,n){"use strict";n("386b")("strike",(function(e){return function(){return e(this,"strike","","")}}))},1495:function(e,t,n){var r=n("86cc"),i=n("cb7c"),o=n("0d58");e.exports=n("9e1e")?Object.defineProperties:function(e,t){i(e);var n,s=o(t),a=s.length,c=0;while(a>c)r.f(e,n=s[c++],t[n]);return e}},"14b9":function(e,t,n){var r=n("5ca1");r(r.P,"String",{repeat:n("9744")})},"14e1":function(e,t,n){},"157a":function(e,t,n){},"15ac":function(e,t,n){n("ec30")("Int16",2,(function(e){return function(t,n,r){return e(this,t,n,r)}}))},1654:function(e,t,n){"use strict";var r=n("71c1")(!0);n("30f1")(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})}))},"165b":function(e,t,n){var r=n("d3f4");n("5eda")("isExtensible",(function(e){return function(t){return!!r(t)&&(!e||e(t))}}))},1691:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},1696:function(e,t,n){"use strict";e.exports=function(){if("function"!==typeof Symbol||"function"!==typeof Object.getOwnPropertySymbols)return!1;if("symbol"===typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"===typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;var r=42;for(t in e[t]=r,e)return!1;if("function"===typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"===typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var i=Object.getOwnPropertySymbols(e);if(1!==i.length||i[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"===typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==r||!0!==o.enumerable)return!1}return!0}},"17ed":function(e,t,n){e.exports={default:n("d8d6"),__esModule:!0}},"18d0":function(e,t,n){var r=n("5ca1"),i=n("3ca5");r(r.G+r.F*(parseInt!=i),{parseInt:i})},1991:function(e,t,n){var r,i,o,s=n("9b43"),a=n("31f4"),c=n("fab2"),u=n("230e"),l=n("7726"),f=l.process,h=l.setImmediate,d=l.clearImmediate,p=l.MessageChannel,g=l.Dispatch,v=0,y={},m="onreadystatechange",I=function(){var e=+this;if(y.hasOwnProperty(e)){var t=y[e];delete y[e],t()}},_=function(e){I.call(e.data)};h&&d||(h=function(e){var t=[],n=1;while(arguments.length>n)t.push(arguments[n++]);return y[++v]=function(){a("function"==typeof e?e:Function(e),t)},r(v),v},d=function(e){delete y[e]},"process"==n("2d95")(f)?r=function(e){f.nextTick(s(I,e,1))}:g&&g.now?r=function(e){g.now(s(I,e,1))}:p?(i=new p,o=i.port2,i.port1.onmessage=_,r=s(o.postMessage,o,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(r=function(e){l.postMessage(e+"","*")},l.addEventListener("message",_,!1)):r=m in u("script")?function(e){c.appendChild(u("script"))[m]=function(){c.removeChild(this),I.call(e)}}:function(e){setTimeout(s(I,e,1),0)}),e.exports={set:h,clear:d}},"1af6":function(e,t,n){var r=n("63b6");r(r.S,"Array",{isArray:n("9003")})},"1bc3":function(e,t,n){var r=n("f772");e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},"1c01":function(e,t,n){var r=n("5ca1");r(r.S+r.F*!n("9e1e"),"Object",{defineProperty:n("86cc").f})},"1c4c":function(e,t,n){"use strict";var r=n("9b43"),i=n("5ca1"),o=n("4bf8"),s=n("1fa8"),a=n("33a4"),c=n("9def"),u=n("f1ae"),l=n("27ee");i(i.S+i.F*!n("5cc5")((function(e){Array.from(e)})),"Array",{from:function(e){var t,n,i,f,h=o(e),d="function"==typeof this?this:Array,p=arguments.length,g=p>1?arguments[1]:void 0,v=void 0!==g,y=0,m=l(h);if(v&&(g=r(g,p>2?arguments[2]:void 0,2)),void 0==m||d==Array&&a(m))for(t=c(h.length),n=new d(t);t>y;y++)u(n,y,v?g(h[y],y):h[y]);else for(f=m.call(h),n=new d;!(i=f.next()).done;y++)u(n,y,v?s(f,g,[i.value,y],!0):i.value);return n.length=y,n}})},"1d2b":function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},"1df8":function(e,t,n){var r=n("63b6");r(r.S,"Object",{setPrototypeOf:n("ead6").set})},"1ec9":function(e,t,n){var r=n("f772"),i=n("e53d").document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},"1f18":function(e,t,n){var r=n("5ca1");r(r.S,"Math",{RAD_PER_DEG:180/Math.PI})},"1f91":function(e,t,n){var r=n("5ca1"),i=n("e9d2"),o=n("91ca");r(r.S,"Math",{fscale:function(e,t,n,r,s){return o(i(e,t,n,r,s))}})},"1fa8":function(e,t,n){var r=n("cb7c");e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(s){var o=e["return"];throw void 0!==o&&r(o.call(e)),s}}},"1fb5":function(e,t,n){"use strict";t.byteLength=l,t.toByteArray=h,t.fromByteArray=g;for(var r=[],i=[],o="undefined"!==typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,c=s.length;a<c;++a)r[a]=s[a],i[s.charCodeAt(a)]=a;function u(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function l(e){var t=u(e),n=t[0],r=t[1];return 3*(n+r)/4-r}function f(e,t,n){return 3*(t+n)/4-n}function h(e){var t,n,r=u(e),s=r[0],a=r[1],c=new o(f(e,s,a)),l=0,h=a>0?s-4:s;for(n=0;n<h;n+=4)t=i[e.charCodeAt(n)]<<18|i[e.charCodeAt(n+1)]<<12|i[e.charCodeAt(n+2)]<<6|i[e.charCodeAt(n+3)],c[l++]=t>>16&255,c[l++]=t>>8&255,c[l++]=255&t;return 2===a&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,c[l++]=255&t),1===a&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,c[l++]=t>>8&255,c[l++]=255&t),c}function d(e){return r[e>>18&63]+r[e>>12&63]+r[e>>6&63]+r[63&e]}function p(e,t,n){for(var r,i=[],o=t;o<n;o+=3)r=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(255&e[o+2]),i.push(d(r));return i.join("")}function g(e){for(var t,n=e.length,i=n%3,o=[],s=16383,a=0,c=n-i;a<c;a+=s)o.push(p(e,a,a+s>c?c:a+s));return 1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),o.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},"20d6":function(e,t,n){"use strict";var r=n("5ca1"),i=n("0a49")(6),o="findIndex",s=!0;o in[]&&Array(1)[o]((function(){s=!1})),r(r.P+r.F*s,"Array",{findIndex:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")(o)},"20fd":function(e,t,n){"use strict";var r=n("d9f6"),i=n("aebd");e.exports=function(e,t,n){t in e?r.f(e,t,i(0,n)):e[t]=n}},"214f":function(e,t,n){"use strict";n("b0c5");var r=n("2aba"),i=n("32e9"),o=n("79e5"),s=n("be13"),a=n("2b4c"),c=n("520a"),u=a("species"),l=!o((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),f=function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();e.exports=function(e,t,n){var h=a(e),d=!o((function(){var t={};return t[h]=function(){return 7},7!=""[e](t)})),p=d?!o((function(){var t=!1,n=/a/;return n.exec=function(){return t=!0,null},"split"===e&&(n.constructor={},n.constructor[u]=function(){return n}),n[h](""),!t})):void 0;if(!d||!p||"replace"===e&&!l||"split"===e&&!f){var g=/./[h],v=n(s,h,""[e],(function(e,t,n,r,i){return t.exec===c?d&&!i?{done:!0,value:g.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}})),y=v[0],m=v[1];r(String.prototype,e,y),i(RegExp.prototype,h,2==t?function(e,t){return m.call(e,this,t)}:function(e){return m.call(e,this)})}}},"217b":function(e,t,n){"use strict";var r=n("d3f4"),i=n("38fd"),o=n("2b4c")("hasInstance"),s=Function.prototype;o in s||n("86cc").f(s,o,{value:function(e){if("function"!=typeof this||!r(e))return!1;if(!r(this.prototype))return e instanceof this;while(e=i(e))if(this.prototype===e)return!0;return!1}})},"21a1":function(e,t,n){(function(t){(function(t,n){e.exports=n()})(0,(function(){"use strict";"undefined"!==typeof window?window:"undefined"!==typeof t||"undefined"!==typeof self&&self;function e(e,t){return t={exports:{}},e(t,t.exports),t.exports}var n=e((function(e,t){(function(t,n){e.exports=n()})(0,(function(){function e(e){var t=e&&"object"===typeof e;return t&&"[object RegExp]"!==Object.prototype.toString.call(e)&&"[object Date]"!==Object.prototype.toString.call(e)}function t(e){return Array.isArray(e)?[]:{}}function n(n,r){var i=r&&!0===r.clone;return i&&e(n)?o(t(n),n,r):n}function r(t,r,i){var s=t.slice();return r.forEach((function(r,a){"undefined"===typeof s[a]?s[a]=n(r,i):e(r)?s[a]=o(t[a],r,i):-1===t.indexOf(r)&&s.push(n(r,i))})),s}function i(t,r,i){var s={};return e(t)&&Object.keys(t).forEach((function(e){s[e]=n(t[e],i)})),Object.keys(r).forEach((function(a){e(r[a])&&t[a]?s[a]=o(t[a],r[a],i):s[a]=n(r[a],i)})),s}function o(e,t,o){var s=Array.isArray(t),a=o||{arrayMerge:r},c=a.arrayMerge||r;return s?Array.isArray(e)?c(e,t,o):n(t,o):i(e,t,o)}return o.all=function(e,t){if(!Array.isArray(e)||e.length<2)throw new Error("first argument should be an array with at least two elements");return e.reduce((function(e,n){return o(e,n,t)}))},o}))}));function r(e){return e=e||Object.create(null),{on:function(t,n){(e[t]||(e[t]=[])).push(n)},off:function(t,n){e[t]&&e[t].splice(e[t].indexOf(n)>>>0,1)},emit:function(t,n){(e[t]||[]).map((function(e){e(n)})),(e["*"]||[]).map((function(e){e(t,n)}))}}}var i=e((function(e,t){var n={svg:{name:"xmlns",uri:"http://www.w3.org/2000/svg"},xlink:{name:"xmlns:xlink",uri:"http://www.w3.org/1999/xlink"}};t.default=n,e.exports=t.default})),o=function(e){return Object.keys(e).map((function(t){var n=e[t].toString().replace(/"/g,""");return t+'="'+n+'"'})).join(" ")},s=i.svg,a=i.xlink,c={};c[s.name]=s.uri,c[a.name]=a.uri;var u,l=function(e,t){void 0===e&&(e="");var r=n(c,t||{}),i=o(r);return"<svg "+i+">"+e+"</svg>"},f=i.svg,h=i.xlink,d={attrs:(u={style:["position: absolute","width: 0","height: 0"].join("; ")},u[f.name]=f.uri,u[h.name]=h.uri,u)},p=function(e){this.config=n(d,e||{}),this.symbols=[]};p.prototype.add=function(e){var t=this,n=t.symbols,r=this.find(e.id);return r?(n[n.indexOf(r)]=e,!1):(n.push(e),!0)},p.prototype.remove=function(e){var t=this,n=t.symbols,r=this.find(e);return!!r&&(n.splice(n.indexOf(r),1),r.destroy(),!0)},p.prototype.find=function(e){return this.symbols.filter((function(t){return t.id===e}))[0]||null},p.prototype.has=function(e){return null!==this.find(e)},p.prototype.stringify=function(){var e=this.config,t=e.attrs,n=this.symbols.map((function(e){return e.stringify()})).join("");return l(n,t)},p.prototype.toString=function(){return this.stringify()},p.prototype.destroy=function(){this.symbols.forEach((function(e){return e.destroy()}))};var g=function(e){var t=e.id,n=e.viewBox,r=e.content;this.id=t,this.viewBox=n,this.content=r};g.prototype.stringify=function(){return this.content},g.prototype.toString=function(){return this.stringify()},g.prototype.destroy=function(){var e=this;["id","viewBox","content"].forEach((function(t){return delete e[t]}))};var v=function(e){var t=!!document.importNode,n=(new DOMParser).parseFromString(e,"image/svg+xml").documentElement;return t?document.importNode(n,!0):n},y=function(e){function t(){e.apply(this,arguments)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={isMounted:{}};return n.isMounted.get=function(){return!!this.node},t.createFromExistingNode=function(e){return new t({id:e.getAttribute("id"),viewBox:e.getAttribute("viewBox"),content:e.outerHTML})},t.prototype.destroy=function(){this.isMounted&&this.unmount(),e.prototype.destroy.call(this)},t.prototype.mount=function(e){if(this.isMounted)return this.node;var t="string"===typeof e?document.querySelector(e):e,n=this.render();return this.node=n,t.appendChild(n),n},t.prototype.render=function(){var e=this.stringify();return v(l(e)).childNodes[0]},t.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},Object.defineProperties(t.prototype,n),t}(g),m={autoConfigure:!0,mountTo:"body",syncUrlsWithBaseTag:!1,listenLocationChangeEvent:!0,locationChangeEvent:"locationChange",locationChangeAngularEmitter:!1,usagesToUpdate:"use[*|href]",moveGradientsOutsideSymbol:!1},I=function(e){return Array.prototype.slice.call(e,0)},_=navigator.userAgent,T={isChrome:/chrome/i.test(_),isFirefox:/firefox/i.test(_),isIE:/msie/i.test(_)||/trident/i.test(_),isEdge:/edge/i.test(_)},C=function(e,t){var n=document.createEvent("CustomEvent");n.initCustomEvent(e,!1,!1,t),window.dispatchEvent(n)},M=function(e){var t=[];return I(e.querySelectorAll("style")).forEach((function(e){e.textContent+="",t.push(e)})),t},E=function(e){return(e||window.location.href).split("#")[0]},A=function(e){angular.module("ng").run(["$rootScope",function(t){t.$on("$locationChangeSuccess",(function(t,n,r){C(e,{oldUrl:r,newUrl:n})}))}])},S="linearGradient, radialGradient, pattern",N=function(e,t){return void 0===t&&(t=S),I(e.querySelectorAll("symbol")).forEach((function(e){I(e.querySelectorAll(t)).forEach((function(t){e.parentNode.insertBefore(t,e)}))})),e};function b(e,t){var n=I(e).reduce((function(e,n){if(!n.attributes)return e;var r=I(n.attributes),i=t?r.filter(t):r;return e.concat(i)}),[]);return n}var w=i.xlink.uri,O="xlink:href",R=/[{}|\\\^\[\]`"<>]/g;function D(e){return e.replace(R,(function(e){return"%"+e[0].charCodeAt(0).toString(16).toUpperCase()}))}function L(e,t,n){return I(e).forEach((function(e){var r=e.getAttribute(O);if(r&&0===r.indexOf(t)){var i=r.replace(t,n);e.setAttributeNS(w,O,i)}})),e}var U,x=["clipPath","colorProfile","src","cursor","fill","filter","marker","markerStart","markerMid","markerEnd","mask","stroke","style"],P=x.map((function(e){return"["+e+"]"})).join(","),j=function(e,t,n,r){var i=D(n),o=D(r),s=e.querySelectorAll(P),a=b(s,(function(e){var t=e.localName,n=e.value;return-1!==x.indexOf(t)&&-1!==n.indexOf("url("+i)}));a.forEach((function(e){return e.value=e.value.replace(i,o)})),L(t,i,o)},k={MOUNT:"mount",SYMBOL_MOUNT:"symbol_mount"},z=function(e){function t(t){var i=this;void 0===t&&(t={}),e.call(this,n(m,t));var o=r();this._emitter=o,this.node=null;var s=this,a=s.config;if(a.autoConfigure&&this._autoConfigure(t),a.syncUrlsWithBaseTag){var c=document.getElementsByTagName("base")[0].getAttribute("href");o.on(k.MOUNT,(function(){return i.updateUrls("#",c)}))}var u=this._handleLocationChange.bind(this);this._handleLocationChange=u,a.listenLocationChangeEvent&&window.addEventListener(a.locationChangeEvent,u),a.locationChangeAngularEmitter&&A(a.locationChangeEvent),o.on(k.MOUNT,(function(e){a.moveGradientsOutsideSymbol&&N(e)})),o.on(k.SYMBOL_MOUNT,(function(e){a.moveGradientsOutsideSymbol&&N(e.parentNode),(T.isIE||T.isEdge)&&M(e)}))}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var i={isMounted:{}};return i.isMounted.get=function(){return!!this.node},t.prototype._autoConfigure=function(e){var t=this,n=t.config;"undefined"===typeof e.syncUrlsWithBaseTag&&(n.syncUrlsWithBaseTag="undefined"!==typeof document.getElementsByTagName("base")[0]),"undefined"===typeof e.locationChangeAngularEmitter&&(n.locationChangeAngularEmitter="angular"in window),"undefined"===typeof e.moveGradientsOutsideSymbol&&(n.moveGradientsOutsideSymbol=T.isFirefox)},t.prototype._handleLocationChange=function(e){var t=e.detail,n=t.oldUrl,r=t.newUrl;this.updateUrls(n,r)},t.prototype.add=function(t){var n=this,r=e.prototype.add.call(this,t);return this.isMounted&&r&&(t.mount(n.node),this._emitter.emit(k.SYMBOL_MOUNT,t.node)),r},t.prototype.attach=function(e){var t=this,n=this;if(n.isMounted)return n.node;var r="string"===typeof e?document.querySelector(e):e;return n.node=r,this.symbols.forEach((function(e){e.mount(n.node),t._emitter.emit(k.SYMBOL_MOUNT,e.node)})),I(r.querySelectorAll("symbol")).forEach((function(e){var t=y.createFromExistingNode(e);t.node=e,n.add(t)})),this._emitter.emit(k.MOUNT,r),r},t.prototype.destroy=function(){var e=this,t=e.config,n=e.symbols,r=e._emitter;n.forEach((function(e){return e.destroy()})),r.off("*"),window.removeEventListener(t.locationChangeEvent,this._handleLocationChange),this.isMounted&&this.unmount()},t.prototype.mount=function(e,t){void 0===e&&(e=this.config.mountTo),void 0===t&&(t=!1);var n=this;if(n.isMounted)return n.node;var r="string"===typeof e?document.querySelector(e):e,i=n.render();return this.node=i,t&&r.childNodes[0]?r.insertBefore(i,r.childNodes[0]):r.appendChild(i),this._emitter.emit(k.MOUNT,i),i},t.prototype.render=function(){return v(this.stringify())},t.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},t.prototype.updateUrls=function(e,t){if(!this.isMounted)return!1;var n=document.querySelectorAll(this.config.usagesToUpdate);return j(this.node,n,E(e)+"#",E(t)+"#"),!0},Object.defineProperties(t.prototype,i),t}(p),G=e((function(e){
- /*!
- * domready (c) Dustin Diaz 2014 - License MIT
- */
- !function(t,n){e.exports=n()}(0,(function(){var e,t=[],n=document,r=n.documentElement.doScroll,i="DOMContentLoaded",o=(r?/^loaded|^c/:/^loaded|^i|^c/).test(n.readyState);return o||n.addEventListener(i,e=function(){n.removeEventListener(i,e),o=1;while(e=t.shift())e()}),function(e){o?setTimeout(e,0):t.push(e)}}))})),B="__SVG_SPRITE_NODE__",V="__SVG_SPRITE__",Y=!!window[V];Y?U=window[V]:(U=new z({attrs:{id:B}}),window[V]=U);var H=function(){var e=document.getElementById(B);e?U.attach(e):U.mount(document.body,!0)};document.body?H():G(H);var F=U;return F}))}).call(this,n("c8ba"))},2251:function(e,t,n){var r=n("5ca1"),i=n("cb7c"),o=Object.isExtensible;r(r.S,"Reflect",{isExtensible:function(e){return i(e),!o||o(e)}})},"230e":function(e,t,n){var r=n("d3f4"),i=n("7726").document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},2397:function(e,t,n){var r=n("5ca1"),i=n("2aeb"),o=n("d8e8"),s=n("cb7c"),a=n("d3f4"),c=n("79e5"),u=n("f0c1"),l=(n("7726").Reflect||{}).construct,f=c((function(){function e(){}return!(l((function(){}),[],e)instanceof e)})),h=!c((function(){l((function(){}))}));r(r.S+r.F*(f||h),"Reflect",{construct:function(e,t){o(e),s(t);var n=arguments.length<3?e:o(arguments[2]);if(h&&!f)return l(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var r=[null];return r.push.apply(r,t),new(u.apply(e,r))}var c=n.prototype,d=i(a(c)?c:Object.prototype),p=Function.apply.call(e,d,t);return a(p)?p:d}})},"23be":function(e,t,n){"use strict";n("aa77")("trimLeft",(function(e){return function(){return e(this,1)}}),"trimStart")},"23bf":function(e,t,n){"use strict";var r=n("5ca1"),i=n("fab2"),o=n("2d95"),s=n("77f1"),a=n("9def"),c=[].slice;r(r.P+r.F*n("79e5")((function(){i&&c.call(i)})),"Array",{slice:function(e,t){var n=a(this.length),r=o(this);if(t=void 0===t?n:t,"Array"==r)return c.call(this,e,t);for(var i=s(e,n),u=s(t,n),l=a(u-i),f=new Array(l),h=0;h<l;h++)f[h]="String"==r?this.charAt(i+h):this[i+h];return f}})},"23c6":function(e,t,n){var r=n("2d95"),i=n("2b4c")("toStringTag"),o="Arguments"==r(function(){return arguments}()),s=function(e,t){try{return e[t]}catch(n){}};e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=s(t=Object(e),i))?n:o?r(t):"Object"==(a=r(t))&&"function"==typeof t.callee?"Arguments":a}},"23db":function(e,t,n){(function(e,n){var r=9007199254740991,i="[object Arguments]",o="[object Function]",s="[object GeneratorFunction]",a="[object Map]",c="[object Object]",u="[object Promise]",l="[object Set]",f="[object WeakMap]",h="[object DataView]",d=/[\\^$.*+?()[\]{}|]/g,p=/^\[object .+?Constructor\]$/,g="object"==typeof e&&e&&e.Object===Object&&e,v="object"==typeof self&&self&&self.Object===Object&&self,y=g||v||Function("return this")(),m=t&&!t.nodeType&&t,I=m&&"object"==typeof n&&n&&!n.nodeType&&n,_=I&&I.exports===m;function T(e,t){return null==e?void 0:e[t]}function C(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(n){}return t}function M(e,t){return function(n){return e(t(n))}}var E=Function.prototype,A=Object.prototype,S=y["__core-js_shared__"],N=function(){var e=/[^.]+$/.exec(S&&S.keys&&S.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),b=E.toString,w=A.hasOwnProperty,O=A.toString,R=RegExp("^"+b.call(w).replace(d,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),D=_?y.Buffer:void 0,L=A.propertyIsEnumerable,U=D?D.isBuffer:void 0,x=M(Object.keys,Object),P=W(y,"DataView"),j=W(y,"Map"),k=W(y,"Promise"),z=W(y,"Set"),G=W(y,"WeakMap"),B=!L.call({valueOf:1},"valueOf"),V=X(P),Y=X(j),H=X(k),F=X(z),Q=X(G);function $(e){return O.call(e)}function K(e){if(!ce(e)||Z(e))return!1;var t=se(e)||C(e)?R:p;return t.test(X(e))}function W(e,t){var n=T(e,t);return K(n)?n:void 0}var q=$;function Z(e){return!!N&&N in e}function J(e){var t=e&&e.constructor,n="function"==typeof t&&t.prototype||A;return e===n}function X(e){if(null!=e){try{return b.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function ee(e){return re(e)&&w.call(e,"callee")&&(!L.call(e,"callee")||O.call(e)==i)}(P&&q(new P(new ArrayBuffer(1)))!=h||j&&q(new j)!=a||k&&q(k.resolve())!=u||z&&q(new z)!=l||G&&q(new G)!=f)&&(q=function(e){var t=O.call(e),n=t==c?e.constructor:void 0,r=n?X(n):void 0;if(r)switch(r){case V:return h;case Y:return a;case H:return u;case F:return l;case Q:return f}return t});var te=Array.isArray;function ne(e){return null!=e&&ae(e.length)&&!se(e)}function re(e){return ue(e)&&ne(e)}var ie=U||le;function oe(e){if(ne(e)&&(te(e)||"string"==typeof e||"function"==typeof e.splice||ie(e)||ee(e)))return!e.length;var t=q(e);if(t==a||t==l)return!e.size;if(B||J(e))return!x(e).length;for(var n in e)if(w.call(e,n))return!1;return!0}function se(e){var t=ce(e)?O.call(e):"";return t==o||t==s}function ae(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}function ce(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function ue(e){return!!e&&"object"==typeof e}function le(){return!1}n.exports=oe}).call(this,n("c8ba"),n("62e4")(e))},"241e":function(e,t,n){var r=n("25eb");e.exports=function(e){return Object(r(e))}},"242a":function(e,t,n){"use strict";n("386b")("sup",(function(e){return function(){return e(this,"sup","","")}}))},2444:function(e,t,n){"use strict";(function(t){var r=n("c532"),i=n("c8af"),o={"Content-Type":"application/x-www-form-urlencoded"};function s(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function a(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof t)&&(e=n("b50d")),e}var c={adapter:a(),transformRequest:[function(e,t){return i(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(s(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)?(s(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"===typeof e)try{e=JSON.parse(e)}catch(t){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){c.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){c.headers[e]=r.merge(o)})),e.exports=c}).call(this,n("4362"))},"24c5":function(e,t,n){"use strict";var r,i,o,s,a=n("b8e3"),c=n("e53d"),u=n("d864"),l=n("40c3"),f=n("63b6"),h=n("f772"),d=n("79aa"),p=n("1173"),g=n("a22a"),v=n("f201"),y=n("4178").set,m=n("aba2")(),I=n("656e"),_=n("4439"),T=n("bc13"),C=n("cd78"),M="Promise",E=c.TypeError,A=c.process,S=A&&A.versions,N=S&&S.v8||"",b=c[M],w="process"==l(A),O=function(){},R=i=I.f,D=!!function(){try{var e=b.resolve(1),t=(e.constructor={})[n("5168")("species")]=function(e){e(O,O)};return(w||"function"==typeof PromiseRejectionEvent)&&e.then(O)instanceof t&&0!==N.indexOf("6.6")&&-1===T.indexOf("Chrome/66")}catch(r){}}(),L=function(e){var t;return!(!h(e)||"function"!=typeof(t=e.then))&&t},U=function(e,t){if(!e._n){e._n=!0;var n=e._c;m((function(){var r=e._v,i=1==e._s,o=0,s=function(t){var n,o,s,a=i?t.ok:t.fail,c=t.resolve,u=t.reject,l=t.domain;try{a?(i||(2==e._h&&j(e),e._h=1),!0===a?n=r:(l&&l.enter(),n=a(r),l&&(l.exit(),s=!0)),n===t.promise?u(E("Promise-chain cycle")):(o=L(n))?o.call(n,c,u):c(n)):u(r)}catch(f){l&&!s&&l.exit(),u(f)}};while(n.length>o)s(n[o++]);e._c=[],e._n=!1,t&&!e._h&&x(e)}))}},x=function(e){y.call(c,(function(){var t,n,r,i=e._v,o=P(e);if(o&&(t=_((function(){w?A.emit("unhandledRejection",i,e):(n=c.onunhandledrejection)?n({promise:e,reason:i}):(r=c.console)&&r.error&&r.error("Unhandled promise rejection",i)})),e._h=w||P(e)?2:1),e._a=void 0,o&&t.e)throw t.v}))},P=function(e){return 1!==e._h&&0===(e._a||e._c).length},j=function(e){y.call(c,(function(){var t;w?A.emit("rejectionHandled",e):(t=c.onrejectionhandled)&&t({promise:e,reason:e._v})}))},k=function(e){var t=this;t._d||(t._d=!0,t=t._w||t,t._v=e,t._s=2,t._a||(t._a=t._c.slice()),U(t,!0))},z=function(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw E("Promise can't be resolved itself");(t=L(e))?m((function(){var r={_w:n,_d:!1};try{t.call(e,u(z,r,1),u(k,r,1))}catch(i){k.call(r,i)}})):(n._v=e,n._s=1,U(n,!1))}catch(r){k.call({_w:n,_d:!1},r)}}};D||(b=function(e){p(this,b,M,"_h"),d(e),r.call(this);try{e(u(z,this,1),u(k,this,1))}catch(t){k.call(this,t)}},r=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},r.prototype=n("5c95")(b.prototype,{then:function(e,t){var n=R(v(this,b));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=w?A.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&U(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),o=function(){var e=new r;this.promise=e,this.resolve=u(z,e,1),this.reject=u(k,e,1)},I.f=R=function(e){return e===b||e===s?new o(e):i(e)}),f(f.G+f.W+f.F*!D,{Promise:b}),n("45f2")(b,M),n("4c95")(M),s=n("584a")[M],f(f.S+f.F*!D,M,{reject:function(e){var t=R(this),n=t.reject;return n(e),t.promise}}),f(f.S+f.F*(a||!D),M,{resolve:function(e){return C(a&&this===s?b:this,e)}}),f(f.S+f.F*!(D&&n("4ee1")((function(e){b.all(e)["catch"](O)}))),M,{all:function(e){var t=this,n=R(t),r=n.resolve,i=n.reject,o=_((function(){var n=[],o=0,s=1;g(e,!1,(function(e){var a=o++,c=!1;n.push(void 0),s++,t.resolve(e).then((function(e){c||(c=!0,n[a]=e,--s||r(n))}),i)})),--s||r(n)}));return o.e&&i(o.v),n.promise},race:function(e){var t=this,n=R(t),r=n.reject,i=_((function(){g(e,!1,(function(e){t.resolve(e).then(n.resolve,r)}))}));return i.e&&r(i.v),n.promise}})},"25b0":function(e,t,n){n("1df8"),e.exports=n("584a").Object.setPrototypeOf},"25c9":function(e,t,n){var r=n("5ca1"),i=Math.exp;r(r.S,"Math",{cosh:function(e){return(i(e=+e)+i(-e))/2}})},"25db":function(e,t,n){n("5eda")("getOwnPropertyNames",(function(){return n("7bbc").f}))},"25eb":function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},2621:function(e,t){t.f=Object.getOwnPropertySymbols},"262f":function(e,t,n){var r=n("5ca1");r(r.G+r.W+r.F*!n("0f88").ABV,{DataView:n("ed0b").DataView})},2638:function(e,t,n){"use strict";function r(){return r=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},r.apply(this,arguments)}var i=["attrs","props","domProps"],o=["class","style","directives"],s=["on","nativeOn"],a=function(e){return e.reduce((function(e,t){for(var n in t)if(e[n])if(-1!==i.indexOf(n))e[n]=r({},e[n],t[n]);else if(-1!==o.indexOf(n)){var a=e[n]instanceof Array?e[n]:[e[n]],u=t[n]instanceof Array?t[n]:[t[n]];e[n]=a.concat(u)}else if(-1!==s.indexOf(n))for(var l in t[n])if(e[n][l]){var f=e[n][l]instanceof Array?e[n][l]:[e[n][l]],h=t[n][l]instanceof Array?t[n][l]:[t[n][l]];e[n][l]=f.concat(h)}else e[n][l]=t[n][l];else if("hook"==n)for(var d in t[n])e[n][d]=e[n][d]?c(e[n][d],t[n][d]):t[n][d];else e[n]=t[n];else e[n]=t[n];return e}),{})},c=function(e,t){return function(){e&&e.apply(this,arguments),t&&t.apply(this,arguments)}};e.exports=a},"268f":function(e,t,n){e.exports=n("fde4")},2714:function(e,t,n){var r="function"===typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=r&&i&&"function"===typeof i.get?i.get:null,s=r&&Map.prototype.forEach,a="function"===typeof Set&&Set.prototype,c=Object.getOwnPropertyDescriptor&&a?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=a&&c&&"function"===typeof c.get?c.get:null,l=a&&Set.prototype.forEach,f="function"===typeof WeakMap&&WeakMap.prototype,h=f?WeakMap.prototype.has:null,d="function"===typeof WeakSet&&WeakSet.prototype,p=d?WeakSet.prototype.has:null,g="function"===typeof WeakRef&&WeakRef.prototype,v=g?WeakRef.prototype.deref:null,y=Boolean.prototype.valueOf,m=Object.prototype.toString,I=Function.prototype.toString,_=String.prototype.match,T=String.prototype.slice,C=String.prototype.replace,M=String.prototype.toUpperCase,E=String.prototype.toLowerCase,A=RegExp.prototype.test,S=Array.prototype.concat,N=Array.prototype.join,b=Array.prototype.slice,w=Math.floor,O="function"===typeof BigInt?BigInt.prototype.valueOf:null,R=Object.getOwnPropertySymbols,D="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?Symbol.prototype.toString:null,L="function"===typeof Symbol&&"object"===typeof Symbol.iterator,U="function"===typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===L||"symbol")?Symbol.toStringTag:null,x=Object.prototype.propertyIsEnumerable,P=("function"===typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function j(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||A.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"===typeof e){var r=e<0?-w(-e):w(e);if(r!==e){var i=String(r),o=T.call(t,i.length+1);return C.call(i,n,"$&_")+"."+C.call(C.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return C.call(t,n,"$&_")}var k=n(1),z=k.custom,G=q(z)?z:null;function B(e,t,n){var r="double"===(n.quoteStyle||t)?'"':"'";return r+e+r}function V(e){return C.call(String(e),/"/g,""")}function Y(e){return"[object Array]"===ee(e)&&(!U||!("object"===typeof e&&U in e))}function H(e){return"[object Date]"===ee(e)&&(!U||!("object"===typeof e&&U in e))}function F(e){return"[object RegExp]"===ee(e)&&(!U||!("object"===typeof e&&U in e))}function Q(e){return"[object Error]"===ee(e)&&(!U||!("object"===typeof e&&U in e))}function $(e){return"[object String]"===ee(e)&&(!U||!("object"===typeof e&&U in e))}function K(e){return"[object Number]"===ee(e)&&(!U||!("object"===typeof e&&U in e))}function W(e){return"[object Boolean]"===ee(e)&&(!U||!("object"===typeof e&&U in e))}function q(e){if(L)return e&&"object"===typeof e&&e instanceof Symbol;if("symbol"===typeof e)return!0;if(!e||"object"!==typeof e||!D)return!1;try{return D.call(e),!0}catch(t){}return!1}function Z(e){if(!e||"object"!==typeof e||!O)return!1;try{return O.call(e),!0}catch(t){}return!1}e.exports=function e(t,n,r,i){var a=n||{};if(X(a,"quoteStyle")&&"single"!==a.quoteStyle&&"double"!==a.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(X(a,"maxStringLength")&&("number"===typeof a.maxStringLength?a.maxStringLength<0&&a.maxStringLength!==1/0:null!==a.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var c=!X(a,"customInspect")||a.customInspect;if("boolean"!==typeof c&&"symbol"!==c)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(X(a,"indent")&&null!==a.indent&&"\t"!==a.indent&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(X(a,"numericSeparator")&&"boolean"!==typeof a.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var f=a.numericSeparator;if("undefined"===typeof t)return"undefined";if(null===t)return"null";if("boolean"===typeof t)return t?"true":"false";if("string"===typeof t)return ue(t,a);if("number"===typeof t){if(0===t)return 1/0/t>0?"0":"-0";var h=String(t);return f?j(t,h):h}if("bigint"===typeof t){var d=String(t)+"n";return f?j(t,d):d}var p="undefined"===typeof a.depth?5:a.depth;if("undefined"===typeof r&&(r=0),r>=p&&p>0&&"object"===typeof t)return Y(t)?"[Array]":"[Object]";var g=ge(a,r);if("undefined"===typeof i)i=[];else if(ne(i,t)>=0)return"[Circular]";function v(t,n,o){if(n&&(i=b.call(i),i.push(n)),o){var s={depth:a.depth};return X(a,"quoteStyle")&&(s.quoteStyle=a.quoteStyle),e(t,s,r+1,i)}return e(t,a,r+1,i)}if("function"===typeof t&&!F(t)){var m=te(t),I=ye(t,v);return"[Function"+(m?": "+m:" (anonymous)")+"]"+(I.length>0?" { "+N.call(I,", ")+" }":"")}if(q(t)){var _=L?C.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):D.call(t);return"object"!==typeof t||L?_:fe(_)}if(ce(t)){for(var M="<"+E.call(String(t.nodeName)),A=t.attributes||[],w=0;w<A.length;w++)M+=" "+A[w].name+"="+B(V(A[w].value),"double",a);return M+=">",t.childNodes&&t.childNodes.length&&(M+="..."),M+="</"+E.call(String(t.nodeName))+">",M}if(Y(t)){if(0===t.length)return"[]";var R=ye(t,v);return g&&!pe(R)?"["+ve(R,g)+"]":"[ "+N.call(R,", ")+" ]"}if(Q(t)){var z=ye(t,v);return"cause"in Error.prototype||!("cause"in t)||x.call(t,"cause")?0===z.length?"["+String(t)+"]":"{ ["+String(t)+"] "+N.call(z,", ")+" }":"{ ["+String(t)+"] "+N.call(S.call("[cause]: "+v(t.cause),z),", ")+" }"}if("object"===typeof t&&c){if(G&&"function"===typeof t[G]&&k)return k(t,{depth:p-r});if("symbol"!==c&&"function"===typeof t.inspect)return t.inspect()}if(re(t)){var J=[];return s.call(t,(function(e,n){J.push(v(n,t,!0)+" => "+v(e,t))})),de("Map",o.call(t),J,g)}if(se(t)){var le=[];return l.call(t,(function(e){le.push(v(e,t))})),de("Set",u.call(t),le,g)}if(ie(t))return he("WeakMap");if(ae(t))return he("WeakSet");if(oe(t))return he("WeakRef");if(K(t))return fe(v(Number(t)));if(Z(t))return fe(v(O.call(t)));if(W(t))return fe(y.call(t));if($(t))return fe(v(String(t)));if(!H(t)&&!F(t)){var me=ye(t,v),Ie=P?P(t)===Object.prototype:t instanceof Object||t.constructor===Object,_e=t instanceof Object?"":"null prototype",Te=!Ie&&U&&Object(t)===t&&U in t?T.call(ee(t),8,-1):_e?"Object":"",Ce=Ie||"function"!==typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"",Me=Ce+(Te||_e?"["+N.call(S.call([],Te||[],_e||[]),": ")+"] ":"");return 0===me.length?Me+"{}":g?Me+"{"+ve(me,g)+"}":Me+"{ "+N.call(me,", ")+" }"}return String(t)};var J=Object.prototype.hasOwnProperty||function(e){return e in this};function X(e,t){return J.call(e,t)}function ee(e){return m.call(e)}function te(e){if(e.name)return e.name;var t=_.call(I.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function ne(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function re(e){if(!o||!e||"object"!==typeof e)return!1;try{o.call(e);try{u.call(e)}catch(t){return!0}return e instanceof Map}catch(n){}return!1}function ie(e){if(!h||!e||"object"!==typeof e)return!1;try{h.call(e,h);try{p.call(e,p)}catch(t){return!0}return e instanceof WeakMap}catch(n){}return!1}function oe(e){if(!v||!e||"object"!==typeof e)return!1;try{return v.call(e),!0}catch(t){}return!1}function se(e){if(!u||!e||"object"!==typeof e)return!1;try{u.call(e);try{o.call(e)}catch(t){return!0}return e instanceof Set}catch(n){}return!1}function ae(e){if(!p||!e||"object"!==typeof e)return!1;try{p.call(e,p);try{h.call(e,h)}catch(t){return!0}return e instanceof WeakSet}catch(n){}return!1}function ce(e){return!(!e||"object"!==typeof e)&&("undefined"!==typeof HTMLElement&&e instanceof HTMLElement||"string"===typeof e.nodeName&&"function"===typeof e.getAttribute)}function ue(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return ue(T.call(e,0,t.maxStringLength),t)+r}var i=C.call(C.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,le);return B(i,"single",t)}function le(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+M.call(t.toString(16))}function fe(e){return"Object("+e+")"}function he(e){return e+" { ? }"}function de(e,t,n,r){var i=r?ve(n,r):N.call(n,", ");return e+" ("+t+") {"+i+"}"}function pe(e){for(var t=0;t<e.length;t++)if(ne(e[t],"\n")>=0)return!1;return!0}function ge(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"===typeof e.indent&&e.indent>0))return null;n=N.call(Array(e.indent+1)," ")}return{base:n,prev:N.call(Array(t+1),n)}}function ve(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+N.call(e,","+n)+"\n"+t.prev}function ye(e,t){var n=Y(e),r=[];if(n){r.length=e.length;for(var i=0;i<e.length;i++)r[i]=X(e,i)?t(e[i],e):""}var o,s="function"===typeof R?R(e):[];if(L){o={};for(var a=0;a<s.length;a++)o["$"+s[a]]=s[a]}for(var c in e)X(e,c)&&(n&&String(Number(c))===c&&c<e.length||L&&o["$"+c]instanceof Symbol||(A.call(/[^\w$]/,c)?r.push(t(c,e)+": "+t(e[c],e)):r.push(c+": "+t(e[c],e))));if("function"===typeof R)for(var u=0;u<s.length;u++)x.call(e,s[u])&&r.push("["+t(s[u])+"]: "+t(e[s[u]],e));return r}},2748:function(e,t,n){var r=n("5ca1"),i=180/Math.PI;r(r.S,"Math",{degrees:function(e){return e*i}})},"27ee":function(e,t,n){var r=n("23c6"),i=n("2b4c")("iterator"),o=n("84f2");e.exports=n("8378").getIteratorMethod=function(e){if(void 0!=e)return e[i]||e["@@iterator"]||o[r(e)]}},2877:function(e,t,n){"use strict";function r(e,t,n,r,i,o,s,a){var c,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),s?(c=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},u._ssrRegister=c):i&&(c=a?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(e,t){return c.call(t),l(e,t)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,c):[c]}return{exports:e,options:u}}n.d(t,"a",(function(){return r}))},"28a5":function(e,t,n){"use strict";var r=n("aae3"),i=n("cb7c"),o=n("ebd6"),s=n("0390"),a=n("9def"),c=n("5f1b"),u=n("520a"),l=n("79e5"),f=Math.min,h=[].push,d="split",p="length",g="lastIndex",v=4294967295,y=!l((function(){RegExp(v,"y")}));n("214f")("split",2,(function(e,t,n,l){var m;return m="c"=="abbc"[d](/(b)*/)[1]||4!="test"[d](/(?:)/,-1)[p]||2!="ab"[d](/(?:ab)*/)[p]||4!="."[d](/(.?)(.?)/)[p]||"."[d](/()()/)[p]>1||""[d](/.?/)[p]?function(e,t){var i=String(this);if(void 0===e&&0===t)return[];if(!r(e))return n.call(i,e,t);var o,s,a,c=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),f=0,d=void 0===t?v:t>>>0,y=new RegExp(e.source,l+"g");while(o=u.call(y,i)){if(s=y[g],s>f&&(c.push(i.slice(f,o.index)),o[p]>1&&o.index<i[p]&&h.apply(c,o.slice(1)),a=o[0][p],f=s,c[p]>=d))break;y[g]===o.index&&y[g]++}return f===i[p]?!a&&y.test("")||c.push(""):c.push(i.slice(f)),c[p]>d?c.slice(0,d):c}:"0"[d](void 0,0)[p]?function(e,t){return void 0===e&&0===t?[]:n.call(this,e,t)}:n,[function(n,r){var i=e(this),o=void 0==n?void 0:n[t];return void 0!==o?o.call(n,i,r):m.call(String(i),n,r)},function(e,t){var r=l(m,e,this,t,m!==n);if(r.done)return r.value;var u=i(e),h=String(this),d=o(u,RegExp),p=u.unicode,g=(u.ignoreCase?"i":"")+(u.multiline?"m":"")+(u.unicode?"u":"")+(y?"y":"g"),I=new d(y?u:"^(?:"+u.source+")",g),_=void 0===t?v:t>>>0;if(0===_)return[];if(0===h.length)return null===c(I,h)?[h]:[];var T=0,C=0,M=[];while(C<h.length){I.lastIndex=y?C:0;var E,A=c(I,y?h:h.slice(C));if(null===A||(E=f(a(I.lastIndex+(y?0:C)),h.length))===T)C=s(h,C,p);else{if(M.push(h.slice(T,C)),M.length===_)return M;for(var S=1;S<=A.length-1;S++)if(M.push(A[S]),M.length===_)return M;C=T=E}}return M.push(h.slice(T)),M}]}))},"28e4":function(e,t,n){"use strict";var r=n("5ca1"),i=n("d8e8"),o=n("9b43"),s=n("4a59");e.exports=function(e){r(r.S,e,{from:function(e){var t,n,r,a,c=arguments[1];return i(this),t=void 0!==c,t&&i(c),void 0==e?new this:(n=[],t?(r=0,a=o(c,arguments[2],2),s(e,!1,(function(e){n.push(a(e,r++))}))):s(e,!1,n.push,n),new this(n))}})}},"294c":function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},"2aba":function(e,t,n){var r=n("7726"),i=n("32e9"),o=n("69a8"),s=n("ca5a")("src"),a=n("fa5b"),c="toString",u=(""+a).split(c);n("8378").inspectSource=function(e){return a.call(e)},(e.exports=function(e,t,n,a){var c="function"==typeof n;c&&(o(n,"name")||i(n,"name",t)),e[t]!==n&&(c&&(o(n,s)||i(n,s,e[t]?""+e[t]:u.join(String(t)))),e===r?e[t]=n:a?e[t]?e[t]=n:i(e,t,n):(delete e[t],i(e,t,n)))})(Function.prototype,c,(function(){return"function"==typeof this&&this[s]||a.call(this)}))},"2aeb":function(e,t,n){var r=n("cb7c"),i=n("1495"),o=n("e11e"),s=n("613b")("IE_PROTO"),a=function(){},c="prototype",u=function(){var e,t=n("230e")("iframe"),r=o.length,i="<",s=">";t.style.display="none",n("fab2").appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(i+"script"+s+"document.F=Object"+i+"/script"+s),e.close(),u=e.F;while(r--)delete u[c][o[r]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(a[c]=r(e),n=new a,a[c]=null,n[s]=e):n=u(),void 0===t?n:i(n,t)}},"2b0e":function(e,t,n){"use strict";n.r(t),function(e){
- /*!
- * Vue.js v2.6.10
- * (c) 2014-2019 Evan You
- * Released under the MIT License.
- */
- var n=Object.freeze({});function r(e){return void 0===e||null===e}function i(e){return void 0!==e&&null!==e}function o(e){return!0===e}function s(e){return!1===e}function a(e){return"string"===typeof e||"number"===typeof e||"symbol"===typeof e||"boolean"===typeof e}function c(e){return null!==e&&"object"===typeof e}var u=Object.prototype.toString;function l(e){return"[object Object]"===u.call(e)}function f(e){return"[object RegExp]"===u.call(e)}function h(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function d(e){return i(e)&&"function"===typeof e.then&&"function"===typeof e.catch}function p(e){return null==e?"":Array.isArray(e)||l(e)&&e.toString===u?JSON.stringify(e,null,2):String(e)}function g(e){var t=parseFloat(e);return isNaN(t)?e:t}function v(e,t){for(var n=Object.create(null),r=e.split(","),i=0;i<r.length;i++)n[r[i]]=!0;return t?function(e){return n[e.toLowerCase()]}:function(e){return n[e]}}v("slot,component",!0);var y=v("key,ref,slot,slot-scope,is");function m(e,t){if(e.length){var n=e.indexOf(t);if(n>-1)return e.splice(n,1)}}var I=Object.prototype.hasOwnProperty;function _(e,t){return I.call(e,t)}function T(e){var t=Object.create(null);return function(n){var r=t[n];return r||(t[n]=e(n))}}var C=/-(\w)/g,M=T((function(e){return e.replace(C,(function(e,t){return t?t.toUpperCase():""}))})),E=T((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),A=/\B([A-Z])/g,S=T((function(e){return e.replace(A,"-$1").toLowerCase()}));function N(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n}function b(e,t){return e.bind(t)}var w=Function.prototype.bind?b:N;function O(e,t){t=t||0;var n=e.length-t,r=new Array(n);while(n--)r[n]=e[n+t];return r}function R(e,t){for(var n in t)e[n]=t[n];return e}function D(e){for(var t={},n=0;n<e.length;n++)e[n]&&R(t,e[n]);return t}function L(e,t,n){}var U=function(e,t,n){return!1},x=function(e){return e};function P(e,t){if(e===t)return!0;var n=c(e),r=c(t);if(!n||!r)return!n&&!r&&String(e)===String(t);try{var i=Array.isArray(e),o=Array.isArray(t);if(i&&o)return e.length===t.length&&e.every((function(e,n){return P(e,t[n])}));if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(i||o)return!1;var s=Object.keys(e),a=Object.keys(t);return s.length===a.length&&s.every((function(n){return P(e[n],t[n])}))}catch(u){return!1}}function j(e,t){for(var n=0;n<e.length;n++)if(P(e[n],t))return n;return-1}function k(e){var t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}var z="data-server-rendered",G=["component","directive","filter"],B=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],V={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:U,isReservedAttr:U,isUnknownElement:U,getTagNamespace:L,parsePlatformTagName:x,mustUseProp:U,async:!0,_lifecycleHooks:B},Y=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function H(e){var t=(e+"").charCodeAt(0);return 36===t||95===t}function F(e,t,n,r){Object.defineProperty(e,t,{value:n,enumerable:!!r,writable:!0,configurable:!0})}var Q=new RegExp("[^"+Y.source+".$_\\d]");function $(e){if(!Q.test(e)){var t=e.split(".");return function(e){for(var n=0;n<t.length;n++){if(!e)return;e=e[t[n]]}return e}}}var K,W="__proto__"in{},q="undefined"!==typeof window,Z="undefined"!==typeof WXEnvironment&&!!WXEnvironment.platform,J=Z&&WXEnvironment.platform.toLowerCase(),X=q&&window.navigator.userAgent.toLowerCase(),ee=X&&/msie|trident/.test(X),te=X&&X.indexOf("msie 9.0")>0,ne=X&&X.indexOf("edge/")>0,re=(X&&X.indexOf("android"),X&&/iphone|ipad|ipod|ios/.test(X)||"ios"===J),ie=(X&&/chrome\/\d+/.test(X),X&&/phantomjs/.test(X),X&&X.match(/firefox\/(\d+)/)),oe={}.watch,se=!1;if(q)try{var ae={};Object.defineProperty(ae,"passive",{get:function(){se=!0}}),window.addEventListener("test-passive",null,ae)}catch(Ms){}var ce=function(){return void 0===K&&(K=!q&&!Z&&"undefined"!==typeof e&&(e["process"]&&"server"===e["process"].env.VUE_ENV)),K},ue=q&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function le(e){return"function"===typeof e&&/native code/.test(e.toString())}var fe,he="undefined"!==typeof Symbol&&le(Symbol)&&"undefined"!==typeof Reflect&&le(Reflect.ownKeys);fe="undefined"!==typeof Set&&le(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var de=L,pe=0,ge=function(){this.id=pe++,this.subs=[]};ge.prototype.addSub=function(e){this.subs.push(e)},ge.prototype.removeSub=function(e){m(this.subs,e)},ge.prototype.depend=function(){ge.target&&ge.target.addDep(this)},ge.prototype.notify=function(){var e=this.subs.slice();for(var t=0,n=e.length;t<n;t++)e[t].update()},ge.target=null;var ve=[];function ye(e){ve.push(e),ge.target=e}function me(){ve.pop(),ge.target=ve[ve.length-1]}var Ie=function(e,t,n,r,i,o,s,a){this.tag=e,this.data=t,this.children=n,this.text=r,this.elm=i,this.ns=void 0,this.context=o,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=t&&t.key,this.componentOptions=s,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=a,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},_e={child:{configurable:!0}};_e.child.get=function(){return this.componentInstance},Object.defineProperties(Ie.prototype,_e);var Te=function(e){void 0===e&&(e="");var t=new Ie;return t.text=e,t.isComment=!0,t};function Ce(e){return new Ie(void 0,void 0,void 0,String(e))}function Me(e){var t=new Ie(e.tag,e.data,e.children&&e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return t.ns=e.ns,t.isStatic=e.isStatic,t.key=e.key,t.isComment=e.isComment,t.fnContext=e.fnContext,t.fnOptions=e.fnOptions,t.fnScopeId=e.fnScopeId,t.asyncMeta=e.asyncMeta,t.isCloned=!0,t}var Ee=Array.prototype,Ae=Object.create(Ee),Se=["push","pop","shift","unshift","splice","sort","reverse"];Se.forEach((function(e){var t=Ee[e];F(Ae,e,(function(){var n=[],r=arguments.length;while(r--)n[r]=arguments[r];var i,o=t.apply(this,n),s=this.__ob__;switch(e){case"push":case"unshift":i=n;break;case"splice":i=n.slice(2);break}return i&&s.observeArray(i),s.dep.notify(),o}))}));var Ne=Object.getOwnPropertyNames(Ae),be=!0;function we(e){be=e}var Oe=function(e){this.value=e,this.dep=new ge,this.vmCount=0,F(e,"__ob__",this),Array.isArray(e)?(W?Re(e,Ae):De(e,Ae,Ne),this.observeArray(e)):this.walk(e)};function Re(e,t){e.__proto__=t}function De(e,t,n){for(var r=0,i=n.length;r<i;r++){var o=n[r];F(e,o,t[o])}}function Le(e,t){var n;if(c(e)&&!(e instanceof Ie))return _(e,"__ob__")&&e.__ob__ instanceof Oe?n=e.__ob__:be&&!ce()&&(Array.isArray(e)||l(e))&&Object.isExtensible(e)&&!e._isVue&&(n=new Oe(e)),t&&n&&n.vmCount++,n}function Ue(e,t,n,r,i){var o=new ge,s=Object.getOwnPropertyDescriptor(e,t);if(!s||!1!==s.configurable){var a=s&&s.get,c=s&&s.set;a&&!c||2!==arguments.length||(n=e[t]);var u=!i&&Le(n);Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){var t=a?a.call(e):n;return ge.target&&(o.depend(),u&&(u.dep.depend(),Array.isArray(t)&&je(t))),t},set:function(t){var r=a?a.call(e):n;t===r||t!==t&&r!==r||a&&!c||(c?c.call(e,t):n=t,u=!i&&Le(t),o.notify())}})}}function xe(e,t,n){if(Array.isArray(e)&&h(t))return e.length=Math.max(e.length,t),e.splice(t,1,n),n;if(t in e&&!(t in Object.prototype))return e[t]=n,n;var r=e.__ob__;return e._isVue||r&&r.vmCount?n:r?(Ue(r.value,t,n),r.dep.notify(),n):(e[t]=n,n)}function Pe(e,t){if(Array.isArray(e)&&h(t))e.splice(t,1);else{var n=e.__ob__;e._isVue||n&&n.vmCount||_(e,t)&&(delete e[t],n&&n.dep.notify())}}function je(e){for(var t=void 0,n=0,r=e.length;n<r;n++)t=e[n],t&&t.__ob__&&t.__ob__.dep.depend(),Array.isArray(t)&&je(t)}Oe.prototype.walk=function(e){for(var t=Object.keys(e),n=0;n<t.length;n++)Ue(e,t[n])},Oe.prototype.observeArray=function(e){for(var t=0,n=e.length;t<n;t++)Le(e[t])};var ke=V.optionMergeStrategies;function ze(e,t){if(!t)return e;for(var n,r,i,o=he?Reflect.ownKeys(t):Object.keys(t),s=0;s<o.length;s++)n=o[s],"__ob__"!==n&&(r=e[n],i=t[n],_(e,n)?r!==i&&l(r)&&l(i)&&ze(r,i):xe(e,n,i));return e}function Ge(e,t,n){return n?function(){var r="function"===typeof t?t.call(n,n):t,i="function"===typeof e?e.call(n,n):e;return r?ze(r,i):i}:t?e?function(){return ze("function"===typeof t?t.call(this,this):t,"function"===typeof e?e.call(this,this):e)}:t:e}function Be(e,t){var n=t?e?e.concat(t):Array.isArray(t)?t:[t]:e;return n?Ve(n):n}function Ve(e){for(var t=[],n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}function Ye(e,t,n,r){var i=Object.create(e||null);return t?R(i,t):i}ke.data=function(e,t,n){return n?Ge(e,t,n):t&&"function"!==typeof t?e:Ge(e,t)},B.forEach((function(e){ke[e]=Be})),G.forEach((function(e){ke[e+"s"]=Ye})),ke.watch=function(e,t,n,r){if(e===oe&&(e=void 0),t===oe&&(t=void 0),!t)return Object.create(e||null);if(!e)return t;var i={};for(var o in R(i,e),t){var s=i[o],a=t[o];s&&!Array.isArray(s)&&(s=[s]),i[o]=s?s.concat(a):Array.isArray(a)?a:[a]}return i},ke.props=ke.methods=ke.inject=ke.computed=function(e,t,n,r){if(!e)return t;var i=Object.create(null);return R(i,e),t&&R(i,t),i},ke.provide=Ge;var He=function(e,t){return void 0===t?e:t};function Fe(e,t){var n=e.props;if(n){var r,i,o,s={};if(Array.isArray(n)){r=n.length;while(r--)i=n[r],"string"===typeof i&&(o=M(i),s[o]={type:null})}else if(l(n))for(var a in n)i=n[a],o=M(a),s[o]=l(i)?i:{type:i};else 0;e.props=s}}function Qe(e,t){var n=e.inject;if(n){var r=e.inject={};if(Array.isArray(n))for(var i=0;i<n.length;i++)r[n[i]]={from:n[i]};else if(l(n))for(var o in n){var s=n[o];r[o]=l(s)?R({from:o},s):{from:s}}else 0}}function $e(e){var t=e.directives;if(t)for(var n in t){var r=t[n];"function"===typeof r&&(t[n]={bind:r,update:r})}}function Ke(e,t,n){if("function"===typeof t&&(t=t.options),Fe(t,n),Qe(t,n),$e(t),!t._base&&(t.extends&&(e=Ke(e,t.extends,n)),t.mixins))for(var r=0,i=t.mixins.length;r<i;r++)e=Ke(e,t.mixins[r],n);var o,s={};for(o in e)a(o);for(o in t)_(e,o)||a(o);function a(r){var i=ke[r]||He;s[r]=i(e[r],t[r],n,r)}return s}function We(e,t,n,r){if("string"===typeof n){var i=e[t];if(_(i,n))return i[n];var o=M(n);if(_(i,o))return i[o];var s=E(o);if(_(i,s))return i[s];var a=i[n]||i[o]||i[s];return a}}function qe(e,t,n,r){var i=t[e],o=!_(n,e),s=n[e],a=et(Boolean,i.type);if(a>-1)if(o&&!_(i,"default"))s=!1;else if(""===s||s===S(e)){var c=et(String,i.type);(c<0||a<c)&&(s=!0)}if(void 0===s){s=Ze(r,i,e);var u=be;we(!0),Le(s),we(u)}return s}function Ze(e,t,n){if(_(t,"default")){var r=t.default;return e&&e.$options.propsData&&void 0===e.$options.propsData[n]&&void 0!==e._props[n]?e._props[n]:"function"===typeof r&&"Function"!==Je(t.type)?r.call(e):r}}function Je(e){var t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:""}function Xe(e,t){return Je(e)===Je(t)}function et(e,t){if(!Array.isArray(t))return Xe(t,e)?0:-1;for(var n=0,r=t.length;n<r;n++)if(Xe(t[n],e))return n;return-1}function tt(e,t,n){ye();try{if(t){var r=t;while(r=r.$parent){var i=r.$options.errorCaptured;if(i)for(var o=0;o<i.length;o++)try{var s=!1===i[o].call(r,e,t,n);if(s)return}catch(Ms){rt(Ms,r,"errorCaptured hook")}}}rt(e,t,n)}finally{me()}}function nt(e,t,n,r,i){var o;try{o=n?e.apply(t,n):e.call(t),o&&!o._isVue&&d(o)&&!o._handled&&(o.catch((function(e){return tt(e,r,i+" (Promise/async)")})),o._handled=!0)}catch(Ms){tt(Ms,r,i)}return o}function rt(e,t,n){if(V.errorHandler)try{return V.errorHandler.call(null,e,t,n)}catch(Ms){Ms!==e&&it(Ms,null,"config.errorHandler")}it(e,t,n)}function it(e,t,n){if(!q&&!Z||"undefined"===typeof console)throw e;console.error(e)}var ot,st=!1,at=[],ct=!1;function ut(){ct=!1;var e=at.slice(0);at.length=0;for(var t=0;t<e.length;t++)e[t]()}if("undefined"!==typeof Promise&&le(Promise)){var lt=Promise.resolve();ot=function(){lt.then(ut),re&&setTimeout(L)},st=!0}else if(ee||"undefined"===typeof MutationObserver||!le(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())ot="undefined"!==typeof setImmediate&&le(setImmediate)?function(){setImmediate(ut)}:function(){setTimeout(ut,0)};else{var ft=1,ht=new MutationObserver(ut),dt=document.createTextNode(String(ft));ht.observe(dt,{characterData:!0}),ot=function(){ft=(ft+1)%2,dt.data=String(ft)},st=!0}function pt(e,t){var n;if(at.push((function(){if(e)try{e.call(t)}catch(Ms){tt(Ms,t,"nextTick")}else n&&n(t)})),ct||(ct=!0,ot()),!e&&"undefined"!==typeof Promise)return new Promise((function(e){n=e}))}var gt=new fe;function vt(e){yt(e,gt),gt.clear()}function yt(e,t){var n,r,i=Array.isArray(e);if(!(!i&&!c(e)||Object.isFrozen(e)||e instanceof Ie)){if(e.__ob__){var o=e.__ob__.dep.id;if(t.has(o))return;t.add(o)}if(i){n=e.length;while(n--)yt(e[n],t)}else{r=Object.keys(e),n=r.length;while(n--)yt(e[r[n]],t)}}}var mt=T((function(e){var t="&"===e.charAt(0);e=t?e.slice(1):e;var n="~"===e.charAt(0);e=n?e.slice(1):e;var r="!"===e.charAt(0);return e=r?e.slice(1):e,{name:e,once:n,capture:r,passive:t}}));function It(e,t){function n(){var e=arguments,r=n.fns;if(!Array.isArray(r))return nt(r,null,arguments,t,"v-on handler");for(var i=r.slice(),o=0;o<i.length;o++)nt(i[o],null,e,t,"v-on handler")}return n.fns=e,n}function _t(e,t,n,i,s,a){var c,u,l,f;for(c in e)u=e[c],l=t[c],f=mt(c),r(u)||(r(l)?(r(u.fns)&&(u=e[c]=It(u,a)),o(f.once)&&(u=e[c]=s(f.name,u,f.capture)),n(f.name,u,f.capture,f.passive,f.params)):u!==l&&(l.fns=u,e[c]=l));for(c in t)r(e[c])&&(f=mt(c),i(f.name,t[c],f.capture))}function Tt(e,t,n){var s;e instanceof Ie&&(e=e.data.hook||(e.data.hook={}));var a=e[t];function c(){n.apply(this,arguments),m(s.fns,c)}r(a)?s=It([c]):i(a.fns)&&o(a.merged)?(s=a,s.fns.push(c)):s=It([a,c]),s.merged=!0,e[t]=s}function Ct(e,t,n){var o=t.options.props;if(!r(o)){var s={},a=e.attrs,c=e.props;if(i(a)||i(c))for(var u in o){var l=S(u);Mt(s,c,u,l,!0)||Mt(s,a,u,l,!1)}return s}}function Mt(e,t,n,r,o){if(i(t)){if(_(t,n))return e[n]=t[n],o||delete t[n],!0;if(_(t,r))return e[n]=t[r],o||delete t[r],!0}return!1}function Et(e){for(var t=0;t<e.length;t++)if(Array.isArray(e[t]))return Array.prototype.concat.apply([],e);return e}function At(e){return a(e)?[Ce(e)]:Array.isArray(e)?Nt(e):void 0}function St(e){return i(e)&&i(e.text)&&s(e.isComment)}function Nt(e,t){var n,s,c,u,l=[];for(n=0;n<e.length;n++)s=e[n],r(s)||"boolean"===typeof s||(c=l.length-1,u=l[c],Array.isArray(s)?s.length>0&&(s=Nt(s,(t||"")+"_"+n),St(s[0])&&St(u)&&(l[c]=Ce(u.text+s[0].text),s.shift()),l.push.apply(l,s)):a(s)?St(u)?l[c]=Ce(u.text+s):""!==s&&l.push(Ce(s)):St(s)&&St(u)?l[c]=Ce(u.text+s.text):(o(e._isVList)&&i(s.tag)&&r(s.key)&&i(t)&&(s.key="__vlist"+t+"_"+n+"__"),l.push(s)));return l}function bt(e){var t=e.$options.provide;t&&(e._provided="function"===typeof t?t.call(e):t)}function wt(e){var t=Ot(e.$options.inject,e);t&&(we(!1),Object.keys(t).forEach((function(n){Ue(e,n,t[n])})),we(!0))}function Ot(e,t){if(e){for(var n=Object.create(null),r=he?Reflect.ownKeys(e):Object.keys(e),i=0;i<r.length;i++){var o=r[i];if("__ob__"!==o){var s=e[o].from,a=t;while(a){if(a._provided&&_(a._provided,s)){n[o]=a._provided[s];break}a=a.$parent}if(!a)if("default"in e[o]){var c=e[o].default;n[o]="function"===typeof c?c.call(t):c}else 0}}return n}}function Rt(e,t){if(!e||!e.length)return{};for(var n={},r=0,i=e.length;r<i;r++){var o=e[r],s=o.data;if(s&&s.attrs&&s.attrs.slot&&delete s.attrs.slot,o.context!==t&&o.fnContext!==t||!s||null==s.slot)(n.default||(n.default=[])).push(o);else{var a=s.slot,c=n[a]||(n[a]=[]);"template"===o.tag?c.push.apply(c,o.children||[]):c.push(o)}}for(var u in n)n[u].every(Dt)&&delete n[u];return n}function Dt(e){return e.isComment&&!e.asyncFactory||" "===e.text}function Lt(e,t,r){var i,o=Object.keys(t).length>0,s=e?!!e.$stable:!o,a=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(s&&r&&r!==n&&a===r.$key&&!o&&!r.$hasNormal)return r;for(var c in i={},e)e[c]&&"$"!==c[0]&&(i[c]=Ut(t,c,e[c]))}else i={};for(var u in t)u in i||(i[u]=xt(t,u));return e&&Object.isExtensible(e)&&(e._normalized=i),F(i,"$stable",s),F(i,"$key",a),F(i,"$hasNormal",o),i}function Ut(e,t,n){var r=function(){var e=arguments.length?n.apply(null,arguments):n({});return e=e&&"object"===typeof e&&!Array.isArray(e)?[e]:At(e),e&&(0===e.length||1===e.length&&e[0].isComment)?void 0:e};return n.proxy&&Object.defineProperty(e,t,{get:r,enumerable:!0,configurable:!0}),r}function xt(e,t){return function(){return e[t]}}function Pt(e,t){var n,r,o,s,a;if(Array.isArray(e)||"string"===typeof e)for(n=new Array(e.length),r=0,o=e.length;r<o;r++)n[r]=t(e[r],r);else if("number"===typeof e)for(n=new Array(e),r=0;r<e;r++)n[r]=t(r+1,r);else if(c(e))if(he&&e[Symbol.iterator]){n=[];var u=e[Symbol.iterator](),l=u.next();while(!l.done)n.push(t(l.value,n.length)),l=u.next()}else for(s=Object.keys(e),n=new Array(s.length),r=0,o=s.length;r<o;r++)a=s[r],n[r]=t(e[a],a,r);return i(n)||(n=[]),n._isVList=!0,n}function jt(e,t,n,r){var i,o=this.$scopedSlots[e];o?(n=n||{},r&&(n=R(R({},r),n)),i=o(n)||t):i=this.$slots[e]||t;var s=n&&n.slot;return s?this.$createElement("template",{slot:s},i):i}function kt(e){return We(this.$options,"filters",e,!0)||x}function zt(e,t){return Array.isArray(e)?-1===e.indexOf(t):e!==t}function Gt(e,t,n,r,i){var o=V.keyCodes[t]||n;return i&&r&&!V.keyCodes[t]?zt(i,r):o?zt(o,e):r?S(r)!==t:void 0}function Bt(e,t,n,r,i){if(n)if(c(n)){var o;Array.isArray(n)&&(n=D(n));var s=function(s){if("class"===s||"style"===s||y(s))o=e;else{var a=e.attrs&&e.attrs.type;o=r||V.mustUseProp(t,a,s)?e.domProps||(e.domProps={}):e.attrs||(e.attrs={})}var c=M(s),u=S(s);if(!(c in o)&&!(u in o)&&(o[s]=n[s],i)){var l=e.on||(e.on={});l["update:"+s]=function(e){n[s]=e}}};for(var a in n)s(a)}else;return e}function Vt(e,t){var n=this._staticTrees||(this._staticTrees=[]),r=n[e];return r&&!t||(r=n[e]=this.$options.staticRenderFns[e].call(this._renderProxy,null,this),Ht(r,"__static__"+e,!1)),r}function Yt(e,t,n){return Ht(e,"__once__"+t+(n?"_"+n:""),!0),e}function Ht(e,t,n){if(Array.isArray(e))for(var r=0;r<e.length;r++)e[r]&&"string"!==typeof e[r]&&Ft(e[r],t+"_"+r,n);else Ft(e,t,n)}function Ft(e,t,n){e.isStatic=!0,e.key=t,e.isOnce=n}function Qt(e,t){if(t)if(l(t)){var n=e.on=e.on?R({},e.on):{};for(var r in t){var i=n[r],o=t[r];n[r]=i?[].concat(i,o):o}}else;return e}function $t(e,t,n,r){t=t||{$stable:!n};for(var i=0;i<e.length;i++){var o=e[i];Array.isArray(o)?$t(o,t,n):o&&(o.proxy&&(o.fn.proxy=!0),t[o.key]=o.fn)}return r&&(t.$key=r),t}function Kt(e,t){for(var n=0;n<t.length;n+=2){var r=t[n];"string"===typeof r&&r&&(e[t[n]]=t[n+1])}return e}function Wt(e,t){return"string"===typeof e?t+e:e}function qt(e){e._o=Yt,e._n=g,e._s=p,e._l=Pt,e._t=jt,e._q=P,e._i=j,e._m=Vt,e._f=kt,e._k=Gt,e._b=Bt,e._v=Ce,e._e=Te,e._u=$t,e._g=Qt,e._d=Kt,e._p=Wt}function Zt(e,t,r,i,s){var a,c=this,u=s.options;_(i,"_uid")?(a=Object.create(i),a._original=i):(a=i,i=i._original);var l=o(u._compiled),f=!l;this.data=e,this.props=t,this.children=r,this.parent=i,this.listeners=e.on||n,this.injections=Ot(u.inject,i),this.slots=function(){return c.$slots||Lt(e.scopedSlots,c.$slots=Rt(r,i)),c.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return Lt(e.scopedSlots,this.slots())}}),l&&(this.$options=u,this.$slots=this.slots(),this.$scopedSlots=Lt(e.scopedSlots,this.$slots)),u._scopeId?this._c=function(e,t,n,r){var o=fn(a,e,t,n,r,f);return o&&!Array.isArray(o)&&(o.fnScopeId=u._scopeId,o.fnContext=i),o}:this._c=function(e,t,n,r){return fn(a,e,t,n,r,f)}}function Jt(e,t,r,o,s){var a=e.options,c={},u=a.props;if(i(u))for(var l in u)c[l]=qe(l,u,t||n);else i(r.attrs)&&en(c,r.attrs),i(r.props)&&en(c,r.props);var f=new Zt(r,c,s,o,e),h=a.render.call(null,f._c,f);if(h instanceof Ie)return Xt(h,r,f.parent,a,f);if(Array.isArray(h)){for(var d=At(h)||[],p=new Array(d.length),g=0;g<d.length;g++)p[g]=Xt(d[g],r,f.parent,a,f);return p}}function Xt(e,t,n,r,i){var o=Me(e);return o.fnContext=n,o.fnOptions=r,t.slot&&((o.data||(o.data={})).slot=t.slot),o}function en(e,t){for(var n in t)e[M(n)]=t[n]}qt(Zt.prototype);var tn={init:function(e,t){if(e.componentInstance&&!e.componentInstance._isDestroyed&&e.data.keepAlive){var n=e;tn.prepatch(n,n)}else{var r=e.componentInstance=on(e,On);r.$mount(t?e.elm:void 0,t)}},prepatch:function(e,t){var n=t.componentOptions,r=t.componentInstance=e.componentInstance;xn(r,n.propsData,n.listeners,t,n.children)},insert:function(e){var t=e.context,n=e.componentInstance;n._isMounted||(n._isMounted=!0,zn(n,"mounted")),e.data.keepAlive&&(t._isMounted?Jn(n):jn(n,!0))},destroy:function(e){var t=e.componentInstance;t._isDestroyed||(e.data.keepAlive?kn(t,!0):t.$destroy())}},nn=Object.keys(tn);function rn(e,t,n,s,a){if(!r(e)){var u=n.$options._base;if(c(e)&&(e=u.extend(e)),"function"===typeof e){var l;if(r(e.cid)&&(l=e,e=Tn(l,u),void 0===e))return _n(l,t,n,s,a);t=t||{},Tr(e),i(t.model)&&cn(e.options,t);var f=Ct(t,e,a);if(o(e.options.functional))return Jt(e,f,t,n,s);var h=t.on;if(t.on=t.nativeOn,o(e.options.abstract)){var d=t.slot;t={},d&&(t.slot=d)}sn(t);var p=e.options.name||a,g=new Ie("vue-component-"+e.cid+(p?"-"+p:""),t,void 0,void 0,void 0,n,{Ctor:e,propsData:f,listeners:h,tag:a,children:s},l);return g}}}function on(e,t){var n={_isComponent:!0,_parentVnode:e,parent:t},r=e.data.inlineTemplate;return i(r)&&(n.render=r.render,n.staticRenderFns=r.staticRenderFns),new e.componentOptions.Ctor(n)}function sn(e){for(var t=e.hook||(e.hook={}),n=0;n<nn.length;n++){var r=nn[n],i=t[r],o=tn[r];i===o||i&&i._merged||(t[r]=i?an(o,i):o)}}function an(e,t){var n=function(n,r){e(n,r),t(n,r)};return n._merged=!0,n}function cn(e,t){var n=e.model&&e.model.prop||"value",r=e.model&&e.model.event||"input";(t.attrs||(t.attrs={}))[n]=t.model.value;var o=t.on||(t.on={}),s=o[r],a=t.model.callback;i(s)?(Array.isArray(s)?-1===s.indexOf(a):s!==a)&&(o[r]=[a].concat(s)):o[r]=a}var un=1,ln=2;function fn(e,t,n,r,i,s){return(Array.isArray(n)||a(n))&&(i=r,r=n,n=void 0),o(s)&&(i=ln),hn(e,t,n,r,i)}function hn(e,t,n,r,o){if(i(n)&&i(n.__ob__))return Te();if(i(n)&&i(n.is)&&(t=n.is),!t)return Te();var s,a,c;(Array.isArray(r)&&"function"===typeof r[0]&&(n=n||{},n.scopedSlots={default:r[0]},r.length=0),o===ln?r=At(r):o===un&&(r=Et(r)),"string"===typeof t)?(a=e.$vnode&&e.$vnode.ns||V.getTagNamespace(t),s=V.isReservedTag(t)?new Ie(V.parsePlatformTagName(t),n,r,void 0,void 0,e):n&&n.pre||!i(c=We(e.$options,"components",t))?new Ie(t,n,r,void 0,void 0,e):rn(c,n,e,r,t)):s=rn(t,n,e,r);return Array.isArray(s)?s:i(s)?(i(a)&&dn(s,a),i(n)&&pn(n),s):Te()}function dn(e,t,n){if(e.ns=t,"foreignObject"===e.tag&&(t=void 0,n=!0),i(e.children))for(var s=0,a=e.children.length;s<a;s++){var c=e.children[s];i(c.tag)&&(r(c.ns)||o(n)&&"svg"!==c.tag)&&dn(c,t,n)}}function pn(e){c(e.style)&&vt(e.style),c(e.class)&&vt(e.class)}function gn(e){e._vnode=null,e._staticTrees=null;var t=e.$options,r=e.$vnode=t._parentVnode,i=r&&r.context;e.$slots=Rt(t._renderChildren,i),e.$scopedSlots=n,e._c=function(t,n,r,i){return fn(e,t,n,r,i,!1)},e.$createElement=function(t,n,r,i){return fn(e,t,n,r,i,!0)};var o=r&&r.data;Ue(e,"$attrs",o&&o.attrs||n,null,!0),Ue(e,"$listeners",t._parentListeners||n,null,!0)}var vn,yn=null;function mn(e){qt(e.prototype),e.prototype.$nextTick=function(e){return pt(e,this)},e.prototype._render=function(){var e,t=this,n=t.$options,r=n.render,i=n._parentVnode;i&&(t.$scopedSlots=Lt(i.data.scopedSlots,t.$slots,t.$scopedSlots)),t.$vnode=i;try{yn=t,e=r.call(t._renderProxy,t.$createElement)}catch(Ms){tt(Ms,t,"render"),e=t._vnode}finally{yn=null}return Array.isArray(e)&&1===e.length&&(e=e[0]),e instanceof Ie||(e=Te()),e.parent=i,e}}function In(e,t){return(e.__esModule||he&&"Module"===e[Symbol.toStringTag])&&(e=e.default),c(e)?t.extend(e):e}function _n(e,t,n,r,i){var o=Te();return o.asyncFactory=e,o.asyncMeta={data:t,context:n,children:r,tag:i},o}function Tn(e,t){if(o(e.error)&&i(e.errorComp))return e.errorComp;if(i(e.resolved))return e.resolved;var n=yn;if(n&&i(e.owners)&&-1===e.owners.indexOf(n)&&e.owners.push(n),o(e.loading)&&i(e.loadingComp))return e.loadingComp;if(n&&!i(e.owners)){var s=e.owners=[n],a=!0,u=null,l=null;n.$on("hook:destroyed",(function(){return m(s,n)}));var f=function(e){for(var t=0,n=s.length;t<n;t++)s[t].$forceUpdate();e&&(s.length=0,null!==u&&(clearTimeout(u),u=null),null!==l&&(clearTimeout(l),l=null))},h=k((function(n){e.resolved=In(n,t),a?s.length=0:f(!0)})),p=k((function(t){i(e.errorComp)&&(e.error=!0,f(!0))})),g=e(h,p);return c(g)&&(d(g)?r(e.resolved)&&g.then(h,p):d(g.component)&&(g.component.then(h,p),i(g.error)&&(e.errorComp=In(g.error,t)),i(g.loading)&&(e.loadingComp=In(g.loading,t),0===g.delay?e.loading=!0:u=setTimeout((function(){u=null,r(e.resolved)&&r(e.error)&&(e.loading=!0,f(!1))}),g.delay||200)),i(g.timeout)&&(l=setTimeout((function(){l=null,r(e.resolved)&&p(null)}),g.timeout)))),a=!1,e.loading?e.loadingComp:e.resolved}}function Cn(e){return e.isComment&&e.asyncFactory}function Mn(e){if(Array.isArray(e))for(var t=0;t<e.length;t++){var n=e[t];if(i(n)&&(i(n.componentOptions)||Cn(n)))return n}}function En(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&bn(e,t)}function An(e,t){vn.$on(e,t)}function Sn(e,t){vn.$off(e,t)}function Nn(e,t){var n=vn;return function r(){var i=t.apply(null,arguments);null!==i&&n.$off(e,r)}}function bn(e,t,n){vn=e,_t(t,n||{},An,Sn,Nn,e),vn=void 0}function wn(e){var t=/^hook:/;e.prototype.$on=function(e,n){var r=this;if(Array.isArray(e))for(var i=0,o=e.length;i<o;i++)r.$on(e[i],n);else(r._events[e]||(r._events[e]=[])).push(n),t.test(e)&&(r._hasHookEvent=!0);return r},e.prototype.$once=function(e,t){var n=this;function r(){n.$off(e,r),t.apply(n,arguments)}return r.fn=t,n.$on(e,r),n},e.prototype.$off=function(e,t){var n=this;if(!arguments.length)return n._events=Object.create(null),n;if(Array.isArray(e)){for(var r=0,i=e.length;r<i;r++)n.$off(e[r],t);return n}var o,s=n._events[e];if(!s)return n;if(!t)return n._events[e]=null,n;var a=s.length;while(a--)if(o=s[a],o===t||o.fn===t){s.splice(a,1);break}return n},e.prototype.$emit=function(e){var t=this,n=t._events[e];if(n){n=n.length>1?O(n):n;for(var r=O(arguments,1),i='event handler for "'+e+'"',o=0,s=n.length;o<s;o++)nt(n[o],t,r,t,i)}return t}}var On=null;function Rn(e){var t=On;return On=e,function(){On=t}}function Dn(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){while(n.$options.abstract&&n.$parent)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}function Ln(e){e.prototype._update=function(e,t){var n=this,r=n.$el,i=n._vnode,o=Rn(n);n._vnode=e,n.$el=i?n.__patch__(i,e):n.__patch__(n.$el,e,t,!1),o(),r&&(r.__vue__=null),n.$el&&(n.$el.__vue__=n),n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode&&(n.$parent.$el=n.$el)},e.prototype.$forceUpdate=function(){var e=this;e._watcher&&e._watcher.update()},e.prototype.$destroy=function(){var e=this;if(!e._isBeingDestroyed){zn(e,"beforeDestroy"),e._isBeingDestroyed=!0;var t=e.$parent;!t||t._isBeingDestroyed||e.$options.abstract||m(t.$children,e),e._watcher&&e._watcher.teardown();var n=e._watchers.length;while(n--)e._watchers[n].teardown();e._data.__ob__&&e._data.__ob__.vmCount--,e._isDestroyed=!0,e.__patch__(e._vnode,null),zn(e,"destroyed"),e.$off(),e.$el&&(e.$el.__vue__=null),e.$vnode&&(e.$vnode.parent=null)}}}function Un(e,t,n){var r;return e.$el=t,e.$options.render||(e.$options.render=Te),zn(e,"beforeMount"),r=function(){e._update(e._render(),n)},new nr(e,r,L,{before:function(){e._isMounted&&!e._isDestroyed&&zn(e,"beforeUpdate")}},!0),n=!1,null==e.$vnode&&(e._isMounted=!0,zn(e,"mounted")),e}function xn(e,t,r,i,o){var s=i.data.scopedSlots,a=e.$scopedSlots,c=!!(s&&!s.$stable||a!==n&&!a.$stable||s&&e.$scopedSlots.$key!==s.$key),u=!!(o||e.$options._renderChildren||c);if(e.$options._parentVnode=i,e.$vnode=i,e._vnode&&(e._vnode.parent=i),e.$options._renderChildren=o,e.$attrs=i.data.attrs||n,e.$listeners=r||n,t&&e.$options.props){we(!1);for(var l=e._props,f=e.$options._propKeys||[],h=0;h<f.length;h++){var d=f[h],p=e.$options.props;l[d]=qe(d,p,t,e)}we(!0),e.$options.propsData=t}r=r||n;var g=e.$options._parentListeners;e.$options._parentListeners=r,bn(e,r,g),u&&(e.$slots=Rt(o,i.context),e.$forceUpdate())}function Pn(e){while(e&&(e=e.$parent))if(e._inactive)return!0;return!1}function jn(e,t){if(t){if(e._directInactive=!1,Pn(e))return}else if(e._directInactive)return;if(e._inactive||null===e._inactive){e._inactive=!1;for(var n=0;n<e.$children.length;n++)jn(e.$children[n]);zn(e,"activated")}}function kn(e,t){if((!t||(e._directInactive=!0,!Pn(e)))&&!e._inactive){e._inactive=!0;for(var n=0;n<e.$children.length;n++)kn(e.$children[n]);zn(e,"deactivated")}}function zn(e,t){ye();var n=e.$options[t],r=t+" hook";if(n)for(var i=0,o=n.length;i<o;i++)nt(n[i],e,null,e,r);e._hasHookEvent&&e.$emit("hook:"+t),me()}var Gn=[],Bn=[],Vn={},Yn=!1,Hn=!1,Fn=0;function Qn(){Fn=Gn.length=Bn.length=0,Vn={},Yn=Hn=!1}var $n=0,Kn=Date.now;if(q&&!ee){var Wn=window.performance;Wn&&"function"===typeof Wn.now&&Kn()>document.createEvent("Event").timeStamp&&(Kn=function(){return Wn.now()})}function qn(){var e,t;for($n=Kn(),Hn=!0,Gn.sort((function(e,t){return e.id-t.id})),Fn=0;Fn<Gn.length;Fn++)e=Gn[Fn],e.before&&e.before(),t=e.id,Vn[t]=null,e.run();var n=Bn.slice(),r=Gn.slice();Qn(),Xn(n),Zn(r),ue&&V.devtools&&ue.emit("flush")}function Zn(e){var t=e.length;while(t--){var n=e[t],r=n.vm;r._watcher===n&&r._isMounted&&!r._isDestroyed&&zn(r,"updated")}}function Jn(e){e._inactive=!1,Bn.push(e)}function Xn(e){for(var t=0;t<e.length;t++)e[t]._inactive=!0,jn(e[t],!0)}function er(e){var t=e.id;if(null==Vn[t]){if(Vn[t]=!0,Hn){var n=Gn.length-1;while(n>Fn&&Gn[n].id>e.id)n--;Gn.splice(n+1,0,e)}else Gn.push(e);Yn||(Yn=!0,pt(qn))}}var tr=0,nr=function(e,t,n,r,i){this.vm=e,i&&(e._watcher=this),e._watchers.push(this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync,this.before=r.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++tr,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new fe,this.newDepIds=new fe,this.expression="","function"===typeof t?this.getter=t:(this.getter=$(t),this.getter||(this.getter=L)),this.value=this.lazy?void 0:this.get()};nr.prototype.get=function(){var e;ye(this);var t=this.vm;try{e=this.getter.call(t,t)}catch(Ms){if(!this.user)throw Ms;tt(Ms,t,'getter for watcher "'+this.expression+'"')}finally{this.deep&&vt(e),me(),this.cleanupDeps()}return e},nr.prototype.addDep=function(e){var t=e.id;this.newDepIds.has(t)||(this.newDepIds.add(t),this.newDeps.push(e),this.depIds.has(t)||e.addSub(this))},nr.prototype.cleanupDeps=function(){var e=this.deps.length;while(e--){var t=this.deps[e];this.newDepIds.has(t.id)||t.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},nr.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():er(this)},nr.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||c(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(Ms){tt(Ms,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},nr.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},nr.prototype.depend=function(){var e=this.deps.length;while(e--)this.deps[e].depend()},nr.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||m(this.vm._watchers,this);var e=this.deps.length;while(e--)this.deps[e].removeSub(this);this.active=!1}};var rr={enumerable:!0,configurable:!0,get:L,set:L};function ir(e,t,n){rr.get=function(){return this[t][n]},rr.set=function(e){this[t][n]=e},Object.defineProperty(e,n,rr)}function or(e){e._watchers=[];var t=e.$options;t.props&&sr(e,t.props),t.methods&&pr(e,t.methods),t.data?ar(e):Le(e._data={},!0),t.computed&&lr(e,t.computed),t.watch&&t.watch!==oe&&gr(e,t.watch)}function sr(e,t){var n=e.$options.propsData||{},r=e._props={},i=e.$options._propKeys=[],o=!e.$parent;o||we(!1);var s=function(o){i.push(o);var s=qe(o,t,n,e);Ue(r,o,s),o in e||ir(e,"_props",o)};for(var a in t)s(a);we(!0)}function ar(e){var t=e.$options.data;t=e._data="function"===typeof t?cr(t,e):t||{},l(t)||(t={});var n=Object.keys(t),r=e.$options.props,i=(e.$options.methods,n.length);while(i--){var o=n[i];0,r&&_(r,o)||H(o)||ir(e,"_data",o)}Le(t,!0)}function cr(e,t){ye();try{return e.call(t,t)}catch(Ms){return tt(Ms,t,"data()"),{}}finally{me()}}var ur={lazy:!0};function lr(e,t){var n=e._computedWatchers=Object.create(null),r=ce();for(var i in t){var o=t[i],s="function"===typeof o?o:o.get;0,r||(n[i]=new nr(e,s||L,L,ur)),i in e||fr(e,i,o)}}function fr(e,t,n){var r=!ce();"function"===typeof n?(rr.get=r?hr(t):dr(n),rr.set=L):(rr.get=n.get?r&&!1!==n.cache?hr(t):dr(n.get):L,rr.set=n.set||L),Object.defineProperty(e,t,rr)}function hr(e){return function(){var t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),ge.target&&t.depend(),t.value}}function dr(e){return function(){return e.call(this,this)}}function pr(e,t){e.$options.props;for(var n in t)e[n]="function"!==typeof t[n]?L:w(t[n],e)}function gr(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var i=0;i<r.length;i++)vr(e,n,r[i]);else vr(e,n,r)}}function vr(e,t,n,r){return l(n)&&(r=n,n=n.handler),"string"===typeof n&&(n=e[n]),e.$watch(t,n,r)}function yr(e){var t={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",n),e.prototype.$set=xe,e.prototype.$delete=Pe,e.prototype.$watch=function(e,t,n){var r=this;if(l(t))return vr(r,e,t,n);n=n||{},n.user=!0;var i=new nr(r,e,t,n);if(n.immediate)try{t.call(r,i.value)}catch(o){tt(o,r,'callback for immediate watcher "'+i.expression+'"')}return function(){i.teardown()}}}var mr=0;function Ir(e){e.prototype._init=function(e){var t=this;t._uid=mr++,t._isVue=!0,e&&e._isComponent?_r(t,e):t.$options=Ke(Tr(t.constructor),e||{},t),t._renderProxy=t,t._self=t,Dn(t),En(t),gn(t),zn(t,"beforeCreate"),wt(t),or(t),bt(t),zn(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}function _r(e,t){var n=e.$options=Object.create(e.constructor.options),r=t._parentVnode;n.parent=t.parent,n._parentVnode=r;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}function Tr(e){var t=e.options;if(e.super){var n=Tr(e.super),r=e.superOptions;if(n!==r){e.superOptions=n;var i=Cr(e);i&&R(e.extendOptions,i),t=e.options=Ke(n,e.extendOptions),t.name&&(t.components[t.name]=e)}}return t}function Cr(e){var t,n=e.options,r=e.sealedOptions;for(var i in n)n[i]!==r[i]&&(t||(t={}),t[i]=n[i]);return t}function Mr(e){this._init(e)}function Er(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=O(arguments,1);return n.unshift(this),"function"===typeof e.install?e.install.apply(e,n):"function"===typeof e&&e.apply(null,n),t.push(e),this}}function Ar(e){e.mixin=function(e){return this.options=Ke(this.options,e),this}}function Sr(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,r=n.cid,i=e._Ctor||(e._Ctor={});if(i[r])return i[r];var o=e.name||n.options.name;var s=function(e){this._init(e)};return s.prototype=Object.create(n.prototype),s.prototype.constructor=s,s.cid=t++,s.options=Ke(n.options,e),s["super"]=n,s.options.props&&Nr(s),s.options.computed&&br(s),s.extend=n.extend,s.mixin=n.mixin,s.use=n.use,G.forEach((function(e){s[e]=n[e]})),o&&(s.options.components[o]=s),s.superOptions=n.options,s.extendOptions=e,s.sealedOptions=R({},s.options),i[r]=s,s}}function Nr(e){var t=e.options.props;for(var n in t)ir(e.prototype,"_props",n)}function br(e){var t=e.options.computed;for(var n in t)fr(e.prototype,n,t[n])}function wr(e){G.forEach((function(t){e[t]=function(e,n){return n?("component"===t&&l(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"===typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}}))}function Or(e){return e&&(e.Ctor.options.name||e.tag)}function Rr(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"===typeof e?e.split(",").indexOf(t)>-1:!!f(e)&&e.test(t)}function Dr(e,t){var n=e.cache,r=e.keys,i=e._vnode;for(var o in n){var s=n[o];if(s){var a=Or(s.componentOptions);a&&!t(a)&&Lr(n,o,r,i)}}}function Lr(e,t,n,r){var i=e[t];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),e[t]=null,m(n,t)}Ir(Mr),yr(Mr),wn(Mr),Ln(Mr),mn(Mr);var Ur=[String,RegExp,Array],xr={name:"keep-alive",abstract:!0,props:{include:Ur,exclude:Ur,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)Lr(this.cache,e,this.keys)},mounted:function(){var e=this;this.$watch("include",(function(t){Dr(e,(function(e){return Rr(t,e)}))})),this.$watch("exclude",(function(t){Dr(e,(function(e){return!Rr(t,e)}))}))},render:function(){var e=this.$slots.default,t=Mn(e),n=t&&t.componentOptions;if(n){var r=Or(n),i=this,o=i.include,s=i.exclude;if(o&&(!r||!Rr(o,r))||s&&r&&Rr(s,r))return t;var a=this,c=a.cache,u=a.keys,l=null==t.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):t.key;c[l]?(t.componentInstance=c[l].componentInstance,m(u,l),u.push(l)):(c[l]=t,u.push(l),this.max&&u.length>parseInt(this.max)&&Lr(c,u[0],u,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}},Pr={KeepAlive:xr};function jr(e){var t={get:function(){return V}};Object.defineProperty(e,"config",t),e.util={warn:de,extend:R,mergeOptions:Ke,defineReactive:Ue},e.set=xe,e.delete=Pe,e.nextTick=pt,e.observable=function(e){return Le(e),e},e.options=Object.create(null),G.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,R(e.options.components,Pr),Er(e),Ar(e),Sr(e),wr(e)}jr(Mr),Object.defineProperty(Mr.prototype,"$isServer",{get:ce}),Object.defineProperty(Mr.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Mr,"FunctionalRenderContext",{value:Zt}),Mr.version="2.6.10";var kr=v("style,class"),zr=v("input,textarea,option,select,progress"),Gr=function(e,t,n){return"value"===n&&zr(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},Br=v("contenteditable,draggable,spellcheck"),Vr=v("events,caret,typing,plaintext-only"),Yr=function(e,t){return Kr(t)||"false"===t?"false":"contenteditable"===e&&Vr(t)?t:"true"},Hr=v("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),Fr="http://www.w3.org/1999/xlink",Qr=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},$r=function(e){return Qr(e)?e.slice(6,e.length):""},Kr=function(e){return null==e||!1===e};function Wr(e){var t=e.data,n=e,r=e;while(i(r.componentInstance))r=r.componentInstance._vnode,r&&r.data&&(t=qr(r.data,t));while(i(n=n.parent))n&&n.data&&(t=qr(t,n.data));return Zr(t.staticClass,t.class)}function qr(e,t){return{staticClass:Jr(e.staticClass,t.staticClass),class:i(e.class)?[e.class,t.class]:t.class}}function Zr(e,t){return i(e)||i(t)?Jr(e,Xr(t)):""}function Jr(e,t){return e?t?e+" "+t:e:t||""}function Xr(e){return Array.isArray(e)?ei(e):c(e)?ti(e):"string"===typeof e?e:""}function ei(e){for(var t,n="",r=0,o=e.length;r<o;r++)i(t=Xr(e[r]))&&""!==t&&(n&&(n+=" "),n+=t);return n}function ti(e){var t="";for(var n in e)e[n]&&(t&&(t+=" "),t+=n);return t}var ni={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},ri=v("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),ii=v("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),oi=function(e){return ri(e)||ii(e)};function si(e){return ii(e)?"svg":"math"===e?"math":void 0}var ai=Object.create(null);function ci(e){if(!q)return!0;if(oi(e))return!1;if(e=e.toLowerCase(),null!=ai[e])return ai[e];var t=document.createElement(e);return e.indexOf("-")>-1?ai[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:ai[e]=/HTMLUnknownElement/.test(t.toString())}var ui=v("text,number,password,search,email,tel,url");function li(e){if("string"===typeof e){var t=document.querySelector(e);return t||document.createElement("div")}return e}function fi(e,t){var n=document.createElement(e);return"select"!==e||t.data&&t.data.attrs&&void 0!==t.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n}function hi(e,t){return document.createElementNS(ni[e],t)}function di(e){return document.createTextNode(e)}function pi(e){return document.createComment(e)}function gi(e,t,n){e.insertBefore(t,n)}function vi(e,t){e.removeChild(t)}function yi(e,t){e.appendChild(t)}function mi(e){return e.parentNode}function Ii(e){return e.nextSibling}function _i(e){return e.tagName}function Ti(e,t){e.textContent=t}function Ci(e,t){e.setAttribute(t,"")}var Mi=Object.freeze({createElement:fi,createElementNS:hi,createTextNode:di,createComment:pi,insertBefore:gi,removeChild:vi,appendChild:yi,parentNode:mi,nextSibling:Ii,tagName:_i,setTextContent:Ti,setStyleScope:Ci}),Ei={create:function(e,t){Ai(t)},update:function(e,t){e.data.ref!==t.data.ref&&(Ai(e,!0),Ai(t))},destroy:function(e){Ai(e,!0)}};function Ai(e,t){var n=e.data.ref;if(i(n)){var r=e.context,o=e.componentInstance||e.elm,s=r.$refs;t?Array.isArray(s[n])?m(s[n],o):s[n]===o&&(s[n]=void 0):e.data.refInFor?Array.isArray(s[n])?s[n].indexOf(o)<0&&s[n].push(o):s[n]=[o]:s[n]=o}}var Si=new Ie("",{},[]),Ni=["create","activate","update","remove","destroy"];function bi(e,t){return e.key===t.key&&(e.tag===t.tag&&e.isComment===t.isComment&&i(e.data)===i(t.data)&&wi(e,t)||o(e.isAsyncPlaceholder)&&e.asyncFactory===t.asyncFactory&&r(t.asyncFactory.error))}function wi(e,t){if("input"!==e.tag)return!0;var n,r=i(n=e.data)&&i(n=n.attrs)&&n.type,o=i(n=t.data)&&i(n=n.attrs)&&n.type;return r===o||ui(r)&&ui(o)}function Oi(e,t,n){var r,o,s={};for(r=t;r<=n;++r)o=e[r].key,i(o)&&(s[o]=r);return s}function Ri(e){var t,n,s={},c=e.modules,u=e.nodeOps;for(t=0;t<Ni.length;++t)for(s[Ni[t]]=[],n=0;n<c.length;++n)i(c[n][Ni[t]])&&s[Ni[t]].push(c[n][Ni[t]]);function l(e){return new Ie(u.tagName(e).toLowerCase(),{},[],void 0,e)}function f(e,t){function n(){0===--n.listeners&&h(e)}return n.listeners=t,n}function h(e){var t=u.parentNode(e);i(t)&&u.removeChild(t,e)}function d(e,t,n,r,s,a,c){if(i(e.elm)&&i(a)&&(e=a[c]=Me(e)),e.isRootInsert=!s,!p(e,t,n,r)){var l=e.data,f=e.children,h=e.tag;i(h)?(e.elm=e.ns?u.createElementNS(e.ns,h):u.createElement(h,e),C(e),I(e,f,t),i(l)&&T(e,t),m(n,e.elm,r)):o(e.isComment)?(e.elm=u.createComment(e.text),m(n,e.elm,r)):(e.elm=u.createTextNode(e.text),m(n,e.elm,r))}}function p(e,t,n,r){var s=e.data;if(i(s)){var a=i(e.componentInstance)&&s.keepAlive;if(i(s=s.hook)&&i(s=s.init)&&s(e,!1),i(e.componentInstance))return g(e,t),m(n,e.elm,r),o(a)&&y(e,t,n,r),!0}}function g(e,t){i(e.data.pendingInsert)&&(t.push.apply(t,e.data.pendingInsert),e.data.pendingInsert=null),e.elm=e.componentInstance.$el,_(e)?(T(e,t),C(e)):(Ai(e),t.push(e))}function y(e,t,n,r){var o,a=e;while(a.componentInstance)if(a=a.componentInstance._vnode,i(o=a.data)&&i(o=o.transition)){for(o=0;o<s.activate.length;++o)s.activate[o](Si,a);t.push(a);break}m(n,e.elm,r)}function m(e,t,n){i(e)&&(i(n)?u.parentNode(n)===e&&u.insertBefore(e,t,n):u.appendChild(e,t))}function I(e,t,n){if(Array.isArray(t)){0;for(var r=0;r<t.length;++r)d(t[r],n,e.elm,null,!0,t,r)}else a(e.text)&&u.appendChild(e.elm,u.createTextNode(String(e.text)))}function _(e){while(e.componentInstance)e=e.componentInstance._vnode;return i(e.tag)}function T(e,n){for(var r=0;r<s.create.length;++r)s.create[r](Si,e);t=e.data.hook,i(t)&&(i(t.create)&&t.create(Si,e),i(t.insert)&&n.push(e))}function C(e){var t;if(i(t=e.fnScopeId))u.setStyleScope(e.elm,t);else{var n=e;while(n)i(t=n.context)&&i(t=t.$options._scopeId)&&u.setStyleScope(e.elm,t),n=n.parent}i(t=On)&&t!==e.context&&t!==e.fnContext&&i(t=t.$options._scopeId)&&u.setStyleScope(e.elm,t)}function M(e,t,n,r,i,o){for(;r<=i;++r)d(n[r],o,e,t,!1,n,r)}function E(e){var t,n,r=e.data;if(i(r))for(i(t=r.hook)&&i(t=t.destroy)&&t(e),t=0;t<s.destroy.length;++t)s.destroy[t](e);if(i(t=e.children))for(n=0;n<e.children.length;++n)E(e.children[n])}function A(e,t,n,r){for(;n<=r;++n){var o=t[n];i(o)&&(i(o.tag)?(S(o),E(o)):h(o.elm))}}function S(e,t){if(i(t)||i(e.data)){var n,r=s.remove.length+1;for(i(t)?t.listeners+=r:t=f(e.elm,r),i(n=e.componentInstance)&&i(n=n._vnode)&&i(n.data)&&S(n,t),n=0;n<s.remove.length;++n)s.remove[n](e,t);i(n=e.data.hook)&&i(n=n.remove)?n(e,t):t()}else h(e.elm)}function N(e,t,n,o,s){var a,c,l,f,h=0,p=0,g=t.length-1,v=t[0],y=t[g],m=n.length-1,I=n[0],_=n[m],T=!s;while(h<=g&&p<=m)r(v)?v=t[++h]:r(y)?y=t[--g]:bi(v,I)?(w(v,I,o,n,p),v=t[++h],I=n[++p]):bi(y,_)?(w(y,_,o,n,m),y=t[--g],_=n[--m]):bi(v,_)?(w(v,_,o,n,m),T&&u.insertBefore(e,v.elm,u.nextSibling(y.elm)),v=t[++h],_=n[--m]):bi(y,I)?(w(y,I,o,n,p),T&&u.insertBefore(e,y.elm,v.elm),y=t[--g],I=n[++p]):(r(a)&&(a=Oi(t,h,g)),c=i(I.key)?a[I.key]:b(I,t,h,g),r(c)?d(I,o,e,v.elm,!1,n,p):(l=t[c],bi(l,I)?(w(l,I,o,n,p),t[c]=void 0,T&&u.insertBefore(e,l.elm,v.elm)):d(I,o,e,v.elm,!1,n,p)),I=n[++p]);h>g?(f=r(n[m+1])?null:n[m+1].elm,M(e,f,n,p,m,o)):p>m&&A(e,t,h,g)}function b(e,t,n,r){for(var o=n;o<r;o++){var s=t[o];if(i(s)&&bi(e,s))return o}}function w(e,t,n,a,c,l){if(e!==t){i(t.elm)&&i(a)&&(t=a[c]=Me(t));var f=t.elm=e.elm;if(o(e.isAsyncPlaceholder))i(t.asyncFactory.resolved)?D(e.elm,t,n):t.isAsyncPlaceholder=!0;else if(o(t.isStatic)&&o(e.isStatic)&&t.key===e.key&&(o(t.isCloned)||o(t.isOnce)))t.componentInstance=e.componentInstance;else{var h,d=t.data;i(d)&&i(h=d.hook)&&i(h=h.prepatch)&&h(e,t);var p=e.children,g=t.children;if(i(d)&&_(t)){for(h=0;h<s.update.length;++h)s.update[h](e,t);i(h=d.hook)&&i(h=h.update)&&h(e,t)}r(t.text)?i(p)&&i(g)?p!==g&&N(f,p,g,n,l):i(g)?(i(e.text)&&u.setTextContent(f,""),M(f,null,g,0,g.length-1,n)):i(p)?A(f,p,0,p.length-1):i(e.text)&&u.setTextContent(f,""):e.text!==t.text&&u.setTextContent(f,t.text),i(d)&&i(h=d.hook)&&i(h=h.postpatch)&&h(e,t)}}}function O(e,t,n){if(o(n)&&i(e.parent))e.parent.data.pendingInsert=t;else for(var r=0;r<t.length;++r)t[r].data.hook.insert(t[r])}var R=v("attrs,class,staticClass,staticStyle,key");function D(e,t,n,r){var s,a=t.tag,c=t.data,u=t.children;if(r=r||c&&c.pre,t.elm=e,o(t.isComment)&&i(t.asyncFactory))return t.isAsyncPlaceholder=!0,!0;if(i(c)&&(i(s=c.hook)&&i(s=s.init)&&s(t,!0),i(s=t.componentInstance)))return g(t,n),!0;if(i(a)){if(i(u))if(e.hasChildNodes())if(i(s=c)&&i(s=s.domProps)&&i(s=s.innerHTML)){if(s!==e.innerHTML)return!1}else{for(var l=!0,f=e.firstChild,h=0;h<u.length;h++){if(!f||!D(f,u[h],n,r)){l=!1;break}f=f.nextSibling}if(!l||f)return!1}else I(t,u,n);if(i(c)){var d=!1;for(var p in c)if(!R(p)){d=!0,T(t,n);break}!d&&c["class"]&&vt(c["class"])}}else e.data!==t.text&&(e.data=t.text);return!0}return function(e,t,n,a){if(!r(t)){var c=!1,f=[];if(r(e))c=!0,d(t,f);else{var h=i(e.nodeType);if(!h&&bi(e,t))w(e,t,f,null,null,a);else{if(h){if(1===e.nodeType&&e.hasAttribute(z)&&(e.removeAttribute(z),n=!0),o(n)&&D(e,t,f))return O(t,f,!0),e;e=l(e)}var p=e.elm,g=u.parentNode(p);if(d(t,f,p._leaveCb?null:g,u.nextSibling(p)),i(t.parent)){var v=t.parent,y=_(t);while(v){for(var m=0;m<s.destroy.length;++m)s.destroy[m](v);if(v.elm=t.elm,y){for(var I=0;I<s.create.length;++I)s.create[I](Si,v);var T=v.data.hook.insert;if(T.merged)for(var C=1;C<T.fns.length;C++)T.fns[C]()}else Ai(v);v=v.parent}}i(g)?A(g,[e],0,0):i(e.tag)&&E(e)}}return O(t,f,c),t.elm}i(e)&&E(e)}}var Di={create:Li,update:Li,destroy:function(e){Li(e,Si)}};function Li(e,t){(e.data.directives||t.data.directives)&&Ui(e,t)}function Ui(e,t){var n,r,i,o=e===Si,s=t===Si,a=Pi(e.data.directives,e.context),c=Pi(t.data.directives,t.context),u=[],l=[];for(n in c)r=a[n],i=c[n],r?(i.oldValue=r.value,i.oldArg=r.arg,ki(i,"update",t,e),i.def&&i.def.componentUpdated&&l.push(i)):(ki(i,"bind",t,e),i.def&&i.def.inserted&&u.push(i));if(u.length){var f=function(){for(var n=0;n<u.length;n++)ki(u[n],"inserted",t,e)};o?Tt(t,"insert",f):f()}if(l.length&&Tt(t,"postpatch",(function(){for(var n=0;n<l.length;n++)ki(l[n],"componentUpdated",t,e)})),!o)for(n in a)c[n]||ki(a[n],"unbind",e,e,s)}var xi=Object.create(null);function Pi(e,t){var n,r,i=Object.create(null);if(!e)return i;for(n=0;n<e.length;n++)r=e[n],r.modifiers||(r.modifiers=xi),i[ji(r)]=r,r.def=We(t.$options,"directives",r.name,!0);return i}function ji(e){return e.rawName||e.name+"."+Object.keys(e.modifiers||{}).join(".")}function ki(e,t,n,r,i){var o=e.def&&e.def[t];if(o)try{o(n.elm,e,n,r,i)}catch(Ms){tt(Ms,n.context,"directive "+e.name+" "+t+" hook")}}var zi=[Ei,Di];function Gi(e,t){var n=t.componentOptions;if((!i(n)||!1!==n.Ctor.options.inheritAttrs)&&(!r(e.data.attrs)||!r(t.data.attrs))){var o,s,a,c=t.elm,u=e.data.attrs||{},l=t.data.attrs||{};for(o in i(l.__ob__)&&(l=t.data.attrs=R({},l)),l)s=l[o],a=u[o],a!==s&&Bi(c,o,s);for(o in(ee||ne)&&l.value!==u.value&&Bi(c,"value",l.value),u)r(l[o])&&(Qr(o)?c.removeAttributeNS(Fr,$r(o)):Br(o)||c.removeAttribute(o))}}function Bi(e,t,n){e.tagName.indexOf("-")>-1?Vi(e,t,n):Hr(t)?Kr(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):Br(t)?e.setAttribute(t,Yr(t,n)):Qr(t)?Kr(n)?e.removeAttributeNS(Fr,$r(t)):e.setAttributeNS(Fr,t,n):Vi(e,t,n)}function Vi(e,t,n){if(Kr(n))e.removeAttribute(t);else{if(ee&&!te&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==n&&!e.__ieph){var r=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",r)};e.addEventListener("input",r),e.__ieph=!0}e.setAttribute(t,n)}}var Yi={create:Gi,update:Gi};function Hi(e,t){var n=t.elm,o=t.data,s=e.data;if(!(r(o.staticClass)&&r(o.class)&&(r(s)||r(s.staticClass)&&r(s.class)))){var a=Wr(t),c=n._transitionClasses;i(c)&&(a=Jr(a,Xr(c))),a!==n._prevClass&&(n.setAttribute("class",a),n._prevClass=a)}}var Fi,Qi={create:Hi,update:Hi},$i="__r",Ki="__c";function Wi(e){if(i(e[$i])){var t=ee?"change":"input";e[t]=[].concat(e[$i],e[t]||[]),delete e[$i]}i(e[Ki])&&(e.change=[].concat(e[Ki],e.change||[]),delete e[Ki])}function qi(e,t,n){var r=Fi;return function i(){var o=t.apply(null,arguments);null!==o&&Xi(e,i,n,r)}}var Zi=st&&!(ie&&Number(ie[1])<=53);function Ji(e,t,n,r){if(Zi){var i=$n,o=t;t=o._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=i||e.timeStamp<=0||e.target.ownerDocument!==document)return o.apply(this,arguments)}}Fi.addEventListener(e,t,se?{capture:n,passive:r}:n)}function Xi(e,t,n,r){(r||Fi).removeEventListener(e,t._wrapper||t,n)}function eo(e,t){if(!r(e.data.on)||!r(t.data.on)){var n=t.data.on||{},i=e.data.on||{};Fi=t.elm,Wi(n),_t(n,i,Ji,Xi,qi,t.context),Fi=void 0}}var to,no={create:eo,update:eo};function ro(e,t){if(!r(e.data.domProps)||!r(t.data.domProps)){var n,o,s=t.elm,a=e.data.domProps||{},c=t.data.domProps||{};for(n in i(c.__ob__)&&(c=t.data.domProps=R({},c)),a)n in c||(s[n]="");for(n in c){if(o=c[n],"textContent"===n||"innerHTML"===n){if(t.children&&(t.children.length=0),o===a[n])continue;1===s.childNodes.length&&s.removeChild(s.childNodes[0])}if("value"===n&&"PROGRESS"!==s.tagName){s._value=o;var u=r(o)?"":String(o);io(s,u)&&(s.value=u)}else if("innerHTML"===n&&ii(s.tagName)&&r(s.innerHTML)){to=to||document.createElement("div"),to.innerHTML="<svg>"+o+"</svg>";var l=to.firstChild;while(s.firstChild)s.removeChild(s.firstChild);while(l.firstChild)s.appendChild(l.firstChild)}else if(o!==a[n])try{s[n]=o}catch(Ms){}}}}function io(e,t){return!e.composing&&("OPTION"===e.tagName||oo(e,t)||so(e,t))}function oo(e,t){var n=!0;try{n=document.activeElement!==e}catch(Ms){}return n&&e.value!==t}function so(e,t){var n=e.value,r=e._vModifiers;if(i(r)){if(r.number)return g(n)!==g(t);if(r.trim)return n.trim()!==t.trim()}return n!==t}var ao={create:ro,update:ro},co=T((function(e){var t={},n=/;(?![^(]*\))/g,r=/:(.+)/;return e.split(n).forEach((function(e){if(e){var n=e.split(r);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}));function uo(e){var t=lo(e.style);return e.staticStyle?R(e.staticStyle,t):t}function lo(e){return Array.isArray(e)?D(e):"string"===typeof e?co(e):e}function fo(e,t){var n,r={};if(t){var i=e;while(i.componentInstance)i=i.componentInstance._vnode,i&&i.data&&(n=uo(i.data))&&R(r,n)}(n=uo(e.data))&&R(r,n);var o=e;while(o=o.parent)o.data&&(n=uo(o.data))&&R(r,n);return r}var ho,po=/^--/,go=/\s*!important$/,vo=function(e,t,n){if(po.test(t))e.style.setProperty(t,n);else if(go.test(n))e.style.setProperty(S(t),n.replace(go,""),"important");else{var r=mo(t);if(Array.isArray(n))for(var i=0,o=n.length;i<o;i++)e.style[r]=n[i];else e.style[r]=n}},yo=["Webkit","Moz","ms"],mo=T((function(e){if(ho=ho||document.createElement("div").style,e=M(e),"filter"!==e&&e in ho)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<yo.length;n++){var r=yo[n]+t;if(r in ho)return r}}));function Io(e,t){var n=t.data,o=e.data;if(!(r(n.staticStyle)&&r(n.style)&&r(o.staticStyle)&&r(o.style))){var s,a,c=t.elm,u=o.staticStyle,l=o.normalizedStyle||o.style||{},f=u||l,h=lo(t.data.style)||{};t.data.normalizedStyle=i(h.__ob__)?R({},h):h;var d=fo(t,!0);for(a in f)r(d[a])&&vo(c,a,"");for(a in d)s=d[a],s!==f[a]&&vo(c,a,null==s?"":s)}}var _o={create:Io,update:Io},To=/\s+/;function Co(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(To).forEach((function(t){return e.classList.add(t)})):e.classList.add(t);else{var n=" "+(e.getAttribute("class")||"")+" ";n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function Mo(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(To).forEach((function(t){return e.classList.remove(t)})):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{var n=" "+(e.getAttribute("class")||"")+" ",r=" "+t+" ";while(n.indexOf(r)>=0)n=n.replace(r," ");n=n.trim(),n?e.setAttribute("class",n):e.removeAttribute("class")}}function Eo(e){if(e){if("object"===typeof e){var t={};return!1!==e.css&&R(t,Ao(e.name||"v")),R(t,e),t}return"string"===typeof e?Ao(e):void 0}}var Ao=T((function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}})),So=q&&!te,No="transition",bo="animation",wo="transition",Oo="transitionend",Ro="animation",Do="animationend";So&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(wo="WebkitTransition",Oo="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Ro="WebkitAnimation",Do="webkitAnimationEnd"));var Lo=q?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function Uo(e){Lo((function(){Lo(e)}))}function xo(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),Co(e,t))}function Po(e,t){e._transitionClasses&&m(e._transitionClasses,t),Mo(e,t)}function jo(e,t,n){var r=zo(e,t),i=r.type,o=r.timeout,s=r.propCount;if(!i)return n();var a=i===No?Oo:Do,c=0,u=function(){e.removeEventListener(a,l),n()},l=function(t){t.target===e&&++c>=s&&u()};setTimeout((function(){c<s&&u()}),o+1),e.addEventListener(a,l)}var ko=/\b(transform|all)(,|$)/;function zo(e,t){var n,r=window.getComputedStyle(e),i=(r[wo+"Delay"]||"").split(", "),o=(r[wo+"Duration"]||"").split(", "),s=Go(i,o),a=(r[Ro+"Delay"]||"").split(", "),c=(r[Ro+"Duration"]||"").split(", "),u=Go(a,c),l=0,f=0;t===No?s>0&&(n=No,l=s,f=o.length):t===bo?u>0&&(n=bo,l=u,f=c.length):(l=Math.max(s,u),n=l>0?s>u?No:bo:null,f=n?n===No?o.length:c.length:0);var h=n===No&&ko.test(r[wo+"Property"]);return{type:n,timeout:l,propCount:f,hasTransform:h}}function Go(e,t){while(e.length<t.length)e=e.concat(e);return Math.max.apply(null,t.map((function(t,n){return Bo(t)+Bo(e[n])})))}function Bo(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function Vo(e,t){var n=e.elm;i(n._leaveCb)&&(n._leaveCb.cancelled=!0,n._leaveCb());var o=Eo(e.data.transition);if(!r(o)&&!i(n._enterCb)&&1===n.nodeType){var s=o.css,a=o.type,u=o.enterClass,l=o.enterToClass,f=o.enterActiveClass,h=o.appearClass,d=o.appearToClass,p=o.appearActiveClass,v=o.beforeEnter,y=o.enter,m=o.afterEnter,I=o.enterCancelled,_=o.beforeAppear,T=o.appear,C=o.afterAppear,M=o.appearCancelled,E=o.duration,A=On,S=On.$vnode;while(S&&S.parent)A=S.context,S=S.parent;var N=!A._isMounted||!e.isRootInsert;if(!N||T||""===T){var b=N&&h?h:u,w=N&&p?p:f,O=N&&d?d:l,R=N&&_||v,D=N&&"function"===typeof T?T:y,L=N&&C||m,U=N&&M||I,x=g(c(E)?E.enter:E);0;var P=!1!==s&&!te,j=Fo(D),z=n._enterCb=k((function(){P&&(Po(n,O),Po(n,w)),z.cancelled?(P&&Po(n,b),U&&U(n)):L&&L(n),n._enterCb=null}));e.data.show||Tt(e,"insert",(function(){var t=n.parentNode,r=t&&t._pending&&t._pending[e.key];r&&r.tag===e.tag&&r.elm._leaveCb&&r.elm._leaveCb(),D&&D(n,z)})),R&&R(n),P&&(xo(n,b),xo(n,w),Uo((function(){Po(n,b),z.cancelled||(xo(n,O),j||(Ho(x)?setTimeout(z,x):jo(n,a,z)))}))),e.data.show&&(t&&t(),D&&D(n,z)),P||j||z()}}}function Yo(e,t){var n=e.elm;i(n._enterCb)&&(n._enterCb.cancelled=!0,n._enterCb());var o=Eo(e.data.transition);if(r(o)||1!==n.nodeType)return t();if(!i(n._leaveCb)){var s=o.css,a=o.type,u=o.leaveClass,l=o.leaveToClass,f=o.leaveActiveClass,h=o.beforeLeave,d=o.leave,p=o.afterLeave,v=o.leaveCancelled,y=o.delayLeave,m=o.duration,I=!1!==s&&!te,_=Fo(d),T=g(c(m)?m.leave:m);0;var C=n._leaveCb=k((function(){n.parentNode&&n.parentNode._pending&&(n.parentNode._pending[e.key]=null),I&&(Po(n,l),Po(n,f)),C.cancelled?(I&&Po(n,u),v&&v(n)):(t(),p&&p(n)),n._leaveCb=null}));y?y(M):M()}function M(){C.cancelled||(!e.data.show&&n.parentNode&&((n.parentNode._pending||(n.parentNode._pending={}))[e.key]=e),h&&h(n),I&&(xo(n,u),xo(n,f),Uo((function(){Po(n,u),C.cancelled||(xo(n,l),_||(Ho(T)?setTimeout(C,T):jo(n,a,C)))}))),d&&d(n,C),I||_||C())}}function Ho(e){return"number"===typeof e&&!isNaN(e)}function Fo(e){if(r(e))return!1;var t=e.fns;return i(t)?Fo(Array.isArray(t)?t[0]:t):(e._length||e.length)>1}function Qo(e,t){!0!==t.data.show&&Vo(t)}var $o=q?{create:Qo,activate:Qo,remove:function(e,t){!0!==e.data.show?Yo(e,t):t()}}:{},Ko=[Yi,Qi,no,ao,_o,$o],Wo=Ko.concat(zi),qo=Ri({nodeOps:Mi,modules:Wo});te&&document.addEventListener("selectionchange",(function(){var e=document.activeElement;e&&e.vmodel&&is(e,"input")}));var Zo={inserted:function(e,t,n,r){"select"===n.tag?(r.elm&&!r.elm._vOptions?Tt(n,"postpatch",(function(){Zo.componentUpdated(e,t,n)})):Jo(e,t,n.context),e._vOptions=[].map.call(e.options,ts)):("textarea"===n.tag||ui(e.type))&&(e._vModifiers=t.modifiers,t.modifiers.lazy||(e.addEventListener("compositionstart",ns),e.addEventListener("compositionend",rs),e.addEventListener("change",rs),te&&(e.vmodel=!0)))},componentUpdated:function(e,t,n){if("select"===n.tag){Jo(e,t,n.context);var r=e._vOptions,i=e._vOptions=[].map.call(e.options,ts);if(i.some((function(e,t){return!P(e,r[t])}))){var o=e.multiple?t.value.some((function(e){return es(e,i)})):t.value!==t.oldValue&&es(t.value,i);o&&is(e,"change")}}}};function Jo(e,t,n){Xo(e,t,n),(ee||ne)&&setTimeout((function(){Xo(e,t,n)}),0)}function Xo(e,t,n){var r=t.value,i=e.multiple;if(!i||Array.isArray(r)){for(var o,s,a=0,c=e.options.length;a<c;a++)if(s=e.options[a],i)o=j(r,ts(s))>-1,s.selected!==o&&(s.selected=o);else if(P(ts(s),r))return void(e.selectedIndex!==a&&(e.selectedIndex=a));i||(e.selectedIndex=-1)}}function es(e,t){return t.every((function(t){return!P(t,e)}))}function ts(e){return"_value"in e?e._value:e.value}function ns(e){e.target.composing=!0}function rs(e){e.target.composing&&(e.target.composing=!1,is(e.target,"input"))}function is(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function os(e){return!e.componentInstance||e.data&&e.data.transition?e:os(e.componentInstance._vnode)}var ss={bind:function(e,t,n){var r=t.value;n=os(n);var i=n.data&&n.data.transition,o=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;r&&i?(n.data.show=!0,Vo(n,(function(){e.style.display=o}))):e.style.display=r?o:"none"},update:function(e,t,n){var r=t.value,i=t.oldValue;if(!r!==!i){n=os(n);var o=n.data&&n.data.transition;o?(n.data.show=!0,r?Vo(n,(function(){e.style.display=e.__vOriginalDisplay})):Yo(n,(function(){e.style.display="none"}))):e.style.display=r?e.__vOriginalDisplay:"none"}},unbind:function(e,t,n,r,i){i||(e.style.display=e.__vOriginalDisplay)}},as={model:Zo,show:ss},cs={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function us(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?us(Mn(t.children)):e}function ls(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var i=n._parentListeners;for(var o in i)t[M(o)]=i[o];return t}function fs(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}function hs(e){while(e=e.parent)if(e.data.transition)return!0}function ds(e,t){return t.key===e.key&&t.tag===e.tag}var ps=function(e){return e.tag||Cn(e)},gs=function(e){return"show"===e.name},vs={name:"transition",props:cs,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(ps),n.length)){0;var r=this.mode;0;var i=n[0];if(hs(this.$vnode))return i;var o=us(i);if(!o)return i;if(this._leaving)return fs(e,i);var s="__transition-"+this._uid+"-";o.key=null==o.key?o.isComment?s+"comment":s+o.tag:a(o.key)?0===String(o.key).indexOf(s)?o.key:s+o.key:o.key;var c=(o.data||(o.data={})).transition=ls(this),u=this._vnode,l=us(u);if(o.data.directives&&o.data.directives.some(gs)&&(o.data.show=!0),l&&l.data&&!ds(o,l)&&!Cn(l)&&(!l.componentInstance||!l.componentInstance._vnode.isComment)){var f=l.data.transition=R({},c);if("out-in"===r)return this._leaving=!0,Tt(f,"afterLeave",(function(){t._leaving=!1,t.$forceUpdate()})),fs(e,i);if("in-out"===r){if(Cn(o))return u;var h,d=function(){h()};Tt(c,"afterEnter",d),Tt(c,"enterCancelled",d),Tt(f,"delayLeave",(function(e){h=e}))}}return i}}},ys=R({tag:String,moveClass:String},cs);delete ys.mode;var ms={props:ys,beforeMount:function(){var e=this,t=this._update;this._update=function(n,r){var i=Rn(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,i(),t.call(e,n,r)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],s=ls(this),a=0;a<i.length;a++){var c=i[a];if(c.tag)if(null!=c.key&&0!==String(c.key).indexOf("__vlist"))o.push(c),n[c.key]=c,(c.data||(c.data={})).transition=s;else;}if(r){for(var u=[],l=[],f=0;f<r.length;f++){var h=r[f];h.data.transition=s,h.data.pos=h.elm.getBoundingClientRect(),n[h.key]?u.push(h):l.push(h)}this.kept=e(t,null,u),this.removed=l}return e(t,null,o)},updated:function(){var e=this.prevChildren,t=this.moveClass||(this.name||"v")+"-move";e.length&&this.hasMove(e[0].elm,t)&&(e.forEach(Is),e.forEach(_s),e.forEach(Ts),this._reflow=document.body.offsetHeight,e.forEach((function(e){if(e.data.moved){var n=e.elm,r=n.style;xo(n,t),r.transform=r.WebkitTransform=r.transitionDuration="",n.addEventListener(Oo,n._moveCb=function e(r){r&&r.target!==n||r&&!/transform$/.test(r.propertyName)||(n.removeEventListener(Oo,e),n._moveCb=null,Po(n,t))})}})))},methods:{hasMove:function(e,t){if(!So)return!1;if(this._hasMove)return this._hasMove;var n=e.cloneNode();e._transitionClasses&&e._transitionClasses.forEach((function(e){Mo(n,e)})),Co(n,t),n.style.display="none",this.$el.appendChild(n);var r=zo(n);return this.$el.removeChild(n),this._hasMove=r.hasTransform}}};function Is(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function _s(e){e.data.newPos=e.elm.getBoundingClientRect()}function Ts(e){var t=e.data.pos,n=e.data.newPos,r=t.left-n.left,i=t.top-n.top;if(r||i){e.data.moved=!0;var o=e.elm.style;o.transform=o.WebkitTransform="translate("+r+"px,"+i+"px)",o.transitionDuration="0s"}}var Cs={Transition:vs,TransitionGroup:ms};Mr.config.mustUseProp=Gr,Mr.config.isReservedTag=oi,Mr.config.isReservedAttr=kr,Mr.config.getTagNamespace=si,Mr.config.isUnknownElement=ci,R(Mr.options.directives,as),R(Mr.options.components,Cs),Mr.prototype.__patch__=q?qo:L,Mr.prototype.$mount=function(e,t){return e=e&&q?li(e):void 0,Un(this,e,t)},q&&setTimeout((function(){V.devtools&&ue&&ue.emit("init",Mr)}),0),t["default"]=Mr}.call(this,n("c8ba"))},"2b4c":function(e,t,n){var r=n("5537")("wks"),i=n("ca5a"),o=n("7726").Symbol,s="function"==typeof o,a=e.exports=function(e){return r[e]||(r[e]=s&&o[e]||(s?o:i)("Symbol."+e))};a.store=r},"2b88":function(e,t,n){"use strict";
- /*!
- * portal-vue © Thorsten Lünborg, 2019
- *
- * Version: 2.1.7
- *
- * LICENCE: MIT
- *
- * https://github.com/linusborg/portal-vue
- *
- */function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}Object.defineProperty(t,"__esModule",{value:!0});var i=r(n("2b0e"));function o(e){return o="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},o(e)}function s(e){return a(e)||c(e)||u()}function a(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}function c(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function u(){throw new TypeError("Invalid attempt to spread non-iterable instance")}var l="undefined"!==typeof window;function f(e){return Array.isArray(e)||"object"===o(e)?Object.freeze(e):e}function h(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.reduce((function(e,n){var r=n.passengers[0],i="function"===typeof r?r(t):n.passengers;return e.concat(i)}),[])}function d(e,t){return e.map((function(e,t){return[t,e]})).sort((function(e,n){return t(e[1],n[1])||e[0]-n[0]})).map((function(e){return e[1]}))}function p(e,t){return t.reduce((function(t,n){return e.hasOwnProperty(n)&&(t[n]=e[n]),t}),{})}var g={},v={},y={},m=i.extend({data:function(){return{transports:g,targets:v,sources:y,trackInstances:l}},methods:{open:function(e){if(l){var t=e.to,n=e.from,r=e.passengers,o=e.order,s=void 0===o?1/0:o;if(t&&n&&r){var a={to:t,from:n,passengers:f(r),order:s},c=Object.keys(this.transports);-1===c.indexOf(t)&&i.set(this.transports,t,[]);var u=this.$_getTransportIndex(a),h=this.transports[t].slice(0);-1===u?h.push(a):h[u]=a,this.transports[t]=d(h,(function(e,t){return e.order-t.order}))}}},close:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.to,r=e.from;if(n&&(r||!1!==t)&&this.transports[n])if(t)this.transports[n]=[];else{var i=this.$_getTransportIndex(e);if(i>=0){var o=this.transports[n].slice(0);o.splice(i,1),this.transports[n]=o}}},registerTarget:function(e,t,n){l&&(this.trackInstances&&!n&&this.targets[e]&&console.warn("[portal-vue]: Target ".concat(e," already exists")),this.$set(this.targets,e,Object.freeze([t])))},unregisterTarget:function(e){this.$delete(this.targets,e)},registerSource:function(e,t,n){l&&(this.trackInstances&&!n&&this.sources[e]&&console.warn("[portal-vue]: source ".concat(e," already exists")),this.$set(this.sources,e,Object.freeze([t])))},unregisterSource:function(e){this.$delete(this.sources,e)},hasTarget:function(e){return!(!this.targets[e]||!this.targets[e][0])},hasSource:function(e){return!(!this.sources[e]||!this.sources[e][0])},hasContentFor:function(e){return!!this.transports[e]&&!!this.transports[e].length},$_getTransportIndex:function(e){var t=e.to,n=e.from;for(var r in this.transports[t])if(this.transports[t][r].from===n)return+r;return-1}}}),I=new m(g),_=1,T=i.extend({name:"portal",props:{disabled:{type:Boolean},name:{type:String,default:function(){return String(_++)}},order:{type:Number,default:0},slim:{type:Boolean},slotProps:{type:Object,default:function(){return{}}},tag:{type:String,default:"DIV"},to:{type:String,default:function(){return String(Math.round(1e7*Math.random()))}}},created:function(){var e=this;this.$nextTick((function(){I.registerSource(e.name,e)}))},mounted:function(){this.disabled||this.sendUpdate()},updated:function(){this.disabled?this.clear():this.sendUpdate()},beforeDestroy:function(){I.unregisterSource(this.name),this.clear()},watch:{to:function(e,t){t&&t!==e&&this.clear(t),this.sendUpdate()}},methods:{clear:function(e){var t={from:this.name,to:e||this.to};I.close(t)},normalizeSlots:function(){return this.$scopedSlots.default?[this.$scopedSlots.default]:this.$slots.default},normalizeOwnChildren:function(e){return"function"===typeof e?e(this.slotProps):e},sendUpdate:function(){var e=this.normalizeSlots();if(e){var t={from:this.name,to:this.to,passengers:s(e),order:this.order};I.open(t)}else this.clear()}},render:function(e){var t=this.$slots.default||this.$scopedSlots.default||[],n=this.tag;return t&&this.disabled?t.length<=1&&this.slim?this.normalizeOwnChildren(t)[0]:e(n,[this.normalizeOwnChildren(t)]):this.slim?e():e(n,{class:{"v-portal":!0},style:{display:"none"},key:"v-portal-placeholder"})}}),C=i.extend({name:"portalTarget",props:{multiple:{type:Boolean,default:!1},name:{type:String,required:!0},slim:{type:Boolean,default:!1},slotProps:{type:Object,default:function(){return{}}},tag:{type:String,default:"div"},transition:{type:[String,Object,Function]}},data:function(){return{transports:I.transports,firstRender:!0}},created:function(){var e=this;this.$nextTick((function(){I.registerTarget(e.name,e)}))},watch:{ownTransports:function(){this.$emit("change",this.children().length>0)},name:function(e,t){I.unregisterTarget(t),I.registerTarget(e,this)}},mounted:function(){var e=this;this.transition&&this.$nextTick((function(){e.firstRender=!1}))},beforeDestroy:function(){I.unregisterTarget(this.name)},computed:{ownTransports:function(){var e=this.transports[this.name]||[];return this.multiple?e:0===e.length?[]:[e[e.length-1]]},passengers:function(){return h(this.ownTransports,this.slotProps)}},methods:{children:function(){return 0!==this.passengers.length?this.passengers:this.$scopedSlots.default?this.$scopedSlots.default(this.slotProps):this.$slots.default||[]},noWrapper:function(){var e=this.slim&&!this.transition;return e&&this.children().length>1&&console.warn("[portal-vue]: PortalTarget with `slim` option received more than one child element."),e}},render:function(e){var t=this.noWrapper(),n=this.children(),r=this.transition||this.tag;return t?n[0]:this.slim&&!r?e():e(r,{props:{tag:this.transition&&this.tag?this.tag:void 0},class:{"vue-portal-target":!0}},n)}}),M=0,E=["disabled","name","order","slim","slotProps","tag","to"],A=["multiple","transition"],S=i.extend({name:"MountingPortal",inheritAttrs:!1,props:{append:{type:[Boolean,String]},bail:{type:Boolean},mountTo:{type:String,required:!0},disabled:{type:Boolean},name:{type:String,default:function(){return"mounted_"+String(M++)}},order:{type:Number,default:0},slim:{type:Boolean},slotProps:{type:Object,default:function(){return{}}},tag:{type:String,default:"DIV"},to:{type:String,default:function(){return String(Math.round(1e7*Math.random()))}},multiple:{type:Boolean,default:!1},targetSlim:{type:Boolean},targetSlotProps:{type:Object,default:function(){return{}}},targetTag:{type:String,default:"div"},transition:{type:[String,Object,Function]}},created:function(){if("undefined"!==typeof document){var e=document.querySelector(this.mountTo);if(e){var t=this.$props;if(I.targets[t.name])t.bail?console.warn("[portal-vue]: Target ".concat(t.name," is already mounted.\n Aborting because 'bail: true' is set")):this.portalTarget=I.targets[t.name];else{var n=t.append;if(n){var r="string"===typeof n?n:"DIV",i=document.createElement(r);e.appendChild(i),e=i}var o=p(this.$props,A);o.slim=this.targetSlim,o.tag=this.targetTag,o.slotProps=this.targetSlotProps,o.name=this.to,this.portalTarget=new C({el:e,parent:this.$parent||this,propsData:o})}}else console.error("[portal-vue]: Mount Point '".concat(this.mountTo,"' not found in document"))}},beforeDestroy:function(){var e=this.portalTarget;if(this.append){var t=e.$el;t.parentNode.removeChild(t)}e.$destroy()},render:function(e){if(!this.portalTarget)return console.warn("[portal-vue] Target wasn't mounted"),e();if(!this.$scopedSlots.manual){var t=p(this.$props,E);return e(T,{props:t,attrs:this.$attrs,on:this.$listeners,scopedSlots:this.$scopedSlots},this.$slots.default)}var n=this.$scopedSlots.manual({to:this.to});return Array.isArray(n)&&(n=n[0]),n||e()}});function N(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.component(t.portalName||"Portal",T),e.component(t.portalTargetName||"PortalTarget",C),e.component(t.MountingPortalName||"MountingPortal",S)}var b={install:N};t.default=b,t.Portal=T,t.PortalTarget=C,t.MountingPortal=S,t.Wormhole=I},"2bdd":function(e,t,n){"use strict";var r=n("d282"),i=n("02de"),o=n("a8c1"),s=n("5fbe"),a=n("543e"),c=Object(r["a"])("list"),u=c[0],l=c[1],f=c[2];t["a"]=u({mixins:[Object(s["a"])((function(e){this.scroller||(this.scroller=Object(o["c"])(this.$el)),e(this.scroller,"scroll",this.check)}))],model:{prop:"loading"},props:{error:Boolean,loading:Boolean,finished:Boolean,errorText:String,loadingText:String,finishedText:String,immediateCheck:{type:Boolean,default:!0},offset:{type:[Number,String],default:300},direction:{type:String,default:"down"}},data:function(){return{innerLoading:this.loading}},updated:function(){this.innerLoading=this.loading},mounted:function(){this.immediateCheck&&this.check()},watch:{loading:"check",finished:"check"},methods:{check:function(){var e=this;this.$nextTick((function(){if(!(e.innerLoading||e.finished||e.error)){var t,n=e.$el,r=e.scroller,o=e.offset,s=e.direction;t=r.getBoundingClientRect?r.getBoundingClientRect():{top:0,bottom:r.innerHeight};var a=t.bottom-t.top;if(!a||Object(i["a"])(n))return!1;var c=!1,u=e.$refs.placeholder.getBoundingClientRect();c="up"===s?t.top-u.top<=o:u.bottom-t.bottom<=o,c&&(e.innerLoading=!0,e.$emit("input",!0),e.$emit("load"))}}))},clickErrorText:function(){this.$emit("update:error",!1),this.check()},genLoading:function(){var e=this.$createElement;if(this.innerLoading&&!this.finished)return e("div",{key:"loading",class:l("loading")},[this.slots("loading")||e(a["a"],{attrs:{size:"16"}},[this.loadingText||f("loading")])])},genFinishedText:function(){var e=this.$createElement;if(this.finished){var t=this.slots("finished")||this.finishedText;if(t)return e("div",{class:l("finished-text")},[t])}},genErrorText:function(){var e=this.$createElement;if(this.error){var t=this.slots("error")||this.errorText;if(t)return e("div",{on:{click:this.clickErrorText},class:l("error-text")},[t])}}},render:function(){var e=arguments[0],t=e("div",{ref:"placeholder",key:"placeholder",class:l("placeholder")});return e("div",{class:l(),attrs:{role:"feed","aria-busy":this.innerLoading}},["down"===this.direction?this.slots():t,this.genLoading(),this.genFinishedText(),this.genErrorText(),"up"===this.direction?this.slots():t])}})},"2caf":function(e,t,n){var r=n("5ca1");r(r.S,"Array",{isArray:n("1169")})},"2d00":function(e,t){e.exports=!1},"2d34":function(e,t,n){var r=n("5ca1"),i=n("38fd"),o=n("cb7c");r(r.S,"Reflect",{getPrototypeOf:function(e){return i(o(e))}})},"2d5c":function(e,t){var n=Math.expm1;e.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(e){return 0==(e=+e)?e:e>-1e-6&&e<1e-6?e+e*e/2:Math.exp(e)-1}:n},"2d63":function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n("67bb"),i=n.n(r),o=n("5d58"),s=n.n(o),a=n("a745"),c=n.n(a),u=n("e630");function l(e,t){var n="undefined"!==typeof i.a&&e[s.a]||e["@@iterator"];if(!n){if(c()(e)||(n=Object(u["a"])(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,l=!0,f=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return l=e.done,e},e:function(e){f=!0,a=e},f:function(){try{l||null==n["return"]||n["return"]()}finally{if(f)throw a}}}}},"2d83":function(e,t,n){"use strict";var r=n("387f");e.exports=function(e,t,n,i,o){var s=new Error(e);return r(s,t,n,i,o)}},"2d95":function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},"2e08":function(e,t,n){var r=n("9def"),i=n("9744"),o=n("be13");e.exports=function(e,t,n,s){var a=String(o(e)),c=a.length,u=void 0===n?" ":String(n),l=r(t);if(l<=c||""==u)return a;var f=l-c,h=i.call(u,Math.ceil(f/u.length));return h.length>f&&(h=h.slice(0,f)),s?h+a:a+h}},"2e37":function(e,t,n){var r=n("5ca1");r(r.S,"Number",{EPSILON:Math.pow(2,-52)})},"2e67":function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},"2ef0":function(e,t,n){(function(e,r){var i;
- /**
- * @license
- * Lodash <https://lodash.com/>
- * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
- * Released under MIT license <https://lodash.com/license>
- * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
- * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
- */(function(){var o,s="4.17.21",a=200,c="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",l="Invalid `variable` option passed into `_.template`",f="__lodash_hash_undefined__",h=500,d="__lodash_placeholder__",p=1,g=2,v=4,y=1,m=2,I=1,_=2,T=4,C=8,M=16,E=32,A=64,S=128,N=256,b=512,w=30,O="...",R=800,D=16,L=1,U=2,x=3,P=1/0,j=9007199254740991,k=17976931348623157e292,z=NaN,G=4294967295,B=G-1,V=G>>>1,Y=[["ary",S],["bind",I],["bindKey",_],["curry",C],["curryRight",M],["flip",b],["partial",E],["partialRight",A],["rearg",N]],H="[object Arguments]",F="[object Array]",Q="[object AsyncFunction]",$="[object Boolean]",K="[object Date]",W="[object DOMException]",q="[object Error]",Z="[object Function]",J="[object GeneratorFunction]",X="[object Map]",ee="[object Number]",te="[object Null]",ne="[object Object]",re="[object Promise]",ie="[object Proxy]",oe="[object RegExp]",se="[object Set]",ae="[object String]",ce="[object Symbol]",ue="[object Undefined]",le="[object WeakMap]",fe="[object WeakSet]",he="[object ArrayBuffer]",de="[object DataView]",pe="[object Float32Array]",ge="[object Float64Array]",ve="[object Int8Array]",ye="[object Int16Array]",me="[object Int32Array]",Ie="[object Uint8Array]",_e="[object Uint8ClampedArray]",Te="[object Uint16Array]",Ce="[object Uint32Array]",Me=/\b__p \+= '';/g,Ee=/\b(__p \+=) '' \+/g,Ae=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Se=/&(?:amp|lt|gt|quot|#39);/g,Ne=/[&<>"']/g,be=RegExp(Se.source),we=RegExp(Ne.source),Oe=/<%-([\s\S]+?)%>/g,Re=/<%([\s\S]+?)%>/g,De=/<%=([\s\S]+?)%>/g,Le=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ue=/^\w*$/,xe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Pe=/[\\^$.*+?()[\]{}|]/g,je=RegExp(Pe.source),ke=/^\s+/,ze=/\s/,Ge=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Be=/\{\n\/\* \[wrapped with (.+)\] \*/,Ve=/,? & /,Ye=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,He=/[()=,{}\[\]\/\s]/,Fe=/\\(\\)?/g,Qe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,$e=/\w*$/,Ke=/^[-+]0x[0-9a-f]+$/i,We=/^0b[01]+$/i,qe=/^\[object .+?Constructor\]$/,Ze=/^0o[0-7]+$/i,Je=/^(?:0|[1-9]\d*)$/,Xe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,et=/($^)/,tt=/['\n\r\u2028\u2029\\]/g,nt="\\ud800-\\udfff",rt="\\u0300-\\u036f",it="\\ufe20-\\ufe2f",ot="\\u20d0-\\u20ff",st=rt+it+ot,at="\\u2700-\\u27bf",ct="a-z\\xdf-\\xf6\\xf8-\\xff",ut="\\xac\\xb1\\xd7\\xf7",lt="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ft="\\u2000-\\u206f",ht=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",dt="A-Z\\xc0-\\xd6\\xd8-\\xde",pt="\\ufe0e\\ufe0f",gt=ut+lt+ft+ht,vt="['’]",yt="["+nt+"]",mt="["+gt+"]",It="["+st+"]",_t="\\d+",Tt="["+at+"]",Ct="["+ct+"]",Mt="[^"+nt+gt+_t+at+ct+dt+"]",Et="\\ud83c[\\udffb-\\udfff]",At="(?:"+It+"|"+Et+")",St="[^"+nt+"]",Nt="(?:\\ud83c[\\udde6-\\uddff]){2}",bt="[\\ud800-\\udbff][\\udc00-\\udfff]",wt="["+dt+"]",Ot="\\u200d",Rt="(?:"+Ct+"|"+Mt+")",Dt="(?:"+wt+"|"+Mt+")",Lt="(?:"+vt+"(?:d|ll|m|re|s|t|ve))?",Ut="(?:"+vt+"(?:D|LL|M|RE|S|T|VE))?",xt=At+"?",Pt="["+pt+"]?",jt="(?:"+Ot+"(?:"+[St,Nt,bt].join("|")+")"+Pt+xt+")*",kt="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",zt="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Gt=Pt+xt+jt,Bt="(?:"+[Tt,Nt,bt].join("|")+")"+Gt,Vt="(?:"+[St+It+"?",It,Nt,bt,yt].join("|")+")",Yt=RegExp(vt,"g"),Ht=RegExp(It,"g"),Ft=RegExp(Et+"(?="+Et+")|"+Vt+Gt,"g"),Qt=RegExp([wt+"?"+Ct+"+"+Lt+"(?="+[mt,wt,"$"].join("|")+")",Dt+"+"+Ut+"(?="+[mt,wt+Rt,"$"].join("|")+")",wt+"?"+Rt+"+"+Lt,wt+"+"+Ut,zt,kt,_t,Bt].join("|"),"g"),$t=RegExp("["+Ot+nt+st+pt+"]"),Kt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Wt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],qt=-1,Zt={};Zt[pe]=Zt[ge]=Zt[ve]=Zt[ye]=Zt[me]=Zt[Ie]=Zt[_e]=Zt[Te]=Zt[Ce]=!0,Zt[H]=Zt[F]=Zt[he]=Zt[$]=Zt[de]=Zt[K]=Zt[q]=Zt[Z]=Zt[X]=Zt[ee]=Zt[ne]=Zt[oe]=Zt[se]=Zt[ae]=Zt[le]=!1;var Jt={};Jt[H]=Jt[F]=Jt[he]=Jt[de]=Jt[$]=Jt[K]=Jt[pe]=Jt[ge]=Jt[ve]=Jt[ye]=Jt[me]=Jt[X]=Jt[ee]=Jt[ne]=Jt[oe]=Jt[se]=Jt[ae]=Jt[ce]=Jt[Ie]=Jt[_e]=Jt[Te]=Jt[Ce]=!0,Jt[q]=Jt[Z]=Jt[le]=!1;var Xt={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"},en={"&":"&","<":"<",">":">",'"':""","'":"'"},tn={"&":"&","<":"<",">":">",""":'"',"'":"'"},nn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},rn=parseFloat,on=parseInt,sn="object"==typeof e&&e&&e.Object===Object&&e,an="object"==typeof self&&self&&self.Object===Object&&self,cn=sn||an||Function("return this")(),un=t&&!t.nodeType&&t,ln=un&&"object"==typeof r&&r&&!r.nodeType&&r,fn=ln&&ln.exports===un,hn=fn&&sn.process,dn=function(){try{var e=ln&&ln.require&&ln.require("util").types;return e||hn&&hn.binding&&hn.binding("util")}catch(t){}}(),pn=dn&&dn.isArrayBuffer,gn=dn&&dn.isDate,vn=dn&&dn.isMap,yn=dn&&dn.isRegExp,mn=dn&&dn.isSet,In=dn&&dn.isTypedArray;function _n(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Tn(e,t,n,r){var i=-1,o=null==e?0:e.length;while(++i<o){var s=e[i];t(r,s,n(s),e)}return r}function Cn(e,t){var n=-1,r=null==e?0:e.length;while(++n<r)if(!1===t(e[n],n,e))break;return e}function Mn(e,t){var n=null==e?0:e.length;while(n--)if(!1===t(e[n],n,e))break;return e}function En(e,t){var n=-1,r=null==e?0:e.length;while(++n<r)if(!t(e[n],n,e))return!1;return!0}function An(e,t){var n=-1,r=null==e?0:e.length,i=0,o=[];while(++n<r){var s=e[n];t(s,n,e)&&(o[i++]=s)}return o}function Sn(e,t){var n=null==e?0:e.length;return!!n&&kn(e,t,0)>-1}function Nn(e,t,n){var r=-1,i=null==e?0:e.length;while(++r<i)if(n(t,e[r]))return!0;return!1}function bn(e,t){var n=-1,r=null==e?0:e.length,i=Array(r);while(++n<r)i[n]=t(e[n],n,e);return i}function wn(e,t){var n=-1,r=t.length,i=e.length;while(++n<r)e[i+n]=t[n];return e}function On(e,t,n,r){var i=-1,o=null==e?0:e.length;r&&o&&(n=e[++i]);while(++i<o)n=t(n,e[i],i,e);return n}function Rn(e,t,n,r){var i=null==e?0:e.length;r&&i&&(n=e[--i]);while(i--)n=t(n,e[i],i,e);return n}function Dn(e,t){var n=-1,r=null==e?0:e.length;while(++n<r)if(t(e[n],n,e))return!0;return!1}var Ln=Vn("length");function Un(e){return e.split("")}function xn(e){return e.match(Ye)||[]}function Pn(e,t,n){var r;return n(e,(function(e,n,i){if(t(e,n,i))return r=n,!1})),r}function jn(e,t,n,r){var i=e.length,o=n+(r?1:-1);while(r?o--:++o<i)if(t(e[o],o,e))return o;return-1}function kn(e,t,n){return t===t?pr(e,t,n):jn(e,Gn,n)}function zn(e,t,n,r){var i=n-1,o=e.length;while(++i<o)if(r(e[i],t))return i;return-1}function Gn(e){return e!==e}function Bn(e,t){var n=null==e?0:e.length;return n?Qn(e,t)/n:z}function Vn(e){return function(t){return null==t?o:t[e]}}function Yn(e){return function(t){return null==e?o:e[t]}}function Hn(e,t,n,r,i){return i(e,(function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)})),n}function Fn(e,t){var n=e.length;e.sort(t);while(n--)e[n]=e[n].value;return e}function Qn(e,t){var n,r=-1,i=e.length;while(++r<i){var s=t(e[r]);s!==o&&(n=n===o?s:n+s)}return n}function $n(e,t){var n=-1,r=Array(e);while(++n<e)r[n]=t(n);return r}function Kn(e,t){return bn(t,(function(t){return[t,e[t]]}))}function Wn(e){return e?e.slice(0,mr(e)+1).replace(ke,""):e}function qn(e){return function(t){return e(t)}}function Zn(e,t){return bn(t,(function(t){return e[t]}))}function Jn(e,t){return e.has(t)}function Xn(e,t){var n=-1,r=e.length;while(++n<r&&kn(t,e[n],0)>-1);return n}function er(e,t){var n=e.length;while(n--&&kn(t,e[n],0)>-1);return n}function tr(e,t){var n=e.length,r=0;while(n--)e[n]===t&&++r;return r}var nr=Yn(Xt),rr=Yn(en);function ir(e){return"\\"+nn[e]}function or(e,t){return null==e?o:e[t]}function sr(e){return $t.test(e)}function ar(e){return Kt.test(e)}function cr(e){var t,n=[];while(!(t=e.next()).done)n.push(t.value);return n}function ur(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function lr(e,t){return function(n){return e(t(n))}}function fr(e,t){var n=-1,r=e.length,i=0,o=[];while(++n<r){var s=e[n];s!==t&&s!==d||(e[n]=d,o[i++]=n)}return o}function hr(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function dr(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function pr(e,t,n){var r=n-1,i=e.length;while(++r<i)if(e[r]===t)return r;return-1}function gr(e,t,n){var r=n+1;while(r--)if(e[r]===t)return r;return r}function vr(e){return sr(e)?_r(e):Ln(e)}function yr(e){return sr(e)?Tr(e):Un(e)}function mr(e){var t=e.length;while(t--&&ze.test(e.charAt(t)));return t}var Ir=Yn(tn);function _r(e){var t=Ft.lastIndex=0;while(Ft.test(e))++t;return t}function Tr(e){return e.match(Ft)||[]}function Cr(e){return e.match(Qt)||[]}var Mr=function e(t){t=null==t?cn:Er.defaults(cn.Object(),t,Er.pick(cn,Wt));var n=t.Array,r=t.Date,i=t.Error,ze=t.Function,Ye=t.Math,nt=t.Object,rt=t.RegExp,it=t.String,ot=t.TypeError,st=n.prototype,at=ze.prototype,ct=nt.prototype,ut=t["__core-js_shared__"],lt=at.toString,ft=ct.hasOwnProperty,ht=0,dt=function(){var e=/[^.]+$/.exec(ut&&ut.keys&&ut.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),pt=ct.toString,gt=lt.call(nt),vt=cn._,yt=rt("^"+lt.call(ft).replace(Pe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),mt=fn?t.Buffer:o,It=t.Symbol,_t=t.Uint8Array,Tt=mt?mt.allocUnsafe:o,Ct=lr(nt.getPrototypeOf,nt),Mt=nt.create,Et=ct.propertyIsEnumerable,At=st.splice,St=It?It.isConcatSpreadable:o,Nt=It?It.iterator:o,bt=It?It.toStringTag:o,wt=function(){try{var e=$s(nt,"defineProperty");return e({},"",{}),e}catch(t){}}(),Ot=t.clearTimeout!==cn.clearTimeout&&t.clearTimeout,Rt=r&&r.now!==cn.Date.now&&r.now,Dt=t.setTimeout!==cn.setTimeout&&t.setTimeout,Lt=Ye.ceil,Ut=Ye.floor,xt=nt.getOwnPropertySymbols,Pt=mt?mt.isBuffer:o,jt=t.isFinite,kt=st.join,zt=lr(nt.keys,nt),Gt=Ye.max,Bt=Ye.min,Vt=r.now,Ft=t.parseInt,Qt=Ye.random,$t=st.reverse,Kt=$s(t,"DataView"),Xt=$s(t,"Map"),en=$s(t,"Promise"),tn=$s(t,"Set"),nn=$s(t,"WeakMap"),sn=$s(nt,"create"),an=nn&&new nn,un={},ln=Da(Kt),hn=Da(Xt),dn=Da(en),Ln=Da(tn),Un=Da(nn),Yn=It?It.prototype:o,pr=Yn?Yn.valueOf:o,_r=Yn?Yn.toString:o;function Tr(e){if(Al(e)&&!cl(e)&&!(e instanceof Nr)){if(e instanceof Sr)return e;if(ft.call(e,"__wrapped__"))return Ua(e)}return new Sr(e)}var Mr=function(){function e(){}return function(t){if(!El(t))return{};if(Mt)return Mt(t);e.prototype=t;var n=new e;return e.prototype=o,n}}();function Ar(){}function Sr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function Nr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=G,this.__views__=[]}function br(){var e=new Nr(this.__wrapped__);return e.__actions__=is(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=is(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=is(this.__views__),e}function wr(){if(this.__filtered__){var e=new Nr(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function Or(){var e=this.__wrapped__.value(),t=this.__dir__,n=cl(e),r=t<0,i=n?e.length:0,o=Js(0,i,this.__views__),s=o.start,a=o.end,c=a-s,u=r?a:s-1,l=this.__iteratees__,f=l.length,h=0,d=Bt(c,this.__takeCount__);if(!n||!r&&i==c&&d==c)return zo(e,this.__actions__);var p=[];e:while(c--&&h<d){u+=t;var g=-1,v=e[u];while(++g<f){var y=l[g],m=y.iteratee,I=y.type,_=m(v);if(I==U)v=_;else if(!_){if(I==L)continue e;break e}}p[h++]=v}return p}function Rr(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}function Dr(){this.__data__=sn?sn(null):{},this.size=0}function Lr(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function Ur(e){var t=this.__data__;if(sn){var n=t[e];return n===f?o:n}return ft.call(t,e)?t[e]:o}function xr(e){var t=this.__data__;return sn?t[e]!==o:ft.call(t,e)}function Pr(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=sn&&t===o?f:t,this}function jr(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}function kr(){this.__data__=[],this.size=0}function zr(e){var t=this.__data__,n=li(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():At.call(t,n,1),--this.size,!0}function Gr(e){var t=this.__data__,n=li(t,e);return n<0?o:t[n][1]}function Br(e){return li(this.__data__,e)>-1}function Vr(e,t){var n=this.__data__,r=li(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Yr(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}function Hr(){this.size=0,this.__data__={hash:new Rr,map:new(Xt||jr),string:new Rr}}function Fr(e){var t=Fs(this,e)["delete"](e);return this.size-=t?1:0,t}function Qr(e){return Fs(this,e).get(e)}function $r(e){return Fs(this,e).has(e)}function Kr(e,t){var n=Fs(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Wr(e){var t=-1,n=null==e?0:e.length;this.__data__=new Yr;while(++t<n)this.add(e[t])}function qr(e){return this.__data__.set(e,f),this}function Zr(e){return this.__data__.has(e)}function Jr(e){var t=this.__data__=new jr(e);this.size=t.size}function Xr(){this.__data__=new jr,this.size=0}function ei(e){var t=this.__data__,n=t["delete"](e);return this.size=t.size,n}function ti(e){return this.__data__.get(e)}function ni(e){return this.__data__.has(e)}function ri(e,t){var n=this.__data__;if(n instanceof jr){var r=n.__data__;if(!Xt||r.length<a-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Yr(r)}return n.set(e,t),this.size=n.size,this}function ii(e,t){var n=cl(e),r=!n&&al(e),i=!n&&!r&&dl(e),o=!n&&!r&&!i&&Gl(e),s=n||r||i||o,a=s?$n(e.length,it):[],c=a.length;for(var u in e)!t&&!ft.call(e,u)||s&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||sa(u,c))||a.push(u);return a}function oi(e){var t=e.length;return t?e[mo(0,t-1)]:o}function si(e,t){return wa(is(e),vi(t,0,e.length))}function ai(e){return wa(is(e))}function ci(e,t,n){(n!==o&&!il(e[t],n)||n===o&&!(t in e))&&pi(e,t,n)}function ui(e,t,n){var r=e[t];ft.call(e,t)&&il(r,n)&&(n!==o||t in e)||pi(e,t,n)}function li(e,t){var n=e.length;while(n--)if(il(e[n][0],t))return n;return-1}function fi(e,t,n,r){return Ci(e,(function(e,i,o){t(r,e,n(e),o)})),r}function hi(e,t){return e&&os(t,Mf(t),e)}function di(e,t){return e&&os(t,Ef(t),e)}function pi(e,t,n){"__proto__"==t&&wt?wt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function gi(e,t){var r=-1,i=t.length,s=n(i),a=null==e;while(++r<i)s[r]=a?o:yf(e,t[r]);return s}function vi(e,t,n){return e===e&&(n!==o&&(e=e<=n?e:n),t!==o&&(e=e>=t?e:t)),e}function yi(e,t,n,r,i,s){var a,c=t&p,u=t&g,l=t&v;if(n&&(a=i?n(e,r,i,s):n(e)),a!==o)return a;if(!El(e))return e;var f=cl(e);if(f){if(a=ta(e),!c)return is(e,a)}else{var h=Zs(e),d=h==Z||h==J;if(dl(e))return Ko(e,c);if(h==ne||h==H||d&&!i){if(a=u||d?{}:na(e),!c)return u?as(e,di(a,e)):ss(e,hi(a,e))}else{if(!Jt[h])return i?e:{};a=ra(e,h,c)}}s||(s=new Jr);var y=s.get(e);if(y)return y;s.set(e,a),jl(e)?e.forEach((function(r){a.add(yi(r,t,n,r,e,s))})):Sl(e)&&e.forEach((function(r,i){a.set(i,yi(r,t,n,i,e,s))}));var m=l?u?Gs:zs:u?Ef:Mf,I=f?o:m(e);return Cn(I||e,(function(r,i){I&&(i=r,r=e[i]),ui(a,i,yi(r,t,n,i,e,s))})),a}function mi(e){var t=Mf(e);return function(n){return Ii(n,e,t)}}function Ii(e,t,n){var r=n.length;if(null==e)return!r;e=nt(e);while(r--){var i=n[r],s=t[i],a=e[i];if(a===o&&!(i in e)||!s(a))return!1}return!0}function _i(e,t,n){if("function"!=typeof e)throw new ot(u);return Aa((function(){e.apply(o,n)}),t)}function Ti(e,t,n,r){var i=-1,o=Sn,s=!0,c=e.length,u=[],l=t.length;if(!c)return u;n&&(t=bn(t,qn(n))),r?(o=Nn,s=!1):t.length>=a&&(o=Jn,s=!1,t=new Wr(t));e:while(++i<c){var f=e[i],h=null==n?f:n(f);if(f=r||0!==f?f:0,s&&h===h){var d=l;while(d--)if(t[d]===h)continue e;u.push(f)}else o(t,h,r)||u.push(f)}return u}Tr.templateSettings={escape:Oe,evaluate:Re,interpolate:De,variable:"",imports:{_:Tr}},Tr.prototype=Ar.prototype,Tr.prototype.constructor=Tr,Sr.prototype=Mr(Ar.prototype),Sr.prototype.constructor=Sr,Nr.prototype=Mr(Ar.prototype),Nr.prototype.constructor=Nr,Rr.prototype.clear=Dr,Rr.prototype["delete"]=Lr,Rr.prototype.get=Ur,Rr.prototype.has=xr,Rr.prototype.set=Pr,jr.prototype.clear=kr,jr.prototype["delete"]=zr,jr.prototype.get=Gr,jr.prototype.has=Br,jr.prototype.set=Vr,Yr.prototype.clear=Hr,Yr.prototype["delete"]=Fr,Yr.prototype.get=Qr,Yr.prototype.has=$r,Yr.prototype.set=Kr,Wr.prototype.add=Wr.prototype.push=qr,Wr.prototype.has=Zr,Jr.prototype.clear=Xr,Jr.prototype["delete"]=ei,Jr.prototype.get=ti,Jr.prototype.has=ni,Jr.prototype.set=ri;var Ci=ls(Ri),Mi=ls(Di,!0);function Ei(e,t){var n=!0;return Ci(e,(function(e,r,i){return n=!!t(e,r,i),n})),n}function Ai(e,t,n){var r=-1,i=e.length;while(++r<i){var s=e[r],a=t(s);if(null!=a&&(c===o?a===a&&!zl(a):n(a,c)))var c=a,u=s}return u}function Si(e,t,n,r){var i=e.length;n=Kl(n),n<0&&(n=-n>i?0:i+n),r=r===o||r>i?i:Kl(r),r<0&&(r+=i),r=n>r?0:Wl(r);while(n<r)e[n++]=t;return e}function Ni(e,t){var n=[];return Ci(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}function bi(e,t,n,r,i){var o=-1,s=e.length;n||(n=oa),i||(i=[]);while(++o<s){var a=e[o];t>0&&n(a)?t>1?bi(a,t-1,n,r,i):wn(i,a):r||(i[i.length]=a)}return i}var wi=fs(),Oi=fs(!0);function Ri(e,t){return e&&wi(e,t,Mf)}function Di(e,t){return e&&Oi(e,t,Mf)}function Li(e,t){return An(t,(function(t){return Tl(e[t])}))}function Ui(e,t){t=Ho(t,e);var n=0,r=t.length;while(null!=e&&n<r)e=e[Ra(t[n++])];return n&&n==r?e:o}function xi(e,t,n){var r=t(e);return cl(e)?r:wn(r,n(e))}function Pi(e){return null==e?e===o?ue:te:bt&&bt in nt(e)?Ks(e):Ia(e)}function ji(e,t){return e>t}function ki(e,t){return null!=e&&ft.call(e,t)}function zi(e,t){return null!=e&&t in nt(e)}function Gi(e,t,n){return e>=Bt(t,n)&&e<Gt(t,n)}function Bi(e,t,r){var i=r?Nn:Sn,s=e[0].length,a=e.length,c=a,u=n(a),l=1/0,f=[];while(c--){var h=e[c];c&&t&&(h=bn(h,qn(t))),l=Bt(h.length,l),u[c]=!r&&(t||s>=120&&h.length>=120)?new Wr(c&&h):o}h=e[0];var d=-1,p=u[0];e:while(++d<s&&f.length<l){var g=h[d],v=t?t(g):g;if(g=r||0!==g?g:0,!(p?Jn(p,v):i(f,v,r))){c=a;while(--c){var y=u[c];if(!(y?Jn(y,v):i(e[c],v,r)))continue e}p&&p.push(v),f.push(g)}}return f}function Vi(e,t,n,r){return Ri(e,(function(e,i,o){t(r,n(e),i,o)})),r}function Yi(e,t,n){t=Ho(t,e),e=Ta(e,t);var r=null==e?e:e[Ra(oc(t))];return null==r?o:_n(r,e,n)}function Hi(e){return Al(e)&&Pi(e)==H}function Fi(e){return Al(e)&&Pi(e)==he}function Qi(e){return Al(e)&&Pi(e)==K}function $i(e,t,n,r,i){return e===t||(null==e||null==t||!Al(e)&&!Al(t)?e!==e&&t!==t:Ki(e,t,n,r,$i,i))}function Ki(e,t,n,r,i,o){var s=cl(e),a=cl(t),c=s?F:Zs(e),u=a?F:Zs(t);c=c==H?ne:c,u=u==H?ne:u;var l=c==ne,f=u==ne,h=c==u;if(h&&dl(e)){if(!dl(t))return!1;s=!0,l=!1}if(h&&!l)return o||(o=new Jr),s||Gl(e)?xs(e,t,n,r,i,o):Ps(e,t,c,n,r,i,o);if(!(n&y)){var d=l&&ft.call(e,"__wrapped__"),p=f&&ft.call(t,"__wrapped__");if(d||p){var g=d?e.value():e,v=p?t.value():t;return o||(o=new Jr),i(g,v,n,r,o)}}return!!h&&(o||(o=new Jr),js(e,t,n,r,i,o))}function Wi(e){return Al(e)&&Zs(e)==X}function qi(e,t,n,r){var i=n.length,s=i,a=!r;if(null==e)return!s;e=nt(e);while(i--){var c=n[i];if(a&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}while(++i<s){c=n[i];var u=c[0],l=e[u],f=c[1];if(a&&c[2]){if(l===o&&!(u in e))return!1}else{var h=new Jr;if(r)var d=r(l,f,u,e,t,h);if(!(d===o?$i(f,l,y|m,r,h):d))return!1}}return!0}function Zi(e){if(!El(e)||fa(e))return!1;var t=Tl(e)?yt:qe;return t.test(Da(e))}function Ji(e){return Al(e)&&Pi(e)==oe}function Xi(e){return Al(e)&&Zs(e)==se}function eo(e){return Al(e)&&Ml(e.length)&&!!Zt[Pi(e)]}function to(e){return"function"==typeof e?e:null==e?Rh:"object"==typeof e?cl(e)?ao(e[0],e[1]):so(e):Hh(e)}function no(e){if(!da(e))return zt(e);var t=[];for(var n in nt(e))ft.call(e,n)&&"constructor"!=n&&t.push(n);return t}function ro(e){if(!El(e))return ma(e);var t=da(e),n=[];for(var r in e)("constructor"!=r||!t&&ft.call(e,r))&&n.push(r);return n}function io(e,t){return e<t}function oo(e,t){var r=-1,i=ll(e)?n(e.length):[];return Ci(e,(function(e,n,o){i[++r]=t(e,n,o)})),i}function so(e){var t=Qs(e);return 1==t.length&&t[0][2]?ga(t[0][0],t[0][1]):function(n){return n===e||qi(n,e,t)}}function ao(e,t){return ca(e)&&pa(t)?ga(Ra(e),t):function(n){var r=yf(n,e);return r===o&&r===t?If(n,e):$i(t,r,y|m)}}function co(e,t,n,r,i){e!==t&&wi(t,(function(s,a){if(i||(i=new Jr),El(s))uo(e,t,a,n,co,r,i);else{var c=r?r(Ma(e,a),s,a+"",e,t,i):o;c===o&&(c=s),ci(e,a,c)}}),Ef)}function uo(e,t,n,r,i,s,a){var c=Ma(e,n),u=Ma(t,n),l=a.get(u);if(l)ci(e,n,l);else{var f=s?s(c,u,n+"",e,t,a):o,h=f===o;if(h){var d=cl(u),p=!d&&dl(u),g=!d&&!p&&Gl(u);f=u,d||p||g?cl(c)?f=c:fl(c)?f=is(c):p?(h=!1,f=Ko(u,!0)):g?(h=!1,f=Xo(u,!0)):f=[]:Ul(u)||al(u)?(f=c,al(c)?f=Zl(c):El(c)&&!Tl(c)||(f=na(u))):h=!1}h&&(a.set(u,f),i(f,u,r,s,a),a["delete"](u)),ci(e,n,f)}}function lo(e,t){var n=e.length;if(n)return t+=t<0?n:0,sa(t,n)?e[t]:o}function fo(e,t,n){t=t.length?bn(t,(function(e){return cl(e)?function(t){return Ui(t,1===e.length?e[0]:e)}:e})):[Rh];var r=-1;t=bn(t,qn(Hs()));var i=oo(e,(function(e,n,i){var o=bn(t,(function(t){return t(e)}));return{criteria:o,index:++r,value:e}}));return Fn(i,(function(e,t){return ts(e,t,n)}))}function ho(e,t){return po(e,t,(function(t,n){return If(e,n)}))}function po(e,t,n){var r=-1,i=t.length,o={};while(++r<i){var s=t[r],a=Ui(e,s);n(a,s)&&Eo(o,Ho(s,e),a)}return o}function go(e){return function(t){return Ui(t,e)}}function vo(e,t,n,r){var i=r?zn:kn,o=-1,s=t.length,a=e;e===t&&(t=is(t)),n&&(a=bn(e,qn(n)));while(++o<s){var c=0,u=t[o],l=n?n(u):u;while((c=i(a,l,c,r))>-1)a!==e&&At.call(a,c,1),At.call(e,c,1)}return e}function yo(e,t){var n=e?t.length:0,r=n-1;while(n--){var i=t[n];if(n==r||i!==o){var o=i;sa(i)?At.call(e,i,1):Po(e,i)}}return e}function mo(e,t){return e+Ut(Qt()*(t-e+1))}function Io(e,t,r,i){var o=-1,s=Gt(Lt((t-e)/(r||1)),0),a=n(s);while(s--)a[i?s:++o]=e,e+=r;return a}function _o(e,t){var n="";if(!e||t<1||t>j)return n;do{t%2&&(n+=e),t=Ut(t/2),t&&(e+=e)}while(t);return n}function To(e,t){return Sa(_a(e,t,Rh),e+"")}function Co(e){return oi(Vf(e))}function Mo(e,t){var n=Vf(e);return wa(n,vi(t,0,n.length))}function Eo(e,t,n,r){if(!El(e))return e;t=Ho(t,e);var i=-1,s=t.length,a=s-1,c=e;while(null!=c&&++i<s){var u=Ra(t[i]),l=n;if("__proto__"===u||"constructor"===u||"prototype"===u)return e;if(i!=a){var f=c[u];l=r?r(f,u,c):o,l===o&&(l=El(f)?f:sa(t[i+1])?[]:{})}ui(c,u,l),c=c[u]}return e}var Ao=an?function(e,t){return an.set(e,t),e}:Rh,So=wt?function(e,t){return wt(e,"toString",{configurable:!0,enumerable:!1,value:Nh(t),writable:!0})}:Rh;function No(e){return wa(Vf(e))}function bo(e,t,r){var i=-1,o=e.length;t<0&&(t=-t>o?0:o+t),r=r>o?o:r,r<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;var s=n(o);while(++i<o)s[i]=e[i+t];return s}function wo(e,t){var n;return Ci(e,(function(e,r,i){return n=t(e,r,i),!n})),!!n}function Oo(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t===t&&i<=V){while(r<i){var o=r+i>>>1,s=e[o];null!==s&&!zl(s)&&(n?s<=t:s<t)?r=o+1:i=o}return i}return Ro(e,t,Rh,n)}function Ro(e,t,n,r){var i=0,s=null==e?0:e.length;if(0===s)return 0;t=n(t);var a=t!==t,c=null===t,u=zl(t),l=t===o;while(i<s){var f=Ut((i+s)/2),h=n(e[f]),d=h!==o,p=null===h,g=h===h,v=zl(h);if(a)var y=r||g;else y=l?g&&(r||d):c?g&&d&&(r||!p):u?g&&d&&!p&&(r||!v):!p&&!v&&(r?h<=t:h<t);y?i=f+1:s=f}return Bt(s,B)}function Do(e,t){var n=-1,r=e.length,i=0,o=[];while(++n<r){var s=e[n],a=t?t(s):s;if(!n||!il(a,c)){var c=a;o[i++]=0===s?0:s}}return o}function Lo(e){return"number"==typeof e?e:zl(e)?z:+e}function Uo(e){if("string"==typeof e)return e;if(cl(e))return bn(e,Uo)+"";if(zl(e))return _r?_r.call(e):"";var t=e+"";return"0"==t&&1/e==-P?"-0":t}function xo(e,t,n){var r=-1,i=Sn,o=e.length,s=!0,c=[],u=c;if(n)s=!1,i=Nn;else if(o>=a){var l=t?null:ws(e);if(l)return hr(l);s=!1,i=Jn,u=new Wr}else u=t?[]:c;e:while(++r<o){var f=e[r],h=t?t(f):f;if(f=n||0!==f?f:0,s&&h===h){var d=u.length;while(d--)if(u[d]===h)continue e;t&&u.push(h),c.push(f)}else i(u,h,n)||(u!==c&&u.push(h),c.push(f))}return c}function Po(e,t){return t=Ho(t,e),e=Ta(e,t),null==e||delete e[Ra(oc(t))]}function jo(e,t,n,r){return Eo(e,t,n(Ui(e,t)),r)}function ko(e,t,n,r){var i=e.length,o=r?i:-1;while((r?o--:++o<i)&&t(e[o],o,e));return n?bo(e,r?0:o,r?o+1:i):bo(e,r?o+1:0,r?i:o)}function zo(e,t){var n=e;return n instanceof Nr&&(n=n.value()),On(t,(function(e,t){return t.func.apply(t.thisArg,wn([e],t.args))}),n)}function Go(e,t,r){var i=e.length;if(i<2)return i?xo(e[0]):[];var o=-1,s=n(i);while(++o<i){var a=e[o],c=-1;while(++c<i)c!=o&&(s[o]=Ti(s[o]||a,e[c],t,r))}return xo(bi(s,1),t,r)}function Bo(e,t,n){var r=-1,i=e.length,s=t.length,a={};while(++r<i){var c=r<s?t[r]:o;n(a,e[r],c)}return a}function Vo(e){return fl(e)?e:[]}function Yo(e){return"function"==typeof e?e:Rh}function Ho(e,t){return cl(e)?e:ca(e,t)?[e]:Oa(Xl(e))}var Fo=To;function Qo(e,t,n){var r=e.length;return n=n===o?r:n,!t&&n>=r?e:bo(e,t,n)}var $o=Ot||function(e){return cn.clearTimeout(e)};function Ko(e,t){if(t)return e.slice();var n=e.length,r=Tt?Tt(n):new e.constructor(n);return e.copy(r),r}function Wo(e){var t=new e.constructor(e.byteLength);return new _t(t).set(new _t(e)),t}function qo(e,t){var n=t?Wo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function Zo(e){var t=new e.constructor(e.source,$e.exec(e));return t.lastIndex=e.lastIndex,t}function Jo(e){return pr?nt(pr.call(e)):{}}function Xo(e,t){var n=t?Wo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function es(e,t){if(e!==t){var n=e!==o,r=null===e,i=e===e,s=zl(e),a=t!==o,c=null===t,u=t===t,l=zl(t);if(!c&&!l&&!s&&e>t||s&&a&&u&&!c&&!l||r&&a&&u||!n&&u||!i)return 1;if(!r&&!s&&!l&&e<t||l&&n&&i&&!r&&!s||c&&n&&i||!a&&i||!u)return-1}return 0}function ts(e,t,n){var r=-1,i=e.criteria,o=t.criteria,s=i.length,a=n.length;while(++r<s){var c=es(i[r],o[r]);if(c){if(r>=a)return c;var u=n[r];return c*("desc"==u?-1:1)}}return e.index-t.index}function ns(e,t,r,i){var o=-1,s=e.length,a=r.length,c=-1,u=t.length,l=Gt(s-a,0),f=n(u+l),h=!i;while(++c<u)f[c]=t[c];while(++o<a)(h||o<s)&&(f[r[o]]=e[o]);while(l--)f[c++]=e[o++];return f}function rs(e,t,r,i){var o=-1,s=e.length,a=-1,c=r.length,u=-1,l=t.length,f=Gt(s-c,0),h=n(f+l),d=!i;while(++o<f)h[o]=e[o];var p=o;while(++u<l)h[p+u]=t[u];while(++a<c)(d||o<s)&&(h[p+r[a]]=e[o++]);return h}function is(e,t){var r=-1,i=e.length;t||(t=n(i));while(++r<i)t[r]=e[r];return t}function os(e,t,n,r){var i=!n;n||(n={});var s=-1,a=t.length;while(++s<a){var c=t[s],u=r?r(n[c],e[c],c,n,e):o;u===o&&(u=e[c]),i?pi(n,c,u):ui(n,c,u)}return n}function ss(e,t){return os(e,Ws(e),t)}function as(e,t){return os(e,qs(e),t)}function cs(e,t){return function(n,r){var i=cl(n)?Tn:fi,o=t?t():{};return i(n,e,Hs(r,2),o)}}function us(e){return To((function(t,n){var r=-1,i=n.length,s=i>1?n[i-1]:o,a=i>2?n[2]:o;s=e.length>3&&"function"==typeof s?(i--,s):o,a&&aa(n[0],n[1],a)&&(s=i<3?o:s,i=1),t=nt(t);while(++r<i){var c=n[r];c&&e(t,c,r,s)}return t}))}function ls(e,t){return function(n,r){if(null==n)return n;if(!ll(n))return e(n,r);var i=n.length,o=t?i:-1,s=nt(n);while(t?o--:++o<i)if(!1===r(s[o],o,s))break;return n}}function fs(e){return function(t,n,r){var i=-1,o=nt(t),s=r(t),a=s.length;while(a--){var c=s[e?a:++i];if(!1===n(o[c],c,o))break}return t}}function hs(e,t,n){var r=t&I,i=gs(e);function o(){var t=this&&this!==cn&&this instanceof o?i:e;return t.apply(r?n:this,arguments)}return o}function ds(e){return function(t){t=Xl(t);var n=sr(t)?yr(t):o,r=n?n[0]:t.charAt(0),i=n?Qo(n,1).join(""):t.slice(1);return r[e]()+i}}function ps(e){return function(t){return On(Ch(Wf(t).replace(Yt,"")),e,"")}}function gs(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Mr(e.prototype),r=e.apply(n,t);return El(r)?r:n}}function vs(e,t,r){var i=gs(e);function s(){var a=arguments.length,c=n(a),u=a,l=Ys(s);while(u--)c[u]=arguments[u];var f=a<3&&c[0]!==l&&c[a-1]!==l?[]:fr(c,l);if(a-=f.length,a<r)return Ns(e,t,Is,s.placeholder,o,c,f,o,o,r-a);var h=this&&this!==cn&&this instanceof s?i:e;return _n(h,this,c)}return s}function ys(e){return function(t,n,r){var i=nt(t);if(!ll(t)){var s=Hs(n,3);t=Mf(t),n=function(e){return s(i[e],e,i)}}var a=e(t,n,r);return a>-1?i[s?t[a]:a]:o}}function ms(e){return ks((function(t){var n=t.length,r=n,i=Sr.prototype.thru;e&&t.reverse();while(r--){var s=t[r];if("function"!=typeof s)throw new ot(u);if(i&&!a&&"wrapper"==Vs(s))var a=new Sr([],!0)}r=a?r:n;while(++r<n){s=t[r];var c=Vs(s),l="wrapper"==c?Bs(s):o;a=l&&la(l[0])&&l[1]==(S|C|E|N)&&!l[4].length&&1==l[9]?a[Vs(l[0])].apply(a,l[3]):1==s.length&&la(s)?a[c]():a.thru(s)}return function(){var e=arguments,r=e[0];if(a&&1==e.length&&cl(r))return a.plant(r).value();var i=0,o=n?t[i].apply(this,e):r;while(++i<n)o=t[i].call(this,o);return o}}))}function Is(e,t,r,i,s,a,c,u,l,f){var h=t&S,d=t&I,p=t&_,g=t&(C|M),v=t&b,y=p?o:gs(e);function m(){var o=arguments.length,I=n(o),_=o;while(_--)I[_]=arguments[_];if(g)var T=Ys(m),C=tr(I,T);if(i&&(I=ns(I,i,s,g)),a&&(I=rs(I,a,c,g)),o-=C,g&&o<f){var M=fr(I,T);return Ns(e,t,Is,m.placeholder,r,I,M,u,l,f-o)}var E=d?r:this,A=p?E[e]:e;return o=I.length,u?I=Ca(I,u):v&&o>1&&I.reverse(),h&&l<o&&(I.length=l),this&&this!==cn&&this instanceof m&&(A=y||gs(A)),A.apply(E,I)}return m}function _s(e,t){return function(n,r){return Vi(n,e,t(r),{})}}function Ts(e,t){return function(n,r){var i;if(n===o&&r===o)return t;if(n!==o&&(i=n),r!==o){if(i===o)return r;"string"==typeof n||"string"==typeof r?(n=Uo(n),r=Uo(r)):(n=Lo(n),r=Lo(r)),i=e(n,r)}return i}}function Cs(e){return ks((function(t){return t=bn(t,qn(Hs())),To((function(n){var r=this;return e(t,(function(e){return _n(e,r,n)}))}))}))}function Ms(e,t){t=t===o?" ":Uo(t);var n=t.length;if(n<2)return n?_o(t,e):t;var r=_o(t,Lt(e/vr(t)));return sr(t)?Qo(yr(r),0,e).join(""):r.slice(0,e)}function Es(e,t,r,i){var o=t&I,s=gs(e);function a(){var t=-1,c=arguments.length,u=-1,l=i.length,f=n(l+c),h=this&&this!==cn&&this instanceof a?s:e;while(++u<l)f[u]=i[u];while(c--)f[u++]=arguments[++t];return _n(h,o?r:this,f)}return a}function As(e){return function(t,n,r){return r&&"number"!=typeof r&&aa(t,n,r)&&(n=r=o),t=$l(t),n===o?(n=t,t=0):n=$l(n),r=r===o?t<n?1:-1:$l(r),Io(t,n,r,e)}}function Ss(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=ql(t),n=ql(n)),e(t,n)}}function Ns(e,t,n,r,i,s,a,c,u,l){var f=t&C,h=f?a:o,d=f?o:a,p=f?s:o,g=f?o:s;t|=f?E:A,t&=~(f?A:E),t&T||(t&=~(I|_));var v=[e,t,i,p,h,g,d,c,u,l],y=n.apply(o,v);return la(e)&&Ea(y,v),y.placeholder=r,Na(y,e,t)}function bs(e){var t=Ye[e];return function(e,n){if(e=ql(e),n=null==n?0:Bt(Kl(n),292),n&&jt(e)){var r=(Xl(e)+"e").split("e"),i=t(r[0]+"e"+(+r[1]+n));return r=(Xl(i)+"e").split("e"),+(r[0]+"e"+(+r[1]-n))}return t(e)}}var ws=tn&&1/hr(new tn([,-0]))[1]==P?function(e){return new tn(e)}:zh;function Os(e){return function(t){var n=Zs(t);return n==X?ur(t):n==se?dr(t):Kn(t,e(t))}}function Rs(e,t,n,r,i,s,a,c){var l=t&_;if(!l&&"function"!=typeof e)throw new ot(u);var f=r?r.length:0;if(f||(t&=~(E|A),r=i=o),a=a===o?a:Gt(Kl(a),0),c=c===o?c:Kl(c),f-=i?i.length:0,t&A){var h=r,d=i;r=i=o}var p=l?o:Bs(e),g=[e,t,n,r,i,h,d,s,a,c];if(p&&ya(g,p),e=g[0],t=g[1],n=g[2],r=g[3],i=g[4],c=g[9]=g[9]===o?l?0:e.length:Gt(g[9]-f,0),!c&&t&(C|M)&&(t&=~(C|M)),t&&t!=I)v=t==C||t==M?vs(e,t,c):t!=E&&t!=(I|E)||i.length?Is.apply(o,g):Es(e,t,n,r);else var v=hs(e,t,n);var y=p?Ao:Ea;return Na(y(v,g),e,t)}function Ds(e,t,n,r){return e===o||il(e,ct[n])&&!ft.call(r,n)?t:e}function Ls(e,t,n,r,i,s){return El(e)&&El(t)&&(s.set(t,e),co(e,t,o,Ls,s),s["delete"](t)),e}function Us(e){return Ul(e)?o:e}function xs(e,t,n,r,i,s){var a=n&y,c=e.length,u=t.length;if(c!=u&&!(a&&u>c))return!1;var l=s.get(e),f=s.get(t);if(l&&f)return l==t&&f==e;var h=-1,d=!0,p=n&m?new Wr:o;s.set(e,t),s.set(t,e);while(++h<c){var g=e[h],v=t[h];if(r)var I=a?r(v,g,h,t,e,s):r(g,v,h,e,t,s);if(I!==o){if(I)continue;d=!1;break}if(p){if(!Dn(t,(function(e,t){if(!Jn(p,t)&&(g===e||i(g,e,n,r,s)))return p.push(t)}))){d=!1;break}}else if(g!==v&&!i(g,v,n,r,s)){d=!1;break}}return s["delete"](e),s["delete"](t),d}function Ps(e,t,n,r,i,o,s){switch(n){case de:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case he:return!(e.byteLength!=t.byteLength||!o(new _t(e),new _t(t)));case $:case K:case ee:return il(+e,+t);case q:return e.name==t.name&&e.message==t.message;case oe:case ae:return e==t+"";case X:var a=ur;case se:var c=r&y;if(a||(a=hr),e.size!=t.size&&!c)return!1;var u=s.get(e);if(u)return u==t;r|=m,s.set(e,t);var l=xs(a(e),a(t),r,i,o,s);return s["delete"](e),l;case ce:if(pr)return pr.call(e)==pr.call(t)}return!1}function js(e,t,n,r,i,s){var a=n&y,c=zs(e),u=c.length,l=zs(t),f=l.length;if(u!=f&&!a)return!1;var h=u;while(h--){var d=c[h];if(!(a?d in t:ft.call(t,d)))return!1}var p=s.get(e),g=s.get(t);if(p&&g)return p==t&&g==e;var v=!0;s.set(e,t),s.set(t,e);var m=a;while(++h<u){d=c[h];var I=e[d],_=t[d];if(r)var T=a?r(_,I,d,t,e,s):r(I,_,d,e,t,s);if(!(T===o?I===_||i(I,_,n,r,s):T)){v=!1;break}m||(m="constructor"==d)}if(v&&!m){var C=e.constructor,M=t.constructor;C==M||!("constructor"in e)||!("constructor"in t)||"function"==typeof C&&C instanceof C&&"function"==typeof M&&M instanceof M||(v=!1)}return s["delete"](e),s["delete"](t),v}function ks(e){return Sa(_a(e,o,Ka),e+"")}function zs(e){return xi(e,Mf,Ws)}function Gs(e){return xi(e,Ef,qs)}var Bs=an?function(e){return an.get(e)}:zh;function Vs(e){var t=e.name+"",n=un[t],r=ft.call(un,t)?n.length:0;while(r--){var i=n[r],o=i.func;if(null==o||o==e)return i.name}return t}function Ys(e){var t=ft.call(Tr,"placeholder")?Tr:e;return t.placeholder}function Hs(){var e=Tr.iteratee||Dh;return e=e===Dh?to:e,arguments.length?e(arguments[0],arguments[1]):e}function Fs(e,t){var n=e.__data__;return ua(t)?n["string"==typeof t?"string":"hash"]:n.map}function Qs(e){var t=Mf(e),n=t.length;while(n--){var r=t[n],i=e[r];t[n]=[r,i,pa(i)]}return t}function $s(e,t){var n=or(e,t);return Zi(n)?n:o}function Ks(e){var t=ft.call(e,bt),n=e[bt];try{e[bt]=o;var r=!0}catch(s){}var i=pt.call(e);return r&&(t?e[bt]=n:delete e[bt]),i}var Ws=xt?function(e){return null==e?[]:(e=nt(e),An(xt(e),(function(t){return Et.call(e,t)})))}:Kh,qs=xt?function(e){var t=[];while(e)wn(t,Ws(e)),e=Ct(e);return t}:Kh,Zs=Pi;function Js(e,t,n){var r=-1,i=n.length;while(++r<i){var o=n[r],s=o.size;switch(o.type){case"drop":e+=s;break;case"dropRight":t-=s;break;case"take":t=Bt(t,e+s);break;case"takeRight":e=Gt(e,t-s);break}}return{start:e,end:t}}function Xs(e){var t=e.match(Be);return t?t[1].split(Ve):[]}function ea(e,t,n){t=Ho(t,e);var r=-1,i=t.length,o=!1;while(++r<i){var s=Ra(t[r]);if(!(o=null!=e&&n(e,s)))break;e=e[s]}return o||++r!=i?o:(i=null==e?0:e.length,!!i&&Ml(i)&&sa(s,i)&&(cl(e)||al(e)))}function ta(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&ft.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function na(e){return"function"!=typeof e.constructor||da(e)?{}:Mr(Ct(e))}function ra(e,t,n){var r=e.constructor;switch(t){case he:return Wo(e);case $:case K:return new r(+e);case de:return qo(e,n);case pe:case ge:case ve:case ye:case me:case Ie:case _e:case Te:case Ce:return Xo(e,n);case X:return new r;case ee:case ae:return new r(e);case oe:return Zo(e);case se:return new r;case ce:return Jo(e)}}function ia(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(Ge,"{\n/* [wrapped with "+t+"] */\n")}function oa(e){return cl(e)||al(e)||!!(St&&e&&e[St])}function sa(e,t){var n=typeof e;return t=null==t?j:t,!!t&&("number"==n||"symbol"!=n&&Je.test(e))&&e>-1&&e%1==0&&e<t}function aa(e,t,n){if(!El(n))return!1;var r=typeof t;return!!("number"==r?ll(n)&&sa(t,n.length):"string"==r&&t in n)&&il(n[t],e)}function ca(e,t){if(cl(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!zl(e))||(Ue.test(e)||!Le.test(e)||null!=t&&e in nt(t))}function ua(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}function la(e){var t=Vs(e),n=Tr[t];if("function"!=typeof n||!(t in Nr.prototype))return!1;if(e===n)return!0;var r=Bs(n);return!!r&&e===r[0]}function fa(e){return!!dt&&dt in e}(Kt&&Zs(new Kt(new ArrayBuffer(1)))!=de||Xt&&Zs(new Xt)!=X||en&&Zs(en.resolve())!=re||tn&&Zs(new tn)!=se||nn&&Zs(new nn)!=le)&&(Zs=function(e){var t=Pi(e),n=t==ne?e.constructor:o,r=n?Da(n):"";if(r)switch(r){case ln:return de;case hn:return X;case dn:return re;case Ln:return se;case Un:return le}return t});var ha=ut?Tl:Wh;function da(e){var t=e&&e.constructor,n="function"==typeof t&&t.prototype||ct;return e===n}function pa(e){return e===e&&!El(e)}function ga(e,t){return function(n){return null!=n&&(n[e]===t&&(t!==o||e in nt(n)))}}function va(e){var t=Gu(e,(function(e){return n.size===h&&n.clear(),e})),n=t.cache;return t}function ya(e,t){var n=e[1],r=t[1],i=n|r,o=i<(I|_|S),s=r==S&&n==C||r==S&&n==N&&e[7].length<=t[8]||r==(S|N)&&t[7].length<=t[8]&&n==C;if(!o&&!s)return e;r&I&&(e[2]=t[2],i|=n&I?0:T);var a=t[3];if(a){var c=e[3];e[3]=c?ns(c,a,t[4]):a,e[4]=c?fr(e[3],d):t[4]}return a=t[5],a&&(c=e[5],e[5]=c?rs(c,a,t[6]):a,e[6]=c?fr(e[5],d):t[6]),a=t[7],a&&(e[7]=a),r&S&&(e[8]=null==e[8]?t[8]:Bt(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=i,e}function ma(e){var t=[];if(null!=e)for(var n in nt(e))t.push(n);return t}function Ia(e){return pt.call(e)}function _a(e,t,r){return t=Gt(t===o?e.length-1:t,0),function(){var i=arguments,o=-1,s=Gt(i.length-t,0),a=n(s);while(++o<s)a[o]=i[t+o];o=-1;var c=n(t+1);while(++o<t)c[o]=i[o];return c[t]=r(a),_n(e,this,c)}}function Ta(e,t){return t.length<2?e:Ui(e,bo(t,0,-1))}function Ca(e,t){var n=e.length,r=Bt(t.length,n),i=is(e);while(r--){var s=t[r];e[r]=sa(s,n)?i[s]:o}return e}function Ma(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}var Ea=ba(Ao),Aa=Dt||function(e,t){return cn.setTimeout(e,t)},Sa=ba(So);function Na(e,t,n){var r=t+"";return Sa(e,ia(r,La(Xs(r),n)))}function ba(e){var t=0,n=0;return function(){var r=Vt(),i=D-(r-n);if(n=r,i>0){if(++t>=R)return arguments[0]}else t=0;return e.apply(o,arguments)}}function wa(e,t){var n=-1,r=e.length,i=r-1;t=t===o?r:t;while(++n<t){var s=mo(n,i),a=e[s];e[s]=e[n],e[n]=a}return e.length=t,e}var Oa=va((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(xe,(function(e,n,r,i){t.push(r?i.replace(Fe,"$1"):n||e)})),t}));function Ra(e){if("string"==typeof e||zl(e))return e;var t=e+"";return"0"==t&&1/e==-P?"-0":t}function Da(e){if(null!=e){try{return lt.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function La(e,t){return Cn(Y,(function(n){var r="_."+n[0];t&n[1]&&!Sn(e,r)&&e.push(r)})),e.sort()}function Ua(e){if(e instanceof Nr)return e.clone();var t=new Sr(e.__wrapped__,e.__chain__);return t.__actions__=is(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function xa(e,t,r){t=(r?aa(e,t,r):t===o)?1:Gt(Kl(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];var s=0,a=0,c=n(Lt(i/t));while(s<i)c[a++]=bo(e,s,s+=t);return c}function Pa(e){var t=-1,n=null==e?0:e.length,r=0,i=[];while(++t<n){var o=e[t];o&&(i[r++]=o)}return i}function ja(){var e=arguments.length;if(!e)return[];var t=n(e-1),r=arguments[0],i=e;while(i--)t[i-1]=arguments[i];return wn(cl(r)?is(r):[r],bi(t,1))}var ka=To((function(e,t){return fl(e)?Ti(e,bi(t,1,fl,!0)):[]})),za=To((function(e,t){var n=oc(t);return fl(n)&&(n=o),fl(e)?Ti(e,bi(t,1,fl,!0),Hs(n,2)):[]})),Ga=To((function(e,t){var n=oc(t);return fl(n)&&(n=o),fl(e)?Ti(e,bi(t,1,fl,!0),o,n):[]}));function Ba(e,t,n){var r=null==e?0:e.length;return r?(t=n||t===o?1:Kl(t),bo(e,t<0?0:t,r)):[]}function Va(e,t,n){var r=null==e?0:e.length;return r?(t=n||t===o?1:Kl(t),t=r-t,bo(e,0,t<0?0:t)):[]}function Ya(e,t){return e&&e.length?ko(e,Hs(t,3),!0,!0):[]}function Ha(e,t){return e&&e.length?ko(e,Hs(t,3),!0):[]}function Fa(e,t,n,r){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&aa(e,t,n)&&(n=0,r=i),Si(e,t,n,r)):[]}function Qa(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:Kl(n);return i<0&&(i=Gt(r+i,0)),jn(e,Hs(t,3),i)}function $a(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return n!==o&&(i=Kl(n),i=n<0?Gt(r+i,0):Bt(i,r-1)),jn(e,Hs(t,3),i,!0)}function Ka(e){var t=null==e?0:e.length;return t?bi(e,1):[]}function Wa(e){var t=null==e?0:e.length;return t?bi(e,P):[]}function qa(e,t){var n=null==e?0:e.length;return n?(t=t===o?1:Kl(t),bi(e,t)):[]}function Za(e){var t=-1,n=null==e?0:e.length,r={};while(++t<n){var i=e[t];r[i[0]]=i[1]}return r}function Ja(e){return e&&e.length?e[0]:o}function Xa(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:Kl(n);return i<0&&(i=Gt(r+i,0)),kn(e,t,i)}function ec(e){var t=null==e?0:e.length;return t?bo(e,0,-1):[]}var tc=To((function(e){var t=bn(e,Vo);return t.length&&t[0]===e[0]?Bi(t):[]})),nc=To((function(e){var t=oc(e),n=bn(e,Vo);return t===oc(n)?t=o:n.pop(),n.length&&n[0]===e[0]?Bi(n,Hs(t,2)):[]})),rc=To((function(e){var t=oc(e),n=bn(e,Vo);return t="function"==typeof t?t:o,t&&n.pop(),n.length&&n[0]===e[0]?Bi(n,o,t):[]}));function ic(e,t){return null==e?"":kt.call(e,t)}function oc(e){var t=null==e?0:e.length;return t?e[t-1]:o}function sc(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return n!==o&&(i=Kl(n),i=i<0?Gt(r+i,0):Bt(i,r-1)),t===t?gr(e,t,i):jn(e,Gn,i,!0)}function ac(e,t){return e&&e.length?lo(e,Kl(t)):o}var cc=To(uc);function uc(e,t){return e&&e.length&&t&&t.length?vo(e,t):e}function lc(e,t,n){return e&&e.length&&t&&t.length?vo(e,t,Hs(n,2)):e}function fc(e,t,n){return e&&e.length&&t&&t.length?vo(e,t,o,n):e}var hc=ks((function(e,t){var n=null==e?0:e.length,r=gi(e,t);return yo(e,bn(t,(function(e){return sa(e,n)?+e:e})).sort(es)),r}));function dc(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],o=e.length;t=Hs(t,3);while(++r<o){var s=e[r];t(s,r,e)&&(n.push(s),i.push(r))}return yo(e,i),n}function pc(e){return null==e?e:$t.call(e)}function gc(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&aa(e,t,n)?(t=0,n=r):(t=null==t?0:Kl(t),n=n===o?r:Kl(n)),bo(e,t,n)):[]}function vc(e,t){return Oo(e,t)}function yc(e,t,n){return Ro(e,t,Hs(n,2))}function mc(e,t){var n=null==e?0:e.length;if(n){var r=Oo(e,t);if(r<n&&il(e[r],t))return r}return-1}function Ic(e,t){return Oo(e,t,!0)}function _c(e,t,n){return Ro(e,t,Hs(n,2),!0)}function Tc(e,t){var n=null==e?0:e.length;if(n){var r=Oo(e,t,!0)-1;if(il(e[r],t))return r}return-1}function Cc(e){return e&&e.length?Do(e):[]}function Mc(e,t){return e&&e.length?Do(e,Hs(t,2)):[]}function Ec(e){var t=null==e?0:e.length;return t?bo(e,1,t):[]}function Ac(e,t,n){return e&&e.length?(t=n||t===o?1:Kl(t),bo(e,0,t<0?0:t)):[]}function Sc(e,t,n){var r=null==e?0:e.length;return r?(t=n||t===o?1:Kl(t),t=r-t,bo(e,t<0?0:t,r)):[]}function Nc(e,t){return e&&e.length?ko(e,Hs(t,3),!1,!0):[]}function bc(e,t){return e&&e.length?ko(e,Hs(t,3)):[]}var wc=To((function(e){return xo(bi(e,1,fl,!0))})),Oc=To((function(e){var t=oc(e);return fl(t)&&(t=o),xo(bi(e,1,fl,!0),Hs(t,2))})),Rc=To((function(e){var t=oc(e);return t="function"==typeof t?t:o,xo(bi(e,1,fl,!0),o,t)}));function Dc(e){return e&&e.length?xo(e):[]}function Lc(e,t){return e&&e.length?xo(e,Hs(t,2)):[]}function Uc(e,t){return t="function"==typeof t?t:o,e&&e.length?xo(e,o,t):[]}function xc(e){if(!e||!e.length)return[];var t=0;return e=An(e,(function(e){if(fl(e))return t=Gt(e.length,t),!0})),$n(t,(function(t){return bn(e,Vn(t))}))}function Pc(e,t){if(!e||!e.length)return[];var n=xc(e);return null==t?n:bn(n,(function(e){return _n(t,o,e)}))}var jc=To((function(e,t){return fl(e)?Ti(e,t):[]})),kc=To((function(e){return Go(An(e,fl))})),zc=To((function(e){var t=oc(e);return fl(t)&&(t=o),Go(An(e,fl),Hs(t,2))})),Gc=To((function(e){var t=oc(e);return t="function"==typeof t?t:o,Go(An(e,fl),o,t)})),Bc=To(xc);function Vc(e,t){return Bo(e||[],t||[],ui)}function Yc(e,t){return Bo(e||[],t||[],Eo)}var Hc=To((function(e){var t=e.length,n=t>1?e[t-1]:o;return n="function"==typeof n?(e.pop(),n):o,Pc(e,n)}));function Fc(e){var t=Tr(e);return t.__chain__=!0,t}function Qc(e,t){return t(e),e}function $c(e,t){return t(e)}var Kc=ks((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return gi(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Nr&&sa(n)?(r=r.slice(n,+n+(t?1:0)),r.__actions__.push({func:$c,args:[i],thisArg:o}),new Sr(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(o),e}))):this.thru(i)}));function Wc(){return Fc(this)}function qc(){return new Sr(this.value(),this.__chain__)}function Zc(){this.__values__===o&&(this.__values__=Ql(this.value()));var e=this.__index__>=this.__values__.length,t=e?o:this.__values__[this.__index__++];return{done:e,value:t}}function Jc(){return this}function Xc(e){var t,n=this;while(n instanceof Ar){var r=Ua(n);r.__index__=0,r.__values__=o,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t}function eu(){var e=this.__wrapped__;if(e instanceof Nr){var t=e;return this.__actions__.length&&(t=new Nr(this)),t=t.reverse(),t.__actions__.push({func:$c,args:[pc],thisArg:o}),new Sr(t,this.__chain__)}return this.thru(pc)}function tu(){return zo(this.__wrapped__,this.__actions__)}var nu=cs((function(e,t,n){ft.call(e,n)?++e[n]:pi(e,n,1)}));function ru(e,t,n){var r=cl(e)?En:Ei;return n&&aa(e,t,n)&&(t=o),r(e,Hs(t,3))}function iu(e,t){var n=cl(e)?An:Ni;return n(e,Hs(t,3))}var ou=ys(Qa),su=ys($a);function au(e,t){return bi(vu(e,t),1)}function cu(e,t){return bi(vu(e,t),P)}function uu(e,t,n){return n=n===o?1:Kl(n),bi(vu(e,t),n)}function lu(e,t){var n=cl(e)?Cn:Ci;return n(e,Hs(t,3))}function fu(e,t){var n=cl(e)?Mn:Mi;return n(e,Hs(t,3))}var hu=cs((function(e,t,n){ft.call(e,n)?e[n].push(t):pi(e,n,[t])}));function du(e,t,n,r){e=ll(e)?e:Vf(e),n=n&&!r?Kl(n):0;var i=e.length;return n<0&&(n=Gt(i+n,0)),kl(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&kn(e,t,n)>-1}var pu=To((function(e,t,r){var i=-1,o="function"==typeof t,s=ll(e)?n(e.length):[];return Ci(e,(function(e){s[++i]=o?_n(t,e,r):Yi(e,t,r)})),s})),gu=cs((function(e,t,n){pi(e,n,t)}));function vu(e,t){var n=cl(e)?bn:oo;return n(e,Hs(t,3))}function yu(e,t,n,r){return null==e?[]:(cl(t)||(t=null==t?[]:[t]),n=r?o:n,cl(n)||(n=null==n?[]:[n]),fo(e,t,n))}var mu=cs((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));function Iu(e,t,n){var r=cl(e)?On:Hn,i=arguments.length<3;return r(e,Hs(t,4),n,i,Ci)}function _u(e,t,n){var r=cl(e)?Rn:Hn,i=arguments.length<3;return r(e,Hs(t,4),n,i,Mi)}function Tu(e,t){var n=cl(e)?An:Ni;return n(e,Bu(Hs(t,3)))}function Cu(e){var t=cl(e)?oi:Co;return t(e)}function Mu(e,t,n){t=(n?aa(e,t,n):t===o)?1:Kl(t);var r=cl(e)?si:Mo;return r(e,t)}function Eu(e){var t=cl(e)?ai:No;return t(e)}function Au(e){if(null==e)return 0;if(ll(e))return kl(e)?vr(e):e.length;var t=Zs(e);return t==X||t==se?e.size:no(e).length}function Su(e,t,n){var r=cl(e)?Dn:wo;return n&&aa(e,t,n)&&(t=o),r(e,Hs(t,3))}var Nu=To((function(e,t){if(null==e)return[];var n=t.length;return n>1&&aa(e,t[0],t[1])?t=[]:n>2&&aa(t[0],t[1],t[2])&&(t=[t[0]]),fo(e,bi(t,1),[])})),bu=Rt||function(){return cn.Date.now()};function wu(e,t){if("function"!=typeof t)throw new ot(u);return e=Kl(e),function(){if(--e<1)return t.apply(this,arguments)}}function Ou(e,t,n){return t=n?o:t,t=e&&null==t?e.length:t,Rs(e,S,o,o,o,o,t)}function Ru(e,t){var n;if("function"!=typeof t)throw new ot(u);return e=Kl(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=o),n}}var Du=To((function(e,t,n){var r=I;if(n.length){var i=fr(n,Ys(Du));r|=E}return Rs(e,r,t,n,i)})),Lu=To((function(e,t,n){var r=I|_;if(n.length){var i=fr(n,Ys(Lu));r|=E}return Rs(t,r,e,n,i)}));function Uu(e,t,n){t=n?o:t;var r=Rs(e,C,o,o,o,o,o,t);return r.placeholder=Uu.placeholder,r}function xu(e,t,n){t=n?o:t;var r=Rs(e,M,o,o,o,o,o,t);return r.placeholder=xu.placeholder,r}function Pu(e,t,n){var r,i,s,a,c,l,f=0,h=!1,d=!1,p=!0;if("function"!=typeof e)throw new ot(u);function g(t){var n=r,s=i;return r=i=o,f=t,a=e.apply(s,n),a}function v(e){return f=e,c=Aa(I,t),h?g(e):a}function y(e){var n=e-l,r=e-f,i=t-n;return d?Bt(i,s-r):i}function m(e){var n=e-l,r=e-f;return l===o||n>=t||n<0||d&&r>=s}function I(){var e=bu();if(m(e))return _(e);c=Aa(I,y(e))}function _(e){return c=o,p&&r?g(e):(r=i=o,a)}function T(){c!==o&&$o(c),f=0,r=l=i=c=o}function C(){return c===o?a:_(bu())}function M(){var e=bu(),n=m(e);if(r=arguments,i=this,l=e,n){if(c===o)return v(l);if(d)return $o(c),c=Aa(I,t),g(l)}return c===o&&(c=Aa(I,t)),a}return t=ql(t)||0,El(n)&&(h=!!n.leading,d="maxWait"in n,s=d?Gt(ql(n.maxWait)||0,t):s,p="trailing"in n?!!n.trailing:p),M.cancel=T,M.flush=C,M}var ju=To((function(e,t){return _i(e,1,t)})),ku=To((function(e,t,n){return _i(e,ql(t)||0,n)}));function zu(e){return Rs(e,b)}function Gu(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new ot(u);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=e.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(Gu.Cache||Yr),n}function Bu(e){if("function"!=typeof e)throw new ot(u);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Vu(e){return Ru(2,e)}Gu.Cache=Yr;var Yu=Fo((function(e,t){t=1==t.length&&cl(t[0])?bn(t[0],qn(Hs())):bn(bi(t,1),qn(Hs()));var n=t.length;return To((function(r){var i=-1,o=Bt(r.length,n);while(++i<o)r[i]=t[i].call(this,r[i]);return _n(e,this,r)}))})),Hu=To((function(e,t){var n=fr(t,Ys(Hu));return Rs(e,E,o,t,n)})),Fu=To((function(e,t){var n=fr(t,Ys(Fu));return Rs(e,A,o,t,n)})),Qu=ks((function(e,t){return Rs(e,N,o,o,o,t)}));function $u(e,t){if("function"!=typeof e)throw new ot(u);return t=t===o?t:Kl(t),To(e,t)}function Ku(e,t){if("function"!=typeof e)throw new ot(u);return t=null==t?0:Gt(Kl(t),0),To((function(n){var r=n[t],i=Qo(n,0,t);return r&&wn(i,r),_n(e,this,i)}))}function Wu(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new ot(u);return El(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Pu(e,t,{leading:r,maxWait:t,trailing:i})}function qu(e){return Ou(e,1)}function Zu(e,t){return Hu(Yo(t),e)}function Ju(){if(!arguments.length)return[];var e=arguments[0];return cl(e)?e:[e]}function Xu(e){return yi(e,v)}function el(e,t){return t="function"==typeof t?t:o,yi(e,v,t)}function tl(e){return yi(e,p|v)}function nl(e,t){return t="function"==typeof t?t:o,yi(e,p|v,t)}function rl(e,t){return null==t||Ii(e,t,Mf(t))}function il(e,t){return e===t||e!==e&&t!==t}var ol=Ss(ji),sl=Ss((function(e,t){return e>=t})),al=Hi(function(){return arguments}())?Hi:function(e){return Al(e)&&ft.call(e,"callee")&&!Et.call(e,"callee")},cl=n.isArray,ul=pn?qn(pn):Fi;function ll(e){return null!=e&&Ml(e.length)&&!Tl(e)}function fl(e){return Al(e)&&ll(e)}function hl(e){return!0===e||!1===e||Al(e)&&Pi(e)==$}var dl=Pt||Wh,pl=gn?qn(gn):Qi;function gl(e){return Al(e)&&1===e.nodeType&&!Ul(e)}function vl(e){if(null==e)return!0;if(ll(e)&&(cl(e)||"string"==typeof e||"function"==typeof e.splice||dl(e)||Gl(e)||al(e)))return!e.length;var t=Zs(e);if(t==X||t==se)return!e.size;if(da(e))return!no(e).length;for(var n in e)if(ft.call(e,n))return!1;return!0}function yl(e,t){return $i(e,t)}function ml(e,t,n){n="function"==typeof n?n:o;var r=n?n(e,t):o;return r===o?$i(e,t,o,n):!!r}function Il(e){if(!Al(e))return!1;var t=Pi(e);return t==q||t==W||"string"==typeof e.message&&"string"==typeof e.name&&!Ul(e)}function _l(e){return"number"==typeof e&&jt(e)}function Tl(e){if(!El(e))return!1;var t=Pi(e);return t==Z||t==J||t==Q||t==ie}function Cl(e){return"number"==typeof e&&e==Kl(e)}function Ml(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=j}function El(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Al(e){return null!=e&&"object"==typeof e}var Sl=vn?qn(vn):Wi;function Nl(e,t){return e===t||qi(e,t,Qs(t))}function bl(e,t,n){return n="function"==typeof n?n:o,qi(e,t,Qs(t),n)}function wl(e){return Ll(e)&&e!=+e}function Ol(e){if(ha(e))throw new i(c);return Zi(e)}function Rl(e){return null===e}function Dl(e){return null==e}function Ll(e){return"number"==typeof e||Al(e)&&Pi(e)==ee}function Ul(e){if(!Al(e)||Pi(e)!=ne)return!1;var t=Ct(e);if(null===t)return!0;var n=ft.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&<.call(n)==gt}var xl=yn?qn(yn):Ji;function Pl(e){return Cl(e)&&e>=-j&&e<=j}var jl=mn?qn(mn):Xi;function kl(e){return"string"==typeof e||!cl(e)&&Al(e)&&Pi(e)==ae}function zl(e){return"symbol"==typeof e||Al(e)&&Pi(e)==ce}var Gl=In?qn(In):eo;function Bl(e){return e===o}function Vl(e){return Al(e)&&Zs(e)==le}function Yl(e){return Al(e)&&Pi(e)==fe}var Hl=Ss(io),Fl=Ss((function(e,t){return e<=t}));function Ql(e){if(!e)return[];if(ll(e))return kl(e)?yr(e):is(e);if(Nt&&e[Nt])return cr(e[Nt]());var t=Zs(e),n=t==X?ur:t==se?hr:Vf;return n(e)}function $l(e){if(!e)return 0===e?e:0;if(e=ql(e),e===P||e===-P){var t=e<0?-1:1;return t*k}return e===e?e:0}function Kl(e){var t=$l(e),n=t%1;return t===t?n?t-n:t:0}function Wl(e){return e?vi(Kl(e),0,G):0}function ql(e){if("number"==typeof e)return e;if(zl(e))return z;if(El(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=El(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Wn(e);var n=We.test(e);return n||Ze.test(e)?on(e.slice(2),n?2:8):Ke.test(e)?z:+e}function Zl(e){return os(e,Ef(e))}function Jl(e){return e?vi(Kl(e),-j,j):0===e?e:0}function Xl(e){return null==e?"":Uo(e)}var ef=us((function(e,t){if(da(t)||ll(t))os(t,Mf(t),e);else for(var n in t)ft.call(t,n)&&ui(e,n,t[n])})),tf=us((function(e,t){os(t,Ef(t),e)})),nf=us((function(e,t,n,r){os(t,Ef(t),e,r)})),rf=us((function(e,t,n,r){os(t,Mf(t),e,r)})),of=ks(gi);function sf(e,t){var n=Mr(e);return null==t?n:hi(n,t)}var af=To((function(e,t){e=nt(e);var n=-1,r=t.length,i=r>2?t[2]:o;i&&aa(t[0],t[1],i)&&(r=1);while(++n<r){var s=t[n],a=Ef(s),c=-1,u=a.length;while(++c<u){var l=a[c],f=e[l];(f===o||il(f,ct[l])&&!ft.call(e,l))&&(e[l]=s[l])}}return e})),cf=To((function(e){return e.push(o,Ls),_n(bf,o,e)}));function uf(e,t){return Pn(e,Hs(t,3),Ri)}function lf(e,t){return Pn(e,Hs(t,3),Di)}function ff(e,t){return null==e?e:wi(e,Hs(t,3),Ef)}function hf(e,t){return null==e?e:Oi(e,Hs(t,3),Ef)}function df(e,t){return e&&Ri(e,Hs(t,3))}function pf(e,t){return e&&Di(e,Hs(t,3))}function gf(e){return null==e?[]:Li(e,Mf(e))}function vf(e){return null==e?[]:Li(e,Ef(e))}function yf(e,t,n){var r=null==e?o:Ui(e,t);return r===o?n:r}function mf(e,t){return null!=e&&ea(e,t,ki)}function If(e,t){return null!=e&&ea(e,t,zi)}var _f=_s((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=pt.call(t)),e[t]=n}),Nh(Rh)),Tf=_s((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=pt.call(t)),ft.call(e,t)?e[t].push(n):e[t]=[n]}),Hs),Cf=To(Yi);function Mf(e){return ll(e)?ii(e):no(e)}function Ef(e){return ll(e)?ii(e,!0):ro(e)}function Af(e,t){var n={};return t=Hs(t,3),Ri(e,(function(e,r,i){pi(n,t(e,r,i),e)})),n}function Sf(e,t){var n={};return t=Hs(t,3),Ri(e,(function(e,r,i){pi(n,r,t(e,r,i))})),n}var Nf=us((function(e,t,n){co(e,t,n)})),bf=us((function(e,t,n,r){co(e,t,n,r)})),wf=ks((function(e,t){var n={};if(null==e)return n;var r=!1;t=bn(t,(function(t){return t=Ho(t,e),r||(r=t.length>1),t})),os(e,Gs(e),n),r&&(n=yi(n,p|g|v,Us));var i=t.length;while(i--)Po(n,t[i]);return n}));function Of(e,t){return Df(e,Bu(Hs(t)))}var Rf=ks((function(e,t){return null==e?{}:ho(e,t)}));function Df(e,t){if(null==e)return{};var n=bn(Gs(e),(function(e){return[e]}));return t=Hs(t),po(e,n,(function(e,n){return t(e,n[0])}))}function Lf(e,t,n){t=Ho(t,e);var r=-1,i=t.length;i||(i=1,e=o);while(++r<i){var s=null==e?o:e[Ra(t[r])];s===o&&(r=i,s=n),e=Tl(s)?s.call(e):s}return e}function Uf(e,t,n){return null==e?e:Eo(e,t,n)}function xf(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:Eo(e,t,n,r)}var Pf=Os(Mf),jf=Os(Ef);function kf(e,t,n){var r=cl(e),i=r||dl(e)||Gl(e);if(t=Hs(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:El(e)&&Tl(o)?Mr(Ct(e)):{}}return(i?Cn:Ri)(e,(function(e,r,i){return t(n,e,r,i)})),n}function zf(e,t){return null==e||Po(e,t)}function Gf(e,t,n){return null==e?e:jo(e,t,Yo(n))}function Bf(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:jo(e,t,Yo(n),r)}function Vf(e){return null==e?[]:Zn(e,Mf(e))}function Yf(e){return null==e?[]:Zn(e,Ef(e))}function Hf(e,t,n){return n===o&&(n=t,t=o),n!==o&&(n=ql(n),n=n===n?n:0),t!==o&&(t=ql(t),t=t===t?t:0),vi(ql(e),t,n)}function Ff(e,t,n){return t=$l(t),n===o?(n=t,t=0):n=$l(n),e=ql(e),Gi(e,t,n)}function Qf(e,t,n){if(n&&"boolean"!=typeof n&&aa(e,t,n)&&(t=n=o),n===o&&("boolean"==typeof t?(n=t,t=o):"boolean"==typeof e&&(n=e,e=o)),e===o&&t===o?(e=0,t=1):(e=$l(e),t===o?(t=e,e=0):t=$l(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var i=Qt();return Bt(e+i*(t-e+rn("1e-"+((i+"").length-1))),t)}return mo(e,t)}var $f=ps((function(e,t,n){return t=t.toLowerCase(),e+(n?Kf(t):t)}));function Kf(e){return Th(Xl(e).toLowerCase())}function Wf(e){return e=Xl(e),e&&e.replace(Xe,nr).replace(Ht,"")}function qf(e,t,n){e=Xl(e),t=Uo(t);var r=e.length;n=n===o?r:vi(Kl(n),0,r);var i=n;return n-=t.length,n>=0&&e.slice(n,i)==t}function Zf(e){return e=Xl(e),e&&we.test(e)?e.replace(Ne,rr):e}function Jf(e){return e=Xl(e),e&&je.test(e)?e.replace(Pe,"\\$&"):e}var Xf=ps((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),eh=ps((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),th=ds("toLowerCase");function nh(e,t,n){e=Xl(e),t=Kl(t);var r=t?vr(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Ms(Ut(i),n)+e+Ms(Lt(i),n)}function rh(e,t,n){e=Xl(e),t=Kl(t);var r=t?vr(e):0;return t&&r<t?e+Ms(t-r,n):e}function ih(e,t,n){e=Xl(e),t=Kl(t);var r=t?vr(e):0;return t&&r<t?Ms(t-r,n)+e:e}function oh(e,t,n){return n||null==t?t=0:t&&(t=+t),Ft(Xl(e).replace(ke,""),t||0)}function sh(e,t,n){return t=(n?aa(e,t,n):t===o)?1:Kl(t),_o(Xl(e),t)}function ah(){var e=arguments,t=Xl(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var ch=ps((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));function uh(e,t,n){return n&&"number"!=typeof n&&aa(e,t,n)&&(t=n=o),n=n===o?G:n>>>0,n?(e=Xl(e),e&&("string"==typeof t||null!=t&&!xl(t))&&(t=Uo(t),!t&&sr(e))?Qo(yr(e),0,n):e.split(t,n)):[]}var lh=ps((function(e,t,n){return e+(n?" ":"")+Th(t)}));function fh(e,t,n){return e=Xl(e),n=null==n?0:vi(Kl(n),0,e.length),t=Uo(t),e.slice(n,n+t.length)==t}function hh(e,t,n){var r=Tr.templateSettings;n&&aa(e,t,n)&&(t=o),e=Xl(e),t=nf({},t,r,Ds);var s,a,c=nf({},t.imports,r.imports,Ds),u=Mf(c),f=Zn(c,u),h=0,d=t.interpolate||et,p="__p += '",g=rt((t.escape||et).source+"|"+d.source+"|"+(d===De?Qe:et).source+"|"+(t.evaluate||et).source+"|$","g"),v="//# sourceURL="+(ft.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++qt+"]")+"\n";e.replace(g,(function(t,n,r,i,o,c){return r||(r=i),p+=e.slice(h,c).replace(tt,ir),n&&(s=!0,p+="' +\n__e("+n+") +\n'"),o&&(a=!0,p+="';\n"+o+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),h=c+t.length,t})),p+="';\n";var y=ft.call(t,"variable")&&t.variable;if(y){if(He.test(y))throw new i(l)}else p="with (obj) {\n"+p+"\n}\n";p=(a?p.replace(Me,""):p).replace(Ee,"$1").replace(Ae,"$1;"),p="function("+(y||"obj")+") {\n"+(y?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(s?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var m=Mh((function(){return ze(u,v+"return "+p).apply(o,f)}));if(m.source=p,Il(m))throw m;return m}function dh(e){return Xl(e).toLowerCase()}function ph(e){return Xl(e).toUpperCase()}function gh(e,t,n){if(e=Xl(e),e&&(n||t===o))return Wn(e);if(!e||!(t=Uo(t)))return e;var r=yr(e),i=yr(t),s=Xn(r,i),a=er(r,i)+1;return Qo(r,s,a).join("")}function vh(e,t,n){if(e=Xl(e),e&&(n||t===o))return e.slice(0,mr(e)+1);if(!e||!(t=Uo(t)))return e;var r=yr(e),i=er(r,yr(t))+1;return Qo(r,0,i).join("")}function yh(e,t,n){if(e=Xl(e),e&&(n||t===o))return e.replace(ke,"");if(!e||!(t=Uo(t)))return e;var r=yr(e),i=Xn(r,yr(t));return Qo(r,i).join("")}function mh(e,t){var n=w,r=O;if(El(t)){var i="separator"in t?t.separator:i;n="length"in t?Kl(t.length):n,r="omission"in t?Uo(t.omission):r}e=Xl(e);var s=e.length;if(sr(e)){var a=yr(e);s=a.length}if(n>=s)return e;var c=n-vr(r);if(c<1)return r;var u=a?Qo(a,0,c).join(""):e.slice(0,c);if(i===o)return u+r;if(a&&(c+=u.length-c),xl(i)){if(e.slice(c).search(i)){var l,f=u;i.global||(i=rt(i.source,Xl($e.exec(i))+"g")),i.lastIndex=0;while(l=i.exec(f))var h=l.index;u=u.slice(0,h===o?c:h)}}else if(e.indexOf(Uo(i),c)!=c){var d=u.lastIndexOf(i);d>-1&&(u=u.slice(0,d))}return u+r}function Ih(e){return e=Xl(e),e&&be.test(e)?e.replace(Se,Ir):e}var _h=ps((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Th=ds("toUpperCase");function Ch(e,t,n){return e=Xl(e),t=n?o:t,t===o?ar(e)?Cr(e):xn(e):e.match(t)||[]}var Mh=To((function(e,t){try{return _n(e,o,t)}catch(n){return Il(n)?n:new i(n)}})),Eh=ks((function(e,t){return Cn(t,(function(t){t=Ra(t),pi(e,t,Du(e[t],e))})),e}));function Ah(e){var t=null==e?0:e.length,n=Hs();return e=t?bn(e,(function(e){if("function"!=typeof e[1])throw new ot(u);return[n(e[0]),e[1]]})):[],To((function(n){var r=-1;while(++r<t){var i=e[r];if(_n(i[0],this,n))return _n(i[1],this,n)}}))}function Sh(e){return mi(yi(e,p))}function Nh(e){return function(){return e}}function bh(e,t){return null==e||e!==e?t:e}var wh=ms(),Oh=ms(!0);function Rh(e){return e}function Dh(e){return to("function"==typeof e?e:yi(e,p))}function Lh(e){return so(yi(e,p))}function Uh(e,t){return ao(e,yi(t,p))}var xh=To((function(e,t){return function(n){return Yi(n,e,t)}})),Ph=To((function(e,t){return function(n){return Yi(e,n,t)}}));function jh(e,t,n){var r=Mf(t),i=Li(t,r);null!=n||El(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=Li(t,Mf(t)));var o=!(El(n)&&"chain"in n)||!!n.chain,s=Tl(e);return Cn(i,(function(n){var r=t[n];e[n]=r,s&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__),i=n.__actions__=is(this.__actions__);return i.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,wn([this.value()],arguments))})})),e}function kh(){return cn._===this&&(cn._=vt),this}function zh(){}function Gh(e){return e=Kl(e),To((function(t){return lo(t,e)}))}var Bh=Cs(bn),Vh=Cs(En),Yh=Cs(Dn);function Hh(e){return ca(e)?Vn(Ra(e)):go(e)}function Fh(e){return function(t){return null==e?o:Ui(e,t)}}var Qh=As(),$h=As(!0);function Kh(){return[]}function Wh(){return!1}function qh(){return{}}function Zh(){return""}function Jh(){return!0}function Xh(e,t){if(e=Kl(e),e<1||e>j)return[];var n=G,r=Bt(e,G);t=Hs(t),e-=G;var i=$n(r,t);while(++n<e)t(n);return i}function ed(e){return cl(e)?bn(e,Ra):zl(e)?[e]:is(Oa(Xl(e)))}function td(e){var t=++ht;return Xl(e)+t}var nd=Ts((function(e,t){return e+t}),0),rd=bs("ceil"),id=Ts((function(e,t){return e/t}),1),od=bs("floor");function sd(e){return e&&e.length?Ai(e,Rh,ji):o}function ad(e,t){return e&&e.length?Ai(e,Hs(t,2),ji):o}function cd(e){return Bn(e,Rh)}function ud(e,t){return Bn(e,Hs(t,2))}function ld(e){return e&&e.length?Ai(e,Rh,io):o}function fd(e,t){return e&&e.length?Ai(e,Hs(t,2),io):o}var hd=Ts((function(e,t){return e*t}),1),dd=bs("round"),pd=Ts((function(e,t){return e-t}),0);function gd(e){return e&&e.length?Qn(e,Rh):0}function vd(e,t){return e&&e.length?Qn(e,Hs(t,2)):0}return Tr.after=wu,Tr.ary=Ou,Tr.assign=ef,Tr.assignIn=tf,Tr.assignInWith=nf,Tr.assignWith=rf,Tr.at=of,Tr.before=Ru,Tr.bind=Du,Tr.bindAll=Eh,Tr.bindKey=Lu,Tr.castArray=Ju,Tr.chain=Fc,Tr.chunk=xa,Tr.compact=Pa,Tr.concat=ja,Tr.cond=Ah,Tr.conforms=Sh,Tr.constant=Nh,Tr.countBy=nu,Tr.create=sf,Tr.curry=Uu,Tr.curryRight=xu,Tr.debounce=Pu,Tr.defaults=af,Tr.defaultsDeep=cf,Tr.defer=ju,Tr.delay=ku,Tr.difference=ka,Tr.differenceBy=za,Tr.differenceWith=Ga,Tr.drop=Ba,Tr.dropRight=Va,Tr.dropRightWhile=Ya,Tr.dropWhile=Ha,Tr.fill=Fa,Tr.filter=iu,Tr.flatMap=au,Tr.flatMapDeep=cu,Tr.flatMapDepth=uu,Tr.flatten=Ka,Tr.flattenDeep=Wa,Tr.flattenDepth=qa,Tr.flip=zu,Tr.flow=wh,Tr.flowRight=Oh,Tr.fromPairs=Za,Tr.functions=gf,Tr.functionsIn=vf,Tr.groupBy=hu,Tr.initial=ec,Tr.intersection=tc,Tr.intersectionBy=nc,Tr.intersectionWith=rc,Tr.invert=_f,Tr.invertBy=Tf,Tr.invokeMap=pu,Tr.iteratee=Dh,Tr.keyBy=gu,Tr.keys=Mf,Tr.keysIn=Ef,Tr.map=vu,Tr.mapKeys=Af,Tr.mapValues=Sf,Tr.matches=Lh,Tr.matchesProperty=Uh,Tr.memoize=Gu,Tr.merge=Nf,Tr.mergeWith=bf,Tr.method=xh,Tr.methodOf=Ph,Tr.mixin=jh,Tr.negate=Bu,Tr.nthArg=Gh,Tr.omit=wf,Tr.omitBy=Of,Tr.once=Vu,Tr.orderBy=yu,Tr.over=Bh,Tr.overArgs=Yu,Tr.overEvery=Vh,Tr.overSome=Yh,Tr.partial=Hu,Tr.partialRight=Fu,Tr.partition=mu,Tr.pick=Rf,Tr.pickBy=Df,Tr.property=Hh,Tr.propertyOf=Fh,Tr.pull=cc,Tr.pullAll=uc,Tr.pullAllBy=lc,Tr.pullAllWith=fc,Tr.pullAt=hc,Tr.range=Qh,Tr.rangeRight=$h,Tr.rearg=Qu,Tr.reject=Tu,Tr.remove=dc,Tr.rest=$u,Tr.reverse=pc,Tr.sampleSize=Mu,Tr.set=Uf,Tr.setWith=xf,Tr.shuffle=Eu,Tr.slice=gc,Tr.sortBy=Nu,Tr.sortedUniq=Cc,Tr.sortedUniqBy=Mc,Tr.split=uh,Tr.spread=Ku,Tr.tail=Ec,Tr.take=Ac,Tr.takeRight=Sc,Tr.takeRightWhile=Nc,Tr.takeWhile=bc,Tr.tap=Qc,Tr.throttle=Wu,Tr.thru=$c,Tr.toArray=Ql,Tr.toPairs=Pf,Tr.toPairsIn=jf,Tr.toPath=ed,Tr.toPlainObject=Zl,Tr.transform=kf,Tr.unary=qu,Tr.union=wc,Tr.unionBy=Oc,Tr.unionWith=Rc,Tr.uniq=Dc,Tr.uniqBy=Lc,Tr.uniqWith=Uc,Tr.unset=zf,Tr.unzip=xc,Tr.unzipWith=Pc,Tr.update=Gf,Tr.updateWith=Bf,Tr.values=Vf,Tr.valuesIn=Yf,Tr.without=jc,Tr.words=Ch,Tr.wrap=Zu,Tr.xor=kc,Tr.xorBy=zc,Tr.xorWith=Gc,Tr.zip=Bc,Tr.zipObject=Vc,Tr.zipObjectDeep=Yc,Tr.zipWith=Hc,Tr.entries=Pf,Tr.entriesIn=jf,Tr.extend=tf,Tr.extendWith=nf,jh(Tr,Tr),Tr.add=nd,Tr.attempt=Mh,Tr.camelCase=$f,Tr.capitalize=Kf,Tr.ceil=rd,Tr.clamp=Hf,Tr.clone=Xu,Tr.cloneDeep=tl,Tr.cloneDeepWith=nl,Tr.cloneWith=el,Tr.conformsTo=rl,Tr.deburr=Wf,Tr.defaultTo=bh,Tr.divide=id,Tr.endsWith=qf,Tr.eq=il,Tr.escape=Zf,Tr.escapeRegExp=Jf,Tr.every=ru,Tr.find=ou,Tr.findIndex=Qa,Tr.findKey=uf,Tr.findLast=su,Tr.findLastIndex=$a,Tr.findLastKey=lf,Tr.floor=od,Tr.forEach=lu,Tr.forEachRight=fu,Tr.forIn=ff,Tr.forInRight=hf,Tr.forOwn=df,Tr.forOwnRight=pf,Tr.get=yf,Tr.gt=ol,Tr.gte=sl,Tr.has=mf,Tr.hasIn=If,Tr.head=Ja,Tr.identity=Rh,Tr.includes=du,Tr.indexOf=Xa,Tr.inRange=Ff,Tr.invoke=Cf,Tr.isArguments=al,Tr.isArray=cl,Tr.isArrayBuffer=ul,Tr.isArrayLike=ll,Tr.isArrayLikeObject=fl,Tr.isBoolean=hl,Tr.isBuffer=dl,Tr.isDate=pl,Tr.isElement=gl,Tr.isEmpty=vl,Tr.isEqual=yl,Tr.isEqualWith=ml,Tr.isError=Il,Tr.isFinite=_l,Tr.isFunction=Tl,Tr.isInteger=Cl,Tr.isLength=Ml,Tr.isMap=Sl,Tr.isMatch=Nl,Tr.isMatchWith=bl,Tr.isNaN=wl,Tr.isNative=Ol,Tr.isNil=Dl,Tr.isNull=Rl,Tr.isNumber=Ll,Tr.isObject=El,Tr.isObjectLike=Al,Tr.isPlainObject=Ul,Tr.isRegExp=xl,Tr.isSafeInteger=Pl,Tr.isSet=jl,Tr.isString=kl,Tr.isSymbol=zl,Tr.isTypedArray=Gl,Tr.isUndefined=Bl,Tr.isWeakMap=Vl,Tr.isWeakSet=Yl,Tr.join=ic,Tr.kebabCase=Xf,Tr.last=oc,Tr.lastIndexOf=sc,Tr.lowerCase=eh,Tr.lowerFirst=th,Tr.lt=Hl,Tr.lte=Fl,Tr.max=sd,Tr.maxBy=ad,Tr.mean=cd,Tr.meanBy=ud,Tr.min=ld,Tr.minBy=fd,Tr.stubArray=Kh,Tr.stubFalse=Wh,Tr.stubObject=qh,Tr.stubString=Zh,Tr.stubTrue=Jh,Tr.multiply=hd,Tr.nth=ac,Tr.noConflict=kh,Tr.noop=zh,Tr.now=bu,Tr.pad=nh,Tr.padEnd=rh,Tr.padStart=ih,Tr.parseInt=oh,Tr.random=Qf,Tr.reduce=Iu,Tr.reduceRight=_u,Tr.repeat=sh,Tr.replace=ah,Tr.result=Lf,Tr.round=dd,Tr.runInContext=e,Tr.sample=Cu,Tr.size=Au,Tr.snakeCase=ch,Tr.some=Su,Tr.sortedIndex=vc,Tr.sortedIndexBy=yc,Tr.sortedIndexOf=mc,Tr.sortedLastIndex=Ic,Tr.sortedLastIndexBy=_c,Tr.sortedLastIndexOf=Tc,Tr.startCase=lh,Tr.startsWith=fh,Tr.subtract=pd,Tr.sum=gd,Tr.sumBy=vd,Tr.template=hh,Tr.times=Xh,Tr.toFinite=$l,Tr.toInteger=Kl,Tr.toLength=Wl,Tr.toLower=dh,Tr.toNumber=ql,Tr.toSafeInteger=Jl,Tr.toString=Xl,Tr.toUpper=ph,Tr.trim=gh,Tr.trimEnd=vh,Tr.trimStart=yh,Tr.truncate=mh,Tr.unescape=Ih,Tr.uniqueId=td,Tr.upperCase=_h,Tr.upperFirst=Th,Tr.each=lu,Tr.eachRight=fu,Tr.first=Ja,jh(Tr,function(){var e={};return Ri(Tr,(function(t,n){ft.call(Tr.prototype,n)||(e[n]=t)})),e}(),{chain:!1}),Tr.VERSION=s,Cn(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Tr[e].placeholder=Tr})),Cn(["drop","take"],(function(e,t){Nr.prototype[e]=function(n){n=n===o?1:Gt(Kl(n),0);var r=this.__filtered__&&!t?new Nr(this):this.clone();return r.__filtered__?r.__takeCount__=Bt(n,r.__takeCount__):r.__views__.push({size:Bt(n,G),type:e+(r.__dir__<0?"Right":"")}),r},Nr.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Cn(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=n==L||n==x;Nr.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Hs(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),Cn(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Nr.prototype[e]=function(){return this[n](1).value()[0]}})),Cn(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Nr.prototype[e]=function(){return this.__filtered__?new Nr(this):this[n](1)}})),Nr.prototype.compact=function(){return this.filter(Rh)},Nr.prototype.find=function(e){return this.filter(e).head()},Nr.prototype.findLast=function(e){return this.reverse().find(e)},Nr.prototype.invokeMap=To((function(e,t){return"function"==typeof e?new Nr(this):this.map((function(n){return Yi(n,e,t)}))})),Nr.prototype.reject=function(e){return this.filter(Bu(Hs(e)))},Nr.prototype.slice=function(e,t){e=Kl(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Nr(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==o&&(t=Kl(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},Nr.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Nr.prototype.toArray=function(){return this.take(G)},Ri(Nr.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=Tr[r?"take"+("last"==t?"Right":""):t],s=r||/^find/.test(t);i&&(Tr.prototype[t]=function(){var t=this.__wrapped__,a=r?[1]:arguments,c=t instanceof Nr,u=a[0],l=c||cl(t),f=function(e){var t=i.apply(Tr,wn([e],a));return r&&h?t[0]:t};l&&n&&"function"==typeof u&&1!=u.length&&(c=l=!1);var h=this.__chain__,d=!!this.__actions__.length,p=s&&!h,g=c&&!d;if(!s&&l){t=g?t:new Nr(this);var v=e.apply(t,a);return v.__actions__.push({func:$c,args:[f],thisArg:o}),new Sr(v,h)}return p&&g?e.apply(this,a):(v=this.thru(f),p?r?v.value()[0]:v.value():v)})})),Cn(["pop","push","shift","sort","splice","unshift"],(function(e){var t=st[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Tr.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(cl(i)?i:[],e)}return this[n]((function(n){return t.apply(cl(n)?n:[],e)}))}})),Ri(Nr.prototype,(function(e,t){var n=Tr[t];if(n){var r=n.name+"";ft.call(un,r)||(un[r]=[]),un[r].push({name:t,func:n})}})),un[Is(o,_).name]=[{name:"wrapper",func:o}],Nr.prototype.clone=br,Nr.prototype.reverse=wr,Nr.prototype.value=Or,Tr.prototype.at=Kc,Tr.prototype.chain=Wc,Tr.prototype.commit=qc,Tr.prototype.next=Zc,Tr.prototype.plant=Xc,Tr.prototype.reverse=eu,Tr.prototype.toJSON=Tr.prototype.valueOf=Tr.prototype.value=tu,Tr.prototype.first=Tr.prototype.head,Nt&&(Tr.prototype[Nt]=Jc),Tr},Er=Mr();cn._=Er,i=function(){return Er}.call(t,n,t,r),i===o||(r.exports=i)}).call(this)}).call(this,n("c8ba"),n("62e4")(e))},"2f21":function(e,t,n){"use strict";var r=n("79e5");e.exports=function(e,t){return!!e&&r((function(){t?e.call(null,(function(){}),1):e.call(null)}))}},"2f62":function(e,t,n){"use strict";
- /**
- * vuex v3.1.0
- * (c) 2019 Evan You
- * @license MIT
- */
- function r(e){var t=Number(e.version.split(".")[0]);if(t>=2)e.mixin({beforeCreate:r});else{var n=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[r].concat(e.init):r,n.call(this,e)}}function r(){var e=this.$options;e.store?this.$store="function"===typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}n.d(t,"b",(function(){return R}));var i="undefined"!==typeof window&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function o(e){i&&(e._devtoolHook=i,i.emit("vuex:init",e),i.on("vuex:travel-to-state",(function(t){e.replaceState(t)})),e.subscribe((function(e,t){i.emit("vuex:mutation",e,t)})))}function s(e,t){Object.keys(e).forEach((function(n){return t(e[n],n)}))}function a(e){return null!==e&&"object"===typeof e}function c(e){return e&&"function"===typeof e.then}var u=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var n=e.state;this.state=("function"===typeof n?n():n)||{}},l={namespaced:{configurable:!0}};l.namespaced.get=function(){return!!this._rawModule.namespaced},u.prototype.addChild=function(e,t){this._children[e]=t},u.prototype.removeChild=function(e){delete this._children[e]},u.prototype.getChild=function(e){return this._children[e]},u.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},u.prototype.forEachChild=function(e){s(this._children,e)},u.prototype.forEachGetter=function(e){this._rawModule.getters&&s(this._rawModule.getters,e)},u.prototype.forEachAction=function(e){this._rawModule.actions&&s(this._rawModule.actions,e)},u.prototype.forEachMutation=function(e){this._rawModule.mutations&&s(this._rawModule.mutations,e)},Object.defineProperties(u.prototype,l);var f=function(e){this.register([],e,!1)};function h(e,t,n){if(t.update(n),n.modules)for(var r in n.modules){if(!t.getChild(r))return void 0;h(e.concat(r),t.getChild(r),n.modules[r])}}f.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},f.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,n){return t=t.getChild(n),e+(t.namespaced?n+"/":"")}),"")},f.prototype.update=function(e){h([],this.root,e)},f.prototype.register=function(e,t,n){var r=this;void 0===n&&(n=!0);var i=new u(t,n);if(0===e.length)this.root=i;else{var o=this.get(e.slice(0,-1));o.addChild(e[e.length-1],i)}t.modules&&s(t.modules,(function(t,i){r.register(e.concat(i),t,n)}))},f.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];t.getChild(n).runtime&&t.removeChild(n)};var d;var p=function(e){var t=this;void 0===e&&(e={}),!d&&"undefined"!==typeof window&&window.Vue&&b(window.Vue);var n=e.plugins;void 0===n&&(n=[]);var r=e.strict;void 0===r&&(r=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new f(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new d;var i=this,s=this,a=s.dispatch,c=s.commit;this.dispatch=function(e,t){return a.call(i,e,t)},this.commit=function(e,t,n){return c.call(i,e,t,n)},this.strict=r;var u=this._modules.root.state;I(this,u,[],this._modules.root),m(this,u),n.forEach((function(e){return e(t)}));var l=void 0!==e.devtools?e.devtools:d.config.devtools;l&&o(this)},g={state:{configurable:!0}};function v(e,t){return t.indexOf(e)<0&&t.push(e),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function y(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;I(e,n,[],e._modules.root,!0),m(e,n,t)}function m(e,t,n){var r=e._vm;e.getters={};var i=e._wrappedGetters,o={};s(i,(function(t,n){o[n]=function(){return t(e)},Object.defineProperty(e.getters,n,{get:function(){return e._vm[n]},enumerable:!0})}));var a=d.config.silent;d.config.silent=!0,e._vm=new d({data:{$$state:t},computed:o}),d.config.silent=a,e.strict&&A(e),r&&(n&&e._withCommit((function(){r._data.$$state=null})),d.nextTick((function(){return r.$destroy()})))}function I(e,t,n,r,i){var o=!n.length,s=e._modules.getNamespace(n);if(r.namespaced&&(e._modulesNamespaceMap[s]=r),!o&&!i){var a=S(t,n.slice(0,-1)),c=n[n.length-1];e._withCommit((function(){d.set(a,c,r.state)}))}var u=r.context=_(e,s,n);r.forEachMutation((function(t,n){var r=s+n;C(e,r,t,u)})),r.forEachAction((function(t,n){var r=t.root?n:s+n,i=t.handler||t;M(e,r,i,u)})),r.forEachGetter((function(t,n){var r=s+n;E(e,r,t,u)})),r.forEachChild((function(r,o){I(e,t,n.concat(o),r,i)}))}function _(e,t,n){var r=""===t,i={dispatch:r?e.dispatch:function(n,r,i){var o=N(n,r,i),s=o.payload,a=o.options,c=o.type;return a&&a.root||(c=t+c),e.dispatch(c,s)},commit:r?e.commit:function(n,r,i){var o=N(n,r,i),s=o.payload,a=o.options,c=o.type;a&&a.root||(c=t+c),e.commit(c,s,a)}};return Object.defineProperties(i,{getters:{get:r?function(){return e.getters}:function(){return T(e,t)}},state:{get:function(){return S(e.state,n)}}}),i}function T(e,t){var n={},r=t.length;return Object.keys(e.getters).forEach((function(i){if(i.slice(0,r)===t){var o=i.slice(r);Object.defineProperty(n,o,{get:function(){return e.getters[i]},enumerable:!0})}})),n}function C(e,t,n,r){var i=e._mutations[t]||(e._mutations[t]=[]);i.push((function(t){n.call(e,r.state,t)}))}function M(e,t,n,r){var i=e._actions[t]||(e._actions[t]=[]);i.push((function(t,i){var o=n.call(e,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:e.getters,rootState:e.state},t,i);return c(o)||(o=Promise.resolve(o)),e._devtoolHook?o.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):o}))}function E(e,t,n,r){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(e){return n(r.state,r.getters,e.state,e.getters)})}function A(e){e._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}function S(e,t){return t.length?t.reduce((function(e,t){return e[t]}),e):e}function N(e,t,n){return a(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}function b(e){d&&e===d||(d=e,r(d))}g.state.get=function(){return this._vm._data.$$state},g.state.set=function(e){0},p.prototype.commit=function(e,t,n){var r=this,i=N(e,t,n),o=i.type,s=i.payload,a=(i.options,{type:o,payload:s}),c=this._mutations[o];c&&(this._withCommit((function(){c.forEach((function(e){e(s)}))})),this._subscribers.forEach((function(e){return e(a,r.state)})))},p.prototype.dispatch=function(e,t){var n=this,r=N(e,t),i=r.type,o=r.payload,s={type:i,payload:o},a=this._actions[i];if(a){try{this._actionSubscribers.filter((function(e){return e.before})).forEach((function(e){return e.before(s,n.state)}))}catch(u){0}var c=a.length>1?Promise.all(a.map((function(e){return e(o)}))):a[0](o);return c.then((function(e){try{n._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(s,n.state)}))}catch(u){0}return e}))}},p.prototype.subscribe=function(e){return v(e,this._subscribers)},p.prototype.subscribeAction=function(e){var t="function"===typeof e?{before:e}:e;return v(t,this._actionSubscribers)},p.prototype.watch=function(e,t,n){var r=this;return this._watcherVM.$watch((function(){return e(r.state,r.getters)}),t,n)},p.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._vm._data.$$state=e}))},p.prototype.registerModule=function(e,t,n){void 0===n&&(n={}),"string"===typeof e&&(e=[e]),this._modules.register(e,t),I(this,this.state,e,this._modules.get(e),n.preserveState),m(this,this.state)},p.prototype.unregisterModule=function(e){var t=this;"string"===typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit((function(){var n=S(t.state,e.slice(0,-1));d.delete(n,e[e.length-1])})),y(this)},p.prototype.hotUpdate=function(e){this._modules.update(e),y(this,!0)},p.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(p.prototype,g);var w=x((function(e,t){var n={};return U(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){var t=this.$store.state,n=this.$store.getters;if(e){var r=P(this.$store,"mapState",e);if(!r)return;t=r.context.state,n=r.context.getters}return"function"===typeof i?i.call(this,t,n):t[i]},n[r].vuex=!0})),n})),O=x((function(e,t){var n={};return U(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var r=this.$store.commit;if(e){var o=P(this.$store,"mapMutations",e);if(!o)return;r=o.context.commit}return"function"===typeof i?i.apply(this,[r].concat(t)):r.apply(this.$store,[i].concat(t))}})),n})),R=x((function(e,t){var n={};return U(t).forEach((function(t){var r=t.key,i=t.val;i=e+i,n[r]=function(){if(!e||P(this.$store,"mapGetters",e))return this.$store.getters[i]},n[r].vuex=!0})),n})),D=x((function(e,t){var n={};return U(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var r=this.$store.dispatch;if(e){var o=P(this.$store,"mapActions",e);if(!o)return;r=o.context.dispatch}return"function"===typeof i?i.apply(this,[r].concat(t)):r.apply(this.$store,[i].concat(t))}})),n})),L=function(e){return{mapState:w.bind(null,e),mapGetters:R.bind(null,e),mapMutations:O.bind(null,e),mapActions:D.bind(null,e)}};function U(e){return Array.isArray(e)?e.map((function(e){return{key:e,val:e}})):Object.keys(e).map((function(t){return{key:t,val:e[t]}}))}function x(e){return function(t,n){return"string"!==typeof t?(n=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,n)}}function P(e,t,n){var r=e._modulesNamespaceMap[n];return r}var j={Store:p,install:b,version:"3.1.0",mapState:w,mapMutations:O,mapGetters:R,mapActions:D,createNamespacedHelpers:L};t["a"]=j},"2f78":function(e,t,n){var r=n("5ca1");r(r.S,"Math",{isubh:function(e,t,n,r){var i=e>>>0,o=t>>>0,s=n>>>0;return o-(r>>>0)-((~i&s|~(i^s)&i-s>>>0)>>>31)|0}})},"2fdb":function(e,t,n){"use strict";var r=n("5ca1"),i=n("d2c8"),o="includes";r(r.P+r.F*n("5147")(o),"String",{includes:function(e){return!!~i(this,e,o).indexOf(e,arguments.length>1?arguments[1]:void 0)}})},3024:function(e,t){e.exports=function(e,t,n){var r=void 0===n;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},"308d":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("7618"),i=n("013f");function o(e,t){if(t&&("object"===Object(r["a"])(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Object(i["a"])(e)}},"30b5":function(e,t,n){"use strict";var r=n("c532");function i(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(r.isURLSearchParams(t))o=t.toString();else{var s=[];r.forEach(t,(function(e,t){null!==e&&"undefined"!==typeof e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),s.push(i(t)+"="+i(e))})))})),o=s.join("&")}return o&&(e+=(-1===e.indexOf("?")?"?":"&")+o),e}},"30f1":function(e,t,n){"use strict";var r=n("b8e3"),i=n("63b6"),o=n("9138"),s=n("35e8"),a=n("481b"),c=n("8f60"),u=n("45f2"),l=n("53e2"),f=n("5168")("iterator"),h=!([].keys&&"next"in[].keys()),d="@@iterator",p="keys",g="values",v=function(){return this};e.exports=function(e,t,n,y,m,I,_){c(n,t,y);var T,C,M,E=function(e){if(!h&&e in b)return b[e];switch(e){case p:return function(){return new n(this,e)};case g:return function(){return new n(this,e)}}return function(){return new n(this,e)}},A=t+" Iterator",S=m==g,N=!1,b=e.prototype,w=b[f]||b[d]||m&&b[m],O=w||E(m),R=m?S?E("entries"):O:void 0,D="Array"==t&&b.entries||w;if(D&&(M=l(D.call(new e)),M!==Object.prototype&&M.next&&(u(M,A,!0),r||"function"==typeof M[f]||s(M,f,v))),S&&w&&w.name!==g&&(N=!0,O=function(){return w.call(this)}),r&&!_||!h&&!N&&b[f]||s(b,f,O),a[t]=O,a[A]=v,m)if(T={values:S?O:E(g),keys:I?O:E(p),entries:R},_)for(C in T)C in b||o(b,C,T[C]);else i(i.P+i.F*(h||N),t,T);return T}},"31f4":function(e,t){e.exports=function(e,t,n){var r=void 0===n;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},"323e":function(e,t,n){var r,i;
- /* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
- * @license MIT */(function(o,s){r=s,i="function"===typeof r?r.call(t,n,t,e):r,void 0===i||(e.exports=i)})(0,(function(){var e={version:"0.2.0"},t=e.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};function n(e,t,n){return e<t?t:e>n?n:e}function r(e){return 100*(-1+e)}function i(e,n,i){var o;return o="translate3d"===t.positionUsing?{transform:"translate3d("+r(e)+"%,0,0)"}:"translate"===t.positionUsing?{transform:"translate("+r(e)+"%,0)"}:{"margin-left":r(e)+"%"},o.transition="all "+n+"ms "+i,o}e.configure=function(e){var n,r;for(n in e)r=e[n],void 0!==r&&e.hasOwnProperty(n)&&(t[n]=r);return this},e.status=null,e.set=function(r){var a=e.isStarted();r=n(r,t.minimum,1),e.status=1===r?null:r;var c=e.render(!a),u=c.querySelector(t.barSelector),l=t.speed,f=t.easing;return c.offsetWidth,o((function(n){""===t.positionUsing&&(t.positionUsing=e.getPositioningCSS()),s(u,i(r,l,f)),1===r?(s(c,{transition:"none",opacity:1}),c.offsetWidth,setTimeout((function(){s(c,{transition:"all "+l+"ms linear",opacity:0}),setTimeout((function(){e.remove(),n()}),l)}),l)):setTimeout(n,l)})),this},e.isStarted=function(){return"number"===typeof e.status},e.start=function(){e.status||e.set(0);var n=function(){setTimeout((function(){e.status&&(e.trickle(),n())}),t.trickleSpeed)};return t.trickle&&n(),this},e.done=function(t){return t||e.status?e.inc(.3+.5*Math.random()).set(1):this},e.inc=function(t){var r=e.status;return r?("number"!==typeof t&&(t=(1-r)*n(Math.random()*r,.1,.95)),r=n(r+t,0,.994),e.set(r)):e.start()},e.trickle=function(){return e.inc(Math.random()*t.trickleRate)},function(){var t=0,n=0;e.promise=function(r){return r&&"resolved"!==r.state()?(0===n&&e.start(),t++,n++,r.always((function(){n--,0===n?(t=0,e.done()):e.set((t-n)/t)})),this):this}}(),e.render=function(n){if(e.isRendered())return document.getElementById("nprogress");c(document.documentElement,"nprogress-busy");var i=document.createElement("div");i.id="nprogress",i.innerHTML=t.template;var o,a=i.querySelector(t.barSelector),u=n?"-100":r(e.status||0),l=document.querySelector(t.parent);return s(a,{transition:"all 0 linear",transform:"translate3d("+u+"%,0,0)"}),t.showSpinner||(o=i.querySelector(t.spinnerSelector),o&&f(o)),l!=document.body&&c(l,"nprogress-custom-parent"),l.appendChild(i),i},e.remove=function(){u(document.documentElement,"nprogress-busy"),u(document.querySelector(t.parent),"nprogress-custom-parent");var e=document.getElementById("nprogress");e&&f(e)},e.isRendered=function(){return!!document.getElementById("nprogress")},e.getPositioningCSS=function(){var e=document.body.style,t="WebkitTransform"in e?"Webkit":"MozTransform"in e?"Moz":"msTransform"in e?"ms":"OTransform"in e?"O":"";return t+"Perspective"in e?"translate3d":t+"Transform"in e?"translate":"margin"};var o=function(){var e=[];function t(){var n=e.shift();n&&n(t)}return function(n){e.push(n),1==e.length&&t()}}(),s=function(){var e=["Webkit","O","Moz","ms"],t={};function n(e){return e.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,(function(e,t){return t.toUpperCase()}))}function r(t){var n=document.body.style;if(t in n)return t;var r,i=e.length,o=t.charAt(0).toUpperCase()+t.slice(1);while(i--)if(r=e[i]+o,r in n)return r;return t}function i(e){return e=n(e),t[e]||(t[e]=r(e))}function o(e,t,n){t=i(t),e.style[t]=n}return function(e,t){var n,r,i=arguments;if(2==i.length)for(n in t)r=t[n],void 0!==r&&t.hasOwnProperty(n)&&o(e,n,r);else o(e,i[1],i[2])}}();function a(e,t){var n="string"==typeof e?e:l(e);return n.indexOf(" "+t+" ")>=0}function c(e,t){var n=l(e),r=n+t;a(n,t)||(e.className=r.substring(1))}function u(e,t){var n,r=l(e);a(e,t)&&(n=r.replace(" "+t+" "," "),e.className=n.substring(1,n.length-1))}function l(e){return(" "+(e.className||"")+" ").replace(/\s+/gi," ")}function f(e){e&&e.parentNode&&e.parentNode.removeChild(e)}return e}))},"32a6":function(e,t,n){var r=n("241e"),i=n("c3a1");n("ce7e")("keys",(function(){return function(e){return i(r(e))}}))},"32d7":function(e,t,n){var r=n("5ca1");r(r.S,"Math",{clz32:function(e){return(e>>>=0)?31-Math.floor(Math.log(e+.5)*Math.LOG2E):32}})},"32e9":function(e,t,n){var r=n("86cc"),i=n("4630");e.exports=n("9e1e")?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},"32fc":function(e,t,n){var r=n("e53d").document;e.exports=r&&r.documentElement},"335c":function(e,t,n){var r=n("6b4c");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},"33a4":function(e,t,n){var r=n("84f2"),i=n("2b4c")("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||o[i]===e)}},"34ef":function(e,t,n){n("ec30")("Uint8",1,(function(e){return function(t,n,r){return e(this,t,n,r)}}))},3535:function(e,t,n){"use strict";var r=n("5ca1"),i=n("02f4")(!0),o=n("79e5"),s=o((function(){return"𠮷"!=="𠮷".at(0)}));r(r.P+r.F*s,"String",{at:function(e){return i(this,e)}})},"355d":function(e,t){t.f={}.propertyIsEnumerable},"35e8":function(e,t,n){var r=n("d9f6"),i=n("aebd");e.exports=n("8e60")?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},"36bd":function(e,t,n){"use strict";var r=n("4bf8"),i=n("77f1"),o=n("9def");e.exports=function(e){var t=r(this),n=o(t.length),s=arguments.length,a=i(s>1?arguments[1]:void 0,n),c=s>2?arguments[2]:void 0,u=void 0===c?n:i(c,n);while(u>a)t[a++]=e;return t}},"36c3":function(e,t,n){var r=n("335c"),i=n("25eb");e.exports=function(e){return r(i(e))}},3702:function(e,t,n){var r=n("481b"),i=n("5168")("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||o[i]===e)}},"373f":function(e,t,n){"use strict";var r=n("5ca1"),i=n("6821"),o=[].join;r(r.P+r.F*(n("626a")!=Object||!n("2f21")(o)),"Array",{join:function(e){return o.call(i(this),void 0===e?",":e)}})},"37a7":function(e,t,n){var r=n("f400"),i=n("5ca1"),o=n("5537")("metadata"),s=o.store||(o.store=new(n("10ad"))),a=function(e,t,n){var i=s.get(e);if(!i){if(!n)return;s.set(e,i=new r)}var o=i.get(t);if(!o){if(!n)return;i.set(t,o=new r)}return o},c=function(e,t,n){var r=a(t,n,!1);return void 0!==r&&r.has(e)},u=function(e,t,n){var r=a(t,n,!1);return void 0===r?void 0:r.get(e)},l=function(e,t,n,r){a(n,r,!0).set(e,t)},f=function(e,t){var n=a(e,t,!1),r=[];return n&&n.forEach((function(e,t){r.push(t)})),r},h=function(e){return void 0===e||"symbol"==typeof e?e:String(e)},d=function(e){i(i.S,"Reflect",e)};e.exports={store:s,map:a,has:c,get:u,set:l,keys:f,key:h,exp:d}},"37b5":function(e,t,n){"use strict";var r=n("5ca1"),i=n("7726"),o=n("8378"),s=n("8079")(),a=n("2b4c")("observable"),c=n("d8e8"),u=n("cb7c"),l=n("f605"),f=n("dcbc"),h=n("32e9"),d=n("4a59"),p=d.RETURN,g=function(e){return null==e?void 0:c(e)},v=function(e){var t=e._c;t&&(e._c=void 0,t())},y=function(e){return void 0===e._o},m=function(e){y(e)||(e._o=void 0,v(e))},I=function(e,t){u(e),this._c=void 0,this._o=e,e=new _(this);try{var n=t(e),r=n;null!=n&&("function"===typeof n.unsubscribe?n=function(){r.unsubscribe()}:c(n),this._c=n)}catch(i){return void e.error(i)}y(this)&&v(this)};I.prototype=f({},{unsubscribe:function(){m(this)}});var _=function(e){this._s=e};_.prototype=f({},{next:function(e){var t=this._s;if(!y(t)){var n=t._o;try{var r=g(n.next);if(r)return r.call(n,e)}catch(i){try{m(t)}finally{throw i}}}},error:function(e){var t=this._s;if(y(t))throw e;var n=t._o;t._o=void 0;try{var r=g(n.error);if(!r)throw e;e=r.call(n,e)}catch(i){try{v(t)}finally{throw i}}return v(t),e},complete:function(e){var t=this._s;if(!y(t)){var n=t._o;t._o=void 0;try{var r=g(n.complete);e=r?r.call(n,e):void 0}catch(i){try{v(t)}finally{throw i}}return v(t),e}}});var T=function(e){l(this,T,"Observable","_f")._f=c(e)};f(T.prototype,{subscribe:function(e){return new I(e,this._f)},forEach:function(e){var t=this;return new(o.Promise||i.Promise)((function(n,r){c(e);var i=t.subscribe({next:function(t){try{return e(t)}catch(n){r(n),i.unsubscribe()}},error:r,complete:n})}))}}),f(T,{from:function(e){var t="function"===typeof this?this:T,n=g(u(e)[a]);if(n){var r=u(n.call(e));return r.constructor===t?r:new t((function(e){return r.subscribe(e)}))}return new t((function(t){var n=!1;return s((function(){if(!n){try{if(d(e,!1,(function(e){if(t.next(e),n)return p}))===p)return}catch(r){if(n)throw r;return void t.error(r)}t.complete()}})),function(){n=!0}}))},of:function(){for(var e=0,t=arguments.length,n=new Array(t);e<t;)n[e]=arguments[e++];return new("function"===typeof this?this:T)((function(e){var t=!1;return s((function(){if(!t){for(var r=0;r<n.length;++r)if(e.next(n[r]),t)return;e.complete()}})),function(){t=!0}}))}}),h(T.prototype,a,(function(){return this})),r(r.G,{Observable:T}),n("7a56")("Observable")},"37c8":function(e,t,n){t.f=n("2b4c")},3846:function(e,t,n){n("9e1e")&&"g"!=/./g.flags&&n("86cc").f(RegExp.prototype,"flags",{configurable:!0,get:n("0bfb")})},"386b":function(e,t,n){var r=n("5ca1"),i=n("79e5"),o=n("be13"),s=/"/g,a=function(e,t,n,r){var i=String(o(e)),a="<"+t;return""!==n&&(a+=" "+n+'="'+String(r).replace(s,""")+'"'),a+">"+i+"</"+t+">"};e.exports=function(e,t){var n={};n[e]=t(a),r(r.P+r.F*i((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3})),"String",n)}},"386d":function(e,t,n){"use strict";var r=n("cb7c"),i=n("83a1"),o=n("5f1b");n("214f")("search",1,(function(e,t,n,s){return[function(n){var r=e(this),i=void 0==n?void 0:n[t];return void 0!==i?i.call(n,r):new RegExp(n)[t](String(r))},function(e){var t=s(n,e,this);if(t.done)return t.value;var a=r(e),c=String(this),u=a.lastIndex;i(u,0)||(a.lastIndex=0);var l=o(a,c);return i(a.lastIndex,u)||(a.lastIndex=u),null===l?-1:l.index}]}))},3875:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("1325");function i(e,t){return e>t?"horizontal":t>e?"vertical":""}var o={data:function(){return{direction:""}},methods:{touchStart:function(e){this.resetTouchStatus(),this.startX=e.touches[0].clientX,this.startY=e.touches[0].clientY},touchMove:function(e){var t=e.touches[0];this.deltaX=t.clientX<0?0:t.clientX-this.startX,this.deltaY=t.clientY-this.startY,this.offsetX=Math.abs(this.deltaX),this.offsetY=Math.abs(this.deltaY);var n=10;(!this.direction||this.offsetX<n&&this.offsetY<n)&&(this.direction=i(this.offsetX,this.offsetY))},resetTouchStatus:function(){this.direction="",this.deltaX=0,this.deltaY=0,this.offsetX=0,this.offsetY=0},bindTouchEvent:function(e){var t=this.onTouchStart,n=this.onTouchMove,i=this.onTouchEnd;Object(r["b"])(e,"touchstart",t),Object(r["b"])(e,"touchmove",n),i&&(Object(r["b"])(e,"touchend",i),Object(r["b"])(e,"touchcancel",i))}}}},"387f":function(e,t,n){"use strict";e.exports=function(e,t,n,r,i){return e.config=t,n&&(e.code=n),e.request=r,e.response=i,e}},"38fd":function(e,t,n){var r=n("69a8"),i=n("4bf8"),o=n("613b")("IE_PROTO"),s=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?s:null}},3934:function(e,t,n){"use strict";var r=n("c532");e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=i(window.location.href),function(t){var n=r.isString(t)?i(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return function(){return!0}}()},"3a38":function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},"3a72":function(e,t,n){var r=n("7726"),i=n("8378"),o=n("2d00"),s=n("37c8"),a=n("86cc").f;e.exports=function(e){var t=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||a(t,e,{value:s.f(e)})}},"3a9c":function(e,t,n){var r=n("37a7"),i=n("cb7c"),o=n("d8e8"),s=r.key,a=r.set;r.exp({metadata:function(e,t){return function(n,r){a(e,t,(void 0!==r?i:o)(n),s(r))}}})},"3b2b":function(e,t,n){var r=n("7726"),i=n("5dbc"),o=n("86cc").f,s=n("9093").f,a=n("aae3"),c=n("0bfb"),u=r.RegExp,l=u,f=u.prototype,h=/a/g,d=/a/g,p=new u(h)!==h;if(n("9e1e")&&(!p||n("79e5")((function(){return d[n("2b4c")("match")]=!1,u(h)!=h||u(d)==d||"/a/i"!=u(h,"i")})))){u=function(e,t){var n=this instanceof u,r=a(e),o=void 0===t;return!n&&r&&e.constructor===u&&o?e:i(p?new l(r&&!o?e.source:e,t):l((r=e instanceof u)?e.source:e,r&&o?c.call(e):t),n?this:f,u)};for(var g=function(e){e in u||o(u,e,{configurable:!0,get:function(){return l[e]},set:function(t){l[e]=t}})},v=s(l),y=0;v.length>y;)g(v[y++]);f.constructor=u,u.prototype=f,n("2aba")(r,"RegExp",u)}n("7a56")("RegExp")},"3b74":function(e,t,n){"use strict";function r(e){return e instanceof RegExp}function i(e){return e&&"[object Function]"==={}.toString.call(e)}function o(e){return null!==e&&!Array.isArray(e)&&"object"===typeof e}function s(e){return"undefined"===typeof e}t.__esModule=!0,t.isUndefined=t.isPlainObject=t.isFunction=t.isRegex=void 0,t.isRegex=r,t.isFunction=i,t.isPlainObject=o,t.isUndefined=s},"3b8d":function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("795b"),i=n.n(r);function o(e,t,n,r,o,s,a){try{var c=e[s](a),u=c.value}catch(l){return void n(l)}c.done?t(u):i.a.resolve(u).then(r,o)}function s(e){return function(){var t=this,n=arguments;return new i.a((function(r,i){var s=e.apply(t,n);function a(e){o(s,r,i,a,c,"next",e)}function c(e){o(s,r,i,a,c,"throw",e)}a(void 0)}))}}},"3c11":function(e,t,n){"use strict";var r=n("63b6"),i=n("584a"),o=n("e53d"),s=n("f201"),a=n("cd78");r(r.P+r.R,"Promise",{finally:function(e){var t=s(this,i.Promise||o.Promise),n="function"==typeof e;return this.then(n?function(n){return a(t,e()).then((function(){return n}))}:e,n?function(n){return a(t,e()).then((function(){throw n}))}:e)}})},"3c4e":function(e,t,n){"use strict";var r=function(e){return i(e)&&!o(e)};function i(e){return!!e&&"object"===typeof e}function o(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||c(e)}var s="function"===typeof Symbol&&Symbol.for,a=s?Symbol.for("react.element"):60103;function c(e){return e.$$typeof===a}function u(e){return Array.isArray(e)?[]:{}}function l(e,t){var n=t&&!0===t.clone;return n&&r(e)?d(u(e),e,t):e}function f(e,t,n){var i=e.slice();return t.forEach((function(t,o){"undefined"===typeof i[o]?i[o]=l(t,n):r(t)?i[o]=d(e[o],t,n):-1===e.indexOf(t)&&i.push(l(t,n))})),i}function h(e,t,n){var i={};return r(e)&&Object.keys(e).forEach((function(t){i[t]=l(e[t],n)})),Object.keys(t).forEach((function(o){r(t[o])&&e[o]?i[o]=d(e[o],t[o],n):i[o]=l(t[o],n)})),i}function d(e,t,n){var r=Array.isArray(t),i=Array.isArray(e),o=n||{arrayMerge:f},s=r===i;if(s){if(r){var a=o.arrayMerge||f;return a(e,t,n)}return h(e,t,n)}return l(t,n)}d.all=function(e,t){if(!Array.isArray(e)||e.length<2)throw new Error("first argument should be an array with at least two elements");return e.reduce((function(e,n){return d(e,n,t)}))};var p=d;e.exports=p},"3ca5":function(e,t,n){var r=n("7726").parseInt,i=n("aa77").trim,o=n("fdef"),s=/^[-+]?0[xX]/;e.exports=8!==r(o+"08")||22!==r(o+"0x16")?function(e,t){var n=i(String(e),3);return r(n,t>>>0||(s.test(n)?16:10))}:r},"3eb1":function(e,t,n){"use strict";var r=n("0f7c"),i=n("00ce"),o=i("%Function.prototype.apply%"),s=i("%Function.prototype.call%"),a=i("%Reflect.apply%",!0)||r.call(s,o),c=i("%Object.getOwnPropertyDescriptor%",!0),u=i("%Object.defineProperty%",!0),l=i("%Math.max%");if(u)try{u({},"a",{value:1})}catch(h){u=null}e.exports=function(e){var t=a(r,s,arguments);if(c&&u){var n=c(t,"length");n.configurable&&u(t,"length",{value:1+l(0,e.length-(arguments.length-1))})}return t};var f=function(){return a(r,o,arguments)};u?u(e.exports,"apply",{value:f}):e.exports.apply=f},"3f6b":function(e,t,n){e.exports={default:n("51b6"),__esModule:!0}},"40c3":function(e,t,n){var r=n("6b4c"),i=n("5168")("toStringTag"),o="Arguments"==r(function(){return arguments}()),s=function(e,t){try{return e[t]}catch(n){}};e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=s(t=Object(e),i))?n:o?r(t):"Object"==(a=r(t))&&"function"==typeof t.callee?"Arguments":a}},4127:function(e,t,n){"use strict";var r=n("5402"),i=n("d233"),o=n("b313"),s=Object.prototype.hasOwnProperty,a={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},c=Array.isArray,u=String.prototype.split,l=Array.prototype.push,f=function(e,t){l.apply(e,c(t)?t:[t])},h=Date.prototype.toISOString,d=o["default"],p={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:i.encode,encodeValuesOnly:!1,format:d,formatter:o.formatters[d],indices:!1,serializeDate:function(e){return h.call(e)},skipNulls:!1,strictNullHandling:!1},g=function(e){return"string"===typeof e||"number"===typeof e||"boolean"===typeof e||"symbol"===typeof e||"bigint"===typeof e},v={},y=function e(t,n,o,s,a,l,h,d,y,m,I,_,T,C,M){var E=t,A=M,S=0,N=!1;while(void 0!==(A=A.get(v))&&!N){var b=A.get(t);if(S+=1,"undefined"!==typeof b){if(b===S)throw new RangeError("Cyclic object value");N=!0}"undefined"===typeof A.get(v)&&(S=0)}if("function"===typeof h?E=h(n,E):E instanceof Date?E=m(E):"comma"===o&&c(E)&&(E=i.maybeMap(E,(function(e){return e instanceof Date?m(e):e}))),null===E){if(s)return l&&!T?l(n,p.encoder,C,"key",I):n;E=""}if(g(E)||i.isBuffer(E)){if(l){var w=T?n:l(n,p.encoder,C,"key",I);if("comma"===o&&T){for(var O=u.call(String(E),","),R="",D=0;D<O.length;++D)R+=(0===D?"":",")+_(l(O[D],p.encoder,C,"value",I));return[_(w)+(c(E)&&1===O.length?"[]":"")+"="+R]}return[_(w)+"="+_(l(E,p.encoder,C,"value",I))]}return[_(n)+"="+_(String(E))]}var L,U=[];if("undefined"===typeof E)return U;if("comma"===o&&c(E))L=[{value:E.length>0?E.join(",")||null:void 0}];else if(c(h))L=h;else{var x=Object.keys(E);L=d?x.sort(d):x}for(var P="comma"===o&&c(E)&&1===E.length?n+"[]":n,j=0;j<L.length;++j){var k=L[j],z="object"===typeof k&&"undefined"!==typeof k.value?k.value:E[k];if(!a||null!==z){var G=c(E)?"function"===typeof o?o(P,k):P:P+(y?"."+k:"["+k+"]");M.set(t,S);var B=r();B.set(v,M),f(U,e(z,G,o,s,a,l,h,d,y,m,I,_,T,C,B))}}return U},m=function(e){if(!e)return p;if(null!==e.encoder&&"undefined"!==typeof e.encoder&&"function"!==typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||p.charset;if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=o["default"];if("undefined"!==typeof e.format){if(!s.call(o.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r=o.formatters[n],i=p.filter;return("function"===typeof e.filter||c(e.filter))&&(i=e.filter),{addQueryPrefix:"boolean"===typeof e.addQueryPrefix?e.addQueryPrefix:p.addQueryPrefix,allowDots:"undefined"===typeof e.allowDots?p.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:p.charsetSentinel,delimiter:"undefined"===typeof e.delimiter?p.delimiter:e.delimiter,encode:"boolean"===typeof e.encode?e.encode:p.encode,encoder:"function"===typeof e.encoder?e.encoder:p.encoder,encodeValuesOnly:"boolean"===typeof e.encodeValuesOnly?e.encodeValuesOnly:p.encodeValuesOnly,filter:i,format:n,formatter:r,serializeDate:"function"===typeof e.serializeDate?e.serializeDate:p.serializeDate,skipNulls:"boolean"===typeof e.skipNulls?e.skipNulls:p.skipNulls,sort:"function"===typeof e.sort?e.sort:null,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:p.strictNullHandling}};e.exports=function(e,t){var n,i,o=e,s=m(t);"function"===typeof s.filter?(i=s.filter,o=i("",o)):c(s.filter)&&(i=s.filter,n=i);var u,l=[];if("object"!==typeof o||null===o)return"";u=t&&t.arrayFormat in a?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var h=a[u];n||(n=Object.keys(o)),s.sort&&n.sort(s.sort);for(var d=r(),p=0;p<n.length;++p){var g=n[p];s.skipNulls&&null===o[g]||f(l,y(o[g],g,h,s.strictNullHandling,s.skipNulls,s.encode?s.encoder:null,s.filter,s.sort,s.allowDots,s.serializeDate,s.format,s.formatter,s.encodeValuesOnly,s.charset,d))}var v=l.join(s.delimiter),I=!0===s.addQueryPrefix?"?":"";return s.charsetSentinel&&("iso-8859-1"===s.charset?I+="utf8=%26%2310003%3B&":I+="utf8=%E2%9C%93&"),v.length>0?I+v:""}},"416c":function(e,t,n){n("28e4")("Map")},4178:function(e,t,n){var r,i,o,s=n("d864"),a=n("3024"),c=n("32fc"),u=n("1ec9"),l=n("e53d"),f=l.process,h=l.setImmediate,d=l.clearImmediate,p=l.MessageChannel,g=l.Dispatch,v=0,y={},m="onreadystatechange",I=function(){var e=+this;if(y.hasOwnProperty(e)){var t=y[e];delete y[e],t()}},_=function(e){I.call(e.data)};h&&d||(h=function(e){var t=[],n=1;while(arguments.length>n)t.push(arguments[n++]);return y[++v]=function(){a("function"==typeof e?e:Function(e),t)},r(v),v},d=function(e){delete y[e]},"process"==n("6b4c")(f)?r=function(e){f.nextTick(s(I,e,1))}:g&&g.now?r=function(e){g.now(s(I,e,1))}:p?(i=new p,o=i.port2,i.port1.onmessage=_,r=s(o.postMessage,o,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(r=function(e){l.postMessage(e+"","*")},l.addEventListener("message",_,!1)):r=m in u("script")?function(e){c.appendChild(u("script"))[m]=function(){c.removeChild(this),I.call(e)}}:function(e){setTimeout(s(I,e,1),0)}),e.exports={set:h,clear:d}},"419e":function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{while((void 0===t||t-- >0)&&!(r=o.next()).done)s.push(r.value)}catch(a){i={error:a}}finally{try{r&&!r.done&&(n=o["return"])&&n.call(o)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};function o(e,t,n){var o=new Set(t);return function(t,s,a){return a===e&&Array.from(i(i([],r(t)),r(s)).map((function(e){return{key:n(e),value:e}})).map((function(e){var t=e.key,n=e.value;return{key:o.has(t)?t:n,value:n}})).reduce((function(e,t){var n=t.key,r=t.value;return e["delete"](n),e.set(n,r)}),new Map).values())}}t.__esModule=!0,t["default"]=o},"41a0":function(e,t,n){"use strict";var r=n("2aeb"),i=n("4630"),o=n("7f20"),s={};n("32e9")(s,n("2b4c")("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(s,{next:i(1,n)}),o(e,t+" Iterator")}},"41b2":function(e,t,n){"use strict";t.__esModule=!0;var r=n("3f6b"),i=o(r);function o(e){return e&&e.__esModule?e:{default:e}}t.default=i.default||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}},4208:function(e,t,n){!function(t,n){e.exports=n()}(0,(function(){"use strict";return function(e,t,n){e=e||{};var r=t.prototype,i={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function o(e,t,n,i){return r.fromToBase(e,t,n,i)}n.en.relativeTime=i,r.fromToBase=function(t,r,o,s,a){for(var c,u,l,f=o.$locale().relativeTime||i,h=e.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],d=h.length,p=0;p<d;p+=1){var g=h[p];g.d&&(c=s?n(t).diff(o,g.d,!0):o.diff(t,g.d,!0));var v=(e.rounding||Math.round)(Math.abs(c));if(l=c>0,v<=g.r||!g.r){v<=1&&p>0&&(g=h[p-1]);var y=f[g.l];a&&(v=a(""+v)),u="string"==typeof y?y.replace("%d",v):y(v,r,g.l,l);break}}if(r)return u;var m=l?f.future:f.past;return"function"==typeof m?m(u):m.replace("%s",u)},r.to=function(e,t){return o(e,t,this,!0)},r.from=function(e,t){return o(e,t,this)};var s=function(e){return e.$u?n.utc():n()};r.toNow=function(e){return this.to(s(this),e)},r.fromNow=function(e){return this.from(s(this),e)}}}))},4276:function(e,t,n){var r=n("5ca1"),i=n("2d95");r(r.S,"Error",{isError:function(e){return"Error"===i(e)}})},4328:function(e,t,n){"use strict";var r=n("4127"),i=n("9e6a"),o=n("b313");e.exports={formats:o,parse:i,stringify:r}},4362:function(e,t,n){t.nextTick=function(e){var t=Array.prototype.slice.call(arguments);t.shift(),setTimeout((function(){e.apply(null,t)}),0)},t.platform=t.arch=t.execPath=t.title="browser",t.pid=1,t.browser=!0,t.env={},t.argv=[],t.binding=function(e){throw new Error("No such module. (Possibly not yet loaded)")},function(){var e,r="/";t.cwd=function(){return r},t.chdir=function(t){e||(e=n("df7c")),r=e.resolve(t,r)}}(),t.exit=t.kill=t.umask=t.dlopen=t.uptime=t.memoryUsage=t.uvCounters=function(){},t.features={}},4379:function(e,t,n){var r=n("4a59");e.exports=function(e,t){var n=[];return r(e,!1,n.push,n,t),n}},"43fc":function(e,t,n){"use strict";var r=n("63b6"),i=n("656e"),o=n("4439");r(r.S,"Promise",{try:function(e){var t=i.f(this),n=o(e);return(n.e?t.reject:t.resolve)(n.v),t.promise}})},4439:function(e,t){e.exports=function(e){try{return{e:!1,v:e()}}catch(t){return{e:!0,v:t}}}},"44b8":function(e,t,n){var r=n("23c6"),i=n("4379");e.exports=function(e){return function(){if(r(this)!=e)throw TypeError(e+"#toJSON isn't generic");return i(this)}}},4504:function(e,t,n){"use strict";var r=n("5ca1"),i=n("4bf8"),o=n("d8e8"),s=n("86cc");n("9e1e")&&r(r.P+n("c5b4"),"Object",{__defineGetter__:function(e,t){s.f(i(this),e,{get:o(t),enumerable:!0,configurable:!0})}})},"454f":function(e,t,n){n("46a7");var r=n("584a").Object;e.exports=function(e,t,n){return r.defineProperty(e,t,n)}},"456d":function(e,t,n){var r=n("4bf8"),i=n("0d58");n("5eda")("keys",(function(){return function(e){return i(r(e))}}))},4588:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},"45f2":function(e,t,n){var r=n("d9f6").f,i=n("07e3"),o=n("5168")("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},4630:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"467f":function(e,t,n){"use strict";var r=n("2d83");e.exports=function(e,t,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},"46a7":function(e,t,n){var r=n("63b6");r(r.S+r.F*!n("8e60"),"Object",{defineProperty:n("d9f6").f})},4704:function(e,t,n){var r=n("5ca1");r(r.P+r.R,"Map",{toJSON:n("44b8")("Map")})},4795:function(e,t,n){var r=n("7726"),i=n("5ca1"),o=n("a25f"),s=[].slice,a=/MSIE .\./.test(o),c=function(e){return function(t,n){var r=arguments.length>2,i=!!r&&s.call(arguments,2);return e(r?function(){("function"==typeof t?t:Function(t)).apply(this,i)}:t,n)}};i(i.G+i.B+i.F*a,{setTimeout:c(r.setTimeout),setInterval:c(r.setInterval)})},"47ee":function(e,t,n){var r=n("c3a1"),i=n("9aa9"),o=n("355d");e.exports=function(e){var t=r(e),n=i.f;if(n){var s,a=n(e),c=o.f,u=0;while(a.length>u)c.call(e,s=a[u++])&&t.push(s)}return t}},"481b":function(e,t){e.exports={}},"48c0":function(e,t,n){"use strict";n("386b")("bold",(function(e){return function(){return e(this,"b","","")}}))},"48f4":function(e,t,n){"use strict";function r(e){return"NavigationDuplicated"===e.name||e.message&&-1!==e.message.indexOf("redundant navigation")}function i(e,t){var n=t.to,i=t.url,o=t.replace;if(n&&e){var s=e[o?"replace":"push"](n);s&&s.catch&&s.catch((function(e){if(e&&!r(e))throw e}))}else i&&(o?location.replace(i):location.href=i)}function o(e){i(e.parent&&e.parent.$router,e.props)}n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return o})),n.d(t,"c",(function(){return s}));var s={url:String,replace:Boolean,to:[String,Object]}},"48f8":function(e,t,n){"use strict";var r=n("5ca1"),i=n("7b23");r(r.P+r.F*!n("2f21")([].reduceRight,!0),"Array",{reduceRight:function(e){return i(this,e,arguments.length,arguments[1],!0)}})},4917:function(e,t,n){"use strict";var r=n("cb7c"),i=n("9def"),o=n("0390"),s=n("5f1b");n("214f")("match",1,(function(e,t,n,a){return[function(n){var r=e(this),i=void 0==n?void 0:n[t];return void 0!==i?i.call(n,r):new RegExp(n)[t](String(r))},function(e){var t=a(n,e,this);if(t.done)return t.value;var c=r(e),u=String(this);if(!c.global)return s(c,u);var l=c.unicode;c.lastIndex=0;var f,h=[],d=0;while(null!==(f=s(c,u))){var p=String(f[0]);h[d]=p,""===p&&(c.lastIndex=o(u,i(c.lastIndex),l)),d++}return 0===d?null:h}]}))},"4a59":function(e,t,n){var r=n("9b43"),i=n("1fa8"),o=n("33a4"),s=n("cb7c"),a=n("9def"),c=n("27ee"),u={},l={};t=e.exports=function(e,t,n,f,h){var d,p,g,v,y=h?function(){return e}:c(e),m=r(n,f,t?2:1),I=0;if("function"!=typeof y)throw TypeError(e+" is not iterable!");if(o(y)){for(d=a(e.length);d>I;I++)if(v=t?m(s(p=e[I])[0],p[1]):m(e[I]),v===u||v===l)return v}else for(g=y.call(e);!(p=g.next()).done;)if(v=i(g,m,p.value,t),v===u||v===l)return v};t.BREAK=u,t.RETURN=l},"4aa6":function(e,t,n){e.exports=n("dc62")},"4bf8":function(e,t,n){var r=n("be13");e.exports=function(e){return Object(r(e))}},"4c95":function(e,t,n){"use strict";var r=n("e53d"),i=n("584a"),o=n("d9f6"),s=n("8e60"),a=n("5168")("species");e.exports=function(e){var t="function"==typeof i[e]?i[e]:r[e];s&&t&&!t[a]&&o.f(t,a,{configurable:!0,get:function(){return this}})}},"4d16":function(e,t,n){e.exports=n("25b0")},"4dda":function(e,t,n){n("ec30")("Float64",8,(function(e){return function(t,n,r){return e(this,t,n,r)}}))},"4e2b":function(e,t,n){"use strict";var r=n("4aa6"),i=n.n(r),o=n("85f2"),s=n.n(o),a=n("4d16"),c=n.n(a);function u(e,t){return u=c.a?c.a.bind():function(e,t){return e.__proto__=t,e},u(e,t)}function l(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=i()(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),s()(e,"prototype",{writable:!1}),t&&u(e,t)}n.d(t,"a",(function(){return l}))},"4ee1":function(e,t,n){var r=n("5168")("iterator"),i=!1;try{var o=[7][r]();o["return"]=function(){i=!0},Array.from(o,(function(){throw 2}))}catch(s){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var o=[7],a=o[r]();a.next=function(){return{done:n=!0}},o[r]=function(){return a},e(o)}catch(s){}return n}},"4f37":function(e,t,n){"use strict";n("aa77")("trim",(function(e){return function(){return e(this,3)}}))},"4f7f":function(e,t,n){"use strict";var r=n("c26b"),i=n("b39a"),o="Set";e.exports=n("e0b8")(o,(function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(e){return r.def(i(this,o),e=0===e?0:e,e)}},r)},"504c":function(e,t,n){var r=n("9e1e"),i=n("0d58"),o=n("6821"),s=n("52a7").f;e.exports=function(e){return function(t){var n,a=o(t),c=i(a),u=c.length,l=0,f=[];while(u>l)n=c[l++],r&&!s.call(a,n)||f.push(e?[n,a[n]]:a[n]);return f}}},"50ed":function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},5147:function(e,t,n){var r=n("2b4c")("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,!"/./"[e](t)}catch(i){}}return!0}},5156:function(e,t,n){"use strict";var r="undefined"!==typeof Symbol&&Symbol,i=n("1696");e.exports=function(){return"function"===typeof r&&("function"===typeof Symbol&&("symbol"===typeof r("foo")&&("symbol"===typeof Symbol("bar")&&i())))}},5168:function(e,t,n){var r=n("dbdb")("wks"),i=n("62a0"),o=n("e53d").Symbol,s="function"==typeof o,a=e.exports=function(e){return r[e]||(r[e]=s&&o[e]||(s?o:i)("Symbol."+e))};a.store=r},"51b6":function(e,t,n){n("a3c3"),e.exports=n("584a").Object.assign},"520a":function(e,t,n){"use strict";var r=n("0bfb"),i=RegExp.prototype.exec,o=String.prototype.replace,s=i,a="lastIndex",c=function(){var e=/a/,t=/b*/g;return i.call(e,"a"),i.call(t,"a"),0!==e[a]||0!==t[a]}(),u=void 0!==/()??/.exec("")[1],l=c||u;l&&(s=function(e){var t,n,s,l,f=this;return u&&(n=new RegExp("^"+f.source+"$(?!\\s)",r.call(f))),c&&(t=f[a]),s=i.call(f,e),c&&s&&(f[a]=f.global?s.index+s[0].length:t),u&&s&&s.length>1&&o.call(s[0],n,(function(){for(l=1;l<arguments.length-2;l++)void 0===arguments[l]&&(s[l]=void 0)})),s}),e.exports=s},5270:function(e,t,n){"use strict";var r=n("c532"),i=n("c401"),o=n("2e67"),s=n("2444"),a=n("d925"),c=n("e683");function u(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){u(e),e.baseURL&&!a(e.url)&&(e.url=c(e.baseURL,e.url)),e.headers=e.headers||{},e.data=i(e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers||{}),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]}));var t=e.adapter||s.adapter;return t(e).then((function(t){return u(e),t.data=i(t.data,t.headers,e.transformResponse),t}),(function(t){return o(t)||(u(e),t&&t.response&&(t.response.data=i(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},"52a7":function(e,t){t.f={}.propertyIsEnumerable},"52f6":function(e,t,n){"use strict";(function(t){
- /*!
- * shallow-clone <https://github.com/jonschlinkert/shallow-clone>
- *
- * Copyright (c) 2015-present, Jon Schlinkert.
- * Released under the MIT License.
- */
- const r=Symbol.prototype.valueOf,i=n("ef5d");function o(e,t){switch(i(e)){case"array":return e.slice();case"object":return Object.assign({},e);case"date":return new e.constructor(Number(e));case"map":return new Map(e);case"set":return new Set(e);case"buffer":return u(e);case"symbol":return l(e);case"arraybuffer":return a(e);case"float32array":case"float64array":case"int16array":case"int32array":case"int8array":case"uint16array":case"uint32array":case"uint8clampedarray":case"uint8array":return c(e);case"regexp":return s(e);case"error":return Object.create(e);default:return e}}function s(e){const t=void 0!==e.flags?e.flags:/\w+$/.exec(e)||void 0,n=new e.constructor(e.source,t);return n.lastIndex=e.lastIndex,n}function a(e){const t=new e.constructor(e.byteLength);return new Uint8Array(t).set(new Uint8Array(e)),t}function c(e,t){return new e.constructor(e.buffer,e.byteOffset,e.length)}function u(e){const n=e.length,r=t.allocUnsafe?t.allocUnsafe(n):t.from(n);return e.copy(r),r}function l(e){return r?Object(r.call(e)):{}}e.exports=o}).call(this,n("b639").Buffer)},"536b":function(e,t,n){var r=n("5ca1"),i=Math.asinh;function o(e){return isFinite(e=+e)&&0!=e?e<0?-o(-e):Math.log(e+Math.sqrt(e*e+1)):e}r(r.S+r.F*!(i&&1/i(0)>0),"Math",{asinh:o})},"53e2":function(e,t,n){var r=n("07e3"),i=n("241e"),o=n("5559")("IE_PROTO"),s=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?s:null}},5402:function(e,t,n){"use strict";var r=n("00ce"),i=n("545e"),o=n("2714"),s=r("%TypeError%"),a=r("%WeakMap%",!0),c=r("%Map%",!0),u=i("WeakMap.prototype.get",!0),l=i("WeakMap.prototype.set",!0),f=i("WeakMap.prototype.has",!0),h=i("Map.prototype.get",!0),d=i("Map.prototype.set",!0),p=i("Map.prototype.has",!0),g=function(e,t){for(var n,r=e;null!==(n=r.next);r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n},v=function(e,t){var n=g(e,t);return n&&n.value},y=function(e,t,n){var r=g(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}},m=function(e,t){return!!g(e,t)};e.exports=function(){var e,t,n,r={assert:function(e){if(!r.has(e))throw new s("Side channel does not contain "+o(e))},get:function(r){if(a&&r&&("object"===typeof r||"function"===typeof r)){if(e)return u(e,r)}else if(c){if(t)return h(t,r)}else if(n)return v(n,r)},has:function(r){if(a&&r&&("object"===typeof r||"function"===typeof r)){if(e)return f(e,r)}else if(c){if(t)return p(t,r)}else if(n)return m(n,r);return!1},set:function(r,i){a&&r&&("object"===typeof r||"function"===typeof r)?(e||(e=new a),l(e,r,i)):c?(t||(t=new c),d(t,r,i)):(n||(n={key:{},next:null}),y(n,r,i))}};return r}},"543e":function(e,t,n){"use strict";var r=n("2638"),i=n.n(r),o=n("d282"),s=n("ea8e"),a=n("ba31"),c=Object(o["a"])("loading"),u=c[0],l=c[1];function f(e,t){if("spinner"===t.type){for(var n=[],r=0;r<12;r++)n.push(e("i"));return n}return e("svg",{class:l("circular"),attrs:{viewBox:"25 25 50 50"}},[e("circle",{attrs:{cx:"50",cy:"50",r:"20",fill:"none"}})])}function h(e,t,n){if(n.default){var r,i={fontSize:Object(s["a"])(t.textSize),color:null!=(r=t.textColor)?r:t.color};return e("span",{class:l("text"),style:i},[n.default()])}}function d(e,t,n,r){var o=t.color,c=t.size,u=t.type,d={color:o};if(c){var p=Object(s["a"])(c);d.width=p,d.height=p}return e("div",i()([{class:l([u,{vertical:t.vertical}])},Object(a["b"])(r,!0)]),[e("span",{class:l("spinner",u),style:d},[f(e,t)]),h(e,t,n)])}d.props={color:String,size:[Number,String],vertical:Boolean,textSize:[Number,String],textColor:String,type:{type:String,default:"circular"}},t["a"]=u(d)},"545e":function(e,t,n){"use strict";var r=n("00ce"),i=n("3eb1"),o=i(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"===typeof n&&o(e,".prototype.")>-1?i(n):n}},"549b":function(e,t,n){"use strict";var r=n("d864"),i=n("63b6"),o=n("241e"),s=n("b0dc"),a=n("3702"),c=n("b447"),u=n("20fd"),l=n("7cd6");i(i.S+i.F*!n("4ee1")((function(e){Array.from(e)})),"Array",{from:function(e){var t,n,i,f,h=o(e),d="function"==typeof this?this:Array,p=arguments.length,g=p>1?arguments[1]:void 0,v=void 0!==g,y=0,m=l(h);if(v&&(g=r(g,p>2?arguments[2]:void 0,2)),void 0==m||d==Array&&a(m))for(t=c(h.length),n=new d(t);t>y;y++)u(n,y,v?g(h[y],y):h[y]);else for(f=m.call(h),n=new d;!(i=f.next()).done;y++)u(n,y,v?s(f,g,[i.value,y],!0):i.value);return n.length=y,n}})},"54a8":function(e,t,n){"use strict";var r=n("5ca1"),i=n("79e5"),o=n("bef9"),s=1..toPrecision;r(r.P+r.F*(i((function(){return"1"!==s.call(1,void 0)}))||!i((function(){s.call({})}))),"Number",{toPrecision:function(e){var t=o(this,"Number#toPrecision: incorrect invocation!");return void 0===e?s.call(t):s.call(t,e)}})},"551c":function(e,t,n){"use strict";var r,i,o,s,a=n("2d00"),c=n("7726"),u=n("9b43"),l=n("23c6"),f=n("5ca1"),h=n("d3f4"),d=n("d8e8"),p=n("f605"),g=n("4a59"),v=n("ebd6"),y=n("1991").set,m=n("8079")(),I=n("a5b8"),_=n("9c80"),T=n("a25f"),C=n("bcaa"),M="Promise",E=c.TypeError,A=c.process,S=A&&A.versions,N=S&&S.v8||"",b=c[M],w="process"==l(A),O=function(){},R=i=I.f,D=!!function(){try{var e=b.resolve(1),t=(e.constructor={})[n("2b4c")("species")]=function(e){e(O,O)};return(w||"function"==typeof PromiseRejectionEvent)&&e.then(O)instanceof t&&0!==N.indexOf("6.6")&&-1===T.indexOf("Chrome/66")}catch(r){}}(),L=function(e){var t;return!(!h(e)||"function"!=typeof(t=e.then))&&t},U=function(e,t){if(!e._n){e._n=!0;var n=e._c;m((function(){var r=e._v,i=1==e._s,o=0,s=function(t){var n,o,s,a=i?t.ok:t.fail,c=t.resolve,u=t.reject,l=t.domain;try{a?(i||(2==e._h&&j(e),e._h=1),!0===a?n=r:(l&&l.enter(),n=a(r),l&&(l.exit(),s=!0)),n===t.promise?u(E("Promise-chain cycle")):(o=L(n))?o.call(n,c,u):c(n)):u(r)}catch(f){l&&!s&&l.exit(),u(f)}};while(n.length>o)s(n[o++]);e._c=[],e._n=!1,t&&!e._h&&x(e)}))}},x=function(e){y.call(c,(function(){var t,n,r,i=e._v,o=P(e);if(o&&(t=_((function(){w?A.emit("unhandledRejection",i,e):(n=c.onunhandledrejection)?n({promise:e,reason:i}):(r=c.console)&&r.error&&r.error("Unhandled promise rejection",i)})),e._h=w||P(e)?2:1),e._a=void 0,o&&t.e)throw t.v}))},P=function(e){return 1!==e._h&&0===(e._a||e._c).length},j=function(e){y.call(c,(function(){var t;w?A.emit("rejectionHandled",e):(t=c.onrejectionhandled)&&t({promise:e,reason:e._v})}))},k=function(e){var t=this;t._d||(t._d=!0,t=t._w||t,t._v=e,t._s=2,t._a||(t._a=t._c.slice()),U(t,!0))},z=function(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw E("Promise can't be resolved itself");(t=L(e))?m((function(){var r={_w:n,_d:!1};try{t.call(e,u(z,r,1),u(k,r,1))}catch(i){k.call(r,i)}})):(n._v=e,n._s=1,U(n,!1))}catch(r){k.call({_w:n,_d:!1},r)}}};D||(b=function(e){p(this,b,M,"_h"),d(e),r.call(this);try{e(u(z,this,1),u(k,this,1))}catch(t){k.call(this,t)}},r=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},r.prototype=n("dcbc")(b.prototype,{then:function(e,t){var n=R(v(this,b));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=w?A.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&U(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),o=function(){var e=new r;this.promise=e,this.resolve=u(z,e,1),this.reject=u(k,e,1)},I.f=R=function(e){return e===b||e===s?new o(e):i(e)}),f(f.G+f.W+f.F*!D,{Promise:b}),n("7f20")(b,M),n("7a56")(M),s=n("8378")[M],f(f.S+f.F*!D,M,{reject:function(e){var t=R(this),n=t.reject;return n(e),t.promise}}),f(f.S+f.F*(a||!D),M,{resolve:function(e){return C(a&&this===s?b:this,e)}}),f(f.S+f.F*!(D&&n("5cc5")((function(e){b.all(e)["catch"](O)}))),M,{all:function(e){var t=this,n=R(t),r=n.resolve,i=n.reject,o=_((function(){var n=[],o=0,s=1;g(e,!1,(function(e){var a=o++,c=!1;n.push(void 0),s++,t.resolve(e).then((function(e){c||(c=!0,n[a]=e,--s||r(n))}),i)})),--s||r(n)}));return o.e&&i(o.v),n.promise},race:function(e){var t=this,n=R(t),r=n.reject,i=_((function(){g(e,!1,(function(e){t.resolve(e).then(n.resolve,r)}))}));return i.e&&r(i.v),n.promise}})},5537:function(e,t,n){var r=n("8378"),i=n("7726"),o="__core-js_shared__",s=i[o]||(i[o]={});(e.exports=function(e,t){return s[e]||(s[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n("2d00")?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},5559:function(e,t,n){var r=n("dbdb")("keys"),i=n("62a0");e.exports=function(e){return r[e]||(r[e]=i(e))}},"55dd":function(e,t,n){"use strict";var r=n("5ca1"),i=n("d8e8"),o=n("4bf8"),s=n("79e5"),a=[].sort,c=[1,2,3];r(r.P+r.F*(s((function(){c.sort(void 0)}))||!s((function(){c.sort(null)}))||!n("2f21")(a)),"Array",{sort:function(e){return void 0===e?a.call(o(this)):a.call(o(this),i(e))}})},5695:function(e,t,n){var r=n("5ca1"),i=n("77f1"),o=String.fromCharCode,s=String.fromCodePoint;r(r.S+r.F*(!!s&&1!=s.length),"String",{fromCodePoint:function(e){var t,n=[],r=arguments.length,s=0;while(r>s){if(t=+arguments[s++],i(t,1114111)!==t)throw RangeError(t+" is not a valid code point");n.push(t<65536?o(t):o(55296+((t-=65536)>>10),t%1024+56320))}return n.join("")}})},"57e7":function(e,t,n){"use strict";var r=n("5ca1"),i=n("c366")(!1),o=[].indexOf,s=!!o&&1/[1].indexOf(1,-0)<0;r(r.P+r.F*(s||!n("2f21")(o)),"Array",{indexOf:function(e){return s?o.apply(this,arguments)||0:i(this,e,arguments[1])}})},"57f0":function(e,t,n){var r=n("d3f4");n("5eda")("isSealed",(function(e){return function(t){return!r(t)||!!e&&e(t)}}))},"584a":function(e,t){var n=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},"58b2":function(e,t,n){var r=n("5ca1");r(r.S+r.F*!n("9e1e"),"Object",{defineProperties:n("1495")})},"58e6":function(e,t,n){"use strict";var r=n("d282"),i=n("1325"),o=n("a8c1"),s=n("3875"),a=n("543e"),c=Object(r["a"])("pull-refresh"),u=c[0],l=c[1],f=c[2],h=50,d=["pulling","loosing","success"];t["a"]=u({mixins:[s["a"]],props:{disabled:Boolean,successText:String,pullingText:String,loosingText:String,loadingText:String,pullDistance:[Number,String],value:{type:Boolean,required:!0},successDuration:{type:[Number,String],default:500},animationDuration:{type:[Number,String],default:300},headHeight:{type:[Number,String],default:h}},data:function(){return{status:"normal",distance:0,duration:0}},computed:{touchable:function(){return"loading"!==this.status&&"success"!==this.status&&!this.disabled},headStyle:function(){if(this.headHeight!==h)return{height:this.headHeight+"px"}}},watch:{value:function(e){this.duration=this.animationDuration,e?this.setStatus(+this.headHeight,!0):this.slots("success")||this.successText?this.showSuccessTip():this.setStatus(0,!1)}},mounted:function(){this.bindTouchEvent(this.$refs.track),this.scrollEl=Object(o["c"])(this.$el)},methods:{checkPullStart:function(e){this.ceiling=0===Object(o["b"])(this.scrollEl),this.ceiling&&(this.duration=0,this.touchStart(e))},onTouchStart:function(e){this.touchable&&this.checkPullStart(e)},onTouchMove:function(e){this.touchable&&(this.ceiling||this.checkPullStart(e),this.touchMove(e),this.ceiling&&this.deltaY>=0&&"vertical"===this.direction&&(Object(i["c"])(e),this.setStatus(this.ease(this.deltaY))))},onTouchEnd:function(){var e=this;this.touchable&&this.ceiling&&this.deltaY&&(this.duration=this.animationDuration,"loosing"===this.status?(this.setStatus(+this.headHeight,!0),this.$emit("input",!0),this.$nextTick((function(){e.$emit("refresh")}))):this.setStatus(0))},ease:function(e){var t=+(this.pullDistance||this.headHeight);return e>t&&(e=e<2*t?t+(e-t)/2:1.5*t+(e-2*t)/4),Math.round(e)},setStatus:function(e,t){var n;n=t?"loading":0===e?"normal":e<(this.pullDistance||this.headHeight)?"pulling":"loosing",this.distance=e,n!==this.status&&(this.status=n)},genStatus:function(){var e=this.$createElement,t=this.status,n=this.distance,r=this.slots(t,{distance:n});if(r)return r;var i=[],o=this[t+"Text"]||f(t);return-1!==d.indexOf(t)&&i.push(e("div",{class:l("text")},[o])),"loading"===t&&i.push(e(a["a"],{attrs:{size:"16"}},[o])),i},showSuccessTip:function(){var e=this;this.status="success",setTimeout((function(){e.setStatus(0)}),this.successDuration)}},render:function(){var e=arguments[0],t={transitionDuration:this.duration+"ms",transform:this.distance?"translate3d(0,"+this.distance+"px, 0)":""};return e("div",{class:l()},[e("div",{ref:"track",class:l("track"),style:t},[e("div",{class:l("head"),style:this.headStyle},[this.genStatus()]),this.slots()])])}})},"597f":function(e,t){e.exports=function(e,t,n,r){var i,o=0;function s(){var s=this,a=Number(new Date)-o,c=arguments;function u(){o=Number(new Date),n.apply(s,c)}function l(){i=void 0}r&&!i&&u(),i&&clearTimeout(i),void 0===r&&a>e?u():!0!==t&&(i=setTimeout(r?l:u,void 0===r?e-a:e))}return"boolean"!==typeof t&&(r=n,n=t,t=void 0),s}},"5a0c":function(e,t,n){!function(t,n){e.exports=n()}(0,(function(){"use strict";var e=1e3,t=6e4,n=36e5,r="millisecond",i="second",o="minute",s="hour",a="day",c="week",u="month",l="quarter",f="year",h="date",d="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},y=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},m={s:y,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?"+":"-")+y(r,2,"0")+":"+y(i,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,u),o=n-i<0,s=t.clone().add(r+(o?-1:1),u);return+(-(r+(n-i)/(o?i-s:s-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:u,y:f,w:c,d:a,D:h,h:s,m:o,s:i,ms:r,Q:l}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},I="en",_={};_[I]=v;var T=function(e){return e instanceof A},C=function e(t,n,r){var i;if(!t)return I;if("string"==typeof t){var o=t.toLowerCase();_[o]&&(i=o),n&&(_[o]=n,i=o);var s=t.split("-");if(!i&&s.length>1)return e(s[0])}else{var a=t.name;_[a]=t,i=a}return!r&&i&&(I=i),i||!r&&I},M=function(e,t){if(T(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new A(n)},E=m;E.l=C,E.i=T,E.w=function(e,t){return M(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var A=function(){function v(e){this.$L=C(e.locale,null,!0),this.parse(e)}var y=v.prototype;return y.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(E.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(p);if(r){var i=r[2]-1||0,o=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},y.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},y.$utils=function(){return E},y.isValid=function(){return!(this.$d.toString()===d)},y.isSame=function(e,t){var n=M(e);return this.startOf(t)<=n&&n<=this.endOf(t)},y.isAfter=function(e,t){return M(e)<this.startOf(t)},y.isBefore=function(e,t){return this.endOf(t)<M(e)},y.$g=function(e,t,n){return E.u(e)?this[t]:this.set(n,e)},y.unix=function(){return Math.floor(this.valueOf()/1e3)},y.valueOf=function(){return this.$d.getTime()},y.startOf=function(e,t){var n=this,r=!!E.u(t)||t,l=E.p(e),d=function(e,t){var i=E.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(a)},p=function(e,t){return E.w(n.toDate()[e].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},g=this.$W,v=this.$M,y=this.$D,m="set"+(this.$u?"UTC":"");switch(l){case f:return r?d(1,0):d(31,11);case u:return r?d(1,v):d(0,v+1);case c:var I=this.$locale().weekStart||0,_=(g<I?g+7:g)-I;return d(r?y-_:y+(6-_),v);case a:case h:return p(m+"Hours",0);case s:return p(m+"Minutes",1);case o:return p(m+"Seconds",2);case i:return p(m+"Milliseconds",3);default:return this.clone()}},y.endOf=function(e){return this.startOf(e,!1)},y.$set=function(e,t){var n,c=E.p(e),l="set"+(this.$u?"UTC":""),d=(n={},n[a]=l+"Date",n[h]=l+"Date",n[u]=l+"Month",n[f]=l+"FullYear",n[s]=l+"Hours",n[o]=l+"Minutes",n[i]=l+"Seconds",n[r]=l+"Milliseconds",n)[c],p=c===a?this.$D+(t-this.$W):t;if(c===u||c===f){var g=this.clone().set(h,1);g.$d[d](p),g.init(),this.$d=g.set(h,Math.min(this.$D,g.daysInMonth())).$d}else d&&this.$d[d](p);return this.init(),this},y.set=function(e,t){return this.clone().$set(e,t)},y.get=function(e){return this[E.p(e)]()},y.add=function(r,l){var h,d=this;r=Number(r);var p=E.p(l),g=function(e){var t=M(d);return E.w(t.date(t.date()+Math.round(e*r)),d)};if(p===u)return this.set(u,this.$M+r);if(p===f)return this.set(f,this.$y+r);if(p===a)return g(1);if(p===c)return g(7);var v=(h={},h[o]=t,h[s]=n,h[i]=e,h)[p]||1,y=this.$d.getTime()+r*v;return E.w(y,this)},y.subtract=function(e,t){return this.add(-1*e,t)},y.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||d;var r=e||"YYYY-MM-DDTHH:mm:ssZ",i=E.z(this),o=this.$H,s=this.$m,a=this.$M,c=n.weekdays,u=n.months,l=function(e,n,i,o){return e&&(e[n]||e(t,r))||i[n].slice(0,o)},f=function(e){return E.s(o%12||12,e,"0")},h=n.meridiem||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r},p={YY:String(this.$y).slice(-2),YYYY:this.$y,M:a+1,MM:E.s(a+1,2,"0"),MMM:l(n.monthsShort,a,u,3),MMMM:l(u,a),D:this.$D,DD:E.s(this.$D,2,"0"),d:String(this.$W),dd:l(n.weekdaysMin,this.$W,c,2),ddd:l(n.weekdaysShort,this.$W,c,3),dddd:c[this.$W],H:String(o),HH:E.s(o,2,"0"),h:f(1),hh:f(2),a:h(o,s,!0),A:h(o,s,!1),m:String(s),mm:E.s(s,2,"0"),s:String(this.$s),ss:E.s(this.$s,2,"0"),SSS:E.s(this.$ms,3,"0"),Z:i};return r.replace(g,(function(e,t){return t||p[e]||i.replace(":","")}))},y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},y.diff=function(r,h,d){var p,g=E.p(h),v=M(r),y=(v.utcOffset()-this.utcOffset())*t,m=this-v,I=E.m(this,v);return I=(p={},p[f]=I/12,p[u]=I,p[l]=I/3,p[c]=(m-y)/6048e5,p[a]=(m-y)/864e5,p[s]=m/n,p[o]=m/t,p[i]=m/e,p)[g]||m,d?I:E.a(I)},y.daysInMonth=function(){return this.endOf(u).$D},y.$locale=function(){return _[this.$L]},y.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=C(e,t,!0);return r&&(n.$L=r),n},y.clone=function(){return E.w(this.$d,this)},y.toDate=function(){return new Date(this.valueOf())},y.toJSON=function(){return this.isValid()?this.toISOString():null},y.toISOString=function(){return this.$d.toISOString()},y.toString=function(){return this.$d.toUTCString()},v}(),S=A.prototype;return M.prototype=S,[["$ms",r],["$s",i],["$m",o],["$H",s],["$W",a],["$M",u],["$y",f],["$D",h]].forEach((function(e){S[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),M.extend=function(e,t){return e.$i||(e(t,A,M),e.$i=!0),M},M.locale=C,M.isDayjs=T,M.unix=function(e){return M(1e3*e)},M.en=_[I],M.Ls=_,M.p={},M}))},"5b4e":function(e,t,n){var r=n("36c3"),i=n("b447"),o=n("0fc9");e.exports=function(e){return function(t,n,s){var a,c=r(t),u=i(c.length),l=o(s,u);if(e&&n!=n){while(u>l)if(a=c[l++],a!=a)return!0}else for(;u>l;l++)if((e||l in c)&&c[l]===n)return e||l||0;return!e&&-1}}},"5bba":function(e,t,n){n("9d98");var r=n("584a").Object;e.exports=function(e,t){return r.defineProperties(e,t)}},"5c95":function(e,t,n){var r=n("35e8");e.exports=function(e,t,n){for(var i in t)n&&e[i]?e[i]=t[i]:r(e,i,t[i]);return e}},"5ca1":function(e,t,n){var r=n("7726"),i=n("8378"),o=n("32e9"),s=n("2aba"),a=n("9b43"),c="prototype",u=function(e,t,n){var l,f,h,d,p=e&u.F,g=e&u.G,v=e&u.S,y=e&u.P,m=e&u.B,I=g?r:v?r[t]||(r[t]={}):(r[t]||{})[c],_=g?i:i[t]||(i[t]={}),T=_[c]||(_[c]={});for(l in g&&(n=t),n)f=!p&&I&&void 0!==I[l],h=(f?I:n)[l],d=m&&f?a(h,r):y&&"function"==typeof h?a(Function.call,h):h,I&&s(I,l,h,e&u.U),_[l]!=h&&o(_,l,d),y&&T[l]!=h&&(T[l]=h)};r.core=i,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},"5cc5":function(e,t,n){var r=n("2b4c")("iterator"),i=!1;try{var o=[7][r]();o["return"]=function(){i=!0},Array.from(o,(function(){throw 2}))}catch(s){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var o=[7],a=o[r]();a.next=function(){return{done:n=!0}},o[r]=function(){return a},e(o)}catch(s){}return n}},"5d40":function(e,t,n){n("28e4")("WeakMap")},"5d58":function(e,t,n){e.exports=n("d8d6")},"5d90":function(e,t,n){n("28e4")("WeakSet")},"5dbc":function(e,t,n){var r=n("d3f4"),i=n("8b97").set;e.exports=function(e,t,n){var o,s=t.constructor;return s!==n&&"function"==typeof s&&(o=s.prototype)!==n.prototype&&r(o)&&i&&i(e,o),e}},"5df2":function(e,t,n){var r=n("5ca1"),i=n("d752");r(r.S+r.F*(Number.parseFloat!=i),"Number",{parseFloat:i})},"5df3":function(e,t,n){"use strict";var r=n("02f4")(!0);n("01f9")(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})}))},"5e83":function(e,t,n){e.exports=n("8580")},"5eda":function(e,t,n){var r=n("5ca1"),i=n("8378"),o=n("79e5");e.exports=function(e,t){var n=(i.Object||{})[e]||Object[e],s={};s[e]=t(n),r(r.S+r.F*o((function(){n(1)})),"Object",s)}},"5f1b":function(e,t,n){"use strict";var r=n("23c6"),i=RegExp.prototype.exec;e.exports=function(e,t){var n=e.exec;if("function"===typeof n){var o=n.call(e,t);if("object"!==typeof o)throw new TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==r(e))throw new TypeError("RegExp#exec called on incompatible receiver");return i.call(e,t)}},"5fbe":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("1325"),i=0;function o(e){var t="binded_"+i++;function n(){this[t]||(e.call(this,r["b"],!0),this[t]=!0)}function o(){this[t]&&(e.call(this,r["a"],!1),this[t]=!1)}return{mounted:n,activated:n,deactivated:o,beforeDestroy:o}}},6095:function(e,t,n){"use strict";var r=n("5ca1"),i=n("0a49")(4);r(r.P+r.F*!n("2f21")([].every,!0),"Array",{every:function(e){return i(this,e,arguments[1])}})},"613b":function(e,t,n){var r=n("5537")("keys"),i=n("ca5a");e.exports=function(e){return r[e]||(r[e]=i(e))}},"626a":function(e,t,n){var r=n("2d95");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},"62a0":function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},"62e4":function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},"63b6":function(e,t,n){var r=n("e53d"),i=n("584a"),o=n("d864"),s=n("35e8"),a=n("07e3"),c="prototype",u=function(e,t,n){var l,f,h,d=e&u.F,p=e&u.G,g=e&u.S,v=e&u.P,y=e&u.B,m=e&u.W,I=p?i:i[t]||(i[t]={}),_=I[c],T=p?r:g?r[t]:(r[t]||{})[c];for(l in p&&(n=t),n)f=!d&&T&&void 0!==T[l],f&&a(I,l)||(h=f?T[l]:n[l],I[l]=p&&"function"!=typeof T[l]?n[l]:y&&f?o(h,r):m&&T[l]==h?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t[c]=e[c],t}(h):v&&"function"==typeof h?o(Function.call,h):h,v&&((I.virtual||(I.virtual={}))[l]=h,e&u.R&&_&&!_[l]&&s(_,l,h)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},"63d9":function(e,t,n){n("ec30")("Float32",4,(function(e){return function(t,n,r){return e(this,t,n,r)}}))},"643e":function(e,t,n){"use strict";var r=n("dcbc"),i=n("67ab").getWeak,o=n("cb7c"),s=n("d3f4"),a=n("f605"),c=n("4a59"),u=n("0a49"),l=n("69a8"),f=n("b39a"),h=u(5),d=u(6),p=0,g=function(e){return e._l||(e._l=new v)},v=function(){this.a=[]},y=function(e,t){return h(e.a,(function(e){return e[0]===t}))};v.prototype={get:function(e){var t=y(this,e);if(t)return t[1]},has:function(e){return!!y(this,e)},set:function(e,t){var n=y(this,e);n?n[1]=t:this.a.push([e,t])},delete:function(e){var t=d(this.a,(function(t){return t[0]===e}));return~t&&this.a.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,n,o){var u=e((function(e,r){a(e,u,t,"_i"),e._t=t,e._i=p++,e._l=void 0,void 0!=r&&c(r,n,e[o],e)}));return r(u.prototype,{delete:function(e){if(!s(e))return!1;var n=i(e);return!0===n?g(f(this,t))["delete"](e):n&&l(n,this._i)&&delete n[this._i]},has:function(e){if(!s(e))return!1;var n=i(e);return!0===n?g(f(this,t)).has(e):n&&l(n,this._i)}}),u},def:function(e,t,n){var r=i(o(t),!0);return!0===r?g(e).set(t,n):r[e._i]=n,e},ufstore:g}},"64d5":function(e,t,n){"use strict";var r=n("5ca1"),i=n("4bf8"),o=n("6a99"),s=n("38fd"),a=n("11e9").f;n("9e1e")&&r(r.P+n("c5b4"),"Object",{__lookupSetter__:function(e){var t,n=i(this),r=o(e,!0);do{if(t=a(n,r))return t.set}while(n=s(n))}})},"656e":function(e,t,n){"use strict";var r=n("79aa");function i(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)}e.exports.f=function(e){return new i(e)}},6612:function(e,t,n){var r,i;
- /*! @preserve
- * numeral.js
- * version : 2.0.6
- * author : Adam Draper
- * license : MIT
- * http://adamwdraper.github.com/Numeral-js/
- */(function(o,s){r=s,i="function"===typeof r?r.call(t,n,t,e):r,void 0===i||(e.exports=i)})(0,(function(){var e,t,n="2.0.6",r={},i={},o={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},s={currentLocale:o.currentLocale,zeroFormat:o.zeroFormat,nullFormat:o.nullFormat,defaultFormat:o.defaultFormat,scalePercentBy100:o.scalePercentBy100};function a(e,t){this._input=e,this._value=t}return e=function(n){var i,o,c,u;if(e.isNumeral(n))i=n.value();else if(0===n||"undefined"===typeof n)i=0;else if(null===n||t.isNaN(n))i=null;else if("string"===typeof n)if(s.zeroFormat&&n===s.zeroFormat)i=0;else if(s.nullFormat&&n===s.nullFormat||!n.replace(/[^0-9]+/g,"").length)i=null;else{for(o in r)if(u="function"===typeof r[o].regexps.unformat?r[o].regexps.unformat():r[o].regexps.unformat,u&&n.match(u)){c=r[o].unformat;break}c=c||e._.stringToNumber,i=c(n)}else i=Number(n)||null;return new a(n,i)},e.version=n,e.isNumeral=function(e){return e instanceof a},e._=t={numberToFormat:function(t,n,r){var o,s,a,c,u,l,f,h=i[e.options.currentLocale],d=!1,p=!1,g=0,v="",y=1e12,m=1e9,I=1e6,_=1e3,T="",C=!1;if(t=t||0,s=Math.abs(t),e._.includes(n,"(")?(d=!0,n=n.replace(/[\(|\)]/g,"")):(e._.includes(n,"+")||e._.includes(n,"-"))&&(u=e._.includes(n,"+")?n.indexOf("+"):t<0?n.indexOf("-"):-1,n=n.replace(/[\+|\-]/g,"")),e._.includes(n,"a")&&(o=n.match(/a(k|m|b|t)?/),o=!!o&&o[1],e._.includes(n," a")&&(v=" "),n=n.replace(new RegExp(v+"a[kmbt]?"),""),s>=y&&!o||"t"===o?(v+=h.abbreviations.trillion,t/=y):s<y&&s>=m&&!o||"b"===o?(v+=h.abbreviations.billion,t/=m):s<m&&s>=I&&!o||"m"===o?(v+=h.abbreviations.million,t/=I):(s<I&&s>=_&&!o||"k"===o)&&(v+=h.abbreviations.thousand,t/=_)),e._.includes(n,"[.]")&&(p=!0,n=n.replace("[.]",".")),a=t.toString().split(".")[0],c=n.split(".")[1],l=n.indexOf(","),g=(n.split(".")[0].split(",")[0].match(/0/g)||[]).length,c?(e._.includes(c,"[")?(c=c.replace("]",""),c=c.split("["),T=e._.toFixed(t,c[0].length+c[1].length,r,c[1].length)):T=e._.toFixed(t,c.length,r),a=T.split(".")[0],T=e._.includes(T,".")?h.delimiters.decimal+T.split(".")[1]:"",p&&0===Number(T.slice(1))&&(T="")):a=e._.toFixed(t,0,r),v&&!o&&Number(a)>=1e3&&v!==h.abbreviations.trillion)switch(a=String(Number(a)/1e3),v){case h.abbreviations.thousand:v=h.abbreviations.million;break;case h.abbreviations.million:v=h.abbreviations.billion;break;case h.abbreviations.billion:v=h.abbreviations.trillion;break}if(e._.includes(a,"-")&&(a=a.slice(1),C=!0),a.length<g)for(var M=g-a.length;M>0;M--)a="0"+a;return l>-1&&(a=a.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+h.delimiters.thousands)),0===n.indexOf(".")&&(a=""),f=a+T+(v||""),d?f=(d&&C?"(":"")+f+(d&&C?")":""):u>=0?f=0===u?(C?"-":"+")+f:f+(C?"-":"+"):C&&(f="-"+f),f},stringToNumber:function(e){var t,n,r,o=i[s.currentLocale],a=e,c={thousand:3,million:6,billion:9,trillion:12};if(s.zeroFormat&&e===s.zeroFormat)n=0;else if(s.nullFormat&&e===s.nullFormat||!e.replace(/[^0-9]+/g,"").length)n=null;else{for(t in n=1,"."!==o.delimiters.decimal&&(e=e.replace(/\./g,"").replace(o.delimiters.decimal,".")),c)if(r=new RegExp("[^a-zA-Z]"+o.abbreviations[t]+"(?:\\)|(\\"+o.currency.symbol+")?(?:\\))?)?$"),a.match(r)){n*=Math.pow(10,c[t]);break}n*=(e.split("-").length+Math.min(e.split("(").length-1,e.split(")").length-1))%2?1:-1,e=e.replace(/[^0-9\.]+/g,""),n*=Number(e)}return n},isNaN:function(e){return"number"===typeof e&&isNaN(e)},includes:function(e,t){return-1!==e.indexOf(t)},insert:function(e,t,n){return e.slice(0,n)+t+e.slice(n)},reduce:function(e,t){if(null===this)throw new TypeError("Array.prototype.reduce called on null or undefined");if("function"!==typeof t)throw new TypeError(t+" is not a function");var n,r=Object(e),i=r.length>>>0,o=0;if(3===arguments.length)n=arguments[2];else{while(o<i&&!(o in r))o++;if(o>=i)throw new TypeError("Reduce of empty array with no initial value");n=r[o++]}for(;o<i;o++)o in r&&(n=t(n,r[o],o,r));return n},multiplier:function(e){var t=e.toString().split(".");return t.length<2?1:Math.pow(10,t[1].length)},correctionFactor:function(){var e=Array.prototype.slice.call(arguments);return e.reduce((function(e,n){var r=t.multiplier(n);return e>r?e:r}),1)},toFixed:function(e,t,n,r){var i,o,s,a,c=e.toString().split("."),u=t-(r||0);return i=2===c.length?Math.min(Math.max(c[1].length,u),t):u,s=Math.pow(10,i),a=(n(e+"e+"+i)/s).toFixed(i),r>t-i&&(o=new RegExp("\\.?0{1,"+(r-(t-i))+"}$"),a=a.replace(o,"")),a}},e.options=s,e.formats=r,e.locales=i,e.locale=function(e){return e&&(s.currentLocale=e.toLowerCase()),s.currentLocale},e.localeData=function(e){if(!e)return i[s.currentLocale];if(e=e.toLowerCase(),!i[e])throw new Error("Unknown locale : "+e);return i[e]},e.reset=function(){for(var e in o)s[e]=o[e]},e.zeroFormat=function(e){s.zeroFormat="string"===typeof e?e:null},e.nullFormat=function(e){s.nullFormat="string"===typeof e?e:null},e.defaultFormat=function(e){s.defaultFormat="string"===typeof e?e:"0.0"},e.register=function(e,t,n){if(t=t.toLowerCase(),this[e+"s"][t])throw new TypeError(t+" "+e+" already registered.");return this[e+"s"][t]=n,n},e.validate=function(t,n){var r,i,o,s,a,c,u,l;if("string"!==typeof t&&(t+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",t)),t=t.trim(),t.match(/^\d+$/))return!0;if(""===t)return!1;try{u=e.localeData(n)}catch(f){u=e.localeData(e.locale())}return o=u.currency.symbol,a=u.abbreviations,r=u.delimiters.decimal,i="."===u.delimiters.thousands?"\\.":u.delimiters.thousands,l=t.match(/^[^\d]+/),(null===l||(t=t.substr(1),l[0]===o))&&(l=t.match(/[^\d]+$/),(null===l||(t=t.slice(0,-1),l[0]===a.thousand||l[0]===a.million||l[0]===a.billion||l[0]===a.trillion))&&(c=new RegExp(i+"{2}"),!t.match(/[^\d.,]/g)&&(s=t.split(r),!(s.length>2)&&(s.length<2?!!s[0].match(/^\d+.*\d$/)&&!s[0].match(c):1===s[0].length?!!s[0].match(/^\d+$/)&&!s[0].match(c)&&!!s[1].match(/^\d+$/):!!s[0].match(/^\d+.*\d$/)&&!s[0].match(c)&&!!s[1].match(/^\d+$/)))))},e.fn=a.prototype={clone:function(){return e(this)},format:function(t,n){var i,o,a,c=this._value,u=t||s.defaultFormat;if(n=n||Math.round,0===c&&null!==s.zeroFormat)o=s.zeroFormat;else if(null===c&&null!==s.nullFormat)o=s.nullFormat;else{for(i in r)if(u.match(r[i].regexps.format)){a=r[i].format;break}a=a||e._.numberToFormat,o=a(c,u,n)}return o},value:function(){return this._value},input:function(){return this._input},set:function(e){return this._value=Number(e),this},add:function(e){var n=t.correctionFactor.call(null,this._value,e);function r(e,t,r,i){return e+Math.round(n*t)}return this._value=t.reduce([this._value,e],r,0)/n,this},subtract:function(e){var n=t.correctionFactor.call(null,this._value,e);function r(e,t,r,i){return e-Math.round(n*t)}return this._value=t.reduce([e],r,Math.round(this._value*n))/n,this},multiply:function(e){function n(e,n,r,i){var o=t.correctionFactor(e,n);return Math.round(e*o)*Math.round(n*o)/Math.round(o*o)}return this._value=t.reduce([this._value,e],n,1),this},divide:function(e){function n(e,n,r,i){var o=t.correctionFactor(e,n);return Math.round(e*o)/Math.round(n*o)}return this._value=t.reduce([this._value,e],n),this},difference:function(t){return Math.abs(e(this._value).subtract(t).value())}},e.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"$"}}),function(){e.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(t,n,r){var i,o=e._.includes(n," BPS")?" ":"";return t*=1e4,n=n.replace(/\s?BPS/,""),i=e._.numberToFormat(t,n,r),e._.includes(i,")")?(i=i.split(""),i.splice(-1,0,o+"BPS"),i=i.join("")):i=i+o+"BPS",i},unformat:function(t){return+(1e-4*e._.stringToNumber(t)).toFixed(15)}})}(),function(){var t={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},n={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},r=t.suffixes.concat(n.suffixes.filter((function(e){return t.suffixes.indexOf(e)<0}))),i=r.join("|");i="("+i.replace("B","B(?!PS)")+")",e.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(i)},format:function(r,i,o){var s,a,c,u,l=e._.includes(i,"ib")?n:t,f=e._.includes(i," b")||e._.includes(i," ib")?" ":"";for(i=i.replace(/\s?i?b/,""),a=0;a<=l.suffixes.length;a++)if(c=Math.pow(l.base,a),u=Math.pow(l.base,a+1),null===r||0===r||r>=c&&r<u){f+=l.suffixes[a],c>0&&(r/=c);break}return s=e._.numberToFormat(r,i,o),s+f},unformat:function(r){var i,o,s=e._.stringToNumber(r);if(s){for(i=t.suffixes.length-1;i>=0;i--){if(e._.includes(r,t.suffixes[i])){o=Math.pow(t.base,i);break}if(e._.includes(r,n.suffixes[i])){o=Math.pow(n.base,i);break}}s*=o||1}return s}})}(),function(){e.register("format","currency",{regexps:{format:/(\$)/},format:function(t,n,r){var i,o,s,a=e.locales[e.options.currentLocale],c={before:n.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:n.match(/([\+|\-|\)|\s|\$]*)$/)[0]};for(n=n.replace(/\s?\$\s?/,""),i=e._.numberToFormat(t,n,r),t>=0?(c.before=c.before.replace(/[\-\(]/,""),c.after=c.after.replace(/[\-\)]/,"")):t<0&&!e._.includes(c.before,"-")&&!e._.includes(c.before,"(")&&(c.before="-"+c.before),s=0;s<c.before.length;s++)switch(o=c.before[s],o){case"$":i=e._.insert(i,a.currency.symbol,s);break;case" ":i=e._.insert(i," ",s+a.currency.symbol.length-1);break}for(s=c.after.length-1;s>=0;s--)switch(o=c.after[s],o){case"$":i=s===c.after.length-1?i+a.currency.symbol:e._.insert(i,a.currency.symbol,-(c.after.length-(1+s)));break;case" ":i=s===c.after.length-1?i+" ":e._.insert(i," ",-(c.after.length-(1+s)+a.currency.symbol.length-1));break}return i}})}(),function(){e.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(t,n,r){var i,o="number"!==typeof t||e._.isNaN(t)?"0e+0":t.toExponential(),s=o.split("e");return n=n.replace(/e[\+|\-]{1}0/,""),i=e._.numberToFormat(Number(s[0]),n,r),i+"e"+s[1]},unformat:function(t){var n=e._.includes(t,"e+")?t.split("e+"):t.split("e-"),r=Number(n[0]),i=Number(n[1]);function o(t,n,r,i){var o=e._.correctionFactor(t,n),s=t*o*(n*o)/(o*o);return s}return i=e._.includes(t,"e-")?i*=-1:i,e._.reduce([r,Math.pow(10,i)],o,1)}})}(),function(){e.register("format","ordinal",{regexps:{format:/(o)/},format:function(t,n,r){var i,o=e.locales[e.options.currentLocale],s=e._.includes(n," o")?" ":"";return n=n.replace(/\s?o/,""),s+=o.ordinal(t),i=e._.numberToFormat(t,n,r),i+s}})}(),function(){e.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(t,n,r){var i,o=e._.includes(n," %")?" ":"";return e.options.scalePercentBy100&&(t*=100),n=n.replace(/\s?\%/,""),i=e._.numberToFormat(t,n,r),e._.includes(i,")")?(i=i.split(""),i.splice(-1,0,o+"%"),i=i.join("")):i=i+o+"%",i},unformat:function(t){var n=e._.stringToNumber(t);return e.options.scalePercentBy100?.01*n:n}})}(),function(){e.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(e,t,n){var r=Math.floor(e/60/60),i=Math.floor((e-60*r*60)/60),o=Math.round(e-60*r*60-60*i);return r+":"+(i<10?"0"+i:i)+":"+(o<10?"0"+o:o)},unformat:function(e){var t=e.split(":"),n=0;return 3===t.length?(n+=60*Number(t[0])*60,n+=60*Number(t[1]),n+=Number(t[2])):2===t.length&&(n+=60*Number(t[0]),n+=Number(t[1])),Number(n)}})}(),e}))},"66c8":function(e,t,n){var r=n("d3f4");n("5eda")("isFrozen",(function(e){return function(t){return!r(t)||!!e&&e(t)}}))},"66f9":function(e,t,n){n("8a81"),n("8478"),n("1c01"),n("58b2"),n("9986"),n("e4f7"),n("456d"),n("25db"),n("0d6d"),n("cf6a"),n("9aea"),n("66c8"),n("57f0"),n("165b"),n("f751"),n("db97"),n("fd24"),n("06db"),n("d92a"),n("7f7f"),n("217b"),n("18d0"),n("b72c"),n("c5f6"),n("036c"),n("54a8"),n("2e37"),n("fca0"),n("7cdf"),n("ee1d"),n("b1b1"),n("87f3"),n("9278"),n("5df2"),n("04ff"),n("7f25"),n("536b"),n("d9ab"),n("f9ab"),n("32d7"),n("25c9"),n("9f3c"),n("042e"),n("c7c6"),n("f4ff"),n("7872"),n("049f"),n("a69f"),n("0b21"),n("6c1a"),n("c7c62"),n("84b4"),n("5695"),n("788d"),n("4f37"),n("5df3"),n("a032"),n("aef6"),n("2fdb"),n("14b9"),n("f559"),n("8449"),n("9c86"),n("fa83"),n("48c0"),n("d263"),n("6c37"),n("9ec8"),n("d0b0"),n("b54a"),n("f386"),n("1448"),n("673e"),n("242a"),n("78ce"),n("0298"),n("8ea5"),n("87b3"),n("c8ce"),n("2caf"),n("1c4c"),n("e804"),n("373f"),n("23bf"),n("55dd"),n("f3e2"),n("6d67"),n("d25f"),n("759f"),n("6095"),n("0cd8"),n("48f8"),n("57e7"),n("9865"),n("744f"),n("6c7b"),n("7514"),n("20d6"),n("d04f"),n("cadf"),n("3b2b"),n("b0c5"),n("6b54"),n("3846"),n("4917"),n("a481"),n("386d"),n("28a5"),n("551c"),n("f400"),n("4f7f"),n("10ad"),n("c02b"),n("c66f"),n("262f"),n("b05c"),n("34ef"),n("6aa2"),n("15ac"),n("af56"),n("b6e4"),n("9c29"),n("63d9"),n("4dda"),n("df1b"),n("2397"),n("88ca"),n("ba16"),n("7ff6"),n("d185"),n("ebde"),n("2d34"),n("f6b3"),n("2251"),n("c698"),n("a19f"),n("9253"),n("9275"),n("6762"),n("e956"),n("71f1"),n("3535"),n("f576"),n("ed50"),n("23be"),n("7c0e"),n("988d"),n("ac4d"),n("c7ca"),n("8e6e"),n("8615"),n("ffc1"),n("4504"),n("fee7"),n("b9a1"),n("64d5"),n("4704"),n("db9a"),n("729b"),n("99c5"),n("764f"),n("bdd1"),n("416c"),n("dd8a"),n("5d40"),n("5d90"),n("0c36"),n("a234"),n("4276"),n("09e0"),n("0c00"),n("2748"),n("1f91"),n("9c00"),n("2f78"),n("b4c2"),n("1f18"),n("692b"),n("c775"),n("8a5c"),n("ed7e"),n("097d"),n("a9cc"),n("e3d0"),n("ceaf"),n("e394"),n("b80b"),n("06a7"),n("7cdff"),n("896f"),n("ec39"),n("3a9c"),n("0d25"),n("37b5"),n("4795"),n("130f"),n("ac6a"),e.exports=n("8378")},6718:function(e,t,n){var r=n("e53d"),i=n("584a"),o=n("b8e3"),s=n("ccb9"),a=n("d9f6").f;e.exports=function(e){var t=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||a(t,e,{value:s.f(e)})}},"673e":function(e,t,n){"use strict";n("386b")("sub",(function(e){return function(){return e(this,"sub","","")}}))},6762:function(e,t,n){"use strict";var r=n("5ca1"),i=n("c366")(!0);r(r.P,"Array",{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")("includes")},"67ab":function(e,t,n){var r=n("ca5a")("meta"),i=n("d3f4"),o=n("69a8"),s=n("86cc").f,a=0,c=Object.isExtensible||function(){return!0},u=!n("79e5")((function(){return c(Object.preventExtensions({}))})),l=function(e){s(e,r,{value:{i:"O"+ ++a,w:{}}})},f=function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,r)){if(!c(e))return"F";if(!t)return"E";l(e)}return e[r].i},h=function(e,t){if(!o(e,r)){if(!c(e))return!0;if(!t)return!1;l(e)}return e[r].w},d=function(e){return u&&p.NEED&&c(e)&&!o(e,r)&&l(e),e},p=e.exports={KEY:r,NEED:!1,fastKey:f,getWeak:h,onFreeze:d}},"67bb":function(e,t,n){e.exports=n("f921")},6821:function(e,t,n){var r=n("626a"),i=n("be13");e.exports=function(e){return r(i(e))}},"688e":function(e,t,n){"use strict";var r="Function.prototype.bind called on incompatible ",i=Array.prototype.slice,o=Object.prototype.toString,s="[object Function]";e.exports=function(e){var t=this;if("function"!==typeof t||o.call(t)!==s)throw new TypeError(r+t);for(var n,a=i.call(arguments,1),c=function(){if(this instanceof n){var r=t.apply(this,a.concat(i.call(arguments)));return Object(r)===r?r:this}return t.apply(e,a.concat(i.call(arguments)))},u=Math.max(0,t.length-a.length),l=[],f=0;f<u;f++)l.push("$"+f);if(n=Function("binder","return function ("+l.join(",")+"){ return binder.apply(this,arguments); }")(c),t.prototype){var h=function(){};h.prototype=t.prototype,n.prototype=new h,h.prototype=null}return n}},"692b":function(e,t,n){var r=n("5ca1"),i=Math.PI/180;r(r.S,"Math",{radians:function(e){return e*i}})},"696e":function(e,t,n){n("c207"),n("1654"),n("6c1c"),n("24c5"),n("3c11"),n("43fc"),e.exports=n("584a").Promise},"69a8":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"69d3":function(e,t,n){n("6718")("asyncIterator")},"6a99":function(e,t,n){var r=n("d3f4");e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},"6aa2":function(e,t,n){n("ec30")("Uint8",1,(function(e){return function(t,n,r){return e(this,t,n,r)}}),!0)},"6abf":function(e,t,n){var r=n("e6f3"),i=n("1691").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},"6b4c":function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},"6b54":function(e,t,n){"use strict";n("3846");var r=n("cb7c"),i=n("0bfb"),o=n("9e1e"),s="toString",a=/./[s],c=function(e){n("2aba")(RegExp.prototype,s,e,!0)};n("79e5")((function(){return"/a/b"!=a.call({source:"a",flags:"b"})}))?c((function(){var e=r(this);return"/".concat(e.source,"/","flags"in e?e.flags:!o&&e instanceof RegExp?i.call(e):void 0)})):a.name!=s&&c((function(){return a.call(this)}))},"6bb5":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("4d16"),i=n.n(r),o=n("061b"),s=n.n(o);function a(e){return a=i.a?s.a.bind():function(e){return e.__proto__||s()(e)},a(e)}},"6c1a":function(e,t,n){var r=n("5ca1"),i=n("2d5c"),o=Math.exp;r(r.S+r.F*n("79e5")((function(){return-2e-17!=!Math.sinh(-2e-17)})),"Math",{sinh:function(e){return Math.abs(e=+e)<1?(i(e)-i(-e))/2:(o(e-1)-o(-e-1))*(Math.E/2)}})},"6c1c":function(e,t,n){n("c367");for(var r=n("e53d"),i=n("35e8"),o=n("481b"),s=n("5168")("toStringTag"),a="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),c=0;c<a.length;c++){var u=a[c],l=r[u],f=l&&l.prototype;f&&!f[s]&&i(f,s,u),o[u]=o.Array}},"6c37":function(e,t,n){"use strict";n("386b")("fontcolor",(function(e){return function(t){return e(this,"font","color",t)}}))},"6c7b":function(e,t,n){var r=n("5ca1");r(r.P,"Array",{fill:n("36bd")}),n("9c6c")("fill")},"6d67":function(e,t,n){"use strict";var r=n("5ca1"),i=n("0a49")(1);r(r.P+r.F*!n("2f21")([].map,!0),"Array",{map:function(e){return i(this,e,arguments[1])}})},"6dd8":function(e,t,n){"use strict";n.r(t),function(e){var n=function(){if("undefined"!==typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var i=r[n];e.call(t,i[1],i[0])}},t}()}(),r="undefined"!==typeof window&&"undefined"!==typeof document&&window.document===document,i=function(){return"undefined"!==typeof e&&e.Math===Math?e:"undefined"!==typeof self&&self.Math===Math?self:"undefined"!==typeof window&&window.Math===Math?window:Function("return this")()}(),o=function(){return"function"===typeof requestAnimationFrame?requestAnimationFrame.bind(i):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)}}(),s=2;function a(e,t){var n=!1,r=!1,i=0;function a(){n&&(n=!1,e()),r&&u()}function c(){o(a)}function u(){var e=Date.now();if(n){if(e-i<s)return;r=!0}else n=!0,r=!1,setTimeout(c,t);i=e}return u}var c=20,u=["top","right","bottom","left","width","height","size","weight"],l="undefined"!==typeof MutationObserver,f=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=a(this.refresh.bind(this),c)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var e=this.updateObservers_();e&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),l?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t,r=u.some((function(e){return!!~n.indexOf(e)}));r&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),h=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},d=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||i},p=E(0,0,0,0);function g(e){return parseFloat(e)||0}function v(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){var r=e["border-"+n+"-width"];return t+g(r)}),0)}function y(e){for(var t=["top","right","bottom","left"],n={},r=0,i=t;r<i.length;r++){var o=i[r],s=e["padding-"+o];n[o]=g(s)}return n}function m(e){var t=e.getBBox();return E(0,0,t.width,t.height)}function I(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return p;var r=d(e).getComputedStyle(e),i=y(r),o=i.left+i.right,s=i.top+i.bottom,a=g(r.width),c=g(r.height);if("border-box"===r.boxSizing&&(Math.round(a+o)!==t&&(a-=v(r,"left","right")+o),Math.round(c+s)!==n&&(c-=v(r,"top","bottom")+s)),!T(e)){var u=Math.round(a+o)-t,l=Math.round(c+s)-n;1!==Math.abs(u)&&(a-=u),1!==Math.abs(l)&&(c-=l)}return E(i.left,i.top,a,c)}var _=function(){return"undefined"!==typeof SVGGraphicsElement?function(e){return e instanceof d(e).SVGGraphicsElement}:function(e){return e instanceof d(e).SVGElement&&"function"===typeof e.getBBox}}();function T(e){return e===d(e).document.documentElement}function C(e){return r?_(e)?m(e):I(e):p}function M(e){var t=e.x,n=e.y,r=e.width,i=e.height,o="undefined"!==typeof DOMRectReadOnly?DOMRectReadOnly:Object,s=Object.create(o.prototype);return h(s,{x:t,y:n,width:r,height:i,top:n,right:t+r,bottom:i+n,left:t}),s}function E(e,t,n,r){return{x:e,y:t,width:n,height:r}}var A=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=E(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=C(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),S=function(){function e(e,t){var n=M(t);h(this,{target:e,contentRect:n})}return e}(),N=function(){function e(e,t,r){if(this.activeObservations_=[],this.observations_=new n,"function"!==typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=r}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof d(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new A(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof d(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new S(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),b="undefined"!==typeof WeakMap?new WeakMap:new n,w=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=f.getInstance(),r=new N(t,n,this);b.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach((function(e){w.prototype[e]=function(){var t;return(t=b.get(this))[e].apply(t,arguments)}}));var O=function(){return"undefined"!==typeof i.ResizeObserver?i.ResizeObserver:w}();t["default"]=O}.call(this,n("c8ba"))},"6f71":function(e,t,n){"use strict";var r=/(\*|\?)/g;function i(e,t){this.text=e=e||"",this.hasWild=e.indexOf("*")>=0,this.separator=t,this.parts=e.split(t).map(this.classifyPart.bind(this))}i.prototype.match=function(e){var t,n,r=!0,i=this.parts,o=i.length;if("string"==typeof e||e instanceof String)if(this.hasWild||this.text==e){for(n=(e||"").split(this.separator),t=0;r&&t<o;t++)"*"!==i[t]&&(r=t<n.length&&(i[t]instanceof RegExp?i[t].test(n[t]):i[t]===n[t]));r=r&&n}else r=!1;else if("function"==typeof e.splice)for(r=[],t=e.length;t--;)this.match(e[t])&&(r[r.length]=e[t]);else if("object"==typeof e)for(var s in r={},e)this.match(s)&&(r[s]=e[s]);return r},i.prototype.classifyPart=function(e){return"*"===e?e:e.indexOf("*")>=0||e.indexOf("?")>=0?new RegExp(e.replace(r,".$1")):e},e.exports=function(e,t,n){var r=new i(e,n||/[\/\.]/);return"undefined"!=typeof t?r.match(t):r}},"71c1":function(e,t,n){var r=n("3a38"),i=n("25eb");e.exports=function(e){return function(t,n){var o,s,a=String(i(t)),c=r(n),u=a.length;return c<0||c>=u?e?"":void 0:(o=a.charCodeAt(c),o<55296||o>56319||c+1===u||(s=a.charCodeAt(c+1))<56320||s>57343?e?a.charAt(c):o:e?a.slice(c,c+2):s-56320+(o-55296<<10)+65536)}}},"71f1":function(e,t,n){"use strict";var r=n("5ca1"),i=n("c45f"),o=n("4bf8"),s=n("9def"),a=n("4588"),c=n("cd1c");r(r.P,"Array",{flatten:function(){var e=arguments[0],t=o(this),n=s(t.length),r=c(t,0);return i(r,t,t,n,0,void 0===e?1:a(e)),r}}),n("9c6c")("flatten")},"729b":function(e,t,n){n("c6a1")("Map")},7333:function(e,t,n){"use strict";var r=n("9e1e"),i=n("0d58"),o=n("2621"),s=n("52a7"),a=n("4bf8"),c=n("626a"),u=Object.assign;e.exports=!u||n("79e5")((function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=u({},e)[n]||Object.keys(u({},t)).join("")!=r}))?function(e,t){var n=a(e),u=arguments.length,l=1,f=o.f,h=s.f;while(u>l){var d,p=c(arguments[l++]),g=f?i(p).concat(f(p)):i(p),v=g.length,y=0;while(v>y)d=g[y++],r&&!h.call(p,d)||(n[d]=p[d])}return n}:u},"733c":function(e,t,n){var r=n("63b6"),i=n("a159"),o=n("79aa"),s=n("e4ae"),a=n("f772"),c=n("294c"),u=n("c189"),l=(n("e53d").Reflect||{}).construct,f=c((function(){function e(){}return!(l((function(){}),[],e)instanceof e)})),h=!c((function(){l((function(){}))}));r(r.S+r.F*(f||h),"Reflect",{construct:function(e,t){o(e),s(t);var n=arguments.length<3?e:o(arguments[2]);if(h&&!f)return l(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var r=[null];return r.push.apply(r,t),new(u.apply(e,r))}var c=n.prototype,d=i(a(c)?c:Object.prototype),p=Function.apply.call(e,d,t);return a(p)?p:d}})},"744f":function(e,t,n){var r=n("5ca1");r(r.P,"Array",{copyWithin:n("ba92")}),n("9c6c")("copyWithin")},7514:function(e,t,n){"use strict";var r=n("5ca1"),i=n("0a49")(5),o="find",s=!0;o in[]&&Array(1)[o]((function(){s=!1})),r(r.P+r.F*s,"Array",{find:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")(o)},"759f":function(e,t,n){"use strict";var r=n("5ca1"),i=n("0a49")(3);r(r.P+r.F*!n("2f21")([].some,!0),"Array",{some:function(e){return i(this,e,arguments[1])}})},"75fc":function(e,t,n){"use strict";var r=n("a745"),i=n.n(r),o=n("db2a");function s(e){if(i()(e))return Object(o["a"])(e)}var a=n("67bb"),c=n.n(a),u=n("5d58"),l=n.n(u),f=n("774e"),h=n.n(f);function d(e){if("undefined"!==typeof c.a&&null!=e[l.a]||null!=e["@@iterator"])return h()(e)}var p=n("e630");function g(){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 v(e){return s(e)||d(e)||Object(p["a"])(e)||g()}n.d(t,"a",(function(){return v}))},7618:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("67bb"),i=n.n(r),o=n("5d58"),s=n.n(o);function a(e){return a="function"==typeof i.a&&"symbol"==typeof s.a?function(e){return typeof e}:function(e){return e&&"function"==typeof i.a&&e.constructor===i.a&&e!==i.a.prototype?"symbol":typeof e},a(e)}},"764f":function(e,t,n){n("c6a1")("WeakMap")},"765d":function(e,t,n){n("6718")("observable")},7676:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)},i=this&&this.__read||function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{while((void 0===t||t-- >0)&&!(r=o.next()).done)s.push(r.value)}catch(a){i={error:a}}finally{try{r&&!r.done&&(n=o["return"])&&n.call(o)}finally{if(i)throw i.error}}return s},o=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0,t.unique=t.mergeWithRules=t.mergeWithCustomize=t["default"]=t.merge=t.CustomizeRule=t.customizeObject=t.customizeArray=void 0;var a=s(n("6f71")),c=s(n("d540")),u=s(n("c4d8")),l=s(n("419e"));t.unique=l["default"];var f=n("8a52");t.CustomizeRule=f.CustomizeRule;var h=n("3b74");function d(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return p({}).apply(void 0,o([e],i(t)))}function p(e){return function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if(h.isUndefined(t)||n.some(h.isUndefined))throw new TypeError("Merging undefined is not supported");if(t.then)throw new TypeError("Promises are not supported");if(!t)return{};if(0===n.length){if(Array.isArray(t)){if(0===t.length)return{};if(t.some(h.isUndefined))throw new TypeError("Merging undefined is not supported");if(t[0].then)throw new TypeError("Promises are not supported");return c["default"](t,u["default"](e))}return t}return c["default"]([t].concat(n),u["default"](e))}}function g(e){return function(t,n,r){var s=Object.keys(e).find((function(e){return a["default"](e,r)}))||"";if(s)switch(e[s]){case f.CustomizeRule.Prepend:return o(o([],i(n)),i(t));case f.CustomizeRule.Replace:return n;case f.CustomizeRule.Append:default:return o(o([],i(t)),i(n))}}}function v(e){return p({customizeArray:function(t,n,r){var i=e;return r.split(".").forEach((function(e){i&&(i=i[e])})),h.isPlainObject(i)?m({currentRule:i,a:t,b:n}):"string"===typeof i?I({currentRule:i,a:t,b:n}):void 0}})}t.merge=d,t["default"]=d,t.mergeWithCustomize=p,t.customizeArray=g,t.mergeWithRules=v;var y=Array.isArray;function m(e){var t=e.currentRule,n=e.a,s=e.b;if(!y(n))return n;var a=[],c=n.map((function(e){if(!h.isPlainObject(t))return e;var n={},c=[],u={};Object.entries(t).forEach((function(e){var t=i(e,2),n=t[0],r=t[1];r===f.CustomizeRule.Match?c.push(n):u[n]=r}));var l=s.filter((function(t){var n=c.every((function(n){var r,i;return(null===(r=e[n])||void 0===r?void 0:r.toString())===(null===(i=t[n])||void 0===i?void 0:i.toString())}));return n&&a.push(t),n}));return h.isPlainObject(e)?(Object.entries(e).forEach((function(e){var s=i(e,2),a=s[0],c=s[1],d=t;switch(t[a]){case f.CustomizeRule.Match:n[a]=c,Object.entries(d).forEach((function(e){var t=i(e,2),r=t[0],o=t[1];if(o===f.CustomizeRule.Replace&&l.length>0){var s=_(l)[r];"undefined"!==typeof s&&(n[r]=s)}}));break;case f.CustomizeRule.Append:if(!l.length){n[a]=c;break}var p=_(l)[a];if(!y(c)||!y(p))throw new TypeError("Trying to append non-arrays");n[a]=c.concat(p);break;case f.CustomizeRule.Merge:if(!l.length){n[a]=c;break}var g=_(l)[a];if(!h.isPlainObject(c)||!h.isPlainObject(g))throw new TypeError("Trying to merge non-objects");n[a]=r(r({},c),g);break;case f.CustomizeRule.Prepend:if(!l.length){n[a]=c;break}var v=_(l)[a];if(!y(c)||!y(v))throw new TypeError("Trying to prepend non-arrays");n[a]=v.concat(c);break;case f.CustomizeRule.Replace:n[a]=l.length>0?_(l)[a]:c;break;default:var I=u[a],T=l.map((function(e){return e[a]})).reduce((function(e,t){return y(e)&&y(t)?o(o([],i(e)),i(t)):e}),[]);n[a]=m({currentRule:I,a:c,b:T});break}})),n):e}));return c.concat(s.filter((function(e){return!a.includes(e)})))}function I(e){var t=e.currentRule,n=e.a,r=e.b;switch(t){case f.CustomizeRule.Append:return n.concat(r);case f.CustomizeRule.Prepend:return r.concat(n);case f.CustomizeRule.Replace:return r}return n}function _(e){return e[e.length-1]}function T(e){return function(t,n,r){switch(e[r]){case f.CustomizeRule.Prepend:return c["default"]([n,t],u["default"]());case f.CustomizeRule.Replace:return n;case f.CustomizeRule.Append:return c["default"]([t,n],u["default"]())}}}t.customizeObject=T},"768b":function(e,t,n){"use strict";var r=n("a745"),i=n.n(r);function o(e){if(i()(e))return e}var s=n("67bb"),a=n.n(s),c=n("5d58"),u=n.n(c);function l(e,t){var n=null==e?null:"undefined"!==typeof a.a&&e[u.a]||e["@@iterator"];if(null!=n){var r,i,o=[],s=!0,c=!1;try{for(n=n.call(e);!(s=(r=n.next()).done);s=!0)if(o.push(r.value),t&&o.length===t)break}catch(l){c=!0,i=l}finally{try{s||null==n["return"]||n["return"]()}finally{if(c)throw i}}return o}}var f=n("e630");function h(){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 d(e,t){return o(e)||l(e,t)||Object(f["a"])(e,t)||h()}n.d(t,"a",(function(){return d}))},7726:function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},7744:function(e,t,n){"use strict";var r=n("c31d"),i=n("2638"),o=n.n(i),s=n("d282"),a=n("a142"),c=n("ba31"),u=n("48f4"),l=n("dfaf"),f=n("ad06"),h=Object(s["a"])("cell"),d=h[0],p=h[1];function g(e,t,n,r){var i,s=t.icon,l=t.size,h=t.title,d=t.label,g=t.value,v=t.isLink,y=n.title||Object(a["c"])(h);function m(){var r=n.label||Object(a["c"])(d);if(r)return e("div",{class:[p("label"),t.labelClass]},[n.label?n.label():d])}function I(){if(y)return e("div",{class:[p("title"),t.titleClass],style:t.titleStyle},[n.title?n.title():e("span",[h]),m()])}function _(){var r=n.default||Object(a["c"])(g);if(r)return e("div",{class:[p("value",{alone:!y}),t.valueClass]},[n.default?n.default():e("span",[g])])}function T(){return n.icon?n.icon():s?e(f["a"],{class:p("left-icon"),attrs:{name:s,classPrefix:t.iconPrefix}}):void 0}function C(){var r=n["right-icon"];if(r)return r();if(v){var i=t.arrowDirection;return e(f["a"],{class:p("right-icon"),attrs:{name:i?"arrow-"+i:"arrow"}})}}function M(e){Object(c["a"])(r,"click",e),Object(u["a"])(r)}var E=null!=(i=t.clickable)?i:v,A={clickable:E,center:t.center,required:t.required,borderless:!t.border};return l&&(A[l]=l),e("div",o()([{class:p(A),attrs:{role:E?"button":null,tabindex:E?0:null},on:{click:M}},Object(c["b"])(r)]),[T(),I(),_(),C(),null==n.extra?void 0:n.extra()])}g.props=Object(r["a"])({},l["a"],u["c"]),t["a"]=d(g)},"774e":function(e,t,n){e.exports=n("d2d5")},"77f1":function(e,t,n){var r=n("4588"),i=Math.max,o=Math.min;e.exports=function(e,t){return e=r(e),e<0?i(e+t,0):o(e,t)}},7872:function(e,t,n){var r=n("5ca1");r(r.S,"Math",{log10:function(e){return Math.log(e)*Math.LOG10E}})},"788d":function(e,t,n){var r=n("5ca1"),i=n("6821"),o=n("9def");r(r.S,"String",{raw:function(e){var t=i(e.raw),n=o(t.length),r=arguments.length,s=[],a=0;while(n>a)s.push(String(t[a++])),a<r&&s.push(String(arguments[a]));return s.join("")}})},"78ce":function(e,t,n){var r=n("5ca1");r(r.S,"Date",{now:function(){return(new Date).getTime()}})},"794b":function(e,t,n){e.exports=!n("8e60")&&!n("294c")((function(){return 7!=Object.defineProperty(n("1ec9")("div"),"a",{get:function(){return 7}}).a}))},"795b":function(e,t,n){e.exports=n("696e")},"79aa":function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},"79e5":function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},"7a56":function(e,t,n){"use strict";var r=n("7726"),i=n("86cc"),o=n("9e1e"),s=n("2b4c")("species");e.exports=function(e){var t=r[e];o&&t&&!t[s]&&i.f(t,s,{configurable:!0,get:function(){return this}})}},"7a77":function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},"7aac":function(e,t,n){"use strict";var r=n("c532");e.exports=r.isStandardBrowserEnv()?function(){return{write:function(e,t,n,i,o,s){var a=[];a.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),r.isString(i)&&a.push("path="+i),r.isString(o)&&a.push("domain="+o),!0===s&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},"7b23":function(e,t,n){var r=n("d8e8"),i=n("4bf8"),o=n("626a"),s=n("9def");e.exports=function(e,t,n,a,c){r(t);var u=i(e),l=o(u),f=s(u.length),h=c?f-1:0,d=c?-1:1;if(n<2)for(;;){if(h in l){a=l[h],h+=d;break}if(h+=d,c?h<0:f<=h)throw TypeError("Reduce of empty array with no initial value")}for(;c?h>=0:f>h;h+=d)h in l&&(a=t(a,l[h],h,u));return a}},"7b3e":function(e,t,n){"use strict";var r,i=n("a3de");
- /**
- * Checks if an event is supported in the current execution environment.
- *
- * NOTE: This will not work correctly for non-generic events such as `change`,
- * `reset`, `load`, `error`, and `select`.
- *
- * Borrows from Modernizr.
- *
- * @param {string} eventNameSuffix Event name, e.g. "click".
- * @param {?boolean} capture Check if the capture phase is supported.
- * @return {boolean} True if the event is supported.
- * @internal
- * @license Modernizr 3.0.0pre (Custom Build) | MIT
- */
- function o(e,t){if(!i.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,o=n in document;if(!o){var s=document.createElement("div");s.setAttribute(n,"return;"),o="function"===typeof s[n]}return!o&&r&&"wheel"===e&&(o=document.implementation.hasFeature("Events.wheel","3.0")),o}i.canUseDOM&&(r=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("","")),e.exports=o},"7bbc":function(e,t,n){var r=n("6821"),i=n("9093").f,o={}.toString,s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],a=function(e){try{return i(e)}catch(t){return s.slice()}};e.exports.f=function(e){return s&&"[object Window]"==o.call(e)?a(e):i(r(e))}},"7c0e":function(e,t,n){"use strict";n("aa77")("trimRight",(function(e){return function(){return e(this,2)}}),"trimEnd")},"7cd6":function(e,t,n){var r=n("40c3"),i=n("5168")("iterator"),o=n("481b");e.exports=n("584a").getIteratorMethod=function(e){if(void 0!=e)return e[i]||e["@@iterator"]||o[r(e)]}},"7cdf":function(e,t,n){var r=n("5ca1");r(r.S,"Number",{isInteger:n("9c12")})},"7cdff":function(e,t,n){var r=n("37a7"),i=n("cb7c"),o=r.keys,s=r.key;r.exp({getOwnMetadataKeys:function(e){return o(i(e),arguments.length<2?void 0:s(arguments[1]))}})},"7e90":function(e,t,n){var r=n("d9f6"),i=n("e4ae"),o=n("c3a1");e.exports=n("8e60")?Object.defineProperties:function(e,t){i(e);var n,s=o(t),a=s.length,c=0;while(a>c)r.f(e,n=s[c++],t[n]);return e}},"7f20":function(e,t,n){var r=n("86cc").f,i=n("69a8"),o=n("2b4c")("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},"7f25":function(e,t,n){var r=n("5ca1"),i=n("d6c6"),o=Math.sqrt,s=Math.acosh;r(r.S+r.F*!(s&&710==Math.floor(s(Number.MAX_VALUE))&&s(1/0)==1/0),"Math",{acosh:function(e){return(e=+e)<1?NaN:e>94906265.62425156?Math.log(e)+Math.LN2:i(e-1+o(e-1)*o(e+1))}})},"7f7f":function(e,t,n){var r=n("86cc").f,i=Function.prototype,o=/^\s*function ([^ (]*)/,s="name";s in i||n("9e1e")&&r(i,s,{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(e){return""}}})},"7ff6":function(e,t,n){"use strict";var r=n("5ca1"),i=n("cb7c"),o=function(e){this._t=i(e),this._i=0;var t,n=this._k=[];for(t in e)n.push(t)};n("41a0")(o,"Object",(function(){var e,t=this,n=t._k;do{if(t._i>=n.length)return{value:void 0,done:!0}}while(!((e=n[t._i++])in t._t));return{value:e,done:!1}})),r(r.S,"Reflect",{enumerate:function(e){return new o(e)}})},8079:function(e,t,n){var r=n("7726"),i=n("1991").set,o=r.MutationObserver||r.WebKitMutationObserver,s=r.process,a=r.Promise,c="process"==n("2d95")(s);e.exports=function(){var e,t,n,u=function(){var r,i;c&&(r=s.domain)&&r.exit();while(e){i=e.fn,e=e.next;try{i()}catch(o){throw e?n():t=void 0,o}}t=void 0,r&&r.enter()};if(c)n=function(){s.nextTick(u)};else if(!o||r.navigator&&r.navigator.standalone)if(a&&a.resolve){var l=a.resolve(void 0);n=function(){l.then(u)}}else n=function(){i.call(r,u)};else{var f=!0,h=document.createTextNode("");new o(u).observe(h,{characterData:!0}),n=function(){h.data=f=!f}}return function(r){var i={fn:r,next:void 0};t&&(t.next=i),e||(e=i,n()),t=i}}},8096:function(e,t,n){},8378:function(e,t){var n=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},8381:function(e,t,n){"use strict";var r=n("cb7c"),i=n("6a99"),o="number";e.exports=function(e){if("string"!==e&&e!==o&&"default"!==e)throw TypeError("Incorrect hint");return i(r(this),e!=o)}},"83a1":function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}},8436:function(e,t){e.exports=function(){}},8449:function(e,t,n){"use strict";n("386b")("anchor",(function(e){return function(t){return e(this,"a","name",t)}}))},8478:function(e,t,n){var r=n("5ca1");r(r.S,"Object",{create:n("2aeb")})},"84b4":function(e,t,n){var r=n("5ca1");r(r.S,"Math",{trunc:function(e){return(e>0?Math.floor:Math.ceil)(e)}})},"84f2":function(e,t){e.exports={}},8580:function(e,t,n){n("ee6d"),e.exports=n("584a").Object.getOwnPropertyDescriptors},"85f2":function(e,t,n){e.exports=n("454f")},8615:function(e,t,n){var r=n("5ca1"),i=n("504c")(!1);r(r.S,"Object",{values:function(e){return i(e)}})},"86cc":function(e,t,n){var r=n("cb7c"),i=n("c69a"),o=n("6a99"),s=Object.defineProperty;t.f=n("9e1e")?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return s(e,t,n)}catch(a){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},"87b3":function(e,t,n){var r=Date.prototype,i="Invalid Date",o="toString",s=r[o],a=r.getTime;new Date(NaN)+""!=i&&n("2aba")(r,o,(function(){var e=a.call(this);return e===e?s.call(this):i}))},"87f3":function(e,t,n){var r=n("5ca1");r(r.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},"88ca":function(e,t,n){var r=n("86cc"),i=n("5ca1"),o=n("cb7c"),s=n("6a99");i(i.S+i.F*n("79e5")((function(){Reflect.defineProperty(r.f({},1,{value:1}),1,{value:2})})),"Reflect",{defineProperty:function(e,t,n){o(e),t=s(t,!0),o(n);try{return r.f(e,t,n),!0}catch(i){return!1}}})},"896f":function(e,t,n){var r=n("37a7"),i=n("cb7c"),o=n("38fd"),s=r.has,a=r.key,c=function(e,t,n){var r=s(e,t,n);if(r)return!0;var i=o(t);return null!==i&&c(e,i,n)};r.exp({hasMetadata:function(e,t){return c(e,i(t),arguments.length<3?void 0:a(arguments[2]))}})},"8a52":function(e,t,n){"use strict";t.__esModule=!0,t.CustomizeRule=void 0,function(e){e["Match"]="match",e["Merge"]="merge",e["Append"]="append",e["Prepend"]="prepend",e["Replace"]="replace"}(t.CustomizeRule||(t.CustomizeRule={}))},"8a5c":function(e,t,n){var r=n("5ca1");r(r.S,"Math",{umulh:function(e,t){var n=65535,r=+e,i=+t,o=r&n,s=i&n,a=r>>>16,c=i>>>16,u=(a*s>>>0)+(o*s>>>16);return a*c+(u>>>16)+((o*c>>>0)+(u&n)>>>16)}})},"8a81":function(e,t,n){"use strict";var r=n("7726"),i=n("69a8"),o=n("9e1e"),s=n("5ca1"),a=n("2aba"),c=n("67ab").KEY,u=n("79e5"),l=n("5537"),f=n("7f20"),h=n("ca5a"),d=n("2b4c"),p=n("37c8"),g=n("3a72"),v=n("d4c0"),y=n("1169"),m=n("cb7c"),I=n("d3f4"),_=n("4bf8"),T=n("6821"),C=n("6a99"),M=n("4630"),E=n("2aeb"),A=n("7bbc"),S=n("11e9"),N=n("2621"),b=n("86cc"),w=n("0d58"),O=S.f,R=b.f,D=A.f,L=r.Symbol,U=r.JSON,x=U&&U.stringify,P="prototype",j=d("_hidden"),k=d("toPrimitive"),z={}.propertyIsEnumerable,G=l("symbol-registry"),B=l("symbols"),V=l("op-symbols"),Y=Object[P],H="function"==typeof L&&!!N.f,F=r.QObject,Q=!F||!F[P]||!F[P].findChild,$=o&&u((function(){return 7!=E(R({},"a",{get:function(){return R(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=O(Y,t);r&&delete Y[t],R(e,t,n),r&&e!==Y&&R(Y,t,r)}:R,K=function(e){var t=B[e]=E(L[P]);return t._k=e,t},W=H&&"symbol"==typeof L.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof L},q=function(e,t,n){return e===Y&&q(V,t,n),m(e),t=C(t,!0),m(n),i(B,t)?(n.enumerable?(i(e,j)&&e[j][t]&&(e[j][t]=!1),n=E(n,{enumerable:M(0,!1)})):(i(e,j)||R(e,j,M(1,{})),e[j][t]=!0),$(e,t,n)):R(e,t,n)},Z=function(e,t){m(e);var n,r=v(t=T(t)),i=0,o=r.length;while(o>i)q(e,n=r[i++],t[n]);return e},J=function(e,t){return void 0===t?E(e):Z(E(e),t)},X=function(e){var t=z.call(this,e=C(e,!0));return!(this===Y&&i(B,e)&&!i(V,e))&&(!(t||!i(this,e)||!i(B,e)||i(this,j)&&this[j][e])||t)},ee=function(e,t){if(e=T(e),t=C(t,!0),e!==Y||!i(B,t)||i(V,t)){var n=O(e,t);return!n||!i(B,t)||i(e,j)&&e[j][t]||(n.enumerable=!0),n}},te=function(e){var t,n=D(T(e)),r=[],o=0;while(n.length>o)i(B,t=n[o++])||t==j||t==c||r.push(t);return r},ne=function(e){var t,n=e===Y,r=D(n?V:T(e)),o=[],s=0;while(r.length>s)!i(B,t=r[s++])||n&&!i(Y,t)||o.push(B[t]);return o};H||(L=function(){if(this instanceof L)throw TypeError("Symbol is not a constructor!");var e=h(arguments.length>0?arguments[0]:void 0),t=function(n){this===Y&&t.call(V,n),i(this,j)&&i(this[j],e)&&(this[j][e]=!1),$(this,e,M(1,n))};return o&&Q&&$(Y,e,{configurable:!0,set:t}),K(e)},a(L[P],"toString",(function(){return this._k})),S.f=ee,b.f=q,n("9093").f=A.f=te,n("52a7").f=X,N.f=ne,o&&!n("2d00")&&a(Y,"propertyIsEnumerable",X,!0),p.f=function(e){return K(d(e))}),s(s.G+s.W+s.F*!H,{Symbol:L});for(var re="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ie=0;re.length>ie;)d(re[ie++]);for(var oe=w(d.store),se=0;oe.length>se;)g(oe[se++]);s(s.S+s.F*!H,"Symbol",{for:function(e){return i(G,e+="")?G[e]:G[e]=L(e)},keyFor:function(e){if(!W(e))throw TypeError(e+" is not a symbol!");for(var t in G)if(G[t]===e)return t},useSetter:function(){Q=!0},useSimple:function(){Q=!1}}),s(s.S+s.F*!H,"Object",{create:J,defineProperty:q,defineProperties:Z,getOwnPropertyDescriptor:ee,getOwnPropertyNames:te,getOwnPropertySymbols:ne});var ae=u((function(){N.f(1)}));s(s.S+s.F*ae,"Object",{getOwnPropertySymbols:function(e){return N.f(_(e))}}),U&&s(s.S+s.F*(!H||u((function(){var e=L();return"[null]"!=x([e])||"{}"!=x({a:e})||"{}"!=x(Object(e))}))),"JSON",{stringify:function(e){var t,n,r=[e],i=1;while(arguments.length>i)r.push(arguments[i++]);if(n=t=r[1],(I(t)||void 0!==e)&&!W(e))return y(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!W(t))return t}),r[1]=t,x.apply(U,r)}}),L[P][k]||n("32e9")(L[P],k,L[P].valueOf),f(L,"Symbol"),f(Math,"Math",!0),f(r.JSON,"JSON",!0)},"8aae":function(e,t,n){n("32a6"),e.exports=n("584a").Object.keys},"8b97":function(e,t,n){var r=n("d3f4"),i=n("cb7c"),o=function(e,t){if(i(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{r=n("9b43")(Function.call,n("11e9").f(Object.prototype,"__proto__").set,2),r(e,[]),t=!(e instanceof Array)}catch(i){t=!0}return function(e,n){return o(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:o}},"8c4f":function(e,t,n){"use strict";
- /*!
- * vue-router v3.0.6
- * (c) 2019 Evan You
- * @license MIT
- */function r(e,t){0}function i(e){return Object.prototype.toString.call(e).indexOf("Error")>-1}function o(e,t){for(var n in t)e[n]=t[n];return e}var s={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(e,t){var n=t.props,r=t.children,i=t.parent,s=t.data;s.routerView=!0;var c=i.$createElement,u=n.name,l=i.$route,f=i._routerViewCache||(i._routerViewCache={}),h=0,d=!1;while(i&&i._routerRoot!==i){var p=i.$vnode&&i.$vnode.data;p&&(p.routerView&&h++,p.keepAlive&&i._inactive&&(d=!0)),i=i.$parent}if(s.routerViewDepth=h,d)return c(f[u],s,r);var g=l.matched[h];if(!g)return f[u]=null,c();var v=f[u]=g.components[u];s.registerRouteInstance=function(e,t){var n=g.instances[u];(t&&n!==e||!t&&n===e)&&(g.instances[u]=t)},(s.hook||(s.hook={})).prepatch=function(e,t){g.instances[u]=t.componentInstance},s.hook.init=function(e){e.data.keepAlive&&e.componentInstance&&e.componentInstance!==g.instances[u]&&(g.instances[u]=e.componentInstance)};var y=s.props=a(l,g.props&&g.props[u]);if(y){y=s.props=o({},y);var m=s.attrs=s.attrs||{};for(var I in y)v.props&&I in v.props||(m[I]=y[I],delete y[I])}return c(v,s,r)}};function a(e,t){switch(typeof t){case"undefined":return;case"object":return t;case"function":return t(e);case"boolean":return t?e.params:void 0;default:0}}var c=/[!'()*]/g,u=function(e){return"%"+e.charCodeAt(0).toString(16)},l=/%2C/g,f=function(e){return encodeURIComponent(e).replace(c,u).replace(l,",")},h=decodeURIComponent;function d(e,t,n){void 0===t&&(t={});var r,i=n||p;try{r=i(e||"")}catch(s){r={}}for(var o in t)r[o]=t[o];return r}function p(e){var t={};return e=e.trim().replace(/^(\?|#|&)/,""),e?(e.split("&").forEach((function(e){var n=e.replace(/\+/g," ").split("="),r=h(n.shift()),i=n.length>0?h(n.join("=")):null;void 0===t[r]?t[r]=i:Array.isArray(t[r])?t[r].push(i):t[r]=[t[r],i]})),t):t}function g(e){var t=e?Object.keys(e).map((function(t){var n=e[t];if(void 0===n)return"";if(null===n)return f(t);if(Array.isArray(n)){var r=[];return n.forEach((function(e){void 0!==e&&(null===e?r.push(f(t)):r.push(f(t)+"="+f(e)))})),r.join("&")}return f(t)+"="+f(n)})).filter((function(e){return e.length>0})).join("&"):null;return t?"?"+t:""}var v=/\/?$/;function y(e,t,n,r){var i=r&&r.options.stringifyQuery,o=t.query||{};try{o=m(o)}catch(a){}var s={name:t.name||e&&e.name,meta:e&&e.meta||{},path:t.path||"/",hash:t.hash||"",query:o,params:t.params||{},fullPath:T(t,i),matched:e?_(e):[]};return n&&(s.redirectedFrom=T(n,i)),Object.freeze(s)}function m(e){if(Array.isArray(e))return e.map(m);if(e&&"object"===typeof e){var t={};for(var n in e)t[n]=m(e[n]);return t}return e}var I=y(null,{path:"/"});function _(e){var t=[];while(e)t.unshift(e),e=e.parent;return t}function T(e,t){var n=e.path,r=e.query;void 0===r&&(r={});var i=e.hash;void 0===i&&(i="");var o=t||g;return(n||"/")+o(r)+i}function C(e,t){return t===I?e===t:!!t&&(e.path&&t.path?e.path.replace(v,"")===t.path.replace(v,"")&&e.hash===t.hash&&M(e.query,t.query):!(!e.name||!t.name)&&(e.name===t.name&&e.hash===t.hash&&M(e.query,t.query)&&M(e.params,t.params)))}function M(e,t){if(void 0===e&&(e={}),void 0===t&&(t={}),!e||!t)return e===t;var n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every((function(n){var r=e[n],i=t[n];return"object"===typeof r&&"object"===typeof i?M(r,i):String(r)===String(i)}))}function E(e,t){return 0===e.path.replace(v,"/").indexOf(t.path.replace(v,"/"))&&(!t.hash||e.hash===t.hash)&&A(e.query,t.query)}function A(e,t){for(var n in t)if(!(n in e))return!1;return!0}var S,N=[String,Object],b=[String,Array],w={name:"RouterLink",props:{to:{type:N,required:!0},tag:{type:String,default:"a"},exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,event:{type:b,default:"click"}},render:function(e){var t=this,n=this.$router,r=this.$route,i=n.resolve(this.to,r,this.append),s=i.location,a=i.route,c=i.href,u={},l=n.options.linkActiveClass,f=n.options.linkExactActiveClass,h=null==l?"router-link-active":l,d=null==f?"router-link-exact-active":f,p=null==this.activeClass?h:this.activeClass,g=null==this.exactActiveClass?d:this.exactActiveClass,v=s.path?y(null,s,null,n):a;u[g]=C(r,v),u[p]=this.exact?u[g]:E(r,v);var m=function(e){O(e)&&(t.replace?n.replace(s):n.push(s))},I={click:O};Array.isArray(this.event)?this.event.forEach((function(e){I[e]=m})):I[this.event]=m;var _={class:u};if("a"===this.tag)_.on=I,_.attrs={href:c};else{var T=R(this.$slots.default);if(T){T.isStatic=!1;var M=T.data=o({},T.data);M.on=I;var A=T.data.attrs=o({},T.data.attrs);A.href=c}else _.on=I}return e(this.tag,_,this.$slots.default)}};function O(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&(void 0===e.button||0===e.button)){if(e.currentTarget&&e.currentTarget.getAttribute){var t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function R(e){if(e)for(var t,n=0;n<e.length;n++){if(t=e[n],"a"===t.tag)return t;if(t.children&&(t=R(t.children)))return t}}function D(e){if(!D.installed||S!==e){D.installed=!0,S=e;var t=function(e){return void 0!==e},n=function(e,n){var r=e.$options._parentVnode;t(r)&&t(r=r.data)&&t(r=r.registerRouteInstance)&&r(e,n)};e.mixin({beforeCreate:function(){t(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),e.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,n(this,this)},destroyed:function(){n(this)}}),Object.defineProperty(e.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(e.prototype,"$route",{get:function(){return this._routerRoot._route}}),e.component("RouterView",s),e.component("RouterLink",w);var r=e.config.optionMergeStrategies;r.beforeRouteEnter=r.beforeRouteLeave=r.beforeRouteUpdate=r.created}}var L="undefined"!==typeof window;function U(e,t,n){var r=e.charAt(0);if("/"===r)return e;if("?"===r||"#"===r)return t+e;var i=t.split("/");n&&i[i.length-1]||i.pop();for(var o=e.replace(/^\//,"").split("/"),s=0;s<o.length;s++){var a=o[s];".."===a?i.pop():"."!==a&&i.push(a)}return""!==i[0]&&i.unshift(""),i.join("/")}function x(e){var t="",n="",r=e.indexOf("#");r>=0&&(t=e.slice(r),e=e.slice(0,r));var i=e.indexOf("?");return i>=0&&(n=e.slice(i+1),e=e.slice(0,i)),{path:e,query:n,hash:t}}function P(e){return e.replace(/\/\//g,"/")}var j=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)},k=re,z=H,G=F,B=K,V=ne,Y=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function H(e,t){var n,r=[],i=0,o=0,s="",a=t&&t.delimiter||"/";while(null!=(n=Y.exec(e))){var c=n[0],u=n[1],l=n.index;if(s+=e.slice(o,l),o=l+c.length,u)s+=u[1];else{var f=e[o],h=n[2],d=n[3],p=n[4],g=n[5],v=n[6],y=n[7];s&&(r.push(s),s="");var m=null!=h&&null!=f&&f!==h,I="+"===v||"*"===v,_="?"===v||"*"===v,T=n[2]||a,C=p||g;r.push({name:d||i++,prefix:h||"",delimiter:T,optional:_,repeat:I,partial:m,asterisk:!!y,pattern:C?q(C):y?".*":"[^"+W(T)+"]+?"})}}return o<e.length&&(s+=e.substr(o)),s&&r.push(s),r}function F(e,t){return K(H(e,t))}function Q(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function $(e){return encodeURI(e).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function K(e){for(var t=new Array(e.length),n=0;n<e.length;n++)"object"===typeof e[n]&&(t[n]=new RegExp("^(?:"+e[n].pattern+")$"));return function(n,r){for(var i="",o=n||{},s=r||{},a=s.pretty?Q:encodeURIComponent,c=0;c<e.length;c++){var u=e[c];if("string"!==typeof u){var l,f=o[u.name];if(null==f){if(u.optional){u.partial&&(i+=u.prefix);continue}throw new TypeError('Expected "'+u.name+'" to be defined')}if(j(f)){if(!u.repeat)throw new TypeError('Expected "'+u.name+'" to not repeat, but received `'+JSON.stringify(f)+"`");if(0===f.length){if(u.optional)continue;throw new TypeError('Expected "'+u.name+'" to not be empty')}for(var h=0;h<f.length;h++){if(l=a(f[h]),!t[c].test(l))throw new TypeError('Expected all "'+u.name+'" to match "'+u.pattern+'", but received `'+JSON.stringify(l)+"`");i+=(0===h?u.prefix:u.delimiter)+l}}else{if(l=u.asterisk?$(f):a(f),!t[c].test(l))throw new TypeError('Expected "'+u.name+'" to match "'+u.pattern+'", but received "'+l+'"');i+=u.prefix+l}}else i+=u}return i}}function W(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function q(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function Z(e,t){return e.keys=t,e}function J(e){return e.sensitive?"":"i"}function X(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return Z(e,t)}function ee(e,t,n){for(var r=[],i=0;i<e.length;i++)r.push(re(e[i],t,n).source);var o=new RegExp("(?:"+r.join("|")+")",J(n));return Z(o,t)}function te(e,t,n){return ne(H(e,n),t,n)}function ne(e,t,n){j(t)||(n=t||n,t=[]),n=n||{};for(var r=n.strict,i=!1!==n.end,o="",s=0;s<e.length;s++){var a=e[s];if("string"===typeof a)o+=W(a);else{var c=W(a.prefix),u="(?:"+a.pattern+")";t.push(a),a.repeat&&(u+="(?:"+c+u+")*"),u=a.optional?a.partial?c+"("+u+")?":"(?:"+c+"("+u+"))?":c+"("+u+")",o+=u}}var l=W(n.delimiter||"/"),f=o.slice(-l.length)===l;return r||(o=(f?o.slice(0,-l.length):o)+"(?:"+l+"(?=$))?"),o+=i?"$":r&&f?"":"(?="+l+"|$)",Z(new RegExp("^"+o,J(n)),t)}function re(e,t,n){return j(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?X(e,t):j(e)?ee(e,t,n):te(e,t,n)}k.parse=z,k.compile=G,k.tokensToFunction=B,k.tokensToRegExp=V;var ie=Object.create(null);function oe(e,t,n){t=t||{};try{var r=ie[e]||(ie[e]=k.compile(e));return t.pathMatch&&(t[0]=t.pathMatch),r(t,{pretty:!0})}catch(i){return""}finally{delete t[0]}}function se(e,t,n,r){var i=t||[],o=n||Object.create(null),s=r||Object.create(null);e.forEach((function(e){ae(i,o,s,e)}));for(var a=0,c=i.length;a<c;a++)"*"===i[a]&&(i.push(i.splice(a,1)[0]),c--,a--);return{pathList:i,pathMap:o,nameMap:s}}function ae(e,t,n,r,i,o){var s=r.path,a=r.name;var c=r.pathToRegexpOptions||{},u=ue(s,i,c.strict);"boolean"===typeof r.caseSensitive&&(c.sensitive=r.caseSensitive);var l={path:u,regex:ce(u,c),components:r.components||{default:r.component},instances:{},name:a,parent:i,matchAs:o,redirect:r.redirect,beforeEnter:r.beforeEnter,meta:r.meta||{},props:null==r.props?{}:r.components?r.props:{default:r.props}};if(r.children&&r.children.forEach((function(r){var i=o?P(o+"/"+r.path):void 0;ae(e,t,n,r,l,i)})),void 0!==r.alias){var f=Array.isArray(r.alias)?r.alias:[r.alias];f.forEach((function(o){var s={path:o,children:r.children};ae(e,t,n,s,i,l.path||"/")}))}t[l.path]||(e.push(l.path),t[l.path]=l),a&&(n[a]||(n[a]=l))}function ce(e,t){var n=k(e,[],t);return n}function ue(e,t,n){return n||(e=e.replace(/\/$/,"")),"/"===e[0]||null==t?e:P(t.path+"/"+e)}function le(e,t,n,r){var i="string"===typeof e?{path:e}:e;if(i._normalized)return i;if(i.name)return o({},e);if(!i.path&&i.params&&t){i=o({},i),i._normalized=!0;var s=o(o({},t.params),i.params);if(t.name)i.name=t.name,i.params=s;else if(t.matched.length){var a=t.matched[t.matched.length-1].path;i.path=oe(a,s,"path "+t.path)}else 0;return i}var c=x(i.path||""),u=t&&t.path||"/",l=c.path?U(c.path,u,n||i.append):u,f=d(c.query,i.query,r&&r.options.parseQuery),h=i.hash||c.hash;return h&&"#"!==h.charAt(0)&&(h="#"+h),{_normalized:!0,path:l,query:f,hash:h}}function fe(e,t){var n=se(e),r=n.pathList,i=n.pathMap,o=n.nameMap;function s(e){se(e,r,i,o)}function a(e,n,s){var a=le(e,n,!1,t),c=a.name;if(c){var u=o[c];if(!u)return l(null,a);var f=u.regex.keys.filter((function(e){return!e.optional})).map((function(e){return e.name}));if("object"!==typeof a.params&&(a.params={}),n&&"object"===typeof n.params)for(var h in n.params)!(h in a.params)&&f.indexOf(h)>-1&&(a.params[h]=n.params[h]);if(u)return a.path=oe(u.path,a.params,'named route "'+c+'"'),l(u,a,s)}else if(a.path){a.params={};for(var d=0;d<r.length;d++){var p=r[d],g=i[p];if(he(g.regex,a.path,a.params))return l(g,a,s)}}return l(null,a)}function c(e,n){var r=e.redirect,i="function"===typeof r?r(y(e,n,null,t)):r;if("string"===typeof i&&(i={path:i}),!i||"object"!==typeof i)return l(null,n);var s=i,c=s.name,u=s.path,f=n.query,h=n.hash,d=n.params;if(f=s.hasOwnProperty("query")?s.query:f,h=s.hasOwnProperty("hash")?s.hash:h,d=s.hasOwnProperty("params")?s.params:d,c){o[c];return a({_normalized:!0,name:c,query:f,hash:h,params:d},void 0,n)}if(u){var p=de(u,e),g=oe(p,d,'redirect route with path "'+p+'"');return a({_normalized:!0,path:g,query:f,hash:h},void 0,n)}return l(null,n)}function u(e,t,n){var r=oe(n,t.params,'aliased route with path "'+n+'"'),i=a({_normalized:!0,path:r});if(i){var o=i.matched,s=o[o.length-1];return t.params=i.params,l(s,t)}return l(null,t)}function l(e,n,r){return e&&e.redirect?c(e,r||n):e&&e.matchAs?u(e,n,e.matchAs):y(e,n,r,t)}return{match:a,addRoutes:s}}function he(e,t,n){var r=t.match(e);if(!r)return!1;if(!n)return!0;for(var i=1,o=r.length;i<o;++i){var s=e.keys[i-1],a="string"===typeof r[i]?decodeURIComponent(r[i]):r[i];s&&(n[s.name||"pathMatch"]=a)}return!0}function de(e,t){return U(e,t.parent?t.parent.path:"/",!0)}var pe=Object.create(null);function ge(){window.history.replaceState({key:we()},"",window.location.href.replace(window.location.origin,"")),window.addEventListener("popstate",(function(e){ye(),e.state&&e.state.key&&Oe(e.state.key)}))}function ve(e,t,n,r){if(e.app){var i=e.options.scrollBehavior;i&&e.app.$nextTick((function(){var o=me(),s=i.call(e,t,n,r?o:null);s&&("function"===typeof s.then?s.then((function(e){Ee(e,o)})).catch((function(e){0})):Ee(s,o))}))}}function ye(){var e=we();e&&(pe[e]={x:window.pageXOffset,y:window.pageYOffset})}function me(){var e=we();if(e)return pe[e]}function Ie(e,t){var n=document.documentElement,r=n.getBoundingClientRect(),i=e.getBoundingClientRect();return{x:i.left-r.left-t.x,y:i.top-r.top-t.y}}function _e(e){return Me(e.x)||Me(e.y)}function Te(e){return{x:Me(e.x)?e.x:window.pageXOffset,y:Me(e.y)?e.y:window.pageYOffset}}function Ce(e){return{x:Me(e.x)?e.x:0,y:Me(e.y)?e.y:0}}function Me(e){return"number"===typeof e}function Ee(e,t){var n="object"===typeof e;if(n&&"string"===typeof e.selector){var r=document.querySelector(e.selector);if(r){var i=e.offset&&"object"===typeof e.offset?e.offset:{};i=Ce(i),t=Ie(r,i)}else _e(e)&&(t=Te(e))}else n&&_e(e)&&(t=Te(e));t&&window.scrollTo(t.x,t.y)}var Ae=L&&function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&(window.history&&"pushState"in window.history)}(),Se=L&&window.performance&&window.performance.now?window.performance:Date,Ne=be();function be(){return Se.now().toFixed(3)}function we(){return Ne}function Oe(e){Ne=e}function Re(e,t){ye();var n=window.history;try{t?n.replaceState({key:Ne},"",e):(Ne=be(),n.pushState({key:Ne},"",e))}catch(r){window.location[t?"replace":"assign"](e)}}function De(e){Re(e,!0)}function Le(e,t,n){var r=function(i){i>=e.length?n():e[i]?t(e[i],(function(){r(i+1)})):r(i+1)};r(0)}function Ue(e){return function(t,n,r){var o=!1,s=0,a=null;xe(e,(function(e,t,n,c){if("function"===typeof e&&void 0===e.cid){o=!0,s++;var u,l=ze((function(t){ke(t)&&(t=t.default),e.resolved="function"===typeof t?t:S.extend(t),n.components[c]=t,s--,s<=0&&r()})),f=ze((function(e){var t="Failed to resolve async component "+c+": "+e;a||(a=i(e)?e:new Error(t),r(a))}));try{u=e(l,f)}catch(d){f(d)}if(u)if("function"===typeof u.then)u.then(l,f);else{var h=u.component;h&&"function"===typeof h.then&&h.then(l,f)}}})),o||r()}}function xe(e,t){return Pe(e.map((function(e){return Object.keys(e.components).map((function(n){return t(e.components[n],e.instances[n],e,n)}))})))}function Pe(e){return Array.prototype.concat.apply([],e)}var je="function"===typeof Symbol&&"symbol"===typeof Symbol.toStringTag;function ke(e){return e.__esModule||je&&"Module"===e[Symbol.toStringTag]}function ze(e){var t=!1;return function(){var n=[],r=arguments.length;while(r--)n[r]=arguments[r];if(!t)return t=!0,e.apply(this,n)}}var Ge=function(e,t){this.router=e,this.base=Be(t),this.current=I,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[]};function Be(e){if(!e)if(L){var t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^https?:\/\/[^\/]+/,"")}else e="/";return"/"!==e.charAt(0)&&(e="/"+e),e.replace(/\/$/,"")}function Ve(e,t){var n,r=Math.max(e.length,t.length);for(n=0;n<r;n++)if(e[n]!==t[n])break;return{updated:t.slice(0,n),activated:t.slice(n),deactivated:e.slice(n)}}function Ye(e,t,n,r){var i=xe(e,(function(e,r,i,o){var s=He(e,t);if(s)return Array.isArray(s)?s.map((function(e){return n(e,r,i,o)})):n(s,r,i,o)}));return Pe(r?i.reverse():i)}function He(e,t){return"function"!==typeof e&&(e=S.extend(e)),e.options[t]}function Fe(e){return Ye(e,"beforeRouteLeave",$e,!0)}function Qe(e){return Ye(e,"beforeRouteUpdate",$e)}function $e(e,t){if(t)return function(){return e.apply(t,arguments)}}function Ke(e,t,n){return Ye(e,"beforeRouteEnter",(function(e,r,i,o){return We(e,i,o,t,n)}))}function We(e,t,n,r,i){return function(o,s,a){return e(o,s,(function(e){a(e),"function"===typeof e&&r.push((function(){qe(e,t.instances,n,i)}))}))}}function qe(e,t,n,r){t[n]&&!t[n]._isBeingDestroyed?e(t[n]):r()&&setTimeout((function(){qe(e,t,n,r)}),16)}Ge.prototype.listen=function(e){this.cb=e},Ge.prototype.onReady=function(e,t){this.ready?e():(this.readyCbs.push(e),t&&this.readyErrorCbs.push(t))},Ge.prototype.onError=function(e){this.errorCbs.push(e)},Ge.prototype.transitionTo=function(e,t,n){var r=this,i=this.router.match(e,this.current);this.confirmTransition(i,(function(){r.updateRoute(i),t&&t(i),r.ensureURL(),r.ready||(r.ready=!0,r.readyCbs.forEach((function(e){e(i)})))}),(function(e){n&&n(e),e&&!r.ready&&(r.ready=!0,r.readyErrorCbs.forEach((function(t){t(e)})))}))},Ge.prototype.confirmTransition=function(e,t,n){var o=this,s=this.current,a=function(e){i(e)&&(o.errorCbs.length?o.errorCbs.forEach((function(t){t(e)})):(r(!1,"uncaught error during route navigation:"),console.error(e))),n&&n(e)};if(C(e,s)&&e.matched.length===s.matched.length)return this.ensureURL(),a();var c=Ve(this.current.matched,e.matched),u=c.updated,l=c.deactivated,f=c.activated,h=[].concat(Fe(l),this.router.beforeHooks,Qe(u),f.map((function(e){return e.beforeEnter})),Ue(f));this.pending=e;var d=function(t,n){if(o.pending!==e)return a();try{t(e,s,(function(e){!1===e||i(e)?(o.ensureURL(!0),a(e)):"string"===typeof e||"object"===typeof e&&("string"===typeof e.path||"string"===typeof e.name)?(a(),"object"===typeof e&&e.replace?o.replace(e):o.push(e)):n(e)}))}catch(r){a(r)}};Le(h,d,(function(){var n=[],r=function(){return o.current===e},i=Ke(f,n,r),s=i.concat(o.router.resolveHooks);Le(s,d,(function(){if(o.pending!==e)return a();o.pending=null,t(e),o.router.app&&o.router.app.$nextTick((function(){n.forEach((function(e){e()}))}))}))}))},Ge.prototype.updateRoute=function(e){var t=this.current;this.current=e,this.cb&&this.cb(e),this.router.afterHooks.forEach((function(n){n&&n(e,t)}))};var Ze=function(e){function t(t,n){var r=this;e.call(this,t,n);var i=t.options.scrollBehavior,o=Ae&&i;o&&ge();var s=Je(this.base);window.addEventListener("popstate",(function(e){var n=r.current,i=Je(r.base);r.current===I&&i===s||r.transitionTo(i,(function(e){o&&ve(t,e,n,!0)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.go=function(e){window.history.go(e)},t.prototype.push=function(e,t,n){var r=this,i=this,o=i.current;this.transitionTo(e,(function(e){Re(P(r.base+e.fullPath)),ve(r.router,e,o,!1),t&&t(e)}),n)},t.prototype.replace=function(e,t,n){var r=this,i=this,o=i.current;this.transitionTo(e,(function(e){De(P(r.base+e.fullPath)),ve(r.router,e,o,!1),t&&t(e)}),n)},t.prototype.ensureURL=function(e){if(Je(this.base)!==this.current.fullPath){var t=P(this.base+this.current.fullPath);e?Re(t):De(t)}},t.prototype.getCurrentLocation=function(){return Je(this.base)},t}(Ge);function Je(e){var t=decodeURI(window.location.pathname);return e&&0===t.indexOf(e)&&(t=t.slice(e.length)),(t||"/")+window.location.search+window.location.hash}var Xe=function(e){function t(t,n,r){e.call(this,t,n),r&&et(this.base)||tt()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.setupListeners=function(){var e=this,t=this.router,n=t.options.scrollBehavior,r=Ae&&n;r&&ge(),window.addEventListener(Ae?"popstate":"hashchange",(function(){var t=e.current;tt()&&e.transitionTo(nt(),(function(n){r&&ve(e.router,n,t,!0),Ae||ot(n.fullPath)}))}))},t.prototype.push=function(e,t,n){var r=this,i=this,o=i.current;this.transitionTo(e,(function(e){it(e.fullPath),ve(r.router,e,o,!1),t&&t(e)}),n)},t.prototype.replace=function(e,t,n){var r=this,i=this,o=i.current;this.transitionTo(e,(function(e){ot(e.fullPath),ve(r.router,e,o,!1),t&&t(e)}),n)},t.prototype.go=function(e){window.history.go(e)},t.prototype.ensureURL=function(e){var t=this.current.fullPath;nt()!==t&&(e?it(t):ot(t))},t.prototype.getCurrentLocation=function(){return nt()},t}(Ge);function et(e){var t=Je(e);if(!/^\/#/.test(t))return window.location.replace(P(e+"/#"+t)),!0}function tt(){var e=nt();return"/"===e.charAt(0)||(ot("/"+e),!1)}function nt(){var e=window.location.href,t=e.indexOf("#");if(t<0)return"";e=e.slice(t+1);var n=e.indexOf("?");if(n<0){var r=e.indexOf("#");e=r>-1?decodeURI(e.slice(0,r))+e.slice(r):decodeURI(e)}else n>-1&&(e=decodeURI(e.slice(0,n))+e.slice(n));return e}function rt(e){var t=window.location.href,n=t.indexOf("#"),r=n>=0?t.slice(0,n):t;return r+"#"+e}function it(e){Ae?Re(rt(e)):window.location.hash=e}function ot(e){Ae?De(rt(e)):window.location.replace(rt(e))}var st=function(e){function t(t,n){e.call(this,t,n),this.stack=[],this.index=-1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.push=function(e,t,n){var r=this;this.transitionTo(e,(function(e){r.stack=r.stack.slice(0,r.index+1).concat(e),r.index++,t&&t(e)}),n)},t.prototype.replace=function(e,t,n){var r=this;this.transitionTo(e,(function(e){r.stack=r.stack.slice(0,r.index).concat(e),t&&t(e)}),n)},t.prototype.go=function(e){var t=this,n=this.index+e;if(!(n<0||n>=this.stack.length)){var r=this.stack[n];this.confirmTransition(r,(function(){t.index=n,t.updateRoute(r)}))}},t.prototype.getCurrentLocation=function(){var e=this.stack[this.stack.length-1];return e?e.fullPath:"/"},t.prototype.ensureURL=function(){},t}(Ge),at=function(e){void 0===e&&(e={}),this.app=null,this.apps=[],this.options=e,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=fe(e.routes||[],this);var t=e.mode||"hash";switch(this.fallback="history"===t&&!Ae&&!1!==e.fallback,this.fallback&&(t="hash"),L||(t="abstract"),this.mode=t,t){case"history":this.history=new Ze(this,e.base);break;case"hash":this.history=new Xe(this,e.base,this.fallback);break;case"abstract":this.history=new st(this,e.base);break;default:0}},ct={currentRoute:{configurable:!0}};function ut(e,t){return e.push(t),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}function lt(e,t,n){var r="hash"===n?"#"+t:t;return e?P(e+"/"+r):r}at.prototype.match=function(e,t,n){return this.matcher.match(e,t,n)},ct.currentRoute.get=function(){return this.history&&this.history.current},at.prototype.init=function(e){var t=this;if(this.apps.push(e),e.$once("hook:destroyed",(function(){var n=t.apps.indexOf(e);n>-1&&t.apps.splice(n,1),t.app===e&&(t.app=t.apps[0]||null)})),!this.app){this.app=e;var n=this.history;if(n instanceof Ze)n.transitionTo(n.getCurrentLocation());else if(n instanceof Xe){var r=function(){n.setupListeners()};n.transitionTo(n.getCurrentLocation(),r,r)}n.listen((function(e){t.apps.forEach((function(t){t._route=e}))}))}},at.prototype.beforeEach=function(e){return ut(this.beforeHooks,e)},at.prototype.beforeResolve=function(e){return ut(this.resolveHooks,e)},at.prototype.afterEach=function(e){return ut(this.afterHooks,e)},at.prototype.onReady=function(e,t){this.history.onReady(e,t)},at.prototype.onError=function(e){this.history.onError(e)},at.prototype.push=function(e,t,n){this.history.push(e,t,n)},at.prototype.replace=function(e,t,n){this.history.replace(e,t,n)},at.prototype.go=function(e){this.history.go(e)},at.prototype.back=function(){this.go(-1)},at.prototype.forward=function(){this.go(1)},at.prototype.getMatchedComponents=function(e){var t=e?e.matched?e:this.resolve(e).route:this.currentRoute;return t?[].concat.apply([],t.matched.map((function(e){return Object.keys(e.components).map((function(t){return e.components[t]}))}))):[]},at.prototype.resolve=function(e,t,n){t=t||this.history.current;var r=le(e,t,n,this),i=this.match(r,t),o=i.redirectedFrom||i.fullPath,s=this.history.base,a=lt(s,o,this.mode);return{location:r,route:i,href:a,normalizedTo:r,resolved:i}},at.prototype.addRoutes=function(e){this.matcher.addRoutes(e),this.history.current!==I&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(at.prototype,ct),at.install=D,at.version="3.0.6",L&&window.Vue&&window.Vue.use(at),t["a"]=at},"8df4":function(e,t,n){"use strict";var r=n("7a77");function i(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var e,t=new i((function(t){e=t}));return{token:t,cancel:e}},e.exports=i},"8e60":function(e,t,n){e.exports=!n("294c")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},"8e6e":function(e,t,n){var r=n("5ca1"),i=n("990b"),o=n("6821"),s=n("11e9"),a=n("f1ae");r(r.S,"Object",{getOwnPropertyDescriptors:function(e){var t,n,r=o(e),c=s.f,u=i(r),l={},f=0;while(u.length>f)n=c(r,t=u[f++]),void 0!==n&&a(l,t,n);return l}})},"8ea5":function(e,t,n){var r=n("5ca1"),i=n("8ed0");r(r.P+r.F*(Date.prototype.toISOString!==i),"Date",{toISOString:i})},"8eb7":function(e,t){var n,r,i,o,s,a,c,u,l,f,h,d,p,g,v,y=!1;function m(){if(!y){y=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),m=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(d=/\b(iPhone|iP[ao]d)/.exec(e),p=/\b(iP[ao]d)/.exec(e),f=/Android/i.exec(e),g=/FBAN\/\w+;/i.exec(e),v=/Mobile/i.exec(e),h=!!/Win64/.exec(e),t){n=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,n&&document&&document.documentMode&&(n=document.documentMode);var I=/(?:Trident\/(\d+.\d+))/.exec(e);a=I?parseFloat(I[1])+4:n,r=t[2]?parseFloat(t[2]):NaN,i=t[3]?parseFloat(t[3]):NaN,o=t[4]?parseFloat(t[4]):NaN,o?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),s=t&&t[1]?parseFloat(t[1]):NaN):s=NaN}else n=r=i=s=o=NaN;if(m){if(m[1]){var _=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);c=!_||parseFloat(_[1].replace("_","."))}else c=!1;u=!!m[2],l=!!m[3]}else c=u=l=!1}}var I={ie:function(){return m()||n},ieCompatibilityMode:function(){return m()||a>n},ie64:function(){return I.ie()&&h},firefox:function(){return m()||r},opera:function(){return m()||i},webkit:function(){return m()||o},safari:function(){return I.webkit()},chrome:function(){return m()||s},windows:function(){return m()||u},osx:function(){return m()||c},linux:function(){return m()||l},iphone:function(){return m()||d},mobile:function(){return m()||d||p||f||v},nativeApp:function(){return m()||g},android:function(){return m()||f},ipad:function(){return m()||p}};e.exports=I},"8ed0":function(e,t,n){"use strict";var r=n("79e5"),i=Date.prototype.getTime,o=Date.prototype.toISOString,s=function(e){return e>9?e:"0"+e};e.exports=r((function(){return"0385-07-25T07:06:39.999Z"!=o.call(new Date(-50000000000001))}))||!r((function(){o.call(new Date(NaN))}))?function(){if(!isFinite(i.call(this)))throw RangeError("Invalid time value");var e=this,t=e.getUTCFullYear(),n=e.getUTCMilliseconds(),r=t<0?"-":t>9999?"+":"";return r+("00000"+Math.abs(t)).slice(r?-6:-4)+"-"+s(e.getUTCMonth()+1)+"-"+s(e.getUTCDate())+"T"+s(e.getUTCHours())+":"+s(e.getUTCMinutes())+":"+s(e.getUTCSeconds())+"."+(n>99?n:"0"+s(n))+"Z"}:o},"8f60":function(e,t,n){"use strict";var r=n("a159"),i=n("aebd"),o=n("45f2"),s={};n("35e8")(s,n("5168")("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(s,{next:i(1,n)}),o(e,t+" Iterator")}},"8f9b":function(e,t,n){!function(t,r){e.exports=r(n("2b0e"))}("undefined"!=typeof self&&self,(function(e){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="./",t(t.s=64)}([function(e,t,n){"use strict";var r=n(45),i=n.n(r),o=n(6),s=n(50),a=n(13),c=n(49),u=n(27);t.a={data:function(){return{unwatchFns:[]}},mounted:function(){var e=this;a.b&&a.b.load().then((function(){e.__contextReady&&e.__contextReady.call(e,e.convertProps())})),this.$amap=this.$amap||this.$parent.$amap,this.$amap?this.register():this.$on(c.a.AMAP_READY_EVENT,(function(t){e.$amap=t,e.register()}))},destroyed:function(){this.unregisterEvents(),this.$amapComponent&&(this.$amapComponent.setMap&&this.$amapComponent.setMap(null),this.$amapComponent.close&&this.$amapComponent.close(),this.$amapComponent.editor&&this.$amapComponent.editor.close(),this.unwatchFns.forEach((function(e){return e()})),this.unwatchFns=[])},methods:{getHandlerFun:function(e){return this.handlers&&this.handlers[e]?this.handlers[e]:this.$amapComponent["set"+i()(e)]||this.$amapComponent.setOptions},convertProps:function(){var e=this,t={};this.$amap&&(t.map=this.$amap);var n=this.$options.propsData,r=void 0===n?{}:n,i=this.propsRedirect;return Object.keys(r).reduce((function(n,o){var s=o,a=e.convertSignalProp(s,r[s]);return void 0===a||(i&&i[o]&&(s=i[s]),t[s]=a),n}),t)},convertSignalProp:function(e,t){var n="",r="";if(this.amapTagName)try{var s=i()(this.amapTagName).replace(/^El/,"");r=(u.default[s]||"").props[e].$type,n=o.a[r]}catch(e){}if(r&&n)return n(t);if(this.converters&&this.converters[e])return this.converters[e].call(this,t);var a=o.a[e];return a?a(t):t},registerEvents:function(){if(this.setEditorEvents&&this.setEditorEvents(),this.$options.propsData){if(this.$options.propsData.events)for(var e in this.events)s.a.addListener(this.$amapComponent,e,this.events[e]);if(this.$options.propsData.onceEvents)for(var t in this.onceEvents)s.a.addListenerOnce(this.$amapComponent,t,this.onceEvents[t])}},unregisterEvents:function(){s.a.clearListeners(this.$amapComponent)},setPropWatchers:function(){var e=this,t=this.propsRedirect,n=this.$options.propsData,r=void 0===n?{}:n;Object.keys(r).forEach((function(n){var r=n;t&&t[n]&&(r=t[n]);var i=e.getHandlerFun(r);if(i||"events"===n){var o=e.$watch(n,(function(t){return"events"===n?(e.unregisterEvents(),void e.registerEvents()):i&&i===e.$amapComponent.setOptions?i.call(e.$amapComponent,(o={},o[r]=e.convertSignalProp(n,t),o)):void i.call(e.$amapComponent,e.convertSignalProp(n,t));var o}));e.unwatchFns.push(o)}}))},registerToManager:function(){var e=this.amapManager||this.$parent.amapManager;e&&void 0!==this.vid&&e.setComponent(this.vid,this.$amapComponent)},initProps:function(){var e=this;["editable","visible"].forEach((function(t){if(void 0!==e[t]){var n=e.getHandlerFun(t);n&&n.call(e.$amapComponent,e.convertSignalProp(t,e[t]))}}))},printReactiveProp:function(){var e=this;Object.keys(this._props).forEach((function(t){e.$amapComponent["set"+i()(t)]&&console.log(t)}))},register:function(){var e=this,t=this.__initComponent&&this.__initComponent(this.convertProps());t&&t.then?t.then((function(t){return e.registerRest(t)})):this.registerRest(t)},registerRest:function(e){!this.$amapComponent&&e&&(this.$amapComponent=e),this.registerEvents(),this.initProps(),this.setPropWatchers(),this.registerToManager(),this.events&&this.events.init&&this.events.init(this.$amapComponent,this.$amap,this.amapManager||this.$parent.amapManager)},$$getInstance:function(){return this.$amapComponent}}}},function(e,t,n){"use strict";function r(e,t,n,r,i,o,s,a){e=e||{};var c=typeof e.default;"object"!==c&&"function"!==c||(e=e.default);var u,l="function"==typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),o&&(l._scopeId=o),s?(u=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},l._ssrRegister=u):i&&(u=a?function(){i.call(this,this.$root.$options.shadowRoot)}:i),u)if(l.functional){l._injectStyles=u;var f=l.render;l.render=function(e,t){return u.call(t),f(e,t)}}else{var h=l.beforeCreate;l.beforeCreate=h?[].concat(h,u):[u]}return{exports:e,options:l}}t.a=r},function(e,t,n){var r=n(30)("wks"),i=n(14),o=n(3).Symbol,s="function"==typeof o;(e.exports=function(e){return r[e]||(r[e]=s&&o[e]||(s?o:i)("Symbol."+e))}).store=r},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){e.exports=!n(15)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e,t,n){"use strict";function r(e){return new AMap.Pixel(e[0],e[1])}function i(e){return new AMap.Size(e[0],e[1])}function o(e){return Array.isArray(e)?e:[e.getX(),e.getY()]}function s(e){return new AMap.LngLat(e[0],e[1])}function a(e){if(e)return Array.isArray(e)?e.slice():[e.getLng(),e.getLat()]}function c(e){return new AMap.Bounds(s(e[0]),s(e[1]))}t.e=r,t.c=o,t.d=s,t.b=a,n.d(t,"a",(function(){return u}));var u={position:s,offset:r,bounds:c,LngLat:s,Pixel:r,Size:i,Bounds:c}},function(e,t,n){var r=n(3),i=n(8),o=n(11),s=n(14)("src"),a=Function.toString,c=(""+a).split("toString");n(16).inspectSource=function(e){return a.call(e)},(e.exports=function(e,t,n,a){var u="function"==typeof n;u&&(o(n,"name")||i(n,"name",t)),e[t]!==n&&(u&&(o(n,s)||i(n,s,e[t]?""+e[t]:c.join(String(t)))),e===r?e[t]=n:a?e[t]?e[t]=n:i(e,t,n):(delete e[t],i(e,t,n)))})(Function.prototype,"toString",(function(){return"function"==typeof this&&this[s]||a.call(this)}))},function(e,t,n){var r=n(9),i=n(20);e.exports=n(5)?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(10),i=n(31),o=n(33),s=Object.defineProperty;t.f=n(5)?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(4);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t){e.exports={}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return s}));var r=n(97),i=n(19),o=n.n(i),s=null,a=function(e){o.a.prototype.$isServer||s||(s||(s=new r.a(e)),s.load())}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){var n=e.exports={version:"2.5.5"};"number"==typeof __e&&(__e=n)},function(e,t,n){var r=n(71);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){var r=n(75),i=n(22);e.exports=function(e){return r(i(e))}},function(t,n){t.exports=e},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){"use strict";var r=n(70),i=n(34),o=n(7),s=n(8),a=n(12),c=n(72),u=n(25),l=n(79),f=n(2)("iterator"),h=!([].keys&&"next"in[].keys()),d=function(){return this};e.exports=function(e,t,n,p,g,v,y){c(n,t,p);var m,I,_,T=function(e){if(!h&&e in A)return A[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},C=t+" Iterator",M="values"==g,E=!1,A=e.prototype,S=A[f]||A["@@iterator"]||g&&A[g],N=S||T(g),b=g?M?T("entries"):N:void 0,w="Array"==t&&A.entries||S;if(w&&(_=l(w.call(new e)))!==Object.prototype&&_.next&&(u(_,C,!0),r||"function"==typeof _[f]||s(_,f,d)),M&&S&&"values"!==S.name&&(E=!0,N=function(){return S.call(this)}),r&&!y||!h&&!E&&A[f]||s(A,f,N),a[t]=N,a[C]=d,g)if(m={values:M?N:T("values"),keys:v?N:T("keys"),entries:b},y)for(I in m)I in A||o(A,I,m[I]);else i(i.P+i.F*(h||E),t,m);return m}},function(e,t,n){var r=n(30)("keys"),i=n(14);e.exports=function(e){return r[e]||(r[e]=i(e))}},function(e,t,n){var r=n(9).f,i=n(11),o=n(2)("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},function(e,t,n){"use strict";var r=n(50);t.a={methods:{setEditorEvents:function(){var e=this;if(this.$amapComponent.editor&&this.events){var t=["addnode","adjust","removenode","end","move"],n={};Object.keys(this.events).forEach((function(r){-1!==t.indexOf(r)&&(n[r]=e.events[r])})),Object.keys(n).forEach((function(t){r.a.addListener(e.$amapComponent.editor,t,n[t])}))}}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=(n(65),n(45)),i=n.n(r),o=n(13),s=n(100),a=n(106),c=n(107),u=n(111),l=n(113),f=n(115),h=n(116),d=n(118),p=n(120),g=n(122),v=n(124),y=n(126),m=n(128),I=n(130),_=n(131);n.d(t,"AMapManager",(function(){return I.a})),n.d(t,"initAMapApiLoader",(function(){return o.a})),n.d(t,"createCustomComponent",(function(){return _.a})),n.d(t,"lazyAMapApiLoaderInstance",(function(){return o.b}));var T=[s.a,a.a,c.a,u.a,l.a,f.a,d.a,h.a,p.a,g.a,v.a,y.a,m.a],C={initAMapApiLoader:o.a,AMapManager:I.a,install:function(e){C.installed||(e.config.optionMergeStrategies.deferredReady=e.config.optionMergeStrategies.created,T.map((function(t){e.component(t.name,t),C[i()(t.name).replace(/^El/,"")]=t})))}};"undefined"!=typeof window&&window.Vue&&function e(t){e.installed||C.install(t)}(window.Vue),t.default=C},function(e,t,n){var r=n(29),i=n(2)("toStringTag"),o="Arguments"==r(function(){return arguments}()),s=function(e,t){try{return e[t]}catch(e){}};e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=s(t=Object(e),i))?n:o?r(t):"Object"==(a=r(t))&&"function"==typeof t.callee?"Arguments":a}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(3),i=r["__core-js_shared__"]||(r["__core-js_shared__"]={});e.exports=function(e){return i[e]||(i[e]={})}},function(e,t,n){e.exports=!n(5)&&!n(15)((function(){return 7!=Object.defineProperty(n(32)("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){var r=n(4),i=n(3).document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},function(e,t,n){var r=n(4);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var r=n(3),i=n(16),o=n(8),s=n(7),a=n(17),c=function(e,t,n){var u,l,f,h,d=e&c.F,p=e&c.G,g=e&c.S,v=e&c.P,y=e&c.B,m=p?r:g?r[t]||(r[t]={}):(r[t]||{}).prototype,I=p?i:i[t]||(i[t]={}),_=I.prototype||(I.prototype={});for(u in p&&(n=t),n)l=!d&&m&&void 0!==m[u],f=(l?m:n)[u],h=y&&l?a(f,r):v&&"function"==typeof f?a(Function.call,f):f,m&&s(m,u,f,e&c.U),I[u]!=f&&o(I,u,h),v&&_[u]!=f&&(_[u]=f)};r.core=i,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},function(e,t,n){var r=n(10),i=n(73),o=n(38),s=n(24)("IE_PROTO"),a=function(){},c=function(){var e,t=n(32)("iframe"),r=o.length;for(t.style.display="none",n(78).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write("<script>document.F=Object<\/script>"),e.close(),c=e.F;r--;)delete c.prototype[o[r]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(a.prototype=r(e),n=new a,a.prototype=null,n[s]=e):n=c(),void 0===t?n:i(n,t)}},function(e,t,n){var r=n(74),i=n(38);e.exports=Object.keys||function(e){return r(e,i)}},function(e,t,n){var r=n(21),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){var r=n(7);e.exports=function(e,t,n){for(var i in t)r(e,i,t[i],n);return e}},function(e,t){e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},function(e,t,n){var r=n(17),i=n(86),o=n(87),s=n(10),a=n(37),c=n(88),u={},l={};t=e.exports=function(e,t,n,f,h){var d,p,g,v,y=h?function(){return e}:c(e),m=r(n,f,t?2:1),I=0;if("function"!=typeof y)throw TypeError(e+" is not iterable!");if(o(y)){for(d=a(e.length);d>I;I++)if((v=t?m(s(p=e[I])[0],p[1]):m(e[I]))===u||v===l)return v}else for(g=y.call(e);!(p=g.next()).done;)if((v=i(g,m,p.value,t))===u||v===l)return v};t.BREAK=u,t.RETURN=l},function(e,t,n){var r=n(14)("meta"),i=n(4),o=n(11),s=n(9).f,a=0,c=Object.isExtensible||function(){return!0},u=!n(15)((function(){return c(Object.preventExtensions({}))})),l=function(e){s(e,r,{value:{i:"O"+ ++a,w:{}}})},f=function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,r)){if(!c(e))return"F";if(!t)return"E";l(e)}return e[r].i},h=function(e,t){if(!o(e,r)){if(!c(e))return!0;if(!t)return!1;l(e)}return e[r].w},d=function(e){return u&&p.NEED&&c(e)&&!o(e,r)&&l(e),e},p=e.exports={KEY:r,NEED:!1,fastKey:f,getWeak:h,onFreeze:d}},function(e,t,n){var r=n(4);e.exports=function(e,t){if(!r(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},function(e,t,n){"use strict";var r=n(96);e.exports=function(){var e=r.apply(r,arguments);return e.charAt(0).toUpperCase()+e.slice(1)}},function(e,t){function n(e,t){var n=e[1]||"",i=e[3];if(!i)return n;if(t&&"function"==typeof btoa){var o=r(i);return[n].concat(i.sources.map((function(e){return"/*# sourceURL="+i.sourceRoot+e+" */"}))).concat([o]).join("\n")}return[n].join("\n")}function r(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r=n(t,e);return t[2]?"@media "+t[2]+"{"+r+"}":r})).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},i=0;i<this.length;i++){var o=this[i][0];"number"==typeof o&&(r[o]=!0)}for(i=0;i<e.length;i++){var s=e[i];"number"==typeof s[0]&&r[s[0]]||(n&&!s[2]?s[2]=n:n&&(s[2]="("+s[2]+") and ("+n+")"),t.push(s))}},t}},function(e,t,n){function r(e){for(var t=0;t<e.length;t++){var n=e[t],r=l[n.id];if(r){r.refs++;for(var i=0;i<r.parts.length;i++)r.parts[i](n.parts[i]);for(;i<n.parts.length;i++)r.parts.push(o(n.parts[i]));r.parts.length>n.parts.length&&(r.parts.length=n.parts.length)}else{var s=[];for(i=0;i<n.parts.length;i++)s.push(o(n.parts[i]));l[n.id]={id:n.id,refs:1,parts:s}}}}function i(){var e=document.createElement("style");return e.type="text/css",f.appendChild(e),e}function o(e){var t,n,r=document.querySelector('style[data-vue-ssr-id~="'+e.id+'"]');if(r){if(p)return g;r.parentNode.removeChild(r)}if(v){var o=d++;r=h||(h=i()),t=s.bind(null,r,o,!1),n=s.bind(null,r,o,!0)}else r=i(),t=a.bind(null,r),n=function(){r.parentNode.removeChild(r)};return t(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;t(e=r)}else n()}}function s(e,t,n,r){var i=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=y(t,i);else{var o=document.createTextNode(i),s=e.childNodes;s[t]&&e.removeChild(s[t]),s.length?e.insertBefore(o,s[t]):e.appendChild(o)}}function a(e,t){var n=t.css,r=t.media,i=t.sourceMap;if(r&&e.setAttribute("media",r),i&&(n+="\n/*# sourceURL="+i.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var c="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!c)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var u=n(103),l={},f=c&&(document.head||document.getElementsByTagName("head")[0]),h=null,d=0,p=!1,g=function(){},v="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());e.exports=function(e,t,n){p=n;var i=u(e,t);return r(i),function(t){for(var n=[],o=0;o<i.length;o++){var s=i[o],a=l[s.id];a.refs--,n.push(a)}t?(i=u(e,t),r(i)):i=[];for(o=0;o<n.length;o++){a=n[o];if(0===a.refs){for(var c=0;c<a.parts.length;c++)a.parts[c]();delete l[a.id]}}}};var y=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}()},function(e,t,n){"use strict";var r=n(104),i=n(49),o=n(6),s=n(0),a=n(13),c="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};t.a={name:"el-amap",mixins:[s.a],props:["viewMode","skyColor","rotateEnable","pitch","buildingAnimation","pitchEnable","vid","events","center","zoom","draggEnable","level","zooms","lang","defaultCursor","crs","animateEnable","isHotspot","defaultLayer","rotateEnable","resizeEnable","showIndoorMap","indoorMap","expandZoomRange","dragEnable","zoomEnable","doubleClickZoom","keyboardEnable","jogEnable","scrollWheel","touchZoom","mapStyle","plugin","features","amapManager"],beforeCreate:function(){this._loadPromise=a.b.load()},destroyed:function(){this.$amap&&this.$amap.destroy()},computed:{plugins:function(){var e=[],t=/^AMap./,n=function(e){return t.test(e)?e:"AMap."+e},r=function(e){return e.replace(t,"")};return"string"==typeof this.plugin?e.push({pName:n(this.plugin),sName:r(this.plugin)}):this.plugin instanceof Array&&(e=this.plugin.map((function(e){var t={};return"string"==typeof e?t={pName:n(e),sName:r(e)}:(e.pName=n(e.pName),e.sName=r(e.pName),t=e),t}))),e}},data:function(){return{converters:{center:function(e){return Object(o.d)(e)}},handlers:{zoomEnable:function(e){this.setStatus({zoomEnable:e})},dragEnable:function(e){this.setStatus({dragEnable:e})},rotateEnable:function(e){this.setStatus({rotateEnable:e})}}}},mounted:function(){this.createMap()},addEvents:function(){var e=this;this.$amapComponent.on("moveend",(function(){var t=e.$amapComponent.getCenter();e.center=[t.getLng(),t.getLat()]}))},methods:{addPlugins:function(){var e=this.plugins.filter((function(e){return!AMap[e.sName]}));return e&&e.length?this.$amapComponent.plugin(e,this.addMapControls):this.addMapControls()},addMapControls:function(){var e=this;this.plugins&&this.plugins.length&&(this.$plugins=this.$plugins||{},this.plugins.forEach((function(t){var n=e.convertAMapPluginProps(t),r=e.$plugins[n.pName]=new AMap[n.sName](n);if(e.$amapComponent.addControl(r),t.events)for(var i in t.events){var o=t.events[i];"init"===i?o(r):AMap.event.addListener(r,i,o)}})))},convertAMapPluginProps:function(e){if("object"===(void 0===e?"undefined":c(e))&&e.pName){switch(e.pName){case"AMap.ToolBar":case"AMap.Scale":e.offset&&e.offset instanceof Array&&(e.offset=Object(o.e)(e.offset))}return e}return""},setStatus:function(e){this.$amap.setStatus(e)},createMap:function(){var e=this;this._loadPromise.then((function(){var t=e.$el.querySelector(".el-vue-amap"),n=e.vid||Object(r.a)();t.id=n,e.$amap=e.$amapComponent=new AMap.Map(n,e.convertProps()),e.amapManager&&e.amapManager.setMap(e.$amap),e.$emit(i.a.AMAP_READY_EVENT,e.$amap),e.$children.forEach((function(t){t.$emit(i.a.AMAP_READY_EVENT,e.$amap)})),e.plugins&&e.plugins.length&&e.addPlugins()}))},$$getCenter:function(){return this.$amap?Object(o.b)(this.$amap.getCenter()):Object(o.b)(this.center)}}}},function(e,t,n){"use strict";t.a={AMAP_READY_EVENT:"AMAP_READY_EVENT"}},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=void 0,o=function(){function e(){r(this,e),this._listener=new Map}return e.prototype.addListener=function(e,t,n,r){if(!AMap.event)throw new Error("please wait for Map API load");var i=AMap.event.addListener(e,t,n,r);this._listener.get(e)||this._listener.set(e,{});var o=this._listener.get(e);o[t]||(o[t]=[]),o[t].push(i)},e.prototype.removeListener=function(e,t,n){if(!AMap.event)throw new Error("please wait for Map API load");if(this._listener.get(e)&&this._listener.get(e)[t]){var r=this._listener.get(e)[t];if(n){var i=r.indexOf(n);AMap.event.removeListener(r[i]),r.splice(i,1)}else r.forEach((function(e){AMap.event.removeListener(e)})),this._listener.get(e)[t]=[]}},e.prototype.addListenerOnce=function(e,t,n,r){return AMap.event.addListenerOnce(e,t,n,r)},e.prototype.trigger=function(e,t,n){return AMap.event.trigger(e,t,n)},e.prototype.clearListeners=function(e){var t=this,n=this._listener.get(e);n&&Object.keys(n).map((function(n){t.removeListener(e,n)}))},e}();i=i||new o,t.a=i},function(e,t,n){"use strict";var r=n(0),i=n(6),o=n(52),s=n(19),a=n.n(s),c="el-amap-marker";t.a={name:c,mixins:[r.a],props:["vid","position","offset","icon","content","topWhenClick","bubble","draggable","raiseOnDrag","cursor","visible","zIndex","angle","autoRotation","animation","shadow","title","clickable","shape","extData","label","events","onceEvents","template","vnode","contentRender"],data:function(){var e=this;return{$tagName:c,withSlots:!1,tmpVM:null,propsRedirect:{template:"content",vnode:"content",contentRender:"content"},converters:{shape:function(e){return new AMap.MarkerShape(e)},shadow:function(e){return new AMap.Icon(e)},template:function(t){var n=Object(o.a)(t,e);return this.$customContent=n,n.$el},vnode:function(t){var n="function"==typeof t?t(e):t,r=Object(o.c)(n);return this.$customContent=r,r.$el},contentRender:function(t){var n=Object(o.b)(t,e);return this.$customContent=n,n.$el},label:function(e){var t=e.content,n=void 0===t?"":t,r=e.offset,o=void 0===r?[0,0]:r;return{content:n,offset:Object(i.e)(o)}}},handlers:{zIndex:function(e){this.setzIndex(e)},visible:function(e){!1===e?this.hide():this.show()}}}},created:function(){this.tmpVM=new a.a({data:function(){return{node:""}},render:function(e){var t=this.node;return e("div",{ref:"node"},Array.isArray(t)?t:[t])}}).$mount()},methods:{__initComponent:function(e){this.$slots.default&&this.$slots.default.length&&(e.content=this.tmpVM.$refs.node),this.$amapComponent=new AMap.Marker(e)},$$getExtData:function(){return this.$amapComponent.getExtData()},$$getPosition:function(){return Object(i.b)(this.$amapComponent.getPosition())},$$getOffset:function(){return Object(i.c)(this.$amapComponent.getOffset())}},render:function(e){var t=this.$slots.default||[];return t.length&&(this.tmpVM.node=t),null},destroyed:function(){this.tmpVM.$destroy(),this.$customContent&&this.$customContent.$destroy&&this.$customContent.$destroy()}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"c",(function(){return a})),n.d(t,"b",(function(){return c}));var r=n(19),i=n.n(r),o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=function(e,t){var n=["methods","computed","data","filters"],r={},s=i.a.compile(e);n.forEach((function(e){r[e]=t.$parent.$parent.$options[e],"data"===e&&"function"==typeof r[e]&&(r[e]=r[e]())}));var a=new i.a(o({},r,s));return a.$mount(),a},a=function(e){var t=new i.a({render:function(t){return t("div",e)}});return t.$mount(),t},c=function(e,t){var n=new i.a({render:function(n){return e(n,t)}});return n.$mount(),n}},function(e,t,n){"use strict";var r=n(0),i=n(13);t.a={name:"el-amap-search-box",mixins:[r.a],props:["searchOption","onSearchResult","events","default"],data:function(){return{keyword:this.default||"",tips:[],selectedTip:-1,loaded:!1,adcode:null}},mounted:function(){var e=this;i.b.load().then((function(){e.loaded=!0,e._onSearchResult=e.onSearchResult,e.events&&e.events.init&&e.events.init({autoComplete:e._autoComplete,placeSearch:e._placeSearch})}))},computed:{_autoComplete:function(){if(this.loaded)return new AMap.Autocomplete(this.searchOption||{})},_placeSearch:function(){if(this.loaded)return new AMap.PlaceSearch(this.searchOption||{})}},methods:{autoComplete:function(){var e=this;this.keyword&&this._autoComplete&&this._autoComplete.search(this.keyword,(function(t,n){"complete"===t&&(e.tips=n.tips)}))},search:function(){var e=this;if(this.tips=[],this._placeSearch){var t=null;t=this.searchOption.citylimit&&this.searchOption.city?this.searchOption.city:this.adcode,this._placeSearch.setCity(t||this.searchOption.city),this._placeSearch.search(this.keyword,(function(t,n){if(n&&n.poiList&&n.poiList.count){var r=n.poiList.pois,i=r.map((function(e){return e.lat=e.location.lat,e.lng=e.location.lng,e}));e._onSearchResult(i)}else if(void 0===n.poiList)throw new Error(n)}))}},changeTip:function(e){this.adcode=e.adcode,this.keyword=e.name,this.search()},selectTip:function(e){"up"===e&&this.selectedTip>0?(this.selectedTip-=1,this.keyword=this.tips[this.selectedTip].name,this.adcode=this.tips[this.selectedTip].adcode):"down"===e&&this.selectedTip+1<this.tips.length&&(this.selectedTip+=1,this.keyword=this.tips[this.selectedTip].name,this.adcode=this.tips[this.selectedTip].adcode)}}}},function(e,t,n){"use strict";var r=n(0),i=n(6),o=n(26);t.a={name:"el-amap-circle",mixins:[r.a,o.a],props:["vid","zIndex","center","bubble","radius","strokeColor","strokeOpacity","strokeWeight","editable","fillColor","fillOpacity","strokeStyle","extData","strokeDasharray","events","visible","extData","onceEvents"],data:function(){return{converters:{center:function(e){return Object(i.d)(e)}},handlers:{zIndex:function(e){this.setzIndex(e)},visible:function(e){!1===e?this.hide():this.show()},editable:function(e){!0===e?this.editor.open():this.editor.close()}}}},methods:{__initComponent:function(e){this.$amapComponent=new AMap.Circle(e),this.$amapComponent.editor=new AMap.CircleEditor(this.$amap,this.$amapComponent)},$$getCenter:function(){return Object(i.b)(this.$amapComponent.getCenter())}}}},function(e,t,n){"use strict";var r=n(0);t.a={name:"el-amap-ground-image",mixins:[r.a],props:["vid","clickable","opacity","url","bounds","visible","events","onceEvents"],destroyed:function(){this.$amapComponent.setMap(null)},data:function(){return{converters:{},handlers:{visible:function(e){!1===e?this.setMap(null):this.setMap(this.$amap)}}}},methods:{__initComponent:function(e){this.$amapComponent=new AMap.ImageLayer(e)}}}},function(e,t,n){"use strict";var r=n(6),i=n(0),o=n(52),s=n(19),a=n.n(s);t.a={name:"el-amap-info-window",mixins:[i.a],props:["vid","isCustom","autoMove","closeWhenClickMap","content","size","offset","position","showShadow","visible","events","template","vnode","contentRender"],data:function(){var e=this;return{withSlots:!1,tmpVM:null,propsRedirect:{template:"content",vnode:"content",contentRender:"content"},converters:{template:function(t){var n=Object(o.a)(t,e);return this.$customContent=n,n.$el},vnode:function(t){var n="function"==typeof t?t(e):t,r=Object(o.c)(n);return this.$customContent=r,r.$el},contentRender:function(t){var n=Object(o.b)(t,e);return this.$customContent=n,n.$el}},handlers:{visible:function(t){var n=this.getPosition();n&&(!1===t?this.close():this.open(e.$amap,[n.lng,n.lat]))},template:function(e){this.setContent(e)}}}},created:function(){this.tmpVM=new a.a({data:function(){return{node:""}},render:function(e){var t=this.node;return e("div",{ref:"node"},Array.isArray(t)?t:[t])}}).$mount()},destroyed:function(){this.$amapComponent.close(),this.tmpVM.$destroy(),this.$customContent&&this.$customContent.$destroy&&this.$customContent.$destroy()},methods:{__initComponent:function(e){this.$slots.default&&this.$slots.default.length&&(e.content=this.tmpVM.$refs.node),delete e.map,this.$amapComponent=new AMap.InfoWindow(e),!1!==this.visible&&this.$amapComponent.open(this.$amap,Object(r.d)(this.position))}},render:function(e){var t=this.$slots.default||[];return t.length&&(this.tmpVM.node=t),null}}},function(e,t,n){"use strict";var r=n(0),i=n(26),o=n(6);t.a={name:"el-amap-polyline",mixins:[r.a,i.a],props:["vid","zIndex","visible","editable","bubble","geodesic","isOutline","outlineColor","path","strokeColor","strokeOpacity","strokeWeight","strokeStyle","strokeDasharray","events","extData","onceEvents","lineJoin"],data:function(){return{converters:{},handlers:{visible:function(e){!1===e?this.hide():this.show()},editable:function(e){!0===e?this.editor.open():this.editor.close()}}}},methods:{__initComponent:function(e){this.$amapComponent=new AMap.Polyline(e),this.$amapComponent.editor=new AMap.PolyEditor(this.$amap,this.$amapComponent)},$$getPath:function(){return this.$amapComponent.getPath().map(o.b)},$$getBounds:function(){return this.$amapComponent.getBounds()},$$getExtData:function(){return this.$amapComponent.getExtData()}}}},function(e,t,n){"use strict";var r=n(0),i=n(26),o=n(6);t.a={name:"el-amap-polygon",mixins:[r.a,i.a],props:["vid","zIndex","path","bubble","strokeColor","strokeOpacity","strokeWeight","fillColor","editable","fillOpacity","extData","strokeStyle","visible","strokeDasharray","events","onceEvents","draggable"],data:function(){return{converters:{},handlers:{visible:function(e){!1===e?this.hide():this.show()},zIndex:function(e){this.setOptions({zIndex:e})},editable:function(e){!0===e?this.editor.open():this.editor.close()}}}},methods:{__initComponent:function(){var e=this.convertProps();this.$amapComponent=new AMap.Polygon(e),this.$amapComponent.editor=new AMap.PolyEditor(this.$amap,this.$amapComponent)},$$getPath:function(){return this.$amapComponent.getPath().map(o.b)},$$getExtData:function(){return this.$amapComponent.getExtData()},$$contains:function(e){return Array.isArray(e)&&(e=new AMap.LngLat(e[0],e[1])),this.$amapComponent.getBounds().contains(e)}}}},function(e,t,n){"use strict";var r=n(0),i="el-amap-text";t.a={name:i,mixins:[r.a],props:{vid:{type:String,default:""},text:{type:String,default:""},textAlign:{type:String,default:""},verticalAlign:{type:String,default:""},position:{type:Array,default:function(){return[0,0]},$type:"LngLat"},offset:{type:Array,default:function(){return[0,0]},$type:"Pixel"},topWhenClick:{type:Boolean,default:function(){return!1}},bubble:{type:Boolean,default:function(){return!1}},draggable:{type:Boolean,default:function(){return!1}},raiseOnDrag:{type:Boolean,default:function(){return!1}},cursor:{type:String,default:function(){return""}},visible:{type:Boolean,default:function(){return!0}},zIndex:{type:Number,default:function(){return 100}},angle:{type:Number,default:function(){return 0}},autoRotation:{type:Boolean,default:function(){return!1}},animation:{type:String,default:function(){return"“AMAP_ANIMATION_NONE”"}},shadow:{type:Object,default:function(){return{}},$type:"Icon"},title:{type:String,default:function(){return""}},clickable:{type:Boolean,default:!0},events:{type:Object,default:function(){return{}}}},data:function(){return{converters:{},handlers:{zIndex:function(e){this.setzIndex(e)},visible:function(e){!1===e?this.hide():this.show()}},amapTagName:i}},methods:{__initComponent:function(e){this.$amapComponent=new AMap.Text(e)}}}},function(e,t,n){"use strict";var r=n(0),i="el-amap-bezier-curve";t.a={name:i,mixins:[r.a],props:{vid:{type:String},path:{type:Array},strokeColor:{type:String},strokeOpacity:{type:Number},strokeWeight:{type:Number,default:function(){return 1}},strokeStyle:{type:String},strokeDasharray:{type:Array},zIndex:{type:Number},showDir:{type:Boolean},bubble:{type:Boolean},cursor:{type:String},outlineColor:{type:Boolean},isOutline:{type:Boolean},visible:{type:Boolean,default:!0},events:{type:Object,default:function(){return{}}}},data:function(){return{converters:{},handlers:{zIndex:function(e){this.setzIndex(e)},visible:function(e){!1===e?this.hide():this.show()}},amapTagName:i}},methods:{__initComponent:function(e){this.$amapComponent=new AMap.BezierCurve(e)}}}},function(e,t,n){"use strict";var r=n(0),i="el-amap-circle-marker";t.a={name:i,mixins:[r.a],props:{vid:{type:String},zIndex:{type:Number},visible:{type:Boolean,default:!0},center:{type:Array,$type:"LngLat"},bubble:{type:Boolean},radius:{type:Number},strokeColor:{type:String},strokeOpacity:{type:Number},strokeWeight:{type:Number},fillColor:{type:String},fillOpacity:{type:Number},extData:{type:Object},events:{type:Object,default:function(){return{}}}},data:function(){return{converters:{},handlers:{zIndex:function(e){this.setzIndex(e)},visible:function(e){!1===e?this.hide():this.show()}},amapTagName:i}},methods:{__initComponent:function(e){this.$amapComponent=new AMap.CircleMarker(e)}}}},function(e,t,n){"use strict";var r=n(0),i="el-amap-ellipse";t.a={name:i,mixins:[r.a],props:{vid:{type:String},zIndex:{type:Number},center:{type:Array,$type:"LngLat"},radius:{type:Array,default:function(){return[1e3,1e3]}},bubble:{type:Boolean},cursor:{type:String},strokeColor:{type:String},strokeOpacity:{type:Number},strokeWeight:{type:Number},fillColor:{type:String},fillOpacity:{type:Number},strokeStyle:{type:String},extData:{type:Object,default:function(){return{}}},visible:{type:Boolean,default:!0},events:{type:Object,default:function(){return{}}}},data:function(){return{converters:{},handlers:{zIndex:function(e){this.setzIndex(e)},visible:function(e){!1===e?this.hide():this.show()}},amapTagName:i}},methods:{__initComponent:function(e){this.$amapComponent=new AMap.Ellipse(e)}}}},function(e,t,n){"use strict";var r=n(0),i="el-amap-rectangle";t.a={name:i,mixins:[r.a],props:{vid:{type:String},zIndex:{type:Number},center:{type:Array,$type:"LngLat"},bounds:{type:Array,$type:"Bounds"},bubble:{type:Boolean},cursor:{type:String},strokeColor:{type:String},strokeOpacity:{type:Number},strokeWeight:{type:Number},fillColor:{type:String},fillOpacity:{type:Number},strokeStyle:{type:String},extData:{type:Object,default:function(){return{}}},visible:{type:Boolean,default:!0},events:{type:Object,default:function(){return{}}}},data:function(){return{converters:{},handlers:{zIndex:function(e){this.setzIndex(e)},visible:function(e){!1===e?this.hide():this.show()}},amapTagName:i}},methods:{__initComponent:function(e){this.$amapComponent=new AMap.Rectangle(e)}}}},function(e,t,n){e.exports=n(27)},function(e,t,n){"use strict";var r=n(66);n.n(r)},function(e,t,n){n(67),n(68),n(81),n(84),e.exports=n(16).Map},function(e,t,n){"use strict";var r=n(28),i={};i[n(2)("toStringTag")]="z",i+""!="[object z]"&&n(7)(Object.prototype,"toString",(function(){return"[object "+r(this)+"]"}),!0)},function(e,t,n){"use strict";var r=n(69)(!0);n(23)(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})}))},function(e,t,n){var r=n(21),i=n(22);e.exports=function(e){return function(t,n){var o,s,a=String(i(t)),c=r(n),u=a.length;return c<0||c>=u?e?"":void 0:(o=a.charCodeAt(c),o<55296||o>56319||c+1===u||(s=a.charCodeAt(c+1))<56320||s>57343?e?a.charAt(c):o:e?a.slice(c,c+2):s-56320+(o-55296<<10)+65536)}}},function(e,t){e.exports=!1},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){"use strict";var r=n(35),i=n(20),o=n(25),s={};n(8)(s,n(2)("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(s,{next:i(1,n)}),o(e,t+" Iterator")}},function(e,t,n){var r=n(9),i=n(10),o=n(36);e.exports=n(5)?Object.defineProperties:function(e,t){i(e);for(var n,s=o(t),a=s.length,c=0;a>c;)r.f(e,n=s[c++],t[n]);return e}},function(e,t,n){var r=n(11),i=n(18),o=n(76)(!1),s=n(24)("IE_PROTO");e.exports=function(e,t){var n,a=i(e),c=0,u=[];for(n in a)n!=s&&r(a,n)&&u.push(n);for(;t.length>c;)r(a,n=t[c++])&&(~o(u,n)||u.push(n));return u}},function(e,t,n){var r=n(29);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t,n){var r=n(18),i=n(37),o=n(77);e.exports=function(e){return function(t,n,s){var a,c=r(t),u=i(c.length),l=o(s,u);if(e&&n!=n){for(;u>l;)if((a=c[l++])!=a)return!0}else for(;u>l;l++)if((e||l in c)&&c[l]===n)return e||l||0;return!e&&-1}}},function(e,t,n){var r=n(21),i=Math.max,o=Math.min;e.exports=function(e,t){return e=r(e),e<0?i(e+t,0):o(e,t)}},function(e,t,n){var r=n(3).document;e.exports=r&&r.documentElement},function(e,t,n){var r=n(11),i=n(80),o=n(24)("IE_PROTO"),s=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?s:null}},function(e,t,n){var r=n(22);e.exports=function(e){return Object(r(e))}},function(e,t,n){for(var r=n(82),i=n(36),o=n(7),s=n(3),a=n(8),c=n(12),u=n(2),l=u("iterator"),f=u("toStringTag"),h=c.Array,d={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},p=i(d),g=0;g<p.length;g++){var v,y=p[g],m=d[y],I=s[y],_=I&&I.prototype;if(_&&(_[l]||a(_,l,h),_[f]||a(_,f,y),c[y]=h,m))for(v in r)_[v]||o(_,v,r[v],!0)}},function(e,t,n){"use strict";var r=n(83),i=n(39),o=n(12),s=n(18);e.exports=n(23)(Array,"Array",(function(e,t){this._t=s(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},function(e,t,n){var r=n(2)("unscopables"),i=Array.prototype;void 0==i[r]&&n(8)(i,r,{}),e.exports=function(e){i[r][e]=!0}},function(e,t,n){"use strict";var r=n(85),i=n(44);e.exports=n(90)("Map",(function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}}),{get:function(e){var t=r.getEntry(i(this,"Map"),e);return t&&t.v},set:function(e,t){return r.def(i(this,"Map"),0===e?0:e,t)}},r,!0)},function(e,t,n){"use strict";var r=n(9).f,i=n(35),o=n(40),s=n(17),a=n(41),c=n(42),u=n(23),l=n(39),f=n(89),h=n(5),d=n(43).fastKey,p=n(44),g=h?"_s":"size",v=function(e,t){var n,r=d(t);if("F"!==r)return e._i[r];for(n=e._f;n;n=n.n)if(n.k==t)return n};e.exports={getConstructor:function(e,t,n,u){var l=e((function(e,r){a(e,l,t,"_i"),e._t=t,e._i=i(null),e._f=void 0,e._l=void 0,e[g]=0,void 0!=r&&c(r,n,e[u],e)}));return o(l.prototype,{clear:function(){for(var e=p(this,t),n=e._i,r=e._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];e._f=e._l=void 0,e[g]=0},delete:function(e){var n=p(this,t),r=v(n,e);if(r){var i=r.n,o=r.p;delete n._i[r.i],r.r=!0,o&&(o.n=i),i&&(i.p=o),n._f==r&&(n._f=i),n._l==r&&(n._l=o),n[g]--}return!!r},forEach:function(e){p(this,t);for(var n,r=s(e,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(e){return!!v(p(this,t),e)}}),h&&r(l.prototype,"size",{get:function(){return p(this,t)[g]}}),l},def:function(e,t,n){var r,i,o=v(e,t);return o?o.v=n:(e._l=o={i:i=d(t,!0),k:t,v:n,p:r=e._l,n:void 0,r:!1},e._f||(e._f=o),r&&(r.n=o),e[g]++,"F"!==i&&(e._i[i]=o)),e},getEntry:v,setStrong:function(e,t,n){u(e,t,(function(e,n){this._t=p(e,t),this._k=n,this._l=void 0}),(function(){for(var e=this,t=e._k,n=e._l;n&&n.r;)n=n.p;return e._t&&(e._l=n=n?n.n:e._t._f)?l(0,"keys"==t?n.k:"values"==t?n.v:[n.k,n.v]):(e._t=void 0,l(1))}),n?"entries":"values",!n,!0),f(t)}}},function(e,t,n){var r=n(10);e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(t){var o=e.return;throw void 0!==o&&r(o.call(e)),t}}},function(e,t,n){var r=n(12),i=n(2)("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||o[i]===e)}},function(e,t,n){var r=n(28),i=n(2)("iterator"),o=n(12);e.exports=n(16).getIteratorMethod=function(e){if(void 0!=e)return e[i]||e["@@iterator"]||o[r(e)]}},function(e,t,n){"use strict";var r=n(3),i=n(9),o=n(5),s=n(2)("species");e.exports=function(e){var t=r[e];o&&t&&!t[s]&&i.f(t,s,{configurable:!0,get:function(){return this}})}},function(e,t,n){"use strict";var r=n(3),i=n(34),o=n(7),s=n(40),a=n(43),c=n(42),u=n(41),l=n(4),f=n(15),h=n(91),d=n(25),p=n(92);e.exports=function(e,t,n,g,v,y){var m=r[e],I=m,_=v?"set":"add",T=I&&I.prototype,C={},M=function(e){var t=T[e];o(T,e,"delete"==e||"has"==e?function(e){return!(y&&!l(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return y&&!l(e)?void 0:t.call(this,0===e?0:e)}:"add"==e?function(e){return t.call(this,0===e?0:e),this}:function(e,n){return t.call(this,0===e?0:e,n),this})};if("function"==typeof I&&(y||T.forEach&&!f((function(){(new I).entries().next()})))){var E=new I,A=E[_](y?{}:-0,1)!=E,S=f((function(){E.has(1)})),N=h((function(e){new I(e)})),b=!y&&f((function(){for(var e=new I,t=5;t--;)e[_](t,t);return!e.has(-0)}));N||(I=t((function(t,n){u(t,I,e);var r=p(new m,t,I);return void 0!=n&&c(n,v,r[_],r),r})),I.prototype=T,T.constructor=I),(S||b)&&(M("delete"),M("has"),v&&M("get")),(b||A)&&M(_),y&&T.clear&&delete T.clear}else I=g.getConstructor(t,e,v,_),s(I.prototype,n),a.NEED=!0;return d(I,e),C[e]=I,i(i.G+i.W+i.F*(I!=m),C),y||g.setStrong(I,e,v),I}},function(e,t,n){var r=n(2)("iterator"),i=!1;try{var o=[7][r]();o.return=function(){i=!0},Array.from(o,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var o=[7],s=o[r]();s.next=function(){return{done:n=!0}},o[r]=function(){return s},e(o)}catch(e){}return n}},function(e,t,n){var r=n(4),i=n(93).set;e.exports=function(e,t,n){var o,s=t.constructor;return s!==n&&"function"==typeof s&&(o=s.prototype)!==n.prototype&&r(o)&&i&&i(e,o),e}},function(e,t,n){var r=n(4),i=n(10),o=function(e,t){if(i(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{r=n(17)(Function.call,n(94).f(Object.prototype,"__proto__").set,2),r(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return o(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:o}},function(e,t,n){var r=n(95),i=n(20),o=n(18),s=n(33),a=n(11),c=n(31),u=Object.getOwnPropertyDescriptor;t.f=n(5)?u:function(e,t){if(e=o(e),t=s(t,!0),c)try{return u(e,t)}catch(e){}if(a(e,t))return i(!r.f.call(e,t),e[t])}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){"use strict";e.exports=function(){var e=[].map.call(arguments,(function(e){return e.trim()})).filter((function(e){return e.length})).join("-");return e.length?1!==e.length&&/[_.\- ]+/.test(e)?e.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,(function(e,t){return t.toUpperCase()})):e[0]===e[0].toLowerCase()&&e.slice(1)!==e.slice(1).toLowerCase()?e:e.toLowerCase():""}},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=n(98),o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s={key:null,v:"1.4.4",protocol:"https",hostAndPath:"webapi.amap.com/maps",plugin:[],callback:"amapInitComponent"},a=function(){function e(t){r(this,e),this._config=o({},s,t),this._document=document,this._window=window,this._scriptLoaded=!1,this._queueEvents=[i.a]}return e.prototype.load=function(){var e=this;if(this._window.AMap&&this._window.AMap.Map)return this.loadUIAMap();if(this._scriptLoadingPromise)return this._scriptLoadingPromise;var t=this._document.createElement("script");t.type="text/javascript",t.async=!0,t.defer=!0,t.src=this._getScriptSrc();var n=this._config.uiVersion?this.loadUIAMap():null;return this._scriptLoadingPromise=new Promise((function(r,i){e._window.amapInitComponent=function(){for(;e._queueEvents.length;)e._queueEvents.pop().apply();if(!n)return r();n.then((function(){window.initAMapUI(),setTimeout(r)}))},t.onerror=function(e){return i(e)}})),this._document.head.appendChild(t),this._scriptLoadingPromise},e.prototype.loadUIAMap=function(){var e=this;return!this._config.uiVersion||window.AMapUI?Promise.resolve():new Promise((function(t,n){var r=document.createElement("script"),i=e._config.uiVersion.split("."),o=i[0],s=i[1],a=i[2];if(void 0!==o&&void 0!==s){var c=e._config.protocol+"://webapi.amap.com/ui/"+o+"."+s+"/main-async.js";a&&(c+="?v="+o+"."+s+"."+a),r.src=c,r.type="text/javascript",r.async=!0,e._document.head.appendChild(r),r.onload=function(){setTimeout(t,0)},r.onerror=function(){return n()}}else console.error("amap ui version is not correct, please check! version: ",e._config.uiVersion)}))},e.prototype._getScriptSrc=function(){var e=/^AMap./,t=this._config,n=["v","key","plugin","callback"];if(t.plugin&&t.plugin.length>0){t.plugin.push("Autocomplete","PlaceSearch","PolyEditor","CircleEditor");var r=[];t.plugin.forEach((function(t){var n=e.test(t)?t:"AMap."+t,i=n.replace(e,"");r.push(n,i)})),t.plugin=r}var i=Object.keys(t).filter((function(e){return~n.indexOf(e)})).filter((function(e){return null!=t[e]})).filter((function(e){return!Array.isArray(t[e])||Array.isArray(t[e])&&t[e].length>0})).map((function(e){var n=t[e];return Array.isArray(n)?{key:e,value:n.join(",")}:{key:e,value:n}})).map((function(e){return e.key+"="+e.value})).join("&");return this._config.protocol+"://"+this._config.hostAndPath+"?"+i},e}();t.a=a},function(e,t,n){"use strict";function r(){if(AMap.UA.ios&&"https:"!==document.location.protocol){var e=new i.a;navigator.geolocation.getCurrentPosition=function(){return e.getCurrentPosition.apply(e,arguments)},navigator.geolocation.watchPosition=function(){return e.watchPosition.apply(e,arguments)}}}t.a=r;var i=n(99)},function(e,t,n){"use strict";function r(){this._remoteSvrUrl="https://webapi.amap.com/html/geolocate.html",this._callbackList=[],this._seqBase=1,this._frameReady=0,this._watchIdMap={}}r.prototype={_getSeq:function(){return this._seqBase++},_onRrameReady:function(e){if(0===this._frameReady)return this._frameReadyList||(this._frameReadyList=[]),this._frameReadyList.push(e),void this._prepareIframe();e.call(this)},_prepareIframe:function(){if(!this._iframeWin){var e=document.createElement("iframe");e.src=this._remoteSvrUrl+(this._remoteSvrUrl.indexOf("?")>0?"&":"?"),e.width="0px",e.height="0px",e.style.position="absolute",e.style.display="none",e.allow="geolocation";var t=this,n=setTimeout((function(){t._frameReady=!1,t._callbackFrameReadyList()}),5e3);e.onload=function(){clearTimeout(n),t._frameReady=!0,t._callbackFrameReadyList(),e.onload=null},document.body.appendChild(e),this._iframeWin=e.contentWindow,window.addEventListener("message",(function(e){0===t._remoteSvrUrl.indexOf(e.origin)&&t._handleRemoteMsg(e.data)}),!1)}},_callbackFrameReadyList:function(){if(this._frameReadyList){var e=this._frameReadyList;this._frameReadyList=null;for(var t=0,n=e.length;t<n;t++)e[t].call(this,this._frameReady)}},_pickCallback:function(e,t){for(var n=this._callbackList,r=0,i=n.length;r<i;r++){var o=n[r];if(e===o.seq)return t||n.splice(r,1),o}},_handleRemoteMsg:function(e){var t=e.seq,n=this._pickCallback(t,!!e.notify);n?n.cbk.call(null,e.error,e.result):console.warn("Receive remote msg: ",e)},_postMessage:function(e,t,n,r){this._prepareIframe();var i={cmd:e,args:t,seq:r||this._getSeq()};this._callbackList.push({cbk:n,seq:i.seq}),this._onRrameReady((function(){if(!0===this._frameReady)try{this._iframeWin.postMessage(i,"*")}catch(e){this._pickCallback(i.seq),n(e)}else this._pickCallback(i.seq),n({message:"iFrame load failed!"})}))},getCurrentPosition:function(e,t,n){this._postMessage("getCurrentPosition",[n],(function(n,r){n?t&&t(n):e&&e(r)}))},watchPosition:function(e,t,n){var r="wk"+this._getSeq(),i=this._getSeq();this._watchIdMap[r]={stat:0,seq:i};var o=this;return this._postMessage("watchPosition",[n],(function(n,i){var s=null;i&&(s=i.id);var a=o._watchIdMap[r];if(a.id=s,a.stat=1,a.callbackList){var c=a.callbackList;a.callbackList=null;for(var u=0,l=c.length;u<l;u++)c[u].call(o,s)}n?t&&t(n):e&&e(i.pos)}),i),r},clearWatch:function(e,t){function n(n){i._postMessage("clearWatch",[n],(function(n,o){n||(i._pickCallback(r.seq),delete i._watchIdMap[e]),t&&t(n,o)}))}if(this._watchIdMap[e]){var r=this._watchIdMap[e],i=this;r.stat<1?(r.callbackList||(r.callbackList=[]),r.callbackList.push((function(e){n(e)}))):n(r.id)}else t("Id not exists: "+e)}},t.a=r},function(e,t,n){"use strict";function r(e){n(101)}var i=n(48),o=n(105),s=n(1),a=r,c=Object(s.a)(i.a,o.a,o.b,!1,a,null,null);t.a=c.exports},function(e,t,n){var r=n(102);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals),n(47)("d6014b94",r,!0)},function(e,t,n){t=e.exports=n(46)(!1),t.push([e.i,".el-vue-amap-container,.el-vue-amap-container .el-vue-amap{height:100%}",""])},function(e,t){e.exports=function(e,t){for(var n=[],r={},i=0;i<t.length;i++){var o=t[i],s=o[0],a=o[1],c=o[2],u=o[3],l={id:e+":"+i,css:a,media:c,sourceMap:u};r[s]?r[s].parts.push(l):n.push(r[s]={id:s,parts:[l]})}return n}},function(e,t,n){"use strict";function r(){for(var e=[],t="0123456789abcdef",n=0;n<36;n++)e[n]=t.substr(Math.floor(16*Math.random()),1);return e[14]="4",e[19]=t.substr(3&e[19]|8,1),e[8]=e[13]=e[18]=e[23]="-",e.join("")}t.a=r},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-vue-amap-container"},[n("div",{staticClass:"el-vue-amap"}),e._v(" "),e._t("default")],2)},i=[]},function(e,t,n){"use strict";var r=n(51),i=n(1),o=Object(i.a)(r.a,void 0,void 0,!1,null,null,null);t.a=o.exports},function(e,t,n){"use strict";function r(e){n(108)}var i=n(53),o=n(110),s=n(1),a=r,c=Object(s.a)(i.a,o.a,o.b,!1,a,null,null);t.a=c.exports},function(e,t,n){var r=n(109);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals),n(47)("80e271aa",r,!0)},function(e,t,n){t=e.exports=n(46)(!1),t.push([e.i,".el-vue-search-box-container{position:relative;width:360px;height:45px;background:#fff;box-shadow:0 2px 2px rgba(0,0,0,.15);border-radius:2px 3px 3px 2px;z-index:10}.el-vue-search-box-container .search-box-wrapper{position:absolute;display:flex;align-items:center;left:0;top:0;width:100%;height:100%;box-sizing:border-box}.el-vue-search-box-container .search-box-wrapper input{flex:1;height:20px;line-height:20px;letter-spacing:.5px;font-size:14px;text-indent:10px;box-sizing:border-box;border:none;outline:none}.el-vue-search-box-container .search-box-wrapper .search-btn{width:45px;height:100%;display:flex;align-items:center;justify-content:center;background:transparent;cursor:pointer}.el-vue-search-box-container .search-tips{position:absolute;top:100%;border:1px solid #dbdbdb;background:#fff;overflow:auto}.el-vue-search-box-container .search-tips ul{padding:0;margin:0}.el-vue-search-box-container .search-tips ul li{height:40px;line-height:40px;box-shadow:0 1px 1px rgba(0,0,0,.1);padding:0 10px;cursor:pointer}.el-vue-search-box-container .search-tips ul li.autocomplete-selected{background:#eee}",""])},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-vue-search-box-container",on:{keydown:[function(t){if(!("button"in t)&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"]))return null;e.selectTip("up")},function(t){if(!("button"in t)&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"]))return null;e.selectTip("down")}]}},[n("div",{staticClass:"search-box-wrapper"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.keyword,expression:"keyword"}],attrs:{type:"text"},domProps:{value:e.keyword},on:{keyup:function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?e.search(t):null},input:[function(t){t.target.composing||(e.keyword=t.target.value)},e.autoComplete]}}),e._v(" "),n("span",{staticClass:"search-btn",on:{click:e.search}},[e._v("搜索")])]),e._v(" "),n("div",{staticClass:"search-tips"},[n("ul",e._l(e.tips,(function(t,r){return n("li",{key:r,class:{"autocomplete-selected":r===e.selectedTip},on:{click:function(n){e.changeTip(t)},mouseover:function(t){e.selectedTip=r}}},[e._v(e._s(t.name))])})))])])},i=[]},function(e,t,n){"use strict";var r=n(54),i=n(112),o=n(1),s=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);t.a=s.exports},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));var r=function(){var e=this,t=e.$createElement;return(e._self._c||t)("div")},i=[]},function(e,t,n){"use strict";var r=n(55),i=n(114),o=n(1),s=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);t.a=s.exports},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));var r=function(){var e=this,t=e.$createElement;return(e._self._c||t)("div")},i=[]},function(e,t,n){"use strict";var r=n(56),i=n(1),o=Object(i.a)(r.a,void 0,void 0,!1,null,null,null);t.a=o.exports},function(e,t,n){"use strict";var r=n(57),i=n(117),o=n(1),s=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);t.a=s.exports},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));var r=function(){var e=this,t=e.$createElement;return(e._self._c||t)("div")},i=[]},function(e,t,n){"use strict";var r=n(58),i=n(119),o=n(1),s=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);t.a=s.exports},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));var r=function(){var e=this,t=e.$createElement;return(e._self._c||t)("div")},i=[]},function(e,t,n){"use strict";var r=n(59),i=n(121),o=n(1),s=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);t.a=s.exports},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));var r=function(){var e=this,t=e.$createElement;return(e._self._c||t)("div")},i=[]},function(e,t,n){"use strict";var r=n(60),i=n(123),o=n(1),s=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);t.a=s.exports},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));var r=function(){var e=this,t=e.$createElement;return(e._self._c||t)("div")},i=[]},function(e,t,n){"use strict";var r=n(61),i=n(125),o=n(1),s=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);t.a=s.exports},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));var r=function(){var e=this,t=e.$createElement;return(e._self._c||t)("div")},i=[]},function(e,t,n){"use strict";var r=n(62),i=n(127),o=n(1),s=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);t.a=s.exports},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));var r=function(){var e=this,t=e.$createElement;return(e._self._c||t)("div")},i=[]},function(e,t,n){"use strict";var r=n(63),i=n(129),o=n(1),s=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);t.a=s.exports},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));var r=function(){var e=this,t=e.$createElement;return(e._self._c||t)("div")},i=[]},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=function(){function e(){r(this,e),this._componentMap=new Map,this._map=null}return e.prototype.setMap=function(e){this._map=e},e.prototype.getMap=function(){return this._map},e.prototype.setComponent=function(e,t){this._componentMap.set(e,t)},e.prototype.getComponent=function(e){return this._componentMap.get(e)},e.prototype.getChildInstance=function(e){return this.getComponent(e)},e.prototype.removeComponent=function(e){this._componentMap.delete(e)},e}();t.a=i},function(e,t,n){"use strict";var r=n(0),i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.a=function(e){var t=e.init,n=e.data,o=void 0===n?function(){return{}}:n,s=e.converters,a=void 0===s?{}:s,c=e.handlers,u=void 0===c?{}:c,l=e.computed,f=e.methods,h=e.name,d=e.render,p=e.contextReady,g=e.template,v=e.mixins,y=void 0===v?[]:v,m=e.props,I=void 0===m?{}:m,_=i({},e,{props:I,data:function(){return i({},o(),{converters:a,handlers:u})},mixins:[r.a].concat(y),computed:l,methods:i({},f,{__initComponent:t,__contextReady:p})});return g||d||(_.render=function(){return null}),_.install=function(e){return e.use(h,_)},_}}])}))},9003:function(e,t,n){var r=n("6b4c");e.exports=Array.isArray||function(e){return"Array"==r(e)}},"903e":function(e,t,n){"use strict";(function(e){var r;n.d(t,"a",(function(){return us})),n.d(t,"b",(function(){return yt})),n.d(t,"c",(function(){return i})),n.d(t,"d",(function(){return To})),n.d(t,"e",(function(){return b})),n.d(t,"f",(function(){return q})),n.d(t,"g",(function(){return pt})),n.d(t,"h",(function(){return O})),n.d(t,"i",(function(){return Bi})),n.d(t,"j",(function(){return he})),n.d(t,"k",(function(){return ht})),n.d(t,"l",(function(){return K})),n.d(t,"m",(function(){return te})),n.d(t,"n",(function(){return Vi})),n.d(t,"o",(function(){return oe})),n.d(t,"p",(function(){return o})),n.d(t,"q",(function(){return me})),n.d(t,"r",(function(){return ue})),n.d(t,"s",(function(){return mt})),n.d(t,"t",(function(){return _o})),n.d(t,"u",(function(){return A})),n.d(t,"v",(function(){return St})),n.d(t,"w",(function(){return Le})),n.d(t,"x",(function(){return U})),n.d(t,"y",(function(){return D})),n.d(t,"z",(function(){return B})),n.d(t,"A",(function(){return L})),n.d(t,"B",(function(){return R})),n.d(t,"C",(function(){return z})),n.d(t,"D",(function(){return Y})),n.d(t,"E",(function(){return F})),n.d(t,"F",(function(){return tt})),n.d(t,"G",(function(){return P})),n.d(t,"H",(function(){return zt})),function(e){e[e.READ=1]="READ",e[e.LISTENED=2]="LISTENED",e[e.DOWNLOADED=4]="DOWNLOADED",e[e.RETRIEVED=8]="RETRIEVED",e[e.UNREAD=0]="UNREAD"}(r||(r={}));var i,o=r,s=["https://nav.cn.ronghub.com","https://nav2-cn.ronghub.com"],a=["wsproxy.cn.ronghub.com","wsap-cn.ronghub.com"],c=["cometproxy-cn.ronghub.com","mini-cn.ronghub.com"],u={"RC:TxtMsg":{isCounted:!0,isPersited:!0},"RC:ImgMsg":{isCounted:!0,isPersited:!0},"RC:VcMsg":{isCounted:!0,isPersited:!0},"RC:ImgTextMsg":{isCounted:!0,isPersited:!0},"RC:FileMsg":{isCounted:!0,isPersited:!0},"RC:HQVCMsg":{isCounted:!0,isPersited:!0},"RC:LBSMsg":{isCounted:!0,isPersited:!0},"RC:PSImgTxtMsg":{isCounted:!0,isPersited:!0},"RC:PSMultiImgTxtMsg":{isCounted:!0,isPersited:!0},"RCJrmf:RpMsg":{isCounted:!0,isPersited:!0},"RCJrmf:RpOpendMsg":{isCounted:!0,isPersited:!0},"RC:CombineMsg":{isCounted:!0,isPersited:!0},"RC:ReferenceMsg":{isCounted:!0,isPersited:!0},"RC:SightMsg":{isCounted:!0,isPersited:!0},"RC:GIFMsg":{isCounted:!0,isPersited:!0},"RC:InfoNtf":{isCounted:!1,isPersited:!0},"RC:ContactNtf":{isCounted:!1,isPersited:!0},"RC:ProfileNtf":{isCounted:!1,isPersited:!0},"RC:CmdNtf":{isCounted:!1,isPersited:!0},"RC:GrpNtf":{isCounted:!1,isPersited:!0},"RC:RcCmd":{isCounted:!1,isPersited:!0},"RC:CmdMsg":{isCounted:!1,isPersited:!1},"RC:TypSts":{isCounted:!1,isPersited:!1},"RC:PSCmd":{isCounted:!1,isPersited:!1},"RC:SRSMsg":{isCounted:!1,isPersited:!1},"RC:RRReqMsg":{isCounted:!1,isPersited:!1},"RC:RRRspMsg":{isCounted:!1,isPersited:!1},"RC:CsChaR":{isCounted:!1,isPersited:!1},"RC:CSCha":{isCounted:!1,isPersited:!1},"RC:CsEva":{isCounted:!1,isPersited:!1},"RC:CsContact":{isCounted:!1,isPersited:!1},"RC:CsHs":{isCounted:!1,isPersited:!1},"RC:CsHsR":{isCounted:!1,isPersited:!1},"RC:CsSp":{isCounted:!1,isPersited:!1},"RC:CsEnd":{isCounted:!1,isPersited:!1},"RC:CsUpdate":{isCounted:!1,isPersited:!1},"RC:ReadNtf":{isCounted:!1,isPersited:!1},"RC:chrmKVNotiMsg":{isCounted:!1,isPersited:!1},"RC:VCAccept":{isCounted:!1,isPersited:!1},"RC:VCRinging":{isCounted:!1,isPersited:!1},"RC:VCSummary":{isCounted:!1,isPersited:!1},"RC:VCHangup":{isCounted:!1,isPersited:!1},"RC:VCInvite":{isCounted:!1,isPersited:!1},"RC:VCModifyMedia":{isCounted:!1,isPersited:!1},"RC:VCModifyMem":{isCounted:!1,isPersited:!1},"RC:MsgExMsg":{isCounted:!1,isPersited:!1},"RC:RRMsg":{isCounted:!1,isPersited:!1},"RC:LogCmdMsg":{isCounted:!1,isPersited:!1},"RC:InterceptMsg":{isCounted:!1,isPersited:!1}},l=["RC:TypSts","RC:InterceptMsg"];!function(e){e.WEBSOCKET="websocket",e.COMET="comet"}(i||(i={}));var f,h=function(e){return f||(f={set:function(t,n){e.localStorage.setItem(t,JSON.stringify(n))},get:function(t){var n;try{n=JSON.parse(e.localStorage.getItem(t))}catch(e){n=null}return n},remove:function(t){return e.localStorage.removeItem(t)},getKeys:function(){var t=[];for(var n in e.localStorage)t.push(n);return t}}),f},d=function(){function e(e){this._caches={},e&&(this._caches=e)}return e.prototype.set=function(e,t){this._caches[e]=t},e.prototype.remove=function(e){var t=this.get(e);return delete this._caches[e],t},e.prototype.get=function(e){return this._caches[e]},e.prototype.getKeys=function(){var e=[];for(var t in this._caches)e.push(t);return e},e}(),p=function(){function e(e,t){var n,r=t?"".concat("RCV4-").concat(t):"RCV4-";this._rootStorage=h(e);var i=this._rootStorage.get(r)||{};this._cache=new d(((n={})[r]=i,n)),this._storageKey=r}return e.prototype._get=function(){var e=this._storageKey;return this._cache.get(e)||{}},e.prototype._set=function(e){var t=this._storageKey;e=e||{},this._cache.set(t,e),this._rootStorage.set(t,e)},e.prototype.set=function(e,t){var n=this._get();n[e]=t,this._set(n)},e.prototype.remove=function(e){var t=this._get();delete t[e],this._set(t)},e.prototype.clear=function(){var e=this._storageKey;this._rootStorage.remove(e),this._cache.remove(e)},e.prototype.get=function(e){return this._get()[e]},e.prototype.getKeys=function(){var e=this._get(),t=[];for(var n in e)t.push(n);return t},e.prototype.getValues=function(){return this._get()||{}},e}(),v=function(e,t){return v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},v(e,t)};function y(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}v(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var m=function(){return m=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},m.apply(this,arguments)};function I(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}function _(e,t){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(i=s.trys,!((i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}}function T(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}(function(e){function t(t){return e.call(this,"TODO => ".concat(t))||this}y(t,e)})(Error);var C,M=function(e,t,n){if(void 0===t||void 0===n)return e.toUpperCase();var r=e.slice(t,n);return e.replace(r,(function(e){return e.toUpperCase()}))},E=function(e,t){void 0===t&&(t="utf-8");var n,r=0;if("utf-16"===t)for(var i=0,o=e.length;i<o;i++)r+=(n=e.charCodeAt(i))<=65535?2:4;else for(i=0,o=e.length;i<o;i++)r+=(n=e.charCodeAt(i))<127?1:n<=2047?2:n<=65535?3:4;return r},A=function(e,t){if(e=e.replace(/\?$/,""),!t)return e;var n=Object.keys(t).map((function(e){return"".concat(e,"=").concat(t[e])})).filter((function(e){return!!e}));return n.length?[e,n.join("&")].join("?"):e},S=function(e){return e.match(/\d+(\.\d+){2}/)[0]};!function(e){e[e.NONE=0]="NONE",e[e.PRIVATE=1]="PRIVATE",e[e.DISCUSSION=2]="DISCUSSION",e[e.GROUP=3]="GROUP",e[e.CHATROOM=4]="CHATROOM",e[e.CUSTOMER_SERVICE=5]="CUSTOMER_SERVICE",e[e.SYSTEM=6]="SYSTEM",e[e.APP_PUBLIC_SERVICE=7]="APP_PUBLIC_SERVICE",e[e.PUBLIC_SERVICE=8]="PUBLIC_SERVICE",e[e.ULTRA_GROUP=10]="ULTRA_GROUP",e[e.RTC_ROOM=12]="RTC_ROOM"}(C||(C={}));var N,b=C;!function(e){e[e.IMAGE=1]="IMAGE",e[e.AUDIO=2]="AUDIO",e[e.VIDEO=3]="VIDEO",e[e.FILE=4]="FILE",e[e.SIGHT=5]="SIGHT",e[e.COMBINE_HTML=6]="COMBINE_HTML"}(N||(N={}));var w,O=N,R=function(e){return"string"==typeof e},D=function(e){return"boolean"==typeof e},L=function(e){return"number"==typeof e&&!isNaN(e)},U=function(e){return-1!==Object.prototype.toString.call(e).indexOf("Array")},x=function(e){return"[object ArrayBuffer]"===Object.prototype.toString.call(e)},P=function(e){return R(e)&&e.length>0},j=function(e){return"[object Object]"===Object.prototype.toString.call(e)},k=function(e){return"[object Function]"===Object.prototype.toString.call(e)},z=function(e){return void 0===e||"[object Undefined]"===Object.prototype.toString.call(e)},G=function(e){return"[object Null]"===Object.prototype.toString.call(e)},B=function(e){return R(e)&&/https?:\/\//.test(e)},V=function(e){for(var t in e)return!0;return!1},Y=function(e){return L(e)&&Object.prototype.hasOwnProperty.call(b,e)},H=function(e){var t=!1;return R(e)&&!/_/g.test(e)&&e.length<=20&&(t=!0),t},F=function(e){return L(e)&&Object.prototype.hasOwnProperty.call(O,e)},Q=function(e){var t=!1,n=!1,r=!1;if(j(e)){var i=Object.keys(e).length;for(var o in t=i>20,e)if(n||(n=R(o)&&!/^[A-Za-z0-9_=+-]+$/.test(o)),!r){var s=e[o];r=o.length>32||s.length>4096}}return{isExceedLimit:t,isIllgalEx:n,isExKeyOrValLengthExceedLimit:r}};!function(e){e[e.SEND=1]="SEND",e[e.RECEIVE=2]="RECEIVE"}(w||(w={}));var $,K=w;!function(e){e[e.TIMEOUT=-1]="TIMEOUT",e[e.UNKNOWN=-2]="UNKNOWN",e[e.PARAMETER_ERROR=-3]="PARAMETER_ERROR",e[e.EXTRA_METHOD_UNDEFINED=-4]="EXTRA_METHOD_UNDEFINED",e[e.MAIN_PROCESS_ERROR=-5]="MAIN_PROCESS_ERROR",e[e.PARAMETER_CHANGED=-6]="PARAMETER_CHANGED",e[e.SUCCESS=0]="SUCCESS",e[e.RC_DISCUSSION_GROUP_ID_INVALID=20407]="RC_DISCUSSION_GROUP_ID_INVALID",e[e.SEND_FREQUENCY_TOO_FAST=20604]="SEND_FREQUENCY_TOO_FAST",e[e.NOT_IN_DISCUSSION=21406]="NOT_IN_DISCUSSION",e[e.FORBIDDEN_IN_GROUP=22408]="FORBIDDEN_IN_GROUP",e[e.RECALL_MESSAGE=25101]="RECALL_MESSAGE",e[e.NOT_IN_GROUP=22406]="NOT_IN_GROUP",e[e.NOT_IN_CHATROOM=23406]="NOT_IN_CHATROOM",e[e.FORBIDDEN_IN_CHATROOM=23408]="FORBIDDEN_IN_CHATROOM",e[e.RC_CHATROOM_USER_KICKED=23409]="RC_CHATROOM_USER_KICKED",e[e.RC_CHATROOM_NOT_EXIST=23410]="RC_CHATROOM_NOT_EXIST",e[e.RC_CHATROOM_IS_FULL=23411]="RC_CHATROOM_IS_FULL",e[e.RC_CHATROOM_PATAMETER_INVALID=23412]="RC_CHATROOM_PATAMETER_INVALID",e[e.CHATROOM_GET_HISTORYMSG_ERROR=23413]="CHATROOM_GET_HISTORYMSG_ERROR",e[e.CHATROOM_NOT_OPEN_HISTORYMSG_STORE=23414]="CHATROOM_NOT_OPEN_HISTORYMSG_STORE",e[e.CHATROOM_KV_EXCEED=23423]="CHATROOM_KV_EXCEED",e[e.CHATROOM_KV_OVERWRITE_INVALID=23424]="CHATROOM_KV_OVERWRITE_INVALID",e[e.CHATROOM_KV_STORE_NOT_OPEN=23426]="CHATROOM_KV_STORE_NOT_OPEN",e[e.CHATROOM_KEY_NOT_EXIST=23427]="CHATROOM_KEY_NOT_EXIST",e[e.CHATROOM_KV_SET_ERROR=23431]="CHATROOM_KV_SET_ERROR",e[e.SENSITIVE_SHIELD=21501]="SENSITIVE_SHIELD",e[e.SENSITIVE_REPLACE=21502]="SENSITIVE_REPLACE",e[e.JOIN_IN_DISCUSSION=21407]="JOIN_IN_DISCUSSION",e[e.CREATE_DISCUSSION=21408]="CREATE_DISCUSSION",e[e.INVITE_DICUSSION=21409]="INVITE_DICUSSION",e[e.GET_USERINFO_ERROR=23407]="GET_USERINFO_ERROR",e[e.REJECTED_BY_BLACKLIST=405]="REJECTED_BY_BLACKLIST",e[e.RC_NET_CHANNEL_INVALID=30001]="RC_NET_CHANNEL_INVALID",e[e.RC_NET_UNAVAILABLE=30002]="RC_NET_UNAVAILABLE",e[e.RC_MSG_RESP_TIMEOUT=30003]="RC_MSG_RESP_TIMEOUT",e[e.RC_HTTP_SEND_FAIL=30004]="RC_HTTP_SEND_FAIL",e[e.RC_HTTP_REQ_TIMEOUT=30005]="RC_HTTP_REQ_TIMEOUT",e[e.RC_HTTP_RECV_FAIL=30006]="RC_HTTP_RECV_FAIL",e[e.RC_NAVI_RESOURCE_ERROR=30007]="RC_NAVI_RESOURCE_ERROR",e[e.RC_NODE_NOT_FOUND=30008]="RC_NODE_NOT_FOUND",e[e.RC_DOMAIN_NOT_RESOLVE=30009]="RC_DOMAIN_NOT_RESOLVE",e[e.RC_SOCKET_NOT_CREATED=30010]="RC_SOCKET_NOT_CREATED",e[e.RC_SOCKET_DISCONNECTED=30011]="RC_SOCKET_DISCONNECTED",e[e.RC_PING_SEND_FAIL=30012]="RC_PING_SEND_FAIL",e[e.RC_PONG_RECV_FAIL=30013]="RC_PONG_RECV_FAIL",e[e.RC_MSG_SEND_FAIL=30014]="RC_MSG_SEND_FAIL",e[e.RC_MSG_CONTENT_EXCEED_LIMIT=30016]="RC_MSG_CONTENT_EXCEED_LIMIT",e[e.RC_CONN_ACK_TIMEOUT=31e3]="RC_CONN_ACK_TIMEOUT",e[e.RC_CONN_PROTO_VERSION_ERROR=31001]="RC_CONN_PROTO_VERSION_ERROR",e[e.RC_CONN_ID_REJECT=31002]="RC_CONN_ID_REJECT",e[e.RC_CONN_SERVER_UNAVAILABLE=31003]="RC_CONN_SERVER_UNAVAILABLE",e[e.RC_CONN_USER_OR_PASSWD_ERROR=31004]="RC_CONN_USER_OR_PASSWD_ERROR",e[e.RC_CONN_NOT_AUTHRORIZED=31005]="RC_CONN_NOT_AUTHRORIZED",e[e.RC_CONN_REDIRECTED=31006]="RC_CONN_REDIRECTED",e[e.RC_CONN_PACKAGE_NAME_INVALID=31007]="RC_CONN_PACKAGE_NAME_INVALID",e[e.RC_CONN_APP_BLOCKED_OR_DELETED=31008]="RC_CONN_APP_BLOCKED_OR_DELETED",e[e.RC_CONN_USER_BLOCKED=31009]="RC_CONN_USER_BLOCKED",e[e.RC_DISCONN_KICK=31010]="RC_DISCONN_KICK",e[e.RC_DISCONN_EXCEPTION=31011]="RC_DISCONN_EXCEPTION",e[e.RC_DISCONN_SAME_CLIENT_ON_LINE=31023]="RC_DISCONN_SAME_CLIENT_ON_LINE",e[e.RC_APP_AUTH_NOT_PASS=31026]="RC_APP_AUTH_NOT_PASS",e[e.RC_OTP_USED=31027]="RC_OTP_USED",e[e.RC_PLATFORM_ERROR=31028]="RC_PLATFORM_ERROR",e[e.RC_QUERY_ACK_NO_DATA=32001]="RC_QUERY_ACK_NO_DATA",e[e.RC_MSG_DATA_INCOMPLETE=32002]="RC_MSG_DATA_INCOMPLETE",e[e.BIZ_ERROR_CLIENT_NOT_INIT=33001]="BIZ_ERROR_CLIENT_NOT_INIT",e[e.BIZ_ERROR_DATABASE_ERROR=33002]="BIZ_ERROR_DATABASE_ERROR",e[e.BIZ_ERROR_INVALID_PARAMETER=33003]="BIZ_ERROR_INVALID_PARAMETER",e[e.BIZ_ERROR_NO_CHANNEL=33004]="BIZ_ERROR_NO_CHANNEL",e[e.BIZ_ERROR_RECONNECT_SUCCESS=33005]="BIZ_ERROR_RECONNECT_SUCCESS",e[e.BIZ_ERROR_CONNECTING=33006]="BIZ_ERROR_CONNECTING",e[e.MSG_ROAMING_SERVICE_UNAVAILABLE=33007]="MSG_ROAMING_SERVICE_UNAVAILABLE",e[e.MSG_INSERT_ERROR=33008]="MSG_INSERT_ERROR",e[e.MSG_DEL_ERROR=33009]="MSG_DEL_ERROR",e[e.TAG_EXISTS=33101]="TAG_EXISTS",e[e.TAG_NOT_EXIST=33100]="TAG_NOT_EXIST",e[e.NO_TAG_IN_CONVER=33102]="NO_TAG_IN_CONVER",e[e.CONVER_REMOVE_ERROR=34001]="CONVER_REMOVE_ERROR",e[e.CONVER_GETLIST_ERROR=34002]="CONVER_GETLIST_ERROR",e[e.CONVER_SETOP_ERROR=34003]="CONVER_SETOP_ERROR",e[e.CONVER_TOTAL_UNREAD_ERROR=34004]="CONVER_TOTAL_UNREAD_ERROR",e[e.CONVER_TYPE_UNREAD_ERROR=34005]="CONVER_TYPE_UNREAD_ERROR",e[e.CONVER_ID_TYPE_UNREAD_ERROR=34006]="CONVER_ID_TYPE_UNREAD_ERROR",e[e.EXPANSION_LIMIT_EXCEET=34010]="EXPANSION_LIMIT_EXCEET",e[e.MESSAGE_KV_NOT_SUPPORT=34008]="MESSAGE_KV_NOT_SUPPORT",e[e.CONVER_OUT_LIMIT_ERROR=34013]="CONVER_OUT_LIMIT_ERROR",e[e.CONVER_GET_ERROR=35021]="CONVER_GET_ERROR",e[e.GROUP_SYNC_ERROR=35001]="GROUP_SYNC_ERROR",e[e.GROUP_MATCH_ERROR=35002]="GROUP_MATCH_ERROR",e[e.READ_RECEIPT_ERROR=35003]="READ_RECEIPT_ERROR",e[e.PACKAGE_ENVIRONMENT_ERROR=35006]="PACKAGE_ENVIRONMENT_ERROR",e[e.CAN_NOT_RECONNECT=35007]="CAN_NOT_RECONNECT",e[e.SERVER_UNAVAILABLE=35008]="SERVER_UNAVAILABLE",e[e.HOSTNAME_ERROR=35009]="HOSTNAME_ERROR",e[e.HAS_OHTER_SAME_CLIENT_ON_LINE=35010]="HAS_OHTER_SAME_CLIENT_ON_LINE",e[e.METHOD_NOT_AVAILABLE=35011]="METHOD_NOT_AVAILABLE",e[e.METHOD_NOT_SUPPORT=35012]="METHOD_NOT_SUPPORT",e[e.MSG_LIMIT_ERROR=35013]="MSG_LIMIT_ERROR",e[e.METHOD_ONLY_SUPPORT_ULTRA_GROUP=35014]="METHOD_ONLY_SUPPORT_ULTRA_GROUP",e[e.UPLOAD_FILE_FAILED=35020]="UPLOAD_FILE_FAILED",e[e.CHATROOM_ID_ISNULL=36001]="CHATROOM_ID_ISNULL",e[e.CHARTOOM_JOIN_ERROR=36002]="CHARTOOM_JOIN_ERROR",e[e.CHATROOM_HISMESSAGE_ERROR=36003]="CHATROOM_HISMESSAGE_ERROR",e[e.CHATROOM_KV_NOT_FOUND=36004]="CHATROOM_KV_NOT_FOUND",e[e.BLACK_ADD_ERROR=37001]="BLACK_ADD_ERROR",e[e.BLACK_GETSTATUS_ERROR=37002]="BLACK_GETSTATUS_ERROR",e[e.BLACK_REMOVE_ERROR=37003]="BLACK_REMOVE_ERROR",e[e.DRAF_GET_ERROR=38001]="DRAF_GET_ERROR",e[e.DRAF_SAVE_ERROR=38002]="DRAF_SAVE_ERROR",e[e.DRAF_REMOVE_ERROR=38003]="DRAF_REMOVE_ERROR",e[e.SUBSCRIBE_ERROR=39001]="SUBSCRIBE_ERROR",e[e.NOT_SUPPORT=39002]="NOT_SUPPORT",e[e.QNTKN_FILETYPE_ERROR=41001]="QNTKN_FILETYPE_ERROR",e[e.QNTKN_GET_ERROR=41002]="QNTKN_GET_ERROR",e[e.COOKIE_ENABLE=51001]="COOKIE_ENABLE",e[e.HAVNODEVICEID=24001]="HAVNODEVICEID",e[e.DEVICEIDISHAVE=24002]="DEVICEIDISHAVE",e[e.FEILD=24009]="FEILD",e[e.VOIPISNULL=24013]="VOIPISNULL",e[e.NOENGINETYPE=24010]="NOENGINETYPE",e[e.NULLCHANNELNAME=24011]="NULLCHANNELNAME",e[e.VOIPDYANMICERROR=24012]="VOIPDYANMICERROR",e[e.NOVOIP=24014]="NOVOIP",e[e.INTERNALERRROR=24015]="INTERNALERRROR",e[e.VOIPCLOSE=24016]="VOIPCLOSE",e[e.ULTRA_GROUP_USER_NOT_IN_PRIVATE_CHANNEL=24416]="ULTRA_GROUP_USER_NOT_IN_PRIVATE_CHANNEL",e[e.CANCEL=1]="CANCEL",e[e.REJECT=2]="REJECT",e[e.HANGUP=3]="HANGUP",e[e.BUSYLINE=4]="BUSYLINE",e[e.NO_RESPONSE=5]="NO_RESPONSE",e[e.ENGINE_UN_SUPPORTED=6]="ENGINE_UN_SUPPORTED",e[e.NETWORK_ERROR=7]="NETWORK_ERROR",e[e.REMOTE_CANCEL=11]="REMOTE_CANCEL",e[e.REMOTE_REJECT=12]="REMOTE_REJECT",e[e.REMOTE_HANGUP=13]="REMOTE_HANGUP",e[e.REMOTE_BUSYLINE=14]="REMOTE_BUSYLINE",e[e.REMOTE_NO_RESPONSE=15]="REMOTE_NO_RESPONSE",e[e.REMOTE_ENGINE_UN_SUPPORTED=16]="REMOTE_ENGINE_UN_SUPPORTED",e[e.REMOTE_NETWORK_ERROR=17]="REMOTE_NETWORK_ERROR",e[e.VOIP_NOT_AVALIABLE=18]="VOIP_NOT_AVALIABLE",e[e.CHATROOM_KV_STORE_NOT_ALL_SUCCESS=23428]="CHATROOM_KV_STORE_NOT_ALL_SUCCESS",e[e.CHATROOM_KV_STORE_OUT_LIMIT=23429]="CHATROOM_KV_STORE_OUT_LIMIT"}($||($={}));var W,q=$;!function(e){e[e.CONNECTED=0]="CONNECTED",e[e.CONNECTING=1]="CONNECTING",e[e.DISCONNECTED=2]="DISCONNECTED",e[e.NETWORK_UNAVAILABLE=3]="NETWORK_UNAVAILABLE",e[e.CONNECTION_CLOSED=4]="CONNECTION_CLOSED",e[e.KICKED_OFFLINE_BY_OTHER_CLIENT=6]="KICKED_OFFLINE_BY_OTHER_CLIENT",e[e.WEBSOCKET_UNAVAILABLE=7]="WEBSOCKET_UNAVAILABLE",e[e.WEBSOCKET_ERROR=8]="WEBSOCKET_ERROR",e[e.BLOCKED=9]="BLOCKED",e[e.DOMAIN_INCORRECT=12]="DOMAIN_INCORRECT",e[e.DISCONNECT_BY_SERVER=13]="DISCONNECT_BY_SERVER",e[e.REDIRECT=14]="REDIRECT",e[e.APPKEY_IS_FAKE=20]="APPKEY_IS_FAKE",e[e.FORBID_RECONNECT_BY_OTHER_SAME_CLIENT=31023]="FORBID_RECONNECT_BY_OTHER_SAME_CLIENT",e[e.ULTRALIMIT=1101]="ULTRALIMIT",e[e.REQUEST_NAVI=201]="REQUEST_NAVI",e[e.RESPONSE_NAVI=202]="RESPONSE_NAVI",e[e.RESPONSE_NAVI_ERROR=203]="RESPONSE_NAVI_ERROR",e[e.RESPONSE_NAVI_TIMEOUT=204]="RESPONSE_NAVI_TIMEOUT"}(W||(W={}));var Z,J=W,X={ACCEPTED:0,UNACCEPTABLE_PROTOCOL_VERSION:1,IDENTIFIER_REJECTED:2,SERVER_UNAVAILABLE:3,TOKEN_INCORRECT:4,NOT_AUTHORIZED:5,REDIRECT:6,PACKAGE_ERROR:7,APP_BLOCK_OR_DELETE:8,BLOCK:9,TOKEN_EXPIRE:10,DEVICE_ERROR:11,HOSTNAME_ERROR:12,HASOHTERSAMECLIENTONLINE:13,IN_OTHER_CLUSTER:15,APP_AUTH_NOT_PASS:16,OTP_USED:17,PLATFORM_ERROR:18};!function(e){e.TextMessage="RC:TxtMsg",e.VOICE="RC:VcMsg",e.HQ_VOICE="RC:HQVCMsg",e.IMAGE="RC:ImgMsg",e.GIF="RC:GIFMsg",e.RICH_CONTENT="RC:ImgTextMsg",e.LOCATION="RC:LBSMsg",e.FILE="RC:FileMsg",e.SIGHT="RC:SightMsg",e.COMBINE="RC:CombineMsg",e.CHRM_KV_NOTIFY="RC:chrmKVNotiMsg",e.LOG_COMMAND="RC:LogCmdMsg",e.EXPANSION_NOTIFY="RC:MsgExMsg",e.REFERENCE="RC:ReferenceMsg",e.RECALL="RC:RcCmd",e.READ_RECEIPT="RC:ReadNtf",e.READ_RECEIPT_REQUEST="RC:RRReqMsg",e.READ_RECEIPT_RESPONSE="RC:RRRspMsg",e.SYNC_READ_STATUS="RC:SRSMsg",e.GROUP_READ_RECEIPT_REQUEST="RC:RRMsg",e.CHATROOM_JOIN="RC:ChrmJoinNtf",e.CHATROOM_LEFT="RC:ChrmQuitNtf",e.CHATROOM_MERGE_CHANGE="RC:ChrmMemChange",e.TYPING_STATUS="RC:TypSts",e.INTERCEPT="RC:InterceptMsg"}(Z||(Z={}));var ee,te=Z;!function(e){e[e.OPEN=1]="OPEN",e[e.CLOSE=2]="CLOSE"}(ee||(ee={}));var ne,re=ee;!function(e){e[e.ALL_MESSAGE=-1]="ALL_MESSAGE",e[e.NOT_SET=0]="NOT_SET",e[e.AT_MESSAGE_NOTIFICATION=1]="AT_MESSAGE_NOTIFICATION",e[e.AT_USER_NOTIFICATION=2]="AT_USER_NOTIFICATION",e[e.AT_GROUP_ALL_USER_NOTIFICATION=4]="AT_GROUP_ALL_USER_NOTIFICATION",e[e.NOT_MESSAGE_NOTIFICATION=5]="NOT_MESSAGE_NOTIFICATION"}(ne||(ne={}));var ie,oe=ne;!function(e){e[e.ALL=1]="ALL",e[e.SINGAL=2]="SINGAL"}(ie||(ie={}));var se,ae=ie;!function(e){e[e.QINIU=1]="QINIU",e[e.ALI=2]="ALI",e[e.AWS=3]="AWS",e[e.STC=4]="STC"}(se||(se={}));var ce,ue=se;!function(e){e[e.UPDATE=1]="UPDATE",e[e.DELETE=2]="DELETE"}(ce||(ce={}));var le,fe,he,de,pe=ce;!function(e){e[e.LOG=0]="LOG",e[e.DEBUG=0]="DEBUG",e[e.INFO=1]="INFO",e[e.WARN=2]="WARN",e[e.ERROR=3]="ERROR",e[e.FATAL=4]="FATAL",e[e.STATISTICS=6]="STATISTICS",e[e.NONE=1e3]="NONE"}(le||(le={})),function(e){e.IM="IM",e.RTC="RTC"}(fe||(fe={})),function(e){e.L_IMSDK_VER_O="L-imsdk_ver-O",e.A_INIT_O="A-init-O",e.L_INIT_O="L-init-O",e.P_INIT_O="P-init-O",e.A_CONNECT_T="A-connect-T",e.A_CONNECT_R="A-connect-R",e.A_CONNECT_S="A-connect-S",e.A_DISCONNECT_O="A-disconnect-O",e.A_RECONNECT_T="A-reconnect-T",e.A_RECONNECT_R="A_RECONNECT_R",e.L_CONNECT_T="L-connect-T",e.L_CONNECT_R="L-connect-R",e.L_CONNECT_S="L-connect-S",e.P_CONNECT_O="P-connect-O",e.P_CONNECT_S="P-connect-S",e.A_SEND_MSG_T="A-send_msg-T",e.A_SEND_MSG_R="A-send_msg-R",e.P_SEND_MSG_T="P-send_msg-T",e.P_SEND_MSG_R="P-send_msg-R",e.L_SEND_MSG_T="L-send_msg-T",e.L_SEND_MSG_R="L-send_msg-R",e.L_PULL_MSG_T="L-pull_msg-T",e.L_PULL_MSG_R="L-pull_msg-R",e.L_PULL_ULTRA_MSG_T="L-pull_ultra_msg-T",e.L_PULL_ULTRA_MSG_R="L-pull_ultra_msg-R",e.L_PULL_CHATROOM_KV_T="L-pull_chatroom_kv-T",e.L_PULL_CHATROOM_KV_R="L-pull_chatroom_kv-R",e.L_PULL_CHATROOM_MSG_T="L-pull_chatroom_msg-T",e.L_PULL_CHATROOM_MSG_R="L-pull_chatroom_msg-R",e.A_DELETE_MESSAGES_S="A-delete_messages-S",e.P_DELETE_MSG_S="P-delete_msg-S",e.L_PULL_CONVERSATION_S="L-pull_conversation-S",e.L_RECALL_ULTRA_MSG_S="L-recall_ultra_msg-S",e.A_REGTYP_O="A-regtyp-O",e.P_REGTYP_O="P-regtype-O",e.P_REGTYP_E="P-regtype-E",e.L_GET_NAVI_T="L-get_navi-T",e.L_GET_NAVI_R="L-get_navi-R",e.L_ENV_S="L-Env-S",e.L_GET_INDEX_NAVI_S="L-get_index_navi-S",e.A_JOIN_CHATROOM_T="A-join_chatroom-T",e.A_JOIN_CHATROOM_R="A-join_chatroom-R",e.L_JOIN_CHATROOM_T="L-join_chatroom-T",e.L_JOIN_CHATROOM_R="L-join_chatroom-R",e.A_QUIT_CHATROOM_T="A-quit_chatroom-T",e.A_QUIT_CHATROOM_R="A-quit_chatroom-R",e.L_REJOIN_CHATROOM_T="L-rejoin_chatroom-T",e.L_REJOIN_CHATROOM_R="L-rejoin_chatroom-R",e.L_MEDIA_S="L-media-S",e.L_MEDIA_UPLOAD_T="L-media_upload-T",e.L_MEDIA_UPLOAD_R="L-media_upload-R",e.G_UPLOAD_LOG_S="G-upload_log-S",e.G_UPLOAD_LOG_E="G-upload_log-E",e.G_GET_REAL_TIMELOG_COMMAND_S="G-get_real_timelog_command-S",e.L_CHECK_ALIVE_IM_T="L-check_alive_im-T",e.L_CHECK_ALIVE_IM_R="L-check_alive_im-R",e.A_GET_HISTORY_MSG_T="A-get_history_msg-T",e.A_GET_HISTORY_MSG_R="A-get_history_msg-R",e.L_GET_HISTORY_MSG_T="L-get_history_msg-T",e.L_GET_HISTORY_MSG_R="L-get_history_msg-R",e.A_CALLBACK_O="A-callback-O",e.A_CALLBACK_E="A-callback-E"}(he||(he={})),function(e){e[e.QUIT=0]="QUIT",e[e.JOIN=1]="JOIN"}(de||(de={}));var ge,ve=de;!function(e){e[e.GLOBAL=1]="GLOBAL",e[e.CUSTOM=2]="CUSTOM",e[e.THIRD_PARTY=3]="THIRD_PARTY"}(ge||(ge={}));var ye;!function(e){e[e.typing=0]="typing"}(ye||(ye={}));var me,Ie,_e,Te,Ce,Me,Ee;!function(e){e[e.PUBLIC=0]="PUBLIC",e[e.PRIVATE=1]="PRIVATE"}(me||(me={})),function(e){e[e.PUBLIC_TO_PRIVATE=2]="PUBLIC_TO_PRIVATE",e[e.PRIVATE_TO_PUBLIC=3]="PRIVATE_TO_PUBLIC",e[e.PUBLIC_TO_PRIVATE_USER_NOT_IN=6]="PUBLIC_TO_PRIVATE_USER_NOT_IN"}(Ie||(Ie={})),function(e){e[e.MSG_EXPANSION=1]="MSG_EXPANSION",e[e.MSG_MODIFY=2]="MSG_MODIFY",e[e.MSG_RECALL=3]="MSG_RECALL",e[e.CHANNEL_CHANGE=4]="CHANNEL_CHANGE"}(_e||(_e={})),function(e){e[e.CHANNEL_DELETE=1]="CHANNEL_DELETE",e[e.PUBLIC_TO_PRIVATE=2]="PUBLIC_TO_PRIVATE",e[e.PRIVATE_TO_PUBLIC=3]="PRIVATE_TO_PUBLIC",e[e.PRIVATE_CHANNEL_USER_JOIN_PUBLIC=4]="PRIVATE_CHANNEL_USER_JOIN_PUBLIC",e[e.CHANNEL_USER_KICKED=5]="CHANNEL_USER_KICKED",e[e.PUBLIC_TO_PRIVATE_USER_NOT_IN=6]="PUBLIC_TO_PRIVATE_USER_NOT_IN"}(Te||(Te={})),function(e){e[e.RTC=0]="RTC",e[e.LIVE=2]="LIVE"}(Ce||(Ce={})),function(e){e[e.AUDIO_AND_VIDEO=0]="AUDIO_AND_VIDEO",e[e.AUDIO=1]="AUDIO"}(Me||(Me={})),function(e){e[e.ANCHOR=1]="ANCHOR",e[e.AUDIENCE=2]="AUDIENCE"}(Ee||(Ee={}));var Ae,Se,Ne,be={"RC:VCAccept":"RC:VCAccept","RC:VCRinging":"RC:VCRinging","RC:VCSummary":"RC:VCSummary","RC:VCHangup":"RC:VCHangup","RC:VCInvite":"RC:VCInvite","RC:VCModifyMedia":"RC:VCModifyMedia","RC:VCModifyMem":"RC:VCModifyMem"};!function(e){e[e.ROOM=1]="ROOM",e[e.PERSON=2]="PERSON"}(Ae||(Ae={})),function(e){e[e.AnchorToViewer=1]="AnchorToViewer",e[e.ViewerToAnchor=2]="ViewerToAnchor"}(Se||(Se={})),function(e){e[e.KICK=0]="KICK",e[e.REFUSE=1]="REFUSE",e[e.COEXIST=2]="COEXIST"}(Ne||(Ne={}));var we="RC_Logs";function Oe(e){var t=e.target.result;if(1===e.oldVersion)try{t.deleteObjectStore(we)}catch(e){console.warn("version 1 indexDB delete error, name: ".concat(e.name,", message: ").concat(e.message,", stack: ").concat(e.stack))}!function(e,t,n){var r;if(!e.objectStoreNames.contains(t)){var i=m({},n.objectStoreParams);r=e.createObjectStore(t,i),n.indexs&&n.indexs.length>0&&n.indexs.forEach((function(e){r.createIndex(e.indexName,e.key,{unique:e.unique})}))}}(t,we,{indexs:[{indexName:"time",key:"time",unique:!1}],objectStoreParams:{autoIncrement:!0}})}var Re,De=function(){function e(){}return e.init=function(){if("undefined"!=typeof window&&window&&window.indexedDB){if(e.indexDBSwitch&&!e.opening){e.opening=!0;var t=window.indexedDB.open("RC_ENGINE_DB",2);t.onerror=function(t){e.opening=!1,console.warn("open indexDB request failed "+t.target.error)},t.onsuccess=function(t){e.opening=!1,e._db=t.target.result,e._db&&(e._db.onclose=function(t){var n;console.warn("The database ".concat(null===(n=e._db)||void 0===n?void 0:n.name," has unexpectedly closed."),t),e._db=null,e._instance=null},e._db.onerror=function(t){var n;console.warn("The database ".concat(null===(n=e._db)||void 0===n?void 0:n.name," has opening error."),t),e._db=null,e._instance=null},e._db.onabort=function(t){var n;console.warn("The database ".concat(null===(n=e._db)||void 0===n?void 0:n.name," has opening aborted."),t),e._db=null,e._instance=null}),e._instance=new e},t.onupgradeneeded=function(t){e.opening=!1,e._db=t.target.result,Oe(t)}}}else console.debug("IndexDB is not currently supported in the environment!")},e.getInstance=function(){return e._instance},e.prototype.addList=function(t,n){return new Promise((function(r){if(e._db){var i=e._db.transaction([t],"readwrite"),o=i.objectStore(t);n.forEach((function(e){null==o||o.add(e)})),i.oncomplete=function(e){r(!0)},i.onerror=function(e){r(!1)}}else r(!1)}))},e.prototype.getRangeData=function(t,n,r,i){return new Promise((function(o){if(e._db){var s=e._db.transaction([t],"readwrite").objectStore(t),a=IDBKeyRange.bound(r,i),c=s.index(n),u=[],l=c.openCursor(a);l.onsuccess=function(e){var t=e.target.result;t?(u.push(t.value),t.continue()):o(u)},l.onerror=function(e){console.error(e),o([])}}else o([])}))},e.prototype.getCount=function(t,n){return new Promise((function(n){if(e._db){var r=e._db.transaction([t],"readonly").objectStore(t).count();r.onsuccess=function(){n(r.result)},r.onerror=function(e){console.error(e),n(0)}}else n(0)}))},e.prototype.removeFirstData=function(t,n,r){return new Promise((function(n){if(e._db){var i=e._db.transaction([t],"readwrite").objectStore(t),o=i.getAllKeys(IDBKeyRange.lowerBound(0),r);o.onsuccess=function(){var e=o.result;e.length>0&&(i.delete(IDBKeyRange.bound(e[0],e[e.length-1])).onsuccess=function(){n(!0)})}}else n(!1)}))},e._db=null,e.indexDBSwitch=!0,e.opening=!1,e}(),Le=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))},Ue=function(){var e=Le();if(e=e.replace(/-/g,"")+"a",(e=function(e){var t="0123456789abcdefghigklmnopqrstuvwxyzABCDEFGHIGKLMNOPQRSTUVWXYZa0".split(""),n=t.length+1,r=+e,i=[];do{var o=r%n;r=(r-o)/n,i.unshift(t[o])}while(r);return i.join("")}(e=parseInt(e,16))).length>22&&(e=e.slice(0,22)),e.length<22)for(var t=22-e.length,n=0;n<t;n++)e+="0";return e},xe=Ue(),Pe={};function je(e){return 4-e}console&&((Re={})[le.DEBUG]=console.debug.bind(console),Re[le.INFO]=console.info.bind(console),Re[le.WARN]=console.warn.bind(console),Re[le.ERROR]=console.error.bind(console),Re[le.FATAL]=console.log.bind(console),Pe=Re);var ke=[],ze=function(e){return R(e)||L(e)||z(e)||D(e)?e:e instanceof Error?JSON.stringify({name:e.name,message:e.message,stack:e.stack}):JSON.stringify(e)};function Ge(e,t,n,r){t=/^[\w]+-[\w]+-[\w]+?/.test(t)?t:"L-".concat(t,"-O"),r||(r=["RCRTCLog","RCCall","RCRTC","RTC-A"].includes(t)?fe.RTC:fe.IM);var i=Date.now(),o="";try{o=(o=JSON.stringify({message:n,userId:Ve.userId})).replace(/"/g,'""'),o='"'.concat(o,'"')}catch(e){Xe(he.G_UPLOAD_LOG_E,{name:e.name,message:e.message,stack:e.stack})}E(o)>=1e3&&(o=function(e,t,n){if(void 0===n&&(n="utf-8"),!e||!t)return"";var r="utf-8"===n?3:2,i=0,o=0,s="";for(o=0;o<e.length;o++){if(e.charCodeAt(o)>255?i+=r:i++,i>t)return s;s+=e.charAt(o)}return e}(o,1e3));var s=je(e),a={sessionId:xe,time:i,level:s,content:"".concat(xe,",").concat(Date.now(),",").concat(r,",").concat(s,",").concat(t,",").concat(o,"\n"),userId:Ve.userId};return ke.push(a),a}function Be(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];console&&Pe[e]&&Pe[e].apply(Pe,T(["".concat(t,":")],n,!1))}var Ve={localLogLevel:le.WARN,userId:""},Ye=-1;Ye>=0&&(clearInterval(Ye),Ye=-1),"undefined"!=typeof window&&window&&window.indexedDB&&(Ye=setInterval((function(){ke.length&&function(e){return I(this,void 0,void 0,(function(){var t,n,r;return _(this,(function(i){switch(i.label){case 0:if(!(t=De.getInstance()))return[3,6];i.label=1;case 1:return i.trys.push([1,4,,5]),[4,t.addList(we,e)];case 2:return n=i.sent(),[4,t.getCount(we,"time")];case 3:return i.sent()>1e5&&t.removeFirstData(we,"time",2e3),[2,n];case 4:return r=i.sent(),Xe(he.G_UPLOAD_LOG_E,{name:r.name,message:r.message,stack:r.stack}),[2,!1];case 5:return[3,7];case 6:return De.init(),[2,!1];case 7:return[2]}}))}))}(ke.slice()).then((function(e){e&&(ke=[])}))}),3e3));var He=Date.now(),Fe=0;function Qe(){var e=Date.now();return He!==e&&(He=e,Fe=0),"".concat(He,"-").concat(Fe++)}function $e(e){!e.customLogPrint&&delete e.customLogPrint,Ve=Object.assign(Ve,e)}function Ke(e,t,n,r){if(void 0===n&&(n={}),void 0===r&&(r={}),e>le.DEBUG&&(r&&(n=Object.assign(n,r)),Ge(e,t,n,null==r?void 0:r.logSource)),e>=Ve.localLogLevel){var i="".concat((new Date).toISOString(),"[").concat(t,"][").concat(le[e],"]"),o="".concat(i," - ").concat(ze(n));Ve.customLogPrint?Ve.customLogPrint(e,o):Be(e,i,ze(n))}}var We,qe=Ke.bind(null,le.DEBUG),Ze=Ke.bind(null,le.INFO),Je=Ke.bind(null,le.WARN),Xe=Ke.bind(null,le.ERROR),et=Ke.bind(null,le.FATAL),tt=Object.freeze({__proto__:null,sessionId:xe,logLevelTransformer:je,formatLogObj:ze,insertIntoLogCache:Ge,_defaultStdout:Be,ID:Qe,init:$e,log:Ke,debug:qe,info:Ze,warn:Je,error:Xe,fatal:et}),nt=function(e){if("browser"!==e.tag)return{type:e.tag,version:"UnKonw"};var t,n,r=navigator.userAgent,i={IE:/rv:([\d.]+)\) like Gecko|MSIE ([\d.]+)/,Edge:/Edge\/([\d.]+)/,Firefox:/Firefox\/([\d.]+)/,Opera:/(?:OPERA|OPR).([\d.]+)/,WeChat:/MicroMessenger\/([\d.]+)/,QQBrowser:/QQBrowser\/([\d.]+)/,Chrome:/Chrome\/([\d.]+)/,Safari:/Version\/([\d.]+).*Safari/,iOSChrome:/Mobile\/([\d.]+).*Safari/};for(var o in i)if(i.hasOwnProperty(o)){var s=r.match(i[o]);if(s){n=o,t=s[1]||s[2];break}}return{type:n||"UnKonw",version:t||"UnKonw"}},rt=function(e){var t="RCDeviceId",n=h(e),r="",i=n.get(t);return i?r=i:(r=Ue(),n.set(t,r)),r},it=function(){function e(){}return e.compress=function(e){for(var t=this,n={},r=0;r<e.length-1;r++){var i=e.charAt(r)+e.charAt(r+1);n.hasOwnProperty(i)?n[i].push(r):n[i]=[r]}for(var o=[],s=[],a=function(){if(s.length>0){var e=s.join("");if(s=[],e.length>26){var n=t.numberEncode(e.length),r=String.fromCharCode(t.dataType.NormalExt|n.length);o.push(r+n)}else{var i=String.fromCharCode(t.dataType.Normal|e.length);o.push(i)}o.push(e)}},c=0;c<e.length;){var u=t.indexOf(n,e,c);if(u.length<2)s.push(e.charAt(c++));else if(u.length<4)s.push(e.substr(c,u.length)),c+=u.length;else{var l=t.numberEncode(c-u.offset),f=t.numberEncode(u.length);if(l.length+f.length>=u.length)s.push(e.substr(c,u.length)),c+=u.length;else{a();var h=String.fromCharCode(t.dataType.Compressed|l.length<<2|f.length);o.push(h+l+f),c+=u.length}}}a();var d=t.numberEncode(e.length),p=String.fromCharCode(t.dataType.Tail|d.length);return o.push(p+d),o.join("")},e.uncompress=function(e){var t=this,n=0,r="";e:do{var i=e.charCodeAt(n++),o=i&t.dataType.Mark,s=15&i,a=void 0;switch(o){case t.dataType.Compressed:var c=s>>2,u=3&s;if(0===c||0===u)throw new Error("Data parsing error,at "+n);var l=t.numberDecode(e.substr(n,c)),f=t.numberDecode(e.substr(n+=c,u));if((l=r.length-l)+f>r.length)throw new Error("Data parsing error,at "+n);n+=u,r+=r.substr(l,f);break;case t.dataType.Tail:if((a=t.numberDecode(e.substr(n,s)))!==r.length)throw console.log(r.length),console.log(a),new Error("Data parsing error,at "+n);n+=s;break e;case t.dataType.NormalExt:a=t.numberDecode(e.substr(n,s)),r+=e.substr(n+=s,a),n+=a;break;case t.dataType.Normal:r+=e.substr(n,s),n+=s;break;case t.dataType.Mark:if(s>10)throw new Error("Data parsing error,at "+n);r+=e.substr(n,16+s),n+=16+s;break;default:throw new Error("Data parsing error,at "+n+" header:"+o)}}while(n<e.length);return r},e.indexOf=function(e,t,n){var r={length:0,offset:-1};if(t.length,n>=t.length-1)return r;var i=e[t.charAt(n)+t.charAt(n+1)];if(i[0]===n)return r;for(var o=t.length-n,s=0,a=i.length;s<a;s++){var c=i[s],u=n-c;if(!(u>this.max)){var l=Math.min(o,u);if(l<=r.length)break;if(!(r.length>2&&t.charAt(c+r.length-1)!==t.charAt(n+r.length-1))){for(var f=2,h=f;h<l&&t.charAt(c+h)===t.charAt(n+h);h++)f++;f>=r.length&&(r.length=f,r.offset=c)}}}return r},e.numberEncode=function(e){var t=this,n=[],r=0;do{r=e%t.scale,n.push(t.chars.charAt(r)),e=(e-r)/t.scale}while(e>0);return n.join("")},e.numberDecode=function(e){for(var t=0,n=0,r=e.length-1;r>=0;r--){if(-1===(n=this.chars.indexOf(e.charAt(r))))throw new Error('decode number error, data is "'+e+'"');t=t*this.scale+n}return t},e.dataType={Tail:48,Compressed:64,NormalExt:80,Normal:96,Mark:112},e.chars="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",e.scale=e.chars.length,e.max=238327,e}(),ot=function(e){return R(e)&&/https?:\/\//.test(e)},st=function(){function e(e){this.info=e,this.logUrl="logcollection.ronghub.com",this.level=1,this.itv=30,this.times=5,this.deviceId="",this.deviceInfo="",this.logSwitch=0,this.logUrl=e.logPolicy.url||this.logUrl,this.level=e.logPolicy.level||this.level,this.itv=e.logPolicy.itv||this.itv,this.times=e.logPolicy.times||this.times,this.deviceId=rt(e.runtime),this.logSwitch=e.logSwitch;var t=nt(e.runtime);this.deviceInfo="".concat(t.type,"|").concat(t.version,"|").concat(null==e?void 0:e.sessionId)}return e.prototype.updateUploadLogAttr=function(e){var t=e.logPolicy,n=e.logSwitch,r=e.runtime,i=e.sessionId,o=void 0===i?"":i,s=e.userId;if(t){var a=t.url,c=t.level,u=t.itv,l=t.times;this.logUrl=a||this.logUrl,this.level=c||this.level,this.itv=u||this.itv,this.times=l||this.times}if(n&&(this.logSwitch=n),r){this.deviceId=rt(r);var f=nt(r);this.deviceInfo="".concat(f.type,"|").concat(f.version,"|").concat(o)}s&&(this.info.userId=s)},e.init=function(t){return e.reportSwitch=!0,e._instance||(e._instance=new e(t)),e._instance},e.getInstance=function(){return e._instance},e.prototype.reportRealtimeLog=function(t){var n=this;if(0===t.length||!this.logUrl)return Promise.resolve();var r=it.compress(t.map((function(e){return e.content})).join("")),i=ot(this.logUrl)?"":"https://",o="".concat(i).concat(this.logUrl,"?version=").concat(this.info.version,"&appkey=").concat(this.info.appkey,"&userId=").concat(this.info.userId,"&deviceId=").concat(this.deviceId,"&deviceInfo=").concat(this.deviceInfo,"&platform=Web");return this.info.runtime.httpReq({method:"POST",url:o,body:r}).then((function(t){var r=t.data;r&&(r=JSON.parse(r),n.itv=r.nextTime,n.level=r.level,n.logSwitch=r.logSwitch,e.currentRTTimes=1)}))},e.prototype.reportFullLog=function(t){return I(this,void 0,void 0,(function(){var n,r,i,o,s,a,c,u,l,f,h=this;return _(this,(function(d){switch(d.label){case 0:return n=t.startTime,r=t.endTime,i=t.platform,o=t.logId,s=t.uri,a=De.getInstance(),"web"===i.toLowerCase()&&a?n>r?[2]:[4,a.getRangeData(we,"time",n,r)]:[2];case 1:return c=(c=d.sent()).filter((function(e){return!e.userId||e.userId===h.info.userId})),u=it.compress(c.map((function(e){return e.content})).join("")||"no data"),l=1,f=function(){if(l>3||!e.reportSwitch)return Promise.resolve();var t=s||h.logUrl,n=ot(t)?"":"https://",r="".concat(n).concat(t,"?version=").concat(h.info.version,"&appkey=").concat(h.info.appkey,"&userId=").concat(h.info.userId,"&logId=").concat(o,"&deviceId=").concat(h.deviceId,"&deviceInfo=").concat(h.deviceInfo,"&platform=Web"),i=5e3*(l-1);return l++,new Promise((function(t,n){setTimeout((function(){e.reportSwitch&&h.info.runtime.httpReq({url:r,method:"POST",body:u}).then((function(){t()})).catch((function(e){n(e),f()}))}),i)}))},[2,f()]}}))}))},e.prototype.distroy=function(){e.currentRTTimes=1,e.reportSwitch=!1},e.currentRTTimes=1,e.reportSwitch=!1,e}(),at=[],ct=-1;function ut(e){We&&We.updateUploadLogAttr(e)}function lt(e,t,n,r){Ge(4-e,t,n);var i=JSON.stringify({message:n});i=i.replace(/"/g,'""'),i='"'.concat(i,'"');var o={level:e,content:[xe,Date.now(),r||fe.IM,e,t,i].join()+"\n"};at.push(o),at.length>=600&&(at=at.slice(-500))}function ft(){if(ct>=0&&(clearTimeout(ct),ct=-1),We&&We.logSwitch&&st.reportSwitch){var e=We.itv*Math.pow(2,st.currentRTTimes-1);st.currentRTTimes<We.times&&st.currentRTTimes++,ct=setTimeout((function(){var e=at.filter((function(e){return e.level<=We.level}));0===e.length?ft():We.reportRealtimeLog(e).then((function(){at=[],Ze(he.G_UPLOAD_LOG_S,"report real-time log success"),ft()})).catch((function(e){Ze(he.G_UPLOAD_LOG_E,"report real-time log error -> "+e),ft()}))}),1e3*e)}}var ht=function(){function e(e,t,n){this.tagId=e,this.logSource=t,this.initiator=n,this._localLogLevel=le.WARN,this.debug=this.log.bind(this,le.DEBUG),this.info=this.log.bind(this,le.INFO),this.warn=this.log.bind(this,le.WARN),this.error=this.log.bind(this,le.ERROR),this.fatal=this.log.bind(this,le.FATAL),this.reportLog=lt}return e.prototype.setLogLevel=function(e){this._localLogLevel="number"!=typeof e?le.WARN:e},e.prototype.setLogStdout=function(e){this._customLogPrint=e},e.prototype.log=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(e>le.DEBUG&&Ge(e,this.tagId,t.map(ze).join(" ")),!(e<this._localLogLevel)){var r="".concat((new Date).toISOString(),"[").concat(this.tagId,"][").concat(le[e],"]"),i="".concat(r," - ").concat(t.map(ze).join(" "));this._customLogPrint?this._customLogPrint(e,i):this._stdout?this._stdout(e,i):Be.apply(void 0,T([e,r],t,!1))}},e.prototype.set=function(e,t){this.warn("logger.set has being deprecated!")},e.prototype.setStdout=function(e){this._stdout=e},e}(),dt=new ht("RCEngine"),pt=function(){function e(){this._map={}}return e.prototype.on=function(e,t,n){var r=this._map[e]||(this._map[e]=[]);r.some((function(e){return e.listener===t&&e.target===n}))||r.push({listener:t,target:n})},e.prototype.once=function(e,t,n){var r=this._map[e]||(this._map[e]=[]);r.some((function(e){return e.listener===t&&e.target===n}))||r.push({listener:t,target:n,once:!0})},e.prototype.off=function(e,t,n){var r=this._map[e];r&&((r=r.filter((function(e){return e.listener!==t||e.target!==n}))).length?this._map[e]=r:delete this._map[e])},e.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=this._map[e];if(r)for(var i=r.length-1;i>=0;i-=1){var o=r[i],s=o.target,a=o.once,c=o.listener;a&&r.splice(i,1);try{c.call.apply(c,T([s],t,!1))}catch(e){dt.error(e)}}},e.prototype.removeAll=function(e){delete this._map[e]},e.prototype.clear=function(){Object.keys(this._map).forEach(this.removeAll,this)},e}(),gt="undefined"!=typeof window&&window?(window.__RCVersionInfo||(window.__RCVersionInfo={}),window.__RCVersionInfo):{};gt.engine="5.4.3";var vt,yt,mt=function(){function e(){}return e.add=function(e,t){gt[e]=t},e.validEngine=function(e){var t=e.match(/\d+\.\d+\.\d+/);if(!t)return dt.warn("The validation engine version '".concat(e,"' is invalid!")),!1;var n=t[0].split(".").map((function(e){return e.padStart(3,"0")})).join("");return gt.engine.match(/\d+\.\d+\.\d+/)[0].split(".").map((function(e){return e.padStart(3,"0")})).join("")>=n},e.getInfo=function(){return gt},e}();!function(e){e[e.STRING=0]="STRING",e[e.ONLY_STRING=1]="ONLY_STRING",e[e.NUMBER=2]="NUMBER",e[e.BOOLEAN=3]="BOOLEAN",e[e.OBJECT=4]="OBJECT",e[e.ARRAY=5]="ARRAY",e[e.CALLBACK=6]="CALLBACK",e[e.CHANNEL_ID=7]="CHANNEL_ID",e[e.CONVERSATION=8]="CONVERSATION"}(yt||(yt={}));var It,_t,Tt,Ct,Mt,Et=((vt={})[yt.STRING]=P,vt[yt.ONLY_STRING]=R,vt[yt.NUMBER]=L,vt[yt.BOOLEAN]=function(e){return"boolean"==typeof e},vt[yt.OBJECT]=j,vt[yt.ARRAY]=U,vt[yt.CALLBACK]=function(e){var t=!0;return j(e)||(t=!1),(e=e||{}).onSuccess&&!k(e.onSuccess)&&(t=!1),e.onError&&!k(e.onError)&&(t=!1),t},vt[yt.CHANNEL_ID]=H,vt[yt.CONVERSATION]=function(e){var t=!0;return j(e)||(t=!1),R(e.targetId)||(t=!1),Y(e.conversationType)||(t=!1),z(e.channelId)||H(e.channelId)||(t=!1),t},vt),At=function(e){function t(t){var n=e.call(this,t)||this;return n.name="RCAssertError",n}return y(t,e),t}(Error),St=function(e,t,n,r){if(void 0===r&&(r=!1),!Nt(e,t,n,r))throw new At("'".concat(e,"' is invalid: ").concat(JSON.stringify(t)))},Nt=function(e,t,n,r){void 0===r&&(r=!1),n=Et[n]||n;var i=r&&!n(t)||!r&&!(z(t)||null===t||n(t));return i&&dt.error("'".concat(e,"' is invalid: ").concat(JSON.stringify(t))),!i},bt=function(e){if(!j(e)||void 0===e.low||void 0===e.high)return e;var t=e.low;return t<0&&(t+=4294967296),t=t.toString(16),parseInt(e.high.toString(16)+"00000000".replace(new RegExp("0{"+t.length+"}$"),t),16)},wt=function(e,t){var n=Math.floor(1e3*Math.random()%1e4),r=Le(),i=function(e){e=e||"-";var t=new Date,n=t.getFullYear(),r=t.getMonth()+1,i=t.getDate();return"".concat(n).concat(e).concat(r).concat(e).concat(i)}(),o=(new Date).getTime(),s="";if(t){var a=t.split(".");s="."+a[a.length-1]}return"".concat(e,"__RC-").concat(i,"_").concat(n,"_").concat(o).concat(r).concat(s)},Ot=function(e,t){void 0===e&&(e={}),void 0===t&&(t={});var n=e.threadId,r=e.apnsCollapseId,i=e.category,o=e.richMediaUri,s=t.channelIdMi,a=t.channelIdHW,c=t.channelIdOPPO,u=t.typeVivo,l=t.googleConfig,f={};f["thread-id"]=n||"",f["apns-collapse-id"]=r||"",f.category=i||"",f.richMediaUri=o||"";var h={};h.collapse_key=null==l?void 0:l.collapseKey,h.imageUrl=null==l?void 0:l.imageUrl;var d=null==l?void 0:l.priority;d&&!["high","normal"].includes(d)&&(d="normal"),h.priority=d;var p=[{HW:{channelId:a||""}},{MI:{channelId:s||""}},{OPPO:{channelId:c||""}},{VIVO:{classification:u||""}},{APNS:f},{FCM:h}];return JSON.stringify(p)},Rt=function(e,t){var n={},r={notificationId:t||""};if(!e)return{iOSConfig:n,androidConfig:r};try{var i=JSON.parse(e);null==i||i.forEach((function(e){var t,i,o,s,a=Object.keys(e);if(0!==a.length){var c=a[0];switch(c){case"HW":return void(r.channelIdHW=null===(t=e[c])||void 0===t?void 0:t.channelId);case"MI":return void(r.channelIdMi=null===(i=e[c])||void 0===i?void 0:i.channelId);case"OPPO":return void(r.channelIdOPPO=null===(o=e[c])||void 0===o?void 0:o.channelId);case"VIVO":return void(r.typeVivo=null===(s=e[c])||void 0===s?void 0:s.classification);case"APNS":return n.threadId=e[c]["thread-id"],n.apnsCollapseId=e[c]["apns-collapse-id"],n.category=e[c].category,void(n.richMediaUri=e[c].richMediaUri);case"FCM":r.googleConfig={collapseKey:e[c].collapse_key||"",imageUrl:e[c].imageUrl||"",priority:e[c].priority||""}}}}))}catch(t){dt.error("Wrong format for pushConfigs field! content: "+e)}return{iOSConfig:n,androidConfig:r}},Dt=function(e){var t=/^[A-Za-z0-9_=+-]+$/.test(e),n=e.length;return t&&n<=128&&n>=1},Lt=function(e){var t=e.length;return t<=4096&&t>=1},Ut=function(e,t,n){t=t||function(){};var r=(n=n||{}).isReverse;j(e)&&function(){for(var n in e)t(e[n],n,e)}(),(U(e)||R(e))&&function(){if(r)for(var n=e.length-1;n>=0;n--)t(e[n],n);else for(var i=0,o=e.length;i<o;i++)t(e[i],i)}()},xt=function(e,t){return Ut(e,(function(n,r){e[r]=t(n,r)})),e},Pt=function(e,t){if(e.indexOf)return e.indexOf(t);var n=-1;return Ut(e,(function(e,r){t===e&&(n=r)})),n},jt=function(e,t){var n=[];return Ut(e,(function(e){n.push(e)})),-1!==Pt(n,t)},kt=function(e){return JSON.parse(JSON.stringify(e))},zt=function(){return"undefined"!=typeof RCCppEngine},Gt=function(e){switch(e){case X.SERVER_UNAVAILABLE:return q.SERVER_UNAVAILABLE;case X.TOKEN_INCORRECT:return q.RC_CONN_USER_OR_PASSWD_ERROR;case X.REDIRECT:return q.RC_CONN_REDIRECTED;case X.APP_BLOCK_OR_DELETE:return q.RC_CONN_APP_BLOCKED_OR_DELETED;case X.BLOCK:return q.RC_CONN_USER_BLOCKED;case X.TOKEN_EXPIRE:return q.RC_CONN_USER_OR_PASSWD_ERROR;case X.HOSTNAME_ERROR:return q.HOSTNAME_ERROR;case X.HASOHTERSAMECLIENTONLINE:return q.HAS_OHTER_SAME_CLIENT_ON_LINE;case X.APP_AUTH_NOT_PASS:return q.RC_APP_AUTH_NOT_PASS;case X.OTP_USED:return q.RC_OTP_USED;case X.PLATFORM_ERROR:return q.RC_PLATFORM_ERROR;default:return q.RC_NET_UNAVAILABLE}},Bt=function(e){var t;if("object"==typeof e&&null!==e)if(Array.isArray(e))for(var n in t=[],e)t.push(Bt(e[n]));else for(var n in t={},e)t[n]=Bt(e[n]);else t=e;return t},Vt=function(e){var t;try{t=Bt(e)}catch(o){dt.error("clone err:",o),t=JSON.parse(JSON.stringify(e))}return t},Yt=function(e){var t={},n=JSON.parse(e);return Ut(n,(function(e,n){t[n]=e.v})),t},Ht={_delayTime:0,setTime:function(e){var t=(new Date).getTime();Ht._delayTime=t-e},getTime:function(){var e=Ht._delayTime;return(new Date).getTime()-e}},Ft=function(e,t){var n=0;return e.isAutoDelete&&(n|=1),e.isOverwrite&&(n|=2),2===t&&(n|=4),n};!function(e){e[e.AT_MOST_ONCE=0]="AT_MOST_ONCE",e[e.AT_LEAST_ONCE=1]="AT_LEAST_ONCE",e[e.EXACTLY_ONCE=2]="EXACTLY_ONCE",e[e.DEFAULT=3]="DEFAULT"}(It||(It={})),function(e){e[e.SYMMETRIC=0]="SYMMETRIC",e[e.CONNECT=1]="CONNECT",e[e.CONN_ACK=2]="CONN_ACK",e[e.PUBLISH=3]="PUBLISH",e[e.PUB_ACK=4]="PUB_ACK",e[e.QUERY=5]="QUERY",e[e.QUERY_ACK=6]="QUERY_ACK",e[e.QUERY_CONFIRM=7]="QUERY_CONFIRM",e[e.SUBSCRIBE=8]="SUBSCRIBE",e[e.SUB_ACK=9]="SUB_ACK",e[e.UNSUBSCRIBE=10]="UNSUBSCRIBE",e[e.UNSUB_ACK=11]="UNSUB_ACK",e[e.PING_REQ=12]="PING_REQ",e[e.PING_RESP=13]="PING_RESP",e[e.DISCONNECT=14]="DISCONNECT",e[e.RESERVER2=15]="RESERVER2"}(_t||(_t={})),function(e){e.CONN_ACK="ConnAckMessage",e.DISCONNECT="DisconnectMessage",e.PING_REQ="PingReqMessage",e.PING_RESP="PingRespMessage",e.PUBLISH="PublishMessage",e.PUB_ACK="PubAckMessage",e.QUERY="QueryMessage",e.QUERY_CON="QueryConMessage",e.QUERY_ACK="QueryAckMessage"}(Tt||(Tt={})),function(e){e.PUB="pub",e.QUERY="qry"}(Ct||(Ct={})),function(e){e[e.V4=4]="V4",e[e.V3=3]="V3"}(Mt||(Mt={}));var Qt,$t=function(){function e(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=It.AT_LEAST_ONCE),void 0===r&&(r=!1),this._retain=!1,this.qos=It.AT_LEAST_ONCE,this._dup=!1,this.syncMsg=!1;var i=e>0;e&&i&&1===arguments.length?(this._retain=(1&e)>0,this.qos=(6&e)>>1,this._dup=(8&e)>0,this.type=e>>4&15,this.syncMsg=8==(8&e)):(this.type=e,this._retain=t,this.qos=n,this._dup=r)}return e.prototype.encode=function(){var e=this.type<<4;return e|=this._retain?1:0,e|=this.qos<<1,e|(this._dup?8:0)},e}(),Kt=function(){function e(){}return e.writeUTF=function(e,t){var n=[],r=0;if(R(e))for(var i=0,o=e.length;i<o;i++){var s=e.charCodeAt(i);s>=0&&s<=127?(r+=1,n.push(s)):s>=128&&s<=2047?(r+=2,n.push(192|31&s>>6),n.push(128|63&s)):s>=2048&&s<=65535&&(r+=3,n.push(224|15&s>>12),n.push(128|63&s>>6),n.push(128|63&s))}for(i=0,o=n.length;i<o;i++)n[i]>255&&(n[i]&=255);return t?n:r<=255?[0,r].concat(n):[r>>8,255&r].concat(n)},e.readUTF=function(e){for(var t,n,r=[],i=-1,o=e,s="";++i<o.length;){var a=Number(o[i]);if(a===(127&a)||(240==(240&a)?a=(a=(a=(a^=240)<<6|128^o[++i])<<6|128^o[++i])<<6|128^o[++i]:224==(224&a)?a=(a=(a^=224)<<6|128^o[++i])<<6|128^o[++i]:192==(192&a)&&(a=(a^=192)<<6|128^o[++i])),!isFinite(a)||a<0||a>1114111||Math.floor(a)!==a)throw RangeError("Invalid code point: "+a);a<=65535?r.push(a):(t=(a-=65536)>>10|55296,n=a%1024|56320,r.push(t,n)),(i+1===o.length||r.length>16384)&&(s+=String.fromCharCode.apply(null,r),r.length=0)}return s},e}(),Wt=function(){function e(e){this._position=0,this._poolLen=0,this._pool=e,this._poolLen=e.length}return e.prototype.check=function(){return this._position>=this._pool.length},e.prototype.read2Byte=function(){var e=this;if(e.check())return-1;for(var t="",n=0;n<2;n++){var r=e._pool[e._position++].toString(16);1===r.length&&(r="0"+r),t+=r.toString()}return parseInt(t,16)},e.prototype.readInt=function(){var e=this;if(e.check())return-1;for(var t="",n=0;n<4;n++){var r=e._pool[e._position++].toString(16);1===r.length&&(r="0"+r),t+=r.toString()}return parseInt(t,16)},e.prototype.readLong=function(){var e=this;if(e.check())return-1;for(var t="",n=0;n<8;n++){var r=e._pool[e._position++].toString(16);1===r.length&&(r="0"+r),t+=r}return parseInt(t,16)},e.prototype.readByte=function(){if(this.check())return-1;var e=this._pool[this._position++];return e>255&&(e&=255),e},e.prototype.readUTF=function(){if(this.check())return"";var e=this.readByte()<<8|this.readByte(),t=this._pool.subarray(this._position,this._position+=e);return Kt.readUTF(t)},e.prototype.readAll=function(){return this._pool.subarray(this._position,this._poolLen)},e}(),qt=function(){function e(){this._pool=[],this._position=0,this._writen=0}return e.prototype.write=function(e){return-1!==Object.prototype.toString.call(e).indexOf("Array")?this._pool=this._pool.concat(e):e>=0&&(e>255&&(e&=255),this._pool.push(e),this._writen++),e},e.prototype.writeArr=function(e){return this._pool=this._pool.concat(e),e},e.prototype.writeUTF=function(e){var t=Kt.writeUTF(e);this._pool=this._pool.concat(t),this._writen+=t.length},e.prototype.getBytesArray=function(){return this._pool},e}(),Zt="UpStreamMessage",Jt="PushExtra",Xt="DownStreamMessage",en="DownStreamMessages",tn="SessionsAttQryInput",nn="SessionsAttOutput",rn="SyncRequestMsg",on="ChrmPullMsg",sn="NotifyMsg",an="HistoryMsgInput",cn="HistoryMsgOuput",un="RelationQryInput",ln="RelationsOutput",fn="DeleteSessionsInput",hn="SessionInfo",dn="DeleteSessionsOutput",pn="RelationsInput",gn="DeleteMsgInput",vn="CleanHisMsgInput",yn="SessionMsgReadInput",mn="ChrmInput",In="ChrmOutput",_n="QueryChatRoomInfoInput",Tn="QueryChatRoomInfoOutput",Cn="RtcInput",Mn="RtcUserListOutput",En="SetUserStatusInput",An="RtcSetDataInput",Sn="RtcUserSetDataInput",Nn="RtcDataInput",bn="RtcSetOutDataInput",wn="MCFollowInput",On="RtcTokenOutput",Rn="RtcQryOutput",Dn="RtcQryUserOutDataInput",Ln="RtcUserOutDataOutput",Un="RtcQueryListInput",xn="RtcRoomInfoOutput",Pn="RtcValueInfo",jn="RtcKeyDeleteInput",kn="GetQNupTokenInput",zn="GetQNupTokenOutput",Gn="GetQNdownloadUrlInput",Bn="GetDownloadUrlInput",Vn="GetQNdownloadUrlOutput",Yn="GetDownloadUrlOutput",Hn="ChrmKVEntity",Fn="SetChrmKV",Qn="SetChrmKVS",$n="DeleteChrmKVS",Kn="ChrmKVOutput",Wn="ChrmKVSOutput",qn="ChrmKVSVersionEntity",Zn="ChrmKVSOutputEntity",Jn="QueryChrmKV",Xn="SetUserSettingInput",er="SetUserSettingOutput",tr="PullUserSettingInput",nr="PullUserSettingOutput",rr="UserSettingNotification",ir="SessionReq",or="SessionStates",sr="SessionState",ar="SessionStateItem",cr="SessionStateModifyReq",ur="SessionStateModifyResp",lr="GroupUnpushQuery",fr="GroupUnpushSet",hr="GroupUnpushResult",dr="GrpReadReceiptMsg",pr="GrpReadReceiptQryReq",gr="GrpReadReceiptQryResp",vr="GrpMsgReadUser",yr="SessionTagAddInput",mr="SessionTagItem",Ir="SessionTagDelInput",_r="SessionDisTagReq",Tr="ReportSDKInput",Cr="ReportSDKOutput",Mr="UltraGrpPullSes",Er="UltraGrpPullMsg",Ar="MsgChangeReq",Sr="QueryMsgChange",Nr="MsgChange",br="MsgChangeList",wr="MsgQuery",Or="MessageQueryInfo",Rr="MsgQueryAck",Dr="OperateStatus",Lr="OperateStatusNotify",Ur="OperateInfo",xr="OperateSummary",Pr="RtcNotifyMsg",jr="RtcPullKV",kr="RtcKVOutput",zr="RtcQueryUserJoinedInput",Gr="RtcQueryUserJoinedOutput",Br="RtcViewerJoinedOutput",Vr="RtcInviteInput",Yr="RtcCancelInviteInput",Hr="RtcInviteAnswerInput",Fr="RtcEndInviteInput",Qr="SetRtcRoomIdInput",$r="SetRtcRoomIdOutput",Kr=((Qt={})[Zt]=["sessionId","classname","content","pushText","userId","configFlag","appData","extraContent","pushExt","busChannel"],Qt[en]=["list","syncTime","finished","broadcastSyncTime"],Qt[Xt]=["fromUserId","type","groupId","classname","content","dataTime","status","msgId","extraContent","pushContent","configFlag","pushExt","busChannel","extStatus","toUserId","groupUnpush"],Qt[Jt]=["title","templateIdNoUse","pushId","pushConfigs","templateId"],Qt[tn]=["nothing"],Qt[nn]=["inboxTime","sendboxTime","totalUnreadCount"],Qt[rn]=["syncTime","ispolling","isweb","isPullSend","isKeeping","sendBoxSyncTime","broadcastSyncTime"],Qt[on]=["syncTime","count"],Qt[sn]=["type","time","chrmId"],Qt[an]=["targetId","time","count","order","busChannel"],Qt[cn]=["list","syncTime","hasMsg"],Qt[un]=["type","count","startTime","order"],Qt[ln]=["info","isFinished"],Qt[fn]=["sessions"],Qt[hn]=["type","channelId","busChannel"],Qt[dn]=["nothing"],Qt[pn]=["type","msg","count","busChannel","startTime","endTime"],Qt[gn]=["type","conversationId","msgs","busChannel"],Qt[vn]=["targetId","dataTime","conversationType","busChannel"],Qt[yn]=["type","msgTime","channelId","busChannel"],Qt[mn]=["nothing"],Qt[In]=["nothing","sessionId","joinTime"],Qt[_n]=["count","order"],Qt[Tn]=["userTotalNums","userInfos"],Qt[kn]=["type","key","httpMethod","queryString"],Qt[Gn]=["type","key","fileName"],Qt[Bn]=["type","key","fileName"],Qt[zn]=["deadline","token","bosToken","bosDate","path","osskeyId","ossPolicy","ossSign","ossBucketName"],Qt[Vn]=["downloadUrl"],Qt[Yn]=["downloadUrl"],Qt[Hn]=["key","value","status","timestamp","uid","version"],Qt[Fn]=["entry","bNotify","notification","type"],Qt[Qn]=["entry","bNotify","notification","type"],Qt[$n]=["entry","bNotify","notification","type"],Qt[Kn]=["entries","bFullUpdate","syncTime"],Qt[Wn]=["timestamp","errorKeys","keysVersion"],Qt[qn]=["version","key"],Qt[Zn]=["key","errorCode"],Qt[Jn]=["timestamp"],Qt[Xn]=["version","value"],Qt[er]=["version","reserve"],Qt[tr]=["version","reserve"],Qt[nr]=["items","version"],Qt.UserSettingItem=["targetId","type","key","value","version","status","tags"],Qt[ir]=["time"],Qt[or]=["version","state"],Qt[sr]=["type","channelId","time","stateItem","busChannel"],Qt[ar]=["sessionStateType","value","tags"],Qt[cr]=["version","state"],Qt[ur]=["version"],Qt[fr]=["busChannel","unpushLevel"],Qt[lr]=["busChannel"],Qt[hr]=["groupId","busChannel","unpushLevel"],Qt[dr]=["msgId","busChannel"],Qt[pr]=["msgId","busChannel"],Qt[gr]=["totalMemberNum","list"],Qt[vr]=["readTime","userId"],Qt[yr]=["version","tags"],Qt[mr]=["tagId","name","createdTime","isTop"],Qt[Ir]=["version","tags"],Qt[_r]=["tagId"],Qt[rr]=["version","reserve"],Qt[Tr]=["sdkInfo"],Qt[Cr]=["nothing"],Qt[Mr]=["syncTime","isEraseMsgContent"],Qt[Er]=["syncTime"],Qt[Ar]=["fromUserId","targetId","type","busChannel","msgUID","msgTime","content"],Qt[Sr]=["syncTime"],Qt[br]=["list","syncTime","hasNext"],Qt[Nr]=["targetId","type","time","changeType","msgUID","msgTime","busChannel","isAdmin","isDel","operatorId","subChangeType"],Qt[wr]=["targetId","type","query"],Qt[Or]=["msgTime","msgUID","busChannel"],Qt[Rr]=["list"],Qt[Dr]=["targetId","type","opType","busChannel"],Qt[Lr]=["type","notifyType","info","summary"],Qt[Ur]=["targetId","busChannel","userId","opType","optime"],Qt[xr]=["targetId","busChannel","count","opType"],Qt[Cn]=["roomType","broadcastType","extraInnerData","needSysChatroom","identityChangeType","joinType"],Qt[Mn]=["users","token","sessionId","roomInfo"],Qt[En]=["status"],Qt[An]=["interior","target","key","value","objectName","content"],Qt[Sn]=["valueInfo","objectName","content"],Qt[Nn]=["interior","target","key","objectName","content"],Qt[bn]=["target","valueInfo","objectName","content"],Qt[wn]=["state"],Qt[On]=["rtcToken"],Qt[Rn]=["outInfo"],Qt[Dn]=["userId"],Qt[Ln]=["user"],Qt[Un]=["order"],Qt[xn]=["roomId","roomData","userCount","list"],Qt[Pn]=["key","value"],Qt[jn]=["key"],Qt[Pr]=["type","time","roomId"],Qt[jr]=["timestamp","roomId"],Qt[kr]=["entries","bFullUpdate","syncTime"],Qt[zr]=["userId"],Qt[Gr]=["info"],Qt[Vr]=["invitedUserId","timeoutTime","invitedRoomId","inviteInfo","inviteSessionId"],Qt[Yr]=["invitedUserId","invitedRoomId","inviteInfo","inviteSessionId"],Qt[Hr]=["inviteUserID","answerCode","inviteRoomId","inviteSessionId","content","key","value"],Qt[Fr]=["inviteRoomId","inviteSessionId","inviteContent","inviteRoomKeys"],Qt[Qr]=["rtcRoomId"],Qt[$r]=["nothing"],Qt),Wr={},qr=function(e){var t=Kr[e];Wr[e]=function(){for(var e={},n={getArrayData:function(){return e}},r=function(r){var i=t[r],o="set".concat(M(i,0,1));n[o]=function(t){e[i]=t}},i=0;i<t.length;i++)r(i);return n},Wr[e].decode=function(e){var t={};R(e)&&(e=JSON.parse(e));var n=function(n){var r="get".concat(M(n,0,1));t[n]=e[n],t[r]=function(){return e[n]}};for(var r in e)n(r);return t}};for(var Zr in Kr)qr(Zr);Wr.getModule=function(e){return Wr[e]()};var Jr,Xr,ei,ti,ni,ri,ii,oi="\npackage Modules;\nmessage probuf {\n message ".concat(En,"\n {\n optional int32 status=1;\n }\n\n message SetUserStatusOutput\n {\n optional int32 nothing=1;\n }\n\n message GetUserStatusInput\n {\n optional int32 nothing=1;\n }\n\n message GetUserStatusOutput\n {\n optional string status=1;\n optional string subUserId=2;\n }\n\n message SubUserStatusInput\n {\n repeated string userid =1;\n }\n\n message SubUserStatusOutput\n {\n optional int32 nothing=1;\n }\n message VoipDynamicInput\n {\n required int32 engineType = 1;\n required string channelName = 2;\n optional string channelExtra = 3;\n }\n\n message VoipDynamicOutput\n {\n required string dynamicKey=1;\n }\n message ").concat(sn," {\n required int32 type = 1;\n optional int64 time = 2;\n optional string chrmId=3;\n }\n message ").concat(rn," {\n required int64 syncTime = 1;\n required bool ispolling = 2;\n optional bool isweb=3;\n optional bool isPullSend=4;\n optional bool isKeeping=5;\n optional int64 sendBoxSyncTime=6;\n optional int64 broadcastSyncTime=7;\n }\n message ").concat(Zt," {\n required int32 sessionId = 1;\n required string classname = 2;\n required bytes content = 3;\n optional string pushText = 4;\n optional string appData = 5;\n repeated string userId = 6;\n optional int64 delMsgTime = 7;\n optional string delMsgId = 8;\n optional int32 configFlag = 9;\n optional int64 clientUniqueId = 10;\n optional string extraContent = 11;\n optional PushExtra pushExt = 12;\n optional string busChannel = 13; // 该消息所属会话的业务标识\n }\n message ").concat(Jt," {\n optional string title = 1;\n optional int32 templateIdNoUse= 2;\n optional string pushId = 3;\n optional string pushConfigs = 4;\n optional string templateId = 5;\n }\n message ").concat(en," {\n repeated DownStreamMessage list = 1;\n required int64 syncTime = 2;\n optional bool finished = 3;\n optional int64 broadcastSyncTime = 4;\n }\n message ").concat(Xt," {\n required string fromUserId = 1;\n required ChannelType type = 2;\n optional string groupId = 3;\n required string classname = 4;\n required bytes content = 5;\n required int64 dataTime = 6;\n required int64 status = 7;\n optional int64 extra = 8;\n optional string msgId = 9;\n optional int32 direction = 10;\n optional int32 plantform =11;\n optional int32 isRemoved = 12;\n optional string source = 13;\n optional int64 clientUniqueId = 14;\n optional string extraContent = 15;\n optional string pushContent = 16;\n optional int32 configFlag = 17;\n optional PushExtra pushExt = 18;\n optional string busChannel = 19; // 该消息所属会话的业务标识,限制20字符以内\n optional int64 extStatus = 20; // 消息的扩展标记 第0位,表示送达状态: 0x01 表示已送达;断档: 0x02 表示是否需要执行断档策略; 消息修改: 0x04 拉取历史消息时表示该消息是否修改过 0x08 每条消息携带的频道类型\n repeated string toUserId = 21; //指定接收者(限定群和讨论组)//增加聊天室定向成员\n optional int32 groupUnpush = 22; //群聊默认免打扰级别\n }\n enum ChannelType {\n PERSON = 1;\n PERSONS = 2;\n GROUP = 3;\n TEMPGROUP = 4;\n CUSTOMERSERVICE = 5;\n NOTIFY = 6;\n MC=7;\n MP=8;\n ULTRAGROUP = 10;\n }\n message CreateDiscussionInput {\n optional string name = 1;\n }\n message CreateDiscussionOutput {\n required string id = 1;\n }\n message ChannelInvitationInput {\n repeated string users = 1;\n }\n message LeaveChannelInput {\n required int32 nothing = 1;\n }\n message ChannelEvictionInput {\n required string user = 1;\n }\n message RenameChannelInput {\n required string name = 1;\n }\n message ChannelInfoInput {\n required int32 nothing = 1;\n }\n message ChannelInfoOutput {\n required ChannelType type = 1;\n required string channelId = 2;\n required string channelName = 3;\n required string adminUserId = 4;\n repeated string firstTenUserIds = 5;\n required int32 openStatus = 6;\n }\n message ChannelInfosInput {\n required int32 page = 1;\n optional int32 number = 2;\n }\n message ChannelInfosOutput {\n repeated ChannelInfoOutput channels = 1;\n required int32 total = 2;\n }\n message MemberInfo {\n required string userId = 1;\n required string userName = 2;\n required string userPortrait = 3;\n required string extension = 4;\n }\n message GroupMembersInput {\n required int32 page = 1;\n optional int32 number = 2;\n }\n message GroupMembersOutput {\n repeated MemberInfo members = 1;\n required int32 total = 2;\n }\n message GetUserInfoInput {\n required int32 nothing = 1;\n }\n message GetUserInfoOutput {\n required string userId = 1;\n required string userName = 2;\n required string userPortrait = 3;\n }\n message GetSessionIdInput {\n required int32 nothing = 1;\n }\n message GetSessionIdOutput {\n required int32 sessionId = 1;\n }\n enum FileType {\n image = ").concat(O.IMAGE,";\n audio = ").concat(O.AUDIO,";\n video = ").concat(O.VIDEO,";\n file = ").concat(O.FILE,";\n }\n message ").concat(kn," {\n required FileType type = 1;\n optional string key = 2;\n optional string httpMethod = 3;\n optional string queryString = 4;\n }\n message ").concat(Gn," {\n required FileType type = 1;\n required string key = 2;\n optional string fileName = 3;\n }\n message ").concat(Bn," {\n required FileType type = 1;\n required string key = 2;\n optional string fileName = 3;\n }\n message ").concat(zn," {\n required int64 deadline = 1;\n required string token = 2;\n optional string bosToken = 3;\n optional string bosDate = 4;\n optional string path = 5;\n optional string osskeyId = 6;\n optional string ossPolicy = 7;\n optional string ossSign = 8;\n optional string ossBucketName = 9;\n optional string s3Credential = 10;\n optional string s3Algorithm = 11;\n optional string s3Date = 12;\n optional string s3Policy = 13;\n optional string s3Signature = 14;\n optional string s3BucketName = 15;\n optional string stcAuthorization = 16;\n optional string stcContentSha256 = 17;\n optional string stcDate = 18;\n optional string stcBucketName = 19;\n }\n message ").concat(Vn," {\n required string downloadUrl = 1;\n }\n message ").concat(Yn," {\n required string downloadUrl = 1;\n }\n message Add2BlackListInput {\n required string userId = 1;\n }\n message RemoveFromBlackListInput {\n required string userId = 1;\n }\n message QueryBlackListInput {\n required int32 nothing = 1;\n }\n message QueryBlackListOutput {\n repeated string userIds = 1;\n }\n message BlackListStatusInput {\n required string userId = 1;\n }\n message BlockPushInput {\n required string blockeeId = 1;\n }\n message ModifyPermissionInput {\n required int32 openStatus = 1;\n }\n message GroupInput {\n repeated GroupInfo groupInfo = 1;\n }\n message GroupOutput {\n required int32 nothing = 1;\n }\n message GroupInfo {\n required string id = 1;\n required string name = 2;\n }\n message GroupHashInput {\n required string userId = 1;\n required string groupHashCode = 2;\n }\n message GroupHashOutput {\n required GroupHashType result = 1;\n }\n enum GroupHashType {\n group_success = 0x00;\n group_failure = 0x01;\n }\n message ").concat(mn," {\n required int32 nothing = 1;\n }\n message ").concat(In," {\n required int32 nothing = 1;\n optional string sessionId = 2;\n optional int64 joinTime = 3;\n }\n message ").concat(on," {\n required int64 syncTime = 1;\n required int32 count = 2;\n }\n\n message ChrmPullMsgNew\n {\n required int32 count = 1;\n required int64 syncTime = 2;\n optional string chrmId=3;\n }\n message ").concat(un,"\n {\n optional ChannelType type = 1;\n optional int32 count = 2;\n optional int64 startTime = 3;\n optional int32 order = 4;\n }\n message ").concat(pn,"\n {\n required ChannelType type = 1;\n optional DownStreamMessage msg =2;\n optional int32 count = 3;\n repeated string busChannel = 4;\n optional int64 startTime = 5;\n optional int64 endTime = 6;\n }\n message ").concat(ln,"\n {\n repeated RelationInfo info = 1;\n optional bool isFinished = 2;//是否结束\n }\n message RelationInfo\n {\n required ChannelType type = 1;\n required string userId = 2;\n optional DownStreamMessage msg =3;\n optional int64 readMsgTime= 4;\n optional int64 unreadCount= 5;\n optional string busChannel = 6;//该消息所属会话的业务标识\n optional int64 versionTime = 7;//会话项变更时间戳,注意:非排序时间戳\n optional int64 remindCount = 8;//被@的未读数\n optional int32 busChannelType = 9; // 0: 公有频道; 1: 私有频道;\n }\n message RelationInfoReadTime\n {\n required ChannelType type = 1;\n required int64 readMsgTime= 2;\n required string targetId = 3;\n }\n message ").concat(vn,"\n {\n required string targetId = 1;\n required int64 dataTime = 2;\n optional int32 conversationType= 3;\n optional string busChannel = 4; //该消息所属会话的业务标识,限制20字符以内\n }\n message HistoryMessageInput\n {\n required string targetId = 1;\n required int64 dataTime =2;\n required int32 size = 3;\n }\n\n message HistoryMessagesOuput\n {\n repeated DownStreamMessage list = 1;\n required int64 syncTime = 2;\n required int32 hasMsg = 3;\n }\n message ").concat(_n,"\n {\n required int32 count= 1;\n optional int32 order= 2;\n }\n\n message ").concat(Tn,"\n {\n optional int32 userTotalNums = 1;\n repeated ChrmMember userInfos = 2;\n }\n message ChrmMember\n {\n required int64 time = 1;\n required string id = 2;\n }\n message MPFollowInput\n {\n required string id = 1;\n }\n\n message MPFollowOutput\n {\n required int32 nothing = 1;\n optional MpInfo info =2;\n }\n\n message ").concat(wn,"\n {\n required string state = 1;\n }\n\n message MCFollowOutput\n {\n required int32 nothing = 1;\n optional MpInfo info =2;\n }\n\n message MpInfo\n {\n required string mpid=1;\n required string name = 2;\n required string type = 3;\n required int64 time=4;\n optional string portraitUrl=5;\n optional string extra =6;\n }\n\n message SearchMpInput\n {\n required int32 type=1;\n required string id=2;\n }\n\n message SearchMpOutput\n {\n required int32 nothing=1;\n repeated MpInfo info = 2;\n }\n\n message PullMpInput\n {\n required int64 time=1;\n required string mpid=2;\n }\n\n message PullMpOutput\n {\n required int32 status=1;\n repeated MpInfo info = 2;\n }\n message ").concat(an,"\n {\n optional string targetId = 1;\n optional int64 time = 2;\n optional int32 count = 3;\n optional int32 order = 4;\n optional string busChannel = 5; //该消息所属会话的业务标识,限制20字符以内\n }\n\n message ").concat(cn,"\n {\n repeated DownStreamMessage list=1;\n required int64 syncTime=2;\n required int32 hasMsg=3;\n }\n message ").concat(Un,"{\n optional int32 order=1;\n }\n\n message ").concat(jn,"{\n repeated string key=1;\n }\n\n message ").concat(Pn,"{\n required string key=1;\n required string value=2;\n }\n\n message RtcUserInfo{\n required string userId=1;\n repeated ").concat(Pn," userData=2; //用户资源信息\n }\n\n message ").concat(Mn,"{\n repeated RtcUserInfo users=1;\n optional string token=2;\n optional string sessionId=3;\n repeated RtcValueInfo roomInfo = 4; //房间key value\n repeated RtcKVEntity entries = 5;//直播KV属性对象集合\n optional int64 syncTime = 6;//所有属性的最大时间戳(下次拉取KV时用)。\n optional int32 offlineKickTime = 7;//server超时踢人时间,默认60s\n }\n message RtcRoomInfoOutput{\n optional string roomId = 1;\n repeated ").concat(Pn," roomData = 2;\n optional int32 userCount = 3;\n repeated RtcUserInfo list=4;\n }\n message ").concat(Cn,"{\n required int32 roomType=1;\n optional int32 broadcastType=2;\n optional RtcValueInfo extraInnerData = 3;\n optional bool needSysChatroom = 4; //是否需要同步聊天室\n optional IdentityChangeType identityChangeType = 5; //身份变更类型\n optional JoinType joinType = 6; // 加入房间类型\n repeated ").concat(Pn," innerDatas = 7; //用户内部inner数据,角色或者连麦信息等\n repeated ").concat(Pn," outerDatas = 8; //用户内部outer数据,自定义数据结构RtcInput。\n }\n enum JoinType {\n KICK = 0; //踢前一个设备\n REFUSE = 1; //当前加入拒绝\n COEXIST = 2; //两个设备共存\n }\n message RtcQryInput{\n required bool isInterior=1;\n required targetType target=2;\n repeated string key=3;\n }\n message ").concat(Rn,"{\n repeated ").concat(Pn," outInfo=1;\n }\n message RtcDelDataInput{\n repeated string key=1;\n required bool isInterior=2;\n required targetType target=3;\n }\n message ").concat(Nn,"{\n required bool interior=1;\n required targetType target=2;\n repeated string key=3;\n optional string objectName=4;\n optional string content=5;\n }\n message ").concat(An,"{\n required bool interior=1;\n required targetType target=2;\n required string key=3;\n required string value=4;\n optional string objectName=5;\n optional string content=6;\n }\n message ").concat(Sn," {\n repeated ").concat(Pn," valueInfo = 1;\n required string objectName = 2;\n repeated ").concat(Pn," content = 3;\n }\n message RtcOutput\n {\n optional int32 nothing=1;\n }\n message ").concat(On,"{\n required string rtcToken=1;\n }\n enum targetType {\n ROOM =1 ;\n PERSON = 2;\n }\n message ").concat(bn,"{\n required targetType target=1;\n repeated ").concat(Pn," valueInfo=2;\n optional string objectName=3;\n optional string content=4;\n }\n message ").concat(Dn,"{\n repeated string userId = 1;\n }\n message ").concat(Ln,"{\n repeated RtcUserInfo user = 1;\n }\n message ").concat(tn,"{\n required int32 nothing = 1;\n }\n message ").concat(nn,"{\n required int64 inboxTime = 1;\n required int64 sendboxTime = 2;\n required int64 totalUnreadCount = 3;\n }\n message ").concat(yn,"\n {\n required ChannelType type = 1;\n required int64 msgTime = 2;\n required string channelId = 3;\n optional string busChannel = 4;//该消息所属会话的业务标识\n }\n message SessionMsgReadOutput\n {\n optional int32 nothing=1;\n }\n message ").concat(fn,"\n {\n repeated SessionInfo sessions = 1;\n }\n message ").concat(hn,"\n {\n required ChannelType type = 1;\n required string channelId = 2;\n optional string busChannel = 3;//所属会话业务标识\n }\n message ").concat(dn,"\n {\n optional int32 nothing=1;\n }\n message ").concat(gn,"\n {\n optional ChannelType type = 1;\n optional string conversationId = 2;\n repeated DeleteMsg msgs = 3;\n optional string busChannel = 4; //该消息所属会话的业务标识,限制20字符以内\n }\n message DeleteMsg\n {\n optional string msgId = 1;\n optional int64 msgDataTime = 2;\n optional int32 direct = 3;\n }\n message ChrmKVEntity {\n required string key = 1;\n required string value = 2;\n optional int32 status = 3;\n optional int64 timestamp = 4;\n optional string uid = 5;\n optional int64 version = 6;\n }\n message ").concat(Fn," {\n required ChrmKVEntity entry = 1;\n optional bool bNotify = 2;\n optional UpStreamMessage notification = 3;\n optional ChannelType type = 4;\n }\n message ").concat(Qn," {\n repeated ChrmKVEntity entry = 1;\n optional bool bNotify = 2;\n optional UpStreamMessage notification = 3;\n optional ChannelType type = 4;\n }\n message ").concat($n," {\n repeated ChrmKVEntity entry = 1;\n optional bool bNotify = 2;\n optional UpStreamMessage notification = 3;\n optional ChannelType type = 4;\n }\n message ").concat(Kn," {\n repeated ChrmKVEntity entries = 1;\n optional bool bFullUpdate = 2;\n optional int64 syncTime = 3;\n }\n message ChrmKVSVersionEntity {\n optional int64 version = 1;\n optional string key = 2;\n }\n\n message ").concat(Wn," {\n repeated ChrmKVSOutputEntity errorKeys = 1;\n repeated ChrmKVSVersionEntity keysVersion = 2;\n }\n message ").concat(Zn,"\n {\n optional string key = 1;\n optional int32 errorCode = 2;\n }\n message ").concat(Jn," {\n required int64 timestamp = 1;\n }\n message ").concat(Xn," {\n required int64 version=1;\n required string value=2;\n }\n message ").concat(er," {\n required int64 version=1;\n required bool reserve=2;\n }\n message ").concat(tr," {\n required int64 version=1;\n optional bool reserve=2;\n }\n message ").concat(nr," {\n repeated UserSettingItem items = 1;\n required int64 version=2;\n }\n message UserSettingItem {\n required string targetId= 1;\n required ChannelType type = 2;\n required string key = 4;\n required bytes value = 5;\n required int64 version=6;\n required int32 status=7;\n repeated SessionTagItem tags= 8;\n }\n message ").concat(ir," {\n required int64 time = 1;\n }\n message ").concat(or," {\n required int64 version=1;\n repeated SessionState state= 2;\n }\n message ").concat(sr," {\n required ChannelType type = 1;\n required string channelId = 2;\n optional int64 time = 3;\n repeated SessionStateItem stateItem = 4;\n optional string busChannel = 5;//该消息所属会话的业务标识\n }\n message ").concat(ar," {\n required SessionStateType sessionStateType = 1;\n required string value = 2;\n repeated SessionTagItem tags = 3;\n }\n enum SessionStateType {\n IsSilent = 1;\n IsTop = 2;\n Tags = 3;\n }\n message ").concat(cr," {\n required int64 version=1;\n repeated SessionState state= 2;\n }\n message ").concat(lr," {\n optional string busChannel = 1;\n }\n message ").concat(fr,"{\n optional string busChannel = 1;\n required int32 unpushLevel = 2;\n }\n message ").concat(hr," {\n required string groupId = 1;\n optional string busChannel = 2;\n required int32 unpushLevel = 3;\n }\n message ").concat(ur," {\n required int64 version=1;\n }\n message ").concat(dr," {\n repeated string msgId=1; //已读消息ID\n optional string channelId = 2; // 该消息所属会话的业务标识\n }\n message ").concat(pr," {\n repeated string msgId=1; //已读消息ID\n optional string channelId = 2; // 该消息所属会话的业务标识\n }\n message ").concat(gr," {\n required int32 totalMemberNum = 1;//群内总人数\n repeated GrpMsgReadUser list = 2;//已读用户列表(list复类型)\n }\n message ").concat(vr," {\n required int64 readTime = 1;//已读时间\n required string userId = 2;//已读用户id\n }\n message ").concat(yr," {\n required int64 version=1;\n repeated SessionTagItem tags=2;\n }\n message ").concat(mr," {\n required string tagId=1;\n optional string name=2;\n optional int64 createdTime=3;\n optional bool isTop=4;\n }\n message ").concat(Ir," {\n required int64 version=1;\n repeated SessionTagItem tags=2;\n }\n message ").concat(_r," {\n repeated string tagId=1;\n }\n message ").concat(rr," {\n required int64 version=1;\n required bool reserve=2;\n }\n message ").concat(Tr,' {\n required string sdkInfo=1; // 用户集成的 sdk 信息,json 格式 {"web-rtc": "4.0.3.7"}\n }\n message ').concat(Cr,"\n {\n optional int32 nothing=1; //占位\n }\n message ").concat(Pr," \n {\n required int32 type= 1; //(通知类型 1:rtc房间状态KV变更通知)\n optional int64 time= 2; //消息产生时间\n optional string roomId=3; //主播房间id\n }\n message ").concat(jr,"\n {\n required int64 timestamp = 1;\n required string roomId = 2;\n }\n message ").concat(kr,"\n {\n repeated RtcKVEntity entries = 1;\n optional bool bFullUpdate = 2;\n optional int64 syncTime = 3; \n }\n message RtcKVEntity \n {\n required string key = 1;\n required string value = 2;\n optional int32 status = 3;\n optional int64 timestamp = 4;\n optional string uid = 5;\n }\n enum IdentityChangeType \n {\n AnchorToViewer = 1; //1为主播变观众\n ViewerToAnchor = 2; //2为观众变主播\n }\n message ").concat(zr,"\n {\n required string userId = 1;\n }\n message ").concat(Gr,"\n {\n repeated RtcJoinedInfo info = 1;\n }\n message RtcJoinedInfo\n {\n required string deviceId = 1; //设备ID\n required string roomId = 2; //加入的房间ID\n optional int64 joinTime = 3; //加入的时间\n }\n message ").concat(Br,"\n {\n required string rtcToken=1;\n repeated RtcKVEntity entries = 2;//KV属性对象集合\n optional int64 syncTime = 3;//所有属性的最大时间戳(下次拉取KV时用)。\n }\n message ").concat(Vr,"\n {\n required string invitedUserId=1; //被邀请的人的uid\n optional int32 timeoutTime=2; //邀请超时时间(秒),默认三十秒\n required string invitedRoomId=3; //被邀请的房间\n required string inviteInfo=4; //邀请的信息(包含邀请人,被邀请人,各自userid)客户端定义好.协议栈和server透传\n required string inviteSessionId= 5; //客户端保证唯一性(建议roomid_userid_时间戳_随机数)\n }\n message ").concat(Yr,"\n {\n required string invitedUserId=1; //被邀请的人的uid\n required string invitedRoomId=2; //被邀请的房间\n required string inviteInfo=3; //取消邀请的信息(包含邀请人,被邀请人,各自userid)客户端定义好.协议栈和server透传\n required string inviteSessionId=4; //邀请的sessionId,客户端发起邀请时产生\n }\n message ").concat(Hr,"\n {\n required string inviteUserId=1; //邀请的人的uid\n required int32 answerCode=2; //是否接受连麦邀请.0为拒绝,1为接受\n required string inviteRoomId=3; //邀请的房间\n required string inviteSessionId=4; //邀请的sessionId\n required string content=5; //需要转发的content\n optional string key=6; //如果接受的话,需要加这个字段,放在room级别的k和v,新加入房间的能拉取到\n optional string value=7; //如果接受的话,需要加这个字段,放在room级别的k和v,新加入房间的能拉取到\n }\n message ").concat(Fr,"\n {\n required string inviteRoomId=1; //邀请的房间\n required string inviteSessionId=2; //邀请的sessionId\n required string inviteContent=3; //结束连麦的信息(需要透传给房间内其他人)\n repeated string inviteRoomKeys=4; //需要删除连麦的信息的key\n }\n message ").concat(Mr,"\n {\n required int64 syncTime = 1;//同步时间戳\n optional bool isEraseMsgContent = 2;//拉取会话时,是否屏蔽掉消息内容\n }\n message ").concat(Er,"\n {\n required int64 syncTime = 1;//同步时间戳\n }\n message ").concat(Ar,"\n {\n required string fromUserId = 1;//(谁发的)\n required string targetId = 2;// 目标Id(超级群Id)\n required ChannelType type = 3;//发送类型如:(P2P,GROUP,ULTRAGROUP)\n required string msgUID = 4; // 扩展消息的内容体\n required int64 msgTime = 5; //原始消息时间\n optional string busChannel = 6; // 该消息所属会话的业务标识,限制20字符以内\n optional string content = 7; // 即extraContent消息扩展内容,下表格说明\n }\n message ").concat(Sr," //查询入参\n {\n required int64 syncTime = 1;//同步时间戳\n }\n message ").concat(br," //应答结果\n {\n repeated MsgChange list = 1; //变更\n required int64 syncTime = 2; //同步时间(用于下次同步入参)\n optional bool hasNext = 3 ;\n }\n message ").concat(Nr," //变更详情\n {\n required string targetId = 1; // 目标Id(超级群Id)\n required ChannelType type = 2; // 会话类型\n required int64 time = 3; // 变更时间\n required int32 changeType = 4; // 消息变更类型(1:扩展,2:修改,3:撤回,4:频道变更)\n required string msgUID = 5; // 消息ID\n required int64 msgTime = 6; // 消息时间\n optional string busChannel = 7; // 频道ID\n optional bool isAdmin = 8; //是否为管理员,默认为 0, 设为 1 时, IMKit 收到此条消息后,小灰条默认显示为“管理员 撤回了一条消息”。\n optional bool isDel = 9; //默认为 0 撤回该条消息同时,用户端将该条消息删除并替换为一条小灰条撤回提示消息;为 1 时,该条消息删除后,不替换为小灰条提示消息。\n optional string operatorId = 10; // 消息变更的操作人 Id; subChangeType 为 5 时,operatorId 表示被踢出超级群私有频道白名单的用户\n optional int32 subChangeType = 11; // 当 changeType 为 4 时,该参数有意义; 1: 删除频道; 2: 公有频道变为私有频道; 3: 私有频道变为公有频道; 4: 私有频道成员变更-加入, SDK 不通知业务层; 5: 私有频道成员变更-退出; 6: 公有频道变为私有频道,当前用户不在白名单中;\n }\n message ").concat(wr," //请求\n {\n required string targetId = 1; // 目标Id(超级群Id)\n required ChannelType type = 2; // 会话类型\n repeated MessageQueryInfo query = 3; //\n }\n message MessageQueryInfo\n {\n required int64 msgTime = 1; // 消息时间\n required string msgUID = 2; // 消息ID\n optional string busChannel = 3; // 频道ID\n }\n message ").concat(Rr," //应答\n {\n repeated DownStreamMessage list = 1;//消息\n }\n message ").concat(Dr," //客户端发送\n {\n optional string targetId = 1;// targetId\n optional ChannelType type = 2;//发送会话类型如:(P2P,GROUP) \n optional int32 opType = 3; //0 , 正在输入, 1 正在XXX \n optional string busChannel = 4; // 频道(channelId,可以为空)\n }\n message ").concat(Lr," //服务端发送\n {\n optional ChannelType type = 1;//发送会话类型如(P2P,GROUP) \n optional int64 notifyType = 2; //0x1 表示明细, 0x2 表示汇总 0x3 表示明细+汇总\n repeated OperateInfo info = 3 ; //明细列表 当notifyType 为 1和3时,有效\n repeated OperateSummary summary = 4 ; //汇总列表, 当notifyType 为2和3 时,有效\n }\n message ").concat(Ur," {\n // XX 正在做什么\n optional string targetId = 1; // 超级群Id 会话id\n optional string busChannel = 2; // 频道(channelId,可以为空)\n optional string userId = 3; // userId\n optional int32 opType = 4; //0 , 正在输入, 1 正在XX \n optional int64 optime = 5; //服务端收到用户操作的上行时间. \n }\n \n message ").concat(xr," {\n // 几个人 正在干什么\n optional string targetId = 1; // 超级群Id 会话id\n optional string busChannel = 2; // 频道(channelId,可以为空)\n optional int32 count = 3; // 操作人数\n optional int32 opType = 4; //0, 正在输入, 1 正在XX \n }\n message ").concat(Qr,"\n {\n required string rtcRoomId= 1; //rtc房间ID;\n }\n message ").concat($r,"\n {\n required int32 nothing = 1; //用于占位\n }\n}\n"),si=(Jr=oi,Xr=function(){function e(e,t,n){this.low=0|e,this.high=0|t,this.unsigned=!!n}function t(e){return!0===(e&&e.__isLong__)}function n(e,t){var n,r,o;return t?(o=(e>>>=0)>=0&&e<256)&&(r=c[e])?r:(n=i(e,(0|e)<0?-1:0,!0),o&&(c[e]=n),n):(o=(e|=0)>=-128&&e<128)&&(r=a[e])?r:(n=i(e,e<0?-1:0,!1),o&&(a[e]=n),n)}function r(e,t){if(isNaN(e)||!isFinite(e))return t?g:p;if(t){if(e<0)return g;if(e>=f)return _}else{if(-h>=e)return T;if(e+1>=h)return I}return e<0?r(-e,t).neg():i(0|e%l,0|e/l,t)}function i(t,n,r){return new e(t,n,r)}function o(e,t,n){var i,s,a,c,l,f,h;if(0===e.length)throw Error("empty string");if("NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return p;if("number"==typeof t?(n=t,t=!1):t=!!t,(n=n||10)<2||n>36)throw RangeError("radix");if((i=e.indexOf("-"))>0)throw Error("interior hyphen");if(0===i)return o(e.substring(1),t,n).neg();for(s=r(u(n,8)),a=p,c=0;c<e.length;c+=8)l=Math.min(8,e.length-c),f=parseInt(e.substring(c,c+l),n),l<8?(h=r(u(n,l)),a=a.mul(h).add(r(f))):a=(a=a.mul(s)).add(r(f));return a.unsigned=t,a}function s(t){return t instanceof e?t:"number"==typeof t?r(t):"string"==typeof t?o(t):i(t.low,t.high,t.unsigned)}var a,c,u,l,f,h,d,p,g,v,y,m,I,_,T,C;return e.prototype.__isLong__,Object.defineProperty(e.prototype,"__isLong__",{value:!0,enumerable:!1,configurable:!1}),e.isLong=t,a={},c={},e.fromInt=n,e.fromNumber=r,e.fromBits=i,u=Math.pow,e.fromString=o,e.fromValue=s,h=(f=(l=4294967296)*l)/2,d=n(16777216),p=n(0),e.ZERO=p,g=n(0,!0),e.UZERO=g,v=n(1),e.ONE=v,y=n(1,!0),e.UONE=y,m=n(-1),e.NEG_ONE=m,I=i(-1,2147483647,!1),e.MAX_VALUE=I,_=i(-1,-1,!0),e.MAX_UNSIGNED_VALUE=_,T=i(0,-2147483648,!1),e.MIN_VALUE=T,(C=e.prototype).toInt=function(){return this.unsigned?this.low>>>0:this.low},C.toNumber=function(){return this.unsigned?(this.high>>>0)*l+(this.low>>>0):this.high*l+(this.low>>>0)},C.toString=function(e){var t,n,i,o,s,a,c,l;if((e=e||10)<2||e>36)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative())return this.eq(T)?(t=r(e),i=(n=this.div(t)).mul(t).sub(this),n.toString(e)+i.toInt().toString(e)):"-"+this.neg().toString(e);for(o=r(u(e,6),this.unsigned),s=this,a="";;){if(c=s.div(o),l=(s.sub(c.mul(o)).toInt()>>>0).toString(e),(s=c).isZero())return l+a;for(;l.length<6;)l="0"+l;a=""+l+a}},C.getHighBits=function(){return this.high},C.getHighBitsUnsigned=function(){return this.high>>>0},C.getLowBits=function(){return this.low},C.getLowBitsUnsigned=function(){return this.low>>>0},C.getNumBitsAbs=function(){var e,t;if(this.isNegative())return this.eq(T)?64:this.neg().getNumBitsAbs();for(e=0!=this.high?this.high:this.low,t=31;t>0&&0==(e&1<<t);t--);return 0!=this.high?t+33:t+1},C.isZero=function(){return 0===this.high&&0===this.low},C.isNegative=function(){return!this.unsigned&&this.high<0},C.isPositive=function(){return this.unsigned||this.high>=0},C.isOdd=function(){return 1==(1&this.low)},C.isEven=function(){return 0==(1&this.low)},C.equals=function(e){return t(e)||(e=s(e)),(this.unsigned===e.unsigned||this.high>>>31!=1||e.high>>>31!=1)&&this.high===e.high&&this.low===e.low},C.eq=C.equals,C.notEquals=function(e){return!this.eq(e)},C.neq=C.notEquals,C.lessThan=function(e){return this.comp(e)<0},C.lt=C.lessThan,C.lessThanOrEqual=function(e){return this.comp(e)<=0},C.lte=C.lessThanOrEqual,C.greaterThan=function(e){return this.comp(e)>0},C.gt=C.greaterThan,C.greaterThanOrEqual=function(e){return this.comp(e)>=0},C.gte=C.greaterThanOrEqual,C.compare=function(e){if(t(e)||(e=s(e)),this.eq(e))return 0;var n=this.isNegative(),r=e.isNegative();return n&&!r?-1:!n&&r?1:this.unsigned?e.high>>>0>this.high>>>0||e.high===this.high&&e.low>>>0>this.low>>>0?-1:1:this.sub(e).isNegative()?-1:1},C.comp=C.compare,C.negate=function(){return!this.unsigned&&this.eq(T)?T:this.not().add(v)},C.neg=C.negate,C.add=function(e){var n,r,o,a,c,u,l,f,h,d,p;return t(e)||(e=s(e)),n=this.high>>>16,r=65535&this.high,o=this.low>>>16,a=65535&this.low,c=e.high>>>16,u=65535&e.high,l=e.low>>>16,f=0,h=0,d=0,p=0,d+=(p+=a+(65535&e.low))>>>16,h+=(d+=o+l)>>>16,f+=(h+=r+u)>>>16,f+=n+c,i((d&=65535)<<16|(p&=65535),(f&=65535)<<16|(h&=65535),this.unsigned)},C.subtract=function(e){return t(e)||(e=s(e)),this.add(e.neg())},C.sub=C.subtract,C.multiply=function(e){var n,o,a,c,u,l,f,h,g,v,y,m;return this.isZero()?p:(t(e)||(e=s(e)),e.isZero()?p:this.eq(T)?e.isOdd()?T:p:e.eq(T)?this.isOdd()?T:p:this.isNegative()?e.isNegative()?this.neg().mul(e.neg()):this.neg().mul(e).neg():e.isNegative()?this.mul(e.neg()).neg():this.lt(d)&&e.lt(d)?r(this.toNumber()*e.toNumber(),this.unsigned):(n=this.high>>>16,o=65535&this.high,a=this.low>>>16,c=65535&this.low,u=e.high>>>16,l=65535&e.high,f=e.low>>>16,g=0,v=0,y=0,m=0,y+=(m+=c*(h=65535&e.low))>>>16,v+=(y+=a*h)>>>16,y&=65535,v+=(y+=c*f)>>>16,g+=(v+=o*h)>>>16,v&=65535,g+=(v+=a*f)>>>16,v&=65535,g+=(v+=c*l)>>>16,g+=n*h+o*f+a*l+c*u,i((y&=65535)<<16|(m&=65535),(g&=65535)<<16|(v&=65535),this.unsigned)))},C.mul=C.multiply,C.divide=function(e){var n,i,o,a,c,l,f;if(t(e)||(e=s(e)),e.isZero())throw Error("division by zero");if(this.isZero())return this.unsigned?g:p;if(this.unsigned){if(e.unsigned||(e=e.toUnsigned()),e.gt(this))return g;if(e.gt(this.shru(1)))return y;o=g}else{if(this.eq(T))return e.eq(v)||e.eq(m)?T:e.eq(T)?v:(n=this.shr(1).div(e).shl(1)).eq(p)?e.isNegative()?v:m:(i=this.sub(e.mul(n)),o=n.add(i.div(e)));if(e.eq(T))return this.unsigned?g:p;if(this.isNegative())return e.isNegative()?this.neg().div(e.neg()):this.neg().div(e).neg();if(e.isNegative())return this.div(e.neg()).neg();o=p}for(i=this;i.gte(e);){for(n=Math.max(1,Math.floor(i.toNumber()/e.toNumber())),c=(a=Math.ceil(Math.log(n)/Math.LN2))<=48?1:u(2,a-48),f=(l=r(n)).mul(e);f.isNegative()||f.gt(i);)f=(l=r(n-=c,this.unsigned)).mul(e);l.isZero()&&(l=v),o=o.add(l),i=i.sub(f)}return o},C.div=C.divide,C.modulo=function(e){return t(e)||(e=s(e)),this.sub(this.div(e).mul(e))},C.mod=C.modulo,C.not=function(){return i(~this.low,~this.high,this.unsigned)},C.and=function(e){return t(e)||(e=s(e)),i(this.low&e.low,this.high&e.high,this.unsigned)},C.or=function(e){return t(e)||(e=s(e)),i(this.low|e.low,this.high|e.high,this.unsigned)},C.xor=function(e){return t(e)||(e=s(e)),i(this.low^e.low,this.high^e.high,this.unsigned)},C.shiftLeft=function(e){return t(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?i(this.low<<e,this.high<<e|this.low>>>32-e,this.unsigned):i(0,this.low<<e-32,this.unsigned)},C.shl=C.shiftLeft,C.shiftRight=function(e){return t(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?i(this.low>>>e|this.high<<32-e,this.high>>e,this.unsigned):i(this.high>>e-32,this.high>=0?0:-1,this.unsigned)},C.shr=C.shiftRight,C.shiftRightUnsigned=function(e){var n;return t(e)&&(e=e.toInt()),0==(e&=63)?this:(n=this.high,e<32?i(this.low>>>e|n<<32-e,n>>>e,this.unsigned):i(32===e?n:n>>>e-32,0,this.unsigned))},C.shru=C.shiftRightUnsigned,C.toSigned=function(){return this.unsigned?i(this.low,this.high,!1):this},C.toUnsigned=function(){return this.unsigned?this:i(this.low,this.high,!0)},C.toBytes=function(e){return e?this.toBytesLE():this.toBytesBE()},C.toBytesLE=function(){var e=this.high,t=this.low;return[255&t,255&t>>>8,255&t>>>16,255&t>>>24,255&e,255&e>>>8,255&e>>>16,255&e>>>24]},C.toBytesBE=function(){var e=this.high,t=this.low;return[255&e>>>24,255&e>>>16,255&e>>>8,255&e,255&t>>>24,255&t>>>16,255&t>>>8,255&t]},e}(),ei=function(e){function t(e){var t=0;return function(){return t<e.length?e.charCodeAt(t++):null}}function n(){var e=[],t=[];return function(){return 0===arguments.length?t.join("")+a.apply(String,e):(e.length+arguments.length>1024&&(t.push(a.apply(String,e)),e.length=0),void Array.prototype.push.apply(e,arguments))}}function r(e,t,n,r,i){var o,s,a=8*i-r-1,c=(1<<a)-1,u=c>>1,l=-7,f=n?i-1:0,h=n?-1:1,d=e[t+f];for(f+=h,o=d&(1<<-l)-1,d>>=-l,l+=a;l>0;o=256*o+e[t+f],f+=h,l-=8);for(s=o&(1<<-l)-1,o>>=-l,l+=r;l>0;s=256*s+e[t+f],f+=h,l-=8);if(0===o)o=1-u;else{if(o===c)return s?NaN:1/0*(d?-1:1);s+=Math.pow(2,r),o-=u}return(d?-1:1)*s*Math.pow(2,o-r)}function i(e,t,n,r,i,o){var s,a,c,u=8*o-i-1,l=(1<<u)-1,f=l>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,p=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||1/0===t?(a=isNaN(t)?1:0,s=l):(s=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-s))<1&&(s--,c*=2),(t+=s+f>=1?h/c:h*Math.pow(2,1-f))*c>=2&&(s++,c/=2),s+f>=l?(a=0,s=l):s+f>=1?(a=(t*c-1)*Math.pow(2,i),s+=f):(a=t*Math.pow(2,f-1)*Math.pow(2,i),s=0));i>=8;e[n+d]=255&a,d+=p,a/=256,i-=8);for(s=s<<i|a,u+=i;u>0;e[n+d]=255&s,d+=p,s/=256,u-=8);e[n+d-p]|=128*g}var o,s,a,c,u,l=function(e,t,n){if(void 0===e&&(e=l.DEFAULT_CAPACITY),void 0===t&&(t=l.DEFAULT_ENDIAN),void 0===n&&(n=l.DEFAULT_NOASSERT),!n){if((e|=0)<0)throw RangeError("Illegal capacity");t=!!t,n=!!n}this.buffer=0===e?s:new ArrayBuffer(e),this.view=0===e?null:new Uint8Array(this.buffer),this.offset=0,this.markedOffset=-1,this.limit=e,this.littleEndian=t,this.noAssert=n};return l.VERSION="5.0.1",l.LITTLE_ENDIAN=!0,l.BIG_ENDIAN=!1,l.DEFAULT_CAPACITY=16,l.DEFAULT_ENDIAN=l.BIG_ENDIAN,l.DEFAULT_NOASSERT=!1,l.Long=e||null,(o=l.prototype).__isByteBuffer__,Object.defineProperty(o,"__isByteBuffer__",{value:!0,enumerable:!1,configurable:!1}),s=new ArrayBuffer(0),a=String.fromCharCode,l.accessor=function(){return Uint8Array},l.allocate=function(e,t,n){return new l(e,t,n)},l.concat=function(e,t,n,r){var i,o,s,a,c,u;for(("boolean"==typeof t||"string"!=typeof t)&&(r=n,n=t,t=void 0),i=0,s=0,a=e.length;a>s;++s)l.isByteBuffer(e[s])||(e[s]=l.wrap(e[s],t)),(o=e[s].limit-e[s].offset)>0&&(i+=o);if(0===i)return new l(0,n,r);for(u=new l(i,n,r),s=0;a>s;)(o=(c=e[s++]).limit-c.offset)<=0||(u.view.set(c.view.subarray(c.offset,c.limit),u.offset),u.offset+=o);return u.limit=u.offset,u.offset=0,u},l.isByteBuffer=function(e){return!0===(e&&e.__isByteBuffer__)},l.type=function(){return ArrayBuffer},l.wrap=function(e,t,n,r){var i,s;if("string"!=typeof t&&(r=n,n=t,t=void 0),"string"==typeof e)switch(void 0===t&&(t="utf8"),t){case"base64":return l.fromBase64(e,n);case"hex":return l.fromHex(e,n);case"binary":return l.fromBinary(e,n);case"utf8":return l.fromUTF8(e,n);case"debug":return l.fromDebug(e,n);default:throw Error("Unsupported encoding: "+t)}if(null===e||"object"!=typeof e)throw TypeError("Illegal buffer");if(l.isByteBuffer(e))return(i=o.clone.call(e)).markedOffset=-1,i;if(e instanceof Uint8Array)i=new l(0,n,r),e.length>0&&(i.buffer=e.buffer,i.offset=e.byteOffset,i.limit=e.byteOffset+e.byteLength,i.view=new Uint8Array(e.buffer));else if(e instanceof ArrayBuffer)i=new l(0,n,r),e.byteLength>0&&(i.buffer=e,i.offset=0,i.limit=e.byteLength,i.view=e.byteLength>0?new Uint8Array(e):null);else{if("[object Array]"!==Object.prototype.toString.call(e))throw TypeError("Illegal buffer");for((i=new l(e.length,n,r)).limit=e.length,s=0;s<e.length;++s)i.view[s]=e[s]}return i},o.writeBitSet=function(e,t){var n,r,i,o,s,a,c=void 0===t;if(c&&(t=this.offset),!this.noAssert){if(!(e instanceof Array))throw TypeError("Illegal BitSet: Not an array");if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}for(r=t,o=(i=e.length)>>3,s=0,t+=this.writeVarint32(i,t);o--;)n=1&!!e[s++]|(1&!!e[s++])<<1|(1&!!e[s++])<<2|(1&!!e[s++])<<3|(1&!!e[s++])<<4|(1&!!e[s++])<<5|(1&!!e[s++])<<6|(1&!!e[s++])<<7,this.writeByte(n,t++);if(i>s){for(a=0,n=0;i>s;)n|=(1&!!e[s++])<<a++;this.writeByte(n,t++)}return c?(this.offset=t,this):t-r},o.readBitSet=function(e){var t,n,r,i,o,s,a,c=void 0===e;for(c&&(e=this.offset),i=(r=(n=this.readVarint32(e)).value)>>3,o=0,s=[],e+=n.length;i--;)t=this.readByte(e++),s[o++]=!!(1&t),s[o++]=!!(2&t),s[o++]=!!(4&t),s[o++]=!!(8&t),s[o++]=!!(16&t),s[o++]=!!(32&t),s[o++]=!!(64&t),s[o++]=!!(128&t);if(r>o)for(a=0,t=this.readByte(e++);r>o;)s[o++]=!!(1&t>>a++);return c&&(this.offset=e),s},o.readBytes=function(e,t){var n,r=void 0===t;if(r&&(t=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+e>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+"+e+") <= "+this.buffer.byteLength)}return n=this.slice(t,t+e),r&&(this.offset+=e),n},o.writeBytes=o.append,o.writeInt8=function(e,t){var n,r=void 0===t;if(r&&(t=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal value: "+e+" (not an integer)");if(e|=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}return(t+=1)>(n=this.buffer.byteLength)&&this.resize((n*=2)>t?n:t),t-=1,this.view[t]=e,r&&(this.offset+=1),this},o.writeByte=o.writeInt8,o.readInt8=function(e){var t,n=void 0===e;if(n&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+1>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+1) <= "+this.buffer.byteLength)}return 128==(128&(t=this.view[e]))&&(t=-(255-t+1)),n&&(this.offset+=1),t},o.readByte=o.readInt8,o.writeUint8=function(e,t){var n,r=void 0===t;if(r&&(t=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal value: "+e+" (not an integer)");if(e>>>=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}return(t+=1)>(n=this.buffer.byteLength)&&this.resize((n*=2)>t?n:t),t-=1,this.view[t]=e,r&&(this.offset+=1),this},o.writeUInt8=o.writeUint8,o.readUint8=function(e){var t,n=void 0===e;if(n&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+1>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+1) <= "+this.buffer.byteLength)}return t=this.view[e],n&&(this.offset+=1),t},o.readUInt8=o.readUint8,o.writeInt16=function(e,t){var n,r=void 0===t;if(r&&(t=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal value: "+e+" (not an integer)");if(e|=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}return(t+=2)>(n=this.buffer.byteLength)&&this.resize((n*=2)>t?n:t),t-=2,this.littleEndian?(this.view[t+1]=(65280&e)>>>8,this.view[t]=255&e):(this.view[t]=(65280&e)>>>8,this.view[t+1]=255&e),r&&(this.offset+=2),this},o.writeShort=o.writeInt16,o.readInt16=function(e){var t,n=void 0===e;if(n&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+2>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+2) <= "+this.buffer.byteLength)}return t=0,this.littleEndian?(t=this.view[e],t|=this.view[e+1]<<8):(t=this.view[e]<<8,t|=this.view[e+1]),32768==(32768&t)&&(t=-(65535-t+1)),n&&(this.offset+=2),t},o.readShort=o.readInt16,o.writeUint16=function(e,t){var n,r=void 0===t;if(r&&(t=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal value: "+e+" (not an integer)");if(e>>>=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}return(t+=2)>(n=this.buffer.byteLength)&&this.resize((n*=2)>t?n:t),t-=2,this.littleEndian?(this.view[t+1]=(65280&e)>>>8,this.view[t]=255&e):(this.view[t]=(65280&e)>>>8,this.view[t+1]=255&e),r&&(this.offset+=2),this},o.writeUInt16=o.writeUint16,o.readUint16=function(e){var t,n=void 0===e;if(n&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+2>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+2) <= "+this.buffer.byteLength)}return t=0,this.littleEndian?(t=this.view[e],t|=this.view[e+1]<<8):(t=this.view[e]<<8,t|=this.view[e+1]),n&&(this.offset+=2),t},o.readUInt16=o.readUint16,o.writeInt32=function(e,t){var n,r=void 0===t;if(r&&(t=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal value: "+e+" (not an integer)");if(e|=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}return(t+=4)>(n=this.buffer.byteLength)&&this.resize((n*=2)>t?n:t),t-=4,this.littleEndian?(this.view[t+3]=255&e>>>24,this.view[t+2]=255&e>>>16,this.view[t+1]=255&e>>>8,this.view[t]=255&e):(this.view[t]=255&e>>>24,this.view[t+1]=255&e>>>16,this.view[t+2]=255&e>>>8,this.view[t+3]=255&e),r&&(this.offset+=4),this},o.writeInt=o.writeInt32,o.readInt32=function(e){var t,n=void 0===e;if(n&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+4>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+4) <= "+this.buffer.byteLength)}return t=0,this.littleEndian?(t=this.view[e+2]<<16,t|=this.view[e+1]<<8,t|=this.view[e],t+=this.view[e+3]<<24>>>0):(t=this.view[e+1]<<16,t|=this.view[e+2]<<8,t|=this.view[e+3],t+=this.view[e]<<24>>>0),t|=0,n&&(this.offset+=4),t},o.readInt=o.readInt32,o.writeUint32=function(e,t){var n,r=void 0===t;if(r&&(t=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal value: "+e+" (not an integer)");if(e>>>=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}return(t+=4)>(n=this.buffer.byteLength)&&this.resize((n*=2)>t?n:t),t-=4,this.littleEndian?(this.view[t+3]=255&e>>>24,this.view[t+2]=255&e>>>16,this.view[t+1]=255&e>>>8,this.view[t]=255&e):(this.view[t]=255&e>>>24,this.view[t+1]=255&e>>>16,this.view[t+2]=255&e>>>8,this.view[t+3]=255&e),r&&(this.offset+=4),this},o.writeUInt32=o.writeUint32,o.readUint32=function(e){var t,n=void 0===e;if(n&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+4>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+4) <= "+this.buffer.byteLength)}return t=0,this.littleEndian?(t=this.view[e+2]<<16,t|=this.view[e+1]<<8,t|=this.view[e],t+=this.view[e+3]<<24>>>0):(t=this.view[e+1]<<16,t|=this.view[e+2]<<8,t|=this.view[e+3],t+=this.view[e]<<24>>>0),n&&(this.offset+=4),t},o.readUInt32=o.readUint32,e&&(o.writeInt64=function(t,n){var r,i,o,s=void 0===n;if(s&&(n=this.offset),!this.noAssert){if("number"==typeof t)t=e.fromNumber(t);else if("string"==typeof t)t=e.fromString(t);else if(!(t&&t instanceof e))throw TypeError("Illegal value: "+t+" (not an integer or Long)");if("number"!=typeof n||n%1!=0)throw TypeError("Illegal offset: "+n+" (not an integer)");if((n>>>=0)<0||n+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+n+" (+0) <= "+this.buffer.byteLength)}return"number"==typeof t?t=e.fromNumber(t):"string"==typeof t&&(t=e.fromString(t)),(n+=8)>(r=this.buffer.byteLength)&&this.resize((r*=2)>n?r:n),n-=8,i=t.low,o=t.high,this.littleEndian?(this.view[n+3]=255&i>>>24,this.view[n+2]=255&i>>>16,this.view[n+1]=255&i>>>8,this.view[n]=255&i,n+=4,this.view[n+3]=255&o>>>24,this.view[n+2]=255&o>>>16,this.view[n+1]=255&o>>>8,this.view[n]=255&o):(this.view[n]=255&o>>>24,this.view[n+1]=255&o>>>16,this.view[n+2]=255&o>>>8,this.view[n+3]=255&o,n+=4,this.view[n]=255&i>>>24,this.view[n+1]=255&i>>>16,this.view[n+2]=255&i>>>8,this.view[n+3]=255&i),s&&(this.offset+=8),this},o.writeLong=o.writeInt64,o.readInt64=function(t){var n,r,i,o=void 0===t;if(o&&(t=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+8>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+8) <= "+this.buffer.byteLength)}return n=0,r=0,this.littleEndian?(n=this.view[t+2]<<16,n|=this.view[t+1]<<8,n|=this.view[t],n+=this.view[t+3]<<24>>>0,t+=4,r=this.view[t+2]<<16,r|=this.view[t+1]<<8,r|=this.view[t],r+=this.view[t+3]<<24>>>0):(r=this.view[t+1]<<16,r|=this.view[t+2]<<8,r|=this.view[t+3],r+=this.view[t]<<24>>>0,t+=4,n=this.view[t+1]<<16,n|=this.view[t+2]<<8,n|=this.view[t+3],n+=this.view[t]<<24>>>0),i=new e(n,r,!1),o&&(this.offset+=8),i},o.readLong=o.readInt64,o.writeUint64=function(t,n){var r,i,o,s=void 0===n;if(s&&(n=this.offset),!this.noAssert){if("number"==typeof t)t=e.fromNumber(t);else if("string"==typeof t)t=e.fromString(t);else if(!(t&&t instanceof e))throw TypeError("Illegal value: "+t+" (not an integer or Long)");if("number"!=typeof n||n%1!=0)throw TypeError("Illegal offset: "+n+" (not an integer)");if((n>>>=0)<0||n+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+n+" (+0) <= "+this.buffer.byteLength)}return"number"==typeof t?t=e.fromNumber(t):"string"==typeof t&&(t=e.fromString(t)),(n+=8)>(r=this.buffer.byteLength)&&this.resize((r*=2)>n?r:n),n-=8,i=t.low,o=t.high,this.littleEndian?(this.view[n+3]=255&i>>>24,this.view[n+2]=255&i>>>16,this.view[n+1]=255&i>>>8,this.view[n]=255&i,n+=4,this.view[n+3]=255&o>>>24,this.view[n+2]=255&o>>>16,this.view[n+1]=255&o>>>8,this.view[n]=255&o):(this.view[n]=255&o>>>24,this.view[n+1]=255&o>>>16,this.view[n+2]=255&o>>>8,this.view[n+3]=255&o,n+=4,this.view[n]=255&i>>>24,this.view[n+1]=255&i>>>16,this.view[n+2]=255&i>>>8,this.view[n+3]=255&i),s&&(this.offset+=8),this},o.writeUInt64=o.writeUint64,o.readUint64=function(t){var n,r,i,o=void 0===t;if(o&&(t=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+8>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+8) <= "+this.buffer.byteLength)}return n=0,r=0,this.littleEndian?(n=this.view[t+2]<<16,n|=this.view[t+1]<<8,n|=this.view[t],n+=this.view[t+3]<<24>>>0,t+=4,r=this.view[t+2]<<16,r|=this.view[t+1]<<8,r|=this.view[t],r+=this.view[t+3]<<24>>>0):(r=this.view[t+1]<<16,r|=this.view[t+2]<<8,r|=this.view[t+3],r+=this.view[t]<<24>>>0,t+=4,n=this.view[t+1]<<16,n|=this.view[t+2]<<8,n|=this.view[t+3],n+=this.view[t]<<24>>>0),i=new e(n,r,!0),o&&(this.offset+=8),i},o.readUInt64=o.readUint64),o.writeFloat32=function(e,t){var n,r=void 0===t;if(r&&(t=this.offset),!this.noAssert){if("number"!=typeof e)throw TypeError("Illegal value: "+e+" (not a number)");if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}return(t+=4)>(n=this.buffer.byteLength)&&this.resize((n*=2)>t?n:t),t-=4,i(this.view,e,t,this.littleEndian,23,4),r&&(this.offset+=4),this},o.writeFloat=o.writeFloat32,o.readFloat32=function(e){var t,n=void 0===e;if(n&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+4>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+4) <= "+this.buffer.byteLength)}return t=r(this.view,e,this.littleEndian,23,4),n&&(this.offset+=4),t},o.readFloat=o.readFloat32,o.writeFloat64=function(e,t){var n,r=void 0===t;if(r&&(t=this.offset),!this.noAssert){if("number"!=typeof e)throw TypeError("Illegal value: "+e+" (not a number)");if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}return(t+=8)>(n=this.buffer.byteLength)&&this.resize((n*=2)>t?n:t),t-=8,i(this.view,e,t,this.littleEndian,52,8),r&&(this.offset+=8),this},o.writeDouble=o.writeFloat64,o.readFloat64=function(e){var t,n=void 0===e;if(n&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+8>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+8) <= "+this.buffer.byteLength)}return t=r(this.view,e,this.littleEndian,52,8),n&&(this.offset+=8),t},o.readDouble=o.readFloat64,l.MAX_VARINT32_BYTES=5,l.calculateVarint32=function(e){return(e>>>=0)<128?1:e<16384?2:1<<21>e?3:1<<28>e?4:5},l.zigZagEncode32=function(e){return((e|=0)<<1^e>>31)>>>0},l.zigZagDecode32=function(e){return 0|e>>>1^-(1&e)},o.writeVarint32=function(e,t){var n,r,i,o=void 0===t;if(o&&(t=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal value: "+e+" (not an integer)");if(e|=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}for((t+=r=l.calculateVarint32(e))>(i=this.buffer.byteLength)&&this.resize((i*=2)>t?i:t),t-=r,e>>>=0;e>=128;)n=128|127&e,this.view[t++]=n,e>>>=7;return this.view[t++]=e,o?(this.offset=t,this):r},o.writeVarint32ZigZag=function(e,t){return this.writeVarint32(l.zigZagEncode32(e),t)},o.readVarint32=function(e){var t,n,r,i,o=void 0===e;if(o&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+1>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+1) <= "+this.buffer.byteLength)}n=0,r=0;do{if(!this.noAssert&&e>this.limit)throw(i=Error("Truncated")).truncated=!0,i;t=this.view[e++],n<5&&(r|=(127&t)<<7*n),++n}while(0!=(128&t));return r|=0,o?(this.offset=e,r):{value:r,length:n}},o.readVarint32ZigZag=function(e){var t=this.readVarint32(e);return"object"==typeof t?t.value=l.zigZagDecode32(t.value):t=l.zigZagDecode32(t),t},e&&(l.MAX_VARINT64_BYTES=10,l.calculateVarint64=function(t){"number"==typeof t?t=e.fromNumber(t):"string"==typeof t&&(t=e.fromString(t));var n=t.toInt()>>>0,r=t.shiftRightUnsigned(28).toInt()>>>0,i=t.shiftRightUnsigned(56).toInt()>>>0;return 0==i?0==r?n<16384?n<128?1:2:1<<21>n?3:4:r<16384?r<128?5:6:1<<21>r?7:8:i<128?9:10},l.zigZagEncode64=function(t){return"number"==typeof t?t=e.fromNumber(t,!1):"string"==typeof t?t=e.fromString(t,!1):!1!==t.unsigned&&(t=t.toSigned()),t.shiftLeft(1).xor(t.shiftRight(63)).toUnsigned()},l.zigZagDecode64=function(t){return"number"==typeof t?t=e.fromNumber(t,!1):"string"==typeof t?t=e.fromString(t,!1):!1!==t.unsigned&&(t=t.toSigned()),t.shiftRightUnsigned(1).xor(t.and(e.ONE).toSigned().negate()).toSigned()},o.writeVarint64=function(t,n){var r,i,o,s,a,c=void 0===n;if(c&&(n=this.offset),!this.noAssert){if("number"==typeof t)t=e.fromNumber(t);else if("string"==typeof t)t=e.fromString(t);else if(!(t&&t instanceof e))throw TypeError("Illegal value: "+t+" (not an integer or Long)");if("number"!=typeof n||n%1!=0)throw TypeError("Illegal offset: "+n+" (not an integer)");if((n>>>=0)<0||n+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+n+" (+0) <= "+this.buffer.byteLength)}switch("number"==typeof t?t=e.fromNumber(t,!1):"string"==typeof t?t=e.fromString(t,!1):!1!==t.unsigned&&(t=t.toSigned()),r=l.calculateVarint64(t),i=t.toInt()>>>0,o=t.shiftRightUnsigned(28).toInt()>>>0,s=t.shiftRightUnsigned(56).toInt()>>>0,(n+=r)>(a=this.buffer.byteLength)&&this.resize((a*=2)>n?a:n),n-=r,r){case 10:this.view[n+9]=1&s>>>7;case 9:this.view[n+8]=9!==r?128|s:127&s;case 8:this.view[n+7]=8!==r?128|o>>>21:127&o>>>21;case 7:this.view[n+6]=7!==r?128|o>>>14:127&o>>>14;case 6:this.view[n+5]=6!==r?128|o>>>7:127&o>>>7;case 5:this.view[n+4]=5!==r?128|o:127&o;case 4:this.view[n+3]=4!==r?128|i>>>21:127&i>>>21;case 3:this.view[n+2]=3!==r?128|i>>>14:127&i>>>14;case 2:this.view[n+1]=2!==r?128|i>>>7:127&i>>>7;case 1:this.view[n]=1!==r?128|i:127&i}return c?(this.offset+=r,this):r},o.writeVarint64ZigZag=function(e,t){return this.writeVarint64(l.zigZagEncode64(e),t)},o.readVarint64=function(t){var n,r,i,o,s,a,c=void 0===t;if(c&&(t=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+1>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+1) <= "+this.buffer.byteLength)}if(n=t,r=0,i=0,o=0,s=0,r=127&(s=this.view[t++]),128&s&&(r|=(127&(s=this.view[t++]))<<7,(128&s||this.noAssert&&void 0===s)&&(r|=(127&(s=this.view[t++]))<<14,(128&s||this.noAssert&&void 0===s)&&(r|=(127&(s=this.view[t++]))<<21,(128&s||this.noAssert&&void 0===s)&&(i=127&(s=this.view[t++]),(128&s||this.noAssert&&void 0===s)&&(i|=(127&(s=this.view[t++]))<<7,(128&s||this.noAssert&&void 0===s)&&(i|=(127&(s=this.view[t++]))<<14,(128&s||this.noAssert&&void 0===s)&&(i|=(127&(s=this.view[t++]))<<21,(128&s||this.noAssert&&void 0===s)&&(o=127&(s=this.view[t++]),(128&s||this.noAssert&&void 0===s)&&(o|=(127&(s=this.view[t++]))<<7,128&s||this.noAssert&&void 0===s))))))))))throw Error("Buffer overrun");return a=e.fromBits(r|i<<28,i>>>4|o<<24,!1),c?(this.offset=t,a):{value:a,length:t-n}},o.readVarint64ZigZag=function(t){var n=this.readVarint64(t);return n&&n.value instanceof e?n.value=l.zigZagDecode64(n.value):n=l.zigZagDecode64(n),n}),o.writeCString=function(e,n){var r,i,o,s=void 0===n;if(s&&(n=this.offset),i=e.length,!this.noAssert){if("string"!=typeof e)throw TypeError("Illegal str: Not a string");for(r=0;i>r;++r)if(0===e.charCodeAt(r))throw RangeError("Illegal str: Contains NULL-characters");if("number"!=typeof n||n%1!=0)throw TypeError("Illegal offset: "+n+" (not an integer)");if((n>>>=0)<0||n+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+n+" (+0) <= "+this.buffer.byteLength)}return i=u.calculateUTF16asUTF8(t(e))[1],n+=i+1,o=this.buffer.byteLength,n>o&&this.resize((o*=2)>n?o:n),n-=i+1,u.encodeUTF16toUTF8(t(e),function(e){this.view[n++]=e}.bind(this)),this.view[n++]=0,s?(this.offset=n,this):i},o.readCString=function(e){var t,r,i,o=void 0===e;if(o&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+1>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+1) <= "+this.buffer.byteLength)}return t=e,i=-1,u.decodeUTF8toUTF16(function(){if(0===i)return null;if(e>=this.limit)throw RangeError("Illegal range: Truncated data, "+e+" < "+this.limit);return 0===(i=this.view[e++])?null:i}.bind(this),r=n(),!0),o?(this.offset=e,r()):{string:r(),length:e-t}},o.writeIString=function(e,n){var r,i,o,s=void 0===n;if(s&&(n=this.offset),!this.noAssert){if("string"!=typeof e)throw TypeError("Illegal str: Not a string");if("number"!=typeof n||n%1!=0)throw TypeError("Illegal offset: "+n+" (not an integer)");if((n>>>=0)<0||n+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+n+" (+0) <= "+this.buffer.byteLength)}if(i=n,r=u.calculateUTF16asUTF8(t(e),this.noAssert)[1],n+=4+r,o=this.buffer.byteLength,n>o&&this.resize((o*=2)>n?o:n),n-=4+r,this.littleEndian?(this.view[n+3]=255&r>>>24,this.view[n+2]=255&r>>>16,this.view[n+1]=255&r>>>8,this.view[n]=255&r):(this.view[n]=255&r>>>24,this.view[n+1]=255&r>>>16,this.view[n+2]=255&r>>>8,this.view[n+3]=255&r),n+=4,u.encodeUTF16toUTF8(t(e),function(e){this.view[n++]=e}.bind(this)),n!==i+4+r)throw RangeError("Illegal range: Truncated data, "+n+" == "+(n+4+r));return s?(this.offset=n,this):n-i},o.readIString=function(e){var t,n,r,i=void 0===e;if(i&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+4>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+4) <= "+this.buffer.byteLength)}return t=e,n=this.readUint32(e),r=this.readUTF8String(n,l.METRICS_BYTES,e+=4),e+=r.length,i?(this.offset=e,r.string):{string:r.string,length:e-t}},l.METRICS_CHARS="c",l.METRICS_BYTES="b",o.writeUTF8String=function(e,n){var r,i,o,s=void 0===n;if(s&&(n=this.offset),!this.noAssert){if("number"!=typeof n||n%1!=0)throw TypeError("Illegal offset: "+n+" (not an integer)");if((n>>>=0)<0||n+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+n+" (+0) <= "+this.buffer.byteLength)}return i=n,r=u.calculateUTF16asUTF8(t(e))[1],n+=r,o=this.buffer.byteLength,n>o&&this.resize((o*=2)>n?o:n),n-=r,u.encodeUTF16toUTF8(t(e),function(e){this.view[n++]=e}.bind(this)),s?(this.offset=n,this):n-i},o.writeString=o.writeUTF8String,l.calculateUTF8Chars=function(e){return u.calculateUTF16asUTF8(t(e))[0]},l.calculateUTF8Bytes=function(e){return u.calculateUTF16asUTF8(t(e))[1]},l.calculateString=l.calculateUTF8Bytes,o.readUTF8String=function(e,t,r){var i,o,s,a,c;if("number"==typeof t&&(r=t,t=void 0),(i=void 0===r)&&(r=this.offset),void 0===t&&(t=l.METRICS_CHARS),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal length: "+e+" (not an integer)");if(e|=0,"number"!=typeof r||r%1!=0)throw TypeError("Illegal offset: "+r+" (not an integer)");if((r>>>=0)<0||r+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+r+" (+0) <= "+this.buffer.byteLength)}if(s=0,a=r,t===l.METRICS_CHARS){if(o=n(),u.decodeUTF8(function(){return e>s&&r<this.limit?this.view[r++]:null}.bind(this),(function(e){++s,u.UTF8toUTF16(e,o)})),s!==e)throw RangeError("Illegal range: Truncated data, "+s+" == "+e);return i?(this.offset=r,o()):{string:o(),length:r-a}}if(t===l.METRICS_BYTES){if(!this.noAssert){if("number"!=typeof r||r%1!=0)throw TypeError("Illegal offset: "+r+" (not an integer)");if((r>>>=0)<0||r+e>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+r+" (+"+e+") <= "+this.buffer.byteLength)}if(c=r+e,u.decodeUTF8toUTF16(function(){return c>r?this.view[r++]:null}.bind(this),o=n(),this.noAssert),r!==c)throw RangeError("Illegal range: Truncated data, "+r+" == "+c);return i?(this.offset=r,o()):{string:o(),length:r-a}}throw TypeError("Unsupported metrics: "+t)},o.readString=o.readUTF8String,o.writeVString=function(e,n){var r,i,o,s,a=void 0===n;if(a&&(n=this.offset),!this.noAssert){if("string"!=typeof e)throw TypeError("Illegal str: Not a string");if("number"!=typeof n||n%1!=0)throw TypeError("Illegal offset: "+n+" (not an integer)");if((n>>>=0)<0||n+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+n+" (+0) <= "+this.buffer.byteLength)}if(o=n,r=u.calculateUTF16asUTF8(t(e),this.noAssert)[1],i=l.calculateVarint32(r),n+=i+r,s=this.buffer.byteLength,n>s&&this.resize((s*=2)>n?s:n),n-=i+r,n+=this.writeVarint32(r,n),u.encodeUTF16toUTF8(t(e),function(e){this.view[n++]=e}.bind(this)),n!==o+r+i)throw RangeError("Illegal range: Truncated data, "+n+" == "+(n+r+i));return a?(this.offset=n,this):n-o},o.readVString=function(e){var t,n,r,i=void 0===e;if(i&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+1>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+1) <= "+this.buffer.byteLength)}return t=e,n=this.readVarint32(e),r=this.readUTF8String(n.value,l.METRICS_BYTES,e+=n.length),e+=r.length,i?(this.offset=e,r.string):{string:r.string,length:e-t}},o.append=function(e,t,n){var r,i,o;if(("number"==typeof t||"string"!=typeof t)&&(n=t,t=void 0),(r=void 0===n)&&(n=this.offset),!this.noAssert){if("number"!=typeof n||n%1!=0)throw TypeError("Illegal offset: "+n+" (not an integer)");if((n>>>=0)<0||n+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+n+" (+0) <= "+this.buffer.byteLength)}return e instanceof l||(e=l.wrap(e,t)),(i=e.limit-e.offset)<=0||((n+=i)>(o=this.buffer.byteLength)&&this.resize((o*=2)>n?o:n),n-=i,this.view.set(e.view.subarray(e.offset,e.limit),n),e.offset+=i,r&&(this.offset+=i)),this},o.appendTo=function(e,t){return e.append(this,t),this},o.assert=function(e){return this.noAssert=!e,this},o.capacity=function(){return this.buffer.byteLength},o.clear=function(){return this.offset=0,this.limit=this.buffer.byteLength,this.markedOffset=-1,this},o.clone=function(e){var t=new l(0,this.littleEndian,this.noAssert);return e?(t.buffer=new ArrayBuffer(this.buffer.byteLength),t.view=new Uint8Array(t.buffer)):(t.buffer=this.buffer,t.view=this.view),t.offset=this.offset,t.markedOffset=this.markedOffset,t.limit=this.limit,t},o.compact=function(e,t){var n,r,i;if(void 0===e&&(e=this.offset),void 0===t&&(t=this.limit),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal begin: Not an integer");if(e>>>=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal end: Not an integer");if(t>>>=0,e<0||e>t||t>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+e+" <= "+t+" <= "+this.buffer.byteLength)}return 0===e&&t===this.buffer.byteLength?this:0==(n=t-e)?(this.buffer=s,this.view=null,this.markedOffset>=0&&(this.markedOffset-=e),this.offset=0,this.limit=0,this):(r=new ArrayBuffer(n),(i=new Uint8Array(r)).set(this.view.subarray(e,t)),this.buffer=r,this.view=i,this.markedOffset>=0&&(this.markedOffset-=e),this.offset=0,this.limit=n,this)},o.copy=function(e,t){if(void 0===e&&(e=this.offset),void 0===t&&(t=this.limit),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal begin: Not an integer");if(e>>>=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal end: Not an integer");if(t>>>=0,e<0||e>t||t>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+e+" <= "+t+" <= "+this.buffer.byteLength)}if(e===t)return new l(0,this.littleEndian,this.noAssert);var n=t-e,r=new l(n,this.littleEndian,this.noAssert);return r.offset=0,r.limit=n,r.markedOffset>=0&&(r.markedOffset-=e),this.copyTo(r,0,e,t),r},o.copyTo=function(e,t,n,r){var i,o,s;if(!this.noAssert&&!l.isByteBuffer(e))throw TypeError("Illegal target: Not a ByteBuffer");if(t=(o=void 0===t)?e.offset:0|t,n=(i=void 0===n)?this.offset:0|n,r=void 0===r?this.limit:0|r,t<0||t>e.buffer.byteLength)throw RangeError("Illegal target range: 0 <= "+t+" <= "+e.buffer.byteLength);if(n<0||r>this.buffer.byteLength)throw RangeError("Illegal source range: 0 <= "+n+" <= "+this.buffer.byteLength);return 0==(s=r-n)?e:(e.ensureCapacity(t+s),e.view.set(this.view.subarray(n,r),t),i&&(this.offset+=s),o&&(e.offset+=s),this)},o.ensureCapacity=function(e){var t=this.buffer.byteLength;return e>t?this.resize((t*=2)>e?t:e):this},o.fill=function(e,t,n){var r=void 0===t;if(r&&(t=this.offset),"string"==typeof e&&e.length>0&&(e=e.charCodeAt(0)),void 0===t&&(t=this.offset),void 0===n&&(n=this.limit),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal value: "+e+" (not an integer)");if(e|=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal begin: Not an integer");if(t>>>=0,"number"!=typeof n||n%1!=0)throw TypeError("Illegal end: Not an integer");if(n>>>=0,t<0||t>n||n>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+t+" <= "+n+" <= "+this.buffer.byteLength)}if(t>=n)return this;for(;n>t;)this.view[t++]=e;return r&&(this.offset=t),this},o.flip=function(){return this.limit=this.offset,this.offset=0,this},o.mark=function(e){if(e=void 0===e?this.offset:e,!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+0) <= "+this.buffer.byteLength)}return this.markedOffset=e,this},o.order=function(e){if(!this.noAssert&&"boolean"!=typeof e)throw TypeError("Illegal littleEndian: Not a boolean");return this.littleEndian=!!e,this},o.LE=function(e){return this.littleEndian=void 0===e||!!e,this},o.BE=function(e){return this.littleEndian=void 0!==e&&!e,this},o.prepend=function(e,t,n){var r,i,o,s,a;if(("number"==typeof t||"string"!=typeof t)&&(n=t,t=void 0),(r=void 0===n)&&(n=this.offset),!this.noAssert){if("number"!=typeof n||n%1!=0)throw TypeError("Illegal offset: "+n+" (not an integer)");if((n>>>=0)<0||n+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+n+" (+0) <= "+this.buffer.byteLength)}return e instanceof l||(e=l.wrap(e,t)),(i=e.limit-e.offset)<=0||((o=i-n)>0?(s=new ArrayBuffer(this.buffer.byteLength+o),(a=new Uint8Array(s)).set(this.view.subarray(n,this.buffer.byteLength),i),this.buffer=s,this.view=a,this.offset+=o,this.markedOffset>=0&&(this.markedOffset+=o),this.limit+=o,n+=o):new Uint8Array(this.buffer),this.view.set(e.view.subarray(e.offset,e.limit),n-i),e.offset=e.limit,r&&(this.offset-=i)),this},o.prependTo=function(e,t){return e.prepend(this,t),this},o.printDebug=function(e){"function"!=typeof e&&(e=console.log.bind(console)),e(this.toString()+"\n-------------------------------------------------------------------\n"+this.toDebug(!0))},o.remaining=function(){return this.limit-this.offset},o.reset=function(){return this.markedOffset>=0?(this.offset=this.markedOffset,this.markedOffset=-1):this.offset=0,this},o.resize=function(e){var t,n;if(!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal capacity: "+e+" (not an integer)");if((e|=0)<0)throw RangeError("Illegal capacity: 0 <= "+e)}return this.buffer.byteLength<e&&(t=new ArrayBuffer(e),(n=new Uint8Array(t)).set(this.view),this.buffer=t,this.view=n),this},o.reverse=function(e,t){if(void 0===e&&(e=this.offset),void 0===t&&(t=this.limit),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal begin: Not an integer");if(e>>>=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal end: Not an integer");if(t>>>=0,e<0||e>t||t>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+e+" <= "+t+" <= "+this.buffer.byteLength)}return e===t||Array.prototype.reverse.call(this.view.subarray(e,t)),this},o.skip=function(e){if(!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal length: "+e+" (not an integer)");e|=0}var t=this.offset+e;if(!this.noAssert&&(t<0||t>this.buffer.byteLength))throw RangeError("Illegal length: 0 <= "+this.offset+" + "+e+" <= "+this.buffer.byteLength);return this.offset=t,this},o.slice=function(e,t){if(void 0===e&&(e=this.offset),void 0===t&&(t=this.limit),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal begin: Not an integer");if(e>>>=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal end: Not an integer");if(t>>>=0,e<0||e>t||t>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+e+" <= "+t+" <= "+this.buffer.byteLength)}var n=this.clone();return n.offset=e,n.limit=t,n},o.toBuffer=function(e){var t,n=this.offset,r=this.limit;if(!this.noAssert){if("number"!=typeof n||n%1!=0)throw TypeError("Illegal offset: Not an integer");if(n>>>=0,"number"!=typeof r||r%1!=0)throw TypeError("Illegal limit: Not an integer");if(r>>>=0,n<0||n>r||r>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+n+" <= "+r+" <= "+this.buffer.byteLength)}return e||0!==n||r!==this.buffer.byteLength?n===r?s:(t=new ArrayBuffer(r-n),new Uint8Array(t).set(new Uint8Array(this.buffer).subarray(n,r),0),t):this.buffer},o.toArrayBuffer=o.toBuffer,o.toString=function(e,t,n){if(void 0===e)return"ByteBufferAB(offset="+this.offset+",markedOffset="+this.markedOffset+",limit="+this.limit+",capacity="+this.capacity()+")";switch("number"==typeof e&&(n=t=e="utf8"),e){case"utf8":return this.toUTF8(t,n);case"base64":return this.toBase64(t,n);case"hex":return this.toHex(t,n);case"binary":return this.toBinary(t,n);case"debug":return this.toDebug();case"columns":return this.toColumns();default:throw Error("Unsupported encoding: "+e)}},c=function(){var e,t,n={},r=[65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,48,49,50,51,52,53,54,55,56,57,43,47],i=[];for(e=0,t=r.length;t>e;++e)i[r[e]]=e;return n.encode=function(e,t){for(var n,i;null!==(n=e());)t(r[63&n>>2]),i=(3&n)<<4,null!==(n=e())?(t(r[63&((i|=15&n>>4)|15&n>>4)]),i=(15&n)<<2,null!==(n=e())?(t(r[63&(i|3&n>>6)]),t(r[63&n])):(t(r[63&i]),t(61))):(t(r[63&i]),t(61),t(61))},n.decode=function(e,t){function n(e){throw Error("Illegal character code: "+e)}for(var r,o,s;null!==(r=e());)if(void 0===(o=i[r])&&n(r),null!==(r=e())&&(void 0===(s=i[r])&&n(r),t(o<<2>>>0|(48&s)>>4),null!==(r=e()))){if(void 0===(o=i[r])){if(61===r)break;n(r)}if(t((15&s)<<4>>>0|(60&o)>>2),null!==(r=e())){if(void 0===(s=i[r])){if(61===r)break;n(r)}t((3&o)<<6>>>0|s)}}},n.test=function(e){return/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/.test(e)},n}(),o.toBase64=function(e,t){if(void 0===e&&(e=this.offset),void 0===t&&(t=this.limit),t|=0,(e|=0)<0||t>this.capacity||e>t)throw RangeError("begin, end");var r;return c.encode(function(){return t>e?this.view[e++]:null}.bind(this),r=n()),r()},l.fromBase64=function(e,n){if("string"!=typeof e)throw TypeError("str");var r=new l(e.length/4*3,n),i=0;return c.decode(t(e),(function(e){r.view[i++]=e})),r.limit=i,r},l.btoa=function(e){return l.fromBinary(e).toBase64()},l.atob=function(e){return l.fromBase64(e).toBinary()},o.toBinary=function(e,t){if(void 0===e&&(e=this.offset),void 0===t&&(t=this.limit),t|=0,(e|=0)<0||t>this.capacity()||e>t)throw RangeError("begin, end");if(e===t)return"";for(var n=[],r=[];t>e;)n.push(this.view[e++]),n.length>=1024&&(r.push(String.fromCharCode.apply(String,n)),n=[]);return r.join("")+String.fromCharCode.apply(String,n)},l.fromBinary=function(e,t){if("string"!=typeof e)throw TypeError("str");for(var n,r=0,i=e.length,o=new l(i,t);i>r;){if((n=e.charCodeAt(r))>255)throw RangeError("illegal char code: "+n);o.view[r++]=n}return o.limit=i,o},o.toDebug=function(e){for(var t,n=-1,r=this.buffer.byteLength,i="",o="",s="";r>n;){if(-1!==n&&(i+=(t=this.view[n])<16?"0"+t.toString(16).toUpperCase():t.toString(16).toUpperCase(),e&&(o+=t>32&&t<127?String.fromCharCode(t):".")),++n,e&&n>0&&n%16==0&&n!==r){for(;i.length<51;)i+=" ";s+=i+o+"\n",i=o=""}i+=n===this.offset&&n===this.limit?n===this.markedOffset?"!":"|":n===this.offset?n===this.markedOffset?"[":"<":n===this.limit?n===this.markedOffset?"]":">":n===this.markedOffset?"'":e||0!==n&&n!==r?" ":""}if(e&&" "!==i){for(;i.length<51;)i+=" ";s+=i+o+"\n"}return e?s:i},l.fromDebug=function(e,t,n){for(var r,i,o=e.length,s=new l(0|(o+1)/3,t,n),a=0,c=0,u=!1,f=!1,h=!1,d=!1,p=!1;o>a;){switch(r=e.charAt(a++)){case"!":if(!n){if(f||h||d){p=!0;break}f=h=d=!0}s.offset=s.markedOffset=s.limit=c,u=!1;break;case"|":if(!n){if(f||d){p=!0;break}f=d=!0}s.offset=s.limit=c,u=!1;break;case"[":if(!n){if(f||h){p=!0;break}f=h=!0}s.offset=s.markedOffset=c,u=!1;break;case"<":if(!n){if(f){p=!0;break}f=!0}s.offset=c,u=!1;break;case"]":if(!n){if(d||h){p=!0;break}d=h=!0}s.limit=s.markedOffset=c,u=!1;break;case">":if(!n){if(d){p=!0;break}d=!0}s.limit=c,u=!1;break;case"'":if(!n){if(h){p=!0;break}h=!0}s.markedOffset=c,u=!1;break;case" ":u=!1;break;default:if(!n&&u){p=!0;break}if(i=parseInt(r+e.charAt(a++),16),!n&&(isNaN(i)||i<0||i>255))throw TypeError("Illegal str: Not a debug encoded string");s.view[c++]=i,u=!0}if(p)throw TypeError("Illegal str: Invalid symbol at "+a)}if(!n){if(!f||!d)throw TypeError("Illegal str: Missing offset or limit");if(c<s.buffer.byteLength)throw TypeError("Illegal str: Not a debug encoded string (is it hex?) "+c+" < "+o)}return s},o.toHex=function(e,t){if(e=void 0===e?this.offset:e,t=void 0===t?this.limit:t,!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal begin: Not an integer");if(e>>>=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal end: Not an integer");if(t>>>=0,e<0||e>t||t>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+e+" <= "+t+" <= "+this.buffer.byteLength)}for(var n,r=new Array(t-e);t>e;)(n=this.view[e++])<16?r.push("0",n.toString(16)):r.push(n.toString(16));return r.join("")},l.fromHex=function(e,t,n){var r,i,o,s,a;if(!n){if("string"!=typeof e)throw TypeError("Illegal str: Not a string");if(e.length%2!=0)throw TypeError("Illegal str: Length not a multiple of 2")}for(i=e.length,o=new l(0|i/2,t),s=0,a=0;i>s;s+=2){if(r=parseInt(e.substring(s,s+2),16),!n&&(!isFinite(r)||r<0||r>255))throw TypeError("Illegal str: Contains non-hex characters");o.view[a++]=r}return o.limit=a,o},u=function(){var e={MAX_CODEPOINT:1114111,encodeUTF8:function(e,t){var n=null;for("number"==typeof e&&(n=e,e=function(){return null});null!==n||null!==(n=e());)n<128?t(127&n):n<2048?(t(192|31&n>>6),t(128|63&n)):n<65536?(t(224|15&n>>12),t(128|63&n>>6),t(128|63&n)):(t(240|7&n>>18),t(128|63&n>>12),t(128|63&n>>6),t(128|63&n)),n=null},decodeUTF8:function(e,t){for(var n,r,i,o,s=function(e){e=e.slice(0,e.indexOf(null));var t=Error(e.toString());throw t.name="TruncatedError",t.bytes=e,t};null!==(n=e());)if(0==(128&n))t(n);else if(192==(224&n))null===(r=e())&&s([n,r]),t((31&n)<<6|63&r);else if(224==(240&n))(null===(r=e())||null===(i=e()))&&s([n,r,i]),t((15&n)<<12|(63&r)<<6|63&i);else{if(240!=(248&n))throw RangeError("Illegal starting byte: "+n);(null===(r=e())||null===(i=e())||null===(o=e()))&&s([n,r,i,o]),t((7&n)<<18|(63&r)<<12|(63&i)<<6|63&o)}},UTF16toUTF8:function(e,t){for(var n,r=null;null!==(n=null!==r?r:e());)n>=55296&&n<=57343&&null!==(r=e())&&r>=56320&&r<=57343?(t(1024*(n-55296)+r-56320+65536),r=null):t(n);null!==r&&t(r)},UTF8toUTF16:function(e,t){var n=null;for("number"==typeof e&&(n=e,e=function(){return null});null!==n||null!==(n=e());)n<=65535?t(n):(t(55296+((n-=65536)>>10)),t(n%1024+56320)),n=null},encodeUTF16toUTF8:function(t,n){e.UTF16toUTF8(t,(function(t){e.encodeUTF8(t,n)}))},decodeUTF8toUTF16:function(t,n){e.decodeUTF8(t,(function(t){e.UTF8toUTF16(t,n)}))},calculateCodePoint:function(e){return e<128?1:e<2048?2:e<65536?3:4},calculateUTF8:function(e){for(var t,n=0;null!==(t=e());)n+=t<128?1:t<2048?2:t<65536?3:4;return n},calculateUTF16asUTF8:function(t){var n=0,r=0;return e.UTF16toUTF8(t,(function(e){++n,r+=e<128?1:e<2048?2:e<65536?3:4})),[n,r]}};return e}(),o.toUTF8=function(e,t){if(void 0===e&&(e=this.offset),void 0===t&&(t=this.limit),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal begin: Not an integer");if(e>>>=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal end: Not an integer");if(t>>>=0,e<0||e>t||t>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+e+" <= "+t+" <= "+this.buffer.byteLength)}var r;try{u.decodeUTF8toUTF16(function(){return t>e?this.view[e++]:null}.bind(this),r=n())}catch(n){if(e!==t)throw RangeError("Illegal range: Truncated data, "+e+" != "+t)}return r()},l.fromUTF8=function(e,n,r){if(!r&&"string"!=typeof e)throw TypeError("Illegal str: Not a string");var i=new l(u.calculateUTF16asUTF8(t(e),!0)[1],n,r),o=0;return u.encodeUTF16toUTF8(t(e),(function(e){i.view[o++]=e})),i.limit=o,i},l}(Xr),ti=function(t,n){var r,i,o={};return o.ByteBuffer=t,o.c=t,r=t,o.Long=n||null,o.VERSION="5.0.1",o.WIRE_TYPES={},o.WIRE_TYPES.VARINT=0,o.WIRE_TYPES.BITS64=1,o.WIRE_TYPES.LDELIM=2,o.WIRE_TYPES.STARTGROUP=3,o.WIRE_TYPES.ENDGROUP=4,o.WIRE_TYPES.BITS32=5,o.PACKABLE_WIRE_TYPES=[o.WIRE_TYPES.VARINT,o.WIRE_TYPES.BITS64,o.WIRE_TYPES.BITS32],o.TYPES={int32:{name:"int32",wireType:o.WIRE_TYPES.VARINT,defaultValue:0},uint32:{name:"uint32",wireType:o.WIRE_TYPES.VARINT,defaultValue:0},sint32:{name:"sint32",wireType:o.WIRE_TYPES.VARINT,defaultValue:0},int64:{name:"int64",wireType:o.WIRE_TYPES.VARINT,defaultValue:o.Long?o.Long.ZERO:void 0},uint64:{name:"uint64",wireType:o.WIRE_TYPES.VARINT,defaultValue:o.Long?o.Long.UZERO:void 0},sint64:{name:"sint64",wireType:o.WIRE_TYPES.VARINT,defaultValue:o.Long?o.Long.ZERO:void 0},bool:{name:"bool",wireType:o.WIRE_TYPES.VARINT,defaultValue:!1},double:{name:"double",wireType:o.WIRE_TYPES.BITS64,defaultValue:0},string:{name:"string",wireType:o.WIRE_TYPES.LDELIM,defaultValue:""},bytes:{name:"bytes",wireType:o.WIRE_TYPES.LDELIM,defaultValue:null},fixed32:{name:"fixed32",wireType:o.WIRE_TYPES.BITS32,defaultValue:0},sfixed32:{name:"sfixed32",wireType:o.WIRE_TYPES.BITS32,defaultValue:0},fixed64:{name:"fixed64",wireType:o.WIRE_TYPES.BITS64,defaultValue:o.Long?o.Long.UZERO:void 0},sfixed64:{name:"sfixed64",wireType:o.WIRE_TYPES.BITS64,defaultValue:o.Long?o.Long.ZERO:void 0},float:{name:"float",wireType:o.WIRE_TYPES.BITS32,defaultValue:0},enum:{name:"enum",wireType:o.WIRE_TYPES.VARINT,defaultValue:0},message:{name:"message",wireType:o.WIRE_TYPES.LDELIM,defaultValue:null},group:{name:"group",wireType:o.WIRE_TYPES.STARTGROUP,defaultValue:null}},o.MAP_KEY_TYPES=[o.TYPES.int32,o.TYPES.sint32,o.TYPES.sfixed32,o.TYPES.uint32,o.TYPES.fixed32,o.TYPES.int64,o.TYPES.sint64,o.TYPES.sfixed64,o.TYPES.uint64,o.TYPES.fixed64,o.TYPES.bool,o.TYPES.string,o.TYPES.bytes],o.ID_MIN=1,o.ID_MAX=536870911,o.convertFieldsToCamelCase=!1,o.populateAccessors=!0,o.populateDefaults=!0,o.Util=function(){var t={};return t.IS_NODE=!("object"!=typeof e||e+""!="[object process]"||e.browser),t.XHR=function(){var e,t=[function(){return new XMLHttpRequest},function(){return new ActiveXObject("Msxml2.XMLHTTP")},function(){return new ActiveXObject("Msxml3.XMLHTTP")},function(){return new ActiveXObject("Microsoft.XMLHTTP")}],n=null;for(e=0;e<t.length;e++){try{n=t[e]()}catch(e){continue}break}if(!n)throw Error("XMLHttpRequest is not supported");return n},t.fetch=function(e,n){if(n&&"function"!=typeof n&&(n=null),t.IS_NODE)if(n)g.readFile(e,(function(e,t){n(e?null:""+t)}));else try{return g.readFileSync(e)}catch(t){return null}else{var r=t.XHR();if(r.open("GET",e,!!n),r.setRequestHeader("Accept","text/plain"),"function"==typeof r.overrideMimeType&&r.overrideMimeType("text/plain"),!n)return r.send(null),200==r.status||0==r.status&&"string"==typeof r.responseText?r.responseText:null;if(r.onreadystatechange=function(){4==r.readyState&&(200==r.status||0==r.status&&"string"==typeof r.responseText?n(r.responseText):n(null))},4==r.readyState)return;r.send(null)}},t.toCamelCase=function(e){return e.replace(/_([a-zA-Z])/g,(function(e,t){return t.toUpperCase()}))},t}(),o.Lang={DELIM:/[\s\{\}=;:\[\],'"\(\)<>]/g,RULE:/^(?:required|optional|repeated|map)$/,TYPE:/^(?:double|float|int32|uint32|sint32|int64|uint64|sint64|fixed32|sfixed32|fixed64|sfixed64|bool|string|bytes)$/,NAME:/^[a-zA-Z_][a-zA-Z_0-9]*$/,TYPEDEF:/^[a-zA-Z][a-zA-Z_0-9]*$/,TYPEREF:/^(?:\.?[a-zA-Z_][a-zA-Z_0-9]*)+$/,FQTYPEREF:/^(?:\.[a-zA-Z][a-zA-Z_0-9]*)+$/,NUMBER:/^-?(?:[1-9][0-9]*|0|0[xX][0-9a-fA-F]+|0[0-7]+|([0-9]*(\.[0-9]*)?([Ee][+-]?[0-9]+)?)|inf|nan)$/,NUMBER_DEC:/^(?:[1-9][0-9]*|0)$/,NUMBER_HEX:/^0[xX][0-9a-fA-F]+$/,NUMBER_OCT:/^0[0-7]+$/,NUMBER_FLT:/^([0-9]*(\.[0-9]*)?([Ee][+-]?[0-9]+)?|inf|nan)$/,BOOL:/^(?:true|false)$/i,ID:/^(?:[1-9][0-9]*|0|0[xX][0-9a-fA-F]+|0[0-7]+)$/,NEGID:/^\-?(?:[1-9][0-9]*|0|0[xX][0-9a-fA-F]+|0[0-7]+)$/,WHITESPACE:/\s/,STRING:/(?:"([^"\\]*(?:\\.[^"\\]*)*)")|(?:'([^'\\]*(?:\\.[^'\\]*)*)')/g,STRING_DQ:/(?:"([^"\\]*(?:\\.[^"\\]*)*)")/g,STRING_SQ:/(?:'([^'\\]*(?:\\.[^'\\]*)*)')/g},o.DotProto=function(e,t){function n(e,n){var r=-1,i=1;if("-"==e.charAt(0)&&(i=-1,e=e.substring(1)),t.NUMBER_DEC.test(e))r=parseInt(e);else if(t.NUMBER_HEX.test(e))r=parseInt(e.substring(2),16);else{if(!t.NUMBER_OCT.test(e))throw Error("illegal id value: "+(i<0?"-":"")+e);r=parseInt(e.substring(1),8)}if(r=0|i*r,!n&&r<0)throw Error("illegal id value: "+(i<0?"-":"")+e);return r}function r(e){var n=1;if("-"==e.charAt(0)&&(n=-1,e=e.substring(1)),t.NUMBER_DEC.test(e))return n*parseInt(e,10);if(t.NUMBER_HEX.test(e))return n*parseInt(e.substring(2),16);if(t.NUMBER_OCT.test(e))return n*parseInt(e.substring(1),8);if("inf"===e)return 1/0*n;if("nan"===e)return NaN;if(t.NUMBER_FLT.test(e))return n*parseFloat(e);throw Error("illegal number value: "+(n<0?"-":"")+e)}function i(e,t,n){void 0===e[t]?e[t]=n:(Array.isArray(e[t])||(e[t]=[e[t]]),e[t].push(n))}var o,s,a={},c=function(e){this.source=e+"",this.index=0,this.line=1,this.stack=[],this._stringOpen=null},u=c.prototype;return u._readString=function(){var e,n='"'===this._stringOpen?t.STRING_DQ:t.STRING_SQ;if(n.lastIndex=this.index-1,!(e=n.exec(this.source)))throw Error("unterminated string");return this.index=n.lastIndex,this.stack.push(this._stringOpen),this._stringOpen=null,e[1]},u.next=function(){var e,n,r,i,o;if(this.stack.length>0)return this.stack.shift();if(this.index>=this.source.length)return null;if(null!==this._stringOpen)return this._readString();do{for(e=!1;t.WHITESPACE.test(r=this.source.charAt(this.index));)if("\n"===r&&++this.line,++this.index===this.source.length)return null;if("/"===this.source.charAt(this.index))if(++this.index,"/"===this.source.charAt(this.index)){for(;"\n"!==this.source.charAt(++this.index);)if(this.index==this.source.length)return null;++this.index,++this.line,e=!0}else{if("*"!==(r=this.source.charAt(this.index)))return"/";do{if("\n"===r&&++this.line,++this.index===this.source.length)return null;n=r,r=this.source.charAt(this.index)}while("*"!==n||"/"!==r);++this.index,e=!0}}while(e);if(this.index===this.source.length)return null;if(i=this.index,t.DELIM.lastIndex=0,!t.DELIM.test(this.source.charAt(i++)))for(;i<this.source.length&&!t.DELIM.test(this.source.charAt(i));)++i;return('"'===(o=this.source.substring(this.index,this.index=i))||"'"===o)&&(this._stringOpen=o),o},u.peek=function(){if(0===this.stack.length){var e=this.next();if(null===e)return null;this.stack.push(e)}return this.stack[0]},u.skip=function(e){var t=this.next();if(t!==e)throw Error("illegal '"+t+"', '"+e+"' expected")},u.omit=function(e){return this.peek()===e&&(this.next(),!0)},u.toString=function(){return"Tokenizer ("+this.index+"/"+this.source.length+" at line "+this.line+")"},a.Tokenizer=c,o=function(e){this.tn=new c(e),this.proto3=!1},(s=o.prototype).parse=function(){var e,n={name:"[ROOT]",package:null,messages:[],enums:[],imports:[],options:{},services:[]},r=!0;try{for(;e=this.tn.next();)switch(e){case"package":if(!r||null!==n.package)throw Error("unexpected 'package'");if(e=this.tn.next(),!t.TYPEREF.test(e))throw Error("illegal package name: "+e);this.tn.skip(";"),n.package=e;break;case"import":if(!r)throw Error("unexpected 'import'");"public"===(e=this.tn.peek())&&this.tn.next(),e=this._readString(),this.tn.skip(";"),n.imports.push(e);break;case"syntax":if(!r)throw Error("unexpected 'syntax'");this.tn.skip("="),"proto3"===(n.syntax=this._readString())&&(this.proto3=!0),this.tn.skip(";");break;case"message":this._parseMessage(n,null),r=!1;break;case"enum":this._parseEnum(n),r=!1;break;case"option":this._parseOption(n);break;case"service":this._parseService(n);break;case"extend":this._parseExtend(n);break;default:throw Error("unexpected '"+e+"'")}}catch(e){throw e.message="Parse error at line "+this.tn.line+": "+e.message,e}return delete n.name,n},o.parse=function(e){return new o(e).parse()},s._readString=function(){var e,t,n="";do{if("'"!==(t=this.tn.next())&&'"'!==t)throw Error("illegal string delimiter: "+t);n+=this.tn.next(),this.tn.skip(t),e=this.tn.peek()}while('"'===e||'"'===e);return n},s._readValue=function(e){var n=this.tn.peek();if('"'===n||"'"===n)return this._readString();if(this.tn.next(),t.NUMBER.test(n))return r(n);if(t.BOOL.test(n))return"true"===n.toLowerCase();if(e&&t.TYPEREF.test(n))return n;throw Error("illegal value: "+n)},s._parseOption=function(e,n){var r,i=this.tn.next(),o=!1;if("("===i&&(o=!0,i=this.tn.next()),!t.TYPEREF.test(i))throw Error("illegal option name: "+i);r=i,o&&(this.tn.skip(")"),r="("+r+")",i=this.tn.peek(),t.FQTYPEREF.test(i)&&(r+=i,this.tn.next())),this.tn.skip("="),this._parseOptionValue(e,r),n||this.tn.skip(";")},s._parseOptionValue=function(e,n){var r=this.tn.peek();if("{"!==r)i(e.options,n,this._readValue(!0));else for(this.tn.skip("{");"}"!==(r=this.tn.next());){if(!t.NAME.test(r))throw Error("illegal option name: "+n+"."+r);this.tn.omit(":")?i(e.options,n+"."+r,this._readValue(!0)):this._parseOptionValue(e,n+"."+r)}},s._parseService=function(e){var n,r=this.tn.next();if(!t.NAME.test(r))throw Error("illegal service name at line "+this.tn.line+": "+r);for(n={name:r,rpc:{},options:{}},this.tn.skip("{");"}"!==(r=this.tn.next());)if("option"===r)this._parseOption(n);else{if("rpc"!==r)throw Error("illegal service token: "+r);this._parseServiceRPC(n)}this.tn.omit(";"),e.services.push(n)},s._parseServiceRPC=function(e){var n,r,i="rpc",o=this.tn.next();if(!t.NAME.test(o))throw Error("illegal rpc service method name: "+o);if(n=o,r={request:null,response:null,request_stream:!1,response_stream:!1,options:{}},this.tn.skip("("),"stream"===(o=this.tn.next()).toLowerCase()&&(r.request_stream=!0,o=this.tn.next()),!t.TYPEREF.test(o))throw Error("illegal rpc service request type: "+o);if(r.request=o,this.tn.skip(")"),"returns"!==(o=this.tn.next()).toLowerCase())throw Error("illegal rpc service request type delimiter: "+o);if(this.tn.skip("("),"stream"===(o=this.tn.next()).toLowerCase()&&(r.response_stream=!0,o=this.tn.next()),r.response=o,this.tn.skip(")"),"{"===(o=this.tn.peek())){for(this.tn.next();"}"!==(o=this.tn.next());){if("option"!==o)throw Error("illegal rpc service token: "+o);this._parseOption(r)}this.tn.omit(";")}else this.tn.skip(";");void 0===e[i]&&(e[i]={}),e[i][n]=r},s._parseMessage=function(e,r){var i=!!r,o=this.tn.next(),s={name:"",fields:[],enums:[],messages:[],options:{},services:[],oneofs:{}};if(!t.NAME.test(o))throw Error("illegal "+(i?"group":"message")+" name: "+o);for(s.name=o,i&&(this.tn.skip("="),r.id=n(this.tn.next()),s.isGroup=!0),"["===(o=this.tn.peek())&&r&&this._parseFieldOptions(r),this.tn.skip("{");"}"!==(o=this.tn.next());)if(t.RULE.test(o))this._parseMessageField(s,o);else if("oneof"===o)this._parseMessageOneOf(s);else if("enum"===o)this._parseEnum(s);else if("message"===o)this._parseMessage(s);else if("option"===o)this._parseOption(s);else if("service"===o)this._parseService(s);else if("extensions"===o)s.extensions=this._parseExtensionRanges();else if("reserved"===o)this._parseIgnored();else if("extend"===o)this._parseExtend(s);else{if(!t.TYPEREF.test(o))throw Error("illegal message token: "+o);if(!this.proto3)throw Error("illegal field rule: "+o);this._parseMessageField(s,"optional",o)}return this.tn.omit(";"),e.messages.push(s),s},s._parseIgnored=function(){for(;";"!==this.tn.peek();)this.tn.next();this.tn.skip(";")},s._parseMessageField=function(e,r,i){var o,s,a;if(!t.RULE.test(r))throw Error("illegal message field rule: "+r);if(o={rule:r,type:"",name:"",options:{},id:0},"map"===r){if(i)throw Error("illegal type: "+i);if(this.tn.skip("<"),s=this.tn.next(),!t.TYPE.test(s)&&!t.TYPEREF.test(s))throw Error("illegal message field type: "+s);if(o.keytype=s,this.tn.skip(","),s=this.tn.next(),!t.TYPE.test(s)&&!t.TYPEREF.test(s))throw Error("illegal message field: "+s);if(o.type=s,this.tn.skip(">"),s=this.tn.next(),!t.NAME.test(s))throw Error("illegal message field name: "+s);o.name=s,this.tn.skip("="),o.id=n(this.tn.next()),"["===(s=this.tn.peek())&&this._parseFieldOptions(o),this.tn.skip(";")}else if("group"===(i=void 0!==i?i:this.tn.next())){if(a=this._parseMessage(e,o),!/^[A-Z]/.test(a.name))throw Error("illegal group name: "+a.name);o.type=a.name,o.name=a.name.toLowerCase(),this.tn.omit(";")}else{if(!t.TYPE.test(i)&&!t.TYPEREF.test(i))throw Error("illegal message field type: "+i);if(o.type=i,s=this.tn.next(),!t.NAME.test(s))throw Error("illegal message field name: "+s);o.name=s,this.tn.skip("="),o.id=n(this.tn.next()),"["===(s=this.tn.peek())&&this._parseFieldOptions(o),this.tn.skip(";")}return e.fields.push(o),o},s._parseMessageOneOf=function(e){var n,r,i,o=this.tn.next();if(!t.NAME.test(o))throw Error("illegal oneof name: "+o);for(r=o,i=[],this.tn.skip("{");"}"!==(o=this.tn.next());)(n=this._parseMessageField(e,"optional",o)).oneof=r,i.push(n.id);this.tn.omit(";"),e.oneofs[r]=i},s._parseFieldOptions=function(e){this.tn.skip("[");for(var t=!0;"]"!==this.tn.peek();)t||this.tn.skip(","),this._parseOption(e,!0),t=!1;this.tn.next()},s._parseEnum=function(e){var r,i={name:"",values:[],options:{}},o=this.tn.next();if(!t.NAME.test(o))throw Error("illegal name: "+o);for(i.name=o,this.tn.skip("{");"}"!==(o=this.tn.next());)if("option"===o)this._parseOption(i);else{if(!t.NAME.test(o))throw Error("illegal name: "+o);this.tn.skip("="),r={name:o,id:n(this.tn.next(),!0)},"["===(o=this.tn.peek())&&this._parseFieldOptions({options:{}}),this.tn.skip(";"),i.values.push(r)}this.tn.omit(";"),e.enums.push(i)},s._parseExtensionRanges=function(){var t,n,i,o=[];do{for(n=[];;){switch(t=this.tn.next()){case"min":i=e.ID_MIN;break;case"max":i=e.ID_MAX;break;default:i=r(t)}if(n.push(i),2===n.length)break;if("to"!==this.tn.peek()){n.push(i);break}this.tn.next()}o.push(n)}while(this.tn.omit(","));return this.tn.skip(";"),o},s._parseExtend=function(e){var n,r=this.tn.next();if(!t.TYPEREF.test(r))throw Error("illegal extend reference: "+r);for(n={ref:r,fields:[]},this.tn.skip("{");"}"!==(r=this.tn.next());)if(t.RULE.test(r))this._parseMessageField(n,r);else{if(!t.TYPEREF.test(r))throw Error("illegal extend token: "+r);if(!this.proto3)throw Error("illegal field rule: "+r);this._parseMessageField(n,"optional",r)}return this.tn.omit(";"),e.messages.push(n),n},s.toString=function(){return"Parser at line "+this.tn.line},a.Parser=o,a}(o,o.Lang),o.Reflect=function(e){function n(t,n){if(t&&"number"==typeof t.low&&"number"==typeof t.high&&"boolean"==typeof t.unsigned&&t.low==t.low&&t.high==t.high)return new e.Long(t.low,t.high,void 0===n?t.unsigned:n);if("string"==typeof t)return e.Long.fromString(t,n||!1,10);if("number"==typeof t)return e.Long.fromNumber(t,n||!1);throw Error("not convertible to Long")}function i(t,n){var r=n.readVarint32(),o=7&r,s=r>>>3;switch(o){case e.WIRE_TYPES.VARINT:do{r=n.readUint8()}while(128==(128&r));break;case e.WIRE_TYPES.BITS64:n.offset+=8;break;case e.WIRE_TYPES.LDELIM:r=n.readVarint32(),n.offset+=r;break;case e.WIRE_TYPES.STARTGROUP:i(s,n);break;case e.WIRE_TYPES.ENDGROUP:if(s===t)return!1;throw Error("Illegal GROUPEND after unknown group: "+s+" ("+t+" expected)");case e.WIRE_TYPES.BITS32:n.offset+=4;break;default:throw Error("Illegal wire type in unknown group "+t+": "+o)}return!0}var o,s,a,c,u,l,f,h,d,p,g,v,y,m,I,_,T={},C=function(e,t,n){this.builder=e,this.parent=t,this.name=n,this.className},M=C.prototype;return M.fqn=function(){for(var e=this.name,t=this;null!=(t=t.parent);)e=t.name+"."+e;return e},M.toString=function(e){return(e?this.className+" ":"")+this.fqn()},M.build=function(){throw Error(this.toString(!0)+" cannot be built directly")},T.T=C,o=function(e,t,n,r,i){C.call(this,e,t,n),this.className="Namespace",this.children=[],this.options=r||{},this.syntax=i||"proto2"},(s=o.prototype=Object.create(C.prototype)).getChildren=function(e){var t,n,r;if(null==(e=e||null))return this.children.slice();for(t=[],n=0,r=this.children.length;r>n;++n)this.children[n]instanceof e&&t.push(this.children[n]);return t},s.addChild=function(e){var t;if(t=this.getChild(e.name))if(t instanceof u.Field&&t.name!==t.originalName&&null===this.getChild(t.originalName))t.name=t.originalName;else{if(!(e instanceof u.Field&&e.name!==e.originalName&&null===this.getChild(e.originalName)))throw Error("Duplicate name in namespace "+this.toString(!0)+": "+e.name);e.name=e.originalName}this.children.push(e)},s.getChild=function(e){var t,n,r="number"==typeof e?"id":"name";for(t=0,n=this.children.length;n>t;++t)if(this.children[t][r]===e)return this.children[t];return null},s.resolve=function(e,t){var n,r="string"==typeof e?e.split("."):e,i=this,o=0;if(""===r[o]){for(;null!==i.parent;)i=i.parent;o++}do{do{if(!(i instanceof T.Namespace)){i=null;break}if(!((n=i.getChild(r[o]))&&n instanceof T.T&&(!t||n instanceof T.Namespace))){i=null;break}i=n,o++}while(o<r.length);if(null!=i)break;if(null!==this.parent)return this.parent.resolve(e,t)}while(null!=i);return i},s.qn=function(e){var t,n,r=[],i=e;do{r.unshift(i.name),i=i.parent}while(null!==i);for(t=1;t<=r.length;t++)if(n=r.slice(r.length-t),e===this.resolve(n,e instanceof T.Namespace))return n.join(".");return e.fqn()},s.build=function(){var e,t,n,r={},i=this.children;for(t=0,n=i.length;n>t;++t)(e=i[t])instanceof o&&(r[e.name]=e.build());return Object.defineProperty&&Object.defineProperty(r,"$options",{value:this.buildOpt()}),r},s.buildOpt=function(){var e,t,n,r,i={},o=Object.keys(this.options);for(e=0,t=o.length;t>e;++e)n=o[e],r=this.options[o[e]],i[n]=r;return i},s.getOption=function(e){return void 0===e?this.options:void 0!==this.options[e]?this.options[e]:null},T.Namespace=o,a=function(t,n,r,i){if(this.type=t,this.resolvedType=n,this.isMapKey=r,this.syntax=i,r&&e.MAP_KEY_TYPES.indexOf(t)<0)throw Error("Invalid map key type: "+t.name)},c=a.prototype,a.defaultFieldValue=function(t){if("string"==typeof t&&(t=e.TYPES[t]),void 0===t.defaultValue)throw Error("default value for type "+t.name+" is not supported");return t==e.TYPES.bytes?new r(0):t.defaultValue},c.verifyValue=function(r){var i,o,s,a=function(e,t){throw Error("Illegal value for "+this.toString(!0)+" of type "+this.type.name+": "+e+" ("+t+")")}.bind(this);switch(this.type){case e.TYPES.int32:case e.TYPES.sint32:case e.TYPES.sfixed32:return("number"!=typeof r||r==r&&r%1!=0)&&a(typeof r,"not an integer"),r>4294967295?0|r:r;case e.TYPES.uint32:case e.TYPES.fixed32:return("number"!=typeof r||r==r&&r%1!=0)&&a(typeof r,"not an integer"),r<0?r>>>0:r;case e.TYPES.int64:case e.TYPES.sint64:case e.TYPES.sfixed64:if(e.Long)try{return n(r,!1)}catch(t){a(typeof r,t.message)}else a(typeof r,"requires Long.js");case e.TYPES.uint64:case e.TYPES.fixed64:if(e.Long)try{return n(r,!0)}catch(t){a(typeof r,t.message)}else a(typeof r,"requires Long.js");case e.TYPES.bool:return"boolean"!=typeof r&&a(typeof r,"not a boolean"),r;case e.TYPES.float:case e.TYPES.double:return"number"!=typeof r&&a(typeof r,"not a number"),r;case e.TYPES.string:return"string"==typeof r||r&&r instanceof String||a(typeof r,"not a string"),""+r;case e.TYPES.bytes:return t.isByteBuffer(r)?r:t.wrap(r);case e.TYPES.enum:for(i=this.resolvedType.getChildren(e.Reflect.Enum.Value),s=0;s<i.length;s++){if(i[s].name==r)return i[s].id;if(i[s].id==r)return i[s].id}if("proto3"===this.syntax)return("number"!=typeof r||r==r&&r%1!=0)&&a(typeof r,"not an integer"),(r>4294967295||r<0)&&a(typeof r,"not in range for uint32"),r;a(r,"not a valid enum value");case e.TYPES.group:case e.TYPES.message:if(r&&"object"==typeof r||a(typeof r,"object expected"),r instanceof this.resolvedType.clazz)return r;if(r instanceof e.Builder.Message){for(s in o={},r)r.hasOwnProperty(s)&&(o[s]=r[s]);r=o}return new this.resolvedType.clazz(r)}throw Error("[INTERNAL] Illegal value for "+this.toString(!0)+": "+r+" (undefined type "+this.type+")")},c.calculateLength=function(t,n){if(null===n)return 0;var i;switch(this.type){case e.TYPES.int32:return n<0?r.calculateVarint64(n):r.calculateVarint32(n);case e.TYPES.uint32:return r.calculateVarint32(n);case e.TYPES.sint32:return r.calculateVarint32(r.zigZagEncode32(n));case e.TYPES.fixed32:case e.TYPES.sfixed32:case e.TYPES.float:return 4;case e.TYPES.int64:case e.TYPES.uint64:return r.calculateVarint64(n);case e.TYPES.sint64:return r.calculateVarint64(r.zigZagEncode64(n));case e.TYPES.fixed64:case e.TYPES.sfixed64:return 8;case e.TYPES.bool:return 1;case e.TYPES.enum:return r.calculateVarint32(n);case e.TYPES.double:return 8;case e.TYPES.string:return i=r.calculateUTF8Bytes(n),r.calculateVarint32(i)+i;case e.TYPES.bytes:if(n.remaining()<0)throw Error("Illegal value for "+this.toString(!0)+": "+n.remaining()+" bytes remaining");return r.calculateVarint32(n.remaining())+n.remaining();case e.TYPES.message:return i=this.resolvedType.calculate(n),r.calculateVarint32(i)+i;case e.TYPES.group:return(i=this.resolvedType.calculate(n))+r.calculateVarint32(t<<3|e.WIRE_TYPES.ENDGROUP)}throw Error("[INTERNAL] Illegal value to encode in "+this.toString(!0)+": "+n+" (unknown type)")},c.encodeValue=function(t,n,i){var o,s;if(null===n)return i;switch(this.type){case e.TYPES.int32:n<0?i.writeVarint64(n):i.writeVarint32(n);break;case e.TYPES.uint32:i.writeVarint32(n);break;case e.TYPES.sint32:i.writeVarint32ZigZag(n);break;case e.TYPES.fixed32:i.writeUint32(n);break;case e.TYPES.sfixed32:i.writeInt32(n);break;case e.TYPES.int64:case e.TYPES.uint64:i.writeVarint64(n);break;case e.TYPES.sint64:i.writeVarint64ZigZag(n);break;case e.TYPES.fixed64:i.writeUint64(n);break;case e.TYPES.sfixed64:i.writeInt64(n);break;case e.TYPES.bool:"string"==typeof n?i.writeVarint32("false"===n.toLowerCase()?0:!!n):i.writeVarint32(n?1:0);break;case e.TYPES.enum:i.writeVarint32(n);break;case e.TYPES.float:i.writeFloat32(n);break;case e.TYPES.double:i.writeFloat64(n);break;case e.TYPES.string:i.writeVString(n);break;case e.TYPES.bytes:if(n.remaining()<0)throw Error("Illegal value for "+this.toString(!0)+": "+n.remaining()+" bytes remaining");o=n.offset,i.writeVarint32(n.remaining()),i.append(n),n.offset=o;break;case e.TYPES.message:s=(new r).LE(),this.resolvedType.encode(n,s),i.writeVarint32(s.offset),i.append(s.flip());break;case e.TYPES.group:this.resolvedType.encode(n,i),i.writeVarint32(t<<3|e.WIRE_TYPES.ENDGROUP);break;default:throw Error("[INTERNAL] Illegal value to encode in "+this.toString(!0)+": "+n+" (unknown type)")}return i},c.decode=function(t,n,r){if(n!=this.type.wireType)throw Error("Unexpected wire type for element");var i,o;switch(this.type){case e.TYPES.int32:return 0|t.readVarint32();case e.TYPES.uint32:return t.readVarint32()>>>0;case e.TYPES.sint32:return 0|t.readVarint32ZigZag();case e.TYPES.fixed32:return t.readUint32()>>>0;case e.TYPES.sfixed32:return 0|t.readInt32();case e.TYPES.int64:return t.readVarint64();case e.TYPES.uint64:return t.readVarint64().toUnsigned();case e.TYPES.sint64:return t.readVarint64ZigZag();case e.TYPES.fixed64:return t.readUint64();case e.TYPES.sfixed64:return t.readInt64();case e.TYPES.bool:return!!t.readVarint32();case e.TYPES.enum:return t.readVarint32();case e.TYPES.float:return t.readFloat();case e.TYPES.double:return t.readDouble();case e.TYPES.string:return t.readVString();case e.TYPES.bytes:if(o=t.readVarint32(),t.remaining()<o)throw Error("Illegal number of bytes for "+this.toString(!0)+": "+o+" required but got only "+t.remaining());return(i=t.clone()).limit=i.offset+o,t.offset+=o,i;case e.TYPES.message:return o=t.readVarint32(),this.resolvedType.decode(t,o);case e.TYPES.group:return this.resolvedType.decode(t,-1,r)}throw Error("[INTERNAL] Illegal decode type")},c.valueFromString=function(t){if(!this.isMapKey)throw Error("valueFromString() called on non-map-key element");switch(this.type){case e.TYPES.int32:case e.TYPES.sint32:case e.TYPES.sfixed32:case e.TYPES.uint32:case e.TYPES.fixed32:return this.verifyValue(parseInt(t));case e.TYPES.int64:case e.TYPES.sint64:case e.TYPES.sfixed64:case e.TYPES.uint64:case e.TYPES.fixed64:return this.verifyValue(t);case e.TYPES.bool:return"true"===t;case e.TYPES.string:return this.verifyValue(t);case e.TYPES.bytes:return r.fromBinary(t)}},c.valueToString=function(t){if(!this.isMapKey)throw Error("valueToString() called on non-map-key element");return this.type===e.TYPES.bytes?t.toString("binary"):t.toString()},T.Element=a,u=function(e,t,n,r,i,s){o.call(this,e,t,n,r,s),this.className="Message",this.extensions=void 0,this.clazz=null,this.isGroup=!!i,this._fields=null,this._fieldsById=null,this._fieldsByName=null},(l=u.prototype=Object.create(o.prototype)).build=function(n){var i,o,s,a;if(this.clazz&&!n)return this.clazz;for(i=function(e,n){function i(t,n,o,s){var a,c,u,l,f,h,d;if(null===t||"object"!=typeof t)return s&&s instanceof e.Reflect.Enum&&null!==(a=e.Reflect.Enum.getName(s.object,t))?a:t;if(r.isByteBuffer(t))return n?t.toBase64():t.toBuffer();if(e.Long.isLong(t))return o?t.toString():e.Long.fromValue(t);if(Array.isArray(t))return c=[],t.forEach((function(e,t){c[t]=i(e,n,o,s)})),c;if(c={},t instanceof e.Map){for(l=(u=t.entries()).next();!l.done;l=u.next())c[t.keyElem.valueToString(l.value[0])]=i(l.value[1],n,o,t.valueElem.resolvedType);return c}for(d in f=t.$type,h=void 0,t)t.hasOwnProperty(d)&&(c[d]=f&&(h=f.getChild(d))?i(t[d],n,o,h.resolvedType):i(t[d],n,o));return c}var o,s,a=n.getChildren(e.Reflect.Message.Field),c=n.getChildren(e.Reflect.Message.OneOf),u=function(t){var i,o,s,l;for(e.Builder.Message.call(this),i=0,o=c.length;o>i;++i)this[c[i].name]=null;for(i=0,o=a.length;o>i;++i)this[(s=a[i]).name]=s.repeated?[]:s.map?new e.Map(s):null,!s.required&&"proto3"!==n.syntax||null===s.defaultValue||(this[s.name]=s.defaultValue);if(arguments.length>0)if(1!==arguments.length||null===t||"object"!=typeof t||!("function"!=typeof t.encode||t instanceof u)||Array.isArray(t)||t instanceof e.Map||r.isByteBuffer(t)||t instanceof ArrayBuffer||e.Long&&t instanceof e.Long)for(i=0,o=arguments.length;o>i;++i)void 0!==(l=arguments[i])&&this.$set(a[i].name,l);else this.$set(t)},l=u.prototype=Object.create(e.Builder.Message.prototype);for(l.add=function(t,r,i){var o=n._fieldsByName[t];if(!i){if(!o)throw Error(this+"#"+t+" is undefined");if(!(o instanceof e.Reflect.Message.Field))throw Error(this+"#"+t+" is not a field: "+o.toString(!0));if(!o.repeated)throw Error(this+"#"+t+" is not a repeated field");r=o.verifyValue(r,!0)}return null===this[t]&&(this[t]=[]),this[t].push(r),this},l.$add=l.add,l.set=function(t,r,i){var o,s,a;if(t&&"object"==typeof t){for(o in i=r,t)t.hasOwnProperty(o)&&void 0!==(r=t[o])&&this.$set(o,r,i);return this}if(s=n._fieldsByName[t],i)this[t]=r;else{if(!s)throw Error(this+"#"+t+" is not a field: undefined");if(!(s instanceof e.Reflect.Message.Field))throw Error(this+"#"+t+" is not a field: "+s.toString(!0));this[s.name]=r=s.verifyValue(r)}return s&&s.oneof&&(a=this[s.oneof.name],null!==r?(null!==a&&a!==s.name&&(this[a]=null),this[s.oneof.name]=s.name):a===t&&(this[s.oneof.name]=null)),this},l.$set=l.set,l.get=function(t,r){if(r)return this[t];var i=n._fieldsByName[t];if(!(i&&i instanceof e.Reflect.Message.Field))throw Error(this+"#"+t+" is not a field: undefined");if(!(i instanceof e.Reflect.Message.Field))throw Error(this+"#"+t+" is not a field: "+i.toString(!0));return this[i.name]},l.$get=l.get,o=0;o<a.length;o++)(s=a[o])instanceof e.Reflect.Message.ExtensionField||n.builder.options.populateAccessors&&function(e){var t,r,i,o=e.originalName.replace(/(_[a-zA-Z])/g,(function(e){return e.toUpperCase().replace("_","")}));o=o.substring(0,1).toUpperCase()+o.substring(1),t=e.originalName.replace(/([A-Z])/g,(function(e){return"_"+e})),r=function(t,n){return this[e.name]=n?t:e.verifyValue(t),this},i=function(){return this[e.name]},null===n.getChild("set"+o)&&(l["set"+o]=r),null===n.getChild("set_"+t)&&(l["set_"+t]=r),null===n.getChild("get"+o)&&(l["get"+o]=i),null===n.getChild("get_"+t)&&(l["get_"+t]=i)}(s);return l.encode=function(e,r){var i,o;"boolean"==typeof e&&(r=e,e=void 0),i=!1,e||(e=new t,i=!0),o=e.littleEndian;try{return n.encode(this,e.LE(),r),(i?e.flip():e).LE(o)}catch(t){throw e.LE(o),t}},u.encode=function(e,t,n){return new u(e).encode(t,n)},l.calculate=function(){return n.calculate(this)},l.encodeDelimited=function(e){var t,i=!1;return e||(e=new r,i=!0),t=(new r).LE(),n.encode(this,t).flip(),e.writeVarint32(t.remaining()),e.append(t),i?e.flip():e},l.encodeAB=function(){try{return this.encode().toArrayBuffer()}catch(t){throw t.encoded&&(t.encoded=t.encoded.toArrayBuffer()),t}},l.toArrayBuffer=l.encodeAB,l.encodeNB=function(){try{return this.encode().toBuffer()}catch(t){throw t.encoded&&(t.encoded=t.encoded.toBuffer()),t}},l.toBuffer=l.encodeNB,l.encode64=function(){try{return this.encode().toBase64()}catch(t){throw t.encoded&&(t.encoded=t.encoded.toBase64()),t}},l.toBase64=l.encode64,l.encodeHex=function(){try{return this.encode().toHex()}catch(t){throw t.encoded&&(t.encoded=t.encoded.toHex()),t}},l.toHex=l.encodeHex,l.toRaw=function(e,t){return i(this,!!e,!!t,this.$type)},l.encodeJSON=function(){return JSON.stringify(i(this,!0,!0,this.$type))},u.decode=function(e,t){var i,o;"string"==typeof e&&(e=r.wrap(e,t||"base64")),i=(e=r.isByteBuffer(e)?e:r.wrap(e)).littleEndian;try{return o=n.decode(e.LE()),e.LE(i),o}catch(t){throw e.LE(i),t}},u.decodeDelimited=function(e,t){var i,o,s;if("string"==typeof e&&(e=r.wrap(e,t||"base64")),(e=r.isByteBuffer(e)?e:r.wrap(e)).remaining()<1)return null;if(i=e.offset,o=e.readVarint32(),e.remaining()<o)return e.offset=i,null;try{return s=n.decode(e.slice(e.offset,e.offset+o).LE()),e.offset+=o,s}catch(t){throw e.offset+=o,t}},u.decode64=function(e){return u.decode(e,"base64")},u.decodeHex=function(e){return u.decode(e,"hex")},u.decodeJSON=function(e){return new u(JSON.parse(e))},l.toString=function(){return n.toString()},Object.defineProperty&&(Object.defineProperty(u,"$options",{value:n.buildOpt()}),Object.defineProperty(l,"$options",{value:u.$options}),Object.defineProperty(u,"$type",{value:n}),Object.defineProperty(l,"$type",{value:n})),u}(e,this),this._fields=[],this._fieldsById={},this._fieldsByName={},s=0,a=this.children.length;a>s;s++)if((o=this.children[s])instanceof g||o instanceof u||o instanceof m){if(i.hasOwnProperty(o.name))throw Error("Illegal reflect child of "+this.toString(!0)+": "+o.toString(!0)+" cannot override static property '"+o.name+"'");i[o.name]=o.build()}else if(o instanceof u.Field)o.build(),this._fields.push(o),this._fieldsById[o.id]=o,this._fieldsByName[o.name]=o;else if(!(o instanceof u.OneOf||o instanceof y))throw Error("Illegal reflect child of "+this.toString(!0)+": "+this.children[s].toString(!0));return this.clazz=i},l.encode=function(e,t,n){var r,i,o,s,a,c=null;for(o=0,s=this._fields.length;s>o;++o)i=e[(r=this._fields[o]).name],r.required&&null===i?null===c&&(c=r):r.encode(n?i:r.verifyValue(i),t,e);if(null!==c)throw(a=Error("Missing at least one required field for "+this.toString(!0)+": "+c)).encoded=t,a;return t},l.calculate=function(e){for(var t,n,r=0,i=0,o=this._fields.length;o>i;++i){if(n=e[(t=this._fields[i]).name],t.required&&null===n)throw Error("Missing at least one required field for "+this.toString(!0)+": "+t);r+=t.calculate(n,e)}return r},l.decode=function(t,n,r){var o,s,a,c,u,l,f,h,d,p,g,v;for(n="number"==typeof n?n:-1,u=t.offset,l=new this.clazz;t.offset<u+n||-1===n&&t.remaining()>0;){if(a=(o=t.readVarint32())>>>3,(s=7&o)===e.WIRE_TYPES.ENDGROUP){if(a!==r)throw Error("Illegal group end indicator for "+this.toString(!0)+": "+a+" ("+(r?r+" expected":"not a group")+")");break}if(c=this._fieldsById[a])c.repeated&&!c.options.packed?l[c.name].push(c.decode(s,t)):c.map?(h=c.decode(s,t),l[c.name].set(h[0],h[1])):(l[c.name]=c.decode(s,t),c.oneof&&(null!==(d=l[c.oneof.name])&&d!==c.name&&(l[d]=null),l[c.oneof.name]=c.name));else switch(s){case e.WIRE_TYPES.VARINT:t.readVarint32();break;case e.WIRE_TYPES.BITS32:t.offset+=4;break;case e.WIRE_TYPES.BITS64:t.offset+=8;break;case e.WIRE_TYPES.LDELIM:f=t.readVarint32(),t.offset+=f;break;case e.WIRE_TYPES.STARTGROUP:for(;i(a,t););break;default:throw Error("Illegal wire type for unknown field "+a+" in "+this.toString(!0)+"#decode: "+s)}}for(p=0,g=this._fields.length;g>p;++p)if(null===l[(c=this._fields[p]).name])if("proto3"===this.syntax)l[c.name]=c.defaultValue;else{if(c.required)throw(v=Error("Missing at least one required field for "+this.toString(!0)+": "+c.name)).decoded=l,v;e.populateDefaults&&null!==c.defaultValue&&(l[c.name]=c.defaultValue)}return l},T.Message=u,f=function(t,n,r,i,o,s,a,c,l,f){C.call(this,t,n,s),this.className="Message.Field",this.required="required"===r,this.repeated="repeated"===r,this.map="map"===r,this.keyType=i||null,this.type=o,this.resolvedType=null,this.id=a,this.options=c||{},this.defaultValue=null,this.oneof=l||null,this.syntax=f||"proto2",this.originalName=this.name,this.element=null,this.keyElement=null,!this.builder.options.convertFieldsToCamelCase||this instanceof u.ExtensionField||(this.name=e.Util.toCamelCase(this.name))},(h=f.prototype=Object.create(C.prototype)).build=function(){this.element=new a(this.type,this.resolvedType,!1,this.syntax),this.map&&(this.keyElement=new a(this.keyType,void 0,!0,this.syntax)),"proto3"!==this.syntax||this.repeated||this.map?void 0!==this.options.default&&(this.defaultValue=this.verifyValue(this.options.default)):this.defaultValue=a.defaultFieldValue(this.type)},h.verifyValue=function(t,n){var r,i,o;if(n=n||!1,r=function(e,t){throw Error("Illegal value for "+this.toString(!0)+" of type "+this.type.name+": "+e+" ("+t+")")}.bind(this),null===t)return this.required&&r(typeof t,"required"),"proto3"===this.syntax&&this.type!==e.TYPES.message&&r(typeof t,"proto3 field without field presence cannot be null"),null;if(this.repeated&&!n){for(Array.isArray(t)||(t=[t]),o=[],i=0;i<t.length;i++)o.push(this.element.verifyValue(t[i]));return o}return this.map&&!n?t instanceof e.Map?t:(t instanceof Object||r(typeof t,"expected ProtoBuf.Map or raw object for map field"),new e.Map(this,t)):(!this.repeated&&Array.isArray(t)&&r(typeof t,"no array expected"),this.element.verifyValue(t))},h.hasWirePresence=function(t,n){if("proto3"!==this.syntax)return null!==t;if(this.oneof&&n[this.oneof.name]===this.name)return!0;switch(this.type){case e.TYPES.int32:case e.TYPES.sint32:case e.TYPES.sfixed32:case e.TYPES.uint32:case e.TYPES.fixed32:return 0!==t;case e.TYPES.int64:case e.TYPES.sint64:case e.TYPES.sfixed64:case e.TYPES.uint64:case e.TYPES.fixed64:return 0!==t.low||0!==t.high;case e.TYPES.bool:return t;case e.TYPES.float:case e.TYPES.double:return 0!==t;case e.TYPES.string:return t.length>0;case e.TYPES.bytes:return t.remaining()>0;case e.TYPES.enum:return 0!==t;case e.TYPES.message:return null!==t;default:return!0}},h.encode=function(t,n,i){var o,s,a,c,u;if(null===this.type||"object"!=typeof this.type)throw Error("[INTERNAL] Unresolved type in "+this.toString(!0)+": "+this.type);if(null===t||this.repeated&&0==t.length)return n;try{if(this.repeated)if(this.options.packed&&e.PACKABLE_WIRE_TYPES.indexOf(this.type.wireType)>=0){for(n.writeVarint32(this.id<<3|e.WIRE_TYPES.LDELIM),n.ensureCapacity(n.offset+=1),s=n.offset,o=0;o<t.length;o++)this.element.encodeValue(this.id,t[o],n);a=n.offset-s,(c=r.calculateVarint32(a))>1&&(u=n.slice(s,n.offset),s+=c-1,n.offset=s,n.append(u)),n.writeVarint32(a,s-c)}else for(o=0;o<t.length;o++)n.writeVarint32(this.id<<3|this.type.wireType),this.element.encodeValue(this.id,t[o],n);else this.map?t.forEach((function(t,i){var o=r.calculateVarint32(8|this.keyType.wireType)+this.keyElement.calculateLength(1,i)+r.calculateVarint32(16|this.type.wireType)+this.element.calculateLength(2,t);n.writeVarint32(this.id<<3|e.WIRE_TYPES.LDELIM),n.writeVarint32(o),n.writeVarint32(8|this.keyType.wireType),this.keyElement.encodeValue(1,i,n),n.writeVarint32(16|this.type.wireType),this.element.encodeValue(2,t,n)}),this):this.hasWirePresence(t,i)&&(n.writeVarint32(this.id<<3|this.type.wireType),this.element.encodeValue(this.id,t,n))}catch(e){throw Error("Illegal value for "+this.toString(!0)+": "+t+" ("+e+")")}return n},h.calculate=function(t,n){var i,o,s;if(t=this.verifyValue(t),null===this.type||"object"!=typeof this.type)throw Error("[INTERNAL] Unresolved type in "+this.toString(!0)+": "+this.type);if(null===t||this.repeated&&0==t.length)return 0;i=0;try{if(this.repeated)if(this.options.packed&&e.PACKABLE_WIRE_TYPES.indexOf(this.type.wireType)>=0){for(i+=r.calculateVarint32(this.id<<3|e.WIRE_TYPES.LDELIM),s=0,o=0;o<t.length;o++)s+=this.element.calculateLength(this.id,t[o]);i+=r.calculateVarint32(s),i+=s}else for(o=0;o<t.length;o++)i+=r.calculateVarint32(this.id<<3|this.type.wireType),i+=this.element.calculateLength(this.id,t[o]);else this.map?t.forEach((function(t,n){var o=r.calculateVarint32(8|this.keyType.wireType)+this.keyElement.calculateLength(1,n)+r.calculateVarint32(16|this.type.wireType)+this.element.calculateLength(2,t);i+=r.calculateVarint32(this.id<<3|e.WIRE_TYPES.LDELIM),i+=r.calculateVarint32(o),i+=o}),this):this.hasWirePresence(t,n)&&(i+=r.calculateVarint32(this.id<<3|this.type.wireType),i+=this.element.calculateLength(this.id,t))}catch(e){throw Error("Illegal value for "+this.toString(!0)+": "+t+" ("+e+")")}return i},h.decode=function(t,n,r){var i,o,s,c,u,l,f;if(!(!this.map&&t==this.type.wireType||!r&&this.repeated&&this.options.packed&&t==e.WIRE_TYPES.LDELIM||this.map&&t==e.WIRE_TYPES.LDELIM))throw Error("Illegal wire type for field "+this.toString(!0)+": "+t+" ("+this.type.wireType+" expected)");if(t==e.WIRE_TYPES.LDELIM&&this.repeated&&this.options.packed&&e.PACKABLE_WIRE_TYPES.indexOf(this.type.wireType)>=0&&!r){for(o=n.readVarint32(),o=n.offset+o,s=[];n.offset<o;)s.push(this.decode(this.type.wireType,n,!0));return s}if(this.map){if(c=a.defaultFieldValue(this.keyType),i=a.defaultFieldValue(this.type),o=n.readVarint32(),n.remaining()<o)throw Error("Illegal number of bytes for "+this.toString(!0)+": "+o+" required but got only "+n.remaining());for((u=n.clone()).limit=u.offset+o,n.offset+=o;u.remaining()>0;)if(t=7&(l=u.readVarint32()),1==(f=l>>>3))c=this.keyElement.decode(u,t,f);else{if(2!==f)throw Error("Unexpected tag in map field key/value submessage");i=this.element.decode(u,t,f)}return[c,i]}return this.element.decode(n,t,this.id)},T.Message.Field=f,d=function(e,t,n,r,i,o,s){f.call(this,e,t,n,null,r,i,o,s),this.extension},d.prototype=Object.create(f.prototype),T.Message.ExtensionField=d,p=function(e,t,n){C.call(this,e,t,n),this.fields=[]},T.Message.OneOf=p,g=function(e,t,n,r,i){o.call(this,e,t,n,r,i),this.className="Enum",this.object=null},g.getName=function(e,t){var n,r,i=Object.keys(e);for(r=0;r<i.length;++r)if(e[n=i[r]]===t)return n;return null},(g.prototype=Object.create(o.prototype)).build=function(t){var n,r,i,o;if(this.object&&!t)return this.object;for(n=new e.Builder.Enum,i=0,o=(r=this.getChildren(g.Value)).length;o>i;++i)n[r[i].name]=r[i].id;return Object.defineProperty&&Object.defineProperty(n,"$options",{value:this.buildOpt(),enumerable:!1}),this.object=n},T.Enum=g,v=function(e,t,n,r){C.call(this,e,t,n),this.className="Enum.Value",this.id=r},v.prototype=Object.create(C.prototype),T.Enum.Value=v,y=function(e,t,n,r){C.call(this,e,t,n),this.field=r},y.prototype=Object.create(C.prototype),T.Extension=y,m=function(e,t,n,r){o.call(this,e,t,n,r),this.className="Service",this.clazz=null},(m.prototype=Object.create(o.prototype)).build=function(t){return this.clazz&&!t?this.clazz:this.clazz=function(e,t){var n,i=function(t){e.Builder.Service.call(this),this.rpcImpl=t||function(e,t,n){setTimeout(n.bind(this,Error("Not implemented, see: https://github.com/dcodeIO/ProtoBuf.js/wiki/Services")),0)}},o=i.prototype=Object.create(e.Builder.Service.prototype),s=t.getChildren(e.Reflect.Service.RPCMethod);for(n=0;n<s.length;n++)!function(e){o[e.name]=function(n,i){try{try{n=e.resolvedRequestType.clazz.decode(r.wrap(n))}catch(e){if(!(e instanceof TypeError))throw e}if(null===n||"object"!=typeof n)throw Error("Illegal arguments");n instanceof e.resolvedRequestType.clazz||(n=new e.resolvedRequestType.clazz(n)),this.rpcImpl(e.fqn(),n,(function(n,r){if(!n){try{r=e.resolvedResponseType.clazz.decode(r)}catch(e){}return r&&r instanceof e.resolvedResponseType.clazz?void i(null,r):void i(Error("Illegal response type received in service method "+t.name+"#"+e.name))}i(n)}))}catch(e){setTimeout(i.bind(this,e),0)}},i[e.name]=function(t,n,r){new i(t)[e.name](n,r)},Object.defineProperty&&(Object.defineProperty(i[e.name],"$options",{value:e.buildOpt()}),Object.defineProperty(o[e.name],"$options",{value:i[e.name].$options}))}(s[n]);return Object.defineProperty&&(Object.defineProperty(i,"$options",{value:t.buildOpt()}),Object.defineProperty(o,"$options",{value:i.$options}),Object.defineProperty(i,"$type",{value:t}),Object.defineProperty(o,"$type",{value:t})),i}(e,this)},T.Service=m,I=function(e,t,n,r){C.call(this,e,t,n),this.className="Service.Method",this.options=r||{}},(I.prototype=Object.create(C.prototype)).buildOpt=s.buildOpt,T.Service.Method=I,_=function(e,t,n,r,i,o,s,a){I.call(this,e,t,n,a),this.className="Service.RPCMethod",this.requestName=r,this.responseName=i,this.requestStream=o,this.responseStream=s,this.resolvedRequestType=null,this.resolvedResponseType=null},_.prototype=Object.create(I.prototype),T.Service.RPCMethod=_,T}(o),o.Builder=function(e,t,n){function r(e){e.messages&&e.messages.forEach((function(t){t.syntax=e.syntax,r(t)})),e.enums&&e.enums.forEach((function(t){t.syntax=e.syntax}))}var i=function(e){this.ns=new n.Namespace(this,null,""),this.ptr=this.ns,this.resolved=!1,this.result=null,this.files={},this.importRoot=null,this.options=e||{}},o=i.prototype;return i.isMessage=function(e){return"string"==typeof e.name&&void 0===e.values&&void 0===e.rpc},i.isMessageField=function(e){return"string"==typeof e.rule&&"string"==typeof e.name&&"string"==typeof e.type&&void 0!==e.id},i.isEnum=function(e){return"string"==typeof e.name&&!(void 0===e.values||!Array.isArray(e.values)||0===e.values.length)},i.isService=function(e){return!("string"!=typeof e.name||"object"!=typeof e.rpc||!e.rpc)},i.isExtend=function(e){return"string"==typeof e.ref},o.reset=function(){return this.ptr=this.ns,this},o.define=function(e){if("string"!=typeof e||!t.TYPEREF.test(e))throw Error("illegal namespace: "+e);return e.split(".").forEach((function(e){var t=this.ptr.getChild(e);null===t&&this.ptr.addChild(t=new n.Namespace(this,this.ptr,e)),this.ptr=t}),this),this},o.create=function(t){var r,o,s,a,c;if(!t)return this;if(Array.isArray(t)){if(0===t.length)return this;t=t.slice()}else t=[t];for(r=[t];r.length>0;){if(t=r.pop(),!Array.isArray(t))throw Error("not a valid namespace: "+JSON.stringify(t));for(;t.length>0;){if(o=t.shift(),i.isMessage(o)){if(s=new n.Message(this,this.ptr,o.name,o.options,o.isGroup,o.syntax),a={},o.oneofs&&Object.keys(o.oneofs).forEach((function(e){s.addChild(a[e]=new n.Message.OneOf(this,s,e))}),this),o.fields&&o.fields.forEach((function(e){if(null!==s.getChild(0|e.id))throw Error("duplicate or invalid field id in "+s.name+": "+e.id);if(e.options&&"object"!=typeof e.options)throw Error("illegal field options in "+s.name+"#"+e.name);var t=null;if("string"==typeof e.oneof&&!(t=a[e.oneof]))throw Error("illegal oneof in "+s.name+"#"+e.name+": "+e.oneof);e=new n.Message.Field(this,s,e.rule,e.keytype,e.type,e.name,e.id,e.options,t,o.syntax),t&&t.fields.push(e),s.addChild(e)}),this),c=[],o.enums&&o.enums.forEach((function(e){c.push(e)})),o.messages&&o.messages.forEach((function(e){c.push(e)})),o.services&&o.services.forEach((function(e){c.push(e)})),o.extensions&&(s.extensions="number"==typeof o.extensions[0]?[o.extensions]:o.extensions),this.ptr.addChild(s),c.length>0){r.push(t),t=c,c=null,this.ptr=s,s=null;continue}c=null}else if(i.isEnum(o))s=new n.Enum(this,this.ptr,o.name,o.options,o.syntax),o.values.forEach((function(e){s.addChild(new n.Enum.Value(this,s,e.name,e.id))}),this),this.ptr.addChild(s);else if(i.isService(o))s=new n.Service(this,this.ptr,o.name,o.options),Object.keys(o.rpc).forEach((function(e){var t=o.rpc[e];s.addChild(new n.Service.RPCMethod(this,s,e,t.request,t.response,!!t.request_stream,!!t.response_stream,t.options))}),this),this.ptr.addChild(s);else{if(!i.isExtend(o))throw Error("not a valid definition: "+JSON.stringify(o));if(s=this.ptr.resolve(o.ref,!0))o.fields.forEach((function(t){var r,i,o,a;if(null!==s.getChild(0|t.id))throw Error("duplicate extended field id in "+s.name+": "+t.id);if(s.extensions&&(r=!1,s.extensions.forEach((function(e){t.id>=e[0]&&t.id<=e[1]&&(r=!0)})),!r))throw Error("illegal extended field id in "+s.name+": "+t.id+" (not within valid ranges)");i=t.name,this.options.convertFieldsToCamelCase&&(i=e.Util.toCamelCase(i)),o=new n.Message.ExtensionField(this,s,t.rule,t.type,this.ptr.fqn()+"."+i,t.id,t.options),a=new n.Extension(this,this.ptr,t.name,o),o.extension=a,this.ptr.addChild(a),s.addChild(o)}),this);else if(!/\.?google\.protobuf\./.test(o.ref))throw Error("extended message "+o.ref+" is not defined")}o=null,s=null}t=null,this.ptr=this.ptr.parent}return this.resolved=!1,this.result=null,this},o.import=function(t,n){var i,o,s,a,c,u,l,f,h="/";if("string"==typeof n){if(e.Util.IS_NODE,!0===this.files[n])return this.reset();this.files[n]=!0}else if("object"==typeof n){if(i=n.root,e.Util.IS_NODE,(i.indexOf("\\")>=0||n.file.indexOf("\\")>=0)&&(h="\\"),o=i+h+n.file,!0===this.files[o])return this.reset();this.files[o]=!0}if(t.imports&&t.imports.length>0){for(a=!1,"object"==typeof n?(this.importRoot=n.root,a=!0,s=this.importRoot,n=n.file,(s.indexOf("\\")>=0||n.indexOf("\\")>=0)&&(h="\\")):"string"==typeof n?this.importRoot?s=this.importRoot:n.indexOf("/")>=0?""===(s=n.replace(/\/[^\/]*$/,""))&&(s="/"):n.indexOf("\\")>=0?(s=n.replace(/\\[^\\]*$/,""),h="\\"):s=".":s=null,c=0;c<t.imports.length;c++)if("string"==typeof t.imports[c]){if(!s)throw Error("cannot determine import root");if("google/protobuf/descriptor.proto"===(u=t.imports[c]))continue;if(u=s+h+u,!0===this.files[u])continue;if(/\.proto$/i.test(u)&&!e.DotProto&&(u=u.replace(/\.proto$/,".json")),null===(l=e.Util.fetch(u)))throw Error("failed to import '"+u+"' in '"+n+"': file not found");/\.json$/i.test(u)?this.import(JSON.parse(l+""),u):this.import(e.DotProto.Parser.parse(l),u)}else n?/\.(\w+)$/.test(n)?this.import(t.imports[c],n.replace(/^(.+)\.(\w+)$/,(function(e,t,n){return t+"_import"+c+"."+n}))):this.import(t.imports[c],n+"_import"+c):this.import(t.imports[c]);a&&(this.importRoot=null)}return t.package&&this.define(t.package),t.syntax&&r(t),f=this.ptr,t.options&&Object.keys(t.options).forEach((function(e){f.options[e]=t.options[e]})),t.messages&&(this.create(t.messages),this.ptr=f),t.enums&&(this.create(t.enums),this.ptr=f),t.services&&(this.create(t.services),this.ptr=f),t.extends&&this.create(t.extends),this.reset()},o.resolveAll=function(){var r;if(null==this.ptr||"object"==typeof this.ptr.type)return this;if(this.ptr instanceof n.Namespace)this.ptr.children.forEach((function(e){this.ptr=e,this.resolveAll()}),this);else if(this.ptr instanceof n.Message.Field){if(t.TYPE.test(this.ptr.type))this.ptr.type=e.TYPES[this.ptr.type];else{if(!t.TYPEREF.test(this.ptr.type))throw Error("illegal type reference in "+this.ptr.toString(!0)+": "+this.ptr.type);if(!(r=(this.ptr instanceof n.Message.ExtensionField?this.ptr.extension.parent:this.ptr.parent).resolve(this.ptr.type,!0)))throw Error("unresolvable type reference in "+this.ptr.toString(!0)+": "+this.ptr.type);if(this.ptr.resolvedType=r,r instanceof n.Enum){if(this.ptr.type=e.TYPES.enum,"proto3"===this.ptr.syntax&&"proto3"!==r.syntax)throw Error("proto3 message cannot reference proto2 enum")}else{if(!(r instanceof n.Message))throw Error("illegal type reference in "+this.ptr.toString(!0)+": "+this.ptr.type);this.ptr.type=r.isGroup?e.TYPES.group:e.TYPES.message}}if(this.ptr.map){if(!t.TYPE.test(this.ptr.keyType))throw Error("illegal key type for map field in "+this.ptr.toString(!0)+": "+this.ptr.keyType);this.ptr.keyType=e.TYPES[this.ptr.keyType]}}else if(this.ptr instanceof e.Reflect.Service.Method){if(!(this.ptr instanceof e.Reflect.Service.RPCMethod))throw Error("illegal service type in "+this.ptr.toString(!0));if(!((r=this.ptr.parent.resolve(this.ptr.requestName,!0))&&r instanceof e.Reflect.Message))throw Error("Illegal type reference in "+this.ptr.toString(!0)+": "+this.ptr.requestName);if(this.ptr.resolvedRequestType=r,!((r=this.ptr.parent.resolve(this.ptr.responseName,!0))&&r instanceof e.Reflect.Message))throw Error("Illegal type reference in "+this.ptr.toString(!0)+": "+this.ptr.responseName);this.ptr.resolvedResponseType=r}else if(!(this.ptr instanceof e.Reflect.Message.OneOf||this.ptr instanceof e.Reflect.Extension||this.ptr instanceof e.Reflect.Enum.Value))throw Error("illegal object in namespace: "+typeof this.ptr+": "+this.ptr);return this.reset()},o.build=function(e){var t,n,r;if(this.reset(),this.resolved||(this.resolveAll(),this.resolved=!0,this.result=null),null===this.result&&(this.result=this.ns.build()),!e)return this.result;for(t="string"==typeof e?e.split("."):e,n=this.result,r=0;r<t.length;r++){if(!n[t[r]]){n=null;break}n=n[t[r]]}return n},o.lookup=function(e,t){return e?this.ns.resolve(e,t):this.ns},o.toString=function(){return"Builder"},i.Message=function(){},i.Enum=function(){},i.Service=function(){},i}(o,o.Lang,o.Reflect),o.Map=function(e,t){function n(e){var t=0;return{next:function(){return t<e.length?{done:!1,value:e[t++]}:{done:!0}}}}var r=function(e,n){var r,i,o,s;if(!e.map)throw Error("field is not a map");if(this.field=e,this.keyElem=new t.Element(e.keyType,null,!0,e.syntax),this.valueElem=new t.Element(e.type,e.resolvedType,!1,e.syntax),this.map={},Object.defineProperty(this,"size",{get:function(){return Object.keys(this.map).length}}),n)for(r=Object.keys(n),i=0;i<r.length;i++)o=this.keyElem.valueFromString(r[i]),s=this.valueElem.verifyValue(n[r[i]]),this.map[this.keyElem.valueToString(o)]={key:o,value:s}},i=r.prototype;return i.clear=function(){this.map={}},i.delete=function(e){var t=this.keyElem.valueToString(this.keyElem.verifyValue(e)),n=t in this.map;return delete this.map[t],n},i.entries=function(){var e,t,r=[],i=Object.keys(this.map);for(t=0;t<i.length;t++)r.push([(e=this.map[i[t]]).key,e.value]);return n(r)},i.keys=function(){var e,t=[],r=Object.keys(this.map);for(e=0;e<r.length;e++)t.push(this.map[r[e]].key);return n(t)},i.values=function(){var e,t=[],r=Object.keys(this.map);for(e=0;e<r.length;e++)t.push(this.map[r[e]].value);return n(t)},i.forEach=function(e,t){var n,r,i=Object.keys(this.map);for(r=0;r<i.length;r++)e.call(t,(n=this.map[i[r]]).value,n.key,this)},i.set=function(e,t){var n=this.keyElem.verifyValue(e),r=this.valueElem.verifyValue(t);return this.map[this.keyElem.valueToString(n)]={key:n,value:r},this},i.get=function(e){var t=this.keyElem.valueToString(this.keyElem.verifyValue(e));return t in this.map?this.map[t].value:void 0},i.has=function(e){return this.keyElem.valueToString(this.keyElem.verifyValue(e))in this.map},r}(0,o.Reflect),o.loadProto=function(e,t,n){return("string"==typeof t||t&&"string"==typeof t.file&&"string"==typeof t.root)&&(n=t,t=void 0),o.loadJson(o.DotProto.Parser.parse(e),t,n)},o.protoFromString=o.loadProto,o.loadProtoFile=function(e,t,n){if(t&&"object"==typeof t?(n=t,t=null):t&&"function"==typeof t||(t=null),t)return o.Util.fetch("string"==typeof e?e:e.root+"/"+e.file,(function(r){if(null!==r)try{t(null,o.loadProto(r,n,e))}catch(e){t(e)}else t(Error("Failed to fetch file"))}));var r=o.Util.fetch("object"==typeof e?e.root+"/"+e.file:e);return null===r?null:o.loadProto(r,n,e)},o.protoFromFile=o.loadProtoFile,o.newBuilder=function(e){return void 0===(e=e||{}).convertFieldsToCamelCase&&(e.convertFieldsToCamelCase=o.convertFieldsToCamelCase),void 0===e.populateAccessors&&(e.populateAccessors=o.populateAccessors),new o.Builder(e)},o.loadJson=function(e,t,n){return("string"==typeof t||t&&"string"==typeof t.file&&"string"==typeof t.root)&&(n=t,t=null),t&&"object"==typeof t||(t=o.newBuilder()),"string"==typeof e&&(e=JSON.parse(e)),t.import(e,n),t.resolveAll(),t},o.loadJsonFile=function(e,t,n){if(t&&"object"==typeof t?(n=t,t=null):t&&"function"==typeof t||(t=null),t)return o.Util.fetch("string"==typeof e?e:e.root+"/"+e.file,(function(r){if(null!==r)try{t(null,o.loadJson(JSON.parse(r),n,e))}catch(e){t(e)}else t(Error("Failed to fetch file"))}));var r=o.Util.fetch("object"==typeof e?e.root+"/"+e.file:e);return null===r?null:o.loadJson(JSON.parse(r),n,e)},i=Jr,o.loadProto(i,void 0,"").build("Modules").probuf}(ei,Xr),ti);si.getModule=function(e){var t=new si[e];return t.getArrayData=function(){var e=t.toArrayBuffer();return x(e)?[].slice.call(new Int8Array(e)):e},t};var ai,ci,ui="pgMsgP",li="chatMsg",fi="pcMsgP",hi={PRIVATE:"ppMsgS",GROUP:"pgMsgS",CHATROOM:"chatMsgS"},di="delMsg",pi="joinChrm",gi="joinChrmR",vi="exitChrm",yi="setKV",mi="delKV",Ii="setKVS",_i="delKVS",Ti="qryRelationR",Ci="delRelation",Mi="setSeAtt",Ei={PRIVATE:"cleanPMsg",GROUP:"cleanGMsg",ULTRA_GROUP:"cleanGMsg",CUSTOMER_SERVICE:"cleanCMsg",SYSTEM:"cleanSMsg"},Ai="qryPMsg",Si="qryGMsg",Ni="qryCHMsg",bi="qryCMsg",wi="qrySMsg",Oi=((ni={})["ppMsgP"]=b.PRIVATE,ni[ui]=b.GROUP,ni[li]=b.CHATROOM,ni[fi]=b.CUSTOMER_SERVICE,ni),Ri=((ri={})[b.PRIVATE]=Ai,ri[b.GROUP]=Si,ri[b.CHATROOM]=Ni,ri[b.CUSTOMER_SERVICE]=bi,ri[b.SYSTEM]=wi,ri),Di=((ii={})[b.PRIVATE]=Ei.PRIVATE,ii[b.GROUP]=Ei.GROUP,ii[b.ULTRA_GROUP]=Ei.ULTRA_GROUP,ii[b.CUSTOMER_SERVICE]=Ei.CUSTOMER_SERVICE,ii[b.SYSTEM]=Ei.SYSTEM,ii),Li="1",Ui="0",xi=1,Pi=2,ji=3,ki=function(){function e(e){this._codec="websocket"===e?si:Wr,this._connectType=e}return e.prototype.decodeByPBName=function(e,t,n){var r,i=this,o=e,s=((r={})[en]=i._formatSyncMessages,r[Xt]=i._formatReceivedMessage,r[Zt]=i._formatSentMessage,r[cn]=i._formatHistoryMessages,r[ln]=i._formatConversationList,r[Tn]=i._formatChatRoomInfos,r[Mn]=i._formatRTCUserList,r[Rn]=i._formatRTCData,r[Kn]=i._formatChatRoomKVList,r[nr]=i._formatUserSetting,r[or]=i._formatConversationStatus,r[gr]=i._formatGrpReadReceiptQryResp,r[er]=i._formatSetUserSettingOutput,r[rr]=i._formatUserSettingNotification,r[br]=i._formatUltraMsgChangeList,r[Lr]=i._formatUltraOperateStatusNotifyList,r[Rr]=i._formatUltraMsgList,r[In]=i._formatChrmKVVersion,r[kr]=i._formatRTCRoomKVList,r[On]=i._formatRTCAuidenceJoinRoomData,r[Gr]=i._formatRTCJoinedUserInfo,r)[t];try{o=e.length>0&&i._codec[t].decode(e),j(o)&&(o=function(e){for(var t in e)j(e[t])&&(e[t]=bt(e[t]));return e}(o)),k(s)&&(o=s.call(this,o,n))}catch(n){dt.error("PB parse error\n",n,e,t)}return o},e.prototype._readBytes=function(e){var t=e.offset,n=e.buffer,r=e.limit;if(t)try{var i=x(n)?new Uint8Array(n):n;return Kt.readUTF(i.subarray(t,r))}catch(e){dt.info("readBytes error\n",e)}return e},e.prototype._formatBytes=function(e){if(!e)return e;var t=this._readBytes(e);try{t=JSON.parse(t)}catch(e){dt.info("formatBytes error\n",e)}return t||e},e.prototype._formatSyncMessages=function(e,t){t=t||{};var n=this,r=e.list,i=e.syncTime,o=e.finished;return(z(o)||null===o)&&(e.finished=!0),e.syncTime=bt(i),e.list=xt(r,(function(e){return n._formatReceivedMessage(e,t)})),e},e.prototype._formatReceivedMessage=function(e,t){if(!e)return e;var n=(t=t||{}).currentUserId,r=t.connectedTime,i=e.content,s=e.fromUserId,a=e.type,c=e.groupId,u=e.status,l=e.dataTime,f=e.classname,h=e.msgId,d=e.extraContent,p=e.pushContent,g=e.pushExt,v=e.configFlag,y=e.extStatus;e.toUserId,e.groupUnpush;var I=(e.direction||K.RECEIVE)===K.SEND,_=function(e){var t=o.READ;return{isPersited:!!(16&e),isCounted:!!(32&e),isMentioned:!!(64&e),disableNotification:!!(512&e),receivedStatus:t=2&e?o.RETRIEVED:t,canIncludeExpansion:!!(1024&e)}}(u),T=_.isPersited,C=_.isCounted,M=_.isMentioned,E=_.disableNotification,A=_.receivedStatus,S=_.canIncludeExpansion,N=!!(2&(y||0)),w=!!(4&(y||0)),O=8&(y||0)?me.PRIVATE:me.PUBLIC,R=[b.GROUP,b.CHATROOM,b.RTC_ROOM,b.ULTRA_GROUP].indexOf(a)>-1?c:s,D=I?n:s,L=bt(l),U=L<r,x=a===b.CHATROOM,P=this._formatBytes(i),j={};if(g&&(j=Rt(g.pushConfigs,g.pushId)),P.user){var k=P.user,z=k.portrait,G=k.portraitUri,B=z||G;B&&(P.user.portrait=P.user.portraitUri=B)}var V,Y=m(m({},j),{pushTitle:null==g?void 0:g.title,pushContent:p,pushData:p,disablePushTitle:!!v&&Boolean(4&v),forceShowDetailContent:!!v&&Boolean(8&v),templateId:null==g?void 0:g.templateId}),H=I?K.SEND:K.RECEIVE;x&&s===n&&(H=K.SEND),d&&(V={},V=Yt(d));var F={conversationType:a,targetId:R,senderUserId:D,messageType:f,messageUId:h,isPersited:T,isCounted:C,isMentioned:M,sentTime:L,messageDirection:H,receivedTime:Ht.getTime(),disableNotification:E,receivedStatus:A,canIncludeExpansion:S,content:P,expansion:V,configFlag:v,pushConfig:Y,channelId:e.busChannel||"",isInterrupt:N,isModifyMessage:w};return a!==b.ULTRA_GROUP&&(F.isOffLineMessage=U),a===b.ULTRA_GROUP&&(F.channelType=O),F},e.prototype._formatSentMessage=function(e,t){var n,r=e.content,i=e.classname,o=e.sessionId,s=e.msgId,a=e.extraContent,c=e.pushExt,u=e.pushContent,l=e.configFlag,f=e.extStatus,h=t.signal,d=t.currentUserId,p=h.date,g=h.topic,v=h.targetId,y=!!(2&(f||0)),I=function(e){return{isPersited:!!(1&e),isCounted:!!(2&e),disableNotification:!!(32&e),canIncludeExpansion:!!(64&e)}}(o),_=I.isPersited,T=I.isCounted,C=I.disableNotification,M=I.canIncludeExpansion,E=Oi[g]||b.PRIVATE,A=jt(hi,g),S=this._formatBytes(r),N=v;i===te.RECALL&&(E=S.conversationType||E,N=S.targetId||v),a&&(n={},n=Yt(a));var w={};c&&(w=Rt(c.pushConfigs,c.pushId));var O=m(m({},w),{pushTitle:null==c?void 0:c.title,pushContent:u,pushData:u,disablePushTitle:!!l&&Boolean(4&l),forceShowDetailContent:!!l&&Boolean(8&l),templateId:null==c?void 0:c.templateId});return{conversationType:E,targetId:N,messageType:i,messageUId:s,isPersited:_,isCounted:T,isStatusMessage:A,senderUserId:d,content:this._formatBytes(r),sentTime:1e3*p,receivedTime:Ht.getTime(),messageDirection:K.SEND,isOffLineMessage:!1,disableNotification:C,canIncludeExpansion:M,expansion:n,pushConfig:O,channelId:e.busChannel||"",isInterrupt:y}},e.prototype._formatHistoryMessages=function(e,t){var n=this,r=t.conversation||{},i=e.list,o=e.hasMsg,s=r.targetId,a=bt(e.syncTime),c=[];return Ut(i,(function(e){var i=n._formatReceivedMessage(e,t);r.conversationType===b.ULTRA_GROUP?i.targetId=e.groupId||r.targetId:i.targetId=s,c.push(i)}),{isReverse:!0}),{syncTime:a,list:c,hasMore:!!o}},e.prototype._formatUltraMsgChangeList=function(e){var t=e.list,n=e.syncTime,r=e.hasNext;return{syncTime:n,list:t&&t.map((function(e){var t=e.targetId,n=e.type,r=e.time,i=e.changeType,o=e.msgUID,s=e.msgTime,a=e.busChannel,c=e.isAdmin,u=e.isDel,l=e.operatorId,f=e.subChangeType;return{targetId:t,conversationType:n,changeType:i,messageUId:o,changeTime:bt(r),sendTime:bt(s),channelId:a,isAdmin:c,isDel:u,operatorId:l,subChangeType:f}})),hasNext:r}},e.prototype._formatUltraOperateStatusNotifyList=function(e){var t=e.type,n=e.notifyType,r=e.info,i=e.summary,o=[],s=[],a=2==(2&n),c=1==(1&n);return c&&Array.isArray(r)&&r.forEach((function(e){var t=e.targetId,n=e.busChannel,r=e.userId,i=e.opType,s=e.optime,a=bt(s);o.push({targetId:t,channelId:n,userId:r,operationType:i,operationTime:a})})),a&&Array.isArray(i)&&i.forEach((function(e){var t=e.targetId,n=e.busChannel,r=e.count,i=e.opType;s.push({targetId:t,channelId:n,count:r,operationType:i})})),{conversationType:t,info:o,summary:s,hasInfo:c,hasSummary:a}},e.prototype._formatUltraMsgList=function(e,t){var n=this,r=e.list;return{list:r&&r.map((function(e){return n._formatReceivedMessage(e,t)}))}},e.prototype._formatConversationList=function(e,t){var n=this,r=e.info,i=t.afterDecode||function(){},o={list:(r=xt(r,(function(e){var r=e.msg,o=e.userId,s=e.type,a=e.unreadCount,c=e.busChannel,u=e.versionTime,l=e.remindCount,f=e.busChannelType,h=null;r&&((h=n._formatReceivedMessage(r,t)).targetId=o);var d={targetId:o,conversationType:s,unreadMessageCount:bt(a)||0,latestMessage:h||{},channelId:c||""};return s===b.ULTRA_GROUP&&(d.versionTime=bt(u)||0,d.unreadMentionedCount=bt(l)||0,d.channelType=f||me.PUBLIC),i(d)||d})))||[]};return((null==t?void 0:t.conversationType)||b.NONE)===b.ULTRA_GROUP&&(o.isFinished=e.isFinished),o},e.prototype._formatSetUserSettingOutput=function(e){return e},e.prototype._formatChatRoomInfos=function(e){var t=e.userTotalNums,n=e.userInfos;return{userCount:t,userInfos:xt(n,(function(e){var t=e.id,n=e.time;return{id:t,time:bt(n)}}))}},e.prototype._formatChatRoomKVList=function(e){var t=e.entries,n=e.bFullUpdate,r=e.syncTime;return t=xt(t=t||[],(function(e){var t=e.key,n=e.value,r=e.status,i=e.timestamp,o=e.uid,s=e.version,a=function(e){return{isAutoDelete:!!(1&e),isOverwrite:!!(2&e),type:4&e?pe.DELETE:pe.UPDATE}}(r);return{key:t,value:n,isAutoDelete:a.isAutoDelete,isOverwrite:a.isOverwrite,type:a.type,userId:o,timestamp:bt(i),version:bt(s)}})),{kvEntries:t,isFullUpdate:n,syncTime:r}},e.prototype._formatUserSetting=function(e){var t=this,n=e.items,r=e.version,i={};return Ut(n||[],(function(e){var n=e.key,r=e.version,o=e.value;e.version=bt(r),e.value=t._readBytes(o),"Tag"===n&&e.tags.forEach((function(e){e.createdTime=bt(e.createdTime),e.tagName=e.name})),i[n]=e})),{settings:i,version:r}},e.prototype._formatConversationStatus=function(e){var t=e.state,n=[];return Ut(t,(function(e){var t=e.type,r=e.channelId,i=e.time,o=e.stateItem,s=e.busChannel,a=re.CLOSE,c=oe.NOT_SET,u=!1,l=[];Ut(o,(function(e){var t=e.sessionStateType,n=e.value,r=e.tags;switch(t){case xi:a=n===Li?re.OPEN:re.CLOSE,c=Number(n)||oe.NOT_SET;break;case Pi:u=n===Li;break;case ji:l=r}})),n.push({conversationType:t,type:t,targetId:r,notificationStatus:a,notificationLevel:c,isTop:u,updatedTime:bt(i),tags:l,channelId:s||""})})),n},e.prototype._formatRTCUserList=function(e){var t=e.users,n=e.token,r=e.sessionId,i=e.roomInfo,o=e.entries,s=e.offlineKickTime,a={};return Ut(t,(function(e){var t=e.userId,n=e.userData,r={};Ut(n,(function(e){var t=e.key,n=e.value;r[t]=n})),a[t]=r})),{users:a,token:n,sessionId:r,roomInfo:i,kvEntries:o,offlineKickTime:s}},e.prototype._formatRTCData=function(e){var t=e.outInfo,n={};return Ut(t,(function(e){n[e.key]=e.value})),n},e.prototype._formatRTCRoomInfo=function(e){var t=e.roomId,n=e.userCount,r=e.roomData,i={id:t,total:n};return Ut(r,(function(e){i[e.key]=e.value})),i},e.prototype._formatGrpReadReceiptQryResp=function(e){var t=e.totalMemberNum,n=e.list;return n.forEach((function(e){e.readTime=bt(e.readTime)})),{totalMemberCount:t,list:n}},e.prototype._formatUserSettingNotification=function(e){return e},e.prototype._formatRTCRoomKVList=function(e){var t=e.entries,n=e.bFullUpdate,r=e.syncTime;return{kvEntries:t=(t=t||[]).map((function(e){var t=e.timestamp;return Object.assign(e,{timestamp:bt(t)})})),isFullUpdate:n,syncTime:r}},e.prototype._formatChrmKVVersion=function(e){return e},e.prototype._formatRTCAuidenceJoinRoomData=function(e){return e},e.prototype._formatRTCJoinedUserInfo=function(e){return(e.info||[]).map((function(e){return{deviceId:e.deviceId,roomId:e.roomId,joinTime:bt(e.joinTime)}}))},e.prototype.encodeServerConfParams=function(){var e=this._codec.getModule(tn);return e.setNothing(1),e.getArrayData()},e.prototype._getUpMsgModule=function(e,t){var n,r,i,o="comet"===this._connectType,s=e.conversationType,a=t.messageType,c=t.isMentioned,u=t.mentionedType,l=t.mentionedUserIdList,f=t.content,h=t.pushContent,d=t.pushData,p=t.directionalUserIdList,g=t.isFilerWhiteBlacklist,v=t.isVoipPush,y=t.canIncludeExpansion,m=t.expansion,I=t.pushConfig,_=t.channelId;[b.GROUP,b.ULTRA_GROUP].includes(s);var T=this._codec.getModule(Zt),C=function(e){var t=e.isStatusMessage,n=e.isPersited,r=e.isCounted;t&&(n=r=!1);var i=0;return n&&(i|=1),r&&(i|=2),e.isMentioned&&(i|=4),e.disableNotification&&(i|=32),e.canIncludeExpansion&&(i|=64),i}(t),M=I||{},E=M.pushTitle,A=M.pushContent,S=M.pushData,N=M.iOSConfig,w=M.androidConfig,O=M.templateId,R=M.disablePushTitle,D=M.forceShowDetailContent,L=0;T.setSessionId(C),c&&f&&(f.mentionedInfo={userIdList:(null===(n=f.mentionedInfo)||void 0===n?void 0:n.userIdList)||l||[],type:(null===(r=f.mentionedInfo)||void 0===r?void 0:r.type)||u||ae.ALL,mentionedContent:(null===(i=f.mentionedInfo)||void 0===i?void 0:i.mentionedContent)||""});var U=A||h||"",x=S||d||"";if(U&&T.setPushText(U),x&&T.setAppData(x),p&&T.setUserId(p),L|=v?1:0,L|=g?2:0,L|=R?4:0,L|=D?8:0,T.setConfigFlag(L),T.setClassname(a),f.user&&f.user.portraitUri&&(f.user.portrait=f.user.portraitUri),T.setContent(JSON.stringify(f)),y&&m){var P={};Ut(m,(function(e,t){P[t]={v:e}})),T.setExtraContent(JSON.stringify(P))}if(I){var j=this._codec.getModule(Jt);if(E&&j.setTitle(E),N&&w){var k=Ot(N,w);j.setPushConfigs(k)}(null==w?void 0:w.notificationId)&&j.setPushId(null==w?void 0:w.notificationId),j.setTemplateId(O||""),T.setPushExt(o?j.getArrayData():j)}return z(_)||T.setBusChannel(_),T},e.prototype.encodeUpMsg=function(e,t){return this._getUpMsgModule(e,t).getArrayData()},e.prototype.encodeSyncMsg=function(e){var t=e.sendboxTime,n=e.inboxTime,r=e.broadcastSyncTime,i=this._codec.getModule(rn);return i.setIspolling(!1),i.setIsPullSend(!0),i.setSendBoxSyncTime(t),i.setSyncTime(n),i.setBroadcastSyncTime(r),i.getArrayData()},e.prototype.encodeChrmSyncMsg=function(e,t){e=e||0,t=t||0;var n=this._codec.getModule(on);return n.setCount(t),n.setSyncTime(e),n.getArrayData()},e.prototype.encodeGetHistoryMsg=function(e,t){var n=t.count,r=t.order,i=t.timestamp,o=t.channelId,s=this._codec.getModule(an);return s.setTargetId(e),s.setTime(i),s.setCount(n),s.setOrder(r),s.setBusChannel(o||""),s.getArrayData()},e.prototype.encodeSuperSyncMsg=function(e){var t=this._codec.getModule(Er);return t.setSyncTime(e),t.getArrayData()},e.prototype.encodeGetConversationList=function(e){var t=(e=e||{}).count,n=e.startTime,r=this._codec.getModule(un);return r.setType(1),r.setCount(t),r.setStartTime(n),r.getArrayData()},e.prototype.encodeOldConversationList=function(e){var t=(e=e||{}).count,n=e.type,r=e.startTime,i=e.order;t=t||0,r=r||0,i=i||0;var o=this._codec.getModule(un);return o.setType(n),o.setCount(t),o.setStartTime(r),o.setOrder(i),o.getArrayData()},e.prototype.encodeRemoveOldConversationList=function(e){var t=(e=e||{}).conversationType,n=e.channelId,r=this._codec.getModule(pn);return r.setType(t),n&&r.setBusChannel([n]),r.getArrayData()},e.prototype.encodeRemoveConversationList=function(e){var t=this,n=this._codec.getModule(fn),r=[];return Ut(e,(function(e){var n=e.conversationType,i=e.targetId,o=t._codec.getModule(hn);o.setType(n),o.setChannelId(i),r.push(o)})),n.setSessions(r),n.getArrayData()},e.prototype.encodeDeleteMessages=function(e,t,n,r){var i=this._codec.getModule(gn),o=[];return Ut(n,(function(e){o.push({msgId:e.messageUId,msgDataTime:e.sentTime,direct:e.messageDirection})})),i.setType(e),i.setConversationId(t),i.setMsgs(o),i.setBusChannel(r),i.getArrayData()},e.prototype.encodeClearMessages=function(e,t,n,r){var i=this._codec.getModule(vn);return t=t||(new Date).getTime(),i.setDataTime(t),i.setTargetId(e),i.setBusChannel(n),i.setConversationType(r),i.getArrayData()},e.prototype.encodeClearUnreadCount=function(e,t){var n=e.conversationType,r=e.targetId,i=e.channelId,o=t.timestamp,s=this._codec.getModule(yn);return o=o||+new Date,s.setType(n),s.setChannelId(r),s.setMsgTime(o),s.setBusChannel(i),s.getArrayData()},e.prototype.encodeExpandUltraMessage=function(e,t){var n=e.targetId,r=e.conversationType,i=e.channelId,o=e.messageUId,s=e.sendTime,a=e.keys,c={mid:o,put:e.expansion,del:a,clear:e.removeAll?1:0},u=this._codec.getModule(Ar);return u.setFromUserId(t),u.setTargetId(n),u.setType(r),u.setBusChannel(i||""),u.setMsgUID(o),u.setMsgTime(s),u.setContent(JSON.stringify(c)),u.getArrayData()},e.prototype.encodemodifyMessage=function(e,t){var n=e.targetId,r=e.conversationType,i=e.channelId,o=e.messageUId,s=e.sendTime,a=e.content,c=this._codec.getModule(Ar);return c.setFromUserId(t),c.setTargetId(n),c.setType(r),c.setBusChannel(i||""),c.setMsgUID(o),c.setMsgTime(s),c.setContent(JSON.stringify(a)),c.getArrayData()},e.prototype.encodeQueryMsgChange=function(e){var t=this._codec.getModule(Sr);return t.setSyncTime(e),t.getArrayData()},e.prototype.encodeMsgQuery=function(e){var t=e.targetId,n=e.conversationType,r=e.messages,i=this._codec.getModule(wr),o=r.map((function(e){return{msgTime:e.sendTime,msgUID:e.messageUId,busChannel:e.channelId}}));return i.setTargetId(t),i.setType(n),i.setQuery(o),i.getArrayData()},e.prototype.encodeOperateStatus=function(e,t,n,r){var i=this._codec.getModule(Dr);return i.setTargetId(e),i.setType(t),i.setBusChannel(n),i.setOpType(r),i.getArrayData()},e.prototype.encodeJoinOrQuitChatRoom=function(){var e=this._codec.getModule(mn);return e.setNothing(1),e.getArrayData()},e.prototype.encodeGetChatRoomInfo=function(e,t){var n=this._codec.getModule(_n);return n.setCount(e),n.setOrder(t),n.getArrayData()},e.prototype.encodeSetUltraGroupDefaultNotificationLevel=function(e,t){var n=this._codec.getModule(fr);return n.setUnpushLevel(e),n.setBusChannel(t),n.getArrayData()},e.prototype.encodeGetUltraGroupDefaultNotificationLevel=function(e){var t=this._codec.getModule(lr);return t.setBusChannel(e),t.getArrayData()},e.prototype.encodeGetFileToken=function(e,t,n,r){var i=this._codec.getModule(kn);return i.setType(e),i.setKey(t),i.setHttpMethod(n),i.setQueryString(r),i.getArrayData()},e.prototype.encodeGetFileUrl=function(e,t,n,r){var i=this._codec.getModule(e);return i.setType(t),i.setKey(n),r&&i.setFileName(r),i.getArrayData()},e.prototype.encodeModifyChatRoomKV=function(e,t,n){var r="comet"===this._connectType,i=this._codec.getModule(Fn),o=t.key,s=t.value,a=t.notificationExtra,c=t.isSendNotification,u=t.type,l=t.timestamp,f=u||pe.UPDATE,h=Ft(t,f),d={key:o,value:s||"",uid:n,version:l};if(z(h)||(d.status=h),i.setEntry(d),c){var p={conversationType:b.CHATROOM,targetId:e},g={key:o,value:s,extra:a,type:f},v=this._getUpMsgModule(p,{messageType:te.CHRM_KV_NOTIFY,content:g,isPersited:!1,isCounted:!1});r?i.setNotification(v.getArrayData()):i.setNotification(v),i.setBNotify(!0),i.setType(b.CHATROOM)}return i.getArrayData()},e.prototype.encodeModifyChatRoomKVS=function(e,t,n){this._connectType;var r=this._codec.getModule(Qn),i=t.entries,o=t.type||pe.UPDATE,s=Ft(t,o),a=[];return i.forEach((function(e){var t={key:e.key,value:e.value||"",uid:n,version:e.timestamp};z(s)||(t.status=s),a.push(t)})),r.setEntry(a),r.getArrayData()},e.prototype.encodePullChatRoomKV=function(e){var t=this._codec.getModule(Jn);return t.setTimestamp(e),t.getArrayData()},e.prototype.encodePullUserSetting=function(e){var t=this._codec.getModule(tr);return t.setVersion(e),t.getArrayData()},e.prototype.encodeGetConversationStatus=function(e){var t=this._codec.getModule(ir);return t.setTime(e),t.getArrayData()},e.prototype.encodeSetConversationStatus=function(e,t){var n=this,r="comet"===this._connectType,i=this._codec.getModule(cr),o=Ht.getTime(),s=[];return Ut(e,(function(e){var t=n._codec.getModule(sr),i=e.conversationType,a=e.targetId,c=e.notificationStatus,u=e.isTop,l=e.channelId,f=e.notificationLevel,h=[];t.setType(i),t.setChannelId(a),t.setTime(o),t.setBusChannel(l);var d=c===re.OPEN,p={};z(c)||(p[xi]=d),z(f)||(p[xi]=f),z(u)||(p[Pi]=u),Ut(p,(function(e,t){if(!z(e)){var i=n._codec.getModule(ar);e=e?Li:Ui,z(f)||Number(t)!==xi||(e=String(f)),i.setSessionStateType(Number(t)),i.setValue(e);var o=r?i.getArrayData():i;h.push(o)}})),t.setStateItem(h);var g=r?t.getArrayData():t;s.push(g)})),i.setVersion(t||o),i.setState(s),i.getArrayData()},e.prototype.encodeReadReceipt=function(e,t){var n=this._codec.getModule(dr);return n.setMsgId(e),t&&n.setChannelId(t),n.getArrayData()},e.prototype.encodeCreateTag=function(e,t){var n=this,r="comet"===this._connectType,i=this._codec.getModule(yr),o=[];return e.forEach((function(e){var t=n._codec.getModule(mr);t.setTagId(e.tagId),t.setName(e.tagName),o.push(r?t.getArrayData():t)})),i.setTags(o),i.setVersion(t),i.getArrayData()},e.prototype.encodeMessageReader=function(e,t){var n=this._codec.getModule(dr);return n.setMsgId(e),t&&n.setChannelId(t),n.getArrayData()},e.prototype.encodeRemoveTag=function(e,t){var n=this,r="comet"===this._connectType,i=this._codec.getModule(Ir),o=[];return e.forEach((function(e){var t=n._codec.getModule(mr);t.setTagId(e),o.push(r?t.getArrayData():t)})),i.setTags(o),i.setVersion(t),i.getArrayData()},e.prototype.encodeDisConversationTag=function(e){var t=this._codec.getModule(_r);return t.setTagId(e),t.getArrayData()},e.prototype.encodeUpdateConversationTag=function(e,t){var n=this,r="comet"===this._connectType,i=this._codec.getModule(cr),o=[];return t.forEach((function(t){var i=n._codec.getModule(sr),s=n._codec.getModule(ar),a=[];e.forEach((function(e){var t=n._codec.getModule(mr);t.setTagId(e.tagId),z(e.isTop)||t.setIsTop(e.isTop),a.push(r?t.getArrayData():t)})),s.setSessionStateType(ji),s.setValue(JSON.stringify(a)),s.setTags(a),i.setType(t.conversationType),i.setChannelId(t.targetId),i.setTime(Date.now()),i.setStateItem([r?s.getArrayData():s]),o.push(r?i.getArrayData():i)})),i.setState(o),i.setVersion(Ht.getTime()),i.getArrayData()},e.prototype.encodeReportSDKInfo=function(e){var t=this._codec.getModule(Tr);return t.setSdkInfo(e),t.getArrayData()},e.prototype.encodeUltraGroup=function(e,t){var n=this._codec.getModule(Mr);return n.setSyncTime(e),n.setIsEraseMsgContent(t),n.getArrayData()},e.prototype.encodeJoinRTCRoom=function(e,t,n,r,i){var o=this,s="comet"===this._connectType,a=this._codec.getModule(Cn);if(e=e||0,a.setRoomType(e),z(t)||a.setBroadcastType(t),z(n)||a.setJoinType(n),r){var c=[],u=this._codec.getModule(Pn);for(var l in r)u.setKey(l),u.setValue(r[l]),s?c.push(u.getArrayData()):c.push(u);a.setInnerDatas(c)}if(i){var f=[];Object.keys(i).forEach((function(e){var t=o._codec.getModule(Pn);t.setKey(e),t.setValue(i[e]),s?f.push(t.getArrayData()):f.push(t)})),a.setOuterDatas(f)}return a.getArrayData()},e.prototype.encodeQuitRTCRoom=function(){return this._codec.getModule(En).getArrayData()},e.prototype.encodeSetRTCData=function(e,t,n,r,i){var o=this._codec.getModule(An);if(o.setInterior(n),o.setTarget(r),o.setKey(e),o.setValue(t),i){i.name&&o.setObjectName(i.name);var s=i.content;s&&(j(s)&&(s=JSON.stringify(s)),o.setContent(s))}return o.getArrayData()},e.prototype.encodeUserSetRTCData=function(e,t,n,r){var i=this,o="comet"===this._connectType,s=this._codec.getModule(Sn);s.setObjectName(n);var a=this._codec.getModule(Pn);a.setKey(e.name),a.setValue(e.content),o?s.setContent(a.getArrayData()):s.setContent(a);var c=[];return["uris","mcu_uris"].forEach((function(e){var n=i._codec.getModule(Pn);n.setKey(e);var s="uris"===e?t:r;n.setValue(s),o?c.push(n.getArrayData()):c.push(n)})),s.setValueInfo(c),s.getArrayData()},e.prototype.encodeUserSetRTCCDNUris=function(e,t){this._connectType;var n=this._codec.getModule(Sn);n.setObjectName(e);var r=this._codec.getModule(Pn);return r.setKey("cdn_uris"),r.setValue(t),n.setValueInfo(r),n.getArrayData()},e.prototype.encodeGetRTCData=function(e,t,n){var r=this._codec.getModule(Nn);return r.setInterior(t),r.setTarget(n),r.setKey(e),r.getArrayData()},e.prototype.encodeRemoveRTCData=function(e,t,n,r){var i=this._codec.getModule(Nn);i.setInterior(t),i.setTarget(n),i.setKey(e);var o=(r=r||{}).name,s=r.content;return!z(o)&&i.setObjectName(o),z(s)||(j(s)&&(s=JSON.stringify(s)),i.setContent(s)),i.getArrayData()},e.prototype.encodeSetRTCOutData=function(e,t,n){var r=this._codec.getModule(bn);r.setTarget(t),U(e)||(e=[e]),Ut(e,(function(t,n){t.key=t.key?t.key.toString():t.key,t.value=t.value?t.value.toString():t.value,e[n]=t})),r.setValueInfo(e);var i=(n=n||{}).name,o=n.content;return!z(i)&&r.setObjectName(i),z(o)||(j(o)&&(o=JSON.stringify(o)),r.setContent(o)),r.getArrayData()},e.prototype.ecnodeGetRTCOutData=function(e){var t=this._codec.getModule(Dn);return t.setUserId(e),t.getArrayData()},e.prototype.encodeSetRTCState=function(e){var t=this._codec.getModule(wn);return t.setState(e),t.getArrayData()},e.prototype.encodeGetRTCRoomInfo=function(){var e=this._codec.getModule(Un);return e.setOrder(2),e.getArrayData()},e.prototype.encodeSetRTCUserInfo=function(e,t){var n=this._codec.getModule(Pn);return n.setKey(e),n.setValue(t),n.getArrayData()},e.prototype.encodeRemoveRTCUserInfo=function(e){var t=this._codec.getModule(jn);return t.setKey(e),t.getArrayData()},e.prototype.encodeIdentityChangeInfo=function(e,t,n){void 0===n&&(n=!1);var r=this._codec.getModule(Cn);return r.setRoomType(Ce.LIVE),t&&r.setBroadcastType(t),r.setIdentityChangeType(e),r.setNeedSysChatroom(n),r.getArrayData()},e.prototype.encodePullRTCRoomKV=function(e,t){var n=this._codec.getModule(jr);return n.setTimestamp(t),n.setRoomId(e),n.getArrayData()},e.prototype.encodeQueryUserJoinedInfo=function(e){var t=this._codec.getModule(zr);return t.setUserId(e),t.getArrayData()},e.prototype.encodeRequestRoomPK=function(e){var t=e.invitedRoomId,n=e.invitedUserId,r=e.inviteSessionId,i=e.inviteTimeout,o=e.inviteInfo,s=this._codec.getModule(Vr);return s.setInvitedRoomId(t),s.setInvitedUserId(n),s.setInviteSessionId(r),s.setTimeoutTime(i),s.setInviteInfo(o),s.getArrayData()},e.prototype.encodeCancelRoomPK=function(e){var t=e.invitedRoomId,n=e.invitedUserId,r=e.inviteSessionId,i=e.inviteInfo,o=this._codec.getModule(Yr);return o.setInvitedRoomId(t),o.setInvitedUserId(n),o.setInviteSessionId(r),o.setInviteInfo(i),o.getArrayData()},e.prototype.encodeResponseRoomPK=function(e){var t=e.inviteUserId,n=e.inviteRoomId,r=e.inviteSessionId,i=e.content,o=e.key,s=e.value,a=e.agree?1:0,c=this._codec.getModule(Hr);return c.setInviteUserId(t),c.setInviteRoomId(n),c.setInviteSessionId(r),c.setContent(i),c.setKey(o),c.setValue(s),c.setAnswerCode(a),c.getArrayData()},e.prototype.encodeEndRoomPK=function(e){var t=e.endRoomId,n=e.sessionId,r=e.content,i=e.keys,o=this._codec.getModule(Fr);return o.setInviteRoomId(t),o.setInviteSessionId(n),o.setInviteContent(r),o.setInviteRoomKeys(i),o.getArrayData()},e.prototype.encodebindRTCRoomForChatroom=function(e){var t=this._codec.getModule(Qr);return t.setRtcRoomId(e.rtcRoomId),t.getArrayData()},e}(),zi=function(e,t){this._watcher=t,this.codec=new ki(e)};function Gi(e,t,n){if(e&&We){var r=Ge(je(le.STATISTICS),e,t,n);return We.reportRealtimeLog([r]).then((function(){Ze(he.G_UPLOAD_LOG_S,"big data realtime report success")})).catch((function(e){Ze(he.G_UPLOAD_LOG_E,"big data realtime report error -> "+e)}))}}!function(e){e[e.PRIVATE=1]="PRIVATE",e[e.OPEN=0]="OPEN"}(ai||(ai={})),function(e){e[e.NAVI=1]="NAVI",e[e.TCP=2]="TCP",e[e.WS=3]="WS"}(ci||(ci={}));var Bi,Vi,Yi={},Hi={sdkPrivate:ai.OPEN,serverPrivate:ai.OPEN,bundleId:"lib-next"};function Fi(e){Hi.sdkPrivate=e.sdkPrivate===ai.PRIVATE?ai.PRIVATE:ai.OPEN,Hi.serverPrivate=e.serverPrivate===ai.PRIVATE?ai.PRIVATE:ai.OPEN,e.bundleId&&(Hi.bundleId=e.bundleId)}function Qi(){return Hi}function $i(e,t,n){void 0===t&&(t={}),void 0===n&&(n=!1),j(t)&&e&&(Yi[e]&&!n||(Yi[e]={}),Yi[e]=m(m({},Yi[e]),t))}function Ki(e){return Yi[e]||{}}!function(e){e.GET="GET",e.POST="POST"}(Bi||(Bi={})),function(e){e.WIFI="wifi",e.FOUR_G="4g",e.THREE_G="3g",e.TWO_G="2g",e.FIVE_G="2g",e.THREE_GENT="3gnet",e.UNKONWN="unknown"}(Vi||(Vi={}));var Wi,qi=function(e,t){return e&&t?t+"_"+e:e||Date.now()},Zi=function(){function e(e){this.header=e,this._name=null,this.lengthSize=0,this.messageId=0,this.timestamp=0,this.syncMsg=!1,this.identifier=""}return e.prototype.getIdentifier=function(){var e=this.messageId,t=this.identifier;return qi(e,t)},e.prototype.read=function(e,t,n){this.readMessage(e,t,n)},e.prototype.readMessage=function(e,t,n){return{stream:e,length:t}},e}(),Ji=function(){function e(e){this.lengthSize=0,this.messageId=0,this.topic="",this.targetId="",this.identifier="",this._header=new $t(e,!1,It.AT_MOST_ONCE,!1)}return e.prototype.getIdentifier=function(){var e=this.messageId,t=this.identifier;return qi(e,t)},e.prototype.write=function(e){var t=this.getHeaderFlag();e.write(t),this.writeMessage(e)},e.prototype.setHeaderQos=function(e){this._header.qos=e},e.prototype.getHeaderFlag=function(){return this._header.encode()},e.prototype.getLengthSize=function(){return this.lengthSize},e.prototype.getBufferData=function(){var e=new qt;this.write(e);var t=e.getBytesArray();return new Int8Array(t)},e.prototype.getCometData=function(){var e=this.data||{};return JSON.stringify(e)},e}(),Xi=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._name=Tt.CONN_ACK,t.status=null,t.userId=null,t.timestamp=0,t}return y(t,e),t.prototype.readMessage=function(e,n,r){if(e.readByte(),this.status=+e.readByte(),n<=t.MESSAGE_LENGTH)return{stream:e,length:n};if(r===Mt.V4){var i=e.readByte();1&i&&(this.userId=e.readUTF()),2&i&&e.readUTF(),4&i&&(this.timestamp=e.readLong()),8&i&&(this.messageId=e.read2Byte())}else{this.userId=e.readUTF();var o=e.readUTF();dt.debug("server sessionId -> "+o),this.timestamp=e.readLong()}return{stream:e,length:n}},t.MESSAGE_LENGTH=2,t}(Zi),eo=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._name=Tt.DISCONNECT,t.status=0,t}return y(t,e),t.prototype.readMessage=function(e,t){return e.readByte(),this.status=+e.readByte(),{stream:e,length:t}},t.MESSAGE_LENGTH=2,t}(Zi),to=function(e){function t(){var t=e.call(this,_t.PING_REQ)||this;return t._name=Tt.PING_REQ,t}return y(t,e),t.prototype.writeMessage=function(e){},t}(Ji),no=function(e){function t(t){var n=e.call(this,t)||this;return n._name=Tt.PING_RESP,n}return y(t,e),t}(Zi),ro=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.messageId=0,t}return y(t,e),t.prototype.readMessage=function(e,t){var n=256*e.readByte()+e.readByte();return this.messageId=parseInt(n.toString(),10),{stream:e,length:t}},t}(Zi),io=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.messageId=0,t}return y(t,e),t.prototype.writeMessage=function(e){var t=this.messageId,n=255&t,r=(65280&t)>>8;e.write(r),e.write(n)},t}(Ji),oo=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._name=Tt.PUBLISH,t.topic="",t.targetId="",t.syncMsg=!1,t.identifier=Ct.PUB,t}return y(t,e),t.prototype.readMessage=function(t,n){return this.date=t.readInt(),this.topic=t.readUTF(),this.targetId=t.readUTF(),e.prototype.readMessage.call(this,t,n),this.data=t.readAll(),{stream:t,length:n}},t}(ro),so=function(e){function t(t,n,r){var i=e.call(this,_t.PUBLISH)||this;return i._name=Tt.PUBLISH,i.syncMsg=!1,i.identifier=Ct.PUB,i.topic=t,i.data=R(n)?Kt.writeUTF(n):n,i.targetId=r,i}return y(t,e),t.prototype.writeMessage=function(t){t.writeUTF(this.topic),t.writeUTF(this.targetId),e.prototype.writeMessage.call(this,t),t.write(this.data)},t}(io),ao=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._name=Tt.PUB_ACK,t.status=0,t.date=0,t.millisecond=0,t.messageUId="",t.timestamp=0,t.identifier=Ct.PUB,t.topic="",t.targetId="",t}return y(t,e),t.prototype.readMessage=function(t,n){return e.prototype.readMessage.call(this,t,n),this.date=t.readInt(),this.status=256*t.readByte()+t.readByte(),this.millisecond=256*t.readByte()+t.readByte(),this.timestamp=1e3*this.date+this.millisecond,this.messageUId=t.readUTF(),{stream:t,length:n}},t}(ro),co=function(e){function t(t){var n=e.call(this,_t.PUB_ACK)||this;return n._name=Tt.PUB_ACK,n.status=0,n.date=0,n.millisecond=0,n.messageUId="",n.timestamp=0,n.messageId=t,n}return y(t,e),t.prototype.writeMessage=function(t){e.prototype.writeMessage.call(this,t)},t}(io),uo=function(e){function t(t,n,r){var i=e.call(this,_t.QUERY)||this;return i.name=Tt.QUERY,i.identifier=Ct.QUERY,i.topic=t,i.data=R(n)?Kt.writeUTF(n):n,i.targetId=r,i}return y(t,e),t.prototype.writeMessage=function(t){t.writeUTF(this.topic),t.writeUTF(this.targetId),e.prototype.writeMessage.call(this,t),t.write(this.data)},t}(io),lo=function(e){function t(t){var n=e.call(this,_t.QUERY_CONFIRM)||this;return n._name=Tt.QUERY_CON,n.messageId=t,n}return y(t,e),t}(io),fo=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._name=Tt.QUERY_ACK,t.status=0,t.identifier=Ct.QUERY,t.topic="",t.targetId="",t}return y(t,e),t.prototype.readMessage=function(t,n){return e.prototype.readMessage.call(this,t,n),this.date=t.readInt(),this.status=256*t.readByte()+t.readByte(),this.data=t.readAll(),{stream:t,length:n}},t}(ro),ho=function(e){var t,n=e.type;switch(n){case _t.CONN_ACK:t=new Xi(e);break;case _t.PUBLISH:(t=new oo(e)).syncMsg=e.syncMsg;break;case _t.PUB_ACK:t=new ao(e);break;case _t.QUERY_ACK:t=new fo(e);break;case _t.SUB_ACK:case _t.UNSUB_ACK:case _t.PING_RESP:t=new no(e);break;case _t.DISCONNECT:t=new eo(e);break;default:t=new Zi(e),dt.error("No support for deserializing "+n+" messages")}return t};!function(e){e[e.ppMsgP=1]="ppMsgP",e[e.ppMsgN=2]="ppMsgN",e[e.ppMsgS=3]="ppMsgS",e[e.pgMsgP=4]="pgMsgP",e[e.chatMsg=5]="chatMsg",e[e.pcMsgP=6]="pcMsgP",e[e.qryPMsg=7]="qryPMsg",e[e.qryGMsg=8]="qryGMsg",e[e.qryCHMsg=9]="qryCHMsg",e[e.qryCMsg=10]="qryCMsg",e[e.qrySMsg=11]="qrySMsg",e[e.recallMsg=12]="recallMsg",e[e.prMsgS=13]="prMsgS",e[e.rrMsg=14]="rrMsg",e[e.rrList=15]="rrList",e[e.s_ntf=16]="s_ntf",e[e.s_msg=17]="s_msg",e[e.s_stat=18]="s_stat",e[e.s_cmd=19]="s_cmd",e[e.s_us=20]="s_us",e[e.pullUS=21]="pullUS",e[e.pgMsgS=22]="pgMsgS",e[e.chatMsgS=23]="chatMsgS",e[e.qrySessionsAtt=24]="qrySessionsAtt",e[e.pullMsg=25]="pullMsg",e[e.qrySessions=26]="qrySessions",e[e.delSessions=27]="delSessions",e[e.delMsg=28]="delMsg",e[e.updRRTime=29]="updRRTime",e[e.chrmPull=30]="chrmPull",e[e.joinChrm=31]="joinChrm",e[e.joinChrmR=32]="joinChrmR",e[e.exitChrm=33]="exitChrm",e[e.queryChrmI=34]="queryChrmI",e[e.setKV=35]="setKV",e[e.delKV=36]="delKV",e[e.pullKV=37]="pullKV",e[e.qryRelation=38]="qryRelation",e[e.delRelation=39]="delRelation",e[e.pullSeAtts=40]="pullSeAtts",e[e.setSeAtt=41]="setSeAtt",e[e.qnTkn=42]="qnTkn",e[e.qnUrl=43]="qnUrl",e[e.aliUrl=44]="aliUrl",e[e.s3Url=45]="s3Url",e[e.stcUrl=46]="stcUrl",e[e.cleanPMsg=47]="cleanPMsg",e[e.cleanGMsg=48]="cleanGMsg",e[e.cleanCMsg=49]="cleanCMsg",e[e.cleanSMsg=50]="cleanSMsg",e[e.rtcRJoin_data=51]="rtcRJoin_data",e[e.rtcRExit=52]="rtcRExit",e[e.rtcPing=53]="rtcPing",e[e.rtcSetData=54]="rtcSetData",e[e.rtc_ntf=55]="rtc_ntf",e[e.viewerJoinR=56]="viewerJoinR",e[e.viewerExitR=57]="viewerExitR",e[e.rtcPullKv=58]="rtcPullKv",e[e.rtcIdentityChange=59]="rtcIdentityChange",e[e.userSetData=60]="userSetData",e[e.rtcQryData=61]="rtcQryData",e[e.rtcDelData=62]="rtcDelData",e[e.rtcSetOutData=63]="rtcSetOutData",e[e.rtcQryUserOutData=64]="rtcQryUserOutData",e[e.rtcToken=65]="rtcToken",e[e.rtcUserState=66]="rtcUserState",e[e.rtcRInfo=67]="rtcRInfo",e[e.rtcUData=68]="rtcUData",e[e.rtcUPut=69]="rtcUPut",e[e.rtcUDel=70]="rtcUDel",e[e.rtcUList=71]="rtcUList",e[e.rtcQueryJoined=72]="rtcQueryJoined",e[e.rtcInvite=73]="rtcInvite",e[e.rtcCancelInvite=74]="rtcCancelInvite",e[e.rtcInviteAnswer=75]="rtcInviteAnswer",e[e.rtcEndInvite=76]="rtcEndInvite",e[e.addSeTag=77]="addSeTag",e[e.delSeTag=78]="delSeTag",e[e.addTag=79]="addTag",e[e.delTag=80]="delTag",e[e.disTag=81]="disTag",e[e.reportsdk=82]="reportsdk",e[e.pullUgSes=83]="pullUgSes",e[e.pullUgMsg=84]="pullUgMsg",e[e.ugMsg=85]="ugMsg",e[e.qryUgMsg=86]="qryUgMsg",e[e.updUgRTime=87]="updUgRTime",e[e.upMsgEx=88]="upMsgEx",e[e.modifyMsg=89]="modifyMsg",e[e.qryMsgChange=90]="qryMsgChange",e[e.qryMsg=91]="qryMsg",e[e.operate=92]="operate",e[e.s_opNtf=93]="s_opNtf",e[e.ugUnpushQuery=94]="ugUnpushQuery",e[e.ugUnpushSet=95]="ugUnpushSet",e[e.setRtcRoomId=96]="setRtcRoomId"}(Wi||(Wi={}));var po,go,vo=Wi,yo=function(e,t,n,r,i,o,s,a){return"".concat(e,"://").concat(t,"/websocket?appId=").concat(n,"&token=").concat(encodeURIComponent(r),"&sdkVer=").concat(o,"&pid=").concat(s,"&apiVer=").concat(i.isFromUniapp?"uniapp":"normal").concat(i.connectPlatform?"&platform="+i.connectPlatform:"").concat(a?"&protocolVer="+a:"")},mo=function(e){return[vo.ppMsgS,vo.pgMsgS,vo.chatMsgS].map((function(e){return vo[e]})).indexOf(e)>=0};!function(e){e[e.REDIRECT=0]="REDIRECT",e[e.OTHER_DEVICE_LOGIN=1]="OTHER_DEVICE_LOGIN",e[e.BLOCK=2]="BLOCK",e[e.REMOTE_CLOSE=3]="REMOTE_CLOSE",e[e.LOGOUT=4]="LOGOUT",e[e.BLOCK_NEW=5]="BLOCK_NEW",e[e.REDIRECT_NEW=6]="REDIRECT_NEW"}(po||(po={})),function(e){e.IM_NAVI="IM-stats_navi-S",e.IM_WEBSOCKET="IM-stats_websocket-S",e.IM_COMET="IM-stats_comet-S",e.IM_CONNECTION_DURATION="IM-stats_con_dur-S"}(go||(go={}));var Io=function(e,t){dt.info("websocket send -> messageId: ".concat(e.messageId," topic: ").concat(e.topic));var n=e.getBufferData();t.send(n.buffer)},_o=function(e){function t(t,n){var r=e.call(this,"websocket",n)||this;return r._runtime=t,r._socket=null,r._messageIds={},r._syncMessageIds={},r._failedCount=0,r.ALLOW_FAILED_TIMES=2,r._timer=null,r._idCount=0,r._generateMessageId=function(){return r._idCount>=65535&&(r._idCount=0),++r._idCount},r}return y(t,e),t.prototype.connect=function(e,t,n,r,i,o){return I(this,void 0,void 0,(function(){var s=this;return _(this,(function(a){return[2,new Promise((function(a){var c=n.slice(),u=!1,l=function(){return I(s,void 0,void 0,(function(){var n,s,f;return _(this,(function(h){switch(h.label){case 0:return 0===c.length||u?[2]:(u=!0,n=c.shift(),$i(go.IM_WEBSOCKET,{startTime:(new Date).getTime(),host:n,protocol:ci.WS}),[4,this._connect(e,t,n,r,i,o)]);case 1:if(s=h.sent(),f=s===q.SUCCESS||s===X.REDIRECT?s:Gt(s),$i(go.IM_WEBSOCKET,{endTime:(new Date).getTime(),code:f}),function(e){I(this,void 0,void 0,(function(){var t,n,r,i,o,s,a,c,u,l,f,h,d,p;return _(this,(function(g){switch(g.label){case 0:t=go.IM_WEBSOCKET,n=Qi(),r=n.sdkPrivate,i=n.serverPrivate,o=n.bundleId,s=Ki(t),a=s.protocol,c=s.startTime,u=s.endTime,l=s.code,f=s.host,h=Vi.UNKONWN,g.label=1;case 1:return g.trys.push([1,3,,4]),[4,e.getNetworkType()];case 2:return h=g.sent(),[3,4];case 3:return d=g.sent(),dt.info(d.message),[3,4];case 4:return p=0,L(c)&&L(u)&&u>c&&c&&(p=u-c),Gi(t,{spr:r,pr:i,bid:o,ptc:a,dur:p,cod:l,hos:f,net:h}),[2]}}))}))}(this._runtime),s===q.SUCCESS)this._checkAlive(),a(s);else if(s===X.REDIRECT)a(s);else{if(0===c.length)return a(Gt(s)),[2];u=!1,l()}return[2]}}))}))};i=S(i),s._watcher.status(J.CONNECTING),l()}))]}))}))},t.prototype._connect=function(e,t,n,r,i,o){return I(this,void 0,void 0,(function(){var s,a,c,u,l,f=this;return _(this,(function(h){switch(h.label){case 0:return s=r.replace("http","ws"),a=yo(s,n,e,t,this._runtime,i,"",o),dt.info("conenct start -> ".concat(a)),this.sendConnectTime=Date.now(),c=this._runtime.createWebSocket(a),u=function(e){f._timer&&(clearTimeout(f._timer),f._timer=null),f._socket===c&&(f._socket=null,f._watcher.status(e))},[4,new Promise((function(e){c.onMessage((function(t){if("[object ArrayBuffer]"===Object.prototype.toString.call(t)){var n=function(e,t){var n=new Uint8Array(e),r=new Wt(n),i=r.readByte(),o=new $t(i),s=ho(o);return s.read(r,n.length-1,t),s}(t,o);if(n instanceof no&&f._pingResolve)return f._pingResolve(q.SUCCESS),void(f._pingResolve=void 0);if(n instanceof Xi)return dt.info("recv connect ack -> ".concat(n.status)),n.status!==X.ACCEPTED?(dt.warn("connect failed: ".concat(n.status)),void e(n.status)):(dt.info("connect success -> ".concat(a)),f.connectedTime=n.timestamp,f.userId=n.userId||"",f._idCount=n.messageId,void e(q.SUCCESS));if(n instanceof eo){var r=n.status;switch(dt.warn("recv disconnect signal -> status: ".concat(r)),r){case po.BLOCK_NEW:case po.BLOCK:f._watcher.status(J.BLOCKED);break;case po.OTHER_DEVICE_LOGIN:f._watcher.status(J.KICKED_OFFLINE_BY_OTHER_CLIENT);break;case po.REDIRECT_NEW:case po.REDIRECT:f._watcher.status(J.REDIRECT);break;default:f._watcher.status(J.DISCONNECT_BY_SERVER)}}else f._onReceiveSignal(n)}else dt.error("Socket received invalid data:",t)})),c.onClose((function(t,n){for(var r in dt.warn("websocket closed! code:",t,"reason:",n),u(J.CONNECTION_CLOSED),f._messageIds){var i=f._messageIds[r];delete f._messageIds[r],i(q.RC_NET_CHANNEL_INVALID)}e(t)})),c.onError((function(t){for(var n in dt.error("websocket error!",null==t?void 0:t.stack),u(J.WEBSOCKET_ERROR),f._messageIds){var r=f._messageIds[n];delete f._messageIds[n],r(q.RC_NET_CHANNEL_INVALID)}e(q.NETWORK_ERROR)})),c.onOpen((function(){return dt.info("websocket open =>",a)})),setTimeout((function(){e(q.TIMEOUT)}),5e3)}))];case 1:return(l=h.sent())===q.SUCCESS?this._socket=c:(dt.warn("connect result -> code: ".concat(l,", url: ").concat(a)),c.close()),[2,l]}}))}))},t.prototype._checkAlive=function(){var e;return I(this,void 0,void 0,(function(){var t,n,r=this;return _(this,(function(i){switch(i.label){case 0:return this._socket?(dt.info("send ping ->"),this.sendOnly(new to),t=Qe(),Ze(he.L_CHECK_ALIVE_IM_T,{},{traceId:t}),[4,new Promise((function(e){r._pingResolve=e,r._timer&&clearTimeout(r._timer),r._timer=setTimeout((function(){r._pingResolve=void 0,e(q.TIMEOUT)}),15e3)}))]):[2];case 1:return n=i.sent(),(n===q.SUCCESS?Ze:Je)(he.L_CHECK_ALIVE_IM_R,{isSuccess:n===q.SUCCESS},{traceId:t}),n!==q.SUCCESS?(this._failedCount+=1,dt.warn("ping failed count: ".concat(this._failedCount,", code: ").concat(n)),this._failedCount>=this.ALLOW_FAILED_TIMES?(this._failedCount=0,dt.warn("ping timeout, close current websocket to reconnect!"),null===(e=this._socket)||void 0===e||e.close(),this._socket=null,this._watcher.status(J.NETWORK_UNAVAILABLE)):this._checkAlive(),[2]):(dt.info("recv ping <-"),this._failedCount=0,setTimeout((function(){return r._checkAlive()}),15e3),[2])}}))}))},t.prototype._onReceiveSignal=function(e){return I(this,void 0,void 0,(function(){var t,n,r,i,o,s,a=this;return _(this,(function(c){switch(c.label){case 0:return t=e.messageId,e.header&&e.header.qos!==It.AT_MOST_ONCE&&(e instanceof oo&&!e.syncMsg&&(dt.info("send pubAck -> ".concat(t," ").concat(e.topic)),this.sendOnly(new co(t))),e instanceof fo&&(dt.info("send queryCon -> ".concat(t," ").concat(e.topic)),this.sendOnly(new lo(t)))),t>0&&(e instanceof ao||e instanceof fo)&&(dt.info("recv ack -> messageId: ".concat(t," ").concat(e.topic)),(n=this._messageIds[t])&&(n(e),delete this._messageIds[t]),(r=this._syncMessageIds[t])&&(delete this._syncMessageIds[t],r(e))),e instanceof oo?(i=e.syncMsg,o=e.topic,dt.info("recv PublishReader -> messageId: ".concat(t," ").concat(o)),o===vo[vo.userSetData]?[2]:!i||mo(o)?(this._watcher.signal(e),[2]):[4,new Promise((function(e){a._syncMessageIds[t]=e}))]):[3,2];case 1:s=c.sent(),delete this._syncMessageIds[t],this._watcher.signal(e,s),c.label=2;case 2:return[2]}}))}))},t.prototype.sendOnly=function(e){this._socket&&((e instanceof so||e instanceof uo)&&(e.messageId=this._generateMessageId()),Io(e,this._socket))},t.prototype.send=function(e,t,n,r){return void 0===r&&(r=3e4),I(this,void 0,void 0,(function(){var i,o,s,a,c=this;return _(this,(function(u){switch(u.label){case 0:return this._socket?(i=this._generateMessageId(),e.messageId=i,Io(e,this._socket),[4,new Promise((function(e){c._messageIds[i]=e,setTimeout((function(){c._messageIds[i]&&delete c._messageIds[i],e()}),r)}))]):[3,2];case 1:return(o=u.sent())?o instanceof fo||o instanceof ao?(s=t&&o.data&&[q.SUCCESS,q.CHATROOM_KV_STORE_NOT_ALL_SUCCESS].indexOf(o.status)>=0,a=s?this.codec.decodeByPBName(o.data,t,n):o,0!==o.status?(dt.warn("send failed -> message: ".concat(i,", respPBName: ").concat(t,", status: ").concat(o.status)),[2,{code:o.status,data:t&&o.data?a:null}]):[2,{code:q.SUCCESS,data:a}]):[2,{code:o}]:(dt.warn("send timeout -> message: ".concat(i,", respPBName: ").concat(t,", timeout: ").concat(r)),[2,{code:q.TIMEOUT}]);case 2:return[2,{code:q.RC_NET_CHANNEL_INVALID}]}}))}))},t.prototype.close=function(){this._socket&&(this._socket.close(),this._socket=null,this._watcher.status(J.DISCONNECTED))},t}(zi),To=function(e){function t(t,n){var r=e.call(this,"comet",n)||this;return r._runtime=t,r._messageIds={},r._syncMessageIds={},r._idCount=0,r._generateMessageId=function(){return++r._idCount},r._pid=encodeURIComponent((new Date).getTime()+Math.random()+""),r}return y(t,e),t.prototype.handleCometRes=function(e){var t=this;if(200!==e.status&&202!==e.status)return!1;var n=R(e.data)?JSON.parse(e.data):e.data;return n?!U(n)||(Ut(n,(function(e){return I(t,void 0,void 0,(function(){var t,n,r,i,o,s,a,c,u,l,f,h=this;return _(this,(function(d){switch(d.label){case 0:if((t=e.sessionid)&&(this._sessionid=t),n=function(e){var t=e.headerCode,n=new $t(t),r=ho(n);for(var i in e)r[i]=e[i];return r}(e),r=n.messageId,i=n._header,o=n.status,s=i&&i.qos!==It.AT_MOST_ONCE,r&&n.getIdentifier&&((a=this._messageIds[r])&&a(n),this._syncMessageIds[r]&&this._syncMessageIds[r](n)),s&&(n instanceof oo&&!n.syncMsg&&(c=new co(r),this.sendOnly(c)),n instanceof fo&&(c=new lo(r),this.sendOnly(c))),n instanceof eo){switch(o){case po.OTHER_DEVICE_LOGIN:this._watcher.status(J.KICKED_OFFLINE_BY_OTHER_CLIENT);break;case po.BLOCK:case po.BLOCK_NEW:this._watcher.status(J.BLOCKED);break;case po.REDIRECT_NEW:case po.REDIRECT:this._watcher.status(J.REDIRECT);break;default:this._watcher.status(J.DISCONNECT_BY_SERVER)}return[2]}return n instanceof oo?(u=n.syncMsg,l=n.topic,!u||mo(l)?(this._watcher.signal(n),[2,!1]):[4,new Promise((function(e){h._syncMessageIds[r]=e}))]):[3,2];case 1:f=d.sent(),delete this._syncMessageIds[r],this._watcher.signal(n,f),d.label=2;case 2:return[2]}}))}))})),!0):(dt.error("received data is not a validJson",n),!1)},t.prototype._startPullSignal=function(e){return I(this,void 0,void 0,(function(){var t,n,r,i,o;return _(this,(function(s){switch(s.label){case 0:return t=(new Date).getTime(),n="".concat(e,"://").concat(this._domain,"/pullmsg.js?sessionid=").concat(this._sessionid,"×trap=").concat(t,"&pid=").concat(this._pid),r=Qe(),Ze(he.L_CHECK_ALIVE_IM_T,{},{traceId:r}),[4,this._runtime.httpReq({url:n,body:{pid:this._pid},timeout:45e3})];case 1:return i=s.sent(),o=this.handleCometRes(i),(o?Ze:Je)(he.L_CHECK_ALIVE_IM_R,{isSuccess:o},{traceId:r}),this._isDisconnected||(o?this._startPullSignal(e):(this._isDisconnected=!0,this._watcher.status(J.NETWORK_UNAVAILABLE))),[2]}}))}))},t.prototype.connect=function(e,t,n,r,i,o){return I(this,void 0,void 0,(function(){var o,s,a=this;return _(this,(function(c){return i=S(i),this._protocol=r,this._isDisconnected=!1,this._watcher.status(J.CONNECTING),o=n.slice(),s=!1,[2,new Promise((function(n){var c=function(){return I(a,void 0,void 0,(function(){var a,u,l;return _(this,(function(f){switch(f.label){case 0:return 0===o.length||s?[2]:(s=!0,a=o.shift(),$i(go.IM_COMET,{startTime:(new Date).getTime(),host:a,protocol:ci.NAVI}),[4,this._connect(e,t,a,r,i)]);case 1:if(u=f.sent(),l=u===q.SUCCESS||u===X.REDIRECT?u:Gt(u),$i(go.IM_COMET,{endTime:(new Date).getTime(),code:l}),function(e){I(this,void 0,void 0,(function(){var t,n,r,i,o,s,a,c,u,l,f,h,d,p;return _(this,(function(g){switch(g.label){case 0:t=go.IM_COMET,n=Qi(),r=n.sdkPrivate,i=n.serverPrivate,o=n.bundleId,s=Ki(t),a=s.protocol,c=s.startTime,u=s.endTime,l=s.code,f=s.host,h=Vi.UNKONWN,g.label=1;case 1:return g.trys.push([1,3,,4]),[4,e.getNetworkType()];case 2:return h=g.sent(),[3,4];case 3:return d=g.sent(),dt.info(d.message),[3,4];case 4:return p=0,L(c)&&L(u)&&u>c&&c&&(p=u-c),Gi(t,{spr:r,pr:i,bid:o,ptc:a,dur:p,cod:l,hos:f,net:h}),[2]}}))}))}(this._runtime),u===q.SUCCESS)this._startPullSignal(r),n(u);else if(u===X.REDIRECT)n(u);else{if(0===o.length)return n(Gt(u)),[2];s=!1,c()}return[2]}}))}))};a._watcher.status(J.CONNECTING),c()}))]}))}))},t.prototype._connect=function(e,t,n,r,i){return I(this,void 0,void 0,(function(){var o,s,a,c;return _(this,(function(u){switch(u.label){case 0:return o=function(e){return 200!==e.status&&202!==e.status?(dt.error("handle comet res -> res: ".concat(JSON.stringify(e||{}))),!1):!!e.data&&(function(e){if(j(e))return!0;var t=!1;try{var n=JSON.parse(e);t=JSON.stringify(n)===e}catch(e){t=!1}return t}(e.data)?j(e.data)?e.data:JSON.parse(e.data):(dt.error("received data is not a validJson",e.data),!1))},s=yo(r,n,e,t,this._runtime,i,this._pid),this.sendConnectTime=Date.now(),dt.info("conenct start -> ".concat(s)),[4,this._runtime.httpReq({url:s,body:{pid:this._pid},timeout:5e3})];case 1:return a=u.sent(),c=o(a),this._domain=n,c&&0===c.status?(this._sessionid=c.sessionid,this.userId=c.userId,this.connectedTime=c.timestamp,Ze("connect success -> userId: ".concat(c.userId,", url: ").concat(s))):dt.warn("connect result -> code: ".concat(null==c?void 0:c.status,", url: ").concat(s)),[2,null==c?void 0:c.status]}}))}))},t.prototype.sendCometData=function(e,t){return I(this,void 0,void 0,(function(){var t,n,r,i,o,s,a,c,u,l;return _(this,(function(f){switch(f.label){case 0:return n=(t=this)._domain,r=t._sessionid,i=t._pid,o=e.messageId,s=e.topic,a=e.targetId,c=e.getHeaderFlag(),u=s?"".concat(this._protocol,"://").concat(n,"/websocket?messageid=").concat(o,"&header=").concat(c,"&sessionid=").concat(r,"&topic=").concat(s,"&targetid=").concat(a,"&pid=").concat(i):"".concat(this._protocol,"://").concat(n,"/websocket?messageid=").concat(o,"&header=").concat(c,"&sessionid=").concat(r,"&pid=").concat(i),[4,this._runtime.httpReq({url:u,method:Bi.POST,body:e.getCometData()})];case 1:return l=f.sent(),this.handleCometRes(l),[2]}}))}))},t.prototype.sendOnly=function(e){this.sendCometData(e)},t.prototype.send=function(e,t,n,r){return void 0===r&&(r=3e4),I(this,void 0,void 0,(function(){var i,o,s,a,c=this;return _(this,(function(u){switch(u.label){case 0:return i=this._generateMessageId(),e.messageId=i,this.sendCometData(e),[4,new Promise((function(e){c._messageIds[i]=e,setTimeout((function(){delete c._messageIds[i],e()}),r)}))];case 1:return(o=u.sent())?(s=t&&o.data&&[q.SUCCESS,q.CHATROOM_KV_STORE_NOT_ALL_SUCCESS].indexOf(o.status)>=0,a=s?this.codec.decodeByPBName(o.data,t,n):o,0!==o.status?[2,{code:o.status,data:t&&o.data?a:null}]:[2,{code:q.SUCCESS,data:a}]):[2,{code:q.TIMEOUT}]}}))}))},t.prototype.close=function(){this._isDisconnected=!0,this._watcher.status(J.DISCONNECTED)},t}(zi),Co=function(e){return["navi",e].join("_")};function Mo(e){return I(this,void 0,void 0,(function(){var t,n,r,i,o,s,a,c,u,l,f,h,d,p;return _(this,(function(g){switch(g.label){case 0:t=go.IM_NAVI,n=Qi(),r=n.sdkPrivate,i=n.serverPrivate,o=n.bundleId,s=Ki(t),a=s.protocol,c=s.startTime,u=s.endTime,l=s.code,f=s.host,h=Vi.UNKONWN,g.label=1;case 1:return g.trys.push([1,3,,4]),[4,e.getNetworkType()];case 2:return h=g.sent(),[3,4];case 3:return d=g.sent(),dt.debug(d.message),[3,4];case 4:return p=0,L(c)&&L(u)&&u>c&&c&&(p=u-c),Gi(t,{spr:r,pr:i,bid:o,ptc:a,dur:p,cod:l,hos:f,net:h}),[2]}}))}))}var Eo=function(){function e(e,t,n){this.runtime=e,this._watcher=t,this._options=n,this._appkey=this._options.appkey,this._apiVer=this._options.apiVersion,this._apiVersion=S(this._options.apiVersion)}return e.prototype.getNaviInfo=function(e,t,n,r){return I(this,void 0,void 0,(function(){var r,i;return _(this,(function(o){switch(o.label){case 0:return n&&this._clear(e),r=function(e,t,n){var r,i,o=Co(e);try{var s=n.getItem(o);i=s?JSON.parse(s):[]}catch(e){i=[]}var a=Date.now();return i.length>0&&(i=i.filter((function(e){return a-e.timestamp<72e5}))),0===i.length?n.removeItem(o):n.setItem(o,JSON.stringify(i)),(null===(r=i.find((function(e){return e.token===t})))||void 0===r?void 0:r.naviInfo)||null}(this._appkey,e,this.runtime.localStorage),r?[2,r]:(i=this._options.navigators.slice(),t.length&&t.forEach((function(e){i.indexOf(e)<0&&i.unshift(e)})),[4,this.requestNaviInfo(i,this._appkey,e)]);case 1:return(r=o.sent())?(this.setNaviInfo2Cache(e,r),[2,r]):[2,r]}}))}))},e.prototype.setNaviInfo2Cache=function(e,t){!function(e,t,n,r){var i,o=Co(e);try{var s=r.getItem(o);i=s?JSON.parse(s):[]}catch(e){i=[]}var a=Date.now();i.length>0&&(i=i.filter((function(e){return a-e.timestamp<72e5&&t!==e.token}))),i.push({timestamp:a,naviInfo:n,token:t}),r.setItem(o,JSON.stringify(i))}(this._appkey,e,t,this.runtime.localStorage)},e.prototype._clear=function(e){!function(e,t,n){var r,i=Co(e);try{var o=n.getItem(i);r=o?JSON.parse(o):[]}catch(e){r=[]}var s=Date.now();r.length>0&&(r=r.filter((function(e){return s-e.timestamp<72e5&&t!==e.token}))),0===r.length?n.removeItem(i):n.setItem(i,JSON.stringify(r))}(this._appkey,e,this.runtime.localStorage)},e}(),Ao=function(){function e(e){this._context=e}return e.prototype.__getContext=function(){return this._context},e.prototype.getNaviInfo=function(){return this._context.getInfoFromCache()},e.prototype.getCoreVersion=function(){return this._context.coreVersion},e.prototype.getAPIVersion=function(){return this._context.apiVersion},e.prototype.getAppkey=function(){return this._context.appkey},e.prototype.getCurrentId=function(){return this._context.getCurrentUserId()},e.prototype.getConnectionStatus=function(){return this._context.getConnectionStatus()},e.prototype.getDeviceId=function(){return this._context.getDeviceId()},e.prototype.sendMessage=function(e,t,n){return this._context.sendMessage(e,t,n)},e.prototype.registerMessageType=function(e,t,n,r){void 0===r&&(r=[]),this._context.registerMessageType(e,t,n,r)},e.prototype.getServerTime=function(){return this._context.getServerTime()},e.prototype.getRTCJoinedUserInfo=function(e){return this._context.getRTCJoinedUserInfo(e)},e}(),So=function(e,t,n){return[e,t,n].join("_")},No=function(){function e(e,t){this._runtime=e,this._appkey=t,this._users={}}return e.prototype._getMemData=function(e){return this._users[e]||(this._users[e]={inboxTime:0,outboxTime:0,broadcastSyncTime:0})},e.prototype.setInboxTime=function(e,t){var n=this._getMemData(t);if(!(n.inboxTime>e)){n.inboxTime=e;var r=So("inbox",this._appkey,t);this._runtime.localStorage.setItem(r,e.toString())}},e.prototype.getInboxTime=function(e){var t=this._getMemData(e);if(0===t.inboxTime){var n=So("inbox",this._appkey,e);t.inboxTime=parseInt(this._runtime.localStorage.getItem(n))||0}return t.inboxTime},e.prototype.setBroadcastSyncTime=function(e,t){var n=this._getMemData(t);if(!(n.broadcastSyncTime>=e||z(e))){n.broadcastSyncTime=e;var r=So("broadcastbox",this._appkey,t);this._runtime.localStorage.setItem(r,e.toString())}},e.prototype.getBroadcastSyncTime=function(e){var t=this._getMemData(e);if(!t||0===t.broadcastSyncTime){var n=So("broadcastbox",this._appkey,e);t.broadcastSyncTime=parseInt(this._runtime.localStorage.getItem(n))||1}return t.broadcastSyncTime},e.prototype.setOutboxTime=function(e,t){var n=this._getMemData(t);if(!(n.outboxTime>=e)){n.outboxTime=e;var r=So("outbox",this._appkey,t);this._runtime.localStorage.setItem(r,e.toString())}},e.prototype.getOutboxTime=function(e){var t=this._getMemData(e);if(0===t.outboxTime){var n=So("outbox",this._appkey,e);t.outboxTime=parseInt(this._runtime.localStorage.getItem(n))||0}return t.outboxTime},e}(),bo={_caches:{},set:function(e,t){this._caches[e]=t},get:function(e){return this._caches[e]||0},clear:function(e){this._caches[e]=0}},wo=function(){function e(e,t){this._kvCaches={},this._chatroomId=e,this._currentUserId=t}return e.prototype._add=function(e){var t=e.key;e.isDeleted=!1,this._kvCaches[t]=e},e.prototype._remove=function(e){var t=e.key,n=this._kvCaches[t];n&&(n.isDeleted=!0,this._kvCaches[t]=n)},e.prototype._setEntry=function(e,t){var n=e.key,r=e.type,i=e.isOverwrite,o=e.userId,s=this._getSetUserId(n),a=r===pe.DELETE,c=s===o,u=!this._isExisted(n),l=a?this._remove:this._add;(t||i||c||u)&&l.call(this,e)},e.prototype.getValue=function(e){var t=this._kvCaches[e]||{};return t.isDeleted?null:t.value},e.prototype.getVersion=function(e){var t=this._kvCaches[e]||{};return t.isDeleted?null:t.version},e.prototype.getAllValue=function(){var e={};for(var t in this._kvCaches)this._kvCaches[t].isDeleted||(e[t]=this._kvCaches[t].value);return e},e.prototype._getSetUserId=function(e){return(this._kvCaches[e]||{}).userId},e.prototype._isExisted=function(e){var t=this._kvCaches[e]||{},n=t.value,r=t.isDeleted;return n&&!r},e.prototype.setEntries=function(e){var t=this,n=e.kvEntries,r=e.isFullUpdate;n=n||[],(r=r||!1)&&this.clear(),n.forEach((function(e){t._setEntry(e,r)})),dt.debug("end setEntries")},e.prototype.clear=function(){this._kvCaches={}},e}(),Oo=function(){function e(e){this._pullQueue=[],this._isPulling=!1,this._storeCaches={},this._engine=e}return e.prototype._startPull=function(){return I(this,void 0,void 0,(function(){var e,t,n,r,i,o,s;return _(this,(function(a){switch(a.label){case 0:return this._isPulling||0===this._pullQueue.length?[2]:(this._isPulling=!0,e=this._pullQueue.splice(0,1)[0],t=e.chrmId,n=e.timestamp,(r=bo.get(t))>n?(this._isPulling=!1,this._startPull(),[2]):[4,this._engine.pullChatroomEntry(t,r)]);case 1:return i=a.sent(),o=i.code,s=i.data,this._isPulling=!1,o===q.SUCCESS?(bo.set(t,s.syncTime||0),this._startPull()):this._startPull(),[2]}}))}))},e.prototype.reset=function(e){bo.clear(e);var t=this._storeCaches[e];t&&t.clear()},e.prototype.pullEntry=function(e,t){this._pullQueue.push({chrmId:e,timestamp:t}),this._startPull()},e.prototype.setLocal=function(e,t,n){var r=this._storeCaches[e];V(r)||(r=new wo(e,n)),r.setEntries(t),this._storeCaches[e]=r},e.prototype.getValue=function(e,t){var n=this._storeCaches[e];return n?n.getValue(t):null},e.prototype.getVersion=function(e,t){var n=this._storeCaches[e];return n?n.getVersion(t):null},e.prototype.getAll=function(e){var t=this._storeCaches[e],n={};return t&&(n=t.getAllValue()),n},e}(),Ro=function(){function e(e,t,n,r){this._runtime=e,this._appkey=t,this._userId=n,this._canJoinMulipleChrm=r,this._sessionKey="",this._joinedChrmsInfo={},this._sessionKey="sync-chrm-".concat(this._appkey,"-").concat(this._userId)}return e.prototype.set=function(e,t){void 0===t&&(t=10),!this._canJoinMulipleChrm&&(this._joinedChrmsInfo={}),this._joinedChrmsInfo[e]=t,this._runtime.sessionStorage.setItem(this._sessionKey,JSON.stringify(this._joinedChrmsInfo))},e.prototype.get=function(){var e,t;try{t=this._runtime.sessionStorage.getItem(this._sessionKey),e=JSON.parse(t||"{}")}catch(o){dt.error("parse rejoined chrm infos error -> ".concat(t)),e={}}return e},e.prototype.remove=function(e){delete this._joinedChrmsInfo[e],V(this._joinedChrmsInfo)?this._runtime.sessionStorage.setItem(this._sessionKey,JSON.stringify(this._joinedChrmsInfo)):this.clear()},e.prototype.clear=function(){this._joinedChrmsInfo={},this._runtime.sessionStorage.removeItem(this._sessionKey)},e}(),Do="converStatusChanged",Lo=function(){function e(e,t,n){this._eventEmitter=new pt,this._pullQueue=[],this._isPulling=!1,this._storage=h(e.runtime),this._appkey=t,this._currentUserId=n,this._engine=e,this._storagePullTimeKey="con-s-".concat(t,"-").concat(n)}return e.prototype._set=function(e){var t=this;if(!z(e)&&Array.isArray(e)){var n=this._storage.get(this._storagePullTimeKey)||0,r=e.length;e.forEach((function(e,i){var o=e.updatedTime||0;n=o>n?o:n,e.conversationType=e.type,t._eventEmitter.emit(Do,{statusItem:e,isLastPull:i===r-1})})),this._storage.set(this._storagePullTimeKey,n)}},e.prototype._startPull=function(){return I(this,void 0,void 0,(function(){var e,t,n,r;return _(this,(function(i){switch(i.label){case 0:return this._isPulling||0===this._pullQueue.length?[2]:(this._isPulling=!0,e=this._pullQueue.splice(0,1)[0],[4,this._engine.pullConversationStatus(e)]);case 1:return t=i.sent(),n=t.code,r=t.data,n===q.SUCCESS?(this._isPulling=!1,this._set(r),this._startPull()):this._startPull(),[2]}}))}))},e.prototype.pull=function(e){var t=this._storage.get(this._storagePullTimeKey)||0;(e>t||0===e)&&(this._pullQueue.push(t),this._startPull())},e.prototype.watch=function(e){this._eventEmitter.on(Do,(function(t){e(t)}))},e.prototype.unwatch=function(){this._eventEmitter.off(Do,(function(e){}))},e}(),Uo={c:{keyName:"unreadMessageCount",defaultVal:0},hm:{keyName:"hasMentioned",defaultVal:!1},m:{keyName:"mentionedInfo",defaultVal:null},t:{keyName:"lastUnreadTime",defaultVal:0},lt:{keyName:"lastReadTime",defaultVal:0},nc:{keyName:"notificationStatus",defaultVal:2},nl:{keyName:"notificationLevel",defaultVal:0},to:{keyName:"isTop",defaultVal:!1},tg:{keyName:"tags",defaultVal:{}},mc:{keyName:"unreadMentionedCount",defaultVal:0}},xo={};for(var Po in Uo){var jo=Uo[Po].keyName;xo[jo]=Po}var ko,zo=function(){function e(e,t,n){this._appkey=t,this._currentUserId=n;var r="con-".concat(t,"-").concat(n);this.storage=new p(e,r),this._localStore=new p(e,"CONVER-".concat(t,"-").concat(n))}return e.prototype._getStoreKey=function(e,t,n){return"".concat(n,"_").concat(e,"_").concat(t)},e.prototype._getConOptionByKey=function(e){var t=(e=e||"").split("_");if(t.length>=2){var n=t.shift(),r=t.shift(),i=t.join("_");return{conversationType:Number(r),targetId:i,channelId:n}}return{conversationType:b.PRIVATE,targetId:"",channelId:""}},e.prototype.updateMentionedData=function(e){var t=this,n=e.conversationType,r=e.targetId,i=e.messageType,o=e.isMentioned,s=e.content,a=e.senderUserId,c=e.channelId,u=this._getStoreKey(n,r,c),l=this._localStore.get(u)||{},f=xo.mentionedInfo,h=xo.hasMentioned,d=l[f]||{},p=d.userIdList||[],g=s.mentionedInfo;if(g){if(o&&n===b.GROUP&&((g.userIdList||[]).forEach((function(e){e===t._currentUserId&&p.indexOf(a)<0&&p.push(a)})),g.type===ae.ALL&&p.indexOf(a)<0&&p.push(a)),i===te.RECALL&&n===b.GROUP){var v=p.indexOf(a);v>=0&&p.splice(v,1)}g={userIdList:p,type:(null==g?void 0:g.type)||d.type},0!==p.length?(l[f]=g,l[h]=!0):(delete l[f],delete l[h]),V(l)?this._localStore.set(u,l):this._localStore.remove(u)}},e.prototype.set=function(e,t,n,r){var i=this._getStoreKey(e,t,r),o=this._localStore.get(i)||{};for(var s in n){var a=xo[s],c=n[s];if(!z(a)&&!z(c)&&"hasMentioned"!==s&&"MentionedInfo"!==s){if(c===Uo[a].defaultVal||"tags"===s&&!V(c))delete o[a];else if("tags"===s){var u=c;for(var l in u)u[l].isTop||delete u[l].isTop;o[a]=c}else o[a]=c;o.c||(delete o.t,delete o.hm,delete o.m,delete o.mc)}}V(o)?this._localStore.set(i,o):this._localStore.remove(i)},e.prototype.get=function(e,t,n){void 0===n&&(n="");var r=this._getStoreKey(e,t,n),i=this._localStore.get(r)||{},o={};for(var s in Uo){var a=Uo[s],c=a.keyName,u=a.defaultVal;o[c]=i[s]||kt(u)}return o},e.prototype.getValue=function(e){var t=this._localStore.getValues()||{},n=[];for(var r in t){var i=this._getConOptionByKey(r),o={conversationType:i.conversationType,targetId:i.targetId,channelId:i.channelId},s=t[r];for(var a in s)if(Uo[a]){var c=Uo[a],u=c.keyName,l=c.defaultVal;o[u]=s[a]||kt(l)}o=e?e(o):o,n.push(o)}return n},e.prototype.getValueForTag=function(){var e=this._localStore.getValues()||{},t={};for(var n in e){var r=this._getConOptionByKey(n),i=r.conversationType,o=r.targetId,s={},a=e[n];for(var c in a){var u=Uo[c],l=u.keyName,f=u.defaultVal;s[l]=a[c]||kt(f)}for(var h in s.tags){z(t[h])&&(t[h]=[]);var d=Object.assign({},s,{conversationType:i,targetId:o});delete d.tags,t[h].push(d)}}return t},e.prototype.adaptOldStore=function(){try{var e=this.storage.getValues();if(0===Object.keys(e).length)return;for(var t in e){var n="_".concat(t);this._localStore.set(n,e[t])}this.storage.clear()}catch(e){dt.error("adaptOldStore error: ".concat(e.message))}},e}(),Go=[b.PRIVATE,b.GROUP,b.SYSTEM,b.PUBLIC_SERVICE,b.APP_PUBLIC_SERVICE],Bo="conversationChanged",Vo="conTagStatusChanged",Yo=function(){function e(e,t,n,r,i){var o=this;this._updatedConversations={},this._conTagStatusChanged=!1,this._eventEmitter=new pt,this._draftMap={},this._recallMsgTimeMap={},this._appkey=t,this._loginUserId=n,this._store=new zo(e.runtime,t,n),this._statusManager=new Lo(e,t,n),this._statusManager.watch((function(e){var t=e.statusItem,n=e.isLastPull;o.addStatus(t,n)})),this._eventEmitter.on(Bo,(function(e){r(e)})),this._eventEmitter.on(Vo,(function(){i()}))}return e.prototype._calcUnreadCount=function(e,t){var n=e.content,r=e.messageType,i=e.sentTime,o=e.isCounted,s=e.messageDirection,a=e.senderUserId,c=s===K.SEND&&a===this._loginUserId,u=r===te.RECALL,l=j(n),f=!1,h={},d=t.lastUnreadTime||0,p=t.lastReadTime||0,g=t.unreadMessageCount||0;if(d>i||c)return{hasChanged:f,localConversation:t,updateItems:h};if(o&&(t.unreadMessageCount=g+1,t.lastUnreadTime=i,f=!0),u&&l){var v="".concat(e.conversationType,"_").concat(e.channelId,"_").concat(e.targetId),y=!this._recallMsgTimeMap[v]||this._recallMsgTimeMap[v]&&!this._recallMsgTimeMap[v].find((function(e){return e===n.sentTime})),m=d>=n.sentTime;p&&(m=p<n.sentTime),m&&g&&y&&(!this._recallMsgTimeMap[v]&&(this._recallMsgTimeMap[v]=[]),this._recallMsgTimeMap[v].push(n.sentTime),t.unreadMessageCount=g-1,f=!0)}return f&&(h.unreadMessageCount={val:t.unreadMessageCount,time:i}),{hasChanged:f,localConversation:t,updateItems:h}},e.prototype._calcMentionedInfo=function(e,t){var n=e.content,r=(e.messageDirection,e.isMentioned),i=e.sentTime;K.SEND;var o=j(n),s=!1,a={};return r&&o&&n.mentionedInfo&&(t.hasMentioned=!0,s=!0,a.hasMentioned={val:!0,time:i},a.mentionedInfo={val:n.mentionedInfo,time:i}),{hasChanged:s,localConversation:t,updateItems:a}},e.prototype._calcMentionedCount=function(e,t){var n=e.content,r=e.messageDirection,i=!1;if(e.isMentioned&&r===K.RECEIVE&&(null==n?void 0:n.mentionedInfo)){var o=n.mentionedInfo,s=o.type,a=o.userIdList;if(s===ae.ALL||(a||[]).includes(this._loginUserId)){i=!0;var c=t.unreadMentionedCount||0;t.unreadMentionedCount=c+1}}return{hasChanged:i,localConversation:t}},e.prototype._setUpdatedConversation=function(e){if(j(e)){var t=e.conversationType,n=e.targetId,r=e.channelId,i="".concat(t,"_").concat(n),o=this._store.get(t,n,r)||{};this._updatedConversations[i]=Object.assign(o,e)}},e.prototype._setConTagStatusChanged=function(e,t,n,r){var i=(this._store.get(e,t,r)||{}).tags||{};if(Object.keys(i).length===Object.keys(n).length){for(var o in i)if(!n[o]||!!i[o].isTop!=!!n[o].isTop)return void(this._conTagStatusChanged=!0)}else this._conTagStatusChanged=!0},e.prototype.addStatus=function(e,t){var n=e.conversationType,r=e.targetId,i=e.updatedTime,o=e.notificationStatus,s=e.notificationLevel,a=e.isTop,c=e.tags,u=e.channelId,l={},f={};n!==b.ULTRA_GROUP&&(z(o)||(f.notificationStatus={time:i,val:o}),z(s)||(f.notificationLevel={time:i,val:s}),z(a)||(f.isTop={time:i,val:a}),z(c)||(f.tags={time:i,val:c},null==c||c.forEach((function(e){l[e.tagId]={isTop:e.isTop}}))),this._setConTagStatusChanged(n,r,l,u),this._store.set(n,r,{notificationStatus:o,notificationLevel:s,isTop:a,tags:l},u),this._setUpdatedConversation({conversationType:n,targetId:r,updatedItems:f,channelId:u}),t&&this._notifyConversationChanged())},e.prototype._notifyConversationChanged=function(){var e=[];for(var t in this._updatedConversations)e.push(this._updatedConversations[t]);0!==e.length&&(this._eventEmitter.emit(Bo,e),this._updatedConversations={},this._conTagStatusChanged&&(this._eventEmitter.emit(Vo),this._conTagStatusChanged=!1))},e.prototype.setConversationCacheByMessage=function(e,t){var n=this,r=e.conversationType,i=e.isPersited,o=e.targetId,s=e.channelId;if(Go.indexOf(r)>=0){var a=!1,c=this._store.get(r,o,s),u={};if([this._calcUnreadCount,this._calcMentionedInfo,this._calcMentionedCount].forEach((function(t){var r=t.call(n,e,c),i=r.hasChanged,o=r.localConversation,s=r.updateItems;a=a||i,u=m(m({},u),s),c=kt(o)})),a&&this._store.set(r,o,c,s),this._store.updateMentionedData(e),i){var l=this._store.get(r,o,s);l.updatedItems=m({latestMessage:{time:e.sentTime,val:e}},u),l.latestMessage=e;var f=Object.assign(l,{conversationType:r,targetId:o,channelId:s});this._setUpdatedConversation(f)}(a||i)&&this._notifyConversationChanged()}},e.prototype.get=function(e,t,n){return void 0===n&&(n=""),this._store.get(e,t,n)},e.prototype.getAllUnreadCount=function(e,t,n){var r=this._store.getValue(),i=0;return r.forEach((function(e){var r=e.unreadMessageCount,o=e.notificationStatus,s=e.notificationLevel,a=e.conversationType;r=r||0,(n||1!==o||s===oe.NOT_SET||s===oe.ALL_MESSAGE)&&(t.length>0?t.includes(Number(a))&&(i+=Number(r)):i+=Number(r))})),i},e.prototype.getUnreadCountByTag=function(e,t){var n=this._store.getValueForTag()[e]||[],r=0;return n.forEach((function(e){var n=e.unreadMessageCount,i=e.notificationStatus,o=e.notificationLevel;(t||1!==i||-1===o||0===o)&&(n=n||0,r+=Number(n))})),r},e.prototype.getUnreadCount=function(e,t,n){return this._store.get(e,t,n).unreadMessageCount||0},e.prototype.clearUnreadCount=function(e,t,n,r){void 0===r&&(r=!0);var i=this._store.get(e,t,n);i.lastReadTime=i.lastUnreadTime,this._recallMsgTimeMap["".concat(e,"_").concat(n,"_").concat(t)]=[];var o=i.unreadMessageCount,s=i.hasMentioned,a={};if(o&&(i.unreadMessageCount=0,a.unreadMessageCount={val:0,time:Date.now()}),s&&(i.hasMentioned=!1,i.unreadMentionedCount=0,i.mentionedInfo=void 0,a.hasMentioned={val:!1,time:Date.now()},a.mentionedInfo={val:void 0,time:Date.now()}),this._store.set(e,t,i,n),r&&0!==Object.keys(a).length){var c=Object.assign(i,{conversationType:e,targetId:t,channelId:n,updatedItems:a});this._setUpdatedConversation(c),this._notifyConversationChanged()}},e.prototype.clearAllUnreadCount=function(){var e=this;this._store.getValue().forEach((function(t){t.unreadMessageCount&&(t.unreadMessageCount=0,t.lastReadTime=t.lastUnreadTime,e._recallMsgTimeMap={},e._store.set(t.conversationType,t.targetId,t,t.channelId))}))},e.prototype.startPullConversationStatus=function(e){this._statusManager.pull(e)},e.prototype.setDraft=function(e,t,n,r){var i="".concat(e,"_").concat(t,"_").concat(r);this._draftMap[i]=n},e.prototype.getDraft=function(e,t,n){var r="".concat(e,"_").concat(t,"_").concat(n);return this._draftMap[r]},e.prototype.clearDraft=function(e,t,n){var r="".concat(e,"_").concat(t,"_").concat(n);delete this._draftMap[r]},e.prototype.addTagStatus=function(e,t,n,r){void 0===r&&(r="");var i=this._store.get(e,t,r).tags;i=Object.assign(i,n),this._store.set(e,t,{tags:i},r)},e.prototype.deleteTagStatus=function(e,t,n,r){void 0===r&&(r="");var i=this._store.get(e,t,r).tags;n.forEach((function(e){delete i[e]})),this._store.set(e,t,{tags:i},r)},e.prototype.getConversationListForTag=function(){return this._store.getValueForTag()},e.prototype.getBlockConversationList=function(){return this._store.getValue().filter((function(e){return e.notificationStatus===re.OPEN||-1!==e.notificationLevel&&0!==e.notificationLevel})).map((function(e){return{conversationType:e.conversationType,targetId:e.targetId,channelId:e.channelId}}))},e.prototype.getTopConversationList=function(){return(this._store.getValue()||{}).filter((function(e){return e.isTop})).map((function(e){return{conversationType:e.conversationType,targetId:e.targetId,channelId:e.channelId}}))},e.prototype.adaptOldStore=function(){this._store.adaptOldStore()},e.prototype.getUnreadMentionedCount=function(e,t,n){return void 0===e&&(e=""),this.get(t,n,e).unreadMentionedCount||0},e.prototype.getAllUnreadMentionedCount=function(){var e=this._store.getValue(),t=0;return e.forEach((function(e){var n=e.unreadMentionedCount;n=n||0,t+=Number(n)})),t},e.prototype.getAllConversationState=function(){return this._store.getValue().filter((function(e){return e.unreadMessageCount||e.unreadMentionedCount})).map((function(e){return{conversationType:e.conversationType,targetId:e.targetId,channelId:e.channelId,unreadCount:e.unreadMessageCount||0,unreadMentionedCount:e.unreadMentionedCount||0}}))},e}(),Ho=function(){function e(e,t,n,r){this._pullQueue=[],this._isPulling=!1,this._storageTagKey="tag-".concat(t,"-").concat(n),this._storagePullTimeKey="us-s-".concat(t,"-").concat(n),this._storage=h(e.runtime),this._engine=e,this._tagWatcherFunc=r}return e.prototype._updateTag=function(e){var t=e.tags,n={};t.forEach((function(e){n[e.tagId]={tagName:e.tagName,createdTime:e.createdTime}})),this._storage.set(this._storageTagKey,n),this._tagWatcherFunc()},e.prototype.addTag=function(e,t){var n=this._storage.get(this._storageTagKey)||{};e.forEach((function(e){var t,r=(null===(t=n[e.tagId])||void 0===t?void 0:t.createdTime)||e.createdTime||0;n[e.tagId]={tagName:e.tagName,createdTime:r}})),this._storage.set(this._storageTagKey,n),this._storage.set(this._storagePullTimeKey,t)},e.prototype.deleteTag=function(e,t){var n=this._storage.get(this._storageTagKey)||{};e.forEach((function(e){delete n[e]})),this._storage.set(this._storageTagKey,n),this._storage.set(this._storagePullTimeKey,t)},e.prototype.getTagsInfo=function(){return this._storage.get(this._storageTagKey)||{}},e.prototype.getTags=function(){var e=this._storage.get(this._storageTagKey)||{},t=[];for(var n in e)t.push({tagId:n,tagName:e[n].tagName,createdTime:e[n].createdTime,conversationCount:0});return t.sort((function(e,t){return(e.createdTime||0)-(t.createdTime||0)}))},e.prototype.getTagById=function(e){var t=this._storage.get(this._storageTagKey)||{};return t[e]?{tagId:e,tagName:t[e].tagName,createdTime:t[e].createdTime,conversationCount:0}:null},e.prototype._startPull=function(){return I(this,void 0,void 0,(function(){var e,t,n,r,i,o,s,a;return _(this,(function(c){switch(c.label){case 0:return this._isPulling||0===this._pullQueue.length?[2]:(this._isPulling=!0,e=this._pullQueue.splice(0,1)[0],[4,this._engine.pullUserSettings(e)]);case 1:return t=c.sent(),n=t.code,r=t.data,n!==q.SUCCESS||z(r)?(this._isPulling=!1,this._startPull()):(o=(i=r).settings,s=i.version,a=o.Tag,z(a)||this._updateTag(a),this._storage.set(this._storagePullTimeKey,s),this._isPulling=!1,this._startPull()),[2]}}))}))},e.prototype.pullUserSettings=function(e){var t=this._storage.get(this._storagePullTimeKey)||0;(e>t||0===e)&&(this._pullQueue.push(t),this._startPull())},e.prototype.getVersion=function(){return this._storage.get(this._storagePullTimeKey)||0},e}(),Fo=function(){function e(e){this._pullQueue=[],this._isPulling=!1,this._pullTime=0,this._engine=e}return e.prototype._startPull=function(){return I(this,void 0,void 0,(function(){var e,t,n,r,i,o,s;return _(this,(function(a){switch(a.label){case 0:return this._isPulling||0===this._pullQueue.length?[2]:(this._isPulling=!0,e=this._pullQueue.splice(0,1)[0],t=e.roomId,n=e.timestamp,(r=this._pullTime)>n?(this._isPulling=!1,this._startPull(),[2]):[4,this._engine.pullRTCRoomEntry(t,r)]);case 1:return i=a.sent(),o=i.code,s=i.data,o===q.SUCCESS?(this._isPulling=!1,this._pullTime=s.syncTime||0,this._startPull()):this._startPull(),[2]}}))}))},e.prototype.pullEntry=function(e,t){this._pullQueue.push({roomId:e,timestamp:t}),this._startPull()},e.prototype.reset=function(){this._pullTime=0,this._isPulling=!1},e}(),Qo=function(e,t){return["send_msg",e,t].join("_")},$o=function(){function e(e,t){this._runtime=e,this._appkey=t,this._sendMessageMap={},this._userId=""}return e.prototype.init=function(e){this._userId=e;var t=Qo(this._appkey,e);this._sendMessageMap=this._getLocalInfo(t)},e.prototype._getLocalInfo=function(e){var t=this._runtime.localStorage.getItem(e);try{return t?JSON.parse(t):{}}catch(e){return{}}},e.prototype.setMessage=function(e,t){this._sendMessageMap[e]=t;var n=Qo(this._appkey,this._userId),r=this._getLocalInfo(n);r[e]=t,this._runtime.localStorage.setItem(n,JSON.stringify(r))},e.prototype.getSendMessageMap=function(){return this._sendMessageMap},e.prototype.removeByUID=function(e){delete this._sendMessageMap[e]},e.prototype.removeByTimestamp=function(e){var t=Qo(this._appkey,this._userId),n=this._getLocalInfo(t);Object.keys(n).forEach((function(t){n[t]<e&&delete n[t]})),this._runtime.localStorage.setItem(t,JSON.stringify(n))},e}();(ko={})[b.PRIVATE]=vo.qryPMsg,ko[b.GROUP]=vo.qryGMsg,ko[b.CHATROOM]=vo.qryCHMsg,ko[b.CUSTOMER_SERVICE]=vo.qryCMsg,ko[b.SYSTEM]=vo.qrySMsg;var Ko=[vo[vo.recallMsg],vo[vo.ppMsgS],vo[vo.pgMsgS],vo[vo.ppMsgP],vo[vo.pgMsgP],vo[vo.chatMsg],vo[vo.pcMsgP],vo[vo.prMsgS],vo[vo.updUgRTime]],Wo=function(){function e(e,t,n){this.ULTRA_GROUP_CONVERSATION="ultragroupconversation";var r="".concat(this.ULTRA_GROUP_CONVERSATION,"-").concat(t,"-").concat(n);this._localStore=new p(e,r)}return e.prototype.set=function(e,t,n,r){var i=this._getStoreKey(e,t,r),o=this._localStore.get(i)||{};for(var s in n){var a=Zo[s],c=n[s];z(a)||z(c)||(c===qo[a].defaultVal?delete o[a]:o[a]=c)}V(o)?this._localStore.set(i,o):this._localStore.remove(i)},e.prototype.get=function(e,t,n){void 0===n&&(n="");var r=this._getStoreKey(e,t,n),i=this._localStore.get(r)||{},o={};for(var s in qo){var a=qo[s],c=a.keyName,u=a.defaultVal;o[c]=i[s]||kt(u)}return o},e.prototype._getStoreKey=function(e,t,n){return"".concat(n,"_").concat(e,"_").concat(t)},e}(),qo={nc:{keyName:"notificationStatus",defaultVal:2},nl:{keyName:"notificationLevel",defaultVal:0}},Zo={};for(var Jo in qo){var Xo=qo[Jo].keyName;Zo[Xo]=Jo}var es=function(){function e(e,t,n){this._store=new Wo(e.runtime,t,n)}return e.prototype.addUltraGroupStatus=function(e){var t=e.conversationType,n=e.targetId,r=e.notificationStatus,i=e.notificationLevel,o=e.channelId;t===b.ULTRA_GROUP&&this._store.set(t,n,{notificationStatus:r,notificationLevel:i},o)},e.prototype.get=function(e,t,n){return void 0===n&&(n=""),this._store.get(e,t,n)},e}(),ts=function(e,t,n,r,i,s,a){return{conversationType:e,targetId:t,senderUserId:s,messageDirection:K.SEND,isCounted:!!n.isCounted,isMentioned:!!n.isMentioned,content:n.content,messageType:n.messageType,isOffLineMessage:!1,isPersited:!!n.isPersited,messageUId:r,sentTime:i,receivedTime:0,disableNotification:!!n.disableNotification,isStatusMessage:!!n.isStatusMessage,canIncludeExpansion:!!n.canIncludeExpansion,expansion:n.canIncludeExpansion?n.expansion:null,receivedStatus:o.UNREAD,pushConfig:n.pushConfig,channelId:n.channelId,isInterrupt:n.isInterrupt,messageId:a||0}},ns=function(e){return e.sort((function(e,t){var n,r,i=(null===(n=e.latestMessage)||void 0===n?void 0:n.sentTime)||0;return((null===(r=t.latestMessage)||void 0===r?void 0:r.sentTime)||0)-i}))},rs=0,is=function(){return++rs},os=function(e){function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.naviInfo=null,i._customMessageType={},i._reconnectTimer=-1,i._pullOfflineFinished=!1,i._conversationUpdatedTime=0,i._miniConnectUrl="",i.currentUserId="",i._connectedTime=0,i._localConnectedTime=0,i._status=J.DISCONNECTED,i._pullingMsg=!1,i._pullQueue=[],i._chrmsQueue={},i._latestSyncTimestamp=0,i._intervalTimer=-1,i._pullChatroomEntryTimestamp=0,i._intervalTimerForChrmPull=-1,i._lastSyncUltraMsgTimeStamp=0,i._lastSyncUltraMsgLocalTimeStamp=0,i._ultraGroupTimer=-1,i._isUltraPulling=!1,i._ultraGroupTimeQue=[],i._isUltraGroupListExist=!1,i._ultraGroupMap={},i._firstPullUltraGroupTime=0,i._ultraMsgMap={},i._pullUltraChangeMessageQue=[],i._isPullingUltraChangeMessage=!1,i._lastPullingUltraChangeMessageTime=0,i._ultraMsgChangeMap={},i._letterbox=new No(t,r.appkey),i._sendMessageStore=new $o(t,r.appkey),i._chrmEntryHandler=new Oo(i),i._connectType=r.connectionType,i}return y(t,e),t.prototype._formatJSONPUrl=function(e,t,n,r){var i=this.runtime.isSupportSocket()&&"websocket"===this._connectType?"navi":"cometnavi";return"".concat(e,"/").concat(i,".js?appId=").concat(n,"&token=").concat(encodeURIComponent(t),"&callBack=").concat(r,"&v=").concat(this._apiVersion,"&r=").concat(Date.now())},t.prototype.getNaviInfo=function(t,n,r){var i;return I(this,void 0,void 0,(function(){var o;return _(this,(function(s){return this.runtime.useNavi||(o=void 0,o=this.runtime.isSupportSocket()&&"websocket"===this._connectType?a.join(","):c.join(","),this._miniConnectUrl=(null===(i=this._options.miniCMPProxy)||void 0===i?void 0:i.length)?this._options.miniCMPProxy.join(","):o||"",n=[]),[2,e.prototype.getNaviInfo.call(this,t,n,r)]}))}))},t.prototype.requestNaviInfo=function(e,t,n){return I(this,void 0,void 0,(function(){var r,i,o,s,a,c,u,l,f,h,d;return _(this,(function(p){switch(p.label){case 0:r="getServerEndpoint",i=0,o=e.length,p.label=1;case 1:return i<o?(s=this._formatJSONPUrl(e[i],n,t,r),qe("req navi => ".concat(s)),[4,this.runtime.httpReq({url:s,timeout:1e4,dataType:"text"})]):[3,4];case 2:if(a=p.sent(),c=(new Date).getTime(),$i(go.IM_NAVI,{endTime:c}),200!==a.status)return u=void 0,403===a.status?(u=q.RC_CONN_USER_OR_PASSWD_ERROR,Xe("request navi error: "+u)):401===a.status&&(u=q.RC_CONN_APP_BLOCKED_OR_DELETED,Xe("request navi error: "+u)),$i(go.IM_NAVI,{code:u}),Mo(this.runtime),[3,3];try{return l=a.data.match(/{[\d\D]+}/),0===(f=l&&l[0]?l[0]:"").indexOf('{\\"code\\":')&&(f=JSON.parse('"'+f+'"')),d=JSON.parse(f),h=/^https/.test(s)?"https":"http",d.protocol=h,this.runtime.useNavi||(d.server="",d.backupServer=this._miniConnectUrl,d.logSwitch=0),Fi({serverPrivate:d.type===ai.PRIVATE?ai.PRIVATE:ai.OPEN}),$i(go.IM_NAVI,{code:q.SUCCESS}),d.userId&&(ut({userId:d.userId}),$e({userId:d.userId})),Mo(this.runtime),[2,d]}catch(e){Xe("parse navi err =>",e)}p.label=3;case 3:return i+=1,[3,1];case 4:return this.runtime.useNavi?[2,null]:(d={code:200,protocol:"https",server:"",voipCallInfo:"",kvStorage:0,openHttpDNS:!1,historyMsg:!1,chatroomMsg:!1,uploadServer:"https://upload.qiniup.com",bosAddr:"https://gz.bcebos.com",location:"",monitor:0,joinMChrm:!1,openMp:0,openUS:0,grpMsgLimit:0,isFormatted:0,gifSize:2048,logSwitch:0,logPolicy:"",compDays:0,msgAck:"",activeServer:"",qnAddr:"",extkitSwitch:0,alone:!1,voipServer:"",offlinelogserver:"",backupServer:this._miniConnectUrl},$i(go.IM_NAVI,{code:d.code,startTime:0,endTime:0,host:""}),Mo(this.runtime),[2,d])}}))}))},t.prototype.getNaviInfoFromCache=function(){return this.naviInfo?m({},this.naviInfo):null},t.prototype.getConnectedTime=function(){return this._connectedTime},t.prototype.connect=function(e,t){return I(this,void 0,void 0,(function(){var n,r,i,o,s,a=this;return _(this,(function(c){switch(c.label){case 0:return n=[],this.naviInfo=t,t.server?n.push(t.server):dt.warn("navi.server is invalid"),(r=t.backupServer)&&r.split(",").forEach((function(e){n.indexOf(e)<0&&n.push(e)})),0===n.length?(dt.error("navi invaild.",n),[2,q.UNKNOWN]):(i=this.runtime.createDataChannel({status:function(r){a._connectionStatusHandler(r,e,n,t.protocol)},signal:this._signalHandler.bind(this)},this._options.connectionType),o=Mt.V3,1===t.openAnti&&(o=Mt.V4),[4,i.connect(this._appkey,e,n,t.protocol,this._apiVer,o)]);case 1:return(s=c.sent())===q.SUCCESS?(this._channel=i,this.currentUserId=i.userId,this._connectedTime=i.connectedTime,this._localConnectedTime=Math.floor((Date.now()+i.sendConnectTime)/2),this._watcher.status(J.CONNECTED),this._status=J.CONNECTED,this._pullOfflineFinished=!1,this._conversationManager=new Yo(this,this._appkey,this.currentUserId,this._watcher.conversation,this._watcher.conversationTag),this._ultraGroupManager=new es(this,this._appkey,this.currentUserId),this._conversationManager.startPullConversationStatus(0),this._userSettingManager=new Ho(this,this._appkey,this.currentUserId,this._watcher.tag),this._userSettingManager.pullUserSettings(0),this._sendMessageStore.init(this.currentUserId),this._conversationManager.adaptOldStore(),this._rtcKVManager=new Fo(this),this._joinedChrmManager=new Ro(this.runtime,this._appkey,this.currentUserId,t.joinMChrm),this._startSyncInterval(),1===t.ugMsg&&this._startUltraSyncInterval()):i.close(),[2,s]}}))}))},t.prototype._connectionStatusHandler=function(e,t,n,r){if(dt.warn("connection status changed:",e),this._status=e,e!==J.CONNECTING)if(e!==J.CONNECTED){if(this._channel&&e!==J.DISCONNECTED)return e===J.BLOCKED||e===J.KICKED_OFFLINE_BY_OTHER_CLIENT||e===J.DISCONNECT_BY_SERVER?(this.disconnect(),void this._watcher.status(e)):void(e!==J.REDIRECT?(this._watcher.status(e),this._try2Reconnect(t,n,r)):this._watcher.status(e));this._watcher.status(e)}else this._watcher.status(e);else this._watcher.status(e)},t.prototype._try2Reconnect=function(e,t,n){var r,i;return I(this,void 0,void 0,(function(){var o,s=this;return _(this,(function(a){switch(a.label){case 0:return this._channel?(o=Mt.V3,1===(null===(r=this.naviInfo)||void 0===r?void 0:r.openAnti)&&(o=Mt.V4),[4,this._channel.connect(this._appkey,e,t,n,this._apiVer,o)]):[2];case 1:return a.sent()===q.SUCCESS?(this._pullOfflineFinished=!1,this._startSyncInterval(),this._watcher.status(J.CONNECTED),this._status=J.CONNECTED,1===(null===(i=this.naviInfo)||void 0===i?void 0:i.ugMsg)&&this._startUltraSyncInterval(),this._rejoinChrm(),[2]):(this._watcher.status(J.WEBSOCKET_UNAVAILABLE),this._status=J.WEBSOCKET_UNAVAILABLE,this._reconnectTimer=setTimeout((function(){s._reconnectTimer=-1,s._try2Reconnect(e,t,n)}),5e3),[2])}}))}))},t.prototype._signalHandler=function(e,t){var n=e.syncMsg,r=e.topic;if(n)this._receiveSyncMsg(e,t);else{var i=vo[r];if(i)switch(i){case vo.s_ntf:dt.info("recv s_ntf -> signal.messageId: ".concat(e.messageId)),this._pullMsg(e);break;case vo.s_msg:this._receiveMsg(e);break;case vo.s_cmd:this._receiveStateNotify(e);break;case vo.s_us:this._receiveSettingNotify(e);break;case vo.rtc_ntf:this._receiveRtcKv(e);break;case vo.s_opNtf:this._pullOperateStatusNotify(e)}else dt.error("unknown topic:",r)}},t.prototype._receiveStateNotify=function(e){var t,n=null===(t=this._channel)||void 0===t?void 0:t.codec.decodeByPBName(e.data,sn),r=n.time,i=n.type,o=n.chrmId;switch(i){case 2:this._chrmEntryHandler.pullEntry(o,r);break;case 3:this._conversationManager.startPullConversationStatus(r);break;case 4:this._chrmEntryHandler.reset(o),this._watcher.chatroom({chatroomDestroyed:e.targetId});break;case 6:this._ultraGroupTimeQue.push(r),this._syncUltraMsg(this._lastSyncUltraMsgTimeStamp);break;case 7:this._pullUltraChangeMessageQue.push(r),this._pullUltraChangeMessageList(this._lastPullingUltraChangeMessageTime)}},t.prototype._receiveSettingNotify=function(e){var t,n=(null===(t=this._channel)||void 0===t?void 0:t.codec.decodeByPBName(e.data,rr)).version;this._userSettingManager.pullUserSettings(n)},t.prototype._receiveRtcKv=function(e){var t,n=null===(t=this._channel)||void 0===t?void 0:t.codec.decodeByPBName(e.data,Pr),r=n.time,i=n.type,o=n.roomId;1===i&&this._rtcKVManager.pullEntry(o,r)},t.prototype._receiveMessageExpansion=function(e){var t=e.content,n=t.put,r=t.del,i=t.mid;n&&this._watcher.expansion({updatedExpansion:{messageUId:i,expansion:n}}),r&&this._watcher.expansion({deletedExpansion:{messageUId:i,deletedKeys:r}})},t.prototype._receiveSyncMsg=function(e,t){var n,r;if(Ko.includes(e.topic)){if(e.topic===vo[vo.updUgRTime]){var i=null===(n=this._channel)||void 0===n?void 0:n.codec.decodeByPBName(e.data,yn),o=i.channelId,s=i.busChannel,a=this._ultraGroupMap[s+"_"+o];return a&&(a.unreadMessageCount=0,a.unreadMentionedCount=0,a.lastReadTime=t.timestamp,this._watcher.conversation(Vt([a]))),void(t&&(this._ultraMsgMap[t.messageUId]=t.timestamp))}var c=null===(r=this._channel)||void 0===r?void 0:r.codec.decodeByPBName(e.data,Zt,{currentUserId:this.currentUserId,signal:e});c=this._handleMsgProperties(c),t&&(c.sentTime=t.timestamp,c.messageUId=t.messageUId),this._pullingMsg?this._pullQueue.push((null==t?void 0:t.timestamp)||c.sentTime):(t&&this._sendMessageStore.setMessage(t.messageUId,t.timestamp),c.messageType!==te.EXPANSION_NOTIFY?(c.messageType===te.SYNC_READ_STATUS&&this._conversationManager.clearUnreadCount(c.conversationType,c.targetId,c.channelId),this._conversationManager.setConversationCacheByMessage(c,!0),this._watcher.batchMessage([c])):this._receiveMessageExpansion(c))}},t.prototype._pullMsg=function(e){if(this._channel){var t=this._channel.codec.decodeByPBName(e.data,sn),n=t.type,r=t.chrmId,i=t.time;if(dt.info("s_ntf -> type: ".concat(n,", chrmId: ").concat(r,", time: ").concat(i)),2===n){var o=this._chrmsQueue[r];if(!o)return;o.queue.push(i),this._pullChrmMsg(r)}else this._pullQueue.push(i),this._syncMsg()}},t.prototype._startSyncInterval=function(){var e=this;this._stopSyncInterval(),this._intervalTimer=setInterval((function(){Date.now()-e._latestSyncTimestamp>=18e4&&e._syncMsg()}),3e4),this._latestSyncTimestamp=Date.now(),this._syncMsg()},t.prototype._stopSyncInterval=function(){-1!==this._intervalTimer&&(clearInterval(this._intervalTimer),this._intervalTimer=-1)},t.prototype._syncMsg=function(){return I(this,void 0,void 0,(function(){var e,t,n,r,i,o,s,a,c,u,l,f,h,d,p,g,v,y,m,I=this;return _(this,(function(_){switch(_.label){case 0:return this._pullingMsg?[2]:this._channel?(this._pullingMsg=!0,e=this._letterbox.getOutboxTime(this.currentUserId),t=this._letterbox.getInboxTime(this.currentUserId),n=this._letterbox.getBroadcastSyncTime(this.currentUserId),dt.info("pullMsg -> sendboxTime: ".concat(e,", inboxTime: ").concat(t,", broadcastSyncTime: ").concat(n)),r=this._channel.codec.encodeSyncMsg({sendboxTime:e,inboxTime:t,broadcastSyncTime:n}),i=new uo(vo[vo.pullMsg],r,this.currentUserId),o=Qe(),Ze(he.L_PULL_MSG_T,{outboxTime:e,inboxTime:t,broadcastSyncTime:n},{traceId:o}),[4,this._channel.send(i,en,{connectedTime:this._channel.connectedTime,currentUserId:this.currentUserId})]):(this._pullingMsg=!1,[2]);case 1:return s=_.sent(),a=s.code,c=s.data,this._latestSyncTimestamp=Date.now(),a!==q.SUCCESS||!c||z(c.finished)||z(c.list)||z(c.syncTime)?(dt.warn("pullMsg failed -> code:",a,", data: ",c),Je(he.L_PULL_MSG_R,{code:a,timestamp:this._latestSyncTimestamp},{traceId:o}),this._pullingMsg=!1,[2]):(u=c.list,l=c.finished,f=c.syncTime,h=c.broadcastSyncTime,d=void 0===h?1:h,dt.info("pullMsg success -> syncTime: ".concat(f,", finished: ").concat(l)),p=0,g=[],v=[],u.forEach((function(e){if(g.push(e.messageUId),e.messageDirection===K.SEND&&(p=Math.max(e.sentTime,p),I._sendMessageStore.getSendMessageMap()[e.messageUId]))I._sendMessageStore.removeByUID(e.messageUId);else if(e.messageType!==te.EXPANSION_NOTIFY){if(e.messageType===te.SYNC_READ_STATUS){if(e.senderUserId!==I.currentUserId)return;I._conversationManager.clearUnreadCount(e.conversationType,e.targetId,e.channelId)}var t=I._handleMsgProperties(e);I._conversationManager.setConversationCacheByMessage(t,!0),v.push(t)}else I._receiveMessageExpansion(e)})),this._watcher.batchMessage(v),this._letterbox.setInboxTime(f,this.currentUserId),this._letterbox.setOutboxTime(p,this.currentUserId),this._letterbox.setBroadcastSyncTime(d,this.currentUserId),this._sendMessageStore.removeByTimestamp(p),this._pullingMsg=!1,y=this._pullQueue.filter((function(e){return e>f})),this._pullQueue.length=0,(m=this._pullQueue).push.apply(m,y),l&&!this._pullOfflineFinished&&(this._pullOfflineFinished=!0,this._watcher.pullFinished()),Ze(he.L_PULL_MSG_R,{code:a,messageUIds:g.join(","),timestamp:this._latestSyncTimestamp,hasmore:!l},{traceId:o}),(!l||y.length>0)&&this._syncMsg(),[2])}}))}))},t.prototype._receiveMsg=function(e){if(this._channel){var t=this._channel.codec.decodeByPBName(e.data,Xt,{currentUserId:this.currentUserId,connectedTime:this._channel.connectedTime});if((t=this._handleMsgProperties(t)).conversationType!==b.RTC_ROOM){if(this._pullingMsg)return;if(this._pullQueue.length>0)return void this._syncMsg()}t.senderUserId===this.currentUserId&&this._sendMessageStore.setMessage(t.messageUId,t.sentTime),t.isStatusMessage||t.senderUserId===this.currentUserId||this._letterbox.setInboxTime(t.sentTime,this.currentUserId),t.messageType!==te.EXPANSION_NOTIFY?t.messageType===te.SYNC_READ_STATUS&&t.senderUserId!==this.currentUserId||(this._conversationManager.setConversationCacheByMessage(t,!0),this._watcher.batchMessage([t])):this._receiveMessageExpansion(t)}},t.prototype._handleMsgProperties=function(e,t){void 0===t&&(t=!1);var n,r=e.messageType,i=e.isCounted,o=e.isPersited,s=e.isStatusMessage,a=r in u,c=r in this._customMessageType;if(n=a?m(m({},u[r]),{isStatusMessage:l.includes(r)}):c?this._customMessageType[r]:{isCounted:!G(i)&&i,isPersited:!G(o)&&o,isStatusMessage:!1},Object.assign(e,n),t&&!z(s)&&(e.isStatusMessage=s),!t){var f=e.content.user;if(f){var h=f.portrait,d=f.portraitUri,p=h||d;p&&(f.portrait=f.portraitUri=p)}}return e},t.prototype.getHistoryMessage=function(e,t,n,r,i,o,s,a){return void 0===o&&(o=""),I(this,void 0,void 0,(function(){var s,c,u,l,f,h,d,p,g,v;return _(this,(function(y){switch(y.label){case 0:return c=(s=this).currentUserId,u=s._channel,l=Ri[e]||Ai,f=1===r&&0===n,u?(h=u.codec.encodeGetHistoryMsg(t,{timestamp:n,count:f?2:r,order:i,channelId:o}),Ze(he.L_GET_HISTORY_MSG_T,{targetId:t,conversationType:e,channelId:o,timestamp:n,count:r,order:i},{traceId:a}),[4,u.send(new uo(l,h,c),cn,{currentUserId:c,connectedTime:u.connectedTime,conversation:{targetId:t}})]):[3,2];case 1:return d=y.sent(),(p=d.code)===q.SUCCESS&&h?(g=d.data,f&&2===g.list.length&&(g.hasMore=!0,0===i?g.list.shift():g.list.pop()),v=[],g.list&&g.list.forEach((function(e){e&&v.push(e.messageUId)})),Ze(he.L_GET_HISTORY_MSG_R,{code:p,messageUIds:v.join(",")},{traceId:a}),[2,{code:p,data:{list:g.list,hasMore:g.hasMore}}]):(Je(he.L_GET_HISTORY_MSG_R,{code:p,messageUIds:""},{traceId:a}),[2,{code:p}]);case 2:return[2,{code:q.RC_NET_CHANNEL_INVALID}]}}))}))},t.prototype.reportSDKInfo=function(e){var t=this.currentUserId,n=this._channel;if(n){dt.info("reportSDKInfo ->",e);var r=n.codec.encodeReportSDKInfo(JSON.stringify(e)),i=new uo(vo[vo.reportsdk],r,t);n.send(i).then((function(e){var t=e.code;t!==q.SUCCESS&&dt.warn("reportSDKInfo failed -> code: ".concat(t))}))}},t.prototype.deleteRemoteMessage=function(e,t,n,r){return I(this,void 0,void 0,(function(){var i,o,s,a,c,u,l;return _(this,(function(f){switch(f.label){case 0:return o=(i=this).currentUserId,(s=i._channel)?(a=s.codec.encodeDeleteMessages(e,t,n,r),c=new uo(di,a,o),[4,s.send(c)]):[3,2];case 1:return u=f.sent(),l=u.code,q.SUCCESS,[2,l];case 2:return[2,q.RC_NET_CHANNEL_INVALID]}}))}))},t.prototype.deleteRemoteMessageByTimestamp=function(e,t,n,r){return I(this,void 0,void 0,(function(){var i,o,s,a,c,u,l,f;return _(this,(function(h){switch(h.label){case 0:return o=(i=this).currentUserId,(s=i._channel)?(a=s.codec.encodeClearMessages(t,n,r,e),c=Di[e],u=new uo(c,a,o),[4,s.send(u)]):[3,2];case 1:return l=h.sent(),f=l.code,q.SUCCESS,[2,f];case 2:return[2,q.RC_NET_CHANNEL_INVALID]}}))}))},t.prototype.getConversationList=function(e,t,n,r,i){return void 0===e&&(e=300),I(this,void 0,void 0,(function(){var i,o,s,a,c,u,l,f,h=this;return _(this,(function(d){switch(d.label){case 0:return o=(i=this).currentUserId,s=i._channel,t=t||b.PRIVATE,s?(a=s.codec.encodeOldConversationList({count:e,type:t,startTime:n,order:r}),c=new uo(Ti,a,o),[4,s.send(c,ln,{currentUserId:o,connectedTime:s.connectedTime,afterDecode:function(e){var t=e.conversationType,n=e.targetId,r=e.channelId,i=h._conversationManager.get(t,n,r);return Object.assign(e,i),e}})]):[3,2];case 1:return u=d.sent(),l=u.code,f=u.data,l!==q.SUCCESS?[2,{code:l}]:[2,{code:l,data:null==f?void 0:f.list}];case 2:return[2,{code:q.RC_NET_CHANNEL_INVALID}]}}))}))},t.prototype.removeConversation=function(e,t,n){return I(this,void 0,void 0,(function(){var r,i,o,s,a;return _(this,(function(c){switch(c.label){case 0:return(r=this._channel)?(i=r.codec.encodeRemoveOldConversationList({conversationType:e,channelId:n,targetId:t}),o=new uo(Ci,i,t),[4,r.send(o)]):[3,2];case 1:return s=c.sent(),dt.info("RemoveConversation =>",s),a=s.code,q.SUCCESS,[2,a];case 2:return[2,q.RC_NET_CHANNEL_INVALID]}}))}))},t.prototype.getConversation=function(e,t,n){return I(this,void 0,void 0,(function(){var r,i,o,s,a,c;return _(this,(function(u){switch(u.label){case 0:return e!==b.ULTRA_GROUP?[3,1]:(r=this._ultraGroupMap[n+"_"+t])?[3,3]:[2,{code:q.CONVER_GET_ERROR}];case 1:return(i=this._conversationManager.get(e,t,n))?[4,this.getHistoryMessage(e,t,0,1,0)]:[2,{code:q.CONVER_GET_ERROR}];case 2:if(o=u.sent(),s=o.code,a=o.data,s!==q.SUCCESS)return[2,{code:q.CONVER_GET_ERROR}];c=(null==a?void 0:a.list[0])||null,r={conversationType:e,targetId:t,channelId:n,unreadMessageCount:i.unreadMessageCount||0,latestMessage:c,notificationStatus:i.notificationStatus||re.CLOSE,notificationLevel:i.notificationLevel||oe.NOT_SET,isTop:i.isTop||!1,lastUnreadTime:i.lastUnreadTime||0,unreadMentionedCount:i.unreadMentionedCount||0},u.label=3;case 3:return[2,{code:q.SUCCESS,data:r}]}}))}))},t.prototype.getAllConversationUnreadCount=function(e,t,n){var r=this._conversationManager.getAllUnreadCount(e,t,n);return Promise.resolve({code:q.SUCCESS,data:r})},t.prototype.getConversationUnreadCount=function(e,t,n){var r,i;return i=e===b.ULTRA_GROUP?(null===(r=this._ultraGroupMap[n+"_"+t])||void 0===r?void 0:r.unreadMessageCount)||0:this._conversationManager.getUnreadCount(e,t,n),Promise.resolve({code:q.SUCCESS,data:i})},t.prototype.clearConversationUnreadCount=function(e,t,n){return this._conversationManager.clearUnreadCount(e,t,n,!1),Promise.resolve(q.SUCCESS)},t.prototype.clearAllUnreadCount=function(){return this._conversationManager.clearAllUnreadCount(),Promise.resolve(q.SUCCESS)},t.prototype.getFirstUnreadMessage=function(e,t){throw new Error("Method not implemented.")},t.prototype.saveConversationMessageDraft=function(e,t,n,r){return this._conversationManager.setDraft(e,t,n,r),Promise.resolve(q.SUCCESS)},t.prototype.getConversationMessageDraft=function(e,t,n){var r=this._conversationManager.getDraft(e,t,n);return Promise.resolve({code:q.SUCCESS,data:r})},t.prototype.clearConversationMessageDraft=function(e,t,n){return this._conversationManager.clearDraft(e,t,n),Promise.resolve(q.SUCCESS)},t.prototype.pullConversationStatus=function(e){return I(this,void 0,void 0,(function(){var t,n,r,i,o,s,a,c,u,l=this;return _(this,(function(f){switch(f.label){case 0:return n=(t=this)._channel,r=t.currentUserId,n?(i=n.codec.encodeGetConversationStatus(e),o=new uo(vo[vo.pullSeAtts],i,r),[4,n.send(o,or)]):[3,2];case 1:return s=f.sent(),a=s.code,c=s.data,Ze(he.L_PULL_CONVERSATION_S,{timestamp:e,userId:r}),a!==q.SUCCESS?[2,{code:a}]:(u=[],Array.isArray(c)&&c.forEach((function(e){var t=e.conversationType,n=e.targetId,r=e.notificationStatus,i=e.channelId,o=e.isTop,s=e.notificationLevel,a=l._ultraGroupMap[i+"_"+n];t===b.ULTRA_GROUP?a&&(void 0!==r&&(a.notificationStatus=r),void 0!==s&&(a.notificationLevel=s),void 0===s&&void 0===r||l._ultraGroupManager.addUltraGroupStatus(e),"boolean"==typeof o&&(a.isTop=o)):u.push(e)})),[2,{code:a,data:u}]);case 2:return[2,{code:q.RC_NET_CHANNEL_INVALID}]}}))}))},t.prototype.batchSetConversationStatus=function(e){return I(this,void 0,void 0,(function(){var t,n,r,i,o,s,a,c,u,l,f,h=this;return _(this,(function(d){switch(d.label){case 0:return n=(t=this).currentUserId,(r=t._channel)?(i=r.codec.encodeSetConversationStatus(e,this._conversationUpdatedTime),o=new uo(Mi,i,n),[4,r.send(o,ur)]):[3,2];case 1:return s=d.sent(),a=s.code,c=s.data,a===q.SUCCESS?(u=c,this._conversationUpdatedTime=u.version,l=[],e.forEach((function(e){var t=e.conversationType,n=e.targetId,r=e.notificationStatus,i=e.notificationLevel,o=e.channelId,s=e.isTop;if(t===b.ULTRA_GROUP){var a=h._ultraGroupMap[o+"_"+n];a&&(void 0!==r&&(a.notificationStatus=r),void 0!==i&&(a.notificationLevel=i),void 0===i&&void 0===r||h._ultraGroupManager.addUltraGroupStatus(a),void 0!==s&&(a.isTop=s),l.push(a))}else h._conversationManager.addStatus(m(m({},e),{updatedTime:u.version}),!0)})),l.length>0&&(f=Vt(l),f=ns(f),this._watcher.conversation(f)),[2,a]):[2,a];case 2:return[2,q.RC_NET_CHANNEL_INVALID]}}))}))},t.prototype._joinChrm=function(e,t,n,r){return I(this,void 0,void 0,(function(){var i,o,s,a,c,u,l,f;return _(this,(function(h){switch(h.label){case 0:return(i=this._channel)?(o=i.codec.encodeJoinOrQuitChatRoom(),a=new uo(s=n?gi:pi,o,e),Ze(he.L_JOIN_CHATROOM_T,{chatroomId:e,count:t,topic:s},{traceId:r}),[4,i.send(a,In)]):[2,q.RC_NET_CHANNEL_INVALID];case 1:return c=h.sent(),u=c.code,l=c.data,(u===q.SUCCESS?Ze:Je)(he.L_JOIN_CHATROOM_R,{code:u,timestamp:(new Date).getTime()},{traceId:r}),u===q.SUCCESS&&(f=l.joinTime,this._chrmsQueue[e]||(this._chrmsQueue[e]={pulling:!1,queue:[],timestamp:0}),this._pullChrmMsg(e,t,f),this.naviInfo.kvStorage&&this._chrmEntryHandler.pullEntry(e,0),this._joinedChrmManager.set(e,t),this._startSyncIntervalForChrmPull()),[2,u]}}))}))},t.prototype._rejoinChrm=function(){return I(this,void 0,void 0,(function(){var e,t,n,r,i,o,s;return _(this,(function(a){switch(a.label){case 0:for(n in e=this._joinedChrmManager.get(),t=[],e)t.push(n);r=0,a.label=1;case 1:return r<t.length?(i=t[r],Ze(he.L_REJOIN_CHATROOM_T,{chatroomId:i,count:e[i]||10,topic:gi}),o=Qe(),[4,this._joinChrm(i,e[i]||10,!0,o)]):[3,4];case 2:s=a.sent(),(s===q.SUCCESS?Ze:Je)(he.L_REJOIN_CHATROOM_R,{code:s,timestamp:(new Date).getTime()},{traceId:o}),s===q.SUCCESS?this._watcher.chatroom({rejoinedRoom:{chatroomId:i,count:e[i]}}):this._watcher.chatroom({rejoinedRoom:{chatroomId:i,errorCode:s}}),a.label=3;case 3:return r++,[3,1];case 4:return[2]}}))}))},t.prototype._pullChrmMsg=function(e,t,n){return void 0===t&&(t=10),void 0===n&&(n=0),I(this,void 0,void 0,(function(){var r,i,o,s,a,c,u,l,f,h,d,p,g;return _(this,(function(v){switch(v.label){case 0:return this._channel?(r=this._chrmsQueue[e],i=r.pulling,o=r.timestamp,i?[2]:(r.pulling=!0,s=this._channel.codec.encodeChrmSyncMsg(o,t),a=new uo(vo[vo.chrmPull],s,e),Ze(he.L_PULL_CHATROOM_MSG_T,{chatroomId:e,timestamp:o}),[4,this._channel.send(a,en,{connectedTime:this._channel.connectedTime,currentUserId:this.currentUserId})])):[2];case 1:return c=v.sent(),u=c.code,l=c.data,r.pulling=!1,u===q.SUCCESS&&l?(f=l.list,h=l.syncTime,d=l.finished,r.timestamp=n?Math.max(h,n):h,r.queue=r.queue.filter((function(e){return e>h})),p=[],g=[],f.forEach((function(e){e.sentTime<o||(p.push(e.messageUId),g.push(e))})),this._watcher.batchMessage(g),Ze(he.L_PULL_CHATROOM_MSG_R,{code:u,timestamp:o,messageUIds:p.join(",")}),(!d||r.queue.length>0)&&this._pullChrmMsg(e),[2]):(Je(he.L_PULL_CHATROOM_MSG_R,{code:u,timestamp:o,messageUIds:""}),dt.warn("pull chatroom msg failed, code:",u,", data:",l),[2])}}))}))},t.prototype.joinChatroom=function(e,t,n){return I(this,void 0,void 0,(function(){return _(this,(function(r){return[2,this._joinChrm(e,t,!1,n)]}))}))},t.prototype.joinExistChatroom=function(e,t,n){return I(this,void 0,void 0,(function(){return _(this,(function(r){return[2,this._joinChrm(e,t,!0,n)]}))}))},t.prototype.quitChatroom=function(e){return I(this,void 0,void 0,(function(){var t,n,r,i,o;return _(this,(function(s){switch(s.label){case 0:return(t=this._channel)?(n=t.codec.encodeJoinOrQuitChatRoom(),r=new uo(vi,n,e),[4,t.send(r)]):[2,q.RC_NET_CHANNEL_INVALID];case 1:return i=s.sent(),(o=i.code)===q.SUCCESS&&(delete this._chrmsQueue[e],this._chrmEntryHandler.reset(e),this._joinedChrmManager.remove(e)),[2,o]}}))}))},t.prototype.getChatroomInfo=function(e,t,n){return I(this,void 0,void 0,(function(){var r,i,o,s,a,c;return _(this,(function(u){switch(u.label){case 0:return(r=this._channel)?(i=r.codec.encodeGetChatRoomInfo(t,n),o=new uo(vo[vo.queryChrmI],i,e),[4,r.send(o,Tn)]):[2,{code:q.RC_NET_CHANNEL_INVALID}];case 1:return s=u.sent(),a=s.code,c=s.data,a!==q.SUCCESS?[2,{code:a}]:[2,{code:a,data:c}]}}))}))},t.prototype.getChatroomHistoryMessages=function(e,t,n,r){return I(this,void 0,void 0,(function(){var i,o,s,a,c,u;return _(this,(function(l){switch(l.label){case 0:return(i=this._channel)?(o=i.codec.encodeGetHistoryMsg(e,{timestamp:t,count:n,order:r}),s=new uo(Ni,o,e),[4,i.send(s,cn,{conversation:{targetId:e}})]):[2,{code:q.RC_NET_CHANNEL_INVALID}];case 1:return a=l.sent(),c=a.code,u=a.data,c!==q.SUCCESS?[2,{code:c}]:[2,{code:c,data:{list:u.list,hasMore:u.hasMore}}]}}))}))},t.prototype._modifyChatroomKV=function(e,t){return I(this,void 0,void 0,(function(){var n,r,i,o,s,a,c,u,l;return _(this,(function(f){switch(f.label){case 0:return r=(n=this)._channel,i=n.currentUserId,r?(o=this._chrmEntryHandler.getVersion(e,t.key),t.version=null==o?this.getServerTime():o,s=r.codec.encodeModifyChatRoomKV(e,t,i),a=t.type===pe.UPDATE?yi:mi,c=new uo(a,s,e),[4,r.send(c,In)]):[2,q.RC_NET_CHANNEL_INVALID];case 1:return u=f.sent(),(l=u.code)===q.SUCCESS?(this._chrmEntryHandler.setLocal(e,{kvEntries:[t],syncTime:(new Date).getTime()},i),[2,l]):[2,l]}}))}))},t.prototype._modifyChatroomKVS=function(e,t){return I(this,void 0,void 0,(function(){var n,r,i,o,s,a,c,u,l,f,h,d,p=this;return _(this,(function(g){switch(g.label){case 0:return r=(n=this)._channel,i=n.currentUserId,r?(t.entries.forEach((function(t){var n=p._chrmEntryHandler.getVersion(e,t.key);t.version=null==n?p.getServerTime():n})),o=r.codec.encodeModifyChatRoomKVS(e,t,i),s=t.type===pe.UPDATE?Ii:_i,a=new uo(s,o,e),[4,r.send(a,Wn)]):[2,{code:q.RC_NET_CHANNEL_INVALID}];case 1:return c=g.sent(),u=c.code,-1!==[q.SUCCESS,q.CHATROOM_KV_STORE_NOT_ALL_SUCCESS].indexOf(u)&&(f=[],delete(h=Object.assign({},t)).entries,t.entries.forEach((function(e){f.push(Object.assign({},e,h))})),u===q.CHATROOM_KV_STORE_NOT_ALL_SUCCESS&&(d=c.data,dt.warn("设置失败的属性:",d.errorKeys),l=d.errorKeys,d&&Array.isArray(d.errorKeys)&&d.errorKeys.forEach((function(e){var t=f.findIndex((function(t){return e.key===t.key}));-1!==t&&f.splice(t,1)}))),dt.warn("设置成功的属性:",f),this._chrmEntryHandler.setLocal(e,{kvEntries:f,syncTime:(new Date).getTime()},i)),[2,{code:u,data:l}]}}))}))},t.prototype.setChatroomEntry=function(e,t){return I(this,void 0,void 0,(function(){return _(this,(function(n){return t.type=pe.UPDATE,t.userId=t.userId||this.currentUserId,[2,this._modifyChatroomKV(e,t)]}))}))},t.prototype.setChatroomEntries=function(e,t){return I(this,void 0,void 0,(function(){return _(this,(function(n){return t.type=pe.UPDATE,t.userId=t.userId||this.currentUserId,[2,this._modifyChatroomKVS(e,t)]}))}))},t.prototype.forceSetChatroomEntry=function(e,t){return I(this,void 0,void 0,(function(){return _(this,(function(n){return t.type=pe.UPDATE,t.isOverwrite=!0,t.userId=t.userId||this.currentUserId,[2,this._modifyChatroomKV(e,t)]}))}))},t.prototype.removeChatroomEntry=function(e,t){return I(this,void 0,void 0,(function(){return _(this,(function(n){return t.type=pe.DELETE,t.userId=t.userId||this.currentUserId,[2,this._modifyChatroomKV(e,t)]}))}))},t.prototype.removeChatroomEntries=function(e,t){return I(this,void 0,void 0,(function(){return _(this,(function(n){return t.type=pe.DELETE,t.userId=t.userId||this.currentUserId,[2,this._modifyChatroomKVS(e,t)]}))}))},t.prototype.forceRemoveChatroomEntry=function(e,t){return I(this,void 0,void 0,(function(){return _(this,(function(n){return t.type=pe.DELETE,t.isOverwrite=!0,t.userId=t.userId||this.currentUserId,[2,this._modifyChatroomKV(e,t)]}))}))},t.prototype.getChatroomEntry=function(e,t){return I(this,void 0,void 0,(function(){var n,r,i,o,s,a,c;return _(this,(function(u){switch(u.label){case 0:return(n=this._chrmEntryHandler.getValue(e,t))?[2,Promise.resolve({code:q.SUCCESS,data:n})]:[3,1];case 1:return(r=this._channel)?(i=r.codec.encodePullChatRoomKV(0),o=new uo(vo[vo.pullKV],i,e),[4,r.send(o,Kn)]):[2,Promise.reject({code:q.RC_NET_CHANNEL_INVALID})];case 2:return s=u.sent(),(a=s.data||{})&&a.kvEntries&&a.kvEntries.length&&(c=a.kvEntries.find((function(e){return e.key===t})),void 0!==c)?[2,Promise.resolve({code:q.SUCCESS,data:null==c?void 0:c.value})]:[2,Promise.resolve({code:q.CHATROOM_KEY_NOT_EXIST})]}}))}))},t.prototype.getAllChatroomEntry=function(e){return I(this,void 0,void 0,(function(){var t,n,r,i,o,s,a;return _(this,(function(c){switch(c.label){case 0:return(t=this._chrmEntryHandler.getAll(e))&&Object.keys(t).length?[2,Promise.resolve({code:q.SUCCESS,data:t})]:[3,1];case 1:return(n=this._channel)?(r={},i=n.codec.encodePullChatRoomKV(0),o=new uo(vo[vo.pullKV],i,e),[4,n.send(o,Kn)]):[2,Promise.reject({code:q.RC_NET_CHANNEL_INVALID})];case 2:return s=c.sent(),(a=s.data||{})&&a.kvEntries&&a.kvEntries.length&&a.kvEntries.forEach((function(e){e.key&&(r[e.key]=e.value||"")})),[2,Promise.resolve({code:q.SUCCESS,data:r})]}}))}))},t.prototype.pullChatroomEntry=function(e,t){return I(this,void 0,void 0,(function(){var n,r,i,o,s,a,c,u,l,f,h,d;return _(this,(function(p){switch(p.label){case 0:return r=(n=this)._channel,i=n.currentUserId,r?(t||(t=this._pullChatroomEntryTimestamp),o=r.codec.encodePullChatRoomKV(t),s=new uo(vo[vo.pullKV],o,e),Ze(he.L_PULL_CHATROOM_KV_T,{chatroomId:e,timestamp:t}),[4,r.send(s,Kn)]):[2,{code:q.RC_NET_CHANNEL_INVALID}];case 1:return a=p.sent(),c=a.code,u=a.data,(c===q.SUCCESS?Ze:Je)(he.L_PULL_CHATROOM_KV_R,{code:c,timestamp:t}),c===q.SUCCESS?(dt.info("Pull success ChrmKV, "+JSON.stringify(a)),this._chrmEntryHandler.setLocal(e,u,i),dt.info("Save into cache success!"),f=(l=u).kvEntries,h=l.syncTime,this._pullChatroomEntryTimestamp=h||0,d=[],f.length>0&&(f.forEach((function(t){var n=t.key,r=t.value,i=t.type,o=t.timestamp;d.push({key:n,value:r,type:i,timestamp:o,chatroomId:e})})),this._watcher.chatroom({updatedEntries:d})),[2,{code:c,data:u}]):[2,{code:c}]}}))}))},t.prototype._startSyncIntervalForChrmPull=function(){var e=this;this._stopSyncIntervalForChrmPull(),this._intervalTimerForChrmPull=setInterval((function(){var t=Object.keys(e._chrmsQueue);0!==t.length&&e._channel?t.forEach((function(t){e._pullChrmMsg(t),e.naviInfo.kvStorage&&e._chrmEntryHandler.pullEntry(t,0)})):e._stopSyncIntervalForChrmPull()}),18e4)},t.prototype._stopSyncIntervalForChrmPull=function(){"number"!=typeof this._intervalTimerForChrmPull&&(clearInterval(this._intervalTimerForChrmPull),this._intervalTimerForChrmPull=-1)},t.prototype.sendMessage=function(e,t,n,r,i){return I(this,void 0,void 0,(function(){var o,s,a,c,u,l,f,h,d,p,g;return _(this,(function(v){switch(v.label){case 0:return this._channel?(n=function(e,t){return"RC:SRSMsg"===e.messageType&&Object.assign(e,{directionalUserIdList:[t]}),e}(n,this.currentUserId),n=this._handleMsgProperties(n,!0),o=!![b.PRIVATE,b.GROUP].includes(e)&&n.isStatusMessage,s=o?function(e){var t;return(t={},t[b.PRIVATE]=vo.ppMsgS,t[b.GROUP]=vo.pgMsgS,t)[e]}(e):function(e){var t;return(t={},t[b.PRIVATE]=vo.ppMsgP,t[b.GROUP]=vo.pgMsgP,t[b.CHATROOM]=vo.chatMsg,t[b.CUSTOMER_SERVICE]=vo.pcMsgP,t[b.RTC_ROOM]=vo.prMsgS,t)[e]}(e)||vo.ppMsgP,o&&(n.isPersited=!1,n.isCounted=!1),a=this._channel.codec.encodeUpMsg({conversationType:e,targetId:t},n),(c=new so(vo[s],a,t)).setHeaderQos(It.AT_LEAST_ONCE),u=n.isPersited?is():0,o?(this._channel.sendOnly(c),[2,{code:q.SUCCESS,data:ts(e,t,m({},n),"",0,this.currentUserId,u)}]):(l=Date.now()-this._localConnectedTime+this._connectedTime,f=ts(e,t,m({},n),"",l,this.currentUserId,u),r&&r(u),Ze(he.L_SEND_MSG_T,{messageType:n.messageType,conversationType:e,targetId:t,channelId:n.channelId},{traceId:i}),[4,this._channel.send(c)])):[2,{code:q.RC_NET_CHANNEL_INVALID}];case 1:return h=v.sent(),d=h.code,p=h.data,d!==q.SUCCESS?(Je(he.L_SEND_MSG_R,{code:d,messageUId:f.messageUId,messageId:f.messageId},{traceId:i}),[2,{code:d,data:f}]):(Ze(he.L_SEND_MSG_R,{code:d,messageUId:null==p?void 0:p.messageUId,messageId:null==p?void 0:p.messageId},{traceId:i}),g=p,this._sendMessageStore.setMessage(g.messageUId,g.timestamp),f.sentTime=g.timestamp,f.messageUId=g.messageUId,this._conversationManager.setConversationCacheByMessage(f,!0),[2,{code:q.SUCCESS,data:f}])}}))}))},t.prototype.recallMsg=function(e,t,n,r,i){var o;return I(this,void 0,void 0,(function(){var s,a,c,u,l,f,h,d,p,g,v,y,I;return _(this,(function(_){switch(_.label){case 0:return this._channel?(s=i.user,a=i.extra,c=i.isDelete,u={conversationType:e,targetId:t,messageUId:n,sentTime:r,channelId:i.channelId||"",isDelete:c||!1},s&&(u.user=s),a&&(u.extra=a),l={content:u,messageType:"RC:RcCmd",disableNotification:null==i?void 0:i.disableNotification,pushConfig:null==i?void 0:i.pushConfig,pushContent:(null===(o=i.pushConfig)||void 0===o?void 0:o.pushContent)||i.pushContent||"",channelId:i.channelId},f=vo[vo.recallMsg],h=this._channel.codec.encodeUpMsg({conversationType:e,targetId:t},l),(d=new so(f,h,this.currentUserId)).setHeaderQos(It.AT_LEAST_ONCE),[4,this._channel.send(d)]):[2,{code:q.RC_NET_CHANNEL_INVALID}];case 1:return p=_.sent(),g=p.code,v=p.data,e===b.ULTRA_GROUP&&qe(he.L_RECALL_ULTRA_MSG_S,{code:g,conversationType:e,targetId:t,channelId:i.channelId}),g!==q.SUCCESS?[2,{code:g}]:(y=v,e===b.ULTRA_GROUP?(this._ultraMsgMap[y.messageUId]=y.timestamp,this._updateUltraGroupWhenRecallMsg(t,i.channelId||"",n),[2,{code:q.SUCCESS}]):(this._sendMessageStore.setMessage(y.messageUId,y.timestamp),I=ts(e,t,m(m({},l),{isPersited:!0}),y.messageUId,y.timestamp,this.currentUserId),this._conversationManager.setConversationCacheByMessage(I,!0),[2,{code:q.SUCCESS,data:I}]))}}))}))},t.prototype.sendReadReceiptMessage=function(e,t,n){return I(this,void 0,void 0,(function(){var r,i;return _(this,(function(o){switch(o.label){case 0:return this._channel?(r=this._channel.codec.encodeReadReceipt(t,n),i=new uo(vo[vo.rrMsg],r,e),[4,this._channel.send(i)]):[2,{code:q.RC_NET_CHANNEL_INVALID}];case 1:return[2,o.sent()]}}))}))},t.prototype.getMessageReader=function(e,t,n){return I(this,void 0,void 0,(function(){var r,i;return _(this,(function(o){switch(o.label){case 0:return this._channel?(r=this._channel.codec.encodeMessageReader(t,n),i=new uo(vo[vo.rrList],r,e),[4,this._channel.send(i,gr)]):[2,{code:q.RC_NET_CHANNEL_INVALID}];case 1:return[2,o.sent()]}}))}))},t.prototype.pullUserSettings=function(e){return I(this,void 0,void 0,(function(){var t,n;return _(this,(function(r){return this._channel?(t=this._channel.codec.encodePullUserSetting(e),n=new uo(vo[vo.pullUS],t,this.currentUserId),[2,this._channel.send(n,nr)]):[2,{code:q.RC_NET_CHANNEL_INVALID}]}))}))},t.prototype.getFileToken=function(e,t,n,r){return I(this,void 0,void 0,(function(){var i,o,s,a,c,u;return _(this,(function(l){switch(l.label){case 0:return this._channel?(i=r&&"uploads"!==r?t||"":wt(e,t),o=this._channel.codec.encodeGetFileToken(e,i,n||"",r||""),s=new uo(vo[vo.qnTkn],o,this.currentUserId),[4,this._channel.send(s,zn)]):[2,{code:q.RC_NET_CHANNEL_INVALID}];case 1:return a=l.sent(),c=a.code,u=a.data,u=Object.assign(u,{fileName:i}),c===q.SUCCESS?[2,{code:c,data:u}]:[2,{code:c}]}}))}))},t.prototype.getFileUrl=function(e,t,n,r){return I(this,void 0,void 0,(function(){var i,o,s,a,c,u,l,f,h;return _(this,(function(d){switch(d.label){case 0:return this._channel?(i="",o="",s="",t===ue.QINIU?(o=Gn,s=Vn):(o=Bn,s=Yn),i=t===ue.QINIU?vo[vo.qnUrl]:t===ue.AWS?vo[vo.s3Url]:t===ue.STC?vo[vo.stcUrl]:vo[vo.aliUrl],a=this._channel.codec.encodeGetFileUrl(o,e,n,r),c=new uo(i,a,this.currentUserId),[4,this._channel.send(c,s)]):[2,{code:q.RC_NET_CHANNEL_INVALID}];case 1:return u=d.sent(),l=u.code,f=u.data,h=f,l===q.SUCCESS?[2,{code:l,data:h}]:[2,{code:l}]}}))}))},t.prototype.disconnect=function(){-1!==this._reconnectTimer&&(clearTimeout(this._reconnectTimer),this._reconnectTimer=-1),this._channel&&(this._channel.close(),this._channel=void 0),this._pullQueue.length=0,this._stopSyncInterval(),this.resetUltraGroupData()},t.prototype.resetUltraGroupData=function(){this._stopUltraSyncInterval(),this._lastSyncUltraMsgTimeStamp=0,this._lastSyncUltraMsgLocalTimeStamp=0,this._isUltraPulling=!1,this._ultraGroupTimeQue=[],this._isUltraGroupListExist=!1,this._ultraGroupMap={}},t.prototype.destroy=function(){throw new Error("JSEngine's method not implemented.")},t.prototype.registerMessageType=function(e,t,n,r,i){this._customMessageType[e]={isPersited:t,isCounted:n,isStatusMessage:i}},t.prototype.getServerTime=function(){return Date.now()-this._localConnectedTime+this._connectedTime},t.prototype.getCurrentUserId=function(){return this.currentUserId},t.prototype.createTag=function(e){return I(this,void 0,void 0,(function(){var t,n,r,i,o,s,a;return _(this,(function(c){switch(c.label){case 0:return this._channel?(t=this._userSettingManager.getVersion(),n=this._channel.codec.encodeCreateTag([e],t),r=new uo(vo[vo.addSeTag],n,this.currentUserId),[4,this._channel.send(r,er)]):[2,{code:q.RC_NET_CHANNEL_INVALID}];case 1:return i=c.sent(),o=i.code,s=i.data,o!==q.SUCCESS?[2,{code:o}]:(a=s.version,this._userSettingManager.addTag([m(m({},e),{createdTime:a})],a),[2,{code:q.SUCCESS,data:s}])}}))}))},t.prototype.removeTag=function(e){return I(this,void 0,void 0,(function(){var t,n,r,i,o,s,a;return _(this,(function(c){switch(c.label){case 0:return this._channel?(t=this._userSettingManager.getVersion(),n=this._channel.codec.encodeRemoveTag([e],t),r=new uo(vo[vo.delSeTag],n,this.currentUserId),[4,this._channel.send(r,er)]):[2,{code:q.RC_NET_CHANNEL_INVALID}];case 1:return i=c.sent(),o=i.code,s=i.data,o!==q.SUCCESS?[2,{code:o}]:(a=s.version,this._userSettingManager.deleteTag([e],a),[2,{code:q.SUCCESS}])}}))}))},t.prototype.updateTag=function(e){return I(this,void 0,void 0,(function(){var t,n,r,i,o,s,a;return _(this,(function(c){switch(c.label){case 0:return this._channel?(t=this._userSettingManager.getVersion(),n=this._channel.codec.encodeCreateTag([e],t),r=new uo(vo[vo.addSeTag],n,this.currentUserId),[4,this._channel.send(r,er)]):[2,{code:q.RC_NET_CHANNEL_INVALID}];case 1:return i=c.sent(),o=i.code,s=i.data,o!==q.SUCCESS?[2,{code:o}]:(a=s.version,this._userSettingManager.addTag([e],a),[2,{code:q.SUCCESS,data:s}])}}))}))},t.prototype.getTagList=function(){return I(this,void 0,void 0,(function(){var e,t;return _(this,(function(n){return e=this._userSettingManager.getTags(),t=this._conversationManager.getConversationListForTag(),e.forEach((function(e){e.conversationCount=t[e.tagId]?t[e.tagId].length:0})),[2,{code:q.SUCCESS,data:e}]}))}))},t.prototype.addTagForConversations=function(e,t){return I(this,void 0,void 0,(function(){var n,r,i,o,s=this;return _(this,(function(a){switch(a.label){case 0:return this._channel?this._userSettingManager.getTagById(e)?(n=this._channel.codec.encodeUpdateConversationTag([{tagId:e}],t),r=new uo(vo[vo.addTag],n,this.currentUserId),[4,this._channel.send(r)]):[2,{code:q.TAG_NOT_EXIST}]:[2,{code:q.RC_NET_CHANNEL_INVALID}];case 1:return(i=a.sent().code)!==q.SUCCESS?[2,{code:i}]:((o={})[e]={},t.forEach((function(e){s._conversationManager.addTagStatus(e.conversationType,e.targetId,o,e.channelId)})),[2,{code:q.SUCCESS}])}}))}))},t.prototype.removeTagForConversations=function(e,t){return I(this,void 0,void 0,(function(){var n,r,i,o=this;return _(this,(function(s){switch(s.label){case 0:return this._channel?(n=this._channel.codec.encodeUpdateConversationTag([{tagId:e}],t),r=new uo(vo[vo.delTag],n,this.currentUserId),[4,this._channel.send(r)]):[2,{code:q.RC_NET_CHANNEL_INVALID}];case 1:return(i=s.sent().code)!==q.SUCCESS?[2,{code:i}]:(t.forEach((function(t){o._conversationManager.deleteTagStatus(t.conversationType,t.targetId,[e],t.channelId)})),[2,{code:q.SUCCESS}])}}))}))},t.prototype.removeTagsForConversation=function(e,t){return I(this,void 0,void 0,(function(){var n,r,i,o,s,a,c;return _(this,(function(u){switch(u.label){case 0:return this._channel?(n=e.conversationType,r=e.targetId,i=e.channelId,o=t.map((function(e){return{tagId:e}})),s=this._channel.codec.encodeUpdateConversationTag(o,[e]),a=new uo(vo[vo.delTag],s,this.currentUserId),[4,this._channel.send(a)]):[2,{code:q.RC_NET_CHANNEL_INVALID}];case 1:return(c=u.sent().code)!==q.SUCCESS?[2,{code:c}]:(this._conversationManager.deleteTagStatus(n,r,t,i),[2,{code:q.SUCCESS}])}}))}))},t.prototype.getConversationListByTag=function(e,t,n){return I(this,void 0,void 0,(function(){var r,i,o,s,a,c,u,l,f;return _(this,(function(h){switch(h.label){case 0:return i=(r=this).currentUserId,(o=r._channel)?(s=o.codec.encodeOldConversationList({count:n,type:b.PRIVATE,startTime:t}),a=new uo(Ti,s,i),[4,o.send(a,ln,{currentUserId:i,connectedTime:o.connectedTime})]):[2,{code:q.RC_NET_CHANNEL_INVALID}];case 1:return c=h.sent(),u=c.code,l=c.data,f=this._conversationHasTagFilter(e,null==l?void 0:l.list),dt.info("GetConversationListByTag",f),u!==q.SUCCESS?[2,{code:u}]:[2,{code:u,data:f}]}}))}))},t.prototype._conversationHasTagFilter=function(e,t){var n=this,r=[],i=[];function o(e,t){return e.latestMessage&&t.latestMessage?e.latestMessage.sentTime-t.latestMessage.sentTime:0}return t.forEach((function(t){var o=t.conversationType,s=t.targetId,a=t.channelId,c=n._conversationManager.get(o,s,a),u=c.hasMentioned,l=c.mentionedInfo,f=c.lastUnreadTime,h=c.notificationStatus,d=c.isTop,p=c.tags,g=c.unreadMessageCount,v=p&&p[e];if(v){var y=m(m({},t),{hasMentioned:u,mentionedInfo:l,lastUnreadTime:f,notificationStatus:h,isTop:d,unreadMessageCount:g});v.isTop?r.push(m(m({},y),{isTopInTag:!0})):i.push(m(m({},y),{isTopInTag:!1}))}})),T(T([],r.sort(o),!0),i.sort(o),!0)},t.prototype.getUnreadCountByTag=function(e,t){return I(this,void 0,void 0,(function(){var n;return _(this,(function(r){return this._channel?(n=this._conversationManager.getUnreadCountByTag(e,t),[2,{code:q.SUCCESS,data:n}]):[2,{code:q.RC_NET_CHANNEL_INVALID}]}))}))},t.prototype.setConversationStatusInTag=function(e,t,n){return I(this,void 0,void 0,(function(){var r,i,o,s,a,c,u,l,f,h;return _(this,(function(d){switch(d.label){case 0:return this._channel?(r=t.targetId,i=t.conversationType,o=t.channelId,s=n.isTop,a=[{tagId:e,isTop:s}],(c=this._conversationManager.get(i,r,o)).tags&&Object.hasOwnProperty.call(c.tags,e)?(u=this._channel.codec.encodeUpdateConversationTag(a,[t]),l=new uo(vo[vo.addTag],u,this.currentUserId),[4,this._channel.send(l)]):[2,{code:q.NO_TAG_IN_CONVER}]):[2,{code:q.RC_NET_CHANNEL_INVALID}];case 1:return(f=d.sent().code)!==q.SUCCESS?[2,{code:f}]:((h={})[e]={},s&&(h[e].isTop=!0),this._conversationManager.addTagStatus(i,r,h,o),[2,{code:q.SUCCESS}])}}))}))},t.prototype.getTagsForConversation=function(e){var t;return I(this,void 0,void 0,(function(){var n,r,i,o;return _(this,(function(s){if(!this._channel)return[2,{code:q.RC_NET_CHANNEL_INVALID}];if(n=this._conversationManager.get(e.conversationType,e.targetId,e.channelId),r=this._userSettingManager.getTagsInfo(),i=[],n.tags)for(o in n.tags)i.push({tagId:o,tagName:null===(t=r[o])||void 0===t?void 0:t.tagName});return[2,{code:q.SUCCESS,data:i}]}))}))},t.prototype.getBlockConversationList=function(){var e=this._conversationManager.getBlockConversationList();return Promise.resolve({code:q.SUCCESS,data:e})},t.prototype.getTopConversationList=function(){var e=this._conversationManager.getTopConversationList();return Promise.resolve({code:q.SUCCESS,data:e})},t.prototype.getUnreadMentionedCount=function(e){var t,n;return n=e.conversationType===b.ULTRA_GROUP?(null===(t=this._ultraGroupMap[e.channelId+"_"+e.targetId])||void 0===t?void 0:t.unreadMentionedCount)||0:this._conversationManager.getUnreadMentionedCount(e.channelId,e.conversationType,e.targetId),Promise.resolve({code:q.SUCCESS,data:n})},t.prototype.getAllUnreadMentionedCount=function(){var e=this._conversationManager.getAllUnreadMentionedCount();return Promise.resolve({code:q.SUCCESS,data:e})},t.prototype.getConversationNotificationLevel=function(e,t,n){if(!this._isUltraGroupListExist&&e===b.ULTRA_GROUP)return Promise.resolve({code:q.METHOD_NOT_AVAILABLE});var r;if(!(r=e===b.ULTRA_GROUP?this._ultraGroupManager.get(b.ULTRA_GROUP,t,n):this._conversationManager.get(e,t,n)))return Promise.resolve({code:q.SUCCESS,data:oe.NOT_SET});var i=r.notificationLevel;return z(r.notificationLevel)&&!z(r.notificationStatus)&&(i=re.OPEN===r.notificationStatus?1:0),Promise.resolve({code:q.SUCCESS,data:i})},t.prototype.getConversationNotificationStatus=function(e,t,n){var r;return(r=e===b.ULTRA_GROUP?this._ultraGroupManager.get(b.ULTRA_GROUP,t,n):this._conversationManager.get(e,t,n))?Promise.resolve({code:q.SUCCESS,data:r.notificationStatus}):Promise.resolve({code:q.SUCCESS,data:re.CLOSE})},t.prototype.getRemoteHistoryMessages=function(e,t,n,r,i,o){return this.getHistoryMessage(e,t,n,r,i,o)},t.prototype.getUltraGroupList=function(e){return I(this,void 0,void 0,(function(){var t,n,r,i;return _(this,(function(o){return t=e.targetId,n=e.channelType,this._isUltraGroupListExist?(r=(r=Object.values(this._ultraGroupMap)).filter((function(e){return!(e.targetId!==t&&t||e.channelType!==n&&L(n))})),r=ns(r),i=Vt(r),[2,{code:q.SUCCESS,data:i}]):[2,{code:q.METHOD_NOT_AVAILABLE}]}))}))},t.prototype.getBlockUltraGroupList=function(){if(!this._isUltraGroupListExist)return Promise.resolve({code:q.METHOD_NOT_AVAILABLE});var e=Object.values(this._ultraGroupMap),t=[];return e.forEach((function(e){e.notificationStatus===re.OPEN&&t.push({conversationType:b.ULTRA_GROUP,targetId:e.targetId,channelId:e.channelId})})),Promise.resolve({code:q.SUCCESS,data:t})},t.prototype.getTopUltraGroupList=function(){if(!this._isUltraGroupListExist)return Promise.resolve({code:q.METHOD_NOT_AVAILABLE});var e=Object.values(this._ultraGroupMap),t=[];return e.forEach((function(e){!0===e.isTop&&t.push({conversationType:b.ULTRA_GROUP,targetId:e.targetId,channelId:e.channelId})})),Promise.resolve({code:q.SUCCESS,data:t})},t.prototype.getUltraGroupUnreadMentionedCountByTargetId=function(e){if(!this._isUltraGroupListExist)return Promise.resolve({code:q.METHOD_NOT_AVAILABLE});var t=0;for(var n in this._ultraGroupMap)n.match(/_.*/g)[0].substring(1)===e&&(t+=this._ultraGroupMap[n].unreadMentionedCount);return Promise.resolve({code:q.SUCCESS,data:t})},t.prototype.getUltraGroupUnreadCountByTargetId=function(e){var t=0;for(var n in this._ultraGroupMap){var r=this._ultraGroupMap[n];r.targetId===e&&(t+=r.unreadMessageCount||0)}return Promise.resolve({code:q.SUCCESS,data:t})},t.prototype.getAllUltraGroupUnreadCount=function(e){if(void 0===e&&(e=!1),!this._isUltraGroupListExist)return Promise.resolve({code:q.METHOD_NOT_AVAILABLE});var t=0;for(var n in this._ultraGroupMap)t+=e?this._ultraGroupMap[n].unreadMentionedCount||0:this._ultraGroupMap[n].unreadMessageCount||0;return Promise.resolve({code:q.SUCCESS,data:t})},t.prototype.clearUltraUnreadcount=function(e,t){return void 0===t&&(t=""),I(this,void 0,void 0,(function(){var n,r,i,o,s;return _(this,(function(a){switch(a.label){case 0:return this._isUltraGroupListExist?this._channel?this._status!==J.CONNECTED?[2,q.RC_NET_UNAVAILABLE]:(n=Date.now(),r=this._channel.codec.encodeClearUnreadCount({conversationType:b.ULTRA_GROUP,targetId:e,channelId:t},{timestamp:n}),(i=new so(vo[vo.updUgRTime],r,this.currentUserId)).setHeaderQos(It.AT_LEAST_ONCE),[4,this._channel.send(i)]):[2,q.RC_NET_CHANNEL_INVALID]:[2,Promise.resolve(q.METHOD_NOT_AVAILABLE)];case 1:return(o=a.sent().code)===q.SUCCESS&&(s=this._ultraGroupMap[t+"_"+e])&&(s.unreadMessageCount=0,s.unreadMentionedCount=0,s.lastReadTime=n),[2,o]}}))}))},t.prototype._getUltraGroupList=function(e){return I(this,void 0,void 0,(function(){var t,n,r,i,o,s,a,c,u,l,f,h,d,p=this;return _(this,(function(g){switch(g.label){case 0:return this._channel&&this._status===J.CONNECTED?(t=this._channel.codec.encodeUltraGroup(e,!1),n=new uo(vo[vo.pullUgSes],t,this.currentUserId),[4,this._channel.send(n,ln,{currentUserId:this.currentUserId,conversationType:b.ULTRA_GROUP})]):[2];case 1:return r=g.sent(),i=r.code,o=r.data,i===q.SUCCESS&&o?(a=(null==o?void 0:o.list)||[],c=null==o?void 0:o.isFinished,a.forEach((function(e){e.notificationStatus=re.CLOSE,e.notificationLevel=oe.NOT_SET,e.isTop=!1,p._ultraGroupMap[e.channelId+"_"+e.targetId]=e,p._ultraGroupManager.addUltraGroupStatus(e)})),!1!==c?[3,2]:(u=a.length>0&&a[a.length-1].versionTime||0,this._getUltraGroupList(u),[3,4])):(dt.warn("pull super conversation failed, code:",i,", data:",o,"retrying..."),s=setTimeout((function(){p._firstPullUltraGroupTime=e,p._getUltraGroupList(e),clearTimeout(s)}),3e3),[2]);case 2:return[4,this.pullConversationStatus(this._firstPullUltraGroupTime)];case 3:l=g.sent(),f=l.code,h=l.data,f!==q.SUCCESS&&dt.warn("pullConversationStatus fail code: ".concat(f,", data: ").concat(h)),d=Object.values(this._ultraGroupMap),d=ns(d),this._isUltraGroupListExist=!0,this._watcher.ultraGroupEnable(Vt(d)),0===this._firstPullUltraGroupTime&&this._syncUltraMsg(this._lastSyncUltraMsgTimeStamp),g.label=4;case 4:return[2]}}))}))},t.prototype._startUltraSyncInterval=function(){var e=this,t=function(){e._ultraGroupTimer=setTimeout((function(){Date.now()-e._lastSyncUltraMsgLocalTimeStamp>=18e4&&e._syncUltraMsg(e._lastSyncUltraMsgTimeStamp),e._stopUltraSyncInterval(),t()}),3e4)};this._lastSyncUltraMsgLocalTimeStamp=Date.now(),this._syncUltraMsg(0),t()},t.prototype._stopUltraSyncInterval=function(){-1!==this._ultraGroupTimer&&(clearTimeout(this._ultraGroupTimer),this._ultraGroupTimer=-1)},t.prototype._syncUltraMsg=function(e){var t;return I(this,void 0,void 0,(function(){var n,r,i,o,s,a,c,u,l,f,h,d,p,g,v=this;return _(this,(function(y){switch(y.label){case 0:return this._channel&&this._status===J.CONNECTED?this._isUltraPulling?[2]:(dt.info("start pull ultra msg, time: ".concat(e)),this._isUltraPulling=!0,n=this._channel.codec.encodeSuperSyncMsg(e),r=new uo(vo[vo.pullUgMsg],n,this.currentUserId),i=Qe(),Ze(he.L_PULL_ULTRA_MSG_T,{timestamp:e},{traceId:i}),[4,this._channel.send(r,en,{currentUserId:this.currentUserId,conversation:{conversationType:b.ULTRA_GROUP}})]):[2];case 1:if(o=y.sent(),s=o.code,a=o.data,dt.info("end pull ultra msg, code: ".concat(s,", syncTime: ").concat(null==a?void 0:a.syncTime,", count: ").concat(null===(t=null==a?void 0:a.list)||void 0===t?void 0:t.length)),this._lastSyncUltraMsgLocalTimeStamp=Date.now(),s!==q.SUCCESS||!a)return Je(he.L_PULL_ULTRA_MSG_R,{code:s,messageUIds:"",timestamp:e},{traceId:i}),dt.warn("sync super message failed, code:",s,", data:",a),this._isUltraPulling=!1,[2];if(this._isUltraPulling=!1,c=a.list,u=a.syncTime,l=a.finished,!this._isUltraGroupListExist)return dt.info("init getUltraGroupList"),this._firstPullUltraGroupTime=0,this._getUltraGroupList(0),this._lastSyncUltraMsgTimeStamp=u,[2];for(g in f=[],h={},d=[],c.forEach((function(e){var t,n,r,i=e.targetId,o=e.content,s=e.messageType,a=e.messageUId,c=e.channelId,l=e.isCounted,p=e.channelType;if(f.push(a),v._ultraMsgMap[a])delete v._ultraMsgMap[a];else{var g=0;((null===(t=null==o?void 0:o.mentionedInfo)||void 0===t?void 0:t.type)===ae.ALL||(null===(r=null===(n=null==o?void 0:o.mentionedInfo)||void 0===n?void 0:n.userIdList)||void 0===r?void 0:r.includes(v.currentUserId)))&&(g=1);var y=v._ultraGroupMap[c+"_"+i];if(y)l&&(s===te.RECALL?y.unreadMessageCount>0&&(y.unreadMessageCount-=1):(y.unreadMessageCount+=1,y.unreadMentionedCount+=g)),y.versionTime=u,y.latestMessage=e,y.channelType=p,h[c+"_"+i]=y,v._ultraGroupManager.addUltraGroupStatus(y);else{var m={conversationType:b.ULTRA_GROUP,targetId:i,channelId:c,unreadMessageCount:l?1:0,unreadMentionedCount:l?g:0,versionTime:u,latestMessage:e,notificationStatus:re.CLOSE,notificationLevel:oe.NOT_SET,isTop:!1,channelType:p};v._ultraGroupMap[c+"_"+i]=m,h[c+"_"+i]=m,v._ultraGroupManager.addUltraGroupStatus(m)}d.push(e)}})),Object.keys(h).length>0&&(dt.info("notice ultragroups"),p=Object.values(h),p=ns(p),this._watcher.conversation(Vt(p))),Ze(he.L_PULL_ULTRA_MSG_R,{code:s,messageUIds:f.join(","),timestamp:u},{traceId:i}),dt.info("notice ultragroup message"),this._watcher.batchMessage(d),this._ultraGroupTimeQue=this._ultraGroupTimeQue.filter((function(e){return e>u})),this._ultraMsgMap)this._ultraMsgMap[g]<u&&delete this._ultraMsgMap[g];return!1===l?this._syncUltraMsg(u):c&&c.length>0&&(this._lastSyncUltraMsgTimeStamp=u),this._ultraGroupTimeQue.length>0&&this._syncUltraMsg(this._lastSyncUltraMsgTimeStamp),[2]}}))}))},t.prototype.sendUltraMessage=function(e,t,n,r){return I(this,void 0,void 0,(function(){var i,o,s,a,c,u,l,f,h,d,p;return _(this,(function(g){switch(g.label){case 0:return this._channel?this._status!==J.CONNECTED?[2,{code:q.RC_NET_UNAVAILABLE}]:("RC:SRSMsg"===t.messageType&&dt.warn("ultra group -> direction message convert to message"),t=this._handleMsgProperties(t,!0),i=this._channel.codec.encodeUpMsg({conversationType:b.ULTRA_GROUP,targetId:e},t),(o=new so(vo[vo.ugMsg],i,e)).setHeaderQos(It.AT_LEAST_ONCE),s=Date.now()-this._localConnectedTime+this._connectedTime,a=t.isPersited?is():0,c=ts(b.ULTRA_GROUP,e,m({},t),"",s,this.currentUserId,a),n&&n(a),Ze(he.L_SEND_MSG_T,{messageType:t.messageType,conversationType:b.ULTRA_GROUP,targetId:e,channelId:t.channelId},{traceId:r}),[4,this._channel.send(o)]):[2,{code:q.RC_NET_CHANNEL_INVALID}];case 1:return u=g.sent(),l=u.code,f=u.data,l!==q.SUCCESS?(Je(he.L_SEND_MSG_R,{code:l,messageUId:c.messageUId,messageId:c.messageId},{traceId:r}),[2,{code:l,data:c}]):(Ze(he.L_SEND_MSG_R,{code:l,messageUId:null==f?void 0:f.messageUId,messageId:null==f?void 0:f.messageId},{traceId:r}),h=f,c.sentTime=h.timestamp,c.messageUId=h.messageUId,this._ultraMsgMap[h.messageUId]=h.timestamp,d=t.channelId||"",(p=this._ultraGroupMap[d+"_"+e])?(p.latestMessage=c,L(p.channelType)&&(c.channelType=p.channelType)):(p={conversationType:b.ULTRA_GROUP,targetId:e,channelId:d,unreadMessageCount:0,unreadMentionedCount:0,versionTime:c.sentTime,latestMessage:c,notificationStatus:re.CLOSE,notificationLevel:oe.NOT_SET,isTop:!1},this._ultraGroupMap[d+"_"+e]=p,this._ultraGroupManager.addUltraGroupStatus(p)),this._watcher.conversation(Vt([p])),[2,{code:l,data:c}])}}))}))},t.prototype.sendUltraGroupTypingStatus=function(e,t){return I(this,void 0,void 0,(function(){var n,r,i,o,s,a;return _(this,(function(c){switch(c.label){case 0:return this._channel?this._status!==J.CONNECTED?[2,{code:q.RC_NET_UNAVAILABLE}]:(n=e.conversationType,r=e.channelId,i=e.targetId,o=this._channel.codec.encodeOperateStatus(i,n,r||"",t||0),(s=new so(vo[vo.operate],o,i)).setHeaderQos(It.AT_LEAST_ONCE),[4,this._channel.send(s)]):[2,{code:q.RC_NET_CHANNEL_INVALID}];case 1:return(a=c.sent().code)!==q.SUCCESS?[2,{code:a,msg:q[a]}]:[2,{code:a}]}}))}))},t.prototype.getUltraGroupMessageListByMessageUId=function(e){return I(this,void 0,void 0,(function(){var t,n,r,i,o,s,a;return _(this,(function(c){switch(c.label){case 0:return this._channel?this._status!==J.CONNECTED?[2,{code:q.RC_NET_UNAVAILABLE}]:e.messages&&e.messages.length<1||e.messages&&e.messages.length>20?[2,{code:q.MSG_LIMIT_ERROR}]:(t={},e.messages.forEach((function(e){t[e.messageUId]=void 0})),n=this._channel.codec.encodeMsgQuery(e),(r=new uo(vo[vo.qryMsg],n,this.currentUserId)).setHeaderQos(It.AT_LEAST_ONCE),[4,this._channel.send(r,Rr,{connectedTime:this._channel.connectedTime,currentUserId:this.currentUserId})]):[2,{code:q.RC_NET_CHANNEL_INVALID}];case 1:return i=c.sent(),o=i.code,s=i.data,o!==q.SUCCESS?[2,{code:o,msg:q[o]}]:(a=(s||{}).list,Array.isArray(a)&&a.forEach((function(e){var n=e.messageUId;t[n]=e})),[2,{code:0,data:t}])}}))}))},t.prototype._pullOperateStatusNotify=function(e){if(this._channel){var t=this._channel.codec.decodeByPBName(e.data,Lr),n=t.conversationType,r=t.info,i=t.summary;dt.info("s_opNtf -> type: ".concat(n,", info: ").concat(r,", summary: ").concat(i)),this._watcher.operateStatus(t)}},t.prototype.expandUltraMessage=function(e){return I(this,void 0,void 0,(function(){var t,n,r,i,o,s;return _(this,(function(a){switch(a.label){case 0:return this._channel?this._status!==J.CONNECTED?[2,{code:q.RC_NET_UNAVAILABLE}]:(t=this._channel.codec.encodeExpandUltraMessage(e,this.currentUserId),(n=new so(vo[vo.upMsgEx],t,e.targetId)).setHeaderQos(It.AT_LEAST_ONCE),[4,this._channel.send(n)]):[2,{code:q.RC_NET_CHANNEL_INVALID}];case 1:return r=a.sent(),i=r.code,o=r.data,i!==q.SUCCESS?[2,{code:i,msg:q[i]}]:(s=o,this._ultraMsgMap[s.messageUId]=s.timestamp,[2,{code:i}])}}))}))},t.prototype.modifyMessage=function(e){return I(this,void 0,void 0,(function(){var t,n,r,i,o,s;return _(this,(function(a){switch(a.label){case 0:return this._channel?this._status!==J.CONNECTED?[2,{code:q.RC_NET_UNAVAILABLE}]:(t=this._channel.codec.encodemodifyMessage(e,this.currentUserId),(n=new so(vo[vo.modifyMsg],t,e.targetId)).setHeaderQos(It.AT_LEAST_ONCE),[4,this._channel.send(n)]):[2,{code:q.RC_NET_CHANNEL_INVALID}];case 1:return r=a.sent(),i=r.code,o=r.data,i!==q.SUCCESS?[2,{code:i,msg:q[i]}]:(s=o,this._ultraMsgMap[s.messageUId]=s.timestamp,[2,{code:i}])}}))}))},t.prototype._pullUltraChangeMessageList=function(e){return I(this,void 0,void 0,(function(){var t,n,r,i,o,s,a,c,u,l,f;return _(this,(function(h){switch(h.label){case 0:return this._channel?this._status!==J.CONNECTED||this._isPullingUltraChangeMessage?[2]:(this._isPullingUltraChangeMessage=!0,t=this._channel.codec.encodeQueryMsgChange(e),(n=new uo(vo[vo.qryMsgChange],t,this.currentUserId)).setHeaderQos(It.AT_LEAST_ONCE),[4,this._channel.send(n,br)]):[2];case 1:if(r=h.sent(),i=r.code,o=r.data,this._isPullingUltraChangeMessage=!1,i!==q.SUCCESS||!o)return[2];for(l in s=o.hasNext,a=o.list,c=(null==o?void 0:o.syncTime)||0,this._ultraChannelTypeChangeNotice(a),this._ultraChannelUserKickedNotice(a),this._ultraChannelDeleteNotice(a),this._ultraRecalledNotice(a),this._ultraMsgUpdateNotice(_e.MSG_EXPANSION,a),this._ultraMsgUpdateNotice(_e.MSG_MODIFY,a),u=this._pullUltraChangeMessageQue.filter((function(e){return e>c})),this._pullUltraChangeMessageQue.length=0,(f=this._pullUltraChangeMessageQue).push.apply(f,u),this._ultraMsgMap)this._ultraMsgMap[l]<c&&delete this._ultraMsgMap[l];return s?this._pullUltraChangeMessageList(c):this._lastPullingUltraChangeMessageTime=c,[2]}}))}))},t.prototype._ultraChannelTypeChangeNotice=function(e){var t=this,n=[];e.forEach((function(e){var r=e.targetId,i=e.changeType,o=e.subChangeType,s=e.channelId,a=void 0===s?"":s;if(i===_e.CHANNEL_CHANGE&&t._ultraGroupMap["".concat(a,"_").concat(r)]){var c=Te.PUBLIC_TO_PRIVATE,u=Te.PRIVATE_TO_PUBLIC,l=Te.PUBLIC_TO_PRIVATE_USER_NOT_IN;o===u&&(t._ultraGroupMap["".concat(a,"_").concat(r)].channelType=me.PUBLIC),o===c&&(t._ultraGroupMap["".concat(a,"_").concat(r)].channelType=me.PRIVATE);var f=t._ultraGroupMap["".concat(a,"_").concat(r)].channelType,h=void 0===f?me.PUBLIC:f;[c,u,l].includes(o)&&n.push({targetId:r,channelId:a,changeType:o,channelType:h}),o===l&&delete t._ultraGroupMap["".concat(a,"_").concat(r)]}})),n.length>0&&this._watcher.ultraGroupChannelChangeType(n)},t.prototype._ultraChannelDeleteNotice=function(e){var t=this,n=[];Array.isArray(e)&&e.forEach((function(e){var r=e.targetId,i=e.sendTime,o=e.changeType,s=e.subChangeType,a=e.channelId,c=void 0===a?"":a;if(o===_e.CHANNEL_CHANGE&&t._ultraGroupMap["".concat(c,"_").concat(r)]){var u=t._ultraGroupMap["".concat(c,"_").concat(r)].channelType,l=void 0===u?me.PUBLIC:u;s===Te.CHANNEL_DELETE&&(n.push({targetId:r,channelId:c,channelType:l,deleteTime:i}),delete t._ultraGroupMap["".concat(c,"_").concat(r)])}})),n.length>0&&this._watcher.ultraGroupChannelDelete(n)},t.prototype._ultraChannelUserKickedNotice=function(e){var t=this,n=[];e.forEach((function(e){var r=e.targetId,i=e.changeType,o=e.operatorId,s=e.subChangeType,a=e.channelId,c=void 0===a?"":a;i===_e.CHANNEL_CHANGE&&t._ultraGroupMap["".concat(c,"_").concat(r)]&&(s===Te.CHANNEL_USER_KICKED&&n.push({targetId:r,channelId:c,userId:o,channelType:me.PRIVATE}),o===t.currentUserId&&s===Te.CHANNEL_USER_KICKED&&delete t._ultraGroupMap["".concat(c,"_").concat(r)])})),n.length>0&&this._watcher.ultraGroupChannelUserKicked(n)},t.prototype._ultraRecalledNotice=function(e){var t=this,n=[];e.forEach((function(e){var r=e.targetId,i=e.conversationType,o=e.sendTime,s=e.messageUId,a=e.changeType,c=e.operatorId,u=e.channelId,l=void 0===u?"":u;a===_e.MSG_RECALL&&(t._updateUltraGroupWhenRecallMsg(r,l,s),n.push({targetId:r,conversationType:i,sendTime:o,messageUId:s,senderUserId:c,channelId:l}))})),n.length>0&&this._watcher.ultraGroupMessageRecalled(n)},t.prototype._ultraMsgUpdateNotice=function(e,t){var n=this,r={};t.forEach((function(t){var i=t.targetId,o=t.conversationType,s=t.sendTime,a=t.messageUId,c=t.changeType,u=t.channelId,l=o+"_"+i,f=a+"_"+(void 0===u?"":u)+"_"+s,h=r[l];if(h)h.add(f);else{var d=new Set([f]);r[l]=d}c===e&&(n._ultraMsgChangeMap[a]=c)}));var i=function(e){var t=e.split("_"),n=t.shift(),i=t.join("_"),s=r[e],a=[];s.forEach((function(e){var t=e.split("_"),n=t[0],r=t[1],i=t[2];a.push({sendTime:Number(i),messageUId:n,channelId:r})}));var c={targetId:i,conversationType:Number(n),messages:a};o._pullUltraMessageList(c)},o=this;for(var s in r)i(s)},t.prototype._pullUltraMessageList=function(e){return I(this,void 0,void 0,(function(){var t,n,r,i,o,s,a,c,u=this;return _(this,(function(l){switch(l.label){case 0:return this._channel?this._status!==J.CONNECTED?[2,{code:q.RC_NET_UNAVAILABLE}]:(t=this._channel.codec.encodeMsgQuery(e),(n=new uo(vo[vo.qryMsg],t,this.currentUserId)).setHeaderQos(It.AT_LEAST_ONCE),[4,this._channel.send(n,Rr,{connectedTime:this._channel.connectedTime,currentUserId:this.currentUserId})]):[2,{code:q.RC_NET_CHANNEL_INVALID}];case 1:return r=l.sent(),i=r.code,o=r.data,i!==q.SUCCESS?[2,{code:i,msg:q[i]}]:(s=(o||{}).list,a=[],c=[],Array.isArray(s)&&s.forEach((function(e){var t=e.targetId,n=e.channelId,r=e.messageUId,i=u._ultraGroupMap[n+"_"+t];i&&i.latestMessage.messageUId===e.messageUId&&(i.latestMessage=e);var o=u._ultraMsgChangeMap[r+""];o===_e.MSG_EXPANSION?a.push(e):o===_e.MSG_MODIFY&&c.push(e)})),a.length>0&&this._watcher.ultraGroupMessageExpansionUpdated(a||[]),c.length>0&&this._watcher.ultraGroupMessageModified(c||[]),[2])}}))}))},t.prototype.getUltraHistoryMsg=function(e,t,n){return I(this,void 0,void 0,(function(){var r,i,o,s,a,c;return _(this,(function(u){switch(u.label){case 0:return this._channel?this._status!==J.CONNECTED?[2,{code:q.RC_NET_UNAVAILABLE}]:(r=this._channel.codec.encodeGetHistoryMsg(e,t),i=new uo(vo[vo.qryUgMsg],r,this.currentUserId),Ze(he.L_GET_HISTORY_MSG_T,{targetId:e,conversationType:b.ULTRA_GROUP,channelId:t.channelId,timestamp:null==t?void 0:t.timestamp,count:null==t?void 0:t.count},{traceId:n}),[4,this._channel.send(i,cn,{currentUserId:this.currentUserId,conversation:{conversationType:b.ULTRA_GROUP,targetId:e}})]):[2,{code:q.RC_NET_CHANNEL_INVALID}];case 1:return o=u.sent(),s=o.code,a=o.data,s===q.SUCCESS&&a?(c=[],a.list&&a.list.forEach((function(e){e&&c.push(e.messageUId)})),Ze(he.L_GET_HISTORY_MSG_R,{code:s,messageUIds:c.join(",")},{traceId:n}),[2,{code:s,data:a}]):(Je(he.L_GET_HISTORY_MSG_R,{code:s,messageUIds:""},{traceId:n}),dt.warn("get super history message failed, code:",s,", data:",a),[2,{code:s}])}}))}))},t.prototype.searchUltraGroupMessages=function(e){return I(this,void 0,void 0,(function(){return _(this,(function(e){return this._channel?this._status!==J.CONNECTED?[2,{code:q.RC_NET_UNAVAILABLE}]:[2,{code:q.SUCCESS}]:[2,{code:q.RC_NET_CHANNEL_INVALID}]}))}))},t.prototype.setUltraGroupDefaultNotificationLevel=function(e,t,n){return I(this,void 0,void 0,(function(){var r,i,o,s,a;return _(this,(function(c){switch(c.label){case 0:return this._isUltraGroupListExist?(r=this._channel)?(i=r.codec.encodeSetUltraGroupDefaultNotificationLevel(t,n),o=new uo(vo[vo.ugUnpushSet],i,e),[4,r.send(o)]):[3,2]:[2,Promise.resolve({code:q.METHOD_NOT_AVAILABLE})];case 1:return s=c.sent(),a=s.code,q.SUCCESS,[2,{code:a}];case 2:return[2,{code:q.RC_NET_CHANNEL_INVALID}]}}))}))},t.prototype.getUltraGroupDefaultNotificationLevel=function(e,t){return I(this,void 0,void 0,(function(){var n,r,i,o,s,a,c;return _(this,(function(u){switch(u.label){case 0:return this._isUltraGroupListExist?(n=this._channel)?(r=n.codec.encodeGetUltraGroupDefaultNotificationLevel(t),i=new uo(vo[vo.ugUnpushQuery],r,e),[4,n.send(i,hr)]):[3,2]:[2,Promise.resolve({code:q.METHOD_NOT_AVAILABLE})];case 1:return o=u.sent(),s=o.code,a=o.data,s===q.SUCCESS&&a?(c=a.unpushLevel,[2,{code:s,data:c}]):[2,{code:s}];case 2:return[2,{code:q.RC_NET_CHANNEL_INVALID}]}}))}))},t.prototype._updateUltraGroupWhenRecallMsg=function(e,t,n){var r="".concat(t,"_").concat(e);if(this._ultraGroupMap[r]){var i=this._ultraGroupMap[r],o=i.latestMessage;o&&o.messageUId===n&&(i.latestMessage=null)}},t.prototype.getAllConversationState=function(){return Promise.resolve({code:q.SUCCESS,data:this._conversationManager.getAllConversationState()})},t.prototype.joinRTCRoom=function(e,t,n,r,i,o){return I(this,void 0,void 0,(function(){var s,a;return _(this,(function(c){return this._channel?(s=this._channel.codec.encodeJoinRTCRoom(t,n,r,i,o),a=new uo(vo[vo.rtcRJoin_data],s,e),[2,this._channel.send(a,Mn)]):[2,{code:q.RC_NET_CHANNEL_INVALID}]}))}))},t.prototype.quitRTCRoom=function(e){return I(this,void 0,void 0,(function(){var t,n;return _(this,(function(r){switch(r.label){case 0:return this._channel?(t=this._channel.codec.encodeQuitRTCRoom(),n=new uo(vo[vo.rtcRExit],t,e),[4,this._channel.send(n)]):[2,q.RC_NET_CHANNEL_INVALID];case 1:return[2,r.sent().code]}}))}))},t.prototype.rtcPing=function(e,t,n){return I(this,void 0,void 0,(function(){var r,i;return _(this,(function(o){switch(o.label){case 0:return this._channel?(r=this._channel.codec.encodeJoinRTCRoom(t,n),i=new uo(vo[vo.rtcPing],r,e),[4,this._channel.send(i)]):[2,q.RC_NET_CHANNEL_INVALID];case 1:return[2,o.sent().code]}}))}))},t.prototype.getRTCRoomInfo=function(e){return I(this,void 0,void 0,(function(){var t,n;return _(this,(function(r){return this._channel?(t=this._channel.codec.encodeGetRTCRoomInfo(),n=new uo(vo[vo.rtcRInfo],t,e),[2,this._channel.send(n,xn)]):[2,{code:q.RC_NET_CHANNEL_INVALID}]}))}))},t.prototype.getRTCUserInfoList=function(e){return I(this,void 0,void 0,(function(){var t,n,r,i,o;return _(this,(function(s){switch(s.label){case 0:return this._channel?(t=this._channel.codec.encodeGetRTCRoomInfo(),n=new uo(vo[vo.rtcUData],t,e),[4,this._channel.send(n,Mn)]):[2,{code:q.RC_NET_CHANNEL_INVALID}];case 1:return r=s.sent(),i=r.code,o=r.data,[2,{code:i,data:o?{users:o.users}:o}]}}))}))},t.prototype.setRTCUserInfo=function(e,t,n){return I(this,void 0,void 0,(function(){var r,i;return _(this,(function(o){switch(o.label){case 0:return this._channel?(r=this._channel.codec.encodeSetRTCUserInfo(t,n),i=new uo(vo[vo.rtcUPut],r,e),[4,this._channel.send(i)]):[2,q.RC_NET_CHANNEL_INVALID];case 1:return[2,o.sent().code]}}))}))},t.prototype.removeRTCUserInfo=function(e,t){return I(this,void 0,void 0,(function(){var n,r;return _(this,(function(i){switch(i.label){case 0:return this._channel?(n=this._channel.codec.encodeRemoveRTCUserInfo(t),r=new so(vo[vo.rtcUDel],n,e),[4,this._channel.send(r)]):[2,q.RC_NET_CHANNEL_INVALID];case 1:return[2,i.sent().code]}}))}))},t.prototype.setRTCData=function(e,t,n,r,i,o){return I(this,void 0,void 0,(function(){var s,a;return _(this,(function(c){switch(c.label){case 0:return this._channel?(s=this._channel.codec.encodeSetRTCData(t,n,r,i,o),a=new so(vo[vo.rtcSetData],s,e),[4,this._channel.send(a)]):[2,q.RC_NET_CHANNEL_INVALID];case 1:return[2,c.sent().code]}}))}))},t.prototype.setRTCTotalRes=function(e,t,n,r,i){return I(this,void 0,void 0,(function(){var o,s;return _(this,(function(a){switch(a.label){case 0:return this._channel?(o=this._channel.codec.encodeUserSetRTCData(t,n,r,i),s=new uo(vo[vo.userSetData],o,e),[4,this._channel.send(s)]):[2,q.RC_NET_CHANNEL_INVALID];case 1:return[2,a.sent().code]}}))}))},t.prototype.setRTCCDNUris=function(e,t,n){return I(this,void 0,void 0,(function(){var r,i;return _(this,(function(o){switch(o.label){case 0:return this._channel?(r=this._channel.codec.encodeUserSetRTCCDNUris(t,n),i=new uo(vo[vo.userSetData],r,e),[4,this._channel.send(i)]):[2,q.RC_NET_CHANNEL_INVALID];case 1:return[2,o.sent().code]}}))}))},t.prototype.getRTCData=function(e,t,n,r){if(!this._channel)return Promise.resolve({code:q.RC_NET_CHANNEL_INVALID});var i=this._channel.codec.encodeGetRTCData(t,n,r),o=new uo(vo[vo.rtcQryData],i,e);return this._channel.send(o,Rn)},t.prototype.removeRTCData=function(e,t,n,r,i){return I(this,void 0,void 0,(function(){var o,s;return _(this,(function(a){switch(a.label){case 0:return this._channel?(o=this._channel.codec.encodeRemoveRTCData(t,n,r,i),s=new so(vo[vo.rtcDelData],o,e),[4,this._channel.send(s)]):[2,q.RC_NET_CHANNEL_INVALID];case 1:return[2,a.sent().code]}}))}))},t.prototype.setRTCOutData=function(e,t,n,r){throw new Error("JSEngine's method not implemented.")},t.prototype.getRTCOutData=function(e,t){throw new Error("JSEngine's method not implemented.")},t.prototype.getRTCToken=function(e,t,n){return I(this,void 0,void 0,(function(){var r,i;return _(this,(function(o){return this._channel?(r=this._channel.codec.encodeJoinRTCRoom(t,n),i=new uo(vo[vo.rtcToken],r,e),[2,this._channel.send(i,On)]):[2,{code:q.RC_NET_CHANNEL_INVALID}]}))}))},t.prototype.setRTCState=function(e,t){return I(this,void 0,void 0,(function(){var n,r;return _(this,(function(i){switch(i.label){case 0:return this._channel?(n=this._channel.codec.encodeSetRTCState(t),r=new uo(vo[vo.rtcUserState],n,e),[4,this._channel.send(r)]):[2,q.RC_NET_CHANNEL_INVALID];case 1:return[2,i.sent().code]}}))}))},t.prototype.getRTCUserInfo=function(e){return I(this,void 0,void 0,(function(){return _(this,(function(e){throw new Error("Method not implemented.")}))}))},t.prototype.getRTCUserList=function(e){if(!this._channel)return Promise.resolve({code:q.RC_NET_CHANNEL_INVALID});var t=this._channel.codec.encodeGetRTCRoomInfo(),n=new uo(vo[vo.rtcUList],t,e);return this._channel.send(n,Mn)},t.prototype.joinLivingRoomAsAudience=function(e,t,n){return void 0===t&&(t=Ce.LIVE),I(this,void 0,void 0,(function(){var r,i,o,s,a,c,u,l;return _(this,(function(f){switch(f.label){case 0:return this._channel?(r=this._channel.codec.encodeJoinRTCRoom(t,n),i=new uo(vo[vo.viewerJoinR],r,e),[4,this._channel.send(i,Br)]):[2,{code:q.RC_NET_CHANNEL_INVALID}];case 1:return o=f.sent(),s=o.code,a=o.data,s!==q.SUCCESS?[2,{code:s}]:(u=(c=a).rtcToken,l=c.entries,[2,{code:s,data:{token:u,kvEntries:l}}])}}))}))},t.prototype.quitLivingRoomAsAudience=function(e){return I(this,void 0,void 0,(function(){var t,n,r;return _(this,(function(i){switch(i.label){case 0:return this._channel?(t=this._channel.codec.encodeQuitRTCRoom(),n=new uo(vo[vo.viewerExitR],t,e),[4,this._channel.send(n)]):[2,q.RC_NET_CHANNEL_INVALID];case 1:return r=i.sent().code,this._rtcKVManager.reset(),[2,r]}}))}))},t.prototype.rtcIdentityChange=function(e,t,n){return I(this,void 0,void 0,(function(){var r,i,o,s,a;return _(this,(function(c){switch(c.label){case 0:return this._channel?(r=this._channel.codec.encodeIdentityChangeInfo(t,n),i=new uo(vo[vo.rtcIdentityChange],r,e),[4,this._channel.send(i,Mn)]):[2,{code:q.RC_NET_CHANNEL_INVALID}];case 1:return o=c.sent(),s=o.code,a=o.data,s!==q.SUCCESS?[2,{code:s}]:[2,{code:s,data:a}]}}))}))},t.prototype.pullRTCRoomEntry=function(e,t){return I(this,void 0,void 0,(function(){var t,n,r,i,o,s,a,c,u;return _(this,(function(l){switch(l.label){case 0:return n=(t=this)._channel,r=t.currentUserId,n?(dt.info("audience in room start pull KV"),i=n.codec.encodePullRTCRoomKV(e,0),o=new uo(vo[vo.rtcPullKv],i,r),[4,n.send(o,kr)]):[2,{code:q.RC_NET_CHANNEL_INVALID}];case 1:return s=l.sent(),a=s.code,c=s.data,dt.info("audience in room end pull KV, code: ".concat(a,", data: ").concat(JSON.stringify(c||{}))),a===q.SUCCESS?(u=c.kvEntries,this._watcher.onRTCDataChange(u,e),[2,{code:a,data:c}]):[2,{code:a}]}}))}))},t.prototype.getRTCJoinedUserInfo=function(e){return I(this,void 0,void 0,(function(){var t,n,r,i,o,s,a,c;return _(this,(function(u){switch(u.label){case 0:return n=(t=this)._channel,r=t.currentUserId,n?(i=n.codec.encodeQueryUserJoinedInfo(e),o=new uo(vo[vo.rtcQueryJoined],i,r),[4,n.send(o,Gr)]):[2,{code:q.RC_NET_CHANNEL_INVALID}];case 1:return s=u.sent(),a=s.code,c=s.data,a===q.SUCCESS?[2,{code:a,data:c}]:[2,{code:a}]}}))}))},t.prototype.getDeviceId=function(){return rt(this.runtime)},t.prototype.requestRoomPK=function(e){return I(this,void 0,void 0,(function(){var t,n,r;return _(this,(function(i){switch(i.label){case 0:return this._channel?(t=this._channel.codec.encodeRequestRoomPK(e),n=new uo(vo[vo.rtcInvite],t,e.roomId),[4,this._channel.send(n)]):[2,q.RC_NET_CHANNEL_INVALID];case 1:return r=i.sent().code,this._rtcKVManager.reset(),[2,r]}}))}))},t.prototype.cancelRoomPK=function(e){return I(this,void 0,void 0,(function(){var t,n,r;return _(this,(function(i){switch(i.label){case 0:return this._channel?(t=this._channel.codec.encodeCancelRoomPK(e),n=new uo(vo[vo.rtcCancelInvite],t,e.roomId),[4,this._channel.send(n)]):[2,q.RC_NET_CHANNEL_INVALID];case 1:return r=i.sent().code,this._rtcKVManager.reset(),[2,r]}}))}))},t.prototype.responseRoomPK=function(e){return I(this,void 0,void 0,(function(){var t,n,r;return _(this,(function(i){switch(i.label){case 0:return this._channel?(t=this._channel.codec.encodeResponseRoomPK(e),n=new uo(vo[vo.rtcInviteAnswer],t,e.roomId),[4,this._channel.send(n)]):[2,q.RC_NET_CHANNEL_INVALID];case 1:return r=i.sent().code,this._rtcKVManager.reset(),[2,r]}}))}))},t.prototype.endRoomPK=function(e){return I(this,void 0,void 0,(function(){var t,n,r;return _(this,(function(i){switch(i.label){case 0:return this._channel?(t=this._channel.codec.encodeEndRoomPK(e),n=new uo(vo[vo.rtcEndInvite],t,e.roomId),[4,this._channel.send(n)]):[2,q.RC_NET_CHANNEL_INVALID];case 1:return r=i.sent().code,this._rtcKVManager.reset(),[2,r]}}))}))},t.prototype.bindRTCRoomForChatroom=function(e){return I(this,void 0,void 0,(function(){var t,n,r,i;return _(this,(function(o){switch(o.label){case 0:return this._channel?(t=e.chatRoomId,n=this._channel.codec.encodebindRTCRoomForChatroom(e),r=new uo(vo[vo.setRtcRoomId],n,t),[4,this._channel.send(r)]):[2,q.RC_NET_CHANNEL_INVALID];case 1:return i=o.sent(),[2,i.code]}}))}))},t.prototype.callExtra=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return Promise.resolve({code:q.EXTRA_METHOD_UNDEFINED})},t.prototype.getConversationListWithAllChannel=function(){throw new Error("Method not implemented.")},t.prototype.getConversationListWithAllChannelByPage=function(e,t){throw new Error("Method not implemented.")},t.prototype.getConversationsByPage=function(e,t,n,r){throw new Error("Method not implemented.")},t.prototype.getHistoryMessagesByObjectNames=function(e,t,n,r,i,o,s){throw new Error("Method not implemented.")},t.prototype.clearConversations=function(){throw new Error("Method not implemented.")},t.prototype.setUserStatusListener=function(e,t){throw new Error("Method not implemented.")},t.prototype.setUserStatus=function(e){throw new Error("Method not implemented.")},t.prototype.subscribeUserStatus=function(e){throw new Error("Method not implemented.")},t.prototype.getUserStatus=function(e){throw new Error("Method not implemented.")},t.prototype.addToBlacklist=function(e){throw new Error("Method not implemented.")},t.prototype.removeFromBlacklist=function(e){throw new Error("Method not implemented.")},t.prototype.getBlacklist=function(){throw new Error("Method not implemented.")},t.prototype.getBlacklistStatus=function(e){throw new Error("Method not implemented.")},t.prototype.insertMessage=function(e,t,n){throw new Error("Method not implemented.")},t.prototype.deleteMessages=function(e){throw new Error("Method not implemented.")},t.prototype.deleteMessagesByTimestamp=function(e,t,n,r,i){throw new Error("Method not implemented.")},t.prototype.clearMessages=function(e,t,n){throw new Error("Method not implemented.")},t.prototype.getMessage=function(e){throw new Error("Method not implemented.")},t.prototype.setMessageContent=function(e,t,n){throw new Error("Method not implemented.")},t.prototype.setMessageSearchField=function(e,t,n){throw new Error("Method not implemented.")},t.prototype.searchConversationByContent=function(e,t,n,r){throw new Error("Method not implemented.")},t.prototype.searchConversationByContentWithAllChannel=function(e,t,n){throw new Error("Method not implemented.")},t.prototype.searchMessageByContent=function(e,t,n,r,i,o){throw new Error("Method not implemented.")},t.prototype.searchMessageByContentWithAllChannel=function(e,t,n,r,i){throw new Error("Method not implemented.")},t.prototype.searchMessageByContentInTimeRangeWithAllChannel=function(e,t,n,r,i,o,s){throw new Error("Method not implemented.")},t.prototype.getUnreadMentionedMessages=function(e,t){throw new Error("Method not implemented.")},t.prototype.setMessageSentStatus=function(e,t){throw new Error("Method not implemented.")},t.prototype.updateMessageReceiptStatus=function(e,t,n,r){throw new Error("Method not implemented.")},t.prototype.setMessageReceivedStatus=function(e,t){throw new Error("Method not implemented.")},t.prototype.clearData=function(){throw new Error("Method not implemented.")},t.prototype.clearUnreadCountByTimestamp=function(e,t,n,r){throw new Error("Method not implemented.")},t}(Eo),ss=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return y(t,e),t.prototype.getNaviInfo=function(){return this._context.getInfoFromCache()},t.prototype.joinRTCRoom=function(e,t,n,r,i,o){return this._context.joinRTCRoom(e,t,n,r,i,o)},t.prototype.quitRTCRoom=function(e){return this._context.quitRTCRoom(e)},t.prototype.rtcPing=function(e,t,n){return this._context.rtcPing(e,t,n)},t.prototype.getRTCRoomInfo=function(e){return this._context.getRTCRoomInfo(e)},t.prototype.getRTCUserInfoList=function(e){return this._context.getRTCUserInfoList(e)},t.prototype.getRTCUserInfo=function(e){return this._context.getRTCUserInfo(e)},t.prototype.setRTCUserInfo=function(e,t,n){return this._context.setRTCUserInfo(e,t,n)},t.prototype.removeRTCUserInfo=function(e,t){return this._context.removeRTCUserInfo(e,t)},t.prototype.setRTCData=function(e,t,n,r,i,o){return this._context.setRTCData(e,t,n,r,i,o)},t.prototype.setRTCTotalRes=function(e,t,n,r,i){return this._context.setRTCTotalRes(e,t,n,r,i)},t.prototype.setRTCCDNUris=function(e,t,n){return this._context.setRTCCDNUris(e,t,n)},t.prototype.getRTCData=function(e,t,n,r){return this._context.getRTCData(e,t,n,r)},t.prototype.removeRTCData=function(e,t,n,r,i){return this._context.removeRTCData(e,t,n,r,i)},t.prototype.setRTCOutData=function(e,t,n,r){return this._context.setRTCOutData(e,t,n,r)},t.prototype.getRTCOutData=function(e,t){return this._context.getRTCOutData(e,t)},t.prototype.getRTCToken=function(e,t,n){return this._context.getRTCToken(e,t,n)},t.prototype.setRTCState=function(e,t){return this._context.setRTCState(e,t)},t.prototype.getRTCUserList=function(e){return this._context.getRTCUserList(e)},t.prototype.joinLivingRoomAsAudience=function(e,t,n){return this._context.joinLivingRoomAsAudience(e,t,n)},t.prototype.quitLivingRoomAsAudience=function(e){return this._context.quitLivingRoomAsAudience(e)},t.prototype.rtcIdentityChange=function(e,t,n){return this._context.rtcIdentityChange(e,t,n)},t.prototype.requestRoomPK=function(e){return this._context.requestRoomPK(e)},t.prototype.cancelRoomPK=function(e){return this._context.cancelRoomPK(e)},t.prototype.responseRoomPK=function(e){return this._context.responseRoomPK(e)},t.prototype.endRoomPK=function(e){return this._context.endRoomPK(e)},t}(Ao);function as(e){return Object.assign({},e)}var cs,us=function(){function e(e,t){var n;this._runtime=e,this._token="",this._pluginContextQueue=[],this._pluginInstanseMap={},this.coreVersion="5.4.3",this._versionInfo={},this._typingInfo={},this._isInternalConnected=!1,this._connectionStatus=J.DISCONNECTED,this._canRedirectConnect=!1,this._watcher={message:void 0,batchMessage:void 0,conversationState:void 0,chatroomState:void 0,connectionState:void 0,rtcInnerWatcher:void 0,expansion:void 0,tag:void 0,conversationTagChanged:void 0,pullFinished:void 0,onConnecting:void 0,onConnected:void 0,onDisconnect:void 0,onSuspend:void 0,readReceiptReceived:void 0,messageReceiptRequest:void 0,messageReceiptResponse:void 0,typingState:void 0,messageBlocked:void 0,ultraGroupEnable:void 0,operateStatus:void 0,ultraGroupMessageExpansionUpdated:void 0,ultraGroupMessageModified:void 0,ultraGroupMessageRecalled:void 0,ultraGroupChannelChangeType:void 0,ultraGroupChannelUserKicked:void 0,ultraGroupChannelDelete:void 0},this._typingInternalTimer=-1,this._typingExpireTime=2e3,this._typingChangedList=[],this.getChatRoomHistoryMessages=this.getChatroomHistoryMessages,this._options=Object.assign({},t),this.appkey=this._options.appkey,this.apiVersion=this._options.apiVersion,this.apiPKGName=this._options.apiPKGName||"",this._options.typingExpireTime&&(this._options.typingExpireTime<2e3?this._typingExpireTime=2e3:this._options.typingExpireTime>6e3?this._typingExpireTime=6e3:this._typingExpireTime=this._options.typingExpireTime),this._options.navigators=this._options.navigators.filter((function(e){return/^https?:\/\//.test(e)})),this._options.navigators=this._options.navigators.map((function(e){return e.replace(/\/$/g,"")})),0===this._options.navigators.length&&(n=this._options.navigators).push.apply(n,s),Fi({bundleId:this.apiPKGName}),function(e){We=st.init(m(m({},e),{sessionId:xe})),ft()}({runtime:this._runtime,logSwitch:1,logPolicy:JSON.parse("{}"),appkey:this.appkey,version:this.apiVersion});var r={status:this._connectionStatusListener.bind(this),batchMessage:this._batchMessageReceiver.bind(this),chatroom:this._chatroomInfoListener.bind(this),conversation:this._conversationInfoListener.bind(this),expansion:this._expansionInfoListener.bind(this),tag:this._tagListener.bind(this),conversationTag:this._conversationTagListener.bind(this),onRTCDataChange:this._rtcDataChange.bind(this),pullFinished:this._pullFinishedListener.bind(this),ultraGroupEnable:this._ultraGroupEnableListener.bind(this),operateStatus:this._operateStatusListener.bind(this),ultraGroupMessageExpansionUpdated:this._ultraGroupMessageExpansionUpdatedListener.bind(this),ultraGroupMessageModified:this._ultraGroupMessageModifiedListener.bind(this),ultraGroupMessageRecalled:this._ultraGroupMessageRecalledListener.bind(this),ultraGroupChannelChangeType:this._ultraGroupChannelChangeTypeListener.bind(this),ultraGroupChannelUserKicked:this._ultraGroupChannelUserKickedListener.bind(this),ultraGroupChannelDelete:this._ultraGroupChannelDeleteListener.bind(this)};this._engine=zt()?new RCCppEngine(e,r,this._options):new os(e,r,this._options)}return e.init=function(t,n){return $e({customLogPrint:n.logStdout,localLogLevel:n.logLevel}),dt.setLogLevel(n.logLevel),dt.setLogStdout(n.logStdout),Ze(he.L_INIT_O,{appkey:n.appkey,navigators:n.navigators,connectionType:n.connectionType,logLevel:n.logLevel,typingExpireTime:n.typingExpireTime}),!1===n.indexDBSwitch&&(De.indexDBSwitch=!1),Ze(he.L_IMSDK_VER_O,{commitId:"b3936f05590d2beb491dee0dbb7071eeb648e941",version:"5.4.3"}),dt.debug("APIContext.init =>",n.appkey,n.navigators),this._context?(dt.error("Repeat initialize!"),this._context):(dt.warn("RCEngine Commit:","b3936f05590d2beb491dee0dbb7071eeb648e941"),this._context=new e(t,n),this._context)},e.destroy=function(){this._context&&(this._context._destroy(),this._context=void 0)},e.prototype.install=function(e,t){if(this._pluginInstanseMap[e.tag])return dt.warn("Repeat install plugin: ".concat(e.tag)),this._pluginInstanseMap[e.tag];var n="RCRTC"===e.tag?new ss(this):new Ao(this),r=null;try{if(!e.verify(this._runtime))return null;r=e.setup(n,this._runtime,t)}catch(e){dt.error("install plugin error!\n",e)}return["RCRTC","RCCall"].includes(e.tag)&&e.version&&e.name&&(this._versionInfo[e.name]=e.version),r&&this._pluginContextQueue.push(n),r&&(this._pluginInstanseMap[e.tag]=r),r},e.prototype._handleRedirect=function(){return I(this,void 0,void 0,(function(){var e,t=this;return _(this,(function(n){switch(n.label){case 0:return dt.debug("_handleRedirct",this._token),[4,this.connect(this._token,!0)];case 1:return(e=n.sent().code)!==q.SUCCESS&&this._canRedirectConnect&&(this._handleSuspend(e),setTimeout((function(){t._handleRedirect()}),5e3)),[2]}}))}))},e.prototype._connectionStatusListener=function(e){var t;return I(this,void 0,void 0,(function(){return _(this,(function(n){return Ze(he.L_CONNECT_S,{status:e}),[J.REDIRECT,J.BLOCKED,J.KICKED_OFFLINE_BY_OTHER_CLIENT,J.DISCONNECT_BY_SERVER,J.DISCONNECTED,J.NETWORK_UNAVAILABLE].includes(e)&&($i(go.IM_CONNECTION_DURATION,{endTime:(new Date).getTime(),code:e}),function(e){I(this,void 0,void 0,(function(){var t,n,r,i,o,s,a,c,u;return _(this,(function(l){switch(l.label){case 0:t=go.IM_CONNECTION_DURATION,n=Qi().bundleId,r=Ki(t),i=r.startTime,o=r.endTime,s=r.code,a=Vi.UNKONWN,l.label=1;case 1:return l.trys.push([1,3,,4]),[4,e.getNetworkType()];case 2:return a=l.sent(),[3,4];case 3:return c=l.sent(),dt.debug(c.message),[3,4];case 4:return u=0,L(i)&&L(o)&&o>i&&i&&(u=o-i),Gi(t,{bid:n,cod:s,dur:u,net:a}),[2]}}))}))}(this._runtime)),this._connectionStatus=e,e===J.REDIRECT?(this._canRedirectConnect=!0,this._handleSuspend(e),this._handleRedirect()):e===J.BLOCKED||e===J.KICKED_OFFLINE_BY_OTHER_CLIENT||e===J.DISCONNECT_BY_SERVER?(this._canRedirectConnect=!1,this._handleDisconnect(e)):e===J.CONNECTING?this._handleConnecting():e===J.CONNECTED?this._handleConnected():e===J.DISCONNECTED?this._handleDisconnect(e):e===J.NETWORK_UNAVAILABLE&&this._handleSuspend(e),(null===(t=this._watcher.rtcInnerWatcher)||void 0===t?void 0:t.status)&&this._watcher.rtcInnerWatcher.status(e),this._pluginContextQueue.forEach((function(t){t.onconnectionstatechange&&t.onconnectionstatechange(e)})),this._watcher.connectionState&&this._watcher.connectionState(e),[2]}))}))},e.prototype._handleConnecting=function(){this._watcher.onConnecting&&this._watcher.onConnecting()},e.prototype._handleConnected=function(){this._watcher.onConnected&&this._watcher.onConnected()},e.prototype._handleDisconnect=function(e){this._watcher.onDisconnect&&this._watcher.onDisconnect(e)},e.prototype._handleSuspend=function(e){this._watcher.onSuspend&&this._watcher.onSuspend(e)},e.prototype._messageReceiver=function(e,t,n){var r,i,o;if((e.conversationType===b.RTC_ROOM||Object.prototype.hasOwnProperty.call(be,e.messageType))&&this._watcher.rtcInnerWatcher&&this._watcher.rtcInnerWatcher.message)this._watcher.rtcInnerWatcher.message(as(e));else if(-1===["RC:ChrmJoinNtf","RC:ChrmQuitNtf"].indexOf(e.messageType)||"function"!=typeof this._watcher.chatroomState){if("RC:ChrmMemChange"!==e.messageType){if(e.messageType!==te.TYPING_STATUS||(this._addTypingInfo(as(e)),!this._watcher.typingState))if(e.messageType!==te.LOG_COMMAND||"rongcloudsystem"!==e.senderUserId)if(e.messageType!==te.INTERCEPT){if(!this._pluginContextQueue.some((function(t){if(!t.onmessage)return!1;try{return t.onmessage(as(e))}catch(e){return dt.error("plugin error =>",e),!1}})))if(this._watcher.message&&this._watcher.message(as(e),t,n),"RC:ReadNtf"!==e.messageType)if("RC:RRReqMsg"!==e.messageType){if("RC:RRRspMsg"!==e.messageType)return e;var s=null===(o=e.content)||void 0===o?void 0:o.receiptMessageDic,a=this._engine.getCurrentUserId();s&&Array.isArray(s[a])&&"function"==typeof this._watcher.messageReceiptResponse&&this._watcher.messageReceiptResponse({conversationType:e.conversationType,targetId:e.targetId,channelId:e.channelId},e.senderUserId,s[a])}else"function"==typeof this._watcher.messageReceiptRequest&&this._watcher.messageReceiptRequest({conversationType:e.conversationType,targetId:e.targetId,channelId:e.channelId},e.content.messageUId,e.senderUserId);else"function"==typeof this._watcher.readReceiptReceived&&this._watcher.readReceiptReceived({conversationType:e.conversationType,targetId:e.targetId,channelId:e.channelId},e.content.messageUId,e.content.lastMessageSendTime)}else this._MessageBlockedListener({conversationType:e.conversationType,targetId:e.targetId,channelId:e.channelId||"",blockType:e.content.interceptType,blockedMessageUId:e.content.msgUId,extra:e.content.extra});else{var c=e.content,u=c.startTime,l=c.endTime,f=c.platform,h=c.logId,d=c.uri,p=c.packageName,g={startTime:parseInt(u),endTime:parseInt(l),platform:f,logId:h,uri:d,packageName:p};null===(i=st.getInstance())||void 0===i||i.reportFullLog(g)}}else if("function"==typeof this._watcher.chatroomState){var v={};Array.isArray(e.content.userList)&&e.content.userList.forEach((function(e){v[e.userId]=e.status})),this._watcher.chatroomState({userChange:{users:v,chatroomId:e.targetId}})}}else this._watcher.chatroomState({userChange:{users:(r={},r[e.senderUserId]="RC:ChrmQuitNtf"===e.messageType?ve.QUIT:ve.JOIN,r),chatroomId:e.targetId}})},e.prototype._batchMessageReceiver=function(e,t,n){var r=this,i=[];e.forEach((function(e){var o=r._messageReceiver(e,t,n);o&&i.push(o)})),i.length&&this._watcher.batchMessage&&this._watcher.batchMessage(i)},e.prototype._chatroomInfoListener=function(e){this._watcher.chatroomState&&this._watcher.chatroomState(e)},e.prototype._conversationInfoListener=function(e){this._watcher.conversationState&&this._watcher.conversationState(e)},e.prototype._expansionInfoListener=function(e){this._watcher.expansion&&this._watcher.expansion(e)},e.prototype._tagListener=function(){this._watcher.tag&&this._watcher.tag()},e.prototype._conversationTagListener=function(){this._watcher.conversationTagChanged&&this._watcher.conversationTagChanged()},e.prototype._typingStatusListener=function(e){this._watcher.typingState&&this._watcher.typingState(e)},e.prototype._pullFinishedListener=function(){this._watcher.pullFinished&&this._watcher.pullFinished()},e.prototype._MessageBlockedListener=function(e){this._watcher.messageBlocked&&this._watcher.messageBlocked(e)},e.prototype._ultraGroupEnableListener=function(e){this._watcher.ultraGroupEnable&&this._watcher.ultraGroupEnable(e)},e.prototype._operateStatusListener=function(e){this._watcher.operateStatus&&this._watcher.operateStatus(e)},e.prototype._ultraGroupMessageExpansionUpdatedListener=function(e){this._watcher.ultraGroupMessageExpansionUpdated&&this._watcher.ultraGroupMessageExpansionUpdated(e)},e.prototype._ultraGroupMessageModifiedListener=function(e){this._watcher.ultraGroupMessageModified&&this._watcher.ultraGroupMessageModified(e)},e.prototype._ultraGroupMessageRecalledListener=function(e){this._watcher.ultraGroupMessageRecalled&&this._watcher.ultraGroupMessageRecalled(e)},e.prototype._ultraGroupChannelChangeTypeListener=function(e){this._watcher.ultraGroupChannelChangeType&&this._watcher.ultraGroupChannelChangeType(e)},e.prototype._ultraGroupChannelUserKickedListener=function(e){this._watcher.ultraGroupChannelUserKicked&&this._watcher.ultraGroupChannelUserKicked(e)},e.prototype._ultraGroupChannelDeleteListener=function(e){this._watcher.ultraGroupChannelDelete&&this._watcher.ultraGroupChannelDelete(e)},e.prototype._rtcDataChange=function(e,t){this._pluginContextQueue.forEach((function(n){n.onrtcdatachange&&n.onrtcdatachange(e,t)}))},e.prototype.assignWatcher=function(e){var t=this;Object.keys(this._watcher).forEach((function(n){if(Object.prototype.hasOwnProperty.call(e,n)){var r=e[n];t._watcher[n]=k(r)||j(r)?r:void 0}}))},e.prototype.resetWatcher=function(){var e=this;Object.keys(this._watcher).forEach((function(t){e._watcher[t]=void 0}))},e.prototype._addTypingInfo=function(e){var t=e.senderUserId,n=e.conversationType,r=e.targetId,i=e.content,o=e.channelId,s=i.typingContentType,a=o||"",c="".concat(n,"#").concat(r,"#").concat(a);this._typingInfo[c]||(this._typingInfo[c]=[]);var u=this._typingInfo[c].findIndex((function(e){return e.userId===t}));u>=0&&this._typingInfo[c][u].messageType===s?this._typingInfo[c][u].timestamp=Date.now():(u>=0&&this._typingInfo[c].splice(u,1),this._typingInfo[c].push({userId:t,messageType:s,timestamp:Date.now()}),this._typingChangedList.includes(c)||this._typingChangedList.push(c),this._startCheckTypingInfo())},e.prototype._startCheckTypingInfo=function(){var e=this;-1===this._typingInternalTimer&&0!==Object.keys(this._typingInfo).length&&(this._typingInternalTimer=setInterval((function(){for(var t in e._typingInfo){var n=e._typingInfo[t].length;e._typingInfo[t]=e._typingInfo[t].filter((function(t){return Date.now()-t.timestamp<e._typingExpireTime})),e._typingInfo[t].length===n||e._typingChangedList.includes(t)||e._typingChangedList.push(t),0===e._typingInfo[t].length&&delete e._typingInfo[t]}if(e._typingChangedList.length>0){var r=e._typingChangedList.map((function(t){return{conversationType:Number(t.split("#")[0]),targetId:t.split("#")[1],channelId:t.split("#")[2],list:e._typingInfo[t]||[]}}));e._typingStatusListener(r),e._typingChangedList=[]}0===Object.keys(e._typingInfo).length&&(clearInterval(e._typingInternalTimer),e._typingInternalTimer=-1)}),500))},e.prototype.getConnectedTime=function(){return this._engine.getConnectedTime()},e.prototype.getServerTime=function(){return this._engine.getServerTime()},e.prototype.getDeviceId=function(){return this._engine.getDeviceId()},e.prototype.getCurrentUserId=function(){return this._engine.getCurrentUserId()},e.prototype.getConnectionStatus=function(){return this._connectionStatus},Object.defineProperty(e.prototype,"token",{get:function(){return this._token},enumerable:!1,configurable:!0}),e.prototype.connect=function(e,t,n,r){return void 0===t&&(t=!1),I(this,void 0,void 0,(function(){var i,o,s,a,c,u,l;return _(this,(function(f){switch(f.label){case 0:return this._connectionStatus===J.CONNECTED?[2,{code:q.SUCCESS,userId:this._engine.getCurrentUserId()}]:this._connectionStatus===J.CONNECTING?[2,{code:q.BIZ_ERROR_CONNECTING}]:"string"!=typeof e||0===e.length?[2,{code:q.RC_CONN_USER_OR_PASSWD_ERROR}]:(this._token=e,i=e.split("@"),o=i[1],s=o?o.split(";").map((function(e){return/^https?:/.test(e)?e:"https://".concat(e)})):[],Ze(he.L_GET_NAVI_T,{token:e,uris:s},{traceId:r}),[4,this._engine.getNaviInfo(this._getTokenWithoutNavi(),s,t,this._options.checkCA)]);case 1:return(a=f.sent())?(Ze(he.L_GET_NAVI_R,{code:q.SUCCESS,naviInfo:a},{traceId:r}),Ze(he.L_ENV_S,{isEnterprise:1===(null==a?void 0:a.type)},{traceId:r}),1===(null==a?void 0:a.type)?[2,{code:q.PACKAGE_ENVIRONMENT_ERROR}]:(c=mt.getInfo(),Ze(he.L_CONNECT_T,{token:e,refreshNavi:t,reconnectKickEnable:n},{traceId:r}),[4,this._engine.connect(this._getTokenWithoutNavi(),a,n,r)])):(Je(he.L_GET_NAVI_R,{code:q.RC_NAVI_RESOURCE_ERROR},{traceId:r}),[2,{code:q.RC_NAVI_RESOURCE_ERROR}]);case 2:return u=f.sent(),(u===q.SUCCESS?Ze:Je)(he.L_CONNECT_R,{code:u,userId:this._engine.getCurrentUserId()},{traceId:r}),u!==X.REDIRECT?[3,4]:(this._connectionStatus=J.REDIRECT,[4,this.connect(e,!0)]);case 3:return[2,f.sent()];case 4:return l=this._engine.getCurrentUserId(),u===q.SUCCESS&&($i(go.IM_CONNECTION_DURATION,{startTime:(new Date).getTime()},!0),dt.info("connect success, userId: ".concat(l)),1!==(null==a?void 0:a.type)&&this._engine.reportSDKInfo&&this._engine.reportSDKInfo(c),ut({runtime:this._runtime,logSwitch:(null==a?void 0:a.logSwitch)||0,logPolicy:JSON.parse((null==a?void 0:a.logPolicy)||"{}"),appkey:this.appkey,version:this.apiVersion,userId:l}),$e({userId:l}),this._isInternalConnected=!0),u!==q.SUCCESS||zt()||1===a.openUS&&this._pullUserSettings(),u!==q.SUCCESS&&(this._connectionStatus=J.CONNECTION_CLOSED),[2,{code:u,userId:l}]}}))}))},e.prototype._pullUserSettings=function(){return I(this,void 0,void 0,(function(){return _(this,(function(e){return[2]}))}))},e.prototype.disconnect=function(){var e;return this._isInternalConnected=!1,clearInterval(this._typingInternalTimer),this._typingInternalTimer=-1,this._typingInfo={},null===(e=st.getInstance())||void 0===e||e.distroy(),$e({userId:""}),this._engine.disconnect(),this._pluginContextQueue.forEach((function(e){if(e.ondisconnect)try{e.ondisconnect()}catch(e){dt.error("plugin error =>",e)}})),Promise.resolve()},e.prototype.reconnect=function(e){return this._isInternalConnected?Promise.resolve({code:q.CAN_NOT_RECONNECT}):this.connect(this._getTokenWithoutNavi(),!1,e)},e.prototype._getTokenWithoutNavi=function(){return this._token.replace(/@.+$/,"@")},e.prototype.getInfoFromCache=function(){return this._engine.getNaviInfoFromCache()},e.prototype.registerMessageType=function(e,t,n,r,i){void 0===r&&(r=[]),void 0===i&&(i=!1),this._engine.registerMessageType(e,t,n,r,i)},e.prototype.sendMessage=function(e,t,n,r,i){if(e!==b.ULTRA_GROUP){var o=this.getInfoFromCache();if(1===((null==o?void 0:o.grpRRVer)||0)&&n.messageType===te.READ_RECEIPT_RESPONSE)return Promise.resolve({code:q.READ_RECEIPT_ERROR})}var s=n.canIncludeExpansion,a=void 0!==s&&s,c=n.expansion;if(a){var u=Q(c),l=u.isIllgalEx,f=u.isExKeyOrValLengthExceedLimit;if(u.isExceedLimit||f)return Promise.resolve({code:q.EXPANSION_LIMIT_EXCEET});if(l)return Promise.resolve({code:q.BIZ_ERROR_INVALID_PARAMETER})}var h=JSON.stringify(n.content);return E(h)>131072?Promise.resolve({code:q.RC_MSG_CONTENT_EXCEED_LIMIT}):e===b.ULTRA_GROUP?this._engine.sendUltraMessage(t,n,r,i):this._engine.sendMessage(e,t,n,r,i)},e.prototype.sendExpansionMessage=function(e){return I(this,void 0,void 0,(function(){var t,n,r,i,o,s,a,c,u,l,f;return _(this,(function(h){switch(h.label){case 0:return t=e.channelId,n=e.conversationType,r=e.targetId,i=e.messageUId,o=e.keys,s=e.expansion,a=e.removeAll,e.canIncludeExpansion?(c=Q(s),u=c.isIllgalEx,l=c.isExKeyOrValLengthExceedLimit,c.isExceedLimit||l?[2,Promise.resolve({code:q.EXPANSION_LIMIT_EXCEET})]:u?[2,Promise.resolve({code:q.BIZ_ERROR_INVALID_PARAMETER})]:(f={mid:i},s&&(f.put=s),o&&(f.del=o),a&&(f.removeAll=1),[4,this._engine.sendMessage(n,r,{content:f,messageType:te.EXPANSION_NOTIFY,channelId:t})])):[2,{code:q.MESSAGE_KV_NOT_SUPPORT}];case 1:return[2,{code:h.sent().code}]}}))}))},e.prototype.sendReadReceiptMessage=function(e,t,n){return I(this,void 0,void 0,(function(){var r;return _(this,(function(i){return r=this.getInfoFromCache(),0===((null==r?void 0:r.grpRRVer)||0)?[2,{code:q.READ_RECEIPT_ERROR,data:"The read receipt switch is not on, please call the sendMessage method!"}]:[2,this._engine.sendReadReceiptMessage(e,t,n)]}))}))},e.prototype.getMessageReader=function(e,t,n){return I(this,void 0,void 0,(function(){var r;return _(this,(function(i){return r=this.getInfoFromCache(),0===((null==r?void 0:r.grpRRVer)||0)?[2,{code:q.READ_RECEIPT_ERROR}]:[2,this._engine.getMessageReader(e,t,n)]}))}))},e.prototype._destroy=function(){var e;this._isInternalConnected=!1,this._watcher={batchMessage:void 0,message:void 0,conversationState:void 0,chatroomState:void 0,connectionState:void 0,rtcInnerWatcher:void 0,expansion:void 0,tag:void 0,conversationTagChanged:void 0,typingState:void 0,pullFinished:void 0,onConnecting:void 0,onConnected:void 0,onDisconnect:void 0,onSuspend:void 0},this._engine.disconnect(),this._pluginContextQueue.forEach((function(e){if(e.ondestroy)try{e.ondestroy()}catch(e){dt.error("plugin error =>",e)}})),this._pluginContextQueue.length=0,this._pluginInstanseMap={},null===(e=st.getInstance())||void 0===e||e.distroy(),$e({userId:""})},e.prototype.getHistoryMessage=function(e,t,n,r,i,o,s,a){if(void 0===n&&(n=0),void 0===r&&(r=20),void 0===i&&(i=0),void 0===o&&(o=""),void 0===s&&(s=""),e===b.ULTRA_GROUP){var c={timestamp:n,count:r,order:i,channelId:o};return this._engine.getUltraHistoryMsg(t,c,a)}return this._engine.getHistoryMessage(e,t,n,r,i,o,s||"",a)},e.prototype.getHistoryMessagesByObjectNames=function(e,t,n,r,i,o,s){return this._engine.getHistoryMessagesByObjectNames(e,t,n,r,i,o,s)},e.prototype.getConversationList=function(e,t,n,r,i){if(void 0===e&&(e=300),void 0===i&&(i=""),t===b.ULTRA_GROUP){var o=q.METHOD_NOT_SUPPORT;return Promise.resolve({code:o,msg:q[o]})}return this._engine.getConversationList(e,t,n,r,i)},e.prototype.getConversationsByPage=function(e,t,n,r){return this._engine.getConversationsByPage(e,t,n,r)},e.prototype.getConversation=function(e,t,n){return this._engine.getConversation(e,t,n)},e.prototype.removeConversation=function(e,t,n){return void 0===n&&(n=""),e===b.ULTRA_GROUP?Promise.resolve(q.METHOD_NOT_SUPPORT):this._engine.removeConversation(e,t,n)},e.prototype.getUltraGroupList=function(e){return this._engine.getUltraGroupList(e)},e.prototype.getBlockUltraGroupList=function(){return this._engine.getBlockUltraGroupList()},e.prototype.getTopUltraGroupList=function(){return this._engine.getTopUltraGroupList()},e.prototype.clearUnreadCount=function(e,t,n){return void 0===n&&(n=""),e===b.ULTRA_GROUP?this._engine.clearUltraUnreadcount(t,n):this._engine.clearConversationUnreadCount(e,t,n)},e.prototype.clearAllUnreadCount=function(){return this._engine.clearAllUnreadCount()},e.prototype.getUnreadCount=function(e,t,n){return void 0===n&&(n=""),this._engine.getConversationUnreadCount(e,t,n)},e.prototype.getTotalUnreadCount=function(e,t,n){if(t&&t.includes(b.ULTRA_GROUP)){var r=q.METHOD_NOT_SUPPORT;return Promise.resolve({code:r,msg:q[r]})}return this._engine.getAllConversationUnreadCount(e,t&&t.length>0?t:[b.PRIVATE,b.GROUP,b.SYSTEM,b.PUBLIC_SERVICE],!!n)},e.prototype.getFirstUnreadMessage=function(e,t,n){return void 0===n&&(n=""),this._engine.getFirstUnreadMessage(e,t,n)},e.prototype.setConversationNotificationLevel=function(e,t,n,r){return void 0===r&&(r=""),I(this,void 0,void 0,(function(){var i;return _(this,(function(o){return i=[{conversationType:e,targetId:t,notificationLevel:n,channelId:r}],[2,this._engine.batchSetConversationStatus(i)]}))}))},e.prototype.setConversationStatus=function(e,t,n,r,i){if(void 0===i&&(i=""),e===b.ULTRA_GROUP&&void 0!==n)return Promise.resolve(q.METHOD_NOT_SUPPORT);var o=[{conversationType:e,targetId:t,isTop:n,notificationStatus:r,channelId:i}];return this._engine.batchSetConversationStatus(o)},e.prototype.saveConversationMessageDraft=function(e,t,n,r){return void 0===r&&(r=""),this._engine.saveConversationMessageDraft(e,t,n,r)},e.prototype.getConversationMessageDraft=function(e,t,n){return void 0===n&&(n=""),this._engine.getConversationMessageDraft(e,t,n)},e.prototype.clearConversationMessageDraft=function(e,t,n){return void 0===n&&(n=""),this._engine.clearConversationMessageDraft(e,t,n)},e.prototype.recallMessage=function(e,t,n,r,i){return this._engine.recallMsg(e,t,n,r,i)},e.prototype.deleteRemoteMessage=function(e,t,n,r){return void 0===r&&(r=""),e===b.ULTRA_GROUP?Promise.resolve(q.METHOD_NOT_SUPPORT):this._engine.deleteRemoteMessage(e,t,n,r)},e.prototype.deleteRemoteMessageByTimestamp=function(e,t,n,r){return void 0===r&&(r=""),this._engine.deleteRemoteMessageByTimestamp(e,t,n,r)},e.prototype.joinChatroom=function(e,t,n){return void 0===t&&(t=10),this._engine.joinChatroom(e,t,n)},e.prototype.joinExistChatroom=function(e,t,n){return void 0===t&&(t=10),this._engine.joinExistChatroom(e,t,n)},e.prototype.quitChatroom=function(e){return this._engine.quitChatroom(e)},e.prototype.getChatroomInfo=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=0),this._engine.getChatroomInfo(e,t,n)},e.prototype.setChatroomEntry=function(e,t){var n=t.key,r=t.value;return Dt(n)&&Lt(r)?this._engine.setChatroomEntry(e,t):Promise.resolve(q.BIZ_ERROR_INVALID_PARAMETER)},e.prototype.setChatroomEntries=function(e,t){for(var n=0;n<t.entries.length;n++){var r=t.entries[n],i=r.key,o=r.value;if(!Dt(i)||!Lt(o))return Promise.resolve({code:q.BIZ_ERROR_INVALID_PARAMETER})}var s=m(m({},t),{isOverwrite:t.isForce});return this._engine.setChatroomEntries(e,s)},e.prototype.forceSetChatroomEntry=function(e,t){var n=t.key,r=t.value;return Dt(n)&&Lt(r)?this._engine.forceSetChatroomEntry(e,t):Promise.resolve(q.BIZ_ERROR_INVALID_PARAMETER)},e.prototype.removeChatroomEntry=function(e,t){var n=t.key;return Dt(n)?this._engine.removeChatroomEntry(e,t):Promise.resolve(q.BIZ_ERROR_INVALID_PARAMETER)},e.prototype.removeChatroomEntries=function(e,t){for(var n=0;n<t.entries.length;n++){var r=t.entries[n].key;if(!Dt(r))return Promise.resolve({code:q.BIZ_ERROR_INVALID_PARAMETER})}return this._engine.removeChatroomEntries(e,t)},e.prototype.forceRemoveChatroomEntry=function(e,t){var n=t.key;return Dt(n)?this._engine.forceRemoveChatroomEntry(e,t):Promise.resolve(q.BIZ_ERROR_INVALID_PARAMETER)},e.prototype.getChatroomEntry=function(e,t){return this._engine.getChatroomEntry(e,t)},e.prototype.getAllChatroomEntries=function(e){return this._engine.getAllChatroomEntry(e)},e.prototype.getChatroomHistoryMessages=function(e,t,n,r){return void 0===t&&(t=20),void 0===n&&(n=0),void 0===r&&(r=0),this._engine.getChatroomHistoryMessages(e,r,t,n)},e.prototype.getFileToken=function(e,t,n,r){return I(this,void 0,void 0,(function(){var i,o,s,a,c,u,l;return _(this,(function(f){switch(f.label){case 0:return i=this.getInfoFromCache(),o=(null==i?void 0:i.bosAddr)||"",s=(null==i?void 0:i.uploadServer)||"",a=(null==i?void 0:i.ossConfig)||"",[4,this._engine.getFileToken(e,t,n,r)];case 1:return c=f.sent(),u=c.code,l=c.data,u===q.SUCCESS&&l?[2,Promise.resolve(Object.assign(l,{bos:o,qiniu:s,ossConfig:a}))]:[2,Promise.reject(u)]}}))}))},e.prototype.getFileUrl=function(e,t,n,r,i){return void 0===i&&(i=ue.QINIU),I(this,void 0,void 0,(function(){var o,s,a;return _(this,(function(c){switch(c.label){case 0:return(null==r?void 0:r.isBosRes)?[2,Promise.resolve(r)]:[4,this._engine.getFileUrl(e,i,t,n)];case 1:return o=c.sent(),s=o.code,a=o.data,s===q.SUCCESS?[2,Promise.resolve(a)]:[2,Promise.reject(s)]}}))}))},e.prototype.createTag=function(e){return I(this,void 0,void 0,(function(){return _(this,(function(t){return[2,this._engine.createTag(e)]}))}))},e.prototype.removeTag=function(e){return I(this,void 0,void 0,(function(){return _(this,(function(t){return[2,this._engine.removeTag(e)]}))}))},e.prototype.updateTag=function(e){return I(this,void 0,void 0,(function(){return _(this,(function(t){return[2,this._engine.updateTag(e)]}))}))},e.prototype.getTagList=function(){return I(this,void 0,void 0,(function(){return _(this,(function(e){return[2,this._engine.getTagList()]}))}))},e.prototype.addTagForConversations=function(e,t){return I(this,void 0,void 0,(function(){return _(this,(function(n){return t.length>1e3?[2,Promise.reject(q.CONVER_OUT_LIMIT_ERROR)]:[2,this._engine.addTagForConversations(e,t)]}))}))},e.prototype.removeTagForConversations=function(e,t){return I(this,void 0,void 0,(function(){return _(this,(function(n){return[2,this._engine.removeTagForConversations(e,t)]}))}))},e.prototype.removeTagsForConversation=function(e,t){return I(this,void 0,void 0,(function(){return _(this,(function(n){return[2,this._engine.removeTagsForConversation(e,t)]}))}))},e.prototype.getConversationListByTag=function(e,t,n,r){return I(this,void 0,void 0,(function(){return _(this,(function(i){return[2,this._engine.getConversationListByTag(e,t,n,r)]}))}))},e.prototype.getUnreadCountByTag=function(e,t){return I(this,void 0,void 0,(function(){return _(this,(function(n){return[2,this._engine.getUnreadCountByTag(e,t)]}))}))},e.prototype.setConversationStatusInTag=function(e,t,n){return I(this,void 0,void 0,(function(){return _(this,(function(r){return[2,this._engine.setConversationStatusInTag(e,t,n)]}))}))},e.prototype.getTagsForConversation=function(e){return I(this,void 0,void 0,(function(){return _(this,(function(t){return[2,this._engine.getTagsForConversation(e)]}))}))},e.prototype.getBlockConversationList=function(){return this._engine.getBlockConversationList()},e.prototype.getTopConversationList=function(){return this._engine.getTopConversationList()},e.prototype.getUnreadMentionedCount=function(e){return this._engine.getUnreadMentionedCount(e)},e.prototype.getAllUnreadMentionedCount=function(){return this._engine.getAllUnreadMentionedCount()},e.prototype.sendUltraGroupTypingStatus=function(e){if(e.conversationType!==b.ULTRA_GROUP){var t=q.METHOD_ONLY_SUPPORT_ULTRA_GROUP;return Promise.resolve({code:t,msg:q[t]})}return this._engine.sendUltraGroupTypingStatus(e)},e.prototype.getUltraGroupMessageListByMessageUId=function(e){return this._engine.getUltraGroupMessageListByMessageUId(e)},e.prototype.expandUltraMessage=function(e){return I(this,void 0,void 0,(function(){var t,n,r,i,o,s,a;return _(this,(function(c){switch(c.label){case 0:return t=e.conversationType,n=e.expansion,r=e.canIncludeExpansion,t!==b.ULTRA_GROUP?[2,{code:i=q.METHOD_ONLY_SUPPORT_ULTRA_GROUP,msg:q[i]}]:r?(o=Q(n),s=o.isIllgalEx,a=o.isExKeyOrValLengthExceedLimit,o.isExceedLimit||a?[2,{code:q.EXPANSION_LIMIT_EXCEET}]:s?[2,{code:q.BIZ_ERROR_INVALID_PARAMETER}]:[4,this._engine.expandUltraMessage(e)]):[2,{code:q.MESSAGE_KV_NOT_SUPPORT}];case 1:return[2,{code:c.sent().code}]}}))}))},e.prototype.modifyMessage=function(e){return I(this,void 0,void 0,(function(){var t;return _(this,(function(n){switch(n.label){case 0:return e.conversationType!==b.ULTRA_GROUP?[2,{code:t=q.METHOD_ONLY_SUPPORT_ULTRA_GROUP,msg:q[t]}]:[4,this._engine.modifyMessage(e)];case 1:return[2,{code:n.sent().code}]}}))}))},e.prototype.getUltraGroupUnreadMentionedCountByTargetId=function(e){return this._engine.getUltraGroupUnreadMentionedCountByTargetId(e)},e.prototype.getUltraGroupUnreadCountByTargetId=function(e){return this._engine.getUltraGroupUnreadCountByTargetId(e)},e.prototype.getAllUltraGroupUnreadCount=function(e){return void 0===e&&(e=!1),this._engine.getAllUltraGroupUnreadCount(e)},e.prototype.getAllConversationState=function(){return this._engine.getAllConversationState()},e.prototype.callExtra=function(e){for(var t,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return(t=this._engine).callExtra.apply(t,T([e],n,!1))},e.prototype.clearConversations=function(e,t){return I(this,void 0,void 0,(function(){return _(this,(function(n){switch(n.label){case 0:return[4,this._engine.clearConversations(e,t)];case 1:return[2,n.sent()]}}))}))},e.prototype.setUserStatusListener=function(e,t){return this._engine.setUserStatusListener(e,(function(e){try{t(e)}catch(e){dt.error(e)}}))},e.prototype.addToBlacklist=function(e){return I(this,void 0,void 0,(function(){return _(this,(function(t){return[2,this._engine.addToBlacklist(e)]}))}))},e.prototype.removeFromBlacklist=function(e){return I(this,void 0,void 0,(function(){return _(this,(function(t){return[2,this._engine.removeFromBlacklist(e)]}))}))},e.prototype.getBlacklist=function(){return I(this,void 0,void 0,(function(){return _(this,(function(e){return[2,this._engine.getBlacklist()]}))}))},e.prototype.getBlacklistStatus=function(e){return I(this,void 0,void 0,(function(){return _(this,(function(t){return[2,this._engine.getBlacklistStatus(e)]}))}))},e.prototype.insertMessage=function(e,t,n){return I(this,void 0,void 0,(function(){return _(this,(function(r){return[2,this._engine.insertMessage(e,t,n)]}))}))},e.prototype.deleteMessages=function(e){return I(this,void 0,void 0,(function(){return _(this,(function(t){return[2,this._engine.deleteMessages(e)]}))}))},e.prototype.deleteMessagesByTimestamp=function(e,t,n,r,i){return void 0===i&&(i=""),I(this,void 0,void 0,(function(){return _(this,(function(o){return[2,this._engine.deleteMessagesByTimestamp(e,t,n,r,i)]}))}))},e.prototype.clearMessages=function(e,t,n){return void 0===n&&(n=""),I(this,void 0,void 0,(function(){return _(this,(function(r){return[2,this._engine.clearMessages(e,t,n)]}))}))},e.prototype.getMessage=function(e){return I(this,void 0,void 0,(function(){return _(this,(function(t){return[2,this._engine.getMessage(e)]}))}))},e.prototype.setMessageContent=function(e,t,n){return I(this,void 0,void 0,(function(){return _(this,(function(r){return[2,this._engine.setMessageContent(e,t,n)]}))}))},e.prototype.setMessageSearchField=function(e,t,n){return I(this,void 0,void 0,(function(){return _(this,(function(r){return[2,this._engine.setMessageSearchField(e,t,n)]}))}))},e.prototype.setMessageSentStatus=function(e,t){return I(this,void 0,void 0,(function(){return _(this,(function(n){return[2,this._engine.setMessageSentStatus(e,t)]}))}))},e.prototype.setMessageReceivedStatus=function(e,t){return I(this,void 0,void 0,(function(){return _(this,(function(n){return[2,this._engine.setMessageReceivedStatus(e,t)]}))}))},e.prototype.setMessageStatusToRead=function(e,t,n,r){return I(this,void 0,void 0,(function(){return _(this,(function(i){return[2,this._engine.updateMessageReceiptStatus(e,t,n,r)]}))}))},e.prototype.setUserStatus=function(e){return I(this,void 0,void 0,(function(){return _(this,(function(t){return[2,this._engine.setUserStatus(e)]}))}))},e.prototype.subscribeUserStatus=function(e){return I(this,void 0,void 0,(function(){return _(this,(function(t){return[2,this._engine.subscribeUserStatus(e)]}))}))},e.prototype.getUserStatus=function(e){return I(this,void 0,void 0,(function(){return _(this,(function(t){return[2,this._engine.getUserStatus(e)]}))}))},e.prototype.searchConversationByContent=function(e,t,n,r){return void 0===t&&(t=[]),void 0===n&&(n=""),I(this,void 0,void 0,(function(){return _(this,(function(i){return[2,this._engine.searchConversationByContent(e,t,n,r)]}))}))},e.prototype.searchConversationByContentWithAllChannel=function(e,t,n){return void 0===t&&(t=[]),I(this,void 0,void 0,(function(){return _(this,(function(r){return[2,this._engine.searchConversationByContentWithAllChannel(e,t,n)]}))}))},e.prototype.searchMessageByContent=function(e,t,n,r,i,o,s){return void 0===s&&(s=""),I(this,void 0,void 0,(function(){return _(this,(function(a){return[2,this._engine.searchMessageByContent(e,t,n,r,i,o,s)]}))}))},e.prototype.searchMessageByContentWithAllChannel=function(e,t,n,r,i){return I(this,void 0,void 0,(function(){return _(this,(function(o){return[2,this._engine.searchMessageByContentWithAllChannel(e,t,n,r,i)]}))}))},e.prototype.searchMessageByContentInTimeRangeWithAllChannel=function(e,t,n,r,i,o,s){return I(this,void 0,void 0,(function(){return _(this,(function(a){return[2,this._engine.searchMessageByContentInTimeRangeWithAllChannel(e,t,n,r,i,o,s)]}))}))},e.prototype.getUnreadMentionedMessages=function(e,t,n){return void 0===n&&(n=""),this._engine.getUnreadMentionedMessages(e,t,n)},e.prototype.clearUnreadCountByTimestamp=function(e,t,n,r){return void 0===r&&(r=""),this._engine.clearUnreadCountByTimestamp(e,t,n,r)},e.prototype.getUltraGroupDefaultNotificationLevel=function(e,t){return void 0===t&&(t=""),this._engine.getUltraGroupDefaultNotificationLevel(e,t)},e.prototype.setUltraGroupDefaultNotificationLevel=function(e,t,n){return void 0===n&&(n=""),this._engine.setUltraGroupDefaultNotificationLevel(e,t,n)},e.prototype.getConversationNotificationLevel=function(e,t,n){return void 0===n&&(n=""),this._engine.getConversationNotificationLevel(e,t,n)},e.prototype.getConversationNotificationStatus=function(e,t,n){return void 0===n&&(n=""),this._engine.getConversationNotificationStatus(e,t,n)},e.prototype.getRemoteHistoryMessages=function(e,t,n,r,i,o){return this._engine.getRemoteHistoryMessages(e,t,n,r,i,o)},e.prototype.getConversationListWithAllChannel=function(){return this._engine.getConversationListWithAllChannel()},e.prototype.getConversationListWithAllChannelByPage=function(e,t){return this._engine.getConversationListWithAllChannelByPage(e,t)},e.prototype.clearData=function(){return I(this,void 0,void 0,(function(){return _(this,(function(e){return[2,this._engine.clearData()]}))}))},e.prototype.joinRTCRoom=function(e,t,n,r,i,o){return this._engine.joinRTCRoom(e,t,n,r,i,o)},e.prototype.quitRTCRoom=function(e){return this._engine.quitRTCRoom(e)},e.prototype.rtcPing=function(e,t,n){return this._engine.rtcPing(e,t,n)},e.prototype.getRTCRoomInfo=function(e){return this._engine.getRTCRoomInfo(e)},e.prototype.getRTCUserInfoList=function(e){return this._engine.getRTCUserInfoList(e)},e.prototype.getRTCUserInfo=function(e){return this._engine.getRTCUserInfo(e)},e.prototype.setRTCUserInfo=function(e,t,n){return this._engine.setRTCUserInfo(e,t,n)},e.prototype.removeRTCUserInfo=function(e,t){return this._engine.removeRTCUserInfo(e,t)},e.prototype.setRTCData=function(e,t,n,r,i,o){return this._engine.setRTCData(e,t,n,r,i,o)},e.prototype.setRTCTotalRes=function(e,t,n,r,i){return void 0===i&&(i=""),this._engine.setRTCTotalRes(e,t,n,r,i)},e.prototype.setRTCCDNUris=function(e,t,n){return this._engine.setRTCCDNUris(e,t,n)},e.prototype.getRTCData=function(e,t,n,r){return this._engine.getRTCData(e,t,n,r)},e.prototype.removeRTCData=function(e,t,n,r,i){return this._engine.removeRTCData(e,t,n,r,i)},e.prototype.setRTCOutData=function(e,t,n,r){return this._engine.setRTCOutData(e,t,n,r)},e.prototype.getRTCOutData=function(e,t){return this._engine.getRTCOutData(e,t)},e.prototype.getRTCToken=function(e,t,n){return this._engine.getRTCToken(e,t,n)},e.prototype.setRTCState=function(e,t){return this._engine.setRTCState(e,t)},e.prototype.getRTCUserList=function(e){return this._engine.getRTCUserList(e)},e.prototype.joinLivingRoomAsAudience=function(e,t,n){return this._engine.joinLivingRoomAsAudience(e,t,n)},e.prototype.quitLivingRoomAsAudience=function(e){return this._engine.quitLivingRoomAsAudience(e)},e.prototype.rtcIdentityChange=function(e,t,n){return this._engine.rtcIdentityChange(e,t,n)},e.prototype.getRTCJoinedUserInfo=function(e){return this._engine.getRTCJoinedUserInfo(e)},e.prototype.requestRoomPK=function(e){return this._engine.requestRoomPK(e)},e.prototype.cancelRoomPK=function(e){return this._engine.cancelRoomPK(e)},e.prototype.responseRoomPK=function(e){return this._engine.responseRoomPK(e)},e.prototype.endRoomPK=function(e){return this._engine.endRoomPK(e)},e.prototype.bindRTCRoomForChatroom=function(e){return this._engine.bindRTCRoomForChatroom(e)},e}();!function(e){e[e.add=1]="add",e[e.update=2]="update",e[e.delete=3]="delete"}(cs||(cs={}))}).call(this,n("4362"))},9093:function(e,t,n){var r=n("ce10"),i=n("e11e").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},9138:function(e,t,n){e.exports=n("35e8")},9152:function(e,t){
- /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
- t.read=function(e,t,n,r,i){var o,s,a=8*i-r-1,c=(1<<a)-1,u=c>>1,l=-7,f=n?i-1:0,h=n?-1:1,d=e[t+f];for(f+=h,o=d&(1<<-l)-1,d>>=-l,l+=a;l>0;o=256*o+e[t+f],f+=h,l-=8);for(s=o&(1<<-l)-1,o>>=-l,l+=r;l>0;s=256*s+e[t+f],f+=h,l-=8);if(0===o)o=1-u;else{if(o===c)return s?NaN:1/0*(d?-1:1);s+=Math.pow(2,r),o-=u}return(d?-1:1)*s*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var s,a,c,u=8*o-i-1,l=(1<<u)-1,f=l>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,p=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=l):(s=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-s))<1&&(s--,c*=2),t+=s+f>=1?h/c:h*Math.pow(2,1-f),t*c>=2&&(s++,c/=2),s+f>=l?(a=0,s=l):s+f>=1?(a=(t*c-1)*Math.pow(2,i),s+=f):(a=t*Math.pow(2,f-1)*Math.pow(2,i),s=0));i>=8;e[n+d]=255&a,d+=p,a/=256,i-=8);for(s=s<<i|a,u+=i;u>0;e[n+d]=255&s,d+=p,s/=256,u-=8);e[n+d-p]|=128*g}},"91ca":function(e,t,n){var r=n("96fb"),i=Math.pow,o=i(2,-52),s=i(2,-23),a=i(2,127)*(2-s),c=i(2,-126),u=function(e){return e+1/o-1/o};e.exports=Math.fround||function(e){var t,n,i=Math.abs(e),l=r(e);return i<c?l*u(i/c/s)*c*s:(t=(1+s/o)*i,n=t-(t-i),n>a||n!=n?l*(1/0):l*n)}},"91dd":function(e,t,n){"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,n,o){t=t||"&",n=n||"=";var s={};if("string"!==typeof e||0===e.length)return s;var a=/\+/g;e=e.split(t);var c=1e3;o&&"number"===typeof o.maxKeys&&(c=o.maxKeys);var u=e.length;c>0&&u>c&&(u=c);for(var l=0;l<u;++l){var f,h,d,p,g=e[l].replace(a,"%20"),v=g.indexOf(n);v>=0?(f=g.substr(0,v),h=g.substr(v+1)):(f=g,h=""),d=decodeURIComponent(f),p=decodeURIComponent(h),r(s,d)?i(s[d])?s[d].push(p):s[d]=[s[d],p]:s[d]=p}return s};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},9253:function(e,t,n){var r=n("86cc"),i=n("11e9"),o=n("38fd"),s=n("69a8"),a=n("5ca1"),c=n("4630"),u=n("cb7c"),l=n("d3f4");function f(e,t,n){var a,h,d=arguments.length<4?e:arguments[3],p=i.f(u(e),t);if(!p){if(l(h=o(e)))return f(h,t,n,d);p=c(0)}if(s(p,"value")){if(!1===p.writable||!l(d))return!1;if(a=i.f(d,t)){if(a.get||a.set||!1===a.writable)return!1;a.value=n,r.f(d,t,a)}else r.f(d,t,c(0,n));return!0}return void 0!==p.set&&(p.set.call(d,n),!0)}a(a.S,"Reflect",{set:f})},9275:function(e,t,n){var r=n("5ca1"),i=n("8b97");i&&r(r.S,"Reflect",{setPrototypeOf:function(e,t){i.check(e,t);try{return i.set(e,t),!0}catch(n){return!1}}})},9278:function(e,t,n){var r=n("5ca1");r(r.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},"92fa":function(e,t){var n=/^(attrs|props|on|nativeOn|class|style|hook)$/;function r(e,t){return function(){e&&e.apply(this,arguments),t&&t.apply(this,arguments)}}e.exports=function(e){return e.reduce((function(e,t){var i,o,s,a,c;for(s in t)if(i=e[s],o=t[s],i&&n.test(s))if("class"===s&&("string"===typeof i&&(c=i,e[s]=i={},i[c]=!0),"string"===typeof o&&(c=o,t[s]=o={},o[c]=!0)),"on"===s||"nativeOn"===s||"hook"===s)for(a in o)i[a]=r(i[a],o[a]);else if(Array.isArray(i))e[s]=i.concat(o);else if(Array.isArray(o))e[s]=[i].concat(o);else for(a in o)i[a]=o[a];else e[s]=t[s];return e}),{})}},9306:function(e,t,n){"use strict";var r=n("8e60"),i=n("c3a1"),o=n("9aa9"),s=n("355d"),a=n("241e"),c=n("335c"),u=Object.assign;e.exports=!u||n("294c")((function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=u({},e)[n]||Object.keys(u({},t)).join("")!=r}))?function(e,t){var n=a(e),u=arguments.length,l=1,f=o.f,h=s.f;while(u>l){var d,p=c(arguments[l++]),g=f?i(p).concat(f(p)):i(p),v=g.length,y=0;while(v>y)d=g[y++],r&&!h.call(p,d)||(n[d]=p[d])}return n}:u},9427:function(e,t,n){var r=n("63b6");r(r.S,"Object",{create:n("a159")})},9447:function(e,t,n){"use strict";(function(e){var r;n.d(t,"a",(function(){return rs})),n.d(t,"b",(function(){return dt})),n.d(t,"c",(function(){return i})),n.d(t,"d",(function(){return yo})),n.d(t,"e",(function(){return b})),n.d(t,"f",(function(){return q})),n.d(t,"g",(function(){return lt})),n.d(t,"h",(function(){return O})),n.d(t,"i",(function(){return ji})),n.d(t,"j",(function(){return he})),n.d(t,"k",(function(){return ct})),n.d(t,"l",(function(){return ae})),n.d(t,"m",(function(){return K})),n.d(t,"n",(function(){return te})),n.d(t,"o",(function(){return ki})),n.d(t,"p",(function(){return oe})),n.d(t,"q",(function(){return re})),n.d(t,"r",(function(){return o})),n.d(t,"s",(function(){return ue})),n.d(t,"t",(function(){return pt})),n.d(t,"u",(function(){return vo})),n.d(t,"v",(function(){return A})),n.d(t,"w",(function(){return Ct})),n.d(t,"x",(function(){return U})),n.d(t,"y",(function(){return V})),n.d(t,"z",(function(){return R})),n.d(t,"A",(function(){return H})),n.d(t,"B",(function(){return F})),n.d(t,"C",(function(){return Ze})),n.d(t,"D",(function(){return j})),n.d(t,"E",(function(){return P})),n.d(t,"F",(function(){return xt})),function(e){e[e.READ=1]="READ",e[e.LISTENED=2]="LISTENED",e[e.DOWNLOADED=4]="DOWNLOADED",e[e.RETRIEVED=8]="RETRIEVED",e[e.UNREAD=0]="UNREAD"}(r||(r={}));var i,o=r,s=["https://nav.cn.ronghub.com","https://nav2-cn.ronghub.com"],a=["wsproxy.cn.ronghub.com","wsap-cn.ronghub.com"],c=["cometproxy-cn.ronghub.com","mini-cn.ronghub.com"],u={"RC:TxtMsg":{isCounted:!0,isPersited:!0},"RC:ImgMsg":{isCounted:!0,isPersited:!0},"RC:VcMsg":{isCounted:!0,isPersited:!0},"RC:ImgTextMsg":{isCounted:!0,isPersited:!0},"RC:FileMsg":{isCounted:!0,isPersited:!0},"RC:HQVCMsg":{isCounted:!0,isPersited:!0},"RC:LBSMsg":{isCounted:!0,isPersited:!0},"RC:PSImgTxtMsg":{isCounted:!0,isPersited:!0},"RC:PSMultiImgTxtMsg":{isCounted:!0,isPersited:!0},"RCJrmf:RpMsg":{isCounted:!0,isPersited:!0},"RCJrmf:RpOpendMsg":{isCounted:!0,isPersited:!0},"RC:CombineMsg":{isCounted:!0,isPersited:!0},"RC:ReferenceMsg":{isCounted:!0,isPersited:!0},"RC:SightMsg":{isCounted:!0,isPersited:!0},"RC:GIFMsg":{isCounted:!0,isPersited:!0},"RC:InfoNtf":{isCounted:!1,isPersited:!0},"RC:ContactNtf":{isCounted:!1,isPersited:!0},"RC:ProfileNtf":{isCounted:!1,isPersited:!0},"RC:CmdNtf":{isCounted:!1,isPersited:!0},"RC:GrpNtf":{isCounted:!1,isPersited:!0},"RC:RcCmd":{isCounted:!1,isPersited:!0},"RC:CmdMsg":{isCounted:!1,isPersited:!1},"RC:TypSts":{isCounted:!1,isPersited:!1},"RC:PSCmd":{isCounted:!1,isPersited:!1},"RC:SRSMsg":{isCounted:!1,isPersited:!1},"RC:RRReqMsg":{isCounted:!1,isPersited:!1},"RC:RRRspMsg":{isCounted:!1,isPersited:!1},"RC:CsChaR":{isCounted:!1,isPersited:!1},"RC:CSCha":{isCounted:!1,isPersited:!1},"RC:CsEva":{isCounted:!1,isPersited:!1},"RC:CsContact":{isCounted:!1,isPersited:!1},"RC:CsHs":{isCounted:!1,isPersited:!1},"RC:CsHsR":{isCounted:!1,isPersited:!1},"RC:CsSp":{isCounted:!1,isPersited:!1},"RC:CsEnd":{isCounted:!1,isPersited:!1},"RC:CsUpdate":{isCounted:!1,isPersited:!1},"RC:ReadNtf":{isCounted:!1,isPersited:!1},"RC:chrmKVNotiMsg":{isCounted:!1,isPersited:!1},"RC:VCAccept":{isCounted:!1,isPersited:!1},"RC:VCRinging":{isCounted:!1,isPersited:!1},"RC:VCSummary":{isCounted:!1,isPersited:!1},"RC:VCHangup":{isCounted:!1,isPersited:!1},"RC:VCInvite":{isCounted:!1,isPersited:!1},"RC:VCModifyMedia":{isCounted:!1,isPersited:!1},"RC:VCModifyMem":{isCounted:!1,isPersited:!1},"RC:MsgExMsg":{isCounted:!1,isPersited:!1},"RC:RRMsg":{isCounted:!1,isPersited:!1},"RC:LogCmdMsg":{isCounted:!1,isPersited:!1},"RC:InterceptMsg":{isCounted:!1,isPersited:!1}},l=["RC:TypSts","RC:InterceptMsg"];!function(e){e.WEBSOCKET="websocket",e.COMET="comet"}(i||(i={}));var f,h=function(e){return f||(f={set:function(t,n){e.localStorage.setItem(t,JSON.stringify(n))},get:function(t){var n;try{n=JSON.parse(e.localStorage.getItem(t))}catch(e){n=null}return n},remove:function(t){return e.localStorage.removeItem(t)},getKeys:function(){var t=[];for(var n in e.localStorage)t.push(n);return t}}),f},d=function(){function e(e){this._caches={},e&&(this._caches=e)}return e.prototype.set=function(e,t){this._caches[e]=t},e.prototype.remove=function(e){var t=this.get(e);return delete this._caches[e],t},e.prototype.get=function(e){return this._caches[e]},e.prototype.getKeys=function(){var e=[];for(var t in this._caches)e.push(t);return e},e}(),p=function(){function e(e,t){var n,r=t?"".concat("RCV4-").concat(t):"RCV4-";this._rootStorage=h(e);var i=this._rootStorage.get(r)||{};this._cache=new d(((n={})[r]=i,n)),this._storageKey=r}return e.prototype._get=function(){var e=this._storageKey;return this._cache.get(e)||{}},e.prototype._set=function(e){var t=this._storageKey;e=e||{},this._cache.set(t,e),this._rootStorage.set(t,e)},e.prototype.set=function(e,t){var n=this._get();n[e]=t,this._set(n)},e.prototype.remove=function(e){var t=this._get();delete t[e],this._set(t)},e.prototype.clear=function(){var e=this._storageKey;this._rootStorage.remove(e),this._cache.remove(e)},e.prototype.get=function(e){return this._get()[e]},e.prototype.getKeys=function(){var e=this._get(),t=[];for(var n in e)t.push(n);return t},e.prototype.getValues=function(){return this._get()||{}},e}(),v=function(e,t){return v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},v(e,t)};function y(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}v(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var m=function(){return m=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},m.apply(this,arguments)};function I(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}function _(e,t){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(i=s.trys,!((i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}}function T(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}(function(e){function t(t){return e.call(this,"TODO => ".concat(t))||this}y(t,e)})(Error);var C,M=function(e,t,n){if(void 0===t||void 0===n)return e.toUpperCase();var r=e.slice(t,n);return e.replace(r,(function(e){return e.toUpperCase()}))},E=function(e,t){void 0===t&&(t="utf-8");var n,r=0;if("utf-16"===t)for(var i=0,o=e.length;i<o;i++)r+=(n=e.charCodeAt(i))<=65535?2:4;else for(i=0,o=e.length;i<o;i++)r+=(n=e.charCodeAt(i))<127?1:n<=2047?2:n<=65535?3:4;return r},A=function(e,t){if(e=e.replace(/\?$/,""),!t)return e;var n=Object.keys(t).map((function(e){return"".concat(e,"=").concat(t[e])})).filter((function(e){return!!e}));return n.length?[e,n.join("&")].join("?"):e},S=function(e){return e.match(/\d+(\.\d+){2}/)[0]};!function(e){e[e.NONE=0]="NONE",e[e.PRIVATE=1]="PRIVATE",e[e.DISCUSSION=2]="DISCUSSION",e[e.GROUP=3]="GROUP",e[e.CHATROOM=4]="CHATROOM",e[e.CUSTOMER_SERVICE=5]="CUSTOMER_SERVICE",e[e.SYSTEM=6]="SYSTEM",e[e.APP_PUBLIC_SERVICE=7]="APP_PUBLIC_SERVICE",e[e.PUBLIC_SERVICE=8]="PUBLIC_SERVICE",e[e.ULTRA_GROUP=10]="ULTRA_GROUP",e[e.RTC_ROOM=12]="RTC_ROOM"}(C||(C={}));var N,b=C;!function(e){e[e.IMAGE=1]="IMAGE",e[e.AUDIO=2]="AUDIO",e[e.VIDEO=3]="VIDEO",e[e.FILE=4]="FILE",e[e.SIGHT=5]="SIGHT",e[e.COMBINE_HTML=6]="COMBINE_HTML"}(N||(N={}));var w,O=N,R=function(e){return"string"==typeof e},D=function(e){return"boolean"==typeof e},L=function(e){return"number"==typeof e&&!isNaN(e)},U=function(e){return-1!==Object.prototype.toString.call(e).indexOf("Array")},x=function(e){return"[object ArrayBuffer]"===Object.prototype.toString.call(e)},P=function(e){return R(e)&&e.length>0},j=function(e){return U(e)&&e.length>0},k=function(e){return"[object Object]"===Object.prototype.toString.call(e)},z=function(e){return"[object Function]"===Object.prototype.toString.call(e)},G=function(e){return void 0===e||"[object Undefined]"===Object.prototype.toString.call(e)},B=function(e){return"[object Null]"===Object.prototype.toString.call(e)},V=function(e){return R(e)&&/https?:\/\//.test(e)},Y=function(e){for(var t in e)return!0;return!1},H=function(e){return L(e)&&Object.prototype.hasOwnProperty.call(b,e)},F=function(e){return L(e)&&Object.prototype.hasOwnProperty.call(O,e)},Q=function(e){var t=!1,n=!1,r=!1;if(k(e)){var i=Object.keys(e).length;for(var o in t=i>20,e)if(n||(n=R(o)&&!/^[A-Za-z0-9_=+-]+$/.test(o)),!r){var s=e[o];r=o.length>32||s.length>4096}}return{isExceedLimit:t,isIllgalEx:n,isExKeyOrValLengthExceedLimit:r}};!function(e){e[e.SEND=1]="SEND",e[e.RECEIVE=2]="RECEIVE"}(w||(w={}));var $,K=w;!function(e){e[e.TIMEOUT=-1]="TIMEOUT",e[e.UNKNOWN=-2]="UNKNOWN",e[e.PARAMETER_ERROR=-3]="PARAMETER_ERROR",e[e.EXTRA_METHOD_UNDEFINED=-4]="EXTRA_METHOD_UNDEFINED",e[e.MAIN_PROCESS_ERROR=-5]="MAIN_PROCESS_ERROR",e[e.PARAMETER_CHANGED=-6]="PARAMETER_CHANGED",e[e.SUCCESS=0]="SUCCESS",e[e.RC_MSG_UNAUTHORIZED=20406]="RC_MSG_UNAUTHORIZED",e[e.RC_DISCUSSION_GROUP_ID_INVALID=20407]="RC_DISCUSSION_GROUP_ID_INVALID",e[e.SEND_FREQUENCY_TOO_FAST=20604]="SEND_FREQUENCY_TOO_FAST",e[e.NOT_IN_DISCUSSION=21406]="NOT_IN_DISCUSSION",e[e.FORBIDDEN_IN_GROUP=22408]="FORBIDDEN_IN_GROUP",e[e.RECALL_MESSAGE=25101]="RECALL_MESSAGE",e[e.NOT_IN_GROUP=22406]="NOT_IN_GROUP",e[e.NOT_IN_CHATROOM=23406]="NOT_IN_CHATROOM",e[e.FORBIDDEN_IN_CHATROOM=23408]="FORBIDDEN_IN_CHATROOM",e[e.RC_CHATROOM_USER_KICKED=23409]="RC_CHATROOM_USER_KICKED",e[e.RC_CHATROOM_NOT_EXIST=23410]="RC_CHATROOM_NOT_EXIST",e[e.RC_CHATROOM_IS_FULL=23411]="RC_CHATROOM_IS_FULL",e[e.RC_CHATROOM_PATAMETER_INVALID=23412]="RC_CHATROOM_PATAMETER_INVALID",e[e.CHATROOM_GET_HISTORYMSG_ERROR=23413]="CHATROOM_GET_HISTORYMSG_ERROR",e[e.CHATROOM_NOT_OPEN_HISTORYMSG_STORE=23414]="CHATROOM_NOT_OPEN_HISTORYMSG_STORE",e[e.CHATROOM_KV_EXCEED=23423]="CHATROOM_KV_EXCEED",e[e.CHATROOM_KV_OVERWRITE_INVALID=23424]="CHATROOM_KV_OVERWRITE_INVALID",e[e.CHATROOM_KV_STORE_NOT_OPEN=23426]="CHATROOM_KV_STORE_NOT_OPEN",e[e.CHATROOM_KEY_NOT_EXIST=23427]="CHATROOM_KEY_NOT_EXIST",
- /*!
- 聊天室设置 KV 失败,出现在两人或者多端同时操作一个 kv。
- 如果出现该错误,为避免和其他端同时操作,请延时一定时间再试
- */
- e[e.CHATROOM_KV_SET_ERROR=23431]="CHATROOM_KV_SET_ERROR",e[e.SENSITIVE_SHIELD=21501]="SENSITIVE_SHIELD",e[e.SENSITIVE_REPLACE=21502]="SENSITIVE_REPLACE",e[e.JOIN_IN_DISCUSSION=21407]="JOIN_IN_DISCUSSION",e[e.CREATE_DISCUSSION=21408]="CREATE_DISCUSSION",e[e.INVITE_DICUSSION=21409]="INVITE_DICUSSION",e[e.GET_USERINFO_ERROR=23407]="GET_USERINFO_ERROR",e[e.REJECTED_BY_BLACKLIST=405]="REJECTED_BY_BLACKLIST",e[e.RC_NET_CHANNEL_INVALID=30001]="RC_NET_CHANNEL_INVALID",e[e.RC_NET_UNAVAILABLE=30002]="RC_NET_UNAVAILABLE",e[e.RC_MSG_RESP_TIMEOUT=30003]="RC_MSG_RESP_TIMEOUT",e[e.RC_HTTP_SEND_FAIL=30004]="RC_HTTP_SEND_FAIL",e[e.RC_HTTP_REQ_TIMEOUT=30005]="RC_HTTP_REQ_TIMEOUT",e[e.RC_HTTP_RECV_FAIL=30006]="RC_HTTP_RECV_FAIL",e[e.RC_NAVI_RESOURCE_ERROR=30007]="RC_NAVI_RESOURCE_ERROR",e[e.RC_NODE_NOT_FOUND=30008]="RC_NODE_NOT_FOUND",e[e.RC_DOMAIN_NOT_RESOLVE=30009]="RC_DOMAIN_NOT_RESOLVE",e[e.RC_SOCKET_NOT_CREATED=30010]="RC_SOCKET_NOT_CREATED",e[e.RC_SOCKET_DISCONNECTED=30011]="RC_SOCKET_DISCONNECTED",e[e.RC_PING_SEND_FAIL=30012]="RC_PING_SEND_FAIL",e[e.RC_PONG_RECV_FAIL=30013]="RC_PONG_RECV_FAIL",e[e.RC_MSG_SEND_FAIL=30014]="RC_MSG_SEND_FAIL",e[e.RC_MSG_CONTENT_EXCEED_LIMIT=30016]="RC_MSG_CONTENT_EXCEED_LIMIT",e[e.RC_CONN_ACK_TIMEOUT=31e3]="RC_CONN_ACK_TIMEOUT",e[e.RC_CONN_PROTO_VERSION_ERROR=31001]="RC_CONN_PROTO_VERSION_ERROR",e[e.RC_CONN_ID_REJECT=31002]="RC_CONN_ID_REJECT",e[e.RC_CONN_SERVER_UNAVAILABLE=31003]="RC_CONN_SERVER_UNAVAILABLE",e[e.RC_CONN_USER_OR_PASSWD_ERROR=31004]="RC_CONN_USER_OR_PASSWD_ERROR",e[e.RC_CONN_NOT_AUTHRORIZED=31005]="RC_CONN_NOT_AUTHRORIZED",e[e.RC_CONN_REDIRECTED=31006]="RC_CONN_REDIRECTED",e[e.RC_CONN_PACKAGE_NAME_INVALID=31007]="RC_CONN_PACKAGE_NAME_INVALID",e[e.RC_CONN_APP_BLOCKED_OR_DELETED=31008]="RC_CONN_APP_BLOCKED_OR_DELETED",e[e.RC_CONN_USER_BLOCKED=31009]="RC_CONN_USER_BLOCKED",e[e.RC_DISCONN_KICK=31010]="RC_DISCONN_KICK",e[e.RC_DISCONN_EXCEPTION=31011]="RC_DISCONN_EXCEPTION",e[e.RC_DISCONN_SAME_CLIENT_ON_LINE=31023]="RC_DISCONN_SAME_CLIENT_ON_LINE",e[e.RC_APP_AUTH_NOT_PASS=31026]="RC_APP_AUTH_NOT_PASS",e[e.RC_OTP_USED=31027]="RC_OTP_USED",e[e.RC_PLATFORM_ERROR=31028]="RC_PLATFORM_ERROR",e[e.RC_QUERY_ACK_NO_DATA=32001]="RC_QUERY_ACK_NO_DATA",e[e.RC_MSG_DATA_INCOMPLETE=32002]="RC_MSG_DATA_INCOMPLETE",e[e.BIZ_ERROR_CLIENT_NOT_INIT=33001]="BIZ_ERROR_CLIENT_NOT_INIT",e[e.BIZ_ERROR_DATABASE_ERROR=33002]="BIZ_ERROR_DATABASE_ERROR",e[e.BIZ_ERROR_INVALID_PARAMETER=33003]="BIZ_ERROR_INVALID_PARAMETER",e[e.BIZ_ERROR_NO_CHANNEL=33004]="BIZ_ERROR_NO_CHANNEL",e[e.BIZ_ERROR_RECONNECT_SUCCESS=33005]="BIZ_ERROR_RECONNECT_SUCCESS",e[e.BIZ_ERROR_CONNECTING=33006]="BIZ_ERROR_CONNECTING",e[e.MSG_ROAMING_SERVICE_UNAVAILABLE=33007]="MSG_ROAMING_SERVICE_UNAVAILABLE",e[e.MSG_INSERT_ERROR=33008]="MSG_INSERT_ERROR",e[e.MSG_DEL_ERROR=33009]="MSG_DEL_ERROR",e[e.TAG_EXISTS=33101]="TAG_EXISTS",e[e.TAG_NOT_EXIST=33100]="TAG_NOT_EXIST",e[e.NO_TAG_IN_CONVER=33102]="NO_TAG_IN_CONVER",e[e.CONVER_REMOVE_ERROR=34001]="CONVER_REMOVE_ERROR",e[e.CONVER_GETLIST_ERROR=34002]="CONVER_GETLIST_ERROR",e[e.CONVER_SETOP_ERROR=34003]="CONVER_SETOP_ERROR",e[e.CONVER_TOTAL_UNREAD_ERROR=34004]="CONVER_TOTAL_UNREAD_ERROR",e[e.CONVER_TYPE_UNREAD_ERROR=34005]="CONVER_TYPE_UNREAD_ERROR",e[e.CONVER_ID_TYPE_UNREAD_ERROR=34006]="CONVER_ID_TYPE_UNREAD_ERROR",e[e.CONVER_CLEAR_ERROR=34007]="CONVER_CLEAR_ERROR",e[e.EXPANSION_LIMIT_EXCEET=34010]="EXPANSION_LIMIT_EXCEET",e[e.MESSAGE_KV_NOT_SUPPORT=34008]="MESSAGE_KV_NOT_SUPPORT",e[e.CLEAR_HIS_TIME_ERROR=34011]="CLEAR_HIS_TIME_ERROR",e[e.CONVER_OUT_LIMIT_ERROR=34013]="CONVER_OUT_LIMIT_ERROR",e[e.CONVER_GET_ERROR=35021]="CONVER_GET_ERROR",e[e.GROUP_SYNC_ERROR=35001]="GROUP_SYNC_ERROR",e[e.GROUP_MATCH_ERROR=35002]="GROUP_MATCH_ERROR",e[e.READ_RECEIPT_ERROR=35003]="READ_RECEIPT_ERROR",e[e.PACKAGE_ENVIRONMENT_ERROR=35006]="PACKAGE_ENVIRONMENT_ERROR",e[e.CAN_NOT_RECONNECT=35007]="CAN_NOT_RECONNECT",e[e.SERVER_UNAVAILABLE=35008]="SERVER_UNAVAILABLE",e[e.HOSTNAME_ERROR=35009]="HOSTNAME_ERROR",e[e.HAS_OHTER_SAME_CLIENT_ON_LINE=35010]="HAS_OHTER_SAME_CLIENT_ON_LINE",e[e.METHOD_NOT_AVAILABLE=35011]="METHOD_NOT_AVAILABLE",e[e.METHOD_NOT_SUPPORT=35012]="METHOD_NOT_SUPPORT",e[e.MSG_LIMIT_ERROR=35013]="MSG_LIMIT_ERROR",e[e.METHOD_ONLY_SUPPORT_ULTRA_GROUP=35014]="METHOD_ONLY_SUPPORT_ULTRA_GROUP",e[e.UPLOAD_FILE_FAILED=35020]="UPLOAD_FILE_FAILED",e[e.CHATROOM_ID_ISNULL=36001]="CHATROOM_ID_ISNULL",e[e.CHARTOOM_JOIN_ERROR=36002]="CHARTOOM_JOIN_ERROR",e[e.CHATROOM_HISMESSAGE_ERROR=36003]="CHATROOM_HISMESSAGE_ERROR",e[e.CHATROOM_KV_NOT_FOUND=36004]="CHATROOM_KV_NOT_FOUND",e[e.BLACK_ADD_ERROR=37001]="BLACK_ADD_ERROR",e[e.BLACK_GETSTATUS_ERROR=37002]="BLACK_GETSTATUS_ERROR",e[e.BLACK_REMOVE_ERROR=37003]="BLACK_REMOVE_ERROR",e[e.DRAF_GET_ERROR=38001]="DRAF_GET_ERROR",e[e.DRAF_SAVE_ERROR=38002]="DRAF_SAVE_ERROR",e[e.DRAF_REMOVE_ERROR=38003]="DRAF_REMOVE_ERROR",e[e.SUBSCRIBE_ERROR=39001]="SUBSCRIBE_ERROR",e[e.NOT_SUPPORT=39002]="NOT_SUPPORT",e[e.QNTKN_FILETYPE_ERROR=41001]="QNTKN_FILETYPE_ERROR",e[e.QNTKN_GET_ERROR=41002]="QNTKN_GET_ERROR",e[e.COOKIE_ENABLE=51001]="COOKIE_ENABLE",e[e.GET_MESSAGE_BY_ID_ERROR=61001]="GET_MESSAGE_BY_ID_ERROR",e[e.HAVNODEVICEID=24001]="HAVNODEVICEID",e[e.DEVICEIDISHAVE=24002]="DEVICEIDISHAVE",e[e.FEILD=24009]="FEILD",e[e.VOIPISNULL=24013]="VOIPISNULL",e[e.NOENGINETYPE=24010]="NOENGINETYPE",e[e.NULLCHANNELNAME=24011]="NULLCHANNELNAME",e[e.VOIPDYANMICERROR=24012]="VOIPDYANMICERROR",e[e.NOVOIP=24014]="NOVOIP",e[e.INTERNALERRROR=24015]="INTERNALERRROR",e[e.VOIPCLOSE=24016]="VOIPCLOSE",e[e.CLOSE_BEFORE_OPEN=51001]="CLOSE_BEFORE_OPEN",e[e.ALREADY_IN_USE=51002]="ALREADY_IN_USE",e[e.INVALID_CHANNEL_NAME=51003]="INVALID_CHANNEL_NAME",e[e.VIDEO_CONTAINER_IS_NULL=51004]="VIDEO_CONTAINER_IS_NULL",e[e.DELETE_MESSAGE_ID_IS_NULL=61001]="DELETE_MESSAGE_ID_IS_NULL",e[e.CANCEL=1]="CANCEL",e[e.REJECT=2]="REJECT",e[e.HANGUP=3]="HANGUP",e[e.BUSYLINE=4]="BUSYLINE",e[e.NO_RESPONSE=5]="NO_RESPONSE",e[e.ENGINE_UN_SUPPORTED=6]="ENGINE_UN_SUPPORTED",e[e.NETWORK_ERROR=7]="NETWORK_ERROR",e[e.REMOTE_CANCEL=11]="REMOTE_CANCEL",e[e.REMOTE_REJECT=12]="REMOTE_REJECT",e[e.REMOTE_HANGUP=13]="REMOTE_HANGUP",e[e.REMOTE_BUSYLINE=14]="REMOTE_BUSYLINE",e[e.REMOTE_NO_RESPONSE=15]="REMOTE_NO_RESPONSE",e[e.REMOTE_ENGINE_UN_SUPPORTED=16]="REMOTE_ENGINE_UN_SUPPORTED",e[e.REMOTE_NETWORK_ERROR=17]="REMOTE_NETWORK_ERROR",e[e.VOIP_NOT_AVALIABLE=18]="VOIP_NOT_AVALIABLE",e[e.CHATROOM_KV_STORE_NOT_ALL_SUCCESS=23428]="CHATROOM_KV_STORE_NOT_ALL_SUCCESS",e[e.CHATROOM_KV_STORE_OUT_LIMIT=23429]="CHATROOM_KV_STORE_OUT_LIMIT"}($||($={}));var W,q=$;!function(e){e[e.CONNECTED=0]="CONNECTED",e[e.CONNECTING=1]="CONNECTING",e[e.DISCONNECTED=2]="DISCONNECTED",e[e.NETWORK_UNAVAILABLE=3]="NETWORK_UNAVAILABLE",e[e.CONNECTION_CLOSED=4]="CONNECTION_CLOSED",e[e.KICKED_OFFLINE_BY_OTHER_CLIENT=6]="KICKED_OFFLINE_BY_OTHER_CLIENT",e[e.WEBSOCKET_UNAVAILABLE=7]="WEBSOCKET_UNAVAILABLE",e[e.WEBSOCKET_ERROR=8]="WEBSOCKET_ERROR",e[e.BLOCKED=9]="BLOCKED",e[e.DOMAIN_INCORRECT=12]="DOMAIN_INCORRECT",e[e.DISCONNECT_BY_SERVER=13]="DISCONNECT_BY_SERVER",e[e.REDIRECT=14]="REDIRECT",e[e.APPKEY_IS_FAKE=20]="APPKEY_IS_FAKE",e[e.FORBID_RECONNECT_BY_OTHER_SAME_CLIENT=31023]="FORBID_RECONNECT_BY_OTHER_SAME_CLIENT",e[e.ULTRALIMIT=1101]="ULTRALIMIT",e[e.REQUEST_NAVI=201]="REQUEST_NAVI",e[e.RESPONSE_NAVI=202]="RESPONSE_NAVI",e[e.RESPONSE_NAVI_ERROR=203]="RESPONSE_NAVI_ERROR",e[e.RESPONSE_NAVI_TIMEOUT=204]="RESPONSE_NAVI_TIMEOUT"}(W||(W={}));var Z,J=W,X={ACCEPTED:0,UNACCEPTABLE_PROTOCOL_VERSION:1,IDENTIFIER_REJECTED:2,SERVER_UNAVAILABLE:3,TOKEN_INCORRECT:4,NOT_AUTHORIZED:5,REDIRECT:6,PACKAGE_ERROR:7,APP_BLOCK_OR_DELETE:8,BLOCK:9,TOKEN_EXPIRE:10,DEVICE_ERROR:11,HOSTNAME_ERROR:12,HASOHTERSAMECLIENTONLINE:13,IN_OTHER_CLUSTER:15,APP_AUTH_NOT_PASS:16,OTP_USED:17,PLATFORM_ERROR:18};!function(e){e.TextMessage="RC:TxtMsg",e.VOICE="RC:VcMsg",e.HQ_VOICE="RC:HQVCMsg",e.IMAGE="RC:ImgMsg",e.GIF="RC:GIFMsg",e.RICH_CONTENT="RC:ImgTextMsg",e.LOCATION="RC:LBSMsg",e.FILE="RC:FileMsg",e.SIGHT="RC:SightMsg",e.COMBINE="RC:CombineMsg",e.CHRM_KV_NOTIFY="RC:chrmKVNotiMsg",e.LOG_COMMAND="RC:LogCmdMsg",e.EXPANSION_NOTIFY="RC:MsgExMsg",e.REFERENCE="RC:ReferenceMsg",e.RECALL="RC:RcCmd",e.READ_RECEIPT="RC:ReadNtf",e.READ_RECEIPT_REQUEST="RC:RRReqMsg",e.READ_RECEIPT_RESPONSE="RC:RRRspMsg",e.SYNC_READ_STATUS="RC:SRSMsg",e.GROUP_READ_RECEIPT_REQUEST="RC:RRMsg",e.CHATROOM_JOIN="RC:ChrmJoinNtf",e.CHATROOM_LEFT="RC:ChrmQuitNtf",e.CHATROOM_MERGE_CHANGE="RC:ChrmMemChange",e.TYPING_STATUS="RC:TypSts",e.INTERCEPT="RC:InterceptMsg"}(Z||(Z={}));var ee,te=Z;!function(e){e[e.OPEN=1]="OPEN",e[e.CLOSE=2]="CLOSE"}(ee||(ee={}));var ne,re=ee;!function(e){e[e.ALL_MESSAGE=-1]="ALL_MESSAGE",e[e.NOT_SET=0]="NOT_SET",e[e.AT_MESSAGE_NOTIFICATION=1]="AT_MESSAGE_NOTIFICATION",e[e.AT_USER_NOTIFICATION=2]="AT_USER_NOTIFICATION",e[e.AT_GROUP_ALL_USER_NOTIFICATION=4]="AT_GROUP_ALL_USER_NOTIFICATION",e[e.NOT_MESSAGE_NOTIFICATION=5]="NOT_MESSAGE_NOTIFICATION"}(ne||(ne={}));var ie,oe=ne;!function(e){e[e.ALL=1]="ALL",e[e.SINGAL=2]="SINGAL"}(ie||(ie={}));var se,ae=ie;!function(e){e[e.QINIU=1]="QINIU",e[e.ALI=2]="ALI",e[e.AWS=3]="AWS",e[e.STC=4]="STC"}(se||(se={}));var ce,ue=se;!function(e){e[e.UPDATE=1]="UPDATE",e[e.DELETE=2]="DELETE"}(ce||(ce={}));var le,fe,he,de,pe=ce;!function(e){e[e.LOG=0]="LOG",e[e.DEBUG=0]="DEBUG",e[e.INFO=1]="INFO",e[e.WARN=2]="WARN",e[e.ERROR=3]="ERROR",e[e.FATAL=4]="FATAL",e[e.STATISTICS=6]="STATISTICS",e[e.NONE=1e3]="NONE"}(le||(le={})),function(e){e.IM="IM",e.RTC="RTC"}(fe||(fe={})),function(e){e.L_IMSDK_VER_O="L-imsdk_ver-O",e.A_INIT_O="A-init-O",e.L_INIT_O="L-init-O",e.P_INIT_O="P-init-O",e.A_CONNECT_T="A-connect-T",e.A_CONNECT_R="A-connect-R",e.A_CONNECT_S="A-connect-S",e.A_DISCONNECT_O="A-disconnect-O",e.A_RECONNECT_T="A-reconnect-T",e.A_RECONNECT_R="A_RECONNECT_R",e.L_CONNECT_T="L-connect-T",e.L_CONNECT_R="L-connect-R",e.L_CONNECT_S="L-connect-S",e.P_CONNECT_O="P-connect-O",e.P_CONNECT_S="P-connect-S",e.A_SEND_MSG_T="A-send_msg-T",e.A_SEND_MSG_R="A-send_msg-R",e.P_SEND_MSG_T="P-send_msg-T",e.P_SEND_MSG_R="P-send_msg-R",e.L_SEND_MSG_T="L-send_msg-T",e.L_SEND_MSG_R="L-send_msg-R",e.L_PULL_MSG_T="L-pull_msg-T",e.L_PULL_MSG_R="L-pull_msg-R",e.L_PULL_ULTRA_MSG_T="L-pull_ultra_msg-T",e.L_PULL_ULTRA_MSG_R="L-pull_ultra_msg-R",e.L_PULL_CHATROOM_KV_T="L-pull_chatroom_kv-T",e.L_PULL_CHATROOM_KV_R="L-pull_chatroom_kv-R",e.L_PULL_CHATROOM_MSG_T="L-pull_chatroom_msg-T",e.L_PULL_CHATROOM_MSG_R="L-pull_chatroom_msg-R",e.A_DELETE_MESSAGES_S="A-delete_messages-S",e.P_DELETE_MSG_S="P-delete_msg-S",e.L_PULL_CONVERSATION_S="L-pull_conversation-S",e.L_RECALL_ULTRA_MSG_S="L-recall_ultra_msg-S",e.A_REGTYP_O="A-regtyp-O",e.P_REGTYP_O="P-regtype-O",e.P_REGTYP_E="P-regtype-E",e.L_GET_NAVI_T="L-get_navi-T",e.L_GET_NAVI_R="L-get_navi-R",e.L_ENV_S="L-Env-S",e.L_GET_INDEX_NAVI_S="L-get_index_navi-S",e.A_JOIN_CHATROOM_T="A-join_chatroom-T",e.A_JOIN_CHATROOM_R="A-join_chatroom-R",e.L_JOIN_CHATROOM_T="L-join_chatroom-T",e.L_JOIN_CHATROOM_R="L-join_chatroom-R",e.A_QUIT_CHATROOM_T="A-quit_chatroom-T",e.A_QUIT_CHATROOM_R="A-quit_chatroom-R",e.L_REJOIN_CHATROOM_T="L-rejoin_chatroom-T",e.L_REJOIN_CHATROOM_R="L-rejoin_chatroom-R",e.L_MEDIA_S="L-media-S",e.L_MEDIA_UPLOAD_T="L-media_upload-T",e.L_MEDIA_UPLOAD_R="L-media_upload-R",e.G_UPLOAD_LOG_S="G-upload_log-S",e.G_UPLOAD_LOG_E="G-upload_log-E",e.G_GET_REAL_TIMELOG_COMMAND_S="G-get_real_timelog_command-S",e.L_CHECK_ALIVE_IM_T="L-check_alive_im-T",e.L_CHECK_ALIVE_IM_R="L-check_alive_im-R",e.A_GET_HISTORY_MSG_T="A-get_history_msg-T",e.A_GET_HISTORY_MSG_R="A-get_history_msg-R",e.L_GET_HISTORY_MSG_T="L-get_history_msg-T",e.L_GET_HISTORY_MSG_R="L-get_history_msg-R",e.A_CALLBACK_O="A-callback-O",e.A_CALLBACK_E="A-callback-E"}(he||(he={})),function(e){e[e.QUIT=0]="QUIT",e[e.JOIN=1]="JOIN"}(de||(de={}));var ge,ve=de;!function(e){
- /*!
- 全局敏感词:命中了融云内置的全局敏感词
- */
- e[e.GLOBAL=1]="GLOBAL",
- /*!
- 自定义敏感词拦截:命中了客户在融云自定义的敏感词
- */
- e[e.CUSTOM=2]="CUSTOM",
- /*!
- 第三方审核拦截:命中了第三方(数美)或模板路由决定不下发的状态
- */
- e[e.THIRD_PARTY=3]="THIRD_PARTY"}(ge||(ge={}));var ye;!function(e){e[e.typing=0]="typing"}(ye||(ye={}));var me,Ie,_e;!function(e){e[e.RTC=0]="RTC",e[e.LIVE=2]="LIVE"}(me||(me={})),function(e){e[e.AUDIO_AND_VIDEO=0]="AUDIO_AND_VIDEO",e[e.AUDIO=1]="AUDIO"}(Ie||(Ie={})),function(e){e[e.ANCHOR=1]="ANCHOR",e[e.AUDIENCE=2]="AUDIENCE"}(_e||(_e={}));var Te,Ce,Me,Ee={"RC:VCAccept":"RC:VCAccept","RC:VCRinging":"RC:VCRinging","RC:VCSummary":"RC:VCSummary","RC:VCHangup":"RC:VCHangup","RC:VCInvite":"RC:VCInvite","RC:VCModifyMedia":"RC:VCModifyMedia","RC:VCModifyMem":"RC:VCModifyMem"};!function(e){e[e.ROOM=1]="ROOM",e[e.PERSON=2]="PERSON"}(Te||(Te={})),function(e){e[e.AnchorToViewer=1]="AnchorToViewer",e[e.ViewerToAnchor=2]="ViewerToAnchor"}(Ce||(Ce={})),function(e){e[e.KICK=0]="KICK",e[e.REFUSE=1]="REFUSE",e[e.COEXIST=2]="COEXIST"}(Me||(Me={}));var Ae="RC_Logs";function Se(e){var t=e.target.result;if(1===e.oldVersion)try{t.deleteObjectStore(Ae)}catch(e){console.warn("version 1 indexDB delete error, name: ".concat(e.name,", message: ").concat(e.message,", stack: ").concat(e.stack))}!function(e,t,n){var r;if(!e.objectStoreNames.contains(t)){var i=m({},n.objectStoreParams);r=e.createObjectStore(t,i),n.indexs&&n.indexs.length>0&&n.indexs.forEach((function(e){r.createIndex(e.indexName,e.key,{unique:e.unique})}))}}(t,Ae,{indexs:[{indexName:"time",key:"time",unique:!1}],objectStoreParams:{autoIncrement:!0}})}var Ne,be=function(){function e(){}return e.init=function(){if("undefined"!=typeof window&&window&&window.indexedDB){if(e.indexDBSwitch&&!e.opening){e.opening=!0;var t=window.indexedDB.open("RC_ENGINE_DB",2);t.onerror=function(t){e.opening=!1,console.warn("open indexDB request failed "+t.target.error)},t.onsuccess=function(t){e.opening=!1,e._db=t.target.result,e._db&&(e._db.onclose=function(t){var n;console.warn("The database ".concat(null===(n=e._db)||void 0===n?void 0:n.name," has unexpectedly closed."),t),e._db=null,e._instance=null},e._db.onerror=function(t){var n;console.warn("The database ".concat(null===(n=e._db)||void 0===n?void 0:n.name," has opening error."),t),e._db=null,e._instance=null},e._db.onabort=function(t){var n;console.warn("The database ".concat(null===(n=e._db)||void 0===n?void 0:n.name," has opening aborted."),t),e._db=null,e._instance=null}),e._instance=new e},t.onupgradeneeded=function(t){e.opening=!1,e._db=t.target.result,Se(t)}}}else console.debug("IndexDB is not currently supported in the environment!")},e.getInstance=function(){return e._instance},e.prototype.addList=function(t,n){return new Promise((function(r){if(e._db){var i=e._db.transaction([t],"readwrite"),o=i.objectStore(t);n.forEach((function(e){null==o||o.add(e)})),i.oncomplete=function(e){r(!0)},i.onerror=function(e){r(!1)}}else r(!1)}))},e.prototype.getRangeData=function(t,n,r,i){return new Promise((function(o){if(e._db){var s=e._db.transaction([t],"readwrite").objectStore(t),a=IDBKeyRange.bound(r,i),c=s.index(n),u=[],l=c.openCursor(a);l.onsuccess=function(e){var t=e.target.result;t?(u.push(t.value),t.continue()):o(u)},l.onerror=function(e){console.error(e),o([])}}else o([])}))},e.prototype.getCount=function(t,n){return new Promise((function(n){if(e._db){var r=e._db.transaction([t],"readonly").objectStore(t).count();r.onsuccess=function(){n(r.result)},r.onerror=function(e){console.error(e),n(0)}}else n(0)}))},e.prototype.removeFirstData=function(t,n,r){return new Promise((function(n){if(e._db){var i=e._db.transaction([t],"readwrite").objectStore(t),o=i.getAllKeys(IDBKeyRange.lowerBound(0),r);o.onsuccess=function(){var e=o.result;e.length>0&&(i.delete(IDBKeyRange.bound(e[0],e[e.length-1])).onsuccess=function(){n(!0)})}}else n(!1)}))},e._db=null,e.indexDBSwitch=!0,e.opening=!1,e}(),we=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))},Oe=function(){var e=we();if(e=e.replace(/-/g,"")+"a",(e=function(e){var t="0123456789abcdefghigklmnopqrstuvwxyzABCDEFGHIGKLMNOPQRSTUVWXYZa0".split(""),n=t.length+1,r=+e,i=[];do{var o=r%n;r=(r-o)/n,i.unshift(t[o])}while(r);return i.join("")}(e=parseInt(e,16))).length>22&&(e=e.slice(0,22)),e.length<22)for(var t=22-e.length,n=0;n<t;n++)e+="0";return e},Re=Oe(),De={};function Le(e){return 4-e}console&&((Ne={})[le.DEBUG]=console.debug.bind(console),Ne[le.INFO]=console.info.bind(console),Ne[le.WARN]=console.warn.bind(console),Ne[le.ERROR]=console.error.bind(console),Ne[le.FATAL]=console.log.bind(console),De=Ne);var Ue=[],xe=function(e){return R(e)||L(e)||G(e)||D(e)?e:e instanceof Error?JSON.stringify({name:e.name,message:e.message,stack:e.stack}):JSON.stringify(e)};function Pe(e,t,n,r){t=/^[\w]+-[\w]+-[\w]+?/.test(t)?t:"L-".concat(t,"-O"),r||(r=["RCRTCLog","RCCall","RCRTC","RTC-A"].includes(t)?fe.RTC:fe.IM);var i=Date.now(),o="";try{o=(o=JSON.stringify({message:n,userId:ke.userId})).replace(/"/g,'""'),o='"'.concat(o,'"')}catch(e){We(he.G_UPLOAD_LOG_E,{name:e.name,message:e.message,stack:e.stack})}E(o)>=1e3&&(o=function(e,t,n){if(void 0===n&&(n="utf-8"),!e||!t)return"";var r="utf-8"===n?3:2,i=0,o=0,s="";for(o=0;o<e.length;o++){if(e.charCodeAt(o)>255?i+=r:i++,i>t)return s;s+=e.charAt(o)}return e}(o,1e3));var s=Le(e),a={sessionId:Re,time:i,level:s,content:"".concat(Re,",").concat(Date.now(),",").concat(r,",").concat(s,",").concat(t,",").concat(o,"\n"),userId:ke.userId};return Ue.push(a),a}function je(e,t,n){console&&De[e]&&De[e]("".concat(t,":"),n)}var ke={localLogLevel:le.WARN,userId:""},ze=-1;ze>=0&&(clearInterval(ze),ze=-1),"undefined"!=typeof window&&window&&window.indexedDB&&(ze=setInterval((function(){Ue.length&&function(e){return I(this,void 0,void 0,(function(){var t,n,r;return _(this,(function(i){switch(i.label){case 0:if(!(t=be.getInstance()))return[3,6];i.label=1;case 1:return i.trys.push([1,4,,5]),[4,t.addList(Ae,e)];case 2:return n=i.sent(),[4,t.getCount(Ae,"time")];case 3:return i.sent()>1e5&&t.removeFirstData(Ae,"time",2e3),[2,n];case 4:return r=i.sent(),We(he.G_UPLOAD_LOG_E,{name:r.name,message:r.message,stack:r.stack}),[2,!1];case 5:return[3,7];case 6:return be.init(),[2,!1];case 7:return[2]}}))}))}(Ue.slice()).then((function(e){e&&(Ue=[])}))}),3e3));var Ge=Date.now(),Be=0;function Ve(){var e=Date.now();return Ge!==e&&(Ge=e,Be=0),"".concat(Ge,"-").concat(Be++)}function Ye(e){!e.customLogPrint&&delete e.customLogPrint,ke=Object.assign(ke,e)}function He(e,t,n,r){if(void 0===n&&(n={}),void 0===r&&(r={}),e>le.DEBUG&&(r&&(n=Object.assign(n,r)),Pe(e,t,n,null==r?void 0:r.logSource)),e>=ke.localLogLevel){var i="".concat((new Date).toISOString(),"[").concat(t,"][").concat(le[e],"]"),o="".concat(i," - ").concat(xe(n));ke.customLogPrint?ke.customLogPrint(e,o):je(e,i,xe(n))}}var Fe,Qe=He.bind(null,le.DEBUG),$e=He.bind(null,le.INFO),Ke=He.bind(null,le.WARN),We=He.bind(null,le.ERROR),qe=He.bind(null,le.FATAL),Ze=Object.freeze({__proto__:null,sessionId:Re,logLevelTransformer:Le,formatLogObj:xe,insertIntoLogCache:Pe,_defaultStdout:je,ID:Ve,init:Ye,log:He,debug:Qe,info:$e,warn:Ke,error:We,fatal:qe}),Je=function(e){if("browser"!==e.tag)return{type:e.tag,version:"UnKonw"};var t,n,r=navigator.userAgent,i={IE:/rv:([\d.]+)\) like Gecko|MSIE ([\d.]+)/,Edge:/Edge\/([\d.]+)/,Firefox:/Firefox\/([\d.]+)/,Opera:/(?:OPERA|OPR).([\d.]+)/,WeChat:/MicroMessenger\/([\d.]+)/,QQBrowser:/QQBrowser\/([\d.]+)/,Chrome:/Chrome\/([\d.]+)/,Safari:/Version\/([\d.]+).*Safari/,iOSChrome:/Mobile\/([\d.]+).*Safari/};for(var o in i)if(i.hasOwnProperty(o)){var s=r.match(i[o]);if(s){n=o,t=s[1]||s[2];break}}return{type:n||"UnKonw",version:t||"UnKonw"}},Xe=function(e){var t="RCDeviceId",n=h(e),r="",i=n.get(t);return i?r=i:(r=Oe(),n.set(t,r)),r},et=function(){function e(){}return e.compress=function(e){for(var t=this,n={},r=0;r<e.length-1;r++){var i=e.charAt(r)+e.charAt(r+1);n.hasOwnProperty(i)?n[i].push(r):n[i]=[r]}for(var o=[],s=[],a=function(){if(s.length>0){var e=s.join("");if(s=[],e.length>26){var n=t.numberEncode(e.length),r=String.fromCharCode(t.dataType.NormalExt|n.length);o.push(r+n)}else{var i=String.fromCharCode(t.dataType.Normal|e.length);o.push(i)}o.push(e)}},c=0;c<e.length;){var u=t.indexOf(n,e,c);if(u.length<2)s.push(e.charAt(c++));else if(u.length<4)s.push(e.substr(c,u.length)),c+=u.length;else{var l=t.numberEncode(c-u.offset),f=t.numberEncode(u.length);if(l.length+f.length>=u.length)s.push(e.substr(c,u.length)),c+=u.length;else{a();var h=String.fromCharCode(t.dataType.Compressed|l.length<<2|f.length);o.push(h+l+f),c+=u.length}}}a();var d=t.numberEncode(e.length),p=String.fromCharCode(t.dataType.Tail|d.length);return o.push(p+d),o.join("")},e.uncompress=function(e){var t=this,n=0,r="";e:do{var i=e.charCodeAt(n++),o=i&t.dataType.Mark,s=15&i,a=void 0;switch(o){case t.dataType.Compressed:var c=s>>2,u=3&s;if(0===c||0===u)throw new Error("Data parsing error,at "+n);var l=t.numberDecode(e.substr(n,c)),f=t.numberDecode(e.substr(n+=c,u));if((l=r.length-l)+f>r.length)throw new Error("Data parsing error,at "+n);n+=u,r+=r.substr(l,f);break;case t.dataType.Tail:if((a=t.numberDecode(e.substr(n,s)))!==r.length)throw console.log(r.length),console.log(a),new Error("Data parsing error,at "+n);n+=s;break e;case t.dataType.NormalExt:a=t.numberDecode(e.substr(n,s)),r+=e.substr(n+=s,a),n+=a;break;case t.dataType.Normal:r+=e.substr(n,s),n+=s;break;case t.dataType.Mark:if(s>10)throw new Error("Data parsing error,at "+n);r+=e.substr(n,16+s),n+=16+s;break;default:throw new Error("Data parsing error,at "+n+" header:"+o)}}while(n<e.length);return r},e.indexOf=function(e,t,n){var r={length:0,offset:-1};if(t.length,n>=t.length-1)return r;var i=e[t.charAt(n)+t.charAt(n+1)];if(i[0]===n)return r;for(var o=t.length-n,s=0,a=i.length;s<a;s++){var c=i[s],u=n-c;if(!(u>this.max)){var l=Math.min(o,u);if(l<=r.length)break;if(!(r.length>2&&t.charAt(c+r.length-1)!==t.charAt(n+r.length-1))){for(var f=2,h=f;h<l&&t.charAt(c+h)===t.charAt(n+h);h++)f++;f>=r.length&&(r.length=f,r.offset=c)}}}return r},e.numberEncode=function(e){var t=this,n=[],r=0;do{r=e%t.scale,n.push(t.chars.charAt(r)),e=(e-r)/t.scale}while(e>0);return n.join("")},e.numberDecode=function(e){for(var t=0,n=0,r=e.length-1;r>=0;r--){if(-1===(n=this.chars.indexOf(e.charAt(r))))throw new Error('decode number error, data is "'+e+'"');t=t*this.scale+n}return t},e.dataType={Tail:48,Compressed:64,NormalExt:80,Normal:96,Mark:112},e.chars="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",e.scale=e.chars.length,e.max=238327,e}(),tt=function(e){return R(e)&&/https?:\/\//.test(e)},nt=function(){function e(e){this.info=e,this.logUrl="logcollection.ronghub.com",this.level=1,this.itv=30,this.times=5,this.deviceId="",this.deviceInfo="",this.logSwitch=0,this.logUrl=e.logPolicy.url||this.logUrl,this.level=e.logPolicy.level||this.level,this.itv=e.logPolicy.itv||this.itv,this.times=e.logPolicy.times||this.times,this.deviceId=Xe(e.runtime),this.logSwitch=e.logSwitch;var t=Je(e.runtime);this.deviceInfo="".concat(t.type,"|").concat(t.version,"|").concat(null==e?void 0:e.sessionId)}return e.prototype.updateUploadLogAttr=function(e){var t=e.logPolicy,n=e.logSwitch,r=e.runtime,i=e.sessionId,o=void 0===i?"":i,s=e.userId;if(t){var a=t.url,c=t.level,u=t.itv,l=t.times;this.logUrl=a||this.logUrl,this.level=c||this.level,this.itv=u||this.itv,this.times=l||this.times}if(n&&(this.logSwitch=n),r){this.deviceId=Xe(r);var f=Je(r);this.deviceInfo="".concat(f.type,"|").concat(f.version,"|").concat(o)}s&&(this.info.userId=s)},e.init=function(t){return e.reportSwitch=!0,e._instance||(e._instance=new e(t)),e._instance},e.getInstance=function(){return e._instance},e.prototype.reportRealtimeLog=function(t){var n=this;if(0===t.length||!this.logUrl)return Promise.resolve();var r=et.compress(t.map((function(e){return e.content})).join("")),i=tt(this.logUrl)?"":"https://",o="".concat(i).concat(this.logUrl,"?version=").concat(this.info.version,"&appkey=").concat(this.info.appkey,"&userId=").concat(this.info.userId,"&deviceId=").concat(this.deviceId,"&deviceInfo=").concat(this.deviceInfo,"&platform=Web");return this.info.runtime.httpReq({method:"POST",url:o,body:r}).then((function(t){var r=t.data;r&&(r=JSON.parse(r),n.itv=r.nextTime,n.level=r.level,n.logSwitch=r.logSwitch,e.currentRTTimes=1)}))},e.prototype.reportFullLog=function(t){return I(this,void 0,void 0,(function(){var n,r,i,o,s,a,c,u,l,f,h=this;return _(this,(function(d){switch(d.label){case 0:return n=t.startTime,r=t.endTime,i=t.platform,o=t.logId,s=t.uri,a=be.getInstance(),"web"===i.toLowerCase()&&a?n>r?[2]:[4,a.getRangeData(Ae,"time",n,r)]:[2];case 1:return c=(c=d.sent()).filter((function(e){return!e.userId||e.userId===h.info.userId})),u=et.compress(c.map((function(e){return e.content})).join("")||"no data"),l=1,f=function(){if(l>3||!e.reportSwitch)return Promise.resolve();var t=s||h.logUrl,n=tt(t)?"":"https://",r="".concat(n).concat(t,"?version=").concat(h.info.version,"&appkey=").concat(h.info.appkey,"&userId=").concat(h.info.userId,"&logId=").concat(o,"&deviceId=").concat(h.deviceId,"&deviceInfo=").concat(h.deviceInfo,"&platform=Web"),i=5e3*(l-1);return l++,new Promise((function(t,n){setTimeout((function(){e.reportSwitch&&h.info.runtime.httpReq({url:r,method:"POST",body:u}).then((function(){t()})).catch((function(e){n(e),f()}))}),i)}))},[2,f()]}}))}))},e.prototype.distroy=function(){e.currentRTTimes=1,e.reportSwitch=!1},e.currentRTTimes=1,e.reportSwitch=!1,e}(),rt=[],it=-1;function ot(e){Fe&&Fe.updateUploadLogAttr(e)}function st(e,t,n,r){Pe(4-e,t,n);var i=JSON.stringify({message:n});i=i.replace(/"/g,'""'),i='"'.concat(i,'"');var o={level:e,content:[Re,Date.now(),r||fe.IM,e,t,i].join()+"\n"};rt.push(o),rt.length>=600&&(rt=rt.slice(-500))}function at(){if(it>=0&&(clearTimeout(it),it=-1),Fe&&Fe.logSwitch&&nt.reportSwitch){var e=Fe.itv*Math.pow(2,nt.currentRTTimes-1);nt.currentRTTimes<Fe.times&&nt.currentRTTimes++,it=setTimeout((function(){var e=rt.filter((function(e){return e.level<=Fe.level}));0===e.length?at():Fe.reportRealtimeLog(e).then((function(){rt=[],$e(he.G_UPLOAD_LOG_S,"report real-time log success"),at()})).catch((function(e){$e(he.G_UPLOAD_LOG_E,"report real-time log error -> "+e),at()}))}),1e3*e)}}var ct=function(){function e(e,t,n){this.tagId=e,this.logSource=t,this.initiator=n,this._localLogLevel=le.WARN,this.debug=this.log.bind(this,le.DEBUG),this.info=this.log.bind(this,le.INFO),this.warn=this.log.bind(this,le.WARN),this.error=this.log.bind(this,le.ERROR),this.fatal=this.log.bind(this,le.FATAL),this.reportLog=st}return e.prototype.setLogLevel=function(e){this._localLogLevel="number"!=typeof e?le.WARN:e},e.prototype.setLogStdout=function(e){this._customLogPrint=e},e.prototype.log=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(e>le.DEBUG&&Pe(e,this.tagId,t.map(xe).join(" ")),!(e<this._localLogLevel)){var r="".concat((new Date).toISOString(),"[").concat(this.tagId,"][").concat(le[e],"]"),i="".concat(r," - ").concat(t.map(xe).join(" "));this._customLogPrint?this._customLogPrint(e,i):this._stdout?this._stdout(e,i):je.apply(void 0,T([e,r],t,!1))}},e.prototype.set=function(e,t){this.warn("logger.set has being deprecated!")},e.prototype.setStdout=function(e){this._stdout=e},e}(),ut=new ct("RCEngine"),lt=function(){function e(){this._map={}}return e.prototype.on=function(e,t,n){var r=this._map[e]||(this._map[e]=[]);r.some((function(e){return e.listener===t&&e.target===n}))||r.push({listener:t,target:n})},e.prototype.once=function(e,t,n){var r=this._map[e]||(this._map[e]=[]);r.some((function(e){return e.listener===t&&e.target===n}))||r.push({listener:t,target:n,once:!0})},e.prototype.off=function(e,t,n){var r=this._map[e];r&&((r=r.filter((function(e){return e.listener!==t||e.target!==n}))).length?this._map[e]=r:delete this._map[e])},e.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=this._map[e];if(r)for(var i=r.length-1;i>=0;i-=1){var o=r[i],s=o.target,a=o.once,c=o.listener;a&&r.splice(i,1);try{c.call.apply(c,T([s],t,!1))}catch(e){ut.error(e)}}},e.prototype.removeAll=function(e){delete this._map[e]},e.prototype.clear=function(){Object.keys(this._map).forEach(this.removeAll,this)},e}(),ft="undefined"!=typeof window&&window?(window.__RCVersionInfo||(window.__RCVersionInfo={}),window.__RCVersionInfo):{};ft.engine="5.3.4";var ht,dt,pt=function(){function e(){}return e.add=function(e,t){ft[e]=t},e.validEngine=function(e){var t=e.match(/\d+\.\d+\.\d+/);if(!t)return ut.warn("The validation engine version '".concat(e,"' is invalid!")),!1;var n=t[0].split(".").map((function(e){return e.padStart(3,"0")})).join("");return ft.engine.match(/\d+\.\d+\.\d+/)[0].split(".").map((function(e){return e.padStart(3,"0")})).join("")>=n},e.getInfo=function(){return ft},e}();!function(e){e[e.STRING=0]="STRING",e[e.ONLY_STRING=1]="ONLY_STRING",e[e.NUMBER=2]="NUMBER",e[e.BOOLEAN=3]="BOOLEAN",e[e.OBJECT=4]="OBJECT",e[e.ARRAY=5]="ARRAY",e[e.CALLBACK=6]="CALLBACK",e[e.CHANNEL_ID=7]="CHANNEL_ID"}(dt||(dt={}));var gt,vt,yt,mt,It,_t=((ht={})[dt.STRING]=P,ht[dt.ONLY_STRING]=R,ht[dt.NUMBER]=L,ht[dt.BOOLEAN]=function(e){return"boolean"==typeof e},ht[dt.OBJECT]=k,ht[dt.ARRAY]=U,ht[dt.CALLBACK]=function(e){var t=!0;return k(e)||(t=!1),(e=e||{}).onSuccess&&!z(e.onSuccess)&&(t=!1),e.onError&&!z(e.onError)&&(t=!1),t},ht[dt.CHANNEL_ID]=function(e){var t=!1;return R(e)&&!/_/g.test(e)&&e.length<=20&&(t=!0),t},ht),Tt=function(e){function t(t){var n=e.call(this,t)||this;return n.name="RCAssertError",n}return y(t,e),t}(Error),Ct=function(e,t,n,r){if(void 0===r&&(r=!1),!Mt(e,t,n,r))throw new Tt("'".concat(e,"' is invalid: ").concat(JSON.stringify(t)))},Mt=function(e,t,n,r){void 0===r&&(r=!1),n=_t[n]||n;var i=r&&!n(t)||!r&&!(G(t)||null===t||n(t));return i&&ut.error("'".concat(e,"' is invalid: ").concat(JSON.stringify(t))),!i},Et=function(e){if(!k(e)||void 0===e.low||void 0===e.high)return e;var t=e.low;return t<0&&(t+=4294967296),t=t.toString(16),parseInt(e.high.toString(16)+"00000000".replace(new RegExp("0{"+t.length+"}$"),t),16)},At=function(e,t){var n=Math.floor(1e3*Math.random()%1e4),r=we(),i=function(e){e=e||"-";var t=new Date,n=t.getFullYear(),r=t.getMonth()+1,i=t.getDate();return"".concat(n).concat(e).concat(r).concat(e).concat(i)}(),o=(new Date).getTime(),s="";if(t){var a=t.split(".");s="."+a[a.length-1]}return"".concat(e,"__RC-").concat(i,"_").concat(n,"_").concat(o).concat(r).concat(s)},St=function(e,t){void 0===e&&(e={}),void 0===t&&(t={});var n=e.threadId,r=e.apnsCollapseId,i=e.category,o=e.richMediaUri,s=t.channelIdMi,a=t.channelIdHW,c=t.channelIdOPPO,u=t.typeVivo,l=t.googleConfig,f={};f["thread-id"]=n||"",f["apns-collapse-id"]=r||"",f.category=i||"",f.richMediaUri=o||"";var h={};h.collapse_key=null==l?void 0:l.collapseKey,h.imageUrl=null==l?void 0:l.imageUrl;var d=null==l?void 0:l.priority;d&&!["high","normal"].includes(d)&&(d="normal"),h.priority=d;var p=[{HW:{channelId:a||""}},{MI:{channelId:s||""}},{OPPO:{channelId:c||""}},{VIVO:{classification:u||""}},{APNS:f},{FCM:h}];return JSON.stringify(p)},Nt=function(e,t){var n={},r={notificationId:t||""};if(!e)return{iOSConfig:n,androidConfig:r};try{var i=JSON.parse(e);null==i||i.forEach((function(e){var t,i,o,s,a=Object.keys(e);if(0!==a.length){var c=a[0];switch(c){case"HW":return void(r.channelIdHW=null===(t=e[c])||void 0===t?void 0:t.channelId);case"MI":return void(r.channelIdMi=null===(i=e[c])||void 0===i?void 0:i.channelId);case"OPPO":return void(r.channelIdOPPO=null===(o=e[c])||void 0===o?void 0:o.channelId);case"VIVO":return void(r.typeVivo=null===(s=e[c])||void 0===s?void 0:s.classification);case"APNS":return n.threadId=e[c]["thread-id"],n.apnsCollapseId=e[c]["apns-collapse-id"],n.category=e[c].category,void(n.richMediaUri=e[c].richMediaUri);case"FCM":r.googleConfig={collapseKey:e[c].collapse_key||"",imageUrl:e[c].imageUrl||"",priority:e[c].priority||""}}}}))}catch(t){ut.error("Wrong format for pushConfigs field! content: "+e)}return{iOSConfig:n,androidConfig:r}},bt=function(e){var t=/^[A-Za-z0-9_=+-]+$/.test(e),n=e.length;return t&&n<=128&&n>=1},wt=function(e){var t=e.length;return t<=4096&&t>=1},Ot=function(e,t,n){t=t||function(){};var r=(n=n||{}).isReverse;k(e)&&function(){for(var n in e)t(e[n],n,e)}(),(U(e)||R(e))&&function(){if(r)for(var n=e.length-1;n>=0;n--)t(e[n],n);else for(var i=0,o=e.length;i<o;i++)t(e[i],i)}()},Rt=function(e,t){return Ot(e,(function(n,r){e[r]=t(n,r)})),e},Dt=function(e,t){if(e.indexOf)return e.indexOf(t);var n=-1;return Ot(e,(function(e,r){t===e&&(n=r)})),n},Lt=function(e,t){var n=[];return Ot(e,(function(e){n.push(e)})),-1!==Dt(n,t)},Ut=function(e){return JSON.parse(JSON.stringify(e))},xt=function(){return"undefined"!=typeof RCCppEngine},Pt=function(e){switch(e){case X.SERVER_UNAVAILABLE:return q.SERVER_UNAVAILABLE;case X.TOKEN_INCORRECT:return q.RC_CONN_USER_OR_PASSWD_ERROR;case X.REDIRECT:return q.RC_CONN_REDIRECTED;case X.APP_BLOCK_OR_DELETE:return q.RC_CONN_APP_BLOCKED_OR_DELETED;case X.BLOCK:return q.RC_CONN_USER_BLOCKED;case X.TOKEN_EXPIRE:return q.RC_CONN_USER_OR_PASSWD_ERROR;case X.HOSTNAME_ERROR:return q.HOSTNAME_ERROR;case X.HASOHTERSAMECLIENTONLINE:return q.HAS_OHTER_SAME_CLIENT_ON_LINE;case X.APP_AUTH_NOT_PASS:return q.RC_APP_AUTH_NOT_PASS;case X.OTP_USED:return q.RC_OTP_USED;case X.PLATFORM_ERROR:return q.RC_PLATFORM_ERROR;default:return q.RC_NET_UNAVAILABLE}},jt=function(e){var t;if("object"==typeof e&&null!==e)if(Array.isArray(e))for(var n in t=[],e)t.push(jt(e[n]));else for(var n in t={},e)t[n]=jt(e[n]);else t=e;return t},kt=function(e){var t;try{t=jt(e)}catch(o){ut.error("clone err:",o),t=JSON.parse(JSON.stringify(e))}return t},zt=function(e){var t={},n=JSON.parse(e);return Ot(n,(function(e,n){t[n]=e.v})),t},Gt={_delayTime:0,setTime:function(e){var t=(new Date).getTime();Gt._delayTime=t-e},getTime:function(){var e=Gt._delayTime;return(new Date).getTime()-e}},Bt=function(e,t){var n=0;return e.isAutoDelete&&(n|=1),e.isOverwrite&&(n|=2),2===t&&(n|=4),n};!function(e){e[e.AT_MOST_ONCE=0]="AT_MOST_ONCE",e[e.AT_LEAST_ONCE=1]="AT_LEAST_ONCE",e[e.EXACTLY_ONCE=2]="EXACTLY_ONCE",e[e.DEFAULT=3]="DEFAULT"}(gt||(gt={})),function(e){e[e.SYMMETRIC=0]="SYMMETRIC",e[e.CONNECT=1]="CONNECT",e[e.CONN_ACK=2]="CONN_ACK",e[e.PUBLISH=3]="PUBLISH",e[e.PUB_ACK=4]="PUB_ACK",e[e.QUERY=5]="QUERY",e[e.QUERY_ACK=6]="QUERY_ACK",e[e.QUERY_CONFIRM=7]="QUERY_CONFIRM",e[e.SUBSCRIBE=8]="SUBSCRIBE",e[e.SUB_ACK=9]="SUB_ACK",e[e.UNSUBSCRIBE=10]="UNSUBSCRIBE",e[e.UNSUB_ACK=11]="UNSUB_ACK",e[e.PING_REQ=12]="PING_REQ",e[e.PING_RESP=13]="PING_RESP",e[e.DISCONNECT=14]="DISCONNECT",e[e.RESERVER2=15]="RESERVER2"}(vt||(vt={})),function(e){e.CONN_ACK="ConnAckMessage",e.DISCONNECT="DisconnectMessage",e.PING_REQ="PingReqMessage",e.PING_RESP="PingRespMessage",e.PUBLISH="PublishMessage",e.PUB_ACK="PubAckMessage",e.QUERY="QueryMessage",e.QUERY_CON="QueryConMessage",e.QUERY_ACK="QueryAckMessage"}(yt||(yt={})),function(e){e.PUB="pub",e.QUERY="qry"}(mt||(mt={})),function(e){e[e.V4=4]="V4",e[e.V3=3]="V3"}(It||(It={}));var Vt,Yt=function(){function e(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=gt.AT_LEAST_ONCE),void 0===r&&(r=!1),this._retain=!1,this.qos=gt.AT_LEAST_ONCE,this._dup=!1,this.syncMsg=!1;var i=e>0;e&&i&&1===arguments.length?(this._retain=(1&e)>0,this.qos=(6&e)>>1,this._dup=(8&e)>0,this.type=e>>4&15,this.syncMsg=8==(8&e)):(this.type=e,this._retain=t,this.qos=n,this._dup=r)}return e.prototype.encode=function(){var e=this.type<<4;return e|=this._retain?1:0,e|=this.qos<<1,e|(this._dup?8:0)},e}(),Ht=function(){function e(){}return e.writeUTF=function(e,t){var n=[],r=0;if(R(e))for(var i=0,o=e.length;i<o;i++){var s=e.charCodeAt(i);s>=0&&s<=127?(r+=1,n.push(s)):s>=128&&s<=2047?(r+=2,n.push(192|31&s>>6),n.push(128|63&s)):s>=2048&&s<=65535&&(r+=3,n.push(224|15&s>>12),n.push(128|63&s>>6),n.push(128|63&s))}for(i=0,o=n.length;i<o;i++)n[i]>255&&(n[i]&=255);return t?n:r<=255?[0,r].concat(n):[r>>8,255&r].concat(n)},e.readUTF=function(e){for(var t,n,r=[],i=-1,o=e,s="";++i<o.length;){var a=Number(o[i]);if(a===(127&a)||(240==(240&a)?a=(a=(a=(a^=240)<<6|128^o[++i])<<6|128^o[++i])<<6|128^o[++i]:224==(224&a)?a=(a=(a^=224)<<6|128^o[++i])<<6|128^o[++i]:192==(192&a)&&(a=(a^=192)<<6|128^o[++i])),!isFinite(a)||a<0||a>1114111||Math.floor(a)!==a)throw RangeError("Invalid code point: "+a);a<=65535?r.push(a):(t=(a-=65536)>>10|55296,n=a%1024|56320,r.push(t,n)),(i+1===o.length||r.length>16384)&&(s+=String.fromCharCode.apply(null,r),r.length=0)}return s},e}(),Ft=function(){function e(e){this._position=0,this._poolLen=0,this._pool=e,this._poolLen=e.length}return e.prototype.check=function(){return this._position>=this._pool.length},e.prototype.read2Byte=function(){var e=this;if(e.check())return-1;for(var t="",n=0;n<2;n++){var r=e._pool[e._position++].toString(16);1===r.length&&(r="0"+r),t+=r.toString()}return parseInt(t,16)},e.prototype.readInt=function(){var e=this;if(e.check())return-1;for(var t="",n=0;n<4;n++){var r=e._pool[e._position++].toString(16);1===r.length&&(r="0"+r),t+=r.toString()}return parseInt(t,16)},e.prototype.readLong=function(){var e=this;if(e.check())return-1;for(var t="",n=0;n<8;n++){var r=e._pool[e._position++].toString(16);1===r.length&&(r="0"+r),t+=r}return parseInt(t,16)},e.prototype.readByte=function(){if(this.check())return-1;var e=this._pool[this._position++];return e>255&&(e&=255),e},e.prototype.readUTF=function(){if(this.check())return"";var e=this.readByte()<<8|this.readByte(),t=this._pool.subarray(this._position,this._position+=e);return Ht.readUTF(t)},e.prototype.readAll=function(){return this._pool.subarray(this._position,this._poolLen)},e}(),Qt=function(){function e(){this._pool=[],this._position=0,this._writen=0}return e.prototype.write=function(e){return-1!==Object.prototype.toString.call(e).indexOf("Array")?this._pool=this._pool.concat(e):e>=0&&(e>255&&(e&=255),this._pool.push(e),this._writen++),e},e.prototype.writeArr=function(e){return this._pool=this._pool.concat(e),e},e.prototype.writeUTF=function(e){var t=Ht.writeUTF(e);this._pool=this._pool.concat(t),this._writen+=t.length},e.prototype.getBytesArray=function(){return this._pool},e}(),$t="UpStreamMessage",Kt="PushExtra",Wt="DownStreamMessage",qt="DownStreamMessages",Zt="SessionsAttQryInput",Jt="SessionsAttOutput",Xt="SyncRequestMsg",en="ChrmPullMsg",tn="NotifyMsg",nn="HistoryMsgInput",rn="HistoryMsgOuput",on="RelationQryInput",sn="RelationsOutput",an="DeleteSessionsInput",cn="SessionInfo",un="DeleteSessionsOutput",ln="RelationsInput",fn="DeleteMsgInput",hn="CleanHisMsgInput",dn="SessionMsgReadInput",pn="ChrmInput",gn="ChrmOutput",vn="QueryChatRoomInfoInput",yn="QueryChatRoomInfoOutput",mn="RtcInput",In="RtcUserListOutput",_n="SetUserStatusInput",Tn="RtcSetDataInput",Cn="RtcUserSetDataInput",Mn="RtcDataInput",En="RtcSetOutDataInput",An="MCFollowInput",Sn="RtcTokenOutput",Nn="RtcQryOutput",bn="RtcQryUserOutDataInput",wn="RtcUserOutDataOutput",On="RtcQueryListInput",Rn="RtcRoomInfoOutput",Dn="RtcValueInfo",Ln="RtcKeyDeleteInput",Un="GetQNupTokenInput",xn="GetQNupTokenOutput",Pn="GetQNdownloadUrlInput",jn="GetDownloadUrlInput",kn="GetQNdownloadUrlOutput",zn="GetDownloadUrlOutput",Gn="ChrmKVEntity",Bn="SetChrmKV",Vn="SetChrmKVS",Yn="DeleteChrmKVS",Hn="ChrmKVOutput",Fn="ChrmKVSOutput",Qn="ChrmKVSVersionEntity",$n="ChrmKVSOutputEntity",Kn="QueryChrmKV",Wn="SetUserSettingInput",qn="SetUserSettingOutput",Zn="PullUserSettingInput",Jn="PullUserSettingOutput",Xn="UserSettingNotification",er="SessionReq",tr="SessionStates",nr="SessionState",rr="SessionStateItem",ir="SessionStateModifyReq",or="SessionStateModifyResp",sr="GroupUnpushQuery",ar="GroupUnpushSet",cr="GroupUnpushResult",ur="GrpReadReceiptMsg",lr="GrpReadReceiptQryReq",fr="GrpReadReceiptQryResp",hr="GrpMsgReadUser",dr="SessionTagAddInput",pr="SessionTagItem",gr="SessionTagDelInput",vr="SessionDisTagReq",yr="ReportSDKInput",mr="ReportSDKOutput",Ir="UltraGrpPullSes",_r="UltraGrpPullMsg",Tr="MsgChangeReq",Cr="QueryMsgChange",Mr="MsgChange",Er="MsgChangeList",Ar="MsgQuery",Sr="MessageQueryInfo",Nr="MsgQueryAck",br="OperateStatus",wr="OperateStatusNotify",Or="OperateInfo",Rr="OperateSummary",Dr="RtcNotifyMsg",Lr="RtcPullKV",Ur="RtcKVOutput",xr="RtcQueryUserJoinedInput",Pr="RtcQueryUserJoinedOutput",jr="RtcViewerJoinedOutput",kr="RtcInviteInput",zr="RtcCancelInviteInput",Gr="RtcInviteAnswerInput",Br="RtcEndInviteInput",Vr="SetRtcRoomIdInput",Yr="SetRtcRoomIdOutput",Hr=((Vt={})[$t]=["sessionId","classname","content","pushText","userId","configFlag","appData","extraContent","pushExt","busChannel"],Vt[qt]=["list","syncTime","finished","broadcastSyncTime"],Vt[Wt]=["fromUserId","type","groupId","classname","content","dataTime","status","msgId","extraContent","pushContent","configFlag","pushExt","busChannel","extStatus","toUserId","groupUnpush"],Vt[Kt]=["title","templateIdNoUse","pushId","pushConfigs","templateId"],Vt[Zt]=["nothing"],Vt[Jt]=["inboxTime","sendboxTime","totalUnreadCount"],Vt[Xt]=["syncTime","ispolling","isweb","isPullSend","isKeeping","sendBoxSyncTime","broadcastSyncTime"],Vt[en]=["syncTime","count"],Vt[tn]=["type","time","chrmId"],Vt[nn]=["targetId","time","count","order","busChannel"],Vt[rn]=["list","syncTime","hasMsg"],Vt[on]=["type","count","startTime","order"],Vt[sn]=["info","isFinished"],Vt[an]=["sessions"],Vt[cn]=["type","channelId","busChannel"],Vt[un]=["nothing"],Vt[ln]=["type","msg","count","busChannel","startTime","endTime"],Vt[fn]=["type","conversationId","msgs","busChannel"],Vt[hn]=["targetId","dataTime","conversationType","busChannel"],Vt[dn]=["type","msgTime","channelId","busChannel"],Vt[pn]=["nothing"],Vt[gn]=["nothing","sessionId","joinTime"],Vt[vn]=["count","order"],Vt[yn]=["userTotalNums","userInfos"],Vt[Un]=["type","key","httpMethod","queryString"],Vt[Pn]=["type","key","fileName"],Vt[jn]=["type","key","fileName"],Vt[xn]=["deadline","token","bosToken","bosDate","path","osskeyId","ossPolicy","ossSign","ossBucketName"],Vt[kn]=["downloadUrl"],Vt[zn]=["downloadUrl"],Vt[Gn]=["key","value","status","timestamp","uid","version"],Vt[Bn]=["entry","bNotify","notification","type"],Vt[Vn]=["entry","bNotify","notification","type"],Vt[Yn]=["entry","bNotify","notification","type"],Vt[Hn]=["entries","bFullUpdate","syncTime"],Vt[Fn]=["timestamp","errorKeys","keysVersion"],Vt[Qn]=["version","key"],Vt[$n]=["key","errorCode"],Vt[Kn]=["timestamp"],Vt[Wn]=["version","value"],Vt[qn]=["version","reserve"],Vt[Zn]=["version","reserve"],Vt[Jn]=["items","version"],Vt.UserSettingItem=["targetId","type","key","value","version","status","tags"],Vt[er]=["time"],Vt[tr]=["version","state"],Vt[nr]=["type","channelId","time","stateItem","busChannel"],Vt[rr]=["sessionStateType","value","tags"],Vt[ir]=["version","state"],Vt[or]=["version"],Vt[ar]=["busChannel","unpushLevel"],Vt[sr]=["busChannel"],Vt[cr]=["groupId","busChannel","unpushLevel"],Vt[ur]=["msgId","busChannel"],Vt[lr]=["msgId","busChannel"],Vt[fr]=["totalMemberNum","list"],Vt[hr]=["readTime","userId"],Vt[dr]=["version","tags"],Vt[pr]=["tagId","name","createdTime","isTop"],Vt[gr]=["version","tags"],Vt[vr]=["tagId"],Vt[Xn]=["version","reserve"],Vt[yr]=["sdkInfo"],Vt[mr]=["nothing"],Vt[Ir]=["syncTime","isEraseMsgContent"],Vt[_r]=["syncTime"],Vt[Tr]=["fromUserId","targetId","type","busChannel","msgUID","msgTime","content"],Vt[Cr]=["syncTime"],Vt[Er]=["list","syncTime","hasNext"],Vt[Mr]=["targetId","type","time","changeType","msgUID","msgTime","busChannel","isAdmin","isDel","operatorId"],Vt[Ar]=["targetId","type","query"],Vt[Sr]=["msgTime","msgUID","busChannel"],Vt[Nr]=["list"],Vt[br]=["targetId","type","opType","busChannel"],Vt[wr]=["type","notifyType","info","summary"],Vt[Or]=["targetId","busChannel","userId","opType","optime"],Vt[Rr]=["targetId","busChannel","count","opType"],Vt[mn]=["roomType","broadcastType","extraInnerData","needSysChatroom","identityChangeType","joinType"],Vt[In]=["users","token","sessionId","roomInfo"],Vt[_n]=["status"],Vt[Tn]=["interior","target","key","value","objectName","content"],Vt[Cn]=["valueInfo","objectName","content"],Vt[Mn]=["interior","target","key","objectName","content"],Vt[En]=["target","valueInfo","objectName","content"],Vt[An]=["state"],Vt[Sn]=["rtcToken"],Vt[Nn]=["outInfo"],Vt[bn]=["userId"],Vt[wn]=["user"],Vt[On]=["order"],Vt[Rn]=["roomId","roomData","userCount","list"],Vt[Dn]=["key","value"],Vt[Ln]=["key"],Vt[Dr]=["type","time","roomId"],Vt[Lr]=["timestamp","roomId"],Vt[Ur]=["entries","bFullUpdate","syncTime"],Vt[xr]=["userId"],Vt[Pr]=["info"],Vt[kr]=["invitedUserId","timeoutTime","invitedRoomId","inviteInfo","inviteSessionId"],Vt[zr]=["invitedUserId","invitedRoomId","inviteInfo","inviteSessionId"],Vt[Gr]=["inviteUserID","answerCode","inviteRoomId","inviteSessionId","content","key","value"],Vt[Br]=["inviteRoomId","inviteSessionId","inviteContent","inviteRoomKeys"],Vt[Vr]=["rtcRoomId"],Vt[Yr]=["nothing"],Vt),Fr={},Qr=function(e){var t=Hr[e];Fr[e]=function(){for(var e={},n={getArrayData:function(){return e}},r=function(r){var i=t[r],o="set".concat(M(i,0,1));n[o]=function(t){e[i]=t}},i=0;i<t.length;i++)r(i);return n},Fr[e].decode=function(e){var t={};R(e)&&(e=JSON.parse(e));var n=function(n){var r="get".concat(M(n,0,1));t[n]=e[n],t[r]=function(){return e[n]}};for(var r in e)n(r);return t}};for(var $r in Hr)Qr($r);Fr.getModule=function(e){return Fr[e]()};var Kr,Wr,qr,Zr,Jr,Xr,ei,ti="\npackage Modules;\nmessage probuf {\n message ".concat(_n,"\n {\n optional int32 status=1;\n }\n\n message SetUserStatusOutput\n {\n optional int32 nothing=1;\n }\n\n message GetUserStatusInput\n {\n optional int32 nothing=1;\n }\n\n message GetUserStatusOutput\n {\n optional string status=1;\n optional string subUserId=2;\n }\n\n message SubUserStatusInput\n {\n repeated string userid =1;\n }\n\n message SubUserStatusOutput\n {\n optional int32 nothing=1;\n }\n message VoipDynamicInput\n {\n required int32 engineType = 1;\n required string channelName = 2;\n optional string channelExtra = 3;\n }\n\n message VoipDynamicOutput\n {\n required string dynamicKey=1;\n }\n message ").concat(tn," {\n required int32 type = 1;\n optional int64 time = 2;\n optional string chrmId=3;\n }\n message ").concat(Xt," {\n required int64 syncTime = 1;\n required bool ispolling = 2;\n optional bool isweb=3;\n optional bool isPullSend=4;\n optional bool isKeeping=5;\n optional int64 sendBoxSyncTime=6;\n optional int64 broadcastSyncTime=7;\n }\n message ").concat($t," {\n required int32 sessionId = 1;\n required string classname = 2;\n required bytes content = 3;\n optional string pushText = 4;\n optional string appData = 5;\n repeated string userId = 6;\n optional int64 delMsgTime = 7;\n optional string delMsgId = 8;\n optional int32 configFlag = 9;\n optional int64 clientUniqueId = 10;\n optional string extraContent = 11;\n optional PushExtra pushExt = 12;\n optional string busChannel = 13; // 该消息所属会话的业务标识\n }\n message ").concat(Kt," {\n optional string title = 1;\n optional int32 templateIdNoUse= 2;\n optional string pushId = 3;\n optional string pushConfigs = 4;\n optional string templateId = 5;\n }\n message ").concat(qt," {\n repeated DownStreamMessage list = 1;\n required int64 syncTime = 2;\n optional bool finished = 3;\n optional int64 broadcastSyncTime = 4;\n }\n message ").concat(Wt," {\n required string fromUserId = 1;\n required ChannelType type = 2;\n optional string groupId = 3;\n required string classname = 4;\n required bytes content = 5;\n required int64 dataTime = 6;\n required int64 status = 7;\n optional int64 extra = 8;\n optional string msgId = 9;\n optional int32 direction = 10;\n optional int32 plantform =11;\n optional int32 isRemoved = 12;\n optional string source = 13;\n optional int64 clientUniqueId = 14;\n optional string extraContent = 15;\n optional string pushContent = 16;\n optional int32 configFlag = 17;\n optional PushExtra pushExt = 18;\n optional string busChannel = 19; // 该消息所属会话的业务标识,限制20字符以内\n optional int64 extStatus = 20; // 消息的扩展标记 第0位,表示送达状态: 0x01 表示已送达;断档: 0x02 表示是否需要执行断档策略; 消息修改: 0x04 拉取历史消息时表示该消息是否修改过\n repeated string toUserId = 21; //指定接收者(限定群和讨论组)//增加聊天室定向成员\n optional int32 groupUnpush = 22; //群聊默认免打扰级别\n }\n enum ChannelType {\n PERSON = 1;\n PERSONS = 2;\n GROUP = 3;\n TEMPGROUP = 4;\n CUSTOMERSERVICE = 5;\n NOTIFY = 6;\n MC=7;\n MP=8;\n ULTRAGROUP = 10;\n }\n message CreateDiscussionInput {\n optional string name = 1;\n }\n message CreateDiscussionOutput {\n required string id = 1;\n }\n message ChannelInvitationInput {\n repeated string users = 1;\n }\n message LeaveChannelInput {\n required int32 nothing = 1;\n }\n message ChannelEvictionInput {\n required string user = 1;\n }\n message RenameChannelInput {\n required string name = 1;\n }\n message ChannelInfoInput {\n required int32 nothing = 1;\n }\n message ChannelInfoOutput {\n required ChannelType type = 1;\n required string channelId = 2;\n required string channelName = 3;\n required string adminUserId = 4;\n repeated string firstTenUserIds = 5;\n required int32 openStatus = 6;\n }\n message ChannelInfosInput {\n required int32 page = 1;\n optional int32 number = 2;\n }\n message ChannelInfosOutput {\n repeated ChannelInfoOutput channels = 1;\n required int32 total = 2;\n }\n message MemberInfo {\n required string userId = 1;\n required string userName = 2;\n required string userPortrait = 3;\n required string extension = 4;\n }\n message GroupMembersInput {\n required int32 page = 1;\n optional int32 number = 2;\n }\n message GroupMembersOutput {\n repeated MemberInfo members = 1;\n required int32 total = 2;\n }\n message GetUserInfoInput {\n required int32 nothing = 1;\n }\n message GetUserInfoOutput {\n required string userId = 1;\n required string userName = 2;\n required string userPortrait = 3;\n }\n message GetSessionIdInput {\n required int32 nothing = 1;\n }\n message GetSessionIdOutput {\n required int32 sessionId = 1;\n }\n enum FileType {\n image = ").concat(O.IMAGE,";\n audio = ").concat(O.AUDIO,";\n video = ").concat(O.VIDEO,";\n file = ").concat(O.FILE,";\n }\n message ").concat(Un," {\n required FileType type = 1;\n optional string key = 2;\n optional string httpMethod = 3;\n optional string queryString = 4;\n }\n message ").concat(Pn," {\n required FileType type = 1;\n required string key = 2;\n optional string fileName = 3;\n }\n message ").concat(jn," {\n required FileType type = 1;\n required string key = 2;\n optional string fileName = 3;\n }\n message ").concat(xn," {\n required int64 deadline = 1;\n required string token = 2;\n optional string bosToken = 3;\n optional string bosDate = 4;\n optional string path = 5;\n optional string osskeyId = 6;\n optional string ossPolicy = 7;\n optional string ossSign = 8;\n optional string ossBucketName = 9;\n optional string s3Credential = 10;\n optional string s3Algorithm = 11;\n optional string s3Date = 12;\n optional string s3Policy = 13;\n optional string s3Signature = 14;\n optional string s3BucketName = 15;\n optional string stcAuthorization = 16;\n optional string stcContentSha256 = 17;\n optional string stcDate = 18;\n optional string stcBucketName = 19;\n }\n message ").concat(kn," {\n required string downloadUrl = 1;\n }\n message ").concat(zn," {\n required string downloadUrl = 1;\n }\n message Add2BlackListInput {\n required string userId = 1;\n }\n message RemoveFromBlackListInput {\n required string userId = 1;\n }\n message QueryBlackListInput {\n required int32 nothing = 1;\n }\n message QueryBlackListOutput {\n repeated string userIds = 1;\n }\n message BlackListStatusInput {\n required string userId = 1;\n }\n message BlockPushInput {\n required string blockeeId = 1;\n }\n message ModifyPermissionInput {\n required int32 openStatus = 1;\n }\n message GroupInput {\n repeated GroupInfo groupInfo = 1;\n }\n message GroupOutput {\n required int32 nothing = 1;\n }\n message GroupInfo {\n required string id = 1;\n required string name = 2;\n }\n message GroupHashInput {\n required string userId = 1;\n required string groupHashCode = 2;\n }\n message GroupHashOutput {\n required GroupHashType result = 1;\n }\n enum GroupHashType {\n group_success = 0x00;\n group_failure = 0x01;\n }\n message ").concat(pn," {\n required int32 nothing = 1;\n }\n message ").concat(gn," {\n required int32 nothing = 1;\n optional string sessionId = 2;\n optional int64 joinTime = 3;\n }\n message ").concat(en," {\n required int64 syncTime = 1;\n required int32 count = 2;\n }\n\n message ChrmPullMsgNew\n {\n required int32 count = 1;\n required int64 syncTime = 2;\n optional string chrmId=3;\n }\n message ").concat(on,"\n {\n optional ChannelType type = 1;\n optional int32 count = 2;\n optional int64 startTime = 3;\n optional int32 order = 4;\n }\n message ").concat(ln,"\n {\n required ChannelType type = 1;\n optional DownStreamMessage msg =2;\n optional int32 count = 3;\n repeated string busChannel = 4;\n optional int64 startTime = 5;\n optional int64 endTime = 6;\n }\n message ").concat(sn,"\n {\n repeated RelationInfo info = 1;\n optional bool isFinished = 2;//是否结束\n }\n message RelationInfo\n {\n required ChannelType type = 1;\n required string userId = 2;\n optional DownStreamMessage msg =3;\n optional int64 readMsgTime= 4;\n optional int64 unreadCount= 5;\n optional string busChannel = 6;//该消息所属会话的业务标识\n optional int64 versionTime = 7;//会话项变更时间戳,注意:非排序时间戳\n optional int64 remindCount = 8;//被@的未读数\n }\n message RelationInfoReadTime\n {\n required ChannelType type = 1;\n required int64 readMsgTime= 2;\n required string targetId = 3;\n }\n message ").concat(hn,"\n {\n required string targetId = 1;\n required int64 dataTime = 2;\n optional int32 conversationType= 3;\n optional string busChannel = 4; //该消息所属会话的业务标识,限制20字符以内\n }\n message HistoryMessageInput\n {\n required string targetId = 1;\n required int64 dataTime =2;\n required int32 size = 3;\n }\n\n message HistoryMessagesOuput\n {\n repeated DownStreamMessage list = 1;\n required int64 syncTime = 2;\n required int32 hasMsg = 3;\n }\n message ").concat(vn,"\n {\n required int32 count= 1;\n optional int32 order= 2;\n }\n\n message ").concat(yn,"\n {\n optional int32 userTotalNums = 1;\n repeated ChrmMember userInfos = 2;\n }\n message ChrmMember\n {\n required int64 time = 1;\n required string id = 2;\n }\n message MPFollowInput\n {\n required string id = 1;\n }\n\n message MPFollowOutput\n {\n required int32 nothing = 1;\n optional MpInfo info =2;\n }\n\n message ").concat(An,"\n {\n required string state = 1;\n }\n\n message MCFollowOutput\n {\n required int32 nothing = 1;\n optional MpInfo info =2;\n }\n\n message MpInfo\n {\n required string mpid=1;\n required string name = 2;\n required string type = 3;\n required int64 time=4;\n optional string portraitUrl=5;\n optional string extra =6;\n }\n\n message SearchMpInput\n {\n required int32 type=1;\n required string id=2;\n }\n\n message SearchMpOutput\n {\n required int32 nothing=1;\n repeated MpInfo info = 2;\n }\n\n message PullMpInput\n {\n required int64 time=1;\n required string mpid=2;\n }\n\n message PullMpOutput\n {\n required int32 status=1;\n repeated MpInfo info = 2;\n }\n message ").concat(nn,"\n {\n optional string targetId = 1;\n optional int64 time = 2;\n optional int32 count = 3;\n optional int32 order = 4;\n optional string busChannel = 5; //该消息所属会话的业务标识,限制20字符以内\n }\n\n message ").concat(rn,"\n {\n repeated DownStreamMessage list=1;\n required int64 syncTime=2;\n required int32 hasMsg=3;\n }\n message ").concat(On,"{\n optional int32 order=1;\n }\n\n message ").concat(Ln,"{\n repeated string key=1;\n }\n\n message ").concat(Dn,"{\n required string key=1;\n required string value=2;\n }\n\n message RtcUserInfo{\n required string userId=1;\n repeated ").concat(Dn," userData=2; //用户资源信息\n }\n\n message ").concat(In,"{\n repeated RtcUserInfo users=1;\n optional string token=2;\n optional string sessionId=3;\n repeated RtcValueInfo roomInfo = 4; //房间key value\n repeated RtcKVEntity entries = 5;//直播KV属性对象集合\n optional int64 syncTime = 6;//所有属性的最大时间戳(下次拉取KV时用)。\n optional int32 offlineKickTime = 7;//server超时踢人时间,默认60s\n }\n message RtcRoomInfoOutput{\n optional string roomId = 1;\n repeated ").concat(Dn," roomData = 2;\n optional int32 userCount = 3;\n repeated RtcUserInfo list=4;\n }\n message ").concat(mn,"{\n required int32 roomType=1;\n optional int32 broadcastType=2;\n optional RtcValueInfo extraInnerData = 3;\n optional bool needSysChatroom = 4; //是否需要同步聊天室\n optional IdentityChangeType identityChangeType = 5; //身份变更类型\n optional JoinType joinType = 6; // 加入房间类型\n repeated ").concat(Dn," innerDatas = 7; //用户内部inner数据,角色或者连麦信息等\n repeated ").concat(Dn," outerDatas = 8; //用户内部outer数据,自定义数据结构RtcInput。\n }\n enum JoinType {\n KICK = 0; //踢前一个设备\n REFUSE = 1; //当前加入拒绝\n COEXIST = 2; //两个设备共存\n }\n message RtcQryInput{\n required bool isInterior=1;\n required targetType target=2;\n repeated string key=3;\n }\n message ").concat(Nn,"{\n repeated ").concat(Dn," outInfo=1;\n }\n message RtcDelDataInput{\n repeated string key=1;\n required bool isInterior=2;\n required targetType target=3;\n }\n message ").concat(Mn,"{\n required bool interior=1;\n required targetType target=2;\n repeated string key=3;\n optional string objectName=4;\n optional string content=5;\n }\n message ").concat(Tn,"{\n required bool interior=1;\n required targetType target=2;\n required string key=3;\n required string value=4;\n optional string objectName=5;\n optional string content=6;\n }\n message ").concat(Cn," {\n repeated ").concat(Dn," valueInfo = 1;\n required string objectName = 2;\n repeated ").concat(Dn," content = 3;\n }\n message RtcOutput\n {\n optional int32 nothing=1;\n }\n message ").concat(Sn,"{\n required string rtcToken=1;\n }\n enum targetType {\n ROOM =1 ;\n PERSON = 2;\n }\n message ").concat(En,"{\n required targetType target=1;\n repeated ").concat(Dn," valueInfo=2;\n optional string objectName=3;\n optional string content=4;\n }\n message ").concat(bn,"{\n repeated string userId = 1;\n }\n message ").concat(wn,"{\n repeated RtcUserInfo user = 1;\n }\n message ").concat(Zt,"{\n required int32 nothing = 1;\n }\n message ").concat(Jt,"{\n required int64 inboxTime = 1;\n required int64 sendboxTime = 2;\n required int64 totalUnreadCount = 3;\n }\n message ").concat(dn,"\n {\n required ChannelType type = 1;\n required int64 msgTime = 2;\n required string channelId = 3;\n optional string busChannel = 4;//该消息所属会话的业务标识\n }\n message SessionMsgReadOutput\n {\n optional int32 nothing=1;\n }\n message ").concat(an,"\n {\n repeated SessionInfo sessions = 1;\n }\n message ").concat(cn,"\n {\n required ChannelType type = 1;\n required string channelId = 2;\n optional string busChannel = 3;//所属会话业务标识\n }\n message ").concat(un,"\n {\n optional int32 nothing=1;\n }\n message ").concat(fn,"\n {\n optional ChannelType type = 1;\n optional string conversationId = 2;\n repeated DeleteMsg msgs = 3;\n optional string busChannel = 4; //该消息所属会话的业务标识,限制20字符以内\n }\n message DeleteMsg\n {\n optional string msgId = 1;\n optional int64 msgDataTime = 2;\n optional int32 direct = 3;\n }\n message ChrmKVEntity {\n required string key = 1;\n required string value = 2;\n optional int32 status = 3;\n optional int64 timestamp = 4;\n optional string uid = 5;\n optional int64 version = 6;\n }\n message ").concat(Bn," {\n required ChrmKVEntity entry = 1;\n optional bool bNotify = 2;\n optional UpStreamMessage notification = 3;\n optional ChannelType type = 4;\n }\n message ").concat(Vn," {\n repeated ChrmKVEntity entry = 1;\n optional bool bNotify = 2;\n optional UpStreamMessage notification = 3;\n optional ChannelType type = 4;\n }\n message ").concat(Yn," {\n repeated ChrmKVEntity entry = 1;\n optional bool bNotify = 2;\n optional UpStreamMessage notification = 3;\n optional ChannelType type = 4;\n }\n message ").concat(Hn," {\n repeated ChrmKVEntity entries = 1;\n optional bool bFullUpdate = 2;\n optional int64 syncTime = 3;\n }\n message ChrmKVSVersionEntity {\n optional int64 version = 1;\n optional string key = 2;\n }\n\n message ").concat(Fn," {\n repeated ChrmKVSOutputEntity errorKeys = 1;\n repeated ChrmKVSVersionEntity keysVersion = 2;\n }\n message ").concat($n,"\n {\n optional string key = 1;\n optional int32 errorCode = 2;\n }\n message ").concat(Kn," {\n required int64 timestamp = 1;\n }\n message ").concat(Wn," {\n required int64 version=1;\n required string value=2;\n }\n message ").concat(qn," {\n required int64 version=1;\n required bool reserve=2;\n }\n message ").concat(Zn," {\n required int64 version=1;\n optional bool reserve=2;\n }\n message ").concat(Jn," {\n repeated UserSettingItem items = 1;\n required int64 version=2;\n }\n message UserSettingItem {\n required string targetId= 1;\n required ChannelType type = 2;\n required string key = 4;\n required bytes value = 5;\n required int64 version=6;\n required int32 status=7;\n repeated SessionTagItem tags= 8;\n }\n message ").concat(er," {\n required int64 time = 1;\n }\n message ").concat(tr," {\n required int64 version=1;\n repeated SessionState state= 2;\n }\n message ").concat(nr," {\n required ChannelType type = 1;\n required string channelId = 2;\n optional int64 time = 3;\n repeated SessionStateItem stateItem = 4;\n optional string busChannel = 5;//该消息所属会话的业务标识\n }\n message ").concat(rr," {\n required SessionStateType sessionStateType = 1;\n required string value = 2;\n repeated SessionTagItem tags = 3;\n }\n enum SessionStateType {\n IsSilent = 1;\n IsTop = 2;\n Tags = 3;\n }\n message ").concat(ir," {\n required int64 version=1;\n repeated SessionState state= 2;\n }\n message ").concat(sr," {\n optional string busChannel = 1;\n }\n message ").concat(ar,"{\n optional string busChannel = 1;\n required int32 unpushLevel = 2;\n }\n message ").concat(cr," {\n required string groupId = 1;\n optional string busChannel = 2;\n required int32 unpushLevel = 3;\n }\n message ").concat(or," {\n required int64 version=1;\n }\n message ").concat(ur," {\n repeated string msgId=1; //已读消息ID\n optional string channelId = 2; // 该消息所属会话的业务标识\n }\n message ").concat(lr," {\n repeated string msgId=1; //已读消息ID\n optional string channelId = 2; // 该消息所属会话的业务标识\n }\n message ").concat(fr," {\n required int32 totalMemberNum = 1;//群内总人数\n repeated GrpMsgReadUser list = 2;//已读用户列表(list复类型)\n }\n message ").concat(hr," {\n required int64 readTime = 1;//已读时间\n required string userId = 2;//已读用户id\n }\n message ").concat(dr," {\n required int64 version=1;\n repeated SessionTagItem tags=2;\n }\n message ").concat(pr," {\n required string tagId=1;\n optional string name=2;\n optional int64 createdTime=3;\n optional bool isTop=4;\n }\n message ").concat(gr," {\n required int64 version=1;\n repeated SessionTagItem tags=2;\n }\n message ").concat(vr," {\n repeated string tagId=1;\n }\n message ").concat(Xn," {\n required int64 version=1;\n required bool reserve=2;\n }\n message ").concat(yr,' {\n required string sdkInfo=1; // 用户集成的 sdk 信息,json 格式 {"web-rtc": "4.0.3.7"}\n }\n message ').concat(mr,"\n {\n optional int32 nothing=1; //占位\n }\n message ").concat(Dr," \n {\n required int32 type= 1; //(通知类型 1:rtc房间状态KV变更通知)\n optional int64 time= 2; //消息产生时间\n optional string roomId=3; //主播房间id\n }\n message ").concat(Lr,"\n {\n required int64 timestamp = 1;\n required string roomId = 2;\n }\n message ").concat(Ur,"\n {\n repeated RtcKVEntity entries = 1;\n optional bool bFullUpdate = 2;\n optional int64 syncTime = 3; \n }\n message RtcKVEntity \n {\n required string key = 1;\n required string value = 2;\n optional int32 status = 3;\n optional int64 timestamp = 4;\n optional string uid = 5;\n }\n enum IdentityChangeType \n {\n AnchorToViewer = 1; //1为主播变观众\n ViewerToAnchor = 2; //2为观众变主播\n }\n message ").concat(xr,"\n {\n required string userId = 1;\n }\n message ").concat(Pr,"\n {\n repeated RtcJoinedInfo info = 1;\n }\n message RtcJoinedInfo\n {\n required string deviceId = 1; //设备ID\n required string roomId = 2; //加入的房间ID\n optional int64 joinTime = 3; //加入的时间\n }\n message ").concat(jr,"\n {\n required string rtcToken=1;\n repeated RtcKVEntity entries = 2;//KV属性对象集合\n optional int64 syncTime = 3;//所有属性的最大时间戳(下次拉取KV时用)。\n }\n message ").concat(kr,"\n {\n required string invitedUserId=1; //被邀请的人的uid\n optional int32 timeoutTime=2; //邀请超时时间(秒),默认三十秒\n required string invitedRoomId=3; //被邀请的房间\n required string inviteInfo=4; //邀请的信息(包含邀请人,被邀请人,各自userid)客户端定义好.协议栈和server透传\n required string inviteSessionId= 5; //客户端保证唯一性(建议roomid_userid_时间戳_随机数)\n }\n message ").concat(zr,"\n {\n required string invitedUserId=1; //被邀请的人的uid\n required string invitedRoomId=2; //被邀请的房间\n required string inviteInfo=3; //取消邀请的信息(包含邀请人,被邀请人,各自userid)客户端定义好.协议栈和server透传\n required string inviteSessionId=4; //邀请的sessionId,客户端发起邀请时产生\n }\n message ").concat(Gr,"\n {\n required string inviteUserId=1; //邀请的人的uid\n required int32 answerCode=2; //是否接受连麦邀请.0为拒绝,1为接受\n required string inviteRoomId=3; //邀请的房间\n required string inviteSessionId=4; //邀请的sessionId\n required string content=5; //需要转发的content\n optional string key=6; //如果接受的话,需要加这个字段,放在room级别的k和v,新加入房间的能拉取到\n optional string value=7; //如果接受的话,需要加这个字段,放在room级别的k和v,新加入房间的能拉取到\n }\n message ").concat(Br,"\n {\n required string inviteRoomId=1; //邀请的房间\n required string inviteSessionId=2; //邀请的sessionId\n required string inviteContent=3; //结束连麦的信息(需要透传给房间内其他人)\n repeated string inviteRoomKeys=4; //需要删除连麦的信息的key\n }\n message ").concat(Ir,"\n {\n required int64 syncTime = 1;//同步时间戳\n optional bool isEraseMsgContent = 2;//拉取会话时,是否屏蔽掉消息内容\n }\n message ").concat(_r,"\n {\n required int64 syncTime = 1;//同步时间戳\n }\n message ").concat(Tr,"\n {\n required string fromUserId = 1;//(谁发的)\n required string targetId = 2;// 目标Id(超级群Id)\n required ChannelType type = 3;//发送类型如:(P2P,GROUP,ULTRAGROUP)\n required string msgUID = 4; // 扩展消息的内容体\n required int64 msgTime = 5; //原始消息时间\n optional string busChannel = 6; // 该消息所属会话的业务标识,限制20字符以内\n optional string content = 7; // 即extraContent消息扩展内容,下表格说明\n }\n message ").concat(Cr," //查询入参\n {\n required int64 syncTime = 1;//同步时间戳\n }\n message ").concat(Er," //应答结果\n {\n repeated MsgChange list = 1; //变更\n required int64 syncTime = 2; //同步时间(用于下次同步入参)\n optional bool hasNext = 3 ;\n }\n message MsgChange //变更详情\n {\n required string targetId = 1; // 目标Id(超级群Id)\n required ChannelType type = 2; // 会话类型\n required int64 time = 3; // 变更时间\n required int32 changeType = 4; // 消息变更类型(1:扩展,2:修改,3:撤回)\n required string msgUID = 5; // 消息ID\n required int64 msgTime = 6; // 消息时间\n optional string busChannel = 7; // 频道ID\n optional bool isAdmin = 8; //是否为管理员,默认为 0,设为 1 时,IMKit 收到此条消息后,小灰条默认显示为“管理员 撤回了一条消息”。\n optional bool isDel = 9; //默认为 0 撤回该条消息同时,用户端将该条消息删除并替换为一条小灰条撤回提示消息;为 1 时,该条消息删除后,不替换为小灰条提示消息。\n optional string operatorId = 10; // 新加 - 消息变更的操作人Id\n }\n message ").concat(Ar," //请求\n {\n required string targetId = 1; // 目标Id(超级群Id)\n required ChannelType type = 2; // 会话类型\n repeated MessageQueryInfo query = 3; //\n }\n message MessageQueryInfo\n {\n required int64 msgTime = 1; // 消息时间\n required string msgUID = 2; // 消息ID\n optional string busChannel = 3; // 频道ID\n }\n message ").concat(Nr," //应答\n {\n repeated DownStreamMessage list = 1;//消息\n }\n message ").concat(br," //客户端发送\n {\n optional string targetId = 1;// targetId\n optional ChannelType type = 2;//发送会话类型如:(P2P,GROUP) \n optional int32 opType = 3; //0 , 正在输入, 1 正在XXX \n optional string busChannel = 4; // 频道(channelId,可以为空)\n }\n message ").concat(wr," //服务端发送\n {\n optional ChannelType type = 1;//发送会话类型如(P2P,GROUP) \n optional int64 notifyType = 2; //0x1 表示明细, 0x2 表示汇总 0x3 表示明细+汇总\n repeated OperateInfo info = 3 ; //明细列表 当notifyType 为 1和3时,有效\n repeated OperateSummary summary = 4 ; //汇总列表, 当notifyType 为2和3 时,有效\n }\n message ").concat(Or," {\n // XX 正在做什么\n optional string targetId = 1; // 超级群Id 会话id\n optional string busChannel = 2; // 频道(channelId,可以为空)\n optional string userId = 3; // userId\n optional int32 opType = 4; //0 , 正在输入, 1 正在XX \n optional int64 optime = 5; //服务端收到用户操作的上行时间. \n }\n \n message ").concat(Rr," {\n // 几个人 正在干什么\n optional string targetId = 1; // 超级群Id 会话id\n optional string busChannel = 2; // 频道(channelId,可以为空)\n optional int32 count = 3; // 操作人数\n optional int32 opType = 4; //0, 正在输入, 1 正在XX \n }\n message ").concat(Vr,"\n {\n required string rtcRoomId= 1; //rtc房间ID;\n }\n message ").concat(Yr,"\n {\n required int32 nothing = 1; //用于占位\n }\n}\n"),ni=(Kr=ti,Wr=function(){function e(e,t,n){this.low=0|e,this.high=0|t,this.unsigned=!!n}function t(e){return!0===(e&&e.__isLong__)}function n(e,t){var n,r,o;return t?(o=(e>>>=0)>=0&&e<256)&&(r=c[e])?r:(n=i(e,(0|e)<0?-1:0,!0),o&&(c[e]=n),n):(o=(e|=0)>=-128&&e<128)&&(r=a[e])?r:(n=i(e,e<0?-1:0,!1),o&&(a[e]=n),n)}function r(e,t){if(isNaN(e)||!isFinite(e))return t?g:p;if(t){if(e<0)return g;if(e>=f)return _}else{if(-h>=e)return T;if(e+1>=h)return I}return e<0?r(-e,t).neg():i(0|e%l,0|e/l,t)}function i(t,n,r){return new e(t,n,r)}function o(e,t,n){var i,s,a,c,l,f,h;if(0===e.length)throw Error("empty string");if("NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return p;if("number"==typeof t?(n=t,t=!1):t=!!t,(n=n||10)<2||n>36)throw RangeError("radix");if((i=e.indexOf("-"))>0)throw Error("interior hyphen");if(0===i)return o(e.substring(1),t,n).neg();for(s=r(u(n,8)),a=p,c=0;c<e.length;c+=8)l=Math.min(8,e.length-c),f=parseInt(e.substring(c,c+l),n),l<8?(h=r(u(n,l)),a=a.mul(h).add(r(f))):a=(a=a.mul(s)).add(r(f));return a.unsigned=t,a}function s(t){return t instanceof e?t:"number"==typeof t?r(t):"string"==typeof t?o(t):i(t.low,t.high,t.unsigned)}var a,c,u,l,f,h,d,p,g,v,y,m,I,_,T,C;return e.prototype.__isLong__,Object.defineProperty(e.prototype,"__isLong__",{value:!0,enumerable:!1,configurable:!1}),e.isLong=t,a={},c={},e.fromInt=n,e.fromNumber=r,e.fromBits=i,u=Math.pow,e.fromString=o,e.fromValue=s,h=(f=(l=4294967296)*l)/2,d=n(16777216),p=n(0),e.ZERO=p,g=n(0,!0),e.UZERO=g,v=n(1),e.ONE=v,y=n(1,!0),e.UONE=y,m=n(-1),e.NEG_ONE=m,I=i(-1,2147483647,!1),e.MAX_VALUE=I,_=i(-1,-1,!0),e.MAX_UNSIGNED_VALUE=_,T=i(0,-2147483648,!1),e.MIN_VALUE=T,(C=e.prototype).toInt=function(){return this.unsigned?this.low>>>0:this.low},C.toNumber=function(){return this.unsigned?(this.high>>>0)*l+(this.low>>>0):this.high*l+(this.low>>>0)},C.toString=function(e){var t,n,i,o,s,a,c,l;if((e=e||10)<2||e>36)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative())return this.eq(T)?(t=r(e),i=(n=this.div(t)).mul(t).sub(this),n.toString(e)+i.toInt().toString(e)):"-"+this.neg().toString(e);for(o=r(u(e,6),this.unsigned),s=this,a="";;){if(c=s.div(o),l=(s.sub(c.mul(o)).toInt()>>>0).toString(e),(s=c).isZero())return l+a;for(;l.length<6;)l="0"+l;a=""+l+a}},C.getHighBits=function(){return this.high},C.getHighBitsUnsigned=function(){return this.high>>>0},C.getLowBits=function(){return this.low},C.getLowBitsUnsigned=function(){return this.low>>>0},C.getNumBitsAbs=function(){var e,t;if(this.isNegative())return this.eq(T)?64:this.neg().getNumBitsAbs();for(e=0!=this.high?this.high:this.low,t=31;t>0&&0==(e&1<<t);t--);return 0!=this.high?t+33:t+1},C.isZero=function(){return 0===this.high&&0===this.low},C.isNegative=function(){return!this.unsigned&&this.high<0},C.isPositive=function(){return this.unsigned||this.high>=0},C.isOdd=function(){return 1==(1&this.low)},C.isEven=function(){return 0==(1&this.low)},C.equals=function(e){return t(e)||(e=s(e)),(this.unsigned===e.unsigned||this.high>>>31!=1||e.high>>>31!=1)&&this.high===e.high&&this.low===e.low},C.eq=C.equals,C.notEquals=function(e){return!this.eq(e)},C.neq=C.notEquals,C.lessThan=function(e){return this.comp(e)<0},C.lt=C.lessThan,C.lessThanOrEqual=function(e){return this.comp(e)<=0},C.lte=C.lessThanOrEqual,C.greaterThan=function(e){return this.comp(e)>0},C.gt=C.greaterThan,C.greaterThanOrEqual=function(e){return this.comp(e)>=0},C.gte=C.greaterThanOrEqual,C.compare=function(e){if(t(e)||(e=s(e)),this.eq(e))return 0;var n=this.isNegative(),r=e.isNegative();return n&&!r?-1:!n&&r?1:this.unsigned?e.high>>>0>this.high>>>0||e.high===this.high&&e.low>>>0>this.low>>>0?-1:1:this.sub(e).isNegative()?-1:1},C.comp=C.compare,C.negate=function(){return!this.unsigned&&this.eq(T)?T:this.not().add(v)},C.neg=C.negate,C.add=function(e){var n,r,o,a,c,u,l,f,h,d,p;return t(e)||(e=s(e)),n=this.high>>>16,r=65535&this.high,o=this.low>>>16,a=65535&this.low,c=e.high>>>16,u=65535&e.high,l=e.low>>>16,f=0,h=0,d=0,p=0,d+=(p+=a+(65535&e.low))>>>16,h+=(d+=o+l)>>>16,f+=(h+=r+u)>>>16,f+=n+c,i((d&=65535)<<16|(p&=65535),(f&=65535)<<16|(h&=65535),this.unsigned)},C.subtract=function(e){return t(e)||(e=s(e)),this.add(e.neg())},C.sub=C.subtract,C.multiply=function(e){var n,o,a,c,u,l,f,h,g,v,y,m;return this.isZero()?p:(t(e)||(e=s(e)),e.isZero()?p:this.eq(T)?e.isOdd()?T:p:e.eq(T)?this.isOdd()?T:p:this.isNegative()?e.isNegative()?this.neg().mul(e.neg()):this.neg().mul(e).neg():e.isNegative()?this.mul(e.neg()).neg():this.lt(d)&&e.lt(d)?r(this.toNumber()*e.toNumber(),this.unsigned):(n=this.high>>>16,o=65535&this.high,a=this.low>>>16,c=65535&this.low,u=e.high>>>16,l=65535&e.high,f=e.low>>>16,g=0,v=0,y=0,m=0,y+=(m+=c*(h=65535&e.low))>>>16,v+=(y+=a*h)>>>16,y&=65535,v+=(y+=c*f)>>>16,g+=(v+=o*h)>>>16,v&=65535,g+=(v+=a*f)>>>16,v&=65535,g+=(v+=c*l)>>>16,g+=n*h+o*f+a*l+c*u,i((y&=65535)<<16|(m&=65535),(g&=65535)<<16|(v&=65535),this.unsigned)))},C.mul=C.multiply,C.divide=function(e){var n,i,o,a,c,l,f;if(t(e)||(e=s(e)),e.isZero())throw Error("division by zero");if(this.isZero())return this.unsigned?g:p;if(this.unsigned){if(e.unsigned||(e=e.toUnsigned()),e.gt(this))return g;if(e.gt(this.shru(1)))return y;o=g}else{if(this.eq(T))return e.eq(v)||e.eq(m)?T:e.eq(T)?v:(n=this.shr(1).div(e).shl(1)).eq(p)?e.isNegative()?v:m:(i=this.sub(e.mul(n)),o=n.add(i.div(e)));if(e.eq(T))return this.unsigned?g:p;if(this.isNegative())return e.isNegative()?this.neg().div(e.neg()):this.neg().div(e).neg();if(e.isNegative())return this.div(e.neg()).neg();o=p}for(i=this;i.gte(e);){for(n=Math.max(1,Math.floor(i.toNumber()/e.toNumber())),c=(a=Math.ceil(Math.log(n)/Math.LN2))<=48?1:u(2,a-48),f=(l=r(n)).mul(e);f.isNegative()||f.gt(i);)f=(l=r(n-=c,this.unsigned)).mul(e);l.isZero()&&(l=v),o=o.add(l),i=i.sub(f)}return o},C.div=C.divide,C.modulo=function(e){return t(e)||(e=s(e)),this.sub(this.div(e).mul(e))},C.mod=C.modulo,C.not=function(){return i(~this.low,~this.high,this.unsigned)},C.and=function(e){return t(e)||(e=s(e)),i(this.low&e.low,this.high&e.high,this.unsigned)},C.or=function(e){return t(e)||(e=s(e)),i(this.low|e.low,this.high|e.high,this.unsigned)},C.xor=function(e){return t(e)||(e=s(e)),i(this.low^e.low,this.high^e.high,this.unsigned)},C.shiftLeft=function(e){return t(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?i(this.low<<e,this.high<<e|this.low>>>32-e,this.unsigned):i(0,this.low<<e-32,this.unsigned)},C.shl=C.shiftLeft,C.shiftRight=function(e){return t(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?i(this.low>>>e|this.high<<32-e,this.high>>e,this.unsigned):i(this.high>>e-32,this.high>=0?0:-1,this.unsigned)},C.shr=C.shiftRight,C.shiftRightUnsigned=function(e){var n;return t(e)&&(e=e.toInt()),0==(e&=63)?this:(n=this.high,e<32?i(this.low>>>e|n<<32-e,n>>>e,this.unsigned):i(32===e?n:n>>>e-32,0,this.unsigned))},C.shru=C.shiftRightUnsigned,C.toSigned=function(){return this.unsigned?i(this.low,this.high,!1):this},C.toUnsigned=function(){return this.unsigned?this:i(this.low,this.high,!0)},C.toBytes=function(e){return e?this.toBytesLE():this.toBytesBE()},C.toBytesLE=function(){var e=this.high,t=this.low;return[255&t,255&t>>>8,255&t>>>16,255&t>>>24,255&e,255&e>>>8,255&e>>>16,255&e>>>24]},C.toBytesBE=function(){var e=this.high,t=this.low;return[255&e>>>24,255&e>>>16,255&e>>>8,255&e,255&t>>>24,255&t>>>16,255&t>>>8,255&t]},e}(),qr=function(e){function t(e){var t=0;return function(){return t<e.length?e.charCodeAt(t++):null}}function n(){var e=[],t=[];return function(){return 0===arguments.length?t.join("")+a.apply(String,e):(e.length+arguments.length>1024&&(t.push(a.apply(String,e)),e.length=0),void Array.prototype.push.apply(e,arguments))}}function r(e,t,n,r,i){var o,s,a=8*i-r-1,c=(1<<a)-1,u=c>>1,l=-7,f=n?i-1:0,h=n?-1:1,d=e[t+f];for(f+=h,o=d&(1<<-l)-1,d>>=-l,l+=a;l>0;o=256*o+e[t+f],f+=h,l-=8);for(s=o&(1<<-l)-1,o>>=-l,l+=r;l>0;s=256*s+e[t+f],f+=h,l-=8);if(0===o)o=1-u;else{if(o===c)return s?NaN:1/0*(d?-1:1);s+=Math.pow(2,r),o-=u}return(d?-1:1)*s*Math.pow(2,o-r)}function i(e,t,n,r,i,o){var s,a,c,u=8*o-i-1,l=(1<<u)-1,f=l>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,p=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||1/0===t?(a=isNaN(t)?1:0,s=l):(s=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-s))<1&&(s--,c*=2),(t+=s+f>=1?h/c:h*Math.pow(2,1-f))*c>=2&&(s++,c/=2),s+f>=l?(a=0,s=l):s+f>=1?(a=(t*c-1)*Math.pow(2,i),s+=f):(a=t*Math.pow(2,f-1)*Math.pow(2,i),s=0));i>=8;e[n+d]=255&a,d+=p,a/=256,i-=8);for(s=s<<i|a,u+=i;u>0;e[n+d]=255&s,d+=p,s/=256,u-=8);e[n+d-p]|=128*g}var o,s,a,c,u,l=function(e,t,n){if(void 0===e&&(e=l.DEFAULT_CAPACITY),void 0===t&&(t=l.DEFAULT_ENDIAN),void 0===n&&(n=l.DEFAULT_NOASSERT),!n){if((e|=0)<0)throw RangeError("Illegal capacity");t=!!t,n=!!n}this.buffer=0===e?s:new ArrayBuffer(e),this.view=0===e?null:new Uint8Array(this.buffer),this.offset=0,this.markedOffset=-1,this.limit=e,this.littleEndian=t,this.noAssert=n};return l.VERSION="5.0.1",l.LITTLE_ENDIAN=!0,l.BIG_ENDIAN=!1,l.DEFAULT_CAPACITY=16,l.DEFAULT_ENDIAN=l.BIG_ENDIAN,l.DEFAULT_NOASSERT=!1,l.Long=e||null,(o=l.prototype).__isByteBuffer__,Object.defineProperty(o,"__isByteBuffer__",{value:!0,enumerable:!1,configurable:!1}),s=new ArrayBuffer(0),a=String.fromCharCode,l.accessor=function(){return Uint8Array},l.allocate=function(e,t,n){return new l(e,t,n)},l.concat=function(e,t,n,r){var i,o,s,a,c,u;for(("boolean"==typeof t||"string"!=typeof t)&&(r=n,n=t,t=void 0),i=0,s=0,a=e.length;a>s;++s)l.isByteBuffer(e[s])||(e[s]=l.wrap(e[s],t)),(o=e[s].limit-e[s].offset)>0&&(i+=o);if(0===i)return new l(0,n,r);for(u=new l(i,n,r),s=0;a>s;)(o=(c=e[s++]).limit-c.offset)<=0||(u.view.set(c.view.subarray(c.offset,c.limit),u.offset),u.offset+=o);return u.limit=u.offset,u.offset=0,u},l.isByteBuffer=function(e){return!0===(e&&e.__isByteBuffer__)},l.type=function(){return ArrayBuffer},l.wrap=function(e,t,n,r){var i,s;if("string"!=typeof t&&(r=n,n=t,t=void 0),"string"==typeof e)switch(void 0===t&&(t="utf8"),t){case"base64":return l.fromBase64(e,n);case"hex":return l.fromHex(e,n);case"binary":return l.fromBinary(e,n);case"utf8":return l.fromUTF8(e,n);case"debug":return l.fromDebug(e,n);default:throw Error("Unsupported encoding: "+t)}if(null===e||"object"!=typeof e)throw TypeError("Illegal buffer");if(l.isByteBuffer(e))return(i=o.clone.call(e)).markedOffset=-1,i;if(e instanceof Uint8Array)i=new l(0,n,r),e.length>0&&(i.buffer=e.buffer,i.offset=e.byteOffset,i.limit=e.byteOffset+e.byteLength,i.view=new Uint8Array(e.buffer));else if(e instanceof ArrayBuffer)i=new l(0,n,r),e.byteLength>0&&(i.buffer=e,i.offset=0,i.limit=e.byteLength,i.view=e.byteLength>0?new Uint8Array(e):null);else{if("[object Array]"!==Object.prototype.toString.call(e))throw TypeError("Illegal buffer");for((i=new l(e.length,n,r)).limit=e.length,s=0;s<e.length;++s)i.view[s]=e[s]}return i},o.writeBitSet=function(e,t){var n,r,i,o,s,a,c=void 0===t;if(c&&(t=this.offset),!this.noAssert){if(!(e instanceof Array))throw TypeError("Illegal BitSet: Not an array");if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}for(r=t,o=(i=e.length)>>3,s=0,t+=this.writeVarint32(i,t);o--;)n=1&!!e[s++]|(1&!!e[s++])<<1|(1&!!e[s++])<<2|(1&!!e[s++])<<3|(1&!!e[s++])<<4|(1&!!e[s++])<<5|(1&!!e[s++])<<6|(1&!!e[s++])<<7,this.writeByte(n,t++);if(i>s){for(a=0,n=0;i>s;)n|=(1&!!e[s++])<<a++;this.writeByte(n,t++)}return c?(this.offset=t,this):t-r},o.readBitSet=function(e){var t,n,r,i,o,s,a,c=void 0===e;for(c&&(e=this.offset),i=(r=(n=this.readVarint32(e)).value)>>3,o=0,s=[],e+=n.length;i--;)t=this.readByte(e++),s[o++]=!!(1&t),s[o++]=!!(2&t),s[o++]=!!(4&t),s[o++]=!!(8&t),s[o++]=!!(16&t),s[o++]=!!(32&t),s[o++]=!!(64&t),s[o++]=!!(128&t);if(r>o)for(a=0,t=this.readByte(e++);r>o;)s[o++]=!!(1&t>>a++);return c&&(this.offset=e),s},o.readBytes=function(e,t){var n,r=void 0===t;if(r&&(t=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+e>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+"+e+") <= "+this.buffer.byteLength)}return n=this.slice(t,t+e),r&&(this.offset+=e),n},o.writeBytes=o.append,o.writeInt8=function(e,t){var n,r=void 0===t;if(r&&(t=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal value: "+e+" (not an integer)");if(e|=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}return(t+=1)>(n=this.buffer.byteLength)&&this.resize((n*=2)>t?n:t),t-=1,this.view[t]=e,r&&(this.offset+=1),this},o.writeByte=o.writeInt8,o.readInt8=function(e){var t,n=void 0===e;if(n&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+1>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+1) <= "+this.buffer.byteLength)}return 128==(128&(t=this.view[e]))&&(t=-(255-t+1)),n&&(this.offset+=1),t},o.readByte=o.readInt8,o.writeUint8=function(e,t){var n,r=void 0===t;if(r&&(t=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal value: "+e+" (not an integer)");if(e>>>=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}return(t+=1)>(n=this.buffer.byteLength)&&this.resize((n*=2)>t?n:t),t-=1,this.view[t]=e,r&&(this.offset+=1),this},o.writeUInt8=o.writeUint8,o.readUint8=function(e){var t,n=void 0===e;if(n&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+1>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+1) <= "+this.buffer.byteLength)}return t=this.view[e],n&&(this.offset+=1),t},o.readUInt8=o.readUint8,o.writeInt16=function(e,t){var n,r=void 0===t;if(r&&(t=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal value: "+e+" (not an integer)");if(e|=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}return(t+=2)>(n=this.buffer.byteLength)&&this.resize((n*=2)>t?n:t),t-=2,this.littleEndian?(this.view[t+1]=(65280&e)>>>8,this.view[t]=255&e):(this.view[t]=(65280&e)>>>8,this.view[t+1]=255&e),r&&(this.offset+=2),this},o.writeShort=o.writeInt16,o.readInt16=function(e){var t,n=void 0===e;if(n&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+2>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+2) <= "+this.buffer.byteLength)}return t=0,this.littleEndian?(t=this.view[e],t|=this.view[e+1]<<8):(t=this.view[e]<<8,t|=this.view[e+1]),32768==(32768&t)&&(t=-(65535-t+1)),n&&(this.offset+=2),t},o.readShort=o.readInt16,o.writeUint16=function(e,t){var n,r=void 0===t;if(r&&(t=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal value: "+e+" (not an integer)");if(e>>>=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}return(t+=2)>(n=this.buffer.byteLength)&&this.resize((n*=2)>t?n:t),t-=2,this.littleEndian?(this.view[t+1]=(65280&e)>>>8,this.view[t]=255&e):(this.view[t]=(65280&e)>>>8,this.view[t+1]=255&e),r&&(this.offset+=2),this},o.writeUInt16=o.writeUint16,o.readUint16=function(e){var t,n=void 0===e;if(n&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+2>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+2) <= "+this.buffer.byteLength)}return t=0,this.littleEndian?(t=this.view[e],t|=this.view[e+1]<<8):(t=this.view[e]<<8,t|=this.view[e+1]),n&&(this.offset+=2),t},o.readUInt16=o.readUint16,o.writeInt32=function(e,t){var n,r=void 0===t;if(r&&(t=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal value: "+e+" (not an integer)");if(e|=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}return(t+=4)>(n=this.buffer.byteLength)&&this.resize((n*=2)>t?n:t),t-=4,this.littleEndian?(this.view[t+3]=255&e>>>24,this.view[t+2]=255&e>>>16,this.view[t+1]=255&e>>>8,this.view[t]=255&e):(this.view[t]=255&e>>>24,this.view[t+1]=255&e>>>16,this.view[t+2]=255&e>>>8,this.view[t+3]=255&e),r&&(this.offset+=4),this},o.writeInt=o.writeInt32,o.readInt32=function(e){var t,n=void 0===e;if(n&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+4>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+4) <= "+this.buffer.byteLength)}return t=0,this.littleEndian?(t=this.view[e+2]<<16,t|=this.view[e+1]<<8,t|=this.view[e],t+=this.view[e+3]<<24>>>0):(t=this.view[e+1]<<16,t|=this.view[e+2]<<8,t|=this.view[e+3],t+=this.view[e]<<24>>>0),t|=0,n&&(this.offset+=4),t},o.readInt=o.readInt32,o.writeUint32=function(e,t){var n,r=void 0===t;if(r&&(t=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal value: "+e+" (not an integer)");if(e>>>=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}return(t+=4)>(n=this.buffer.byteLength)&&this.resize((n*=2)>t?n:t),t-=4,this.littleEndian?(this.view[t+3]=255&e>>>24,this.view[t+2]=255&e>>>16,this.view[t+1]=255&e>>>8,this.view[t]=255&e):(this.view[t]=255&e>>>24,this.view[t+1]=255&e>>>16,this.view[t+2]=255&e>>>8,this.view[t+3]=255&e),r&&(this.offset+=4),this},o.writeUInt32=o.writeUint32,o.readUint32=function(e){var t,n=void 0===e;if(n&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+4>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+4) <= "+this.buffer.byteLength)}return t=0,this.littleEndian?(t=this.view[e+2]<<16,t|=this.view[e+1]<<8,t|=this.view[e],t+=this.view[e+3]<<24>>>0):(t=this.view[e+1]<<16,t|=this.view[e+2]<<8,t|=this.view[e+3],t+=this.view[e]<<24>>>0),n&&(this.offset+=4),t},o.readUInt32=o.readUint32,e&&(o.writeInt64=function(t,n){var r,i,o,s=void 0===n;if(s&&(n=this.offset),!this.noAssert){if("number"==typeof t)t=e.fromNumber(t);else if("string"==typeof t)t=e.fromString(t);else if(!(t&&t instanceof e))throw TypeError("Illegal value: "+t+" (not an integer or Long)");if("number"!=typeof n||n%1!=0)throw TypeError("Illegal offset: "+n+" (not an integer)");if((n>>>=0)<0||n+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+n+" (+0) <= "+this.buffer.byteLength)}return"number"==typeof t?t=e.fromNumber(t):"string"==typeof t&&(t=e.fromString(t)),(n+=8)>(r=this.buffer.byteLength)&&this.resize((r*=2)>n?r:n),n-=8,i=t.low,o=t.high,this.littleEndian?(this.view[n+3]=255&i>>>24,this.view[n+2]=255&i>>>16,this.view[n+1]=255&i>>>8,this.view[n]=255&i,n+=4,this.view[n+3]=255&o>>>24,this.view[n+2]=255&o>>>16,this.view[n+1]=255&o>>>8,this.view[n]=255&o):(this.view[n]=255&o>>>24,this.view[n+1]=255&o>>>16,this.view[n+2]=255&o>>>8,this.view[n+3]=255&o,n+=4,this.view[n]=255&i>>>24,this.view[n+1]=255&i>>>16,this.view[n+2]=255&i>>>8,this.view[n+3]=255&i),s&&(this.offset+=8),this},o.writeLong=o.writeInt64,o.readInt64=function(t){var n,r,i,o=void 0===t;if(o&&(t=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+8>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+8) <= "+this.buffer.byteLength)}return n=0,r=0,this.littleEndian?(n=this.view[t+2]<<16,n|=this.view[t+1]<<8,n|=this.view[t],n+=this.view[t+3]<<24>>>0,t+=4,r=this.view[t+2]<<16,r|=this.view[t+1]<<8,r|=this.view[t],r+=this.view[t+3]<<24>>>0):(r=this.view[t+1]<<16,r|=this.view[t+2]<<8,r|=this.view[t+3],r+=this.view[t]<<24>>>0,t+=4,n=this.view[t+1]<<16,n|=this.view[t+2]<<8,n|=this.view[t+3],n+=this.view[t]<<24>>>0),i=new e(n,r,!1),o&&(this.offset+=8),i},o.readLong=o.readInt64,o.writeUint64=function(t,n){var r,i,o,s=void 0===n;if(s&&(n=this.offset),!this.noAssert){if("number"==typeof t)t=e.fromNumber(t);else if("string"==typeof t)t=e.fromString(t);else if(!(t&&t instanceof e))throw TypeError("Illegal value: "+t+" (not an integer or Long)");if("number"!=typeof n||n%1!=0)throw TypeError("Illegal offset: "+n+" (not an integer)");if((n>>>=0)<0||n+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+n+" (+0) <= "+this.buffer.byteLength)}return"number"==typeof t?t=e.fromNumber(t):"string"==typeof t&&(t=e.fromString(t)),(n+=8)>(r=this.buffer.byteLength)&&this.resize((r*=2)>n?r:n),n-=8,i=t.low,o=t.high,this.littleEndian?(this.view[n+3]=255&i>>>24,this.view[n+2]=255&i>>>16,this.view[n+1]=255&i>>>8,this.view[n]=255&i,n+=4,this.view[n+3]=255&o>>>24,this.view[n+2]=255&o>>>16,this.view[n+1]=255&o>>>8,this.view[n]=255&o):(this.view[n]=255&o>>>24,this.view[n+1]=255&o>>>16,this.view[n+2]=255&o>>>8,this.view[n+3]=255&o,n+=4,this.view[n]=255&i>>>24,this.view[n+1]=255&i>>>16,this.view[n+2]=255&i>>>8,this.view[n+3]=255&i),s&&(this.offset+=8),this},o.writeUInt64=o.writeUint64,o.readUint64=function(t){var n,r,i,o=void 0===t;if(o&&(t=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+8>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+8) <= "+this.buffer.byteLength)}return n=0,r=0,this.littleEndian?(n=this.view[t+2]<<16,n|=this.view[t+1]<<8,n|=this.view[t],n+=this.view[t+3]<<24>>>0,t+=4,r=this.view[t+2]<<16,r|=this.view[t+1]<<8,r|=this.view[t],r+=this.view[t+3]<<24>>>0):(r=this.view[t+1]<<16,r|=this.view[t+2]<<8,r|=this.view[t+3],r+=this.view[t]<<24>>>0,t+=4,n=this.view[t+1]<<16,n|=this.view[t+2]<<8,n|=this.view[t+3],n+=this.view[t]<<24>>>0),i=new e(n,r,!0),o&&(this.offset+=8),i},o.readUInt64=o.readUint64),o.writeFloat32=function(e,t){var n,r=void 0===t;if(r&&(t=this.offset),!this.noAssert){if("number"!=typeof e)throw TypeError("Illegal value: "+e+" (not a number)");if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}return(t+=4)>(n=this.buffer.byteLength)&&this.resize((n*=2)>t?n:t),t-=4,i(this.view,e,t,this.littleEndian,23,4),r&&(this.offset+=4),this},o.writeFloat=o.writeFloat32,o.readFloat32=function(e){var t,n=void 0===e;if(n&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+4>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+4) <= "+this.buffer.byteLength)}return t=r(this.view,e,this.littleEndian,23,4),n&&(this.offset+=4),t},o.readFloat=o.readFloat32,o.writeFloat64=function(e,t){var n,r=void 0===t;if(r&&(t=this.offset),!this.noAssert){if("number"!=typeof e)throw TypeError("Illegal value: "+e+" (not a number)");if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}return(t+=8)>(n=this.buffer.byteLength)&&this.resize((n*=2)>t?n:t),t-=8,i(this.view,e,t,this.littleEndian,52,8),r&&(this.offset+=8),this},o.writeDouble=o.writeFloat64,o.readFloat64=function(e){var t,n=void 0===e;if(n&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+8>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+8) <= "+this.buffer.byteLength)}return t=r(this.view,e,this.littleEndian,52,8),n&&(this.offset+=8),t},o.readDouble=o.readFloat64,l.MAX_VARINT32_BYTES=5,l.calculateVarint32=function(e){return(e>>>=0)<128?1:e<16384?2:1<<21>e?3:1<<28>e?4:5},l.zigZagEncode32=function(e){return((e|=0)<<1^e>>31)>>>0},l.zigZagDecode32=function(e){return 0|e>>>1^-(1&e)},o.writeVarint32=function(e,t){var n,r,i,o=void 0===t;if(o&&(t=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal value: "+e+" (not an integer)");if(e|=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}for((t+=r=l.calculateVarint32(e))>(i=this.buffer.byteLength)&&this.resize((i*=2)>t?i:t),t-=r,e>>>=0;e>=128;)n=128|127&e,this.view[t++]=n,e>>>=7;return this.view[t++]=e,o?(this.offset=t,this):r},o.writeVarint32ZigZag=function(e,t){return this.writeVarint32(l.zigZagEncode32(e),t)},o.readVarint32=function(e){var t,n,r,i,o=void 0===e;if(o&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+1>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+1) <= "+this.buffer.byteLength)}n=0,r=0;do{if(!this.noAssert&&e>this.limit)throw(i=Error("Truncated")).truncated=!0,i;t=this.view[e++],n<5&&(r|=(127&t)<<7*n),++n}while(0!=(128&t));return r|=0,o?(this.offset=e,r):{value:r,length:n}},o.readVarint32ZigZag=function(e){var t=this.readVarint32(e);return"object"==typeof t?t.value=l.zigZagDecode32(t.value):t=l.zigZagDecode32(t),t},e&&(l.MAX_VARINT64_BYTES=10,l.calculateVarint64=function(t){"number"==typeof t?t=e.fromNumber(t):"string"==typeof t&&(t=e.fromString(t));var n=t.toInt()>>>0,r=t.shiftRightUnsigned(28).toInt()>>>0,i=t.shiftRightUnsigned(56).toInt()>>>0;return 0==i?0==r?n<16384?n<128?1:2:1<<21>n?3:4:r<16384?r<128?5:6:1<<21>r?7:8:i<128?9:10},l.zigZagEncode64=function(t){return"number"==typeof t?t=e.fromNumber(t,!1):"string"==typeof t?t=e.fromString(t,!1):!1!==t.unsigned&&(t=t.toSigned()),t.shiftLeft(1).xor(t.shiftRight(63)).toUnsigned()},l.zigZagDecode64=function(t){return"number"==typeof t?t=e.fromNumber(t,!1):"string"==typeof t?t=e.fromString(t,!1):!1!==t.unsigned&&(t=t.toSigned()),t.shiftRightUnsigned(1).xor(t.and(e.ONE).toSigned().negate()).toSigned()},o.writeVarint64=function(t,n){var r,i,o,s,a,c=void 0===n;if(c&&(n=this.offset),!this.noAssert){if("number"==typeof t)t=e.fromNumber(t);else if("string"==typeof t)t=e.fromString(t);else if(!(t&&t instanceof e))throw TypeError("Illegal value: "+t+" (not an integer or Long)");if("number"!=typeof n||n%1!=0)throw TypeError("Illegal offset: "+n+" (not an integer)");if((n>>>=0)<0||n+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+n+" (+0) <= "+this.buffer.byteLength)}switch("number"==typeof t?t=e.fromNumber(t,!1):"string"==typeof t?t=e.fromString(t,!1):!1!==t.unsigned&&(t=t.toSigned()),r=l.calculateVarint64(t),i=t.toInt()>>>0,o=t.shiftRightUnsigned(28).toInt()>>>0,s=t.shiftRightUnsigned(56).toInt()>>>0,(n+=r)>(a=this.buffer.byteLength)&&this.resize((a*=2)>n?a:n),n-=r,r){case 10:this.view[n+9]=1&s>>>7;case 9:this.view[n+8]=9!==r?128|s:127&s;case 8:this.view[n+7]=8!==r?128|o>>>21:127&o>>>21;case 7:this.view[n+6]=7!==r?128|o>>>14:127&o>>>14;case 6:this.view[n+5]=6!==r?128|o>>>7:127&o>>>7;case 5:this.view[n+4]=5!==r?128|o:127&o;case 4:this.view[n+3]=4!==r?128|i>>>21:127&i>>>21;case 3:this.view[n+2]=3!==r?128|i>>>14:127&i>>>14;case 2:this.view[n+1]=2!==r?128|i>>>7:127&i>>>7;case 1:this.view[n]=1!==r?128|i:127&i}return c?(this.offset+=r,this):r},o.writeVarint64ZigZag=function(e,t){return this.writeVarint64(l.zigZagEncode64(e),t)},o.readVarint64=function(t){var n,r,i,o,s,a,c=void 0===t;if(c&&(t=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+1>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+1) <= "+this.buffer.byteLength)}if(n=t,r=0,i=0,o=0,s=0,r=127&(s=this.view[t++]),128&s&&(r|=(127&(s=this.view[t++]))<<7,(128&s||this.noAssert&&void 0===s)&&(r|=(127&(s=this.view[t++]))<<14,(128&s||this.noAssert&&void 0===s)&&(r|=(127&(s=this.view[t++]))<<21,(128&s||this.noAssert&&void 0===s)&&(i=127&(s=this.view[t++]),(128&s||this.noAssert&&void 0===s)&&(i|=(127&(s=this.view[t++]))<<7,(128&s||this.noAssert&&void 0===s)&&(i|=(127&(s=this.view[t++]))<<14,(128&s||this.noAssert&&void 0===s)&&(i|=(127&(s=this.view[t++]))<<21,(128&s||this.noAssert&&void 0===s)&&(o=127&(s=this.view[t++]),(128&s||this.noAssert&&void 0===s)&&(o|=(127&(s=this.view[t++]))<<7,128&s||this.noAssert&&void 0===s))))))))))throw Error("Buffer overrun");return a=e.fromBits(r|i<<28,i>>>4|o<<24,!1),c?(this.offset=t,a):{value:a,length:t-n}},o.readVarint64ZigZag=function(t){var n=this.readVarint64(t);return n&&n.value instanceof e?n.value=l.zigZagDecode64(n.value):n=l.zigZagDecode64(n),n}),o.writeCString=function(e,n){var r,i,o,s=void 0===n;if(s&&(n=this.offset),i=e.length,!this.noAssert){if("string"!=typeof e)throw TypeError("Illegal str: Not a string");for(r=0;i>r;++r)if(0===e.charCodeAt(r))throw RangeError("Illegal str: Contains NULL-characters");if("number"!=typeof n||n%1!=0)throw TypeError("Illegal offset: "+n+" (not an integer)");if((n>>>=0)<0||n+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+n+" (+0) <= "+this.buffer.byteLength)}return i=u.calculateUTF16asUTF8(t(e))[1],n+=i+1,o=this.buffer.byteLength,n>o&&this.resize((o*=2)>n?o:n),n-=i+1,u.encodeUTF16toUTF8(t(e),function(e){this.view[n++]=e}.bind(this)),this.view[n++]=0,s?(this.offset=n,this):i},o.readCString=function(e){var t,r,i,o=void 0===e;if(o&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+1>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+1) <= "+this.buffer.byteLength)}return t=e,i=-1,u.decodeUTF8toUTF16(function(){if(0===i)return null;if(e>=this.limit)throw RangeError("Illegal range: Truncated data, "+e+" < "+this.limit);return 0===(i=this.view[e++])?null:i}.bind(this),r=n(),!0),o?(this.offset=e,r()):{string:r(),length:e-t}},o.writeIString=function(e,n){var r,i,o,s=void 0===n;if(s&&(n=this.offset),!this.noAssert){if("string"!=typeof e)throw TypeError("Illegal str: Not a string");if("number"!=typeof n||n%1!=0)throw TypeError("Illegal offset: "+n+" (not an integer)");if((n>>>=0)<0||n+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+n+" (+0) <= "+this.buffer.byteLength)}if(i=n,r=u.calculateUTF16asUTF8(t(e),this.noAssert)[1],n+=4+r,o=this.buffer.byteLength,n>o&&this.resize((o*=2)>n?o:n),n-=4+r,this.littleEndian?(this.view[n+3]=255&r>>>24,this.view[n+2]=255&r>>>16,this.view[n+1]=255&r>>>8,this.view[n]=255&r):(this.view[n]=255&r>>>24,this.view[n+1]=255&r>>>16,this.view[n+2]=255&r>>>8,this.view[n+3]=255&r),n+=4,u.encodeUTF16toUTF8(t(e),function(e){this.view[n++]=e}.bind(this)),n!==i+4+r)throw RangeError("Illegal range: Truncated data, "+n+" == "+(n+4+r));return s?(this.offset=n,this):n-i},o.readIString=function(e){var t,n,r,i=void 0===e;if(i&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+4>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+4) <= "+this.buffer.byteLength)}return t=e,n=this.readUint32(e),r=this.readUTF8String(n,l.METRICS_BYTES,e+=4),e+=r.length,i?(this.offset=e,r.string):{string:r.string,length:e-t}},l.METRICS_CHARS="c",l.METRICS_BYTES="b",o.writeUTF8String=function(e,n){var r,i,o,s=void 0===n;if(s&&(n=this.offset),!this.noAssert){if("number"!=typeof n||n%1!=0)throw TypeError("Illegal offset: "+n+" (not an integer)");if((n>>>=0)<0||n+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+n+" (+0) <= "+this.buffer.byteLength)}return i=n,r=u.calculateUTF16asUTF8(t(e))[1],n+=r,o=this.buffer.byteLength,n>o&&this.resize((o*=2)>n?o:n),n-=r,u.encodeUTF16toUTF8(t(e),function(e){this.view[n++]=e}.bind(this)),s?(this.offset=n,this):n-i},o.writeString=o.writeUTF8String,l.calculateUTF8Chars=function(e){return u.calculateUTF16asUTF8(t(e))[0]},l.calculateUTF8Bytes=function(e){return u.calculateUTF16asUTF8(t(e))[1]},l.calculateString=l.calculateUTF8Bytes,o.readUTF8String=function(e,t,r){var i,o,s,a,c;if("number"==typeof t&&(r=t,t=void 0),(i=void 0===r)&&(r=this.offset),void 0===t&&(t=l.METRICS_CHARS),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal length: "+e+" (not an integer)");if(e|=0,"number"!=typeof r||r%1!=0)throw TypeError("Illegal offset: "+r+" (not an integer)");if((r>>>=0)<0||r+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+r+" (+0) <= "+this.buffer.byteLength)}if(s=0,a=r,t===l.METRICS_CHARS){if(o=n(),u.decodeUTF8(function(){return e>s&&r<this.limit?this.view[r++]:null}.bind(this),(function(e){++s,u.UTF8toUTF16(e,o)})),s!==e)throw RangeError("Illegal range: Truncated data, "+s+" == "+e);return i?(this.offset=r,o()):{string:o(),length:r-a}}if(t===l.METRICS_BYTES){if(!this.noAssert){if("number"!=typeof r||r%1!=0)throw TypeError("Illegal offset: "+r+" (not an integer)");if((r>>>=0)<0||r+e>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+r+" (+"+e+") <= "+this.buffer.byteLength)}if(c=r+e,u.decodeUTF8toUTF16(function(){return c>r?this.view[r++]:null}.bind(this),o=n(),this.noAssert),r!==c)throw RangeError("Illegal range: Truncated data, "+r+" == "+c);return i?(this.offset=r,o()):{string:o(),length:r-a}}throw TypeError("Unsupported metrics: "+t)},o.readString=o.readUTF8String,o.writeVString=function(e,n){var r,i,o,s,a=void 0===n;if(a&&(n=this.offset),!this.noAssert){if("string"!=typeof e)throw TypeError("Illegal str: Not a string");if("number"!=typeof n||n%1!=0)throw TypeError("Illegal offset: "+n+" (not an integer)");if((n>>>=0)<0||n+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+n+" (+0) <= "+this.buffer.byteLength)}if(o=n,r=u.calculateUTF16asUTF8(t(e),this.noAssert)[1],i=l.calculateVarint32(r),n+=i+r,s=this.buffer.byteLength,n>s&&this.resize((s*=2)>n?s:n),n-=i+r,n+=this.writeVarint32(r,n),u.encodeUTF16toUTF8(t(e),function(e){this.view[n++]=e}.bind(this)),n!==o+r+i)throw RangeError("Illegal range: Truncated data, "+n+" == "+(n+r+i));return a?(this.offset=n,this):n-o},o.readVString=function(e){var t,n,r,i=void 0===e;if(i&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+1>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+1) <= "+this.buffer.byteLength)}return t=e,n=this.readVarint32(e),r=this.readUTF8String(n.value,l.METRICS_BYTES,e+=n.length),e+=r.length,i?(this.offset=e,r.string):{string:r.string,length:e-t}},o.append=function(e,t,n){var r,i,o;if(("number"==typeof t||"string"!=typeof t)&&(n=t,t=void 0),(r=void 0===n)&&(n=this.offset),!this.noAssert){if("number"!=typeof n||n%1!=0)throw TypeError("Illegal offset: "+n+" (not an integer)");if((n>>>=0)<0||n+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+n+" (+0) <= "+this.buffer.byteLength)}return e instanceof l||(e=l.wrap(e,t)),(i=e.limit-e.offset)<=0||((n+=i)>(o=this.buffer.byteLength)&&this.resize((o*=2)>n?o:n),n-=i,this.view.set(e.view.subarray(e.offset,e.limit),n),e.offset+=i,r&&(this.offset+=i)),this},o.appendTo=function(e,t){return e.append(this,t),this},o.assert=function(e){return this.noAssert=!e,this},o.capacity=function(){return this.buffer.byteLength},o.clear=function(){return this.offset=0,this.limit=this.buffer.byteLength,this.markedOffset=-1,this},o.clone=function(e){var t=new l(0,this.littleEndian,this.noAssert);return e?(t.buffer=new ArrayBuffer(this.buffer.byteLength),t.view=new Uint8Array(t.buffer)):(t.buffer=this.buffer,t.view=this.view),t.offset=this.offset,t.markedOffset=this.markedOffset,t.limit=this.limit,t},o.compact=function(e,t){var n,r,i;if(void 0===e&&(e=this.offset),void 0===t&&(t=this.limit),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal begin: Not an integer");if(e>>>=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal end: Not an integer");if(t>>>=0,e<0||e>t||t>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+e+" <= "+t+" <= "+this.buffer.byteLength)}return 0===e&&t===this.buffer.byteLength?this:0==(n=t-e)?(this.buffer=s,this.view=null,this.markedOffset>=0&&(this.markedOffset-=e),this.offset=0,this.limit=0,this):(r=new ArrayBuffer(n),(i=new Uint8Array(r)).set(this.view.subarray(e,t)),this.buffer=r,this.view=i,this.markedOffset>=0&&(this.markedOffset-=e),this.offset=0,this.limit=n,this)},o.copy=function(e,t){if(void 0===e&&(e=this.offset),void 0===t&&(t=this.limit),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal begin: Not an integer");if(e>>>=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal end: Not an integer");if(t>>>=0,e<0||e>t||t>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+e+" <= "+t+" <= "+this.buffer.byteLength)}if(e===t)return new l(0,this.littleEndian,this.noAssert);var n=t-e,r=new l(n,this.littleEndian,this.noAssert);return r.offset=0,r.limit=n,r.markedOffset>=0&&(r.markedOffset-=e),this.copyTo(r,0,e,t),r},o.copyTo=function(e,t,n,r){var i,o,s;if(!this.noAssert&&!l.isByteBuffer(e))throw TypeError("Illegal target: Not a ByteBuffer");if(t=(o=void 0===t)?e.offset:0|t,n=(i=void 0===n)?this.offset:0|n,r=void 0===r?this.limit:0|r,t<0||t>e.buffer.byteLength)throw RangeError("Illegal target range: 0 <= "+t+" <= "+e.buffer.byteLength);if(n<0||r>this.buffer.byteLength)throw RangeError("Illegal source range: 0 <= "+n+" <= "+this.buffer.byteLength);return 0==(s=r-n)?e:(e.ensureCapacity(t+s),e.view.set(this.view.subarray(n,r),t),i&&(this.offset+=s),o&&(e.offset+=s),this)},o.ensureCapacity=function(e){var t=this.buffer.byteLength;return e>t?this.resize((t*=2)>e?t:e):this},o.fill=function(e,t,n){var r=void 0===t;if(r&&(t=this.offset),"string"==typeof e&&e.length>0&&(e=e.charCodeAt(0)),void 0===t&&(t=this.offset),void 0===n&&(n=this.limit),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal value: "+e+" (not an integer)");if(e|=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal begin: Not an integer");if(t>>>=0,"number"!=typeof n||n%1!=0)throw TypeError("Illegal end: Not an integer");if(n>>>=0,t<0||t>n||n>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+t+" <= "+n+" <= "+this.buffer.byteLength)}if(t>=n)return this;for(;n>t;)this.view[t++]=e;return r&&(this.offset=t),this},o.flip=function(){return this.limit=this.offset,this.offset=0,this},o.mark=function(e){if(e=void 0===e?this.offset:e,!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+0) <= "+this.buffer.byteLength)}return this.markedOffset=e,this},o.order=function(e){if(!this.noAssert&&"boolean"!=typeof e)throw TypeError("Illegal littleEndian: Not a boolean");return this.littleEndian=!!e,this},o.LE=function(e){return this.littleEndian=void 0===e||!!e,this},o.BE=function(e){return this.littleEndian=void 0!==e&&!e,this},o.prepend=function(e,t,n){var r,i,o,s,a;if(("number"==typeof t||"string"!=typeof t)&&(n=t,t=void 0),(r=void 0===n)&&(n=this.offset),!this.noAssert){if("number"!=typeof n||n%1!=0)throw TypeError("Illegal offset: "+n+" (not an integer)");if((n>>>=0)<0||n+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+n+" (+0) <= "+this.buffer.byteLength)}return e instanceof l||(e=l.wrap(e,t)),(i=e.limit-e.offset)<=0||((o=i-n)>0?(s=new ArrayBuffer(this.buffer.byteLength+o),(a=new Uint8Array(s)).set(this.view.subarray(n,this.buffer.byteLength),i),this.buffer=s,this.view=a,this.offset+=o,this.markedOffset>=0&&(this.markedOffset+=o),this.limit+=o,n+=o):new Uint8Array(this.buffer),this.view.set(e.view.subarray(e.offset,e.limit),n-i),e.offset=e.limit,r&&(this.offset-=i)),this},o.prependTo=function(e,t){return e.prepend(this,t),this},o.printDebug=function(e){"function"!=typeof e&&(e=console.log.bind(console)),e(this.toString()+"\n-------------------------------------------------------------------\n"+this.toDebug(!0))},o.remaining=function(){return this.limit-this.offset},o.reset=function(){return this.markedOffset>=0?(this.offset=this.markedOffset,this.markedOffset=-1):this.offset=0,this},o.resize=function(e){var t,n;if(!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal capacity: "+e+" (not an integer)");if((e|=0)<0)throw RangeError("Illegal capacity: 0 <= "+e)}return this.buffer.byteLength<e&&(t=new ArrayBuffer(e),(n=new Uint8Array(t)).set(this.view),this.buffer=t,this.view=n),this},o.reverse=function(e,t){if(void 0===e&&(e=this.offset),void 0===t&&(t=this.limit),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal begin: Not an integer");if(e>>>=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal end: Not an integer");if(t>>>=0,e<0||e>t||t>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+e+" <= "+t+" <= "+this.buffer.byteLength)}return e===t||Array.prototype.reverse.call(this.view.subarray(e,t)),this},o.skip=function(e){if(!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal length: "+e+" (not an integer)");e|=0}var t=this.offset+e;if(!this.noAssert&&(t<0||t>this.buffer.byteLength))throw RangeError("Illegal length: 0 <= "+this.offset+" + "+e+" <= "+this.buffer.byteLength);return this.offset=t,this},o.slice=function(e,t){if(void 0===e&&(e=this.offset),void 0===t&&(t=this.limit),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal begin: Not an integer");if(e>>>=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal end: Not an integer");if(t>>>=0,e<0||e>t||t>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+e+" <= "+t+" <= "+this.buffer.byteLength)}var n=this.clone();return n.offset=e,n.limit=t,n},o.toBuffer=function(e){var t,n=this.offset,r=this.limit;if(!this.noAssert){if("number"!=typeof n||n%1!=0)throw TypeError("Illegal offset: Not an integer");if(n>>>=0,"number"!=typeof r||r%1!=0)throw TypeError("Illegal limit: Not an integer");if(r>>>=0,n<0||n>r||r>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+n+" <= "+r+" <= "+this.buffer.byteLength)}return e||0!==n||r!==this.buffer.byteLength?n===r?s:(t=new ArrayBuffer(r-n),new Uint8Array(t).set(new Uint8Array(this.buffer).subarray(n,r),0),t):this.buffer},o.toArrayBuffer=o.toBuffer,o.toString=function(e,t,n){if(void 0===e)return"ByteBufferAB(offset="+this.offset+",markedOffset="+this.markedOffset+",limit="+this.limit+",capacity="+this.capacity()+")";switch("number"==typeof e&&(n=t=e="utf8"),e){case"utf8":return this.toUTF8(t,n);case"base64":return this.toBase64(t,n);case"hex":return this.toHex(t,n);case"binary":return this.toBinary(t,n);case"debug":return this.toDebug();case"columns":return this.toColumns();default:throw Error("Unsupported encoding: "+e)}},c=function(){var e,t,n={},r=[65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,48,49,50,51,52,53,54,55,56,57,43,47],i=[];for(e=0,t=r.length;t>e;++e)i[r[e]]=e;return n.encode=function(e,t){for(var n,i;null!==(n=e());)t(r[63&n>>2]),i=(3&n)<<4,null!==(n=e())?(t(r[63&((i|=15&n>>4)|15&n>>4)]),i=(15&n)<<2,null!==(n=e())?(t(r[63&(i|3&n>>6)]),t(r[63&n])):(t(r[63&i]),t(61))):(t(r[63&i]),t(61),t(61))},n.decode=function(e,t){function n(e){throw Error("Illegal character code: "+e)}for(var r,o,s;null!==(r=e());)if(void 0===(o=i[r])&&n(r),null!==(r=e())&&(void 0===(s=i[r])&&n(r),t(o<<2>>>0|(48&s)>>4),null!==(r=e()))){if(void 0===(o=i[r])){if(61===r)break;n(r)}if(t((15&s)<<4>>>0|(60&o)>>2),null!==(r=e())){if(void 0===(s=i[r])){if(61===r)break;n(r)}t((3&o)<<6>>>0|s)}}},n.test=function(e){return/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/.test(e)},n}(),o.toBase64=function(e,t){if(void 0===e&&(e=this.offset),void 0===t&&(t=this.limit),t|=0,(e|=0)<0||t>this.capacity||e>t)throw RangeError("begin, end");var r;return c.encode(function(){return t>e?this.view[e++]:null}.bind(this),r=n()),r()},l.fromBase64=function(e,n){if("string"!=typeof e)throw TypeError("str");var r=new l(e.length/4*3,n),i=0;return c.decode(t(e),(function(e){r.view[i++]=e})),r.limit=i,r},l.btoa=function(e){return l.fromBinary(e).toBase64()},l.atob=function(e){return l.fromBase64(e).toBinary()},o.toBinary=function(e,t){if(void 0===e&&(e=this.offset),void 0===t&&(t=this.limit),t|=0,(e|=0)<0||t>this.capacity()||e>t)throw RangeError("begin, end");if(e===t)return"";for(var n=[],r=[];t>e;)n.push(this.view[e++]),n.length>=1024&&(r.push(String.fromCharCode.apply(String,n)),n=[]);return r.join("")+String.fromCharCode.apply(String,n)},l.fromBinary=function(e,t){if("string"!=typeof e)throw TypeError("str");for(var n,r=0,i=e.length,o=new l(i,t);i>r;){if((n=e.charCodeAt(r))>255)throw RangeError("illegal char code: "+n);o.view[r++]=n}return o.limit=i,o},o.toDebug=function(e){for(var t,n=-1,r=this.buffer.byteLength,i="",o="",s="";r>n;){if(-1!==n&&(i+=(t=this.view[n])<16?"0"+t.toString(16).toUpperCase():t.toString(16).toUpperCase(),e&&(o+=t>32&&t<127?String.fromCharCode(t):".")),++n,e&&n>0&&n%16==0&&n!==r){for(;i.length<51;)i+=" ";s+=i+o+"\n",i=o=""}i+=n===this.offset&&n===this.limit?n===this.markedOffset?"!":"|":n===this.offset?n===this.markedOffset?"[":"<":n===this.limit?n===this.markedOffset?"]":">":n===this.markedOffset?"'":e||0!==n&&n!==r?" ":""}if(e&&" "!==i){for(;i.length<51;)i+=" ";s+=i+o+"\n"}return e?s:i},l.fromDebug=function(e,t,n){for(var r,i,o=e.length,s=new l(0|(o+1)/3,t,n),a=0,c=0,u=!1,f=!1,h=!1,d=!1,p=!1;o>a;){switch(r=e.charAt(a++)){case"!":if(!n){if(f||h||d){p=!0;break}f=h=d=!0}s.offset=s.markedOffset=s.limit=c,u=!1;break;case"|":if(!n){if(f||d){p=!0;break}f=d=!0}s.offset=s.limit=c,u=!1;break;case"[":if(!n){if(f||h){p=!0;break}f=h=!0}s.offset=s.markedOffset=c,u=!1;break;case"<":if(!n){if(f){p=!0;break}f=!0}s.offset=c,u=!1;break;case"]":if(!n){if(d||h){p=!0;break}d=h=!0}s.limit=s.markedOffset=c,u=!1;break;case">":if(!n){if(d){p=!0;break}d=!0}s.limit=c,u=!1;break;case"'":if(!n){if(h){p=!0;break}h=!0}s.markedOffset=c,u=!1;break;case" ":u=!1;break;default:if(!n&&u){p=!0;break}if(i=parseInt(r+e.charAt(a++),16),!n&&(isNaN(i)||i<0||i>255))throw TypeError("Illegal str: Not a debug encoded string");s.view[c++]=i,u=!0}if(p)throw TypeError("Illegal str: Invalid symbol at "+a)}if(!n){if(!f||!d)throw TypeError("Illegal str: Missing offset or limit");if(c<s.buffer.byteLength)throw TypeError("Illegal str: Not a debug encoded string (is it hex?) "+c+" < "+o)}return s},o.toHex=function(e,t){if(e=void 0===e?this.offset:e,t=void 0===t?this.limit:t,!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal begin: Not an integer");if(e>>>=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal end: Not an integer");if(t>>>=0,e<0||e>t||t>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+e+" <= "+t+" <= "+this.buffer.byteLength)}for(var n,r=new Array(t-e);t>e;)(n=this.view[e++])<16?r.push("0",n.toString(16)):r.push(n.toString(16));return r.join("")},l.fromHex=function(e,t,n){var r,i,o,s,a;if(!n){if("string"!=typeof e)throw TypeError("Illegal str: Not a string");if(e.length%2!=0)throw TypeError("Illegal str: Length not a multiple of 2")}for(i=e.length,o=new l(0|i/2,t),s=0,a=0;i>s;s+=2){if(r=parseInt(e.substring(s,s+2),16),!n&&(!isFinite(r)||r<0||r>255))throw TypeError("Illegal str: Contains non-hex characters");o.view[a++]=r}return o.limit=a,o},u=function(){var e={MAX_CODEPOINT:1114111,encodeUTF8:function(e,t){var n=null;for("number"==typeof e&&(n=e,e=function(){return null});null!==n||null!==(n=e());)n<128?t(127&n):n<2048?(t(192|31&n>>6),t(128|63&n)):n<65536?(t(224|15&n>>12),t(128|63&n>>6),t(128|63&n)):(t(240|7&n>>18),t(128|63&n>>12),t(128|63&n>>6),t(128|63&n)),n=null},decodeUTF8:function(e,t){for(var n,r,i,o,s=function(e){e=e.slice(0,e.indexOf(null));var t=Error(e.toString());throw t.name="TruncatedError",t.bytes=e,t};null!==(n=e());)if(0==(128&n))t(n);else if(192==(224&n))null===(r=e())&&s([n,r]),t((31&n)<<6|63&r);else if(224==(240&n))(null===(r=e())||null===(i=e()))&&s([n,r,i]),t((15&n)<<12|(63&r)<<6|63&i);else{if(240!=(248&n))throw RangeError("Illegal starting byte: "+n);(null===(r=e())||null===(i=e())||null===(o=e()))&&s([n,r,i,o]),t((7&n)<<18|(63&r)<<12|(63&i)<<6|63&o)}},UTF16toUTF8:function(e,t){for(var n,r=null;null!==(n=null!==r?r:e());)n>=55296&&n<=57343&&null!==(r=e())&&r>=56320&&r<=57343?(t(1024*(n-55296)+r-56320+65536),r=null):t(n);null!==r&&t(r)},UTF8toUTF16:function(e,t){var n=null;for("number"==typeof e&&(n=e,e=function(){return null});null!==n||null!==(n=e());)n<=65535?t(n):(t(55296+((n-=65536)>>10)),t(n%1024+56320)),n=null},encodeUTF16toUTF8:function(t,n){e.UTF16toUTF8(t,(function(t){e.encodeUTF8(t,n)}))},decodeUTF8toUTF16:function(t,n){e.decodeUTF8(t,(function(t){e.UTF8toUTF16(t,n)}))},calculateCodePoint:function(e){return e<128?1:e<2048?2:e<65536?3:4},calculateUTF8:function(e){for(var t,n=0;null!==(t=e());)n+=t<128?1:t<2048?2:t<65536?3:4;return n},calculateUTF16asUTF8:function(t){var n=0,r=0;return e.UTF16toUTF8(t,(function(e){++n,r+=e<128?1:e<2048?2:e<65536?3:4})),[n,r]}};return e}(),o.toUTF8=function(e,t){if(void 0===e&&(e=this.offset),void 0===t&&(t=this.limit),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal begin: Not an integer");if(e>>>=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal end: Not an integer");if(t>>>=0,e<0||e>t||t>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+e+" <= "+t+" <= "+this.buffer.byteLength)}var r;try{u.decodeUTF8toUTF16(function(){return t>e?this.view[e++]:null}.bind(this),r=n())}catch(n){if(e!==t)throw RangeError("Illegal range: Truncated data, "+e+" != "+t)}return r()},l.fromUTF8=function(e,n,r){if(!r&&"string"!=typeof e)throw TypeError("Illegal str: Not a string");var i=new l(u.calculateUTF16asUTF8(t(e),!0)[1],n,r),o=0;return u.encodeUTF16toUTF8(t(e),(function(e){i.view[o++]=e})),i.limit=o,i},l}(Wr),Zr=function(t,n){var r,i,o={};return o.ByteBuffer=t,o.c=t,r=t,o.Long=n||null,o.VERSION="5.0.1",o.WIRE_TYPES={},o.WIRE_TYPES.VARINT=0,o.WIRE_TYPES.BITS64=1,o.WIRE_TYPES.LDELIM=2,o.WIRE_TYPES.STARTGROUP=3,o.WIRE_TYPES.ENDGROUP=4,o.WIRE_TYPES.BITS32=5,o.PACKABLE_WIRE_TYPES=[o.WIRE_TYPES.VARINT,o.WIRE_TYPES.BITS64,o.WIRE_TYPES.BITS32],o.TYPES={int32:{name:"int32",wireType:o.WIRE_TYPES.VARINT,defaultValue:0},uint32:{name:"uint32",wireType:o.WIRE_TYPES.VARINT,defaultValue:0},sint32:{name:"sint32",wireType:o.WIRE_TYPES.VARINT,defaultValue:0},int64:{name:"int64",wireType:o.WIRE_TYPES.VARINT,defaultValue:o.Long?o.Long.ZERO:void 0},uint64:{name:"uint64",wireType:o.WIRE_TYPES.VARINT,defaultValue:o.Long?o.Long.UZERO:void 0},sint64:{name:"sint64",wireType:o.WIRE_TYPES.VARINT,defaultValue:o.Long?o.Long.ZERO:void 0},bool:{name:"bool",wireType:o.WIRE_TYPES.VARINT,defaultValue:!1},double:{name:"double",wireType:o.WIRE_TYPES.BITS64,defaultValue:0},string:{name:"string",wireType:o.WIRE_TYPES.LDELIM,defaultValue:""},bytes:{name:"bytes",wireType:o.WIRE_TYPES.LDELIM,defaultValue:null},fixed32:{name:"fixed32",wireType:o.WIRE_TYPES.BITS32,defaultValue:0},sfixed32:{name:"sfixed32",wireType:o.WIRE_TYPES.BITS32,defaultValue:0},fixed64:{name:"fixed64",wireType:o.WIRE_TYPES.BITS64,defaultValue:o.Long?o.Long.UZERO:void 0},sfixed64:{name:"sfixed64",wireType:o.WIRE_TYPES.BITS64,defaultValue:o.Long?o.Long.ZERO:void 0},float:{name:"float",wireType:o.WIRE_TYPES.BITS32,defaultValue:0},enum:{name:"enum",wireType:o.WIRE_TYPES.VARINT,defaultValue:0},message:{name:"message",wireType:o.WIRE_TYPES.LDELIM,defaultValue:null},group:{name:"group",wireType:o.WIRE_TYPES.STARTGROUP,defaultValue:null}},o.MAP_KEY_TYPES=[o.TYPES.int32,o.TYPES.sint32,o.TYPES.sfixed32,o.TYPES.uint32,o.TYPES.fixed32,o.TYPES.int64,o.TYPES.sint64,o.TYPES.sfixed64,o.TYPES.uint64,o.TYPES.fixed64,o.TYPES.bool,o.TYPES.string,o.TYPES.bytes],o.ID_MIN=1,o.ID_MAX=536870911,o.convertFieldsToCamelCase=!1,o.populateAccessors=!0,o.populateDefaults=!0,o.Util=function(){var t={};return t.IS_NODE=!("object"!=typeof e||e+""!="[object process]"||e.browser),t.XHR=function(){var e,t=[function(){return new XMLHttpRequest},function(){return new ActiveXObject("Msxml2.XMLHTTP")},function(){return new ActiveXObject("Msxml3.XMLHTTP")},function(){return new ActiveXObject("Microsoft.XMLHTTP")}],n=null;for(e=0;e<t.length;e++){try{n=t[e]()}catch(e){continue}break}if(!n)throw Error("XMLHttpRequest is not supported");return n},t.fetch=function(e,n){if(n&&"function"!=typeof n&&(n=null),t.IS_NODE)if(n)g.readFile(e,(function(e,t){n(e?null:""+t)}));else try{return g.readFileSync(e)}catch(t){return null}else{var r=t.XHR();if(r.open("GET",e,!!n),r.setRequestHeader("Accept","text/plain"),"function"==typeof r.overrideMimeType&&r.overrideMimeType("text/plain"),!n)return r.send(null),200==r.status||0==r.status&&"string"==typeof r.responseText?r.responseText:null;if(r.onreadystatechange=function(){4==r.readyState&&(200==r.status||0==r.status&&"string"==typeof r.responseText?n(r.responseText):n(null))},4==r.readyState)return;r.send(null)}},t.toCamelCase=function(e){return e.replace(/_([a-zA-Z])/g,(function(e,t){return t.toUpperCase()}))},t}(),o.Lang={DELIM:/[\s\{\}=;:\[\],'"\(\)<>]/g,RULE:/^(?:required|optional|repeated|map)$/,TYPE:/^(?:double|float|int32|uint32|sint32|int64|uint64|sint64|fixed32|sfixed32|fixed64|sfixed64|bool|string|bytes)$/,NAME:/^[a-zA-Z_][a-zA-Z_0-9]*$/,TYPEDEF:/^[a-zA-Z][a-zA-Z_0-9]*$/,TYPEREF:/^(?:\.?[a-zA-Z_][a-zA-Z_0-9]*)+$/,FQTYPEREF:/^(?:\.[a-zA-Z][a-zA-Z_0-9]*)+$/,NUMBER:/^-?(?:[1-9][0-9]*|0|0[xX][0-9a-fA-F]+|0[0-7]+|([0-9]*(\.[0-9]*)?([Ee][+-]?[0-9]+)?)|inf|nan)$/,NUMBER_DEC:/^(?:[1-9][0-9]*|0)$/,NUMBER_HEX:/^0[xX][0-9a-fA-F]+$/,NUMBER_OCT:/^0[0-7]+$/,NUMBER_FLT:/^([0-9]*(\.[0-9]*)?([Ee][+-]?[0-9]+)?|inf|nan)$/,BOOL:/^(?:true|false)$/i,ID:/^(?:[1-9][0-9]*|0|0[xX][0-9a-fA-F]+|0[0-7]+)$/,NEGID:/^\-?(?:[1-9][0-9]*|0|0[xX][0-9a-fA-F]+|0[0-7]+)$/,WHITESPACE:/\s/,STRING:/(?:"([^"\\]*(?:\\.[^"\\]*)*)")|(?:'([^'\\]*(?:\\.[^'\\]*)*)')/g,STRING_DQ:/(?:"([^"\\]*(?:\\.[^"\\]*)*)")/g,STRING_SQ:/(?:'([^'\\]*(?:\\.[^'\\]*)*)')/g},o.DotProto=function(e,t){function n(e,n){var r=-1,i=1;if("-"==e.charAt(0)&&(i=-1,e=e.substring(1)),t.NUMBER_DEC.test(e))r=parseInt(e);else if(t.NUMBER_HEX.test(e))r=parseInt(e.substring(2),16);else{if(!t.NUMBER_OCT.test(e))throw Error("illegal id value: "+(i<0?"-":"")+e);r=parseInt(e.substring(1),8)}if(r=0|i*r,!n&&r<0)throw Error("illegal id value: "+(i<0?"-":"")+e);return r}function r(e){var n=1;if("-"==e.charAt(0)&&(n=-1,e=e.substring(1)),t.NUMBER_DEC.test(e))return n*parseInt(e,10);if(t.NUMBER_HEX.test(e))return n*parseInt(e.substring(2),16);if(t.NUMBER_OCT.test(e))return n*parseInt(e.substring(1),8);if("inf"===e)return 1/0*n;if("nan"===e)return NaN;if(t.NUMBER_FLT.test(e))return n*parseFloat(e);throw Error("illegal number value: "+(n<0?"-":"")+e)}function i(e,t,n){void 0===e[t]?e[t]=n:(Array.isArray(e[t])||(e[t]=[e[t]]),e[t].push(n))}var o,s,a={},c=function(e){this.source=e+"",this.index=0,this.line=1,this.stack=[],this._stringOpen=null},u=c.prototype;return u._readString=function(){var e,n='"'===this._stringOpen?t.STRING_DQ:t.STRING_SQ;if(n.lastIndex=this.index-1,!(e=n.exec(this.source)))throw Error("unterminated string");return this.index=n.lastIndex,this.stack.push(this._stringOpen),this._stringOpen=null,e[1]},u.next=function(){var e,n,r,i,o;if(this.stack.length>0)return this.stack.shift();if(this.index>=this.source.length)return null;if(null!==this._stringOpen)return this._readString();do{for(e=!1;t.WHITESPACE.test(r=this.source.charAt(this.index));)if("\n"===r&&++this.line,++this.index===this.source.length)return null;if("/"===this.source.charAt(this.index))if(++this.index,"/"===this.source.charAt(this.index)){for(;"\n"!==this.source.charAt(++this.index);)if(this.index==this.source.length)return null;++this.index,++this.line,e=!0}else{if("*"!==(r=this.source.charAt(this.index)))return"/";do{if("\n"===r&&++this.line,++this.index===this.source.length)return null;n=r,r=this.source.charAt(this.index)}while("*"!==n||"/"!==r);++this.index,e=!0}}while(e);if(this.index===this.source.length)return null;if(i=this.index,t.DELIM.lastIndex=0,!t.DELIM.test(this.source.charAt(i++)))for(;i<this.source.length&&!t.DELIM.test(this.source.charAt(i));)++i;return('"'===(o=this.source.substring(this.index,this.index=i))||"'"===o)&&(this._stringOpen=o),o},u.peek=function(){if(0===this.stack.length){var e=this.next();if(null===e)return null;this.stack.push(e)}return this.stack[0]},u.skip=function(e){var t=this.next();if(t!==e)throw Error("illegal '"+t+"', '"+e+"' expected")},u.omit=function(e){return this.peek()===e&&(this.next(),!0)},u.toString=function(){return"Tokenizer ("+this.index+"/"+this.source.length+" at line "+this.line+")"},a.Tokenizer=c,o=function(e){this.tn=new c(e),this.proto3=!1},(s=o.prototype).parse=function(){var e,n={name:"[ROOT]",package:null,messages:[],enums:[],imports:[],options:{},services:[]},r=!0;try{for(;e=this.tn.next();)switch(e){case"package":if(!r||null!==n.package)throw Error("unexpected 'package'");if(e=this.tn.next(),!t.TYPEREF.test(e))throw Error("illegal package name: "+e);this.tn.skip(";"),n.package=e;break;case"import":if(!r)throw Error("unexpected 'import'");"public"===(e=this.tn.peek())&&this.tn.next(),e=this._readString(),this.tn.skip(";"),n.imports.push(e);break;case"syntax":if(!r)throw Error("unexpected 'syntax'");this.tn.skip("="),"proto3"===(n.syntax=this._readString())&&(this.proto3=!0),this.tn.skip(";");break;case"message":this._parseMessage(n,null),r=!1;break;case"enum":this._parseEnum(n),r=!1;break;case"option":this._parseOption(n);break;case"service":this._parseService(n);break;case"extend":this._parseExtend(n);break;default:throw Error("unexpected '"+e+"'")}}catch(e){throw e.message="Parse error at line "+this.tn.line+": "+e.message,e}return delete n.name,n},o.parse=function(e){return new o(e).parse()},s._readString=function(){var e,t,n="";do{if("'"!==(t=this.tn.next())&&'"'!==t)throw Error("illegal string delimiter: "+t);n+=this.tn.next(),this.tn.skip(t),e=this.tn.peek()}while('"'===e||'"'===e);return n},s._readValue=function(e){var n=this.tn.peek();if('"'===n||"'"===n)return this._readString();if(this.tn.next(),t.NUMBER.test(n))return r(n);if(t.BOOL.test(n))return"true"===n.toLowerCase();if(e&&t.TYPEREF.test(n))return n;throw Error("illegal value: "+n)},s._parseOption=function(e,n){var r,i=this.tn.next(),o=!1;if("("===i&&(o=!0,i=this.tn.next()),!t.TYPEREF.test(i))throw Error("illegal option name: "+i);r=i,o&&(this.tn.skip(")"),r="("+r+")",i=this.tn.peek(),t.FQTYPEREF.test(i)&&(r+=i,this.tn.next())),this.tn.skip("="),this._parseOptionValue(e,r),n||this.tn.skip(";")},s._parseOptionValue=function(e,n){var r=this.tn.peek();if("{"!==r)i(e.options,n,this._readValue(!0));else for(this.tn.skip("{");"}"!==(r=this.tn.next());){if(!t.NAME.test(r))throw Error("illegal option name: "+n+"."+r);this.tn.omit(":")?i(e.options,n+"."+r,this._readValue(!0)):this._parseOptionValue(e,n+"."+r)}},s._parseService=function(e){var n,r=this.tn.next();if(!t.NAME.test(r))throw Error("illegal service name at line "+this.tn.line+": "+r);for(n={name:r,rpc:{},options:{}},this.tn.skip("{");"}"!==(r=this.tn.next());)if("option"===r)this._parseOption(n);else{if("rpc"!==r)throw Error("illegal service token: "+r);this._parseServiceRPC(n)}this.tn.omit(";"),e.services.push(n)},s._parseServiceRPC=function(e){var n,r,i="rpc",o=this.tn.next();if(!t.NAME.test(o))throw Error("illegal rpc service method name: "+o);if(n=o,r={request:null,response:null,request_stream:!1,response_stream:!1,options:{}},this.tn.skip("("),"stream"===(o=this.tn.next()).toLowerCase()&&(r.request_stream=!0,o=this.tn.next()),!t.TYPEREF.test(o))throw Error("illegal rpc service request type: "+o);if(r.request=o,this.tn.skip(")"),"returns"!==(o=this.tn.next()).toLowerCase())throw Error("illegal rpc service request type delimiter: "+o);if(this.tn.skip("("),"stream"===(o=this.tn.next()).toLowerCase()&&(r.response_stream=!0,o=this.tn.next()),r.response=o,this.tn.skip(")"),"{"===(o=this.tn.peek())){for(this.tn.next();"}"!==(o=this.tn.next());){if("option"!==o)throw Error("illegal rpc service token: "+o);this._parseOption(r)}this.tn.omit(";")}else this.tn.skip(";");void 0===e[i]&&(e[i]={}),e[i][n]=r},s._parseMessage=function(e,r){var i=!!r,o=this.tn.next(),s={name:"",fields:[],enums:[],messages:[],options:{},services:[],oneofs:{}};if(!t.NAME.test(o))throw Error("illegal "+(i?"group":"message")+" name: "+o);for(s.name=o,i&&(this.tn.skip("="),r.id=n(this.tn.next()),s.isGroup=!0),"["===(o=this.tn.peek())&&r&&this._parseFieldOptions(r),this.tn.skip("{");"}"!==(o=this.tn.next());)if(t.RULE.test(o))this._parseMessageField(s,o);else if("oneof"===o)this._parseMessageOneOf(s);else if("enum"===o)this._parseEnum(s);else if("message"===o)this._parseMessage(s);else if("option"===o)this._parseOption(s);else if("service"===o)this._parseService(s);else if("extensions"===o)s.extensions=this._parseExtensionRanges();else if("reserved"===o)this._parseIgnored();else if("extend"===o)this._parseExtend(s);else{if(!t.TYPEREF.test(o))throw Error("illegal message token: "+o);if(!this.proto3)throw Error("illegal field rule: "+o);this._parseMessageField(s,"optional",o)}return this.tn.omit(";"),e.messages.push(s),s},s._parseIgnored=function(){for(;";"!==this.tn.peek();)this.tn.next();this.tn.skip(";")},s._parseMessageField=function(e,r,i){var o,s,a;if(!t.RULE.test(r))throw Error("illegal message field rule: "+r);if(o={rule:r,type:"",name:"",options:{},id:0},"map"===r){if(i)throw Error("illegal type: "+i);if(this.tn.skip("<"),s=this.tn.next(),!t.TYPE.test(s)&&!t.TYPEREF.test(s))throw Error("illegal message field type: "+s);if(o.keytype=s,this.tn.skip(","),s=this.tn.next(),!t.TYPE.test(s)&&!t.TYPEREF.test(s))throw Error("illegal message field: "+s);if(o.type=s,this.tn.skip(">"),s=this.tn.next(),!t.NAME.test(s))throw Error("illegal message field name: "+s);o.name=s,this.tn.skip("="),o.id=n(this.tn.next()),"["===(s=this.tn.peek())&&this._parseFieldOptions(o),this.tn.skip(";")}else if("group"===(i=void 0!==i?i:this.tn.next())){if(a=this._parseMessage(e,o),!/^[A-Z]/.test(a.name))throw Error("illegal group name: "+a.name);o.type=a.name,o.name=a.name.toLowerCase(),this.tn.omit(";")}else{if(!t.TYPE.test(i)&&!t.TYPEREF.test(i))throw Error("illegal message field type: "+i);if(o.type=i,s=this.tn.next(),!t.NAME.test(s))throw Error("illegal message field name: "+s);o.name=s,this.tn.skip("="),o.id=n(this.tn.next()),"["===(s=this.tn.peek())&&this._parseFieldOptions(o),this.tn.skip(";")}return e.fields.push(o),o},s._parseMessageOneOf=function(e){var n,r,i,o=this.tn.next();if(!t.NAME.test(o))throw Error("illegal oneof name: "+o);for(r=o,i=[],this.tn.skip("{");"}"!==(o=this.tn.next());)(n=this._parseMessageField(e,"optional",o)).oneof=r,i.push(n.id);this.tn.omit(";"),e.oneofs[r]=i},s._parseFieldOptions=function(e){this.tn.skip("[");for(var t=!0;"]"!==this.tn.peek();)t||this.tn.skip(","),this._parseOption(e,!0),t=!1;this.tn.next()},s._parseEnum=function(e){var r,i={name:"",values:[],options:{}},o=this.tn.next();if(!t.NAME.test(o))throw Error("illegal name: "+o);for(i.name=o,this.tn.skip("{");"}"!==(o=this.tn.next());)if("option"===o)this._parseOption(i);else{if(!t.NAME.test(o))throw Error("illegal name: "+o);this.tn.skip("="),r={name:o,id:n(this.tn.next(),!0)},"["===(o=this.tn.peek())&&this._parseFieldOptions({options:{}}),this.tn.skip(";"),i.values.push(r)}this.tn.omit(";"),e.enums.push(i)},s._parseExtensionRanges=function(){var t,n,i,o=[];do{for(n=[];;){switch(t=this.tn.next()){case"min":i=e.ID_MIN;break;case"max":i=e.ID_MAX;break;default:i=r(t)}if(n.push(i),2===n.length)break;if("to"!==this.tn.peek()){n.push(i);break}this.tn.next()}o.push(n)}while(this.tn.omit(","));return this.tn.skip(";"),o},s._parseExtend=function(e){var n,r=this.tn.next();if(!t.TYPEREF.test(r))throw Error("illegal extend reference: "+r);for(n={ref:r,fields:[]},this.tn.skip("{");"}"!==(r=this.tn.next());)if(t.RULE.test(r))this._parseMessageField(n,r);else{if(!t.TYPEREF.test(r))throw Error("illegal extend token: "+r);if(!this.proto3)throw Error("illegal field rule: "+r);this._parseMessageField(n,"optional",r)}return this.tn.omit(";"),e.messages.push(n),n},s.toString=function(){return"Parser at line "+this.tn.line},a.Parser=o,a}(o,o.Lang),o.Reflect=function(e){function n(t,n){if(t&&"number"==typeof t.low&&"number"==typeof t.high&&"boolean"==typeof t.unsigned&&t.low==t.low&&t.high==t.high)return new e.Long(t.low,t.high,void 0===n?t.unsigned:n);if("string"==typeof t)return e.Long.fromString(t,n||!1,10);if("number"==typeof t)return e.Long.fromNumber(t,n||!1);throw Error("not convertible to Long")}function i(t,n){var r=n.readVarint32(),o=7&r,s=r>>>3;switch(o){case e.WIRE_TYPES.VARINT:do{r=n.readUint8()}while(128==(128&r));break;case e.WIRE_TYPES.BITS64:n.offset+=8;break;case e.WIRE_TYPES.LDELIM:r=n.readVarint32(),n.offset+=r;break;case e.WIRE_TYPES.STARTGROUP:i(s,n);break;case e.WIRE_TYPES.ENDGROUP:if(s===t)return!1;throw Error("Illegal GROUPEND after unknown group: "+s+" ("+t+" expected)");case e.WIRE_TYPES.BITS32:n.offset+=4;break;default:throw Error("Illegal wire type in unknown group "+t+": "+o)}return!0}var o,s,a,c,u,l,f,h,d,p,g,v,y,m,I,_,T={},C=function(e,t,n){this.builder=e,this.parent=t,this.name=n,this.className},M=C.prototype;return M.fqn=function(){for(var e=this.name,t=this;null!=(t=t.parent);)e=t.name+"."+e;return e},M.toString=function(e){return(e?this.className+" ":"")+this.fqn()},M.build=function(){throw Error(this.toString(!0)+" cannot be built directly")},T.T=C,o=function(e,t,n,r,i){C.call(this,e,t,n),this.className="Namespace",this.children=[],this.options=r||{},this.syntax=i||"proto2"},(s=o.prototype=Object.create(C.prototype)).getChildren=function(e){var t,n,r;if(null==(e=e||null))return this.children.slice();for(t=[],n=0,r=this.children.length;r>n;++n)this.children[n]instanceof e&&t.push(this.children[n]);return t},s.addChild=function(e){var t;if(t=this.getChild(e.name))if(t instanceof u.Field&&t.name!==t.originalName&&null===this.getChild(t.originalName))t.name=t.originalName;else{if(!(e instanceof u.Field&&e.name!==e.originalName&&null===this.getChild(e.originalName)))throw Error("Duplicate name in namespace "+this.toString(!0)+": "+e.name);e.name=e.originalName}this.children.push(e)},s.getChild=function(e){var t,n,r="number"==typeof e?"id":"name";for(t=0,n=this.children.length;n>t;++t)if(this.children[t][r]===e)return this.children[t];return null},s.resolve=function(e,t){var n,r="string"==typeof e?e.split("."):e,i=this,o=0;if(""===r[o]){for(;null!==i.parent;)i=i.parent;o++}do{do{if(!(i instanceof T.Namespace)){i=null;break}if(!((n=i.getChild(r[o]))&&n instanceof T.T&&(!t||n instanceof T.Namespace))){i=null;break}i=n,o++}while(o<r.length);if(null!=i)break;if(null!==this.parent)return this.parent.resolve(e,t)}while(null!=i);return i},s.qn=function(e){var t,n,r=[],i=e;do{r.unshift(i.name),i=i.parent}while(null!==i);for(t=1;t<=r.length;t++)if(n=r.slice(r.length-t),e===this.resolve(n,e instanceof T.Namespace))return n.join(".");return e.fqn()},s.build=function(){var e,t,n,r={},i=this.children;for(t=0,n=i.length;n>t;++t)(e=i[t])instanceof o&&(r[e.name]=e.build());return Object.defineProperty&&Object.defineProperty(r,"$options",{value:this.buildOpt()}),r},s.buildOpt=function(){var e,t,n,r,i={},o=Object.keys(this.options);for(e=0,t=o.length;t>e;++e)n=o[e],r=this.options[o[e]],i[n]=r;return i},s.getOption=function(e){return void 0===e?this.options:void 0!==this.options[e]?this.options[e]:null},T.Namespace=o,a=function(t,n,r,i){if(this.type=t,this.resolvedType=n,this.isMapKey=r,this.syntax=i,r&&e.MAP_KEY_TYPES.indexOf(t)<0)throw Error("Invalid map key type: "+t.name)},c=a.prototype,a.defaultFieldValue=function(t){if("string"==typeof t&&(t=e.TYPES[t]),void 0===t.defaultValue)throw Error("default value for type "+t.name+" is not supported");return t==e.TYPES.bytes?new r(0):t.defaultValue},c.verifyValue=function(r){var i,o,s,a=function(e,t){throw Error("Illegal value for "+this.toString(!0)+" of type "+this.type.name+": "+e+" ("+t+")")}.bind(this);switch(this.type){case e.TYPES.int32:case e.TYPES.sint32:case e.TYPES.sfixed32:return("number"!=typeof r||r==r&&r%1!=0)&&a(typeof r,"not an integer"),r>4294967295?0|r:r;case e.TYPES.uint32:case e.TYPES.fixed32:return("number"!=typeof r||r==r&&r%1!=0)&&a(typeof r,"not an integer"),r<0?r>>>0:r;case e.TYPES.int64:case e.TYPES.sint64:case e.TYPES.sfixed64:if(e.Long)try{return n(r,!1)}catch(t){a(typeof r,t.message)}else a(typeof r,"requires Long.js");case e.TYPES.uint64:case e.TYPES.fixed64:if(e.Long)try{return n(r,!0)}catch(t){a(typeof r,t.message)}else a(typeof r,"requires Long.js");case e.TYPES.bool:return"boolean"!=typeof r&&a(typeof r,"not a boolean"),r;case e.TYPES.float:case e.TYPES.double:return"number"!=typeof r&&a(typeof r,"not a number"),r;case e.TYPES.string:return"string"==typeof r||r&&r instanceof String||a(typeof r,"not a string"),""+r;case e.TYPES.bytes:return t.isByteBuffer(r)?r:t.wrap(r);case e.TYPES.enum:for(i=this.resolvedType.getChildren(e.Reflect.Enum.Value),s=0;s<i.length;s++){if(i[s].name==r)return i[s].id;if(i[s].id==r)return i[s].id}if("proto3"===this.syntax)return("number"!=typeof r||r==r&&r%1!=0)&&a(typeof r,"not an integer"),(r>4294967295||r<0)&&a(typeof r,"not in range for uint32"),r;a(r,"not a valid enum value");case e.TYPES.group:case e.TYPES.message:if(r&&"object"==typeof r||a(typeof r,"object expected"),r instanceof this.resolvedType.clazz)return r;if(r instanceof e.Builder.Message){for(s in o={},r)r.hasOwnProperty(s)&&(o[s]=r[s]);r=o}return new this.resolvedType.clazz(r)}throw Error("[INTERNAL] Illegal value for "+this.toString(!0)+": "+r+" (undefined type "+this.type+")")},c.calculateLength=function(t,n){if(null===n)return 0;var i;switch(this.type){case e.TYPES.int32:return n<0?r.calculateVarint64(n):r.calculateVarint32(n);case e.TYPES.uint32:return r.calculateVarint32(n);case e.TYPES.sint32:return r.calculateVarint32(r.zigZagEncode32(n));case e.TYPES.fixed32:case e.TYPES.sfixed32:case e.TYPES.float:return 4;case e.TYPES.int64:case e.TYPES.uint64:return r.calculateVarint64(n);case e.TYPES.sint64:return r.calculateVarint64(r.zigZagEncode64(n));case e.TYPES.fixed64:case e.TYPES.sfixed64:return 8;case e.TYPES.bool:return 1;case e.TYPES.enum:return r.calculateVarint32(n);case e.TYPES.double:return 8;case e.TYPES.string:return i=r.calculateUTF8Bytes(n),r.calculateVarint32(i)+i;case e.TYPES.bytes:if(n.remaining()<0)throw Error("Illegal value for "+this.toString(!0)+": "+n.remaining()+" bytes remaining");return r.calculateVarint32(n.remaining())+n.remaining();case e.TYPES.message:return i=this.resolvedType.calculate(n),r.calculateVarint32(i)+i;case e.TYPES.group:return(i=this.resolvedType.calculate(n))+r.calculateVarint32(t<<3|e.WIRE_TYPES.ENDGROUP)}throw Error("[INTERNAL] Illegal value to encode in "+this.toString(!0)+": "+n+" (unknown type)")},c.encodeValue=function(t,n,i){var o,s;if(null===n)return i;switch(this.type){case e.TYPES.int32:n<0?i.writeVarint64(n):i.writeVarint32(n);break;case e.TYPES.uint32:i.writeVarint32(n);break;case e.TYPES.sint32:i.writeVarint32ZigZag(n);break;case e.TYPES.fixed32:i.writeUint32(n);break;case e.TYPES.sfixed32:i.writeInt32(n);break;case e.TYPES.int64:case e.TYPES.uint64:i.writeVarint64(n);break;case e.TYPES.sint64:i.writeVarint64ZigZag(n);break;case e.TYPES.fixed64:i.writeUint64(n);break;case e.TYPES.sfixed64:i.writeInt64(n);break;case e.TYPES.bool:"string"==typeof n?i.writeVarint32("false"===n.toLowerCase()?0:!!n):i.writeVarint32(n?1:0);break;case e.TYPES.enum:i.writeVarint32(n);break;case e.TYPES.float:i.writeFloat32(n);break;case e.TYPES.double:i.writeFloat64(n);break;case e.TYPES.string:i.writeVString(n);break;case e.TYPES.bytes:if(n.remaining()<0)throw Error("Illegal value for "+this.toString(!0)+": "+n.remaining()+" bytes remaining");o=n.offset,i.writeVarint32(n.remaining()),i.append(n),n.offset=o;break;case e.TYPES.message:s=(new r).LE(),this.resolvedType.encode(n,s),i.writeVarint32(s.offset),i.append(s.flip());break;case e.TYPES.group:this.resolvedType.encode(n,i),i.writeVarint32(t<<3|e.WIRE_TYPES.ENDGROUP);break;default:throw Error("[INTERNAL] Illegal value to encode in "+this.toString(!0)+": "+n+" (unknown type)")}return i},c.decode=function(t,n,r){if(n!=this.type.wireType)throw Error("Unexpected wire type for element");var i,o;switch(this.type){case e.TYPES.int32:return 0|t.readVarint32();case e.TYPES.uint32:return t.readVarint32()>>>0;case e.TYPES.sint32:return 0|t.readVarint32ZigZag();case e.TYPES.fixed32:return t.readUint32()>>>0;case e.TYPES.sfixed32:return 0|t.readInt32();case e.TYPES.int64:return t.readVarint64();case e.TYPES.uint64:return t.readVarint64().toUnsigned();case e.TYPES.sint64:return t.readVarint64ZigZag();case e.TYPES.fixed64:return t.readUint64();case e.TYPES.sfixed64:return t.readInt64();case e.TYPES.bool:return!!t.readVarint32();case e.TYPES.enum:return t.readVarint32();case e.TYPES.float:return t.readFloat();case e.TYPES.double:return t.readDouble();case e.TYPES.string:return t.readVString();case e.TYPES.bytes:if(o=t.readVarint32(),t.remaining()<o)throw Error("Illegal number of bytes for "+this.toString(!0)+": "+o+" required but got only "+t.remaining());return(i=t.clone()).limit=i.offset+o,t.offset+=o,i;case e.TYPES.message:return o=t.readVarint32(),this.resolvedType.decode(t,o);case e.TYPES.group:return this.resolvedType.decode(t,-1,r)}throw Error("[INTERNAL] Illegal decode type")},c.valueFromString=function(t){if(!this.isMapKey)throw Error("valueFromString() called on non-map-key element");switch(this.type){case e.TYPES.int32:case e.TYPES.sint32:case e.TYPES.sfixed32:case e.TYPES.uint32:case e.TYPES.fixed32:return this.verifyValue(parseInt(t));case e.TYPES.int64:case e.TYPES.sint64:case e.TYPES.sfixed64:case e.TYPES.uint64:case e.TYPES.fixed64:return this.verifyValue(t);case e.TYPES.bool:return"true"===t;case e.TYPES.string:return this.verifyValue(t);case e.TYPES.bytes:return r.fromBinary(t)}},c.valueToString=function(t){if(!this.isMapKey)throw Error("valueToString() called on non-map-key element");return this.type===e.TYPES.bytes?t.toString("binary"):t.toString()},T.Element=a,u=function(e,t,n,r,i,s){o.call(this,e,t,n,r,s),this.className="Message",this.extensions=void 0,this.clazz=null,this.isGroup=!!i,this._fields=null,this._fieldsById=null,this._fieldsByName=null},(l=u.prototype=Object.create(o.prototype)).build=function(n){var i,o,s,a;if(this.clazz&&!n)return this.clazz;for(i=function(e,n){function i(t,n,o,s){var a,c,u,l,f,h,d;if(null===t||"object"!=typeof t)return s&&s instanceof e.Reflect.Enum&&null!==(a=e.Reflect.Enum.getName(s.object,t))?a:t;if(r.isByteBuffer(t))return n?t.toBase64():t.toBuffer();if(e.Long.isLong(t))return o?t.toString():e.Long.fromValue(t);if(Array.isArray(t))return c=[],t.forEach((function(e,t){c[t]=i(e,n,o,s)})),c;if(c={},t instanceof e.Map){for(l=(u=t.entries()).next();!l.done;l=u.next())c[t.keyElem.valueToString(l.value[0])]=i(l.value[1],n,o,t.valueElem.resolvedType);return c}for(d in f=t.$type,h=void 0,t)t.hasOwnProperty(d)&&(c[d]=f&&(h=f.getChild(d))?i(t[d],n,o,h.resolvedType):i(t[d],n,o));return c}var o,s,a=n.getChildren(e.Reflect.Message.Field),c=n.getChildren(e.Reflect.Message.OneOf),u=function(t){var i,o,s,l;for(e.Builder.Message.call(this),i=0,o=c.length;o>i;++i)this[c[i].name]=null;for(i=0,o=a.length;o>i;++i)this[(s=a[i]).name]=s.repeated?[]:s.map?new e.Map(s):null,!s.required&&"proto3"!==n.syntax||null===s.defaultValue||(this[s.name]=s.defaultValue);if(arguments.length>0)if(1!==arguments.length||null===t||"object"!=typeof t||!("function"!=typeof t.encode||t instanceof u)||Array.isArray(t)||t instanceof e.Map||r.isByteBuffer(t)||t instanceof ArrayBuffer||e.Long&&t instanceof e.Long)for(i=0,o=arguments.length;o>i;++i)void 0!==(l=arguments[i])&&this.$set(a[i].name,l);else this.$set(t)},l=u.prototype=Object.create(e.Builder.Message.prototype);for(l.add=function(t,r,i){var o=n._fieldsByName[t];if(!i){if(!o)throw Error(this+"#"+t+" is undefined");if(!(o instanceof e.Reflect.Message.Field))throw Error(this+"#"+t+" is not a field: "+o.toString(!0));if(!o.repeated)throw Error(this+"#"+t+" is not a repeated field");r=o.verifyValue(r,!0)}return null===this[t]&&(this[t]=[]),this[t].push(r),this},l.$add=l.add,l.set=function(t,r,i){var o,s,a;if(t&&"object"==typeof t){for(o in i=r,t)t.hasOwnProperty(o)&&void 0!==(r=t[o])&&this.$set(o,r,i);return this}if(s=n._fieldsByName[t],i)this[t]=r;else{if(!s)throw Error(this+"#"+t+" is not a field: undefined");if(!(s instanceof e.Reflect.Message.Field))throw Error(this+"#"+t+" is not a field: "+s.toString(!0));this[s.name]=r=s.verifyValue(r)}return s&&s.oneof&&(a=this[s.oneof.name],null!==r?(null!==a&&a!==s.name&&(this[a]=null),this[s.oneof.name]=s.name):a===t&&(this[s.oneof.name]=null)),this},l.$set=l.set,l.get=function(t,r){if(r)return this[t];var i=n._fieldsByName[t];if(!(i&&i instanceof e.Reflect.Message.Field))throw Error(this+"#"+t+" is not a field: undefined");if(!(i instanceof e.Reflect.Message.Field))throw Error(this+"#"+t+" is not a field: "+i.toString(!0));return this[i.name]},l.$get=l.get,o=0;o<a.length;o++)(s=a[o])instanceof e.Reflect.Message.ExtensionField||n.builder.options.populateAccessors&&function(e){var t,r,i,o=e.originalName.replace(/(_[a-zA-Z])/g,(function(e){return e.toUpperCase().replace("_","")}));o=o.substring(0,1).toUpperCase()+o.substring(1),t=e.originalName.replace(/([A-Z])/g,(function(e){return"_"+e})),r=function(t,n){return this[e.name]=n?t:e.verifyValue(t),this},i=function(){return this[e.name]},null===n.getChild("set"+o)&&(l["set"+o]=r),null===n.getChild("set_"+t)&&(l["set_"+t]=r),null===n.getChild("get"+o)&&(l["get"+o]=i),null===n.getChild("get_"+t)&&(l["get_"+t]=i)}(s);return l.encode=function(e,r){var i,o;"boolean"==typeof e&&(r=e,e=void 0),i=!1,e||(e=new t,i=!0),o=e.littleEndian;try{return n.encode(this,e.LE(),r),(i?e.flip():e).LE(o)}catch(t){throw e.LE(o),t}},u.encode=function(e,t,n){return new u(e).encode(t,n)},l.calculate=function(){return n.calculate(this)},l.encodeDelimited=function(e){var t,i=!1;return e||(e=new r,i=!0),t=(new r).LE(),n.encode(this,t).flip(),e.writeVarint32(t.remaining()),e.append(t),i?e.flip():e},l.encodeAB=function(){try{return this.encode().toArrayBuffer()}catch(t){throw t.encoded&&(t.encoded=t.encoded.toArrayBuffer()),t}},l.toArrayBuffer=l.encodeAB,l.encodeNB=function(){try{return this.encode().toBuffer()}catch(t){throw t.encoded&&(t.encoded=t.encoded.toBuffer()),t}},l.toBuffer=l.encodeNB,l.encode64=function(){try{return this.encode().toBase64()}catch(t){throw t.encoded&&(t.encoded=t.encoded.toBase64()),t}},l.toBase64=l.encode64,l.encodeHex=function(){try{return this.encode().toHex()}catch(t){throw t.encoded&&(t.encoded=t.encoded.toHex()),t}},l.toHex=l.encodeHex,l.toRaw=function(e,t){return i(this,!!e,!!t,this.$type)},l.encodeJSON=function(){return JSON.stringify(i(this,!0,!0,this.$type))},u.decode=function(e,t){var i,o;"string"==typeof e&&(e=r.wrap(e,t||"base64")),i=(e=r.isByteBuffer(e)?e:r.wrap(e)).littleEndian;try{return o=n.decode(e.LE()),e.LE(i),o}catch(t){throw e.LE(i),t}},u.decodeDelimited=function(e,t){var i,o,s;if("string"==typeof e&&(e=r.wrap(e,t||"base64")),(e=r.isByteBuffer(e)?e:r.wrap(e)).remaining()<1)return null;if(i=e.offset,o=e.readVarint32(),e.remaining()<o)return e.offset=i,null;try{return s=n.decode(e.slice(e.offset,e.offset+o).LE()),e.offset+=o,s}catch(t){throw e.offset+=o,t}},u.decode64=function(e){return u.decode(e,"base64")},u.decodeHex=function(e){return u.decode(e,"hex")},u.decodeJSON=function(e){return new u(JSON.parse(e))},l.toString=function(){return n.toString()},Object.defineProperty&&(Object.defineProperty(u,"$options",{value:n.buildOpt()}),Object.defineProperty(l,"$options",{value:u.$options}),Object.defineProperty(u,"$type",{value:n}),Object.defineProperty(l,"$type",{value:n})),u}(e,this),this._fields=[],this._fieldsById={},this._fieldsByName={},s=0,a=this.children.length;a>s;s++)if((o=this.children[s])instanceof g||o instanceof u||o instanceof m){if(i.hasOwnProperty(o.name))throw Error("Illegal reflect child of "+this.toString(!0)+": "+o.toString(!0)+" cannot override static property '"+o.name+"'");i[o.name]=o.build()}else if(o instanceof u.Field)o.build(),this._fields.push(o),this._fieldsById[o.id]=o,this._fieldsByName[o.name]=o;else if(!(o instanceof u.OneOf||o instanceof y))throw Error("Illegal reflect child of "+this.toString(!0)+": "+this.children[s].toString(!0));return this.clazz=i},l.encode=function(e,t,n){var r,i,o,s,a,c=null;for(o=0,s=this._fields.length;s>o;++o)i=e[(r=this._fields[o]).name],r.required&&null===i?null===c&&(c=r):r.encode(n?i:r.verifyValue(i),t,e);if(null!==c)throw(a=Error("Missing at least one required field for "+this.toString(!0)+": "+c)).encoded=t,a;return t},l.calculate=function(e){for(var t,n,r=0,i=0,o=this._fields.length;o>i;++i){if(n=e[(t=this._fields[i]).name],t.required&&null===n)throw Error("Missing at least one required field for "+this.toString(!0)+": "+t);r+=t.calculate(n,e)}return r},l.decode=function(t,n,r){var o,s,a,c,u,l,f,h,d,p,g,v;for(n="number"==typeof n?n:-1,u=t.offset,l=new this.clazz;t.offset<u+n||-1===n&&t.remaining()>0;){if(a=(o=t.readVarint32())>>>3,(s=7&o)===e.WIRE_TYPES.ENDGROUP){if(a!==r)throw Error("Illegal group end indicator for "+this.toString(!0)+": "+a+" ("+(r?r+" expected":"not a group")+")");break}if(c=this._fieldsById[a])c.repeated&&!c.options.packed?l[c.name].push(c.decode(s,t)):c.map?(h=c.decode(s,t),l[c.name].set(h[0],h[1])):(l[c.name]=c.decode(s,t),c.oneof&&(null!==(d=l[c.oneof.name])&&d!==c.name&&(l[d]=null),l[c.oneof.name]=c.name));else switch(s){case e.WIRE_TYPES.VARINT:t.readVarint32();break;case e.WIRE_TYPES.BITS32:t.offset+=4;break;case e.WIRE_TYPES.BITS64:t.offset+=8;break;case e.WIRE_TYPES.LDELIM:f=t.readVarint32(),t.offset+=f;break;case e.WIRE_TYPES.STARTGROUP:for(;i(a,t););break;default:throw Error("Illegal wire type for unknown field "+a+" in "+this.toString(!0)+"#decode: "+s)}}for(p=0,g=this._fields.length;g>p;++p)if(null===l[(c=this._fields[p]).name])if("proto3"===this.syntax)l[c.name]=c.defaultValue;else{if(c.required)throw(v=Error("Missing at least one required field for "+this.toString(!0)+": "+c.name)).decoded=l,v;e.populateDefaults&&null!==c.defaultValue&&(l[c.name]=c.defaultValue)}return l},T.Message=u,f=function(t,n,r,i,o,s,a,c,l,f){C.call(this,t,n,s),this.className="Message.Field",this.required="required"===r,this.repeated="repeated"===r,this.map="map"===r,this.keyType=i||null,this.type=o,this.resolvedType=null,this.id=a,this.options=c||{},this.defaultValue=null,this.oneof=l||null,this.syntax=f||"proto2",this.originalName=this.name,this.element=null,this.keyElement=null,!this.builder.options.convertFieldsToCamelCase||this instanceof u.ExtensionField||(this.name=e.Util.toCamelCase(this.name))},(h=f.prototype=Object.create(C.prototype)).build=function(){this.element=new a(this.type,this.resolvedType,!1,this.syntax),this.map&&(this.keyElement=new a(this.keyType,void 0,!0,this.syntax)),"proto3"!==this.syntax||this.repeated||this.map?void 0!==this.options.default&&(this.defaultValue=this.verifyValue(this.options.default)):this.defaultValue=a.defaultFieldValue(this.type)},h.verifyValue=function(t,n){var r,i,o;if(n=n||!1,r=function(e,t){throw Error("Illegal value for "+this.toString(!0)+" of type "+this.type.name+": "+e+" ("+t+")")}.bind(this),null===t)return this.required&&r(typeof t,"required"),"proto3"===this.syntax&&this.type!==e.TYPES.message&&r(typeof t,"proto3 field without field presence cannot be null"),null;if(this.repeated&&!n){for(Array.isArray(t)||(t=[t]),o=[],i=0;i<t.length;i++)o.push(this.element.verifyValue(t[i]));return o}return this.map&&!n?t instanceof e.Map?t:(t instanceof Object||r(typeof t,"expected ProtoBuf.Map or raw object for map field"),new e.Map(this,t)):(!this.repeated&&Array.isArray(t)&&r(typeof t,"no array expected"),this.element.verifyValue(t))},h.hasWirePresence=function(t,n){if("proto3"!==this.syntax)return null!==t;if(this.oneof&&n[this.oneof.name]===this.name)return!0;switch(this.type){case e.TYPES.int32:case e.TYPES.sint32:case e.TYPES.sfixed32:case e.TYPES.uint32:case e.TYPES.fixed32:return 0!==t;case e.TYPES.int64:case e.TYPES.sint64:case e.TYPES.sfixed64:case e.TYPES.uint64:case e.TYPES.fixed64:return 0!==t.low||0!==t.high;case e.TYPES.bool:return t;case e.TYPES.float:case e.TYPES.double:return 0!==t;case e.TYPES.string:return t.length>0;case e.TYPES.bytes:return t.remaining()>0;case e.TYPES.enum:return 0!==t;case e.TYPES.message:return null!==t;default:return!0}},h.encode=function(t,n,i){var o,s,a,c,u;if(null===this.type||"object"!=typeof this.type)throw Error("[INTERNAL] Unresolved type in "+this.toString(!0)+": "+this.type);if(null===t||this.repeated&&0==t.length)return n;try{if(this.repeated)if(this.options.packed&&e.PACKABLE_WIRE_TYPES.indexOf(this.type.wireType)>=0){for(n.writeVarint32(this.id<<3|e.WIRE_TYPES.LDELIM),n.ensureCapacity(n.offset+=1),s=n.offset,o=0;o<t.length;o++)this.element.encodeValue(this.id,t[o],n);a=n.offset-s,(c=r.calculateVarint32(a))>1&&(u=n.slice(s,n.offset),s+=c-1,n.offset=s,n.append(u)),n.writeVarint32(a,s-c)}else for(o=0;o<t.length;o++)n.writeVarint32(this.id<<3|this.type.wireType),this.element.encodeValue(this.id,t[o],n);else this.map?t.forEach((function(t,i){var o=r.calculateVarint32(8|this.keyType.wireType)+this.keyElement.calculateLength(1,i)+r.calculateVarint32(16|this.type.wireType)+this.element.calculateLength(2,t);n.writeVarint32(this.id<<3|e.WIRE_TYPES.LDELIM),n.writeVarint32(o),n.writeVarint32(8|this.keyType.wireType),this.keyElement.encodeValue(1,i,n),n.writeVarint32(16|this.type.wireType),this.element.encodeValue(2,t,n)}),this):this.hasWirePresence(t,i)&&(n.writeVarint32(this.id<<3|this.type.wireType),this.element.encodeValue(this.id,t,n))}catch(e){throw Error("Illegal value for "+this.toString(!0)+": "+t+" ("+e+")")}return n},h.calculate=function(t,n){var i,o,s;if(t=this.verifyValue(t),null===this.type||"object"!=typeof this.type)throw Error("[INTERNAL] Unresolved type in "+this.toString(!0)+": "+this.type);if(null===t||this.repeated&&0==t.length)return 0;i=0;try{if(this.repeated)if(this.options.packed&&e.PACKABLE_WIRE_TYPES.indexOf(this.type.wireType)>=0){for(i+=r.calculateVarint32(this.id<<3|e.WIRE_TYPES.LDELIM),s=0,o=0;o<t.length;o++)s+=this.element.calculateLength(this.id,t[o]);i+=r.calculateVarint32(s),i+=s}else for(o=0;o<t.length;o++)i+=r.calculateVarint32(this.id<<3|this.type.wireType),i+=this.element.calculateLength(this.id,t[o]);else this.map?t.forEach((function(t,n){var o=r.calculateVarint32(8|this.keyType.wireType)+this.keyElement.calculateLength(1,n)+r.calculateVarint32(16|this.type.wireType)+this.element.calculateLength(2,t);i+=r.calculateVarint32(this.id<<3|e.WIRE_TYPES.LDELIM),i+=r.calculateVarint32(o),i+=o}),this):this.hasWirePresence(t,n)&&(i+=r.calculateVarint32(this.id<<3|this.type.wireType),i+=this.element.calculateLength(this.id,t))}catch(e){throw Error("Illegal value for "+this.toString(!0)+": "+t+" ("+e+")")}return i},h.decode=function(t,n,r){var i,o,s,c,u,l,f;if(!(!this.map&&t==this.type.wireType||!r&&this.repeated&&this.options.packed&&t==e.WIRE_TYPES.LDELIM||this.map&&t==e.WIRE_TYPES.LDELIM))throw Error("Illegal wire type for field "+this.toString(!0)+": "+t+" ("+this.type.wireType+" expected)");if(t==e.WIRE_TYPES.LDELIM&&this.repeated&&this.options.packed&&e.PACKABLE_WIRE_TYPES.indexOf(this.type.wireType)>=0&&!r){for(o=n.readVarint32(),o=n.offset+o,s=[];n.offset<o;)s.push(this.decode(this.type.wireType,n,!0));return s}if(this.map){if(c=a.defaultFieldValue(this.keyType),i=a.defaultFieldValue(this.type),o=n.readVarint32(),n.remaining()<o)throw Error("Illegal number of bytes for "+this.toString(!0)+": "+o+" required but got only "+n.remaining());for((u=n.clone()).limit=u.offset+o,n.offset+=o;u.remaining()>0;)if(t=7&(l=u.readVarint32()),1==(f=l>>>3))c=this.keyElement.decode(u,t,f);else{if(2!==f)throw Error("Unexpected tag in map field key/value submessage");i=this.element.decode(u,t,f)}return[c,i]}return this.element.decode(n,t,this.id)},T.Message.Field=f,d=function(e,t,n,r,i,o,s){f.call(this,e,t,n,null,r,i,o,s),this.extension},d.prototype=Object.create(f.prototype),T.Message.ExtensionField=d,p=function(e,t,n){C.call(this,e,t,n),this.fields=[]},T.Message.OneOf=p,g=function(e,t,n,r,i){o.call(this,e,t,n,r,i),this.className="Enum",this.object=null},g.getName=function(e,t){var n,r,i=Object.keys(e);for(r=0;r<i.length;++r)if(e[n=i[r]]===t)return n;return null},(g.prototype=Object.create(o.prototype)).build=function(t){var n,r,i,o;if(this.object&&!t)return this.object;for(n=new e.Builder.Enum,i=0,o=(r=this.getChildren(g.Value)).length;o>i;++i)n[r[i].name]=r[i].id;return Object.defineProperty&&Object.defineProperty(n,"$options",{value:this.buildOpt(),enumerable:!1}),this.object=n},T.Enum=g,v=function(e,t,n,r){C.call(this,e,t,n),this.className="Enum.Value",this.id=r},v.prototype=Object.create(C.prototype),T.Enum.Value=v,y=function(e,t,n,r){C.call(this,e,t,n),this.field=r},y.prototype=Object.create(C.prototype),T.Extension=y,m=function(e,t,n,r){o.call(this,e,t,n,r),this.className="Service",this.clazz=null},(m.prototype=Object.create(o.prototype)).build=function(t){return this.clazz&&!t?this.clazz:this.clazz=function(e,t){var n,i=function(t){e.Builder.Service.call(this),this.rpcImpl=t||function(e,t,n){setTimeout(n.bind(this,Error("Not implemented, see: https://github.com/dcodeIO/ProtoBuf.js/wiki/Services")),0)}},o=i.prototype=Object.create(e.Builder.Service.prototype),s=t.getChildren(e.Reflect.Service.RPCMethod);for(n=0;n<s.length;n++)!function(e){o[e.name]=function(n,i){try{try{n=e.resolvedRequestType.clazz.decode(r.wrap(n))}catch(e){if(!(e instanceof TypeError))throw e}if(null===n||"object"!=typeof n)throw Error("Illegal arguments");n instanceof e.resolvedRequestType.clazz||(n=new e.resolvedRequestType.clazz(n)),this.rpcImpl(e.fqn(),n,(function(n,r){if(!n){try{r=e.resolvedResponseType.clazz.decode(r)}catch(e){}return r&&r instanceof e.resolvedResponseType.clazz?void i(null,r):void i(Error("Illegal response type received in service method "+t.name+"#"+e.name))}i(n)}))}catch(e){setTimeout(i.bind(this,e),0)}},i[e.name]=function(t,n,r){new i(t)[e.name](n,r)},Object.defineProperty&&(Object.defineProperty(i[e.name],"$options",{value:e.buildOpt()}),Object.defineProperty(o[e.name],"$options",{value:i[e.name].$options}))}(s[n]);return Object.defineProperty&&(Object.defineProperty(i,"$options",{value:t.buildOpt()}),Object.defineProperty(o,"$options",{value:i.$options}),Object.defineProperty(i,"$type",{value:t}),Object.defineProperty(o,"$type",{value:t})),i}(e,this)},T.Service=m,I=function(e,t,n,r){C.call(this,e,t,n),this.className="Service.Method",this.options=r||{}},(I.prototype=Object.create(C.prototype)).buildOpt=s.buildOpt,T.Service.Method=I,_=function(e,t,n,r,i,o,s,a){I.call(this,e,t,n,a),this.className="Service.RPCMethod",this.requestName=r,this.responseName=i,this.requestStream=o,this.responseStream=s,this.resolvedRequestType=null,this.resolvedResponseType=null},_.prototype=Object.create(I.prototype),T.Service.RPCMethod=_,T}(o),o.Builder=function(e,t,n){function r(e){e.messages&&e.messages.forEach((function(t){t.syntax=e.syntax,r(t)})),e.enums&&e.enums.forEach((function(t){t.syntax=e.syntax}))}var i=function(e){this.ns=new n.Namespace(this,null,""),this.ptr=this.ns,this.resolved=!1,this.result=null,this.files={},this.importRoot=null,this.options=e||{}},o=i.prototype;return i.isMessage=function(e){return"string"==typeof e.name&&void 0===e.values&&void 0===e.rpc},i.isMessageField=function(e){return"string"==typeof e.rule&&"string"==typeof e.name&&"string"==typeof e.type&&void 0!==e.id},i.isEnum=function(e){return"string"==typeof e.name&&!(void 0===e.values||!Array.isArray(e.values)||0===e.values.length)},i.isService=function(e){return!("string"!=typeof e.name||"object"!=typeof e.rpc||!e.rpc)},i.isExtend=function(e){return"string"==typeof e.ref},o.reset=function(){return this.ptr=this.ns,this},o.define=function(e){if("string"!=typeof e||!t.TYPEREF.test(e))throw Error("illegal namespace: "+e);return e.split(".").forEach((function(e){var t=this.ptr.getChild(e);null===t&&this.ptr.addChild(t=new n.Namespace(this,this.ptr,e)),this.ptr=t}),this),this},o.create=function(t){var r,o,s,a,c;if(!t)return this;if(Array.isArray(t)){if(0===t.length)return this;t=t.slice()}else t=[t];for(r=[t];r.length>0;){if(t=r.pop(),!Array.isArray(t))throw Error("not a valid namespace: "+JSON.stringify(t));for(;t.length>0;){if(o=t.shift(),i.isMessage(o)){if(s=new n.Message(this,this.ptr,o.name,o.options,o.isGroup,o.syntax),a={},o.oneofs&&Object.keys(o.oneofs).forEach((function(e){s.addChild(a[e]=new n.Message.OneOf(this,s,e))}),this),o.fields&&o.fields.forEach((function(e){if(null!==s.getChild(0|e.id))throw Error("duplicate or invalid field id in "+s.name+": "+e.id);if(e.options&&"object"!=typeof e.options)throw Error("illegal field options in "+s.name+"#"+e.name);var t=null;if("string"==typeof e.oneof&&!(t=a[e.oneof]))throw Error("illegal oneof in "+s.name+"#"+e.name+": "+e.oneof);e=new n.Message.Field(this,s,e.rule,e.keytype,e.type,e.name,e.id,e.options,t,o.syntax),t&&t.fields.push(e),s.addChild(e)}),this),c=[],o.enums&&o.enums.forEach((function(e){c.push(e)})),o.messages&&o.messages.forEach((function(e){c.push(e)})),o.services&&o.services.forEach((function(e){c.push(e)})),o.extensions&&(s.extensions="number"==typeof o.extensions[0]?[o.extensions]:o.extensions),this.ptr.addChild(s),c.length>0){r.push(t),t=c,c=null,this.ptr=s,s=null;continue}c=null}else if(i.isEnum(o))s=new n.Enum(this,this.ptr,o.name,o.options,o.syntax),o.values.forEach((function(e){s.addChild(new n.Enum.Value(this,s,e.name,e.id))}),this),this.ptr.addChild(s);else if(i.isService(o))s=new n.Service(this,this.ptr,o.name,o.options),Object.keys(o.rpc).forEach((function(e){var t=o.rpc[e];s.addChild(new n.Service.RPCMethod(this,s,e,t.request,t.response,!!t.request_stream,!!t.response_stream,t.options))}),this),this.ptr.addChild(s);else{if(!i.isExtend(o))throw Error("not a valid definition: "+JSON.stringify(o));if(s=this.ptr.resolve(o.ref,!0))o.fields.forEach((function(t){var r,i,o,a;if(null!==s.getChild(0|t.id))throw Error("duplicate extended field id in "+s.name+": "+t.id);if(s.extensions&&(r=!1,s.extensions.forEach((function(e){t.id>=e[0]&&t.id<=e[1]&&(r=!0)})),!r))throw Error("illegal extended field id in "+s.name+": "+t.id+" (not within valid ranges)");i=t.name,this.options.convertFieldsToCamelCase&&(i=e.Util.toCamelCase(i)),o=new n.Message.ExtensionField(this,s,t.rule,t.type,this.ptr.fqn()+"."+i,t.id,t.options),a=new n.Extension(this,this.ptr,t.name,o),o.extension=a,this.ptr.addChild(a),s.addChild(o)}),this);else if(!/\.?google\.protobuf\./.test(o.ref))throw Error("extended message "+o.ref+" is not defined")}o=null,s=null}t=null,this.ptr=this.ptr.parent}return this.resolved=!1,this.result=null,this},o.import=function(t,n){var i,o,s,a,c,u,l,f,h="/";if("string"==typeof n){if(e.Util.IS_NODE,!0===this.files[n])return this.reset();this.files[n]=!0}else if("object"==typeof n){if(i=n.root,e.Util.IS_NODE,(i.indexOf("\\")>=0||n.file.indexOf("\\")>=0)&&(h="\\"),o=i+h+n.file,!0===this.files[o])return this.reset();this.files[o]=!0}if(t.imports&&t.imports.length>0){for(a=!1,"object"==typeof n?(this.importRoot=n.root,a=!0,s=this.importRoot,n=n.file,(s.indexOf("\\")>=0||n.indexOf("\\")>=0)&&(h="\\")):"string"==typeof n?this.importRoot?s=this.importRoot:n.indexOf("/")>=0?""===(s=n.replace(/\/[^\/]*$/,""))&&(s="/"):n.indexOf("\\")>=0?(s=n.replace(/\\[^\\]*$/,""),h="\\"):s=".":s=null,c=0;c<t.imports.length;c++)if("string"==typeof t.imports[c]){if(!s)throw Error("cannot determine import root");if("google/protobuf/descriptor.proto"===(u=t.imports[c]))continue;if(u=s+h+u,!0===this.files[u])continue;if(/\.proto$/i.test(u)&&!e.DotProto&&(u=u.replace(/\.proto$/,".json")),null===(l=e.Util.fetch(u)))throw Error("failed to import '"+u+"' in '"+n+"': file not found");/\.json$/i.test(u)?this.import(JSON.parse(l+""),u):this.import(e.DotProto.Parser.parse(l),u)}else n?/\.(\w+)$/.test(n)?this.import(t.imports[c],n.replace(/^(.+)\.(\w+)$/,(function(e,t,n){return t+"_import"+c+"."+n}))):this.import(t.imports[c],n+"_import"+c):this.import(t.imports[c]);a&&(this.importRoot=null)}return t.package&&this.define(t.package),t.syntax&&r(t),f=this.ptr,t.options&&Object.keys(t.options).forEach((function(e){f.options[e]=t.options[e]})),t.messages&&(this.create(t.messages),this.ptr=f),t.enums&&(this.create(t.enums),this.ptr=f),t.services&&(this.create(t.services),this.ptr=f),t.extends&&this.create(t.extends),this.reset()},o.resolveAll=function(){var r;if(null==this.ptr||"object"==typeof this.ptr.type)return this;if(this.ptr instanceof n.Namespace)this.ptr.children.forEach((function(e){this.ptr=e,this.resolveAll()}),this);else if(this.ptr instanceof n.Message.Field){if(t.TYPE.test(this.ptr.type))this.ptr.type=e.TYPES[this.ptr.type];else{if(!t.TYPEREF.test(this.ptr.type))throw Error("illegal type reference in "+this.ptr.toString(!0)+": "+this.ptr.type);if(!(r=(this.ptr instanceof n.Message.ExtensionField?this.ptr.extension.parent:this.ptr.parent).resolve(this.ptr.type,!0)))throw Error("unresolvable type reference in "+this.ptr.toString(!0)+": "+this.ptr.type);if(this.ptr.resolvedType=r,r instanceof n.Enum){if(this.ptr.type=e.TYPES.enum,"proto3"===this.ptr.syntax&&"proto3"!==r.syntax)throw Error("proto3 message cannot reference proto2 enum")}else{if(!(r instanceof n.Message))throw Error("illegal type reference in "+this.ptr.toString(!0)+": "+this.ptr.type);this.ptr.type=r.isGroup?e.TYPES.group:e.TYPES.message}}if(this.ptr.map){if(!t.TYPE.test(this.ptr.keyType))throw Error("illegal key type for map field in "+this.ptr.toString(!0)+": "+this.ptr.keyType);this.ptr.keyType=e.TYPES[this.ptr.keyType]}}else if(this.ptr instanceof e.Reflect.Service.Method){if(!(this.ptr instanceof e.Reflect.Service.RPCMethod))throw Error("illegal service type in "+this.ptr.toString(!0));if(!((r=this.ptr.parent.resolve(this.ptr.requestName,!0))&&r instanceof e.Reflect.Message))throw Error("Illegal type reference in "+this.ptr.toString(!0)+": "+this.ptr.requestName);if(this.ptr.resolvedRequestType=r,!((r=this.ptr.parent.resolve(this.ptr.responseName,!0))&&r instanceof e.Reflect.Message))throw Error("Illegal type reference in "+this.ptr.toString(!0)+": "+this.ptr.responseName);this.ptr.resolvedResponseType=r}else if(!(this.ptr instanceof e.Reflect.Message.OneOf||this.ptr instanceof e.Reflect.Extension||this.ptr instanceof e.Reflect.Enum.Value))throw Error("illegal object in namespace: "+typeof this.ptr+": "+this.ptr);return this.reset()},o.build=function(e){var t,n,r;if(this.reset(),this.resolved||(this.resolveAll(),this.resolved=!0,this.result=null),null===this.result&&(this.result=this.ns.build()),!e)return this.result;for(t="string"==typeof e?e.split("."):e,n=this.result,r=0;r<t.length;r++){if(!n[t[r]]){n=null;break}n=n[t[r]]}return n},o.lookup=function(e,t){return e?this.ns.resolve(e,t):this.ns},o.toString=function(){return"Builder"},i.Message=function(){},i.Enum=function(){},i.Service=function(){},i}(o,o.Lang,o.Reflect),o.Map=function(e,t){function n(e){var t=0;return{next:function(){return t<e.length?{done:!1,value:e[t++]}:{done:!0}}}}var r=function(e,n){var r,i,o,s;if(!e.map)throw Error("field is not a map");if(this.field=e,this.keyElem=new t.Element(e.keyType,null,!0,e.syntax),this.valueElem=new t.Element(e.type,e.resolvedType,!1,e.syntax),this.map={},Object.defineProperty(this,"size",{get:function(){return Object.keys(this.map).length}}),n)for(r=Object.keys(n),i=0;i<r.length;i++)o=this.keyElem.valueFromString(r[i]),s=this.valueElem.verifyValue(n[r[i]]),this.map[this.keyElem.valueToString(o)]={key:o,value:s}},i=r.prototype;return i.clear=function(){this.map={}},i.delete=function(e){var t=this.keyElem.valueToString(this.keyElem.verifyValue(e)),n=t in this.map;return delete this.map[t],n},i.entries=function(){var e,t,r=[],i=Object.keys(this.map);for(t=0;t<i.length;t++)r.push([(e=this.map[i[t]]).key,e.value]);return n(r)},i.keys=function(){var e,t=[],r=Object.keys(this.map);for(e=0;e<r.length;e++)t.push(this.map[r[e]].key);return n(t)},i.values=function(){var e,t=[],r=Object.keys(this.map);for(e=0;e<r.length;e++)t.push(this.map[r[e]].value);return n(t)},i.forEach=function(e,t){var n,r,i=Object.keys(this.map);for(r=0;r<i.length;r++)e.call(t,(n=this.map[i[r]]).value,n.key,this)},i.set=function(e,t){var n=this.keyElem.verifyValue(e),r=this.valueElem.verifyValue(t);return this.map[this.keyElem.valueToString(n)]={key:n,value:r},this},i.get=function(e){var t=this.keyElem.valueToString(this.keyElem.verifyValue(e));return t in this.map?this.map[t].value:void 0},i.has=function(e){return this.keyElem.valueToString(this.keyElem.verifyValue(e))in this.map},r}(0,o.Reflect),o.loadProto=function(e,t,n){return("string"==typeof t||t&&"string"==typeof t.file&&"string"==typeof t.root)&&(n=t,t=void 0),o.loadJson(o.DotProto.Parser.parse(e),t,n)},o.protoFromString=o.loadProto,o.loadProtoFile=function(e,t,n){if(t&&"object"==typeof t?(n=t,t=null):t&&"function"==typeof t||(t=null),t)return o.Util.fetch("string"==typeof e?e:e.root+"/"+e.file,(function(r){if(null!==r)try{t(null,o.loadProto(r,n,e))}catch(e){t(e)}else t(Error("Failed to fetch file"))}));var r=o.Util.fetch("object"==typeof e?e.root+"/"+e.file:e);return null===r?null:o.loadProto(r,n,e)},o.protoFromFile=o.loadProtoFile,o.newBuilder=function(e){return void 0===(e=e||{}).convertFieldsToCamelCase&&(e.convertFieldsToCamelCase=o.convertFieldsToCamelCase),void 0===e.populateAccessors&&(e.populateAccessors=o.populateAccessors),new o.Builder(e)},o.loadJson=function(e,t,n){return("string"==typeof t||t&&"string"==typeof t.file&&"string"==typeof t.root)&&(n=t,t=null),t&&"object"==typeof t||(t=o.newBuilder()),"string"==typeof e&&(e=JSON.parse(e)),t.import(e,n),t.resolveAll(),t},o.loadJsonFile=function(e,t,n){if(t&&"object"==typeof t?(n=t,t=null):t&&"function"==typeof t||(t=null),t)return o.Util.fetch("string"==typeof e?e:e.root+"/"+e.file,(function(r){if(null!==r)try{t(null,o.loadJson(JSON.parse(r),n,e))}catch(e){t(e)}else t(Error("Failed to fetch file"))}));var r=o.Util.fetch("object"==typeof e?e.root+"/"+e.file:e);return null===r?null:o.loadJson(JSON.parse(r),n,e)},i=Kr,o.loadProto(i,void 0,"").build("Modules").probuf}(qr,Wr),Zr);ni.getModule=function(e){var t=new ni[e];return t.getArrayData=function(){var e=t.toArrayBuffer();return x(e)?[].slice.call(new Int8Array(e)):e},t};var ri,ii,oi="pgMsgP",si="chatMsg",ai="pcMsgP",ci={PRIVATE:"ppMsgS",GROUP:"pgMsgS",CHATROOM:"chatMsgS"},ui="delMsg",li="joinChrm",fi="joinChrmR",hi="exitChrm",di="setKV",pi="delKV",gi="setKVS",vi="delKVS",yi="qryRelationR",mi="delRelation",Ii="setSeAtt",_i={PRIVATE:"cleanPMsg",GROUP:"cleanGMsg",ULTRA_GROUP:"cleanGMsg",CUSTOMER_SERVICE:"cleanCMsg",SYSTEM:"cleanSMsg"},Ti="qryPMsg",Ci="qryGMsg",Mi="qryCHMsg",Ei="qryCMsg",Ai="qrySMsg",Si=((Jr={})["ppMsgP"]=b.PRIVATE,Jr[oi]=b.GROUP,Jr[si]=b.CHATROOM,Jr[ai]=b.CUSTOMER_SERVICE,Jr),Ni=((Xr={})[b.PRIVATE]=Ti,Xr[b.GROUP]=Ci,Xr[b.CHATROOM]=Mi,Xr[b.CUSTOMER_SERVICE]=Ei,Xr[b.SYSTEM]=Ai,Xr),bi=((ei={})[b.PRIVATE]=_i.PRIVATE,ei[b.GROUP]=_i.GROUP,ei[b.ULTRA_GROUP]=_i.ULTRA_GROUP,ei[b.CUSTOMER_SERVICE]=_i.CUSTOMER_SERVICE,ei[b.SYSTEM]=_i.SYSTEM,ei),wi="1",Oi="0",Ri=1,Di=2,Li=3,Ui=function(){function e(e){this._codec="websocket"===e?ni:Fr,this._connectType=e}return e.prototype.decodeByPBName=function(e,t,n){var r,i=this,o=e,s=((r={})[qt]=i._formatSyncMessages,r[Wt]=i._formatReceivedMessage,r[$t]=i._formatSentMessage,r[rn]=i._formatHistoryMessages,r[sn]=i._formatConversationList,r[yn]=i._formatChatRoomInfos,r[In]=i._formatRTCUserList,r[Nn]=i._formatRTCData,r[Hn]=i._formatChatRoomKVList,r[Jn]=i._formatUserSetting,r[tr]=i._formatConversationStatus,r[fr]=i._formatGrpReadReceiptQryResp,r[qn]=i._formatSetUserSettingOutput,r[Xn]=i._formatUserSettingNotification,r[Er]=i._formatUltraMsgChangeList,r[wr]=i._formatUltraOperateStatusNotifyList,r[Nr]=i._formatUltraMsgList,r[gn]=i._formatChrmKVVersion,r[Ur]=i._formatRTCRoomKVList,r[Sn]=i._formatRTCAuidenceJoinRoomData,r[Pr]=i._formatRTCJoinedUserInfo,r)[t];try{o=e.length>0&&i._codec[t].decode(e),k(o)&&(o=function(e){for(var t in e)k(e[t])&&(e[t]=Et(e[t]));return e}(o)),z(s)&&(o=s.call(this,o,n))}catch(n){ut.error("PB parse error\n",n,e,t)}return o},e.prototype._readBytes=function(e){var t=e.offset,n=e.buffer,r=e.limit;if(t)try{var i=x(n)?new Uint8Array(n):n;return Ht.readUTF(i.subarray(t,r))}catch(e){ut.info("readBytes error\n",e)}return e},e.prototype._formatBytes=function(e){if(!e)return e;var t=this._readBytes(e);try{t=JSON.parse(t)}catch(e){ut.info("formatBytes error\n",e)}return t||e},e.prototype._formatSyncMessages=function(e,t){t=t||{};var n=this,r=e.list,i=e.syncTime,o=e.finished;return(G(o)||null===o)&&(e.finished=!0),e.syncTime=Et(i),e.list=Rt(r,(function(e){return n._formatReceivedMessage(e,t)})),e},e.prototype._formatReceivedMessage=function(e,t){if(!e)return e;var n=(t=t||{}).currentUserId,r=t.connectedTime,i=e.content,s=e.fromUserId,a=e.type,c=e.groupId,u=e.status,l=e.dataTime,f=e.classname,h=e.msgId,d=e.extraContent,p=e.pushContent,g=e.pushExt,v=e.configFlag,y=e.extStatus;e.toUserId,e.groupUnpush;var I=(e.direction||K.RECEIVE)===K.SEND,_=function(e){var t=o.READ;return{isPersited:!!(16&e),isCounted:!!(32&e),isMentioned:!!(64&e),disableNotification:!!(512&e),receivedStatus:t=2&e?o.RETRIEVED:t,canIncludeExpansion:!!(1024&e)}}(u),T=_.isPersited,C=_.isCounted,M=_.isMentioned,E=_.disableNotification,A=_.receivedStatus,S=_.canIncludeExpansion,N=!!(2&(y||0)),w=!!(4&(y||0)),O=[b.GROUP,b.CHATROOM,b.RTC_ROOM,b.ULTRA_GROUP].indexOf(a)>-1?c:s,R=I?n:s,D=Et(l),L=D<r,U=a===b.CHATROOM,x=this._formatBytes(i),P={};if(g&&(P=Nt(g.pushConfigs,g.pushId)),x.user){var j=x.user,k=j.portrait,z=j.portraitUri,G=k||z;G&&(x.user.portrait=x.user.portraitUri=G)}var B,V=m(m({},P),{pushTitle:null==g?void 0:g.title,pushContent:p,pushData:p,disablePushTitle:!!v&&Boolean(4&v),forceShowDetailContent:!!v&&Boolean(8&v),templateId:null==g?void 0:g.templateId}),Y=I?K.SEND:K.RECEIVE;U&&s===n&&(Y=K.SEND),d&&(B={},B=zt(d));var H={conversationType:a,targetId:O,senderUserId:R,messageType:f,messageUId:h,isPersited:T,isCounted:C,isMentioned:M,sentTime:D,messageDirection:Y,receivedTime:Gt.getTime(),disableNotification:E,receivedStatus:A,canIncludeExpansion:S,content:x,expansion:B,configFlag:v,pushConfig:V,channelId:e.busChannel||"",isInterrupt:N,isModifyMessage:w};return a!==b.ULTRA_GROUP&&(H.isOffLineMessage=L),H},e.prototype._formatSentMessage=function(e,t){var n,r=e.content,i=e.classname,o=e.sessionId,s=e.msgId,a=e.extraContent,c=e.pushExt,u=e.pushContent,l=e.configFlag,f=e.extStatus,h=t.signal,d=t.currentUserId,p=h.date,g=h.topic,v=h.targetId,y=!!(2&(f||0)),I=function(e){return{isPersited:!!(1&e),isCounted:!!(2&e),disableNotification:!!(32&e),canIncludeExpansion:!!(64&e)}}(o),_=I.isPersited,T=I.isCounted,C=I.disableNotification,M=I.canIncludeExpansion,E=Si[g]||b.PRIVATE,A=Lt(ci,g),S=this._formatBytes(r),N=v;i===te.RECALL&&(E=S.conversationType||E,N=S.targetId||v),a&&(n={},n=zt(a));var w={};c&&(w=Nt(c.pushConfigs,c.pushId));var O=m(m({},w),{pushTitle:null==c?void 0:c.title,pushContent:u,pushData:u,disablePushTitle:!!l&&Boolean(4&l),forceShowDetailContent:!!l&&Boolean(8&l),templateId:null==c?void 0:c.templateId});return{conversationType:E,targetId:N,messageType:i,messageUId:s,isPersited:_,isCounted:T,isStatusMessage:A,senderUserId:d,content:this._formatBytes(r),sentTime:1e3*p,receivedTime:Gt.getTime(),messageDirection:K.SEND,isOffLineMessage:!1,disableNotification:C,canIncludeExpansion:M,expansion:n,pushConfig:O,channelId:e.busChannel||"",isInterrupt:y}},e.prototype._formatHistoryMessages=function(e,t){var n=this,r=t.conversation||{},i=e.list,o=e.hasMsg,s=r.targetId,a=Et(e.syncTime),c=[];return Ot(i,(function(e){var i=n._formatReceivedMessage(e,t);r.conversationType===b.ULTRA_GROUP?i.targetId=e.groupId||r.targetId:i.targetId=s,c.push(i)}),{isReverse:!0}),{syncTime:a,list:c,hasMore:!!o}},e.prototype._formatUltraMsgChangeList=function(e){var t=e.list,n=e.syncTime,r=e.hasNext;return{syncTime:n,list:t&&t.map((function(e){var t=e.targetId,n=e.type,r=e.time,i=e.changeType,o=e.msgUID,s=e.msgTime,a=e.busChannel,c=e.isAdmin,u=e.isDel,l=e.operatorId;return{targetId:t,conversationType:n,changeType:i,messageUId:o,changeTime:Et(r),sendTime:Et(s),channelId:a,isAdmin:c,isDel:u,operatorId:l}})),hasNext:r}},e.prototype._formatUltraOperateStatusNotifyList=function(e){var t=e.type,n=e.notifyType,r=e.info,i=e.summary,o=[],s=[],a=2==(2&n),c=1==(1&n);return c&&Array.isArray(r)&&r.forEach((function(e){var t=e.targetId,n=e.busChannel,r=e.userId,i=e.opType,s=e.optime,a=Et(s);o.push({targetId:t,channelId:n,userId:r,operationType:i,operationTime:a})})),a&&Array.isArray(i)&&i.forEach((function(e){var t=e.targetId,n=e.busChannel,r=e.count,i=e.opType;s.push({targetId:t,channelId:n,count:r,operationType:i})})),{conversationType:t,info:o,summary:s,hasInfo:c,hasSummary:a}},e.prototype._formatUltraMsgList=function(e,t){var n=this,r=e.list;return{list:r&&r.map((function(e){return n._formatReceivedMessage(e,t)}))}},e.prototype._formatConversationList=function(e,t){var n=this,r=e.info,i=t.afterDecode||function(){},o={list:(r=Rt(r,(function(e){var r=e.msg,o=e.userId,s=e.type,a=e.unreadCount,c=e.busChannel,u=e.versionTime,l=e.remindCount,f=null;r&&((f=n._formatReceivedMessage(r,t)).targetId=o);var h={targetId:o,conversationType:s,unreadMessageCount:Et(a)||0,latestMessage:f||{},channelId:c||""};return s===b.ULTRA_GROUP&&(h.versionTime=Et(u)||0,h.unreadMentionedCount=Et(l)||0),i(h)||h})))||[]};return((null==t?void 0:t.conversationType)||b.NONE)===b.ULTRA_GROUP&&(o.isFinished=e.isFinished),o},e.prototype._formatSetUserSettingOutput=function(e){return e},e.prototype._formatChatRoomInfos=function(e){var t=e.userTotalNums,n=e.userInfos;return{userCount:t,userInfos:Rt(n,(function(e){var t=e.id,n=e.time;return{id:t,time:Et(n)}}))}},e.prototype._formatChatRoomKVList=function(e){var t=e.entries,n=e.bFullUpdate,r=e.syncTime;return t=Rt(t=t||[],(function(e){var t=e.key,n=e.value,r=e.status,i=e.timestamp,o=e.uid,s=e.version,a=function(e){return{isAutoDelete:!!(1&e),isOverwrite:!!(2&e),type:4&e?pe.DELETE:pe.UPDATE}}(r);return{key:t,value:n,isAutoDelete:a.isAutoDelete,isOverwrite:a.isOverwrite,type:a.type,userId:o,timestamp:Et(i),version:Et(s)}})),{kvEntries:t,isFullUpdate:n,syncTime:r}},e.prototype._formatUserSetting=function(e){var t=this,n=e.items,r=e.version,i={};return Ot(n||[],(function(e){var n=e.key,r=e.version,o=e.value;e.version=Et(r),e.value=t._readBytes(o),"Tag"===n&&e.tags.forEach((function(e){e.createdTime=Et(e.createdTime),e.tagName=e.name})),i[n]=e})),{settings:i,version:r}},e.prototype._formatConversationStatus=function(e){var t=e.state,n=[];return Ot(t,(function(e){var t=e.type,r=e.channelId,i=e.time,o=e.stateItem,s=e.busChannel,a=re.CLOSE,c=oe.NOT_SET,u=!1,l=[];Ot(o,(function(e){var t=e.sessionStateType,n=e.value,r=e.tags;switch(t){case Ri:a=n===wi?re.OPEN:re.CLOSE,c=Number(n)||oe.NOT_SET;break;case Di:u=n===wi;break;case Li:l=r}})),n.push({conversationType:t,type:t,targetId:r,notificationStatus:a,notificationLevel:c,isTop:u,updatedTime:Et(i),tags:l,channelId:s||""})})),n},e.prototype._formatRTCUserList=function(e){var t=e.users,n=e.token,r=e.sessionId,i=e.roomInfo,o=e.entries,s=e.offlineKickTime,a={};return Ot(t,(function(e){var t=e.userId,n=e.userData,r={};Ot(n,(function(e){var t=e.key,n=e.value;r[t]=n})),a[t]=r})),{users:a,token:n,sessionId:r,roomInfo:i,kvEntries:o,offlineKickTime:s}},e.prototype._formatRTCData=function(e){var t=e.outInfo,n={};return Ot(t,(function(e){n[e.key]=e.value})),n},e.prototype._formatRTCRoomInfo=function(e){var t=e.roomId,n=e.userCount,r=e.roomData,i={id:t,total:n};return Ot(r,(function(e){i[e.key]=e.value})),i},e.prototype._formatGrpReadReceiptQryResp=function(e){var t=e.totalMemberNum,n=e.list;return n.forEach((function(e){e.readTime=Et(e.readTime)})),{totalMemberCount:t,list:n}},e.prototype._formatUserSettingNotification=function(e){return e},e.prototype._formatRTCRoomKVList=function(e){var t=e.entries,n=e.bFullUpdate,r=e.syncTime;return{kvEntries:t=(t=t||[]).map((function(e){var t=e.timestamp;return Object.assign(e,{timestamp:Et(t)})})),isFullUpdate:n,syncTime:r}},e.prototype._formatChrmKVVersion=function(e){return e},e.prototype._formatRTCAuidenceJoinRoomData=function(e){return e},e.prototype._formatRTCJoinedUserInfo=function(e){return(e.info||[]).map((function(e){return{deviceId:e.deviceId,roomId:e.roomId,joinTime:Et(e.joinTime)}}))},e.prototype.encodeServerConfParams=function(){var e=this._codec.getModule(Zt);return e.setNothing(1),e.getArrayData()},e.prototype._getUpMsgModule=function(e,t){var n,r,i,o="comet"===this._connectType,s=e.conversationType,a=t.messageType,c=t.isMentioned,u=t.mentionedType,l=t.mentionedUserIdList,f=t.content,h=t.pushContent,d=t.pushData,p=t.directionalUserIdList,g=t.isFilerWhiteBlacklist,v=t.isVoipPush,y=t.canIncludeExpansion,m=t.expansion,I=t.pushConfig,_=t.channelId;[b.GROUP,b.ULTRA_GROUP].includes(s);var T=this._codec.getModule($t),C=function(e){var t=e.isStatusMessage,n=e.isPersited,r=e.isCounted;t&&(n=r=!1);var i=0;return n&&(i|=1),r&&(i|=2),e.isMentioned&&(i|=4),e.disableNotification&&(i|=32),e.canIncludeExpansion&&(i|=64),i}(t),M=I||{},E=M.pushTitle,A=M.pushContent,S=M.pushData,N=M.iOSConfig,w=M.androidConfig,O=M.templateId,R=M.disablePushTitle,D=M.forceShowDetailContent,L=0;T.setSessionId(C),c&&f&&(f.mentionedInfo={userIdList:(null===(n=f.mentionedInfo)||void 0===n?void 0:n.userIdList)||l||[],type:(null===(r=f.mentionedInfo)||void 0===r?void 0:r.type)||u||ae.ALL,mentionedContent:(null===(i=f.mentionedInfo)||void 0===i?void 0:i.mentionedContent)||""});var U=A||h||"",x=S||d||"";if(U&&T.setPushText(U),x&&T.setAppData(x),p&&T.setUserId(p),L|=v?1:0,L|=g?2:0,L|=R?4:0,L|=D?8:0,T.setConfigFlag(L),T.setClassname(a),f.user&&f.user.portraitUri&&(f.user.portrait=f.user.portraitUri),T.setContent(JSON.stringify(f)),y&&m){var P={};Ot(m,(function(e,t){P[t]={v:e}})),T.setExtraContent(JSON.stringify(P))}if(I){var j=this._codec.getModule(Kt);if(E&&j.setTitle(E),N&&w){var k=St(N,w);j.setPushConfigs(k)}(null==w?void 0:w.notificationId)&&j.setPushId(null==w?void 0:w.notificationId),j.setTemplateId(O||""),T.setPushExt(o?j.getArrayData():j)}return G(_)||T.setBusChannel(_),T},e.prototype.encodeUpMsg=function(e,t){return this._getUpMsgModule(e,t).getArrayData()},e.prototype.encodeSyncMsg=function(e){var t=e.sendboxTime,n=e.inboxTime,r=e.broadcastSyncTime,i=this._codec.getModule(Xt);return i.setIspolling(!1),i.setIsPullSend(!0),i.setSendBoxSyncTime(t),i.setSyncTime(n),i.setBroadcastSyncTime(r),i.getArrayData()},e.prototype.encodeChrmSyncMsg=function(e,t){e=e||0,t=t||0;var n=this._codec.getModule(en);return n.setCount(t),n.setSyncTime(e),n.getArrayData()},e.prototype.encodeGetHistoryMsg=function(e,t){var n=t.count,r=t.order,i=t.timestamp,o=t.channelId,s=this._codec.getModule(nn);return s.setTargetId(e),s.setTime(i),s.setCount(n),s.setOrder(r),s.setBusChannel(o||""),s.getArrayData()},e.prototype.encodeSuperSyncMsg=function(e){var t=this._codec.getModule(_r);return t.setSyncTime(e),t.getArrayData()},e.prototype.encodeGetConversationList=function(e){var t=(e=e||{}).count,n=e.startTime,r=this._codec.getModule(on);return r.setType(1),r.setCount(t),r.setStartTime(n),r.getArrayData()},e.prototype.encodeOldConversationList=function(e){var t=(e=e||{}).count,n=e.type,r=e.startTime,i=e.order;t=t||0,r=r||0,i=i||0;var o=this._codec.getModule(on);return o.setType(n),o.setCount(t),o.setStartTime(r),o.setOrder(i),o.getArrayData()},e.prototype.encodeRemoveOldConversationList=function(e){var t=(e=e||{}).conversationType,n=e.channelId,r=this._codec.getModule(ln);return r.setType(t),n&&r.setBusChannel([n]),r.getArrayData()},e.prototype.encodeRemoveConversationList=function(e){var t=this,n=this._codec.getModule(an),r=[];return Ot(e,(function(e){var n=e.conversationType,i=e.targetId,o=t._codec.getModule(cn);o.setType(n),o.setChannelId(i),r.push(o)})),n.setSessions(r),n.getArrayData()},e.prototype.encodeDeleteMessages=function(e,t,n,r){var i=this._codec.getModule(fn),o=[];return Ot(n,(function(e){o.push({msgId:e.messageUId,msgDataTime:e.sentTime,direct:e.messageDirection})})),i.setType(e),i.setConversationId(t),i.setMsgs(o),i.setBusChannel(r),i.getArrayData()},e.prototype.encodeClearMessages=function(e,t,n,r){var i=this._codec.getModule(hn);return t=t||(new Date).getTime(),i.setDataTime(t),i.setTargetId(e),i.setBusChannel(n),i.setConversationType(r),i.getArrayData()},e.prototype.encodeClearUnreadCount=function(e,t){var n=e.conversationType,r=e.targetId,i=e.channelId,o=t.timestamp,s=this._codec.getModule(dn);return o=o||+new Date,s.setType(n),s.setChannelId(r),s.setMsgTime(o),s.setBusChannel(i),s.getArrayData()},e.prototype.encodeExpandUltraMessage=function(e,t){var n=e.targetId,r=e.conversationType,i=e.channelId,o=e.messageUId,s=e.sendTime,a=e.keys,c={mid:o,put:e.expansion,del:a,clear:e.removeAll?1:0},u=this._codec.getModule(Tr);return u.setFromUserId(t),u.setTargetId(n),u.setType(r),u.setBusChannel(i||""),u.setMsgUID(o),u.setMsgTime(s),u.setContent(JSON.stringify(c)),u.getArrayData()},e.prototype.encodemodifyMessage=function(e,t){var n=e.targetId,r=e.conversationType,i=e.channelId,o=e.messageUId,s=e.sendTime,a=e.content,c=this._codec.getModule(Tr);return c.setFromUserId(t),c.setTargetId(n),c.setType(r),c.setBusChannel(i||""),c.setMsgUID(o),c.setMsgTime(s),c.setContent(JSON.stringify(a)),c.getArrayData()},e.prototype.encodeQueryMsgChange=function(e){var t=this._codec.getModule(Cr);return t.setSyncTime(e),t.getArrayData()},e.prototype.encodeMsgQuery=function(e){var t=e.targetId,n=e.conversationType,r=e.messages,i=this._codec.getModule(Ar),o=r.map((function(e){return{msgTime:e.sendTime,msgUID:e.messageUId,busChannel:e.channelId}}));return i.setTargetId(t),i.setType(n),i.setQuery(o),i.getArrayData()},e.prototype.encodeOperateStatus=function(e,t,n,r){var i=this._codec.getModule(br);return i.setTargetId(e),i.setType(t),i.setBusChannel(n),i.setOpType(r),i.getArrayData()},e.prototype.encodeJoinOrQuitChatRoom=function(){var e=this._codec.getModule(pn);return e.setNothing(1),e.getArrayData()},e.prototype.encodeGetChatRoomInfo=function(e,t){var n=this._codec.getModule(vn);return n.setCount(e),n.setOrder(t),n.getArrayData()},e.prototype.encodeSetUltraGroupDefaultNotificationLevel=function(e,t){var n=this._codec.getModule(ar);return n.setUnpushLevel(e),n.setBusChannel(t),n.getArrayData()},e.prototype.encodeGetUltraGroupDefaultNotificationLevel=function(e){var t=this._codec.getModule(sr);return t.setBusChannel(e),t.getArrayData()},e.prototype.encodeGetFileToken=function(e,t,n,r){var i=this._codec.getModule(Un);return i.setType(e),i.setKey(t),i.setHttpMethod(n),i.setQueryString(r),i.getArrayData()},e.prototype.encodeGetFileUrl=function(e,t,n,r){var i=this._codec.getModule(e);return i.setType(t),i.setKey(n),r&&i.setFileName(r),i.getArrayData()},e.prototype.encodeModifyChatRoomKV=function(e,t,n){var r="comet"===this._connectType,i=this._codec.getModule(Bn),o=t.key,s=t.value,a=t.notificationExtra,c=t.isSendNotification,u=t.type,l=t.timestamp,f=u||pe.UPDATE,h=Bt(t,f),d={key:o,value:s||"",uid:n,version:l};if(G(h)||(d.status=h),i.setEntry(d),c){var p={conversationType:b.CHATROOM,targetId:e},g={key:o,value:s,extra:a,type:f},v=this._getUpMsgModule(p,{messageType:te.CHRM_KV_NOTIFY,content:g,isPersited:!1,isCounted:!1});r?i.setNotification(v.getArrayData()):i.setNotification(v),i.setBNotify(!0),i.setType(b.CHATROOM)}return i.getArrayData()},e.prototype.encodeModifyChatRoomKVS=function(e,t,n){this._connectType;var r=this._codec.getModule(Vn),i=t.entries,o=t.type||pe.UPDATE,s=Bt(t,o),a=[];return i.forEach((function(e){var t={key:e.key,value:e.value||"",uid:n,version:e.timestamp};G(s)||(t.status=s),a.push(t)})),r.setEntry(a),r.getArrayData()},e.prototype.encodePullChatRoomKV=function(e){var t=this._codec.getModule(Kn);return t.setTimestamp(e),t.getArrayData()},e.prototype.encodePullUserSetting=function(e){var t=this._codec.getModule(Zn);return t.setVersion(e),t.getArrayData()},e.prototype.encodeGetConversationStatus=function(e){var t=this._codec.getModule(er);return t.setTime(e),t.getArrayData()},e.prototype.encodeSetConversationStatus=function(e,t){var n=this,r="comet"===this._connectType,i=this._codec.getModule(ir),o=Gt.getTime(),s=[];return Ot(e,(function(e){var t=n._codec.getModule(nr),i=e.conversationType,a=e.targetId,c=e.notificationStatus,u=e.isTop,l=e.channelId,f=e.notificationLevel,h=[];t.setType(i),t.setChannelId(a),t.setTime(o),t.setBusChannel(l);var d=c===re.OPEN,p={};G(c)||(p[Ri]=d),G(f)||(p[Ri]=f),G(u)||(p[Di]=u),Ot(p,(function(e,t){if(!G(e)){var i=n._codec.getModule(rr);e=e?wi:Oi,G(f)||Number(t)!==Ri||(e=String(f)),i.setSessionStateType(Number(t)),i.setValue(e);var o=r?i.getArrayData():i;h.push(o)}})),t.setStateItem(h);var g=r?t.getArrayData():t;s.push(g)})),i.setVersion(t||o),i.setState(s),i.getArrayData()},e.prototype.encodeReadReceipt=function(e,t){var n=this._codec.getModule(ur);return n.setMsgId(e),t&&n.setChannelId(t),n.getArrayData()},e.prototype.encodeCreateTag=function(e,t){var n=this,r="comet"===this._connectType,i=this._codec.getModule(dr),o=[];return e.forEach((function(e){var t=n._codec.getModule(pr);t.setTagId(e.tagId),t.setName(e.tagName),o.push(r?t.getArrayData():t)})),i.setTags(o),i.setVersion(t),i.getArrayData()},e.prototype.encodeMessageReader=function(e,t){var n=this._codec.getModule(ur);return n.setMsgId(e),t&&n.setChannelId(t),n.getArrayData()},e.prototype.encodeRemoveTag=function(e,t){var n=this,r="comet"===this._connectType,i=this._codec.getModule(gr),o=[];return e.forEach((function(e){var t=n._codec.getModule(pr);t.setTagId(e),o.push(r?t.getArrayData():t)})),i.setTags(o),i.setVersion(t),i.getArrayData()},e.prototype.encodeDisConversationTag=function(e){var t=this._codec.getModule(vr);return t.setTagId(e),t.getArrayData()},e.prototype.encodeUpdateConversationTag=function(e,t){var n=this,r="comet"===this._connectType,i=this._codec.getModule(ir),o=[];return t.forEach((function(t){var i=n._codec.getModule(nr),s=n._codec.getModule(rr),a=[];e.forEach((function(e){var t=n._codec.getModule(pr);t.setTagId(e.tagId),G(e.isTop)||t.setIsTop(e.isTop),a.push(r?t.getArrayData():t)})),s.setSessionStateType(Li),s.setValue(JSON.stringify(a)),s.setTags(a),i.setType(t.conversationType),i.setChannelId(t.targetId),i.setTime(Date.now()),i.setStateItem([r?s.getArrayData():s]),o.push(r?i.getArrayData():i)})),i.setState(o),i.setVersion(Gt.getTime()),i.getArrayData()},e.prototype.encodeReportSDKInfo=function(e){var t=this._codec.getModule(yr);return t.setSdkInfo(e),t.getArrayData()},e.prototype.encodeUltraGroup=function(e,t){var n=this._codec.getModule(Ir);return n.setSyncTime(e),n.setIsEraseMsgContent(t),n.getArrayData()},e.prototype.encodeJoinRTCRoom=function(e,t,n,r,i){var o=this,s="comet"===this._connectType,a=this._codec.getModule(mn);if(e=e||0,a.setRoomType(e),G(t)||a.setBroadcastType(t),G(n)||a.setJoinType(n),r){var c=[],u=this._codec.getModule(Dn);for(var l in r)u.setKey(l),u.setValue(r[l]),s?c.push(u.getArrayData()):c.push(u);a.setInnerDatas(c)}if(i){var f=[];Object.keys(i).forEach((function(e){var t=o._codec.getModule(Dn);t.setKey(e),t.setValue(i[e]),s?f.push(t.getArrayData()):f.push(t)})),a.setOuterDatas(f)}return a.getArrayData()},e.prototype.encodeQuitRTCRoom=function(){return this._codec.getModule(_n).getArrayData()},e.prototype.encodeSetRTCData=function(e,t,n,r,i){var o=this._codec.getModule(Tn);if(o.setInterior(n),o.setTarget(r),o.setKey(e),o.setValue(t),i){i.name&&o.setObjectName(i.name);var s=i.content;s&&(k(s)&&(s=JSON.stringify(s)),o.setContent(s))}return o.getArrayData()},e.prototype.encodeUserSetRTCData=function(e,t,n,r){var i=this,o="comet"===this._connectType,s=this._codec.getModule(Cn);s.setObjectName(n);var a=this._codec.getModule(Dn);a.setKey(e.name),a.setValue(e.content),o?s.setContent(a.getArrayData()):s.setContent(a);var c=[];return["uris","mcu_uris"].forEach((function(e){var n=i._codec.getModule(Dn);n.setKey(e);var s="uris"===e?t:r;n.setValue(s),o?c.push(n.getArrayData()):c.push(n)})),s.setValueInfo(c),s.getArrayData()},e.prototype.encodeUserSetRTCCDNUris=function(e,t){this._connectType;var n=this._codec.getModule(Cn);n.setObjectName(e);var r=this._codec.getModule(Dn);return r.setKey("cdn_uris"),r.setValue(t),n.setValueInfo(r),n.getArrayData()},e.prototype.encodeGetRTCData=function(e,t,n){var r=this._codec.getModule(Mn);return r.setInterior(t),r.setTarget(n),r.setKey(e),r.getArrayData()},e.prototype.encodeRemoveRTCData=function(e,t,n,r){var i=this._codec.getModule(Mn);i.setInterior(t),i.setTarget(n),i.setKey(e);var o=(r=r||{}).name,s=r.content;return!G(o)&&i.setObjectName(o),G(s)||(k(s)&&(s=JSON.stringify(s)),i.setContent(s)),i.getArrayData()},e.prototype.encodeSetRTCOutData=function(e,t,n){var r=this._codec.getModule(En);r.setTarget(t),U(e)||(e=[e]),Ot(e,(function(t,n){t.key=t.key?t.key.toString():t.key,t.value=t.value?t.value.toString():t.value,e[n]=t})),r.setValueInfo(e);var i=(n=n||{}).name,o=n.content;return!G(i)&&r.setObjectName(i),G(o)||(k(o)&&(o=JSON.stringify(o)),r.setContent(o)),r.getArrayData()},e.prototype.ecnodeGetRTCOutData=function(e){var t=this._codec.getModule(bn);return t.setUserId(e),t.getArrayData()},e.prototype.encodeSetRTCState=function(e){var t=this._codec.getModule(An);return t.setState(e),t.getArrayData()},e.prototype.encodeGetRTCRoomInfo=function(){var e=this._codec.getModule(On);return e.setOrder(2),e.getArrayData()},e.prototype.encodeSetRTCUserInfo=function(e,t){var n=this._codec.getModule(Dn);return n.setKey(e),n.setValue(t),n.getArrayData()},e.prototype.encodeRemoveRTCUserInfo=function(e){var t=this._codec.getModule(Ln);return t.setKey(e),t.getArrayData()},e.prototype.encodeIdentityChangeInfo=function(e,t,n){void 0===n&&(n=!1);var r=this._codec.getModule(mn);return r.setRoomType(me.LIVE),t&&r.setBroadcastType(t),r.setIdentityChangeType(e),r.setNeedSysChatroom(n),r.getArrayData()},e.prototype.encodePullRTCRoomKV=function(e,t){var n=this._codec.getModule(Lr);return n.setTimestamp(t),n.setRoomId(e),n.getArrayData()},e.prototype.encodeQueryUserJoinedInfo=function(e){var t=this._codec.getModule(xr);return t.setUserId(e),t.getArrayData()},e.prototype.encodeRequestRoomPK=function(e){var t=e.invitedRoomId,n=e.invitedUserId,r=e.inviteSessionId,i=e.inviteTimeout,o=e.inviteInfo,s=this._codec.getModule(kr);return s.setInvitedRoomId(t),s.setInvitedUserId(n),s.setInviteSessionId(r),s.setTimeoutTime(i),s.setInviteInfo(o),s.getArrayData()},e.prototype.encodeCancelRoomPK=function(e){var t=e.invitedRoomId,n=e.invitedUserId,r=e.inviteSessionId,i=e.inviteInfo,o=this._codec.getModule(zr);return o.setInvitedRoomId(t),o.setInvitedUserId(n),o.setInviteSessionId(r),o.setInviteInfo(i),o.getArrayData()},e.prototype.encodeResponseRoomPK=function(e){var t=e.inviteUserId,n=e.inviteRoomId,r=e.inviteSessionId,i=e.content,o=e.key,s=e.value,a=e.agree?1:0,c=this._codec.getModule(Gr);return c.setInviteUserId(t),c.setInviteRoomId(n),c.setInviteSessionId(r),c.setContent(i),c.setKey(o),c.setValue(s),c.setAnswerCode(a),c.getArrayData()},e.prototype.encodeEndRoomPK=function(e){var t=e.endRoomId,n=e.sessionId,r=e.content,i=e.keys,o=this._codec.getModule(Br);return o.setInviteRoomId(t),o.setInviteSessionId(n),o.setInviteContent(r),o.setInviteRoomKeys(i),o.getArrayData()},e.prototype.encodebindRTCRoomForChatroom=function(e){var t=this._codec.getModule(Vr);return t.setRtcRoomId(e.rtcRoomId),t.getArrayData()},e}(),xi=function(e,t){this._watcher=t,this.codec=new Ui(e)};function Pi(e,t,n){if(e&&Fe){var r=Pe(Le(le.STATISTICS),e,t,n);return Fe.reportRealtimeLog([r]).then((function(){$e(he.G_UPLOAD_LOG_S,"big data realtime report success")})).catch((function(e){$e(he.G_UPLOAD_LOG_E,"big data realtime report error -> "+e)}))}}!function(e){e[e.PRIVATE=1]="PRIVATE",e[e.OPEN=0]="OPEN"}(ri||(ri={})),function(e){e[e.NAVI=1]="NAVI",e[e.TCP=2]="TCP",e[e.WS=3]="WS"}(ii||(ii={}));var ji,ki,zi={},Gi={sdkPrivate:ri.OPEN,serverPrivate:ri.OPEN,bundleId:"lib-next"};function Bi(e){Gi.sdkPrivate=e.sdkPrivate===ri.PRIVATE?ri.PRIVATE:ri.OPEN,Gi.serverPrivate=e.serverPrivate===ri.PRIVATE?ri.PRIVATE:ri.OPEN,e.bundleId&&(Gi.bundleId=e.bundleId)}function Vi(){return Gi}function Yi(e,t,n){void 0===t&&(t={}),void 0===n&&(n=!1),k(t)&&e&&(zi[e]&&!n||(zi[e]={}),zi[e]=m(m({},zi[e]),t))}function Hi(e){return zi[e]||{}}!function(e){e.GET="GET",e.POST="POST"}(ji||(ji={})),function(e){e.WIFI="wifi",e.FOUR_G="4g",e.THREE_G="3g",e.TWO_G="2g",e.FIVE_G="2g",e.THREE_GENT="3gnet",e.UNKONWN="unknown"}(ki||(ki={}));var Fi,Qi=function(e,t){return e&&t?t+"_"+e:e||Date.now()},$i=function(){function e(e){this.header=e,this._name=null,this.lengthSize=0,this.messageId=0,this.timestamp=0,this.syncMsg=!1,this.identifier=""}return e.prototype.getIdentifier=function(){var e=this.messageId,t=this.identifier;return Qi(e,t)},e.prototype.read=function(e,t,n){this.readMessage(e,t,n)},e.prototype.readMessage=function(e,t,n){return{stream:e,length:t}},e}(),Ki=function(){function e(e){this.lengthSize=0,this.messageId=0,this.topic="",this.targetId="",this.identifier="",this._header=new Yt(e,!1,gt.AT_MOST_ONCE,!1)}return e.prototype.getIdentifier=function(){var e=this.messageId,t=this.identifier;return Qi(e,t)},e.prototype.write=function(e){var t=this.getHeaderFlag();e.write(t),this.writeMessage(e)},e.prototype.setHeaderQos=function(e){this._header.qos=e},e.prototype.getHeaderFlag=function(){return this._header.encode()},e.prototype.getLengthSize=function(){return this.lengthSize},e.prototype.getBufferData=function(){var e=new Qt;this.write(e);var t=e.getBytesArray();return new Int8Array(t)},e.prototype.getCometData=function(){var e=this.data||{};return JSON.stringify(e)},e}(),Wi=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._name=yt.CONN_ACK,t.status=null,t.userId=null,t.timestamp=0,t}return y(t,e),t.prototype.readMessage=function(e,n,r){if(e.readByte(),this.status=+e.readByte(),n<=t.MESSAGE_LENGTH)return{stream:e,length:n};if(r===It.V4){var i=e.readByte();1&i&&(this.userId=e.readUTF()),2&i&&e.readUTF(),4&i&&(this.timestamp=e.readLong()),8&i&&(this.messageId=e.read2Byte())}else{this.userId=e.readUTF();var o=e.readUTF();ut.debug("server sessionId -> "+o),this.timestamp=e.readLong()}return{stream:e,length:n}},t.MESSAGE_LENGTH=2,t}($i),qi=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._name=yt.DISCONNECT,t.status=0,t}return y(t,e),t.prototype.readMessage=function(e,t){return e.readByte(),this.status=+e.readByte(),{stream:e,length:t}},t.MESSAGE_LENGTH=2,t}($i),Zi=function(e){function t(){var t=e.call(this,vt.PING_REQ)||this;return t._name=yt.PING_REQ,t}return y(t,e),t.prototype.writeMessage=function(e){},t}(Ki),Ji=function(e){function t(t){var n=e.call(this,t)||this;return n._name=yt.PING_RESP,n}return y(t,e),t}($i),Xi=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.messageId=0,t}return y(t,e),t.prototype.readMessage=function(e,t){var n=256*e.readByte()+e.readByte();return this.messageId=parseInt(n.toString(),10),{stream:e,length:t}},t}($i),eo=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.messageId=0,t}return y(t,e),t.prototype.writeMessage=function(e){var t=this.messageId,n=255&t,r=(65280&t)>>8;e.write(r),e.write(n)},t}(Ki),to=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._name=yt.PUBLISH,t.topic="",t.targetId="",t.syncMsg=!1,t.identifier=mt.PUB,t}return y(t,e),t.prototype.readMessage=function(t,n){return this.date=t.readInt(),this.topic=t.readUTF(),this.targetId=t.readUTF(),e.prototype.readMessage.call(this,t,n),this.data=t.readAll(),{stream:t,length:n}},t}(Xi),no=function(e){function t(t,n,r){var i=e.call(this,vt.PUBLISH)||this;return i._name=yt.PUBLISH,i.syncMsg=!1,i.identifier=mt.PUB,i.topic=t,i.data=R(n)?Ht.writeUTF(n):n,i.targetId=r,i}return y(t,e),t.prototype.writeMessage=function(t){t.writeUTF(this.topic),t.writeUTF(this.targetId),e.prototype.writeMessage.call(this,t),t.write(this.data)},t}(eo),ro=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._name=yt.PUB_ACK,t.status=0,t.date=0,t.millisecond=0,t.messageUId="",t.timestamp=0,t.identifier=mt.PUB,t.topic="",t.targetId="",t}return y(t,e),t.prototype.readMessage=function(t,n){return e.prototype.readMessage.call(this,t,n),this.date=t.readInt(),this.status=256*t.readByte()+t.readByte(),this.millisecond=256*t.readByte()+t.readByte(),this.timestamp=1e3*this.date+this.millisecond,this.messageUId=t.readUTF(),{stream:t,length:n}},t}(Xi),io=function(e){function t(t){var n=e.call(this,vt.PUB_ACK)||this;return n._name=yt.PUB_ACK,n.status=0,n.date=0,n.millisecond=0,n.messageUId="",n.timestamp=0,n.messageId=t,n}return y(t,e),t.prototype.writeMessage=function(t){e.prototype.writeMessage.call(this,t)},t}(eo),oo=function(e){function t(t,n,r){var i=e.call(this,vt.QUERY)||this;return i.name=yt.QUERY,i.identifier=mt.QUERY,i.topic=t,i.data=R(n)?Ht.writeUTF(n):n,i.targetId=r,i}return y(t,e),t.prototype.writeMessage=function(t){t.writeUTF(this.topic),t.writeUTF(this.targetId),e.prototype.writeMessage.call(this,t),t.write(this.data)},t}(eo),so=function(e){function t(t){var n=e.call(this,vt.QUERY_CONFIRM)||this;return n._name=yt.QUERY_CON,n.messageId=t,n}return y(t,e),t}(eo),ao=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._name=yt.QUERY_ACK,t.status=0,t.identifier=mt.QUERY,t.topic="",t.targetId="",t}return y(t,e),t.prototype.readMessage=function(t,n){return e.prototype.readMessage.call(this,t,n),this.date=t.readInt(),this.status=256*t.readByte()+t.readByte(),this.data=t.readAll(),{stream:t,length:n}},t}(Xi),co=function(e){var t,n=e.type;switch(n){case vt.CONN_ACK:t=new Wi(e);break;case vt.PUBLISH:(t=new to(e)).syncMsg=e.syncMsg;break;case vt.PUB_ACK:t=new ro(e);break;case vt.QUERY_ACK:t=new ao(e);break;case vt.SUB_ACK:case vt.UNSUB_ACK:case vt.PING_RESP:t=new Ji(e);break;case vt.DISCONNECT:t=new qi(e);break;default:t=new $i(e),ut.error("No support for deserializing "+n+" messages")}return t};!function(e){e[e.ppMsgP=1]="ppMsgP",e[e.ppMsgN=2]="ppMsgN",e[e.ppMsgS=3]="ppMsgS",e[e.pgMsgP=4]="pgMsgP",e[e.chatMsg=5]="chatMsg",e[e.pcMsgP=6]="pcMsgP",e[e.qryPMsg=7]="qryPMsg",e[e.qryGMsg=8]="qryGMsg",e[e.qryCHMsg=9]="qryCHMsg",e[e.qryCMsg=10]="qryCMsg",e[e.qrySMsg=11]="qrySMsg",e[e.recallMsg=12]="recallMsg",e[e.prMsgS=13]="prMsgS",e[e.rrMsg=14]="rrMsg",e[e.rrList=15]="rrList",e[e.s_ntf=16]="s_ntf",e[e.s_msg=17]="s_msg",e[e.s_stat=18]="s_stat",e[e.s_cmd=19]="s_cmd",e[e.s_us=20]="s_us",e[e.pullUS=21]="pullUS",e[e.pgMsgS=22]="pgMsgS",e[e.chatMsgS=23]="chatMsgS",e[e.qrySessionsAtt=24]="qrySessionsAtt",e[e.pullMsg=25]="pullMsg",e[e.qrySessions=26]="qrySessions",e[e.delSessions=27]="delSessions",e[e.delMsg=28]="delMsg",e[e.updRRTime=29]="updRRTime",e[e.chrmPull=30]="chrmPull",e[e.joinChrm=31]="joinChrm",e[e.joinChrmR=32]="joinChrmR",e[e.exitChrm=33]="exitChrm",e[e.queryChrmI=34]="queryChrmI",e[e.setKV=35]="setKV",e[e.delKV=36]="delKV",e[e.pullKV=37]="pullKV",e[e.qryRelation=38]="qryRelation",e[e.delRelation=39]="delRelation",e[e.pullSeAtts=40]="pullSeAtts",e[e.setSeAtt=41]="setSeAtt",e[e.qnTkn=42]="qnTkn",e[e.qnUrl=43]="qnUrl",e[e.aliUrl=44]="aliUrl",e[e.s3Url=45]="s3Url",e[e.stcUrl=46]="stcUrl",e[e.cleanPMsg=47]="cleanPMsg",e[e.cleanGMsg=48]="cleanGMsg",e[e.cleanCMsg=49]="cleanCMsg",e[e.cleanSMsg=50]="cleanSMsg",e[e.rtcRJoin_data=51]="rtcRJoin_data",e[e.rtcRExit=52]="rtcRExit",e[e.rtcPing=53]="rtcPing",e[e.rtcSetData=54]="rtcSetData",e[e.rtc_ntf=55]="rtc_ntf",e[e.viewerJoinR=56]="viewerJoinR",e[e.viewerExitR=57]="viewerExitR",e[e.rtcPullKv=58]="rtcPullKv",e[e.rtcIdentityChange=59]="rtcIdentityChange",e[e.userSetData=60]="userSetData",e[e.rtcQryData=61]="rtcQryData",e[e.rtcDelData=62]="rtcDelData",e[e.rtcSetOutData=63]="rtcSetOutData",e[e.rtcQryUserOutData=64]="rtcQryUserOutData",e[e.rtcToken=65]="rtcToken",e[e.rtcUserState=66]="rtcUserState",e[e.rtcRInfo=67]="rtcRInfo",e[e.rtcUData=68]="rtcUData",e[e.rtcUPut=69]="rtcUPut",e[e.rtcUDel=70]="rtcUDel",e[e.rtcUList=71]="rtcUList",e[e.rtcQueryJoined=72]="rtcQueryJoined",e[e.rtcInvite=73]="rtcInvite",e[e.rtcCancelInvite=74]="rtcCancelInvite",e[e.rtcInviteAnswer=75]="rtcInviteAnswer",e[e.rtcEndInvite=76]="rtcEndInvite",e[e.addSeTag=77]="addSeTag",e[e.delSeTag=78]="delSeTag",e[e.addTag=79]="addTag",e[e.delTag=80]="delTag",e[e.disTag=81]="disTag",e[e.reportsdk=82]="reportsdk",e[e.pullUgSes=83]="pullUgSes",e[e.pullUgMsg=84]="pullUgMsg",e[e.ugMsg=85]="ugMsg",e[e.qryUgMsg=86]="qryUgMsg",e[e.updUgRTime=87]="updUgRTime",e[e.upMsgEx=88]="upMsgEx",e[e.modifyMsg=89]="modifyMsg",e[e.qryMsgChange=90]="qryMsgChange",e[e.qryMsg=91]="qryMsg",e[e.operate=92]="operate",e[e.s_opNtf=93]="s_opNtf",e[e.ugUnpushQuery=94]="ugUnpushQuery",e[e.ugUnpushSet=95]="ugUnpushSet",e[e.setRtcRoomId=96]="setRtcRoomId"}(Fi||(Fi={}));var uo,lo,fo=Fi,ho=function(e,t,n,r,i,o,s,a){return"".concat(e,"://").concat(t,"/websocket?appId=").concat(n,"&token=").concat(encodeURIComponent(r),"&sdkVer=").concat(o,"&pid=").concat(s,"&apiVer=").concat(i.isFromUniapp?"uniapp":"normal").concat(i.connectPlatform?"&platform="+i.connectPlatform:"").concat(a?"&protocolVer="+a:"")},po=function(e){return[fo.ppMsgS,fo.pgMsgS,fo.chatMsgS].map((function(e){return fo[e]})).indexOf(e)>=0};!function(e){e[e.REDIRECT=0]="REDIRECT",e[e.OTHER_DEVICE_LOGIN=1]="OTHER_DEVICE_LOGIN",e[e.BLOCK=2]="BLOCK",e[e.REMOTE_CLOSE=3]="REMOTE_CLOSE",e[e.LOGOUT=4]="LOGOUT",e[e.BLOCK_NEW=5]="BLOCK_NEW",e[e.REDIRECT_NEW=6]="REDIRECT_NEW"}(uo||(uo={})),function(e){e.IM_NAVI="IM-stats_navi-S",e.IM_WEBSOCKET="IM-stats_websocket-S",e.IM_COMET="IM-stats_comet-S",e.IM_CONNECTION_DURATION="IM-stats_con_dur-S"}(lo||(lo={}));var go=function(e,t){ut.info("websocket send -> messageId: ".concat(e.messageId," topic: ").concat(e.topic));var n=e.getBufferData();t.send(n.buffer)},vo=function(e){function t(t,n){var r=e.call(this,"websocket",n)||this;return r._runtime=t,r._socket=null,r._messageIds={},r._syncMessageIds={},r._failedCount=0,r.ALLOW_FAILED_TIMES=2,r._timer=null,r._idCount=0,r._generateMessageId=function(){return r._idCount>=65535&&(r._idCount=0),++r._idCount},r}return y(t,e),t.prototype.connect=function(e,t,n,r,i,o){return I(this,void 0,void 0,(function(){var s=this;return _(this,(function(a){return[2,new Promise((function(a){var c=n.slice(),u=!1,l=function(){return I(s,void 0,void 0,(function(){var n,s,f;return _(this,(function(h){switch(h.label){case 0:return 0===c.length||u?[2]:(u=!0,n=c.shift(),Yi(lo.IM_WEBSOCKET,{startTime:(new Date).getTime(),host:n,protocol:ii.WS}),[4,this._connect(e,t,n,r,i,o)]);case 1:if(s=h.sent(),f=s===q.SUCCESS||s===X.REDIRECT?s:Pt(s),Yi(lo.IM_WEBSOCKET,{endTime:(new Date).getTime(),code:f}),function(e){I(this,void 0,void 0,(function(){var t,n,r,i,o,s,a,c,u,l,f,h,d,p;return _(this,(function(g){switch(g.label){case 0:t=lo.IM_WEBSOCKET,n=Vi(),r=n.sdkPrivate,i=n.serverPrivate,o=n.bundleId,s=Hi(t),a=s.protocol,c=s.startTime,u=s.endTime,l=s.code,f=s.host,h=ki.UNKONWN,g.label=1;case 1:return g.trys.push([1,3,,4]),[4,e.getNetworkType()];case 2:return h=g.sent(),[3,4];case 3:return d=g.sent(),ut.info(d.message),[3,4];case 4:return p=0,L(c)&&L(u)&&u>c&&c&&(p=u-c),Pi(t,{spr:r,pr:i,bid:o,ptc:a,dur:p,cod:l,hos:f,net:h}),[2]}}))}))}(this._runtime),s===q.SUCCESS)this._checkAlive(),a(s);else if(s===X.REDIRECT)a(s);else{if(0===c.length)return a(Pt(s)),[2];u=!1,l()}return[2]}}))}))};i=S(i),s._watcher.status(J.CONNECTING),l()}))]}))}))},t.prototype._connect=function(e,t,n,r,i,o){return I(this,void 0,void 0,(function(){var s,a,c,u,l,f=this;return _(this,(function(h){switch(h.label){case 0:return s=r.replace("http","ws"),a=ho(s,n,e,t,this._runtime,i,"",o),ut.info("conenct start -> ".concat(a)),this.sendConnectTime=Date.now(),c=this._runtime.createWebSocket(a),u=function(e){f._timer&&(clearTimeout(f._timer),f._timer=null),f._socket===c&&(f._socket=null,f._watcher.status(e))},[4,new Promise((function(e){c.onMessage((function(t){if("[object ArrayBuffer]"===Object.prototype.toString.call(t)){var n=function(e,t){var n=new Uint8Array(e),r=new Ft(n),i=r.readByte(),o=new Yt(i),s=co(o);return s.read(r,n.length-1,t),s}(t,o);if(n instanceof Ji&&f._pingResolve)return f._pingResolve(q.SUCCESS),void(f._pingResolve=void 0);if(n instanceof Wi)return ut.info("recv connect ack -> ".concat(n.status)),n.status!==X.ACCEPTED?(ut.warn("connect failed: ".concat(n.status)),void e(n.status)):(ut.info("connect success -> ".concat(a)),f.connectedTime=n.timestamp,f.userId=n.userId||"",f._idCount=n.messageId,void e(q.SUCCESS));if(n instanceof qi){var r=n.status;switch(ut.warn("recv disconnect signal -> status: ".concat(r)),r){case uo.BLOCK_NEW:case uo.BLOCK:f._watcher.status(J.BLOCKED);break;case uo.OTHER_DEVICE_LOGIN:f._watcher.status(J.KICKED_OFFLINE_BY_OTHER_CLIENT);break;case uo.REDIRECT_NEW:case uo.REDIRECT:f._watcher.status(J.REDIRECT);break;default:f._watcher.status(J.DISCONNECT_BY_SERVER)}}else f._onReceiveSignal(n)}else ut.error("Socket received invalid data:",t)})),c.onClose((function(t,n){for(var r in ut.warn("websocket closed! code:",t,"reason:",n),u(J.CONNECTION_CLOSED),f._messageIds){var i=f._messageIds[r];delete f._messageIds[r],i(q.RC_NET_CHANNEL_INVALID)}e(t)})),c.onError((function(t){for(var n in ut.error("websocket error!",null==t?void 0:t.stack),u(J.WEBSOCKET_ERROR),f._messageIds){var r=f._messageIds[n];delete f._messageIds[n],r(q.RC_NET_CHANNEL_INVALID)}e(q.NETWORK_ERROR)})),c.onOpen((function(){return ut.info("websocket open =>",a)})),setTimeout((function(){e(q.TIMEOUT)}),5e3)}))];case 1:return(l=h.sent())===q.SUCCESS?this._socket=c:(ut.warn("connect result -> code: ".concat(l,", url: ").concat(a)),c.close()),[2,l]}}))}))},t.prototype._checkAlive=function(){var e;return I(this,void 0,void 0,(function(){var t,n,r=this;return _(this,(function(i){switch(i.label){case 0:return this._socket?(ut.info("send ping ->"),this.sendOnly(new Zi),t=Ve(),$e(he.L_CHECK_ALIVE_IM_T,{},{traceId:t}),[4,new Promise((function(e){r._pingResolve=e,r._timer&&clearTimeout(r._timer),r._timer=setTimeout((function(){r._pingResolve=void 0,e(q.TIMEOUT)}),15e3)}))]):[2];case 1:return n=i.sent(),(n===q.SUCCESS?$e:Ke)(he.L_CHECK_ALIVE_IM_R,{isSuccess:n===q.SUCCESS},{traceId:t}),n!==q.SUCCESS?(this._failedCount+=1,ut.warn("ping failed count: ".concat(this._failedCount,", code: ").concat(n)),this._failedCount>=this.ALLOW_FAILED_TIMES?(this._failedCount=0,ut.warn("ping timeout, close current websocket to reconnect!"),null===(e=this._socket)||void 0===e||e.close(),this._socket=null,this._watcher.status(J.NETWORK_UNAVAILABLE)):this._checkAlive(),[2]):(ut.info("recv ping <-"),this._failedCount=0,setTimeout((function(){return r._checkAlive()}),15e3),[2])}}))}))},t.prototype._onReceiveSignal=function(e){return I(this,void 0,void 0,(function(){var t,n,r,i,o,s,a=this;return _(this,(function(c){switch(c.label){case 0:return t=e.messageId,e.header&&e.header.qos!==gt.AT_MOST_ONCE&&(e instanceof to&&!e.syncMsg&&(ut.info("send pubAck -> ".concat(t," ").concat(e.topic)),this.sendOnly(new io(t))),e instanceof ao&&(ut.info("send queryCon -> ".concat(t," ").concat(e.topic)),this.sendOnly(new so(t)))),t>0&&(e instanceof ro||e instanceof ao)&&(ut.info("recv ack -> messageId: ".concat(t," ").concat(e.topic)),(n=this._messageIds[t])&&(n(e),delete this._messageIds[t]),(r=this._syncMessageIds[t])&&(delete this._syncMessageIds[t],r(e))),e instanceof to?(i=e.syncMsg,o=e.topic,ut.info("recv PublishReader -> messageId: ".concat(t," ").concat(o)),o===fo[fo.userSetData]?[2]:!i||po(o)?(this._watcher.signal(e),[2]):[4,new Promise((function(e){a._syncMessageIds[t]=e}))]):[3,2];case 1:s=c.sent(),delete this._syncMessageIds[t],this._watcher.signal(e,s),c.label=2;case 2:return[2]}}))}))},t.prototype.sendOnly=function(e){this._socket&&((e instanceof no||e instanceof oo)&&(e.messageId=this._generateMessageId()),go(e,this._socket))},t.prototype.send=function(e,t,n,r){return void 0===r&&(r=3e4),I(this,void 0,void 0,(function(){var i,o,s,a,c=this;return _(this,(function(u){switch(u.label){case 0:return this._socket?(i=this._generateMessageId(),e.messageId=i,go(e,this._socket),[4,new Promise((function(e){c._messageIds[i]=e,setTimeout((function(){c._messageIds[i]&&delete c._messageIds[i],e()}),r)}))]):[3,2];case 1:return(o=u.sent())?o instanceof ao||o instanceof ro?(s=t&&o.data&&[q.SUCCESS,q.CHATROOM_KV_STORE_NOT_ALL_SUCCESS].indexOf(o.status)>=0,a=s?this.codec.decodeByPBName(o.data,t,n):o,0!==o.status?(ut.warn("send failed -> message: ".concat(i,", respPBName: ").concat(t,", status: ").concat(o.status)),[2,{code:o.status,data:t&&o.data?a:null}]):[2,{code:q.SUCCESS,data:a}]):[2,{code:o}]:(ut.warn("send timeout -> message: ".concat(i,", respPBName: ").concat(t,", timeout: ").concat(r)),[2,{code:q.TIMEOUT}]);case 2:return[2,{code:q.RC_NET_CHANNEL_INVALID}]}}))}))},t.prototype.close=function(){this._socket&&(this._socket.close(),this._socket=null,this._watcher.status(J.DISCONNECTED))},t}(xi),yo=function(e){function t(t,n){var r=e.call(this,"comet",n)||this;return r._runtime=t,r._messageIds={},r._syncMessageIds={},r._idCount=0,r._generateMessageId=function(){return++r._idCount},r._pid=encodeURIComponent((new Date).getTime()+Math.random()+""),r}return y(t,e),t.prototype.handleCometRes=function(e){var t=this;if(200!==e.status&&202!==e.status)return!1;var n=R(e.data)?JSON.parse(e.data):e.data;return n?!U(n)||(Ot(n,(function(e){return I(t,void 0,void 0,(function(){var t,n,r,i,o,s,a,c,u,l,f,h=this;return _(this,(function(d){switch(d.label){case 0:if((t=e.sessionid)&&(this._sessionid=t),n=function(e){var t=e.headerCode,n=new Yt(t),r=co(n);for(var i in e)r[i]=e[i];return r}(e),r=n.messageId,i=n._header,o=n.status,s=i&&i.qos!==gt.AT_MOST_ONCE,r&&n.getIdentifier&&((a=this._messageIds[r])&&a(n),this._syncMessageIds[r]&&this._syncMessageIds[r](n)),s&&(n instanceof to&&!n.syncMsg&&(c=new io(r),this.sendOnly(c)),n instanceof ao&&(c=new so(r),this.sendOnly(c))),n instanceof qi){switch(o){case uo.OTHER_DEVICE_LOGIN:this._watcher.status(J.KICKED_OFFLINE_BY_OTHER_CLIENT);break;case uo.BLOCK:case uo.BLOCK_NEW:this._watcher.status(J.BLOCKED);break;case uo.REDIRECT_NEW:case uo.REDIRECT:this._watcher.status(J.REDIRECT);break;default:this._watcher.status(J.DISCONNECT_BY_SERVER)}return[2]}return n instanceof to?(u=n.syncMsg,l=n.topic,!u||po(l)?(this._watcher.signal(n),[2,!1]):[4,new Promise((function(e){h._syncMessageIds[r]=e}))]):[3,2];case 1:f=d.sent(),delete this._syncMessageIds[r],this._watcher.signal(n,f),d.label=2;case 2:return[2]}}))}))})),!0):(ut.error("received data is not a validJson",n),!1)},t.prototype._startPullSignal=function(e){return I(this,void 0,void 0,(function(){var t,n,r,i,o;return _(this,(function(s){switch(s.label){case 0:return t=(new Date).getTime(),n="".concat(e,"://").concat(this._domain,"/pullmsg.js?sessionid=").concat(this._sessionid,"×trap=").concat(t,"&pid=").concat(this._pid),r=Ve(),$e(he.L_CHECK_ALIVE_IM_T,{},{traceId:r}),[4,this._runtime.httpReq({url:n,body:{pid:this._pid},timeout:45e3})];case 1:return i=s.sent(),o=this.handleCometRes(i),(o?$e:Ke)(he.L_CHECK_ALIVE_IM_R,{isSuccess:o},{traceId:r}),this._isDisconnected||(o?this._startPullSignal(e):(this._isDisconnected=!0,this._watcher.status(J.NETWORK_UNAVAILABLE))),[2]}}))}))},t.prototype.connect=function(e,t,n,r,i,o){return I(this,void 0,void 0,(function(){var o,s,a=this;return _(this,(function(c){return i=S(i),this._protocol=r,this._isDisconnected=!1,this._watcher.status(J.CONNECTING),o=n.slice(),s=!1,[2,new Promise((function(n){var c=function(){return I(a,void 0,void 0,(function(){var a,u,l;return _(this,(function(f){switch(f.label){case 0:return 0===o.length||s?[2]:(s=!0,a=o.shift(),Yi(lo.IM_COMET,{startTime:(new Date).getTime(),host:a,protocol:ii.NAVI}),[4,this._connect(e,t,a,r,i)]);case 1:if(u=f.sent(),l=u===q.SUCCESS||u===X.REDIRECT?u:Pt(u),Yi(lo.IM_COMET,{endTime:(new Date).getTime(),code:l}),function(e){I(this,void 0,void 0,(function(){var t,n,r,i,o,s,a,c,u,l,f,h,d,p;return _(this,(function(g){switch(g.label){case 0:t=lo.IM_COMET,n=Vi(),r=n.sdkPrivate,i=n.serverPrivate,o=n.bundleId,s=Hi(t),a=s.protocol,c=s.startTime,u=s.endTime,l=s.code,f=s.host,h=ki.UNKONWN,g.label=1;case 1:return g.trys.push([1,3,,4]),[4,e.getNetworkType()];case 2:return h=g.sent(),[3,4];case 3:return d=g.sent(),ut.info(d.message),[3,4];case 4:return p=0,L(c)&&L(u)&&u>c&&c&&(p=u-c),Pi(t,{spr:r,pr:i,bid:o,ptc:a,dur:p,cod:l,hos:f,net:h}),[2]}}))}))}(this._runtime),u===q.SUCCESS)this._startPullSignal(r),n(u);else if(u===X.REDIRECT)n(u);else{if(0===o.length)return n(Pt(u)),[2];s=!1,c()}return[2]}}))}))};a._watcher.status(J.CONNECTING),c()}))]}))}))},t.prototype._connect=function(e,t,n,r,i){return I(this,void 0,void 0,(function(){var o,s,a,c;return _(this,(function(u){switch(u.label){case 0:return o=function(e){return 200!==e.status&&202!==e.status?(ut.error("handle comet res -> res: ".concat(JSON.stringify(e||{}))),!1):!!e.data&&(function(e){if(k(e))return!0;var t=!1;try{var n=JSON.parse(e);t=JSON.stringify(n)===e}catch(e){t=!1}return t}(e.data)?k(e.data)?e.data:JSON.parse(e.data):(ut.error("received data is not a validJson",e.data),!1))},s=ho(r,n,e,t,this._runtime,i,this._pid),this.sendConnectTime=Date.now(),ut.info("conenct start -> ".concat(s)),[4,this._runtime.httpReq({url:s,body:{pid:this._pid},timeout:5e3})];case 1:return a=u.sent(),c=o(a),this._domain=n,c&&0===c.status?(this._sessionid=c.sessionid,this.userId=c.userId,this.connectedTime=c.timestamp,$e("connect success -> userId: ".concat(c.userId,", url: ").concat(s))):ut.warn("connect result -> code: ".concat(null==c?void 0:c.status,", url: ").concat(s)),[2,null==c?void 0:c.status]}}))}))},t.prototype.sendCometData=function(e,t){return I(this,void 0,void 0,(function(){var t,n,r,i,o,s,a,c,u,l;return _(this,(function(f){switch(f.label){case 0:return n=(t=this)._domain,r=t._sessionid,i=t._pid,o=e.messageId,s=e.topic,a=e.targetId,c=e.getHeaderFlag(),u=s?"".concat(this._protocol,"://").concat(n,"/websocket?messageid=").concat(o,"&header=").concat(c,"&sessionid=").concat(r,"&topic=").concat(s,"&targetid=").concat(a,"&pid=").concat(i):"".concat(this._protocol,"://").concat(n,"/websocket?messageid=").concat(o,"&header=").concat(c,"&sessionid=").concat(r,"&pid=").concat(i),[4,this._runtime.httpReq({url:u,method:ji.POST,body:e.getCometData()})];case 1:return l=f.sent(),this.handleCometRes(l),[2]}}))}))},t.prototype.sendOnly=function(e){this.sendCometData(e)},t.prototype.send=function(e,t,n,r){return void 0===r&&(r=3e4),I(this,void 0,void 0,(function(){var i,o,s,a,c=this;return _(this,(function(u){switch(u.label){case 0:return i=this._generateMessageId(),e.messageId=i,this.sendCometData(e),[4,new Promise((function(e){c._messageIds[i]=e,setTimeout((function(){delete c._messageIds[i],e()}),r)}))];case 1:return(o=u.sent())?(s=t&&o.data&&[q.SUCCESS,q.CHATROOM_KV_STORE_NOT_ALL_SUCCESS].indexOf(o.status)>=0,a=s?this.codec.decodeByPBName(o.data,t,n):o,0!==o.status?[2,{code:o.status,data:t&&o.data?a:null}]:[2,{code:q.SUCCESS,data:a}]):[2,{code:q.TIMEOUT}]}}))}))},t.prototype.close=function(){this._isDisconnected=!0,this._watcher.status(J.DISCONNECTED)},t}(xi),mo=function(e){return["navi",e].join("_")};function Io(e){return I(this,void 0,void 0,(function(){var t,n,r,i,o,s,a,c,u,l,f,h,d,p;return _(this,(function(g){switch(g.label){case 0:t=lo.IM_NAVI,n=Vi(),r=n.sdkPrivate,i=n.serverPrivate,o=n.bundleId,s=Hi(t),a=s.protocol,c=s.startTime,u=s.endTime,l=s.code,f=s.host,h=ki.UNKONWN,g.label=1;case 1:return g.trys.push([1,3,,4]),[4,e.getNetworkType()];case 2:return h=g.sent(),[3,4];case 3:return d=g.sent(),ut.debug(d.message),[3,4];case 4:return p=0,L(c)&&L(u)&&u>c&&c&&(p=u-c),Pi(t,{spr:r,pr:i,bid:o,ptc:a,dur:p,cod:l,hos:f,net:h}),[2]}}))}))}var _o=function(){function e(e,t,n){this.runtime=e,this._watcher=t,this._options=n,this._naviInfo=null,this._appkey=this._options.appkey,this._apiVer=this._options.apiVersion,this._apiVersion=S(this._options.apiVersion)}return e.prototype.getNaviInfo=function(e,t,n,r){return I(this,void 0,void 0,(function(){var r,i;return _(this,(function(o){switch(o.label){case 0:return n&&this._clear(e),r=function(e,t,n){var r,i,o=mo(e);try{var s=n.getItem(o);i=s?JSON.parse(s):[]}catch(e){i=[]}var a=Date.now();return i.length>0&&(i=i.filter((function(e){return a-e.timestamp<72e5}))),0===i.length?n.removeItem(o):n.setItem(o,JSON.stringify(i)),(null===(r=i.find((function(e){return e.token===t})))||void 0===r?void 0:r.naviInfo)||null}(this._appkey,e,this.runtime.localStorage),r?(this._naviInfo=r,[2,r]):(i=this._options.navigators.slice(),t.length&&t.forEach((function(e){i.indexOf(e)<0&&i.unshift(e)})),[4,this.requestNaviInfo(i,this._appkey,e)]);case 1:return(r=o.sent())?(this._naviInfo=r,this.setNaviInfo2Cache(e,r),[2,r]):[2,r]}}))}))},e.prototype.setNaviInfo2Cache=function(e,t){this._naviInfo=t,function(e,t,n,r){var i,o=mo(e);try{var s=r.getItem(o);i=s?JSON.parse(s):[]}catch(e){i=[]}var a=Date.now();i.length>0&&(i=i.filter((function(e){return a-e.timestamp<72e5&&t!==e.token}))),i.push({timestamp:a,naviInfo:n,token:t}),r.setItem(o,JSON.stringify(i))}(this._appkey,e,t,this.runtime.localStorage)},e.prototype.getInfoFromCache=function(e){return m({},this._naviInfo)},e.prototype._clear=function(e){!function(e,t,n){var r,i=mo(e);try{var o=n.getItem(i);r=o?JSON.parse(o):[]}catch(e){r=[]}var s=Date.now();r.length>0&&(r=r.filter((function(e){return s-e.timestamp<72e5&&t!==e.token}))),0===r.length?n.removeItem(i):n.setItem(i,JSON.stringify(r))}(this._appkey,e,this.runtime.localStorage)},e}(),To=function(){function e(e){this._context=e}return e.prototype.__getContext=function(){return this._context},e.prototype.getNaviInfo=function(){return this._context.getInfoFromCache()},e.prototype.getCoreVersion=function(){return this._context.coreVersion},e.prototype.getAPIVersion=function(){return this._context.apiVersion},e.prototype.getAppkey=function(){return this._context.appkey},e.prototype.getCurrentId=function(){return this._context.getCurrentUserId()},e.prototype.getConnectionStatus=function(){return this._context.getConnectionStatus()},e.prototype.getDeviceId=function(){return this._context.getDeviceId()},e.prototype.sendMessage=function(e,t,n){return this._context.sendMessage(e,t,n)},e.prototype.registerMessageType=function(e,t,n,r){void 0===r&&(r=[]),this._context.registerMessageType(e,t,n,r)},e.prototype.getServerTime=function(){return this._context.getServerTime()},e.prototype.getRTCJoinedUserInfo=function(e){return this._context.getRTCJoinedUserInfo(e)},e}(),Co=function(e,t,n){return[e,t,n].join("_")},Mo=function(){function e(e,t){this._runtime=e,this._appkey=t,this._users={}}return e.prototype._getMemData=function(e){return this._users[e]||(this._users[e]={inboxTime:0,outboxTime:0,broadcastSyncTime:0})},e.prototype.setInboxTime=function(e,t){var n=this._getMemData(t);if(!(n.inboxTime>e)){n.inboxTime=e;var r=Co("inbox",this._appkey,t);this._runtime.localStorage.setItem(r,e.toString())}},e.prototype.getInboxTime=function(e){var t=this._getMemData(e);if(0===t.inboxTime){var n=Co("inbox",this._appkey,e);t.inboxTime=parseInt(this._runtime.localStorage.getItem(n))||0}return t.inboxTime},e.prototype.setBroadcastSyncTime=function(e,t){var n=this._getMemData(t);if(!(n.broadcastSyncTime>=e||G(e))){n.broadcastSyncTime=e;var r=Co("broadcastbox",this._appkey,t);this._runtime.localStorage.setItem(r,e.toString())}},e.prototype.getBroadcastSyncTime=function(e){var t=this._getMemData(e);if(!t||0===t.broadcastSyncTime){var n=Co("broadcastbox",this._appkey,e);t.broadcastSyncTime=parseInt(this._runtime.localStorage.getItem(n))||1}return t.broadcastSyncTime},e.prototype.setOutboxTime=function(e,t){var n=this._getMemData(t);if(!(n.outboxTime>=e)){n.outboxTime=e;var r=Co("outbox",this._appkey,t);this._runtime.localStorage.setItem(r,e.toString())}},e.prototype.getOutboxTime=function(e){var t=this._getMemData(e);if(0===t.outboxTime){var n=Co("outbox",this._appkey,e);t.outboxTime=parseInt(this._runtime.localStorage.getItem(n))||0}return t.outboxTime},e}(),Eo={_caches:{},set:function(e,t){this._caches[e]=t},get:function(e){return this._caches[e]||0},clear:function(e){this._caches[e]=0}},Ao=function(){function e(e,t){this._kvCaches={},this._chatroomId=e,this._currentUserId=t}return e.prototype._add=function(e){var t=e.key;e.isDeleted=!1,this._kvCaches[t]=e},e.prototype._remove=function(e){var t=e.key,n=this._kvCaches[t];n&&(n.isDeleted=!0,this._kvCaches[t]=n)},e.prototype._setEntry=function(e,t){var n=e.key,r=e.type,i=e.isOverwrite,o=e.userId,s=this._getSetUserId(n),a=r===pe.DELETE,c=s===o,u=!this._isExisted(n),l=a?this._remove:this._add;(t||i||c||u)&&l.call(this,e)},e.prototype.getValue=function(e){var t=this._kvCaches[e]||{};return t.isDeleted?null:t.value},e.prototype.getVersion=function(e){var t=this._kvCaches[e]||{};return t.isDeleted?null:t.version},e.prototype.getAllValue=function(){var e={};for(var t in this._kvCaches)this._kvCaches[t].isDeleted||(e[t]=this._kvCaches[t].value);return e},e.prototype._getSetUserId=function(e){return(this._kvCaches[e]||{}).userId},e.prototype._isExisted=function(e){var t=this._kvCaches[e]||{},n=t.value,r=t.isDeleted;return n&&!r},e.prototype.setEntries=function(e){var t=this,n=e.kvEntries,r=e.isFullUpdate;n=n||[],(r=r||!1)&&this.clear(),n.forEach((function(e){t._setEntry(e,r)})),ut.debug("end setEntries")},e.prototype.clear=function(){this._kvCaches={}},e}(),So=function(){function e(e){this._pullQueue=[],this._isPulling=!1,this._storeCaches={},this._engine=e}return e.prototype._startPull=function(){return I(this,void 0,void 0,(function(){var e,t,n,r,i,o,s;return _(this,(function(a){switch(a.label){case 0:return this._isPulling||0===this._pullQueue.length?[2]:(this._isPulling=!0,e=this._pullQueue.splice(0,1)[0],t=e.chrmId,n=e.timestamp,(r=Eo.get(t))>n?(this._isPulling=!1,this._startPull(),[2]):[4,this._engine.pullChatroomEntry(t,r)]);case 1:return i=a.sent(),o=i.code,s=i.data,this._isPulling=!1,o===q.SUCCESS?(Eo.set(t,s.syncTime||0),this._startPull()):this._startPull(),[2]}}))}))},e.prototype.reset=function(e){Eo.clear(e);var t=this._storeCaches[e];t&&t.clear()},e.prototype.pullEntry=function(e,t){this._pullQueue.push({chrmId:e,timestamp:t}),this._startPull()},e.prototype.setLocal=function(e,t,n){var r=this._storeCaches[e];Y(r)||(r=new Ao(e,n)),r.setEntries(t),this._storeCaches[e]=r},e.prototype.getValue=function(e,t){var n=this._storeCaches[e];return n?n.getValue(t):null},e.prototype.getVersion=function(e,t){var n=this._storeCaches[e];return n?n.getVersion(t):null},e.prototype.getAll=function(e){var t=this._storeCaches[e],n={};return t&&(n=t.getAllValue()),n},e}(),No=function(){function e(e,t,n,r){this._runtime=e,this._appkey=t,this._userId=n,this._canJoinMulipleChrm=r,this._sessionKey="",this._joinedChrmsInfo={},this._sessionKey="sync-chrm-".concat(this._appkey,"-").concat(this._userId)}return e.prototype.set=function(e,t){void 0===t&&(t=10),!this._canJoinMulipleChrm&&(this._joinedChrmsInfo={}),this._joinedChrmsInfo[e]=t,this._runtime.sessionStorage.setItem(this._sessionKey,JSON.stringify(this._joinedChrmsInfo))},e.prototype.get=function(){var e,t;try{t=this._runtime.sessionStorage.getItem(this._sessionKey),e=JSON.parse(t||"{}")}catch(o){ut.error("parse rejoined chrm infos error -> ".concat(t)),e={}}return e},e.prototype.remove=function(e){delete this._joinedChrmsInfo[e],Y(this._joinedChrmsInfo)?this._runtime.sessionStorage.setItem(this._sessionKey,JSON.stringify(this._joinedChrmsInfo)):this.clear()},e.prototype.clear=function(){this._joinedChrmsInfo={},this._runtime.sessionStorage.removeItem(this._sessionKey)},e}(),bo="converStatusChanged",wo=function(){function e(e,t,n){this._eventEmitter=new lt,this._pullQueue=[],this._isPulling=!1,this._storage=h(e.runtime),this._appkey=t,this._currentUserId=n,this._engine=e,this._storagePullTimeKey="con-s-".concat(t,"-").concat(n)}return e.prototype._set=function(e){var t=this;if(!G(e)&&Array.isArray(e)){var n=this._storage.get(this._storagePullTimeKey)||0,r=e.length;e.forEach((function(e,i){var o=e.updatedTime||0;n=o>n?o:n,e.conversationType=e.type,t._eventEmitter.emit(bo,{statusItem:e,isLastPull:i===r-1})})),this._storage.set(this._storagePullTimeKey,n)}},e.prototype._startPull=function(){return I(this,void 0,void 0,(function(){var e,t,n,r;return _(this,(function(i){switch(i.label){case 0:return this._isPulling||0===this._pullQueue.length?[2]:(this._isPulling=!0,e=this._pullQueue.splice(0,1)[0],[4,this._engine.pullConversationStatus(e)]);case 1:return t=i.sent(),n=t.code,r=t.data,n===q.SUCCESS?(this._isPulling=!1,this._set(r),this._startPull()):this._startPull(),[2]}}))}))},e.prototype.pull=function(e){var t=this._storage.get(this._storagePullTimeKey)||0;(e>t||0===e)&&(this._pullQueue.push(t),this._startPull())},e.prototype.watch=function(e){this._eventEmitter.on(bo,(function(t){e(t)}))},e.prototype.unwatch=function(){this._eventEmitter.off(bo,(function(e){}))},e}(),Oo={c:{keyName:"unreadMessageCount",defaultVal:0},hm:{keyName:"hasMentioned",defaultVal:!1},m:{keyName:"mentionedInfo",defaultVal:null},t:{keyName:"lastUnreadTime",defaultVal:0},lt:{keyName:"lastReadTime",defaultVal:0},nc:{keyName:"notificationStatus",defaultVal:2},nl:{keyName:"notificationLevel",defaultVal:0},to:{keyName:"isTop",defaultVal:!1},tg:{keyName:"tags",defaultVal:{}},mc:{keyName:"unreadMentionedCount",defaultVal:0}},Ro={};for(var Do in Oo){var Lo=Oo[Do].keyName;Ro[Lo]=Do}var Uo,xo=function(){function e(e,t,n){this._appkey=t,this._currentUserId=n;var r="con-".concat(t,"-").concat(n);this.storage=new p(e,r),this._localStore=new p(e,"CONVER-".concat(t,"-").concat(n))}return e.prototype._getStoreKey=function(e,t,n){return"".concat(n,"_").concat(e,"_").concat(t)},e.prototype._getConOptionByKey=function(e){var t=(e=e||"").split("_");if(t.length>=2){var n=t.shift(),r=t.shift(),i=t.join("_");return{conversationType:Number(r),targetId:i,channelId:n}}return{conversationType:b.PRIVATE,targetId:"",channelId:""}},e.prototype.updateMentionedData=function(e){var t=this,n=e.conversationType,r=e.targetId,i=e.messageType,o=e.isMentioned,s=e.content,a=e.senderUserId,c=e.channelId,u=this._getStoreKey(n,r,c),l=this._localStore.get(u)||{},f=Ro.mentionedInfo,h=Ro.hasMentioned,d=l[f]||{},p=d.userIdList||[],g=s.mentionedInfo;if(g){if(o&&n===b.GROUP&&((g.userIdList||[]).forEach((function(e){e===t._currentUserId&&p.indexOf(a)<0&&p.push(a)})),g.type===ae.ALL&&p.indexOf(a)<0&&p.push(a)),i===te.RECALL&&n===b.GROUP){var v=p.indexOf(a);v>=0&&p.splice(v,1)}g={userIdList:p,type:(null==g?void 0:g.type)||d.type},0!==p.length?(l[f]=g,l[h]=!0):(delete l[f],delete l[h]),Y(l)?this._localStore.set(u,l):this._localStore.remove(u)}},e.prototype.set=function(e,t,n,r){var i=this._getStoreKey(e,t,r),o=this._localStore.get(i)||{};for(var s in n){var a=Ro[s],c=n[s];if(!G(a)&&!G(c)&&"hasMentioned"!==s&&"MentionedInfo"!==s){if(c===Oo[a].defaultVal||"tags"===s&&!Y(c))delete o[a];else if("tags"===s){var u=c;for(var l in u)u[l].isTop||delete u[l].isTop;o[a]=c}else o[a]=c;o.c||(delete o.t,delete o.hm,delete o.m,delete o.mc)}}Y(o)?this._localStore.set(i,o):this._localStore.remove(i)},e.prototype.get=function(e,t,n){void 0===n&&(n="");var r=this._getStoreKey(e,t,n),i=this._localStore.get(r)||{},o={};for(var s in Oo){var a=Oo[s],c=a.keyName,u=a.defaultVal;o[c]=i[s]||Ut(u)}return o},e.prototype.getValue=function(e){var t=this._localStore.getValues()||{},n=[];for(var r in t){var i=this._getConOptionByKey(r),o={conversationType:i.conversationType,targetId:i.targetId,channelId:i.channelId},s=t[r];for(var a in s)if(Oo[a]){var c=Oo[a],u=c.keyName,l=c.defaultVal;o[u]=s[a]||Ut(l)}o=e?e(o):o,n.push(o)}return n},e.prototype.getValueForTag=function(){var e=this._localStore.getValues()||{},t={};for(var n in e){var r=this._getConOptionByKey(n),i=r.conversationType,o=r.targetId,s={},a=e[n];for(var c in a){var u=Oo[c],l=u.keyName,f=u.defaultVal;s[l]=a[c]||Ut(f)}for(var h in s.tags){G(t[h])&&(t[h]=[]);var d=Object.assign({},s,{conversationType:i,targetId:o});delete d.tags,t[h].push(d)}}return t},e.prototype.adaptOldStore=function(){try{var e=this.storage.getValues();if(0===Object.keys(e).length)return;for(var t in e){var n="_".concat(t);this._localStore.set(n,e[t])}this.storage.clear()}catch(e){ut.error("adaptOldStore error: ".concat(e.message))}},e}(),Po=[b.PRIVATE,b.GROUP,b.SYSTEM,b.PUBLIC_SERVICE,b.APP_PUBLIC_SERVICE],jo="conversationChanged",ko="conTagStatusChanged",zo=function(){function e(e,t,n,r,i){var o=this;this._updatedConversations={},this._conTagStatusChanged=!1,this._eventEmitter=new lt,this._draftMap={},this._recallMsgTimeMap={},this._appkey=t,this._loginUserId=n,this._store=new xo(e.runtime,t,n),this._statusManager=new wo(e,t,n),this._statusManager.watch((function(e){var t=e.statusItem,n=e.isLastPull;o.addStatus(t,n)})),this._eventEmitter.on(jo,(function(e){r(e)})),this._eventEmitter.on(ko,(function(){i()}))}return e.prototype._calcUnreadCount=function(e,t){var n=e.content,r=e.messageType,i=e.sentTime,o=e.isCounted,s=e.messageDirection,a=e.senderUserId,c=s===K.SEND&&a===this._loginUserId,u=r===te.RECALL,l=k(n),f=!1,h={},d=t.lastUnreadTime||0,p=t.lastReadTime||0,g=t.unreadMessageCount||0;if(d>i||c)return{hasChanged:f,localConversation:t,updateItems:h};if(o&&(t.unreadMessageCount=g+1,t.lastUnreadTime=i,f=!0),u&&l){var v="".concat(e.conversationType,"_").concat(e.channelId,"_").concat(e.targetId),y=!this._recallMsgTimeMap[v]||this._recallMsgTimeMap[v]&&!this._recallMsgTimeMap[v].find((function(e){return e===n.sentTime})),m=d>=n.sentTime;p&&(m=p<n.sentTime),m&&g&&y&&(!this._recallMsgTimeMap[v]&&(this._recallMsgTimeMap[v]=[]),this._recallMsgTimeMap[v].push(n.sentTime),t.unreadMessageCount=g-1,f=!0)}return f&&(h.unreadMessageCount={val:t.unreadMessageCount,time:i}),{hasChanged:f,localConversation:t,updateItems:h}},e.prototype._calcMentionedInfo=function(e,t){var n=e.content,r=(e.messageDirection,e.isMentioned),i=e.sentTime;K.SEND;var o=k(n),s=!1,a={};return r&&o&&n.mentionedInfo&&(t.hasMentioned=!0,s=!0,a.hasMentioned={val:!0,time:i},a.mentionedInfo={val:n.mentionedInfo,time:i}),{hasChanged:s,localConversation:t,updateItems:a}},e.prototype._calcMentionedCount=function(e,t){var n=e.content,r=e.messageDirection,i=!1;if(e.isMentioned&&r===K.RECEIVE&&(null==n?void 0:n.mentionedInfo)){var o=n.mentionedInfo,s=o.type,a=o.userIdList;if(s===ae.ALL||(a||[]).includes(this._loginUserId)){i=!0;var c=t.unreadMentionedCount||0;t.unreadMentionedCount=c+1}}return{hasChanged:i,localConversation:t}},e.prototype._setUpdatedConversation=function(e){if(k(e)){var t=e.conversationType,n=e.targetId,r=e.channelId,i="".concat(t,"_").concat(n),o=this._store.get(t,n,r)||{};this._updatedConversations[i]=Object.assign(o,e)}},e.prototype._setConTagStatusChanged=function(e,t,n,r){var i=(this._store.get(e,t,r)||{}).tags||{};if(Object.keys(i).length===Object.keys(n).length){for(var o in i)if(!n[o]||!!i[o].isTop!=!!n[o].isTop)return void(this._conTagStatusChanged=!0)}else this._conTagStatusChanged=!0},e.prototype.addStatus=function(e,t){var n=e.conversationType,r=e.targetId,i=e.updatedTime,o=e.notificationStatus,s=e.notificationLevel,a=e.isTop,c=e.tags,u=e.channelId,l={},f={};n!==b.ULTRA_GROUP&&(G(o)||(f.notificationStatus={time:i,val:o}),G(s)||(f.notificationLevel={time:i,val:s}),G(a)||(f.isTop={time:i,val:a}),G(c)||(f.tags={time:i,val:c},null==c||c.forEach((function(e){l[e.tagId]={isTop:e.isTop}}))),this._setConTagStatusChanged(n,r,l,u),this._store.set(n,r,{notificationStatus:o,notificationLevel:s,isTop:a,tags:l},u),this._setUpdatedConversation({conversationType:n,targetId:r,updatedItems:f,channelId:u}),t&&this._notifyConversationChanged())},e.prototype._notifyConversationChanged=function(){var e=[];for(var t in this._updatedConversations)e.push(this._updatedConversations[t]);0!==e.length&&(this._eventEmitter.emit(jo,e),this._updatedConversations={},this._conTagStatusChanged&&(this._eventEmitter.emit(ko),this._conTagStatusChanged=!1))},e.prototype.setConversationCacheByMessage=function(e,t){var n=this,r=e.conversationType,i=e.isPersited,o=e.targetId,s=e.channelId;if(Po.indexOf(r)>=0){var a=!1,c=this._store.get(r,o,s),u={};if([this._calcUnreadCount,this._calcMentionedInfo,this._calcMentionedCount].forEach((function(t){var r=t.call(n,e,c),i=r.hasChanged,o=r.localConversation,s=r.updateItems;a=a||i,u=m(m({},u),s),c=Ut(o)})),a&&this._store.set(r,o,c,s),this._store.updateMentionedData(e),i){var l=this._store.get(r,o,s);l.updatedItems=m({latestMessage:{time:e.sentTime,val:e}},u),l.latestMessage=e;var f=Object.assign(l,{conversationType:r,targetId:o,channelId:s});this._setUpdatedConversation(f)}(a||i)&&this._notifyConversationChanged()}},e.prototype.get=function(e,t,n){return void 0===n&&(n=""),this._store.get(e,t,n)},e.prototype.getAllUnreadCount=function(e,t,n){var r=this._store.getValue(),i=0;return r.forEach((function(e){var r=e.unreadMessageCount,o=e.notificationStatus,s=e.notificationLevel,a=e.conversationType;r=r||0,(n||1!==o||s===oe.NOT_SET||s===oe.ALL_MESSAGE)&&(t.length>0?t.includes(Number(a))&&(i+=Number(r)):i+=Number(r))})),i},e.prototype.getUnreadCountByTag=function(e,t){var n=this._store.getValueForTag()[e]||[],r=0;return n.forEach((function(e){var n=e.unreadMessageCount,i=e.notificationStatus,o=e.notificationLevel;(t||1!==i||-1===o||0===o)&&(n=n||0,r+=Number(n))})),r},e.prototype.getUnreadCount=function(e,t,n){return this._store.get(e,t,n).unreadMessageCount||0},e.prototype.clearUnreadCount=function(e,t,n,r){void 0===r&&(r=!0);var i=this._store.get(e,t,n);i.lastReadTime=i.lastUnreadTime,this._recallMsgTimeMap["".concat(e,"_").concat(n,"_").concat(t)]=[];var o=i.unreadMessageCount,s=i.hasMentioned,a={};if(o&&(i.unreadMessageCount=0,a.unreadMessageCount={val:0,time:Date.now()}),s&&(i.hasMentioned=!1,i.unreadMentionedCount=0,i.mentionedInfo=void 0,a.hasMentioned={val:!1,time:Date.now()},a.mentionedInfo={val:void 0,time:Date.now()}),this._store.set(e,t,i,n),r&&0!==Object.keys(a).length){var c=Object.assign(i,{conversationType:e,targetId:t,channelId:n,updatedItems:a});this._setUpdatedConversation(c),this._notifyConversationChanged()}},e.prototype.clearAllUnreadCount=function(){var e=this;this._store.getValue().forEach((function(t){t.unreadMessageCount&&(t.unreadMessageCount=0,t.lastReadTime=t.lastUnreadTime,e._recallMsgTimeMap={},e._store.set(t.conversationType,t.targetId,t,t.channelId))}))},e.prototype.startPullConversationStatus=function(e){this._statusManager.pull(e)},e.prototype.setDraft=function(e,t,n,r){var i="".concat(e,"_").concat(t,"_").concat(r);this._draftMap[i]=n},e.prototype.getDraft=function(e,t,n){var r="".concat(e,"_").concat(t,"_").concat(n);return this._draftMap[r]},e.prototype.clearDraft=function(e,t,n){var r="".concat(e,"_").concat(t,"_").concat(n);delete this._draftMap[r]},e.prototype.addTagStatus=function(e,t,n,r){void 0===r&&(r="");var i=this._store.get(e,t,r).tags;i=Object.assign(i,n),this._store.set(e,t,{tags:i},r)},e.prototype.deleteTagStatus=function(e,t,n,r){void 0===r&&(r="");var i=this._store.get(e,t,r).tags;n.forEach((function(e){delete i[e]})),this._store.set(e,t,{tags:i},r)},e.prototype.getConversationListForTag=function(){return this._store.getValueForTag()},e.prototype.getBlockConversationList=function(){return this._store.getValue().filter((function(e){return e.notificationStatus===re.OPEN||-1!==e.notificationLevel&&0!==e.notificationLevel})).map((function(e){return{conversationType:e.conversationType,targetId:e.targetId,channelId:e.channelId}}))},e.prototype.getTopConversationList=function(){return(this._store.getValue()||{}).filter((function(e){return e.isTop})).map((function(e){return{conversationType:e.conversationType,targetId:e.targetId,channelId:e.channelId}}))},e.prototype.adaptOldStore=function(){this._store.adaptOldStore()},e.prototype.getUnreadMentionedCount=function(e,t,n){return void 0===e&&(e=""),this.get(t,n,e).unreadMentionedCount||0},e.prototype.getAllUnreadMentionedCount=function(){var e=this._store.getValue(),t=0;return e.forEach((function(e){var n=e.unreadMentionedCount;n=n||0,t+=Number(n)})),t},e.prototype.getAllConversationState=function(){return this._store.getValue().filter((function(e){return e.unreadMessageCount||e.unreadMentionedCount})).map((function(e){return{conversationType:e.conversationType,targetId:e.targetId,channelId:e.channelId,unreadCount:e.unreadMessageCount||0,unreadMentionedCount:e.unreadMentionedCount||0}}))},e}(),Go=function(){function e(e,t,n,r){this._pullQueue=[],this._isPulling=!1,this._storageTagKey="tag-".concat(t,"-").concat(n),this._storagePullTimeKey="us-s-".concat(t,"-").concat(n),this._storage=h(e.runtime),this._engine=e,this._tagWatcherFunc=r}return e.prototype._updateTag=function(e){var t=e.tags,n={};t.forEach((function(e){n[e.tagId]={tagName:e.tagName,createdTime:e.createdTime}})),this._storage.set(this._storageTagKey,n),this._tagWatcherFunc()},e.prototype.addTag=function(e,t){var n=this._storage.get(this._storageTagKey)||{};e.forEach((function(e){var t,r=(null===(t=n[e.tagId])||void 0===t?void 0:t.createdTime)||e.createdTime||0;n[e.tagId]={tagName:e.tagName,createdTime:r}})),this._storage.set(this._storageTagKey,n),this._storage.set(this._storagePullTimeKey,t)},e.prototype.deleteTag=function(e,t){var n=this._storage.get(this._storageTagKey)||{};e.forEach((function(e){delete n[e]})),this._storage.set(this._storageTagKey,n),this._storage.set(this._storagePullTimeKey,t)},e.prototype.getTagsInfo=function(){return this._storage.get(this._storageTagKey)||{}},e.prototype.getTags=function(){var e=this._storage.get(this._storageTagKey)||{},t=[];for(var n in e)t.push({tagId:n,tagName:e[n].tagName,createdTime:e[n].createdTime,conversationCount:0});return t.sort((function(e,t){return(e.createdTime||0)-(t.createdTime||0)}))},e.prototype.getTagById=function(e){var t=this._storage.get(this._storageTagKey)||{};return t[e]?{tagId:e,tagName:t[e].tagName,createdTime:t[e].createdTime,conversationCount:0}:null},e.prototype._startPull=function(){return I(this,void 0,void 0,(function(){var e,t,n,r,i,o,s,a;return _(this,(function(c){switch(c.label){case 0:return this._isPulling||0===this._pullQueue.length?[2]:(this._isPulling=!0,e=this._pullQueue.splice(0,1)[0],[4,this._engine.pullUserSettings(e)]);case 1:return t=c.sent(),n=t.code,r=t.data,n!==q.SUCCESS||G(r)?(this._isPulling=!1,this._startPull()):(o=(i=r).settings,s=i.version,a=o.Tag,G(a)||this._updateTag(a),this._storage.set(this._storagePullTimeKey,s),this._isPulling=!1,this._startPull()),[2]}}))}))},e.prototype.pullUserSettings=function(e){var t=this._storage.get(this._storagePullTimeKey)||0;(e>t||0===e)&&(this._pullQueue.push(t),this._startPull())},e.prototype.getVersion=function(){return this._storage.get(this._storagePullTimeKey)||0},e}(),Bo=function(){function e(e){this._pullQueue=[],this._isPulling=!1,this._pullTime=0,this._engine=e}return e.prototype._startPull=function(){return I(this,void 0,void 0,(function(){var e,t,n,r,i,o,s;return _(this,(function(a){switch(a.label){case 0:return this._isPulling||0===this._pullQueue.length?[2]:(this._isPulling=!0,e=this._pullQueue.splice(0,1)[0],t=e.roomId,n=e.timestamp,(r=this._pullTime)>n?(this._isPulling=!1,this._startPull(),[2]):[4,this._engine.pullRTCRoomEntry(t,r)]);case 1:return i=a.sent(),o=i.code,s=i.data,o===q.SUCCESS?(this._isPulling=!1,this._pullTime=s.syncTime||0,this._startPull()):this._startPull(),[2]}}))}))},e.prototype.pullEntry=function(e,t){this._pullQueue.push({roomId:e,timestamp:t}),this._startPull()},e.prototype.reset=function(){this._pullTime=0,this._isPulling=!1},e}(),Vo=function(e,t){return["send_msg",e,t].join("_")},Yo=function(){function e(e,t){this._runtime=e,this._appkey=t,this._sendMessageMap={},this._userId=""}return e.prototype.init=function(e){this._userId=e;var t=Vo(this._appkey,e);this._sendMessageMap=this._getLocalInfo(t)},e.prototype._getLocalInfo=function(e){var t=this._runtime.localStorage.getItem(e);try{return t?JSON.parse(t):{}}catch(e){return{}}},e.prototype.setMessage=function(e,t){this._sendMessageMap[e]=t;var n=Vo(this._appkey,this._userId),r=this._getLocalInfo(n);r[e]=t,this._runtime.localStorage.setItem(n,JSON.stringify(r))},e.prototype.getSendMessageMap=function(){return this._sendMessageMap},e.prototype.removeByUID=function(e){delete this._sendMessageMap[e]},e.prototype.removeByTimestamp=function(e){var t=Vo(this._appkey,this._userId),n=this._getLocalInfo(t);Object.keys(n).forEach((function(t){n[t]<e&&delete n[t]})),this._runtime.localStorage.setItem(t,JSON.stringify(n))},e}();(Uo={})[b.PRIVATE]=fo.qryPMsg,Uo[b.GROUP]=fo.qryGMsg,Uo[b.CHATROOM]=fo.qryCHMsg,Uo[b.CUSTOMER_SERVICE]=fo.qryCMsg,Uo[b.SYSTEM]=fo.qrySMsg;var Ho=[fo[fo.recallMsg],fo[fo.ppMsgS],fo[fo.pgMsgS],fo[fo.ppMsgP],fo[fo.pgMsgP],fo[fo.chatMsg],fo[fo.pcMsgP],fo[fo.prMsgS],fo[fo.updUgRTime]],Fo=function(){function e(e,t,n){this.ULTRA_GROUP_CONVERSATION="ultragroupconversation";var r="".concat(this.ULTRA_GROUP_CONVERSATION,"-").concat(t,"-").concat(n);this._localStore=new p(e,r)}return e.prototype.set=function(e,t,n,r){var i=this._getStoreKey(e,t,r),o=this._localStore.get(i)||{};for(var s in n){var a=$o[s],c=n[s];G(a)||G(c)||(c===Qo[a].defaultVal?delete o[a]:o[a]=c)}Y(o)?this._localStore.set(i,o):this._localStore.remove(i)},e.prototype.get=function(e,t,n){void 0===n&&(n="");var r=this._getStoreKey(e,t,n),i=this._localStore.get(r)||{},o={};for(var s in Qo){var a=Qo[s],c=a.keyName,u=a.defaultVal;o[c]=i[s]||Ut(u)}return o},e.prototype._getStoreKey=function(e,t,n){return"".concat(n,"_").concat(e,"_").concat(t)},e}(),Qo={nc:{keyName:"notificationStatus",defaultVal:2},nl:{keyName:"notificationLevel",defaultVal:0}},$o={};for(var Ko in Qo){var Wo=Qo[Ko].keyName;$o[Wo]=Ko}var qo=function(){function e(e,t,n){this._store=new Fo(e.runtime,t,n)}return e.prototype.addUltraGroupStatus=function(e){var t=e.conversationType,n=e.targetId,r=e.notificationStatus,i=e.notificationLevel,o=e.channelId;t===b.ULTRA_GROUP&&this._store.set(t,n,{notificationStatus:r,notificationLevel:i},o)},e.prototype.get=function(e,t,n){return void 0===n&&(n=""),this._store.get(e,t,n)},e}(),Zo=function(e,t,n,r,i,s){return{conversationType:e,targetId:t,senderUserId:s,messageDirection:K.SEND,isCounted:!!n.isCounted,isMentioned:!!n.isMentioned,content:n.content,messageType:n.messageType,isOffLineMessage:!1,isPersited:!!n.isPersited,messageUId:r,sentTime:i,receivedTime:0,disableNotification:!!n.disableNotification,isStatusMessage:!!n.isStatusMessage,canIncludeExpansion:!!n.canIncludeExpansion,expansion:n.canIncludeExpansion?n.expansion:null,receivedStatus:o.UNREAD,pushConfig:n.pushConfig,channelId:n.channelId,isInterrupt:n.isInterrupt}},Jo=function(e){return e.sort((function(e,t){var n,r,i=(null===(n=e.latestMessage)||void 0===n?void 0:n.sentTime)||0;return((null===(r=t.latestMessage)||void 0===r?void 0:r.sentTime)||0)-i}))},Xo=function(e){function t(t,n,r){var i=e.call(this,t,n,r)||this;return i._customMessageType={},i._reconnectTimer=-1,i._pullOfflineFinished=!1,i._conversationUpdatedTime=0,i._miniConnectUrl="",i.currentUserId="",i._connectedTime=0,i._localConnectedTime=0,i._status=J.DISCONNECTED,i._pullingMsg=!1,i._pullQueue=[],i._chrmsQueue={},i._latestSyncTimestamp=0,i._intervalTimer=-1,i._pullChatroomEntryTimestamp=0,i._intervalTimerForChrmPull=-1,i._lastSyncUltraMsgTimeStamp=0,i._lastSyncUltraMsgLocalTimeStamp=0,i._ultraGroupTimer=-1,i._isUltraPulling=!1,i._ultraGroupTimeQue=[],i._isUltraGroupListExist=!1,i._ultraGroupMap={},i._firstPullUltraGroupTime=0,i._ultraMsgMap={},i._pullUltraChangeMessageQue=[],i._isPullingUltraChangeMessage=!1,i._lastPullingUltraChangeMessageTime=0,i._ultraMsgChangeMap={},i._letterbox=new Mo(t,r.appkey),i._sendMessageStore=new Yo(t,r.appkey),i._chrmEntryHandler=new So(i),i._connectType=r.connectionType,i}return y(t,e),t.prototype._formatJSONPUrl=function(e,t,n,r){var i=this.runtime.isSupportSocket()&&"websocket"===this._connectType?"navi":"cometnavi";return"".concat(e,"/").concat(i,".js?appId=").concat(n,"&token=").concat(encodeURIComponent(t),"&callBack=").concat(r,"&v=").concat(this._apiVersion,"&r=").concat(Date.now())},t.prototype.getNaviInfo=function(t,n,r){var i;return I(this,void 0,void 0,(function(){var o;return _(this,(function(s){return this.runtime.useNavi||(o=void 0,o=this.runtime.isSupportSocket()&&"websocket"===this._connectType?a.join(","):c.join(","),this._miniConnectUrl=(null===(i=this._options.miniCMPProxy)||void 0===i?void 0:i.length)?this._options.miniCMPProxy.join(","):o||"",n=[]),[2,e.prototype.getNaviInfo.call(this,t,n,r)]}))}))},t.prototype.requestNaviInfo=function(e,t,n){return I(this,void 0,void 0,(function(){var r,i,o,s,a,c,u,l,f,h,d;return _(this,(function(p){switch(p.label){case 0:r="getServerEndpoint",i=0,o=e.length,p.label=1;case 1:return i<o?(s=this._formatJSONPUrl(e[i],n,t,r),Qe("req navi => ".concat(s)),[4,this.runtime.httpReq({url:s,timeout:1e4,dataType:"text"})]):[3,4];case 2:if(a=p.sent(),c=(new Date).getTime(),Yi(lo.IM_NAVI,{endTime:c}),200!==a.status)return u=void 0,403===a.status?(u=q.RC_CONN_USER_OR_PASSWD_ERROR,We("request navi error: "+u)):401===a.status&&(u=q.RC_CONN_APP_BLOCKED_OR_DELETED,We("request navi error: "+u)),Yi(lo.IM_NAVI,{code:u}),Io(this.runtime),[3,3];try{return l=a.data.match(/{[\d\D]+}/),0===(f=l&&l[0]?l[0]:"").indexOf('{\\"code\\":')&&(f=JSON.parse('"'+f+'"')),d=JSON.parse(f),h=/^https/.test(s)?"https":"http",d.protocol=h,this.runtime.useNavi||(d.server="",d.backupServer=this._miniConnectUrl,d.logSwitch=0),Bi({serverPrivate:d.type===ri.PRIVATE?ri.PRIVATE:ri.OPEN}),Yi(lo.IM_NAVI,{code:q.SUCCESS}),d.userId&&(ot({userId:d.userId}),Ye({userId:d.userId})),Io(this.runtime),[2,d]}catch(e){We("parse navi err =>",e)}p.label=3;case 3:return i+=1,[3,1];case 4:return this.runtime.useNavi?[2,null]:(d={code:200,protocol:"https",server:"",voipCallInfo:"",kvStorage:0,openHttpDNS:!1,historyMsg:!1,chatroomMsg:!1,uploadServer:"https://upload.qiniup.com",bosAddr:"https://gz.bcebos.com",location:"",monitor:0,joinMChrm:!1,openMp:0,openUS:0,grpMsgLimit:0,isFormatted:0,gifSize:2048,logSwitch:0,logPolicy:"",compDays:0,msgAck:"",activeServer:"",qnAddr:"",extkitSwitch:0,alone:!1,voipServer:"",offlinelogserver:"",backupServer:this._miniConnectUrl},Yi(lo.IM_NAVI,{code:d.code,startTime:0,endTime:0,host:""}),Io(this.runtime),[2,d])}}))}))},t.prototype.getConnectedTime=function(){return this._connectedTime},t.prototype.connect=function(e,t){return I(this,void 0,void 0,(function(){var n,r,i,o,s,a=this;return _(this,(function(c){switch(c.label){case 0:return n=[],this.naviInfo=t,t.server?n.push(t.server):ut.warn("navi.server is invalid"),(r=t.backupServer)&&r.split(",").forEach((function(e){n.indexOf(e)<0&&n.push(e)})),0===n.length?(ut.error("navi invaild.",n),[2,q.UNKNOWN]):(i=this.runtime.createDataChannel({status:function(r){a._connectionStatusHandler(r,e,n,t.protocol)},signal:this._signalHandler.bind(this)},this._options.connectionType),o=It.V3,1===t.openAnti&&(o=It.V4),[4,i.connect(this._appkey,e,n,t.protocol,this._apiVer,o)]);case 1:return(s=c.sent())===q.SUCCESS?(this._channel=i,this.currentUserId=i.userId,this._connectedTime=i.connectedTime,this._localConnectedTime=Math.floor((Date.now()+i.sendConnectTime)/2),this._watcher.status(J.CONNECTED),this._status=J.CONNECTED,this._pullOfflineFinished=!1,this._conversationManager=new zo(this,this._appkey,this.currentUserId,this._watcher.conversation,this._watcher.conversationTag),this._ultraGroupManager=new qo(this,this._appkey,this.currentUserId),this._conversationManager.startPullConversationStatus(0),this._userSettingManager=new Go(this,this._appkey,this.currentUserId,this._watcher.tag),this._userSettingManager.pullUserSettings(0),this._sendMessageStore.init(this.currentUserId),this._conversationManager.adaptOldStore(),this._rtcKVManager=new Bo(this),this._joinedChrmManager=new No(this.runtime,this._appkey,this.currentUserId,t.joinMChrm),this._startSyncInterval(),1===t.ugMsg&&this._startUltraSyncInterval()):i.close(),[2,s]}}))}))},t.prototype._connectionStatusHandler=function(e,t,n,r){if(ut.warn("connection status changed:",e),this._status=e,e!==J.CONNECTING)if(e!==J.CONNECTED){if(this._channel&&e!==J.DISCONNECTED)return e===J.BLOCKED||e===J.KICKED_OFFLINE_BY_OTHER_CLIENT||e===J.DISCONNECT_BY_SERVER?(this.disconnect(),void this._watcher.status(e)):void(e!==J.REDIRECT?(this._watcher.status(e),this._try2Reconnect(t,n,r)):this._watcher.status(e));this._watcher.status(e)}else this._watcher.status(e);else this._watcher.status(e)},t.prototype._try2Reconnect=function(e,t,n){return I(this,void 0,void 0,(function(){var r,i=this;return _(this,(function(o){switch(o.label){case 0:return this._channel?(r=It.V3,1===this.naviInfo.openAnti&&(r=It.V4),[4,this._channel.connect(this._appkey,e,t,n,this._apiVer,r)]):[2];case 1:return o.sent()===q.SUCCESS?(this._pullOfflineFinished=!1,this._startSyncInterval(),this._watcher.status(J.CONNECTED),this._status=J.CONNECTED,1===this.naviInfo.ugMsg&&this._startUltraSyncInterval(),this._rejoinChrm(),[2]):(this._watcher.status(J.WEBSOCKET_UNAVAILABLE),this._status=J.WEBSOCKET_UNAVAILABLE,this._reconnectTimer=setTimeout((function(){i._reconnectTimer=-1,i._try2Reconnect(e,t,n)}),5e3),[2])}}))}))},t.prototype._signalHandler=function(e,t){var n=e.syncMsg,r=e.topic;if(n)this._receiveSyncMsg(e,t);else{var i=fo[r];if(i)switch(i){case fo.s_ntf:ut.info("recv s_ntf -> signal.messageId: ".concat(e.messageId)),this._pullMsg(e);break;case fo.s_msg:this._receiveMsg(e);break;case fo.s_cmd:this._receiveStateNotify(e);break;case fo.s_us:this._receiveSettingNotify(e);break;case fo.rtc_ntf:this._receiveRtcKv(e);break;case fo.s_opNtf:this._pullOperateStatusNotify(e)}else ut.error("unknown topic:",r)}},t.prototype._receiveStateNotify=function(e){var t,n=null===(t=this._channel)||void 0===t?void 0:t.codec.decodeByPBName(e.data,tn),r=n.time,i=n.type,o=n.chrmId;switch(i){case 2:this._chrmEntryHandler.pullEntry(o,r);break;case 3:this._conversationManager.startPullConversationStatus(r);break;case 4:this._chrmEntryHandler.reset(o),this._watcher.chatroom({chatroomDestroyed:e.targetId});break;case 6:this._ultraGroupTimeQue.push(r),this._syncUltraMsg(this._lastSyncUltraMsgTimeStamp);break;case 7:this._pullUltraChangeMessageQue.push(r),this._pullUltraChangeMessageList(this._lastPullingUltraChangeMessageTime)}},t.prototype._receiveSettingNotify=function(e){var t,n=(null===(t=this._channel)||void 0===t?void 0:t.codec.decodeByPBName(e.data,Xn)).version;this._userSettingManager.pullUserSettings(n)},t.prototype._receiveRtcKv=function(e){var t,n=null===(t=this._channel)||void 0===t?void 0:t.codec.decodeByPBName(e.data,Dr),r=n.time,i=n.type,o=n.roomId;1===i&&this._rtcKVManager.pullEntry(o,r)},t.prototype._receiveMessageExpansion=function(e){var t=e.content,n=t.put,r=t.del,i=t.mid;n&&this._watcher.expansion({updatedExpansion:{messageUId:i,expansion:n}}),r&&this._watcher.expansion({deletedExpansion:{messageUId:i,deletedKeys:r}})},t.prototype._receiveSyncMsg=function(e,t){var n,r;if(Ho.includes(e.topic)){if(e.topic===fo[fo.updUgRTime]){var i=null===(n=this._channel)||void 0===n?void 0:n.codec.decodeByPBName(e.data,dn),o=i.channelId,s=i.busChannel,a=this._ultraGroupMap[s+"_"+o];return a&&(a.unreadMessageCount=0,a.unreadMentionedCount=0,a.lastReadTime=t.timestamp,this._watcher.conversation(kt([a]))),void(t&&(this._ultraMsgMap[t.messageUId]=t.timestamp))}var c=null===(r=this._channel)||void 0===r?void 0:r.codec.decodeByPBName(e.data,$t,{currentUserId:this.currentUserId,signal:e});c=this._handleMsgProperties(c),t&&(c.sentTime=t.timestamp,c.messageUId=t.messageUId),this._pullingMsg?this._pullQueue.push((null==t?void 0:t.timestamp)||c.sentTime):(t&&this._sendMessageStore.setMessage(t.messageUId,t.timestamp),c.messageType!==te.EXPANSION_NOTIFY?(c.messageType===te.SYNC_READ_STATUS&&this._conversationManager.clearUnreadCount(c.conversationType,c.targetId,c.channelId),this._conversationManager.setConversationCacheByMessage(c,!0),this._watcher.batchMessage([c])):this._receiveMessageExpansion(c))}},t.prototype._pullMsg=function(e){if(this._channel){var t=this._channel.codec.decodeByPBName(e.data,tn),n=t.type,r=t.chrmId,i=t.time;if(ut.info("s_ntf -> type: ".concat(n,", chrmId: ").concat(r,", time: ").concat(i)),2===n){var o=this._chrmsQueue[r];if(!o)return;o.queue.push(i),this._pullChrmMsg(r)}else this._pullQueue.push(i),this._syncMsg()}},t.prototype._startSyncInterval=function(){var e=this;this._stopSyncInterval(),this._intervalTimer=setInterval((function(){Date.now()-e._latestSyncTimestamp>=18e4&&e._syncMsg()}),3e4),this._latestSyncTimestamp=Date.now(),this._syncMsg()},t.prototype._stopSyncInterval=function(){-1!==this._intervalTimer&&(clearInterval(this._intervalTimer),this._intervalTimer=-1)},t.prototype._syncMsg=function(){return I(this,void 0,void 0,(function(){var e,t,n,r,i,o,s,a,c,u,l,f,h,d,p,g,v,y,m,I=this;return _(this,(function(_){switch(_.label){case 0:return this._pullingMsg?[2]:this._channel?(this._pullingMsg=!0,e=this._letterbox.getOutboxTime(this.currentUserId),t=this._letterbox.getInboxTime(this.currentUserId),n=this._letterbox.getBroadcastSyncTime(this.currentUserId),ut.info("pullMsg -> sendboxTime: ".concat(e,", inboxTime: ").concat(t,", broadcastSyncTime: ").concat(n)),r=this._channel.codec.encodeSyncMsg({sendboxTime:e,inboxTime:t,broadcastSyncTime:n}),i=new oo(fo[fo.pullMsg],r,this.currentUserId),o=Ve(),$e(he.L_PULL_MSG_T,{outboxTime:e,inboxTime:t,broadcastSyncTime:n},{traceId:o}),[4,this._channel.send(i,qt,{connectedTime:this._channel.connectedTime,currentUserId:this.currentUserId})]):(this._pullingMsg=!1,[2]);case 1:return s=_.sent(),a=s.code,c=s.data,this._latestSyncTimestamp=Date.now(),a!==q.SUCCESS||!c||G(c.finished)||G(c.list)||G(c.syncTime)?(ut.warn("pullMsg failed -> code:",a,", data: ",c),Ke(he.L_PULL_MSG_R,{code:a,timestamp:this._latestSyncTimestamp},{traceId:o}),this._pullingMsg=!1,[2]):(u=c.list,l=c.finished,f=c.syncTime,h=c.broadcastSyncTime,d=void 0===h?1:h,ut.info("pullMsg success -> syncTime: ".concat(f,", finished: ").concat(l)),p=0,g=[],v=[],u.forEach((function(e){if(g.push(e.messageUId),e.messageDirection===K.SEND&&(p=Math.max(e.sentTime,p),I._sendMessageStore.getSendMessageMap()[e.messageUId]))I._sendMessageStore.removeByUID(e.messageUId);else if(e.messageType!==te.EXPANSION_NOTIFY){if(e.messageType===te.SYNC_READ_STATUS){if(e.senderUserId!==I.currentUserId)return;I._conversationManager.clearUnreadCount(e.conversationType,e.targetId,e.channelId)}var t=I._handleMsgProperties(e);I._conversationManager.setConversationCacheByMessage(t,!0),v.push(t)}else I._receiveMessageExpansion(e)})),this._watcher.batchMessage(v),this._letterbox.setInboxTime(f,this.currentUserId),this._letterbox.setOutboxTime(p,this.currentUserId),this._letterbox.setBroadcastSyncTime(d,this.currentUserId),this._sendMessageStore.removeByTimestamp(p),this._pullingMsg=!1,y=this._pullQueue.filter((function(e){return e>f})),this._pullQueue.length=0,(m=this._pullQueue).push.apply(m,y),l&&!this._pullOfflineFinished&&(this._pullOfflineFinished=!0,this._watcher.pullFinished()),$e(he.L_PULL_MSG_R,{code:a,messageUIds:g.join(","),timestamp:this._latestSyncTimestamp,hasmore:!l},{traceId:o}),(!l||y.length>0)&&this._syncMsg(),[2])}}))}))},t.prototype._receiveMsg=function(e){if(this._channel){var t=this._channel.codec.decodeByPBName(e.data,Wt,{currentUserId:this.currentUserId,connectedTime:this._channel.connectedTime});if((t=this._handleMsgProperties(t)).conversationType!==b.RTC_ROOM){if(this._pullingMsg)return;if(this._pullQueue.length>0)return void this._syncMsg()}t.senderUserId===this.currentUserId&&this._sendMessageStore.setMessage(t.messageUId,t.sentTime),t.isStatusMessage||t.senderUserId===this.currentUserId||this._letterbox.setInboxTime(t.sentTime,this.currentUserId),t.messageType!==te.EXPANSION_NOTIFY?t.messageType===te.SYNC_READ_STATUS&&t.senderUserId!==this.currentUserId||(this._conversationManager.setConversationCacheByMessage(t,!0),this._watcher.batchMessage([t])):this._receiveMessageExpansion(t)}},t.prototype._handleMsgProperties=function(e,t){void 0===t&&(t=!1);var n,r=e.messageType,i=e.isCounted,o=e.isPersited,s=e.isStatusMessage,a=r in u,c=r in this._customMessageType;if(n=a?m(m({},u[r]),{isStatusMessage:l.includes(r)}):c?this._customMessageType[r]:{isCounted:!B(i)&&i,isPersited:!B(o)&&o,isStatusMessage:!1},Object.assign(e,n),t&&!G(s)&&(e.isStatusMessage=s),!t){var f=e.content.user;if(f){var h=f.portrait,d=f.portraitUri,p=h||d;p&&(f.portrait=f.portraitUri=p)}}return e},t.prototype.getHistoryMessage=function(e,t,n,r,i,o,s,a){return void 0===o&&(o=""),I(this,void 0,void 0,(function(){var s,c,u,l,f,h,d,p,g,v;return _(this,(function(y){switch(y.label){case 0:return c=(s=this).currentUserId,u=s._channel,l=Ni[e]||Ti,f=1===r&&0===n,u?(h=u.codec.encodeGetHistoryMsg(t,{timestamp:n,count:f?2:r,order:i,channelId:o}),$e(he.L_GET_HISTORY_MSG_T,{targetId:t,conversationType:b.ULTRA_GROUP,channelId:o,timestamp:n,count:r},{traceId:a}),[4,u.send(new oo(l,h,c),rn,{currentUserId:c,connectedTime:u.connectedTime,conversation:{targetId:t}})]):[3,2];case 1:return d=y.sent(),(p=d.code)===q.SUCCESS&&h?(g=d.data,f&&2===g.list.length&&(g.hasMore=!0,0===i?g.list.shift():g.list.pop()),v=[],g.list&&g.list.forEach((function(e){e&&v.push(e.messageUId)})),$e(he.L_GET_HISTORY_MSG_R,{code:p,messageUIds:v.join(",")},{traceId:a}),[2,{code:p,data:{list:g.list,hasMore:g.hasMore}}]):(Ke(he.L_GET_HISTORY_MSG_R,{code:p,messageUIds:""},{traceId:a}),[2,{code:p}]);case 2:return[2,{code:q.RC_NET_CHANNEL_INVALID}]}}))}))},t.prototype.reportSDKInfo=function(e){var t=this.currentUserId,n=this._channel;if(n){ut.info("reportSDKInfo ->",e);var r=n.codec.encodeReportSDKInfo(JSON.stringify(e)),i=new oo(fo[fo.reportsdk],r,t);n.send(i).then((function(e){var t=e.code;t!==q.SUCCESS&&ut.warn("reportSDKInfo failed -> code: ".concat(t))}))}},t.prototype.deleteRemoteMessage=function(e,t,n,r){return I(this,void 0,void 0,(function(){var i,o,s,a,c,u,l;return _(this,(function(f){switch(f.label){case 0:return o=(i=this).currentUserId,(s=i._channel)?(a=s.codec.encodeDeleteMessages(e,t,n,r),c=new oo(ui,a,o),[4,s.send(c)]):[3,2];case 1:return u=f.sent(),l=u.code,q.SUCCESS,[2,l];case 2:return[2,q.RC_NET_CHANNEL_INVALID]}}))}))},t.prototype.deleteRemoteMessageByTimestamp=function(e,t,n,r){return I(this,void 0,void 0,(function(){var i,o,s,a,c,u,l,f;return _(this,(function(h){switch(h.label){case 0:return o=(i=this).currentUserId,(s=i._channel)?(a=s.codec.encodeClearMessages(t,n,r,e),c=bi[e],u=new oo(c,a,o),[4,s.send(u)]):[3,2];case 1:return l=h.sent(),f=l.code,q.SUCCESS,[2,f];case 2:return[2,q.RC_NET_CHANNEL_INVALID]}}))}))},t.prototype.getConversationList=function(e,t,n,r,i){return void 0===e&&(e=300),I(this,void 0,void 0,(function(){var i,o,s,a,c,u,l,f,h=this;return _(this,(function(d){switch(d.label){case 0:return o=(i=this).currentUserId,s=i._channel,t=t||b.PRIVATE,s?(a=s.codec.encodeOldConversationList({count:e,type:t,startTime:n,order:r}),c=new oo(yi,a,o),[4,s.send(c,sn,{currentUserId:o,connectedTime:s.connectedTime,afterDecode:function(e){var t=e.conversationType,n=e.targetId,r=e.channelId,i=h._conversationManager.get(t,n,r);return Object.assign(e,i),e}})]):[3,2];case 1:return u=d.sent(),l=u.code,f=u.data,l!==q.SUCCESS?[2,{code:l}]:[2,{code:l,data:null==f?void 0:f.list}];case 2:return[2,{code:q.RC_NET_CHANNEL_INVALID}]}}))}))},t.prototype.removeConversation=function(e,t,n){return I(this,void 0,void 0,(function(){var r,i,o,s,a;return _(this,(function(c){switch(c.label){case 0:return(r=this._channel)?(i=r.codec.encodeRemoveOldConversationList({conversationType:e,channelId:n,targetId:t}),o=new oo(mi,i,t),[4,r.send(o)]):[3,2];case 1:return s=c.sent(),ut.info("RemoveConversation =>",s),a=s.code,q.SUCCESS,[2,a];case 2:return[2,q.RC_NET_CHANNEL_INVALID]}}))}))},t.prototype.getConversation=function(e,t,n){return I(this,void 0,void 0,(function(){var r,i,o,s,a,c;return _(this,(function(u){switch(u.label){case 0:return e!==b.ULTRA_GROUP?[3,1]:(r=this._ultraGroupMap[n+"_"+t])?[3,3]:[2,{code:q.CONVER_GET_ERROR}];case 1:return(i=this._conversationManager.get(e,t,n))?[4,this.getHistoryMessage(e,t,0,1,0)]:[2,{code:q.CONVER_GET_ERROR}];case 2:if(o=u.sent(),s=o.code,a=o.data,s!==q.SUCCESS)return[2,{code:q.CONVER_GET_ERROR}];c=(null==a?void 0:a.list[0])||null,r={conversationType:e,targetId:t,channelId:n,unreadMessageCount:i.unreadMessageCount||0,latestMessage:c,notificationStatus:i.notificationStatus||re.CLOSE,notificationLevel:i.notificationLevel||oe.NOT_SET,isTop:i.isTop||!1,lastUnreadTime:i.lastUnreadTime||0,unreadMentionedCount:i.unreadMentionedCount||0},u.label=3;case 3:return[2,{code:q.SUCCESS,data:r}]}}))}))},t.prototype.getAllConversationUnreadCount=function(e,t,n){var r=this._conversationManager.getAllUnreadCount(e,t,n);return Promise.resolve({code:q.SUCCESS,data:r})},t.prototype.getConversationUnreadCount=function(e,t,n){var r,i;return i=e===b.ULTRA_GROUP?(null===(r=this._ultraGroupMap[n+"_"+t])||void 0===r?void 0:r.unreadMessageCount)||0:this._conversationManager.getUnreadCount(e,t,n),Promise.resolve({code:q.SUCCESS,data:i})},t.prototype.clearConversationUnreadCount=function(e,t,n){return this._conversationManager.clearUnreadCount(e,t,n,!1),Promise.resolve(q.SUCCESS)},t.prototype.clearAllUnreadCount=function(){return this._conversationManager.clearAllUnreadCount(),Promise.resolve(q.SUCCESS)},t.prototype.getFirstUnreadMessage=function(e,t){throw new Error("Method not implemented.")},t.prototype.saveConversationMessageDraft=function(e,t,n,r){return this._conversationManager.setDraft(e,t,n,r),Promise.resolve(q.SUCCESS)},t.prototype.getConversationMessageDraft=function(e,t,n){var r=this._conversationManager.getDraft(e,t,n);return Promise.resolve({code:q.SUCCESS,data:r})},t.prototype.clearConversationMessageDraft=function(e,t,n){return this._conversationManager.clearDraft(e,t,n),Promise.resolve(q.SUCCESS)},t.prototype.pullConversationStatus=function(e){return I(this,void 0,void 0,(function(){var t,n,r,i,o,s,a,c,u,l=this;return _(this,(function(f){switch(f.label){case 0:return n=(t=this)._channel,r=t.currentUserId,n?(i=n.codec.encodeGetConversationStatus(e),o=new oo(fo[fo.pullSeAtts],i,r),[4,n.send(o,tr)]):[3,2];case 1:return s=f.sent(),a=s.code,c=s.data,$e(he.L_PULL_CONVERSATION_S,{timestamp:e,userId:r}),a!==q.SUCCESS?[2,{code:a}]:(u=[],Array.isArray(c)&&c.forEach((function(e){var t=e.conversationType,n=e.targetId,r=e.notificationStatus,i=e.channelId,o=e.isTop,s=e.notificationLevel,a=l._ultraGroupMap[i+"_"+n];t===b.ULTRA_GROUP?a&&(void 0!==r&&(a.notificationStatus=r),void 0!==s&&(a.notificationLevel=s),void 0===s&&void 0===r||l._ultraGroupManager.addUltraGroupStatus(e),"boolean"==typeof o&&(a.isTop=o)):u.push(e)})),[2,{code:a,data:u}]);case 2:return[2,{code:q.RC_NET_CHANNEL_INVALID}]}}))}))},t.prototype.batchSetConversationStatus=function(e){return I(this,void 0,void 0,(function(){var t,n,r,i,o,s,a,c,u,l,f,h=this;return _(this,(function(d){switch(d.label){case 0:return n=(t=this).currentUserId,(r=t._channel)?(i=r.codec.encodeSetConversationStatus(e,this._conversationUpdatedTime),o=new oo(Ii,i,n),[4,r.send(o,or)]):[3,2];case 1:return s=d.sent(),a=s.code,c=s.data,a===q.SUCCESS?(u=c,this._conversationUpdatedTime=u.version,l=[],e.forEach((function(e){var t=e.conversationType,n=e.targetId,r=e.notificationStatus,i=e.notificationLevel,o=e.channelId,s=e.isTop;if(t===b.ULTRA_GROUP){var a=h._ultraGroupMap[o+"_"+n];a&&(void 0!==r&&(a.notificationStatus=r),void 0!==i&&(a.notificationLevel=i),void 0===i&&void 0===r||h._ultraGroupManager.addUltraGroupStatus(a),void 0!==s&&(a.isTop=s),l.push(a))}else h._conversationManager.addStatus(m(m({},e),{updatedTime:u.version}),!0)})),l.length>0&&(f=kt(l),f=Jo(f),this._watcher.conversation(f)),[2,a]):[2,a];case 2:return[2,q.RC_NET_CHANNEL_INVALID]}}))}))},t.prototype._joinChrm=function(e,t,n,r){return I(this,void 0,void 0,(function(){var i,o,s,a,c,u,l,f;return _(this,(function(h){switch(h.label){case 0:return(i=this._channel)?(o=i.codec.encodeJoinOrQuitChatRoom(),a=new oo(s=n?fi:li,o,e),$e(he.L_JOIN_CHATROOM_T,{chatroomId:e,count:t,topic:s},{traceId:r}),[4,i.send(a,gn)]):[2,q.RC_NET_CHANNEL_INVALID];case 1:return c=h.sent(),u=c.code,l=c.data,(u===q.SUCCESS?$e:Ke)(he.L_JOIN_CHATROOM_R,{code:u,timestamp:(new Date).getTime()},{traceId:r}),u===q.SUCCESS&&(f=l.joinTime,this._chrmsQueue[e]||(this._chrmsQueue[e]={pulling:!1,queue:[],timestamp:0}),this._pullChrmMsg(e,t,f),this.naviInfo.kvStorage&&this._chrmEntryHandler.pullEntry(e,0),this._joinedChrmManager.set(e,t),this._startSyncIntervalForChrmPull()),[2,u]}}))}))},t.prototype._rejoinChrm=function(){return I(this,void 0,void 0,(function(){var e,t,n,r,i,o,s;return _(this,(function(a){switch(a.label){case 0:for(n in e=this._joinedChrmManager.get(),t=[],e)t.push(n);r=0,a.label=1;case 1:return r<t.length?(i=t[r],$e(he.L_REJOIN_CHATROOM_T,{chatroomId:i,count:e[i]||10,topic:fi}),o=Ve(),[4,this._joinChrm(i,e[i]||10,!0,o)]):[3,4];case 2:s=a.sent(),(s===q.SUCCESS?$e:Ke)(he.L_REJOIN_CHATROOM_R,{code:s,timestamp:(new Date).getTime()},{traceId:o}),s===q.SUCCESS?this._watcher.chatroom({rejoinedRoom:{chatroomId:i,count:e[i]}}):this._watcher.chatroom({rejoinedRoom:{chatroomId:i,errorCode:s}}),a.label=3;case 3:return r++,[3,1];case 4:return[2]}}))}))},t.prototype._pullChrmMsg=function(e,t,n){return void 0===t&&(t=10),void 0===n&&(n=0),I(this,void 0,void 0,(function(){var r,i,o,s,a,c,u,l,f,h,d,p,g;return _(this,(function(v){switch(v.label){case 0:return this._channel?(r=this._chrmsQueue[e],i=r.pulling,o=r.timestamp,i?[2]:(r.pulling=!0,s=this._channel.codec.encodeChrmSyncMsg(o,t),a=new oo(fo[fo.chrmPull],s,e),$e(he.L_PULL_CHATROOM_MSG_T,{chatroomId:e,timestamp:o}),[4,this._channel.send(a,qt,{connectedTime:this._channel.connectedTime,currentUserId:this.currentUserId})])):[2];case 1:return c=v.sent(),u=c.code,l=c.data,r.pulling=!1,u===q.SUCCESS&&l?(f=l.list,h=l.syncTime,d=l.finished,r.timestamp=n?Math.max(h,n):h,r.queue=r.queue.filter((function(e){return e>h})),p=[],g=[],f.forEach((function(e){e.sentTime<o||(p.push(e.messageUId),g.push(e))})),this._watcher.batchMessage(g),$e(he.L_PULL_CHATROOM_MSG_R,{code:u,timestamp:o,messageUIds:p.join(",")}),(!d||r.queue.length>0)&&this._pullChrmMsg(e),[2]):(Ke(he.L_PULL_CHATROOM_MSG_R,{code:u,timestamp:o,messageUIds:""}),ut.warn("pull chatroom msg failed, code:",u,", data:",l),[2])}}))}))},t.prototype.joinChatroom=function(e,t,n){return I(this,void 0,void 0,(function(){return _(this,(function(r){return[2,this._joinChrm(e,t,!1,n)]}))}))},t.prototype.joinExistChatroom=function(e,t,n){return I(this,void 0,void 0,(function(){return _(this,(function(r){return[2,this._joinChrm(e,t,!0,n)]}))}))},t.prototype.quitChatroom=function(e){return I(this,void 0,void 0,(function(){var t,n,r,i,o;return _(this,(function(s){switch(s.label){case 0:return(t=this._channel)?(n=t.codec.encodeJoinOrQuitChatRoom(),r=new oo(hi,n,e),[4,t.send(r)]):[2,q.RC_NET_CHANNEL_INVALID];case 1:return i=s.sent(),(o=i.code)===q.SUCCESS&&(delete this._chrmsQueue[e],this._chrmEntryHandler.reset(e),this._joinedChrmManager.remove(e)),[2,o]}}))}))},t.prototype.getChatroomInfo=function(e,t,n){return I(this,void 0,void 0,(function(){var r,i,o,s,a,c;return _(this,(function(u){switch(u.label){case 0:return(r=this._channel)?(i=r.codec.encodeGetChatRoomInfo(t,n),o=new oo(fo[fo.queryChrmI],i,e),[4,r.send(o,yn)]):[2,{code:q.RC_NET_CHANNEL_INVALID}];case 1:return s=u.sent(),a=s.code,c=s.data,a!==q.SUCCESS?[2,{code:a}]:[2,{code:a,data:c}]}}))}))},t.prototype.getChatroomHistoryMessages=function(e,t,n,r){return I(this,void 0,void 0,(function(){var i,o,s,a,c,u;return _(this,(function(l){switch(l.label){case 0:return(i=this._channel)?(o=i.codec.encodeGetHistoryMsg(e,{timestamp:t,count:n,order:r}),s=new oo(Mi,o,e),[4,i.send(s,rn,{conversation:{targetId:e}})]):[2,{code:q.RC_NET_CHANNEL_INVALID}];case 1:return a=l.sent(),c=a.code,u=a.data,c!==q.SUCCESS?[2,{code:c}]:[2,{code:c,data:{list:u.list,hasMore:u.hasMore}}]}}))}))},t.prototype._modifyChatroomKV=function(e,t){return I(this,void 0,void 0,(function(){var n,r,i,o,s,a,c,u,l;return _(this,(function(f){switch(f.label){case 0:return r=(n=this)._channel,i=n.currentUserId,r?(o=this._chrmEntryHandler.getVersion(e,t.key),t.version=null==o?this.getServerTime():o,s=r.codec.encodeModifyChatRoomKV(e,t,i),a=t.type===pe.UPDATE?di:pi,c=new oo(a,s,e),[4,r.send(c,gn)]):[2,q.RC_NET_CHANNEL_INVALID];case 1:return u=f.sent(),(l=u.code)===q.SUCCESS?(this._chrmEntryHandler.setLocal(e,{kvEntries:[t],syncTime:(new Date).getTime()},i),[2,l]):[2,l]}}))}))},t.prototype._modifyChatroomKVS=function(e,t){return I(this,void 0,void 0,(function(){var n,r,i,o,s,a,c,u,l,f,h,d,p=this;return _(this,(function(g){switch(g.label){case 0:return r=(n=this)._channel,i=n.currentUserId,r?(t.entries.forEach((function(t){var n=p._chrmEntryHandler.getVersion(e,t.key);t.version=null==n?p.getServerTime():n})),o=r.codec.encodeModifyChatRoomKVS(e,t,i),s=t.type===pe.UPDATE?gi:vi,a=new oo(s,o,e),[4,r.send(a,Fn)]):[2,{code:q.RC_NET_CHANNEL_INVALID}];case 1:return c=g.sent(),u=c.code,-1!==[q.SUCCESS,q.CHATROOM_KV_STORE_NOT_ALL_SUCCESS].indexOf(u)&&(f=[],delete(h=Object.assign({},t)).entries,t.entries.forEach((function(e){f.push(Object.assign({},e,h))})),u===q.CHATROOM_KV_STORE_NOT_ALL_SUCCESS&&(d=c.data,ut.warn("设置失败的属性:",d.errorKeys),l=d.errorKeys,d&&Array.isArray(d.errorKeys)&&d.errorKeys.forEach((function(e){var t=f.findIndex((function(t){return e.key===t.key}));-1!==t&&f.splice(t,1)}))),ut.warn("设置成功的属性:",f),this._chrmEntryHandler.setLocal(e,{kvEntries:f,syncTime:(new Date).getTime()},i)),[2,{code:u,data:l}]}}))}))},t.prototype.setChatroomEntry=function(e,t){return I(this,void 0,void 0,(function(){return _(this,(function(n){return t.type=pe.UPDATE,t.userId=t.userId||this.currentUserId,[2,this._modifyChatroomKV(e,t)]}))}))},t.prototype.setChatroomEntries=function(e,t){return I(this,void 0,void 0,(function(){return _(this,(function(n){return t.type=pe.UPDATE,t.userId=t.userId||this.currentUserId,[2,this._modifyChatroomKVS(e,t)]}))}))},t.prototype.forceSetChatroomEntry=function(e,t){return I(this,void 0,void 0,(function(){return _(this,(function(n){return t.type=pe.UPDATE,t.isOverwrite=!0,t.userId=t.userId||this.currentUserId,[2,this._modifyChatroomKV(e,t)]}))}))},t.prototype.removeChatroomEntry=function(e,t){return I(this,void 0,void 0,(function(){return _(this,(function(n){return t.type=pe.DELETE,t.userId=t.userId||this.currentUserId,[2,this._modifyChatroomKV(e,t)]}))}))},t.prototype.removeChatroomEntries=function(e,t){return I(this,void 0,void 0,(function(){return _(this,(function(n){return t.type=pe.DELETE,t.userId=t.userId||this.currentUserId,[2,this._modifyChatroomKVS(e,t)]}))}))},t.prototype.forceRemoveChatroomEntry=function(e,t){return I(this,void 0,void 0,(function(){return _(this,(function(n){return t.type=pe.DELETE,t.isOverwrite=!0,t.userId=t.userId||this.currentUserId,[2,this._modifyChatroomKV(e,t)]}))}))},t.prototype.getChatroomEntry=function(e,t){return I(this,void 0,void 0,(function(){var n,r,i,o,s,a,c;return _(this,(function(u){switch(u.label){case 0:return(n=this._chrmEntryHandler.getValue(e,t))?[2,Promise.resolve({code:q.SUCCESS,data:n})]:[3,1];case 1:return(r=this._channel)?(i=r.codec.encodePullChatRoomKV(0),o=new oo(fo[fo.pullKV],i,e),[4,r.send(o,Hn)]):[2,Promise.reject({code:q.RC_NET_CHANNEL_INVALID})];case 2:return s=u.sent(),(a=s.data||{})&&a.kvEntries&&a.kvEntries.length&&(c=a.kvEntries.find((function(e){return e.key===t})),void 0!==c)?[2,Promise.resolve({code:q.SUCCESS,data:null==c?void 0:c.value})]:[2,Promise.resolve({code:q.CHATROOM_KEY_NOT_EXIST})]}}))}))},t.prototype.getAllChatroomEntry=function(e){return I(this,void 0,void 0,(function(){var t,n,r,i,o,s,a;return _(this,(function(c){switch(c.label){case 0:return(t=this._chrmEntryHandler.getAll(e))&&Object.keys(t).length?[2,Promise.resolve({code:q.SUCCESS,data:t})]:[3,1];case 1:return(n=this._channel)?(r={},i=n.codec.encodePullChatRoomKV(0),o=new oo(fo[fo.pullKV],i,e),[4,n.send(o,Hn)]):[2,Promise.reject({code:q.RC_NET_CHANNEL_INVALID})];case 2:return s=c.sent(),(a=s.data||{})&&a.kvEntries&&a.kvEntries.length&&a.kvEntries.forEach((function(e){e.key&&(r[e.key]=e.value||"")})),[2,Promise.resolve({code:q.SUCCESS,data:r})]}}))}))},t.prototype.pullChatroomEntry=function(e,t){return I(this,void 0,void 0,(function(){var n,r,i,o,s,a,c,u,l,f,h,d;return _(this,(function(p){switch(p.label){case 0:return r=(n=this)._channel,i=n.currentUserId,r?(t||(t=this._pullChatroomEntryTimestamp),o=r.codec.encodePullChatRoomKV(t),s=new oo(fo[fo.pullKV],o,e),$e(he.L_PULL_CHATROOM_KV_T,{chatroomId:e,timestamp:t}),[4,r.send(s,Hn)]):[2,{code:q.RC_NET_CHANNEL_INVALID}];case 1:return a=p.sent(),c=a.code,u=a.data,(c===q.SUCCESS?$e:Ke)(he.L_PULL_CHATROOM_KV_R,{code:c,timestamp:t}),c===q.SUCCESS?(ut.info("Pull success ChrmKV, "+JSON.stringify(a)),this._chrmEntryHandler.setLocal(e,u,i),ut.info("Save into cache success!"),f=(l=u).kvEntries,h=l.syncTime,this._pullChatroomEntryTimestamp=h||0,d=[],f.length>0&&(f.forEach((function(t){var n=t.key,r=t.value,i=t.type,o=t.timestamp;d.push({key:n,value:r,type:i,timestamp:o,chatroomId:e})})),this._watcher.chatroom({updatedEntries:d})),[2,{code:c,data:u}]):[2,{code:c}]}}))}))},t.prototype._startSyncIntervalForChrmPull=function(){var e=this;this._stopSyncIntervalForChrmPull(),this._intervalTimerForChrmPull=setInterval((function(){var t=Object.keys(e._chrmsQueue);0!==t.length&&e._channel?t.forEach((function(t){e._pullChrmMsg(t),e.naviInfo.kvStorage&&e._chrmEntryHandler.pullEntry(t,0)})):e._stopSyncIntervalForChrmPull()}),18e4)},t.prototype._stopSyncIntervalForChrmPull=function(){"number"!=typeof this._intervalTimerForChrmPull&&(clearInterval(this._intervalTimerForChrmPull),this._intervalTimerForChrmPull=-1)},t.prototype.sendMessage=function(e,t,n,r,i){return I(this,void 0,void 0,(function(){var r,o,s,a,c,u,l,f,h,d,p,g;return _(this,(function(v){switch(v.label){case 0:return this._channel?(n=function(e,t){return"RC:SRSMsg"===e.messageType&&Object.assign(e,{directionalUserIdList:[t]}),e}(n,this.currentUserId),n=this._handleMsgProperties(n,!0),r=!![b.PRIVATE,b.GROUP].includes(e)&&n.isStatusMessage,o=r?function(e){var t;return(t={},t[b.PRIVATE]=fo.ppMsgS,t[b.GROUP]=fo.pgMsgS,t)[e]}(e):function(e){var t;return(t={},t[b.PRIVATE]=fo.ppMsgP,t[b.GROUP]=fo.pgMsgP,t[b.CHATROOM]=fo.chatMsg,t[b.CUSTOMER_SERVICE]=fo.pcMsgP,t[b.RTC_ROOM]=fo.prMsgS,t)[e]}(e)||fo.ppMsgP,r&&(n.isPersited=!1,n.isCounted=!1),s=this._channel.codec.encodeUpMsg({conversationType:e,targetId:t},n),(a=new no(fo[o],s,t)).setHeaderQos(gt.AT_LEAST_ONCE),r?(this._channel.sendOnly(a),[2,{code:q.SUCCESS,data:Zo(e,t,m({},n),"",0,this.currentUserId)}]):(c=Date.now()-this._localConnectedTime+this._connectedTime,u=Zo(e,t,m({},n),"",c,this.currentUserId),$e(he.L_SEND_MSG_T,{messageType:n.messageType,conversationType:b.ULTRA_GROUP,targetId:t,channelId:n.channelId},{traceId:i}),[4,this._channel.send(a)])):[2,{code:q.RC_NET_CHANNEL_INVALID}];case 1:return l=v.sent(),f=l.code,h=l.data,d=f===q.SUCCESS?$e:Ke,p=f===q.SUCCESS?h.messageId:u.messageUId,d(he.L_SEND_MSG_R,{code:f,messageUId:p||""},{traceId:i}),f!==q.SUCCESS?[2,{code:f,data:u}]:(g=h,this._sendMessageStore.setMessage(g.messageUId,g.timestamp),u.sentTime=g.timestamp,u.messageUId=g.messageUId,this._conversationManager.setConversationCacheByMessage(u,!0),[2,{code:q.SUCCESS,data:u}])}}))}))},t.prototype.recallMsg=function(e,t,n,r,i){var o;return I(this,void 0,void 0,(function(){var s,a,c,u,l,f,h,d,p,g,v,y,I;return _(this,(function(_){switch(_.label){case 0:return this._channel?(s=i.user,a=i.extra,c=i.isDelete,u={conversationType:e,targetId:t,messageUId:n,sentTime:r,channelId:i.channelId||"",isDelete:c||!1},s&&(u.user=s),a&&(u.extra=a),l={content:u,messageType:"RC:RcCmd",disableNotification:null==i?void 0:i.disableNotification,pushConfig:null==i?void 0:i.pushConfig,pushContent:(null===(o=i.pushConfig)||void 0===o?void 0:o.pushContent)||i.pushContent||"",channelId:i.channelId},f=fo[fo.recallMsg],h=this._channel.codec.encodeUpMsg({conversationType:e,targetId:t},l),(d=new no(f,h,this.currentUserId)).setHeaderQos(gt.AT_LEAST_ONCE),[4,this._channel.send(d)]):[2,{code:q.RC_NET_CHANNEL_INVALID}];case 1:return p=_.sent(),g=p.code,v=p.data,e===b.ULTRA_GROUP&&Qe(he.L_RECALL_ULTRA_MSG_S,{code:g,conversationType:e,targetId:t,channelId:i.channelId}),g!==q.SUCCESS?[2,{code:g}]:(y=v,e===b.ULTRA_GROUP?(this._ultraMsgMap[y.messageUId]=y.timestamp,this._updateUltraGroupWhenRecallMsg(t,i.channelId||"",n),[2,{code:q.SUCCESS}]):(this._sendMessageStore.setMessage(y.messageUId,y.timestamp),I=Zo(e,t,m(m({},l),{isPersited:!0}),y.messageUId,y.timestamp,this.currentUserId),this._conversationManager.setConversationCacheByMessage(I,!0),[2,{code:q.SUCCESS,data:I}]))}}))}))},t.prototype.sendReadReceiptMessage=function(e,t,n){return I(this,void 0,void 0,(function(){var r,i;return _(this,(function(o){switch(o.label){case 0:return this._channel?(r=this._channel.codec.encodeReadReceipt(t,n),i=new oo(fo[fo.rrMsg],r,e),[4,this._channel.send(i)]):[2,{code:q.RC_NET_CHANNEL_INVALID}];case 1:return[2,o.sent()]}}))}))},t.prototype.getMessageReader=function(e,t,n){return I(this,void 0,void 0,(function(){var r,i;return _(this,(function(o){switch(o.label){case 0:return this._channel?(r=this._channel.codec.encodeMessageReader(t,n),i=new oo(fo[fo.rrList],r,e),[4,this._channel.send(i,fr)]):[2,{code:q.RC_NET_CHANNEL_INVALID}];case 1:return[2,o.sent()]}}))}))},t.prototype.pullUserSettings=function(e){return I(this,void 0,void 0,(function(){var t,n;return _(this,(function(r){return this._channel?(t=this._channel.codec.encodePullUserSetting(e),n=new oo(fo[fo.pullUS],t,this.currentUserId),[2,this._channel.send(n,Jn)]):[2,{code:q.RC_NET_CHANNEL_INVALID}]}))}))},t.prototype.getFileToken=function(e,t,n,r){return I(this,void 0,void 0,(function(){var i,o,s,a,c,u;return _(this,(function(l){switch(l.label){case 0:return this._channel?(i=r&&"uploads"!==r?t||"":At(e,t),o=this._channel.codec.encodeGetFileToken(e,i,n||"",r||""),s=new oo(fo[fo.qnTkn],o,this.currentUserId),[4,this._channel.send(s,xn)]):[2,{code:q.RC_NET_CHANNEL_INVALID}];case 1:return a=l.sent(),c=a.code,u=a.data,u=Object.assign(u,{fileName:i}),c===q.SUCCESS?[2,{code:c,data:u}]:[2,{code:c}]}}))}))},t.prototype.getFileUrl=function(e,t,n,r){return I(this,void 0,void 0,(function(){var i,o,s,a,c,u,l,f,h;return _(this,(function(d){switch(d.label){case 0:return this._channel?(i="",o="",s="",t===ue.QINIU?(o=Pn,s=kn):(o=jn,s=zn),i=t===ue.QINIU?fo[fo.qnUrl]:t===ue.AWS?fo[fo.s3Url]:t===ue.STC?fo[fo.stcUrl]:fo[fo.aliUrl],a=this._channel.codec.encodeGetFileUrl(o,e,n,r),c=new oo(i,a,this.currentUserId),[4,this._channel.send(c,s)]):[2,{code:q.RC_NET_CHANNEL_INVALID}];case 1:return u=d.sent(),l=u.code,f=u.data,h=f,l===q.SUCCESS?[2,{code:l,data:h}]:[2,{code:l}]}}))}))},t.prototype.disconnect=function(){-1!==this._reconnectTimer&&(clearTimeout(this._reconnectTimer),this._reconnectTimer=-1),this._channel&&(this._channel.close(),this._channel=void 0),this._pullQueue.length=0,this._stopSyncInterval(),this.resetUltraGroupData()},t.prototype.resetUltraGroupData=function(){this._stopUltraSyncInterval(),this._lastSyncUltraMsgTimeStamp=0,this._lastSyncUltraMsgLocalTimeStamp=0,this._isUltraPulling=!1,this._ultraGroupTimeQue=[],this._isUltraGroupListExist=!1,this._ultraGroupMap={}},t.prototype.destroy=function(){throw new Error("JSEngine's method not implemented.")},t.prototype.registerMessageType=function(e,t,n,r,i){this._customMessageType[e]={isPersited:t,isCounted:n,isStatusMessage:i}},t.prototype.getServerTime=function(){return Date.now()-this._localConnectedTime+this._connectedTime},t.prototype.getCurrentUserId=function(){return this.currentUserId},t.prototype.createTag=function(e){return I(this,void 0,void 0,(function(){var t,n,r,i,o,s,a;return _(this,(function(c){switch(c.label){case 0:return this._channel?(t=this._userSettingManager.getVersion(),n=this._channel.codec.encodeCreateTag([e],t),r=new oo(fo[fo.addSeTag],n,this.currentUserId),[4,this._channel.send(r,qn)]):[2,{code:q.RC_NET_CHANNEL_INVALID}];case 1:return i=c.sent(),o=i.code,s=i.data,o!==q.SUCCESS?[2,{code:o}]:(a=s.version,this._userSettingManager.addTag([m(m({},e),{createdTime:a})],a),[2,{code:q.SUCCESS,data:s}])}}))}))},t.prototype.removeTag=function(e){return I(this,void 0,void 0,(function(){var t,n,r,i,o,s,a;return _(this,(function(c){switch(c.label){case 0:return this._channel?(t=this._userSettingManager.getVersion(),n=this._channel.codec.encodeRemoveTag([e],t),r=new oo(fo[fo.delSeTag],n,this.currentUserId),[4,this._channel.send(r,qn)]):[2,{code:q.RC_NET_CHANNEL_INVALID}];case 1:return i=c.sent(),o=i.code,s=i.data,o!==q.SUCCESS?[2,{code:o}]:(a=s.version,this._userSettingManager.deleteTag([e],a),[2,{code:q.SUCCESS}])}}))}))},t.prototype.updateTag=function(e){return I(this,void 0,void 0,(function(){var t,n,r,i,o,s,a;return _(this,(function(c){switch(c.label){case 0:return this._channel?(t=this._userSettingManager.getVersion(),n=this._channel.codec.encodeCreateTag([e],t),r=new oo(fo[fo.addSeTag],n,this.currentUserId),[4,this._channel.send(r,qn)]):[2,{code:q.RC_NET_CHANNEL_INVALID}];case 1:return i=c.sent(),o=i.code,s=i.data,o!==q.SUCCESS?[2,{code:o}]:(a=s.version,this._userSettingManager.addTag([e],a),[2,{code:q.SUCCESS,data:s}])}}))}))},t.prototype.getTagList=function(){return I(this,void 0,void 0,(function(){var e,t;return _(this,(function(n){return e=this._userSettingManager.getTags(),t=this._conversationManager.getConversationListForTag(),e.forEach((function(e){e.conversationCount=t[e.tagId]?t[e.tagId].length:0})),[2,{code:q.SUCCESS,data:e}]}))}))},t.prototype.addTagForConversations=function(e,t){return I(this,void 0,void 0,(function(){var n,r,i,o,s=this;return _(this,(function(a){switch(a.label){case 0:return this._channel?this._userSettingManager.getTagById(e)?(n=this._channel.codec.encodeUpdateConversationTag([{tagId:e}],t),r=new oo(fo[fo.addTag],n,this.currentUserId),[4,this._channel.send(r)]):[2,{code:q.TAG_NOT_EXIST}]:[2,{code:q.RC_NET_CHANNEL_INVALID}];case 1:return(i=a.sent().code)!==q.SUCCESS?[2,{code:i}]:((o={})[e]={},t.forEach((function(e){s._conversationManager.addTagStatus(e.conversationType,e.targetId,o,e.channelId)})),[2,{code:q.SUCCESS}])}}))}))},t.prototype.removeTagForConversations=function(e,t){return I(this,void 0,void 0,(function(){var n,r,i,o=this;return _(this,(function(s){switch(s.label){case 0:return this._channel?(n=this._channel.codec.encodeUpdateConversationTag([{tagId:e}],t),r=new oo(fo[fo.delTag],n,this.currentUserId),[4,this._channel.send(r)]):[2,{code:q.RC_NET_CHANNEL_INVALID}];case 1:return(i=s.sent().code)!==q.SUCCESS?[2,{code:i}]:(t.forEach((function(t){o._conversationManager.deleteTagStatus(t.conversationType,t.targetId,[e],t.channelId)})),[2,{code:q.SUCCESS}])}}))}))},t.prototype.removeTagsForConversation=function(e,t){return I(this,void 0,void 0,(function(){var n,r,i,o,s,a,c;return _(this,(function(u){switch(u.label){case 0:return this._channel?(n=e.conversationType,r=e.targetId,i=e.channelId,o=t.map((function(e){return{tagId:e}})),s=this._channel.codec.encodeUpdateConversationTag(o,[e]),a=new oo(fo[fo.delTag],s,this.currentUserId),[4,this._channel.send(a)]):[2,{code:q.RC_NET_CHANNEL_INVALID}];case 1:return(c=u.sent().code)!==q.SUCCESS?[2,{code:c}]:(this._conversationManager.deleteTagStatus(n,r,t,i),[2,{code:q.SUCCESS}])}}))}))},t.prototype.getConversationListByTag=function(e,t,n){return I(this,void 0,void 0,(function(){var r,i,o,s,a,c,u,l,f;return _(this,(function(h){switch(h.label){case 0:return i=(r=this).currentUserId,(o=r._channel)?(s=o.codec.encodeOldConversationList({count:n,type:b.PRIVATE,startTime:t}),a=new oo(yi,s,i),[4,o.send(a,sn,{currentUserId:i,connectedTime:o.connectedTime})]):[2,{code:q.RC_NET_CHANNEL_INVALID}];case 1:return c=h.sent(),u=c.code,l=c.data,f=this._conversationHasTagFilter(e,null==l?void 0:l.list),ut.info("GetConversationListByTag",f),u!==q.SUCCESS?[2,{code:u}]:[2,{code:u,data:f}]}}))}))},t.prototype._conversationHasTagFilter=function(e,t){var n=this,r=[],i=[];function o(e,t){return e.latestMessage&&t.latestMessage?e.latestMessage.sentTime-t.latestMessage.sentTime:0}return t.forEach((function(t){var o=t.conversationType,s=t.targetId,a=t.channelId,c=n._conversationManager.get(o,s,a),u=c.hasMentioned,l=c.mentionedInfo,f=c.lastUnreadTime,h=c.notificationStatus,d=c.isTop,p=c.tags,g=c.unreadMessageCount,v=p&&p[e];if(v){var y=m(m({},t),{hasMentioned:u,mentionedInfo:l,lastUnreadTime:f,notificationStatus:h,isTop:d,unreadMessageCount:g});v.isTop?r.push(m(m({},y),{isTopInTag:!0})):i.push(m(m({},y),{isTopInTag:!1}))}})),T(T([],r.sort(o),!0),i.sort(o),!0)},t.prototype.getUnreadCountByTag=function(e,t){return I(this,void 0,void 0,(function(){var n;return _(this,(function(r){return this._channel?(n=this._conversationManager.getUnreadCountByTag(e,t),[2,{code:q.SUCCESS,data:n}]):[2,{code:q.RC_NET_CHANNEL_INVALID}]}))}))},t.prototype.setConversationStatusInTag=function(e,t,n){return I(this,void 0,void 0,(function(){var r,i,o,s,a,c,u,l,f,h;return _(this,(function(d){switch(d.label){case 0:return this._channel?(r=t.targetId,i=t.conversationType,o=t.channelId,s=n.isTop,a=[{tagId:e,isTop:s}],(c=this._conversationManager.get(i,r,o)).tags&&Object.hasOwnProperty.call(c.tags,e)?(u=this._channel.codec.encodeUpdateConversationTag(a,[t]),l=new oo(fo[fo.addTag],u,this.currentUserId),[4,this._channel.send(l)]):[2,{code:q.NO_TAG_IN_CONVER}]):[2,{code:q.RC_NET_CHANNEL_INVALID}];case 1:return(f=d.sent().code)!==q.SUCCESS?[2,{code:f}]:((h={})[e]={},s&&(h[e].isTop=!0),this._conversationManager.addTagStatus(i,r,h,o),[2,{code:q.SUCCESS}])}}))}))},t.prototype.getTagsForConversation=function(e){var t;return I(this,void 0,void 0,(function(){var n,r,i,o;return _(this,(function(s){if(!this._channel)return[2,{code:q.RC_NET_CHANNEL_INVALID}];if(n=this._conversationManager.get(e.conversationType,e.targetId,e.channelId),r=this._userSettingManager.getTagsInfo(),i=[],n.tags)for(o in n.tags)i.push({tagId:o,tagName:null===(t=r[o])||void 0===t?void 0:t.tagName});return[2,{code:q.SUCCESS,data:i}]}))}))},t.prototype.getBlockConversationList=function(){var e=this._conversationManager.getBlockConversationList();return Promise.resolve({code:q.SUCCESS,data:e})},t.prototype.getTopConversationList=function(){var e=this._conversationManager.getTopConversationList();return Promise.resolve({code:q.SUCCESS,data:e})},t.prototype.getUnreadMentionedCount=function(e){var t,n;return n=e.conversationType===b.ULTRA_GROUP?(null===(t=this._ultraGroupMap[e.channelId+"_"+e.targetId])||void 0===t?void 0:t.unreadMentionedCount)||0:this._conversationManager.getUnreadMentionedCount(e.channelId,e.conversationType,e.targetId),Promise.resolve({code:q.SUCCESS,data:n})},t.prototype.getAllUnreadMentionedCount=function(){var e=this._conversationManager.getAllUnreadMentionedCount();return Promise.resolve({code:q.SUCCESS,data:e})},t.prototype.getConversationNotificationLevel=function(e,t,n){if(!this._isUltraGroupListExist&&e===b.ULTRA_GROUP)return Promise.resolve({code:q.METHOD_NOT_AVAILABLE});var r;if(!(r=e===b.ULTRA_GROUP?this._ultraGroupManager.get(b.ULTRA_GROUP,t,n):this._conversationManager.get(e,t,n)))return Promise.resolve({code:q.SUCCESS,data:oe.NOT_SET});var i=r.notificationLevel;return G(r.notificationLevel)&&!G(r.notificationStatus)&&(i=re.OPEN===r.notificationStatus?1:0),Promise.resolve({code:q.SUCCESS,data:i})},t.prototype.getConversationNotificationStatus=function(e,t,n){var r;return(r=e===b.ULTRA_GROUP?this._ultraGroupManager.get(b.ULTRA_GROUP,t,n):this._conversationManager.get(e,t,n))?Promise.resolve({code:q.SUCCESS,data:r.notificationStatus}):Promise.resolve({code:q.SUCCESS,data:re.CLOSE})},t.prototype.getRemoteHistoryMessages=function(e,t,n,r,i,o){return this.getHistoryMessage(e,t,n,r,i,o)},t.prototype.getUltraGroupList=function(){return I(this,void 0,void 0,(function(){var e,t;return _(this,(function(n){return this._isUltraGroupListExist?(e=Object.values(this._ultraGroupMap),e=Jo(e),t=kt(e),[2,{code:q.SUCCESS,data:t}]):[2,{code:q.METHOD_NOT_AVAILABLE}]}))}))},t.prototype.getBlockUltraGroupList=function(){if(!this._isUltraGroupListExist)return Promise.resolve({code:q.METHOD_NOT_AVAILABLE});var e=Object.values(this._ultraGroupMap),t=[];return e.forEach((function(e){e.notificationStatus===re.OPEN&&t.push({conversationType:b.ULTRA_GROUP,targetId:e.targetId,channelId:e.channelId})})),Promise.resolve({code:q.SUCCESS,data:t})},t.prototype.getTopUltraGroupList=function(){if(!this._isUltraGroupListExist)return Promise.resolve({code:q.METHOD_NOT_AVAILABLE});var e=Object.values(this._ultraGroupMap),t=[];return e.forEach((function(e){!0===e.isTop&&t.push({conversationType:b.ULTRA_GROUP,targetId:e.targetId,channelId:e.channelId})})),Promise.resolve({code:q.SUCCESS,data:t})},t.prototype.getUltraGroupUnreadMentionedCountByTargetId=function(e){if(!this._isUltraGroupListExist)return Promise.resolve({code:q.METHOD_NOT_AVAILABLE});var t=0;for(var n in this._ultraGroupMap)n.match(/_.*/g)[0].substring(1)===e&&(t+=this._ultraGroupMap[n].unreadMentionedCount);return Promise.resolve({code:q.SUCCESS,data:t})},t.prototype.getUltraGroupUnreadCountByTargetId=function(e){var t=0;for(var n in this._ultraGroupMap){var r=this._ultraGroupMap[n];r.targetId===e&&(t+=r.unreadMessageCount||0)}return Promise.resolve({code:q.SUCCESS,data:t})},t.prototype.getAllUltraGroupUnreadCount=function(e){if(void 0===e&&(e=!1),!this._isUltraGroupListExist)return Promise.resolve({code:q.METHOD_NOT_AVAILABLE});var t=0;for(var n in this._ultraGroupMap)t+=e?this._ultraGroupMap[n].unreadMentionedCount||0:this._ultraGroupMap[n].unreadMessageCount||0;return Promise.resolve({code:q.SUCCESS,data:t})},t.prototype.clearUltraUnreadcount=function(e,t){return void 0===t&&(t=""),I(this,void 0,void 0,(function(){var n,r,i,o,s;return _(this,(function(a){switch(a.label){case 0:return this._isUltraGroupListExist?this._channel?this._status!==J.CONNECTED?[2,q.RC_NET_UNAVAILABLE]:(n=Date.now(),r=this._channel.codec.encodeClearUnreadCount({conversationType:b.ULTRA_GROUP,targetId:e,channelId:t},{timestamp:n}),(i=new no(fo[fo.updUgRTime],r,this.currentUserId)).setHeaderQos(gt.AT_LEAST_ONCE),[4,this._channel.send(i)]):[2,q.RC_NET_CHANNEL_INVALID]:[2,Promise.resolve(q.METHOD_NOT_AVAILABLE)];case 1:return(o=a.sent().code)===q.SUCCESS&&(s=this._ultraGroupMap[t+"_"+e])&&(s.unreadMessageCount=0,s.unreadMentionedCount=0,s.lastReadTime=n),[2,o]}}))}))},t.prototype._getUltraGroupList=function(e){return I(this,void 0,void 0,(function(){var t,n,r,i,o,s,a,c,u,l,f,h,d,p=this;return _(this,(function(g){switch(g.label){case 0:return this._channel&&this._status===J.CONNECTED?(t=this._channel.codec.encodeUltraGroup(e,!1),n=new oo(fo[fo.pullUgSes],t,this.currentUserId),[4,this._channel.send(n,sn,{currentUserId:this.currentUserId,conversationType:b.ULTRA_GROUP})]):[2];case 1:return r=g.sent(),i=r.code,o=r.data,i===q.SUCCESS&&o?(a=(null==o?void 0:o.list)||[],c=null==o?void 0:o.isFinished,a.forEach((function(e){e.notificationStatus=re.CLOSE,e.notificationLevel=oe.NOT_SET,e.isTop=!1,p._ultraGroupMap[e.channelId+"_"+e.targetId]=e,p._ultraGroupManager.addUltraGroupStatus(e)})),!1!==c?[3,2]:(u=a.length>0&&a[a.length-1].versionTime||0,this._getUltraGroupList(u),[3,4])):(ut.warn("pull super conversation failed, code:",i,", data:",o,"retrying..."),s=setTimeout((function(){p._firstPullUltraGroupTime=e,p._getUltraGroupList(e),clearTimeout(s)}),3e3),[2]);case 2:return[4,this.pullConversationStatus(this._firstPullUltraGroupTime)];case 3:l=g.sent(),f=l.code,h=l.data,f!==q.SUCCESS&&ut.warn("pullConversationStatus fail code: ".concat(f,", data: ").concat(h)),d=Object.values(this._ultraGroupMap),d=Jo(d),this._isUltraGroupListExist=!0,this._watcher.ultraGroupEnable(kt(d)),0===this._firstPullUltraGroupTime&&this._syncUltraMsg(this._lastSyncUltraMsgTimeStamp),g.label=4;case 4:return[2]}}))}))},t.prototype._startUltraSyncInterval=function(){var e=this,t=function(){e._ultraGroupTimer=setTimeout((function(){Date.now()-e._lastSyncUltraMsgLocalTimeStamp>=18e4&&e._syncUltraMsg(e._lastSyncUltraMsgTimeStamp),e._stopUltraSyncInterval(),t()}),3e4)};this._lastSyncUltraMsgLocalTimeStamp=Date.now(),this._syncUltraMsg(0),t()},t.prototype._stopUltraSyncInterval=function(){-1!==this._ultraGroupTimer&&(clearTimeout(this._ultraGroupTimer),this._ultraGroupTimer=-1)},t.prototype._syncUltraMsg=function(e){var t;return I(this,void 0,void 0,(function(){var n,r,i,o,s,a,c,u,l,f,h,d,p,g,v=this;return _(this,(function(y){switch(y.label){case 0:return this._channel&&this._status===J.CONNECTED?this._isUltraPulling?[2]:(ut.info("start pull ultra msg, time: ".concat(e)),this._isUltraPulling=!0,n=this._channel.codec.encodeSuperSyncMsg(e),r=new oo(fo[fo.pullUgMsg],n,this.currentUserId),i=Ve(),$e(he.L_PULL_ULTRA_MSG_T,{timestamp:e},{traceId:i}),[4,this._channel.send(r,qt,{currentUserId:this.currentUserId,conversation:{conversationType:b.ULTRA_GROUP}})]):[2];case 1:if(o=y.sent(),s=o.code,a=o.data,ut.info("end pull ultra msg, code: ".concat(s,", syncTime: ").concat(null==a?void 0:a.syncTime,", count: ").concat(null===(t=null==a?void 0:a.list)||void 0===t?void 0:t.length)),this._lastSyncUltraMsgLocalTimeStamp=Date.now(),s!==q.SUCCESS||!a)return Ke(he.L_PULL_ULTRA_MSG_R,{code:s,messageUIds:"",timestamp:e},{traceId:i}),ut.warn("sync super message failed, code:",s,", data:",a),this._isUltraPulling=!1,[2];if(this._isUltraPulling=!1,c=a.list,u=a.syncTime,l=a.finished,!this._isUltraGroupListExist)return ut.info("init getUltraGroupList"),this._firstPullUltraGroupTime=0,this._getUltraGroupList(0),this._lastSyncUltraMsgTimeStamp=u,[2];for(g in f=[],h={},d=[],c.forEach((function(e){var t,n,r,i=e.targetId,o=e.content,s=e.messageType,a=e.messageUId,c=e.channelId,l=e.isCounted;if(f.push(a),v._ultraMsgMap[a])delete v._ultraMsgMap[a];else{var p=0;((null===(t=null==o?void 0:o.mentionedInfo)||void 0===t?void 0:t.type)===ae.ALL||(null===(r=null===(n=null==o?void 0:o.mentionedInfo)||void 0===n?void 0:n.userIdList)||void 0===r?void 0:r.includes(v.currentUserId)))&&(p=1);var g=v._ultraGroupMap[c+"_"+i];if(g)l&&(s===te.RECALL?g.unreadMessageCount>0&&(g.unreadMessageCount-=1):(g.unreadMessageCount+=1,g.unreadMentionedCount+=p)),g.versionTime=u,g.latestMessage=e,h[c+"_"+i]=g,v._ultraGroupManager.addUltraGroupStatus(g);else{var y={conversationType:b.ULTRA_GROUP,targetId:i,channelId:c,unreadMessageCount:l?1:0,unreadMentionedCount:l?p:0,versionTime:u,latestMessage:e,notificationStatus:re.CLOSE,notificationLevel:oe.NOT_SET,isTop:!1};v._ultraGroupMap[c+"_"+i]=y,h[c+"_"+i]=y,v._ultraGroupManager.addUltraGroupStatus(y)}d.push(e)}})),Object.keys(h).length>0&&(ut.info("notice ultragroups"),p=Object.values(h),p=Jo(p),this._watcher.conversation(kt(p))),$e(he.L_PULL_ULTRA_MSG_R,{code:s,messageUIds:f.join(","),timestamp:u},{traceId:i}),ut.info("notice ultragroup message"),this._watcher.batchMessage(d),this._ultraGroupTimeQue=this._ultraGroupTimeQue.filter((function(e){return e>u})),this._ultraMsgMap)this._ultraMsgMap[g]<u&&delete this._ultraMsgMap[g];return!1===l?this._syncUltraMsg(u):c&&c.length>0&&(this._lastSyncUltraMsgTimeStamp=u),this._ultraGroupTimeQue.length>0&&this._syncUltraMsg(this._lastSyncUltraMsgTimeStamp),[2]}}))}))},t.prototype.sendUltraMessage=function(e,t,n){return I(this,void 0,void 0,(function(){var r,i,o,s,a,c,u,l,f,h,d,p;return _(this,(function(g){switch(g.label){case 0:return this._channel?this._status!==J.CONNECTED?[2,{code:q.RC_NET_UNAVAILABLE}]:("RC:SRSMsg"===t.messageType&&ut.warn("ultra group -> direction message convert to message"),t=this._handleMsgProperties(t,!0),r=this._channel.codec.encodeUpMsg({conversationType:b.ULTRA_GROUP,targetId:e},t),(i=new no(fo[fo.ugMsg],r,e)).setHeaderQos(gt.AT_LEAST_ONCE),o=Date.now()-this._localConnectedTime+this._connectedTime,s=Zo(b.ULTRA_GROUP,e,m({},t),"",o,this.currentUserId),$e(he.L_SEND_MSG_T,{messageType:t.messageType,conversationType:b.ULTRA_GROUP,targetId:e,channelId:t.channelId},{traceId:n}),[4,this._channel.send(i)]):[2,{code:q.RC_NET_CHANNEL_INVALID}];case 1:return a=g.sent(),c=a.code,u=a.data,l=c===q.SUCCESS?$e:Ke,f=c===q.SUCCESS?u.messageUId:s.messageUId,l(he.L_SEND_MSG_R,{code:c,messageUId:f||""},{traceId:n}),c!==q.SUCCESS||(h=u,s.sentTime=h.timestamp,s.messageUId=h.messageUId,this._ultraMsgMap[h.messageUId]=h.timestamp,d=t.channelId||"",(p=this._ultraGroupMap[d+"_"+e])?p.latestMessage=s:(p={conversationType:b.ULTRA_GROUP,targetId:e,channelId:d,unreadMessageCount:0,unreadMentionedCount:0,versionTime:s.sentTime,latestMessage:s,notificationStatus:re.CLOSE,notificationLevel:oe.NOT_SET,isTop:!1},this._ultraGroupMap[d+"_"+e]=p,this._ultraGroupManager.addUltraGroupStatus(p)),this._watcher.conversation(kt([p]))),[2,{code:c,data:s}]}}))}))},t.prototype.sendUltraGroupTypingStatus=function(e,t){return I(this,void 0,void 0,(function(){var n,r,i,o,s,a;return _(this,(function(c){switch(c.label){case 0:return this._channel?this._status!==J.CONNECTED?[2,{code:q.RC_NET_UNAVAILABLE}]:(n=e.conversationType,r=e.channelId,i=e.targetId,o=this._channel.codec.encodeOperateStatus(i,n,r||"",t||0),(s=new no(fo[fo.operate],o,i)).setHeaderQos(gt.AT_LEAST_ONCE),[4,this._channel.send(s)]):[2,{code:q.RC_NET_CHANNEL_INVALID}];case 1:return(a=c.sent().code)!==q.SUCCESS?[2,{code:a,msg:q[a]}]:[2,{code:a}]}}))}))},t.prototype.getUltraGroupMessageListByMessageUId=function(e){return I(this,void 0,void 0,(function(){var t,n,r,i,o,s,a;return _(this,(function(c){switch(c.label){case 0:return this._channel?this._status!==J.CONNECTED?[2,{code:q.RC_NET_UNAVAILABLE}]:e.messages&&e.messages.length<1||e.messages&&e.messages.length>20?[2,{code:q.MSG_LIMIT_ERROR}]:(t={},e.messages.forEach((function(e){t[e.messageUId]=void 0})),n=this._channel.codec.encodeMsgQuery(e),(r=new oo(fo[fo.qryMsg],n,this.currentUserId)).setHeaderQos(gt.AT_LEAST_ONCE),[4,this._channel.send(r,Nr)]):[2,{code:q.RC_NET_CHANNEL_INVALID}];case 1:return i=c.sent(),o=i.code,s=i.data,o!==q.SUCCESS?[2,{code:o,msg:q[o]}]:(a=(s||{}).list,Array.isArray(a)&&a.forEach((function(e){var n=e.messageUId;t[n]=e})),[2,{code:0,data:t}])}}))}))},t.prototype._pullOperateStatusNotify=function(e){if(this._channel){var t=this._channel.codec.decodeByPBName(e.data,wr),n=t.conversationType,r=t.info,i=t.summary;ut.info("s_opNtf -> type: ".concat(n,", info: ").concat(r,", summary: ").concat(i)),this._watcher.operateStatus(t)}},t.prototype.expandUltraMessage=function(e){return I(this,void 0,void 0,(function(){var t,n,r,i,o,s;return _(this,(function(a){switch(a.label){case 0:return this._channel?this._status!==J.CONNECTED?[2,{code:q.RC_NET_UNAVAILABLE}]:(t=this._channel.codec.encodeExpandUltraMessage(e,this.currentUserId),(n=new no(fo[fo.upMsgEx],t,e.targetId)).setHeaderQos(gt.AT_LEAST_ONCE),[4,this._channel.send(n)]):[2,{code:q.RC_NET_CHANNEL_INVALID}];case 1:return r=a.sent(),i=r.code,o=r.data,i!==q.SUCCESS?[2,{code:i,msg:q[i]}]:(s=o,this._ultraMsgMap[s.messageUId]=s.timestamp,[2,{code:i}])}}))}))},t.prototype.modifyMessage=function(e){return I(this,void 0,void 0,(function(){var t,n,r,i,o,s;return _(this,(function(a){switch(a.label){case 0:return this._channel?this._status!==J.CONNECTED?[2,{code:q.RC_NET_UNAVAILABLE}]:(t=this._channel.codec.encodemodifyMessage(e,this.currentUserId),(n=new no(fo[fo.modifyMsg],t,e.targetId)).setHeaderQos(gt.AT_LEAST_ONCE),[4,this._channel.send(n)]):[2,{code:q.RC_NET_CHANNEL_INVALID}];case 1:return r=a.sent(),i=r.code,o=r.data,i!==q.SUCCESS?[2,{code:i,msg:q[i]}]:(s=o,this._ultraMsgMap[s.messageUId]=s.timestamp,[2,{code:i}])}}))}))},t.prototype._pullUltraChangeMessageList=function(e){return I(this,void 0,void 0,(function(){var t,n,r,i,o,s,a,c,u,l,f,h,d,p,g,v,y,m=this;return _(this,(function(I){switch(I.label){case 0:return this._channel?this._status!==J.CONNECTED||this._isPullingUltraChangeMessage?[2]:(this._isPullingUltraChangeMessage=!0,t=this._channel.codec.encodeQueryMsgChange(e),(n=new no(fo[fo.qryMsgChange],t,this.currentUserId)).setHeaderQos(gt.AT_LEAST_ONCE),[4,this._channel.send(n,Er)]):[2];case 1:if(r=I.sent(),i=r.code,o=r.data,this._isPullingUltraChangeMessage=!1,i!==q.SUCCESS)return[2];for(p in a=(s=o||{}).hasNext,c=s.list,u=(null==o?void 0:o.syncTime)||0,l=[],f={},Array.isArray(c)&&c.forEach((function(e){var t=e,n=t.targetId,r=t.conversationType,i=t.sendTime,o=t.messageUId,s=t.changeType,a=t.operatorId,c=e.channelId||"",u=r+"_"+n,h=o+"_"+c+"_"+i,d=f[u];if(d)d.add(h);else{var p=new Set([h]);f[u]=p}3!==s?m._ultraMsgChangeMap[o]=s:(m._updateUltraGroupWhenRecallMsg(n,c,o),l.push({targetId:n,conversationType:r,sendTime:i,messageUId:o,senderUserId:a,channelId:c}))})),Array.isArray(l)&&l.length>0&&this._watcher.ultraGroupMessageRecalled(l),h=function(e){var t=e.split("_"),n=t.shift(),r=t.join("_"),i=f[e],o=[];i.forEach((function(e){var t=e.split("_"),n=t[0],r=t[1],i=t[2];o.push({sendTime:Number(i),messageUId:n,channelId:r})}));var s={targetId:r,conversationType:Number(n),messages:o};d._pullUltraMessageList(s)},d=this,f)h(p);for(v in g=this._pullUltraChangeMessageQue.filter((function(e){return e>u})),this._pullUltraChangeMessageQue.length=0,(y=this._pullUltraChangeMessageQue).push.apply(y,g),this._ultraMsgMap)this._ultraMsgMap[v]<u&&delete this._ultraMsgMap[v];return a?this._pullUltraChangeMessageList(u):this._lastPullingUltraChangeMessageTime=u,[2]}}))}))},t.prototype._pullUltraMessageList=function(e){return I(this,void 0,void 0,(function(){var t,n,r,i,o,s,a,c,u=this;return _(this,(function(l){switch(l.label){case 0:return this._channel?this._status!==J.CONNECTED?[2,{code:q.RC_NET_UNAVAILABLE}]:(t=this._channel.codec.encodeMsgQuery(e),(n=new oo(fo[fo.qryMsg],t,this.currentUserId)).setHeaderQos(gt.AT_LEAST_ONCE),[4,this._channel.send(n,Nr)]):[2,{code:q.RC_NET_CHANNEL_INVALID}];case 1:return r=l.sent(),i=r.code,o=r.data,i!==q.SUCCESS?[2,{code:i,msg:q[i]}]:(s=(o||{}).list,a=[],c=[],Array.isArray(s)&&s.forEach((function(e){var t=e.targetId,n=e.channelId,r=e.messageUId,i=u._ultraGroupMap[n+"_"+t];i&&i.latestMessage.messageUId===e.messageUId&&(i.latestMessage=e);var o=u._ultraMsgChangeMap[r+""];1===o?a.push(e):2===o&&c.push(e)})),a.length>0&&this._watcher.ultraGroupMessageExpansionUpdated(a||[]),c.length>0&&this._watcher.ultraGroupMessageModified(c||[]),[2])}}))}))},t.prototype.getUltraHistoryMsg=function(e,t,n){return I(this,void 0,void 0,(function(){var r,i,o,s,a,c;return _(this,(function(u){switch(u.label){case 0:return this._channel?this._status!==J.CONNECTED?[2,{code:q.RC_NET_UNAVAILABLE}]:(r=this._channel.codec.encodeGetHistoryMsg(e,t),i=new oo(fo[fo.qryUgMsg],r,this.currentUserId),$e(he.L_GET_HISTORY_MSG_T,{targetId:e,conversationType:b.ULTRA_GROUP,channelId:t.channelId,timestamp:null==t?void 0:t.timestamp,count:null==t?void 0:t.count},{traceId:n}),[4,this._channel.send(i,rn,{currentUserId:this.currentUserId,conversation:{conversationType:b.ULTRA_GROUP,targetId:e}})]):[2,{code:q.RC_NET_CHANNEL_INVALID}];case 1:return o=u.sent(),s=o.code,a=o.data,s===q.SUCCESS&&a?(c=[],a.list&&a.list.forEach((function(e){e&&c.push(e.messageUId)})),$e(he.L_GET_HISTORY_MSG_R,{code:s,messageUIds:c.join(",")},{traceId:n}),[2,{code:s,data:a}]):(Ke(he.L_GET_HISTORY_MSG_R,{code:s,messageUIds:""},{traceId:n}),ut.warn("get super history message failed, code:",s,", data:",a),[2,{code:s}])}}))}))},t.prototype.searchUltraGroupMessages=function(e){return I(this,void 0,void 0,(function(){return _(this,(function(e){return this._channel?this._status!==J.CONNECTED?[2,{code:q.RC_NET_UNAVAILABLE}]:[2,{code:q.SUCCESS}]:[2,{code:q.RC_NET_CHANNEL_INVALID}]}))}))},t.prototype.setUltraGroupDefaultNotificationLevel=function(e,t,n){return I(this,void 0,void 0,(function(){var r,i,o,s,a;return _(this,(function(c){switch(c.label){case 0:return this._isUltraGroupListExist?(r=this._channel)?(i=r.codec.encodeSetUltraGroupDefaultNotificationLevel(t,n),o=new oo(fo[fo.ugUnpushSet],i,e),[4,r.send(o)]):[3,2]:[2,Promise.resolve({code:q.METHOD_NOT_AVAILABLE})];case 1:return s=c.sent(),a=s.code,q.SUCCESS,[2,{code:a}];case 2:return[2,{code:q.RC_NET_CHANNEL_INVALID}]}}))}))},t.prototype.getUltraGroupDefaultNotificationLevel=function(e,t){return I(this,void 0,void 0,(function(){var n,r,i,o,s,a,c;return _(this,(function(u){switch(u.label){case 0:return this._isUltraGroupListExist?(n=this._channel)?(r=n.codec.encodeGetUltraGroupDefaultNotificationLevel(t),i=new oo(fo[fo.ugUnpushQuery],r,e),[4,n.send(i,cr)]):[3,2]:[2,Promise.resolve({code:q.METHOD_NOT_AVAILABLE})];case 1:return o=u.sent(),s=o.code,a=o.data,s===q.SUCCESS&&a?(c=a.unpushLevel,[2,{code:s,data:c}]):[2,{code:s}];case 2:return[2,{code:q.RC_NET_CHANNEL_INVALID}]}}))}))},t.prototype._updateUltraGroupWhenRecallMsg=function(e,t,n){var r="".concat(t,"_").concat(e);if(this._ultraGroupMap[r]){var i=this._ultraGroupMap[r],o=i.latestMessage;o&&o.messageUId===n&&(i.latestMessage=null)}},t.prototype.getAllConversationState=function(){return Promise.resolve({code:q.SUCCESS,data:this._conversationManager.getAllConversationState()})},t.prototype.joinRTCRoom=function(e,t,n,r,i,o){return I(this,void 0,void 0,(function(){var s,a;return _(this,(function(c){return this._channel?(s=this._channel.codec.encodeJoinRTCRoom(t,n,r,i,o),a=new oo(fo[fo.rtcRJoin_data],s,e),[2,this._channel.send(a,In)]):[2,{code:q.RC_NET_CHANNEL_INVALID}]}))}))},t.prototype.quitRTCRoom=function(e){return I(this,void 0,void 0,(function(){var t,n;return _(this,(function(r){switch(r.label){case 0:return this._channel?(t=this._channel.codec.encodeQuitRTCRoom(),n=new oo(fo[fo.rtcRExit],t,e),[4,this._channel.send(n)]):[2,q.RC_NET_CHANNEL_INVALID];case 1:return[2,r.sent().code]}}))}))},t.prototype.rtcPing=function(e,t,n){return I(this,void 0,void 0,(function(){var r,i;return _(this,(function(o){switch(o.label){case 0:return this._channel?(r=this._channel.codec.encodeJoinRTCRoom(t,n),i=new oo(fo[fo.rtcPing],r,e),[4,this._channel.send(i)]):[2,q.RC_NET_CHANNEL_INVALID];case 1:return[2,o.sent().code]}}))}))},t.prototype.getRTCRoomInfo=function(e){return I(this,void 0,void 0,(function(){var t,n;return _(this,(function(r){return this._channel?(t=this._channel.codec.encodeGetRTCRoomInfo(),n=new oo(fo[fo.rtcRInfo],t,e),[2,this._channel.send(n,Rn)]):[2,{code:q.RC_NET_CHANNEL_INVALID}]}))}))},t.prototype.getRTCUserInfoList=function(e){return I(this,void 0,void 0,(function(){var t,n,r,i,o;return _(this,(function(s){switch(s.label){case 0:return this._channel?(t=this._channel.codec.encodeGetRTCRoomInfo(),n=new oo(fo[fo.rtcUData],t,e),[4,this._channel.send(n,In)]):[2,{code:q.RC_NET_CHANNEL_INVALID}];case 1:return r=s.sent(),i=r.code,o=r.data,[2,{code:i,data:o?{users:o.users}:o}]}}))}))},t.prototype.setRTCUserInfo=function(e,t,n){return I(this,void 0,void 0,(function(){var r,i;return _(this,(function(o){switch(o.label){case 0:return this._channel?(r=this._channel.codec.encodeSetRTCUserInfo(t,n),i=new oo(fo[fo.rtcUPut],r,e),[4,this._channel.send(i)]):[2,q.RC_NET_CHANNEL_INVALID];case 1:return[2,o.sent().code]}}))}))},t.prototype.removeRTCUserInfo=function(e,t){return I(this,void 0,void 0,(function(){var n,r;return _(this,(function(i){switch(i.label){case 0:return this._channel?(n=this._channel.codec.encodeRemoveRTCUserInfo(t),r=new no(fo[fo.rtcUDel],n,e),[4,this._channel.send(r)]):[2,q.RC_NET_CHANNEL_INVALID];case 1:return[2,i.sent().code]}}))}))},t.prototype.setRTCData=function(e,t,n,r,i,o){return I(this,void 0,void 0,(function(){var s,a;return _(this,(function(c){switch(c.label){case 0:return this._channel?(s=this._channel.codec.encodeSetRTCData(t,n,r,i,o),a=new no(fo[fo.rtcSetData],s,e),[4,this._channel.send(a)]):[2,q.RC_NET_CHANNEL_INVALID];case 1:return[2,c.sent().code]}}))}))},t.prototype.setRTCTotalRes=function(e,t,n,r,i){return I(this,void 0,void 0,(function(){var o,s;return _(this,(function(a){switch(a.label){case 0:return this._channel?(o=this._channel.codec.encodeUserSetRTCData(t,n,r,i),s=new oo(fo[fo.userSetData],o,e),[4,this._channel.send(s)]):[2,q.RC_NET_CHANNEL_INVALID];case 1:return[2,a.sent().code]}}))}))},t.prototype.setRTCCDNUris=function(e,t,n){return I(this,void 0,void 0,(function(){var r,i;return _(this,(function(o){switch(o.label){case 0:return this._channel?(r=this._channel.codec.encodeUserSetRTCCDNUris(t,n),i=new oo(fo[fo.userSetData],r,e),[4,this._channel.send(i)]):[2,q.RC_NET_CHANNEL_INVALID];case 1:return[2,o.sent().code]}}))}))},t.prototype.getRTCData=function(e,t,n,r){if(!this._channel)return Promise.resolve({code:q.RC_NET_CHANNEL_INVALID});var i=this._channel.codec.encodeGetRTCData(t,n,r),o=new oo(fo[fo.rtcQryData],i,e);return this._channel.send(o,Nn)},t.prototype.removeRTCData=function(e,t,n,r,i){return I(this,void 0,void 0,(function(){var o,s;return _(this,(function(a){switch(a.label){case 0:return this._channel?(o=this._channel.codec.encodeRemoveRTCData(t,n,r,i),s=new no(fo[fo.rtcDelData],o,e),[4,this._channel.send(s)]):[2,q.RC_NET_CHANNEL_INVALID];case 1:return[2,a.sent().code]}}))}))},t.prototype.setRTCOutData=function(e,t,n,r){throw new Error("JSEngine's method not implemented.")},t.prototype.getRTCOutData=function(e,t){throw new Error("JSEngine's method not implemented.")},t.prototype.getRTCToken=function(e,t,n){return I(this,void 0,void 0,(function(){var r,i;return _(this,(function(o){return this._channel?(r=this._channel.codec.encodeJoinRTCRoom(t,n),i=new oo(fo[fo.rtcToken],r,e),[2,this._channel.send(i,Sn)]):[2,{code:q.RC_NET_CHANNEL_INVALID}]}))}))},t.prototype.setRTCState=function(e,t){return I(this,void 0,void 0,(function(){var n,r;return _(this,(function(i){switch(i.label){case 0:return this._channel?(n=this._channel.codec.encodeSetRTCState(t),r=new oo(fo[fo.rtcUserState],n,e),[4,this._channel.send(r)]):[2,q.RC_NET_CHANNEL_INVALID];case 1:return[2,i.sent().code]}}))}))},t.prototype.getRTCUserInfo=function(e){return I(this,void 0,void 0,(function(){return _(this,(function(e){throw new Error("Method not implemented.")}))}))},t.prototype.getRTCUserList=function(e){if(!this._channel)return Promise.resolve({code:q.RC_NET_CHANNEL_INVALID});var t=this._channel.codec.encodeGetRTCRoomInfo(),n=new oo(fo[fo.rtcUList],t,e);return this._channel.send(n,In)},t.prototype.joinLivingRoomAsAudience=function(e,t,n){return void 0===t&&(t=me.LIVE),I(this,void 0,void 0,(function(){var r,i,o,s,a,c,u,l;return _(this,(function(f){switch(f.label){case 0:return this._channel?(r=this._channel.codec.encodeJoinRTCRoom(t,n),i=new oo(fo[fo.viewerJoinR],r,e),[4,this._channel.send(i,jr)]):[2,{code:q.RC_NET_CHANNEL_INVALID}];case 1:return o=f.sent(),s=o.code,a=o.data,s!==q.SUCCESS?[2,{code:s}]:(u=(c=a).rtcToken,l=c.entries,[2,{code:s,data:{token:u,kvEntries:l}}])}}))}))},t.prototype.quitLivingRoomAsAudience=function(e){return I(this,void 0,void 0,(function(){var t,n,r;return _(this,(function(i){switch(i.label){case 0:return this._channel?(t=this._channel.codec.encodeQuitRTCRoom(),n=new oo(fo[fo.viewerExitR],t,e),[4,this._channel.send(n)]):[2,q.RC_NET_CHANNEL_INVALID];case 1:return r=i.sent().code,this._rtcKVManager.reset(),[2,r]}}))}))},t.prototype.rtcIdentityChange=function(e,t,n){return I(this,void 0,void 0,(function(){var r,i,o,s,a;return _(this,(function(c){switch(c.label){case 0:return this._channel?(r=this._channel.codec.encodeIdentityChangeInfo(t,n),i=new oo(fo[fo.rtcIdentityChange],r,e),[4,this._channel.send(i,In)]):[2,{code:q.RC_NET_CHANNEL_INVALID}];case 1:return o=c.sent(),s=o.code,a=o.data,s!==q.SUCCESS?[2,{code:s}]:[2,{code:s,data:a}]}}))}))},t.prototype.pullRTCRoomEntry=function(e,t){return I(this,void 0,void 0,(function(){var t,n,r,i,o,s,a,c,u;return _(this,(function(l){switch(l.label){case 0:return n=(t=this)._channel,r=t.currentUserId,n?(ut.info("audience in room start pull KV"),i=n.codec.encodePullRTCRoomKV(e,0),o=new oo(fo[fo.rtcPullKv],i,r),[4,n.send(o,Ur)]):[2,{code:q.RC_NET_CHANNEL_INVALID}];case 1:return s=l.sent(),a=s.code,c=s.data,ut.info("audience in room end pull KV, code: ".concat(a,", data: ").concat(JSON.stringify(c||{}))),a===q.SUCCESS?(u=c.kvEntries,this._watcher.onRTCDataChange(u,e),[2,{code:a,data:c}]):[2,{code:a}]}}))}))},t.prototype.getRTCJoinedUserInfo=function(e){return I(this,void 0,void 0,(function(){var t,n,r,i,o,s,a,c;return _(this,(function(u){switch(u.label){case 0:return n=(t=this)._channel,r=t.currentUserId,n?(i=n.codec.encodeQueryUserJoinedInfo(e),o=new oo(fo[fo.rtcQueryJoined],i,r),[4,n.send(o,Pr)]):[2,{code:q.RC_NET_CHANNEL_INVALID}];case 1:return s=u.sent(),a=s.code,c=s.data,a===q.SUCCESS?[2,{code:a,data:c}]:[2,{code:a}]}}))}))},t.prototype.getDeviceId=function(){return Xe(this.runtime)},t.prototype.requestRoomPK=function(e){return I(this,void 0,void 0,(function(){var t,n,r;return _(this,(function(i){switch(i.label){case 0:return this._channel?(t=this._channel.codec.encodeRequestRoomPK(e),n=new oo(fo[fo.rtcInvite],t,e.roomId),[4,this._channel.send(n)]):[2,q.RC_NET_CHANNEL_INVALID];case 1:return r=i.sent().code,this._rtcKVManager.reset(),[2,r]}}))}))},t.prototype.cancelRoomPK=function(e){return I(this,void 0,void 0,(function(){var t,n,r;return _(this,(function(i){switch(i.label){case 0:return this._channel?(t=this._channel.codec.encodeCancelRoomPK(e),n=new oo(fo[fo.rtcCancelInvite],t,e.roomId),[4,this._channel.send(n)]):[2,q.RC_NET_CHANNEL_INVALID];case 1:return r=i.sent().code,this._rtcKVManager.reset(),[2,r]}}))}))},t.prototype.responseRoomPK=function(e){return I(this,void 0,void 0,(function(){var t,n,r;return _(this,(function(i){switch(i.label){case 0:return this._channel?(t=this._channel.codec.encodeResponseRoomPK(e),n=new oo(fo[fo.rtcInviteAnswer],t,e.roomId),[4,this._channel.send(n)]):[2,q.RC_NET_CHANNEL_INVALID];case 1:return r=i.sent().code,this._rtcKVManager.reset(),[2,r]}}))}))},t.prototype.endRoomPK=function(e){return I(this,void 0,void 0,(function(){var t,n,r;return _(this,(function(i){switch(i.label){case 0:return this._channel?(t=this._channel.codec.encodeEndRoomPK(e),n=new oo(fo[fo.rtcEndInvite],t,e.roomId),[4,this._channel.send(n)]):[2,q.RC_NET_CHANNEL_INVALID];case 1:return r=i.sent().code,this._rtcKVManager.reset(),[2,r]}}))}))},t.prototype.bindRTCRoomForChatroom=function(e){return I(this,void 0,void 0,(function(){var t,n,r,i;return _(this,(function(o){switch(o.label){case 0:return this._channel?(t=e.chatRoomId,n=this._channel.codec.encodebindRTCRoomForChatroom(e),r=new oo(fo[fo.setRtcRoomId],n,t),[4,this._channel.send(r)]):[2,q.RC_NET_CHANNEL_INVALID];case 1:return i=o.sent(),[2,i.code]}}))}))},t.prototype.callExtra=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return Promise.resolve({code:q.EXTRA_METHOD_UNDEFINED})},t.prototype.getConversationListWithAllChannel=function(){throw new Error("Method not implemented.")},t.prototype.getConversationListWithAllChannelByPage=function(e,t){throw new Error("Method not implemented.")},t.prototype.clearConversations=function(){throw new Error("Method not implemented.")},t.prototype.setUserStatusListener=function(e,t){throw new Error("Method not implemented.")},t.prototype.setUserStatus=function(e){throw new Error("Method not implemented.")},t.prototype.subscribeUserStatus=function(e){throw new Error("Method not implemented.")},t.prototype.getUserStatus=function(e){throw new Error("Method not implemented.")},t.prototype.addToBlacklist=function(e){throw new Error("Method not implemented.")},t.prototype.removeFromBlacklist=function(e){throw new Error("Method not implemented.")},t.prototype.getBlacklist=function(){throw new Error("Method not implemented.")},t.prototype.getBlacklistStatus=function(e){throw new Error("Method not implemented.")},t.prototype.insertMessage=function(e,t,n){throw new Error("Method not implemented.")},t.prototype.deleteMessages=function(e){throw new Error("Method not implemented.")},t.prototype.deleteMessagesByTimestamp=function(e,t,n,r,i){throw new Error("Method not implemented.")},t.prototype.clearMessages=function(e,t,n){throw new Error("Method not implemented.")},t.prototype.getMessage=function(e){throw new Error("Method not implemented.")},t.prototype.setMessageContent=function(e,t,n){throw new Error("Method not implemented.")},t.prototype.setMessageSearchField=function(e,t,n){throw new Error("Method not implemented.")},t.prototype.searchConversationByContent=function(e,t,n,r){throw new Error("Method not implemented.")},t.prototype.searchMessageByContent=function(e,t,n,r,i,o){throw new Error("Method not implemented.")},t.prototype.getUnreadMentionedMessages=function(e,t){throw new Error("Method not implemented.")},t.prototype.setMessageSentStatus=function(e,t){throw new Error("Method not implemented.")},t.prototype.setMessageReceivedStatus=function(e,t){throw new Error("Method not implemented.")},t.prototype.clearUnreadCountByTimestamp=function(e,t,n,r){throw new Error("Method not implemented.")},t}(_o),es=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return y(t,e),t.prototype.getNaviInfo=function(){return this._context.getInfoFromCache()},t.prototype.joinRTCRoom=function(e,t,n,r,i,o){return this._context.joinRTCRoom(e,t,n,r,i,o)},t.prototype.quitRTCRoom=function(e){return this._context.quitRTCRoom(e)},t.prototype.rtcPing=function(e,t,n){return this._context.rtcPing(e,t,n)},t.prototype.getRTCRoomInfo=function(e){return this._context.getRTCRoomInfo(e)},t.prototype.getRTCUserInfoList=function(e){return this._context.getRTCUserInfoList(e)},t.prototype.getRTCUserInfo=function(e){return this._context.getRTCUserInfo(e)},t.prototype.setRTCUserInfo=function(e,t,n){return this._context.setRTCUserInfo(e,t,n)},t.prototype.removeRTCUserInfo=function(e,t){return this._context.removeRTCUserInfo(e,t)},t.prototype.setRTCData=function(e,t,n,r,i,o){return this._context.setRTCData(e,t,n,r,i,o)},t.prototype.setRTCTotalRes=function(e,t,n,r,i){return this._context.setRTCTotalRes(e,t,n,r,i)},t.prototype.setRTCCDNUris=function(e,t,n){return this._context.setRTCCDNUris(e,t,n)},t.prototype.getRTCData=function(e,t,n,r){return this._context.getRTCData(e,t,n,r)},t.prototype.removeRTCData=function(e,t,n,r,i){return this._context.removeRTCData(e,t,n,r,i)},t.prototype.setRTCOutData=function(e,t,n,r){return this._context.setRTCOutData(e,t,n,r)},t.prototype.getRTCOutData=function(e,t){return this._context.getRTCOutData(e,t)},t.prototype.getRTCToken=function(e,t,n){return this._context.getRTCToken(e,t,n)},t.prototype.setRTCState=function(e,t){return this._context.setRTCState(e,t)},t.prototype.getRTCUserList=function(e){return this._context.getRTCUserList(e)},t.prototype.joinLivingRoomAsAudience=function(e,t,n){return this._context.joinLivingRoomAsAudience(e,t,n)},t.prototype.quitLivingRoomAsAudience=function(e){return this._context.quitLivingRoomAsAudience(e)},t.prototype.rtcIdentityChange=function(e,t,n){return this._context.rtcIdentityChange(e,t,n)},t.prototype.requestRoomPK=function(e){return this._context.requestRoomPK(e)},t.prototype.cancelRoomPK=function(e){return this._context.cancelRoomPK(e)},t.prototype.responseRoomPK=function(e){return this._context.responseRoomPK(e)},t.prototype.endRoomPK=function(e){return this._context.endRoomPK(e)},t}(To);function ts(e){return Object.assign({},e)}var ns,rs=function(){function e(e,t){var n;this._runtime=e,this._token="",this._pluginContextQueue=[],this._pluginInstanseMap={},this.coreVersion="5.3.4",this._versionInfo={},this._typingInfo={},this._isInternalConnected=!1,this._connectionStatus=J.DISCONNECTED,this._canRedirectConnect=!1,this._watcher={message:void 0,batchMessage:void 0,conversationState:void 0,chatroomState:void 0,connectionState:void 0,rtcInnerWatcher:void 0,expansion:void 0,tag:void 0,conversationTagChanged:void 0,pullFinished:void 0,onConnecting:void 0,onConnected:void 0,onDisconnect:void 0,onSuspend:void 0,readReceiptReceived:void 0,messageReceiptRequest:void 0,messageReceiptResponse:void 0,typingState:void 0,messageBlocked:void 0,ultraGroupEnable:void 0,operateStatus:void 0,ultraGroupMessageExpansionUpdated:void 0,ultraGroupMessageModified:void 0,ultraGroupMessageRecalled:void 0},this._typingInternalTimer=-1,this._typingExpireTime=2e3,this._typingChangedList=[],this.getChatRoomHistoryMessages=this.getChatroomHistoryMessages,this._options=Object.assign({},t),this.appkey=this._options.appkey,this.apiVersion=this._options.apiVersion,this.apiPKGName=this._options.apiPKGName||"",this._options.typingExpireTime&&(this._options.typingExpireTime<2e3?this._typingExpireTime=2e3:this._options.typingExpireTime>6e3?this._typingExpireTime=6e3:this._typingExpireTime=this._options.typingExpireTime),this._options.navigators=this._options.navigators.filter((function(e){return/^https?:\/\//.test(e)})),this._options.navigators=this._options.navigators.map((function(e){return e.replace(/\/$/g,"")})),0===this._options.navigators.length&&(n=this._options.navigators).push.apply(n,s),Bi({bundleId:this.apiPKGName}),function(e){Fe=nt.init(m(m({},e),{sessionId:Re})),at()}({runtime:this._runtime,logSwitch:1,logPolicy:JSON.parse("{}"),appkey:this.appkey,version:this.apiVersion});var r={status:this._connectionStatusListener.bind(this),batchMessage:this._batchMessageReceiver.bind(this),chatroom:this._chatroomInfoListener.bind(this),conversation:this._conversationInfoListener.bind(this),expansion:this._expansionInfoListener.bind(this),tag:this._tagListener.bind(this),conversationTag:this._conversationTagListener.bind(this),onRTCDataChange:this._rtcDataChange.bind(this),pullFinished:this._pullFinishedListener.bind(this),ultraGroupEnable:this._ultraGroupEnableListener.bind(this),operateStatus:this._operateStatusListener.bind(this),ultraGroupMessageExpansionUpdated:this._ultraGroupMessageExpansionUpdatedListener.bind(this),ultraGroupMessageModified:this._ultraGroupMessageModifiedListener.bind(this),ultraGroupMessageRecalled:this._ultraGroupMessageRecalledListener.bind(this)};this._engine=xt()?new RCCppEngine(e,r,this._options):new Xo(e,r,this._options)}return e.init=function(t,n){return Ye({customLogPrint:n.logStdout,localLogLevel:n.logLevel}),ut.setLogLevel(n.logLevel),ut.setLogStdout(n.logStdout),$e(he.L_INIT_O,{appkey:n.appkey,navigators:n.navigators,connectionType:n.connectionType,logLevel:n.logLevel,typingExpireTime:n.typingExpireTime}),!1===n.indexDBSwitch&&(be.indexDBSwitch=!1),$e(he.L_IMSDK_VER_O,{commitId:"4a1b7760381616fa6a6cb2e0200d6a0dc56f90a1",version:"5.3.4"}),ut.debug("APIContext.init =>",n.appkey,n.navigators),this._context?(ut.error("Repeat initialize!"),this._context):(ut.warn("RCEngine Commit:","4a1b7760381616fa6a6cb2e0200d6a0dc56f90a1"),this._context=new e(t,n),this._context)},e.destroy=function(){this._context&&(this._context._destroy(),this._context=void 0)},e.prototype.install=function(e,t){if(this._pluginInstanseMap[e.tag])return ut.warn("Repeat install plugin: ".concat(e.tag)),this._pluginInstanseMap[e.tag];var n="RCRTC"===e.tag?new es(this):new To(this),r=null;try{if(!e.verify(this._runtime))return null;r=e.setup(n,this._runtime,t)}catch(e){ut.error("install plugin error!\n",e)}return["RCRTC","RCCall"].includes(e.tag)&&e.version&&e.name&&(this._versionInfo[e.name]=e.version),r&&this._pluginContextQueue.push(n),r&&(this._pluginInstanseMap[e.tag]=r),r},e.prototype._handleRedirect=function(){return I(this,void 0,void 0,(function(){var e,t=this;return _(this,(function(n){switch(n.label){case 0:return ut.debug("_handleRedirct",this._token),[4,this.connect(this._token,!0)];case 1:return(e=n.sent().code)!==q.SUCCESS&&this._canRedirectConnect&&(this._handleSuspend(e),setTimeout((function(){t._handleRedirect()}),5e3)),[2]}}))}))},e.prototype._connectionStatusListener=function(e){var t;return I(this,void 0,void 0,(function(){return _(this,(function(n){return $e(he.L_CONNECT_S,{status:e}),[J.REDIRECT,J.BLOCKED,J.KICKED_OFFLINE_BY_OTHER_CLIENT,J.DISCONNECT_BY_SERVER,J.DISCONNECTED,J.NETWORK_UNAVAILABLE].includes(e)&&(Yi(lo.IM_CONNECTION_DURATION,{endTime:(new Date).getTime(),code:e}),function(e){I(this,void 0,void 0,(function(){var t,n,r,i,o,s,a,c,u;return _(this,(function(l){switch(l.label){case 0:t=lo.IM_CONNECTION_DURATION,n=Vi().bundleId,r=Hi(t),i=r.startTime,o=r.endTime,s=r.code,a=ki.UNKONWN,l.label=1;case 1:return l.trys.push([1,3,,4]),[4,e.getNetworkType()];case 2:return a=l.sent(),[3,4];case 3:return c=l.sent(),ut.debug(c.message),[3,4];case 4:return u=0,L(i)&&L(o)&&o>i&&i&&(u=o-i),Pi(t,{bid:n,cod:s,dur:u,net:a}),[2]}}))}))}(this._runtime)),this._connectionStatus=e,e===J.REDIRECT?(this._canRedirectConnect=!0,this._handleSuspend(e),this._handleRedirect()):e===J.BLOCKED||e===J.KICKED_OFFLINE_BY_OTHER_CLIENT||e===J.DISCONNECT_BY_SERVER?(this._canRedirectConnect=!1,this._handleDisconnect(e)):e===J.CONNECTING?this._handleConnecting():e===J.CONNECTED?this._handleConnected():e===J.DISCONNECTED?this._handleDisconnect(e):e===J.NETWORK_UNAVAILABLE&&this._handleSuspend(e),(null===(t=this._watcher.rtcInnerWatcher)||void 0===t?void 0:t.status)&&this._watcher.rtcInnerWatcher.status(e),this._pluginContextQueue.forEach((function(t){t.onconnectionstatechange&&t.onconnectionstatechange(e)})),this._watcher.connectionState&&this._watcher.connectionState(e),[2]}))}))},e.prototype._handleConnecting=function(){this._watcher.onConnecting&&this._watcher.onConnecting()},e.prototype._handleConnected=function(){this._watcher.onConnected&&this._watcher.onConnected()},e.prototype._handleDisconnect=function(e){this._watcher.onDisconnect&&this._watcher.onDisconnect(e)},e.prototype._handleSuspend=function(e){this._watcher.onSuspend&&this._watcher.onSuspend(e)},e.prototype._messageReceiver=function(e,t,n){var r,i,o;if((e.conversationType===b.RTC_ROOM||Object.prototype.hasOwnProperty.call(Ee,e.messageType))&&this._watcher.rtcInnerWatcher&&this._watcher.rtcInnerWatcher.message)this._watcher.rtcInnerWatcher.message(ts(e));else if(-1===["RC:ChrmJoinNtf","RC:ChrmQuitNtf"].indexOf(e.messageType)||"function"!=typeof this._watcher.chatroomState){if("RC:ChrmMemChange"!==e.messageType){if(e.messageType!==te.TYPING_STATUS||(this._addTypingInfo(ts(e)),!this._watcher.typingState))if(e.messageType!==te.LOG_COMMAND||"rongcloudsystem"!==e.senderUserId)if(e.messageType!==te.INTERCEPT){if(!this._pluginContextQueue.some((function(t){if(!t.onmessage)return!1;try{return t.onmessage(ts(e))}catch(e){return ut.error("plugin error =>",e),!1}})))if(this._watcher.message&&this._watcher.message(ts(e),t,n),"RC:ReadNtf"!==e.messageType)if("RC:RRReqMsg"!==e.messageType){if("RC:RRRspMsg"!==e.messageType)return e;var s=null===(o=e.content)||void 0===o?void 0:o.receiptMessageDic,a=this._engine.getCurrentUserId();s&&Array.isArray(s[a])&&"function"==typeof this._watcher.messageReceiptResponse&&this._watcher.messageReceiptResponse({conversationType:e.conversationType,targetId:e.targetId,channelId:e.channelId},e.senderUserId,s[a])}else"function"==typeof this._watcher.messageReceiptRequest&&this._watcher.messageReceiptRequest({conversationType:e.conversationType,targetId:e.targetId,channelId:e.channelId},e.content.messageUId,e.senderUserId);else"function"==typeof this._watcher.readReceiptReceived&&this._watcher.readReceiptReceived({conversationType:e.conversationType,targetId:e.targetId,channelId:e.channelId},e.content.messageUId,e.content.lastMessageSendTime)}else this._MessageBlockedListener({conversationType:e.conversationType,targetId:e.targetId,channelId:e.channelId||"",blockType:e.content.interceptType,blockedMessageUId:e.content.msgUId,extra:e.content.extra});else{var c=e.content,u=c.startTime,l=c.endTime,f=c.platform,h=c.logId,d=c.uri,p=c.packageName,g={startTime:parseInt(u),endTime:parseInt(l),platform:f,logId:h,uri:d,packageName:p};null===(i=nt.getInstance())||void 0===i||i.reportFullLog(g)}}else if("function"==typeof this._watcher.chatroomState){var v={};Array.isArray(e.content.userList)&&e.content.userList.forEach((function(e){v[e.userId]=e.status})),this._watcher.chatroomState({userChange:{users:v,chatroomId:e.targetId}})}}else this._watcher.chatroomState({userChange:{users:(r={},r[e.senderUserId]="RC:ChrmQuitNtf"===e.messageType?ve.QUIT:ve.JOIN,r),chatroomId:e.targetId}})},e.prototype._batchMessageReceiver=function(e,t,n){var r=this,i=[];e.forEach((function(e){var o=r._messageReceiver(e,t,n);o&&i.push(o)})),i.length&&this._watcher.batchMessage&&this._watcher.batchMessage(i)},e.prototype._chatroomInfoListener=function(e){this._watcher.chatroomState&&this._watcher.chatroomState(e)},e.prototype._conversationInfoListener=function(e){this._watcher.conversationState&&this._watcher.conversationState(e)},e.prototype._expansionInfoListener=function(e){this._watcher.expansion&&this._watcher.expansion(e)},e.prototype._tagListener=function(){this._watcher.tag&&this._watcher.tag()},e.prototype._conversationTagListener=function(){this._watcher.conversationTagChanged&&this._watcher.conversationTagChanged()},e.prototype._typingStatusListener=function(e){this._watcher.typingState&&this._watcher.typingState(e)},e.prototype._pullFinishedListener=function(){this._watcher.pullFinished&&this._watcher.pullFinished()},e.prototype._MessageBlockedListener=function(e){this._watcher.messageBlocked&&this._watcher.messageBlocked(e)},e.prototype._ultraGroupEnableListener=function(e){this._watcher.ultraGroupEnable&&this._watcher.ultraGroupEnable(e)},e.prototype._operateStatusListener=function(e){this._watcher.operateStatus&&this._watcher.operateStatus(e)},e.prototype._ultraGroupMessageExpansionUpdatedListener=function(e){this._watcher.ultraGroupMessageExpansionUpdated&&this._watcher.ultraGroupMessageExpansionUpdated(e)},e.prototype._ultraGroupMessageModifiedListener=function(e){this._watcher.ultraGroupMessageModified&&this._watcher.ultraGroupMessageModified(e)},e.prototype._ultraGroupMessageRecalledListener=function(e){this._watcher.ultraGroupMessageRecalled&&this._watcher.ultraGroupMessageRecalled(e)},e.prototype._rtcDataChange=function(e,t){this._pluginContextQueue.forEach((function(n){n.onrtcdatachange&&n.onrtcdatachange(e,t)}))},e.prototype.assignWatcher=function(e){var t=this;Object.keys(this._watcher).forEach((function(n){if(Object.prototype.hasOwnProperty.call(e,n)){var r=e[n];t._watcher[n]=z(r)||k(r)?r:void 0}}))},e.prototype.resetWatcher=function(){var e=this;Object.keys(this._watcher).forEach((function(t){e._watcher[t]=void 0}))},e.prototype._addTypingInfo=function(e){var t=e.senderUserId,n=e.conversationType,r=e.targetId,i=e.content,o=e.channelId,s=i.typingContentType,a=o||"",c="".concat(n,"#").concat(r,"#").concat(a);this._typingInfo[c]||(this._typingInfo[c]=[]);var u=this._typingInfo[c].findIndex((function(e){return e.userId===t}));u>=0&&this._typingInfo[c][u].messageType===s?this._typingInfo[c][u].timestamp=Date.now():(u>=0&&this._typingInfo[c].splice(u,1),this._typingInfo[c].push({userId:t,messageType:s,timestamp:Date.now()}),this._typingChangedList.includes(c)||this._typingChangedList.push(c),this._startCheckTypingInfo())},e.prototype._startCheckTypingInfo=function(){var e=this;-1===this._typingInternalTimer&&0!==Object.keys(this._typingInfo).length&&(this._typingInternalTimer=setInterval((function(){for(var t in e._typingInfo){var n=e._typingInfo[t].length;e._typingInfo[t]=e._typingInfo[t].filter((function(t){return Date.now()-t.timestamp<e._typingExpireTime})),e._typingInfo[t].length===n||e._typingChangedList.includes(t)||e._typingChangedList.push(t),0===e._typingInfo[t].length&&delete e._typingInfo[t]}if(e._typingChangedList.length>0){var r=e._typingChangedList.map((function(t){return{conversationType:Number(t.split("#")[0]),targetId:t.split("#")[1],channelId:t.split("#")[2],list:e._typingInfo[t]||[]}}));e._typingStatusListener(r),e._typingChangedList=[]}0===Object.keys(e._typingInfo).length&&(clearInterval(e._typingInternalTimer),e._typingInternalTimer=-1)}),500))},e.prototype.getConnectedTime=function(){return this._engine.getConnectedTime()},e.prototype.getServerTime=function(){return this._engine.getServerTime()},e.prototype.getDeviceId=function(){return this._engine.getDeviceId()},e.prototype.getCurrentUserId=function(){return this._engine.getCurrentUserId()},e.prototype.getConnectionStatus=function(){return this._connectionStatus},Object.defineProperty(e.prototype,"token",{get:function(){return this._token},enumerable:!1,configurable:!0}),e.prototype.connect=function(e,t,n,r){return void 0===t&&(t=!1),I(this,void 0,void 0,(function(){var i,o,s,a,c,u,l;return _(this,(function(f){switch(f.label){case 0:return this._connectionStatus===J.CONNECTED?[2,{code:q.SUCCESS,userId:this._engine.getCurrentUserId()}]:this._connectionStatus===J.CONNECTING?[2,{code:q.BIZ_ERROR_CONNECTING}]:"string"!=typeof e||0===e.length?[2,{code:q.RC_CONN_USER_OR_PASSWD_ERROR}]:(this._token=e,i=e.split("@"),o=i[1],s=o?o.split(";").map((function(e){return/^https?:/.test(e)?e:"https://".concat(e)})):[],$e(he.L_GET_NAVI_T,{token:e,uris:s},{traceId:r}),[4,this._engine.getNaviInfo(this._getTokenWithoutNavi(),s,t,this._options.checkCA)]);case 1:return(a=f.sent())?($e(he.L_GET_NAVI_R,{code:q.SUCCESS,naviInfo:a},{traceId:r}),$e(he.L_ENV_S,{isEnterprise:1===(null==a?void 0:a.type)},{traceId:r}),1===(null==a?void 0:a.type)?[2,{code:q.PACKAGE_ENVIRONMENT_ERROR}]:(c=pt.getInfo(),$e(he.L_CONNECT_T,{token:e,refreshNavi:t,reconnectKickEnable:n},{traceId:r}),[4,this._engine.connect(this._getTokenWithoutNavi(),a,n,r)])):(Ke(he.L_GET_NAVI_R,{code:q.RC_NAVI_RESOURCE_ERROR},{traceId:r}),[2,{code:q.RC_NAVI_RESOURCE_ERROR}]);case 2:return u=f.sent(),(u===q.SUCCESS?$e:Ke)(he.L_CONNECT_R,{code:u,userId:this._engine.getCurrentUserId()},{traceId:r}),u!==X.REDIRECT?[3,4]:(this._connectionStatus=J.REDIRECT,[4,this.connect(e,!0)]);case 3:return[2,f.sent()];case 4:return l=this._engine.getCurrentUserId(),u===q.SUCCESS&&(Yi(lo.IM_CONNECTION_DURATION,{startTime:(new Date).getTime()},!0),ut.info("connect success, userId: ".concat(l)),1!==(null==a?void 0:a.type)&&this._engine.reportSDKInfo&&this._engine.reportSDKInfo(c),ot({runtime:this._runtime,logSwitch:(null==a?void 0:a.logSwitch)||0,logPolicy:JSON.parse((null==a?void 0:a.logPolicy)||"{}"),appkey:this.appkey,version:this.apiVersion,userId:l}),Ye({userId:l}),this._isInternalConnected=!0),u!==q.SUCCESS||xt()||1===a.openUS&&this._pullUserSettings(),u!==q.SUCCESS&&(this._connectionStatus=J.CONNECTION_CLOSED),[2,{code:u,userId:l}]}}))}))},e.prototype._pullUserSettings=function(){return I(this,void 0,void 0,(function(){return _(this,(function(e){return[2]}))}))},e.prototype.disconnect=function(){var e;return this._isInternalConnected=!1,clearInterval(this._typingInternalTimer),this._typingInternalTimer=-1,this._typingInfo={},null===(e=nt.getInstance())||void 0===e||e.distroy(),Ye({userId:""}),this._engine.disconnect(),this._pluginContextQueue.forEach((function(e){if(e.ondisconnect)try{e.ondisconnect()}catch(e){ut.error("plugin error =>",e)}})),Promise.resolve()},e.prototype.reconnect=function(e){return this._isInternalConnected?Promise.resolve({code:q.CAN_NOT_RECONNECT}):this.connect(this._getTokenWithoutNavi(),!1,e)},e.prototype._getTokenWithoutNavi=function(){return this._token.replace(/@.+$/,"@")},e.prototype.getInfoFromCache=function(){return this._engine.getInfoFromCache(this._getTokenWithoutNavi())},e.prototype.registerMessageType=function(e,t,n,r,i){void 0===r&&(r=[]),void 0===i&&(i=!1),this._engine.registerMessageType(e,t,n,r,i)},e.prototype.sendMessage=function(e,t,n,r,i){if(e!==b.ULTRA_GROUP){var o=this.getInfoFromCache();if(1===((null==o?void 0:o.grpRRVer)||0)&&n.messageType===te.READ_RECEIPT_RESPONSE)return Promise.resolve({code:q.READ_RECEIPT_ERROR})}var s=n.canIncludeExpansion,a=void 0!==s&&s,c=n.expansion;if(a){var u=Q(c),l=u.isIllgalEx,f=u.isExKeyOrValLengthExceedLimit;if(u.isExceedLimit||f)return Promise.resolve({code:q.EXPANSION_LIMIT_EXCEET});if(l)return Promise.resolve({code:q.BIZ_ERROR_INVALID_PARAMETER})}var h=JSON.stringify(n.content);return E(h)>131072?Promise.resolve({code:q.RC_MSG_CONTENT_EXCEED_LIMIT}):e===b.ULTRA_GROUP?this._engine.sendUltraMessage(t,n,i):this._engine.sendMessage(e,t,n,r,i)},e.prototype.sendExpansionMessage=function(e){return I(this,void 0,void 0,(function(){var t,n,r,i,o,s,a,c,u,l,f;return _(this,(function(h){switch(h.label){case 0:return t=e.channelId,n=e.conversationType,r=e.targetId,i=e.messageUId,o=e.keys,s=e.expansion,a=e.removeAll,e.canIncludeExpansion?(c=Q(s),u=c.isIllgalEx,l=c.isExKeyOrValLengthExceedLimit,c.isExceedLimit||l?[2,Promise.resolve({code:q.EXPANSION_LIMIT_EXCEET})]:u?[2,Promise.resolve({code:q.BIZ_ERROR_INVALID_PARAMETER})]:(f={mid:i},s&&(f.put=s),o&&(f.del=o),a&&(f.removeAll=1),[4,this._engine.sendMessage(n,r,{content:f,messageType:te.EXPANSION_NOTIFY,channelId:t})])):[2,{code:q.MESSAGE_KV_NOT_SUPPORT}];case 1:return[2,{code:h.sent().code}]}}))}))},e.prototype.sendReadReceiptMessage=function(e,t,n){return I(this,void 0,void 0,(function(){var r;return _(this,(function(i){return r=this.getInfoFromCache(),0===((null==r?void 0:r.grpRRVer)||0)?[2,{code:q.READ_RECEIPT_ERROR,data:"The read receipt switch is not on, please call the sendMessage method!"}]:[2,this._engine.sendReadReceiptMessage(e,t,n)]}))}))},e.prototype.getMessageReader=function(e,t,n){return I(this,void 0,void 0,(function(){var r;return _(this,(function(i){return r=this.getInfoFromCache(),0===((null==r?void 0:r.grpRRVer)||0)?[2,{code:q.READ_RECEIPT_ERROR}]:[2,this._engine.getMessageReader(e,t,n)]}))}))},e.prototype._destroy=function(){var e;this._isInternalConnected=!1,this._watcher={batchMessage:void 0,message:void 0,conversationState:void 0,chatroomState:void 0,connectionState:void 0,rtcInnerWatcher:void 0,expansion:void 0,tag:void 0,conversationTagChanged:void 0,typingState:void 0,pullFinished:void 0,onConnecting:void 0,onConnected:void 0,onDisconnect:void 0,onSuspend:void 0},this._engine.disconnect(),this._pluginContextQueue.forEach((function(e){if(e.ondestroy)try{e.ondestroy()}catch(e){ut.error("plugin error =>",e)}})),this._pluginContextQueue.length=0,this._pluginInstanseMap={},null===(e=nt.getInstance())||void 0===e||e.distroy(),Ye({userId:""})},e.prototype.getHistoryMessage=function(e,t,n,r,i,o,s,a){if(void 0===n&&(n=0),void 0===r&&(r=20),void 0===i&&(i=0),void 0===o&&(o=""),void 0===s&&(s=""),e===b.ULTRA_GROUP){var c={timestamp:n,count:r,order:i,channelId:o};return this._engine.getUltraHistoryMsg(t,c,a)}return this._engine.getHistoryMessage(e,t,n,r,i,o,s||"",a)},e.prototype.getConversationList=function(e,t,n,r,i){if(void 0===e&&(e=300),void 0===i&&(i=""),t===b.ULTRA_GROUP){var o=q.METHOD_NOT_SUPPORT;return Promise.resolve({code:o,msg:q[o]})}return this._engine.getConversationList(e,t,n,r,i)},e.prototype.getConversation=function(e,t,n){return this._engine.getConversation(e,t,n)},e.prototype.removeConversation=function(e,t,n){return void 0===n&&(n=""),e===b.ULTRA_GROUP?Promise.resolve(q.METHOD_NOT_SUPPORT):this._engine.removeConversation(e,t,n)},e.prototype.getUltraGroupList=function(){return this._engine.getUltraGroupList()},e.prototype.getBlockUltraGroupList=function(){return this._engine.getBlockUltraGroupList()},e.prototype.getTopUltraGroupList=function(){return this._engine.getTopUltraGroupList()},e.prototype.clearUnreadCount=function(e,t,n){return void 0===n&&(n=""),e===b.ULTRA_GROUP?this._engine.clearUltraUnreadcount(t,n):this._engine.clearConversationUnreadCount(e,t,n)},e.prototype.clearAllUnreadCount=function(){return this._engine.clearAllUnreadCount()},e.prototype.getUnreadCount=function(e,t,n){return void 0===n&&(n=""),this._engine.getConversationUnreadCount(e,t,n)},e.prototype.getTotalUnreadCount=function(e,t,n){if(t&&t.includes(b.ULTRA_GROUP)){var r=q.METHOD_NOT_SUPPORT;return Promise.resolve({code:r,msg:q[r]})}return this._engine.getAllConversationUnreadCount(e,t&&t.length>0?t:[b.PRIVATE,b.GROUP,b.SYSTEM,b.PUBLIC_SERVICE],!!n)},e.prototype.getFirstUnreadMessage=function(e,t,n){return void 0===n&&(n=""),this._engine.getFirstUnreadMessage(e,t,n)},e.prototype.setConversationNotificationLevel=function(e,t,n,r){return void 0===r&&(r=""),I(this,void 0,void 0,(function(){var i;return _(this,(function(o){return i=[{conversationType:e,targetId:t,notificationLevel:n,channelId:r}],[2,this._engine.batchSetConversationStatus(i)]}))}))},e.prototype.setConversationStatus=function(e,t,n,r,i){if(void 0===i&&(i=""),e===b.ULTRA_GROUP&&void 0!==n)return Promise.resolve(q.METHOD_NOT_SUPPORT);var o=[{conversationType:e,targetId:t,isTop:n,notificationStatus:r,channelId:i}];return this._engine.batchSetConversationStatus(o)},e.prototype.saveConversationMessageDraft=function(e,t,n,r){return void 0===r&&(r=""),this._engine.saveConversationMessageDraft(e,t,n,r)},e.prototype.getConversationMessageDraft=function(e,t,n){return void 0===n&&(n=""),this._engine.getConversationMessageDraft(e,t,n)},e.prototype.clearConversationMessageDraft=function(e,t,n){return void 0===n&&(n=""),this._engine.clearConversationMessageDraft(e,t,n)},e.prototype.recallMessage=function(e,t,n,r,i){return this._engine.recallMsg(e,t,n,r,i)},e.prototype.deleteRemoteMessage=function(e,t,n,r){return void 0===r&&(r=""),e===b.ULTRA_GROUP?Promise.resolve(q.METHOD_NOT_SUPPORT):this._engine.deleteRemoteMessage(e,t,n,r)},e.prototype.deleteRemoteMessageByTimestamp=function(e,t,n,r){return void 0===r&&(r=""),this._engine.deleteRemoteMessageByTimestamp(e,t,n,r)},e.prototype.joinChatroom=function(e,t,n){return void 0===t&&(t=10),this._engine.joinChatroom(e,t,n)},e.prototype.joinExistChatroom=function(e,t,n){return void 0===t&&(t=10),this._engine.joinExistChatroom(e,t,n)},e.prototype.quitChatroom=function(e){return this._engine.quitChatroom(e)},e.prototype.getChatroomInfo=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=0),this._engine.getChatroomInfo(e,t,n)},e.prototype.setChatroomEntry=function(e,t){var n=t.key,r=t.value;return bt(n)&&wt(r)?this._engine.setChatroomEntry(e,t):Promise.resolve(q.BIZ_ERROR_INVALID_PARAMETER)},e.prototype.setChatroomEntries=function(e,t){for(var n=0;n<t.entries.length;n++){var r=t.entries[n],i=r.key,o=r.value;if(!bt(i)||!wt(o))return Promise.resolve({code:q.BIZ_ERROR_INVALID_PARAMETER})}var s=m(m({},t),{isOverwrite:t.isForce});return this._engine.setChatroomEntries(e,s)},e.prototype.forceSetChatroomEntry=function(e,t){var n=t.key,r=t.value;return bt(n)&&wt(r)?this._engine.forceSetChatroomEntry(e,t):Promise.resolve(q.BIZ_ERROR_INVALID_PARAMETER)},e.prototype.removeChatroomEntry=function(e,t){var n=t.key;return bt(n)?this._engine.removeChatroomEntry(e,t):Promise.resolve(q.BIZ_ERROR_INVALID_PARAMETER)},e.prototype.removeChatroomEntries=function(e,t){for(var n=0;n<t.entries.length;n++){var r=t.entries[n].key;if(!bt(r))return Promise.resolve({code:q.BIZ_ERROR_INVALID_PARAMETER})}return this._engine.removeChatroomEntries(e,t)},e.prototype.forceRemoveChatroomEntry=function(e,t){var n=t.key;return bt(n)?this._engine.forceRemoveChatroomEntry(e,t):Promise.resolve(q.BIZ_ERROR_INVALID_PARAMETER)},e.prototype.getChatroomEntry=function(e,t){return this._engine.getChatroomEntry(e,t)},e.prototype.getAllChatroomEntries=function(e){return this._engine.getAllChatroomEntry(e)},e.prototype.getChatroomHistoryMessages=function(e,t,n,r){return void 0===t&&(t=20),void 0===n&&(n=0),void 0===r&&(r=0),this._engine.getChatroomHistoryMessages(e,r,t,n)},e.prototype.getFileToken=function(e,t,n,r){return I(this,void 0,void 0,(function(){var i,o,s,a,c,u,l;return _(this,(function(f){switch(f.label){case 0:return i=this.getInfoFromCache(),o=(null==i?void 0:i.bosAddr)||"",s=(null==i?void 0:i.uploadServer)||"",a=(null==i?void 0:i.ossConfig)||"",[4,this._engine.getFileToken(e,t,n,r)];case 1:return c=f.sent(),u=c.code,l=c.data,u===q.SUCCESS&&l?[2,Promise.resolve(Object.assign(l,{bos:o,qiniu:s,ossConfig:a}))]:[2,Promise.reject(u)]}}))}))},e.prototype.getFileUrl=function(e,t,n,r,i){return void 0===i&&(i=ue.QINIU),I(this,void 0,void 0,(function(){var o,s,a;return _(this,(function(c){switch(c.label){case 0:return(null==r?void 0:r.isBosRes)?[2,Promise.resolve(r)]:[4,this._engine.getFileUrl(e,i,t,n)];case 1:return o=c.sent(),s=o.code,a=o.data,s===q.SUCCESS?[2,Promise.resolve(a)]:[2,Promise.reject(s)]}}))}))},e.prototype.createTag=function(e){return I(this,void 0,void 0,(function(){return _(this,(function(t){return[2,this._engine.createTag(e)]}))}))},e.prototype.removeTag=function(e){return I(this,void 0,void 0,(function(){return _(this,(function(t){return[2,this._engine.removeTag(e)]}))}))},e.prototype.updateTag=function(e){return I(this,void 0,void 0,(function(){return _(this,(function(t){return[2,this._engine.updateTag(e)]}))}))},e.prototype.getTagList=function(){return I(this,void 0,void 0,(function(){return _(this,(function(e){return[2,this._engine.getTagList()]}))}))},e.prototype.addTagForConversations=function(e,t){return I(this,void 0,void 0,(function(){return _(this,(function(n){return t.length>1e3?[2,Promise.reject(q.CONVER_OUT_LIMIT_ERROR)]:[2,this._engine.addTagForConversations(e,t)]}))}))},e.prototype.removeTagForConversations=function(e,t){return I(this,void 0,void 0,(function(){return _(this,(function(n){return[2,this._engine.removeTagForConversations(e,t)]}))}))},e.prototype.removeTagsForConversation=function(e,t){return I(this,void 0,void 0,(function(){return _(this,(function(n){return[2,this._engine.removeTagsForConversation(e,t)]}))}))},e.prototype.getConversationListByTag=function(e,t,n,r){return I(this,void 0,void 0,(function(){return _(this,(function(i){return[2,this._engine.getConversationListByTag(e,t,n,r)]}))}))},e.prototype.getUnreadCountByTag=function(e,t){return I(this,void 0,void 0,(function(){return _(this,(function(n){return[2,this._engine.getUnreadCountByTag(e,t)]}))}))},e.prototype.setConversationStatusInTag=function(e,t,n){return I(this,void 0,void 0,(function(){return _(this,(function(r){return[2,this._engine.setConversationStatusInTag(e,t,n)]}))}))},e.prototype.getTagsForConversation=function(e){return I(this,void 0,void 0,(function(){return _(this,(function(t){return[2,this._engine.getTagsForConversation(e)]}))}))},e.prototype.getBlockConversationList=function(){return this._engine.getBlockConversationList()},e.prototype.getTopConversationList=function(){return this._engine.getTopConversationList()},e.prototype.getUnreadMentionedCount=function(e){return this._engine.getUnreadMentionedCount(e)},e.prototype.getAllUnreadMentionedCount=function(){return this._engine.getAllUnreadMentionedCount()},e.prototype.sendUltraGroupTypingStatus=function(e){if(e.conversationType!==b.ULTRA_GROUP){var t=q.METHOD_ONLY_SUPPORT_ULTRA_GROUP;return Promise.resolve({code:t,msg:q[t]})}return this._engine.sendUltraGroupTypingStatus(e)},e.prototype.getUltraGroupMessageListByMessageUId=function(e){return this._engine.getUltraGroupMessageListByMessageUId(e)},e.prototype.expandUltraMessage=function(e){return I(this,void 0,void 0,(function(){var t,n,r,i,o,s,a;return _(this,(function(c){switch(c.label){case 0:return t=e.conversationType,n=e.expansion,r=e.canIncludeExpansion,t!==b.ULTRA_GROUP?[2,{code:i=q.METHOD_ONLY_SUPPORT_ULTRA_GROUP,msg:q[i]}]:r?(o=Q(n),s=o.isIllgalEx,a=o.isExKeyOrValLengthExceedLimit,o.isExceedLimit||a?[2,{code:q.EXPANSION_LIMIT_EXCEET}]:s?[2,{code:q.BIZ_ERROR_INVALID_PARAMETER}]:[4,this._engine.expandUltraMessage(e)]):[2,{code:q.MESSAGE_KV_NOT_SUPPORT}];case 1:return[2,{code:c.sent().code}]}}))}))},e.prototype.modifyMessage=function(e){return I(this,void 0,void 0,(function(){var t;return _(this,(function(n){switch(n.label){case 0:return e.conversationType!==b.ULTRA_GROUP?[2,{code:t=q.METHOD_ONLY_SUPPORT_ULTRA_GROUP,msg:q[t]}]:[4,this._engine.modifyMessage(e)];case 1:return[2,{code:n.sent().code}]}}))}))},e.prototype.getUltraGroupUnreadMentionedCountByTargetId=function(e){return this._engine.getUltraGroupUnreadMentionedCountByTargetId(e)},e.prototype.getUltraGroupUnreadCountByTargetId=function(e){return this._engine.getUltraGroupUnreadCountByTargetId(e)},e.prototype.getAllUltraGroupUnreadCount=function(e){return void 0===e&&(e=!1),this._engine.getAllUltraGroupUnreadCount(e)},e.prototype.getAllConversationState=function(){return this._engine.getAllConversationState()},e.prototype.callExtra=function(e){for(var t,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return(t=this._engine).callExtra.apply(t,T([e],n,!1))},e.prototype.clearConversations=function(e,t){return I(this,void 0,void 0,(function(){return _(this,(function(n){switch(n.label){case 0:return[4,this._engine.clearConversations(e,t)];case 1:return[2,n.sent()]}}))}))},e.prototype.setUserStatusListener=function(e,t){return this._engine.setUserStatusListener(e,(function(e){try{t(e)}catch(e){ut.error(e)}}))},e.prototype.addToBlacklist=function(e){return I(this,void 0,void 0,(function(){return _(this,(function(t){return[2,this._engine.addToBlacklist(e)]}))}))},e.prototype.removeFromBlacklist=function(e){return I(this,void 0,void 0,(function(){return _(this,(function(t){return[2,this._engine.removeFromBlacklist(e)]}))}))},e.prototype.getBlacklist=function(){return I(this,void 0,void 0,(function(){return _(this,(function(e){return[2,this._engine.getBlacklist()]}))}))},e.prototype.getBlacklistStatus=function(e){return I(this,void 0,void 0,(function(){return _(this,(function(t){return[2,this._engine.getBlacklistStatus(e)]}))}))},e.prototype.insertMessage=function(e,t,n){return I(this,void 0,void 0,(function(){return _(this,(function(r){return[2,this._engine.insertMessage(e,t,n)]}))}))},e.prototype.deleteMessages=function(e){return I(this,void 0,void 0,(function(){return _(this,(function(t){return[2,this._engine.deleteMessages(e)]}))}))},e.prototype.deleteMessagesByTimestamp=function(e,t,n,r,i){return void 0===i&&(i=""),I(this,void 0,void 0,(function(){return _(this,(function(o){return[2,this._engine.deleteMessagesByTimestamp(e,t,n,r,i)]}))}))},e.prototype.clearMessages=function(e,t,n){return void 0===n&&(n=""),I(this,void 0,void 0,(function(){return _(this,(function(r){return[2,this._engine.clearMessages(e,t,n)]}))}))},e.prototype.getMessage=function(e){return I(this,void 0,void 0,(function(){return _(this,(function(t){return[2,this._engine.getMessage(e)]}))}))},e.prototype.setMessageContent=function(e,t,n){return I(this,void 0,void 0,(function(){return _(this,(function(r){return[2,this._engine.setMessageContent(e,t,n)]}))}))},e.prototype.setMessageSearchField=function(e,t,n){return I(this,void 0,void 0,(function(){return _(this,(function(r){return[2,this._engine.setMessageSearchField(e,t,n)]}))}))},e.prototype.setMessageSentStatus=function(e,t){return I(this,void 0,void 0,(function(){return _(this,(function(n){return[2,this._engine.setMessageSentStatus(e,t)]}))}))},e.prototype.setMessageReceivedStatus=function(e,t){return I(this,void 0,void 0,(function(){return _(this,(function(n){return[2,this._engine.setMessageReceivedStatus(e,t)]}))}))},e.prototype.setUserStatus=function(e){return I(this,void 0,void 0,(function(){return _(this,(function(t){return[2,this._engine.setUserStatus(e)]}))}))},e.prototype.subscribeUserStatus=function(e){return I(this,void 0,void 0,(function(){return _(this,(function(t){return[2,this._engine.subscribeUserStatus(e)]}))}))},e.prototype.getUserStatus=function(e){return I(this,void 0,void 0,(function(){return _(this,(function(t){return[2,this._engine.getUserStatus(e)]}))}))},e.prototype.searchConversationByContent=function(e,t,n,r){return void 0===t&&(t=[]),void 0===n&&(n=""),I(this,void 0,void 0,(function(){return _(this,(function(i){return[2,this._engine.searchConversationByContent(e,t,n,r)]}))}))},e.prototype.searchMessageByContent=function(e,t,n,r,i,o,s){return void 0===s&&(s=""),I(this,void 0,void 0,(function(){return _(this,(function(a){return[2,this._engine.searchMessageByContent(e,t,n,r,i,o,s)]}))}))},e.prototype.getUnreadMentionedMessages=function(e,t,n){return void 0===n&&(n=""),this._engine.getUnreadMentionedMessages(e,t,n)},e.prototype.clearUnreadCountByTimestamp=function(e,t,n,r){return void 0===r&&(r=""),this._engine.clearUnreadCountByTimestamp(e,t,n,r)},e.prototype.getUltraGroupDefaultNotificationLevel=function(e,t){return void 0===t&&(t=""),this._engine.getUltraGroupDefaultNotificationLevel(e,t)},e.prototype.setUltraGroupDefaultNotificationLevel=function(e,t,n){return void 0===n&&(n=""),this._engine.setUltraGroupDefaultNotificationLevel(e,t,n)},e.prototype.getConversationNotificationLevel=function(e,t,n){return void 0===n&&(n=""),this._engine.getConversationNotificationLevel(e,t,n)},e.prototype.getConversationNotificationStatus=function(e,t,n){return void 0===n&&(n=""),this._engine.getConversationNotificationStatus(e,t,n)},e.prototype.getRemoteHistoryMessages=function(e,t,n,r,i,o){return this._engine.getRemoteHistoryMessages(e,t,n,r,i,o)},e.prototype.getConversationListWithAllChannel=function(){return this._engine.getConversationListWithAllChannel()},e.prototype.getConversationListWithAllChannelByPage=function(e,t){return this._engine.getConversationListWithAllChannelByPage(e,t)},e.prototype.joinRTCRoom=function(e,t,n,r,i,o){return this._engine.joinRTCRoom(e,t,n,r,i,o)},e.prototype.quitRTCRoom=function(e){return this._engine.quitRTCRoom(e)},e.prototype.rtcPing=function(e,t,n){return this._engine.rtcPing(e,t,n)},e.prototype.getRTCRoomInfo=function(e){return this._engine.getRTCRoomInfo(e)},e.prototype.getRTCUserInfoList=function(e){return this._engine.getRTCUserInfoList(e)},e.prototype.getRTCUserInfo=function(e){return this._engine.getRTCUserInfo(e)},e.prototype.setRTCUserInfo=function(e,t,n){return this._engine.setRTCUserInfo(e,t,n)},e.prototype.removeRTCUserInfo=function(e,t){return this._engine.removeRTCUserInfo(e,t)},e.prototype.setRTCData=function(e,t,n,r,i,o){return this._engine.setRTCData(e,t,n,r,i,o)},e.prototype.setRTCTotalRes=function(e,t,n,r,i){return void 0===i&&(i=""),this._engine.setRTCTotalRes(e,t,n,r,i)},e.prototype.setRTCCDNUris=function(e,t,n){return this._engine.setRTCCDNUris(e,t,n)},e.prototype.getRTCData=function(e,t,n,r){return this._engine.getRTCData(e,t,n,r)},e.prototype.removeRTCData=function(e,t,n,r,i){return this._engine.removeRTCData(e,t,n,r,i)},e.prototype.setRTCOutData=function(e,t,n,r){return this._engine.setRTCOutData(e,t,n,r)},e.prototype.getRTCOutData=function(e,t){return this._engine.getRTCOutData(e,t)},e.prototype.getRTCToken=function(e,t,n){return this._engine.getRTCToken(e,t,n)},e.prototype.setRTCState=function(e,t){return this._engine.setRTCState(e,t)},e.prototype.getRTCUserList=function(e){return this._engine.getRTCUserList(e)},e.prototype.joinLivingRoomAsAudience=function(e,t,n){return this._engine.joinLivingRoomAsAudience(e,t,n)},e.prototype.quitLivingRoomAsAudience=function(e){return this._engine.quitLivingRoomAsAudience(e)},e.prototype.rtcIdentityChange=function(e,t,n){return this._engine.rtcIdentityChange(e,t,n)},e.prototype.getRTCJoinedUserInfo=function(e){return this._engine.getRTCJoinedUserInfo(e)},e.prototype.requestRoomPK=function(e){return this._engine.requestRoomPK(e)},e.prototype.cancelRoomPK=function(e){return this._engine.cancelRoomPK(e)},e.prototype.responseRoomPK=function(e){return this._engine.responseRoomPK(e)},e.prototype.endRoomPK=function(e){return this._engine.endRoomPK(e)},e.prototype.bindRTCRoomForChatroom=function(e){return this._engine.bindRTCRoomForChatroom(e)},e}();!function(e){e[e.add=1]="add",e[e.update=2]="update",e[e.delete=3]="delete"}(ns||(ns={}))}).call(this,n("4362"))},9619:function(e,t,n){var r=n("597f"),i=n("0e15");e.exports={throttle:r,debounce:i}},9675:function(e,t,n){"use strict";const r=n("52f6"),i=n("ef5d"),o=n("fb48");function s(e,t){switch(i(e)){case"object":return a(e,t);case"array":return c(e,t);default:return r(e)}}function a(e,t){if("function"===typeof t)return t(e);if(t||o(e)){const n=new e.constructor;for(let r in e)n[r]=s(e[r],t);return n}return e}function c(e,t){const n=new e.constructor(e.length);for(let r=0;r<e.length;r++)n[r]=s(e[r],t);return n}e.exports=s},"96cf":function(e,t,n){var r=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,i="function"===typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",a=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(D){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof v?t:v,o=Object.create(i.prototype),s=new w(r||[]);return o._invoke=A(e,n,s),o}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(D){return{type:"throw",arg:D}}}e.wrap=u;var f="suspendedStart",h="suspendedYield",d="executing",p="completed",g={};function v(){}function y(){}function m(){}var I={};c(I,o,(function(){return this}));var _=Object.getPrototypeOf,T=_&&_(_(O([])));T&&T!==n&&r.call(T,o)&&(I=T);var C=m.prototype=v.prototype=Object.create(I);function M(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(i,o,s,a){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"===typeof f&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,s,a)}),(function(e){n("throw",e,s,a)})):t.resolve(f).then((function(e){u.value=e,s(u)}),(function(e){return n("throw",e,s,a)}))}a(c.arg)}var i;function o(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}this._invoke=o}function A(e,t,n){var r=f;return function(i,o){if(r===d)throw new Error("Generator is already running");if(r===p){if("throw"===i)throw o;return R()}n.method=i,n.arg=o;while(1){var s=n.delegate;if(s){var a=S(s,n);if(a){if(a===g)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=d;var c=l(e,t,n);if("normal"===c.type){if(r=n.done?p:h,c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=p,n.method="throw",n.arg=c.arg)}}}function S(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator["return"]&&(n.method="return",n.arg=t,S(e,n),"throw"===n.method))return g;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var i=l(r,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var o=i.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function N(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 b(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function w(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function O(e){if(e){var n=e[o];if(n)return n.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var i=-1,s=function n(){while(++i<e.length)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return s.next=s}}return{next:R}}function R(){return{value:t,done:!0}}return y.prototype=m,c(C,"constructor",m),c(m,"constructor",y),y.displayName=c(m,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"===typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,c(e,a,"GeneratorFunction")),e.prototype=Object.create(C),e},e.awrap=function(e){return{__await:e}},M(E.prototype),c(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var s=new E(u(t,n,r,i),o);return e.isGeneratorFunction(n)?s:s.next().then((function(e){return e.done?e.value:s.next()}))},M(C),c(C,a,"Generator"),c(C,o,(function(){return this})),c(C,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){while(t.length){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=O,w.prototype={constructor:w,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(b),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0],t=e.completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return a.type="throw",a.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var s=this.tryEntries[o],a=s.completion;if("root"===s.tryLoc)return i("end");if(s.tryLoc<=this.prev){var c=r.call(s,"catchLoc"),u=r.call(s,"finallyLoc");if(c&&u){if(this.prev<s.catchLoc)return i(s.catchLoc,!0);if(this.prev<s.finallyLoc)return i(s.finallyLoc)}else if(c){if(this.prev<s.catchLoc)return i(s.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<s.finallyLoc)return i(s.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var s=o?o.completion:{};return s.type=e,s.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(s)},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),g},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),b(n),g}},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 i=r.arg;b(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:O(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}(e.exports);try{regeneratorRuntime=r}catch(i){"object"===typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},"96fb":function(e,t){e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},9744:function(e,t,n){"use strict";var r=n("4588"),i=n("be13");e.exports=function(e){var t=String(i(this)),n="",o=r(e);if(o<0||o==1/0)throw RangeError("Count can't be negative");for(;o>0;(o>>>=1)&&(t+=t))1&o&&(n+=t);return n}},9865:function(e,t,n){"use strict";var r=n("5ca1"),i=n("6821"),o=n("4588"),s=n("9def"),a=[].lastIndexOf,c=!!a&&1/[1].lastIndexOf(1,-0)<0;r(r.P+r.F*(c||!n("2f21")(a)),"Array",{lastIndexOf:function(e){if(c)return a.apply(this,arguments)||0;var t=i(this),n=s(t.length),r=n-1;for(arguments.length>1&&(r=Math.min(r,o(arguments[1]))),r<0&&(r=n+r);r>=0;r--)if(r in t&&t[r]===e)return r||0;return-1}})},"988d":function(e,t,n){"use strict";var r=n("5ca1"),i=n("be13"),o=n("9def"),s=n("aae3"),a=n("0bfb"),c=RegExp.prototype,u=function(e,t){this._r=e,this._s=t};n("41a0")(u,"RegExp String",(function(){var e=this._r.exec(this._s);return{value:e,done:null===e}})),r(r.P,"String",{matchAll:function(e){if(i(this),!s(e))throw TypeError(e+" is not a regexp!");var t=String(this),n="flags"in c?String(e.flags):a.call(e),r=new RegExp(e.source,~n.indexOf("g")?n:"g"+n);return r.lastIndex=o(e.lastIndex),new u(r,t)}})},"990b":function(e,t,n){var r=n("9093"),i=n("2621"),o=n("cb7c"),s=n("7726").Reflect;e.exports=s&&s.ownKeys||function(e){var t=r.f(o(e)),n=i.f;return n?t.concat(n(e)):t}},9986:function(e,t,n){var r=n("6821"),i=n("11e9").f;n("5eda")("getOwnPropertyDescriptor",(function(){return function(e,t){return i(r(e),t)}}))},"99c5":function(e,t,n){n("c6a1")("Set")},"9aa9":function(e,t){t.f=Object.getOwnPropertySymbols},"9aea":function(e,t,n){var r=n("d3f4"),i=n("67ab").onFreeze;n("5eda")("preventExtensions",(function(e){return function(t){return e&&r(t)?e(i(t)):t}}))},"9b43":function(e,t,n){var r=n("d8e8");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},"9c00":function(e,t,n){var r=n("5ca1");r(r.S,"Math",{iaddh:function(e,t,n,r){var i=e>>>0,o=t>>>0,s=n>>>0;return o+(r>>>0)+((i&s|(i|s)&~(i+s>>>0))>>>31)|0}})},"9c12":function(e,t,n){var r=n("d3f4"),i=Math.floor;e.exports=function(e){return!r(e)&&isFinite(e)&&i(e)===e}},"9c29":function(e,t,n){n("ec30")("Uint32",4,(function(e){return function(t,n,r){return e(this,t,n,r)}}))},"9c6c":function(e,t,n){var r=n("2b4c")("unscopables"),i=Array.prototype;void 0==i[r]&&n("32e9")(i,r,{}),e.exports=function(e){i[r][e]=!0}},"9c80":function(e,t){e.exports=function(e){try{return{e:!1,v:e()}}catch(t){return{e:!0,v:t}}}},"9c86":function(e,t,n){"use strict";n("386b")("big",(function(e){return function(){return e(this,"big","","")}}))},"9d98":function(e,t,n){var r=n("63b6");r(r.S+r.F*!n("8e60"),"Object",{defineProperties:n("7e90")})},"9def":function(e,t,n){var r=n("4588"),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},"9e1e":function(e,t,n){e.exports=!n("79e5")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},"9e6a":function(e,t,n){"use strict";var r=n("d233"),i=Object.prototype.hasOwnProperty,o=Array.isArray,s={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},a=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},c=function(e,t){return e&&"string"===typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},u="utf8=%26%2310003%3B",l="utf8=%E2%9C%93",f=function(e,t){var n,f={},h=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,d=t.parameterLimit===1/0?void 0:t.parameterLimit,p=h.split(t.delimiter,d),g=-1,v=t.charset;if(t.charsetSentinel)for(n=0;n<p.length;++n)0===p[n].indexOf("utf8=")&&(p[n]===l?v="utf-8":p[n]===u&&(v="iso-8859-1"),g=n,n=p.length);for(n=0;n<p.length;++n)if(n!==g){var y,m,I=p[n],_=I.indexOf("]="),T=-1===_?I.indexOf("="):_+1;-1===T?(y=t.decoder(I,s.decoder,v,"key"),m=t.strictNullHandling?null:""):(y=t.decoder(I.slice(0,T),s.decoder,v,"key"),m=r.maybeMap(c(I.slice(T+1),t),(function(e){return t.decoder(e,s.decoder,v,"value")}))),m&&t.interpretNumericEntities&&"iso-8859-1"===v&&(m=a(m)),I.indexOf("[]=")>-1&&(m=o(m)?[m]:m),i.call(f,y)?f[y]=r.combine(f[y],m):f[y]=m}return f},h=function(e,t,n,r){for(var i=r?t:c(t,n),o=e.length-1;o>=0;--o){var s,a=e[o];if("[]"===a&&n.parseArrays)s=[].concat(i);else{s=n.plainObjects?Object.create(null):{};var u="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,l=parseInt(u,10);n.parseArrays||""!==u?!isNaN(l)&&a!==u&&String(l)===u&&l>=0&&n.parseArrays&&l<=n.arrayLimit?(s=[],s[l]=i):"__proto__"!==u&&(s[u]=i):s={0:i}}i=s}return i},d=function(e,t,n,r){if(e){var o=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,s=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,c=n.depth>0&&s.exec(o),u=c?o.slice(0,c.index):o,l=[];if(u){if(!n.plainObjects&&i.call(Object.prototype,u)&&!n.allowPrototypes)return;l.push(u)}var f=0;while(n.depth>0&&null!==(c=a.exec(o))&&f<n.depth){if(f+=1,!n.plainObjects&&i.call(Object.prototype,c[1].slice(1,-1))&&!n.allowPrototypes)return;l.push(c[1])}return c&&l.push("["+o.slice(c.index)+"]"),h(l,t,n,r)}},p=function(e){if(!e)return s;if(null!==e.decoder&&void 0!==e.decoder&&"function"!==typeof e.decoder)throw new TypeError("Decoder has to be a function.");if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t="undefined"===typeof e.charset?s.charset:e.charset;return{allowDots:"undefined"===typeof e.allowDots?s.allowDots:!!e.allowDots,allowPrototypes:"boolean"===typeof e.allowPrototypes?e.allowPrototypes:s.allowPrototypes,allowSparse:"boolean"===typeof e.allowSparse?e.allowSparse:s.allowSparse,arrayLimit:"number"===typeof e.arrayLimit?e.arrayLimit:s.arrayLimit,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:s.charsetSentinel,comma:"boolean"===typeof e.comma?e.comma:s.comma,decoder:"function"===typeof e.decoder?e.decoder:s.decoder,delimiter:"string"===typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:s.delimiter,depth:"number"===typeof e.depth||!1===e.depth?+e.depth:s.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"===typeof e.interpretNumericEntities?e.interpretNumericEntities:s.interpretNumericEntities,parameterLimit:"number"===typeof e.parameterLimit?e.parameterLimit:s.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"===typeof e.plainObjects?e.plainObjects:s.plainObjects,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:s.strictNullHandling}};e.exports=function(e,t){var n=p(t);if(""===e||null===e||"undefined"===typeof e)return n.plainObjects?Object.create(null):{};for(var i="string"===typeof e?f(e,n):e,o=n.plainObjects?Object.create(null):{},s=Object.keys(i),a=0;a<s.length;++a){var c=s[a],u=d(c,i[c],n,"string"===typeof e);o=r.merge(o,u,n)}return!0===n.allowSparse?o:r.compact(o)}},"9ec8":function(e,t,n){"use strict";n("386b")("fontsize",(function(e){return function(t){return e(this,"font","size",t)}}))},"9f3c":function(e,t,n){var r=n("5ca1"),i=n("2d5c");r(r.S+r.F*(i!=Math.expm1),"Math",{expm1:i})},a032:function(e,t,n){"use strict";var r=n("5ca1"),i=n("02f4")(!1);r(r.P,"String",{codePointAt:function(e){return i(this,e)}})},a0d3:function(e,t,n){"use strict";var r=n("0f7c");e.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},a142:function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"g",(function(){return o})),n.d(t,"h",(function(){return s})),n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return c})),n.d(t,"e",(function(){return u})),n.d(t,"f",(function(){return l})),n.d(t,"a",(function(){return f}));var r=n("2b0e"),i="undefined"!==typeof window,o=r["default"].prototype.$isServer;function s(){}function a(e){return void 0!==e&&null!==e}function c(e){return"function"===typeof e}function u(e){return null!==e&&"object"===typeof e}function l(e){return u(e)&&c(e.then)&&c(e.catch)}function f(e,t){var n=t.split("."),r=e;return n.forEach((function(e){var t;r=null!=(t=r[e])?t:""})),r}},a159:function(e,t,n){var r=n("e4ae"),i=n("7e90"),o=n("1691"),s=n("5559")("IE_PROTO"),a=function(){},c="prototype",u=function(){var e,t=n("1ec9")("iframe"),r=o.length,i="<",s=">";t.style.display="none",n("32fc").appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(i+"script"+s+"document.F=Object"+i+"/script"+s),e.close(),u=e.F;while(r--)delete u[c][o[r]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(a[c]=r(e),n=new a,a[c]=null,n[s]=e):n=u(),void 0===t?n:i(n,t)}},a15e:function(e,t,n){"use strict";n.r(t);var r=n("41b2"),i=n.n(r),o=n("1098"),s=n.n(o),a=/%[sdj%]/g,c=function(){};function u(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=1,i=t[0],o=t.length;if("function"===typeof i)return i.apply(null,t.slice(1));if("string"===typeof i){for(var s=String(i).replace(a,(function(e){if("%%"===e)return"%";if(r>=o)return e;switch(e){case"%s":return String(t[r++]);case"%d":return Number(t[r++]);case"%j":try{return JSON.stringify(t[r++])}catch(n){return"[Circular]"}break;default:return e}})),c=t[r];r<o;c=t[++r])s+=" "+c;return s}return i}function l(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"pattern"===e}function f(e,t){return void 0===e||null===e||(!("array"!==t||!Array.isArray(e)||e.length)||!(!l(t)||"string"!==typeof e||e))}function h(e,t,n){var r=[],i=0,o=e.length;function s(e){r.push.apply(r,e),i++,i===o&&n(r)}e.forEach((function(e){t(e,s)}))}function d(e,t,n){var r=0,i=e.length;function o(s){if(s&&s.length)n(s);else{var a=r;r+=1,a<i?t(e[a],o):n([])}}o([])}function p(e){var t=[];return Object.keys(e).forEach((function(n){t.push.apply(t,e[n])})),t}function g(e,t,n,r){if(t.first){var i=p(e);return d(i,n,r)}var o=t.firstFields||[];!0===o&&(o=Object.keys(e));var s=Object.keys(e),a=s.length,c=0,u=[],l=function(e){u.push.apply(u,e),c++,c===a&&r(u)};s.forEach((function(t){var r=e[t];-1!==o.indexOf(t)?d(r,n,l):h(r,n,l)}))}function v(e){return function(t){return t&&t.message?(t.field=t.field||e.fullField,t):{message:t,field:t.field||e.fullField}}}function y(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];"object"===("undefined"===typeof r?"undefined":s()(r))&&"object"===s()(e[n])?e[n]=i()({},e[n],r):e[n]=r}return e}function m(e,t,n,r,i,o){!e.required||n.hasOwnProperty(e.field)&&!f(t,o||e.type)||r.push(u(i.messages.required,e.fullField))}var I=m;function _(e,t,n,r,i){(/^\s+$/.test(t)||""===t)&&r.push(u(i.messages.whitespace,e.fullField))}var T=_,C={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},M={integer:function(e){return M.number(e)&&parseInt(e,10)===e},float:function(e){return M.number(e)&&!M.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(t){return!1}},date:function(e){return"function"===typeof e.getTime&&"function"===typeof e.getMonth&&"function"===typeof e.getYear},number:function(e){return!isNaN(e)&&"number"===typeof e},object:function(e){return"object"===("undefined"===typeof e?"undefined":s()(e))&&!M.array(e)},method:function(e){return"function"===typeof e},email:function(e){return"string"===typeof e&&!!e.match(C.email)&&e.length<255},url:function(e){return"string"===typeof e&&!!e.match(C.url)},hex:function(e){return"string"===typeof e&&!!e.match(C.hex)}};function E(e,t,n,r,i){if(e.required&&void 0===t)I(e,t,n,r,i);else{var o=["integer","float","array","regexp","object","method","email","number","date","url","hex"],a=e.type;o.indexOf(a)>-1?M[a](t)||r.push(u(i.messages.types[a],e.fullField,e.type)):a&&("undefined"===typeof t?"undefined":s()(t))!==e.type&&r.push(u(i.messages.types[a],e.fullField,e.type))}}var A=E;function S(e,t,n,r,i){var o="number"===typeof e.len,s="number"===typeof e.min,a="number"===typeof e.max,c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,l=t,f=null,h="number"===typeof t,d="string"===typeof t,p=Array.isArray(t);if(h?f="number":d?f="string":p&&(f="array"),!f)return!1;p&&(l=t.length),d&&(l=t.replace(c,"_").length),o?l!==e.len&&r.push(u(i.messages[f].len,e.fullField,e.len)):s&&!a&&l<e.min?r.push(u(i.messages[f].min,e.fullField,e.min)):a&&!s&&l>e.max?r.push(u(i.messages[f].max,e.fullField,e.max)):s&&a&&(l<e.min||l>e.max)&&r.push(u(i.messages[f].range,e.fullField,e.min,e.max))}var N=S,b="enum";function w(e,t,n,r,i){e[b]=Array.isArray(e[b])?e[b]:[],-1===e[b].indexOf(t)&&r.push(u(i.messages[b],e.fullField,e[b].join(", ")))}var O=w;function R(e,t,n,r,i){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(u(i.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"===typeof e.pattern){var o=new RegExp(e.pattern);o.test(t)||r.push(u(i.messages.pattern.mismatch,e.fullField,t,e.pattern))}}var D=R,L={required:I,whitespace:T,type:A,range:N,enum:O,pattern:D};function U(e,t,n,r,i){var o=[],s=e.required||!e.required&&r.hasOwnProperty(e.field);if(s){if(f(t,"string")&&!e.required)return n();L.required(e,t,r,o,i,"string"),f(t,"string")||(L.type(e,t,r,o,i),L.range(e,t,r,o,i),L.pattern(e,t,r,o,i),!0===e.whitespace&&L.whitespace(e,t,r,o,i))}n(o)}var x=U;function P(e,t,n,r,i){var o=[],s=e.required||!e.required&&r.hasOwnProperty(e.field);if(s){if(f(t)&&!e.required)return n();L.required(e,t,r,o,i),void 0!==t&&L.type(e,t,r,o,i)}n(o)}var j=P;function k(e,t,n,r,i){var o=[],s=e.required||!e.required&&r.hasOwnProperty(e.field);if(s){if(f(t)&&!e.required)return n();L.required(e,t,r,o,i),void 0!==t&&(L.type(e,t,r,o,i),L.range(e,t,r,o,i))}n(o)}var z=k;function G(e,t,n,r,i){var o=[],s=e.required||!e.required&&r.hasOwnProperty(e.field);if(s){if(f(t)&&!e.required)return n();L.required(e,t,r,o,i),void 0!==t&&L.type(e,t,r,o,i)}n(o)}var B=G;function V(e,t,n,r,i){var o=[],s=e.required||!e.required&&r.hasOwnProperty(e.field);if(s){if(f(t)&&!e.required)return n();L.required(e,t,r,o,i),f(t)||L.type(e,t,r,o,i)}n(o)}var Y=V;function H(e,t,n,r,i){var o=[],s=e.required||!e.required&&r.hasOwnProperty(e.field);if(s){if(f(t)&&!e.required)return n();L.required(e,t,r,o,i),void 0!==t&&(L.type(e,t,r,o,i),L.range(e,t,r,o,i))}n(o)}var F=H;function Q(e,t,n,r,i){var o=[],s=e.required||!e.required&&r.hasOwnProperty(e.field);if(s){if(f(t)&&!e.required)return n();L.required(e,t,r,o,i),void 0!==t&&(L.type(e,t,r,o,i),L.range(e,t,r,o,i))}n(o)}var $=Q;function K(e,t,n,r,i){var o=[],s=e.required||!e.required&&r.hasOwnProperty(e.field);if(s){if(f(t,"array")&&!e.required)return n();L.required(e,t,r,o,i,"array"),f(t,"array")||(L.type(e,t,r,o,i),L.range(e,t,r,o,i))}n(o)}var W=K;function q(e,t,n,r,i){var o=[],s=e.required||!e.required&&r.hasOwnProperty(e.field);if(s){if(f(t)&&!e.required)return n();L.required(e,t,r,o,i),void 0!==t&&L.type(e,t,r,o,i)}n(o)}var Z=q,J="enum";function X(e,t,n,r,i){var o=[],s=e.required||!e.required&&r.hasOwnProperty(e.field);if(s){if(f(t)&&!e.required)return n();L.required(e,t,r,o,i),t&&L[J](e,t,r,o,i)}n(o)}var ee=X;function te(e,t,n,r,i){var o=[],s=e.required||!e.required&&r.hasOwnProperty(e.field);if(s){if(f(t,"string")&&!e.required)return n();L.required(e,t,r,o,i),f(t,"string")||L.pattern(e,t,r,o,i)}n(o)}var ne=te;function re(e,t,n,r,i){var o=[],s=e.required||!e.required&&r.hasOwnProperty(e.field);if(s){if(f(t)&&!e.required)return n();if(L.required(e,t,r,o,i),!f(t)){var a=void 0;a="number"===typeof t?new Date(t):t,L.type(e,a,r,o,i),a&&L.range(e,a.getTime(),r,o,i)}}n(o)}var ie=re;function oe(e,t,n,r,i){var o=[],a=Array.isArray(t)?"array":"undefined"===typeof t?"undefined":s()(t);L.required(e,t,r,o,i,a),n(o)}var se=oe;function ae(e,t,n,r,i){var o=e.type,s=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(f(t,o)&&!e.required)return n();L.required(e,t,r,s,i,o),f(t,o)||L.type(e,t,r,s,i)}n(s)}var ce=ae,ue={string:x,method:j,number:z,boolean:B,regexp:Y,integer:F,float:$,array:W,object:Z,enum:ee,pattern:ne,date:ie,url:ce,hex:ce,email:ce,required:se};function le(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var fe=le();function he(e){this.rules=null,this._messages=fe,this.define(e)}he.prototype={messages:function(e){return e&&(this._messages=y(le(),e)),this._messages},define:function(e){if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==("undefined"===typeof e?"undefined":s()(e))||Array.isArray(e))throw new Error("Rules must be an object");this.rules={};var t=void 0,n=void 0;for(t in e)e.hasOwnProperty(t)&&(n=e[t],this.rules[t]=Array.isArray(n)?n:[n])},validate:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments[2],o=e,a=n,l=r;if("function"===typeof a&&(l=a,a={}),this.rules&&0!==Object.keys(this.rules).length){if(a.messages){var f=this.messages();f===fe&&(f=le()),y(f,a.messages),a.messages=f}else a.messages=this.messages();var h=void 0,d=void 0,p={},m=a.keys||Object.keys(this.rules);m.forEach((function(n){h=t.rules[n],d=o[n],h.forEach((function(r){var s=r;"function"===typeof s.transform&&(o===e&&(o=i()({},o)),d=o[n]=s.transform(d)),s="function"===typeof s?{validator:s}:i()({},s),s.validator=t.getValidationMethod(s),s.field=n,s.fullField=s.fullField||n,s.type=t.getType(s),s.validator&&(p[n]=p[n]||[],p[n].push({rule:s,value:d,source:o,field:n}))}))}));var I={};g(p,a,(function(e,t){var n=e.rule,r=("object"===n.type||"array"===n.type)&&("object"===s()(n.fields)||"object"===s()(n.defaultField));function o(e,t){return i()({},t,{fullField:n.fullField+"."+e})}function l(){var s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],l=s;if(Array.isArray(l)||(l=[l]),l.length&&c("async-validator:",l),l.length&&n.message&&(l=[].concat(n.message)),l=l.map(v(n)),a.first&&l.length)return I[n.field]=1,t(l);if(r){if(n.required&&!e.value)return l=n.message?[].concat(n.message).map(v(n)):a.error?[a.error(n,u(a.messages.required,n.field))]:[],t(l);var f={};if(n.defaultField)for(var h in e.value)e.value.hasOwnProperty(h)&&(f[h]=n.defaultField);for(var d in f=i()({},f,e.rule.fields),f)if(f.hasOwnProperty(d)){var p=Array.isArray(f[d])?f[d]:[f[d]];f[d]=p.map(o.bind(null,d))}var g=new he(f);g.messages(a.messages),e.rule.options&&(e.rule.options.messages=a.messages,e.rule.options.error=a.error),g.validate(e.value,e.rule.options||a,(function(e){t(e&&e.length?l.concat(e):e)}))}else t(l)}r=r&&(n.required||!n.required&&e.value),n.field=e.field;var f=n.validator(n,e.value,l,e.source,a);f&&f.then&&f.then((function(){return l()}),(function(e){return l(e)}))}),(function(e){_(e)}))}else l&&l();function _(e){var t=void 0,n=void 0,r=[],i={};function o(e){Array.isArray(e)?r=r.concat.apply(r,e):r.push(e)}for(t=0;t<e.length;t++)o(e[t]);if(r.length)for(t=0;t<r.length;t++)n=r[t].field,i[n]=i[n]||[],i[n].push(r[t]);else r=null,i=null;l(r,i)}},getType:function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!==typeof e.validator&&e.type&&!ue.hasOwnProperty(e.type))throw new Error(u("Unknown rule type %s",e.type));return e.type||"string"},getValidationMethod:function(e){if("function"===typeof e.validator)return e.validator;var t=Object.keys(e),n=t.indexOf("message");return-1!==n&&t.splice(n,1),1===t.length&&"required"===t[0]?ue.required:ue[this.getType(e)]||!1}},he.register=function(e,t){if("function"!==typeof t)throw new Error("Cannot register a validator by type, validator is not a function");ue[e]=t},he.messages=fe;t["default"]=he},a19f:function(e,t,n){var r=n("5ca1"),i=n("cb7c"),o=Object.preventExtensions;r(r.S,"Reflect",{preventExtensions:function(e){i(e);try{return o&&o(e),!0}catch(t){return!1}}})},a22a:function(e,t,n){var r=n("d864"),i=n("b0dc"),o=n("3702"),s=n("e4ae"),a=n("b447"),c=n("7cd6"),u={},l={};t=e.exports=function(e,t,n,f,h){var d,p,g,v,y=h?function(){return e}:c(e),m=r(n,f,t?2:1),I=0;if("function"!=typeof y)throw TypeError(e+" is not iterable!");if(o(y)){for(d=a(e.length);d>I;I++)if(v=t?m(s(p=e[I])[0],p[1]):m(e[I]),v===u||v===l)return v}else for(g=y.call(e);!(p=g.next()).done;)if(v=i(g,m,p.value,t),v===u||v===l)return v};t.BREAK=u,t.RETURN=l},a234:function(e,t,n){var r=n("5ca1");r(r.S,"System",{global:n("7726")})},a25f:function(e,t,n){var r=n("7726"),i=r.navigator;e.exports=i&&i.userAgent||""},a3c3:function(e,t,n){var r=n("63b6");r(r.S+r.F,"Object",{assign:n("9306")})},a3de:function(e,t,n){"use strict";var r=!("undefined"===typeof window||!window.document||!window.document.createElement),i={canUseDOM:r,canUseWorkers:"undefined"!==typeof Worker,canUseEventListeners:r&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:r&&!!window.screen,isInWorker:!r};e.exports=i},a471:function(e,t,n){!function(t,r){e.exports=r(n("5a0c"))}(0,(function(e){"use strict";function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=t(e),r={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(e,t){return"W"===t?e+"周":e+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(e,t){var n=100*e+t;return n<600?"凌晨":n<900?"早上":n<1100?"上午":n<1300?"中午":n<1800?"下午":"晚上"}};return n.default.locale(r,null,!0),r}))},a481:function(e,t,n){"use strict";var r=n("cb7c"),i=n("4bf8"),o=n("9def"),s=n("4588"),a=n("0390"),c=n("5f1b"),u=Math.max,l=Math.min,f=Math.floor,h=/\$([$&`']|\d\d?|<[^>]*>)/g,d=/\$([$&`']|\d\d?)/g,p=function(e){return void 0===e?e:String(e)};n("214f")("replace",2,(function(e,t,n,g){return[function(r,i){var o=e(this),s=void 0==r?void 0:r[t];return void 0!==s?s.call(r,o,i):n.call(String(o),r,i)},function(e,t){var i=g(n,e,this,t);if(i.done)return i.value;var f=r(e),h=String(this),d="function"===typeof t;d||(t=String(t));var y=f.global;if(y){var m=f.unicode;f.lastIndex=0}var I=[];while(1){var _=c(f,h);if(null===_)break;if(I.push(_),!y)break;var T=String(_[0]);""===T&&(f.lastIndex=a(h,o(f.lastIndex),m))}for(var C="",M=0,E=0;E<I.length;E++){_=I[E];for(var A=String(_[0]),S=u(l(s(_.index),h.length),0),N=[],b=1;b<_.length;b++)N.push(p(_[b]));var w=_.groups;if(d){var O=[A].concat(N,S,h);void 0!==w&&O.push(w);var R=String(t.apply(void 0,O))}else R=v(A,h,S,N,w,t);S>=M&&(C+=h.slice(M,S)+R,M=S+A.length)}return C+h.slice(M)}];function v(e,t,r,o,s,a){var c=r+e.length,u=o.length,l=d;return void 0!==s&&(s=i(s),l=h),n.call(a,l,(function(n,i){var a;switch(i.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,r);case"'":return t.slice(c);case"<":a=s[i.slice(1,-1)];break;default:var l=+i;if(0===l)return n;if(l>u){var h=f(l/10);return 0===h?n:h<=u?void 0===o[h-1]?i.charAt(1):o[h-1]+i.charAt(1):n}a=o[l-1]}return void 0===a?"":a}))}}))},a4bb:function(e,t,n){e.exports=n("8aae")},a5b2:function(e,t,n){e.exports=n("aa28")},a5b8:function(e,t,n){"use strict";var r=n("d8e8");function i(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)}e.exports.f=function(e){return new i(e)}},a5d8:function(e,t,n){},a69f:function(e,t,n){var r=n("5ca1");r(r.S,"Math",{log2:function(e){return Math.log(e)/Math.LN2}})},a745:function(e,t,n){e.exports=n("f410")},a753:function(e,t,n){},a78e:function(e,t,n){var r,i;
- /*!
- * JavaScript Cookie v2.2.0
- * https://github.com/js-cookie/js-cookie
- *
- * Copyright 2006, 2015 Klaus Hartl & Fagner Brack
- * Released under the MIT license
- */(function(o){var s=!1;if(r=o,i="function"===typeof r?r.call(t,n,t,e):r,void 0===i||(e.exports=i),s=!0,e.exports=o(),s=!0,!s){var a=window.Cookies,c=window.Cookies=o();c.noConflict=function(){return window.Cookies=a,c}}})((function(){function e(){for(var e=0,t={};e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}function t(n){function r(t,i,o){var s;if("undefined"!==typeof document){if(arguments.length>1){if(o=e({path:"/"},r.defaults,o),"number"===typeof o.expires){var a=new Date;a.setMilliseconds(a.getMilliseconds()+864e5*o.expires),o.expires=a}o.expires=o.expires?o.expires.toUTCString():"";try{s=JSON.stringify(i),/^[\{\[]/.test(s)&&(i=s)}catch(v){}i=n.write?n.write(i,t):encodeURIComponent(String(i)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)),t=t.replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent),t=t.replace(/[\(\)]/g,escape);var c="";for(var u in o)o[u]&&(c+="; "+u,!0!==o[u]&&(c+="="+o[u]));return document.cookie=t+"="+i+c}t||(s={});for(var l=document.cookie?document.cookie.split("; "):[],f=/(%[0-9A-Z]{2})+/g,h=0;h<l.length;h++){var d=l[h].split("="),p=d.slice(1).join("=");this.json||'"'!==p.charAt(0)||(p=p.slice(1,-1));try{var g=d[0].replace(f,decodeURIComponent);if(p=n.read?n.read(p,g):n(p,g)||p.replace(f,decodeURIComponent),this.json)try{p=JSON.parse(p)}catch(v){}if(t===g){s=p;break}t||(s[g]=p)}catch(v){}}return s}}return r.set=r,r.get=function(e){return r.call(r,e)},r.getJSON=function(){return r.apply({json:!0},[].slice.call(arguments))},r.defaults={},r.remove=function(t,n){r(t,"",e(n,{expires:-1}))},r.withConverter=t,r}return t((function(){}))}))},a832:function(e,t,n){"use strict";
- /*!
- * isobject <https://github.com/jonschlinkert/isobject>
- *
- * Copyright (c) 2014-2017, Jon Schlinkert.
- * Released under the MIT License.
- */e.exports=function(e){return null!=e&&"object"===typeof e&&!1===Array.isArray(e)}},a8c1:function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return a})),n.d(t,"d",(function(){return c}));var r=/scroll|auto|overlay/i;function i(e,t){void 0===t&&(t=window);var n=e;while(n&&"HTML"!==n.tagName&&"BODY"!==n.tagName&&1===n.nodeType&&n!==t){var i=window.getComputedStyle(n),o=i.overflowY;if(r.test(o))return n;n=n.parentNode}return t}function o(e){var t="scrollTop"in e?e.scrollTop:e.pageYOffset;return Math.max(t,0)}function s(e,t){"scrollTop"in e?e.scrollTop=t:e.scrollTo(e.scrollX,t)}function a(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0}function c(e){s(window,e),s(document.body,e)}},a8db:function(e,t,n){"use strict";var r=n("e265"),i=n.n(r),o=n("a4bb"),s=n.n(o);function a(e,t){if(null==e)return{};var n,r,i={},o=s()(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function c(e,t){if(null==e)return{};var n,r,o=a(e,t);if(i.a){var s=i()(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,"a",(function(){return c}))},a9cc:function(e,t,n){"use strict";var r=n("5ca1"),i=n("a5b8"),o=n("9c80");r(r.S,"Promise",{try:function(e){var t=i.f(this),n=o(e);return(n.e?t.reject:t.resolve)(n.v),t.promise}})},aa28:function(e,t,n){n("733c"),e.exports=n("584a").Reflect.construct},aa77:function(e,t,n){var r=n("5ca1"),i=n("be13"),o=n("79e5"),s=n("fdef"),a="["+s+"]",c="
",u=RegExp("^"+a+a+"*"),l=RegExp(a+a+"*$"),f=function(e,t,n){var i={},a=o((function(){return!!s[e]()||c[e]()!=c})),u=i[e]=a?t(h):s[e];n&&(i[n]=u),r(r.P+r.F*a,"String",i)},h=f.trim=function(e,t){return e=String(i(e)),1&t&&(e=e.replace(u,"")),2&t&&(e=e.replace(l,"")),e};e.exports=f},aae3:function(e,t,n){var r=n("d3f4"),i=n("2d95"),o=n("2b4c")("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==i(e))}},aba2:function(e,t,n){var r=n("e53d"),i=n("4178").set,o=r.MutationObserver||r.WebKitMutationObserver,s=r.process,a=r.Promise,c="process"==n("6b4c")(s);e.exports=function(){var e,t,n,u=function(){var r,i;c&&(r=s.domain)&&r.exit();while(e){i=e.fn,e=e.next;try{i()}catch(o){throw e?n():t=void 0,o}}t=void 0,r&&r.enter()};if(c)n=function(){s.nextTick(u)};else if(!o||r.navigator&&r.navigator.standalone)if(a&&a.resolve){var l=a.resolve(void 0);n=function(){l.then(u)}}else n=function(){i.call(r,u)};else{var f=!0,h=document.createTextNode("");new o(u).observe(h,{characterData:!0}),n=function(){h.data=f=!f}}return function(r){var i={fn:r,next:void 0};t&&(t.next=i),e||(e=i,n()),t=i}}},abd7:function(e,t){e.exports=function(e,t){var n=t===Object(t)?function(e){return t[e]}:t;return function(t){return String(t).replace(e,n)}}},ac4d:function(e,t,n){n("3a72")("asyncIterator")},ac6a:function(e,t,n){for(var r=n("cadf"),i=n("0d58"),o=n("2aba"),s=n("7726"),a=n("32e9"),c=n("84f2"),u=n("2b4c"),l=u("iterator"),f=u("toStringTag"),h=c.Array,d={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},p=i(d),g=0;g<p.length;g++){var v,y=p[g],m=d[y],I=s[y],_=I&&I.prototype;if(_&&(_[l]||a(_,l,h),_[f]||a(_,f,y),c[y]=h,m))for(v in r)_[v]||o(_,v,r[v],!0)}},ad06:function(e,t,n){"use strict";var r=n("2638"),i=n.n(r),o=n("d282"),s=n("ea8e"),a=n("ba31"),c=n("a142"),u=Object(o["a"])("info"),l=u[0],f=u[1];function h(e,t,n,r){var o=t.dot,s=t.info,u=Object(c["c"])(s)&&""!==s;if(o||u)return e("div",i()([{class:f({dot:o})},Object(a["b"])(r,!0)]),[o?"":t.info])}h.props={dot:Boolean,info:[Number,String]};var d=l(h),p=Object(o["a"])("icon"),g=p[0],v=p[1];function y(e){return!!e&&-1!==e.indexOf("/")}var m={medel:"medal","medel-o":"medal-o","calender-o":"calendar-o"};function I(e){return e&&m[e]||e}function _(e,t,n,r){var o,c=I(t.name),u=y(c);return e(t.tag,i()([{class:[t.classPrefix,u?"":t.classPrefix+"-"+c],style:{color:t.color,fontSize:Object(s["a"])(t.size)}},Object(a["b"])(r,!0)]),[n.default&&n.default(),u&&e("img",{class:v("image"),attrs:{src:c}}),e(d,{attrs:{dot:t.dot,info:null!=(o=t.badge)?o:t.info}})])}_.props={dot:Boolean,name:String,size:[Number,String],info:[Number,String],badge:[Number,String],color:String,tag:{type:String,default:"i"},classPrefix:{type:String,default:v()}};t["a"]=g(_)},aebd:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},aef6:function(e,t,n){"use strict";var r=n("5ca1"),i=n("9def"),o=n("d2c8"),s="endsWith",a=""[s];r(r.P+r.F*n("5147")(s),"String",{endsWith:function(e){var t=o(this,e,s),n=arguments.length>1?arguments[1]:void 0,r=i(t.length),c=void 0===n?r:Math.min(i(n),r),u=String(e);return a?a.call(t,u,c):t.slice(c-u.length,c)===u}})},af56:function(e,t,n){n("ec30")("Uint16",2,(function(e){return function(t,n,r){return e(this,t,n,r)}}))},b05c:function(e,t,n){n("ec30")("Int8",1,(function(e){return function(t,n,r){return e(this,t,n,r)}}))},b0b4:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("85f2"),i=n.n(r);function o(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),i()(e,r.key,r)}}function s(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),i()(e,"prototype",{writable:!1}),e}},b0c5:function(e,t,n){"use strict";var r=n("520a");n("5ca1")({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},b0dc:function(e,t,n){var r=n("e4ae");e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(s){var o=e["return"];throw void 0!==o&&r(o.call(e)),s}}},b1b1:function(e,t,n){var r=n("5ca1"),i=n("9c12"),o=Math.abs;r(r.S,"Number",{isSafeInteger:function(e){return i(e)&&o(e)<=9007199254740991}})},b313:function(e,t,n){"use strict";var r=String.prototype.replace,i=/%20/g,o={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports={default:o.RFC3986,formatters:{RFC1738:function(e){return r.call(e,i,"+")},RFC3986:function(e){return String(e)}},RFC1738:o.RFC1738,RFC3986:o.RFC3986}},b375:function(e,t,n){!function(t,n){e.exports=n()}(0,(function(){"use strict";return function(e,t){t.prototype.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)}}}))},b383:function(e,t,n){"use strict";t.decode=t.parse=n("91dd"),t.encode=t.stringify=n("e099")},b39a:function(e,t,n){var r=n("d3f4");e.exports=function(e,t){if(!r(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},b447:function(e,t,n){var r=n("3a38"),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},b4c2:function(e,t,n){var r=n("5ca1");r(r.S,"Math",{imulh:function(e,t){var n=65535,r=+e,i=+t,o=r&n,s=i&n,a=r>>16,c=i>>16,u=(a*s>>>0)+(o*s>>>16);return a*c+(u>>16)+((o*c>>>0)+(u&n)>>16)}})},b50d:function(e,t,n){"use strict";var r=n("c532"),i=n("467f"),o=n("30b5"),s=n("c345"),a=n("3934"),c=n("2d83");e.exports=function(e){return new Promise((function(t,u){var l=e.data,f=e.headers;r.isFormData(l)&&delete f["Content-Type"];var h=new XMLHttpRequest;if(e.auth){var d=e.auth.username||"",p=e.auth.password||"";f.Authorization="Basic "+btoa(d+":"+p)}if(h.open(e.method.toUpperCase(),o(e.url,e.params,e.paramsSerializer),!0),h.timeout=e.timeout,h.onreadystatechange=function(){if(h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in h?s(h.getAllResponseHeaders()):null,r=e.responseType&&"text"!==e.responseType?h.response:h.responseText,o={data:r,status:h.status,statusText:h.statusText,headers:n,config:e,request:h};i(t,u,o),h=null}},h.onerror=function(){u(c("Network Error",e,null,h)),h=null},h.ontimeout=function(){u(c("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",h)),h=null},r.isStandardBrowserEnv()){var g=n("7aac"),v=(e.withCredentials||a(e.url))&&e.xsrfCookieName?g.read(e.xsrfCookieName):void 0;v&&(f[e.xsrfHeaderName]=v)}if("setRequestHeader"in h&&r.forEach(f,(function(e,t){"undefined"===typeof l&&"content-type"===t.toLowerCase()?delete f[t]:h.setRequestHeader(t,e)})),e.withCredentials&&(h.withCredentials=!0),e.responseType)try{h.responseType=e.responseType}catch(y){if("json"!==e.responseType)throw y}"function"===typeof e.onDownloadProgress&&h.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){h&&(h.abort(),u(e),h=null)})),void 0===l&&(l=null),h.send(l)}))}},b54a:function(e,t,n){"use strict";n("386b")("link",(function(e){return function(t){return e(this,"a","href",t)}}))},b639:function(e,t,n){"use strict";(function(e){
- /*!
- * The buffer module from node.js, for the browser.
- *
- * @author Feross Aboukhadijeh <http://feross.org>
- * @license MIT
- */
- var r=n("1fb5"),i=n("9152"),o=n("e3db");function s(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"===typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(t){return!1}}function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function c(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t),e.__proto__=u.prototype):(null===e&&(e=new u(t)),e.length=t),e}function u(e,t,n){if(!u.TYPED_ARRAY_SUPPORT&&!(this instanceof u))return new u(e,t,n);if("number"===typeof e){if("string"===typeof t)throw new Error("If encoding is specified then the first argument must be a string");return d(this,e)}return l(this,e,t,n)}function l(e,t,n,r){if("number"===typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!==typeof ArrayBuffer&&t instanceof ArrayBuffer?v(e,t,n,r):"string"===typeof t?p(e,t,n):y(e,t)}function f(e){if("number"!==typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function h(e,t,n,r){return f(t),t<=0?c(e,t):void 0!==n?"string"===typeof r?c(e,t).fill(n,r):c(e,t).fill(n):c(e,t)}function d(e,t){if(f(t),e=c(e,t<0?0:0|m(t)),!u.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function p(e,t,n){if("string"===typeof n&&""!==n||(n="utf8"),!u.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|_(t,n);e=c(e,r);var i=e.write(t,n);return i!==r&&(e=e.slice(0,i)),e}function g(e,t){var n=t.length<0?0:0|m(t.length);e=c(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function v(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r),u.TYPED_ARRAY_SUPPORT?(e=t,e.__proto__=u.prototype):e=g(e,t),e}function y(e,t){if(u.isBuffer(t)){var n=0|m(t.length);return e=c(e,n),0===e.length?e:(t.copy(e,0,0,n),e)}if(t){if("undefined"!==typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!==typeof t.length||te(t.length)?c(e,0):g(e,t);if("Buffer"===t.type&&o(t.data))return g(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function m(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function I(e){return+e!=e&&(e=0),u.alloc(+e)}function _(e,t){if(u.isBuffer(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return q(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return X(e).length;default:if(r)return q(e).length;t=(""+t).toLowerCase(),r=!0}}function T(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,t>>>=0,n<=t)return"";e||(e="utf8");while(1)switch(e){case"hex":return j(this,t,n);case"utf8":case"utf-8":return D(this,t,n);case"ascii":return x(this,t,n);case"latin1":case"binary":return P(this,t,n);case"base64":return R(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function C(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function M(e,t,n,r,i){if(0===e.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"===typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:E(e,t,n,r,i);if("number"===typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):E(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function E(e,t,n,r,i){var o,s=1,a=e.length,c=t.length;if(void 0!==r&&(r=String(r).toLowerCase(),"ucs2"===r||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;s=2,a/=2,c/=2,n/=2}function u(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){var l=-1;for(o=n;o<a;o++)if(u(e,o)===u(t,-1===l?0:o-l)){if(-1===l&&(l=o),o-l+1===c)return l*s}else-1!==l&&(o-=o-l),l=-1}else for(n+c>a&&(n=a-c),o=n;o>=0;o--){for(var f=!0,h=0;h<c;h++)if(u(e,o+h)!==u(t,h)){f=!1;break}if(f)return o}return-1}function A(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r),r>i&&(r=i)):r=i;var o=t.length;if(o%2!==0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var s=0;s<r;++s){var a=parseInt(t.substr(2*s,2),16);if(isNaN(a))return s;e[n+s]=a}return s}function S(e,t,n,r){return ee(q(t,e.length-n),e,n,r)}function N(e,t,n,r){return ee(Z(t),e,n,r)}function b(e,t,n,r){return N(e,t,n,r)}function w(e,t,n,r){return ee(X(t),e,n,r)}function O(e,t,n,r){return ee(J(t,e.length-n),e,n,r)}function R(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function D(e,t,n){n=Math.min(e.length,n);var r=[],i=t;while(i<n){var o,s,a,c,u=e[i],l=null,f=u>239?4:u>223?3:u>191?2:1;if(i+f<=n)switch(f){case 1:u<128&&(l=u);break;case 2:o=e[i+1],128===(192&o)&&(c=(31&u)<<6|63&o,c>127&&(l=c));break;case 3:o=e[i+1],s=e[i+2],128===(192&o)&&128===(192&s)&&(c=(15&u)<<12|(63&o)<<6|63&s,c>2047&&(c<55296||c>57343)&&(l=c));break;case 4:o=e[i+1],s=e[i+2],a=e[i+3],128===(192&o)&&128===(192&s)&&128===(192&a)&&(c=(15&u)<<18|(63&o)<<12|(63&s)<<6|63&a,c>65535&&c<1114112&&(l=c))}null===l?(l=65533,f=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=f}return U(r)}t.Buffer=u,t.SlowBuffer=I,t.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:s(),t.kMaxLength=a(),u.poolSize=8192,u._augment=function(e){return e.__proto__=u.prototype,e},u.from=function(e,t,n){return l(null,e,t,n)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(e,t,n){return h(null,e,t,n)},u.allocUnsafe=function(e){return d(null,e)},u.allocUnsafeSlow=function(e){return d(null,e)},u.isBuffer=function(e){return!(null==e||!e._isBuffer)},u.compare=function(e,t){if(!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},u.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(e,t){if(!o(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=u.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var s=e[n];if(!u.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(r,i),i+=s.length}return r},u.byteLength=_,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)C(this,t,t+1);return this},u.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)C(this,t,t+3),C(this,t+1,t+2);return this},u.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)C(this,t,t+7),C(this,t+1,t+6),C(this,t+2,t+5),C(this,t+3,t+4);return this},u.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?D(this,0,e):T.apply(this,arguments)},u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},u.prototype.compare=function(e,t,n,r,i){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var o=i-r,s=n-t,a=Math.min(o,s),c=this.slice(r,i),l=e.slice(t,n),f=0;f<a;++f)if(c[f]!==l[f]){o=c[f],s=l[f];break}return o<s?-1:s<o?1:0},u.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},u.prototype.indexOf=function(e,t,n){return M(this,e,t,n,!0)},u.prototype.lastIndexOf=function(e,t,n){return M(this,e,t,n,!1)},u.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"===typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return A(this,e,t,n);case"utf8":case"utf-8":return S(this,e,t,n);case"ascii":return N(this,e,t,n);case"latin1":case"binary":return b(this,e,t,n);case"base64":return w(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var L=4096;function U(e){var t=e.length;if(t<=L)return String.fromCharCode.apply(String,e);var n="",r=0;while(r<t)n+=String.fromCharCode.apply(String,e.slice(r,r+=L));return n}function x(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function P(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function j(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o<n;++o)i+=W(e[o]);return i}function k(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function z(e,t,n){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function G(e,t,n,r,i,o){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function B(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i<o;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function V(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i<o;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function Y(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function H(e,t,n,r,o){return o||Y(e,t,n,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,n,r,23,4),n+4}function F(e,t,n,r,o){return o||Y(e,t,n,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,n,r,52,8),n+8}u.prototype.slice=function(e,t){var n,r=this.length;if(e=~~e,t=void 0===t?r:~~t,e<0?(e+=r,e<0&&(e=0)):e>r&&(e=r),t<0?(t+=r,t<0&&(t=0)):t>r&&(t=r),t<e&&(t=e),u.TYPED_ARRAY_SUPPORT)n=this.subarray(e,t),n.__proto__=u.prototype;else{var i=t-e;n=new u(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+e]}return n},u.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||z(e,t,this.length);var r=this[e],i=1,o=0;while(++o<t&&(i*=256))r+=this[e+o]*i;return r},u.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||z(e,t,this.length);var r=this[e+--t],i=1;while(t>0&&(i*=256))r+=this[e+--t]*i;return r},u.prototype.readUInt8=function(e,t){return t||z(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||z(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||z(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||z(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||z(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||z(e,t,this.length);var r=this[e],i=1,o=0;while(++o<t&&(i*=256))r+=this[e+o]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||z(e,t,this.length);var r=t,i=1,o=this[e+--r];while(r>0&&(i*=256))o+=this[e+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return t||z(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||z(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){t||z(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return t||z(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||z(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||z(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||z(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||z(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||z(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t|=0,n|=0,!r){var i=Math.pow(2,8*n)-1;G(this,e,t,n,i,0)}var o=1,s=0;this[t]=255&e;while(++s<n&&(o*=256))this[t+s]=e/o&255;return t+n},u.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t|=0,n|=0,!r){var i=Math.pow(2,8*n)-1;G(this,e,t,n,i,0)}var o=n-1,s=1;this[t+o]=255&e;while(--o>=0&&(s*=256))this[t+o]=e/s&255;return t+n},u.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||G(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||G(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):B(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||G(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):B(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||G(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):V(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||G(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):V(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);G(this,e,t,n,i-1,-i)}var o=0,s=1,a=0;this[t]=255&e;while(++o<n&&(s*=256))e<0&&0===a&&0!==this[t+o-1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);G(this,e,t,n,i-1,-i)}var o=n-1,s=1,a=0;this[t+o]=255&e;while(--o>=0&&(s*=256))e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||G(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||G(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):B(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||G(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):B(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||G(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):V(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||G(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):V(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,n){return H(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return H(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return F(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return F(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,o=r-n;if(this===e&&n<t&&t<r)for(i=o-1;i>=0;--i)e[i+t]=this[i+n];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t);return o},u.prototype.fill=function(e,t,n,r){if("string"===typeof e){if("string"===typeof t?(r=t,t=0,n=this.length):"string"===typeof n&&(r=n,n=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==r&&"string"!==typeof r)throw new TypeError("encoding must be a string");if("string"===typeof r&&!u.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"===typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(o=t;o<n;++o)this[o]=e;else{var s=u.isBuffer(e)?e:q(new u(e,r).toString()),a=s.length;for(o=0;o<n-t;++o)this[o+t]=s[o%a]}return this};var Q=/[^+\/0-9A-Za-z-_]/g;function $(e){if(e=K(e).replace(Q,""),e.length<2)return"";while(e.length%4!==0)e+="=";return e}function K(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function W(e){return e<16?"0"+e.toString(16):e.toString(16)}function q(e,t){var n;t=t||1/0;for(var r=e.length,i=null,o=[],s=0;s<r;++s){if(n=e.charCodeAt(s),n>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(s+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function Z(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}function J(e,t){for(var n,r,i,o=[],s=0;s<e.length;++s){if((t-=2)<0)break;n=e.charCodeAt(s),r=n>>8,i=n%256,o.push(i),o.push(r)}return o}function X(e){return r.toByteArray($(e))}function ee(e,t,n,r){for(var i=0;i<r;++i){if(i+n>=t.length||i>=e.length)break;t[i+n]=e[i]}return i}function te(e){return e!==e}}).call(this,n("c8ba"))},b6e4:function(e,t,n){n("ec30")("Int32",4,(function(e){return function(t,n,r){return e(this,t,n,r)}}))},b72c:function(e,t,n){var r=n("5ca1"),i=n("d752");r(r.G+r.F*(parseFloat!=i),{parseFloat:i})},b749:function(e,t,n){"use strict";(function(){if("undefined"!==typeof window){var e,t="ontouchstart"in window;document.createTouch||(document.createTouch=function(e,t,r,i,o,s,a){return new n(t,r,{pageX:i,pageY:o,screenX:s,screenY:a,clientX:i-window.pageXOffset,clientY:o-window.pageYOffset},0,0)}),document.createTouchList||(document.createTouchList=function(){for(var e=i(),t=0;t<arguments.length;t++)e[t]=arguments[t];return e.length=arguments.length,e}),Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(e){var t=this;do{if(t.matches(e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null});var n=function(e,t,n,r,i){r=r||0,i=i||0,this.identifier=t,this.target=e,this.clientX=n.clientX+r,this.clientY=n.clientY+i,this.screenX=n.screenX+r,this.screenY=n.screenY+i,this.pageX=n.pageX+r,this.pageY=n.pageY+i},r=!1;u["multiTouchOffset"]=75,t||new u}function i(){var e=[];return e["item"]=function(e){return this[e]||null},e["identifiedTouch"]=function(e){return this[e+1]||null},e}function o(t){return function(n){"mousedown"===n.type&&(r=!0),"mouseup"===n.type&&(r=!1),("mousemove"!==n.type||r)&&(("mousedown"===n.type||!e||e&&!e.dispatchEvent)&&(e=n.target),null==e.closest("[data-no-touch-simulate]")&&s(t,n),"mouseup"===n.type&&(e=null))}}function s(t,n){var r=document.createEvent("Event");r.initEvent(t,!0,!0),r.altKey=n.altKey,r.ctrlKey=n.ctrlKey,r.metaKey=n.metaKey,r.shiftKey=n.shiftKey,r.touches=c(n),r.targetTouches=c(n),r.changedTouches=a(n),e.dispatchEvent(r)}function a(t){var r=i();return r.push(new n(e,1,t,0,0)),r}function c(e){return"mouseup"===e.type?i():a(e)}function u(){window.addEventListener("mousedown",o("touchstart"),!0),window.addEventListener("mousemove",o("touchmove"),!0),window.addEventListener("mouseup",o("touchend"),!0)}})()},b80b:function(e,t,n){var r=n("4f7f"),i=n("4379"),o=n("37a7"),s=n("cb7c"),a=n("38fd"),c=o.keys,u=o.key,l=function(e,t){var n=c(e,t),o=a(e);if(null===o)return n;var s=l(o,t);return s.length?n.length?i(new r(n.concat(s))):s:n};o.exp({getMetadataKeys:function(e){return l(s(e),arguments.length<2?void 0:u(arguments[1]))}})},b8e3:function(e,t){e.exports=!0},b9a1:function(e,t,n){"use strict";var r=n("5ca1"),i=n("4bf8"),o=n("6a99"),s=n("38fd"),a=n("11e9").f;n("9e1e")&&r(r.P+n("c5b4"),"Object",{__lookupGetter__:function(e){var t,n=i(this),r=o(e,!0);do{if(t=a(n,r))return t.get}while(n=s(n))}})},ba16:function(e,t,n){var r=n("5ca1"),i=n("11e9").f,o=n("cb7c");r(r.S,"Reflect",{deleteProperty:function(e,t){var n=i(o(e),t);return!(n&&!n.configurable)&&delete e[t]}})},ba31:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return c})),n.d(t,"c",(function(){return u}));var r=n("c31d"),i=n("2b0e"),o=["ref","key","style","class","attrs","refInFor","nativeOn","directives","staticClass","staticStyle"],s={nativeOn:"on"};function a(e,t){var n=o.reduce((function(t,n){return e.data[n]&&(t[s[n]||n]=e.data[n]),t}),{});return t&&(n.on=n.on||{},Object(r["a"])(n.on,e.data.on)),n}function c(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var o=e.listeners[t];o&&(Array.isArray(o)?o.forEach((function(e){e.apply(void 0,r)})):o.apply(void 0,r))}function u(e,t){var n=new i["default"]({el:document.createElement("div"),props:e.props,render:function(n){return n(e,Object(r["a"])({props:this.$props},t))}});return document.body.appendChild(n.$el),n}},ba92:function(e,t,n){"use strict";var r=n("4bf8"),i=n("77f1"),o=n("9def");e.exports=[].copyWithin||function(e,t){var n=r(this),s=o(n.length),a=i(e,s),c=i(t,s),u=arguments.length>2?arguments[2]:void 0,l=Math.min((void 0===u?s:i(u,s))-c,s-a),f=1;c<a&&a<c+l&&(f=-1,c+=l-1,a+=l-1);while(l-- >0)c in n?n[a]=n[c]:delete n[a],a+=f,c+=f;return n}},ba99:function(e,t,n){var r=n("6abf"),i=n("9aa9"),o=n("e4ae"),s=n("e53d").Reflect;e.exports=s&&s.ownKeys||function(e){var t=r.f(o(e)),n=i.f;return n?t.concat(n(e)):t}},bc13:function(e,t,n){var r=n("e53d"),i=r.navigator;e.exports=i&&i.userAgent||""},bc3a:function(e,t,n){e.exports=n("cee4")},bcaa:function(e,t,n){var r=n("cb7c"),i=n("d3f4"),o=n("a5b8");e.exports=function(e,t){if(r(e),i(t)&&t.constructor===e)return t;var n=o.f(e),s=n.resolve;return s(t),n.promise}},bd86:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("85f2"),i=n.n(r);function o(e,t,n){return t in e?i()(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},bdd1:function(e,t,n){n("c6a1")("WeakSet")},be13:function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},bef9:function(e,t,n){var r=n("2d95");e.exports=function(e,t){if("number"!=typeof e&&"Number"!=r(e))throw TypeError(t);return+e}},bf0b:function(e,t,n){var r=n("355d"),i=n("aebd"),o=n("36c3"),s=n("1bc3"),a=n("07e3"),c=n("794b"),u=Object.getOwnPropertyDescriptor;t.f=n("8e60")?u:function(e,t){if(e=o(e),t=s(t,!0),c)try{return u(e,t)}catch(n){}if(a(e,t))return i(!r.f.call(e,t),e[t])}},bf90:function(e,t,n){var r=n("36c3"),i=n("bf0b").f;n("ce7e")("getOwnPropertyDescriptor",(function(){return function(e,t){return i(r(e),t)}}))},c02b:function(e,t,n){"use strict";var r=n("643e"),i=n("b39a"),o="WeakSet";n("e0b8")(o,(function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(e){return r.def(i(this,o),e,!0)}},r,!1,!0)},c098:function(e,t,n){e.exports=n("d4af")},c189:function(e,t,n){"use strict";var r=n("79aa"),i=n("f772"),o=n("3024"),s=[].slice,a={},c=function(e,t,n){if(!(t in a)){for(var r=[],i=0;i<t;i++)r[i]="a["+i+"]";a[t]=Function("F,a","return new F("+r.join(",")+")")}return a[t](e,n)};e.exports=Function.bind||function(e){var t=r(this),n=s.call(arguments,1),a=function(){var r=n.concat(s.call(arguments));return this instanceof a?c(t,r.length,r):o(t,r,e)};return i(t.prototype)&&(a.prototype=t.prototype),a}},c207:function(e,t){},c26b:function(e,t,n){"use strict";var r=n("86cc").f,i=n("2aeb"),o=n("dcbc"),s=n("9b43"),a=n("f605"),c=n("4a59"),u=n("01f9"),l=n("d53b"),f=n("7a56"),h=n("9e1e"),d=n("67ab").fastKey,p=n("b39a"),g=h?"_s":"size",v=function(e,t){var n,r=d(t);if("F"!==r)return e._i[r];for(n=e._f;n;n=n.n)if(n.k==t)return n};e.exports={getConstructor:function(e,t,n,u){var l=e((function(e,r){a(e,l,t,"_i"),e._t=t,e._i=i(null),e._f=void 0,e._l=void 0,e[g]=0,void 0!=r&&c(r,n,e[u],e)}));return o(l.prototype,{clear:function(){for(var e=p(this,t),n=e._i,r=e._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];e._f=e._l=void 0,e[g]=0},delete:function(e){var n=p(this,t),r=v(n,e);if(r){var i=r.n,o=r.p;delete n._i[r.i],r.r=!0,o&&(o.n=i),i&&(i.p=o),n._f==r&&(n._f=i),n._l==r&&(n._l=o),n[g]--}return!!r},forEach:function(e){p(this,t);var n,r=s(e,arguments.length>1?arguments[1]:void 0,3);while(n=n?n.n:this._f){r(n.v,n.k,this);while(n&&n.r)n=n.p}},has:function(e){return!!v(p(this,t),e)}}),h&&r(l.prototype,"size",{get:function(){return p(this,t)[g]}}),l},def:function(e,t,n){var r,i,o=v(e,t);return o?o.v=n:(e._l=o={i:i=d(t,!0),k:t,v:n,p:r=e._l,n:void 0,r:!1},e._f||(e._f=o),r&&(r.n=o),e[g]++,"F"!==i&&(e._i[i]=o)),e},getEntry:v,setStrong:function(e,t,n){u(e,t,(function(e,n){this._t=p(e,t),this._k=n,this._l=void 0}),(function(){var e=this,t=e._k,n=e._l;while(n&&n.r)n=n.p;return e._t&&(e._l=n=n?n.n:e._t._f)?l(0,"keys"==t?n.k:"values"==t?n.v:[n.k,n.v]):(e._t=void 0,l(1))}),n?"entries":"values",!n,!0),f(t)}}},c31d:function(e,t,n){"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,"a",(function(){return r}))},c345:function(e,t,n){"use strict";var r=n("c532"),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,o,s={};return e?(r.forEach(e.split("\n"),(function(e){if(o=e.indexOf(":"),t=r.trim(e.substr(0,o)).toLowerCase(),n=r.trim(e.substr(o+1)),t){if(s[t]&&i.indexOf(t)>=0)return;s[t]="set-cookie"===t?(s[t]?s[t]:[]).concat([n]):s[t]?s[t]+", "+n:n}})),s):s}},c366:function(e,t,n){var r=n("6821"),i=n("9def"),o=n("77f1");e.exports=function(e){return function(t,n,s){var a,c=r(t),u=i(c.length),l=o(s,u);if(e&&n!=n){while(u>l)if(a=c[l++],a!=a)return!0}else for(;u>l;l++)if((e||l in c)&&c[l]===n)return e||l||0;return!e&&-1}}},c367:function(e,t,n){"use strict";var r=n("8436"),i=n("50ed"),o=n("481b"),s=n("36c3");e.exports=n("30f1")(Array,"Array",(function(e,t){this._t=s(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},c3a1:function(e,t,n){var r=n("e6f3"),i=n("1691");e.exports=Object.keys||function(e){return r(e,i)}},c401:function(e,t,n){"use strict";var r=n("c532");e.exports=function(e,t,n){return r.forEach(n,(function(n){e=n(e,t)})),e}},c45f:function(e,t,n){"use strict";var r=n("1169"),i=n("d3f4"),o=n("9def"),s=n("9b43"),a=n("2b4c")("isConcatSpreadable");function c(e,t,n,u,l,f,h,d){var p,g,v=l,y=0,m=!!h&&s(h,d,3);while(y<u){if(y in n){if(p=m?m(n[y],y,t):n[y],g=!1,i(p)&&(g=p[a],g=void 0!==g?!!g:r(p)),g&&f>0)v=c(e,t,p,o(p.length),v,f-1)-1;else{if(v>=9007199254740991)throw TypeError();e[v]=p}v++}y++}return v}e.exports=c},c4d8:function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{while((void 0===t||t-- >0)&&!(r=o.next()).done)s.push(r.value)}catch(a){i={error:a}}finally{try{r&&!r.done&&(n=o["return"])&&n.call(o)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0;var s=o(n("9675")),a=o(n("d540")),c=n("3b74"),u=Array.isArray;function l(e){var t=void 0===e?{}:e,n=t.customizeArray,o=t.customizeObject,f=t.key;return function e(t,h,d){var p=f?f+"."+d:d;if(c.isFunction(t)&&c.isFunction(h))return function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];return e(t.apply(void 0,i([],r(n))),h.apply(void 0,i([],r(n))),d)};if(u(t)&&u(h)){var g=n&&n(t,h,p);return g||i(i([],r(t)),r(h))}if(c.isRegex(h))return h;if(c.isPlainObject(t)&&c.isPlainObject(h)){g=o&&o(t,h,p);return g||a["default"]([t,h],l({customizeArray:n,customizeObject:o,key:p}))}return c.isPlainObject(h)?s["default"](h):u(h)?i([],r(h)):h}}t["default"]=l},c532:function(e,t,n){"use strict";var r=n("1d2b"),i=n("044b"),o=Object.prototype.toString;function s(e){return"[object Array]"===o.call(e)}function a(e){return"[object ArrayBuffer]"===o.call(e)}function c(e){return"undefined"!==typeof FormData&&e instanceof FormData}function u(e){var t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer,t}function l(e){return"string"===typeof e}function f(e){return"number"===typeof e}function h(e){return"undefined"===typeof e}function d(e){return null!==e&&"object"===typeof e}function p(e){return"[object Date]"===o.call(e)}function g(e){return"[object File]"===o.call(e)}function v(e){return"[object Blob]"===o.call(e)}function y(e){return"[object Function]"===o.call(e)}function m(e){return d(e)&&y(e.pipe)}function I(e){return"undefined"!==typeof URLSearchParams&&e instanceof URLSearchParams}function _(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}function T(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)}function C(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),s(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}function M(){var e={};function t(t,n){"object"===typeof e[n]&&"object"===typeof t?e[n]=M(e[n],t):e[n]=t}for(var n=0,r=arguments.length;n<r;n++)C(arguments[n],t);return e}function E(e,t,n){return C(t,(function(t,i){e[i]=n&&"function"===typeof t?r(t,n):t})),e}e.exports={isArray:s,isArrayBuffer:a,isBuffer:i,isFormData:c,isArrayBufferView:u,isString:l,isNumber:f,isObject:d,isUndefined:h,isDate:p,isFile:g,isBlob:v,isFunction:y,isStream:m,isURLSearchParams:I,isStandardBrowserEnv:T,forEach:C,merge:M,extend:E,trim:_}},c5b4:function(e,t,n){"use strict";e.exports=n("2d00")||!n("79e5")((function(){var e=Math.random();__defineSetter__.call(null,e,(function(){})),delete n("7726")[e]}))},c5f6:function(e,t,n){"use strict";var r=n("7726"),i=n("69a8"),o=n("2d95"),s=n("5dbc"),a=n("6a99"),c=n("79e5"),u=n("9093").f,l=n("11e9").f,f=n("86cc").f,h=n("aa77").trim,d="Number",p=r[d],g=p,v=p.prototype,y=o(n("2aeb")(v))==d,m="trim"in String.prototype,I=function(e){var t=a(e,!1);if("string"==typeof t&&t.length>2){t=m?t.trim():h(t,3);var n,r,i,o=t.charCodeAt(0);if(43===o||45===o){if(n=t.charCodeAt(2),88===n||120===n)return NaN}else if(48===o){switch(t.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+t}for(var s,c=t.slice(2),u=0,l=c.length;u<l;u++)if(s=c.charCodeAt(u),s<48||s>i)return NaN;return parseInt(c,r)}}return+t};if(!p(" 0o1")||!p("0b1")||p("+0x1")){p=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof p&&(y?c((function(){v.valueOf.call(n)})):o(n)!=d)?s(new g(I(t)),n,p):I(t)};for(var _,T=n("9e1e")?u(g):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),C=0;T.length>C;C++)i(g,_=T[C])&&!i(p,_)&&f(p,_,l(g,_));p.prototype=v,v.constructor=p,n("2aba")(r,d,p)}},c603:function(e,t,n){"use strict";var r=n("a5b2"),i=n.n(r),o=n("6bb5");function s(){if("undefined"===typeof Reflect||!i.a)return!1;if(i.a.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(i()(Boolean,[],(function(){}))),!0}catch(e){return!1}}var a=n("308d");function c(e){var t=s();return function(){var n,r=Object(o["a"])(e);if(t){var s=Object(o["a"])(this).constructor;n=i()(r,arguments,s)}else n=r.apply(this,arguments);return Object(a["a"])(this,n)}}n.d(t,"a",(function(){return c}))},c66f:function(e,t,n){"use strict";var r=n("5ca1"),i=n("0f88"),o=n("ed0b"),s=n("cb7c"),a=n("77f1"),c=n("9def"),u=n("d3f4"),l=n("7726").ArrayBuffer,f=n("ebd6"),h=o.ArrayBuffer,d=o.DataView,p=i.ABV&&l.isView,g=h.prototype.slice,v=i.VIEW,y="ArrayBuffer";r(r.G+r.W+r.F*(l!==h),{ArrayBuffer:h}),r(r.S+r.F*!i.CONSTR,y,{isView:function(e){return p&&p(e)||u(e)&&v in e}}),r(r.P+r.U+r.F*n("79e5")((function(){return!new h(2).slice(1,void 0).byteLength})),y,{slice:function(e,t){if(void 0!==g&&void 0===t)return g.call(s(this),e);var n=s(this).byteLength,r=a(e,n),i=a(void 0===t?n:t,n),o=new(f(this,h))(c(i-r)),u=new d(this),l=new d(o),p=0;while(r<i)l.setUint8(p++,u.getUint8(r++));return o}}),n("7a56")(y)},c698:function(e,t,n){var r=n("5ca1");r(r.S,"Reflect",{ownKeys:n("990b")})},c69a:function(e,t,n){e.exports=!n("9e1e")&&!n("79e5")((function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).a}))},c6a1:function(e,t,n){"use strict";var r=n("5ca1");e.exports=function(e){r(r.S,e,{of:function(){var e=arguments.length,t=new Array(e);while(e--)t[e]=arguments[e];return new this(t)}})}},c775:function(e,t,n){var r=n("5ca1");r(r.S,"Math",{scale:n("e9d2")})},c7c6:function(e,t,n){var r=n("5ca1"),i=Math.abs;r(r.S,"Math",{hypot:function(e,t){var n,r,o=0,s=0,a=arguments.length,c=0;while(s<a)n=i(arguments[s++]),c<n?(r=c/n,o=o*r*r+1,c=n):n>0?(r=n/c,o+=r*r):o+=n;return c===1/0?1/0:c*Math.sqrt(o)}})},c7c62:function(e,t,n){var r=n("5ca1"),i=n("2d5c"),o=Math.exp;r(r.S,"Math",{tanh:function(e){var t=i(e=+e),n=i(-e);return t==1/0?1:n==1/0?-1:(t-n)/(o(e)+o(-e))}})},c7ca:function(e,t,n){n("3a72")("observable")},c80c:function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var r=n("7618"),i=n("67bb"),o=n.n(i),s=n("85f2"),a=n.n(s),c=n("4aa6"),u=n.n(c),l=n("061b"),f=n.n(l),h=n("4d16"),d=n.n(h),p=n("795b"),g=n.n(p);function v(){
- /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
- v=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,i="function"==typeof o.a?o.a:{},s=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function h(e,t,n){return a()(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{h({},"")}catch(U){h=function(e,t,n){return e[t]=n}}function p(e,t,n,r){var i=t&&t.prototype instanceof I?t:I,o=u()(i.prototype),s=new R(r||[]);return o._invoke=function(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return L()}for(n.method=i,n.arg=o;;){var s=n.delegate;if(s){var a=b(s,n);if(a){if(a===m)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=y(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===m)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(e,n,s),o}function y(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(U){return{type:"throw",arg:U}}}e.wrap=p;var m={};function I(){}function _(){}function T(){}var C={};h(C,s,(function(){return this}));var M=f.a,E=M&&M(M(D([])));E&&E!==t&&n.call(E,s)&&(C=E);var A=T.prototype=I.prototype=u()(C);function S(e){["next","throw","return"].forEach((function(t){h(e,t,(function(e){return this._invoke(t,e)}))}))}function N(e,t){function i(o,s,a,c){var u=y(e[o],e,s);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==Object(r["a"])(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){i("next",e,a,c)}),(function(e){i("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return i("throw",e,a,c)}))}c(u.arg)}var o;this._invoke=function(e,n){function r(){return new t((function(t,r){i(e,n,t,r)}))}return o=o?o.then(r,r):r()}}function b(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator["return"]&&(t.method="return",t.arg=void 0,b(e,t),"throw"===t.method))return m;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var r=y(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,m;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,m):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,m)}function w(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 R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function D(e){if(e){var t=e[s];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:L}}function L(){return{value:void 0,done:!0}}return _.prototype=T,h(A,"constructor",T),h(T,"constructor",_),_.displayName=h(T,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===_||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return d.a?d()(e,T):(e.__proto__=T,h(e,l,"GeneratorFunction")),e.prototype=u()(A),e},e.awrap=function(e){return{__await:e}},S(N.prototype),h(N.prototype,c,(function(){return this})),e.AsyncIterator=N,e.async=function(t,n,r,i,o){void 0===o&&(o=g.a);var s=new N(p(t,n,r,i),o);return e.isGeneratorFunction(n)?s:s.next().then((function(e){return e.done?e.value:s.next()}))},S(A),h(A,l,"Generator"),h(A,s,(function(){return this})),h(A,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=D,R.prototype={constructor:R,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return s.type="throw",s.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],s=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var a=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(a&&c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var s=o?o.completion:{};return s.type=e,s.arg=t,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(s)},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 i=r.arg;O(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:D(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),m}},e}},c8af:function(e,t,n){"use strict";var r=n("c532");e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},c8ba:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}e.exports=n},c8ce:function(e,t,n){var r=n("2b4c")("toPrimitive"),i=Date.prototype;r in i||n("32e9")(i,r,n("8381"))},c98f:function(e,t,n){(function(e,n){var r=200,i="Expected a function",o="__lodash_hash_undefined__",s=1,a=2,c=1/0,u=9007199254740991,l="[object Arguments]",f="[object Array]",h="[object Boolean]",d="[object Date]",p="[object Error]",g="[object Function]",v="[object GeneratorFunction]",y="[object Map]",m="[object Number]",I="[object Object]",_="[object Promise]",T="[object RegExp]",C="[object Set]",M="[object String]",E="[object Symbol]",A="[object WeakMap]",S="[object ArrayBuffer]",N="[object DataView]",b="[object Float32Array]",w="[object Float64Array]",O="[object Int8Array]",R="[object Int16Array]",D="[object Int32Array]",L="[object Uint8Array]",U="[object Uint8ClampedArray]",x="[object Uint16Array]",P="[object Uint32Array]",j=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,k=/^\w*$/,z=/^\./,G=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,B=/[\\^$.*+?()[\]{}|]/g,V=/\\(\\)?/g,Y=/^\[object .+?Constructor\]$/,H=/^(?:0|[1-9]\d*)$/,F={};F[b]=F[w]=F[O]=F[R]=F[D]=F[L]=F[U]=F[x]=F[P]=!0,F[l]=F[f]=F[S]=F[h]=F[N]=F[d]=F[p]=F[g]=F[y]=F[m]=F[I]=F[T]=F[C]=F[M]=F[A]=!1;var Q="object"==typeof e&&e&&e.Object===Object&&e,$="object"==typeof self&&self&&self.Object===Object&&self,K=Q||$||Function("return this")(),W=t&&!t.nodeType&&t,q=W&&"object"==typeof n&&n&&!n.nodeType&&n,Z=q&&q.exports===W,J=Z&&Q.process,X=function(){try{return J&&J.binding("util")}catch(e){}}(),ee=X&&X.isTypedArray;function te(e,t){var n=-1,r=e?e.length:0;while(++n<r)if(!1===t(e[n],n,e))break;return e}function ne(e,t){var n=-1,r=e?e.length:0;while(++n<r)if(t(e[n],n,e))return!0;return!1}function re(e){return function(t){return null==t?void 0:t[e]}}function ie(e,t){var n=-1,r=Array(e);while(++n<e)r[n]=t(n);return r}function oe(e){return function(t){return e(t)}}function se(e,t){return null==e?void 0:e[t]}function ae(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(n){}return t}function ce(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function ue(e,t){return function(n){return e(t(n))}}function le(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var fe=Array.prototype,he=Function.prototype,de=Object.prototype,pe=K["__core-js_shared__"],ge=function(){var e=/[^.]+$/.exec(pe&&pe.keys&&pe.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),ve=he.toString,ye=de.hasOwnProperty,me=de.toString,Ie=RegExp("^"+ve.call(ye).replace(B,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),_e=K.Symbol,Te=K.Uint8Array,Ce=ue(Object.getPrototypeOf,Object),Me=Object.create,Ee=de.propertyIsEnumerable,Ae=fe.splice,Se=ue(Object.keys,Object),Ne=Gt(K,"DataView"),be=Gt(K,"Map"),we=Gt(K,"Promise"),Oe=Gt(K,"Set"),Re=Gt(K,"WeakMap"),De=Gt(Object,"create"),Le=Jt(Ne),Ue=Jt(be),xe=Jt(we),Pe=Jt(Oe),je=Jt(Re),ke=_e?_e.prototype:void 0,ze=ke?ke.valueOf:void 0,Ge=ke?ke.toString:void 0;function Be(e){var t=-1,n=e?e.length:0;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}function Ve(){this.__data__=De?De(null):{}}function Ye(e){return this.has(e)&&delete this.__data__[e]}function He(e){var t=this.__data__;if(De){var n=t[e];return n===o?void 0:n}return ye.call(t,e)?t[e]:void 0}function Fe(e){var t=this.__data__;return De?void 0!==t[e]:ye.call(t,e)}function Qe(e,t){var n=this.__data__;return n[e]=De&&void 0===t?o:t,this}function $e(e){var t=-1,n=e?e.length:0;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}function Ke(){this.__data__=[]}function We(e){var t=this.__data__,n=gt(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Ae.call(t,n,1),!0}function qe(e){var t=this.__data__,n=gt(t,e);return n<0?void 0:t[n][1]}function Ze(e){return gt(this.__data__,e)>-1}function Je(e,t){var n=this.__data__,r=gt(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}function Xe(e){var t=-1,n=e?e.length:0;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}function et(){this.__data__={hash:new Be,map:new(be||$e),string:new Be}}function tt(e){return kt(this,e)["delete"](e)}function nt(e){return kt(this,e).get(e)}function rt(e){return kt(this,e).has(e)}function it(e,t){return kt(this,e).set(e,t),this}function ot(e){var t=-1,n=e?e.length:0;this.__data__=new Xe;while(++t<n)this.add(e[t])}function st(e){return this.__data__.set(e,o),this}function at(e){return this.__data__.has(e)}function ct(e){this.__data__=new $e(e)}function ut(){this.__data__=new $e}function lt(e){return this.__data__["delete"](e)}function ft(e){return this.__data__.get(e)}function ht(e){return this.__data__.has(e)}function dt(e,t){var n=this.__data__;if(n instanceof $e){var i=n.__data__;if(!be||i.length<r-1)return i.push([e,t]),this;n=this.__data__=new Xe(i)}return n.set(e,t),this}function pt(e,t){var n=nn(e)||tn(e)?ie(e.length,String):[],r=n.length,i=!!r;for(var o in e)!t&&!ye.call(e,o)||i&&("length"==o||Yt(o,r))||n.push(o);return n}function gt(e,t){var n=e.length;while(n--)if(en(e[n][0],t))return n;return-1}function vt(e){return cn(e)?Me(e):{}}Be.prototype.clear=Ve,Be.prototype["delete"]=Ye,Be.prototype.get=He,Be.prototype.has=Fe,Be.prototype.set=Qe,$e.prototype.clear=Ke,$e.prototype["delete"]=We,$e.prototype.get=qe,$e.prototype.has=Ze,$e.prototype.set=Je,Xe.prototype.clear=et,Xe.prototype["delete"]=tt,Xe.prototype.get=nt,Xe.prototype.has=rt,Xe.prototype.set=it,ot.prototype.add=ot.prototype.push=st,ot.prototype.has=at,ct.prototype.clear=ut,ct.prototype["delete"]=lt,ct.prototype.get=ft,ct.prototype.has=ht,ct.prototype.set=dt;var yt=Ut();function mt(e,t){return e&&yt(e,t,gn)}function It(e,t){t=Ht(t,e)?[t]:Lt(t);var n=0,r=t.length;while(null!=e&&n<r)e=e[Zt(t[n++])];return n&&n==r?e:void 0}function _t(e){return me.call(e)}function Tt(e,t){return null!=e&&t in Object(e)}function Ct(e,t,n,r,i){return e===t||(null==e||null==t||!cn(e)&&!un(t)?e!==e&&t!==t:Mt(e,t,Ct,n,r,i))}function Mt(e,t,n,r,i,o){var s=nn(e),c=nn(t),u=f,h=f;s||(u=Bt(e),u=u==l?I:u),c||(h=Bt(t),h=h==l?I:h);var d=u==I&&!ae(e),p=h==I&&!ae(t),g=u==h;if(g&&!d)return o||(o=new ct),s||fn(e)?xt(e,t,n,r,i,o):Pt(e,t,u,n,r,i,o);if(!(i&a)){var v=d&&ye.call(e,"__wrapped__"),y=p&&ye.call(t,"__wrapped__");if(v||y){var m=v?e.value():e,_=y?t.value():t;return o||(o=new ct),n(m,_,r,i,o)}}return!!g&&(o||(o=new ct),jt(e,t,n,r,i,o))}function Et(e,t,n,r){var i=n.length,o=i,c=!r;if(null==e)return!o;e=Object(e);while(i--){var u=n[i];if(c&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}while(++i<o){u=n[i];var l=u[0],f=e[l],h=u[1];if(c&&u[2]){if(void 0===f&&!(l in e))return!1}else{var d=new ct;if(r)var p=r(f,h,l,e,t,d);if(!(void 0===p?Ct(h,f,r,s|a,d):p))return!1}}return!0}function At(e){if(!cn(e)||Qt(e))return!1;var t=sn(e)||ae(e)?Ie:Y;return t.test(Jt(e))}function St(e){return un(e)&&an(e.length)&&!!F[me.call(e)]}function Nt(e){return"function"==typeof e?e:null==e?yn:"object"==typeof e?nn(e)?Ot(e[0],e[1]):wt(e):mn(e)}function bt(e){if(!$t(e))return Se(e);var t=[];for(var n in Object(e))ye.call(e,n)&&"constructor"!=n&&t.push(n);return t}function wt(e){var t=zt(e);return 1==t.length&&t[0][2]?Wt(t[0][0],t[0][1]):function(n){return n===e||Et(n,e,t)}}function Ot(e,t){return Ht(e)&&Kt(t)?Wt(Zt(e),t):function(n){var r=dn(n,e);return void 0===r&&r===t?pn(n,e):Ct(t,r,void 0,s|a)}}function Rt(e){return function(t){return It(t,e)}}function Dt(e){if("string"==typeof e)return e;if(ln(e))return Ge?Ge.call(e):"";var t=e+"";return"0"==t&&1/e==-c?"-0":t}function Lt(e){return nn(e)?e:qt(e)}function Ut(e){return function(t,n,r){var i=-1,o=Object(t),s=r(t),a=s.length;while(a--){var c=s[e?a:++i];if(!1===n(o[c],c,o))break}return t}}function xt(e,t,n,r,i,o){var c=i&a,u=e.length,l=t.length;if(u!=l&&!(c&&l>u))return!1;var f=o.get(e);if(f&&o.get(t))return f==t;var h=-1,d=!0,p=i&s?new ot:void 0;o.set(e,t),o.set(t,e);while(++h<u){var g=e[h],v=t[h];if(r)var y=c?r(v,g,h,t,e,o):r(g,v,h,e,t,o);if(void 0!==y){if(y)continue;d=!1;break}if(p){if(!ne(t,(function(e,t){if(!p.has(t)&&(g===e||n(g,e,r,i,o)))return p.add(t)}))){d=!1;break}}else if(g!==v&&!n(g,v,r,i,o)){d=!1;break}}return o["delete"](e),o["delete"](t),d}function Pt(e,t,n,r,i,o,c){switch(n){case N:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case S:return!(e.byteLength!=t.byteLength||!r(new Te(e),new Te(t)));case h:case d:case m:return en(+e,+t);case p:return e.name==t.name&&e.message==t.message;case T:case M:return e==t+"";case y:var u=ce;case C:var l=o&a;if(u||(u=le),e.size!=t.size&&!l)return!1;var f=c.get(e);if(f)return f==t;o|=s,c.set(e,t);var g=xt(u(e),u(t),r,i,o,c);return c["delete"](e),g;case E:if(ze)return ze.call(e)==ze.call(t)}return!1}function jt(e,t,n,r,i,o){var s=i&a,c=gn(e),u=c.length,l=gn(t),f=l.length;if(u!=f&&!s)return!1;var h=u;while(h--){var d=c[h];if(!(s?d in t:ye.call(t,d)))return!1}var p=o.get(e);if(p&&o.get(t))return p==t;var g=!0;o.set(e,t),o.set(t,e);var v=s;while(++h<u){d=c[h];var y=e[d],m=t[d];if(r)var I=s?r(m,y,d,t,e,o):r(y,m,d,e,t,o);if(!(void 0===I?y===m||n(y,m,r,i,o):I)){g=!1;break}v||(v="constructor"==d)}if(g&&!v){var _=e.constructor,T=t.constructor;_==T||!("constructor"in e)||!("constructor"in t)||"function"==typeof _&&_ instanceof _&&"function"==typeof T&&T instanceof T||(g=!1)}return o["delete"](e),o["delete"](t),g}function kt(e,t){var n=e.__data__;return Ft(t)?n["string"==typeof t?"string":"hash"]:n.map}function zt(e){var t=gn(e),n=t.length;while(n--){var r=t[n],i=e[r];t[n]=[r,i,Kt(i)]}return t}function Gt(e,t){var n=se(e,t);return At(n)?n:void 0}var Bt=_t;function Vt(e,t,n){t=Ht(t,e)?[t]:Lt(t);var r,i=-1,o=t.length;while(++i<o){var s=Zt(t[i]);if(!(r=null!=e&&n(e,s)))break;e=e[s]}if(r)return r;o=e?e.length:0;return!!o&&an(o)&&Yt(s,o)&&(nn(e)||tn(e))}function Yt(e,t){return t=null==t?u:t,!!t&&("number"==typeof e||H.test(e))&&e>-1&&e%1==0&&e<t}function Ht(e,t){if(nn(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!ln(e))||(k.test(e)||!j.test(e)||null!=t&&e in Object(t))}function Ft(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}function Qt(e){return!!ge&&ge in e}function $t(e){var t=e&&e.constructor,n="function"==typeof t&&t.prototype||de;return e===n}function Kt(e){return e===e&&!cn(e)}function Wt(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}(Ne&&Bt(new Ne(new ArrayBuffer(1)))!=N||be&&Bt(new be)!=y||we&&Bt(we.resolve())!=_||Oe&&Bt(new Oe)!=C||Re&&Bt(new Re)!=A)&&(Bt=function(e){var t=me.call(e),n=t==I?e.constructor:void 0,r=n?Jt(n):void 0;if(r)switch(r){case Le:return N;case Ue:return y;case xe:return _;case Pe:return C;case je:return A}return t});var qt=Xt((function(e){e=hn(e);var t=[];return z.test(e)&&t.push(""),e.replace(G,(function(e,n,r,i){t.push(r?i.replace(V,"$1"):n||e)})),t}));function Zt(e){if("string"==typeof e||ln(e))return e;var t=e+"";return"0"==t&&1/e==-c?"-0":t}function Jt(e){if(null!=e){try{return ve.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function Xt(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError(i);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=e.apply(this,r);return n.cache=o.set(i,s),s};return n.cache=new(Xt.Cache||Xe),n}function en(e,t){return e===t||e!==e&&t!==t}function tn(e){return on(e)&&ye.call(e,"callee")&&(!Ee.call(e,"callee")||me.call(e)==l)}Xt.Cache=Xe;var nn=Array.isArray;function rn(e){return null!=e&&an(e.length)&&!sn(e)}function on(e){return un(e)&&rn(e)}function sn(e){var t=cn(e)?me.call(e):"";return t==g||t==v}function an(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=u}function cn(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function un(e){return!!e&&"object"==typeof e}function ln(e){return"symbol"==typeof e||un(e)&&me.call(e)==E}var fn=ee?oe(ee):St;function hn(e){return null==e?"":Dt(e)}function dn(e,t,n){var r=null==e?void 0:It(e,t);return void 0===r?n:r}function pn(e,t){return null!=e&&Vt(e,t,Tt)}function gn(e){return rn(e)?pt(e):bt(e)}function vn(e,t,n){var r=nn(e)||fn(e);if(t=Nt(t,4),null==n)if(r||cn(e)){var i=e.constructor;n=r?nn(e)?new i:[]:sn(i)?vt(Ce(e)):{}}else n={};return(r?te:mt)(e,(function(e,r,i){return t(n,e,r,i)})),n}function yn(e){return e}function mn(e){return Ht(e)?re(Zt(e)):Rt(e)}n.exports=vn}).call(this,n("c8ba"),n("62e4")(e))},ca5a:function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},cadf:function(e,t,n){"use strict";var r=n("9c6c"),i=n("d53b"),o=n("84f2"),s=n("6821");e.exports=n("01f9")(Array,"Array",(function(e,t){this._t=s(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},cb7c:function(e,t,n){var r=n("d3f4");e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},ccb9:function(e,t,n){t.f=n("5168")},cd1c:function(e,t,n){var r=n("e853");e.exports=function(e,t){return new(r(e))(t)}},cd78:function(e,t,n){var r=n("e4ae"),i=n("f772"),o=n("656e");e.exports=function(e,t){if(r(e),i(t)&&t.constructor===e)return t;var n=o.f(e),s=n.resolve;return s(t),n.promise}},cd93:function(e,t){var n="[object Object]";function r(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(n){}return t}function i(e,t){return function(n){return e(t(n))}}var o=Function.prototype,s=Object.prototype,a=o.toString,c=s.hasOwnProperty,u=a.call(Object),l=s.toString,f=i(Object.getPrototypeOf,Object);function h(e){return!!e&&"object"==typeof e}function d(e){if(!h(e)||l.call(e)!=n||r(e))return!1;var t=f(e);if(null===t)return!0;var i=c.call(t,"constructor")&&t.constructor;return"function"==typeof i&&i instanceof i&&a.call(i)==u}e.exports=d},ce10:function(e,t,n){var r=n("69a8"),i=n("6821"),o=n("c366")(!1),s=n("613b")("IE_PROTO");e.exports=function(e,t){var n,a=i(e),c=0,u=[];for(n in a)n!=s&&r(a,n)&&u.push(n);while(t.length>c)r(a,n=t[c++])&&(~o(u,n)||u.push(n));return u}},ce7e:function(e,t,n){var r=n("63b6"),i=n("584a"),o=n("294c");e.exports=function(e,t){var n=(i.Object||{})[e]||Object[e],s={};s[e]=t(n),r(r.S+r.F*o((function(){n(1)})),"Object",s)}},ceaf:function(e,t,n){var r=n("37a7"),i=n("cb7c"),o=r.key,s=r.map,a=r.store;r.exp({deleteMetadata:function(e,t){var n=arguments.length<3?void 0:o(arguments[2]),r=s(i(t),n,!1);if(void 0===r||!r["delete"](e))return!1;if(r.size)return!0;var c=a.get(t);return c["delete"](n),!!c.size||a["delete"](t)}})},cee4:function(e,t,n){"use strict";var r=n("c532"),i=n("1d2b"),o=n("0a06"),s=n("2444");function a(e){var t=new o(e),n=i(o.prototype.request,t);return r.extend(n,o.prototype,t),r.extend(n,t),n}var c=a(s);c.Axios=o,c.create=function(e){return a(r.merge(s,e))},c.Cancel=n("7a77"),c.CancelToken=n("8df4"),c.isCancel=n("2e67"),c.all=function(e){return Promise.all(e)},c.spread=n("0df6"),e.exports=c,e.exports.default=c},cf6a:function(e,t,n){var r=n("d3f4"),i=n("67ab").onFreeze;n("5eda")("seal",(function(e){return function(t){return e&&r(t)?e(i(t)):t}}))},d04f:function(e,t,n){n("7a56")("Array")},d0b0:function(e,t,n){"use strict";n("386b")("italics",(function(e){return function(){return e(this,"i","","")}}))},d0ca:function(e,t,n){var r=n("5ca1"),i=n("abd7")(/[\\^$*+?.()|[\]{}]/g,"\\$&");r(r.S,"RegExp",{escape:function(e){return i(e)}})},d185:function(e,t,n){var r=n("11e9"),i=n("38fd"),o=n("69a8"),s=n("5ca1"),a=n("d3f4"),c=n("cb7c");function u(e,t){var n,s,l=arguments.length<3?e:arguments[2];return c(e)===l?e[t]:(n=r.f(e,t))?o(n,"value")?n.value:void 0!==n.get?n.get.call(l):void 0:a(s=i(e))?u(s,t,l):void 0}s(s.S,"Reflect",{get:u})},d225:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",(function(){return r}))},d233:function(e,t,n){"use strict";var r=n("b313"),i=Object.prototype.hasOwnProperty,o=Array.isArray,s=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),a=function(e){while(e.length>1){var t=e.pop(),n=t.obj[t.prop];if(o(n)){for(var r=[],i=0;i<n.length;++i)"undefined"!==typeof n[i]&&r.push(n[i]);t.obj[t.prop]=r}}},c=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)"undefined"!==typeof e[r]&&(n[r]=e[r]);return n},u=function e(t,n,r){if(!n)return t;if("object"!==typeof n){if(o(t))t.push(n);else{if(!t||"object"!==typeof t)return[t,n];(r&&(r.plainObjects||r.allowPrototypes)||!i.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!==typeof t)return[t].concat(n);var s=t;return o(t)&&!o(n)&&(s=c(t,r)),o(t)&&o(n)?(n.forEach((function(n,o){if(i.call(t,o)){var s=t[o];s&&"object"===typeof s&&n&&"object"===typeof n?t[o]=e(s,n,r):t.push(n)}else t[o]=n})),t):Object.keys(n).reduce((function(t,o){var s=n[o];return i.call(t,o)?t[o]=e(t[o],s,r):t[o]=s,t}),s)},l=function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},f=function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(i){return r}},h=function(e,t,n,i,o){if(0===e.length)return e;var a=e;if("symbol"===typeof e?a=Symbol.prototype.toString.call(e):"string"!==typeof e&&(a=String(e)),"iso-8859-1"===n)return escape(a).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var c="",u=0;u<a.length;++u){var l=a.charCodeAt(u);45===l||46===l||95===l||126===l||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||o===r.RFC1738&&(40===l||41===l)?c+=a.charAt(u):l<128?c+=s[l]:l<2048?c+=s[192|l>>6]+s[128|63&l]:l<55296||l>=57344?c+=s[224|l>>12]+s[128|l>>6&63]+s[128|63&l]:(u+=1,l=65536+((1023&l)<<10|1023&a.charCodeAt(u)),c+=s[240|l>>18]+s[128|l>>12&63]+s[128|l>>6&63]+s[128|63&l])}return c},d=function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var i=t[r],o=i.obj[i.prop],s=Object.keys(o),c=0;c<s.length;++c){var u=s[c],l=o[u];"object"===typeof l&&null!==l&&-1===n.indexOf(l)&&(t.push({obj:o,prop:u}),n.push(l))}return a(t),e},p=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},g=function(e){return!(!e||"object"!==typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},v=function(e,t){return[].concat(e,t)},y=function(e,t){if(o(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)};e.exports={arrayToObject:c,assign:l,combine:v,compact:d,decode:f,encode:h,isBuffer:g,isRegExp:p,maybeMap:y,merge:u}},d25f:function(e,t,n){"use strict";var r=n("5ca1"),i=n("0a49")(2);r(r.P+r.F*!n("2f21")([].filter,!0),"Array",{filter:function(e){return i(this,e,arguments[1])}})},d263:function(e,t,n){"use strict";n("386b")("fixed",(function(e){return function(){return e(this,"tt","","")}}))},d282:function(e,t,n){"use strict";function r(e,t){return t?"string"===typeof t?" "+e+"--"+t:Array.isArray(t)?t.reduce((function(t,n){return t+r(e,n)}),""):Object.keys(t).reduce((function(n,i){return n+(t[i]?r(e,i):"")}),""):""}function i(e){return function(t,n){return t&&"string"!==typeof t&&(n=t,t=""),t=t?e+"__"+t:e,""+t+r(t,n)}}var o=n("a142"),s=/-(\w)/g;function a(e){return e.replace(s,(function(e,t){return t.toUpperCase()}))}var c={methods:{slots:function(e,t){void 0===e&&(e="default");var n=this.$slots,r=this.$scopedSlots,i=r[e];return i?i(t):n[e]}}};function u(e){var t=this.name;e.component(t,this),e.component(a("-"+t),this)}function l(e){var t=e.scopedSlots||e.data.scopedSlots||{},n=e.slots();return Object.keys(n).forEach((function(e){t[e]||(t[e]=function(){return n[e]})})),t}function f(e){return{functional:!0,props:e.props,model:e.model,render:function(t,n){return e(t,n.props,l(n),n)}}}function h(e){return function(t){return Object(o["d"])(t)&&(t=f(t)),t.functional||(t.mixins=t.mixins||[],t.mixins.push(c)),t.name=e,t.install=u,t}}var d=n("2b0e"),p=Object.prototype.hasOwnProperty;function g(e,t,n){var r=t[n];Object(o["c"])(r)&&(p.call(e,n)&&Object(o["e"])(r)?e[n]=v(Object(e[n]),t[n]):e[n]=r)}function v(e,t){return Object.keys(t).forEach((function(n){g(e,t,n)})),e}var y={name:"姓名",tel:"电话",save:"保存",confirm:"确认",cancel:"取消",delete:"删除",complete:"完成",loading:"加载中...",telEmpty:"请填写电话",nameEmpty:"请填写姓名",nameInvalid:"请输入正确的姓名",confirmDelete:"确定要删除吗",telInvalid:"请输入正确的手机号",vanCalendar:{end:"结束",start:"开始",title:"日期选择",confirm:"确定",startEnd:"开始/结束",weekdays:["日","一","二","三","四","五","六"],monthTitle:function(e,t){return e+"年"+t+"月"},rangePrompt:function(e){return"选择天数不能超过 "+e+" 天"}},vanCascader:{select:"请选择"},vanContactCard:{addText:"添加联系人"},vanContactList:{addText:"新建联系人"},vanPagination:{prev:"上一页",next:"下一页"},vanPullRefresh:{pulling:"下拉即可刷新...",loosing:"释放即可刷新..."},vanSubmitBar:{label:"合计:"},vanCoupon:{unlimited:"无使用门槛",discount:function(e){return e+"折"},condition:function(e){return"满"+e+"元可用"}},vanCouponCell:{title:"优惠券",tips:"暂无可用",count:function(e){return e+"张可用"}},vanCouponList:{empty:"暂无优惠券",exchange:"兑换",close:"不使用优惠券",enable:"可用",disabled:"不可用",placeholder:"请输入优惠码"},vanAddressEdit:{area:"地区",postal:"邮政编码",areaEmpty:"请选择地区",addressEmpty:"请填写详细地址",postalEmpty:"邮政编码格式不正确",defaultAddress:"设为默认收货地址",telPlaceholder:"收货人手机号",namePlaceholder:"收货人姓名",areaPlaceholder:"选择省 / 市 / 区"},vanAddressEditDetail:{label:"详细地址",placeholder:"街道门牌、楼层房间号等信息"},vanAddressList:{add:"新增地址"}},m=d["default"].prototype,I=d["default"].util.defineReactive;I(m,"$vantLang","zh-CN"),I(m,"$vantMessages",{"zh-CN":y});var _={messages:function(){return m.$vantMessages[m.$vantLang]},use:function(e,t){var n;m.$vantLang=e,this.add((n={},n[e]=t,n))},add:function(e){void 0===e&&(e={}),v(m.$vantMessages,e)}};function T(e){var t=a(e)+".";return function(e){for(var n=_.messages(),r=Object(o["a"])(n,t+e)||Object(o["a"])(n,e),i=arguments.length,s=new Array(i>1?i-1:0),a=1;a<i;a++)s[a-1]=arguments[a];return Object(o["d"])(r)?r.apply(void 0,s):r}}function C(e){return e="van-"+e,[h(e),i(e),T(e)]}n.d(t,"a",(function(){return C}))},d2c8:function(e,t,n){var r=n("aae3"),i=n("be13");e.exports=function(e,t,n){if(r(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(i(e))}},d2d5:function(e,t,n){n("1654"),n("549b"),e.exports=n("584a").Array.from},d3f4:function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},d4af:function(e,t,n){"use strict";var r=n("8eb7"),i=n("7b3e"),o=10,s=40,a=800;function c(e){var t=0,n=0,r=0,i=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),r=t*o,i=n*o,"deltaY"in e&&(i=e.deltaY),"deltaX"in e&&(r=e.deltaX),(r||i)&&e.deltaMode&&(1==e.deltaMode?(r*=s,i*=s):(r*=a,i*=a)),r&&!t&&(t=r<1?-1:1),i&&!n&&(n=i<1?-1:1),{spinX:t,spinY:n,pixelX:r,pixelY:i}}c.getEventType=function(){return r.firefox()?"DOMMouseScroll":i("wheel")?"wheel":"mousewheel"},e.exports=c},d4c0:function(e,t,n){var r=n("0d58"),i=n("2621"),o=n("52a7");e.exports=function(e){var t=r(e),n=i.f;if(n){var s,a=n(e),c=o.f,u=0;while(a.length>u)c.call(e,s=a[u++])&&t.push(s)}return t}},d53b:function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},d540:function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{while((void 0===t||t-- >0)&&!(r=o.next()).done)s.push(r.value)}catch(a){i={error:a}}finally{try{r&&!r.done&&(n=o["return"])&&n.call(o)}finally{if(i)throw i.error}}return s};function i(e,t){var n=r(e),i=n[0],s=n.slice(1),a=i;return s.forEach((function(e){a=o(a,e,t)})),a}function o(e,t,n){var r={};return Object.keys(e).concat(Object.keys(t)).forEach((function(i){var o=n(e[i],t[i],i);r[i]="undefined"===typeof o?e[i]:o})),r}t.__esModule=!0,t["default"]=i},d6c6:function(e,t){e.exports=Math.log1p||function(e){return(e=+e)>-1e-8&&e<1e-8?e-e*e/2:Math.log(1+e)}},d752:function(e,t,n){var r=n("7726").parseFloat,i=n("aa77").trim;e.exports=1/r(n("fdef")+"-0")!==-1/0?function(e){var t=i(String(e),3),n=r(t);return 0===n&&"-"==t.charAt(0)?-0:n}:r},d758:function(e,t,n){!function(t,n){e.exports=n()}(0,(function(){"use strict";return function(e,t){t.prototype.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)}}}))},d847:function(e,t,n){e.exports=n("5bba")},d864:function(e,t,n){var r=n("79aa");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},d8d6:function(e,t,n){n("1654"),n("6c1c"),e.exports=n("ccb9").f("iterator")},d8e8:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},d925:function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},d92a:function(e,t,n){var r=n("5ca1");r(r.P,"Function",{bind:n("f0c1")})},d9ab:function(e,t,n){var r=n("5ca1"),i=Math.atanh;r(r.S+r.F*!(i&&1/i(-0)<0),"Math",{atanh:function(e){return 0==(e=+e)?e:Math.log((1+e)/(1-e))/2}})},d9f6:function(e,t,n){var r=n("e4ae"),i=n("794b"),o=n("1bc3"),s=Object.defineProperty;t.f=n("8e60")?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return s(e,t,n)}catch(a){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},db2a:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,"a",(function(){return r}))},db4d:function(e,t,n){"use strict";(function(e){if(n("66f9"),n("f3a2"),n("fd5a"),e._babelPolyfill)throw new Error("only one instance of babel-polyfill is allowed");e._babelPolyfill=!0;var t="defineProperty";function r(e,n,r){e[n]||Object[t](e,n,{writable:!0,configurable:!0,value:r})}r(String.prototype,"padLeft","".padStart),r(String.prototype,"padRight","".padEnd),"pop,reverse,shift,keys,values,entries,indexOf,every,some,forEach,map,filter,find,findIndex,includes,join,slice,concat,push,splice,unshift,sort,lastIndexOf,reduce,reduceRight,copyWithin,fill".split(",").forEach((function(e){[][e]&&r(Array,e,Function.call.bind([][e]))}))}).call(this,n("c8ba"))},db72:function(e,t,n){"use strict";n.d(t,"a",(function(){return y}));var r=n("a4bb"),i=n.n(r),o=n("e265"),s=n.n(o),a=n("268f"),c=n.n(a),u=n("5e83"),l=n.n(u),f=n("d847"),h=n.n(f),d=n("85f2"),p=n.n(d),g=n("bd86");function v(e,t){var n=i()(e);if(s.a){var r=s()(e);t&&(r=r.filter((function(t){return c()(e,t).enumerable}))),n.push.apply(n,r)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){Object(g["a"])(e,t,n[t])})):l.a?h()(e,l()(n)):v(Object(n)).forEach((function(t){p()(e,t,c()(n,t))}))}return e}},db97:function(e,t,n){var r=n("5ca1");r(r.S,"Object",{is:n("83a1")})},db9a:function(e,t,n){var r=n("5ca1");r(r.P+r.R,"Set",{toJSON:n("44b8")("Set")})},dbdb:function(e,t,n){var r=n("584a"),i=n("e53d"),o="__core-js_shared__",s=i[o]||(i[o]={});(e.exports=function(e,t){return s[e]||(s[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n("b8e3")?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},dc62:function(e,t,n){n("9427");var r=n("584a").Object;e.exports=function(e,t){return r.create(e,t)}},dcbc:function(e,t,n){var r=n("2aba");e.exports=function(e,t,n){for(var i in t)r(e,i,t[i],n);return e}},dd8a:function(e,t,n){n("28e4")("Set")},df1b:function(e,t,n){var r=n("5ca1"),i=n("d8e8"),o=n("cb7c"),s=(n("7726").Reflect||{}).apply,a=Function.apply;r(r.S+r.F*!n("79e5")((function(){s((function(){}))})),"Reflect",{apply:function(e,t,n){var r=i(e),c=o(n);return s?s(r,t,c):a.call(r,t,c)}})},df7c:function(e,t,n){(function(e){function n(e,t){for(var n=0,r=e.length-1;r>=0;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function r(e){"string"!==typeof e&&(e+="");var t,n=0,r=-1,i=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!i){n=t+1;break}}else-1===r&&(i=!1,r=t+1);return-1===r?"":e.slice(n,r)}function i(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}t.resolve=function(){for(var t="",r=!1,o=arguments.length-1;o>=-1&&!r;o--){var s=o>=0?arguments[o]:e.cwd();if("string"!==typeof s)throw new TypeError("Arguments to path.resolve must be strings");s&&(t=s+"/"+t,r="/"===s.charAt(0))}return t=n(i(t.split("/"),(function(e){return!!e})),!r).join("/"),(r?"/":"")+t||"."},t.normalize=function(e){var r=t.isAbsolute(e),s="/"===o(e,-1);return e=n(i(e.split("/"),(function(e){return!!e})),!r).join("/"),e||r||(e="."),e&&s&&(e+="/"),(r?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(i(e,(function(e,t){if("string"!==typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},t.relative=function(e,n){function r(e){for(var t=0;t<e.length;t++)if(""!==e[t])break;for(var n=e.length-1;n>=0;n--)if(""!==e[n])break;return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var i=r(e.split("/")),o=r(n.split("/")),s=Math.min(i.length,o.length),a=s,c=0;c<s;c++)if(i[c]!==o[c]){a=c;break}var u=[];for(c=a;c<i.length;c++)u.push("..");return u=u.concat(o.slice(a)),u.join("/")},t.sep="/",t.delimiter=":",t.dirname=function(e){if("string"!==typeof e&&(e+=""),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,r=-1,i=!0,o=e.length-1;o>=1;--o)if(t=e.charCodeAt(o),47===t){if(!i){r=o;break}}else i=!1;return-1===r?n?"/":".":n&&1===r?"/":e.slice(0,r)},t.basename=function(e,t){var n=r(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){"string"!==typeof e&&(e+="");for(var t=-1,n=0,r=-1,i=!0,o=0,s=e.length-1;s>=0;--s){var a=e.charCodeAt(s);if(47!==a)-1===r&&(i=!1,r=s+1),46===a?-1===t?t=s:1!==o&&(o=1):-1!==t&&(o=-1);else if(!i){n=s+1;break}}return-1===t||-1===r||0===o||1===o&&t===r-1&&t===n+1?"":e.slice(t,r)};var o="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,n("4362"))},dfaf:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={icon:String,size:String,center:Boolean,isLink:Boolean,required:Boolean,iconPrefix:String,titleStyle:null,titleClass:null,valueClass:null,labelClass:null,title:[Number,String],value:[Number,String],label:[Number,String],arrowDirection:String,border:{type:Boolean,default:!0},clickable:{type:Boolean,default:null}}},e017:function(e,t,n){(function(t){(function(t,n){e.exports=n()})(0,(function(){"use strict";var e=function(e){var t=e.id,n=e.viewBox,r=e.content;this.id=t,this.viewBox=n,this.content=r};e.prototype.stringify=function(){return this.content},e.prototype.toString=function(){return this.stringify()},e.prototype.destroy=function(){var e=this;["id","viewBox","content"].forEach((function(t){return delete e[t]}))};var n=function(e){var t=!!document.importNode,n=(new DOMParser).parseFromString(e,"image/svg+xml").documentElement;return t?document.importNode(n,!0):n};"undefined"!==typeof window?window:"undefined"!==typeof t||"undefined"!==typeof self&&self;function r(e,t){return t={exports:{}},e(t,t.exports),t.exports}var i=r((function(e,t){(function(t,n){e.exports=n()})(0,(function(){function e(e){var t=e&&"object"===typeof e;return t&&"[object RegExp]"!==Object.prototype.toString.call(e)&&"[object Date]"!==Object.prototype.toString.call(e)}function t(e){return Array.isArray(e)?[]:{}}function n(n,r){var i=r&&!0===r.clone;return i&&e(n)?o(t(n),n,r):n}function r(t,r,i){var s=t.slice();return r.forEach((function(r,a){"undefined"===typeof s[a]?s[a]=n(r,i):e(r)?s[a]=o(t[a],r,i):-1===t.indexOf(r)&&s.push(n(r,i))})),s}function i(t,r,i){var s={};return e(t)&&Object.keys(t).forEach((function(e){s[e]=n(t[e],i)})),Object.keys(r).forEach((function(a){e(r[a])&&t[a]?s[a]=o(t[a],r[a],i):s[a]=n(r[a],i)})),s}function o(e,t,o){var s=Array.isArray(t),a=o||{arrayMerge:r},c=a.arrayMerge||r;return s?Array.isArray(e)?c(e,t,o):n(t,o):i(e,t,o)}return o.all=function(e,t){if(!Array.isArray(e)||e.length<2)throw new Error("first argument should be an array with at least two elements");return e.reduce((function(e,n){return o(e,n,t)}))},o}))})),o=r((function(e,t){var n={svg:{name:"xmlns",uri:"http://www.w3.org/2000/svg"},xlink:{name:"xmlns:xlink",uri:"http://www.w3.org/1999/xlink"}};t.default=n,e.exports=t.default})),s=function(e){return Object.keys(e).map((function(t){var n=e[t].toString().replace(/"/g,""");return t+'="'+n+'"'})).join(" ")},a=o.svg,c=o.xlink,u={};u[a.name]=a.uri,u[c.name]=c.uri;var l=function(e,t){void 0===e&&(e="");var n=i(u,t||{}),r=s(n);return"<svg "+r+">"+e+"</svg>"},f=function(e){function t(){e.apply(this,arguments)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var r={isMounted:{}};return r.isMounted.get=function(){return!!this.node},t.createFromExistingNode=function(e){return new t({id:e.getAttribute("id"),viewBox:e.getAttribute("viewBox"),content:e.outerHTML})},t.prototype.destroy=function(){this.isMounted&&this.unmount(),e.prototype.destroy.call(this)},t.prototype.mount=function(e){if(this.isMounted)return this.node;var t="string"===typeof e?document.querySelector(e):e,n=this.render();return this.node=n,t.appendChild(n),n},t.prototype.render=function(){var e=this.stringify();return n(l(e)).childNodes[0]},t.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},Object.defineProperties(t.prototype,r),t}(e);return f}))}).call(this,n("c8ba"))},e099:function(e,t,n){"use strict";var r=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,n,a){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"===typeof e?o(s(e),(function(s){var a=encodeURIComponent(r(s))+n;return i(e[s])?o(e[s],(function(e){return a+encodeURIComponent(r(e))})).join(t):a+encodeURIComponent(r(e[s]))})).join(t):a?encodeURIComponent(r(a))+n+encodeURIComponent(r(e)):""};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function o(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r<e.length;r++)n.push(t(e[r],r));return n}var s=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t}},e0b8:function(e,t,n){"use strict";var r=n("7726"),i=n("5ca1"),o=n("2aba"),s=n("dcbc"),a=n("67ab"),c=n("4a59"),u=n("f605"),l=n("d3f4"),f=n("79e5"),h=n("5cc5"),d=n("7f20"),p=n("5dbc");e.exports=function(e,t,n,g,v,y){var m=r[e],I=m,_=v?"set":"add",T=I&&I.prototype,C={},M=function(e){var t=T[e];o(T,e,"delete"==e||"has"==e?function(e){return!(y&&!l(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return y&&!l(e)?void 0:t.call(this,0===e?0:e)}:"add"==e?function(e){return t.call(this,0===e?0:e),this}:function(e,n){return t.call(this,0===e?0:e,n),this})};if("function"==typeof I&&(y||T.forEach&&!f((function(){(new I).entries().next()})))){var E=new I,A=E[_](y?{}:-0,1)!=E,S=f((function(){E.has(1)})),N=h((function(e){new I(e)})),b=!y&&f((function(){var e=new I,t=5;while(t--)e[_](t,t);return!e.has(-0)}));N||(I=t((function(t,n){u(t,I,e);var r=p(new m,t,I);return void 0!=n&&c(n,v,r[_],r),r})),I.prototype=T,T.constructor=I),(S||b)&&(M("delete"),M("has"),v&&M("get")),(b||A)&&M(_),y&&T.clear&&delete T.clear}else I=g.getConstructor(t,e,v,_),s(I.prototype,n),a.NEED=!0;return d(I,e),C[e]=I,i(i.G+i.W+i.F*(I!=m),C),y||g.setStrong(I,e,v),I}},e11c:function(e,t,n){"use strict";n.d(t,"c",(function(){return c})),n.d(t,"d",(function(){return ve})),n.d(t,"e",(function(){return fe})),n.d(t,"h",(function(){return ye})),n.d(t,"i",(function(){return pe})),n.d(t,"j",(function(){return q})),n.d(t,"k",(function(){return ne})),n.d(t,"l",(function(){return Q})),n.d(t,"m",(function(){return it})),n.d(t,"n",(function(){return $})),n.d(t,"o",(function(){return J})),n.d(t,"p",(function(){return W})),n.d(t,"q",(function(){return Xe})),n.d(t,"r",(function(){return K})),n.d(t,"s",(function(){return te})),n.d(t,"t",(function(){return F})),n.d(t,"u",(function(){return rt})),n.d(t,"v",(function(){return ot})),n.d(t,"w",(function(){return X})),n.d(t,"x",(function(){return Z})),n.d(t,"y",(function(){return ee})),n.d(t,"z",(function(){return Ze})),n.d(t,"A",(function(){return Je})),n.d(t,"B",(function(){return We})),n.d(t,"C",(function(){return et})),n.d(t,"D",(function(){return nt})),n.d(t,"E",(function(){return oe})),n.d(t,"F",(function(){return se}));var r=n("903e");n.d(t,"a",(function(){return r["e"]})),n.d(t,"b",(function(){return r["f"]})),n.d(t,"f",(function(){return r["l"]})),n.d(t,"g",(function(){return r["p"]}));var i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)},o=function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.apply(this,arguments)};function s(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}function a(e,t){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(i=s.trys,!((i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}}var c,u,l=new r["k"]("RCIM"),f=function(){return!("undefined"==typeof uni||!function(e){for(var t=["canIUse","getSystemInfo"],n=0,r=t.length;n<r;n++)if(!e[t[n]])return!1;return!0}(uni))},h=f(),d={tag:"browser",httpReq:function(e){var t=e.method||r["i"].GET,n=e.timeout||6e4,i=e.headers,o=e.query,s=e.body,a=Object(r["u"])(e.url,o);return new Promise((function(e){var r,o=(r="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,"undefined"!=typeof XMLHttpRequest&&r?new XMLHttpRequest:"undefined"!=typeof XDomainRequest?new XDomainRequest:new ActiveXObject("Microsoft.XMLHTTP")),c="[object XDomainRequest]"===Object.prototype.toString.call(o);if(o.open(t,a),i&&o.setRequestHeader)for(var u in i)o.setRequestHeader(u,i[u]);if(c){o.timeout=n,o.onload=function(){e({data:o.responseText,status:o.status||200})},o.onerror=function(){e({status:o.status||0})},o.ontimeout=function(){e({status:o.status||0})};var l="object"==typeof s?JSON.stringify(s):s;o.send(l)}else o.onreadystatechange=function(){4===o.readyState&&e({data:o.responseText,status:o.status})},o.onerror=function(){e({status:o.status||0})},setTimeout((function(){o.abort(),e({status:o.status||0})}),n),o.send(s)}))},localStorage:null===window||void 0===window?void 0:window.localStorage,sessionStorage:null===window||void 0===window?void 0:window.sessionStorage,isSupportSocket:function(){var e="undefined"!=typeof WebSocket;return e||console.warn("websocket not support"),e},useNavi:!0,connectPlatform:"",isFromUniapp:h,createWebSocket:function(e,t){var n=new WebSocket(e,t);return n.binaryType="arraybuffer",{onClose:function(e){n.onclose=function(t){var n=t.code,r=t.reason;e(n,r)}},onError:function(e){n.onerror=e},onMessage:function(e){n.onmessage=function(t){e(t.data)}},onOpen:function(e){n.onopen=e},send:function(e){n.send(e)},close:function(e,t){n.close()}}},createDataChannel:function(e,t){return this.isSupportSocket()&&"websocket"===t?new r["t"](this,e):new r["d"](this,e)},getNetworkType:function(){var e=navigator.connection||navigator.mozConnection||navigator.webkitConnection,t=e.type,n=e.effectiveType,i=t||n||r["n"].UNKONWN;return new Promise((function(e){e(i)}))}},p=f(),g=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var i=r["F"].ID();try{return r["F"].info(r["j"].A_CALLBACK_O,{func_name:e,source:"wechat"},{traceId:i}),wx[e].apply(wx,t)}catch(t){r["F"].error(r["j"].A_CALLBACK_E,{func_name:e,source:"wechat"},{traceId:i}),console.error(t)}}},v={setItem:g("setStorageSync"),getItem:g("getStorageSync"),removeItem:g("removeStorageSync"),clear:g("clearStorageSync")},y={tag:"wechat",httpReq:function(e){var t=e.method||r["i"].GET,n=e.timeout||6e4,i=e.headers,o=e.query,s=e.body,a=Object(r["u"])(e.url,o);return new Promise((function(e){wx.request({url:a,method:t,headers:i,timeout:n,data:s,success:function(t){e({data:t.data,status:t.statusCode})},fail:function(){e({status:r["f"].RC_HTTP_REQ_TIMEOUT})}})}))},localStorage:v,sessionStorage:v,isSupportSocket:function(){return!0},useNavi:!1,connectPlatform:"MiniProgram",isFromUniapp:p,createWebSocket:function(e,t){var n=wx.connectSocket({url:e,protocols:t});return{onClose:function(e){n.onClose((function(t){e(t.code,t.reason)}))},onError:function(e){n.onError((function(t){e(t.errMsg)}))},onMessage:function(e){n.onMessage((function(t){e(t.data)}))},onOpen:function(e){n.onOpen(e)},send:function(e){n.send({data:e})},close:function(e,t){n.close({code:e,reason:t})}}},createDataChannel:function(e,t){return"websocket"===t?new r["t"](this,e):new r["d"](this,e)},getNetworkType:function(){return new Promise((function(e){wx.getNetworkType({success:function(t){var n=t.networkType;e(n)},fail:function(){e(r["n"].UNKONWN)}})}))}},m=f(),I=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var i=r["F"].ID();try{return r["F"].info(r["j"].A_CALLBACK_O,{func_name:e,source:"alipay"},{traceId:i}),my[e].apply(my,t)}catch(t){r["F"].error(r["j"].A_CALLBACK_E,{func_name:e,source:"alipay"},{traceId:i}),console.error(t)}}},_={setItem:I("setStorageSync"),getItem:I("getStorageSync"),removeItem:I("removeStorageSync"),clear:I("clearStorageSync")},T={tag:"alipay",httpReq:function(e){var t=e.method||r["i"].GET,n=e.timeout||6e4,i=e.headers,o=e.query,s=e.body,a=Object(r["u"])(e.url,o),c=e.dataType||"json";return new Promise((function(e){my.request({url:a,method:t,headers:i,timeout:n,data:s,dataType:c,success:function(t){e({data:t.data,status:t.status})},fail:function(){e({status:r["f"].RC_HTTP_REQ_TIMEOUT})}})}))},localStorage:_,sessionStorage:_,isSupportSocket:function(){return!1},useNavi:!1,connectPlatform:"MiniProgram",isFromUniapp:m,createDataChannel:function(e,t){return"websocket"===t?new r["t"](this,e):new r["d"](this,e)},getNetworkType:function(){return new Promise((function(e){my.getNetworkType({success:function(t){var n=t.networkType;e(n)},fail:function(){e(r["n"].UNKONWN)}})}))}},C=f(),M=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var i=r["F"].ID();try{return r["F"].info(r["j"].A_CALLBACK_O,{func_name:e,source:"toutiao"},{traceId:i}),tt[e].apply(tt,t)}catch(t){r["F"].error(r["j"].A_CALLBACK_E,{func_name:e,source:"toutiao"},{traceId:i}),console.error(t)}}},E={setItem:M("setStorageSync"),getItem:M("getStorageSync"),removeItem:M("removeStorageSync"),clear:M("clearStorageSync")},A={tag:"toutiao",isSupportSocket:function(){return!0},useNavi:!1,connectPlatform:"MiniProgram",isFromUniapp:C,localStorage:E,sessionStorage:E,httpReq:function(e){return new Promise((function(t,n){tt.request({url:e.url,data:e.body,header:e.headers,method:e.method,success:function(e){console.log("调用成功",e.data);var n=(null==e?void 0:e.data)||{},r={data:JSON.stringify(n),status:e.statusCode};t(r)},fail:function(e){console.log("调用失败",e.errMsg),n({data:e.errMsg})}})}))},createWebSocket:function(e,t){var n=tt.connectSocket({url:e,protocols:t});return{onOpen:function(e){n.onOpen(e)},onClose:function(e){n.onClose((function(t){return e(t.code,t.reason)}))},onError:function(e){n.onError((function(t){return e(t.errMsg)}))},onMessage:function(e){n.onMessage((function(t){return e(t.data)}))},send:function(e){n.send({data:e})},close:function(e,t){n.close({code:e,reason:t})}}},createDataChannel:function(e,t){return"websocket"===t?new r["t"](this,e):new r["d"](this,e)},getNetworkType:function(){return new Promise((function(e){tt.getNetworkType({success:function(t){var n=t.networkType;e(n)},fail:function(){e(r["n"].UNKONWN)}})}))}},S=f(),N=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var i=r["F"].ID();try{return r["F"].info(r["j"].A_CALLBACK_O,{func_name:e,source:"baidu"},{traceId:i}),swan[e].apply(swan,t)}catch(t){r["F"].error(r["j"].A_CALLBACK_E,{func_name:e,source:"baidu"},{traceId:i}),console.error(t)}}},b={setItem:N("setStorageSync"),getItem:N("getStorageSync"),removeItem:N("removeStorageSync"),clear:N("clearStorageSync")},w={tag:"baidu",isSupportSocket:function(){return!0},useNavi:!1,connectPlatform:"MiniProgram",isFromUniapp:S,localStorage:b,sessionStorage:b,httpReq:function(e){return new Promise((function(t,n){swan.request({url:e.url,data:e.body,header:e.headers,method:e.method,success:function(e){console.log("调用成功",e.data);var n=(null==e?void 0:e.data)||{},r={data:JSON.stringify(n),status:e.statusCode};t(r)},fail:function(e){console.log("调用失败",e.errorCode),n({data:e.errorCode})}})}))},createWebSocket:function(e,t){var n=swan.connectSocket({url:e,protocols:t});return{onOpen:function(e){n.onOpen(e)},onClose:function(e){n.onClose((function(t){return e(t.code,t.reason)}))},onError:function(e){n.onError((function(t){return e(t.errMsg)}))},onMessage:function(e){n.onMessage((function(t){return e(t.data)}))},send:function(e){n.send({data:e})},close:function(e,t){n.close({code:e,reason:t})}}},createDataChannel:function(e,t){return"websocket"===t?new r["t"](this,e):new r["d"](this,e)},getNetworkType:function(){return s(this,void 0,void 0,(function(){return a(this,(function(e){return[2,new Promise((function(e){swan.getNetworkType({success:function(t){var n=t.networkType;e(n)},fail:function(){e(r["n"].UNKONWN)}})}))]}))}))}},O=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var i=r["F"].ID();try{return r["F"].info(r["j"].A_CALLBACK_O,{func_name:e,source:"uniapp"},{traceId:i}),uni[e].apply(uni,t)}catch(t){r["F"].error(r["j"].A_CALLBACK_E,{func_name:e,source:"uniapp"},{traceId:i}),console.error(t)}}},R={setItem:O("setStorageSync"),getItem:O("getStorageSync"),removeItem:O("removeStorageSync"),clear:O("clearStorageSync")},D={tag:"uniapp",httpReq:function(e){var t=e.method||r["i"].GET,n=e.timeout||6e4,i=e.headers,o=e.query,s=e.body,a=Object(r["u"])(e.url,o);return new Promise((function(e){uni.request({url:a,method:t,headers:i,timeout:n,data:s,success:function(t){e({data:t.data,status:t.statusCode})},fail:function(){e({status:r["f"].RC_HTTP_REQ_TIMEOUT})}})}))},localStorage:R,sessionStorage:R,isSupportSocket:function(){return!0},useNavi:!0,connectPlatform:"",isFromUniapp:!0,createWebSocket:function(e,t){var n={complete:function(){},url:e,protocols:t},r=uni.connectSocket(n);return{onClose:function(e){r.onClose((function(t){e(t.code,t.reason)}))},onError:function(e){r.onError((function(t){e(t.errMsg)}))},onMessage:function(e){r.onMessage((function(t){e(t.data)}))},onOpen:function(e){r.onOpen(e)},send:function(e){r.send({data:e})},close:function(e,t){r.close({code:e,reason:t})}}},createDataChannel:function(e,t){return"websocket"===t?new r["t"](this,e):new r["d"](this,e)},getNetworkType:function(){return new Promise((function(e){uni.getNetworkType({success:function(t){var n=t.networkType;e(n)},fail:function(){e(r["n"].UNKONWN)}})}))}},L=function(e){return e&&e.canIUse&&e.getSystemInfo},U="undefined"!=typeof uni&&L(uni)?function(){switch(Object({VUE_APP_BASE_API:"api",NODE_ENV:"production",BASE_URL:""}).VUE_APP_PLATFORM){case"app-plus":return D;case"mp-baidu":return w;case"mp-toutiao":return A;case"mp-alipay":return T;case"mp-weixin":return y;default:return d}}():"undefined"!=typeof my&&L(my)?T:"undefined"!=typeof tt&&L(tt)?A:"undefined"!=typeof swan&&L(swan)?w:"undefined"!=typeof wx&&L(wx)?y:d;function x(e){var t=e.conversationType,n=e.channelId,i=e.messageType,o=e.content,s=e.senderUserId,a=e.targetId,c=e.sentTime,u=e.receivedTime,l=e.messageUId,f=e.messageDirection,h=e.isPersited,d=e.isCounted,p=e.isOffLineMessage,g=e.canIncludeExpansion,v=e.expansion,y=e.receivedStatus,m=e.disableNotification,I=e.isMentioned,_=e.isStatusMessage,T=e.readReceiptInfo,C=e.pushConfig,M=e.messageId,E=e.isInterrupt,A=e.isModifyMessage,S=e.channelType,N=e.sentStatus;y||(y=r["p"].UNREAD);var b={messageType:i,channelId:n||"",content:o,senderUserId:s,targetId:a,conversationType:t,sentTime:c,receivedTime:u,messageUId:l,messageDirection:f,isPersited:h,isCounted:d,isMentioned:I,disableNotification:m,isStatusMessage:_,canIncludeExpansion:g,expansion:v,receivedStatus:y,readReceiptInfo:T,pushConfig:C,messageId:M,isInterrupt:E,isModifyMessage:A,sentStatus:N};return t!==r["e"].ULTRA_GROUP&&(b.isOffLineMessage=p),t===r["e"].ULTRA_GROUP&&Object(r["A"])(S)&&(b.channelType=S),b}function P(e){var t=e.conversationType,n=e.targetId,r=e.latestMessage,i=e.unreadMessageCount,o=e.hasMentioned,s=e.mentionedInfo,a=e.lastUnreadTime,c=e.notificationStatus,u=e.notificationLevel,l=e.isTop,f=e.channelId,h=e.unreadMentionedCount;return{conversationType:t,targetId:n,latestMessage:r&&x(r),unreadMessageCount:i,hasMentioned:o,mentionedInfo:o?{type:null==s?void 0:s.type,userIdList:null==s?void 0:s.userIdList}:void 0,lastUnreadTime:a,notificationStatus:c,notificationLevel:u,isTop:l,channelId:f,unreadMentionedCount:h}}!function(e){e.CONNECTING="CONNECTING",e.CONNECTED="CONNECTED",e.DISCONNECT="DISCONNECT",e.SUSPEND="SUSPEND",e.MESSAGES="MESSAGES",e.READ_RECEIPT_RECEIVED="READ_RECEIPT_RECEIVED",e.MESSAGE_RECEIPT_REQUEST="MESSAGE_RECEIPT_REQUEST",e.MESSAGE_RECEIPT_RESPONSE="MESSAGE_RECEIPT_RESPONSE",e.CONVERSATION="CONVERSATION",e.CHATROOM="CHATROOM",e.EXPANSION="EXPANSION",e.PULL_OFFLINE_MESSAGE_FINISHED="PULL_OFFLINE_MESSAGE_FINISHED",e.TAG="TAG",e.CONVERSATION_TAG="CONVERSATION_TAG",e.TYPING_STATUS="TYPING_STATUS",e.MESSAGE_BLOCKED="MESSAGE_BLOCKED",e.ULTRA_GROUP_ENABLE="ULTRA_GROUP_ENABLE",e.OPERATE_STATUS="OPERATE_STATUS",e.ULTRA_GROUP_MESSAGE_EXPANSION_UPDATED="ULTRA_GROUP_MESSAGE_EXPANSION_UPDATED",e.ULTRA_GROUP_MESSAGE_MODIFIED="ULTRA_GROUP_MESSAGE_MODIFIED",e.ULTRA_GROUP_MESSAGE_RECALLED="ULTRA_GROUP_MESSAGE_RECALLED",e.ULTRA_GROUP_CHANNEL_TYPE_CHANGE="ULTRA_GROUP_CHANNEL_TYPE_CHANGE",e.ULTRA_GROUP_CHANNEL_DELETE="ULTRA_GROUP_CHANNEL_DELETE",e.ULTRA_GROUP_CHANNEL_USER_KICKED="ULTRA_GROUP_CHANNEL_USER_KICKED"}(c||(c={})),function(e){e[e.SENDING=10]="SENDING",e[e.FAILED=20]="FAILED",e[e.SENT=30]="SENT",e[e.RECEIVED=40]="RECEIVED",e[e.READ=50]="READ",e[e.DESTROYED=60]="DESTROYED"}(u||(u={}));var j,k=function(e){function t(n){var i=e.call(this)||this;if(t.imClient)return l.error("Please do not repeatedly perform the init method"),t.imClient;i.initOptions=n,Object(r["v"])("options.navigators",n.navigators,(function(e){return Object(r["x"])(e)&&(0===e.length||e.every(r["z"]))})),l.setLogLevel(n.logLevel),l.setLogStdout(n.logStdout);var o=null==n?void 0:n.connectType;return o?r["c"].WEBSOCKET!==o&&r["c"].COMET!==o&&(l.warn("RongIMLib connectionType must be ".concat(r["c"].WEBSOCKET," or ").concat(r["c"].COMET)),o=r["c"].WEBSOCKET):o=r["c"].WEBSOCKET,r["F"].info(r["j"].A_INIT_O,{appkey:n.appkey,navigators:n.navigators||[],connectionType:o,logLevel:n.logLevel}),i._context=r["a"].init(U,{appkey:n.appkey,apiVersion:"5.4.3",navigators:n.navigators||[],miniCMPProxy:n.customCMP||[],connectionType:o,logLevel:n.logLevel,logStdout:n.logStdout,indexDBSwitch:n.indexDBSwitch,checkCA:n.checkCA}),i.watch(),t.imClient=i,i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),Object.defineProperty(t.prototype,"context",{get:function(){if(!this._context)throw new Error("Please perform the init method!");return this._context},enumerable:!1,configurable:!0}),t.prototype.watch=function(){var e=this,t=r["F"].ID(),n={onConnecting:function(){e.emit(c.CONNECTING)},onConnected:function(){e.emit(c.CONNECTED)},onDisconnect:function(n){r["F"].info(r["j"].A_CONNECT_S,{status:n},{traceId:t}),e.emit(c.DISCONNECT,n)},onSuspend:function(n){r["F"].info(r["j"].A_CONNECT_S,{status:n},{traceId:t}),e.emit(c.SUSPEND,n)},batchMessage:function(t){e.emit(c.MESSAGES,{messages:t.map((function(e){return x(e)}))})},typingState:function(t){e.emit(c.TYPING_STATUS,{status:t})},readReceiptReceived:function(t,n,r){e.emit(c.READ_RECEIPT_RECEIVED,{conversation:t,messageUId:n,sentTime:r})},messageReceiptRequest:function(t,n,r){e.emit(c.MESSAGE_RECEIPT_REQUEST,{conversation:t,messageUId:n,senderUserId:r})},messageReceiptResponse:function(t,n,r){e.emit(c.MESSAGE_RECEIPT_RESPONSE,{conversation:t,receivedUserId:n,messageUIdList:r})},conversationState:function(t){var n=t.map((function(e){var t=e.conversationType;return t===r["e"].ULTRA_GROUP?{conversation:{conversationType:t,latestMessage:e.latestMessage?x(e.latestMessage):null,targetId:e.targetId,unreadMessageCount:e.unreadMessageCount,unreadMentionedCount:e.unreadMentionedCount,versionTime:e.versionTime,notificationStatus:e.notificationStatus,notificationLevel:e.notificationLevel,lastUnreadTime:e.lastUnreadTime,channelId:e.channelId}}:{conversation:{conversationType:t,latestMessage:e.latestMessage?x(e.latestMessage):null,targetId:e.targetId,unreadMessageCount:e.unreadMessageCount,hasMentioned:e.hasMentioned,mentionedInfo:e.mentionedInfo,lastUnreadTime:e.lastUnreadTime,notificationStatus:e.notificationStatus,notificationLevel:e.notificationLevel,isTop:e.isTop,channelId:e.channelId,unreadMentionedCount:e.unreadMentionedCount},updatedItems:e.updatedItems}}));e.emit(c.CONVERSATION,{conversationList:n})},chatroomState:function(t){e.emit(c.CHATROOM,t)},expansion:function(t){e.emit(c.EXPANSION,t)},pullFinished:function(){e.emit(c.PULL_OFFLINE_MESSAGE_FINISHED)},tag:function(){e.emit(c.TAG)},conversationTagChanged:function(){e.emit(c.CONVERSATION_TAG)},messageBlocked:function(t){e.emit(c.MESSAGE_BLOCKED,t)},ultraGroupEnable:function(t){e.emit(c.ULTRA_GROUP_ENABLE,t)},operateStatus:function(t){e.emit(c.OPERATE_STATUS,t)},ultraGroupMessageExpansionUpdated:function(t){e.emit(c.ULTRA_GROUP_MESSAGE_EXPANSION_UPDATED,t)},ultraGroupMessageModified:function(t){e.emit(c.ULTRA_GROUP_MESSAGE_MODIFIED,t)},ultraGroupMessageRecalled:function(t){e.emit(c.ULTRA_GROUP_MESSAGE_RECALLED,t)},ultraGroupChannelChangeType:function(t){e.emit(c.ULTRA_GROUP_CHANNEL_TYPE_CHANGE,t)},ultraGroupChannelUserKicked:function(t){e.emit(c.ULTRA_GROUP_CHANNEL_USER_KICKED,t)},ultraGroupChannelDelete:function(t){e.emit(c.ULTRA_GROUP_CHANNEL_DELETE,t)}};this.context.assignWatcher(n)},t}(r["g"]),z={TIMEOUT:{code:-1,msg:"Network timeout"},SDK_INTERNAL_ERROR:{code:-2,msg:"SDK internal error"},PARAMETER_ERROR:{code:-3,msg:"Please check the parameters, the {param} expected a value of {expect} but received {current}"},REJECTED_BY_BLACKLIST:{code:405,msg:"Blacklisted by the other party"},SEND_TOO_FAST:{code:20604,msg:"Sending messages too quickly"},NOT_IN_GROUP:{code:22406,msg:"Not in group"},ULTRA_GROUP_USER_NOT_IN_PRIVATE_CHANNEL:{code:r["f"].ULTRA_GROUP_USER_NOT_IN_PRIVATE_CHANNEL,msg:"ultra group user not in private channel"},FORBIDDEN_IN_GROUP:{code:22408,msg:"Forbbiden from speaking in the group"},NOT_IN_CHATROOM:{code:23406,msg:"Not in chatRoom"},FORBIDDEN_IN_CHATROOM:{code:23408,msg:"Forbbiden from speaking in the chatRoom"},KICKED_FROM_CHATROOM:{code:23409,msg:"Kicked out and forbbiden from joining the chatRoom"},CHATROOM_NOT_EXIST:{code:23410,msg:"ChatRoom does not exist"},CHATROOM_IS_FULL:{code:23411,msg:"ChatRoom members exceeded"},PARAMETER_INVALID_CHATROOM:{code:23412,msg:"Invalid chatRoom parameters"},ROAMING_SERVICE_UNAVAILABLE_CHATROOM:{code:23414,msg:"ChatRoom message roaming service is not open, Please go to the developer to open this service"},RECALLMESSAGE_PARAMETER_INVALID:{code:25101,msg:"Invalid recall message parameter"},ROAMING_SERVICE_UNAVAILABLE_MESSAGE:{code:25102,msg:"Single group chat roaming service is not open, Please go to the developer to open this service"},PUSHSETTING_PARAMETER_INVALID:{code:26001,msg:"Invalid push parameter"},OPERATION_BLOCKED:{code:20605,msg:"Operation is blocked"},OPERATION_NOT_SUPPORT:{code:20606,msg:"Operation is not supported"},MSG_BLOCKED_SENSITIVE_WORD:{code:21501,msg:"The sent message contains sensitive words"},REPLACED_SENSITIVE_WORD:{code:21502,msg:"Sensitive words in the message have been replaced"},NOT_CONNECTED:{code:30001,msg:"Please connect successfully first"},NAVI_REQUEST_ERROR:{code:30007,msg:"Navigation http request failed"},CMP_REQUEST_ERROR:{code:30010,msg:"CMP sniff http request failed"},CONN_APPKEY_FAKE:{code:31002,msg:"Your appkey is fake"},CONN_MINI_SERVICE_NOT_OPEN:{code:31003,msg:"Mini program service is not open, Please go to the developer to open this service"},CONN_ACK_TIMEOUT:{code:31e3,msg:"Connection ACK timeout"},CONN_TOKEN_INCORRECT:{code:31004,msg:"Your token is not valid or expired"},CONN_NOT_AUTHRORIZED:{code:31005,msg:"AppKey and Token do not match"},CONN_REDIRECTED:{code:31006,msg:"Connection redirection"},CONN_APP_BLOCKED_OR_DELETED:{code:31008,msg:"AppKey is banned or deleted"},CONN_USER_BLOCKED:{code:31009,msg:"User blocked"},CONN_DOMAIN_INCORRECT:{code:31012,msg:"Connect domain error, Please check the set security domain"},ROAMING_SERVICE_UNAVAILABLE:{code:33007,msg:"Roaming service cloud is not open, Please go to the developer to open this service"},RC_CONNECTION_EXIST:{code:34001,msg:"Connection already exists"},CHATROOM_KV_EXCEED:{code:23423,msg:"ChatRoom KV setting exceeds maximum"},CHATROOM_KV_OVERWRITE_INVALID:{code:23424,msg:"ChatRoom KV already exists"},CHATROOM_KV_STORE_NOT_OPEN:{code:23426,msg:"ChatRoom KV storage service is not open, Please go to the developer to open this service"},CHATROOM_KEY_NOT_EXIST:{code:23427,msg:"ChatRoom key does not exist"},MSG_KV_NOT_SUPPORT:{code:34008,msg:"The message cannot be extended"},SEND_MESSAGE_KV_FAIL:{code:34009,msg:"Sending RC expansion message fail"},EXPANSION_LIMIT_EXCEET:{code:34010,msg:"The message expansion size is beyond the limit"},ILLGAL_PARAMS:{code:33003,msg:"Incorrect parameters passed in while calling the interface"},UPLOAD_FILE_FAILED:{code:35020,msg:"File upload failed"},CHATROOM_KV_STORE_NOT_ALL_SUCCESS:{code:23428,msg:"Chatroom kv store not all success"},CHATROOM_KV_STORE_OUT_LIMIT:{code:23429,msg:"Chatroom kv's length is out of limit"},TAG_EXISTS:{code:33101,msg:"The tag already exists"},TAG_NOT_EXIST:{code:33100,msg:"The tag does not exist"},NOT_SUPPORT:{code:r["f"].NOT_SUPPORT,msg:"The method is not supported in a browser!"}},G={},B={};for(var V in z){var Y=z[V],H=Y.code;G[H]=V,B[H]=Y}z.ROAMING_SERVICE_UNAVAILABLE.code;var F=function(e){j=j||new k(e)};function Q(e,t){return s(this,void 0,void 0,(function(){var n,i;return a(this,(function(o){switch(o.label){case 0:return Object(r["v"])("token",e,r["b"].STRING,!0),l.warn("RongIMLib Version: ".concat("5.4.3",", Commit: ").concat("b3936f05590d2beb491dee0dbb7071eeb648e941")),n=r["F"].ID(),r["F"].info(r["j"].A_CONNECT_T,{token:e,reconnectKickEnable:t},{traceId:n}),[4,j.context.connect(e,!1,t,n)];case 1:return i=o.sent(),(i.code===r["f"].SUCCESS?r["F"].info:r["F"].warn)(r["j"].A_CONNECT_R,{code:i.code,userId:i.userId},{traceId:n}),i.code===r["f"].SUCCESS?[2,{code:i.code,data:{userId:i.userId}}]:[2,{code:i.code,msg:G[i.code]}]}}))}))}function $(){return r["F"].info(r["j"].A_DISCONNECT_O,{}),j.context.disconnect()}function K(){return j.context.getServerTime()}function W(){return j.context.getCurrentUserId()}function q(e,t,n){j.on(e,t,n)}function Z(e,t,n){j.off(e,t,n)}function J(e,t){return s(this,void 0,void 0,(function(){var n,i,o;return a(this,(function(s){switch(s.label){case 0:return l.debug("get conversation list ->"),[4,k.imClient.context.getConversationList(null==e?void 0:e.count,void 0,null==e?void 0:e.startTime,null==e?void 0:e.order,t)];case 1:return n=s.sent(),i=n.code,o=n.data,i===r["f"].SUCCESS&&o?[2,{code:0,data:o.map((function(e){return P(e)}))}]:(l.warn("get conversation list fail ->"+i+":"+G[i]),[2,{code:i,msg:G[i]}])}}))}))}function X(e){return s(this,void 0,void 0,(function(){var t,n;return a(this,(function(i){switch(i.label){case 0:return Object(r["v"])("options.conversationType",e.conversationType,r["D"],!0),Object(r["v"])("options.targetId",e.targetId,r["b"].STRING,!0),Object(r["v"])("options.channelId",e.channelId,r["b"].CHANNEL_ID),[4,k.imClient.context.removeConversation(e.conversationType,e.targetId,e.channelId)];case 1:return t=i.sent(),n="conversationType:"+e.conversationType+",targetId:"+e.targetId,l.debug("destroy conversation ->"+n),t!==r["f"].SUCCESS?(l.warn("destroy conversation fail ->"+t+":"+G[t]+","+n),[2,{code:t,msg:G[t]}]):[2,{code:t}]}}))}))}function ee(e,t){return s(this,void 0,void 0,(function(){var n,i;return a(this,(function(o){switch(o.label){case 0:return Object(r["v"])("options.conversationType",e.conversationType,r["D"],!0),Object(r["v"])("options.targetId",e.targetId,r["b"].STRING,!0),Object(r["v"])("options.channelId",e.channelId,r["b"].CHANNEL_ID),Object(r["v"])("draft",t,r["b"].STRING,!0),n="conversationType:"+e.conversationType+",targetId:"+e.targetId,l.debug("set draft ->"+n),[4,k.imClient.context.saveConversationMessageDraft(e.conversationType,e.targetId,t,e.channelId)];case 1:return(i=o.sent())===r["f"].SUCCESS?[2,{code:i}]:(l.warn("set draft fail ->"+i+":"+G[i]+","+n),[2,{code:i,msg:G[i]}])}}))}))}function te(e,t){return s(this,void 0,void 0,(function(){var n,i,o,s,c,u;return a(this,(function(a){switch(a.label){case 0:if(l.debug("get total unread count -> ConversationType:"+JSON.stringify(t)+" includeMuted:"+e),Object(r["v"])("includeMuted",e,r["b"].BOOLEAN,!1),Object(r["v"])("conversationTypes",t,r["b"].ARRAY,!1),t)for(n=0,i=t;n<i.length;n++)o=i[n],Object(r["v"])("conversationType",o,r["D"]);return[4,k.imClient.context.getTotalUnreadCount("",t,e)];case 1:return s=a.sent(),c=s.code,u=s.data,c===r["f"].SUCCESS?[2,{code:c,data:u}]:(l.warn("getTotalUnreadCount fail ->"+c+":"+G[c]),[2,{code:c,msg:G[c]}])}}))}))}function ne(e){return s(this,void 0,void 0,(function(){var t,n;return a(this,(function(i){switch(i.label){case 0:return Object(r["v"])("options.conversationType",e.conversationType,r["D"],!0),Object(r["v"])("options.targetId",e.targetId,r["b"].STRING,!0),Object(r["v"])("options.channelId",e.channelId,r["b"].CHANNEL_ID),[4,k.imClient.context.clearUnreadCount(e.conversationType,e.targetId,e.channelId)];case 1:return t=i.sent(),n="conversationType:"+e.conversationType+",targetId:"+e.targetId,l.debug("clear unreadMsgNum ->"+n),t!==r["f"].SUCCESS?(l.warn("clear unreadMsgNum fail ->"+t+":"+G[t]+","+n),[2,{code:t,msg:G[t]}]):[2,{code:t}]}}))}))}var re=function(e,t){void 0===t&&(t=""),Object(r["v"])("options.conversationType",e.conversationType,r["D"],!0),Object(r["v"])("options.targetId",e.targetId,r["b"].STRING,!0),Object(r["v"])("options.channelId",e.channelId,r["b"].CHANNEL_ID);var n="conversationType:"+e.conversationType+",targetId:"+e.targetId;return l.debug("".concat(t," -> ").concat(n)),n},ie=function(e,t,n){return void 0===n&&(n=""),s(void 0,void 0,void 0,(function(){var i,o;return a(this,(function(s){switch(s.label){case 0:return i=re(e,n),[4,t()];case 1:return(o=s.sent())!==r["f"].SUCCESS?(l.warn("".concat(n," fail -> ").concat(o," : ").concat(G[o]," , ").concat(i)),[2,{code:o,msg:G[o]}]):[2,{code:o}]}}))}))};function oe(e,t){return s(this,void 0,void 0,(function(){return a(this,(function(n){return Object(r["v"])("notificationLevel",t,(function(t){return e.conversationType===r["e"].PRIVATE?[r["o"].ALL_MESSAGE,r["o"].NOT_SET,r["o"].AT_MESSAGE_NOTIFICATION].includes(t):void 0!==r["o"][t]}),!0),[2,ie(e,(function(){return k.imClient.context.setConversationNotificationLevel(e.conversationType,e.targetId,t,e.channelId)}),"setConversationNotificationLevel")]}))}))}function se(e,t){return void 0===t&&(t=!0),s(this,void 0,void 0,(function(){var n,i;return a(this,(function(o){switch(o.label){case 0:return Object(r["v"])("options.type",e.conversationType,r["D"],!0),Object(r["v"])("options.targetId",e.targetId,r["b"].STRING,!0),Object(r["v"])("options.channelId",e.channelId,r["b"].CHANNEL_ID),n="conversationType:"+e.conversationType+",targetId:"+e.targetId,l.debug("set conversation status ->"+n),[4,k.imClient.context.setConversationStatus(e.conversationType,e.targetId,t,void 0,e.channelId)];case 1:return(i=o.sent())!==r["f"].SUCCESS?(l.warn("set conversation status fail ->"+i+":"+G[i]+","+n),[2,{code:i,msg:G[i]}]):[2,{code:i}]}}))}))}var ae=function(e,t,n,r){void 0===n&&(n=!0),void 0===r&&(r=!0),this.messageType=e,this.content=t,this.isPersited=n,this.isCounted=r};function ce(e,t,n){return void 0===t&&(t=!0),void 0===n&&(n=!0),function(r){return new ae(e,r,t,n)}}var ue,le,fe=ce("RC:ImgMsg"),he=ce("RC:HQVCMsg"),de=ce("RC:SightMsg"),pe=ce("RC:TxtMsg"),ge=ce("RC:CombineMsg"),ve=ce("RC:FileMsg"),ye=(ce("RC:GIFMsg"),ce("RC:VcMsg"),ce("RC:LBSMsg"),ce("RC:ReferenceMsg")),me=(ce("RC:ImgTextMsg"),{qiniu:function(e,t,n,i){var o=k.imClient.context.getInfoFromCache();if(1===(null==o?void 0:o.type)&&t.chunk_size&&i.size>t.chunk_size){var s=Object(r["w"])(),a=i.name.substr(i.name.lastIndexOf("."));s+=a,i.uniqueName=s,Ae(i,t,n)}else Ee(e,t,n,i)},baidu:function(e,t,n,r){if(r.size>_e)throw new Error("the file size is over 5GB!");var i=t||{};t=t||le;var o=new XMLHttpRequest,s=Te();if(i.uploadHost.bos||i.bosUploadPath){var a=s+Ie[0][1]+i.bosUploadPath;Ie.shift();var c=i.bosHeader||{},u={filename:t.uniqueValue||r.uniqueName,name:r.name,downloadUrl:a,isBosRes:!0};o.upload&&t.support_options&&(o.upload.onprogress=function(e){n.onProgress(e.loaded,e.total,!0)}),o.onreadystatechange=function(){4===o.readyState&&(JSON.parse(o.responseText||"{}").filename=t.uniqueValue,200===o.status?n.onCompleted(u,!0):Ie.length?me[Ie[0][0]](e,t,n,r):n.onError("upload fail"))},o.open(t.method,a,!0),o.setRequestHeader("authorization",c.bosToken),o.setRequestHeader("x-bce-date",c.bosDate),o.send(r)}},aliyun:function(e,t,n,i){if(i.size>_e)throw new Error("the file size is over 5GB!");var o=new FormData;o.set("file",e.get("file")),o.set("key",e.get("key")),o.set("token",e.get("token"));var s=Ie[0][1];Ie.shift(),e=e||ue,t=(t=t||{})||le;var a=new XMLHttpRequest,c=Te()+t.ossBucketName+"."+s;a.upload&&t.support_options&&(a.upload.onprogress=function(e){n.onProgress(e.loaded,e.total)}),a.onreadystatechange=function(){if(4===a.readyState){var e=JSON.parse(a.responseText||"{}");e.name=t.uniqueValue,e.filename=t.uploadFileName,e.uploadMethod=r["r"]?r["r"].ALI:"",200===a.status?n.onCompleted(e):Ie.length?me[Ie[0][0]](o,t,n,i):n.onError("upload fail")}},a.open(t.method,c,!0),console.log("ali:url",c);var u=t.aliHeader||{};e.set("OSSAccessKeyId",u.osskeyId),e.set("policy",u.ossPolicy),e.set("Signature",u.ossSign),e.set("success_action_status",200),e.delete("key"),e.append("key",t.uploadFileName),e.delete("file"),e.append("file",i),a.send(e)},s3:function(e,t,n,i){var o=new FormData,s=new XMLHttpRequest,a=Te(),c=t.contentDisposition,u=Ie[0][1],l=a+t.s3BucketName+"."+u;console.log("uploadS3:url",l),Ie.shift(),s.upload&&t.support_options&&(s.upload.onprogress=function(e){n.onProgress(e.loaded,e.total)}),s.onreadystatechange=function(){if(4===s.readyState){var o=JSON.parse(s.responseText||"{}");if(o.name=t.uniqueValue,o.filename=t.uploadFileName,o.uploadMethod=r["r"].AWS,200===s.status||204===s.status)n.onCompleted(o);else if(Ie.length){var a=new FormData;a.set("file",e.get("file")),a.set("key",e.get("key")),a.set("token",e.get("token")),me[Ie[0][0]](a,t,n,i)}else n.onError("upload fail")}},s.open(t.method,l,!0);var f=t?t.s3Header:{},h=i&&i.type;c?o.set("Content-Disposition",c+";"):o.set("Content-Disposition","text/html"===h?"inline;":"attachment;"),o.set("Content-Type",h),o.set("x-amz-credential",f.s3Credential),o.set("x-amz-algorithm",f.s3Algorithm),o.set("x-amz-date",f.s3Date),o.set("policy",f.s3Policy),o.set("x-amz-signature",f.s3Signature),o.set("key",t.uploadFileName),o.set("file",i),s.send(o)},stc:function(e,t,n,i){var o=new XMLHttpRequest,s=t.contentDisposition,a="https://"+Ie[0][1]+"/"+t.stcBucketName+"/"+t.uploadFileName;Ie.shift(),o.upload&&t.support_options&&(o.upload.onprogress=function(e){n.onProgress(e.loaded,e.total)}),o.onreadystatechange=function(){if(4===o.readyState){var s=JSON.parse(o.responseText||"{}");if(s.name=t.uniqueValue,s.filename=t.uploadFileName,s.uploadMethod=r["r"]?r["r"].STC:"",200===o.status||204===o.status)n.onCompleted(s);else if(Ie.length){var a=new FormData;a.set("file",e.get("file")),a.set("key",e.get("key")),a.set("token",e.get("token")),me[Ie[0][0]](a,t,n,i)}else n.onError("upload fail")}},o.open("PUT",a,!0);var c=t?t.stcHeader:{};o.setRequestHeader("Content-Type",i.type),s?o.setRequestHeader("Content-Disposition",s+";"):o.setRequestHeader("Content-Disposition","text/html"===i.type?"inline;":"attachment;"),o.setRequestHeader("Authorization",c.stcAuthorization),o.setRequestHeader("x-amz-content-sha256",c.stcContentSha256),o.setRequestHeader("x-amz-date",c.stcDate),o.send(i)}}),Ie=[],_e=5368709120;function Te(){var e="https://";return"http:"!==location.protocol&&"file:"!==location.protocol||(e="http://"),e}var Ce,Me=(Ce="RC-upload-",{get:function(e){e=Ce+e;var t=localStorage.getItem(e);if(t)return null!==(t=JSON.parse(t||"{}"))&&t.type&&t.data?t.data:null},set:function(e,t){var n=localStorage;e=Ce+e,t={data:t,type:typeof t,updateTime:Date.now()},n.setItem(e,JSON.stringify(t))},remove:function(e){e=Ce+e,localStorage.removeItem(e)}});function Ee(e,t,n,i){var o="https://"+t.uploadHost.qiniu,s=(/http/.test(Ie[0][1])?"":Te())+Ie[0][1]||o;t.isChunk||Ie.shift();var a=new XMLHttpRequest;a.upload&&t.support_options&&(a.upload.onprogress=function(e){n.onProgress(e.loaded,e.total)}),a.onreadystatechange=function(){if(4===a.readyState){var o=JSON.parse(a.responseText||"{}");o.filename=t.uniqueValue,o.uploadMethod=r["r"]?r["r"].QINIU:"",200===a.status||204===a.status?n.onCompleted(o):Ie.length?me[Ie[0][0]](e,t,n,i):n.onError("upload fail")}},a.open(t.method,s,!0),n.onOpen(a),t.stream&&a.setRequestHeader("authorization","UpToken "+t.multi_parmas.token),function(e,t){for(var n in e)t(n,e[n])}(t.headers,(function(e,t){a.setRequestHeader(e,t)})),a.send(e)}function Ae(e,t,n,i){var o=0,s=i||Object(r["w"])(),a=Me.get(s);a&&(e.uniqueName=a.sessionId,o=a.offset);var c=Math.min(t.chunk_size,e.size-o),u=e.slice(o,o+c),l=e.uniqueName;t.multi_parmas.name=l,t.filesize=e.size;var f="bytes="+o+"-"+(o+c);t.headers={Range:f,"X-File-TransactionId":l,"X-File-Total-Size":e.size},t.isChunk=!0,u.name=e.name,u=function(e,t,n){var r=new FormData;for(var i in t.unique_key&&r.append(t.unique_key,n),r.append(t.file_data_name,e,e.name),t.multi_parmas){var o=t.multi_parmas[i];r.append(i,o)}return r}(u,t,e.uniqueName),Ee(u,t,{onCompleted:function(r){o+=c;var i=e.uniqueName;Me.set(s,{offset:o,sessionId:i}),o<e.size?Ae(e,t,n,s):(o=0,Me.remove(s),n.onCompleted(r))},onError:function(e){console.error(e),n.onError(e)},onProgress:function(e,r){var i=e+o;n.onProgress(i,t.filesize)},onOpen:function(e){n.onOpen(e)}},e)}function Se(e,t,n){var i,o,s=e&&e.type||"text/plain",a=s.indexOf("image")>-1?1:4,c=t.contentDisposition,u=Math.ceil(e.size/t.stc_chunk_size),l=t&&JSON.parse(t.ossConfig?t.ossConfig:"");Array.isArray(l)||(l=[]);var f=l.find((function(e){return Object.keys(e).includes("stc")})),h="uploads";k.imClient.context.getFileToken(a,i,"POST",h).then((function(r){i=r.fileName,o="https://"+f.stc+"/"+t.stcBucketName+"/"+i,console.log("uploadStcMultipart:url",o);var a=new XMLHttpRequest;a.open("POST",o+"?"+h,!0),c?a.setRequestHeader("Content-Disposition",c+";"):a.setRequestHeader("Content-Disposition","text/html"===e.type?"inline;":"attachment;"),a.setRequestHeader("Authorization",r&&r.stcAuthorization),a.setRequestHeader("x-amz-content-sha256",r&&r.stcContentSha256),a.setRequestHeader("x-amz-date",r&&r.stcDate),a.setRequestHeader("Content-Type",s),a.send(),a.onreadystatechange=function(){if(4===a.readyState){var e=a.response.match(/(?:<UploadId>)(\S*?)(?:<\/UploadId>)/);console.log("uploadId",e),200===a.status||204===a.status?function(e){for(var t=[],n=1;n<=u;n++)t.push(v(e,n));g(e,t)}(Array.isArray(e)&&e[1]):n.onError("uploadStcMultipart:did not get uploadId")}}}),(function(e){n.onError("uploadStcMultipart:"+e)}));var d=[],p=new Map;function g(c,l){l&&Array.isArray(l)&&0!==l.length&&Promise.all(l).then((function(){var l="uploadId="+c;if(p.size===u)k.imClient.context.getFileToken(a,i,"POST",l).then((function(i){console.log("onSuccess",i),console.log("onSuccess:uploadId",c);var a=new XMLHttpRequest;a.open("POST",o+"?"+l,!0),a.setRequestHeader("Authorization",i&&i.stcAuthorization),a.setRequestHeader("x-amz-content-sha256",i&&i.stcContentSha256),a.setRequestHeader("x-amz-date",i&&i.stcDate),a.setRequestHeader("Content-Type",s);var u="<CompleteMultipartUpload xmlns='http://s3.amazonaws.com/doc/2006-03-01/'>",f=Array.from(p.keys()||[]).sort((function(e,t){return e-t}));console.log("keys",f),f.forEach((function(e){u+="<Part><ETag>".concat(p.get(e),"</ETag><PartNumber>").concat(e,"</PartNumber></Part>")})),u+="</CompleteMultipartUpload>",a.send(u),console.log("xml",u),a.onreadystatechange=function(){if(4===a.readyState)if(200===a.status||204===a.status){var i={name:e.name,filename:t.uploadFileName,uploadMethod:r["r"].STC};n.onCompleted(i)}else n.onError("uploadStcMultipart:upload does not end")}}),(function(e){n.onError("uploadStcMultipart:"+e)}));else{for(var f=[],h=0,y=d;h<y.length;h++){var m=y[h];f.push(v(c,m))}g(c,f)}}),(function(e){console.error(e),n.onError("uploadStcMultipart: chunkFiles upload failed and those will reupload");for(var t=[],r=0,i=d;r<i.length;r++){var o=i[r];t.push(v(c,o))}g(c,t)}))}function v(n,r){return new Promise((function(c,u){var l="partNumber="+r+"&uploadId="+n;k.imClient.context.getFileToken(a,i,"PUT",l).then((function(n){console.log("signature "+r+" onSuccess",n);var i=e&&e.slice((r-1)*t.stc_chunk_size,r*t.stc_chunk_size);console.log("fileChunk:size",i.size);var a=new XMLHttpRequest;a.open("PUT",o+"?"+l,!0),a.setRequestHeader("Authorization",n&&n.stcAuthorization),a.setRequestHeader("x-amz-content-sha256",n&&n.stcContentSha256),a.setRequestHeader("x-amz-date",n&&n.stcDate),a.setRequestHeader("Content-Type",s),a.send(i),a.onreadystatechange=function(){if(4===a.readyState)if(200===a.status||204===a.status){var e=a.getResponseHeader("etag");console.log("etag:"+r,e),p.set(r,e),c(e)}else d.includes(r)||d.push(r),u(r)}}),(function(e){console.log("getETags:签名验证失败"),d.includes(r)||d.push(r),u(r)}))}))}}var Ne={form:function(e,t){var n=new FormData;if(t.unique_key){var r=e.name.substr(e.name.lastIndexOf(".")),i=be()+r;n.append(t.unique_key,i),t.uniqueValue=i}return n.append(t.file_data_name,e),we(t.multi_parmas,(function(e,t){n.append(e,t)})),n},json:function(e,t){var n={};if(t.unique_key){var r=e.name.substr(e.name.lastIndexOf(".")),i=be()+r;n[t.unique_key]=i,t.uniqueValue=i}return n[t.file_data_name]=e,we(t.multi_parmas,(function(e,t){n[e]=t})),JSON.stringify(n)},data:function(e,t){return e}};function be(){var e=(new Date).getTime();return"xxxxxx4xxxyxxxxxxx".replace(/[xy]/g,(function(t){var n=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"===t?n:3&n|8).toString(16)}))}function we(e,t){for(var n in e)t(n,e[n])}var Oe,Re,De,Le=0,Ue=function(){function e(e){this.options=function(e){var t={domain:"",method:"POST",file_data_name:"file",unique_key:"key",base64_size:4194304,chunk_size:4194304,bos_chunk_size:4294967296,stc_chunk_size:10485760,headers:{},multi_parmas:{},query:{},support_options:!0,data:Ne.form,genUId:be};if(!e||!e.domain)throw new Error("domain is null");for(var n in e)t[n]=e[n];return t}(e)}return e.prototype.setOptions=function(e){var t=this;we(e,(function(e,n){t.options[e]=n}))},e.prototype.upload=function(e,t){if(e){var n=this;!function(e,t,n){var r,i;ue=e,le=t,Ie=[];var o,s=k.imClient.context.getInfoFromCache();if(1===(null==s?void 0:s.type)&&(null===(r=k.imClient.initOptions)||void 0===r?void 0:r.uploadDomain))Ie=[["qiniu",null===(i=k.imClient.initOptions)||void 0===i?void 0:i.uploadDomain]];else if(t.ossConfig){var a,c,u=JSON.parse(t.ossConfig),l="",f=[];u.forEach((function(e){var t=Number(e.p)-1;for(var n in e)"aliyun"===n&&(l=e[n]),"s3"===n&&(a=e[n]),"stc"===n&&(c=e[n]),"p"!==n&&(f[t]=[n,e[n]])})),f.forEach((function(e){e&&Ie.push(e)})),u.length!==Ie.length&&(Ie=[["qiniu",t.domain],["baidu",t.uploadHost.bos],["aliyun",l],["s3",a],["stc",c]])}else Ie=[["qiniu",t.domain],["baidu",t.uploadHost.bos]];if(t.ossConfig){var h=t&&JSON.parse(t.ossConfig);Array.isArray(h)||(h=[]),o=h.find((function(e){return Object.keys(e).includes("stc")}))}if(o&&1===parseInt(o.p)&&e.size>=4194304)Se(e,t,n);else{var d=t.data(e,t);me[Ie[0][0]](d,t,n,e)}}(e,this.options,{onProgress:function(e,n,r){Oe=e,r?Oe=Le+e/n*(n-Le):Le=Oe,t.onProgress(Oe,n)},onCompleted:function(e){t.onCompleted(e)},onError:function(e){t.onError(e)},onOpen:function(e){n.xhr=e}})}else t.onError("upload file is null.")},e.prototype.cancel=function(){this.xhr&&this.xhr.abort()},e}(),xe={init:function(e){return new Ue(e)},dataType:Ne,resize:function(e,t,n){e.type;var r=document.createElement("canvas"),i=new FileReader;i.readAsDataURL(e),i.onload=function(e){var i=e.target.result,o=new Image;o.src=i;var s=o.width,a=o.height,c=function(e,t){var n=1,r=e.width,i=t.maxWidth||0;i>0&&r>i&&(n=i/r);var o=e.height,s=t.maxHeight||0;if(s>0&&o>s){var a=s/o;n=Math.min(n,a)}var c=t.maxSize||0,u=Math.ceil(e.size/1e3);if(u>c){var l=c/u;n=Math.min(n,l)}return n}({width:s,height:a,size:e.total},t),u=i;c<1&&(u=function(e,t,n){return r.width=t,r.height=n,r.getContext("2d").drawImage(e,0,0,t,n),r.toDataURL("image/jpg")}(o,s*c,a*c)),n(u)}}},Pe=function(e,t,n){var r=document.createElement("canvas"),i=r.getContext("2d"),o=new Image,s="string"==typeof e;o.onload=function(s){var a=function(e,t,n){var r,i,o,s=e<t,a=0,c=0;return(s?t/e:e/t)>n.scale?(s?(i=100,c=((o=t/(r=e/100))-n.maxHeight)/2):(o=100,a=((i=e/(r=t/100))-n.maxWidth)/2),{w:i,h:o,x:-a,y:-c}):(s?(r=t/n.maxHeight,o=n.maxHeight,i=e/r):(r=e/n.maxWidth,i=n.maxWidth,o=t/r),{w:i,h:o,x:-a,y:-c})}(o.width,o.height,t);r.width=a.w>t.maxWidth?t.maxWidth:a.w,r.height=a.h>t.maxHeight?t.maxHeight:a.h,i.drawImage(o,a.x,a.y,a.w,a.h);var c=r.toDataURL("string"==typeof e?"image/jpg":e.type,t.quality);c=c.replace(/data:image\/[^;]+;base64,/,""),n(c)},o.src=s?"data:image/jpg;base64,"+e:function(e){var t=window.URL||window.webkitURL;return t?t.createObjectURL(e):""}(e)},je=function(e,t){var n=e.file,r=e.compress;Pe(n,r,t)},ke=function(e,t){if(e.getToken)e.getToken((function(n,r){r=r||{},e.multi_parmas||(e.multi_parmas={}),e.multi_parmas.token=n,e.uploadHost||(e.uploadHost={}),e.uploadHost.bos=r.bos,e.ossConfig=r.ossConfig,e.bosHeader||(e.bosHeader={}),e.bosHeader.bosDate=r.bosDate,e.bosHeader.bosToken=r.bosToken,e.bosUploadPath=r.path,e.aliHeader={},e.aliHeader.osskeyId=r.osskeyId,e.aliHeader.ossPolicy=r.ossPolicy,e.aliHeader.ossSign=r.ossSign,e.ossBucketName=r.ossBucketName,e.uploadFileName=r.fileName,e.s3Header={},e.s3Header.s3Credential=r.s3Credential,e.s3Header.s3Algorithm=r.s3Algorithm,e.s3Header.s3Date=r.s3Date,e.s3Header.s3Policy=r.s3Policy,e.s3Header.s3Signature=r.s3Signature,e.s3BucketName=r.s3BucketName,e.stcHeader={},e.stcHeader.stcAuthorization=r.stcAuthorization,e.stcHeader.stcContentSha256=r.stcContentSha256,e.stcHeader.stcDate=r.stcDate,e.stcBucketName=r.stcBucketName,e.headers||(e.headers={}),e.base64&&(e.headers["Content-type"]="application/octet-stream",e.headers.Authorization="UpToken "+n);var i=xe.init(e);t(i)}));else{e.headers||(e.headers={}),e.base64&&(e.headers["Content-type"]="application/octet-stream");var n=xe.init(e);t(n)}},ze=function(e,t,n){t.upload(e.file,{onError:function(e){n.onError(e)},onProgress:function(e,t){n.onProgress(e,t)},onCompleted:function(t){t.filename||(t.filename=t.hash);var r=e.compressThumbnail||je;e.compress?r(e,(function(e){t.thumbnail=e,n.onCompleted(t)})):n.onCompleted(t)}})},Ge=function(){function e(e){this.instance=e}return e.prototype.upload=function(e,t){ze({file:e},this.instance,t)},e.prototype.cancel=function(){this.instance.cancel()},e}(),Be=function(){function e(e,t){this.instance=e,this.cfg=t}return e.prototype.upload=function(e,t){var n={file:e,compress:this.cfg};ze(n,this.instance,t)},e.prototype.cancel=function(){this.instance.cancel()},e}(),Ve=function(e,t){ke(e,(function(n){var r,i,o,s,a={maxHeight:(null===(r=e.thumbnailConfig)||void 0===r?void 0:r.maxHeight)||160,maxWidth:(null===(i=e.thumbnailConfig)||void 0===i?void 0:i.maxWidth)||160,quality:(null===(o=e.thumbnailConfig)||void 0===o?void 0:o.quality)||.5,scale:(null===(s=e.thumbnailConfig)||void 0===s?void 0:s.scale)||2.4},c=new Be(n,a);t(c)}))},Ye=function(e,t){ke(e,(function(e){var n=new Ge(e);t(n)}))},He=Ve;function Fe(e,t,n,i){var c,u=this;void 0===t&&(t=r["h"].FILE),c=t===r["h"].IMAGE?r["h"].IMAGE:r["h"].FILE;var l=k.imClient.context.getInfoFromCache();if(!De&&(De="upload.qiniup.com",l&&l.ossConfig))try{var f=JSON.parse(l.ossConfig).find((function(e){return void 0!==e.qiniu}));f&&(De=f.qiniu)}catch(e){}var h=o({domain:De,getToken:function(e){k.imClient.context.getFileToken(c).then((function(t){e(t.token,t)})).catch((function(e){n.onFail(e)}))}},i);(c===r["h"].IMAGE?He:Ye)(h,(function(i){i.upload(e,{onProgress:function(e,t){var r,i=Math.floor(e/t*100);null===(r=n.onProgress)||void 0===r||r.call(n,i)},onCompleted:function(i){return s(u,void 0,void 0,(function(){return a(this,(function(u){return 1===(null==l?void 0:l.type)?function(e,t,n,i,s){var a,c={type:n.type,name:i.rc_url.file_name,downloadUrl:(null===(a=k.imClient.initOptions)||void 0===a?void 0:a.uploadDomain)+i.rc_url.path};e!==r["h"].AUDIO?(e===r["h"].IMAGE&&(c.thumbnail=i.thumbnail),s.onSuccess(c)):Qe(n).then((function(e){s.onSuccess(o(o({},c),e))}))}(t,0,e,i,n):function(e,t,n,i,c){var u=this;Ke(t,i.filename,i.name,i,i.uploadMethod).then((function(l){return s(u,void 0,void 0,(function(){var s;return a(this,(function(a){return 0!==l.code?(c.onFail(l),[2]):((s=l.data).type=n.type,s.name=i.name||i.filename,e===r["h"].AUDIO?(Qe(n).then((function(e){c.onSuccess(o(o({},s),e))})),[2]):(t===r["h"].IMAGE&&(s.thumbnail=i.thumbnail),c.onSuccess(s),[2]))}))}))})).catch((function(e){c.onFail(e)}))}(t,c,e,i,n),[2]}))}))},onError:function(e){n.onFail(e)}})}))}function Qe(e){return new Promise((function(t){if("function"==typeof e.arrayBuffer)return e.arrayBuffer().then($e).then((function(e){t(e)}));var n=new FileReader;n.onload=function(){n.result?$e(n.result).then((function(e){t(e)}),(function(){t({})})):t({})},n.onerror=function(){t({duration:0})},n.readAsArrayBuffer(e)}))}function $e(e){return Re=Re||new AudioContext,new Promise((function(t,n){Re.decodeAudioData(e,(function(e){t({duration:e.duration,length:e.length})}),n)}))}function Ke(e,t,n,i,o){return Object(r["v"])("fileType",e,r["E"],!0),Object(r["v"])("filename",t,r["b"].STRING),Object(r["v"])("saveName",n,r["b"].STRING),Object(r["v"])("serverType",o,r["b"].NUMBER),new Promise((function(s){k.imClient.context.getFileUrl(e,t,n,i,o).then((function(e){s({code:r["f"].SUCCESS,data:e})})).catch((function(e){s({code:e})}))}))}function We(e,t,n){return s(this,void 0,void 0,(function(){var i,s,c,u,f,h,d,p,g,v,y,m;return a(this,(function(a){switch(a.label){case 0:return n=n||{},t instanceof ae==0?(l.warn("send message fail -> message parameter is not an instance of BaseMessage"),[2,z.ILLGAL_PARAMS]):(Object(r["v"])("conversation",e,r["b"].OBJECT,!0),i=e.conversationType,s=e.targetId,c=e.channelId,Object(r["v"])("conversation.targetId",s,r["b"].STRING,!0),Object(r["v"])("conversation.conversationType",i,r["b"].NUMBER),Object(r["v"])("conversation.channelId",c,r["b"].CHANNEL_ID),Object(r["v"])("options.isStatusMessage",null==n?void 0:n.isStatusMessage,r["b"].BOOLEAN),Object(r["v"])("options.disableNotification",null==n?void 0:n.disableNotification,r["b"].BOOLEAN),Object(r["v"])("options.pushContent",null==n?void 0:n.pushContent,r["b"].STRING),Object(r["v"])("options.pushData",null==n?void 0:n.pushData,r["b"].STRING),Object(r["v"])("options.isMentioned",null==n?void 0:n.isMentioned,r["b"].BOOLEAN),Object(r["v"])("options.mentionedType",null==n?void 0:n.mentionedType,r["b"].NUMBER),Object(r["v"])("options.mentionedUserIdList",null==n?void 0:n.mentionedUserIdList,r["b"].ARRAY),Object(r["v"])("options.directionalUserIdList",null==n?void 0:n.directionalUserIdList,r["b"].ARRAY),Object(r["v"])("options.isVoipPush",null==n?void 0:n.isVoipPush,r["b"].BOOLEAN),Object(r["v"])("options.canIncludeExpansion",null==n?void 0:n.canIncludeExpansion,r["b"].BOOLEAN),Object(r["v"])("options.expansion",null==n?void 0:n.expansion,r["b"].OBJECT),Object(r["v"])("options.pushConfig",null==n?void 0:n.pushConfig,r["b"].OBJECT),u="conversationType:"+i+",targetId:"+s,l.debug("send message ->"+u),f=function(e,t,n){var r=e.isStatusMessage,i=e.disableNotification,s=e.pushContent,a=e.pushData,c=e.isMentioned,u=e.mentionedType,l=e.mentionedUserIdList,f=e.directionalUserIdList,h=e.isVoipPush,d=e.canIncludeExpansion,p=e.expansion,g=e.isFilerWhiteBlacklist,v=e.pushConfig,y=n.channelId;return o({isStatusMessage:r,disableNotification:i,pushContent:s,pushData:a,isMentioned:c,mentionedType:u,mentionedUserIdList:l,directionalUserIdList:f,isVoipPush:h,canIncludeExpansion:d,expansion:p,isFilerWhiteBlacklist:g,pushConfig:v,channelId:y||""},t)}(n,t,e),h={isMentioned:!!n.isMentioned,content:t.content,messageType:t.messageType,isPersited:t.isPersited||!1,isCounted:t.isCounted||!1,disableNotification:!!(null==n?void 0:n.disableNotification),canIncludeExpansion:!!(null==n?void 0:n.canIncludeExpansion),expansion:(null==n?void 0:n.expansion)||null,conversationType:e.conversationType,targetId:e.targetId,channelId:e.channelId,senderUserId:k.imClient.context.getCurrentUserId(),messageUId:"",messageDirection:r["l"].SEND,receivedTime:0,isStatusMessage:n.isStatusMessage||!1,receivedStatus:r["p"].UNREAD,isOffLineMessage:!1,pushConfig:null==n?void 0:n.pushConfig},i!==r["e"].ULTRA_GROUP&&(h.isOffLineMessage=!1),d=function(e){h.messageId=e;try{(null==n?void 0:n.onSendBefore)&&n.onSendBefore(x(h))}catch(e){r["F"].error('Callback method "onSendBefore" execution error',e)}},p=r["F"].ID(),r["F"].info(r["j"].A_SEND_MSG_T,{messageType:t.messageType,conversationType:i,targetId:s,channelId:c},{traceId:p}),[4,k.imClient.context.sendMessage(i,s,f,d,p)]);case 1:return g=a.sent(),v=g.code,y=g.data,(v===r["f"].SUCCESS?r["F"].info:r["F"].warn)(r["j"].A_SEND_MSG_R,{code:v,messageUId:y?y.messageUId:"",messageId:y?y.messageId:""},{traceId:p}),v===r["f"].SUCCESS?(m=x(y),[2,{code:v,data:m}]):(l.warn("send message fail ->"+v+":"+G[v]+","+u),h.sentTime=(null==y?void 0:y.sentTime)||0,[2,{code:v,msg:G[v],data:x(h)}])}}))}))}function qe(e,t){return function(n,i,o,s){Object(r["v"])("sendOptions.contentDisposition",null==s?void 0:s.contentDisposition,(function(e){return["inline","attachment"].includes(e)}));var a={contentDisposition:null==s?void 0:s.contentDisposition};if(s&&"thumbnailConfig"in s){var c=null==s?void 0:s.thumbnailConfig;Object(r["v"])("sendOptions.maxHeight",null==c?void 0:c.maxHeight,r["b"].NUMBER),Object(r["v"])("sendOptions.maxWidth",null==c?void 0:c.maxWidth,r["b"].NUMBER),Object(r["v"])("sendOptions.quality",null==c?void 0:c.quality,r["b"].NUMBER),Object(r["v"])("sendOptions.scale",null==c?void 0:c.scale,r["b"].NUMBER),a.thumbnailConfig=c}return new Promise((function(c){var u=r["F"].ID();r["F"].info(r["j"].L_MEDIA_UPLOAD_T,{filesize:i.file.size,type:e},{traceId:u}),Fe(i.file,e,{onProgress:null==o?void 0:o.onProgress,onSuccess:function(e){var a,l=(null===(a=null==o?void 0:o.onComplete)||void 0===a?void 0:a.call(o,{url:e.downloadUrl}))||t(e,i);e&&e.downloadUrl&&r["F"].info(r["j"].L_MEDIA_UPLOAD_R,{downurl:e.downloadUrl,code:r["f"].SUCCESS},{traceId:u}),We(n,l,s).then(c)},onFail:function(e){r["F"].warn(r["j"].L_MEDIA_UPLOAD_R,{code:r["f"].UPLOAD_FILE_FAILED},{traceId:u}),c({code:r["f"].UPLOAD_FILE_FAILED,msg:e||r["f"][r["f"].UPLOAD_FILE_FAILED]})}},a)}))}}xe.dataType;var Ze=qe(r["h"].FILE,(function(e,t){return new ve({name:e.name,size:t.file.size,type:t.file.type,fileUrl:e.downloadUrl,user:t.user,extra:t.extra})})),Je=qe(r["h"].IMAGE,(function(e,t){return new fe({content:e.thumbnail,imageUri:e.downloadUrl,user:t.user,extra:t.extra})}));qe(r["h"].AUDIO,(function(e,t){return new he({remoteUrl:e.downloadUrl,duration:e.duration,type:e.type,user:t.user,extra:t.extra})})),qe(r["h"].SIGHT,(function(e,t){return new de({sightUrl:e.downloadUrl,content:t.thumbnail,duration:t.duration,size:t.file.size||e.size,name:t.name||e.name,user:t.user,extra:t.extra})}));function Xe(e,t){return s(this,void 0,void 0,(function(){var n,i,o,s,c,u;return a(this,(function(a){switch(a.label){case 0:return Object(r["v"])("options.timestamp",null==t?void 0:t.timestamp,r["b"].NUMBER),Object(r["v"])("options.count",null==t?void 0:t.count,r["b"].NUMBER),Object(r["v"])("options.order",null==t?void 0:t.order,(function(e){return 0===e||1===e})),Object(r["v"])("conversation.channelId",null==e?void 0:e.channelId,r["b"].CHANNEL_ID),n="conversationType:"+e.conversationType+",targetId:"+e.targetId,l.debug("get history message ->"+n),i=r["F"].ID(),r["F"].info(r["j"].A_GET_HISTORY_MSG_T,{targetId:e.targetId,conversationType:e.conversationType,channelId:e.channelId,timestamp:null==t?void 0:t.timestamp,count:null==t?void 0:t.count},{traceId:i}),[4,k.imClient.context.getHistoryMessage(e.conversationType,e.targetId,null==t?void 0:t.timestamp,null==t?void 0:t.count,null==t?void 0:t.order,null==e?void 0:e.channelId,"",i)];case 1:return o=a.sent(),s=o.code,c=o.data,s===r["f"].SUCCESS&&c?(u=c.list.map((function(e){return x(e)})),r["F"].info(r["j"].A_GET_HISTORY_MSG_R,{code:s,messageLength:u.length},{traceId:i}),[2,{code:s,data:{list:u,hasMore:c.hasMore}}]):(r["F"].warn(r["j"].A_GET_HISTORY_MSG_R,{code:s,messageUIds:""},{traceId:i}),l.warn("get history message fail ->"+s+":"+G[s]+","+n),[2,{code:s,msg:G[s]}])}}))}))}function et(e,t,n,i){return s(this,void 0,void 0,(function(){var o,s,c,u,l;return a(this,(function(a){switch(a.label){case 0:return o={targetId:e,conversationType:r["e"].PRIVATE,channelId:i},s=new ae("RC:ReadNtf",{messageUId:t,lastMessageSendTime:n,type:1}),[4,We(o,s)];case 1:return c=a.sent(),u=c.code,l=c.msg,0===u?[2,{code:u}]:[2,{code:u,msg:l}]}}))}))}function nt(e,t,n){return s(this,void 0,void 0,(function(){var i,o,s,c,u,f,h;return a(this,(function(a){switch(a.label){case 0:return Object(r["v"])("targetId",e,r["b"].STRING,!0),Object(r["v"])("messageList",t,r["b"].OBJECT,!0),Object(r["v"])("channelId",n,r["b"].CHANNEL_ID),Object.keys(t).forEach((function(e){Object(r["v"])(e,t[e],r["b"].ARRAY)})),i={targetId:e,conversationType:r["e"].GROUP,channelId:n},s=k.imClient.context.getInfoFromCache(),0!==(c=(null==s?void 0:s.grpRRVer)||0)?[3,2]:(u=new ae("RC:RRRspMsg",{receiptMessageDic:t}),[4,We(i,u)]);case 1:return o=a.sent(),[3,4];case 2:return 1!==c?[3,4]:(f=[],Object.keys(t).forEach((function(e){t[e].forEach((function(e){-1===f.indexOf(e)&&f.push(e)}))})),f.length?[4,k.imClient.context.sendReadReceiptMessage(e,f,n)]:(l.warn("Error in parameter messageList."),[2,{code:r["f"].PARAMETER_ERROR}]));case 3:o=a.sent(),a.label=4;case 4:return(h=o.code)===r["f"].SUCCESS?[2,{code:h}]:(l.warn("send read receipt message fail ->"+h+":"+G[h]),[2,{code:h,msg:G[h]}])}}))}))}function rt(e,t){return s(this,void 0,void 0,(function(){var n,i,o,s,c;return a(this,(function(a){switch(a.label){case 0:return Object(r["v"])("options.messageUId",t.messageUId,r["b"].STRING,!0),Object(r["v"])("options.sentTime",t.sentTime,r["b"].NUMBER,!0),Object(r["v"])("options.disableNotification",null==t?void 0:t.disableNotification,r["b"].BOOLEAN),Object(r["v"])("options.pushConfig",null==t?void 0:t.pushConfig,r["b"].OBJECT),Object(r["v"])("conversation.channelId",null==e?void 0:e.channelId,r["b"].CHANNEL_ID),n={user:t.user,channelId:e.channelId||"",disableNotification:null==t?void 0:t.disableNotification,pushConfig:null==t?void 0:t.pushConfig,extra:t.extra,isDelete:t.isDelete},i="conversationType:"+e.conversationType+",targetId:"+e.targetId+",messageUId:"+t.messageUId,l.debug("recall message ->"+i),[4,k.imClient.context.recallMessage(e.conversationType,e.targetId,t.messageUId,t.sentTime,n)];case 1:return o=a.sent(),s=o.code,c=o.data,s===r["f"].SUCCESS&&c?[2,{code:s,data:x(c)}]:s===r["f"].SUCCESS?[2,{code:s}]:(l.warn("recall message fail ->"+s+":"+G[s]+","+i),[2,{code:s,msg:G[s]}])}}))}))}function it(e,t){return s(this,void 0,void 0,(function(){var n,i;return a(this,(function(o){switch(o.label){case 0:return Object(r["v"])("options",t,(function(e){return Object(r["x"])(e)&&e.length}),!0),t.forEach((function(e){Object(r["v"])("options.messageUId",e.messageUId,r["b"].STRING,!0),Object(r["v"])("options.sentTime",e.sentTime,r["b"].NUMBER,!0),Object(r["v"])("options.messageDirection",e.messageDirection,(function(e){return 1===e||2===e}),!0)})),Object(r["v"])("conversation.channelId",null==e?void 0:e.channelId,r["b"].CHANNEL_ID),n="conversationType:"+e.conversationType+",targetId:"+e.targetId,l.debug("delete messages ->"+n),[4,k.imClient.context.deleteRemoteMessage(e.conversationType,e.targetId,t,e.channelId)];case 1:return(i=o.sent())!==r["f"].SUCCESS?(l.warn("delete message fail ->"+i+":"+G[i]+","+n),[2,{code:i,msg:G[i]}]):[2,{code:r["f"].SUCCESS}]}}))}))}function ot(e,t,n,i,o){return Object(r["v"])("messageType",e,r["b"].STRING,!0),Object(r["v"])("isPersited",t,r["b"].BOOLEAN,!0),Object(r["v"])("isCounted",n,r["b"].BOOLEAN,!0),Object(r["v"])("isStatusMessage",o,r["b"].BOOLEAN,!1),r["F"].info(r["j"].A_REGTYP_O,{messageType:e,isCounted:n,isStatusMessage:o,isPersited:t}),k.imClient.context.registerMessageType(e,t,n,i,o),ce(e,t,n)}qe(r["h"].COMBINE_HTML,(function(e,t){return new ge({remoteUrl:e.downloadUrl,nameList:t.nameList,summaryList:t.summaryList,conversationType:t.conversationType,user:t.user,extra:t.extra})}));Object.freeze({__proto__:null,getAllConversationList:function(e){return s(this,void 0,void 0,(function(){var t,n,i,o;return a(this,(function(s){switch(s.label){case 0:return Object(r["H"])()?(Object(r["v"])("channelId",e,r["b"].ONLY_STRING),l.info("getAllConversationList -> channelId: ".concat(e)),Object(r["C"])(e)?[4,k.imClient.context.getConversationListWithAllChannel()]:[3,2]):[2,{code:r["f"].NOT_SUPPORT,msg:G[r["f"].NOT_SUPPORT]}];case 1:return t=s.sent(),[3,4];case 2:return[4,k.imClient.context.getConversationList(void 0,void 0,void 0,void 0,e)];case 3:t=s.sent(),s.label=4;case 4:return n=t.code,i=t.data,n===r["f"].SUCCESS&&i?(o=i.map((function(e){return P(e)})),[2,{code:n,data:o}]):(l.warn("getAllConversationList fail -> code: ".concat(n," channelId: ").concat(e)),[2,{code:n,msg:G[n]}])}}))}))},getConversationList:function(e,t,n){return s(this,void 0,void 0,(function(){var i,o,s,c,u,f;return a(this,(function(a){switch(a.label){case 0:return Object(r["H"])()?(Object(r["v"])("startTime",e,r["b"].NUMBER,!0),Object(r["v"])("count",t,r["b"].NUMBER,!0),Object(r["v"])("channelId",n,r["b"].ONLY_STRING),i="startTime: ".concat(e,", count: ").concat(t,", channelId: ").concat(n),l.info("getConversationList -> ".concat(i)),Object(r["C"])(n)?[4,k.imClient.context.getConversationListWithAllChannelByPage(e,t)]:[3,2]):[2,{code:r["f"].NOT_SUPPORT,msg:G[r["f"].NOT_SUPPORT]}];case 1:return o=a.sent(),[3,4];case 2:return s=[1,2,3,5,6,7,8],[4,k.imClient.context.getConversationsByPage(s,e,t,n)];case 3:o=a.sent(),a.label=4;case 4:return c=o.code,u=o.data,c===r["f"].SUCCESS&&u?(f=u.map((function(e){return P(e)})),[2,{code:c,data:f}]):(l.warn("getConversationList fail -> code: ".concat(c," ").concat(i)),[2,{code:c,msg:G[c]}])}}))}))},searchConversationByContent:function(e,t,n){return s(this,void 0,void 0,(function(){var i,o,s,c,u;return a(this,(function(a){switch(a.label){case 0:return Object(r["H"])()?(Object(r["v"])("keyword",e,r["b"].STRING,!0),Object(r["v"])("messageTypes",t,r["b"].ARRAY,!0),Object(r["v"])("channelId",n,r["b"].ONLY_STRING),t.forEach((function(e){Object(r["v"])("messageType",e,r["b"].STRING,!0)})),i="keyword: ".concat(e,", messageTypes: ").concat(JSON.stringify(t),", channelId: ").concat(n),l.info("searchConversationByContent -> ".concat(r["k"])),Object(r["C"])(n)?[4,k.imClient.context.searchConversationByContentWithAllChannel(e,t)]:[3,2]):[2,{code:r["f"].NOT_SUPPORT,msg:G[r["f"].NOT_SUPPORT]}];case 1:return o=a.sent(),[3,4];case 2:return[4,k.imClient.context.searchConversationByContent(e,t,n)];case 3:o=a.sent(),a.label=4;case 4:return s=o.code,c=o.data,s===r["f"].SUCCESS&&c?(u=c.map((function(e){return P(e)})),[2,{code:s,data:u}]):(l.warn("searchConversationByContent fail -> code: ".concat(s," ").concat(i)),[2,{code:s,msg:G[s]}])}}))}))},searchMessages:function(e,t,n,i){return s(this,void 0,void 0,(function(){var o,s,c,u,f,h,d,p,g,v;return a(this,(function(a){switch(a.label){case 0:return Object(r["H"])()?(Object(r["v"])("conversation",e,r["b"].CONVERSATION,!0),Object(r["v"])("keyword",t,r["b"].STRING,!0),Object(r["v"])("startTime",n,r["b"].NUMBER,!0),Object(r["v"])("count",i,r["b"].NUMBER,!0),o="conversation: ".concat(JSON.stringify(e),", keyword: ").concat(t,", timestamp: ").concat(n,", count: ").concat(i),l.info("searchMessages -> ".concat(o)),s=e.targetId,c=e.conversationType,u=e.channelId,Object(r["C"])(u)?[4,k.imClient.context.searchMessageByContentWithAllChannel(c,s,t,n,i)]:[3,2]):[2,{code:r["f"].NOT_SUPPORT,msg:G[r["f"].NOT_SUPPORT]}];case 1:return f=a.sent(),[3,4];case 2:return[4,k.imClient.context.searchMessageByContent(c,s,t,n,i,0,u)];case 3:f=a.sent(),a.label=4;case 4:return h=f.code,d=f.data,h===r["f"].SUCCESS&&d?(p=d.messages,g=d.count,v=p.map((function(e){return x(e)})),[2,{code:h,data:{messages:v,count:g}}]):(l.warn("searchMessages fail -> code: ".concat(h," ").concat(o)),[2,{code:h,msg:G[h]}])}}))}))},searchMessageInTimeRange:function(e,t){return s(this,void 0,void 0,(function(){var n,i,o,s,c,u,f,h,d,p,g;return a(this,(function(a){switch(a.label){case 0:return Object(r["H"])()?(Object(r["v"])("conversation",e,r["b"].CONVERSATION,!0),Object(r["v"])("option",t,r["b"].OBJECT,!0),Object(r["v"])("option.keyword",t.keyword,r["b"].STRING,!0),Object(r["v"])("option.startTime",t.startTime,r["b"].NUMBER,!0),Object(r["v"])("option.endTime",t.endTime,r["b"].NUMBER,!0),Object(r["v"])("option.offset",t.offset,r["b"].NUMBER),Object(r["v"])("option.limit",t.limit,r["b"].NUMBER),n="conversation: ".concat(JSON.stringify(e),", option: ").concat(JSON.stringify(t)),l.info("searchMessageInTimeRange -> ".concat(n)),i=e.conversationType,o=e.targetId,s=t.keyword,c=t.startTime,u=t.endTime,f=t.offset,h=t.limit,f=f||0,h=h||5,[4,k.imClient.context.searchMessageByContentInTimeRangeWithAllChannel(i,o,s,c,u,f,h)]):[2,{code:r["f"].NOT_SUPPORT,msg:G[r["f"].NOT_SUPPORT]}];case 1:return d=a.sent(),p=d.code,g=d.data,p===r["f"].SUCCESS&&g?[2,{code:p,data:{messages:g.messages.map((function(e){return x(e)}))}}]:(l.warn("searchMessageInTimeRange fail -> code: ".concat(p,", ").concat(n)),[2,{code:p}])}}))}))},getHistoryMessagesByMessageTypes:function(e,t){return s(this,void 0,void 0,(function(){var n,i,o,s,c,u,f,h,d,p,g,v,y,m,I;return a(this,(function(a){switch(a.label){case 0:return Object(r["H"])()?(Object(r["v"])("conversation",e,r["b"].CONVERSATION,!0),Object(r["v"])("option",t,r["b"].OBJECT,!0),n=t.count,i=t.timestamp,o=t.order,s=t.messageTypes,Object(r["v"])("option.count",n,r["b"].NUMBER),Object(r["v"])("option.timestamp",i,r["b"].NUMBER),Object(r["v"])("option.order",o,(function(e){return[0,1].includes(e)})),Object(r["v"])("option.messageTypes",s,r["b"].ARRAY,!0),s.forEach((function(e){Object(r["v"])("option.messageType",e,r["b"].STRING,!0)})),c="conversation: ".concat(JSON.stringify(e),", option: ").concat(JSON.stringify(t)),l.info("getHistoryMessagesByMessageTypes -> ".concat(c)),u=e.conversationType,f=e.targetId,h=e.channelId,n||(n=20),i||(i=0),o||(o=0),h||(h=""),[4,k.imClient.context.getHistoryMessagesByObjectNames(u,f,i,n,s,o,h)]):[2,{code:r["f"].NOT_SUPPORT,msg:G[r["f"].NOT_SUPPORT]}];case 1:return d=a.sent(),p=d.code,g=d.data,p===r["f"].SUCCESS?(y=(v=g).list,m=v.hasMore,I=y.map((function(e){return x(e)})),[2,{code:p,data:{messages:I,hasMore:m}}]):(l.warn("getHistoryMessagesByMessageTypes fail -> code: ".concat(p," ").concat(c)),[2,{code:p,msg:G[p]}])}}))}))},setMessageStatusToRead:function(e,t){return s(this,void 0,void 0,(function(){var n,i,o,s;return a(this,(function(a){switch(a.label){case 0:return Object(r["H"])()?(Object(r["v"])("conversation",e,r["b"].CONVERSATION,!0),Object(r["v"])("timestamp",t,r["b"].NUMBER,!0),n="conversation: ".concat(JSON.stringify(e),", timestamp: ").concat(t),l.info("updateSentMsgReceiptStatus -> ".concat(n)),i=e.conversationType,o=e.targetId,s=e.channelId,[4,k.imClient.context.setMessageStatusToRead(i,o,t,s)]):[2,{code:r["f"].NOT_SUPPORT,msg:G[r["f"].NOT_SUPPORT]}];case 1:return[2,a.sent()]}}))}))},setMessageReceivedStatus:function(e,t){return s(this,void 0,void 0,(function(){return a(this,(function(n){switch(n.label){case 0:return Object(r["H"])()?(Object(r["v"])("messageId",e,r["b"].NUMBER,!0),Object(r["v"])("receivedStatus",t,(function(e){return!Object(r["C"])(r["p"][e])}),!0),l.info("setMessageReceivedStatus -> messageId: ".concat(e,", receivedStatus: ").concat(t)),[4,k.imClient.context.setMessageReceivedStatus(e,t)]):[2,{code:r["f"].NOT_SUPPORT,msg:G[r["f"].NOT_SUPPORT]}];case 1:return[2,{code:n.sent()}]}}))}))},setMessageSentStatus:function(e,t){return s(this,void 0,void 0,(function(){return a(this,(function(n){switch(n.label){case 0:return Object(r["H"])()?(Object(r["v"])("messageId",e,r["b"].NUMBER,!0),Object(r["v"])("sentStatus",t,(function(e){return!Object(r["C"])(u[e])}),!0),l.info("setMessageSentStatus ->messageId: ".concat(e,", sentStatus: ").concat(t)),[4,k.imClient.context.setMessageSentStatus(e,t)]):[2,{code:r["f"].NOT_SUPPORT,msg:G[r["f"].NOT_SUPPORT]}];case 1:return[2,{code:n.sent()}]}}))}))},setMessageContent:function(e,t,n){return void 0===n&&(n=""),s(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return Object(r["H"])()?(Object(r["v"])("messageId",e,r["b"].NUMBER,!0),Object(r["v"])("content",t,r["b"].OBJECT,!0),Object(r["v"])("messageType",n,r["b"].ONLY_STRING,!0),l.info("setMessageSentStatus ->messageId: ".concat(e,", messageType: ").concat(n)),[4,k.imClient.context.setMessageContent(e,t,n)]):[2,{code:r["f"].NOT_SUPPORT,msg:G[r["f"].NOT_SUPPORT]}];case 1:return[2,{code:i.sent()}]}}))}))},deleteMessages:function(e){return s(this,void 0,void 0,(function(){return a(this,(function(t){switch(t.label){case 0:return Object(r["H"])()?(Object(r["v"])("messageIds",e,r["b"].ARRAY,!0),e.forEach((function(e){Object(r["v"])("messageId",e,r["b"].NUMBER,!0)})),l.info("deleteMessages ->messageIds: ".concat(JSON.stringify(e))),[4,k.imClient.context.deleteMessages(e)]):[2,{code:r["f"].NOT_SUPPORT,msg:G[r["f"].NOT_SUPPORT]}];case 1:return[2,{code:t.sent()}]}}))}))},clearMessages:function(e){return s(this,void 0,void 0,(function(){var t;return a(this,(function(n){switch(n.label){case 0:return Object(r["H"])()?(l.info("clearMessages ->targetId:"+e.targetId+",conversationType:"+e.conversationType),[4,k.imClient.context.clearMessages(e.conversationType,e.targetId,e.channelId)]):[2,{code:r["f"].NOT_SUPPORT,msg:G[r["f"].NOT_SUPPORT]}];case 1:return(t=n.sent())===r["f"].SUCCESS?[2,{code:t}]:(l.warn("clearMessages ->code:"+t+",targetId:"+e.targetId),[2,{code:t,msg:G[t]}])}}))}))},deleteMessagesByTimestamp:function(e,t,n){return s(this,void 0,void 0,(function(){var i;return a(this,(function(o){switch(o.label){case 0:return Object(r["H"])()?(Object(r["v"])("conversationType",e.conversationType,r["b"].NUMBER,!0),Object(r["v"])("targetId",e.targetId,r["b"].STRING,!0),Object(r["v"])("timestamp",t,r["b"].NUMBER,!0),Object(r["v"])("cleanSpace",n,r["b"].BOOLEAN),[4,k.imClient.context.deleteMessagesByTimestamp(e.conversationType,e.targetId,t,n,e.channelId)]):[2,{code:r["f"].NOT_SUPPORT,msg:G[r["f"].NOT_SUPPORT]}];case 1:return(i=o.sent())===r["f"].SUCCESS?[2,{code:i}]:(l.warn("deleteMessagesByTimestamp ->code:"+i+",targetId:"+e.targetId),[2,{code:i,msg:G[i]}])}}))}))},insertMessage:function(e,t,n){return void 0===n&&(n={}),s(this,void 0,void 0,(function(){var i,o,s,c,u,f,h,d,p,g,v,y,m,I,_,T;return a(this,(function(a){switch(a.label){case 0:return Object(r["H"])()?(i=t.senderUserId,o=t.messageType,s=t.content,c=t.messageDirection,u=t.messageUId,f=t.canIncludeExpansion,h=t.expansion,d=t.disableNotification,p=t.sentTime,g=t.sentStatus,l.info("insertMessage ->targetId:"+e.targetId+",conversationType:"+e.conversationType),v=n.isUnread,y=n.searchContent,m={senderUserId:i,messageType:o,content:s,messageDirection:c,sentTime:p,sentStatus:g,searchContent:y,isUnread:v,messageUId:u,disableNotification:d,canIncludeExpansion:f,expansionMsg:JSON.stringify(h),channelId:e.channelId||""},[4,k.imClient.context.insertMessage(e.conversationType,e.targetId,m)]):[2,{code:r["f"].NOT_SUPPORT,msg:G[r["f"].NOT_SUPPORT]}];case 1:return I=a.sent(),_=I.code,T=I.data,_===r["f"].SUCCESS?[2,{code:_,data:x(T)}]:(l.warn("insertMessage ->code:"+_+",targetId:"+e.targetId),[2,{code:_,msg:G[_]}])}}))}))},clearLocalData:function(){return s(this,void 0,void 0,(function(){var e,t,n;return a(this,(function(i){switch(i.label){case 0:return Object(r["H"])()?(l.info("clearData -> "),[4,k.imClient.context.clearData()]):[2,{code:r["f"].NOT_SUPPORT,msg:G[r["f"].NOT_SUPPORT]}];case 1:return e=i.sent(),t=e.code,n=e.data,[2,{code:t,data:n}]}}))}))}});r["s"].add("imlib-next","5.4.3")},e11e:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},e265:function(e,t,n){e.exports=n("ed33")},e394:function(e,t,n){var r=n("37a7"),i=n("cb7c"),o=n("38fd"),s=r.has,a=r.get,c=r.key,u=function(e,t,n){var r=s(e,t,n);if(r)return a(e,t,n);var i=o(t);return null!==i?u(e,i,n):void 0};r.exp({getMetadata:function(e,t){return u(e,i(t),arguments.length<3?void 0:c(arguments[2]))}})},e3d0:function(e,t,n){var r=n("37a7"),i=n("cb7c"),o=r.key,s=r.set;r.exp({defineMetadata:function(e,t,n,r){s(e,t,i(n),o(r))}})},e3db:function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},e3eb:function(e,t,n){const r=n("23db"),i=n("cd93"),o=n("c98f");e.exports=function e(t,{cleanKeys:n=[],cleanValues:s=[],emptyArrays:a=!0,emptyObjects:c=!0,emptyStrings:u=!0,NaNValues:l=!1,nullValues:f=!0,undefinedValues:h=!0}={}){return o(t,(t,o,d)=>{if(!n.includes(d)&&((Array.isArray(o)||i(o))&&(o=e(o,{NaNValues:l,cleanKeys:n,cleanValues:s,emptyArrays:a,emptyObjects:c,emptyStrings:u,nullValues:f,undefinedValues:h})),!s.includes(o)&&!(c&&i(o)&&r(o))&&(!a||!Array.isArray(o)||o.length)&&(!u||""!==o)&&(!l||!Number.isNaN(o))&&(!f||null!==o)&&(!h||void 0!==o)))return Array.isArray(t)?t.push(o):void(t[d]=o)})}},e418:function(e,t,n){!function(t,n){e.exports=n()}(0,(function(){"use strict";return function(e,t,n){t.prototype.isBetween=function(e,t,r,i){var o=n(e),s=n(t),a="("===(i=i||"()")[0],c=")"===i[1];return(a?this.isAfter(o,r):!this.isBefore(o,r))&&(c?this.isBefore(s,r):!this.isAfter(s,r))||(a?this.isBefore(o,r):!this.isAfter(o,r))&&(c?this.isAfter(s,r):!this.isBefore(s,r))}}}))},e4ae:function(e,t,n){var r=n("f772");e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},e4f7:function(e,t,n){var r=n("4bf8"),i=n("38fd");n("5eda")("getPrototypeOf",(function(){return function(e){return i(r(e))}}))},e53d:function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},e630:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("774e"),i=n.n(r),o=n("db2a");function s(e,t){if(e){if("string"===typeof e)return Object(o["a"])(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?i()(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(o["a"])(e,t):void 0}}},e683:function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},e6f3:function(e,t,n){var r=n("07e3"),i=n("36c3"),o=n("5b4e")(!1),s=n("5559")("IE_PROTO");e.exports=function(e,t){var n,a=i(e),c=0,u=[];for(n in a)n!=s&&r(a,n)&&u.push(n);while(t.length>c)r(a,n=t[c++])&&(~o(u,n)||u.push(n));return u}},e76a:function(e,t,n){"use strict";const r={allRenderFn:!1,cmpDidLoad:!0,cmpDidUnload:!1,cmpDidUpdate:!0,cmpDidRender:!0,cmpWillLoad:!0,cmpWillUpdate:!0,cmpWillRender:!0,connectedCallback:!0,disconnectedCallback:!0,element:!0,event:!0,hasRenderFn:!0,lifecycle:!0,hostListener:!0,hostListenerTargetWindow:!0,hostListenerTargetDocument:!0,hostListenerTargetBody:!0,hostListenerTargetParent:!1,hostListenerTarget:!0,member:!0,method:!0,mode:!0,observeAttribute:!0,prop:!0,propMutable:!0,reflect:!0,scoped:!0,shadowDom:!0,slot:!0,cssAnnotations:!0,state:!0,style:!0,svg:!0,updatable:!0,vdomAttribute:!0,vdomXlink:!0,vdomClass:!0,vdomFunctional:!0,vdomKey:!0,vdomListener:!0,vdomRef:!0,vdomPropOrAttr:!0,vdomRender:!0,vdomStyle:!0,vdomText:!0,watchCallback:!0,taskQueue:!0,hotModuleReplacement:!1,isDebug:!1,isDev:!1,isTesting:!1,hydrateServerSide:!1,hydrateClientSide:!1,lifecycleDOMEvents:!1,lazyLoad:!1,profile:!1,slotRelocation:!0,appendChildSlotFix:!1,cloneNodeFix:!1,hydratedAttribute:!1,hydratedClass:!0,safari10:!1,scriptDataOpts:!1,shadowDomShim:!1,slotChildNodesFix:!1,propBoolean:!0,propNumber:!0,propString:!0,cssVarShim:!1,constructableCSS:!0,cmpShouldUpdate:!0,devTools:!1,dynamicImportShim:!1,shadowDelegatesFocus:!0,initializeNextTick:!1,asyncLoading:!1,asyncQueue:!1,transformTagName:!1,attachStyles:!0},i="app";let o,s,a,c,u=0,l=!1,f=!1,h=!1,d=!1,p=null,g=0,v=!1;const y="undefined"!==typeof window?window:{},m=(r.cssVarShim&&y.CSS,y.document||{head:{}}),I=(y.HTMLElement,{$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,r)=>e.addEventListener(t,n,r),rel:(e,t,n,r)=>e.removeEventListener(t,n,r),ce:(e,t)=>new CustomEvent(e,t)}),_=!r.shadowDomShim||!r.shadowDom||(()=>(m.head.attachShadow+"").indexOf("[native")>-1)(),T=(()=>{let e=!1;try{m.addEventListener("e",null,Object.defineProperty({},"passive",{get(){e=!0}}))}catch(t){}return e})(),C=e=>Promise.resolve(e),M=!!r.constructableCSS&&(()=>{try{return new CSSStyleSheet,"function"===typeof(new CSSStyleSheet).replace}catch(e){}return!1})(),E=(e,t,n,i)=>{r.hostListener&&n&&(r.hostListenerTargetParent&&(n=i?n.filter(([e])=>32&e):n.filter(([e])=>!(32&e))),n.map(([n,i,o])=>{const s=r.hostListenerTarget?S(e,n):e,a=A(t,o),c=N(n);I.ael(s,i,a,c),(t.$rmListeners$=t.$rmListeners$||[]).push(()=>I.rel(s,i,a,c))}))},A=(e,t)=>n=>{try{r.lazyLoad?256&e.$flags$?e.$lazyInstance$[t](n):(e.$queuedListeners$=e.$queuedListeners$||[]).push([t,n]):e.$hostElement$[t](n)}catch(i){ot(i)}},S=(e,t)=>r.hostListenerTargetDocument&&4&t?m:r.hostListenerTargetWindow&&8&t?y:r.hostListenerTargetBody&&16&t?m.body:r.hostListenerTargetParent&&32&t?e.parentElement:e,N=e=>T?{passive:0!==(1&e),capture:0!==(2&e)}:0!==(2&e),b="r",w="o",O="s",R="t",D="s-id",L="sty-id",U="c-id",x="http://www.w3.org/1999/xlink",P=(e,t="")=>{if(r.profile&&performance.mark){const n=`st:${e}:${t}:${u++}`;return performance.mark(n),()=>performance.measure(`[Stencil] ${e}() <${t}>`,n)}return()=>{}},j=(e,t)=>r.profile&&performance.mark?(0===performance.getEntriesByName(e).length&&performance.mark(e),()=>{0===performance.getEntriesByName(t).length&&performance.measure(t,e)}):()=>{},k=new WeakMap,z=(e,t,n)=>{let r=ft.get(e);M&&n?(r=r||new CSSStyleSheet,r.replace(t)):r=t,ft.set(e,r)},G=(e,t,n,i)=>{let o=V(t,n),s=ft.get(o);if(!r.attachStyles)return o;if(e=11===e.nodeType?e:m,s)if("string"===typeof s){e=e.head||e;let n,a=k.get(e);if(a||k.set(e,a=new Set),!a.has(o)){if(r.hydrateClientSide&&e.host&&(n=e.querySelector(`[${L}="${o}"]`)))n.innerHTML=s;else{if(r.cssVarShim&&I.$cssShim$){n=I.$cssShim$.createHostStyle(i,o,s,!!(10&t.$flags$));const e=n["s-sc"];e&&(o=e,a=null)}else n=m.createElement("style"),n.innerHTML=s;(r.hydrateServerSide||r.hotModuleReplacement)&&n.setAttribute(L,o),e.insertBefore(n,e.querySelector("link"))}a&&a.add(o)}}else r.constructableCSS&&!e.adoptedStyleSheets.includes(s)&&(e.adoptedStyleSheets=[...e.adoptedStyleSheets,s]);return o},B=e=>{const t=e.$cmpMeta$,n=e.$hostElement$,i=t.$flags$,o=P("attachStyles",t.$tagName$),s=G(r.shadowDom&&_&&n.shadowRoot?n.shadowRoot:n.getRootNode(),t,e.$modeName$,n);(r.shadowDom||r.scoped)&&r.cssAnnotations&&10&i&&(n["s-sc"]=s,n.classList.add(s+"-h"),r.scoped&&2&i&&n.classList.add(s+"-s")),o()},V=(e,t)=>"sc-"+(r.mode&&t&&32&e.$flags$?e.$tagName$+"-"+t:e.$tagName$),Y=e=>ht.map(t=>t(e)).find(e=>!!e),H={},F="http://www.w3.org/2000/svg",Q="http://www.w3.org/1999/xhtml",$=e=>null!=e,K=e=>(e=typeof e,"object"===e||"function"===e),W=(e,t,...n)=>{let i=null,o=null,s=null,a=!1,c=!1,u=[];const l=t=>{for(let n=0;n<t.length;n++)i=t[n],Array.isArray(i)?l(i):null!=i&&"boolean"!==typeof i&&((a="function"!==typeof e&&!K(i))?i=String(i):r.isDev&&"function"!==typeof e&&void 0===i.$flags$&&at("vNode passed as children has unexpected type.\nMake sure it's using the correct h() function.\nEmpty objects can also be the cause, look for JSX comments that became objects."),a&&c?u[u.length-1].$text$+=i:u.push(a?q(null,i):i),c=a)};if(l(n),t&&(r.isDev&&"input"===e&&ne(t),r.vdomKey&&t.key&&(o=t.key),r.slotRelocation&&t.name&&(s=t.name),r.vdomClass)){const e=t.className||t.class;e&&(t.class="object"!==typeof e?e:Object.keys(e).filter(t=>e[t]).join(" "))}if(r.isDev&&u.some(J)&&at("The <Host> must be the single root component. Make sure:\n- You are NOT using hostData() and <Host> in the same component.\n- <Host> is used once, and it's the single root component of the render() function."),r.vdomFunctional&&"function"===typeof e)return e(null===t?{}:t,u,X);const f=q(e,null);return f.$attrs$=t,u.length>0&&(f.$children$=u),r.vdomKey&&(f.$key$=o),r.slotRelocation&&(f.$name$=s),f},q=(e,t)=>{const n={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};return r.vdomAttribute&&(n.$attrs$=null),r.vdomKey&&(n.$key$=null),r.slotRelocation&&(n.$name$=null),n},Z={},J=e=>e&&e.$tag$===Z,X={forEach:(e,t)=>e.map(ee).forEach(t),map:(e,t)=>e.map(ee).map(t).map(te)},ee=e=>({vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}),te=e=>{if("function"===typeof e.vtag){const t=Object.assign({},e.vattrs);return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),W(e.vtag,t,...e.vchildren||[])}const t=q(e.vtag,e.vtext);return t.$attrs$=e.vattrs,t.$children$=e.vchildren,t.$key$=e.vkey,t.$name$=e.vname,t},ne=e=>{const t=Object.keys(e),n=t.indexOf("type"),r=t.indexOf("min"),i=t.indexOf("max"),o=t.indexOf("min"),s=t.indexOf("value");-1!==s&&(s<n||s<r||s<i||s<o)&&ct('The "value" prop of <input> should be set after "min", "max", "type" and "step"')},re=(e,t,n,i,o,s)=>{if(n!==i){let c=it(e,t),u=t.toLowerCase();if(r.vdomClass&&"class"===t){const t=e.classList,r=oe(n),o=oe(i);t.remove(...r.filter(e=>e&&!o.includes(e))),t.add(...o.filter(e=>e&&!r.includes(e)))}else if(r.vdomStyle&&"style"===t){if(r.updatable)for(const t in n)i&&null!=i[t]||(!r.hydrateServerSide&&t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in i)n&&i[t]===n[t]||(!r.hydrateServerSide&&t.includes("-")?e.style.setProperty(t,i[t]):e.style[t]=i[t])}else if(r.vdomKey&&"key"===t);else if(r.vdomRef&&"ref"===t)i&&i(e);else if(!r.vdomListener||(r.lazyLoad?c:e.__lookupSetter__(t))||"o"!==t[0]||"n"!==t[1]){if(r.vdomPropOrAttr){const l=K(i);if((c||l&&null!==i)&&!o)try{if(e.tagName.includes("-"))e[t]=i;else{let r=null==i?"":i;"list"===t?c=!1:null!=n&&e[t]==r||(e[t]=r)}}catch(a){}let f=!1;r.vdomXlink&&u!==(u=u.replace(/^xlink\:?/,""))&&(t=u,f=!0),null==i||!1===i?!1===i&&""!==e.getAttribute(t)||(r.vdomXlink&&f?e.removeAttributeNS(x,t):e.removeAttribute(t)):(!c||4&s||o)&&!l&&(i=!0===i?"":i,r.vdomXlink&&f?e.setAttributeNS(x,t,i):e.setAttribute(t,i))}}else t="-"===t[2]?t.slice(3):it(y,u)?u.slice(2):u[2]+t.slice(3),n&&I.rel(e,t,n,!1),i&&I.ael(e,t,i,!1)}},ie=/\s/,oe=e=>e?e.split(ie):[],se=(e,t,n,i)=>{const o=11===t.$elm$.nodeType&&t.$elm$.host?t.$elm$.host:t.$elm$,s=e&&e.$attrs$||H,a=t.$attrs$||H;if(r.updatable)for(i in s)i in a||re(o,i,s[i],void 0,n,t.$flags$);for(i in a)re(o,i,s[i],a[i],n,t.$flags$)},ae=(e,t,n,i)=>{let c,u,f,p=t.$children$[n],g=0;if(r.slotRelocation&&!l&&(h=!0,"slot"===p.$tag$&&(o&&i.classList.add(o+"-s"),p.$flags$|=p.$children$?2:1)),r.isDev&&p.$elm$&&at(`The JSX ${null!==p.$text$?`"${p.$text$}" text`:`"${p.$tag$}" element`} node should not be shared within the same renderer. The renderer caches element lookups in order to improve performance. However, a side effect from this is that the exact same JSX node should not be reused. For more information please see https://stenciljs.com/docs/templating-jsx#avoid-shared-jsx-nodes`),r.vdomText&&null!==p.$text$)c=p.$elm$=m.createTextNode(p.$text$);else if(r.slotRelocation&&1&p.$flags$)c=p.$elm$=r.isDebug||r.hydrateServerSide?Ce(p):m.createTextNode("");else{if(r.svg&&!d&&(d="svg"===p.$tag$),c=p.$elm$=r.svg?m.createElementNS(d?F:Q,r.slotRelocation&&2&p.$flags$?"slot-fb":p.$tag$):m.createElement(r.slotRelocation&&2&p.$flags$?"slot-fb":p.$tag$),r.svg&&d&&"foreignObject"===p.$tag$&&(d=!1),r.vdomAttribute&&se(null,p,d),(r.shadowDom||r.scoped)&&$(o)&&c["s-si"]!==o&&c.classList.add(c["s-si"]=o),p.$children$)for(g=0;g<p.$children$.length;++g)u=ae(e,p,g,c),u&&c.appendChild(u);r.svg&&("svg"===p.$tag$?d=!1:"foreignObject"===c.tagName&&(d=!0))}return r.slotRelocation&&(c["s-hn"]=a,3&p.$flags$&&(c["s-sr"]=!0,c["s-cr"]=s,c["s-sn"]=p.$name$||"",f=e&&e.$children$&&e.$children$[n],f&&f.$tag$===p.$tag$&&e.$elm$&&ce(e.$elm$,!1))),c},ce=(e,t)=>{I.$flags$|=1;const n=e.childNodes;for(let r=n.length-1;r>=0;r--){const e=n[r];e["s-hn"]!==a&&e["s-ol"]&&(pe(e).insertBefore(e,de(e)),e["s-ol"].remove(),e["s-ol"]=void 0,h=!0),t&&ce(e,t)}I.$flags$&=-2},ue=(e,t,n,i,o,s)=>{let c,u=r.slotRelocation&&e["s-cr"]&&e["s-cr"].parentNode||e;for(r.shadowDom&&u.shadowRoot&&u.tagName===a&&(u=u.shadowRoot);o<=s;++o)i[o]&&(c=ae(null,n,o,e),c&&(i[o].$elm$=c,u.insertBefore(c,r.slotRelocation?de(t):t)))},le=(e,t,n,i,o)=>{for(;t<=n;++t)(i=e[t])&&(o=i.$elm$,_e(i),r.slotRelocation&&(f=!0,o["s-ol"]?o["s-ol"].remove():ce(o,!0)),o.remove())},fe=(e,t,n,i)=>{let o,s,a=0,c=0,u=0,l=0,f=t.length-1,h=t[0],d=t[f],p=i.length-1,g=i[0],v=i[p];while(a<=f&&c<=p)if(null==h)h=t[++a];else if(null==d)d=t[--f];else if(null==g)g=i[++c];else if(null==v)v=i[--p];else if(he(h,g))ge(h,g),h=t[++a],g=i[++c];else if(he(d,v))ge(d,v),d=t[--f],v=i[--p];else if(he(h,v))!r.slotRelocation||"slot"!==h.$tag$&&"slot"!==v.$tag$||ce(h.$elm$.parentNode,!1),ge(h,v),e.insertBefore(h.$elm$,d.$elm$.nextSibling),h=t[++a],v=i[--p];else if(he(d,g))!r.slotRelocation||"slot"!==h.$tag$&&"slot"!==v.$tag$||ce(d.$elm$.parentNode,!1),ge(d,g),e.insertBefore(d.$elm$,h.$elm$),d=t[--f],g=i[++c];else{if(u=-1,r.vdomKey)for(l=a;l<=f;++l)if(t[l]&&null!==t[l].$key$&&t[l].$key$===g.$key$){u=l;break}r.vdomKey&&u>=0?(s=t[u],s.$tag$!==g.$tag$?o=ae(t&&t[c],n,u,e):(ge(s,g),t[u]=void 0,o=s.$elm$),g=i[++c]):(o=ae(t&&t[c],n,c,e),g=i[++c]),o&&(r.slotRelocation?pe(h.$elm$).insertBefore(o,de(h.$elm$)):h.$elm$.parentNode.insertBefore(o,h.$elm$))}a>f?ue(e,null==i[p+1]?null:i[p+1].$elm$,n,i,c,p):r.updatable&&c>p&&le(t,a,f)},he=(e,t)=>e.$tag$===t.$tag$&&(r.slotRelocation&&"slot"===e.$tag$?e.$name$===t.$name$:!r.vdomKey||e.$key$===t.$key$),de=e=>e&&e["s-ol"]||e,pe=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,ge=(e,t)=>{const n=t.$elm$=e.$elm$,i=e.$children$,o=t.$children$,s=t.$tag$,a=t.$text$;let c;r.vdomText&&null!==a?r.vdomText&&r.slotRelocation&&(c=n["s-cr"])?c.parentNode.textContent=a:r.vdomText&&e.$text$!==a&&(n.data=a):(r.svg&&(d="svg"===s||"foreignObject"!==s&&d),(r.vdomAttribute||r.reflect)&&(r.slot&&"slot"===s||se(e,t,d)),r.updatable&&null!==i&&null!==o?fe(n,i,t,o):null!==o?(r.updatable&&r.vdomText&&null!==e.$text$&&(n.textContent=""),ue(n,null,t,o,0,o.length-1)):r.updatable&&null!==i&&le(i,0,i.length-1),r.svg&&d&&"svg"===s&&(d=!1))},ve=e=>{let t,n,r,i,o,s,a=e.childNodes;for(n=0,r=a.length;n<r;n++)if(t=a[n],1===t.nodeType){if(t["s-sr"])for(o=t["s-sn"],t.hidden=!1,i=0;i<r;i++)if(s=a[i].nodeType,a[i]["s-hn"]!==t["s-hn"]||""!==o){if(1===s&&o===a[i].getAttribute("slot")){t.hidden=!0;break}}else if(1===s||3===s&&""!==a[i].textContent.trim()){t.hidden=!0;break}ve(t)}},ye=[],me=e=>{let t,n,r,i,o,s,a=0,c=e.childNodes,u=c.length;for(;a<u;a++){if(t=c[a],t["s-sr"]&&(n=t["s-cr"])&&n.parentNode)for(r=n.parentNode.childNodes,i=t["s-sn"],s=r.length-1;s>=0;s--)n=r[s],n["s-cn"]||n["s-nr"]||n["s-hn"]===t["s-hn"]||(Ie(n,i)?(o=ye.find(e=>e.$nodeToRelocate$===n),f=!0,n["s-sn"]=n["s-sn"]||i,o?o.$slotRefNode$=t:ye.push({$slotRefNode$:t,$nodeToRelocate$:n}),n["s-sr"]&&ye.map(e=>{Ie(e.$nodeToRelocate$,n["s-sn"])&&(o=ye.find(e=>e.$nodeToRelocate$===n),o&&!e.$slotRefNode$&&(e.$slotRefNode$=o.$slotRefNode$))})):ye.some(e=>e.$nodeToRelocate$===n)||ye.push({$nodeToRelocate$:n}));1===t.nodeType&&me(t)}},Ie=(e,t)=>1===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t,_e=e=>{r.vdomRef&&(e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(_e))},Te=(e,t)=>{const n=e.$hostElement$,i=e.$cmpMeta$,c=e.$vnode$||q(null,null),u=J(t)?t:W(null,null,t);if(a=n.tagName,r.isDev&&Array.isArray(t)&&t.some(J))throw new Error(`The <Host> must be the single root component.\nLooks like the render() function of "${a.toLowerCase()}" is returning an array that contains the <Host>.\n\nThe render() function should look like this instead:\n\nrender() {\n // Do not return an array\n return (\n <Host>{content}</Host>\n );\n}\n `);if(r.reflect&&i.$attrsToReflect$&&(u.$attrs$=u.$attrs$||{},i.$attrsToReflect$.map(([e,t])=>u.$attrs$[t]=n[e])),u.$tag$=null,u.$flags$|=4,e.$vnode$=u,u.$elm$=c.$elm$=r.shadowDom&&n.shadowRoot||n,(r.scoped||r.shadowDom)&&(o=n["s-sc"]),r.slotRelocation&&(s=n["s-cr"],l=_&&0!==(1&i.$flags$),f=!1),ge(c,u),r.slotRelocation){if(I.$flags$|=1,h){let e,t,n,i,o,s;me(u.$elm$);let a=0;for(;a<ye.length;a++)e=ye[a],t=e.$nodeToRelocate$,t["s-ol"]||(n=r.isDebug||r.hydrateServerSide?Me(t):m.createTextNode(""),n["s-nr"]=t,t.parentNode.insertBefore(t["s-ol"]=n,t));for(a=0;a<ye.length;a++)if(e=ye[a],t=e.$nodeToRelocate$,e.$slotRefNode$){i=e.$slotRefNode$.parentNode,o=e.$slotRefNode$.nextSibling,n=t["s-ol"];while(n=n.previousSibling)if(s=n["s-nr"],s&&s["s-sn"]===t["s-sn"]&&i===s.parentNode&&(s=s.nextSibling,!s||!s["s-nr"])){o=s;break}(!o&&i!==t.parentNode||t.nextSibling!==o)&&t!==o&&(!t["s-hn"]&&t["s-ol"]&&(t["s-hn"]=t["s-ol"].parentNode.nodeName),i.insertBefore(t,o))}else 1===t.nodeType&&(t.hidden=!0)}f&&ve(u.$elm$),I.$flags$&=-2,ye.length=0}},Ce=e=>m.createComment(`<slot${e.$name$?' name="'+e.$name$+'"':""}> (host=${a.toLowerCase()})`),Me=e=>m.createComment("org-location for "+(e.localName?`<${e.localName}> (host=${e["s-hn"]})`:`[${e.textContent}]`)),Ee=e=>r.lazyLoad?nt(e).$hostElement$:e,Ae=(e,t,n)=>{const i=Ee(e);return{emit:e=>(r.isDev&&!i.isConnected&&ct(`The "${t}" event was emitted, but the dispatcher node is no longer connected to the dom.`),Se(i,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e}))}},Se=(e,t,n)=>{const r=I.ce(t,n);return e.dispatchEvent(r),r},Ne=(e,t)=>{r.asyncLoading&&t&&!e.$onRenderResolve$&&t["s-p"]&&t["s-p"].push(new Promise(t=>e.$onRenderResolve$=t))},be=(e,t)=>{if(r.taskQueue&&r.updatable&&(e.$flags$|=16),r.asyncLoading&&4&e.$flags$)return void(e.$flags$|=512);Ne(e,e.$ancestorComponent$);const n=()=>we(e,t);return r.taskQueue?Tt(n):n()},we=(e,t)=>{const n=e.$hostElement$,i=P("scheduleUpdate",e.$cmpMeta$.$tagName$),o=r.lazyLoad?e.$lazyInstance$:n;let s;return t?(r.lazyLoad&&r.hostListener&&(e.$flags$|=256,e.$queuedListeners$&&(e.$queuedListeners$.map(([e,t])=>Ue(o,e,t)),e.$queuedListeners$=null)),Pe(n,"componentWillLoad"),r.cmpWillLoad&&(s=Ue(o,"componentWillLoad"))):(Pe(n,"componentWillUpdate"),r.cmpWillUpdate&&(s=Ue(o,"componentWillUpdate"))),Pe(n,"componentWillRender"),r.cmpWillRender&&(s=xe(s,()=>Ue(o,"componentWillRender"))),i(),xe(s,()=>Oe(e,o,t))},Oe=async(e,t,n)=>{const i=e.$hostElement$,o=P("update",e.$cmpMeta$.$tagName$),s=i["s-rc"];r.style&&n&&B(e);const a=P("render",e.$cmpMeta$.$tagName$);if(r.isDev&&(e.$flags$|=1024),r.hydrateServerSide?await Re(e,t,i):Re(e,t,i),r.cssVarShim&&I.$cssShim$&&I.$cssShim$.updateHost(i),r.isDev&&(e.$renderCount$++,e.$flags$&=-1025),r.hydrateServerSide)try{ke(i),n&&(1&e.$cmpMeta$.$flags$?i["s-en"]="":2&e.$cmpMeta$.$flags$&&(i["s-en"]="c"))}catch(c){ot(c,i)}if(r.asyncLoading&&s&&(s.map(e=>e()),i["s-rc"]=void 0),a(),o(),r.asyncLoading){const t=i["s-p"],n=()=>De(e);0===t.length?n():(Promise.all(t).then(n),e.$flags$|=4,t.length=0)}else De(e)},Re=(e,t,n)=>{const i=!!r.allRenderFn,o=!!r.lazyLoad,s=!!r.taskQueue,a=!!r.updatable;try{if(p=t,t=(i||t.render)&&t.render(),a&&s&&(e.$flags$&=-17),(a||o)&&(e.$flags$|=2),r.hasRenderFn||r.reflect)if(r.vdomRender||r.reflect){if(r.hydrateServerSide)return Promise.resolve(t).then(t=>Te(e,t));Te(e,t)}else n.textContent=t}catch(c){ot(c,e.$hostElement$)}return p=null,null},De=e=>{const t=e.$cmpMeta$.$tagName$,n=e.$hostElement$,i=P("postUpdate",t),o=r.lazyLoad?e.$lazyInstance$:n,s=e.$ancestorComponent$;r.cmpDidRender&&(r.isDev&&(e.$flags$|=1024),Ue(o,"componentDidRender"),r.isDev&&(e.$flags$&=-1025)),Pe(n,"componentDidRender"),64&e.$flags$?(r.cmpDidUpdate&&(r.isDev&&(e.$flags$|=1024),Ue(o,"componentDidUpdate"),r.isDev&&(e.$flags$&=-1025)),Pe(n,"componentDidUpdate"),i()):(e.$flags$|=64,r.asyncLoading&&r.cssAnnotations&&je(n),r.cmpDidLoad&&(r.isDev&&(e.$flags$|=2048),Ue(o,"componentDidLoad"),r.isDev&&(e.$flags$&=-2049)),Pe(n,"componentDidLoad"),i(),r.asyncLoading&&(e.$onReadyResolve$(n),s||Le(t))),r.hotModuleReplacement&&n["s-hmr-load"]&&n["s-hmr-load"](),r.method&&r.lazyLoad&&e.$onInstanceResolve$(n),r.asyncLoading&&(e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),512&e.$flags$&&_t(()=>be(e,!1)),e.$flags$&=-517)},Le=e=>{r.cssAnnotations&&je(m.documentElement),r.asyncQueue&&(I.$flags$|=2),_t(()=>Se(y,"appload",{detail:{namespace:i}})),r.profile&&performance.measure&&performance.measure(`[Stencil] ${i} initial load (by ${e})`,"st:app:start")},Ue=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(r){ot(r)}},xe=(e,t)=>e&&e.then?e.then(t):t(),Pe=(e,t)=>{r.lifecycleDOMEvents&&Se(e,"stencil_"+t,{bubbles:!0,composed:!0,detail:{namespace:i}})},je=e=>r.hydratedClass?e.classList.add("hydrated"):r.hydratedAttribute?e.setAttribute("hydrated",""):void 0,ke=e=>{const t=e.children;if(null!=t)for(let n=0,r=t.length;n<r;n++){const e=t[n];"function"===typeof e.connectedCallback&&e.connectedCallback(),ke(e)}},ze=(e,t,n,i)=>{const o=P("hydrateClient",t),s=e.shadowRoot,a=[],c=[],u=r.shadowDom&&s?[]:null,l=i.$vnode$=q(t,null);I.$orgLocNodes$||Be(m.body,I.$orgLocNodes$=new Map),e[D]=n,e.removeAttribute(D),Ge(l,a,c,u,e,e,n),a.map(e=>{const n=e.$hostId$+"."+e.$nodeId$,r=I.$orgLocNodes$.get(n),i=e.$elm$;r&&_&&""===r["s-en"]&&r.parentNode.insertBefore(i,r.nextSibling),s||(i["s-hn"]=t,r&&(i["s-ol"]=r,i["s-ol"]["s-nr"]=i)),I.$orgLocNodes$.delete(n)}),r.shadowDom&&s&&u.map(e=>{e&&s.appendChild(e)}),o()},Ge=(e,t,n,i,o,s,a)=>{let c,u,l,f;if(1===s.nodeType){for(c=s.getAttribute(U),c&&(u=c.split("."),u[0]!==a&&"0"!==u[0]||(l={$flags$:0,$hostId$:u[0],$nodeId$:u[1],$depth$:u[2],$index$:u[3],$tag$:s.tagName.toLowerCase(),$elm$:s,$attrs$:null,$children$:null,$key$:null,$name$:null,$text$:null},t.push(l),s.removeAttribute(U),e.$children$||(e.$children$=[]),e.$children$[l.$index$]=l,e=l,i&&"0"===l.$depth$&&(i[l.$index$]=l.$elm$))),f=s.childNodes.length-1;f>=0;f--)Ge(e,t,n,i,o,s.childNodes[f],a);if(s.shadowRoot)for(f=s.shadowRoot.childNodes.length-1;f>=0;f--)Ge(e,t,n,i,o,s.shadowRoot.childNodes[f],a)}else if(8===s.nodeType)u=s.nodeValue.split("."),u[1]!==a&&"0"!==u[1]||(c=u[0],l={$flags$:0,$hostId$:u[1],$nodeId$:u[2],$depth$:u[3],$index$:u[4],$elm$:s,$attrs$:null,$children$:null,$key$:null,$name$:null,$tag$:null,$text$:null},c===R?(l.$elm$=s.nextSibling,l.$elm$&&3===l.$elm$.nodeType&&(l.$text$=l.$elm$.textContent,t.push(l),s.remove(),e.$children$||(e.$children$=[]),e.$children$[l.$index$]=l,i&&"0"===l.$depth$&&(i[l.$index$]=l.$elm$))):l.$hostId$===a&&(c===O?(l.$tag$="slot",u[5]?s["s-sn"]=l.$name$=u[5]:s["s-sn"]="",s["s-sr"]=!0,r.shadowDom&&i&&(l.$elm$=m.createElement(l.$tag$),l.$name$&&l.$elm$.setAttribute("name",l.$name$),s.parentNode.insertBefore(l.$elm$,s),s.remove(),"0"===l.$depth$&&(i[l.$index$]=l.$elm$)),n.push(l),e.$children$||(e.$children$=[]),e.$children$[l.$index$]=l):c===b&&(r.shadowDom&&i?s.remove():r.slotRelocation&&(o["s-cr"]=s,s["s-cn"]=!0))));else if(e&&"style"===e.$tag$){const t=q(null,s.textContent);t.$elm$=s,t.$index$="0",e.$children$=[t]}},Be=(e,t)=>{if(1===e.nodeType){let n=0;for(;n<e.childNodes.length;n++)Be(e.childNodes[n],t);if(e.shadowRoot)for(n=0;n<e.shadowRoot.childNodes.length;n++)Be(e.shadowRoot.childNodes[n],t)}else if(8===e.nodeType){const n=e.nodeValue.split(".");n[0]===w&&(t.set(n[1]+"."+n[2],e),e.nodeValue="",e["s-en"]=n[3])}},Ve=(e,t)=>null==e||K(e)?e:r.propBoolean&&4&t?"false"!==e&&(""===e||!!e):r.propNumber&&2&t?parseFloat(e):r.propString&&1&t?String(e):e,Ye=(e,t)=>nt(e).$instanceValues$.get(t),He=(e,t,n,i)=>{const o=nt(e),s=r.lazyLoad?o.$hostElement$:e,a=o.$instanceValues$.get(t),c=o.$flags$,u=r.lazyLoad?o.$lazyInstance$:s;if(n=Ve(n,i.$members$[t][0]),(!r.lazyLoad||!(8&c)||void 0===a)&&n!==a&&(o.$instanceValues$.set(t,n),r.isDev&&(1024&o.$flags$?ct(`The state/prop "${t}" changed during rendering. This can potentially lead to infinite-loops and other bugs.`,"\nElement",s,"\nNew value",n,"\nOld value",a):2048&o.$flags$&&ct(`The state/prop "${t}" changed during "componentDidLoad()", this triggers extra re-renders, try to setup on "componentWillLoad()"`,"\nElement",s,"\nNew value",n,"\nOld value",a)),!r.lazyLoad||u)){if(r.watchCallback&&i.$watchers$&&128&c){const e=i.$watchers$[t];e&&e.map(e=>{try{u[e](n,a,t)}catch(r){ot(r,s)}})}if(r.updatable&&2===(18&c)){if(r.cmpShouldUpdate&&u.componentShouldUpdate&&!1===u.componentShouldUpdate(n,a,t))return;be(o,!1)}}},Fe=(e,t,n)=>{if(r.member&&t.$members$){r.watchCallback&&e.watchers&&(t.$watchers$=e.watchers);const i=Object.entries(t.$members$),o=e.prototype;if(i.map(([e,[i]])=>{(r.prop||r.state)&&(31&i||(!r.lazyLoad||2&n)&&32&i)?Object.defineProperty(o,e,{get(){return Ye(this,e)},set(o){if(r.isDev){const r=nt(this);0===(1&n)&&0===(8&r.$flags$)&&0!==(31&i)&&0===(1024&i)&&ct(`@Prop() "${e}" on <${t.$tagName$}> is immutable but was modified from within the component.\nMore information: https://stenciljs.com/docs/properties#prop-mutability`)}He(this,e,o,t)},configurable:!0,enumerable:!0}):r.lazyLoad&&r.method&&1&n&&64&i&&Object.defineProperty(o,e,{value(...t){const n=nt(this);return n.$onInstancePromise$.then(()=>n.$lazyInstance$[e](...t))}})}),r.observeAttribute&&(!r.lazyLoad||1&n)){const n=new Map;o.attributeChangedCallback=function(e,t,r){I.jmp(()=>{const t=n.get(e);this.hasOwnProperty(t)&&(r=this[t],delete this[t]),this[t]=(null!==r||"boolean"!==typeof this[t])&&r})},e.observedAttributes=i.filter(([e,t])=>15&t[0]).map(([e,i])=>{const o=i[1]||e;return n.set(o,e),r.reflect&&512&i[0]&&t.$attrsToReflect$.push([e,o]),o})}}return e},Qe=async(e,t,i,o,s)=>{if((r.lazyLoad||r.hydrateServerSide||r.style)&&0===(32&t.$flags$)){if(r.lazyLoad||r.hydrateClientSide){if(t.$flags$|=32,s=lt(i,t,o),s.then){const e=j(`st:load:${i.$tagName$}:${t.$modeName$}`,`[Stencil] Load module for <${i.$tagName$}>`);s=await s,e()}if((r.isDev||r.isDebug)&&!s)throw new Error(`Constructor for "${i.$tagName$}#${t.$modeName$}" was not found`);r.member&&!s.isProxied&&(r.watchCallback&&(i.$watchers$=s.watchers),Fe(s,i,2),s.isProxied=!0);const e=P("createInstance",i.$tagName$);r.member&&(t.$flags$|=8);try{new s(t)}catch(u){ot(u)}r.member&&(t.$flags$&=-9),r.watchCallback&&(t.$flags$|=128),e(),$e(t.$lazyInstance$)}else s=e.constructor,t.$flags$|=32,customElements.whenDefined(i.$tagName$).then(()=>t.$flags$|=128);if(r.style&&s.style){let o=s.style;r.mode&&"string"!==typeof o&&(o=o[t.$modeName$=Y(e)],r.hydrateServerSide&&t.$modeName$&&e.setAttribute("s-mode",t.$modeName$));const a=V(i,t.$modeName$);if(!ft.has(a)){const e=P("registerStyles",i.$tagName$);!r.hydrateServerSide&&r.shadowDom&&r.shadowDomShim&&8&i.$flags$&&(o=await n.e("chunk-2d0de941").then(n.bind(null,"85f4")).then(e=>e.scopeCss(o,a,!1))),z(a,o,!!(1&i.$flags$)),e()}}}const a=t.$ancestorComponent$,c=()=>be(t,!0);r.asyncLoading&&a&&a["s-rc"]?a["s-rc"].push(c):c()},$e=e=>{r.lazyLoad&&r.connectedCallback&&Ue(e,"connectedCallback")},Ke=e=>{if(0===(1&I.$flags$)){const t=nt(e),n=t.$cmpMeta$,i=P("connectedCallback",n.$tagName$);if(r.hostListenerTargetParent&&E(e,t,n.$listeners$,!0),1&t.$flags$)E(e,t,n.$listeners$,!1),$e(t.$lazyInstance$);else{let i;if(t.$flags$|=1,r.hydrateClientSide&&(i=e.getAttribute(D),i)){if(r.shadowDom&&_&&1&n.$flags$){const t=r.mode?G(e.shadowRoot,n,e.getAttribute("s-mode")):G(e.shadowRoot,n);e.classList.remove(t+"-h",t+"-s")}ze(e,n.$tagName$,i,t)}if(r.slotRelocation&&!i&&(r.hydrateServerSide||(r.slot||r.shadowDom)&&12&n.$flags$)&&We(e),r.asyncLoading){let n=e;while(n=n.parentNode||n.host)if(r.hydrateClientSide&&1===n.nodeType&&n.hasAttribute("s-id")&&n["s-p"]||n["s-p"]){Ne(t,t.$ancestorComponent$=n);break}}r.prop&&!r.hydrateServerSide&&n.$members$&&Object.entries(n.$members$).map(([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}}),r.initializeNextTick?_t(()=>Qe(e,t,n)):Qe(e,t,n)}i()}},We=e=>{const t=e["s-cr"]=m.createComment(r.isDebug?`content-ref (host=${e.localName})`:"");t["s-cn"]=!0,e.insertBefore(t,e.firstChild)},qe=e=>{if(0===(1&I.$flags$)){const t=nt(e),n=r.lazyLoad?t.$lazyInstance$:e;r.hostListener&&t.$rmListeners$&&(t.$rmListeners$.map(e=>e()),t.$rmListeners$=void 0),r.cssVarShim&&I.$cssShim$&&I.$cssShim$.removeHost(e),r.lazyLoad&&r.disconnectedCallback&&Ue(n,"disconnectedCallback"),r.cmpDidUnload&&Ue(n,"componentDidUnload")}},Ze=(e,t)=>{const n={$flags$:t[0],$tagName$:t[1]};r.member&&(n.$members$=t[2]),r.hostListener&&(n.$listeners$=t[3]),r.watchCallback&&(n.$watchers$=e.$watchers$),r.reflect&&(n.$attrsToReflect$=[]),r.shadowDom&&!_&&1&n.$flags$&&(n.$flags$|=8);const i=e.prototype.connectedCallback,o=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__registerHost(){rt(this,n)},connectedCallback(){Ke(this),r.connectedCallback&&i&&i.call(this)},disconnectedCallback(){qe(this),r.disconnectedCallback&&o&&o.call(this)}}),e.is=n.$tagName$,Fe(e,n,3)},Je=e=>{_?e.attachShadow({mode:"open"}):e.shadowRoot=e},Xe=(e,t)=>t,et=new WeakMap,nt=e=>et.get(e),rt=(e,t)=>{const n={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return r.isDev&&(n.$renderCount$=0),r.method&&r.lazyLoad&&(n.$onInstancePromise$=new Promise(e=>n.$onInstanceResolve$=e)),r.asyncLoading&&(n.$onReadyPromise$=new Promise(e=>n.$onReadyResolve$=e),e["s-p"]=[],e["s-rc"]=[]),E(e,n,t.$listeners$,!1),et.set(e,n)},it=(e,t)=>t in e,ot=(e,t)=>(c||console.error)(e,t),st=r.isTesting?["STENCIL:"]:["%cstencil","color: white;background:#4c47ff;font-weight: bold; font-size:10px; padding:2px 6px; border-radius: 5px"],at=(...e)=>console.error(...st,...e),ct=(...e)=>console.warn(...st,...e),ut=new Map,lt=(e,t,i)=>{const o=e.$tagName$.replace(/-/g,"_"),s=e.$lazyBundleId$;if(r.isDev&&"string"!==typeof s)return void at(`Trying to lazily load component <${e.$tagName$}> with style mode "${t.$modeName$}", but it does not exist.`);const a=!r.hotModuleReplacement&&ut.get(s);return a?a[o]:n("c2e1")(`./${s}.entry.js${r.hotModuleReplacement&&i?"?s-hmr="+i:""}`).then(e=>(r.hotModuleReplacement||ut.set(s,e),e[o]),ot)},ft=new Map,ht=[],dt=[],pt=[],gt=[],vt=(e,t)=>n=>{e.push(n),v||(v=!0,t&&4&I.$flags$?_t(It):I.raf(It))},yt=e=>{for(let n=0;n<e.length;n++)try{e[n](performance.now())}catch(t){ot(t)}e.length=0},mt=(e,t)=>{let n=0,r=0;while(n<e.length&&(r=performance.now())<t)try{e[n++](r)}catch(i){ot(i)}n===e.length?e.length=0:0!==n&&e.splice(0,n)},It=()=>{if(r.asyncQueue&&g++,yt(dt),r.asyncQueue){const e=2===(6&I.$flags$)?performance.now()+14*Math.ceil(.1*g):1/0;mt(pt,e),mt(gt,e),pt.length>0&&(gt.push(...pt),pt.length=0),(v=dt.length+pt.length+gt.length>0)?I.raf(It):g=0}else yt(pt),(v=dt.length>0)&&I.raf(It)},_t=e=>C().then(e),Tt=vt(pt,!0);r.isDev,r.isTesting;var Ct=n("9447"),Mt=function(e,t){return Mt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},Mt(e,t)},Et=function(){return Et=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Et.apply(this,arguments)};function At(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}function St(e,t){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(i=s.trys,!((i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}}var Nt,bt=new Ct["k"]("RCIM"),wt=function(){return!("undefined"==typeof uni||!function(e){for(var t=["canIUse","getSystemInfo"],n=0,r=t.length;n<r;n++)if(!e[t[n]])return!1;return!0}(uni))},Ot=wt(),Rt={tag:"browser",httpReq:function(e){var t=e.method||Ct["i"].GET,n=e.timeout||6e4,r=e.headers,i=e.query,o=e.body,s=Object(Ct["v"])(e.url,i);return new Promise((function(e){var i,a=(i="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,"undefined"!=typeof XMLHttpRequest&&i?new XMLHttpRequest:"undefined"!=typeof XDomainRequest?new XDomainRequest:new ActiveXObject("Microsoft.XMLHTTP")),c="[object XDomainRequest]"===Object.prototype.toString.call(a);if(a.open(t,s),r&&a.setRequestHeader)for(var u in r)a.setRequestHeader(u,r[u]);if(c){a.timeout=n,a.onload=function(){e({data:a.responseText,status:a.status||200})},a.onerror=function(){e({status:a.status||0})},a.ontimeout=function(){e({status:a.status||0})};var l="object"==typeof o?JSON.stringify(o):o;a.send(l)}else a.onreadystatechange=function(){4===a.readyState&&e({data:a.responseText,status:a.status})},a.onerror=function(){e({status:a.status||0})},setTimeout((function(){a.abort(),e({status:a.status||0})}),n),a.send(o)}))},localStorage:null===window||void 0===window?void 0:window.localStorage,sessionStorage:null===window||void 0===window?void 0:window.sessionStorage,isSupportSocket:function(){var e="undefined"!=typeof WebSocket;return e||console.warn("websocket not support"),e},useNavi:!0,connectPlatform:"",isFromUniapp:Ot,createWebSocket:function(e,t){var n=new WebSocket(e,t);return n.binaryType="arraybuffer",{onClose:function(e){n.onclose=function(t){var n=t.code,r=t.reason;e(n,r)}},onError:function(e){n.onerror=e},onMessage:function(e){n.onmessage=function(t){e(t.data)}},onOpen:function(e){n.onopen=e},send:function(e){n.send(e)},close:function(e,t){n.close()}}},createDataChannel:function(e,t){return this.isSupportSocket()&&"websocket"===t?new Ct["u"](this,e):new Ct["d"](this,e)},getNetworkType:function(){var e=navigator.connection||navigator.mozConnection||navigator.webkitConnection,t=e.type,n=e.effectiveType,r=t||n||Ct["o"].UNKONWN;return new Promise((function(e){e(r)}))}},Dt=wt(),Lt=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=Ct["C"].ID();try{return Ct["C"].info(Ct["j"].A_CALLBACK_O,{func_name:e,source:"wechat"},{traceId:r}),wx[e].apply(wx,t)}catch(t){Ct["C"].error(Ct["j"].A_CALLBACK_E,{func_name:e,source:"wechat"},{traceId:r}),console.error(t)}}},Ut={setItem:Lt("setStorageSync"),getItem:Lt("getStorageSync"),removeItem:Lt("removeStorageSync"),clear:Lt("clearStorageSync")},xt={tag:"wechat",httpReq:function(e){var t=e.method||Ct["i"].GET,n=e.timeout||6e4,r=e.headers,i=e.query,o=e.body,s=Object(Ct["v"])(e.url,i);return new Promise((function(e){wx.request({url:s,method:t,headers:r,timeout:n,data:o,success:function(t){e({data:t.data,status:t.statusCode})},fail:function(){e({status:Ct["f"].RC_HTTP_REQ_TIMEOUT})}})}))},localStorage:Ut,sessionStorage:Ut,isSupportSocket:function(){return!0},useNavi:!1,connectPlatform:"MiniProgram",isFromUniapp:Dt,createWebSocket:function(e,t){var n=wx.connectSocket({url:e,protocols:t});return{onClose:function(e){n.onClose((function(t){e(t.code,t.reason)}))},onError:function(e){n.onError((function(t){e(t.errMsg)}))},onMessage:function(e){n.onMessage((function(t){e(t.data)}))},onOpen:function(e){n.onOpen(e)},send:function(e){n.send({data:e})},close:function(e,t){n.close({code:e,reason:t})}}},createDataChannel:function(e,t){return"websocket"===t?new Ct["u"](this,e):new Ct["d"](this,e)},getNetworkType:function(){return new Promise((function(e){wx.getNetworkType({success:function(t){var n=t.networkType;e(n)},fail:function(){e(Ct["o"].UNKONWN)}})}))}},Pt=wt(),jt=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=Ct["C"].ID();try{return Ct["C"].info(Ct["j"].A_CALLBACK_O,{func_name:e,source:"alipay"},{traceId:r}),my[e].apply(my,t)}catch(t){Ct["C"].error(Ct["j"].A_CALLBACK_E,{func_name:e,source:"alipay"},{traceId:r}),console.error(t)}}},kt={setItem:jt("setStorageSync"),getItem:jt("getStorageSync"),removeItem:jt("removeStorageSync"),clear:jt("clearStorageSync")},zt={tag:"alipay",httpReq:function(e){var t=e.method||Ct["i"].GET,n=e.timeout||6e4,r=e.headers,i=e.query,o=e.body,s=Object(Ct["v"])(e.url,i),a=e.dataType||"json";return new Promise((function(e){my.request({url:s,method:t,headers:r,timeout:n,data:o,dataType:a,success:function(t){e({data:t.data,status:t.status})},fail:function(){e({status:Ct["f"].RC_HTTP_REQ_TIMEOUT})}})}))},localStorage:kt,sessionStorage:kt,isSupportSocket:function(){return!1},useNavi:!1,connectPlatform:"MiniProgram",isFromUniapp:Pt,createDataChannel:function(e,t){return"websocket"===t?new Ct["u"](this,e):new Ct["d"](this,e)},getNetworkType:function(){return new Promise((function(e){my.getNetworkType({success:function(t){var n=t.networkType;e(n)},fail:function(){e(Ct["o"].UNKONWN)}})}))}},Gt=wt(),Bt=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=Ct["C"].ID();try{return Ct["C"].info(Ct["j"].A_CALLBACK_O,{func_name:e,source:"toutiao"},{traceId:r}),tt[e].apply(tt,t)}catch(t){Ct["C"].error(Ct["j"].A_CALLBACK_E,{func_name:e,source:"toutiao"},{traceId:r}),console.error(t)}}},Vt={setItem:Bt("setStorageSync"),getItem:Bt("getStorageSync"),removeItem:Bt("removeStorageSync"),clear:Bt("clearStorageSync")},Yt={tag:"toutiao",isSupportSocket:function(){return!0},useNavi:!1,connectPlatform:"MiniProgram",isFromUniapp:Gt,localStorage:Vt,sessionStorage:Vt,httpReq:function(e){return new Promise((function(t,n){tt.request({url:e.url,data:e.body,header:e.headers,method:e.method,success:function(e){console.log("调用成功",e.data);var n=(null==e?void 0:e.data)||{},r={data:JSON.stringify(n),status:e.statusCode};t(r)},fail:function(e){console.log("调用失败",e.errMsg),n({data:e.errMsg})}})}))},createWebSocket:function(e,t){var n=tt.connectSocket({url:e,protocols:t});return{onOpen:function(e){n.onOpen(e)},onClose:function(e){n.onClose((function(t){return e(t.code,t.reason)}))},onError:function(e){n.onError((function(t){return e(t.errMsg)}))},onMessage:function(e){n.onMessage((function(t){return e(t.data)}))},send:function(e){n.send({data:e})},close:function(e,t){n.close({code:e,reason:t})}}},createDataChannel:function(e,t){return"websocket"===t?new Ct["u"](this,e):new Ct["d"](this,e)},getNetworkType:function(){return new Promise((function(e){tt.getNetworkType({success:function(t){var n=t.networkType;e(n)},fail:function(){e(Ct["o"].UNKONWN)}})}))}},Ht=wt(),Ft=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=Ct["C"].ID();try{return Ct["C"].info(Ct["j"].A_CALLBACK_O,{func_name:e,source:"baidu"},{traceId:r}),swan[e].apply(swan,t)}catch(t){Ct["C"].error(Ct["j"].A_CALLBACK_E,{func_name:e,source:"baidu"},{traceId:r}),console.error(t)}}},Qt={setItem:Ft("setStorageSync"),getItem:Ft("getStorageSync"),removeItem:Ft("removeStorageSync"),clear:Ft("clearStorageSync")},$t={tag:"baidu",isSupportSocket:function(){return!0},useNavi:!1,connectPlatform:"MiniProgram",isFromUniapp:Ht,localStorage:Qt,sessionStorage:Qt,httpReq:function(e){return new Promise((function(t,n){swan.request({url:e.url,data:e.body,header:e.headers,method:e.method,success:function(e){console.log("调用成功",e.data);var n=(null==e?void 0:e.data)||{},r={data:JSON.stringify(n),status:e.statusCode};t(r)},fail:function(e){console.log("调用失败",e.errorCode),n({data:e.errorCode})}})}))},createWebSocket:function(e,t){var n=swan.connectSocket({url:e,protocols:t});return{onOpen:function(e){n.onOpen(e)},onClose:function(e){n.onClose((function(t){return e(t.code,t.reason)}))},onError:function(e){n.onError((function(t){return e(t.errMsg)}))},onMessage:function(e){n.onMessage((function(t){return e(t.data)}))},send:function(e){n.send({data:e})},close:function(e,t){n.close({code:e,reason:t})}}},createDataChannel:function(e,t){return"websocket"===t?new Ct["u"](this,e):new Ct["d"](this,e)},getNetworkType:function(){return At(this,void 0,void 0,(function(){return St(this,(function(e){return[2,new Promise((function(e){swan.getNetworkType({success:function(t){var n=t.networkType;e(n)},fail:function(){e(Ct["o"].UNKONWN)}})}))]}))}))}},Kt=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=Ct["C"].ID();try{return Ct["C"].info(Ct["j"].A_CALLBACK_O,{func_name:e,source:"uniapp"},{traceId:r}),uni[e].apply(uni,t)}catch(t){Ct["C"].error(Ct["j"].A_CALLBACK_E,{func_name:e,source:"uniapp"},{traceId:r}),console.error(t)}}},Wt={setItem:Kt("setStorageSync"),getItem:Kt("getStorageSync"),removeItem:Kt("removeStorageSync"),clear:Kt("clearStorageSync")},qt={tag:"uniapp",httpReq:function(e){var t=e.method||Ct["i"].GET,n=e.timeout||6e4,r=e.headers,i=e.query,o=e.body,s=Object(Ct["v"])(e.url,i);return new Promise((function(e){uni.request({url:s,method:t,headers:r,timeout:n,data:o,success:function(t){e({data:t.data,status:t.statusCode})},fail:function(){e({status:Ct["f"].RC_HTTP_REQ_TIMEOUT})}})}))},localStorage:Wt,sessionStorage:Wt,isSupportSocket:function(){return!0},useNavi:!0,connectPlatform:"",isFromUniapp:!0,createWebSocket:function(e,t){var n={complete:function(){},url:e,protocols:t},r=uni.connectSocket(n);return{onClose:function(e){r.onClose((function(t){e(t.code,t.reason)}))},onError:function(e){r.onError((function(t){e(t.errMsg)}))},onMessage:function(e){r.onMessage((function(t){e(t.data)}))},onOpen:function(e){r.onOpen(e)},send:function(e){r.send({data:e})},close:function(e,t){r.close({code:e,reason:t})}}},createDataChannel:function(e,t){return"websocket"===t?new Ct["u"](this,e):new Ct["d"](this,e)},getNetworkType:function(){return new Promise((function(e){uni.getNetworkType({success:function(t){var n=t.networkType;e(n)},fail:function(){e(Ct["o"].UNKONWN)}})}))}},Zt=function(e){return e&&e.canIUse&&e.getSystemInfo},Jt="undefined"!=typeof uni&&Zt(uni)?function(){switch(Object({VUE_APP_BASE_API:"api",NODE_ENV:"production",BASE_URL:""}).VUE_APP_PLATFORM){case"app-plus":return qt;case"mp-baidu":return $t;case"mp-toutiao":return Yt;case"mp-alipay":return zt;case"mp-weixin":return xt;default:return Rt}}():"undefined"!=typeof my&&Zt(my)?zt:"undefined"!=typeof tt&&Zt(tt)?Yt:"undefined"!=typeof swan&&Zt(swan)?$t:"undefined"!=typeof wx&&Zt(wx)?xt:Rt;function Xt(e){var t=e.conversationType,n=e.channelId,r=e.messageType,i=e.content,o=e.senderUserId,s=e.targetId,a=e.sentTime,c=e.receivedTime,u=e.messageUId,l=e.messageDirection,f=e.isPersited,h=e.isCounted,d=e.isOffLineMessage,p=e.canIncludeExpansion,g=e.expansion,v=e.receivedStatus,y=e.disableNotification,m=e.isMentioned,I=e.isStatusMessage,_=e.readReceiptInfo,T=e.pushConfig,C=e.messageId,M=e.isInterrupt,E=e.isModifyMessage;v||(v=Ct["r"].UNREAD);var A={messageType:r,channelId:n||"",content:i,senderUserId:o,targetId:s,conversationType:t,sentTime:a,receivedTime:c,messageUId:u,messageDirection:l,isPersited:f,isCounted:h,isMentioned:m,disableNotification:y,isStatusMessage:I,canIncludeExpansion:p,expansion:g,receivedStatus:v,readReceiptInfo:_,pushConfig:T,messageId:C,isInterrupt:M,isModifyMessage:E};return t!==Ct["e"].ULTRA_GROUP&&(A.isOffLineMessage=d),A}function en(e){var t=e.conversationType,n=e.targetId,r=e.latestMessage,i=e.unreadMessageCount,o=e.hasMentioned,s=e.mentionedInfo,a=e.lastUnreadTime,c=e.notificationStatus,u=e.isTop,l=e.channelId,f=e.unreadMentionedCount;return{conversationType:t,targetId:n,latestMessage:r&&Xt(r),unreadMessageCount:i,hasMentioned:o,mentionedInfo:o?{type:null==s?void 0:s.type,userIdList:null==s?void 0:s.userIdList}:void 0,lastUnreadTime:a,notificationStatus:c,isTop:u,channelId:l,unreadMentionedCount:f}}!function(e){e.CONNECTING="CONNECTING",e.CONNECTED="CONNECTED",e.DISCONNECT="DISCONNECT",e.SUSPEND="SUSPEND",e.MESSAGES="MESSAGES",e.READ_RECEIPT_RECEIVED="READ_RECEIPT_RECEIVED",e.MESSAGE_RECEIPT_REQUEST="MESSAGE_RECEIPT_REQUEST",e.MESSAGE_RECEIPT_RESPONSE="MESSAGE_RECEIPT_RESPONSE",e.CONVERSATION="CONVERSATION",e.CHATROOM="CHATROOM",e.EXPANSION="EXPANSION",e.PULL_OFFLINE_MESSAGE_FINISHED="PULL_OFFLINE_MESSAGE_FINISHED",e.TAG="TAG",e.CONVERSATION_TAG="CONVERSATION_TAG",e.TYPING_STATUS="TYPING_STATUS",e.MESSAGE_BLOCKED="MESSAGE_BLOCKED",e.ULTRA_GROUP_ENABLE="ULTRA_GROUP_ENABLE",e.OPERATE_STATUS="OPERATE_STATUS",e.ULTRA_GROUP_MESSAGE_EXPANSION_UPDATED="ULTRA_GROUP_MESSAGE_EXPANSION_UPDATED",e.ULTRA_GROUP_MESSAGE_MODIFIED="ULTRA_GROUP_MESSAGE_MODIFIED",e.ULTRA_GROUP_MESSAGE_RECALLED="ULTRA_GROUP_MESSAGE_RECALLED"}(Nt||(Nt={}));var tn,nn=function(e){function t(n){var r=e.call(this)||this;if(t.imClient)return bt.error("Please do not repeatedly perform the init method"),t.imClient;Object(Ct["w"])("options.navigators",n.navigators,(function(e){return Object(Ct["x"])(e)&&(0===e.length||e.every(Ct["y"]))}));var i=null==n?void 0:n.connectType;return i?Ct["c"].WEBSOCKET!==i&&Ct["c"].COMET!==i&&(bt.warn("RongIMLib connectionType must be ".concat(Ct["c"].WEBSOCKET," or ").concat(Ct["c"].COMET)),i=Ct["c"].WEBSOCKET):i=Ct["c"].WEBSOCKET,Ct["C"].info(Ct["j"].A_INIT_O,{appkey:n.appkey,navigators:n.navigators||[],connectionType:i,logLevel:n.logLevel}),r._context=Ct["a"].init(Jt,{appkey:n.appkey,apiVersion:"5.3.4",navigators:n.navigators||[],miniCMPProxy:n.customCMP||[],connectionType:i,logLevel:n.logLevel,logStdout:n.logStdout,indexDBSwitch:n.indexDBSwitch,checkCA:n.checkCA}),r.watch(),t.imClient=r,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Mt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),Object.defineProperty(t.prototype,"context",{get:function(){if(!this._context)throw new Error("Please perform the init method!");return this._context},enumerable:!1,configurable:!0}),t.prototype.watch=function(){var e=this,t=Ct["C"].ID(),n={onConnecting:function(){e.emit(Nt.CONNECTING)},onConnected:function(){e.emit(Nt.CONNECTED)},onDisconnect:function(n){Ct["C"].info(Ct["j"].A_CONNECT_S,{status:n},{traceId:t}),e.emit(Nt.DISCONNECT,n)},onSuspend:function(n){Ct["C"].info(Ct["j"].A_CONNECT_S,{status:n},{traceId:t}),e.emit(Nt.SUSPEND,n)},batchMessage:function(t){e.emit(Nt.MESSAGES,{messages:t.map((function(e){return Xt(e)}))})},typingState:function(t){e.emit(Nt.TYPING_STATUS,{status:t})},readReceiptReceived:function(t,n,r){e.emit(Nt.READ_RECEIPT_RECEIVED,{conversation:t,messageUId:n,sentTime:r})},messageReceiptRequest:function(t,n,r){e.emit(Nt.MESSAGE_RECEIPT_REQUEST,{conversation:t,messageUId:n,senderUserId:r})},messageReceiptResponse:function(t,n,r){e.emit(Nt.MESSAGE_RECEIPT_RESPONSE,{conversation:t,receivedUserId:n,messageUIdList:r})},conversationState:function(t){var n=t.map((function(e){var t=e.conversationType;return t===Ct["e"].ULTRA_GROUP?{conversation:{conversationType:t,latestMessage:e.latestMessage?Xt(e.latestMessage):null,targetId:e.targetId,unreadMessageCount:e.unreadMessageCount,unreadMentionedCount:e.unreadMentionedCount,versionTime:e.versionTime,notificationStatus:e.notificationStatus,notificationLevel:e.notificationLevel,lastUnreadTime:e.lastUnreadTime,channelId:e.channelId}}:{conversation:{conversationType:t,latestMessage:e.latestMessage?Xt(e.latestMessage):null,targetId:e.targetId,unreadMessageCount:e.unreadMessageCount,hasMentioned:e.hasMentioned,mentionedInfo:e.mentionedInfo,lastUnreadTime:e.lastUnreadTime,notificationStatus:e.notificationStatus,notificationLevel:e.notificationLevel,isTop:e.isTop,channelId:e.channelId,unreadMentionedCount:e.unreadMentionedCount},updatedItems:e.updatedItems}}));e.emit(Nt.CONVERSATION,{conversationList:n})},chatroomState:function(t){e.emit(Nt.CHATROOM,t)},expansion:function(t){e.emit(Nt.EXPANSION,t)},pullFinished:function(){e.emit(Nt.PULL_OFFLINE_MESSAGE_FINISHED)},tag:function(){e.emit(Nt.TAG)},conversationTagChanged:function(){e.emit(Nt.CONVERSATION_TAG)},messageBlocked:function(t){e.emit(Nt.MESSAGE_BLOCKED,t)},ultraGroupEnable:function(t){e.emit(Nt.ULTRA_GROUP_ENABLE,t)},operateStatus:function(t){e.emit(Nt.OPERATE_STATUS,t)},ultraGroupMessageExpansionUpdated:function(t){e.emit(Nt.ULTRA_GROUP_MESSAGE_EXPANSION_UPDATED,t)},ultraGroupMessageModified:function(t){e.emit(Nt.ULTRA_GROUP_MESSAGE_MODIFIED,t)},ultraGroupMessageRecalled:function(t){e.emit(Nt.ULTRA_GROUP_MESSAGE_RECALLED,t)}};this.context.assignWatcher(n)},t}(Ct["g"]),rn={TIMEOUT:{code:-1,msg:"Network timeout"},SDK_INTERNAL_ERROR:{code:-2,msg:"SDK internal error"},PARAMETER_ERROR:{code:-3,msg:"Please check the parameters, the {param} expected a value of {expect} but received {current}"},REJECTED_BY_BLACKLIST:{code:405,msg:"Blacklisted by the other party"},SEND_TOO_FAST:{code:20604,msg:"Sending messages too quickly"},NOT_IN_GROUP:{code:22406,msg:"Not in group"},FORBIDDEN_IN_GROUP:{code:22408,msg:"Forbbiden from speaking in the group"},NOT_IN_CHATROOM:{code:23406,msg:"Not in chatRoom"},FORBIDDEN_IN_CHATROOM:{code:23408,msg:"Forbbiden from speaking in the chatRoom"},KICKED_FROM_CHATROOM:{code:23409,msg:"Kicked out and forbbiden from joining the chatRoom"},CHATROOM_NOT_EXIST:{code:23410,msg:"ChatRoom does not exist"},CHATROOM_IS_FULL:{code:23411,msg:"ChatRoom members exceeded"},PARAMETER_INVALID_CHATROOM:{code:23412,msg:"Invalid chatRoom parameters"},ROAMING_SERVICE_UNAVAILABLE_CHATROOM:{code:23414,msg:"ChatRoom message roaming service is not open, Please go to the developer to open this service"},RECALLMESSAGE_PARAMETER_INVALID:{code:25101,msg:"Invalid recall message parameter"},ROAMING_SERVICE_UNAVAILABLE_MESSAGE:{code:25102,msg:"Single group chat roaming service is not open, Please go to the developer to open this service"},PUSHSETTING_PARAMETER_INVALID:{code:26001,msg:"Invalid push parameter"},OPERATION_BLOCKED:{code:20605,msg:"Operation is blocked"},OPERATION_NOT_SUPPORT:{code:20606,msg:"Operation is not supported"},MSG_BLOCKED_SENSITIVE_WORD:{code:21501,msg:"The sent message contains sensitive words"},REPLACED_SENSITIVE_WORD:{code:21502,msg:"Sensitive words in the message have been replaced"},NOT_CONNECTED:{code:30001,msg:"Please connect successfully first"},NAVI_REQUEST_ERROR:{code:30007,msg:"Navigation http request failed"},CMP_REQUEST_ERROR:{code:30010,msg:"CMP sniff http request failed"},CONN_APPKEY_FAKE:{code:31002,msg:"Your appkey is fake"},CONN_MINI_SERVICE_NOT_OPEN:{code:31003,msg:"Mini program service is not open, Please go to the developer to open this service"},CONN_ACK_TIMEOUT:{code:31e3,msg:"Connection ACK timeout"},CONN_TOKEN_INCORRECT:{code:31004,msg:"Your token is not valid or expired"},CONN_NOT_AUTHRORIZED:{code:31005,msg:"AppKey and Token do not match"},CONN_REDIRECTED:{code:31006,msg:"Connection redirection"},CONN_APP_BLOCKED_OR_DELETED:{code:31008,msg:"AppKey is banned or deleted"},CONN_USER_BLOCKED:{code:31009,msg:"User blocked"},CONN_DOMAIN_INCORRECT:{code:31012,msg:"Connect domain error, Please check the set security domain"},ROAMING_SERVICE_UNAVAILABLE:{code:33007,msg:"Roaming service cloud is not open, Please go to the developer to open this service"},RC_CONNECTION_EXIST:{code:34001,msg:"Connection already exists"},CHATROOM_KV_EXCEED:{code:23423,msg:"ChatRoom KV setting exceeds maximum"},CHATROOM_KV_OVERWRITE_INVALID:{code:23424,msg:"ChatRoom KV already exists"},CHATROOM_KV_STORE_NOT_OPEN:{code:23426,msg:"ChatRoom KV storage service is not open, Please go to the developer to open this service"},CHATROOM_KEY_NOT_EXIST:{code:23427,msg:"ChatRoom key does not exist"},MSG_KV_NOT_SUPPORT:{code:34008,msg:"The message cannot be extended"},SEND_MESSAGE_KV_FAIL:{code:34009,msg:"Sending RC expansion message fail"},EXPANSION_LIMIT_EXCEET:{code:34010,msg:"The message expansion size is beyond the limit"},ILLGAL_PARAMS:{code:33003,msg:"Incorrect parameters passed in while calling the interface"},UPLOAD_FILE_FAILED:{code:35020,msg:"File upload failed"},CHATROOM_KV_STORE_NOT_ALL_SUCCESS:{code:23428,msg:"Chatroom kv store not all success"},CHATROOM_KV_STORE_OUT_LIMIT:{code:23429,msg:"Chatroom kv's length is out of limit"},TAG_EXISTS:{code:33101,msg:"The tag already exists"},TAG_NOT_EXIST:{code:33100,msg:"The tag does not exist"},NOT_SUPPORT:{code:Ct["f"].NOT_SUPPORT,msg:"The method is not supported in a browser!"}},on={},sn={};for(var an in rn){var cn=rn[an],un=cn.code;on[un]=an,sn[un]=cn}rn.ROAMING_SERVICE_UNAVAILABLE.code;var ln=function(e){tn=tn||new nn(e)};function fn(e,t){return At(this,void 0,void 0,(function(){var n,r;return St(this,(function(i){switch(i.label){case 0:return Object(Ct["w"])("token",e,Ct["b"].STRING,!0),bt.warn("RongIMLib Version: ".concat("5.3.4",", Commit: ").concat("4a1b7760381616fa6a6cb2e0200d6a0dc56f90a1")),n=Ct["C"].ID(),Ct["C"].info(Ct["j"].A_CONNECT_T,{token:e,reconnectKickEnable:t},{traceId:n}),[4,tn.context.connect(e,!1,t,n)];case 1:return r=i.sent(),(r.code===Ct["f"].SUCCESS?Ct["C"].info:Ct["C"].warn)(Ct["j"].A_CONNECT_R,{code:r.code,userId:r.userId},{traceId:n}),r.code===Ct["f"].SUCCESS?[2,{code:r.code,data:{userId:r.userId}}]:[2,{code:r.code,msg:on[r.code]}]}}))}))}function hn(){return Ct["C"].info(Ct["j"].A_DISCONNECT_O,{}),tn.context.disconnect()}function dn(){return tn.context.getServerTime()}function pn(){return tn.context.getCurrentUserId()}function gn(e,t,n){tn.on(e,t,n)}function vn(e,t,n){tn.off(e,t,n)}function yn(e,t){return At(this,void 0,void 0,(function(){var n,r,i;return St(this,(function(o){switch(o.label){case 0:return bt.debug("get conversation list ->"),[4,nn.imClient.context.getConversationList(null==e?void 0:e.count,void 0,null==e?void 0:e.startTime,null==e?void 0:e.order,t)];case 1:return n=o.sent(),r=n.code,i=n.data,r===Ct["f"].SUCCESS&&i?[2,{code:0,data:i.map((function(e){return en(e)}))}]:(bt.warn("get conversation list fail ->"+r+":"+on[r]),[2,{code:r,msg:on[r]}])}}))}))}function mn(e){return At(this,void 0,void 0,(function(){var t,n;return St(this,(function(r){switch(r.label){case 0:return Object(Ct["w"])("options.conversationType",e.conversationType,Ct["A"],!0),Object(Ct["w"])("options.targetId",e.targetId,Ct["b"].STRING,!0),Object(Ct["w"])("options.channelId",e.channelId,Ct["b"].CHANNEL_ID),[4,nn.imClient.context.removeConversation(e.conversationType,e.targetId,e.channelId)];case 1:return t=r.sent(),n="conversationType:"+e.conversationType+",targetId:"+e.targetId,bt.debug("destroy conversation ->"+n),t!==Ct["f"].SUCCESS?(bt.warn("destroy conversation fail ->"+t+":"+on[t]+","+n),[2,{code:t,msg:on[t]}]):[2,{code:t}]}}))}))}function In(e){return At(this,void 0,void 0,(function(){var t,n,r,i;return St(this,(function(o){switch(o.label){case 0:return Object(Ct["w"])("options.conversationType",e.conversationType,Ct["A"],!0),Object(Ct["w"])("options.targetId",e.targetId,Ct["b"].STRING,!0),Object(Ct["w"])("options.channelId",e.channelId,Ct["b"].CHANNEL_ID),[4,nn.imClient.context.getConversationMessageDraft(e.conversationType,e.targetId,e.channelId)];case 1:return t=o.sent(),n=t.code,r=t.data,i="conversationType:"+e.conversationType+",targetId:"+e.targetId,bt.debug("get draft ->"+i),n===Ct["f"].SUCCESS?[2,{code:n,data:r||""}]:(bt.warn("get draft fail ->"+n+":"+on[n]+","+i),[2,{code:n,msg:on[n]}])}}))}))}function _n(e,t){return At(this,void 0,void 0,(function(){var n,r;return St(this,(function(i){switch(i.label){case 0:return Object(Ct["w"])("options.conversationType",e.conversationType,Ct["A"],!0),Object(Ct["w"])("options.targetId",e.targetId,Ct["b"].STRING,!0),Object(Ct["w"])("options.channelId",e.channelId,Ct["b"].CHANNEL_ID),Object(Ct["w"])("draft",t,Ct["b"].STRING,!0),n="conversationType:"+e.conversationType+",targetId:"+e.targetId,bt.debug("set draft ->"+n),[4,nn.imClient.context.saveConversationMessageDraft(e.conversationType,e.targetId,t,e.channelId)];case 1:return(r=i.sent())===Ct["f"].SUCCESS?[2,{code:r}]:(bt.warn("set draft fail ->"+r+":"+on[r]+","+n),[2,{code:r,msg:on[r]}])}}))}))}function Tn(e){return At(this,void 0,void 0,(function(){var t,n;return St(this,(function(r){switch(r.label){case 0:return Object(Ct["w"])("options.conversationType",e.conversationType,Ct["A"],!0),Object(Ct["w"])("options.targetId",e.targetId,Ct["b"].STRING,!0),Object(Ct["w"])("options.channelId",e.channelId,Ct["b"].CHANNEL_ID),t="conversationType:"+e.conversationType+",targetId:"+e.targetId,bt.debug("delete draft ->"+t),[4,nn.imClient.context.clearConversationMessageDraft(e.conversationType,e.targetId,e.channelId)];case 1:return(n=r.sent())===Ct["f"].SUCCESS?[2,{code:n}]:(bt.warn("delete draft fail ->"+n+":"+on[n]+","+t),[2,{code:n,msg:on[n]}])}}))}))}function Cn(e){return At(this,void 0,void 0,(function(){var t,n;return St(this,(function(r){switch(r.label){case 0:return Object(Ct["w"])("options.conversationType",e.conversationType,Ct["A"],!0),Object(Ct["w"])("options.targetId",e.targetId,Ct["b"].STRING,!0),Object(Ct["w"])("options.channelId",e.channelId,Ct["b"].CHANNEL_ID),[4,nn.imClient.context.clearUnreadCount(e.conversationType,e.targetId,e.channelId)];case 1:return t=r.sent(),n="conversationType:"+e.conversationType+",targetId:"+e.targetId,bt.debug("clear unreadMsgNum ->"+n),t!==Ct["f"].SUCCESS?(bt.warn("clear unreadMsgNum fail ->"+t+":"+on[t]+","+n),[2,{code:t,msg:on[t]}]):[2,{code:t}]}}))}))}var Mn=function(e,t){void 0===t&&(t=""),Object(Ct["w"])("options.conversationType",e.conversationType,Ct["A"],!0),Object(Ct["w"])("options.targetId",e.targetId,Ct["b"].STRING,!0),Object(Ct["w"])("options.channelId",e.channelId,Ct["b"].CHANNEL_ID);var n="conversationType:"+e.conversationType+",targetId:"+e.targetId;return bt.debug("".concat(t," -> ").concat(n)),n},En=function(e,t,n){return void 0===n&&(n=""),At(void 0,void 0,void 0,(function(){var r,i;return St(this,(function(o){switch(o.label){case 0:return r=Mn(e,n),[4,t()];case 1:return(i=o.sent())!==Ct["f"].SUCCESS?(bt.warn("".concat(n," fail -> ").concat(i," : ").concat(on[i]," , ").concat(r)),[2,{code:i,msg:on[i]}]):[2,{code:i}]}}))}))};function An(e,t){return At(this,void 0,void 0,(function(){return St(this,(function(n){return Object(Ct["w"])("notificationStatus",t,(function(e){return 1===e||2===e}),!0),[2,En(e,(function(){return nn.imClient.context.setConversationStatus(e.conversationType,e.targetId,void 0,t,e.channelId)}),"setConversationNotificationStatus")]}))}))}function Sn(e,t){return void 0===t&&(t=!0),At(this,void 0,void 0,(function(){var n,r;return St(this,(function(i){switch(i.label){case 0:return Object(Ct["w"])("options.type",e.conversationType,Ct["A"],!0),Object(Ct["w"])("options.targetId",e.targetId,Ct["b"].STRING,!0),Object(Ct["w"])("options.channelId",e.channelId,Ct["b"].CHANNEL_ID),n="conversationType:"+e.conversationType+",targetId:"+e.targetId,bt.debug("set conversation status ->"+n),[4,nn.imClient.context.setConversationStatus(e.conversationType,e.targetId,t,void 0,e.channelId)];case 1:return(r=i.sent())!==Ct["f"].SUCCESS?(bt.warn("set conversation status fail ->"+r+":"+on[r]+","+n),[2,{code:r,msg:on[r]}]):[2,{code:r}]}}))}))}var Nn=function(e,t,n,r){void 0===n&&(n=!0),void 0===r&&(r=!0),this.messageType=e,this.content=t,this.isPersited=n,this.isCounted=r};function bn(e,t,n){return void 0===t&&(t=!0),void 0===n&&(n=!0),function(r){return new Nn(e,r,t,n)}}var wn,On,Rn=bn("RC:ImgMsg"),Dn=bn("RC:HQVCMsg"),Ln=bn("RC:SightMsg"),Un=bn("RC:TxtMsg"),xn=bn("RC:CombineMsg"),Pn=bn("RC:FileMsg"),jn=(bn("RC:GIFMsg"),bn("RC:VcMsg"),bn("RC:LBSMsg"),bn("RC:ReferenceMsg")),kn=(bn("RC:ImgTextMsg"),{qiniu:function(e,t,n,r){var i,o="https://"+t.uploadHost.qiniu;i=Vn()+zn[0][1]||o,zn.shift();var s=new XMLHttpRequest;s.upload&&t.support_options&&(s.upload.onprogress=function(e){n.onProgress(e.loaded,e.total)}),s.onreadystatechange=function(){if(4===s.readyState){var i=JSON.parse(s.responseText||"{}");i.filename=t.uniqueValue,i.uploadMethod=Ct["s"]?Ct["s"].QINIU:"",200===s.status?n.onCompleted(i):zn.length?kn[zn[0][0]](e,t,n,r):n.onError("upload fail")}},t.isChunk&&(i=function(e,t){var n="";return Bn(t,(function(e,t){"token"!==e&&(n+=(n?"&":"")+encodeURIComponent(e)+"="+encodeURIComponent(t))})),n&&(e+=(e.indexOf("?")>0?"&":"?")+n),e}(i+="/mkblk/"+e.size,t.multi_parmas)),s.open(t.method,i,!0),n.onOpen(s),t.stream&&s.setRequestHeader("authorization","UpToken "+t.multi_parmas.token),Bn(t.headers,(function(e,t){s.setRequestHeader(e,t)})),s.send(e)},baidu:function(e,t,n,r){if(r.size>Gn)throw new Error("the file size is over 5GB!");var i=t||{};t=t||On;var o=new XMLHttpRequest,s=Vn();if(i.uploadHost.bos||i.bosUploadPath){var a=s+zn[0][1]+i.bosUploadPath;zn.shift();var c=i.bosHeader||{},u={filename:t.uniqueValue||r.uniqueName,name:r.name,downloadUrl:a,isBosRes:!0};o.upload&&t.support_options&&(o.upload.onprogress=function(e){n.onProgress(e.loaded,e.total,!0)}),o.onreadystatechange=function(){4===o.readyState&&(JSON.parse(o.responseText||"{}").filename=t.uniqueValue,200===o.status?n.onCompleted(u,!0):zn.length?kn[zn[0][0]](e,t,n,r):n.onError("upload fail"))},o.open(t.method,a,!0),o.setRequestHeader("authorization",c.bosToken),o.setRequestHeader("x-bce-date",c.bosDate),o.send(r)}},aliyun:function(e,t,n,r){if(r.size>Gn)throw new Error("the file size is over 5GB!");var i=new FormData;i.set("file",e.get("file")),i.set("key",e.get("key")),i.set("token",e.get("token"));var o=zn[0][1];zn.shift(),e=e||wn,t=(t=t||{})||On;var s=new XMLHttpRequest,a=Vn()+t.ossBucketName+"."+o;s.upload&&t.support_options&&(s.upload.onprogress=function(e){n.onProgress(e.loaded,e.total)}),s.onreadystatechange=function(){if(4===s.readyState){var e=JSON.parse(s.responseText||"{}");e.name=t.uniqueValue,e.filename=t.uploadFileName,e.uploadMethod=Ct["s"]?Ct["s"].ALI:"",200===s.status?n.onCompleted(e):zn.length?kn[zn[0][0]](i,t,n,r):n.onError("upload fail")}},s.open(t.method,a,!0),console.log("ali:url",a);var c=t.aliHeader||{};e.set("OSSAccessKeyId",c.osskeyId),e.set("policy",c.ossPolicy),e.set("Signature",c.ossSign),e.set("success_action_status",200),e.delete("key"),e.append("key",t.uploadFileName),e.delete("file"),e.append("file",r),s.send(e)},s3:function(e,t,n,r){var i=new FormData,o=new XMLHttpRequest,s=Vn(),a=t.contentDisposition,c=zn[0][1],u=s+t.s3BucketName+"."+c;console.log("uploadS3:url",u),zn.shift(),o.upload&&t.support_options&&(o.upload.onprogress=function(e){n.onProgress(e.loaded,e.total)}),o.onreadystatechange=function(){if(4===o.readyState){var i=JSON.parse(o.responseText||"{}");if(i.name=t.uniqueValue,i.filename=t.uploadFileName,i.uploadMethod=Ct["s"].AWS,200===o.status||204===o.status)n.onCompleted(i);else if(zn.length){var s=new FormData;s.set("file",e.get("file")),s.set("key",e.get("key")),s.set("token",e.get("token")),kn[zn[0][0]](s,t,n,r)}else n.onError("upload fail")}},o.open(t.method,u,!0);var l=t?t.s3Header:{},f=r&&r.type;a?i.set("Content-Disposition",a+";"):i.set("Content-Disposition","text/html"===f?"inline;":"attachment;"),i.set("Content-Type",f),i.set("x-amz-credential",l.s3Credential),i.set("x-amz-algorithm",l.s3Algorithm),i.set("x-amz-date",l.s3Date),i.set("policy",l.s3Policy),i.set("x-amz-signature",l.s3Signature),i.set("key",t.uploadFileName),i.set("file",r),o.send(i)},stc:function(e,t,n,r){var i=new XMLHttpRequest,o=t.contentDisposition,s="https://"+zn[0][1]+"/"+t.stcBucketName+"/"+t.uploadFileName;zn.shift(),i.upload&&t.support_options&&(i.upload.onprogress=function(e){n.onProgress(e.loaded,e.total)}),i.onreadystatechange=function(){if(4===i.readyState){var o=JSON.parse(i.responseText||"{}");if(o.name=t.uniqueValue,o.filename=t.uploadFileName,o.uploadMethod=Ct["s"]?Ct["s"].STC:"",200===i.status||204===i.status)n.onCompleted(o);else if(zn.length){var s=new FormData;s.set("file",e.get("file")),s.set("key",e.get("key")),s.set("token",e.get("token")),kn[zn[0][0]](s,t,n,r)}else n.onError("upload fail")}},i.open("PUT",s,!0);var a=t?t.stcHeader:{};i.setRequestHeader("Content-Type",r.type),o?i.setRequestHeader("Content-Disposition",o+";"):i.setRequestHeader("Content-Disposition","text/html"===r.type?"inline;":"attachment;"),i.setRequestHeader("Authorization",a.stcAuthorization),i.setRequestHeader("x-amz-content-sha256",a.stcContentSha256),i.setRequestHeader("x-amz-date",a.stcDate),i.send(r)}}),zn=[],Gn=5368709120;function Bn(e,t){for(var n in e)t(n,e[n])}function Vn(){var e="https://";return"http:"!==location.protocol&&"file:"!==location.protocol||(e="http://"),e}function Yn(e,t,n){var r,i,o=e&&e.type||"text/plain",s=o.indexOf("image")>-1?1:4,a=t.contentDisposition,c=Math.ceil(e.size/t.stc_chunk_size),u=t&&JSON.parse(t.ossConfig?t.ossConfig:"");Array.isArray(u)||(u=[]);var l=u.find((function(e){return Object.keys(e).includes("stc")})),f="uploads";nn.imClient.context.getFileToken(s,r,"POST",f).then((function(s){r=s.fileName,i="https://"+l.stc+"/"+t.stcBucketName+"/"+r,console.log("uploadStcMultipart:url",i);var u=new XMLHttpRequest;u.open("POST",i+"?"+f,!0),a?u.setRequestHeader("Content-Disposition",a+";"):u.setRequestHeader("Content-Disposition","text/html"===e.type?"inline;":"attachment;"),u.setRequestHeader("Authorization",s&&s.stcAuthorization),u.setRequestHeader("x-amz-content-sha256",s&&s.stcContentSha256),u.setRequestHeader("x-amz-date",s&&s.stcDate),u.setRequestHeader("Content-Type",o),u.send(),u.onreadystatechange=function(){if(4===u.readyState){var e=u.response.match(/(?:<UploadId>)(\S*?)(?:<\/UploadId>)/);console.log("uploadId",e),200===u.status||204===u.status?function(e){for(var t=[],n=1;n<=c;n++)t.push(g(e,n));p(e,t)}(Array.isArray(e)&&e[1]):n.onError("uploadStcMultipart:did not get uploadId")}}}),(function(e){n.onError("uploadStcMultipart:"+e)}));var h=[],d=new Map;function p(a,u){u&&Array.isArray(u)&&0!==u.length&&Promise.all(u).then((function(){var u="uploadId="+a;if(d.size===c)nn.imClient.context.getFileToken(s,r,"POST",u).then((function(r){console.log("onSuccess",r),console.log("onSuccess:uploadId",a);var s=new XMLHttpRequest;s.open("POST",i+"?"+u,!0),s.setRequestHeader("Authorization",r&&r.stcAuthorization),s.setRequestHeader("x-amz-content-sha256",r&&r.stcContentSha256),s.setRequestHeader("x-amz-date",r&&r.stcDate),s.setRequestHeader("Content-Type",o);var c="<CompleteMultipartUpload xmlns='http://s3.amazonaws.com/doc/2006-03-01/'>",l=Array.from(d.keys()||[]).sort((function(e,t){return e-t}));console.log("keys",l),l.forEach((function(e){c+="<Part><ETag>".concat(d.get(e),"</ETag><PartNumber>").concat(e,"</PartNumber></Part>")})),c+="</CompleteMultipartUpload>",s.send(c),console.log("xml",c),s.onreadystatechange=function(){if(4===s.readyState)if(200===s.status||204===s.status){var r={name:e.name,filename:t.uploadFileName,uploadMethod:Ct["s"].STC};n.onCompleted(r)}else n.onError("uploadStcMultipart:upload does not end")}}),(function(e){n.onError("uploadStcMultipart:"+e)}));else{for(var l=[],f=0,v=h;f<v.length;f++){var y=v[f];l.push(g(a,y))}p(a,l)}}),(function(e){console.error(e),n.onError("uploadStcMultipart: chunkFiles upload failed and those will reupload");for(var t=[],r=0,i=h;r<i.length;r++){var o=i[r];t.push(g(a,o))}p(a,t)}))}function g(n,a){return new Promise((function(c,u){var l="partNumber="+a+"&uploadId="+n;nn.imClient.context.getFileToken(s,r,"PUT",l).then((function(n){console.log("signature "+a+" onSuccess",n);var r=e&&e.slice((a-1)*t.stc_chunk_size,a*t.stc_chunk_size);console.log("fileChunk:size",r.size);var s=new XMLHttpRequest;s.open("PUT",i+"?"+l,!0),s.setRequestHeader("Authorization",n&&n.stcAuthorization),s.setRequestHeader("x-amz-content-sha256",n&&n.stcContentSha256),s.setRequestHeader("x-amz-date",n&&n.stcDate),s.setRequestHeader("Content-Type",o),s.send(r),s.onreadystatechange=function(){if(4===s.readyState)if(200===s.status||204===s.status){var e=s.getResponseHeader("etag");console.log("etag:"+a,e),d.set(a,e),c(e)}else h.includes(a)||h.push(a),u(a)}}),(function(e){console.log("getETags:签名验证失败"),h.includes(a)||h.push(a),u(a)}))}))}}var Hn={form:function(e,t){var n=new FormData;if(t.unique_key){var r=e.name.substr(e.name.lastIndexOf(".")),i=Fn()+r;n.append(t.unique_key,i),t.uniqueValue=i}return n.append(t.file_data_name,e),Qn(t.multi_parmas,(function(e,t){n.append(e,t)})),n},json:function(e,t){var n={};if(t.unique_key){var r=e.name.substr(e.name.lastIndexOf(".")),i=Fn()+r;n[t.unique_key]=i,t.uniqueValue=i}return n[t.file_data_name]=e,Qn(t.multi_parmas,(function(e,t){n[e]=t})),JSON.stringify(n)},data:function(e,t){return e}};function Fn(){var e=(new Date).getTime();return"xxxxxx4xxxyxxxxxxx".replace(/[xy]/g,(function(t){var n=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"===t?n:3&n|8).toString(16)}))}function Qn(e,t){for(var n in e)t(n,e[n])}var $n,Kn,Wn,qn=0,Zn=function(){function e(e){this.options=function(e){var t={domain:"",method:"POST",file_data_name:"file",unique_key:"key",base64_size:4194304,chunk_size:4194304,bos_chunk_size:4294967296,stc_chunk_size:10485760,headers:{},multi_parmas:{},query:{},support_options:!0,data:Hn.form,genUId:Fn};if(!e||!e.domain)throw new Error("domain is null");for(var n in e)t[n]=e[n];return t}(e)}return e.prototype.setOptions=function(e){var t=this;Qn(e,(function(e,n){t.options[e]=n}))},e.prototype.upload=function(e,t){if(e){var n=this;!function(e,t,n){if(wn=e,On=t,zn=[],t.ossConfig){var r,i,o=JSON.parse(t.ossConfig),s="",a=[];o.forEach((function(e){var t=Number(e.p)-1;for(var n in e)"aliyun"===n&&(s=e[n]),"s3"===n&&(r=e[n]),"stc"===n&&(i=e[n]),"p"!==n&&(a[t]=[n,e[n]])})),a.forEach((function(e){e&&zn.push(e)})),o.length!==zn.length&&(zn=[["qiniu",t.domain],["baidu",t.uploadHost.bos],["aliyun",s],["s3",r],["stc",i]])}else zn=[["qiniu",t.domain],["baidu",t.uploadHost.bos]];var c;if(t.ossConfig){var u=t&&JSON.parse(t.ossConfig);Array.isArray(u)||(u=[]),c=u.find((function(e){return Object.keys(e).includes("stc")}))}if(c&&1===parseInt(c.p)&&e.size>=4194304)Yn(e,t,n);else{var l=t.data(e,t);kn[zn[0][0]](l,t,n,e)}}(e,this.options,{onProgress:function(e,n,r){$n=e,r?$n=qn+e/n*(n-qn):qn=$n,t.onProgress($n,n)},onCompleted:function(e){t.onCompleted(e)},onError:function(e){t.onError(e)},onOpen:function(e){n.xhr=e}})}else t.onError("upload file is null.")},e.prototype.cancel=function(){this.xhr&&this.xhr.abort()},e}(),Jn={init:function(e){return new Zn(e)},dataType:Hn,resize:function(e,t,n){e.type;var r=document.createElement("canvas"),i=new FileReader;i.readAsDataURL(e),i.onload=function(e){var i=e.target.result,o=new Image;o.src=i;var s=o.width,a=o.height,c=function(e,t){var n=1,r=e.width,i=t.maxWidth||0;i>0&&r>i&&(n=i/r);var o=e.height,s=t.maxHeight||0;if(s>0&&o>s){var a=s/o;n=Math.min(n,a)}var c=t.maxSize||0,u=Math.ceil(e.size/1e3);if(u>c){var l=c/u;n=Math.min(n,l)}return n}({width:s,height:a,size:e.total},t),u=i;c<1&&(u=function(e,t,n){return r.width=t,r.height=n,r.getContext("2d").drawImage(e,0,0,t,n),r.toDataURL("image/jpg")}(o,s*c,a*c)),n(u)}}},Xn=function(e,t,n){var r=document.createElement("canvas"),i=r.getContext("2d"),o=new Image,s="string"==typeof e;o.onload=function(s){var a=function(e,t,n){var r,i,o,s=e<t,a=0,c=0;return(s?t/e:e/t)>n.scale?(s?(i=100,c=((o=t/(r=e/100))-n.maxHeight)/2):(o=100,a=((i=e/(r=t/100))-n.maxWidth)/2),{w:i,h:o,x:-a,y:-c}):(s?(r=t/n.maxHeight,o=n.maxHeight,i=e/r):(r=e/n.maxWidth,i=n.maxWidth,o=t/r),{w:i,h:o,x:-a,y:-c})}(o.width,o.height,t);r.width=a.w>t.maxWidth?t.maxWidth:a.w,r.height=a.h>t.maxHeight?t.maxHeight:a.h,i.drawImage(o,a.x,a.y,a.w,a.h);var c=r.toDataURL("string"==typeof e?"image/jpg":e.type,t.quality);c=c.replace(/data:image\/[^;]+;base64,/,""),n(c)},o.src=s?"data:image/jpg;base64,"+e:function(e){var t=window.URL||window.webkitURL;return t?t.createObjectURL(e):""}(e)},er=function(e,t){var n=e.file,r=e.compress;Xn(n,r,t)},tr=function(e,t){if(e.getToken)e.getToken((function(n,r){r=r||{},e.multi_parmas||(e.multi_parmas={}),e.multi_parmas.token=n,e.uploadHost||(e.uploadHost={}),e.uploadHost.bos=r.bos,e.ossConfig=r.ossConfig,e.bosHeader||(e.bosHeader={}),e.bosHeader.bosDate=r.bosDate,e.bosHeader.bosToken=r.bosToken,e.bosUploadPath=r.path,e.aliHeader={},e.aliHeader.osskeyId=r.osskeyId,e.aliHeader.ossPolicy=r.ossPolicy,e.aliHeader.ossSign=r.ossSign,e.ossBucketName=r.ossBucketName,e.uploadFileName=r.fileName,e.s3Header={},e.s3Header.s3Credential=r.s3Credential,e.s3Header.s3Algorithm=r.s3Algorithm,e.s3Header.s3Date=r.s3Date,e.s3Header.s3Policy=r.s3Policy,e.s3Header.s3Signature=r.s3Signature,e.s3BucketName=r.s3BucketName,e.stcHeader={},e.stcHeader.stcAuthorization=r.stcAuthorization,e.stcHeader.stcContentSha256=r.stcContentSha256,e.stcHeader.stcDate=r.stcDate,e.stcBucketName=r.stcBucketName,e.headers||(e.headers={}),e.base64&&(e.headers["Content-type"]="application/octet-stream",e.headers.Authorization="UpToken "+n),console.log("data",r);var i=Jn.init(e);t(i)}));else{e.headers||(e.headers={}),e.base64&&(e.headers["Content-type"]="application/octet-stream");var n=Jn.init(e);t(n)}},nr=function(e,t,n){t.upload(e.file,{onError:function(e){n.onError(e)},onProgress:function(e,t){n.onProgress(e,t)},onCompleted:function(t){t.filename||(t.filename=t.hash);var r=e.compressThumbnail||er;e.compress?r(e,(function(e){t.thumbnail=e,n.onCompleted(t)})):n.onCompleted(t)}})},rr=function(){function e(e){this.instance=e}return e.prototype.upload=function(e,t){nr({file:e},this.instance,t)},e.prototype.cancel=function(){this.instance.cancel()},e}(),ir=function(){function e(e,t){this.instance=e,this.cfg=t}return e.prototype.upload=function(e,t){var n={file:e,compress:this.cfg};nr(n,this.instance,t)},e.prototype.cancel=function(){this.instance.cancel()},e}(),or=function(e,t){tr(e,(function(n){var r,i,o,s,a={maxHeight:(null===(r=e.thumbnailConfig)||void 0===r?void 0:r.maxHeight)||160,maxWidth:(null===(i=e.thumbnailConfig)||void 0===i?void 0:i.maxWidth)||160,quality:(null===(o=e.thumbnailConfig)||void 0===o?void 0:o.quality)||.5,scale:(null===(s=e.thumbnailConfig)||void 0===s?void 0:s.scale)||2.4},c=new ir(n,a);t(c)}))},sr=function(e,t){tr(e,(function(e){var n=new rr(e);t(n)}))},ar=or;function cr(e){return Kn=Kn||new AudioContext,new Promise((function(t,n){Kn.decodeAudioData(e,(function(e){t({duration:e.duration,length:e.length})}),n)}))}function ur(e,t,n,r,i){return Object(Ct["w"])("fileType",e,Ct["B"],!0),Object(Ct["w"])("filename",t,Ct["b"].STRING),Object(Ct["w"])("saveName",n,Ct["b"].STRING),Object(Ct["w"])("serverType",i,Ct["b"].NUMBER),new Promise((function(o){nn.imClient.context.getFileUrl(e,t,n,r,i).then((function(e){o({code:Ct["f"].SUCCESS,data:e})})).catch((function(e){o({code:e})}))}))}function lr(e,t,n){return At(this,void 0,void 0,(function(){var r,i,o,s,a,c,u,l,f,h,d;return St(this,(function(p){switch(p.label){case 0:return n=n||{},t instanceof Nn==0?(bt.warn("send message fail -> message parameter is not an instance of BaseMessage"),[2,rn.ILLGAL_PARAMS]):(Object(Ct["w"])("conversation",e,Ct["b"].OBJECT,!0),r=e.conversationType,i=e.targetId,o=e.channelId,Object(Ct["w"])("conversation.targetId",i,Ct["b"].STRING,!0),Object(Ct["w"])("conversation.conversationType",r,Ct["b"].NUMBER),Object(Ct["w"])("conversation.channelId",o,Ct["b"].CHANNEL_ID),Object(Ct["w"])("options.isStatusMessage",null==n?void 0:n.isStatusMessage,Ct["b"].BOOLEAN),Object(Ct["w"])("options.disableNotification",null==n?void 0:n.disableNotification,Ct["b"].BOOLEAN),Object(Ct["w"])("options.pushContent",null==n?void 0:n.pushContent,Ct["b"].STRING),Object(Ct["w"])("options.pushData",null==n?void 0:n.pushData,Ct["b"].STRING),Object(Ct["w"])("options.isMentioned",null==n?void 0:n.isMentioned,Ct["b"].BOOLEAN),Object(Ct["w"])("options.mentionedType",null==n?void 0:n.mentionedType,Ct["b"].NUMBER),Object(Ct["w"])("options.mentionedUserIdList",null==n?void 0:n.mentionedUserIdList,Ct["b"].ARRAY),Object(Ct["w"])("options.directionalUserIdList",null==n?void 0:n.directionalUserIdList,Ct["b"].ARRAY),Object(Ct["w"])("options.isVoipPush",null==n?void 0:n.isVoipPush,Ct["b"].BOOLEAN),Object(Ct["w"])("options.canIncludeExpansion",null==n?void 0:n.canIncludeExpansion,Ct["b"].BOOLEAN),Object(Ct["w"])("options.expansion",null==n?void 0:n.expansion,Ct["b"].OBJECT),Object(Ct["w"])("options.pushConfig",null==n?void 0:n.pushConfig,Ct["b"].OBJECT),s="conversationType:"+r+",targetId:"+i,bt.debug("send message ->"+s),(a=Object.assign(n,t)).channelId=o||"",c=Ct["C"].ID(),Ct["C"].info(Ct["j"].A_SEND_MSG_T,{messageType:t.messageType,conversationType:r,targetId:i,channelId:o},{traceId:c}),[4,nn.imClient.context.sendMessage(r,i,a,void 0,c)]);case 1:return u=p.sent(),l=u.code,f=u.data,(l===Ct["f"].SUCCESS?Ct["C"].info:Ct["C"].warn)(Ct["j"].A_SEND_MSG_R,{code:l,messageUId:f?f.messageUId:""},{traceId:c}),l===Ct["f"].SUCCESS?(h=Xt(f),[2,{code:l,data:h}]):(bt.warn("send message fail ->"+l+":"+on[l]+","+s),d={isMentioned:!!n.isMentioned,content:t.content,messageType:t.messageType,isPersited:t.isPersited||!1,isCounted:t.isCounted||!1,disableNotification:!!(null==n?void 0:n.disableNotification),canIncludeExpansion:!!(null==n?void 0:n.canIncludeExpansion),expansion:(null==n?void 0:n.expansion)||null,conversationType:e.conversationType,targetId:e.targetId,channelId:e.channelId,senderUserId:nn.imClient.context.getCurrentUserId(),messageUId:"",messageDirection:Ct["m"].SEND,sentTime:(null==f?void 0:f.sentTime)||0,receivedTime:0,isStatusMessage:n.isStatusMessage||!1,receivedStatus:Ct["r"].UNREAD,isOffLineMessage:!1},r!==Ct["e"].ULTRA_GROUP&&(d.isOffLineMessage=!1),[2,{code:l,msg:on[l],data:Xt(d)}])}}))}))}function fr(e,t){return function(n,r,i,o){Object(Ct["w"])("sendOptions.contentDisposition",null==o?void 0:o.contentDisposition,(function(e){return["inline","attachment"].includes(e)}));var s={contentDisposition:null==o?void 0:o.contentDisposition};if(o&&"thumbnailConfig"in o){var a=null==o?void 0:o.thumbnailConfig;Object(Ct["w"])("sendOptions.maxHeight",null==a?void 0:a.maxHeight,Ct["b"].NUMBER),Object(Ct["w"])("sendOptions.maxWidth",null==a?void 0:a.maxWidth,Ct["b"].NUMBER),Object(Ct["w"])("sendOptions.quality",null==a?void 0:a.quality,Ct["b"].NUMBER),Object(Ct["w"])("sendOptions.scale",null==a?void 0:a.scale,Ct["b"].NUMBER),s.thumbnailConfig=a}return new Promise((function(a){var c=Ct["C"].ID();Ct["C"].info(Ct["j"].L_MEDIA_UPLOAD_T,{filesize:r.file.size,type:e},{traceId:c}),function(e,t,n,r){var i,o=this;if(void 0===t&&(t=Ct["h"].FILE),i=t===Ct["h"].IMAGE?Ct["h"].IMAGE:Ct["h"].FILE,!Wn){Wn="upload.qiniup.com";var s=nn.imClient.context.getInfoFromCache();if(s&&s.ossConfig)try{var a=JSON.parse(s.ossConfig).find((function(e){return void 0!==e.qiniu}));a&&(Wn=a.qiniu)}catch(e){}}var c=Et({domain:Wn,getToken:function(e){nn.imClient.context.getFileToken(i).then((function(t){e(t.token,t)})).catch((function(e){n.onFail(e)}))}},r);(i===Ct["h"].IMAGE?ar:sr)(c,(function(r){r.upload(e,{onProgress:function(e,t){var r,i=Math.floor(e/t*100);null===(r=n.onProgress)||void 0===r||r.call(n,i)},onCompleted:function(r){return At(o,void 0,void 0,(function(){var o=this;return St(this,(function(s){return ur(i,r.filename,r.name,r,r.uploadMethod).then((function(s){return At(o,void 0,void 0,(function(){var o,a;return St(this,(function(c){return 0!==s.code?(n.onFail(s),[2]):((o=s.data).type=e.type,o.name=r.name||r.filename,t===Ct["h"].AUDIO?("function"==typeof e.arrayBuffer?e.arrayBuffer().then(cr).then((function(e){Object.assign(o,e),n.onSuccess(o)}),(function(){n.onSuccess(o)})):((a=new FileReader).onload=function(){a.result?cr(a.result).then((function(e){Object.assign(o,e),n.onSuccess(o)}),(function(){n.onSuccess(o)})):n.onSuccess(o)},a.onerror=function(){o.duration=0,n.onSuccess(o)},a.readAsArrayBuffer(e)),[2]):(i===Ct["h"].IMAGE&&(o.thumbnail=r.thumbnail),n.onSuccess(o),[2]))}))}))})).catch((function(e){n.onFail(e)})),[2]}))}))},onError:function(e){n.onFail(e)}})}))}(r.file,e,{onProgress:null==i?void 0:i.onProgress,onSuccess:function(e){var s,u=(null===(s=null==i?void 0:i.onComplete)||void 0===s?void 0:s.call(i,{url:e.downloadUrl}))||t(e,r);e&&e.downloadUrl&&Ct["C"].info(Ct["j"].L_MEDIA_UPLOAD_R,{downurl:e.downloadUrl,code:Ct["f"].SUCCESS},{traceId:c}),lr(n,u,o).then(a)},onFail:function(e){Ct["C"].warn(Ct["j"].L_MEDIA_UPLOAD_R,{code:Ct["f"].UPLOAD_FILE_FAILED},{traceId:c}),a({code:Ct["f"].UPLOAD_FILE_FAILED,msg:e||Ct["f"][Ct["f"].UPLOAD_FILE_FAILED]})}},s)}))}}Jn.dataType;var hr=fr(Ct["h"].FILE,(function(e,t){return new Pn({name:e.name,size:t.file.size,type:t.file.type,fileUrl:e.downloadUrl,user:t.user,extra:t.extra})})),dr=fr(Ct["h"].IMAGE,(function(e,t){return new Rn({content:e.thumbnail,imageUri:e.downloadUrl,user:t.user,extra:t.extra})}));fr(Ct["h"].AUDIO,(function(e,t){return new Dn({remoteUrl:e.downloadUrl,duration:e.duration,type:e.type,user:t.user,extra:t.extra})})),fr(Ct["h"].SIGHT,(function(e,t){return new Ln({sightUrl:e.downloadUrl,content:t.thumbnail,duration:t.duration,size:t.file.size||e.size,name:t.name||e.name,user:t.user,extra:t.extra})}));function pr(e,t){return At(this,void 0,void 0,(function(){var n,r,i,o,s,a;return St(this,(function(c){switch(c.label){case 0:return Object(Ct["w"])("options.timestamp",null==t?void 0:t.timestamp,Ct["b"].NUMBER),Object(Ct["w"])("options.count",null==t?void 0:t.count,Ct["b"].NUMBER),Object(Ct["w"])("options.order",null==t?void 0:t.order,(function(e){return 0===e||1===e})),Object(Ct["w"])("conversation.channelId",null==e?void 0:e.channelId,Ct["b"].CHANNEL_ID),n="conversationType:"+e.conversationType+",targetId:"+e.targetId,bt.debug("get history message ->"+n),r=Ct["C"].ID(),Ct["C"].info(Ct["j"].A_GET_HISTORY_MSG_T,{targetId:e.targetId,conversationType:e.conversationType,channelId:e.channelId,timestamp:null==t?void 0:t.timestamp,count:null==t?void 0:t.count},{traceId:r}),[4,nn.imClient.context.getHistoryMessage(e.conversationType,e.targetId,null==t?void 0:t.timestamp,null==t?void 0:t.count,null==t?void 0:t.order,null==e?void 0:e.channelId,"",r)];case 1:return i=c.sent(),o=i.code,s=i.data,o===Ct["f"].SUCCESS&&s?(a=s.list.map((function(e){return Xt(e)})),Ct["C"].info(Ct["j"].A_GET_HISTORY_MSG_R,{code:o,messageLength:a.length},{traceId:r}),[2,{code:o,data:{list:a,hasMore:s.hasMore}}]):(Ct["C"].warn(Ct["j"].A_GET_HISTORY_MSG_R,{code:o,messageUIds:""},{traceId:r}),bt.warn("get history message fail ->"+o+":"+on[o]+","+n),[2,{code:o,msg:on[o]}])}}))}))}function gr(e,t,n,r){return At(this,void 0,void 0,(function(){var i,o,s,a,c;return St(this,(function(u){switch(u.label){case 0:return i={targetId:e,conversationType:Ct["e"].PRIVATE,channelId:r},o=new Nn("RC:ReadNtf",{messageUId:t,lastMessageSendTime:n,type:1}),[4,lr(i,o)];case 1:return s=u.sent(),a=s.code,c=s.msg,0===a?[2,{code:a}]:[2,{code:a,msg:c}]}}))}))}function vr(e,t,n){return At(this,void 0,void 0,(function(){var r,i,o,s,a,c,u;return St(this,(function(l){switch(l.label){case 0:return Object(Ct["w"])("targetId",e,Ct["b"].STRING,!0),Object(Ct["w"])("messageList",t,Ct["b"].OBJECT,!0),Object(Ct["w"])("channelId",n,Ct["b"].CHANNEL_ID),Object.keys(t).forEach((function(e){Object(Ct["w"])(e,t[e],Ct["b"].ARRAY)})),r={targetId:e,conversationType:Ct["e"].GROUP,channelId:n},o=nn.imClient.context.getInfoFromCache(),0!==(s=(null==o?void 0:o.grpRRVer)||0)?[3,2]:(a=new Nn("RC:RRRspMsg",{receiptMessageDic:t}),[4,lr(r,a)]);case 1:return i=l.sent(),[3,4];case 2:return 1!==s?[3,4]:(c=[],Object.keys(t).forEach((function(e){t[e].forEach((function(e){-1===c.indexOf(e)&&c.push(e)}))})),c.length?[4,nn.imClient.context.sendReadReceiptMessage(e,c,n)]:(bt.warn("Error in parameter messageList."),[2,{code:Ct["f"].PARAMETER_ERROR}]));case 3:i=l.sent(),l.label=4;case 4:return(u=i.code)===Ct["f"].SUCCESS?[2,{code:u}]:(bt.warn("send read receipt message fail ->"+u+":"+on[u]),[2,{code:u,msg:on[u]}])}}))}))}function yr(e,t){return At(this,void 0,void 0,(function(){var n,r,i,o,s;return St(this,(function(a){switch(a.label){case 0:return Object(Ct["w"])("options.messageUId",t.messageUId,Ct["b"].STRING,!0),Object(Ct["w"])("options.sentTime",t.sentTime,Ct["b"].NUMBER,!0),Object(Ct["w"])("options.disableNotification",null==t?void 0:t.disableNotification,Ct["b"].BOOLEAN),Object(Ct["w"])("options.pushConfig",null==t?void 0:t.pushConfig,Ct["b"].OBJECT),Object(Ct["w"])("conversation.channelId",null==e?void 0:e.channelId,Ct["b"].CHANNEL_ID),n={user:t.user,channelId:e.channelId||"",disableNotification:null==t?void 0:t.disableNotification,pushConfig:null==t?void 0:t.pushConfig,extra:t.extra,isDelete:t.isDelete},r="conversationType:"+e.conversationType+",targetId:"+e.targetId+",messageUId:"+t.messageUId,bt.debug("recall message ->"+r),[4,nn.imClient.context.recallMessage(e.conversationType,e.targetId,t.messageUId,t.sentTime,n)];case 1:return i=a.sent(),o=i.code,s=i.data,o===Ct["f"].SUCCESS&&s?[2,{code:o,data:Xt(s)}]:o===Ct["f"].SUCCESS?[2,{code:o}]:(bt.warn("recall message fail ->"+o+":"+on[o]+","+r),[2,{code:o,msg:on[o]}])}}))}))}function mr(e,t){return At(this,void 0,void 0,(function(){var n,r;return St(this,(function(i){switch(i.label){case 0:return Object(Ct["w"])("options",t,(function(e){return Object(Ct["x"])(e)&&e.length}),!0),t.forEach((function(e){Object(Ct["w"])("options.messageUId",e.messageUId,Ct["b"].STRING,!0),Object(Ct["w"])("options.sentTime",e.sentTime,Ct["b"].NUMBER,!0),Object(Ct["w"])("options.messageDirection",e.messageDirection,(function(e){return 1===e||2===e}),!0)})),Object(Ct["w"])("conversation.channelId",null==e?void 0:e.channelId,Ct["b"].CHANNEL_ID),n="conversationType:"+e.conversationType+",targetId:"+e.targetId,bt.debug("delete messages ->"+n),[4,nn.imClient.context.deleteRemoteMessage(e.conversationType,e.targetId,t,e.channelId)];case 1:return(r=i.sent())!==Ct["f"].SUCCESS?(bt.warn("delete message fail ->"+r+":"+on[r]+","+n),[2,{code:r,msg:on[r]}]):[2,{code:Ct["f"].SUCCESS}]}}))}))}function Ir(e,t){return At(this,void 0,void 0,(function(){var n,r,i,o,s,a;return St(this,(function(c){switch(c.label){case 0:return Object(Ct["w"])("typingContentType",t,Ct["b"].STRING,!0),n="conversationType:"+e.conversationType+",targetId:"+e.targetId,bt.debug("send typing status message ->"+n),r={messageType:"RC:TypSts",content:{typingContentType:t},isStatusMessage:!0,channelId:e.channelId},i=Ct["C"].ID(),Ct["C"].info(Ct["j"].A_SEND_MSG_T,{messageType:r.messageType,conversationType:e.conversationType,targetId:e.targetId,channelId:e.channelId},{traceId:i}),[4,nn.imClient.context.sendMessage(e.conversationType,e.targetId,r,void 0,i)];case 1:return o=c.sent(),s=o.code,a=o.data,(s===Ct["f"].SUCCESS?Ct["C"].info:Ct["C"].warn)(Ct["j"].A_SEND_MSG_R,{code:s,messageUId:a?a.messageUId:""},{traceId:i}),s===Ct["f"].SUCCESS?[2,{code:s,data:Xt(a)}]:(bt.warn("send typing status message fail ->"+s+":"+on[s]+","+n),[2,{code:s,msg:on[s]}])}}))}))}function _r(e,t,n,r,i){return Object(Ct["w"])("messageType",e,Ct["b"].STRING,!0),Object(Ct["w"])("isPersited",t,Ct["b"].BOOLEAN,!0),Object(Ct["w"])("isCounted",n,Ct["b"].BOOLEAN,!0),Object(Ct["w"])("isStatusMessage",i,Ct["b"].BOOLEAN,!1),Ct["C"].info(Ct["j"].A_REGTYP_O,{messageType:e,isCounted:n,isStatusMessage:i,isPersited:t}),nn.imClient.context.registerMessageType(e,t,n,r,i),bn(e,t,n)}fr(Ct["h"].COMBINE_HTML,(function(e,t){return new xn({remoteUrl:e.downloadUrl,nameList:t.nameList,summaryList:t.summaryList,conversationType:t.conversationType,user:t.user,extra:t.extra})}));var Tr,Cr,Mr,Er={TEXT:"RC:TxtMsg",VOICE:"RC:VcMsg",HQ_VOICE:"RC:HQVCMsg",IMAGE:"RC:ImgMsg",GIF:"RC:GIFMsg",RICH_CONTENT:"RC:ImgTextMsg",LOCATION:"RC:LBSMsg",FILE:"RC:FileMsg",SIGHT:"RC:SightMsg",COMBINE:"RC:CombineMsg",CHRM_KV_NOTIFY:"RC:chrmKVNotiMsg",LOG_COMMAND:"RC:LogCmdMsg",EXPANSION_NOTIFY:"RC:MsgExMsg",REFERENCE:"RC:ReferenceMsg",RECALL_MESSAGE_TYPE:"RC:RcCmd"};function Ar(e){return Ar="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},Ar(e)}function Sr(e){var t="function"===typeof Map?new Map:void 0;return Sr=function(e){if(null===e||!br(e))return e;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return Nr(e,arguments,kr(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Lr(n,e)},Sr(e)}function Nr(e,t,n){return Nr=jr()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=Function.bind.apply(e,r),o=new i;return n&&Lr(o,n.prototype),o},Nr.apply(null,arguments)}function br(e){return-1!==Function.toString.call(e).indexOf("[native code]")}function wr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Or(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wr(Object(n),!0).forEach((function(t){Rr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Rr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dr(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Lr(e,t)}function Lr(e,t){return Lr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Lr(e,t)}function Ur(e){var t=jr();return function(){var n,r=kr(e);if(t){var i=kr(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return xr(this,n)}}function xr(e,t){if(t&&("object"===Ar(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Pr(e)}function Pr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function jr(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function kr(e){return kr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},kr(e)}function zr(e){return Yr(e)||Vr(e)||Br(e)||Gr()}function Gr(){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 Br(e,t){if(e){if("string"===typeof e)return Hr(e,t);var n=Object.prototype.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)?Hr(e,t):void 0}}function Vr(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function Yr(e){if(Array.isArray(e))return Hr(e)}function Hr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Fr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qr(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,r.key,r)}}function $r(e,t,n){return t&&Qr(e.prototype,t),n&&Qr(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}Ct["t"].add("imlib-next","5.3.4"),n.d(t,"a",(function(){return oc})),function(e){e["INIT"]="INIT",e["CONNECTED"]="CONNECTED",e["MESSAGES"]="MESSAGES",e["CONVERSATION"]="conversation",e["UPDATE_CONVERSATION"]="udpate_conversation",e["TYPING_STATUS"]="typing_status",e["PULL_OFFLINE_MESSAGE_FINISHED"]="pull_offline_message_finished",e["READ_RECEIPT_RECEIVED"]="read_receipt_received",e["MESSAGE_RECEIPT_REQUEST"]="message_receipt_request",e["MESSAGE_RECEIPT_RESPONSE"]="message_receipt_response",e["SWITCH_CONVERSATION"]="switch_conversation",e["REFERENCE_MESSAGE"]="reference_message",e["CLOSE_REFERENCE"]="close_reference",e["UPDATE_MESSAGE"]="update_message",e["DELETE_MESSAGE"]="delete_message",e["MESSAGE_SENDING"]="message_sending",e["MESSAGE_SEND_SUCCESS"]="message_send_success",e["MESSAGE_SEND_FAIL"]="message_send_fail",e["UPLOAD_PROGRESS"]="upload_progress",e["UPLOAD_COMPLETE"]="upload_complete",e["LANGUAGE_CHANGED"]="language_changed"}(Cr||(Cr={})),function(e){e["A_KIT_INIT_O"]="A-kit-init-O",e["A_KIT_MSG_INSERT_O"]="A-kit-msg_insert-O",e["A_KIT_MSG_DELETE_O"]="A-kit-msg_delete-O",e["A_KIT_MSG_UPDATE_O"]="A-kit-msg_update-O",e["A_KIT_WILL__MSGMSG_RECALL_O"]="A-kit-msg_recall-O",e["A_KIT_WILL_SEND_MSG_T"]="A-kit-will_send_msg-T",e["A_KIT_WILL_SEND_MSG_R"]="A-kit-will_send_msg-R",e["A_KIT_WILL_DISPLAY_MSG_T"]="A-kit-will_display_msg-T",e["A_KIT_WILL_DISPLAY_MSG_R"]="A-kit-will_display_msg-R",e["A_KIT_CONVERSATION_CREATE_O"]="A-kit-conversation_create-O",e["A_KIT_CONVERSATION_UPDATE_O"]="A-kit-conversation_update-O",e["A_KIT_CONVERSATION_DELETE_O"]="A-kit-conversation_delete-O",e["A_KIT_CONVERSATION_UNREAD_TIME_S"]="A-kit-conversation_unread_time-S",e["A_KIT_CONVERSATION_LISTENER_S"]="A-kit-conversation_listener-S",e["A_KIT_MESSAGE_LISTENER_S"]="A-kit-message_listener-S",e["A_KIT_READ_RECEIOT_LISTENER_S"]="A-kit-read_receipt_listener-S",e["A_KIT_FORWARD_O"]="A-kit-forward-O"}(Mr||(Mr={}));var Kr,Wr="polyfill",qr=function(){function e(){Fr(this,e),this.FIRST_COUNT_BASE=30,this.COUNT_BASE=30,this.first=!0,this.topConversations=[],this.unTopConversations=[]}return $r(e,[{key:"setPullCount",value:function(e){this.COUNT_BASE=e.pullCount,this.FIRST_COUNT_BASE=e.pullCount}},{key:"getRemoteConversation",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2?arguments[2]:void 0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return yn({count:e,startTime:n,order:i}).then((function(e){if(0===e.code){var n=e.data;n.forEach((function(e){var t=r.getUnReadTime(e.conversationType,e.targetId,e.channelId),n=e.latestMessage.conversationType===Ct["e"].PRIVATE,i=e.latestMessage.messageDirection===Ct["m"].SEND,o=e.latestMessage.sentTime>t||!t;n&&i&&o&&(e.latestMessage.receivedStatus=Ct["r"].UNREAD)})),t.customIntercept&&"function"===typeof t.customIntercept.interceptConversation&&(n=n.filter((function(e){var n=t.customIntercept.interceptConversation(e);return!n}))),t.customDisplayMessage&&t.customDisplayMessage.willDisplayConversationMessage&&"function"===typeof t.customDisplayMessage.willDisplayConversationMessage&&(n=n.map((function(e){var n=e.latestMessage;if(n){var r=t.customDisplayMessage.willDisplayConversationMessage(n.content,n.conversationType,n.targetId,n.messageType);e.latestMessage.content=r}return e}))),t.update(n.map((function(e){return{conversation:e}})))}}))}},{key:"findConversationFromList",value:function(e,t){var n=t.findIndex((function(t){return t.conversationType===e.conversationType&&t.targetId===e.targetId&&t.channelId===e.channelId}));return n}},{key:"findConversation",value:function(e){e.channelId=e.channelId||"";var t=this.findConversationFromList(e,this.topConversations);return-1!==t?{source:this.topConversations,index:t}:(t=this.findConversationFromList(e,this.unTopConversations),-1!==t?{source:this.unTopConversations,index:t}:null)}},{key:"update",value:function(e){var t=this,n=this.topConversations.filter((function(e){return e.latestMessage&&e.latestMessage.messageType===Wr})),r=this.unTopConversations.filter((function(e){return e.latestMessage&&e.latestMessage.messageType===Wr})),i=n.concat(r);e=e.concat(i.map((function(e){return{conversation:e}}))),e.forEach((function(e){if(e&&(e.conversation||e.updatedItems)){var n,r=t.findConversation({conversationType:e.conversation.conversationType,targetId:e.conversation.targetId,channelId:e.conversation.channelId||""});n=r?r.source[r.index]:e.conversation,t.merge(n,e.conversation),void 0!==e.updatedItems&&Object.keys(e.updatedItems).length?(e.updatedItems.hasOwnProperty("isTop")&&r&&r.source.splice(r.index,1),n&&Object.keys(e.updatedItems).forEach((function(t){n[t]=e.updatedItems[t].val}))):e.conversation&&r&&r.source.splice(r.index,1),n.isTop?t.sortConversation(n,t.topConversations):t.sortConversation(n,t.unTopConversations)}}))}},{key:"merge",value:function(e,t){for(var n in t)void 0!==t[n]&&null!==t[n]&&(e[n]=t[n])}},{key:"sortConversation",value:function(e,t){t.length||t.push(e);var n=t.findIndex((function(t){return t.targetId===e.targetId&&t.channelId===e.channelId&&t.conversationType===e.conversationType}));if(-1!==n){if(t[n].latestMessage){if(!e.latestMessage)return;if(t[n].latestMessage.sentTime>e.latestMessage.sentTime)return}t.splice(n,1)}for(var r=-1,i=0;i<t.length;i++){var o=t[i];if(!o.latestMessage){r=i;break}if(e.latestMessage&&e.latestMessage.sentTime>=o.latestMessage.sentTime){r=i;break}}-1===r&&(r=t.length),t.splice(r,0,e)}},{key:"create",value:function(e){var t={conversationType:e.conversationType,channelId:e.channelId,targetId:e.targetId,latestMessage:{conversationType:e.conversationType,targetId:e.targetId,channelId:e.channelId,sentTime:(new Date).getTime(),messageType:Wr,content:"",senderUserId:"",receivedTime:0,messageUId:"none",messageDirection:1,isPersited:!0,isCounted:!0,isOffLineMessage:!1,canIncludeExpansion:!1,receivedStatus:Ct["r"].UNREAD}};this.sortConversation(t,this.unTopConversations),Ct["C"].info(Mr.A_KIT_CONVERSATION_CREATE_O,t)}},{key:"remove",value:function(e){var t=this;return mn(e).then((function(n){var r=t.findConversation(e);return r&&0===n.code&&(r.source.splice(r.index,1),Ct["C"].info(Mr.A_KIT_CONVERSATION_DELETE_O,{index:r.index,conversation:r.source[r.index]})),n}))}},{key:"getLastTime",value:function(e){for(var t=(new Date).getTime(),n=e.length-1;n>=0;n--){var r=e[n];if(r.latestMessage){t=r.latestMessage.sentTime;break}}return t}},{key:"getList",value:function(e,t){var n=this;if(e){var r=this.getLastTime(this.topConversations),i=this.getLastTime(this.unTopConversations),o=this.first?this.FIRST_COUNT_BASE:this.COUNT_BASE,s=Math.min(r,i);return this.getRemoteConversation(o,s,t).then((function(){n.first=!1;var e=[].concat(zr(n.topConversations),zr(n.unTopConversations));return e}))}var a=[].concat(zr(this.topConversations),zr(this.unTopConversations));return Promise.resolve(a)}},{key:"changeTopStatus",value:function(e,t){return Sn(e,t).then((function(e){return e}))}},{key:"changeNotificationStatus",value:function(e,t){var n=this;return An(e,t).then((function(r){if(0===r.code){var i=n.findConversation(e);i.source[i.index].notificationStatus=t}return r}))}},{key:"clearLocalConversation",value:function(){this.unTopConversations=[],this.topConversations=[]}}]),e}();function Zr(e,t){return(e.channelId||"")===(t.channelId||"")&&e.conversationType===t.conversationType&&e.targetId===t.targetId}function Jr(e){return e.conversationType+"&&"+e.targetId+"&&"+(e.channelId||"")}function Xr(e){return new Promise((function(t,n){var r=new FileReader;r.readAsDataURL(e),r.onload=function(e){r.onerror=null,r.onload=null,t(e.target.result)},r.onerror=function(e){r.onerror=null,r.onload=null,n(e)}}))}var ei,ti,ni={},ri={},ii=function(){function e(t){Fr(this,e),this.config=t}return $r(e,[{key:"getUserProfile",value:function(e){return this.config.getUserProfile?Kr?Promise.resolve(Kr):this.config.getUserProfile(e).then((function(e){return Kr=e,Kr})):Promise.reject(new Error("Method getUserProfile is not defined!"))}},{key:"getConversationProfile",value:function(e){if(!this.config.getConversationProfile)return Promise.reject(new Error("Method getConversationProfile is not defined!"));for(var t=[],n=0;n<e.length;n++){var r=e[n],i=Jr(r),o=ni[i];o&&(e.splice(n,1),t.push(o),n--)}return this.config.getConversationProfile(e).then((function(e){return e.forEach((function(e){if(e&&e.targetId&&e.conversationType){var t=Jr(e);ni[t]=e}})),[].concat(zr(e),t)}))}},{key:"getGroupMembers",value:function(e){if(!this.config.getGroupMembers)return Promise.reject(new Error("Method getGroupMembers is not defined!"));var t=Jr(e);return ri[t]?Promise.resolve(ri[t]):this.config.getGroupMembers(e).then((function(t){var n=Jr(e);return t?(ri[n]=t,ri[n]):null}))}},{key:"clearMyProfileCache",value:function(){Kr=null}}]),e}(),oi=function(){function e(){Fr(this,e),this.localMessages={}}return $r(e,[{key:"currentConversation",get:function(){return this._currentConversation},set:function(e){this._currentConversation=e}},{key:"getMessages",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:20,i=arguments.length>3?arguments[3]:void 0;r=Math.min(20,Math.max(1,r)),this._unReadTime=i;var o=this.getLocalMessage(e,n,r);if(o.list&&o.list.forEach((function(e){var n=e.conversationType===Ct["e"].PRIVATE,r=e.messageDirection===Ct["m"].SEND,i=e.sentTime<=t._unReadTime;n&&r&&i&&(e.receivedStatus=Ct["r"].READ)})),o.list.length>=r)return Promise.resolve(o);if(!1===o.hasMore)return Promise.resolve(o);var s=Jr(e),a=0;return this.localMessages[s]&&this.localMessages[s].list.length>0&&(a=this.localMessages[s].list[0].sentTime),this.getRemoteMessages(e,{count:r,timestamp:a}).then((function(){return t.getLocalMessage(e,n,r)}))}},{key:"getLocalMessage",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:20,r=Jr(e),i=this.localMessages[r];if(0===n)return i||{list:[],hasMore:!0};if(!i)return{list:[],hasMore:!0};0===t&&(t=Date.now());var o=i.list.findIndex((function(e){return t<=e.sentTime})),s=[];return 0===o?{list:[],hasMore:i.hasMore}:(-1===o&&(o=i.list.length),s=i.list.slice(Math.max(0,o-n),o),s.length>=n&&o-n>0?{list:s,hasMore:!0}:{list:s,hasMore:i.hasMore})}},{key:"getRemoteMessages",value:function(e,t){var n=this;return pr(e,t).then((function(e){if(0===e.code){var t=e.data.list;n.customIntercept&&"function"===typeof n.customIntercept.interceptMessage&&(t=t.filter((function(e){var t=n.customIntercept.interceptMessage(e);return!t}))),n.customDisplayMessage&&n.customDisplayMessage.willDisplayMessages&&"function"===typeof n.customDisplayMessage.willDisplayMessages&&(t=t.map((function(e){var t=n.customDisplayMessage.willDisplayMessages(e.content,e.conversationType,e.targetId,e.messageType);return e.content=t,e}))),n.setLocalMessages(t,e.data.hasMore)}}))}},{key:"setLocalMessages",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0,r=[];if(!t.length)return{new:r};var i=[],o=t[0].conversationType+"&&"+t[0].targetId+"&&"+(t[0].channelId||"");this.localMessages[o]?void 0!==n&&(this.localMessages[o].hasMore=n):this.localMessages[o]={list:[],hasMore:void 0===n||n};var s=this.localMessages[o].list;return t.forEach((function(t){var n=s.length;if("RC:RcCmd"===t.messageType&&t.messageDirection===Ct["m"].RECEIVE){var a=t.content;if(a&&a.messageUId){var c=e.deleteMessageByUId(s,a.messageUId);c&&i.push(c)}}for(var u=0;u<s.length;u++){var l=s[u];if(t.messageUId===l.messageUId)return;if(t.sentTime<=l.sentTime){n=u;break}}e._currentConversation&&Zr(t,e._currentConversation)&&r.push(t);var f=t.conversationType===Ct["e"].PRIVATE,h=t.messageDirection===Ct["m"].SEND,d=t.sentTime>e._unReadTime||!e._unReadTime;f&&h&&d&&(t.receivedStatus=Ct["r"].UNREAD),e.localMessages[o].list.splice(n,0,t)})),r.sort((function(e,t){return e.sentTime-t.sentTime})),{new:r,remove:i}}},{key:"recallMessage",value:function(e){var t=Jr(e),n=this.localMessages[t];if(!n)return null;var r=n.list;if(r&&r.length){var i=r.findIndex((function(t){return t.messageUId===e.messageUId}));return-1!==i?(r[i].messageType="RC:RcCmd",r[i]):null}return null}},{key:"deleteMessage",value:function(e){var t=Jr(e),n=this.localMessages[t];if(!n)return!1;var r=n.list;if(r&&r.length){var i=r.findIndex((function(t){return t.messageUId===e.messageUId}));return-1!==i&&(Ct["C"].info(Mr.A_KIT_MSG_DELETE_O,{index:i,message:r[i]}),r.splice(i,1),!0)}return!1}},{key:"deleteMessageByUId",value:function(e,t){var n=e.findIndex((function(e){return e.messageUId===t}));if(-1!==n){var r=e[n];return e.splice(n,1),Ct["C"].info(Mr.A_KIT_MSG_DELETE_O,{index:n,message:e[n]}),r}}},{key:"insertMessage",value:function(e){var t=Jr(e),n=this.localMessages[t];if(n){var r=this.localMessages[t].list,i=r.findIndex((function(t){return t.sentTime>e.sentTime}));-1===i?r.push(e):r.splice(i,0,e),Ct["C"].info(Mr.A_KIT_MSG_INSERT_O,{index:i,message:e})}else this.localMessages[t]={list:[e],hasMore:!0}}},{key:"updateMessage",value:function(e){var t=Jr(e),n=this.localMessages[t];if(n){var r=this.localMessages[t].list,i=-1;if(e.messageId&&(i=r.findIndex((function(t){return t.messageId===e.messageId}))),-1===i&&e.messageUId&&(i=r.findIndex((function(t){return t.messageUId===e.messageUId}))),-1!==i)for(var o in e)void 0!==e[o]&&(r[i][o]=e[o]);else this.insertMessage(e)}else this.insertMessage(e)}},{key:"cutMessages",value:function(){var e=Jr(this._currentConversation),t=this.localMessages[e];t&&t.list.length>100&&(t.list.splice(0,t.list.length-100),t.hasMore=!0)}},{key:"clearLocalConversation",value:function(){this.localMessages={}}}]),e}();(function(e){e["ZH_CN"]="zh_CN",e["ZH_TW"]="zh_TW",e["EN"]="en"})(ei||(ei={}));var si=function(e,t,n){var r="imkit_".concat(t,"_").concat(n);return ti={set:function(t,n){var i=JSON.stringify(t);e.localStorage.setItem("".concat(r,"_").concat(n),i),void 0!==t&&null!==t||e.localStorage.removeItem("".concat(r,"_").concat(n))},get:function(t){var n;try{n=JSON.parse(e.localStorage.getItem("".concat(r,"_").concat(t)))}catch(i){n=null}return n},remove:function(t){e.localStorage.removeItem("".concat(r,"_").concat(t))}},ti},ai=function(){function e(){Fr(this,e),this._conversationStorage={}}return $r(e,[{key:"init",value:function(e,t){this._kitStorage=si(window,e,t),this._conversationStorage=this._kitStorage.get("conversation")||{}}},{key:"updateUnReadTime",value:function(e,t,n,r){var i=this.getConversationKey(t,n,r);this._conversationStorage[i]=e,this._kitStorage.set(this._conversationStorage,"conversation")}},{key:"getUnReadTime",value:function(e,t,n){var r=this.getConversationKey(e,t,n);return this._conversationStorage[r]||0}},{key:"data",get:function(){return this._conversationStorage}},{key:"getConversationKey",value:function(e,t,n){return"".concat(n,"_").concat(e,"_").concat(t)}}]),e}(),ci=function(){function e(){Fr(this,e),this._LangStore=null}return $r(e,[{key:"init",value:function(e,t){this._kitStorage=si(window,e,t),this._LangStore=this._kitStorage.get("lang")||null}},{key:"setLang",value:function(e){this._LangStore=e,this._kitStorage.set(this._LangStore,"lang")}},{key:"getLang",value:function(){var e=this._LangStore&&this._LangStore.lang?this._LangStore.lang:ei.ZH_CN;return e}}]),e}();function ui(){return~~(16777215*Math.random())}function li(e){return-1!==["RC:Delivered"].indexOf(e)}var fi=!1,hi=function(e){Dr(n,e);var t=Ur(n);function n(){var e;return Fr(this,n),e=t.call(this),e.switchTimes={},e.receiptRequstCache=[],e._fileCache={},n.INSTANCE?xr(e,n.INSTANCE):(e.conversationManager=new qr,e.messageManager=new oi,e._conversationStorage=new ai,e._langStore=new ci,n.INSTANCE=Pr(e),e)}return $r(n,[{key:"init",value:function(e){fi&&Ct["C"].error(Mr.A_KIT_INIT_O,{msg:"禁止多次初始化!"}),e.libOption&&Object(Ct["E"])(e.libOption.appkey)||Ct["C"].error(Mr.A_KIT_INIT_O,{msg:"参数错误:libOption.appkey 为必传字段!",data:e}),this._appkey=e.libOption.appkey,ln(e.libOption),e.conversationPullCount=e.conversationPullCount?e.conversationPullCount:30,this.conversationManager.setPullCount({pullCount:e.conversationPullCount}),this.customMessage=e.customMessage,this.customIntercept=e.customIntercept,this.conversationManager.customIntercept=this.customIntercept,this.customDisplayMessage=e.customDisplayMessage,this.messageManager.customIntercept=this.customIntercept,this.messageManager.customDisplayMessage=this.customDisplayMessage,this.conversationManager.customDisplayMessage=this.customDisplayMessage,this.service=new ii(e.service),this.setListener(),fi=!0,this.emit(Cr.INIT)}},{key:"connect",value:function(e,t){return fn(e,t)}},{key:"disconnect",value:function(){return this.conversationManager.clearLocalConversation(),this.messageManager.clearLocalConversation(),this.service.clearMyProfileCache(),hn()}},{key:"getTime",value:function(){return this.startLocalTime&&!this.startServerTime||(this.startLocalTime=Date.now(),this.startServerTime=dn()),Date.now()-this.startLocalTime+this.startServerTime}},{key:"currentConversation",get:function(){return this._currentConversation},set:function(e){this._currentConversation=e}},{key:"lang",get:function(){var e=this._langStore.getLang()?this._langStore.getLang():ei.ZH_CN;return e},set:function(e){this._langStore.setLang(e)}},{key:"selectConversation",value:function(e){var t=this;if(!this.currentConversation||!Zr(this.currentConversation,e)){if(this.conversationManager.findConversation(e)||(this.createConversation(e),this.emit(Cr.CONVERSATION,this.currentConversation)),this.currentConversation){var n=Jr(this.currentConversation);this.switchTimes[n]=this.getTime(),this.messageManager.cutMessages()}this.currentConversation=e,this.messageManager.currentConversation=this.currentConversation,this.emit(Cr.SWITCH_CONVERSATION,this.currentConversation),this.receiptRequstCache.forEach((function(e){Zr(e.conversation,t.currentConversation)&&t.emit(Cr.MESSAGE_RECEIPT_REQUEST,e)}))}}},{key:"changeLanguage",value:function(e){if(e&&e.lang)return this._langStore.setLang(e),void this.emit(Cr.LANGUAGE_CHANGED,e);console.log("参数异常,切换语言失败")}},{key:"setListener",value:function(){var e=this;gn(Nt.CONNECTED,(function(){e._currentUsreId=pn(),e._conversationStorage.init(e._appkey,e._currentUsreId),e._langStore.init(e._appkey,e._currentUsreId),e.emit(Cr.CONNECTED,!0),e.emit(Cr.LANGUAGE_CHANGED,{lang:e.lang})})),gn(Nt.DISCONNECT,(function(){e.currentConversation=null,e.emit(Cr.SWITCH_CONVERSATION,e.currentConversation),e.emit(Cr.CONNECTED,!1)})),gn(Nt.CONVERSATION,(function(t){Ct["C"].info(Mr.A_KIT_CONVERSATION_LISTENER_S,t);var n=t.conversationList;e.customIntercept&&"function"===typeof e.customIntercept.interceptConversation&&(n=n.filter((function(t){var n=e.customIntercept.interceptConversation(t.conversation);return!n}))),n=n.filter((function(e){if(e.updatedItems&&e.updatedItems.latestMessage&&e.updatedItems.latestMessage.val){var t=e.updatedItems.latestMessage.val.messageType;return!li(t)}return!0})),n.length&&(e.conversationManager.update(n),e.emit(Cr.CONVERSATION,n))})),gn(Nt.MESSAGES,(function(t){Ct["C"].info(Mr.A_KIT_MESSAGE_LISTENER_S,t);var n=t.messages;if(n.forEach((function(e){e.conversationType===Ct["e"].PRIVATE&&e.receivedStatus===Ct["r"].READ&&(e.receivedStatus=Ct["r"].UNREAD)})),e.customIntercept&&"function"===typeof e.customIntercept.interceptMessage&&(n=n.filter((function(t){var n=e.customIntercept.interceptMessage(t);return!n}))),e.customDisplayMessage&&e.customDisplayMessage.willDisplayMessages&&"function"===typeof e.customDisplayMessage.willDisplayMessages&&(n=n.map((function(t){var n=e.customDisplayMessage.willDisplayMessages(t.content,t.conversationType,t.targetId,t.messageType);return t.content=n,t}))),n=n.filter((function(e){return!li(e.messageType)})),n.length){var r=e.messageManager.setLocalMessages(n);e.currentConversation&&r["new"].length&&e.emit(Cr.MESSAGES,r["new"]),r.remove&&r.remove.length&&e.emit(Cr.DELETE_MESSAGE,r.remove)}})),gn(Nt.PULL_OFFLINE_MESSAGE_FINISHED,(function(){e.emit(Cr.PULL_OFFLINE_MESSAGE_FINISHED)})),gn(Nt.TYPING_STATUS,(function(t){e.emit(Cr.TYPING_STATUS,t)})),gn(Nt.READ_RECEIPT_RECEIVED,(function(t){var n=t.conversation,r=t.sentTime,i=e.conversationManager.findConversation(n);if(i){var o=i.source[i.index],s=o.latestMessage;s.sentTime&&s.sentTime===r&&(e.conversationManager.update([{conversation:o,updatedItems:{latestMessage:{time:Date.now(),val:Or(Or({},s),{},{receivedStatus:Ct["r"].READ})}}}]),e.emit(Cr.CONVERSATION,o))}var a=e.messageManager.getLocalMessage(n,0,0),c=a.list.findIndex((function(e){return e.sentTime===r}));-1!==c&&a.list.forEach((function(t){t.receivedStatus=Ct["r"].READ,e.messageManager.updateMessage(t),e.emit(Cr.UPDATE_MESSAGE,t)})),e._conversationStorage.updateUnReadTime(r,n.conversationType,n.targetId,n.channelId),e.emit(Cr.READ_RECEIPT_RECEIVED,t)})),gn(Nt.MESSAGE_RECEIPT_REQUEST,(function(t){var n=t.conversation,r=t.messageUId;if(Zr(e.currentConversation,n))e.emit(Cr.MESSAGE_RECEIPT_REQUEST,t);else{var i=Jr(n);if(e.switchTimes[i]){var o=e.messageManager.getLocalMessage(n,0,0),s=o.list.findIndex((function(t){return t.messageUId===r&&t.receivedTime<e.switchTimes[i]}));-1===s?e.receiptRequstCache.push(t):vr(n.targetId,Rr({},t.senderUserId,[t.messageUId]),n.channelId)}else e.receiptRequstCache.push(t)}})),gn(Nt.MESSAGE_RECEIPT_RESPONSE,(function(t){e.emit(Cr.MESSAGE_RECEIPT_RESPONSE,t)}))}},{key:"getMessages",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:20,r=this._conversationStorage.getUnReadTime(e.conversationType,e.targetId,e.channelId);return this.messageManager.getMessages(e,t,n,r)}},{key:"getConversation",value:function(e){var t=this.conversationManager.findConversation(e);return t&&-1!==t.index?this.service.getConversationProfile([e]).then((function(e){var n=e[0];return{conversation:t.source[t.index],profile:n}})):Promise.resolve(null)}},{key:"getConversationList",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.conversationManager.getList(t,this._conversationStorage).then((function(t){var n=t.map((function(e){return{conversationType:e.conversationType,targetId:e.targetId,channelId:e.channelId}}));return e.service.getConversationProfile(n).then((function(e){return t.map((function(t){return{conversation:t,profile:e.find((function(e){return!(!e||!Zr(e,t))}))}}))}))["catch"]((function(){return t.map((function(e){return{conversation:e}}))}))}))}},{key:"createConversation",value:function(e){return this.conversationManager.create(e)}},{key:"deleteConversation",value:function(e){return this.currentConversation=null,this.emit(Cr.SWITCH_CONVERSATION,this.currentConversation),this.conversationManager.remove(e)}},{key:"setConversationToTop",value:function(e,t){return this.conversationManager.changeTopStatus(e,t)}},{key:"setConversationNotificationStatus",value:function(e,t){return this.conversationManager.changeNotificationStatus(e,t)}},{key:"referenceMessage",value:function(e){this.emit(Cr.REFERENCE_MESSAGE,e)}},{key:"recallMessage",value:function(e){var t=this;yr({conversationType:e.conversationType,targetId:e.targetId,channelId:e.channelId},{messageUId:e.messageUId,sentTime:e.sentTime}).then((function(n){if(0===n.code){var r=t.messageManager.recallMessage(e);r&&t.emit(Cr.UPDATE_MESSAGE,r)}}))}},{key:"deleteMessage",value:function(e){var t=this;mr({conversationType:e.conversationType,targetId:e.targetId,channelId:e.channelId},[{messageUId:e.messageUId,sentTime:e.sentTime,messageDirection:e.messageDirection}]).then((function(n){if(0===n.code){var r=t.messageManager.deleteMessage(e);r&&t.emit(Cr.DELETE_MESSAGE,[e])}}))}},{key:"registerMessageType",value:function(e,t,n,r,i){return _r(e,t,n,r,i)}},{key:"sendMessage",value:function(e,t,n){var r=ui(),i=t.content,o=t;return t.messageType===Ct["n"].REFERENCE&&(this.emit(Cr.CLOSE_REFERENCE),o=new jn(Object.assign({},i))),t.messageType===Ct["n"].TextMessage&&(o=new Un({content:i.content})),t.messageType!==Ct["n"].TextMessage&&t.messageType!==Ct["n"].REFERENCE||(t.content=this._willSendMessage(t.content,e.conversationType,e.targetId,t.messageType)),this.decorateMessage(e,r,o,lr(e,t,n))}},{key:"sendImageMessage",value:function(e,t,n,r){var i=this,o=ui();this._fileCache[o]=t;var s=function(s){return t=i._willSendMessage(t,e.conversationType,e.targetId,Ct["n"].IMAGE),i.decorateMessage(e,o,new Rn({content:s,imageUri:""}),dr(e,t,{onProgress:function(e){i.emit(Cr.UPLOAD_PROGRESS,{messageId:o,progress:e}),"function"===typeof n.onProgress&&n.onProgress(e)},onComplete:function(e){i.emit(Cr.UPLOAD_COMPLETE,{messageId:o,fileInfo:e}),"function"===typeof n.onComplete&&n.onComplete(e)}},r))};return Xr(t.file).then((function(e){s(e)}))["catch"]((function(){s("")}))}},{key:"sendFileMessage",value:function(e,t,n,r){var i=this,o=ui(),s=t.file;return this._fileCache[o]=s,t=this._willSendMessage(t,e.conversationType,e.targetId,Ct["n"].FILE),this.decorateMessage(e,o,new Pn({name:s.name,size:s.size,type:s.type,fileUrl:""}),hr(e,t,{onProgress:function(e){i.emit(Cr.UPLOAD_PROGRESS,{messageId:o,progress:e}),"function"===typeof n.onProgress&&n.onProgress(e)},onComplete:function(e){i.emit(Cr.UPLOAD_COMPLETE,{messageId:o,fileInfo:e}),"function"===typeof n.onComplete&&n.onComplete(e)}},r))}},{key:"resendMessage",value:function(e,t){this.messageManager.deleteMessage(t),this.emit(Cr.DELETE_MESSAGE,[t]);var n=null,r=t.content;switch(t.messageType){case"RC:TxtMsg":var i=null;r.mentionedInfo&&(i=r.mentionedInfo,i.isMentioned=!0),n=new Un({content:r.content}),this.sendMessage(e,n,i);break;case"RC:ImgMsg":var o=this._fileCache[t.messageId];this.sendImageMessage(e,o,{onProgress:function(){},onComplete:function(){}}),delete this._fileCache[t.messageId];break;case"RC:FileMsg":var s=this._fileCache[t.messageId];this.sendFileMessage(e,{file:s},{onProgress:function(){},onComplete:function(){}}),delete this._fileCache[t.messageId];break;case"RC:ReferenceMsg":n=new jn({referMsgUserId:r.referMsgUserId,referMsg:r.referMsg,content:r.content,objName:r.objName}),this.sendMessage(e,n,i);break}}},{key:"_willSendMessage",value:function(e,t,n,r){return this.customDisplayMessage&&this.customDisplayMessage.willSendMessage&&"function"===typeof this.customDisplayMessage.willSendMessage&&(e=this.customDisplayMessage.willSendMessage(e,t,n,r)),e}},{key:"decorateMessage",value:function(e,t,n,r){var i=this,o={targetId:e.targetId,channelId:e.channelId,conversationType:e.conversationType,messageType:n.messageType,content:n.content,sentTime:Date.now(),messageDirection:Ct["m"].SEND,senderUserId:pn(),receivedTime:void 0,isPersited:n.isPersited,isCounted:n.isCounted,messageUId:"sending_"+t,isOffLineMessage:!1,canIncludeExpansion:!1,receivedStatus:Ct["r"].UNREAD,messageId:t};this.messageManager.insertMessage(o),this.emit(Cr.MESSAGES,[o]);var s=this.conversationManager.findConversation(e),a=null;if(s){a=s.source[s.index];var c={conversation:a,updatedItems:{latestMessage:{time:Date.now(),val:o}}};this.conversationManager.update([c]),this.emit(Cr.UPDATE_CONVERSATION,[Or(Or({},a),{},{latestMessage:o})])}return this.emit(Cr.MESSAGE_SENDING,o),r.then((function(e){var n=e.data?e.data:o;if(n.messageId=t,n&&n.content&&i.customDisplayMessage&&i.customDisplayMessage.willDisplayMessages&&"function"===typeof i.customDisplayMessage.willDisplayMessages&&(n.content=i.customDisplayMessage.willDisplayMessages(n.content,n.conversationType,n.targetId,n.messageType)),0===e.code)i.messageManager.updateMessage(n),i.emit(Cr.MESSAGE_SEND_SUCCESS,n),delete i._fileCache[n.messageId];else{if(s){n.messageUId="fail_"+n.messageId;var r={conversation:a,updatedItems:{latestMessage:{time:Date.now(),val:n}}};i.conversationManager.update([r]),i.emit(Cr.UPDATE_CONVERSATION,[Or(Or({},a),{},{latestMessage:n})])}i.messageManager.updateMessage(n),i.emit(Cr.MESSAGE_SEND_FAIL,n)}return e}))}},{key:"getConversationProfile",value:function(e){return this.service.getConversationProfile([e]).then((function(e){return e&&e.length?e[0]:null}))}},{key:"getGroupMemberProfile",value:function(e,t){if(e.conversationType===Ct["e"].GROUP)return t?this.service.getGroupMembers(e).then((function(e){var n=e.findIndex((function(e){return e.id===t}));return-1!==n?e[n]:null})):null}},{key:"getGroupMembers",value:function(e){return this.service.getGroupMembers(e)}},{key:"getMyProfile",value:function(){var e=pn();if(!e)throw new Error("Unable to get the current user ID.");return this.service.getUserProfile(e)}},{key:"isCustomUserMessage",value:function(e){if(!this.customMessage)return!1;var t=this.customMessage.userMessage;return t&&void 0!==t[e.messageType]}},{key:"createCustomUserMessageDom",value:function(e){if(!this.customMessage)return null;var t=this.customMessage.userMessage;return t?t[e.messageType](e):null}},{key:"isCustomNotifyMessage",value:function(e){if(!this.customMessage)return!1;var t=this.customMessage.notifyMessage;return t&&void 0!==t[e.messageType]}},{key:"createCustomNotifyMessageDom",value:function(e){if(!this.customMessage)return null;var t=this.customMessage.notifyMessage;return t?t[e.messageType](e):null}},{key:"isCustomLastMessage",value:function(e){if(!this.customMessage)return!1;var t=this.customMessage.lastMessage;return t&&void 0!==t[e.messageType]}},{key:"createCustomLastMessageDom",value:function(e){if(!this.customMessage)return null;var t=this.customMessage.lastMessage;return t?t[e.messageType](e):null}},{key:"clearMessagesUnreadStatus",value:function(e){Cn(e),this.conversationManager.update([{conversation:e,updatedItems:{unreadMessageCount:{time:Date.now(),val:0}}}]),this.emit(Cr.UPDATE_CONVERSATION,[Or(Or({},e),{},{unreadMessageCount:0})])}},{key:"saveTextMessageDraft",value:function(e,t){var n=this;_n(e,t).then((function(e){0===e.code?n.emit(Cr.SWITCH_CONVERSATION,n.currentConversation):console.log(e.code,e.msg)}))}}]),n}(Ct["g"]);hi.INSTANCE=null;var di=new hi;console.warn("IMKit版本信息","7/18/2022, 11:05:18 AM","ceb1d125c48ba324a45a764232c67ccf1f59bf33","5.3.0");var pi=0,gi=function(){function e(t,n,r){Fr(this,e),yi(t),this.container=t,this.configs=vi(n),this.triggers=this.configs.map((function(e){return e.trigger})),this.triggering=!1,this.bindFuncs(),this.body=Ei(t).body,this.body.addEventListener("keydown",this.checkKeyDown,!1),this.locale=r}return $r(e,[{key:"bindFuncs",value:function(){this.checkKeyDown=this.checkKeyDown.bind(this),this.onSelect=this.onSelect.bind(this),this.checkMouse=this.checkMouse.bind(this)}},{key:"checkKeyDown",value:function(e){var t=e.key,n=this.triggers.indexOf(t);if(-1!==n){if(e.preventDefault(),this.triggering)return;var r=this.configs[n],i="<span id='at_"+pi+"' class='at-span' data-trigger='@'>@</span>",o=this.inserElement(i,pi);if(o){this.currentIndex=pi;var s=Ii(o);"function"===typeof r.onTrigger&&(this.triggering=!0,r.onTrigger(s,this.onSelect))}}else if(8===e.keyCode){if(this.triggering)return e.preventDefault(),void this.cancelTrigger();var a=Mi(this.container);if(0===a.rangeCount)return;var c=Ei(this.container).body,u=a.getRangeAt(0),l=u.commonAncestorContainer,f=l.parentNode;if(f&&this.isAtNode(f))return f.parentNode.removeChild(f),void e.preventDefault();var h=a.getRangeAt(0).cloneRange();h.collapse(!0),h.setStart(c,0);var d=h.cloneContents(),p=d.lastChild;if(this.isAtNode(p)){var g=c.querySelector("#"+p.id);g.parentNode.removeChild(g),e.preventDefault()}}else if(27===e.keyCode&&this.triggering)return e.preventDefault(),void this.cancelTrigger()}},{key:"cancelTrigger",value:function(){var e=Ei(this.container),t=e.querySelector("#at_"+this.currentIndex);if(t){e.body.removeChild(t);var n=t.getAttribute("data-trigger"),r=this.triggers.indexOf(n);if(-1!==r){var i=this.configs[r];i.onCancel()}}this.triggering=!1}},{key:"isAtNode",value:function(e){return!!e&&(1===e.nodeType&&"SPAN"===e.nodeName&&void 0!==e.getAttribute("data-trigger"))}},{key:"onSelect",value:function(e){this.triggering=!1;var t=Ei(this.container),n=t.querySelector("#at_"+this.currentIndex);if(n){n.innerHTML="@"+e.value;var r=e.value===this.locale.other.all?"all":e.id;n.setAttribute("data-id",r),pi++,t.body.focus();var i=t.createRange();i.setStartAfter(n.nextSibling||n),i.collapse(!0);var o=Mi(this.container);o.removeAllRanges(),o.addRange(i)}else this.cancelTrigger()}},{key:"inserElement",value:function(e,t){var n,r=Ei(this.container);Ci(r.body);var i=mi(e),o=Mi(this.container),s=o.getRangeAt(0);return s.insertNode(i),n=r.querySelector("#at_"+t),o.removeAllRanges(),o.selectAllChildren(n),o.collapseToEnd(),n}},{key:"checkMouse",value:function(e){if(this.triggering)e.preventDefault();else{var t,n=_i(this.container);if(t=-[1]?n.lastChild:mi(n).lastChild,null!=t&&1==t.nodeType&&"SPAN"==t.nodeName){var r=t.id;this.currentIndex=t.id.substring(3);var i=t.getAttribute("data-trigger"),o=this.triggers.indexOf(i);if(-1!==o){var s=Ei(this.container).querySelector("#"+r);if(s){var a=this.configs[o],c=Ii(s);"function"===typeof a.onTrigger&&(this.triggering=!0,a.onTrigger(c,this.onSelect))}}}}}},{key:"dispose",value:function(){this.body.removeEventListener("keydown",this.checkKeyDown,!1)}}]),e}();function vi(e){return e}function yi(e){var t=e;if("IFRAME"===e.tagName)return t=e.contentWindow.document,void(t.contentEditable=!0);t.getAttribute&&void 0===t.getAttribute("contenteditable")&&t.setAttribute("contenteditable",!0)}function mi(e){var t=document.createDocumentFragment(),n=document.createElement("div");n.innerHTML=e;while(n.firstChild)t.appendChild(n.firstChild);return t}function Ii(e){var t=e.getBoundingClientRect();return{left:t.left,top:t.top,bottom:t.bottom,right:t.right,x:t.x,y:t.y,width:t.width,height:t.height}}function _i(e){var t,n=Ei(e).body,r=Mi(e);if(r.rangeCount>0){var i=r.getRangeAt(0).cloneRange();i.collapse(!0),i.setStart(n,0),t=i.cloneContents()}return t}function Ti(e){var t,n=Mi(e);if(n.rangeCount>0){var r=Ei(e).body,i=n.getRangeAt(0).cloneRange();i.collapse(!1),i.setEnd(r,r.childNodes.length),t=i.cloneContents()}return t}function Ci(e){e.focus();var t=Ei(e),n=t.body;if("undefined"!=typeof window.getSelection&&"undefined"!=typeof document.createRange){var r=t.createRange();r.selectNodeContents(n),r.collapse(!1);var i=Mi(e);i.removeAllRanges(),i.addRange(r)}else if("undefined"!=typeof t.body.createTextRange){var o=t.body.createTextRange();o.moveToElementText(n),o.collapse(!1),o.select()}}function Mi(e){return"IFRAME"===e.tagName?e.contentWindow.getSelection():window.getSelection()}function Ei(e){var t;return"IFRAME"===e.tagName&&(t=e),t?t.contentDocument?t.contentDocument:t.contentWindow?t.contentWindow.document:null:document}var Ai={area:"zh_CN",lang:"中文",conversation:{loading:"正在加载列表",forMore:"上拉获取更多",noData:"当前无会话",draft:"草稿",atMe:"有人@我",file:"文件",img:"图片",location:"位置消息",video:"短视频",audio:"语音消息",quote:"引用消息",yesterday:"昨天",before:"前天",top:"取消置顶",noTop:"置顶",inform:"允许消息通知",noInform:"消息免打扰",delete:"删除",read:"已读",unread:"未读",recall:"撤回了一条消息",you:"你"},message:{history:"下拉获取历史消息",noHistory:"没有更多历史消息了",loading:"加载中...",completed:"加载完毕",noData:"新的一天,新的开始",year:"年",month:"月",day:"日",hour:"点",minute:"分",copy:"复制",quote:"引用",recall:"撤回",delete:"删除",msgRecall:"撤回了一条消息",you:"你",opposite:"对方",file:"文件",location:"位置",nonsupport:"当前版本不支持查看此消息",forward:"转发"},messageEdit:{send:"发送",image:"图片",picError:"图片格式有误",file:"文件"},other:{unKnowMessage:"未知消息",all:"所有人"}},Si={area:"en",lang:"English",conversation:{loading:"loading...",forMore:"more",noData:"empty",draft:"draft",atMe:"@me",file:"file",img:"image",location:"location",video:"video",audio:"audio",quote:"quote",yesterday:"yesterday",before:"before",top:"untop",noTop:"top",inform:"unmute",noInform:"mute",delete:"delete",read:"read",unread:"unread",recall:"recalled a message",you:"You "},message:{history:"more",noHistory:"no more",loading:"loading...",completed:"completed",noData:"empty",year:"year ",month:"month ",day:"day",hour:"hour",minute:"minute",copy:"copy",quote:"quote",recall:"recall",delete:"delete",msgRecall:"recalled message",you:"you",opposite:"opposite",file:"file",location:"location",nonsupport:"the current version does not support viewing this message",forward:"forward"},messageEdit:{send:"send",image:"image",picError:"image format is wrong",file:"file"},other:{unKnowMessage:"Unknown message",all:"all people"}},Ni={zh_CN:Ai,en:Si},bi=".editor-content{width:calc(100% - 11em);height:100%;line-height:1.5;font-size:1.8em;overflow:auto;border:none}.editor-content:focus{border:none;outline:none}.post-btn{position:absolute;right:4em;bottom:5em}.post-btn button{font-size:2.4em;border:0.1em solid #aaaeb2;border-radius:0.5em;height:2.83333em;width:7em;background:#fff;color:#0099ff;outline:none}.post-btn button:disabled{border:0.1em solid #c7cbce;color:#c7cbce}",wi=function(e){Dr(n,e);var t=Ur(n);function n(){var e;return Fr(this,n),e=t.call(this),e.__registerHost(),Je(Pr(e)),e.post=Ae(Pr(e),"post",7),e.contentChange=Ae(Pr(e),"contentChange",7),e.inputContent=Ae(Pr(e),"inputContent",7),e.memberListVisible=!1,e.hasContent=!1,e.lang=di.lang,e.handleInput=e.handleInput.bind(Pr(e)),e.handleKeyDown=e.handleKeyDown.bind(Pr(e)),e.postHandler=e.postHandler.bind(Pr(e)),e.handlePastContent=e.handlePastContent.bind(Pr(e)),e.handleSelectMember=e.handleSelectMember.bind(Pr(e)),e.handleCloseMemberList=e.handleCloseMemberList.bind(Pr(e)),e.handleSwitchConversation=e.handleSwitchConversation.bind(Pr(e)),e.handleLanguageChanged=e.handleLanguageChanged.bind(Pr(e)),e}return $r(n,[{key:"validateWatchData",value:function(e,t){if(!t||e.time!==t.time){var n=Ei(this.contentRef);n.body.innerHTML=e.text,Ci(this.contentRef)}}},{key:"validateConversationData",value:function(e,t){t&&(t.conversationType!==Ct["e"].GROUP?e&&e.conversationType===Ct["e"].GROUP&&this.createAt():e&&e.conversationType!==Ct["e"].GROUP&&this.at&&this.at.dispose())}},{key:"componentWillLoad",value:function(){di.off(Cr.LANGUAGE_CHANGED,this.handleLanguageChanged),di.on(Cr.LANGUAGE_CHANGED,this.handleLanguageChanged)}},{key:"disconnectedCallback",value:function(){if(this.contentRef){var e=Ei(this.contentRef);e&&(e.body.removeEventListener("paste",this.handlePastContent),e.body.removeEventListener("input",this.handleInput),e.body.removeEventListener("keydown",this.handleKeyDown))}this.at&&this.at.dispose(),di.off(Cr.SWITCH_CONVERSATION,this.handleSwitchConversation),di.off(Cr.LANGUAGE_CHANGED,this.handleLanguageChanged)}},{key:"componentDidLoad",value:function(){var e=this;if(this.value){var t=Ei(this.contentRef);t.body.innerHTML=this.value.text}setTimeout((function(){e.conversation.conversationType===Ct["e"].GROUP&&e.createAt();var t=Ei(e.contentRef);t&&(t.body.addEventListener("paste",e.handlePastContent),t.body.addEventListener("input",e.handleInput),t.body.addEventListener("keydown",e.handleKeyDown),t.designMode="on",t.contentEditable=!0,t.body.style.margin=0,t.body.style.padding=0,t.body.style.wordBreak="break-all")}),500),di.on(Cr.SWITCH_CONVERSATION,this.handleSwitchConversation)}},{key:"handleInput",value:function(){var e=this;this.checkContentLength(),this.contentChangeHandler(),this.inputTimer||this.inputContent.emit(),this.inputTimer=setTimeout((function(){clearTimeout(e.inputTimer),e.inputTimer=null}),5e3)}},{key:"checkContentLength",value:function(){var e=this;this.checkContentTimer||(this.checkContentTimer=setTimeout((function(){if(Ei(e.contentRef)){var t=Ei(e.contentRef).body.innerHTML;t=t.trim(),t=t.replace(/ /g,""),t=t.replace(/<br>/g,""),e.hasContent=!!t,e.checkContentTimer=null}}),400))}},{key:"contentChangeHandler",value:function(){this.contentChange.emit(Ei(this.contentRef).body.innerHTML)}},{key:"handlePastContent",value:function(e){var t=(e.clipboardData||window.clipboardData).getData("text"),n=Mi(this.contentRef);if(!n.rangeCount)return!1;n.deleteFromDocument();var r=n.getRangeAt(0),i=document.createTextNode(t);r.insertNode(i),r.setStartAfter(i),r.collapse(!0),e.preventDefault(),this.checkContentLength()}},{key:"postHandler",value:function(){var e=Ei(this.contentRef);this.post.emit(e.body.innerHTML),e.body.innerHTML="",this.hasContent=!1,this.at&&(this.at.triggering=!1)}},{key:"handleKeyDown",value:function(e){if(13===e.keyCode){if(e.preventDefault(),e.shiftKey){var t=Mi(this.contentRef),n=t.getRangeAt(0),r=Ti(this.contentRef),i=Array.prototype.filter.call(r.childNodes,(function(e){return!("#text"===e.nodeName&&!e.data)}));if(!i.length){var o=document.createElement("br");n.insertNode(o)}var s=document.createElement("br");return n.insertNode(s),void n.collapse(!1)}this.memberListVisible=!1,this.postHandler()}this.checkContentLength()}},{key:"createAt",value:function(){var e=this;this.at=new gi(this.contentRef,[{trigger:"@",onTrigger:function(t,n){var r=e.contentRef.getBoundingClientRect();e.targetRect={width:t.width,height:t.height,x:t.x+r.x,y:t.y+r.y},e.memberListVisible=!0,e.atItemSelect=n},onCancel:function(){e.memberListVisible=!1}}],this.locale)}},{key:"handleSelectMember",value:function(e){var t=e.detail;this.atItemSelect(t),this.memberListVisible=!1,this.contentChange.emit(Ei(this.contentRef).body.innerHTML)}},{key:"handleCloseMemberList",value:function(e){!e.detail&&this.at&&this.at.cancelTrigger(),this.memberListVisible=!1}},{key:"handleSwitchConversation",value:function(){this.handleCloseMemberList({}),this.checkContentLength()}},{key:"handleLanguageChanged",value:function(e){this.lang=e.lang}},{key:"render",value:function(){var e=this;this.locale=this.lang?Ni[this.lang]:Ni.zh_CN;var t=this.locale;return W(Xe,null,W("iframe",{class:"editor-content",contenteditable:"true",ref:function(t){return e.contentRef=t}}),W("div",{class:"post-btn"},W("button",{disabled:!this.hasContent,onClick:this.postHandler},t.messageEdit.send)),W("member-list",{conversation:this.conversation,visible:this.memberListVisible,targetRect:this.targetRect,onSelectMember:this.handleSelectMember,onClose:this.handleCloseMemberList}))}}],[{key:"watchers",get:function(){return{value:["validateWatchData"],conversation:["validateConversationData"]}}},{key:"style",get:function(){return bi}}]),n}(Sr(HTMLElement)),Oi=".context-menu{font-size:2em;position:fixed;top:0;left:0;z-index:1;min-width:7em;background:#ffffff;-webkit-box-shadow:0px 0px 15px 3px rgb(100 102 109 / 19%);box-shadow:0px 0px 15px 3px rgb(100 102 109 / 19%);border-radius:0.5em}.context-menu ul{list-style:none;margin:0;padding:0}.context-menu li{list-style:none;line-height:2;text-align:center;background:#fff;height:3em;line-height:3em;cursor:pointer;padding:0 1em;color:#111f2c}.context-menu li:hover,.context-menu li.hover{background:#f2f8ff}",Ri=function(e){Dr(n,e);var t=Ur(n);function n(){var e;return Fr(this,n),e=t.call(this),e.__registerHost(),e.hide=Ae(Pr(e),"hide",7),e.topStatusChange=Ae(Pr(e),"topStatusChange",7),e.notificationStatusChange=Ae(Pr(e),"notificationStatusChange",7),e["delete"]=Ae(Pr(e),"delete",7),e.position={top:0,left:0},e.visible=!1,e.topStatus=!1,e.notificationStatus=!1,e.lang=di.lang,e.handleHide=e.handleHide.bind(Pr(e)),e.topStatusChangeHandler=e.topStatusChangeHandler.bind(Pr(e)),e.notificationStatusHandler=e.notificationStatusHandler.bind(Pr(e)),e.deleteHandler=e.deleteHandler.bind(Pr(e)),e.handleLanguageChanged=e.handleLanguageChanged.bind(Pr(e)),e}return $r(n,[{key:"componentWillLoad",value:function(){document.body.addEventListener("mouseup",this.handleHide,!1),window.addEventListener("blur",this.handleHide,!1),di.on(Cr.LANGUAGE_CHANGED,this.handleLanguageChanged)}},{key:"disconnectedCallback",value:function(){document.body.removeEventListener("mouseup",this.handleHide,!1),window.removeEventListener("blur",this.handleHide,!1)}},{key:"handleHide",value:function(e){0===e.button&&this.hide.emit()}},{key:"topStatusChangeHandler",value:function(){this.topStatusChange.emit(!this.topStatus)}},{key:"notificationStatusHandler",value:function(){this.notificationStatusChange.emit(!this.notificationStatus)}},{key:"deleteHandler",value:function(){this["delete"].emit()}},{key:"createCustomMenu",value:function(){var e=this;if(!this.customMenu||!this.conversation)return[];var t=[];return this.customMenu.forEach((function(n){var r=n.name(e.conversation);r&&t.push({name:r,callback:function(){return n.callback(e.conversation)}})})),t}},{key:"handleLanguageChanged",value:function(e){this.lang=e.lang}},{key:"render",value:function(){var e,t=this,n=this.createCustomMenu();this.locale=this.lang?Ni[this.lang]:Ni.zh_CN;var r=this.locale,i=document.documentElement.clientHeight,o=3;o+=n.length;var s=(null===(e=this.contextMenu)||void 0===e?void 0:e.childNodes[0].childNodes[0].clientHeight)*o||0;return W("div",{class:"context-menu",style:{"z-index":this.visible?"1":"-1",display:"block",left:(this.position?this.position.left:0)+"px",top:(this.position?i-this.position.top<s?this.position.top-s:this.position.top:0)+"px"},ref:function(e){return t.contextMenu=e}},W("ul",null,W("li",{onClick:this.topStatusChangeHandler},this.topStatus?r.conversation.top:r.conversation.noTop),W("li",{onClick:this.notificationStatusHandler},this.notificationStatus?r.conversation.inform:r.conversation.noInform),W("li",{onClick:this.deleteHandler},r.conversation["delete"]),n.map((function(e){return W("li",{onClick:e.callback},e.name)}))))}}],[{key:"style",get:function(){return Oi}}]),n}(Sr(HTMLElement)),Di={"/9j":{type:"image",suffix:"JPG"},iVB:{type:"image",suffix:"PNG"},Qk0:{type:"image",suffix:"BMP"},SUk:{type:"image",suffix:"TIFF"},JVB:{type:"image",suffix:"PDF"},UEs:{type:"image",suffix:"OFD"},IyF:{type:"audio",suffix:"AMR"}};function Li(e){if(e.startsWith("data:/")||e.startsWith("http"))return e;var t=e.substr(0,3);return Di[t]?"data:".concat(Di[t].type,"/").concat(Di[t].suffix.toLowerCase(),";base64,").concat(e):e}function Ui(e,t,n){if(t=Object.assign({year:n.message.year,month:n.message.month,day:n.message.day,hour:n.message.hour,minute:n.message.minute},t||{}),!e)return null;var r=new Date(e),i=r.getFullYear(),o=r.getMonth()+1,s=r.getDate(),a=r.getHours()+"";a.length<2&&(a="0"+a);var c=r.getMinutes()+"";c.length<2&&(c="0"+c);var u=new Date,l=xi(r);if(-1===l){var f=n.conversation.yesterday;return"".concat(f)}return u.getFullYear()===i?u.toDateString()===r.toDateString()?"".concat(a,":").concat(c):"".concat(o,"/").concat(s):"zh_CN"===n.area?"".concat(i,"/").concat(o,"/").concat(s):"".concat(o,"/").concat(s,"/").concat(i)}function xi(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date,n=e.getFullYear(),r=e.getMonth()+1,i=e.getDate(),o=new Date(n+"/"+r+"/"+i).getTime(),s=t.getFullYear(),a=t.getMonth()+1,c=t.getDate(),u=new Date(s+"/"+a+"/"+c).getTime(),l=(o-u)/1e3/60/60/24;return l}function Pi(e){return e.replace(/<[^>]+>/g,"")}function ji(e){var t;if("object"===Ar(e))if(Array.isArray(e))for(var n in t=[],e)t.push(ji(e[n]));else if(null===e)t=null;else if(e instanceof RegExp)t=e;else for(var r in t={},e)t[r]=ji(e[r]);else t=e;return t}function ki(e){var t=/(((^https?:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)$/g;return e=e.replace("<","<"),e=e.replace(">",">"),t.test(e)&&(e=e.replace(t,(function(e){var t="";return e.indexOf("http:")<0&&e.indexOf("https:")<0&&(t="//"),'<a target="_blank" class="url-wrap" href="'.concat(t).concat(e,'">').concat(e,"</a>")}))),e}var zi='.conversation-item.top-item::after{content:" ";display:block;width:0;height:0;border-top:2em solid #4790ee;border-right:2em solid transparent;position:absolute;left:0;top:0}.conversation-item{height:10.4em;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;padding:0 2em 0 2em;position:relative;text-align:left}.conversation-item:hover{background:#f3f3f3}.conversation-item.hover{background:#f1f1f1}.conversation-item .user-avatar{width:6.4em;height:6.4em;margin:0 2em 0 0;position:relative}.avatar-image{background:#4790ee;border-radius:50%;width:6.4em;height:6.4em;overflow:hidden;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.conversation-item .user-avatar img{width:100%}.conversation-item .user-avatar .message-count{position:absolute;right:0;top:0;height:2em;line-height:2em;background-color:#ff4141;color:#fff;border-radius:1em;text-align:center;font-size:1.1em;min-width:2em;-webkit-box-sizing:border-box;box-sizing:border-box;padding:0 0.6em}.conversation-info{-ms-flex-positive:1;flex-grow:1;width:calc(100% - 10em)}.info-block{-ms-flex-positive:0;flex-grow:0;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;margin:0 0 0.6em;width:100%}.info-block:last-child{margin:0}.user-name{font-size:2.2em;height:1.091em;line-height:0.9em;font-weight:400;color:#111f2c;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:49%}.latest-message{color:#a0a5ab;font-size:1.6em;line-height:1.6em;width:calc(100% - 2.2em);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.latest-message>div{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;font-size:1.25em;line-height:1.25em}.latest-message>div .ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.last-time{color:#c7cbce;height:1.3333em;line-height:1.3333em;text-align:right;font-size:1.8em}.notification{height:2em;line-height:2em}.notification span{width:2em;height:2em;display:inline-block}.notification .disable{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMjdweCIgaGVpZ2h0PSIyNnB4IiB2aWV3Qm94PSIwIDAgMjcgMjYiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+5YWN5omT5omwPC90aXRsZT4KICAgIDxnIGlkPSLpobXpnaItMSIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPGcgaWQ9IjAxX+S8muivneWIl+ihqOamguiniCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTQwMS4wMDAwMDAsIC02MzguMDAwMDAwKSIgZmlsbC1ydWxlPSJub256ZXJvIj4KICAgICAgICAgICAgPGcgaWQ9IuWFjeaJk+aJsCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoNDAxLjQwMDAwMCwgNjM4LjAwMDAwMCkiPgogICAgICAgICAgICAgICAgPHJlY3QgaWQ9IuefqeW9oiIgeD0iMCIgeT0iMCIgd2lkdGg9IjI2IiBoZWlnaHQ9IjI2Ij48L3JlY3Q+CiAgICAgICAgICAgICAgICA8cGF0aCBkPSJNNy4zMTI1LDEyLjQ2ODUgTDE3LjYxOTUsMTguNjg3NSBMMTguNjg3NSwxOC42ODc1IEMxOS41ODQ5NjI3LDE4LjY4NzUgMjAuMzEyNSwxOS40MTUwMzczIDIwLjMxMjUsMjAuMzEyNSBDMjAuMzEyNSwyMS4yMDk5NjI3IDE5LjU4NDk2MjcsMjEuOTM3NSAxOC42ODc1LDIxLjkzNzUgTDYuNSwyMS45Mzc1IEM1LjYwMjUzNzI4LDIxLjkzNzUgNC44NzUsMjEuMjA5OTYyNyA0Ljg3NSwyMC4zMTI1IEM0Ljg3NSwxOS40MTUwMzczIDUuNjAyNTM3MjgsMTguNjg3NSA2LjUsMTguNjg3NSBMNy4zMTI1LDE4LjY4NzUgTDcuMzEyNSwxMi40Njg1IFogTTEyLjU5Mzc1LDQuMDYyNSBDMTMuMjY2ODQ3LDQuMDYyNSAxMy44MTI1LDQuNjA4MTUyOTYgMTMuODEyNSw1LjI4MTI1IEwxMy44MTI5ODE0LDUuODI4OTMzMzYgQzE2LjE0MTkzMjYsNi4zNzkzMDM1MyAxNy44NzUsOC40NzE2MzY5NyAxNy44NzUsMTAuOTY4NzUgTDE3Ljg3Mzk1NTQsMTQuOTYwNSBMMjIuMDU1OTU1NCwxNy40MjI1MjIxIEwyMS4yMjExOTk5LDE4Ljg5NjgyNzMgTDQuMTgwOTU1NDMsOC44NjQ5Mzk1MSBMNS4wMTU3MTA5Miw3LjM5MDYzNDM2IEw3LjcwMjgwMTc2LDguOTcyNTIwMjggQzguMzQwNzUxODksNy40MTEwOTUyMiA5LjcwNDY4NjA3LDYuMjIzMzQ3OTMgMTEuMzc1MDgyNiw1LjgyODgwMDExIEwxMS4zNzUsNS4yODEyNSBDMTEuMzc1LDQuNjA4MTUyOTYgMTEuOTIwNjUzLDQuMDYyNSAxMi41OTM3NSw0LjA2MjUgWiIgaWQ9IuW9oueKtue7k+WQiCIgZmlsbD0iI0QxRDFEMSI+PC9wYXRoPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4=);background-repeat:no-repeat;background-size:contain}.latest-message .fail{}.latest-message .sending::before,.latest-message .fail::before{content:" ";display:inline-block;background-size:contain;background-repeat:no-repeat;vertical-align:middle;width:1.3em;height:1.3em;margin:0 0.2em 0 0}.latest-message .sending::before{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMjdweCIgaGVpZ2h0PSIyNnB4IiB2aWV3Qm94PSIwIDAgMjcgMjYiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+5q2j5Zyo5Y+R6YCBPC90aXRsZT4KICAgIDxnIGlkPSLpobXpnaItMSIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPGcgaWQ9IjAyX+WNleiBii3ljZXogYrlkJHkuIrmu5rliqjml7YtbG9hZGluZyIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTEwNC4wMDAwMDAsIC01MzQuMDAwMDAwKSIgZmlsbC1ydWxlPSJub256ZXJvIj4KICAgICAgICAgICAgPGcgaWQ9Iue8lue7hOWkh+S7vS00IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwLjQwMDAwMCwgNDc1LjAwMDAwMCkiPgogICAgICAgICAgICAgICAgPGcgaWQ9Iuato+WcqOWPkemAgSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTA0LjAwMDAwMCwgNTkuMDAwMDAwKSI+CiAgICAgICAgICAgICAgICAgICAgPHJlY3QgaWQ9IuefqeW9oiIgeD0iMCIgeT0iMCIgd2lkdGg9IjI2IiBoZWlnaHQ9IjI2Ij48L3JlY3Q+CiAgICAgICAgICAgICAgICAgICAgPGcgaWQ9Iue8lue7hC0yNSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMi4wMDAwMDAsIDQuMDAwMDAwKSIgZmlsbD0iI0Q4RDhEOCI+CiAgICAgICAgICAgICAgICAgICAgICAgIDxwYXRoIGQ9Ik05Ljg1NzE0Mjg2LDAgTDkuODU3MTQyODYsNC45MDkwOTA5MSBMMTUuNjA3MTQyOSw0LjkwOTA5MDkxIEwxNS42MDcxNDI5LDEzLjkwOTA5MDkgTDkuODU3MTQyODYsMTMuOTA5MDkwOSBMOS44NTcxNDI4NiwxOCBMMCw5LjAyNzU5MzU1IEw5Ljg1NzE0Mjg2LDAgWiBNMTkuNzE0Mjg1Nyw0LjkwOTA5MDkxIEwxOS43MTQyODU3LDEzLjkwOTA5MDkgTDE3LjI1LDEzLjkwOTA5MDkgTDE3LjI1LDQuOTA5MDkwOTEgTDE5LjcxNDI4NTcsNC45MDkwOTA5MSBaIE0yMyw0LjkwOTA5MDkxIEwyMywxMy45MDkwOTA5IEwyMS4zNTcxNDI5LDEzLjkwOTA5MDkgTDIxLjM1NzE0MjksNC45MDkwOTA5MSBMMjMsNC45MDkwOTA5MSBaIiBpZD0i5b2i54q257uT5ZCIIj48L3BhdGg+CiAgICAgICAgICAgICAgICAgICAgPC9nPgogICAgICAgICAgICAgICAgPC9nPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4=)}.latest-message .fail::before{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMjVweCIgaGVpZ2h0PSIyNHB4IiB2aWV3Qm94PSIwIDAgMjUgMjQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+5oSf5Y+55Y+3PC90aXRsZT4KICAgIDxnIGlkPSLpobXpnaItMSIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPGcgaWQ9IjAyX+WNleiBii3ljZXogYrlkJHkuIrmu5rliqjml7YtbG9hZGluZyIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTEwNC4wMDAwMDAsIC02MzkuMDAwMDAwKSIgZmlsbC1ydWxlPSJub256ZXJvIj4KICAgICAgICAgICAgPGcgaWQ9IuaEn+WPueWPtyIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTA0LjQwMDAwMCwgNjM5LjAwMDAwMCkiPgogICAgICAgICAgICAgICAgPHJlY3QgaWQ9IuefqeW9oiIgeD0iMCIgeT0iMCIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ij48L3JlY3Q+CiAgICAgICAgICAgICAgICA8ZyBpZD0i57yW57uELTI0IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxLjUwMDAwMCwgMS41MDAwMDApIj4KICAgICAgICAgICAgICAgICAgICA8Y2lyY2xlIGlkPSLmpK3lnIblvaIiIGZpbGw9IiNGRjQxNDEiIGN4PSIxMC41IiBjeT0iMTAuNSIgcj0iMTAuNSI+PC9jaXJjbGU+CiAgICAgICAgICAgICAgICAgICAgPHJlY3QgaWQ9IuefqeW9oiIgZmlsbD0iI0ZGRkZGRiIgeD0iOS43NSIgeT0iNS4yNSIgd2lkdGg9IjEuNSIgaGVpZ2h0PSI3LjUiPjwvcmVjdD4KICAgICAgICAgICAgICAgICAgICA8Y2lyY2xlIGlkPSLmpK3lnIblvaIiIGZpbGw9IiNGRkZGRkYiIGN4PSIxMC41IiBjeT0iMTUiIHI9IjEiPjwvY2lyY2xlPgogICAgICAgICAgICAgICAgPC9nPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4=)}.mentioned{color:red}.latest-message i{font-style:normal}',Gi=function(e){Dr(n,e);var t=Ur(n);function n(){var e;return Fr(this,n),e=t.call(this),e.__registerHost(),e.selectConversation=Ae(Pr(e),"selectConversation",7),e.isHover=!1,e.draft="",e.lang=di.lang,e.selectHandler=e.selectHandler.bind(Pr(e)),e.handleSwitchConversation=e.handleSwitchConversation.bind(Pr(e)),e.handleLanguageChanged=e.handleLanguageChanged.bind(Pr(e)),e}return $r(n,[{key:"componentWillLoad",value:function(){di.on(Cr.SWITCH_CONVERSATION,this.handleSwitchConversation),di.off(Cr.LANGUAGE_CHANGED,this.handleLanguageChanged),di.on(Cr.LANGUAGE_CHANGED,this.handleLanguageChanged)}},{key:"componentDidUpdate",value:function(){di.off(Cr.SWITCH_CONVERSATION,this.handleSwitchConversation),di.on(Cr.SWITCH_CONVERSATION,this.handleSwitchConversation),di.off(Cr.LANGUAGE_CHANGED,this.handleLanguageChanged),di.on(Cr.LANGUAGE_CHANGED,this.handleLanguageChanged)}},{key:"disconnectedCallback",value:function(){di.off(Cr.SWITCH_CONVERSATION,this.handleSwitchConversation),di.off(Cr.LANGUAGE_CHANGED,this.handleLanguageChanged)}},{key:"handleSwitchConversation",value:function(){var e=this;this.locale=this.lang?Ni[this.lang]:Ni.zh_CN,di.currentConversation&&Zr(di.currentConversation,this.data.conversation)?this.draft="":In(this.data.conversation).then((function(t){if(0===t.code&&t.data){var n=document.createElement("div");n.innerHTML=t.data;var r="["+e.locale.conversation.draft+"]";e.draft=W("span",null,W("i",{style:{color:"red"}},r," ")," ",n.innerText)}else e.draft=""}))}},{key:"getLatestMessage",value:function(e,t){var n=this;if(!e)return"";var r="",i=0!=this.data.conversation.unreadMessageCount&&(!di.currentConversation||!Zr(di.currentConversation,this.data.conversation));if(i){var o="["+t.conversation.atMe+"]";this.data.conversation.hasMentioned&&(r=W("span",{class:"mentioned"},o))}var s="",a="";e.messageDirection===Ct["m"].SEND&&(e.messageUId.startsWith("fail_")?a="fail":e.messageUId.startsWith("sending_")?a="sending":e.conversationType===Ct["e"].PRIVATE&&"polyfill"!==e.messageType&&(s=e.receivedStatus===Ct["r"].UNREAD?"["+t.conversation.unread+"]":"["+t.conversation.read+"]"));var c="";switch(e.messageType){case Er.TEXT:c=e.content.content;break;case Er.FILE:var u="["+t.conversation.file+"]";c=u;break;case Er.IMAGE:var l="["+t.conversation.img+"]";c=l;break;case Er.LOCATION:var f="["+t.conversation.location+"]";c=f;break;case Er.SIGHT:var h="["+t.conversation.video+"]";c=h;break;case Er.HQ_VOICE:var d="["+t.conversation.audio+"]";c=d;break;case Er.REFERENCE:var p="["+t.conversation.quote+"]";c=p;break;case Er.RECALL_MESSAGE_TYPE:var g=t.conversation.recall,v=t.conversation.you,y=e.messageDirection===Ct["m"].SEND,m=y?v:"";e.conversationType!==Ct["e"].PRIVATE||y?e.conversationType===Ct["e"].GROUP&&di.getGroupMemberProfile({targetId:e.targetId,conversationType:Ct["e"].GROUP,channelId:e.channelId},e.senderUserId).then((function(t){m=t&&(t.groupNickname||t.name)||e.senderUserId,n.nameRef.innerText=m+" "+g})):di.getConversationProfile({targetId:e.targetId,conversationType:Ct["e"].PRIVATE,channelId:e.channelId}).then((function(t){m=t?t.name:e.senderUserId,n.nameRef.innerText=m+" "+g})),c=m+g,s="";break;default:di.isCustomLastMessage(e)&&(c=di.createCustomLastMessageDom(e)?di.createCustomLastMessageDom(e):"")}return c=c.replace(/[\r\n]/g,""),this.nameRef&&(this.nameRef.innerText=" "+c),W("div",{class:a},r,W("span",{class:"ellipsis"},s,W("span",{ref:function(e){return n.nameRef=e}}," "+c)))}},{key:"selectHandler",value:function(e){2!==e.button&&this.selectConversation.emit({conversationType:this.data.conversation.conversationType,targetId:this.data.conversation.targetId,channelId:this.data.conversation.channelId})}},{key:"conversationFormatTime",value:function(e,t){if(e)return Ui(e.sentTime,{hour:":",minute:""},t)}},{key:"handleLanguageChanged",value:function(e){this.lang=e.lang,this.handleSwitchConversation()}},{key:"render",value:function(){var e,t,n;this.locale=this.lang?Ni[this.lang]:Ni.zh_CN;var r=this.data,i=this.isHover,o=this.locale;return W("div",{class:"conversation-item "+(r.conversation.isTop?"top-item":"untop-item")+(i?" hover":""),key:r.conversation.targetId+"&&"+r.conversation.conversationType+"&&"+r.conversation.channelId,onMouseUp:this.selectHandler},W("div",{class:"user-avatar"},W("div",{class:"avatar-image"},null!==(e=r.profile)&&void 0!==e&&e.portraitUri?W("img",{src:r.profile.portraitUri}):null),r.conversation.unreadMessageCount?W("span",{class:"message-count"},r.conversation.unreadMessageCount):null),W("div",{class:"conversation-info"},W("div",{class:"info-block"},W("div",{class:"user-name"},W("span",null,null!==(t=r.profile)&&void 0!==t&&t.name?null===(n=r.profile)||void 0===n?void 0:n.name:r.conversation.targetId)),W("div",{class:"last-time"},this.conversationFormatTime(r.conversation.latestMessage,o))),W("div",{class:"info-block"},W("div",{class:"latest-message"},W("div",null,this.draft?this.draft:this.getLatestMessage(r.conversation.latestMessage,o))),W("div",{class:"notification"},r.conversation.notificationStatus===Ct["q"].OPEN?W("span",{class:"disable"}):null))))}}],[{key:"style",get:function(){return zi}}]),n}(Sr(HTMLElement)),Bi=function(e,t){return Bi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},Bi(e,t)};function Vi(e,t){function n(){this.constructor=e}Bi(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var Yi=function(){return Yi=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Yi.apply(this,arguments)};function Hi(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,i++)r[i]=o[s];return r}var Fi=[{sourceKey:"scroller.scrollBehaviorX.currentPos",key:"x"},{sourceKey:"scroller.scrollBehaviorY.currentPos",key:"y"},{sourceKey:"scroller.scrollBehaviorX.hasScroll",key:"hasHorizontalScroll"},{sourceKey:"scroller.scrollBehaviorY.hasScroll",key:"hasVerticalScroll"},{sourceKey:"scroller.scrollBehaviorX.contentSize",key:"scrollerWidth"},{sourceKey:"scroller.scrollBehaviorY.contentSize",key:"scrollerHeight"},{sourceKey:"scroller.scrollBehaviorX.maxScrollPos",key:"maxScrollX"},{sourceKey:"scroller.scrollBehaviorY.maxScrollPos",key:"maxScrollY"},{sourceKey:"scroller.scrollBehaviorX.minScrollPos",key:"minScrollX"},{sourceKey:"scroller.scrollBehaviorY.minScrollPos",key:"minScrollY"},{sourceKey:"scroller.scrollBehaviorX.movingDirection",key:"movingDirectionX"},{sourceKey:"scroller.scrollBehaviorY.movingDirection",key:"movingDirectionY"},{sourceKey:"scroller.scrollBehaviorX.direction",key:"directionX"},{sourceKey:"scroller.scrollBehaviorY.direction",key:"directionY"},{sourceKey:"scroller.actions.enabled",key:"enabled"},{sourceKey:"scroller.animater.pending",key:"pending"},{sourceKey:"scroller.animater.stop",key:"stop"},{sourceKey:"scroller.scrollTo",key:"scrollTo"},{sourceKey:"scroller.scrollBy",key:"scrollBy"},{sourceKey:"scroller.scrollToElement",key:"scrollToElement"},{sourceKey:"scroller.resetPosition",key:"resetPosition"}];function Qi(e){console.error("[BScroll warn]: "+e)}var $i="undefined"!==typeof window,Ki=$i&&navigator.userAgent.toLowerCase(),Wi=!(!Ki||!/wechatdevtools/.test(Ki)),qi=Ki&&Ki.indexOf("android")>0,Zi=function(){if("string"===typeof Ki){var e=/os (\d\d?_\d(_\d)?)/,t=e.exec(Ki);if(!t)return!1;var n=t[1].split("_").map((function(e){return parseInt(e,10)}));return!!(13===n[0]&&n[1]>=4)}return!1}(),Ji=!1;if($i){var Xi="test-passive";try{var eo={};Object.defineProperty(eo,"passive",{get:function(){Ji=!0}}),window.addEventListener(Xi,(function(){}),eo)}catch(sc){}}function to(){return window.performance&&window.performance.now&&window.performance.timing?window.performance.now()+window.performance.timing.navigationStart:+new Date}var no=function(e,t){for(var n in t)e[n]=t[n];return e};function ro(e){return void 0===e||null===e}function io(e,t,n){return e<t?t:e>n?n:e}var oo=$i&&document.createElement("div").style,so=function(){if(!$i)return!1;for(var e=[{key:"standard",value:"transform"},{key:"webkit",value:"webkitTransform"},{key:"Moz",value:"MozTransform"},{key:"O",value:"OTransform"},{key:"ms",value:"msTransform"}],t=0,n=e;t<n.length;t++){var r=n[t];if(void 0!==oo[r.value])return r.key}return!1}();function ao(e){return!1===so?e:"standard"===so?"transitionEnd"===e?"transitionend":e:so+e.charAt(0).toUpperCase()+e.substr(1)}function co(e){return"string"===typeof e?document.querySelector(e):e}function uo(e,t,n,r){var i=Ji?{passive:!1,capture:!!r}:!!r;e.addEventListener(t,n,i)}function lo(e,t,n,r){e.removeEventListener(t,n,{capture:!!r})}function fo(e){var t=0,n=0;while(e)t-=e.offsetLeft,n-=e.offsetTop,e=e.offsetParent;return{left:t,top:n}}so&&"standard"!==so&&so.toLowerCase();var ho=ao("transform"),po=ao("transition"),go=$i&&ao("perspective")in oo,vo=$i&&("ontouchstart"in window||Wi),yo=$i&&po in oo,mo={transform:ho,transition:po,transitionTimingFunction:ao("transitionTimingFunction"),transitionDuration:ao("transitionDuration"),transitionDelay:ao("transitionDelay"),transformOrigin:ao("transformOrigin"),transitionEnd:ao("transitionEnd"),transitionProperty:ao("transitionProperty")},Io={touchstart:1,touchmove:1,touchend:1,touchcancel:1,mousedown:2,mousemove:2,mouseup:2};function _o(e){if(e instanceof window.SVGElement){var t=e.getBoundingClientRect();return{top:t.top,left:t.left,width:t.width,height:t.height}}return{top:e.offsetTop,left:e.offsetLeft,width:e.offsetWidth,height:e.offsetHeight}}function To(e,t){for(var n in t)if(t[n].test(e[n]))return!0;return!1}var Co=To;function Mo(e,t){var n=document.createEvent("Event");n.initEvent(t,!0,!0),n.pageX=e.pageX,n.pageY=e.pageY,e.target.dispatchEvent(n)}function Eo(e,t){var n;void 0===t&&(t="click"),"mouseup"===e.type?n=e:"touchend"!==e.type&&"touchcancel"!==e.type||(n=e.changedTouches[0]);var r,i={};n&&(i.screenX=n.screenX||0,i.screenY=n.screenY||0,i.clientX=n.clientX||0,i.clientY=n.clientY||0);var o=!0,s=!0,a=e.ctrlKey,c=e.shiftKey,u=e.altKey,l=e.metaKey,f={ctrlKey:a,shiftKey:c,altKey:u,metaKey:l};if("undefined"!==typeof MouseEvent)try{r=new MouseEvent(t,no(Yi({bubbles:o,cancelable:s},f),i))}catch(e){h()}else h();function h(){r=document.createEvent("Event"),r.initEvent(t,o,s),no(r,i)}r.forwardedTouchEvent=!0,r._constructed=!0,e.target.dispatchEvent(r)}function Ao(e){Eo(e,"dblclick")}var So={swipe:{style:"cubic-bezier(0.23, 1, 0.32, 1)",fn:function(e){return 1+--e*e*e*e*e}},swipeBounce:{style:"cubic-bezier(0.25, 0.46, 0.45, 0.94)",fn:function(e){return e*(2-e)}},bounce:{style:"cubic-bezier(0.165, 0.84, 0.44, 1)",fn:function(e){return 1- --e*e*e*e}}},No=1e3/60,bo=$i&&window;function wo(){}var Oo=function(){return $i?bo.requestAnimationFrame||bo.webkitRequestAnimationFrame||bo.mozRequestAnimationFrame||bo.oRequestAnimationFrame||function(e){return window.setTimeout(e,e.interval||No)}:wo}(),Ro=function(){return $i?bo.cancelAnimationFrame||bo.webkitCancelAnimationFrame||bo.mozCancelAnimationFrame||bo.oCancelAnimationFrame||function(e){window.clearTimeout(e)}:wo}(),Do=function(e){},Lo={enumerable:!0,configurable:!0,get:Do,set:Do},Uo=function(e,t){for(var n=t.split("."),r=0;r<n.length-1;r++)if(e=e[n[r]],"object"!==Ar(e)||!e)return;var i=n.pop();return"function"===typeof e[i]?function(){return e[i].apply(e,arguments)}:e[i]},xo=function(e,t,n){for(var r,i=t.split("."),o=0;o<i.length-1;o++)r=i[o],e[r]||(e[r]={}),e=e[r];e[i.pop()]=n};function Po(e,t,n){Lo.get=function(){return Uo(this,t)},Lo.set=function(e){xo(this,t,e)},Object.defineProperty(e,n,Lo)}var jo=function(){function e(e){this.events={},this.eventTypes={},this.registerType(e)}return e.prototype.on=function(e,t,n){return void 0===n&&(n=this),this.hasType(e),this.events[e]||(this.events[e]=[]),this.events[e].push([t,n]),this},e.prototype.once=function(e,t,n){var r=this;void 0===n&&(n=this),this.hasType(e);var i=function i(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];r.off(e,i);var a=t.apply(n,o);if(!0===a)return a};return i.fn=t,this.on(e,i),this},e.prototype.off=function(e,t){if(!e&&!t)return this.events={},this;if(e){if(this.hasType(e),!t)return this.events[e]=[],this;var n=this.events[e];if(!n)return this;var r=n.length;while(r--)(n[r][0]===t||n[r][0]&&n[r][0].fn===t)&&n.splice(r,1);return this}},e.prototype.trigger=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this.hasType(e);var r=this.events[e];if(r)for(var i,o=r.length,s=Hi(r),a=0;a<o;a++){var c=s[a],u=c[0],l=c[1];if(u&&(i=u.apply(l,t),!0===i))return i}},e.prototype.registerType=function(e){var t=this;e.forEach((function(e){t.eventTypes[e]=e}))},e.prototype.destroy=function(){this.events={},this.eventTypes={}},e.prototype.hasType=function(e){var t=this.eventTypes,n=t[e]===e;n||Qi('EventEmitter has used unknown event type: "'+e+'", should be oneof ['+Object.keys(t).map((function(e){return JSON.stringify(e)}))+"]")},e}(),ko=function(){function e(e,t){this.wrapper=e,this.events=t,this.addDOMEvents()}return e.prototype.destroy=function(){this.removeDOMEvents(),this.events=[]},e.prototype.addDOMEvents=function(){this.handleDOMEvents(uo)},e.prototype.removeDOMEvents=function(){this.handleDOMEvents(lo)},e.prototype.handleDOMEvents=function(e){var t=this,n=this.wrapper;this.events.forEach((function(r){e(n,r.name,t,!!r.capture)}))},e.prototype.handleEvent=function(e){var t=e.type;this.events.some((function(n){return n.name===t&&(n.handler(e),!0)}))},e}(),zo=function(){function e(){}return e}(),Go=function(e){function t(){var t=e.call(this)||this;return t.startX=0,t.startY=0,t.scrollX=!1,t.scrollY=!0,t.freeScroll=!1,t.directionLockThreshold=0,t.eventPassthrough="",t.click=!1,t.dblclick=!1,t.tap="",t.bounce={top:!0,bottom:!0,left:!0,right:!0},t.bounceTime=800,t.momentum=!0,t.momentumLimitTime=300,t.momentumLimitDistance=15,t.swipeTime=2500,t.swipeBounceTime=500,t.deceleration=.0015,t.flickLimitTime=200,t.flickLimitDistance=100,t.resizePolling=60,t.probeType=0,t.stopPropagation=!1,t.preventDefault=!0,t.preventDefaultException={tagName:/^(INPUT|TEXTAREA|BUTTON|SELECT|AUDIO)$/},t.tagException={tagName:/^TEXTAREA$/},t.HWCompositing=!0,t.useTransition=!0,t.bindToWrapper=!1,t.bindToTarget=!1,t.disableMouse=vo,t.disableTouch=!vo,t.autoBlur=!0,t.autoEndDistance=5,t.outOfBoundaryDampingFactor=1/3,t.specifiedIndexAsContent=0,t.quadrant=1,t}return Vi(t,e),t.prototype.merge=function(e){if(!e)return this;for(var t in e)"bounce"!==t?this[t]=e[t]:this.bounce=this.resolveBounce(e[t]);return this},t.prototype.process=function(){return this.translateZ=this.HWCompositing&&go?" translateZ(1px)":"",this.useTransition=this.useTransition&&yo,this.preventDefault=!this.eventPassthrough&&this.preventDefault,this.scrollX="horizontal"!==this.eventPassthrough&&this.scrollX,this.scrollY="vertical"!==this.eventPassthrough&&this.scrollY,this.freeScroll=this.freeScroll&&!this.eventPassthrough,this.scrollX=!!this.freeScroll||this.scrollX,this.scrollY=!!this.freeScroll||this.scrollY,this.directionLockThreshold=this.eventPassthrough?0:this.directionLockThreshold,this},t.prototype.resolveBounce=function(e){var t,n={top:!0,right:!0,bottom:!0,left:!0},r={top:!1,right:!1,bottom:!1,left:!1};return t="object"===Ar(e)?no(n,e):e?n:r,t},t}(zo),Bo=function(){function e(e,t){this.wrapper=e,this.options=t,this.hooks=new jo(["beforeStart","start","move","end","click"]),this.handleDOMEvents()}return e.prototype.handleDOMEvents=function(){var e=this.options,t=e.bindToWrapper,n=e.disableMouse,r=e.disableTouch,i=e.click,o=this.wrapper,s=t?o:window,a=[],c=[],u=!r,l=!n;i&&a.push({name:"click",handler:this.click.bind(this),capture:!0}),u&&(a.push({name:"touchstart",handler:this.start.bind(this)}),c.push({name:"touchmove",handler:this.move.bind(this)},{name:"touchend",handler:this.end.bind(this)},{name:"touchcancel",handler:this.end.bind(this)})),l&&(a.push({name:"mousedown",handler:this.start.bind(this)}),c.push({name:"mousemove",handler:this.move.bind(this)},{name:"mouseup",handler:this.end.bind(this)})),this.wrapperEventRegister=new ko(o,a),this.targetEventRegister=new ko(s,c)},e.prototype.beforeHandler=function(e,t){var n=this.options,r=n.preventDefault,i=n.stopPropagation,o=n.preventDefaultException,s={start:function(){return r&&!To(e.target,o)},end:function(){return r&&!To(e.target,o)},move:function(){return r}};s[t]()&&e.preventDefault(),i&&e.stopPropagation()},e.prototype.setInitiated=function(e){void 0===e&&(e=0),this.initiated=e},e.prototype.start=function(e){var t=Io[e.type];if(!this.initiated||this.initiated===t)if(this.setInitiated(t),Co(e.target,this.options.tagException))this.setInitiated();else if((2!==t||0===e.button)&&!this.hooks.trigger(this.hooks.eventTypes.beforeStart,e)){this.beforeHandler(e,"start");var n=e.touches?e.touches[0]:e;this.pointX=n.pageX,this.pointY=n.pageY,this.hooks.trigger(this.hooks.eventTypes.start,e)}},e.prototype.move=function(e){if(Io[e.type]===this.initiated){this.beforeHandler(e,"move");var t=e.touches?e.touches[0]:e,n=t.pageX-this.pointX,r=t.pageY-this.pointY;if(this.pointX=t.pageX,this.pointY=t.pageY,!this.hooks.trigger(this.hooks.eventTypes.move,{deltaX:n,deltaY:r,e:e})){var i=document.documentElement.scrollLeft||window.pageXOffset||document.body.scrollLeft,o=document.documentElement.scrollTop||window.pageYOffset||document.body.scrollTop,s=this.pointX-i,a=this.pointY-o,c=this.options.autoEndDistance;(s>document.documentElement.clientWidth-c||a>document.documentElement.clientHeight-c||s<c||a<c)&&this.end(e)}}},e.prototype.end=function(e){Io[e.type]===this.initiated&&(this.setInitiated(),this.beforeHandler(e,"end"),this.hooks.trigger(this.hooks.eventTypes.end,e))},e.prototype.click=function(e){this.hooks.trigger(this.hooks.eventTypes.click,e)},e.prototype.setContent=function(e){e!==this.wrapper&&(this.wrapper=e,this.rebindDOMEvents())},e.prototype.rebindDOMEvents=function(){this.wrapperEventRegister.destroy(),this.targetEventRegister.destroy(),this.handleDOMEvents()},e.prototype.destroy=function(){this.wrapperEventRegister.destroy(),this.targetEventRegister.destroy(),this.hooks.destroy()},e}(),Vo={x:["translateX","px"],y:["translateY","px"]},Yo=function(){function e(e){this.setContent(e),this.hooks=new jo(["beforeTranslate","translate"])}return e.prototype.getComputedPosition=function(){var e=window.getComputedStyle(this.content,null),t=e[mo.transform].split(")")[0].split(", "),n=+(t[12]||t[4])||0,r=+(t[13]||t[5])||0;return{x:n,y:r}},e.prototype.translate=function(e){var t=[];Object.keys(e).forEach((function(n){if(Vo[n]){var r=Vo[n][0];if(r){var i=Vo[n][1],o=e[n];t.push(r+"("+o+i+")")}}})),this.hooks.trigger(this.hooks.eventTypes.beforeTranslate,t,e),this.style[mo.transform]=t.join(" "),this.hooks.trigger(this.hooks.eventTypes.translate,e)},e.prototype.setContent=function(e){this.content!==e&&(this.content=e,this.style=e.style)},e.prototype.destroy=function(){this.hooks.destroy()},e}(),Ho=function(){function e(e,t,n){this.translater=t,this.options=n,this.timer=0,this.hooks=new jo(["move","end","beforeForceStop","forceStop","callStop","time","timeFunction"]),this.setContent(e)}return e.prototype.translate=function(e){this.translater.translate(e)},e.prototype.setPending=function(e){this.pending=e},e.prototype.setForceStopped=function(e){this.forceStopped=e},e.prototype.setCallStop=function(e){this.callStopWhenPending=e},e.prototype.setContent=function(e){this.content!==e&&(this.content=e,this.style=e.style,this.stop())},e.prototype.clearTimer=function(){this.timer&&(Ro(this.timer),this.timer=0)},e.prototype.destroy=function(){this.hooks.destroy(),Ro(this.timer)},e}(),Fo=function(e,t,n,r){var i=function(e,t){var n=e-t,r=n>0?-1:n<0?1:0;return r},o=i(t.x,e.x),s=i(t.y,e.y),a=n.x-r.x,c=n.y-r.y;return o*a<=0&&s*c<=0},Qo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Vi(t,e),t.prototype.startProbe=function(e,t){var n=this,r=e,i=function i(){var o=n.translater.getComputedPosition();Fo(e,t,o,r)&&n.hooks.trigger(n.hooks.eventTypes.move,o),n.pending||(n.callStopWhenPending?n.callStopWhenPending=!1:n.hooks.trigger(n.hooks.eventTypes.end,o)),r=o,n.pending&&(n.timer=Oo(i))};this.callStopWhenPending&&this.setCallStop(!1),Ro(this.timer),i()},t.prototype.transitionTime=function(e){void 0===e&&(e=0),this.style[mo.transitionDuration]=e+"ms",this.hooks.trigger(this.hooks.eventTypes.time,e)},t.prototype.transitionTimingFunction=function(e){this.style[mo.transitionTimingFunction]=e,this.hooks.trigger(this.hooks.eventTypes.timeFunction,e)},t.prototype.transitionProperty=function(){this.style[mo.transitionProperty]=mo.transform},t.prototype.move=function(e,t,n,r){this.setPending(n>0),this.transitionTimingFunction(r),this.transitionProperty(),this.transitionTime(n),this.translate(t);var i=3===this.options.probeType;n&&i&&this.startProbe(e,t),n||(this._reflow=this.content.offsetHeight,i&&this.hooks.trigger(this.hooks.eventTypes.move,t),this.hooks.trigger(this.hooks.eventTypes.end,t))},t.prototype.doStop=function(){var e=this.pending;if(this.setForceStopped(!1),this.setCallStop(!1),e){this.setPending(!1),Ro(this.timer);var t=this.translater.getComputedPosition(),n=t.x,r=t.y;this.transitionTime(),this.translate({x:n,y:r}),this.setForceStopped(!0),this.setCallStop(!0),this.hooks.trigger(this.hooks.eventTypes.forceStop,{x:n,y:r})}return e},t.prototype.stop=function(){var e=this.doStop();e&&this.hooks.trigger(this.hooks.eventTypes.callStop)},t}(Ho),$o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Vi(t,e),t.prototype.move=function(e,t,n,r){if(!n)return this.translate(t),3===this.options.probeType&&this.hooks.trigger(this.hooks.eventTypes.move,t),void this.hooks.trigger(this.hooks.eventTypes.end,t);this.animate(e,t,n,r)},t.prototype.animate=function(e,t,n,r){var i=this,o=to(),s=o+n,a=3===this.options.probeType,c=function c(){var u=to();if(u>=s)return i.translate(t),a&&i.hooks.trigger(i.hooks.eventTypes.move,t),void i.hooks.trigger(i.hooks.eventTypes.end,t);u=(u-o)/n;var l=r(u),f={};Object.keys(t).forEach((function(n){var r=e[n],i=t[n];f[n]=(i-r)*l+r})),i.translate(f),a&&i.hooks.trigger(i.hooks.eventTypes.move,f),i.pending&&(i.timer=Oo(c)),i.pending||(i.callStopWhenPending?i.callStopWhenPending=!1:i.hooks.trigger(i.hooks.eventTypes.end,t))};this.setPending(!0),this.callStopWhenPending&&this.setCallStop(!1),Ro(this.timer),c()},t.prototype.doStop=function(){var e=this.pending;if(this.setForceStopped(!1),this.setCallStop(!1),e){this.setPending(!1),Ro(this.timer);var t=this.translater.getComputedPosition();this.setForceStopped(!0),this.setCallStop(!0),this.hooks.trigger(this.hooks.eventTypes.forceStop,t)}return e},t.prototype.stop=function(){var e=this.doStop();e&&this.hooks.trigger(this.hooks.eventTypes.callStop)},t}(Ho);function Ko(e,t,n){var r=n.useTransition,i={};return Object.defineProperty(i,"probeType",{enumerable:!0,configurable:!1,get:function(){return n.probeType}}),r?new Qo(e,t,i):new $o(e,t,i)}var Wo,qo,Zo,Jo,Xo=function(){function e(e,t,n){this.wrapper=e,this.options=n,this.hooks=new jo(["beforeComputeBoundary","computeBoundary","momentum","end","ignoreHasScroll"]),this.refresh(t)}return e.prototype.start=function(){this.dist=0,this.setMovingDirection(0),this.setDirection(0)},e.prototype.move=function(e){return e=this.hasScroll?e:0,this.setMovingDirection(e),this.performDampingAlgorithm(e,this.options.outOfBoundaryDampingFactor)},e.prototype.setMovingDirection=function(e){this.movingDirection=e>0?-1:e<0?1:0},e.prototype.setDirection=function(e){this.direction=e>0?-1:e<0?1:0},e.prototype.performDampingAlgorithm=function(e,t){var n=this.currentPos+e;return(n>this.minScrollPos||n<this.maxScrollPos)&&(n=n>this.minScrollPos&&this.options.bounces[0]||n<this.maxScrollPos&&this.options.bounces[1]?this.currentPos+e*t:n>this.minScrollPos?this.minScrollPos:this.maxScrollPos),n},e.prototype.end=function(e){var t={duration:0},n=Math.abs(this.currentPos-this.startPos);if(this.options.momentum&&e<this.options.momentumLimitTime&&n>this.options.momentumLimitDistance){var r=-1===this.direction&&this.options.bounces[0]||1===this.direction&&this.options.bounces[1]?this.wrapperSize:0;t=this.hasScroll?this.momentum(this.currentPos,this.startPos,e,this.maxScrollPos,this.minScrollPos,r,this.options):{destination:this.currentPos,duration:0}}else this.hooks.trigger(this.hooks.eventTypes.end,t);return t},e.prototype.momentum=function(e,t,n,r,i,o,s){void 0===s&&(s=this.options);var a=e-t,c=Math.abs(a)/n,u=s.deceleration,l=s.swipeBounceTime,f=s.swipeTime,h=Math.min(f,2*c/u),d={destination:e+c*c/u*(a<0?-1:1),duration:h,rate:15};return this.hooks.trigger(this.hooks.eventTypes.momentum,d,a),d.destination<r?(d.destination=o?Math.max(r-o/4,r-o/d.rate*c):r,d.duration=l):d.destination>i&&(d.destination=o?Math.min(i+o/4,i+o/d.rate*c):i,d.duration=l),d.destination=Math.round(d.destination),d},e.prototype.updateDirection=function(){var e=this.currentPos-this.absStartPos;this.setDirection(e)},e.prototype.refresh=function(e){var t=this.options.rect,n=t.size,r=t.position,i="static"===window.getComputedStyle(this.wrapper,null).position,o=_o(this.wrapper);this.wrapperSize=this.wrapper["width"===n?"clientWidth":"clientHeight"],this.setContent(e);var s=_o(this.content);this.contentSize=s[n],this.relativeOffset=s[r],i&&(this.relativeOffset-=o[r]),this.computeBoundary(),this.setDirection(0)},e.prototype.setContent=function(e){e!==this.content&&(this.content=e,this.resetState())},e.prototype.resetState=function(){this.currentPos=0,this.startPos=0,this.dist=0,this.setDirection(0),this.setMovingDirection(0),this.resetStartPos()},e.prototype.computeBoundary=function(){this.hooks.trigger(this.hooks.eventTypes.beforeComputeBoundary);var e={minScrollPos:0,maxScrollPos:this.wrapperSize-this.contentSize};e.maxScrollPos<0&&(e.maxScrollPos-=this.relativeOffset,0===this.options.specifiedIndexAsContent&&(e.minScrollPos=-this.relativeOffset)),this.hooks.trigger(this.hooks.eventTypes.computeBoundary,e),this.minScrollPos=e.minScrollPos,this.maxScrollPos=e.maxScrollPos,this.hasScroll=this.options.scrollable&&this.maxScrollPos<this.minScrollPos,!this.hasScroll&&this.minScrollPos<this.maxScrollPos&&(this.maxScrollPos=this.minScrollPos,this.contentSize=this.wrapperSize)},e.prototype.updatePosition=function(e){this.currentPos=e},e.prototype.getCurrentPos=function(){return this.currentPos},e.prototype.checkInBoundary=function(){var e=this.adjustPosition(this.currentPos),t=e===this.getCurrentPos();return{position:e,inBoundary:t}},e.prototype.adjustPosition=function(e){return this.hasScroll||this.hooks.trigger(this.hooks.eventTypes.ignoreHasScroll)?e>this.minScrollPos?e=this.minScrollPos:e<this.maxScrollPos&&(e=this.maxScrollPos):e=this.minScrollPos,e},e.prototype.updateStartPos=function(){this.startPos=this.currentPos},e.prototype.updateAbsStartPos=function(){this.absStartPos=this.currentPos},e.prototype.resetStartPos=function(){this.updateStartPos(),this.updateAbsStartPos()},e.prototype.getAbsDist=function(e){return this.dist+=e,Math.abs(this.dist)},e.prototype.destroy=function(){this.hooks.destroy()},e}(),es=(Wo={},Wo["yes"]=function(e){return!0},Wo["no"]=function(e){return e.preventDefault(),!1},Wo),ts=(qo={},qo["horizontal"]=(Zo={},Zo["yes"]="horizontal",Zo["no"]="vertical",Zo),qo["vertical"]=(Jo={},Jo["yes"]="vertical",Jo["no"]="horizontal",Jo),qo),ns=function(){function e(e,t,n){this.directionLockThreshold=e,this.freeScroll=t,this.eventPassthrough=n,this.reset()}return e.prototype.reset=function(){this.directionLocked=""},e.prototype.checkMovingDirection=function(e,t,n){return this.computeDirectionLock(e,t),this.handleEventPassthrough(n)},e.prototype.adjustDelta=function(e,t){return"horizontal"===this.directionLocked?t=0:"vertical"===this.directionLocked&&(e=0),{deltaX:e,deltaY:t}},e.prototype.computeDirectionLock=function(e,t){""!==this.directionLocked||this.freeScroll||(e>t+this.directionLockThreshold?this.directionLocked="horizontal":t>=e+this.directionLockThreshold?this.directionLocked="vertical":this.directionLocked="none")},e.prototype.handleEventPassthrough=function(e){var t=ts[this.directionLocked];if(t){if(this.eventPassthrough===t["yes"])return es["yes"](e);if(this.eventPassthrough===t["no"])return es["no"](e)}return!1},e}(),rs=function(e,t,n){return 2===n?[t,-e]:3===n?[-e,-t]:4===n?[-t,e]:[e,t]},is=function(){function e(e,t,n,r,i){this.hooks=new jo(["start","beforeMove","scrollStart","scroll","beforeEnd","end","scrollEnd","contentNotMoved","detectMovingDirection","coordinateTransformation"]),this.scrollBehaviorX=e,this.scrollBehaviorY=t,this.actionsHandler=n,this.animater=r,this.options=i,this.directionLockAction=new ns(i.directionLockThreshold,i.freeScroll,i.eventPassthrough),this.enabled=!0,this.bindActionsHandler()}return e.prototype.bindActionsHandler=function(){var e=this;this.actionsHandler.hooks.on(this.actionsHandler.hooks.eventTypes.start,(function(t){return!e.enabled||e.handleStart(t)})),this.actionsHandler.hooks.on(this.actionsHandler.hooks.eventTypes.move,(function(t){var n=t.deltaX,r=t.deltaY,i=t.e;if(!e.enabled)return!0;var o=rs(n,r,e.options.quadrant),s=o[0],a=o[1],c={deltaX:s,deltaY:a};return e.hooks.trigger(e.hooks.eventTypes.coordinateTransformation,c),e.handleMove(c.deltaX,c.deltaY,i)})),this.actionsHandler.hooks.on(this.actionsHandler.hooks.eventTypes.end,(function(t){return!e.enabled||e.handleEnd(t)})),this.actionsHandler.hooks.on(this.actionsHandler.hooks.eventTypes.click,(function(t){e.enabled&&!t._constructed&&e.handleClick(t)}))},e.prototype.handleStart=function(e){var t=to();this.fingerMoved=!1,this.contentMoved=!1,this.startTime=t,this.directionLockAction.reset(),this.scrollBehaviorX.start(),this.scrollBehaviorY.start(),this.animater.doStop(),this.scrollBehaviorX.resetStartPos(),this.scrollBehaviorY.resetStartPos(),this.hooks.trigger(this.hooks.eventTypes.start,e)},e.prototype.handleMove=function(e,t,n){if(!this.hooks.trigger(this.hooks.eventTypes.beforeMove,n)){var r=this.scrollBehaviorX.getAbsDist(e),i=this.scrollBehaviorY.getAbsDist(t),o=to();if(this.checkMomentum(r,i,o))return!0;if(this.directionLockAction.checkMovingDirection(r,i,n))return this.actionsHandler.setInitiated(),!0;var s=this.directionLockAction.adjustDelta(e,t),a=this.scrollBehaviorX.getCurrentPos(),c=this.scrollBehaviorX.move(s.deltaX),u=this.scrollBehaviorY.getCurrentPos(),l=this.scrollBehaviorY.move(s.deltaY);if(!this.hooks.trigger(this.hooks.eventTypes.detectMovingDirection)){this.fingerMoved||(this.fingerMoved=!0);var f=c!==a||l!==u;this.contentMoved||f||this.hooks.trigger(this.hooks.eventTypes.contentNotMoved),!this.contentMoved&&f&&(this.contentMoved=!0,this.hooks.trigger(this.hooks.eventTypes.scrollStart)),this.contentMoved&&f&&(this.animater.translate({x:c,y:l}),this.dispatchScroll(o))}}},e.prototype.dispatchScroll=function(e){e-this.startTime>this.options.momentumLimitTime&&(this.startTime=e,this.scrollBehaviorX.updateStartPos(),this.scrollBehaviorY.updateStartPos(),1===this.options.probeType&&this.hooks.trigger(this.hooks.eventTypes.scroll,this.getCurrentPos())),this.options.probeType>1&&this.hooks.trigger(this.hooks.eventTypes.scroll,this.getCurrentPos())},e.prototype.checkMomentum=function(e,t,n){return n-this.endTime>this.options.momentumLimitTime&&t<this.options.momentumLimitDistance&&e<this.options.momentumLimitDistance},e.prototype.handleEnd=function(e){if(!this.hooks.trigger(this.hooks.eventTypes.beforeEnd,e)){var t=this.getCurrentPos();if(this.scrollBehaviorX.updateDirection(),this.scrollBehaviorY.updateDirection(),this.hooks.trigger(this.hooks.eventTypes.end,e,t))return!0;t=this.ensureIntegerPos(t),this.animater.translate(t),this.endTime=to();var n=this.endTime-this.startTime;this.hooks.trigger(this.hooks.eventTypes.scrollEnd,t,n)}},e.prototype.ensureIntegerPos=function(e){this.ensuringInteger=!0;var t=e.x,n=e.y,r=this.scrollBehaviorX,i=r.minScrollPos,o=r.maxScrollPos,s=this.scrollBehaviorY,a=s.minScrollPos,c=s.maxScrollPos;return t=t>0?Math.ceil(t):Math.floor(t),n=n>0?Math.ceil(n):Math.floor(n),t=io(t,o,i),n=io(n,c,a),{x:t,y:n}},e.prototype.handleClick=function(e){To(e.target,this.options.preventDefaultException)||(e.preventDefault(),e.stopPropagation())},e.prototype.getCurrentPos=function(){return{x:this.scrollBehaviorX.getCurrentPos(),y:this.scrollBehaviorY.getCurrentPos()}},e.prototype.refresh=function(){this.endTime=0},e.prototype.destroy=function(){this.hooks.destroy()},e}();function os(e){var t=["click","bindToWrapper","disableMouse","disableTouch","preventDefault","stopPropagation","tagException","preventDefaultException","autoEndDistance"].reduce((function(t,n){return t[n]=e[n],t}),{});return t}function ss(e,t,n,r){var i=["momentum","momentumLimitTime","momentumLimitDistance","deceleration","swipeBounceTime","swipeTime","outOfBoundaryDampingFactor","specifiedIndexAsContent"].reduce((function(t,n){return t[n]=e[n],t}),{});return i.scrollable=!!e[t],i.bounces=n,i.rect=r,i}function as(e,t,n){n.forEach((function(n){var r,i;"string"===typeof n?r=i=n:(r=n.source,i=n.target),e.on(r,(function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t.trigger.apply(t,Hi([i],e))}))}))}function cs(e,t){for(var n=Object.keys(e),r=0,i=n;r<i.length;r++){var o=i[r];if(e[o]!==t[o])return!1}return!0}var us=1,ls=function(){function e(e,t,n){this.wrapper=e,this.content=t,this.resizeTimeout=0,this.hooks=new jo(["beforeStart","beforeMove","beforeScrollStart","scrollStart","scroll","beforeEnd","scrollEnd","resize","touchEnd","end","flick","scrollCancel","momentum","scrollTo","minDistanceScroll","scrollToElement","beforeRefresh"]),this.options=n;var r=this.options.bounce,i=r.left,o=r.right,s=r.top,a=r.bottom;this.scrollBehaviorX=new Xo(e,t,ss(n,"scrollX",[i,o],{size:"width",position:"left"})),this.scrollBehaviorY=new Xo(e,t,ss(n,"scrollY",[s,a],{size:"height",position:"top"})),this.translater=new Yo(this.content),this.animater=Ko(this.content,this.translater,this.options),this.actionsHandler=new Bo(this.options.bindToTarget?this.content:e,os(this.options)),this.actions=new is(this.scrollBehaviorX,this.scrollBehaviorY,this.actionsHandler,this.animater,this.options);var c=this.resize.bind(this);this.resizeRegister=new ko(window,[{name:"orientationchange",handler:c},{name:"resize",handler:c}]),this.registerTransitionEnd(),this.init()}return e.prototype.init=function(){var e=this;this.bindTranslater(),this.bindAnimater(),this.bindActions(),this.hooks.on(this.hooks.eventTypes.scrollEnd,(function(){e.togglePointerEvents(!0)}))},e.prototype.registerTransitionEnd=function(){this.transitionEndRegister=new ko(this.content,[{name:mo.transitionEnd,handler:this.transitionEnd.bind(this)}])},e.prototype.bindTranslater=function(){var e=this,t=this.translater.hooks;t.on(t.eventTypes.beforeTranslate,(function(t){e.options.translateZ&&t.push(e.options.translateZ)})),t.on(t.eventTypes.translate,(function(t){var n=e.getCurrentPos();e.updatePositions(t),!0!==e.actions.ensuringInteger?t.x===n.x&&t.y===n.y||e.togglePointerEvents(!1):e.actions.ensuringInteger=!1}))},e.prototype.bindAnimater=function(){var e=this;this.animater.hooks.on(this.animater.hooks.eventTypes.end,(function(t){e.resetPosition(e.options.bounceTime)||(e.animater.setPending(!1),e.hooks.trigger(e.hooks.eventTypes.scrollEnd,t))})),as(this.animater.hooks,this.hooks,[{source:this.animater.hooks.eventTypes.move,target:this.hooks.eventTypes.scroll},{source:this.animater.hooks.eventTypes.forceStop,target:this.hooks.eventTypes.scrollEnd}])},e.prototype.bindActions=function(){var e=this,t=this.actions;as(t.hooks,this.hooks,[{source:t.hooks.eventTypes.start,target:this.hooks.eventTypes.beforeStart},{source:t.hooks.eventTypes.start,target:this.hooks.eventTypes.beforeScrollStart},{source:t.hooks.eventTypes.beforeMove,target:this.hooks.eventTypes.beforeMove},{source:t.hooks.eventTypes.scrollStart,target:this.hooks.eventTypes.scrollStart},{source:t.hooks.eventTypes.scroll,target:this.hooks.eventTypes.scroll},{source:t.hooks.eventTypes.beforeEnd,target:this.hooks.eventTypes.beforeEnd}]),t.hooks.on(t.hooks.eventTypes.end,(function(n,r){return e.hooks.trigger(e.hooks.eventTypes.touchEnd,r),!!e.hooks.trigger(e.hooks.eventTypes.end,r)||(!(t.fingerMoved||(e.hooks.trigger(e.hooks.eventTypes.scrollCancel),!e.checkClick(n)))||(e.resetPosition(e.options.bounceTime,So.bounce)?(e.animater.setForceStopped(!1),!0):void 0))})),t.hooks.on(t.hooks.eventTypes.scrollEnd,(function(n,r){var i=Math.abs(n.x-e.scrollBehaviorX.startPos),o=Math.abs(n.y-e.scrollBehaviorY.startPos);if(e.checkFlick(r,i,o))return e.animater.setForceStopped(!1),void e.hooks.trigger(e.hooks.eventTypes.flick);e.momentum(n,r)?e.animater.setForceStopped(!1):(t.contentMoved&&e.hooks.trigger(e.hooks.eventTypes.scrollEnd,n),e.animater.forceStopped&&e.animater.setForceStopped(!1))}))},e.prototype.checkFlick=function(e,t,n){var r=1;if(this.hooks.events.flick.length>1&&e<this.options.flickLimitTime&&t<this.options.flickLimitDistance&&n<this.options.flickLimitDistance&&(n>r||t>r))return!0},e.prototype.momentum=function(e,t){var n={time:0,easing:So.swiper,newX:e.x,newY:e.y},r=this.scrollBehaviorX.end(t),i=this.scrollBehaviorY.end(t);if(n.newX=ro(r.destination)?n.newX:r.destination,n.newY=ro(i.destination)?n.newY:i.destination,n.time=Math.max(r.duration,i.duration),this.hooks.trigger(this.hooks.eventTypes.momentum,n,this),n.newX!==e.x||n.newY!==e.y)return(n.newX>this.scrollBehaviorX.minScrollPos||n.newX<this.scrollBehaviorX.maxScrollPos||n.newY>this.scrollBehaviorY.minScrollPos||n.newY<this.scrollBehaviorY.maxScrollPos)&&(n.easing=So.swipeBounce),this.scrollTo(n.newX,n.newY,n.time,n.easing),!0},e.prototype.checkClick=function(e){var t={preventClick:this.animater.forceStopped};if(this.hooks.trigger(this.hooks.eventTypes.checkClick))return this.animater.setForceStopped(!1),!0;if(!t.preventClick){var n=this.options.dblclick,r=!1;if(n&&this.lastClickTime){var i=n.delay,o=void 0===i?300:i;to()-this.lastClickTime<o&&(r=!0,Ao(e))}return this.options.tap&&Mo(e,this.options.tap),this.options.click&&!To(e.target,this.options.preventDefaultException)&&Eo(e),this.lastClickTime=r?null:to(),!0}return!1},e.prototype.resize=function(){var e=this;this.actions.enabled&&(qi&&(this.wrapper.scrollTop=0),clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout((function(){e.hooks.trigger(e.hooks.eventTypes.resize)}),this.options.resizePolling))},e.prototype.transitionEnd=function(e){if(e.target===this.content&&this.animater.pending){var t=this.animater;t.transitionTime(),this.resetPosition(this.options.bounceTime,So.bounce)||(this.animater.setPending(!1),3!==this.options.probeType&&this.hooks.trigger(this.hooks.eventTypes.scrollEnd,this.getCurrentPos()))}},e.prototype.togglePointerEvents=function(e){void 0===e&&(e=!0);for(var t=this.content.children.length?this.content.children:[this.content],n=e?"auto":"none",r=0;r<t.length;r++){var i=t[r];i.isBScrollContainer||(i.style.pointerEvents=n)}},e.prototype.refresh=function(e){var t=this.setContent(e);this.hooks.trigger(this.hooks.eventTypes.beforeRefresh),this.scrollBehaviorX.refresh(e),this.scrollBehaviorY.refresh(e),t&&(this.translater.setContent(e),this.animater.setContent(e),this.transitionEndRegister.destroy(),this.registerTransitionEnd(),this.options.bindToTarget&&this.actionsHandler.setContent(e)),this.actions.refresh(),this.wrapperOffset=fo(this.wrapper)},e.prototype.setContent=function(e){var t=e!==this.content;return t&&(this.content=e),t},e.prototype.scrollBy=function(e,t,n,r){void 0===n&&(n=0);var i=this.getCurrentPos(),o=i.x,s=i.y;r=r||So.bounce,e+=o,t+=s,this.scrollTo(e,t,n,r)},e.prototype.scrollTo=function(e,t,n,r,i){void 0===n&&(n=0),void 0===r&&(r=So.bounce),void 0===i&&(i={start:{},end:{}});var o=this.options.useTransition?r.style:r.fn,s=this.getCurrentPos(),a=Yi({x:s.x,y:s.y},i.start),c=Yi({x:e,y:t},i.end);if(this.hooks.trigger(this.hooks.eventTypes.scrollTo,c),!cs(a,c)){var u=Math.abs(c.x-a.x),l=Math.abs(c.y-a.y);u<us&&l<us&&(n=0,this.hooks.trigger(this.hooks.eventTypes.minDistanceScroll)),this.animater.move(a,c,n,o)}},e.prototype.scrollToElement=function(e,t,n,r,i){var o=co(e),s=fo(o),a=function(e,t,n){return"number"===typeof e?e:e?Math.round(t/2-n/2):0};n=a(n,o.offsetWidth,this.wrapper.offsetWidth),r=a(r,o.offsetHeight,this.wrapper.offsetHeight);var c=function(e,t,n,r){return e-=t,e=r.adjustPosition(e-n),e};s.left=c(s.left,this.wrapperOffset.left,n,this.scrollBehaviorX),s.top=c(s.top,this.wrapperOffset.top,r,this.scrollBehaviorY),this.hooks.trigger(this.hooks.eventTypes.scrollToElement,o,s)||this.scrollTo(s.left,s.top,t,i)},e.prototype.resetPosition=function(e,t){void 0===e&&(e=0),void 0===t&&(t=So.bounce);var n=this.scrollBehaviorX.checkInBoundary(),r=n.position,i=n.inBoundary,o=this.scrollBehaviorY.checkInBoundary(),s=o.position,a=o.inBoundary;return(!i||!a)&&(Zi&&this.reflow(),this.scrollTo(r,s,e,t),!0)},e.prototype.reflow=function(){this._reflow=this.content.offsetHeight},e.prototype.updatePositions=function(e){this.scrollBehaviorX.updatePosition(e.x),this.scrollBehaviorY.updatePosition(e.y)},e.prototype.getCurrentPos=function(){return this.actions.getCurrentPos()},e.prototype.enable=function(){this.actions.enabled=!0},e.prototype.disable=function(){Ro(this.animater.timer),this.actions.enabled=!1},e.prototype.destroy=function(){var e=this,t=["resizeRegister","transitionEndRegister","actionsHandler","actions","hooks","animater","translater","scrollBehaviorX","scrollBehaviorY"];t.forEach((function(t){return e[t].destroy()}))},e}(),fs=function(e){function t(t,n){var r=e.call(this,["refresh","contentChanged","enable","disable","beforeScrollStart","scrollStart","scroll","scrollEnd","scrollCancel","touchEnd","flick","destroy"])||this,i=co(t);return i?(r.plugins={},r.options=(new Go).merge(n).process(),r.setContent(i).valid?(r.hooks=new jo(["refresh","enable","disable","destroy","beforeInitialScrollTo","contentChanged"]),r.init(i),r):r):(Qi("Can not resolve the wrapper DOM."),r)}return Vi(t,e),t.use=function(e){var n=e.pluginName,r=t.plugins.some((function(t){return e===t.ctor}));return r?t:ro(n)?(Qi("Plugin Class must specify plugin's name in static property by 'pluginName' field."),t):(t.pluginsMap[n]=!0,t.plugins.push({name:n,applyOrder:e.applyOrder,ctor:e}),t)},t.prototype.setContent=function(e){var t=!1,n=!0,r=e.children[this.options.specifiedIndexAsContent];return r?(t=this.content!==r,t&&(this.content=r)):(Qi("The wrapper need at least one child element to be content element to scroll."),n=!1),{valid:n,contentChanged:t}},t.prototype.init=function(e){var t=this;this.wrapper=e,e.isBScrollContainer=!0,this.scroller=new ls(e,this.content,this.options),this.scroller.hooks.on(this.scroller.hooks.eventTypes.resize,(function(){t.refresh()})),this.eventBubbling(),this.handleAutoBlur(),this.enable(),this.proxy(Fi),this.applyPlugins(),this.refreshWithoutReset(this.content);var n=this.options,r=n.startX,i=n.startY,o={x:r,y:i};this.hooks.trigger(this.hooks.eventTypes.beforeInitialScrollTo,o)||this.scroller.scrollTo(o.x,o.y)},t.prototype.applyPlugins=function(){var e=this,n=this.options;t.plugins.sort((function(e,t){var n,r=(n={},n["pre"]=-1,n["post"]=1,n),i=e.applyOrder?r[e.applyOrder]:0,o=t.applyOrder?r[t.applyOrder]:0;return i-o})).forEach((function(t){var r=t.ctor;n[t.name]&&"function"===typeof r&&(e.plugins[t.name]=new r(e))}))},t.prototype.handleAutoBlur=function(){this.options.autoBlur&&this.on(this.eventTypes.beforeScrollStart,(function(){var e=document.activeElement;!e||"INPUT"!==e.tagName&&"TEXTAREA"!==e.tagName||e.blur()}))},t.prototype.eventBubbling=function(){as(this.scroller.hooks,this,[this.eventTypes.beforeScrollStart,this.eventTypes.scrollStart,this.eventTypes.scroll,this.eventTypes.scrollEnd,this.eventTypes.scrollCancel,this.eventTypes.touchEnd,this.eventTypes.flick])},t.prototype.refreshWithoutReset=function(e){this.scroller.refresh(e),this.hooks.trigger(this.hooks.eventTypes.refresh,e),this.trigger(this.eventTypes.refresh,e)},t.prototype.proxy=function(e){var t=this;e.forEach((function(e){var n=e.key,r=e.sourceKey;Po(t,r,n)}))},t.prototype.refresh=function(){var e=this.setContent(this.wrapper),t=e.contentChanged,n=e.valid;if(n){var r=this.content;this.refreshWithoutReset(r),t&&(this.hooks.trigger(this.hooks.eventTypes.contentChanged,r),this.trigger(this.eventTypes.contentChanged,r)),this.scroller.resetPosition()}},t.prototype.enable=function(){this.scroller.enable(),this.hooks.trigger(this.hooks.eventTypes.enable),this.trigger(this.eventTypes.enable)},t.prototype.disable=function(){this.scroller.disable(),this.hooks.trigger(this.hooks.eventTypes.disable),this.trigger(this.eventTypes.disable)},t.prototype.destroy=function(){this.hooks.trigger(this.hooks.eventTypes.destroy),this.trigger(this.eventTypes.destroy),this.scroller.destroy()},t.prototype.eventRegister=function(e){this.registerType(e)},t.plugins=[],t.pluginsMap={},t}(jo);function hs(e,t){var n=new fs(e,t);return n}hs.use=fs.use,hs.plugins=fs.plugins,hs.pluginsMap=fs.pluginsMap;var ds=hs,ps="undefined"!==typeof window,gs=ps&&navigator.userAgent.toLowerCase();
- /*!
- * better-scroll / pull-up
- * (c) 2016-2021 ustbhuangyi
- * Released under the MIT License.
- */if(gs&&/wechatdevtools/.test(gs),gs&&gs.indexOf("android"),function(){if("string"===typeof gs){var e=/os (\d\d?_\d(_\d)?)/,t=e.exec(gs);if(!t)return!1;var n=t[1].split("_").map((function(e){return parseInt(e,10)}));return!!(13===n[0]&&n[1]>=4)}}(),ps){var vs="test-passive";try{var ys={};Object.defineProperty(ys,"passive",{get:function(){}}),window.addEventListener(vs,(function(){}),ys)}catch(sc){}}var ms=function(e,t){for(var n in t)e[n]=t[n];return e},Is=ps&&document.createElement("div").style,_s=function(){if(!ps)return!1;for(var e=[{key:"standard",value:"transform"},{key:"webkit",value:"webkitTransform"},{key:"Moz",value:"MozTransform"},{key:"O",value:"OTransform"},{key:"ms",value:"msTransform"}],t=0,n=e;t<n.length;t++){var r=n[t];if(void 0!==Is[r.value])return r.key}return!1}();function Ts(e){return!1===_s?e:"standard"===_s?"transitionEnd"===e?"transitionend":e:_s+e.charAt(0).toUpperCase()+e.substr(1)}_s&&"standard"!==_s&&_s.toLowerCase();Ts("transform"),Ts("transition");ps&&Ts("perspective"),Ts("transitionTimingFunction"),Ts("transitionDuration"),Ts("transitionDelay"),Ts("transformOrigin"),Ts("transitionEnd"),Ts("transitionProperty");var Cs="plugins.pullUpLoad",Ms=[{key:"finishPullUp",name:"finishPullUp"},{key:"openPullUp",name:"openPullUp"},{key:"closePullUp",name:"closePullUp"},{key:"autoPullUpLoad",name:"autoPullUpLoad"}],Es=Ms.map((function(e){return{key:e.key,sourceKey:Cs+"."+e.name}})),As="pullingUp",Ss=function(){function e(e){this.scroll=e,this.pulling=!1,this.watching=!1,this.init()}return e.prototype.init=function(){this.handleBScroll(),this.handleOptions(this.scroll.options.pullUpLoad),this.handleHooks(),this.watch()},e.prototype.handleBScroll=function(){this.scroll.registerType([As]),this.scroll.proxy(Es)},e.prototype.handleOptions=function(e){void 0===e&&(e={}),e=!0===e?{}:e;var t={threshold:0};this.options=ms(t,e),this.scroll.options.probeType=3},e.prototype.handleHooks=function(){var e=this;this.hooksFn=[];var t=this.scroll.scroller.scrollBehaviorY;this.registerHooks(this.scroll.hooks,this.scroll.hooks.eventTypes.contentChanged,(function(){e.finishPullUp()})),this.registerHooks(t.hooks,t.hooks.eventTypes.computeBoundary,(function(e){e.maxScrollPos>0&&(e.maxScrollPos=-1)}))},e.prototype.registerHooks=function(e,t,n){e.on(t,n,this),this.hooksFn.push([e,t,n])},e.prototype.watch=function(){this.watching||(this.watching=!0,this.registerHooks(this.scroll,this.scroll.eventTypes.scroll,this.checkPullUp))},e.prototype.unwatch=function(){this.watching=!1,this.scroll.off(this.scroll.eventTypes.scroll,this.checkPullUp)},e.prototype.checkPullUp=function(e){var t=this,n=this.options.threshold;1===this.scroll.movingDirectionY&&e.y<=this.scroll.maxScrollY+n&&(this.pulling=!0,this.scroll.once(this.scroll.eventTypes.scrollEnd,(function(){t.pulling=!1})),this.unwatch(),this.scroll.trigger(As))},e.prototype.finishPullUp=function(){var e=this;this.scroll.scroller.scrollBehaviorY.setMovingDirection(0),this.pulling?this.scroll.once(this.scroll.eventTypes.scrollEnd,(function(){e.watch()})):this.watch()},e.prototype.openPullUp=function(e){void 0===e&&(e={}),this.handleOptions(e),this.watch()},e.prototype.closePullUp=function(){this.unwatch()},e.prototype.autoPullUpLoad=function(){var e=this.options.threshold,t=this.scroll.scroller.scrollBehaviorY;if(!this.pulling&&this.watching){var n=-1,r=t.maxScrollPos+e+n;this.scroll.scroller.scrollBehaviorY.setMovingDirection(n),this.scroll.scrollTo(this.scroll.x,r,this.scroll.options.bounceTime)}},e.pluginName="pullUpLoad",e}();
- /*!
- * better-scroll / mouse-wheel
- * (c) 2016-2021 ustbhuangyi
- * Released under the MIT License.
- */
- function Ns(e){console.error("[BScroll warn]: "+e)}var bs="undefined"!==typeof window,ws=bs&&navigator.userAgent.toLowerCase();ws&&/wechatdevtools/.test(ws),ws&&ws.indexOf("android"),function(){if("string"===typeof ws){var e=/os (\d\d?_\d(_\d)?)/,t=e.exec(ws);if(!t)return!1;var n=t[1].split("_").map((function(e){return parseInt(e,10)}));return!!(13===n[0]&&n[1]>=4)}}();var Os=!1;if(bs){var Rs="test-passive";try{var Ds={};Object.defineProperty(Ds,"passive",{get:function(){Os=!0}}),window.addEventListener(Rs,(function(){}),Ds)}catch(sc){}}var Ls=function(e,t){for(var n in t)e[n]=t[n];return e},Us=bs&&document.createElement("div").style,xs=function(){if(!bs)return!1;for(var e=[{key:"standard",value:"transform"},{key:"webkit",value:"webkitTransform"},{key:"Moz",value:"MozTransform"},{key:"O",value:"OTransform"},{key:"ms",value:"msTransform"}],t=0,n=e;t<n.length;t++){var r=n[t];if(void 0!==Us[r.value])return r.key}return!1}();function Ps(e){return!1===xs?e:"standard"===xs?"transitionEnd"===e?"transitionend":e:xs+e.charAt(0).toUpperCase()+e.substr(1)}function js(e,t,n,r){var i=Os?{passive:!1,capture:!!r}:!!r;e.addEventListener(t,n,i)}function ks(e,t,n,r){e.removeEventListener(t,n,{capture:!!r})}xs&&"standard"!==xs&&xs.toLowerCase();Ps("transform"),Ps("transition");function zs(e,t){for(var n in t)if(t[n].test(e[n]))return!0;return!1}bs&&Ps("perspective"),Ps("transitionTimingFunction"),Ps("transitionDuration"),Ps("transitionDelay"),Ps("transformOrigin"),Ps("transitionEnd"),Ps("transitionProperty");var Gs=function(){function e(e,t){this.wrapper=e,this.events=t,this.addDOMEvents()}return e.prototype.destroy=function(){this.removeDOMEvents(),this.events=[]},e.prototype.addDOMEvents=function(){this.handleDOMEvents(js)},e.prototype.removeDOMEvents=function(){this.handleDOMEvents(ks)},e.prototype.handleDOMEvents=function(e){var t=this,n=this.wrapper;this.events.forEach((function(r){e(n,r.name,t,!!r.capture)}))},e.prototype.handleEvent=function(e){var t=e.type;this.events.some((function(n){return n.name===t&&(n.handler(e),!0)}))},e}(),Bs=function(){function e(e){this.scroll=e,this.wheelEndTimer=0,this.wheelMoveTimer=0,this.wheelStart=!1,this.init()}return e.prototype.init=function(){this.handleBScroll(),this.handleOptions(),this.handleHooks(),this.registerEvent()},e.prototype.handleBScroll=function(){this.scroll.registerType(["alterOptions","mousewheelStart","mousewheelMove","mousewheelEnd"])},e.prototype.handleOptions=function(){var e=!0===this.scroll.options.mouseWheel?{}:this.scroll.options.mouseWheel,t={speed:20,invert:!1,easeTime:300,discreteTime:400,throttleTime:0,dampingFactor:.1};this.mouseWheelOpt=Ls(t,e)},e.prototype.handleHooks=function(){this.hooksFn=[],this.registerHooks(this.scroll.hooks,"destroy",this.destroy)},e.prototype.registerEvent=function(){this.eventRegister=new Gs(this.scroll.scroller.wrapper,[{name:"wheel",handler:this.wheelHandler.bind(this)},{name:"mousewheel",handler:this.wheelHandler.bind(this)},{name:"DOMMouseScroll",handler:this.wheelHandler.bind(this)}])},e.prototype.registerHooks=function(e,t,n){e.on(t,n,this),this.hooksFn.push([e,t,n])},e.prototype.wheelHandler=function(e){if(this.scroll.enabled){this.beforeHandler(e),this.wheelStart||(this.wheelStartHandler(e),this.wheelStart=!0);var t=this.getWheelDelta(e);this.wheelMoveHandler(t),this.wheelEndDetector(t)}},e.prototype.wheelStartHandler=function(e){this.cleanCache();var t=this.scroll.scroller,n=t.scrollBehaviorX,r=t.scrollBehaviorY;n.setMovingDirection(0),r.setMovingDirection(0),n.setDirection(0),r.setDirection(0),this.scroll.trigger(this.scroll.eventTypes.alterOptions,this.mouseWheelOpt),this.scroll.trigger(this.scroll.eventTypes.mousewheelStart)},e.prototype.cleanCache=function(){this.deltaCache=[]},e.prototype.wheelMoveHandler=function(e){var t=this,n=this.mouseWheelOpt,r=n.throttleTime,i=n.dampingFactor;if(r&&this.wheelMoveTimer)this.deltaCache.push(e);else{var o=this.deltaCache.reduce((function(e,t){return{x:e.x+t.x,y:e.y+t.y}}),{x:0,y:0});this.cleanCache();var s=this.scroll.scroller,a=s.scrollBehaviorX,c=s.scrollBehaviorY;a.setMovingDirection(-e.directionX),c.setMovingDirection(-e.directionY),a.setDirection(e.x),c.setDirection(e.y);var u=a.performDampingAlgorithm(Math.round(e.x)+o.x,i),l=c.performDampingAlgorithm(Math.round(e.y)+o.x,i);if(!this.scroll.trigger(this.scroll.eventTypes.mousewheelMove,{x:u,y:l})){var f=this.getEaseTime();u===this.scroll.x&&l===this.scroll.y||this.scroll.scrollTo(u,l,f)}r&&(this.wheelMoveTimer=window.setTimeout((function(){t.wheelMoveTimer=0}),r))}},e.prototype.wheelEndDetector=function(e){var t=this;window.clearTimeout(this.wheelEndTimer),this.wheelEndTimer=window.setTimeout((function(){t.wheelStart=!1,window.clearTimeout(t.wheelMoveTimer),t.wheelMoveTimer=0,t.scroll.trigger(t.scroll.eventTypes.mousewheelEnd,e)}),this.mouseWheelOpt.discreteTime)},e.prototype.getWheelDelta=function(e){var t=this.mouseWheelOpt,n=t.speed,r=t.invert,i=0,o=0,s=r?-1:1;switch(!0){case"deltaX"in e:1===e.deltaMode?(i=-e.deltaX*n,o=-e.deltaY*n):(i=-e.deltaX,o=-e.deltaY);break;case"wheelDeltaX"in e:i=e.wheelDeltaX/120*n,o=e.wheelDeltaY/120*n;break;case"wheelDelta"in e:i=o=e.wheelDelta/120*n;break;case"detail"in e:i=o=-e.detail/3*n;break}i*=s,o*=s,this.scroll.hasVerticalScroll||(Math.abs(o)>Math.abs(i)&&(i=o),o=0),this.scroll.hasHorizontalScroll||(i=0);var a=i>0?-1:i<0?1:0,c=o>0?-1:o<0?1:0;return{x:i,y:o,directionX:a,directionY:c}},e.prototype.beforeHandler=function(e){var t=this.scroll.options,n=t.preventDefault,r=t.stopPropagation,i=t.preventDefaultException;n&&!zs(e.target,i)&&e.preventDefault(),r&&e.stopPropagation()},e.prototype.getEaseTime=function(){var e=100,t=this.mouseWheelOpt.easeTime;return t<e&&Ns("easeTime should be greater than 100.If mouseWheel easeTime is too small,scrollEnd will be triggered many times."),Math.max(t,e)},e.prototype.destroy=function(){this.eventRegister.destroy(),window.clearTimeout(this.wheelEndTimer),window.clearTimeout(this.wheelMoveTimer),this.hooksFn.forEach((function(e){var t=e[0],n=e[1],r=e[2];t.off(n,r)}))},e.pluginName="mouseWheel",e.applyOrder="pre",e}();Bs.prototype.wheelMoveHandler=function(e){var t=this,n=this.mouseWheelOpt,r=n.throttleTime,i=n.dampingFactor;if(r&&this.wheelMoveTimer)this.deltaCache.push(e);else{var o=this.deltaCache.reduce((function(e,t){return{x:e.x+t.x,y:e.y+t.y}}),{x:0,y:0});this.cleanCache();var s=this.scroll.scroller,a=s.scrollBehaviorX,c=s.scrollBehaviorY;a.setMovingDirection(-e.directionX),c.setMovingDirection(-e.directionY),a.setDirection(e.x),c.setDirection(e.y);var u=a.performDampingAlgorithm(Math.round(e.x)+o.x,i),l=c.performDampingAlgorithm(Math.round(e.y)+o.x,i);if(!this.scroll.trigger(this.scroll.eventTypes.mousewheelMove,{x:u,y:l})){var f=this.getEaseTime();u===this.scroll.x&&l===this.scroll.y||(Math.abs(this.scroll.y-l)<1&&(l=this.scroll.y>l?this.scroll.y-1.01:this.scroll.y+1.01),this.scroll.scrollTo(u,l,f))}r&&(this.wheelMoveTimer=window.setTimeout((function(){t.wheelMoveTimer=0}),r))}};var Vs={touchstart:1,touchmove:1,touchend:1,touchcancel:1,mousedown:2,mousemove:2,mouseup:2};function Ys(e,t){for(var n in t)if(t[n].test(e[n]))return!0;return!1}var Hs=Ys,Fs=function(e){var t=Vs[e.type];if(!this.initiated||this.initiated===t)if(this.setInitiated(t),Hs(e.target,this.options.tagException))this.setInitiated();else if(2!==t||0===e.button){if(!this.hooks.trigger(this.hooks.eventTypes.beforeStart,e)){this.beforeHandler(e,"start");var n=e.touches?e.touches[0]:e;this.pointX=n.pageX,this.pointY=n.pageY,this.hooks.trigger(this.hooks.eventTypes.start,e)}}else this.setInitiated()},Qs=".conversation-wrapper{height:100%;background:#fff;position:relative}.conversation-container{height:100%}.pullup-tips{text-align:center;color:#111f2c;height:3.4em;line-height:3.4em;width:100%;text-align:center;font-size:2em}.after-trigger::before{content:' ';display:inline-block;width:1.8em;height:1.8em;background:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMjhweCIgaGVpZ2h0PSIyOHB4IiB2aWV3Qm94PSIwIDAgMjggMjgiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+bG9hZGluZzwvdGl0bGU+CiAgICA8ZGVmcz4KICAgICAgICA8bGluZWFyR3JhZGllbnQgeDE9Ijk0LjA4NjkxNDElIiB5MT0iMCUiIHgyPSI5NC4wODY5MTQxJSIgeTI9IjkwLjU1OTA4MiUiIGlkPSJsaW5lYXJHcmFkaWVudC0xIj4KICAgICAgICAgICAgPHN0b3Agc3RvcC1jb2xvcj0iIzhGOTQ5QSIgc3RvcC1vcGFjaXR5PSIwIiBvZmZzZXQ9IjAlIj48L3N0b3A+CiAgICAgICAgICAgIDxzdG9wIHN0b3AtY29sb3I9IiM4Rjk0OUEiIHN0b3Atb3BhY2l0eT0iMC4zIiBvZmZzZXQ9IjEwMCUiPjwvc3RvcD4KICAgICAgICA8L2xpbmVhckdyYWRpZW50PgogICAgICAgIDxsaW5lYXJHcmFkaWVudCB4MT0iMTAwJSIgeTE9IjguNjczNzA2MDUlIiB4Mj0iMTAwJSIgeTI9IjkwLjYyODY2MjElIiBpZD0ibGluZWFyR3JhZGllbnQtMiI+CiAgICAgICAgICAgIDxzdG9wIHN0b3AtY29sb3I9IiM4Rjk0OUEiIG9mZnNldD0iMCUiPjwvc3RvcD4KICAgICAgICAgICAgPHN0b3Agc3RvcC1jb2xvcj0iIzhGOTQ5QSIgc3RvcC1vcGFjaXR5PSIwLjMiIG9mZnNldD0iMTAwJSI+PC9zdG9wPgogICAgICAgIDwvbGluZWFyR3JhZGllbnQ+CiAgICA8L2RlZnM+CiAgICA8ZyBpZD0i6aG16Z2iLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIGlkPSIwM1/lkJHkuIvmu5rliqjml7Zsb2FkaW5nIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMTQyLjAwMDAwMCwgLTkxMS4wMDAwMDApIiBmaWxsLXJ1bGU9Im5vbnplcm8iPgogICAgICAgICAgICA8ZyBpZD0i572R57uc5LiN5Y+v55So5o+Q56S6IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwLjAwMDAwMCwgNTc5LjAwMDAwMCkiPgogICAgICAgICAgICAgICAgPGcgaWQ9ImxvYWRpbmciIHRyYW5zZm9ybT0idHJhbnNsYXRlKDE0Mi4wMDAwMDAsIDMzMi4wMDAwMDApIj4KICAgICAgICAgICAgICAgICAgICA8cmVjdCBpZD0i55+p5b2iIiB4PSIwIiB5PSIwIiB3aWR0aD0iMjgiIGhlaWdodD0iMjgiPjwvcmVjdD4KICAgICAgICAgICAgICAgICAgICA8ZyBpZD0iTG9hZGluZ0JyYW5kIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgyLjAwMDAwMCwgMi4wMDAwMDApIj4KICAgICAgICAgICAgICAgICAgICAgICAgPHBhdGggZD0iTTEyLDAgQzE4LjYyNzQxNywwIDI0LDUuMzcyNTgzIDI0LDEyIEMyNCwxOC42Mjc0MTcgMTguNjI3NDE3LDI0IDEyLDI0IEwxMiwyMS45IEMxNy40Njc2MTksMjEuOSAyMS45LDE3LjQ2NzYxOSAyMS45LDEyIEMyMS45LDYuNTMyMzgwOTkgMTcuNDY3NjE5LDIuMSAxMiwyLjEgTDEyLDAgWiIgaWQ9Iui3r+W+hCIgZmlsbD0idXJsKCNsaW5lYXJHcmFkaWVudC0xKSI+PC9wYXRoPgogICAgICAgICAgICAgICAgICAgICAgICA8cGF0aCBkPSJNMTIsMCBMMTIsMi4xIEM2LjUzMjM4MDk5LDIuMSAyLjEsNi41MzIzODA5OSAyLjEsMTIgQzIuMSwxNy40Njc2MTkgNi41MzIzODA5OSwyMS45IDEyLDIxLjkgTDEyLDI0IEM1LjM3MjU4MywyNCAwLDE4LjYyNzQxNyAwLDEyIEMwLDUuMzcyNTgzIDUuMzcyNTgzLDAgMTIsMCBaIiBpZD0i6Lev5b6EIiBmaWxsPSJ1cmwoI2xpbmVhckdyYWRpZW50LTIpIj48L3BhdGg+CiAgICAgICAgICAgICAgICAgICAgICAgIDxjaXJjbGUgaWQ9Ik92YWwiIGZpbGw9IiM4Rjk0OUEiIGN4PSIxMi4xNSIgY3k9IjEuMDUiIHI9IjEuMDUiPjwvY2lyY2xlPgogICAgICAgICAgICAgICAgICAgIDwvZz4KICAgICAgICAgICAgICAgIDwvZz4KICAgICAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+) no-repeat;-webkit-animation:loading 1s infinite;animation:loading 1s infinite;vertical-align:middle;margin:0 0.8em 0 0}@-webkit-keyframes loading{from{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes loading{from{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.no-data{width:100%;height:100%;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;font-size:2.2em;color:#111f2c;background:#fff}.no-data::before{content:' ';display:block;width:5.81818em;height:5.81818em;background:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTI4cHgiIGhlaWdodD0iMTI4cHgiIHZpZXdCb3g9IjAgMCAxMjggMTI4IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPgogICAgPHRpdGxlPue8uuecgWljb248L3RpdGxlPgogICAgPGcgaWQ9Iumhtemdoi0xIiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgICAgICA8ZyBpZD0iMDJf5Lya6K+d5YiX6KGo5Li656m6IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMTYwLjAwMDAwMCwgLTM1NC4wMDAwMDApIj4KICAgICAgICAgICAgPGcgaWQ9Iue8uuecgWljb24iIHRyYW5zZm9ybT0idHJhbnNsYXRlKDE2MC4wMDAwMDAsIDM1NC4wMDAwMDApIj4KICAgICAgICAgICAgICAgIDxyZWN0IGlkPSLnn6nlvaIiIHg9IjAiIHk9IjAiIHdpZHRoPSIxMjgiIGhlaWdodD0iMTI4Ij48L3JlY3Q+CiAgICAgICAgICAgICAgICA8ZyBpZD0iYmVsbHMtKDEpIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgzLjAwMDAwMCwgMTEuMDAwMDAwKSI+CiAgICAgICAgICAgICAgICAgICAgPGNpcmNsZSBpZD0iT3ZhbC0yMDMiIHN0cm9rZS1vcGFjaXR5PSIwLjQiIHN0cm9rZT0iI0EzQjFCRiIgc3Ryb2tlLXdpZHRoPSIyIiBjeD0iMjAuNSIgY3k9IjMuNSIgcj0iMy41Ij48L2NpcmNsZT4KICAgICAgICAgICAgICAgICAgICA8Y2lyY2xlIGlkPSJPdmFsLTIwM+Wkh+S7vSIgc3Ryb2tlLW9wYWNpdHk9IjAuNCIgc3Ryb2tlPSIjQTNCMUJGIiBzdHJva2Utd2lkdGg9IjEuODI0IiBjeD0iMTA4IiBjeT0iMjMiIHI9IjIiPjwvY2lyY2xlPgogICAgICAgICAgICAgICAgICAgIDxwYXRoIGQ9Ik0xMTcuNSw0NSBDMTE4LjA0ODAyMSw0NSAxMTguNDkyMjc5LDQ1LjQ0NDI1ODYgMTE4LjQ5MjI3OSw0NS45OTIyNzkzIEwxMTguNDkyLDQ4LjM2OCBMMTIxLDQ4LjM2ODM0NyBDMTIxLjU1MjI4NSw0OC4zNjgzNDcgMTIyLDQ4LjgxNjA2MjMgMTIyLDQ5LjM2ODM0NyBDMTIyLDQ5LjkyMDYzMTggMTIxLjU1MjI4NSw1MC4zNjgzNDcgMTIxLDUwLjM2ODM0NyBMMTE4LjQ5Miw1MC4zNjggTDExOC40OTIyNzksNTMuMDc3NzQ4MSBDMTE4LjQ5MjI3OSw1My42MjU3Njg4IDExOC4wNDgwMjEsNTQuMDcwMDI3NCAxMTcuNSw1NC4wNzAwMjc0IEMxMTYuOTUxOTc5LDU0LjA3MDAyNzQgMTE2LjUwNzcyMSw1My42MjU3Njg4IDExNi41MDc3MjEsNTMuMDc3NzQ4MSBMMTE2LjUwNyw1MC4zNjggTDExNCw1MC4zNjgzNDcgQzExMy40NDc3MTUsNTAuMzY4MzQ3IDExMyw0OS45MjA2MzE4IDExMyw0OS4zNjgzNDcgQzExMyw0OC44MTYwNjIzIDExMy40NDc3MTUsNDguMzY4MzQ3IDExNCw0OC4zNjgzNDcgTDExNi41MDcsNDguMzY4IEwxMTYuNTA3NzIxLDQ1Ljk5MjI3OTMgQzExNi41MDc3MjEsNDUuNDQ0MjU4NiAxMTYuOTUxOTc5LDQ1IDExNy41LDQ1IFoiIGlkPSJDb21iaW5lZC1TaGFwZSIgZmlsbC1vcGFjaXR5PSIwLjQiIGZpbGw9IiNBM0IxQkYiPjwvcGF0aD4KICAgICAgICAgICAgICAgICAgICA8cGF0aCBkPSJNNC41LDU5IEM1LjA0ODAyMDcsNTkgNS40OTIyNzkyNSw1OS40NDQyNTg2IDUuNDkyMjc5MjUsNTkuOTkyMjc5MyBMNS40OTIsNjIuMzY4IEw4LDYyLjM2ODM0NyBDOC41NTIyODQ3NSw2Mi4zNjgzNDcgOSw2Mi44MTYwNjIzIDksNjMuMzY4MzQ3IEM5LDYzLjkyMDYzMTggOC41NTIyODQ3NSw2NC4zNjgzNDcgOCw2NC4zNjgzNDcgTDUuNDkyLDY0LjM2OCBMNS40OTIyNzkyNSw2Ny4wNzc3NDgxIEM1LjQ5MjI3OTI1LDY3LjYyNTc2ODggNS4wNDgwMjA3LDY4LjA3MDAyNzQgNC41LDY4LjA3MDAyNzQgQzMuOTUxOTc5Myw2OC4wNzAwMjc0IDMuNTA3NzIwNzUsNjcuNjI1NzY4OCAzLjUwNzcyMDc1LDY3LjA3Nzc0ODEgTDMuNTA3LDY0LjM2OCBMMSw2NC4zNjgzNDcgQzAuNDQ3NzE1MjUsNjQuMzY4MzQ3IDYuNzYzNTM3NTFlLTE3LDYzLjkyMDYzMTggMCw2My4zNjgzNDcgQy02Ljc2MzUzNzUxZS0xNyw2Mi44MTYwNjIzIDAuNDQ3NzE1MjUsNjIuMzY4MzQ3IDEsNjIuMzY4MzQ3IEwzLjUwNyw2Mi4zNjggTDMuNTA3NzIwNzUsNTkuOTkyMjc5MyBDMy41MDc3MjA3NSw1OS40NDQyNTg2IDMuOTUxOTc5Myw1OSA0LjUsNTkgWiIgaWQ9IkNvbWJpbmVkLVNoYXBlLUNvcHkiIGZpbGwtb3BhY2l0eT0iMC40IiBmaWxsPSIjQTNCMUJGIj48L3BhdGg+CiAgICAgICAgICAgICAgICAgICAgPGVsbGlwc2UgaWQ9Ik92YWwtNCIgZmlsbD0iI0RBRTBFNSIgY3g9IjY0IiBjeT0iMTAyLjUiIHJ4PSIyOCIgcnk9IjIuNSI+PC9lbGxpcHNlPgogICAgICAgICAgICAgICAgPC9nPgogICAgICAgICAgICAgICAgPGcgaWQ9IjI0Z2wtYnViYmxlczciIHRyYW5zZm9ybT0idHJhbnNsYXRlKDE2LjAwMDAwMCwgMjQuMDAwMDAwKSIgZmlsbD0iI0RBRTBFNSIgZmlsbC1ydWxlPSJub256ZXJvIj4KICAgICAgICAgICAgICAgICAgICA8cGF0aCBkPSJNOS43OTE2NjY3LDU5LjIxMDI3NDggQzkuMjcyMjg0NCw1OS4yMTAyNzQ4IDguNzc0MTc0NjMsNTkuMDAyMzM0NSA4LjQwNjkxNTg4LDU4LjYzMjE5ODUgQzguMDM5NjU3MTIsNTguMjYyMDYyNSA3LjgzMzMzMzMsNTcuNzYwMDUwMyA3LjgzMzMzMzMsNTcuMjM2NTk5IEw3LjgzMzMzMzMsNDcuMzY4MjE5OCBDMy41MDkwNjAxOSw0Ny4zNjM0NjA4IDAuMDA0NzIxOTY0NzIsNDMuODMxNjY4IDAsMzkuNDczNTE2NSBMMCw3Ljg5NDcwMzI3IEMwLjAwNDcyMTk2NDcyLDMuNTM2NTUxOCAzLjUwOTA2MDE5LDAuMDA0NzU4OTU4NzggNy44MzMzMzMzLDAgTDU4Ljc1LDAgQzYzLjA3NDI3MzEsMC4wMDQ3NTg5NTg3OCA2Ni41Nzg2MTEzLDMuNTM2NTUxOCA2Ni41ODMzMzMzLDcuODk0NzAzMjcgTDY2LjU4MzMzMzMsMTMuODE1NzMwNyBDNjYuNTgzMzMzMywxNC45MDU3NjE4IDY1LjcwNjU1NzYsMTUuNzg5NDA2NSA2NC42MjUsMTUuNzg5NDA2NSBDNjMuNTQzNDQyNCwxNS43ODk0MDY1IDYyLjY2NjY2NjcsMTQuOTA1NzYxOCA2Mi42NjY2NjY3LDEzLjgxNTczMDcgTDYyLjY2NjY2NjcsNy44OTQ3MDMyNyBDNjIuNjY0MzA1Nyw1LjcxNTYyNzUyIDYwLjkxMjEzNjYsMy45NDk3MzExMSA1OC43NSwzLjk0NzM1MTY4IEw3LjgzMzMzMzMsMy45NDczNTE2OCBDNS42NzExOTY3NywzLjk0OTczMTE2IDMuOTE5MDI3NjgsNS43MTU2Mjc1NiAzLjkxNjY2NjcsNy44OTQ3MDMyNyBMMy45MTY2NjY3LDM5LjQ3MzUxNjUgQzMuOTE5MDI3NjgsNDEuNjUyNTkyMiA1LjY3MTE5Njc3LDQzLjQxODQ4ODYgNy44MzMzMzMzLDQzLjQyMDg2ODEgTDkuNzkxNjY2Nyw0My40MjA4NjgxIEMxMC4zMTEwNDksNDMuNDIwODY4MSAxMC44MDkxNTg3LDQzLjYyODgwODQgMTEuMTc2NDE3NSw0My45OTg5NDQ0IEMxMS41NDM2NzYyLDQ0LjM2OTA4MDQgMTEuNzUsNDQuODcxMDkyNiAxMS43NSw0NS4zOTQ1NDQgTDExLjc1LDUyLjQ3MjAyMjIgTDIwLjE1Njc1NzgsNDMuOTk4Nzg1MSBDMjAuOTIxNjIxOSw0My4yMjc5Mjg4IDIyLjE2MTcxMTQsNDMuMjI3OTI4OSAyMi45MjY1NzU0LDQzLjk5ODc4NTIgQzIzLjY5MTQzOTQsNDQuNzY5NjQxNSAyMy42OTE0Mzk1LDQ2LjAxOTQ0NjUgMjIuOTI2NTc1NSw0Ni43OTAzMDI4IEwxMS4xNzY1NzU1LDU4LjYzMjM1NzggQzEwLjgwOTI1MjIsNTkuMDAyNDc0NCAxMC4zMTEwODExLDU5LjIxMDI3NDggOS43OTE2NjY3LDU5LjIxMDI3NDggTDkuNzkxNjY2Nyw1OS4yMTAyNzQ4IFogTTY0LjA1MjE4NzUsNzQuNDIxNzY0NCBMNzEuMzEwODcyNCw2Ny4xMDQ5NzggTDg2LjE2NjY2NjcsNjcuMTA0OTc4IEM5MC40OTA5Mzk4LDY3LjEwMDIxOTEgOTMuOTk1Mjc4LDYzLjU2ODQyNjIgOTQsNTkuMjEwMjc0OCBMOTQsMjcuNjMxNDYxNiBDOTMuOTk1Mjc4MSwyMy4yNzMzMTAxIDkwLjQ5MDkzOTgsMTkuNzQxNTE3MiA4Ni4xNjY2NjY3LDE5LjczNjc1ODIgTDM1LjI1LDE5LjczNjc1ODIgQzMwLjkyNTcyNjksMTkuNzQxNTE3MiAyNy40MjEzODg2LDIzLjI3MzMxMDEgMjcuNDE2NjY2NywyNy42MzE0NjE2IEwyNy40MTY2NjY3LDU5LjIxMDI3NDggQzI3LjQyMTM4ODcsNjMuNTY4NDI2MiAzMC45MjU3MjY5LDY3LjEwMDIxOTEgMzUuMjUsNjcuMTA0OTc4IEw1NC4wMjI0NjA5LDY3LjEwNDk3OCBMNjEuMjgxNzU3OCw3NC40MjE3NjQ0IEM2MS42NDkwMjk0LDc0Ljc5MTk5NzkgNjIuMTQ3MjA2OSw3NSA2Mi42NjY2NjY3LDc1IEM2My4xODYxMjY0LDc1IDYzLjY4NDMwMzksNzQuNzkxOTk3OSA2NC4wNTE1NzU1LDc0LjQyMTc2NDQgTDY0LjA1MjE4NzUsNzQuNDIxNzY0NCBaIE04Ni4xNjY2NjY3LDIzLjY4NDEwOTkgQzg4LjMyODgwMzMsMjMuNjg2NDg5NCA5MC4wODA5NzI0LDI1LjQ1MjM4NTggOTAuMDgzMzMzMywyNy42MzE0NjE2IEw5MC4wODMzMzMzLDU5LjIxMDI3NDggQzkwLjA4MDk3MjQsNjEuMzg5MzUwNSA4OC4zMjg4MDMzLDYzLjE1NTI0NyA4Ni4xNjY2NjY3LDYzLjE1NzYyNjQgTDcwLjUsNjMuMTU3NjI2NCBDNjkuOTgwNTg1Niw2My4xNTc1NDE5IDY5LjQ4MjQxNDUsNjMuMzY1NDI2NyA2OS4xMTUwOTExLDYzLjczNTU0MzMgTDYyLjY2NjY2NjcsNzAuMjM1MTA0NiBMNTYuMjE4MjQyMiw2My43MzU1NDMzIEM1NS44NTA5MTg4LDYzLjM2NTQyNjcgNTUuMzUyNzQ3Nyw2My4xNTc1NDE5IDU0LjgzMzMzMzMsNjMuMTU3NjI2NCBMMzUuMjUsNjMuMTU3NjI2NCBDMzMuMDg3ODYzNCw2My4xNTUyNDcgMzEuMzM1Njk0Miw2MS4zODkzNTA1IDMxLjMzMzMzMzMsNTkuMjEwMjc0OCBMMzEuMzMzMzMzMywyNy42MzE0NjE2IEMzMS4zMzU2OTQyLDI1LjQ1MjM4NTggMzMuMDg3ODYzNCwyMy42ODY0ODkzIDM1LjI1LDIzLjY4NDEwOTkgTDg2LjE2NjY2NjcsMjMuNjg0MTA5OSBaIiBpZD0i5b2i54q2Ij48L3BhdGg+CiAgICAgICAgICAgICAgICA8L2c+CiAgICAgICAgICAgIDwvZz4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPg==);margin:0 0 1.04545em}.mentioned{margin:0 0.5em 0 0}";ds.use(Ss),ds.use(Bs);var $s=function(e){Dr(n,e);var t=Ur(n);function n(){var e;return Fr(this,n),e=t.call(this),e.__registerHost(),Je(Pr(e)),e.updateConversation=Ae(Pr(e),"updateConversation",7),e.tapConversation=Ae(Pr(e),"tapConversation",7),e.deleteConversation=Ae(Pr(e),"deleteConversation",7),e.baseSize="16px",e.isPullUpLoad=!1,e.data=[],e.lang=di.lang,e.contextMenuData={visible:!1},e.getConversationList=e.getConversationList.bind(Pr(e)),e.handleUpdateConversation=e.handleUpdateConversation.bind(Pr(e)),e.switchConversation=e.switchConversation.bind(Pr(e)),e.hideContextMenu=e.hideContextMenu.bind(Pr(e)),e.handleTopStatusChange=e.handleTopStatusChange.bind(Pr(e)),e.handleDelete=e.handleDelete.bind(Pr(e)),e.handleNotificationStatusChange=e.handleNotificationStatusChange.bind(Pr(e)),e.pullingUpHandler=e.pullingUpHandler.bind(Pr(e)),e.handleSelectConversation=e.handleSelectConversation.bind(Pr(e)),e.handleMouseLeave=e.handleMouseLeave.bind(Pr(e)),e.handleLanguageChanged=e.handleLanguageChanged.bind(Pr(e)),e}return $r(n,[{key:"componentWillLoad",value:function(){var e=this;di.on(Cr.CONVERSATION,this.getConversationList),di.on(Cr.UPDATE_CONVERSATION,this.handleUpdateConversation),di.on(Cr.SWITCH_CONVERSATION,this.switchConversation),di.off(Cr.LANGUAGE_CHANGED,this.handleLanguageChanged),di.on(Cr.LANGUAGE_CHANGED,this.handleLanguageChanged),di.on(Cr.CONNECTED,(function(t){t?e.getConversationList(!0):e.data=[]}))}},{key:"disconnectedCallback",value:function(){di.off(Cr.CONVERSATION,this.getConversationList),di.off(Cr.UPDATE_CONVERSATION,this.handleUpdateConversation),di.off(Cr.SWITCH_CONVERSATION,this.switchConversation),di.off(Cr.LANGUAGE_CHANGED,this.handleLanguageChanged),this.bscroll&&(this.bscroll.off("pullingUp",this.pullingUpHandler),this.bscroll.destroy())}},{key:"getConversationList",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return di.getConversationList(t).then((function(t){e.data=t}))}},{key:"handleUpdateConversation",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];t.forEach((function(t){var n=e.data.findIndex((function(e){return e.conversation&&Zr(e.conversation,t)}));-1!==n&&(e.data[n].conversation=t)})),t.length&&(this.data=ji(this.data))}},{key:"switchConversation",value:function(e){this.currentConversation=e}},{key:"createScroll",value:function(){var e=this;this.scrollWrapper&&(this.bscroll=new ds(this.scrollWrapper,{bindToWrapper:!0,mouseWheel:{throttleTime:30},scrollX:!1,scrollY:!0,pullUpLoad:!0,click:!0,bounce:{top:!1,bottom:!0,left:!1,right:!1}}),this.bscroll.on("pullingUp",this.pullingUpHandler),this.bscroll.scroller.actionsHandler.wrapperEventRegister.events.forEach((function(t){"mousedown"===t.name&&(t.handler=Fs.bind(e.bscroll.scroller.actionsHandler))})))}},{key:"componentDidUpdate",value:function(){!this.bscroll&&this.scrollWrapper&&this.createScroll(),this.bscroll&&this.bscroll.refresh()}},{key:"pullingUpHandler",value:function(){var e=this;this.isPullUpLoad=!0,setTimeout((function(){e.getConversationList(!0).then((function(){setTimeout((function(){e.isPullUpLoad=!1,e.bscroll.finishPullUp()}),200)}))}),1e3)}},{key:"handleConversationRightClick",value:function(e,t){t.preventDefault();var n=t.clientY,r=t.clientX;this.contextMenuData={visible:!0,position:{top:n,left:r},topStatus:e.isTop,notificationStatus:1===e.notificationStatus},this.operatedConversation=e}},{key:"hideContextMenu",value:function(){this.contextMenuData={visible:!1}}},{key:"handleTopStatusChange",value:function(e){void 0!==e&&di.setConversationToTop({conversationType:this.operatedConversation.conversationType,targetId:this.operatedConversation.targetId,channelId:this.operatedConversation.channelId},e.detail)}},{key:"handleNotificationStatusChange",value:function(e){void 0!==e&&di.setConversationNotificationStatus({conversationType:this.operatedConversation.conversationType,targetId:this.operatedConversation.targetId,channelId:this.operatedConversation.channelId},e.detail?Ct["q"].OPEN:Ct["q"].CLOSE)}},{key:"handleDelete",value:function(){var e=this,t={conversationType:this.operatedConversation.conversationType,targetId:this.operatedConversation.targetId,channelId:this.operatedConversation.channelId||""};di.deleteConversation(t).then((function(){e.getConversationList(!0),e.deleteConversation.emit(t)}))}},{key:"handleSelectConversation",value:function(e){di.selectConversation(e.detail),this.tapConversation.emit(e.detail)}},{key:"isHover",value:function(e){return!!this.currentConversation&&(e.channelId===this.currentConversation.channelId&&e.targetId===this.currentConversation.targetId&&e.conversationType===this.currentConversation.conversationType)}},{key:"getPullupTip",value:function(){this.locale=this.lang?Ni[this.lang]:Ni.zh_CN;var e=this.locale;return this.isPullUpLoad?W("div",{class:"after-trigger"},W("span",{class:"pullup-txt"},e.conversation.loading)):"ontouchstart"in window&&!this.isPullUpLoad?W("div",{class:"before-trigger"},W("span",{class:"pullup-txt"},e.conversation.forMore)):null}},{key:"handleMouseLeave",value:function(){this.bscroll&&(this.bscroll.stop(),this.bscroll.scroller.actionsHandler.setInitiated())}},{key:"handleLanguageChanged",value:function(e){this.lang=e.lang}},{key:"render",value:function(){var e=this;this.locale=this.lang?Ni[this.lang]:Ni.zh_CN;var t=this.contextMenuData,n=this.locale;return W("div",{class:"conversation-wrapper",style:{fontSize:this.baseSize}},this.data.length?W("conversation-context-menu",Object.assign({},t,{conversation:this.operatedConversation,onHide:this.hideContextMenu,onTopStatusChange:this.handleTopStatusChange,onNotificationStatusChange:this.handleNotificationStatusChange,onDelete:this.handleDelete,customMenu:this.customMenu})):null,this.data.length?W("div",{class:"conversation-container",ref:function(t){return e.scrollWrapper=t}},W("div",{class:"conversation-scroll-wrapper",onMouseLeave:this.handleMouseLeave},W("div",{class:"conversation-list"},this.data.map((function(t){return W("conversation-item",{key:t.conversation.targetId+"_"+t.conversation.channelId+"_"+t.conversation.conversationType,isHover:e.isHover(t.conversation),data:t,onContextMenu:function(n){return e.handleConversationRightClick(t.conversation,n)},onSelectConversation:e.handleSelectConversation})}))),W("div",{class:"pullup-tips"},this.data.length?this.getPullupTip():null))):W("div",{class:"no-data"},W("span",null,n.conversation.noData)))}}],[{key:"style",get:function(){return Qs}}]),n}(Sr(HTMLElement)),Ks=".member-list{min-width:14em;max-width:30em;max-height:16em;background:#ffffff;-webkit-box-shadow:0em 0em 1.5em 0.3em rgba(100, 102, 109, 0.19);box-shadow:0em 0em 1.5em 0.3em rgba(100, 102, 109, 0.19);border-radius:0.4em;overflow:auto;position:fixed}.member-list ul{padding:0;margin:0;list-style:none}.member-list li{width:100%;height:4em;line-height:4em;cursor:pointer;padding:0 1em;-webkit-box-sizing:border-box;box-sizing:border-box;font-size:1.3em}.member-list li:hover{background:#dfdfdf}",Ws=function(e){Dr(n,e);var t=Ur(n);function n(){var e;return Fr(this,n),e=t.call(this),e.__registerHost(),e.close=Ae(Pr(e),"close",7),e.selectMember=Ae(Pr(e),"selectMember",7),e.visible=!1,e.memberList=[],e.position={left:0,top:0},e.lang=di.lang,e.selected=!1,e.selectMemberHandler=e.selectMemberHandler.bind(Pr(e)),e.closeHandler=e.closeHandler.bind(Pr(e)),e.handleLanguageChanged=e.handleLanguageChanged.bind(Pr(e)),e}return $r(n,[{key:"validateWatchConversation",value:function(e,t){e.conversationType===t.conversationType&&e.channelId===t.channelId&&e.targetId===t.targetId||this.getMemberList()}},{key:"validateWatchVisible",value:function(e,t){e&&e!==t&&this.calcPopPosition()}},{key:"componentWillLoad",value:function(){window.addEventListener("click",this.closeHandler,!1),di.off(Cr.LANGUAGE_CHANGED,this.handleLanguageChanged),di.on(Cr.LANGUAGE_CHANGED,this.handleLanguageChanged),this.getMemberList()}},{key:"disconnectedCallback",value:function(){di.off(Cr.LANGUAGE_CHANGED,this.handleLanguageChanged),window.removeEventListener("click",this.closeHandler,!1)}},{key:"closeHandler",value:function(){this.close.emit(this.selected),this.selected=!1}},{key:"getMemberList",value:function(){var e=this;this.conversation&&this.conversation.conversationType===Ct["e"].GROUP&&di.getGroupMembers(this.conversation).then((function(t){if(t){e.memberList=zr(t);var n=pn(),r=e.memberList.findIndex((function(e){return e.id===n}));-1!==r&&e.memberList.splice(r,1)}else e.memberList=[]}))}},{key:"selectMemberHandler",value:function(e){var t=e.target,n=t.getAttribute("data-id");if(n){var r=t.getAttribute("data-name");this.selectMember.emit({id:n,value:r}),this.selected=!0}else this.selected=!1}},{key:"calcPopPosition",value:function(){var e=this;this.visible&&setTimeout((function(){var t=e.targetRect||{x:0,y:0,height:0,width:0,bottom:0,top:0,left:0,right:0};if(!e.listRef)return t;var n={left:t.x,top:t.y},r=e.listRef.getBoundingClientRect(),i=r.width||r.right-r.left,o=r.height||r.bottom-r.top,s=document.documentElement.clientWidth,a=document.documentElement.clientHeight,c=t.x,u=t.y+t.height;n.left=c+i>s?s-i:c<0?0:c,u+o>a?n.top=a-o:n.top<0?n.top=0:n.top=u,e.position=n}),17)}},{key:"handleLanguageChanged",value:function(e){this.lang=e.lang}},{key:"render",value:function(){var e=this;this.locale=this.lang?Ni[this.lang]:Ni.zh_CN;var t=this.memberList,n=this.visible,r=this.position,i=this.locale;return W("div",{class:"member-list",ref:function(t){return e.listRef=t},style:{display:n?"block":"none",left:r.left+"px",top:r.top+"px"}},W("ul",{onClick:this.selectMemberHandler},W("li",{"data-id":"all","data-name":i.other.all},i.other.all),t.map((function(e){return W("li",{"data-id":e.id,"data-name":e.groupNickname||e.name||e.id},e.groupNickname||e.name||e.id)}))))}}],[{key:"watchers",get:function(){return{conversation:["validateWatchConversation"],visible:["validateWatchVisible"]}}},{key:"style",get:function(){return Ks}}]),n}(Sr(HTMLElement)),qs=".message-context-menu{font-size:2em;position:fixed;top:0;left:0;z-index:1;min-width:7em;background:#FFFFFF;-webkit-box-shadow:0em 0em 0.75em 0.15em rgba(100, 102, 109, 0.19);box-shadow:0em 0em 0.75em 0.15em rgba(100, 102, 109, 0.19);border-radius:0.2em}.message-context-menu ul{list-style:none;padding:0;margin:0}.message-context-menu ul li{list-style:none;line-height:2;text-align:center;background:#fff;height:3em;line-height:3em;cursor:pointer;padding:0 1em;color:#111F2C}.message-context-menu ul li:hover{background:#F2F8FF}",Zs=function(e){Dr(n,e);var t=Ur(n);function n(){var e;return Fr(this,n),e=t.call(this),e.__registerHost(),e.position={top:0,left:0},e.visible=!1,e.lang=di.lang,e.isShowForward=!1,e.msgType=["RC:TxtMsg","RC:FileMsg","RC:ImgMsg"],e.handleCopy=e.handleCopy.bind(Pr(e)),e.handleReference=e.handleReference.bind(Pr(e)),e.handleRecall=e.handleRecall.bind(Pr(e)),e.handleDelete=e.handleDelete.bind(Pr(e)),e.handlForward=e.handlForward.bind(Pr(e)),e.hide=e.hide.bind(Pr(e)),e.handleLanguageChanged=e.handleLanguageChanged.bind(Pr(e)),e}return $r(n,[{key:"watchPosition",value:function(){this.visible||(this.visible=!0)}},{key:"watchMessage",value:function(){console.info(this.message)}},{key:"componentWillLoad",value:function(){document.body.addEventListener("mouseup",this.hide,!1),window.addEventListener("blur",this.hide,!1),di.on(Cr.LANGUAGE_CHANGED,this.handleLanguageChanged)}},{key:"disconnectedCallback",value:function(){document.body.removeEventListener("mouseup",this.hide,!1),window.removeEventListener("blur",this.hide,!1),di.off(Cr.LANGUAGE_CHANGED,this.handleLanguageChanged)}},{key:"handleCopy",value:function(){var e;switch(this.message.messageType){case Er.TEXT:e=Rr({},"text/plain",new Blob([this.message.content.content],{type:"text/plain"}));break;default:e=null}if(!e)throw new Error("No data copied");try{if(navigator.clipboard){var t=navigator.clipboard;return void t.write([new ClipboardItem(e)])}var n=document.createElement("input");n.setAttribute("id","COPY_INPUT"),n.style.position="fixed",n.style.left="-100%",n.style.top="0",n.style.zIndex="-100",n.style.opacity="0",document.body.appendChild(n),n.value=this.message.content.content,n.focus(),n.select(),document.execCommand("copy")&&document.execCommand("copy")}catch(sc){console.error("Failed to copy: ",sc)}}},{key:"handleReference",value:function(){this.message&&di.referenceMessage(this.message)}},{key:"handleRecall",value:function(){this.message&&this.message.messageDirection===Ct["m"].SEND&&di.recallMessage(this.message)}},{key:"handleDelete",value:function(){this.message&&di.deleteMessage(this.message)}},{key:"handlForward",value:function(){var e=this;if(this.message){var t=this.forwardList.callback(this.message);Object(Ct["x"])(t)?Object(Ct["D"])(t)?t.length>6?Ct["C"].error(Mr.A_KIT_FORWARD_O,"Forwarding quantity exceeds the limit"):t.map((function(t){var n,r=e.message.content;switch(e.message.messageType){case"RC:TxtMsg":n=new Un({content:r.content});break;case"RC:ImgMsg":n=new Rn({content:r.content,imageUri:r.imageUri});break;case"RC:FileMsg":n=new Pn({name:r.name,size:r.size,type:r.type,fileUrl:r.fileUrl});break}var i={conversationType:t.conversationType,targetId:t.targetId};di.sendMessage(i,n,null)})):Ct["C"].error(Mr.A_KIT_FORWARD_O,"Forwarding list is empty"):Ct["C"].error(Mr.A_KIT_FORWARD_O,"Forwardlist needs to return an array")}}},{key:"hide",value:function(e){2!=e.button&&this.hide&&(this.visible=!1)}},{key:"handleLanguageChanged",value:function(e){this.lang=e.lang}},{key:"createCustomMenu",value:function(){var e=this;if(!this.customMenu||!this.message)return[];var t=[];return this.customMenu.forEach((function(n){var r=n.name(Object.assign({},e.message));r&&t.push({name:r,callback:function(){return n.callback(Object.assign({},e.message))}})})),t}},{key:"render",value:function(){var e,t,n=this;this.locale=this.lang?Ni[this.lang]:Ni.zh_CN;var r=this.locale,i=this.message,o=this.createCustomMenu();this.isShowForward=!(!this.forwardList||!this.forwardList.callback);var s=document.documentElement.clientHeight,a=document.documentElement.clientWidth,c=2;i&&i.messageType===Er.TEXT&&++c,(i&&i.messageDirection)===Ct["m"].SEND&&++c,this.isShowForward&&++c,c+=o.length;var u=(null===(e=this.contextMenu)||void 0===e?void 0:e.childNodes[0].childNodes[0].clientHeight)*c||0,l=(null===(t=this.contextMenu)||void 0===t?void 0:t.childNodes[0].clientWidth)||0;return W("div",{class:"message-context-menu",style:{"z-index":this.visible?"1":"-1",display:"block",left:(this.position?a-this.position.left<l?this.position.left-l:this.position.left:0)+"px",top:(this.position?s-this.position.top<u?this.position.top-u:this.position.top:0)+"px"},ref:function(e){return n.contextMenu=e}},W("ul",null,i&&i.messageType===Er.TEXT?W("li",{onClick:this.handleCopy},r.message.copy):null,W("li",{onClick:this.handleReference},r.message.quote),(i&&i.messageDirection)===Ct["m"].SEND?W("li",{onClick:this.handleRecall},r.message.recall):null,W("li",{onClick:this.handleDelete},r.message["delete"]),this.isShowForward&&i&&this.msgType.indexOf(i.messageType)>-1?W("li",{onClick:this.handlForward},r.message.forward):null,o.map((function(e){return W("li",{onClick:e.callback},e.name)}))))}}],[{key:"watchers",get:function(){return{position:["watchPosition"],message:["watchMessage"]}}},{key:"style",get:function(){return qs}}]),n}(Sr(HTMLElement)),Js=".message-editor-wrapper{position:relative;width:100%;height:100%;min-width:10em;min-height:10em;text-align:left;background:#fbfbfc;border-top:1px solid rgb(227, 229, 230)}.editor-body{width:100%;height:100%}.editor-tool-bar{width:100%;height:4em}.editor-content-wrapper{width:100%;height:calc(100% - 7.5em);padding:0.5em 1em;-webkit-box-sizing:border-box;box-sizing:border-box;position:relative}.editor-tool-bar{padding:3em 0 0.5em 4em}.editor-tool-bar .buttons .button{width:3.6em;height:3.6em;overflow:hidden;display:inline-block;text-align:center;line-height:3em;margin:0 3em 0 0;border-radius:0.5em;cursor:pointer;overflow:hidden}.editor-tool-bar .buttons .button input{display:none}.editor-tool-bar .buttons .button .label{display:block;width:3.6em;padding:3.6em 0 0;height:0;overflow:hidden;background-repeat:no-repeat;background-size:contain}.editor-tool-bar .buttons .button.image-btn .label{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMzZweCIgaGVpZ2h0PSIzNnB4IiB2aWV3Qm94PSIwIDAgMzYgMzYiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+5Zu+54mHaWNvbjwvdGl0bGU+CiAgICA8ZyBpZD0i6aG16Z2iLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIGlkPSIwM1/lkJHkuIvmu5rliqjml7Zsb2FkaW5nIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtNDg3LjAwMDAwMCwgLTcxMC4wMDAwMDApIj4KICAgICAgICAgICAgPGcgaWQ9IuWbvueJh2ljb24iIHRyYW5zZm9ybT0idHJhbnNsYXRlKDQ4Ny4wMDAwMDAsIDcxMC4wMDAwMDApIj4KICAgICAgICAgICAgICAgIDxyZWN0IGlkPSLnn6nlvaIiIHg9IjAiIHk9IjAiIHdpZHRoPSIzNiIgaGVpZ2h0PSIzNiI+PC9yZWN0PgogICAgICAgICAgICAgICAgPHBhdGggZD0iTTMwLjU5MDE2MzksNSBDMzEuMjU0NDc3Niw1IDMxLjg1NTgwNyw1LjI3MjE2MzE4IDMyLjI5MTMyMjksNS43MTA3NjA2MSBDMzIuNzI5MzgyNiw2LjE1MTkxOTczIDMzLDYuNzYxMzc4NTcgMzMsNy40MzM5NjIyNiBMMzMsNy40MzM5NjIyNiBMMzMsMjguNTY2MDM3NyBDMzMsMjkuMjM4NjIxNCAzMi43MjkzODI2LDI5Ljg0ODA4MDMgMzIuMjkxMzIyOSwzMC4yODkyMzk0IEMzMS44NTU4MDcsMzAuNzI3ODM2OCAzMS4yNTQ0Nzc2LDMxIDMwLjU5MDE2MzksMzEgTDMwLjU5MDE2MzksMzEgTDUuNDA5ODM2MDcsMzEgQzQuNzcxNDc4LDMxIDQuMTU5NTg0OTUsMzAuNzQ0MDcxIDMuNzA4MzEyOTcsMzAuMjg5NjA2MSBDMy4yNTQ0MDU4MywyOS44MzI0ODczIDMsMjkuMjEyMzQzNSAzLDI4LjU2NjAzNzcgTDMsMjguNTY2MDM3NyBMMyw3LjQzMzk2MjI2IEMzLDYuNzYxMzc4NTcgMy4yNzA2MTc0Myw2LjE1MTkxOTczIDMuNzA4Njc3MDgsNS43MTA3NjA2MSBDNC4xNDQxOTMwMyw1LjI3MjE2MzE4IDQuNzQ1NTIyNCw1IDUuNDA5ODM2MDcsNSBMNS40MDk4MzYwNyw1IFoiIGlkPSLot6/lvoQiIHN0cm9rZT0iIzc3Nzc3NyIgc3Ryb2tlLXdpZHRoPSIyIiBmaWxsLXJ1bGU9Im5vbnplcm8iPjwvcGF0aD4KICAgICAgICAgICAgICAgIDxwYXRoIGQ9Ik0yNC4zMjM1NDYyLDE2Ljc1Mzg3NTkgQzI1LjEyMjQ1ODksMTYuNjk2NDUxMSAyNS45MzcwMzc0LDE2Ljg0NTc5MSAyNi42Nzk5NjAxLDE3LjIwODk0OTMgTDI2LjY3OTk2MDEsMTcuMjA4OTQ5MyBMMzAuNTE2ODEyNCwxOS4wODMxNDM5IEMzMS4yNzg3ODQ4LDE5LjQ1NTU3NTIgMzEuOTAxMTEwOCwyMC4wMjE3NzQzIDMyLjMzMjMyNzEsMjAuNzAzODUwNSBDMzIuNzYwNDkyMiwyMS4zODExMDA3IDMzLDIyLjE3MjUzOTYgMzMsMjIuOTk5NjYyNiBMMzMsMjIuOTk5NjYyNiBMMzMsMjguNjY3NjgwNSBDMzMsMjkuMzA4ODQ1NiAzMi43MzE4Nzc1LDI5Ljg4ODQ0MzggMzIuMzAyMTI2MiwzMC4zMDg1MTY0IEMzMS44NjQwMzM2LDMwLjczNjc0MjUgMzEuMjU4NDYyNCwzMC45OTk5OTk2IDMwLjU5MDkwMjUsMzAuOTk5OTk5NiBMMzAuNTkwOTAyNSwzMC45OTk5OTk2IEw1Ljk3OTc4MjIsMzAuOTk5OTk5OCBDNS43MjU1NTQ0NiwzMS4wMDAxNDgxIDUuNDg1NjM4MDEsMzAuOTIwNDIxNCA1LjI5MDM3MTk0LDMwLjc4MDU1NjIgQzUuMTAxMzMwOTQsMzAuNjQ1MTQ5OSA0Ljk1NDExMjE3LDMwLjQ1MzAyNjEgNC44Nzk5NjA4LDMwLjIyMzEzMiBDNC44MDczNDIyNywyOS45OTc5OTAyIDQuODEzNjgyNjYsMjkuNzYyODQwOSA0Ljg4NzYxOTkxLDI5LjU1MDE1OTQgQzQuOTYzMjEzMzYsMjkuMzMyNzEzOCA1LjEwOTAwNzYsMjkuMTM5MjI0OCA1LjMxMTQ1OTczLDI5LjAwMDg0NDEgTDUuMzExNDU5NzMsMjkuMDAwODQ0MSBMMjIuMDYzMTA4MywxNy41Mzk4MDg2IEMyMi43NDI3NjU3LDE3LjA3NDk2NDYgMjMuNTI1NDg1NywxNi44MTEyMzk1IDI0LjMyMzU0NjIsMTYuNzUzODc1OSBaIiBpZD0i6Lev5b6EIiBzdHJva2U9IiM3Nzc3NzciIHN0cm9rZS13aWR0aD0iMiIgZmlsbC1ydWxlPSJub256ZXJvIj48L3BhdGg+CiAgICAgICAgICAgICAgICA8cGF0aCBkPSJNMTAuNjg1NzE0MywxNC44Mzg3MDk3IEMxMS45NDgwNzk0LDE0LjgzODcwOTcgMTIuOTcxNDI4NiwxMy44Mjc3Mzk4IDEyLjk3MTQyODYsMTIuNTgwNjQ1MiBDMTIuOTcxNDI4NiwxMS4zMzM1NTA2IDExLjk0ODA3OTQsMTAuMzIyNTgwNiAxMC42ODU3MTQzLDEwLjMyMjU4MDYgQzkuNDIzMzQ5MTIsMTAuMzIyNTgwNiA4LjQsMTEuMzMzNTUwNiA4LjQsMTIuNTgwNjQ1MiBDOC40LDEzLjgyNzczOTcgOS40MjMzNDkxMiwxNC44Mzg3MDk3IDEwLjY4NTcxNDMsMTQuODM4NzA5NyBMMTAuNjg1NzE0MywxNC44Mzg3MDk3IFoiIGlkPSLot6/lvoQiIGZpbGw9IiM3Nzc3NzciIGZpbGwtcnVsZT0ibm9uemVybyI+PC9wYXRoPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4=)}.editor-tool-bar .buttons .button.image-btn .label:hover{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMzZweCIgaGVpZ2h0PSIzNnB4IiB2aWV3Qm94PSIwIDAgMzYgMzYiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+5Zu+54mHaWNvbjwvdGl0bGU+CiAgICA8ZyBpZD0i6aG16Z2iLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIGlkPSIxN1/ljZXogYot5Y+R6YCB5Zu+54mH5raI5oGvIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtNDg3LjAwMDAwMCwgLTg2MC4wMDAwMDApIj4KICAgICAgICAgICAgPGcgaWQ9IuWbvueJh2ljb24iIHRyYW5zZm9ybT0idHJhbnNsYXRlKDQ4Ny4wMDAwMDAsIDg2MC4wMDAwMDApIj4KICAgICAgICAgICAgICAgIDxyZWN0IGlkPSLnn6nlvaIiIHg9IjAiIHk9IjAiIHdpZHRoPSIzNiIgaGVpZ2h0PSIzNiI+PC9yZWN0PgogICAgICAgICAgICAgICAgPHBhdGggZD0iTTMwLjU5MDE2MzksNSBDMzEuMjU0NDc3Niw1IDMxLjg1NTgwNyw1LjI3MjE2MzE4IDMyLjI5MTMyMjksNS43MTA3NjA2MSBDMzIuNzI5MzgyNiw2LjE1MTkxOTczIDMzLDYuNzYxMzc4NTcgMzMsNy40MzM5NjIyNiBMMzMsNy40MzM5NjIyNiBMMzMsMjguNTY2MDM3NyBDMzMsMjkuMjM4NjIxNCAzMi43MjkzODI2LDI5Ljg0ODA4MDMgMzIuMjkxMzIyOSwzMC4yODkyMzk0IEMzMS44NTU4MDcsMzAuNzI3ODM2OCAzMS4yNTQ0Nzc2LDMxIDMwLjU5MDE2MzksMzEgTDMwLjU5MDE2MzksMzEgTDUuNDA5ODM2MDcsMzEgQzQuNzcxNDc4LDMxIDQuMTU5NTg0OTUsMzAuNzQ0MDcxIDMuNzA4MzEyOTcsMzAuMjg5NjA2MSBDMy4yNTQ0MDU4MywyOS44MzI0ODczIDMsMjkuMjEyMzQzNSAzLDI4LjU2NjAzNzcgTDMsMjguNTY2MDM3NyBMMyw3LjQzMzk2MjI2IEMzLDYuNzYxMzc4NTcgMy4yNzA2MTc0Myw2LjE1MTkxOTczIDMuNzA4Njc3MDgsNS43MTA3NjA2MSBDNC4xNDQxOTMwMyw1LjI3MjE2MzE4IDQuNzQ1NTIyNCw1IDUuNDA5ODM2MDcsNSBMNS40MDk4MzYwNyw1IFoiIGlkPSLot6/lvoQiIHN0cm9rZT0iIzAwOTlGRiIgc3Ryb2tlLXdpZHRoPSIyIiBmaWxsLXJ1bGU9Im5vbnplcm8iPjwvcGF0aD4KICAgICAgICAgICAgICAgIDxwYXRoIGQ9Ik0yNC4zMjM1NDYyLDE2Ljc1Mzg3NTkgQzI1LjEyMjQ1ODksMTYuNjk2NDUxMSAyNS45MzcwMzc0LDE2Ljg0NTc5MSAyNi42Nzk5NjAxLDE3LjIwODk0OTMgTDI2LjY3OTk2MDEsMTcuMjA4OTQ5MyBMMzAuNTE2ODEyNCwxOS4wODMxNDM5IEMzMS4yNzg3ODQ4LDE5LjQ1NTU3NTIgMzEuOTAxMTEwOCwyMC4wMjE3NzQzIDMyLjMzMjMyNzEsMjAuNzAzODUwNSBDMzIuNzYwNDkyMiwyMS4zODExMDA3IDMzLDIyLjE3MjUzOTYgMzMsMjIuOTk5NjYyNiBMMzMsMjIuOTk5NjYyNiBMMzMsMjguNjY3NjgwNSBDMzMsMjkuMzA4ODQ1NiAzMi43MzE4Nzc1LDI5Ljg4ODQ0MzggMzIuMzAyMTI2MiwzMC4zMDg1MTY0IEMzMS44NjQwMzM2LDMwLjczNjc0MjUgMzEuMjU4NDYyNCwzMC45OTk5OTk2IDMwLjU5MDkwMjUsMzAuOTk5OTk5NiBMMzAuNTkwOTAyNSwzMC45OTk5OTk2IEw1Ljk3OTc4MjIsMzAuOTk5OTk5OCBDNS43MjU1NTQ0NiwzMS4wMDAxNDgxIDUuNDg1NjM4MDEsMzAuOTIwNDIxNCA1LjI5MDM3MTk0LDMwLjc4MDU1NjIgQzUuMTAxMzMwOTQsMzAuNjQ1MTQ5OSA0Ljk1NDExMjE3LDMwLjQ1MzAyNjEgNC44Nzk5NjA4LDMwLjIyMzEzMiBDNC44MDczNDIyNywyOS45OTc5OTAyIDQuODEzNjgyNjYsMjkuNzYyODQwOSA0Ljg4NzYxOTkxLDI5LjU1MDE1OTQgQzQuOTYzMjEzMzYsMjkuMzMyNzEzOCA1LjEwOTAwNzYsMjkuMTM5MjI0OCA1LjMxMTQ1OTczLDI5LjAwMDg0NDEgTDUuMzExNDU5NzMsMjkuMDAwODQ0MSBMMjIuMDYzMTA4MywxNy41Mzk4MDg2IEMyMi43NDI3NjU3LDE3LjA3NDk2NDYgMjMuNTI1NDg1NywxNi44MTEyMzk1IDI0LjMyMzU0NjIsMTYuNzUzODc1OSBaIiBpZD0i6Lev5b6EIiBzdHJva2U9IiMwMDk5RkYiIHN0cm9rZS13aWR0aD0iMiIgZmlsbC1ydWxlPSJub256ZXJvIj48L3BhdGg+CiAgICAgICAgICAgICAgICA8cGF0aCBkPSJNMTAuNjg1NzE0MywxNC44Mzg3MDk3IEMxMS45NDgwNzk0LDE0LjgzODcwOTcgMTIuOTcxNDI4NiwxMy44Mjc3Mzk4IDEyLjk3MTQyODYsMTIuNTgwNjQ1MiBDMTIuOTcxNDI4NiwxMS4zMzM1NTA2IDExLjk0ODA3OTQsMTAuMzIyNTgwNiAxMC42ODU3MTQzLDEwLjMyMjU4MDYgQzkuNDIzMzQ5MTIsMTAuMzIyNTgwNiA4LjQsMTEuMzMzNTUwNiA4LjQsMTIuNTgwNjQ1MiBDOC40LDEzLjgyNzczOTcgOS40MjMzNDkxMiwxNC44Mzg3MDk3IDEwLjY4NTcxNDMsMTQuODM4NzA5NyBMMTAuNjg1NzE0MywxNC44Mzg3MDk3IFoiIGlkPSLot6/lvoQiIGZpbGw9IiMwMDk5RkYiIGZpbGwtcnVsZT0ibm9uemVybyI+PC9wYXRoPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4=)}.editor-tool-bar .buttons .button.file-btn .label{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMzZweCIgaGVpZ2h0PSIzNnB4IiB2aWV3Qm94PSIwIDAgMzYgMzYiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+5paH5Lu2aWNvbjwvdGl0bGU+CiAgICA8ZyBpZD0i6aG16Z2iLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIGlkPSIwM1/lkJHkuIvmu5rliqjml7Zsb2FkaW5nIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtNTUzLjAwMDAwMCwgLTcxMC4wMDAwMDApIj4KICAgICAgICAgICAgPGcgaWQ9IuaWh+S7tmljb24iIHRyYW5zZm9ybT0idHJhbnNsYXRlKDU1My4wMDAwMDAsIDcxMC4wMDAwMDApIj4KICAgICAgICAgICAgICAgIDxyZWN0IGlkPSLnn6nlvaIiIHg9IjAiIHk9IjAiIHdpZHRoPSIzNiIgaGVpZ2h0PSIzNiI+PC9yZWN0PgogICAgICAgICAgICAgICAgPHBhdGggZD0iTTMxLjUsNSBDMzIuMTkwNTY5Miw1IDMyLjgxNTYxNjgsNS4yNzk2MzUwNSAzMy4yNjc5OTA5LDUuNzMyMDA5MTIgQzMzLjcyMDM2NDksNi4xODQzODMyIDM0LDYuODA5NDMwOCAzNCw3LjUgTDM0LDcuNSBMMzQsMjguNSBDMzQsMjkuMTkwNTY5MiAzMy43MjAzNjQ5LDI5LjgxNTYxNjggMzMuMjY3OTkwOSwzMC4yNjc5OTA5IEMzMi44MTU2MTY4LDMwLjcyMDM2NDkgMzIuMTkwNTY5MiwzMSAzMS41LDMxIEwzMS41LDMxIEw1LjUsMzEgQzQuODA5NDMwOCwzMSA0LjE4NDM4MzIsMzAuNzIwMzY0OSAzLjczMjAwOTEyLDMwLjI2Nzk5MDkgQzMuMjc5NjM1MDUsMjkuODE1NjE2OCAzLDI5LjE5MDU2OTIgMywyOC41IEwzLDI4LjUgTDMsMTEgQzMsMTAuMzA5NDMwOCAzLjI3OTYzNTA1LDkuNjg0MzgzMiAzLjczMjAwOTEyLDkuMjMyMDA5MTIgQzQuMTg0MzgzMiw4Ljc3OTYzNTA1IDQuODA5NDMwOCw4LjUgNS41LDguNSBMNS41LDguNSBMMTcuOTE0MjEzNiw4LjUgTDIxLjE5NTM4OCw1LjIxODgyNTUzIEMyMS4zMzYxNDA5LDUuMDc4MDcyNjggMjEuNTI3MzQzNyw1IDIxLjcyNjU2MjUsNSBMMjEuNzI2NTYyNSw1IFoiIGlkPSLot6/lvoQiIHN0cm9rZT0iIzc3Nzc3NyIgc3Ryb2tlLXdpZHRoPSIyIiBmaWxsLXJ1bGU9Im5vbnplcm8iIHRyYW5zZm9ybT0idHJhbnNsYXRlKDE4LjUwMDAwMCwgMTguMDAwMDAwKSBzY2FsZSgtMSwgMSkgdHJhbnNsYXRlKC0xOC41MDAwMDAsIC0xOC4wMDAwMDApICI+PC9wYXRoPgogICAgICAgICAgICAgICAgPHBhdGggZD0iTTI3LjcyMjIyMjIsMjcgTDkuMjc3Nzc3NzgsMjcgQzguNTcxMDA2OTQsMjcgOCwyNi41NTMxMjUgOCwyNiBDOCwyNS40NDY4NzUgOC41NzEwMDY5NCwyNSA5LjI3Nzc3Nzc4LDI1IEwyNy43MjIyMjIyLDI1IEMyOC40Mjg5OTMxLDI1IDI5LDI1LjQ0Njg3NSAyOSwyNiBDMjksMjYuNTUzMTI1IDI4LjQyODk5MzEsMjcgMjcuNzIyMjIyMiwyNyBaIiBpZD0i6Lev5b6EIiBmaWxsPSIjNzc3Nzc3IiBmaWxsLXJ1bGU9Im5vbnplcm8iIHRyYW5zZm9ybT0idHJhbnNsYXRlKDE4LjUwMDAwMCwgMjYuMDAwMDAwKSBzY2FsZSgtMSwgMSkgdHJhbnNsYXRlKC0xOC41MDAwMDAsIC0yNi4wMDAwMDApICI+PC9wYXRoPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4=)}.editor-tool-bar .buttons .button.file-btn .label:hover{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMzZweCIgaGVpZ2h0PSIzNnB4IiB2aWV3Qm94PSIwIDAgMzYgMzYiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+5paH5Lu2aWNvbjwvdGl0bGU+CiAgICA8ZyBpZD0i6aG16Z2iLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIGlkPSIxOV/ljZXogYot5paH5Lu25LiK5Lyg5LitIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtNTUzLjAwMDAwMCwgLTcxMC4wMDAwMDApIj4KICAgICAgICAgICAgPGcgaWQ9IuaWh+S7tmljb24iIHRyYW5zZm9ybT0idHJhbnNsYXRlKDU1My4wMDAwMDAsIDcxMC4wMDAwMDApIj4KICAgICAgICAgICAgICAgIDxyZWN0IGlkPSLnn6nlvaIiIHg9IjAiIHk9IjAiIHdpZHRoPSIzNiIgaGVpZ2h0PSIzNiI+PC9yZWN0PgogICAgICAgICAgICAgICAgPHBhdGggZD0iTTMxLjUsNSBDMzIuMTkwNTY5Miw1IDMyLjgxNTYxNjgsNS4yNzk2MzUwNSAzMy4yNjc5OTA5LDUuNzMyMDA5MTIgQzMzLjcyMDM2NDksNi4xODQzODMyIDM0LDYuODA5NDMwOCAzNCw3LjUgTDM0LDcuNSBMMzQsMjguNSBDMzQsMjkuMTkwNTY5MiAzMy43MjAzNjQ5LDI5LjgxNTYxNjggMzMuMjY3OTkwOSwzMC4yNjc5OTA5IEMzMi44MTU2MTY4LDMwLjcyMDM2NDkgMzIuMTkwNTY5MiwzMSAzMS41LDMxIEwzMS41LDMxIEw1LjUsMzEgQzQuODA5NDMwOCwzMSA0LjE4NDM4MzIsMzAuNzIwMzY0OSAzLjczMjAwOTEyLDMwLjI2Nzk5MDkgQzMuMjc5NjM1MDUsMjkuODE1NjE2OCAzLDI5LjE5MDU2OTIgMywyOC41IEwzLDI4LjUgTDMsMTEgQzMsMTAuMzA5NDMwOCAzLjI3OTYzNTA1LDkuNjg0MzgzMiAzLjczMjAwOTEyLDkuMjMyMDA5MTIgQzQuMTg0MzgzMiw4Ljc3OTYzNTA1IDQuODA5NDMwOCw4LjUgNS41LDguNSBMNS41LDguNSBMMTcuOTE0MjEzNiw4LjUgTDIxLjE5NTM4OCw1LjIxODgyNTUzIEMyMS4zMzYxNDA5LDUuMDc4MDcyNjggMjEuNTI3MzQzNyw1IDIxLjcyNjU2MjUsNSBMMjEuNzI2NTYyNSw1IFoiIGlkPSLot6/lvoQiIHN0cm9rZT0iIzAwOTlGRiIgc3Ryb2tlLXdpZHRoPSIyIiBmaWxsLXJ1bGU9Im5vbnplcm8iIHRyYW5zZm9ybT0idHJhbnNsYXRlKDE4LjUwMDAwMCwgMTguMDAwMDAwKSBzY2FsZSgtMSwgMSkgdHJhbnNsYXRlKC0xOC41MDAwMDAsIC0xOC4wMDAwMDApICI+PC9wYXRoPgogICAgICAgICAgICAgICAgPHBhdGggZD0iTTI3LjcyMjIyMjIsMjcgTDkuMjc3Nzc3NzgsMjcgQzguNTcxMDA2OTQsMjcgOCwyNi41NTMxMjUgOCwyNiBDOCwyNS40NDY4NzUgOC41NzEwMDY5NCwyNSA5LjI3Nzc3Nzc4LDI1IEwyNy43MjIyMjIyLDI1IEMyOC40Mjg5OTMxLDI1IDI5LDI1LjQ0Njg3NSAyOSwyNiBDMjksMjYuNTUzMTI1IDI4LjQyODk5MzEsMjcgMjcuNzIyMjIyMiwyNyBaIiBpZD0i6Lev5b6EIiBmaWxsPSIjMDA5OUZGIiBmaWxsLXJ1bGU9Im5vbnplcm8iIHRyYW5zZm9ybT0idHJhbnNsYXRlKDE4LjUwMDAwMCwgMjYuMDAwMDAwKSBzY2FsZSgtMSwgMSkgdHJhbnNsYXRlKC0xOC41MDAwMDAsIC0yNi4wMDAwMDApICI+PC9wYXRoPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4=)}.error-tip{width:300px;height:50px;position:fixed;top:0;left:0;right:0;bottom:0;margin:auto;background:#f56c6c;line-height:50px;color:#fff;font-size:20px;border-radius:8px}",Xs=function(e){Dr(n,e);var t=Ur(n);function n(){var e;return Fr(this,n),e=t.call(this),e.__registerHost(),e.baseSize="16px",e.showMemberList=!1,e.isError=!1,e.lang=di.lang,e.connected=!0,e.content="",e.switchConversation=e.switchConversation.bind(Pr(e)),e.sendFileMessage=e.sendFileMessage.bind(Pr(e)),e.sendImageMessage=e.sendImageMessage.bind(Pr(e)),e.handlePostMessage=e.handlePostMessage.bind(Pr(e)),e.handleEditorChange=e.handleEditorChange.bind(Pr(e)),e.handleReferenceMessage=e.handleReferenceMessage.bind(Pr(e)),e.handleCloseReference=e.handleCloseReference.bind(Pr(e)),e.handleConnected=e.handleConnected.bind(Pr(e)),e.handleConnecting=e.handleConnecting.bind(Pr(e)),e.handleSuspend=e.handleSuspend.bind(Pr(e)),e.handleLanguageChanged=e.handleLanguageChanged.bind(Pr(e)),e}return $r(n,[{key:"checkMentioned",value:function(){var e={mentionedUserIdList:[],mentionedType:Ct["l"].SINGAL},t=document.createElement("div");t.innerHTML=this.content;var n=t.querySelectorAll("span.at-span");if(n.length){for(var r=0;r<n.length;r++){var i=n[r],o=i.getAttribute("data-id");if("all"===o){e.mentionedType=Ct["l"].ALL,e.mentionedUserIdList.length=0;break}-1===e.mentionedUserIdList.indexOf(o)&&e.mentionedUserIdList.push(o)}return e}return null}},{key:"handlePostMessage",value:function(e){var t=e.detail;if(t&&this.connected){var n,r,i=this.checkMentioned();if(t=t.replace(/\<br\s?\/?\>/gi,"\n"),t=t.replace(/ /gi," "),t=Pi(t),this.referenceMessage)n=new jn({referMsgUserId:this.referenceMessage.message.senderUserId,referMsg:{content:this.referenceMessage.message.content},content:t,objName:this.referenceMessage.message.messageType});else{var o={content:t};r=i?Or({isMentioned:!0},i):void 0,r||(o.mentionedInfo=r),n=new Un(o)}di.sendMessage(this.conversation,n,r),this.content=""}}},{key:"sendImageMessage",value:function(){var e=this,t=["image/jpeg","image/jpg","image/png"];if(this.connected){var n=this.imageInputRef.files;if(n.length){var r=n[0];if(-1===t.indexOf(n[0].type))return this.isError=!0,void setTimeout((function(){e.isError=!1}),2e3);di.sendImageMessage(this.conversation,{file:r},{onProgress:function(e){console.log(e)},onComplete:function(){}}),this.imageInputRef.value=""}}}},{key:"sendFileMessage",value:function(){if(this.connected){var e=this.fileInputRef.files;if(e.length){var t=e[0];di.sendFileMessage(this.conversation,{file:t},{onProgress:function(e){console.log(e)},onComplete:function(){}}),this.fileInputRef.value=""}}}},{key:"componentDidLoad",value:function(){this.draft&&(this.content=this.draft.text),gn(Nt.CONNECTED,this.handleConnected),gn(Nt.CONNECTING,this.handleConnecting),gn(Nt.SUSPEND,this.handleSuspend)}},{key:"componentWillLoad",value:function(){this.conversation=di.currentConversation,(di.currentConversation&&di.currentConversation.conversationType)===Ct["e"].SYSTEM&&(this.conversation=null),di.on(Cr.SWITCH_CONVERSATION,this.switchConversation),di.on(Cr.REFERENCE_MESSAGE,this.handleReferenceMessage),di.on(Cr.CLOSE_REFERENCE,this.handleCloseReference),di.on(Cr.LANGUAGE_CHANGED,this.handleLanguageChanged)}},{key:"disconnectedCallback",value:function(){di.off(Cr.SWITCH_CONVERSATION,this.switchConversation),di.off(Cr.REFERENCE_MESSAGE,this.handleReferenceMessage),di.off(Cr.CLOSE_REFERENCE,this.handleCloseReference),di.off(Cr.LANGUAGE_CHANGED,this.handleLanguageChanged),vn(Nt.CONNECTED,this.handleConnected),vn(Nt.CONNECTING,this.handleConnecting),vn(Nt.SUSPEND,this.handleSuspend),this.content&&di.saveTextMessageDraft(this.conversation,this.content)}},{key:"handleLanguageChanged",value:function(e){this.lang=e.lang}},{key:"handleConnected",value:function(){this.connected=!0}},{key:"handleConnecting",value:function(){this.connected=!1}},{key:"handleSuspend",value:function(){this.connected=!1}},{key:"handleReferenceMessage",value:function(e){this.referenceMessage={message:e,time:Date.now()}}},{key:"handleCloseReference",value:function(){this.referenceMessage=null}},{key:"switchConversation",value:function(e){var t=this;this.handleCloseReference(),this.conversation&&this.conversation!==e&&this.content&&di.saveTextMessageDraft(this.conversation,this.content),this.conversation=e,this.draft={time:Date.now(),text:""},this.content="",e&&e.conversationType!==Ct["e"].SYSTEM?In(this.conversation).then((function(e){0===e.code&&(e.data&&(t.draft={time:Date.now(),text:e.data},t.content=t.draft.text),Tn(t.conversation))})):this.conversation=null}},{key:"handleEditorChange",value:function(e){var t=e.detail;t=t.trim(),"<br>"===t&&(t=""),this.content=t}},{key:"onInputContent",value:function(){Ir(this.conversation,Er.TEXT)}},{key:"render",value:function(){var e=this;this.locale=this.lang?Ni[this.lang]:Ni.zh_CN;var t=this.conversation,n=this.isError,r=this.locale;return t?W("div",{class:"message-editor-wrapper",style:{fontSize:this.baseSize}},W("reference-message",{referenceMessage:this.referenceMessage,onClose:this.handleCloseReference}),W("div",{class:"editor-body"},W("div",{class:"editor-tool-bar"},W("div",{class:"buttons"},W("div",{class:"button image-btn"},W("input",{type:"file",accept:"image/jpeg,image/jpg,image/png",ref:function(t){return e.imageInputRef=t},onChange:this.sendImageMessage}),W("span",{class:"label",onClick:function(){return e.imageInputRef.click()}},r.messageEdit.picture),n?W("div",{class:"error-tip"},r.messageEdit.picError):""),W("div",{class:"button file-btn"},W("input",{type:"file",accept:"*",ref:function(t){return e.fileInputRef=t},onChange:this.sendFileMessage}),W("span",{class:"label",onClick:function(){return e.fileInputRef.click()}},r.messageEdit.file)))),W("div",{class:"editor-content-wrapper"},W("content-editor",{conversation:this.conversation,onPost:this.handlePostMessage,onContentChange:this.handleEditorChange,onInputContent:this.onInputContent,value:this.draft})))):null}}],[{key:"style",get:function(){return Js}}]),n}(Sr(HTMLElement)),ea=function(){function e(t,n){Fr(this,e),this.uid=t.messageUId,this.direction=t.messageDirection,this.content=t.content,this.callback=n,this.messageType=t.messageType,this.conversationType=t.conversationType,this.senderUserId=t.senderUserId,this.targetId=t.targetId,this.channelId=t.channelId}return $r(e,[{key:"wrap",value:function(e){return W("div",{class:"message-content"},e)}}]),e}(),ta={"application/zip":"file-zip","application/gzip":"file-zip","application/x-zip-compressed":"file-zip","application/x-tar":"file-zip","application/x-compressed":"file-zip","application/msword":"file-word","application/vnd.openxmlformats-officedocument.wordprocessingml.document":"file-word","application/rtf":"file-text","application/vnd.ms-excel application/x-excel":"file-xls","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":"file-xls","application/x-xls":"file-xls","text/csv":"file-xls","application/vnd.ms-excel":"file-xls","application/x-ppt":"file-ppt","application/vnd.ms-powerpoint":"file-ppt","application/vnd.openxmlformats-officedocument.presentationml.presentation":"file-ppt","application/vnd.openxmlformats-officedocument.presentationml.slideshow":"file-ppt","application/pdf":"file-pdf","audio/mp3":"file-audio","audio/wav":"file-audio","audio/m3u":"file-audio","audio/midi":"file-audio","audio/flac":"file-audio","audio/ape":"file-audio","audio/x-ms-wma":"file-audio","video/mpeg4":"file-video","video/x-ms-wmv":"file-video","video/avi":"file-video","video/mpg":"file-video","video/mp4":"file-video","video/x-msvideo":"file-video","video/x-flv":"file-video","application/x-mpegURL":"file-video","video/3gpp":"file-video","text/plain":"file-plain","image/jpeg":"file-image","image/tiff":"file-image","image/png":"file-image","image/gif":"file-image","application/vnd.android.package-archive":"file-apk","application/xml":"file-text","application/rdf+xml":"file-text","application/rss+xml":"file-text","application/soap+xml":"file-text","application/atom+xml":"file-text","application/xhtml+xml":"file-text","text/html":"file-text","text/xml":"file-text","text/css":"file-text"};function na(e){return e<1024?e+"B":(e>1073741824?e=(e/1024/1024/1024).toFixed(2)+"G":e>1048576?e=(e/1024/1024).toFixed(2)+"M":e>1024&&(e=(e/1024).toFixed(2)+"K"),e)}var ra=function(e){Dr(n,e);var t=Ur(n);function n(e,r){var i;return Fr(this,n),i=t.call(this,e,r),i.handleClick=i.handleClick.bind(Pr(i)),i}return $r(n,[{key:"handleClick",value:function(){"function"===typeof this.callback&&this.callback({type:"file",url:this.content.fileUrl,size:this.content.size,name:this.content.name,fileType:this.content.type})}},{key:"getFileIcon",value:function(e,t){var n=ta[e];return n||console.log("暂未识别的文件类型:"+e,t),n||"file-icon"}},{key:"create",value:function(){var e=this.content;return this.wrap(W("div",{class:"file-message-body","data-origin":e.imageUri},W("div",{class:"file-message-icon "+this.getFileIcon(e.type,e.name)}),W("div",{class:"file-desc"},W("div",{class:"file-name",title:e.name},e.name),W("div",{class:"file-size"},na(e.size))),this.uid.startsWith("sending_")||this.uid.startsWith("fail_")?null:W("div",{class:"file-download-btn",onClick:this.handleClick})))}}]),n}(ea),ia=function(e){Dr(n,e);var t=Ur(n);function n(){return Fr(this,n),t.apply(this,arguments)}return $r(n,[{key:"create",value:function(){var e=this.content;return this.wrap(W("div",{class:"gif-message-body"},W("img",{src:e.remoteUrl})))}}]),n}(ea),oa="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMzJweCIgaGVpZ2h0PSIzMnB4IiB2aWV3Qm94PSIwIDAgMzIgMzIiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+6K+t6Z+z5aSH5Lu9IDI8L3RpdGxlPgogICAgPGcgaWQ9Iumhtemdoi0xIiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgICAgICA8ZyBpZD0iMDVf5Y2V6IGKLeS4jeaUr+aMgeeahOa2iOaBr+exu+Weiy3or63pn7Pmtojmga8iIHRyYW5zZm9ybT0idHJhbnNsYXRlKC01ODQuMDAwMDAwLCAtNjA0LjAwMDAwMCkiIGZpbGwtcnVsZT0ibm9uemVybyI+CiAgICAgICAgICAgIDxnIGlkPSLnvJbnu4TlpIfku70tNSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoNTY0LjAwMDAwMCwgNTg5LjAwMDAwMCkiPgogICAgICAgICAgICAgICAgPGcgaWQ9Iuivremfs+Wkh+S7vS0yIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgyMC4wMDAwMDAsIDE1LjAwMDAwMCkiPgogICAgICAgICAgICAgICAgICAgIDxyZWN0IGlkPSLnn6nlvaIiIGZpbGw9IiMwMDAwMDAiIG9wYWNpdHk9IjAiIHg9IjAiIHk9IjAiIHdpZHRoPSIzMiIgaGVpZ2h0PSIzMiI+PC9yZWN0PgogICAgICAgICAgICAgICAgICAgIDxwYXRoIGQ9Ik0xOS44ODAxNiwyOS45MiBMMTcuNjY3NTIsMjcuNzA3MiBDMjEuMDI5NzYsMjQuODMwMjQgMjMuMTY4NDgsMjAuNTYzODQgMjMuMTY4NDgsMTUuNzkxMDQgQzIzLjE2ODQ4LDExLjI0NDMyIDIxLjIyMjA4LDcuMTYyMjQgMTguMTMxNjgsNC4yOTgwOCBMMjAuMzQ5NzYsMi4wOCBDMjQuMDA2NCw1LjUxMjE2IDI2LjMwMzIsMTAuMzc2MTYgMjYuMzAzMiwxNS43ODY1NiBDMjYuMzAzMiwyMS40MjU0NCAyMy44MTAwOCwyNi40NzEyIDE5Ljg4MDE2LDI5LjkyIFoiIGlkPSLot6/lvoQiIGZpbGw9IiMxMTFGMkMiPjwvcGF0aD4KICAgICAgICAgICAgICAgICAgICA8cGF0aCBkPSJNMTMuOTA4OTYsMjMuOTQ4NjQgTDExLjYyOTYsMjEuNjY5NiBDMTMuNzAwOTYsMjAuNTI0NDggMTUuMTA0MzIsMTguMzIwNjQgMTUuMTA0MzIsMTUuNzg2NTYgQzE1LjEwNDMyLDEzLjQ4NjA4IDEzLjk0NjU2LDExLjQ1Nzc2IDEyLjE4MzM2LDEwLjI0NjI0IEwxNC40MjE2LDguMDA4MzIgQzE2Ljc0MTI4LDkuODExNjggMTguMjQsMTIuNjIxMjggMTguMjQsMTUuNzg2NTYgQzE4LjI0LDE5LjE4MjA4IDE2LjUyMjU2LDIyLjE3NTUyIDEzLjkwODk2LDIzLjk0ODY0IEwxMy45MDg5NiwyMy45NDg2NCBaIE03LjkzNjQ4LDE4LjQ3NDU2IEM2LjY5OTY4LDE4LjQ3NDU2IDUuNjk2OCwxNy40NzIgNS42OTY4LDE2LjIzNDcyIEM1LjY5NjgsMTQuOTk3MjggNi42OTk1MiwxMy45OTQ4OCA3LjkzNjQ4LDEzLjk5NDg4IEM5LjE3NDI0LDEzLjk5NDg4IDEwLjE3NjQ4LDE0Ljk5NzI4IDEwLjE3NjQ4LDE2LjIzNDcyIEMxMC4xNzY0OCwxNy40NzIgOS4xNzQyNCwxOC40NzQ1NiA3LjkzNjQ4LDE4LjQ3NDU2IEw3LjkzNjQ4LDE4LjQ3NDU2IFoiIGlkPSLlvaLnirYiIGZpbGw9IiMxMTFGMkMiPjwvcGF0aD4KICAgICAgICAgICAgICAgIDwvZz4KICAgICAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+",sa="data:image/gif;base64,R0lGODlhQABAAIcAAAAAABEfLBIgLREfLRIfLRIgLBEgLBEgLRIhLgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQFFAAAACwAAAAAQABAAAAIiwABCBxIsKDBgwgTKlzIsKHDhxAjSpxIsaLFixgzatzIsaPHjyBDihxJsqTJkyhTqlzJsqXLlzBjypxJs6bNmzhz6txJUsCAAgd2Bhg6tEBOAkSJBr2ZNOlNAU2J4ow6FGeBqEZxHki69OiAAwZ4ih1LtqzZs2jTql3Ltq3bt3Djyp1Lt67du3h1BgQAIfkEBRQAAAAsGAAQAAwAIAAACHEAAQgEIGCgwYEGAgQ4iFChQoYJHT40KNHhgYMVFQ7AmPGggIwFDX6syLDjwYgOCZQkyVHiSpctHTI8wJJizYEFbgo0aRPmwJEOQw4EaZDmTQJEh/IEkNPkgIwBLu6EavBpRaECrSpEwBCA1a4DuXYNCAAh+QQJFAAAACwkAAQAEQA4AAAIygABCASAYKDBgwMNBDCAsKHCABAbGnwIMUABiQIraiSAkYDGihgBUKzIEaOAjxZDHkAZEgDKiyZZqvwoIOQAmR0/lpR48mNLlAVzaqwZEqfEmxp/0lRaESZGow2hIvSYNCRVkCF7YsVY4GNQiV01fm2oFSJRsD6tpn26VqLUg28NfjyQ9SNDoRXHIowrMGxViSMDnI3aFmHZAAOKFj7oF+JOwyjvEl48EOlfhCvt8kRJt6HlywYbk3SLcvDBz4hbWu6sOnXLhK8BBAQAIfkEBRQAAAAsAAAAAAEAAQAACAQAAQQEADs=",aa=function(e){Dr(n,e);var t=Ur(n);function n(e,r){var i;return Fr(this,n),i=t.call(this,e,r),i.isPlaying=!1,i.handleClick=i.handleClick.bind(Pr(i)),i.onStart=i.onStart.bind(Pr(i)),i.onStop=i.onStop.bind(Pr(i)),i}return $r(n,[{key:"handleClick",value:function(){var e;"function"===typeof this.callback&&("RC:VcMsg"===this.messageType?e=Li(this.content.content):this.messageType===Ct["n"].HQ_VOICE&&(e=this.content.remoteUrl),this.callback({uid:this.uid,type:"hqvoice",url:e,duration:this.content.duration,onStart:this.onStart,onStop:this.onStop}))}},{key:"onStart",value:function(){this.voiceIcon.src=sa}},{key:"onStop",value:function(){this.voiceIcon.src=oa}},{key:"create",value:function(){var e=this,t=this.content;return this.wrap(W("div",{class:"hqvoice-message-body",style:{width:Math.max(150,Math.min(500,t.duration/60*500))+"px"},"data-origin":t.remoteUrl,onClick:this.handleClick},W("img",{ref:function(t){e.voiceIcon=t},class:"voice-icon",src:oa}),t.duration?W("span",null,Math.round(t.duration),"''"):null))}}]),n}(ea),ca=function(e){Dr(n,e);var t=Ur(n);function n(e,r){var i;return Fr(this,n),i=t.call(this,e,r),i.handleClick=i.handleClick.bind(Pr(i)),i.onError=i.onError.bind(Pr(i)),i}return $r(n,[{key:"handleClick",value:function(){"function"===typeof this.callback&&this.callback({type:"image",thumb:this.content.content,url:this.content.imageUri})}},{key:"onError",value:function(e){var t=e.target;t.src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMjQwcHgiIGhlaWdodD0iMjQwcHgiIHZpZXdCb3g9IjAgMCAyNDAgMjQwIiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPgogICAgPHRpdGxlPuWbvueJh+WKoOi9veWksei0pTwvdGl0bGU+CiAgICA8ZyBpZD0i6aG16Z2iLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIGlkPSIxOF/ljZXogYot5Y+R6YCB5Zu+54mH5Yqg6L295aSx6LSlIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtNTY0LjAwMDAwMCwgLTIzNS4wMDAwMDApIj4KICAgICAgICAgICAgPGcgaWQ9IuWbvueJh+WKoOi9veWksei0pSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoNTY0LjAwMDAwMCwgMjM1LjAwMDAwMCkiPgogICAgICAgICAgICAgICAgPHBhdGggZD0iTTE2LDAgTDIzNiwwIEMyMzguMjA5MTM5LC00LjA1ODEyMjUxZS0xNiAyNDAsMS43OTA4NjEgMjQwLDQgTDI0MCwyMjQgQzI0MCwyMzIuODM2NTU2IDIzMi44MzY1NTYsMjQwIDIyNCwyNDAgTDE2LDI0MCBDNy4xNjM0NDQsMjQwIDEuMDgyMTY2ZS0xNSwyMzIuODM2NTU2IDAsMjI0IEwwLDE2IEMtMS4wODIxNjZlLTE1LDcuMTYzNDQ0IDcuMTYzNDQ0LDEuNjIzMjQ5ZS0xNSAxNiwwIFoiIGlkPSLokpnniYgiIGZpbGwtcnVsZT0ibm9uemVybyIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTIwLjAwMDAwMCwgMTIwLjAwMDAwMCkgc2NhbGUoLTEsIDEpIHRyYW5zbGF0ZSgtMTIwLjAwMDAwMCwgLTEyMC4wMDAwMDApICI+PC9wYXRoPgogICAgICAgICAgICAgICAgPHRleHQgZm9udC1mYW1pbHk9IlBpbmdGYW5nU0MtUmVndWxhciwgUGluZ0ZhbmcgU0MiIGZvbnQtc2l6ZT0iMjQiIGZvbnQtd2VpZ2h0PSJub3JtYWwiIGxldHRlci1zcGFjaW5nPSItMC4xNzM1NzE0MjkiIGZpbGw9IiNBMEE1QUIiPgogICAgICAgICAgICAgICAgICAgIDx0c3BhbiB4PSI0OSIgeT0iMTg4Ij7lm77niYfliqDovb3lpLHotKU8L3RzcGFuPgogICAgICAgICAgICAgICAgPC90ZXh0PgogICAgICAgICAgICAgICAgPGcgaWQ9IuaOpeaUtuaWueWKoOi9veWbvueJh+Wksei0pSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoNzEuMDAwMDAwLCA0NS4wMDAwMDApIj4KICAgICAgICAgICAgICAgICAgICA8cmVjdCBpZD0i55+p5b2iIiB4PSIwIiB5PSIwIiB3aWR0aD0iOTgiIGhlaWdodD0iOTgiPjwvcmVjdD4KICAgICAgICAgICAgICAgICAgICA8cGF0aCBkPSJNODMuNTEyMDE2Nyw3IEwxNC40ODc5ODMzLDcgQzguMTMxNzAwMjksNy4wMzk3NTQ3MSAzLDEyLjIxODA4MjUgMywxOC41OTIwODU3IEwzLDc2LjQzMjAxNDMgQzMuMDEzMTYwMDQsODIuODA1OTY0OCA4LjE1NTcwMzk4LDg3Ljk3MzUxMDcgMTQuNTEyMDE2Nyw4OCBMODMuNTEyMDE2Nyw4OCBDODkuODU4OTM3OSw4Ny45NjAzMTczIDk0Ljk4NjkyNzgsODIuNzk2NjE2IDk1LDc2LjQzMjAxNDMgTDk1LDE4LjU5MjA4NTcgQzk1LDEyLjIxODA4MjUgODkuODY4Mjk5Nyw3LjAzOTc1NDcxIDgzLjUxMjAxNjcsNyBaIE04OS4yNTYwMDgzLDY5Ljg1MjcyMjQgTDc1LjQzNjc4MTYsNTIuMTM5MjQ0MyBDNzQuNjg2MDAzLDUwLjgxNzI2MTcgNzMuMzI5NDg4LDQ5Ljk1NTUxMTIgNzEuODE2Nzc0NSw0OS44Mzk1Njk3IEM3MC4zMDQwNjEsNDkuNzIzNjI4MyA2OC44MzI2OTc3LDUwLjM2ODYzNjggNjcuODkwMjgyMiw1MS41NjA4NDUgTDU3Ljc5NjIzODMsNjEuNzMxMDMyNSBMNTUuODQ5NTI5OCw2My42ODMxMyBMNTEuODExOTEyMiw2Ny43NTYwMjUgTDQ4LjkyNzg5OTcsNjQuMDQ0NjI5NiBMMzUuMjA0ODA2Nyw0Ni4zMzExNTE1IEMzNC4zOTI4NTk2LDQ1LjIzOTIwNTUgMzMuMTE0MzI3MSw0NC41OTU5MjU1IDMxLjc1NjAwODQsNDQuNTk1OTI1NSBDMzAuMzk3Njg5Nyw0NC41OTU5MjU1IDI5LjExOTE1NzEsNDUuMjM5MjA1NSAyOC4zMDcyMTAxLDQ2LjMzMTE1MTUgTDguNzQzOTkxNjgsNzAuMDY5NjIyMSBMOC43NDM5OTE2OCwxOC41OTIwODU3IEM4LjU1MTk5NTA0LDE1LjU5MDgyOTcgMTAuODIyMTM0OSwxMy4wMDE1MzE4IDEzLjgxNTA0NywxMi44MDgwOTI4IEw4My41MTIwMTY3LDEyLjgwODA5MjggQzg2LjU5NzM3NzksMTMuMDI5NTA2MSA4OS4wNDgwOTA3LDE1LjQ5NzI4NTcgODkuMjU2MDA4MywxOC41OTIwODU3IEw4OS4yNTYwMDgzLDY5Ljg1MjcyMjQgWiBNNjkuNDc2NDg5MSwyNi45MDY1NzU1IEM2Ni4wODY2Mjk1LDIzLjUxMzU3MyA2MC41OTYxNDQyLDIzLjUxNjk0NTcgNTcuMjEwNDMyOCwyNi45MTQxMTA0IEM1My44MjQ3MjE0LDMwLjMxMTI3NSA1My44MjQ3MjE0LDM1LjgxNjk2MDggNTcuMjEwNDMyOCwzOS4yMTQxMjU0IEM2MC41OTYxNDQyLDQyLjYxMTI5IDY2LjA4NjYyOTUsNDIuNjE0NjYyNyA2OS40NzY0ODkxLDM5LjIyMTY2MDMgQzcxLjEwNzAxNzgsMzcuNTg5NjE5OCA3Mi4wMjMyOTEzLDM1LjM3NDI5NTQgNzIuMDIzMjkxMywzMy4wNjQxMTc5IEM3Mi4wMjMyOTEzLDMwLjc1Mzk0MDQgNzEuMTA3MDE3OCwyOC41Mzg2MTU5IDY5LjQ3NjQ4OTEsMjYuOTA2NTc1NSBMNjkuNDc2NDg5MSwyNi45MDY1NzU1IFoiIGlkPSLlvaLnirYiIGZpbGw9IiM4NTg1ODUiIGZpbGwtcnVsZT0ibm9uemVybyI+PC9wYXRoPgogICAgICAgICAgICAgICAgICAgIDxwb2x5Z29uIGlkPSLot6/lvoQiIGZpbGw9IiNGRkZGRkYiIGZpbGwtcnVsZT0ibm9uemVybyIgcG9pbnRzPSI2NCA2Ni42OTYxNzAyIDUyLjU1MTUzNzEgODggMzggODggNTQuNDU1Njk2MiA3MS42MDUxMDY0IDUwLjYyMjY5MjEgNjYuMjIyMDg3OSA1OC4xMjI5NjU2IDYwIj48L3BvbHlnb24+CiAgICAgICAgICAgICAgICA8L2c+CiAgICAgICAgICAgIDwvZz4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPg=="}},{key:"create",value:function(){var e=this.content;return this.wrap(W("div",{class:"image-message-body","data-origin":e.imageUri,onClick:this.handleClick},e.content?W("img",{src:Li(e.content),onError:this.onError}):null))}}]),n}(ea),ua=function(e){Dr(n,e);var t=Ur(n);function n(){return Fr(this,n),t.apply(this,arguments)}return $r(n,[{key:"create",value:function(){var e=di.lang?di.lang:Ni.zh_CN,t=Ni[e],n="["+t.message.location+"]"+t.message.nonsupport;return this.wrap(W("div",{class:"location-message-body"},W("p",null,n)))}}]),n}(ea),la=function(e){Dr(n,e);var t=Ur(n);function n(){return Fr(this,n),t.apply(this,arguments)}return $r(n,[{key:"create",value:function(){var e,t=this,n=di.lang?di.lang:Ni.zh_CN,r=Ni[n];return this.direction===Ct["m"].SEND?e=r.message.you+" ":this.conversationType===Ct["e"].PRIVATE?di.getConversationProfile({targetId:this.targetId,conversationType:Ct["e"].PRIVATE,channelId:this.channelId}).then((function(n){e=n?n.name:t.senderUserId,t.nameRef.innerText=e+" "})):this.conversationType===Ct["e"].GROUP&&di.getGroupMemberProfile({targetId:this.targetId,conversationType:Ct["e"].GROUP,channelId:this.channelId},this.senderUserId).then((function(n){e=n&&(n.groupNickname||n.name)||t.senderUserId,t.nameRef.innerText=e+" "})),this.wrap(W("div",{class:"recall-message-body"},W("div",{class:"tip-content"},W("span",{ref:function(e){return t.nameRef=e}},e),r.message.msgRecall)))}}]),n}(ea),fa=function(e){Dr(n,e);var t=Ur(n);function n(e,r){var i;return Fr(this,n),i=t.call(this,e,r),i.getName(e),i}return $r(n,[{key:"getName",value:function(e){var t=this;this.name=this.content.referMsgUserId;var n={conversationType:e.conversationType,targetId:e.targetId,channelId:e.channelId};if(e.conversationType===Ct["e"].GROUP)di.getGroupMemberProfile(n,this.name).then((function(e){e&&(t.name=e.groupNickname||e.name,t.nameRef&&(t.nameRef.innerText=t.name))}));else if(e.conversationType===Ct["e"].PRIVATE){var r;r=e.content.referMsgUserId===pn()?di.getMyProfile():di.getConversationProfile(n),r.then((function(e){e&&(t.name=e.displayName||e.name,t.nameRef&&(t.nameRef.innerText=t.name))}))}}},{key:"getRererenceContent",value:function(e,t){var n="",r="",i=di.lang?di.lang:Ni.zh_CN,o=Ni[i];switch(e){case Er.TEXT:n=t.content.content,r=ki(n),n=W("div",{innerHTML:r,class:"referenced-message-text"},W("div",{class:"quote quoteContent",innerHTML:r}));break;case Er.IMAGE:n=W("img",{src:Li(t.content.content)});break;case Er.GIF:n=W("img",{src:t.content.remoteUrl});break;case Er.FILE:n="["+o.conversation.file+"]"+" ".concat(t.content.name);break;case Er.RICH_CONTENT:n="["+o.conversation.img+"]"+" ".concat(t.content.title);break;case Er.REFERENCE:n=t.content.content;break}return n}},{key:"create",value:function(){var e=this,t=this.content;return this.wrap(W("div",{class:"reference-message-body"},W("div",{class:"reference-message-content"},W("div",{class:"user",ref:function(t){return e.nameRef=t}},this.name),W("div",{class:"content"},this.getRererenceContent(t.objName,t.referMsg))),W("div",{class:"message-content",innerHTML:ki(t.content)})))}}]),n}(ea),ha=function(e){Dr(n,e);var t=Ur(n);function n(e,r){var i;return Fr(this,n),i=t.call(this,e,r),i.handleClick=i.handleClick.bind(Pr(i)),i}return $r(n,[{key:"handleClick",value:function(){"function"===typeof this.callback&&this.callback({type:"richContent",url:this.content.url})}},{key:"create",value:function(){var e=this.content;return this.wrap(W("div",{class:"rich-message-body","data-url":e.url,onClick:this.handleClick},W("div",{class:"title"},e.title),W("div",{class:"content"},e.imageUri?W("img",{src:e.imageUri}):null,W("p",null,e.content))))}}]),n}(ea),da=function(e){Dr(n,e);var t=Ur(n);function n(e,r){var i;return Fr(this,n),i=t.call(this,e,r),i.handleClick=i.handleClick.bind(Pr(i)),i}return $r(n,[{key:"handleClick",value:function(){"function"===typeof this.callback&&this.callback({type:"sight",url:this.content.sightUrl,thumb:this.content.content,duration:this.content.duration,size:this.content.size,name:this.content.name})}},{key:"formatDuration",value:function(e){var t=Math.floor(e/3600)>=10?Math.floor(e/3600):"0"+Math.floor(e/3600);e-=3600*t;var n=Math.floor(e/60)>=10?Math.floor(e/60):"0"+Math.floor(e/60);e-=60*n;var r=e>=10?e:"0"+e;return 1*t>0?t+":"+n+":"+r:n+":"+r}},{key:"create",value:function(){var e=this.content;return this.wrap(W("div",{class:"sight-message-body","data-origin":e.imageUri,onClick:this.handleClick},W("img",{class:"sight-conver",src:Li(e.content)}),W("div",{class:"file-duration"},this.formatDuration(e.duration)),W("div",{class:"start-play-btn"},W("button",null))))}}]),n}(ea),pa=function(e){Dr(n,e);var t=Ur(n);function n(){return Fr(this,n),t.apply(this,arguments)}return $r(n,[{key:"create",value:function(){var e=this.content.content;return e=ki(e),this.wrap(W("div",{class:"text-message-body"},W("p",{innerHTML:e})))}}]),n}(ea),ga={"RC:RcCmd":la,"RC:InfoNtf":null,"RC:ContactNtf":null,"RC:ProfileNtf":null,"RC:CmdNtf":null,"RC:GrpNtf":null},va=(Tr={},Rr(Tr,Er.TEXT,pa),Rr(Tr,Er.IMAGE,ca),Rr(Tr,Er.FILE,ra),Rr(Tr,Er.SIGHT,da),Rr(Tr,Er.HQ_VOICE,aa),Rr(Tr,Er.GIF,ia),Rr(Tr,Er.REFERENCE,fa),Rr(Tr,Er.RICH_CONTENT,ha),Rr(Tr,Er.LOCATION,ua),Rr(Tr,"RC:VcMsg",aa),Tr);function ya(e,t){var n=va[e.messageType]||ga[e.messageType];return n?new n(e,t).create():"不识别的消息内容"}var ma=".message-item{display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start;-ms-flex-pack:start;justify-content:flex-start;margin:0 1.5em;padding:2em 0}.ntf-message-item{display:block}.ntf-message-item .tip-content{text-align:center}.message-item.receiver{-ms-flex-direction:row;flex-direction:row}.message-item.poster{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.message-item .avatar{width:6em;height:6em;border-radius:50%;background:#4790ee;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;overflow:hidden;-ms-flex-negative:0;flex-shrink:0}.message-item .avatar img{min-width:100%}.message-item .message-body-wrapper{position:relative;padding:0 1.6em;max-width:50em;-webkit-box-sizing:border-box;box-sizing:border-box}.message-item .message-body-wrapper .name{color:#a0a5ab;font-size:1.8em;line-height:1;margin:0 0 0.4em}.message-item .message-body{font-size:2.4em;border:0.1em solid #ccc;border-radius:1em;position:relative}.message-body .receive-status{width:3.67em;position:absolute;left:-4.2em;bottom:-0.2em;font-size:0.75em;color:#0099ff;text-align:right}.message-item.poster .message-body{border-radius:0.6667em 0.16666em 0.6667em 0.6667em;background:#d7eefd;border:1px solid #bdd9eb}.message-item.receiver .message-body{border-radius:0.16666em 0.6667em 0.6667em 0.6667em;border:1px solid #e2e4e5;background:#fff}.message-content p{margin:0;padding:0;line-height:1.5;font-weight:400;word-break:break-word}.time-separation,.message-group-notifi{font-size:2em;text-align:center;padding:1.5em;color:#a0a5ab}.message-item.fail .receive-status,.message-item.sending .receive-status{display:none}.message-item.sending .message-body::before,.message-item.fail .message-body::before{content:' ';display:block;width:1.6667em;height:1.6667em;background-repeat:no-repeat;background-size:contain;position:absolute;left:-2.2em;bottom:0}.message-item.fail .message-body::before{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMjVweCIgaGVpZ2h0PSIyNHB4IiB2aWV3Qm94PSIwIDAgMjUgMjQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+5oSf5Y+55Y+3PC90aXRsZT4KICAgIDxnIGlkPSLpobXpnaItMSIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPGcgaWQ9IjAyX+WNleiBii3ljZXogYrlkJHkuIrmu5rliqjml7YtbG9hZGluZyIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTEwNC4wMDAwMDAsIC02MzkuMDAwMDAwKSIgZmlsbC1ydWxlPSJub256ZXJvIj4KICAgICAgICAgICAgPGcgaWQ9IuaEn+WPueWPtyIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTA0LjQwMDAwMCwgNjM5LjAwMDAwMCkiPgogICAgICAgICAgICAgICAgPHJlY3QgaWQ9IuefqeW9oiIgeD0iMCIgeT0iMCIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ij48L3JlY3Q+CiAgICAgICAgICAgICAgICA8ZyBpZD0i57yW57uELTI0IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxLjUwMDAwMCwgMS41MDAwMDApIj4KICAgICAgICAgICAgICAgICAgICA8Y2lyY2xlIGlkPSLmpK3lnIblvaIiIGZpbGw9IiNGRjQxNDEiIGN4PSIxMC41IiBjeT0iMTAuNSIgcj0iMTAuNSI+PC9jaXJjbGU+CiAgICAgICAgICAgICAgICAgICAgPHJlY3QgaWQ9IuefqeW9oiIgZmlsbD0iI0ZGRkZGRiIgeD0iOS43NSIgeT0iNS4yNSIgd2lkdGg9IjEuNSIgaGVpZ2h0PSI3LjUiPjwvcmVjdD4KICAgICAgICAgICAgICAgICAgICA8Y2lyY2xlIGlkPSLmpK3lnIblvaIiIGZpbGw9IiNGRkZGRkYiIGN4PSIxMC41IiBjeT0iMTUiIHI9IjEiPjwvY2lyY2xlPgogICAgICAgICAgICAgICAgPC9nPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4=)}.message-item.sending .message-body::before{content:' ';display:inline-block;width:1.5em;height:1.5em;background:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMjhweCIgaGVpZ2h0PSIyOHB4IiB2aWV3Qm94PSIwIDAgMjggMjgiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+bG9hZGluZzwvdGl0bGU+CiAgICA8ZGVmcz4KICAgICAgICA8bGluZWFyR3JhZGllbnQgeDE9Ijk0LjA4NjkxNDElIiB5MT0iMCUiIHgyPSI5NC4wODY5MTQxJSIgeTI9IjkwLjU1OTA4MiUiIGlkPSJsaW5lYXJHcmFkaWVudC0xIj4KICAgICAgICAgICAgPHN0b3Agc3RvcC1jb2xvcj0iIzhGOTQ5QSIgc3RvcC1vcGFjaXR5PSIwIiBvZmZzZXQ9IjAlIj48L3N0b3A+CiAgICAgICAgICAgIDxzdG9wIHN0b3AtY29sb3I9IiM4Rjk0OUEiIHN0b3Atb3BhY2l0eT0iMC4zIiBvZmZzZXQ9IjEwMCUiPjwvc3RvcD4KICAgICAgICA8L2xpbmVhckdyYWRpZW50PgogICAgICAgIDxsaW5lYXJHcmFkaWVudCB4MT0iMTAwJSIgeTE9IjguNjczNzA2MDUlIiB4Mj0iMTAwJSIgeTI9IjkwLjYyODY2MjElIiBpZD0ibGluZWFyR3JhZGllbnQtMiI+CiAgICAgICAgICAgIDxzdG9wIHN0b3AtY29sb3I9IiM4Rjk0OUEiIG9mZnNldD0iMCUiPjwvc3RvcD4KICAgICAgICAgICAgPHN0b3Agc3RvcC1jb2xvcj0iIzhGOTQ5QSIgc3RvcC1vcGFjaXR5PSIwLjMiIG9mZnNldD0iMTAwJSI+PC9zdG9wPgogICAgICAgIDwvbGluZWFyR3JhZGllbnQ+CiAgICA8L2RlZnM+CiAgICA8ZyBpZD0i6aG16Z2iLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIGlkPSIwM1/lkJHkuIvmu5rliqjml7Zsb2FkaW5nIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMTQyLjAwMDAwMCwgLTkxMS4wMDAwMDApIiBmaWxsLXJ1bGU9Im5vbnplcm8iPgogICAgICAgICAgICA8ZyBpZD0i572R57uc5LiN5Y+v55So5o+Q56S6IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwLjAwMDAwMCwgNTc5LjAwMDAwMCkiPgogICAgICAgICAgICAgICAgPGcgaWQ9ImxvYWRpbmciIHRyYW5zZm9ybT0idHJhbnNsYXRlKDE0Mi4wMDAwMDAsIDMzMi4wMDAwMDApIj4KICAgICAgICAgICAgICAgICAgICA8cmVjdCBpZD0i55+p5b2iIiB4PSIwIiB5PSIwIiB3aWR0aD0iMjgiIGhlaWdodD0iMjgiPjwvcmVjdD4KICAgICAgICAgICAgICAgICAgICA8ZyBpZD0iTG9hZGluZ0JyYW5kIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgyLjAwMDAwMCwgMi4wMDAwMDApIj4KICAgICAgICAgICAgICAgICAgICAgICAgPHBhdGggZD0iTTEyLDAgQzE4LjYyNzQxNywwIDI0LDUuMzcyNTgzIDI0LDEyIEMyNCwxOC42Mjc0MTcgMTguNjI3NDE3LDI0IDEyLDI0IEwxMiwyMS45IEMxNy40Njc2MTksMjEuOSAyMS45LDE3LjQ2NzYxOSAyMS45LDEyIEMyMS45LDYuNTMyMzgwOTkgMTcuNDY3NjE5LDIuMSAxMiwyLjEgTDEyLDAgWiIgaWQ9Iui3r+W+hCIgZmlsbD0idXJsKCNsaW5lYXJHcmFkaWVudC0xKSI+PC9wYXRoPgogICAgICAgICAgICAgICAgICAgICAgICA8cGF0aCBkPSJNMTIsMCBMMTIsMi4xIEM2LjUzMjM4MDk5LDIuMSAyLjEsNi41MzIzODA5OSAyLjEsMTIgQzIuMSwxNy40Njc2MTkgNi41MzIzODA5OSwyMS45IDEyLDIxLjkgTDEyLDI0IEM1LjM3MjU4MywyNCAwLDE4LjYyNzQxNyAwLDEyIEMwLDUuMzcyNTgzIDUuMzcyNTgzLDAgMTIsMCBaIiBpZD0i6Lev5b6EIiBmaWxsPSJ1cmwoI2xpbmVhckdyYWRpZW50LTIpIj48L3BhdGg+CiAgICAgICAgICAgICAgICAgICAgICAgIDxjaXJjbGUgaWQ9Ik92YWwiIGZpbGw9IiM4Rjk0OUEiIGN4PSIxMi4xNSIgY3k9IjEuMDUiIHI9IjEuMDUiPjwvY2lyY2xlPgogICAgICAgICAgICAgICAgICAgIDwvZz4KICAgICAgICAgICAgICAgIDwvZz4KICAgICAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+) no-repeat;-webkit-animation:loading 1s infinite;animation:loading 1s infinite;vertical-align:middle;}@-webkit-keyframes loading{from{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes loading{from{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.text-message-body,.location-message-body{padding:0.5em 0.8333em}.file-message-body{-webkit-box-sizing:border-box;box-sizing:border-box;padding:0.83333em;display:-ms-flexbox;display:flex;max-width:20em;-ms-flex-align:center;align-items:center;}.file-message-body .file-message-icon{width:3.5em;height:3.5em;-ms-flex-positive:0;flex-grow:0;-ms-flex-negative:0;flex-shrink:0;background-repeat:no-repeat;background-size:contain;margin:0 0.833333em 0 0}.file-message-body .file-message-icon.file-icon{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iODRweCIgaGVpZ2h0PSI4NHB4IiB2aWV3Qm94PSIwIDAgODQgODQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+aWNvbl/mlofku7bnsbvlnotf5pyq55+lPC90aXRsZT4KICAgIDxnIGlkPSLpobXpnaItMSIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCIgb3BhY2l0eT0iMC43Ij4KICAgICAgICA8ZyBpZD0i54q25oCB5YiH5Zu+IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMjExLjAwMDAwMCwgLTcwMC4wMDAwMDApIj4KICAgICAgICAgICAgPGcgaWQ9Imljb25f5paH5Lu257G75Z6LX+acquefpSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMjExLjAwMDAwMCwgNzAwLjAwMDAwMCkiPgogICAgICAgICAgICAgICAgPHJlY3QgaWQ9IlJlY3RhbmdsZS0zOC1Db3B5LTQiIGZpbGw9IiNCNUI5QkMiIHg9IjAiIHk9IjAiIHdpZHRoPSI4NCIgaGVpZ2h0PSI4NCIgcng9IjYiPjwvcmVjdD4KICAgICAgICAgICAgICAgIDxnIGlkPSJHcm91cC04IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgyMS4wMDAwMDAsIDE0LjAwMDAwMCkiPgogICAgICAgICAgICAgICAgICAgIDxwYXRoIGQ9Ik0yNS41NDYzNTQyLDAgTDQxLjgwMywxNi4xNyBMNDEuODAzMTI1LDUzLjYyMDU4NTMgQzQxLjgwMzEyNSw1NC43ODk3MjUgNDAuODUxNDY1Miw1NS43Mzc1IDM5LjY3MjYzMDgsNTUuNzM3NSBMMi4xMzA0OTQyNCw1NS43Mzc1IEMwLjk1Mzg1NDc2MSw1NS43Mzc1IDAsNTQuNzkzNDU3OSAwLDUzLjYyMDU4NTMgTDAsMi4xMTY5MTQ2OSBDMCwwLjk0Nzc3NDk5IDAuOTUxNjU5Nzk2LDAgMi4xMzA0OTQyNCwwIEwyNS41NDYzNTQyLDAgWiIgaWQ9IkNvbWJpbmVkLVNoYXBlIiBmaWxsPSIjRkZGRkZGIj48L3BhdGg+CiAgICAgICAgICAgICAgICAgICAgPHBhdGggZD0iTTI1LjU0NjM1NDIsMCBMNDEuODQxOTYzOSwxNi4yMDg4NjAxIEwyNi42MTU1NTQ2LDE2LjIwODg2MDEgQzI2LjAyNTA1MTUsMTYuMjA4ODYwMSAyNS41NDYzNTQyLDE1Ljc0MTI0MDkgMjUuNTQ2MzU0MiwxNS4xNDUzNTE1IEwyNS41NDYzNTQyLDAgWiIgaWQ9IlRyaWFuZ2xlLTMiIGZpbGw9IiNENkQ2RDYiPjwvcGF0aD4KICAgICAgICAgICAgICAgIDwvZz4KICAgICAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+)}.file-message-body .file-message-icon.file-zip{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iODRweCIgaGVpZ2h0PSI4NHB4IiB2aWV3Qm94PSIwIDAgODQgODQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+aWNvbl/mlofku7bnsbvlnotfemlwPC90aXRsZT4KICAgIDxnIGlkPSLpobXpnaItMSIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPGcgaWQ9IueKtuaAgeWIh+WbviIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTIxMS4wMDAwMDAsIC04MDYuMDAwMDAwKSI+CiAgICAgICAgICAgIDxnIGlkPSJpY29uX+aWh+S7tuexu+Wei196aXAiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDIxMS4wMDAwMDAsIDgwNi4wMDAwMDApIj4KICAgICAgICAgICAgICAgIDxnIGlkPSJHcm91cC0xMi1Db3B5IiBmaWxsPSIjRkZCRDRDIj4KICAgICAgICAgICAgICAgICAgICA8cmVjdCBpZD0iUmVjdGFuZ2xlLTM4LUNvcHktNCIgeD0iMCIgeT0iMCIgd2lkdGg9Ijg0IiBoZWlnaHQ9Ijg0IiByeD0iNiI+PC9yZWN0PgogICAgICAgICAgICAgICAgPC9nPgogICAgICAgICAgICAgICAgPGcgaWQ9Ikdyb3VwLTciIHRyYW5zZm9ybT0idHJhbnNsYXRlKDMzLjAwMDAwMCwgMC4wMDAwMDApIiBmaWxsPSIjRkZGRkZGIj4KICAgICAgICAgICAgICAgICAgICA8cmVjdCBpZD0iUmVjdGFuZ2xlLTMiIHg9IjguNTk5NSIgeT0iMCIgd2lkdGg9IjguNTk5NSIgaGVpZ2h0PSIyMC45MDE1NjI1Ij48L3JlY3Q+CiAgICAgICAgICAgICAgICAgICAgPHJlY3QgaWQ9IlJlY3RhbmdsZS0zLUNvcHkiIHg9IjAiIHk9IjIwLjkwMTU2MjUiIHdpZHRoPSI4LjU5OTUiIGhlaWdodD0iOC4zNjA2MjUiPjwvcmVjdD4KICAgICAgICAgICAgICAgICAgICA8cmVjdCBpZD0iUmVjdGFuZ2xlLTMtQ29weS0yIiB4PSI4LjU5OTUiIHk9IjI5LjI2MjE4NzUiIHdpZHRoPSI4LjU5OTUiIGhlaWdodD0iOC4zNjA2MjUiPjwvcmVjdD4KICAgICAgICAgICAgICAgICAgICA8cmVjdCBpZD0iUmVjdGFuZ2xlLTMtQ29weS0zIiB4PSIwIiB5PSIzNy42MjI4MTI1IiB3aWR0aD0iOC41OTk1IiBoZWlnaHQ9IjguMzYwNjI1Ij48L3JlY3Q+CiAgICAgICAgICAgICAgICAgICAgPHJlY3QgaWQ9IlJlY3RhbmdsZS0zLUNvcHktNCIgeD0iOC41OTk1IiB5PSI0NS45ODM0Mzc1IiB3aWR0aD0iOC41OTk1IiBoZWlnaHQ9IjguMzYwNjI1Ij48L3JlY3Q+CiAgICAgICAgICAgICAgICAgICAgPHJlY3QgaWQ9IlJlY3RhbmdsZS0zLUNvcHktNSIgeD0iOC41OTk1IiB5PSI1NC4zNDQwNjI1IiB3aWR0aD0iOC41OTk1IiBoZWlnaHQ9IjguMzYwNjI1Ij48L3JlY3Q+CiAgICAgICAgICAgICAgICAgICAgPHJlY3QgaWQ9IlJlY3RhbmdsZS0zLUNvcHktNiIgeD0iMCIgeT0iNTQuMzQ0MDYyNSIgd2lkdGg9IjguNTk5NSIgaGVpZ2h0PSI4LjM2MDYyNSI+PC9yZWN0PgogICAgICAgICAgICAgICAgPC9nPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4=)}.file-message-body .file-message-icon.file-word{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iODRweCIgaGVpZ2h0PSI4NHB4IiB2aWV3Qm94PSIwIDAgODQgODQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+aWNvbl/mlofku7bnsbvlnotfZG9jPC90aXRsZT4KICAgIDxnIGlkPSLpobXpnaItMSIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPGcgaWQ9IueKtuaAgeWIh+WbviIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTIxMS4wMDAwMDAsIC0yNzQuMDAwMDAwKSI+CiAgICAgICAgICAgIDxnIGlkPSJpY29uX+aWh+S7tuexu+Wei19kb2MiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDIxMS4wMDAwMDAsIDI3NC4wMDAwMDApIj4KICAgICAgICAgICAgICAgIDxnIGlkPSJHcm91cC02IiBmaWxsPSIjNjBBN0ZFIj4KICAgICAgICAgICAgICAgICAgICA8cmVjdCBpZD0iUmVjdGFuZ2xlLTM4IiB4PSIwIiB5PSIwIiB3aWR0aD0iODQiIGhlaWdodD0iODQiIHJ4PSI2Ij48L3JlY3Q+CiAgICAgICAgICAgICAgICA8L2c+CiAgICAgICAgICAgICAgICA8cGF0aCBkPSJNMjIuOTU0NTQ1NSwyMCBMMjIuOTU0LDU0LjQ0MyBMNDEuNDQ0MzQ2NCwzNi4wMDUwOTYyIEw0Ni4yMTk4NDI5LDQwLjc2NzI1MDYgTDQ2LjIxMyw0MC43NzMgTDYwLjA0NSw1NC40MzggTDYwLjA0NTQ1NDUsMjAgTDY3LDIwIEw2Nyw2My45MjIzOTgyIEw2MC4xNTMsNjMuOTIyIEw2MC4wNzkyNjk5LDY0IEw0MS41LDQ1LjQ3MyBMMjIuOTU5NDI2OSw2My45NjI2ODA1IEwyMi45MjEsNjMuOTIyIEwxNiw2My45MjIzOTgyIEwxNiwyMCBMMjIuOTU0NTQ1NSwyMCBaIiBpZD0iQ29tYmluZWQtU2hhcGUiIGZpbGw9IiNGRkZGRkYiPjwvcGF0aD4KICAgICAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+)}.file-message-body .file-message-icon.file-xls{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iODRweCIgaGVpZ2h0PSI4NHB4IiB2aWV3Qm94PSIwIDAgODQgODQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+aWNvbl/mlofku7bnsbvlnotfZXhjZWw8L3RpdGxlPgogICAgPGcgaWQ9Iumhtemdoi0xIiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgICAgICA8ZyBpZD0i54q25oCB5YiH5Zu+IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMjExLjAwMDAwMCwgLTQ4OC4wMDAwMDApIj4KICAgICAgICAgICAgPGcgaWQ9Imljb25f5paH5Lu257G75Z6LX2V4Y2VsIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgyMTEuMDAwMDAwLCA0ODguMDAwMDAwKSI+CiAgICAgICAgICAgICAgICA8cmVjdCBpZD0iUmVjdGFuZ2xlLTM4LUNvcHktMiIgZmlsbD0iIzAyRDFBNSIgeD0iMCIgeT0iMCIgd2lkdGg9Ijg0IiBoZWlnaHQ9Ijg0IiByeD0iNiI+PC9yZWN0PgogICAgICAgICAgICAgICAgPHBhdGggZD0iTTYzLDIxIEw0Ni45NzEsNDEuNSBMNjMsNjIgTDUzLjAzODU4MTksNjEuOTc2NzkwNSBMNDEuOTk5LDQ3Ljg1OCBMMzAuOTYxNDE4MSw2MS45NzY3OTA1IEwyMSw2MiBMMzcuMDI4LDQxLjUgTDIxLDIxIEwzMC45NjE0MTgxLDIxLjAyMzIwOTUgTDQyLDM1LjE0MSBMNTMuMDM4NTgxOSwyMS4wMjMyMDk1IEw2MywyMSBaIiBpZD0iQ29tYmluZWQtU2hhcGUiIGZpbGw9IiNGRkZGRkYiPjwvcGF0aD4KICAgICAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+)}.file-message-body .file-message-icon.file-ppt{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iODRweCIgaGVpZ2h0PSI4NHB4IiB2aWV3Qm94PSIwIDAgODQgODQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+aWNvbl/mlofku7bnsbvlnotfcHB0PC90aXRsZT4KICAgIDxnIGlkPSLpobXpnaItMSIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPGcgaWQ9IueKtuaAgeWIh+WbviIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTIxMS4wMDAwMDAsIC05MTIuMDAwMDAwKSI+CiAgICAgICAgICAgIDxnIGlkPSJpY29uX+aWh+S7tuexu+Wei19wcHQiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDIxMS4wMDAwMDAsIDkxMi4wMDAwMDApIj4KICAgICAgICAgICAgICAgIDxyZWN0IGlkPSJSZWN0YW5nbGUtMzgtQ29weS01IiBmaWxsPSIjRkY4NjU0IiB4PSIwIiB5PSIwIiB3aWR0aD0iODQiIGhlaWdodD0iODQiIHJ4PSI2Ij48L3JlY3Q+CiAgICAgICAgICAgICAgICA8cGF0aCBkPSJNMjYsMjAgTDQ1Ljg2MDcxODIsMjAgQzQ4LjQ3MjI2NTUsMjAgNTAuNzc2OTIxNSwyMC40MjAyOTE0IDUyLjc3NDc1NTIsMjEuMjYwODg2OCBDNTQuNzcyNTg4OSwyMi4xMDE0ODIyIDU2LjQ1NzAxMTYsMjMuMjAwNzA1OCA1Ny44MjgwNzQsMjQuNTU4NTkwNyBDNTkuMTk5MTM2MywyNS45MTY0NzU1IDYwLjIzNzIxMDgsMjcuNDQyNDU2NiA2MC45NDIzMjg2LDI5LjEzNjU3OTYgQzYxLjY0NzQ0NjQsMzAuODMwNzAyNiA2MiwzMi41MTgzMzQyIDYyLDM0LjE5OTUyNDkgQzYyLDM2LjAzNTkwMjYgNjEuNjQwOTE3NiwzNy44MDc1OTI0IDYwLjkyMjc0MjEsMzkuNTE0NjQ3NyBDNjAuMjA0NTY2Niw0MS4yMjE3MDI5IDU5LjE1OTk2MzMsNDIuNzQxMjE3OSA1Ny43ODg5MDEsNDQuMDczMjM4MyBDNTYuNDE3ODM4Niw0NS40MDUyNTg3IDU0LjczMzQxNTksNDYuNDcyMTUyMiA1Mi43MzU1ODIyLDQ3LjI3Mzk1MDkgQzUwLjczNzc0ODQsNDguMDc1NzQ5NiA0OC40NDYxNSw0OC40NzY2NDI5IDQ1Ljg2MDcxODIsNDguNDc2NjQyOSBMMzQuMjY1NTA2LDQ4LjQ3NjY0MjkgTDM0LjI2NTUwNiw2OSBMMjYsNjkgTDI2LDIwIFogTTM0LjI2NTUwNiw0Mi44NTExNDgxIEw0NS44NjA3MTgyLDQyLjg1MTE0ODEgQzQ2LjkwNTMzNzEsNDIuODUxMTQ4MSA0Ny45MTA3Njc3LDQyLjYyNDgzNzMgNDguODc3MDQwMyw0Mi4xNzIyMDkgQzQ5Ljg0MzMxMjgsNDEuNzE5NTgwNyA1MC42ODU1MjQyLDQxLjA5ODg0MjcgNTEuNDAzNjk5Nyw0MC4zMDk5NzYyIEM1Mi4xMjE4NzUyLDM5LjUyMTEwOTggNTIuNjk2NDA3LDM4LjU5NjQ2ODcgNTMuMTI3MzEyMywzNy41MzYwMjUzIEM1My41NTgyMTc2LDM2LjQ3NTU4MTkgNTMuNzczNjY3LDM1LjMzNzU2MjIgNTMuNzczNjY3LDM0LjEyMTkzMTkgQzUzLjc3MzY2NywzMi45MzIxNjYxIDUzLjU3MTI3NTEsMzEuODI2NDc2NSA1My4xNjY0ODUzLDMwLjgwNDgyOTggQzUyLjc2MTY5NTUsMjkuNzgzMTgzMSA1Mi4yMDY3NSwyOC45MDM4MDQyIDUxLjUwMTYzMjIsMjguMTY2NjY2NyBDNTAuNzk2NTE0NCwyNy40Mjk1MjkyIDQ5Ljk2MDgzMTgsMjYuODQ3NTg3MiA0OC45OTQ1NTkzLDI2LjQyMDgyMzQgQzQ4LjAyODI4NjgsMjUuOTk0MDU5NiA0Ni45ODM2ODM1LDI1Ljc4MDY4MDkgNDUuODYwNzE4MiwyNS43ODA2ODA5IEwzNC4yNjU1MDYsMjUuNzgwNjgwOSBMMzQuMjY1NTA2LDQyLjg1MTE0ODEgWiIgaWQ9IlAiIGZpbGw9IiNGRkZGRkYiPjwvcGF0aD4KICAgICAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+)}.file-message-body .file-message-icon.file-pdf{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iODRweCIgaGVpZ2h0PSI4NHB4IiB2aWV3Qm94PSIwIDAgODQgODQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+aWNvbl/mlofku7bnsbvlnotfcGRmPC90aXRsZT4KICAgIDxnIGlkPSLpobXpnaItMSIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPGcgaWQ9IueKtuaAgeWIh+WbviIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTIxMS4wMDAwMDAsIC01OTQuMDAwMDAwKSI+CiAgICAgICAgICAgIDxnIGlkPSJpY29uX+aWh+S7tuexu+Wei19wZGYiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDIxMS4wMDAwMDAsIDU5NC4wMDAwMDApIj4KICAgICAgICAgICAgICAgIDxyZWN0IGlkPSJSZWN0YW5nbGUtMzgtQ29weS0zIiBmaWxsPSIjRjM2NjY2IiB4PSIwIiB5PSIwIiB3aWR0aD0iODQiIGhlaWdodD0iODQiIHJ4PSI2Ij48L3JlY3Q+CiAgICAgICAgICAgICAgICA8ZyBpZD0icGRmIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxOS4wMDAwMDAsIDE5LjAwMDAwMCkiIGZpbGw9IiNGRkZGRkYiPgogICAgICAgICAgICAgICAgICAgIDxwYXRoIGQ9Ik0yOS44ODk5NTUxLDMwLjI0MTE4MDkgQzI0LjY5ODg4OTksMzEuMzgyNTY3OSAxOS43NTk5Mjk0LDMzLjAzMzM2NTkgMTQuODIwOTY4OCwzNS4wNjcxNzk2IEMxMC44OTQyNDY5LDQyLjA1MzM4NzMgNy4yMTk2Mjk3Myw0NS42MTE2MDM4IDQuMDUzMDQxNzQsNDUuNjExNjAzOCBDMy40MTg5NjAxOCw0NS42MTE2MDM4IDIuNjU4ODI2MjcsNDUuNDg1MjA4NiAyLjE1MDc5NzA4LDQ1LjEwMjE5MjggQzAuODI0MDMxNTY4LDQ0LjQ4MDk5NTggLTAuMDE3MjE5NjYzNiw0My4xMzg1MjQ2IDAuMDAwMjY3NDczMDgzLDQxLjY3MDM3MTUgQzAuMDAwMjY3NDczMDgzLDQwLjUyODk4NDUgMC4yNTIzNzIxODcsMzcuMzUzNzgzOCAxMi4yODQ2NDI2LDMyLjE0ODU5OTQgQzE1LjAxNDYxMTYsMjcuMTIzOTMxNiAxNy4yNjE4MzkyLDIxLjg1MDMyMTQgMTguOTk1OTc1NywxNi4zOTg5OTEgQzE3LjQ3OTUyNzYsMTMuMzUwMTg1NCAxNC4xODMwNjc1LDUuODU4Mzk2OTcgMTYuNDYzNDY5MiwyLjA0NzM5MDA2IEMxNy4yMjM2MDMxLDAuNjQ5MzgyNDk3IDE4Ljc0Mzg3MSwtMC4xMTI4MTg4ODYgMjAuMzkwMTkxMSwwLjAxMzU3NjMxODMgQzIxLjY4MjUyMTYsMC4wMjY3OTYyNTY0IDIyLjg5Njg4NiwwLjYzNTYyOTkzNSAyMy42ODI4MzE1LDEuNjY0Mzc0MjkgQzI1LjMyOTE1MTcsMy45NTA5Nzg0NCAyNS4xOTkyNzk1LDguNzc2OTc3MTQgMjMuMDUyNTY5NywxNS44ODk1OCBDMjUuMDgwMzE2OCwxOS42OTY0NzE1IDI3LjczNTU3NjgsMjMuMTMyMDU3NiAzMC45MDYwMTM1LDI2LjA1MDk4ODQgQzMzLjU2NDU3MjMsMjUuNTQ1NDA3NiAzNi4yMjY5NTA5LDI1LjE2MjM5MTggMzguODg1NTA5NywyNS4xNjIzOTE4IEM0NC44NDA1Mjg2LDI1LjI4ODc4NyA0NS43MjY3MTQ5LDI4LjA4ODYzMjMgNDUuNjAwNjYyNSwyOS43MzE3Njk5IEM0NS41OTY4NDI4LDM0LjA1MjE4NzggNDEuNDE0MTk2NCwzNC4wNTIxODc4IDM5LjI2MzY2NjgsMzQuMDUyMTg3OCBDMzUuODEyNDI4NiwzMy44MjI0MTA2IDMyLjUyNjI0MTEsMzIuNDg2MzY3NCAyOS44ODk5NTUxLDMwLjI0MTE4MDkgWiBNMy44MDA5MzcwMiw0MS45MjY5OTIxIEw0LjE3OTA5NDA5LDQxLjgwMDU5NjkgQzUuOTUxNDY2NjMsNDEuMTY0NzkwNyA3LjM0NTY4MjA5LDM5Ljg5NzAwODUgOC4zNTc5MjA3MSwzOC4yNDIzODA0IEM2LjQ1NTY3NjA1LDM5LjAwODQxMTkgNC45MzkyMjgsNDAuMjcyMzYzOSAzLjgwMDkzNzAyLDQxLjkyNjk5MjEgTDMuODAwOTM3MDIsNDEuOTI2OTkyMSBaIE0yMC42NDYxMTU2LDMuODI0NTgzMjMgTDIwLjI2NDEzODgsMy44MjQ1ODMyMyBDMjAuMTM4MDg2NCwzLjgyNDU4MzIzIDE5Ljg4MjE2MTksMy44MjQ1ODMyMyAxOS43NTYxMDk2LDMuOTUwOTc4NDQgQzE5LjI1MTkwMDIsNi4xMTExODczOCAxOS42MzAwNTcyLDguMzk3NzkxNTMgMjAuNTIwMDYzMywxMC40MzE2MDUzIEMyMS4yNTQwNjYxLDguMjk3Mzc2MjkgMjEuMjk4MTc1Myw1Ljk4NTQwMDMxIDIwLjY0NjExNTYsMy44MjQ1ODMyMyBMMjAuNjQ2MTE1NiwzLjgyNDU4MzIzIFogTTIxLjUzMjMwMTksMjIuMjM5OTgxNSBMMjEuNDA2MjQ5NSwyMi40OTY2MDIgTDIxLjI3NjM3NzQsMjIuMzY2Mzc2NyBDMjAuMTM4MDg2NCwyNS4yODg3ODcgMTguODY5OTIzMywyOC4yMDczNjcyIDE3LjQ3NTcwNzksMzEuMDAzMzgyMyBMMTcuNzI3ODEyNiwzMC44NzY5ODcxIEwxNy43Mjc4MTI2LDMxLjEyOTc3NzUgQzIwLjU0NjA5NzksMzAuMTEyMzM3NSAyMy40MjIzOTgyLDI5LjI2NDM2NjggMjYuMzQxMzkwMywyOC41OTAzODI5IEwyNi4yMTkxNTc3LDI4LjQ2Mzk4NzcgTDI2LjYwMTEzNDUsMjguNDYzOTg3NyBDMjQuNjk4OTc0LDI2LjU3Mjg5MDEgMjMuMDAwMDUyOSwyNC40ODY3ODk0IDIxLjUzMjMwMTksMjIuMjM5OTgxNSBMMjEuNTMyMzAxOSwyMi4yMzk5ODE1IFogTTM4Ljc1NTYzNzYsMjguOTczMzk4NyBDMzcuNjE3MzQ2NiwyOC45NzMzOTg3IDM2LjYwNTEwOCwyOC45NzMzOTg3IDM1LjQ2NjgxNywyOS4yMjYxODkxIEMzNi43MzExNjAzLDI5Ljg1ODE2NTEgMzcuOTk5MzIzNCwzMC4xMTQ3ODU3IDM5LjI2MzY2NjgsMzAuMjQxMTgwOSBDNDAuMTQ5ODUzLDMwLjM2NzU3NjEgNDEuMDM5ODU5MSwzMC4yNDExODA5IDQxLjc5NjE3MzIsMjkuOTg4MzkwNSBDNDEuNzk2MTczMiwyOS42MDkyMDQ5IDQxLjI4ODE0NCwyOC45NzMzOTg3IDM4Ljc1NTYzNzYsMjguOTczMzk4NyBMMzguNzU1NjM3NiwyOC45NzMzOTg3IFoiIGlkPSJTaGFwZSI+PC9wYXRoPgogICAgICAgICAgICAgICAgPC9nPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4=)}.file-message-body .file-message-icon.file-audio{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iODRweCIgaGVpZ2h0PSI4NHB4IiB2aWV3Qm94PSIwIDAgODQgODQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+aWNvbl/mlofku7bnsbvlnotfbXAzPC90aXRsZT4KICAgIDxnIGlkPSLpobXpnaItMSIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPGcgaWQ9IueKtuaAgeWIh+WbviIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTIxMS4wMDAwMDAsIC0zODIuMDAwMDAwKSI+CiAgICAgICAgICAgIDxnIGlkPSJpY29uX+aWh+S7tuexu+Wei19tcDMiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDIxMS4wMDAwMDAsIDM4Mi4wMDAwMDApIj4KICAgICAgICAgICAgICAgIDxyZWN0IGlkPSJSZWN0YW5nbGUtMzgtQ29weSIgZmlsbD0iIzg5RDA0MiIgeD0iMCIgeT0iMCIgd2lkdGg9Ijg0IiBoZWlnaHQ9Ijg0IiByeD0iNiI+PC9yZWN0PgogICAgICAgICAgICAgICAgPHBhdGggZD0iTTM3LjQ3NTIyMjcsMzEuNzU2NTMyMyBMNTEuODYwODE3MSw1Ni4yNDQyMzQgQzU0LjQ1OTc1Miw2MC42NjgyMzkgNTIuNDYxMjgxNSw2Ni41ODQwMTU4IDQ3LjM5NzEwODQsNjkuNDU3NDkxMyBDNDIuMzMyOTM1Myw3Mi4zMzA5NjY5IDM2LjEyMDc1ODksNzEuMDc0MDE0NCAzMy41MjE4MjQxLDY2LjY1MDAwOTQgQzMwLjkyMjg4OTIsNjIuMjI2MDA0NCAzMi45MjEzNTk3LDU2LjMxMDIyNzYgMzcuOTg1NTMyOCw1My40MzY3NTIxIEM0MC44NjYwNDQ3LDUxLjgwMjMxMzQgNDQuMTE3OTc2Niw1MS41MDQyMTU4IDQ2Ljg2NTEyNzQsNTIuMzY1MTcxNCBMMzEsMjUuMzU4OTUyOCBMMzEuMjQ4NDgzOCwyNS4yMTc5NiBMMzEuMjQwMzE0NCwyNS4yMDYyOTgzIEMzMS4yNDAzMTQ0LDI1LjIwNjI5ODMgMzEuNDIzNDIxNSwyNS4xMTA4NzI3IDMxLjc0NzU5NjEsMjQuOTM0NzU3NCBMMzMuMDM3NjY1OSwyNC4yMDI3NTU1IEwzMy4wNDMyNDAzLDI0LjIxMjI0NDQgQzM2LjUzMDQ0OCwyMi4yMjE1Mjk2IDQzLjk1MDU0OTEsMTcuNjI5MzUwNyA0NS4wMDg2MzA2LDE0LjA0NDI2ODUgQzQ2LjM5OTEyMDQsOS4zMzI4OTE4OSA1Mi4xMzQ5MjcxLDIxLjgxMzIxMDQgNDYuMzc2NTA1MSwyNi42MzM0MDI0IEM0Mi41NDQyMDQ3LDI5Ljg0MTI5OTMgMzkuMjUwMTE5NCwzMS4yMDM4OTUxIDM3LjQ3NTIyMjcsMzEuNzU2NTMyMyBMMzcuNDc1MjIyNywzMS43NTY1MzIzIFoiIGlkPSJDb21iaW5lZC1TaGFwZSIgZmlsbD0iI0ZGRkZGRiI+PC9wYXRoPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4=)}.file-message-body .file-message-icon.file-plain{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iODRweCIgaGVpZ2h0PSI4NHB4IiB2aWV3Qm94PSIwIDAgODQgODQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+aWNvbl/mlofku7bnsbvlnotfdHh0PC90aXRsZT4KICAgIDxnIGlkPSLpobXpnaItMSIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPGcgaWQ9IueKtuaAgeWIh+WbviIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTIxMS4wMDAwMDAsIC0xMTI0LjAwMDAwMCkiPgogICAgICAgICAgICA8ZyBpZD0iaWNvbl/mlofku7bnsbvlnotfdHh0IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgyMTEuMDAwMDAwLCAxMTI0LjAwMDAwMCkiPgogICAgICAgICAgICAgICAgPGcgaWQ9Ikdyb3VwLTEyLUNvcHkiIGZpbGw9IiMzRUE5RkYiPgogICAgICAgICAgICAgICAgICAgIDxyZWN0IGlkPSJSZWN0YW5nbGUtMzgtQ29weS00IiB4PSIwIiB5PSIwIiB3aWR0aD0iODQiIGhlaWdodD0iODQiIHJ4PSI2Ij48L3JlY3Q+CiAgICAgICAgICAgICAgICA8L2c+CiAgICAgICAgICAgICAgICA8ZyBpZD0iR3JvdXAtNCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMjEuMDAwMDAwLCAyMy4wMDAwMDApIiBmaWxsPSIjRkZGRkZGIj4KICAgICAgICAgICAgICAgICAgICA8ZyBpZD0iR3JvdXAtMyIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMC4yNzk1MDAsIDAuMzc0NzA2KSI+CiAgICAgICAgICAgICAgICAgICAgICAgIDxyZWN0IGlkPSJSZWN0YW5nbGUtNSIgeD0iMCIgeT0iMCIgd2lkdGg9IjQxLjkyNSIgaGVpZ2h0PSI3LjAyNTczNTI5IiByeD0iMC42MzciPjwvcmVjdD4KICAgICAgICAgICAgICAgICAgICAgICAgPHBhdGggZD0iTTEuNjkzMjUsMTkuOTI1MzY3NiBMNDAuMjMxNzUsMTkuOTI1MzY3NiBDNDAuNTgzNTU1NCwxOS45MjUzNjc2IDQwLjg2ODc1LDIwLjIxMDU2MjMgNDAuODY4NzUsMjAuNTYyMzY3NiBMNDAuODY4NzUsMjYuMjc1ODY3NiBDNDAuODY4NzUsMjYuNjI3NjczIDQwLjU4MzU1NTQsMjYuOTEyODY3NiA0MC4yMzE3NSwyNi45MTI4Njc2IEwxLjY5MzI1LDI2LjkxMjg2NzYgQzEuMzQxNDQ0NjEsMjYuOTEyODY3NiAxLjA1NjI1LDI2LjYyNzY3MyAxLjA1NjI1LDI2LjI3NTg2NzYgTDEuMDU2MjUsMjAuNTYyMzY3NiBDMS4wNTYyNSwyMC4yMTA1NjIzIDEuMzQxNDQ0NjEsMTkuOTI1MzY3NiAxLjY5MzI1LDE5LjkyNTM2NzYgWiIgaWQ9IlJlY3RhbmdsZS01LUNvcHkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDIwLjk2MjUwMCwgMjMuNDE5MTE4KSByb3RhdGUoLTI3MC4wMDAwMDApIHRyYW5zbGF0ZSgtMjAuOTYyNTAwLCAtMjMuNDE5MTE4KSAiPjwvcGF0aD4KICAgICAgICAgICAgICAgICAgICA8L2c+CiAgICAgICAgICAgICAgICA8L2c+CiAgICAgICAgICAgIDwvZz4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPg==)}.file-message-body .file-message-icon.file-video{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iODRweCIgaGVpZ2h0PSI4NHB4IiB2aWV3Qm94PSIwIDAgODQgODQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+aWNvbl/mlofku7bnsbvlnotfbXA0PC90aXRsZT4KICAgIDxnIGlkPSLpobXpnaItMSIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPGcgaWQ9IueKtuaAgeWIh+WbviIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTIxMS4wMDAwMDAsIC0xMDE4LjAwMDAwMCkiPgogICAgICAgICAgICA8ZyBpZD0iaWNvbl/mlofku7bnsbvlnotfbXA0IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgyMTEuMDAwMDAwLCAxMDE4LjAwMDAwMCkiPgogICAgICAgICAgICAgICAgPHJlY3QgaWQ9IlJlY3RhbmdsZS0zOC1Db3B5LTYiIGZpbGw9IiNBMzk2RTgiIHg9IjAiIHk9IjAiIHdpZHRoPSI4NCIgaGVpZ2h0PSI4NCIgcng9IjYiPjwvcmVjdD4KICAgICAgICAgICAgICAgIDxwYXRoIGQ9Ik02Mi4zNDQ4NDI5LDI1IEM2My44MTEyNDU3LDI1IDY1LDI2LjE4NDU2NzkgNjUsMjcuNjU5NDE1NyBMNjUsNTcuMzQwNTg0MyBDNjUsNTguODA5MzM5IDYzLjgxNjY4ODcsNjAgNjIuMzQ0ODQyOSw2MCBMMjEuNjU1MTU3MSw2MCBDMjAuMTg4NzU0Myw2MCAxOSw1OC44MTU0MzIxIDE5LDU3LjM0MDU4NDMgTDE5LDI3LjY1OTQxNTcgQzE5LDI2LjE5MDY2MSAyMC4xODMzMTEzLDI1IDIxLjY1NTE1NzEsMjUgTDYyLjM0NDg0MjksMjUgWiBNMzcuMSwzNS4yNjU5Njk2IEwzNy4xLDUwLjg5MDY5OTMgQzM3LjEsNTIuMzU0MzUxMiAzOC4wNTM2MTMzLDUyLjgyOTk2OCAzOS4yMzE1MzU5LDUxLjk1MTg0MDYgTDQ5LjAwMjk0NjksNDQuNjY3MzY5MiBDNTAuMTgwMTYxNyw0My43ODk3Njk1IDUwLjE4MDg2OTUsNDIuMzY3NDI3IDQ5LjAwMjk0NjksNDEuNDg5Mjk5NyBMMzkuMjMxNTM1OSwzNC4yMDQ4MjgyIEMzOC4wNTQzMjExLDMzLjMyNzIyODYgMzcuMSwzMy44MDA3NzEyIDM3LjEsMzUuMjY1OTY5NiBaIiBpZD0iQ29tYmluZWQtU2hhcGUiIGZpbGw9IiNGRkZGRkYiPjwvcGF0aD4KICAgICAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+)}.file-message-body .file-message-icon.file-image{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAVAAAAFQCAMAAADeNtbrAAAAq1BMVEUAAACK0EOK0UOK0EOP4VGJ0UOK0EOK0UKJ0EKK0EOL0UKK0UOK0EOP10iQ2EiK0UKJ0EL////o9tv7/fmV1VX5/Pbv+OX9/vy4442P0kvV7ruz4Yb3/PLy+urt9+Ge2GSM0Ufo9dnh88/0+u7e8sqY1lqR00+K0ETM6q2t3nu85JTl9dXT7bir3Xil22+b11/E56Cv34DP7LLA5pui2mqo3HTa8MOL0UbH6aaB6/VOAAAAEHRSTlMApHnxCP3l2NC+f29MIBPyp/tPoQAAByJJREFUeNrs10sOwjAMRdGXpP82wftfLROEKB8JWiN5cM8SruIk1l5d0zwWw1fKOKe16qO2TIafTUvTO13mZB5UcqcX22A4bNj0JPeGE/q8H/dkOCk9jj09HSTdZYODrJuN+9NFv90uUN53J0PHwP9h6Bv/eTelSVoMbhZJ7O+OJqkaHFWtBkcrS5KvpNngaNZocDTqYnBUZHBFUILGRlCCxkZQgsZGUILGRlCCxkZQgsZGUILGRlCCxkZQgsZGUILGRlCCxkZQgsZG0Cs7dCwAAAAAMMjfeho7CiGhb0KFvgkV+iZU6JtQoW9Chb4JFfomVOibUKFvQoW+CRX6JlTom1Chb0KFvgkV+iZU6JtQoW9Chb4JFfomVOibUKFvQoW+CRX6Fvt2ltsqEERheAunwjwagwHPseMp+1/ZjWRFSRoaQ9NIdt3+FsDDL5VUQtUm6JMGXYWuRS/JcsMVxtEfdDanlzafQdkUQXcOvThnB2X6g85evieRM4Mq/UFffN7v5lCkP+iKWFhBjf6gIbEQQo3+oC6x4EKN/qAvun+KLKjRH5SYgAIT1ASVMkGfHRSYoCaolAn67KDABDVBpUzQZwcFJqgJKmWCPjsoMEFNUCkT9NlBgQlqgkqZoM8OCv6DoF662KQODWaCtnL9Cl/q8yGhYUzQNocM325+QUOYoE1WhN/snAYwQZt8/JUNKWqCNmwhClLqzQQVWTYadtSbCSpaokVOfZmgoj1a+NSXCSpwarSwqS8TVJCilUU9maCCHK1c6skEFWzQqqCeTFBBgjYZ9cUiaOqX5dolPWy02FMnZkHnFb5kS9LCR4vubzMLapW4uySkwRuaqpjk2AU94FsQkgZHNHxQB25BkwA/jjGNVtgQRCTHL6jw83JBo20C/HH0SI5d0A0Ea4fGerPx47akDvyCniF639BYsV/jLlgn1IVd0C2a6pNHYxXL6LKLDrlF3bgFdWy0maU0HdZBT2iXLWkynIMmGWT2CU2DddAj5IItTYJz0BydjgXpxzmoN0M3+0q6sQ76gYd8h/TiHDSu8FiZk06sg67Ry8kifTgHdW/oZ/ZGurAOukNft0+P9OAcdIEB9i7pwDmo944H9G/5rIMuMdCqoLE4B40rDFVdaRzWQX0oiGIag3PQtIYKOyd1rINeoGhtkSrOQa9Q9j4nNZyDWiXU1WpbPuugnxjl7NJwnIMWAcYJPmgo1kF9jLZLaBjOQefQoAppCNZB91ClvuVzDhpiBMWzMs5BrRJjKG35rIMeMI7KWRnnoEkGneqDRw95i6gsI5dn0AianVPqlp7s+/I65xh0A926z8rijzO+lQ7DoGdM4JJIRz3DLz6/oFtMIggloy5YcAvq2NBK/njE2e7RZMfMgp6glXTLz6MMrSJeQd0M2jXPytxDCakrq6BHTKrciKPeVBWMguaYWL32Azxw5BP0H7t2kqQgFARh2CPkEwFBEREnnNv5/ifrHb1sFrXIfFHfEf7QoCAyr8GgjCboHRS2bSRB51tw6CIJegCLUxRBFzuwKKoYgp7B4xVB0DWY3OWD5lcwKTL1oHtwuYgHpTmZenvtoFOwWS6Ug455TqbeMxcO+gKhr27QNxh9xqpBkw0o1blo0C9I3TSDtgVI7RrJoDPQuiaCQRsQewgGvYDZUS5oCWrXRCxoMgG3g1jQG9itpIJWS7DbpEpBiU+m3lQo6BEK1jpBn1AwmasEPUHDTCRoyn4y9d4aQR9QMZkrBM34T6bej0LQDkJK/qArKNm27EFJ1rWDdexBSda1w524g/JNRf5TVNRBeda1g72YgxKta4e7EwdlWtcOVmS0QbnWtYNdWIOSrWuH25MGZVvXDjbJOYOq/kCBFWXQCrLWlEFbqNq1lEGD2Gv8nynpQ2n9gaRpTho0rPQeS8tDuSB+UwrVWMsiYf98Jw0GTIImIQoJDJgEzUIUMhgwCVqGKJQwYBK0C1HoYMAkKJoQgQYGjILWaZCX1rAxgoGzfNH0DCMjWKjF//VNDSsj2OjKTPQeTbKyg50RHOBBeXlQD8rNg3pQbh7Ug3LzoB6Umwf1oNw8qAfl5kE9KDcP6kG5edDf9uskt4EYBqJoSa2eB/P+p40TIEg8AYabi1r8d4QPSCQJ6o2gBPVGUIJ6IyhBvRGUoN4ISlBvBCWoN4IS1BtBCeqNoAT1RlCCeiMoQb0RlKDeCEpQbwQlqDeCEtQbQQnqjaAE9UZQgnojKEG9EZSg3ghKUG8EJag3ghLUG0EJ6o2gBPVGUIJ6IyhBvRGUoN7UBRJ1GgOJRs2BRLNKIFHRGki0ag8k2qUpkGaStATSLJIONtE03aGrGkhS9a0NgRRD04+tDyToN13x6NNU/eJcylD0p1H0tNL0X+UfPaWvurMx608YNj1olQ3/Q11teuZYuOs/MC2HXtrXMo+XwFsu41zWXTe+AIkX5RUygDIXAAAAAElFTkSuQmCC)}.file-message-body .file-message-icon.file-apk{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iODRweCIgaGVpZ2h0PSI4NHB4IiB2aWV3Qm94PSIwIDAgODQgODQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+aWNvbl/mlofku7bnsbvlnotfYXBrPC90aXRsZT4KICAgIDxnIGlkPSLpobXpnaItMSIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPGcgaWQ9IueKtuaAgeWIh+WbviIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTIxMS4wMDAwMDAsIC0xNjU0LjAwMDAwMCkiIGZpbGwtcnVsZT0ibm9uemVybyI+CiAgICAgICAgICAgIDxnIGlkPSJpY29uX+aWh+S7tuexu+Wei19hcGsiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDIxMS4wMDAwMDAsIDE2NTQuMDAwMDAwKSI+CiAgICAgICAgICAgICAgICA8cGF0aCBkPSJNNy44NzQ5OTk5NywwIEw3Ni4xMjUsMCBDODAuNDU2MjUsMCA4NCwzLjU0Mzc1IDg0LDcuODc0OTk5OTcgTDg0LDc2LjEyNSBDODQsODAuNDU2MjUgODAuNDU2MjUsODQgNzYuMTI1LDg0IEw3Ljg3NDk5OTk3LDg0IEMzLjU0Mzc1LDg0IDAsODAuNDU2MjUgMCw3Ni4xMjUgTDAsNy44NzQ5OTk5NyBDMCwzLjU0Mzc1IDMuNTQzNzUsMCA3Ljg3NDk5OTk3LDAgWiIgaWQ9Iui3r+W+hCIgZmlsbD0iI0EwQzUzOCI+PC9wYXRoPgogICAgICAgICAgICAgICAgPHBhdGggZD0iTTU3Ljc2NjY2NjYsNDguNTEyODk0NyBDNTcuNzY2NjY2Niw1MC4xNjc0NjAzIDU5LjIzMzMzMzMsNTEuNjM4MTg1MiA2MC44ODMzMzMzLDUxLjYzODE4NTIgQzYyLjcxNjY2NjYsNTEuNjM4MTg1MiA2NCw1MC4xNjc0NjAzIDY0LDQ4LjUxMjg5NDcgTDY0LDM2LjE5NTU3MzQgQzY0LDM0LjM1NzE2NzIgNjIuNTMzMzMzMywzMy4wNzAyODI5IDYwLjg4MzMzMzMsMzMuMDcwMjgyOSBDNTkuMjMzMzMzMywzMy4wNzAyODI5IDU3Ljc2NjY2NjYsMzQuNTQxMDA3OCA1Ny43NjY2NjY2LDM2LjE5NTU3MzQgTDU3Ljc2NjY2NjYsNDguNTEyODk0NyBaIE00Ni41ODMzMzM0LDI1LjkwMDQ5ODkgQzQ2LjU4MzMzMzQsMjQuOTgxMjk1OCA0Ny4zMTY2NjY3LDI0LjQyOTc3MzkgNDguMDQ5OTk5OSwyNC40Mjk3NzM5IEM0OC45NjY2NjY2LDI0LjQyOTc3MzkgNDkuNjk5OTk5OSwyNS4xNjUxMzY0IDQ5LjY5OTk5OTksMjUuOTAwNDk4OSBDNDkuNjk5OTk5OSwyNi44MTk3MDIgNDguOTY2NjY2NiwyNy4zNzEyMjM3IDQ4LjA0OTk5OTksMjcuMzcxMjIzNyBDNDcuMTMzMzMzMywyNy4zNzEyMjM3IDQ2LjU4MzMzMzQsMjYuNjM1ODYxMyA0Ni41ODMzMzM0LDI1LjkwMDQ5ODkgWiBNMzQuNjY2NjY2NywyNS45MDA0OTg5IEMzNC42NjY2NjY3LDI0Ljk4MTI5NTggMzUuNCwyNC40Mjk3NzM5IDM2LjEzMzMzMzQsMjQuNDI5NzczOSBDMzcuMDUsMjQuNDI5NzczOSAzNy42MDAwMDAxLDI1LjE2NTEzNjQgMzcuNjAwMDAwMSwyNS45MDA0OTg5IEMzNy42MDAwMDAxLDI2LjgxOTcwMiAzNi44NjY2NjY3LDI3LjM3MTIyMzcgMzYuMTMzMzMzNCwyNy4zNzEyMjM3IEMzNS4yMTY2NjY3LDI3LjM3MTIyMzcgMzQuNjY2NjY2NywyNi42MzU4NjEzIDM0LjY2NjY2NjcsMjUuOTAwNDk4OSBaIE0yOC4wNjY2NjY3LDU1LjY4MjY3ODggQzI4LjA2NjY2NjcsNTYuOTY5NTYzMiAyOS4xNjY2NjY2LDU4LjA3MjYwNjggMzAuNDUsNTguMDcyNjA2NyBMMzMuMiw1OC4wNzI2MDY3IEwzMy4yLDY0Ljg3NDcwOTYgQzMzLjIsNjYuNTI5Mjc1MiAzNC40ODMzMzM0LDY4IDM2LjMxNjY2NjcsNjggQzM3Ljk2NjY2NjcsNjggMzkuNDMzMzMzNCw2Ni41MjkyNzUgMzkuNDMzMzMzNCw2NC44NzQ3MDk2IEwzOS40MzMzMzM0LDU4LjA3MjYwNjcgTDQ0LjM4MzMzMzMsNTguMDcyNjA2NyBMNDQuMzgzMzMzMyw2NC44NzQ3MDk2IEM0NC4zODMzMzMzLDY2LjUyOTI3NTIgNDUuNjY2NjY2Nyw2OCA0Ny41LDY4IEM0OS4zMzMzMzMzLDY4IDUwLjYxNjY2NjcsNjYuNTI5Mjc1IDUwLjYxNjY2NjYsNjQuODc0NzA5NiBMNTAuNjE2NjY2Niw1OC4wNzI2MDY3IEw1My4zNjY2NjY3LDU4LjA3MjYwNjcgQzU0LjgzMzMzMzQsNTguMDcyNjA2NyA1NS43NSw1Ni45Njk1NjMgNTUuNzUsNTUuNjgyNjc4OCBMNTUuNzUsMzMuMjU0MTIzNSBMMjguMDY2NjY2NywzMy4yNTQxMjM1IEwyOC4wNjY2NjY3LDU1LjY4MjY3ODggWiBNNTUuOTMzMzMzMywzMS4yMzE4NzY3IEM1NS41NjY2NjY3LDI3LjAwMzU0MjYgNTIuNjMzMzMzMywyMy41MTA1NzA5IDQ4LjYsMjEuNDg4MzI0IEw1MS4xNjY2NjY2LDE3LjgxMTUxMTcgQzUxLjM0OTk5OTksMTcuNjI3NjcxMiA1MS4zNDk5OTk5LDE3LjI1OTk4OTkgNTEuMTY2NjY2NiwxNy4wNzYxNDkzIEM1MC45ODMzMzMzLDE2Ljg5MjMwODcgNTAuOCwxNy4wNzYxNDkzIDUwLjYxNjY2NjYsMTcuMjU5OTg5OSBMNDcuODY2NjY2NiwyMS4xMjA2NDI4IEM0Ni4wMzMzMzMzLDIwLjM4NTI4MDQgNDQuMiwyMC4wMTc1OTkyIDQyLjE4MzMzMzMsMjAuMDE3NTk5MSBDNDAuMTY2NjY2NiwyMC4wMTc1OTg5IDM4LjE1LDIwLjM4NTI4MDIgMzYuMzE2NjY2NywyMS4xMjA2NDI4IEwzMy43NSwxNy4yNTk5ODk5IEMzMy41NjY2NjY3LDE3LjA3NjE0OTMgMzMuMzgzMzMzNCwxNi44OTIzMDg3IDMzLjIsMTcuMDc2MTQ5MyBDMzMuMDE2NjY2NywxNy4yNTk5ODk5IDMzLjAxNjY2NjcsMTcuNDQzODMwNCAzMy4wMTY2NjY3LDE3LjgxMTUxMTcgTDM1LjU4MzMzMzMsMjEuNDg4MzI0IEMzMS41NSwyMy4zMjY3MzAyIDI4LjYxNjY2NjcsMjYuODE5NzAxOCAyOC4yNSwzMS4yMzE4NzY3IEw1NS45MzMzMzMzLDMxLjIzMTg3NjcgTDU1LjkzMzMzMzMsMzEuMjMxODc2NyBaIE0yMCw0OC41MTI4OTQ3IEMyMCw1MC4xNjc0NjAzIDIxLjI4MzMzMzQsNTEuNjM4MTg1MiAyMy4xMTY2NjY3LDUxLjYzODE4NTIgQzI0Ljc2NjY2NjcsNTEuNjM4MTg1MiAyNi4yMzMzMzM0LDUwLjE2NzQ2MDMgMjYuMjMzMzMzNCw0OC41MTI4OTQ3IEwyNi4yMzMzMzM0LDM2LjE5NTU3MzQgQzI2LjIzMzMzMzQsMzQuMzU3MTY3MiAyNC43NjY2NjY3LDMzLjA3MDI4MjkgMjMuMTE2NjY2NywzMy4wNzAyODI5IEMyMS4yODMzMzM0LDMzLjA3MDI4MjkgMjAsMzQuNTQxMDA3OCAyMCwzNi4xOTU1NzM0IEwyMCw0OC41MTI4OTQ3IFoiIGlkPSLlvaLnirYiIGZpbGw9IiNGRkZGRkYiPjwvcGF0aD4KICAgICAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+)}.file-message-body .file-message-icon.file-text{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTY4cHgiIGhlaWdodD0iMTY4cHgiIHZpZXdCb3g9IjAgMCAxNjggMTY4IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPgogICAgPHRpdGxlPmljb25f5paH5Lu257G75Z6LX+aWh+S7tjwvdGl0bGU+CiAgICA8ZyBpZD0i6aG16Z2iLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIGlkPSLnirbmgIHliIflm74iIHRyYW5zZm9ybT0idHJhbnNsYXRlKC02OTYuMDAwMDAwLCAtMzE4Ni4wMDAwMDApIiBmaWxsLXJ1bGU9Im5vbnplcm8iPgogICAgICAgICAgICA8ZyBpZD0iaWNvbl/mlofku7bnsbvlnotf5paH5Lu2IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSg2OTYuMDAwMDAwLCAzMTg2LjAwMDAwMCkiPgogICAgICAgICAgICAgICAgPGcgaWQ9ImFwayIgZmlsbD0iI0EwQzUzOCI+CiAgICAgICAgICAgICAgICAgICAgPHBhdGggZD0iTTE1Ljg5NDE5NDcsMC4xNjM4NTc2OTggTDE1Mi4yMjM3ODMsMC4xNjM4NTc2OTggQzE2MC44NzU0NjgsMC4xNjM4NTc2OTggMTY3Ljk1NDEyLDcuMjQyNTA5MzggMTY3Ljk1NDEyLDE1Ljg5NDE5NDcgTDE2Ny45NTQxMiwxNTIuMjIzNzgzIEMxNjcuOTU0MTIsMTYwLjg3NTQ2OCAxNjAuODc1NDY4LDE2Ny45NTQxMiAxNTIuMjIzNzgzLDE2Ny45NTQxMiBMMTUuODk0MTk0NywxNjcuOTU0MTIgQzcuMjQyNTA5MzgsMTY3Ljk1NDEyIDAuMTYzODU3Njk4LDE2MC44NzU0NjggMC4xNjM4NTc2OTgsMTUyLjIyMzc4MyBMMC4xNjM4NTc2OTgsMTUuODk0MTk0NyBDMC4xNjM4NTc2OTgsNy4yNDI1MDkzOCA3LjI0MjUwOTM4LDAuMTYzODU3Njk4IDE1Ljg5NDE5NDcsMC4xNjM4NTc2OTggWiIgaWQ9Iui3r+W+hCI+PC9wYXRoPgogICAgICAgICAgICAgICAgPC9nPgogICAgICAgICAgICAgICAgPGcgaWQ9IuaWh+S7tiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoNDUuMDAwMDAwLCAzNi4wMDAwMDApIiBmaWxsPSIjRkZGRkZGIj4KICAgICAgICAgICAgICAgICAgICA8cGF0aCBkPSJNNzAuOTIxNzQ2NiwwIEw2LjM2ODMyMTkyLDAgQzIuNTcxMDYxNjQsMCAwLjAzOTU1NDc5NDUsMi41MzA0MzQ3OCAwLjAzOTU1NDc5NDUsNi4zMjYwODY5NiBMMC4wMzk1NTQ3OTQ1LDg5LjgzMDQzNDggQzAuMDM5NTU0Nzk0NSw5Mi45OTM0NzgzIDMuMjAzOTM4MzYsOTYuMTU2NTIxNyA2LjM2ODMyMTkyLDk2LjE1NjUyMTcgTDQ2Ljg3MjQzMTUsOTYuMTU2NTIxNyBDNTAuNjY5NjkxOCw5Ni4xNTY1MjE3IDUzLjIwMTE5ODYsOTMuNjI2MDg3IDUzLjIwMTE5ODYsODkuODMwNDM0OCBMNTMuMjAxMTk4Niw3Ni41NDU2NTIyIEM1My4yMDExOTg2LDczLjM4MjYwODcgNTYuMzY1NTgyMiw3MC4yMTk1NjUyIDU5LjUyOTk2NTgsNzAuMjE5NTY1MiBMNzAuMjg4ODY5OSw3MC4yMTk1NjUyIEM3NC4wODYxMzAxLDcwLjIxOTU2NTIgNzYuNjE3NjM3LDY3LjY4OTEzMDQgNzYuNjE3NjM3LDYzLjg5MzQ3ODMgTDc2LjYxNzYzNyw1LjY5MzQ3ODI2IEM3Ny44ODMzOTA0LDIuNTMwNDM0NzggNzQuNzE5MDA2OCwwIDcwLjkyMTc0NjYsMCBaIE01MC4wMzY4MTUxLDUxLjg3MzkxMyBDNTAuMDM2ODE1MSw1My43NzE3MzkxIDQ4Ljc3MTA2MTYsNTUuMDM2OTU2NSA0Ni44NzI0MzE1LDU1LjAzNjk1NjUgTDE4LjM5Mjk3OTUsNTUuMDM2OTU2NSBDMTYuNDk0MzQ5Myw1NS4wMzY5NTY1IDE1LjIyODU5NTksNTMuNzcxNzM5MSAxNS4yMjg1OTU5LDUxLjg3MzkxMyBMMTUuMjI4NTk1OSw1MS4yNDEzMDQzIEMxNS4yMjg1OTU5LDQ5LjM0MzQ3ODMgMTYuNDk0MzQ5Myw0OC4wNzgyNjA5IDE4LjM5Mjk3OTUsNDguMDc4MjYwOSBMNDYuODcyNDMxNSw0OC4wNzgyNjA5IEM0OC43NzEwNjE2LDQ4LjA3ODI2MDkgNTAuMDM2ODE1MSw0OS4zNDM0NzgzIDUwLjAzNjgxNTEsNTEuODczOTEzIFogTTYzLjk2MDEwMjcsMzQuNzkzNDc4MyBDNjMuOTYwMTAyNywzNi42OTEzMDQzIDYyLjY5NDM0OTMsMzcuOTU2NTIxNyA2MC43OTU3MTkyLDM3Ljk1NjUyMTcgTDE4LjM5Mjk3OTUsMzcuOTU2NTIxNyBDMTYuNDk0MzQ5MywzNy4zMjM5MTMgMTQuNTk1NzE5MiwzNi4wNTg2OTU3IDE0LjU5NTcxOTIsMzQuNzkzNDc4MyBMMTQuNTk1NzE5MiwzNC4xNjA4Njk2IEMxNC41OTU3MTkyLDMyLjI2MzA0MzUgMTUuODYxNDcyNiwzMC45OTc4MjYxIDE3Ljc2MDEwMjcsMzAuOTk3ODI2MSBMNjAuMTYyODQyNSwzMC45OTc4MjYxIEM2Mi42OTQzNDkzLDMwLjk5NzgyNjEgNjMuOTYwMTAyNywzMi4yNjMwNDM1IDYzLjk2MDEwMjcsMzQuNzkzNDc4MyBMNjMuOTYwMTAyNywzNC43OTM0NzgzIFogTTYzLjk2MDEwMjcsMTcuNzEzMDQzNSBDNjMuOTYwMTAyNywxOS42MTA4Njk2IDYyLjY5NDM0OTMsMjAuODc2MDg3IDYwLjc5NTcxOTIsMjAuODc2MDg3IEwxOC4zOTI5Nzk1LDIwLjg3NjA4NyBDMTYuNDk0MzQ5MywyMC44NzYwODcgMTUuMjI4NTk1OSwxOS42MTA4Njk2IDE1LjIyODU5NTksMTcuNzEzMDQzNSBMMTUuMjI4NTk1OSwxNy4wODA0MzQ4IEMxNS4yMjg1OTU5LDE1LjE4MjYwODcgMTYuNDk0MzQ5MywxMy45MTczOTEzIDE4LjM5Mjk3OTUsMTMuOTE3MzkxMyBMNjAuNzk1NzE5MiwxMy45MTczOTEzIEM2Mi42OTQzNDkzLDEzLjkxNzM5MTMgNjMuOTYwMTAyNywxNS4xODI2MDg3IDYzLjk2MDEwMjcsMTcuNzEzMDQzNSBaIiBpZD0i5b2i54q2Ij48L3BhdGg+CiAgICAgICAgICAgICAgICAgICAgPHBhdGggZD0iTTU3LjYzMTMzNTYsODAuOTczOTEzIEw1Ny42MzEzMzU2LDg5LjgzMDQzNDggQzU3LjYzMTMzNTYsOTIuOTkzNDc4MyA2MS40Mjg1OTU5LDk0LjI1ODY5NTcgNjMuMzI3MjI2LDkyLjM2MDg2OTYgTDc1Ljk4NDc2MDMsNzkuNzA4Njk1NyBDNzcuODgzMzkwNCw3Ny44MTA4Njk2IDc2LjYxNzYzNyw3NC4wMTUyMTc0IDczLjQ1MzI1MzQsNzQuMDE1MjE3NCBMNjQuNTkyOTc5NSw3NC4wMTUyMTc0IEM2MC43OTU3MTkyLDc0LjAxNTIxNzQgNTcuNjMxMzM1Niw3Ny4xNzgyNjA5IDU3LjYzMTMzNTYsODAuOTczOTEzIFoiIGlkPSLot6/lvoQiPjwvcGF0aD4KICAgICAgICAgICAgICAgIDwvZz4KICAgICAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+)}.file-message-body .file-desc{width:7.9166em;margin:0 0.41666em 0 0}.file-message-body .file-desc .file-name{height:2.3333em;line-height:1.1;text-overflow:ellipsis;font-size:1em;margin:0 0 0.1667em;word-break:break-all;overflow:hidden;white-space:nowrap}.file-message-body .file-desc .file-size{font-weight:400;color:#c7cbce;line-height:0.83333em;font-size:0.75em}.file-message-body .file-download-btn{background:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iNzBweCIgaGVpZ2h0PSI3MHB4IiB2aWV3Qm94PSIwIDAgNzAgNzAiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+5LiL6L29aWNvbjwvdGl0bGU+CiAgICA8ZyBpZD0i6aG16Z2iLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIGlkPSIwNF/ljZXogYot5paH5Lu25raI5oGv5oKs5YGc54K55Ye754q25oCBIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtOTY1LjAwMDAwMCwgLTUyOC4wMDAwMDApIj4KICAgICAgICAgICAgPGcgaWQ9Iue8lue7hOWkh+S7vS01IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSg1NjQuMDAwMDAwLCA1MDEuMDAwMDAwKSI+CiAgICAgICAgICAgICAgICA8ZyBpZD0i5LiL6L29aWNvbiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoNDAyLjAwMDAwMCwgMjguMDAwMDAwKSI+CiAgICAgICAgICAgICAgICAgICAgPGNpcmNsZSBpZD0i5qSt5ZyG5b2iIiBzdHJva2U9IiNFMkU0RTUiIGZpbGw9IiNGRkZGRkYiIGN4PSIzNCIgY3k9IjM0IiByPSIzNCI+PC9jaXJjbGU+CiAgICAgICAgICAgICAgICAgICAgPHBhdGggZD0iTTM1LjYyMTEzNzMsMzcuMzE4NDc0IEw0NC4xMDk2NTIzLDI4Ljg4MzU1NjcgQzQ0LjU0MjA5NTUsMjguNDUzODQ0IDQ1LjI0MzIyNDQsMjguNDUzODQ0IDQ1LjY3NTY2NzYsMjguODgzNTU2NyBDNDYuMTA4MTEwOCwyOS4zMTMyNjk0IDQ2LjEwODExMDgsMzAuMDA5OTcxMyA0NS42NzU2Njc2LDMwLjQzOTY4NCBMMzUuNDA3NTg5Nyw0MC42NDI5Mjc4IEMzNC45MTExNDk1LDQxLjExOTAyNDEgMzQuMTI0NDY3LDQxLjExOTAyNDEgMzMuNjI4MDI2OCw0MC42NDI5Mjc4IEwyMy4zMjQzNTc2LDMwLjQ1NzM2NzMgQzIzLjA0NDYxNTksMzAuMTc5MzkxOSAyMi45MzUzNjQ0LDI5Ljc3NDIzNCAyMy4wMzc3NTY5LDI5LjM5NDUxMjUgQzIzLjE0MDE0OTUsMjkuMDE0NzkxMSAyMy40Mzg2MzAzLDI4LjcxODE5NDkgMjMuODIwNzY0NiwyOC42MTY0NDg5IEMyNC4yMDI4OTg5LDI4LjUxNDcwMjggMjQuNjEwNjMxMywyOC42MjMyNjQ2IDI0Ljg5MDM3MywyOC45MDEyNCBMMzMuMzc4ODg4LDM3LjMzNjE1NzMgTDMzLjM3ODg4OCwyMC4yNTQxMjM1IEMzMy4zMjQyNjc1LDE5LjgyNTg5MjkgMzMuNTIzNTEzNywxOS40MDQ4NDk2IDMzLjg5MDI1NzUsMTkuMTczNTA3IEMzNC4yNTcwMDEzLDE4Ljk0MjE2NDMgMzQuNzI1MjI4MywxOC45NDIxNjQzIDM1LjA5MTk3MjEsMTkuMTczNTA3IEMzNS40NTg3MTU5LDE5LjQwNDg0OTYgMzUuNjU3OTYyMSwxOS44MjU4OTI5IDM1LjYwMzM0MTYsMjAuMjU0MTIzNSBMMzUuNjIxMTM3MywzNy4zMTg0NzQgWiBNMjEuOTQ4MjczMSw0NyBDMjEuNDA2MzAxMiw0Ni45MzYxNjMgMjEsNDYuNTA3Njk4NyAyMSw0NiBDMjEsNDUuNDkyMzAxMyAyMS40MDYzMDEyLDQ1LjA2MzgzNyAyMS45NDgyNzMxLDQ1IEw0Ni4wNTE3MjY5LDQ1IEM0Ni41OTM2OTg4LDQ1LjA2MzgzNyA0Nyw0NS40OTIzMDEzIDQ3LDQ2IEM0Nyw0Ni41MDc2OTg3IDQ2LjU5MzY5ODgsNDYuOTM2MTYzIDQ2LjA1MTcyNjksNDcgTDIxLjk0ODI3MzEsNDcgWiIgaWQ9IuW9oueKtiIgZmlsbD0iIzAwOTlGRiIgZmlsbC1ydWxlPSJub256ZXJvIj48L3BhdGg+CiAgICAgICAgICAgICAgICA8L2c+CiAgICAgICAgICAgIDwvZz4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPg==) no-repeat;background-size:contain;width:2.8333em;height:2.8333em;-ms-flex-positive:0;flex-grow:0;-ms-flex-negative:0;flex-shrink:0;cursor:pointer}.hqvoice-message-body{-webkit-box-sizing:border-box;box-sizing:border-box;font-size:1em;color:#111f2c;padding:0.625em 0.8333em 0.625em;display:-ms-flexbox;display:flex}.message-item.receiver .hqvoice-message-body{-ms-flex-direction:row;flex-direction:row}.message-item.poster .hqvoice-message-body{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.hqvoice-message-body img{width:1.3333em;height:1.3333em}.message-item.receiver .hqvoice-message-body img{margin:0 1.6em 0 0}.message-item.poster .hqvoice-message-body img{margin:0 0 0 1.6em;-webkit-transform:rotate(180deg);transform:rotate(180deg)}.sight-message-body{max-width:12.5em;position:relative;border-radius:0.5em;border:1px solid #e2e4e5;overflow:hidden}.sight-message-body img{display:block}.sight-message-body .file-duration{font-size:0.8333em;color:#ffffff;position:absolute;line-height:1.166667em;right:0.58333em;bottom:0.416667em;z-index:2}.sight-message-body .start-play-btn{width:100%;height:100%;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;background:rgba(0, 0, 0, 0.2);position:absolute;left:0;top:0;z-index:1;font-size:1em}.sight-message-body .start-play-btn button{background:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iNzJweCIgaGVpZ2h0PSI3MnB4IiB2aWV3Qm94PSIwIDAgNzIgNzIiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+57yW57uEIDEwPC90aXRsZT4KICAgIDxnIGlkPSLpobXpnaItMSIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPGcgaWQ9IjE2X+WNleiBii3lsI/op4bpopHmtojmga8tMiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTExMzYuMDAwMDAwLCAtNTAzLjAwMDAwMCkiIGZpbGwtcnVsZT0ibm9uemVybyI+CiAgICAgICAgICAgIDxnIGlkPSLnvJbnu4QtMTEiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEwMjAuMDAwMDAwLCA0NTEuMDAwMDAwKSI+CiAgICAgICAgICAgICAgICA8ZyBpZD0i57yW57uELTEwIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxMTYuMDAwMDAwLCA1Mi4wMDAwMDApIj4KICAgICAgICAgICAgICAgICAgICA8Y2lyY2xlIGlkPSLmpK3lnIblvaIiIHN0cm9rZT0iI0ZGRkZGRiIgc3Ryb2tlLXdpZHRoPSIyIiBjeD0iMzYiIGN5PSIzNiIgcj0iMzUiPjwvY2lyY2xlPgogICAgICAgICAgICAgICAgICAgIDxwYXRoIGQ9Ik0zMS41MzY0NDM1LDIzLjk3NjYzMTkgTDUwLjI0OTU5MiwzNS44NzE1NDI0IEM1MC43MTU2ODUxLDM2LjE2NzgxMTkgNTAuODUzMzU0MywzNi43ODU4MjkgNTAuNTU3MDg0OCwzNy4yNTE5MjIxIEM1MC40NzU2MTIyLDM3LjM4MDA5NTMgNTAuMzY2MDE1MSwzNy40ODgwMjcyIDUwLjIzNjYwOTgsMzcuNTY3NTI4MSBMMzEuNTIzNDYxMyw0OS4wNjQwNTMyIEMzMS4wNTI4ODczLDQ5LjM1MzE1MjkgMzAuNDM3MDUwMiw0OS4yMDYwMzkgMzAuMTQ3OTUwNSw0OC43MzU0NjUgQzMwLjA1MTIxMTcsNDguNTc4MDAxMSAzMCw0OC4zOTY4MDk4IDMwLDQ4LjIxMjAwMzggTDMwLDI0LjgyMDU2ODEgQzMwLDI0LjI2ODI4MzQgMzAuNDQ3NzE1MywyMy44MjA1NjgxIDMxLDIzLjgyMDU2ODEgQzMxLjE5MDAwOTksMjMuODIwNTY4MSAzMS4zNzYwODcyLDIzLjg3NDcwMjMgMzEuNTM2NDQzNSwyMy45NzY2MzE5IFoiIGlkPSLnn6nlvaIiIGZpbGw9IiNGRkZGRkYiPjwvcGF0aD4KICAgICAgICAgICAgICAgIDwvZz4KICAgICAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+) no-repeat;background-size:contain;width:3em;height:3em;border:none}.gif-message-body img{max-width:30em;display:block}.reference-message-body{padding:0.5833em 0.8333em;min-width:8.333em}.reference-message-body .reference-message-content{border-bottom:1px solid rgba(160, 165, 171, 0.26)}.reference-message-body .reference-message-content .user{font-size:0.83333em;color:#a0a5ab;border-left:0.16667em solid #a0a5ab;padding:0 0 0 0.41666em;height:1.08333em;line-height:1.08333em}.reference-message-body .reference-message-content .content{color:#111f2c;padding:0.41667em 0 0.3em 0.58333em;word-break:break-all}.reference-message-body .reference-message-content .content img{width:2.91667em;height:2.91667em;border-radius:0.25em}.reference-message-body .message-content{color:#111f2c;font-size:1em;padding:0.41667em 0 0 0.05833em;word-break:break-all;position:relative}.rich-message-body{padding:0.58333em 0.83333em}.rich-message-body .title{color:#111f2c;font-size:1em;max-height:4.16667em;line-height:1.41667em;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box}.rich-message-body .content{line-height:1.4;color:#a0a5ab;font-size:0.83333em;overflow:hidden}.rich-message-body .content>p{height:5em;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:4;-webkit-box-orient:vertical;display:-webkit-box}.rich-message-body .content img{float:right;width:4.6667em;height:4.6667em;overflow:hidden;text-overflow:ellipsis;word-break:break-all;border-radius:0.25em;border:1px solid #979797;margin:0 0 0 1em}.message-item.custom-notify-message-item{text-align:center;display:block;font-size:1.5em}a.url-wrap{color:#0099ff;text-decoration:none}.referenced-message-text{height:1em;line-height:1;overflow:hidden;text-overflow:ellipsis;word-break:keep-all}div.referenced-message-text:hover div{visibility:visible}.quote{position:absolute;top:2em;z-index:100}.quoteContent{width:100%;word-break:break-all;visibility:hidden;padding:0.17em;background:#fff;-webkit-box-shadow:0px 0px 15px 3px rgba(100, 102, 109, 0.19);box-shadow:0px 0px 15px 3px rgba(100, 102, 109, 0.19);border-radius:0.17em;font-size:0.8em;font-family:PingFangSC-Regular, PingFang SC;font-weight:400;color:#111f2c;line-height:1.2}.sendFail{content:' ';display:block;width:1.6667em;height:1.6667em;background-repeat:no-repeat;background-size:contain;position:absolute;left:-2.2em;bottom:0;background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMjVweCIgaGVpZ2h0PSIyNHB4IiB2aWV3Qm94PSIwIDAgMjUgMjQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+5oSf5Y+55Y+3PC90aXRsZT4KICAgIDxnIGlkPSLpobXpnaItMSIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPGcgaWQ9IjAyX+WNleiBii3ljZXogYrlkJHkuIrmu5rliqjml7YtbG9hZGluZyIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTEwNC4wMDAwMDAsIC02MzkuMDAwMDAwKSIgZmlsbC1ydWxlPSJub256ZXJvIj4KICAgICAgICAgICAgPGcgaWQ9IuaEn+WPueWPtyIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTA0LjQwMDAwMCwgNjM5LjAwMDAwMCkiPgogICAgICAgICAgICAgICAgPHJlY3QgaWQ9IuefqeW9oiIgeD0iMCIgeT0iMCIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ij48L3JlY3Q+CiAgICAgICAgICAgICAgICA8ZyBpZD0i57yW57uELTI0IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxLjUwMDAwMCwgMS41MDAwMDApIj4KICAgICAgICAgICAgICAgICAgICA8Y2lyY2xlIGlkPSLmpK3lnIblvaIiIGZpbGw9IiNGRjQxNDEiIGN4PSIxMC41IiBjeT0iMTAuNSIgcj0iMTAuNSI+PC9jaXJjbGU+CiAgICAgICAgICAgICAgICAgICAgPHJlY3QgaWQ9IuefqeW9oiIgZmlsbD0iI0ZGRkZGRiIgeD0iOS43NSIgeT0iNS4yNSIgd2lkdGg9IjEuNSIgaGVpZ2h0PSI3LjUiPjwvcmVjdD4KICAgICAgICAgICAgICAgICAgICA8Y2lyY2xlIGlkPSLmpK3lnIblvaIiIGZpbGw9IiNGRkZGRkYiIGN4PSIxMC41IiBjeT0iMTUiIHI9IjEiPjwvY2lyY2xlPgogICAgICAgICAgICAgICAgPC9nPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4=)}",Ia=function(e){Dr(n,e);var t=Ur(n);function n(){var e;return Fr(this,n),e=t.call(this),e.__registerHost(),e.rightClick=Ae(Pr(e),"rightClick",7),e.tapMessageItem=Ae(Pr(e),"tapMessageItem",7),e.lang=di.lang,e.lastTime=0,e.tapMessageHandler=e.tapMessageHandler.bind(Pr(e)),e.rightClickHandler=e.rightClickHandler.bind(Pr(e)),e.handleLanguageChanged=e.handleLanguageChanged.bind(Pr(e)),e}return $r(n,[{key:"validateData",value:function(e,t){e!==t&&(this.lastTime=0)}},{key:"componentWillLoad",value:function(){di.off(Cr.LANGUAGE_CHANGED,this.handleLanguageChanged),di.on(Cr.LANGUAGE_CHANGED,this.handleLanguageChanged)}},{key:"disconnectedCallback",value:function(){di.off(Cr.LANGUAGE_CHANGED,this.handleLanguageChanged)}},{key:"handleLanguageChanged",value:function(e){this.lastTime=0,this.lang=e.lang}},{key:"findMember",value:function(e){if(this.groupMembers&&this.groupMembers.length)return this.groupMembers.find((function(t){return t.id===e}))}},{key:"getTimeLine",value:function(e,t){return W("li",{class:"time-separation"},Ui(e,{hour:":",minute:""},t))}},{key:"tapMessageHandler",value:function(e){this.tapMessageItem.emit(e.detail)}},{key:"getItem",value:function(e){if(-1!==e.messageType.indexOf("__RECALL"))return null;if(ga[e.messageType])return W("li",{class:"message-item ntf-message-item"},ya(e));if(di.isCustomNotifyMessage(e))return W("li",{class:"message-item custom-notify-message-item",innerHTML:di.createCustomNotifyMessageDom(e)});var t=e.conversationType===Ct["e"].GROUP,n={groupNickname:"",id:"",name:""};if(t){var r=this.findMember(e.senderUserId);r&&(n=r)}return W("message-item",{member:n,message:e,isGroupMember:t,conversationProfile:this.conversationProfile,myProfile:this.myProfile,onRightClick:this.rightClickHandler,onTap:this.tapMessageHandler})}},{key:"rightClickHandler",value:function(e){this.rightClick.emit(e.detail)}},{key:"checkGroup",value:function(e){var t=this,n=this.messages;return n.map((function(n){return n.sentTime-t.lastTime<3e5?t.getItem(n):(t.lastTime=n.sentTime,W(Xe,null,t.getTimeLine(n.sentTime,e),t.getItem(n)))}))}},{key:"render",value:function(){this.locale=this.lang?Ni[this.lang]:Ni.zh_CN;var e=this.locale;return W("ul",{style:{"list-style":"none",padding:"0",margin:"0"}},this.checkGroup(e))}}],[{key:"watchers",get:function(){return{messages:["validateData"]}}},{key:"style",get:function(){return ma}}]),n}(Sr(HTMLElement)),_a=".message-item.image-message-item .message-body,.message-item.sight-message-item .message-body,.message-item.gif-message-item .message-body{background:none;border:none;padding:0}.message-item.image-message-item .message-body .image-message-body img{max-width:10em;min-width:2.5em}.message-item.image-message-item .image-message-body{min-width:2.2222em;min-height:2.2222em;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.message-item.file-message-item .upload-progress-mask{width:1.165em;height:1.165em;min-width:1.165em;top:0.27em;left:0.27em;border-radius:0.1em;background:none}.message-item.file-message-item .upload-progress-mask .upload-progress-bar{width:141.4%;height:141.4%}.message-item.file-message-item .upload-progress-mask .upload-progress-bar svg path{fill:rgba(0, 0, 0, .4)}",Ta=function(e){Dr(n,e);var t=Ur(n);function n(){var e;return Fr(this,n),e=t.call(this),e.__registerHost(),e.rightClick=Ae(Pr(e),"rightClick",7),e.tap=Ae(Pr(e),"tap",7),e.lang=di.lang,e.handleClick=e.handleClick.bind(Pr(e)),e.handleFail=e.handleFail.bind(Pr(e)),e.handleLanguageChanged=e.handleLanguageChanged.bind(Pr(e)),e}return $r(n,[{key:"componentWillLoad",value:function(){di.off(Cr.LANGUAGE_CHANGED,this.handleLanguageChanged),di.on(Cr.LANGUAGE_CHANGED,this.handleLanguageChanged)}},{key:"disconnectedCallback",value:function(){di.off(Cr.LANGUAGE_CHANGED,this.handleLanguageChanged)}},{key:"handleLanguageChanged",value:function(e){this.lang=e.lang}},{key:"getMessageStyleClass",value:function(e){var t,n=(t={},Rr(t,Er.IMAGE,"image-message-item"),Rr(t,Er.SIGHT,"sight-message-item"),Rr(t,Er.GIF,"gif-message-item"),Rr(t,Er.FILE,"file-message-item"),t);return(n[e.messageType]||e.messageType)+" "}},{key:"rightClickHandler",value:function(e,t){if(2===t.button)return t.preventDefault(),this.rightClick.emit({message:e,position:{top:t.clientY,left:t.clientX}})}},{key:"getReceivedStatus",value:function(e,t){var n="";return e.messageDirection===Ct["m"].SEND&&e.conversationType===Ct["e"].PRIVATE&&(n=e.receivedStatus===Ct["r"].UNREAD?t.conversation.unread:t.conversation.read),n}},{key:"getProgressBar",value:function(e){return 0===e.messageUId.indexOf("sending")&&e.messageId&&-1!==[Er.IMAGE,Er.FILE,Er.SIGHT,Er.HQ_VOICE,Er.GIF].indexOf(e.messageType)?W("progress-bar",{mId:e.messageId,reverse:e.messageType===Er.FILE}):null}},{key:"handleClick",value:function(e){this.tap.emit(e)}},{key:"handleFail",value:function(){var e={conversationType:this.message.conversationType,targetId:this.message.targetId,channelId:this.message.channelId};di.resendMessage(e,this.message)}},{key:"render",value:function(){var e=this;this.locale=this.lang?Ni[this.lang]:Ni.zh_CN;var t=this.message,n=this.isGroupMember,r=this.member,i=this.locale;return va[t.messageType]||di.isCustomUserMessage(t)?W("li",{class:"message-item "+this.getMessageStyleClass(t)+(t.conversationType===Ct["e"].SYSTEM?"system-user-message-item ":"")+(t.messageDirection===Ct["m"].RECEIVE?"receiver ":"poster ")+(t.messageUId.startsWith("sending_")?"sending ":""),key:t.messageUId,"data-key":t.messageUId},W("div",{class:"avatar"},n?r&&r.portraitUri?W("img",{src:r.portraitUri}):null:t.messageDirection===Ct["m"].RECEIVE?this.conversationProfile?W("img",{src:this.conversationProfile.portraitUri}):null:this.myProfile?W("img",{src:this.myProfile.portraitUri}):null),W("div",{class:"message-body-wrapper",onContextMenu:function(n){return e.rightClickHandler(t,n)}},n&&t.messageDirection===Ct["m"].RECEIVE?W("div",{class:"name"},W("span",null,r.groupNickname||r.name||r.id)):null,t.conversationType===Ct["e"].SYSTEM?W("div",{class:"name"},W("span",null,this.conversationProfile.name)):null,W("div",{class:"message-body"},va[t.messageType]?W(Xe,null,t.messageUId.startsWith("fail_")?W("div",{onClick:this.handleFail,class:"sendFail"}):W("div",{class:"receive-status"}," ",this.getReceivedStatus(t,i)," "),ya(t,this.handleClick),this.getProgressBar(t)):di.isCustomUserMessage(t)?W("div",null,W("div",{class:"receive-status"}," ",this.getReceivedStatus(t,i)," "),W("div",{innerHTML:di.createCustomUserMessageDom(t)})):null))):(console.log("无法识别的消息",t.messageType,JSON.stringify(t.content)),null)}}],[{key:"style",get:function(){return _a}}]),n}(Sr(HTMLElement)),Ca="undefined"!==typeof window,Ma=Ca&&navigator.userAgent.toLowerCase();if(Ma&&/wechatdevtools/.test(Ma),Ma&&Ma.indexOf("android"),function(){if("string"===typeof Ma){var e=/os (\d\d?_\d(_\d)?)/,t=e.exec(Ma);if(!t)return!1;var n=t[1].split("_").map((function(e){return parseInt(e,10)}));return!!(13===n[0]&&n[1]>=4)}}(),Ca){var Ea="test-passive";try{var Aa={};Object.defineProperty(Aa,"passive",{get:function(){}}),window.addEventListener(Ea,(function(){}),Aa)}catch(sc){}}var Sa=function(e,t){for(var n in t)e[n]=t[n];return e},Na=Ca&&document.createElement("div").style,ba=function(){if(!Ca)return!1;for(var e=[{key:"standard",value:"transform"},{key:"webkit",value:"webkitTransform"},{key:"Moz",value:"MozTransform"},{key:"O",value:"OTransform"},{key:"ms",value:"msTransform"}],t=0,n=e;t<n.length;t++){var r=n[t];if(void 0!==Na[r.value])return r.key}return!1}();function wa(e){return!1===ba?e:"standard"===ba?"transitionEnd"===e?"transitionend":e:ba+e.charAt(0).toUpperCase()+e.substr(1)}ba&&"standard"!==ba&&ba.toLowerCase();wa("transform"),wa("transition");Ca&&wa("perspective"),wa("transitionTimingFunction"),wa("transitionDuration"),wa("transitionDelay"),wa("transformOrigin"),wa("transitionEnd"),wa("transitionProperty");var Oa={swipe:{style:"cubic-bezier(0.23, 1, 0.32, 1)",fn:function(e){return 1+--e*e*e*e*e}},swipeBounce:{style:"cubic-bezier(0.25, 0.46, 0.45, 0.94)",fn:function(e){return e*(2-e)}},bounce:{style:"cubic-bezier(0.165, 0.84, 0.44, 1)",fn:function(e){return 1- --e*e*e*e}}},Ra="plugins.pullDownRefresh",Da=[{key:"finishPullDown",name:"finishPullDown"},{key:"openPullDown",name:"openPullDown"},{key:"closePullDown",name:"closePullDown"},{key:"autoPullDownRefresh",name:"autoPullDownRefresh"}],La=Da.map((function(e){return{key:e.key,sourceKey:Ra+"."+e.name}})),Ua="pullingDown",xa="enterThreshold",Pa="leaveThreshold",ja=function(){function e(e){this.scroll=e,this.pulling=0,this.thresholdBoundary=0,this.init()}return e.prototype.setPulling=function(e){this.pulling=e},e.prototype.setThresholdBoundary=function(e){this.thresholdBoundary=e},e.prototype.init=function(){this.handleBScroll(),this.handleOptions(this.scroll.options.pullDownRefresh),this.handleHooks(),this.watch()},e.prototype.handleBScroll=function(){this.scroll.registerType([Ua,xa,Pa]),this.scroll.proxy(La)},e.prototype.handleOptions=function(e){void 0===e&&(e={}),e=!0===e?{}:e;var t={threshold:90,stop:40};this.options=Sa(t,e),this.scroll.options.probeType=3},e.prototype.handleHooks=function(){var e=this;this.hooksFn=[];var t=this.scroll.scroller,n=t.scrollBehaviorY;this.currentMinScrollY=this.cachedOriginanMinScrollY=n.minScrollPos,this.registerHooks(this.scroll.hooks,this.scroll.hooks.eventTypes.contentChanged,(function(){e.finishPullDown()})),this.registerHooks(n.hooks,n.hooks.eventTypes.computeBoundary,(function(t){t.maxScrollPos>0&&(t.maxScrollPos=-1),t.minScrollPos=e.currentMinScrollY})),this.hasMouseWheelPlugin()&&(this.registerHooks(this.scroll,this.scroll.eventTypes.alterOptions,(function(e){var t=300,n=350;e.discreteTime=t,e.easeTime=n})),this.registerHooks(this.scroll,this.scroll.eventTypes.mousewheelEnd,(function(){t.hooks.trigger(t.hooks.eventTypes.end)})))},e.prototype.registerHooks=function(e,t,n){e.on(t,n,this),this.hooksFn.push([e,t,n])},e.prototype.hasMouseWheelPlugin=function(){return!!this.scroll.eventTypes.alterOptions},e.prototype.watch=function(){var e=this.scroll.scroller;this.watching=!0,this.registerHooks(e.hooks,e.hooks.eventTypes.end,this.checkPullDown),this.registerHooks(this.scroll,this.scroll.eventTypes.scrollStart,this.resetStateBeforeScrollStart),this.registerHooks(this.scroll,this.scroll.eventTypes.scroll,this.checkLocationOfThresholdBoundary),this.hasMouseWheelPlugin()&&this.registerHooks(this.scroll,this.scroll.eventTypes.mousewheelStart,this.resetStateBeforeScrollStart)},e.prototype.resetStateBeforeScrollStart=function(){this.isFetchingStatus()||(this.setPulling(1),this.setThresholdBoundary(0))},e.prototype.checkLocationOfThresholdBoundary=function(){if(1===this.pulling){var e=this.scroll,t=1!==this.thresholdBoundary&&this.locateInsideThresholdBoundary(),n=2!==this.thresholdBoundary&&!this.locateInsideThresholdBoundary();t&&(this.setThresholdBoundary(1),e.trigger(xa)),n&&(this.setThresholdBoundary(2),e.trigger(Pa))}},e.prototype.locateInsideThresholdBoundary=function(){return this.scroll.y<=this.options.threshold},e.prototype.unwatch=function(){var e=this.scroll,t=e.scroller;this.watching=!1,t.hooks.off(t.hooks.eventTypes.end,this.checkPullDown),e.off(e.eventTypes.scrollStart,this.resetStateBeforeScrollStart),e.off(e.eventTypes.scroll,this.checkLocationOfThresholdBoundary),this.hasMouseWheelPlugin()&&e.off(e.eventTypes.mousewheelStart,this.resetStateBeforeScrollStart)},e.prototype.checkPullDown=function(){var e=this.options,t=e.threshold,n=e.stop;return!(this.scroll.y<t)&&(1===this.pulling&&(this.modifyBehaviorYBoundary(n),this.setPulling(2),this.scroll.trigger(Ua)),this.scroll.scrollTo(this.scroll.x,n,this.scroll.options.bounceTime,Oa.bounce),this.isFetchingStatus())},e.prototype.isFetchingStatus=function(){return 2===this.pulling},e.prototype.modifyBehaviorYBoundary=function(e){var t=this.scroll.scroller.scrollBehaviorY;this.cachedOriginanMinScrollY=t.minScrollPos,this.currentMinScrollY=e,t.computeBoundary()},e.prototype.finishPullDown=function(){if(this.isFetchingStatus()){var e=this.scroll.scroller.scrollBehaviorY;this.currentMinScrollY=this.cachedOriginanMinScrollY,e.computeBoundary(),this.setPulling(0),this.scroll.resetPosition(this.scroll.options.bounceTime,Oa.bounce)}},e.prototype.openPullDown=function(e){void 0===e&&(e={}),this.handleOptions(e),this.watching||this.watch()},e.prototype.closePullDown=function(){this.unwatch()},e.prototype.autoPullDownRefresh=function(){var e=this.options,t=e.threshold,n=e.stop;!this.isFetchingStatus()&&this.watching&&(this.modifyBehaviorYBoundary(n),this.scroll.trigger(this.scroll.eventTypes.scrollStart),this.scroll.scrollTo(this.scroll.x,t),this.setPulling(2),this.scroll.trigger(Ua),this.scroll.scrollTo(this.scroll.x,n,this.scroll.options.bounceTime,Oa.bounce))},e.pluginName="pullDownRefresh",e}(),ka='.message-container{width:100%;height:100%;background:#fbfbfc}.message-list-container{height:calc(100% - 10.5em);overflow:hidden;position:relative}.message-list-scroller{min-height:101%}.message-list-wrapper{position:relative;height:100%;overflow:hidden}.conversation-info{border-bottom:0.1em solid #e3e5e6;padding:0 2.5em;height:10.4em;text-align:left}.conversation-info .receiver{padding:0 0 0;color:#333;font-size:2.8em;font-weight:500;line-height:3.714}.message-list{list-style:none;padding:0 1em}.pulldown-wrapper{position:absolute;width:100%;padding:2em;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-transform:translateY(-100%) translateZ(0);transform:translateY(-100%) translateZ(0);text-align:center;color:#999;font-size:2em}.message-loading{-webkit-box-sizing:border-box;box-sizing:border-box;text-align:center;color:rgb(153, 153, 153);font-size:2em}.no-data{width:100%;height:100%;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background:#fff}.no-data::before{content:" ";display:block;width:12.8em;height:12.8em;background:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTI4cHgiIGhlaWdodD0iMTI4cHgiIHZpZXdCb3g9IjAgMCAxMjggMTI4IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPgogICAgPHRpdGxlPue8uuecgWljb248L3RpdGxlPgogICAgPGcgaWQ9Iumhtemdoi0xIiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgICAgICA8ZyBpZD0iMDJf5Lya6K+d5YiX6KGo5Li656m6IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMTYwLjAwMDAwMCwgLTM1NC4wMDAwMDApIj4KICAgICAgICAgICAgPGcgaWQ9Iue8uuecgWljb24iIHRyYW5zZm9ybT0idHJhbnNsYXRlKDE2MC4wMDAwMDAsIDM1NC4wMDAwMDApIj4KICAgICAgICAgICAgICAgIDxyZWN0IGlkPSLnn6nlvaIiIHg9IjAiIHk9IjAiIHdpZHRoPSIxMjgiIGhlaWdodD0iMTI4Ij48L3JlY3Q+CiAgICAgICAgICAgICAgICA8ZyBpZD0iYmVsbHMtKDEpIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgzLjAwMDAwMCwgMTEuMDAwMDAwKSI+CiAgICAgICAgICAgICAgICAgICAgPGNpcmNsZSBpZD0iT3ZhbC0yMDMiIHN0cm9rZS1vcGFjaXR5PSIwLjQiIHN0cm9rZT0iI0EzQjFCRiIgc3Ryb2tlLXdpZHRoPSIyIiBjeD0iMjAuNSIgY3k9IjMuNSIgcj0iMy41Ij48L2NpcmNsZT4KICAgICAgICAgICAgICAgICAgICA8Y2lyY2xlIGlkPSJPdmFsLTIwM+Wkh+S7vSIgc3Ryb2tlLW9wYWNpdHk9IjAuNCIgc3Ryb2tlPSIjQTNCMUJGIiBzdHJva2Utd2lkdGg9IjEuODI0IiBjeD0iMTA4IiBjeT0iMjMiIHI9IjIiPjwvY2lyY2xlPgogICAgICAgICAgICAgICAgICAgIDxwYXRoIGQ9Ik0xMTcuNSw0NSBDMTE4LjA0ODAyMSw0NSAxMTguNDkyMjc5LDQ1LjQ0NDI1ODYgMTE4LjQ5MjI3OSw0NS45OTIyNzkzIEwxMTguNDkyLDQ4LjM2OCBMMTIxLDQ4LjM2ODM0NyBDMTIxLjU1MjI4NSw0OC4zNjgzNDcgMTIyLDQ4LjgxNjA2MjMgMTIyLDQ5LjM2ODM0NyBDMTIyLDQ5LjkyMDYzMTggMTIxLjU1MjI4NSw1MC4zNjgzNDcgMTIxLDUwLjM2ODM0NyBMMTE4LjQ5Miw1MC4zNjggTDExOC40OTIyNzksNTMuMDc3NzQ4MSBDMTE4LjQ5MjI3OSw1My42MjU3Njg4IDExOC4wNDgwMjEsNTQuMDcwMDI3NCAxMTcuNSw1NC4wNzAwMjc0IEMxMTYuOTUxOTc5LDU0LjA3MDAyNzQgMTE2LjUwNzcyMSw1My42MjU3Njg4IDExNi41MDc3MjEsNTMuMDc3NzQ4MSBMMTE2LjUwNyw1MC4zNjggTDExNCw1MC4zNjgzNDcgQzExMy40NDc3MTUsNTAuMzY4MzQ3IDExMyw0OS45MjA2MzE4IDExMyw0OS4zNjgzNDcgQzExMyw0OC44MTYwNjIzIDExMy40NDc3MTUsNDguMzY4MzQ3IDExNCw0OC4zNjgzNDcgTDExNi41MDcsNDguMzY4IEwxMTYuNTA3NzIxLDQ1Ljk5MjI3OTMgQzExNi41MDc3MjEsNDUuNDQ0MjU4NiAxMTYuOTUxOTc5LDQ1IDExNy41LDQ1IFoiIGlkPSJDb21iaW5lZC1TaGFwZSIgZmlsbC1vcGFjaXR5PSIwLjQiIGZpbGw9IiNBM0IxQkYiPjwvcGF0aD4KICAgICAgICAgICAgICAgICAgICA8cGF0aCBkPSJNNC41LDU5IEM1LjA0ODAyMDcsNTkgNS40OTIyNzkyNSw1OS40NDQyNTg2IDUuNDkyMjc5MjUsNTkuOTkyMjc5MyBMNS40OTIsNjIuMzY4IEw4LDYyLjM2ODM0NyBDOC41NTIyODQ3NSw2Mi4zNjgzNDcgOSw2Mi44MTYwNjIzIDksNjMuMzY4MzQ3IEM5LDYzLjkyMDYzMTggOC41NTIyODQ3NSw2NC4zNjgzNDcgOCw2NC4zNjgzNDcgTDUuNDkyLDY0LjM2OCBMNS40OTIyNzkyNSw2Ny4wNzc3NDgxIEM1LjQ5MjI3OTI1LDY3LjYyNTc2ODggNS4wNDgwMjA3LDY4LjA3MDAyNzQgNC41LDY4LjA3MDAyNzQgQzMuOTUxOTc5Myw2OC4wNzAwMjc0IDMuNTA3NzIwNzUsNjcuNjI1NzY4OCAzLjUwNzcyMDc1LDY3LjA3Nzc0ODEgTDMuNTA3LDY0LjM2OCBMMSw2NC4zNjgzNDcgQzAuNDQ3NzE1MjUsNjQuMzY4MzQ3IDYuNzYzNTM3NTFlLTE3LDYzLjkyMDYzMTggMCw2My4zNjgzNDcgQy02Ljc2MzUzNzUxZS0xNyw2Mi44MTYwNjIzIDAuNDQ3NzE1MjUsNjIuMzY4MzQ3IDEsNjIuMzY4MzQ3IEwzLjUwNyw2Mi4zNjggTDMuNTA3NzIwNzUsNTkuOTkyMjc5MyBDMy41MDc3MjA3NSw1OS40NDQyNTg2IDMuOTUxOTc5Myw1OSA0LjUsNTkgWiIgaWQ9IkNvbWJpbmVkLVNoYXBlLUNvcHkiIGZpbGwtb3BhY2l0eT0iMC40IiBmaWxsPSIjQTNCMUJGIj48L3BhdGg+CiAgICAgICAgICAgICAgICAgICAgPGVsbGlwc2UgaWQ9Ik92YWwtNCIgZmlsbD0iI0RBRTBFNSIgY3g9IjY0IiBjeT0iMTAyLjUiIHJ4PSIyOCIgcnk9IjIuNSI+PC9lbGxpcHNlPgogICAgICAgICAgICAgICAgPC9nPgogICAgICAgICAgICAgICAgPGcgaWQ9IjI0Z2wtYnViYmxlczciIHRyYW5zZm9ybT0idHJhbnNsYXRlKDE2LjAwMDAwMCwgMjQuMDAwMDAwKSIgZmlsbD0iI0RBRTBFNSIgZmlsbC1ydWxlPSJub256ZXJvIj4KICAgICAgICAgICAgICAgICAgICA8cGF0aCBkPSJNOS43OTE2NjY3LDU5LjIxMDI3NDggQzkuMjcyMjg0NCw1OS4yMTAyNzQ4IDguNzc0MTc0NjMsNTkuMDAyMzM0NSA4LjQwNjkxNTg4LDU4LjYzMjE5ODUgQzguMDM5NjU3MTIsNTguMjYyMDYyNSA3LjgzMzMzMzMsNTcuNzYwMDUwMyA3LjgzMzMzMzMsNTcuMjM2NTk5IEw3LjgzMzMzMzMsNDcuMzY4MjE5OCBDMy41MDkwNjAxOSw0Ny4zNjM0NjA4IDAuMDA0NzIxOTY0NzIsNDMuODMxNjY4IDAsMzkuNDczNTE2NSBMMCw3Ljg5NDcwMzI3IEMwLjAwNDcyMTk2NDcyLDMuNTM2NTUxOCAzLjUwOTA2MDE5LDAuMDA0NzU4OTU4NzggNy44MzMzMzMzLDAgTDU4Ljc1LDAgQzYzLjA3NDI3MzEsMC4wMDQ3NTg5NTg3OCA2Ni41Nzg2MTEzLDMuNTM2NTUxOCA2Ni41ODMzMzMzLDcuODk0NzAzMjcgTDY2LjU4MzMzMzMsMTMuODE1NzMwNyBDNjYuNTgzMzMzMywxNC45MDU3NjE4IDY1LjcwNjU1NzYsMTUuNzg5NDA2NSA2NC42MjUsMTUuNzg5NDA2NSBDNjMuNTQzNDQyNCwxNS43ODk0MDY1IDYyLjY2NjY2NjcsMTQuOTA1NzYxOCA2Mi42NjY2NjY3LDEzLjgxNTczMDcgTDYyLjY2NjY2NjcsNy44OTQ3MDMyNyBDNjIuNjY0MzA1Nyw1LjcxNTYyNzUyIDYwLjkxMjEzNjYsMy45NDk3MzExMSA1OC43NSwzLjk0NzM1MTY4IEw3LjgzMzMzMzMsMy45NDczNTE2OCBDNS42NzExOTY3NywzLjk0OTczMTE2IDMuOTE5MDI3NjgsNS43MTU2Mjc1NiAzLjkxNjY2NjcsNy44OTQ3MDMyNyBMMy45MTY2NjY3LDM5LjQ3MzUxNjUgQzMuOTE5MDI3NjgsNDEuNjUyNTkyMiA1LjY3MTE5Njc3LDQzLjQxODQ4ODYgNy44MzMzMzMzLDQzLjQyMDg2ODEgTDkuNzkxNjY2Nyw0My40MjA4NjgxIEMxMC4zMTEwNDksNDMuNDIwODY4MSAxMC44MDkxNTg3LDQzLjYyODgwODQgMTEuMTc2NDE3NSw0My45OTg5NDQ0IEMxMS41NDM2NzYyLDQ0LjM2OTA4MDQgMTEuNzUsNDQuODcxMDkyNiAxMS43NSw0NS4zOTQ1NDQgTDExLjc1LDUyLjQ3MjAyMjIgTDIwLjE1Njc1NzgsNDMuOTk4Nzg1MSBDMjAuOTIxNjIxOSw0My4yMjc5Mjg4IDIyLjE2MTcxMTQsNDMuMjI3OTI4OSAyMi45MjY1NzU0LDQzLjk5ODc4NTIgQzIzLjY5MTQzOTQsNDQuNzY5NjQxNSAyMy42OTE0Mzk1LDQ2LjAxOTQ0NjUgMjIuOTI2NTc1NSw0Ni43OTAzMDI4IEwxMS4xNzY1NzU1LDU4LjYzMjM1NzggQzEwLjgwOTI1MjIsNTkuMDAyNDc0NCAxMC4zMTEwODExLDU5LjIxMDI3NDggOS43OTE2NjY3LDU5LjIxMDI3NDggTDkuNzkxNjY2Nyw1OS4yMTAyNzQ4IFogTTY0LjA1MjE4NzUsNzQuNDIxNzY0NCBMNzEuMzEwODcyNCw2Ny4xMDQ5NzggTDg2LjE2NjY2NjcsNjcuMTA0OTc4IEM5MC40OTA5Mzk4LDY3LjEwMDIxOTEgOTMuOTk1Mjc4LDYzLjU2ODQyNjIgOTQsNTkuMjEwMjc0OCBMOTQsMjcuNjMxNDYxNiBDOTMuOTk1Mjc4MSwyMy4yNzMzMTAxIDkwLjQ5MDkzOTgsMTkuNzQxNTE3MiA4Ni4xNjY2NjY3LDE5LjczNjc1ODIgTDM1LjI1LDE5LjczNjc1ODIgQzMwLjkyNTcyNjksMTkuNzQxNTE3MiAyNy40MjEzODg2LDIzLjI3MzMxMDEgMjcuNDE2NjY2NywyNy42MzE0NjE2IEwyNy40MTY2NjY3LDU5LjIxMDI3NDggQzI3LjQyMTM4ODcsNjMuNTY4NDI2MiAzMC45MjU3MjY5LDY3LjEwMDIxOTEgMzUuMjUsNjcuMTA0OTc4IEw1NC4wMjI0NjA5LDY3LjEwNDk3OCBMNjEuMjgxNzU3OCw3NC40MjE3NjQ0IEM2MS42NDkwMjk0LDc0Ljc5MTk5NzkgNjIuMTQ3MjA2OSw3NSA2Mi42NjY2NjY3LDc1IEM2My4xODYxMjY0LDc1IDYzLjY4NDMwMzksNzQuNzkxOTk3OSA2NC4wNTE1NzU1LDc0LjQyMTc2NDQgTDY0LjA1MjE4NzUsNzQuNDIxNzY0NCBaIE04Ni4xNjY2NjY3LDIzLjY4NDEwOTkgQzg4LjMyODgwMzMsMjMuNjg2NDg5NCA5MC4wODA5NzI0LDI1LjQ1MjM4NTggOTAuMDgzMzMzMywyNy42MzE0NjE2IEw5MC4wODMzMzMzLDU5LjIxMDI3NDggQzkwLjA4MDk3MjQsNjEuMzg5MzUwNSA4OC4zMjg4MDMzLDYzLjE1NTI0NyA4Ni4xNjY2NjY3LDYzLjE1NzYyNjQgTDcwLjUsNjMuMTU3NjI2NCBDNjkuOTgwNTg1Niw2My4xNTc1NDE5IDY5LjQ4MjQxNDUsNjMuMzY1NDI2NyA2OS4xMTUwOTExLDYzLjczNTU0MzMgTDYyLjY2NjY2NjcsNzAuMjM1MTA0NiBMNTYuMjE4MjQyMiw2My43MzU1NDMzIEM1NS44NTA5MTg4LDYzLjM2NTQyNjcgNTUuMzUyNzQ3Nyw2My4xNTc1NDE5IDU0LjgzMzMzMzMsNjMuMTU3NjI2NCBMMzUuMjUsNjMuMTU3NjI2NCBDMzMuMDg3ODYzNCw2My4xNTUyNDcgMzEuMzM1Njk0Miw2MS4zODkzNTA1IDMxLjMzMzMzMzMsNTkuMjEwMjc0OCBMMzEuMzMzMzMzMywyNy42MzE0NjE2IEMzMS4zMzU2OTQyLDI1LjQ1MjM4NTggMzMuMDg3ODYzNCwyMy42ODY0ODkzIDM1LjI1LDIzLjY4NDEwOTkgTDg2LjE2NjY2NjcsMjMuNjg0MTA5OSBaIiBpZD0i5b2i54q2Ij48L3BhdGg+CiAgICAgICAgICAgICAgICA8L2c+CiAgICAgICAgICAgIDwvZz4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPg==);margin:0 0 1em}.no-data span{font-size:2.2em}.typing-status{position:absolute;bottom:20px;left:20px;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;width:40px}.typing-status span{display:block;width:6px;height:6px;border-radius:50%;background:#111f2c}.typing-status span:nth-child(1){opacity:90%;-webkit-animation:animatedBackground_0 1s linear infinite;animation:animatedBackground_0 1s linear infinite}.typing-status span:nth-child(2){opacity:40%;-webkit-animation:animatedBackground_1 1s linear infinite;animation:animatedBackground_1 1s linear infinite}.typing-status span:nth-child(3){opacity:20%;-webkit-animation:animatedBackground_2 1s linear infinite;animation:animatedBackground_2 1s linear infinite}@-webkit-keyframes animatedBackground_0{0%{opacity:90%}33.33%{opacity:20%}66.66%{opacity:40%}100%{opacity:90%}}@keyframes animatedBackground_0{0%{opacity:90%}33.33%{opacity:20%}66.66%{opacity:40%}100%{opacity:90%}}@-webkit-keyframes animatedBackground_1{0%{opacity:40%}33.33%{opacity:90%}66.66%{opacity:20%}100%{opacity:40%}}@keyframes animatedBackground_1{0%{opacity:40%}33.33%{opacity:90%}66.66%{opacity:20%}100%{opacity:40%}}@-webkit-keyframes animatedBackground_2{0%{opacity:20%}33.33%{opacity:40%}66.66%{opacity:90%}100%{opacity:20%}}@keyframes animatedBackground_2{0%{opacity:20%}33.33%{opacity:40%}66.66%{opacity:90%}100%{opacity:20%}}';ds.use(ja),ds.use(Bs);var za=70,Ga=56,Ba=function(e){Dr(n,e);var t=Ur(n);function n(){var e;return Fr(this,n),e=t.call(this),e.__registerHost(),Je(Pr(e)),e.tapMessage=Ae(Pr(e),"tapMessage",7),e.baseSize="16px",e.messages=[],e.hasMore=!0,e.beforePullDown=!0,e.isPullingDown=!1,e.isLoading=!1,e.lang=di.lang,e.isGetHistory=!1,e.scrollWrapper=null,e.lastPosition=0,e.groupMembers=[],e.handleSwitchConversation=e.handleSwitchConversation.bind(Pr(e)),e.handleMessages=e.handleMessages.bind(Pr(e)),e.pullingDownHandler=e.pullingDownHandler.bind(Pr(e)),e.handleReceiptRequest=e.handleReceiptRequest.bind(Pr(e)),e.handleSelectMessage=e.handleSelectMessage.bind(Pr(e)),e.handleUpdateMessage=e.handleUpdateMessage.bind(Pr(e)),e.handleDeleteMessage=e.handleDeleteMessage.bind(Pr(e)),e.tapMessageHandler=e.tapMessageHandler.bind(Pr(e)),e.handleTypingStatus=e.handleTypingStatus.bind(Pr(e)),e.handleMouseLeave=e.handleMouseLeave.bind(Pr(e)),e.handleLanguageChanged=e.handleLanguageChanged.bind(Pr(e)),di.on(Cr.CONNECTED,(function(t){e.isConnect=t,e.isConnect?e.updateMyProfile():e.myProfile=null})),e}return $r(n,[{key:"updateMyProfile",value:function(){var e=this;di.getMyProfile().then((function(t){e.myProfile=t}))}},{key:"updateMessageList",value:function(e){var t=this,n=e||di.currentConversation;n&&n!==this.conversation&&di.getConversation(n).then((function(e){e&&t.loadData(e)}))}},{key:"componentWillLoad",value:function(){di.on(Cr.SWITCH_CONVERSATION,this.handleSwitchConversation),di.on(Cr.MESSAGES,this.handleMessages),di.on(Cr.MESSAGE_RECEIPT_REQUEST,this.handleReceiptRequest),di.on(Cr.UPDATE_MESSAGE,this.handleUpdateMessage),di.on(Cr.DELETE_MESSAGE,this.handleDeleteMessage),di.on(Cr.MESSAGE_SEND_SUCCESS,this.handleUpdateMessage),di.on(Cr.MESSAGE_SEND_FAIL,this.handleUpdateMessage),di.on(Cr.TYPING_STATUS,this.handleTypingStatus),di.on(Cr.LANGUAGE_CHANGED,this.handleLanguageChanged)}},{key:"componentDidLoad",value:function(){var e=this;this.scrollWrapper&&this.mountScroller(),document.addEventListener("visibilitychange",(function(){"visible"==document.visibilityState&&e.bscroll&&setTimeout((function(){e.bscroll.refresh(),e.bscroll.scrollTo(0,e.bscroll.maxScrollY)}),100)})),di.currentConversation&&this.handleSwitchConversation(di.currentConversation)}},{key:"disconnectedCallback",value:function(){this.bscroll&&(this.bscroll.off("pullingDown",this.pullingDownHandler),this.bscroll.destroy()),di.off(Cr.SWITCH_CONVERSATION,this.handleSwitchConversation),di.off(Cr.MESSAGES,this.handleMessages),di.off(Cr.MESSAGE_RECEIPT_REQUEST,this.handleReceiptRequest),di.off(Cr.UPDATE_MESSAGE,this.handleUpdateMessage),di.off(Cr.DELETE_MESSAGE,this.handleDeleteMessage),di.off(Cr.MESSAGE_SEND_SUCCESS,this.handleUpdateMessage),di.off(Cr.MESSAGE_SEND_FAIL,this.handleUpdateMessage),di.off(Cr.TYPING_STATUS,this.handleTypingStatus),di.off(Cr.LANGUAGE_CHANGED,this.handleLanguageChanged),document.removeEventListener("visibilitychange",(function(){console.info("removeEventListener visibilitychange")}))}},{key:"componentDidUpdate",value:function(){this.isGetHistory&&(this.bscroll&&(this.bscroll.refresh(),this.bscroll.scrollTo(0,Math.min(0,this.lastPosition+this.bscroll.maxScrollY))),this.isGetHistory=!1)}},{key:"mountScroller",value:function(){var e=this;this.scrollWrapper&&(this.bscroll=new ds(this.scrollWrapper,{bindToWrapper:!0,mouseWheel:{throttleTime:30},scrollX:!1,scrollY:!0,pullDownRefresh:{threshold:za,stop:Ga},bounce:{top:!0,bottom:!1,left:!1,right:!1},preventDefaultException:{className:/((hqvoice|sight|image|richContent)-message-body)|file-download-btn/}}),this.bscroll.on("pullingDown",this.pullingDownHandler),this.bscroll.scroller.actionsHandler.wrapperEventRegister.events.forEach((function(t){"mousedown"===t.name&&(t.handler=Fs.bind(e.bscroll.scroller.actionsHandler))})),setTimeout((function(){e.bscroll.refresh(),e.bscroll.scrollTo(0,e.bscroll.maxScrollY)}),600))}},{key:"pullingDownHandler",value:function(){var e=this;if(this.lastPosition=-this.bscroll.maxScrollY,!this.hasMore)return this.beforePullDown=!0,this.isPullingDown=!1,void this.bscroll.finishPullDown();this.beforePullDown=!1,this.isPullingDown=!0;var t=Date.now();this.messages.length&&(t=this.messages[0].sentTime),this.isConnect&&di.getMessages({conversationType:this.conversation.conversationType,targetId:this.conversation.targetId,channelId:this.conversation.channelId},t,30).then((function(t){return t.list.length?t.list[0].conversationType!==e.conversation.conversationType||t.list[0].targetId!==e.conversation.targetId||t.list[0].channelId!==e.conversation.channelId?(e.beforePullDown=!0,e.isPullingDown=!1,void e.bscroll.finishPullDown()):void setTimeout((function(){e.messages=t.list.concat(e.messages),e.hasMore=t.hasMore,e.beforePullDown=!0,e.isPullingDown=!1,e.bscroll.finishPullDown(),e.isGetHistory=!0}),600):(e.hasMore=t.hasMore,e.beforePullDown=!0,e.isPullingDown=!1,void e.bscroll.finishPullDown())}))}},{key:"handleSwitchConversation",value:function(e){if(!e)return this.conversation=null,void(this.bscroll=null);this.hasMore=!0,this.bscroll||this.mountScroller(),this.isPullingDown=!1,this.beforePullDown=!0,this.messages&&(this.messages=[]),this.updateMessageList(e)}},{key:"loadData",value:function(e){var t=this;this.conversation=e.conversation,this.conversationProfile=e.profile,this.conversation.conversationType===Ct["e"].GROUP?di.getGroupMembers(this.conversation).then((function(e){t.groupMembers=zr(e),t.getMessages()})):(this.groupMembers=null,this.getMessages())}},{key:"getMessages",value:function(){var e=this;return this.isLoading=!0,di.getMessages({conversationType:this.conversation.conversationType,targetId:this.conversation.targetId,channelId:this.conversation.channelId}).then((function(t){if(e.isLoading=!1,e.messages=t.list,e.hasMore=t.hasMore,e.messages.length&&(e.bscroll?setTimeout((function(){e.bscroll.refresh(),e.bscroll.scrollTo(0,e.bscroll.maxScrollY)}),600):setTimeout((function(){e.mountScroller()}),100)),e.conversation.unreadMessageCount){var n=e.messages[e.messages.length-1];n&&e.sendReadReceipt(n)}}))}},{key:"handleMessages",value:function(e){var t=this;if(e.length&&this.conversation&&Zr(e[0],this.conversation)){var n=function(){var n=[].concat(zr(t.messages),zr(e));t.messages=n,t.bscroll||t.mountScroller(),t.bscroll.y<t.bscroll.maxScrollY+30?setTimeout((function(){t.bscroll.refresh(),t.bscroll.scrollTo(0,t.bscroll.maxScrollY)}),100):setTimeout((function(){t.bscroll.refresh()}),100);var r=n[n.length-1];r&&t.sendReadReceipt(r)};this.conversation.conversationType===Ct["e"].GROUP?di.getGroupMembers({conversationType:this.conversation.conversationType,targetId:this.conversation.targetId,channelId:this.conversation.channelId}).then((function(e){t.groupMembers=e,n()})):(this.groupMembers=null,n())}}},{key:"sendReadReceipt",value:function(e){di.clearMessagesUnreadStatus(this.conversation),e&&e.conversationType===Ct["e"].PRIVATE&&gr(this.conversation.targetId,e.messageUId,e.sentTime,this.conversation.channelId)}},{key:"handleReceiptRequest",value:function(e){vr(e.conversation.targetId,Rr({},e.senderUserId,[e.messageUId]),e.conversation.channelId)}},{key:"handleSelectMessage",value:function(e){var t=e.detail,n=t.message,r=t.position;n.messageUId.startsWith("sending_")||n.messageUId.startsWith("fail_")||(this.selectedMessage=n,this.contextMenuPosition=r)}},{key:"handleUpdateMessage",value:function(e){var t=this,n=this.messages.findIndex((function(t){return e.messageUId===t.messageUId}));-1!==n&&(this.messages[n]=e,this.messages=zr(this.messages),this.bscroll?setTimeout((function(){t.bscroll.refresh()}),100):this.mountScroller())}},{key:"handleDeleteMessage",value:function(e){var t=this;e.forEach((function(e){var n=t.messages.findIndex((function(t){return e.messageUId===t.messageUId}));-1!==n&&t.messages.splice(n,1)})),this.messages=zr(this.messages),this.bscroll?setTimeout((function(){t.bscroll.refresh()}),100):this.mountScroller()}},{key:"tapMessageHandler",value:function(e){this.tapMessage.emit(e.detail)}},{key:"handleMouseLeave",value:function(){this.bscroll&&(this.bscroll.stop(),this.bscroll.scroller.actionsHandler.setInitiated())}},{key:"handleTypingStatus",value:function(e){var t=this,n=e.status||[],r=n.findIndex((function(e){return t.conversation&&Zr(e,t.conversation)}));-1!==r&&(this.typingTimer&&(clearTimeout(this.typingTimer),this.typingTimer=null),this.showTypingStatus=!0,this.typingTimer=setTimeout((function(){t.showTypingStatus=!1}),5e3))}},{key:"handleLanguageChanged",value:function(e){this.lang=e.lang}},{key:"render",value:function(){var e=this;this.locale=this.lang?Ni[this.lang]:Ni.zh_CN;var t=this.conversationProfile,n=this.conversation,r=this.messages,i=this.groupMembers,o=this.myProfile,s=this.locale;return n?W("div",{class:"message-container",style:{fontSize:this.baseSize}},W("div",{class:"conversation-info"},W("div",{class:"receiver"},W("span",{class:"name"},t?t.name:n.targetId),n.conversationType===Ct["e"].GROUP?W("span",{class:"count"},"(",null===t||void 0===t?void 0:t.memberCount,")"):null)),W("div",{class:"message-list-container",onMouseLeave:this.handleMouseLeave},W("div",{class:"input-tip"}),W("message-context-menu",{message:this.selectedMessage,position:this.contextMenuPosition,customMenu:this.customMenu,forwardList:this.forwardList}),W("div",{class:"message-loading"},W("div",{style:{display:this.isLoading?"block":"none"}},W("span",null,s.message.loading))),W("div",{class:"message-list-wrapper",ref:function(t){return e.scrollWrapper=t}},W("div",{class:"message-list-scroller"},W("div",{class:"pulldown-wrapper"},W("div",{style:{display:this.beforePullDown?"block":"none"}},this.hasMore?W("span",null,s.message.loading):W("span",null,s.message.noHistory))),W("div",{class:"message-list"},W("message-group",{messages:r,groupMembers:i,conversationProfile:t,myProfile:o,onRightClick:this.handleSelectMessage,onTapMessageItem:this.tapMessageHandler})))),W("div",{class:"typing-status",style:{display:this.showTypingStatus?"flex":"none"}},W("span",null),W("span",null),W("span",null)))):W("div",{class:"no-data",style:{fontSize:this.baseSize}},W("span",null,s.message.noData))}}],[{key:"style",get:function(){return ka}}]),n}(Sr(HTMLElement)),Va=".upload-progress-mask{width:100%;height:100%;position:absolute;top:0;left:0;background:rgba(0, 0, 0, 0.4);font-size:72px;min-width:2.2222em;min-height:1em;overflow:hidden}.upload-progress-bar{position:absolute;width:1em;height:1em;top:50%;left:50%;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}.upload-progress-bar svg{fill:#ffffff}";function Ya(e,t){var n="http://www.w3.org/2000/svg",r=document.createElementNS(n,e);for(var i in t)r.setAttribute(i,t[i]);return r}var Ha=function(e){Dr(n,e);var t=Ur(n);function n(){var e;return Fr(this,n),e=t.call(this),e.__registerHost(),e.reverse=!1,e.handleUploadProgress=e.handleUploadProgress.bind(Pr(e)),e}return $r(n,[{key:"componentWillLoad",value:function(){di.on(Cr.UPLOAD_PROGRESS,this.handleUploadProgress)}},{key:"disconnectedCallback",value:function(){di.off(Cr.UPLOAD_PROGRESS,this.handleUploadProgress)}},{key:"drawPath",value:function(e){e=e||0;var t,n=146,r=150,i=150,o=r+Math.sin(Math.PI/180*e)*n,s=i-Math.cos(Math.PI/180*e)*n;t=this.reverse?e<=180?"M".concat(r," ").concat(i-n,"A").concat(n," ").concat(n," 0 0 0 ").concat(r," ").concat(i+n,"A").concat(n," ").concat(n," 0 0 0 ").concat(o," ").concat(s,"L").concat(r," ").concat(i," L").concat(r," ").concat(i-n,"Z"):"M".concat(r," ").concat(i-n,"A").concat(n," ").concat(n," 0 0 0 ").concat(o," ").concat(s,"L").concat(r," ").concat(i," L").concat(r," ").concat(i-n,"Z"):e<=180?"M".concat(r," ").concat(i-n,"A").concat(n," ").concat(n," 0 0 1 ").concat(o," ").concat(s,"L").concat(r," ").concat(i," L").concat(r," ").concat(i-n,"Z"):"M".concat(r," ").concat(i-n,"A").concat(n," ").concat(n," 0 0 1 ").concat(r," ").concat(i+n,"A").concat(n," ").concat(n," 0 0 1 ").concat(o," ").concat(s,"L").concat(r," ").concat(i," L").concat(r," ").concat(i-n,"Z");var a=Ya("path",{fill:"rgba(255, 255, 255, 1)",d:t});while(this.svg.childNodes.length>1)this.svg.removeChild(this.svg.childNodes[1]);this.svg.appendChild(a)}},{key:"handleUploadProgress",value:function(e){this.mId===e.messageId&&this.drawPath(3.6*e.progress)}},{key:"render",value:function(){var e=this;return W("div",{class:"upload-progress-mask"},W("div",{class:"upload-progress-bar"},W("svg",{ref:function(t){return e.svg=t},id:"svg",xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 300 300"},W("circle",{xmlns:"http://www.w3.org/2000/svg",cx:"150",cy:"150",r:"148",stroke:"#ffffff","stroke-width":"2",fill:"none"}))))}}],[{key:"style",get:function(){return Va}}]),n}(Sr(HTMLElement)),Fa=".message-reference{position:absolute;-webkit-transform:translateY(calc(-100% - 1px));transform:translateY(calc(-100% - 1px));min-height:4.5em;padding:.83333em .291667em .83333em .83333em;width:100%;-webkit-box-sizing:border-box;box-sizing:border-box;font-size:2.4em;background:#fff}.message-reference .close-btn{position:absolute;right:.83333em;top:.83333em;width:1.33333em;height:0;padding-top:1.33333em;overflow:hidden;background:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMzJweCIgaGVpZ2h0PSIzMnB4IiB2aWV3Qm94PSIwIDAgMzIgMzIiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+5YWzICDpl63lpIfku708L3RpdGxlPgogICAgPGcgaWQ9Iumhtemdoi0xIiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgICAgICA8ZyBpZD0iMTBf5Y2V6IGKLeW8leeUqOa2iOaBr+agt+W8jyIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTEzODkuMDAwMDAwLCAtNTkyLjAwMDAwMCkiIGZpbGwtcnVsZT0ibm9uemVybyI+CiAgICAgICAgICAgIDxnIGlkPSLlhbMtLemXreWkh+S7vSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTM4OS4wMDAwMDAsIDU5Mi4wMDAwMDApIj4KICAgICAgICAgICAgICAgIDxyZWN0IGlkPSLnn6nlvaIiIGZpbGw9IiMwMDAwMDAiIG9wYWNpdHk9IjAiIHg9IjAiIHk9IjAiIHdpZHRoPSIzMiIgaGVpZ2h0PSIzMiI+PC9yZWN0PgogICAgICAgICAgICAgICAgPHBhdGggZD0iTTE3LjcxNzk4NzEsMTYuMjg0MjcxMiBMMjYuNzc3NTg3OSw3LjIyNDY3MDQxIEMyNy4yMzQ4OTM4LDYuNzY3MzY0NSAyNy4yMzQ4OTM4LDYuMDEzNDI3NzMgMjYuNzc3NTg3OSw1LjU1NjEyMTgzIEwyNi43MjgxNDk0LDUuNTA2NjgzMzUgQzI2LjI3MDg0MzUsNS4wNDkzNzc0NCAyNS41MTY5MDY3LDUuMDQ5Mzc3NDQgMjUuMDU5NjAwOCw1LjUwNjY4MzM1IEwxNiwxNC41Nzg2NDM4IEw2Ljk0MDM5OTE3LDUuNTA2NjgzMzUgQzYuNDgzMDkzMjYsNS4wNDkzNzc0NCA1LjcyOTE1NjQ5LDUuMDQ5Mzc3NDQgNS4yNzE4NTA1OSw1LjUwNjY4MzM1IEw1LjIyMjQxMjExLDUuNTU2MTIxODMgQzQuNzUyNzQ2NTgsNi4wMTM0Mjc3MyA0Ljc1Mjc0NjU4LDYuNzY3MzY0NSA1LjIyMjQxMjExLDcuMjI0NjcwNDEgTDE0LjI4MjAxMjksMTYuMjg0MjcxMiBMNS4yMjI0MTIxMSwyNS4zNDM4NzIxIEM0Ljc2NTEwNjIsMjUuODAxMTc4IDQuNzY1MTA2MiwyNi41NTUxMTQ3IDUuMjIyNDEyMTEsMjcuMDEyNDIwNyBMNS4yNzE4NTA1OSwyNy4wNjE4NTkxIEM1LjcyOTE1NjQ5LDI3LjUxOTE2NSA2LjQ4MzA5MzI2LDI3LjUxOTE2NSA2Ljk0MDM5OTE3LDI3LjA2MTg1OTEgTDE2LDE4LjAwMjI1ODMgTDI1LjA1OTYwMDgsMjcuMDYxODU5MSBDMjUuNTE2OTA2NywyNy41MTkxNjUgMjYuMjcwODQzNSwyNy41MTkxNjUgMjYuNzI4MTQ5NCwyNy4wNjE4NTkxIEwyNi43Nzc1ODc5LDI3LjAxMjQyMDcgQzI3LjIzNDg5MzgsMjYuNTU1MTE0NyAyNy4yMzQ4OTM4LDI1LjgwMTE3OCAyNi43Nzc1ODc5LDI1LjM0Mzg3MjEgTDE3LjcxNzk4NzEsMTYuMjg0MjcxMiBaIiBpZD0i6Lev5b6EIiBmaWxsPSIjQTBBNUFCIj48L3BhdGg+CiAgICAgICAgICAgIDwvZz4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPg==) no-repeat;background-size:contain;border:none;cursor:pointer}.message-reference .message-body{border-left:0.08333em solid #E3E5E6;padding:0 0 0 0.83333em;height:100%}.message-reference .content{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.message-reference .content .reference-image{width:100%;height:2.92em}.message-reference .content .reference-image img{max-width:100%;max-height:100%;-o-object-fit:contain;object-fit:contain}",Qa=function(e){Dr(n,e);var t=Ur(n);function n(){var e;return Fr(this,n),e=t.call(this),e.__registerHost(),e.close=Ae(Pr(e),"close",7),e.lang=di.lang,e.closeReference=e.closeReference.bind(Pr(e)),e}return $r(n,[{key:"validateData",value:function(){this.referenceMessage?this.handleReferenceMessage(this.referenceMessage.message):this.closeReference()}},{key:"closeReference",value:function(){this.name="",this.content="",this.close.emit()}},{key:"handleReferenceMessage",value:function(e){var t,n=this,r={conversationType:e.conversationType,targetId:e.targetId,channelId:e.channelId};t=e.conversationType===Ct["e"].GROUP?di.getGroupMemberProfile(r,e.senderUserId).then((function(t){return t?t.groupNickname||t.name:e.senderUserId})):e.senderUserId===pn()?di.getMyProfile().then((function(t){return t.displayName||t.name||e.senderUserId})):di.getConversationProfile(r).then((function(t){return t?t.displayName||t.name:e.senderUserId})),t&&t.then((function(t){switch(n.name=t,e.messageType){case Er.TEXT:n.content=e.content.content;break;case Er.IMAGE:n.content=W("div",{class:"reference-image"},W("img",{src:Li(e.content.content)}));break;case Er.FILE:n.content="["+n.locale.conversation.file+"]"+e.content.name;break;case Er.GIF:n.content=W("img",{src:e.content.remoteUrl});break;case Er.HQ_VOICE:n.content="["+n.locale.conversation.file+"]";break;case Er.SIGHT:n.content=W("img",{src:e.content.content});break;case Er.RICH_CONTENT:n.content=e.content.title;break;case Er.REFERENCE:n.content=e.content.content||"";break;default:n.content="["+n.locale.other.unKnowMessage+"]";break}}))}},{key:"componentShouldUpdate",value:function(){return!(!this.name&&!this.content)}},{key:"render",value:function(){this.locale=this.lang?Ni[this.lang]:Ni.zh_CN;var e=this.name,t=this.content;return e&&t?W("div",{class:"message-reference"},W("div",{class:"message-body"},W("div",{class:"name"},this.name,":"),W("div",{class:"content"},this.content)),W("button",{class:"close-btn",onClick:this.closeReference},"关闭")):null}}],[{key:"watchers",get:function(){return{referenceMessage:["validateData"]}}},{key:"style",get:function(){return Fa}}]),n}(Sr(HTMLElement)),$a=Ze(wi,[1,"content-editor",{conversation:[16],value:[16],memberListVisible:[32],targetRect:[32],hasContent:[32],locale:[32],lang:[32]}]),Ka=Ze(Ri,[0,"conversation-context-menu",{position:[16],visible:[4],topStatus:[4,"top-status"],notificationStatus:[4,"notification-status"],customMenu:[16],conversation:[16],locale:[32],lang:[32]}]),Wa=Ze(Gi,[0,"conversation-item",{data:[16],isHover:[4,"is-hover"],draft:[32],locale:[32],lang:[32]}]),qa=Ze($s,[1,"conversation-list",{baseSize:[1,"base-size"],userBackground:[1,"user-background"],customMenu:[16],currentConversation:[32],isPullUpLoad:[32],data:[32],locale:[32],lang:[32],contextMenuData:[32]}]),Za=Ze(Ws,[0,"member-list",{conversation:[16],visible:[4],targetRect:[16],memberList:[32],position:[32],locale:[32],lang:[32]}]),Ja=Ze(Zs,[0,"message-context-menu",{position:[16],message:[16],customMenu:[16],forwardList:[16],visible:[32],locale:[32],lang:[32],isShowForward:[32],msgType:[32]}]),Xa=Ze(Xs,[0,"message-editor",{baseSize:[1,"base-size"],conversation:[32],hasContent:[32],referenceMessage:[32],showMemberList:[32],draft:[32],isError:[32],locale:[32],lang:[32]}]),ec=Ze(Ia,[0,"message-group",{messages:[16],groupMembers:[16],conversationProfile:[16],myProfile:[16],locale:[32],lang:[32]}]),tc=Ze(Ta,[0,"message-item",{message:[16],member:[16],isGroupMember:[4,"is-group-member"],conversationProfile:[16],myProfile:[16],locale:[32],lang:[32]}]),nc=Ze(Ba,[1,"message-list",{baseSize:[1,"base-size"],customMenu:[16],forwardList:[16],conversation:[32],conversationProfile:[32],messages:[32],hasMore:[32],beforePullDown:[32],isPullingDown:[32],isLoading:[32],locale:[32],lang:[32],selectedMessage:[32],contextMenuPosition:[32],showTypingStatus:[32]}]),rc=Ze(Ha,[0,"progress-bar",{mId:[2,"m-id"],reverse:[4]}]),ic=Ze(Qa,[0,"reference-message",{referenceMessage:[16],content:[32],name:[32],locale:[32],lang:[32]}]),oc=function(e){"undefined"!==typeof customElements&&[$a,Ka,Wa,qa,Za,Ja,Xa,ec,tc,nc,rc,ic].forEach((function(t){customElements.get(t.is)||customElements.define(t.is,t,e)}))}},e804:function(e,t,n){"use strict";var r=n("5ca1"),i=n("f1ae");r(r.S+r.F*n("79e5")((function(){function e(){}return!(Array.of.call(e)instanceof e)})),"Array",{of:function(){var e=0,t=arguments.length,n=new("function"==typeof this?this:Array)(t);while(t>e)i(n,e,arguments[e++]);return n.length=t,n}})},e853:function(e,t,n){var r=n("d3f4"),i=n("1169"),o=n("2b4c")("species");e.exports=function(e){var t;return i(e)&&(t=e.constructor,"function"!=typeof t||t!==Array&&!i(t.prototype)||(t=void 0),r(t)&&(t=t[o],null===t&&(t=void 0))),void 0===t?Array:t}},e956:function(e,t,n){"use strict";var r=n("5ca1"),i=n("c45f"),o=n("4bf8"),s=n("9def"),a=n("d8e8"),c=n("cd1c");r(r.P,"Array",{flatMap:function(e){var t,n,r=o(this);return a(e),t=s(r.length),n=c(r,0),i(n,r,r,t,0,1,e,arguments[1]),n}}),n("9c6c")("flatMap")},e9d2:function(e,t){e.exports=Math.scale||function(e,t,n,r,i){return 0===arguments.length||e!=e||t!=t||n!=n||r!=r||i!=i?NaN:e===1/0||e===-1/0?e:(e-t)*(i-r)/(n-t)+r}},ea8e:function(e,t,n){"use strict";var r=n("a142");function i(e){return/^\d+(\.\d+)?$/.test(e)}function o(e){if(Object(r["c"])(e))return e=String(e),i(e)?e+"px":e}n.d(t,"a",(function(){return o}))},ead6:function(e,t,n){var r=n("f772"),i=n("e4ae"),o=function(e,t){if(i(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{r=n("d864")(Function.call,n("bf0b").f(Object.prototype,"__proto__").set,2),r(e,[]),t=!(e instanceof Array)}catch(i){t=!0}return function(e,n){return o(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:o}},ebd6:function(e,t,n){var r=n("cb7c"),i=n("d8e8"),o=n("2b4c")("species");e.exports=function(e,t){var n,s=r(e).constructor;return void 0===s||void 0==(n=r(s)[o])?t:i(n)}},ebde:function(e,t,n){var r=n("11e9"),i=n("5ca1"),o=n("cb7c");i(i.S,"Reflect",{getOwnPropertyDescriptor:function(e,t){return r.f(o(e),t)}})},ebfd:function(e,t,n){var r=n("62a0")("meta"),i=n("f772"),o=n("07e3"),s=n("d9f6").f,a=0,c=Object.isExtensible||function(){return!0},u=!n("294c")((function(){return c(Object.preventExtensions({}))})),l=function(e){s(e,r,{value:{i:"O"+ ++a,w:{}}})},f=function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,r)){if(!c(e))return"F";if(!t)return"E";l(e)}return e[r].i},h=function(e,t){if(!o(e,r)){if(!c(e))return!0;if(!t)return!1;l(e)}return e[r].w},d=function(e){return u&&p.NEED&&c(e)&&!o(e,r)&&l(e),e},p=e.exports={KEY:r,NEED:!1,fastKey:f,getWeak:h,onFreeze:d}},ec30:function(e,t,n){"use strict";if(n("9e1e")){var r=n("2d00"),i=n("7726"),o=n("79e5"),s=n("5ca1"),a=n("0f88"),c=n("ed0b"),u=n("9b43"),l=n("f605"),f=n("4630"),h=n("32e9"),d=n("dcbc"),p=n("4588"),g=n("9def"),v=n("09fa"),y=n("77f1"),m=n("6a99"),I=n("69a8"),_=n("23c6"),T=n("d3f4"),C=n("4bf8"),M=n("33a4"),E=n("2aeb"),A=n("38fd"),S=n("9093").f,N=n("27ee"),b=n("ca5a"),w=n("2b4c"),O=n("0a49"),R=n("c366"),D=n("ebd6"),L=n("cadf"),U=n("84f2"),x=n("5cc5"),P=n("7a56"),j=n("36bd"),k=n("ba92"),z=n("86cc"),G=n("11e9"),B=z.f,V=G.f,Y=i.RangeError,H=i.TypeError,F=i.Uint8Array,Q="ArrayBuffer",$="Shared"+Q,K="BYTES_PER_ELEMENT",W="prototype",q=Array[W],Z=c.ArrayBuffer,J=c.DataView,X=O(0),ee=O(2),te=O(3),ne=O(4),re=O(5),ie=O(6),oe=R(!0),se=R(!1),ae=L.values,ce=L.keys,ue=L.entries,le=q.lastIndexOf,fe=q.reduce,he=q.reduceRight,de=q.join,pe=q.sort,ge=q.slice,ve=q.toString,ye=q.toLocaleString,me=w("iterator"),Ie=w("toStringTag"),_e=b("typed_constructor"),Te=b("def_constructor"),Ce=a.CONSTR,Me=a.TYPED,Ee=a.VIEW,Ae="Wrong length!",Se=O(1,(function(e,t){return Re(D(e,e[Te]),t)})),Ne=o((function(){return 1===new F(new Uint16Array([1]).buffer)[0]})),be=!!F&&!!F[W].set&&o((function(){new F(1).set({})})),we=function(e,t){var n=p(e);if(n<0||n%t)throw Y("Wrong offset!");return n},Oe=function(e){if(T(e)&&Me in e)return e;throw H(e+" is not a typed array!")},Re=function(e,t){if(!T(e)||!(_e in e))throw H("It is not a typed array constructor!");return new e(t)},De=function(e,t){return Le(D(e,e[Te]),t)},Le=function(e,t){var n=0,r=t.length,i=Re(e,r);while(r>n)i[n]=t[n++];return i},Ue=function(e,t,n){B(e,t,{get:function(){return this._d[n]}})},xe=function(e){var t,n,r,i,o,s,a=C(e),c=arguments.length,l=c>1?arguments[1]:void 0,f=void 0!==l,h=N(a);if(void 0!=h&&!M(h)){for(s=h.call(a),r=[],t=0;!(o=s.next()).done;t++)r.push(o.value);a=r}for(f&&c>2&&(l=u(l,arguments[2],2)),t=0,n=g(a.length),i=Re(this,n);n>t;t++)i[t]=f?l(a[t],t):a[t];return i},Pe=function(){var e=0,t=arguments.length,n=Re(this,t);while(t>e)n[e]=arguments[e++];return n},je=!!F&&o((function(){ye.call(new F(1))})),ke=function(){return ye.apply(je?ge.call(Oe(this)):Oe(this),arguments)},ze={copyWithin:function(e,t){return k.call(Oe(this),e,t,arguments.length>2?arguments[2]:void 0)},every:function(e){return ne(Oe(this),e,arguments.length>1?arguments[1]:void 0)},fill:function(e){return j.apply(Oe(this),arguments)},filter:function(e){return De(this,ee(Oe(this),e,arguments.length>1?arguments[1]:void 0))},find:function(e){return re(Oe(this),e,arguments.length>1?arguments[1]:void 0)},findIndex:function(e){return ie(Oe(this),e,arguments.length>1?arguments[1]:void 0)},forEach:function(e){X(Oe(this),e,arguments.length>1?arguments[1]:void 0)},indexOf:function(e){return se(Oe(this),e,arguments.length>1?arguments[1]:void 0)},includes:function(e){return oe(Oe(this),e,arguments.length>1?arguments[1]:void 0)},join:function(e){return de.apply(Oe(this),arguments)},lastIndexOf:function(e){return le.apply(Oe(this),arguments)},map:function(e){return Se(Oe(this),e,arguments.length>1?arguments[1]:void 0)},reduce:function(e){return fe.apply(Oe(this),arguments)},reduceRight:function(e){return he.apply(Oe(this),arguments)},reverse:function(){var e,t=this,n=Oe(t).length,r=Math.floor(n/2),i=0;while(i<r)e=t[i],t[i++]=t[--n],t[n]=e;return t},some:function(e){return te(Oe(this),e,arguments.length>1?arguments[1]:void 0)},sort:function(e){return pe.call(Oe(this),e)},subarray:function(e,t){var n=Oe(this),r=n.length,i=y(e,r);return new(D(n,n[Te]))(n.buffer,n.byteOffset+i*n.BYTES_PER_ELEMENT,g((void 0===t?r:y(t,r))-i))}},Ge=function(e,t){return De(this,ge.call(Oe(this),e,t))},Be=function(e){Oe(this);var t=we(arguments[1],1),n=this.length,r=C(e),i=g(r.length),o=0;if(i+t>n)throw Y(Ae);while(o<i)this[t+o]=r[o++]},Ve={entries:function(){return ue.call(Oe(this))},keys:function(){return ce.call(Oe(this))},values:function(){return ae.call(Oe(this))}},Ye=function(e,t){return T(e)&&e[Me]&&"symbol"!=typeof t&&t in e&&String(+t)==String(t)},He=function(e,t){return Ye(e,t=m(t,!0))?f(2,e[t]):V(e,t)},Fe=function(e,t,n){return!(Ye(e,t=m(t,!0))&&T(n)&&I(n,"value"))||I(n,"get")||I(n,"set")||n.configurable||I(n,"writable")&&!n.writable||I(n,"enumerable")&&!n.enumerable?B(e,t,n):(e[t]=n.value,e)};Ce||(G.f=He,z.f=Fe),s(s.S+s.F*!Ce,"Object",{getOwnPropertyDescriptor:He,defineProperty:Fe}),o((function(){ve.call({})}))&&(ve=ye=function(){return de.call(this)});var Qe=d({},ze);d(Qe,Ve),h(Qe,me,Ve.values),d(Qe,{slice:Ge,set:Be,constructor:function(){},toString:ve,toLocaleString:ke}),Ue(Qe,"buffer","b"),Ue(Qe,"byteOffset","o"),Ue(Qe,"byteLength","l"),Ue(Qe,"length","e"),B(Qe,Ie,{get:function(){return this[Me]}}),e.exports=function(e,t,n,c){c=!!c;var u=e+(c?"Clamped":"")+"Array",f="get"+e,d="set"+e,p=i[u],y=p||{},m=p&&A(p),I=!p||!a.ABV,C={},M=p&&p[W],N=function(e,n){var r=e._d;return r.v[f](n*t+r.o,Ne)},b=function(e,n,r){var i=e._d;c&&(r=(r=Math.round(r))<0?0:r>255?255:255&r),i.v[d](n*t+i.o,r,Ne)},w=function(e,t){B(e,t,{get:function(){return N(this,t)},set:function(e){return b(this,t,e)},enumerable:!0})};I?(p=n((function(e,n,r,i){l(e,p,u,"_d");var o,s,a,c,f=0,d=0;if(T(n)){if(!(n instanceof Z||(c=_(n))==Q||c==$))return Me in n?Le(p,n):xe.call(p,n);o=n,d=we(r,t);var y=n.byteLength;if(void 0===i){if(y%t)throw Y(Ae);if(s=y-d,s<0)throw Y(Ae)}else if(s=g(i)*t,s+d>y)throw Y(Ae);a=s/t}else a=v(n),s=a*t,o=new Z(s);h(e,"_d",{b:o,o:d,l:s,e:a,v:new J(o)});while(f<a)w(e,f++)})),M=p[W]=E(Qe),h(M,"constructor",p)):o((function(){p(1)}))&&o((function(){new p(-1)}))&&x((function(e){new p,new p(null),new p(1.5),new p(e)}),!0)||(p=n((function(e,n,r,i){var o;return l(e,p,u),T(n)?n instanceof Z||(o=_(n))==Q||o==$?void 0!==i?new y(n,we(r,t),i):void 0!==r?new y(n,we(r,t)):new y(n):Me in n?Le(p,n):xe.call(p,n):new y(v(n))})),X(m!==Function.prototype?S(y).concat(S(m)):S(y),(function(e){e in p||h(p,e,y[e])})),p[W]=M,r||(M.constructor=p));var O=M[me],R=!!O&&("values"==O.name||void 0==O.name),D=Ve.values;h(p,_e,!0),h(M,Me,u),h(M,Ee,!0),h(M,Te,p),(c?new p(1)[Ie]==u:Ie in M)||B(M,Ie,{get:function(){return u}}),C[u]=p,s(s.G+s.W+s.F*(p!=y),C),s(s.S,u,{BYTES_PER_ELEMENT:t}),s(s.S+s.F*o((function(){y.of.call(p,1)})),u,{from:xe,of:Pe}),K in M||h(M,K,t),s(s.P,u,ze),P(u),s(s.P+s.F*be,u,{set:Be}),s(s.P+s.F*!R,u,Ve),r||M.toString==ve||(M.toString=ve),s(s.P+s.F*o((function(){new p(1).slice()})),u,{slice:Ge}),s(s.P+s.F*(o((function(){return[1,2].toLocaleString()!=new p([1,2]).toLocaleString()}))||!o((function(){M.toLocaleString.call([1,2])}))),u,{toLocaleString:ke}),U[u]=R?O:D,r||R||h(M,me,D)}}else e.exports=function(){}},ec39:function(e,t,n){var r=n("37a7"),i=n("cb7c"),o=r.has,s=r.key;r.exp({hasOwnMetadata:function(e,t){return o(e,i(t),arguments.length<3?void 0:s(arguments[2]))}})},ed0b:function(e,t,n){"use strict";var r=n("7726"),i=n("9e1e"),o=n("2d00"),s=n("0f88"),a=n("32e9"),c=n("dcbc"),u=n("79e5"),l=n("f605"),f=n("4588"),h=n("9def"),d=n("09fa"),p=n("9093").f,g=n("86cc").f,v=n("36bd"),y=n("7f20"),m="ArrayBuffer",I="DataView",_="prototype",T="Wrong length!",C="Wrong index!",M=r[m],E=r[I],A=r.Math,S=r.RangeError,N=r.Infinity,b=M,w=A.abs,O=A.pow,R=A.floor,D=A.log,L=A.LN2,U="buffer",x="byteLength",P="byteOffset",j=i?"_b":U,k=i?"_l":x,z=i?"_o":P;function G(e,t,n){var r,i,o,s=new Array(n),a=8*n-t-1,c=(1<<a)-1,u=c>>1,l=23===t?O(2,-24)-O(2,-77):0,f=0,h=e<0||0===e&&1/e<0?1:0;for(e=w(e),e!=e||e===N?(i=e!=e?1:0,r=c):(r=R(D(e)/L),e*(o=O(2,-r))<1&&(r--,o*=2),e+=r+u>=1?l/o:l*O(2,1-u),e*o>=2&&(r++,o/=2),r+u>=c?(i=0,r=c):r+u>=1?(i=(e*o-1)*O(2,t),r+=u):(i=e*O(2,u-1)*O(2,t),r=0));t>=8;s[f++]=255&i,i/=256,t-=8);for(r=r<<t|i,a+=t;a>0;s[f++]=255&r,r/=256,a-=8);return s[--f]|=128*h,s}function B(e,t,n){var r,i=8*n-t-1,o=(1<<i)-1,s=o>>1,a=i-7,c=n-1,u=e[c--],l=127&u;for(u>>=7;a>0;l=256*l+e[c],c--,a-=8);for(r=l&(1<<-a)-1,l>>=-a,a+=t;a>0;r=256*r+e[c],c--,a-=8);if(0===l)l=1-s;else{if(l===o)return r?NaN:u?-N:N;r+=O(2,t),l-=s}return(u?-1:1)*r*O(2,l-t)}function V(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]}function Y(e){return[255&e]}function H(e){return[255&e,e>>8&255]}function F(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]}function Q(e){return G(e,52,8)}function $(e){return G(e,23,4)}function K(e,t,n){g(e[_],t,{get:function(){return this[n]}})}function W(e,t,n,r){var i=+n,o=d(i);if(o+t>e[k])throw S(C);var s=e[j]._b,a=o+e[z],c=s.slice(a,a+t);return r?c:c.reverse()}function q(e,t,n,r,i,o){var s=+n,a=d(s);if(a+t>e[k])throw S(C);for(var c=e[j]._b,u=a+e[z],l=r(+i),f=0;f<t;f++)c[u+f]=l[o?f:t-f-1]}if(s.ABV){if(!u((function(){M(1)}))||!u((function(){new M(-1)}))||u((function(){return new M,new M(1.5),new M(NaN),M.name!=m}))){M=function(e){return l(this,M),new b(d(e))};for(var Z,J=M[_]=b[_],X=p(b),ee=0;X.length>ee;)(Z=X[ee++])in M||a(M,Z,b[Z]);o||(J.constructor=M)}var te=new E(new M(2)),ne=E[_].setInt8;te.setInt8(0,2147483648),te.setInt8(1,2147483649),!te.getInt8(0)&&te.getInt8(1)||c(E[_],{setInt8:function(e,t){ne.call(this,e,t<<24>>24)},setUint8:function(e,t){ne.call(this,e,t<<24>>24)}},!0)}else M=function(e){l(this,M,m);var t=d(e);this._b=v.call(new Array(t),0),this[k]=t},E=function(e,t,n){l(this,E,I),l(e,M,I);var r=e[k],i=f(t);if(i<0||i>r)throw S("Wrong offset!");if(n=void 0===n?r-i:h(n),i+n>r)throw S(T);this[j]=e,this[z]=i,this[k]=n},i&&(K(M,x,"_l"),K(E,U,"_b"),K(E,x,"_l"),K(E,P,"_o")),c(E[_],{getInt8:function(e){return W(this,1,e)[0]<<24>>24},getUint8:function(e){return W(this,1,e)[0]},getInt16:function(e){var t=W(this,2,e,arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=W(this,2,e,arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return V(W(this,4,e,arguments[1]))},getUint32:function(e){return V(W(this,4,e,arguments[1]))>>>0},getFloat32:function(e){return B(W(this,4,e,arguments[1]),23,4)},getFloat64:function(e){return B(W(this,8,e,arguments[1]),52,8)},setInt8:function(e,t){q(this,1,e,Y,t)},setUint8:function(e,t){q(this,1,e,Y,t)},setInt16:function(e,t){q(this,2,e,H,t,arguments[2])},setUint16:function(e,t){q(this,2,e,H,t,arguments[2])},setInt32:function(e,t){q(this,4,e,F,t,arguments[2])},setUint32:function(e,t){q(this,4,e,F,t,arguments[2])},setFloat32:function(e,t){q(this,4,e,$,t,arguments[2])},setFloat64:function(e,t){q(this,8,e,Q,t,arguments[2])}});y(M,m),y(E,I),a(E[_],s.VIEW,!0),t[m]=M,t[I]=E},ed33:function(e,t,n){n("014b"),e.exports=n("584a").Object.getOwnPropertySymbols},ed50:function(e,t,n){"use strict";var r=n("5ca1"),i=n("2e08"),o=n("a25f"),s=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);r(r.P+r.F*s,"String",{padEnd:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0,!1)}})},ed7e:function(e,t,n){var r=n("5ca1");r(r.S,"Math",{signbit:function(e){return(e=+e)!=e?e:0==e?1/e==1/0:e>0}})},ee1d:function(e,t,n){var r=n("5ca1");r(r.S,"Number",{isNaN:function(e){return e!=e}})},ee6d:function(e,t,n){var r=n("63b6"),i=n("ba99"),o=n("36c3"),s=n("bf0b"),a=n("20fd");r(r.S,"Object",{getOwnPropertyDescriptors:function(e){var t,n,r=o(e),c=s.f,u=i(r),l={},f=0;while(u.length>f)n=c(r,t=u[f++]),void 0!==n&&a(l,t,n);return l}})},ef5d:function(e,t){var n=Object.prototype.toString;function r(e){return"function"===typeof e.constructor?e.constructor.name:null}function i(e){return Array.isArray?Array.isArray(e):e instanceof Array}function o(e){return e instanceof Error||"string"===typeof e.message&&e.constructor&&"number"===typeof e.constructor.stackTraceLimit}function s(e){return e instanceof Date||"function"===typeof e.toDateString&&"function"===typeof e.getDate&&"function"===typeof e.setDate}function a(e){return e instanceof RegExp||"string"===typeof e.flags&&"boolean"===typeof e.ignoreCase&&"boolean"===typeof e.multiline&&"boolean"===typeof e.global}function c(e,t){return"GeneratorFunction"===r(e)}function u(e){return"function"===typeof e.throw&&"function"===typeof e.return&&"function"===typeof e.next}function l(e){try{if("number"===typeof e.length&&"function"===typeof e.callee)return!0}catch(t){if(-1!==t.message.indexOf("callee"))return!0}return!1}function f(e){return!(!e.constructor||"function"!==typeof e.constructor.isBuffer)&&e.constructor.isBuffer(e)}e.exports=function(e){if(void 0===e)return"undefined";if(null===e)return"null";var t=typeof e;if("boolean"===t)return"boolean";if("string"===t)return"string";if("number"===t)return"number";if("symbol"===t)return"symbol";if("function"===t)return c(e)?"generatorfunction":"function";if(i(e))return"array";if(f(e))return"buffer";if(l(e))return"arguments";if(s(e))return"date";if(o(e))return"error";if(a(e))return"regexp";switch(r(e)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(u(e))return"generator";switch(t=n.call(e),t){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return t.slice(8,-1).toLowerCase().replace(/\s/g,"")}},f0c1:function(e,t,n){"use strict";var r=n("d8e8"),i=n("d3f4"),o=n("31f4"),s=[].slice,a={},c=function(e,t,n){if(!(t in a)){for(var r=[],i=0;i<t;i++)r[i]="a["+i+"]";a[t]=Function("F,a","return new F("+r.join(",")+")")}return a[t](e,n)};e.exports=Function.bind||function(e){var t=r(this),n=s.call(arguments,1),a=function(){var r=n.concat(s.call(arguments));return this instanceof a?c(t,r.length,r):o(t,r,e)};return i(t.prototype)&&(a.prototype=t.prototype),a}},f1ae:function(e,t,n){"use strict";var r=n("86cc"),i=n("4630");e.exports=function(e,t,n){t in e?r.f(e,t,i(0,n)):e[t]=n}},f201:function(e,t,n){var r=n("e4ae"),i=n("79aa"),o=n("5168")("species");e.exports=function(e,t){var n,s=r(e).constructor;return void 0===s||void 0==(n=r(s)[o])?t:i(n)}},f386:function(e,t,n){"use strict";n("386b")("small",(function(e){return function(){return e(this,"small","","")}}))},f3a2:function(e,t,n){(function(t){!function(t){"use strict";var n,r=Object.prototype,i=r.hasOwnProperty,o="function"===typeof Symbol?Symbol:{},s=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag",u="object"===typeof e,l=t.regeneratorRuntime;if(l)u&&(e.exports=l);else{l=t.regeneratorRuntime=u?e.exports:{},l.wrap=_;var f="suspendedStart",h="suspendedYield",d="executing",p="completed",g={},v={};v[s]=function(){return this};var y=Object.getPrototypeOf,m=y&&y(y(D([])));m&&m!==r&&i.call(m,s)&&(v=m);var I=E.prototype=C.prototype=Object.create(v);M.prototype=I.constructor=E,E.constructor=M,E[c]=M.displayName="GeneratorFunction",l.isGeneratorFunction=function(e){var t="function"===typeof e&&e.constructor;return!!t&&(t===M||"GeneratorFunction"===(t.displayName||t.name))},l.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,E):(e.__proto__=E,c in e||(e[c]="GeneratorFunction")),e.prototype=Object.create(I),e},l.awrap=function(e){return{__await:e}},A(S.prototype),S.prototype[a]=function(){return this},l.AsyncIterator=S,l.async=function(e,t,n,r){var i=new S(_(e,t,n,r));return l.isGeneratorFunction(t)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},A(I),I[c]="Generator",I[s]=function(){return this},I.toString=function(){return"[object Generator]"},l.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){while(t.length){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},l.values=D,R.prototype={constructor:R,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(O),!e)for(var t in this)"t"===t.charAt(0)&&i.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=n)},stop:function(){this.done=!0;var e=this.tryEntries[0],t=e.completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(r,i){return a.type="throw",a.arg=e,t.next=r,i&&(t.method="next",t.arg=n),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var s=this.tryEntries[o],a=s.completion;if("root"===s.tryLoc)return r("end");if(s.tryLoc<=this.prev){var c=i.call(s,"catchLoc"),u=i.call(s,"finallyLoc");if(c&&u){if(this.prev<s.catchLoc)return r(s.catchLoc,!0);if(this.prev<s.finallyLoc)return r(s.finallyLoc)}else if(c){if(this.prev<s.catchLoc)return r(s.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<s.finallyLoc)return r(s.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var s=o?o.completion:{};return s.type=e,s.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(s)},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),g},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),g}},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 i=r.arg;O(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:D(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=n),g}}}function _(e,t,n,r){var i=t&&t.prototype instanceof C?t:C,o=Object.create(i.prototype),s=new R(r||[]);return o._invoke=N(e,n,s),o}function T(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(r){return{type:"throw",arg:r}}}function C(){}function M(){}function E(){}function A(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function S(e){function n(t,r,o,s){var a=T(e[t],e,r);if("throw"!==a.type){var c=a.arg,u=c.value;return u&&"object"===typeof u&&i.call(u,"__await")?Promise.resolve(u.__await).then((function(e){n("next",e,o,s)}),(function(e){n("throw",e,o,s)})):Promise.resolve(u).then((function(e){c.value=e,o(c)}),s)}s(a.arg)}var r;function o(e,t){function i(){return new Promise((function(r,i){n(e,t,r,i)}))}return r=r?r.then(i,i):i()}"object"===typeof t.process&&t.process.domain&&(n=t.process.domain.bind(n)),this._invoke=o}function N(e,t,n){var r=f;return function(i,o){if(r===d)throw new Error("Generator is already running");if(r===p){if("throw"===i)throw o;return L()}n.method=i,n.arg=o;while(1){var s=n.delegate;if(s){var a=b(s,n);if(a){if(a===g)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=d;var c=T(e,t,n);if("normal"===c.type){if(r=n.done?p:h,c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=p,n.method="throw",n.arg=c.arg)}}}function b(e,t){var r=e.iterator[t.method];if(r===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=n,b(e,t),"throw"===t.method))return g;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var i=T(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,g;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=n),t.delegate=null,g):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,g)}function w(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 R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function D(e){if(e){var t=e[s];if(t)return t.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){while(++r<e.length)if(i.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=n,t.done=!0,t};return o.next=o}}return{next:L}}function L(){return{value:n,done:!0}}}("object"===typeof t?t:"object"===typeof window?window:"object"===typeof self?self:this)}).call(this,n("c8ba"))},f3e2:function(e,t,n){"use strict";var r=n("5ca1"),i=n("0a49")(0),o=n("2f21")([].forEach,!0);r(r.P+r.F*!o,"Array",{forEach:function(e){return i(this,e,arguments[1])}})},f400:function(e,t,n){"use strict";var r=n("c26b"),i=n("b39a"),o="Map";e.exports=n("e0b8")(o,(function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}}),{get:function(e){var t=r.getEntry(i(this,o),e);return t&&t.v},set:function(e,t){return r.def(i(this,o),0===e?0:e,t)}},r,!0)},f410:function(e,t,n){n("1af6"),e.exports=n("584a").Array.isArray},f4ff:function(e,t,n){var r=n("5ca1"),i=Math.imul;r(r.S+r.F*n("79e5")((function(){return-5!=i(4294967295,5)||2!=i.length})),"Math",{imul:function(e,t){var n=65535,r=+e,i=+t,o=n&r,s=n&i;return 0|o*s+((n&r>>>16)*s+o*(n&i>>>16)<<16>>>0)}})},f559:function(e,t,n){"use strict";var r=n("5ca1"),i=n("9def"),o=n("d2c8"),s="startsWith",a=""[s];r(r.P+r.F*n("5147")(s),"String",{startsWith:function(e){var t=o(this,e,s),n=i(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return a?a.call(t,r,n):t.slice(n,n+r.length)===r}})},f576:function(e,t,n){"use strict";var r=n("5ca1"),i=n("2e08"),o=n("a25f"),s=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);r(r.P+r.F*s,"String",{padStart:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0,!0)}})},f5df:function(e,t,n){},f605:function(e,t){e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},f6b3:function(e,t,n){var r=n("5ca1");r(r.S,"Reflect",{has:function(e,t){return t in e}})},f6b4:function(e,t,n){"use strict";var r=n("c532");function i(){this.handlers=[]}i.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=i},f751:function(e,t,n){var r=n("5ca1");r(r.S+r.F,"Object",{assign:n("7333")})},f772:function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},f893:function(e,t,n){e.exports={default:n("f921"),__esModule:!0}},f904:function(e,t,n){"use strict";var r=n("13d9"),i={"text/plain":"Text","text/html":"Url",default:"Text"},o="Copy to clipboard: #{key}, Enter";function s(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function a(e,t){var n,a,c,u,l,f,h=!1;t||(t={}),n=t.debug||!1;try{c=r(),u=document.createRange(),l=document.getSelection(),f=document.createElement("span"),f.textContent=e,f.style.all="unset",f.style.position="fixed",f.style.top=0,f.style.clip="rect(0, 0, 0, 0)",f.style.whiteSpace="pre",f.style.webkitUserSelect="text",f.style.MozUserSelect="text",f.style.msUserSelect="text",f.style.userSelect="text",f.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),"undefined"===typeof r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var o=i[t.format]||i["default"];window.clipboardData.setData(o,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(f),u.selectNodeContents(f),l.addRange(u);var d=document.execCommand("copy");if(!d)throw new Error("copy command was unsuccessful");h=!0}catch(p){n&&console.error("unable to copy using execCommand: ",p),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),h=!0}catch(p){n&&console.error("unable to copy using clipboardData: ",p),n&&console.error("falling back to prompt"),a=s("message"in t?t.message:o),window.prompt(a,e)}}finally{l&&("function"==typeof l.removeRange?l.removeRange(u):l.removeAllRanges()),f&&document.body.removeChild(f),c()}return h}e.exports=a},f921:function(e,t,n){n("014b"),n("c207"),n("69d3"),n("765d"),e.exports=n("584a").Symbol},f9ab:function(e,t,n){var r=n("5ca1"),i=n("96fb");r(r.S,"Math",{cbrt:function(e){return i(e=+e)*Math.pow(Math.abs(e),1/3)}})},fa5b:function(e,t,n){e.exports=n("5537")("native-function-to-string",Function.toString)},fa83:function(e,t,n){"use strict";n("386b")("blink",(function(e){return function(){return e(this,"blink","","")}}))},fa99:function(e,t,n){n("0293"),e.exports=n("584a").Object.getPrototypeOf},fab2:function(e,t,n){var r=n("7726").document;e.exports=r&&r.documentElement},fb48:function(e,t,n){"use strict";
- /*!
- * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
- *
- * Copyright (c) 2014-2017, Jon Schlinkert.
- * Released under the MIT License.
- */var r=n("a832");function i(e){return!0===r(e)&&"[object Object]"===Object.prototype.toString.call(e)}e.exports=function(e){var t,n;return!1!==i(e)&&(t=e.constructor,"function"===typeof t&&(n=t.prototype,!1!==i(n)&&!1!==n.hasOwnProperty("isPrototypeOf")))}},fca0:function(e,t,n){var r=n("5ca1"),i=n("7726").isFinite;r(r.S,"Number",{isFinite:function(e){return"number"==typeof e&&i(e)}})},fd24:function(e,t,n){var r=n("5ca1");r(r.S,"Object",{setPrototypeOf:n("8b97").set})},fd5a:function(e,t,n){n("d0ca"),e.exports=n("8378").RegExp.escape},fde4:function(e,t,n){n("bf90");var r=n("584a").Object;e.exports=function(e,t){return r.getOwnPropertyDescriptor(e,t)}},fdef:function(e,t){e.exports="\t\n\v\f\r \u2028\u2029\ufeff"},fee7:function(e,t,n){"use strict";var r=n("5ca1"),i=n("4bf8"),o=n("d8e8"),s=n("86cc");n("9e1e")&&r(r.P+n("c5b4"),"Object",{__defineSetter__:function(e,t){s.f(i(this),e,{set:o(t),enumerable:!0,configurable:!0})}})},ffc1:function(e,t,n){var r=n("5ca1"),i=n("504c")(!0);r(r.S,"Object",{entries:function(e){return i(e)}})}}]);
|